@templatical/editor 0.59.0 → 0.59.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) hide show
  1. package/dist/{AiAltTextPopover-CwyKz_9U.js → AiAltTextPopover-BhWHOOKX.js} +3 -3
  2. package/dist/{AiAltTextReview-DNFnR1PN.js → AiAltTextReview-CmW7pLmo.js} +3 -3
  3. package/dist/{AiChatPanel-DWWVvJIP.js → AiChatPanel-CV0mCtad.js} +2 -2
  4. package/dist/{AiPanels-CESbBB63.js → AiPanels-C8M7q_vM.js} +1 -1
  5. package/dist/{AiRewriteMenu-CjXiI-n4.js → AiRewriteMenu-DC2ZLH5L.js} +7 -7
  6. package/dist/{BlockIssueBadge-3k568_Od.js → BlockIssueBadge-B8sl9BM1.js} +2 -2
  7. package/dist/{BlockPreviewCanvas-3FzYSsPm.js → BlockPreviewCanvas-yhOQAQhJ.js} +22 -18
  8. package/dist/{CloudHeaderExtras-xrHubAHL.js → CloudHeaderExtras-DC_oNrxz.js} +1 -1
  9. package/dist/{CloudPanels-CSFN-eLV.js → CloudPanels-CD0lsL0R.js} +2 -2
  10. package/dist/{CollaborationNotices-D9GQ477K.js → CollaborationNotices-DrMrP73M.js} +1 -1
  11. package/dist/{CollaboratorBar-DsRjAaqd.js → CollaboratorBar-TsK872uC.js} +1 -1
  12. package/dist/{CommentsPanel-lb-IFzjl.js → CommentsPanel-BX8JVrXU.js} +1 -1
  13. package/dist/{CommentsSidebar-CVVTCWBH.js → CommentsSidebar-BUlseNwL.js} +2 -2
  14. package/dist/{CountdownBlock-CSEq79Nc.js → CountdownBlock-AYPypmcX.js} +2 -2
  15. package/dist/{CountdownToolbar-BV9yQi9k.js → CountdownToolbar-dx3FVRjh.js} +5 -5
  16. package/dist/{IssuesPanel-pxcWAQJM.js → IssuesPanel-BwnvXxBC.js} +5 -5
  17. package/dist/{LanguageMenu-CEKRbNhA.js → LanguageMenu-Cf5bKocE.js} +5 -5
  18. package/dist/{LocaleNotices-j4aMFfmc.js → LocaleNotices-CGEp0pQ8.js} +2 -2
  19. package/dist/{LogicTagInsertButton-BDIsyl3C.js → LogicTagInsertButton-BdDe-vrZ.js} +8 -8
  20. package/dist/{MergeTagInput-De1yWoc2.js → MergeTagInput-CTTi-eB0.js} +1 -1
  21. package/dist/{MergeTagModeToggle-CL96pI1E.js → MergeTagModeToggle-Bd0svGQm.js} +3 -3
  22. package/dist/{MergeTagTextarea-DDyV8U44.js → MergeTagTextarea-DiahMV-3.js} +4 -4
  23. package/dist/{ParagraphEditor-Vz90-hhN.js → ParagraphEditor-Db1cmj8Y.js} +11 -11
  24. package/dist/{RestoreVersionDialog-BgrtpVl1.js → RestoreVersionDialog-DA1Z0q9Z.js} +2 -2
  25. package/dist/{RichTextEditorContent-C2Yj1-ZA.js → RichTextEditorContent-CyO6e4ZG.js} +6 -6
  26. package/dist/{SaveBlockDialog-DRvLFKWJ.js → SaveBlockDialog-D7SaFxa_.js} +6 -6
  27. package/dist/{SavedBlocksBrowserModal-Dw0uF-NT.js → SavedBlocksBrowserModal-B5r3LWWG.js} +6 -6
  28. package/dist/{SavedBlocksPanels-BReNi8sg.js → SavedBlocksPanels-BH2f7jm-.js} +1 -1
  29. package/dist/{SavedBlocksPickBar-BQX4g7OE.js → SavedBlocksPickBar-B24TScw0.js} +2 -2
  30. package/dist/{TemplateSettings-CBCaybvd.js → TemplateSettings-CuN9Vkl_.js} +8 -8
  31. package/dist/{TestEmailModal-BiCUiRFo.js → TestEmailModal-C4DAaohi.js} +12 -9
  32. package/dist/{TestEmailPanel-Bfr-sGrI.js → TestEmailPanel-DoMcVJSE.js} +1 -1
  33. package/dist/{TitleEditor-B8thQPgg.js → TitleEditor-b5Pr_m9j.js} +8 -8
  34. package/dist/{Toolbar-FIYSw3Us.js → Toolbar-BOf7Y862.js} +14 -14
  35. package/dist/{TplModal-BIqO0owX.js → TplModal-DAcXzBJh.js} +4 -4
  36. package/dist/{VersionHistoryMenu-6jMve6By.js → VersionHistoryMenu-TbIGteNi.js} +2 -2
  37. package/dist/{VersionHistoryPanels-C91mfsMA.js → VersionHistoryPanels-Ia6ipOqG.js} +1 -1
  38. package/dist/{VersionPreviewBanner-Bq8z1SUc.js → VersionPreviewBanner-CRfu6quf.js} +1 -1
  39. package/dist/{WrapperBlock-BAqgP8hm.js → WrapperBlock-BZenrXM6.js} +4 -4
  40. package/dist/{blockTypeIcons-VX_8UQ21.js → blockTypeIcons-DdYZy8yG.js} +1 -1
  41. package/dist/bundle-stats.json +6 -6
  42. package/dist/cdn/chunks/{AiAltTextPopover-Dj-VLU88.js → AiAltTextPopover-CcX_OMUU.js} +4 -4
  43. package/dist/cdn/chunks/{AiAltTextPopover-Dj-VLU88.js.map → AiAltTextPopover-CcX_OMUU.js.map} +1 -1
  44. package/dist/cdn/chunks/{AiAltTextReview-tVkJPOk6.js → AiAltTextReview-Dmm3h0jd.js} +4 -4
  45. package/dist/cdn/chunks/{AiAltTextReview-tVkJPOk6.js.map → AiAltTextReview-Dmm3h0jd.js.map} +1 -1
  46. package/dist/cdn/chunks/{AiChatPanel-CYPvHQGQ.js → AiChatPanel-DV23DJ-2.js} +3 -3
  47. package/dist/cdn/chunks/{AiChatPanel-CYPvHQGQ.js.map → AiChatPanel-DV23DJ-2.js.map} +1 -1
  48. package/dist/cdn/chunks/{AiPanels-ChTLCmMS.js → AiPanels-CxhOpMAp.js} +2 -2
  49. package/dist/cdn/chunks/{AiPanels-ChTLCmMS.js.map → AiPanels-CxhOpMAp.js.map} +1 -1
  50. package/dist/cdn/chunks/{AiRewriteMenu-99qbfCZI.js → AiRewriteMenu-87-O514r.js} +8 -8
  51. package/dist/cdn/chunks/{AiRewriteMenu-99qbfCZI.js.map → AiRewriteMenu-87-O514r.js.map} +1 -1
  52. package/dist/cdn/chunks/{BlockIssueBadge-BKO4Mr8f.js → BlockIssueBadge-Dp06vQd3.js} +3 -3
  53. package/dist/cdn/chunks/{BlockIssueBadge-BKO4Mr8f.js.map → BlockIssueBadge-Dp06vQd3.js.map} +1 -1
  54. package/dist/cdn/chunks/{BlockPreviewCanvas-BF0yCTKP.js → BlockPreviewCanvas-DQGzUvZ5.js} +23 -19
  55. package/dist/cdn/chunks/BlockPreviewCanvas-DQGzUvZ5.js.map +1 -0
  56. package/dist/cdn/chunks/{CloudHeaderExtras-O_K3jmgO.js → CloudHeaderExtras-Cd-ePldd.js} +2 -2
  57. package/dist/cdn/chunks/{CloudHeaderExtras-O_K3jmgO.js.map → CloudHeaderExtras-Cd-ePldd.js.map} +1 -1
  58. package/dist/cdn/chunks/{CloudPanels-gV2WFHQk.js → CloudPanels-D8fchoYt.js} +3 -3
  59. package/dist/cdn/chunks/{CloudPanels-gV2WFHQk.js.map → CloudPanels-D8fchoYt.js.map} +1 -1
  60. package/dist/cdn/chunks/{CollaborationNotices-CwAoa-73.js → CollaborationNotices-DNEs3g9B.js} +2 -2
  61. package/dist/cdn/chunks/{CollaborationNotices-CwAoa-73.js.map → CollaborationNotices-DNEs3g9B.js.map} +1 -1
  62. package/dist/cdn/chunks/{CollaboratorBar-DdQQwtwd.js → CollaboratorBar-CN6XAlbn.js} +2 -2
  63. package/dist/cdn/chunks/{CollaboratorBar-DdQQwtwd.js.map → CollaboratorBar-CN6XAlbn.js.map} +1 -1
  64. package/dist/cdn/chunks/{CommentsPanel-C8AKtxiG.js → CommentsPanel-CxZ1kFcK.js} +2 -2
  65. package/dist/cdn/chunks/{CommentsPanel-C8AKtxiG.js.map → CommentsPanel-CxZ1kFcK.js.map} +1 -1
  66. package/dist/cdn/chunks/{CommentsSidebar-FxY0RHSq.js → CommentsSidebar-DCr2mV8b.js} +3 -3
  67. package/dist/cdn/chunks/{CommentsSidebar-FxY0RHSq.js.map → CommentsSidebar-DCr2mV8b.js.map} +1 -1
  68. package/dist/cdn/chunks/{CountdownBlock-DGgnPUlu.js → CountdownBlock--hlKE2aj.js} +3 -3
  69. package/dist/cdn/chunks/{CountdownBlock-DGgnPUlu.js.map → CountdownBlock--hlKE2aj.js.map} +1 -1
  70. package/dist/cdn/chunks/{CountdownToolbar-9PtYUgCW.js → CountdownToolbar-CUTbVPPV.js} +6 -6
  71. package/dist/cdn/chunks/{CountdownToolbar-9PtYUgCW.js.map → CountdownToolbar-CUTbVPPV.js.map} +1 -1
  72. package/dist/cdn/chunks/{IssuesPanel-Co-ffgWa.js → IssuesPanel-BhcSzwuL.js} +7 -7
  73. package/dist/cdn/chunks/{IssuesPanel-Co-ffgWa.js.map → IssuesPanel-BhcSzwuL.js.map} +1 -1
  74. package/dist/cdn/chunks/{LanguageMenu-fL4DRGGQ.js → LanguageMenu-6wGhkyFT.js} +99 -99
  75. package/dist/cdn/chunks/{LanguageMenu-fL4DRGGQ.js.map → LanguageMenu-6wGhkyFT.js.map} +1 -1
  76. package/dist/cdn/chunks/{LocaleNotices-BVDJ7kyj.js → LocaleNotices-Br92Xueo.js} +3 -3
  77. package/dist/cdn/chunks/{LocaleNotices-BVDJ7kyj.js.map → LocaleNotices-Br92Xueo.js.map} +1 -1
  78. package/dist/cdn/chunks/{LogicTagInsertButton-DPYA8LJW.js → LogicTagInsertButton-r2EVUtDU.js} +9 -9
  79. package/dist/cdn/chunks/{LogicTagInsertButton-DPYA8LJW.js.map → LogicTagInsertButton-r2EVUtDU.js.map} +1 -1
  80. package/dist/cdn/chunks/{MergeTagInput-Cxfjq3tx.js → MergeTagInput-Dh3N6CEV.js} +2 -2
  81. package/dist/cdn/chunks/{MergeTagInput-Cxfjq3tx.js.map → MergeTagInput-Dh3N6CEV.js.map} +1 -1
  82. package/dist/cdn/chunks/{MergeTagModeToggle-BmNGV3yc.js → MergeTagModeToggle-D6u3hMrI.js} +4 -4
  83. package/dist/cdn/chunks/{MergeTagModeToggle-BmNGV3yc.js.map → MergeTagModeToggle-D6u3hMrI.js.map} +1 -1
  84. package/dist/cdn/chunks/{MergeTagTextarea-DmwrPAss.js → MergeTagTextarea-BpVtpiNL.js} +8 -8
  85. package/dist/cdn/chunks/{MergeTagTextarea-DmwrPAss.js.map → MergeTagTextarea-BpVtpiNL.js.map} +1 -1
  86. package/dist/cdn/chunks/{ParagraphEditor-A_OEuQ1Q.js → ParagraphEditor-DGJmPAC1.js} +12 -12
  87. package/dist/cdn/chunks/{ParagraphEditor-A_OEuQ1Q.js.map → ParagraphEditor-DGJmPAC1.js.map} +1 -1
  88. package/dist/cdn/chunks/{RestoreVersionDialog-Ca_lUsk4.js → RestoreVersionDialog-D5qeCa0F.js} +3 -3
  89. package/dist/cdn/chunks/{RestoreVersionDialog-Ca_lUsk4.js.map → RestoreVersionDialog-D5qeCa0F.js.map} +1 -1
  90. package/dist/cdn/chunks/{RichTextEditorContent-Dq4TROOg.js → RichTextEditorContent-DyGiXKKI.js} +7 -7
  91. package/dist/cdn/chunks/{RichTextEditorContent-Dq4TROOg.js.map → RichTextEditorContent-DyGiXKKI.js.map} +1 -1
  92. package/dist/cdn/chunks/{SaveBlockDialog-BXRCqrZX.js → SaveBlockDialog-B0TJYxd8.js} +7 -7
  93. package/dist/cdn/chunks/{SaveBlockDialog-BXRCqrZX.js.map → SaveBlockDialog-B0TJYxd8.js.map} +1 -1
  94. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DdaBcSOI.js → SavedBlocksBrowserModal-D8Ly7LrA.js} +6 -6
  95. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DdaBcSOI.js.map → SavedBlocksBrowserModal-D8Ly7LrA.js.map} +1 -1
  96. package/dist/cdn/chunks/{SavedBlocksPanels-BcVFZDKI.js → SavedBlocksPanels-Co1cbWR8.js} +2 -2
  97. package/dist/cdn/chunks/{SavedBlocksPanels-BcVFZDKI.js.map → SavedBlocksPanels-Co1cbWR8.js.map} +1 -1
  98. package/dist/cdn/chunks/{SavedBlocksPickBar-o66PhlTo.js → SavedBlocksPickBar-DNtVbpm-.js} +3 -3
  99. package/dist/cdn/chunks/{SavedBlocksPickBar-o66PhlTo.js.map → SavedBlocksPickBar-DNtVbpm-.js.map} +1 -1
  100. package/dist/cdn/chunks/{TemplateSettings-uoiUkd2l.js → TemplateSettings-BRc878ZF.js} +9 -9
  101. package/dist/cdn/chunks/{TemplateSettings-uoiUkd2l.js.map → TemplateSettings-BRc878ZF.js.map} +1 -1
  102. package/dist/cdn/chunks/{TestEmailModal-WOC7bmF_.js → TestEmailModal-CIui7VfS.js} +13 -10
  103. package/dist/cdn/chunks/TestEmailModal-CIui7VfS.js.map +1 -0
  104. package/dist/cdn/chunks/{TestEmailPanel-DUWH9xsZ.js → TestEmailPanel-vKvruW_r.js} +2 -2
  105. package/dist/cdn/chunks/{TestEmailPanel-DUWH9xsZ.js.map → TestEmailPanel-vKvruW_r.js.map} +1 -1
  106. package/dist/cdn/chunks/{TitleEditor-EHW0lgG4.js → TitleEditor-BI-9Nnj3.js} +8 -8
  107. package/dist/cdn/chunks/{TitleEditor-EHW0lgG4.js.map → TitleEditor-BI-9Nnj3.js.map} +1 -1
  108. package/dist/cdn/chunks/{Toolbar-BzAuH2G4.js → Toolbar-CYnnArxv.js} +418 -418
  109. package/dist/cdn/chunks/{Toolbar-BzAuH2G4.js.map → Toolbar-CYnnArxv.js.map} +1 -1
  110. package/dist/cdn/chunks/{TplModal-B9DVglkN.js → TplModal-B3nZeGWK.js} +5 -5
  111. package/dist/cdn/chunks/{TplModal-B9DVglkN.js.map → TplModal-B3nZeGWK.js.map} +1 -1
  112. package/dist/cdn/chunks/{VersionHistoryMenu-DDqYMqC2.js → VersionHistoryMenu-CMGfAKuV.js} +3 -3
  113. package/dist/cdn/chunks/{VersionHistoryMenu-DDqYMqC2.js.map → VersionHistoryMenu-CMGfAKuV.js.map} +1 -1
  114. package/dist/cdn/chunks/{VersionHistoryPanels-DO-kcL28.js → VersionHistoryPanels-Bb2ouQg7.js} +2 -2
  115. package/dist/cdn/chunks/{VersionHistoryPanels-DO-kcL28.js.map → VersionHistoryPanels-Bb2ouQg7.js.map} +1 -1
  116. package/dist/cdn/chunks/{VersionPreviewBanner-CYT5QUoc.js → VersionPreviewBanner-573UP-g4.js} +2 -2
  117. package/dist/cdn/chunks/{VersionPreviewBanner-CYT5QUoc.js.map → VersionPreviewBanner-573UP-g4.js.map} +1 -1
  118. package/dist/cdn/chunks/{WrapperBlock-CyD_pW18.js → WrapperBlock-DVu632LD.js} +5 -5
  119. package/dist/cdn/chunks/{WrapperBlock-CyD_pW18.js.map → WrapperBlock-DVu632LD.js.map} +1 -1
  120. package/dist/cdn/chunks/{composables-CN9j_FH4.js → composables-DY3anqHO.js} +574 -571
  121. package/dist/cdn/chunks/composables-DY3anqHO.js.map +1 -0
  122. package/dist/cdn/chunks/{createCloudRuntime-D8zeR9D2.js → createCloudRuntime-B5numxlW.js} +4 -4
  123. package/dist/cdn/chunks/{createCloudRuntime-D8zeR9D2.js.map → createCloudRuntime-B5numxlW.js.map} +1 -1
  124. package/dist/cdn/chunks/{extensions-BYJPv1sA.js → extensions-BWVlr8Ga.js} +5 -5
  125. package/dist/cdn/chunks/{extensions-BYJPv1sA.js.map → extensions-BWVlr8Ga.js.map} +1 -1
  126. package/dist/cdn/chunks/keys-ywH4jHJ2.js +11 -0
  127. package/dist/cdn/chunks/keys-ywH4jHJ2.js.map +1 -0
  128. package/dist/cdn/chunks/{normalizeMergeTagMarkup-nDyYIXvL.js → normalizeMergeTagMarkup-Dw3rFvyd.js} +40 -40
  129. package/dist/cdn/chunks/{normalizeMergeTagMarkup-nDyYIXvL.js.map → normalizeMergeTagMarkup-Dw3rFvyd.js.map} +1 -1
  130. package/dist/cdn/chunks/{preRenderCustomBlocks-CxwYcAQe.js → preRenderCustomBlocks-BGtb8Xbp.js} +4 -4
  131. package/dist/cdn/chunks/{preRenderCustomBlocks-CxwYcAQe.js.map → preRenderCustomBlocks-BGtb8Xbp.js.map} +1 -1
  132. package/dist/cdn/chunks/{sanitizeHtml-5T_KaDcp.js → sanitizeHtml-CLRY8s2s.js} +2 -2
  133. package/dist/cdn/chunks/{sanitizeHtml-5T_KaDcp.js.map → sanitizeHtml-CLRY8s2s.js.map} +1 -1
  134. package/dist/cdn/chunks/{socialIcons-bvQ57o1m.js → socialIcons-kYhdXJ9P.js} +255 -255
  135. package/dist/cdn/chunks/{socialIcons-bvQ57o1m.js.map → socialIcons-kYhdXJ9P.js.map} +1 -1
  136. package/dist/cdn/chunks/{src-BXrhjqCv.js → src-B7X7x_ST.js} +154 -154
  137. package/dist/cdn/chunks/{src-BXrhjqCv.js.map → src-B7X7x_ST.js.map} +1 -1
  138. package/dist/cdn/chunks/{src-BRyzUujm.js → src-BmzzkUf7.js} +539 -539
  139. package/dist/cdn/chunks/{src-BRyzUujm.js.map → src-BmzzkUf7.js.map} +1 -1
  140. package/dist/cdn/chunks/{src-CVHGPKSW.js → src-DY2kMjoD.js} +593 -589
  141. package/dist/cdn/chunks/src-DY2kMjoD.js.map +1 -0
  142. package/dist/cdn/chunks/{useCloudI18n-CWgySYuJ.js → useCloudI18n-BTV9uu3c.js} +2 -2
  143. package/dist/cdn/chunks/{useCloudI18n-CWgySYuJ.js.map → useCloudI18n-BTV9uu3c.js.map} +1 -1
  144. package/dist/cdn/chunks/{useEditorRoot-BA4vV7sK.js → useEditorRoot-D0Lp2x4_.js} +2 -2
  145. package/dist/cdn/chunks/{useEditorRoot-BA4vV7sK.js.map → useEditorRoot-D0Lp2x4_.js.map} +1 -1
  146. package/dist/cdn/chunks/{useI18n-JsIdvX-i.js → useI18n-DPg6rPbu.js} +2 -2
  147. package/dist/cdn/chunks/{useI18n-JsIdvX-i.js.map → useI18n-DPg6rPbu.js.map} +1 -1
  148. package/dist/cdn/chunks/useLocalizedDisplay-B5wMJLru.js +33 -0
  149. package/dist/cdn/chunks/{useLocalizedDisplay-7iwZ1UhB.js.map → useLocalizedDisplay-B5wMJLru.js.map} +1 -1
  150. package/dist/cdn/chunks/{useLogicTag-C10Wef7d.js → useLogicTag-0wkSxy3z.js} +3 -3
  151. package/dist/cdn/chunks/{useLogicTag-C10Wef7d.js.map → useLogicTag-0wkSxy3z.js.map} +1 -1
  152. package/dist/cdn/chunks/{useMergeTag-Dd26TcvH.js → useMergeTag-y3bX8M_6.js} +3 -3
  153. package/dist/cdn/chunks/{useMergeTag-Dd26TcvH.js.map → useMergeTag-y3bX8M_6.js.map} +1 -1
  154. package/dist/cdn/chunks/{usePopoverPosition-DWRQRT2P.js → usePopoverPosition-CBp9uwjV.js} +2 -2
  155. package/dist/cdn/chunks/{usePopoverPosition-DWRQRT2P.js.map → usePopoverPosition-CBp9uwjV.js.map} +1 -1
  156. package/dist/cdn/chunks/{useScrollToBlock-CArjwH-u.js → useScrollToBlock-32EnuMwu.js} +2 -2
  157. package/dist/cdn/chunks/{useScrollToBlock-CArjwH-u.js.map → useScrollToBlock-32EnuMwu.js.map} +1 -1
  158. package/dist/cdn/chunks/{withCurrentFont-BaeBoPQZ.js → withCurrentFont-B42BKo9N.js} +2 -2
  159. package/dist/cdn/chunks/{withCurrentFont-BaeBoPQZ.js.map → withCurrentFont-B42BKo9N.js.map} +1 -1
  160. package/dist/cdn/editor.css +1 -1
  161. package/dist/cdn/editor.js +600 -600
  162. package/dist/cdn/editor.js.map +1 -1
  163. package/dist/{composables-DbqKYIRE.js → composables-CFTH0Nqb.js} +867 -864
  164. package/dist/{createCloudRuntime-DiUnYjKr.js → createCloudRuntime-BvWlm_38.js} +3 -3
  165. package/dist/{dist-BTjObRcv.js → dist-CMo4K5So.js} +277 -273
  166. package/dist/{extensions-CAuXwpbI.js → extensions-BPVackEE.js} +4 -4
  167. package/dist/index.d.ts +29 -7
  168. package/dist/keys-B4DimcgX.js +9 -0
  169. package/dist/{normalizeMergeTagMarkup-fgoVMKAc.js → normalizeMergeTagMarkup-PQqrbfmt.js} +1 -1
  170. package/dist/{preRenderCustomBlocks-CgPtlLGL.js → preRenderCustomBlocks-Dg5GBNi2.js} +1 -1
  171. package/dist/{sanitizeHtml-D2wueiEe.js → sanitizeHtml-DVdfdxOz.js} +1 -1
  172. package/dist/{socialIcons-RKdTgJip.js → socialIcons-DBHv_ntg.js} +4 -4
  173. package/dist/style.css +1 -1
  174. package/dist/templatical-editor.js +563 -563
  175. package/dist/{useCloudI18n-nMZ9f_4b.js → useCloudI18n-BnuOL1YS.js} +1 -1
  176. package/dist/{useEditorRoot-DpssP9rX.js → useEditorRoot-DWfC2CVC.js} +1 -1
  177. package/dist/{useI18n-C2p-qHeb.js → useI18n-Cx9W7OWb.js} +1 -1
  178. package/dist/{useLocalizedDisplay-9RqT2y_Y.js → useLocalizedDisplay-CbFM0cCV.js} +1 -1
  179. package/dist/{useLogicTag-59fmujI7.js → useLogicTag-CVOj0VUv.js} +2 -2
  180. package/dist/{useMergeTag-M1vauWet.js → useMergeTag-Bams_kam.js} +2 -2
  181. package/dist/{usePopoverPosition-L9MOHBM-.js → usePopoverPosition-DF0ZYH7g.js} +1 -1
  182. package/dist/{useScrollToBlock-BMF0Dt5l.js → useScrollToBlock-CwUQ_nKz.js} +1 -1
  183. package/dist/{withCurrentFont-BXZ7g-K6.js → withCurrentFont-y0O5kOLW.js} +1 -1
  184. package/package.json +7 -7
  185. package/dist/cdn/chunks/BlockPreviewCanvas-BF0yCTKP.js.map +0 -1
  186. package/dist/cdn/chunks/TestEmailModal-WOC7bmF_.js.map +0 -1
  187. package/dist/cdn/chunks/composables-CN9j_FH4.js.map +0 -1
  188. package/dist/cdn/chunks/keys-DNv3xXxI.js +0 -11
  189. package/dist/cdn/chunks/keys-DNv3xXxI.js.map +0 -1
  190. package/dist/cdn/chunks/src-CVHGPKSW.js.map +0 -1
  191. package/dist/cdn/chunks/useLocalizedDisplay-7iwZ1UhB.js +0 -33
  192. package/dist/keys-BeQy64On.js +0 -9
@@ -1,32 +1,32 @@
1
1
  import { a as e, c as t, i as n, l as r } from "./dist-zu1jwYIS.js";
2
2
  import { A as i, B as a, C as o, E as s, F as c, G as l, H as u, I as d, K as f, L as p, M as m, N as h, O as g, P as _, Q as v, R as y, S as b, W as x, X as S, Y as C, _ as w, b as T, c as E, ct as D, dt as O, f as ee, g as k, h as A, j, l as M, m as N, mt as P, ot as F, p as I, pt as L, rt as R, s as z, st as B, t as V, tt as H, u as U, x as W } from "./draggable-IRVFEZ-b.js";
3
- import { t as te } from "./useEditorRoot-BA4vV7sK.js";
4
- import { t as G } from "./useI18n-JsIdvX-i.js";
5
- import "./useCloudI18n-CWgySYuJ.js";
6
- import { t as K } from "./useMergeTag-Dd26TcvH.js";
7
- import { _ as ne, h as q, v as J, y as re } from "./dist-BtWMy7UQ.js";
8
- import { $ as ie, $t as ae, A as Y, B as X, C as Z, Cn as Q, D as oe, E as se, G as ce, H as le, I as ue, K as de, L as fe, M as pe, N as me, O as he, P as ge, Q as _e, Qt as ve, R as ye, S as be, Sn as xe, T as Se, Tn as Ce, W as we, X as Te, Y as Ee, Z as De, a as Oe, at as ke, b as Ae, bn as je, cn as Me, ct as Ne, d as Pe, dn as Fe, dt as Ie, et as Le, gn as Re, hn as ze, ht as Be, i as Ve, in as He, it as Ue, j as We, jt as Ge, ln as Ke, lt as qe, mt as Je, nt as Ye, p as Xe, pt as Ze, q as Qe, qt as $e, rt as et, sn as tt, st as nt, t as rt, tt as it, u as at, vt as ot, w as st, wn as ct, x as lt, xn as ut, y as dt, yn as ft } from "./src-CVHGPKSW.js";
3
+ import { t as te } from "./useEditorRoot-D0Lp2x4_.js";
4
+ import { t as G } from "./useI18n-DPg6rPbu.js";
5
+ import "./useCloudI18n-BTV9uu3c.js";
6
+ import { t as K } from "./useMergeTag-y3bX8M_6.js";
7
+ import { _ as ne, h as q, v as re, y as ie } from "./dist-BtWMy7UQ.js";
8
+ import { $ as ae, $t as oe, A as J, B as Y, C as X, Cn as Z, D as se, E as ce, En as le, G as ue, H as Q, I as de, Jt as fe, K as pe, L as me, M as he, Mt as ge, N as _e, O as ve, P as ye, Q as be, R as xe, S as Se, Sn as Ce, T as we, Tn as Te, W as Ee, X as De, Y as Oe, Z as ke, _n as Ae, a as je, an as Me, at as Ne, b as Pe, bn as Fe, cn as Ie, ct as Le, d as Re, en as ze, et as Be, fn as Ve, ft as He, gn as Ue, gt as We, ht as Ge, i as Ke, it as qe, j as Je, ln as Ye, lt as Xe, mt as Ze, nt as Qe, ot as $e, p as et, q as tt, rt as nt, t as rt, tt as it, u as at, un as ot, ut as st, w as ct, wn as lt, x as ut, xn as dt, y as ft, yt as pt } from "./src-DY2kMjoD.js";
9
9
  import { t as $ } from "./logger-CqQTfJGx.js";
10
- import { a as pt, c as mt, i as ht, n as gt, o as _t, t as vt } from "./usePopoverPosition-DWRQRT2P.js";
11
- import { n as yt } from "./useLocalizedDisplay-7iwZ1UhB.js";
12
- import { $ as bt, A as xt, B as St, C as Ct, D as wt, F as Tt, G as Et, H as Dt, I as Ot, J as kt, K as At, L as jt, M as Mt, N as Nt, O as Pt, P as Ft, R as It, S as Lt, T as Rt, U as zt, V as Bt, W as Vt, X as Ht, Y as Ut, Z as Wt, _ as Gt, a as Kt, at as qt, b as Jt, c as Yt, ct as Xt, d as Zt, g as Qt, h as $t, i as en, it as tn, j as nn, k as rn, l as an, lt as on, m as sn, nt as cn, ot as ln, p as un, q as dn, r as fn, rt as pn, s as mn, st as hn, tt as gn, u as _n, v as vn, w as yn, x as bn, y as xn, z as Sn } from "./keys-DNv3xXxI.js";
13
- import { t as Cn } from "./useLogicTag-C10Wef7d.js";
14
- import { B as wn, C as Tn, F as En, I as Dn, P as On, R as kn, T as An, _ as jn, a as Mn, f as Nn, h as Pn, n as Fn, o as In, t as Ln, u as Rn, v as zn, w as Bn, x as Vn, y as Hn, z as Un } from "./socialIcons-bvQ57o1m.js";
15
- import { r as Wn, t as Gn } from "./templateSettingsFields-cjlP-jdw.js";
16
- import { r as Kn, t as qn } from "./sanitizeHtml-5T_KaDcp.js";
17
- import { At as Jn, G as Yn, Mt as Xn, Nt as Zn, Ot as Qn, St as $n, Ut as er, V as tr, Wt as nr, X as rr, _t as ir, d as ar, f as or, k as sr, mt as cr, nt as lr, o as ur, y as dr, yt as fr } from "./icons-C7vjUBLn.js";
18
- import { t as pr } from "./LoadingTrack-o-89hApJ.js";
19
- import { t as mr } from "./languageName-DEEOhDWI.js";
20
- import { t as hr } from "./plural-CyxrJXL1.js";
21
- import { m as gr, w as _r, x as vr } from "./styleConstants-Br6CIRoS.js";
22
- import { t as yr } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
23
- import { t as br } from "./readableTextColor-BfZUGnVj.js";
10
+ import { a as mt, c as ht, i as gt, n as _t, o as vt, t as yt } from "./usePopoverPosition-CBp9uwjV.js";
11
+ import { n as bt } from "./useLocalizedDisplay-B5wMJLru.js";
12
+ import { $ as xt, A as St, B as Ct, C as wt, D as Tt, F as Et, G as Dt, H as Ot, I as kt, J as At, K as jt, L as Mt, M as Nt, N as Pt, O as Ft, P as It, R as Lt, S as Rt, T as zt, U as Bt, V as Vt, W as Ht, X as Ut, Y as Wt, Z as Gt, _ as Kt, a as qt, at as Jt, b as Yt, c as Xt, ct as Zt, d as Qt, et as $t, g as en, h as tn, i as nn, it as rn, j as an, k as on, l as sn, lt as cn, m as ln, nt as un, ot as dn, p as fn, q as pn, r as mn, rt as hn, s as gn, st as _n, u as vn, ut as yn, v as bn, w as xn, x as Sn, y as Cn, z as wn } from "./keys-ywH4jHJ2.js";
13
+ import { t as Tn } from "./useLogicTag-0wkSxy3z.js";
14
+ import { B as En, C as Dn, F as On, I as kn, P as An, R as jn, T as Mn, _ as Nn, a as Pn, f as Fn, h as In, n as Ln, o as Rn, t as zn, u as Bn, v as Vn, w as Hn, x as Un, y as Wn, z as Gn } from "./socialIcons-kYhdXJ9P.js";
15
+ import { r as Kn, t as qn } from "./templateSettingsFields-cjlP-jdw.js";
16
+ import { r as Jn, t as Yn } from "./sanitizeHtml-CLRY8s2s.js";
17
+ import { At as Xn, G as Zn, Mt as Qn, Nt as $n, Ot as er, St as tr, Ut as nr, V as rr, Wt as ir, X as ar, _t as or, d as sr, f as cr, k as lr, mt as ur, nt as dr, o as fr, y as pr, yt as mr } from "./icons-C7vjUBLn.js";
18
+ import { t as hr } from "./LoadingTrack-o-89hApJ.js";
19
+ import { t as gr } from "./languageName-DEEOhDWI.js";
20
+ import { t as _r } from "./plural-CyxrJXL1.js";
21
+ import { m as vr, w as yr, x as br } from "./styleConstants-Br6CIRoS.js";
22
+ import { t as xr } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
23
+ import { t as Sr } from "./readableTextColor-BfZUGnVj.js";
24
24
  // src/composables/useFocusTrap.ts
25
- var xr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
26
- function Sr(t, n) {
25
+ var Cr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
26
+ function wr(t, n) {
27
27
  let r = te(), i = null, a = null, o = null;
28
28
  function s() {
29
- return t.value ? Array.from(t.value.querySelectorAll(xr)).filter((e) => e.offsetParent !== null) : [];
29
+ return t.value ? Array.from(t.value.querySelectorAll(Cr)).filter((e) => e.offsetParent !== null) : [];
30
30
  }
31
31
  function c(e) {
32
32
  if (e.key !== "Tab") return;
@@ -55,8 +55,8 @@ function Sr(t, n) {
55
55
  });
56
56
  }
57
57
  // src/composables/useEmoji.ts
58
- function Cr() {
59
- let [e, t] = J(!1), n = R([]), r = !1;
58
+ function Tr() {
59
+ let [e, t] = re(!1), n = R([]), r = !1;
60
60
  v(() => {
61
61
  r = !0;
62
62
  }), u(e, async (e) => {
@@ -80,7 +80,7 @@ function Cr() {
80
80
  };
81
81
  }
82
82
  // src/composables/useBlockRegistry.ts
83
- function wr() {
83
+ function Er() {
84
84
  let e = R(/* @__PURE__ */ new Map());
85
85
  function t(t, n) {
86
86
  e.value.set(t, n), B(e);
@@ -89,7 +89,7 @@ function wr() {
89
89
  let r = `custom:${t.type}`;
90
90
  e.value.set(r, {
91
91
  component: n,
92
- createBlock: () => be(t),
92
+ createBlock: () => Se(t),
93
93
  definition: t
94
94
  }), B(e);
95
95
  }
@@ -114,7 +114,7 @@ function wr() {
114
114
  let t = a(e.customType);
115
115
  if (!t) return o("Block definition not found");
116
116
  try {
117
- return await fe(await import("./liquid.browser-rubac0VA.js")).parseAndRender(t.template, e.fieldValues);
117
+ return await me(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 wr() {
133
133
  };
134
134
  }
135
135
  // src/composables/useFonts.ts
136
- var Tr = [
136
+ var Dr = [
137
137
  {
138
138
  value: "Arial",
139
139
  label: "Arial"
@@ -162,19 +162,19 @@ var Tr = [
162
162
  value: "Courier New",
163
163
  label: "Courier New"
164
164
  }
165
- ], Er = "Arial, sans-serif";
166
- function Dr(e) {
167
- if (e === void 0 || e === !0) return [...Tr];
165
+ ], Or = "Arial, sans-serif";
166
+ function kr(e) {
167
+ if (e === void 0 || e === !0) return [...Dr];
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 = Tr.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: ${Tr.map((e) => e.value).join(", ")}.`));
171
+ let e = i.toLowerCase(), a = Dr.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: ${Dr.map((e) => e.value).join(", ")}.`));
173
173
  }
174
174
  return t;
175
175
  }
176
- function Or(e) {
177
- let t = H(e?.customFonts ?? []), n = H(!1), r = Dr(e?.builtIns), i = I(() => e?.defaultFallback ?? Er), a = I(() => {
176
+ function Ar(e) {
177
+ let t = H(e?.customFonts ?? []), n = H(!1), r = kr(e?.builtIns), i = I(() => e?.defaultFallback ?? Or), a = I(() => {
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 Or(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 ?? Er.split(",")[0].trim();
188
+ let s = e?.defaultFont ?? Or.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 Er;
195
+ return Or;
196
196
  }
197
197
  let l = I(() => c());
198
198
  function u(e) {
199
- return Ve(e, {
199
+ return Ke(e, {
200
200
  customFonts: t.value,
201
201
  defaultFallback: i.value
202
202
  });
@@ -239,7 +239,7 @@ function Or(e) {
239
239
  };
240
240
  }
241
241
  // src/composables/useThemeStyles.ts
242
- var kr = {
242
+ var jr = {
243
243
  bg: "--tpl-bg",
244
244
  bgElevated: "--tpl-bg-elevated",
245
245
  bgHover: "--tpl-bg-hover",
@@ -263,10 +263,10 @@ var kr = {
263
263
  dangerLight: "--tpl-danger-light",
264
264
  canvasBg: "--tpl-canvas-bg"
265
265
  };
266
- function Ar({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
266
+ function Mr({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
267
267
  return { themeStyles: I(() => {
268
268
  let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
269
- if (a) for (let [e, t] of Object.entries(kr)) {
269
+ if (a) for (let [e, t] of Object.entries(jr)) {
270
270
  let n = a[e];
271
271
  n && (r[t] = n);
272
272
  }
@@ -274,12 +274,12 @@ function Ar({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
274
274
  }) };
275
275
  }
276
276
  // src/utils/mergeTagNodeSpec.ts
277
- function jr(e, t, n) {
278
- return De(e, n) ? {
277
+ function Nr(e, t, n) {
278
+ return ke(e, n) ? {
279
279
  type: "logicMergeTagNode",
280
280
  attrs: {
281
281
  value: e,
282
- keyword: ce(e, n)
282
+ keyword: ue(e, n)
283
283
  }
284
284
  } : {
285
285
  type: "mergeTagNode",
@@ -290,32 +290,32 @@ function jr(e, t, n) {
290
290
  };
291
291
  }
292
292
  // src/utils/insertLogicTag.ts
293
- function Mr(e) {
293
+ function Pr(e) {
294
294
  return "before" in e && "after" in e;
295
295
  }
296
- function Nr(e, t, n) {
297
- if (!Mr(t)) {
298
- e.chain().focus().insertContent(jr(t.value, t.label, n)).run();
296
+ function Fr(e, t, n) {
297
+ if (!Pr(t)) {
298
+ e.chain().focus().insertContent(Nr(t.value, t.label, n)).run();
299
299
  return;
300
300
  }
301
- let r = jr(t.before, t.label, n), i = jr(t.after, t.label, n), { from: a, to: o } = e.state.selection;
301
+ let r = Nr(t.before, t.label, n), i = Nr(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 Pr(e) {
305
+ function Ir(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 Fr(e) {
310
+ function Lr(e) {
311
311
  return e.extend({ addAttributes() {
312
312
  return {
313
313
  ...this.parent?.(),
314
314
  color: {
315
315
  default: null,
316
- parseHTML: (e) => Pr(_t(e.style.color)),
316
+ parseHTML: (e) => Ir(vt(e.style.color)),
317
317
  renderHTML: (e) => {
318
- let t = Pr(e.color);
318
+ let t = Ir(e.color);
319
319
  return t ? { style: `color: ${t}` } : {};
320
320
  }
321
321
  }
@@ -323,9 +323,9 @@ function Fr(e) {
323
323
  } });
324
324
  }
325
325
  // src/composables/useRichTextLinkDialog.ts
326
- function Ir(e, t = le.liquid, n = () => !0) {
326
+ function Rr(e, t = Q.liquid, n = () => !0) {
327
327
  let r = H(!1), i = H(""), a = H(""), o = H(null);
328
- Sr(o, r);
328
+ wr(o, r);
329
329
  function s() {
330
330
  if (!n()) return;
331
331
  let t = e.value?.getAttributes("link") ?? {};
@@ -336,7 +336,7 @@ function Ir(e, t = le.liquid, n = () => !0) {
336
336
  if (i.value) {
337
337
  let t = d(i.value);
338
338
  if (t !== null) {
339
- let n = Pr(a.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
339
+ let n = Ir(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,7 +353,7 @@ function Ir(e, t = le.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 = Pe(t);
356
+ let n = Re(t);
357
357
  return n ? at.some((e) => e === n) ? t : null : u(t) ? t : `https://${t}`;
358
358
  }
359
359
  function f() {
@@ -378,13 +378,13 @@ function Ir(e, t = le.liquid, n = () => !0) {
378
378
  };
379
379
  }
380
380
  // src/composables/useRichTextEditor.ts
381
- function Lr(t) {
382
- let n = g(vn, null), r = mt(), i = g(Ut, null), a = I(() => r.value && !i?.value), { mergeTags: o, canRequestMergeTag: s, isRequesting: c, requestMergeTag: l, syntax: d, autocomplete: f } = K(), { canInsertLogicTag: p, isRequesting: h, requestLogicTag: _ } = Cn(), v = g(tn, null), y = (S(v) ? v.value : v)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", b = Ee(d), x = R(null), C = n?.content ? yt(n) : null, w = () => Ie(C?.settings.value ?? { locale: "en" });
381
+ function zr(t) {
382
+ let n = g(bn, null), r = ht(), i = g(Wt, null), a = I(() => r.value && !i?.value), { mergeTags: o, canRequestMergeTag: s, isRequesting: c, requestMergeTag: l, syntax: d, autocomplete: f } = K(), { canInsertLogicTag: p, isRequesting: h, requestLogicTag: _ } = Tn(), v = g(Jt, null), y = (S(v) ? v.value : v)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", b = Oe(d), x = R(null), C = n?.content ? bt(n) : null, w = () => He(C?.settings.value ?? { locale: "en" });
383
383
  u(w, (e) => {
384
384
  let t = x.value?.view.dom;
385
385
  t && t.setAttribute("dir", e);
386
386
  });
387
- let { showLinkDialog: T, linkUrl: E, linkColor: D, linkDialogRef: O, openLinkDialog: ee, insertLink: k, removeLink: A, closeLinkDialog: j, handleLinkKeydown: M } = Ir(x, d, () => a.value);
387
+ let { showLinkDialog: T, linkUrl: E, linkColor: D, linkDialogRef: O, openLinkDialog: ee, insertLink: k, removeLink: A, closeLinkDialog: j, handleLinkKeydown: M } = Rr(x, d, () => a.value);
388
388
  u(a, (e) => {
389
389
  if (x.value?.setEditable(e, !1), !e) {
390
390
  j();
@@ -452,10 +452,10 @@ function Lr(t) {
452
452
  value: e.value
453
453
  }).run() : x.value?.commands.focus());
454
454
  }
455
- async function J() {
455
+ async function re() {
456
456
  if (!a.value) return;
457
457
  let e = await _();
458
- !B && a.value && (e && x.value ? Nr(x.value, e, d) : x.value?.commands.focus());
458
+ !B && a.value && (e && x.value ? Fr(x.value, e, d) : x.value?.commands.focus());
459
459
  }
460
460
  return {
461
461
  editor: x,
@@ -480,29 +480,29 @@ function Lr(t) {
480
480
  closeLinkDialog: j,
481
481
  handleLinkKeydown: M,
482
482
  handleAddMergeTag: q,
483
- handleAddLogicTag: J
483
+ handleAddLogicTag: re
484
484
  };
485
485
  }
486
486
  // src/utils/activeEditorTracker.ts
487
- var Rr = /* @__PURE__ */ new Set(), zr = 0, Br = 0;
488
- function Vr() {
489
- let e = ++Br;
490
- return Rr.add(e), zr === 0 && (zr = e), {
487
+ var Br = /* @__PURE__ */ new Set(), Vr = 0, Hr = 0;
488
+ function Ur() {
489
+ let e = ++Hr;
490
+ return Br.add(e), Vr === 0 && (Vr = e), {
491
491
  id: e,
492
- isActive: () => Rr.size <= 1 || zr === e,
492
+ isActive: () => Br.size <= 1 || Vr === e,
493
493
  claim: () => {
494
- zr = e;
494
+ Vr = e;
495
495
  },
496
496
  dispose: () => {
497
- if (Rr.delete(e), zr === e) {
498
- let e = Array.from(Rr);
499
- zr = e[e.length - 1] ?? 0;
497
+ if (Br.delete(e), Vr === e) {
498
+ let e = Array.from(Br);
499
+ Vr = e[e.length - 1] ?? 0;
500
500
  }
501
501
  }
502
502
  };
503
503
  }
504
504
  // src/utils/resolveLintOptions.ts
505
- function Hr(e) {
505
+ function Wr(e) {
506
506
  let t = e.contentLocale ?? e.content?.settings.locale;
507
507
  return {
508
508
  ...e.lint,
@@ -511,8 +511,8 @@ function Hr(e) {
511
511
  };
512
512
  }
513
513
  // src/composables/usePreviewResolution.ts
514
- var Ur = 500;
515
- function Wr(e) {
514
+ var Gr = 500;
515
+ function Kr(e) {
516
516
  let t = typeof e.resolvePreview == "function", n = H(null), r = H(!1), i = H(!1), a = H(!1), o = 0, s = null;
517
517
  function c() {
518
518
  s !== null && (clearTimeout(s), s = null);
@@ -523,7 +523,8 @@ function Wr(e) {
523
523
  let c = ++o;
524
524
  r.value = !0;
525
525
  let l = {
526
- content: He(e.getContent()),
526
+ content: Me(e.getContent()),
527
+ surface: e.surface,
527
528
  trigger: t,
528
529
  ...e.getRecipient?.() === void 0 ? {} : { recipient: e.getRecipient() }
529
530
  };
@@ -545,7 +546,7 @@ function Wr(e) {
545
546
  function d(e) {
546
547
  t && (c(), !a.value && e !== "recipient" ? l(e) : s = setTimeout(() => {
547
548
  s = null, l(e);
548
- }, Ur));
549
+ }, Gr));
549
550
  }
550
551
  function f() {
551
552
  t && e.isActive() && (c(), l("refresh"));
@@ -572,12 +573,13 @@ function Wr(e) {
572
573
  isResolving: r,
573
574
  isInitialResolve: I(() => r.value && !a.value),
574
575
  hasFailed: i,
576
+ isShowingResolved: I(() => n.value !== null),
575
577
  supersedesSamples: I(() => t),
576
578
  refresh: f
577
579
  };
578
580
  }
579
581
  // src/composables/useMergeTagPicker.ts
580
- function Gr() {
582
+ function qr() {
581
583
  let e = H(!1), t = H([]), n = H(null), r = null;
582
584
  function i(i, a) {
583
585
  if (r) {
@@ -607,7 +609,7 @@ function Gr() {
607
609
  };
608
610
  }
609
611
  // src/composables/useLogicTagPicker.ts
610
- function Kr() {
612
+ function Jr() {
611
613
  let e = H(!1), t = H([]), n = H([]), r = null;
612
614
  function i(i, a) {
613
615
  if (r) {
@@ -637,23 +639,23 @@ function Kr() {
637
639
  };
638
640
  }
639
641
  // src/composables/useTemplateLint.ts
640
- function qr(e) {
642
+ function Yr(e) {
641
643
  return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 && e.deliverability === !1 && e.compatibility === !1 && e.localization === !1 : !1;
642
644
  }
643
- var Jr = !1;
644
- function Yr(e) {
645
+ var Xr = !1;
646
+ function Zr(e) {
645
647
  let t = H([]), n = H(0), r = H(-1), i = u(e.content, () => {
646
648
  n.value++;
647
- }, { deep: !0 }), a = H(!1), o = H(!1), s = R(null), c = qr(e.options), l = null, d = !1;
649
+ }, { deep: !0 }), a = H(!1), o = H(!1), s = R(null), c = Yr(e.options), l = null, d = !1;
648
650
  c || f();
649
651
  async function f() {
650
652
  try {
651
- let t = await import("./src-BRyzUujm.js");
653
+ let t = await import("./src-BmzzkUf7.js");
652
654
  if (d) return;
653
- s.value = { lintTemplate: t.lintTemplate }, a.value = !0, p(), l = re(n, p, { debounce: e.debounce ?? 500 });
655
+ s.value = { lintTemplate: t.lintTemplate }, a.value = !0, p(), l = ie(n, p, { debounce: e.debounce ?? 500 });
654
656
  } catch {
655
657
  if (d) return;
656
- o.value = !0, Jr || (Jr = !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."));
658
+ o.value = !0, Xr || (Xr = !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."));
657
659
  }
658
660
  }
659
661
  function p() {
@@ -692,7 +694,7 @@ function Yr(e) {
692
694
  };
693
695
  }
694
696
  // src/composables/useKeyboardReorder.ts
695
- function Xr(e, t, n = []) {
697
+ function Qr(e, t, n = []) {
696
698
  let r = H(null), i = H(""), a = null;
697
699
  function o(t) {
698
700
  let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
@@ -719,7 +721,7 @@ function Xr(e, t, n = []) {
719
721
  let i = o(r);
720
722
  if (!i) return "";
721
723
  let a = (i.sectionId ? c(i.sectionId, i.columnIndex ?? 0) : e.content.value.blocks)?.[i.index];
722
- return a ? Hn(a, t.t, n) : "";
724
+ return a ? Wn(a, t.t, n) : "";
723
725
  }
724
726
  function c(t, n) {
725
727
  return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
@@ -787,14 +789,14 @@ function Xr(e, t, n = []) {
787
789
  };
788
790
  }
789
791
  // src/composables/useUiTheme.ts
790
- function Zr(e) {
792
+ function $r(e) {
791
793
  let n = t("(prefers-color-scheme: dark)");
792
794
  return { resolvedTheme: I(() => e.value === "auto" ? n.value ? "dark" : "light" : e.value) };
793
795
  }
794
796
  // src/composables/useCustomBlockStylesheets.ts
795
- function Qr(e, t) {
797
+ function ei(e, t) {
796
798
  return I(() => {
797
- let n = $r(e.value.blocks);
799
+ let n = ti(e.value.blocks);
798
800
  if (n.size === 0) return [];
799
801
  let r = /* @__PURE__ */ new Set(), i = [];
800
802
  for (let e of n) {
@@ -806,75 +808,75 @@ function Qr(e, t) {
806
808
  return i;
807
809
  });
808
810
  }
809
- function $r(e) {
811
+ function ti(e) {
810
812
  let t = /* @__PURE__ */ new Set();
811
- return ei(e, t), t;
813
+ return ni(e, t), t;
812
814
  }
813
- function ei(e, t) {
814
- for (let n of e) if (ot(n)) t.add(n.customType);
815
+ function ni(e, t) {
816
+ for (let n of e) if (pt(n)) t.add(n.customType);
815
817
  else if (n.type === "section") {
816
818
  let e = n.children;
817
819
  if (!e) continue;
818
- for (let n of e) ei(n, t);
819
- } else Ge(n) && ei(n.children, t);
820
+ for (let n of e) ni(n, t);
821
+ } else ge(n) && ni(n.children, t);
820
822
  }
821
823
  // src/utils/registerBuiltInBlocks.ts
822
- var ti = [
824
+ var ri = [
823
825
  {
824
826
  type: "section",
825
- createBlock: he
827
+ createBlock: ve
826
828
  },
827
829
  {
828
830
  type: "title",
829
- createBlock: me
831
+ createBlock: _e
830
832
  },
831
833
  {
832
834
  type: "paragraph",
833
- createBlock: oe
835
+ createBlock: se
834
836
  },
835
837
  {
836
838
  type: "image",
837
- createBlock: Se
839
+ createBlock: we
838
840
  },
839
841
  {
840
842
  type: "button",
841
- createBlock: Ae
843
+ createBlock: Pe
842
844
  },
843
845
  {
844
846
  type: "divider",
845
- createBlock: Z
847
+ createBlock: X
846
848
  },
847
849
  {
848
850
  type: "video",
849
- createBlock: ge
851
+ createBlock: ye
850
852
  },
851
853
  {
852
854
  type: "social",
853
- createBlock: Y
855
+ createBlock: J
854
856
  },
855
857
  {
856
858
  type: "menu",
857
- createBlock: se
859
+ createBlock: ce
858
860
  },
859
861
  {
860
862
  type: "table",
861
- createBlock: pe
863
+ createBlock: he
862
864
  },
863
865
  {
864
866
  type: "spacer",
865
- createBlock: We
867
+ createBlock: Je
866
868
  },
867
869
  {
868
870
  type: "html",
869
- createBlock: st
871
+ createBlock: ct
870
872
  },
871
873
  {
872
874
  type: "countdown",
873
- createBlock: lt
875
+ createBlock: ut
874
876
  }
875
877
  ];
876
- function ni(e, t) {
877
- for (let n of ti) {
878
+ function ii(e, t) {
879
+ for (let n of ri) {
878
880
  let r = t[n.type];
879
881
  r && e.registerBuiltIn(n.type, {
880
882
  component: r,
@@ -883,31 +885,31 @@ function ni(e, t) {
883
885
  }
884
886
  }
885
887
  // src/utils/resolveHtmlBlockPreview.ts
886
- function ri(e) {
888
+ function ai(e) {
887
889
  return typeof e == "boolean" ? e : e?.enabled ?? !1;
888
890
  }
889
891
  // src/utils/collectOffPaletteDefaults.ts
890
- function ii(e) {
892
+ function oi(e) {
891
893
  return typeof e == "object" && !!e && !Array.isArray(e);
892
894
  }
893
- function ai(e, t, n) {
894
- let r = new Set(e.map((e) => pt(e))), i = [], a = (e, t) => {
895
- for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(pt(o)) && i.push(`${t}.${n}: ${o}`) : ii(o) && a(o, `${t}.${n}`);
895
+ function si(e, t, n) {
896
+ let r = new Set(e.map((e) => mt(e))), i = [], a = (e, t) => {
897
+ for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(mt(o)) && i.push(`${t}.${n}: ${o}`) : oi(o) && a(o, `${t}.${n}`);
896
898
  }, o = t;
897
899
  for (let [e, t] of Object.entries(Ze)) {
898
900
  let n = o?.[e];
899
901
  a({
900
902
  ...t,
901
- ...ii(n) ? n : {}
903
+ ...oi(n) ? n : {}
902
904
  }, e);
903
905
  }
904
906
  return a({
905
- ...Je,
907
+ ...Ge,
906
908
  ...n ?? {}
907
909
  }, "template"), i;
908
910
  }
909
911
  // src/utils/localizedBlockDefaults.ts
910
- function oi(e) {
912
+ function ci(e) {
911
913
  return {
912
914
  title: { content: `<p>${e.blockDefaults.title}</p>` },
913
915
  paragraph: { content: `<p>${e.blockDefaults.paragraph}</p>` },
@@ -915,7 +917,7 @@ function oi(e) {
915
917
  };
916
918
  }
917
919
  // src/i18n/index.ts
918
- var si = /* #__PURE__ */ Object.assign({
920
+ var li = /* #__PURE__ */ Object.assign({
919
921
  "./locales/ca.ts": () => import("./ca-YfIxwO1G.js"),
920
922
  "./locales/da.ts": () => import("./da-CM6DCvRG.js"),
921
923
  "./locales/de.ts": () => import("./de-Dugz1zXC.js"),
@@ -925,53 +927,53 @@ var si = /* #__PURE__ */ Object.assign({
925
927
  "./locales/ja.ts": () => import("./ja-BH4MS1Ye.js"),
926
928
  "./locales/nl.ts": () => import("./nl-BQl1_UHv.js"),
927
929
  "./locales/pt-BR.ts": () => import("./pt-BR-eyzmU9Vs.js")
928
- }), ci = /* #__PURE__ */ Object.assign({
930
+ }), ui = /* #__PURE__ */ Object.assign({
929
931
  "./locales/cloud/de.ts": () => import("./de-6M4JoHoD.js"),
930
932
  "./locales/cloud/en.ts": () => import("./en-FzUuJ8HW.js"),
931
933
  "./locales/cloud/pt-BR.ts": () => import("./pt-BR-Bp92Fc6J.js")
932
934
  });
933
- function li(e) {
935
+ function di(e) {
934
936
  return Object.keys(e).map((e) => e.match(/\/([^/]+)\.ts$/)?.[1]).filter((e) => !!e);
935
937
  }
936
- var ui = li(si), di = li(ci);
937
- function fi(e) {
938
+ var fi = di(li), pi = di(ui);
939
+ function mi(e) {
938
940
  return e.trim().replace(/_/g, "-").toLowerCase();
939
941
  }
940
- function pi(e, t) {
941
- let n = fi(e);
942
- return t.find((e) => fi(e) === n);
942
+ function hi(e, t) {
943
+ let n = mi(e);
944
+ return t.find((e) => mi(e) === n);
943
945
  }
944
- function mi(e) {
945
- return fi(e).split("-")[0];
946
+ function gi(e) {
947
+ return mi(e).split("-")[0];
946
948
  }
947
- function hi(e, t) {
948
- return pi(e, t) ?? pi(mi(e), t);
949
+ function _i(e, t) {
950
+ return hi(e, t) ?? hi(gi(e), t);
949
951
  }
950
- function gi(e, t) {
951
- return hi(e, t) ?? "en";
952
+ function vi(e, t) {
953
+ return _i(e, t) ?? "en";
952
954
  }
953
- async function _i(e) {
954
- let t = si[`./locales/${gi(e, ui)}.ts`];
955
+ async function yi(e) {
956
+ let t = li[`./locales/${vi(e, fi)}.ts`];
955
957
  return (await t()).default;
956
958
  }
957
- async function vi(e) {
958
- let t = ci[`./locales/cloud/${gi(e, di)}.ts`];
959
+ async function bi(e) {
960
+ let t = ui[`./locales/cloud/${vi(e, pi)}.ts`];
959
961
  return (await t()).default;
960
962
  }
961
- function yi(e) {
962
- return hi(e, ui) !== void 0;
963
+ function xi(e) {
964
+ return _i(e, fi) !== void 0;
963
965
  }
964
- function bi(e) {
965
- return hi(e, di) !== void 0;
966
+ function Si(e) {
967
+ return _i(e, pi) !== void 0;
966
968
  }
967
- function xi() {
968
- return [...ui];
969
+ function Ci() {
970
+ return [...fi];
969
971
  }
970
- function Si() {
971
- return [...di];
972
+ function wi() {
973
+ return [...pi];
972
974
  }
973
975
  // src/i18n/contentDefaults.ts
974
- var Ci = {
976
+ var Ti = {
975
977
  en: {
976
978
  video: "Video",
977
979
  days: "Days",
@@ -1044,16 +1046,16 @@ var Ci = {
1044
1046
  seconds: "Sekunder",
1045
1047
  expired: "Dette tilbud er udløbet"
1046
1048
  }
1047
- }, wi = new Map(Object.keys(Ci).map((e) => [e.toLowerCase(), e]));
1048
- function Ti(e) {
1049
- if (!e) return Ci.en;
1050
- let t = e.trim().replace(/_/g, "-").toLowerCase(), n = wi.get(t);
1051
- if (n) return Ci[n];
1052
- let r = wi.get(mi(t));
1053
- return r ? Ci[r] : Ci.en;
1049
+ }, Ei = new Map(Object.keys(Ti).map((e) => [e.toLowerCase(), e]));
1050
+ function Di(e) {
1051
+ if (!e) return Ti.en;
1052
+ let t = e.trim().replace(/_/g, "-").toLowerCase(), n = Ei.get(t);
1053
+ if (n) return Ti[n];
1054
+ let r = Ei.get(gi(t));
1055
+ return r ? Ti[r] : Ti.en;
1054
1056
  }
1055
- function Ei(e) {
1056
- let t = Ti(e);
1057
+ function Oi(e) {
1058
+ let t = Di(e);
1057
1059
  return {
1058
1060
  video: { alt: t.video },
1059
1061
  countdown: {
@@ -1066,9 +1068,9 @@ function Ei(e) {
1066
1068
  };
1067
1069
  }
1068
1070
  // src/utils/collectColorFieldIssues.ts
1069
- function Di(e, t) {
1071
+ function ki(e, t) {
1070
1072
  let n = [], r = (r, i) => {
1071
- let a = zn(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
1073
+ let a = Vn(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
1072
1074
  if (a.invalidPresets.length > 0 && n.push({
1073
1075
  id: s("invalid-presets"),
1074
1076
  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." : "")
@@ -1079,8 +1081,8 @@ function Di(e, t) {
1079
1081
  id: s("allow-custom-ignored"),
1080
1082
  message: `${o}: allowCustom: true is ignored because colors.allowCustom is false — a field can narrow the editor-wide palette, never unlock it.`
1081
1083
  }), !a.allowCustom && a.presets.length > 0) {
1082
- let e = r.default ?? "", t = new Set(a.presets.map((e) => pt(e)));
1083
- e !== "" && !t.has(pt(e)) && n.push({
1084
+ let e = r.default ?? "", t = new Set(a.presets.map((e) => mt(e)));
1085
+ e !== "" && !t.has(mt(e)) && n.push({
1084
1086
  id: s("off-palette-default"),
1085
1087
  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.`
1086
1088
  });
@@ -1091,7 +1093,7 @@ function Di(e, t) {
1091
1093
  return n;
1092
1094
  }
1093
1095
  // src/utils/keyboardShortcuts.ts
1094
- function Oi(e) {
1096
+ function Ai(e) {
1095
1097
  for (let t of e.composedPath()) {
1096
1098
  if (!(t instanceof HTMLElement)) continue;
1097
1099
  if (t.isContentEditable) return !0;
@@ -1100,14 +1102,14 @@ function Oi(e) {
1100
1102
  }
1101
1103
  return !1;
1102
1104
  }
1103
- function ki(e, t) {
1105
+ function ji(e, t) {
1104
1106
  let n = e.metaKey || e.ctrlKey;
1105
1107
  if (n && e.key.toLowerCase() === "s") e.preventDefault(), t.onSave?.();
1106
1108
  else if (n && e.key.toLowerCase() === "z") {
1107
- if (Oi(e)) return;
1109
+ if (Ai(e)) return;
1108
1110
  e.preventDefault(), e.shiftKey ? t.history.redo() : t.history.undo();
1109
1111
  } else {
1110
- if (t.isPicking?.() && !Oi(e)) {
1112
+ if (t.isPicking?.() && !Ai(e)) {
1111
1113
  if (e.key === "Escape") {
1112
1114
  e.preventDefault(), t.onCancelPick?.();
1113
1115
  return;
@@ -1121,139 +1123,139 @@ function ki(e, t) {
1121
1123
  return;
1122
1124
  }
1123
1125
  }
1124
- e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Oi(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
1126
+ e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Ai(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
1125
1127
  }
1126
1128
  }
1127
1129
  // src/utils/blockComponentResolver.ts
1128
- function Ai(e, t) {
1130
+ function Mi(e, t) {
1129
1131
  let n = { fontFamily: t(e.fontFamily) };
1130
1132
  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;
1131
1133
  }
1132
- function ji(e, t, n) {
1134
+ function Ni(e, t, n) {
1133
1135
  if (t) {
1134
1136
  let n = t.getComponent(e);
1135
1137
  if (n) return n;
1136
1138
  }
1137
1139
  return n[e.type] ?? null;
1138
1140
  }
1139
- var Mi = "--tpl-block-bg-layer", Ni = "--tpl-email-frame-width", Pi = "tpl-has-bg-image";
1140
- function Fi(e, t) {
1141
+ var Pi = "--tpl-block-bg-layer", Fi = "--tpl-email-frame-width", Ii = "tpl-has-bg-image";
1142
+ function Li(e, t) {
1141
1143
  if (t === null) return {};
1142
- let n = Re(e);
1144
+ let n = Ae(e);
1143
1145
  if (n === null) return {};
1144
- let r = t?.trim(), i = r ? ze(r) : n.url;
1146
+ let r = t?.trim(), i = r ? Ue(r) : n.url;
1145
1147
  return {
1146
1148
  backgroundImage: `url("${i}")`,
1147
1149
  backgroundSize: n.size,
1148
1150
  backgroundPosition: n.position,
1149
1151
  backgroundRepeat: n.repeat,
1150
- [Mi]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
1152
+ [Pi]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
1151
1153
  };
1152
1154
  }
1153
- function Ii(e) {
1154
- return e && Mi in e ? Pi : void 0;
1155
+ function Ri(e) {
1156
+ return e && Pi in e ? Ii : void 0;
1155
1157
  }
1156
- var Li = {
1158
+ var zi = {
1157
1159
  top: "flex-start",
1158
1160
  middle: "center",
1159
1161
  bottom: "flex-end"
1160
1162
  };
1161
- function Ri(e, t) {
1162
- let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${zi(t, e.aspectRatio)}px` } : { aspectRatio: `1 / ${e.aspectRatio ?? 1}` };
1163
+ function Bi(e, t) {
1164
+ let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${Vi(t, e.aspectRatio)}px` } : { aspectRatio: `1 / ${e.aspectRatio ?? 1}` };
1163
1165
  return {
1164
1166
  display: "flex",
1165
1167
  flexDirection: "column",
1166
- justifyContent: Li[e.verticalAlign],
1168
+ justifyContent: zi[e.verticalAlign],
1167
1169
  boxSizing: "border-box",
1168
1170
  ...n
1169
1171
  };
1170
1172
  }
1171
- function zi(e, t) {
1173
+ function Vi(e, t) {
1172
1174
  return Math.max(1, Math.round(Math.max(1, Math.round(e)) * t));
1173
1175
  }
1174
- function Bi(e, t = {}) {
1176
+ function Hi(e, t = {}) {
1175
1177
  if (e.type === "wrapper") return {};
1176
1178
  let { padding: n, backgroundColor: r } = e.styles, i = {
1177
1179
  padding: `${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`,
1178
1180
  backgroundColor: r || "transparent"
1179
1181
  };
1180
- if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? ut.paragraphGap : ut.paragraphGap}px`), e.type === "section") {
1181
- let n = Ce(e.borderRadius);
1182
+ if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? Ce.paragraphGap : Ce.paragraphGap}px`), e.type === "section") {
1183
+ let n = le(e.borderRadius);
1182
1184
  n !== null && (i.borderRadius = n);
1183
- let r = Fe(e);
1184
- r?.applied && e.backgroundImage ? (Object.assign(i, Ri(r, t.heroBoxWidth)), Object.assign(i, Fi({
1185
+ let r = Ve(e);
1186
+ r?.applied && e.backgroundImage ? (Object.assign(i, Bi(r, t.heroBoxWidth)), Object.assign(i, Li({
1185
1187
  ...e.backgroundImage,
1186
1188
  size: "cover",
1187
1189
  repeat: !1
1188
- }, t.backgroundImageUrl))) : (Object.assign(i, Hi(e.border)), Object.assign(i, Fi(e.backgroundImage, t.backgroundImageUrl)));
1190
+ }, t.backgroundImageUrl))) : (Object.assign(i, Wi(e.border)), Object.assign(i, Li(e.backgroundImage, t.backgroundImageUrl)));
1189
1191
  }
1190
1192
  return i;
1191
1193
  }
1192
- function Vi(e, t, n, r) {
1193
- return e.type === "section" ? Bi(e, {
1194
- backgroundImageUrl: Tn(t, e.backgroundImage, n),
1194
+ function Ui(e, t, n, r) {
1195
+ return e.type === "section" ? Hi(e, {
1196
+ backgroundImageUrl: Dn(t, e.backgroundImage, n),
1195
1197
  heroBoxWidth: r
1196
- }) : Bi(e);
1198
+ }) : Hi(e);
1197
1199
  }
1198
- function Hi(e) {
1200
+ function Wi(e) {
1199
1201
  let t = {};
1200
- for (let [n, r] of Object.entries(ct(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
1202
+ for (let [n, r] of Object.entries(Te(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
1201
1203
  return t;
1202
1204
  }
1203
- var Ui = {
1205
+ var Gi = {
1204
1206
  width: "100cqw",
1205
1207
  maxWidth: "none",
1206
1208
  marginInline: "calc(50% - 50cqw)",
1207
1209
  boxSizing: "border-box"
1208
1210
  };
1209
- function Wi(e) {
1211
+ function Ki(e) {
1210
1212
  return `${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`;
1211
1213
  }
1212
- function Gi(e) {
1214
+ function qi(e) {
1213
1215
  let t = {
1214
1216
  width: "var(--tpl-email-frame-width)",
1215
1217
  maxWidth: "100%",
1216
1218
  marginInline: "auto",
1217
1219
  boxSizing: "border-box"
1218
1220
  };
1219
- return e && (t.padding = Wi(e)), t;
1221
+ return e && (t.padding = Ki(e)), t;
1220
1222
  }
1221
- function Ki(e, t = {}) {
1223
+ function Ji(e, t = {}) {
1222
1224
  if (e.type !== "section" || !e.wrapper) return null;
1223
1225
  let n = e.wrapper, r = {};
1224
- if (n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && !n.fullWidth && (r.padding = Wi(n.padding)), !n.fullWidth) {
1225
- let e = Ce(n.borderRadius);
1226
+ if (n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && !n.fullWidth && (r.padding = Ki(n.padding)), !n.fullWidth) {
1227
+ let e = le(n.borderRadius);
1226
1228
  e !== null && (r.borderRadius = e);
1227
1229
  }
1228
- return Object.assign(r, Fi(n.backgroundImage, t.backgroundImageUrl)), n.fullWidth && Object.assign(r, Ui), r;
1230
+ return Object.assign(r, Li(n.backgroundImage, t.backgroundImageUrl)), n.fullWidth && Object.assign(r, Gi), r;
1229
1231
  }
1230
- function qi(e, t = {}) {
1232
+ function Yi(e, t = {}) {
1231
1233
  if (e.type !== "wrapper") return null;
1232
1234
  let n = {};
1233
- return e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding && !e.fullWidth && (n.padding = Wi(e.styles.padding)), !e.fullWidth && e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, Fi(e.backgroundImage, t.backgroundImageUrl)), e.fullWidth && Object.assign(n, Ui), n;
1235
+ return e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding && !e.fullWidth && (n.padding = Ki(e.styles.padding)), !e.fullWidth && e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, Li(e.backgroundImage, t.backgroundImageUrl)), e.fullWidth && Object.assign(n, Gi), n;
1234
1236
  }
1235
1237
  // src/utils/mergeTagLabelSegments.ts
1236
- function Ji(e, t, n, r = !1) {
1238
+ function Xi(e, t, n, r = !1) {
1237
1239
  if (!e) return [];
1238
1240
  let i = [], a = 0;
1239
- for (let o of Ye(e, n)) {
1241
+ for (let o of Qe(e, n)) {
1240
1242
  o.index > a && i.push({
1241
1243
  type: "text",
1242
1244
  value: e.slice(a, o.index)
1243
1245
  });
1244
1246
  let s = o.value;
1245
- if (_e(s, n)) {
1246
- let e = r ? Qe(s, t) : void 0;
1247
+ if (be(s, n)) {
1248
+ let e = r ? tt(s, t) : void 0;
1247
1249
  i.push(e === void 0 ? {
1248
1250
  type: "tag",
1249
- value: de(s, t)
1251
+ value: pe(s, t)
1250
1252
  } : {
1251
1253
  type: "text",
1252
1254
  value: e
1253
1255
  });
1254
- } else De(s, n) ? i.push({
1256
+ } else ke(s, n) ? i.push({
1255
1257
  type: "tag",
1256
- value: ce(s, n)
1258
+ value: ue(s, n)
1257
1259
  }) : i.push({
1258
1260
  type: "text",
1259
1261
  value: s
@@ -1266,27 +1268,27 @@ function Ji(e, t, n, r = !1) {
1266
1268
  }), i;
1267
1269
  }
1268
1270
  // src/components/MergeTagPreviewText.vue
1269
- var Yi = o({
1271
+ var Zi = o({
1270
1272
  name: "MergeTagPreviewText",
1271
1273
  props: { text: {
1272
1274
  type: String,
1273
1275
  required: !0
1274
1276
  } },
1275
1277
  setup(e) {
1276
- let t = g(Ft, Bt), n = g(St, le.liquid), r = g(Xt, null), i = I(() => Ji(e.text, t.value, n, r?.value ?? !1));
1278
+ let t = g(It, Vt), n = g(Ct, Q.liquid), r = g(cn, null), i = I(() => Xi(e.text, t.value, n, r?.value ?? !1));
1277
1279
  return () => i.value.map((e, t) => e.type === "tag" ? s("span", {
1278
1280
  key: t,
1279
1281
  class: "tpl-merge-tag-label"
1280
1282
  }, e.value) : e.value);
1281
1283
  }
1282
- }), Xi = ["href"], Zi = /* @__PURE__ */ o({
1284
+ }), Qi = ["href"], $i = /* @__PURE__ */ o({
1283
1285
  __name: "ButtonBlock",
1284
1286
  props: {
1285
1287
  block: {},
1286
1288
  viewport: {}
1287
1289
  },
1288
1290
  setup(e) {
1289
- let t = e, n = on(Jt, "ButtonBlock");
1291
+ let t = e, n = yn(Yt, "ButtonBlock");
1290
1292
  function r(e) {
1291
1293
  return e === "regular" ? "400" : e === "medium" ? "500" : e === "bold" ? "700" : "bold";
1292
1294
  }
@@ -1297,33 +1299,33 @@ var Yi = o({
1297
1299
  backgroundColor: t.block.backgroundColor,
1298
1300
  color: t.block.textColor,
1299
1301
  fontSize: `${t.block.fontSize}px`,
1300
- lineHeight: String(ft),
1302
+ lineHeight: String(Fe),
1301
1303
  fontWeight: r(t.block.fontWeight),
1302
1304
  textDecoration: "none",
1303
- borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : Ce(t.block.borderRadius) ?? "0px",
1305
+ borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : le(t.block.borderRadius) ?? "0px",
1304
1306
  textAlign: "center"
1305
1307
  };
1306
- return Object.assign(e, Hi(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;
1308
+ return Object.assign(e, Wi(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;
1307
1309
  }), a = I(() => ({ textAlign: t.block.align ?? "center" }));
1308
1310
  return (t, n) => (c(), w("div", { style: L(a.value) }, [N("a", {
1309
1311
  href: e.block.url || "#",
1310
1312
  style: L(i.value),
1311
1313
  class: "tpl:cursor-default",
1312
1314
  onClick: n[0] ||= M(() => {}, ["prevent"])
1313
- }, [W(Yi, { text: e.block.text }, null, 8, ["text"])], 12, Xi)], 4));
1315
+ }, [W(Zi, { text: e.block.text }, null, 8, ["text"])], 12, Qi)], 4));
1314
1316
  }
1315
- }), Qi = ["innerHTML"], $i = [
1317
+ }), ea = ["innerHTML"], ta = [
1316
1318
  "src",
1317
1319
  "width",
1318
1320
  "height"
1319
- ], ea = /* @__PURE__ */ o({
1321
+ ], na = /* @__PURE__ */ o({
1320
1322
  __name: "CustomBlockIcon",
1321
1323
  props: {
1322
1324
  icon: {},
1323
1325
  size: {}
1324
1326
  },
1325
1327
  setup(e) {
1326
- let t = e, n = I(() => t.size ?? 20), r = I(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), i = I(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/"))), a = I(() => r.value ? Kn(t.icon ?? "") : "");
1328
+ let t = e, n = I(() => t.size ?? 20), r = I(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), i = I(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/"))), a = I(() => r.value ? Jn(t.icon ?? "") : "");
1327
1329
  return (t, o) => r.value ? (c(), w("span", {
1328
1330
  key: 0,
1329
1331
  class: "tpl:inline-flex tpl:items-center tpl:justify-center",
@@ -1332,33 +1334,33 @@ var Yi = o({
1332
1334
  height: `${n.value}px`
1333
1335
  }),
1334
1336
  innerHTML: a.value
1335
- }, null, 12, Qi)) : i.value ? (c(), w("img", {
1337
+ }, null, 12, ea)) : i.value ? (c(), w("img", {
1336
1338
  key: 1,
1337
1339
  src: e.icon,
1338
1340
  width: n.value,
1339
1341
  height: n.value,
1340
1342
  class: "tpl:inline-block",
1341
1343
  alt: ""
1342
- }, null, 8, $i)) : (c(), A(D(er), {
1344
+ }, null, 8, ta)) : (c(), A(D(nr), {
1343
1345
  key: 2,
1344
1346
  size: n.value,
1345
1347
  "stroke-width": 1.5
1346
1348
  }, null, 8, ["size"]));
1347
1349
  }
1348
- }), ta = { class: "tpl:w-full" }, na = {
1350
+ }), ra = { class: "tpl:w-full" }, ia = {
1349
1351
  key: 0,
1350
1352
  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)]"
1351
- }, ra = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ia = {
1353
+ }, aa = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, oa = {
1352
1354
  key: 1,
1353
1355
  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)]"
1354
- }, aa = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, oa = {
1356
+ }, sa = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ca = {
1355
1357
  key: 2,
1356
1358
  class: "tpl:relative"
1357
- }, sa = ["innerHTML"], ca = {
1359
+ }, la = ["innerHTML"], ua = {
1358
1360
  key: 0,
1359
1361
  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]",
1360
1362
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
1361
- }, la = /* @__PURE__ */ o({
1363
+ }, da = /* @__PURE__ */ o({
1362
1364
  __name: "CustomBlock",
1363
1365
  props: {
1364
1366
  block: {},
@@ -1366,7 +1368,7 @@ var Yi = o({
1366
1368
  },
1367
1369
  emits: ["fetchData"],
1368
1370
  setup(e, { emit: t }) {
1369
- let n = e, r = t, { t: i } = G(), a = g(an, null), o = H(""), s = I(() => qn(o.value)), l = H(!1), d = I(() => a?.getDefinition(n.block.customType)), f = I(() => !!d.value), p = I(() => n.block), { isFetching: m, fetch: _, needsFetch: v, hasDataSource: y } = En({
1371
+ let n = e, r = t, { t: i } = G(), a = g(sn, null), o = H(""), s = I(() => Yn(o.value)), l = H(!1), d = I(() => a?.getDefinition(n.block.customType)), f = I(() => !!d.value), p = I(() => n.block), { isFetching: m, fetch: _, needsFetch: v, hasDataSource: y } = On({
1370
1372
  definition: d,
1371
1373
  block: p,
1372
1374
  onUpdate: (e, t) => {
@@ -1375,10 +1377,10 @@ var Yi = o({
1375
1377
  dataSourceFetched: t
1376
1378
  });
1377
1379
  }
1378
- }), b = g(Ft, Bt), x = g(Xt, null), S = I(() => {
1380
+ }), b = g(It, Vt), x = g(cn, null), S = I(() => {
1379
1381
  if (!x?.value) return n.block;
1380
1382
  let e = {};
1381
- for (let [t, r] of Object.entries(n.block.fieldValues)) e[t] = typeof r == "string" ? ke(r, b.value) : r;
1383
+ for (let [t, r] of Object.entries(n.block.fieldValues)) e[t] = typeof r == "string" ? Ne(r, b.value) : r;
1382
1384
  return {
1383
1385
  ...n.block,
1384
1386
  fieldValues: e
@@ -1402,10 +1404,10 @@ var Yi = o({
1402
1404
  E();
1403
1405
  }, { deep: !0 }), u(() => x?.value, () => {
1404
1406
  E();
1405
- }), (e, t) => (c(), w("div", ta, [f.value ? l.value ? (c(), w("div", ia, [W(D(ar), {
1407
+ }), (e, t) => (c(), w("div", ra, [f.value ? l.value ? (c(), w("div", oa, [W(D(sr), {
1406
1408
  size: 24,
1407
1409
  class: "tpl:text-[var(--tpl-danger)]"
1408
- }), N("span", aa, P(D(i).customBlocks.renderError), 1)])) : (c(), w("div", oa, [N("div", { innerHTML: s.value }, null, 8, sa), D(y) && D(v) ? (c(), w("div", ca, [D(m) ? (c(), A(pr, {
1410
+ }), N("span", sa, P(D(i).customBlocks.renderError), 1)])) : (c(), w("div", ca, [N("div", { innerHTML: s.value }, null, 8, la), D(y) && D(v) ? (c(), w("div", ua, [D(m) ? (c(), A(hr, {
1409
1411
  key: 1,
1410
1412
  class: "tpl:w-48"
1411
1413
  })) : (c(), w("button", {
@@ -1413,16 +1415,16 @@ var Yi = o({
1413
1415
  type: "button",
1414
1416
  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)]",
1415
1417
  onClick: t[0] ||= M((...e) => D(_) && D(_)(...e), ["stop"])
1416
- }, [d.value?.icon ? (c(), A(ea, {
1418
+ }, [d.value?.icon ? (c(), A(na, {
1417
1419
  key: 0,
1418
1420
  icon: d.value.icon,
1419
1421
  size: 16
1420
- }, null, 8, ["icon"])) : k("", !0), T(" " + P(d.value?.dataSource?.label || D(i).customBlocks.dataSource.fetchButton), 1)]))])) : k("", !0)])) : (c(), w("div", na, [W(D(tr), {
1422
+ }, null, 8, ["icon"])) : k("", !0), T(" " + P(d.value?.dataSource?.label || D(i).customBlocks.dataSource.fetchButton), 1)]))])) : k("", !0)])) : (c(), w("div", ia, [W(D(rr), {
1421
1423
  size: 24,
1422
1424
  class: "tpl:text-[var(--tpl-warning)]"
1423
- }), N("span", ra, P(D(i).customBlocks.definitionNotFound), 1)]))]));
1425
+ }), N("span", aa, P(D(i).customBlocks.definitionNotFound), 1)]))]));
1424
1426
  }
1425
- }), ua = { class: "tpl:w-full" }, da = /* @__PURE__ */ o({
1427
+ }), fa = { class: "tpl:w-full" }, pa = /* @__PURE__ */ o({
1426
1428
  __name: "DividerBlock",
1427
1429
  props: {
1428
1430
  block: {},
@@ -1434,28 +1436,28 @@ var Yi = o({
1434
1436
  width: t.block.width === "full" ? "100%" : typeof t.block.width == "number" ? `${t.block.width}px` : t.block.width,
1435
1437
  margin: t.block.width === "full" ? "0" : "0 auto"
1436
1438
  }));
1437
- return (e, t) => (c(), w("div", ua, [N("hr", {
1439
+ return (e, t) => (c(), w("div", fa, [N("hr", {
1438
1440
  class: "tpl:m-0 tpl:border-none",
1439
1441
  style: L(n.value)
1440
1442
  }, null, 4)]));
1441
1443
  }
1442
- }), fa = { class: "tpl:w-full" }, pa = ["srcdoc", "title"], ma = {
1444
+ }), ma = { class: "tpl:w-full" }, ha = ["srcdoc", "title"], ga = {
1443
1445
  key: 1,
1444
1446
  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)]"
1445
- }, ha = {
1447
+ }, _a = {
1446
1448
  key: 0,
1447
1449
  class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
1448
- }, ga = {
1450
+ }, va = {
1449
1451
  key: 1,
1450
1452
  class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
1451
- }, _a = /* @__PURE__ */ o({
1453
+ }, ya = /* @__PURE__ */ o({
1452
1454
  __name: "HtmlBlock",
1453
1455
  props: {
1454
1456
  block: {},
1455
1457
  viewport: {}
1456
1458
  },
1457
1459
  setup(e) {
1458
- let t = e, { t: n } = G(), r = g(Lt, !1), i = I(() => t.block.content.trim().length > 0), a = I(() => r && i.value), o = g(Ft, Bt), s = g(Xt, null), l = I(() => s?.value ? ke(t.block.content, o.value) : t.block.content), d = H(null), f = H(60), p = null;
1460
+ let t = e, { t: n } = G(), r = g(Rt, !1), i = I(() => t.block.content.trim().length > 0), a = I(() => r && i.value), o = g(It, Vt), s = g(cn, null), l = I(() => s?.value ? Ne(t.block.content, o.value) : t.block.content), d = H(null), f = H(60), p = null;
1459
1461
  function h() {
1460
1462
  let e = d.value?.contentDocument;
1461
1463
  e && (f.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
@@ -1469,7 +1471,7 @@ var Yi = o({
1469
1471
  e || (p?.disconnect(), p = null);
1470
1472
  }), m(() => {
1471
1473
  p?.disconnect(), p = null;
1472
- }), (e, t) => (c(), w("div", fa, [a.value ? (c(), w("iframe", {
1474
+ }), (e, t) => (c(), w("div", ma, [a.value ? (c(), w("iframe", {
1473
1475
  key: 0,
1474
1476
  ref_key: "iframeRef",
1475
1477
  ref: d,
@@ -1479,18 +1481,18 @@ var Yi = o({
1479
1481
  class: "tpl:block tpl:w-full tpl:border-0",
1480
1482
  style: L({ height: `${f.value}px` }),
1481
1483
  onLoad: _
1482
- }, null, 44, pa)) : (c(), w("div", ma, [W(D(Xn), {
1484
+ }, null, 44, ha)) : (c(), w("div", ga, [W(D(Qn), {
1483
1485
  size: 24,
1484
1486
  class: "tpl:text-[var(--tpl-text-dim)]"
1485
- }), i.value ? (c(), w("span", ha, P(D(n).html.preview), 1)) : (c(), w("span", ga, P(D(n).html.empty), 1))]))]));
1487
+ }), i.value ? (c(), w("span", _a, P(D(n).html.preview), 1)) : (c(), w("span", va, P(D(n).html.empty), 1))]))]));
1486
1488
  }
1487
- }), va = ["data-drop-enabled"], ya = ["href"], ba = ["src", "alt"], xa = ["src", "alt"], Sa = {
1489
+ }), ba = ["data-drop-enabled"], xa = ["href"], Sa = ["src", "alt"], Ca = ["src", "alt"], wa = {
1488
1490
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
1489
1491
  style: { opacity: "0.7" }
1490
- }, Ca = ["href"], wa = ["src", "alt"], Ta = ["src", "alt"], Ea = {
1492
+ }, Ta = ["href"], Ea = ["src", "alt"], Da = ["src", "alt"], Oa = {
1491
1493
  key: 4,
1492
1494
  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)]"
1493
- }, Da = ["aria-label"], Oa = { key: 1 }, ka = /* @__PURE__ */ o({
1495
+ }, ka = ["aria-label"], Aa = { key: 1 }, ja = /* @__PURE__ */ o({
1494
1496
  __name: "ImageBlock",
1495
1497
  props: {
1496
1498
  block: {},
@@ -1498,20 +1500,20 @@ var Yi = o({
1498
1500
  },
1499
1501
  emits: ["update"],
1500
1502
  setup(e, { emit: t }) {
1501
- let n = e, r = t, { t: i } = G(), { syntax: a } = K(), o = I(() => we(n.block.src, a));
1503
+ let n = e, r = t, { t: i } = G(), { syntax: a } = K(), o = I(() => Ee(n.block.src, a));
1502
1504
  function s(e) {
1503
1505
  let t = {
1504
1506
  src: e.url,
1505
- ...Pn(jn(e.width, e.height))
1507
+ ...In(Nn(e.width, e.height))
1506
1508
  };
1507
1509
  e.alt && (t.alt = e.alt), r("update", t);
1508
1510
  }
1509
- let l = H(), { canBrowse: u, dropEnabled: d, isUploading: f, showOverlay: p, openMediaBrowser: m } = Rn({
1511
+ let l = H(), { canBrowse: u, dropEnabled: d, isUploading: f, showOverlay: p, openMediaBrowser: m } = Bn({
1510
1512
  target: l,
1511
1513
  blocked: o,
1512
1514
  apply: s
1513
1515
  }), h = I(() => ({ textAlign: n.block.align })), g = I(() => {
1514
- let e = n.block.border, t = ["left", "right"].map((t) => Q(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
1516
+ let e = n.block.border, t = ["left", "right"].map((t) => lt(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
1515
1517
  return t > 0 ? `calc(100% - ${t}px)` : "100%";
1516
1518
  }), _ = I(() => {
1517
1519
  let e = n.block.align;
@@ -1519,13 +1521,13 @@ var Yi = o({
1519
1521
  maxWidth: "100%",
1520
1522
  width: n.block.width === "full" ? g.value : `${n.block.width}px`,
1521
1523
  height: n.block.height ? `${n.block.height}px` : void 0,
1522
- borderRadius: Ce(n.block.borderRadius) ?? void 0,
1523
- ...Hi(n.block.border),
1524
+ borderRadius: le(n.block.borderRadius) ?? void 0,
1525
+ ...Wi(n.block.border),
1524
1526
  display: "block",
1525
1527
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
1526
1528
  marginRight: e === "center" ? "auto" : void 0
1527
1529
  };
1528
- }), v = An(() => o.value ? void 0 : n.block.src), y = An(() => o.value ? n.block.placeholderUrl : void 0);
1530
+ }), v = Mn(() => o.value ? void 0 : n.block.src), y = Mn(() => o.value ? n.block.placeholderUrl : void 0);
1529
1531
  return (t, n) => (c(), w("div", {
1530
1532
  ref_key: "dropZoneRef",
1531
1533
  ref: l,
@@ -1533,7 +1535,7 @@ var Yi = o({
1533
1535
  "data-drop-enabled": D(d),
1534
1536
  class: "tpl:relative tpl:w-full",
1535
1537
  style: L(h.value)
1536
- }, [D(p) ? (c(), A(Nn, {
1538
+ }, [D(p) ? (c(), A(Fn, {
1537
1539
  key: 0,
1538
1540
  uploading: D(f),
1539
1541
  size: "canvas"
@@ -1549,22 +1551,22 @@ var Yi = o({
1549
1551
  src: D(y),
1550
1552
  alt: e.block.alt || D(i).image.altTextPlaceholder,
1551
1553
  style: L(_.value)
1552
- }, null, 12, ba)], 8, ya)) : (c(), w("img", {
1554
+ }, null, 12, Sa)], 8, xa)) : (c(), w("img", {
1553
1555
  key: 1,
1554
1556
  class: "tpl:border-0",
1555
1557
  src: D(y),
1556
1558
  alt: e.block.alt,
1557
1559
  style: L(_.value)
1558
- }, null, 12, xa))], 64)) : e.block.src && o.value ? (c(), w("div", {
1560
+ }, null, 12, Ca))], 64)) : e.block.src && o.value ? (c(), w("div", {
1559
1561
  key: 2,
1560
1562
  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)]",
1561
1563
  style: L([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, _.value])
1562
- }, [W(D(ir), {
1564
+ }, [W(D(or), {
1563
1565
  size: 32,
1564
1566
  "stroke-width": 1.5,
1565
1567
  class: "tpl:text-[var(--tpl-primary)]",
1566
1568
  style: { opacity: "0.5" }
1567
- }), N("span", Sa, [W(Yi, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (c(), w(U, { key: 3 }, [e.block.linkUrl ? (c(), w("a", {
1569
+ }), N("span", wa, [W(Zi, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (c(), w(U, { key: 3 }, [e.block.linkUrl ? (c(), w("a", {
1568
1570
  key: 0,
1569
1571
  href: e.block.linkUrl,
1570
1572
  target: "_blank",
@@ -1576,33 +1578,33 @@ var Yi = o({
1576
1578
  src: D(v),
1577
1579
  alt: e.block.alt || D(i).image.altTextPlaceholder,
1578
1580
  style: L(_.value)
1579
- }, null, 12, wa)], 8, Ca)) : (c(), w("img", {
1581
+ }, null, 12, Ea)], 8, Ta)) : (c(), w("img", {
1580
1582
  key: 1,
1581
1583
  class: "tpl:border-0",
1582
1584
  src: D(v),
1583
1585
  alt: e.block.alt,
1584
1586
  style: L(_.value)
1585
- }, null, 12, Ta))], 64)) : (c(), w("div", Ea, [D(u) ? (c(), w("button", {
1587
+ }, null, 12, Da))], 64)) : (c(), w("div", Oa, [D(u) ? (c(), w("button", {
1586
1588
  key: 0,
1587
1589
  "aria-label": D(i).image.browseMedia,
1588
1590
  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)]",
1589
1591
  onClick: n[2] ||= M((...e) => D(m) && D(m)(...e), ["stop"])
1590
- }, [W(D(ir), {
1592
+ }, [W(D(or), {
1591
1593
  size: 14,
1592
1594
  "stroke-width": 1.5
1593
- }), T(" " + P(D(i).image.browseMedia), 1)], 8, Da)) : (c(), w("span", Oa, P(D(i).image.clickToAdd), 1))]))], 12, va));
1595
+ }), T(" " + P(D(i).image.browseMedia), 1)], 8, ka)) : (c(), w("span", Aa, P(D(i).image.clickToAdd), 1))]))], 12, ba));
1594
1596
  }
1595
- }), Aa = { class: "tpl:w-full" }, ja = ["href"], Ma = {
1597
+ }), Ma = { class: "tpl:w-full" }, Na = ["href"], Pa = {
1596
1598
  key: 1,
1597
1599
  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)]"
1598
- }, Na = /* @__PURE__ */ o({
1600
+ }, Fa = /* @__PURE__ */ o({
1599
1601
  __name: "MenuBlock",
1600
1602
  props: {
1601
1603
  block: {},
1602
1604
  viewport: {}
1603
1605
  },
1604
1606
  setup(e) {
1605
- let t = e, { t: n } = G(), r = on(Jt, "MenuBlock"), i = I(() => ({
1607
+ let t = e, { t: n } = G(), r = yn(Yt, "MenuBlock"), i = I(() => ({
1606
1608
  display: "flex",
1607
1609
  flexWrap: "wrap",
1608
1610
  gap: `0 ${t.block.spacing}px`,
@@ -1614,7 +1616,7 @@ var Yi = o({
1614
1616
  function o(e) {
1615
1617
  return e || t.block.linkColor || t.block.color;
1616
1618
  }
1617
- return (t, r) => (c(), w("div", Aa, [a.value ? (c(), w("div", {
1619
+ return (t, r) => (c(), w("div", Ma, [a.value ? (c(), w("div", {
1618
1620
  key: 0,
1619
1621
  style: L(i.value)
1620
1622
  }, [(c(!0), w(U, null, p(e.block.items, (t, n) => (c(), w(U, { key: t.id }, [N("a", {
@@ -1626,49 +1628,49 @@ var Yi = o({
1626
1628
  textDecoration: t.underline ? "underline" : "none"
1627
1629
  }),
1628
1630
  onClick: r[0] ||= M(() => {}, ["prevent"])
1629
- }, [W(Yi, { text: t.text || "..." }, null, 8, ["text"])], 12, ja), n < e.block.items.length - 1 ? (c(), w("span", {
1631
+ }, [W(Zi, { text: t.text || "..." }, null, 8, ["text"])], 12, Na), n < e.block.items.length - 1 ? (c(), w("span", {
1630
1632
  key: 0,
1631
1633
  style: L({
1632
1634
  color: e.block.separatorColor,
1633
1635
  padding: `0 ${e.block.spacing}px`
1634
1636
  })
1635
- }, P(e.block.separator), 5)) : k("", !0)], 64))), 128))], 4)) : (c(), w("div", Ma, [W(D(rr), { size: 16 }), N("span", null, P(D(n).menu.addLinks), 1)]))]));
1637
+ }, P(e.block.separator), 5)) : k("", !0)], 64))), 128))], 4)) : (c(), w("div", Pa, [W(D(ar), { size: 16 }), N("span", null, P(D(n).menu.addLinks), 1)]))]));
1636
1638
  }
1637
1639
  });
1638
1640
  // src/composables/useEditableTextBlock.ts
1639
- function Pa(e) {
1640
- let t = g(Ft, Bt), r = g(Xt, null), i = g(Ut, null), { syntax: a } = K(), o = I(() => r?.value ? Ue(e(), t.value) : Le(e(), t.value)), s = I(() => Oe(qn(ie(o.value, a)))), c = H(!1);
1641
- u(() => i?.value, (e) => {
1642
- e && (c.value = !1);
1641
+ function Ia(e) {
1642
+ let t = g(It, Vt), r = g(cn, null), i = g($t, null), a = g(Wt, null), { syntax: o } = K(), s = I(() => r?.value ? qe(e(), t.value) : Be(e(), t.value)), c = I(() => i?.value ? $e(e(), t.value, o) : ae(s.value, o)), l = I(() => je(Yn(c.value))), d = H(!1);
1643
+ u(() => a?.value, (e) => {
1644
+ e && (d.value = !1);
1643
1645
  });
1644
- let l = H(null), { top: d, left: f } = n(l), { toLocal: p } = vt(), m = I(() => p({
1645
- top: d.value - 8,
1646
- left: f.value
1646
+ let f = H(null), { top: p, left: m } = n(f), { toLocal: h } = yt(), _ = I(() => h({
1647
+ top: p.value - 8,
1648
+ left: m.value
1647
1649
  }));
1648
- function h() {
1649
- i?.value || (c.value = !0);
1650
+ function v() {
1651
+ a?.value || (d.value = !0);
1650
1652
  }
1651
- function _() {
1652
- c.value = !1;
1653
+ function y() {
1654
+ d.value = !1;
1653
1655
  }
1654
1656
  return {
1655
- isEditing: c,
1656
- blockRef: l,
1657
- toolbarPosition: m,
1658
- resolvedContent: s,
1659
- handleDoubleClick: h,
1660
- handleEditorDone: _
1657
+ isEditing: d,
1658
+ blockRef: f,
1659
+ toolbarPosition: _,
1660
+ resolvedContent: l,
1661
+ handleDoubleClick: v,
1662
+ handleEditorDone: y
1661
1663
  };
1662
1664
  }
1663
1665
  // src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
1664
- var Fa = ["innerHTML"], Ia = /* @__PURE__ */ o({
1666
+ var La = ["innerHTML"], Ra = /* @__PURE__ */ o({
1665
1667
  __name: "ParagraphBlock",
1666
1668
  props: {
1667
1669
  block: {},
1668
1670
  viewport: {}
1669
1671
  },
1670
1672
  setup(e) {
1671
- let t = e, n = b(() => import("./ParagraphEditor-A_OEuQ1Q.js").then((e) => e.t)), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: l } = Pa(() => t.block.content);
1673
+ let t = e, n = b(() => import("./ParagraphEditor-DGJmPAC1.js").then((e) => e.t)), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: l } = Ia(() => t.block.content);
1672
1674
  return (t, u) => (c(), w("div", {
1673
1675
  ref_key: "blockRef",
1674
1676
  ref: i,
@@ -1687,11 +1689,11 @@ var Fa = ["innerHTML"], Ia = /* @__PURE__ */ o({
1687
1689
  key: 1,
1688
1690
  class: "tpl-text-content tpl:outline-none",
1689
1691
  innerHTML: D(o)
1690
- }, null, 8, Fa))], 544));
1692
+ }, null, 8, La))], 544));
1691
1693
  }
1692
1694
  });
1693
1695
  // src/utils/updateBlockList.ts
1694
- function La(e, t, n, r = 0, i) {
1696
+ function za(e, t, n, r = 0, i) {
1695
1697
  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);
1696
1698
  if (o.some((e) => !s.includes(e.id))) return;
1697
1699
  let c = t.filter((e) => !o.some((t) => t.id === e.id)), l, u = -1;
@@ -1704,19 +1706,19 @@ function La(e, t, n, r = 0, i) {
1704
1706
  l && (e.findBlockLocation(l.id) ? e.moveBlock(l.id, u, n, r) : e.addBlock(JSON.parse(JSON.stringify(l)), n, r, u));
1705
1707
  }
1706
1708
  // src/utils/mergeTagTokens.ts
1707
- function Ra(e, t, n) {
1709
+ function Ba(e, t, n) {
1708
1710
  let r = [], i = "\0MT";
1709
1711
  for (; e.includes(i);) i += "_";
1710
- let a = n === "html" ? nt(e, (e) => {
1712
+ let a = n === "html" ? Le(e, (e) => {
1711
1713
  let t = r.push(e) - 1;
1712
1714
  return `${i}${t}\u0000`;
1713
1715
  }) : e, o = Array.from(a.matchAll(RegExp(`${i}\\d+\u0000`, "g")), (e) => ({
1714
1716
  start: e.index,
1715
1717
  end: e.index + e[0].length
1716
- })), s = [], c = et(a, t, "logic"), l = [], u = 0;
1718
+ })), s = [], c = nt(a, t, "logic"), l = [], u = 0;
1717
1719
  for (let e of ["logic", "value"]) {
1718
1720
  let r = 0;
1719
- for (let i of e === "logic" ? c : et(a, t, "value")) {
1721
+ for (let i of e === "logic" ? c : nt(a, t, "value")) {
1720
1722
  let t = i.index, a = t + i.value.length;
1721
1723
  for (; o[r]?.end <= t;) r++;
1722
1724
  let c = o[r];
@@ -1732,51 +1734,51 @@ function Ra(e, t, n) {
1732
1734
  }), s.push({
1733
1735
  start: t,
1734
1736
  end: a,
1735
- value: n === "html" ? Ne(i.value) : i.value
1737
+ value: n === "html" ? Xe(i.value) : i.value
1736
1738
  });
1737
1739
  }
1738
1740
  }
1739
1741
  }
1740
1742
  return [...r, ...s.map((e) => e.value)].sort();
1741
1743
  }
1742
- function za(e, t, n, r) {
1743
- return JSON.stringify(Ra(e, n, r)) !== JSON.stringify(Ra(t, n, r));
1744
+ function Va(e, t, n, r) {
1745
+ return JSON.stringify(Ba(e, n, r)) !== JSON.stringify(Ba(t, n, r));
1744
1746
  }
1745
1747
  // src/components/localization/LocaleStatusChip.vue?vue&type=script&setup=true&lang.ts
1746
- var Ba = [
1748
+ var Ha = [
1747
1749
  "data-state",
1748
1750
  "aria-label",
1749
1751
  "title",
1750
1752
  "aria-expanded",
1751
1753
  "aria-controls",
1752
1754
  "onKeydown"
1753
- ], Va = [
1755
+ ], Ua = [
1754
1756
  "aria-label",
1755
1757
  "aria-labelledby",
1756
1758
  "aria-describedby",
1757
1759
  "onKeydown"
1758
- ], Ha = ["id"], Ua = ["id"], Wa = { class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, Ga = ["disabled"], Ka = {
1760
+ ], Wa = ["id"], Ga = ["id"], Ka = { class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, qa = ["disabled"], Ja = {
1759
1761
  key: 0,
1760
1762
  class: "tpl:m-0 tpl:mb-2 tpl:text-xs tpl:font-medium"
1761
- }, qa = {
1763
+ }, Ya = {
1762
1764
  key: 1,
1763
1765
  class: "tpl:m-0"
1764
- }, Ja = { class: "tpl:m-0" }, Ya = { class: "tpl:mt-2 tpl:mb-0 tpl:break-words tpl:text-[var(--tpl-chrome-text-muted)]" }, Xa = {
1766
+ }, Xa = { class: "tpl:m-0" }, Za = { class: "tpl:mt-2 tpl:mb-0 tpl:break-words tpl:text-[var(--tpl-chrome-text-muted)]" }, Qa = {
1765
1767
  key: 3,
1766
1768
  class: "tpl:m-0"
1767
- }, Za = {
1769
+ }, $a = {
1768
1770
  key: 4,
1769
1771
  class: "tpl:m-0"
1770
- }, Qa = {
1772
+ }, eo = {
1771
1773
  key: 5,
1772
1774
  class: "tpl:m-0"
1773
- }, $a = {
1775
+ }, to = {
1774
1776
  key: 6,
1775
1777
  class: "tpl:m-0 tpl:list-none tpl:p-0"
1776
- }, eo = ["onClick"], to = {
1778
+ }, no = ["onClick"], ro = {
1777
1779
  key: 7,
1778
1780
  class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:gap-1"
1779
- }, no = ["data-testid", "disabled"], ro = /*#__PURE__*/ yr(/* @__PURE__ */ o({
1781
+ }, io = ["data-testid", "disabled"], ao = /*#__PURE__*/ xr(/* @__PURE__ */ o({
1780
1782
  __name: "LocaleStatusChip",
1781
1783
  props: {
1782
1784
  blockId: {},
@@ -1796,32 +1798,32 @@ var Ba = [
1796
1798
  },
1797
1799
  emits: ["target"],
1798
1800
  setup(e, { emit: t }) {
1799
- let n = e, r = t, i = g(vn, null), o = g(qt, null), s = g(wt, null), l = g(ln, "en") ?? "en", { t: d, format: f } = G(), m = te(), h = gt(), { toLocal: v } = vt(), y = H(null), b = H(null), x = H(!1), S = H(!1), C = H(null), T = H(null), F = null, R = H({
1801
+ let n = e, r = t, i = g(bn, null), o = g(dn, null), s = g(Tt, null), l = g(_n, "en") ?? "en", { t: d, format: f } = G(), m = te(), h = _t(), { toLocal: v } = yt(), y = H(null), b = H(null), x = H(!1), S = H(!1), C = H(null), T = H(null), F = null, R = H({
1800
1802
  top: 0,
1801
1803
  left: 0
1802
1804
  }), z = H({
1803
1805
  maxHeight: 0,
1804
1806
  maxWidth: 0
1805
- }), B = `tpl-locale-popover-${ue()}`, V = I(() => mr(i?.activeLocale?.value ?? "")), W = I(() => mr(i?.content.value.settings.locale ?? "en"));
1807
+ }), B = `tpl-locale-popover-${de()}`, V = I(() => gr(i?.activeLocale?.value ?? "")), W = I(() => gr(i?.content.value.settings.locale ?? "en"));
1806
1808
  function K(e, t) {
1807
1809
  switch (e) {
1808
1810
  case "tags-differ": return d.localization.tagsDiffer;
1809
1811
  case "hidden": return f(d.localization.hidden, { language: V.value });
1810
1812
  case "changed": return f(d.localization.changed, { language: V.value });
1811
- case "default-stale": return hr(d.localization.staleLanguages, t, l);
1812
- case "missing": return t === 1 ? d.localization.notTranslated : hr(d.localization.notTranslatedCount, t, l);
1813
- default: return t === 1 ? d.localization.outOfDate : hr(d.localization.staleCount, t, l);
1813
+ case "default-stale": return _r(d.localization.staleLanguages, t, l);
1814
+ case "missing": return t === 1 ? d.localization.notTranslated : _r(d.localization.notTranslatedCount, t, l);
1815
+ default: return t === 1 ? d.localization.outOfDate : _r(d.localization.staleCount, t, l);
1814
1816
  }
1815
1817
  }
1816
- let ne = I(() => K(n.state, n.count)), q = I(() => n.popoverState ?? n.state), J = I(() => n.popoverCount ?? n.count), re = I(() => K(q.value, J.value)), ie = I(() => n.state === "hidden" ? Qn : n.state === "changed" ? Yn : n.state === "default-stale" ? cr : n.state === "stale" ? Zn : ar), ae = I(() => q.value === "default-stale" || (q.value === "missing" || q.value === "stale") && J.value > 1), Y = I(() => n.editable && n.eligibleGaps && o?.isAvailable.value);
1817
- function X(e = !1) {
1818
+ let ne = I(() => K(n.state, n.count)), q = I(() => n.popoverState ?? n.state), re = I(() => n.popoverCount ?? n.count), ie = I(() => K(q.value, re.value)), ae = I(() => n.state === "hidden" ? er : n.state === "changed" ? Zn : n.state === "default-stale" ? ur : n.state === "stale" ? $n : sr), oe = I(() => q.value === "default-stale" || (q.value === "missing" || q.value === "stale") && re.value > 1), J = I(() => n.editable && n.eligibleGaps && o?.isAvailable.value);
1819
+ function Y(e = !1) {
1818
1820
  x.value = !1, S.value = !1, F = null, e && y.value?.focus({ preventScroll: !0 });
1819
1821
  }
1820
- async function Z() {
1821
- if (x.value) return X();
1822
- h.value && (x.value = !0, await Q());
1822
+ async function X() {
1823
+ if (x.value) return Y();
1824
+ h.value && (x.value = !0, await Z());
1823
1825
  }
1824
- async function Q() {
1826
+ async function Z() {
1825
1827
  let e = h.value;
1826
1828
  if (!e || !x.value) return;
1827
1829
  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);
@@ -1841,53 +1843,53 @@ var Ba = [
1841
1843
  }), await j(), x.value && (S.value ? T.value : b.value)?.focus({ preventScroll: !0 });
1842
1844
  }
1843
1845
  u(S, async () => {
1844
- x.value && (await Q(), x.value && !S.value && C.value?.focus({ preventScroll: !0 }));
1846
+ x.value && (await Z(), x.value && !S.value && C.value?.focus({ preventScroll: !0 }));
1845
1847
  });
1846
- function oe(e) {
1848
+ function se(e) {
1847
1849
  let t = e.composedPath();
1848
- !t.includes(y.value) && !t.includes(b.value) && X();
1850
+ !t.includes(y.value) && !t.includes(b.value) && Y();
1849
1851
  }
1850
- function se(e) {
1852
+ function ce(e) {
1851
1853
  if (e.composedPath().includes(b.value)) return;
1852
1854
  let t = y.value?.getBoundingClientRect();
1853
- t && F && t.top === F.top && t.right === F.right || X();
1855
+ t && F && t.top === F.top && t.right === F.right || Y();
1854
1856
  }
1855
- function ce() {
1856
- m.removeEventListener("click", oe, !0), m.removeEventListener("scroll", se, !0);
1857
+ function le() {
1858
+ m.removeEventListener("click", se, !0), m.removeEventListener("scroll", ce, !0);
1857
1859
  }
1858
1860
  u(x, (e) => {
1859
- ce(), e ? (m.addEventListener("click", oe, !0), m.addEventListener("scroll", se, !0)) : r("target", null);
1861
+ le(), e ? (m.addEventListener("click", se, !0), m.addEventListener("scroll", ce, !0)) : r("target", null);
1860
1862
  }, { flush: "sync" }), u(q, () => {
1861
- S.value = !1, x.value && Q();
1863
+ S.value = !1, x.value && Z();
1862
1864
  }), u([
1863
1865
  () => n.blockId,
1864
1866
  () => n.state,
1865
1867
  () => i?.activeLocale?.value,
1866
1868
  () => i?.state.template?.id,
1867
1869
  () => i?.loadVersion?.value
1868
- ], () => X()), _(ce);
1869
- let le = (e) => {
1870
- (x.value || h.value) && (r("target", e ?? null), x.value || Z());
1870
+ ], () => Y()), _(le);
1871
+ let ue = (e) => {
1872
+ (x.value || h.value) && (r("target", e ?? null), x.value || X());
1871
1873
  };
1872
1874
  u(() => n.blockId, (e, t) => {
1873
- t && s?.get(t) === le && s.delete(t), s?.set(e, le);
1875
+ t && s?.get(t) === ue && s.delete(t), s?.set(e, ue);
1874
1876
  }, { immediate: !0 }), _(() => {
1875
- s?.get(n.blockId) === le && s.delete(n.blockId);
1877
+ s?.get(n.blockId) === ue && s.delete(n.blockId);
1876
1878
  });
1877
- function de() {
1878
- i?.keepTranslations?.(n.blockId, n.stale), X(!0);
1879
+ function Q() {
1880
+ i?.keepTranslations?.(n.blockId, n.stale), Y(!0);
1879
1881
  }
1880
1882
  function fe(e) {
1881
- i?.resetLocaleFields?.(n.blockId, e), X(!0);
1883
+ i?.resetLocaleFields?.(n.blockId, e), Y(!0);
1882
1884
  }
1883
1885
  function pe() {
1884
- i?.setBlockHidden?.(n.blockId, !1), X(!0);
1886
+ i?.setBlockHidden?.(n.blockId, !1), Y(!0);
1885
1887
  }
1886
1888
  function me(e) {
1887
- i?.setActiveLocale?.(e), X();
1889
+ i?.setActiveLocale?.(e), Y();
1888
1890
  }
1889
1891
  function he() {
1890
- Y.value && !o?.running.value && (q.value === "tags-differ" && n.replacesCurrent ? S.value = !0 : o?.translate({
1892
+ J.value && !o?.running.value && (q.value === "tags-differ" && n.replacesCurrent ? S.value = !0 : o?.translate({
1891
1893
  only: q.value === "tags-differ" ? "all" : "gaps",
1892
1894
  blockId: n.blockId
1893
1895
  }));
@@ -1896,10 +1898,10 @@ var Ba = [
1896
1898
  S.value = !1;
1897
1899
  }
1898
1900
  function _e() {
1899
- S.value ? ge() : X(!0);
1901
+ S.value ? ge() : Y(!0);
1900
1902
  }
1901
1903
  function ve() {
1902
- Y.value && !o?.running.value && n.translationCount && (S.value = !1, o?.translate({
1904
+ J.value && !o?.running.value && n.translationCount && (S.value = !1, o?.translate({
1903
1905
  only: "all",
1904
1906
  blockId: n.blockId
1905
1907
  }));
@@ -1916,13 +1918,13 @@ var Ba = [
1916
1918
  "aria-controls": x.value ? B : void 0,
1917
1919
  "aria-haspopup": "dialog",
1918
1920
  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)]",
1919
- onClick: M(Z, ["stop"]),
1920
- onKeydown: [E(M(Z, ["stop", "prevent"]), ["enter"]), E(M(_e, ["stop", "prevent"]), ["esc"])]
1921
- }, [(c(), A(a(ie.value), {
1921
+ onClick: M(X, ["stop"]),
1922
+ onKeydown: [E(M(X, ["stop", "prevent"]), ["enter"]), E(M(_e, ["stop", "prevent"]), ["esc"])]
1923
+ }, [(c(), A(a(ae.value), {
1922
1924
  size: 12,
1923
1925
  "stroke-width": 2,
1924
1926
  "aria-hidden": "true"
1925
- }))], 40, Ba), D(h) && x.value ? (c(), A(ee, {
1927
+ }))], 40, Ha), D(h) && x.value ? (c(), A(ee, {
1926
1928
  key: 0,
1927
1929
  to: D(h)
1928
1930
  }, [N("div", {
@@ -1930,7 +1932,7 @@ var Ba = [
1930
1932
  ref_key: "popover",
1931
1933
  ref: b,
1932
1934
  role: "dialog",
1933
- "aria-label": S.value ? void 0 : re.value,
1935
+ "aria-label": S.value ? void 0 : ie.value,
1934
1936
  "aria-labelledby": S.value ? `${B}-question` : void 0,
1935
1937
  "aria-describedby": S.value ? `${B}-warning` : void 0,
1936
1938
  tabindex: "-1",
@@ -1948,80 +1950,80 @@ var Ba = [
1948
1950
  N("h3", {
1949
1951
  id: `${B}-question`,
1950
1952
  class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
1951
- }, P(D(hr)(D(d).localization.translationConfirmation, e.translationCount ?? 0, D(l))), 9, Ha),
1953
+ }, P(D(_r)(D(d).localization.translationConfirmation, e.translationCount ?? 0, D(l))), 9, Wa),
1952
1954
  N("p", {
1953
1955
  id: `${B}-warning`,
1954
1956
  class: "tpl:m-0 tpl:text-[var(--tpl-text-muted)]"
1955
- }, P(D(f)(D(d).localization.translationDescription, { language: V.value })), 9, Ua),
1956
- N("div", Wa, [N("button", {
1957
+ }, P(D(f)(D(d).localization.translationDescription, { language: V.value })), 9, Ga),
1958
+ N("div", Ka, [N("button", {
1957
1959
  ref_key: "confirmationCancel",
1958
1960
  ref: T,
1959
1961
  type: "button",
1960
1962
  "data-testid": "translation-confirm-cancel",
1961
- class: O(D(_r)),
1963
+ class: O(D(yr)),
1962
1964
  onClick: ge
1963
1965
  }, P(D(d).localization.cancel), 3), N("button", {
1964
1966
  type: "button",
1965
1967
  "data-testid": "translation-confirm",
1966
- class: O(D(vr)),
1967
- disabled: !Y.value || !!D(o)?.running.value || !e.translationCount,
1968
+ class: O(D(br)),
1969
+ disabled: !J.value || !!D(o)?.running.value || !e.translationCount,
1968
1970
  onClick: ve
1969
- }, P(D(hr)(D(d).localization.translateAllFields, e.translationCount ?? 0, D(l))), 11, Ga)])
1971
+ }, P(D(_r)(D(d).localization.translateAllFields, e.translationCount ?? 0, D(l))), 11, qa)])
1970
1972
  ], 64)) : (c(), w(U, { key: 1 }, [
1971
- ae.value ? (c(), w("p", Ka, P(re.value), 1)) : k("", !0),
1972
- q.value === "missing" ? (c(), w("p", qa, P(D(f)(D(d).localization.missingExplanation, { default: W.value })), 1)) : q.value === "stale" ? (c(), w(U, { key: 2 }, [N("p", Ja, P(D(f)(D(d).localization.staleExplanation, { default: W.value })), 1), N("p", Ya, P(D(f)(D(d).localization.currentExcerpt, { excerpt: e.excerpt })), 1)], 64)) : q.value === "tags-differ" ? (c(), w("p", Xa, P(D(f)(D(d).localization.tagsDifferExplanation, { default: W.value })), 1)) : q.value === "changed" ? (c(), w("p", Za, P(D(hr)(D(d).localization.changedProperties, J.value, D(l), { default: W.value })), 1)) : q.value === "hidden" ? (c(), w("p", Qa, P(D(f)(D(d).localization.hiddenExplanation, { language: V.value })), 1)) : (c(), w("ul", $a, [(c(!0), w(U, null, p(e.staleLocales, (e) => (c(), w("li", {
1973
+ oe.value ? (c(), w("p", Ja, P(ie.value), 1)) : k("", !0),
1974
+ q.value === "missing" ? (c(), w("p", Ya, P(D(f)(D(d).localization.missingExplanation, { default: W.value })), 1)) : q.value === "stale" ? (c(), w(U, { key: 2 }, [N("p", Xa, P(D(f)(D(d).localization.staleExplanation, { default: W.value })), 1), N("p", Za, P(D(f)(D(d).localization.currentExcerpt, { excerpt: e.excerpt })), 1)], 64)) : q.value === "tags-differ" ? (c(), w("p", Qa, P(D(f)(D(d).localization.tagsDifferExplanation, { default: W.value })), 1)) : q.value === "changed" ? (c(), w("p", $a, P(D(_r)(D(d).localization.changedProperties, re.value, D(l), { default: W.value })), 1)) : q.value === "hidden" ? (c(), w("p", eo, P(D(f)(D(d).localization.hiddenExplanation, { language: V.value })), 1)) : (c(), w("ul", to, [(c(!0), w(U, null, p(e.staleLocales, (e) => (c(), w("li", {
1973
1975
  key: e,
1974
1976
  class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3"
1975
- }, [N("span", null, P(D(mr)(e)), 1), N("button", {
1977
+ }, [N("span", null, P(D(gr)(e)), 1), N("button", {
1976
1978
  type: "button",
1977
- class: O(D(gr)),
1979
+ class: O(D(vr)),
1978
1980
  onClick: (t) => me(e)
1979
- }, P(D(d).localization.open), 11, eo)]))), 128))])),
1980
- e.editable && q.value !== "default-stale" ? (c(), w("div", to, [
1981
- Y.value && (q.value === "missing" || q.value === "stale" || q.value === "tags-differ") ? (c(), w("button", {
1981
+ }, P(D(d).localization.open), 11, no)]))), 128))])),
1982
+ e.editable && q.value !== "default-stale" ? (c(), w("div", ro, [
1983
+ J.value && (q.value === "missing" || q.value === "stale" || q.value === "tags-differ") ? (c(), w("button", {
1982
1984
  key: 0,
1983
1985
  type: "button",
1984
1986
  ref_key: "retranslate",
1985
1987
  ref: C,
1986
1988
  "data-testid": q.value === "missing" ? "locale-translate" : "locale-retranslate",
1987
- class: O(D(_r)),
1989
+ class: O(D(yr)),
1988
1990
  disabled: !!D(o)?.running.value,
1989
1991
  onClick: he
1990
- }, P(q.value === "missing" ? D(d).localization.translate : D(d).localization.retranslate), 11, no)) : k("", !0),
1992
+ }, P(q.value === "missing" ? D(d).localization.translate : D(d).localization.retranslate), 11, io)) : k("", !0),
1991
1993
  q.value === "stale" || q.value === "tags-differ" ? (c(), w(U, { key: 1 }, [q.value === "stale" ? (c(), w("button", {
1992
1994
  key: 0,
1993
1995
  type: "button",
1994
1996
  "data-testid": "locale-keep",
1995
- class: O(D(Y.value ? gr : _r)),
1996
- onClick: de
1997
+ class: O(D(J.value ? vr : yr)),
1998
+ onClick: Q
1997
1999
  }, P(D(d).localization.keep), 3)) : k("", !0), N("button", {
1998
2000
  type: "button",
1999
2001
  "data-testid": "locale-use-default",
2000
- class: O(D(q.value === "tags-differ" && !Y.value ? _r : gr)),
2002
+ class: O(D(q.value === "tags-differ" && !J.value ? yr : vr)),
2001
2003
  onClick: n[0] ||= (t) => fe(q.value === "tags-differ" ? e.tagsDiffer ?? [] : e.stale)
2002
2004
  }, P(D(f)(D(d).localization.useDefaultLanguage, { default: W.value })), 3)], 64)) : k("", !0),
2003
2005
  q.value === "changed" ? (c(), w("button", {
2004
2006
  key: 2,
2005
2007
  type: "button",
2006
2008
  "data-testid": "locale-reset",
2007
- class: O(D(_r)),
2009
+ class: O(D(yr)),
2008
2010
  onClick: n[1] ||= (t) => fe(e.setPaths)
2009
2011
  }, P(D(d).localization.resetChanges), 3)) : k("", !0),
2010
2012
  q.value === "hidden" ? (c(), w("button", {
2011
2013
  key: 3,
2012
2014
  type: "button",
2013
2015
  "data-testid": "locale-show",
2014
- class: O(D(_r)),
2016
+ class: O(D(yr)),
2015
2017
  onClick: pe
2016
2018
  }, P(D(d).localization.show), 3)) : k("", !0)
2017
2019
  ])) : k("", !0)
2018
- ], 64))], 44, Va)], 8, ["to"])) : k("", !0)], 64));
2020
+ ], 64))], 44, Ua)], 8, ["to"])) : k("", !0)], 64));
2019
2021
  }
2020
- }), [["__scopeId", "data-v-3343ae7d"]]), io = /* @__PURE__ */ o({
2022
+ }), [["__scopeId", "data-v-3343ae7d"]]), oo = /* @__PURE__ */ o({
2021
2023
  __name: "LocaleMarkers",
2022
2024
  props: { block: {} },
2023
2025
  setup(e) {
2024
- let t = e, n = g(vn, null), r = g(Pt, void 0), i = g($t, []), a = g(St, le.liquid), o = g(en, I(() => /* @__PURE__ */ new Set())), s = I(() => n?.activeLocale?.value), l = I(() => s.value ? t.block.l10n?.[s.value] : void 0), d = I(() => ({
2026
+ let t = e, n = g(bn, null), r = g(Ft, void 0), i = g(tn, []), a = g(Ct, Q.liquid), o = g(nn, I(() => /* @__PURE__ */ new Set())), s = I(() => n?.activeLocale?.value), l = I(() => s.value ? t.block.l10n?.[s.value] : void 0), d = I(() => ({
2025
2027
  blocks: [t.block.type === "section" || t.block.type === "wrapper" ? {
2026
2028
  ...t.block,
2027
2029
  children: []
@@ -2030,14 +2032,14 @@ var Ba = [
2030
2032
  locale: n.content.value.settings.locale,
2031
2033
  locales: n.content.value.settings.locales
2032
2034
  }
2033
- })), f = I(() => n && s.value && !o.value.has(s.value) ? $e(d.value, s.value, i) : {
2035
+ })), f = I(() => n && s.value && !o.value.has(s.value) ? fe(d.value, s.value, i) : {
2034
2036
  missing: [],
2035
2037
  stale: [],
2036
2038
  translated: []
2037
2039
  }), p = I(() => f.value.stale.map((e) => e.slice(t.block.id.length + 1))), m = I(() => f.value.translated.flatMap((e) => {
2038
- let n = e.slice(t.block.id.length + 1), r = ve(t.block, n), i = l.value?.text?.[n]?.value, o = t.block.type === "html" || ye[t.block.type]?.includes(n) ? "html" : "text";
2039
- return typeof r == "string" && i !== void 0 && za(r, i, a, o) ? [n] : [];
2040
- })), h = H(null), _ = I(() => n && s.value && !o.value.has(s.value) ? X(d.value, s.value, {
2040
+ let n = e.slice(t.block.id.length + 1), r = oe(t.block, n), i = l.value?.text?.[n]?.value, o = t.block.type === "html" || xe[t.block.type]?.includes(n) ? "html" : "text";
2041
+ return typeof r == "string" && i !== void 0 && Va(r, i, a, o) ? [n] : [];
2042
+ })), h = H(null), _ = I(() => n && s.value && !o.value.has(s.value) ? Y(d.value, s.value, {
2041
2043
  syntax: a,
2042
2044
  definitions: i,
2043
2045
  doNotTranslate: r?.doNotTranslate,
@@ -2047,9 +2049,9 @@ var Ba = [
2047
2049
  let n = e.slice(t.block.id.length + 1);
2048
2050
  return f.value.translated.includes(e) && !m.value.includes(n);
2049
2051
  })), y = I(() => Object.keys(l.value?.set ?? {}).filter((e) => {
2050
- let n = e.split("."), r = n.pop(), i = n.length ? ve(t.block, n.join(".")) : t.block;
2051
- return Array.isArray(i) ? ve(i, r) !== void 0 : i !== void 0;
2052
- })), b = I(() => !s.value && n ? (n.content.value.settings.locales ?? []).filter((e) => !o.value.has(e) && $e(d.value, e, i).stale.length > 0) : []), x = I(() => s.value ? o.value.has(s.value) ? null : l.value?.hidden ? "hidden" : f.value.missing.length ? "missing" : p.value.length ? "stale" : m.value.length ? "tags-differ" : y.value.length ? "changed" : null : b.value.length ? "default-stale" : null);
2052
+ let n = e.split("."), r = n.pop(), i = n.length ? oe(t.block, n.join(".")) : t.block;
2053
+ return Array.isArray(i) ? oe(i, r) !== void 0 : i !== void 0;
2054
+ })), b = I(() => !s.value && n ? (n.content.value.settings.locales ?? []).filter((e) => !o.value.has(e) && fe(d.value, e, i).stale.length > 0) : []), x = I(() => s.value ? o.value.has(s.value) ? null : l.value?.hidden ? "hidden" : f.value.missing.length ? "missing" : p.value.length ? "stale" : m.value.length ? "tags-differ" : y.value.length ? "changed" : null : b.value.length ? "default-stale" : null);
2053
2055
  function S(e) {
2054
2056
  return e === "missing" ? f.value.missing.length : e === "stale" ? p.value.length : e === "tags-differ" ? m.value.length : e === "default-stale" ? b.value.length : y.value.length;
2055
2057
  }
@@ -2058,12 +2060,12 @@ var Ba = [
2058
2060
  h.value = null;
2059
2061
  });
2060
2062
  let E = I(() => {
2061
- let e = ve(t.block, p.value[0] ?? "");
2063
+ let e = oe(t.block, p.value[0] ?? "");
2062
2064
  if (typeof e != "string") return "";
2063
2065
  let n = e.split(/<[^>]*>/).join("");
2064
2066
  return Array.from(n).slice(0, 60).join("");
2065
2067
  });
2066
- return (t, n) => D(r) && x.value ? (c(), A(ro, {
2068
+ return (t, n) => D(r) && x.value ? (c(), A(ao, {
2067
2069
  key: 0,
2068
2070
  "block-id": e.block.id,
2069
2071
  state: x.value,
@@ -2097,21 +2099,21 @@ var Ba = [
2097
2099
  "editable"
2098
2100
  ])) : k("", !0);
2099
2101
  }
2100
- }), ao = [
2102
+ }), so = [
2101
2103
  "data-block-id",
2102
2104
  "data-block-type",
2103
2105
  "data-tpl-picked"
2104
- ], oo = ["aria-label"], so = ["data-lock-holder"], co = ["aria-label"], lo = [
2106
+ ], co = ["aria-label"], lo = ["data-lock-holder"], uo = ["aria-label"], fo = [
2105
2107
  "aria-label",
2106
2108
  "aria-pressed",
2107
2109
  "title"
2108
- ], uo = ["aria-label", "title"], fo = ["aria-label", "title"], po = ["aria-label", "title"], mo = {
2110
+ ], po = ["aria-label", "title"], mo = ["aria-label", "title"], ho = ["aria-label", "title"], go = {
2109
2111
  key: 3,
2110
2112
  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"
2111
- }, ho = { 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)]" }, go = {
2113
+ }, _o = { 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)]" }, vo = {
2112
2114
  key: 4,
2113
2115
  class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
2114
- }, _o = ["aria-label", "title"], vo = /*#__PURE__*/ yr(/* @__PURE__ */ o({
2116
+ }, yo = ["aria-label", "title"], bo = /*#__PURE__*/ xr(/* @__PURE__ */ o({
2115
2117
  __name: "BlockWrapper",
2116
2118
  props: {
2117
2119
  block: {},
@@ -2124,33 +2126,33 @@ var Ba = [
2124
2126
  },
2125
2127
  emits: ["select"],
2126
2128
  setup(t, { emit: n }) {
2127
- let i = b(() => import("./BlockIssueBadge-BKO4Mr8f.js")), a = t, o = I(() => a.displayBlock ?? a.block), s = n, { t: l, format: d } = G(), f = g(yn, null), p = H(null), m = I(() => f?.liftedBlockId.value === a.block.id), h = I(() => m.value ? d(l.blockActions.dragLifted, { block: a.block.type }) : l.blockActions.drag);
2129
+ let i = b(() => import("./BlockIssueBadge-Dp06vQd3.js")), a = t, o = I(() => a.displayBlock ?? a.block), s = n, { t: l, format: d } = G(), f = g(xn, null), p = H(null), m = I(() => f?.liftedBlockId.value === a.block.id), h = I(() => m.value ? d(l.blockActions.dragLifted, { block: a.block.type }) : l.blockActions.drag);
2128
2130
  async function _() {
2129
2131
  await j(), p.value?.focus();
2130
2132
  }
2131
2133
  function v(e) {
2132
2134
  f && (e.key === " " || e.key === "Enter" ? (e.preventDefault(), e.stopPropagation(), m.value ? f.drop(a.block.id) : f.lift(a.block.id)) : m.value && (e.key === "Escape" ? (e.preventDefault(), e.stopPropagation(), f.cancel(), _()) : e.key === "ArrowUp" ? (e.preventDefault(), e.stopPropagation(), f.moveUp(a.block.id), _()) : e.key === "ArrowDown" && (e.preventDefault(), e.stopPropagation(), f.moveDown(a.block.id), _())));
2133
2135
  }
2134
- let S = I(() => !a.viewport || !o.value.visibility ? !1 : o.value.visibility[a.viewport] === !1), C = I(() => !!(ue?.activeLocale?.value && a.block.l10n?.[ue.activeLocale.value]?.hidden)), E = I(() => a.previewMode === !0 && (S.value || C.value)), ee = I(() => a.viewport ? {
2136
+ let S = I(() => !a.viewport || !o.value.visibility ? !1 : o.value.visibility[a.viewport] === !1), C = I(() => !!(Q?.activeLocale?.value && a.block.l10n?.[Q.activeLocale.value]?.hidden)), E = I(() => a.previewMode === !0 && (S.value || C.value)), ee = I(() => a.viewport ? {
2135
2137
  desktop: l.viewport.desktop,
2136
2138
  mobile: l.viewport.mobile
2137
- }[a.viewport] ?? a.viewport : ""), F = I(() => !!o.value.displayCondition), R = g(mn, null), z = g(sn, null), B = g(Zt, {}), V = I(() => B.savedBlocks?.isPicking.value === !0), U = I(() => !a.nested && B.savedBlocks?.isAvailable.value === !0 && B.savedBlocks?.canCreate.value === !0), te = I(() => a.isSelected && !V.value), K = I(() => B.comments?.getBlockCount(a.block.id) ?? 0), ne = H(null), q = H(null), J = H(null), re = H(null), ie = H({
2139
+ }[a.viewport] ?? a.viewport : ""), F = I(() => !!o.value.displayCondition), R = g(gn, null), z = g(ln, null), B = g(Qt, {}), V = I(() => B.savedBlocks?.isPicking.value === !0), U = I(() => !a.nested && B.savedBlocks?.isAvailable.value === !0 && B.savedBlocks?.canCreate.value === !0), te = I(() => a.isSelected && !V.value), K = I(() => B.comments?.getBlockCount(a.block.id) ?? 0), ne = H(null), q = H(null), re = H(null), ie = H(null), ae = H({
2138
2140
  left: "calc(100% + 8px)",
2139
2141
  top: "50%"
2140
- }), ae = H(!1), Y = I(() => q.value ?? re.value), X = I(() => Y.value?.closest(".tpl-body"));
2141
- function Z() {
2142
- let e = ae.value, t = q.value, n = re.value, r = ne.value;
2142
+ }), oe = H(!1), J = I(() => q.value ?? ie.value), Y = I(() => J.value?.closest(".tpl-body"));
2143
+ function X() {
2144
+ let e = oe.value, t = q.value, n = ie.value, r = ne.value;
2143
2145
  if (!t && !n || !r?.offsetWidth) return;
2144
- let i = r.getBoundingClientRect(), a = i.width / r.offsetWidth || 1, o = X.value, s = o ? (o.getBoundingClientRect().left - i.left) / a + o.clientLeft : -Infinity, c = o ? s + o.clientWidth : Infinity, l = getComputedStyle(r).direction === "rtl";
2146
+ let i = r.getBoundingClientRect(), a = i.width / r.offsetWidth || 1, o = Y.value, s = o ? (o.getBoundingClientRect().left - i.left) / a + o.clientLeft : -Infinity, c = o ? s + o.clientWidth : Infinity, l = getComputedStyle(r).direction === "rtl";
2145
2147
  if (n?.offsetWidth) {
2146
2148
  let t = l ? -4 - n.offsetWidth : r.offsetWidth + 4, i = t >= s + 4 && t + n.offsetWidth + 4 <= c;
2147
2149
  if (e === i) {
2148
- ae.value = !i, j(Z);
2150
+ oe.value = !i, j(X);
2149
2151
  return;
2150
2152
  }
2151
2153
  }
2152
2154
  if (!t?.offsetWidth) return;
2153
- let u = Math.max(s + 4, Math.min(r.offsetWidth + 8, c - t.offsetWidth - 4)), d = J.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%";
2155
+ let u = Math.max(s + 4, Math.min(r.offsetWidth + 8, c - t.offsetWidth - 4)), d = re.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%";
2154
2156
  if (u >= r.offsetWidth && n?.offsetWidth && !e && !l) {
2155
2157
  let e = (n.getBoundingClientRect().bottom - i.top) / a + 4 + t.offsetHeight / 2;
2156
2158
  e > r.offsetHeight / 2 && (m = `${e}px`);
@@ -2162,27 +2164,27 @@ var Ba = [
2162
2164
  u = Math.max(s + 4, Math.min(n, c - t.offsetWidth - 4));
2163
2165
  }
2164
2166
  }
2165
- (ie.value.left !== `${u}px` || ie.value.top !== m) && (ie.value = {
2167
+ (ae.value.left !== `${u}px` || ae.value.top !== m) && (ae.value = {
2166
2168
  left: `${u}px`,
2167
2169
  top: m
2168
2170
  });
2169
2171
  }
2170
- x(Z), r(I(() => Y.value ? [
2172
+ x(X), r(I(() => J.value ? [
2171
2173
  ne.value,
2172
2174
  q.value,
2173
- J.value,
2174
2175
  re.value,
2175
- X.value
2176
- ].filter((e) => !!e) : []), Z), e(X, "scroll", Z, { passive: !0 });
2177
- let Q = I(() => B.collaboration?.lockOf(a.block.id) ?? null), oe = I(() => Q.value?.holder.type === "guest" ? l.collaboration.guest : Q.value?.holder.name ?? ""), se = I(() => B.collaboration?.agentHighlightOf(a.block.id) ?? B.ai?.highlightOf(a.block.id) ?? null), ce = Bn(() => o.value.type === "section" ? o.value.backgroundImage : void 0), le = Bn(() => o.value.type === "section" ? o.value.wrapper?.backgroundImage : void 0), ue = g(vn, null), de = ue ? yt(ue) : null, fe = g(rn, null) ?? de?.content ?? null;
2178
- u([() => ue?.activeLocale?.value, () => de && Ie(de.settings.value)], Z, { flush: "post" });
2179
- let pe = g(Rt, void 0), me = I(() => Bi(o.value, {
2180
- backgroundImageUrl: ce.value,
2181
- heroBoxWidth: Mn(o.value) ? In(o.value, fe?.value, pe) : void 0
2182
- })), he = I(() => Ki(o.value, { backgroundImageUrl: le.value })), ge = I(() => {
2176
+ ie.value,
2177
+ Y.value
2178
+ ].filter((e) => !!e) : []), X), e(Y, "scroll", X, { passive: !0 });
2179
+ let Z = I(() => B.collaboration?.lockOf(a.block.id) ?? null), se = I(() => Z.value?.holder.type === "guest" ? l.collaboration.guest : Z.value?.holder.name ?? ""), ce = I(() => B.collaboration?.agentHighlightOf(a.block.id) ?? B.ai?.highlightOf(a.block.id) ?? null), le = Hn(() => o.value.type === "section" ? o.value.backgroundImage : void 0), ue = Hn(() => o.value.type === "section" ? o.value.wrapper?.backgroundImage : void 0), Q = g(bn, null), de = Q ? bt(Q) : null, fe = g(on, null) ?? de?.content ?? null;
2180
+ u([() => Q?.activeLocale?.value, () => de && He(de.settings.value)], X, { flush: "post" });
2181
+ let pe = g(zt, void 0), me = I(() => Hi(o.value, {
2182
+ backgroundImageUrl: le.value,
2183
+ heroBoxWidth: Pn(o.value) ? Rn(o.value, fe?.value, pe) : void 0
2184
+ })), he = I(() => Ji(o.value, { backgroundImageUrl: ue.value })), ge = I(() => {
2183
2185
  let e = o.value;
2184
2186
  return e.type === "section" && e.wrapper?.fullWidth === !0 ? e : void 0;
2185
- }), _e = I(() => Gi(ge.value?.wrapper?.padding));
2187
+ }), _e = I(() => qi(ge.value?.wrapper?.padding));
2186
2188
  function ve(e) {
2187
2189
  a.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), s("select"));
2188
2190
  }
@@ -2216,44 +2218,44 @@ var Ba = [
2216
2218
  }, [
2217
2219
  N("div", {
2218
2220
  ref_key: "badgesElement",
2219
- ref: J,
2221
+ ref: re,
2220
2222
  class: "tpl-block-badges tpl:absolute tpl:top-1 tpl:inset-e-1 tpl:z-10 tpl:flex tpl:gap-1"
2221
2223
  }, [
2222
2224
  K.value > 0 && !S.value ? (c(), w("button", {
2223
2225
  key: 0,
2224
2226
  ref_key: "commentElement",
2225
- ref: re,
2226
- class: O(["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)]", ae.value ? void 0 : "tpl:absolute tpl:-top-2 tpl:inset-s-full tpl:ms-2"]),
2227
+ ref: ie,
2228
+ class: O(["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)]", oe.value ? void 0 : "tpl:absolute tpl:-top-2 tpl:inset-s-full tpl:ms-2"]),
2227
2229
  "aria-label": D(d)(D(l).blockActions.comments, { count: String(K.value) }),
2228
2230
  onClick: n[0] ||= M((e) => D(B).comments?.openForBlock(t.block.id), ["stop"])
2229
- }, [W(D(lr), {
2231
+ }, [W(D(dr), {
2230
2232
  size: 12,
2231
2233
  "stroke-width": 2.5
2232
- }), T(" " + P(K.value), 1)], 10, oo)) : k("", !0),
2234
+ }), T(" " + P(K.value), 1)], 10, co)) : k("", !0),
2233
2235
  W(D(i), { "block-id": t.block.id }, null, 8, ["block-id"]),
2234
- t.previewMode ? k("", !0) : (c(), A(io, {
2236
+ t.previewMode ? k("", !0) : (c(), A(oo, {
2235
2237
  key: 1,
2236
2238
  block: t.block
2237
2239
  }, null, 8, ["block"]))
2238
2240
  ], 512),
2239
- Q.value ? (c(), w("div", {
2241
+ Z.value ? (c(), w("div", {
2240
2242
  key: 0,
2241
2243
  "data-testid": "block-lock",
2242
- "data-lock-holder": Q.value.holder.sessionId,
2244
+ "data-lock-holder": Z.value.holder.sessionId,
2243
2245
  class: "tpl-block-lock tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm",
2244
2246
  style: L({
2245
- outline: `2px solid ${Q.value.holder.color}`,
2247
+ outline: `2px solid ${Z.value.holder.color}`,
2246
2248
  outlineOffset: "-1px"
2247
2249
  })
2248
2250
  }, [N("span", {
2249
2251
  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",
2250
2252
  style: L({
2251
- backgroundColor: Q.value.holder.color,
2252
- color: D(br)(Q.value.holder.color)
2253
+ backgroundColor: Z.value.holder.color,
2254
+ color: D(Sr)(Z.value.holder.color)
2253
2255
  })
2254
- }, P(D(d)(D(l).collaboration.editing, { name: oe.value })), 5)], 12, so)) : k("", !0),
2255
- se.value === null ? k("", !0) : (c(), w("div", {
2256
- key: se.value,
2256
+ }, P(D(d)(D(l).collaboration.editing, { name: se.value })), 5)], 12, lo)) : k("", !0),
2257
+ ce.value === null ? k("", !0) : (c(), w("div", {
2258
+ key: ce.value,
2257
2259
  "data-testid": "block-agent-highlight",
2258
2260
  "aria-hidden": "true",
2259
2261
  class: "tpl-block-agent-highlight tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm"
@@ -2262,7 +2264,7 @@ var Ba = [
2262
2264
  key: 2,
2263
2265
  ref_key: "actionsElement",
2264
2266
  ref: q,
2265
- style: L(ie.value),
2267
+ style: L(ae.value),
2266
2268
  role: "toolbar",
2267
2269
  "aria-label": D(l).blockActions.drag,
2268
2270
  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)]"
@@ -2276,81 +2278,81 @@ var Ba = [
2276
2278
  "aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
2277
2279
  title: D(l).blockActions.drag,
2278
2280
  onKeydown: v
2279
- }, [W(D(fr), {
2281
+ }, [W(D(mr), {
2280
2282
  size: 14,
2281
2283
  "stroke-width": 1.5
2282
- })], 40, lo),
2284
+ })], 40, fo),
2283
2285
  N("button", {
2284
2286
  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",
2285
2287
  "aria-label": D(l).blockActions.duplicate,
2286
2288
  title: D(l).blockActions.duplicate,
2287
2289
  onClick: M(be, ["stop"])
2288
- }, [W(D(Jn), {
2290
+ }, [W(D(Xn), {
2289
2291
  size: 14,
2290
2292
  "stroke-width": 1.5
2291
- })], 8, uo),
2293
+ })], 8, po),
2292
2294
  U.value ? (c(), w("button", {
2293
2295
  key: 0,
2294
2296
  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",
2295
2297
  "aria-label": D(l).blockActions.saveAsBlock,
2296
2298
  title: D(l).blockActions.saveAsBlock,
2297
2299
  onClick: M(xe, ["stop"])
2298
- }, [W(D(nr), {
2300
+ }, [W(D(ir), {
2299
2301
  size: 14,
2300
2302
  "stroke-width": 1.5
2301
- })], 8, fo)) : k("", !0),
2303
+ })], 8, mo)) : k("", !0),
2302
2304
  N("button", {
2303
2305
  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",
2304
2306
  "aria-label": D(l).blockActions.delete,
2305
2307
  title: D(l).blockActions.delete,
2306
2308
  onClick: M(ye, ["stop"])
2307
- }, [W(D(or), {
2309
+ }, [W(D(cr), {
2308
2310
  size: 14,
2309
2311
  "stroke-width": 1.5
2310
- })], 8, po)
2311
- ], 12, co)) : k("", !0),
2312
- S.value ? (c(), w("div", mo, [N("span", ho, [W(D(Qn), {
2312
+ })], 8, ho)
2313
+ ], 12, uo)) : k("", !0),
2314
+ S.value ? (c(), w("div", go, [N("span", _o, [W(D(er), {
2313
2315
  size: 12,
2314
2316
  "stroke-width": 1.5
2315
2317
  }), T(" " + P(D(d)(D(l).blockActions.hiddenOnViewport, { viewport: ee.value })), 1)])])) : k("", !0),
2316
- F.value && !S.value ? (c(), w("div", go, [N("button", {
2318
+ F.value && !S.value ? (c(), w("div", vo, [N("button", {
2317
2319
  "data-testid": "condition-toggle",
2318
2320
  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)]",
2319
2321
  "aria-label": D(l).blockActions.conditionToggle,
2320
2322
  title: t.block.displayCondition?.label,
2321
2323
  onClick: M(Se, ["stop"])
2322
- }, [W(D($n), {
2324
+ }, [W(D(tr), {
2323
2325
  size: 12,
2324
2326
  "stroke-width": 2
2325
- })], 8, _o)])) : k("", !0),
2327
+ })], 8, yo)])) : k("", !0),
2326
2328
  he.value ? (c(), w("div", {
2327
2329
  key: 5,
2328
- class: O(["tpl-section-wrapper tpl-email-surface", D(Ii)(he.value)]),
2330
+ class: O(["tpl-section-wrapper tpl-email-surface", D(Ri)(he.value)]),
2329
2331
  style: L(he.value)
2330
2332
  }, [ge.value ? (c(), w("div", {
2331
2333
  key: 0,
2332
2334
  class: "tpl-band-frame",
2333
2335
  style: L(_e.value)
2334
2336
  }, [N("div", {
2335
- class: O(["tpl-block-content tpl-email-surface", D(Ii)(me.value)]),
2337
+ class: O(["tpl-block-content tpl-email-surface", D(Ri)(me.value)]),
2336
2338
  style: L(me.value)
2337
2339
  }, [y(e.$slots, "default", {}, void 0, !0)], 6)], 4)) : (c(), w("div", {
2338
2340
  key: 1,
2339
- class: O(["tpl-block-content tpl-email-surface", D(Ii)(me.value)]),
2341
+ class: O(["tpl-block-content tpl-email-surface", D(Ri)(me.value)]),
2340
2342
  style: L(me.value)
2341
2343
  }, [y(e.$slots, "default", {}, void 0, !0)], 6))], 6)) : (c(), w("div", {
2342
2344
  key: 6,
2343
- class: O(["tpl-block-content tpl-email-surface", D(Ii)(me.value)]),
2345
+ class: O(["tpl-block-content tpl-email-surface", D(Ri)(me.value)]),
2344
2346
  style: L(me.value)
2345
2347
  }, [y(e.$slots, "default", {}, void 0, !0)], 6))
2346
- ], 10, ao));
2348
+ ], 10, so));
2347
2349
  }
2348
2350
  }), [["__scopeId", "data-v-872194d3"]]);
2349
2351
  // src/utils/unwrapParagraph.ts
2350
- function yo(e) {
2352
+ function xo(e) {
2351
2353
  let t = /^\s*<p\b/.exec(e);
2352
2354
  if (!t) return e;
2353
- let n = qe(e, t[0].length);
2355
+ let n = st(e, t[0].length);
2354
2356
  if (n === -1) return e;
2355
2357
  let r = /<\/p>\s*$/.exec(e);
2356
2358
  if (!r || r.index <= n) return e;
@@ -2358,22 +2360,22 @@ function yo(e) {
2358
2360
  return /<\/p>\s*<p\b/i.test(i) ? e : i;
2359
2361
  }
2360
2362
  // src/components/blocks/TitleBlock.vue
2361
- var bo = /* @__PURE__ */ o({
2363
+ var So = /* @__PURE__ */ o({
2362
2364
  __name: "TitleBlock",
2363
2365
  props: {
2364
2366
  block: {},
2365
2367
  viewport: {}
2366
2368
  },
2367
2369
  setup(e) {
2368
- let t = e, n = b(() => import("./TitleEditor-EHW0lgG4.js")), r = on(Jt, "TitleBlock"), { isEditing: i, blockRef: o, toolbarPosition: s, resolvedContent: l, handleDoubleClick: u, handleEditorDone: d } = Pa(() => t.block.content), f = I(() => {
2370
+ let t = e, n = b(() => import("./TitleEditor-BI-9Nnj3.js")), r = yn(Yt, "TitleBlock"), { isEditing: i, blockRef: o, toolbarPosition: s, resolvedContent: l, handleDoubleClick: u, handleEditorDone: d } = Ia(() => t.block.content), f = I(() => {
2369
2371
  let e = {
2370
- fontSize: `${je[t.block.level]}px`,
2371
- lineHeight: String(xe),
2372
+ fontSize: `${dt[t.block.level]}px`,
2373
+ lineHeight: String(Z),
2372
2374
  fontWeight: "700",
2373
2375
  textAlign: t.block.textAlign
2374
2376
  };
2375
2377
  return t.block.color && (e.color = t.block.color), t.block.fontFamily && (e.fontFamily = r.resolveFontFamily(t.block.fontFamily)), e;
2376
- }), p = I(() => `h${t.block.level}`), m = I(() => qn(yo(l.value)));
2378
+ }), p = I(() => `h${t.block.level}`), m = I(() => Yn(xo(l.value)));
2377
2379
  return (t, r) => (c(), w("div", {
2378
2380
  ref_key: "blockRef",
2379
2381
  ref: o,
@@ -2399,14 +2401,14 @@ var bo = /* @__PURE__ */ o({
2399
2401
  innerHTML: m.value
2400
2402
  }, null, 8, ["innerHTML"]))], 36));
2401
2403
  }
2402
- }), xo = "hero", So = "#1f2937", Co = "#ffffff";
2403
- function wo(e, t) {
2404
- let n = dt("title", e);
2405
- n.color = Co, n.textAlign = "center";
2406
- let r = dt("paragraph", e);
2407
- r.content = `<p style="text-align: center"><span style="color: ${Co}">${To(t)}</span></p>`;
2408
- let i = dt("button", e);
2409
- return i.align = "center", he({
2404
+ }), Co = "hero", wo = "#1f2937", To = "#ffffff";
2405
+ function Eo(e, t) {
2406
+ let n = ft("title", e);
2407
+ n.color = To, n.textAlign = "center";
2408
+ let r = ft("paragraph", e);
2409
+ r.content = `<p style="text-align: center"><span style="color: ${To}">${Do(t)}</span></p>`;
2410
+ let i = ft("button", e);
2411
+ return i.align = "center", ve({
2410
2412
  columns: "1",
2411
2413
  children: [[
2412
2414
  n,
@@ -2424,28 +2426,28 @@ function wo(e, t) {
2424
2426
  bottom: 48,
2425
2427
  left: 24
2426
2428
  },
2427
- backgroundColor: So
2429
+ backgroundColor: wo
2428
2430
  }
2429
2431
  });
2430
2432
  }
2431
- function To(e) {
2433
+ function Do(e) {
2432
2434
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
2433
2435
  }
2434
2436
  // src/utils/sectionColumnDrop.ts
2435
- var Eo = /* @__PURE__ */ new Set(["section", xo]);
2436
- function Do(e) {
2437
- return e.dataset.blockType !== "section" && !Eo.has(e.dataset.paletteType ?? "");
2437
+ var Oo = /* @__PURE__ */ new Set(["section", Co]);
2438
+ function ko(e) {
2439
+ return e.dataset.blockType !== "section" && !Oo.has(e.dataset.paletteType ?? "");
2438
2440
  }
2439
2441
  // src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
2440
- var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2442
+ var Ao = { class: "tpl:relative tpl:w-full" }, jo = {
2441
2443
  key: 0,
2442
2444
  "data-testid": "hero-image-hint",
2443
2445
  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)]"
2444
- }, Ao = {
2446
+ }, Mo = {
2445
2447
  key: 0,
2446
2448
  "data-testid": "section-drop-hint",
2447
2449
  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)]"
2448
- }, jo = /* @__PURE__ */ o({
2450
+ }, No = /* @__PURE__ */ o({
2449
2451
  __name: "SectionBlock",
2450
2452
  props: {
2451
2453
  block: {},
@@ -2454,15 +2456,15 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2454
2456
  },
2455
2457
  setup(e) {
2456
2458
  let t = {
2457
- title: bo,
2458
- paragraph: Ia,
2459
- image: ka,
2460
- button: Zi,
2461
- divider: da,
2462
- custom: la
2463
- }, n = e, { t: r } = G(), o = on(vn, "SectionBlock"), { displayBlock: s } = yt(o), u = I(() => n.sourceBlock ?? n.block), m = g(en, I(() => /* @__PURE__ */ new Set()));
2464
- d(en, I(() => /* @__PURE__ */ new Set([...m.value, ...Object.entries(u.value.l10n ?? {}).filter(([, e]) => e.hidden).map(([e]) => e)])));
2465
- let h = g(sn, null), _ = g(an, null), v = g(Zt, {}), y = g(Ut, null), b = g(Kt, null);
2459
+ title: So,
2460
+ paragraph: Ra,
2461
+ image: ja,
2462
+ button: $i,
2463
+ divider: pa,
2464
+ custom: da
2465
+ }, n = e, { t: r } = G(), o = yn(bn, "SectionBlock"), { displayBlock: s } = bt(o), u = I(() => n.sourceBlock ?? n.block), m = g(nn, I(() => /* @__PURE__ */ new Set()));
2466
+ d(nn, I(() => /* @__PURE__ */ new Set([...m.value, ...Object.entries(u.value.l10n ?? {}).filter(([, e]) => e.hidden).map(([e]) => e)])));
2467
+ let h = g(ln, null), _ = g(sn, null), v = g(Qt, {}), y = g(Wt, null), b = g(qt, null);
2466
2468
  function x(e) {
2467
2469
  if (y?.value) return;
2468
2470
  let t = v.savedBlocks;
@@ -2513,7 +2515,7 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2513
2515
  }
2514
2516
  let R = I(() => {
2515
2517
  if (o.state.previewMode) return !1;
2516
- let e = Fe(n.block);
2518
+ let e = Ve(n.block);
2517
2519
  return e !== null && !e.applied && e.reason === "image";
2518
2520
  });
2519
2521
  function B(e) {
@@ -2523,10 +2525,10 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2523
2525
  return E(e).length === 0 && o.state.previewMode;
2524
2526
  }
2525
2527
  function K(e, t) {
2526
- y?.value || La(o, t, n.block.id, e);
2528
+ y?.value || za(o, t, n.block.id, e);
2527
2529
  }
2528
2530
  function ne(e) {
2529
- return ji(e, _, t);
2531
+ return Ni(e, _, t);
2530
2532
  }
2531
2533
  function q(e, t) {
2532
2534
  y?.value || e.type !== "custom" || o.updateBlock(e.id, {
@@ -2534,7 +2536,7 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2534
2536
  dataSourceFetched: t.dataSourceFetched
2535
2537
  });
2536
2538
  }
2537
- return (t, u) => (c(), w("div", Oo, [R.value ? (c(), w("div", ko, [N("span", null, P(D(r).section.heroAddImage), 1)])) : k("", !0), N("div", { class: O(["tpl:flex tpl:gap-0", { "tpl:flex-col": T.value }]) }, [(c(!0), w(U, null, p(C.value, (t, d) => (c(), w("div", {
2539
+ return (t, u) => (c(), w("div", Ao, [R.value ? (c(), w("div", jo, [N("span", null, P(D(r).section.heroAddImage), 1)])) : k("", !0), N("div", { class: O(["tpl:flex tpl:gap-0", { "tpl:flex-col": T.value }]) }, [(c(!0), w(U, null, p(C.value, (t, d) => (c(), w("div", {
2538
2540
  key: d,
2539
2541
  class: O(["tpl:relative tpl:flex tpl:flex-col tpl:rounded", B(d) ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
2540
2542
  style: L({ width: T.value ? "100%" : S.value[d] })
@@ -2544,7 +2546,7 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2544
2546
  group: {
2545
2547
  name: "blocks",
2546
2548
  pull: !0,
2547
- put: (e, t, n) => D(Do)(n)
2549
+ put: (e, t, n) => D(ko)(n)
2548
2550
  },
2549
2551
  animation: 150,
2550
2552
  "ghost-class": "tpl-ghost",
@@ -2558,12 +2560,12 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2558
2560
  "tpl:min-h-[60px]": F(d),
2559
2561
  "tpl:min-h-[34px]": te(d)
2560
2562
  }]),
2561
- onUpdate: (e) => !D(y) && D(La)(D(o), E(d), n.block.id, d, e),
2563
+ onUpdate: (e) => !D(y) && D(za)(D(o), E(d), n.block.id, d, e),
2562
2564
  onStart: (e) => M.value = d,
2563
2565
  onEnd: u[0] ||= (e) => M.value = null,
2564
2566
  "onUpdate:modelValue": (e) => K(d, e)
2565
2567
  }, {
2566
- default: l(() => [(c(!0), w(U, null, p(E(d), (t) => f((c(), w("div", { key: t.id }, [W(vo, {
2568
+ default: l(() => [(c(!0), w(U, null, p(E(d), (t) => f((c(), w("div", { key: t.id }, [W(bo, {
2567
2569
  block: t,
2568
2570
  "display-block": D(s)(t),
2569
2571
  "is-selected": D(o).state.selectedBlockId === t.id,
@@ -2600,14 +2602,14 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2600
2602
  "onUpdate",
2601
2603
  "onStart",
2602
2604
  "onUpdate:modelValue"
2603
- ]), B(d) ? (c(), w("div", Ao, [N("span", null, P(D(r).section.dropHere), 1)])) : k("", !0)], 6))), 128))], 2)]));
2605
+ ]), B(d) ? (c(), w("div", Mo, [N("span", null, P(D(r).section.dropHere), 1)])) : k("", !0)], 6))), 128))], 2)]));
2604
2606
  }
2605
- }), Mo = ["width", "height"], No = [
2607
+ }), Po = ["width", "height"], Fo = [
2606
2608
  "d",
2607
2609
  "stroke",
2608
2610
  "stroke-opacity",
2609
2611
  "stroke-width"
2610
- ], Po = ["d", "fill"], Fo = /* @__PURE__ */ o({
2612
+ ], Io = ["d", "fill"], Lo = /* @__PURE__ */ o({
2611
2613
  __name: "SocialIconSvg",
2612
2614
  props: {
2613
2615
  platform: {},
@@ -2616,7 +2618,7 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2616
2618
  iconSize: {}
2617
2619
  },
2618
2620
  setup(e) {
2619
- let t = e, n = I(() => Fn[t.platform]), r = I(() => Ln[t.iconSize]), i = I(() => tt(t.platform, t.iconTone)), a = I(() => Ke(t.iconStyle, t.iconTone)), o = I(() => {
2621
+ let t = e, n = I(() => Ln[t.platform]), r = I(() => zn[t.iconSize]), i = I(() => Ie(t.platform, t.iconTone)), a = I(() => ot(t.iconStyle, t.iconTone)), o = I(() => {
2620
2622
  let e = {
2621
2623
  display: "inline-flex",
2622
2624
  alignItems: "center",
@@ -2654,7 +2656,7 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2654
2656
  };
2655
2657
  default: return e;
2656
2658
  }
2657
- }), s = I(() => Me(t.iconStyle)), l = I(() => Math.floor(r.value * s.value));
2659
+ }), s = I(() => Ye(t.iconStyle)), l = I(() => Math.floor(r.value * s.value));
2658
2660
  function u(e) {
2659
2661
  let t = `${e.width / 2 * r.value / 24}px`, n = Math.round(e.opacity * 255).toString(16).padStart(2, "0"), i = `${e.color}${n}`;
2660
2662
  return `0 0 0 ${t} ${i}, inset 0 0 0 ${t} ${i}`;
@@ -2675,15 +2677,15 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2675
2677
  "stroke-opacity": a.value.opacity,
2676
2678
  "stroke-width": a.value.width / s.value,
2677
2679
  "stroke-linejoin": "round"
2678
- }, null, 8, No)) : k("", !0), N("path", {
2680
+ }, null, 8, Fo)) : k("", !0), N("path", {
2679
2681
  d: n.value.path,
2680
2682
  fill: d.value
2681
- }, null, 8, Po)], 8, Mo))], 4));
2683
+ }, null, 8, Io)], 8, Po))], 4));
2682
2684
  }
2683
- }), Io = { class: "tpl:w-full" }, Lo = ["href"], Ro = {
2685
+ }), Ro = { class: "tpl:w-full" }, zo = ["href"], Bo = {
2684
2686
  key: 1,
2685
2687
  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)]"
2686
- }, zo = /* @__PURE__ */ o({
2688
+ }, Vo = /* @__PURE__ */ o({
2687
2689
  __name: "SocialIconsBlock",
2688
2690
  props: {
2689
2691
  block: {},
@@ -2696,7 +2698,7 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2696
2698
  gap: `${t.block.spacing}px`,
2697
2699
  justifyContent: t.block.align === "left" ? "flex-start" : t.block.align === "right" ? "flex-end" : "center"
2698
2700
  })), i = I(() => t.block.icons.length > 0);
2699
- return (t, a) => (c(), w("div", Io, [i.value ? (c(), w("div", {
2701
+ return (t, a) => (c(), w("div", Ro, [i.value ? (c(), w("div", {
2700
2702
  key: 0,
2701
2703
  style: L(r.value)
2702
2704
  }, [(c(!0), w(U, null, p(e.block.icons, (t) => (c(), w("a", {
@@ -2704,7 +2706,7 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2704
2706
  href: t.url || "#",
2705
2707
  class: "tpl:cursor-default",
2706
2708
  onClick: a[0] ||= M(() => {}, ["prevent"])
2707
- }, [W(Fo, {
2709
+ }, [W(Lo, {
2708
2710
  platform: t.platform,
2709
2711
  "icon-style": e.block.iconStyle,
2710
2712
  "icon-tone": e.block.iconTone,
@@ -2714,46 +2716,46 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2714
2716
  "icon-style",
2715
2717
  "icon-tone",
2716
2718
  "icon-size"
2717
- ])], 8, Lo))), 128))], 4)) : (c(), w("div", Ro, [W(D(sr), { size: 16 }), N("span", null, P(D(n).social.addIcons), 1)]))]));
2719
+ ])], 8, zo))), 128))], 4)) : (c(), w("div", Bo, [W(D(lr), { size: 16 }), N("span", null, P(D(n).social.addIcons), 1)]))]));
2718
2720
  }
2719
- }), Bo = { class: "tpl:w-full" }, Vo = {
2721
+ }), Ho = { class: "tpl:w-full" }, Uo = {
2720
2722
  key: 0,
2721
2723
  class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
2722
2724
  style: {
2723
2725
  "background-color": "var(--tpl-bg-hover)",
2724
2726
  color: "var(--tpl-text-dim)"
2725
2727
  }
2726
- }, Ho = /* @__PURE__ */ o({
2728
+ }, Wo = /* @__PURE__ */ o({
2727
2729
  __name: "SpacerBlock",
2728
2730
  props: {
2729
2731
  block: {},
2730
2732
  viewport: {}
2731
2733
  },
2732
2734
  setup(e) {
2733
- let t = e, n = on(vn, "SpacerBlock"), r = I(() => ({
2735
+ let t = e, n = yn(bn, "SpacerBlock"), r = I(() => ({
2734
2736
  height: `${t.block.height}px`,
2735
2737
  minHeight: `${t.block.height}px`,
2736
2738
  ...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
2737
2739
  }));
2738
- return (t, i) => (c(), w("div", Bo, [N("div", {
2740
+ return (t, i) => (c(), w("div", Ho, [N("div", {
2739
2741
  style: L(r.value),
2740
2742
  class: O(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:box-border tpl:border-y tpl:border-x-0 tpl:border-dashed": !D(n).state.previewMode }])
2741
- }, [D(n).state.previewMode ? k("", !0) : (c(), w("span", Vo, P(e.block.height) + "px ", 1))], 6)]));
2743
+ }, [D(n).state.previewMode ? k("", !0) : (c(), w("span", Uo, P(e.block.height) + "px ", 1))], 6)]));
2742
2744
  }
2743
- }), Uo = { class: "tpl:w-full" }, Wo = { key: 0 }, Go = [
2745
+ }), Go = { class: "tpl:w-full" }, Ko = { key: 0 }, qo = [
2744
2746
  "aria-label",
2745
2747
  "contenteditable",
2746
2748
  "data-placeholder",
2747
2749
  "onBlur"
2748
- ], Ko = [
2750
+ ], Jo = [
2749
2751
  "aria-label",
2750
2752
  "contenteditable",
2751
2753
  "data-placeholder",
2752
2754
  "onBlur"
2753
- ], qo = {
2755
+ ], Yo = {
2754
2756
  key: 1,
2755
2757
  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)]"
2756
- }, Jo = /*#__PURE__*/ yr(/* @__PURE__ */ o({
2758
+ }, Xo = /*#__PURE__*/ xr(/* @__PURE__ */ o({
2757
2759
  __name: "TableBlock",
2758
2760
  props: {
2759
2761
  block: {},
@@ -2767,7 +2769,7 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2767
2769
  updated(e, t) {
2768
2770
  t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
2769
2771
  }
2770
- }, n = e, { t: r } = G(), i = on(vn, "TableBlock"), a = on(Jt, "TableBlock"), o = g(Ut, null), s = I(() => n.block.rows.length > 0), l = I(() => {
2772
+ }, n = e, { t: r } = G(), i = yn(bn, "TableBlock"), a = yn(Yt, "TableBlock"), o = g(Wt, null), s = I(() => n.block.rows.length > 0), l = I(() => {
2771
2773
  let e = {
2772
2774
  width: "100%",
2773
2775
  borderCollapse: "collapse",
@@ -2799,11 +2801,11 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2799
2801
  } : n);
2800
2802
  i.updateBlock(n.block.id, { rows: s });
2801
2803
  }
2802
- return (e, n) => (c(), w("div", Uo, [s.value ? (c(), w("table", {
2804
+ return (e, n) => (c(), w("div", Go, [s.value ? (c(), w("table", {
2803
2805
  key: 0,
2804
2806
  style: L(l.value),
2805
2807
  class: "tpl-table-editable"
2806
- }, [m.value ? (c(), w("thead", Wo, [N("tr", null, [(c(!0), w(U, null, p(m.value.cells, (e) => f((c(), w("th", {
2808
+ }, [m.value ? (c(), w("thead", Ko, [N("tr", null, [(c(!0), w(U, null, p(m.value.cells, (e) => f((c(), w("th", {
2807
2809
  key: e.id,
2808
2810
  style: L(d.value),
2809
2811
  "aria-label": D(r).table.cellPlaceholder,
@@ -2812,7 +2814,7 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2812
2814
  onBlur: (t) => v(m.value.id, e.id, t),
2813
2815
  onKeydown: n[0] ||= E(M((e) => e.target.blur(), ["prevent"]), ["enter"]),
2814
2816
  onClick: M(_, ["stop"])
2815
- }, null, 44, Go)), [[t, e.content]])), 128))])])) : k("", !0), N("tbody", null, [(c(!0), w(U, null, p(h.value, (e) => (c(), w("tr", { key: e.id }, [(c(!0), w(U, null, p(e.cells, (i) => f((c(), w("td", {
2817
+ }, null, 44, qo)), [[t, e.content]])), 128))])])) : k("", !0), N("tbody", null, [(c(!0), w(U, null, p(h.value, (e) => (c(), w("tr", { key: e.id }, [(c(!0), w(U, null, p(e.cells, (i) => f((c(), w("td", {
2816
2818
  key: i.id,
2817
2819
  style: L(u.value),
2818
2820
  "aria-label": D(r).table.cellPlaceholder,
@@ -2821,9 +2823,9 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2821
2823
  onBlur: (t) => v(e.id, i.id, t),
2822
2824
  onKeydown: n[1] ||= E(M((e) => e.target.blur(), ["prevent"]), ["enter"]),
2823
2825
  onClick: M(_, ["stop"])
2824
- }, null, 44, Ko)), [[t, i.content]])), 128))]))), 128))])], 4)) : (c(), w("div", qo, [W(D(dr), { size: 16 }), N("span", null, P(D(r).table.empty), 1)]))]));
2826
+ }, null, 44, Jo)), [[t, i.content]])), 128))]))), 128))])], 4)) : (c(), w("div", Yo, [W(D(pr), { size: 16 }), N("span", null, P(D(r).table.empty), 1)]))]));
2825
2827
  }
2826
- }), [["__scopeId", "data-v-73b9f5e5"]]), Yo = /* @__PURE__ */ o({
2828
+ }), [["__scopeId", "data-v-73b9f5e5"]]), Zo = /* @__PURE__ */ o({
2827
2829
  __name: "VideoPlayButton",
2828
2830
  props: { hoverEffect: {
2829
2831
  type: Boolean,
@@ -2840,7 +2842,7 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2840
2842
  }
2841
2843
  });
2842
2844
  // src/utils/videoThumbnail.ts
2843
- function Xo(e) {
2845
+ function Qo(e) {
2844
2846
  if (!e) return {
2845
2847
  platform: "unknown",
2846
2848
  videoId: null,
@@ -2872,24 +2874,24 @@ function Xo(e) {
2872
2874
  thumbnailUrl: null
2873
2875
  };
2874
2876
  }
2875
- function Zo(e, t) {
2876
- return t || Xo(e).thumbnailUrl;
2877
+ function $o(e, t) {
2878
+ return t || Qo(e).thumbnailUrl;
2877
2879
  }
2878
2880
  // src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
2879
- var Qo = ["src", "alt"], $o = {
2881
+ var es = ["src", "alt"], ts = {
2880
2882
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
2881
2883
  style: { opacity: "0.7" }
2882
- }, es = ["href"], ts = ["src", "alt"], ns = ["src", "alt"], rs = {
2884
+ }, ns = ["href"], rs = ["src", "alt"], is = ["src", "alt"], as = {
2883
2885
  key: 3,
2884
2886
  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)]"
2885
- }, is = /* @__PURE__ */ o({
2887
+ }, os = /* @__PURE__ */ o({
2886
2888
  __name: "VideoBlock",
2887
2889
  props: {
2888
2890
  block: {},
2889
2891
  viewport: {}
2890
2892
  },
2891
2893
  setup(e) {
2892
- let t = e, { t: n } = G(), { syntax: r } = K(), i = I(() => we(t.block.url, r) || we(t.block.thumbnailUrl, r)), a = An(() => i.value ? void 0 : t.block.thumbnailUrl || void 0), o = An(() => i.value ? t.block.placeholderUrl : void 0), s = I(() => i.value ? null : t.block.thumbnailUrl ? a.value ?? null : Zo(t.block.url)), l = I(() => ({ textAlign: t.block.align })), u = I(() => {
2894
+ let t = e, { t: n } = G(), { syntax: r } = K(), i = I(() => Ee(t.block.url, r) || Ee(t.block.thumbnailUrl, r)), a = Mn(() => i.value ? void 0 : t.block.thumbnailUrl || void 0), o = Mn(() => i.value ? t.block.placeholderUrl : void 0), s = I(() => i.value ? null : t.block.thumbnailUrl ? a.value ?? null : $o(t.block.url)), l = I(() => ({ textAlign: t.block.align })), u = I(() => {
2893
2895
  let e = t.block.align;
2894
2896
  return {
2895
2897
  maxWidth: "100%",
@@ -2899,7 +2901,7 @@ var Qo = ["src", "alt"], $o = {
2899
2901
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
2900
2902
  marginRight: e === "center" ? "auto" : void 0
2901
2903
  };
2902
- }), d = I(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), f = I(() => we(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
2904
+ }), d = I(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), f = I(() => Ee(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
2903
2905
  return (t, r) => (c(), w("div", {
2904
2906
  class: "tpl:w-full",
2905
2907
  style: L(l.value)
@@ -2912,16 +2914,16 @@ var Qo = ["src", "alt"], $o = {
2912
2914
  src: D(o),
2913
2915
  alt: e.block.alt,
2914
2916
  style: L(d.value)
2915
- }, null, 12, Qo), W(Yo)], 4)) : i.value ? (c(), w("div", {
2917
+ }, null, 12, es), W(Zo)], 4)) : i.value ? (c(), w("div", {
2916
2918
  key: 1,
2917
2919
  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)]",
2918
2920
  style: L([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, u.value])
2919
- }, [W(D(ur), {
2921
+ }, [W(D(fr), {
2920
2922
  size: 36,
2921
2923
  "stroke-width": 1.5,
2922
2924
  class: "tpl:text-[var(--tpl-primary)]",
2923
2925
  style: { opacity: "0.5" }
2924
- }), N("span", $o, [W(Yi, { text: f.value }, null, 8, ["text"])])], 4)) : s.value ? (c(), w(U, { key: 2 }, [e.block.url ? (c(), w("a", {
2926
+ }), N("span", ts, [W(Zi, { text: f.value }, null, 8, ["text"])])], 4)) : s.value ? (c(), w(U, { key: 2 }, [e.block.url ? (c(), w("a", {
2925
2927
  key: 0,
2926
2928
  href: e.block.url,
2927
2929
  target: "_blank",
@@ -2934,7 +2936,7 @@ var Qo = ["src", "alt"], $o = {
2934
2936
  src: s.value,
2935
2937
  alt: e.block.alt,
2936
2938
  style: L(d.value)
2937
- }, null, 12, ts), W(Yo, { "hover-effect": "" })], 12, es)) : (c(), w("div", {
2939
+ }, null, 12, rs), W(Zo, { "hover-effect": "" })], 12, ns)) : (c(), w("div", {
2938
2940
  key: 1,
2939
2941
  class: "tpl:relative tpl:inline-block",
2940
2942
  style: L(u.value)
@@ -2943,53 +2945,53 @@ var Qo = ["src", "alt"], $o = {
2943
2945
  src: s.value,
2944
2946
  alt: e.block.alt,
2945
2947
  style: L(d.value)
2946
- }, null, 12, ns), W(Yo)], 4))], 64)) : (c(), w("div", rs, [W(D(ur), {
2948
+ }, null, 12, is), W(Zo)], 4))], 64)) : (c(), w("div", as, [W(D(fr), {
2947
2949
  size: 40,
2948
2950
  "stroke-width": 1.5,
2949
2951
  class: "tpl:text-[var(--tpl-border-light)]"
2950
2952
  }), N("span", null, P(D(n).video.addVideo), 1)]))], 4));
2951
2953
  }
2952
- }), as = {
2953
- section: jo,
2954
- title: bo,
2955
- paragraph: Ia,
2956
- image: ka,
2957
- button: Zi,
2958
- divider: da,
2959
- video: is,
2960
- social: zo,
2961
- menu: Na,
2962
- table: Jo,
2963
- spacer: Ho,
2964
- html: _a,
2965
- countdown: b(() => import("./CountdownBlock-DGgnPUlu.js"))
2954
+ }), ss = {
2955
+ section: No,
2956
+ title: So,
2957
+ paragraph: Ra,
2958
+ image: ja,
2959
+ button: $i,
2960
+ divider: pa,
2961
+ video: os,
2962
+ social: Vo,
2963
+ menu: Fa,
2964
+ table: Xo,
2965
+ spacer: Wo,
2966
+ html: ya,
2967
+ countdown: b(() => import("./CountdownBlock--hlKE2aj.js"))
2966
2968
  };
2967
- function os(t) {
2968
- let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: s } = G(i), c = I(() => Be(Be(Be(oi(i), Ei(n.content.value.settings?.locale)), Ie(n.content.value.settings) === "rtl" ? {
2969
+ function cs(t) {
2970
+ let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: s } = G(i), c = I(() => We(We(We(ci(i), Oi(n.content.value.settings?.locale)), He(n.content.value.settings) === "rtl" ? {
2969
2971
  title: { textAlign: "right" },
2970
2972
  table: { textAlign: "right" }
2971
2973
  } : {}), r.blockDefaults ?? {}));
2972
2974
  n.setUiTheme(r.uiTheme ?? "auto");
2973
- let { resolvedTheme: l } = Zr(I(() => n.state.uiTheme)), f = H(r.theme ?? {}), { themeStyles: p } = Ar({
2975
+ let { resolvedTheme: l } = $r(I(() => n.state.uiTheme)), f = H(r.theme ?? {}), { themeStyles: p } = Mr({
2974
2976
  themeOverrides: f,
2975
2977
  resolvedTheme: l,
2976
2978
  extraStyles: () => ({
2977
2979
  "--tpl-drop-text": `"${i.canvas.dropHere}"`,
2978
2980
  ...t.themeExtraStyles?.()
2979
2981
  })
2980
- }), m = t.history ?? wn({
2982
+ }), m = t.history ?? En({
2981
2983
  content: n.content,
2982
2984
  setContent: (e, t) => n.setContent(e, t)
2983
2985
  });
2984
- t.history ? n.contentReplaced && u(n.contentReplaced, () => m.clear(), { flush: "sync" }) : On(n, m);
2985
- let h = Un({
2986
+ t.history ? n.contentReplaced && u(n.contentReplaced, () => m.clear(), { flush: "sync" }) : An(n, m);
2987
+ let h = Gn({
2986
2988
  addBlock: n.addBlock,
2987
2989
  removeBlock: n.removeBlock,
2988
2990
  updateBlock: n.updateBlock,
2989
2991
  selectBlock: n.selectBlock,
2990
2992
  findBlockLocation: n.findBlockLocation,
2991
2993
  blockDefaults: () => c.value
2992
- }), g = Dn(n), _ = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? kn({
2994
+ }), g = kn(n), _ = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? jn({
2993
2995
  content: n.content,
2994
2996
  isDirty: () => n.state.isDirty,
2995
2997
  ...t.autoSaveOptions
@@ -2997,27 +2999,27 @@ function os(t) {
2997
2999
  _ && (y = u(m.isNavigating, (e) => {
2998
3000
  e ? _.pause() : _.resume();
2999
3001
  }));
3000
- let b = Xr(n, {
3002
+ let b = Qr(n, {
3001
3003
  t: o,
3002
3004
  format: s
3003
- }, r.customBlocks ?? []), x = ht(r.colors);
3005
+ }, r.customBlocks ?? []), x = gt(r.colors);
3004
3006
  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) {
3005
- let e = ai(x.presets, r.blockDefaults, r.templateDefaults);
3007
+ let e = si(x.presets, r.blockDefaults, r.templateDefaults);
3006
3008
  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.`);
3007
3009
  }
3008
- let S = Wn(r.templateSettings);
3009
- for (let e of S.unknown) $.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${Gn.join(", ")}) — skipping it.`);
3010
- let w = wr();
3011
- ni(w, as);
3010
+ let S = Kn(r.templateSettings);
3011
+ for (let e of S.unknown) $.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${qn.join(", ")}) — skipping it.`);
3012
+ let w = Er();
3013
+ ii(w, ss);
3012
3014
  let T = /* @__PURE__ */ new Set();
3013
3015
  function E(e) {
3014
3016
  for (let t of e) {
3015
- w.registerCustom(t, la);
3016
- for (let e of Di(t, x)) T.has(e.id) || (T.add(e.id), $.warn(e.message));
3017
+ w.registerCustom(t, da);
3018
+ for (let e of ki(t, x)) T.has(e.id) || (T.add(e.id), $.warn(e.message));
3017
3019
  }
3018
3020
  }
3019
3021
  r.customBlocks?.length && E(r.customBlocks);
3020
- let D = Vr();
3022
+ let D = Ur();
3021
3023
  if (C() && v(D.dispose), t.containerEl) {
3022
3024
  let n = t.containerEl;
3023
3025
  e(document, "pointerdown", (e) => {
@@ -3030,7 +3032,7 @@ function os(t) {
3030
3032
  e ? e.save() : _?.flush();
3031
3033
  }
3032
3034
  function ee(e) {
3033
- D.isActive() && ki(e, {
3035
+ D.isActive() && ji(e, {
3034
3036
  history: m,
3035
3037
  selectBlock: (e) => n.selectBlock(e),
3036
3038
  getSelectedBlockId: () => n.state.selectedBlockId,
@@ -3043,44 +3045,45 @@ function os(t) {
3043
3045
  }
3044
3046
  e(document, "keydown", ee);
3045
3047
  let k = H(null), A = t.editorRoot ?? document;
3046
- d(xn, A), d(dn, k), d(wt, /* @__PURE__ */ new Map()), d(tn, i), d(vn, n), d(bn, m), d(mn, h), d(sn, g), d(Jt, a), d(pn, p), d(hn, l), d(Yt, c), d(ln, r.locale), d(an, w), d($t, r.customBlocks ?? []), d(At, r.paletteBlocks), d(Lt, ri(r.htmlBlockPreview)), d(Rt, r.layout), d(bt, r.sectionWrapper), d(un, x), d(cn, S.fields), d(Qt, Qr(n.content, w));
3048
+ d(Cn, A), d(pn, k), d(Tt, /* @__PURE__ */ new Map()), d(Jt, i), d(bn, n), d(Sn, m), d(gn, h), d(ln, g), d(Yt, a), d(rn, p), d(Zt, l), d(Xt, c), d(_n, r.locale), d(sn, w), d(tn, r.customBlocks ?? []), d(jt, r.paletteBlocks), d(Rt, ai(r.htmlBlockPreview)), d(zt, r.layout), d(xt, r.sectionWrapper), d(fn, x), d(hn, S.fields), d(en, ei(n.content, w));
3047
3049
  let j = it(r.mergeTags?.syntax);
3048
3050
  for (let e of ["opener", "closer"]) {
3049
3051
  let t = j[e];
3050
3052
  typeof t == "string" && t.trim() === "" && $.warn(`config.mergeTags.syntax.${e} is blank — ignoring it.`);
3051
3053
  }
3052
- typeof j.opener != "string" && typeof j.closer == "string" && j.closer.trim() !== "" && Ee(j) === null && $.warn("config.mergeTags.syntax.closer has no effect without an opener — set opener to turn on autocomplete for this syntax.");
3054
+ typeof j.opener != "string" && typeof j.closer == "string" && j.closer.trim() !== "" && Oe(j) === null && $.warn("config.mergeTags.syntax.closer has no effect without an opener — set opener to turn on autocomplete for this syntax.");
3053
3055
  let M = R(r.mergeTags?.tags ?? []);
3054
3056
  function N(e) {
3055
3057
  Array.isArray(e) ? M.value = e : $.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
3056
3058
  }
3057
- d(Ft, M), d(St, j), d(Et, r.mergeTags?.onRequest ?? null), d(Tt, r.mergeTags?.autocomplete !== !1), d(Sn, r.mergeTags?.showRawValue !== !1);
3058
- let P = H(Te(r.mergeTags?.tags ?? []));
3059
- d(It, P);
3060
- let F = Wr({
3059
+ d(It, M), d(Ct, j), d(Dt, r.mergeTags?.onRequest ?? null), d(Et, r.mergeTags?.autocomplete !== !1), d(wn, r.mergeTags?.showRawValue !== !1);
3060
+ let P = H(De(r.mergeTags?.tags ?? []));
3061
+ d(Lt, P);
3062
+ let F = Kr({
3061
3063
  resolvePreview: r.resolvePreview,
3064
+ surface: "preview",
3062
3065
  getContent: () => {
3063
3066
  let e = n.content.value;
3064
3067
  if (!n.state.previewMode) return e;
3065
- let t = n.activeLocale?.value ?? e.settings.locale ?? "en", i = ae(e, t);
3066
- return r.layout ? Xe(ae(r.layout, t, { missing: "default" }), i) : i;
3068
+ let t = n.activeLocale?.value ?? e.settings.locale ?? "en", i = ze(e, t);
3069
+ return r.layout ? et(ze(r.layout, t, { missing: "default" }), i) : i;
3067
3070
  },
3068
3071
  isActive: () => n.state.previewMode,
3069
3072
  getLocale: () => n.activeLocale?.value ?? n.content.value.settings.locale
3070
3073
  });
3071
- d(kt, F), d(Wt, r.resolvePreview);
3074
+ d(At, F), d(Gt, r.resolvePreview);
3072
3075
  let L = null;
3073
- d(Ht, (e) => (L = e, () => {
3076
+ d(Ut, (e) => (L = e, () => {
3074
3077
  L === e && (L = null);
3075
3078
  }));
3076
3079
  let z = () => (L ?? F.refresh)(), B = I(() => !(n.state.previewMode && F.isConfigured));
3077
- d(Kt, B);
3078
- let V = Gr();
3079
- d(Ot, V), d(jt, H(!1)), d(Nt, H(!1)), d(nn, r.logicTags?.tags ?? []), d(xt, r.logicTags?.pairs ?? []), d(zt, r.logicTags?.onRequest ?? null), d(Mt, Kr()), d(Vt, r.onRequestMedia ?? null), d(_n, r.canDropMedia ?? null), d(Ct, r.resolveImageUrl ? Vn(r.resolveImageUrl) : null), r.displayConditions?.onRequest && (r.displayConditions.conditions !== void 0 || r.displayConditions.allowCustom !== void 0) && $.warn("config.displayConditions.onRequest replaces the built-in condition list — conditions and allowCustom are ignored."), d(Gt, r.displayConditions?.conditions ?? []), d(fn, r.displayConditions?.allowCustom ?? !1), d(Dt, r.displayConditions?.onRequest ?? null), d(Zt, t.capabilities ?? {}), d(yn, b);
3080
- let U = qr(r.lint) ? null : Yr({
3080
+ d(qt, B);
3081
+ let V = qr();
3082
+ d(kt, V), d(Mt, H(!1)), d(Pt, H(!1)), d(an, r.logicTags?.tags ?? []), d(St, r.logicTags?.pairs ?? []), d(Bt, r.logicTags?.onRequest ?? null), d(Nt, Jr()), d(Ht, r.onRequestMedia ?? null), d(vn, r.canDropMedia ?? null), d(wt, r.resolveImageUrl ? Un(r.resolveImageUrl) : null), r.displayConditions?.onRequest && (r.displayConditions.conditions !== void 0 || r.displayConditions.allowCustom !== void 0) && $.warn("config.displayConditions.onRequest replaces the built-in condition list — conditions and allowCustom are ignored."), d(Kt, r.displayConditions?.conditions ?? []), d(mn, r.displayConditions?.allowCustom ?? !1), d(Ot, r.displayConditions?.onRequest ?? null), d(Qt, t.capabilities ?? {}), d(xn, b);
3083
+ let U = Yr(r.lint) ? null : Zr({
3081
3084
  content: n.content,
3082
3085
  get options() {
3083
- return Hr({
3086
+ return Wr({
3084
3087
  ...r,
3085
3088
  content: n.content.value,
3086
3089
  contentLocale: n.activeLocale?.value ?? void 0
@@ -3092,7 +3095,7 @@ function os(t) {
3092
3095
  updateSettings: n.updateSettings,
3093
3096
  removeBlock: n.removeBlock
3094
3097
  });
3095
- d(gn, U);
3098
+ d(un, U);
3096
3099
  function W() {
3097
3100
  y?.(), U?.destroy(), _?.destroy(), m.destroy();
3098
3101
  }
@@ -3123,14 +3126,14 @@ function os(t) {
3123
3126
  };
3124
3127
  }
3125
3128
  // src/composables/useSmallScreenNotice.ts
3126
- var ss = "(max-width: 767px)";
3127
- function cs(e) {
3128
- let n = t(ss);
3129
+ var ls = "(max-width: 767px)";
3130
+ function us(e) {
3131
+ let n = t(ls);
3129
3132
  return {
3130
3133
  isSmallScreen: n,
3131
3134
  showNotice: I(() => (F(e) ?? !0) && n.value)
3132
3135
  };
3133
3136
  }
3134
- export { Si as A, Or as B, Gi as C, qi as D, Ai as E, _i as F, Sr as H, Wr as I, Hr as L, bi as M, yi as N, ji as O, vi as P, Lr as R, Ii as S, Vi as T, Cr as V, da as _, Ho as a, Zi as b, xo as c, vo as d, La as f, _a as g, ka as h, Jo as i, xi as j, mi as k, wo as l, Na as m, os as n, zo as o, Ia as p, is as r, jo as s, cs as t, bo as u, la as v, Bi as w, Ni as x, ea as y, Fr as z };
3137
+ export { wi as A, Ar as B, qi as C, Yi as D, Mi as E, yi as F, wr as H, Kr as I, Wr as L, Si as M, xi as N, Ni as O, bi as P, zr as R, Ri as S, Ui as T, Tr as V, pa as _, Wo as a, $i as b, Co as c, bo as d, za as f, ya as g, ja as h, Xo as i, Ci as j, gi as k, Eo as l, Fa as m, cs as n, Vo as o, Ra as p, os as r, No as s, us as t, So as u, da as v, Hi as w, Fi as x, na as y, Lr as z };
3135
3138
 
3136
- //# sourceMappingURL=composables-CN9j_FH4.js.map
3139
+ //# sourceMappingURL=composables-DY3anqHO.js.map