@templatical/editor 0.54.1 → 0.55.0

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 (172) hide show
  1. package/dist/{AiAltTextPopover-NMJqQKvD.js → AiAltTextPopover-D5QosKvB.js} +1 -1
  2. package/dist/{AiAltTextReview-Ci4zHwRc.js → AiAltTextReview-D1W_lrI_.js} +1 -1
  3. package/dist/{AiRewriteMenu-arKoTjsQ.js → AiRewriteMenu-BwztoMov.js} +4 -4
  4. package/dist/{BlockPreviewCanvas-BTieuBmH.js → BlockPreviewCanvas-C23A6FRm.js} +6 -6
  5. package/dist/{CloudPanels-Hxdp0doU.js → CloudPanels-Baoaj6Xf.js} +1 -1
  6. package/dist/{CountdownToolbar-CM4XNEuO.js → CountdownToolbar-CA_gDIdZ.js} +4 -4
  7. package/dist/{IssuesPanel-1wGV0wiy.js → IssuesPanel-nmFhWG1p.js} +1 -1
  8. package/dist/{LanguageMenu-BpxbIJEx.js → LanguageMenu-DcABUYop.js} +5 -5
  9. package/dist/{LogicTagInsertButton-DgTJ6Lvx.js → LogicTagInsertButton-qZ82VMFx.js} +284 -279
  10. package/dist/{MergeTagInput-B_51YcQO.js → MergeTagInput-JJeZbFkD.js} +1 -1
  11. package/dist/{MergeTagModeToggle-D3Q2z317.js → MergeTagModeToggle-DDucd1eC.js} +1 -1
  12. package/dist/{MergeTagTextarea-DZz1L9DE.js → MergeTagTextarea-dQ2LRrNB.js} +2 -2
  13. package/dist/{ParagraphEditor-B38t4E2p.js → ParagraphEditor-VXYwGoz_.js} +8 -8
  14. package/dist/{RestoreVersionDialog-n7FSmWXB.js → RestoreVersionDialog-BibNvAaJ.js} +1 -1
  15. package/dist/{RichTextEditorContent-Dstovi0m.js → RichTextEditorContent-CU5EOlM_.js} +2 -2
  16. package/dist/{SaveBlockDialog-B94NpmDV.js → SaveBlockDialog-S9aFi0cy.js} +4 -4
  17. package/dist/{SavedBlocksBrowserModal-C1vSc8iM.js → SavedBlocksBrowserModal-DIdn6B0J.js} +4 -4
  18. package/dist/{SavedBlocksPanels-DLDmIYeL.js → SavedBlocksPanels-Cme2M6u8.js} +1 -1
  19. package/dist/{SavedBlocksPickBar-ngf2sFEs.js → SavedBlocksPickBar-BDmA7r3m.js} +1 -1
  20. package/dist/{TemplateSettings-Baar78_s.js → TemplateSettings-C_LHLm5M.js} +4 -4
  21. package/dist/{TestEmailModal-CB_9I1bl.js → TestEmailModal-CLIRn7eL.js} +5 -5
  22. package/dist/{TestEmailPanel-BUq-dbXQ.js → TestEmailPanel-frdtjC8h.js} +1 -1
  23. package/dist/{TitleEditor-BLP41rwy.js → TitleEditor-D5kC56Jl.js} +4 -4
  24. package/dist/{Toolbar-bOZ_eq7X.js → Toolbar-D904Yw_R.js} +747 -699
  25. package/dist/{TplModal-DFKqmJQz.js → TplModal-BBdotDf1.js} +1 -1
  26. package/dist/{VersionHistoryPanels-DPxj3mec.js → VersionHistoryPanels-DhagEgOk.js} +1 -1
  27. package/dist/{WrapperBlock-BdVIuGMR.js → WrapperBlock-BAT3T0Cz.js} +3 -3
  28. package/dist/{blockTypeIcons-BUyPZ7Su.js → blockTypeIcons-CoRQV_hP.js} +1 -1
  29. package/dist/bundle-stats.json +6 -6
  30. package/dist/{cdn/chunks/ca-DOuIxWRv.js → ca-DIkMxYCN.js} +10 -3
  31. package/dist/cdn/chunks/{AiAltTextPopover-Cnc_kUmb.js → AiAltTextPopover-CUGOPuRo.js} +2 -2
  32. package/dist/cdn/chunks/{AiAltTextPopover-Cnc_kUmb.js.map → AiAltTextPopover-CUGOPuRo.js.map} +1 -1
  33. package/dist/cdn/chunks/{AiAltTextReview-DPeSY-7r.js → AiAltTextReview-B9vm_L-8.js} +2 -2
  34. package/dist/cdn/chunks/{AiAltTextReview-DPeSY-7r.js.map → AiAltTextReview-B9vm_L-8.js.map} +1 -1
  35. package/dist/cdn/chunks/{AiRewriteMenu-YcVFv6RS.js → AiRewriteMenu-BvV_7tNZ.js} +7 -7
  36. package/dist/cdn/chunks/{AiRewriteMenu-YcVFv6RS.js.map → AiRewriteMenu-BvV_7tNZ.js.map} +1 -1
  37. package/dist/cdn/chunks/{BlockPreviewCanvas-6ck15xz9.js → BlockPreviewCanvas-Dr-xGq6v.js} +7 -7
  38. package/dist/cdn/chunks/{BlockPreviewCanvas-6ck15xz9.js.map → BlockPreviewCanvas-Dr-xGq6v.js.map} +1 -1
  39. package/dist/cdn/chunks/{CloudPanels-BHHpNckC.js → CloudPanels-CQ0vNgsH.js} +2 -2
  40. package/dist/cdn/chunks/{CloudPanels-BHHpNckC.js.map → CloudPanels-CQ0vNgsH.js.map} +1 -1
  41. package/dist/cdn/chunks/{CountdownToolbar-CNgsNL5-.js → CountdownToolbar-BxW-J7DX.js} +5 -5
  42. package/dist/cdn/chunks/{CountdownToolbar-CNgsNL5-.js.map → CountdownToolbar-BxW-J7DX.js.map} +1 -1
  43. package/dist/cdn/chunks/{IssuesPanel-Duic0mIs.js → IssuesPanel-BoHeIjvw.js} +3 -3
  44. package/dist/cdn/chunks/{IssuesPanel-Duic0mIs.js.map → IssuesPanel-BoHeIjvw.js.map} +1 -1
  45. package/dist/cdn/chunks/{LanguageMenu-C6utRx_4.js → LanguageMenu-BnYN5N1h.js} +7 -7
  46. package/dist/cdn/chunks/{LanguageMenu-C6utRx_4.js.map → LanguageMenu-BnYN5N1h.js.map} +1 -1
  47. package/dist/cdn/chunks/{LogicTagInsertButton-Bhvi0nWz.js → LogicTagInsertButton-Bt2PXbQ0.js} +255 -250
  48. package/dist/cdn/chunks/LogicTagInsertButton-Bt2PXbQ0.js.map +1 -0
  49. package/dist/cdn/chunks/{MergeTagInput-CrhZm-AW.js → MergeTagInput-BELdMRni.js} +2 -2
  50. package/dist/cdn/chunks/{MergeTagInput-CrhZm-AW.js.map → MergeTagInput-BELdMRni.js.map} +1 -1
  51. package/dist/cdn/chunks/{MergeTagModeToggle-CWVtXLYa.js → MergeTagModeToggle-DKfMDIEF.js} +2 -2
  52. package/dist/cdn/chunks/{MergeTagModeToggle-CWVtXLYa.js.map → MergeTagModeToggle-DKfMDIEF.js.map} +1 -1
  53. package/dist/cdn/chunks/{MergeTagTextarea-hTIBwX0F.js → MergeTagTextarea-w6xen3Xh.js} +5 -5
  54. package/dist/cdn/chunks/{MergeTagTextarea-hTIBwX0F.js.map → MergeTagTextarea-w6xen3Xh.js.map} +1 -1
  55. package/dist/cdn/chunks/{ParagraphEditor-B3EQ0Ai6.js → ParagraphEditor-Cal9hY3U.js} +9 -9
  56. package/dist/cdn/chunks/{ParagraphEditor-B3EQ0Ai6.js.map → ParagraphEditor-Cal9hY3U.js.map} +1 -1
  57. package/dist/cdn/chunks/{RestoreVersionDialog-DfNrVi0R.js → RestoreVersionDialog-f_ulmASY.js} +2 -2
  58. package/dist/cdn/chunks/{RestoreVersionDialog-DfNrVi0R.js.map → RestoreVersionDialog-f_ulmASY.js.map} +1 -1
  59. package/dist/cdn/chunks/{RichTextEditorContent-up4AqL7D.js → RichTextEditorContent-C_v0kS4A.js} +3 -3
  60. package/dist/cdn/chunks/{RichTextEditorContent-up4AqL7D.js.map → RichTextEditorContent-C_v0kS4A.js.map} +1 -1
  61. package/dist/cdn/chunks/{SaveBlockDialog-BqglcKcN.js → SaveBlockDialog-C6N9RFls.js} +5 -5
  62. package/dist/cdn/chunks/{SaveBlockDialog-BqglcKcN.js.map → SaveBlockDialog-C6N9RFls.js.map} +1 -1
  63. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BewXGlrK.js → SavedBlocksBrowserModal-Bl2sl09D.js} +4 -4
  64. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BewXGlrK.js.map → SavedBlocksBrowserModal-Bl2sl09D.js.map} +1 -1
  65. package/dist/cdn/chunks/{SavedBlocksPanels-0ZpX-jXI.js → SavedBlocksPanels-DqVcmEUK.js} +2 -2
  66. package/dist/cdn/chunks/{SavedBlocksPanels-0ZpX-jXI.js.map → SavedBlocksPanels-DqVcmEUK.js.map} +1 -1
  67. package/dist/cdn/chunks/{SavedBlocksPickBar-DHah-Uf7.js → SavedBlocksPickBar-DE-J1JVL.js} +2 -2
  68. package/dist/cdn/chunks/{SavedBlocksPickBar-DHah-Uf7.js.map → SavedBlocksPickBar-DE-J1JVL.js.map} +1 -1
  69. package/dist/cdn/chunks/{TemplateSettings-CWUpUKJb.js → TemplateSettings-CpoKZ8oV.js} +5 -5
  70. package/dist/cdn/chunks/{TemplateSettings-CWUpUKJb.js.map → TemplateSettings-CpoKZ8oV.js.map} +1 -1
  71. package/dist/cdn/chunks/{TestEmailModal-7pUDYLrk.js → TestEmailModal-DI3z__Bd.js} +8 -8
  72. package/dist/cdn/chunks/{TestEmailModal-7pUDYLrk.js.map → TestEmailModal-DI3z__Bd.js.map} +1 -1
  73. package/dist/cdn/chunks/{TestEmailPanel-DBWwMsH1.js → TestEmailPanel-Cp5d2YGn.js} +2 -2
  74. package/dist/cdn/chunks/{TestEmailPanel-DBWwMsH1.js.map → TestEmailPanel-Cp5d2YGn.js.map} +1 -1
  75. package/dist/cdn/chunks/{TitleEditor-VAanUjPQ.js → TitleEditor-C2syRLdZ.js} +4 -4
  76. package/dist/cdn/chunks/{TitleEditor-VAanUjPQ.js.map → TitleEditor-C2syRLdZ.js.map} +1 -1
  77. package/dist/cdn/chunks/{Toolbar-BlWVQRcA.js → Toolbar-NEE8qxYh.js} +754 -706
  78. package/dist/cdn/chunks/Toolbar-NEE8qxYh.js.map +1 -0
  79. package/dist/cdn/chunks/{TplModal-DDlR7mk3.js → TplModal-B1MgvtX8.js} +2 -2
  80. package/dist/cdn/chunks/{TplModal-DDlR7mk3.js.map → TplModal-B1MgvtX8.js.map} +1 -1
  81. package/dist/cdn/chunks/{VersionHistoryPanels-DJDeaf1B.js → VersionHistoryPanels-Cefd8i_e.js} +2 -2
  82. package/dist/cdn/chunks/{VersionHistoryPanels-DJDeaf1B.js.map → VersionHistoryPanels-Cefd8i_e.js.map} +1 -1
  83. package/dist/cdn/chunks/{WrapperBlock-DRJnrgy-.js → WrapperBlock-DFY-7YSs.js} +4 -4
  84. package/dist/cdn/chunks/{WrapperBlock-DRJnrgy-.js.map → WrapperBlock-DFY-7YSs.js.map} +1 -1
  85. package/dist/{ca-DOuIxWRv.js → cdn/chunks/ca-DIkMxYCN.js} +12 -1
  86. package/dist/cdn/chunks/{ca-DOuIxWRv.js.map → ca-DIkMxYCN.js.map} +1 -1
  87. package/dist/cdn/chunks/{composables-Jc3uZuLs.js → composables-nyxwrM27.js} +619 -597
  88. package/dist/cdn/chunks/composables-nyxwrM27.js.map +1 -0
  89. package/dist/cdn/chunks/{createCloudRuntime-C2Zs5F1O.js → createCloudRuntime-DJkDGKQ_.js} +3 -3
  90. package/dist/cdn/chunks/{createCloudRuntime-C2Zs5F1O.js.map → createCloudRuntime-DJkDGKQ_.js.map} +1 -1
  91. package/dist/{de-DaOUfYBX.js → cdn/chunks/de-Cc6Ue0UD.js} +12 -1
  92. package/dist/cdn/chunks/de-Cc6Ue0UD.js.map +1 -0
  93. package/dist/cdn/chunks/{en-C0pHHMiR.js → en-BX4FujAQ.js} +11 -2
  94. package/dist/cdn/chunks/en-BX4FujAQ.js.map +1 -0
  95. package/dist/{es-CxyEKr6n.js → cdn/chunks/es-Do5b-MKU.js} +12 -1
  96. package/dist/cdn/chunks/es-Do5b-MKU.js.map +1 -0
  97. package/dist/cdn/chunks/{extensions-DcMKZpzh.js → extensions-BcwkOjVq.js} +76 -70
  98. package/dist/cdn/chunks/extensions-BcwkOjVq.js.map +1 -0
  99. package/dist/{fr-CYbamiI6.js → cdn/chunks/fr-S1n2Ebzp.js} +12 -1
  100. package/dist/cdn/chunks/fr-S1n2Ebzp.js.map +1 -0
  101. package/dist/cdn/chunks/{ja-DfaIAoGI.js → ja-DLwcq4bA.js} +11 -2
  102. package/dist/cdn/chunks/ja-DLwcq4bA.js.map +1 -0
  103. package/dist/{nl-DkrB-VKZ.js → cdn/chunks/nl-0JSWaZpT.js} +12 -1
  104. package/dist/cdn/chunks/nl-0JSWaZpT.js.map +1 -0
  105. package/dist/{normalizeMergeTagMarkup-CUCo7B5X.js → cdn/chunks/normalizeMergeTagMarkup-BrGw5jxk.js} +102 -90
  106. package/dist/cdn/chunks/normalizeMergeTagMarkup-BrGw5jxk.js.map +1 -0
  107. package/dist/{preRenderCustomBlocks-Bs3N9no-.js → cdn/chunks/preRenderCustomBlocks-Cj0XYwuh.js} +3 -1
  108. package/dist/cdn/chunks/{preRenderCustomBlocks-f7GEKdvw.js.map → preRenderCustomBlocks-Cj0XYwuh.js.map} +1 -1
  109. package/dist/{pt-BR-CY5Ye7eP.js → cdn/chunks/pt-BR-D3VlIMDZ.js} +12 -1
  110. package/dist/cdn/chunks/pt-BR-D3VlIMDZ.js.map +1 -0
  111. package/dist/cdn/chunks/{sanitizeHtml-WTfz9lZd.js → sanitizeHtml-GxJCxKcP.js} +3 -3
  112. package/dist/cdn/chunks/{sanitizeHtml-WTfz9lZd.js.map → sanitizeHtml-GxJCxKcP.js.map} +1 -1
  113. package/dist/cdn/chunks/{socialIcons-DeCYorUT.js → socialIcons-B5zrrV8-.js} +387 -386
  114. package/dist/cdn/chunks/{socialIcons-DeCYorUT.js.map → socialIcons-B5zrrV8-.js.map} +1 -1
  115. package/dist/cdn/chunks/{src-A_cKeTM_.js → src-Diw9SLIe.js} +673 -554
  116. package/dist/cdn/chunks/src-Diw9SLIe.js.map +1 -0
  117. package/dist/cdn/chunks/src-UR3AQocX.js +683 -0
  118. package/dist/cdn/chunks/src-UR3AQocX.js.map +1 -0
  119. package/dist/cdn/chunks/{src-BQUv2CYU.js → src-v47QHNmB.js} +808 -645
  120. package/dist/cdn/chunks/src-v47QHNmB.js.map +1 -0
  121. package/dist/cdn/chunks/useLocalizedDisplay-DekV8qar.js +33 -0
  122. package/dist/cdn/chunks/{useLocalizedDisplay-aGfnO90D.js.map → useLocalizedDisplay-DekV8qar.js.map} +1 -1
  123. package/dist/cdn/chunks/{useLogicTag-DtYe8HIq.js → useLogicTag-Cbp3I7UN.js} +2 -2
  124. package/dist/cdn/chunks/{useLogicTag-DtYe8HIq.js.map → useLogicTag-Cbp3I7UN.js.map} +1 -1
  125. package/dist/cdn/chunks/{useMergeTag-B8ULmsnp.js → useMergeTag-1lrpNyR5.js} +4 -4
  126. package/dist/cdn/chunks/{useMergeTag-B8ULmsnp.js.map → useMergeTag-1lrpNyR5.js.map} +1 -1
  127. package/dist/cdn/chunks/{withCurrentFont-MK8ga9q9.js → withCurrentFont-DZfmiv8V.js} +2 -2
  128. package/dist/cdn/chunks/{withCurrentFont-MK8ga9q9.js.map → withCurrentFont-DZfmiv8V.js.map} +1 -1
  129. package/dist/cdn/editor.css +1 -1
  130. package/dist/cdn/editor.js +285 -285
  131. package/dist/cdn/editor.js.map +1 -1
  132. package/dist/{composables-XjYKaKhY.js → composables-DPgNn9GZ.js} +963 -941
  133. package/dist/{createCloudRuntime-DGV5a5Af.js → createCloudRuntime-Bw8TLmQ8.js} +2 -2
  134. package/dist/{cdn/chunks/de-DaOUfYBX.js → de-Cc6Ue0UD.js} +10 -3
  135. package/dist/{dist-Cdkm20M6.js → dist-CBdk1Vcb.js} +978 -815
  136. package/dist/{en-C0pHHMiR.js → en-BX4FujAQ.js} +10 -1
  137. package/dist/{cdn/chunks/es-CxyEKr6n.js → es-Do5b-MKU.js} +10 -3
  138. package/dist/{extensions-BJ184osp.js → extensions-QFAARrjF.js} +336 -330
  139. package/dist/{cdn/chunks/fr-CYbamiI6.js → fr-S1n2Ebzp.js} +10 -3
  140. package/dist/index.d.ts +14 -1
  141. package/dist/{ja-DfaIAoGI.js → ja-DLwcq4bA.js} +10 -1
  142. package/dist/{cdn/chunks/nl-DkrB-VKZ.js → nl-0JSWaZpT.js} +10 -3
  143. package/dist/{cdn/chunks/normalizeMergeTagMarkup-cC32Ox6A.js → normalizeMergeTagMarkup-BS0nRvhq.js} +97 -89
  144. package/dist/{cdn/chunks/preRenderCustomBlocks-f7GEKdvw.js → preRenderCustomBlocks-CiKvKd8V.js} +4 -6
  145. package/dist/{cdn/chunks/pt-BR-CY5Ye7eP.js → pt-BR-D3VlIMDZ.js} +10 -3
  146. package/dist/{sanitizeHtml-2rjV0r-6.js → sanitizeHtml-USjTyALR.js} +5 -5
  147. package/dist/{socialIcons-TFiOkpoU.js → socialIcons-NvIg5ahU.js} +401 -400
  148. package/dist/style.css +1 -1
  149. package/dist/templatical-editor.js +190 -190
  150. package/dist/useLocalizedDisplay-LdjosX4w.js +31 -0
  151. package/dist/{useLogicTag-BXXXQQmi.js → useLogicTag-D8zgkXfb.js} +1 -1
  152. package/dist/{useMergeTag-C9Okr87y.js → useMergeTag-k7Kr0nMd.js} +3 -3
  153. package/dist/{withCurrentFont-DJiQqZzL.js → withCurrentFont-Bzeg_gfH.js} +1 -1
  154. package/package.json +7 -7
  155. package/dist/cdn/chunks/LogicTagInsertButton-Bhvi0nWz.js.map +0 -1
  156. package/dist/cdn/chunks/Toolbar-BlWVQRcA.js.map +0 -1
  157. package/dist/cdn/chunks/composables-Jc3uZuLs.js.map +0 -1
  158. package/dist/cdn/chunks/de-DaOUfYBX.js.map +0 -1
  159. package/dist/cdn/chunks/en-C0pHHMiR.js.map +0 -1
  160. package/dist/cdn/chunks/es-CxyEKr6n.js.map +0 -1
  161. package/dist/cdn/chunks/extensions-DcMKZpzh.js.map +0 -1
  162. package/dist/cdn/chunks/fr-CYbamiI6.js.map +0 -1
  163. package/dist/cdn/chunks/ja-DfaIAoGI.js.map +0 -1
  164. package/dist/cdn/chunks/nl-DkrB-VKZ.js.map +0 -1
  165. package/dist/cdn/chunks/normalizeMergeTagMarkup-cC32Ox6A.js.map +0 -1
  166. package/dist/cdn/chunks/pt-BR-CY5Ye7eP.js.map +0 -1
  167. package/dist/cdn/chunks/src-8bYYJPCt.js +0 -671
  168. package/dist/cdn/chunks/src-8bYYJPCt.js.map +0 -1
  169. package/dist/cdn/chunks/src-A_cKeTM_.js.map +0 -1
  170. package/dist/cdn/chunks/src-BQUv2CYU.js.map +0 -1
  171. package/dist/cdn/chunks/useLocalizedDisplay-aGfnO90D.js +0 -33
  172. 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, A as U, At as W, B as G, C as ee, D as K, E as q, G as J, Gt as te, H as ne, I as re, J as ie, K as Y, L as X, M as ae, N as oe, O as se, P as ce, Q as Z, R as le, S as ue, Sn as de, T as fe, U as pe, W as me, X as he, Xt as ge, Y as _e, Z as ve, Zt as ye, _n as be, _t as xe, a as Se, an as Ce, b as we, bn as Te, ct as Ee, d as De, et as Oe, ft as ke, i as Ae, it as je, j as Me, ln as Ne, mn as Pe, mt as Fe, nn as Ie, nt as Le, on as Re, ot as ze, p as Be, pn as Ve, pt as He, rt as Ue, sn as We, st as Ge, t as Ke, tt as qe, u as Je, ut as Ye, vn as Xe, w as Ze, x as Qe, xn as $e, y as et, yn as tt } from "./src-v47QHNmB.js";
3
+ import { B as nt, C as rt, F as it, I as at, P as ot, R as st, T as ct, _ as lt, a as ut, f as dt, h as ft, n as pt, o as mt, t as ht, u as gt, v as _t, w as vt, x as yt, y as bt, z as xt } from "./socialIcons-B5zrrV8-.js";
4
+ import { t as St } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
5
+ import { At as Ct, G as wt, Mt as Tt, Nt as Et, Ot as Dt, St as Ot, Ut as kt, V as At, Wt as jt, X as Mt, _t as Nt, d as Pt, f as Ft, k as It, mt as Lt, nt as Rt, o as zt, y as Bt, yt as Vt } from "./icons-Da9GKjPx.js";
6
+ import { $ as Ht, A as Ut, B as Wt, C as Gt, D as Kt, F as qt, G as Jt, H as Yt, I as Xt, J as Zt, K as Qt, L as $t, M as en, N as tn, O as nn, P as rn, Q as an, R as on, S as sn, T as cn, U as ln, V as un, W as dn, X as fn, _ as pn, a as mn, at as hn, b as gn, c as _n, d as vn, et as yn, g as bn, h as xn, i as Sn, it as Cn, j as wn, k as Tn, l as En, m as Dn, nt as On, ot as kn, p as An, q as jn, r as Mn, rt as Nn, s as Pn, tt as Fn, u as In, v as Ln, w as Rn, x as zn, y as Bn, z as Vn } 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 Hn } from "./useLocalizedDisplay-DekV8qar.js";
9
+ import { t as Un } from "./plural-CyxrJXL1.js";
10
+ import { t as Wn } from "./languageName-DEEOhDWI.js";
11
+ import { m as Gn, w as Kn, x as qn } from "./styleConstants-CgiNKdnc.js";
12
+ import { _ as Jn, h as Yn, v as Xn, y as Zn } from "./dist-BzXULHvI.js";
13
+ import { a as Qn, c as $n, i as er, l as tr } from "./dist-DqGgijFI.js";
14
+ import { t as nr } 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 rr } from "./useMergeTag-1lrpNyR5.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 ir, c as ar, i as or, n as sr, o as cr, t as lr } from "./usePopoverPosition-BWAXWeBv.js";
19
+ import { t as ur } from "./useLogicTag-Cbp3I7UN.js";
20
+ import { r as dr, t as fr } from "./templateSettingsFields-cjlP-jdw.js";
21
+ import { n as pr, t as mr } from "./sanitizeHtml-GxJCxKcP.js";
22
+ import { t as hr } from "./LoadingTrack-DUYcDHOV.js";
23
+ import { t as gr } 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 _r = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
26
+ function vr(e, t) {
27
+ let n = nr(), 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(_r)).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 = Qn(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 yr() {
59
+ let [e, t] = Xn(!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 br() {
84
84
  let e = F(/* @__PURE__ */ new Map());
85
85
  function t(t, n) {
86
86
  e.value.set(t, n), L(e);
@@ -89,7 +89,7 @@ function _r() {
89
89
  let r = `custom:${t.type}`;
90
90
  e.value.set(r, {
91
91
  component: n,
92
- createBlock: () => ie(t),
92
+ createBlock: () => ue(t),
93
93
  definition: t
94
94
  }), L(e);
95
95
  }
@@ -114,7 +114,7 @@ function _r() {
114
114
  let t = a(e.customType);
115
115
  if (!t) return o("Block definition not found");
116
116
  try {
117
- return await ae(await import("./liquid.browser-rubac0VA.js")).parseAndRender(t.template, e.fieldValues);
117
+ return await X(await import("./liquid.browser-rubac0VA.js")).parseAndRender(t.template, e.fieldValues);
118
118
  } catch (t) {
119
119
  return $.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
120
120
  }
@@ -133,7 +133,7 @@ function _r() {
133
133
  };
134
134
  }
135
135
  // src/composables/useFonts.ts
136
- var vr = [
136
+ var xr = [
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
+ ], Sr = "Arial, sans-serif";
166
+ function Cr(e) {
167
+ if (e === void 0 || e === !0) return [...xr];
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 = xr.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: ${xr.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 wr(e) {
177
+ let t = z(e?.customFonts ?? []), n = z(!1), r = Cr(e?.builtIns), i = N(() => e?.defaultFallback ?? Sr), 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 ?? Sr.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 Sr;
196
196
  }
197
197
  let l = N(() => c());
198
198
  function u(e) {
199
- return Xe(e, {
199
+ return Ae(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 Tr = {
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 Er({ 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(Tr)) {
270
270
  let n = a[e];
271
271
  n && (r[t] = n);
272
272
  }
@@ -274,12 +274,12 @@ 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 Dr(e, t, n) {
278
+ return he(e, n) ? {
279
279
  type: "logicMergeTagNode",
280
280
  attrs: {
281
281
  value: e,
282
- keyword: Ne(e, n)
282
+ keyword: me(e, n)
283
283
  }
284
284
  } : {
285
285
  type: "mergeTagNode",
@@ -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 Or(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 kr(e, t, n) {
297
+ if (!Or(t)) {
298
+ e.chain().focus().insertContent(Dr(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 = Dr(t.before, t.label, n), i = Dr(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 Ar(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 jr(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) => Ar(cr(e.style.color)),
317
317
  renderHTML: (e) => {
318
- let t = Dr(e.color);
318
+ let t = Ar(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 Mr(e, t = ne.liquid, n = () => !0) {
327
327
  let r = z(!1), i = z(""), a = z(""), o = z(null);
328
- hr(o, r);
328
+ vr(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 = Ar(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
  }
@@ -353,8 +353,8 @@ function kr(e, t = Re.liquid, n = () => !0) {
353
353
  if (t.startsWith("#")) return t;
354
354
  if (t.startsWith("//")) return `https:${t}`;
355
355
  if (l.test(t)) return t;
356
- let n = W(t);
357
- return n ? se.some((e) => e === n) ? t : null : u(t) ? t : `https://${t}`;
356
+ let n = De(t);
357
+ return n ? Je.some((e) => e === n) ? t : null : u(t) ? t : `https://${t}`;
358
358
  }
359
359
  function f() {
360
360
  n() && (e.value?.chain().focus().extendMarkRange("link").unsetLink().run(), p());
@@ -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 Nr(e) {
382
+ let t = f(Ln, null), n = ar(), { mergeTags: r, canRequestMergeTag: i, isRequesting: a, requestMergeTag: s, syntax: c, autocomplete: l } = rr(), { canInsertLogicTag: d, isRequesting: p, requestLogicTag: m } = ur(), h = f(Fn, null), g = (v(h) ? h.value : h)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", _ = ie(c), y = F(null), b = t?.content ? Hn(t) : null, x = () => Ye(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 } = Mr(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 } = Jn(() => 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
+ Qn(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 ? kr(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 Pr = /* @__PURE__ */ new Set(), Fr = 0, Ir = 0;
488
+ function Lr() {
489
+ let e = ++Ir;
490
+ return Pr.add(e), Fr === 0 && (Fr = e), {
491
491
  id: e,
492
- isActive: () => jr.size <= 1 || Mr === e,
492
+ isActive: () => Pr.size <= 1 || Fr === e,
493
493
  claim: () => {
494
- Mr = e;
494
+ Fr = 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 (Pr.delete(e), Fr === e) {
498
+ let e = Array.from(Pr);
499
+ Fr = 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 Rr(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 zr = 500;
515
+ function Br(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);
@@ -523,13 +523,13 @@ function Lr(e) {
523
523
  let o = ++a;
524
524
  r.value = !0;
525
525
  let s = {
526
- content: we(e.getContent()),
526
+ content: Ie(e.getContent()),
527
527
  ...e.getRecipient?.() === void 0 ? {} : { recipient: e.getRecipient() }
528
528
  };
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
+ }, zr));
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 Vr() {
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 Hr() {
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 Ur(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 Wr = !1;
634
+ function Gr(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 = Ur(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-Diw9SLIe.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 = Zn(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, Wr || (Wr = !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 Kr(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 ? bt(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 qr(e) {
781
+ let t = $n("(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 Jr(e, t) {
786
786
  return N(() => {
787
- let n = Kr(e.value.blocks);
787
+ let n = Yr(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,75 +796,75 @@ function Gr(e, t) {
796
796
  return i;
797
797
  });
798
798
  }
799
- function Kr(e) {
799
+ function Yr(e) {
800
800
  let t = /* @__PURE__ */ new Set();
801
- return qr(e, t), t;
801
+ return Xr(e, t), t;
802
802
  }
803
- function qr(e, t) {
804
- for (let n of e) if (Me(n)) t.add(n.customType);
803
+ function Xr(e, t) {
804
+ for (let n of e) if (xe(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) Xr(n, t);
809
+ } else W(n) && Xr(n.children, t);
810
810
  }
811
811
  // src/utils/registerBuiltInBlocks.ts
812
- var Jr = [
812
+ var Zr = [
813
813
  {
814
814
  type: "section",
815
- createBlock: ce
815
+ createBlock: se
816
816
  },
817
817
  {
818
818
  type: "title",
819
- createBlock: ne
819
+ createBlock: oe
820
820
  },
821
821
  {
822
822
  type: "paragraph",
823
- createBlock: te
823
+ createBlock: K
824
824
  },
825
825
  {
826
826
  type: "image",
827
- createBlock: U
827
+ createBlock: fe
828
828
  },
829
829
  {
830
830
  type: "button",
831
- createBlock: G
831
+ createBlock: we
832
832
  },
833
833
  {
834
834
  type: "divider",
835
- createBlock: oe
835
+ createBlock: ee
836
836
  },
837
837
  {
838
838
  type: "video",
839
- createBlock: ue
839
+ createBlock: ce
840
840
  },
841
841
  {
842
842
  type: "social",
843
- createBlock: ee
843
+ createBlock: U
844
844
  },
845
845
  {
846
846
  type: "menu",
847
- createBlock: le
847
+ createBlock: q
848
848
  },
849
849
  {
850
850
  type: "table",
851
- createBlock: Ve
851
+ createBlock: ae
852
852
  },
853
853
  {
854
854
  type: "spacer",
855
- createBlock: re
855
+ createBlock: Me
856
856
  },
857
857
  {
858
858
  type: "html",
859
- createBlock: Qe
859
+ createBlock: Ze
860
860
  },
861
861
  {
862
862
  type: "countdown",
863
- createBlock: K
863
+ createBlock: Qe
864
864
  }
865
865
  ];
866
- function Yr(e, t) {
867
- for (let n of Jr) {
866
+ function Qr(e, t) {
867
+ for (let n of Zr) {
868
868
  let r = t[n.type];
869
869
  r && e.registerBuiltIn(n.type, {
870
870
  component: r,
@@ -873,31 +873,31 @@ function Yr(e, t) {
873
873
  }
874
874
  }
875
875
  // src/utils/resolveHtmlBlockPreview.ts
876
- function Xr(e) {
876
+ function $r(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 ei(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 ti(e, t, n) {
884
+ let r = new Set(e.map((e) => ir(e))), i = [], a = (e, t) => {
885
+ for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(ir(o)) && i.push(`${t}.${n}: ${o}`) : ei(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(ke)) {
888
888
  let n = o?.[e];
889
889
  a({
890
890
  ...t,
891
- ...Zr(n) ? n : {}
891
+ ...ei(n) ? n : {}
892
892
  }, e);
893
893
  }
894
894
  return a({
895
- ...Ce,
895
+ ...He,
896
896
  ...n ?? {}
897
897
  }, "template"), i;
898
898
  }
899
899
  // src/utils/localizedBlockDefaults.ts
900
- function $r(e) {
900
+ function ni(e) {
901
901
  return {
902
902
  title: { content: `<p>${e.blockDefaults.title}</p>` },
903
903
  paragraph: { content: `<p>${e.blockDefaults.paragraph}</p>` },
@@ -905,62 +905,62 @@ function $r(e) {
905
905
  };
906
906
  }
907
907
  // src/i18n/index.ts
908
- var ei = /* #__PURE__ */ Object.assign({
909
- "./locales/ca.ts": () => import("./ca-DOuIxWRv.js"),
910
- "./locales/de.ts": () => import("./de-DaOUfYBX.js"),
911
- "./locales/en.ts": () => import("./en-C0pHHMiR.js"),
912
- "./locales/es.ts": () => import("./es-CxyEKr6n.js"),
913
- "./locales/fr.ts": () => import("./fr-CYbamiI6.js"),
914
- "./locales/ja.ts": () => import("./ja-DfaIAoGI.js"),
915
- "./locales/nl.ts": () => import("./nl-DkrB-VKZ.js"),
916
- "./locales/pt-BR.ts": () => import("./pt-BR-CY5Ye7eP.js")
917
- }), ti = /* #__PURE__ */ Object.assign({
908
+ var ri = /* #__PURE__ */ Object.assign({
909
+ "./locales/ca.ts": () => import("./ca-DIkMxYCN.js"),
910
+ "./locales/de.ts": () => import("./de-Cc6Ue0UD.js"),
911
+ "./locales/en.ts": () => import("./en-BX4FujAQ.js"),
912
+ "./locales/es.ts": () => import("./es-Do5b-MKU.js"),
913
+ "./locales/fr.ts": () => import("./fr-S1n2Ebzp.js"),
914
+ "./locales/ja.ts": () => import("./ja-DLwcq4bA.js"),
915
+ "./locales/nl.ts": () => import("./nl-0JSWaZpT.js"),
916
+ "./locales/pt-BR.ts": () => import("./pt-BR-D3VlIMDZ.js")
917
+ }), ii = /* #__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 ai(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 oi = ai(ri), si = ai(ii);
926
+ function ci(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 li(e, t) {
930
+ let n = ci(e);
931
+ return t.find((e) => ci(e) === n);
932
932
  }
933
- function si(e) {
934
- return ai(e).split("-")[0];
933
+ function ui(e) {
934
+ return ci(e).split("-")[0];
935
935
  }
936
- function ci(e, t) {
937
- return oi(e, t) ?? oi(si(e), t);
936
+ function di(e, t) {
937
+ return li(e, t) ?? li(ui(e), t);
938
938
  }
939
- function li(e, t) {
940
- return ci(e, t) ?? "en";
939
+ function fi(e, t) {
940
+ return di(e, t) ?? "en";
941
941
  }
942
- async function ui(e) {
943
- let t = ei[`./locales/${li(e, ri)}.ts`];
942
+ async function pi(e) {
943
+ let t = ri[`./locales/${fi(e, oi)}.ts`];
944
944
  return (await t()).default;
945
945
  }
946
- async function di(e) {
947
- let t = ti[`./locales/cloud/${li(e, ii)}.ts`];
946
+ async function mi(e) {
947
+ let t = ii[`./locales/cloud/${fi(e, si)}.ts`];
948
948
  return (await t()).default;
949
949
  }
950
- function fi(e) {
951
- return ci(e, ri) !== void 0;
950
+ function hi(e) {
951
+ return di(e, oi) !== void 0;
952
952
  }
953
- function pi(e) {
954
- return ci(e, ii) !== void 0;
953
+ function gi(e) {
954
+ return di(e, si) !== void 0;
955
955
  }
956
- function mi() {
957
- return [...ri];
956
+ function _i() {
957
+ return [...oi];
958
958
  }
959
- function hi() {
960
- return [...ii];
959
+ function vi() {
960
+ return [...si];
961
961
  }
962
962
  // src/i18n/contentDefaults.ts
963
- var gi = {
963
+ var yi = {
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
- }
1036
- function yi(e) {
1037
- let t = vi(e);
1028
+ }, bi = new Map(Object.keys(yi).map((e) => [e.toLowerCase(), e]));
1029
+ function xi(e) {
1030
+ if (!e) return yi.en;
1031
+ let t = e.trim().replace(/_/g, "-").toLowerCase(), n = bi.get(t);
1032
+ if (n) return yi[n];
1033
+ let r = bi.get(ui(t));
1034
+ return r ? yi[r] : yi.en;
1035
+ }
1036
+ function Si(e) {
1037
+ let t = xi(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 Ci(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 = _t(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) => ir(e)));
1064
+ e !== "" && !t.has(ir(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 wi(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 Ti(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 (wi(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?.() && !wi(e)) {
1092
1092
  if (e.key === "Escape") {
1093
1093
  e.preventDefault(), t.onCancelPick?.();
1094
1094
  return;
@@ -1102,188 +1102,192 @@ 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() && !wi(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 Ei(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 Di(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 Oi = "--tpl-block-bg-layer", ki = "tpl-has-bg-image";
1121
+ function Ai(e, t) {
1122
1122
  if (t === null) return {};
1123
- let n = Ee(e);
1123
+ let n = Pe(e);
1124
1124
  if (n === null) return {};
1125
- let r = t?.trim(), i = r ? Se(r) : n.url;
1125
+ let r = t?.trim(), i = r ? Ve(r) : n.url;
1126
1126
  return {
1127
1127
  backgroundImage: `url("${i}")`,
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
+ [Oi]: `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 ji(e) {
1135
+ return e && Oi in e ? ki : void 0;
1136
1136
  }
1137
- var ki = {
1137
+ var Mi = {
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 Ni(e, t) {
1143
+ let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${Pi(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: Mi[e.verticalAlign],
1148
1148
  boxSizing: "border-box",
1149
1149
  ...n
1150
1150
  };
1151
1151
  }
1152
- function ji(e, t) {
1152
+ function Pi(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 Fi(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`,
1159
1159
  backgroundColor: r || "transparent"
1160
1160
  };
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
- let n = ve(e.borderRadius);
1161
+ if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? Xe.paragraphGap : Xe.paragraphGap}px`), e.type === "section") {
1162
+ let n = de(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 = Ne(e);
1165
+ r?.applied && e.backgroundImage ? (Object.assign(i, Ni(r, t.heroBoxWidth)), Object.assign(i, Ai({
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, Li(e.border)), Object.assign(i, Ai(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 Ii(e, t, n, r) {
1174
+ return e.type === "section" ? Fi(e, {
1175
+ backgroundImageUrl: rt(t, e.backgroundImage, n),
1176
1176
  heroBoxWidth: r
1177
- }) : Mi(e);
1177
+ }) : Fi(e);
1178
1178
  }
1179
- function Pi(e) {
1179
+ function Li(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($e(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
1182
1182
  return t;
1183
1183
  }
1184
- function Fi(e, t = {}) {
1184
+ function Ri(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
- let i = ve(n.borderRadius);
1189
- return i !== null && (r.borderRadius = i), Object.assign(r, Di(n.backgroundImage, t.backgroundImageUrl)), r;
1188
+ let i = de(n.borderRadius);
1189
+ return i !== null && (r.borderRadius = i), Object.assign(r, Ai(n.backgroundImage, t.backgroundImageUrl)), r;
1190
1190
  }
1191
- function Ii(e, t = {}) {
1191
+ function zi(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, Ai(e.backgroundImage, t.backgroundImageUrl)), n;
1199
1199
  }
1200
1200
  // src/utils/mergeTagLabelSegments.ts
1201
- function Li(e, t, n, r = !1) {
1201
+ function Bi(e, t, n, r = !1) {
1202
1202
  if (!e) return [];
1203
- let i = RegExp(`(${n.value.source}|${n.logic.source})`, "g"), a = [], o = 0, s;
1204
- for (; (s = i.exec(e)) !== null;) {
1205
- s.index > o && a.push({
1203
+ let i = [], a = 0;
1204
+ for (let o of qe(e, n)) {
1205
+ o.index > a && i.push({
1206
1206
  type: "text",
1207
- value: e.slice(o, s.index)
1207
+ value: e.slice(a, o.index)
1208
1208
  });
1209
- let i = s[0];
1210
- if (xe(i, n)) {
1211
- let e = r ? ze(i, t) : void 0;
1212
- a.push(e === void 0 ? {
1209
+ let s = o.value;
1210
+ if (ve(s, n)) {
1211
+ let e = r ? Y(s, t) : void 0;
1212
+ i.push(e === void 0 ? {
1213
1213
  type: "tag",
1214
- value: me(i, t)
1214
+ value: J(s, t)
1215
1215
  } : {
1216
1216
  type: "text",
1217
1217
  value: e
1218
1218
  });
1219
- } else qe(i, n) ? a.push({
1219
+ } else he(s, n) ? i.push({
1220
1220
  type: "tag",
1221
- value: Ne(i, n)
1222
- }) : a.push({
1221
+ value: me(s, n)
1222
+ }) : i.push({
1223
1223
  type: "text",
1224
- value: i
1224
+ value: s
1225
1225
  });
1226
- o = s.index + i.length;
1226
+ a = o.index + s.length;
1227
1227
  }
1228
- return o < e.length && a.push({
1228
+ return a < e.length && i.push({
1229
1229
  type: "text",
1230
- value: e.slice(o)
1231
- }), a;
1230
+ value: e.slice(a)
1231
+ }), i;
1232
1232
  }
1233
1233
  // src/components/MergeTagPreviewText.vue
1234
- var Ri = n({
1234
+ var Vi = 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(rn, un), n = f(Wt, ne.liquid), i = f(hn, null), a = N(() => Bi(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
+ }), Hi = ["href"], Ui = /* @__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 = kn(gn, "ButtonBlock");
1255
+ function r(e) {
1256
+ return e === "regular" ? "400" : e === "medium" ? "500" : e === "bold" ? "700" : "bold";
1257
+ }
1258
+ let a = N(() => {
1255
1259
  let e = {
1256
1260
  display: "inline-block",
1257
1261
  padding: `${t.block.buttonPadding.top}px ${t.block.buttonPadding.right}px ${t.block.buttonPadding.bottom}px ${t.block.buttonPadding.left}px`,
1258
1262
  backgroundColor: t.block.backgroundColor,
1259
1263
  color: t.block.textColor,
1260
1264
  fontSize: `${t.block.fontSize}px`,
1261
- fontWeight: "bold",
1265
+ fontWeight: r(t.block.fontWeight),
1262
1266
  textDecoration: "none",
1263
- borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : ve(t.block.borderRadius) ?? "0px",
1267
+ borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : de(t.block.borderRadius) ?? "0px",
1264
1268
  textAlign: "center"
1265
1269
  };
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;
1267
- }), a = N(() => ({ textAlign: t.block.align ?? "center" }));
1268
- return (t, n) => (i(), b("div", { style: P(a.value) }, [A("a", {
1270
+ return Object.assign(e, Li(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;
1271
+ }), o = N(() => ({ textAlign: t.block.align ?? "center" }));
1272
+ return (t, n) => (i(), b("div", { style: P(o.value) }, [A("a", {
1269
1273
  href: e.block.url || "#",
1270
- style: P(r.value),
1274
+ style: P(a.value),
1271
1275
  class: "tpl:cursor-default",
1272
1276
  onClick: n[0] ||= k(() => {}, ["prevent"])
1273
- }, [V(Ri, { text: e.block.text }, null, 8, ["text"])], 12, zi)], 4));
1277
+ }, [V(Vi, { text: e.block.text }, null, 8, ["text"])], 12, Hi)], 4));
1274
1278
  }
1275
- }), Vi = ["innerHTML"], Hi = [
1279
+ }), Wi = ["innerHTML"], Gi = [
1276
1280
  "src",
1277
1281
  "width",
1278
1282
  "height"
1279
- ], Ui = /* @__PURE__ */ n({
1283
+ ], Ki = /* @__PURE__ */ n({
1280
1284
  __name: "CustomBlockIcon",
1281
1285
  props: {
1282
1286
  icon: {},
1283
1287
  size: {}
1284
1288
  },
1285
1289
  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 ?? "") : "");
1290
+ 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 ? pr(t.icon ?? "") : "");
1287
1291
  return (t, s) => r.value ? (i(), b("span", {
1288
1292
  key: 0,
1289
1293
  class: "tpl:inline-flex tpl:items-center tpl:justify-center",
@@ -1292,33 +1296,33 @@ var Ri = n({
1292
1296
  height: `${n.value}px`
1293
1297
  }),
1294
1298
  innerHTML: o.value
1295
- }, null, 12, Vi)) : a.value ? (i(), b("img", {
1299
+ }, null, 12, Wi)) : a.value ? (i(), b("img", {
1296
1300
  key: 1,
1297
1301
  src: e.icon,
1298
1302
  width: n.value,
1299
1303
  height: n.value,
1300
1304
  class: "tpl:inline-block",
1301
1305
  alt: ""
1302
- }, null, 8, Hi)) : (i(), D(C(Et), {
1306
+ }, null, 8, Gi)) : (i(), D(C(kt), {
1303
1307
  key: 2,
1304
1308
  size: n.value,
1305
1309
  "stroke-width": 1.5
1306
1310
  }, null, 8, ["size"]));
1307
1311
  }
1308
- }), Wi = { class: "tpl:w-full" }, Gi = {
1312
+ }), qi = { class: "tpl:w-full" }, Ji = {
1309
1313
  key: 0,
1310
1314
  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 = {
1315
+ }, Yi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Xi = {
1312
1316
  key: 1,
1313
1317
  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 = {
1318
+ }, Zi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Qi = {
1315
1319
  key: 2,
1316
1320
  class: "tpl:relative"
1317
- }, Xi = ["innerHTML"], Zi = {
1321
+ }, $i = ["innerHTML"], ea = {
1318
1322
  key: 0,
1319
1323
  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
1324
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
1321
- }, Qi = /* @__PURE__ */ n({
1325
+ }, ta = /* @__PURE__ */ n({
1322
1326
  __name: "CustomBlock",
1323
1327
  props: {
1324
1328
  block: {},
@@ -1326,7 +1330,7 @@ var Ri = n({
1326
1330
  },
1327
1331
  emits: ["fetchData"],
1328
1332
  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({
1333
+ let n = e, r = t, { t: a } = Q(), s = f(En, null), c = z(""), l = N(() => mr(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 } = it({
1330
1334
  definition: p,
1331
1335
  block: h,
1332
1336
  onUpdate: (e, t) => {
@@ -1335,10 +1339,10 @@ var Ri = n({
1335
1339
  dataSourceFetched: t
1336
1340
  });
1337
1341
  }
1338
- }), S = f(en, sn), w = f(fn, null), T = N(() => {
1342
+ }), S = f(rn, un), w = f(hn, null), T = N(() => {
1339
1343
  if (!w?.value) return n.block;
1340
1344
  let e = {};
1341
- for (let [t, r] of Object.entries(n.block.fieldValues)) e[t] = typeof r == "string" ? Oe(r, S.value) : r;
1345
+ for (let [t, r] of Object.entries(n.block.fieldValues)) e[t] = typeof r == "string" ? je(r, S.value) : r;
1342
1346
  return {
1343
1347
  ...n.block,
1344
1348
  fieldValues: e
@@ -1355,17 +1359,17 @@ var Ri = n({
1355
1359
  }
1356
1360
  }
1357
1361
  }
1358
- let M = Kn(O, 150);
1362
+ let M = Yn(O, 150);
1359
1363
  return d(() => {
1360
1364
  O();
1361
1365
  }), o(() => n.block.fieldValues, () => {
1362
1366
  M();
1363
1367
  }, { deep: !0 }), o(() => w?.value, () => {
1364
1368
  M();
1365
- }), (e, t) => (i(), b("div", Wi, [m.value ? u.value ? (i(), b("div", qi, [V(C(jt), {
1369
+ }), (e, t) => (i(), b("div", qi, [m.value ? u.value ? (i(), b("div", Xi, [V(C(Pt), {
1366
1370
  size: 24,
1367
1371
  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, {
1372
+ }), A("span", Zi, j(C(a).customBlocks.renderError), 1)])) : (i(), b("div", Qi, [A("div", { innerHTML: l.value }, null, 8, $i), C(y) && C(v) ? (i(), b("div", ea, [C(g) ? (i(), D(hr, {
1369
1373
  key: 1,
1370
1374
  class: "tpl:w-48"
1371
1375
  })) : (i(), b("button", {
@@ -1373,16 +1377,16 @@ var Ri = n({
1373
1377
  type: "button",
1374
1378
  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
1379
  onClick: t[0] ||= k((...e) => C(_) && C(_)(...e), ["stop"])
1376
- }, [p.value?.icon ? (i(), D(Ui, {
1380
+ }, [p.value?.icon ? (i(), D(Ki, {
1377
1381
  key: 0,
1378
1382
  icon: p.value.icon,
1379
1383
  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), {
1384
+ }, null, 8, ["icon"])) : E("", !0), x(" " + j(p.value?.dataSource?.label || C(a).customBlocks.dataSource.fetchButton), 1)]))])) : E("", !0)])) : (i(), b("div", Ji, [V(C(At), {
1381
1385
  size: 24,
1382
1386
  class: "tpl:text-[var(--tpl-warning)]"
1383
- }), A("span", Ki, j(C(a).customBlocks.definitionNotFound), 1)]))]));
1387
+ }), A("span", Yi, j(C(a).customBlocks.definitionNotFound), 1)]))]));
1384
1388
  }
1385
- }), $i = { class: "tpl:w-full" }, ea = /* @__PURE__ */ n({
1389
+ }), na = { class: "tpl:w-full" }, ra = /* @__PURE__ */ n({
1386
1390
  __name: "DividerBlock",
1387
1391
  props: {
1388
1392
  block: {},
@@ -1394,28 +1398,28 @@ var Ri = n({
1394
1398
  width: t.block.width === "full" ? "100%" : typeof t.block.width == "number" ? `${t.block.width}px` : t.block.width,
1395
1399
  margin: t.block.width === "full" ? "0" : "0 auto"
1396
1400
  }));
1397
- return (e, t) => (i(), b("div", $i, [A("hr", {
1401
+ return (e, t) => (i(), b("div", na, [A("hr", {
1398
1402
  class: "tpl:m-0 tpl:border-none",
1399
1403
  style: P(n.value)
1400
1404
  }, null, 4)]));
1401
1405
  }
1402
- }), ta = { class: "tpl:w-full" }, na = ["srcdoc", "title"], ra = {
1406
+ }), ia = { class: "tpl:w-full" }, aa = ["srcdoc", "title"], oa = {
1403
1407
  key: 1,
1404
1408
  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 = {
1409
+ }, sa = {
1406
1410
  key: 0,
1407
1411
  class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
1408
- }, aa = {
1412
+ }, ca = {
1409
1413
  key: 1,
1410
1414
  class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
1411
- }, oa = /* @__PURE__ */ n({
1415
+ }, la = /* @__PURE__ */ n({
1412
1416
  __name: "HtmlBlock",
1413
1417
  props: {
1414
1418
  block: {},
1415
1419
  viewport: {}
1416
1420
  },
1417
1421
  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;
1422
+ let t = e, { t: n } = Q(), r = f(sn, !1), a = N(() => t.block.content.trim().length > 0), s = N(() => r && a.value), c = f(rn, un), l = f(hn, null), d = N(() => l?.value ? je(t.block.content, c.value) : t.block.content), p = z(null), m = z(60), h = null;
1419
1423
  function g() {
1420
1424
  let e = p.value?.contentDocument;
1421
1425
  e && (m.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
@@ -1429,7 +1433,7 @@ var Ri = n({
1429
1433
  e || (h?.disconnect(), h = null);
1430
1434
  }), u(() => {
1431
1435
  h?.disconnect(), h = null;
1432
- }), (e, t) => (i(), b("div", ta, [s.value ? (i(), b("iframe", {
1436
+ }), (e, t) => (i(), b("div", ia, [s.value ? (i(), b("iframe", {
1433
1437
  key: 0,
1434
1438
  ref_key: "iframeRef",
1435
1439
  ref: p,
@@ -1439,18 +1443,18 @@ var Ri = n({
1439
1443
  class: "tpl:block tpl:w-full tpl:border-0",
1440
1444
  style: P({ height: `${m.value}px` }),
1441
1445
  onLoad: _
1442
- }, null, 44, na)) : (i(), b("div", ra, [V(C(St), {
1446
+ }, null, 44, aa)) : (i(), b("div", oa, [V(C(Tt), {
1443
1447
  size: 24,
1444
1448
  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))]))]));
1449
+ }), a.value ? (i(), b("span", sa, j(C(n).html.preview), 1)) : (i(), b("span", ca, j(C(n).html.empty), 1))]))]));
1446
1450
  }
1447
- }), sa = ["data-drop-enabled"], ca = ["href"], la = ["src", "alt"], ua = ["src", "alt"], da = {
1451
+ }), ua = ["data-drop-enabled"], da = ["href"], fa = ["src", "alt"], pa = ["src", "alt"], ma = {
1448
1452
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
1449
1453
  style: { opacity: "0.7" }
1450
- }, fa = ["href"], pa = ["src", "alt"], ma = ["src", "alt"], ha = {
1454
+ }, ha = ["href"], ga = ["src", "alt"], _a = ["src", "alt"], va = {
1451
1455
  key: 4,
1452
1456
  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({
1457
+ }, ya = ["aria-label"], ba = { key: 1 }, xa = /* @__PURE__ */ n({
1454
1458
  __name: "ImageBlock",
1455
1459
  props: {
1456
1460
  block: {},
@@ -1458,20 +1462,20 @@ var Ri = n({
1458
1462
  },
1459
1463
  emits: ["update"],
1460
1464
  setup(e, { emit: t }) {
1461
- let n = e, r = t, { t: a } = Q(), { syntax: o } = er(), s = N(() => He(n.block.src, o));
1465
+ let n = e, r = t, { t: a } = Q(), { syntax: o } = rr(), s = N(() => pe(n.block.src, o));
1462
1466
  function c(e) {
1463
1467
  let t = {
1464
1468
  src: e.url,
1465
- ...lt(ot(e.width, e.height))
1469
+ ...ft(lt(e.width, e.height))
1466
1470
  };
1467
1471
  e.alt && (t.alt = e.alt), r("update", t);
1468
1472
  }
1469
- let l = z(), { canBrowse: u, dropEnabled: d, isUploading: f, showOverlay: p, openMediaBrowser: m } = pt({
1473
+ let l = z(), { canBrowse: u, dropEnabled: d, isUploading: f, showOverlay: p, openMediaBrowser: m } = gt({
1470
1474
  target: l,
1471
1475
  blocked: s,
1472
1476
  apply: c
1473
1477
  }), 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);
1478
+ let e = n.block.border, t = ["left", "right"].map((t) => Te(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
1475
1479
  return t > 0 ? `calc(100% - ${t}px)` : "100%";
1476
1480
  }), _ = N(() => {
1477
1481
  let e = n.block.align;
@@ -1479,13 +1483,13 @@ var Ri = n({
1479
1483
  maxWidth: "100%",
1480
1484
  width: n.block.width === "full" ? g.value : `${n.block.width}px`,
1481
1485
  height: n.block.height ? `${n.block.height}px` : void 0,
1482
- borderRadius: ve(n.block.borderRadius) ?? void 0,
1483
- ...Pi(n.block.border),
1486
+ borderRadius: de(n.block.borderRadius) ?? void 0,
1487
+ ...Li(n.block.border),
1484
1488
  display: "block",
1485
1489
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
1486
1490
  marginRight: e === "center" ? "auto" : void 0
1487
1491
  };
1488
- }), v = at(() => s.value ? void 0 : n.block.src), y = at(() => s.value ? n.block.placeholderUrl : void 0);
1492
+ }), v = ct(() => s.value ? void 0 : n.block.src), y = ct(() => s.value ? n.block.placeholderUrl : void 0);
1489
1493
  return (t, n) => (i(), b("div", {
1490
1494
  ref_key: "dropZoneRef",
1491
1495
  ref: l,
@@ -1493,7 +1497,7 @@ var Ri = n({
1493
1497
  "data-drop-enabled": C(d),
1494
1498
  class: "tpl:relative tpl:w-full",
1495
1499
  style: P(h.value)
1496
- }, [C(p) ? (i(), D(ct, {
1500
+ }, [C(p) ? (i(), D(dt, {
1497
1501
  key: 0,
1498
1502
  uploading: C(f),
1499
1503
  size: "canvas"
@@ -1509,22 +1513,22 @@ var Ri = n({
1509
1513
  src: C(y),
1510
1514
  alt: e.block.alt || C(a).image.altTextPlaceholder,
1511
1515
  style: P(_.value)
1512
- }, null, 12, la)], 8, ca)) : (i(), b("img", {
1516
+ }, null, 12, fa)], 8, da)) : (i(), b("img", {
1513
1517
  key: 1,
1514
1518
  class: "tpl:border-0",
1515
1519
  src: C(y),
1516
1520
  alt: e.block.alt,
1517
1521
  style: P(_.value)
1518
- }, null, 12, ua))], 64)) : e.block.src && s.value ? (i(), b("div", {
1522
+ }, null, 12, pa))], 64)) : e.block.src && s.value ? (i(), b("div", {
1519
1523
  key: 2,
1520
1524
  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
1525
  style: P([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, _.value])
1522
- }, [V(C(At), {
1526
+ }, [V(C(Nt), {
1523
1527
  size: 32,
1524
1528
  "stroke-width": 1.5,
1525
1529
  class: "tpl:text-[var(--tpl-primary)]",
1526
1530
  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", {
1531
+ }), A("span", ma, [V(Vi, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (i(), b(B, { key: 3 }, [e.block.linkUrl ? (i(), b("a", {
1528
1532
  key: 0,
1529
1533
  href: e.block.linkUrl,
1530
1534
  target: "_blank",
@@ -1536,33 +1540,33 @@ var Ri = n({
1536
1540
  src: C(v),
1537
1541
  alt: e.block.alt || C(a).image.altTextPlaceholder,
1538
1542
  style: P(_.value)
1539
- }, null, 12, pa)], 8, fa)) : (i(), b("img", {
1543
+ }, null, 12, ga)], 8, ha)) : (i(), b("img", {
1540
1544
  key: 1,
1541
1545
  class: "tpl:border-0",
1542
1546
  src: C(v),
1543
1547
  alt: e.block.alt,
1544
1548
  style: P(_.value)
1545
- }, null, 12, ma))], 64)) : (i(), b("div", ha, [C(u) ? (i(), b("button", {
1549
+ }, null, 12, _a))], 64)) : (i(), b("div", va, [C(u) ? (i(), b("button", {
1546
1550
  key: 0,
1547
1551
  "aria-label": C(a).image.browseMedia,
1548
1552
  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
1553
  onClick: n[2] ||= k((...e) => C(m) && C(m)(...e), ["stop"])
1550
- }, [V(C(At), {
1554
+ }, [V(C(Nt), {
1551
1555
  size: 14,
1552
1556
  "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));
1557
+ }), x(" " + j(C(a).image.browseMedia), 1)], 8, ya)) : (i(), b("span", ba, j(C(a).image.clickToAdd), 1))]))], 12, ua));
1554
1558
  }
1555
- }), ya = { class: "tpl:w-full" }, ba = ["href"], xa = {
1559
+ }), Sa = { class: "tpl:w-full" }, Ca = ["href"], wa = {
1556
1560
  key: 1,
1557
1561
  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({
1562
+ }, Ta = /* @__PURE__ */ n({
1559
1563
  __name: "MenuBlock",
1560
1564
  props: {
1561
1565
  block: {},
1562
1566
  viewport: {}
1563
1567
  },
1564
1568
  setup(e) {
1565
- let t = e, { t: n } = Q(), r = En(pn, "MenuBlock"), a = N(() => ({
1569
+ let t = e, { t: n } = Q(), r = kn(gn, "MenuBlock"), a = N(() => ({
1566
1570
  display: "flex",
1567
1571
  flexWrap: "wrap",
1568
1572
  gap: `0 ${t.block.spacing}px`,
@@ -1574,7 +1578,7 @@ var Ri = n({
1574
1578
  function s(e) {
1575
1579
  return e || t.block.linkColor || t.block.color;
1576
1580
  }
1577
- return (t, r) => (i(), b("div", ya, [o.value ? (i(), b("div", {
1581
+ return (t, r) => (i(), b("div", Sa, [o.value ? (i(), b("div", {
1578
1582
  key: 0,
1579
1583
  style: P(a.value)
1580
1584
  }, [(i(!0), b(B, null, l(e.block.items, (t, n) => (i(), b(B, { key: t.id }, [A("a", {
@@ -1586,18 +1590,18 @@ var Ri = n({
1586
1590
  textDecoration: t.underline ? "underline" : "none"
1587
1591
  }),
1588
1592
  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", {
1593
+ }, [V(Vi, { text: t.text || "..." }, null, 8, ["text"])], 12, Ca), n < e.block.items.length - 1 ? (i(), b("span", {
1590
1594
  key: 0,
1591
1595
  style: P({
1592
1596
  color: e.block.separatorColor,
1593
1597
  padding: `0 ${e.block.spacing}px`
1594
1598
  })
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)]))]));
1599
+ }, j(e.block.separator), 5)) : E("", !0)], 64))), 128))], 4)) : (i(), b("div", wa, [V(C(Mt), { size: 16 }), A("span", null, j(C(n).menu.addLinks), 1)]))]));
1596
1600
  }
1597
1601
  });
1598
1602
  // 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({
1603
+ function Ea(e) {
1604
+ let t = f(rn, un), n = f(hn, null), { syntax: r } = rr(), i = N(() => n?.value ? Ue(e(), t.value) : H(e(), t.value)), a = N(() => Se(mr(Z(i.value, r)))), o = z(!1), s = z(null), { top: c, left: l } = er(s), { toLocal: u } = lr(), d = N(() => u({
1601
1605
  top: c.value - 8,
1602
1606
  left: l.value
1603
1607
  }));
@@ -1617,14 +1621,14 @@ function Ca(e) {
1617
1621
  };
1618
1622
  }
1619
1623
  // src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
1620
- var wa = ["innerHTML"], Ta = /* @__PURE__ */ n({
1624
+ var Da = ["innerHTML"], Oa = /* @__PURE__ */ n({
1621
1625
  __name: "ParagraphBlock",
1622
1626
  props: {
1623
1627
  block: {},
1624
1628
  viewport: {}
1625
1629
  },
1626
1630
  setup(e) {
1627
- let t = e, n = g(() => import("./ParagraphEditor-B3EQ0Ai6.js").then((e) => e.t)), { isEditing: r, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = Ca(() => t.block.content);
1631
+ let t = e, n = g(() => import("./ParagraphEditor-Cal9hY3U.js").then((e) => e.t)), { isEditing: r, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = Ea(() => t.block.content);
1628
1632
  return (t, u) => (i(), b("div", {
1629
1633
  ref_key: "blockRef",
1630
1634
  ref: a,
@@ -1643,11 +1647,11 @@ var wa = ["innerHTML"], Ta = /* @__PURE__ */ n({
1643
1647
  key: 1,
1644
1648
  class: "tpl-text-content tpl:outline-none",
1645
1649
  innerHTML: C(s)
1646
- }, null, 8, wa))], 544));
1650
+ }, null, 8, Da))], 544));
1647
1651
  }
1648
1652
  });
1649
1653
  // src/utils/updateBlockList.ts
1650
- function Ea(e, t, n, r = 0, i) {
1654
+ function ka(e, t, n, r = 0, i) {
1651
1655
  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
1656
  if (o.some((e) => !s.includes(e.id))) return;
1653
1657
  let c = t.filter((e) => !o.some((t) => t.id === e.id)), l, u = -1;
@@ -1660,67 +1664,79 @@ function Ea(e, t, n, r = 0, i) {
1660
1664
  l && (e.findBlockLocation(l.id) ? e.moveBlock(l.id, u, n, r) : e.addBlock(JSON.parse(JSON.stringify(l)), n, r, u));
1661
1665
  }
1662
1666
  // src/utils/mergeTagTokens.ts
1663
- function Da(e, t, n) {
1667
+ function Aa(e, t, n) {
1664
1668
  let r = [], i = "\0MT";
1665
1669
  for (; e.includes(i);) i += "_";
1666
- let a = n === "html" ? Fe(e, (e) => {
1670
+ let a = n === "html" ? ze(e, (e) => {
1667
1671
  let t = r.push(e) - 1;
1668
1672
  return `${i}${t}\u0000`;
1669
1673
  }) : e, o = Array.from(a.matchAll(RegExp(`${i}\\d+\u0000`, "g")), (e) => ({
1670
1674
  start: e.index,
1671
1675
  end: e.index + e[0].length
1672
- })), s = [];
1673
- for (let e of [t.logic, t.value]) {
1674
- let t = new RegExp(e.source, e.flags.replace(/[gy]/g, "") + "g");
1675
- for (let e of a.matchAll(t)) {
1676
- let t = e.index, r = t + e[0].length;
1677
- o.some((e) => t < e.end && r > e.start) || s.some((e) => t < e.end && r > e.start) || s.push({
1678
- start: t,
1679
- end: r,
1680
- value: n === "html" ? ge(e[0]) : e[0]
1681
- });
1676
+ })), s = [], c = Le(a, t, "logic"), l = [], u = 0;
1677
+ for (let e of ["logic", "value"]) {
1678
+ let r = 0;
1679
+ for (let i of e === "logic" ? c : Le(a, t, "value")) {
1680
+ let t = i.index, a = t + i.value.length;
1681
+ for (; o[r]?.end <= t;) r++;
1682
+ let c = o[r];
1683
+ if (!(c && t < c.end && a > c.start)) {
1684
+ if (e === "value") {
1685
+ for (; l[u]?.end <= t;) u++;
1686
+ let e = l[u];
1687
+ if (e && t < e.end && a > e.start) continue;
1688
+ }
1689
+ e === "logic" && l.push({
1690
+ start: t,
1691
+ end: a
1692
+ }), s.push({
1693
+ start: t,
1694
+ end: a,
1695
+ value: n === "html" ? Ge(i.value) : i.value
1696
+ });
1697
+ }
1682
1698
  }
1683
1699
  }
1684
1700
  return [...r, ...s.map((e) => e.value)].sort();
1685
1701
  }
1686
- function Oa(e, t, n, r) {
1687
- return JSON.stringify(Da(e, n, r)) !== JSON.stringify(Da(t, n, r));
1702
+ function ja(e, t, n, r) {
1703
+ return JSON.stringify(Aa(e, n, r)) !== JSON.stringify(Aa(t, n, r));
1688
1704
  }
1689
1705
  // src/components/localization/LocaleStatusChip.vue?vue&type=script&setup=true&lang.ts
1690
- var ka = [
1706
+ var Ma = [
1691
1707
  "data-state",
1692
1708
  "aria-label",
1693
1709
  "title",
1694
1710
  "aria-expanded",
1695
1711
  "aria-controls",
1696
1712
  "onKeydown"
1697
- ], Aa = [
1713
+ ], Na = [
1698
1714
  "aria-label",
1699
1715
  "aria-labelledby",
1700
1716
  "aria-describedby",
1701
1717
  "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 = {
1718
+ ], Pa = ["id"], Fa = ["id"], Ia = { class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, La = ["disabled"], Ra = {
1703
1719
  key: 0,
1704
1720
  class: "tpl:m-0 tpl:mb-2 tpl:text-xs tpl:font-medium"
1705
- }, Ia = {
1721
+ }, za = {
1706
1722
  key: 1,
1707
1723
  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 = {
1724
+ }, Ba = { class: "tpl:m-0" }, Va = { class: "tpl:mt-2 tpl:mb-0 tpl:break-words tpl:text-[var(--tpl-chrome-text-muted)]" }, Ha = {
1709
1725
  key: 3,
1710
1726
  class: "tpl:m-0"
1711
- }, Ba = {
1727
+ }, Ua = {
1712
1728
  key: 4,
1713
1729
  class: "tpl:m-0"
1714
- }, Va = {
1730
+ }, Wa = {
1715
1731
  key: 5,
1716
1732
  class: "tpl:m-0"
1717
- }, Ha = {
1733
+ }, Ga = {
1718
1734
  key: 6,
1719
1735
  class: "tpl:m-0 tpl:list-none tpl:p-0"
1720
- }, Ua = ["onClick"], Wa = {
1736
+ }, Ka = ["onClick"], qa = {
1721
1737
  key: 7,
1722
1738
  class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:gap-1"
1723
- }, Ga = ["data-testid", "disabled"], Ka = /*#__PURE__*/ yt(/* @__PURE__ */ n({
1739
+ }, Ja = ["data-testid", "disabled"], Ya = /*#__PURE__*/ St(/* @__PURE__ */ n({
1724
1740
  __name: "LocaleStatusChip",
1725
1741
  props: {
1726
1742
  blockId: {},
@@ -1740,32 +1756,32 @@ var ka = [
1740
1756
  },
1741
1757
  emits: ["target"],
1742
1758
  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({
1759
+ let r = e, a = n, s = f(Ln, null), c = f(On, null), u = f(Kt, null), d = f(Nn, "en") ?? "en", { t: m, format: h } = Q(), g = nr(), _ = sr(), { toLocal: v } = lr(), y = z(null), x = z(null), M = z(!1), F = z(!1), I = z(null), L = z(null), R = null, V = z({
1744
1760
  top: 0,
1745
1761
  left: 0
1746
1762
  }), H = z({
1747
1763
  maxHeight: 0,
1748
1764
  maxWidth: 0
1749
- }), U = `tpl-locale-popover-${fe()}`, W = N(() => Vn(s?.activeLocale?.value ?? "")), G = N(() => Vn(s?.content.value.settings.locale ?? "en"));
1765
+ }), U = `tpl-locale-popover-${re()}`, W = N(() => Wn(s?.activeLocale?.value ?? "")), G = N(() => Wn(s?.content.value.settings.locale ?? "en"));
1750
1766
  function ee(e, t) {
1751
1767
  switch (e) {
1752
1768
  case "tags-differ": return m.localization.tagsDiffer;
1753
1769
  case "hidden": return h(m.localization.hidden, { language: W.value });
1754
1770
  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);
1771
+ case "default-stale": return Un(m.localization.staleLanguages, t, d);
1772
+ case "missing": return t === 1 ? m.localization.notTranslated : Un(m.localization.notTranslatedCount, t, d);
1773
+ default: return t === 1 ? m.localization.outOfDate : Un(m.localization.staleCount, t, d);
1758
1774
  }
1759
1775
  }
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);
1761
- function Y(e = !1) {
1776
+ let K = N(() => ee(r.state, r.count)), q = N(() => r.popoverState ?? r.state), J = N(() => r.popoverCount ?? r.count), te = N(() => ee(q.value, J.value)), ne = N(() => r.state === "hidden" ? Dt : r.state === "changed" ? wt : r.state === "default-stale" ? Lt : r.state === "stale" ? Et : Pt), ie = N(() => q.value === "default-stale" || (q.value === "missing" || q.value === "stale") && J.value > 1), Y = N(() => r.editable && r.eligibleGaps && c?.isAvailable.value);
1777
+ function X(e = !1) {
1762
1778
  M.value = !1, F.value = !1, R = null, e && y.value?.focus({ preventScroll: !0 });
1763
1779
  }
1764
- async function X() {
1765
- if (M.value) return Y();
1766
- _.value && (M.value = !0, await ae());
1767
- }
1768
1780
  async function ae() {
1781
+ if (M.value) return X();
1782
+ _.value && (M.value = !0, await oe());
1783
+ }
1784
+ async function oe() {
1769
1785
  let e = _.value;
1770
1786
  if (!e || !M.value) return;
1771
1787
  let t = e.ownerDocument.defaultView, n = t?.visualViewport, r = n?.offsetTop ?? 0, i = n?.offsetLeft ?? 0, a = r + (n?.height ?? t?.innerHeight ?? 0), o = i + (n?.width ?? t?.innerWidth ?? 0), s = e.parentElement?.getBoundingClientRect(), c = Math.max(r, s?.height ? s.top : r) + 8, l = Math.max(i, s?.width ? s.left : i) + 8, u = Math.max(c, Math.min(a, s?.height ? s.bottom : a) - 8), d = Math.max(l, Math.min(o, s?.width ? s.right : o) - 8);
@@ -1785,54 +1801,54 @@ var ka = [
1785
1801
  }), await O(), M.value && (F.value ? L.value : x.value)?.focus({ preventScroll: !0 });
1786
1802
  }
1787
1803
  o(F, async () => {
1788
- M.value && (await ae(), M.value && !F.value && I.value?.focus({ preventScroll: !0 }));
1804
+ M.value && (await oe(), M.value && !F.value && I.value?.focus({ preventScroll: !0 }));
1789
1805
  });
1790
- function oe(e) {
1806
+ function se(e) {
1791
1807
  let t = e.composedPath();
1792
- !t.includes(y.value) && !t.includes(x.value) && Y();
1808
+ !t.includes(y.value) && !t.includes(x.value) && X();
1793
1809
  }
1794
- function se(e) {
1810
+ function ce(e) {
1795
1811
  if (e.composedPath().includes(x.value)) return;
1796
1812
  let t = y.value?.getBoundingClientRect();
1797
- t && R && t.top === R.top && t.right === R.right || Y();
1813
+ t && R && t.top === R.top && t.right === R.right || X();
1798
1814
  }
1799
- function ce() {
1800
- g.removeEventListener("click", oe, !0), g.removeEventListener("scroll", se, !0);
1815
+ function Z() {
1816
+ g.removeEventListener("click", se, !0), g.removeEventListener("scroll", ce, !0);
1801
1817
  }
1802
1818
  o(M, (e) => {
1803
- ce(), e ? (g.addEventListener("click", oe, !0), g.addEventListener("scroll", se, !0)) : a("target", null);
1804
- }, { flush: "sync" }), o(K, () => {
1805
- F.value = !1, M.value && ae();
1819
+ Z(), e ? (g.addEventListener("click", se, !0), g.addEventListener("scroll", ce, !0)) : a("target", null);
1820
+ }, { flush: "sync" }), o(q, () => {
1821
+ F.value = !1, M.value && oe();
1806
1822
  }), o([
1807
1823
  () => r.blockId,
1808
1824
  () => r.state,
1809
1825
  () => s?.activeLocale?.value,
1810
1826
  () => s?.state.template?.id,
1811
1827
  () => s?.loadVersion?.value
1812
- ], () => Y()), p(ce);
1813
- let Z = (e) => {
1814
- (M.value || _.value) && (a("target", e ?? null), M.value || X());
1828
+ ], () => X()), p(Z);
1829
+ let le = (e) => {
1830
+ (M.value || _.value) && (a("target", e ?? null), M.value || ae());
1815
1831
  };
1816
1832
  o(() => r.blockId, (e, t) => {
1817
- t && u?.get(t) === Z && u.delete(t), u?.set(e, Z);
1833
+ t && u?.get(t) === le && u.delete(t), u?.set(e, le);
1818
1834
  }, { immediate: !0 }), p(() => {
1819
- u?.get(r.blockId) === Z && u.delete(r.blockId);
1835
+ u?.get(r.blockId) === le && u.delete(r.blockId);
1820
1836
  });
1821
- function le() {
1822
- s?.keepTranslations?.(r.blockId, r.stale), Y(!0);
1837
+ function ue() {
1838
+ s?.keepTranslations?.(r.blockId, r.stale), X(!0);
1823
1839
  }
1824
- function ue(e) {
1825
- s?.resetLocaleFields?.(r.blockId, e), Y(!0);
1840
+ function de(e) {
1841
+ s?.resetLocaleFields?.(r.blockId, e), X(!0);
1826
1842
  }
1827
- function de() {
1828
- s?.setBlockHidden?.(r.blockId, !1), Y(!0);
1843
+ function fe() {
1844
+ s?.setBlockHidden?.(r.blockId, !1), X(!0);
1829
1845
  }
1830
1846
  function pe(e) {
1831
- s?.setActiveLocale?.(e), Y();
1847
+ s?.setActiveLocale?.(e), X();
1832
1848
  }
1833
1849
  function me() {
1834
- J.value && !c?.running.value && (K.value === "tags-differ" && r.replacesCurrent ? F.value = !0 : c?.translate({
1835
- only: K.value === "tags-differ" ? "all" : "gaps",
1850
+ Y.value && !c?.running.value && (q.value === "tags-differ" && r.replacesCurrent ? F.value = !0 : c?.translate({
1851
+ only: q.value === "tags-differ" ? "all" : "gaps",
1836
1852
  blockId: r.blockId
1837
1853
  }));
1838
1854
  }
@@ -1840,10 +1856,10 @@ var ka = [
1840
1856
  F.value = !1;
1841
1857
  }
1842
1858
  function ge() {
1843
- F.value ? he() : Y(!0);
1859
+ F.value ? he() : X(!0);
1844
1860
  }
1845
1861
  function _e() {
1846
- J.value && !c?.running.value && r.translationCount && (F.value = !1, c?.translate({
1862
+ Y.value && !c?.running.value && r.translationCount && (F.value = !1, c?.translate({
1847
1863
  only: "all",
1848
1864
  blockId: r.blockId
1849
1865
  }));
@@ -1854,19 +1870,19 @@ var ka = [
1854
1870
  type: "button",
1855
1871
  "data-testid": "locale-chip",
1856
1872
  "data-state": e.state,
1857
- "aria-label": te.value,
1858
- title: te.value,
1873
+ "aria-label": K.value,
1874
+ title: K.value,
1859
1875
  "aria-expanded": M.value,
1860
1876
  "aria-controls": M.value ? U : void 0,
1861
1877
  "aria-haspopup": "dialog",
1862
1878
  class: "tpl-locale-chip tpl:flex tpl:size-5 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:p-0 tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-chrome-text-muted)] tpl:ring-1 tpl:ring-[var(--tpl-border)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:shadow-[var(--tpl-shadow-sm)] tpl:focus-visible:outline-none tpl:focus-visible:shadow-[var(--tpl-ring)] tpl:hover:focus-visible:shadow-[var(--tpl-ring),var(--tpl-shadow-sm)]",
1863
- onClick: k(X, ["stop"]),
1864
- onKeydown: [S(k(X, ["stop", "prevent"]), ["enter"]), S(k(ge, ["stop", "prevent"]), ["esc"])]
1865
- }, [(i(), D(t(re.value), {
1879
+ onClick: k(ae, ["stop"]),
1880
+ onKeydown: [S(k(ae, ["stop", "prevent"]), ["enter"]), S(k(ge, ["stop", "prevent"]), ["esc"])]
1881
+ }, [(i(), D(t(ne.value), {
1866
1882
  size: 12,
1867
1883
  "stroke-width": 2,
1868
1884
  "aria-hidden": "true"
1869
- }))], 40, ka), C(_) && M.value ? (i(), D(T, {
1885
+ }))], 40, Ma), C(_) && M.value ? (i(), D(T, {
1870
1886
  key: 0,
1871
1887
  to: C(_)
1872
1888
  }, [A("div", {
@@ -1874,7 +1890,7 @@ var ka = [
1874
1890
  ref_key: "popover",
1875
1891
  ref: x,
1876
1892
  role: "dialog",
1877
- "aria-label": F.value ? void 0 : q.value,
1893
+ "aria-label": F.value ? void 0 : te.value,
1878
1894
  "aria-labelledby": F.value ? `${U}-question` : void 0,
1879
1895
  "aria-describedby": F.value ? `${U}-warning` : void 0,
1880
1896
  tabindex: "-1",
@@ -1892,80 +1908,80 @@ var ka = [
1892
1908
  A("h3", {
1893
1909
  id: `${U}-question`,
1894
1910
  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),
1911
+ }, j(C(Un)(C(m).localization.translationConfirmation, e.translationCount ?? 0, C(d))), 9, Pa),
1896
1912
  A("p", {
1897
1913
  id: `${U}-warning`,
1898
1914
  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", {
1915
+ }, j(C(h)(C(m).localization.translationDescription, { language: W.value })), 9, Fa),
1916
+ A("div", Ia, [A("button", {
1901
1917
  ref_key: "confirmationCancel",
1902
1918
  ref: L,
1903
1919
  type: "button",
1904
1920
  "data-testid": "translation-confirm-cancel",
1905
- class: w(C(Un)),
1921
+ class: w(C(Kn)),
1906
1922
  onClick: he
1907
1923
  }, j(C(m).localization.cancel), 3), A("button", {
1908
1924
  type: "button",
1909
1925
  "data-testid": "translation-confirm",
1910
- class: w(C(Wn)),
1911
- disabled: !J.value || !!C(c)?.running.value || !e.translationCount,
1926
+ class: w(C(qn)),
1927
+ disabled: !Y.value || !!C(c)?.running.value || !e.translationCount,
1912
1928
  onClick: _e
1913
- }, j(C(Bn)(C(m).localization.translateAllFields, e.translationCount ?? 0, C(d))), 11, Pa)])
1929
+ }, j(C(Un)(C(m).localization.translateAllFields, e.translationCount ?? 0, C(d))), 11, La)])
1914
1930
  ], 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", {
1931
+ ie.value ? (i(), b("p", Ra, j(te.value), 1)) : E("", !0),
1932
+ q.value === "missing" ? (i(), b("p", za, j(C(h)(C(m).localization.missingExplanation, { default: G.value })), 1)) : q.value === "stale" ? (i(), b(B, { key: 2 }, [A("p", Ba, j(C(h)(C(m).localization.staleExplanation, { default: G.value })), 1), A("p", Va, j(C(h)(C(m).localization.currentExcerpt, { excerpt: e.excerpt })), 1)], 64)) : q.value === "tags-differ" ? (i(), b("p", Ha, j(C(h)(C(m).localization.tagsDifferExplanation, { default: G.value })), 1)) : q.value === "changed" ? (i(), b("p", Ua, j(C(Un)(C(m).localization.changedProperties, J.value, C(d), { default: G.value })), 1)) : q.value === "hidden" ? (i(), b("p", Wa, j(C(h)(C(m).localization.hiddenExplanation, { language: W.value })), 1)) : (i(), b("ul", Ga, [(i(!0), b(B, null, l(e.staleLocales, (e) => (i(), b("li", {
1917
1933
  key: e,
1918
1934
  class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3"
1919
- }, [A("span", null, j(C(Vn)(e)), 1), A("button", {
1935
+ }, [A("span", null, j(C(Wn)(e)), 1), A("button", {
1920
1936
  type: "button",
1921
- class: w(C(Hn)),
1937
+ class: w(C(Gn)),
1922
1938
  onClick: (t) => pe(e)
1923
- }, j(C(m).localization.open), 11, Ua)]))), 128))])),
1924
- e.editable && K.value !== "default-stale" ? (i(), b("div", Wa, [
1925
- J.value && (K.value === "missing" || K.value === "stale" || K.value === "tags-differ") ? (i(), b("button", {
1939
+ }, j(C(m).localization.open), 11, Ka)]))), 128))])),
1940
+ e.editable && q.value !== "default-stale" ? (i(), b("div", qa, [
1941
+ Y.value && (q.value === "missing" || q.value === "stale" || q.value === "tags-differ") ? (i(), b("button", {
1926
1942
  key: 0,
1927
1943
  type: "button",
1928
1944
  ref_key: "retranslate",
1929
1945
  ref: I,
1930
- "data-testid": K.value === "missing" ? "locale-translate" : "locale-retranslate",
1931
- class: w(C(Un)),
1946
+ "data-testid": q.value === "missing" ? "locale-translate" : "locale-retranslate",
1947
+ class: w(C(Kn)),
1932
1948
  disabled: !!C(c)?.running.value,
1933
1949
  onClick: me
1934
- }, j(K.value === "missing" ? C(m).localization.translate : C(m).localization.retranslate), 11, Ga)) : E("", !0),
1935
- K.value === "stale" || K.value === "tags-differ" ? (i(), b(B, { key: 1 }, [K.value === "stale" ? (i(), b("button", {
1950
+ }, j(q.value === "missing" ? C(m).localization.translate : C(m).localization.retranslate), 11, Ja)) : E("", !0),
1951
+ q.value === "stale" || q.value === "tags-differ" ? (i(), b(B, { key: 1 }, [q.value === "stale" ? (i(), b("button", {
1936
1952
  key: 0,
1937
1953
  type: "button",
1938
1954
  "data-testid": "locale-keep",
1939
- class: w(C(J.value ? Hn : Un)),
1940
- onClick: le
1955
+ class: w(C(Y.value ? Gn : Kn)),
1956
+ onClick: ue
1941
1957
  }, j(C(m).localization.keep), 3)) : E("", !0), A("button", {
1942
1958
  type: "button",
1943
1959
  "data-testid": "locale-use-default",
1944
- class: w(C(K.value === "tags-differ" && !J.value ? Un : Hn)),
1945
- onClick: r[0] ||= (t) => ue(K.value === "tags-differ" ? e.tagsDiffer ?? [] : e.stale)
1960
+ class: w(C(q.value === "tags-differ" && !Y.value ? Kn : Gn)),
1961
+ onClick: r[0] ||= (t) => de(q.value === "tags-differ" ? e.tagsDiffer ?? [] : e.stale)
1946
1962
  }, j(C(h)(C(m).localization.useDefaultLanguage, { default: G.value })), 3)], 64)) : E("", !0),
1947
- K.value === "changed" ? (i(), b("button", {
1963
+ q.value === "changed" ? (i(), b("button", {
1948
1964
  key: 2,
1949
1965
  type: "button",
1950
1966
  "data-testid": "locale-reset",
1951
- class: w(C(Un)),
1952
- onClick: r[1] ||= (t) => ue(e.setPaths)
1967
+ class: w(C(Kn)),
1968
+ onClick: r[1] ||= (t) => de(e.setPaths)
1953
1969
  }, j(C(m).localization.resetChanges), 3)) : E("", !0),
1954
- K.value === "hidden" ? (i(), b("button", {
1970
+ q.value === "hidden" ? (i(), b("button", {
1955
1971
  key: 3,
1956
1972
  type: "button",
1957
1973
  "data-testid": "locale-show",
1958
- class: w(C(Un)),
1959
- onClick: de
1974
+ class: w(C(Kn)),
1975
+ onClick: fe
1960
1976
  }, j(C(m).localization.show), 3)) : E("", !0)
1961
1977
  ])) : E("", !0)
1962
- ], 64))], 44, Aa)], 8, ["to"])) : E("", !0)], 64));
1978
+ ], 64))], 44, Na)], 8, ["to"])) : E("", !0)], 64));
1963
1979
  }
1964
- }), [["__scopeId", "data-v-3343ae7d"]]), qa = /* @__PURE__ */ n({
1980
+ }), [["__scopeId", "data-v-3343ae7d"]]), Xa = /* @__PURE__ */ n({
1965
1981
  __name: "LocaleMarkers",
1966
1982
  props: { block: {} },
1967
1983
  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(() => ({
1984
+ let t = e, n = f(Ln, null), r = f(nn, void 0), a = f(xn, []), s = f(Wt, ne.liquid), c = f(Sn, N(() => /* @__PURE__ */ new Set())), l = N(() => n?.activeLocale?.value), u = N(() => l.value ? t.block.l10n?.[l.value] : void 0), d = N(() => ({
1969
1985
  blocks: [t.block.type === "section" || t.block.type === "wrapper" ? {
1970
1986
  ...t.block,
1971
1987
  children: []
@@ -1974,14 +1990,14 @@ var ka = [
1974
1990
  locale: n.content.value.settings.locale,
1975
1991
  locales: n.content.value.settings.locales
1976
1992
  }
1977
- })), p = N(() => n && l.value && !c.value.has(l.value) ? Z(d.value, l.value, a) : {
1993
+ })), p = N(() => n && l.value && !c.value.has(l.value) ? te(d.value, l.value, a) : {
1978
1994
  missing: [],
1979
1995
  stale: [],
1980
1996
  translated: []
1981
1997
  }), m = N(() => p.value.stale.map((e) => e.slice(t.block.id.length + 1))), h = N(() => p.value.translated.flatMap((e) => {
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, {
1998
+ let n = e.slice(t.block.id.length + 1), r = ge(t.block, n), i = u.value?.text?.[n]?.value, a = t.block.type === "html" || le[t.block.type]?.includes(n) ? "html" : "text";
1999
+ return typeof r == "string" && i !== void 0 && ja(r, i, s, a) ? [n] : [];
2000
+ })), g = z(null), _ = N(() => n && l.value && !c.value.has(l.value) ? G(d.value, l.value, {
1985
2001
  syntax: s,
1986
2002
  definitions: a,
1987
2003
  doNotTranslate: r?.doNotTranslate,
@@ -1991,9 +2007,9 @@ var ka = [
1991
2007
  let n = e.slice(t.block.id.length + 1);
1992
2008
  return p.value.translated.includes(e) && !h.value.includes(n);
1993
2009
  })), y = N(() => Object.keys(u.value?.set ?? {}).filter((e) => {
1994
- let n = e.split("."), r = n.pop(), i = n.length ? q(t.block, n.join(".")) : t.block;
1995
- return Array.isArray(i) ? q(i, r) !== void 0 : i !== void 0;
1996
- })), b = N(() => !l.value && n ? (n.content.value.settings.locales ?? []).filter((e) => !c.value.has(e) && Z(d.value, e, a).stale.length > 0) : []), x = N(() => l.value ? c.value.has(l.value) ? null : u.value?.hidden ? "hidden" : p.value.missing.length ? "missing" : m.value.length ? "stale" : h.value.length ? "tags-differ" : y.value.length ? "changed" : null : b.value.length ? "default-stale" : null);
2010
+ let n = e.split("."), r = n.pop(), i = n.length ? ge(t.block, n.join(".")) : t.block;
2011
+ return Array.isArray(i) ? ge(i, r) !== void 0 : i !== void 0;
2012
+ })), b = N(() => !l.value && n ? (n.content.value.settings.locales ?? []).filter((e) => !c.value.has(e) && te(d.value, e, a).stale.length > 0) : []), x = N(() => l.value ? c.value.has(l.value) ? null : u.value?.hidden ? "hidden" : p.value.missing.length ? "missing" : m.value.length ? "stale" : h.value.length ? "tags-differ" : y.value.length ? "changed" : null : b.value.length ? "default-stale" : null);
1997
2013
  function S(e) {
1998
2014
  return e === "missing" ? p.value.missing.length : e === "stale" ? m.value.length : e === "tags-differ" ? h.value.length : e === "default-stale" ? b.value.length : y.value.length;
1999
2015
  }
@@ -2002,12 +2018,12 @@ var ka = [
2002
2018
  g.value = null;
2003
2019
  });
2004
2020
  let k = N(() => {
2005
- let e = q(t.block, m.value[0] ?? "");
2021
+ let e = ge(t.block, m.value[0] ?? "");
2006
2022
  if (typeof e != "string") return "";
2007
2023
  let n = e.split(/<[^>]*>/).join("");
2008
2024
  return Array.from(n).slice(0, 60).join("");
2009
2025
  });
2010
- return (t, n) => C(r) && x.value ? (i(), D(Ka, {
2026
+ return (t, n) => C(r) && x.value ? (i(), D(Ya, {
2011
2027
  key: 0,
2012
2028
  "block-id": e.block.id,
2013
2029
  state: x.value,
@@ -2041,21 +2057,21 @@ var ka = [
2041
2057
  "editable"
2042
2058
  ])) : E("", !0);
2043
2059
  }
2044
- }), Ja = [
2060
+ }), Za = [
2045
2061
  "data-block-id",
2046
2062
  "data-block-type",
2047
2063
  "data-tpl-picked"
2048
- ], Ya = ["aria-label"], Xa = ["data-lock-holder"], Za = ["aria-label"], Qa = [
2064
+ ], Qa = ["aria-label"], $a = ["data-lock-holder"], eo = ["aria-label"], to = [
2049
2065
  "aria-label",
2050
2066
  "aria-pressed",
2051
2067
  "title"
2052
- ], $a = ["aria-label", "title"], eo = ["aria-label", "title"], to = ["aria-label", "title"], no = {
2068
+ ], no = ["aria-label", "title"], ro = ["aria-label", "title"], io = ["aria-label", "title"], ao = {
2053
2069
  key: 3,
2054
2070
  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 = {
2071
+ }, oo = { 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)]" }, so = {
2056
2072
  key: 4,
2057
2073
  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({
2074
+ }, co = ["aria-label", "title"], lo = /*#__PURE__*/ St(/* @__PURE__ */ n({
2059
2075
  __name: "BlockWrapper",
2060
2076
  props: {
2061
2077
  block: {},
@@ -2068,7 +2084,7 @@ var ka = [
2068
2084
  },
2069
2085
  emits: ["select"],
2070
2086
  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);
2087
+ 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(Rn, 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
2088
  async function v() {
2073
2089
  await O(), d.value?.focus();
2074
2090
  }
@@ -2078,23 +2094,23 @@ var ka = [
2078
2094
  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
2095
  desktop: c.viewport.desktop,
2080
2096
  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({
2097
+ }[r.viewport] ?? r.viewport : ""), I = N(() => !!a.value.displayCondition), L = f(Pn, null), R = f(Dn, null), B = f(vn, {}), 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), K = z(null), q = z(null), J = z(null), te = z({
2082
2098
  left: "calc(100% + 8px)",
2083
2099
  top: "50%"
2084
- }), re = z(!1), ie = N(() => te.value ?? ne.value), J = N(() => ie.value?.closest(".tpl-body"));
2100
+ }), ne = z(!1), re = N(() => K.value ?? J.value), ie = N(() => re.value?.closest(".tpl-body"));
2085
2101
  function Y() {
2086
- let e = re.value, t = te.value, n = ne.value, r = ee.value;
2102
+ let e = ne.value, t = K.value, n = J.value, r = ee.value;
2087
2103
  if (!t && !n || !r?.offsetWidth) return;
2088
- let i = r.getBoundingClientRect(), a = i.width / r.offsetWidth || 1, o = J.value, s = o ? (o.getBoundingClientRect().left - i.left) / a + o.clientLeft : -Infinity, c = o ? s + o.clientWidth : Infinity, l = getComputedStyle(r).direction === "rtl";
2104
+ let i = r.getBoundingClientRect(), a = i.width / r.offsetWidth || 1, o = ie.value, s = o ? (o.getBoundingClientRect().left - i.left) / a + o.clientLeft : -Infinity, c = o ? s + o.clientWidth : Infinity, l = getComputedStyle(r).direction === "rtl";
2089
2105
  if (n?.offsetWidth) {
2090
2106
  let t = l ? -4 - n.offsetWidth : r.offsetWidth + 4, i = t >= s + 4 && t + n.offsetWidth + 4 <= c;
2091
2107
  if (e === i) {
2092
- re.value = !i, O(Y);
2108
+ ne.value = !i, O(Y);
2093
2109
  return;
2094
2110
  }
2095
2111
  }
2096
2112
  if (!t?.offsetWidth) return;
2097
- let u = Math.max(s + 4, Math.min(r.offsetWidth + 8, c - t.offsetWidth - 4)), d = K.value, f = Math.max(28, d?.offsetHeight ? d.offsetTop + d.offsetHeight + 4 : 0), p = Math.max(f + t.offsetHeight / 2, r.offsetHeight / 2), m = u < r.offsetWidth && p + t.offsetHeight / 2 <= r.offsetHeight + 8 ? `${p}px` : "50%";
2113
+ let u = Math.max(s + 4, Math.min(r.offsetWidth + 8, c - t.offsetWidth - 4)), d = q.value, f = Math.max(28, d?.offsetHeight ? d.offsetTop + d.offsetHeight + 4 : 0), p = Math.max(f + t.offsetHeight / 2, r.offsetHeight / 2), m = u < r.offsetWidth && p + t.offsetHeight / 2 <= r.offsetHeight + 8 ? `${p}px` : "50%";
2098
2114
  if (u >= r.offsetWidth && n?.offsetWidth && !e && !l) {
2099
2115
  let e = (n.getBoundingClientRect().bottom - i.top) / a + 4 + t.offsetHeight / 2;
2100
2116
  e > r.offsetHeight / 2 && (m = `${e}px`);
@@ -2106,24 +2122,24 @@ var ka = [
2106
2122
  u = Math.max(s + 4, Math.min(n, c - t.offsetWidth - 4));
2107
2123
  }
2108
2124
  }
2109
- (q.value.left !== `${u}px` || q.value.top !== m) && (q.value = {
2125
+ (te.value.left !== `${u}px` || te.value.top !== m) && (te.value = {
2110
2126
  left: `${u}px`,
2111
2127
  top: m
2112
2128
  });
2113
2129
  }
2114
- _(Y), Qn(N(() => ie.value ? [
2130
+ _(Y), tr(N(() => re.value ? [
2115
2131
  ee.value,
2116
- te.value,
2117
2132
  K.value,
2118
- ne.value,
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;
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, {
2133
+ q.value,
2134
+ J.value,
2135
+ ie.value
2136
+ ].filter((e) => !!e) : []), Y), Qn(ie, "scroll", Y, { passive: !0 });
2137
+ 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 = vt(() => a.value.type === "section" ? a.value.backgroundImage : void 0), ce = vt(() => a.value.type === "section" ? a.value.wrapper?.backgroundImage : void 0), Z = f(Ln, null), le = Z ? Hn(Z) : null, ue = f(Tn, null) ?? le?.content ?? null;
2138
+ o([() => Z?.activeLocale?.value, () => le && Ye(le.settings.value)], Y, { flush: "post" });
2139
+ let de = f(cn, void 0), fe = N(() => Fi(a.value, {
2124
2140
  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 }));
2141
+ heroBoxWidth: ut(a.value) ? mt(a.value, ue?.value, de) : void 0
2142
+ })), pe = N(() => Ri(a.value, { backgroundImageUrl: ce.value }));
2127
2143
  function me(e) {
2128
2144
  r.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), s("select"));
2129
2145
  }
@@ -2157,22 +2173,22 @@ var ka = [
2157
2173
  }, [
2158
2174
  A("div", {
2159
2175
  ref_key: "badgesElement",
2160
- ref: K,
2176
+ ref: q,
2161
2177
  class: "tpl-block-badges tpl:absolute tpl:top-1 tpl:inset-e-1 tpl:z-10 tpl:flex tpl:gap-1"
2162
2178
  }, [
2163
2179
  G.value > 0 && !S.value ? (i(), b("button", {
2164
2180
  key: 0,
2165
2181
  ref_key: "commentElement",
2166
- ref: ne,
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"]),
2182
+ ref: J,
2183
+ 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)]", ne.value ? void 0 : "tpl:absolute tpl:-top-2 tpl:inset-s-full tpl:ms-2"]),
2168
2184
  "aria-label": C(l)(C(c).blockActions.comments, { count: String(G.value) }),
2169
2185
  onClick: r[0] ||= k((t) => C(B).comments?.openForBlock(e.block.id), ["stop"])
2170
- }, [V(C(Ft), {
2186
+ }, [V(C(Rt), {
2171
2187
  size: 12,
2172
2188
  "stroke-width": 2.5
2173
- }), x(" " + j(G.value), 1)], 10, Ya)) : E("", !0),
2189
+ }), x(" " + j(G.value), 1)], 10, Qa)) : E("", !0),
2174
2190
  V(C(n), { "block-id": e.block.id }, null, 8, ["block-id"]),
2175
- e.previewMode ? E("", !0) : (i(), D(qa, {
2191
+ e.previewMode ? E("", !0) : (i(), D(Xa, {
2176
2192
  key: 1,
2177
2193
  block: e.block
2178
2194
  }, null, 8, ["block"]))
@@ -2190,9 +2206,9 @@ var ka = [
2190
2206
  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
2207
  style: P({
2192
2208
  backgroundColor: X.value.holder.color,
2193
- color: C(pr)(X.value.holder.color)
2209
+ color: C(gr)(X.value.holder.color)
2194
2210
  })
2195
- }, j(C(l)(C(c).collaboration.editing, { name: ae.value })), 5)], 12, Xa)) : E("", !0),
2211
+ }, j(C(l)(C(c).collaboration.editing, { name: ae.value })), 5)], 12, $a)) : E("", !0),
2196
2212
  oe.value === null ? E("", !0) : (i(), b("div", {
2197
2213
  key: oe.value,
2198
2214
  "data-testid": "block-agent-highlight",
@@ -2202,8 +2218,8 @@ var ka = [
2202
2218
  W.value ? (i(), b("div", {
2203
2219
  key: 2,
2204
2220
  ref_key: "actionsElement",
2205
- ref: te,
2206
- style: P(q.value),
2221
+ ref: K,
2222
+ style: P(te.value),
2207
2223
  role: "toolbar",
2208
2224
  "aria-label": C(c).blockActions.drag,
2209
2225
  class: "tpl-block-actions tpl-fade-in tpl:absolute tpl:top-1/2 tpl:z-20 tpl:flex tpl:-translate-y-1/2 tpl:gap-0.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1 tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:shadow-[var(--tpl-shadow-md)] tpl:border tpl:border-[var(--tpl-border)]"
@@ -2217,90 +2233,96 @@ var ka = [
2217
2233
  "aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
2218
2234
  title: C(c).blockActions.drag,
2219
2235
  onKeydown: y
2220
- }, [V(C(Rt), {
2236
+ }, [V(C(Vt), {
2221
2237
  size: 14,
2222
2238
  "stroke-width": 1.5
2223
- })], 40, Qa),
2239
+ })], 40, to),
2224
2240
  A("button", {
2225
2241
  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
2242
  "aria-label": C(c).blockActions.duplicate,
2227
2243
  title: C(c).blockActions.duplicate,
2228
2244
  onClick: k(ge, ["stop"])
2229
- }, [V(C(bt), {
2245
+ }, [V(C(Ct), {
2230
2246
  size: 14,
2231
2247
  "stroke-width": 1.5
2232
- })], 8, $a),
2248
+ })], 8, no),
2233
2249
  U.value ? (i(), b("button", {
2234
2250
  key: 0,
2235
2251
  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
2252
  "aria-label": C(c).blockActions.saveAsBlock,
2237
2253
  title: C(c).blockActions.saveAsBlock,
2238
2254
  onClick: k(_e, ["stop"])
2239
- }, [V(C(Ot), {
2255
+ }, [V(C(jt), {
2240
2256
  size: 14,
2241
2257
  "stroke-width": 1.5
2242
- })], 8, eo)) : E("", !0),
2258
+ })], 8, ro)) : E("", !0),
2243
2259
  A("button", {
2244
2260
  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
2261
  "aria-label": C(c).blockActions.delete,
2246
2262
  title: C(c).blockActions.delete,
2247
2263
  onClick: k(he, ["stop"])
2248
- }, [V(C(Mt), {
2264
+ }, [V(C(Ft), {
2249
2265
  size: 14,
2250
2266
  "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), {
2267
+ })], 8, io)
2268
+ ], 12, eo)) : E("", !0),
2269
+ S.value ? (i(), b("div", ao, [A("span", oo, [V(C(Dt), {
2254
2270
  size: 12,
2255
2271
  "stroke-width": 1.5
2256
2272
  }), 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", {
2273
+ I.value && !S.value ? (i(), b("div", so, [A("button", {
2258
2274
  "data-testid": "condition-toggle",
2259
2275
  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
2276
  "aria-label": C(c).blockActions.conditionToggle,
2261
2277
  title: e.block.displayCondition?.label,
2262
2278
  onClick: k(ve, ["stop"])
2263
- }, [V(C(Tt), {
2279
+ }, [V(C(Ot), {
2264
2280
  size: 12,
2265
2281
  "stroke-width": 2
2266
- })], 8, ao)])) : E("", !0),
2282
+ })], 8, co)])) : E("", !0),
2267
2283
  pe.value ? (i(), b("div", {
2268
2284
  key: 5,
2269
- class: w(["tpl-section-wrapper tpl-email-surface", C(Oi)(pe.value)]),
2285
+ class: w(["tpl-section-wrapper tpl-email-surface", C(ji)(pe.value)]),
2270
2286
  style: P(pe.value)
2271
2287
  }, [A("div", {
2272
- class: w(["tpl-block-content tpl-email-surface", C(Oi)(fe.value)]),
2288
+ class: w(["tpl-block-content tpl-email-surface", C(ji)(fe.value)]),
2273
2289
  style: P(fe.value)
2274
2290
  }, [h(t.$slots, "default", {}, void 0, !0)], 6)], 6)) : (i(), b("div", {
2275
2291
  key: 6,
2276
- class: w(["tpl-block-content tpl-email-surface", C(Oi)(fe.value)]),
2292
+ class: w(["tpl-block-content tpl-email-surface", C(ji)(fe.value)]),
2277
2293
  style: P(fe.value)
2278
2294
  }, [h(t.$slots, "default", {}, void 0, !0)], 6))
2279
- ], 10, Ja));
2295
+ ], 10, Za));
2280
2296
  }
2281
2297
  }), [["__scopeId", "data-v-8c371dc9"]]);
2282
2298
  // 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];
2299
+ function uo(e) {
2300
+ let t = /^\s*<p\b/.exec(e);
2301
+ if (!t) return e;
2302
+ let n = Ee(e, t[0].length);
2303
+ if (n === -1) return e;
2304
+ let r = /<\/p>\s*$/.exec(e);
2305
+ if (!r || r.index <= n) return e;
2306
+ let i = e.slice(n + 1, r.index);
2307
+ return /<\/p>\s*<p\b/i.test(i) ? e : i;
2286
2308
  }
2287
2309
  // src/components/blocks/TitleBlock.vue
2288
- var co = /* @__PURE__ */ n({
2310
+ var fo = /* @__PURE__ */ n({
2289
2311
  __name: "TitleBlock",
2290
2312
  props: {
2291
2313
  block: {},
2292
2314
  viewport: {}
2293
2315
  },
2294
2316
  setup(e) {
2295
- let n = e, r = g(() => import("./TitleEditor-VAanUjPQ.js")), a = En(pn, "TitleBlock"), { isEditing: o, blockRef: s, toolbarPosition: c, resolvedContent: l, handleDoubleClick: u, handleEditorDone: d } = Ca(() => n.block.content), f = N(() => {
2317
+ let n = e, r = g(() => import("./TitleEditor-C2syRLdZ.js")), a = kn(gn, "TitleBlock"), { isEditing: o, blockRef: s, toolbarPosition: c, resolvedContent: l, handleDoubleClick: u, handleEditorDone: d } = Ea(() => n.block.content), f = N(() => {
2296
2318
  let e = {
2297
- fontSize: `${je[n.block.level]}px`,
2298
- lineHeight: String(pe),
2319
+ fontSize: `${be[n.block.level]}px`,
2320
+ lineHeight: String(tt),
2299
2321
  fontWeight: "700",
2300
2322
  textAlign: n.block.textAlign
2301
2323
  };
2302
2324
  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));
2325
+ }), p = N(() => `h${n.block.level}`), m = N(() => mr(uo(l.value)));
2304
2326
  return (n, a) => (i(), b("div", {
2305
2327
  ref_key: "blockRef",
2306
2328
  ref: s,
@@ -2326,14 +2348,14 @@ var co = /* @__PURE__ */ n({
2326
2348
  innerHTML: m.value
2327
2349
  }, null, 8, ["innerHTML"]))], 36));
2328
2350
  }
2329
- }), lo = "hero", uo = "#1f2937", fo = "#ffffff";
2330
- function po(e, t) {
2331
- let n = X("title", e);
2332
- n.color = fo, n.textAlign = "center";
2333
- let r = X("paragraph", e);
2334
- r.content = `<p style="text-align: center"><span style="color: ${fo}">${mo(t)}</span></p>`;
2335
- let i = X("button", e);
2336
- return i.align = "center", ce({
2351
+ }), po = "hero", mo = "#1f2937", ho = "#ffffff";
2352
+ function go(e, t) {
2353
+ let n = et("title", e);
2354
+ n.color = ho, n.textAlign = "center";
2355
+ let r = et("paragraph", e);
2356
+ r.content = `<p style="text-align: center"><span style="color: ${ho}">${_o(t)}</span></p>`;
2357
+ let i = et("button", e);
2358
+ return i.align = "center", se({
2337
2359
  columns: "1",
2338
2360
  children: [[
2339
2361
  n,
@@ -2351,28 +2373,28 @@ function po(e, t) {
2351
2373
  bottom: 48,
2352
2374
  left: 24
2353
2375
  },
2354
- backgroundColor: uo
2376
+ backgroundColor: mo
2355
2377
  }
2356
2378
  });
2357
2379
  }
2358
- function mo(e) {
2380
+ function _o(e) {
2359
2381
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
2360
2382
  }
2361
2383
  // 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 ?? "");
2384
+ var vo = /* @__PURE__ */ new Set(["section", po]);
2385
+ function yo(e) {
2386
+ return e.dataset.blockType !== "section" && !vo.has(e.dataset.paletteType ?? "");
2365
2387
  }
2366
2388
  // src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
2367
- var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2389
+ var bo = { class: "tpl:relative tpl:w-full" }, xo = {
2368
2390
  key: 0,
2369
2391
  "data-testid": "hero-image-hint",
2370
2392
  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 = {
2393
+ }, So = {
2372
2394
  key: 0,
2373
2395
  "data-testid": "section-drop-hint",
2374
2396
  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({
2397
+ }, Co = /* @__PURE__ */ n({
2376
2398
  __name: "SectionBlock",
2377
2399
  props: {
2378
2400
  block: {},
@@ -2381,15 +2403,15 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2381
2403
  },
2382
2404
  setup(n) {
2383
2405
  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);
2406
+ title: fo,
2407
+ paragraph: Oa,
2408
+ image: xa,
2409
+ button: Ui,
2410
+ divider: ra,
2411
+ custom: ta
2412
+ }, o = n, { t: u } = Q(), d = kn(Ln, "SectionBlock"), { displayBlock: p } = Hn(d), m = N(() => o.sourceBlock ?? o.block), h = f(Sn, N(() => /* @__PURE__ */ new Set()));
2413
+ s(Sn, N(() => /* @__PURE__ */ new Set([...h.value, ...Object.entries(m.value.l10n ?? {}).filter(([, e]) => e.hidden).map(([e]) => e)])));
2414
+ let g = f(Dn, null), _ = f(En, null), v = f(vn, {}), y = f(mn, null);
2393
2415
  function x(e) {
2394
2416
  let t = v.savedBlocks;
2395
2417
  t?.isPicking.value ? t.togglePick(o.block.id) : d.selectBlock(e);
@@ -2426,7 +2448,7 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2426
2448
  }
2427
2449
  let U = N(() => {
2428
2450
  if (d.state.previewMode) return !1;
2429
- let e = We(o.block);
2451
+ let e = Ne(o.block);
2430
2452
  return e !== null && !e.applied && e.reason === "image";
2431
2453
  });
2432
2454
  function W(e) {
@@ -2436,18 +2458,18 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2436
2458
  return k(e).length === 0 && d.state.previewMode;
2437
2459
  }
2438
2460
  function ee(e, t) {
2439
- Ea(d, t, o.block.id, e);
2461
+ ka(d, t, o.block.id, e);
2440
2462
  }
2441
- function te(e) {
2442
- return wi(e, _, r);
2463
+ function K(e) {
2464
+ return Di(e, _, r);
2443
2465
  }
2444
- function K(e, t) {
2466
+ function q(e, t) {
2445
2467
  e.type === "custom" && d.updateBlock(e.id, {
2446
2468
  fieldValues: t.fieldValues,
2447
2469
  dataSourceFetched: t.dataSourceFetched
2448
2470
  });
2449
2471
  }
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", {
2472
+ return (r, s) => (i(), b("div", bo, [U.value ? (i(), b("div", xo, [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
2473
  key: f,
2452
2474
  class: w(["tpl:relative tpl:flex tpl:flex-col tpl:rounded", W(f) ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
2453
2475
  style: P({ width: O.value ? "100%" : S.value[f] })
@@ -2456,7 +2478,7 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2456
2478
  group: {
2457
2479
  name: "blocks",
2458
2480
  pull: !0,
2459
- put: (e, t, n) => C(go)(n)
2481
+ put: (e, t, n) => C(yo)(n)
2460
2482
  },
2461
2483
  animation: 150,
2462
2484
  "ghost-class": "tpl-ghost",
@@ -2470,12 +2492,12 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2470
2492
  "tpl:min-h-[60px]": H(f),
2471
2493
  "tpl:min-h-[34px]": G(f)
2472
2494
  }]),
2473
- onUpdate: (e) => C(Ea)(C(d), k(f), o.block.id, f, e),
2495
+ onUpdate: (e) => C(ka)(C(d), k(f), o.block.id, f, e),
2474
2496
  onStart: (e) => L.value = f,
2475
2497
  onEnd: s[0] ||= (e) => L.value = null,
2476
2498
  "onUpdate:modelValue": (e) => ee(f, e)
2477
2499
  }, {
2478
- default: a(() => [(i(!0), b(B, null, l(k(f), (r) => c((i(), b("div", { key: r.id }, [V(oo, {
2500
+ default: a(() => [(i(!0), b(B, null, l(k(f), (r) => c((i(), b("div", { key: r.id }, [V(lo, {
2479
2501
  block: r,
2480
2502
  "display-block": C(p)(r),
2481
2503
  "is-selected": C(d).state.selectedBlockId === r.id,
@@ -2484,9 +2506,9 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2484
2506
  nested: "",
2485
2507
  onSelect: (e) => x(r.id)
2486
2508
  }, {
2487
- default: a(() => [(i(), D(t(te(r)), e({ block: C(p)(r) }, { ref_for: !0 }, r.type === "section" ? { sourceBlock: r } : {}, {
2509
+ default: a(() => [(i(), D(t(K(r)), e({ block: C(p)(r) }, { ref_for: !0 }, r.type === "section" ? { sourceBlock: r } : {}, {
2488
2510
  viewport: n.viewport,
2489
- onFetchData: (e) => K(r, e),
2511
+ onFetchData: (e) => q(r, e),
2490
2512
  onUpdate: (e) => C(d).updateBlock(r.id, e)
2491
2513
  }), null, 16, [
2492
2514
  "block",
@@ -2511,14 +2533,14 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2511
2533
  "onUpdate",
2512
2534
  "onStart",
2513
2535
  "onUpdate:modelValue"
2514
- ]), W(f) ? (i(), b("div", yo, [A("span", null, j(C(u).section.dropHere), 1)])) : E("", !0)], 6))), 128))], 2)]));
2536
+ ]), W(f) ? (i(), b("div", So, [A("span", null, j(C(u).section.dropHere), 1)])) : E("", !0)], 6))), 128))], 2)]));
2515
2537
  }
2516
- }), xo = ["width", "height"], So = [
2538
+ }), wo = ["width", "height"], To = [
2517
2539
  "d",
2518
2540
  "stroke",
2519
2541
  "stroke-opacity",
2520
2542
  "stroke-width"
2521
- ], Co = ["d", "fill"], wo = /* @__PURE__ */ n({
2543
+ ], Eo = ["d", "fill"], Do = /* @__PURE__ */ n({
2522
2544
  __name: "SocialIconSvg",
2523
2545
  props: {
2524
2546
  platform: {},
@@ -2527,7 +2549,7 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2527
2549
  iconSize: {}
2528
2550
  },
2529
2551
  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(() => {
2552
+ let t = e, n = N(() => pt[t.platform]), r = N(() => ht[t.iconSize]), a = N(() => Ce(t.platform, t.iconTone)), o = N(() => We(t.iconStyle, t.iconTone)), s = N(() => {
2531
2553
  let e = {
2532
2554
  display: "inline-flex",
2533
2555
  alignItems: "center",
@@ -2565,7 +2587,7 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2565
2587
  };
2566
2588
  default: return e;
2567
2589
  }
2568
- }), c = N(() => Pe(t.iconStyle)), l = N(() => Math.floor(r.value * c.value));
2590
+ }), c = N(() => Re(t.iconStyle)), l = N(() => Math.floor(r.value * c.value));
2569
2591
  function u(e) {
2570
2592
  let t = `${e.width / 2 * r.value / 24}px`, n = Math.round(e.opacity * 255).toString(16).padStart(2, "0"), i = `${e.color}${n}`;
2571
2593
  return `0 0 0 ${t} ${i}, inset 0 0 0 ${t} ${i}`;
@@ -2586,15 +2608,15 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2586
2608
  "stroke-opacity": o.value.opacity,
2587
2609
  "stroke-width": o.value.width / c.value,
2588
2610
  "stroke-linejoin": "round"
2589
- }, null, 8, So)) : E("", !0), A("path", {
2611
+ }, null, 8, To)) : E("", !0), A("path", {
2590
2612
  d: n.value.path,
2591
2613
  fill: d.value
2592
- }, null, 8, Co)], 8, xo))], 4));
2614
+ }, null, 8, Eo)], 8, wo))], 4));
2593
2615
  }
2594
- }), To = { class: "tpl:w-full" }, Eo = ["href"], Do = {
2616
+ }), Oo = { class: "tpl:w-full" }, ko = ["href"], Ao = {
2595
2617
  key: 1,
2596
2618
  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({
2619
+ }, jo = /* @__PURE__ */ n({
2598
2620
  __name: "SocialIconsBlock",
2599
2621
  props: {
2600
2622
  block: {},
@@ -2607,7 +2629,7 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2607
2629
  gap: `${t.block.spacing}px`,
2608
2630
  justifyContent: t.block.align === "left" ? "flex-start" : t.block.align === "right" ? "flex-end" : "center"
2609
2631
  })), a = N(() => t.block.icons.length > 0);
2610
- return (t, o) => (i(), b("div", To, [a.value ? (i(), b("div", {
2632
+ return (t, o) => (i(), b("div", Oo, [a.value ? (i(), b("div", {
2611
2633
  key: 0,
2612
2634
  style: P(r.value)
2613
2635
  }, [(i(!0), b(B, null, l(e.block.icons, (t) => (i(), b("a", {
@@ -2615,7 +2637,7 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2615
2637
  href: t.url || "#",
2616
2638
  class: "tpl:cursor-default",
2617
2639
  onClick: o[0] ||= k(() => {}, ["prevent"])
2618
- }, [V(wo, {
2640
+ }, [V(Do, {
2619
2641
  platform: t.platform,
2620
2642
  "icon-style": e.block.iconStyle,
2621
2643
  "icon-tone": e.block.iconTone,
@@ -2625,44 +2647,44 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2625
2647
  "icon-style",
2626
2648
  "icon-tone",
2627
2649
  "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)]))]));
2650
+ ])], 8, ko))), 128))], 4)) : (i(), b("div", Ao, [V(C(It), { size: 16 }), A("span", null, j(C(n).social.addIcons), 1)]))]));
2629
2651
  }
2630
- }), ko = { class: "tpl:w-full" }, Ao = {
2652
+ }), Mo = { class: "tpl:w-full" }, No = {
2631
2653
  key: 0,
2632
2654
  class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
2633
2655
  style: {
2634
2656
  "background-color": "var(--tpl-bg-hover)",
2635
2657
  color: "var(--tpl-text-dim)"
2636
2658
  }
2637
- }, jo = /* @__PURE__ */ n({
2659
+ }, Po = /* @__PURE__ */ n({
2638
2660
  __name: "SpacerBlock",
2639
2661
  props: {
2640
2662
  block: {},
2641
2663
  viewport: {}
2642
2664
  },
2643
2665
  setup(e) {
2644
- let t = e, n = En(Pn, "SpacerBlock"), r = N(() => ({
2666
+ let t = e, n = kn(Ln, "SpacerBlock"), r = N(() => ({
2645
2667
  height: `${t.block.height}px`,
2646
2668
  minHeight: `${t.block.height}px`,
2647
2669
  ...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
2648
2670
  }));
2649
- return (t, a) => (i(), b("div", ko, [A("div", {
2671
+ return (t, a) => (i(), b("div", Mo, [A("div", {
2650
2672
  style: P(r.value),
2651
2673
  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)]));
2674
+ }, [C(n).state.previewMode ? E("", !0) : (i(), b("span", No, j(e.block.height) + "px ", 1))], 6)]));
2653
2675
  }
2654
- }), Mo = { class: "tpl:w-full" }, No = { key: 0 }, Po = [
2676
+ }), Fo = { class: "tpl:w-full" }, Io = { key: 0 }, Lo = [
2655
2677
  "aria-label",
2656
2678
  "data-placeholder",
2657
2679
  "onBlur"
2658
- ], Fo = [
2680
+ ], Ro = [
2659
2681
  "aria-label",
2660
2682
  "data-placeholder",
2661
2683
  "onBlur"
2662
- ], Io = {
2684
+ ], zo = {
2663
2685
  key: 1,
2664
2686
  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({
2687
+ }, Bo = /*#__PURE__*/ St(/* @__PURE__ */ n({
2666
2688
  __name: "TableBlock",
2667
2689
  props: {
2668
2690
  block: {},
@@ -2676,7 +2698,7 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2676
2698
  updated(e, t) {
2677
2699
  t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
2678
2700
  }
2679
- }, n = e, { t: r } = Q(), a = En(Pn, "TableBlock"), o = En(pn, "TableBlock"), s = N(() => n.block.rows.length > 0), u = N(() => {
2701
+ }, n = e, { t: r } = Q(), a = kn(Ln, "TableBlock"), o = kn(gn, "TableBlock"), s = N(() => n.block.rows.length > 0), u = N(() => {
2680
2702
  let e = {
2681
2703
  width: "100%",
2682
2704
  borderCollapse: "collapse",
@@ -2707,11 +2729,11 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2707
2729
  } : n);
2708
2730
  a.updateBlock(n.block.id, { rows: o });
2709
2731
  }
2710
- return (e, n) => (i(), b("div", Mo, [s.value ? (i(), b("table", {
2732
+ return (e, n) => (i(), b("div", Fo, [s.value ? (i(), b("table", {
2711
2733
  key: 0,
2712
2734
  style: P(u.value),
2713
2735
  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", {
2736
+ }, [p.value ? (i(), b("thead", Io, [A("tr", null, [(i(!0), b(B, null, l(p.value.cells, (e) => c((i(), b("th", {
2715
2737
  key: e.id,
2716
2738
  style: P(f.value),
2717
2739
  "aria-label": C(r).table.cellPlaceholder,
@@ -2720,7 +2742,7 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2720
2742
  onBlur: (t) => g(p.value.id, e.id, t),
2721
2743
  onKeydown: n[0] ||= S(k((e) => e.target.blur(), ["prevent"]), ["enter"]),
2722
2744
  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", {
2745
+ }, null, 44, Lo)), [[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
2746
  key: a.id,
2725
2747
  style: P(d.value),
2726
2748
  "aria-label": C(r).table.cellPlaceholder,
@@ -2729,9 +2751,9 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2729
2751
  onBlur: (t) => g(e.id, a.id, t),
2730
2752
  onKeydown: n[1] ||= S(k((e) => e.target.blur(), ["prevent"]), ["enter"]),
2731
2753
  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)]))]));
2754
+ }, null, 44, Ro)), [[t, a.content]])), 128))]))), 128))])], 4)) : (i(), b("div", zo, [V(C(Bt), { size: 16 }), A("span", null, j(C(r).table.empty), 1)]))]));
2733
2755
  }
2734
- }), [["__scopeId", "data-v-6751d456"]]), Ro = /* @__PURE__ */ n({
2756
+ }), [["__scopeId", "data-v-6751d456"]]), Vo = /* @__PURE__ */ n({
2735
2757
  __name: "VideoPlayButton",
2736
2758
  props: { hoverEffect: {
2737
2759
  type: Boolean,
@@ -2748,7 +2770,7 @@ var _o = { class: "tpl:relative tpl:w-full" }, vo = {
2748
2770
  }
2749
2771
  });
2750
2772
  // src/utils/videoThumbnail.ts
2751
- function zo(e) {
2773
+ function Ho(e) {
2752
2774
  if (!e) return {
2753
2775
  platform: "unknown",
2754
2776
  videoId: null,
@@ -2780,24 +2802,24 @@ function zo(e) {
2780
2802
  thumbnailUrl: null
2781
2803
  };
2782
2804
  }
2783
- function Bo(e, t) {
2784
- return t || zo(e).thumbnailUrl;
2805
+ function Uo(e, t) {
2806
+ return t || Ho(e).thumbnailUrl;
2785
2807
  }
2786
2808
  // src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
2787
- var Vo = ["src", "alt"], Ho = {
2809
+ var Wo = ["src", "alt"], Go = {
2788
2810
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
2789
2811
  style: { opacity: "0.7" }
2790
- }, Uo = ["href"], Wo = ["src", "alt"], Go = ["src", "alt"], Ko = {
2812
+ }, Ko = ["href"], qo = ["src", "alt"], Jo = ["src", "alt"], Yo = {
2791
2813
  key: 3,
2792
2814
  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({
2815
+ }, Xo = /* @__PURE__ */ n({
2794
2816
  __name: "VideoBlock",
2795
2817
  props: {
2796
2818
  block: {},
2797
2819
  viewport: {}
2798
2820
  },
2799
2821
  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(() => {
2822
+ let t = e, { t: n } = Q(), { syntax: r } = rr(), a = N(() => pe(t.block.url, r) || pe(t.block.thumbnailUrl, r)), o = ct(() => a.value ? void 0 : t.block.thumbnailUrl || void 0), s = ct(() => a.value ? t.block.placeholderUrl : void 0), c = N(() => a.value ? null : t.block.thumbnailUrl ? o.value ?? null : Uo(t.block.url)), l = N(() => ({ textAlign: t.block.align })), u = N(() => {
2801
2823
  let e = t.block.align;
2802
2824
  return {
2803
2825
  maxWidth: "100%",
@@ -2807,7 +2829,7 @@ var Vo = ["src", "alt"], Ho = {
2807
2829
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
2808
2830
  marginRight: e === "center" ? "auto" : void 0
2809
2831
  };
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);
2832
+ }), d = N(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), f = N(() => pe(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
2811
2833
  return (t, r) => (i(), b("div", {
2812
2834
  class: "tpl:w-full",
2813
2835
  style: P(l.value)
@@ -2820,16 +2842,16 @@ var Vo = ["src", "alt"], Ho = {
2820
2842
  src: C(s),
2821
2843
  alt: e.block.alt,
2822
2844
  style: P(d.value)
2823
- }, null, 12, Vo), V(Ro)], 4)) : a.value ? (i(), b("div", {
2845
+ }, null, 12, Wo), V(Vo)], 4)) : a.value ? (i(), b("div", {
2824
2846
  key: 1,
2825
2847
  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
2848
  style: P([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, u.value])
2827
- }, [V(C(It), {
2849
+ }, [V(C(zt), {
2828
2850
  size: 36,
2829
2851
  "stroke-width": 1.5,
2830
2852
  class: "tpl:text-[var(--tpl-primary)]",
2831
2853
  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", {
2854
+ }), A("span", Go, [V(Vi, { text: f.value }, null, 8, ["text"])])], 4)) : c.value ? (i(), b(B, { key: 2 }, [e.block.url ? (i(), b("a", {
2833
2855
  key: 0,
2834
2856
  href: e.block.url,
2835
2857
  target: "_blank",
@@ -2842,7 +2864,7 @@ var Vo = ["src", "alt"], Ho = {
2842
2864
  src: c.value,
2843
2865
  alt: e.block.alt,
2844
2866
  style: P(d.value)
2845
- }, null, 12, Wo), V(Ro, { "hover-effect": "" })], 12, Uo)) : (i(), b("div", {
2867
+ }, null, 12, qo), V(Vo, { "hover-effect": "" })], 12, Ko)) : (i(), b("div", {
2846
2868
  key: 1,
2847
2869
  class: "tpl:relative tpl:inline-block",
2848
2870
  style: P(u.value)
@@ -2851,53 +2873,53 @@ var Vo = ["src", "alt"], Ho = {
2851
2873
  src: c.value,
2852
2874
  alt: e.block.alt,
2853
2875
  style: P(d.value)
2854
- }, null, 12, Go), V(Ro)], 4))], 64)) : (i(), b("div", Ko, [V(C(It), {
2876
+ }, null, 12, Jo), V(Vo)], 4))], 64)) : (i(), b("div", Yo, [V(C(zt), {
2855
2877
  size: 40,
2856
2878
  "stroke-width": 1.5,
2857
2879
  class: "tpl:text-[var(--tpl-border-light)]"
2858
2880
  }), A("span", null, j(C(n).video.addVideo), 1)]))], 4));
2859
2881
  }
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,
2882
+ }), Zo = {
2883
+ section: Co,
2884
+ title: fo,
2885
+ paragraph: Oa,
2886
+ image: xa,
2887
+ button: Ui,
2888
+ divider: ra,
2889
+ video: Xo,
2890
+ social: jo,
2891
+ menu: Ta,
2892
+ table: Bo,
2893
+ spacer: Po,
2894
+ html: la,
2873
2895
  countdown: g(() => import("./CountdownBlock-CjMhMhnv.js"))
2874
2896
  };
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" ? {
2897
+ function Qo(e) {
2898
+ let { editor: t, config: n, translations: r, fontsManager: i } = e, { t: a, format: c } = Q(r), l = N(() => Fe(Fe(Fe(ni(r), Si(t.content.value.settings?.locale)), Ye(t.content.value.settings) === "rtl" ? {
2877
2899
  title: { textAlign: "right" },
2878
2900
  table: { textAlign: "right" }
2879
2901
  } : {}), n.blockDefaults ?? {}));
2880
2902
  t.setUiTheme(n.uiTheme ?? "auto");
2881
- let { resolvedTheme: u } = Wr(N(() => t.state.uiTheme)), d = z(n.theme ?? {}), { themeStyles: f } = Cr({
2903
+ let { resolvedTheme: u } = qr(N(() => t.state.uiTheme)), d = z(n.theme ?? {}), { themeStyles: f } = Er({
2882
2904
  themeOverrides: d,
2883
2905
  resolvedTheme: u,
2884
2906
  extraStyles: () => ({
2885
2907
  "--tpl-drop-text": `"${r.canvas.dropHere}"`,
2886
2908
  ...e.themeExtraStyles?.()
2887
2909
  })
2888
- }), p = e.history ?? $e({
2910
+ }), p = e.history ?? nt({
2889
2911
  content: t.content,
2890
2912
  setContent: (e, n) => t.setContent(e, n)
2891
2913
  });
2892
- e.history || rt(t, p);
2893
- let h = vt({
2914
+ e.history || ot(t, p);
2915
+ let h = xt({
2894
2916
  addBlock: t.addBlock,
2895
2917
  removeBlock: t.removeBlock,
2896
2918
  updateBlock: t.updateBlock,
2897
2919
  selectBlock: t.selectBlock,
2898
2920
  findBlockLocation: t.findBlockLocation,
2899
2921
  blockDefaults: () => l.value
2900
- }), g = nt(t), _ = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? it({
2922
+ }), g = at(t), _ = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? st({
2901
2923
  content: t.content,
2902
2924
  isDirty: () => t.state.isDirty,
2903
2925
  ...e.autoSaveOptions
@@ -2905,30 +2927,30 @@ function Yo(e) {
2905
2927
  _ && (v = o(p.isNavigating, (e) => {
2906
2928
  e ? _.pause() : _.resume();
2907
2929
  }));
2908
- let b = Ur(t, {
2930
+ let b = Kr(t, {
2909
2931
  t: a,
2910
2932
  format: c
2911
- }, n.customBlocks ?? []), x = rr(n.colors);
2933
+ }, n.customBlocks ?? []), x = or(n.colors);
2912
2934
  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);
2935
+ let e = ti(x.presets, n.blockDefaults, n.templateDefaults);
2914
2936
  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
2937
  }
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);
2938
+ let S = dr(n.templateSettings);
2939
+ for (let e of S.unknown) $.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${fr.join(", ")}) — skipping it.`);
2940
+ let C = br();
2941
+ Qr(C, Zo);
2920
2942
  let w = /* @__PURE__ */ new Set();
2921
2943
  function T(e) {
2922
2944
  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));
2945
+ C.registerCustom(t, ta);
2946
+ for (let e of Ci(t, x)) w.has(e.id) || (w.add(e.id), $.warn(e.message));
2925
2947
  }
2926
2948
  }
2927
2949
  n.customBlocks?.length && T(n.customBlocks);
2928
- let E = Pr();
2950
+ let E = Lr();
2929
2951
  if (y() && m(E.dispose), e.containerEl) {
2930
2952
  let t = e.containerEl;
2931
- Yn(document, "pointerdown", (e) => {
2953
+ Qn(document, "pointerdown", (e) => {
2932
2954
  let n = t.value;
2933
2955
  n && (e.composedPath?.() ?? []).includes(n) && E.claim();
2934
2956
  }, { capture: !0 });
@@ -2938,7 +2960,7 @@ function Yo(e) {
2938
2960
  t ? t.save() : _?.flush();
2939
2961
  }
2940
2962
  function O(n) {
2941
- E.isActive() && Si(n, {
2963
+ E.isActive() && Ti(n, {
2942
2964
  history: p,
2943
2965
  selectBlock: (e) => t.selectBlock(e),
2944
2966
  getSelectedBlockId: () => t.state.selectedBlockId,
@@ -2949,42 +2971,42 @@ function Yo(e) {
2949
2971
  onCancelPick: () => e.capabilities?.savedBlocks?.cancelPicking()
2950
2972
  });
2951
2973
  }
2952
- Yn(document, "keydown", O);
2974
+ Qn(document, "keydown", O);
2953
2975
  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));
2955
- let j = Le(n.mergeTags?.syntax);
2976
+ s(Bn, A), s(Qt, k), s(Kt, /* @__PURE__ */ new Map()), s(Fn, r), s(Ln, t), s(zn, p), s(Pn, h), s(Dn, g), s(gn, i), s(yn, f), s(Cn, u), s(_n, l), s(Nn, n.locale), s(En, C), s(xn, n.customBlocks ?? []), s(Jt, n.paletteBlocks), s(sn, $r(n.htmlBlockPreview)), s(cn, n.layout), s(fn, n.sectionWrapper), s(An, x), s(Ht, S.fields), s(bn, Jr(t.content, C));
2977
+ let j = Oe(n.mergeTags?.syntax);
2956
2978
  for (let e of ["opener", "closer"]) {
2957
2979
  let t = j[e];
2958
2980
  typeof t == "string" && t.trim() === "" && $.warn(`config.mergeTags.syntax.${e} is blank — ignoring it.`);
2959
2981
  }
2960
- typeof j.opener != "string" && typeof j.closer == "string" && j.closer.trim() !== "" && ye(j) === null && $.warn("config.mergeTags.syntax.closer has no effect without an opener — set opener to turn on autocomplete for this syntax.");
2982
+ typeof j.opener != "string" && typeof j.closer == "string" && j.closer.trim() !== "" && ie(j) === null && $.warn("config.mergeTags.syntax.closer has no effect without an opener — set opener to turn on autocomplete for this syntax.");
2961
2983
  let M = F(n.mergeTags?.tags ?? []);
2962
2984
  function P(e) {
2963
2985
  Array.isArray(e) ? M.value = e : $.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
2964
2986
  }
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);
2966
- let I = z(Ie(n.mergeTags?.tags ?? []));
2967
- s(nn, I);
2968
- let L = Lr({
2987
+ s(rn, M), s(Wt, j), s(dn, n.mergeTags?.onRequest ?? null), s(qt, n.mergeTags?.autocomplete !== !1), s(Vn, n.mergeTags?.showRawValue !== !1);
2988
+ let I = z(_e(n.mergeTags?.tags ?? []));
2989
+ s(on, I);
2990
+ let L = Br({
2969
2991
  resolvePreview: n.resolvePreview,
2970
2992
  getContent: () => {
2971
2993
  let e = t.content.value;
2972
2994
  if (!t.state.previewMode) return e;
2973
- let r = t.activeLocale?.value ?? e.settings.locale ?? "en", i = de(e, r);
2974
- return n.layout ? J(de(n.layout, r, { missing: "default" }), i) : i;
2995
+ let r = t.activeLocale?.value ?? e.settings.locale ?? "en", i = ye(e, r);
2996
+ return n.layout ? Be(ye(n.layout, r, { missing: "default" }), i) : i;
2975
2997
  },
2976
2998
  isActive: () => t.state.previewMode,
2977
2999
  getLocale: () => t.activeLocale?.value ?? t.content.value.settings.locale
2978
3000
  });
2979
- s(On, L), s(Jt, n.resolvePreview);
3001
+ s(jn, L), s(Zt, n.resolvePreview);
2980
3002
  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({
3003
+ s(mn, R);
3004
+ let B = Vr();
3005
+ s(Xt, B), s($t, z(!1)), s(tn, z(!1)), s(wn, n.logicTags?.tags ?? []), s(Ut, n.logicTags?.pairs ?? []), s(Yt, n.logicTags?.onRequest ?? null), s(en, Hr()), s(ln, n.onRequestMedia ?? null), s(In, n.canDropMedia ?? null), s(Gt, n.resolveImageUrl ? yt(n.resolveImageUrl) : null), s(pn, n.displayConditions?.conditions ?? []), s(Mn, n.displayConditions?.allowCustom ?? !1), s(vn, e.capabilities ?? {}), s(Rn, b);
3006
+ let V = Ur(n.lint) ? null : Gr({
2985
3007
  content: t.content,
2986
3008
  get options() {
2987
- return Fr({
3009
+ return Rr({
2988
3010
  ...n,
2989
3011
  content: t.content.value,
2990
3012
  contentLocale: t.activeLocale?.value ?? void 0
@@ -2996,7 +3018,7 @@ function Yo(e) {
2996
3018
  updateSettings: t.updateSettings,
2997
3019
  removeBlock: t.removeBlock
2998
3020
  });
2999
- s(tn, V);
3021
+ s(an, V);
3000
3022
  function H() {
3001
3023
  v?.(), V?.destroy(), _?.destroy(), p.destroy();
3002
3024
  }
@@ -3026,14 +3048,14 @@ function Yo(e) {
3026
3048
  };
3027
3049
  }
3028
3050
  // src/composables/useSmallScreenNotice.ts
3029
- var Xo = "(max-width: 767px)";
3030
- function Zo(e) {
3031
- let t = Xn(Xo);
3051
+ var $o = "(max-width: 767px)";
3052
+ function es(e) {
3053
+ let t = $n($o);
3032
3054
  return {
3033
3055
  isSmallScreen: t,
3034
3056
  showNotice: N(() => (M(e) ?? !0) && t.value)
3035
3057
  };
3036
3058
  }
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 };
3059
+ export { gi as A, vr as B, Ii as C, ui as D, Di as E, Rr as F, Nr as I, jr as L, mi as M, pi as N, vi as O, Br as P, wr as R, Fi as S, zi as T, ra as _, Po as a, Ui as b, po as c, lo as d, ka as f, la as g, xa as h, Bo as i, hi as j, _i as k, go as l, Ta as m, Qo as n, jo as o, Oa as p, Xo as r, Co as s, es as t, fo as u, ta as v, Ei as w, ji as x, Ki as y, yr as z };
3038
3060
 
3039
- //# sourceMappingURL=composables-Jc3uZuLs.js.map
3061
+ //# sourceMappingURL=composables-nyxwrM27.js.map