monto-email-builder 1.2.3 → 1.2.5

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.
Files changed (21) hide show
  1. package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/ColumnsContainerSidebarPanel.d.ts.map +1 -1
  2. package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/EmailLayoutSidebarPanel.d.ts.map +1 -1
  3. package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/ImageSidebarPanel.d.ts.map +1 -1
  4. package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/SocialsSidebarPanel.d.ts.map +1 -1
  5. package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/TextSidebarPanel.d.ts.map +1 -1
  6. package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/VideoSidebarPanel.d.ts.map +1 -1
  7. package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/BaseColorInput.d.ts.map +1 -1
  8. package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/PaddingInput.d.ts.map +1 -1
  9. package/dist/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextAlignInput.d.ts.map +1 -1
  10. package/dist/App/InspectorDrawer/ToggleInspectorPanelButton.d.ts.map +1 -1
  11. package/dist/App/SamplesDrawer/ToggleSamplesPanelButton.d.ts.map +1 -1
  12. package/dist/App/TemplatePanel/MainTabsGroup.d.ts.map +1 -1
  13. package/dist/App/TemplatePanel/index.d.ts.map +1 -1
  14. package/dist/HtmlEditor/index.d.ts.map +1 -1
  15. package/dist/documents/blocks/Image/ImageEditor.d.ts.map +1 -1
  16. package/dist/documents/blocks/Video/VideoEditor.d.ts.map +1 -1
  17. package/dist/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/buttons.d.ts.map +1 -1
  18. package/dist/documents/blocks/helpers/block-wrappers/TuneMenu.d.ts.map +1 -1
  19. package/dist/html-editor.js +43 -39
  20. package/dist/index.js +571 -518
  21. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ var _l = (e, t, n) => t in e ? Tl(e, t, { enumerable: !0, configurable: !0, writ
3
3
  var gn = (e, t, n) => _l(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { jsx as o, jsxs as w, Fragment as an } from "react/jsx-runtime";
5
5
  import mt, { createContext as ho, useContext as hr, useState as z, useEffect as Ce, useRef as Oe, useMemo as ct, useCallback as en, Fragment as Bl, useLayoutEffect as Qn, memo as Ml, forwardRef as Ol, useImperativeHandle as Nl } from "react";
6
- import { Box as se, Typography as ke, Stack as Z, Button as Me, InputLabel as At, Menu as br, ButtonBase as Fn, ToggleButtonGroup as bo, TextField as dt, ToggleButton as le, MenuItem as on, Slider as Rl, Dialog as Cr, DialogTitle as yr, DialogContent as xr, DialogActions as Sr, CircularProgress as jn, FormControlLabel as vr, Switch as Pl, IconButton as $e, Divider as rn, Popover as ao, Select as wr, Checkbox as Fl, Accordion as zl, AccordionSummary as Ll, AccordionDetails as Wl, Paper as Co, Drawer as Ir, Tabs as kr, Tab as Zt, Link as Hl, Fade as Vl, Tooltip as Ze, Alert as Ul, useTheme as Dr, ThemeProvider as $l, CssBaseline as jl } from "@mui/material";
6
+ import { Box as se, Typography as ke, Stack as Z, Button as Me, InputLabel as At, Menu as br, ButtonBase as zn, ToggleButtonGroup as bo, TextField as dt, ToggleButton as le, MenuItem as on, Slider as Rl, Dialog as Cr, DialogTitle as yr, DialogContent as xr, DialogActions as Sr, CircularProgress as Kn, FormControlLabel as vr, Switch as Pl, IconButton as $e, Divider as rn, Popover as ao, Select as wr, Checkbox as Fl, Accordion as zl, AccordionSummary as Ll, AccordionDetails as Wl, Paper as Co, Drawer as Ir, Tabs as kr, Tab as Zt, Link as Hl, Fade as Vl, Tooltip as Ze, Alert as Ul, useTheme as Dr, ThemeProvider as $l, CssBaseline as jl } from "@mui/material";
7
7
  import { renderToStaticMarkup as yo, Reader as Kl } from "monto-email-core";
8
8
  import { create as ql } from "zustand";
9
9
  import { g as Er, s as Ar, t as Yl } from "./chunks/chunk-_7XTjFEi.js";
@@ -11,29 +11,82 @@ import { E as sn } from "./chunks/chunk-Cc3ecmGS.js";
11
11
  import { getFontFamily as Tr, styleToCss as _r, getResolvedTextBodyHtml as Ht, TextPropsSchema as Br, Text as Xl } from "monto-email-block-text";
12
12
  import { createTheme as Mr, alpha as eo, lighten as jt, darken as Ho } from "@mui/material/styles";
13
13
  import { ButtonPropsDefaults as Kt, ButtonPropsSchema as Or, Button as Gl } from "monto-email-block-button";
14
- import { CloseOutlined as Nr, AddOutlined as xo, TextFieldsOutlined as Jl, TitleOutlined as Zl, AlignVerticalTopOutlined as Ql, AlignVerticalBottomOutlined as ei, AlignHorizontalLeftOutlined as ti, AlignHorizontalRightOutlined as ni, FormatAlignLeftOutlined as oi, FormatAlignCenterOutlined as ri, FormatAlignRightOutlined as li, RoundedCornerOutlined as ii, SpaceBarOutlined as ai, VerticalAlignTopOutlined as So, VerticalAlignCenterOutlined as vo, VerticalAlignBottomOutlined as wo, UnfoldMoreOutlined as si, HeightOutlined as Rr, AspectRatioOutlined as Pr, LinkOutlined as Kn, CloudUploadOutlined as Ft, DataObjectOutlined as Fr, DragIndicator as zr, DeleteOutline as ci, Add as ui, HMobiledataOutlined as di, NotesOutlined as pi, SmartButtonOutlined as fi, ImageOutlined as mi, VideocamOutlined as gi, HorizontalRuleOutlined as hi, Crop32Outlined as bi, ShareOutlined as Ci, HtmlOutlined as yi, ViewColumnOutlined as xi, LibraryAddOutlined as Si, ArrowRightOutlined as vi, Check as Lr, ArrowUpwardOutlined as wi, ArrowDownwardOutlined as Ii, ContentCopyOutlined as ki, DeleteOutlined as Di, LastPageOutlined as Ei, AppRegistrationOutlined as Ai, FirstPageOutlined as Ti, MenuOutlined as _i, FileDownloadOutlined as Bi, FileUploadOutlined as Mi, EditOutlined as Oi, PreviewOutlined as Ni, CodeOutlined as Ri, RedoOutlined as Pi, UndoOutlined as Fi, MonitorOutlined as zi, PhoneIphoneOutlined as Li } from "@mui/icons-material";
15
- import { HexColorPicker as Wi, HexColorInput as Hi } from "react-colorful";
16
- import Vi from "@mui/icons-material/FormatBoldOutlined";
17
- import Ui from "@mui/icons-material/FormatItalicOutlined";
18
- import $i from "@mui/icons-material/FormatUnderlinedOutlined";
19
- import ji from "@mui/icons-material/StrikethroughSOutlined";
14
+ import xo from "@mui/icons-material/AddOutlined";
15
+ import Nr from "@mui/icons-material/CloseOutlined";
16
+ import { HexColorPicker as Jl, HexColorInput as Zl } from "react-colorful";
17
+ import Ql from "@mui/icons-material/FormatBoldOutlined";
18
+ import ei from "@mui/icons-material/FormatItalicOutlined";
19
+ import ti from "@mui/icons-material/FormatUnderlinedOutlined";
20
+ import ni from "@mui/icons-material/StrikethroughSOutlined";
21
+ import oi from "@mui/icons-material/RoundedCornerOutlined";
22
+ import ri from "@mui/icons-material/TextFieldsOutlined";
23
+ import li from "@mui/icons-material/TitleOutlined";
24
+ import ii from "@mui/icons-material/AlignHorizontalLeftOutlined";
25
+ import ai from "@mui/icons-material/AlignHorizontalRightOutlined";
26
+ import si from "@mui/icons-material/AlignVerticalBottomOutlined";
27
+ import ci from "@mui/icons-material/AlignVerticalTopOutlined";
28
+ import ui from "@mui/icons-material/FormatAlignCenterOutlined";
29
+ import di from "@mui/icons-material/FormatAlignLeftOutlined";
30
+ import pi from "@mui/icons-material/FormatAlignRightOutlined";
31
+ import fi from "@mui/icons-material/SpaceBarOutlined";
32
+ import mi from "@mui/icons-material/UnfoldMoreOutlined";
33
+ import So from "@mui/icons-material/VerticalAlignBottomOutlined";
34
+ import vo from "@mui/icons-material/VerticalAlignCenterOutlined";
35
+ import wo from "@mui/icons-material/VerticalAlignTopOutlined";
20
36
  import { z as J } from "zod";
21
- import { ColumnsContainerPropsSchema as Wr, ColumnsContainer as Ki } from "monto-email-block-columns-container";
22
- import { ContainerPropsSchema as qi, Container as Yi } from "monto-email-block-container";
23
- import { DividerPropsDefaults as Vo, DividerPropsSchema as Hr, Divider as Xi } from "monto-email-block-divider";
24
- import { HeadingPropsDefaults as Gi, HeadingPropsSchema as Vr, Heading as Ji } from "monto-email-block-heading";
25
- import { HtmlPropsSchema as Ur, Html as Zi } from "monto-email-block-html";
26
- import Qi from "@uiw/react-codemirror";
27
- import { html as ea } from "@codemirror/lang-html";
28
- import { dracula as ta } from "@uiw/codemirror-themes-all";
29
- import { ImagePropsSchema as $r, Image as na } from "monto-email-block-image";
30
- import { SpacerPropsDefaults as oa, SpacerPropsSchema as jr, Spacer as ra } from "monto-email-block-spacer";
31
- import la from "@mui/icons-material/ExpandMoreOutlined";
32
- import ia from "@mui/icons-material/LinkOutlined";
33
- import aa from "@mui/material/ToggleButton";
34
- import { buildBlockConfigurationDictionary as sa, buildBlockComponent as ca, buildBlockConfigurationSchema as ua } from "monto-email-document-core";
35
- import { Video as da } from "monto-email-block-video";
36
- import { Socials as pa } from "monto-email-block-socials";
37
+ import { ColumnsContainerPropsSchema as Rr, ColumnsContainer as gi } from "monto-email-block-columns-container";
38
+ import { ContainerPropsSchema as hi, Container as bi } from "monto-email-block-container";
39
+ import Pr from "@mui/icons-material/HeightOutlined";
40
+ import { DividerPropsDefaults as Vo, DividerPropsSchema as Fr, Divider as Ci } from "monto-email-block-divider";
41
+ import zr from "@mui/icons-material/AspectRatioOutlined";
42
+ import { HeadingPropsDefaults as yi, HeadingPropsSchema as Lr, Heading as xi } from "monto-email-block-heading";
43
+ import { HtmlPropsSchema as Wr, Html as Si } from "monto-email-block-html";
44
+ import vi from "@uiw/react-codemirror";
45
+ import { html as wi } from "@codemirror/lang-html";
46
+ import { dracula as Ii } from "@uiw/codemirror-themes-all";
47
+ import Ft from "@mui/icons-material/CloudUploadOutlined";
48
+ import An from "@mui/icons-material/LinkOutlined";
49
+ import { ImagePropsSchema as Hr, Image as ki } from "monto-email-block-image";
50
+ import { SpacerPropsDefaults as Di, SpacerPropsSchema as Vr, Spacer as Ei } from "monto-email-block-spacer";
51
+ import Ur from "@mui/icons-material/DataObjectOutlined";
52
+ import Ai from "@mui/icons-material/ExpandMoreOutlined";
53
+ import $r from "@mui/icons-material/DragIndicator";
54
+ import Ti from "@mui/icons-material/DeleteOutline";
55
+ import _i from "@mui/icons-material/Add";
56
+ import Bi from "@mui/material/ToggleButton";
57
+ import Mi from "@mui/icons-material/ArrowRightOutlined";
58
+ import Oi from "@mui/icons-material/Crop32Outlined";
59
+ import Ni from "@mui/icons-material/HMobiledataOutlined";
60
+ import Ri from "@mui/icons-material/HorizontalRuleOutlined";
61
+ import Pi from "@mui/icons-material/HtmlOutlined";
62
+ import Fi from "@mui/icons-material/ImageOutlined";
63
+ import zi from "@mui/icons-material/LibraryAddOutlined";
64
+ import Li from "@mui/icons-material/NotesOutlined";
65
+ import Wi from "@mui/icons-material/ShareOutlined";
66
+ import Hi from "@mui/icons-material/SmartButtonOutlined";
67
+ import Vi from "@mui/icons-material/ViewColumnOutlined";
68
+ import Ui from "@mui/icons-material/VideocamOutlined";
69
+ import $i from "@mui/icons-material/MonitorOutlined";
70
+ import ji from "@mui/icons-material/PhoneIphoneOutlined";
71
+ import { buildBlockConfigurationDictionary as Ki, buildBlockComponent as qi, buildBlockConfigurationSchema as Yi } from "monto-email-document-core";
72
+ import jr from "@mui/icons-material/Check";
73
+ import { Video as Xi } from "monto-email-block-video";
74
+ import { Socials as Gi } from "monto-email-block-socials";
75
+ import Ji from "@mui/icons-material/ArrowDownwardOutlined";
76
+ import Zi from "@mui/icons-material/ArrowUpwardOutlined";
77
+ import Qi from "@mui/icons-material/ContentCopyOutlined";
78
+ import ea from "@mui/icons-material/DeleteOutlined";
79
+ import ta from "@mui/icons-material/AppRegistrationOutlined";
80
+ import na from "@mui/icons-material/LastPageOutlined";
81
+ import oa from "@mui/icons-material/FirstPageOutlined";
82
+ import ra from "@mui/icons-material/MenuOutlined";
83
+ import la from "@mui/icons-material/FileDownloadOutlined";
84
+ import ia from "@mui/icons-material/FileUploadOutlined";
85
+ import aa from "@mui/icons-material/CodeOutlined";
86
+ import sa from "@mui/icons-material/EditOutlined";
87
+ import ca from "@mui/icons-material/PreviewOutlined";
88
+ import ua from "@mui/icons-material/RedoOutlined";
89
+ import da from "@mui/icons-material/UndoOutlined";
37
90
  class Kr {
38
91
  // 最多支持回退5步
39
92
  constructor(t) {
@@ -106,10 +159,10 @@ class Kr {
106
159
  return JSON.stringify(t) === JSON.stringify(n);
107
160
  }
108
161
  }
109
- let fa = 0, Hn = null, so = null, co = !0, uo = !0, He = null;
110
- function ma(e) {
111
- e != null && e.document && (Hn = e.document), e != null && e.language && (so = e.language), (e == null ? void 0 : e.showJsonFeatures) !== void 0 && (co = e.showJsonFeatures), (e == null ? void 0 : e.showSamplesDrawerTitle) !== void 0 && (uo = e.showSamplesDrawerTitle);
112
- const t = (e == null ? void 0 : e.document) ?? Hn ?? sn, n = (e == null ? void 0 : e.language) ?? so ?? Er(), r = (e == null ? void 0 : e.showJsonFeatures) ?? co, i = (e == null ? void 0 : e.showSamplesDrawerTitle) ?? uo, l = (e == null ? void 0 : e.contactAttributes) ?? [];
162
+ let pa = 0, Vn = null, so = null, co = !0, uo = !0, He = null;
163
+ function fa(e) {
164
+ e != null && e.document && (Vn = e.document), e != null && e.language && (so = e.language), (e == null ? void 0 : e.showJsonFeatures) !== void 0 && (co = e.showJsonFeatures), (e == null ? void 0 : e.showSamplesDrawerTitle) !== void 0 && (uo = e.showSamplesDrawerTitle);
165
+ const t = (e == null ? void 0 : e.document) ?? Vn ?? sn, n = (e == null ? void 0 : e.language) ?? so ?? Er(), r = (e == null ? void 0 : e.showJsonFeatures) ?? co, i = (e == null ? void 0 : e.showSamplesDrawerTitle) ?? uo, l = (e == null ? void 0 : e.contactAttributes) ?? [];
113
166
  He ? He.reset(t) : He = new Kr(t), M.setState({
114
167
  document: t,
115
168
  language: n,
@@ -127,11 +180,11 @@ function ma(e) {
127
180
  }), Ar(n);
128
181
  }
129
182
  if (!He) {
130
- const e = Hn || sn;
183
+ const e = Vn || sn;
131
184
  He = new Kr(e);
132
185
  }
133
186
  const M = ql((e, t) => ({
134
- document: Hn || sn,
187
+ document: Vn || sn,
135
188
  selectedBlockId: null,
136
189
  textSelection: null,
137
190
  textCaret: null,
@@ -155,7 +208,7 @@ const M = ql((e, t) => ({
155
208
  onSamplesDrawerToggle: void 0,
156
209
  onInspectorDrawerToggle: void 0
157
210
  }));
158
- function ga(e) {
211
+ function ma(e) {
159
212
  return M.setState({ contactAttributes: Array.isArray(e) ? e : [] });
160
213
  }
161
214
  function qr() {
@@ -167,7 +220,7 @@ function Qe() {
167
220
  function cn() {
168
221
  return M((e) => e.selectedBlockId);
169
222
  }
170
- function ha() {
223
+ function ga() {
171
224
  return M((e) => e.selectedScreenSize);
172
225
  }
173
226
  function Io() {
@@ -176,7 +229,7 @@ function Io() {
176
229
  function po(e) {
177
230
  return M.setState({ selectedMainTab: e });
178
231
  }
179
- function ba() {
232
+ function ha() {
180
233
  return M((e) => e.selectedSidebarTab);
181
234
  }
182
235
  function ko() {
@@ -200,7 +253,7 @@ function nt(e) {
200
253
  function yt(e) {
201
254
  return M.setState({ textSelection: e });
202
255
  }
203
- function Bn(e) {
256
+ function Mn(e) {
204
257
  return M.setState({ textCaret: e });
205
258
  }
206
259
  function Yr() {
@@ -219,7 +272,7 @@ function qt(e, t) {
219
272
  M.setState({
220
273
  textDomApplyRequest: {
221
274
  blockId: e,
222
- id: ++fa,
275
+ id: ++pa,
223
276
  ...t
224
277
  }
225
278
  });
@@ -227,13 +280,13 @@ function qt(e, t) {
227
280
  function Yt() {
228
281
  return M.setState({ textDomApplyRequest: null });
229
282
  }
230
- function Ca() {
283
+ function ba() {
231
284
  return M((e) => e.textDomApplyRequest);
232
285
  }
233
- function ya() {
286
+ function Ca() {
234
287
  return M((e) => e.lastTextBlockContent);
235
288
  }
236
- function xa(e) {
289
+ function ya(e) {
237
290
  return M.setState({ selectedSidebarTab: e });
238
291
  }
239
292
  function wn(e, t) {
@@ -283,14 +336,14 @@ function _e(e, t) {
283
336
  });
284
337
  }
285
338
  }
286
- function Sa(e) {
339
+ function xa(e) {
287
340
  return M.setState({ onChange: e });
288
341
  }
289
- function va() {
342
+ function Sa() {
290
343
  const e = M.getState(), t = !e.inspectorDrawerOpen;
291
344
  M.setState({ inspectorDrawerOpen: t }), e.onInspectorDrawerToggle && e.onInspectorDrawerToggle(t);
292
345
  }
293
- function wa() {
346
+ function va() {
294
347
  const e = M.getState(), t = !e.samplesDrawerOpen;
295
348
  M.setState({ samplesDrawerOpen: t }), e.onSamplesDrawerToggle && e.onSamplesDrawerToggle(t);
296
349
  }
@@ -300,54 +353,54 @@ function Uo(e) {
300
353
  function Gr() {
301
354
  return M((e) => e.imageUploadHandler);
302
355
  }
303
- function Ia(e) {
356
+ function wa(e) {
304
357
  return M.setState({ imageUploadHandler: e });
305
358
  }
306
359
  function Jr() {
307
360
  return M((e) => e.videoUploadHandler);
308
361
  }
309
- function ka(e) {
362
+ function Ia(e) {
310
363
  return M.setState({ videoUploadHandler: e });
311
364
  }
312
- function Da() {
365
+ function ka() {
313
366
  return M((e) => e.language);
314
367
  }
315
- function Ea(e) {
368
+ function Da(e) {
316
369
  return Ar(e), M.setState({ language: e });
317
370
  }
318
- function Aa() {
371
+ function Ea() {
319
372
  return M((e) => e.name);
320
373
  }
321
- function Ta(e) {
374
+ function Aa(e) {
322
375
  M.setState({ name: e });
323
376
  const t = M.getState().onNameChange;
324
377
  t && t(e);
325
378
  }
326
- function _a(e) {
379
+ function Ta(e) {
327
380
  return M.setState({ onNameChange: e });
328
381
  }
329
- function Ba(e) {
382
+ function _a(e) {
330
383
  return M.setState({ onSamplesDrawerToggle: e });
331
384
  }
332
- function Ma(e) {
385
+ function Ba(e) {
333
386
  return M.setState({ onInspectorDrawerToggle: e });
334
387
  }
335
388
  function Zr() {
336
389
  return M((e) => e.showJsonFeatures);
337
390
  }
338
- function Oa(e) {
391
+ function Ma(e) {
339
392
  return M.setState({ showJsonFeatures: e });
340
393
  }
341
- function Na() {
394
+ function Oa() {
342
395
  return M((e) => e.showSamplesDrawerTitle);
343
396
  }
344
- function Ra(e) {
397
+ function Na(e) {
345
398
  return M.setState({ showSamplesDrawerTitle: e });
346
399
  }
347
- function Pa() {
400
+ function Ra() {
348
401
  return He ? He.canUndo() : !1;
349
402
  }
350
- function Fa() {
403
+ function Pa() {
351
404
  return He ? He.canRedo() : !1;
352
405
  }
353
406
  function Qr() {
@@ -370,25 +423,25 @@ function el() {
370
423
  const t = M.getState().onChange;
371
424
  return t && queueMicrotask(() => wn(e, t)), !0;
372
425
  }
373
- function za() {
426
+ function Fa() {
374
427
  const e = M((t) => t.document);
375
- return mt.useMemo(() => Pa(), [e]);
428
+ return mt.useMemo(() => Ra(), [e]);
376
429
  }
377
- function La() {
430
+ function za() {
378
431
  const e = M((t) => t.document);
379
- return mt.useMemo(() => Fa(), [e]);
432
+ return mt.useMemo(() => Pa(), [e]);
380
433
  }
381
434
  const tl = ho(null);
382
- function Wa({
435
+ function La({
383
436
  value: e,
384
437
  children: t
385
438
  }) {
386
439
  return /* @__PURE__ */ o(tl.Provider, { value: e, children: t });
387
440
  }
388
- function Ha() {
441
+ function Wa() {
389
442
  return hr(tl);
390
443
  }
391
- const Va = [
444
+ const Ha = [
392
445
  "MODERN_SANS",
393
446
  "BOOK_SANS",
394
447
  "ORGANIC_SANS",
@@ -399,10 +452,10 @@ const Va = [
399
452
  "BOOK_SERIF",
400
453
  "MONOSPACE"
401
454
  ];
402
- function Ua(e) {
455
+ function Va(e) {
403
456
  const t = e.trim().toLowerCase();
404
457
  if (t)
405
- for (const n of Va) {
458
+ for (const n of Ha) {
406
459
  const r = Tr(n);
407
460
  if (!r) continue;
408
461
  const i = r.split(",")[0].replace(/"/g, "").trim().toLowerCase();
@@ -426,7 +479,7 @@ function Dt(e) {
426
479
  function pt(e) {
427
480
  return Dt(e).length;
428
481
  }
429
- function $a(e, t) {
482
+ function Ua(e, t) {
430
483
  if (t < 0) return null;
431
484
  let n = 0;
432
485
  const r = document.createTreeWalker(e, NodeFilter.SHOW_TEXT);
@@ -451,10 +504,10 @@ function fo(e, t) {
451
504
  return { node: i, offset: Math.max(0, t - n) };
452
505
  n += a;
453
506
  }
454
- const l = ja(e);
507
+ const l = $a(e);
455
508
  return l && t === n ? { node: l, offset: (l.textContent ?? "").length } : null;
456
509
  }
457
- function ja(e) {
510
+ function $a(e) {
458
511
  const t = document.createTreeWalker(e, NodeFilter.SHOW_TEXT);
459
512
  let n, r = null;
460
513
  for (; n = t.nextNode(); ) r = n;
@@ -481,19 +534,19 @@ function jo(e, t, n) {
481
534
  return 0;
482
535
  }
483
536
  }
484
- function Vn(e) {
537
+ function Un(e) {
485
538
  return Array.from(e.children).filter((t) => t.tagName === "P");
486
539
  }
487
540
  function nl(e) {
488
541
  const t = [];
489
542
  let n = 0;
490
- for (const r of Vn(e)) {
543
+ for (const r of Un(e)) {
491
544
  const i = pt(r);
492
545
  t.push({ p: r, start: n, end: n + i }), n += i;
493
546
  }
494
547
  return t;
495
548
  }
496
- function Ka(e) {
549
+ function ja(e) {
497
550
  let t;
498
551
  for (; t = e.querySelector("a"); ) {
499
552
  const n = t.parentNode;
@@ -514,33 +567,33 @@ function ol(e) {
514
567
  n.removeChild(t);
515
568
  }
516
569
  }
517
- function qa(e, t, n, r) {
570
+ function Ka(e, t, n, r) {
518
571
  const i = Et(e, t, n);
519
572
  if (!i || i.collapsed) return;
520
573
  const l = i.extractContents();
521
574
  ol(l);
522
575
  const a = document.createElement("span");
523
- Un(a, r), a.appendChild(l), i.insertNode(a);
576
+ $n(a, r), a.appendChild(l), i.insertNode(a);
524
577
  }
525
578
  function In(e) {
526
579
  e.style.color || (e.style.color = "inherit");
527
580
  }
528
- function Ya(e, t, n, r, i) {
581
+ function qa(e, t, n, r, i) {
529
582
  const l = Et(e, t, n);
530
583
  if (!l || l.collapsed) return;
531
584
  const a = l.extractContents();
532
- Ka(a);
585
+ ja(a);
533
586
  const c = document.createElement("a");
534
587
  c.href = r, i && (c.target = "_blank", c.rel = "noopener noreferrer"), In(c), c.style.textDecoration || (c.style.textDecoration = "underline"), c.appendChild(a), l.insertNode(c);
535
588
  }
536
- function Xa(e) {
589
+ function Ya(e) {
537
590
  return e.tagName === "SPAN" && Dn(e);
538
591
  }
539
- function Ga(e) {
592
+ function Xa(e) {
540
593
  const t = Array.from(e.children);
541
594
  if (t.length !== 1) return;
542
595
  const n = t[0];
543
- if (!Xa(n)) return;
596
+ if (!Ya(n)) return;
544
597
  const r = n, i = (e.textContent ?? "").replace(/\u200B/g, ""), l = (r.textContent ?? "").replace(/\u200B/g, "");
545
598
  if (i !== l) return;
546
599
  const a = r.style, c = (s) => {
@@ -548,9 +601,9 @@ function Ga(e) {
548
601
  if (!u) return;
549
602
  e.style[d] || (e.style[d] = u);
550
603
  };
551
- c("fontSize"), c("fontFamily"), c("fontWeight"), c("fontStyle"), c("letterSpacing"), c("color"), c("backgroundColor"), c("textDecoration"), zn(r);
604
+ c("fontSize"), c("fontFamily"), c("fontWeight"), c("fontStyle"), c("letterSpacing"), c("color"), c("backgroundColor"), c("textDecoration"), Ln(r);
552
605
  }
553
- function Ja(e, t, n, r, i) {
606
+ function Ga(e, t, n, r, i) {
554
607
  const l = Et(e, t, n);
555
608
  if (!l || l.collapsed) return;
556
609
  const a = l.extractContents();
@@ -560,7 +613,7 @@ function Ja(e, t, n, r, i) {
560
613
  const u = s.filter((m) => m.nodeType !== Node.TEXT_NODE ? !0 : (m.textContent ?? "").replace(/\u200B/g, "").length > 0);
561
614
  if (s.length = 0, u.length === 0) return;
562
615
  const g = document.createElement("span");
563
- Un(g, r);
616
+ $n(g, r);
564
617
  for (const m of u) g.appendChild(m);
565
618
  (g.textContent ?? "").replace(/\u200B/g, "").length === 0 && g.children.length === 0 || c.appendChild(g);
566
619
  };
@@ -581,7 +634,7 @@ function Ja(e, t, n, r, i) {
581
634
  }
582
635
  d(), l.insertNode(c);
583
636
  }
584
- function Za(e) {
637
+ function Ja(e) {
585
638
  const t = {};
586
639
  for (const [n, r] of Object.entries(e))
587
640
  if (r != null && !(typeof r == "string" && (r === "undefined" || r === "null")) && !(typeof r == "number" && Number.isNaN(r)) && n !== "lineHeight") {
@@ -593,7 +646,7 @@ function Za(e) {
593
646
  }
594
647
  return t;
595
648
  }
596
- function Qa(e) {
649
+ function Za(e) {
597
650
  const t = _r(e);
598
651
  return delete t.lineHeight, t;
599
652
  }
@@ -624,7 +677,7 @@ function kn(e, t) {
624
677
  typeof i == "number" ? n("letterSpacing", `${i}px`) : n("letterSpacing", String(i));
625
678
  }
626
679
  }
627
- function es(e, t, n) {
680
+ function Qa(e, t, n) {
628
681
  const r = Array.from(e.querySelectorAll("span"));
629
682
  for (const i of r) {
630
683
  const l = document.createRange();
@@ -635,7 +688,7 @@ function es(e, t, n) {
635
688
  }
636
689
  return null;
637
690
  }
638
- function ts(e, t, n) {
691
+ function es(e, t, n) {
639
692
  const r = Array.from(e.querySelectorAll("span[data-text-variable]"));
640
693
  for (const i of r) {
641
694
  const l = document.createRange();
@@ -645,11 +698,11 @@ function ts(e, t, n) {
645
698
  }
646
699
  return null;
647
700
  }
648
- function Un(e, t) {
701
+ function $n(e, t) {
649
702
  for (const [n, r] of Object.entries(t))
650
703
  e.style[n] = r;
651
704
  }
652
- function zn(e) {
705
+ function Ln(e) {
653
706
  const t = e.parentNode;
654
707
  if (t) {
655
708
  for (; e.firstChild; )
@@ -664,16 +717,16 @@ function ln(e) {
664
717
  const t = (e ?? "").trim().toLowerCase();
665
718
  return t ? t.split(";").map((r) => r.trim()).filter(Boolean).sort().join(";") : "";
666
719
  }
667
- function ns(e, t) {
720
+ function ts(e, t) {
668
721
  return !Dn(e) || !Dn(t) ? !1 : ln(e.getAttribute("style")) === ln(t.getAttribute("style"));
669
722
  }
670
723
  function Ko(e) {
671
724
  return (e.getAttribute("href") ?? "").trim();
672
725
  }
673
- function os(e, t) {
726
+ function ns(e, t) {
674
727
  return Ko(e) !== Ko(t) || (e.getAttribute("target") ?? "") !== (t.getAttribute("target") ?? "") || (e.getAttribute("rel") ?? "") !== (t.getAttribute("rel") ?? "") ? !1 : ln(e.getAttribute("style")) === ln(t.getAttribute("style"));
675
728
  }
676
- function rs(e) {
729
+ function os(e) {
677
730
  return Dn(e) ? ln(e.getAttribute("style")) ? (e.textContent ?? "").replace(/\u200B/g, "").length === 0 : !0 : !1;
678
731
  }
679
732
  function Qt(e) {
@@ -685,10 +738,10 @@ function Qt(e) {
685
738
  const l = i;
686
739
  if (t(l), l.tagName === "A") {
687
740
  if ((l.textContent ?? "").replace(/\u200B/g, "").trim().length === 0) {
688
- zn(l);
741
+ Ln(l);
689
742
  continue;
690
743
  }
691
- Ga(l), In(l);
744
+ Xa(l), In(l);
692
745
  }
693
746
  if (l.tagName === "SPAN") {
694
747
  const a = l;
@@ -696,12 +749,12 @@ function Qt(e) {
696
749
  n.removeChild(a);
697
750
  continue;
698
751
  }
699
- if (rs(a)) {
700
- zn(a);
752
+ if (os(a)) {
753
+ Ln(a);
701
754
  continue;
702
755
  }
703
756
  if (ln(a.getAttribute("style")) === "" && Dn(a)) {
704
- zn(a);
757
+ Ln(a);
705
758
  continue;
706
759
  }
707
760
  }
@@ -713,7 +766,7 @@ function Qt(e) {
713
766
  }
714
767
  for (r = 0; r < n.childNodes.length - 1; ) {
715
768
  const i = n.childNodes[r], l = n.childNodes[r + 1];
716
- if (i.nodeType === Node.ELEMENT_NODE && l.nodeType === Node.ELEMENT_NODE && i.tagName === "SPAN" && l.tagName === "SPAN" && ns(i, l)) {
769
+ if (i.nodeType === Node.ELEMENT_NODE && l.nodeType === Node.ELEMENT_NODE && i.tagName === "SPAN" && l.tagName === "SPAN" && ts(i, l)) {
717
770
  const a = i, c = l;
718
771
  for (; c.firstChild; )
719
772
  a.appendChild(c.firstChild);
@@ -724,7 +777,7 @@ function Qt(e) {
724
777
  }
725
778
  for (r = 0; r < n.childNodes.length - 1; ) {
726
779
  const i = n.childNodes[r], l = n.childNodes[r + 1];
727
- if (i.nodeType === Node.ELEMENT_NODE && l.nodeType === Node.ELEMENT_NODE && i.tagName === "A" && l.tagName === "A" && os(i, l)) {
780
+ if (i.nodeType === Node.ELEMENT_NODE && l.nodeType === Node.ELEMENT_NODE && i.tagName === "A" && l.tagName === "A" && ns(i, l)) {
728
781
  const a = i, c = l;
729
782
  for (; c.firstChild; )
730
783
  a.appendChild(c.firstChild);
@@ -736,23 +789,23 @@ function Qt(e) {
736
789
  };
737
790
  t(e);
738
791
  }
739
- function ls(e) {
792
+ function rs(e) {
740
793
  const t = Array.from(e.querySelectorAll("[data-text-variable]"));
741
794
  for (const n of t)
742
795
  n.style.removeProperty("border"), n.style.removeProperty("border-radius"), n.style.removeProperty("padding"), n.style.removeProperty("box-shadow"), n.style.removeProperty("user-select"), n.style.removeProperty("-webkit-user-select");
743
796
  }
744
- function is(e) {
797
+ function ls(e) {
745
798
  const t = {};
746
799
  for (const [n, r] of Object.entries(e))
747
800
  r !== void 0 && (t[n] = r);
748
801
  return t;
749
802
  }
750
- function as(e, t) {
803
+ function is(e, t) {
751
804
  kn(e, t);
752
805
  }
753
- function ss(e, t, n, r) {
806
+ function as(e, t, n, r) {
754
807
  var d, u;
755
- const { patch: i, global: l } = r, a = is(i ?? {}), c = Object.keys(a).length > 0, s = nl(e);
808
+ const { patch: i, global: l } = r, a = ls(i ?? {}), c = Object.keys(a).length > 0, s = nl(e);
756
809
  for (const { p: g, start: f, end: m } of s) {
757
810
  const h = Math.max(t, f), b = Math.min(n, m);
758
811
  if (h >= b) continue;
@@ -766,39 +819,39 @@ function ss(e, t, n, r) {
766
819
  }
767
820
  } catch {
768
821
  }
769
- const y = ts(g, h - f, b - f);
822
+ const y = es(g, h - f, b - f);
770
823
  if (y) {
771
824
  c && kn(y, a), Qt(g);
772
825
  continue;
773
826
  }
774
- const k = es(g, h - f, b - f);
827
+ const k = Qa(g, h - f, b - f);
775
828
  if (k) {
776
- c && as(k, a), Qt(g);
829
+ c && is(k, a), Qt(g);
777
830
  continue;
778
831
  }
779
- const D = hs(e, h, b), E = { ...l, ...D, ...a }, N = Za(Qa(E));
832
+ const D = gs(e, h, b), E = { ...l, ...D, ...a }, N = Ja(Za(E));
780
833
  if (Object.keys(N).length === 0) continue;
781
834
  const W = Et(g, h - f, b - f), P = () => {
782
835
  if (!W || W.collapsed) return !1;
783
836
  const be = W.startContainer.nodeType === Node.ELEMENT_NODE ? W.startContainer : W.startContainer.parentElement, ce = W.endContainer.nodeType === Node.ELEMENT_NODE ? W.endContainer : W.endContainer.parentElement, _ = be == null ? void 0 : be.closest("a"), x = ce == null ? void 0 : ce.closest("a");
784
- return _ && (Un(_, N), In(_)), x && x !== _ && (Un(x, N), In(x)), !!(_ || x);
837
+ return _ && ($n(_, N), In(_)), x && x !== _ && ($n(x, N), In(x)), !!(_ || x);
785
838
  };
786
839
  (() => {
787
840
  var ce;
788
841
  if (!W || W.collapsed) return !1;
789
842
  const be = W.cloneContents();
790
843
  return !!((ce = be.querySelector) != null && ce.call(be, "a,[data-text-variable]"));
791
- })() ? Ja(g, h - f, b - f, N, a) : P() || qa(g, h - f, b - f, N), Qt(g);
844
+ })() ? Ga(g, h - f, b - f, N, a) : P() || Ka(g, h - f, b - f, N), Qt(g);
792
845
  }
793
846
  }
794
- function cs(e, t, n, r, i) {
847
+ function ss(e, t, n, r, i) {
795
848
  const l = nl(e);
796
849
  for (const { p: a, start: c, end: s } of l) {
797
850
  const d = Math.max(t, c), u = Math.min(n, s);
798
- d >= u || (Ya(a, d - c, u - c, r, i), Qt(a));
851
+ d >= u || (qa(a, d - c, u - c, r, i), Qt(a));
799
852
  }
800
853
  }
801
- function us(e, t) {
854
+ function cs(e, t) {
802
855
  const n = pt(e);
803
856
  if (n === 0) return null;
804
857
  const r = fo(e, Math.min(t, n - 1));
@@ -813,19 +866,19 @@ function us(e, t) {
813
866
  }
814
867
  return null;
815
868
  }
816
- function ds(e, t, n) {
869
+ function us(e, t, n) {
817
870
  const i = new DOMParser().parseFromString(e, "text/html").body.firstElementChild;
818
871
  if (!i) return null;
819
872
  const l = pt(i);
820
873
  if (l === 0) return null;
821
874
  const a = Math.max(0, Math.min(t, l - 1)), c = Math.max(a + 1, Math.min(n, l));
822
875
  for (let s = a; s < c; s++) {
823
- const d = us(i, s);
876
+ const d = cs(i, s);
824
877
  if (d) return d;
825
878
  }
826
879
  return null;
827
880
  }
828
- function ps(e, t, n) {
881
+ function ds(e, t, n) {
829
882
  const i = new DOMParser().parseFromString(e, "text/html").body.firstElementChild;
830
883
  if (!i) return {};
831
884
  const l = pt(i);
@@ -840,11 +893,11 @@ function ps(e, t, n) {
840
893
  return Ot(i, u);
841
894
  }
842
895
  const mo = /^[A-Za-z_][A-Za-z0-9_]*$/;
843
- function fs(e) {
896
+ function ps(e) {
844
897
  const t = new DOMParser().parseFromString(e, "text/html");
845
898
  return Array.from(t.body.querySelectorAll("[data-text-variable]"));
846
899
  }
847
- function ms(e, t, n) {
900
+ function fs(e, t, n) {
848
901
  const i = new DOMParser().parseFromString(e, "text/html").body.firstElementChild;
849
902
  if (!i || t >= n) return null;
850
903
  const l = Array.from(i.querySelectorAll("[data-text-variable]"));
@@ -910,7 +963,7 @@ function bn(e, t) {
910
963
  }
911
964
  function qn(e) {
912
965
  const t = [];
913
- for (const n of fs(e)) {
966
+ for (const n of ps(e)) {
914
967
  const r = Eo(n.getAttribute("data-text-variable") ?? "");
915
968
  if (!r) continue;
916
969
  const i = (n.getAttribute("data-variable-instance-id") ?? "").trim();
@@ -918,7 +971,7 @@ function qn(e) {
918
971
  }
919
972
  return t;
920
973
  }
921
- function gs(e, t) {
974
+ function ms(e, t) {
922
975
  if (e.color && t.color == null) {
923
976
  const n = e.color.trim();
924
977
  t.color = n.startsWith("#") ? n : $o(n) ?? n;
@@ -932,7 +985,7 @@ function gs(e, t) {
932
985
  Number.isNaN(n) || (t.fontSize = n);
933
986
  }
934
987
  if (e.fontFamily && e.fontFamily !== "undefined" && t.fontFamily == null) {
935
- const n = Ua(e.fontFamily);
988
+ const n = Va(e.fontFamily);
936
989
  n && (t.fontFamily = n);
937
990
  }
938
991
  if (t.fontWeight == null) {
@@ -948,7 +1001,7 @@ function gs(e, t) {
948
1001
  t.letterSpacing = n;
949
1002
  }
950
1003
  }
951
- function hs(e, t, n) {
1004
+ function gs(e, t, n) {
952
1005
  const r = pt(e);
953
1006
  if (r === 0) return {};
954
1007
  const i = (u) => Math.max(0, Math.min(u, r - 1));
@@ -975,24 +1028,24 @@ function hs(e, t, n) {
975
1028
  return s >= 0 && (c.fontSize = s), c;
976
1029
  }
977
1030
  function Ot(e, t) {
978
- const n = pt(e), r = Math.min(t, Math.max(0, n - 1)), i = $a(e, r);
1031
+ const n = pt(e), r = Math.min(t, Math.max(0, n - 1)), i = Ua(e, r);
979
1032
  if (!i) return {};
980
1033
  let l = i.node.nodeType === Node.TEXT_NODE ? i.node.parentElement : i.node;
981
1034
  const a = {};
982
1035
  for (; l && l !== e; ) {
983
1036
  const c = l.tagName;
984
- (c === "SPAN" || c === "A") && gs(l.style, a), (c === "STRONG" || c === "B") && a.fontWeight == null && (a.fontWeight = "bold"), (c === "I" || c === "EM") && a.fontStyle == null && (a.fontStyle = "italic"), l = l.parentElement;
1037
+ (c === "SPAN" || c === "A") && ms(l.style, a), (c === "STRONG" || c === "B") && a.fontWeight == null && (a.fontWeight = "bold"), (c === "I" || c === "EM") && a.fontStyle == null && (a.fontStyle = "italic"), l = l.parentElement;
985
1038
  }
986
1039
  return a;
987
1040
  }
988
1041
  const qo = "​";
989
1042
  function xt(e) {
990
- if (Vn(e).length === 0) {
1043
+ if (Un(e).length === 0) {
991
1044
  const t = document.createElement("p");
992
1045
  t.style.margin = "0", t.appendChild(document.createTextNode(qo)), t.appendChild(document.createElement("br")), e.appendChild(t);
993
1046
  return;
994
1047
  }
995
- for (const t of Vn(e))
1048
+ for (const t of Un(e))
996
1049
  t.style.margin = "0", Dt(t).length === 0 && (t.textContent = "", t.appendChild(document.createTextNode(qo)), t.appendChild(document.createElement("br")));
997
1050
  }
998
1051
  function ll(e) {
@@ -1001,9 +1054,9 @@ function ll(e) {
1001
1054
  function Cn(e) {
1002
1055
  const t = e.cloneNode(!0);
1003
1056
  xt(t);
1004
- for (const n of Vn(t))
1057
+ for (const n of Un(t))
1005
1058
  Qt(n);
1006
- return ls(t), t.outerHTML;
1059
+ return rs(t), t.outerHTML;
1007
1060
  }
1008
1061
  const Yo = /^[A-Za-z_][A-Za-z0-9_]*$/;
1009
1062
  function il(e) {
@@ -1054,7 +1107,7 @@ function Xo(e, t = "root") {
1054
1107
  }, l = /* @__PURE__ */ new Set();
1055
1108
  return e[t] && Yn(e, t, i, l), r ? n : e;
1056
1109
  }
1057
- function bs(e) {
1110
+ function hs(e) {
1058
1111
  const t = e.data;
1059
1112
  if (!t || typeof t != "object") return [];
1060
1113
  const n = [], r = t.childrenIds;
@@ -1082,11 +1135,11 @@ function Yn(e, t, n, r) {
1082
1135
  const i = e[t];
1083
1136
  if (i) {
1084
1137
  r.add(t), n(t, i);
1085
- for (const l of bs(i))
1138
+ for (const l of hs(i))
1086
1139
  Yn(e, l, n, r);
1087
1140
  }
1088
1141
  }
1089
- function Cs(e, t = "root") {
1142
+ function bs(e, t = "root") {
1090
1143
  const n = [];
1091
1144
  let r = 0;
1092
1145
  const i = /* @__PURE__ */ new Map(), l = (c, s) => {
@@ -1162,7 +1215,7 @@ function Go() {
1162
1215
  const r = M.getState().document[n];
1163
1216
  !r || r.type !== "Text" || t.blur();
1164
1217
  }
1165
- const ys = "#212443", Mn = "#1E40AF", yn = "#1F8466", On = "#E81212", Xt = "#F6DC9F", xs = "#6C0E7C", Ss = "#CC996C", vs = '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', ws = 'ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro", "Fira Mono", "Droid Sans Mono", "Courier New", monospace', B = Mr({
1218
+ const Cs = "#212443", On = "#1E40AF", yn = "#1F8466", Nn = "#E81212", Xt = "#F6DC9F", ys = "#6C0E7C", xs = "#CC996C", Ss = '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', vs = 'ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro", "Fira Mono", "Droid Sans Mono", "Courier New", monospace', B = Mr({
1166
1219
  palette: {
1167
1220
  background: {
1168
1221
  default: "#f2f5f7"
@@ -1173,18 +1226,18 @@ const ys = "#212443", Mn = "#1E40AF", yn = "#1F8466", On = "#E81212", Xt = "#F6D
1173
1226
  }
1174
1227
  },
1175
1228
  typography: {
1176
- fontFamily: vs
1229
+ fontFamily: Ss
1177
1230
  }
1178
- }), Is = Mr(B, {
1231
+ }), ws = Mr(B, {
1179
1232
  palette: {
1180
1233
  brand: {
1181
- navy: ys,
1182
- blue: Mn,
1183
- red: On,
1234
+ navy: Cs,
1235
+ blue: On,
1236
+ red: Nn,
1184
1237
  green: yn,
1185
1238
  yellow: Xt,
1186
- purple: xs,
1187
- brown: Ss
1239
+ purple: ys,
1240
+ brown: xs
1188
1241
  },
1189
1242
  success: {
1190
1243
  main: yn,
@@ -1192,9 +1245,9 @@ const ys = "#212443", Mn = "#1E40AF", yn = "#1F8466", On = "#E81212", Xt = "#F6D
1192
1245
  dark: Ho(yn, 0.15)
1193
1246
  },
1194
1247
  error: {
1195
- main: On,
1196
- light: jt(On, 0.15),
1197
- dark: Ho(On, 0.15)
1248
+ main: Nn,
1249
+ light: jt(Nn, 0.15),
1250
+ dark: Ho(Nn, 0.15)
1198
1251
  },
1199
1252
  cadet: {
1200
1253
  100: "#F9FAFB",
@@ -1211,10 +1264,10 @@ const ys = "#212443", Mn = "#1E40AF", yn = "#1F8466", On = "#E81212", Xt = "#F6D
1211
1264
  500: Xt
1212
1265
  },
1213
1266
  info: {
1214
- main: Mn
1267
+ main: On
1215
1268
  },
1216
1269
  primary: {
1217
- main: Mn
1270
+ main: On
1218
1271
  }
1219
1272
  },
1220
1273
  components: {
@@ -1228,7 +1281,7 @@ const ys = "#212443", Mn = "#1E40AF", yn = "#1F8466", On = "#E81212", Xt = "#F6D
1228
1281
  padding: 0;
1229
1282
  }
1230
1283
  pre {
1231
- font-family: ${ws}
1284
+ font-family: ${vs}
1232
1285
  white-space: pre-wrap;
1233
1286
  font-size: 12px;
1234
1287
  }
@@ -1391,7 +1444,7 @@ const ys = "#212443", Mn = "#1E40AF", yn = "#1F8466", On = "#E81212", Xt = "#F6D
1391
1444
  width: 16,
1392
1445
  cursor: "col-resize",
1393
1446
  "&:hover, &.Mui-active, &.Mui-focusVisible": {
1394
- boxShadow: `0 0 0 4px ${eo(Mn, 0.2)}`
1447
+ boxShadow: `0 0 0 4px ${eo(On, 0.2)}`
1395
1448
  },
1396
1449
  "&:before": {
1397
1450
  display: "none"
@@ -1676,7 +1729,7 @@ const ys = "#212443", Mn = "#1E40AF", yn = "#1F8466", On = "#E81212", Xt = "#F6D
1676
1729
  ]
1677
1730
  });
1678
1731
  function Se() {
1679
- const e = Da();
1732
+ const e = ka();
1680
1733
  return { t: (n, r) => Yl(n, r, e), language: e };
1681
1734
  }
1682
1735
  function it({ title: e, children: t }) {
@@ -1685,17 +1738,17 @@ function it({ title: e, children: t }) {
1685
1738
  /* @__PURE__ */ o(Z, { spacing: 3, mb: 3, sx: { width: "100%", maxWidth: "100%" }, children: t })
1686
1739
  ] });
1687
1740
  }
1688
- const ks = {
1741
+ const Is = {
1689
1742
  width: 24,
1690
1743
  height: 24
1691
1744
  };
1692
- function Ds({ paletteColors: e, value: t, onChange: n }) {
1745
+ function ks({ paletteColors: e, value: t, onChange: n }) {
1693
1746
  const r = (i) => /* @__PURE__ */ o(
1694
1747
  Me,
1695
1748
  {
1696
1749
  onClick: () => n(i),
1697
1750
  sx: {
1698
- ...ks,
1751
+ ...Is,
1699
1752
  backgroundColor: i,
1700
1753
  border: "1px solid",
1701
1754
  borderColor: t === i ? "black" : "grey.200",
@@ -1711,7 +1764,7 @@ function Ds({ paletteColors: e, value: t, onChange: n }) {
1711
1764
  );
1712
1765
  return /* @__PURE__ */ o(se, { width: "100%", sx: { display: "grid", gap: 1, gridTemplateColumns: "1fr 1fr 1fr 1fr 1fr 1fr" }, children: e.map((i) => r(i)) });
1713
1766
  }
1714
- const Es = [
1767
+ const Ds = [
1715
1768
  "#E11D48",
1716
1769
  "#DB2777",
1717
1770
  "#C026D3",
@@ -1742,7 +1795,7 @@ const Es = [
1742
1795
  "#171717",
1743
1796
  "#0A0A0A",
1744
1797
  "#000000"
1745
- ], As = {
1798
+ ], Es = {
1746
1799
  p: 1,
1747
1800
  ".react-colorful__pointer ": {
1748
1801
  width: 16,
@@ -1772,11 +1825,11 @@ const Es = [
1772
1825
  width: "100%"
1773
1826
  }
1774
1827
  };
1775
- function Ts({ value: e, onChange: t }) {
1776
- return /* @__PURE__ */ w(Z, { spacing: 1, sx: As, children: [
1777
- /* @__PURE__ */ o(Wi, { color: e, onChange: t }),
1778
- /* @__PURE__ */ o(Ds, { paletteColors: Es, value: e, onChange: t }),
1779
- /* @__PURE__ */ o(se, { pt: 1, children: /* @__PURE__ */ o(Hi, { prefixed: !0, color: e, onChange: t }) })
1828
+ function As({ value: e, onChange: t }) {
1829
+ return /* @__PURE__ */ w(Z, { spacing: 1, sx: Es, children: [
1830
+ /* @__PURE__ */ o(Jl, { color: e, onChange: t }),
1831
+ /* @__PURE__ */ o(ks, { paletteColors: Ds, value: e, onChange: t }),
1832
+ /* @__PURE__ */ o(se, { pt: 1, children: /* @__PURE__ */ o(Zl, { prefixed: !0, color: e, onChange: t }) })
1780
1833
  ] });
1781
1834
  }
1782
1835
  const Jo = 24, Zo = {
@@ -1807,7 +1860,7 @@ function al({ label: e, defaultValue: t, onChange: n, nullable: r }) {
1807
1860
  const s = (g) => {
1808
1861
  l(g.currentTarget);
1809
1862
  }, d = () => !r || typeof a != "string" || a.trim().length === 0 ? null : /* @__PURE__ */ o(
1810
- Fn,
1863
+ zn,
1811
1864
  {
1812
1865
  onClick: () => {
1813
1866
  c(null), n(null);
@@ -1818,10 +1871,10 @@ function al({ label: e, defaultValue: t, onChange: n, nullable: r }) {
1818
1871
  return /* @__PURE__ */ w(Z, { alignItems: "flex-start", children: [
1819
1872
  /* @__PURE__ */ o(At, { sx: { mb: 0.5 }, children: e }),
1820
1873
  /* @__PURE__ */ w(Z, { direction: "row", spacing: 1, alignItems: "center", children: [
1821
- a ? /* @__PURE__ */ w(Fn, { onClick: s, sx: Qo, focusRipple: !0, children: [
1874
+ a ? /* @__PURE__ */ w(zn, { onClick: s, sx: Qo, focusRipple: !0, children: [
1822
1875
  /* @__PURE__ */ o(se, { sx: { ...Zo, bgcolor: a } }),
1823
1876
  /* @__PURE__ */ o(ke, { component: "span", variant: "body2", sx: { color: "text.primary", fontFamily: "monospace", fontSize: "13px" }, children: a })
1824
- ] }) : /* @__PURE__ */ o(Fn, { onClick: s, sx: Qo, focusRipple: !0, children: /* @__PURE__ */ o(se, { sx: { ...Zo, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ o(xo, { sx: { fontSize: 18 } }) }) }),
1877
+ ] }) : /* @__PURE__ */ o(zn, { onClick: s, sx: Qo, focusRipple: !0, children: /* @__PURE__ */ o(se, { sx: { ...Zo, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ o(xo, { sx: { fontSize: 18 } }) }) }),
1825
1878
  d()
1826
1879
  ] }),
1827
1880
  /* @__PURE__ */ o(
@@ -1834,7 +1887,7 @@ function al({ label: e, defaultValue: t, onChange: n, nullable: r }) {
1834
1887
  sx: { height: "auto", padding: 0 }
1835
1888
  },
1836
1889
  children: /* @__PURE__ */ o(
1837
- Ts,
1890
+ As,
1838
1891
  {
1839
1892
  value: a || "",
1840
1893
  onChange: (g) => {
@@ -1849,7 +1902,7 @@ function al({ label: e, defaultValue: t, onChange: n, nullable: r }) {
1849
1902
  function nn(e) {
1850
1903
  return /* @__PURE__ */ o(al, { ...e, nullable: !1 });
1851
1904
  }
1852
- function Ln(e) {
1905
+ function Wn(e) {
1853
1906
  return /* @__PURE__ */ o(al, { ...e, nullable: !0 });
1854
1907
  }
1855
1908
  function ft({ label: e, children: t, defaultValue: n, onChange: r }) {
@@ -1896,15 +1949,15 @@ function Pt({ helperText: e, label: t, placeholder: n, rows: r, InputProps: i, d
1896
1949
  }
1897
1950
  );
1898
1951
  }
1899
- function _s(e) {
1952
+ function Ts(e) {
1900
1953
  return typeof e == "string" && e.includes("underline");
1901
1954
  }
1902
- function Bs(e) {
1955
+ function _s(e) {
1903
1956
  return typeof e == "string" && e.includes("line-through");
1904
1957
  }
1905
- function Ms({ value: e, onChange: t }) {
1958
+ function Bs({ value: e, onChange: t }) {
1906
1959
  const n = (e == null ? void 0 : e.fontWeight) ?? "normal", r = (e == null ? void 0 : e.fontStyle) ?? "normal", i = (e == null ? void 0 : e.textDecoration) ?? "none", l = [];
1907
- return n === "bold" && l.push("bold"), r === "italic" && l.push("italic"), _s(i) && l.push("underline"), Bs(i) && l.push("strikethrough"), /* @__PURE__ */ o(Z, { alignItems: "flex-start", children: /* @__PURE__ */ w(
1960
+ return n === "bold" && l.push("bold"), r === "italic" && l.push("italic"), Ts(i) && l.push("underline"), _s(i) && l.push("strikethrough"), /* @__PURE__ */ o(Z, { alignItems: "flex-start", children: /* @__PURE__ */ w(
1908
1961
  bo,
1909
1962
  {
1910
1963
  size: "small",
@@ -1919,15 +1972,15 @@ function Ms({ value: e, onChange: t }) {
1919
1972
  },
1920
1973
  sx: { flexWrap: "nowrap" },
1921
1974
  children: [
1922
- /* @__PURE__ */ o(le, { value: "bold", "aria-label": "bold", children: /* @__PURE__ */ o(Vi, { fontSize: "small" }) }),
1923
- /* @__PURE__ */ o(le, { value: "italic", "aria-label": "italic", children: /* @__PURE__ */ o(Ui, { fontSize: "small" }) }),
1924
- /* @__PURE__ */ o(le, { value: "underline", "aria-label": "underline", children: /* @__PURE__ */ o($i, { fontSize: "small" }) }),
1925
- /* @__PURE__ */ o(le, { value: "strikethrough", "aria-label": "strikethrough", children: /* @__PURE__ */ o(ji, { fontSize: "small" }) })
1975
+ /* @__PURE__ */ o(le, { value: "bold", "aria-label": "bold", children: /* @__PURE__ */ o(Ql, { fontSize: "small" }) }),
1976
+ /* @__PURE__ */ o(le, { value: "italic", "aria-label": "italic", children: /* @__PURE__ */ o(ei, { fontSize: "small" }) }),
1977
+ /* @__PURE__ */ o(le, { value: "underline", "aria-label": "underline", children: /* @__PURE__ */ o(ti, { fontSize: "small" }) }),
1978
+ /* @__PURE__ */ o(le, { value: "strikethrough", "aria-label": "strikethrough", children: /* @__PURE__ */ o(ni, { fontSize: "small" }) })
1926
1979
  ]
1927
1980
  }
1928
1981
  ) });
1929
1982
  }
1930
- const Os = [
1983
+ const Ms = [
1931
1984
  {
1932
1985
  key: "MODERN_SANS",
1933
1986
  label: "Modern sans",
@@ -1973,7 +2026,7 @@ const Os = [
1973
2026
  label: "Monospace",
1974
2027
  value: "monospace"
1975
2028
  }
1976
- ], Ns = Os.map((e) => /* @__PURE__ */ o(on, { value: e.key, sx: { fontFamily: e.value }, children: e.label }, e.key));
2029
+ ], Os = Ms.map((e) => /* @__PURE__ */ o(on, { value: e.key, sx: { fontFamily: e.value }, children: e.label }, e.key));
1977
2030
  function sl({ label: e, onChange: t, defaultValue: n }) {
1978
2031
  const [r, i] = z(n ?? "inherit");
1979
2032
  return /* @__PURE__ */ w(
@@ -1989,7 +2042,7 @@ function sl({ label: e, onChange: t, defaultValue: n }) {
1989
2042
  },
1990
2043
  children: [
1991
2044
  /* @__PURE__ */ o(on, { value: "inherit", children: "Match email settings" }),
1992
- Ns
2045
+ Os
1993
2046
  ]
1994
2047
  }
1995
2048
  );
@@ -2015,7 +2068,7 @@ function Vt({ iconLabel: e, value: t, setValue: n, units: r, ...i }) {
2015
2068
  ] }) })
2016
2069
  ] });
2017
2070
  }
2018
- function Rs({ label: e, defaultValue: t, onChange: n }) {
2071
+ function Ns({ label: e, defaultValue: t, onChange: n }) {
2019
2072
  const r = t ?? 14, [i, l] = z(r);
2020
2073
  return Ce(() => {
2021
2074
  l(t ?? 14);
@@ -2024,7 +2077,7 @@ function Rs({ label: e, defaultValue: t, onChange: n }) {
2024
2077
  /* @__PURE__ */ o(
2025
2078
  Vt,
2026
2079
  {
2027
- iconLabel: /* @__PURE__ */ o(Jl, { sx: { fontSize: 16 } }),
2080
+ iconLabel: /* @__PURE__ */ o(ri, { sx: { fontSize: 16 } }),
2028
2081
  value: i,
2029
2082
  setValue: (c) => {
2030
2083
  l(c), n(c);
@@ -2037,7 +2090,7 @@ function Rs({ label: e, defaultValue: t, onChange: n }) {
2037
2090
  )
2038
2091
  ] });
2039
2092
  }
2040
- function Ps({ label: e, defaultValue: t, onChange: n }) {
2093
+ function Rs({ label: e, defaultValue: t, onChange: n }) {
2041
2094
  const { t: r } = Se(), i = t || "normal", [l, a] = z(i);
2042
2095
  return Ce(() => {
2043
2096
  a(i);
@@ -2056,7 +2109,7 @@ function Ps({ label: e, defaultValue: t, onChange: n }) {
2056
2109
  }
2057
2110
  );
2058
2111
  }
2059
- function Fs({ label: e, defaultValue: t, onChange: n }) {
2112
+ function Ps({ label: e, defaultValue: t, onChange: n }) {
2060
2113
  const { t: r } = Se(), i = t ?? "normal", [l, a] = z(i);
2061
2114
  return Ce(() => {
2062
2115
  a(i);
@@ -2081,7 +2134,7 @@ function tr(e) {
2081
2134
  const t = typeof e == "number" ? e : parseFloat(String(e));
2082
2135
  return Number.isFinite(t) ? Math.max(cl, Math.min(ul, t)) : er;
2083
2136
  }
2084
- function zs({ label: e, defaultValue: t, onChange: n }) {
2137
+ function Fs({ label: e, defaultValue: t, onChange: n }) {
2085
2138
  const r = tr(t), [i, l] = z(r);
2086
2139
  return Ce(() => {
2087
2140
  l(tr(t));
@@ -2090,7 +2143,7 @@ function zs({ label: e, defaultValue: t, onChange: n }) {
2090
2143
  /* @__PURE__ */ o(
2091
2144
  Vt,
2092
2145
  {
2093
- iconLabel: /* @__PURE__ */ o(Zl, { sx: { fontSize: 16 } }),
2146
+ iconLabel: /* @__PURE__ */ o(li, { sx: { fontSize: 16 } }),
2094
2147
  value: i,
2095
2148
  setValue: (c) => {
2096
2149
  l(c), n(c);
@@ -2103,8 +2156,8 @@ function zs({ label: e, defaultValue: t, onChange: n }) {
2103
2156
  )
2104
2157
  ] });
2105
2158
  }
2106
- const Ls = [1, 1.5, 2, 2.5, 3], nr = 1.5;
2107
- function Ws({ label: e, defaultValue: t, onChange: n }) {
2159
+ const zs = [1, 1.5, 2, 2.5, 3], nr = 1.5;
2160
+ function Ls({ label: e, defaultValue: t, onChange: n }) {
2108
2161
  const [r, i] = z(t ?? nr);
2109
2162
  return Ce(() => {
2110
2163
  i(t ?? nr);
@@ -2120,11 +2173,11 @@ function Ws({ label: e, defaultValue: t, onChange: n }) {
2120
2173
  const a = Number(l.target.value);
2121
2174
  i(a), n(a);
2122
2175
  },
2123
- children: Ls.map((l) => /* @__PURE__ */ o(on, { value: l, children: l }, l))
2176
+ children: zs.map((l) => /* @__PURE__ */ o(on, { value: l, children: l }, l))
2124
2177
  }
2125
2178
  );
2126
2179
  }
2127
- function Hs({ label: e, defaultValue: t, onChange: n }) {
2180
+ function Ws({ label: e, defaultValue: t, onChange: n }) {
2128
2181
  const [r, i] = z(() => t || {
2129
2182
  top: 0,
2130
2183
  left: 0,
@@ -2143,7 +2196,7 @@ function Hs({ label: e, defaultValue: t, onChange: n }) {
2143
2196
  /* @__PURE__ */ o(
2144
2197
  Vt,
2145
2198
  {
2146
- iconLabel: /* @__PURE__ */ o(Ql, { sx: { fontSize: 16 } }),
2199
+ iconLabel: /* @__PURE__ */ o(ci, { sx: { fontSize: 16 } }),
2147
2200
  value: r.top,
2148
2201
  setValue: (a) => l("top", a),
2149
2202
  units: "px",
@@ -2156,7 +2209,7 @@ function Hs({ label: e, defaultValue: t, onChange: n }) {
2156
2209
  /* @__PURE__ */ o(
2157
2210
  Vt,
2158
2211
  {
2159
- iconLabel: /* @__PURE__ */ o(ei, { sx: { fontSize: 16 } }),
2212
+ iconLabel: /* @__PURE__ */ o(si, { sx: { fontSize: 16 } }),
2160
2213
  value: r.bottom,
2161
2214
  setValue: (a) => l("bottom", a),
2162
2215
  units: "px",
@@ -2169,7 +2222,7 @@ function Hs({ label: e, defaultValue: t, onChange: n }) {
2169
2222
  /* @__PURE__ */ o(
2170
2223
  Vt,
2171
2224
  {
2172
- iconLabel: /* @__PURE__ */ o(ti, { sx: { fontSize: 16 } }),
2225
+ iconLabel: /* @__PURE__ */ o(ii, { sx: { fontSize: 16 } }),
2173
2226
  value: r.left,
2174
2227
  setValue: (a) => l("left", a),
2175
2228
  units: "px",
@@ -2182,7 +2235,7 @@ function Hs({ label: e, defaultValue: t, onChange: n }) {
2182
2235
  /* @__PURE__ */ o(
2183
2236
  Vt,
2184
2237
  {
2185
- iconLabel: /* @__PURE__ */ o(ni, { sx: { fontSize: 16 } }),
2238
+ iconLabel: /* @__PURE__ */ o(ai, { sx: { fontSize: 16 } }),
2186
2239
  value: r.right,
2187
2240
  setValue: (a) => l("right", a),
2188
2241
  units: "px",
@@ -2210,7 +2263,7 @@ function un({ label: e, defaultValue: t, onChange: n, ...r }) {
2210
2263
  )
2211
2264
  ] });
2212
2265
  }
2213
- function Vs({ label: e, defaultValue: t, onChange: n }) {
2266
+ function Hs({ label: e, defaultValue: t, onChange: n }) {
2214
2267
  const [r, i] = z(t ?? "left");
2215
2268
  return /* @__PURE__ */ w(
2216
2269
  ft,
@@ -2221,14 +2274,14 @@ function Vs({ label: e, defaultValue: t, onChange: n }) {
2221
2274
  i(l), n(l);
2222
2275
  },
2223
2276
  children: [
2224
- /* @__PURE__ */ o(le, { value: "left", children: /* @__PURE__ */ o(oi, { fontSize: "small" }) }),
2225
- /* @__PURE__ */ o(le, { value: "center", children: /* @__PURE__ */ o(ri, { fontSize: "small" }) }),
2226
- /* @__PURE__ */ o(le, { value: "right", children: /* @__PURE__ */ o(li, { fontSize: "small" }) })
2277
+ /* @__PURE__ */ o(le, { value: "left", children: /* @__PURE__ */ o(di, { fontSize: "small" }) }),
2278
+ /* @__PURE__ */ o(le, { value: "center", children: /* @__PURE__ */ o(ui, { fontSize: "small" }) }),
2279
+ /* @__PURE__ */ o(le, { value: "right", children: /* @__PURE__ */ o(pi, { fontSize: "small" }) })
2227
2280
  ]
2228
2281
  }
2229
2282
  );
2230
2283
  }
2231
- function Us({ label: e, defaultValue: t, onChange: n }) {
2284
+ function Vs({ label: e, defaultValue: t, onChange: n }) {
2232
2285
  const { t: r } = Se(), i = t || "none", [l, a] = z(i);
2233
2286
  return Ce(() => {
2234
2287
  a(i);
@@ -2254,14 +2307,14 @@ function or({ name: e, value: t, onChange: n }) {
2254
2307
  };
2255
2308
  switch (e) {
2256
2309
  case "backgroundColor":
2257
- return /* @__PURE__ */ o(Ln, { label: r("style.backgroundColor"), defaultValue: i, onChange: l });
2310
+ return /* @__PURE__ */ o(Wn, { label: r("style.backgroundColor"), defaultValue: i, onChange: l });
2258
2311
  case "borderColor":
2259
- return /* @__PURE__ */ o(Ln, { label: r("style.borderColor"), defaultValue: i, onChange: l });
2312
+ return /* @__PURE__ */ o(Wn, { label: r("style.borderColor"), defaultValue: i, onChange: l });
2260
2313
  case "borderRadius":
2261
2314
  return /* @__PURE__ */ o(
2262
2315
  un,
2263
2316
  {
2264
- iconLabel: /* @__PURE__ */ o(ii, {}),
2317
+ iconLabel: /* @__PURE__ */ o(oi, {}),
2265
2318
  units: "px",
2266
2319
  step: 4,
2267
2320
  marks: !0,
@@ -2273,42 +2326,42 @@ function or({ name: e, value: t, onChange: n }) {
2273
2326
  }
2274
2327
  );
2275
2328
  case "color":
2276
- return /* @__PURE__ */ o(Ln, { label: r("style.textColor"), defaultValue: i, onChange: l });
2329
+ return /* @__PURE__ */ o(Wn, { label: r("style.textColor"), defaultValue: i, onChange: l });
2277
2330
  case "fontFamily":
2278
2331
  return /* @__PURE__ */ o(sl, { label: r("style.fontFamily"), defaultValue: i, onChange: l });
2279
2332
  case "fontSize":
2280
- return /* @__PURE__ */ o(Rs, { label: r("style.fontSize"), defaultValue: i, onChange: l });
2333
+ return /* @__PURE__ */ o(Ns, { label: r("style.fontSize"), defaultValue: i, onChange: l });
2281
2334
  case "fontWeight":
2282
- return /* @__PURE__ */ o(Fs, { label: r("style.fontWeight"), defaultValue: i, onChange: l });
2335
+ return /* @__PURE__ */ o(Ps, { label: r("style.fontWeight"), defaultValue: i, onChange: l });
2283
2336
  case "fontStyle":
2284
- return /* @__PURE__ */ o(Ps, { label: r("style.fontStyle"), defaultValue: i, onChange: l });
2337
+ return /* @__PURE__ */ o(Rs, { label: r("style.fontStyle"), defaultValue: i, onChange: l });
2285
2338
  case "textDecoration":
2286
- return /* @__PURE__ */ o(Us, { label: r("style.textDecoration"), defaultValue: i, onChange: l });
2339
+ return /* @__PURE__ */ o(Vs, { label: r("style.textDecoration"), defaultValue: i, onChange: l });
2287
2340
  case "lineHeight":
2288
- return /* @__PURE__ */ o(Ws, { label: r("style.lineHeight"), defaultValue: i, onChange: l });
2341
+ return /* @__PURE__ */ o(Ls, { label: r("style.lineHeight"), defaultValue: i, onChange: l });
2289
2342
  case "letterSpacing":
2290
- return /* @__PURE__ */ o(zs, { label: r("style.letterSpacing"), defaultValue: i, onChange: l });
2343
+ return /* @__PURE__ */ o(Fs, { label: r("style.letterSpacing"), defaultValue: i, onChange: l });
2291
2344
  case "textAlign":
2292
- return /* @__PURE__ */ o(Vs, { label: r("style.alignment"), defaultValue: i, onChange: l });
2345
+ return /* @__PURE__ */ o(Hs, { label: r("style.alignment"), defaultValue: i, onChange: l });
2293
2346
  case "padding":
2294
- return /* @__PURE__ */ o(Hs, { label: r("style.padding"), defaultValue: i, onChange: l });
2347
+ return /* @__PURE__ */ o(Ws, { label: r("style.padding"), defaultValue: i, onChange: l });
2295
2348
  }
2296
2349
  }
2297
2350
  const dl = ["fontWeight", "fontStyle", "textDecoration"];
2298
- function $s(e) {
2351
+ function Us(e) {
2299
2352
  return dl.every((t) => e.includes(t));
2300
2353
  }
2301
2354
  function gt({ names: e, value: t, onChange: n }) {
2302
- const { t: r } = Se(), i = $s(e);
2355
+ const { t: r } = Se(), i = Us(e);
2303
2356
  return /* @__PURE__ */ o(an, { children: e.map((l) => dl.includes(l) ? null : l === "letterSpacing" && i ? /* @__PURE__ */ w(mt.Fragment, { children: [
2304
2357
  /* @__PURE__ */ o(or, { name: "letterSpacing", value: t || {}, onChange: n }),
2305
2358
  /* @__PURE__ */ w(Z, { alignItems: "flex-start", sx: { mt: 1 }, children: [
2306
2359
  /* @__PURE__ */ o(At, { shrink: !0, children: r("style.formatGroup") }),
2307
- /* @__PURE__ */ o(Ms, { value: t || {}, onChange: n })
2360
+ /* @__PURE__ */ o(Bs, { value: t || {}, onChange: n })
2308
2361
  ] })
2309
2362
  ] }, "letterSpacing-and-format") : /* @__PURE__ */ o(or, { name: l, value: t || {}, onChange: n }, l)) });
2310
2363
  }
2311
- function js({ data: e, setData: t }) {
2364
+ function $s({ data: e, setData: t }) {
2312
2365
  var g, f, m, h, b, S;
2313
2366
  const { t: n } = Se(), [, r] = z(null), i = (y) => {
2314
2367
  const k = Or.safeParse(y);
@@ -2388,10 +2441,10 @@ function js({ data: e, setData: t }) {
2388
2441
  )
2389
2442
  ] });
2390
2443
  }
2391
- const Ks = Wr.shape.props.unwrap().unwrap().shape, Xn = J.object({
2392
- style: Wr.shape.style,
2444
+ const js = Rr.shape.props.unwrap().unwrap().shape, Xn = J.object({
2445
+ style: Rr.shape.style,
2393
2446
  props: J.object({
2394
- ...Ks,
2447
+ ...js,
2395
2448
  columnsCount: J.number().min(1).max(4).optional().nullable(),
2396
2449
  columns: J.array(J.object({ childrenIds: J.array(J.string()) })).min(1).max(4),
2397
2450
  fixedWidths: J.tuple([
@@ -2402,7 +2455,7 @@ const Ks = Wr.shape.props.unwrap().unwrap().shape, Xn = J.object({
2402
2455
  ]).optional().nullable()
2403
2456
  }).optional().nullable()
2404
2457
  });
2405
- function qs({ data: e, setData: t }) {
2458
+ function Ks({ data: e, setData: t }) {
2406
2459
  var P, he, be, ce, _;
2407
2460
  const { t: n } = Se(), r = Qe(), i = cn(), [, l] = z(null), a = (x) => {
2408
2461
  const T = Xn.safeParse(x);
@@ -2609,7 +2662,7 @@ function qs({ data: e, setData: t }) {
2609
2662
  un,
2610
2663
  {
2611
2664
  label: n("columns.gap"),
2612
- iconLabel: /* @__PURE__ */ o(ai, { sx: { color: "text.secondary" } }),
2665
+ iconLabel: /* @__PURE__ */ o(fi, { sx: { color: "text.secondary" } }),
2613
2666
  units: "px",
2614
2667
  step: 4,
2615
2668
  marks: !0,
@@ -2628,10 +2681,10 @@ function qs({ data: e, setData: t }) {
2628
2681
  a({ ...e, props: { ...e.props, contentAlignment: x } });
2629
2682
  },
2630
2683
  children: [
2631
- /* @__PURE__ */ o(le, { value: "top", title: n("columns.alignmentTop"), children: /* @__PURE__ */ o(So, { fontSize: "small" }) }),
2684
+ /* @__PURE__ */ o(le, { value: "top", title: n("columns.alignmentTop"), children: /* @__PURE__ */ o(wo, { fontSize: "small" }) }),
2632
2685
  /* @__PURE__ */ o(le, { value: "middle", title: n("columns.alignmentMiddle"), children: /* @__PURE__ */ o(vo, { fontSize: "small" }) }),
2633
- /* @__PURE__ */ o(le, { value: "bottom", title: n("columns.alignmentBottom"), children: /* @__PURE__ */ o(wo, { fontSize: "small" }) }),
2634
- /* @__PURE__ */ o(le, { value: "stretch", title: n("columns.alignmentStretch"), children: /* @__PURE__ */ o(si, { fontSize: "small" }) })
2686
+ /* @__PURE__ */ o(le, { value: "bottom", title: n("columns.alignmentBottom"), children: /* @__PURE__ */ o(So, { fontSize: "small" }) }),
2687
+ /* @__PURE__ */ o(le, { value: "stretch", title: n("columns.alignmentStretch"), children: /* @__PURE__ */ o(mi, { fontSize: "small" }) })
2635
2688
  ]
2636
2689
  }
2637
2690
  ),
@@ -2654,12 +2707,12 @@ function qs({ data: e, setData: t }) {
2654
2707
  ] });
2655
2708
  }
2656
2709
  const pl = J.object({
2657
- style: qi.shape.style,
2710
+ style: hi.shape.style,
2658
2711
  props: J.object({
2659
2712
  childrenIds: J.array(J.string()).optional().nullable()
2660
2713
  }).optional().nullable()
2661
2714
  });
2662
- function Ys({ data: e, setData: t }) {
2715
+ function qs({ data: e, setData: t }) {
2663
2716
  const { t: n } = Se(), [, r] = z(null), i = (l) => {
2664
2717
  const a = pl.safeParse(l);
2665
2718
  a.success ? (t(a.data), r(null)) : r(a.error);
@@ -2673,10 +2726,10 @@ function Ys({ data: e, setData: t }) {
2673
2726
  }
2674
2727
  ) });
2675
2728
  }
2676
- function Xs({ data: e, setData: t }) {
2729
+ function Ys({ data: e, setData: t }) {
2677
2730
  var c, s;
2678
2731
  const { t: n } = Se(), [, r] = z(null), i = (d) => {
2679
- const u = Hr.safeParse(d);
2732
+ const u = Fr.safeParse(d);
2680
2733
  u.success ? (t(u.data), r(null)) : r(u.error);
2681
2734
  }, l = ((c = e.props) == null ? void 0 : c.lineColor) ?? Vo.lineColor, a = ((s = e.props) == null ? void 0 : s.lineHeight) ?? Vo.lineHeight;
2682
2735
  return /* @__PURE__ */ w(it, { title: n("divider.title"), children: [
@@ -2692,7 +2745,7 @@ function Xs({ data: e, setData: t }) {
2692
2745
  un,
2693
2746
  {
2694
2747
  label: n("divider.height"),
2695
- iconLabel: /* @__PURE__ */ o(Rr, { sx: { color: "text.secondary" } }),
2748
+ iconLabel: /* @__PURE__ */ o(Pr, { sx: { color: "text.secondary" } }),
2696
2749
  units: "px",
2697
2750
  step: 1,
2698
2751
  min: 1,
@@ -2711,7 +2764,7 @@ function Xs({ data: e, setData: t }) {
2711
2764
  )
2712
2765
  ] });
2713
2766
  }
2714
- const Nn = J.string().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional(), Gs = J.enum([
2767
+ const Rn = J.string().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional(), Xs = J.enum([
2715
2768
  "MODERN_SANS",
2716
2769
  "BOOK_SANS",
2717
2770
  "ORGANIC_SANS",
@@ -2722,12 +2775,12 @@ const Nn = J.string().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional(), Gs = J.e
2722
2775
  "BOOK_SERIF",
2723
2776
  "MONOSPACE"
2724
2777
  ]).nullable().optional(), fl = J.object({
2725
- backdropColor: Nn,
2726
- borderColor: Nn,
2778
+ backdropColor: Rn,
2779
+ borderColor: Rn,
2727
2780
  borderRadius: J.number().optional().nullable(),
2728
- canvasColor: Nn,
2729
- textColor: Nn,
2730
- fontFamily: Gs,
2781
+ canvasColor: Rn,
2782
+ textColor: Rn,
2783
+ fontFamily: Xs,
2731
2784
  width: J.number().optional().nullable(),
2732
2785
  childrenIds: J.array(J.string()).optional().nullable()
2733
2786
  });
@@ -2754,7 +2807,7 @@ function ml({ data: e, setData: t }) {
2754
2807
  }
2755
2808
  ),
2756
2809
  /* @__PURE__ */ o(
2757
- Ln,
2810
+ Wn,
2758
2811
  {
2759
2812
  label: n("emailLayout.canvasBorderColor"),
2760
2813
  defaultValue: e.borderColor ?? null,
@@ -2764,7 +2817,7 @@ function ml({ data: e, setData: t }) {
2764
2817
  /* @__PURE__ */ o(
2765
2818
  un,
2766
2819
  {
2767
- iconLabel: /* @__PURE__ */ o(Pr, {}),
2820
+ iconLabel: /* @__PURE__ */ o(zr, {}),
2768
2821
  units: "px",
2769
2822
  step: 20,
2770
2823
  marks: !0,
@@ -2793,10 +2846,10 @@ function ml({ data: e, setData: t }) {
2793
2846
  )
2794
2847
  ] });
2795
2848
  }
2796
- function Js({ data: e, setData: t }) {
2849
+ function Gs({ data: e, setData: t }) {
2797
2850
  var l;
2798
2851
  const { t: n } = Se(), [, r] = z(null), i = (a) => {
2799
- const c = Vr.safeParse(a);
2852
+ const c = Lr.safeParse(a);
2800
2853
  c.success ? (t(c.data), r(null)) : r(c.error);
2801
2854
  };
2802
2855
  return /* @__PURE__ */ w(it, { title: n("heading.title"), children: [
@@ -2804,7 +2857,7 @@ function Js({ data: e, setData: t }) {
2804
2857
  ft,
2805
2858
  {
2806
2859
  label: n("heading.level"),
2807
- defaultValue: ((l = e.props) == null ? void 0 : l.level) ?? Gi.level,
2860
+ defaultValue: ((l = e.props) == null ? void 0 : l.level) ?? yi.level,
2808
2861
  onChange: (a) => {
2809
2862
  i({ ...e, props: { ...e.props, level: a } });
2810
2863
  },
@@ -2825,7 +2878,7 @@ function Js({ data: e, setData: t }) {
2825
2878
  )
2826
2879
  ] });
2827
2880
  }
2828
- function Zs({ label: e, value: t, onChange: n, height: r = "200px" }) {
2881
+ function Js({ label: e, value: t, onChange: n, height: r = "200px" }) {
2829
2882
  const [i, l] = mt.useState(t), a = Oe(null);
2830
2883
  Ce(() => {
2831
2884
  t !== i && l(t);
@@ -2855,12 +2908,12 @@ function Zs({ label: e, value: t, onChange: n, height: r = "200px" }) {
2855
2908
  }
2856
2909
  },
2857
2910
  children: /* @__PURE__ */ o(
2858
- Qi,
2911
+ vi,
2859
2912
  {
2860
2913
  value: i,
2861
2914
  height: r,
2862
- extensions: [ea()],
2863
- theme: ta,
2915
+ extensions: [wi()],
2916
+ theme: Ii,
2864
2917
  onChange: c,
2865
2918
  basicSetup: {
2866
2919
  lineNumbers: !0,
@@ -2874,15 +2927,15 @@ function Zs({ label: e, value: t, onChange: n, height: r = "200px" }) {
2874
2927
  )
2875
2928
  ] });
2876
2929
  }
2877
- function Qs({ data: e, setData: t }) {
2930
+ function Zs({ data: e, setData: t }) {
2878
2931
  var l;
2879
2932
  const { t: n } = Se(), [, r] = z(null), i = (a) => {
2880
- const c = Ur.safeParse(a);
2933
+ const c = Wr.safeParse(a);
2881
2934
  c.success ? (t(c.data), r(null)) : r(c.error);
2882
2935
  };
2883
2936
  return /* @__PURE__ */ w(it, { title: n("html.title"), children: [
2884
2937
  /* @__PURE__ */ o(
2885
- Zs,
2938
+ Js,
2886
2939
  {
2887
2940
  label: n("html.content"),
2888
2941
  value: ((l = e.props) == null ? void 0 : l.contents) ?? "",
@@ -2900,7 +2953,7 @@ function Qs({ data: e, setData: t }) {
2900
2953
  )
2901
2954
  ] });
2902
2955
  }
2903
- function $n({ label: e, defaultValue: t, onChange: n }) {
2956
+ function jn({ label: e, defaultValue: t, onChange: n }) {
2904
2957
  return /* @__PURE__ */ o(
2905
2958
  dt,
2906
2959
  {
@@ -2920,10 +2973,10 @@ function $n({ label: e, defaultValue: t, onChange: n }) {
2920
2973
  }
2921
2974
  );
2922
2975
  }
2923
- function ec({ data: e, setData: t }) {
2976
+ function Qs({ data: e, setData: t }) {
2924
2977
  var m, h, b, S, y, k;
2925
2978
  const { t: n } = Se(), [, r] = z(null), [i, l] = z("url"), [a, c] = z(!1), s = Oe(null), d = Gr(), u = (D) => {
2926
- const E = $r.safeParse(D);
2979
+ const E = Hr.safeParse(D);
2927
2980
  E.success ? (t(E.data), r(null)) : r(E.error);
2928
2981
  }, g = async (D) => {
2929
2982
  var N;
@@ -2954,7 +3007,7 @@ function ec({ data: e, setData: t }) {
2954
3007
  size: "small",
2955
3008
  fullWidth: !0,
2956
3009
  children: [
2957
- /* @__PURE__ */ o(Kn, { fontSize: "small", sx: { mr: 0.5 } }),
3010
+ /* @__PURE__ */ o(An, { fontSize: "small", sx: { mr: 0.5 } }),
2958
3011
  n("image.url")
2959
3012
  ]
2960
3013
  }
@@ -3000,7 +3053,7 @@ function ec({ data: e, setData: t }) {
3000
3053
  Me,
3001
3054
  {
3002
3055
  variant: "outlined",
3003
- startIcon: a ? /* @__PURE__ */ o(jn, { size: 16 }) : /* @__PURE__ */ o(Ft, {}),
3056
+ startIcon: a ? /* @__PURE__ */ o(Kn, { size: 16 }) : /* @__PURE__ */ o(Ft, {}),
3004
3057
  onClick: f,
3005
3058
  disabled: a || !d,
3006
3059
  fullWidth: !0,
@@ -3031,7 +3084,7 @@ function ec({ data: e, setData: t }) {
3031
3084
  ),
3032
3085
  /* @__PURE__ */ w(Z, { direction: "row", spacing: 2, children: [
3033
3086
  /* @__PURE__ */ o(
3034
- $n,
3087
+ jn,
3035
3088
  {
3036
3089
  label: n("image.width"),
3037
3090
  defaultValue: (S = e.props) == null ? void 0 : S.width,
@@ -3039,7 +3092,7 @@ function ec({ data: e, setData: t }) {
3039
3092
  }
3040
3093
  ),
3041
3094
  /* @__PURE__ */ o(
3042
- $n,
3095
+ jn,
3043
3096
  {
3044
3097
  label: n("image.height"),
3045
3098
  defaultValue: (y = e.props) == null ? void 0 : y.height,
@@ -3054,9 +3107,9 @@ function ec({ data: e, setData: t }) {
3054
3107
  defaultValue: ((k = e.props) == null ? void 0 : k.contentAlignment) ?? "middle",
3055
3108
  onChange: (D) => u({ ...e, props: { ...e.props, contentAlignment: D } }),
3056
3109
  children: [
3057
- /* @__PURE__ */ o(le, { value: "top", children: /* @__PURE__ */ o(So, { fontSize: "small" }) }),
3110
+ /* @__PURE__ */ o(le, { value: "top", children: /* @__PURE__ */ o(wo, { fontSize: "small" }) }),
3058
3111
  /* @__PURE__ */ o(le, { value: "middle", children: /* @__PURE__ */ o(vo, { fontSize: "small" }) }),
3059
- /* @__PURE__ */ o(le, { value: "bottom", children: /* @__PURE__ */ o(wo, { fontSize: "small" }) })
3112
+ /* @__PURE__ */ o(le, { value: "bottom", children: /* @__PURE__ */ o(So, { fontSize: "small" }) })
3060
3113
  ]
3061
3114
  }
3062
3115
  ),
@@ -3097,7 +3150,7 @@ const hl = J.object({
3097
3150
  textAlign: J.enum(["left", "center", "right"]).optional().nullable()
3098
3151
  }).optional().nullable()
3099
3152
  });
3100
- function Rn({ label: e, defaultValue: t, onChange: n }) {
3153
+ function Pn({ label: e, defaultValue: t, onChange: n }) {
3101
3154
  const [r, i] = z(t);
3102
3155
  return /* @__PURE__ */ o(
3103
3156
  vr,
@@ -3115,7 +3168,7 @@ function Rn({ label: e, defaultValue: t, onChange: n }) {
3115
3168
  }
3116
3169
  );
3117
3170
  }
3118
- function tc({ data: e, setData: t }) {
3171
+ function ec({ data: e, setData: t }) {
3119
3172
  var m, h, b, S, y, k, D, E, N, W;
3120
3173
  const { t: n } = Se(), [, r] = z(null), [i, l] = z("url"), [a, c] = z(!1), s = Oe(null), d = Jr(), u = (P) => {
3121
3174
  const he = hl.safeParse(P);
@@ -3149,7 +3202,7 @@ function tc({ data: e, setData: t }) {
3149
3202
  size: "small",
3150
3203
  fullWidth: !0,
3151
3204
  children: [
3152
- /* @__PURE__ */ o(Kn, { fontSize: "small", sx: { mr: 0.5 } }),
3205
+ /* @__PURE__ */ o(An, { fontSize: "small", sx: { mr: 0.5 } }),
3153
3206
  n("video.url")
3154
3207
  ]
3155
3208
  }
@@ -3195,7 +3248,7 @@ function tc({ data: e, setData: t }) {
3195
3248
  Me,
3196
3249
  {
3197
3250
  variant: "outlined",
3198
- startIcon: a ? /* @__PURE__ */ o(jn, { size: 16 }) : /* @__PURE__ */ o(Ft, {}),
3251
+ startIcon: a ? /* @__PURE__ */ o(Kn, { size: 16 }) : /* @__PURE__ */ o(Ft, {}),
3199
3252
  onClick: f,
3200
3253
  disabled: a || !d,
3201
3254
  fullWidth: !0,
@@ -3226,7 +3279,7 @@ function tc({ data: e, setData: t }) {
3226
3279
  ),
3227
3280
  /* @__PURE__ */ w(Z, { direction: "row", spacing: 2, children: [
3228
3281
  /* @__PURE__ */ o(
3229
- $n,
3282
+ jn,
3230
3283
  {
3231
3284
  label: n("video.width"),
3232
3285
  defaultValue: (S = e.props) != null && S.width ? (() => {
@@ -3240,7 +3293,7 @@ function tc({ data: e, setData: t }) {
3240
3293
  }
3241
3294
  ),
3242
3295
  /* @__PURE__ */ o(
3243
- $n,
3296
+ jn,
3244
3297
  {
3245
3298
  label: n("video.height"),
3246
3299
  defaultValue: (y = e.props) != null && y.height ? (() => {
@@ -3261,15 +3314,15 @@ function tc({ data: e, setData: t }) {
3261
3314
  defaultValue: ((k = e.props) == null ? void 0 : k.contentAlignment) ?? "middle",
3262
3315
  onChange: (P) => u({ ...e, props: { ...e.props, contentAlignment: P } }),
3263
3316
  children: [
3264
- /* @__PURE__ */ o(le, { value: "top", children: /* @__PURE__ */ o(So, { fontSize: "small" }) }),
3317
+ /* @__PURE__ */ o(le, { value: "top", children: /* @__PURE__ */ o(wo, { fontSize: "small" }) }),
3265
3318
  /* @__PURE__ */ o(le, { value: "middle", children: /* @__PURE__ */ o(vo, { fontSize: "small" }) }),
3266
- /* @__PURE__ */ o(le, { value: "bottom", children: /* @__PURE__ */ o(wo, { fontSize: "small" }) })
3319
+ /* @__PURE__ */ o(le, { value: "bottom", children: /* @__PURE__ */ o(So, { fontSize: "small" }) })
3267
3320
  ]
3268
3321
  }
3269
3322
  ),
3270
3323
  /* @__PURE__ */ w(Z, { spacing: 1, children: [
3271
3324
  /* @__PURE__ */ o(
3272
- Rn,
3325
+ Pn,
3273
3326
  {
3274
3327
  label: n("video.autoplay"),
3275
3328
  defaultValue: ((D = e.props) == null ? void 0 : D.autoplay) ?? !1,
@@ -3277,7 +3330,7 @@ function tc({ data: e, setData: t }) {
3277
3330
  }
3278
3331
  ),
3279
3332
  /* @__PURE__ */ o(
3280
- Rn,
3333
+ Pn,
3281
3334
  {
3282
3335
  label: n("video.loop"),
3283
3336
  defaultValue: ((E = e.props) == null ? void 0 : E.loop) ?? !1,
@@ -3285,7 +3338,7 @@ function tc({ data: e, setData: t }) {
3285
3338
  }
3286
3339
  ),
3287
3340
  /* @__PURE__ */ o(
3288
- Rn,
3341
+ Pn,
3289
3342
  {
3290
3343
  label: n("video.muted"),
3291
3344
  defaultValue: ((N = e.props) == null ? void 0 : N.muted) ?? !1,
@@ -3293,7 +3346,7 @@ function tc({ data: e, setData: t }) {
3293
3346
  }
3294
3347
  ),
3295
3348
  /* @__PURE__ */ o(
3296
- Rn,
3349
+ Pn,
3297
3350
  {
3298
3351
  label: n("video.controls"),
3299
3352
  defaultValue: ((W = e.props) == null ? void 0 : W.controls) ?? !0,
@@ -3311,22 +3364,22 @@ function tc({ data: e, setData: t }) {
3311
3364
  )
3312
3365
  ] });
3313
3366
  }
3314
- function nc({ data: e, setData: t }) {
3367
+ function tc({ data: e, setData: t }) {
3315
3368
  var l;
3316
3369
  const { t: n } = Se(), [, r] = z(null), i = (a) => {
3317
- const c = jr.safeParse(a);
3370
+ const c = Vr.safeParse(a);
3318
3371
  c.success ? (t(c.data), r(null)) : r(c.error);
3319
3372
  };
3320
3373
  return /* @__PURE__ */ o(it, { title: n("spacer.title"), children: /* @__PURE__ */ o(
3321
3374
  un,
3322
3375
  {
3323
3376
  label: n("spacer.height"),
3324
- iconLabel: /* @__PURE__ */ o(Rr, { sx: { color: "text.secondary" } }),
3377
+ iconLabel: /* @__PURE__ */ o(Pr, { sx: { color: "text.secondary" } }),
3325
3378
  units: "px",
3326
3379
  step: 4,
3327
3380
  min: 4,
3328
3381
  max: 128,
3329
- defaultValue: ((l = e.props) == null ? void 0 : l.height) ?? oa.height,
3382
+ defaultValue: ((l = e.props) == null ? void 0 : l.height) ?? Di.height,
3330
3383
  onChange: (a) => i({ ...e, props: { ...e.props, height: a } })
3331
3384
  }
3332
3385
  ) });
@@ -3381,7 +3434,7 @@ const Ao = [
3381
3434
  items: [{ name: "unsubscribe_link", labelKey: "text.variables.unsubscribeLink", kind: "user" }]
3382
3435
  }
3383
3436
  ];
3384
- function oc(e) {
3437
+ function nc(e) {
3385
3438
  const t = e.baseGroups ?? Ao, n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
3386
3439
  for (const l of t)
3387
3440
  for (const a of l.items)
@@ -3404,7 +3457,7 @@ const rr = [
3404
3457
  "fontWeight",
3405
3458
  "fontStyle",
3406
3459
  "textDecoration"
3407
- ], rc = [
3460
+ ], oc = [
3408
3461
  "color",
3409
3462
  "backgroundColor",
3410
3463
  "fontFamily",
@@ -3413,12 +3466,12 @@ const rr = [
3413
3466
  "fontWeight",
3414
3467
  "fontStyle",
3415
3468
  "textDecoration"
3416
- ], lc = ["lineHeight", "textAlign", "padding"], ic = Ao;
3417
- function ac({ blockId: e, data: t, setData: n }) {
3469
+ ], rc = ["lineHeight", "textAlign", "padding"], lc = Ao;
3470
+ function ic({ blockId: e, data: t, setData: n }) {
3418
3471
  var fe;
3419
3472
  const { t: r } = Se(), [, i] = z(null), l = Yr();
3420
3473
  Xr();
3421
- const a = ya(), c = qr(), s = ct(() => {
3474
+ const a = Ca(), c = qr(), s = ct(() => {
3422
3475
  const I = (R) => typeof R == "string" ? R.trim() : "", O = (Array.isArray(c) ? c : []).filter((R) => {
3423
3476
  if (!I(R == null ? void 0 : R.AttrField)) return !1;
3424
3477
  const Ee = R == null ? void 0 : R.Enable;
@@ -3426,7 +3479,7 @@ function ac({ blockId: e, data: t, setData: n }) {
3426
3479
  }).map((R) => {
3427
3480
  const de = I(R == null ? void 0 : R.AttrField), Ee = I(R == null ? void 0 : R.AttrComment) || I(R == null ? void 0 : R.Name) || de;
3428
3481
  return { name: de, labelKey: Ee, kind: "user", isCustomLabel: !0 };
3429
- }), $ = ic.map((R) => ({
3482
+ }), $ = lc.map((R) => ({
3430
3483
  ...R,
3431
3484
  items: R.items.map((de) => ({ ...de, isCustomLabel: !1 }))
3432
3485
  })), j = $.find((R) => R.id === "contacts");
@@ -3447,7 +3500,7 @@ function ac({ blockId: e, data: t, setData: n }) {
3447
3500
  const f = (l == null ? void 0 : l.blockId) === e && l.start < l.end, m = ct(() => {
3448
3501
  const I = t.style ?? {};
3449
3502
  if (!f || !l) return I;
3450
- const O = Ht(t.props ?? null), $ = ps(O, l.start, l.end);
3503
+ const O = Ht(t.props ?? null), $ = ds(O, l.start, l.end);
3451
3504
  if ($ && Object.keys($).length) return { ...I, ...$ };
3452
3505
  const j = (a == null ? void 0 : a.blockId) === e ? a.styleSnapshot : void 0;
3453
3506
  return j && Object.keys(j).length ? { ...I, ...j } : I;
@@ -3485,7 +3538,7 @@ function ac({ blockId: e, data: t, setData: n }) {
3485
3538
  }, S = (a == null ? void 0 : a.blockId) === e ? a.text : "", y = f && l ? S.slice(l.start, l.end) : "", k = f, D = ct(() => {
3486
3539
  if (!f || !l) return null;
3487
3540
  const I = Ht(t.props ?? null);
3488
- return ms(I, l.start, l.end);
3541
+ return fs(I, l.start, l.end);
3489
3542
  }, [f, l, t.props]), E = !f || !!D, N = ct(() => Ht(t.props ?? null), [t.props]), W = ct(() => {
3490
3543
  const I = /* @__PURE__ */ new Set();
3491
3544
  for (const O of s)
@@ -3535,7 +3588,7 @@ function ac({ blockId: e, data: t, setData: n }) {
3535
3588
  }
3536
3589
  }, ae = (I, O) => {
3537
3590
  const $ = Ht(t.props ?? null);
3538
- return ds($, I, O);
3591
+ return us($, I, O);
3539
3592
  }, re = (I) => {
3540
3593
  if (!k || !l) return;
3541
3594
  const O = ae(l.start, l.end);
@@ -3651,7 +3704,7 @@ function ac({ blockId: e, data: t, setData: n }) {
3651
3704
  onClick: re,
3652
3705
  disabled: !k,
3653
3706
  "aria-label": r("text.link"),
3654
- startIcon: /* @__PURE__ */ o(ia, { fontSize: "small" }),
3707
+ startIcon: /* @__PURE__ */ o(An, { fontSize: "small" }),
3655
3708
  sx: {
3656
3709
  color: "text.secondary",
3657
3710
  borderColor: "divider",
@@ -3676,7 +3729,7 @@ function ac({ blockId: e, data: t, setData: n }) {
3676
3729
  onClick: Ie,
3677
3730
  disabled: !E,
3678
3731
  "aria-label": r("text.addVariables"),
3679
- startIcon: /* @__PURE__ */ o(Fr, { fontSize: "small" }),
3732
+ startIcon: /* @__PURE__ */ o(Ur, { fontSize: "small" }),
3680
3733
  sx: {
3681
3734
  color: "text.secondary",
3682
3735
  borderColor: "divider",
@@ -3737,9 +3790,9 @@ function ac({ blockId: e, data: t, setData: n }) {
3737
3790
  I.instanceId
3738
3791
  ))
3739
3792
  ] }),
3740
- /* @__PURE__ */ o(gt, { names: rc, value: m, onChange: b }),
3793
+ /* @__PURE__ */ o(gt, { names: oc, value: m, onChange: b }),
3741
3794
  /* @__PURE__ */ o(rn, { sx: { my: 2 } }),
3742
- /* @__PURE__ */ o(gt, { names: lc, value: m, onChange: b }),
3795
+ /* @__PURE__ */ o(gt, { names: rc, value: m, onChange: b }),
3743
3796
  /* @__PURE__ */ o(
3744
3797
  ao,
3745
3798
  {
@@ -3842,7 +3895,7 @@ function ac({ blockId: e, data: t, setData: n }) {
3842
3895
  /* @__PURE__ */ o(
3843
3896
  Ll,
3844
3897
  {
3845
- expandIcon: /* @__PURE__ */ o(la, { fontSize: "small" }),
3898
+ expandIcon: /* @__PURE__ */ o(Ai, { fontSize: "small" }),
3846
3899
  sx: {
3847
3900
  minHeight: 40,
3848
3901
  "& .MuiAccordionSummary-content": { my: 0.75 }
@@ -3987,7 +4040,7 @@ const vn = [
3987
4040
  backgroundColor: J.string().optional().nullable(),
3988
4041
  textAlign: J.enum(["left", "center", "right"]).optional().nullable()
3989
4042
  }).optional().nullable()
3990
- }), Pn = {
4043
+ }), Fn = {
3991
4044
  facebook: { zh: "Facebook", en: "Facebook" },
3992
4045
  instagram: { zh: "Instagram", en: "Instagram" },
3993
4046
  x: { zh: "X (Twitter)", en: "X (Twitter)" },
@@ -4012,7 +4065,7 @@ const vn = [
4012
4065
  "with-border-line-white": { zh: "线性·浅色", en: "Circular Outline Light" },
4013
4066
  standard: { zh: "标准", en: "Standard" }
4014
4067
  };
4015
- function sc({ data: e, setData: t }) {
4068
+ function ac({ data: e, setData: t }) {
4016
4069
  var T, U, ie;
4017
4070
  const { t: n, language: r } = Se(), [, i] = z(null), [l, a] = z(null), [c, s] = z(null), [d, u] = z(null), g = Oe(!1), f = (C) => {
4018
4071
  const p = Cl.safeParse(C);
@@ -4141,7 +4194,7 @@ function sc({ data: e, setData: t }) {
4141
4194
  l !== null && c !== null && (C.preventDefault(), C.stopPropagation(), ce(C, c));
4142
4195
  },
4143
4196
  children: S.map((C, p) => {
4144
- const F = x ? Pn[C.platform].zh : Pn[C.platform].en, X = l === p, V = c === p, me = V && d === "top", ve = V && d === "bottom", we = `social-${p}`;
4197
+ const F = x ? Fn[C.platform].zh : Fn[C.platform].en, X = l === p, V = c === p, me = V && d === "top", ve = V && d === "bottom", we = `social-${p}`;
4145
4198
  return /* @__PURE__ */ w(mt.Fragment, { children: [
4146
4199
  me && /* @__PURE__ */ o(
4147
4200
  se,
@@ -4212,7 +4265,7 @@ function sc({ data: e, setData: t }) {
4212
4265
  onMouseDown: (K) => {
4213
4266
  K.stopPropagation(), P();
4214
4267
  },
4215
- children: /* @__PURE__ */ o(zr, { fontSize: "small" })
4268
+ children: /* @__PURE__ */ o($r, { fontSize: "small" })
4216
4269
  }
4217
4270
  ),
4218
4271
  /* @__PURE__ */ o(
@@ -4224,7 +4277,7 @@ function sc({ data: e, setData: t }) {
4224
4277
  sx: { flex: 1, fontSize: "12px" },
4225
4278
  onMouseDown: (K) => K.stopPropagation(),
4226
4279
  children: vn.map((K) => {
4227
- const Re = x ? Pn[K].zh : Pn[K].en;
4280
+ const Re = x ? Fn[K].zh : Fn[K].en;
4228
4281
  return /* @__PURE__ */ o(on, { value: K, children: Re }, K);
4229
4282
  })
4230
4283
  }
@@ -4236,7 +4289,7 @@ function sc({ data: e, setData: t }) {
4236
4289
  onClick: () => E(p),
4237
4290
  sx: { color: "error.main" },
4238
4291
  onMouseDown: (K) => K.stopPropagation(),
4239
- children: /* @__PURE__ */ o(ci, { fontSize: "small" })
4292
+ children: /* @__PURE__ */ o(Ti, { fontSize: "small" })
4240
4293
  }
4241
4294
  )
4242
4295
  ] }),
@@ -4294,7 +4347,7 @@ function sc({ data: e, setData: t }) {
4294
4347
  /* @__PURE__ */ o(
4295
4348
  Me,
4296
4349
  {
4297
- startIcon: /* @__PURE__ */ o(ui, {}),
4350
+ startIcon: /* @__PURE__ */ o(_i, {}),
4298
4351
  onClick: N,
4299
4352
  variant: "outlined",
4300
4353
  size: "small",
@@ -4310,7 +4363,7 @@ function sc({ data: e, setData: t }) {
4310
4363
  /* @__PURE__ */ o(Z, { spacing: 1, sx: { mt: 1 }, children: bl.map((C) => {
4311
4364
  const p = x ? lr[C].zh : lr[C].en;
4312
4365
  return /* @__PURE__ */ o(
4313
- aa,
4366
+ Bi,
4314
4367
  {
4315
4368
  value: C,
4316
4369
  selected: m === C,
@@ -4333,7 +4386,7 @@ function sc({ data: e, setData: t }) {
4333
4386
  un,
4334
4387
  {
4335
4388
  label: n("socials.iconSize"),
4336
- iconLabel: /* @__PURE__ */ o(Pr, { sx: { fontSize: 16 } }),
4389
+ iconLabel: /* @__PURE__ */ o(zr, { sx: { fontSize: 16 } }),
4337
4390
  defaultValue: h,
4338
4391
  onChange: (C) => {
4339
4392
  f({
@@ -4364,7 +4417,7 @@ function sc({ data: e, setData: t }) {
4364
4417
  function ir(e) {
4365
4418
  return /* @__PURE__ */ o(se, { sx: { m: 3, p: 1, border: "1px dashed", borderColor: "divider" }, children: /* @__PURE__ */ o(ke, { color: "text.secondary", children: e }) });
4366
4419
  }
4367
- function cc() {
4420
+ function sc() {
4368
4421
  const { t: e } = Se(), t = Qe(), n = cn();
4369
4422
  if (!n)
4370
4423
  return ir(e("inspector.clickBlockToInspect"));
@@ -4374,28 +4427,28 @@ function cc() {
4374
4427
  const i = (c) => _e({ [n]: c }), { data: l, type: a } = r;
4375
4428
  switch (a) {
4376
4429
  case "Button":
4377
- return /* @__PURE__ */ o(js, { data: l, setData: (c) => i({ type: a, data: c }) }, n);
4430
+ return /* @__PURE__ */ o($s, { data: l, setData: (c) => i({ type: a, data: c }) }, n);
4378
4431
  case "ColumnsContainer":
4379
- return /* @__PURE__ */ o(qs, { data: l, setData: (c) => i({ type: a, data: c }) }, n);
4432
+ return /* @__PURE__ */ o(Ks, { data: l, setData: (c) => i({ type: a, data: c }) }, n);
4380
4433
  case "Container":
4381
- return /* @__PURE__ */ o(Ys, { data: l, setData: (c) => i({ type: a, data: c }) }, n);
4434
+ return /* @__PURE__ */ o(qs, { data: l, setData: (c) => i({ type: a, data: c }) }, n);
4382
4435
  case "Divider":
4383
- return /* @__PURE__ */ o(Xs, { data: l, setData: (c) => i({ type: a, data: c }) }, n);
4436
+ return /* @__PURE__ */ o(Ys, { data: l, setData: (c) => i({ type: a, data: c }) }, n);
4384
4437
  case "Heading":
4385
- return /* @__PURE__ */ o(Js, { data: l, setData: (c) => i({ type: a, data: c }) }, n);
4438
+ return /* @__PURE__ */ o(Gs, { data: l, setData: (c) => i({ type: a, data: c }) }, n);
4386
4439
  case "Html":
4387
- return /* @__PURE__ */ o(Qs, { data: l, setData: (c) => i({ type: a, data: c }) }, n);
4440
+ return /* @__PURE__ */ o(Zs, { data: l, setData: (c) => i({ type: a, data: c }) }, n);
4388
4441
  case "Image":
4389
- return /* @__PURE__ */ o(ec, { data: l, setData: (c) => i({ type: a, data: c }) }, n);
4442
+ return /* @__PURE__ */ o(Qs, { data: l, setData: (c) => i({ type: a, data: c }) }, n);
4390
4443
  case "Video":
4391
- return /* @__PURE__ */ o(tc, { data: l, setData: (c) => i({ type: a, data: c }) }, n);
4444
+ return /* @__PURE__ */ o(ec, { data: l, setData: (c) => i({ type: a, data: c }) }, n);
4392
4445
  case "EmailLayout":
4393
4446
  return /* @__PURE__ */ o(ml, { data: l, setData: (c) => i({ type: a, data: c }) }, n);
4394
4447
  case "Spacer":
4395
- return /* @__PURE__ */ o(nc, { data: l, setData: (c) => i({ type: a, data: c }) }, n);
4448
+ return /* @__PURE__ */ o(tc, { data: l, setData: (c) => i({ type: a, data: c }) }, n);
4396
4449
  case "Text":
4397
4450
  return /* @__PURE__ */ o(
4398
- ac,
4451
+ ic,
4399
4452
  {
4400
4453
  blockId: n,
4401
4454
  data: l,
@@ -4404,12 +4457,12 @@ function cc() {
4404
4457
  n
4405
4458
  );
4406
4459
  case "Socials":
4407
- return /* @__PURE__ */ o(sc, { data: l, setData: (c) => i({ type: a, data: c }) }, n);
4460
+ return /* @__PURE__ */ o(ac, { data: l, setData: (c) => i({ type: a, data: c }) }, n);
4408
4461
  default:
4409
4462
  return /* @__PURE__ */ o("pre", { children: JSON.stringify(r, null, " ") });
4410
4463
  }
4411
4464
  }
4412
- function uc() {
4465
+ function cc() {
4413
4466
  const e = Qe().root;
4414
4467
  if (!e)
4415
4468
  return /* @__PURE__ */ o("p", { children: "Block not found" });
@@ -4419,13 +4472,13 @@ function uc() {
4419
4472
  return /* @__PURE__ */ o(ml, { data: t, setData: (r) => _e({ root: { type: n, data: r } }) }, "root");
4420
4473
  }
4421
4474
  const ar = 320;
4422
- function dc() {
4423
- const { t: e } = Se(), t = ba(), n = ko(), i = Io() === "preview", l = () => {
4475
+ function uc() {
4476
+ const { t: e } = Se(), t = ha(), n = ko(), i = Io() === "preview", l = () => {
4424
4477
  switch (t) {
4425
4478
  case "block-configuration":
4426
- return /* @__PURE__ */ o(cc, {});
4479
+ return /* @__PURE__ */ o(sc, {});
4427
4480
  case "styles":
4428
- return /* @__PURE__ */ o(uc, {});
4481
+ return /* @__PURE__ */ o(cc, {});
4429
4482
  }
4430
4483
  };
4431
4484
  return /* @__PURE__ */ w(
@@ -4457,7 +4510,7 @@ function dc() {
4457
4510
  }
4458
4511
  },
4459
4512
  children: [
4460
- /* @__PURE__ */ o(se, { px: 2, children: /* @__PURE__ */ w(kr, { value: t, onChange: (a, c) => xa(c), children: [
4513
+ /* @__PURE__ */ o(se, { px: 2, children: /* @__PURE__ */ w(kr, { value: t, onChange: (a, c) => ya(c), children: [
4461
4514
  /* @__PURE__ */ o(Zt, { value: "styles", label: e("inspector.styles") }),
4462
4515
  /* @__PURE__ */ o(Zt, { value: "block-configuration", label: e("inspector.inspect") })
4463
4516
  ] }) }),
@@ -4479,7 +4532,7 @@ function dc() {
4479
4532
  }
4480
4533
  );
4481
4534
  }
4482
- const pc = {
4535
+ const dc = {
4483
4536
  welcome: () => import("./chunks/chunk-Cc3ecmGS.js").then((e) => e.w).then((e) => e.default),
4484
4537
  "one-time-password": () => import("./chunks/chunk-Cc3ecmGS.js").then((e) => e.o).then((e) => e.default),
4485
4538
  "order-ecomerce": () => import("./chunks/chunk-Cc3ecmGS.js").then((e) => e.a).then((e) => e.default),
@@ -4496,8 +4549,8 @@ const pc = {
4496
4549
  "uspeedo-mothers-day": () => import("./chunks/chunk-Cc3ecmGS.js").then((e) => e.h).then((e) => e.default),
4497
4550
  "uspeedo-shopping-cart": () => import("./chunks/chunk-Cc3ecmGS.js").then((e) => e.i).then((e) => e.default)
4498
4551
  }, no = {};
4499
- async function fc(e) {
4500
- const t = pc[e];
4552
+ async function pc(e) {
4553
+ const t = dc[e];
4501
4554
  if (!t)
4502
4555
  return sn;
4503
4556
  if (no[e])
@@ -4510,7 +4563,7 @@ function Ye({ sampleName: e, children: t }) {
4510
4563
  return /* @__PURE__ */ o(Me, { size: "small", onClick: async () => {
4511
4564
  r(!0);
4512
4565
  try {
4513
- const l = await fc(e);
4566
+ const l = await pc(e);
4514
4567
  Rt(l);
4515
4568
  } catch {
4516
4569
  } finally {
@@ -4518,7 +4571,7 @@ function Ye({ sampleName: e, children: t }) {
4518
4571
  }
4519
4572
  }, disabled: n, children: n ? "Loading..." : t });
4520
4573
  }
4521
- const mc = { p: 1.5, display: "flex", flexDirection: "column" }, gc = {
4574
+ const fc = { p: 1.5, display: "flex", flexDirection: "column" }, mc = {
4522
4575
  mb: 0.75,
4523
4576
  width: "100%",
4524
4577
  bgcolor: "cadet.200",
@@ -4553,7 +4606,7 @@ function yl({ label: e, icon: t, onClick: n, disabled: r = !1, block: i, onDragS
4553
4606
  {
4554
4607
  ref: s,
4555
4608
  sx: {
4556
- ...mc,
4609
+ ...fc,
4557
4610
  // cursor: disabled ? 'default' : 'move',
4558
4611
  outline: a ? "2px dashed rgba(0,121,204, 0.8)" : "none",
4559
4612
  outlineOffset: a ? "-2px" : "0",
@@ -4572,7 +4625,7 @@ function yl({ label: e, icon: t, onClick: n, disabled: r = !1, block: i, onDragS
4572
4625
  g.stopPropagation(), r || n();
4573
4626
  },
4574
4627
  children: [
4575
- /* @__PURE__ */ o(se, { sx: gc, children: t }),
4628
+ /* @__PURE__ */ o(se, { sx: mc, children: t }),
4576
4629
  /* @__PURE__ */ o(ke, { variant: "body2", children: e })
4577
4630
  ]
4578
4631
  }
@@ -4581,7 +4634,7 @@ function yl({ label: e, icon: t, onClick: n, disabled: r = !1, block: i, onDragS
4581
4634
  const xl = [
4582
4635
  {
4583
4636
  label: "Heading",
4584
- icon: /* @__PURE__ */ o(di, {}),
4637
+ icon: /* @__PURE__ */ o(Ni, {}),
4585
4638
  block: () => ({
4586
4639
  type: "Heading",
4587
4640
  data: {
@@ -4594,7 +4647,7 @@ const xl = [
4594
4647
  },
4595
4648
  {
4596
4649
  label: "Text",
4597
- icon: /* @__PURE__ */ o(pi, {}),
4650
+ icon: /* @__PURE__ */ o(Li, {}),
4598
4651
  block: () => ({
4599
4652
  type: "Text",
4600
4653
  data: {
@@ -4608,7 +4661,7 @@ const xl = [
4608
4661
  },
4609
4662
  {
4610
4663
  label: "Button",
4611
- icon: /* @__PURE__ */ o(fi, {}),
4664
+ icon: /* @__PURE__ */ o(Hi, {}),
4612
4665
  block: () => ({
4613
4666
  type: "Button",
4614
4667
  data: {
@@ -4622,7 +4675,7 @@ const xl = [
4622
4675
  },
4623
4676
  {
4624
4677
  label: "Image",
4625
- icon: /* @__PURE__ */ o(mi, {}),
4678
+ icon: /* @__PURE__ */ o(Fi, {}),
4626
4679
  block: () => ({
4627
4680
  type: "Image",
4628
4681
  data: {
@@ -4638,7 +4691,7 @@ const xl = [
4638
4691
  },
4639
4692
  {
4640
4693
  label: "Video",
4641
- icon: /* @__PURE__ */ o(gi, {}),
4694
+ icon: /* @__PURE__ */ o(Ui, {}),
4642
4695
  block: () => ({
4643
4696
  type: "Video",
4644
4697
  data: {
@@ -4672,7 +4725,7 @@ const xl = [
4672
4725
  // },
4673
4726
  {
4674
4727
  label: "Divider",
4675
- icon: /* @__PURE__ */ o(hi, {}),
4728
+ icon: /* @__PURE__ */ o(Ri, {}),
4676
4729
  block: () => ({
4677
4730
  type: "Divider",
4678
4731
  data: {
@@ -4685,7 +4738,7 @@ const xl = [
4685
4738
  },
4686
4739
  {
4687
4740
  label: "Spacer",
4688
- icon: /* @__PURE__ */ o(bi, {}),
4741
+ icon: /* @__PURE__ */ o(Oi, {}),
4689
4742
  block: () => ({
4690
4743
  type: "Spacer",
4691
4744
  data: {}
@@ -4693,7 +4746,7 @@ const xl = [
4693
4746
  },
4694
4747
  {
4695
4748
  label: "Socials",
4696
- icon: /* @__PURE__ */ o(Ci, {}),
4749
+ icon: /* @__PURE__ */ o(Wi, {}),
4697
4750
  block: () => ({
4698
4751
  type: "Socials",
4699
4752
  data: {
@@ -4713,7 +4766,7 @@ const xl = [
4713
4766
  },
4714
4767
  {
4715
4768
  label: "HTML",
4716
- icon: /* @__PURE__ */ o(yi, {}),
4769
+ icon: /* @__PURE__ */ o(Pi, {}),
4717
4770
  block: () => ({
4718
4771
  type: "Html",
4719
4772
  data: {
@@ -4728,7 +4781,7 @@ const xl = [
4728
4781
  },
4729
4782
  {
4730
4783
  label: "Columns",
4731
- icon: /* @__PURE__ */ o(xi, {}),
4784
+ icon: /* @__PURE__ */ o(Vi, {}),
4732
4785
  block: () => ({
4733
4786
  type: "ColumnsContainer",
4734
4787
  data: {
@@ -4744,7 +4797,7 @@ const xl = [
4744
4797
  },
4745
4798
  {
4746
4799
  label: "Container",
4747
- icon: /* @__PURE__ */ o(Si, {}),
4800
+ icon: /* @__PURE__ */ o(zi, {}),
4748
4801
  block: () => ({
4749
4802
  type: "Container",
4750
4803
  data: {
@@ -4754,7 +4807,7 @@ const xl = [
4754
4807
  }
4755
4808
  // { label: 'ProgressBar', icon: <ProgressBarOutlined />, block: () => ({}) },
4756
4809
  // { label: 'LoopContainer', icon: <ViewListOutlined />, block: () => ({}) },
4757
- ], hc = (e) => ({
4810
+ ], gc = (e) => ({
4758
4811
  Heading: "heading.name",
4759
4812
  Text: "text.name",
4760
4813
  Button: "button.name",
@@ -4767,13 +4820,13 @@ const xl = [
4767
4820
  ColumnsContainer: "columns.name",
4768
4821
  Container: "container.name"
4769
4822
  })[e] || e;
4770
- function bc({ onSelect: e, disableContainerBlocks: t = !1, containerType: n = null }) {
4823
+ function hc({ onSelect: e, disableContainerBlocks: t = !1, containerType: n = null }) {
4771
4824
  const { t: r } = Se(), i = xl.filter((l) => {
4772
4825
  const a = l.block(), c = a.type === "Container" || a.type === "ColumnsContainer";
4773
4826
  return !(t && c && (n === "Container" && a.type === "ColumnsContainer" || n === "ColumnsContainer" && a.type === "ColumnsContainer" || !n || n !== "Container" && n !== "ColumnsContainer"));
4774
4827
  });
4775
4828
  return /* @__PURE__ */ o(se, { sx: { p: 1, display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: 0.5 }, children: i.map((l, a) => {
4776
- const c = l.block(), s = hc(c.type), d = r(s);
4829
+ const c = l.block(), s = gc(c.type), d = r(s);
4777
4830
  return /* @__PURE__ */ o(
4778
4831
  yl,
4779
4832
  {
@@ -4788,11 +4841,11 @@ function bc({ onSelect: e, disableContainerBlocks: t = !1, containerType: n = nu
4788
4841
  }) });
4789
4842
  }
4790
4843
  const sr = 240;
4791
- function Cc() {
4844
+ function bc() {
4792
4845
  return `block-${Date.now()}`;
4793
4846
  }
4794
- function yc() {
4795
- const { t: e } = Se(), t = Do(), n = Qe(), r = Na(), i = Ha(), l = () => {
4847
+ function Cc() {
4848
+ const { t: e } = Se(), t = Do(), n = Qe(), r = Oa(), i = Wa(), l = () => {
4796
4849
  Rt(sn);
4797
4850
  }, a = () => {
4798
4851
  for (const [m, h] of Object.entries(n))
@@ -4807,7 +4860,7 @@ function yc() {
4807
4860
  const h = a();
4808
4861
  if (!h)
4809
4862
  return;
4810
- const b = Cc(), S = n[h];
4863
+ const b = bc(), S = n[h];
4811
4864
  if (!S || S.type !== "EmailLayout")
4812
4865
  return;
4813
4866
  const k = [...S.data.childrenIds || [], b];
@@ -4893,7 +4946,7 @@ function yc() {
4893
4946
  sx: { cursor: "default", width: "100%", justifyContent: "space-between" },
4894
4947
  children: [
4895
4948
  /* @__PURE__ */ o("span", { children: e("common.more") }),
4896
- /* @__PURE__ */ o(vi, {})
4949
+ /* @__PURE__ */ o(Mi, {})
4897
4950
  ]
4898
4951
  }
4899
4952
  )
@@ -4944,17 +4997,17 @@ function yc() {
4944
4997
  i || null,
4945
4998
  /* @__PURE__ */ w(Z, { spacing: 1, sx: { mt: r ? 0 : "16px !important" }, children: [
4946
4999
  /* @__PURE__ */ o(ke, { variant: "caption", color: "text.secondary", sx: { px: 0.75, fontWeight: 500 }, children: e("common.addContentBlocks") }),
4947
- /* @__PURE__ */ o(bc, { onSelect: f, disableContainerBlocks: !1 })
5000
+ /* @__PURE__ */ o(hc, { onSelect: f, disableContainerBlocks: !1 })
4948
5001
  ] })
4949
5002
  ] }) })
4950
5003
  }
4951
5004
  );
4952
5005
  }
4953
- const xc = ho(!1);
4954
- function Sc({ value: e, children: t }) {
4955
- return /* @__PURE__ */ o(xc.Provider, { value: e, children: t });
5006
+ const yc = ho(!1);
5007
+ function xc({ value: e, children: t }) {
5008
+ return /* @__PURE__ */ o(yc.Provider, { value: e, children: t });
4956
5009
  }
4957
- const vc = (e) => ({
5010
+ const Sc = (e) => ({
4958
5011
  Heading: "heading.name",
4959
5012
  Text: "text.name",
4960
5013
  Button: "button.name",
@@ -4967,7 +5020,7 @@ const vc = (e) => ({
4967
5020
  ColumnsContainer: "columns.name",
4968
5021
  Container: "container.name"
4969
5022
  })[e] || e;
4970
- function wc({ anchorEl: e, setAnchorEl: t, onSelect: n, disableContainerBlocks: r = !1, containerType: i = null }) {
5023
+ function vc({ anchorEl: e, setAnchorEl: t, onSelect: n, disableContainerBlocks: r = !1, containerType: i = null }) {
4971
5024
  const { t: l } = Se(), a = () => {
4972
5025
  t(null);
4973
5026
  }, c = (d) => {
@@ -4988,7 +5041,7 @@ function wc({ anchorEl: e, setAnchorEl: t, onSelect: n, disableContainerBlocks:
4988
5041
  anchorOrigin: { vertical: "bottom", horizontal: "center" },
4989
5042
  transformOrigin: { vertical: "top", horizontal: "center" },
4990
5043
  children: /* @__PURE__ */ o(se, { sx: { p: 1, display: "grid", gridTemplateColumns: "1fr 1fr 1fr 1fr" }, children: s.map((d, u) => {
4991
- const g = d.block(), f = vc(g.type), m = l(f);
5044
+ const g = d.block(), f = Sc(g.type), m = l(f);
4992
5045
  return /* @__PURE__ */ o(
4993
5046
  yl,
4994
5047
  {
@@ -5003,7 +5056,7 @@ function wc({ anchorEl: e, setAnchorEl: t, onSelect: n, disableContainerBlocks:
5003
5056
  }
5004
5057
  );
5005
5058
  }
5006
- function Ic({ buttonElement: e, onClick: t }) {
5059
+ function wc({ buttonElement: e, onClick: t }) {
5007
5060
  const [n, r] = z(!1);
5008
5061
  return Ce(() => {
5009
5062
  function i({ clientX: l, clientY: a }) {
@@ -5044,9 +5097,9 @@ function Ic({ buttonElement: e, onClick: t }) {
5044
5097
  }
5045
5098
  ) });
5046
5099
  }
5047
- function kc({ onClick: e }) {
5100
+ function Ic({ onClick: e }) {
5048
5101
  return /* @__PURE__ */ o(
5049
- Fn,
5102
+ zn,
5050
5103
  {
5051
5104
  onClick: (t) => {
5052
5105
  t.stopPropagation(), e();
@@ -5079,13 +5132,13 @@ function oo({ onSelect: e, placeholder: t, disableContainerBlocks: n = !1, conta
5079
5132
  l(a);
5080
5133
  };
5081
5134
  return /* @__PURE__ */ w(an, { children: [
5082
- /* @__PURE__ */ o("div", { ref: c, style: { position: "relative" }, children: t ? /* @__PURE__ */ o(kc, { onClick: s }) : /* @__PURE__ */ o(Ic, { buttonElement: a, onClick: s }) }),
5083
- /* @__PURE__ */ o(wc, { anchorEl: i, setAnchorEl: l, onSelect: e, disableContainerBlocks: n, containerType: r })
5135
+ /* @__PURE__ */ o("div", { ref: c, style: { position: "relative" }, children: t ? /* @__PURE__ */ o(Ic, { onClick: s }) : /* @__PURE__ */ o(wc, { buttonElement: a, onClick: s }) }),
5136
+ /* @__PURE__ */ o(vc, { anchorEl: i, setAnchorEl: l, onSelect: e, disableContainerBlocks: n, containerType: r })
5084
5137
  ] });
5085
5138
  }
5086
- let Dc = 0;
5139
+ let kc = 0;
5087
5140
  function kt() {
5088
- return `block-${Date.now()}-${++Dc}`;
5141
+ return `block-${Date.now()}-${++kc}`;
5089
5142
  }
5090
5143
  const Gt = () => window.__currentDraggedBlockId || null, Jt = () => window.__currentDraggedBlock || null;
5091
5144
  function Te(e, t) {
@@ -5396,8 +5449,8 @@ function To({ childrenIds: e, onChange: t, containerId: n, allowReplace: r = !1,
5396
5449
  return;
5397
5450
  }
5398
5451
  if (We) {
5399
- const dn = pe.currentTarget.getBoundingClientRect(), An = pe.clientX, Tn = dn.left + dn.width / 2;
5400
- a(q), s(null), An < Tn ? f("left") : f("right"), h(x);
5452
+ const dn = pe.currentTarget.getBoundingClientRect(), Tn = pe.clientX, _n = dn.left + dn.width / 2;
5453
+ a(q), s(null), Tn < _n ? f("left") : f("right"), h(x);
5401
5454
  return;
5402
5455
  }
5403
5456
  const St = pe.currentTarget.getBoundingClientRect(), Bt = pe.clientX, vt = pe.clientY, Mt = St.bottom, zt = St.width * 0.15;
@@ -5464,7 +5517,7 @@ function To({ childrenIds: e, onChange: t, containerId: n, allowReplace: r = !1,
5464
5517
  },
5465
5518
  onDragLeave: W,
5466
5519
  onDrop: (pe) => {
5467
- var vt, Mt, zt, dn, An, Tn, Bo, Mo, Oo, No, Ro, Po, Fo, zo;
5520
+ var vt, Mt, zt, dn, Tn, _n, Bo, Mo, Oo, No, Ro, Po, Fo, zo;
5468
5521
  pe.preventDefault(), pe.stopPropagation();
5469
5522
  const q = pe.dataTransfer.getData("text/plain") || Gt();
5470
5523
  if (!q || !e) {
@@ -5580,12 +5633,12 @@ function To({ childrenIds: e, onChange: t, containerId: n, allowReplace: r = !1,
5580
5633
  window.__currentDraggedBlockId = null, window.__currentDraggedBlock = null, window.__isSidebarBlock = !1, a(null), s(null), u(!1);
5581
5634
  return;
5582
5635
  }
5583
- const pn = Ne ? kt() : q, _n = ((An = tt.data.props) == null ? void 0 : An.columns) || [], Gn = Fe.columnIndex;
5636
+ const pn = Ne ? kt() : q, Bn = ((Tn = tt.data.props) == null ? void 0 : Tn.columns) || [], Gn = Fe.columnIndex;
5584
5637
  let Jn, Zn;
5585
5638
  lt === 2 || lt === 4 ? (Jn = 3, Zn = [null, null, null, null]) : Jn = lt + 1;
5586
5639
  const fn = [];
5587
5640
  for (let mn = 0; mn < lt; mn++)
5588
- mn === Gn ? (fn.push({ childrenIds: ((Tn = _n[mn]) == null ? void 0 : Tn.childrenIds) || [] }), fn.push({ childrenIds: [pn] })) : fn.push({ childrenIds: ((Bo = _n[mn]) == null ? void 0 : Bo.childrenIds) || [] });
5641
+ mn === Gn ? (fn.push({ childrenIds: ((_n = Bn[mn]) == null ? void 0 : _n.childrenIds) || [] }), fn.push({ childrenIds: [pn] })) : fn.push({ childrenIds: ((Bo = Bn[mn]) == null ? void 0 : Bo.childrenIds) || [] });
5589
5642
  (lt === 2 || lt === 4) && lt === 4 && fn.splice(3);
5590
5643
  const Lo = Ne ? { containerId: null, columnIndex: null } : Te(L, q);
5591
5644
  let Wo = L;
@@ -5625,8 +5678,8 @@ function To({ childrenIds: e, onChange: t, containerId: n, allowReplace: r = !1,
5625
5678
  return;
5626
5679
  }
5627
5680
  if (n) {
5628
- const et = Te(L, n), tt = r || et.columnIndex !== null, lt = Le ? { containerId: null, columnIndex: null } : Te(L, q), pn = lt.columnIndex !== null, _n = (v == null ? void 0 : v.type) === "Container" || (v == null ? void 0 : v.type) === "ColumnsContainer", Gn = pn && tt && lt.containerId === et.containerId && lt.columnIndex !== et.columnIndex;
5629
- if (tt && !r && (!pn || Gn) && _n) {
5681
+ const et = Te(L, n), tt = r || et.columnIndex !== null, lt = Le ? { containerId: null, columnIndex: null } : Te(L, q), pn = lt.columnIndex !== null, Bn = (v == null ? void 0 : v.type) === "Container" || (v == null ? void 0 : v.type) === "ColumnsContainer", Gn = pn && tt && lt.containerId === et.containerId && lt.columnIndex !== et.columnIndex;
5682
+ if (tt && !r && (!pn || Gn) && Bn) {
5630
5683
  window.__currentDraggedBlockId = null, window.__currentDraggedBlock = null, window.__isSidebarBlock = !1, a(null), s(null), u(!1);
5631
5684
  return;
5632
5685
  }
@@ -5789,8 +5842,8 @@ function To({ childrenIds: e, onChange: t, containerId: n, allowReplace: r = !1,
5789
5842
  ] });
5790
5843
  return i ? /* @__PURE__ */ o(se, { sx: cr, children: be }) : be;
5791
5844
  }
5792
- const Ec = [{ childrenIds: [] }], Ac = [{ childrenIds: [] }, { childrenIds: [] }], Tc = [{ childrenIds: [] }, { childrenIds: [] }, { childrenIds: [] }], _c = [{ childrenIds: [] }, { childrenIds: [] }, { childrenIds: [] }, { childrenIds: [] }];
5793
- function Bc({ style: e, props: t }) {
5845
+ const Dc = [{ childrenIds: [] }], Ec = [{ childrenIds: [] }, { childrenIds: [] }], Ac = [{ childrenIds: [] }, { childrenIds: [] }, { childrenIds: [] }], Tc = [{ childrenIds: [] }, { childrenIds: [] }, { childrenIds: [] }, { childrenIds: [] }];
5846
+ function _c({ style: e, props: t }) {
5794
5847
  var E;
5795
5848
  const n = Tt();
5796
5849
  Qe();
@@ -5803,7 +5856,7 @@ function Bc({ style: e, props: t }) {
5803
5856
  N.push({ childrenIds: [] });
5804
5857
  return N;
5805
5858
  }
5806
- return s === 1 ? Ec : s === 2 ? Ac : s === 4 ? _c : Tc;
5859
+ return s === 1 ? Dc : s === 2 ? Ec : s === 4 ? Tc : Ac;
5807
5860
  }, [i, s]), u = (N, { block: W, blockId: P, childrenIds: he }) => {
5808
5861
  var F, X, V;
5809
5862
  const be = M.getState().document, ce = be[P] && be[P].type, _ = be[n];
@@ -5872,13 +5925,13 @@ function Bc({ style: e, props: t }) {
5872
5925
  fillHeight: b || ce
5873
5926
  }
5874
5927
  ) }, W);
5875
- return b || ce ? /* @__PURE__ */ o(Sc, { value: !0, children: x }, W) : x;
5928
+ return b || ce ? /* @__PURE__ */ o(xc, { value: !0, children: x }, W) : x;
5876
5929
  }), D = {
5877
5930
  ...c && typeof c == "object" ? c : {},
5878
5931
  columnsCount: s
5879
5932
  };
5880
5933
  return /* @__PURE__ */ o(se, { sx: { color: "inherit", width: "100%", minWidth: 0, maxWidth: "100%", boxSizing: "border-box" }, children: /* @__PURE__ */ o(
5881
- Ki,
5934
+ gi,
5882
5935
  {
5883
5936
  props: D,
5884
5937
  style: e,
@@ -5886,9 +5939,9 @@ function Bc({ style: e, props: t }) {
5886
5939
  }
5887
5940
  ) });
5888
5941
  }
5889
- function Mc({ style: e, props: t }) {
5942
+ function Bc({ style: e, props: t }) {
5890
5943
  const n = (t == null ? void 0 : t.childrenIds) ?? [], r = Qe(), i = Tt();
5891
- return /* @__PURE__ */ o(Yi, { style: e, children: /* @__PURE__ */ o(
5944
+ return /* @__PURE__ */ o(bi, { style: e, children: /* @__PURE__ */ o(
5892
5945
  To,
5893
5946
  {
5894
5947
  childrenIds: n,
@@ -5921,12 +5974,12 @@ function Mc({ style: e, props: t }) {
5921
5974
  }
5922
5975
  ) });
5923
5976
  }
5924
- let Oc = 0;
5925
- function Nc() {
5926
- return `block-${Date.now()}-${++Oc}`;
5977
+ let Mc = 0;
5978
+ function Oc() {
5979
+ return `block-${Date.now()}-${++Mc}`;
5927
5980
  }
5928
- const ur = () => window.__currentDraggedBlockId || null, Rc = () => window.__currentDraggedBlock || null;
5929
- function Pc(e) {
5981
+ const ur = () => window.__currentDraggedBlockId || null, Nc = () => window.__currentDraggedBlock || null;
5982
+ function Rc(e) {
5930
5983
  switch (e ?? "MODERN_SANS") {
5931
5984
  case "MODERN_SANS":
5932
5985
  return "Helvetica, Arial, sans-serif";
@@ -5948,7 +6001,7 @@ function Pc(e) {
5948
6001
  return "monospace";
5949
6002
  }
5950
6003
  }
5951
- function Fc(e) {
6004
+ function Pc(e) {
5952
6005
  const t = e.childrenIds ?? [], n = Qe(), r = Tt();
5953
6006
  return /* @__PURE__ */ o(
5954
6007
  "div",
@@ -5971,7 +6024,7 @@ function Fc(e) {
5971
6024
  window.__currentDraggedBlockId = null, window.__currentDraggedBlock = null, window.__isSidebarBlock = !1;
5972
6025
  return;
5973
6026
  }
5974
- const u = window.__isSidebarBlock === !0, g = Rc();
6027
+ const u = window.__isSidebarBlock === !0, g = Nc();
5975
6028
  if (!g) {
5976
6029
  window.__currentDraggedBlockId = null, window.__currentDraggedBlock = null, window.__isSidebarBlock = !1;
5977
6030
  return;
@@ -5980,7 +6033,7 @@ function Fc(e) {
5980
6033
  window.__currentDraggedBlockId = null, window.__currentDraggedBlock = null, window.__isSidebarBlock = !1;
5981
6034
  return;
5982
6035
  }
5983
- const f = u ? Nc() : d;
6036
+ const f = u ? Oc() : d;
5984
6037
  if (f === r) {
5985
6038
  window.__currentDraggedBlockId = null, window.__currentDraggedBlock = null, window.__isSidebarBlock = !1;
5986
6039
  return;
@@ -6067,7 +6120,7 @@ function Fc(e) {
6067
6120
  style: {
6068
6121
  backgroundColor: e.backdropColor ?? "#F5F5F5",
6069
6122
  color: e.textColor ?? "#262626",
6070
- fontFamily: Pc(e.fontFamily),
6123
+ fontFamily: Rc(e.fontFamily),
6071
6124
  fontSize: "16px",
6072
6125
  fontWeight: "400",
6073
6126
  letterSpacing: "0.15008px",
@@ -6136,7 +6189,7 @@ function Fc(e) {
6136
6189
  }
6137
6190
  );
6138
6191
  }
6139
- function zc(e) {
6192
+ function Fc(e) {
6140
6193
  var g;
6141
6194
  const { t } = Se(), n = Tt(), r = Gr(), [i, l] = z("url"), [a, c] = z(!1), [s, d] = z(""), u = Oe(null);
6142
6195
  if (!((g = e.props) != null && g.url)) {
@@ -6216,7 +6269,7 @@ function zc(e) {
6216
6269
  size: "small",
6217
6270
  fullWidth: !0,
6218
6271
  children: [
6219
- /* @__PURE__ */ o(Kn, { fontSize: "small", sx: { mr: 0.5 } }),
6272
+ /* @__PURE__ */ o(An, { fontSize: "small", sx: { mr: 0.5 } }),
6220
6273
  t("image.url")
6221
6274
  ]
6222
6275
  }
@@ -6264,7 +6317,7 @@ function zc(e) {
6264
6317
  },
6265
6318
  onMouseDown: (y) => y.stopPropagation(),
6266
6319
  sx: { minWidth: "auto", px: 2 },
6267
- children: /* @__PURE__ */ o(Lr, { fontSize: "small" })
6320
+ children: /* @__PURE__ */ o(jr, { fontSize: "small" })
6268
6321
  }
6269
6322
  )
6270
6323
  ] }) : /* @__PURE__ */ w(Z, { spacing: 1, children: [
@@ -6282,7 +6335,7 @@ function zc(e) {
6282
6335
  Me,
6283
6336
  {
6284
6337
  variant: "outlined",
6285
- startIcon: a ? /* @__PURE__ */ o(jn, { size: 16 }) : /* @__PURE__ */ o(Ft, {}),
6338
+ startIcon: a ? /* @__PURE__ */ o(Kn, { size: 16 }) : /* @__PURE__ */ o(Ft, {}),
6286
6339
  onClick: m,
6287
6340
  onMouseDown: (y) => y.stopPropagation(),
6288
6341
  disabled: a || !r,
@@ -6303,11 +6356,11 @@ function zc(e) {
6303
6356
  onClick: (f) => {
6304
6357
  },
6305
6358
  sx: { display: "inline-block", width: "100%" },
6306
- children: /* @__PURE__ */ o(na, { ...e })
6359
+ children: /* @__PURE__ */ o(ki, { ...e })
6307
6360
  }
6308
6361
  );
6309
6362
  }
6310
- function Lc(e) {
6363
+ function zc(e) {
6311
6364
  var g, f, m;
6312
6365
  const { t } = Se(), n = Tt(), r = Jr(), [i, l] = z("url"), [a, c] = z(!1), [s, d] = z(""), u = Oe(null);
6313
6366
  if (!((g = e.props) != null && g.url)) {
@@ -6387,7 +6440,7 @@ function Lc(e) {
6387
6440
  size: "small",
6388
6441
  fullWidth: !0,
6389
6442
  children: [
6390
- /* @__PURE__ */ o(Kn, { fontSize: "small", sx: { mr: 0.5 } }),
6443
+ /* @__PURE__ */ o(An, { fontSize: "small", sx: { mr: 0.5 } }),
6391
6444
  t("video.url")
6392
6445
  ]
6393
6446
  }
@@ -6435,7 +6488,7 @@ function Lc(e) {
6435
6488
  },
6436
6489
  onMouseDown: (D) => D.stopPropagation(),
6437
6490
  sx: { minWidth: "auto", px: 2 },
6438
- children: /* @__PURE__ */ o(Lr, { fontSize: "small" })
6491
+ children: /* @__PURE__ */ o(jr, { fontSize: "small" })
6439
6492
  }
6440
6493
  )
6441
6494
  ] }) : /* @__PURE__ */ w(Z, { spacing: 1, children: [
@@ -6453,7 +6506,7 @@ function Lc(e) {
6453
6506
  Me,
6454
6507
  {
6455
6508
  variant: "outlined",
6456
- startIcon: a ? /* @__PURE__ */ o(jn, { size: 16 }) : /* @__PURE__ */ o(Ft, {}),
6509
+ startIcon: a ? /* @__PURE__ */ o(Kn, { size: 16 }) : /* @__PURE__ */ o(Ft, {}),
6457
6510
  onClick: b,
6458
6511
  onMouseDown: (D) => D.stopPropagation(),
6459
6512
  disabled: a || !r,
@@ -6481,11 +6534,11 @@ function Lc(e) {
6481
6534
  backgroundColor: ((f = e.style) == null ? void 0 : f.backgroundColor) || void 0,
6482
6535
  textAlign: ((m = e.style) == null ? void 0 : m.textAlign) || void 0
6483
6536
  },
6484
- children: /* @__PURE__ */ o(da, { ...e })
6537
+ children: /* @__PURE__ */ o(Xi, { ...e })
6485
6538
  }
6486
6539
  );
6487
6540
  }
6488
- function Wc(e) {
6541
+ function Lc(e) {
6489
6542
  var l, a;
6490
6543
  const { t } = Se(), n = ((l = e.props) == null ? void 0 : l.socials) || [], r = ((a = e.props) == null ? void 0 : a.platforms) || [];
6491
6544
  return (n.length > 0 ? n.map((c) => c.platform) : r).length === 0 ? /* @__PURE__ */ o(
@@ -6503,14 +6556,14 @@ function Wc(e) {
6503
6556
  },
6504
6557
  children: /* @__PURE__ */ o(ke, { variant: "body2", sx: { textAlign: "center", px: 2 }, children: t("socials.placeholder") })
6505
6558
  }
6506
- ) : /* @__PURE__ */ o(pa, { ...e });
6559
+ ) : /* @__PURE__ */ o(Gi, { ...e });
6507
6560
  }
6508
- function Hc(e) {
6561
+ function Wc(e) {
6509
6562
  const t = e == null ? void 0 : e.padding;
6510
6563
  if (t)
6511
6564
  return `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`;
6512
6565
  }
6513
- function Vc(e, t) {
6566
+ function Hc(e, t) {
6514
6567
  e.focus();
6515
6568
  const n = t.replace(/\r\n/g, `
6516
6569
  `);
@@ -6521,7 +6574,7 @@ function Vc(e, t) {
6521
6574
  }
6522
6575
  xt(e);
6523
6576
  }
6524
- function Uc(e, t, n) {
6577
+ function Vc(e, t, n) {
6525
6578
  const r = document;
6526
6579
  let i = null;
6527
6580
  if (r.caretPositionFromPoint) {
@@ -6550,7 +6603,7 @@ function Nt(e) {
6550
6603
  const i = document.createRange();
6551
6604
  i.selectNodeContents(n), i.collapse(!1), r.removeAllRanges(), r.addRange(i);
6552
6605
  }
6553
- function $c(e) {
6606
+ function Uc(e) {
6554
6607
  const t = window.getSelection();
6555
6608
  if (!t || t.rangeCount === 0) return;
6556
6609
  const n = t.getRangeAt(0);
@@ -6574,21 +6627,21 @@ function dr(e) {
6574
6627
  e.setAttribute("contenteditable", "false"), e.setAttribute("contentEditable", "false");
6575
6628
  }
6576
6629
  }
6577
- function jc(e) {
6630
+ function $c(e) {
6578
6631
  try {
6579
6632
  e.contentEditable = "true";
6580
6633
  } catch {
6581
6634
  }
6582
6635
  e.setAttribute("contenteditable", "true"), e.setAttribute("contentEditable", "true");
6583
6636
  }
6584
- function Wn(e) {
6637
+ function Hn(e) {
6585
6638
  const t = (e.textContent ?? "").replace(/\u200B/g, "");
6586
6639
  return !!e.querySelector("br") && t.length === 0;
6587
6640
  }
6588
6641
  function xn(e) {
6589
6642
  const t = Array.from(e.querySelectorAll("p")), n = [];
6590
6643
  for (const r of t) {
6591
- if (Wn(r)) {
6644
+ if (Hn(r)) {
6592
6645
  n.push("");
6593
6646
  continue;
6594
6647
  }
@@ -6597,7 +6650,7 @@ function xn(e) {
6597
6650
  return n.join(`
6598
6651
  `);
6599
6652
  }
6600
- function Kc(e) {
6653
+ function jc(e) {
6601
6654
  return qn(e).filter((t) => t.instanceId).map((t) => {
6602
6655
  const n = t.builtin ? "system" : "user";
6603
6656
  return {
@@ -6608,7 +6661,7 @@ function Kc(e) {
6608
6661
  };
6609
6662
  });
6610
6663
  }
6611
- function qc(e, t) {
6664
+ function Kc(e, t) {
6612
6665
  const n = window.getSelection();
6613
6666
  if (!n || (n.rangeCount === 0 && Nt(e), n.rangeCount === 0)) return null;
6614
6667
  const r = n.getRangeAt(0);
@@ -6627,7 +6680,7 @@ function qc(e, t) {
6627
6680
  const f = document.createRange();
6628
6681
  return f.setStartAfter(g), f.collapse(!0), n.removeAllRanges(), n.addRange(f), g.getAttribute("data-variable-instance-id");
6629
6682
  }
6630
- function Yc(e, t, n, r) {
6683
+ function qc(e, t, n, r) {
6631
6684
  const i = Et(e, t, n);
6632
6685
  if (!i) return null;
6633
6686
  const l = window.getSelection();
@@ -6638,15 +6691,15 @@ function Yc(e, t, n, r) {
6638
6691
  const c = document.createRange();
6639
6692
  return c.setStartAfter(a), c.collapse(!0), l.removeAllRanges(), l.addRange(c), a.getAttribute("data-variable-instance-id");
6640
6693
  }
6641
- function Xc(e) {
6694
+ function Yc(e) {
6642
6695
  var E, N, W, P, he, be, ce, _, x, T, U, ie;
6643
- const t = Tt(), n = cn(), r = Yr(), i = Xr(), l = qr(), a = Ca(), c = Oe(null), s = Oe(null), d = Oe(""), u = Oe(!1), g = Oe(null), f = Oe(null), m = n === t, { allowedUser: h, allowedBuiltin: b } = ct(
6644
- () => oc({ baseGroups: Ao, contactAttributes: l }),
6696
+ const t = Tt(), n = cn(), r = Yr(), i = Xr(), l = qr(), a = ba(), c = Oe(null), s = Oe(null), d = Oe(""), u = Oe(!1), g = Oe(null), f = Oe(null), m = n === t, { allowedUser: h, allowedBuiltin: b } = ct(
6697
+ () => nc({ baseGroups: Ao, contactAttributes: l }),
6645
6698
  [l]
6646
6699
  ), S = {
6647
6700
  ..._r(e.style ?? null),
6648
6701
  textAlign: ((E = e.style) == null ? void 0 : E.textAlign) ?? void 0,
6649
- padding: Hc(e.style ?? null),
6702
+ padding: Wc(e.style ?? null),
6650
6703
  margin: 0
6651
6704
  }, y = en(() => {
6652
6705
  if (!m) return;
@@ -6665,7 +6718,7 @@ function Xc(e) {
6665
6718
  const X = M.getState().document[t];
6666
6719
  if (!X || X.type !== "Text") return;
6667
6720
  d.current = C;
6668
- const V = Kc(C);
6721
+ const V = jc(C);
6669
6722
  _e({
6670
6723
  [t]: {
6671
6724
  ...X,
@@ -6711,7 +6764,7 @@ function Xc(e) {
6711
6764
  s.current = C.firstElementChild;
6712
6765
  const p = s.current;
6713
6766
  if (!p) return;
6714
- jc(p), p.setAttribute("data-monto-text-block-id", t), p.style.outline = "none", p.style.cursor = "text";
6767
+ $c(p), p.setAttribute("data-monto-text-block-id", t), p.style.outline = "none", p.style.cursor = "text";
6715
6768
  for (const v of Array.from(p.querySelectorAll("[data-text-variable]")))
6716
6769
  dr(v), wl(v);
6717
6770
  const F = { current: !1 }, X = (v) => {
@@ -6763,7 +6816,7 @@ function Xc(e) {
6763
6816
  }, V = () => {
6764
6817
  const v = window.getSelection();
6765
6818
  if (!v || v.rangeCount === 0) {
6766
- yt(null), Bn(null);
6819
+ yt(null), Mn(null);
6767
6820
  return;
6768
6821
  }
6769
6822
  const ee = X(v) ?? v.getRangeAt(0);
@@ -6771,16 +6824,16 @@ function Xc(e) {
6771
6824
  if (ee.collapsed) {
6772
6825
  yt(null);
6773
6826
  const { start: Q } = tn(p, ee);
6774
- Bn({ blockId: t, offset: Q });
6827
+ Mn({ blockId: t, offset: Q });
6775
6828
  return;
6776
6829
  }
6777
6830
  const { start: L, end: G } = tn(p, ee), ae = Dt(p), re = Math.max(0, Math.min(L, G)), ue = Math.min(ae.length, Math.max(L, G));
6778
6831
  if (re >= ue) {
6779
- yt(null), Bn({ blockId: t, offset: re });
6832
+ yt(null), Mn({ blockId: t, offset: re });
6780
6833
  return;
6781
6834
  }
6782
6835
  const te = Ot(p, re);
6783
- hn({ blockId: t, text: ae, styleSnapshot: te }), yt({ blockId: t, start: re, end: ue }), Bn({ blockId: t, offset: ue });
6836
+ hn({ blockId: t, text: ae, styleSnapshot: te }), yt({ blockId: t, start: re, end: ue }), Mn({ blockId: t, offset: ue });
6784
6837
  }, me = () => {
6785
6838
  f.current = null;
6786
6839
  const v = Dt(p), Y = window.getSelection();
@@ -6815,7 +6868,7 @@ function Xc(e) {
6815
6868
  }
6816
6869
  } catch {
6817
6870
  }
6818
- Vc(p, Y);
6871
+ Hc(p, Y);
6819
6872
  }, Re = (v) => {
6820
6873
  var ee;
6821
6874
  v.preventDefault();
@@ -6930,7 +6983,7 @@ function Xc(e) {
6930
6983
  try {
6931
6984
  if (te && te.rangeCount > 0) {
6932
6985
  const ne = te.getRangeAt(0);
6933
- p.contains(ne.startContainer) && p.contains(ne.endContainer) && (Q = ((ae = ((H) => H.nodeType === Node.ELEMENT_NODE ? H : H.parentElement)(ne.startContainer)) == null ? void 0 : ae.closest("p")) ?? null, Q && (Ie = Wn(Q)));
6986
+ p.contains(ne.startContainer) && p.contains(ne.endContainer) && (Q = ((ae = ((H) => H.nodeType === Node.ELEMENT_NODE ? H : H.parentElement)(ne.startContainer)) == null ? void 0 : ae.closest("p")) ?? null, Q && (Ie = Hn(Q)));
6934
6987
  }
6935
6988
  } catch {
6936
6989
  Q = null, Ie = !1;
@@ -6973,9 +7026,9 @@ function Xc(e) {
6973
7026
  const ge = ((O = Q.nextElementSibling) == null ? void 0 : O.tagName) === "P" ? Q.nextElementSibling : null;
6974
7027
  if (ge && ne) {
6975
7028
  try {
6976
- if (!Ie && Wn(ge)) {
7029
+ if (!Ie && Hn(ge)) {
6977
7030
  const We = (($ = ge.nextElementSibling) == null ? void 0 : $.tagName) === "P" ? ge.nextElementSibling : null;
6978
- We && Wn(We) && ((j = We.parentElement) == null || j.removeChild(We), xt(p));
7031
+ We && Hn(We) && ((j = We.parentElement) == null || j.removeChild(We), xt(p));
6979
7032
  }
6980
7033
  } catch {
6981
7034
  }
@@ -7107,7 +7160,7 @@ function Xc(e) {
7107
7160
  return;
7108
7161
  }
7109
7162
  }
7110
- p.focus({ preventScroll: !0 }), Uc(p, v.clientX, v.clientY) || Sl(p), $c(p), yt(null), requestAnimationFrame(V);
7163
+ p.focus({ preventScroll: !0 }), Vc(p, v.clientX, v.clientY) || Sl(p), Uc(p), yt(null), requestAnimationFrame(V);
7111
7164
  };
7112
7165
  return document.addEventListener("selectionchange", ve), p.addEventListener("blur", D), p.addEventListener("input", we), p.addEventListener("paste", K), p.addEventListener("copy", Re), p.addEventListener("keydown", je), p.addEventListener("beforeinput", _t), p.addEventListener("mousedown", pe), p.addEventListener("mouseup", q), p.addEventListener("click", ht), () => {
7113
7166
  document.removeEventListener("selectionchange", ve), p.removeEventListener("blur", D), p.removeEventListener("input", we), p.removeEventListener("paste", K), p.removeEventListener("copy", Re), p.removeEventListener("keydown", je), p.removeEventListener("beforeinput", _t), p.removeEventListener("mousedown", pe), p.removeEventListener("mouseup", q), p.removeEventListener("click", ht), p.contentEditable = "false", p.style.cursor = "", s.current = null, f.current != null && (cancelAnimationFrame(f.current), f.current = null);
@@ -7129,7 +7182,7 @@ function Xc(e) {
7129
7182
  De && oe && (oe.removeAllRanges(), oe.addRange(De));
7130
7183
  } else
7131
7184
  Nt(p);
7132
- const G = qc(p, C.token), ae = M.getState().document[t], re = ((q = (pe = ae == null ? void 0 : ae.data) == null ? void 0 : pe.props) == null ? void 0 : q.variableDefaults) ?? null, { variableDefaults: ue } = bn(p, re), te = C.defaultValue ?? "";
7185
+ const G = Kc(p, C.token), ae = M.getState().document[t], re = ((q = (pe = ae == null ? void 0 : ae.data) == null ? void 0 : pe.props) == null ? void 0 : q.variableDefaults) ?? null, { variableDefaults: ue } = bn(p, re), te = C.defaultValue ?? "";
7133
7186
  G && te !== "" && (ue[G] = te);
7134
7187
  const Q = Cn(p), Ie = xn(p);
7135
7188
  k(Q, Ie, ue), Sn(), Yt();
@@ -7139,7 +7192,7 @@ function Xc(e) {
7139
7192
  hn({ blockId: t, text: ne, styleSnapshot: A });
7140
7193
  return;
7141
7194
  } else if (C.kind === "replaceVariable") {
7142
- const G = Yc(p, C.start, C.end, C.token), ae = M.getState().document[t], re = ((Y = (v = ae == null ? void 0 : ae.data) == null ? void 0 : v.props) == null ? void 0 : Y.variableDefaults) ?? null, { variableDefaults: ue } = bn(p, re), te = C.defaultValue ?? "";
7195
+ const G = qc(p, C.start, C.end, C.token), ae = M.getState().document[t], re = ((Y = (v = ae == null ? void 0 : ae.data) == null ? void 0 : v.props) == null ? void 0 : Y.variableDefaults) ?? null, { variableDefaults: ue } = bn(p, re), te = C.defaultValue ?? "";
7143
7196
  G && te !== "" && (ue[G] = te);
7144
7197
  const Q = Cn(p), Ie = xn(p);
7145
7198
  k(Q, Ie, ue), Sn(), Yt();
@@ -7158,10 +7211,10 @@ function Xc(e) {
7158
7211
  return;
7159
7212
  }
7160
7213
  const re = window.getSelection();
7161
- re == null || re.removeAllRanges(), re == null || re.addRange(ae), C.kind === "style" ? ss(p, G.start, G.end, {
7214
+ re == null || re.removeAllRanges(), re == null || re.addRange(ae), C.kind === "style" ? as(p, G.start, G.end, {
7162
7215
  patch: C.style,
7163
7216
  global: e.style ?? null
7164
- }) : cs(p, G.start, G.end, C.href, C.targetBlank);
7217
+ }) : ss(p, G.start, G.end, C.href, C.targetBlank);
7165
7218
  }
7166
7219
  xt(p);
7167
7220
  const F = M.getState().document[t], X = ((L = (ee = F == null ? void 0 : F.data) == null ? void 0 : ee.props) == null ? void 0 : L.variableDefaults) ?? null, { variableDefaults: V } = bn(p, X), me = Cn(p), ve = xn(p);
@@ -7175,7 +7228,7 @@ function Xc(e) {
7175
7228
  }
7176
7229
  }, [a == null ? void 0 : a.id, r, i, t, k, e.style]), m ? /* @__PURE__ */ o("div", { style: S, children: /* @__PURE__ */ o("div", { ref: c, style: { margin: 0, padding: 0 } }, t) }) : /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(Xl, { ...e }) });
7177
7230
  }
7178
- function Gc(e) {
7231
+ function Xc(e) {
7179
7232
  const t = Tt(), n = cn(), r = Oe(null), i = Oe(null), l = Oe(!1), a = n === t, c = en((s) => {
7180
7233
  const d = M.getState().document[t];
7181
7234
  d && d.type === "Heading" && _e({
@@ -7223,9 +7276,9 @@ function Gc(e) {
7223
7276
  };
7224
7277
  }
7225
7278
  } else !a && i.current && (i.current.contentEditable = "false", i.current.style.cursor = "", i.current = null, l.current = !1);
7226
- }, [a, t, c]), /* @__PURE__ */ o(se, { ref: r, children: /* @__PURE__ */ o(Ji, { ...e }) });
7279
+ }, [a, t, c]), /* @__PURE__ */ o(se, { ref: r, children: /* @__PURE__ */ o(xi, { ...e }) });
7227
7280
  }
7228
- function Jc(e) {
7281
+ function Gc(e) {
7229
7282
  const t = Tt(), n = cn(), r = Oe(null), i = Oe(null), l = Oe(!1), a = n === t, c = en((s) => {
7230
7283
  const d = M.getState().document[t];
7231
7284
  d && d.type === "Button" && _e({
@@ -7296,7 +7349,7 @@ function Jc(e) {
7296
7349
  } else !a && i.current && (i.current.contentEditable = "false", i.current.style.cursor = "", i.current = null, l.current = !1, r.current && (r.current.contentEditable = "false", r.current.style.cursor = ""));
7297
7350
  }, [a, t, c]), /* @__PURE__ */ o(se, { ref: r, children: /* @__PURE__ */ o(Gl, { ...e }) });
7298
7351
  }
7299
- function Zc() {
7352
+ function Jc() {
7300
7353
  return `block-${Date.now()}-${Math.random().toString(36).slice(2, 11)}`;
7301
7354
  }
7302
7355
  function go(e, t) {
@@ -7304,7 +7357,7 @@ function go(e, t) {
7304
7357
  const n = e[t];
7305
7358
  if (!n)
7306
7359
  return { newDocument: e, newBlockId: t };
7307
- const r = Zc(), i = JSON.parse(JSON.stringify(n));
7360
+ const r = Jc(), i = JSON.parse(JSON.stringify(n));
7308
7361
  let l = { ...e };
7309
7362
  if (i.type === "Container" && ((c = (a = i.data) == null ? void 0 : a.props) != null && c.childrenIds)) {
7310
7363
  const u = [];
@@ -7344,7 +7397,7 @@ function pr(e, t) {
7344
7397
  }
7345
7398
  return { containerId: null, columnIndex: null };
7346
7399
  }
7347
- const Qc = {
7400
+ const Zc = {
7348
7401
  position: "absolute",
7349
7402
  bottom: -12,
7350
7403
  left: -50,
@@ -7353,7 +7406,7 @@ const Qc = {
7353
7406
  paddingY: 0.5,
7354
7407
  zIndex: "fab"
7355
7408
  };
7356
- function eu({ blockId: e }) {
7409
+ function Qc({ blockId: e }) {
7357
7410
  const t = Qe(), n = pr(t, e), r = mt.useMemo(() => {
7358
7411
  var u, g;
7359
7412
  if (!n.containerId)
@@ -7580,19 +7633,19 @@ function eu({ blockId: e }) {
7580
7633
  }
7581
7634
  Rt(d), nt(e);
7582
7635
  };
7583
- return /* @__PURE__ */ o(Co, { sx: Qc, onClick: (c) => c.stopPropagation(), children: /* @__PURE__ */ w(Z, { children: [
7584
- r.canMoveUp && /* @__PURE__ */ o(Ze, { title: "Move up", placement: "left", arrow: !0, children: /* @__PURE__ */ o($e, { onClick: () => a("up"), sx: { color: "text.primary" }, children: /* @__PURE__ */ o(wi, { fontSize: "small" }) }) }),
7585
- r.canMoveDown && /* @__PURE__ */ o(Ze, { title: "Move down", placement: "left", arrow: !0, children: /* @__PURE__ */ o($e, { onClick: () => a("down"), sx: { color: "text.primary" }, children: /* @__PURE__ */ o(Ii, { fontSize: "small" }) }) }),
7636
+ return /* @__PURE__ */ o(Co, { sx: Zc, onClick: (c) => c.stopPropagation(), children: /* @__PURE__ */ w(Z, { children: [
7637
+ r.canMoveUp && /* @__PURE__ */ o(Ze, { title: "Move up", placement: "left", arrow: !0, children: /* @__PURE__ */ o($e, { onClick: () => a("up"), sx: { color: "text.primary" }, children: /* @__PURE__ */ o(Zi, { fontSize: "small" }) }) }),
7638
+ r.canMoveDown && /* @__PURE__ */ o(Ze, { title: "Move down", placement: "left", arrow: !0, children: /* @__PURE__ */ o($e, { onClick: () => a("down"), sx: { color: "text.primary" }, children: /* @__PURE__ */ o(Ji, { fontSize: "small" }) }) }),
7586
7639
  (r.canMoveUp || r.canMoveDown) && /* @__PURE__ */ o(rn, { sx: { my: 1, mx: 1 } }),
7587
- e !== "root" && /* @__PURE__ */ o(Ze, { title: "Duplicate", placement: "left", arrow: !0, children: /* @__PURE__ */ o($e, { onClick: l, sx: { color: "text.primary" }, children: /* @__PURE__ */ o(ki, { sx: { fontSize: "16px" } }) }) }),
7588
- /* @__PURE__ */ o(Ze, { title: "Delete", placement: "left", arrow: !0, children: /* @__PURE__ */ o($e, { onClick: i, sx: { color: "text.primary" }, children: /* @__PURE__ */ o(Di, { color: "error", fontSize: "small" }) }) })
7640
+ e !== "root" && /* @__PURE__ */ o(Ze, { title: "Duplicate", placement: "left", arrow: !0, children: /* @__PURE__ */ o($e, { onClick: l, sx: { color: "text.primary" }, children: /* @__PURE__ */ o(Qi, { sx: { fontSize: "16px" } }) }) }),
7641
+ /* @__PURE__ */ o(Ze, { title: "Delete", placement: "left", arrow: !0, children: /* @__PURE__ */ o($e, { onClick: i, sx: { color: "text.primary" }, children: /* @__PURE__ */ o(ea, { color: "error", fontSize: "small" }) }) })
7589
7642
  ] }) });
7590
7643
  }
7591
7644
  function st({ children: e }) {
7592
7645
  const t = cn(), [n, r] = z(!1), [i, l] = z(!1), [a, c] = z(!1), [s, d] = z(!1), u = Tt(), g = Oe(!1), m = M.getState().document[u], h = (m == null ? void 0 : m.type) === "Container" || (m == null ? void 0 : m.type) === "ColumnsContainer";
7593
7646
  let b;
7594
7647
  a ? b = "2px dashed rgba(0,121,204, 0.8)" : t === u ? b = "2px solid rgba(0,121,204, 1)" : n && (b = "2px solid rgba(0,121,204, 0.3)");
7595
- const S = () => t !== u || a ? null : /* @__PURE__ */ o(eu, { blockId: u }), y = (E) => {
7648
+ const S = () => t !== u || a ? null : /* @__PURE__ */ o(Qc, { blockId: u }), y = (E) => {
7596
7649
  if (!g.current) {
7597
7650
  E.preventDefault();
7598
7651
  return;
@@ -7684,7 +7737,7 @@ function st({ children: e }) {
7684
7737
  borderColor: "primary.main"
7685
7738
  }
7686
7739
  },
7687
- children: /* @__PURE__ */ o(zr, { fontSize: "small" })
7740
+ children: /* @__PURE__ */ o($r, { fontSize: "small" })
7688
7741
  }
7689
7742
  ),
7690
7743
  S(),
@@ -7693,80 +7746,80 @@ function st({ children: e }) {
7693
7746
  }
7694
7747
  );
7695
7748
  }
7696
- const Il = sa({
7749
+ const Il = Ki({
7697
7750
  Button: {
7698
7751
  schema: Or,
7699
- Component: (e) => /* @__PURE__ */ o(st, { children: /* @__PURE__ */ o(Jc, { ...e }) })
7752
+ Component: (e) => /* @__PURE__ */ o(st, { children: /* @__PURE__ */ o(Gc, { ...e }) })
7700
7753
  },
7701
7754
  Container: {
7702
7755
  schema: pl,
7703
- Component: (e) => /* @__PURE__ */ o(st, { children: /* @__PURE__ */ o(Mc, { ...e }) })
7756
+ Component: (e) => /* @__PURE__ */ o(st, { children: /* @__PURE__ */ o(Bc, { ...e }) })
7704
7757
  },
7705
7758
  ColumnsContainer: {
7706
7759
  schema: Xn,
7707
- Component: (e) => /* @__PURE__ */ o(st, { children: /* @__PURE__ */ o(Bc, { ...e }) })
7760
+ Component: (e) => /* @__PURE__ */ o(st, { children: /* @__PURE__ */ o(_c, { ...e }) })
7708
7761
  },
7709
7762
  Heading: {
7710
- schema: Vr,
7711
- Component: (e) => /* @__PURE__ */ o(st, { children: /* @__PURE__ */ o(Gc, { ...e }) })
7763
+ schema: Lr,
7764
+ Component: (e) => /* @__PURE__ */ o(st, { children: /* @__PURE__ */ o(Xc, { ...e }) })
7712
7765
  },
7713
7766
  Html: {
7714
- schema: Ur,
7715
- Component: (e) => /* @__PURE__ */ o(st, { children: /* @__PURE__ */ o(Zi, { ...e }) })
7767
+ schema: Wr,
7768
+ Component: (e) => /* @__PURE__ */ o(st, { children: /* @__PURE__ */ o(Si, { ...e }) })
7716
7769
  },
7717
7770
  Image: {
7718
- schema: $r,
7719
- Component: (e) => /* @__PURE__ */ o(st, { children: /* @__PURE__ */ o(zc, { ...e }) })
7771
+ schema: Hr,
7772
+ Component: (e) => /* @__PURE__ */ o(st, { children: /* @__PURE__ */ o(Fc, { ...e }) })
7720
7773
  },
7721
7774
  Video: {
7722
7775
  schema: hl,
7723
- Component: (e) => /* @__PURE__ */ o(st, { children: /* @__PURE__ */ o(Lc, { ...e }) })
7776
+ Component: (e) => /* @__PURE__ */ o(st, { children: /* @__PURE__ */ o(zc, { ...e }) })
7724
7777
  },
7725
7778
  Text: {
7726
7779
  schema: Br,
7727
- Component: (e) => /* @__PURE__ */ o(st, { children: /* @__PURE__ */ o(Xc, { ...e }) })
7780
+ Component: (e) => /* @__PURE__ */ o(st, { children: /* @__PURE__ */ o(Yc, { ...e }) })
7728
7781
  },
7729
7782
  EmailLayout: {
7730
7783
  schema: fl,
7731
- Component: (e) => /* @__PURE__ */ o(Fc, { ...e })
7784
+ Component: (e) => /* @__PURE__ */ o(Pc, { ...e })
7732
7785
  },
7733
7786
  Spacer: {
7734
- schema: jr,
7735
- Component: (e) => /* @__PURE__ */ o(st, { children: /* @__PURE__ */ o(ra, { ...e }) })
7787
+ schema: Vr,
7788
+ Component: (e) => /* @__PURE__ */ o(st, { children: /* @__PURE__ */ o(Ei, { ...e }) })
7736
7789
  },
7737
7790
  Divider: {
7738
- schema: Hr,
7739
- Component: (e) => /* @__PURE__ */ o(st, { children: /* @__PURE__ */ o(Xi, { ...e }) })
7791
+ schema: Fr,
7792
+ Component: (e) => /* @__PURE__ */ o(st, { children: /* @__PURE__ */ o(Ci, { ...e }) })
7740
7793
  },
7741
7794
  Socials: {
7742
7795
  schema: Cl,
7743
- Component: (e) => /* @__PURE__ */ o(st, { children: /* @__PURE__ */ o(Wc, { ...e }) })
7796
+ Component: (e) => /* @__PURE__ */ o(st, { children: /* @__PURE__ */ o(Lc, { ...e }) })
7744
7797
  }
7745
- }), tu = ca(Il), nu = ua(Il), ou = J.record(J.string(), nu), kl = ho(null), Tt = () => hr(kl);
7798
+ }), eu = qi(Il), tu = Yi(Il), nu = J.record(J.string(), tu), kl = ho(null), Tt = () => hr(kl);
7746
7799
  function Dl({ id: e }) {
7747
7800
  const n = Qe()[e];
7748
7801
  if (!n)
7749
7802
  throw new Error("Could not find block");
7750
- return /* @__PURE__ */ o(kl.Provider, { value: e, children: /* @__PURE__ */ o(tu, { ...n }) });
7803
+ return /* @__PURE__ */ o(kl.Provider, { value: e, children: /* @__PURE__ */ o(eu, { ...n }) });
7751
7804
  }
7752
- function ru() {
7805
+ function ou() {
7753
7806
  const e = ko(), t = () => {
7754
- va();
7807
+ Sa();
7755
7808
  };
7756
- return e ? /* @__PURE__ */ o($e, { onClick: t, children: /* @__PURE__ */ o(Ei, { fontSize: "small" }) }) : /* @__PURE__ */ o($e, { onClick: t, children: /* @__PURE__ */ o(Ai, { fontSize: "small" }) });
7809
+ return e ? /* @__PURE__ */ o($e, { onClick: t, children: /* @__PURE__ */ o(na, { fontSize: "small" }) }) : /* @__PURE__ */ o($e, { onClick: t, children: /* @__PURE__ */ o(ta, { fontSize: "small" }) });
7810
+ }
7811
+ function ru() {
7812
+ return Do() ? /* @__PURE__ */ o(oa, { fontSize: "small" }) : /* @__PURE__ */ o(ra, { fontSize: "small" });
7757
7813
  }
7758
7814
  function lu() {
7759
- return Do() ? /* @__PURE__ */ o(Ti, { fontSize: "small" }) : /* @__PURE__ */ o(_i, { fontSize: "small" });
7815
+ const e = ru();
7816
+ return /* @__PURE__ */ o($e, { onClick: va, children: e });
7760
7817
  }
7761
7818
  function iu() {
7762
- const e = lu();
7763
- return /* @__PURE__ */ o($e, { onClick: wa, children: e });
7764
- }
7765
- function au() {
7766
7819
  const { t: e } = Se(), t = Qe(), n = ct(() => `data:text/plain,${encodeURIComponent(JSON.stringify(t, null, " "))}`, [t]);
7767
- return /* @__PURE__ */ o(Ze, { title: e("common.downloadJson"), arrow: !0, children: /* @__PURE__ */ o($e, { href: n, download: "emailTemplate.json", children: /* @__PURE__ */ o(Bi, { fontSize: "small" }) }) });
7820
+ return /* @__PURE__ */ o(Ze, { title: e("common.downloadJson"), arrow: !0, children: /* @__PURE__ */ o($e, { href: n, download: "emailTemplate.json", children: /* @__PURE__ */ o(la, { fontSize: "small" }) }) });
7768
7821
  }
7769
- let ut = null, ro = null, lo = null, En = null, su = !1, io = !1;
7822
+ let ut = null, ro = null, lo = null, En = null, au = !1, io = !1;
7770
7823
  async function _o() {
7771
7824
  if (!(ut || io) && !(typeof window > "u")) {
7772
7825
  io = !0;
@@ -7777,7 +7830,7 @@ async function _o() {
7777
7830
  const n = await import("react-syntax-highlighter/dist/esm/languages/hljs/xml");
7778
7831
  lo = n.default || n;
7779
7832
  const r = await import("react-syntax-highlighter/dist/esm/styles/hljs/github");
7780
- En = r.default || r, ut != null && ut.registerLanguage && (ro && ut.registerLanguage("json", ro), lo && ut.registerLanguage("html", lo), su = !0);
7833
+ En = r.default || r, ut != null && ut.registerLanguage && (ro && ut.registerLanguage("json", ro), lo && ut.registerLanguage("html", lo), au = !0);
7781
7834
  } catch {
7782
7835
  } finally {
7783
7836
  io = !1;
@@ -7799,7 +7852,7 @@ const fr = (e) => {
7799
7852
  `);
7800
7853
  }
7801
7854
  return e;
7802
- }, cu = (e) => {
7855
+ }, su = (e) => {
7803
7856
  var i, l;
7804
7857
  const t = e.split(`
7805
7858
  `), n = [], r = [];
@@ -7830,12 +7883,12 @@ const fr = (e) => {
7830
7883
  return r.join(`
7831
7884
  `);
7832
7885
  };
7833
- function uu(e) {
7886
+ function cu(e) {
7834
7887
  try {
7835
7888
  if (e.includes(`
7836
7889
  `) && e.trim().length > 0) {
7837
7890
  let a = fr(e);
7838
- return a = cu(a), a;
7891
+ return a = su(a), a;
7839
7892
  }
7840
7893
  let t = e.replace(/></g, `>
7841
7894
  <`).replace(/\n\s*\n/g, `
@@ -7858,7 +7911,7 @@ function uu(e) {
7858
7911
  return e;
7859
7912
  }
7860
7913
  }
7861
- function du(e) {
7914
+ function uu(e) {
7862
7915
  try {
7863
7916
  const t = JSON.parse(e);
7864
7917
  return JSON.stringify(t, null, 2);
@@ -7866,9 +7919,9 @@ function du(e) {
7866
7919
  return e;
7867
7920
  }
7868
7921
  }
7869
- async function pu(e) {
7922
+ async function du(e) {
7870
7923
  await _o();
7871
- const t = uu(e);
7924
+ const t = cu(e);
7872
7925
  return !ut || !En ? /* @__PURE__ */ o("pre", { style: { margin: 0, padding: 16, whiteSpace: "pre-wrap" }, children: t }) : /* @__PURE__ */ o(
7873
7926
  ut,
7874
7927
  {
@@ -7882,9 +7935,9 @@ async function pu(e) {
7882
7935
  }
7883
7936
  );
7884
7937
  }
7885
- async function fu(e) {
7938
+ async function pu(e) {
7886
7939
  await _o();
7887
- const t = du(e);
7940
+ const t = uu(e);
7888
7941
  return !ut || !En ? /* @__PURE__ */ o("pre", { style: { margin: 0, padding: 16, whiteSpace: "pre-wrap" }, children: t }) : /* @__PURE__ */ o(
7889
7942
  ut,
7890
7943
  {
@@ -7903,10 +7956,10 @@ function El({ type: e, value: t }) {
7903
7956
  return Ce(() => {
7904
7957
  switch (e) {
7905
7958
  case "html":
7906
- pu(t).then(r);
7959
+ du(t).then(r);
7907
7960
  return;
7908
7961
  case "json":
7909
- fu(t).then(r);
7962
+ pu(t).then(r);
7910
7963
  return;
7911
7964
  }
7912
7965
  }, [t, e]), n === null ? null : /* @__PURE__ */ o(
@@ -7920,7 +7973,7 @@ function El({ type: e, value: t }) {
7920
7973
  }
7921
7974
  );
7922
7975
  }
7923
- function mu() {
7976
+ function fu() {
7924
7977
  const e = Qe(), [t, n] = z("");
7925
7978
  return Ce(() => {
7926
7979
  try {
@@ -7938,10 +7991,10 @@ function mr(e) {
7938
7991
  } catch {
7939
7992
  return { error: "Invalid json" };
7940
7993
  }
7941
- const n = ou.safeParse(t);
7994
+ const n = nu.safeParse(t);
7942
7995
  return n.success ? n.data.root ? { data: n.data } : { error: 'Missing "root" node' } : { error: "Invalid JSON schema" };
7943
7996
  }
7944
- function gu({ onClose: e }) {
7997
+ function mu({ onClose: e }) {
7945
7998
  const { t } = Se(), [n, r] = z(""), [i, l] = z(null), a = (s) => {
7946
7999
  const d = s.currentTarget.value;
7947
8000
  r(d);
@@ -7986,19 +8039,19 @@ function gu({ onClose: e }) {
7986
8039
  )
7987
8040
  ] });
7988
8041
  }
7989
- function hu() {
8042
+ function gu() {
7990
8043
  const { t: e } = Se(), [t, n] = z(!1);
7991
8044
  let r = null;
7992
- return t && (r = /* @__PURE__ */ o(gu, { onClose: () => n(!1) })), /* @__PURE__ */ w(an, { children: [
7993
- /* @__PURE__ */ o(Ze, { title: e("common.importJson"), arrow: !0, children: /* @__PURE__ */ o($e, { onClick: () => n(!0), children: /* @__PURE__ */ o(Mi, { fontSize: "small" }) }) }),
8045
+ return t && (r = /* @__PURE__ */ o(mu, { onClose: () => n(!1) })), /* @__PURE__ */ w(an, { children: [
8046
+ /* @__PURE__ */ o(Ze, { title: e("common.importJson"), arrow: !0, children: /* @__PURE__ */ o($e, { onClick: () => n(!0), children: /* @__PURE__ */ o(ia, { fontSize: "small" }) }) }),
7994
8047
  r
7995
8048
  ] });
7996
8049
  }
7997
- function bu() {
8050
+ function hu() {
7998
8051
  const e = Qe(), t = ct(() => JSON.stringify(e, null, " "), [e]);
7999
8052
  return /* @__PURE__ */ o(El, { type: "json", value: t });
8000
8053
  }
8001
- function Cu() {
8054
+ function bu() {
8002
8055
  const { t: e } = Se(), t = Io(), n = Zr();
8003
8056
  return /* @__PURE__ */ w(kr, { value: t, onChange: (i, l) => {
8004
8057
  switch (l) {
@@ -8016,34 +8069,34 @@ function Cu() {
8016
8069
  Zt,
8017
8070
  {
8018
8071
  value: "editor",
8019
- label: /* @__PURE__ */ o(Ze, { title: e("tabs.edit"), arrow: !0, children: /* @__PURE__ */ o(Oi, { fontSize: "small" }) })
8072
+ label: /* @__PURE__ */ o(Ze, { title: e("tabs.edit"), arrow: !0, children: /* @__PURE__ */ o(sa, { fontSize: "small" }) })
8020
8073
  }
8021
8074
  ),
8022
8075
  /* @__PURE__ */ o(
8023
8076
  Zt,
8024
8077
  {
8025
8078
  value: "preview",
8026
- label: /* @__PURE__ */ o(Ze, { title: e("tabs.preview"), arrow: !0, children: /* @__PURE__ */ o(Ni, { fontSize: "small" }) })
8079
+ label: /* @__PURE__ */ o(Ze, { title: e("tabs.preview"), arrow: !0, children: /* @__PURE__ */ o(ca, { fontSize: "small" }) })
8027
8080
  }
8028
8081
  ),
8029
8082
  /* @__PURE__ */ o(
8030
8083
  Zt,
8031
8084
  {
8032
8085
  value: "html",
8033
- label: /* @__PURE__ */ o(Ze, { title: e("tabs.htmlOutput"), arrow: !0, children: /* @__PURE__ */ o(Ri, { fontSize: "small" }) })
8086
+ label: /* @__PURE__ */ o(Ze, { title: e("tabs.htmlOutput"), arrow: !0, children: /* @__PURE__ */ o(aa, { fontSize: "small" }) })
8034
8087
  }
8035
8088
  ),
8036
8089
  n && /* @__PURE__ */ o(
8037
8090
  Zt,
8038
8091
  {
8039
8092
  value: "json",
8040
- label: /* @__PURE__ */ o(Ze, { title: e("tabs.jsonOutput"), arrow: !0, children: /* @__PURE__ */ o(Fr, { fontSize: "small" }) })
8093
+ label: /* @__PURE__ */ o(Ze, { title: e("tabs.jsonOutput"), arrow: !0, children: /* @__PURE__ */ o(Ur, { fontSize: "small" }) })
8041
8094
  }
8042
8095
  )
8043
8096
  ] });
8044
8097
  }
8045
- function yu() {
8046
- const { t: e } = Se(), t = Aa();
8098
+ function Cu() {
8099
+ const { t: e } = Se(), t = Ea();
8047
8100
  return /* @__PURE__ */ o(
8048
8101
  ke,
8049
8102
  {
@@ -8064,17 +8117,17 @@ function yu() {
8064
8117
  }
8065
8118
  );
8066
8119
  }
8120
+ function yu() {
8121
+ const { t: e } = Se(), t = za();
8122
+ return /* @__PURE__ */ o(Ze, { title: e("common.redoTooltip"), arrow: !0, children: /* @__PURE__ */ o("span", { children: /* @__PURE__ */ o($e, { onClick: el, disabled: !t, size: "small", children: /* @__PURE__ */ o(ua, { fontSize: "small" }) }) }) });
8123
+ }
8067
8124
  function xu() {
8068
- const { t: e } = Se(), t = La();
8069
- return /* @__PURE__ */ o(Ze, { title: e("common.redoTooltip"), arrow: !0, children: /* @__PURE__ */ o("span", { children: /* @__PURE__ */ o($e, { onClick: el, disabled: !t, size: "small", children: /* @__PURE__ */ o(Pi, { fontSize: "small" }) }) }) });
8125
+ const { t: e } = Se(), t = Fa();
8126
+ return /* @__PURE__ */ o(Ze, { title: e("common.undoTooltip"), arrow: !0, children: /* @__PURE__ */ o("span", { children: /* @__PURE__ */ o($e, { onClick: Qr, disabled: !t, size: "small", children: /* @__PURE__ */ o(da, { fontSize: "small" }) }) }) });
8070
8127
  }
8071
8128
  function Su() {
8072
- const { t: e } = Se(), t = za();
8073
- return /* @__PURE__ */ o(Ze, { title: e("common.undoTooltip"), arrow: !0, children: /* @__PURE__ */ o("span", { children: /* @__PURE__ */ o($e, { onClick: Qr, disabled: !t, size: "small", children: /* @__PURE__ */ o(Fi, { fontSize: "small" }) }) }) });
8074
- }
8075
- function vu() {
8076
8129
  var g, f, m, h, b, S;
8077
- const { t: e } = Se(), t = Qe(), n = Io(), r = ha(), i = Zr();
8130
+ const { t: e } = Se(), t = Qe(), n = Io(), r = ga(), i = Zr();
8078
8131
  mt.useEffect(() => {
8079
8132
  !i && n === "json" && po("editor");
8080
8133
  }, [i, n]);
@@ -8102,9 +8155,9 @@ function vu() {
8102
8155
  case "preview":
8103
8156
  return /* @__PURE__ */ o(se, { sx: l, children: /* @__PURE__ */ o(Kl, { document: t, rootBlockId: "root" }) });
8104
8157
  case "html":
8105
- return /* @__PURE__ */ o(mu, {});
8158
+ return /* @__PURE__ */ o(fu, {});
8106
8159
  case "json":
8107
- return i ? /* @__PURE__ */ o(bu, {}) : null;
8160
+ return i ? /* @__PURE__ */ o(hu, {}) : null;
8108
8161
  }
8109
8162
  };
8110
8163
  return /* @__PURE__ */ w(se, { sx: { display: "flex", flexDirection: "column", height: "100%", overflow: "hidden" }, children: [
@@ -8125,22 +8178,22 @@ function vu() {
8125
8178
  justifyContent: "space-between",
8126
8179
  alignItems: "center",
8127
8180
  children: [
8128
- /* @__PURE__ */ o(iu, {}),
8129
- /* @__PURE__ */ o(yu, {}),
8181
+ /* @__PURE__ */ o(lu, {}),
8182
+ /* @__PURE__ */ o(Cu, {}),
8130
8183
  /* @__PURE__ */ w(Z, { px: 2, direction: "row", gap: 2, width: "100%", justifyContent: "space-between", alignItems: "center", children: [
8131
- /* @__PURE__ */ o(Z, { direction: "row", spacing: 2, children: /* @__PURE__ */ o(Cu, {}) }),
8184
+ /* @__PURE__ */ o(Z, { direction: "row", spacing: 2, children: /* @__PURE__ */ o(bu, {}) }),
8132
8185
  /* @__PURE__ */ w(Z, { direction: "row", spacing: 2, alignItems: "center", children: [
8133
- /* @__PURE__ */ o(Su, {}),
8134
8186
  /* @__PURE__ */ o(xu, {}),
8135
- i && /* @__PURE__ */ o(au, {}),
8136
- i && /* @__PURE__ */ o(hu, {}),
8187
+ /* @__PURE__ */ o(yu, {}),
8188
+ i && /* @__PURE__ */ o(iu, {}),
8189
+ i && /* @__PURE__ */ o(gu, {}),
8137
8190
  /* @__PURE__ */ w(bo, { size: "small", value: s, exclusive: !0, onChange: a, children: [
8138
- /* @__PURE__ */ o(Ze, { title: e("common.desktopView"), arrow: !0, children: /* @__PURE__ */ o(le, { value: "desktop", sx: s === "desktop" ? d : void 0, children: /* @__PURE__ */ o(zi, { fontSize: "small" }) }) }),
8139
- /* @__PURE__ */ o(Ze, { title: e("common.mobileView"), arrow: !0, children: /* @__PURE__ */ o(le, { value: "mobile", sx: s === "mobile" ? d : void 0, children: /* @__PURE__ */ o(Li, { fontSize: "small" }) }) })
8191
+ /* @__PURE__ */ o(Ze, { title: e("common.desktopView"), arrow: !0, children: /* @__PURE__ */ o(le, { value: "desktop", sx: s === "desktop" ? d : void 0, children: /* @__PURE__ */ o($i, { fontSize: "small" }) }) }),
8192
+ /* @__PURE__ */ o(Ze, { title: e("common.mobileView"), arrow: !0, children: /* @__PURE__ */ o(le, { value: "mobile", sx: s === "mobile" ? d : void 0, children: /* @__PURE__ */ o(ji, { fontSize: "small" }) }) })
8140
8193
  ] })
8141
8194
  ] })
8142
8195
  ] }),
8143
- /* @__PURE__ */ o(ru, {})
8196
+ /* @__PURE__ */ o(ou, {})
8144
8197
  ]
8145
8198
  }
8146
8199
  ),
@@ -8154,7 +8207,7 @@ function gr(e, t) {
8154
8207
  duration: t ? n.duration.enteringScreen : n.duration.leavingScreen
8155
8208
  });
8156
8209
  }
8157
- function wu() {
8210
+ function vu() {
8158
8211
  const e = ko(), t = Do(), n = gr("margin-left", t), r = gr("margin-right", e);
8159
8212
  return Ce(() => {
8160
8213
  const i = (l) => {
@@ -8185,7 +8238,7 @@ function wu() {
8185
8238
  overflow: "hidden"
8186
8239
  },
8187
8240
  children: [
8188
- /* @__PURE__ */ o(yc, {}),
8241
+ /* @__PURE__ */ o(Cc, {}),
8189
8242
  /* @__PURE__ */ o(
8190
8243
  Z,
8191
8244
  {
@@ -8198,15 +8251,15 @@ function wu() {
8198
8251
  overflow: "hidden",
8199
8252
  zIndex: 0
8200
8253
  },
8201
- children: /* @__PURE__ */ o(vu, {})
8254
+ children: /* @__PURE__ */ o(Su, {})
8202
8255
  }
8203
8256
  ),
8204
- /* @__PURE__ */ o(dc, {})
8257
+ /* @__PURE__ */ o(uc, {})
8205
8258
  ]
8206
8259
  }
8207
8260
  );
8208
8261
  }
8209
- const Iu = Ml(function() {
8262
+ const wu = Ml(function() {
8210
8263
  return /* @__PURE__ */ o(
8211
8264
  se,
8212
8265
  {
@@ -8218,10 +8271,10 @@ const Iu = Ml(function() {
8218
8271
  flexDirection: "column",
8219
8272
  overflow: "hidden"
8220
8273
  },
8221
- children: /* @__PURE__ */ o(wu, {})
8274
+ children: /* @__PURE__ */ o(vu, {})
8222
8275
  }
8223
8276
  );
8224
- }), ku = Ol(({
8277
+ }), Iu = Ol(({
8225
8278
  initialDocument: e,
8226
8279
  language: t = "en",
8227
8280
  imageUploadHandler: n,
@@ -8241,7 +8294,7 @@ const Iu = Ml(function() {
8241
8294
  const S = Oe(!1);
8242
8295
  if (!S.current) {
8243
8296
  const y = Xo(e ?? sn);
8244
- ma({
8297
+ fa({
8245
8298
  document: to(y, h),
8246
8299
  language: t,
8247
8300
  showJsonFeatures: s,
@@ -8259,13 +8312,13 @@ const Iu = Ml(function() {
8259
8312
  const y = M.getState().document;
8260
8313
  Rt(to(y, h));
8261
8314
  }, [h]), Ce(() => {
8262
- t !== void 0 && Ea(t);
8315
+ t !== void 0 && Da(t);
8263
8316
  }, [t]), Ce(() => {
8264
- Ia(n);
8317
+ wa(n);
8265
8318
  }, [n]), Ce(() => {
8266
- ka(r);
8319
+ Ia(r);
8267
8320
  }, [r]), Ce(() => {
8268
- Sa(i);
8321
+ xa(i);
8269
8322
  }, [i]), Nl(b, () => ({
8270
8323
  getData: (y) => {
8271
8324
  Go();
@@ -8280,31 +8333,31 @@ const Iu = Ml(function() {
8280
8333
  getVariables: (y) => {
8281
8334
  Go();
8282
8335
  const k = M.getState().document;
8283
- y(Cs(k));
8336
+ y(bs(k));
8284
8337
  }
8285
8338
  })), Ce(() => {
8286
- l !== void 0 && Ta(l);
8339
+ l !== void 0 && Aa(l);
8287
8340
  }, [l]), Ce(() => {
8288
- _a(a);
8341
+ Ta(a);
8289
8342
  }, [a]), Ce(() => {
8290
- Oa(s);
8343
+ Ma(s);
8291
8344
  }, [s]), Ce(() => {
8292
- Ra(d);
8345
+ Na(d);
8293
8346
  }, [d]), Ce(() => {
8294
- Ba(g);
8347
+ _a(g);
8295
8348
  }, [g]), Ce(() => {
8296
- Ma(f);
8349
+ Ba(f);
8297
8350
  }, [f]), Ce(() => {
8298
- ga(m);
8299
- }, [m]), /* @__PURE__ */ w($l, { theme: c || Is, children: [
8351
+ ma(m);
8352
+ }, [m]), /* @__PURE__ */ w($l, { theme: c || ws, children: [
8300
8353
  /* @__PURE__ */ o(jl, {}),
8301
- /* @__PURE__ */ o(Wa, { value: u ?? null, children: /* @__PURE__ */ o(Iu, {}) })
8354
+ /* @__PURE__ */ o(La, { value: u ?? null, children: /* @__PURE__ */ o(wu, {}) })
8302
8355
  ] });
8303
8356
  });
8304
- ku.displayName = "EmailBuilder";
8357
+ Iu.displayName = "EmailBuilder";
8305
8358
  export {
8306
- ku as EmailBuilder,
8307
- ku as default,
8359
+ Iu as EmailBuilder,
8360
+ Iu as default,
8308
8361
  Qe as useDocument,
8309
- Da as useLanguage
8362
+ ka as useLanguage
8310
8363
  };