@templatical/editor 0.58.0 → 0.59.1

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 (202) hide show
  1. package/dist/{AiAltTextPopover-B4cg0jQG.js → AiAltTextPopover-CwyKz_9U.js} +3 -3
  2. package/dist/{AiAltTextReview-Dni8I9eV.js → AiAltTextReview-DNFnR1PN.js} +2 -2
  3. package/dist/{AiChatPanel-QWqGhy2s.js → AiChatPanel-DWWVvJIP.js} +3 -3
  4. package/dist/{AiPanels-DE2ysIV1.js → AiPanels-CESbBB63.js} +1 -1
  5. package/dist/{AiRewriteMenu-B25gpnip.js → AiRewriteMenu-DH6j1jOA.js} +5 -5
  6. package/dist/{BlockIssueBadge-Ri7dQhuz.js → BlockIssueBadge-3k568_Od.js} +2 -2
  7. package/dist/{BlockPreviewCanvas-yr5MmQql.js → BlockPreviewCanvas-BLJxLwTT.js} +6 -6
  8. package/dist/{CloudHeaderExtras-CJsXi4Ku.js → CloudHeaderExtras-xrHubAHL.js} +1 -1
  9. package/dist/{CloudPanels-ZOR9By8W.js → CloudPanels-qW-MObRD.js} +3 -3
  10. package/dist/{CollaborationNotices-COS_YvTq.js → CollaborationNotices-D9GQ477K.js} +1 -1
  11. package/dist/{CollaboratorBar-jq6HH0fb.js → CollaboratorBar-DsRjAaqd.js} +1 -1
  12. package/dist/{CommentsPanel-B0_Ob2vO.js → CommentsPanel-lb-IFzjl.js} +1 -1
  13. package/dist/{CommentsSidebar-DFoLon5D.js → CommentsSidebar-CVVTCWBH.js} +3 -3
  14. package/dist/{CountdownBlock-BrR2uqM3.js → CountdownBlock-CSEq79Nc.js} +2 -2
  15. package/dist/{CountdownToolbar-BtP0n0yZ.js → CountdownToolbar-BV9yQi9k.js} +5 -5
  16. package/dist/{IssuesPanel-CarJYQFu.js → IssuesPanel-pxcWAQJM.js} +5 -5
  17. package/dist/{LanguageMenu-confz89v.js → LanguageMenu-D_xbvq3D.js} +5 -5
  18. package/dist/{LocaleNotices-D8aE167E.js → LocaleNotices-j4aMFfmc.js} +2 -2
  19. package/dist/{LogicTagInsertButton-DFL3kvGK.js → LogicTagInsertButton-BDIsyl3C.js} +96 -96
  20. package/dist/{MergeTagInput-BuGJeeyA.js → MergeTagInput-De1yWoc2.js} +2 -2
  21. package/dist/{MergeTagModeToggle-D7482NZf.js → MergeTagModeToggle-CL96pI1E.js} +2 -2
  22. package/dist/{MergeTagTextarea-Qt9_NeY4.js → MergeTagTextarea-DDyV8U44.js} +4 -4
  23. package/dist/{ParagraphEditor-Cd-CBE_l.js → ParagraphEditor-DpOsnnai.js} +9 -9
  24. package/dist/{RestoreVersionDialog-Clh4l0Bn.js → RestoreVersionDialog-JQEkVIh5.js} +3 -3
  25. package/dist/{RichTextEditorContent-Dw_Z9zhi.js → RichTextEditorContent-C2Yj1-ZA.js} +5 -5
  26. package/dist/{SaveBlockDialog-kboYvk_a.js → SaveBlockDialog-BPf6tDhg.js} +11 -11
  27. package/dist/{SavedBlocksBrowserModal-wVGMC6My.js → SavedBlocksBrowserModal-DnDCfwSv.js} +7 -7
  28. package/dist/{SavedBlocksPanels-C9AHYfYR.js → SavedBlocksPanels-D5YaVCem.js} +1 -1
  29. package/dist/{SavedBlocksPickBar-CVbV5MVL.js → SavedBlocksPickBar-OQ7ey3MD.js} +3 -3
  30. package/dist/{TemplateSettings-ChCm5_2b.js → TemplateSettings-CBCaybvd.js} +5 -5
  31. package/dist/TestEmailModal-BDp85wIp.js +241 -0
  32. package/dist/{TestEmailPanel-7Ua54CYL.js → TestEmailPanel-DkJx0Ptk.js} +1 -1
  33. package/dist/{TitleEditor-DXMOgW-9.js → TitleEditor-wzknZqu_.js} +7 -7
  34. package/dist/{Toolbar-CVHJl6i4.js → Toolbar-FIYSw3Us.js} +438 -438
  35. package/dist/{TplModal-BErE8I3p.js → TplModal-C57J-uF0.js} +3 -3
  36. package/dist/{VersionHistoryMenu-P3P00KqQ.js → VersionHistoryMenu-6jMve6By.js} +2 -2
  37. package/dist/{VersionHistoryPanels-DES1b1Pq.js → VersionHistoryPanels-BZ0GT52h.js} +1 -1
  38. package/dist/{VersionPreviewBanner-D2TtR9I5.js → VersionPreviewBanner-Bq8z1SUc.js} +2 -2
  39. package/dist/{WrapperBlock-B1zI7POT.js → WrapperBlock-C4XrJkx5.js} +3 -3
  40. package/dist/{blockTypeIcons-Dp540i74.js → blockTypeIcons-VX_8UQ21.js} +1 -1
  41. package/dist/bundle-stats.json +8 -8
  42. package/dist/{ca-BJn8lcJx.js → ca-YfIxwO1G.js} +1 -0
  43. package/dist/cdn/chunks/{AiAltTextPopover-sx3bmRiV.js → AiAltTextPopover-Dj-VLU88.js} +4 -4
  44. package/dist/cdn/chunks/{AiAltTextPopover-sx3bmRiV.js.map → AiAltTextPopover-Dj-VLU88.js.map} +1 -1
  45. package/dist/cdn/chunks/{AiAltTextReview-Cj3PKInZ.js → AiAltTextReview-tVkJPOk6.js} +3 -3
  46. package/dist/cdn/chunks/{AiAltTextReview-Cj3PKInZ.js.map → AiAltTextReview-tVkJPOk6.js.map} +1 -1
  47. package/dist/cdn/chunks/{AiChatPanel-DibkqrqY.js → AiChatPanel-CYPvHQGQ.js} +4 -4
  48. package/dist/cdn/chunks/{AiChatPanel-DibkqrqY.js.map → AiChatPanel-CYPvHQGQ.js.map} +1 -1
  49. package/dist/cdn/chunks/{AiPanels-DVs4r8sY.js → AiPanels-ChTLCmMS.js} +2 -2
  50. package/dist/cdn/chunks/{AiPanels-DVs4r8sY.js.map → AiPanels-ChTLCmMS.js.map} +1 -1
  51. package/dist/cdn/chunks/{AiRewriteMenu-BbZ9NRoe.js → AiRewriteMenu-B23ozFnP.js} +6 -6
  52. package/dist/cdn/chunks/{AiRewriteMenu-BbZ9NRoe.js.map → AiRewriteMenu-B23ozFnP.js.map} +1 -1
  53. package/dist/cdn/chunks/{BlockIssueBadge-BWIth1y6.js → BlockIssueBadge-BKO4Mr8f.js} +3 -3
  54. package/dist/cdn/chunks/{BlockIssueBadge-BWIth1y6.js.map → BlockIssueBadge-BKO4Mr8f.js.map} +1 -1
  55. package/dist/cdn/chunks/{BlockPreviewCanvas-BDZ6pMHq.js → BlockPreviewCanvas-CaRneMZ8.js} +7 -7
  56. package/dist/cdn/chunks/{BlockPreviewCanvas-BDZ6pMHq.js.map → BlockPreviewCanvas-CaRneMZ8.js.map} +1 -1
  57. package/dist/cdn/chunks/{CloudHeaderExtras-CazfMn6A.js → CloudHeaderExtras-O_K3jmgO.js} +2 -2
  58. package/dist/cdn/chunks/{CloudHeaderExtras-CazfMn6A.js.map → CloudHeaderExtras-O_K3jmgO.js.map} +1 -1
  59. package/dist/cdn/chunks/{CloudPanels-BI_hJwcJ.js → CloudPanels-xAEirqNC.js} +4 -4
  60. package/dist/cdn/chunks/{CloudPanels-BI_hJwcJ.js.map → CloudPanels-xAEirqNC.js.map} +1 -1
  61. package/dist/cdn/chunks/{CollaborationNotices-yKOt4o7B.js → CollaborationNotices-CwAoa-73.js} +2 -2
  62. package/dist/cdn/chunks/{CollaborationNotices-yKOt4o7B.js.map → CollaborationNotices-CwAoa-73.js.map} +1 -1
  63. package/dist/cdn/chunks/{CollaboratorBar-D5fycyLP.js → CollaboratorBar-DdQQwtwd.js} +2 -2
  64. package/dist/cdn/chunks/{CollaboratorBar-D5fycyLP.js.map → CollaboratorBar-DdQQwtwd.js.map} +1 -1
  65. package/dist/cdn/chunks/{CommentsPanel-BPoa1lBK.js → CommentsPanel-C8AKtxiG.js} +2 -2
  66. package/dist/cdn/chunks/{CommentsPanel-BPoa1lBK.js.map → CommentsPanel-C8AKtxiG.js.map} +1 -1
  67. package/dist/cdn/chunks/{CommentsSidebar-DLn9qWtv.js → CommentsSidebar-FxY0RHSq.js} +4 -4
  68. package/dist/cdn/chunks/{CommentsSidebar-DLn9qWtv.js.map → CommentsSidebar-FxY0RHSq.js.map} +1 -1
  69. package/dist/cdn/chunks/{CountdownBlock-Do6oItNW.js → CountdownBlock-DGgnPUlu.js} +3 -3
  70. package/dist/cdn/chunks/{CountdownBlock-Do6oItNW.js.map → CountdownBlock-DGgnPUlu.js.map} +1 -1
  71. package/dist/cdn/chunks/{CountdownToolbar-D5_QBuhO.js → CountdownToolbar-9PtYUgCW.js} +6 -6
  72. package/dist/cdn/chunks/{CountdownToolbar-D5_QBuhO.js.map → CountdownToolbar-9PtYUgCW.js.map} +1 -1
  73. package/dist/cdn/chunks/{IssuesPanel-BzVpxRkq.js → IssuesPanel-Co-ffgWa.js} +6 -6
  74. package/dist/cdn/chunks/{IssuesPanel-BzVpxRkq.js.map → IssuesPanel-Co-ffgWa.js.map} +1 -1
  75. package/dist/cdn/chunks/{LanguageMenu-GEbUX5Oe.js → LanguageMenu-Cl0ajnXZ.js} +6 -6
  76. package/dist/cdn/chunks/{LanguageMenu-GEbUX5Oe.js.map → LanguageMenu-Cl0ajnXZ.js.map} +1 -1
  77. package/dist/cdn/chunks/{LocaleNotices-CWRS_G-4.js → LocaleNotices-BVDJ7kyj.js} +3 -3
  78. package/dist/cdn/chunks/{LocaleNotices-CWRS_G-4.js.map → LocaleNotices-BVDJ7kyj.js.map} +1 -1
  79. package/dist/cdn/chunks/{LogicTagInsertButton-CrkAz1t_.js → LogicTagInsertButton-DPYA8LJW.js} +9 -9
  80. package/dist/cdn/chunks/{LogicTagInsertButton-CrkAz1t_.js.map → LogicTagInsertButton-DPYA8LJW.js.map} +1 -1
  81. package/dist/cdn/chunks/{MergeTagInput-DkCATtfE.js → MergeTagInput-Cxfjq3tx.js} +3 -3
  82. package/dist/cdn/chunks/{MergeTagInput-DkCATtfE.js.map → MergeTagInput-Cxfjq3tx.js.map} +1 -1
  83. package/dist/cdn/chunks/{MergeTagModeToggle-DYAFxyoB.js → MergeTagModeToggle-BmNGV3yc.js} +3 -3
  84. package/dist/cdn/chunks/{MergeTagModeToggle-DYAFxyoB.js.map → MergeTagModeToggle-BmNGV3yc.js.map} +1 -1
  85. package/dist/cdn/chunks/{MergeTagTextarea-DRS6pXSE.js → MergeTagTextarea-DmwrPAss.js} +5 -5
  86. package/dist/cdn/chunks/{MergeTagTextarea-DRS6pXSE.js.map → MergeTagTextarea-DmwrPAss.js.map} +1 -1
  87. package/dist/cdn/chunks/{ParagraphEditor-rEdKBett.js → ParagraphEditor-BoGELRr-.js} +10 -10
  88. package/dist/cdn/chunks/{ParagraphEditor-rEdKBett.js.map → ParagraphEditor-BoGELRr-.js.map} +1 -1
  89. package/dist/cdn/chunks/{RestoreVersionDialog-B7eTijWD.js → RestoreVersionDialog-CaKiSq-9.js} +4 -4
  90. package/dist/cdn/chunks/{RestoreVersionDialog-B7eTijWD.js.map → RestoreVersionDialog-CaKiSq-9.js.map} +1 -1
  91. package/dist/cdn/chunks/{RichTextEditorContent-EtUIYzHB.js → RichTextEditorContent-Dq4TROOg.js} +6 -6
  92. package/dist/cdn/chunks/{RichTextEditorContent-EtUIYzHB.js.map → RichTextEditorContent-Dq4TROOg.js.map} +1 -1
  93. package/dist/cdn/chunks/{SaveBlockDialog-BquE_Brz.js → SaveBlockDialog-BAR0G4UO.js} +12 -12
  94. package/dist/cdn/chunks/{SaveBlockDialog-BquE_Brz.js.map → SaveBlockDialog-BAR0G4UO.js.map} +1 -1
  95. package/dist/cdn/chunks/{SavedBlocksBrowserModal--fNlId5y.js → SavedBlocksBrowserModal-C-KYaLkQ.js} +7 -7
  96. package/dist/cdn/chunks/{SavedBlocksBrowserModal--fNlId5y.js.map → SavedBlocksBrowserModal-C-KYaLkQ.js.map} +1 -1
  97. package/dist/cdn/chunks/{SavedBlocksPanels-0Z0dELDm.js → SavedBlocksPanels-C3OF0EeB.js} +2 -2
  98. package/dist/cdn/chunks/{SavedBlocksPanels-0Z0dELDm.js.map → SavedBlocksPanels-C3OF0EeB.js.map} +1 -1
  99. package/dist/cdn/chunks/{SavedBlocksPickBar-yezZxZeP.js → SavedBlocksPickBar-BnyPXw5W.js} +4 -4
  100. package/dist/cdn/chunks/{SavedBlocksPickBar-yezZxZeP.js.map → SavedBlocksPickBar-BnyPXw5W.js.map} +1 -1
  101. package/dist/cdn/chunks/{TemplateSettings-DFetnT9P.js → TemplateSettings-uoiUkd2l.js} +6 -6
  102. package/dist/cdn/chunks/{TemplateSettings-DFetnT9P.js.map → TemplateSettings-uoiUkd2l.js.map} +1 -1
  103. package/dist/cdn/chunks/TestEmailModal-B9d3ZsH7.js +240 -0
  104. package/dist/cdn/chunks/TestEmailModal-B9d3ZsH7.js.map +1 -0
  105. package/dist/cdn/chunks/{TestEmailPanel-C2dxmmoW.js → TestEmailPanel--fPi6QjN.js} +2 -2
  106. package/dist/cdn/chunks/{TestEmailPanel-C2dxmmoW.js.map → TestEmailPanel--fPi6QjN.js.map} +1 -1
  107. package/dist/cdn/chunks/{TitleEditor-Bq62I2SC.js → TitleEditor-Cn4fnSpa.js} +7 -7
  108. package/dist/cdn/chunks/{TitleEditor-Bq62I2SC.js.map → TitleEditor-Cn4fnSpa.js.map} +1 -1
  109. package/dist/cdn/chunks/{Toolbar-CwmW8wAI.js → Toolbar-BzAuH2G4.js} +19 -19
  110. package/dist/cdn/chunks/{Toolbar-CwmW8wAI.js.map → Toolbar-BzAuH2G4.js.map} +1 -1
  111. package/dist/cdn/chunks/{TplModal-DE6BniBg.js → TplModal-jMfK19PC.js} +4 -4
  112. package/dist/cdn/chunks/{TplModal-DE6BniBg.js.map → TplModal-jMfK19PC.js.map} +1 -1
  113. package/dist/cdn/chunks/{VersionHistoryMenu-BBYU71Ua.js → VersionHistoryMenu-DDqYMqC2.js} +3 -3
  114. package/dist/cdn/chunks/{VersionHistoryMenu-BBYU71Ua.js.map → VersionHistoryMenu-DDqYMqC2.js.map} +1 -1
  115. package/dist/cdn/chunks/{VersionHistoryPanels-mMMqnf3O.js → VersionHistoryPanels-DJpySkvq.js} +2 -2
  116. package/dist/cdn/chunks/{VersionHistoryPanels-mMMqnf3O.js.map → VersionHistoryPanels-DJpySkvq.js.map} +1 -1
  117. package/dist/cdn/chunks/{VersionPreviewBanner-tBz-3lGg.js → VersionPreviewBanner-CYT5QUoc.js} +3 -3
  118. package/dist/cdn/chunks/{VersionPreviewBanner-tBz-3lGg.js.map → VersionPreviewBanner-CYT5QUoc.js.map} +1 -1
  119. package/dist/cdn/chunks/{WrapperBlock-B9XxtFql.js → WrapperBlock-Bi9XgDmX.js} +4 -4
  120. package/dist/cdn/chunks/{WrapperBlock-B9XxtFql.js.map → WrapperBlock-Bi9XgDmX.js.map} +1 -1
  121. package/dist/cdn/chunks/{ca-BJn8lcJx.js → ca-YfIxwO1G.js} +2 -1
  122. package/dist/cdn/chunks/{ca-BJn8lcJx.js.map → ca-YfIxwO1G.js.map} +1 -1
  123. package/dist/cdn/chunks/{composables-CkthyXi9.js → composables-Cp6gZ7qV.js} +468 -451
  124. package/dist/cdn/chunks/composables-Cp6gZ7qV.js.map +1 -0
  125. package/dist/cdn/chunks/{createCloudRuntime-k12jYbXP.js → createCloudRuntime-D8zeR9D2.js} +2 -2
  126. package/dist/cdn/chunks/{createCloudRuntime-k12jYbXP.js.map → createCloudRuntime-D8zeR9D2.js.map} +1 -1
  127. package/dist/cdn/chunks/{da-qQzj0QGy.js → da-CM6DCvRG.js} +2 -1
  128. package/dist/cdn/chunks/{da-qQzj0QGy.js.map → da-CM6DCvRG.js.map} +1 -1
  129. package/dist/cdn/chunks/{de-BLFp3nWx.js → de-Dugz1zXC.js} +2 -1
  130. package/dist/cdn/chunks/{de-BLFp3nWx.js.map → de-Dugz1zXC.js.map} +1 -1
  131. package/dist/cdn/chunks/{en-DGGQJGbm.js → en-BykoFuFY.js} +2 -1
  132. package/dist/cdn/chunks/{en-DGGQJGbm.js.map → en-BykoFuFY.js.map} +1 -1
  133. package/dist/cdn/chunks/{es-DTY9qgLv.js → es-DaWsTkpj.js} +2 -1
  134. package/dist/cdn/chunks/{es-DTY9qgLv.js.map → es-DaWsTkpj.js.map} +1 -1
  135. package/dist/cdn/chunks/{extensions-Djyg5slk.js → extensions-BYJPv1sA.js} +4 -4
  136. package/dist/cdn/chunks/{extensions-Djyg5slk.js.map → extensions-BYJPv1sA.js.map} +1 -1
  137. package/dist/cdn/chunks/{fr-L4FqO9Gp.js → fr-DqwQHtJo.js} +2 -1
  138. package/dist/cdn/chunks/{fr-L4FqO9Gp.js.map → fr-DqwQHtJo.js.map} +1 -1
  139. package/dist/cdn/chunks/{ja-6uOXkh4v.js → ja-BH4MS1Ye.js} +2 -1
  140. package/dist/cdn/chunks/{ja-6uOXkh4v.js.map → ja-BH4MS1Ye.js.map} +1 -1
  141. package/dist/cdn/chunks/{keys-BQqbBUag.js → keys-DNv3xXxI.js} +4 -4
  142. package/dist/cdn/chunks/keys-DNv3xXxI.js.map +1 -0
  143. package/dist/cdn/chunks/{nl-DCxuxwNq.js → nl-BQl1_UHv.js} +2 -1
  144. package/dist/cdn/chunks/{nl-DCxuxwNq.js.map → nl-BQl1_UHv.js.map} +1 -1
  145. package/dist/{pt-BR-CBkcrebr.js → cdn/chunks/pt-BR-eyzmU9Vs.js} +3 -0
  146. package/dist/cdn/chunks/{pt-BR-CBkcrebr.js.map → pt-BR-eyzmU9Vs.js.map} +1 -1
  147. package/dist/cdn/chunks/{socialIcons-CkgQUpim.js → socialIcons-bvQ57o1m.js} +484 -467
  148. package/dist/cdn/chunks/socialIcons-bvQ57o1m.js.map +1 -0
  149. package/dist/cdn/chunks/src-CVHGPKSW.js.map +1 -1
  150. package/dist/cdn/chunks/{src-CymzjJYe.js → src-aFRxbwqP.js} +2 -2
  151. package/dist/cdn/chunks/{src-CymzjJYe.js.map → src-aFRxbwqP.js.map} +1 -1
  152. package/dist/cdn/chunks/{styleConstants-CgiNKdnc.js → styleConstants-Br6CIRoS.js} +6 -6
  153. package/dist/cdn/chunks/styleConstants-Br6CIRoS.js.map +1 -0
  154. package/dist/cdn/chunks/{useCloudI18n-Dr4S2TRW.js → useCloudI18n-CWgySYuJ.js} +2 -2
  155. package/dist/cdn/chunks/{useCloudI18n-Dr4S2TRW.js.map → useCloudI18n-CWgySYuJ.js.map} +1 -1
  156. package/dist/cdn/chunks/{useEditorRoot-B_kf_k-g.js → useEditorRoot-BA4vV7sK.js} +2 -2
  157. package/dist/cdn/chunks/{useEditorRoot-B_kf_k-g.js.map → useEditorRoot-BA4vV7sK.js.map} +1 -1
  158. package/dist/cdn/chunks/{useI18n-CSf-ZpcM.js → useI18n-JsIdvX-i.js} +2 -2
  159. package/dist/cdn/chunks/{useI18n-CSf-ZpcM.js.map → useI18n-JsIdvX-i.js.map} +1 -1
  160. package/dist/cdn/chunks/{useLogicTag-YXRBcfgG.js → useLogicTag-C10Wef7d.js} +2 -2
  161. package/dist/cdn/chunks/{useLogicTag-YXRBcfgG.js.map → useLogicTag-C10Wef7d.js.map} +1 -1
  162. package/dist/cdn/chunks/{useMergeTag-lb-Wrw-B.js → useMergeTag-Dd26TcvH.js} +2 -2
  163. package/dist/cdn/chunks/{useMergeTag-lb-Wrw-B.js.map → useMergeTag-Dd26TcvH.js.map} +1 -1
  164. package/dist/cdn/chunks/{usePopoverPosition-BJFFi8x6.js → usePopoverPosition-DWRQRT2P.js} +2 -2
  165. package/dist/cdn/chunks/{usePopoverPosition-BJFFi8x6.js.map → usePopoverPosition-DWRQRT2P.js.map} +1 -1
  166. package/dist/cdn/chunks/{useScrollToBlock-MI4PP5lk.js → useScrollToBlock-CArjwH-u.js} +2 -2
  167. package/dist/cdn/chunks/{useScrollToBlock-MI4PP5lk.js.map → useScrollToBlock-CArjwH-u.js.map} +1 -1
  168. package/dist/cdn/editor.css +1 -1
  169. package/dist/cdn/editor.js +709 -617
  170. package/dist/cdn/editor.js.map +1 -1
  171. package/dist/{composables-BrzGZQkd.js → composables-jTnTSqdm.js} +633 -616
  172. package/dist/{createCloudRuntime-DgQfMi22.js → createCloudRuntime-DiUnYjKr.js} +1 -1
  173. package/dist/{da-qQzj0QGy.js → da-CM6DCvRG.js} +1 -0
  174. package/dist/{de-BLFp3nWx.js → de-Dugz1zXC.js} +1 -0
  175. package/dist/{en-DGGQJGbm.js → en-BykoFuFY.js} +1 -0
  176. package/dist/{es-DTY9qgLv.js → es-DaWsTkpj.js} +1 -0
  177. package/dist/{extensions-Cyp2x7cD.js → extensions-CAuXwpbI.js} +3 -3
  178. package/dist/{fr-L4FqO9Gp.js → fr-DqwQHtJo.js} +1 -0
  179. package/dist/index.d.ts +90 -9
  180. package/dist/{ja-6uOXkh4v.js → ja-BH4MS1Ye.js} +1 -0
  181. package/dist/{keys-D9oKZN1h.js → keys-BeQy64On.js} +3 -3
  182. package/dist/{nl-DCxuxwNq.js → nl-BQl1_UHv.js} +1 -0
  183. package/dist/{cdn/chunks/pt-BR-CBkcrebr.js → pt-BR-eyzmU9Vs.js} +1 -2
  184. package/dist/{socialIcons-ZfH8PyV2.js → socialIcons-RKdTgJip.js} +376 -359
  185. package/dist/style.css +1 -1
  186. package/dist/{styleConstants-CgiNKdnc.js → styleConstants-Br6CIRoS.js} +5 -5
  187. package/dist/templatical-editor.js +761 -668
  188. package/dist/{useCloudI18n-HhCZYRV6.js → useCloudI18n-nMZ9f_4b.js} +1 -1
  189. package/dist/{useEditorRoot-B0Njczhx.js → useEditorRoot-DpssP9rX.js} +1 -1
  190. package/dist/{useI18n-CM9vKbYc.js → useI18n-C2p-qHeb.js} +1 -1
  191. package/dist/{useLogicTag-BTCtn-uG.js → useLogicTag-59fmujI7.js} +1 -1
  192. package/dist/{useMergeTag-QlXUjCWT.js → useMergeTag-M1vauWet.js} +1 -1
  193. package/dist/{usePopoverPosition-CVRzzLkC.js → usePopoverPosition-L9MOHBM-.js} +1 -1
  194. package/dist/{useScrollToBlock-DruzlN2h.js → useScrollToBlock-BMF0Dt5l.js} +1 -1
  195. package/package.json +7 -7
  196. package/dist/TestEmailModal-CYq9Ec7x.js +0 -212
  197. package/dist/cdn/chunks/TestEmailModal-DJpwpEZs.js +0 -212
  198. package/dist/cdn/chunks/TestEmailModal-DJpwpEZs.js.map +0 -1
  199. package/dist/cdn/chunks/composables-CkthyXi9.js.map +0 -1
  200. package/dist/cdn/chunks/keys-BQqbBUag.js.map +0 -1
  201. package/dist/cdn/chunks/socialIcons-CkgQUpim.js.map +0 -1
  202. package/dist/cdn/chunks/styleConstants-CgiNKdnc.js.map +0 -1
@@ -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-B_kf_k-g.js";
4
- import { t as G } from "./useI18n-CSf-ZpcM.js";
5
- import "./useCloudI18n-Dr4S2TRW.js";
6
- import { t as K } from "./useMergeTag-lb-Wrw-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
7
  import { _ as ne, h as q, v as J, y as re } from "./dist-BtWMy7UQ.js";
8
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";
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-BJFFi8x6.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
11
  import { n as yt } from "./useLocalizedDisplay-7iwZ1UhB.js";
12
- import { A as bt, B as xt, C as St, D as Ct, F as wt, G as Tt, H as Et, I as Dt, J as Ot, K as kt, L as At, M as jt, N as Mt, O as Nt, P as Pt, Q 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, _ as Wt, a as Gt, at as Kt, b as qt, c as Jt, ct as Yt, d as Xt, et as Zt, g as Qt, h as $t, i as en, it as tn, j as nn, k as rn, l as an, m as on, nt as sn, ot as cn, p as ln, q as un, r as dn, rt as fn, s as pn, st as mn, tt as hn, u as gn, v as _n, w as vn, x as yn, y as bn, z as xn } from "./keys-BQqbBUag.js";
13
- import { t as Sn } from "./useLogicTag-YXRBcfgG.js";
14
- import { B as Cn, C as wn, F as Tn, I as En, P as Dn, R as On, T as kn, _ as An, a as jn, f as Mn, h as Nn, n as Pn, o as Fn, t as In, u as Ln, v as Rn, w as zn, x as Bn, y as Vn, z as Hn } from "./socialIcons-CkgQUpim.js";
15
- import { r as Un, t as Wn } from "./templateSettingsFields-cjlP-jdw.js";
16
- import { r as Gn, t as Kn } from "./sanitizeHtml-5T_KaDcp.js";
17
- import { At as qn, G as Jn, Mt as Yn, Nt as Xn, Ot as Zn, St as Qn, Ut as $n, V as er, Wt as tr, X as nr, _t as rr, d as ir, f as ar, k as or, mt as sr, nt as cr, o as lr, y as ur, yt as dr } from "./icons-C7vjUBLn.js";
18
- import { t as fr } from "./LoadingTrack-o-89hApJ.js";
19
- import { t as pr } from "./languageName-DEEOhDWI.js";
20
- import { t as mr } from "./plural-CyxrJXL1.js";
21
- import { m as hr, w as gr, x as _r } from "./styleConstants-CgiNKdnc.js";
22
- import { t as vr } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
23
- import { t as yr } from "./readableTextColor-BfZUGnVj.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";
24
24
  // src/composables/useFocusTrap.ts
25
- var br = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
26
- function xr(t, n) {
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) {
27
27
  let r = te(), i = null, a = null, o = null;
28
28
  function s() {
29
- return t.value ? Array.from(t.value.querySelectorAll(br)).filter((e) => e.offsetParent !== null) : [];
29
+ return t.value ? Array.from(t.value.querySelectorAll(xr)).filter((e) => e.offsetParent !== null) : [];
30
30
  }
31
31
  function c(e) {
32
32
  if (e.key !== "Tab") return;
@@ -55,7 +55,7 @@ function xr(t, n) {
55
55
  });
56
56
  }
57
57
  // src/composables/useEmoji.ts
58
- function Sr() {
58
+ function Cr() {
59
59
  let [e, t] = J(!1), n = R([]), r = !1;
60
60
  v(() => {
61
61
  r = !0;
@@ -80,7 +80,7 @@ function Sr() {
80
80
  };
81
81
  }
82
82
  // src/composables/useBlockRegistry.ts
83
- function Cr() {
83
+ function wr() {
84
84
  let e = R(/* @__PURE__ */ new Map());
85
85
  function t(t, n) {
86
86
  e.value.set(t, n), B(e);
@@ -133,7 +133,7 @@ function Cr() {
133
133
  };
134
134
  }
135
135
  // src/composables/useFonts.ts
136
- var wr = [
136
+ var Tr = [
137
137
  {
138
138
  value: "Arial",
139
139
  label: "Arial"
@@ -162,19 +162,19 @@ var wr = [
162
162
  value: "Courier New",
163
163
  label: "Courier New"
164
164
  }
165
- ], Tr = "Arial, sans-serif";
166
- function Er(e) {
167
- if (e === void 0 || e === !0) return [...wr];
165
+ ], Er = "Arial, sans-serif";
166
+ function Dr(e) {
167
+ if (e === void 0 || e === !0) return [...Tr];
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 = wr.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: ${wr.map((e) => e.value).join(", ")}.`));
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(", ")}.`));
173
173
  }
174
174
  return t;
175
175
  }
176
- function Dr(e) {
177
- let t = H(e?.customFonts ?? []), n = H(!1), r = Er(e?.builtIns), i = I(() => e?.defaultFallback ?? Tr), a = I(() => {
176
+ function Or(e) {
177
+ let t = H(e?.customFonts ?? []), n = H(!1), r = Dr(e?.builtIns), i = I(() => e?.defaultFallback ?? Er), a = I(() => {
178
178
  let e = [...r], n = t.value.map((e) => ({
179
179
  value: e.name,
180
180
  label: e.name,
@@ -185,14 +185,14 @@ function Dr(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 ?? Tr.split(",")[0].trim();
188
+ let s = e?.defaultFont ?? Er.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 Tr;
195
+ return Er;
196
196
  }
197
197
  let l = I(() => c());
198
198
  function u(e) {
@@ -239,7 +239,7 @@ function Dr(e) {
239
239
  };
240
240
  }
241
241
  // src/composables/useThemeStyles.ts
242
- var Or = {
242
+ var kr = {
243
243
  bg: "--tpl-bg",
244
244
  bgElevated: "--tpl-bg-elevated",
245
245
  bgHover: "--tpl-bg-hover",
@@ -263,10 +263,10 @@ var Or = {
263
263
  dangerLight: "--tpl-danger-light",
264
264
  canvasBg: "--tpl-canvas-bg"
265
265
  };
266
- function kr({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
266
+ function Ar({ 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(Or)) {
269
+ if (a) for (let [e, t] of Object.entries(kr)) {
270
270
  let n = a[e];
271
271
  n && (r[t] = n);
272
272
  }
@@ -274,7 +274,7 @@ function kr({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
274
274
  }) };
275
275
  }
276
276
  // src/utils/mergeTagNodeSpec.ts
277
- function Ar(e, t, n) {
277
+ function jr(e, t, n) {
278
278
  return De(e, n) ? {
279
279
  type: "logicMergeTagNode",
280
280
  attrs: {
@@ -290,32 +290,32 @@ function Ar(e, t, n) {
290
290
  };
291
291
  }
292
292
  // src/utils/insertLogicTag.ts
293
- function jr(e) {
293
+ function Mr(e) {
294
294
  return "before" in e && "after" in e;
295
295
  }
296
- function Mr(e, t, n) {
297
- if (!jr(t)) {
298
- e.chain().focus().insertContent(Ar(t.value, t.label, n)).run();
296
+ function Nr(e, t, n) {
297
+ if (!Mr(t)) {
298
+ e.chain().focus().insertContent(jr(t.value, t.label, n)).run();
299
299
  return;
300
300
  }
301
- let r = Ar(t.before, t.label, n), i = Ar(t.after, t.label, n), { from: a, to: o } = e.state.selection;
301
+ let r = jr(t.before, t.label, n), i = jr(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 Nr(e) {
305
+ function Pr(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 Pr(e) {
310
+ function Fr(e) {
311
311
  return e.extend({ addAttributes() {
312
312
  return {
313
313
  ...this.parent?.(),
314
314
  color: {
315
315
  default: null,
316
- parseHTML: (e) => Nr(_t(e.style.color)),
316
+ parseHTML: (e) => Pr(_t(e.style.color)),
317
317
  renderHTML: (e) => {
318
- let t = Nr(e.color);
318
+ let t = Pr(e.color);
319
319
  return t ? { style: `color: ${t}` } : {};
320
320
  }
321
321
  }
@@ -323,9 +323,9 @@ function Pr(e) {
323
323
  } });
324
324
  }
325
325
  // src/composables/useRichTextLinkDialog.ts
326
- function Fr(e, t = le.liquid, n = () => !0) {
326
+ function Ir(e, t = le.liquid, n = () => !0) {
327
327
  let r = H(!1), i = H(""), a = H(""), o = H(null);
328
- xr(o, r);
328
+ Sr(o, r);
329
329
  function s() {
330
330
  if (!n()) return;
331
331
  let t = e.value?.getAttributes("link") ?? {};
@@ -336,7 +336,7 @@ function Fr(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 = Nr(a.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
339
+ let n = Pr(a.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
340
340
  n && typeof e.value?.commands.unsetColor == "function" && r?.unsetColor(), r?.run();
341
341
  }
342
342
  }
@@ -378,13 +378,13 @@ function Fr(e, t = le.liquid, n = () => !0) {
378
378
  };
379
379
  }
380
380
  // src/composables/useRichTextEditor.ts
381
- function Ir(t) {
382
- let n = g(_n, 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: _ } = Sn(), v = g(fn, 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 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" });
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 } = Fr(x, d, () => a.value);
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);
388
388
  u(a, (e) => {
389
389
  if (x.value?.setEditable(e, !1), !e) {
390
390
  j();
@@ -455,7 +455,7 @@ function Ir(t) {
455
455
  async function J() {
456
456
  if (!a.value) return;
457
457
  let e = await _();
458
- !B && a.value && (e && x.value ? Mr(x.value, e, d) : x.value?.commands.focus());
458
+ !B && a.value && (e && x.value ? Nr(x.value, e, d) : x.value?.commands.focus());
459
459
  }
460
460
  return {
461
461
  editor: x,
@@ -484,25 +484,25 @@ function Ir(t) {
484
484
  };
485
485
  }
486
486
  // src/utils/activeEditorTracker.ts
487
- var Lr = /* @__PURE__ */ new Set(), Rr = 0, zr = 0;
488
- function Br() {
489
- let e = ++zr;
490
- return Lr.add(e), Rr === 0 && (Rr = e), {
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), {
491
491
  id: e,
492
- isActive: () => Lr.size <= 1 || Rr === e,
492
+ isActive: () => Rr.size <= 1 || zr === e,
493
493
  claim: () => {
494
- Rr = e;
494
+ zr = e;
495
495
  },
496
496
  dispose: () => {
497
- if (Lr.delete(e), Rr === e) {
498
- let e = Array.from(Lr);
499
- Rr = e[e.length - 1] ?? 0;
497
+ if (Rr.delete(e), zr === e) {
498
+ let e = Array.from(Rr);
499
+ zr = e[e.length - 1] ?? 0;
500
500
  }
501
501
  }
502
502
  };
503
503
  }
504
504
  // src/utils/resolveLintOptions.ts
505
- function Vr(e) {
505
+ function Hr(e) {
506
506
  let t = e.contentLocale ?? e.content?.settings.locale;
507
507
  return {
508
508
  ...e.lint,
@@ -511,63 +511,74 @@ function Vr(e) {
511
511
  };
512
512
  }
513
513
  // src/composables/usePreviewResolution.ts
514
- var Hr = 500;
515
- function Ur(e) {
516
- let t = typeof e.resolvePreview == "function", n = H(null), r = H(!1), i = H(!1), a = 0, o = null;
517
- function s() {
518
- o !== null && (clearTimeout(o), o = null);
514
+ var Ur = 500;
515
+ function Wr(e) {
516
+ let t = typeof e.resolvePreview == "function", n = H(null), r = H(!1), i = H(!1), a = H(!1), o = 0, s = null;
517
+ function c() {
518
+ s !== null && (clearTimeout(s), s = null);
519
519
  }
520
- async function c() {
521
- let t = e.resolvePreview;
522
- if (!t) return;
523
- let o = ++a;
520
+ async function l(t) {
521
+ let s = e.resolvePreview;
522
+ if (!s) return;
523
+ let c = ++o;
524
524
  r.value = !0;
525
- let s = {
525
+ let l = {
526
526
  content: He(e.getContent()),
527
+ surface: e.surface,
528
+ trigger: t,
527
529
  ...e.getRecipient?.() === void 0 ? {} : { recipient: e.getRecipient() }
528
530
  };
529
531
  try {
530
- let e = await t(s);
531
- if (o !== a) return;
532
+ let e = await s(l);
533
+ if (c !== o) return;
532
534
  if (!rt(e)) {
533
- i.value = !0;
535
+ i.value = !0, n.value = null;
534
536
  return;
535
537
  }
536
538
  n.value = e, i.value = !1;
537
539
  } catch {
538
- if (o !== a) return;
539
- i.value = !0;
540
+ if (c !== o) return;
541
+ i.value = !0, n.value = null;
540
542
  } finally {
541
- o === a && (r.value = !1);
543
+ c === o && (a.value = !0, r.value = !1);
542
544
  }
543
545
  }
544
- function l() {
545
- t && (s(), n.value === null ? c() : o = setTimeout(() => {
546
- o = null, c();
547
- }, Hr));
546
+ function d(e) {
547
+ t && (c(), !a.value && e !== "recipient" ? l(e) : s = setTimeout(() => {
548
+ s = null, l(e);
549
+ }, Ur));
550
+ }
551
+ function f() {
552
+ t && e.isActive() && (c(), l("refresh"));
548
553
  }
549
554
  return u(() => [
550
555
  e.isActive(),
551
556
  e.getRecipient?.(),
552
557
  e.getLocale?.()
553
- ], ([e, , t], o) => {
554
- o && t !== o[2] && (s(), a++, n.value = null, r.value = !1, i.value = !1), e ? l() : (s(), a++, r.value = !1, n.value = null, i.value = !1);
558
+ ], ([e, t, s], l) => {
559
+ if (l && s !== l[2] && (c(), o++, n.value = null, r.value = !1, i.value = !1, a.value = !1), !e) {
560
+ c(), o++, r.value = !1, n.value = null, i.value = !1, a.value = !1;
561
+ return;
562
+ }
563
+ let u = !l || !l[0] ? "open" : s === l[2] ? t === l[1] ? null : "recipient" : "locale";
564
+ u !== null && d(u);
555
565
  }, {
556
566
  immediate: !0,
557
567
  flush: "sync"
558
568
  }), v(() => {
559
- s(), a++;
569
+ c(), o++;
560
570
  }), {
561
571
  isConfigured: t,
562
572
  content: I(() => n.value ?? e.getContent()),
563
573
  isResolving: r,
564
- isInitialResolve: I(() => r.value && n.value === null),
574
+ isInitialResolve: I(() => r.value && !a.value),
565
575
  hasFailed: i,
566
- supersedesSamples: I(() => t)
576
+ supersedesSamples: I(() => t),
577
+ refresh: f
567
578
  };
568
579
  }
569
580
  // src/composables/useMergeTagPicker.ts
570
- function Wr() {
581
+ function Gr() {
571
582
  let e = H(!1), t = H([]), n = H(null), r = null;
572
583
  function i(i, a) {
573
584
  if (r) {
@@ -597,7 +608,7 @@ function Wr() {
597
608
  };
598
609
  }
599
610
  // src/composables/useLogicTagPicker.ts
600
- function Gr() {
611
+ function Kr() {
601
612
  let e = H(!1), t = H([]), n = H([]), r = null;
602
613
  function i(i, a) {
603
614
  if (r) {
@@ -627,14 +638,14 @@ function Gr() {
627
638
  };
628
639
  }
629
640
  // src/composables/useTemplateLint.ts
630
- function Kr(e) {
641
+ function qr(e) {
631
642
  return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 && e.deliverability === !1 && e.compatibility === !1 && e.localization === !1 : !1;
632
643
  }
633
- var qr = !1;
634
- function Jr(e) {
644
+ var Jr = !1;
645
+ function Yr(e) {
635
646
  let t = H([]), n = H(0), r = H(-1), i = u(e.content, () => {
636
647
  n.value++;
637
- }, { deep: !0 }), a = H(!1), o = H(!1), s = R(null), c = Kr(e.options), l = null, d = !1;
648
+ }, { deep: !0 }), a = H(!1), o = H(!1), s = R(null), c = qr(e.options), l = null, d = !1;
638
649
  c || f();
639
650
  async function f() {
640
651
  try {
@@ -643,7 +654,7 @@ function Jr(e) {
643
654
  s.value = { lintTemplate: t.lintTemplate }, a.value = !0, p(), l = re(n, p, { debounce: e.debounce ?? 500 });
644
655
  } catch {
645
656
  if (d) return;
646
- o.value = !0, qr || (qr = !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
+ 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."));
647
658
  }
648
659
  }
649
660
  function p() {
@@ -682,7 +693,7 @@ function Jr(e) {
682
693
  };
683
694
  }
684
695
  // src/composables/useKeyboardReorder.ts
685
- function Yr(e, t, n = []) {
696
+ function Xr(e, t, n = []) {
686
697
  let r = H(null), i = H(""), a = null;
687
698
  function o(t) {
688
699
  let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
@@ -709,7 +720,7 @@ function Yr(e, t, n = []) {
709
720
  let i = o(r);
710
721
  if (!i) return "";
711
722
  let a = (i.sectionId ? c(i.sectionId, i.columnIndex ?? 0) : e.content.value.blocks)?.[i.index];
712
- return a ? Vn(a, t.t, n) : "";
723
+ return a ? Hn(a, t.t, n) : "";
713
724
  }
714
725
  function c(t, n) {
715
726
  return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
@@ -777,14 +788,14 @@ function Yr(e, t, n = []) {
777
788
  };
778
789
  }
779
790
  // src/composables/useUiTheme.ts
780
- function Xr(e) {
791
+ function Zr(e) {
781
792
  let n = t("(prefers-color-scheme: dark)");
782
793
  return { resolvedTheme: I(() => e.value === "auto" ? n.value ? "dark" : "light" : e.value) };
783
794
  }
784
795
  // src/composables/useCustomBlockStylesheets.ts
785
- function Zr(e, t) {
796
+ function Qr(e, t) {
786
797
  return I(() => {
787
- let n = Qr(e.value.blocks);
798
+ let n = $r(e.value.blocks);
788
799
  if (n.size === 0) return [];
789
800
  let r = /* @__PURE__ */ new Set(), i = [];
790
801
  for (let e of n) {
@@ -796,20 +807,20 @@ function Zr(e, t) {
796
807
  return i;
797
808
  });
798
809
  }
799
- function Qr(e) {
810
+ function $r(e) {
800
811
  let t = /* @__PURE__ */ new Set();
801
- return $r(e, t), t;
812
+ return ei(e, t), t;
802
813
  }
803
- function $r(e, t) {
814
+ function ei(e, t) {
804
815
  for (let n of e) if (ot(n)) t.add(n.customType);
805
816
  else if (n.type === "section") {
806
817
  let e = n.children;
807
818
  if (!e) continue;
808
- for (let n of e) $r(n, t);
809
- } else Ge(n) && $r(n.children, t);
819
+ for (let n of e) ei(n, t);
820
+ } else Ge(n) && ei(n.children, t);
810
821
  }
811
822
  // src/utils/registerBuiltInBlocks.ts
812
- var ei = [
823
+ var ti = [
813
824
  {
814
825
  type: "section",
815
826
  createBlock: he
@@ -863,8 +874,8 @@ var ei = [
863
874
  createBlock: lt
864
875
  }
865
876
  ];
866
- function ti(e, t) {
867
- for (let n of ei) {
877
+ function ni(e, t) {
878
+ for (let n of ti) {
868
879
  let r = t[n.type];
869
880
  r && e.registerBuiltIn(n.type, {
870
881
  component: r,
@@ -873,22 +884,22 @@ function ti(e, t) {
873
884
  }
874
885
  }
875
886
  // src/utils/resolveHtmlBlockPreview.ts
876
- function ni(e) {
887
+ function ri(e) {
877
888
  return typeof e == "boolean" ? e : e?.enabled ?? !1;
878
889
  }
879
890
  // src/utils/collectOffPaletteDefaults.ts
880
- function ri(e) {
891
+ function ii(e) {
881
892
  return typeof e == "object" && !!e && !Array.isArray(e);
882
893
  }
883
- function ii(e, t, n) {
894
+ function ai(e, t, n) {
884
895
  let r = new Set(e.map((e) => pt(e))), i = [], a = (e, t) => {
885
- 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}`) : ri(o) && a(o, `${t}.${n}`);
896
+ 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}`);
886
897
  }, o = t;
887
898
  for (let [e, t] of Object.entries(Ze)) {
888
899
  let n = o?.[e];
889
900
  a({
890
901
  ...t,
891
- ...ri(n) ? n : {}
902
+ ...ii(n) ? n : {}
892
903
  }, e);
893
904
  }
894
905
  return a({
@@ -897,7 +908,7 @@ function ii(e, t, n) {
897
908
  }, "template"), i;
898
909
  }
899
910
  // src/utils/localizedBlockDefaults.ts
900
- function ai(e) {
911
+ function oi(e) {
901
912
  return {
902
913
  title: { content: `<p>${e.blockDefaults.title}</p>` },
903
914
  paragraph: { content: `<p>${e.blockDefaults.paragraph}</p>` },
@@ -905,63 +916,63 @@ function ai(e) {
905
916
  };
906
917
  }
907
918
  // src/i18n/index.ts
908
- var oi = /* #__PURE__ */ Object.assign({
909
- "./locales/ca.ts": () => import("./ca-BJn8lcJx.js"),
910
- "./locales/da.ts": () => import("./da-qQzj0QGy.js"),
911
- "./locales/de.ts": () => import("./de-BLFp3nWx.js"),
912
- "./locales/en.ts": () => import("./en-DGGQJGbm.js"),
913
- "./locales/es.ts": () => import("./es-DTY9qgLv.js"),
914
- "./locales/fr.ts": () => import("./fr-L4FqO9Gp.js"),
915
- "./locales/ja.ts": () => import("./ja-6uOXkh4v.js"),
916
- "./locales/nl.ts": () => import("./nl-DCxuxwNq.js"),
917
- "./locales/pt-BR.ts": () => import("./pt-BR-CBkcrebr.js")
918
- }), si = /* #__PURE__ */ Object.assign({
919
+ var si = /* #__PURE__ */ Object.assign({
920
+ "./locales/ca.ts": () => import("./ca-YfIxwO1G.js"),
921
+ "./locales/da.ts": () => import("./da-CM6DCvRG.js"),
922
+ "./locales/de.ts": () => import("./de-Dugz1zXC.js"),
923
+ "./locales/en.ts": () => import("./en-BykoFuFY.js"),
924
+ "./locales/es.ts": () => import("./es-DaWsTkpj.js"),
925
+ "./locales/fr.ts": () => import("./fr-DqwQHtJo.js"),
926
+ "./locales/ja.ts": () => import("./ja-BH4MS1Ye.js"),
927
+ "./locales/nl.ts": () => import("./nl-BQl1_UHv.js"),
928
+ "./locales/pt-BR.ts": () => import("./pt-BR-eyzmU9Vs.js")
929
+ }), ci = /* #__PURE__ */ Object.assign({
919
930
  "./locales/cloud/de.ts": () => import("./de-6M4JoHoD.js"),
920
931
  "./locales/cloud/en.ts": () => import("./en-FzUuJ8HW.js"),
921
932
  "./locales/cloud/pt-BR.ts": () => import("./pt-BR-Bp92Fc6J.js")
922
933
  });
923
- function ci(e) {
934
+ function li(e) {
924
935
  return Object.keys(e).map((e) => e.match(/\/([^/]+)\.ts$/)?.[1]).filter((e) => !!e);
925
936
  }
926
- var li = ci(oi), ui = ci(si);
927
- function di(e) {
937
+ var ui = li(si), di = li(ci);
938
+ function fi(e) {
928
939
  return e.trim().replace(/_/g, "-").toLowerCase();
929
940
  }
930
- function fi(e, t) {
931
- let n = di(e);
932
- return t.find((e) => di(e) === n);
933
- }
934
- function pi(e) {
935
- return di(e).split("-")[0];
941
+ function pi(e, t) {
942
+ let n = fi(e);
943
+ return t.find((e) => fi(e) === n);
936
944
  }
937
- function mi(e, t) {
938
- return fi(e, t) ?? fi(pi(e), t);
945
+ function mi(e) {
946
+ return fi(e).split("-")[0];
939
947
  }
940
948
  function hi(e, t) {
941
- return mi(e, t) ?? "en";
949
+ return pi(e, t) ?? pi(mi(e), t);
942
950
  }
943
- async function gi(e) {
944
- let t = oi[`./locales/${hi(e, li)}.ts`];
945
- return (await t()).default;
951
+ function gi(e, t) {
952
+ return hi(e, t) ?? "en";
946
953
  }
947
954
  async function _i(e) {
948
- let t = si[`./locales/cloud/${hi(e, ui)}.ts`];
955
+ let t = si[`./locales/${gi(e, ui)}.ts`];
949
956
  return (await t()).default;
950
957
  }
951
- function vi(e) {
952
- return mi(e, li) !== void 0;
958
+ async function vi(e) {
959
+ let t = ci[`./locales/cloud/${gi(e, di)}.ts`];
960
+ return (await t()).default;
953
961
  }
954
962
  function yi(e) {
955
- return mi(e, ui) !== void 0;
963
+ return hi(e, ui) !== void 0;
956
964
  }
957
- function bi() {
958
- return [...li];
965
+ function bi(e) {
966
+ return hi(e, di) !== void 0;
959
967
  }
960
968
  function xi() {
961
969
  return [...ui];
962
970
  }
971
+ function Si() {
972
+ return [...di];
973
+ }
963
974
  // src/i18n/contentDefaults.ts
964
- var Si = {
975
+ var Ci = {
965
976
  en: {
966
977
  video: "Video",
967
978
  days: "Days",
@@ -1034,16 +1045,16 @@ var Si = {
1034
1045
  seconds: "Sekunder",
1035
1046
  expired: "Dette tilbud er udløbet"
1036
1047
  }
1037
- }, Ci = new Map(Object.keys(Si).map((e) => [e.toLowerCase(), e]));
1038
- function wi(e) {
1039
- if (!e) return Si.en;
1040
- let t = e.trim().replace(/_/g, "-").toLowerCase(), n = Ci.get(t);
1041
- if (n) return Si[n];
1042
- let r = Ci.get(pi(t));
1043
- return r ? Si[r] : Si.en;
1044
- }
1048
+ }, wi = new Map(Object.keys(Ci).map((e) => [e.toLowerCase(), e]));
1045
1049
  function Ti(e) {
1046
- let t = wi(e);
1050
+ if (!e) return Ci.en;
1051
+ let t = e.trim().replace(/_/g, "-").toLowerCase(), n = wi.get(t);
1052
+ if (n) return Ci[n];
1053
+ let r = wi.get(mi(t));
1054
+ return r ? Ci[r] : Ci.en;
1055
+ }
1056
+ function Ei(e) {
1057
+ let t = Ti(e);
1047
1058
  return {
1048
1059
  video: { alt: t.video },
1049
1060
  countdown: {
@@ -1056,9 +1067,9 @@ function Ti(e) {
1056
1067
  };
1057
1068
  }
1058
1069
  // src/utils/collectColorFieldIssues.ts
1059
- function Ei(e, t) {
1070
+ function Di(e, t) {
1060
1071
  let n = [], r = (r, i) => {
1061
- let a = Rn(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
1072
+ let a = zn(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
1062
1073
  if (a.invalidPresets.length > 0 && n.push({
1063
1074
  id: s("invalid-presets"),
1064
1075
  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." : "")
@@ -1081,7 +1092,7 @@ function Ei(e, t) {
1081
1092
  return n;
1082
1093
  }
1083
1094
  // src/utils/keyboardShortcuts.ts
1084
- function Di(e) {
1095
+ function Oi(e) {
1085
1096
  for (let t of e.composedPath()) {
1086
1097
  if (!(t instanceof HTMLElement)) continue;
1087
1098
  if (t.isContentEditable) return !0;
@@ -1090,14 +1101,14 @@ function Di(e) {
1090
1101
  }
1091
1102
  return !1;
1092
1103
  }
1093
- function Oi(e, t) {
1104
+ function ki(e, t) {
1094
1105
  let n = e.metaKey || e.ctrlKey;
1095
1106
  if (n && e.key.toLowerCase() === "s") e.preventDefault(), t.onSave?.();
1096
1107
  else if (n && e.key.toLowerCase() === "z") {
1097
- if (Di(e)) return;
1108
+ if (Oi(e)) return;
1098
1109
  e.preventDefault(), e.shiftKey ? t.history.redo() : t.history.undo();
1099
1110
  } else {
1100
- if (t.isPicking?.() && !Di(e)) {
1111
+ if (t.isPicking?.() && !Oi(e)) {
1101
1112
  if (e.key === "Escape") {
1102
1113
  e.preventDefault(), t.onCancelPick?.();
1103
1114
  return;
@@ -1111,23 +1122,23 @@ function Oi(e, t) {
1111
1122
  return;
1112
1123
  }
1113
1124
  }
1114
- e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Di(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
1125
+ 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()));
1115
1126
  }
1116
1127
  }
1117
1128
  // src/utils/blockComponentResolver.ts
1118
- function ki(e, t) {
1129
+ function Ai(e, t) {
1119
1130
  let n = { fontFamily: t(e.fontFamily) };
1120
1131
  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;
1121
1132
  }
1122
- function Ai(e, t, n) {
1133
+ function ji(e, t, n) {
1123
1134
  if (t) {
1124
1135
  let n = t.getComponent(e);
1125
1136
  if (n) return n;
1126
1137
  }
1127
1138
  return n[e.type] ?? null;
1128
1139
  }
1129
- var ji = "--tpl-block-bg-layer", Mi = "--tpl-email-frame-width", Ni = "tpl-has-bg-image";
1130
- function Pi(e, t) {
1140
+ var Mi = "--tpl-block-bg-layer", Ni = "--tpl-email-frame-width", Pi = "tpl-has-bg-image";
1141
+ function Fi(e, t) {
1131
1142
  if (t === null) return {};
1132
1143
  let n = Re(e);
1133
1144
  if (n === null) return {};
@@ -1137,31 +1148,31 @@ function Pi(e, t) {
1137
1148
  backgroundSize: n.size,
1138
1149
  backgroundPosition: n.position,
1139
1150
  backgroundRepeat: n.repeat,
1140
- [ji]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
1151
+ [Mi]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
1141
1152
  };
1142
1153
  }
1143
- function Fi(e) {
1144
- return e && ji in e ? Ni : void 0;
1154
+ function Ii(e) {
1155
+ return e && Mi in e ? Pi : void 0;
1145
1156
  }
1146
- var Ii = {
1157
+ var Li = {
1147
1158
  top: "flex-start",
1148
1159
  middle: "center",
1149
1160
  bottom: "flex-end"
1150
1161
  };
1151
- function Li(e, t) {
1152
- let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${Ri(t, e.aspectRatio)}px` } : { aspectRatio: `1 / ${e.aspectRatio ?? 1}` };
1162
+ function Ri(e, t) {
1163
+ 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}` };
1153
1164
  return {
1154
1165
  display: "flex",
1155
1166
  flexDirection: "column",
1156
- justifyContent: Ii[e.verticalAlign],
1167
+ justifyContent: Li[e.verticalAlign],
1157
1168
  boxSizing: "border-box",
1158
1169
  ...n
1159
1170
  };
1160
1171
  }
1161
- function Ri(e, t) {
1172
+ function zi(e, t) {
1162
1173
  return Math.max(1, Math.round(Math.max(1, Math.round(e)) * t));
1163
1174
  }
1164
- function zi(e, t = {}) {
1175
+ function Bi(e, t = {}) {
1165
1176
  if (e.type === "wrapper") return {};
1166
1177
  let { padding: n, backgroundColor: r } = e.styles, i = {
1167
1178
  padding: `${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`,
@@ -1171,59 +1182,59 @@ function zi(e, t = {}) {
1171
1182
  let n = Ce(e.borderRadius);
1172
1183
  n !== null && (i.borderRadius = n);
1173
1184
  let r = Fe(e);
1174
- r?.applied && e.backgroundImage ? (Object.assign(i, Li(r, t.heroBoxWidth)), Object.assign(i, Pi({
1185
+ r?.applied && e.backgroundImage ? (Object.assign(i, Ri(r, t.heroBoxWidth)), Object.assign(i, Fi({
1175
1186
  ...e.backgroundImage,
1176
1187
  size: "cover",
1177
1188
  repeat: !1
1178
- }, t.backgroundImageUrl))) : (Object.assign(i, Vi(e.border)), Object.assign(i, Pi(e.backgroundImage, t.backgroundImageUrl)));
1189
+ }, t.backgroundImageUrl))) : (Object.assign(i, Hi(e.border)), Object.assign(i, Fi(e.backgroundImage, t.backgroundImageUrl)));
1179
1190
  }
1180
1191
  return i;
1181
1192
  }
1182
- function Bi(e, t, n, r) {
1183
- return e.type === "section" ? zi(e, {
1184
- backgroundImageUrl: wn(t, e.backgroundImage, n),
1193
+ function Vi(e, t, n, r) {
1194
+ return e.type === "section" ? Bi(e, {
1195
+ backgroundImageUrl: Tn(t, e.backgroundImage, n),
1185
1196
  heroBoxWidth: r
1186
- }) : zi(e);
1197
+ }) : Bi(e);
1187
1198
  }
1188
- function Vi(e) {
1199
+ function Hi(e) {
1189
1200
  let t = {};
1190
1201
  for (let [n, r] of Object.entries(ct(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
1191
1202
  return t;
1192
1203
  }
1193
- var Hi = {
1204
+ var Ui = {
1194
1205
  width: "100cqw",
1195
1206
  maxWidth: "none",
1196
1207
  marginInline: "calc(50% - 50cqw)",
1197
1208
  boxSizing: "border-box"
1198
1209
  };
1199
- function Ui(e) {
1210
+ function Wi(e) {
1200
1211
  return `${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`;
1201
1212
  }
1202
- function Wi(e) {
1213
+ function Gi(e) {
1203
1214
  let t = {
1204
1215
  width: "var(--tpl-email-frame-width)",
1205
1216
  maxWidth: "100%",
1206
1217
  marginInline: "auto",
1207
1218
  boxSizing: "border-box"
1208
1219
  };
1209
- return e && (t.padding = Ui(e)), t;
1220
+ return e && (t.padding = Wi(e)), t;
1210
1221
  }
1211
- function Gi(e, t = {}) {
1222
+ function Ki(e, t = {}) {
1212
1223
  if (e.type !== "section" || !e.wrapper) return null;
1213
1224
  let n = e.wrapper, r = {};
1214
- if (n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && !n.fullWidth && (r.padding = Ui(n.padding)), !n.fullWidth) {
1225
+ if (n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && !n.fullWidth && (r.padding = Wi(n.padding)), !n.fullWidth) {
1215
1226
  let e = Ce(n.borderRadius);
1216
1227
  e !== null && (r.borderRadius = e);
1217
1228
  }
1218
- return Object.assign(r, Pi(n.backgroundImage, t.backgroundImageUrl)), n.fullWidth && Object.assign(r, Hi), r;
1229
+ return Object.assign(r, Fi(n.backgroundImage, t.backgroundImageUrl)), n.fullWidth && Object.assign(r, Ui), r;
1219
1230
  }
1220
- function Ki(e, t = {}) {
1231
+ function qi(e, t = {}) {
1221
1232
  if (e.type !== "wrapper") return null;
1222
1233
  let n = {};
1223
- return e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding && !e.fullWidth && (n.padding = Ui(e.styles.padding)), !e.fullWidth && e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, Pi(e.backgroundImage, t.backgroundImageUrl)), e.fullWidth && Object.assign(n, Hi), n;
1234
+ 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;
1224
1235
  }
1225
1236
  // src/utils/mergeTagLabelSegments.ts
1226
- function qi(e, t, n, r = !1) {
1237
+ function Ji(e, t, n, r = !1) {
1227
1238
  if (!e) return [];
1228
1239
  let i = [], a = 0;
1229
1240
  for (let o of Ye(e, n)) {
@@ -1256,27 +1267,27 @@ function qi(e, t, n, r = !1) {
1256
1267
  }), i;
1257
1268
  }
1258
1269
  // src/components/MergeTagPreviewText.vue
1259
- var Ji = o({
1270
+ var Yi = o({
1260
1271
  name: "MergeTagPreviewText",
1261
1272
  props: { text: {
1262
1273
  type: String,
1263
1274
  required: !0
1264
1275
  } },
1265
1276
  setup(e) {
1266
- let t = g(Pt, Bt), n = g(xt, le.liquid), r = g(mn, null), i = I(() => qi(e.text, t.value, n, r?.value ?? !1));
1277
+ 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));
1267
1278
  return () => i.value.map((e, t) => e.type === "tag" ? s("span", {
1268
1279
  key: t,
1269
1280
  class: "tpl-merge-tag-label"
1270
1281
  }, e.value) : e.value);
1271
1282
  }
1272
- }), Yi = ["href"], Xi = /* @__PURE__ */ o({
1283
+ }), Xi = ["href"], Zi = /* @__PURE__ */ o({
1273
1284
  __name: "ButtonBlock",
1274
1285
  props: {
1275
1286
  block: {},
1276
1287
  viewport: {}
1277
1288
  },
1278
1289
  setup(e) {
1279
- let t = e, n = Yt(qt, "ButtonBlock");
1290
+ let t = e, n = on(Jt, "ButtonBlock");
1280
1291
  function r(e) {
1281
1292
  return e === "regular" ? "400" : e === "medium" ? "500" : e === "bold" ? "700" : "bold";
1282
1293
  }
@@ -1293,27 +1304,27 @@ var Ji = o({
1293
1304
  borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : Ce(t.block.borderRadius) ?? "0px",
1294
1305
  textAlign: "center"
1295
1306
  };
1296
- return Object.assign(e, Vi(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
+ 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;
1297
1308
  }), a = I(() => ({ textAlign: t.block.align ?? "center" }));
1298
1309
  return (t, n) => (c(), w("div", { style: L(a.value) }, [N("a", {
1299
1310
  href: e.block.url || "#",
1300
1311
  style: L(i.value),
1301
1312
  class: "tpl:cursor-default",
1302
1313
  onClick: n[0] ||= M(() => {}, ["prevent"])
1303
- }, [W(Ji, { text: e.block.text }, null, 8, ["text"])], 12, Yi)], 4));
1314
+ }, [W(Yi, { text: e.block.text }, null, 8, ["text"])], 12, Xi)], 4));
1304
1315
  }
1305
- }), Zi = ["innerHTML"], Qi = [
1316
+ }), Qi = ["innerHTML"], $i = [
1306
1317
  "src",
1307
1318
  "width",
1308
1319
  "height"
1309
- ], $i = /* @__PURE__ */ o({
1320
+ ], ea = /* @__PURE__ */ o({
1310
1321
  __name: "CustomBlockIcon",
1311
1322
  props: {
1312
1323
  icon: {},
1313
1324
  size: {}
1314
1325
  },
1315
1326
  setup(e) {
1316
- 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 ? Gn(t.icon ?? "") : "");
1327
+ 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 ?? "") : "");
1317
1328
  return (t, o) => r.value ? (c(), w("span", {
1318
1329
  key: 0,
1319
1330
  class: "tpl:inline-flex tpl:items-center tpl:justify-center",
@@ -1322,33 +1333,33 @@ var Ji = o({
1322
1333
  height: `${n.value}px`
1323
1334
  }),
1324
1335
  innerHTML: a.value
1325
- }, null, 12, Zi)) : i.value ? (c(), w("img", {
1336
+ }, null, 12, Qi)) : i.value ? (c(), w("img", {
1326
1337
  key: 1,
1327
1338
  src: e.icon,
1328
1339
  width: n.value,
1329
1340
  height: n.value,
1330
1341
  class: "tpl:inline-block",
1331
1342
  alt: ""
1332
- }, null, 8, Qi)) : (c(), A(D($n), {
1343
+ }, null, 8, $i)) : (c(), A(D(er), {
1333
1344
  key: 2,
1334
1345
  size: n.value,
1335
1346
  "stroke-width": 1.5
1336
1347
  }, null, 8, ["size"]));
1337
1348
  }
1338
- }), ea = { class: "tpl:w-full" }, ta = {
1349
+ }), ta = { class: "tpl:w-full" }, na = {
1339
1350
  key: 0,
1340
1351
  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)]"
1341
- }, na = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ra = {
1352
+ }, ra = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ia = {
1342
1353
  key: 1,
1343
1354
  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)]"
1344
- }, ia = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, aa = {
1355
+ }, aa = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, oa = {
1345
1356
  key: 2,
1346
1357
  class: "tpl:relative"
1347
- }, oa = ["innerHTML"], sa = {
1358
+ }, sa = ["innerHTML"], ca = {
1348
1359
  key: 0,
1349
1360
  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]",
1350
1361
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
1351
- }, ca = /* @__PURE__ */ o({
1362
+ }, la = /* @__PURE__ */ o({
1352
1363
  __name: "CustomBlock",
1353
1364
  props: {
1354
1365
  block: {},
@@ -1356,7 +1367,7 @@ var Ji = o({
1356
1367
  },
1357
1368
  emits: ["fetchData"],
1358
1369
  setup(e, { emit: t }) {
1359
- let n = e, r = t, { t: i } = G(), a = g(an, null), o = H(""), s = I(() => Kn(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 } = Tn({
1370
+ 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({
1360
1371
  definition: d,
1361
1372
  block: p,
1362
1373
  onUpdate: (e, t) => {
@@ -1365,7 +1376,7 @@ var Ji = o({
1365
1376
  dataSourceFetched: t
1366
1377
  });
1367
1378
  }
1368
- }), b = g(Pt, Bt), x = g(mn, null), S = I(() => {
1379
+ }), b = g(Ft, Bt), x = g(Xt, null), S = I(() => {
1369
1380
  if (!x?.value) return n.block;
1370
1381
  let e = {};
1371
1382
  for (let [t, r] of Object.entries(n.block.fieldValues)) e[t] = typeof r == "string" ? ke(r, b.value) : r;
@@ -1392,10 +1403,10 @@ var Ji = o({
1392
1403
  E();
1393
1404
  }, { deep: !0 }), u(() => x?.value, () => {
1394
1405
  E();
1395
- }), (e, t) => (c(), w("div", ea, [f.value ? l.value ? (c(), w("div", ra, [W(D(ir), {
1406
+ }), (e, t) => (c(), w("div", ta, [f.value ? l.value ? (c(), w("div", ia, [W(D(ar), {
1396
1407
  size: 24,
1397
1408
  class: "tpl:text-[var(--tpl-danger)]"
1398
- }), N("span", ia, P(D(i).customBlocks.renderError), 1)])) : (c(), w("div", aa, [N("div", { innerHTML: s.value }, null, 8, oa), D(y) && D(v) ? (c(), w("div", sa, [D(m) ? (c(), A(fr, {
1409
+ }), 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, {
1399
1410
  key: 1,
1400
1411
  class: "tpl:w-48"
1401
1412
  })) : (c(), w("button", {
@@ -1403,16 +1414,16 @@ var Ji = o({
1403
1414
  type: "button",
1404
1415
  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)]",
1405
1416
  onClick: t[0] ||= M((...e) => D(_) && D(_)(...e), ["stop"])
1406
- }, [d.value?.icon ? (c(), A($i, {
1417
+ }, [d.value?.icon ? (c(), A(ea, {
1407
1418
  key: 0,
1408
1419
  icon: d.value.icon,
1409
1420
  size: 16
1410
- }, null, 8, ["icon"])) : k("", !0), T(" " + P(d.value?.dataSource?.label || D(i).customBlocks.dataSource.fetchButton), 1)]))])) : k("", !0)])) : (c(), w("div", ta, [W(D(er), {
1421
+ }, 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), {
1411
1422
  size: 24,
1412
1423
  class: "tpl:text-[var(--tpl-warning)]"
1413
- }), N("span", na, P(D(i).customBlocks.definitionNotFound), 1)]))]));
1424
+ }), N("span", ra, P(D(i).customBlocks.definitionNotFound), 1)]))]));
1414
1425
  }
1415
- }), la = { class: "tpl:w-full" }, ua = /* @__PURE__ */ o({
1426
+ }), ua = { class: "tpl:w-full" }, da = /* @__PURE__ */ o({
1416
1427
  __name: "DividerBlock",
1417
1428
  props: {
1418
1429
  block: {},
@@ -1424,28 +1435,28 @@ var Ji = o({
1424
1435
  width: t.block.width === "full" ? "100%" : typeof t.block.width == "number" ? `${t.block.width}px` : t.block.width,
1425
1436
  margin: t.block.width === "full" ? "0" : "0 auto"
1426
1437
  }));
1427
- return (e, t) => (c(), w("div", la, [N("hr", {
1438
+ return (e, t) => (c(), w("div", ua, [N("hr", {
1428
1439
  class: "tpl:m-0 tpl:border-none",
1429
1440
  style: L(n.value)
1430
1441
  }, null, 4)]));
1431
1442
  }
1432
- }), da = { class: "tpl:w-full" }, fa = ["srcdoc", "title"], pa = {
1443
+ }), fa = { class: "tpl:w-full" }, pa = ["srcdoc", "title"], ma = {
1433
1444
  key: 1,
1434
1445
  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)]"
1435
- }, ma = {
1446
+ }, ha = {
1436
1447
  key: 0,
1437
1448
  class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
1438
- }, ha = {
1449
+ }, ga = {
1439
1450
  key: 1,
1440
1451
  class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
1441
- }, ga = /* @__PURE__ */ o({
1452
+ }, _a = /* @__PURE__ */ o({
1442
1453
  __name: "HtmlBlock",
1443
1454
  props: {
1444
1455
  block: {},
1445
1456
  viewport: {}
1446
1457
  },
1447
1458
  setup(e) {
1448
- 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(Pt, Bt), s = g(mn, null), l = I(() => s?.value ? ke(t.block.content, o.value) : t.block.content), d = H(null), f = H(60), p = null;
1459
+ 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;
1449
1460
  function h() {
1450
1461
  let e = d.value?.contentDocument;
1451
1462
  e && (f.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
@@ -1459,7 +1470,7 @@ var Ji = o({
1459
1470
  e || (p?.disconnect(), p = null);
1460
1471
  }), m(() => {
1461
1472
  p?.disconnect(), p = null;
1462
- }), (e, t) => (c(), w("div", da, [a.value ? (c(), w("iframe", {
1473
+ }), (e, t) => (c(), w("div", fa, [a.value ? (c(), w("iframe", {
1463
1474
  key: 0,
1464
1475
  ref_key: "iframeRef",
1465
1476
  ref: d,
@@ -1469,18 +1480,18 @@ var Ji = o({
1469
1480
  class: "tpl:block tpl:w-full tpl:border-0",
1470
1481
  style: L({ height: `${f.value}px` }),
1471
1482
  onLoad: _
1472
- }, null, 44, fa)) : (c(), w("div", pa, [W(D(Yn), {
1483
+ }, null, 44, pa)) : (c(), w("div", ma, [W(D(Xn), {
1473
1484
  size: 24,
1474
1485
  class: "tpl:text-[var(--tpl-text-dim)]"
1475
- }), i.value ? (c(), w("span", ma, P(D(n).html.preview), 1)) : (c(), w("span", ha, P(D(n).html.empty), 1))]))]));
1486
+ }), i.value ? (c(), w("span", ha, P(D(n).html.preview), 1)) : (c(), w("span", ga, P(D(n).html.empty), 1))]))]));
1476
1487
  }
1477
- }), _a = ["data-drop-enabled"], va = ["href"], ya = ["src", "alt"], ba = ["src", "alt"], xa = {
1488
+ }), va = ["data-drop-enabled"], ya = ["href"], ba = ["src", "alt"], xa = ["src", "alt"], Sa = {
1478
1489
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
1479
1490
  style: { opacity: "0.7" }
1480
- }, Sa = ["href"], Ca = ["src", "alt"], wa = ["src", "alt"], Ta = {
1491
+ }, Ca = ["href"], wa = ["src", "alt"], Ta = ["src", "alt"], Ea = {
1481
1492
  key: 4,
1482
1493
  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)]"
1483
- }, Ea = ["aria-label"], Da = { key: 1 }, Oa = /* @__PURE__ */ o({
1494
+ }, Da = ["aria-label"], Oa = { key: 1 }, ka = /* @__PURE__ */ o({
1484
1495
  __name: "ImageBlock",
1485
1496
  props: {
1486
1497
  block: {},
@@ -1492,11 +1503,11 @@ var Ji = o({
1492
1503
  function s(e) {
1493
1504
  let t = {
1494
1505
  src: e.url,
1495
- ...Nn(An(e.width, e.height))
1506
+ ...Pn(jn(e.width, e.height))
1496
1507
  };
1497
1508
  e.alt && (t.alt = e.alt), r("update", t);
1498
1509
  }
1499
- let l = H(), { canBrowse: u, dropEnabled: d, isUploading: f, showOverlay: p, openMediaBrowser: m } = Ln({
1510
+ let l = H(), { canBrowse: u, dropEnabled: d, isUploading: f, showOverlay: p, openMediaBrowser: m } = Rn({
1500
1511
  target: l,
1501
1512
  blocked: o,
1502
1513
  apply: s
@@ -1510,12 +1521,12 @@ var Ji = o({
1510
1521
  width: n.block.width === "full" ? g.value : `${n.block.width}px`,
1511
1522
  height: n.block.height ? `${n.block.height}px` : void 0,
1512
1523
  borderRadius: Ce(n.block.borderRadius) ?? void 0,
1513
- ...Vi(n.block.border),
1524
+ ...Hi(n.block.border),
1514
1525
  display: "block",
1515
1526
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
1516
1527
  marginRight: e === "center" ? "auto" : void 0
1517
1528
  };
1518
- }), v = kn(() => o.value ? void 0 : n.block.src), y = kn(() => o.value ? n.block.placeholderUrl : void 0);
1529
+ }), v = An(() => o.value ? void 0 : n.block.src), y = An(() => o.value ? n.block.placeholderUrl : void 0);
1519
1530
  return (t, n) => (c(), w("div", {
1520
1531
  ref_key: "dropZoneRef",
1521
1532
  ref: l,
@@ -1523,7 +1534,7 @@ var Ji = o({
1523
1534
  "data-drop-enabled": D(d),
1524
1535
  class: "tpl:relative tpl:w-full",
1525
1536
  style: L(h.value)
1526
- }, [D(p) ? (c(), A(Mn, {
1537
+ }, [D(p) ? (c(), A(Nn, {
1527
1538
  key: 0,
1528
1539
  uploading: D(f),
1529
1540
  size: "canvas"
@@ -1539,22 +1550,22 @@ var Ji = o({
1539
1550
  src: D(y),
1540
1551
  alt: e.block.alt || D(i).image.altTextPlaceholder,
1541
1552
  style: L(_.value)
1542
- }, null, 12, ya)], 8, va)) : (c(), w("img", {
1553
+ }, null, 12, ba)], 8, ya)) : (c(), w("img", {
1543
1554
  key: 1,
1544
1555
  class: "tpl:border-0",
1545
1556
  src: D(y),
1546
1557
  alt: e.block.alt,
1547
1558
  style: L(_.value)
1548
- }, null, 12, ba))], 64)) : e.block.src && o.value ? (c(), w("div", {
1559
+ }, null, 12, xa))], 64)) : e.block.src && o.value ? (c(), w("div", {
1549
1560
  key: 2,
1550
1561
  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)]",
1551
1562
  style: L([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, _.value])
1552
- }, [W(D(rr), {
1563
+ }, [W(D(ir), {
1553
1564
  size: 32,
1554
1565
  "stroke-width": 1.5,
1555
1566
  class: "tpl:text-[var(--tpl-primary)]",
1556
1567
  style: { opacity: "0.5" }
1557
- }), N("span", xa, [W(Ji, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (c(), w(U, { key: 3 }, [e.block.linkUrl ? (c(), w("a", {
1568
+ }), 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", {
1558
1569
  key: 0,
1559
1570
  href: e.block.linkUrl,
1560
1571
  target: "_blank",
@@ -1566,33 +1577,33 @@ var Ji = o({
1566
1577
  src: D(v),
1567
1578
  alt: e.block.alt || D(i).image.altTextPlaceholder,
1568
1579
  style: L(_.value)
1569
- }, null, 12, Ca)], 8, Sa)) : (c(), w("img", {
1580
+ }, null, 12, wa)], 8, Ca)) : (c(), w("img", {
1570
1581
  key: 1,
1571
1582
  class: "tpl:border-0",
1572
1583
  src: D(v),
1573
1584
  alt: e.block.alt,
1574
1585
  style: L(_.value)
1575
- }, null, 12, wa))], 64)) : (c(), w("div", Ta, [D(u) ? (c(), w("button", {
1586
+ }, null, 12, Ta))], 64)) : (c(), w("div", Ea, [D(u) ? (c(), w("button", {
1576
1587
  key: 0,
1577
1588
  "aria-label": D(i).image.browseMedia,
1578
1589
  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)]",
1579
1590
  onClick: n[2] ||= M((...e) => D(m) && D(m)(...e), ["stop"])
1580
- }, [W(D(rr), {
1591
+ }, [W(D(ir), {
1581
1592
  size: 14,
1582
1593
  "stroke-width": 1.5
1583
- }), T(" " + P(D(i).image.browseMedia), 1)], 8, Ea)) : (c(), w("span", Da, P(D(i).image.clickToAdd), 1))]))], 12, _a));
1594
+ }), T(" " + P(D(i).image.browseMedia), 1)], 8, Da)) : (c(), w("span", Oa, P(D(i).image.clickToAdd), 1))]))], 12, va));
1584
1595
  }
1585
- }), ka = { class: "tpl:w-full" }, Aa = ["href"], ja = {
1596
+ }), Aa = { class: "tpl:w-full" }, ja = ["href"], Ma = {
1586
1597
  key: 1,
1587
1598
  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)]"
1588
- }, Ma = /* @__PURE__ */ o({
1599
+ }, Na = /* @__PURE__ */ o({
1589
1600
  __name: "MenuBlock",
1590
1601
  props: {
1591
1602
  block: {},
1592
1603
  viewport: {}
1593
1604
  },
1594
1605
  setup(e) {
1595
- let t = e, { t: n } = G(), r = Yt(qt, "MenuBlock"), i = I(() => ({
1606
+ let t = e, { t: n } = G(), r = on(Jt, "MenuBlock"), i = I(() => ({
1596
1607
  display: "flex",
1597
1608
  flexWrap: "wrap",
1598
1609
  gap: `0 ${t.block.spacing}px`,
@@ -1604,7 +1615,7 @@ var Ji = o({
1604
1615
  function o(e) {
1605
1616
  return e || t.block.linkColor || t.block.color;
1606
1617
  }
1607
- return (t, r) => (c(), w("div", ka, [a.value ? (c(), w("div", {
1618
+ return (t, r) => (c(), w("div", Aa, [a.value ? (c(), w("div", {
1608
1619
  key: 0,
1609
1620
  style: L(i.value)
1610
1621
  }, [(c(!0), w(U, null, p(e.block.items, (t, n) => (c(), w(U, { key: t.id }, [N("a", {
@@ -1616,18 +1627,18 @@ var Ji = o({
1616
1627
  textDecoration: t.underline ? "underline" : "none"
1617
1628
  }),
1618
1629
  onClick: r[0] ||= M(() => {}, ["prevent"])
1619
- }, [W(Ji, { text: t.text || "..." }, null, 8, ["text"])], 12, Aa), n < e.block.items.length - 1 ? (c(), w("span", {
1630
+ }, [W(Yi, { text: t.text || "..." }, null, 8, ["text"])], 12, ja), n < e.block.items.length - 1 ? (c(), w("span", {
1620
1631
  key: 0,
1621
1632
  style: L({
1622
1633
  color: e.block.separatorColor,
1623
1634
  padding: `0 ${e.block.spacing}px`
1624
1635
  })
1625
- }, P(e.block.separator), 5)) : k("", !0)], 64))), 128))], 4)) : (c(), w("div", ja, [W(D(nr), { size: 16 }), N("span", null, P(D(n).menu.addLinks), 1)]))]));
1636
+ }, 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)]))]));
1626
1637
  }
1627
1638
  });
1628
1639
  // src/composables/useEditableTextBlock.ts
1629
- function Na(e) {
1630
- let t = g(Pt, Bt), r = g(mn, null), i = g(Ut, null), { syntax: a } = K(), o = I(() => r?.value ? Ue(e(), t.value) : Le(e(), t.value)), s = I(() => Oe(Kn(ie(o.value, a)))), c = H(!1);
1640
+ function Pa(e) {
1641
+ 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);
1631
1642
  u(() => i?.value, (e) => {
1632
1643
  e && (c.value = !1);
1633
1644
  });
@@ -1651,14 +1662,14 @@ function Na(e) {
1651
1662
  };
1652
1663
  }
1653
1664
  // src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
1654
- var Pa = ["innerHTML"], Fa = /* @__PURE__ */ o({
1665
+ var Fa = ["innerHTML"], Ia = /* @__PURE__ */ o({
1655
1666
  __name: "ParagraphBlock",
1656
1667
  props: {
1657
1668
  block: {},
1658
1669
  viewport: {}
1659
1670
  },
1660
1671
  setup(e) {
1661
- let t = e, n = b(() => import("./ParagraphEditor-rEdKBett.js").then((e) => e.t)), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: l } = Na(() => t.block.content);
1672
+ let t = e, n = b(() => import("./ParagraphEditor-BoGELRr-.js").then((e) => e.t)), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: l } = Pa(() => t.block.content);
1662
1673
  return (t, u) => (c(), w("div", {
1663
1674
  ref_key: "blockRef",
1664
1675
  ref: i,
@@ -1677,11 +1688,11 @@ var Pa = ["innerHTML"], Fa = /* @__PURE__ */ o({
1677
1688
  key: 1,
1678
1689
  class: "tpl-text-content tpl:outline-none",
1679
1690
  innerHTML: D(o)
1680
- }, null, 8, Pa))], 544));
1691
+ }, null, 8, Fa))], 544));
1681
1692
  }
1682
1693
  });
1683
1694
  // src/utils/updateBlockList.ts
1684
- function Ia(e, t, n, r = 0, i) {
1695
+ function La(e, t, n, r = 0, i) {
1685
1696
  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);
1686
1697
  if (o.some((e) => !s.includes(e.id))) return;
1687
1698
  let c = t.filter((e) => !o.some((t) => t.id === e.id)), l, u = -1;
@@ -1694,7 +1705,7 @@ function Ia(e, t, n, r = 0, i) {
1694
1705
  l && (e.findBlockLocation(l.id) ? e.moveBlock(l.id, u, n, r) : e.addBlock(JSON.parse(JSON.stringify(l)), n, r, u));
1695
1706
  }
1696
1707
  // src/utils/mergeTagTokens.ts
1697
- function La(e, t, n) {
1708
+ function Ra(e, t, n) {
1698
1709
  let r = [], i = "\0MT";
1699
1710
  for (; e.includes(i);) i += "_";
1700
1711
  let a = n === "html" ? nt(e, (e) => {
@@ -1729,44 +1740,44 @@ function La(e, t, n) {
1729
1740
  }
1730
1741
  return [...r, ...s.map((e) => e.value)].sort();
1731
1742
  }
1732
- function Ra(e, t, n, r) {
1733
- return JSON.stringify(La(e, n, r)) !== JSON.stringify(La(t, n, r));
1743
+ function za(e, t, n, r) {
1744
+ return JSON.stringify(Ra(e, n, r)) !== JSON.stringify(Ra(t, n, r));
1734
1745
  }
1735
1746
  // src/components/localization/LocaleStatusChip.vue?vue&type=script&setup=true&lang.ts
1736
- var za = [
1747
+ var Ba = [
1737
1748
  "data-state",
1738
1749
  "aria-label",
1739
1750
  "title",
1740
1751
  "aria-expanded",
1741
1752
  "aria-controls",
1742
1753
  "onKeydown"
1743
- ], Ba = [
1754
+ ], Va = [
1744
1755
  "aria-label",
1745
1756
  "aria-labelledby",
1746
1757
  "aria-describedby",
1747
1758
  "onKeydown"
1748
- ], Va = ["id"], Ha = ["id"], Ua = { class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, Wa = ["disabled"], Ga = {
1759
+ ], Ha = ["id"], Ua = ["id"], Wa = { class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, Ga = ["disabled"], Ka = {
1749
1760
  key: 0,
1750
1761
  class: "tpl:m-0 tpl:mb-2 tpl:text-xs tpl:font-medium"
1751
- }, Ka = {
1762
+ }, qa = {
1752
1763
  key: 1,
1753
1764
  class: "tpl:m-0"
1754
- }, qa = { class: "tpl:m-0" }, Ja = { class: "tpl:mt-2 tpl:mb-0 tpl:break-words tpl:text-[var(--tpl-chrome-text-muted)]" }, Ya = {
1765
+ }, Ja = { class: "tpl:m-0" }, Ya = { class: "tpl:mt-2 tpl:mb-0 tpl:break-words tpl:text-[var(--tpl-chrome-text-muted)]" }, Xa = {
1755
1766
  key: 3,
1756
1767
  class: "tpl:m-0"
1757
- }, Xa = {
1768
+ }, Za = {
1758
1769
  key: 4,
1759
1770
  class: "tpl:m-0"
1760
- }, Za = {
1771
+ }, Qa = {
1761
1772
  key: 5,
1762
1773
  class: "tpl:m-0"
1763
- }, Qa = {
1774
+ }, $a = {
1764
1775
  key: 6,
1765
1776
  class: "tpl:m-0 tpl:list-none tpl:p-0"
1766
- }, $a = ["onClick"], eo = {
1777
+ }, eo = ["onClick"], to = {
1767
1778
  key: 7,
1768
1779
  class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:gap-1"
1769
- }, to = ["data-testid", "disabled"], no = /*#__PURE__*/ vr(/* @__PURE__ */ o({
1780
+ }, no = ["data-testid", "disabled"], ro = /*#__PURE__*/ yr(/* @__PURE__ */ o({
1770
1781
  __name: "LocaleStatusChip",
1771
1782
  props: {
1772
1783
  blockId: {},
@@ -1786,24 +1797,24 @@ var za = [
1786
1797
  },
1787
1798
  emits: ["target"],
1788
1799
  setup(e, { emit: t }) {
1789
- let n = e, r = t, i = g(_n, null), o = g(tn, null), s = g(Ct, null), l = g(Kt, "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({
1800
+ 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({
1790
1801
  top: 0,
1791
1802
  left: 0
1792
1803
  }), z = H({
1793
1804
  maxHeight: 0,
1794
1805
  maxWidth: 0
1795
- }), B = `tpl-locale-popover-${ue()}`, V = I(() => pr(i?.activeLocale?.value ?? "")), W = I(() => pr(i?.content.value.settings.locale ?? "en"));
1806
+ }), B = `tpl-locale-popover-${ue()}`, V = I(() => mr(i?.activeLocale?.value ?? "")), W = I(() => mr(i?.content.value.settings.locale ?? "en"));
1796
1807
  function K(e, t) {
1797
1808
  switch (e) {
1798
1809
  case "tags-differ": return d.localization.tagsDiffer;
1799
1810
  case "hidden": return f(d.localization.hidden, { language: V.value });
1800
1811
  case "changed": return f(d.localization.changed, { language: V.value });
1801
- case "default-stale": return mr(d.localization.staleLanguages, t, l);
1802
- case "missing": return t === 1 ? d.localization.notTranslated : mr(d.localization.notTranslatedCount, t, l);
1803
- default: return t === 1 ? d.localization.outOfDate : mr(d.localization.staleCount, t, l);
1812
+ case "default-stale": return hr(d.localization.staleLanguages, t, l);
1813
+ case "missing": return t === 1 ? d.localization.notTranslated : hr(d.localization.notTranslatedCount, t, l);
1814
+ default: return t === 1 ? d.localization.outOfDate : hr(d.localization.staleCount, t, l);
1804
1815
  }
1805
1816
  }
1806
- 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" ? Zn : n.state === "changed" ? Jn : n.state === "default-stale" ? sr : n.state === "stale" ? Xn : ir), 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
+ 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);
1807
1818
  function X(e = !1) {
1808
1819
  x.value = !1, S.value = !1, F = null, e && y.value?.focus({ preventScroll: !0 });
1809
1820
  }
@@ -1912,7 +1923,7 @@ var za = [
1912
1923
  size: 12,
1913
1924
  "stroke-width": 2,
1914
1925
  "aria-hidden": "true"
1915
- }))], 40, za), D(h) && x.value ? (c(), A(ee, {
1926
+ }))], 40, Ba), D(h) && x.value ? (c(), A(ee, {
1916
1927
  key: 0,
1917
1928
  to: D(h)
1918
1929
  }, [N("div", {
@@ -1938,80 +1949,80 @@ var za = [
1938
1949
  N("h3", {
1939
1950
  id: `${B}-question`,
1940
1951
  class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
1941
- }, P(D(mr)(D(d).localization.translationConfirmation, e.translationCount ?? 0, D(l))), 9, Va),
1952
+ }, P(D(hr)(D(d).localization.translationConfirmation, e.translationCount ?? 0, D(l))), 9, Ha),
1942
1953
  N("p", {
1943
1954
  id: `${B}-warning`,
1944
1955
  class: "tpl:m-0 tpl:text-[var(--tpl-text-muted)]"
1945
- }, P(D(f)(D(d).localization.translationDescription, { language: V.value })), 9, Ha),
1946
- N("div", Ua, [N("button", {
1956
+ }, P(D(f)(D(d).localization.translationDescription, { language: V.value })), 9, Ua),
1957
+ N("div", Wa, [N("button", {
1947
1958
  ref_key: "confirmationCancel",
1948
1959
  ref: T,
1949
1960
  type: "button",
1950
1961
  "data-testid": "translation-confirm-cancel",
1951
- class: O(D(gr)),
1962
+ class: O(D(_r)),
1952
1963
  onClick: ge
1953
1964
  }, P(D(d).localization.cancel), 3), N("button", {
1954
1965
  type: "button",
1955
1966
  "data-testid": "translation-confirm",
1956
- class: O(D(_r)),
1967
+ class: O(D(vr)),
1957
1968
  disabled: !Y.value || !!D(o)?.running.value || !e.translationCount,
1958
1969
  onClick: ve
1959
- }, P(D(mr)(D(d).localization.translateAllFields, e.translationCount ?? 0, D(l))), 11, Wa)])
1970
+ }, P(D(hr)(D(d).localization.translateAllFields, e.translationCount ?? 0, D(l))), 11, Ga)])
1960
1971
  ], 64)) : (c(), w(U, { key: 1 }, [
1961
- ae.value ? (c(), w("p", Ga, P(re.value), 1)) : k("", !0),
1962
- q.value === "missing" ? (c(), w("p", Ka, P(D(f)(D(d).localization.missingExplanation, { default: W.value })), 1)) : q.value === "stale" ? (c(), w(U, { key: 2 }, [N("p", qa, P(D(f)(D(d).localization.staleExplanation, { default: W.value })), 1), N("p", Ja, P(D(f)(D(d).localization.currentExcerpt, { excerpt: e.excerpt })), 1)], 64)) : q.value === "tags-differ" ? (c(), w("p", Ya, P(D(f)(D(d).localization.tagsDifferExplanation, { default: W.value })), 1)) : q.value === "changed" ? (c(), w("p", Xa, P(D(mr)(D(d).localization.changedProperties, J.value, D(l), { default: W.value })), 1)) : q.value === "hidden" ? (c(), w("p", Za, P(D(f)(D(d).localization.hiddenExplanation, { language: V.value })), 1)) : (c(), w("ul", Qa, [(c(!0), w(U, null, p(e.staleLocales, (e) => (c(), w("li", {
1972
+ ae.value ? (c(), w("p", Ka, P(re.value), 1)) : k("", !0),
1973
+ 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", {
1963
1974
  key: e,
1964
1975
  class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3"
1965
- }, [N("span", null, P(D(pr)(e)), 1), N("button", {
1976
+ }, [N("span", null, P(D(mr)(e)), 1), N("button", {
1966
1977
  type: "button",
1967
- class: O(D(hr)),
1978
+ class: O(D(gr)),
1968
1979
  onClick: (t) => me(e)
1969
- }, P(D(d).localization.open), 11, $a)]))), 128))])),
1970
- e.editable && q.value !== "default-stale" ? (c(), w("div", eo, [
1980
+ }, P(D(d).localization.open), 11, eo)]))), 128))])),
1981
+ e.editable && q.value !== "default-stale" ? (c(), w("div", to, [
1971
1982
  Y.value && (q.value === "missing" || q.value === "stale" || q.value === "tags-differ") ? (c(), w("button", {
1972
1983
  key: 0,
1973
1984
  type: "button",
1974
1985
  ref_key: "retranslate",
1975
1986
  ref: C,
1976
1987
  "data-testid": q.value === "missing" ? "locale-translate" : "locale-retranslate",
1977
- class: O(D(gr)),
1988
+ class: O(D(_r)),
1978
1989
  disabled: !!D(o)?.running.value,
1979
1990
  onClick: he
1980
- }, P(q.value === "missing" ? D(d).localization.translate : D(d).localization.retranslate), 11, to)) : k("", !0),
1991
+ }, P(q.value === "missing" ? D(d).localization.translate : D(d).localization.retranslate), 11, no)) : k("", !0),
1981
1992
  q.value === "stale" || q.value === "tags-differ" ? (c(), w(U, { key: 1 }, [q.value === "stale" ? (c(), w("button", {
1982
1993
  key: 0,
1983
1994
  type: "button",
1984
1995
  "data-testid": "locale-keep",
1985
- class: O(D(Y.value ? hr : gr)),
1996
+ class: O(D(Y.value ? gr : _r)),
1986
1997
  onClick: de
1987
1998
  }, P(D(d).localization.keep), 3)) : k("", !0), N("button", {
1988
1999
  type: "button",
1989
2000
  "data-testid": "locale-use-default",
1990
- class: O(D(q.value === "tags-differ" && !Y.value ? gr : hr)),
2001
+ class: O(D(q.value === "tags-differ" && !Y.value ? _r : gr)),
1991
2002
  onClick: n[0] ||= (t) => fe(q.value === "tags-differ" ? e.tagsDiffer ?? [] : e.stale)
1992
2003
  }, P(D(f)(D(d).localization.useDefaultLanguage, { default: W.value })), 3)], 64)) : k("", !0),
1993
2004
  q.value === "changed" ? (c(), w("button", {
1994
2005
  key: 2,
1995
2006
  type: "button",
1996
2007
  "data-testid": "locale-reset",
1997
- class: O(D(gr)),
2008
+ class: O(D(_r)),
1998
2009
  onClick: n[1] ||= (t) => fe(e.setPaths)
1999
2010
  }, P(D(d).localization.resetChanges), 3)) : k("", !0),
2000
2011
  q.value === "hidden" ? (c(), w("button", {
2001
2012
  key: 3,
2002
2013
  type: "button",
2003
2014
  "data-testid": "locale-show",
2004
- class: O(D(gr)),
2015
+ class: O(D(_r)),
2005
2016
  onClick: pe
2006
2017
  }, P(D(d).localization.show), 3)) : k("", !0)
2007
2018
  ])) : k("", !0)
2008
- ], 64))], 44, Ba)], 8, ["to"])) : k("", !0)], 64));
2019
+ ], 64))], 44, Va)], 8, ["to"])) : k("", !0)], 64));
2009
2020
  }
2010
- }), [["__scopeId", "data-v-3343ae7d"]]), ro = /* @__PURE__ */ o({
2021
+ }), [["__scopeId", "data-v-3343ae7d"]]), io = /* @__PURE__ */ o({
2011
2022
  __name: "LocaleMarkers",
2012
2023
  props: { block: {} },
2013
2024
  setup(e) {
2014
- let t = e, n = g(_n, null), r = g(Nt, void 0), i = g($t, []), a = g(xt, 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(() => ({
2025
+ 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(() => ({
2015
2026
  blocks: [t.block.type === "section" || t.block.type === "wrapper" ? {
2016
2027
  ...t.block,
2017
2028
  children: []
@@ -2026,7 +2037,7 @@ var za = [
2026
2037
  translated: []
2027
2038
  }), p = I(() => f.value.stale.map((e) => e.slice(t.block.id.length + 1))), m = I(() => f.value.translated.flatMap((e) => {
2028
2039
  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";
2029
- return typeof r == "string" && i !== void 0 && Ra(r, i, a, o) ? [n] : [];
2040
+ return typeof r == "string" && i !== void 0 && za(r, i, a, o) ? [n] : [];
2030
2041
  })), h = H(null), _ = I(() => n && s.value && !o.value.has(s.value) ? X(d.value, s.value, {
2031
2042
  syntax: a,
2032
2043
  definitions: i,
@@ -2053,7 +2064,7 @@ var za = [
2053
2064
  let n = e.split(/<[^>]*>/).join("");
2054
2065
  return Array.from(n).slice(0, 60).join("");
2055
2066
  });
2056
- return (t, n) => D(r) && x.value ? (c(), A(no, {
2067
+ return (t, n) => D(r) && x.value ? (c(), A(ro, {
2057
2068
  key: 0,
2058
2069
  "block-id": e.block.id,
2059
2070
  state: x.value,
@@ -2087,21 +2098,21 @@ var za = [
2087
2098
  "editable"
2088
2099
  ])) : k("", !0);
2089
2100
  }
2090
- }), io = [
2101
+ }), ao = [
2091
2102
  "data-block-id",
2092
2103
  "data-block-type",
2093
2104
  "data-tpl-picked"
2094
- ], ao = ["aria-label"], oo = ["data-lock-holder"], so = ["aria-label"], co = [
2105
+ ], oo = ["aria-label"], so = ["data-lock-holder"], co = ["aria-label"], lo = [
2095
2106
  "aria-label",
2096
2107
  "aria-pressed",
2097
2108
  "title"
2098
- ], lo = ["aria-label", "title"], uo = ["aria-label", "title"], fo = ["aria-label", "title"], po = {
2109
+ ], uo = ["aria-label", "title"], fo = ["aria-label", "title"], po = ["aria-label", "title"], mo = {
2099
2110
  key: 3,
2100
2111
  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"
2101
- }, mo = { 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)]" }, ho = {
2112
+ }, 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 = {
2102
2113
  key: 4,
2103
2114
  class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
2104
- }, go = ["aria-label", "title"], _o = /*#__PURE__*/ vr(/* @__PURE__ */ o({
2115
+ }, _o = ["aria-label", "title"], vo = /*#__PURE__*/ yr(/* @__PURE__ */ o({
2105
2116
  __name: "BlockWrapper",
2106
2117
  props: {
2107
2118
  block: {},
@@ -2114,7 +2125,7 @@ var za = [
2114
2125
  },
2115
2126
  emits: ["select"],
2116
2127
  setup(t, { emit: n }) {
2117
- let i = b(() => import("./BlockIssueBadge-BWIth1y6.js")), a = t, o = I(() => a.displayBlock ?? a.block), s = n, { t: l, format: d } = G(), f = g(vn, 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
+ 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);
2118
2129
  async function _() {
2119
2130
  await j(), p.value?.focus();
2120
2131
  }
@@ -2124,7 +2135,7 @@ var za = [
2124
2135
  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 ? {
2125
2136
  desktop: l.viewport.desktop,
2126
2137
  mobile: l.viewport.mobile
2127
- }[a.viewport] ?? a.viewport : ""), F = I(() => !!o.value.displayCondition), R = g(pn, null), z = g(on, null), B = g(Xt, {}), 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({
2138
+ }[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({
2128
2139
  left: "calc(100% + 8px)",
2129
2140
  top: "50%"
2130
2141
  }), ae = H(!1), Y = I(() => q.value ?? re.value), X = I(() => Y.value?.closest(".tpl-body"));
@@ -2164,15 +2175,15 @@ var za = [
2164
2175
  re.value,
2165
2176
  X.value
2166
2177
  ].filter((e) => !!e) : []), Z), e(X, "scroll", Z, { passive: !0 });
2167
- 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 = zn(() => o.value.type === "section" ? o.value.backgroundImage : void 0), le = zn(() => o.value.type === "section" ? o.value.wrapper?.backgroundImage : void 0), ue = g(_n, null), de = ue ? yt(ue) : null, fe = g(rn, null) ?? de?.content ?? null;
2178
+ 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;
2168
2179
  u([() => ue?.activeLocale?.value, () => de && Ie(de.settings.value)], Z, { flush: "post" });
2169
- let pe = g(Rt, void 0), me = I(() => zi(o.value, {
2180
+ let pe = g(Rt, void 0), me = I(() => Bi(o.value, {
2170
2181
  backgroundImageUrl: ce.value,
2171
- heroBoxWidth: jn(o.value) ? Fn(o.value, fe?.value, pe) : void 0
2172
- })), he = I(() => Gi(o.value, { backgroundImageUrl: le.value })), ge = I(() => {
2182
+ heroBoxWidth: Mn(o.value) ? In(o.value, fe?.value, pe) : void 0
2183
+ })), he = I(() => Ki(o.value, { backgroundImageUrl: le.value })), ge = I(() => {
2173
2184
  let e = o.value;
2174
2185
  return e.type === "section" && e.wrapper?.fullWidth === !0 ? e : void 0;
2175
- }), _e = I(() => Wi(ge.value?.wrapper?.padding));
2186
+ }), _e = I(() => Gi(ge.value?.wrapper?.padding));
2176
2187
  function ve(e) {
2177
2188
  a.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), s("select"));
2178
2189
  }
@@ -2216,12 +2227,12 @@ var za = [
2216
2227
  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"]),
2217
2228
  "aria-label": D(d)(D(l).blockActions.comments, { count: String(K.value) }),
2218
2229
  onClick: n[0] ||= M((e) => D(B).comments?.openForBlock(t.block.id), ["stop"])
2219
- }, [W(D(cr), {
2230
+ }, [W(D(lr), {
2220
2231
  size: 12,
2221
2232
  "stroke-width": 2.5
2222
- }), T(" " + P(K.value), 1)], 10, ao)) : k("", !0),
2233
+ }), T(" " + P(K.value), 1)], 10, oo)) : k("", !0),
2223
2234
  W(D(i), { "block-id": t.block.id }, null, 8, ["block-id"]),
2224
- t.previewMode ? k("", !0) : (c(), A(ro, {
2235
+ t.previewMode ? k("", !0) : (c(), A(io, {
2225
2236
  key: 1,
2226
2237
  block: t.block
2227
2238
  }, null, 8, ["block"]))
@@ -2239,9 +2250,9 @@ var za = [
2239
2250
  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",
2240
2251
  style: L({
2241
2252
  backgroundColor: Q.value.holder.color,
2242
- color: D(yr)(Q.value.holder.color)
2253
+ color: D(br)(Q.value.holder.color)
2243
2254
  })
2244
- }, P(D(d)(D(l).collaboration.editing, { name: oe.value })), 5)], 12, oo)) : k("", !0),
2255
+ }, P(D(d)(D(l).collaboration.editing, { name: oe.value })), 5)], 12, so)) : k("", !0),
2245
2256
  se.value === null ? k("", !0) : (c(), w("div", {
2246
2257
  key: se.value,
2247
2258
  "data-testid": "block-agent-highlight",
@@ -2266,78 +2277,78 @@ var za = [
2266
2277
  "aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
2267
2278
  title: D(l).blockActions.drag,
2268
2279
  onKeydown: v
2269
- }, [W(D(dr), {
2280
+ }, [W(D(fr), {
2270
2281
  size: 14,
2271
2282
  "stroke-width": 1.5
2272
- })], 40, co),
2283
+ })], 40, lo),
2273
2284
  N("button", {
2274
2285
  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",
2275
2286
  "aria-label": D(l).blockActions.duplicate,
2276
2287
  title: D(l).blockActions.duplicate,
2277
2288
  onClick: M(be, ["stop"])
2278
- }, [W(D(qn), {
2289
+ }, [W(D(Jn), {
2279
2290
  size: 14,
2280
2291
  "stroke-width": 1.5
2281
- })], 8, lo),
2292
+ })], 8, uo),
2282
2293
  U.value ? (c(), w("button", {
2283
2294
  key: 0,
2284
2295
  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
2296
  "aria-label": D(l).blockActions.saveAsBlock,
2286
2297
  title: D(l).blockActions.saveAsBlock,
2287
2298
  onClick: M(xe, ["stop"])
2288
- }, [W(D(tr), {
2299
+ }, [W(D(nr), {
2289
2300
  size: 14,
2290
2301
  "stroke-width": 1.5
2291
- })], 8, uo)) : k("", !0),
2302
+ })], 8, fo)) : k("", !0),
2292
2303
  N("button", {
2293
2304
  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",
2294
2305
  "aria-label": D(l).blockActions.delete,
2295
2306
  title: D(l).blockActions.delete,
2296
2307
  onClick: M(ye, ["stop"])
2297
- }, [W(D(ar), {
2308
+ }, [W(D(or), {
2298
2309
  size: 14,
2299
2310
  "stroke-width": 1.5
2300
- })], 8, fo)
2301
- ], 12, so)) : k("", !0),
2302
- S.value ? (c(), w("div", po, [N("span", mo, [W(D(Zn), {
2311
+ })], 8, po)
2312
+ ], 12, co)) : k("", !0),
2313
+ S.value ? (c(), w("div", mo, [N("span", ho, [W(D(Qn), {
2303
2314
  size: 12,
2304
2315
  "stroke-width": 1.5
2305
2316
  }), T(" " + P(D(d)(D(l).blockActions.hiddenOnViewport, { viewport: ee.value })), 1)])])) : k("", !0),
2306
- F.value && !S.value ? (c(), w("div", ho, [N("button", {
2317
+ F.value && !S.value ? (c(), w("div", go, [N("button", {
2307
2318
  "data-testid": "condition-toggle",
2308
2319
  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)]",
2309
2320
  "aria-label": D(l).blockActions.conditionToggle,
2310
2321
  title: t.block.displayCondition?.label,
2311
2322
  onClick: M(Se, ["stop"])
2312
- }, [W(D(Qn), {
2323
+ }, [W(D($n), {
2313
2324
  size: 12,
2314
2325
  "stroke-width": 2
2315
- })], 8, go)])) : k("", !0),
2326
+ })], 8, _o)])) : k("", !0),
2316
2327
  he.value ? (c(), w("div", {
2317
2328
  key: 5,
2318
- class: O(["tpl-section-wrapper tpl-email-surface", D(Fi)(he.value)]),
2329
+ class: O(["tpl-section-wrapper tpl-email-surface", D(Ii)(he.value)]),
2319
2330
  style: L(he.value)
2320
2331
  }, [ge.value ? (c(), w("div", {
2321
2332
  key: 0,
2322
2333
  class: "tpl-band-frame",
2323
2334
  style: L(_e.value)
2324
2335
  }, [N("div", {
2325
- class: O(["tpl-block-content tpl-email-surface", D(Fi)(me.value)]),
2336
+ class: O(["tpl-block-content tpl-email-surface", D(Ii)(me.value)]),
2326
2337
  style: L(me.value)
2327
2338
  }, [y(e.$slots, "default", {}, void 0, !0)], 6)], 4)) : (c(), w("div", {
2328
2339
  key: 1,
2329
- class: O(["tpl-block-content tpl-email-surface", D(Fi)(me.value)]),
2340
+ class: O(["tpl-block-content tpl-email-surface", D(Ii)(me.value)]),
2330
2341
  style: L(me.value)
2331
2342
  }, [y(e.$slots, "default", {}, void 0, !0)], 6))], 6)) : (c(), w("div", {
2332
2343
  key: 6,
2333
- class: O(["tpl-block-content tpl-email-surface", D(Fi)(me.value)]),
2344
+ class: O(["tpl-block-content tpl-email-surface", D(Ii)(me.value)]),
2334
2345
  style: L(me.value)
2335
2346
  }, [y(e.$slots, "default", {}, void 0, !0)], 6))
2336
- ], 10, io));
2347
+ ], 10, ao));
2337
2348
  }
2338
2349
  }), [["__scopeId", "data-v-872194d3"]]);
2339
2350
  // src/utils/unwrapParagraph.ts
2340
- function vo(e) {
2351
+ function yo(e) {
2341
2352
  let t = /^\s*<p\b/.exec(e);
2342
2353
  if (!t) return e;
2343
2354
  let n = qe(e, t[0].length);
@@ -2348,14 +2359,14 @@ function vo(e) {
2348
2359
  return /<\/p>\s*<p\b/i.test(i) ? e : i;
2349
2360
  }
2350
2361
  // src/components/blocks/TitleBlock.vue
2351
- var yo = /* @__PURE__ */ o({
2362
+ var bo = /* @__PURE__ */ o({
2352
2363
  __name: "TitleBlock",
2353
2364
  props: {
2354
2365
  block: {},
2355
2366
  viewport: {}
2356
2367
  },
2357
2368
  setup(e) {
2358
- let t = e, n = b(() => import("./TitleEditor-Bq62I2SC.js")), r = Yt(qt, "TitleBlock"), { isEditing: i, blockRef: o, toolbarPosition: s, resolvedContent: l, handleDoubleClick: u, handleEditorDone: d } = Na(() => t.block.content), f = I(() => {
2369
+ let t = e, n = b(() => import("./TitleEditor-Cn4fnSpa.js")), r = on(Jt, "TitleBlock"), { isEditing: i, blockRef: o, toolbarPosition: s, resolvedContent: l, handleDoubleClick: u, handleEditorDone: d } = Pa(() => t.block.content), f = I(() => {
2359
2370
  let e = {
2360
2371
  fontSize: `${je[t.block.level]}px`,
2361
2372
  lineHeight: String(xe),
@@ -2363,7 +2374,7 @@ var yo = /* @__PURE__ */ o({
2363
2374
  textAlign: t.block.textAlign
2364
2375
  };
2365
2376
  return t.block.color && (e.color = t.block.color), t.block.fontFamily && (e.fontFamily = r.resolveFontFamily(t.block.fontFamily)), e;
2366
- }), p = I(() => `h${t.block.level}`), m = I(() => Kn(vo(l.value)));
2377
+ }), p = I(() => `h${t.block.level}`), m = I(() => qn(yo(l.value)));
2367
2378
  return (t, r) => (c(), w("div", {
2368
2379
  ref_key: "blockRef",
2369
2380
  ref: o,
@@ -2389,12 +2400,12 @@ var yo = /* @__PURE__ */ o({
2389
2400
  innerHTML: m.value
2390
2401
  }, null, 8, ["innerHTML"]))], 36));
2391
2402
  }
2392
- }), bo = "hero", xo = "#1f2937", So = "#ffffff";
2393
- function Co(e, t) {
2403
+ }), xo = "hero", So = "#1f2937", Co = "#ffffff";
2404
+ function wo(e, t) {
2394
2405
  let n = dt("title", e);
2395
- n.color = So, n.textAlign = "center";
2406
+ n.color = Co, n.textAlign = "center";
2396
2407
  let r = dt("paragraph", e);
2397
- r.content = `<p style="text-align: center"><span style="color: ${So}">${wo(t)}</span></p>`;
2408
+ r.content = `<p style="text-align: center"><span style="color: ${Co}">${To(t)}</span></p>`;
2398
2409
  let i = dt("button", e);
2399
2410
  return i.align = "center", he({
2400
2411
  columns: "1",
@@ -2414,28 +2425,28 @@ function Co(e, t) {
2414
2425
  bottom: 48,
2415
2426
  left: 24
2416
2427
  },
2417
- backgroundColor: xo
2428
+ backgroundColor: So
2418
2429
  }
2419
2430
  });
2420
2431
  }
2421
- function wo(e) {
2432
+ function To(e) {
2422
2433
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
2423
2434
  }
2424
2435
  // src/utils/sectionColumnDrop.ts
2425
- var To = /* @__PURE__ */ new Set(["section", bo]);
2426
- function Eo(e) {
2427
- return e.dataset.blockType !== "section" && !To.has(e.dataset.paletteType ?? "");
2436
+ var Eo = /* @__PURE__ */ new Set(["section", xo]);
2437
+ function Do(e) {
2438
+ return e.dataset.blockType !== "section" && !Eo.has(e.dataset.paletteType ?? "");
2428
2439
  }
2429
2440
  // src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
2430
- var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
2441
+ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2431
2442
  key: 0,
2432
2443
  "data-testid": "hero-image-hint",
2433
2444
  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)]"
2434
- }, ko = {
2445
+ }, Ao = {
2435
2446
  key: 0,
2436
2447
  "data-testid": "section-drop-hint",
2437
2448
  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)]"
2438
- }, Ao = /* @__PURE__ */ o({
2449
+ }, jo = /* @__PURE__ */ o({
2439
2450
  __name: "SectionBlock",
2440
2451
  props: {
2441
2452
  block: {},
@@ -2444,15 +2455,15 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
2444
2455
  },
2445
2456
  setup(e) {
2446
2457
  let t = {
2447
- title: yo,
2448
- paragraph: Fa,
2449
- image: Oa,
2450
- button: Xi,
2451
- divider: ua,
2452
- custom: ca
2453
- }, n = e, { t: r } = G(), o = Yt(_n, "SectionBlock"), { displayBlock: s } = yt(o), u = I(() => n.sourceBlock ?? n.block), m = g(en, I(() => /* @__PURE__ */ new Set()));
2458
+ title: bo,
2459
+ paragraph: Ia,
2460
+ image: ka,
2461
+ button: Zi,
2462
+ divider: da,
2463
+ custom: la
2464
+ }, 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()));
2454
2465
  d(en, I(() => /* @__PURE__ */ new Set([...m.value, ...Object.entries(u.value.l10n ?? {}).filter(([, e]) => e.hidden).map(([e]) => e)])));
2455
- let h = g(on, null), _ = g(an, null), v = g(Xt, {}), y = g(Ut, null), b = g(Gt, null);
2466
+ let h = g(sn, null), _ = g(an, null), v = g(Zt, {}), y = g(Ut, null), b = g(Kt, null);
2456
2467
  function x(e) {
2457
2468
  if (y?.value) return;
2458
2469
  let t = v.savedBlocks;
@@ -2513,10 +2524,10 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
2513
2524
  return E(e).length === 0 && o.state.previewMode;
2514
2525
  }
2515
2526
  function K(e, t) {
2516
- y?.value || Ia(o, t, n.block.id, e);
2527
+ y?.value || La(o, t, n.block.id, e);
2517
2528
  }
2518
2529
  function ne(e) {
2519
- return Ai(e, _, t);
2530
+ return ji(e, _, t);
2520
2531
  }
2521
2532
  function q(e, t) {
2522
2533
  y?.value || e.type !== "custom" || o.updateBlock(e.id, {
@@ -2524,7 +2535,7 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
2524
2535
  dataSourceFetched: t.dataSourceFetched
2525
2536
  });
2526
2537
  }
2527
- return (t, u) => (c(), w("div", Do, [R.value ? (c(), w("div", Oo, [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
+ 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", {
2528
2539
  key: d,
2529
2540
  class: O(["tpl:relative tpl:flex tpl:flex-col tpl:rounded", B(d) ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
2530
2541
  style: L({ width: T.value ? "100%" : S.value[d] })
@@ -2534,7 +2545,7 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
2534
2545
  group: {
2535
2546
  name: "blocks",
2536
2547
  pull: !0,
2537
- put: (e, t, n) => D(Eo)(n)
2548
+ put: (e, t, n) => D(Do)(n)
2538
2549
  },
2539
2550
  animation: 150,
2540
2551
  "ghost-class": "tpl-ghost",
@@ -2548,12 +2559,12 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
2548
2559
  "tpl:min-h-[60px]": F(d),
2549
2560
  "tpl:min-h-[34px]": te(d)
2550
2561
  }]),
2551
- onUpdate: (e) => !D(y) && D(Ia)(D(o), E(d), n.block.id, d, e),
2562
+ onUpdate: (e) => !D(y) && D(La)(D(o), E(d), n.block.id, d, e),
2552
2563
  onStart: (e) => M.value = d,
2553
2564
  onEnd: u[0] ||= (e) => M.value = null,
2554
2565
  "onUpdate:modelValue": (e) => K(d, e)
2555
2566
  }, {
2556
- default: l(() => [(c(!0), w(U, null, p(E(d), (t) => f((c(), w("div", { key: t.id }, [W(_o, {
2567
+ default: l(() => [(c(!0), w(U, null, p(E(d), (t) => f((c(), w("div", { key: t.id }, [W(vo, {
2557
2568
  block: t,
2558
2569
  "display-block": D(s)(t),
2559
2570
  "is-selected": D(o).state.selectedBlockId === t.id,
@@ -2590,14 +2601,14 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
2590
2601
  "onUpdate",
2591
2602
  "onStart",
2592
2603
  "onUpdate:modelValue"
2593
- ]), B(d) ? (c(), w("div", ko, [N("span", null, P(D(r).section.dropHere), 1)])) : k("", !0)], 6))), 128))], 2)]));
2604
+ ]), B(d) ? (c(), w("div", Ao, [N("span", null, P(D(r).section.dropHere), 1)])) : k("", !0)], 6))), 128))], 2)]));
2594
2605
  }
2595
- }), jo = ["width", "height"], Mo = [
2606
+ }), Mo = ["width", "height"], No = [
2596
2607
  "d",
2597
2608
  "stroke",
2598
2609
  "stroke-opacity",
2599
2610
  "stroke-width"
2600
- ], No = ["d", "fill"], Po = /* @__PURE__ */ o({
2611
+ ], Po = ["d", "fill"], Fo = /* @__PURE__ */ o({
2601
2612
  __name: "SocialIconSvg",
2602
2613
  props: {
2603
2614
  platform: {},
@@ -2606,7 +2617,7 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
2606
2617
  iconSize: {}
2607
2618
  },
2608
2619
  setup(e) {
2609
- let t = e, n = I(() => Pn[t.platform]), r = I(() => In[t.iconSize]), i = I(() => tt(t.platform, t.iconTone)), a = I(() => Ke(t.iconStyle, t.iconTone)), o = I(() => {
2620
+ 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(() => {
2610
2621
  let e = {
2611
2622
  display: "inline-flex",
2612
2623
  alignItems: "center",
@@ -2665,15 +2676,15 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
2665
2676
  "stroke-opacity": a.value.opacity,
2666
2677
  "stroke-width": a.value.width / s.value,
2667
2678
  "stroke-linejoin": "round"
2668
- }, null, 8, Mo)) : k("", !0), N("path", {
2679
+ }, null, 8, No)) : k("", !0), N("path", {
2669
2680
  d: n.value.path,
2670
2681
  fill: d.value
2671
- }, null, 8, No)], 8, jo))], 4));
2682
+ }, null, 8, Po)], 8, Mo))], 4));
2672
2683
  }
2673
- }), Fo = { class: "tpl:w-full" }, Io = ["href"], Lo = {
2684
+ }), Io = { class: "tpl:w-full" }, Lo = ["href"], Ro = {
2674
2685
  key: 1,
2675
2686
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
2676
- }, Ro = /* @__PURE__ */ o({
2687
+ }, zo = /* @__PURE__ */ o({
2677
2688
  __name: "SocialIconsBlock",
2678
2689
  props: {
2679
2690
  block: {},
@@ -2686,7 +2697,7 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
2686
2697
  gap: `${t.block.spacing}px`,
2687
2698
  justifyContent: t.block.align === "left" ? "flex-start" : t.block.align === "right" ? "flex-end" : "center"
2688
2699
  })), i = I(() => t.block.icons.length > 0);
2689
- return (t, a) => (c(), w("div", Fo, [i.value ? (c(), w("div", {
2700
+ return (t, a) => (c(), w("div", Io, [i.value ? (c(), w("div", {
2690
2701
  key: 0,
2691
2702
  style: L(r.value)
2692
2703
  }, [(c(!0), w(U, null, p(e.block.icons, (t) => (c(), w("a", {
@@ -2694,7 +2705,7 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
2694
2705
  href: t.url || "#",
2695
2706
  class: "tpl:cursor-default",
2696
2707
  onClick: a[0] ||= M(() => {}, ["prevent"])
2697
- }, [W(Po, {
2708
+ }, [W(Fo, {
2698
2709
  platform: t.platform,
2699
2710
  "icon-style": e.block.iconStyle,
2700
2711
  "icon-tone": e.block.iconTone,
@@ -2704,46 +2715,46 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
2704
2715
  "icon-style",
2705
2716
  "icon-tone",
2706
2717
  "icon-size"
2707
- ])], 8, Io))), 128))], 4)) : (c(), w("div", Lo, [W(D(or), { size: 16 }), N("span", null, P(D(n).social.addIcons), 1)]))]));
2718
+ ])], 8, Lo))), 128))], 4)) : (c(), w("div", Ro, [W(D(sr), { size: 16 }), N("span", null, P(D(n).social.addIcons), 1)]))]));
2708
2719
  }
2709
- }), zo = { class: "tpl:w-full" }, Bo = {
2720
+ }), Bo = { class: "tpl:w-full" }, Vo = {
2710
2721
  key: 0,
2711
2722
  class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
2712
2723
  style: {
2713
2724
  "background-color": "var(--tpl-bg-hover)",
2714
2725
  color: "var(--tpl-text-dim)"
2715
2726
  }
2716
- }, Vo = /* @__PURE__ */ o({
2727
+ }, Ho = /* @__PURE__ */ o({
2717
2728
  __name: "SpacerBlock",
2718
2729
  props: {
2719
2730
  block: {},
2720
2731
  viewport: {}
2721
2732
  },
2722
2733
  setup(e) {
2723
- let t = e, n = Yt(_n, "SpacerBlock"), r = I(() => ({
2734
+ let t = e, n = on(vn, "SpacerBlock"), r = I(() => ({
2724
2735
  height: `${t.block.height}px`,
2725
2736
  minHeight: `${t.block.height}px`,
2726
2737
  ...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
2727
2738
  }));
2728
- return (t, i) => (c(), w("div", zo, [N("div", {
2739
+ return (t, i) => (c(), w("div", Bo, [N("div", {
2729
2740
  style: L(r.value),
2730
2741
  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 }])
2731
- }, [D(n).state.previewMode ? k("", !0) : (c(), w("span", Bo, P(e.block.height) + "px ", 1))], 6)]));
2742
+ }, [D(n).state.previewMode ? k("", !0) : (c(), w("span", Vo, P(e.block.height) + "px ", 1))], 6)]));
2732
2743
  }
2733
- }), Ho = { class: "tpl:w-full" }, Uo = { key: 0 }, Wo = [
2744
+ }), Uo = { class: "tpl:w-full" }, Wo = { key: 0 }, Go = [
2734
2745
  "aria-label",
2735
2746
  "contenteditable",
2736
2747
  "data-placeholder",
2737
2748
  "onBlur"
2738
- ], Go = [
2749
+ ], Ko = [
2739
2750
  "aria-label",
2740
2751
  "contenteditable",
2741
2752
  "data-placeholder",
2742
2753
  "onBlur"
2743
- ], Ko = {
2754
+ ], qo = {
2744
2755
  key: 1,
2745
2756
  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)]"
2746
- }, qo = /*#__PURE__*/ vr(/* @__PURE__ */ o({
2757
+ }, Jo = /*#__PURE__*/ yr(/* @__PURE__ */ o({
2747
2758
  __name: "TableBlock",
2748
2759
  props: {
2749
2760
  block: {},
@@ -2757,7 +2768,7 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
2757
2768
  updated(e, t) {
2758
2769
  t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
2759
2770
  }
2760
- }, n = e, { t: r } = G(), i = Yt(_n, "TableBlock"), a = Yt(qt, "TableBlock"), o = g(Ut, null), s = I(() => n.block.rows.length > 0), l = I(() => {
2771
+ }, 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(() => {
2761
2772
  let e = {
2762
2773
  width: "100%",
2763
2774
  borderCollapse: "collapse",
@@ -2789,11 +2800,11 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
2789
2800
  } : n);
2790
2801
  i.updateBlock(n.block.id, { rows: s });
2791
2802
  }
2792
- return (e, n) => (c(), w("div", Ho, [s.value ? (c(), w("table", {
2803
+ return (e, n) => (c(), w("div", Uo, [s.value ? (c(), w("table", {
2793
2804
  key: 0,
2794
2805
  style: L(l.value),
2795
2806
  class: "tpl-table-editable"
2796
- }, [m.value ? (c(), w("thead", Uo, [N("tr", null, [(c(!0), w(U, null, p(m.value.cells, (e) => f((c(), w("th", {
2807
+ }, [m.value ? (c(), w("thead", Wo, [N("tr", null, [(c(!0), w(U, null, p(m.value.cells, (e) => f((c(), w("th", {
2797
2808
  key: e.id,
2798
2809
  style: L(d.value),
2799
2810
  "aria-label": D(r).table.cellPlaceholder,
@@ -2802,7 +2813,7 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
2802
2813
  onBlur: (t) => v(m.value.id, e.id, t),
2803
2814
  onKeydown: n[0] ||= E(M((e) => e.target.blur(), ["prevent"]), ["enter"]),
2804
2815
  onClick: M(_, ["stop"])
2805
- }, null, 44, Wo)), [[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
+ }, 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", {
2806
2817
  key: i.id,
2807
2818
  style: L(u.value),
2808
2819
  "aria-label": D(r).table.cellPlaceholder,
@@ -2811,9 +2822,9 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
2811
2822
  onBlur: (t) => v(e.id, i.id, t),
2812
2823
  onKeydown: n[1] ||= E(M((e) => e.target.blur(), ["prevent"]), ["enter"]),
2813
2824
  onClick: M(_, ["stop"])
2814
- }, null, 44, Go)), [[t, i.content]])), 128))]))), 128))])], 4)) : (c(), w("div", Ko, [W(D(ur), { size: 16 }), N("span", null, P(D(r).table.empty), 1)]))]));
2825
+ }, 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)]))]));
2815
2826
  }
2816
- }), [["__scopeId", "data-v-73b9f5e5"]]), Jo = /* @__PURE__ */ o({
2827
+ }), [["__scopeId", "data-v-73b9f5e5"]]), Yo = /* @__PURE__ */ o({
2817
2828
  __name: "VideoPlayButton",
2818
2829
  props: { hoverEffect: {
2819
2830
  type: Boolean,
@@ -2830,7 +2841,7 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
2830
2841
  }
2831
2842
  });
2832
2843
  // src/utils/videoThumbnail.ts
2833
- function Yo(e) {
2844
+ function Xo(e) {
2834
2845
  if (!e) return {
2835
2846
  platform: "unknown",
2836
2847
  videoId: null,
@@ -2862,24 +2873,24 @@ function Yo(e) {
2862
2873
  thumbnailUrl: null
2863
2874
  };
2864
2875
  }
2865
- function Xo(e, t) {
2866
- return t || Yo(e).thumbnailUrl;
2876
+ function Zo(e, t) {
2877
+ return t || Xo(e).thumbnailUrl;
2867
2878
  }
2868
2879
  // src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
2869
- var Zo = ["src", "alt"], Qo = {
2880
+ var Qo = ["src", "alt"], $o = {
2870
2881
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
2871
2882
  style: { opacity: "0.7" }
2872
- }, $o = ["href"], es = ["src", "alt"], ts = ["src", "alt"], ns = {
2883
+ }, es = ["href"], ts = ["src", "alt"], ns = ["src", "alt"], rs = {
2873
2884
  key: 3,
2874
2885
  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)]"
2875
- }, rs = /* @__PURE__ */ o({
2886
+ }, is = /* @__PURE__ */ o({
2876
2887
  __name: "VideoBlock",
2877
2888
  props: {
2878
2889
  block: {},
2879
2890
  viewport: {}
2880
2891
  },
2881
2892
  setup(e) {
2882
- let t = e, { t: n } = G(), { syntax: r } = K(), i = I(() => we(t.block.url, r) || we(t.block.thumbnailUrl, r)), a = kn(() => i.value ? void 0 : t.block.thumbnailUrl || void 0), o = kn(() => i.value ? t.block.placeholderUrl : void 0), s = I(() => i.value ? null : t.block.thumbnailUrl ? a.value ?? null : Xo(t.block.url)), l = I(() => ({ textAlign: t.block.align })), u = I(() => {
2893
+ 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(() => {
2883
2894
  let e = t.block.align;
2884
2895
  return {
2885
2896
  maxWidth: "100%",
@@ -2902,16 +2913,16 @@ var Zo = ["src", "alt"], Qo = {
2902
2913
  src: D(o),
2903
2914
  alt: e.block.alt,
2904
2915
  style: L(d.value)
2905
- }, null, 12, Zo), W(Jo)], 4)) : i.value ? (c(), w("div", {
2916
+ }, null, 12, Qo), W(Yo)], 4)) : i.value ? (c(), w("div", {
2906
2917
  key: 1,
2907
2918
  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)]",
2908
2919
  style: L([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, u.value])
2909
- }, [W(D(lr), {
2920
+ }, [W(D(ur), {
2910
2921
  size: 36,
2911
2922
  "stroke-width": 1.5,
2912
2923
  class: "tpl:text-[var(--tpl-primary)]",
2913
2924
  style: { opacity: "0.5" }
2914
- }), N("span", Qo, [W(Ji, { text: f.value }, null, 8, ["text"])])], 4)) : s.value ? (c(), w(U, { key: 2 }, [e.block.url ? (c(), w("a", {
2925
+ }), 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", {
2915
2926
  key: 0,
2916
2927
  href: e.block.url,
2917
2928
  target: "_blank",
@@ -2924,7 +2935,7 @@ var Zo = ["src", "alt"], Qo = {
2924
2935
  src: s.value,
2925
2936
  alt: e.block.alt,
2926
2937
  style: L(d.value)
2927
- }, null, 12, es), W(Jo, { "hover-effect": "" })], 12, $o)) : (c(), w("div", {
2938
+ }, null, 12, ts), W(Yo, { "hover-effect": "" })], 12, es)) : (c(), w("div", {
2928
2939
  key: 1,
2929
2940
  class: "tpl:relative tpl:inline-block",
2930
2941
  style: L(u.value)
@@ -2933,53 +2944,53 @@ var Zo = ["src", "alt"], Qo = {
2933
2944
  src: s.value,
2934
2945
  alt: e.block.alt,
2935
2946
  style: L(d.value)
2936
- }, null, 12, ts), W(Jo)], 4))], 64)) : (c(), w("div", ns, [W(D(lr), {
2947
+ }, null, 12, ns), W(Yo)], 4))], 64)) : (c(), w("div", rs, [W(D(ur), {
2937
2948
  size: 40,
2938
2949
  "stroke-width": 1.5,
2939
2950
  class: "tpl:text-[var(--tpl-border-light)]"
2940
2951
  }), N("span", null, P(D(n).video.addVideo), 1)]))], 4));
2941
2952
  }
2942
- }), is = {
2943
- section: Ao,
2944
- title: yo,
2945
- paragraph: Fa,
2946
- image: Oa,
2947
- button: Xi,
2948
- divider: ua,
2949
- video: rs,
2950
- social: Ro,
2951
- menu: Ma,
2952
- table: qo,
2953
- spacer: Vo,
2954
- html: ga,
2955
- countdown: b(() => import("./CountdownBlock-Do6oItNW.js"))
2953
+ }), as = {
2954
+ section: jo,
2955
+ title: bo,
2956
+ paragraph: Ia,
2957
+ image: ka,
2958
+ button: Zi,
2959
+ divider: da,
2960
+ video: is,
2961
+ social: zo,
2962
+ menu: Na,
2963
+ table: Jo,
2964
+ spacer: Ho,
2965
+ html: _a,
2966
+ countdown: b(() => import("./CountdownBlock-DGgnPUlu.js"))
2956
2967
  };
2957
- function as(t) {
2958
- let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: s } = G(i), c = I(() => Be(Be(Be(ai(i), Ti(n.content.value.settings?.locale)), Ie(n.content.value.settings) === "rtl" ? {
2968
+ function os(t) {
2969
+ 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" ? {
2959
2970
  title: { textAlign: "right" },
2960
2971
  table: { textAlign: "right" }
2961
2972
  } : {}), r.blockDefaults ?? {}));
2962
2973
  n.setUiTheme(r.uiTheme ?? "auto");
2963
- let { resolvedTheme: l } = Xr(I(() => n.state.uiTheme)), f = H(r.theme ?? {}), { themeStyles: p } = kr({
2974
+ let { resolvedTheme: l } = Zr(I(() => n.state.uiTheme)), f = H(r.theme ?? {}), { themeStyles: p } = Ar({
2964
2975
  themeOverrides: f,
2965
2976
  resolvedTheme: l,
2966
2977
  extraStyles: () => ({
2967
2978
  "--tpl-drop-text": `"${i.canvas.dropHere}"`,
2968
2979
  ...t.themeExtraStyles?.()
2969
2980
  })
2970
- }), m = t.history ?? Cn({
2981
+ }), m = t.history ?? wn({
2971
2982
  content: n.content,
2972
2983
  setContent: (e, t) => n.setContent(e, t)
2973
2984
  });
2974
- t.history || Dn(n, m);
2975
- let h = Hn({
2985
+ t.history ? n.contentReplaced && u(n.contentReplaced, () => m.clear(), { flush: "sync" }) : On(n, m);
2986
+ let h = Un({
2976
2987
  addBlock: n.addBlock,
2977
2988
  removeBlock: n.removeBlock,
2978
2989
  updateBlock: n.updateBlock,
2979
2990
  selectBlock: n.selectBlock,
2980
2991
  findBlockLocation: n.findBlockLocation,
2981
2992
  blockDefaults: () => c.value
2982
- }), g = En(n), _ = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? On({
2993
+ }), g = Dn(n), _ = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? kn({
2983
2994
  content: n.content,
2984
2995
  isDirty: () => n.state.isDirty,
2985
2996
  ...t.autoSaveOptions
@@ -2987,27 +2998,27 @@ function as(t) {
2987
2998
  _ && (y = u(m.isNavigating, (e) => {
2988
2999
  e ? _.pause() : _.resume();
2989
3000
  }));
2990
- let b = Yr(n, {
3001
+ let b = Xr(n, {
2991
3002
  t: o,
2992
3003
  format: s
2993
3004
  }, r.customBlocks ?? []), x = ht(r.colors);
2994
3005
  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) {
2995
- let e = ii(x.presets, r.blockDefaults, r.templateDefaults);
3006
+ let e = ai(x.presets, r.blockDefaults, r.templateDefaults);
2996
3007
  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.`);
2997
3008
  }
2998
- let S = Un(r.templateSettings);
2999
- for (let e of S.unknown) $.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${Wn.join(", ")}) — skipping it.`);
3000
- let w = Cr();
3001
- ti(w, is);
3009
+ let S = Wn(r.templateSettings);
3010
+ for (let e of S.unknown) $.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${Gn.join(", ")}) — skipping it.`);
3011
+ let w = wr();
3012
+ ni(w, as);
3002
3013
  let T = /* @__PURE__ */ new Set();
3003
3014
  function E(e) {
3004
3015
  for (let t of e) {
3005
- w.registerCustom(t, ca);
3006
- for (let e of Ei(t, x)) T.has(e.id) || (T.add(e.id), $.warn(e.message));
3016
+ w.registerCustom(t, la);
3017
+ for (let e of Di(t, x)) T.has(e.id) || (T.add(e.id), $.warn(e.message));
3007
3018
  }
3008
3019
  }
3009
3020
  r.customBlocks?.length && E(r.customBlocks);
3010
- let D = Br();
3021
+ let D = Vr();
3011
3022
  if (C() && v(D.dispose), t.containerEl) {
3012
3023
  let n = t.containerEl;
3013
3024
  e(document, "pointerdown", (e) => {
@@ -3020,7 +3031,7 @@ function as(t) {
3020
3031
  e ? e.save() : _?.flush();
3021
3032
  }
3022
3033
  function ee(e) {
3023
- D.isActive() && Oi(e, {
3034
+ D.isActive() && ki(e, {
3024
3035
  history: m,
3025
3036
  selectBlock: (e) => n.selectBlock(e),
3026
3037
  getSelectedBlockId: () => n.state.selectedBlockId,
@@ -3033,7 +3044,7 @@ function as(t) {
3033
3044
  }
3034
3045
  e(document, "keydown", ee);
3035
3046
  let k = H(null), A = t.editorRoot ?? document;
3036
- d(bn, A), d(un, k), d(Ct, /* @__PURE__ */ new Map()), d(fn, i), d(_n, n), d(yn, m), d(pn, h), d(on, g), d(qt, a), d(sn, p), d(cn, l), d(Jt, c), d(Kt, r.locale), d(an, w), d($t, r.customBlocks ?? []), d(kt, r.paletteBlocks), d(Lt, ni(r.htmlBlockPreview)), d(Rt, r.layout), d(Ft, r.sectionWrapper), d(ln, x), d(hn, S.fields), d(Qt, Zr(n.content, w));
3047
+ 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));
3037
3048
  let j = it(r.mergeTags?.syntax);
3038
3049
  for (let e of ["opener", "closer"]) {
3039
3050
  let t = j[e];
@@ -3044,11 +3055,12 @@ function as(t) {
3044
3055
  function N(e) {
3045
3056
  Array.isArray(e) ? M.value = e : $.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
3046
3057
  }
3047
- d(Pt, M), d(xt, j), d(Tt, r.mergeTags?.onRequest ?? null), d(wt, r.mergeTags?.autocomplete !== !1), d(xn, r.mergeTags?.showRawValue !== !1);
3058
+ d(Ft, M), d(St, j), d(Et, r.mergeTags?.onRequest ?? null), d(Tt, r.mergeTags?.autocomplete !== !1), d(Sn, r.mergeTags?.showRawValue !== !1);
3048
3059
  let P = H(Te(r.mergeTags?.tags ?? []));
3049
3060
  d(It, P);
3050
- let F = Ur({
3061
+ let F = Wr({
3051
3062
  resolvePreview: r.resolvePreview,
3063
+ surface: "preview",
3052
3064
  getContent: () => {
3053
3065
  let e = n.content.value;
3054
3066
  if (!n.state.previewMode) return e;
@@ -3058,15 +3070,19 @@ function as(t) {
3058
3070
  isActive: () => n.state.previewMode,
3059
3071
  getLocale: () => n.activeLocale?.value ?? n.content.value.settings.locale
3060
3072
  });
3061
- d(Ot, F), d(Ht, r.resolvePreview);
3062
- let L = I(() => !(n.state.previewMode && F.isConfigured));
3063
- d(Gt, L);
3064
- let z = Wr();
3065
- d(Dt, z), d(At, H(!1)), d(Mt, H(!1)), d(nn, r.logicTags?.tags ?? []), d(bt, r.logicTags?.pairs ?? []), d(zt, r.logicTags?.onRequest ?? null), d(jt, Gr()), d(Vt, r.onRequestMedia ?? null), d(gn, r.canDropMedia ?? null), d(St, r.resolveImageUrl ? Bn(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(Wt, r.displayConditions?.conditions ?? []), d(dn, r.displayConditions?.allowCustom ?? !1), d(Et, r.displayConditions?.onRequest ?? null), d(Xt, t.capabilities ?? {}), d(vn, b);
3066
- let B = Kr(r.lint) ? null : Jr({
3073
+ d(kt, F), d(Wt, r.resolvePreview);
3074
+ let L = null;
3075
+ d(Ht, (e) => (L = e, () => {
3076
+ L === e && (L = null);
3077
+ }));
3078
+ let z = () => (L ?? F.refresh)(), B = I(() => !(n.state.previewMode && F.isConfigured));
3079
+ d(Kt, B);
3080
+ let V = Gr();
3081
+ 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);
3082
+ let U = qr(r.lint) ? null : Yr({
3067
3083
  content: n.content,
3068
3084
  get options() {
3069
- return Vr({
3085
+ return Hr({
3070
3086
  ...r,
3071
3087
  content: n.content.value,
3072
3088
  contentLocale: n.activeLocale?.value ?? void 0
@@ -3078,9 +3094,9 @@ function as(t) {
3078
3094
  updateSettings: n.updateSettings,
3079
3095
  removeBlock: n.removeBlock
3080
3096
  });
3081
- d(Zt, B);
3082
- function V() {
3083
- y?.(), B?.destroy(), _?.destroy(), m.destroy();
3097
+ d(gn, U);
3098
+ function W() {
3099
+ y?.(), U?.destroy(), _?.destroy(), m.destroy();
3084
3100
  }
3085
3101
  return {
3086
3102
  t: o,
@@ -3095,27 +3111,28 @@ function as(t) {
3095
3111
  themeOverrides: f,
3096
3112
  registry: w,
3097
3113
  keyboardReorder: b,
3098
- templateLint: B,
3114
+ templateLint: U,
3099
3115
  popoverRoot: k,
3100
3116
  mergeTagSampleMode: P,
3101
3117
  previewResolution: F,
3102
- appliesConditionFilter: L,
3118
+ refreshPreview: z,
3119
+ appliesConditionFilter: B,
3103
3120
  registerCustomBlocks: E,
3104
3121
  setMergeTags: N,
3105
3122
  mergeTags: M,
3106
3123
  mergeTagSyntax: j,
3107
- destroy: V
3124
+ destroy: W
3108
3125
  };
3109
3126
  }
3110
3127
  // src/composables/useSmallScreenNotice.ts
3111
- var os = "(max-width: 767px)";
3112
- function ss(e) {
3113
- let n = t(os);
3128
+ var ss = "(max-width: 767px)";
3129
+ function cs(e) {
3130
+ let n = t(ss);
3114
3131
  return {
3115
3132
  isSmallScreen: n,
3116
3133
  showNotice: I(() => (F(e) ?? !0) && n.value)
3117
3134
  };
3118
3135
  }
3119
- export { xi as A, Dr as B, Wi as C, Ki as D, ki as E, gi as F, xr as H, Ur as I, Vr as L, yi as M, vi as N, Ai as O, _i as P, Ir as R, Fi as S, Bi as T, Sr as V, ua as _, Vo as a, Xi as b, bo as c, _o as d, Ia as f, ga as g, Oa as h, qo as i, bi as j, pi as k, Co as l, Ma as m, as as n, Ro as o, Fa as p, rs as r, Ao as s, ss as t, yo as u, ca as v, zi as w, Mi as x, $i as y, Pr as z };
3136
+ 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 };
3120
3137
 
3121
- //# sourceMappingURL=composables-CkthyXi9.js.map
3138
+ //# sourceMappingURL=composables-Cp6gZ7qV.js.map