email-builder-online 3.6.1 → 3.6.2
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/index.cjs +2 -2
- package/dist/index.mjs +446 -441
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var tI = (t) => {
|
|
|
5
5
|
var mQ = (t, e, n) => e in t ? fQ(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
6
6
|
var ie = (t, e, n) => mQ(t, typeof e != "symbol" ? e + "" : e, n), E1 = (t, e, n) => e.has(t) || tI("Cannot " + n);
|
|
7
7
|
var Wi = (t, e, n) => (E1(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Ac = (t, e, n) => e.has(t) ? tI("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), S1 = (t, e, n, i) => (E1(t, e, "write to private field"), i ? i.call(t, n) : e.set(t, n), n), to = (t, e, n) => (E1(t, e, "access private method"), n);
|
|
8
|
-
import Mv, { jsx as g, jsxs as
|
|
8
|
+
import Mv, { jsx as g, jsxs as U, Fragment as tt } from "react/jsx-runtime";
|
|
9
9
|
import * as N from "react";
|
|
10
10
|
import lt, { forwardRef as $D, useContext as eg, isValidElement as rb, cloneElement as ab, Children as hQ, startTransition as qp, createContext as Vp, useCallback as dt, useRef as Bt, useState as ae, useEffect as Ce, useLayoutEffect as l$, useMemo as Er, Fragment as $b, memo as Nr, useDebugValue as c$, useImperativeHandle as gQ } from "react";
|
|
11
11
|
import { useDrop as Pv, useDrag as UD, DndProvider as _Q } from "react-dnd";
|
|
@@ -3113,7 +3113,7 @@ function bZ(t) {
|
|
|
3113
3113
|
value: o,
|
|
3114
3114
|
children: /* @__PURE__ */ g(fZ, {
|
|
3115
3115
|
value: l,
|
|
3116
|
-
children: /* @__PURE__ */
|
|
3116
|
+
children: /* @__PURE__ */ U(mZ, {
|
|
3117
3117
|
value: o?.components,
|
|
3118
3118
|
children: [c, e]
|
|
3119
3119
|
})
|
|
@@ -4021,7 +4021,7 @@ function dee() {
|
|
|
4021
4021
|
skipSx: B,
|
|
4022
4022
|
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
4023
4023
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
4024
|
-
overridesResolver:
|
|
4024
|
+
overridesResolver: $ = E(b(O))
|
|
4025
4025
|
} = R, G = (0, n.default)(R, c), W = I && I.startsWith("Mui") || O ? "components" : "custom", K = M !== void 0 ? M : (
|
|
4026
4026
|
// TODO v6: remove `Root` in the next major release
|
|
4027
4027
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
@@ -4044,7 +4044,7 @@ function dee() {
|
|
|
4044
4044
|
} : J, X = (J, ...q) => {
|
|
4045
4045
|
let le = se(J);
|
|
4046
4046
|
const ce = q ? q.map(se) : [];
|
|
4047
|
-
I &&
|
|
4047
|
+
I && $ && ce.push((ge) => {
|
|
4048
4048
|
const ve = y((0, e.default)({}, ge, {
|
|
4049
4049
|
defaultTheme: k,
|
|
4050
4050
|
themeId: C
|
|
@@ -4056,7 +4056,7 @@ function dee() {
|
|
|
4056
4056
|
vt[Et] = v(kn, (0, e.default)({}, ge, {
|
|
4057
4057
|
theme: ve
|
|
4058
4058
|
}), ve.modularCssLayers ? "theme" : void 0);
|
|
4059
|
-
}),
|
|
4059
|
+
}), $(ge, vt);
|
|
4060
4060
|
}), I && !K && ce.push((ge) => {
|
|
4061
4061
|
var ve;
|
|
4062
4062
|
const ct = y((0, e.default)({}, ge, {
|
|
@@ -4191,7 +4191,7 @@ const _ee = ["children", "className", "color", "component", "fontSize", "htmlCol
|
|
|
4191
4191
|
}), _ = {};
|
|
4192
4192
|
u || (_.viewBox = p);
|
|
4193
4193
|
const b = bee(h);
|
|
4194
|
-
return /* @__PURE__ */
|
|
4194
|
+
return /* @__PURE__ */ U(yee, A({
|
|
4195
4195
|
as: s,
|
|
4196
4196
|
className: Re(b.root, a),
|
|
4197
4197
|
focusable: "false",
|
|
@@ -4647,10 +4647,10 @@ const Nee = ["addEndListener", "children", "className", "collapsedSize", "compon
|
|
|
4647
4647
|
const J = O.current;
|
|
4648
4648
|
X === void 0 ? se(J) : se(J, X);
|
|
4649
4649
|
}
|
|
4650
|
-
},
|
|
4650
|
+
}, $ = () => w.current ? w.current[R ? "clientWidth" : "clientHeight"] : 0, G = B((se, X) => {
|
|
4651
4651
|
w.current && R && (w.current.style.position = "absolute"), se.style[I] = P, d && d(se, X);
|
|
4652
4652
|
}), W = B((se, X) => {
|
|
4653
|
-
const J =
|
|
4653
|
+
const J = $();
|
|
4654
4654
|
w.current && R && (w.current.style.position = "");
|
|
4655
4655
|
const {
|
|
4656
4656
|
duration: q,
|
|
@@ -4671,9 +4671,9 @@ const Nee = ["addEndListener", "children", "className", "collapsedSize", "compon
|
|
|
4671
4671
|
}), K = B((se, X) => {
|
|
4672
4672
|
se.style[I] = "auto", p && p(se, X);
|
|
4673
4673
|
}), te = B((se) => {
|
|
4674
|
-
se.style[I] = `${
|
|
4674
|
+
se.style[I] = `${$()}px`, m && m(se);
|
|
4675
4675
|
}), xe = B(h), pe = B((se) => {
|
|
4676
|
-
const X =
|
|
4676
|
+
const X = $(), {
|
|
4677
4677
|
duration: J,
|
|
4678
4678
|
easing: q
|
|
4679
4679
|
} = lp({
|
|
@@ -5174,7 +5174,7 @@ const Jee = bt("MuiButtonBase", ["root", "disabled", "focusVisible"]), Zee = ["a
|
|
|
5174
5174
|
TouchRippleProps: R,
|
|
5175
5175
|
touchRippleRef: I,
|
|
5176
5176
|
type: O
|
|
5177
|
-
} = i, M = Ae(i, Zee), B = N.useRef(null),
|
|
5177
|
+
} = i, M = Ae(i, Zee), B = N.useRef(null), $ = N.useRef(null), G = Hn($, I), {
|
|
5178
5178
|
isFocusVisibleRef: W,
|
|
5179
5179
|
onFocus: K,
|
|
5180
5180
|
onBlur: te,
|
|
@@ -5191,10 +5191,10 @@ const Jee = bt("MuiButtonBase", ["root", "disabled", "focusVisible"]), Zee = ["a
|
|
|
5191
5191
|
}, []);
|
|
5192
5192
|
const J = se && !u && !c;
|
|
5193
5193
|
N.useEffect(() => {
|
|
5194
|
-
pe && p && !u && se &&
|
|
5194
|
+
pe && p && !u && se && $.current.pulsate();
|
|
5195
5195
|
}, [u, p, pe, se]);
|
|
5196
5196
|
function q(Q, Oe, ut = d) {
|
|
5197
|
-
return Pi((mt) => (Oe && Oe(mt), !ut &&
|
|
5197
|
+
return Pi((mt) => (Oe && Oe(mt), !ut && $.current && $.current[Q](mt), !0));
|
|
5198
5198
|
}
|
|
5199
5199
|
const le = q("start", S), ce = q("stop", _), we = q("stop", b), Ee = q("stop", k), ge = q("stop", (Q) => {
|
|
5200
5200
|
pe && Q.preventDefault(), C && C(Q);
|
|
@@ -5206,12 +5206,12 @@ const Jee = bt("MuiButtonBase", ["root", "disabled", "focusVisible"]), Zee = ["a
|
|
|
5206
5206
|
const Q = B.current;
|
|
5207
5207
|
return l && l !== "button" && !(Q.tagName === "A" && Q.href);
|
|
5208
5208
|
}, xt = N.useRef(!1), Dn = Pi((Q) => {
|
|
5209
|
-
p && !xt.current && pe &&
|
|
5210
|
-
|
|
5209
|
+
p && !xt.current && pe && $.current && Q.key === " " && (xt.current = !0, $.current.stop(Q, () => {
|
|
5210
|
+
$.current.start(Q);
|
|
5211
5211
|
})), Q.target === Q.currentTarget && ot() && Q.key === " " && Q.preventDefault(), v && v(Q), Q.target === Q.currentTarget && ot() && Q.key === "Enter" && !c && (Q.preventDefault(), h && h(Q));
|
|
5212
5212
|
}), en = Pi((Q) => {
|
|
5213
|
-
p && Q.key === " " &&
|
|
5214
|
-
|
|
5213
|
+
p && Q.key === " " && $.current && pe && !Q.defaultPrevented && (xt.current = !1, $.current.stop(Q, () => {
|
|
5214
|
+
$.current.pulsate(Q);
|
|
5215
5215
|
})), T && T(Q), h && Q.target === Q.currentTarget && ot() && Q.key === " " && !Q.defaultPrevented && h(Q);
|
|
5216
5216
|
});
|
|
5217
5217
|
let wt = l;
|
|
@@ -5228,7 +5228,7 @@ const Jee = bt("MuiButtonBase", ["root", "disabled", "focusVisible"]), Zee = ["a
|
|
|
5228
5228
|
tabIndex: P,
|
|
5229
5229
|
focusVisible: pe
|
|
5230
5230
|
}), ee = ete(mn);
|
|
5231
|
-
return /* @__PURE__ */
|
|
5231
|
+
return /* @__PURE__ */ U(tte, A({
|
|
5232
5232
|
as: wt,
|
|
5233
5233
|
className: Re(ee.root, s),
|
|
5234
5234
|
ownerState: mn,
|
|
@@ -5537,7 +5537,7 @@ const rte = bt("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrima
|
|
|
5537
5537
|
externalForwardedProps: S,
|
|
5538
5538
|
ownerState: v
|
|
5539
5539
|
});
|
|
5540
|
-
return /* @__PURE__ */
|
|
5540
|
+
return /* @__PURE__ */ U(hte, A({
|
|
5541
5541
|
role: m,
|
|
5542
5542
|
elevation: 0,
|
|
5543
5543
|
ownerState: v,
|
|
@@ -6253,8 +6253,8 @@ function une(t) {
|
|
|
6253
6253
|
padding: c
|
|
6254
6254
|
}), B = I ? R ? qa : Hr : R ? Ga : zr;
|
|
6255
6255
|
T[O] > S[O] && (B = db(B));
|
|
6256
|
-
var
|
|
6257
|
-
if (a && G.push(M[P] <= 0), s && G.push(M[B] <= 0, M[
|
|
6256
|
+
var $ = db(B), G = [];
|
|
6257
|
+
if (a && G.push(M[P] <= 0), s && G.push(M[B] <= 0, M[$] <= 0), G.every(function(pe) {
|
|
6258
6258
|
return pe;
|
|
6259
6259
|
})) {
|
|
6260
6260
|
x = D, k = !1;
|
|
@@ -6392,10 +6392,10 @@ function vne(t) {
|
|
|
6392
6392
|
};
|
|
6393
6393
|
if (S) {
|
|
6394
6394
|
if (a) {
|
|
6395
|
-
var R, I = v === "y" ? zr : Hr, O = v === "y" ? Ga : qa, M = v === "y" ? "height" : "width", B = S[v],
|
|
6395
|
+
var R, I = v === "y" ? zr : Hr, O = v === "y" ? Ga : qa, M = v === "y" ? "height" : "width", B = S[v], $ = B + _[I], G = B - _[O], W = f ? -k[M] / 2 : 0, K = y === cp ? C[M] : k[M], te = y === cp ? -k[M] : -C[M], xe = e.elements.arrow, pe = f && xe ? cA(xe) : {
|
|
6396
6396
|
width: 0,
|
|
6397
6397
|
height: 0
|
|
6398
|
-
}, Fe = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : nU(), se = Fe[I], X = Fe[O], J = Pm(0, C[M], pe[M]), q = E ? C[M] / 2 - W - J - se - w.mainAxis : K - J - se - w.mainAxis, le = E ? -C[M] / 2 + W + J + X + w.mainAxis : te + J + X + w.mainAxis, ce = e.elements.arrow && ug(e.elements.arrow), we = ce ? v === "y" ? ce.clientTop || 0 : ce.clientLeft || 0 : 0, Ee = (R = D?.[v]) != null ? R : 0, ge = B + q - Ee - we, ve = B + le - Ee, ct = Pm(f ? Vb(
|
|
6398
|
+
}, Fe = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : nU(), se = Fe[I], X = Fe[O], J = Pm(0, C[M], pe[M]), q = E ? C[M] / 2 - W - J - se - w.mainAxis : K - J - se - w.mainAxis, le = E ? -C[M] / 2 + W + J + X + w.mainAxis : te + J + X + w.mainAxis, ce = e.elements.arrow && ug(e.elements.arrow), we = ce ? v === "y" ? ce.clientTop || 0 : ce.clientLeft || 0 : 0, Ee = (R = D?.[v]) != null ? R : 0, ge = B + q - Ee - we, ve = B + le - Ee, ct = Pm(f ? Vb($, ge) : $, B, f ? ru(G, ve) : G);
|
|
6399
6399
|
S[v] = ct, P[v] = ct - B;
|
|
6400
6400
|
}
|
|
6401
6401
|
if (s) {
|
|
@@ -6699,8 +6699,8 @@ const $ne = (t) => {
|
|
|
6699
6699
|
}, [r]), kr(() => {
|
|
6700
6700
|
if (!x || !c)
|
|
6701
6701
|
return;
|
|
6702
|
-
const O = (
|
|
6703
|
-
k(
|
|
6702
|
+
const O = ($) => {
|
|
6703
|
+
k($.placement);
|
|
6704
6704
|
};
|
|
6705
6705
|
let M = [{
|
|
6706
6706
|
name: "preventOverflow",
|
|
@@ -6717,9 +6717,9 @@ const $ne = (t) => {
|
|
|
6717
6717
|
enabled: !0,
|
|
6718
6718
|
phase: "afterWrite",
|
|
6719
6719
|
fn: ({
|
|
6720
|
-
state:
|
|
6720
|
+
state: $
|
|
6721
6721
|
}) => {
|
|
6722
|
-
O(
|
|
6722
|
+
O($);
|
|
6723
6723
|
}
|
|
6724
6724
|
}];
|
|
6725
6725
|
l != null && (M = M.concat(l)), d && d.modifiers != null && (M = M.concat(d.modifiers));
|
|
@@ -7175,10 +7175,10 @@ const Wb = /* @__PURE__ */ N.forwardRef(function(e, n) {
|
|
|
7175
7175
|
r && /* @__PURE__ */ N.isValidElement(r) && (B = /* @__PURE__ */ N.cloneElement(r, {
|
|
7176
7176
|
className: Re(I.avatar, r.props.className)
|
|
7177
7177
|
}));
|
|
7178
|
-
let
|
|
7179
|
-
return d && /* @__PURE__ */ N.isValidElement(d) && (
|
|
7178
|
+
let $ = null;
|
|
7179
|
+
return d && /* @__PURE__ */ N.isValidElement(d) && ($ = /* @__PURE__ */ N.cloneElement(d, {
|
|
7180
7180
|
className: Re(I.icon, d.props.className)
|
|
7181
|
-
})), /* @__PURE__ */
|
|
7181
|
+
})), /* @__PURE__ */ U(Kne, A({
|
|
7182
7182
|
as: P,
|
|
7183
7183
|
className: Re(I.root, a),
|
|
7184
7184
|
disabled: D && u ? !0 : void 0,
|
|
@@ -7189,7 +7189,7 @@ const Wb = /* @__PURE__ */ N.forwardRef(function(e, n) {
|
|
|
7189
7189
|
tabIndex: v && u ? -1 : E,
|
|
7190
7190
|
ownerState: R
|
|
7191
7191
|
}, O, T, {
|
|
7192
|
-
children: [B ||
|
|
7192
|
+
children: [B || $, /* @__PURE__ */ g(Qne, {
|
|
7193
7193
|
className: Re(I.label),
|
|
7194
7194
|
ownerState: R,
|
|
7195
7195
|
children: p
|
|
@@ -7286,7 +7286,7 @@ const eie = /* @__PURE__ */ N.forwardRef(function(e, n) {
|
|
|
7286
7286
|
const y = (E) => {
|
|
7287
7287
|
c || _(), i && i(E);
|
|
7288
7288
|
};
|
|
7289
|
-
return /* @__PURE__ */
|
|
7289
|
+
return /* @__PURE__ */ U(N.Fragment, {
|
|
7290
7290
|
children: [/* @__PURE__ */ g("textarea", A({
|
|
7291
7291
|
value: s,
|
|
7292
7292
|
onChange: y,
|
|
@@ -7542,7 +7542,7 @@ const fp = bt("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
7542
7542
|
readOnly: O,
|
|
7543
7543
|
renderSuffix: M,
|
|
7544
7544
|
rows: B,
|
|
7545
|
-
slotProps:
|
|
7545
|
+
slotProps: $ = {},
|
|
7546
7546
|
slots: G = {},
|
|
7547
7547
|
startAdornment: W,
|
|
7548
7548
|
type: K = "text",
|
|
@@ -7622,9 +7622,9 @@ const fp = bt("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
7622
7622
|
size: we.size,
|
|
7623
7623
|
startAdornment: W,
|
|
7624
7624
|
type: K
|
|
7625
|
-
}), wt = rie(en), fn = G.root || c.Root || tE, Yt =
|
|
7626
|
-
return xt = A({}, xt, (i =
|
|
7627
|
-
children: [!f && aie, /* @__PURE__ */
|
|
7625
|
+
}), wt = rie(en), fn = G.root || c.Root || tE, Yt = $.root || u.root || {}, mn = G.input || c.Input || nE;
|
|
7626
|
+
return xt = A({}, xt, (i = $.input) != null ? i : u.input), /* @__PURE__ */ U(N.Fragment, {
|
|
7627
|
+
children: [!f && aie, /* @__PURE__ */ U(fn, A({}, Yt, !Wl(fn) && {
|
|
7628
7628
|
ownerState: A({}, en, Yt.ownerState)
|
|
7629
7629
|
}, {
|
|
7630
7630
|
ref: n,
|
|
@@ -8070,7 +8070,7 @@ const Kg = bt("MuiButton", ["root", "text", "textInherit", "textPrimary", "textS
|
|
|
8070
8070
|
ownerState: S,
|
|
8071
8071
|
children: m
|
|
8072
8072
|
}), w = r || "";
|
|
8073
|
-
return /* @__PURE__ */
|
|
8073
|
+
return /* @__PURE__ */ U(Cie, A({
|
|
8074
8074
|
ownerState: S,
|
|
8075
8075
|
className: Re(i.className, C.root, u, w),
|
|
8076
8076
|
component: c,
|
|
@@ -8469,7 +8469,7 @@ function Qie(t) {
|
|
|
8469
8469
|
children: n,
|
|
8470
8470
|
enableColorScheme: i = !1
|
|
8471
8471
|
} = e;
|
|
8472
|
-
return /* @__PURE__ */
|
|
8472
|
+
return /* @__PURE__ */ U(N.Fragment, {
|
|
8473
8473
|
children: [/* @__PURE__ */ g(gA, {
|
|
8474
8474
|
styles: (r) => Kie(r, i)
|
|
8475
8475
|
}), n]
|
|
@@ -8688,7 +8688,7 @@ function lre(t) {
|
|
|
8688
8688
|
}, y = (E) => {
|
|
8689
8689
|
d.current === null && (d.current = E.relatedTarget), f.current = !0;
|
|
8690
8690
|
};
|
|
8691
|
-
return /* @__PURE__ */
|
|
8691
|
+
return /* @__PURE__ */ U(N.Fragment, {
|
|
8692
8692
|
children: [/* @__PURE__ */ g("div", {
|
|
8693
8693
|
tabIndex: s ? 0 : -1,
|
|
8694
8694
|
onFocus: y,
|
|
@@ -8747,22 +8747,22 @@ function pre(t) {
|
|
|
8747
8747
|
u ? C() : (!y || !a) && w();
|
|
8748
8748
|
}, [u, w, y, a, C]);
|
|
8749
8749
|
const D = (M) => (B) => {
|
|
8750
|
-
var
|
|
8751
|
-
(
|
|
8750
|
+
var $;
|
|
8751
|
+
($ = M.onKeyDown) == null || $.call(M, B), !(B.key !== "Escape" || B.which === 229 || // Wait until IME is settled.
|
|
8752
8752
|
!k()) && (n || (B.stopPropagation(), c && c(B, "escapeKeyDown")));
|
|
8753
8753
|
}, P = (M) => (B) => {
|
|
8754
|
-
var
|
|
8755
|
-
(
|
|
8754
|
+
var $;
|
|
8755
|
+
($ = M.onClick) == null || $.call(M, B), B.target === B.currentTarget && c && c(B, "backdropClick");
|
|
8756
8756
|
};
|
|
8757
8757
|
return {
|
|
8758
8758
|
getRootProps: (M = {}) => {
|
|
8759
8759
|
const B = iu(t);
|
|
8760
8760
|
delete B.onTransitionEnter, delete B.onTransitionExited;
|
|
8761
|
-
const
|
|
8761
|
+
const $ = A({}, B, M);
|
|
8762
8762
|
return A({
|
|
8763
8763
|
role: "presentation"
|
|
8764
|
-
},
|
|
8765
|
-
onKeyDown: D(
|
|
8764
|
+
}, $, {
|
|
8765
|
+
onKeyDown: D($),
|
|
8766
8766
|
ref: h
|
|
8767
8767
|
});
|
|
8768
8768
|
},
|
|
@@ -8874,7 +8874,7 @@ const mre = ["BackdropComponent", "BackdropProps", "classes", "className", "clos
|
|
|
8874
8874
|
keepMounted: w
|
|
8875
8875
|
}), {
|
|
8876
8876
|
getRootProps: B,
|
|
8877
|
-
getBackdropProps:
|
|
8877
|
+
getBackdropProps: $,
|
|
8878
8878
|
getTransitionProps: G,
|
|
8879
8879
|
portalRef: W,
|
|
8880
8880
|
isTopModal: K,
|
|
@@ -8907,7 +8907,7 @@ const mre = ["BackdropComponent", "BackdropProps", "classes", "className", "clos
|
|
|
8907
8907
|
elementType: J,
|
|
8908
8908
|
externalSlotProps: le,
|
|
8909
8909
|
additionalProps: d,
|
|
8910
|
-
getSlotProps: (Ee) =>
|
|
8910
|
+
getSlotProps: (Ee) => $(A({}, Ee, {
|
|
8911
8911
|
onClick: (ge) => {
|
|
8912
8912
|
D && D(ge), Ee != null && Ee.onClick && Ee.onClick(ge);
|
|
8913
8913
|
}
|
|
@@ -8919,7 +8919,7 @@ const mre = ["BackdropComponent", "BackdropProps", "classes", "className", "clos
|
|
|
8919
8919
|
ref: W,
|
|
8920
8920
|
container: h,
|
|
8921
8921
|
disablePortal: S,
|
|
8922
|
-
children: /* @__PURE__ */
|
|
8922
|
+
children: /* @__PURE__ */ U(X, A({}, ce, {
|
|
8923
8923
|
children: [!x && u ? /* @__PURE__ */ g(J, A({}, we)) : null, /* @__PURE__ */ g(lre, {
|
|
8924
8924
|
disableEnforceFocus: v,
|
|
8925
8925
|
disableAutoFocus: E,
|
|
@@ -9089,10 +9089,10 @@ const P1 = bt("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "p
|
|
|
9089
9089
|
fullWidth: m,
|
|
9090
9090
|
maxWidth: h,
|
|
9091
9091
|
scroll: S
|
|
9092
|
-
}), P = Ere(D), R = N.useRef(), I = (
|
|
9093
|
-
R.current =
|
|
9094
|
-
}, O = (
|
|
9095
|
-
b && b(
|
|
9092
|
+
}), P = Ere(D), R = N.useRef(), I = ($) => {
|
|
9093
|
+
R.current = $.target === $.currentTarget;
|
|
9094
|
+
}, O = ($) => {
|
|
9095
|
+
b && b($), R.current && (R.current = null, _ && _($), y && y($, "backdropClick"));
|
|
9096
9096
|
}, M = Xp(s), B = N.useMemo(() => ({
|
|
9097
9097
|
titleId: M
|
|
9098
9098
|
}), [M]);
|
|
@@ -9980,13 +9980,13 @@ const Bm = bt("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled",
|
|
|
9980
9980
|
focused: c.focused,
|
|
9981
9981
|
required: c.required
|
|
9982
9982
|
}), d = mae(u);
|
|
9983
|
-
return /* @__PURE__ */
|
|
9983
|
+
return /* @__PURE__ */ U(hae, A({
|
|
9984
9984
|
as: o,
|
|
9985
9985
|
ownerState: u,
|
|
9986
9986
|
className: Re(d.root, a),
|
|
9987
9987
|
ref: n
|
|
9988
9988
|
}, s, {
|
|
9989
|
-
children: [r, c.required && /* @__PURE__ */
|
|
9989
|
+
children: [r, c.required && /* @__PURE__ */ U(gae, {
|
|
9990
9990
|
ownerState: u,
|
|
9991
9991
|
"aria-hidden": !0,
|
|
9992
9992
|
className: d.asterisk,
|
|
@@ -10032,7 +10032,7 @@ const yae = {
|
|
|
10032
10032
|
X$(O);
|
|
10033
10033
|
const {
|
|
10034
10034
|
duration: B,
|
|
10035
|
-
delay:
|
|
10035
|
+
delay: $,
|
|
10036
10036
|
easing: G
|
|
10037
10037
|
} = lp({
|
|
10038
10038
|
style: m,
|
|
@@ -10044,17 +10044,17 @@ const yae = {
|
|
|
10044
10044
|
let W;
|
|
10045
10045
|
h === "auto" ? (W = v.transitions.getAutoHeightDuration(O.clientHeight), E.current = W) : W = B, O.style.transition = [v.transitions.create("opacity", {
|
|
10046
10046
|
duration: W,
|
|
10047
|
-
delay:
|
|
10047
|
+
delay: $
|
|
10048
10048
|
}), v.transitions.create("transform", {
|
|
10049
10049
|
duration: L1 ? W : W * 0.666,
|
|
10050
|
-
delay:
|
|
10050
|
+
delay: $,
|
|
10051
10051
|
easing: G
|
|
10052
10052
|
})].join(","), l && l(O, M);
|
|
10053
10053
|
}), w = C(c), D = C(f), P = C((O) => {
|
|
10054
10054
|
const {
|
|
10055
10055
|
duration: M,
|
|
10056
10056
|
delay: B,
|
|
10057
|
-
easing:
|
|
10057
|
+
easing: $
|
|
10058
10058
|
} = lp({
|
|
10059
10059
|
style: m,
|
|
10060
10060
|
timeout: h,
|
|
@@ -10069,7 +10069,7 @@ const yae = {
|
|
|
10069
10069
|
}), v.transitions.create("transform", {
|
|
10070
10070
|
duration: L1 ? G : G * 0.666,
|
|
10071
10071
|
delay: L1 ? B : B || G * 0.333,
|
|
10072
|
-
easing:
|
|
10072
|
+
easing: $
|
|
10073
10073
|
})].join(","), O.style.opacity = 0, O.style.transform = Mx(0.75), d && d(O);
|
|
10074
10074
|
}), R = C(p);
|
|
10075
10075
|
return /* @__PURE__ */ g(_, A({
|
|
@@ -10528,7 +10528,7 @@ const Bae = ["children", "className", "component", "dense", "disablePadding", "s
|
|
|
10528
10528
|
}), f = $ae(p);
|
|
10529
10529
|
return /* @__PURE__ */ g(gu.Provider, {
|
|
10530
10530
|
value: d,
|
|
10531
|
-
children: /* @__PURE__ */
|
|
10531
|
+
children: /* @__PURE__ */ U(Uae, A({
|
|
10532
10532
|
as: o,
|
|
10533
10533
|
className: Re(f.root, a),
|
|
10534
10534
|
ref: n,
|
|
@@ -10789,7 +10789,7 @@ const jb = bt("MuiListItemText", ["root", "multiline", "dense", "inset", "primar
|
|
|
10789
10789
|
display: "block"
|
|
10790
10790
|
}, d, {
|
|
10791
10791
|
children: h
|
|
10792
|
-
}))), /* @__PURE__ */
|
|
10792
|
+
}))), /* @__PURE__ */ U(Zae, A({
|
|
10793
10793
|
className: Re(b.root, a),
|
|
10794
10794
|
ownerState: _,
|
|
10795
10795
|
ref: n
|
|
@@ -10999,14 +10999,14 @@ const ooe = (t) => {
|
|
|
10999
10999
|
top: ve.top + vO(ve, c.vertical),
|
|
11000
11000
|
left: ve.left + EO(ve, c.horizontal)
|
|
11001
11001
|
};
|
|
11002
|
-
}, [l, c.horizontal, c.vertical, u, d]),
|
|
11002
|
+
}, [l, c.horizontal, c.vertical, u, d]), $ = N.useCallback((Ee) => ({
|
|
11003
11003
|
vertical: vO(Ee, T.vertical),
|
|
11004
11004
|
horizontal: EO(Ee, T.horizontal)
|
|
11005
11005
|
}), [T.horizontal, T.vertical]), G = N.useCallback((Ee) => {
|
|
11006
11006
|
const ge = {
|
|
11007
11007
|
width: Ee.offsetWidth,
|
|
11008
11008
|
height: Ee.offsetHeight
|
|
11009
|
-
}, ve =
|
|
11009
|
+
}, ve = $(ge);
|
|
11010
11010
|
if (d === "none")
|
|
11011
11011
|
return {
|
|
11012
11012
|
top: null,
|
|
@@ -11035,7 +11035,7 @@ const ooe = (t) => {
|
|
|
11035
11035
|
left: `${Math.round(Et)}px`,
|
|
11036
11036
|
transformOrigin: SO(ve)
|
|
11037
11037
|
};
|
|
11038
|
-
}, [l, d, B,
|
|
11038
|
+
}, [l, d, B, $, _]), [W, K] = N.useState(b), te = N.useCallback(() => {
|
|
11039
11039
|
const Ee = R.current;
|
|
11040
11040
|
if (!Ee)
|
|
11041
11041
|
return;
|
|
@@ -11188,16 +11188,16 @@ const coe = ["onEntering"], uoe = ["autoFocus", "children", "className", "disabl
|
|
|
11188
11188
|
transitionDuration: h,
|
|
11189
11189
|
TransitionProps: v,
|
|
11190
11190
|
variant: b
|
|
11191
|
-
}), k = foe(C), x = o && !c && p, w = N.useRef(null), D = (
|
|
11192
|
-
w.current && w.current.adjustStyleForScrollbar(
|
|
11191
|
+
}), k = foe(C), x = o && !c && p, w = N.useRef(null), D = ($, G) => {
|
|
11192
|
+
w.current && w.current.adjustStyleForScrollbar($, {
|
|
11193
11193
|
direction: S ? "rtl" : "ltr"
|
|
11194
|
-
}), _ && _(
|
|
11195
|
-
}, P = (
|
|
11196
|
-
|
|
11194
|
+
}), _ && _($, G);
|
|
11195
|
+
}, P = ($) => {
|
|
11196
|
+
$.key === "Tab" && ($.preventDefault(), d && d($, "tabKeyDown"));
|
|
11197
11197
|
};
|
|
11198
11198
|
let R = -1;
|
|
11199
|
-
N.Children.map(s, (
|
|
11200
|
-
/* @__PURE__ */ N.isValidElement(
|
|
11199
|
+
N.Children.map(s, ($, G) => {
|
|
11200
|
+
/* @__PURE__ */ N.isValidElement($) && ($.props.disabled || (b === "selectedMenu" && $.props.selected || R === -1) && (R = G));
|
|
11201
11201
|
});
|
|
11202
11202
|
const I = (i = y.paper) != null ? i : hoe, O = (r = E.paper) != null ? r : f, M = xi({
|
|
11203
11203
|
elementType: y.root,
|
|
@@ -11517,7 +11517,7 @@ const EA = bt("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
|
|
|
11517
11517
|
variant: l,
|
|
11518
11518
|
error: a
|
|
11519
11519
|
}), d = Toe(u);
|
|
11520
|
-
return /* @__PURE__ */
|
|
11520
|
+
return /* @__PURE__ */ U(N.Fragment, {
|
|
11521
11521
|
children: [/* @__PURE__ */ g(koe, A({
|
|
11522
11522
|
ownerState: u,
|
|
11523
11523
|
className: Re(d.select, i),
|
|
@@ -11760,7 +11760,7 @@ const Ioe = ["components", "fullWidth", "inputComponent", "label", "multiline",
|
|
|
11760
11760
|
renderSuffix: (k) => /* @__PURE__ */ g(Poe, {
|
|
11761
11761
|
ownerState: T,
|
|
11762
11762
|
className: y.notchedOutline,
|
|
11763
|
-
label: p != null && p !== "" && v.required ? s || (s = /* @__PURE__ */
|
|
11763
|
+
label: p != null && p !== "" && v.required ? s || (s = /* @__PURE__ */ U(N.Fragment, {
|
|
11764
11764
|
children: [p, " ", "*"]
|
|
11765
11765
|
})) : p,
|
|
11766
11766
|
notched: typeof m < "u" ? m : !!(k.startAdornment || k.filled || k.focused)
|
|
@@ -11891,7 +11891,7 @@ const Goe = (t) => {
|
|
|
11891
11891
|
tabIndex: I,
|
|
11892
11892
|
value: O,
|
|
11893
11893
|
variant: M = "standard"
|
|
11894
|
-
} = e, B = Ae(e, Boe), [
|
|
11894
|
+
} = e, B = Ae(e, Boe), [$, G] = vh({
|
|
11895
11895
|
controlled: O,
|
|
11896
11896
|
default: d,
|
|
11897
11897
|
name: "Select"
|
|
@@ -11909,8 +11909,8 @@ const Goe = (t) => {
|
|
|
11909
11909
|
xe.current.focus();
|
|
11910
11910
|
},
|
|
11911
11911
|
node: te.current,
|
|
11912
|
-
value:
|
|
11913
|
-
}), [
|
|
11912
|
+
value: $
|
|
11913
|
+
}), [$]), N.useEffect(() => {
|
|
11914
11914
|
u && W && pe && !se && (J(s ? null : ce.clientWidth), xe.current.focus());
|
|
11915
11915
|
}, [pe, s]), N.useEffect(() => {
|
|
11916
11916
|
o && xe.current.focus();
|
|
@@ -11940,12 +11940,12 @@ const Goe = (t) => {
|
|
|
11940
11940
|
let _e;
|
|
11941
11941
|
if (St.currentTarget.hasAttribute("tabindex")) {
|
|
11942
11942
|
if (E) {
|
|
11943
|
-
_e = Array.isArray(
|
|
11944
|
-
const ye =
|
|
11943
|
+
_e = Array.isArray($) ? $.slice() : [];
|
|
11944
|
+
const ye = $.indexOf(be.props.value);
|
|
11945
11945
|
ye === -1 ? _e.push(be.props.value) : _e.splice(ye, 1);
|
|
11946
11946
|
} else
|
|
11947
11947
|
_e = be.props.value;
|
|
11948
|
-
if (be.props.onClick && be.props.onClick(St),
|
|
11948
|
+
if (be.props.onClick && be.props.onClick(St), $ !== _e && (G(_e), S)) {
|
|
11949
11949
|
const ye = St.nativeEvent || St, rt = new ye.constructor(ye.type, ye);
|
|
11950
11950
|
Object.defineProperty(rt, "target", {
|
|
11951
11951
|
writable: !0,
|
|
@@ -11970,7 +11970,7 @@ const Goe = (t) => {
|
|
|
11970
11970
|
!kn && T && (Object.defineProperty(be, "target", {
|
|
11971
11971
|
writable: !0,
|
|
11972
11972
|
value: {
|
|
11973
|
-
value:
|
|
11973
|
+
value: $,
|
|
11974
11974
|
name: v
|
|
11975
11975
|
}
|
|
11976
11976
|
}), T(be));
|
|
@@ -11980,18 +11980,18 @@ const Goe = (t) => {
|
|
|
11980
11980
|
const en = [];
|
|
11981
11981
|
let wt = !1;
|
|
11982
11982
|
(Yb({
|
|
11983
|
-
value:
|
|
11984
|
-
}) || f) && (P ? xt = P(
|
|
11983
|
+
value: $
|
|
11984
|
+
}) || f) && (P ? xt = P($) : wt = !0);
|
|
11985
11985
|
const fn = ve.map((be) => {
|
|
11986
11986
|
if (!/* @__PURE__ */ N.isValidElement(be))
|
|
11987
11987
|
return null;
|
|
11988
11988
|
let St;
|
|
11989
11989
|
if (E) {
|
|
11990
|
-
if (!Array.isArray(
|
|
11990
|
+
if (!Array.isArray($))
|
|
11991
11991
|
throw new Error(js(2));
|
|
11992
|
-
St =
|
|
11992
|
+
St = $.some((_e) => kO(_e, be.props.value)), St && wt && en.push(be.props.children);
|
|
11993
11993
|
} else
|
|
11994
|
-
St = kO(
|
|
11994
|
+
St = kO($, be.props.value), St && wt && (Dn = be.props.children);
|
|
11995
11995
|
return /* @__PURE__ */ N.cloneElement(be, {
|
|
11996
11996
|
"aria-selected": St ? "true" : "false",
|
|
11997
11997
|
onClick: vt(be),
|
|
@@ -12013,11 +12013,11 @@ const Goe = (t) => {
|
|
|
12013
12013
|
typeof I < "u" ? mn = I : mn = p ? null : 0;
|
|
12014
12014
|
const ee = R.id || (v ? `mui-component-select-${v}` : void 0), Q = A({}, e, {
|
|
12015
12015
|
variant: M,
|
|
12016
|
-
value:
|
|
12016
|
+
value: $,
|
|
12017
12017
|
open: kn,
|
|
12018
12018
|
error: m
|
|
12019
12019
|
}), Oe = Goe(Q), ut = A({}, y.PaperProps, (i = y.slotProps) == null ? void 0 : i.paper), mt = Xp();
|
|
12020
|
-
return /* @__PURE__ */
|
|
12020
|
+
return /* @__PURE__ */ U(N.Fragment, {
|
|
12021
12021
|
children: [/* @__PURE__ */ g($oe, A({
|
|
12022
12022
|
ref: le,
|
|
12023
12023
|
tabIndex: mn,
|
|
@@ -12046,7 +12046,7 @@ const Goe = (t) => {
|
|
|
12046
12046
|
) : xt
|
|
12047
12047
|
})), /* @__PURE__ */ g(zoe, A({
|
|
12048
12048
|
"aria-invalid": m,
|
|
12049
|
-
value: Array.isArray(
|
|
12049
|
+
value: Array.isArray($) ? $.join(",") : $,
|
|
12050
12050
|
name: v,
|
|
12051
12051
|
ref: te,
|
|
12052
12052
|
"aria-hidden": !0,
|
|
@@ -12145,7 +12145,7 @@ const Goe = (t) => {
|
|
|
12145
12145
|
filled: /* @__PURE__ */ g(Qoe, {
|
|
12146
12146
|
ownerState: I
|
|
12147
12147
|
})
|
|
12148
|
-
}[R],
|
|
12148
|
+
}[R], $ = Hn(n, Lu(B));
|
|
12149
12149
|
return /* @__PURE__ */ g(N.Fragment, {
|
|
12150
12150
|
children: /* @__PURE__ */ N.cloneElement(B, A({
|
|
12151
12151
|
// Most of the logic is implemented in `SelectInput`.
|
|
@@ -12180,7 +12180,7 @@ const Goe = (t) => {
|
|
|
12180
12180
|
}, (b && y || c) && R === "outlined" ? {
|
|
12181
12181
|
notched: !0
|
|
12182
12182
|
} : {}, {
|
|
12183
|
-
ref:
|
|
12183
|
+
ref: $,
|
|
12184
12184
|
className: Re(B.props.className, s, O.root)
|
|
12185
12185
|
}, !p && {
|
|
12186
12186
|
variant: R
|
|
@@ -12337,17 +12337,17 @@ function rse(t) {
|
|
|
12337
12337
|
const M = o === !0 && h !== null ? [...Array(Math.floor((s - l) / h) + 1)].map((ee, Q) => ({
|
|
12338
12338
|
value: l + h * Q
|
|
12339
12339
|
})) : o || [], B = M.map((ee) => ee.value), {
|
|
12340
|
-
isFocusVisibleRef:
|
|
12340
|
+
isFocusVisibleRef: $,
|
|
12341
12341
|
onBlur: G,
|
|
12342
12342
|
onFocus: W,
|
|
12343
12343
|
ref: K
|
|
12344
12344
|
} = sg(), [te, xe] = N.useState(-1), pe = N.useRef(null), Fe = Hn(K, pe), se = Hn(f, Fe), X = (ee) => (Q) => {
|
|
12345
12345
|
var Oe;
|
|
12346
12346
|
const ut = Number(Q.currentTarget.getAttribute("data-index"));
|
|
12347
|
-
W(Q),
|
|
12347
|
+
W(Q), $.current === !0 && xe(ut), C(ut), ee == null || (Oe = ee.onFocus) == null || Oe.call(ee, Q);
|
|
12348
12348
|
}, J = (ee) => (Q) => {
|
|
12349
12349
|
var Oe;
|
|
12350
|
-
G(Q),
|
|
12350
|
+
G(Q), $.current === !1 && xe(-1), C(-1), ee == null || (Oe = ee.onBlur) == null || Oe.call(ee, Q);
|
|
12351
12351
|
}, q = (ee, Q) => {
|
|
12352
12352
|
const Oe = Number(ee.currentTarget.getAttribute("data-index")), ut = O[Oe], mt = B.indexOf(ut);
|
|
12353
12353
|
let be = Q;
|
|
@@ -12619,7 +12619,7 @@ function lse(t) {
|
|
|
12619
12619
|
} = t, r = sse(t);
|
|
12620
12620
|
return e ? /* @__PURE__ */ N.cloneElement(e, {
|
|
12621
12621
|
className: Re(e.props.className)
|
|
12622
|
-
}, /* @__PURE__ */
|
|
12622
|
+
}, /* @__PURE__ */ U(N.Fragment, {
|
|
12623
12623
|
children: [e.props.children, /* @__PURE__ */ g("span", {
|
|
12624
12624
|
className: Re(r.offset, n),
|
|
12625
12625
|
"aria-hidden": !0,
|
|
@@ -13161,7 +13161,7 @@ const use = he("span", {
|
|
|
13161
13161
|
// eslint-disable-next-line react/prop-types
|
|
13162
13162
|
component: M = "span",
|
|
13163
13163
|
components: B = {},
|
|
13164
|
-
componentsProps:
|
|
13164
|
+
componentsProps: $ = {},
|
|
13165
13165
|
color: G = "primary",
|
|
13166
13166
|
classes: W,
|
|
13167
13167
|
className: K,
|
|
@@ -13219,7 +13219,7 @@ const use = he("span", {
|
|
|
13219
13219
|
rootRef: n
|
|
13220
13220
|
}));
|
|
13221
13221
|
ot.marked = ut.length > 0 && ut.some((Gn) => Gn.label), ot.dragging = Oe, ot.focusedThumbIndex = ee;
|
|
13222
|
-
const ye = _se(ot), rt = (i = (r = ve?.root) != null ? r : B.Root) != null ? i : use, Dt = (a = (o = ve?.rail) != null ? o : B.Rail) != null ? a : dse, hn = (s = (l = ve?.track) != null ? l : B.Track) != null ? s : pse, ht = (c = (u = ve?.thumb) != null ? u : B.Thumb) != null ? c : fse, oi = (d = (p = ve?.valueLabel) != null ? p : B.ValueLabel) != null ? d : mse, ui = (f = (m = ve?.mark) != null ? m : B.Mark) != null ? f : hse, Xn = (h = (_ = ve?.markLabel) != null ? _ : B.MarkLabel) != null ? h : gse, z = (b = (y = ve?.input) != null ? y : B.Input) != null ? b : "input", Z = (E = ge?.root) != null ? E :
|
|
13222
|
+
const ye = _se(ot), rt = (i = (r = ve?.root) != null ? r : B.Root) != null ? i : use, Dt = (a = (o = ve?.rail) != null ? o : B.Rail) != null ? a : dse, hn = (s = (l = ve?.track) != null ? l : B.Track) != null ? s : pse, ht = (c = (u = ve?.thumb) != null ? u : B.Thumb) != null ? c : fse, oi = (d = (p = ve?.valueLabel) != null ? p : B.ValueLabel) != null ? d : mse, ui = (f = (m = ve?.mark) != null ? m : B.Mark) != null ? f : hse, Xn = (h = (_ = ve?.markLabel) != null ? _ : B.MarkLabel) != null ? h : gse, z = (b = (y = ve?.input) != null ? y : B.Input) != null ? b : "input", Z = (E = ge?.root) != null ? E : $.root, Pe = (v = ge?.rail) != null ? v : $.rail, gt = (T = ge?.track) != null ? T : $.track, On = (S = ge?.thumb) != null ? S : $.thumb, xn = (C = ge?.valueLabel) != null ? C : $.valueLabel, je = (k = ge?.mark) != null ? k : $.mark, ze = (x = ge?.markLabel) != null ? x : $.markLabel, st = (w = ge?.input) != null ? w : $.input, rn = xi({
|
|
13223
13223
|
elementType: rt,
|
|
13224
13224
|
getSlotProps: Dn,
|
|
13225
13225
|
externalSlotProps: Z,
|
|
@@ -13269,11 +13269,11 @@ const use = he("span", {
|
|
|
13269
13269
|
externalSlotProps: st,
|
|
13270
13270
|
ownerState: ot
|
|
13271
13271
|
});
|
|
13272
|
-
return /* @__PURE__ */
|
|
13272
|
+
return /* @__PURE__ */ U(rt, A({}, rn, {
|
|
13273
13273
|
children: [/* @__PURE__ */ g(Dt, A({}, An)), /* @__PURE__ */ g(hn, A({}, wo)), ut.filter((Gn) => Gn.value >= J && Gn.value <= X).map((Gn, di) => {
|
|
13274
13274
|
const Es = Kb(Gn.value, J, X), ba = xt[mn].offset(Es);
|
|
13275
13275
|
let Ir;
|
|
13276
|
-
return ct === !1 ? Ir = mt.indexOf(Gn.value) !== -1 : Ir = ct === "normal" && (Q ? Gn.value >= mt[0] && Gn.value <= mt[mt.length - 1] : Gn.value <= mt[0]) || ct === "inverted" && (Q ? Gn.value <= mt[0] || Gn.value >= mt[mt.length - 1] : Gn.value >= mt[0]), /* @__PURE__ */
|
|
13276
|
+
return ct === !1 ? Ir = mt.indexOf(Gn.value) !== -1 : Ir = ct === "normal" && (Q ? Gn.value >= mt[0] && Gn.value <= mt[mt.length - 1] : Gn.value <= mt[0]) || ct === "inverted" && (Q ? Gn.value <= mt[0] || Gn.value >= mt[mt.length - 1] : Gn.value >= mt[0]), /* @__PURE__ */ U(N.Fragment, {
|
|
13277
13277
|
children: [/* @__PURE__ */ g(ui, A({
|
|
13278
13278
|
"data-index": di
|
|
13279
13279
|
}, vs, !Wl(ui) && {
|
|
@@ -13449,7 +13449,7 @@ const Ese = ["action", "className", "message", "role"], Sse = (t) => {
|
|
|
13449
13449
|
message: o,
|
|
13450
13450
|
role: s = "alert"
|
|
13451
13451
|
} = i, l = Ae(i, Ese), c = i, u = Sse(c);
|
|
13452
|
-
return /* @__PURE__ */
|
|
13452
|
+
return /* @__PURE__ */ U(Cse, A({
|
|
13453
13453
|
role: s,
|
|
13454
13454
|
square: !0,
|
|
13455
13455
|
elevation: 6,
|
|
@@ -13801,7 +13801,7 @@ const En = /* @__PURE__ */ N.forwardRef(function(e, n) {
|
|
|
13801
13801
|
disableTouchListener: O = !1,
|
|
13802
13802
|
enterDelay: M = 100,
|
|
13803
13803
|
enterNextDelay: B = 0,
|
|
13804
|
-
enterTouchDelay:
|
|
13804
|
+
enterTouchDelay: $ = 700,
|
|
13805
13805
|
followCursor: G = !1,
|
|
13806
13806
|
id: W,
|
|
13807
13807
|
leaveDelay: K = 0,
|
|
@@ -13865,7 +13865,7 @@ const En = /* @__PURE__ */ N.forwardRef(function(e, n) {
|
|
|
13865
13865
|
const rr = ve.props;
|
|
13866
13866
|
rr.onTouchStart && rr.onTouchStart(Vt);
|
|
13867
13867
|
}, Pe = (Vt) => {
|
|
13868
|
-
Z(Vt), Yt.clear(), wt.clear(), be(), mt.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", mn.start(
|
|
13868
|
+
Z(Vt), Yt.clear(), wt.clear(), be(), mt.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", mn.start($, () => {
|
|
13869
13869
|
document.body.style.WebkitUserSelect = mt.current, ye(Vt);
|
|
13870
13870
|
});
|
|
13871
13871
|
}, gt = (Vt) => {
|
|
@@ -13928,7 +13928,7 @@ const En = /* @__PURE__ */ N.forwardRef(function(e, n) {
|
|
|
13928
13928
|
}), Rr), Ir = Fd(Gn, A({}, (E = q.arrow) != null ? E : w.arrow, {
|
|
13929
13929
|
className: Re(Do.arrow, (v = (T = q.arrow) != null ? T : w.arrow) == null ? void 0 : v.className)
|
|
13930
13930
|
}), Rr);
|
|
13931
|
-
return /* @__PURE__ */
|
|
13931
|
+
return /* @__PURE__ */ U(N.Fragment, {
|
|
13932
13932
|
children: [/* @__PURE__ */ N.cloneElement(ve, rn), /* @__PURE__ */ g(vs, A({
|
|
13933
13933
|
as: X ?? mA,
|
|
13934
13934
|
placement: se,
|
|
@@ -13953,7 +13953,7 @@ const En = /* @__PURE__ */ N.forwardRef(function(e, n) {
|
|
|
13953
13953
|
}) => /* @__PURE__ */ g(Za, A({
|
|
13954
13954
|
timeout: ct.transitions.duration.shorter
|
|
13955
13955
|
}, Vt, Es, {
|
|
13956
|
-
children: /* @__PURE__ */
|
|
13956
|
+
children: /* @__PURE__ */ U(wc, A({}, ba, {
|
|
13957
13957
|
children: [ce, C ? /* @__PURE__ */ g(Gn, A({}, Ir, {
|
|
13958
13958
|
ref: xt
|
|
13959
13959
|
})) : null]
|
|
@@ -14097,7 +14097,7 @@ const yl = bt("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
|
14097
14097
|
}, x = (w) => {
|
|
14098
14098
|
_ && !h && p && p(w, y), m && m(w);
|
|
14099
14099
|
};
|
|
14100
|
-
return /* @__PURE__ */
|
|
14100
|
+
return /* @__PURE__ */ U(Hse, A({
|
|
14101
14101
|
focusRipple: !o,
|
|
14102
14102
|
className: Re(S.root, r),
|
|
14103
14103
|
ref: n,
|
|
@@ -14109,9 +14109,9 @@ const yl = bt("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
|
14109
14109
|
ownerState: T,
|
|
14110
14110
|
tabIndex: h ? 0 : -1
|
|
14111
14111
|
}, v, {
|
|
14112
|
-
children: [c === "top" || c === "start" ? /* @__PURE__ */
|
|
14112
|
+
children: [c === "top" || c === "start" ? /* @__PURE__ */ U(N.Fragment, {
|
|
14113
14113
|
children: [C, d]
|
|
14114
|
-
}) : /* @__PURE__ */
|
|
14114
|
+
}) : /* @__PURE__ */ U(N.Fragment, {
|
|
14115
14115
|
children: [d, C]
|
|
14116
14116
|
}), u]
|
|
14117
14117
|
}));
|
|
@@ -14432,7 +14432,7 @@ const $1 = bt("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
14432
14432
|
value: x,
|
|
14433
14433
|
variant: w = "standard",
|
|
14434
14434
|
visibleScrollbar: D = !1
|
|
14435
|
-
} = i, P = Ae(i, ile), R = w === "scrollable", I = _ === "vertical", O = I ? "scrollTop" : "scrollLeft", M = I ? "top" : "left", B = I ? "bottom" : "right",
|
|
14435
|
+
} = i, P = Ae(i, ile), R = w === "scrollable", I = _ === "vertical", O = I ? "scrollTop" : "scrollLeft", M = I ? "top" : "left", B = I ? "bottom" : "right", $ = I ? "clientHeight" : "clientWidth", G = I ? "height" : "width", W = A({}, i, {
|
|
14436
14436
|
component: p,
|
|
14437
14437
|
allowScrollButtonsMobile: f,
|
|
14438
14438
|
indicatorColor: m,
|
|
@@ -14521,16 +14521,16 @@ const $1 = bt("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
14521
14521
|
let ye = vt.current[O];
|
|
14522
14522
|
I ? ye += _e : (ye += _e * (a ? -1 : 1), ye *= a && z$() === "reverse" ? -1 : 1), xt(ye);
|
|
14523
14523
|
}, en = () => {
|
|
14524
|
-
const _e = vt.current[
|
|
14524
|
+
const _e = vt.current[$];
|
|
14525
14525
|
let ye = 0;
|
|
14526
14526
|
const rt = Array.from(Et.current.children);
|
|
14527
14527
|
for (let Dt = 0; Dt < rt.length; Dt += 1) {
|
|
14528
14528
|
const hn = rt[Dt];
|
|
14529
|
-
if (ye + hn[
|
|
14529
|
+
if (ye + hn[$] > _e) {
|
|
14530
14530
|
Dt === 0 && (ye = _e);
|
|
14531
14531
|
break;
|
|
14532
14532
|
}
|
|
14533
|
-
ye += hn[
|
|
14533
|
+
ye += hn[$];
|
|
14534
14534
|
}
|
|
14535
14535
|
return ye;
|
|
14536
14536
|
}, wt = () => {
|
|
@@ -14693,13 +14693,13 @@ const $1 = bt("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
14693
14693
|
break;
|
|
14694
14694
|
}
|
|
14695
14695
|
}, St = mn();
|
|
14696
|
-
return /* @__PURE__ */
|
|
14696
|
+
return /* @__PURE__ */ U(ale, A({
|
|
14697
14697
|
className: Re(K.root, d),
|
|
14698
14698
|
ownerState: W,
|
|
14699
14699
|
ref: n,
|
|
14700
14700
|
as: p
|
|
14701
14701
|
}, P, {
|
|
14702
|
-
children: [St.scrollButtonStart, St.scrollbarSizeListener, /* @__PURE__ */
|
|
14702
|
+
children: [St.scrollButtonStart, St.scrollbarSizeListener, /* @__PURE__ */ U(ole, {
|
|
14703
14703
|
className: K.scroller,
|
|
14704
14704
|
ownerState: W,
|
|
14705
14705
|
style: {
|
|
@@ -14775,7 +14775,7 @@ const dle = ["autoComplete", "autoFocus", "children", "className", "color", "def
|
|
|
14775
14775
|
select: O = !1,
|
|
14776
14776
|
SelectProps: M,
|
|
14777
14777
|
type: B,
|
|
14778
|
-
value:
|
|
14778
|
+
value: $,
|
|
14779
14779
|
variant: G = "outlined"
|
|
14780
14780
|
} = i, W = Ae(i, dle), K = A({}, i, {
|
|
14781
14781
|
autoFocus: a,
|
|
@@ -14801,7 +14801,7 @@ const dle = ["autoComplete", "autoFocus", "children", "className", "color", "def
|
|
|
14801
14801
|
maxRows: T,
|
|
14802
14802
|
minRows: S,
|
|
14803
14803
|
type: B,
|
|
14804
|
-
value:
|
|
14804
|
+
value: $,
|
|
14805
14805
|
id: pe,
|
|
14806
14806
|
inputRef: E,
|
|
14807
14807
|
onBlur: x,
|
|
@@ -14810,7 +14810,7 @@ const dle = ["autoComplete", "autoFocus", "children", "className", "color", "def
|
|
|
14810
14810
|
placeholder: P,
|
|
14811
14811
|
inputProps: b
|
|
14812
14812
|
}, xe, y));
|
|
14813
|
-
return /* @__PURE__ */
|
|
14813
|
+
return /* @__PURE__ */ U(mle, A({
|
|
14814
14814
|
className: Re(te.root, s),
|
|
14815
14815
|
disabled: u,
|
|
14816
14816
|
error: d,
|
|
@@ -14830,7 +14830,7 @@ const dle = ["autoComplete", "autoFocus", "children", "className", "color", "def
|
|
|
14830
14830
|
"aria-describedby": Fe,
|
|
14831
14831
|
id: pe,
|
|
14832
14832
|
labelId: se,
|
|
14833
|
-
value:
|
|
14833
|
+
value: $,
|
|
14834
14834
|
input: J
|
|
14835
14835
|
}, M, {
|
|
14836
14836
|
children: o
|
|
@@ -20454,13 +20454,13 @@ function oa({
|
|
|
20454
20454
|
cellSpacing: "0",
|
|
20455
20455
|
cellPadding: "0",
|
|
20456
20456
|
style: { ...h, tableLayout: "fixed" },
|
|
20457
|
-
children: /* @__PURE__ */
|
|
20458
|
-
/* @__PURE__ */
|
|
20457
|
+
children: /* @__PURE__ */ U("tbody", { children: [
|
|
20458
|
+
/* @__PURE__ */ U("tr", { style: { height: `${i.top}px` }, className: c ? `t${t}` : `it${t}`, children: [
|
|
20459
20459
|
/* @__PURE__ */ g("td", { style: y, className: c ? `l${t}` : `il${t}` }),
|
|
20460
20460
|
/* @__PURE__ */ g("td", { style: { width: "100%" } }),
|
|
20461
20461
|
/* @__PURE__ */ g("td", { style: E, className: c ? `r${t}` : `ir${t}` })
|
|
20462
20462
|
] }),
|
|
20463
|
-
/* @__PURE__ */
|
|
20463
|
+
/* @__PURE__ */ U("tr", { children: [
|
|
20464
20464
|
/* @__PURE__ */ g("td", { style: y, className: c ? `l${t}` : `il${t}` }),
|
|
20465
20465
|
/* @__PURE__ */ g(
|
|
20466
20466
|
"td",
|
|
@@ -20473,7 +20473,7 @@ function oa({
|
|
|
20473
20473
|
),
|
|
20474
20474
|
/* @__PURE__ */ g("td", { style: E, className: c ? `r${t}` : `ir${t}` })
|
|
20475
20475
|
] }),
|
|
20476
|
-
/* @__PURE__ */
|
|
20476
|
+
/* @__PURE__ */ U("tr", { style: { height: `${i.bottom}px` }, className: c ? `b${t}` : `ib${t}`, children: [
|
|
20477
20477
|
/* @__PURE__ */ g("td", { style: y, className: c ? `l${t}` : `il${t}` }),
|
|
20478
20478
|
/* @__PURE__ */ g("td", { style: { width: "100%" } }),
|
|
20479
20479
|
/* @__PURE__ */ g("td", { style: E, className: c ? `r${t}` : `ir${t}` })
|
|
@@ -20791,7 +20791,7 @@ function ZU({ style: t, props: e, blockId: n, isNotClient: i = !1 }) {
|
|
|
20791
20791
|
);
|
|
20792
20792
|
}
|
|
20793
20793
|
function ko({ title: t, children: e }) {
|
|
20794
|
-
return /* @__PURE__ */
|
|
20794
|
+
return /* @__PURE__ */ U(Ch, { sx: { padding: "0!important", paddingTop: "1rem!important" }, children: [
|
|
20795
20795
|
/* @__PURE__ */ g(
|
|
20796
20796
|
vn,
|
|
20797
20797
|
{
|
|
@@ -21203,14 +21203,14 @@ function hpe({
|
|
|
21203
21203
|
onChange: i
|
|
21204
21204
|
}) {
|
|
21205
21205
|
const r = pn(), { t: a } = it("inspector"), o = t.slice(30);
|
|
21206
|
-
return /* @__PURE__ */
|
|
21206
|
+
return /* @__PURE__ */ U(Sn, { spacing: 1, children: [
|
|
21207
21207
|
/* @__PURE__ */ g("div", { style: {
|
|
21208
21208
|
height: 1,
|
|
21209
21209
|
width: "100%",
|
|
21210
21210
|
margin: "8px 0",
|
|
21211
21211
|
backgroundColor: r.palette.grey[400]
|
|
21212
21212
|
} }),
|
|
21213
|
-
/* @__PURE__ */
|
|
21213
|
+
/* @__PURE__ */ U(Te, { display: "grid", gridTemplateColumns: "repeat(6, 1fr)", gap: "4px", children: [
|
|
21214
21214
|
o.map((s, l) => /* @__PURE__ */ g(
|
|
21215
21215
|
Ji,
|
|
21216
21216
|
{
|
|
@@ -21322,7 +21322,7 @@ function VA({ value: t, nullable: e, onChange: n }) {
|
|
|
21322
21322
|
t !== i && r(t || "#000000");
|
|
21323
21323
|
}, [t]), Ce(() => () => {
|
|
21324
21324
|
a && clearTimeout(a);
|
|
21325
|
-
}, [a]), /* @__PURE__ */
|
|
21325
|
+
}, [a]), /* @__PURE__ */ U(Sn, { spacing: 1, sx: gpe, children: [
|
|
21326
21326
|
/* @__PURE__ */ g(
|
|
21327
21327
|
dpe,
|
|
21328
21328
|
{
|
|
@@ -21348,7 +21348,7 @@ function VA({ value: t, nullable: e, onChange: n }) {
|
|
|
21348
21348
|
}
|
|
21349
21349
|
}
|
|
21350
21350
|
),
|
|
21351
|
-
/* @__PURE__ */
|
|
21351
|
+
/* @__PURE__ */ U(Te, { pt: 1, display: "flex", gap: 1, alignItems: "center", children: [
|
|
21352
21352
|
/* @__PURE__ */ g(
|
|
21353
21353
|
mpe,
|
|
21354
21354
|
{
|
|
@@ -21437,12 +21437,12 @@ function P8({ label: t, defaultValue: e, onChange: n, nullable: i, compact: r =
|
|
|
21437
21437
|
children: /* @__PURE__ */ g(VA, { value: l || "", nullable: i, onChange: (b) => f(b) })
|
|
21438
21438
|
}
|
|
21439
21439
|
);
|
|
21440
|
-
return r ? /* @__PURE__ */
|
|
21440
|
+
return r ? /* @__PURE__ */ U(tt, { children: [
|
|
21441
21441
|
h,
|
|
21442
21442
|
_
|
|
21443
|
-
] }) : /* @__PURE__ */
|
|
21443
|
+
] }) : /* @__PURE__ */ U(Li, { children: [
|
|
21444
21444
|
/* @__PURE__ */ g(Bn, { label: t }),
|
|
21445
|
-
/* @__PURE__ */
|
|
21445
|
+
/* @__PURE__ */ U(Sn, { direction: "row", alignContent: "center", spacing: 1, children: [
|
|
21446
21446
|
h,
|
|
21447
21447
|
m()
|
|
21448
21448
|
] }),
|
|
@@ -21491,7 +21491,7 @@ function zu({ label: t, children: e, defaultValue: n, onChange: i }) {
|
|
|
21491
21491
|
const [r, a] = ae(n);
|
|
21492
21492
|
return Ce(() => {
|
|
21493
21493
|
n !== r && a(n);
|
|
21494
|
-
}, [n]), /* @__PURE__ */
|
|
21494
|
+
}, [n]), /* @__PURE__ */ U(Li, { children: [
|
|
21495
21495
|
/* @__PURE__ */ g(Bn, { label: t }),
|
|
21496
21496
|
/* @__PURE__ */ g(Te, { sx: { ...Zx, paddingLeft: "0px", paddingRight: "0px" }, children: /* @__PURE__ */ g(
|
|
21497
21497
|
af,
|
|
@@ -21597,9 +21597,9 @@ function _i({
|
|
|
21597
21597
|
const v = u - 1;
|
|
21598
21598
|
f(v);
|
|
21599
21599
|
};
|
|
21600
|
-
return /* @__PURE__ */
|
|
21600
|
+
return /* @__PURE__ */ U(Li, { children: [
|
|
21601
21601
|
/* @__PURE__ */ g(Bn, { label: e }),
|
|
21602
|
-
/* @__PURE__ */
|
|
21602
|
+
/* @__PURE__ */ U(
|
|
21603
21603
|
Sn,
|
|
21604
21604
|
{
|
|
21605
21605
|
direction: "row",
|
|
@@ -21624,7 +21624,7 @@ function _i({
|
|
|
21624
21624
|
}
|
|
21625
21625
|
}
|
|
21626
21626
|
),
|
|
21627
|
-
/* @__PURE__ */
|
|
21627
|
+
/* @__PURE__ */ U(_pe, { children: [
|
|
21628
21628
|
/* @__PURE__ */ g(
|
|
21629
21629
|
bpe,
|
|
21630
21630
|
{
|
|
@@ -21638,7 +21638,7 @@ function _i({
|
|
|
21638
21638
|
step: s
|
|
21639
21639
|
}
|
|
21640
21640
|
),
|
|
21641
|
-
/* @__PURE__ */
|
|
21641
|
+
/* @__PURE__ */ U(Te, { sx: { display: "flex", flexDirection: "column", ml: 0.5 }, children: [
|
|
21642
21642
|
/* @__PURE__ */ g(
|
|
21643
21643
|
EM,
|
|
21644
21644
|
{
|
|
@@ -21751,8 +21751,8 @@ function ype({
|
|
|
21751
21751
|
p(v), r({ sizeMobile: v, sizeMobilePaddingSidesLinked: !0 });
|
|
21752
21752
|
}
|
|
21753
21753
|
}, E = m();
|
|
21754
|
-
return /* @__PURE__ */
|
|
21755
|
-
/* @__PURE__ */
|
|
21754
|
+
return /* @__PURE__ */ U(Sn, { spacing: 2, children: [
|
|
21755
|
+
/* @__PURE__ */ U(
|
|
21756
21756
|
zu,
|
|
21757
21757
|
{
|
|
21758
21758
|
label: c,
|
|
@@ -21766,8 +21766,8 @@ function ype({
|
|
|
21766
21766
|
]
|
|
21767
21767
|
}
|
|
21768
21768
|
),
|
|
21769
|
-
E === "custom" && /* @__PURE__ */
|
|
21770
|
-
/* @__PURE__ */
|
|
21769
|
+
E === "custom" && /* @__PURE__ */ U(Sn, { spacing: 2, alignItems: "flexStart", pb: 1, children: [
|
|
21770
|
+
/* @__PURE__ */ U(Sn, { flexDirection: "row", justifyContent: "space-between", alignItems: "center", width: "100%", children: [
|
|
21771
21771
|
/* @__PURE__ */ g(Bn, { label: l("inputs.responsiveSize.customPadding") }),
|
|
21772
21772
|
/* @__PURE__ */ g(En, { title: l(f ? "lockValues.unlockTooltip" : "lockValues.lockTooltip"), children: /* @__PURE__ */ g(
|
|
21773
21773
|
Fn,
|
|
@@ -21797,7 +21797,7 @@ function ype({
|
|
|
21797
21797
|
marks: s > 1,
|
|
21798
21798
|
max: h
|
|
21799
21799
|
}
|
|
21800
|
-
) : /* @__PURE__ */
|
|
21800
|
+
) : /* @__PURE__ */ U(tt, { children: [
|
|
21801
21801
|
/* @__PURE__ */ g(
|
|
21802
21802
|
_i,
|
|
21803
21803
|
{
|
|
@@ -21870,18 +21870,18 @@ function vpe({
|
|
|
21870
21870
|
} else
|
|
21871
21871
|
n({ fullWidthMobile: u });
|
|
21872
21872
|
}, l = o();
|
|
21873
|
-
return /* @__PURE__ */
|
|
21873
|
+
return /* @__PURE__ */ U(
|
|
21874
21874
|
zu,
|
|
21875
21875
|
{
|
|
21876
21876
|
label: i,
|
|
21877
21877
|
defaultValue: l ? "FULL_WIDTH" : "AUTO",
|
|
21878
21878
|
onChange: s,
|
|
21879
21879
|
children: [
|
|
21880
|
-
/* @__PURE__ */ g(Cn, { value: "FULL_WIDTH", children: /* @__PURE__ */
|
|
21880
|
+
/* @__PURE__ */ g(Cn, { value: "FULL_WIDTH", children: /* @__PURE__ */ U(Te, { sx: { display: "flex", alignItems: "center", justifyContent: "center", gap: 0.75 }, children: [
|
|
21881
21881
|
/* @__PURE__ */ g(Yde, { fontSize: "small" }),
|
|
21882
21882
|
/* @__PURE__ */ g("span", { children: a("inputs.width.full") })
|
|
21883
21883
|
] }) }),
|
|
21884
|
-
/* @__PURE__ */ g(Cn, { value: "AUTO", children: /* @__PURE__ */
|
|
21884
|
+
/* @__PURE__ */ g(Cn, { value: "AUTO", children: /* @__PURE__ */ U(Te, { sx: { display: "flex", alignItems: "center", justifyContent: "center", gap: 0.75 }, children: [
|
|
21885
21885
|
/* @__PURE__ */ g(jde, { fontSize: "small" }),
|
|
21886
21886
|
/* @__PURE__ */ g("span", { children: a("inputs.width.auto") })
|
|
21887
21887
|
] }) })
|
|
@@ -21912,7 +21912,7 @@ function vp({ helperText: t, label: e, placeholder: n, rows: i, InputProps: r, d
|
|
|
21912
21912
|
const c = Epe((d) => {
|
|
21913
21913
|
o(d);
|
|
21914
21914
|
}, 150), u = typeof i == "number" && i > 1;
|
|
21915
|
-
return /* @__PURE__ */
|
|
21915
|
+
return /* @__PURE__ */ U("div", { style: { display: "flex", flexDirection: "column", gap: "4px" }, children: [
|
|
21916
21916
|
/* @__PURE__ */ g(Bn, { label: e }),
|
|
21917
21917
|
/* @__PURE__ */ g(
|
|
21918
21918
|
rf,
|
|
@@ -21959,7 +21959,7 @@ function Spe({ onClick: t, disabled: e, primary: n = !1 }) {
|
|
|
21959
21959
|
);
|
|
21960
21960
|
}
|
|
21961
21961
|
function Cpe({ imageUrl: t, saving: e = !1 }) {
|
|
21962
|
-
return /* @__PURE__ */
|
|
21962
|
+
return /* @__PURE__ */ U(Nie, { sx: { position: "relative" }, children: [
|
|
21963
21963
|
e && /* @__PURE__ */ g(
|
|
21964
21964
|
Sn,
|
|
21965
21965
|
{
|
|
@@ -21994,7 +21994,7 @@ function Cpe({ imageUrl: t, saving: e = !1 }) {
|
|
|
21994
21994
|
] });
|
|
21995
21995
|
}
|
|
21996
21996
|
function Tpe({ value: t, onChange: e, disabled: n }) {
|
|
21997
|
-
return /* @__PURE__ */
|
|
21997
|
+
return /* @__PURE__ */ U(tt, { children: [
|
|
21998
21998
|
/* @__PURE__ */ g(
|
|
21999
21999
|
vn,
|
|
22000
22000
|
{
|
|
@@ -22121,7 +22121,7 @@ function L8({ src: t, style: e }) {
|
|
|
22121
22121
|
y();
|
|
22122
22122
|
}, [t]);
|
|
22123
22123
|
const T = !c || d;
|
|
22124
|
-
return /* @__PURE__ */
|
|
22124
|
+
return /* @__PURE__ */ U(tt, { children: [
|
|
22125
22125
|
/* @__PURE__ */ g(
|
|
22126
22126
|
Ji,
|
|
22127
22127
|
{
|
|
@@ -22140,18 +22140,18 @@ function L8({ src: t, style: e }) {
|
|
|
22140
22140
|
maxWidth: "sm",
|
|
22141
22141
|
fullWidth: !0,
|
|
22142
22142
|
PaperProps: { sx: { bgcolor: "background.paper", color: "text.primary", borderRadius: "8px" } },
|
|
22143
|
-
children: /* @__PURE__ */
|
|
22143
|
+
children: /* @__PURE__ */ U("form", { onSubmit: (S) => {
|
|
22144
22144
|
S.preventDefault(), E();
|
|
22145
22145
|
}, children: [
|
|
22146
|
-
/* @__PURE__ */
|
|
22146
|
+
/* @__PURE__ */ U(Wre, { sx: { fontWeight: 700, fontSize: "24px", color: f ? "error.main" : "inherit" }, children: [
|
|
22147
22147
|
n(f ? "inputs.aiImageGeneration.titleError" : a ? "inputs.aiImageGeneration.titleLoading" : c ? "inputs.aiImageGeneration.titleReady" : "inputs.aiImageGeneration.titleCreate"),
|
|
22148
22148
|
/* @__PURE__ */ g(Spe, { onClick: y, disabled: a, primary: !0 })
|
|
22149
22149
|
] }),
|
|
22150
|
-
/* @__PURE__ */
|
|
22150
|
+
/* @__PURE__ */ U(Fre, { children: [
|
|
22151
22151
|
/* @__PURE__ */ g(Hre, { sx: { pb: 1, color: f ? "error.dark" : "inherit" }, children: n(f ? "inputs.aiImageGeneration.descriptionError" : a ? "inputs.aiImageGeneration.descriptionLoading" : T ? "inputs.aiImageGeneration.descriptionCreate" : "inputs.aiImageGeneration.descriptionReady") }),
|
|
22152
|
-
c && !d ? /* @__PURE__ */
|
|
22152
|
+
c && !d ? /* @__PURE__ */ U(Sn, { sx: { position: "relative" }, children: [
|
|
22153
22153
|
/* @__PURE__ */ g(Cpe, { imageUrl: c, saving: h }),
|
|
22154
|
-
/* @__PURE__ */
|
|
22154
|
+
/* @__PURE__ */ U(Yl, { variant: "outlined", severity: "warning", icon: !1, children: [
|
|
22155
22155
|
n("inputs.aiImageGeneration.warningRegenerate"),
|
|
22156
22156
|
" ",
|
|
22157
22157
|
/* @__PURE__ */ g("b", { children: n("inputs.aiImageGeneration.warningInsertFirst") }),
|
|
@@ -22179,7 +22179,7 @@ function L8({ src: t, style: e }) {
|
|
|
22179
22179
|
}
|
|
22180
22180
|
)
|
|
22181
22181
|
] }),
|
|
22182
|
-
!a && /* @__PURE__ */
|
|
22182
|
+
!a && /* @__PURE__ */ U(Nre, { className: "p-6", children: [
|
|
22183
22183
|
c && !d && /* @__PURE__ */ g(
|
|
22184
22184
|
Ji,
|
|
22185
22185
|
{
|
|
@@ -22199,7 +22199,7 @@ function L8({ src: t, style: e }) {
|
|
|
22199
22199
|
children: n("inputs.aiImageGeneration.cancel")
|
|
22200
22200
|
}
|
|
22201
22201
|
),
|
|
22202
|
-
/* @__PURE__ */
|
|
22202
|
+
/* @__PURE__ */ U(
|
|
22203
22203
|
Ji,
|
|
22204
22204
|
{
|
|
22205
22205
|
startIcon: c && !d ? /* @__PURE__ */ g(Zue, { className: "w-4 h-4" }) : /* @__PURE__ */ g(Kx, { className: "w-4 h-4" }),
|
|
@@ -22439,10 +22439,10 @@ const Dpe = ({
|
|
|
22439
22439
|
} finally {
|
|
22440
22440
|
v(!1);
|
|
22441
22441
|
}
|
|
22442
|
-
},
|
|
22442
|
+
}, $ = async () => {
|
|
22443
22443
|
b.trim() && await B(b.trim()) && O({ url: b.trim() });
|
|
22444
22444
|
}, G = (q) => {
|
|
22445
|
-
q.key === "Enter" &&
|
|
22445
|
+
q.key === "Enter" && $();
|
|
22446
22446
|
}, W = (q) => {
|
|
22447
22447
|
y(q.target.value), T && S(""), C && k(!1);
|
|
22448
22448
|
}, K = (q) => {
|
|
@@ -22560,8 +22560,8 @@ const Dpe = ({
|
|
|
22560
22560
|
const q = o(t);
|
|
22561
22561
|
d(q), c(t || null), y(q.url || "");
|
|
22562
22562
|
}
|
|
22563
|
-
}, [t]), /* @__PURE__ */
|
|
22564
|
-
/* @__PURE__ */
|
|
22563
|
+
}, [t]), /* @__PURE__ */ U(Li, { children: [
|
|
22564
|
+
/* @__PURE__ */ U(Te, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
22565
22565
|
/* @__PURE__ */ g(Bn, { label: r("inputs.backgroundImage.label") }),
|
|
22566
22566
|
!R && /* @__PURE__ */ g(
|
|
22567
22567
|
En,
|
|
@@ -22588,14 +22588,14 @@ const Dpe = ({
|
|
|
22588
22588
|
}
|
|
22589
22589
|
)
|
|
22590
22590
|
] }),
|
|
22591
|
-
D ? /* @__PURE__ */ g(Te, { sx: { mb: 2 }, children: D }) : /* @__PURE__ */ g("div", { style: { display: "flex", gap: 8 }, children: w ? /* @__PURE__ */
|
|
22591
|
+
D ? /* @__PURE__ */ g(Te, { sx: { mb: 2 }, children: D }) : /* @__PURE__ */ g("div", { style: { display: "flex", gap: 8 }, children: w ? /* @__PURE__ */ U(
|
|
22592
22592
|
Te,
|
|
22593
22593
|
{
|
|
22594
22594
|
sx: {
|
|
22595
22595
|
width: "100%"
|
|
22596
22596
|
},
|
|
22597
22597
|
children: [
|
|
22598
|
-
/* @__PURE__ */
|
|
22598
|
+
/* @__PURE__ */ U(Sn, { direction: "row", spacing: 1, children: [
|
|
22599
22599
|
/* @__PURE__ */ g(
|
|
22600
22600
|
rf,
|
|
22601
22601
|
{
|
|
@@ -22613,7 +22613,7 @@ const Dpe = ({
|
|
|
22613
22613
|
Ji,
|
|
22614
22614
|
{
|
|
22615
22615
|
variant: "contained",
|
|
22616
|
-
onClick:
|
|
22616
|
+
onClick: $,
|
|
22617
22617
|
disabled: !b.trim() || E,
|
|
22618
22618
|
sx: {
|
|
22619
22619
|
minWidth: "auto",
|
|
@@ -22659,7 +22659,7 @@ const Dpe = ({
|
|
|
22659
22659
|
children: r("inputs.common.svgWarning")
|
|
22660
22660
|
}
|
|
22661
22661
|
),
|
|
22662
|
-
u.url && /* @__PURE__ */
|
|
22662
|
+
u.url && /* @__PURE__ */ U(Te, { sx: {
|
|
22663
22663
|
position: "relative",
|
|
22664
22664
|
maxWidth: "50%",
|
|
22665
22665
|
display: "block",
|
|
@@ -22708,8 +22708,8 @@ const Dpe = ({
|
|
|
22708
22708
|
] })
|
|
22709
22709
|
]
|
|
22710
22710
|
}
|
|
22711
|
-
) : /* @__PURE__ */
|
|
22712
|
-
u.url && /* @__PURE__ */
|
|
22711
|
+
) : /* @__PURE__ */ U(tt, { children: [
|
|
22712
|
+
u.url && /* @__PURE__ */ U(Te, { sx: { position: "relative", maxWidth: "40%", minWidth: "40%" }, children: [
|
|
22713
22713
|
/* @__PURE__ */ g("div", { style: {
|
|
22714
22714
|
borderRadius: "8px",
|
|
22715
22715
|
border: `2px solid ${a.palette.divider}`,
|
|
@@ -22753,7 +22753,7 @@ const Dpe = ({
|
|
|
22753
22753
|
}
|
|
22754
22754
|
)
|
|
22755
22755
|
] }),
|
|
22756
|
-
/* @__PURE__ */
|
|
22756
|
+
/* @__PURE__ */ U(
|
|
22757
22757
|
Te,
|
|
22758
22758
|
{
|
|
22759
22759
|
onDragOver: te,
|
|
@@ -22772,7 +22772,7 @@ const Dpe = ({
|
|
|
22772
22772
|
},
|
|
22773
22773
|
children: [
|
|
22774
22774
|
/* @__PURE__ */ g(Te, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ g(x8, { sx: { fontSize: 32, color: "primary" } }) }),
|
|
22775
|
-
/* @__PURE__ */
|
|
22775
|
+
/* @__PURE__ */ U("label", { style: { cursor: "pointer" }, children: [
|
|
22776
22776
|
/* @__PURE__ */ g(
|
|
22777
22777
|
"input",
|
|
22778
22778
|
{
|
|
@@ -22802,7 +22802,7 @@ const Dpe = ({
|
|
|
22802
22802
|
children: r("inputs.common.uploadFile")
|
|
22803
22803
|
}
|
|
22804
22804
|
),
|
|
22805
|
-
/* @__PURE__ */
|
|
22805
|
+
/* @__PURE__ */ U(
|
|
22806
22806
|
vn,
|
|
22807
22807
|
{
|
|
22808
22808
|
component: "span",
|
|
@@ -22819,10 +22819,10 @@ const Dpe = ({
|
|
|
22819
22819
|
}
|
|
22820
22820
|
)
|
|
22821
22821
|
] }) }),
|
|
22822
|
-
u.url && /* @__PURE__ */
|
|
22823
|
-
/* @__PURE__ */
|
|
22822
|
+
u.url && /* @__PURE__ */ U(Te, { sx: { mt: 2 }, children: [
|
|
22823
|
+
/* @__PURE__ */ U(Te, { sx: { mb: 2 }, children: [
|
|
22824
22824
|
/* @__PURE__ */ g(Bn, { label: r("inputs.backgroundImage.fillType") }),
|
|
22825
|
-
/* @__PURE__ */
|
|
22825
|
+
/* @__PURE__ */ U(
|
|
22826
22826
|
af,
|
|
22827
22827
|
{
|
|
22828
22828
|
value: u.size,
|
|
@@ -22833,15 +22833,15 @@ const Dpe = ({
|
|
|
22833
22833
|
size: "small",
|
|
22834
22834
|
fullWidth: !0,
|
|
22835
22835
|
children: [
|
|
22836
|
-
/* @__PURE__ */ g(Cn, { value: "cover", children: /* @__PURE__ */
|
|
22836
|
+
/* @__PURE__ */ g(Cn, { value: "cover", children: /* @__PURE__ */ U(Te, { sx: { display: "flex", alignItems: "center", justifyContent: "center", gap: 0.75 }, children: [
|
|
22837
22837
|
/* @__PURE__ */ g(o8, { fontSize: "small" }),
|
|
22838
22838
|
/* @__PURE__ */ g("span", { children: r("inputs.backgroundImage.fillOptions.cover") })
|
|
22839
22839
|
] }) }),
|
|
22840
|
-
/* @__PURE__ */ g(Cn, { value: "contain", children: /* @__PURE__ */
|
|
22840
|
+
/* @__PURE__ */ g(Cn, { value: "contain", children: /* @__PURE__ */ U(Te, { sx: { display: "flex", alignItems: "center", justifyContent: "center", gap: 0.75 }, children: [
|
|
22841
22841
|
/* @__PURE__ */ g(u8, { fontSize: "small" }),
|
|
22842
22842
|
/* @__PURE__ */ g("span", { children: r("inputs.backgroundImage.fillOptions.contain") })
|
|
22843
22843
|
] }) }),
|
|
22844
|
-
/* @__PURE__ */ g(Cn, { value: "auto", children: /* @__PURE__ */
|
|
22844
|
+
/* @__PURE__ */ g(Cn, { value: "auto", children: /* @__PURE__ */ U(Te, { sx: { display: "flex", alignItems: "center", justifyContent: "center", gap: 0.75 }, children: [
|
|
22845
22845
|
/* @__PURE__ */ g(Jue, { fontSize: "small" }),
|
|
22846
22846
|
/* @__PURE__ */ g("span", { children: r("inputs.backgroundImage.fillOptions.auto") })
|
|
22847
22847
|
] }) })
|
|
@@ -22849,10 +22849,10 @@ const Dpe = ({
|
|
|
22849
22849
|
}
|
|
22850
22850
|
)
|
|
22851
22851
|
] }),
|
|
22852
|
-
/* @__PURE__ */
|
|
22853
|
-
/* @__PURE__ */
|
|
22852
|
+
/* @__PURE__ */ U(Sn, { direction: "row", spacing: 2, sx: { mb: 2 }, children: [
|
|
22853
|
+
/* @__PURE__ */ U("div", { style: { flex: 1 }, children: [
|
|
22854
22854
|
/* @__PURE__ */ g(Bn, { label: r("inputs.backgroundImage.repeat") }),
|
|
22855
|
-
/* @__PURE__ */
|
|
22855
|
+
/* @__PURE__ */ U(
|
|
22856
22856
|
oc,
|
|
22857
22857
|
{
|
|
22858
22858
|
style: { width: "100%" },
|
|
@@ -22868,7 +22868,7 @@ const Dpe = ({
|
|
|
22868
22868
|
}
|
|
22869
22869
|
)
|
|
22870
22870
|
] }),
|
|
22871
|
-
/* @__PURE__ */
|
|
22871
|
+
/* @__PURE__ */ U("div", { style: { flex: 1 }, children: [
|
|
22872
22872
|
/* @__PURE__ */ g(Bn, { label: r("inputs.backgroundImage.position") }),
|
|
22873
22873
|
/* @__PURE__ */ g(
|
|
22874
22874
|
oc,
|
|
@@ -22879,7 +22879,7 @@ const Dpe = ({
|
|
|
22879
22879
|
onChange: (q) => O({ position: q.target.value }),
|
|
22880
22880
|
renderValue: (q) => {
|
|
22881
22881
|
const le = String(q ?? "");
|
|
22882
|
-
return /* @__PURE__ */
|
|
22882
|
+
return /* @__PURE__ */ U(Te, { sx: { display: "flex", alignItems: "center", gap: 1, paddingRight: "1rem" }, children: [
|
|
22883
22883
|
X(le),
|
|
22884
22884
|
J(le)
|
|
22885
22885
|
] });
|
|
@@ -22901,7 +22901,7 @@ const Dpe = ({
|
|
|
22901
22901
|
padding: "0.5rem 1rem 0.5rem 0.5rem!important "
|
|
22902
22902
|
},
|
|
22903
22903
|
value: q,
|
|
22904
|
-
children: /* @__PURE__ */
|
|
22904
|
+
children: /* @__PURE__ */ U(Te, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
22905
22905
|
X(q),
|
|
22906
22906
|
J(q)
|
|
22907
22907
|
] })
|
|
@@ -22924,8 +22924,8 @@ const Dpe = ({
|
|
|
22924
22924
|
children: r("inputs.common.svgWarning")
|
|
22925
22925
|
}
|
|
22926
22926
|
),
|
|
22927
|
-
(!D && ay() && !w || D && m) && /* @__PURE__ */
|
|
22928
|
-
/* @__PURE__ */
|
|
22927
|
+
(!D && ay() && !w || D && m) && /* @__PURE__ */ U(tt, { children: [
|
|
22928
|
+
/* @__PURE__ */ U(Sn, { direction: "row", alignItems: "center", spacing: 1, sx: { mt: 2 }, children: [
|
|
22929
22929
|
/* @__PURE__ */ g(_r, { sx: { flexGrow: 1 } }),
|
|
22930
22930
|
/* @__PURE__ */ g(vn, { sx: { color: "text.secondary" }, children: r("inputs.backgroundImage.or") }),
|
|
22931
22931
|
/* @__PURE__ */ g(_r, { sx: { flexGrow: 1 } })
|
|
@@ -22946,7 +22946,7 @@ const Dpe = ({
|
|
|
22946
22946
|
};
|
|
22947
22947
|
function Dd({ label: t, defaultValue: e, onChange: n, ...i }) {
|
|
22948
22948
|
const [r, a] = ae(e ?? 0);
|
|
22949
|
-
return e != r && a(e), /* @__PURE__ */
|
|
22949
|
+
return e != r && a(e), /* @__PURE__ */ U(Li, { children: [
|
|
22950
22950
|
/* @__PURE__ */ g(Bn, { label: t }),
|
|
22951
22951
|
/* @__PURE__ */ g(
|
|
22952
22952
|
_i,
|
|
@@ -23027,10 +23027,10 @@ const CM = ({ mobile: t = !1, label: e, borderColor: n, borderTop: i, borderBott
|
|
|
23027
23027
|
};
|
|
23028
23028
|
s(D);
|
|
23029
23029
|
};
|
|
23030
|
-
return /* @__PURE__ */
|
|
23031
|
-
/* @__PURE__ */
|
|
23030
|
+
return /* @__PURE__ */ U("div", { children: [
|
|
23031
|
+
/* @__PURE__ */ U(Sn, { direction: "row", justifyContent: "space-between", alignItems: "center", width: "100%", children: [
|
|
23032
23032
|
/* @__PURE__ */ g(Bn, { label: e }),
|
|
23033
|
-
/* @__PURE__ */
|
|
23033
|
+
/* @__PURE__ */ U(Sn, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
23034
23034
|
/* @__PURE__ */ g(au, { defaultValue: h, onChange: S, compact: !0 }),
|
|
23035
23035
|
/* @__PURE__ */ g(En, { title: u(v ? "lockValues.unlockTooltip" : "lockValues.lockTooltip"), children: /* @__PURE__ */ g(
|
|
23036
23036
|
Fn,
|
|
@@ -23059,7 +23059,7 @@ const CM = ({ mobile: t = !1, label: e, borderColor: n, borderTop: i, borderBott
|
|
|
23059
23059
|
onChange: C
|
|
23060
23060
|
}
|
|
23061
23061
|
),
|
|
23062
|
-
!v && /* @__PURE__ */
|
|
23062
|
+
!v && /* @__PURE__ */ U(Sn, { spacing: 2, children: [
|
|
23063
23063
|
/* @__PURE__ */ g(
|
|
23064
23064
|
Dd,
|
|
23065
23065
|
{
|
|
@@ -23119,7 +23119,7 @@ function B8({ label: t, onChange: e, defaultValue: n }) {
|
|
|
23119
23119
|
const i = "INHERIT", [r, a] = ae(n ?? i);
|
|
23120
23120
|
return Ce(() => {
|
|
23121
23121
|
r !== n && a(n ?? i);
|
|
23122
|
-
}, [n]), /* @__PURE__ */
|
|
23122
|
+
}, [n]), /* @__PURE__ */ U(Li, { children: [
|
|
23123
23123
|
/* @__PURE__ */ g(Bn, { label: t }),
|
|
23124
23124
|
/* @__PURE__ */ g(
|
|
23125
23125
|
oc,
|
|
@@ -23140,7 +23140,7 @@ function TM({ label: t, defaultValue: e = 16, onChange: n, maxValue: i, minValue
|
|
|
23140
23140
|
const [o, s] = ae(e);
|
|
23141
23141
|
return Ce(() => {
|
|
23142
23142
|
o !== e && s(e);
|
|
23143
|
-
}, [e]), /* @__PURE__ */
|
|
23143
|
+
}, [e]), /* @__PURE__ */ U(Li, { children: [
|
|
23144
23144
|
/* @__PURE__ */ g(Bn, { label: t }),
|
|
23145
23145
|
/* @__PURE__ */ g(
|
|
23146
23146
|
_i,
|
|
@@ -23162,7 +23162,7 @@ function Npe({ label: t, defaultValue: e, onChange: n }) {
|
|
|
23162
23162
|
const { t: i } = it("inspector"), [r, a] = ae(e);
|
|
23163
23163
|
return Ce(() => {
|
|
23164
23164
|
r !== e && a(e);
|
|
23165
|
-
}, [e]), /* @__PURE__ */
|
|
23165
|
+
}, [e]), /* @__PURE__ */ U(
|
|
23166
23166
|
zu,
|
|
23167
23167
|
{
|
|
23168
23168
|
label: t,
|
|
@@ -23171,11 +23171,11 @@ function Npe({ label: t, defaultValue: e, onChange: n }) {
|
|
|
23171
23171
|
a(o), n(o);
|
|
23172
23172
|
},
|
|
23173
23173
|
children: [
|
|
23174
|
-
/* @__PURE__ */ g(Cn, { value: "normal", children: /* @__PURE__ */
|
|
23174
|
+
/* @__PURE__ */ g(Cn, { value: "normal", children: /* @__PURE__ */ U(Te, { sx: { display: "flex", alignItems: "center", justifyContent: "center", gap: 0.75 }, children: [
|
|
23175
23175
|
/* @__PURE__ */ g(Hde, { fontSize: "small" }),
|
|
23176
23176
|
/* @__PURE__ */ g("span", { children: i("inputs.fontWeightToggle.regular") })
|
|
23177
23177
|
] }) }),
|
|
23178
|
-
/* @__PURE__ */ g(Cn, { value: "bold", children: /* @__PURE__ */
|
|
23178
|
+
/* @__PURE__ */ g(Cn, { value: "bold", children: /* @__PURE__ */ U(Te, { sx: { display: "flex", alignItems: "center", justifyContent: "center", gap: 0.75 }, children: [
|
|
23179
23179
|
/* @__PURE__ */ g(h8, { fontSize: "small" }),
|
|
23180
23180
|
/* @__PURE__ */ g("span", { children: i("inputs.fontWeightToggle.bold") })
|
|
23181
23181
|
] }) })
|
|
@@ -23212,9 +23212,9 @@ function Ope({ label: t, onChange: e, defaultValue: n }) {
|
|
|
23212
23212
|
const i = "INHERIT", [r, a] = ae(n?.toString() ?? i);
|
|
23213
23213
|
return Ce(() => {
|
|
23214
23214
|
r !== n?.toString() && a(n?.toString() ?? i);
|
|
23215
|
-
}, [n]), /* @__PURE__ */
|
|
23215
|
+
}, [n]), /* @__PURE__ */ U(Li, { children: [
|
|
23216
23216
|
/* @__PURE__ */ g(Bn, { label: t }),
|
|
23217
|
-
/* @__PURE__ */
|
|
23217
|
+
/* @__PURE__ */ U(
|
|
23218
23218
|
oc,
|
|
23219
23219
|
{
|
|
23220
23220
|
style: { width: "100%" },
|
|
@@ -23268,8 +23268,8 @@ function xM({ label: t, defaultValue: e, onChange: n, sidesLinked: i, onSidesLin
|
|
|
23268
23268
|
}
|
|
23269
23269
|
r(p);
|
|
23270
23270
|
};
|
|
23271
|
-
return /* @__PURE__ */
|
|
23272
|
-
/* @__PURE__ */
|
|
23271
|
+
return /* @__PURE__ */ U(Li, { children: [
|
|
23272
|
+
/* @__PURE__ */ U(Sn, { flexDirection: "row", justifyContent: "space-between", alignItems: "center", width: "100%", children: [
|
|
23273
23273
|
/* @__PURE__ */ g(Bn, { label: t }),
|
|
23274
23274
|
/* @__PURE__ */ g(En, { title: o(c ? "lockValues.unlockTooltip" : "lockValues.lockTooltip"), children: /* @__PURE__ */ g(
|
|
23275
23275
|
Fn,
|
|
@@ -23297,7 +23297,7 @@ function xM({ label: t, defaultValue: e, onChange: n, sidesLinked: i, onSidesLin
|
|
|
23297
23297
|
max: 120,
|
|
23298
23298
|
marks: !0
|
|
23299
23299
|
}
|
|
23300
|
-
) : /* @__PURE__ */
|
|
23300
|
+
) : /* @__PURE__ */ U(tt, { children: [
|
|
23301
23301
|
/* @__PURE__ */ g(
|
|
23302
23302
|
_i,
|
|
23303
23303
|
{
|
|
@@ -23390,31 +23390,31 @@ const Mpe = ({ label: t, defaultValue: e, onChange: n, maxValue: i = 600, shapeS
|
|
|
23390
23390
|
}
|
|
23391
23391
|
o(y);
|
|
23392
23392
|
}, _ = typeof i == "number" ? i : Number(i) || 600, b = t || s("shape.label");
|
|
23393
|
-
return /* @__PURE__ */
|
|
23394
|
-
/* @__PURE__ */
|
|
23393
|
+
return /* @__PURE__ */ U(tt, { children: [
|
|
23394
|
+
/* @__PURE__ */ U(
|
|
23395
23395
|
zu,
|
|
23396
23396
|
{
|
|
23397
23397
|
label: b,
|
|
23398
23398
|
defaultValue: l,
|
|
23399
23399
|
onChange: f,
|
|
23400
23400
|
children: [
|
|
23401
|
-
/* @__PURE__ */ g(Cn, { value: "rectangle", children: /* @__PURE__ */
|
|
23401
|
+
/* @__PURE__ */ g(Cn, { value: "rectangle", children: /* @__PURE__ */ U(Te, { sx: { display: "flex", alignItems: "center", justifyContent: "center", gap: 0.75 }, children: [
|
|
23402
23402
|
/* @__PURE__ */ g(ude, { fontSize: "small" }),
|
|
23403
23403
|
/* @__PURE__ */ g("span", { children: s("shape.square") })
|
|
23404
23404
|
] }) }),
|
|
23405
|
-
/* @__PURE__ */ g(Cn, { value: "pill", children: /* @__PURE__ */
|
|
23405
|
+
/* @__PURE__ */ g(Cn, { value: "pill", children: /* @__PURE__ */ U(Te, { sx: { display: "flex", alignItems: "center", justifyContent: "center", gap: 0.75 }, children: [
|
|
23406
23406
|
/* @__PURE__ */ g(Mde, { fontSize: "small" }),
|
|
23407
23407
|
/* @__PURE__ */ g("span", { children: s("shape.pill") })
|
|
23408
23408
|
] }) }),
|
|
23409
|
-
/* @__PURE__ */ g(Cn, { value: "rounded", children: /* @__PURE__ */
|
|
23409
|
+
/* @__PURE__ */ g(Cn, { value: "rounded", children: /* @__PURE__ */ U(Te, { sx: { display: "flex", alignItems: "center", justifyContent: "center", gap: 0.75 }, children: [
|
|
23410
23410
|
/* @__PURE__ */ g(cd, { fontSize: "small" }),
|
|
23411
23411
|
/* @__PURE__ */ g("span", { children: s("shape.custom") })
|
|
23412
23412
|
] }) })
|
|
23413
23413
|
]
|
|
23414
23414
|
}
|
|
23415
23415
|
),
|
|
23416
|
-
l === "rounded" && /* @__PURE__ */
|
|
23417
|
-
/* @__PURE__ */
|
|
23416
|
+
l === "rounded" && /* @__PURE__ */ U(Sn, { spacing: 2, alignItems: "flexStart", pb: 1, children: [
|
|
23417
|
+
/* @__PURE__ */ U(Sn, { flexDirection: "row", justifyContent: "space-between", alignItems: "center", width: "100%", children: [
|
|
23418
23418
|
/* @__PURE__ */ g(Bn, { label: s("shape.borderRadius") }),
|
|
23419
23419
|
/* @__PURE__ */ g(En, { title: s(p ? "lockValues.unlockTooltip" : "lockValues.lockTooltip"), children: /* @__PURE__ */ g(
|
|
23420
23420
|
Fn,
|
|
@@ -23444,7 +23444,7 @@ const Mpe = ({ label: t, defaultValue: e, onChange: n, maxValue: i = 600, shapeS
|
|
|
23444
23444
|
marks: r > 1,
|
|
23445
23445
|
max: _
|
|
23446
23446
|
}
|
|
23447
|
-
) }) : /* @__PURE__ */
|
|
23447
|
+
) }) : /* @__PURE__ */ U(tt, { children: [
|
|
23448
23448
|
/* @__PURE__ */ g(
|
|
23449
23449
|
_i,
|
|
23450
23450
|
{
|
|
@@ -23505,9 +23505,9 @@ function wM({ label: t, defaultValue: e, onChange: n }) {
|
|
|
23505
23505
|
const [i, r] = ae(e ?? "left");
|
|
23506
23506
|
return Ce(() => {
|
|
23507
23507
|
e !== i && r(e ?? "left");
|
|
23508
|
-
}, [e]), /* @__PURE__ */
|
|
23508
|
+
}, [e]), /* @__PURE__ */ U(Li, { children: [
|
|
23509
23509
|
/* @__PURE__ */ g(Bn, { label: t }),
|
|
23510
|
-
/* @__PURE__ */
|
|
23510
|
+
/* @__PURE__ */ U(
|
|
23511
23511
|
zu,
|
|
23512
23512
|
{
|
|
23513
23513
|
label: "",
|
|
@@ -23685,8 +23685,8 @@ function Lpe({ data: t, setData: e }) {
|
|
|
23685
23685
|
const b = JU.safeParse(_);
|
|
23686
23686
|
b.success ? (e(b.data), n(null)) : n(b.error);
|
|
23687
23687
|
}, o = t.props?.text ?? Bl.text, s = t.props?.url ?? Bl.url, l = t.props?.fullWidth ?? Bl.fullWidth, c = t.props?.size ?? Bl.size, u = i, d = t.style?.buttonTextColor ?? t.props?.buttonTextColor ?? u?.textColor, p = t.style?.buttonBackgroundColor ?? t.props?.buttonBackgroundColor ?? Bl.buttonBackgroundColor, f = t.props?.fullWidthMobile, m = t.props?.sizeMobile, h = al();
|
|
23688
|
-
return /* @__PURE__ */
|
|
23689
|
-
h == "block-configuration" && /* @__PURE__ */
|
|
23688
|
+
return /* @__PURE__ */ U(ko, { title: r("inputs.panels.button.title"), children: [
|
|
23689
|
+
h == "block-configuration" && /* @__PURE__ */ U(tt, { children: [
|
|
23690
23690
|
/* @__PURE__ */ g(
|
|
23691
23691
|
$r,
|
|
23692
23692
|
{
|
|
@@ -23742,7 +23742,7 @@ function Lpe({ data: t, setData: e }) {
|
|
|
23742
23742
|
onChange: (_) => a({ ...t, style: _ })
|
|
23743
23743
|
}
|
|
23744
23744
|
),
|
|
23745
|
-
h === "css" && /* @__PURE__ */
|
|
23745
|
+
h === "css" && /* @__PURE__ */ U(tt, { children: [
|
|
23746
23746
|
/* @__PURE__ */ g(
|
|
23747
23747
|
au,
|
|
23748
23748
|
{
|
|
@@ -23890,7 +23890,7 @@ function ew({ style: t, columns: e, props: n, blockId: i }) {
|
|
|
23890
23890
|
fixedWidths: n?.fixedWidths,
|
|
23891
23891
|
blockId: i
|
|
23892
23892
|
}, l = t?.background ?? "", c = t?.backgroundColor, u = c ? Uu(l, c) : l, d = Qt(i), p = r === "mobile" && !!n?.stackColumnsOnMobile, f = p ? { display: "block", width: "100%" } : void 0;
|
|
23893
|
-
return /* @__PURE__ */
|
|
23893
|
+
return /* @__PURE__ */ U(
|
|
23894
23894
|
oa,
|
|
23895
23895
|
{
|
|
23896
23896
|
background: u,
|
|
@@ -23926,7 +23926,7 @@ function ew({ style: t, columns: e, props: n, blockId: i }) {
|
|
|
23926
23926
|
cellSpacing: "0",
|
|
23927
23927
|
cellPadding: "0",
|
|
23928
23928
|
style: { width: "100%", ...f },
|
|
23929
|
-
children: /* @__PURE__ */ g("tbody", { style: { width: "100%", ...f }, children: /* @__PURE__ */
|
|
23929
|
+
children: /* @__PURE__ */ g("tbody", { style: { width: "100%", ...f }, children: /* @__PURE__ */ U("tr", { style: { width: "100%", ...f }, children: [
|
|
23930
23930
|
/* @__PURE__ */ g(Q1, { index: 0, props: s, columns: e, stackMobilePreview: p }),
|
|
23931
23931
|
/* @__PURE__ */ g(Q1, { index: 1, props: s, columns: e, stackMobilePreview: p }),
|
|
23932
23932
|
/* @__PURE__ */ g(Q1, { index: 2, props: s, columns: e, stackMobilePreview: p })
|
|
@@ -23997,7 +23997,7 @@ function nfe({ data: t, updateData: e }) {
|
|
|
23997
23997
|
}
|
|
23998
23998
|
});
|
|
23999
23999
|
};
|
|
24000
|
-
return /* @__PURE__ */
|
|
24000
|
+
return /* @__PURE__ */ U(
|
|
24001
24001
|
zu,
|
|
24002
24002
|
{
|
|
24003
24003
|
label: n("inputs.alignment.label"),
|
|
@@ -24025,7 +24025,7 @@ function MM({ value: t, onChange: e, options: n }) {
|
|
|
24025
24025
|
display: "flex",
|
|
24026
24026
|
width: "100%"
|
|
24027
24027
|
},
|
|
24028
|
-
children: n.map((i) => /* @__PURE__ */ g(Cn, { value: i.value, children: /* @__PURE__ */
|
|
24028
|
+
children: n.map((i) => /* @__PURE__ */ g(Cn, { value: i.value, children: /* @__PURE__ */ U(Te, { sx: { display: "flex", alignItems: "center", justifyContent: "center", gap: 0.75 }, children: [
|
|
24029
24029
|
i.icon,
|
|
24030
24030
|
/* @__PURE__ */ g("span", { children: i.label })
|
|
24031
24031
|
] }) }, i.value))
|
|
@@ -24148,9 +24148,9 @@ const eS = ({ fractions: t, highlight: e }) => {
|
|
|
24148
24148
|
const M = O, B = 100 - p - 1;
|
|
24149
24149
|
h(Math.max(1, Math.min(M, B)));
|
|
24150
24150
|
}, D = 100 - u, P = 100 - p - m, R = E === ud;
|
|
24151
|
-
return /* @__PURE__ */
|
|
24151
|
+
return /* @__PURE__ */ U(Li, { children: [
|
|
24152
24152
|
/* @__PURE__ */ g(Bn, { label: r("inputs.layout.label") }),
|
|
24153
|
-
/* @__PURE__ */
|
|
24153
|
+
/* @__PURE__ */ U("div", { style: Al.grid, children: [
|
|
24154
24154
|
v.map((I) => /* @__PURE__ */ g(
|
|
24155
24155
|
"div",
|
|
24156
24156
|
{
|
|
@@ -24207,7 +24207,7 @@ const eS = ({ fractions: t, highlight: e }) => {
|
|
|
24207
24207
|
}
|
|
24208
24208
|
)
|
|
24209
24209
|
] }),
|
|
24210
|
-
/* @__PURE__ */ g(oA, { in: l, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */
|
|
24210
|
+
/* @__PURE__ */ g(oA, { in: l, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ U(
|
|
24211
24211
|
Te,
|
|
24212
24212
|
{
|
|
24213
24213
|
sx: {
|
|
@@ -24219,8 +24219,8 @@ const eS = ({ fractions: t, highlight: e }) => {
|
|
|
24219
24219
|
bgcolor: "background.paper"
|
|
24220
24220
|
},
|
|
24221
24221
|
children: [
|
|
24222
|
-
i === 2 ? /* @__PURE__ */
|
|
24223
|
-
/* @__PURE__ */
|
|
24222
|
+
i === 2 ? /* @__PURE__ */ U(Sn, { spacing: 2, sx: { mt: 1 }, children: [
|
|
24223
|
+
/* @__PURE__ */ U(vn, { variant: "body2", color: "text.secondary", children: [
|
|
24224
24224
|
u,
|
|
24225
24225
|
"% | ",
|
|
24226
24226
|
D,
|
|
@@ -24239,8 +24239,8 @@ const eS = ({ fractions: t, highlight: e }) => {
|
|
|
24239
24239
|
}
|
|
24240
24240
|
),
|
|
24241
24241
|
/* @__PURE__ */ g(eS, { fractions: [u, D], highlight: !0 })
|
|
24242
|
-
] }) : /* @__PURE__ */
|
|
24243
|
-
/* @__PURE__ */
|
|
24242
|
+
] }) : /* @__PURE__ */ U(Sn, { spacing: 2, sx: { mt: 1 }, children: [
|
|
24243
|
+
/* @__PURE__ */ U(vn, { variant: "body2", color: "text.secondary", children: [
|
|
24244
24244
|
p,
|
|
24245
24245
|
"% | ",
|
|
24246
24246
|
m,
|
|
@@ -24248,7 +24248,7 @@ const eS = ({ fractions: t, highlight: e }) => {
|
|
|
24248
24248
|
P,
|
|
24249
24249
|
"%"
|
|
24250
24250
|
] }),
|
|
24251
|
-
/* @__PURE__ */
|
|
24251
|
+
/* @__PURE__ */ U(Te, { children: [
|
|
24252
24252
|
/* @__PURE__ */ g(vn, { variant: "caption", color: "text.secondary", component: "div", children: r("inputs.layout.custom.firstColumn") }),
|
|
24253
24253
|
/* @__PURE__ */ g(
|
|
24254
24254
|
pb,
|
|
@@ -24262,7 +24262,7 @@ const eS = ({ fractions: t, highlight: e }) => {
|
|
|
24262
24262
|
}
|
|
24263
24263
|
)
|
|
24264
24264
|
] }),
|
|
24265
|
-
/* @__PURE__ */
|
|
24265
|
+
/* @__PURE__ */ U(Te, { children: [
|
|
24266
24266
|
/* @__PURE__ */ g(vn, { variant: "caption", color: "text.secondary", component: "div", children: r("inputs.layout.custom.secondColumn") }),
|
|
24267
24267
|
/* @__PURE__ */ g(
|
|
24268
24268
|
pb,
|
|
@@ -24293,7 +24293,7 @@ const eS = ({ fractions: t, highlight: e }) => {
|
|
|
24293
24293
|
] });
|
|
24294
24294
|
};
|
|
24295
24295
|
function rfe({ label: t, tooltipTitle: e, hideWarning: n }) {
|
|
24296
|
-
return /* @__PURE__ */
|
|
24296
|
+
return /* @__PURE__ */ U(Te, { sx: { display: "flex", alignItems: "center", gap: 0.5, flexWrap: "wrap" }, children: [
|
|
24297
24297
|
/* @__PURE__ */ g(Bn, { label: t }),
|
|
24298
24298
|
!n && /* @__PURE__ */ g(En, { title: e, placement: "top", children: /* @__PURE__ */ g(
|
|
24299
24299
|
Fn,
|
|
@@ -24346,9 +24346,9 @@ function afe({ data: t, setData: e }) {
|
|
|
24346
24346
|
columns: m
|
|
24347
24347
|
};
|
|
24348
24348
|
};
|
|
24349
|
-
return /* @__PURE__ */
|
|
24350
|
-
a == "block-configuration" && /* @__PURE__ */
|
|
24351
|
-
/* @__PURE__ */
|
|
24349
|
+
return /* @__PURE__ */ U(ko, { title: s("inputs.panels.columns.title"), children: [
|
|
24350
|
+
a == "block-configuration" && /* @__PURE__ */ U(tt, { children: [
|
|
24351
|
+
/* @__PURE__ */ U(Li, { children: [
|
|
24352
24352
|
/* @__PURE__ */ g(Bn, { label: s("inputs.panels.columns.countLabel") }),
|
|
24353
24353
|
/* @__PURE__ */ g(
|
|
24354
24354
|
Te,
|
|
@@ -24404,8 +24404,8 @@ function afe({ data: t, setData: e }) {
|
|
|
24404
24404
|
}
|
|
24405
24405
|
)
|
|
24406
24406
|
] }),
|
|
24407
|
-
a == "css" && /* @__PURE__ */
|
|
24408
|
-
/* @__PURE__ */
|
|
24407
|
+
a == "css" && /* @__PURE__ */ U(tt, { children: [
|
|
24408
|
+
/* @__PURE__ */ U(Li, { children: [
|
|
24409
24409
|
/* @__PURE__ */ g(
|
|
24410
24410
|
rfe,
|
|
24411
24411
|
{
|
|
@@ -24531,7 +24531,7 @@ function U8({ style: t, children: e, blockId: n }) {
|
|
|
24531
24531
|
padding: a.padding,
|
|
24532
24532
|
width: "100%",
|
|
24533
24533
|
border: a.border,
|
|
24534
|
-
children: /* @__PURE__ */
|
|
24534
|
+
children: /* @__PURE__ */ U(tt, { children: [
|
|
24535
24535
|
r.uploading && r.id === n && /* @__PURE__ */ g("div", { style: BM, children: /* @__PURE__ */ g(
|
|
24536
24536
|
"svg",
|
|
24537
24537
|
{
|
|
@@ -24711,7 +24711,7 @@ const Kf = at().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional(), W8 = kt({
|
|
|
24711
24711
|
underline: _
|
|
24712
24712
|
});
|
|
24713
24713
|
};
|
|
24714
|
-
return /* @__PURE__ */
|
|
24714
|
+
return /* @__PURE__ */ U(Li, { children: [
|
|
24715
24715
|
/* @__PURE__ */ g(
|
|
24716
24716
|
au,
|
|
24717
24717
|
{
|
|
@@ -24721,7 +24721,7 @@ const Kf = at().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional(), W8 = kt({
|
|
|
24721
24721
|
}
|
|
24722
24722
|
),
|
|
24723
24723
|
/* @__PURE__ */ g(Bn, { label: l("inputs.links.underline") }),
|
|
24724
|
-
/* @__PURE__ */ g(Te, { sx: d.container, children: /* @__PURE__ */
|
|
24724
|
+
/* @__PURE__ */ g(Te, { sx: d.container, children: /* @__PURE__ */ U(
|
|
24725
24725
|
af,
|
|
24726
24726
|
{
|
|
24727
24727
|
value: u,
|
|
@@ -24736,7 +24736,7 @@ const Kf = at().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional(), W8 = kt({
|
|
|
24736
24736
|
}
|
|
24737
24737
|
) })
|
|
24738
24738
|
] });
|
|
24739
|
-
}, ufe = "email-builder-online", dfe = "3.6.
|
|
24739
|
+
}, ufe = "email-builder-online", dfe = "3.6.2", tS = {
|
|
24740
24740
|
name: ufe,
|
|
24741
24741
|
version: dfe
|
|
24742
24742
|
};
|
|
@@ -24745,7 +24745,7 @@ function Y8({ data: t, setData: e }) {
|
|
|
24745
24745
|
const s = W8.safeParse(o);
|
|
24746
24746
|
s.success ? (e(s.data), n(null)) : n(s.error);
|
|
24747
24747
|
};
|
|
24748
|
-
return /* @__PURE__ */
|
|
24748
|
+
return /* @__PURE__ */ U(ko, { title: i("inputs.panels.emailLayout.title"), children: [
|
|
24749
24749
|
/* @__PURE__ */ g(
|
|
24750
24750
|
au,
|
|
24751
24751
|
{
|
|
@@ -24787,8 +24787,8 @@ function Y8({ data: t, setData: e }) {
|
|
|
24787
24787
|
onChange: (o) => a({ ...t, linkGlobal: o })
|
|
24788
24788
|
}
|
|
24789
24789
|
),
|
|
24790
|
-
r && /* @__PURE__ */ g(Te, { color: "text.secondary", sx: { display: "flex", justifyContent: "flex-end", mt: 2 }, children: /* @__PURE__ */
|
|
24791
|
-
/* @__PURE__ */
|
|
24790
|
+
r && /* @__PURE__ */ g(Te, { color: "text.secondary", sx: { display: "flex", justifyContent: "flex-end", mt: 2 }, children: /* @__PURE__ */ U(Te, { sx: { textAlign: "right" }, children: [
|
|
24791
|
+
/* @__PURE__ */ U(vn, { variant: "body2", children: [
|
|
24792
24792
|
i("inputs.panels.emailLayout.version"),
|
|
24793
24793
|
": ",
|
|
24794
24794
|
tS.version
|
|
@@ -24863,8 +24863,8 @@ function hfe({ data: t, setData: e }) {
|
|
|
24863
24863
|
const s = j8.safeParse(o);
|
|
24864
24864
|
s.success ? (e(s.data), n(null)) : n(s.error);
|
|
24865
24865
|
}, a = al();
|
|
24866
|
-
return /* @__PURE__ */
|
|
24867
|
-
a == "block-configuration" && /* @__PURE__ */
|
|
24866
|
+
return /* @__PURE__ */ U(ko, { title: i("inputs.panels.heading.title"), children: [
|
|
24867
|
+
a == "block-configuration" && /* @__PURE__ */ U(tt, { children: [
|
|
24868
24868
|
/* @__PURE__ */ g(
|
|
24869
24869
|
vp,
|
|
24870
24870
|
{
|
|
@@ -24876,7 +24876,7 @@ function hfe({ data: t, setData: e }) {
|
|
|
24876
24876
|
}
|
|
24877
24877
|
}
|
|
24878
24878
|
),
|
|
24879
|
-
/* @__PURE__ */
|
|
24879
|
+
/* @__PURE__ */ U(
|
|
24880
24880
|
zu,
|
|
24881
24881
|
{
|
|
24882
24882
|
label: i("inputs.panels.heading.levelLabel"),
|
|
@@ -24885,15 +24885,15 @@ function hfe({ data: t, setData: e }) {
|
|
|
24885
24885
|
r({ ...t, props: { ...t.props, level: o } });
|
|
24886
24886
|
},
|
|
24887
24887
|
children: [
|
|
24888
|
-
/* @__PURE__ */ g(Cn, { value: "h1", children: /* @__PURE__ */
|
|
24888
|
+
/* @__PURE__ */ g(Cn, { value: "h1", children: /* @__PURE__ */ U(Te, { sx: { display: "flex", alignItems: "center", justifyContent: "center", gap: 0.75 }, children: [
|
|
24889
24889
|
/* @__PURE__ */ g(Rde, { fontSize: "small" }),
|
|
24890
24890
|
/* @__PURE__ */ g("span", { children: "H1" })
|
|
24891
24891
|
] }) }),
|
|
24892
|
-
/* @__PURE__ */ g(Cn, { value: "h2", children: /* @__PURE__ */
|
|
24892
|
+
/* @__PURE__ */ g(Cn, { value: "h2", children: /* @__PURE__ */ U(Te, { sx: { display: "flex", alignItems: "center", justifyContent: "center", gap: 0.75 }, children: [
|
|
24893
24893
|
/* @__PURE__ */ g(Ide, { fontSize: "small" }),
|
|
24894
24894
|
/* @__PURE__ */ g("span", { children: "H2" })
|
|
24895
24895
|
] }) }),
|
|
24896
|
-
/* @__PURE__ */ g(Cn, { value: "h3", children: /* @__PURE__ */
|
|
24896
|
+
/* @__PURE__ */ g(Cn, { value: "h3", children: /* @__PURE__ */ U(Te, { sx: { display: "flex", alignItems: "center", justifyContent: "center", gap: 0.75 }, children: [
|
|
24897
24897
|
/* @__PURE__ */ g(Nde, { fontSize: "small" }),
|
|
24898
24898
|
/* @__PURE__ */ g("span", { children: "H3" })
|
|
24899
24899
|
] }) })
|
|
@@ -24945,7 +24945,7 @@ function bfe({ data: t, setData: e }) {
|
|
|
24945
24945
|
const s = Q8.safeParse(o);
|
|
24946
24946
|
s.success ? (e(s.data), n(null)) : n(s.error);
|
|
24947
24947
|
}, a = al();
|
|
24948
|
-
return /* @__PURE__ */
|
|
24948
|
+
return /* @__PURE__ */ U(ko, { title: i("inputs.panels.html.title"), children: [
|
|
24949
24949
|
a == "block-configuration" && /* @__PURE__ */ g(tt, { children: /* @__PURE__ */ g(
|
|
24950
24950
|
vp,
|
|
24951
24951
|
{
|
|
@@ -25025,7 +25025,7 @@ function J8({ style: t, props: e, blockId: n, isNotClient: i = !1 }) {
|
|
|
25025
25025
|
});
|
|
25026
25026
|
}
|
|
25027
25027
|
}, 100);
|
|
25028
|
-
}, b = /* @__PURE__ */
|
|
25028
|
+
}, b = /* @__PURE__ */ U(tt, { children: [
|
|
25029
25029
|
/* @__PURE__ */ g(
|
|
25030
25030
|
"img",
|
|
25031
25031
|
{
|
|
@@ -25130,7 +25130,7 @@ const vfe = (t, e, n) => {
|
|
|
25130
25130
|
const B = jA.safeParse(M);
|
|
25131
25131
|
B.success ? (e(B.data), l(null)) : l(B.error);
|
|
25132
25132
|
}, S = (M, B) => {
|
|
25133
|
-
const
|
|
25133
|
+
const $ = M.toLowerCase(), G = $.includes(".svg") || $.includes("svg"), W = B && (B.includes("image/svg+xml") || B.includes("svg"));
|
|
25134
25134
|
return G || !!W;
|
|
25135
25135
|
}, C = async (M) => {
|
|
25136
25136
|
try {
|
|
@@ -25140,13 +25140,13 @@ const vfe = (t, e, n) => {
|
|
|
25140
25140
|
} catch {
|
|
25141
25141
|
return m(i("inputs.image.invalidUrl")), !1;
|
|
25142
25142
|
}
|
|
25143
|
-
const B = new AbortController(),
|
|
25143
|
+
const B = new AbortController(), $ = setTimeout(() => B.abort(), 1e4);
|
|
25144
25144
|
try {
|
|
25145
25145
|
const G = await fetch(M, {
|
|
25146
25146
|
method: "HEAD",
|
|
25147
25147
|
signal: B.signal
|
|
25148
25148
|
});
|
|
25149
|
-
if (clearTimeout(
|
|
25149
|
+
if (clearTimeout($), !G.ok)
|
|
25150
25150
|
return m(
|
|
25151
25151
|
i("inputs.image.httpError", { status: G.status, statusText: G.statusText })
|
|
25152
25152
|
), !1;
|
|
@@ -25155,7 +25155,7 @@ const vfe = (t, e, n) => {
|
|
|
25155
25155
|
(xe) => W && W.toLowerCase().includes(xe.toLowerCase())
|
|
25156
25156
|
) ? (S(M, W) && _(!0), m(""), !0) : (m(i("inputs.image.notImage")), !1);
|
|
25157
25157
|
} catch (G) {
|
|
25158
|
-
return clearTimeout(
|
|
25158
|
+
return clearTimeout($), G.name === "AbortError" ? (m(i("inputs.image.timeout")), !1) : new Promise((W) => {
|
|
25159
25159
|
const K = new Image(), te = setTimeout(() => {
|
|
25160
25160
|
m(i("inputs.image.timeout")), W(!1);
|
|
25161
25161
|
}, 1e4);
|
|
@@ -25197,8 +25197,8 @@ const vfe = (t, e, n) => {
|
|
|
25197
25197
|
}, P = (M) => {
|
|
25198
25198
|
M.preventDefault(), a(!0);
|
|
25199
25199
|
}, R = (M) => {
|
|
25200
|
-
const B = M.currentTarget.getBoundingClientRect(),
|
|
25201
|
-
(
|
|
25200
|
+
const B = M.currentTarget.getBoundingClientRect(), $ = M.clientX, G = M.clientY;
|
|
25201
|
+
($ < B.left || $ >= B.right || G < B.top || G >= B.bottom) && a(!1);
|
|
25202
25202
|
}, I = (M) => {
|
|
25203
25203
|
M.preventDefault(), a(!1);
|
|
25204
25204
|
const B = Array.from(M.dataTransfer.files);
|
|
@@ -25212,8 +25212,8 @@ const vfe = (t, e, n) => {
|
|
|
25212
25212
|
return Ce(() => {
|
|
25213
25213
|
const M = window.__emailBuilderEnableAI;
|
|
25214
25214
|
M !== void 0 && s(!!M);
|
|
25215
|
-
const B = (
|
|
25216
|
-
const { detail: G } =
|
|
25215
|
+
const B = ($) => {
|
|
25216
|
+
const { detail: G } = $;
|
|
25217
25217
|
s(!!G);
|
|
25218
25218
|
};
|
|
25219
25219
|
return window.addEventListener("email-builder-ai-generation", B), () => {
|
|
@@ -25225,23 +25225,23 @@ const vfe = (t, e, n) => {
|
|
|
25225
25225
|
Yd(!1, K.id || ""), T({ ...t, props: { ...t.props, url: K.url } }), GU(!1);
|
|
25226
25226
|
}, B = (W) => {
|
|
25227
25227
|
Yd(W?.detail?.uploading ?? !1, W?.detail?.id ?? "");
|
|
25228
|
-
},
|
|
25228
|
+
}, $ = () => {
|
|
25229
25229
|
b?.current?.click();
|
|
25230
25230
|
}, G = (W) => {
|
|
25231
25231
|
const { detail: K } = W;
|
|
25232
25232
|
T({ ...t, props: { ...t.props, url: K } });
|
|
25233
25233
|
};
|
|
25234
|
-
return window.addEventListener("email-builder-set-image", G), window.addEventListener("email-builder-upload-image-receive", M), window.addEventListener("email-builder-upload-file",
|
|
25235
|
-
window.removeEventListener("email-builder-toggle-upload-file", B), window.removeEventListener("email-builder-upload-image-receive", M), window.removeEventListener("email-builder-set-image", G), window.removeEventListener("email-builder-upload-file",
|
|
25234
|
+
return window.addEventListener("email-builder-set-image", G), window.addEventListener("email-builder-upload-image-receive", M), window.addEventListener("email-builder-upload-file", $), window.addEventListener("email-builder-toggle-upload-file", B), () => {
|
|
25235
|
+
window.removeEventListener("email-builder-toggle-upload-file", B), window.removeEventListener("email-builder-upload-image-receive", M), window.removeEventListener("email-builder-set-image", G), window.removeEventListener("email-builder-upload-file", $);
|
|
25236
25236
|
};
|
|
25237
25237
|
}, [t]), Ce(() => {
|
|
25238
25238
|
t.props?.url && _(S(t.props.url));
|
|
25239
|
-
}, [t.props?.url]), /* @__PURE__ */
|
|
25239
|
+
}, [t.props?.url]), /* @__PURE__ */ U(Sn, { gap: 1, children: [
|
|
25240
25240
|
E ? /* @__PURE__ */ g(Te, { sx: { mb: 2 }, children: E }) : (
|
|
25241
25241
|
/* Default Image Input - Only show if no custom provider */
|
|
25242
|
-
/* @__PURE__ */ g("div", { style: { display: "flex", gap: 8 }, children: y ? /* @__PURE__ */
|
|
25242
|
+
/* @__PURE__ */ g("div", { style: { display: "flex", gap: 8 }, children: y ? /* @__PURE__ */ U(Li, { children: [
|
|
25243
25243
|
/* @__PURE__ */ g(Bn, { label: i("inputs.image.urlLabel") }),
|
|
25244
|
-
/* @__PURE__ */
|
|
25244
|
+
/* @__PURE__ */ U(Sn, { direction: "row", spacing: 1, children: [
|
|
25245
25245
|
/* @__PURE__ */ g(
|
|
25246
25246
|
rf,
|
|
25247
25247
|
{
|
|
@@ -25352,7 +25352,7 @@ const vfe = (t, e, n) => {
|
|
|
25352
25352
|
}
|
|
25353
25353
|
}
|
|
25354
25354
|
)
|
|
25355
|
-
] }) : /* @__PURE__ */
|
|
25355
|
+
] }) : /* @__PURE__ */ U(tt, { children: [
|
|
25356
25356
|
/* @__PURE__ */ g(
|
|
25357
25357
|
"img",
|
|
25358
25358
|
{
|
|
@@ -25372,7 +25372,7 @@ const vfe = (t, e, n) => {
|
|
|
25372
25372
|
}
|
|
25373
25373
|
}
|
|
25374
25374
|
),
|
|
25375
|
-
/* @__PURE__ */
|
|
25375
|
+
/* @__PURE__ */ U(
|
|
25376
25376
|
Te,
|
|
25377
25377
|
{
|
|
25378
25378
|
onDragOver: P,
|
|
@@ -25390,7 +25390,7 @@ const vfe = (t, e, n) => {
|
|
|
25390
25390
|
},
|
|
25391
25391
|
children: [
|
|
25392
25392
|
/* @__PURE__ */ g(Te, { sx: { display: "flex", justifyContent: "center", mb: 2 }, children: /* @__PURE__ */ g(x8, { sx: { fontSize: 32, color: "primary" } }) }),
|
|
25393
|
-
/* @__PURE__ */
|
|
25393
|
+
/* @__PURE__ */ U("label", { style: { cursor: "pointer" }, children: [
|
|
25394
25394
|
/* @__PURE__ */ g(
|
|
25395
25395
|
"input",
|
|
25396
25396
|
{
|
|
@@ -25420,7 +25420,7 @@ const vfe = (t, e, n) => {
|
|
|
25420
25420
|
children: i("inputs.common.uploadFile")
|
|
25421
25421
|
}
|
|
25422
25422
|
),
|
|
25423
|
-
/* @__PURE__ */
|
|
25423
|
+
/* @__PURE__ */ U(vn, { component: "span", sx: { fontWeight: "bold", color: "text.secondary" }, children: [
|
|
25424
25424
|
" ",
|
|
25425
25425
|
i("inputs.common.dragAndDrop")
|
|
25426
25426
|
] })
|
|
@@ -25447,12 +25447,12 @@ const vfe = (t, e, n) => {
|
|
|
25447
25447
|
children: i("inputs.common.svgWarning")
|
|
25448
25448
|
}
|
|
25449
25449
|
),
|
|
25450
|
-
(!E && (ay() && !y || o) || E && o) && /* @__PURE__ */
|
|
25450
|
+
(!E && (ay() && !y || o) || E && o) && /* @__PURE__ */ U(Sn, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
25451
25451
|
/* @__PURE__ */ g(_r, { sx: { flexGrow: 1 } }),
|
|
25452
25452
|
/* @__PURE__ */ g(vn, { sx: { color: "text.secondary" }, children: i("inputs.backgroundImage.or") }),
|
|
25453
25453
|
/* @__PURE__ */ g(_r, { sx: { flexGrow: 1 } })
|
|
25454
25454
|
] }),
|
|
25455
|
-
/* @__PURE__ */ g(tt, { children: /* @__PURE__ */
|
|
25455
|
+
/* @__PURE__ */ g(tt, { children: /* @__PURE__ */ U(Sn, { flexDirection: "row", gap: 2, children: [
|
|
25456
25456
|
!E && ay() && !y && /* @__PURE__ */ g(
|
|
25457
25457
|
Ji,
|
|
25458
25458
|
{
|
|
@@ -25518,10 +25518,10 @@ const vfe = (t, e, n) => {
|
|
|
25518
25518
|
scale: p
|
|
25519
25519
|
});
|
|
25520
25520
|
};
|
|
25521
|
-
return /* @__PURE__ */
|
|
25521
|
+
return /* @__PURE__ */ U(Li, { children: [
|
|
25522
25522
|
/* @__PURE__ */ g(Bn, { label: l("inputs.sizeSelector.label") }),
|
|
25523
|
-
/* @__PURE__ */
|
|
25524
|
-
/* @__PURE__ */
|
|
25523
|
+
/* @__PURE__ */ U(Te, { sx: c.container, children: [
|
|
25524
|
+
/* @__PURE__ */ U(
|
|
25525
25525
|
af,
|
|
25526
25526
|
{
|
|
25527
25527
|
value: i,
|
|
@@ -25529,15 +25529,15 @@ const vfe = (t, e, n) => {
|
|
|
25529
25529
|
onChange: u,
|
|
25530
25530
|
sx: { width: "100%" },
|
|
25531
25531
|
children: [
|
|
25532
|
-
/* @__PURE__ */ g(Cn, { value: "original", children: /* @__PURE__ */
|
|
25532
|
+
/* @__PURE__ */ g(Cn, { value: "original", children: /* @__PURE__ */ U(Te, { sx: { display: "flex", alignItems: "center", justifyContent: "center", gap: 0.75 }, children: [
|
|
25533
25533
|
/* @__PURE__ */ g(u8, { fontSize: "small" }),
|
|
25534
25534
|
/* @__PURE__ */ g("span", { children: l("inputs.sizeSelector.contain") })
|
|
25535
25535
|
] }) }),
|
|
25536
|
-
/* @__PURE__ */ g(Cn, { value: "fill", children: /* @__PURE__ */
|
|
25536
|
+
/* @__PURE__ */ g(Cn, { value: "fill", children: /* @__PURE__ */ U(Te, { sx: { display: "flex", alignItems: "center", justifyContent: "center", gap: 0.75 }, children: [
|
|
25537
25537
|
/* @__PURE__ */ g(o8, { fontSize: "small" }),
|
|
25538
25538
|
/* @__PURE__ */ g("span", { children: l("inputs.sizeSelector.cover") })
|
|
25539
25539
|
] }) }),
|
|
25540
|
-
/* @__PURE__ */ g(Cn, { value: "scale", children: /* @__PURE__ */
|
|
25540
|
+
/* @__PURE__ */ g(Cn, { value: "scale", children: /* @__PURE__ */ U(Te, { sx: { display: "flex", alignItems: "center", justifyContent: "center", gap: 0.75 }, children: [
|
|
25541
25541
|
/* @__PURE__ */ g(Pde, { fontSize: "small" }),
|
|
25542
25542
|
/* @__PURE__ */ g("span", { children: l("inputs.sizeSelector.scale") })
|
|
25543
25543
|
] }) })
|
|
@@ -25666,8 +25666,8 @@ function Cfe({ data: t, setData: e }) {
|
|
|
25666
25666
|
},
|
|
25667
25667
|
[t, l]
|
|
25668
25668
|
);
|
|
25669
|
-
return /* @__PURE__ */
|
|
25670
|
-
a === "block-configuration" && /* @__PURE__ */
|
|
25669
|
+
return /* @__PURE__ */ U(ko, { title: s("inputs.panels.image.title"), children: [
|
|
25670
|
+
a === "block-configuration" && /* @__PURE__ */ U(tt, { children: [
|
|
25671
25671
|
/* @__PURE__ */ g(Efe, { data: t, setData: e, blockId: r }),
|
|
25672
25672
|
/* @__PURE__ */ g(
|
|
25673
25673
|
vp,
|
|
@@ -25810,7 +25810,7 @@ const Tfe = ({
|
|
|
25810
25810
|
cellPadding: "0",
|
|
25811
25811
|
children: /* @__PURE__ */ g("tbody", { children: /* @__PURE__ */ g("tr", { style: { verticalAlign: "top" }, children: t.map((o, s) => {
|
|
25812
25812
|
const l = a(s);
|
|
25813
|
-
return /* @__PURE__ */
|
|
25813
|
+
return /* @__PURE__ */ U($b, { children: [
|
|
25814
25814
|
l !== "first" && /* @__PURE__ */ g(
|
|
25815
25815
|
"td",
|
|
25816
25816
|
{
|
|
@@ -26293,7 +26293,7 @@ const Dfe = ({
|
|
|
26293
26293
|
}, C = (x) => {
|
|
26294
26294
|
const w = x.target.value;
|
|
26295
26295
|
setTimeout(() => r(e, w, t), 0);
|
|
26296
|
-
}, k = () => /* @__PURE__ */
|
|
26296
|
+
}, k = () => /* @__PURE__ */ U("div", { style: {
|
|
26297
26297
|
height: "3px",
|
|
26298
26298
|
background: l.palette.secondary.main,
|
|
26299
26299
|
position: "relative",
|
|
@@ -26331,9 +26331,9 @@ const Dfe = ({
|
|
|
26331
26331
|
}
|
|
26332
26332
|
)
|
|
26333
26333
|
] });
|
|
26334
|
-
return /* @__PURE__ */
|
|
26334
|
+
return /* @__PURE__ */ U(tt, { children: [
|
|
26335
26335
|
u === "up" && /* @__PURE__ */ g(k, {}),
|
|
26336
|
-
/* @__PURE__ */
|
|
26336
|
+
/* @__PURE__ */ U(
|
|
26337
26337
|
Sn,
|
|
26338
26338
|
{
|
|
26339
26339
|
ref: c,
|
|
@@ -26352,7 +26352,7 @@ const Dfe = ({
|
|
|
26352
26352
|
},
|
|
26353
26353
|
gap: 1,
|
|
26354
26354
|
children: [
|
|
26355
|
-
/* @__PURE__ */
|
|
26355
|
+
/* @__PURE__ */ U("div", { style: {
|
|
26356
26356
|
display: "flex",
|
|
26357
26357
|
alignItems: "center",
|
|
26358
26358
|
justifyContent: "space-between",
|
|
@@ -26371,7 +26371,7 @@ const Dfe = ({
|
|
|
26371
26371
|
}
|
|
26372
26372
|
}
|
|
26373
26373
|
) }),
|
|
26374
|
-
/* @__PURE__ */
|
|
26374
|
+
/* @__PURE__ */ U("div", { children: [
|
|
26375
26375
|
/* @__PURE__ */ g(En, { title: "Duplicate", placement: "left", children: /* @__PURE__ */ g(
|
|
26376
26376
|
Fn,
|
|
26377
26377
|
{
|
|
@@ -26392,13 +26392,13 @@ const Dfe = ({
|
|
|
26392
26392
|
) })
|
|
26393
26393
|
] })
|
|
26394
26394
|
] }),
|
|
26395
|
-
/* @__PURE__ */
|
|
26395
|
+
/* @__PURE__ */ U("div", { style: {
|
|
26396
26396
|
width: "100%",
|
|
26397
26397
|
display: "flex",
|
|
26398
26398
|
flexDirection: "column",
|
|
26399
26399
|
gap: "0.5rem"
|
|
26400
26400
|
}, children: [
|
|
26401
|
-
/* @__PURE__ */
|
|
26401
|
+
/* @__PURE__ */ U("div", { style: { display: "grid", gridTemplateColumns: "40px auto", gap: "4px", alignItems: "center" }, children: [
|
|
26402
26402
|
/* @__PURE__ */ g(Bn, { label: p("inputs.social.icon") }),
|
|
26403
26403
|
/* @__PURE__ */ g(
|
|
26404
26404
|
oc,
|
|
@@ -26413,7 +26413,7 @@ const Dfe = ({
|
|
|
26413
26413
|
}
|
|
26414
26414
|
)
|
|
26415
26415
|
] }),
|
|
26416
|
-
/* @__PURE__ */
|
|
26416
|
+
/* @__PURE__ */ U("div", { style: { display: "grid", gridTemplateColumns: "40px auto", gap: "4px", alignItems: "center" }, children: [
|
|
26417
26417
|
/* @__PURE__ */ g(Bn, { label: p("inputs.social.url") }),
|
|
26418
26418
|
/* @__PURE__ */ g(
|
|
26419
26419
|
rf,
|
|
@@ -26505,8 +26505,8 @@ function Afe({ items: t = [], onChange: e }) {
|
|
|
26505
26505
|
return e && setTimeout(() => e(E), 0), E;
|
|
26506
26506
|
});
|
|
26507
26507
|
};
|
|
26508
|
-
return /* @__PURE__ */
|
|
26509
|
-
/* @__PURE__ */
|
|
26508
|
+
return /* @__PURE__ */ U(tt, { children: [
|
|
26509
|
+
/* @__PURE__ */ U(
|
|
26510
26510
|
"div",
|
|
26511
26511
|
{
|
|
26512
26512
|
style: {
|
|
@@ -26516,7 +26516,7 @@ function Afe({ items: t = [], onChange: e }) {
|
|
|
26516
26516
|
gap: "1rem"
|
|
26517
26517
|
},
|
|
26518
26518
|
children: [
|
|
26519
|
-
/* @__PURE__ */
|
|
26519
|
+
/* @__PURE__ */ U(Li, { children: [
|
|
26520
26520
|
/* @__PURE__ */ g(Bn, { label: n("inputs.social.theme") }),
|
|
26521
26521
|
/* @__PURE__ */ g(
|
|
26522
26522
|
oc,
|
|
@@ -26531,7 +26531,7 @@ function Afe({ items: t = [], onChange: e }) {
|
|
|
26531
26531
|
}
|
|
26532
26532
|
)
|
|
26533
26533
|
] }),
|
|
26534
|
-
/* @__PURE__ */
|
|
26534
|
+
/* @__PURE__ */ U(Li, { children: [
|
|
26535
26535
|
/* @__PURE__ */ g(Bn, { label: n("inputs.social.size") }),
|
|
26536
26536
|
/* @__PURE__ */ g(
|
|
26537
26537
|
oc,
|
|
@@ -26591,7 +26591,7 @@ const Nfe = ({ data: t, setData: e }) => {
|
|
|
26591
26591
|
}
|
|
26592
26592
|
a({ ...t, gap: u });
|
|
26593
26593
|
}, c = al();
|
|
26594
|
-
return /* @__PURE__ */
|
|
26594
|
+
return /* @__PURE__ */ U(ko, { title: r("inputs.panels.social.title"), children: [
|
|
26595
26595
|
c == "block-configuration" && /* @__PURE__ */ g(Te, { sx: { minWidth: 120, margin: 1 }, children: /* @__PURE__ */ g(
|
|
26596
26596
|
Afe,
|
|
26597
26597
|
{
|
|
@@ -26599,8 +26599,8 @@ const Nfe = ({ data: t, setData: e }) => {
|
|
|
26599
26599
|
onChange: o
|
|
26600
26600
|
}
|
|
26601
26601
|
) }),
|
|
26602
|
-
c == "css" && /* @__PURE__ */
|
|
26603
|
-
/* @__PURE__ */
|
|
26602
|
+
c == "css" && /* @__PURE__ */ U(tt, { children: [
|
|
26603
|
+
/* @__PURE__ */ U(Li, { children: [
|
|
26604
26604
|
/* @__PURE__ */ g(Bn, { label: r("inputs.panels.social.gap") }),
|
|
26605
26605
|
i == "desktop" ? /* @__PURE__ */ g(
|
|
26606
26606
|
_i,
|
|
@@ -26682,9 +26682,9 @@ function Ife({ data: t, setData: e }) {
|
|
|
26682
26682
|
style: s
|
|
26683
26683
|
});
|
|
26684
26684
|
};
|
|
26685
|
-
return /* @__PURE__ */
|
|
26686
|
-
n === "block-configuration" && /* @__PURE__ */
|
|
26687
|
-
/* @__PURE__ */
|
|
26685
|
+
return /* @__PURE__ */ U(ko, { title: i("inputs.panels.notionText.title", "Text"), children: [
|
|
26686
|
+
n === "block-configuration" && /* @__PURE__ */ U(tt, { children: [
|
|
26687
|
+
/* @__PURE__ */ U("div", { style: { display: "flex", gap: "8px" }, children: [
|
|
26688
26688
|
/* @__PURE__ */ g("div", { style: { flex: 1 }, children: /* @__PURE__ */ g(
|
|
26689
26689
|
$r,
|
|
26690
26690
|
{
|
|
@@ -26899,7 +26899,7 @@ function Gfe({ sticky: t, heightContent: e }) {
|
|
|
26899
26899
|
switch (n) {
|
|
26900
26900
|
case "block-configuration":
|
|
26901
26901
|
case "css":
|
|
26902
|
-
return /* @__PURE__ */
|
|
26902
|
+
return /* @__PURE__ */ U("div", { style: { position: "relative" }, children: [
|
|
26903
26903
|
/* @__PURE__ */ g(
|
|
26904
26904
|
Wb,
|
|
26905
26905
|
{
|
|
@@ -26911,7 +26911,7 @@ function Gfe({ sticky: t, heightContent: e }) {
|
|
|
26911
26911
|
/* @__PURE__ */ g(Mfe, {})
|
|
26912
26912
|
] });
|
|
26913
26913
|
case "styles":
|
|
26914
|
-
return /* @__PURE__ */
|
|
26914
|
+
return /* @__PURE__ */ U("div", { style: { position: "relative" }, children: [
|
|
26915
26915
|
/* @__PURE__ */ g(Hfe, {}),
|
|
26916
26916
|
/* @__PURE__ */ g(
|
|
26917
26917
|
Wb,
|
|
@@ -26945,7 +26945,7 @@ function Gfe({ sticky: t, heightContent: e }) {
|
|
|
26945
26945
|
const d = (f, m) => {
|
|
26946
26946
|
Qce(m);
|
|
26947
26947
|
}, p = t ? e ? `calc(${e} - ${vl})` : void 0 : e ?? void 0;
|
|
26948
|
-
return /* @__PURE__ */
|
|
26948
|
+
return /* @__PURE__ */ U(
|
|
26949
26949
|
Ch,
|
|
26950
26950
|
{
|
|
26951
26951
|
sx: (f) => ({
|
|
@@ -26962,7 +26962,7 @@ function Gfe({ sticky: t, heightContent: e }) {
|
|
|
26962
26962
|
backgroundColor: `${f.palette.background.paper} !important`
|
|
26963
26963
|
}),
|
|
26964
26964
|
children: [
|
|
26965
|
-
/* @__PURE__ */ g(Te, { sx: { position: "sticky", top: 0, zIndex: 1, backgroundColor: `${o.palette.background.paper} !important` }, children: /* @__PURE__ */
|
|
26965
|
+
/* @__PURE__ */ g(Te, { sx: { position: "sticky", top: 0, zIndex: 1, backgroundColor: `${o.palette.background.paper} !important` }, children: /* @__PURE__ */ U(yU, { sx: {
|
|
26966
26966
|
backgroundColor: `${o.palette.background.paper} !important`
|
|
26967
26967
|
}, value: n, onChange: d, children: [
|
|
26968
26968
|
r != null && !Qb.includes(i || "") && [
|
|
@@ -27039,9 +27039,9 @@ const oz = ({
|
|
|
27039
27039
|
if (!x || !k) return { offset: 0, isPushed: !1 };
|
|
27040
27040
|
const O = x.getBoundingClientRect(), M = k.getBoundingClientRect(), B = e + M.height;
|
|
27041
27041
|
if (O.top < B) {
|
|
27042
|
-
const
|
|
27042
|
+
const $ = B - O.top, G = M.height + 20;
|
|
27043
27043
|
return {
|
|
27044
|
-
offset: -Math.min(
|
|
27044
|
+
offset: -Math.min($, G),
|
|
27045
27045
|
isPushed: !0
|
|
27046
27046
|
};
|
|
27047
27047
|
}
|
|
@@ -27050,8 +27050,8 @@ const oz = ({
|
|
|
27050
27050
|
([O]) => {
|
|
27051
27051
|
const M = !O.isIntersecting;
|
|
27052
27052
|
if (M && !l && w(), c(M), M && o) {
|
|
27053
|
-
const { offset: B, isPushed:
|
|
27054
|
-
h(B), b(
|
|
27053
|
+
const { offset: B, isPushed: $ } = D();
|
|
27054
|
+
h(B), b($);
|
|
27055
27055
|
} else M || (h(0), b(!1));
|
|
27056
27056
|
},
|
|
27057
27057
|
{
|
|
@@ -27071,7 +27071,7 @@ const oz = ({
|
|
|
27071
27071
|
};
|
|
27072
27072
|
}, [e, l, a, o]);
|
|
27073
27073
|
const T = !a && l, S = T ? `${e + m}px` : "auto";
|
|
27074
|
-
return /* @__PURE__ */
|
|
27074
|
+
return /* @__PURE__ */ U("div", { ref: v, className: i, ...s, children: [
|
|
27075
27075
|
!a && /* @__PURE__ */ g(
|
|
27076
27076
|
"div",
|
|
27077
27077
|
{
|
|
@@ -40593,7 +40593,7 @@ var Pye = class extends lt.Component {
|
|
|
40593
40593
|
}
|
|
40594
40594
|
render() {
|
|
40595
40595
|
const { editor: t, innerRef: e, ...n } = this.props;
|
|
40596
|
-
return /* @__PURE__ */
|
|
40596
|
+
return /* @__PURE__ */ U(tt, { children: [
|
|
40597
40597
|
/* @__PURE__ */ g("div", { ref: Iye(e, this.editorContentRef), ...n }),
|
|
40598
40598
|
t?.contentComponent && /* @__PURE__ */ g(Oye, { contentComponent: t.contentComponent })
|
|
40599
40599
|
] });
|
|
@@ -41291,7 +41291,7 @@ const ave = function(t) {
|
|
|
41291
41291
|
const I = (((D = a.flip) == null ? void 0 : D.index) || 0) + 1, O = C[I];
|
|
41292
41292
|
if (O && (!(d === "alignment" ? y !== Wo(O) : !1) || // We leave the current main axis only if every placement on that axis
|
|
41293
41293
|
// overflows the main axis.
|
|
41294
|
-
w.every((
|
|
41294
|
+
w.every(($) => Wo($.placement) === y ? $.overflows[0] > 0 : !0)))
|
|
41295
41295
|
return {
|
|
41296
41296
|
data: {
|
|
41297
41297
|
index: I,
|
|
@@ -41301,20 +41301,20 @@ const ave = function(t) {
|
|
|
41301
41301
|
placement: O
|
|
41302
41302
|
}
|
|
41303
41303
|
};
|
|
41304
|
-
let M = (P = w.filter((B) => B.overflows[0] <= 0).sort((B,
|
|
41304
|
+
let M = (P = w.filter((B) => B.overflows[0] <= 0).sort((B, $) => B.overflows[1] - $.overflows[1])[0]) == null ? void 0 : P.placement;
|
|
41305
41305
|
if (!M)
|
|
41306
41306
|
switch (f) {
|
|
41307
41307
|
case "bestFit": {
|
|
41308
41308
|
var R;
|
|
41309
|
-
const B = (R = w.filter((
|
|
41309
|
+
const B = (R = w.filter(($) => {
|
|
41310
41310
|
if (S) {
|
|
41311
|
-
const G = Wo(
|
|
41311
|
+
const G = Wo($.placement);
|
|
41312
41312
|
return G === y || // Create a bias to the `y` side axis due to horizontal
|
|
41313
41313
|
// reading directions favoring greater width.
|
|
41314
41314
|
G === "y";
|
|
41315
41315
|
}
|
|
41316
41316
|
return !0;
|
|
41317
|
-
}).map((
|
|
41317
|
+
}).map(($) => [$.placement, $.overflows.filter((G) => G > 0).reduce((G, W) => G + W, 0)]).sort(($, G) => $[1] - G[1])[0]) == null ? void 0 : R[0];
|
|
41318
41318
|
B && (M = B);
|
|
41319
41319
|
break;
|
|
41320
41320
|
}
|
|
@@ -41426,14 +41426,14 @@ const cve = function(t) {
|
|
|
41426
41426
|
return d.find((_) => l > _.left - f.left && l < _.right + f.right && c > _.top - f.top && c < _.bottom + f.bottom) || p;
|
|
41427
41427
|
if (d.length >= 2) {
|
|
41428
41428
|
if (Wo(n) === "y") {
|
|
41429
|
-
const w = d[0], D = d[d.length - 1], P = Va(n) === "top", R = w.top, I = D.bottom, O = P ? w.left : D.left, M = P ? w.right : D.right, B = M - O,
|
|
41429
|
+
const w = d[0], D = d[d.length - 1], P = Va(n) === "top", R = w.top, I = D.bottom, O = P ? w.left : D.left, M = P ? w.right : D.right, B = M - O, $ = I - R;
|
|
41430
41430
|
return {
|
|
41431
41431
|
top: R,
|
|
41432
41432
|
bottom: I,
|
|
41433
41433
|
left: O,
|
|
41434
41434
|
right: M,
|
|
41435
41435
|
width: B,
|
|
41436
|
-
height:
|
|
41436
|
+
height: $,
|
|
41437
41437
|
x: O,
|
|
41438
41438
|
y: R
|
|
41439
41439
|
};
|
|
@@ -43054,7 +43054,7 @@ function Ur({
|
|
|
43054
43054
|
showArrow: r = !1
|
|
43055
43055
|
}) {
|
|
43056
43056
|
const a = pn();
|
|
43057
|
-
return /* @__PURE__ */ g(En, { title: t, arrow: !0, disableInteractive: !0, children: /* @__PURE__ */
|
|
43057
|
+
return /* @__PURE__ */ g(En, { title: t, arrow: !0, disableInteractive: !0, children: /* @__PURE__ */ U(
|
|
43058
43058
|
Fn,
|
|
43059
43059
|
{
|
|
43060
43060
|
size: "small",
|
|
@@ -43130,7 +43130,7 @@ function Jve({ editor: t }) {
|
|
|
43130
43130
|
{ label: n("bubbleMenu.heading2", "Heading 2"), level: 2, icon: k_.h2, active: t.isActive("heading", { level: 2 }) },
|
|
43131
43131
|
{ label: n("bubbleMenu.heading3", "Heading 3"), level: 3, icon: k_.h3, active: t.isActive("heading", { level: 3 }) }
|
|
43132
43132
|
];
|
|
43133
|
-
return /* @__PURE__ */
|
|
43133
|
+
return /* @__PURE__ */ U(tt, { children: [
|
|
43134
43134
|
/* @__PURE__ */ g(
|
|
43135
43135
|
Ur,
|
|
43136
43136
|
{
|
|
@@ -43141,7 +43141,7 @@ function Jve({ editor: t }) {
|
|
|
43141
43141
|
children: l()
|
|
43142
43142
|
}
|
|
43143
43143
|
),
|
|
43144
|
-
/* @__PURE__ */ g(Sg, { anchorEl: i, onClose: o, children: /* @__PURE__ */ g(tf, { sx: { p: "8px 4px" }, children: c.map((u) => /* @__PURE__ */
|
|
43144
|
+
/* @__PURE__ */ g(Sg, { anchorEl: i, onClose: o, children: /* @__PURE__ */ g(tf, { sx: { p: "8px 4px" }, children: c.map((u) => /* @__PURE__ */ U(
|
|
43145
43145
|
hp,
|
|
43146
43146
|
{
|
|
43147
43147
|
onClick: () => s(u.level),
|
|
@@ -43170,7 +43170,7 @@ function Jve({ editor: t }) {
|
|
|
43170
43170
|
}
|
|
43171
43171
|
function Zve({ editor: t }) {
|
|
43172
43172
|
const { t: e } = it();
|
|
43173
|
-
return /* @__PURE__ */
|
|
43173
|
+
return /* @__PURE__ */ U(tt, { children: [
|
|
43174
43174
|
/* @__PURE__ */ g(
|
|
43175
43175
|
Ur,
|
|
43176
43176
|
{
|
|
@@ -43222,7 +43222,7 @@ function eEe({ editor: t }) {
|
|
|
43222
43222
|
const u = e.palette.text.secondary;
|
|
43223
43223
|
return t.isActive("orderedList") ? /* @__PURE__ */ g(fM, { fontSize: "small", sx: { color: u } }) : /* @__PURE__ */ g(pM, { fontSize: "small", sx: { color: u } });
|
|
43224
43224
|
};
|
|
43225
|
-
return /* @__PURE__ */
|
|
43225
|
+
return /* @__PURE__ */ U(tt, { children: [
|
|
43226
43226
|
/* @__PURE__ */ g(
|
|
43227
43227
|
Ur,
|
|
43228
43228
|
{
|
|
@@ -43233,8 +43233,8 @@ function eEe({ editor: t }) {
|
|
|
43233
43233
|
children: c()
|
|
43234
43234
|
}
|
|
43235
43235
|
),
|
|
43236
|
-
/* @__PURE__ */ g(Sg, { anchorEl: i, onClose: o, children: /* @__PURE__ */
|
|
43237
|
-
/* @__PURE__ */
|
|
43236
|
+
/* @__PURE__ */ g(Sg, { anchorEl: i, onClose: o, children: /* @__PURE__ */ U(tf, { sx: { p: "8px 4px" }, children: [
|
|
43237
|
+
/* @__PURE__ */ U(
|
|
43238
43238
|
hp,
|
|
43239
43239
|
{
|
|
43240
43240
|
onClick: () => s("bullet"),
|
|
@@ -43258,7 +43258,7 @@ function eEe({ editor: t }) {
|
|
|
43258
43258
|
]
|
|
43259
43259
|
}
|
|
43260
43260
|
),
|
|
43261
|
-
/* @__PURE__ */
|
|
43261
|
+
/* @__PURE__ */ U(
|
|
43262
43262
|
hp,
|
|
43263
43263
|
{
|
|
43264
43264
|
onClick: () => s("ordered"),
|
|
@@ -43309,7 +43309,7 @@ function iEe({ editor: t }) {
|
|
|
43309
43309
|
const u = e.palette.text.secondary;
|
|
43310
43310
|
return t.isActive({ textAlign: "center" }) ? /* @__PURE__ */ g(d8, { fontSize: "small", sx: { color: u } }) : t.isActive({ textAlign: "right" }) ? /* @__PURE__ */ g(m8, { fontSize: "small", sx: { color: u } }) : t.isActive({ textAlign: "justify" }) ? /* @__PURE__ */ g(p8, { fontSize: "small", sx: { color: u } }) : /* @__PURE__ */ g(f8, { fontSize: "small", sx: { color: u } });
|
|
43311
43311
|
};
|
|
43312
|
-
return /* @__PURE__ */
|
|
43312
|
+
return /* @__PURE__ */ U(tt, { children: [
|
|
43313
43313
|
/* @__PURE__ */ g(
|
|
43314
43314
|
Ur,
|
|
43315
43315
|
{
|
|
@@ -43322,7 +43322,7 @@ function iEe({ editor: t }) {
|
|
|
43322
43322
|
),
|
|
43323
43323
|
/* @__PURE__ */ g(Sg, { anchorEl: i, onClose: o, children: /* @__PURE__ */ g(tf, { sx: { p: "8px 4px" }, children: yL.map((u) => {
|
|
43324
43324
|
const d = tEe[u], p = t.isActive({ textAlign: u });
|
|
43325
|
-
return /* @__PURE__ */
|
|
43325
|
+
return /* @__PURE__ */ U(
|
|
43326
43326
|
hp,
|
|
43327
43327
|
{
|
|
43328
43328
|
onClick: () => s(u),
|
|
@@ -43361,7 +43361,7 @@ function rEe({ editor: t }) {
|
|
|
43361
43361
|
l ? t.chain().focus().setColor(l).run() : t.chain().focus().unsetColor().run();
|
|
43362
43362
|
});
|
|
43363
43363
|
}, [t]);
|
|
43364
|
-
return /* @__PURE__ */
|
|
43364
|
+
return /* @__PURE__ */ U(tt, { children: [
|
|
43365
43365
|
/* @__PURE__ */ g(
|
|
43366
43366
|
Ur,
|
|
43367
43367
|
{
|
|
@@ -43409,7 +43409,7 @@ function aEe({ editor: t }) {
|
|
|
43409
43409
|
u ? t.chain().focus().setBackgroundColor(u).run() : t.chain().focus().unsetBackgroundColor().run();
|
|
43410
43410
|
});
|
|
43411
43411
|
}, [t]);
|
|
43412
|
-
return /* @__PURE__ */
|
|
43412
|
+
return /* @__PURE__ */ U(tt, { children: [
|
|
43413
43413
|
/* @__PURE__ */ g(
|
|
43414
43414
|
Ur,
|
|
43415
43415
|
{
|
|
@@ -43512,7 +43512,7 @@ function cEe({
|
|
|
43512
43512
|
}
|
|
43513
43513
|
}
|
|
43514
43514
|
},
|
|
43515
|
-
children: /* @__PURE__ */
|
|
43515
|
+
children: /* @__PURE__ */ U(
|
|
43516
43516
|
Te,
|
|
43517
43517
|
{
|
|
43518
43518
|
sx: {
|
|
@@ -43523,7 +43523,7 @@ function cEe({
|
|
|
43523
43523
|
},
|
|
43524
43524
|
onKeyDown: b,
|
|
43525
43525
|
children: [
|
|
43526
|
-
/* @__PURE__ */
|
|
43526
|
+
/* @__PURE__ */ U(Te, { sx: { display: "flex", flexDirection: "column", gap: 0.5 }, children: [
|
|
43527
43527
|
/* @__PURE__ */ g(
|
|
43528
43528
|
vn,
|
|
43529
43529
|
{
|
|
@@ -43580,7 +43580,7 @@ function cEe({
|
|
|
43580
43580
|
}
|
|
43581
43581
|
)
|
|
43582
43582
|
] }),
|
|
43583
|
-
/* @__PURE__ */
|
|
43583
|
+
/* @__PURE__ */ U(
|
|
43584
43584
|
Te,
|
|
43585
43585
|
{
|
|
43586
43586
|
sx: {
|
|
@@ -43657,7 +43657,7 @@ function uEe({ editor: t }) {
|
|
|
43657
43657
|
i(a.currentTarget);
|
|
43658
43658
|
}
|
|
43659
43659
|
};
|
|
43660
|
-
return /* @__PURE__ */
|
|
43660
|
+
return /* @__PURE__ */ U(tt, { children: [
|
|
43661
43661
|
/* @__PURE__ */ g(
|
|
43662
43662
|
Ur,
|
|
43663
43663
|
{
|
|
@@ -43756,7 +43756,7 @@ function fEe({ editor: t }) {
|
|
|
43756
43756
|
t.chain().focus().insertContent(c).run();
|
|
43757
43757
|
}), s();
|
|
43758
43758
|
}, [t, s]);
|
|
43759
|
-
return /* @__PURE__ */
|
|
43759
|
+
return /* @__PURE__ */ U(tt, { children: [
|
|
43760
43760
|
/* @__PURE__ */ g(
|
|
43761
43761
|
Ur,
|
|
43762
43762
|
{
|
|
@@ -43765,7 +43765,7 @@ function fEe({ editor: t }) {
|
|
|
43765
43765
|
children: /* @__PURE__ */ g(Ade, { fontSize: "small" })
|
|
43766
43766
|
}
|
|
43767
43767
|
),
|
|
43768
|
-
/* @__PURE__ */ g(Sg, { anchorEl: i, onClose: s, children: /* @__PURE__ */ g(tf, { sx: { maxHeight: 400, overflow: "auto", p: "8px 4px" }, children: a.children.map((c, u) => c.type === "divider" ? /* @__PURE__ */ g(_r, { sx: { my: 0.5, backgroundColor: e.palette.divider } }, u) : /* @__PURE__ */
|
|
43768
|
+
/* @__PURE__ */ g(Sg, { anchorEl: i, onClose: s, children: /* @__PURE__ */ g(tf, { sx: { maxHeight: 400, overflow: "auto", p: "8px 4px" }, children: a.children.map((c, u) => c.type === "divider" ? /* @__PURE__ */ g(_r, { sx: { my: 0.5, backgroundColor: e.palette.divider } }, u) : /* @__PURE__ */ U(
|
|
43769
43769
|
hp,
|
|
43770
43770
|
{
|
|
43771
43771
|
onClick: () => c.value && l(c.value),
|
|
@@ -43872,7 +43872,7 @@ function EEe({ editor: t, onOpenChange: e }) {
|
|
|
43872
43872
|
t.chain().insertContentAt(m, p.native).run(), l.current.insertPosition = m + f;
|
|
43873
43873
|
}
|
|
43874
43874
|
}, [t]);
|
|
43875
|
-
return /* @__PURE__ */
|
|
43875
|
+
return /* @__PURE__ */ U(tt, { children: [
|
|
43876
43876
|
/* @__PURE__ */ g(
|
|
43877
43877
|
Ur,
|
|
43878
43878
|
{
|
|
@@ -44045,7 +44045,7 @@ function TEe({ editor: t }) {
|
|
|
44045
44045
|
return window.addEventListener("text-ai-processed", p), () => {
|
|
44046
44046
|
window.removeEventListener("text-ai-processed", p);
|
|
44047
44047
|
};
|
|
44048
|
-
}, [u]), s ? /* @__PURE__ */
|
|
44048
|
+
}, [u]), s ? /* @__PURE__ */ U(tt, { children: [
|
|
44049
44049
|
/* @__PURE__ */ g(
|
|
44050
44050
|
Ur,
|
|
44051
44051
|
{
|
|
@@ -44078,7 +44078,7 @@ function TEe({ editor: t }) {
|
|
|
44078
44078
|
)
|
|
44079
44079
|
},
|
|
44080
44080
|
f
|
|
44081
|
-
) : /* @__PURE__ */
|
|
44081
|
+
) : /* @__PURE__ */ U(
|
|
44082
44082
|
hp,
|
|
44083
44083
|
{
|
|
44084
44084
|
onClick: () => !p.disabled && d(p.value),
|
|
@@ -44146,7 +44146,7 @@ function xEe({ editor: t, hidden: e = !1 }) {
|
|
|
44146
44146
|
}
|
|
44147
44147
|
},
|
|
44148
44148
|
shouldShow: ({ editor: c }) => e ? !1 : a ? !0 : c.isFocused,
|
|
44149
|
-
children: /* @__PURE__ */
|
|
44149
|
+
children: /* @__PURE__ */ U(
|
|
44150
44150
|
rl,
|
|
44151
44151
|
{
|
|
44152
44152
|
"data-notion-text-toolbar": "true",
|
|
@@ -44177,7 +44177,7 @@ function xEe({ editor: t, hidden: e = !1 }) {
|
|
|
44177
44177
|
/* @__PURE__ */ g(_r, { orientation: "vertical", flexItem: !0, sx: l }),
|
|
44178
44178
|
/* @__PURE__ */ g(uEe, { editor: t }),
|
|
44179
44179
|
/* @__PURE__ */ g(_r, { orientation: "vertical", flexItem: !0, sx: l }),
|
|
44180
|
-
!r && /* @__PURE__ */
|
|
44180
|
+
!r && /* @__PURE__ */ U(tt, { children: [
|
|
44181
44181
|
/* @__PURE__ */ g(fEe, { editor: t }),
|
|
44182
44182
|
/* @__PURE__ */ g(_r, { orientation: "vertical", flexItem: !0, sx: l })
|
|
44183
44183
|
] }),
|
|
@@ -48070,6 +48070,8 @@ function CSe(t) {
|
|
|
48070
48070
|
// Link sin estilos inline por defecto - los estilos se aplican vía linkGlobal (incluido en StarterKit v3)
|
|
48071
48071
|
link: {
|
|
48072
48072
|
openOnClick: !1,
|
|
48073
|
+
// Evita la navegación nativa del <a> en el editor; permite seleccionar/editar el mark.
|
|
48074
|
+
enableClickSelection: !0,
|
|
48073
48075
|
HTMLAttributes: {
|
|
48074
48076
|
// No aplicar estilos inline por defecto; se aplican vía linkGlobal en el helper
|
|
48075
48077
|
}
|
|
@@ -48113,15 +48115,15 @@ function kG({ blockId: t, style: e, props: n, isNotClient: i = !1 }) {
|
|
|
48113
48115
|
), m = c?.linkGlobal ?? null, h = Bt(!1), _ = Bt(!1), b = Bt(null), y = Bt(t);
|
|
48114
48116
|
Ce(() => {
|
|
48115
48117
|
if (!u) return;
|
|
48116
|
-
const
|
|
48117
|
-
return window.addEventListener("slash-menu-opened",
|
|
48118
|
-
window.removeEventListener("slash-menu-opened",
|
|
48118
|
+
const $ = () => p(!0), G = () => p(!1);
|
|
48119
|
+
return window.addEventListener("slash-menu-opened", $), window.addEventListener("slash-menu-closed", G), () => {
|
|
48120
|
+
window.removeEventListener("slash-menu-opened", $), window.removeEventListener("slash-menu-closed", G);
|
|
48119
48121
|
};
|
|
48120
48122
|
}, [u]);
|
|
48121
48123
|
const E = dt(() => {
|
|
48122
48124
|
b.current && clearTimeout(b.current), b.current = setTimeout(() => {
|
|
48123
|
-
const
|
|
48124
|
-
t && oe.getState().document[t]?.data?.props?.html !==
|
|
48125
|
+
const $ = f.current;
|
|
48126
|
+
t && oe.getState().document[t]?.data?.props?.html !== $ && c_(t, { html: $ }), b.current = null;
|
|
48125
48127
|
}, 300);
|
|
48126
48128
|
}, [t]);
|
|
48127
48129
|
Ce(() => () => {
|
|
@@ -48134,16 +48136,16 @@ function kG({ blockId: t, style: e, props: n, isNotClient: i = !1 }) {
|
|
|
48134
48136
|
editable: i ? !1 : u,
|
|
48135
48137
|
shouldRerenderOnTransaction: !1,
|
|
48136
48138
|
immediatelyRender: !i,
|
|
48137
|
-
onUpdate: ({ editor:
|
|
48138
|
-
const G =
|
|
48139
|
-
f.current = G, G !== W && !h.current && !_.current &&
|
|
48139
|
+
onUpdate: ({ editor: $ }) => {
|
|
48140
|
+
const G = $.getHTML(), W = f.current;
|
|
48141
|
+
f.current = G, G !== W && !h.current && !_.current && $.isEditable && E();
|
|
48140
48142
|
}
|
|
48141
48143
|
},
|
|
48142
48144
|
[o]
|
|
48143
48145
|
);
|
|
48144
48146
|
Ce(() => {
|
|
48145
48147
|
if (!u || !v || !t) return;
|
|
48146
|
-
const
|
|
48148
|
+
const $ = (G) => {
|
|
48147
48149
|
const W = G, { processedContent: K, replaceSelection: te, selectionFrom: xe, selectionTo: pe } = W.detail;
|
|
48148
48150
|
if (K) {
|
|
48149
48151
|
te && xe !== void 0 && pe !== void 0 ? v.chain().focus().insertContentAt(
|
|
@@ -48154,8 +48156,8 @@ function kG({ blockId: t, style: e, props: n, isNotClient: i = !1 }) {
|
|
|
48154
48156
|
c_(t, { html: Fe });
|
|
48155
48157
|
}
|
|
48156
48158
|
};
|
|
48157
|
-
return window.addEventListener("text-ai-processed",
|
|
48158
|
-
window.removeEventListener("text-ai-processed",
|
|
48159
|
+
return window.addEventListener("text-ai-processed", $), () => {
|
|
48160
|
+
window.removeEventListener("text-ai-processed", $);
|
|
48159
48161
|
};
|
|
48160
48162
|
}, [u, v, t]), Ce(() => {
|
|
48161
48163
|
if (h.current) {
|
|
@@ -48165,52 +48167,55 @@ function kG({ blockId: t, style: e, props: n, isNotClient: i = !1 }) {
|
|
|
48165
48167
|
if (!u && n?.html !== void 0) {
|
|
48166
48168
|
if (v?.isEditable || !v || v.isDestroyed)
|
|
48167
48169
|
return;
|
|
48168
|
-
const
|
|
48169
|
-
!(OS(
|
|
48170
|
+
const $ = Rd(n.html), G = Rd(v.getHTML());
|
|
48171
|
+
!(OS($) && OS(G)) && $ !== G && (f.current = $, _.current = !0, v.commands.setContent($, { emitUpdate: !1 }), Promise.resolve().then(() => {
|
|
48170
48172
|
_.current = !1;
|
|
48171
48173
|
}));
|
|
48172
48174
|
}
|
|
48173
48175
|
}, [u, n?.html, v, t]), Ce(() => {
|
|
48174
48176
|
if (!u) return;
|
|
48175
|
-
const
|
|
48177
|
+
const $ = (G) => {
|
|
48176
48178
|
if (G.detail.blockId !== t || MS.has(t)) return;
|
|
48177
48179
|
MS.add(t), b.current && (clearTimeout(b.current), b.current = null);
|
|
48178
48180
|
const K = (v?.isEditable ? v?.getHTML() : null) ?? f.current;
|
|
48179
48181
|
f.current = K, oe.getState().document[t]?.data?.props?.html !== K && t && c_(t, { html: K }), h.current = !0;
|
|
48180
48182
|
};
|
|
48181
|
-
return window.addEventListener("notion-text-force-save",
|
|
48183
|
+
return window.addEventListener("notion-text-force-save", $), () => window.removeEventListener("notion-text-force-save", $);
|
|
48182
48184
|
}, [u, t, v]), Ce(() => {
|
|
48183
48185
|
v && (v.setEditable(u), u && (h.current = !1, MS.delete(t), setTimeout(() => v.commands.focus("end"), 0)));
|
|
48184
48186
|
}, [u, v]), Ce(() => {
|
|
48185
48187
|
if (y.current !== t) {
|
|
48186
48188
|
y.current = t;
|
|
48187
|
-
const
|
|
48188
|
-
v && !v.isDestroyed && v.getHTML() !==
|
|
48189
|
+
const $ = Rd(n?.html ?? CS.html);
|
|
48190
|
+
v && !v.isDestroyed && v.getHTML() !== $ ? (f.current = $, _.current = !0, v.commands.setContent($, { emitUpdate: !1 }), Promise.resolve().then(() => {
|
|
48189
48191
|
_.current = !1;
|
|
48190
|
-
})) : f.current =
|
|
48192
|
+
})) : f.current = $;
|
|
48191
48193
|
}
|
|
48192
48194
|
}, [t, n?.html, v]);
|
|
48193
|
-
const T = dt(
|
|
48194
|
-
|
|
48195
|
-
|
|
48195
|
+
const T = dt(
|
|
48196
|
+
($) => {
|
|
48197
|
+
$.target.closest?.("a[href]") && $.preventDefault(), t && zm(t);
|
|
48198
|
+
},
|
|
48199
|
+
[t]
|
|
48200
|
+
), S = dt(() => {
|
|
48196
48201
|
b.current && (clearTimeout(b.current), b.current = null);
|
|
48197
|
-
const
|
|
48198
|
-
f.current =
|
|
48202
|
+
const $ = (v?.isEditable ? v?.getHTML() : null) ?? f.current;
|
|
48203
|
+
f.current = $, oe.getState().document[t]?.data?.props?.html !== $ && t && c_(t, { html: $ }), h.current = !0, zm(null);
|
|
48199
48204
|
}, [t, v]), C = dt(
|
|
48200
|
-
(
|
|
48201
|
-
if (!(oe.getState().notionTextInlineEditingBlockId === t) || !r.current || r.current.contains(
|
|
48202
|
-
const K =
|
|
48205
|
+
($) => {
|
|
48206
|
+
if (!(oe.getState().notionTextInlineEditingBlockId === t) || !r.current || r.current.contains($.target)) return;
|
|
48207
|
+
const K = $.target;
|
|
48203
48208
|
K?.closest?.("[data-notion-text-toolbar]") || K?.closest?.(".MuiPopover-root, .MuiModal-root, .MuiBackdrop-root, .MuiMenu-root, .MuiDialog-root") || K?.closest?.("[data-slash-menu]") || K?.closest?.("em-emoji-picker") || K?.shadowRoot || K?.closest?.('[role="presentation"]') || document.querySelector(".MuiPopover-root, .MuiModal-root, .MuiDialog-root") || S();
|
|
48204
48209
|
},
|
|
48205
48210
|
[t, S]
|
|
48206
48211
|
);
|
|
48207
48212
|
Ce(() => {
|
|
48208
48213
|
if (!u) return;
|
|
48209
|
-
const
|
|
48214
|
+
const $ = (G) => {
|
|
48210
48215
|
G.key === "Escape" && (G.preventDefault(), G.stopPropagation(), S());
|
|
48211
48216
|
};
|
|
48212
|
-
return document.addEventListener("keydown",
|
|
48213
|
-
document.removeEventListener("keydown",
|
|
48217
|
+
return document.addEventListener("keydown", $), document.addEventListener("click", C), () => {
|
|
48218
|
+
document.removeEventListener("keydown", $), document.removeEventListener("click", C);
|
|
48214
48219
|
};
|
|
48215
48220
|
}, [u, S, C]);
|
|
48216
48221
|
const k = cf(
|
|
@@ -48269,7 +48274,7 @@ function kG({ blockId: t, style: e, props: n, isNotClient: i = !1 }) {
|
|
|
48269
48274
|
align: x,
|
|
48270
48275
|
width: "100%",
|
|
48271
48276
|
border: w,
|
|
48272
|
-
children: /* @__PURE__ */
|
|
48277
|
+
children: /* @__PURE__ */ U("div", { className: "notion-text-inline-editor", style: R, children: [
|
|
48273
48278
|
v && /* @__PURE__ */ g(xEe, { editor: v, hidden: d }),
|
|
48274
48279
|
/* @__PURE__ */ g(TSe, { editor: v, className: "tiptap" })
|
|
48275
48280
|
] })
|
|
@@ -48352,7 +48357,7 @@ const wSe = { p: 1.5, display: "flex", flexDirection: "column" }, DSe = {
|
|
|
48352
48357
|
borderColor: "cadet.300"
|
|
48353
48358
|
};
|
|
48354
48359
|
function ASe({ label: t, icon: e, onClick: n }) {
|
|
48355
|
-
return /* @__PURE__ */
|
|
48360
|
+
return /* @__PURE__ */ U(
|
|
48356
48361
|
Ji,
|
|
48357
48362
|
{
|
|
48358
48363
|
sx: wSe,
|
|
@@ -48621,7 +48626,7 @@ function OSe({ onSelect: t, placeholder: e }) {
|
|
|
48621
48626
|
const [n, i] = ae(null), [r, a] = ae(null), o = oe((u) => u.selectedMainTab), s = zU(), l = () => {
|
|
48622
48627
|
i(r);
|
|
48623
48628
|
}, c = () => e ? /* @__PURE__ */ g(ISe, { onClick: l }) : /* @__PURE__ */ g(RSe, { buttonElement: r, onClick: l });
|
|
48624
|
-
return s ? null : /* @__PURE__ */
|
|
48629
|
+
return s ? null : /* @__PURE__ */ U(tt, { children: [
|
|
48625
48630
|
/* @__PURE__ */ g(
|
|
48626
48631
|
"div",
|
|
48627
48632
|
{
|
|
@@ -48704,7 +48709,7 @@ function Fl({
|
|
|
48704
48709
|
sx: { border: o ? "2px solid" : "", borderColor: o ? "secondary.main" : void 0 },
|
|
48705
48710
|
children: /* @__PURE__ */ g(OSe, { placeholder: !0, onSelect: a })
|
|
48706
48711
|
}
|
|
48707
|
-
) : /* @__PURE__ */
|
|
48712
|
+
) : /* @__PURE__ */ U(tt, { children: [
|
|
48708
48713
|
t.map((c) => /* @__PURE__ */ g($b, { children: /* @__PURE__ */ g(fv, { id: c }) }, c)),
|
|
48709
48714
|
l
|
|
48710
48715
|
] });
|
|
@@ -48960,7 +48965,7 @@ function $Se({ blockId: t }) {
|
|
|
48960
48965
|
}, [t, e]), d = dt(() => {
|
|
48961
48966
|
gue(t);
|
|
48962
48967
|
}, [t]);
|
|
48963
|
-
return /* @__PURE__ */
|
|
48968
|
+
return /* @__PURE__ */ U(rl, { ref: a, sx: BSe(o), onClick: (p) => p.stopPropagation(), elevation: 10, children: [
|
|
48964
48969
|
/* @__PURE__ */ g(En, { title: n("actions.copyFormat"), placement: "left-start", children: /* @__PURE__ */ g("span", { children: /* @__PURE__ */ g(
|
|
48965
48970
|
Fn,
|
|
48966
48971
|
{
|
|
@@ -48971,7 +48976,7 @@ function $Se({ blockId: t }) {
|
|
|
48971
48976
|
color: "text.primary"
|
|
48972
48977
|
},
|
|
48973
48978
|
disabled: !(e && "style" in e.data && e.data.style),
|
|
48974
|
-
children: /* @__PURE__ */
|
|
48979
|
+
children: /* @__PURE__ */ U("svg", { width: "24", height: "25", viewBox: "0 0 24 25", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
48975
48980
|
/* @__PURE__ */ g("path", { d: "M12 22.5C6.49 22.5 2 18.01 2 12.5C2 6.99 6.49 2.5 12 2.5C17.51 2.5 22 6.54 22 11.5C22 14.81 19.31 17.5 16 17.5H14.23C13.95 17.5 13.73 17.72 13.73 18C13.73 18.12 13.78 18.23 13.86 18.33C14.27 18.8 14.5 19.39 14.5 20C14.5 21.38 13.38 22.5 12 22.5ZM12 4.5C7.59 4.5 4 8.09 4 12.5C4 16.91 7.59 20.5 12 20.5C12.28 20.5 12.5 20.28 12.5 20C12.5 19.84 12.42 19.72 12.36 19.65C11.95 19.19 11.73 18.6 11.73 18C11.73 16.62 12.85 15.5 14.23 15.5H16C18.21 15.5 20 13.71 20 11.5C20 7.64 16.41 4.5 12 4.5Z", fill: "currentColor" }),
|
|
48976
48981
|
/* @__PURE__ */ g("path", { d: "M6.5 13.5C7.32843 13.5 8 12.8284 8 12C8 11.1716 7.32843 10.5 6.5 10.5C5.67157 10.5 5 11.1716 5 12C5 12.8284 5.67157 13.5 6.5 13.5Z", fill: "currentColor" }),
|
|
48977
48982
|
/* @__PURE__ */ g("path", { d: "M9.5 9.5C10.3284 9.5 11 8.82843 11 8C11 7.17157 10.3284 6.5 9.5 6.5C8.67157 6.5 8 7.17157 8 8C8 8.82843 8.67157 9.5 9.5 9.5Z", fill: "currentColor" }),
|
|
@@ -49062,7 +49067,7 @@ function WSe({ children: t, canEdit: e = !0, isNotClient: n = !1 }) {
|
|
|
49062
49067
|
Yce();
|
|
49063
49068
|
const d = qSe(i), [p, f] = ae(!1), [m, h] = ae(0), _ = Bt(null), b = Bt(null), [y, E] = ae(null), v = pn(), T = zU(), [S, C] = ae(null), k = c === i || d, x = u === i, w = v.palette.primary.light || v.palette.primary.main, D = Bt(null), P = Bt(!0);
|
|
49064
49069
|
if (n)
|
|
49065
|
-
return /* @__PURE__ */
|
|
49070
|
+
return /* @__PURE__ */ U(tt, { children: [
|
|
49066
49071
|
/* @__PURE__ */ g(
|
|
49067
49072
|
"div",
|
|
49068
49073
|
{
|
|
@@ -49098,7 +49103,7 @@ function WSe({ children: t, canEdit: e = !0, isNotClient: n = !1 }) {
|
|
|
49098
49103
|
return null;
|
|
49099
49104
|
const ce = Math.abs(J.y - q.y), we = Math.abs(J.y - le.y);
|
|
49100
49105
|
return ce < we ? "up" : "down";
|
|
49101
|
-
}, [{ isOver: B },
|
|
49106
|
+
}, [{ isOver: B }, $] = Pv(() => ({
|
|
49102
49107
|
accept: "block",
|
|
49103
49108
|
drop: (X, J) => {
|
|
49104
49109
|
const q = i, le = X.blockId;
|
|
@@ -49143,7 +49148,7 @@ function WSe({ children: t, canEdit: e = !0, isNotClient: n = !1 }) {
|
|
|
49143
49148
|
Ce(() => {
|
|
49144
49149
|
B || E(null);
|
|
49145
49150
|
}, [B]);
|
|
49146
|
-
const G = () => /* @__PURE__ */
|
|
49151
|
+
const G = () => /* @__PURE__ */ U("div", { style: { height: "3px", background: v.palette.secondary.main, position: "relative", color: v.palette.secondary.main }, children: [
|
|
49147
49152
|
/* @__PURE__ */ g("svg", { style: { position: "absolute", left: "-25px", top: "50%", transform: "translateY(-50%)" }, width: "20", height: "20", viewBox: "0 0 32 32", children: /* @__PURE__ */ g("path", { fill: "currentColor", d: "M28 12H10a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h18a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2M10 4v6h18V4zm18 26H10a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2h18a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2m-18-8v6h18v-6zm-1-6l-5.586-5.586L2 11.828L6.172 16L2 20.172l1.414 1.414z" }) }),
|
|
49148
49153
|
/* @__PURE__ */ g("svg", { style: { position: "absolute", right: "-25px", top: "50%", transform: "translateY(-50%) scaleX(-1)" }, width: "20", height: "20", viewBox: "0 0 32 32", children: /* @__PURE__ */ g("path", { fill: "currentColor", d: "M28 12H10a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h18a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2M10 4v6h18V4zm18 26H10a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2h18a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2m-18-8v6h18v-6zm-1-6l-5.586-5.586L2 11.828L6.172 16L2 20.172l1.414 1.414z" }) })
|
|
49149
49154
|
] }), W = UD(() => ({
|
|
@@ -49190,7 +49195,7 @@ function WSe({ children: t, canEdit: e = !0, isNotClient: n = !1 }) {
|
|
|
49190
49195
|
t.props.onMouseUp && t.props.onMouseUp(X);
|
|
49191
49196
|
}
|
|
49192
49197
|
}), [t, te, i, s, l]);
|
|
49193
|
-
return /* @__PURE__ */
|
|
49198
|
+
return /* @__PURE__ */ U(tt, { children: [
|
|
49194
49199
|
y === "up" && /* @__PURE__ */ g(G, {}),
|
|
49195
49200
|
/* @__PURE__ */ g(
|
|
49196
49201
|
"div",
|
|
@@ -49209,7 +49214,7 @@ function WSe({ children: t, canEdit: e = !0, isNotClient: n = !1 }) {
|
|
|
49209
49214
|
position: "relative",
|
|
49210
49215
|
maxWidth: "100%"
|
|
49211
49216
|
},
|
|
49212
|
-
ref:
|
|
49217
|
+
ref: $,
|
|
49213
49218
|
onMouseEnter: (X) => {
|
|
49214
49219
|
X.stopPropagation(), Y2(), D.current && (clearTimeout(D.current), D.current = null);
|
|
49215
49220
|
const J = GSe(X.currentTarget);
|
|
@@ -49231,7 +49236,7 @@ function WSe({ children: t, canEdit: e = !0, isNotClient: n = !1 }) {
|
|
|
49231
49236
|
}, 150);
|
|
49232
49237
|
},
|
|
49233
49238
|
onClick: Fe,
|
|
49234
|
-
children: /* @__PURE__ */
|
|
49239
|
+
children: /* @__PURE__ */ U(
|
|
49235
49240
|
Te,
|
|
49236
49241
|
{
|
|
49237
49242
|
sx: {
|
|
@@ -49447,7 +49452,7 @@ const NG = Vp(null), IE = () => eg(NG), fv = Nr(function({ id: e, isNotClient: n
|
|
|
49447
49452
|
return i ? /* @__PURE__ */ g(NG.Provider, { value: e, children: /* @__PURE__ */ g(i0e, { isNotClient: n, ...i, blockId: e }) }) : (console.warn(`Block ${e} not found`), null);
|
|
49448
49453
|
}, (t, e) => t.id === e.id && t.isNotClient === e.isNotClient), zL = () => {
|
|
49449
49454
|
const t = Ci(), { t: e } = it("inspector");
|
|
49450
|
-
return /* @__PURE__ */
|
|
49455
|
+
return /* @__PURE__ */ U(
|
|
49451
49456
|
af,
|
|
49452
49457
|
{
|
|
49453
49458
|
value: t,
|
|
@@ -58750,7 +58755,7 @@ function P2e() {
|
|
|
58750
58755
|
contains: [I]
|
|
58751
58756
|
}, B = {
|
|
58752
58757
|
begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
|
|
58753
|
-
},
|
|
58758
|
+
}, $ = function(z, Z, Pe = {}) {
|
|
58754
58759
|
const gt = i(
|
|
58755
58760
|
{
|
|
58756
58761
|
scope: "comment",
|
|
@@ -58816,7 +58821,7 @@ function P2e() {
|
|
|
58816
58821
|
// look for 3 words in a row
|
|
58817
58822
|
}
|
|
58818
58823
|
), gt;
|
|
58819
|
-
}, G =
|
|
58824
|
+
}, G = $("//", "$"), W = $("/\\*", "\\*/"), K = $("#", "$"), te = {
|
|
58820
58825
|
scope: "number",
|
|
58821
58826
|
begin: x,
|
|
58822
58827
|
relevance: 0
|
|
@@ -58860,7 +58865,7 @@ function P2e() {
|
|
|
58860
58865
|
BACKSLASH_ESCAPE: I,
|
|
58861
58866
|
BINARY_NUMBER_MODE: pe,
|
|
58862
58867
|
BINARY_NUMBER_RE: D,
|
|
58863
|
-
COMMENT:
|
|
58868
|
+
COMMENT: $,
|
|
58864
58869
|
C_BLOCK_COMMENT_MODE: W,
|
|
58865
58870
|
C_LINE_COMMENT_MODE: G,
|
|
58866
58871
|
C_NUMBER_MODE: xe,
|
|
@@ -71957,7 +71962,7 @@ function VNe() {
|
|
|
71957
71962
|
},
|
|
71958
71963
|
s.BACKSLASH_ESCAPE
|
|
71959
71964
|
]
|
|
71960
|
-
},
|
|
71965
|
+
}, $ = {
|
|
71961
71966
|
scope: "string",
|
|
71962
71967
|
begin: /"""/,
|
|
71963
71968
|
end: /"""/,
|
|
@@ -72064,7 +72069,7 @@ function VNe() {
|
|
|
72064
72069
|
te,
|
|
72065
72070
|
K,
|
|
72066
72071
|
W,
|
|
72067
|
-
|
|
72072
|
+
$,
|
|
72068
72073
|
B,
|
|
72069
72074
|
M,
|
|
72070
72075
|
xe
|
|
@@ -72083,7 +72088,7 @@ function VNe() {
|
|
|
72083
72088
|
contains: [
|
|
72084
72089
|
E,
|
|
72085
72090
|
// can contain any constant value
|
|
72086
|
-
|
|
72091
|
+
$,
|
|
72087
72092
|
B,
|
|
72088
72093
|
M,
|
|
72089
72094
|
xe,
|
|
@@ -78313,7 +78318,7 @@ function hRe() {
|
|
|
78313
78318
|
...r
|
|
78314
78319
|
]
|
|
78315
78320
|
}
|
|
78316
|
-
},
|
|
78321
|
+
}, $ = {
|
|
78317
78322
|
label: "use_strict",
|
|
78318
78323
|
className: "meta",
|
|
78319
78324
|
relevance: 10,
|
|
@@ -78424,7 +78429,7 @@ function hRe() {
|
|
|
78424
78429
|
binary: "node",
|
|
78425
78430
|
relevance: 5
|
|
78426
78431
|
}),
|
|
78427
|
-
|
|
78432
|
+
$,
|
|
78428
78433
|
c.APOS_STRING_MODE,
|
|
78429
78434
|
c.QUOTE_STRING_MODE,
|
|
78430
78435
|
S,
|
|
@@ -103237,7 +103242,7 @@ function qIe() {
|
|
|
103237
103242
|
),
|
|
103238
103243
|
keyword: I.concat(p),
|
|
103239
103244
|
literal: u
|
|
103240
|
-
},
|
|
103245
|
+
}, $ = [
|
|
103241
103246
|
P,
|
|
103242
103247
|
R,
|
|
103243
103248
|
M
|
|
@@ -103430,7 +103435,7 @@ function qIe() {
|
|
|
103430
103435
|
keywords: B,
|
|
103431
103436
|
contains: [
|
|
103432
103437
|
...D,
|
|
103433
|
-
|
|
103438
|
+
...$,
|
|
103434
103439
|
...fn,
|
|
103435
103440
|
te,
|
|
103436
103441
|
Yt
|
|
@@ -103451,7 +103456,7 @@ function qIe() {
|
|
|
103451
103456
|
ee,
|
|
103452
103457
|
...D,
|
|
103453
103458
|
vt,
|
|
103454
|
-
|
|
103459
|
+
...$,
|
|
103455
103460
|
...K,
|
|
103456
103461
|
...pe,
|
|
103457
103462
|
X,
|
|
@@ -103492,7 +103497,7 @@ function qIe() {
|
|
|
103492
103497
|
contains: [
|
|
103493
103498
|
ut,
|
|
103494
103499
|
...D,
|
|
103495
|
-
|
|
103500
|
+
...$,
|
|
103496
103501
|
...pe,
|
|
103497
103502
|
X,
|
|
103498
103503
|
Ee,
|
|
@@ -103596,7 +103601,7 @@ function qIe() {
|
|
|
103596
103601
|
keywords: B,
|
|
103597
103602
|
contains: [
|
|
103598
103603
|
Oe,
|
|
103599
|
-
|
|
103604
|
+
...$,
|
|
103600
103605
|
{
|
|
103601
103606
|
begin: /:/,
|
|
103602
103607
|
end: /\{/,
|
|
@@ -103606,7 +103611,7 @@ function qIe() {
|
|
|
103606
103611
|
scope: "title.class.inherited",
|
|
103607
103612
|
match: v
|
|
103608
103613
|
},
|
|
103609
|
-
|
|
103614
|
+
...$
|
|
103610
103615
|
],
|
|
103611
103616
|
relevance: 0
|
|
103612
103617
|
}
|
|
@@ -103616,7 +103621,7 @@ function qIe() {
|
|
|
103616
103621
|
const oi = ht.contains.find((Xn) => Xn.label === "interpol");
|
|
103617
103622
|
oi.keywords = B;
|
|
103618
103623
|
const ui = [
|
|
103619
|
-
|
|
103624
|
+
...$,
|
|
103620
103625
|
...K,
|
|
103621
103626
|
...pe,
|
|
103622
103627
|
X,
|
|
@@ -103654,7 +103659,7 @@ function qIe() {
|
|
|
103654
103659
|
relevance: 0
|
|
103655
103660
|
},
|
|
103656
103661
|
vt,
|
|
103657
|
-
|
|
103662
|
+
...$,
|
|
103658
103663
|
...K,
|
|
103659
103664
|
...pe,
|
|
103660
103665
|
X,
|
|
@@ -104974,7 +104979,7 @@ function JIe() {
|
|
|
104974
104979
|
}
|
|
104975
104980
|
}
|
|
104976
104981
|
]
|
|
104977
|
-
},
|
|
104982
|
+
}, $ = {
|
|
104978
104983
|
relevance: 0,
|
|
104979
104984
|
match: d.either(
|
|
104980
104985
|
// Hard coded exceptions
|
|
@@ -105101,7 +105106,7 @@ function JIe() {
|
|
|
105101
105106
|
aliases: ["js", "jsx", "mjs", "cjs"],
|
|
105102
105107
|
keywords: b,
|
|
105103
105108
|
// this will be extended by TypeScript
|
|
105104
|
-
exports: { PARAMS_CONTAINS: O, CLASS_REFERENCE:
|
|
105109
|
+
exports: { PARAMS_CONTAINS: O, CLASS_REFERENCE: $ },
|
|
105105
105110
|
illegal: /#(?![$_A-z])/,
|
|
105106
105111
|
contains: [
|
|
105107
105112
|
u.SHEBANG({
|
|
@@ -105120,7 +105125,7 @@ function JIe() {
|
|
|
105120
105125
|
// Skip numbers when they are part of a variable name
|
|
105121
105126
|
{ match: /\$\d+/ },
|
|
105122
105127
|
T,
|
|
105123
|
-
|
|
105128
|
+
$,
|
|
105124
105129
|
{
|
|
105125
105130
|
scope: "attr",
|
|
105126
105131
|
match: f + d.lookahead(":"),
|
|
@@ -116260,8 +116265,8 @@ function GW(t, e) {
|
|
|
116260
116265
|
R ? o.push(I, D) : o.push(O, P);
|
|
116261
116266
|
break;
|
|
116262
116267
|
}
|
|
116263
|
-
let M = C[S + 2], B = { indent: y, mode: E, doc: { ...v, [pD]: S + 2 } },
|
|
116264
|
-
o.push(B),
|
|
116268
|
+
let M = C[S + 2], B = { indent: y, mode: E, doc: { ...v, [pD]: S + 2 } }, $ = Y_({ indent: y, mode: Io, doc: [x, w, M] }, [], T, c.length > 0, n, !0);
|
|
116269
|
+
o.push(B), $ ? o.push(I, D) : R ? o.push(O, D) : o.push(O, P);
|
|
116265
116270
|
break;
|
|
116266
116271
|
}
|
|
116267
116272
|
case ts:
|
|
@@ -118675,7 +118680,7 @@ function oR(t, e, n, i) {
|
|
|
118675
118680
|
do
|
|
118676
118681
|
S = T || r, T = t.getParentNode(C), C++;
|
|
118677
118682
|
while (T && T.type === r.type && c.every((we) => T[we] !== S));
|
|
118678
|
-
let k = T || f, x = i && i.assignmentLayout && i.assignmentLayout !== "break-after-operator" && (f.type === "AssignmentExpression" || f.type === "VariableDeclarator" || f.type === "ClassProperty" || f.type === "PropertyDefinition" || f.type === "ClassPrivateProperty" || f.type === "ObjectProperty" || f.type === "Property"), w = (f.type === "ReturnStatement" || f.type === "ThrowStatement") && !(b || y), D = a && k.type === "JSXExpressionContainer" && t.grandparent.type !== "JSXAttribute", P = w9e(t), R = T9e(r, f), I = o && Tc(t, e), O = v ? e.useTabs ? " " : " ".repeat(e.tabWidth - 1) : "", M = k9e(p, u, d, e) || b || y, B = !E && !m && !o && (D ? u.type === "NullLiteral" || u.type === "Literal" && u.value === null : $N(u, e) && y9(r.test, 3)),
|
|
118683
|
+
let k = T || f, x = i && i.assignmentLayout && i.assignmentLayout !== "break-after-operator" && (f.type === "AssignmentExpression" || f.type === "VariableDeclarator" || f.type === "ClassProperty" || f.type === "PropertyDefinition" || f.type === "ClassPrivateProperty" || f.type === "ObjectProperty" || f.type === "Property"), w = (f.type === "ReturnStatement" || f.type === "ThrowStatement") && !(b || y), D = a && k.type === "JSXExpressionContainer" && t.grandparent.type !== "JSXAttribute", P = w9e(t), R = T9e(r, f), I = o && Tc(t, e), O = v ? e.useTabs ? " " : " ".repeat(e.tabWidth - 1) : "", M = k9e(p, u, d, e) || b || y, B = !E && !m && !o && (D ? u.type === "NullLiteral" || u.type === "Literal" && u.value === null : $N(u, e) && y9(r.test, 3)), $ = E || _ || o && !m || m && a && y9(r.test, 1) || B, G = [];
|
|
118679
118684
|
!b && Ne(u, qe.Dangling) && t.call(() => {
|
|
118680
118685
|
G.push(jn(t, e), de);
|
|
118681
118686
|
}, "consequent");
|
|
@@ -118685,7 +118690,7 @@ function oR(t, e, n, i) {
|
|
|
118685
118690
|
}, "test"), !y && Ne(d, qe.Dangling) && t.call(() => {
|
|
118686
118691
|
W.push(jn(t, e));
|
|
118687
118692
|
}, "alternate"), Ne(r, qe.Dangling) && W.push(jn(t, e));
|
|
118688
|
-
let K = /* @__PURE__ */ Symbol("test"), te = /* @__PURE__ */ Symbol("consequent"), xe = /* @__PURE__ */ Symbol("test-and-consequent"), pe = a ? [ox(n("test")), r.test.type === "ConditionalExpression" ? el : ""] : [n("checkType"), " ", "extends", " ", pc(r.extendsType) || r.extendsType.type === "TSMappedType" ? n("extendsType") : V(ox(n("extendsType")))], Fe = V([pe, " ?"], { id: K }), se = n(s), X = re([b || D && (qi(u) || m || E) ? de : Me, G, se]), J =
|
|
118693
|
+
let K = /* @__PURE__ */ Symbol("test"), te = /* @__PURE__ */ Symbol("consequent"), xe = /* @__PURE__ */ Symbol("test-and-consequent"), pe = a ? [ox(n("test")), r.test.type === "ConditionalExpression" ? el : ""] : [n("checkType"), " ", "extends", " ", pc(r.extendsType) || r.extendsType.type === "TSMappedType" ? n("extendsType") : V(ox(n("extendsType")))], Fe = V([pe, " ?"], { id: K }), se = n(s), X = re([b || D && (qi(u) || m || E) ? de : Me, G, se]), J = $ ? V([Fe, E ? X : Tt(X, V(X, { id: te }), { groupId: K })], { id: xe }) : [Fe, X], q = n(l), le = B ? Tt(q, LW(ox(q)), { groupId: xe }) : q, ce = [J, W.length > 0 ? [re([de, W]), de] : y ? de : B ? Tt(Me, " ", { groupId: xe }) : Me, ":", y ? " " : v ? $ ? Tt(O, Tt(E || B ? " " : O, " "), { groupId: xe }) : Tt(O, " ") : " ", y ? le : V([re(le), D && !B ? ne : ""]), R && !P ? ne : "", M ? el : ""];
|
|
118689
118694
|
return x && !M ? V(re([ne, V(ce)])) : x || w ? V(re(ce)) : P || o && h ? V([re([ne, ce]), I ? ne : ""]) : f === k ? V(ce) : ce;
|
|
118690
118695
|
}
|
|
118691
118696
|
function D9e(t, e, n, i) {
|
|
@@ -122306,33 +122311,33 @@ var Uze = $g(TR), zze = /* @__PURE__ */ new Set(["mj-style", "mj-raw"]), Hze = $
|
|
|
122306
122311
|
}, e7e = (t, e, n) => (n = t != null ? Yze(Qze(t)) : {}, Zze(kR(n, "default", { value: t, enumerable: !0 }), t)), t7e = Jze((t, e) => {
|
|
122307
122312
|
var n, i, r, a, o, s, l, c, u, d, p, f, m, h, _, b, y, E, v;
|
|
122308
122313
|
m = /\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]|[^\/\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu, f = /--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y, n = /(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu, _ = /(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y, p = /(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y, b = /[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y, v = /[\t\v\f\ufeff\p{Zs}]+/yu, c = /\r?\n|[\r\u2028\u2029]/y, u = /\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y, h = /\/\/.*/y, r = /[<>.:={}]|\/(?![\/*])/y, i = /[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu, a = /(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y, o = /[^<>{}]+/y, E = /^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/, y = /^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/, s = /^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/, l = /^(?:return|throw|yield)$/, d = RegExp(c.source), e.exports = function* (T, { jsx: S = !1 } = {}) {
|
|
122309
|
-
var C, k, x, w, D, P, R, I, O, M, B,
|
|
122310
|
-
for ({ length: P } = T, w = 0, D = "", W = [{ tag: "JS" }], C = [], B = 0,
|
|
122314
|
+
var C, k, x, w, D, P, R, I, O, M, B, $, G, W;
|
|
122315
|
+
for ({ length: P } = T, w = 0, D = "", W = [{ tag: "JS" }], C = [], B = 0, $ = !1; w < P; ) {
|
|
122311
122316
|
switch (I = W[W.length - 1], I.tag) {
|
|
122312
122317
|
case "JS":
|
|
122313
122318
|
case "JSNonExpressionParen":
|
|
122314
122319
|
case "InterpolationInTemplate":
|
|
122315
122320
|
case "InterpolationInJSX":
|
|
122316
122321
|
if (T[w] === "/" && (E.test(D) || s.test(D)) && (m.lastIndex = w, R = m.exec(T))) {
|
|
122317
|
-
w = m.lastIndex, D = R[0],
|
|
122322
|
+
w = m.lastIndex, D = R[0], $ = !0, yield { type: "RegularExpressionLiteral", value: R[0], closed: R[1] !== void 0 && R[1] !== "\\" };
|
|
122318
122323
|
continue;
|
|
122319
122324
|
}
|
|
122320
122325
|
if (f.lastIndex = w, R = f.exec(T)) {
|
|
122321
122326
|
switch (G = R[0], O = f.lastIndex, M = G, G) {
|
|
122322
122327
|
case "(":
|
|
122323
|
-
D === "?NonExpressionParenKeyword" && W.push({ tag: "JSNonExpressionParen", nesting: B }), B++,
|
|
122328
|
+
D === "?NonExpressionParenKeyword" && W.push({ tag: "JSNonExpressionParen", nesting: B }), B++, $ = !1;
|
|
122324
122329
|
break;
|
|
122325
122330
|
case ")":
|
|
122326
|
-
B--,
|
|
122331
|
+
B--, $ = !0, I.tag === "JSNonExpressionParen" && B === I.nesting && (W.pop(), M = "?NonExpressionParenEnd", $ = !1);
|
|
122327
122332
|
break;
|
|
122328
122333
|
case "{":
|
|
122329
|
-
f.lastIndex = 0, x = !y.test(D) && (E.test(D) || s.test(D)), C.push(x),
|
|
122334
|
+
f.lastIndex = 0, x = !y.test(D) && (E.test(D) || s.test(D)), C.push(x), $ = !1;
|
|
122330
122335
|
break;
|
|
122331
122336
|
case "}":
|
|
122332
122337
|
switch (I.tag) {
|
|
122333
122338
|
case "InterpolationInTemplate":
|
|
122334
122339
|
if (C.length === I.nesting) {
|
|
122335
|
-
b.lastIndex = w, R = b.exec(T), w = b.lastIndex, D = R[0], R[1] === "${" ? (D = "?InterpolationInTemplate",
|
|
122340
|
+
b.lastIndex = w, R = b.exec(T), w = b.lastIndex, D = R[0], R[1] === "${" ? (D = "?InterpolationInTemplate", $ = !1, yield { type: "TemplateMiddle", value: R[0] }) : (W.pop(), $ = !0, yield { type: "TemplateTail", value: R[0], closed: R[1] === "`" });
|
|
122336
122341
|
continue;
|
|
122337
122342
|
}
|
|
122338
122343
|
break;
|
|
@@ -122342,24 +122347,24 @@ var Uze = $g(TR), zze = /* @__PURE__ */ new Set(["mj-style", "mj-raw"]), Hze = $
|
|
|
122342
122347
|
continue;
|
|
122343
122348
|
}
|
|
122344
122349
|
}
|
|
122345
|
-
|
|
122350
|
+
$ = C.pop(), M = $ ? "?ExpressionBraceEnd" : "}";
|
|
122346
122351
|
break;
|
|
122347
122352
|
case "]":
|
|
122348
|
-
|
|
122353
|
+
$ = !0;
|
|
122349
122354
|
break;
|
|
122350
122355
|
case "++":
|
|
122351
122356
|
case "--":
|
|
122352
|
-
M =
|
|
122357
|
+
M = $ ? "?PostfixIncDec" : "?UnaryIncDec";
|
|
122353
122358
|
break;
|
|
122354
122359
|
case "<":
|
|
122355
122360
|
if (S && (E.test(D) || s.test(D))) {
|
|
122356
122361
|
W.push({ tag: "JSXTag" }), w += 1, D = "<", yield { type: "JSXPunctuator", value: G };
|
|
122357
122362
|
continue;
|
|
122358
122363
|
}
|
|
122359
|
-
|
|
122364
|
+
$ = !1;
|
|
122360
122365
|
break;
|
|
122361
122366
|
default:
|
|
122362
|
-
|
|
122367
|
+
$ = !1;
|
|
122363
122368
|
}
|
|
122364
122369
|
w = O, D = M, yield { type: "Punctuator", value: G };
|
|
122365
122370
|
continue;
|
|
@@ -122372,19 +122377,19 @@ var Uze = $g(TR), zze = /* @__PURE__ */ new Set(["mj-style", "mj-raw"]), Hze = $
|
|
|
122372
122377
|
case "with":
|
|
122373
122378
|
D !== "." && D !== "?." && (M = "?NonExpressionParenKeyword");
|
|
122374
122379
|
}
|
|
122375
|
-
D = M,
|
|
122380
|
+
D = M, $ = !s.test(R[0]), yield { type: R[1] === "#" ? "PrivateIdentifier" : "IdentifierName", value: R[0] };
|
|
122376
122381
|
continue;
|
|
122377
122382
|
}
|
|
122378
122383
|
if (_.lastIndex = w, R = _.exec(T)) {
|
|
122379
|
-
w = _.lastIndex, D = R[0],
|
|
122384
|
+
w = _.lastIndex, D = R[0], $ = !0, yield { type: "StringLiteral", value: R[0], closed: R[2] !== void 0 };
|
|
122380
122385
|
continue;
|
|
122381
122386
|
}
|
|
122382
122387
|
if (p.lastIndex = w, R = p.exec(T)) {
|
|
122383
|
-
w = p.lastIndex, D = R[0],
|
|
122388
|
+
w = p.lastIndex, D = R[0], $ = !0, yield { type: "NumericLiteral", value: R[0] };
|
|
122384
122389
|
continue;
|
|
122385
122390
|
}
|
|
122386
122391
|
if (b.lastIndex = w, R = b.exec(T)) {
|
|
122387
|
-
w = b.lastIndex, D = R[0], R[1] === "${" ? (D = "?InterpolationInTemplate", W.push({ tag: "InterpolationInTemplate", nesting: C.length }),
|
|
122392
|
+
w = b.lastIndex, D = R[0], R[1] === "${" ? (D = "?InterpolationInTemplate", W.push({ tag: "InterpolationInTemplate", nesting: C.length }), $ = !1, yield { type: "TemplateHead", value: R[0] }) : ($ = !0, yield { type: "NoSubstitutionTemplate", value: R[0], closed: R[1] === "`" });
|
|
122388
122393
|
continue;
|
|
122389
122394
|
}
|
|
122390
122395
|
break;
|
|
@@ -122396,10 +122401,10 @@ var Uze = $g(TR), zze = /* @__PURE__ */ new Set(["mj-style", "mj-raw"]), Hze = $
|
|
|
122396
122401
|
W.push({ tag: "JSXTag" });
|
|
122397
122402
|
break;
|
|
122398
122403
|
case ">":
|
|
122399
|
-
W.pop(), D === "/" || I.tag === "JSXTagEnd" ? (M = "?JSX",
|
|
122404
|
+
W.pop(), D === "/" || I.tag === "JSXTagEnd" ? (M = "?JSX", $ = !0) : W.push({ tag: "JSXChildren" });
|
|
122400
122405
|
break;
|
|
122401
122406
|
case "{":
|
|
122402
|
-
W.push({ tag: "InterpolationInJSX", nesting: C.length }), M = "?InterpolationInJSX",
|
|
122407
|
+
W.push({ tag: "InterpolationInJSX", nesting: C.length }), M = "?InterpolationInJSX", $ = !1;
|
|
122403
122408
|
break;
|
|
122404
122409
|
case "/":
|
|
122405
122410
|
D === "<" && (W.pop(), W[W.length - 1].tag === "JSXChildren" && W.pop(), W.push({ tag: "JSXTagEnd" }));
|
|
@@ -122426,7 +122431,7 @@ var Uze = $g(TR), zze = /* @__PURE__ */ new Set(["mj-style", "mj-raw"]), Hze = $
|
|
|
122426
122431
|
W.push({ tag: "JSXTag" }), w++, D = "<", yield { type: "JSXPunctuator", value: "<" };
|
|
122427
122432
|
continue;
|
|
122428
122433
|
case "{":
|
|
122429
|
-
W.push({ tag: "InterpolationInJSX", nesting: C.length }), w++, D = "?InterpolationInJSX",
|
|
122434
|
+
W.push({ tag: "InterpolationInJSX", nesting: C.length }), w++, D = "?InterpolationInJSX", $ = !1, yield { type: "JSXPunctuator", value: "{" };
|
|
122430
122435
|
continue;
|
|
122431
122436
|
}
|
|
122432
122437
|
}
|
|
@@ -122435,18 +122440,18 @@ var Uze = $g(TR), zze = /* @__PURE__ */ new Set(["mj-style", "mj-raw"]), Hze = $
|
|
|
122435
122440
|
continue;
|
|
122436
122441
|
}
|
|
122437
122442
|
if (c.lastIndex = w, R = c.exec(T)) {
|
|
122438
|
-
w = c.lastIndex,
|
|
122443
|
+
w = c.lastIndex, $ = !1, l.test(D) && (D = "?NoLineTerminatorHere"), yield { type: "LineTerminatorSequence", value: R[0] };
|
|
122439
122444
|
continue;
|
|
122440
122445
|
}
|
|
122441
122446
|
if (u.lastIndex = w, R = u.exec(T)) {
|
|
122442
|
-
w = u.lastIndex, d.test(R[0]) && (
|
|
122447
|
+
w = u.lastIndex, d.test(R[0]) && ($ = !1, l.test(D) && (D = "?NoLineTerminatorHere")), yield { type: "MultiLineComment", value: R[0], closed: R[1] !== void 0 };
|
|
122443
122448
|
continue;
|
|
122444
122449
|
}
|
|
122445
122450
|
if (h.lastIndex = w, R = h.exec(T)) {
|
|
122446
|
-
w = h.lastIndex,
|
|
122451
|
+
w = h.lastIndex, $ = !1, yield { type: "SingleLineComment", value: R[0] };
|
|
122447
122452
|
continue;
|
|
122448
122453
|
}
|
|
122449
|
-
k = String.fromCodePoint(T.codePointAt(w)), w += k.length, D = k,
|
|
122454
|
+
k = String.fromCodePoint(T.codePointAt(w)), w += k.length, D = k, $ = !1, yield { type: I.tag.startsWith("JSX") ? "JSXInvalid" : "Invalid", value: k };
|
|
122450
122455
|
}
|
|
122451
122456
|
};
|
|
122452
122457
|
}), n7e = {};
|
|
@@ -123179,8 +123184,8 @@ function d1(t, e) {
|
|
|
123179
123184
|
R ? o.push(I, D) : o.push(O, P);
|
|
123180
123185
|
break;
|
|
123181
123186
|
}
|
|
123182
|
-
let M = C[S + 2], B = { indent: y, mode: E, doc: { ...v, [MD]: S + 2 } },
|
|
123183
|
-
o.push(B),
|
|
123187
|
+
let M = C[S + 2], B = { indent: y, mode: E, doc: { ...v, [MD]: S + 2 } }, $ = tb({ indent: y, mode: Oo, doc: [x, w, M] }, [], T, c.length > 0, n, !0);
|
|
123188
|
+
o.push(B), $ ? o.push(I, D) : R ? o.push(O, D) : o.push(O, P);
|
|
123184
123189
|
break;
|
|
123185
123190
|
}
|
|
123186
123191
|
case ca:
|
|
@@ -124839,8 +124844,8 @@ const Kqe = `
|
|
|
124839
124844
|
function Rv(t, { rootBlockId: e }) {
|
|
124840
124845
|
const { cleanedDocument: n, css: i } = gV(t);
|
|
124841
124846
|
return /* @__PURE__ */ g(pf, { children: "<!DOCTYPE html>" + CQ(
|
|
124842
|
-
/* @__PURE__ */
|
|
124843
|
-
/* @__PURE__ */
|
|
124847
|
+
/* @__PURE__ */ U("html", { lang: "en", children: [
|
|
124848
|
+
/* @__PURE__ */ U("head", { children: [
|
|
124844
124849
|
/* @__PURE__ */ g("link", { href: "https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Oswald:wght@200..700&family=Pacifico&family=Playfair:ital,opsz,wght@0,5..1200,300..900;1,5..1200,300..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap", rel: "stylesheet" }),
|
|
124845
124850
|
/* @__PURE__ */ g(
|
|
124846
124851
|
"style",
|
|
@@ -125115,8 +125120,8 @@ function lQ({
|
|
|
125115
125120
|
new CustomEvent("email-builder-highlight-editor", { detail: !0 })
|
|
125116
125121
|
), n(t.blockId), X5(t.blockId);
|
|
125117
125122
|
}, T = t.columnSlot;
|
|
125118
|
-
return /* @__PURE__ */
|
|
125119
|
-
/* @__PURE__ */
|
|
125123
|
+
return /* @__PURE__ */ U(Te, { sx: { width: "100%" }, children: [
|
|
125124
|
+
/* @__PURE__ */ U(
|
|
125120
125125
|
Te,
|
|
125121
125126
|
{
|
|
125122
125127
|
ref: E,
|
|
@@ -125227,8 +125232,8 @@ function uVe() {
|
|
|
125227
125232
|
border: 1,
|
|
125228
125233
|
borderColor: "divider"
|
|
125229
125234
|
},
|
|
125230
|
-
children: /* @__PURE__ */ g(uU, { onClickAway: a, children: /* @__PURE__ */
|
|
125231
|
-
/* @__PURE__ */
|
|
125235
|
+
children: /* @__PURE__ */ g(uU, { onClickAway: a, children: /* @__PURE__ */ U(Te, { sx: { display: "flex", flexDirection: "column", maxHeight: "50vh" }, children: [
|
|
125236
|
+
/* @__PURE__ */ U(
|
|
125232
125237
|
Te,
|
|
125233
125238
|
{
|
|
125234
125239
|
sx: {
|
|
@@ -125349,7 +125354,7 @@ function pVe({
|
|
|
125349
125354
|
}, [t, e, n, i, a]);
|
|
125350
125355
|
return Ce(() => {
|
|
125351
125356
|
l.includes(r) || s_(l[0] ?? "editor");
|
|
125352
|
-
}, [l.join(","), r]), /* @__PURE__ */
|
|
125357
|
+
}, [l.join(","), r]), /* @__PURE__ */ U(
|
|
125353
125358
|
yU,
|
|
125354
125359
|
{
|
|
125355
125360
|
value: r,
|
|
@@ -125388,7 +125393,7 @@ function pVe({
|
|
|
125388
125393
|
{
|
|
125389
125394
|
id: "tab-preview",
|
|
125390
125395
|
value: "preview",
|
|
125391
|
-
label: /* @__PURE__ */ g(En, { title: s("header.preview"), children: /* @__PURE__ */
|
|
125396
|
+
label: /* @__PURE__ */ g(En, { title: s("header.preview"), children: /* @__PURE__ */ U("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
125392
125397
|
/* @__PURE__ */ g("path", { d: "M12.5003 9.99984C12.5003 11.3805 11.381 12.4998 10.0003 12.4998C8.61957 12.4998 7.50029 11.3805 7.50029 9.99984C7.50029 8.61913 8.61957 7.49984 10.0003 7.49984C11.381 7.49984 12.5003 8.61913 12.5003 9.99984Z", stroke: "inherit", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
125393
125398
|
/* @__PURE__ */ g("path", { d: "M2.04883 9.99981C3.11072 6.6189 6.26929 4.1665 10.0007 4.1665C13.732 4.1665 16.8906 6.61893 17.9525 9.99987C16.8906 13.3808 13.732 15.8332 10.0007 15.8332C6.26929 15.8332 3.11071 13.3807 2.04883 9.99981Z", stroke: "inherit", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
125394
125399
|
] }) })
|
|
@@ -125539,20 +125544,20 @@ function gVe({
|
|
|
125539
125544
|
return JSON.stringify(K);
|
|
125540
125545
|
}
|
|
125541
125546
|
return "";
|
|
125542
|
-
}, [s]),
|
|
125547
|
+
}, [s]), $ = dt(() => {
|
|
125543
125548
|
switch (s) {
|
|
125544
125549
|
case "preview":
|
|
125545
125550
|
return /* @__PURE__ */ g(tt, { children: /* @__PURE__ */ g(zL, {}) });
|
|
125546
125551
|
case "html":
|
|
125547
125552
|
return /* @__PURE__ */ g(En, { title: E("header.copy_html"), placement: "left-start", sx: { color: "text.primary" }, children: /* @__PURE__ */ g(Fn, { onClick: () => G(M?.props.children || ""), children: /* @__PURE__ */ g(dM, { fontSize: "small" }) }) });
|
|
125548
125553
|
case "json":
|
|
125549
|
-
return /* @__PURE__ */
|
|
125554
|
+
return /* @__PURE__ */ U(tt, { children: [
|
|
125550
125555
|
/* @__PURE__ */ g(o0e, {}),
|
|
125551
125556
|
/* @__PURE__ */ g(En, { title: E("header.copy_json"), placement: "left-start", sx: { color: "text.primary" }, children: /* @__PURE__ */ g(Fn, { onClick: () => G(B), children: /* @__PURE__ */ g(dM, { fontSize: "small" }) }) })
|
|
125552
125557
|
] });
|
|
125553
125558
|
case "editor":
|
|
125554
125559
|
default:
|
|
125555
|
-
return /* @__PURE__ */
|
|
125560
|
+
return /* @__PURE__ */ U(tt, { children: [
|
|
125556
125561
|
/* @__PURE__ */ g(En, { title: E("header.undo"), children: /* @__PURE__ */ g("div", { onClick: I, style: { transform: "rotateY(180deg)" }, className: `buttonsUndoRedo ${u ? "" : "disabledButton"} `, children: /* @__PURE__ */ g("svg", { width: "24px", height: "24px", viewBox: "0 0 25 25", children: /* @__PURE__ */ g(
|
|
125557
125562
|
"path",
|
|
125558
125563
|
{
|
|
@@ -125584,7 +125589,7 @@ function gVe({
|
|
|
125584
125589
|
console.error("Error copying text:", te);
|
|
125585
125590
|
}
|
|
125586
125591
|
}, W = !!e;
|
|
125587
|
-
return /* @__PURE__ */
|
|
125592
|
+
return /* @__PURE__ */ U(
|
|
125588
125593
|
Ch,
|
|
125589
125594
|
{
|
|
125590
125595
|
maxWidth: !1,
|
|
@@ -125603,7 +125608,7 @@ function gVe({
|
|
|
125603
125608
|
},
|
|
125604
125609
|
children: [
|
|
125605
125610
|
/* @__PURE__ */ g("button", { id: "saveData", style: { display: "none" }, onClick: R, children: "Save" }),
|
|
125606
|
-
/* @__PURE__ */ g(Te, { sx: W ? { flexShrink: 0 } : void 0, children: /* @__PURE__ */ g(oz, { threshold: ".preview-container-end", disabled: !t, topOffset: 0, children: /* @__PURE__ */
|
|
125611
|
+
/* @__PURE__ */ g(Te, { sx: W ? { flexShrink: 0 } : void 0, children: /* @__PURE__ */ g(oz, { threshold: ".preview-container-end", disabled: !t, topOffset: 0, children: /* @__PURE__ */ U(
|
|
125607
125612
|
"div",
|
|
125608
125613
|
{
|
|
125609
125614
|
id: "ee-editor-header",
|
|
@@ -125623,7 +125628,7 @@ function gVe({
|
|
|
125623
125628
|
alignItems: "center",
|
|
125624
125629
|
marginTop: 0
|
|
125625
125630
|
},
|
|
125626
|
-
children: /* @__PURE__ */
|
|
125631
|
+
children: /* @__PURE__ */ U(Sn, { px: 2, direction: "row", gap: 2, width: "100%", justifyContent: "space-between", alignItems: "center", children: [
|
|
125627
125632
|
/* @__PURE__ */ g(Sn, { direction: "row", spacing: 2, children: /* @__PURE__ */ g(
|
|
125628
125633
|
pVe,
|
|
125629
125634
|
{
|
|
@@ -125633,11 +125638,11 @@ function gVe({
|
|
|
125633
125638
|
enableJsonTab: a
|
|
125634
125639
|
}
|
|
125635
125640
|
) }),
|
|
125636
|
-
/* @__PURE__ */ g(Sn, { direction: "row", spacing: 2, alignItems: "center", children:
|
|
125641
|
+
/* @__PURE__ */ g(Sn, { direction: "row", spacing: 2, alignItems: "center", children: $() })
|
|
125637
125642
|
] })
|
|
125638
125643
|
}
|
|
125639
125644
|
),
|
|
125640
|
-
P && (P.length / P.threshold >= 0.9 || P.exceeded) && /* @__PURE__ */
|
|
125645
|
+
P && (P.length / P.threshold >= 0.9 || P.exceeded) && /* @__PURE__ */ U(
|
|
125641
125646
|
Yl,
|
|
125642
125647
|
{
|
|
125643
125648
|
severity: P?.exceeded ? "error" : "warning",
|
|
@@ -125648,7 +125653,7 @@ function gVe({
|
|
|
125648
125653
|
"& .MuiAlert-message": { width: "100%", display: "flex", justifyContent: "space-between", alignItems: "center", gap: 2 }
|
|
125649
125654
|
},
|
|
125650
125655
|
children: [
|
|
125651
|
-
/* @__PURE__ */
|
|
125656
|
+
/* @__PURE__ */ U("span", { children: [
|
|
125652
125657
|
/* @__PURE__ */ g("span", { style: { fontWeight: 700 }, children: "Attention!" }),
|
|
125653
125658
|
" ",
|
|
125654
125659
|
P?.exceeded ? "You have exceeded the style limit (≈16,000 characters). Some clients will ignore responsive design." : "The email is close to the style limit (≈16,000 characters). If you exceed it, some clients may ignore responsive design."
|
|
@@ -125675,7 +125680,7 @@ function gVe({
|
|
|
125675
125680
|
]
|
|
125676
125681
|
}
|
|
125677
125682
|
) }) }),
|
|
125678
|
-
/* @__PURE__ */
|
|
125683
|
+
/* @__PURE__ */ U(
|
|
125679
125684
|
Te,
|
|
125680
125685
|
{
|
|
125681
125686
|
className: "preview-container",
|
|
@@ -125733,7 +125738,7 @@ function gVe({
|
|
|
125733
125738
|
}
|
|
125734
125739
|
) }) }),
|
|
125735
125740
|
D(),
|
|
125736
|
-
(s === "preview" && v || s === "editor" && k) && /* @__PURE__ */
|
|
125741
|
+
(s === "preview" && v || s === "editor" && k) && /* @__PURE__ */ U(
|
|
125737
125742
|
Te,
|
|
125738
125743
|
{
|
|
125739
125744
|
sx: {
|
|
@@ -125822,7 +125827,7 @@ function _Ve({
|
|
|
125822
125827
|
};
|
|
125823
125828
|
}, []);
|
|
125824
125829
|
const m = !!r;
|
|
125825
|
-
return /* @__PURE__ */
|
|
125830
|
+
return /* @__PURE__ */ U(
|
|
125826
125831
|
Ch,
|
|
125827
125832
|
{
|
|
125828
125833
|
className: `${n ? "dark-email-builder" : "light-email-builder"}`,
|
|
@@ -127352,8 +127357,8 @@ const uQ = "#212443", Om = "#4F46E5", Ro = "#1F8466", As = "#E81212", hr = "#F6D
|
|
|
127352
127357
|
console.error("Error updating document:", G);
|
|
127353
127358
|
}
|
|
127354
127359
|
}, [m]);
|
|
127355
|
-
const
|
|
127356
|
-
return /* @__PURE__ */ g("div", { style: { position: "relative", width: "100%", height: "100%" }, children: /* @__PURE__ */ g(_Q, { backend: bQ, children: /* @__PURE__ */ g(hee, { theme:
|
|
127360
|
+
const $ = rWe(k, x, I);
|
|
127361
|
+
return /* @__PURE__ */ g("div", { style: { position: "relative", width: "100%", height: "100%" }, children: /* @__PURE__ */ g(_Q, { backend: bQ, children: /* @__PURE__ */ g(hee, { theme: $, children: /* @__PURE__ */ U(vQ, { i18n: nu, children: [
|
|
127357
127362
|
/* @__PURE__ */ g(
|
|
127358
127363
|
gA,
|
|
127359
127364
|
{
|