@templatical/editor 0.54.0 → 0.54.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/dist/{AiAltTextPopover-NMJqQKvD.js → AiAltTextPopover-BBKVJ6HA.js} +1 -1
  2. package/dist/{AiAltTextReview-Ci4zHwRc.js → AiAltTextReview-BuVbeQh-.js} +1 -1
  3. package/dist/{AiRewriteMenu-CIHUnPud.js → AiRewriteMenu-ZpYJfm-O.js} +4 -4
  4. package/dist/{BlockPreviewCanvas-B70RSavL.js → BlockPreviewCanvas-DtOo5y3U.js} +6 -6
  5. package/dist/{CloudPanels-VpSQiLLL.js → CloudPanels-DQRWMc59.js} +1 -1
  6. package/dist/{CountdownToolbar-CM4XNEuO.js → CountdownToolbar-DTpMEDyh.js} +4 -4
  7. package/dist/{IssuesPanel-1wGV0wiy.js → IssuesPanel-BZn7-p9e.js} +1 -1
  8. package/dist/{LanguageMenu-d2GlX67r.js → LanguageMenu-OOmQWVzO.js} +5 -5
  9. package/dist/{LogicTagInsertButton-DgTJ6Lvx.js → LogicTagInsertButton-XESwnJia.js} +8 -8
  10. package/dist/{MergeTagInput-B_51YcQO.js → MergeTagInput-CAsBRoSm.js} +1 -1
  11. package/dist/{MergeTagModeToggle-D3Q2z317.js → MergeTagModeToggle-bOf27Hg1.js} +1 -1
  12. package/dist/{MergeTagTextarea-DZz1L9DE.js → MergeTagTextarea-DH_6JFui.js} +2 -2
  13. package/dist/{ParagraphEditor-CI68PYDL.js → ParagraphEditor-XGUkV5Uw.js} +12 -11
  14. package/dist/{RestoreVersionDialog-DcuhpOIz.js → RestoreVersionDialog-C72kWccI.js} +1 -1
  15. package/dist/{RichTextEditorContent-Dstovi0m.js → RichTextEditorContent-BZN8KRvR.js} +2 -2
  16. package/dist/{SaveBlockDialog-vuwvoi-d.js → SaveBlockDialog-CKOnTMTU.js} +4 -4
  17. package/dist/{SavedBlocksBrowserModal-DUJm0dOv.js → SavedBlocksBrowserModal-BrlNxqDH.js} +4 -4
  18. package/dist/{SavedBlocksPanels-BiMXQ5lY.js → SavedBlocksPanels--lPR6gdh.js} +1 -1
  19. package/dist/{SavedBlocksPickBar-CAstZfG7.js → SavedBlocksPickBar-4ON4_KKl.js} +1 -1
  20. package/dist/{TemplateSettings-Baar78_s.js → TemplateSettings-BE0jZmRJ.js} +4 -4
  21. package/dist/{TestEmailModal-Bl_GHdrN.js → TestEmailModal-BKmNGrZN.js} +5 -5
  22. package/dist/{TestEmailPanel-CpTBF7B5.js → TestEmailPanel-DT1wllX3.js} +1 -1
  23. package/dist/{TitleEditor-DkbEDAZB.js → TitleEditor-HjVZuUTB.js} +8 -7
  24. package/dist/{Toolbar-bOZ_eq7X.js → Toolbar-BppchV2k.js} +617 -617
  25. package/dist/{TplModal-wk2gLa7_.js → TplModal-BFWOoK8l.js} +1 -1
  26. package/dist/{VersionHistoryPanels-Cq2rFKIX.js → VersionHistoryPanels-D4yNVLvq.js} +1 -1
  27. package/dist/{WrapperBlock-cWT_nZgQ.js → WrapperBlock-BUzQTZuu.js} +3 -3
  28. package/dist/{blockTypeIcons-BUyPZ7Su.js → blockTypeIcons-D91v9k0x.js} +1 -1
  29. package/dist/bundle-stats.json +6 -6
  30. package/dist/cdn/chunks/{AiAltTextPopover-Cnc_kUmb.js → AiAltTextPopover-CAI18sdv.js} +2 -2
  31. package/dist/cdn/chunks/{AiAltTextPopover-Cnc_kUmb.js.map → AiAltTextPopover-CAI18sdv.js.map} +1 -1
  32. package/dist/cdn/chunks/{AiAltTextReview-DPeSY-7r.js → AiAltTextReview-CWEyMOF-.js} +2 -2
  33. package/dist/cdn/chunks/{AiAltTextReview-DPeSY-7r.js.map → AiAltTextReview-CWEyMOF-.js.map} +1 -1
  34. package/dist/cdn/chunks/{AiRewriteMenu-C4btyN4W.js → AiRewriteMenu-BEepu1vo.js} +5 -5
  35. package/dist/cdn/chunks/{AiRewriteMenu-C4btyN4W.js.map → AiRewriteMenu-BEepu1vo.js.map} +1 -1
  36. package/dist/cdn/chunks/{BlockPreviewCanvas-CTKmBPsq.js → BlockPreviewCanvas-B6ndvof2.js} +5 -5
  37. package/dist/cdn/chunks/{BlockPreviewCanvas-CTKmBPsq.js.map → BlockPreviewCanvas-B6ndvof2.js.map} +1 -1
  38. package/dist/cdn/chunks/{CloudPanels-COU26R83.js → CloudPanels-BGwDb0jB.js} +2 -2
  39. package/dist/cdn/chunks/{CloudPanels-COU26R83.js.map → CloudPanels-BGwDb0jB.js.map} +1 -1
  40. package/dist/cdn/chunks/{CountdownToolbar-CNgsNL5-.js → CountdownToolbar-B-0FsTj-.js} +5 -5
  41. package/dist/cdn/chunks/{CountdownToolbar-CNgsNL5-.js.map → CountdownToolbar-B-0FsTj-.js.map} +1 -1
  42. package/dist/cdn/chunks/{IssuesPanel-Duic0mIs.js → IssuesPanel-LyjMBDok.js} +3 -3
  43. package/dist/cdn/chunks/{IssuesPanel-Duic0mIs.js.map → IssuesPanel-LyjMBDok.js.map} +1 -1
  44. package/dist/cdn/chunks/{LanguageMenu-B1Aue_lf.js → LanguageMenu-CGwMCOQ5.js} +4 -4
  45. package/dist/cdn/chunks/{LanguageMenu-B1Aue_lf.js.map → LanguageMenu-CGwMCOQ5.js.map} +1 -1
  46. package/dist/cdn/chunks/{LogicTagInsertButton-Bhvi0nWz.js → LogicTagInsertButton-PDKuo2J3.js} +4 -4
  47. package/dist/cdn/chunks/{LogicTagInsertButton-Bhvi0nWz.js.map → LogicTagInsertButton-PDKuo2J3.js.map} +1 -1
  48. package/dist/cdn/chunks/{MergeTagInput-CrhZm-AW.js → MergeTagInput-DoQHBJk2.js} +2 -2
  49. package/dist/cdn/chunks/{MergeTagInput-CrhZm-AW.js.map → MergeTagInput-DoQHBJk2.js.map} +1 -1
  50. package/dist/cdn/chunks/{MergeTagModeToggle-CWVtXLYa.js → MergeTagModeToggle-Ct5IG4VW.js} +2 -2
  51. package/dist/cdn/chunks/{MergeTagModeToggle-CWVtXLYa.js.map → MergeTagModeToggle-Ct5IG4VW.js.map} +1 -1
  52. package/dist/cdn/chunks/{MergeTagTextarea-hTIBwX0F.js → MergeTagTextarea-BMsnjphR.js} +3 -3
  53. package/dist/cdn/chunks/{MergeTagTextarea-hTIBwX0F.js.map → MergeTagTextarea-BMsnjphR.js.map} +1 -1
  54. package/dist/cdn/chunks/{ParagraphEditor-B2UU1Q5I.js → ParagraphEditor-CVW-kuHW.js} +114 -113
  55. package/dist/cdn/chunks/ParagraphEditor-CVW-kuHW.js.map +1 -0
  56. package/dist/cdn/chunks/{RestoreVersionDialog-C1Y5Ewo_.js → RestoreVersionDialog-7MFZz-Sb.js} +2 -2
  57. package/dist/cdn/chunks/{RestoreVersionDialog-C1Y5Ewo_.js.map → RestoreVersionDialog-7MFZz-Sb.js.map} +1 -1
  58. package/dist/cdn/chunks/{RichTextEditorContent-up4AqL7D.js → RichTextEditorContent-CiL-SkZg.js} +3 -3
  59. package/dist/cdn/chunks/{RichTextEditorContent-up4AqL7D.js.map → RichTextEditorContent-CiL-SkZg.js.map} +1 -1
  60. package/dist/cdn/chunks/{SaveBlockDialog-B9lwEP_T.js → SaveBlockDialog-CxdekCYy.js} +5 -5
  61. package/dist/cdn/chunks/{SaveBlockDialog-B9lwEP_T.js.map → SaveBlockDialog-CxdekCYy.js.map} +1 -1
  62. package/dist/cdn/chunks/{SavedBlocksBrowserModal-fAeHUyxb.js → SavedBlocksBrowserModal-D9CAa2U3.js} +4 -4
  63. package/dist/cdn/chunks/{SavedBlocksBrowserModal-fAeHUyxb.js.map → SavedBlocksBrowserModal-D9CAa2U3.js.map} +1 -1
  64. package/dist/cdn/chunks/{SavedBlocksPanels-DRDTLDyZ.js → SavedBlocksPanels-jfkYWtss.js} +2 -2
  65. package/dist/cdn/chunks/{SavedBlocksPanels-DRDTLDyZ.js.map → SavedBlocksPanels-jfkYWtss.js.map} +1 -1
  66. package/dist/cdn/chunks/{SavedBlocksPickBar-B6b5z-o3.js → SavedBlocksPickBar-yaCumC4j.js} +2 -2
  67. package/dist/cdn/chunks/{SavedBlocksPickBar-B6b5z-o3.js.map → SavedBlocksPickBar-yaCumC4j.js.map} +1 -1
  68. package/dist/cdn/chunks/{TemplateSettings-CWUpUKJb.js → TemplateSettings-SaV2UVh_.js} +5 -5
  69. package/dist/cdn/chunks/{TemplateSettings-CWUpUKJb.js.map → TemplateSettings-SaV2UVh_.js.map} +1 -1
  70. package/dist/cdn/chunks/{TestEmailModal-DQxnW5Q5.js → TestEmailModal-ByfhP_sm.js} +6 -6
  71. package/dist/cdn/chunks/{TestEmailModal-DQxnW5Q5.js.map → TestEmailModal-ByfhP_sm.js.map} +1 -1
  72. package/dist/cdn/chunks/{TestEmailPanel-BcO_-16H.js → TestEmailPanel-CfzpqpDs.js} +2 -2
  73. package/dist/cdn/chunks/{TestEmailPanel-BcO_-16H.js.map → TestEmailPanel-CfzpqpDs.js.map} +1 -1
  74. package/dist/cdn/chunks/{TitleEditor-pmycpmTd.js → TitleEditor-Ceb0YfWv.js} +8 -7
  75. package/dist/cdn/chunks/TitleEditor-Ceb0YfWv.js.map +1 -0
  76. package/dist/cdn/chunks/{Toolbar-BlWVQRcA.js → Toolbar-Cv6Rv1S-.js} +9 -9
  77. package/dist/cdn/chunks/{Toolbar-BlWVQRcA.js.map → Toolbar-Cv6Rv1S-.js.map} +1 -1
  78. package/dist/cdn/chunks/{TplModal-ClSSGX7a.js → TplModal-DGpGdwgf.js} +2 -2
  79. package/dist/cdn/chunks/{TplModal-ClSSGX7a.js.map → TplModal-DGpGdwgf.js.map} +1 -1
  80. package/dist/cdn/chunks/{VersionHistoryPanels-B8GPBKMq.js → VersionHistoryPanels-BJnHCMAH.js} +2 -2
  81. package/dist/cdn/chunks/{VersionHistoryPanels-B8GPBKMq.js.map → VersionHistoryPanels-BJnHCMAH.js.map} +1 -1
  82. package/dist/cdn/chunks/{WrapperBlock-BoUflYwY.js → WrapperBlock-C_uE5rPJ.js} +4 -4
  83. package/dist/cdn/chunks/{WrapperBlock-BoUflYwY.js.map → WrapperBlock-C_uE5rPJ.js.map} +1 -1
  84. package/dist/cdn/chunks/{composables-C1KU4ZHw.js → composables-BxikPuC1.js} +449 -443
  85. package/dist/cdn/chunks/composables-BxikPuC1.js.map +1 -0
  86. package/dist/cdn/chunks/{createCloudRuntime-C2Zs5F1O.js → createCloudRuntime-D2DUaudp.js} +3 -3
  87. package/dist/cdn/chunks/{createCloudRuntime-C2Zs5F1O.js.map → createCloudRuntime-D2DUaudp.js.map} +1 -1
  88. package/dist/cdn/chunks/{extensions-DcMKZpzh.js → extensions-DuDWpKo7.js} +4 -4
  89. package/dist/cdn/chunks/{extensions-DcMKZpzh.js.map → extensions-DuDWpKo7.js.map} +1 -1
  90. package/dist/cdn/chunks/{normalizeMergeTagMarkup-cC32Ox6A.js → normalizeMergeTagMarkup-Bn_hl4jd.js} +2 -2
  91. package/dist/cdn/chunks/{normalizeMergeTagMarkup-cC32Ox6A.js.map → normalizeMergeTagMarkup-Bn_hl4jd.js.map} +1 -1
  92. package/dist/cdn/chunks/{preRenderCustomBlocks-f7GEKdvw.js → preRenderCustomBlocks-C9oavydG.js} +2 -2
  93. package/dist/cdn/chunks/{preRenderCustomBlocks-f7GEKdvw.js.map → preRenderCustomBlocks-C9oavydG.js.map} +1 -1
  94. package/dist/cdn/chunks/{sanitizeHtml-WTfz9lZd.js → sanitizeHtml-DfXoetOm.js} +2 -2
  95. package/dist/cdn/chunks/{sanitizeHtml-WTfz9lZd.js.map → sanitizeHtml-DfXoetOm.js.map} +1 -1
  96. package/dist/cdn/chunks/{socialIcons-DeCYorUT.js → socialIcons-DPwkrn5v.js} +2 -2
  97. package/dist/cdn/chunks/{socialIcons-DeCYorUT.js.map → socialIcons-DPwkrn5v.js.map} +1 -1
  98. package/dist/cdn/chunks/{src-A_cKeTM_.js → src-712f3ofG.js} +2 -2
  99. package/dist/cdn/chunks/{src-A_cKeTM_.js.map → src-712f3ofG.js.map} +1 -1
  100. package/dist/cdn/chunks/{src-BWX_xVxO.js → src-B2tQbzf6.js} +152 -146
  101. package/dist/cdn/chunks/src-B2tQbzf6.js.map +1 -0
  102. package/dist/cdn/chunks/{src-BQUv2CYU.js → src-ZFw5fg_z.js} +40 -27
  103. package/dist/cdn/chunks/{src-BQUv2CYU.js.map → src-ZFw5fg_z.js.map} +1 -1
  104. package/dist/cdn/chunks/{useLocalizedDisplay-aGfnO90D.js → useLocalizedDisplay-DiNjT22M.js} +2 -2
  105. package/dist/cdn/chunks/{useLocalizedDisplay-aGfnO90D.js.map → useLocalizedDisplay-DiNjT22M.js.map} +1 -1
  106. package/dist/cdn/chunks/{useLogicTag-DtYe8HIq.js → useLogicTag-SvMW4g00.js} +2 -2
  107. package/dist/cdn/chunks/{useLogicTag-DtYe8HIq.js.map → useLogicTag-SvMW4g00.js.map} +1 -1
  108. package/dist/cdn/chunks/{useMergeTag-B8ULmsnp.js → useMergeTag-JLz3Pqcw.js} +2 -2
  109. package/dist/cdn/chunks/{useMergeTag-B8ULmsnp.js.map → useMergeTag-JLz3Pqcw.js.map} +1 -1
  110. package/dist/cdn/chunks/{withCurrentFont-MK8ga9q9.js → withCurrentFont-BcoPpkDS.js} +2 -2
  111. package/dist/cdn/chunks/{withCurrentFont-MK8ga9q9.js.map → withCurrentFont-BcoPpkDS.js.map} +1 -1
  112. package/dist/cdn/editor.css +1 -1
  113. package/dist/cdn/editor.js +18 -18
  114. package/dist/{composables-CMIrGXJ1.js → composables-BbPFRlBf.js} +908 -902
  115. package/dist/{createCloudRuntime-DGV5a5Af.js → createCloudRuntime-Dlrg88gS.js} +2 -2
  116. package/dist/{dist-Cdkm20M6.js → dist-C34cYI5S.js} +126 -113
  117. package/dist/{extensions-BJ184osp.js → extensions-xCiyqSg7.js} +16 -16
  118. package/dist/{normalizeMergeTagMarkup-CUCo7B5X.js → normalizeMergeTagMarkup-C7FGNURu.js} +22 -22
  119. package/dist/{preRenderCustomBlocks-Bs3N9no-.js → preRenderCustomBlocks-DvbRa3L3.js} +3 -3
  120. package/dist/{sanitizeHtml-2rjV0r-6.js → sanitizeHtml-D_ab7dD6.js} +5 -5
  121. package/dist/{socialIcons-TFiOkpoU.js → socialIcons-DhAolBjt.js} +342 -342
  122. package/dist/style.css +1 -1
  123. package/dist/templatical-editor.js +190 -190
  124. package/dist/useLocalizedDisplay-C9MBFUr4.js +31 -0
  125. package/dist/{useLogicTag-BXXXQQmi.js → useLogicTag-BmuakZBd.js} +1 -1
  126. package/dist/{useMergeTag-C9Okr87y.js → useMergeTag-DC4a8b_v.js} +3 -3
  127. package/dist/{withCurrentFont-DJiQqZzL.js → withCurrentFont-BSxJai99.js} +1 -1
  128. package/package.json +7 -7
  129. package/dist/cdn/chunks/ParagraphEditor-B2UU1Q5I.js.map +0 -1
  130. package/dist/cdn/chunks/TitleEditor-pmycpmTd.js.map +0 -1
  131. package/dist/cdn/chunks/composables-C1KU4ZHw.js.map +0 -1
  132. package/dist/cdn/chunks/src-BWX_xVxO.js.map +0 -1
  133. package/dist/useLocalizedDisplay-DNNwDRxL.js +0 -31
@@ -1,32 +1,32 @@
1
1
  import { A as e, B as t, C as n, E as r, F as i, G as a, H as o, I as s, K as c, L as l, M as u, N as d, O as f, P as p, Q as m, R as h, S as g, W as _, X as v, Y as y, _ as b, b as x, c as S, ct as C, dt as w, f as T, g as E, h as D, j as O, l as k, m as A, mt as j, ot as M, p as N, pt as P, rt as F, s as I, st as L, t as R, tt as z, u as B, x as V } from "./draggable-DepKdldn.js";
2
- import { $ as H, B as U, E as W, F as G, G as ee, H as te, I as K, J as ne, Jt as q, K as re, L as ie, O as J, Ot as Y, P as X, Q as ae, R as oe, T as se, U as ce, Ut as Z, V as le, Y as ue, Yt as de, Z as fe, _n as pe, a as me, an as he, at as ge, b as _e, bn as ve, c as ye, ct as be, d as xe, dn as Se, dt as Ce, en as we, f as Te, fn as Ee, ft as De, g as Oe, gn as ke, h as Ae, hn as je, ht as Me, i as Ne, in as Pe, it as Fe, l as Ie, m as Le, n as Re, o as ze, p as Be, q as Ve, r as He, rn as Ue, sn as We, t as Ge, tt as Ke, u as qe, ut as Je, vn as Ye, y as Xe, yn as Ze, z as Qe } from "./src-BQUv2CYU.js";
3
- import { B as $e, C as et, F as tt, I as nt, P as rt, R as it, T as at, _ as ot, a as st, f as ct, h as lt, n as ut, o as dt, t as ft, u as pt, v as mt, w as ht, x as gt, y as _t, z as vt } from "./socialIcons-DeCYorUT.js";
4
- import { t as yt } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
5
- import { At as bt, G as xt, Mt as St, Nt as Ct, Ot as wt, St as Tt, Ut as Et, V as Dt, Wt as Ot, X as kt, _t as At, d as jt, f as Mt, k as Nt, mt as Pt, nt as Ft, o as It, y as Lt, yt as Rt } from "./icons-Da9GKjPx.js";
6
- import { $ as zt, A as Bt, B as Vt, C as Ht, D as Ut, F as Wt, G as Gt, H as Kt, I as qt, J as Jt, K as Yt, L as Xt, M as Zt, N as Qt, O as $t, P as en, Q as tn, R as nn, S as rn, T as an, U as on, V as sn, W as cn, X as ln, _ as un, a as dn, at as fn, b as pn, c as mn, d as hn, et as gn, g as _n, h as vn, i as yn, it as bn, j as xn, k as Sn, l as Cn, m as wn, nt as Tn, ot as En, p as Dn, q as On, r as kn, rt as An, s as jn, tt as Mn, u as Nn, v as Pn, w as Fn, x as In, y as Ln, z as Rn } from "./keys-CoQtCqNv.js";
2
+ import { $ as H, B as U, E as W, F as G, G as ee, H as te, I as K, J as ne, Jt as q, K as re, L as ie, O as J, Ot as Y, P as X, Q as ae, R as oe, T as se, U as ce, Ut as Z, V as le, Y as ue, Yt as de, Z as fe, _n as pe, a as me, an as he, at as ge, b as _e, bn as ve, c as ye, ct as be, d as xe, dn as Se, dt as Ce, en as we, f as Te, fn as Ee, ft as De, g as Oe, gn as ke, h as Ae, hn as je, ht as Me, i as Ne, in as Pe, it as Fe, l as Ie, m as Le, n as Re, o as ze, ot as Be, p as Ve, q as He, r as Ue, rn as We, sn as Ge, t as Ke, tt as qe, u as Je, ut as Ye, vn as Xe, y as Ze, yn as Qe, z as $e } from "./src-ZFw5fg_z.js";
3
+ import { B as et, C as tt, F as nt, I as rt, P as it, R as at, T as ot, _ as st, a as ct, f as lt, h as ut, n as dt, o as ft, t as pt, u as mt, v as ht, w as gt, x as _t, y as vt, z as yt } from "./socialIcons-DPwkrn5v.js";
4
+ import { t as bt } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
5
+ import { At as xt, G as St, Mt as Ct, Nt as wt, Ot as Tt, St as Et, Ut as Dt, V as Ot, Wt as kt, X as At, _t as jt, d as Mt, f as Nt, k as Pt, mt as Ft, nt as It, o as Lt, y as Rt, yt as zt } from "./icons-Da9GKjPx.js";
6
+ import { $ as Bt, A as Vt, B as Ht, C as Ut, D as Wt, F as Gt, G as Kt, H as qt, I as Jt, J as Yt, K as Xt, L as Zt, M as Qt, N as $t, O as en, P as tn, Q as nn, R as rn, S as an, T as on, U as sn, V as cn, W as ln, X as un, _ as dn, a as fn, at as pn, b as mn, c as hn, d as gn, et as _n, g as vn, h as yn, i as bn, it as xn, j as Sn, k as Cn, l as wn, m as Tn, nt as En, ot as Dn, p as On, q as kn, r as An, rt as jn, s as Mn, tt as Nn, u as Pn, v as Fn, w as In, x as Ln, y as Rn, z as zn } from "./keys-CoQtCqNv.js";
7
7
  import { t as Q } from "./useI18n-BnJYydPv.js";
8
- import { n as zn } from "./useLocalizedDisplay-aGfnO90D.js";
9
- import { t as Bn } from "./plural-CyxrJXL1.js";
10
- import { t as Vn } from "./languageName-DEEOhDWI.js";
11
- import { m as Hn, w as Un, x as Wn } from "./styleConstants-CgiNKdnc.js";
12
- import { _ as Gn, h as Kn, v as qn, y as Jn } from "./dist-BzXULHvI.js";
13
- import { a as Yn, c as Xn, i as Zn, l as Qn } from "./dist-DqGgijFI.js";
14
- import { t as $n } from "./useEditorRoot-D_LuZ_hE.js";
8
+ import { n as Bn } from "./useLocalizedDisplay-DiNjT22M.js";
9
+ import { t as Vn } from "./plural-CyxrJXL1.js";
10
+ import { t as Hn } from "./languageName-DEEOhDWI.js";
11
+ import { m as Un, w as Wn, x as Gn } from "./styleConstants-CgiNKdnc.js";
12
+ import { _ as Kn, h as qn, v as Jn, y as Yn } from "./dist-BzXULHvI.js";
13
+ import { a as Xn, c as Zn, i as Qn, l as $n } from "./dist-DqGgijFI.js";
14
+ import { t as er } from "./useEditorRoot-D_LuZ_hE.js";
15
15
  import "./useCloudI18n-Cc5NZqiI.js";
16
- import { t as er } from "./useMergeTag-B8ULmsnp.js";
16
+ import { t as tr } from "./useMergeTag-JLz3Pqcw.js";
17
17
  import { t as $ } from "./logger-CqQTfJGx.js";
18
- import { a as tr, c as nr, i as rr, n as ir, o as ar, t as or } from "./usePopoverPosition-BWAXWeBv.js";
19
- import { t as sr } from "./useLogicTag-DtYe8HIq.js";
20
- import { r as cr, t as lr } from "./templateSettingsFields-cjlP-jdw.js";
21
- import { n as ur, t as dr } from "./sanitizeHtml-WTfz9lZd.js";
22
- import { t as fr } from "./LoadingTrack-DUYcDHOV.js";
23
- import { t as pr } from "./readableTextColor-BfZUGnVj.js";
18
+ import { a as nr, c as rr, i as ir, n as ar, o as or, t as sr } from "./usePopoverPosition-BWAXWeBv.js";
19
+ import { t as cr } from "./useLogicTag-SvMW4g00.js";
20
+ import { r as lr, t as ur } from "./templateSettingsFields-cjlP-jdw.js";
21
+ import { n as dr, t as fr } from "./sanitizeHtml-DfXoetOm.js";
22
+ import { t as pr } from "./LoadingTrack-DUYcDHOV.js";
23
+ import { t as mr } from "./readableTextColor-BfZUGnVj.js";
24
24
  // src/composables/useFocusTrap.ts
25
- var mr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
26
- function hr(e, t) {
27
- let n = $n(), r = null, i = null, a = null;
25
+ var hr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
26
+ function gr(e, t) {
27
+ let n = er(), r = null, i = null, a = null;
28
28
  function s() {
29
- return e.value ? Array.from(e.value.querySelectorAll(mr)).filter((e) => e.offsetParent !== null) : [];
29
+ return e.value ? Array.from(e.value.querySelectorAll(hr)).filter((e) => e.offsetParent !== null) : [];
30
30
  }
31
31
  function c(e) {
32
32
  if (e.key !== "Tab") return;
@@ -41,7 +41,7 @@ function hr(e, t) {
41
41
  a = null;
42
42
  let t = s();
43
43
  t.length > 0 && (e.value?.querySelector("[autofocus], input:not([disabled])") ?? t[0]).focus();
44
- }), i = Yn(e, "keydown", c);
44
+ }), i = Xn(e, "keydown", c);
45
45
  }
46
46
  function u(e = {}) {
47
47
  let t = e.restoreFocus !== !1;
@@ -55,8 +55,8 @@ function hr(e, t) {
55
55
  });
56
56
  }
57
57
  // src/composables/useEmoji.ts
58
- function gr() {
59
- let [e, t] = qn(!1), n = F([]), r = !1;
58
+ function _r() {
59
+ let [e, t] = Jn(!1), n = F([]), r = !1;
60
60
  m(() => {
61
61
  r = !0;
62
62
  }), o(e, async (e) => {
@@ -80,7 +80,7 @@ function gr() {
80
80
  };
81
81
  }
82
82
  // src/composables/useBlockRegistry.ts
83
- function _r() {
83
+ function vr() {
84
84
  let e = F(/* @__PURE__ */ new Map());
85
85
  function t(t, n) {
86
86
  e.value.set(t, n), L(e);
@@ -133,7 +133,7 @@ function _r() {
133
133
  };
134
134
  }
135
135
  // src/composables/useFonts.ts
136
- var vr = [
136
+ var yr = [
137
137
  {
138
138
  value: "Arial",
139
139
  label: "Arial"
@@ -162,19 +162,19 @@ var vr = [
162
162
  value: "Courier New",
163
163
  label: "Courier New"
164
164
  }
165
- ], yr = "Arial, sans-serif";
166
- function br(e) {
167
- if (e === void 0 || e === !0) return [...vr];
165
+ ], br = "Arial, sans-serif";
166
+ function xr(e) {
167
+ if (e === void 0 || e === !0) return [...yr];
168
168
  if (e === !1) return [];
169
169
  let t = [], n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
170
170
  for (let i of e) {
171
- let e = i.toLowerCase(), a = vr.find((t) => t.value.toLowerCase() === e);
172
- a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), $.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${vr.map((e) => e.value).join(", ")}.`));
171
+ let e = i.toLowerCase(), a = yr.find((t) => t.value.toLowerCase() === e);
172
+ a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), $.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${yr.map((e) => e.value).join(", ")}.`));
173
173
  }
174
174
  return t;
175
175
  }
176
- function xr(e) {
177
- let t = z(e?.customFonts ?? []), n = z(!1), r = br(e?.builtIns), i = N(() => e?.defaultFallback ?? yr), a = N(() => {
176
+ function Sr(e) {
177
+ let t = z(e?.customFonts ?? []), n = z(!1), r = xr(e?.builtIns), i = N(() => e?.defaultFallback ?? br), a = N(() => {
178
178
  let e = [...r], n = t.value.map((e) => ({
179
179
  value: e.name,
180
180
  label: e.name,
@@ -185,18 +185,18 @@ function xr(e) {
185
185
  function o(e) {
186
186
  return a.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
187
187
  }
188
- let s = e?.defaultFont ?? yr.split(",")[0].trim();
188
+ let s = e?.defaultFont ?? br.split(",")[0].trim();
189
189
  o(s) || $.warn(`config.fonts: new templates seed "${s}", which the font picker doesn't offer — authors can't reselect it. Either add it to fonts.builtIns, or set fonts.defaultFont to an offered font.`);
190
190
  function c() {
191
191
  if (e?.defaultFont && o(e.defaultFont)) {
192
192
  let t = a.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
193
193
  if (t) return t.value;
194
194
  }
195
- return yr;
195
+ return br;
196
196
  }
197
197
  let l = N(() => c());
198
198
  function u(e) {
199
- return Xe(e, {
199
+ return Ze(e, {
200
200
  customFonts: t.value,
201
201
  defaultFallback: i.value
202
202
  });
@@ -239,7 +239,7 @@ function xr(e) {
239
239
  };
240
240
  }
241
241
  // src/composables/useThemeStyles.ts
242
- var Sr = {
242
+ var Cr = {
243
243
  bg: "--tpl-bg",
244
244
  bgElevated: "--tpl-bg-elevated",
245
245
  bgHover: "--tpl-bg-hover",
@@ -263,10 +263,10 @@ var Sr = {
263
263
  dangerLight: "--tpl-danger-light",
264
264
  canvasBg: "--tpl-canvas-bg"
265
265
  };
266
- function Cr({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
266
+ function wr({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
267
267
  return { themeStyles: N(() => {
268
268
  let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
269
- if (a) for (let [e, t] of Object.entries(Sr)) {
269
+ if (a) for (let [e, t] of Object.entries(Cr)) {
270
270
  let n = a[e];
271
271
  n && (r[t] = n);
272
272
  }
@@ -274,8 +274,8 @@ function Cr({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
274
274
  }) };
275
275
  }
276
276
  // src/utils/mergeTagNodeSpec.ts
277
- function wr(e, t, n) {
278
- return qe(e, n) ? {
277
+ function Tr(e, t, n) {
278
+ return Je(e, n) ? {
279
279
  type: "logicMergeTagNode",
280
280
  attrs: {
281
281
  value: e,
@@ -290,32 +290,32 @@ function wr(e, t, n) {
290
290
  };
291
291
  }
292
292
  // src/utils/insertLogicTag.ts
293
- function Tr(e) {
293
+ function Er(e) {
294
294
  return "before" in e && "after" in e;
295
295
  }
296
- function Er(e, t, n) {
297
- if (!Tr(t)) {
298
- e.chain().focus().insertContent(wr(t.value, t.label, n)).run();
296
+ function Dr(e, t, n) {
297
+ if (!Er(t)) {
298
+ e.chain().focus().insertContent(Tr(t.value, t.label, n)).run();
299
299
  return;
300
300
  }
301
- let r = wr(t.before, t.label, n), i = wr(t.after, t.label, n), { from: a, to: o } = e.state.selection;
301
+ let r = Tr(t.before, t.label, n), i = Tr(t.after, t.label, n), { from: a, to: o } = e.state.selection;
302
302
  a === o ? e.chain().focus().insertContentAt(a, [r, i]).setTextSelection(a + 1).run() : e.chain().focus().insertContentAt(o, i).insertContentAt(a, r).run();
303
303
  }
304
304
  // src/utils/linkColorExtension.ts
305
- function Dr(e) {
305
+ function Or(e) {
306
306
  if (!e) return null;
307
307
  let t = e.trim();
308
308
  return /^#[0-9a-f]{3,8}$/i.test(t) || /^(rgb|rgba|hsl|hsla)\(\s*[0-9.,%/\s]+\)$/i.test(t) || /^[a-z]+$/i.test(t) ? t : null;
309
309
  }
310
- function Or(e) {
310
+ function kr(e) {
311
311
  return e.extend({ addAttributes() {
312
312
  return {
313
313
  ...this.parent?.(),
314
314
  color: {
315
315
  default: null,
316
- parseHTML: (e) => Dr(ar(e.style.color)),
316
+ parseHTML: (e) => Or(or(e.style.color)),
317
317
  renderHTML: (e) => {
318
- let t = Dr(e.color);
318
+ let t = Or(e.color);
319
319
  return t ? { style: `color: ${t}` } : {};
320
320
  }
321
321
  }
@@ -323,9 +323,9 @@ function Or(e) {
323
323
  } });
324
324
  }
325
325
  // src/composables/useRichTextLinkDialog.ts
326
- function kr(e, t = Re.liquid, n = () => !0) {
326
+ function Ar(e, t = Re.liquid, n = () => !0) {
327
327
  let r = z(!1), i = z(""), a = z(""), o = z(null);
328
- hr(o, r);
328
+ gr(o, r);
329
329
  function s() {
330
330
  if (!n()) return;
331
331
  let t = e.value?.getAttributes("link") ?? {};
@@ -336,7 +336,7 @@ function kr(e, t = Re.liquid, n = () => !0) {
336
336
  if (i.value) {
337
337
  let t = d(i.value);
338
338
  if (t !== null) {
339
- let n = Dr(a.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
339
+ let n = Or(a.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
340
340
  n && typeof e.value?.commands.unsetColor == "function" && r?.unsetColor(), r?.run();
341
341
  }
342
342
  }
@@ -378,13 +378,13 @@ function kr(e, t = Re.liquid, n = () => !0) {
378
378
  };
379
379
  }
380
380
  // src/composables/useRichTextEditor.ts
381
- function Ar(e) {
382
- let t = f(Pn, null), n = nr(), { mergeTags: r, canRequestMergeTag: i, isRequesting: a, requestMergeTag: s, syntax: c, autocomplete: l } = er(), { canInsertLogicTag: d, isRequesting: p, requestLogicTag: m } = sr(), h = f(Mn, null), g = (v(h) ? h.value : h)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", _ = ye(c), y = F(null), b = t?.content ? zn(t) : null, x = () => be(b?.settings.value ?? { locale: "en" });
381
+ function jr(e) {
382
+ let t = f(Fn, null), n = rr(), { mergeTags: r, canRequestMergeTag: i, isRequesting: a, requestMergeTag: s, syntax: c, autocomplete: l } = tr(), { canInsertLogicTag: d, isRequesting: p, requestLogicTag: m } = cr(), h = f(Nn, null), g = (v(h) ? h.value : h)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", _ = ye(c), y = F(null), b = t?.content ? Bn(t) : null, x = () => be(b?.settings.value ?? { locale: "en" });
383
383
  o(x, (e) => {
384
384
  let t = y.value?.view.dom;
385
385
  t && t.setAttribute("dir", e);
386
386
  });
387
- let { showLinkDialog: S, linkUrl: C, linkColor: w, linkDialogRef: T, openLinkDialog: E, insertLink: D, removeLink: O, closeLinkDialog: k, handleLinkKeydown: A } = kr(y, c, () => n.value);
387
+ let { showLinkDialog: S, linkUrl: C, linkColor: w, linkDialogRef: T, openLinkDialog: E, insertLink: D, removeLink: O, closeLinkDialog: k, handleLinkKeydown: A } = Ar(y, c, () => n.value);
388
388
  o(n, (e) => {
389
389
  if (y.value?.setEditable(e, !1), !e) {
390
390
  k();
@@ -392,7 +392,7 @@ function Ar(e) {
392
392
  e && e.view.dispatch(e.state.tr);
393
393
  }
394
394
  });
395
- let { start: j, stop: M } = Gn(() => y.value?.commands.focus("end"), 0, { immediate: !1 }), N = F(null), P = z(!0), I = z(null), L = !1, R = null;
395
+ let { start: j, stop: M } = Kn(() => y.value?.commands.focus("end"), 0, { immediate: !1 }), N = F(null), P = z(!0), I = z(null), L = !1, R = null;
396
396
  async function B() {
397
397
  I.value = null, P.value = !0;
398
398
  try {
@@ -441,7 +441,7 @@ function Ar(e) {
441
441
  let i = n.some((e) => e instanceof HTMLElement && e.classList.contains("tpl-color-popover"));
442
442
  r.closest(".tpl-text-editor-wrapper") || r.closest(".tpl-text-toolbar") || r.closest(".tpl-link-dialog") || i || e.onDone();
443
443
  }
444
- Yn(document, "mousedown", U), u(() => {
444
+ Xn(document, "mousedown", U), u(() => {
445
445
  L = !0, H(), M(), y.value?.destroy();
446
446
  });
447
447
  async function W() {
@@ -455,7 +455,7 @@ function Ar(e) {
455
455
  async function G() {
456
456
  if (!n.value) return;
457
457
  let e = await m();
458
- !L && n.value && (e && y.value ? Er(y.value, e, c) : y.value?.commands.focus());
458
+ !L && n.value && (e && y.value ? Dr(y.value, e, c) : y.value?.commands.focus());
459
459
  }
460
460
  return {
461
461
  editor: y,
@@ -484,25 +484,25 @@ function Ar(e) {
484
484
  };
485
485
  }
486
486
  // src/utils/activeEditorTracker.ts
487
- var jr = /* @__PURE__ */ new Set(), Mr = 0, Nr = 0;
488
- function Pr() {
489
- let e = ++Nr;
490
- return jr.add(e), Mr === 0 && (Mr = e), {
487
+ var Mr = /* @__PURE__ */ new Set(), Nr = 0, Pr = 0;
488
+ function Fr() {
489
+ let e = ++Pr;
490
+ return Mr.add(e), Nr === 0 && (Nr = e), {
491
491
  id: e,
492
- isActive: () => jr.size <= 1 || Mr === e,
492
+ isActive: () => Mr.size <= 1 || Nr === e,
493
493
  claim: () => {
494
- Mr = e;
494
+ Nr = e;
495
495
  },
496
496
  dispose: () => {
497
- if (jr.delete(e), Mr === e) {
498
- let e = Array.from(jr);
499
- Mr = e[e.length - 1] ?? 0;
497
+ if (Mr.delete(e), Nr === e) {
498
+ let e = Array.from(Mr);
499
+ Nr = e[e.length - 1] ?? 0;
500
500
  }
501
501
  }
502
502
  };
503
503
  }
504
504
  // src/utils/resolveLintOptions.ts
505
- function Fr(e) {
505
+ function Ir(e) {
506
506
  let t = e.contentLocale ?? e.content?.settings.locale;
507
507
  return {
508
508
  ...e.lint,
@@ -511,8 +511,8 @@ function Fr(e) {
511
511
  };
512
512
  }
513
513
  // src/composables/usePreviewResolution.ts
514
- var Ir = 500;
515
- function Lr(e) {
514
+ var Lr = 500;
515
+ function Rr(e) {
516
516
  let t = typeof e.resolvePreview == "function", n = z(null), r = z(!1), i = z(!1), a = 0, s = null;
517
517
  function c() {
518
518
  s !== null && (clearTimeout(s), s = null);
@@ -529,7 +529,7 @@ function Lr(e) {
529
529
  try {
530
530
  let e = await t(s);
531
531
  if (o !== a) return;
532
- if (!Ge(e)) {
532
+ if (!Ke(e)) {
533
533
  i.value = !0;
534
534
  return;
535
535
  }
@@ -544,7 +544,7 @@ function Lr(e) {
544
544
  function u() {
545
545
  t && (c(), n.value === null ? l() : s = setTimeout(() => {
546
546
  s = null, l();
547
- }, Ir));
547
+ }, Lr));
548
548
  }
549
549
  return o(() => [
550
550
  e.isActive(),
@@ -567,7 +567,7 @@ function Lr(e) {
567
567
  };
568
568
  }
569
569
  // src/composables/useMergeTagPicker.ts
570
- function Rr() {
570
+ function zr() {
571
571
  let e = z(!1), t = z([]), n = z(null), r = null;
572
572
  function i(i, a) {
573
573
  if (r) {
@@ -597,7 +597,7 @@ function Rr() {
597
597
  };
598
598
  }
599
599
  // src/composables/useLogicTagPicker.ts
600
- function zr() {
600
+ function Br() {
601
601
  let e = z(!1), t = z([]), n = z([]), r = null;
602
602
  function i(i, a) {
603
603
  if (r) {
@@ -627,23 +627,23 @@ function zr() {
627
627
  };
628
628
  }
629
629
  // src/composables/useTemplateLint.ts
630
- function Br(e) {
630
+ function Vr(e) {
631
631
  return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 && e.deliverability === !1 && e.compatibility === !1 && e.localization === !1 : !1;
632
632
  }
633
- var Vr = !1;
634
- function Hr(e) {
633
+ var Hr = !1;
634
+ function Ur(e) {
635
635
  let t = z([]), n = z(0), r = z(-1), i = o(e.content, () => {
636
636
  n.value++;
637
- }, { deep: !0 }), a = z(!1), s = z(!1), c = F(null), l = Br(e.options), u = null, d = !1;
637
+ }, { deep: !0 }), a = z(!1), s = z(!1), c = F(null), l = Vr(e.options), u = null, d = !1;
638
638
  l || f();
639
639
  async function f() {
640
640
  try {
641
- let t = await import("./src-A_cKeTM_.js");
641
+ let t = await import("./src-712f3ofG.js");
642
642
  if (d) return;
643
- c.value = { lintTemplate: t.lintTemplate }, a.value = !0, p(), u = Jn(n, p, { debounce: e.debounce ?? 500 });
643
+ c.value = { lintTemplate: t.lintTemplate }, a.value = !0, p(), u = Yn(n, p, { debounce: e.debounce ?? 500 });
644
644
  } catch {
645
645
  if (d) return;
646
- s.value = !0, Vr || (Vr = !0, $.info("@templatical/quality isn't installed, so the Issues panel and its lint badges are off. Add @templatical/quality to your dependencies to turn them on."));
646
+ s.value = !0, Hr || (Hr = !0, $.info("@templatical/quality isn't installed, so the Issues panel and its lint badges are off. Add @templatical/quality to your dependencies to turn them on."));
647
647
  }
648
648
  }
649
649
  function p() {
@@ -682,7 +682,7 @@ function Hr(e) {
682
682
  };
683
683
  }
684
684
  // src/composables/useKeyboardReorder.ts
685
- function Ur(e, t, n = []) {
685
+ function Wr(e, t, n = []) {
686
686
  let r = z(null), i = z(""), a = null;
687
687
  function o(t) {
688
688
  let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
@@ -709,7 +709,7 @@ function Ur(e, t, n = []) {
709
709
  let i = o(r);
710
710
  if (!i) return "";
711
711
  let a = (i.sectionId ? c(i.sectionId, i.columnIndex ?? 0) : e.content.value.blocks)?.[i.index];
712
- return a ? _t(a, t.t, n) : "";
712
+ return a ? vt(a, t.t, n) : "";
713
713
  }
714
714
  function c(t, n) {
715
715
  return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
@@ -777,14 +777,14 @@ function Ur(e, t, n = []) {
777
777
  };
778
778
  }
779
779
  // src/composables/useUiTheme.ts
780
- function Wr(e) {
781
- let t = Xn("(prefers-color-scheme: dark)");
780
+ function Gr(e) {
781
+ let t = Zn("(prefers-color-scheme: dark)");
782
782
  return { resolvedTheme: N(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
783
783
  }
784
784
  // src/composables/useCustomBlockStylesheets.ts
785
- function Gr(e, t) {
785
+ function Kr(e, t) {
786
786
  return N(() => {
787
- let n = Kr(e.value.blocks);
787
+ let n = qr(e.value.blocks);
788
788
  if (n.size === 0) return [];
789
789
  let r = /* @__PURE__ */ new Set(), i = [];
790
790
  for (let e of n) {
@@ -796,20 +796,20 @@ function Gr(e, t) {
796
796
  return i;
797
797
  });
798
798
  }
799
- function Kr(e) {
799
+ function qr(e) {
800
800
  let t = /* @__PURE__ */ new Set();
801
- return qr(e, t), t;
801
+ return Jr(e, t), t;
802
802
  }
803
- function qr(e, t) {
803
+ function Jr(e, t) {
804
804
  for (let n of e) if (Me(n)) t.add(n.customType);
805
805
  else if (n.type === "section") {
806
806
  let e = n.children;
807
807
  if (!e) continue;
808
- for (let n of e) qr(n, t);
809
- } else Y(n) && qr(n.children, t);
808
+ for (let n of e) Jr(n, t);
809
+ } else Y(n) && Jr(n.children, t);
810
810
  }
811
811
  // src/utils/registerBuiltInBlocks.ts
812
- var Jr = [
812
+ var Yr = [
813
813
  {
814
814
  type: "section",
815
815
  createBlock: ce
@@ -848,7 +848,7 @@ var Jr = [
848
848
  },
849
849
  {
850
850
  type: "table",
851
- createBlock: Ve
851
+ createBlock: He
852
852
  },
853
853
  {
854
854
  type: "spacer",
@@ -856,15 +856,15 @@ var Jr = [
856
856
  },
857
857
  {
858
858
  type: "html",
859
- createBlock: Qe
859
+ createBlock: $e
860
860
  },
861
861
  {
862
862
  type: "countdown",
863
863
  createBlock: K
864
864
  }
865
865
  ];
866
- function Yr(e, t) {
867
- for (let n of Jr) {
866
+ function Xr(e, t) {
867
+ for (let n of Yr) {
868
868
  let r = t[n.type];
869
869
  r && e.registerBuiltIn(n.type, {
870
870
  component: r,
@@ -873,22 +873,22 @@ function Yr(e, t) {
873
873
  }
874
874
  }
875
875
  // src/utils/resolveHtmlBlockPreview.ts
876
- function Xr(e) {
876
+ function Zr(e) {
877
877
  return typeof e == "boolean" ? e : e?.enabled ?? !1;
878
878
  }
879
879
  // src/utils/collectOffPaletteDefaults.ts
880
- function Zr(e) {
880
+ function Qr(e) {
881
881
  return typeof e == "object" && !!e && !Array.isArray(e);
882
882
  }
883
- function Qr(e, t, n) {
884
- let r = new Set(e.map((e) => tr(e))), i = [], a = (e, t) => {
885
- for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(tr(o)) && i.push(`${t}.${n}: ${o}`) : Zr(o) && a(o, `${t}.${n}`);
883
+ function $r(e, t, n) {
884
+ let r = new Set(e.map((e) => nr(e))), i = [], a = (e, t) => {
885
+ for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(nr(o)) && i.push(`${t}.${n}: ${o}`) : Qr(o) && a(o, `${t}.${n}`);
886
886
  }, o = t;
887
- for (let [e, t] of Object.entries(Je)) {
887
+ for (let [e, t] of Object.entries(Ye)) {
888
888
  let n = o?.[e];
889
889
  a({
890
890
  ...t,
891
- ...Zr(n) ? n : {}
891
+ ...Qr(n) ? n : {}
892
892
  }, e);
893
893
  }
894
894
  return a({
@@ -897,7 +897,7 @@ function Qr(e, t, n) {
897
897
  }, "template"), i;
898
898
  }
899
899
  // src/utils/localizedBlockDefaults.ts
900
- function $r(e) {
900
+ function ei(e) {
901
901
  return {
902
902
  title: { content: `<p>${e.blockDefaults.title}</p>` },
903
903
  paragraph: { content: `<p>${e.blockDefaults.paragraph}</p>` },
@@ -905,7 +905,7 @@ function $r(e) {
905
905
  };
906
906
  }
907
907
  // src/i18n/index.ts
908
- var ei = /* #__PURE__ */ Object.assign({
908
+ var ti = /* #__PURE__ */ Object.assign({
909
909
  "./locales/ca.ts": () => import("./ca-DOuIxWRv.js"),
910
910
  "./locales/de.ts": () => import("./de-DaOUfYBX.js"),
911
911
  "./locales/en.ts": () => import("./en-C0pHHMiR.js"),
@@ -914,53 +914,53 @@ var ei = /* #__PURE__ */ Object.assign({
914
914
  "./locales/ja.ts": () => import("./ja-DfaIAoGI.js"),
915
915
  "./locales/nl.ts": () => import("./nl-DkrB-VKZ.js"),
916
916
  "./locales/pt-BR.ts": () => import("./pt-BR-CY5Ye7eP.js")
917
- }), ti = /* #__PURE__ */ Object.assign({
917
+ }), ni = /* #__PURE__ */ Object.assign({
918
918
  "./locales/cloud/de.ts": () => import("./de-6M4JoHoD.js"),
919
919
  "./locales/cloud/en.ts": () => import("./en-FzUuJ8HW.js"),
920
920
  "./locales/cloud/pt-BR.ts": () => import("./pt-BR-Bp92Fc6J.js")
921
921
  });
922
- function ni(e) {
922
+ function ri(e) {
923
923
  return Object.keys(e).map((e) => e.match(/\/([^/]+)\.ts$/)?.[1]).filter((e) => !!e);
924
924
  }
925
- var ri = ni(ei), ii = ni(ti);
926
- function ai(e) {
925
+ var ii = ri(ti), ai = ri(ni);
926
+ function oi(e) {
927
927
  return e.trim().replace(/_/g, "-").toLowerCase();
928
928
  }
929
- function oi(e, t) {
930
- let n = ai(e);
931
- return t.find((e) => ai(e) === n);
929
+ function si(e, t) {
930
+ let n = oi(e);
931
+ return t.find((e) => oi(e) === n);
932
932
  }
933
- function si(e) {
934
- return ai(e).split("-")[0];
935
- }
936
- function ci(e, t) {
937
- return oi(e, t) ?? oi(si(e), t);
933
+ function ci(e) {
934
+ return oi(e).split("-")[0];
938
935
  }
939
936
  function li(e, t) {
940
- return ci(e, t) ?? "en";
937
+ return si(e, t) ?? si(ci(e), t);
941
938
  }
942
- async function ui(e) {
943
- let t = ei[`./locales/${li(e, ri)}.ts`];
944
- return (await t()).default;
939
+ function ui(e, t) {
940
+ return li(e, t) ?? "en";
945
941
  }
946
942
  async function di(e) {
947
- let t = ti[`./locales/cloud/${li(e, ii)}.ts`];
943
+ let t = ti[`./locales/${ui(e, ii)}.ts`];
948
944
  return (await t()).default;
949
945
  }
950
- function fi(e) {
951
- return ci(e, ri) !== void 0;
946
+ async function fi(e) {
947
+ let t = ni[`./locales/cloud/${ui(e, ai)}.ts`];
948
+ return (await t()).default;
952
949
  }
953
950
  function pi(e) {
954
- return ci(e, ii) !== void 0;
951
+ return li(e, ii) !== void 0;
955
952
  }
956
- function mi() {
957
- return [...ri];
953
+ function mi(e) {
954
+ return li(e, ai) !== void 0;
958
955
  }
959
956
  function hi() {
960
957
  return [...ii];
961
958
  }
959
+ function gi() {
960
+ return [...ai];
961
+ }
962
962
  // src/i18n/contentDefaults.ts
963
- var gi = {
963
+ var _i = {
964
964
  en: {
965
965
  video: "Video",
966
966
  days: "Days",
@@ -1025,16 +1025,16 @@ var gi = {
1025
1025
  seconds: "秒",
1026
1026
  expired: "このオファーは終了しました"
1027
1027
  }
1028
- }, _i = new Map(Object.keys(gi).map((e) => [e.toLowerCase(), e]));
1029
- function vi(e) {
1030
- if (!e) return gi.en;
1031
- let t = e.trim().replace(/_/g, "-").toLowerCase(), n = _i.get(t);
1032
- if (n) return gi[n];
1033
- let r = _i.get(si(t));
1034
- return r ? gi[r] : gi.en;
1035
- }
1028
+ }, vi = new Map(Object.keys(_i).map((e) => [e.toLowerCase(), e]));
1036
1029
  function yi(e) {
1037
- let t = vi(e);
1030
+ if (!e) return _i.en;
1031
+ let t = e.trim().replace(/_/g, "-").toLowerCase(), n = vi.get(t);
1032
+ if (n) return _i[n];
1033
+ let r = vi.get(ci(t));
1034
+ return r ? _i[r] : _i.en;
1035
+ }
1036
+ function bi(e) {
1037
+ let t = yi(e);
1038
1038
  return {
1039
1039
  video: { alt: t.video },
1040
1040
  countdown: {
@@ -1047,9 +1047,9 @@ function yi(e) {
1047
1047
  };
1048
1048
  }
1049
1049
  // src/utils/collectColorFieldIssues.ts
1050
- function bi(e, t) {
1050
+ function xi(e, t) {
1051
1051
  let n = [], r = (r, i) => {
1052
- let a = mt(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
1052
+ let a = ht(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
1053
1053
  if (a.invalidPresets.length > 0 && n.push({
1054
1054
  id: s("invalid-presets"),
1055
1055
  message: `${o}: presets skipped invalid entries: ${a.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).` + (a.presetsInherited ? " No valid entries are left, so the field inherits colors.presets." : "")
@@ -1060,8 +1060,8 @@ function bi(e, t) {
1060
1060
  id: s("allow-custom-ignored"),
1061
1061
  message: `${o}: allowCustom: true is ignored because colors.allowCustom is false — a field can narrow the editor-wide palette, never unlock it.`
1062
1062
  }), !a.allowCustom && a.presets.length > 0) {
1063
- let e = r.default ?? "", t = new Set(a.presets.map((e) => tr(e)));
1064
- e !== "" && !t.has(tr(e)) && n.push({
1063
+ let e = r.default ?? "", t = new Set(a.presets.map((e) => nr(e)));
1064
+ e !== "" && !t.has(nr(e)) && n.push({
1065
1065
  id: s("off-palette-default"),
1066
1066
  message: `${o} locks custom colours, but its default ${e} falls outside the field's presets: ${a.presets.join(", ")}. New blocks start on a colour the picker can't reselect — set the default from the same palette.`
1067
1067
  });
@@ -1072,7 +1072,7 @@ function bi(e, t) {
1072
1072
  return n;
1073
1073
  }
1074
1074
  // src/utils/keyboardShortcuts.ts
1075
- function xi(e) {
1075
+ function Si(e) {
1076
1076
  for (let t of e.composedPath()) {
1077
1077
  if (!(t instanceof HTMLElement)) continue;
1078
1078
  if (t.isContentEditable) return !0;
@@ -1081,14 +1081,14 @@ function xi(e) {
1081
1081
  }
1082
1082
  return !1;
1083
1083
  }
1084
- function Si(e, t) {
1084
+ function Ci(e, t) {
1085
1085
  let n = e.metaKey || e.ctrlKey;
1086
1086
  if (n && e.key.toLowerCase() === "s") e.preventDefault(), t.onSave?.();
1087
1087
  else if (n && e.key.toLowerCase() === "z") {
1088
- if (xi(e)) return;
1088
+ if (Si(e)) return;
1089
1089
  e.preventDefault(), e.shiftKey ? t.history.redo() : t.history.undo();
1090
1090
  } else {
1091
- if (t.isPicking?.() && !xi(e)) {
1091
+ if (t.isPicking?.() && !Si(e)) {
1092
1092
  if (e.key === "Escape") {
1093
1093
  e.preventDefault(), t.onCancelPick?.();
1094
1094
  return;
@@ -1102,23 +1102,23 @@ function Si(e, t) {
1102
1102
  return;
1103
1103
  }
1104
1104
  }
1105
- e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !xi(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
1105
+ e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Si(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
1106
1106
  }
1107
1107
  }
1108
1108
  // src/utils/blockComponentResolver.ts
1109
- function Ci(e, t) {
1109
+ function wi(e, t) {
1110
1110
  let n = { fontFamily: t(e.fontFamily) };
1111
1111
  return e.textColor && (n.color = e.textColor), e.linkColor && (n["--tpl-doc-link-color"] = e.linkColor), e.linkUnderline && (n["--tpl-doc-link-underline"] = "underline"), n;
1112
1112
  }
1113
- function wi(e, t, n) {
1113
+ function Ti(e, t, n) {
1114
1114
  if (t) {
1115
1115
  let n = t.getComponent(e);
1116
1116
  if (n) return n;
1117
1117
  }
1118
1118
  return n[e.type] ?? null;
1119
1119
  }
1120
- var Ti = "--tpl-block-bg-layer", Ei = "tpl-has-bg-image";
1121
- function Di(e, t) {
1120
+ var Ei = "--tpl-block-bg-layer", Di = "tpl-has-bg-image";
1121
+ function Oi(e, t) {
1122
1122
  if (t === null) return {};
1123
1123
  let n = Ee(e);
1124
1124
  if (n === null) return {};
@@ -1128,31 +1128,31 @@ function Di(e, t) {
1128
1128
  backgroundSize: n.size,
1129
1129
  backgroundPosition: n.position,
1130
1130
  backgroundRepeat: n.repeat,
1131
- [Ti]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
1131
+ [Ei]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
1132
1132
  };
1133
1133
  }
1134
- function Oi(e) {
1135
- return e && Ti in e ? Ei : void 0;
1134
+ function ki(e) {
1135
+ return e && Ei in e ? Di : void 0;
1136
1136
  }
1137
- var ki = {
1137
+ var Ai = {
1138
1138
  top: "flex-start",
1139
1139
  middle: "center",
1140
1140
  bottom: "flex-end"
1141
1141
  };
1142
- function Ai(e, t) {
1143
- let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${ji(t, e.aspectRatio)}px` } : { aspectRatio: `1 / ${e.aspectRatio ?? 1}` };
1142
+ function ji(e, t) {
1143
+ let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${Mi(t, e.aspectRatio)}px` } : { aspectRatio: `1 / ${e.aspectRatio ?? 1}` };
1144
1144
  return {
1145
1145
  display: "flex",
1146
1146
  flexDirection: "column",
1147
- justifyContent: ki[e.verticalAlign],
1147
+ justifyContent: Ai[e.verticalAlign],
1148
1148
  boxSizing: "border-box",
1149
1149
  ...n
1150
1150
  };
1151
1151
  }
1152
- function ji(e, t) {
1152
+ function Mi(e, t) {
1153
1153
  return Math.max(1, Math.round(Math.max(1, Math.round(e)) * t));
1154
1154
  }
1155
- function Mi(e, t = {}) {
1155
+ function Ni(e, t = {}) {
1156
1156
  if (e.type === "wrapper") return {};
1157
1157
  let { padding: n, backgroundColor: r } = e.styles, i = {
1158
1158
  padding: `${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`,
@@ -1161,44 +1161,44 @@ function Mi(e, t = {}) {
1161
1161
  if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? ke.paragraphGap : ke.paragraphGap}px`), e.type === "section") {
1162
1162
  let n = ve(e.borderRadius);
1163
1163
  n !== null && (i.borderRadius = n);
1164
- let r = We(e);
1165
- r?.applied && e.backgroundImage ? (Object.assign(i, Ai(r, t.heroBoxWidth)), Object.assign(i, Di({
1164
+ let r = Ge(e);
1165
+ r?.applied && e.backgroundImage ? (Object.assign(i, ji(r, t.heroBoxWidth)), Object.assign(i, Oi({
1166
1166
  ...e.backgroundImage,
1167
1167
  size: "cover",
1168
1168
  repeat: !1
1169
- }, t.backgroundImageUrl))) : (Object.assign(i, Pi(e.border)), Object.assign(i, Di(e.backgroundImage, t.backgroundImageUrl)));
1169
+ }, t.backgroundImageUrl))) : (Object.assign(i, Fi(e.border)), Object.assign(i, Oi(e.backgroundImage, t.backgroundImageUrl)));
1170
1170
  }
1171
1171
  return i;
1172
1172
  }
1173
- function Ni(e, t, n, r) {
1174
- return e.type === "section" ? Mi(e, {
1175
- backgroundImageUrl: et(t, e.backgroundImage, n),
1173
+ function Pi(e, t, n, r) {
1174
+ return e.type === "section" ? Ni(e, {
1175
+ backgroundImageUrl: tt(t, e.backgroundImage, n),
1176
1176
  heroBoxWidth: r
1177
- }) : Mi(e);
1177
+ }) : Ni(e);
1178
1178
  }
1179
- function Pi(e) {
1179
+ function Fi(e) {
1180
1180
  let t = {};
1181
- for (let [n, r] of Object.entries(Ze(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
1181
+ for (let [n, r] of Object.entries(Qe(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
1182
1182
  return t;
1183
1183
  }
1184
- function Fi(e, t = {}) {
1184
+ function Ii(e, t = {}) {
1185
1185
  if (e.type !== "section" || !e.wrapper) return null;
1186
1186
  let n = e.wrapper, r = {};
1187
1187
  n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && (r.padding = `${n.padding.top}px ${n.padding.right}px ${n.padding.bottom}px ${n.padding.left}px`);
1188
1188
  let i = ve(n.borderRadius);
1189
- return i !== null && (r.borderRadius = i), Object.assign(r, Di(n.backgroundImage, t.backgroundImageUrl)), r;
1189
+ return i !== null && (r.borderRadius = i), Object.assign(r, Oi(n.backgroundImage, t.backgroundImageUrl)), r;
1190
1190
  }
1191
- function Ii(e, t = {}) {
1191
+ function Li(e, t = {}) {
1192
1192
  if (e.type !== "wrapper") return null;
1193
1193
  let n = {};
1194
1194
  if (e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding) {
1195
1195
  let t = e.styles.padding;
1196
1196
  n.padding = `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`;
1197
1197
  }
1198
- return e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, Di(e.backgroundImage, t.backgroundImageUrl)), n;
1198
+ return e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, Oi(e.backgroundImage, t.backgroundImageUrl)), n;
1199
1199
  }
1200
1200
  // src/utils/mergeTagLabelSegments.ts
1201
- function Li(e, t, n, r = !1) {
1201
+ function Ri(e, t, n, r = !1) {
1202
1202
  if (!e) return [];
1203
1203
  let i = RegExp(`(${n.value.source}|${n.logic.source})`, "g"), a = [], o = 0, s;
1204
1204
  for (; (s = i.exec(e)) !== null;) {
@@ -1216,7 +1216,7 @@ function Li(e, t, n, r = !1) {
1216
1216
  type: "text",
1217
1217
  value: e
1218
1218
  });
1219
- } else qe(i, n) ? a.push({
1219
+ } else Je(i, n) ? a.push({
1220
1220
  type: "tag",
1221
1221
  value: Ne(i, n)
1222
1222
  }) : a.push({
@@ -1231,27 +1231,27 @@ function Li(e, t, n, r = !1) {
1231
1231
  }), a;
1232
1232
  }
1233
1233
  // src/components/MergeTagPreviewText.vue
1234
- var Ri = n({
1234
+ var zi = n({
1235
1235
  name: "MergeTagPreviewText",
1236
1236
  props: { text: {
1237
1237
  type: String,
1238
1238
  required: !0
1239
1239
  } },
1240
1240
  setup(e) {
1241
- let t = f(en, sn), n = f(Vt, Re.liquid), i = f(fn, null), a = N(() => Li(e.text, t.value, n, i?.value ?? !1));
1241
+ let t = f(tn, cn), n = f(Ht, Re.liquid), i = f(pn, null), a = N(() => Ri(e.text, t.value, n, i?.value ?? !1));
1242
1242
  return () => a.value.map((e, t) => e.type === "tag" ? r("span", {
1243
1243
  key: t,
1244
1244
  class: "tpl-merge-tag-label"
1245
1245
  }, e.value) : e.value);
1246
1246
  }
1247
- }), zi = ["href"], Bi = /* @__PURE__ */ n({
1247
+ }), Bi = ["href"], Vi = /* @__PURE__ */ n({
1248
1248
  __name: "ButtonBlock",
1249
1249
  props: {
1250
1250
  block: {},
1251
1251
  viewport: {}
1252
1252
  },
1253
1253
  setup(e) {
1254
- let t = e, n = En(pn, "ButtonBlock"), r = N(() => {
1254
+ let t = e, n = Dn(mn, "ButtonBlock"), r = N(() => {
1255
1255
  let e = {
1256
1256
  display: "inline-block",
1257
1257
  padding: `${t.block.buttonPadding.top}px ${t.block.buttonPadding.right}px ${t.block.buttonPadding.bottom}px ${t.block.buttonPadding.left}px`,
@@ -1263,27 +1263,27 @@ var Ri = n({
1263
1263
  borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : ve(t.block.borderRadius) ?? "0px",
1264
1264
  textAlign: "center"
1265
1265
  };
1266
- return Object.assign(e, Pi(t.block.border)), t.block.fontFamily && (e.fontFamily = n.resolveFontFamily(t.block.fontFamily)), t.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof t.block.width == "number" && (e.width = `${t.block.width}px`, e.boxSizing = "border-box"), e;
1266
+ return Object.assign(e, Fi(t.block.border)), t.block.fontFamily && (e.fontFamily = n.resolveFontFamily(t.block.fontFamily)), t.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof t.block.width == "number" && (e.width = `${t.block.width}px`, e.boxSizing = "border-box"), e;
1267
1267
  }), a = N(() => ({ textAlign: t.block.align ?? "center" }));
1268
1268
  return (t, n) => (i(), b("div", { style: P(a.value) }, [A("a", {
1269
1269
  href: e.block.url || "#",
1270
1270
  style: P(r.value),
1271
1271
  class: "tpl:cursor-default",
1272
1272
  onClick: n[0] ||= k(() => {}, ["prevent"])
1273
- }, [V(Ri, { text: e.block.text }, null, 8, ["text"])], 12, zi)], 4));
1273
+ }, [V(zi, { text: e.block.text }, null, 8, ["text"])], 12, Bi)], 4));
1274
1274
  }
1275
- }), Vi = ["innerHTML"], Hi = [
1275
+ }), Hi = ["innerHTML"], Ui = [
1276
1276
  "src",
1277
1277
  "width",
1278
1278
  "height"
1279
- ], Ui = /* @__PURE__ */ n({
1279
+ ], Wi = /* @__PURE__ */ n({
1280
1280
  __name: "CustomBlockIcon",
1281
1281
  props: {
1282
1282
  icon: {},
1283
1283
  size: {}
1284
1284
  },
1285
1285
  setup(e) {
1286
- let t = e, n = N(() => t.size ?? 20), r = N(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), a = N(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/"))), o = N(() => r.value ? ur(t.icon ?? "") : "");
1286
+ let t = e, n = N(() => t.size ?? 20), r = N(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), a = N(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/"))), o = N(() => r.value ? dr(t.icon ?? "") : "");
1287
1287
  return (t, s) => r.value ? (i(), b("span", {
1288
1288
  key: 0,
1289
1289
  class: "tpl:inline-flex tpl:items-center tpl:justify-center",
@@ -1292,33 +1292,33 @@ var Ri = n({
1292
1292
  height: `${n.value}px`
1293
1293
  }),
1294
1294
  innerHTML: o.value
1295
- }, null, 12, Vi)) : a.value ? (i(), b("img", {
1295
+ }, null, 12, Hi)) : a.value ? (i(), b("img", {
1296
1296
  key: 1,
1297
1297
  src: e.icon,
1298
1298
  width: n.value,
1299
1299
  height: n.value,
1300
1300
  class: "tpl:inline-block",
1301
1301
  alt: ""
1302
- }, null, 8, Hi)) : (i(), D(C(Et), {
1302
+ }, null, 8, Ui)) : (i(), D(C(Dt), {
1303
1303
  key: 2,
1304
1304
  size: n.value,
1305
1305
  "stroke-width": 1.5
1306
1306
  }, null, 8, ["size"]));
1307
1307
  }
1308
- }), Wi = { class: "tpl:w-full" }, Gi = {
1308
+ }), Gi = { class: "tpl:w-full" }, Ki = {
1309
1309
  key: 0,
1310
1310
  class: "tpl:flex tpl:box-border tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-warning)] tpl:bg-[var(--tpl-warning-light)]"
1311
- }, Ki = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, qi = {
1311
+ }, qi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ji = {
1312
1312
  key: 1,
1313
1313
  class: "tpl:flex tpl:box-border tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-danger)] tpl:bg-[var(--tpl-danger-light)]"
1314
- }, Ji = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Yi = {
1314
+ }, Yi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Xi = {
1315
1315
  key: 2,
1316
1316
  class: "tpl:relative"
1317
- }, Xi = ["innerHTML"], Zi = {
1317
+ }, Zi = ["innerHTML"], Qi = {
1318
1318
  key: 0,
1319
1319
  class: "tpl:absolute tpl:inset-0 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:rounded tpl:backdrop-blur-[2px]",
1320
1320
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
1321
- }, Qi = /* @__PURE__ */ n({
1321
+ }, $i = /* @__PURE__ */ n({
1322
1322
  __name: "CustomBlock",
1323
1323
  props: {
1324
1324
  block: {},
@@ -1326,7 +1326,7 @@ var Ri = n({
1326
1326
  },
1327
1327
  emits: ["fetchData"],
1328
1328
  setup(e, { emit: t }) {
1329
- let n = e, r = t, { t: a } = Q(), s = f(Cn, null), c = z(""), l = N(() => dr(c.value)), u = z(!1), p = N(() => s?.getDefinition(n.block.customType)), m = N(() => !!p.value), h = N(() => n.block), { isFetching: g, fetch: _, needsFetch: v, hasDataSource: y } = tt({
1329
+ let n = e, r = t, { t: a } = Q(), s = f(wn, null), c = z(""), l = N(() => fr(c.value)), u = z(!1), p = N(() => s?.getDefinition(n.block.customType)), m = N(() => !!p.value), h = N(() => n.block), { isFetching: g, fetch: _, needsFetch: v, hasDataSource: y } = nt({
1330
1330
  definition: p,
1331
1331
  block: h,
1332
1332
  onUpdate: (e, t) => {
@@ -1335,7 +1335,7 @@ var Ri = n({
1335
1335
  dataSourceFetched: t
1336
1336
  });
1337
1337
  }
1338
- }), S = f(en, sn), w = f(fn, null), T = N(() => {
1338
+ }), S = f(tn, cn), w = f(pn, null), T = N(() => {
1339
1339
  if (!w?.value) return n.block;
1340
1340
  let e = {};
1341
1341
  for (let [t, r] of Object.entries(n.block.fieldValues)) e[t] = typeof r == "string" ? Oe(r, S.value) : r;
@@ -1355,17 +1355,17 @@ var Ri = n({
1355
1355
  }
1356
1356
  }
1357
1357
  }
1358
- let M = Kn(O, 150);
1358
+ let M = qn(O, 150);
1359
1359
  return d(() => {
1360
1360
  O();
1361
1361
  }), o(() => n.block.fieldValues, () => {
1362
1362
  M();
1363
1363
  }, { deep: !0 }), o(() => w?.value, () => {
1364
1364
  M();
1365
- }), (e, t) => (i(), b("div", Wi, [m.value ? u.value ? (i(), b("div", qi, [V(C(jt), {
1365
+ }), (e, t) => (i(), b("div", Gi, [m.value ? u.value ? (i(), b("div", Ji, [V(C(Mt), {
1366
1366
  size: 24,
1367
1367
  class: "tpl:text-[var(--tpl-danger)]"
1368
- }), A("span", Ji, j(C(a).customBlocks.renderError), 1)])) : (i(), b("div", Yi, [A("div", { innerHTML: l.value }, null, 8, Xi), C(y) && C(v) ? (i(), b("div", Zi, [C(g) ? (i(), D(fr, {
1368
+ }), A("span", Yi, j(C(a).customBlocks.renderError), 1)])) : (i(), b("div", Xi, [A("div", { innerHTML: l.value }, null, 8, Zi), C(y) && C(v) ? (i(), b("div", Qi, [C(g) ? (i(), D(pr, {
1369
1369
  key: 1,
1370
1370
  class: "tpl:w-48"
1371
1371
  })) : (i(), b("button", {
@@ -1373,16 +1373,16 @@ var Ri = n({
1373
1373
  type: "button",
1374
1374
  class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2 tpl:text-sm tpl:font-semibold tpl:shadow-[var(--tpl-shadow)] tpl:transition-all tpl:hover:border-[var(--tpl-primary)] tpl:hover:shadow-[var(--tpl-shadow-md)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
1375
1375
  onClick: t[0] ||= k((...e) => C(_) && C(_)(...e), ["stop"])
1376
- }, [p.value?.icon ? (i(), D(Ui, {
1376
+ }, [p.value?.icon ? (i(), D(Wi, {
1377
1377
  key: 0,
1378
1378
  icon: p.value.icon,
1379
1379
  size: 16
1380
- }, null, 8, ["icon"])) : E("", !0), x(" " + j(p.value?.dataSource?.label || C(a).customBlocks.dataSource.fetchButton), 1)]))])) : E("", !0)])) : (i(), b("div", Gi, [V(C(Dt), {
1380
+ }, null, 8, ["icon"])) : E("", !0), x(" " + j(p.value?.dataSource?.label || C(a).customBlocks.dataSource.fetchButton), 1)]))])) : E("", !0)])) : (i(), b("div", Ki, [V(C(Ot), {
1381
1381
  size: 24,
1382
1382
  class: "tpl:text-[var(--tpl-warning)]"
1383
- }), A("span", Ki, j(C(a).customBlocks.definitionNotFound), 1)]))]));
1383
+ }), A("span", qi, j(C(a).customBlocks.definitionNotFound), 1)]))]));
1384
1384
  }
1385
- }), $i = { class: "tpl:w-full" }, ea = /* @__PURE__ */ n({
1385
+ }), ea = { class: "tpl:w-full" }, ta = /* @__PURE__ */ n({
1386
1386
  __name: "DividerBlock",
1387
1387
  props: {
1388
1388
  block: {},
@@ -1394,28 +1394,28 @@ var Ri = n({
1394
1394
  width: t.block.width === "full" ? "100%" : typeof t.block.width == "number" ? `${t.block.width}px` : t.block.width,
1395
1395
  margin: t.block.width === "full" ? "0" : "0 auto"
1396
1396
  }));
1397
- return (e, t) => (i(), b("div", $i, [A("hr", {
1397
+ return (e, t) => (i(), b("div", ea, [A("hr", {
1398
1398
  class: "tpl:m-0 tpl:border-none",
1399
1399
  style: P(n.value)
1400
1400
  }, null, 4)]));
1401
1401
  }
1402
- }), ta = { class: "tpl:w-full" }, na = ["srcdoc", "title"], ra = {
1402
+ }), na = { class: "tpl:w-full" }, ra = ["srcdoc", "title"], ia = {
1403
1403
  key: 1,
1404
1404
  class: "tpl:flex tpl:box-border tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)]"
1405
- }, ia = {
1405
+ }, aa = {
1406
1406
  key: 0,
1407
1407
  class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
1408
- }, aa = {
1408
+ }, oa = {
1409
1409
  key: 1,
1410
1410
  class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
1411
- }, oa = /* @__PURE__ */ n({
1411
+ }, sa = /* @__PURE__ */ n({
1412
1412
  __name: "HtmlBlock",
1413
1413
  props: {
1414
1414
  block: {},
1415
1415
  viewport: {}
1416
1416
  },
1417
1417
  setup(e) {
1418
- let t = e, { t: n } = Q(), r = f(rn, !1), a = N(() => t.block.content.trim().length > 0), s = N(() => r && a.value), c = f(en, sn), l = f(fn, null), d = N(() => l?.value ? Oe(t.block.content, c.value) : t.block.content), p = z(null), m = z(60), h = null;
1418
+ let t = e, { t: n } = Q(), r = f(an, !1), a = N(() => t.block.content.trim().length > 0), s = N(() => r && a.value), c = f(tn, cn), l = f(pn, null), d = N(() => l?.value ? Oe(t.block.content, c.value) : t.block.content), p = z(null), m = z(60), h = null;
1419
1419
  function g() {
1420
1420
  let e = p.value?.contentDocument;
1421
1421
  e && (m.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
@@ -1429,7 +1429,7 @@ var Ri = n({
1429
1429
  e || (h?.disconnect(), h = null);
1430
1430
  }), u(() => {
1431
1431
  h?.disconnect(), h = null;
1432
- }), (e, t) => (i(), b("div", ta, [s.value ? (i(), b("iframe", {
1432
+ }), (e, t) => (i(), b("div", na, [s.value ? (i(), b("iframe", {
1433
1433
  key: 0,
1434
1434
  ref_key: "iframeRef",
1435
1435
  ref: p,
@@ -1439,18 +1439,18 @@ var Ri = n({
1439
1439
  class: "tpl:block tpl:w-full tpl:border-0",
1440
1440
  style: P({ height: `${m.value}px` }),
1441
1441
  onLoad: _
1442
- }, null, 44, na)) : (i(), b("div", ra, [V(C(St), {
1442
+ }, null, 44, ra)) : (i(), b("div", ia, [V(C(Ct), {
1443
1443
  size: 24,
1444
1444
  class: "tpl:text-[var(--tpl-text-dim)]"
1445
- }), a.value ? (i(), b("span", ia, j(C(n).html.preview), 1)) : (i(), b("span", aa, j(C(n).html.empty), 1))]))]));
1445
+ }), a.value ? (i(), b("span", aa, j(C(n).html.preview), 1)) : (i(), b("span", oa, j(C(n).html.empty), 1))]))]));
1446
1446
  }
1447
- }), sa = ["data-drop-enabled"], ca = ["href"], la = ["src", "alt"], ua = ["src", "alt"], da = {
1447
+ }), ca = ["data-drop-enabled"], la = ["href"], ua = ["src", "alt"], da = ["src", "alt"], fa = {
1448
1448
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
1449
1449
  style: { opacity: "0.7" }
1450
- }, fa = ["href"], pa = ["src", "alt"], ma = ["src", "alt"], ha = {
1450
+ }, pa = ["href"], ma = ["src", "alt"], ha = ["src", "alt"], ga = {
1451
1451
  key: 4,
1452
1452
  class: "tpl:flex tpl:box-border tpl:min-h-[100px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
1453
- }, ga = ["aria-label"], _a = { key: 1 }, va = /* @__PURE__ */ n({
1453
+ }, _a = ["aria-label"], va = { key: 1 }, ya = /* @__PURE__ */ n({
1454
1454
  __name: "ImageBlock",
1455
1455
  props: {
1456
1456
  block: {},
@@ -1458,20 +1458,20 @@ var Ri = n({
1458
1458
  },
1459
1459
  emits: ["update"],
1460
1460
  setup(e, { emit: t }) {
1461
- let n = e, r = t, { t: a } = Q(), { syntax: o } = er(), s = N(() => He(n.block.src, o));
1461
+ let n = e, r = t, { t: a } = Q(), { syntax: o } = tr(), s = N(() => Ue(n.block.src, o));
1462
1462
  function c(e) {
1463
1463
  let t = {
1464
1464
  src: e.url,
1465
- ...lt(ot(e.width, e.height))
1465
+ ...ut(st(e.width, e.height))
1466
1466
  };
1467
1467
  e.alt && (t.alt = e.alt), r("update", t);
1468
1468
  }
1469
- let l = z(), { canBrowse: u, dropEnabled: d, isUploading: f, showOverlay: p, openMediaBrowser: m } = pt({
1469
+ let l = z(), { canBrowse: u, dropEnabled: d, isUploading: f, showOverlay: p, openMediaBrowser: m } = mt({
1470
1470
  target: l,
1471
1471
  blocked: s,
1472
1472
  apply: c
1473
1473
  }), h = N(() => ({ textAlign: n.block.align })), g = N(() => {
1474
- let e = n.block.border, t = ["left", "right"].map((t) => Ye(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
1474
+ let e = n.block.border, t = ["left", "right"].map((t) => Xe(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
1475
1475
  return t > 0 ? `calc(100% - ${t}px)` : "100%";
1476
1476
  }), _ = N(() => {
1477
1477
  let e = n.block.align;
@@ -1480,12 +1480,12 @@ var Ri = n({
1480
1480
  width: n.block.width === "full" ? g.value : `${n.block.width}px`,
1481
1481
  height: n.block.height ? `${n.block.height}px` : void 0,
1482
1482
  borderRadius: ve(n.block.borderRadius) ?? void 0,
1483
- ...Pi(n.block.border),
1483
+ ...Fi(n.block.border),
1484
1484
  display: "block",
1485
1485
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
1486
1486
  marginRight: e === "center" ? "auto" : void 0
1487
1487
  };
1488
- }), v = at(() => s.value ? void 0 : n.block.src), y = at(() => s.value ? n.block.placeholderUrl : void 0);
1488
+ }), v = ot(() => s.value ? void 0 : n.block.src), y = ot(() => s.value ? n.block.placeholderUrl : void 0);
1489
1489
  return (t, n) => (i(), b("div", {
1490
1490
  ref_key: "dropZoneRef",
1491
1491
  ref: l,
@@ -1493,7 +1493,7 @@ var Ri = n({
1493
1493
  "data-drop-enabled": C(d),
1494
1494
  class: "tpl:relative tpl:w-full",
1495
1495
  style: P(h.value)
1496
- }, [C(p) ? (i(), D(ct, {
1496
+ }, [C(p) ? (i(), D(lt, {
1497
1497
  key: 0,
1498
1498
  uploading: C(f),
1499
1499
  size: "canvas"
@@ -1509,22 +1509,22 @@ var Ri = n({
1509
1509
  src: C(y),
1510
1510
  alt: e.block.alt || C(a).image.altTextPlaceholder,
1511
1511
  style: P(_.value)
1512
- }, null, 12, la)], 8, ca)) : (i(), b("img", {
1512
+ }, null, 12, ua)], 8, la)) : (i(), b("img", {
1513
1513
  key: 1,
1514
1514
  class: "tpl:border-0",
1515
1515
  src: C(y),
1516
1516
  alt: e.block.alt,
1517
1517
  style: P(_.value)
1518
- }, null, 12, ua))], 64)) : e.block.src && s.value ? (i(), b("div", {
1518
+ }, null, 12, da))], 64)) : e.block.src && s.value ? (i(), b("div", {
1519
1519
  key: 2,
1520
1520
  class: "tpl:!flex tpl:box-border tpl:min-h-[120px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
1521
1521
  style: P([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, _.value])
1522
- }, [V(C(At), {
1522
+ }, [V(C(jt), {
1523
1523
  size: 32,
1524
1524
  "stroke-width": 1.5,
1525
1525
  class: "tpl:text-[var(--tpl-primary)]",
1526
1526
  style: { opacity: "0.5" }
1527
- }), A("span", da, [V(Ri, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (i(), b(B, { key: 3 }, [e.block.linkUrl ? (i(), b("a", {
1527
+ }), A("span", fa, [V(zi, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (i(), b(B, { key: 3 }, [e.block.linkUrl ? (i(), b("a", {
1528
1528
  key: 0,
1529
1529
  href: e.block.linkUrl,
1530
1530
  target: "_blank",
@@ -1536,33 +1536,33 @@ var Ri = n({
1536
1536
  src: C(v),
1537
1537
  alt: e.block.alt || C(a).image.altTextPlaceholder,
1538
1538
  style: P(_.value)
1539
- }, null, 12, pa)], 8, fa)) : (i(), b("img", {
1539
+ }, null, 12, ma)], 8, pa)) : (i(), b("img", {
1540
1540
  key: 1,
1541
1541
  class: "tpl:border-0",
1542
1542
  src: C(v),
1543
1543
  alt: e.block.alt,
1544
1544
  style: P(_.value)
1545
- }, null, 12, ma))], 64)) : (i(), b("div", ha, [C(u) ? (i(), b("button", {
1545
+ }, null, 12, ha))], 64)) : (i(), b("div", ga, [C(u) ? (i(), b("button", {
1546
1546
  key: 0,
1547
1547
  "aria-label": C(a).image.browseMedia,
1548
1548
  class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:cursor-pointer tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
1549
1549
  onClick: n[2] ||= k((...e) => C(m) && C(m)(...e), ["stop"])
1550
- }, [V(C(At), {
1550
+ }, [V(C(jt), {
1551
1551
  size: 14,
1552
1552
  "stroke-width": 1.5
1553
- }), x(" " + j(C(a).image.browseMedia), 1)], 8, ga)) : (i(), b("span", _a, j(C(a).image.clickToAdd), 1))]))], 12, sa));
1553
+ }), x(" " + j(C(a).image.browseMedia), 1)], 8, _a)) : (i(), b("span", va, j(C(a).image.clickToAdd), 1))]))], 12, ca));
1554
1554
  }
1555
- }), ya = { class: "tpl:w-full" }, ba = ["href"], xa = {
1555
+ }), ba = { class: "tpl:w-full" }, xa = ["href"], Sa = {
1556
1556
  key: 1,
1557
1557
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
1558
- }, Sa = /* @__PURE__ */ n({
1558
+ }, Ca = /* @__PURE__ */ n({
1559
1559
  __name: "MenuBlock",
1560
1560
  props: {
1561
1561
  block: {},
1562
1562
  viewport: {}
1563
1563
  },
1564
1564
  setup(e) {
1565
- let t = e, { t: n } = Q(), r = En(pn, "MenuBlock"), a = N(() => ({
1565
+ let t = e, { t: n } = Q(), r = Dn(mn, "MenuBlock"), a = N(() => ({
1566
1566
  display: "flex",
1567
1567
  flexWrap: "wrap",
1568
1568
  gap: `0 ${t.block.spacing}px`,
@@ -1574,7 +1574,7 @@ var Ri = n({
1574
1574
  function s(e) {
1575
1575
  return e || t.block.linkColor || t.block.color;
1576
1576
  }
1577
- return (t, r) => (i(), b("div", ya, [o.value ? (i(), b("div", {
1577
+ return (t, r) => (i(), b("div", ba, [o.value ? (i(), b("div", {
1578
1578
  key: 0,
1579
1579
  style: P(a.value)
1580
1580
  }, [(i(!0), b(B, null, l(e.block.items, (t, n) => (i(), b(B, { key: t.id }, [A("a", {
@@ -1586,18 +1586,18 @@ var Ri = n({
1586
1586
  textDecoration: t.underline ? "underline" : "none"
1587
1587
  }),
1588
1588
  onClick: r[0] ||= k(() => {}, ["prevent"])
1589
- }, [V(Ri, { text: t.text || "..." }, null, 8, ["text"])], 12, ba), n < e.block.items.length - 1 ? (i(), b("span", {
1589
+ }, [V(zi, { text: t.text || "..." }, null, 8, ["text"])], 12, xa), n < e.block.items.length - 1 ? (i(), b("span", {
1590
1590
  key: 0,
1591
1591
  style: P({
1592
1592
  color: e.block.separatorColor,
1593
1593
  padding: `0 ${e.block.spacing}px`
1594
1594
  })
1595
- }, j(e.block.separator), 5)) : E("", !0)], 64))), 128))], 4)) : (i(), b("div", xa, [V(C(kt), { size: 16 }), A("span", null, j(C(n).menu.addLinks), 1)]))]));
1595
+ }, j(e.block.separator), 5)) : E("", !0)], 64))), 128))], 4)) : (i(), b("div", Sa, [V(C(At), { size: 16 }), A("span", null, j(C(n).menu.addLinks), 1)]))]));
1596
1596
  }
1597
1597
  });
1598
1598
  // src/composables/useEditableTextBlock.ts
1599
- function Ca(e) {
1600
- let t = f(en, sn), n = f(fn, null), { syntax: r } = er(), i = N(() => n?.value ? Ae(e(), t.value) : Be(e(), t.value)), a = N(() => _e(dr(Te(i.value, r)))), o = z(!1), s = z(null), { top: c, left: l } = Zn(s), { toLocal: u } = or(), d = N(() => u({
1599
+ function wa(e) {
1600
+ let t = f(tn, cn), n = f(pn, null), { syntax: r } = tr(), i = N(() => n?.value ? Ae(e(), t.value) : Ve(e(), t.value)), a = N(() => _e(fr(Te(i.value, r)))), o = z(!1), s = z(null), { top: c, left: l } = Qn(s), { toLocal: u } = sr(), d = N(() => u({
1601
1601
  top: c.value - 8,
1602
1602
  left: l.value
1603
1603
  }));
@@ -1617,14 +1617,14 @@ function Ca(e) {
1617
1617
  };
1618
1618
  }
1619
1619
  // src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
1620
- var wa = ["innerHTML"], Ta = /* @__PURE__ */ n({
1620
+ var Ta = ["innerHTML"], Ea = /* @__PURE__ */ n({
1621
1621
  __name: "ParagraphBlock",
1622
1622
  props: {
1623
1623
  block: {},
1624
1624
  viewport: {}
1625
1625
  },
1626
1626
  setup(e) {
1627
- let t = e, n = g(() => import("./ParagraphEditor-B2UU1Q5I.js").then((e) => e.t)), { isEditing: r, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = Ca(() => t.block.content);
1627
+ let t = e, n = g(() => import("./ParagraphEditor-CVW-kuHW.js").then((e) => e.t)), { isEditing: r, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = wa(() => t.block.content);
1628
1628
  return (t, u) => (i(), b("div", {
1629
1629
  ref_key: "blockRef",
1630
1630
  ref: a,
@@ -1643,11 +1643,11 @@ var wa = ["innerHTML"], Ta = /* @__PURE__ */ n({
1643
1643
  key: 1,
1644
1644
  class: "tpl-text-content tpl:outline-none",
1645
1645
  innerHTML: C(s)
1646
- }, null, 8, wa))], 544));
1646
+ }, null, 8, Ta))], 544));
1647
1647
  }
1648
1648
  });
1649
1649
  // src/utils/updateBlockList.ts
1650
- function Ea(e, t, n, r = 0, i) {
1650
+ function Da(e, t, n, r = 0, i) {
1651
1651
  let a = n ? e.content.value.blocks.find((e) => e.id === n) : void 0, o = n ? a?.type === "section" ? a.children[r] ?? [] : [] : e.content.value.blocks, s = t.map((e) => e.id);
1652
1652
  if (o.some((e) => !s.includes(e.id))) return;
1653
1653
  let c = t.filter((e) => !o.some((t) => t.id === e.id)), l, u = -1;
@@ -1660,7 +1660,7 @@ function Ea(e, t, n, r = 0, i) {
1660
1660
  l && (e.findBlockLocation(l.id) ? e.moveBlock(l.id, u, n, r) : e.addBlock(JSON.parse(JSON.stringify(l)), n, r, u));
1661
1661
  }
1662
1662
  // src/utils/mergeTagTokens.ts
1663
- function Da(e, t, n) {
1663
+ function Oa(e, t, n) {
1664
1664
  let r = [], i = "\0MT";
1665
1665
  for (; e.includes(i);) i += "_";
1666
1666
  let a = n === "html" ? Fe(e, (e) => {
@@ -1683,44 +1683,44 @@ function Da(e, t, n) {
1683
1683
  }
1684
1684
  return [...r, ...s.map((e) => e.value)].sort();
1685
1685
  }
1686
- function Oa(e, t, n, r) {
1687
- return JSON.stringify(Da(e, n, r)) !== JSON.stringify(Da(t, n, r));
1686
+ function ka(e, t, n, r) {
1687
+ return JSON.stringify(Oa(e, n, r)) !== JSON.stringify(Oa(t, n, r));
1688
1688
  }
1689
1689
  // src/components/localization/LocaleStatusChip.vue?vue&type=script&setup=true&lang.ts
1690
- var ka = [
1690
+ var Aa = [
1691
1691
  "data-state",
1692
1692
  "aria-label",
1693
1693
  "title",
1694
1694
  "aria-expanded",
1695
1695
  "aria-controls",
1696
1696
  "onKeydown"
1697
- ], Aa = [
1697
+ ], ja = [
1698
1698
  "aria-label",
1699
1699
  "aria-labelledby",
1700
1700
  "aria-describedby",
1701
1701
  "onKeydown"
1702
- ], ja = ["id"], Ma = ["id"], Na = { class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, Pa = ["disabled"], Fa = {
1702
+ ], Ma = ["id"], Na = ["id"], Pa = { class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, Fa = ["disabled"], Ia = {
1703
1703
  key: 0,
1704
1704
  class: "tpl:m-0 tpl:mb-2 tpl:text-xs tpl:font-medium"
1705
- }, Ia = {
1705
+ }, La = {
1706
1706
  key: 1,
1707
1707
  class: "tpl:m-0"
1708
- }, La = { class: "tpl:m-0" }, Ra = { class: "tpl:mt-2 tpl:mb-0 tpl:break-words tpl:text-[var(--tpl-chrome-text-muted)]" }, za = {
1708
+ }, Ra = { class: "tpl:m-0" }, za = { class: "tpl:mt-2 tpl:mb-0 tpl:break-words tpl:text-[var(--tpl-chrome-text-muted)]" }, Ba = {
1709
1709
  key: 3,
1710
1710
  class: "tpl:m-0"
1711
- }, Ba = {
1711
+ }, Va = {
1712
1712
  key: 4,
1713
1713
  class: "tpl:m-0"
1714
- }, Va = {
1714
+ }, Ha = {
1715
1715
  key: 5,
1716
1716
  class: "tpl:m-0"
1717
- }, Ha = {
1717
+ }, Ua = {
1718
1718
  key: 6,
1719
1719
  class: "tpl:m-0 tpl:list-none tpl:p-0"
1720
- }, Ua = ["onClick"], Wa = {
1720
+ }, Wa = ["onClick"], Ga = {
1721
1721
  key: 7,
1722
1722
  class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:gap-1"
1723
- }, Ga = ["data-testid", "disabled"], Ka = /*#__PURE__*/ yt(/* @__PURE__ */ n({
1723
+ }, Ka = ["data-testid", "disabled"], qa = /*#__PURE__*/ bt(/* @__PURE__ */ n({
1724
1724
  __name: "LocaleStatusChip",
1725
1725
  props: {
1726
1726
  blockId: {},
@@ -1740,24 +1740,24 @@ var ka = [
1740
1740
  },
1741
1741
  emits: ["target"],
1742
1742
  setup(e, { emit: n }) {
1743
- let r = e, a = n, s = f(Pn, null), c = f(Tn, null), u = f(Ut, null), d = f(An, "en") ?? "en", { t: m, format: h } = Q(), g = $n(), _ = ir(), { toLocal: v } = or(), y = z(null), x = z(null), M = z(!1), F = z(!1), I = z(null), L = z(null), R = null, V = z({
1743
+ let r = e, a = n, s = f(Fn, null), c = f(En, null), u = f(Wt, null), d = f(jn, "en") ?? "en", { t: m, format: h } = Q(), g = er(), _ = ar(), { toLocal: v } = sr(), y = z(null), x = z(null), M = z(!1), F = z(!1), I = z(null), L = z(null), R = null, V = z({
1744
1744
  top: 0,
1745
1745
  left: 0
1746
1746
  }), H = z({
1747
1747
  maxHeight: 0,
1748
1748
  maxWidth: 0
1749
- }), U = `tpl-locale-popover-${fe()}`, W = N(() => Vn(s?.activeLocale?.value ?? "")), G = N(() => Vn(s?.content.value.settings.locale ?? "en"));
1749
+ }), U = `tpl-locale-popover-${fe()}`, W = N(() => Hn(s?.activeLocale?.value ?? "")), G = N(() => Hn(s?.content.value.settings.locale ?? "en"));
1750
1750
  function ee(e, t) {
1751
1751
  switch (e) {
1752
1752
  case "tags-differ": return m.localization.tagsDiffer;
1753
1753
  case "hidden": return h(m.localization.hidden, { language: W.value });
1754
1754
  case "changed": return h(m.localization.changed, { language: W.value });
1755
- case "default-stale": return Bn(m.localization.staleLanguages, t, d);
1756
- case "missing": return t === 1 ? m.localization.notTranslated : Bn(m.localization.notTranslatedCount, t, d);
1757
- default: return t === 1 ? m.localization.outOfDate : Bn(m.localization.staleCount, t, d);
1755
+ case "default-stale": return Vn(m.localization.staleLanguages, t, d);
1756
+ case "missing": return t === 1 ? m.localization.notTranslated : Vn(m.localization.notTranslatedCount, t, d);
1757
+ default: return t === 1 ? m.localization.outOfDate : Vn(m.localization.staleCount, t, d);
1758
1758
  }
1759
1759
  }
1760
- let te = N(() => ee(r.state, r.count)), K = N(() => r.popoverState ?? r.state), ne = N(() => r.popoverCount ?? r.count), q = N(() => ee(K.value, ne.value)), re = N(() => r.state === "hidden" ? wt : r.state === "changed" ? xt : r.state === "default-stale" ? Pt : r.state === "stale" ? Ct : jt), ie = N(() => K.value === "default-stale" || (K.value === "missing" || K.value === "stale") && ne.value > 1), J = N(() => r.editable && r.eligibleGaps && c?.isAvailable.value);
1760
+ let te = N(() => ee(r.state, r.count)), K = N(() => r.popoverState ?? r.state), ne = N(() => r.popoverCount ?? r.count), q = N(() => ee(K.value, ne.value)), re = N(() => r.state === "hidden" ? Tt : r.state === "changed" ? St : r.state === "default-stale" ? Ft : r.state === "stale" ? wt : Mt), ie = N(() => K.value === "default-stale" || (K.value === "missing" || K.value === "stale") && ne.value > 1), J = N(() => r.editable && r.eligibleGaps && c?.isAvailable.value);
1761
1761
  function Y(e = !1) {
1762
1762
  M.value = !1, F.value = !1, R = null, e && y.value?.focus({ preventScroll: !0 });
1763
1763
  }
@@ -1866,7 +1866,7 @@ var ka = [
1866
1866
  size: 12,
1867
1867
  "stroke-width": 2,
1868
1868
  "aria-hidden": "true"
1869
- }))], 40, ka), C(_) && M.value ? (i(), D(T, {
1869
+ }))], 40, Aa), C(_) && M.value ? (i(), D(T, {
1870
1870
  key: 0,
1871
1871
  to: C(_)
1872
1872
  }, [A("div", {
@@ -1892,80 +1892,80 @@ var ka = [
1892
1892
  A("h3", {
1893
1893
  id: `${U}-question`,
1894
1894
  class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
1895
- }, j(C(Bn)(C(m).localization.translationConfirmation, e.translationCount ?? 0, C(d))), 9, ja),
1895
+ }, j(C(Vn)(C(m).localization.translationConfirmation, e.translationCount ?? 0, C(d))), 9, Ma),
1896
1896
  A("p", {
1897
1897
  id: `${U}-warning`,
1898
1898
  class: "tpl:m-0 tpl:text-[var(--tpl-text-muted)]"
1899
- }, j(C(h)(C(m).localization.translationDescription, { language: W.value })), 9, Ma),
1900
- A("div", Na, [A("button", {
1899
+ }, j(C(h)(C(m).localization.translationDescription, { language: W.value })), 9, Na),
1900
+ A("div", Pa, [A("button", {
1901
1901
  ref_key: "confirmationCancel",
1902
1902
  ref: L,
1903
1903
  type: "button",
1904
1904
  "data-testid": "translation-confirm-cancel",
1905
- class: w(C(Un)),
1905
+ class: w(C(Wn)),
1906
1906
  onClick: he
1907
1907
  }, j(C(m).localization.cancel), 3), A("button", {
1908
1908
  type: "button",
1909
1909
  "data-testid": "translation-confirm",
1910
- class: w(C(Wn)),
1910
+ class: w(C(Gn)),
1911
1911
  disabled: !J.value || !!C(c)?.running.value || !e.translationCount,
1912
1912
  onClick: _e
1913
- }, j(C(Bn)(C(m).localization.translateAllFields, e.translationCount ?? 0, C(d))), 11, Pa)])
1913
+ }, j(C(Vn)(C(m).localization.translateAllFields, e.translationCount ?? 0, C(d))), 11, Fa)])
1914
1914
  ], 64)) : (i(), b(B, { key: 1 }, [
1915
- ie.value ? (i(), b("p", Fa, j(q.value), 1)) : E("", !0),
1916
- K.value === "missing" ? (i(), b("p", Ia, j(C(h)(C(m).localization.missingExplanation, { default: G.value })), 1)) : K.value === "stale" ? (i(), b(B, { key: 2 }, [A("p", La, j(C(h)(C(m).localization.staleExplanation, { default: G.value })), 1), A("p", Ra, j(C(h)(C(m).localization.currentExcerpt, { excerpt: e.excerpt })), 1)], 64)) : K.value === "tags-differ" ? (i(), b("p", za, j(C(h)(C(m).localization.tagsDifferExplanation, { default: G.value })), 1)) : K.value === "changed" ? (i(), b("p", Ba, j(C(Bn)(C(m).localization.changedProperties, ne.value, C(d), { default: G.value })), 1)) : K.value === "hidden" ? (i(), b("p", Va, j(C(h)(C(m).localization.hiddenExplanation, { language: W.value })), 1)) : (i(), b("ul", Ha, [(i(!0), b(B, null, l(e.staleLocales, (e) => (i(), b("li", {
1915
+ ie.value ? (i(), b("p", Ia, j(q.value), 1)) : E("", !0),
1916
+ K.value === "missing" ? (i(), b("p", La, j(C(h)(C(m).localization.missingExplanation, { default: G.value })), 1)) : K.value === "stale" ? (i(), b(B, { key: 2 }, [A("p", Ra, j(C(h)(C(m).localization.staleExplanation, { default: G.value })), 1), A("p", za, j(C(h)(C(m).localization.currentExcerpt, { excerpt: e.excerpt })), 1)], 64)) : K.value === "tags-differ" ? (i(), b("p", Ba, j(C(h)(C(m).localization.tagsDifferExplanation, { default: G.value })), 1)) : K.value === "changed" ? (i(), b("p", Va, j(C(Vn)(C(m).localization.changedProperties, ne.value, C(d), { default: G.value })), 1)) : K.value === "hidden" ? (i(), b("p", Ha, j(C(h)(C(m).localization.hiddenExplanation, { language: W.value })), 1)) : (i(), b("ul", Ua, [(i(!0), b(B, null, l(e.staleLocales, (e) => (i(), b("li", {
1917
1917
  key: e,
1918
1918
  class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3"
1919
- }, [A("span", null, j(C(Vn)(e)), 1), A("button", {
1919
+ }, [A("span", null, j(C(Hn)(e)), 1), A("button", {
1920
1920
  type: "button",
1921
- class: w(C(Hn)),
1921
+ class: w(C(Un)),
1922
1922
  onClick: (t) => pe(e)
1923
- }, j(C(m).localization.open), 11, Ua)]))), 128))])),
1924
- e.editable && K.value !== "default-stale" ? (i(), b("div", Wa, [
1923
+ }, j(C(m).localization.open), 11, Wa)]))), 128))])),
1924
+ e.editable && K.value !== "default-stale" ? (i(), b("div", Ga, [
1925
1925
  J.value && (K.value === "missing" || K.value === "stale" || K.value === "tags-differ") ? (i(), b("button", {
1926
1926
  key: 0,
1927
1927
  type: "button",
1928
1928
  ref_key: "retranslate",
1929
1929
  ref: I,
1930
1930
  "data-testid": K.value === "missing" ? "locale-translate" : "locale-retranslate",
1931
- class: w(C(Un)),
1931
+ class: w(C(Wn)),
1932
1932
  disabled: !!C(c)?.running.value,
1933
1933
  onClick: me
1934
- }, j(K.value === "missing" ? C(m).localization.translate : C(m).localization.retranslate), 11, Ga)) : E("", !0),
1934
+ }, j(K.value === "missing" ? C(m).localization.translate : C(m).localization.retranslate), 11, Ka)) : E("", !0),
1935
1935
  K.value === "stale" || K.value === "tags-differ" ? (i(), b(B, { key: 1 }, [K.value === "stale" ? (i(), b("button", {
1936
1936
  key: 0,
1937
1937
  type: "button",
1938
1938
  "data-testid": "locale-keep",
1939
- class: w(C(J.value ? Hn : Un)),
1939
+ class: w(C(J.value ? Un : Wn)),
1940
1940
  onClick: le
1941
1941
  }, j(C(m).localization.keep), 3)) : E("", !0), A("button", {
1942
1942
  type: "button",
1943
1943
  "data-testid": "locale-use-default",
1944
- class: w(C(K.value === "tags-differ" && !J.value ? Un : Hn)),
1944
+ class: w(C(K.value === "tags-differ" && !J.value ? Wn : Un)),
1945
1945
  onClick: r[0] ||= (t) => ue(K.value === "tags-differ" ? e.tagsDiffer ?? [] : e.stale)
1946
1946
  }, j(C(h)(C(m).localization.useDefaultLanguage, { default: G.value })), 3)], 64)) : E("", !0),
1947
1947
  K.value === "changed" ? (i(), b("button", {
1948
1948
  key: 2,
1949
1949
  type: "button",
1950
1950
  "data-testid": "locale-reset",
1951
- class: w(C(Un)),
1951
+ class: w(C(Wn)),
1952
1952
  onClick: r[1] ||= (t) => ue(e.setPaths)
1953
1953
  }, j(C(m).localization.resetChanges), 3)) : E("", !0),
1954
1954
  K.value === "hidden" ? (i(), b("button", {
1955
1955
  key: 3,
1956
1956
  type: "button",
1957
1957
  "data-testid": "locale-show",
1958
- class: w(C(Un)),
1958
+ class: w(C(Wn)),
1959
1959
  onClick: de
1960
1960
  }, j(C(m).localization.show), 3)) : E("", !0)
1961
1961
  ])) : E("", !0)
1962
- ], 64))], 44, Aa)], 8, ["to"])) : E("", !0)], 64));
1962
+ ], 64))], 44, ja)], 8, ["to"])) : E("", !0)], 64));
1963
1963
  }
1964
- }), [["__scopeId", "data-v-3343ae7d"]]), qa = /* @__PURE__ */ n({
1964
+ }), [["__scopeId", "data-v-3343ae7d"]]), Ja = /* @__PURE__ */ n({
1965
1965
  __name: "LocaleMarkers",
1966
1966
  props: { block: {} },
1967
1967
  setup(e) {
1968
- let t = e, n = f(Pn, null), r = f($t, void 0), a = f(vn, []), s = f(Vt, Re.liquid), c = f(yn, N(() => /* @__PURE__ */ new Set())), l = N(() => n?.activeLocale?.value), u = N(() => l.value ? t.block.l10n?.[l.value] : void 0), d = N(() => ({
1968
+ let t = e, n = f(Fn, null), r = f(en, void 0), a = f(yn, []), s = f(Ht, Re.liquid), c = f(bn, N(() => /* @__PURE__ */ new Set())), l = N(() => n?.activeLocale?.value), u = N(() => l.value ? t.block.l10n?.[l.value] : void 0), d = N(() => ({
1969
1969
  blocks: [t.block.type === "section" || t.block.type === "wrapper" ? {
1970
1970
  ...t.block,
1971
1971
  children: []
@@ -1980,8 +1980,8 @@ var ka = [
1980
1980
  translated: []
1981
1981
  }), m = N(() => p.value.stale.map((e) => e.slice(t.block.id.length + 1))), h = N(() => p.value.translated.flatMap((e) => {
1982
1982
  let n = e.slice(t.block.id.length + 1), r = q(t.block, n), i = u.value?.text?.[n]?.value, a = t.block.type === "html" || H[t.block.type]?.includes(n) ? "html" : "text";
1983
- return typeof r == "string" && i !== void 0 && Oa(r, i, s, a) ? [n] : [];
1984
- })), g = z(null), _ = N(() => n && l.value && !c.value.has(l.value) ? Ke(d.value, l.value, {
1983
+ return typeof r == "string" && i !== void 0 && ka(r, i, s, a) ? [n] : [];
1984
+ })), g = z(null), _ = N(() => n && l.value && !c.value.has(l.value) ? qe(d.value, l.value, {
1985
1985
  syntax: s,
1986
1986
  definitions: a,
1987
1987
  doNotTranslate: r?.doNotTranslate,
@@ -2007,7 +2007,7 @@ var ka = [
2007
2007
  let n = e.split(/<[^>]*>/).join("");
2008
2008
  return Array.from(n).slice(0, 60).join("");
2009
2009
  });
2010
- return (t, n) => C(r) && x.value ? (i(), D(Ka, {
2010
+ return (t, n) => C(r) && x.value ? (i(), D(qa, {
2011
2011
  key: 0,
2012
2012
  "block-id": e.block.id,
2013
2013
  state: x.value,
@@ -2041,21 +2041,21 @@ var ka = [
2041
2041
  "editable"
2042
2042
  ])) : E("", !0);
2043
2043
  }
2044
- }), Ja = [
2044
+ }), Ya = [
2045
2045
  "data-block-id",
2046
2046
  "data-block-type",
2047
2047
  "data-tpl-picked"
2048
- ], Ya = ["aria-label"], Xa = ["data-lock-holder"], Za = ["aria-label"], Qa = [
2048
+ ], Xa = ["aria-label"], Za = ["data-lock-holder"], Qa = ["aria-label"], $a = [
2049
2049
  "aria-label",
2050
2050
  "aria-pressed",
2051
2051
  "title"
2052
- ], $a = ["aria-label", "title"], eo = ["aria-label", "title"], to = ["aria-label", "title"], no = {
2052
+ ], eo = ["aria-label", "title"], to = ["aria-label", "title"], no = ["aria-label", "title"], ro = {
2053
2053
  key: 3,
2054
2054
  class: "tpl-block-hidden-overlay tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[5] tpl:flex tpl:items-center tpl:justify-center tpl:rounded-sm"
2055
- }, ro = { class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-2 tpl:py-1 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-chrome-text-muted)] tpl:shadow-[var(--tpl-shadow-sm)]" }, io = {
2055
+ }, io = { class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-2 tpl:py-1 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-chrome-text-muted)] tpl:shadow-[var(--tpl-shadow-sm)]" }, ao = {
2056
2056
  key: 4,
2057
2057
  class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
2058
- }, ao = ["aria-label", "title"], oo = /*#__PURE__*/ yt(/* @__PURE__ */ n({
2058
+ }, oo = ["aria-label", "title"], so = /*#__PURE__*/ bt(/* @__PURE__ */ n({
2059
2059
  __name: "BlockWrapper",
2060
2060
  props: {
2061
2061
  block: {},
@@ -2068,7 +2068,7 @@ var ka = [
2068
2068
  },
2069
2069
  emits: ["select"],
2070
2070
  setup(e, { emit: t }) {
2071
- let n = g(() => import("./BlockIssueBadge-D3Plo_wt.js")), r = e, a = N(() => r.displayBlock ?? r.block), s = t, { t: c, format: l } = Q(), u = f(Fn, null), d = z(null), p = N(() => u?.liftedBlockId.value === r.block.id), m = N(() => p.value ? l(c.blockActions.dragLifted, { block: r.block.type }) : c.blockActions.drag);
2071
+ let n = g(() => import("./BlockIssueBadge-D3Plo_wt.js")), r = e, a = N(() => r.displayBlock ?? r.block), s = t, { t: c, format: l } = Q(), u = f(In, null), d = z(null), p = N(() => u?.liftedBlockId.value === r.block.id), m = N(() => p.value ? l(c.blockActions.dragLifted, { block: r.block.type }) : c.blockActions.drag);
2072
2072
  async function v() {
2073
2073
  await O(), d.value?.focus();
2074
2074
  }
@@ -2078,7 +2078,7 @@ var ka = [
2078
2078
  let S = N(() => !r.viewport || !a.value.visibility ? !1 : a.value.visibility[r.viewport] === !1), T = N(() => !!(Z?.activeLocale?.value && r.block.l10n?.[Z.activeLocale.value]?.hidden)), M = N(() => r.previewMode === !0 && (S.value || T.value)), F = N(() => r.viewport ? {
2079
2079
  desktop: c.viewport.desktop,
2080
2080
  mobile: c.viewport.mobile
2081
- }[r.viewport] ?? r.viewport : ""), I = N(() => !!a.value.displayCondition), L = f(jn, null), R = f(wn, null), B = f(hn, {}), H = N(() => B.savedBlocks?.isPicking.value === !0), U = N(() => !r.nested && B.savedBlocks?.isAvailable.value === !0 && B.savedBlocks?.canCreate.value === !0), W = N(() => r.isSelected && !H.value), G = N(() => B.comments?.getBlockCount(r.block.id) ?? 0), ee = z(null), te = z(null), K = z(null), ne = z(null), q = z({
2081
+ }[r.viewport] ?? r.viewport : ""), I = N(() => !!a.value.displayCondition), L = f(Mn, null), R = f(Tn, null), B = f(gn, {}), H = N(() => B.savedBlocks?.isPicking.value === !0), U = N(() => !r.nested && B.savedBlocks?.isAvailable.value === !0 && B.savedBlocks?.canCreate.value === !0), W = N(() => r.isSelected && !H.value), G = N(() => B.comments?.getBlockCount(r.block.id) ?? 0), ee = z(null), te = z(null), K = z(null), ne = z(null), q = z({
2082
2082
  left: "calc(100% + 8px)",
2083
2083
  top: "50%"
2084
2084
  }), re = z(!1), ie = N(() => te.value ?? ne.value), J = N(() => ie.value?.closest(".tpl-body"));
@@ -2111,19 +2111,19 @@ var ka = [
2111
2111
  top: m
2112
2112
  });
2113
2113
  }
2114
- _(Y), Qn(N(() => ie.value ? [
2114
+ _(Y), $n(N(() => ie.value ? [
2115
2115
  ee.value,
2116
2116
  te.value,
2117
2117
  K.value,
2118
2118
  ne.value,
2119
2119
  J.value
2120
- ].filter((e) => !!e) : []), Y), Yn(J, "scroll", Y, { passive: !0 });
2121
- let X = N(() => B.collaboration?.lockOf(r.block.id) ?? null), ae = N(() => X.value?.holder.type === "guest" ? c.collaboration.guest : X.value?.holder.name ?? ""), oe = N(() => B.collaboration?.agentHighlightOf(r.block.id) ?? B.ai?.highlightOf(r.block.id) ?? null), se = ht(() => a.value.type === "section" ? a.value.backgroundImage : void 0), ce = ht(() => a.value.type === "section" ? a.value.wrapper?.backgroundImage : void 0), Z = f(Pn, null), le = Z ? zn(Z) : null, ue = f(Sn, null) ?? le?.content ?? null;
2120
+ ].filter((e) => !!e) : []), Y), Xn(J, "scroll", Y, { passive: !0 });
2121
+ let X = N(() => B.collaboration?.lockOf(r.block.id) ?? null), ae = N(() => X.value?.holder.type === "guest" ? c.collaboration.guest : X.value?.holder.name ?? ""), oe = N(() => B.collaboration?.agentHighlightOf(r.block.id) ?? B.ai?.highlightOf(r.block.id) ?? null), se = gt(() => a.value.type === "section" ? a.value.backgroundImage : void 0), ce = gt(() => a.value.type === "section" ? a.value.wrapper?.backgroundImage : void 0), Z = f(Fn, null), le = Z ? Bn(Z) : null, ue = f(Cn, null) ?? le?.content ?? null;
2122
2122
  o([() => Z?.activeLocale?.value, () => le && be(le.settings.value)], Y, { flush: "post" });
2123
- let de = f(an, void 0), fe = N(() => Mi(a.value, {
2123
+ let de = f(on, void 0), fe = N(() => Ni(a.value, {
2124
2124
  backgroundImageUrl: se.value,
2125
- heroBoxWidth: st(a.value) ? dt(a.value, ue?.value, de) : void 0
2126
- })), pe = N(() => Fi(a.value, { backgroundImageUrl: ce.value }));
2125
+ heroBoxWidth: ct(a.value) ? ft(a.value, ue?.value, de) : void 0
2126
+ })), pe = N(() => Ii(a.value, { backgroundImageUrl: ce.value }));
2127
2127
  function me(e) {
2128
2128
  r.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), s("select"));
2129
2129
  }
@@ -2167,12 +2167,12 @@ var ka = [
2167
2167
  class: w(["tpl-comment-indicator tpl:flex tpl:min-h-6 tpl:min-w-6 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-0.5 tpl:rounded-full tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-semibold tpl:transition-colors tpl:bg-[var(--tpl-chrome-primary-light)] tpl:text-[var(--tpl-primary)]", re.value ? void 0 : "tpl:absolute tpl:-top-2 tpl:inset-s-full tpl:ms-2"]),
2168
2168
  "aria-label": C(l)(C(c).blockActions.comments, { count: String(G.value) }),
2169
2169
  onClick: r[0] ||= k((t) => C(B).comments?.openForBlock(e.block.id), ["stop"])
2170
- }, [V(C(Ft), {
2170
+ }, [V(C(It), {
2171
2171
  size: 12,
2172
2172
  "stroke-width": 2.5
2173
- }), x(" " + j(G.value), 1)], 10, Ya)) : E("", !0),
2173
+ }), x(" " + j(G.value), 1)], 10, Xa)) : E("", !0),
2174
2174
  V(C(n), { "block-id": e.block.id }, null, 8, ["block-id"]),
2175
- e.previewMode ? E("", !0) : (i(), D(qa, {
2175
+ e.previewMode ? E("", !0) : (i(), D(Ja, {
2176
2176
  key: 1,
2177
2177
  block: e.block
2178
2178
  }, null, 8, ["block"]))
@@ -2190,9 +2190,9 @@ var ka = [
2190
2190
  class: "tpl:absolute tpl:-top-0.5 tpl:left-1/2 tpl:z-[5] tpl:-translate-x-1/2 tpl:-translate-y-full tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:whitespace-nowrap",
2191
2191
  style: P({
2192
2192
  backgroundColor: X.value.holder.color,
2193
- color: C(pr)(X.value.holder.color)
2193
+ color: C(mr)(X.value.holder.color)
2194
2194
  })
2195
- }, j(C(l)(C(c).collaboration.editing, { name: ae.value })), 5)], 12, Xa)) : E("", !0),
2195
+ }, j(C(l)(C(c).collaboration.editing, { name: ae.value })), 5)], 12, Za)) : E("", !0),
2196
2196
  oe.value === null ? E("", !0) : (i(), b("div", {
2197
2197
  key: oe.value,
2198
2198
  "data-testid": "block-agent-highlight",
@@ -2217,82 +2217,88 @@ var ka = [
2217
2217
  "aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
2218
2218
  title: C(c).blockActions.drag,
2219
2219
  onKeydown: y
2220
- }, [V(C(Rt), {
2220
+ }, [V(C(zt), {
2221
2221
  size: 14,
2222
2222
  "stroke-width": 1.5
2223
- })], 40, Qa),
2223
+ })], 40, $a),
2224
2224
  A("button", {
2225
2225
  class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors",
2226
2226
  "aria-label": C(c).blockActions.duplicate,
2227
2227
  title: C(c).blockActions.duplicate,
2228
2228
  onClick: k(ge, ["stop"])
2229
- }, [V(C(bt), {
2229
+ }, [V(C(xt), {
2230
2230
  size: 14,
2231
2231
  "stroke-width": 1.5
2232
- })], 8, $a),
2232
+ })], 8, eo),
2233
2233
  U.value ? (i(), b("button", {
2234
2234
  key: 0,
2235
2235
  class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors",
2236
2236
  "aria-label": C(c).blockActions.saveAsBlock,
2237
2237
  title: C(c).blockActions.saveAsBlock,
2238
2238
  onClick: k(_e, ["stop"])
2239
- }, [V(C(Ot), {
2239
+ }, [V(C(kt), {
2240
2240
  size: 14,
2241
2241
  "stroke-width": 1.5
2242
- })], 8, eo)) : E("", !0),
2242
+ })], 8, to)) : E("", !0),
2243
2243
  A("button", {
2244
2244
  class: "tpl-block-action-btn tpl-block-delete-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors",
2245
2245
  "aria-label": C(c).blockActions.delete,
2246
2246
  title: C(c).blockActions.delete,
2247
2247
  onClick: k(he, ["stop"])
2248
- }, [V(C(Mt), {
2248
+ }, [V(C(Nt), {
2249
2249
  size: 14,
2250
2250
  "stroke-width": 1.5
2251
- })], 8, to)
2252
- ], 12, Za)) : E("", !0),
2253
- S.value ? (i(), b("div", no, [A("span", ro, [V(C(wt), {
2251
+ })], 8, no)
2252
+ ], 12, Qa)) : E("", !0),
2253
+ S.value ? (i(), b("div", ro, [A("span", io, [V(C(Tt), {
2254
2254
  size: 12,
2255
2255
  "stroke-width": 1.5
2256
2256
  }), x(" " + j(C(l)(C(c).blockActions.hiddenOnViewport, { viewport: F.value })), 1)])])) : E("", !0),
2257
- I.value && !S.value ? (i(), b("div", io, [A("button", {
2257
+ I.value && !S.value ? (i(), b("div", ao, [A("button", {
2258
2258
  "data-testid": "condition-toggle",
2259
2259
  class: "tpl-condition-toggle tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1 tpl:transition-colors tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-primary)] tpl:border tpl:border-[var(--tpl-border)]",
2260
2260
  "aria-label": C(c).blockActions.conditionToggle,
2261
2261
  title: e.block.displayCondition?.label,
2262
2262
  onClick: k(ve, ["stop"])
2263
- }, [V(C(Tt), {
2263
+ }, [V(C(Et), {
2264
2264
  size: 12,
2265
2265
  "stroke-width": 2
2266
- })], 8, ao)])) : E("", !0),
2266
+ })], 8, oo)])) : E("", !0),
2267
2267
  pe.value ? (i(), b("div", {
2268
2268
  key: 5,
2269
- class: w(["tpl-section-wrapper tpl-email-surface", C(Oi)(pe.value)]),
2269
+ class: w(["tpl-section-wrapper tpl-email-surface", C(ki)(pe.value)]),
2270
2270
  style: P(pe.value)
2271
2271
  }, [A("div", {
2272
- class: w(["tpl-block-content tpl-email-surface", C(Oi)(fe.value)]),
2272
+ class: w(["tpl-block-content tpl-email-surface", C(ki)(fe.value)]),
2273
2273
  style: P(fe.value)
2274
2274
  }, [h(t.$slots, "default", {}, void 0, !0)], 6)], 6)) : (i(), b("div", {
2275
2275
  key: 6,
2276
- class: w(["tpl-block-content tpl-email-surface", C(Oi)(fe.value)]),
2276
+ class: w(["tpl-block-content tpl-email-surface", C(ki)(fe.value)]),
2277
2277
  style: P(fe.value)
2278
2278
  }, [h(t.$slots, "default", {}, void 0, !0)], 6))
2279
- ], 10, Ja));
2279
+ ], 10, Ya));
2280
2280
  }
2281
2281
  }), [["__scopeId", "data-v-8c371dc9"]]);
2282
2282
  // src/utils/unwrapParagraph.ts
2283
- function so(e) {
2284
- let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
2285
- return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
2283
+ function co(e) {
2284
+ let t = /^\s*<p\b/.exec(e);
2285
+ if (!t) return e;
2286
+ let n = Be(e, t[0].length);
2287
+ if (n === -1) return e;
2288
+ let r = /<\/p>\s*$/.exec(e);
2289
+ if (!r || r.index <= n) return e;
2290
+ let i = e.slice(n + 1, r.index);
2291
+ return /<\/p>\s*<p\b/i.test(i) ? e : i;
2286
2292
  }
2287
2293
  // src/components/blocks/TitleBlock.vue
2288
- var co = /* @__PURE__ */ n({
2294
+ var lo = /* @__PURE__ */ n({
2289
2295
  __name: "TitleBlock",
2290
2296
  props: {
2291
2297
  block: {},
2292
2298
  viewport: {}
2293
2299
  },
2294
2300
  setup(e) {
2295
- let n = e, r = g(() => import("./TitleEditor-pmycpmTd.js")), a = En(pn, "TitleBlock"), { isEditing: o, blockRef: s, toolbarPosition: c, resolvedContent: l, handleDoubleClick: u, handleEditorDone: d } = Ca(() => n.block.content), f = N(() => {
2301
+ let n = e, r = g(() => import("./TitleEditor-Ceb0YfWv.js")), a = Dn(mn, "TitleBlock"), { isEditing: o, blockRef: s, toolbarPosition: c, resolvedContent: l, handleDoubleClick: u, handleEditorDone: d } = wa(() => n.block.content), f = N(() => {
2296
2302
  let e = {
2297
2303
  fontSize: `${je[n.block.level]}px`,
2298
2304
  lineHeight: String(pe),
@@ -2300,7 +2306,7 @@ var co = /* @__PURE__ */ n({
2300
2306
  textAlign: n.block.textAlign
2301
2307
  };
2302
2308
  return n.block.color && (e.color = n.block.color), n.block.fontFamily && (e.fontFamily = a.resolveFontFamily(n.block.fontFamily)), e;
2303
- }), p = N(() => `h${n.block.level}`), m = N(() => so(l.value));
2309
+ }), p = N(() => `h${n.block.level}`), m = N(() => fr(co(l.value)));
2304
2310
  return (n, a) => (i(), b("div", {
2305
2311
  ref_key: "blockRef",
2306
2312
  ref: s,
@@ -2326,12 +2332,12 @@ var co = /* @__PURE__ */ n({
2326
2332
  innerHTML: m.value
2327
2333
  }, null, 8, ["innerHTML"]))], 36));
2328
2334
  }
2329
- }), lo = "hero", uo = "#1f2937", fo = "#ffffff";
2330
- function po(e, t) {
2335
+ }), uo = "hero", fo = "#1f2937", po = "#ffffff";
2336
+ function mo(e, t) {
2331
2337
  let n = X("title", e);
2332
- n.color = fo, n.textAlign = "center";
2338
+ n.color = po, n.textAlign = "center";
2333
2339
  let r = X("paragraph", e);
2334
- r.content = `<p style="text-align: center"><span style="color: ${fo}">${mo(t)}</span></p>`;
2340
+ r.content = `<p style="text-align: center"><span style="color: ${po}">${ho(t)}</span></p>`;
2335
2341
  let i = X("button", e);
2336
2342
  return i.align = "center", ce({
2337
2343
  columns: "1",
@@ -2351,28 +2357,28 @@ function po(e, t) {
2351
2357
  bottom: 48,
2352
2358
  left: 24
2353
2359
  },
2354
- backgroundColor: uo
2360
+ backgroundColor: fo
2355
2361
  }
2356
2362
  });
2357
2363
  }
2358
- function mo(e) {
2364
+ function ho(e) {
2359
2365
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
2360
2366
  }
2361
2367
  // src/utils/sectionColumnDrop.ts
2362
- var ho = /* @__PURE__ */ new Set(["section", lo]);
2363
- function go(e) {
2364
- return e.dataset.blockType !== "section" && !ho.has(e.dataset.paletteType ?? "");
2368
+ var go = /* @__PURE__ */ new Set(["section", uo]);
2369
+ function _o(e) {
2370
+ return e.dataset.blockType !== "section" && !go.has(e.dataset.paletteType ?? "");
2365
2371
  }
2366
2372
  // src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
2367
- var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2373
+ var vo = { class: "tpl:relative tpl:w-full" }, yo = {
2368
2374
  key: 0,
2369
2375
  "data-testid": "hero-image-hint",
2370
2376
  class: "tpl:pointer-events-none tpl:absolute tpl:inset-x-0 tpl:bottom-full tpl:mb-2 tpl:flex tpl:justify-center tpl:text-xs tpl:text-[var(--tpl-chrome-text-dim)]"
2371
- }, yo = {
2377
+ }, bo = {
2372
2378
  key: 0,
2373
2379
  "data-testid": "section-drop-hint",
2374
2380
  class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:flex tpl:items-center tpl:justify-center tpl:text-xs tpl:text-[var(--tpl-chrome-text-dim)]"
2375
- }, bo = /* @__PURE__ */ n({
2381
+ }, xo = /* @__PURE__ */ n({
2376
2382
  __name: "SectionBlock",
2377
2383
  props: {
2378
2384
  block: {},
@@ -2381,15 +2387,15 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2381
2387
  },
2382
2388
  setup(n) {
2383
2389
  let r = {
2384
- title: co,
2385
- paragraph: Ta,
2386
- image: va,
2387
- button: Bi,
2388
- divider: ea,
2389
- custom: Qi
2390
- }, o = n, { t: u } = Q(), d = En(Pn, "SectionBlock"), { displayBlock: p } = zn(d), m = N(() => o.sourceBlock ?? o.block), h = f(yn, N(() => /* @__PURE__ */ new Set()));
2391
- s(yn, N(() => /* @__PURE__ */ new Set([...h.value, ...Object.entries(m.value.l10n ?? {}).filter(([, e]) => e.hidden).map(([e]) => e)])));
2392
- let g = f(wn, null), _ = f(Cn, null), v = f(hn, {}), y = f(dn, null);
2390
+ title: lo,
2391
+ paragraph: Ea,
2392
+ image: ya,
2393
+ button: Vi,
2394
+ divider: ta,
2395
+ custom: $i
2396
+ }, o = n, { t: u } = Q(), d = Dn(Fn, "SectionBlock"), { displayBlock: p } = Bn(d), m = N(() => o.sourceBlock ?? o.block), h = f(bn, N(() => /* @__PURE__ */ new Set()));
2397
+ s(bn, N(() => /* @__PURE__ */ new Set([...h.value, ...Object.entries(m.value.l10n ?? {}).filter(([, e]) => e.hidden).map(([e]) => e)])));
2398
+ let g = f(Tn, null), _ = f(wn, null), v = f(gn, {}), y = f(fn, null);
2393
2399
  function x(e) {
2394
2400
  let t = v.savedBlocks;
2395
2401
  t?.isPicking.value ? t.togglePick(o.block.id) : d.selectBlock(e);
@@ -2426,7 +2432,7 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2426
2432
  }
2427
2433
  let U = N(() => {
2428
2434
  if (d.state.previewMode) return !1;
2429
- let e = We(o.block);
2435
+ let e = Ge(o.block);
2430
2436
  return e !== null && !e.applied && e.reason === "image";
2431
2437
  });
2432
2438
  function W(e) {
@@ -2436,10 +2442,10 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2436
2442
  return k(e).length === 0 && d.state.previewMode;
2437
2443
  }
2438
2444
  function ee(e, t) {
2439
- Ea(d, t, o.block.id, e);
2445
+ Da(d, t, o.block.id, e);
2440
2446
  }
2441
2447
  function te(e) {
2442
- return wi(e, _, r);
2448
+ return Ti(e, _, r);
2443
2449
  }
2444
2450
  function K(e, t) {
2445
2451
  e.type === "custom" && d.updateBlock(e.id, {
@@ -2447,7 +2453,7 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2447
2453
  dataSourceFetched: t.dataSourceFetched
2448
2454
  });
2449
2455
  }
2450
- return (r, s) => (i(), b("div", _o, [U.value ? (i(), b("div", vo, [A("span", null, j(C(u).section.heroAddImage), 1)])) : E("", !0), A("div", { class: w(["tpl:flex tpl:gap-0", { "tpl:flex-col": O.value }]) }, [(i(!0), b(B, null, l(T.value, (r, f) => (i(), b("div", {
2456
+ return (r, s) => (i(), b("div", vo, [U.value ? (i(), b("div", yo, [A("span", null, j(C(u).section.heroAddImage), 1)])) : E("", !0), A("div", { class: w(["tpl:flex tpl:gap-0", { "tpl:flex-col": O.value }]) }, [(i(!0), b(B, null, l(T.value, (r, f) => (i(), b("div", {
2451
2457
  key: f,
2452
2458
  class: w(["tpl:relative tpl:flex tpl:flex-col tpl:rounded", W(f) ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
2453
2459
  style: P({ width: O.value ? "100%" : S.value[f] })
@@ -2456,7 +2462,7 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2456
2462
  group: {
2457
2463
  name: "blocks",
2458
2464
  pull: !0,
2459
- put: (e, t, n) => C(go)(n)
2465
+ put: (e, t, n) => C(_o)(n)
2460
2466
  },
2461
2467
  animation: 150,
2462
2468
  "ghost-class": "tpl-ghost",
@@ -2470,12 +2476,12 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2470
2476
  "tpl:min-h-[60px]": H(f),
2471
2477
  "tpl:min-h-[34px]": G(f)
2472
2478
  }]),
2473
- onUpdate: (e) => C(Ea)(C(d), k(f), o.block.id, f, e),
2479
+ onUpdate: (e) => C(Da)(C(d), k(f), o.block.id, f, e),
2474
2480
  onStart: (e) => L.value = f,
2475
2481
  onEnd: s[0] ||= (e) => L.value = null,
2476
2482
  "onUpdate:modelValue": (e) => ee(f, e)
2477
2483
  }, {
2478
- default: a(() => [(i(!0), b(B, null, l(k(f), (r) => c((i(), b("div", { key: r.id }, [V(oo, {
2484
+ default: a(() => [(i(!0), b(B, null, l(k(f), (r) => c((i(), b("div", { key: r.id }, [V(so, {
2479
2485
  block: r,
2480
2486
  "display-block": C(p)(r),
2481
2487
  "is-selected": C(d).state.selectedBlockId === r.id,
@@ -2511,14 +2517,14 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2511
2517
  "onUpdate",
2512
2518
  "onStart",
2513
2519
  "onUpdate:modelValue"
2514
- ]), W(f) ? (i(), b("div", yo, [A("span", null, j(C(u).section.dropHere), 1)])) : E("", !0)], 6))), 128))], 2)]));
2520
+ ]), W(f) ? (i(), b("div", bo, [A("span", null, j(C(u).section.dropHere), 1)])) : E("", !0)], 6))), 128))], 2)]));
2515
2521
  }
2516
- }), xo = ["width", "height"], So = [
2522
+ }), So = ["width", "height"], Co = [
2517
2523
  "d",
2518
2524
  "stroke",
2519
2525
  "stroke-opacity",
2520
2526
  "stroke-width"
2521
- ], Co = ["d", "fill"], wo = /* @__PURE__ */ n({
2527
+ ], wo = ["d", "fill"], To = /* @__PURE__ */ n({
2522
2528
  __name: "SocialIconSvg",
2523
2529
  props: {
2524
2530
  platform: {},
@@ -2527,7 +2533,7 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2527
2533
  iconSize: {}
2528
2534
  },
2529
2535
  setup(e) {
2530
- let t = e, n = N(() => ut[t.platform]), r = N(() => ft[t.iconSize]), a = N(() => Ue(t.platform, t.iconTone)), o = N(() => he(t.iconStyle, t.iconTone)), s = N(() => {
2536
+ let t = e, n = N(() => dt[t.platform]), r = N(() => pt[t.iconSize]), a = N(() => We(t.platform, t.iconTone)), o = N(() => he(t.iconStyle, t.iconTone)), s = N(() => {
2531
2537
  let e = {
2532
2538
  display: "inline-flex",
2533
2539
  alignItems: "center",
@@ -2586,15 +2592,15 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2586
2592
  "stroke-opacity": o.value.opacity,
2587
2593
  "stroke-width": o.value.width / c.value,
2588
2594
  "stroke-linejoin": "round"
2589
- }, null, 8, So)) : E("", !0), A("path", {
2595
+ }, null, 8, Co)) : E("", !0), A("path", {
2590
2596
  d: n.value.path,
2591
2597
  fill: d.value
2592
- }, null, 8, Co)], 8, xo))], 4));
2598
+ }, null, 8, wo)], 8, So))], 4));
2593
2599
  }
2594
- }), To = { class: "tpl:w-full" }, Eo = ["href"], Do = {
2600
+ }), Eo = { class: "tpl:w-full" }, Do = ["href"], Oo = {
2595
2601
  key: 1,
2596
2602
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
2597
- }, Oo = /* @__PURE__ */ n({
2603
+ }, ko = /* @__PURE__ */ n({
2598
2604
  __name: "SocialIconsBlock",
2599
2605
  props: {
2600
2606
  block: {},
@@ -2607,7 +2613,7 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2607
2613
  gap: `${t.block.spacing}px`,
2608
2614
  justifyContent: t.block.align === "left" ? "flex-start" : t.block.align === "right" ? "flex-end" : "center"
2609
2615
  })), a = N(() => t.block.icons.length > 0);
2610
- return (t, o) => (i(), b("div", To, [a.value ? (i(), b("div", {
2616
+ return (t, o) => (i(), b("div", Eo, [a.value ? (i(), b("div", {
2611
2617
  key: 0,
2612
2618
  style: P(r.value)
2613
2619
  }, [(i(!0), b(B, null, l(e.block.icons, (t) => (i(), b("a", {
@@ -2615,7 +2621,7 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2615
2621
  href: t.url || "#",
2616
2622
  class: "tpl:cursor-default",
2617
2623
  onClick: o[0] ||= k(() => {}, ["prevent"])
2618
- }, [V(wo, {
2624
+ }, [V(To, {
2619
2625
  platform: t.platform,
2620
2626
  "icon-style": e.block.iconStyle,
2621
2627
  "icon-tone": e.block.iconTone,
@@ -2625,44 +2631,44 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2625
2631
  "icon-style",
2626
2632
  "icon-tone",
2627
2633
  "icon-size"
2628
- ])], 8, Eo))), 128))], 4)) : (i(), b("div", Do, [V(C(Nt), { size: 16 }), A("span", null, j(C(n).social.addIcons), 1)]))]));
2634
+ ])], 8, Do))), 128))], 4)) : (i(), b("div", Oo, [V(C(Pt), { size: 16 }), A("span", null, j(C(n).social.addIcons), 1)]))]));
2629
2635
  }
2630
- }), ko = { class: "tpl:w-full" }, Ao = {
2636
+ }), Ao = { class: "tpl:w-full" }, jo = {
2631
2637
  key: 0,
2632
2638
  class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
2633
2639
  style: {
2634
2640
  "background-color": "var(--tpl-bg-hover)",
2635
2641
  color: "var(--tpl-text-dim)"
2636
2642
  }
2637
- }, jo = /* @__PURE__ */ n({
2643
+ }, Mo = /* @__PURE__ */ n({
2638
2644
  __name: "SpacerBlock",
2639
2645
  props: {
2640
2646
  block: {},
2641
2647
  viewport: {}
2642
2648
  },
2643
2649
  setup(e) {
2644
- let t = e, n = En(Pn, "SpacerBlock"), r = N(() => ({
2650
+ let t = e, n = Dn(Fn, "SpacerBlock"), r = N(() => ({
2645
2651
  height: `${t.block.height}px`,
2646
2652
  minHeight: `${t.block.height}px`,
2647
2653
  ...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
2648
2654
  }));
2649
- return (t, a) => (i(), b("div", ko, [A("div", {
2655
+ return (t, a) => (i(), b("div", Ao, [A("div", {
2650
2656
  style: P(r.value),
2651
2657
  class: w(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:box-border tpl:border-y tpl:border-x-0 tpl:border-dashed": !C(n).state.previewMode }])
2652
- }, [C(n).state.previewMode ? E("", !0) : (i(), b("span", Ao, j(e.block.height) + "px ", 1))], 6)]));
2658
+ }, [C(n).state.previewMode ? E("", !0) : (i(), b("span", jo, j(e.block.height) + "px ", 1))], 6)]));
2653
2659
  }
2654
- }), Mo = { class: "tpl:w-full" }, No = { key: 0 }, Po = [
2660
+ }), No = { class: "tpl:w-full" }, Po = { key: 0 }, Fo = [
2655
2661
  "aria-label",
2656
2662
  "data-placeholder",
2657
2663
  "onBlur"
2658
- ], Fo = [
2664
+ ], Io = [
2659
2665
  "aria-label",
2660
2666
  "data-placeholder",
2661
2667
  "onBlur"
2662
- ], Io = {
2668
+ ], Lo = {
2663
2669
  key: 1,
2664
2670
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
2665
- }, Lo = /*#__PURE__*/ yt(/* @__PURE__ */ n({
2671
+ }, Ro = /*#__PURE__*/ bt(/* @__PURE__ */ n({
2666
2672
  __name: "TableBlock",
2667
2673
  props: {
2668
2674
  block: {},
@@ -2676,7 +2682,7 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2676
2682
  updated(e, t) {
2677
2683
  t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
2678
2684
  }
2679
- }, n = e, { t: r } = Q(), a = En(Pn, "TableBlock"), o = En(pn, "TableBlock"), s = N(() => n.block.rows.length > 0), u = N(() => {
2685
+ }, n = e, { t: r } = Q(), a = Dn(Fn, "TableBlock"), o = Dn(mn, "TableBlock"), s = N(() => n.block.rows.length > 0), u = N(() => {
2680
2686
  let e = {
2681
2687
  width: "100%",
2682
2688
  borderCollapse: "collapse",
@@ -2707,11 +2713,11 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2707
2713
  } : n);
2708
2714
  a.updateBlock(n.block.id, { rows: o });
2709
2715
  }
2710
- return (e, n) => (i(), b("div", Mo, [s.value ? (i(), b("table", {
2716
+ return (e, n) => (i(), b("div", No, [s.value ? (i(), b("table", {
2711
2717
  key: 0,
2712
2718
  style: P(u.value),
2713
2719
  class: "tpl-table-editable"
2714
- }, [p.value ? (i(), b("thead", No, [A("tr", null, [(i(!0), b(B, null, l(p.value.cells, (e) => c((i(), b("th", {
2720
+ }, [p.value ? (i(), b("thead", Po, [A("tr", null, [(i(!0), b(B, null, l(p.value.cells, (e) => c((i(), b("th", {
2715
2721
  key: e.id,
2716
2722
  style: P(f.value),
2717
2723
  "aria-label": C(r).table.cellPlaceholder,
@@ -2720,7 +2726,7 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2720
2726
  onBlur: (t) => g(p.value.id, e.id, t),
2721
2727
  onKeydown: n[0] ||= S(k((e) => e.target.blur(), ["prevent"]), ["enter"]),
2722
2728
  onClick: k(h, ["stop"])
2723
- }, null, 44, Po)), [[t, e.content]])), 128))])])) : E("", !0), A("tbody", null, [(i(!0), b(B, null, l(m.value, (e) => (i(), b("tr", { key: e.id }, [(i(!0), b(B, null, l(e.cells, (a) => c((i(), b("td", {
2729
+ }, null, 44, Fo)), [[t, e.content]])), 128))])])) : E("", !0), A("tbody", null, [(i(!0), b(B, null, l(m.value, (e) => (i(), b("tr", { key: e.id }, [(i(!0), b(B, null, l(e.cells, (a) => c((i(), b("td", {
2724
2730
  key: a.id,
2725
2731
  style: P(d.value),
2726
2732
  "aria-label": C(r).table.cellPlaceholder,
@@ -2729,9 +2735,9 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2729
2735
  onBlur: (t) => g(e.id, a.id, t),
2730
2736
  onKeydown: n[1] ||= S(k((e) => e.target.blur(), ["prevent"]), ["enter"]),
2731
2737
  onClick: k(h, ["stop"])
2732
- }, null, 44, Fo)), [[t, a.content]])), 128))]))), 128))])], 4)) : (i(), b("div", Io, [V(C(Lt), { size: 16 }), A("span", null, j(C(r).table.empty), 1)]))]));
2738
+ }, null, 44, Io)), [[t, a.content]])), 128))]))), 128))])], 4)) : (i(), b("div", Lo, [V(C(Rt), { size: 16 }), A("span", null, j(C(r).table.empty), 1)]))]));
2733
2739
  }
2734
- }), [["__scopeId", "data-v-6751d456"]]), Ro = /* @__PURE__ */ n({
2740
+ }), [["__scopeId", "data-v-6751d456"]]), zo = /* @__PURE__ */ n({
2735
2741
  __name: "VideoPlayButton",
2736
2742
  props: { hoverEffect: {
2737
2743
  type: Boolean,
@@ -2748,7 +2754,7 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2748
2754
  }
2749
2755
  });
2750
2756
  // src/utils/videoThumbnail.ts
2751
- function zo(e) {
2757
+ function Bo(e) {
2752
2758
  if (!e) return {
2753
2759
  platform: "unknown",
2754
2760
  videoId: null,
@@ -2780,24 +2786,24 @@ function zo(e) {
2780
2786
  thumbnailUrl: null
2781
2787
  };
2782
2788
  }
2783
- function Bo(e, t) {
2784
- return t || zo(e).thumbnailUrl;
2789
+ function Vo(e, t) {
2790
+ return t || Bo(e).thumbnailUrl;
2785
2791
  }
2786
2792
  // src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
2787
- var Vo = ["src", "alt"], Ho = {
2793
+ var Ho = ["src", "alt"], Uo = {
2788
2794
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
2789
2795
  style: { opacity: "0.7" }
2790
- }, Uo = ["href"], Wo = ["src", "alt"], Go = ["src", "alt"], Ko = {
2796
+ }, Wo = ["href"], Go = ["src", "alt"], Ko = ["src", "alt"], qo = {
2791
2797
  key: 3,
2792
2798
  class: "tpl:flex tpl:box-border tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
2793
- }, qo = /* @__PURE__ */ n({
2799
+ }, Jo = /* @__PURE__ */ n({
2794
2800
  __name: "VideoBlock",
2795
2801
  props: {
2796
2802
  block: {},
2797
2803
  viewport: {}
2798
2804
  },
2799
2805
  setup(e) {
2800
- let t = e, { t: n } = Q(), { syntax: r } = er(), a = N(() => He(t.block.url, r) || He(t.block.thumbnailUrl, r)), o = at(() => a.value ? void 0 : t.block.thumbnailUrl || void 0), s = at(() => a.value ? t.block.placeholderUrl : void 0), c = N(() => a.value ? null : t.block.thumbnailUrl ? o.value ?? null : Bo(t.block.url)), l = N(() => ({ textAlign: t.block.align })), u = N(() => {
2806
+ let t = e, { t: n } = Q(), { syntax: r } = tr(), a = N(() => Ue(t.block.url, r) || Ue(t.block.thumbnailUrl, r)), o = ot(() => a.value ? void 0 : t.block.thumbnailUrl || void 0), s = ot(() => a.value ? t.block.placeholderUrl : void 0), c = N(() => a.value ? null : t.block.thumbnailUrl ? o.value ?? null : Vo(t.block.url)), l = N(() => ({ textAlign: t.block.align })), u = N(() => {
2801
2807
  let e = t.block.align;
2802
2808
  return {
2803
2809
  maxWidth: "100%",
@@ -2807,7 +2813,7 @@ var Vo = ["src", "alt"], Ho = {
2807
2813
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
2808
2814
  marginRight: e === "center" ? "auto" : void 0
2809
2815
  };
2810
- }), d = N(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), f = N(() => He(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
2816
+ }), d = N(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), f = N(() => Ue(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
2811
2817
  return (t, r) => (i(), b("div", {
2812
2818
  class: "tpl:w-full",
2813
2819
  style: P(l.value)
@@ -2820,16 +2826,16 @@ var Vo = ["src", "alt"], Ho = {
2820
2826
  src: C(s),
2821
2827
  alt: e.block.alt,
2822
2828
  style: P(d.value)
2823
- }, null, 12, Vo), V(Ro)], 4)) : a.value ? (i(), b("div", {
2829
+ }, null, 12, Ho), V(zo)], 4)) : a.value ? (i(), b("div", {
2824
2830
  key: 1,
2825
2831
  class: "tpl:relative tpl:!flex tpl:box-border tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
2826
2832
  style: P([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, u.value])
2827
- }, [V(C(It), {
2833
+ }, [V(C(Lt), {
2828
2834
  size: 36,
2829
2835
  "stroke-width": 1.5,
2830
2836
  class: "tpl:text-[var(--tpl-primary)]",
2831
2837
  style: { opacity: "0.5" }
2832
- }), A("span", Ho, [V(Ri, { text: f.value }, null, 8, ["text"])])], 4)) : c.value ? (i(), b(B, { key: 2 }, [e.block.url ? (i(), b("a", {
2838
+ }), A("span", Uo, [V(zi, { text: f.value }, null, 8, ["text"])])], 4)) : c.value ? (i(), b(B, { key: 2 }, [e.block.url ? (i(), b("a", {
2833
2839
  key: 0,
2834
2840
  href: e.block.url,
2835
2841
  target: "_blank",
@@ -2842,7 +2848,7 @@ var Vo = ["src", "alt"], Ho = {
2842
2848
  src: c.value,
2843
2849
  alt: e.block.alt,
2844
2850
  style: P(d.value)
2845
- }, null, 12, Wo), V(Ro, { "hover-effect": "" })], 12, Uo)) : (i(), b("div", {
2851
+ }, null, 12, Go), V(zo, { "hover-effect": "" })], 12, Wo)) : (i(), b("div", {
2846
2852
  key: 1,
2847
2853
  class: "tpl:relative tpl:inline-block",
2848
2854
  style: P(u.value)
@@ -2851,53 +2857,53 @@ var Vo = ["src", "alt"], Ho = {
2851
2857
  src: c.value,
2852
2858
  alt: e.block.alt,
2853
2859
  style: P(d.value)
2854
- }, null, 12, Go), V(Ro)], 4))], 64)) : (i(), b("div", Ko, [V(C(It), {
2860
+ }, null, 12, Ko), V(zo)], 4))], 64)) : (i(), b("div", qo, [V(C(Lt), {
2855
2861
  size: 40,
2856
2862
  "stroke-width": 1.5,
2857
2863
  class: "tpl:text-[var(--tpl-border-light)]"
2858
2864
  }), A("span", null, j(C(n).video.addVideo), 1)]))], 4));
2859
2865
  }
2860
- }), Jo = {
2861
- section: bo,
2862
- title: co,
2863
- paragraph: Ta,
2864
- image: va,
2865
- button: Bi,
2866
- divider: ea,
2867
- video: qo,
2868
- social: Oo,
2869
- menu: Sa,
2870
- table: Lo,
2871
- spacer: jo,
2872
- html: oa,
2866
+ }), Yo = {
2867
+ section: xo,
2868
+ title: lo,
2869
+ paragraph: Ea,
2870
+ image: ya,
2871
+ button: Vi,
2872
+ divider: ta,
2873
+ video: Jo,
2874
+ social: ko,
2875
+ menu: Ca,
2876
+ table: Ro,
2877
+ spacer: Mo,
2878
+ html: sa,
2873
2879
  countdown: g(() => import("./CountdownBlock-CjMhMhnv.js"))
2874
2880
  };
2875
- function Yo(e) {
2876
- let { editor: t, config: n, translations: r, fontsManager: i } = e, { t: a, format: c } = Q(r), l = N(() => De(De(De($r(r), yi(t.content.value.settings?.locale)), be(t.content.value.settings) === "rtl" ? {
2881
+ function Xo(e) {
2882
+ let { editor: t, config: n, translations: r, fontsManager: i } = e, { t: a, format: c } = Q(r), l = N(() => De(De(De(ei(r), bi(t.content.value.settings?.locale)), be(t.content.value.settings) === "rtl" ? {
2877
2883
  title: { textAlign: "right" },
2878
2884
  table: { textAlign: "right" }
2879
2885
  } : {}), n.blockDefaults ?? {}));
2880
2886
  t.setUiTheme(n.uiTheme ?? "auto");
2881
- let { resolvedTheme: u } = Wr(N(() => t.state.uiTheme)), d = z(n.theme ?? {}), { themeStyles: f } = Cr({
2887
+ let { resolvedTheme: u } = Gr(N(() => t.state.uiTheme)), d = z(n.theme ?? {}), { themeStyles: f } = wr({
2882
2888
  themeOverrides: d,
2883
2889
  resolvedTheme: u,
2884
2890
  extraStyles: () => ({
2885
2891
  "--tpl-drop-text": `"${r.canvas.dropHere}"`,
2886
2892
  ...e.themeExtraStyles?.()
2887
2893
  })
2888
- }), p = e.history ?? $e({
2894
+ }), p = e.history ?? et({
2889
2895
  content: t.content,
2890
2896
  setContent: (e, n) => t.setContent(e, n)
2891
2897
  });
2892
- e.history || rt(t, p);
2893
- let h = vt({
2898
+ e.history || it(t, p);
2899
+ let h = yt({
2894
2900
  addBlock: t.addBlock,
2895
2901
  removeBlock: t.removeBlock,
2896
2902
  updateBlock: t.updateBlock,
2897
2903
  selectBlock: t.selectBlock,
2898
2904
  findBlockLocation: t.findBlockLocation,
2899
2905
  blockDefaults: () => l.value
2900
- }), g = nt(t), _ = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? it({
2906
+ }), g = rt(t), _ = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? at({
2901
2907
  content: t.content,
2902
2908
  isDirty: () => t.state.isDirty,
2903
2909
  ...e.autoSaveOptions
@@ -2905,30 +2911,30 @@ function Yo(e) {
2905
2911
  _ && (v = o(p.isNavigating, (e) => {
2906
2912
  e ? _.pause() : _.resume();
2907
2913
  }));
2908
- let b = Ur(t, {
2914
+ let b = Wr(t, {
2909
2915
  t: a,
2910
2916
  format: c
2911
- }, n.customBlocks ?? []), x = rr(n.colors);
2917
+ }, n.customBlocks ?? []), x = ir(n.colors);
2912
2918
  if (x.allowCustomIgnored && $.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), x.invalidPresets.length > 0 && $.warn(`config.colors.presets skipped invalid entries: ${x.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), x.allowCustom === !1) {
2913
- let e = Qr(x.presets, n.blockDefaults, n.templateDefaults);
2919
+ let e = $r(x.presets, n.blockDefaults, n.templateDefaults);
2914
2920
  e.length > 0 && $.warn(`config.colors locks custom colours, but these block/template default colours fall outside colors.presets: ${e.join(", ")}. New blocks start on a colour the palette can't reselect — set blockDefaults / templateDefaults from the same palette.`);
2915
2921
  }
2916
- let S = cr(n.templateSettings);
2917
- for (let e of S.unknown) $.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${lr.join(", ")}) — skipping it.`);
2918
- let C = _r();
2919
- Yr(C, Jo);
2922
+ let S = lr(n.templateSettings);
2923
+ for (let e of S.unknown) $.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${ur.join(", ")}) — skipping it.`);
2924
+ let C = vr();
2925
+ Xr(C, Yo);
2920
2926
  let w = /* @__PURE__ */ new Set();
2921
2927
  function T(e) {
2922
2928
  for (let t of e) {
2923
- C.registerCustom(t, Qi);
2924
- for (let e of bi(t, x)) w.has(e.id) || (w.add(e.id), $.warn(e.message));
2929
+ C.registerCustom(t, $i);
2930
+ for (let e of xi(t, x)) w.has(e.id) || (w.add(e.id), $.warn(e.message));
2925
2931
  }
2926
2932
  }
2927
2933
  n.customBlocks?.length && T(n.customBlocks);
2928
- let E = Pr();
2934
+ let E = Fr();
2929
2935
  if (y() && m(E.dispose), e.containerEl) {
2930
2936
  let t = e.containerEl;
2931
- Yn(document, "pointerdown", (e) => {
2937
+ Xn(document, "pointerdown", (e) => {
2932
2938
  let n = t.value;
2933
2939
  n && (e.composedPath?.() ?? []).includes(n) && E.claim();
2934
2940
  }, { capture: !0 });
@@ -2938,7 +2944,7 @@ function Yo(e) {
2938
2944
  t ? t.save() : _?.flush();
2939
2945
  }
2940
2946
  function O(n) {
2941
- E.isActive() && Si(n, {
2947
+ E.isActive() && Ci(n, {
2942
2948
  history: p,
2943
2949
  selectBlock: (e) => t.selectBlock(e),
2944
2950
  getSelectedBlockId: () => t.state.selectedBlockId,
@@ -2949,9 +2955,9 @@ function Yo(e) {
2949
2955
  onCancelPick: () => e.capabilities?.savedBlocks?.cancelPicking()
2950
2956
  });
2951
2957
  }
2952
- Yn(document, "keydown", O);
2958
+ Xn(document, "keydown", O);
2953
2959
  let k = z(null), A = e.editorRoot ?? document;
2954
- s(Ln, A), s(Yt, k), s(Ut, /* @__PURE__ */ new Map()), s(Mn, r), s(Pn, t), s(In, p), s(jn, h), s(wn, g), s(pn, i), s(gn, f), s(bn, u), s(mn, l), s(An, n.locale), s(Cn, C), s(vn, n.customBlocks ?? []), s(Gt, n.paletteBlocks), s(rn, Xr(n.htmlBlockPreview)), s(an, n.layout), s(ln, n.sectionWrapper), s(Dn, x), s(zt, S.fields), s(_n, Gr(t.content, C));
2960
+ s(Rn, A), s(Xt, k), s(Wt, /* @__PURE__ */ new Map()), s(Nn, r), s(Fn, t), s(Ln, p), s(Mn, h), s(Tn, g), s(mn, i), s(_n, f), s(xn, u), s(hn, l), s(jn, n.locale), s(wn, C), s(yn, n.customBlocks ?? []), s(Kt, n.paletteBlocks), s(an, Zr(n.htmlBlockPreview)), s(on, n.layout), s(un, n.sectionWrapper), s(On, x), s(Bt, S.fields), s(vn, Kr(t.content, C));
2955
2961
  let j = Le(n.mergeTags?.syntax);
2956
2962
  for (let e of ["opener", "closer"]) {
2957
2963
  let t = j[e];
@@ -2962,10 +2968,10 @@ function Yo(e) {
2962
2968
  function P(e) {
2963
2969
  Array.isArray(e) ? M.value = e : $.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
2964
2970
  }
2965
- s(en, M), s(Vt, j), s(cn, n.mergeTags?.onRequest ?? null), s(Wt, n.mergeTags?.autocomplete !== !1), s(Rn, n.mergeTags?.showRawValue !== !1);
2971
+ s(tn, M), s(Ht, j), s(ln, n.mergeTags?.onRequest ?? null), s(Gt, n.mergeTags?.autocomplete !== !1), s(zn, n.mergeTags?.showRawValue !== !1);
2966
2972
  let I = z(Ie(n.mergeTags?.tags ?? []));
2967
- s(nn, I);
2968
- let L = Lr({
2973
+ s(rn, I);
2974
+ let L = Rr({
2969
2975
  resolvePreview: n.resolvePreview,
2970
2976
  getContent: () => {
2971
2977
  let e = t.content.value;
@@ -2976,15 +2982,15 @@ function Yo(e) {
2976
2982
  isActive: () => t.state.previewMode,
2977
2983
  getLocale: () => t.activeLocale?.value ?? t.content.value.settings.locale
2978
2984
  });
2979
- s(On, L), s(Jt, n.resolvePreview);
2985
+ s(kn, L), s(Yt, n.resolvePreview);
2980
2986
  let R = N(() => !(t.state.previewMode && L.isConfigured));
2981
- s(dn, R);
2982
- let B = Rr();
2983
- s(qt, B), s(Xt, z(!1)), s(Qt, z(!1)), s(xn, n.logicTags?.tags ?? []), s(Bt, n.logicTags?.pairs ?? []), s(Kt, n.logicTags?.onRequest ?? null), s(Zt, zr()), s(on, n.onRequestMedia ?? null), s(Nn, n.canDropMedia ?? null), s(Ht, n.resolveImageUrl ? gt(n.resolveImageUrl) : null), s(un, n.displayConditions?.conditions ?? []), s(kn, n.displayConditions?.allowCustom ?? !1), s(hn, e.capabilities ?? {}), s(Fn, b);
2984
- let V = Br(n.lint) ? null : Hr({
2987
+ s(fn, R);
2988
+ let B = zr();
2989
+ s(Jt, B), s(Zt, z(!1)), s($t, z(!1)), s(Sn, n.logicTags?.tags ?? []), s(Vt, n.logicTags?.pairs ?? []), s(qt, n.logicTags?.onRequest ?? null), s(Qt, Br()), s(sn, n.onRequestMedia ?? null), s(Pn, n.canDropMedia ?? null), s(Ut, n.resolveImageUrl ? _t(n.resolveImageUrl) : null), s(dn, n.displayConditions?.conditions ?? []), s(An, n.displayConditions?.allowCustom ?? !1), s(gn, e.capabilities ?? {}), s(In, b);
2990
+ let V = Vr(n.lint) ? null : Ur({
2985
2991
  content: t.content,
2986
2992
  get options() {
2987
- return Fr({
2993
+ return Ir({
2988
2994
  ...n,
2989
2995
  content: t.content.value,
2990
2996
  contentLocale: t.activeLocale?.value ?? void 0
@@ -2996,7 +3002,7 @@ function Yo(e) {
2996
3002
  updateSettings: t.updateSettings,
2997
3003
  removeBlock: t.removeBlock
2998
3004
  });
2999
- s(tn, V);
3005
+ s(nn, V);
3000
3006
  function H() {
3001
3007
  v?.(), V?.destroy(), _?.destroy(), p.destroy();
3002
3008
  }
@@ -3026,14 +3032,14 @@ function Yo(e) {
3026
3032
  };
3027
3033
  }
3028
3034
  // src/composables/useSmallScreenNotice.ts
3029
- var Xo = "(max-width: 767px)";
3030
- function Zo(e) {
3031
- let t = Xn(Xo);
3035
+ var Zo = "(max-width: 767px)";
3036
+ function Qo(e) {
3037
+ let t = Zn(Zo);
3032
3038
  return {
3033
3039
  isSmallScreen: t,
3034
3040
  showNotice: N(() => (M(e) ?? !0) && t.value)
3035
3041
  };
3036
3042
  }
3037
- export { pi as A, hr as B, Ni as C, si as D, wi as E, Fr as F, Ar as I, Or as L, di as M, ui as N, hi as O, Lr as P, xr as R, Mi as S, Ii as T, ea as _, jo as a, Bi as b, lo as c, oo as d, Ea as f, oa as g, va as h, Lo as i, fi as j, mi as k, po as l, Sa as m, Yo as n, Oo as o, Ta as p, qo as r, bo as s, Zo as t, co as u, Qi as v, Ci as w, Oi as x, Ui as y, gr as z };
3043
+ export { mi as A, gr as B, Pi as C, ci as D, Ti as E, Ir as F, jr as I, kr as L, fi as M, di as N, gi as O, Rr as P, Sr as R, Ni as S, Li as T, ta as _, Mo as a, Vi as b, uo as c, so as d, Da as f, sa as g, ya as h, Ro as i, pi as j, hi as k, mo as l, Ca as m, Xo as n, ko as o, Ea as p, Jo as r, xo as s, Qo as t, lo as u, $i as v, wi as w, ki as x, Wi as y, _r as z };
3038
3044
 
3039
- //# sourceMappingURL=composables-C1KU4ZHw.js.map
3045
+ //# sourceMappingURL=composables-BxikPuC1.js.map