@templatical/editor 0.56.1 → 0.57.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 (303) hide show
  1. package/README.md +1 -1
  2. package/dist/{AiAltTextPopover-CpZ7UeAZ.js → AiAltTextPopover-BiZHthAB.js} +5 -5
  3. package/dist/{AiAltTextReview-LYxvn7Qe.js → AiAltTextReview-BwhROHiF.js} +6 -6
  4. package/dist/{AiChatPanel-Cy05P-iO.js → AiChatPanel-Cros4ZCM.js} +22 -25
  5. package/dist/AiPanels-D_CdHqFZ.js +26 -0
  6. package/dist/{AiRewriteMenu-DgqJHnza.js → AiRewriteMenu-6b8GNj64.js} +53 -53
  7. package/dist/{BlockIssueBadge-CxHJmuOh.js → BlockIssueBadge-i2cZy5PB.js} +5 -5
  8. package/dist/{BlockPreviewCanvas-DEmNZkEG.js → BlockPreviewCanvas-BAYIy-QJ.js} +27 -27
  9. package/dist/{CloudHeaderExtras-Cqhw-jMz.js → CloudHeaderExtras-CJsXi4Ku.js} +2 -2
  10. package/dist/{CloudPanels-Bmlf05Il.js → CloudPanels-Cb54vtYC.js} +6 -6
  11. package/dist/{CollaborationNotices-C27GCMvK.js → CollaborationNotices-DkYX-ose.js} +3 -3
  12. package/dist/{CollaboratorBar-CLQjksX-.js → CollaboratorBar-xDweDvB6.js} +3 -3
  13. package/dist/CommentsPanel-t3w16YUl.js +23 -0
  14. package/dist/CommentsSidebar-B3M90RY_.js +516 -0
  15. package/dist/{CountdownBlock-D8dqjm3F.js → CountdownBlock-BrR2uqM3.js} +4 -4
  16. package/dist/{CountdownToolbar-IjpCOjCd.js → CountdownToolbar-CTbJPh8B.js} +7 -7
  17. package/dist/{IssuesPanel-uwuzeMSW.js → IssuesPanel-BUKc8lld.js} +13 -13
  18. package/dist/{LanguageMenu-C-eQ0lFy.js → LanguageMenu-DruJAMET.js} +16 -16
  19. package/dist/{LoadingTrack-BG8cg9xi.js → LoadingTrack-c4SeD16s.js} +1 -1
  20. package/dist/{LocaleNotices-CDK_9D7P.js → LocaleNotices-D6zk-QCL.js} +5 -5
  21. package/dist/{LogicTagInsertButton-BSolF7Fd.js → LogicTagInsertButton-Ci7V0Exe.js} +65 -65
  22. package/dist/{MediaEditModal-C8yc9dxt.js → MediaEditModal-BxbwZxnf.js} +4 -4
  23. package/dist/{MediaPanels-FI4I8asn.js → MediaPanels-BiUxsTMM.js} +2 -2
  24. package/dist/{MergeTagInput-B1nl2ZMT.js → MergeTagInput-BA89v7KJ.js} +2 -2
  25. package/dist/{MergeTagModeToggle-DXvb80OE.js → MergeTagModeToggle-De_FNmcG.js} +7 -7
  26. package/dist/{MergeTagTextarea-DJlf3VbS.js → MergeTagTextarea-BRMB24Dg.js} +9 -9
  27. package/dist/{ParagraphEditor-Dqco128s.js → ParagraphEditor-DYqh0kEa.js} +51 -51
  28. package/dist/{RestoreVersionDialog-hqLCuGV5.js → RestoreVersionDialog-CRkyFafq.js} +5 -5
  29. package/dist/{RichTextEditorContent-xIEF0Y3Z.js → RichTextEditorContent-WeCqqCy3.js} +10 -10
  30. package/dist/{SaveBlockDialog-CQlCP_XC.js → SaveBlockDialog-D992yyO4.js} +15 -15
  31. package/dist/{SavedBlocksBrowserModal-BXA32Fx6.js → SavedBlocksBrowserModal-tH74h2Tz.js} +13 -13
  32. package/dist/{SavedBlocksPanels-BKUzbamj.js → SavedBlocksPanels-BuzEwYfp.js} +2 -2
  33. package/dist/{SavedBlocksPickBar-BlvF-4UF.js → SavedBlocksPickBar-DbULBPsI.js} +4 -4
  34. package/dist/{TemplateSettings-CYFtR8zv.js → TemplateSettings-eMBAy_wd.js} +14 -14
  35. package/dist/{TestEmailModal-BbaL17HO.js → TestEmailModal-hb9iopaZ.js} +13 -13
  36. package/dist/{TestEmailPanel-DhB1CSpg.js → TestEmailPanel-DbeZjj0u.js} +2 -2
  37. package/dist/{TitleEditor-3BRl8u5l.js → TitleEditor-CisDioGi.js} +14 -14
  38. package/dist/{ToggleSwitch-R3wCCYE6.js → ToggleSwitch-BIPdFWUr.js} +1 -1
  39. package/dist/{Toolbar-pzNIakGM.js → Toolbar-BUVRjylH.js} +218 -218
  40. package/dist/{TplModal-WNuWhHZm.js → TplModal-BPPP-uM6.js} +6 -6
  41. package/dist/{VersionHistoryMenu--T-Qp_mH.js → VersionHistoryMenu-Cd2IaHgT.js} +10 -10
  42. package/dist/{VersionHistoryPanels-BPubvYIE.js → VersionHistoryPanels-BNONrE-8.js} +2 -2
  43. package/dist/{VersionPreviewBanner-ClL3Wkln.js → VersionPreviewBanner-lkAf7tc8.js} +3 -3
  44. package/dist/{WrapperBlock-CjfCPceb.js → WrapperBlock-B3UAv5kv.js} +5 -5
  45. package/dist/{blockTypeIcons-12OMwVyN.js → blockTypeIcons-BPPpqFc2.js} +3 -3
  46. package/dist/bundle-stats.json +7 -7
  47. package/dist/cdn/chunks/{AiAltTextPopover-PFjTrl0y.js → AiAltTextPopover-CafZSF50.js} +5 -5
  48. package/dist/cdn/chunks/{AiAltTextPopover-PFjTrl0y.js.map → AiAltTextPopover-CafZSF50.js.map} +1 -1
  49. package/dist/cdn/chunks/{AiAltTextReview-BMjzvApH.js → AiAltTextReview-BJcaqyp5.js} +6 -6
  50. package/dist/cdn/chunks/{AiAltTextReview-BMjzvApH.js.map → AiAltTextReview-BJcaqyp5.js.map} +1 -1
  51. package/dist/cdn/chunks/{AiChatPanel-C2gpq4kP.js → AiChatPanel-DNCUpV8n.js} +15 -18
  52. package/dist/cdn/chunks/AiChatPanel-DNCUpV8n.js.map +1 -0
  53. package/dist/cdn/chunks/AiPanels-IV0VEkBL.js +27 -0
  54. package/dist/cdn/chunks/AiPanels-IV0VEkBL.js.map +1 -0
  55. package/dist/cdn/chunks/{AiRewriteMenu-CnkyjPEu.js → AiRewriteMenu-DFUZWA7e.js} +58 -58
  56. package/dist/cdn/chunks/AiRewriteMenu-DFUZWA7e.js.map +1 -0
  57. package/dist/cdn/chunks/{BlockIssueBadge-DncZ-HDf.js → BlockIssueBadge-DIlFDDwh.js} +5 -5
  58. package/dist/cdn/chunks/BlockIssueBadge-DIlFDDwh.js.map +1 -0
  59. package/dist/cdn/chunks/{BlockPreviewCanvas-CCSEzL46.js → BlockPreviewCanvas-D0VhkzY8.js} +28 -28
  60. package/dist/cdn/chunks/BlockPreviewCanvas-D0VhkzY8.js.map +1 -0
  61. package/dist/cdn/chunks/{CloudHeaderExtras-uUJYJFJ6.js → CloudHeaderExtras-CazfMn6A.js} +3 -3
  62. package/dist/cdn/chunks/{CloudHeaderExtras-uUJYJFJ6.js.map → CloudHeaderExtras-CazfMn6A.js.map} +1 -1
  63. package/dist/cdn/chunks/{CloudPanels-CRztnw4M.js → CloudPanels-BiU1MD-4.js} +5 -5
  64. package/dist/cdn/chunks/CloudPanels-BiU1MD-4.js.map +1 -0
  65. package/dist/cdn/chunks/{CollaborationNotices-IuLYT2x7.js → CollaborationNotices-DGA8XRZJ.js} +4 -4
  66. package/dist/cdn/chunks/{CollaborationNotices-IuLYT2x7.js.map → CollaborationNotices-DGA8XRZJ.js.map} +1 -1
  67. package/dist/cdn/chunks/{CollaboratorBar-C1ZI2xwa.js → CollaboratorBar-BWL1Shc1.js} +4 -4
  68. package/dist/cdn/chunks/{CollaboratorBar-C1ZI2xwa.js.map → CollaboratorBar-BWL1Shc1.js.map} +1 -1
  69. package/dist/cdn/chunks/CommentsPanel-4mrl4zMK.js +24 -0
  70. package/dist/cdn/chunks/CommentsPanel-4mrl4zMK.js.map +1 -0
  71. package/dist/cdn/chunks/CommentsSidebar-BJ87vc7i.js +486 -0
  72. package/dist/cdn/chunks/CommentsSidebar-BJ87vc7i.js.map +1 -0
  73. package/dist/cdn/chunks/{CountdownBlock-8aPSExrv.js → CountdownBlock-Do6oItNW.js} +5 -5
  74. package/dist/cdn/chunks/{CountdownBlock-8aPSExrv.js.map → CountdownBlock-Do6oItNW.js.map} +1 -1
  75. package/dist/cdn/chunks/{CountdownToolbar-CnWQEW5g.js → CountdownToolbar-CH8UK01N.js} +8 -8
  76. package/dist/cdn/chunks/{CountdownToolbar-CnWQEW5g.js.map → CountdownToolbar-CH8UK01N.js.map} +1 -1
  77. package/dist/cdn/chunks/{IssuesPanel-CrplCzo8.js → IssuesPanel-3NPqHXJx.js} +9 -9
  78. package/dist/cdn/chunks/IssuesPanel-3NPqHXJx.js.map +1 -0
  79. package/dist/cdn/chunks/{LanguageMenu-B6MNInCL.js → LanguageMenu-75uu4P2d.js} +105 -105
  80. package/dist/cdn/chunks/LanguageMenu-75uu4P2d.js.map +1 -0
  81. package/dist/cdn/chunks/{LoadingTrack-DUYcDHOV.js → LoadingTrack-o-89hApJ.js} +2 -2
  82. package/dist/cdn/chunks/{LoadingTrack-DUYcDHOV.js.map → LoadingTrack-o-89hApJ.js.map} +1 -1
  83. package/dist/cdn/chunks/{LocaleNotices-TxeAl8Iq.js → LocaleNotices-CUN5K5QJ.js} +5 -5
  84. package/dist/cdn/chunks/{LocaleNotices-TxeAl8Iq.js.map → LocaleNotices-CUN5K5QJ.js.map} +1 -1
  85. package/dist/cdn/chunks/{LogicTagInsertButton-DvSVx2DB.js → LogicTagInsertButton-C5L73hYh.js} +12 -12
  86. package/dist/cdn/chunks/{LogicTagInsertButton-DvSVx2DB.js.map → LogicTagInsertButton-C5L73hYh.js.map} +1 -1
  87. package/dist/cdn/chunks/{MediaEditModal-tGK6htBl.js → MediaEditModal-BHTMNHx0.js} +4 -4
  88. package/dist/cdn/chunks/{MediaEditModal-tGK6htBl.js.map → MediaEditModal-BHTMNHx0.js.map} +1 -1
  89. package/dist/cdn/chunks/{MediaPanels-BVrQYz2C.js → MediaPanels-BlianNRh.js} +3 -3
  90. package/dist/cdn/chunks/{MediaPanels-BVrQYz2C.js.map → MediaPanels-BlianNRh.js.map} +1 -1
  91. package/dist/cdn/chunks/{MergeTagInput-DeuNH3re.js → MergeTagInput-D8cbnnZu.js} +3 -3
  92. package/dist/cdn/chunks/{MergeTagInput-DeuNH3re.js.map → MergeTagInput-D8cbnnZu.js.map} +1 -1
  93. package/dist/cdn/chunks/{MergeTagModeToggle-D7maMGIM.js → MergeTagModeToggle-D-RhwBsO.js} +6 -6
  94. package/dist/cdn/chunks/{MergeTagModeToggle-D7maMGIM.js.map → MergeTagModeToggle-D-RhwBsO.js.map} +1 -1
  95. package/dist/cdn/chunks/{MergeTagTextarea-B2xxIU3e.js → MergeTagTextarea-CAJIi2FE.js} +7 -7
  96. package/dist/cdn/chunks/{MergeTagTextarea-B2xxIU3e.js.map → MergeTagTextarea-CAJIi2FE.js.map} +1 -1
  97. package/dist/cdn/chunks/{ParagraphEditor-Bx_Hlw8d.js → ParagraphEditor-sRPXZDzp.js} +30 -30
  98. package/dist/cdn/chunks/{ParagraphEditor-Bx_Hlw8d.js.map → ParagraphEditor-sRPXZDzp.js.map} +1 -1
  99. package/dist/cdn/chunks/{RestoreVersionDialog-CPrrWTsT.js → RestoreVersionDialog-CJK-14PX.js} +5 -5
  100. package/dist/cdn/chunks/RestoreVersionDialog-CJK-14PX.js.map +1 -0
  101. package/dist/cdn/chunks/{RichTextEditorContent-Dze4C9VI.js → RichTextEditorContent-DU0wtA_j.js} +9 -9
  102. package/dist/cdn/chunks/{RichTextEditorContent-Dze4C9VI.js.map → RichTextEditorContent-DU0wtA_j.js.map} +1 -1
  103. package/dist/cdn/chunks/{SaveBlockDialog-CXVwnfsy.js → SaveBlockDialog-C8hY9xA-.js} +13 -13
  104. package/dist/cdn/chunks/{SaveBlockDialog-CXVwnfsy.js.map → SaveBlockDialog-C8hY9xA-.js.map} +1 -1
  105. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BDTmenOE.js → SavedBlocksBrowserModal-B3nFAgAa.js} +9 -9
  106. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BDTmenOE.js.map → SavedBlocksBrowserModal-B3nFAgAa.js.map} +1 -1
  107. package/dist/cdn/chunks/{SavedBlocksPanels-B41Rk_v1.js → SavedBlocksPanels-CQenugHO.js} +3 -3
  108. package/dist/cdn/chunks/{SavedBlocksPanels-B41Rk_v1.js.map → SavedBlocksPanels-CQenugHO.js.map} +1 -1
  109. package/dist/cdn/chunks/{SavedBlocksPickBar-B97z_rFH.js → SavedBlocksPickBar-DzUP4IYv.js} +5 -5
  110. package/dist/cdn/chunks/{SavedBlocksPickBar-B97z_rFH.js.map → SavedBlocksPickBar-DzUP4IYv.js.map} +1 -1
  111. package/dist/cdn/chunks/{TemplateSettings-YwwRbxPc.js → TemplateSettings-DnOwyN_1.js} +12 -12
  112. package/dist/cdn/chunks/{TemplateSettings-YwwRbxPc.js.map → TemplateSettings-DnOwyN_1.js.map} +1 -1
  113. package/dist/cdn/chunks/{TestEmailModal-BiFP2Cbx.js → TestEmailModal-BFqmfOZ1.js} +10 -10
  114. package/dist/cdn/chunks/{TestEmailModal-BiFP2Cbx.js.map → TestEmailModal-BFqmfOZ1.js.map} +1 -1
  115. package/dist/cdn/chunks/{TestEmailPanel-BrivPMk2.js → TestEmailPanel-DFOhhaa9.js} +3 -3
  116. package/dist/cdn/chunks/{TestEmailPanel-BrivPMk2.js.map → TestEmailPanel-DFOhhaa9.js.map} +1 -1
  117. package/dist/cdn/chunks/{TitleEditor-CzPkkL2s.js → TitleEditor-ChPXTB9T.js} +13 -13
  118. package/dist/cdn/chunks/{TitleEditor-CzPkkL2s.js.map → TitleEditor-ChPXTB9T.js.map} +1 -1
  119. package/dist/cdn/chunks/{ToggleSwitch-BSkySwA1.js → ToggleSwitch-C0w0srN_.js} +2 -2
  120. package/dist/cdn/chunks/{ToggleSwitch-BSkySwA1.js.map → ToggleSwitch-C0w0srN_.js.map} +1 -1
  121. package/dist/cdn/chunks/{Toolbar-VH07SzX7.js → Toolbar-bbO5WoKo.js} +302 -302
  122. package/dist/cdn/chunks/Toolbar-bbO5WoKo.js.map +1 -0
  123. package/dist/cdn/chunks/{TplModal-DMe6J811.js → TplModal-Bg97XHIJ.js} +6 -6
  124. package/dist/cdn/chunks/{TplModal-DMe6J811.js.map → TplModal-Bg97XHIJ.js.map} +1 -1
  125. package/dist/cdn/chunks/{VersionHistoryMenu-DkwbKhBl.js → VersionHistoryMenu-BNPxnWiO.js} +9 -9
  126. package/dist/cdn/chunks/{VersionHistoryMenu-DkwbKhBl.js.map → VersionHistoryMenu-BNPxnWiO.js.map} +1 -1
  127. package/dist/cdn/chunks/{VersionHistoryPanels-CgxhMRAl.js → VersionHistoryPanels-CyyRXWPU.js} +3 -3
  128. package/dist/cdn/chunks/{VersionHistoryPanels-CgxhMRAl.js.map → VersionHistoryPanels-CyyRXWPU.js.map} +1 -1
  129. package/dist/cdn/chunks/{VersionPreviewBanner-WVBDBrwQ.js → VersionPreviewBanner-BldFvgxJ.js} +4 -4
  130. package/dist/cdn/chunks/{VersionPreviewBanner-WVBDBrwQ.js.map → VersionPreviewBanner-BldFvgxJ.js.map} +1 -1
  131. package/dist/cdn/chunks/{WrapperBlock-CCCIcqe2.js → WrapperBlock-ZBCf7Y8u.js} +6 -6
  132. package/dist/cdn/chunks/{WrapperBlock-CCCIcqe2.js.map → WrapperBlock-ZBCf7Y8u.js.map} +1 -1
  133. package/dist/cdn/chunks/{blockTypeIcons-CzYA5DF9.js → blockTypeIcons-19xd5ZPi.js} +6 -6
  134. package/dist/cdn/chunks/{blockTypeIcons-CzYA5DF9.js.map → blockTypeIcons-19xd5ZPi.js.map} +1 -1
  135. package/dist/cdn/chunks/{composables-D3lsO7Io.js → composables-CMBZad02.js} +750 -730
  136. package/dist/cdn/chunks/composables-CMBZad02.js.map +1 -0
  137. package/dist/cdn/chunks/{createCloudRuntime-CE79GB1H.js → createCloudRuntime-BHGFjpek.js} +157 -143
  138. package/dist/cdn/chunks/createCloudRuntime-BHGFjpek.js.map +1 -0
  139. package/dist/cdn/chunks/da-CYWJkrTg.js +97 -0
  140. package/dist/cdn/chunks/da-CYWJkrTg.js.map +1 -0
  141. package/dist/cdn/chunks/da-qQzj0QGy.js +950 -0
  142. package/dist/cdn/chunks/da-qQzj0QGy.js.map +1 -0
  143. package/dist/cdn/chunks/{dist-BzXULHvI.js → dist-BtWMy7UQ.js} +3 -3
  144. package/dist/cdn/chunks/{dist-BzXULHvI.js.map → dist-BtWMy7UQ.js.map} +1 -1
  145. package/dist/cdn/chunks/{dist-Cf1pSluo.js → dist-zu1jwYIS.js} +4 -4
  146. package/dist/cdn/chunks/{dist-Cf1pSluo.js.map → dist-zu1jwYIS.js.map} +1 -1
  147. package/dist/cdn/chunks/{draggable-DepKdldn.js → draggable-IRVFEZ-b.js} +1535 -1500
  148. package/dist/cdn/chunks/draggable-IRVFEZ-b.js.map +1 -0
  149. package/dist/cdn/chunks/{editor-modal-CN69NlOK.js → editor-modal-CarOiAYJ.js} +77 -76
  150. package/dist/cdn/chunks/{editor-modal-CN69NlOK.js.map → editor-modal-CarOiAYJ.js.map} +1 -1
  151. package/dist/cdn/chunks/en-B4s_0ryk.js +1 -0
  152. package/dist/cdn/chunks/{extensions-8dlM-fU4.js → extensions-Beg0g2wm.js} +7 -7
  153. package/dist/cdn/chunks/{extensions-8dlM-fU4.js.map → extensions-Beg0g2wm.js.map} +1 -1
  154. package/dist/cdn/chunks/{icons-DHExFLlT.js → icons-Cl4oR2mf.js} +73 -73
  155. package/dist/cdn/chunks/icons-Cl4oR2mf.js.map +1 -0
  156. package/dist/cdn/chunks/keys-BQqbBUag.js +11 -0
  157. package/dist/cdn/chunks/keys-BQqbBUag.js.map +1 -0
  158. package/dist/cdn/chunks/{normalizeMergeTagMarkup-aWjkotui.js → normalizeMergeTagMarkup-B8yU4usU.js} +55 -55
  159. package/dist/cdn/chunks/{normalizeMergeTagMarkup-aWjkotui.js.map → normalizeMergeTagMarkup-B8yU4usU.js.map} +1 -1
  160. package/dist/cdn/chunks/{preRenderCustomBlocks-Dn6dFUwx.js → preRenderCustomBlocks-CPHm2GOQ.js} +2 -2
  161. package/dist/cdn/chunks/{preRenderCustomBlocks-Dn6dFUwx.js.map → preRenderCustomBlocks-CPHm2GOQ.js.map} +1 -1
  162. package/dist/cdn/chunks/{sanitizeHtml-B3njfkSy.js → sanitizeHtml-B7LC0gKK.js} +22 -11
  163. package/dist/cdn/chunks/sanitizeHtml-B7LC0gKK.js.map +1 -0
  164. package/dist/cdn/chunks/{socialIcons-BFgc3qqJ.js → socialIcons-D9D02_y5.js} +575 -524
  165. package/dist/cdn/chunks/socialIcons-D9D02_y5.js.map +1 -0
  166. package/dist/cdn/chunks/{src-C9JWWxAk.js → src-BCrSqaj8.js} +108 -95
  167. package/dist/cdn/chunks/src-BCrSqaj8.js.map +1 -0
  168. package/dist/cdn/chunks/{src-GgKlXNxy.js → src-BO4aXl_Y.js} +232 -228
  169. package/dist/cdn/chunks/src-BO4aXl_Y.js.map +1 -0
  170. package/dist/cdn/chunks/{src-mXG-Of9A.js → src-DeywvttP.js} +812 -780
  171. package/dist/cdn/chunks/src-DeywvttP.js.map +1 -0
  172. package/dist/cdn/chunks/{tiptap-C940SvId.js → tiptap-BPiZqxCt.js} +40 -31
  173. package/dist/cdn/chunks/tiptap-BPiZqxCt.js.map +1 -0
  174. package/dist/cdn/chunks/{useCloudI18n-Xsih9yRH.js → useCloudI18n-Dr4S2TRW.js} +3 -3
  175. package/dist/cdn/chunks/{useCloudI18n-Xsih9yRH.js.map → useCloudI18n-Dr4S2TRW.js.map} +1 -1
  176. package/dist/cdn/chunks/useEditorRoot-B_kf_k-g.js +9 -0
  177. package/dist/cdn/chunks/{useEditorRoot-Beau2Z_T.js.map → useEditorRoot-B_kf_k-g.js.map} +1 -1
  178. package/dist/cdn/chunks/{useI18n-D8s7HtTn.js → useI18n-CSf-ZpcM.js} +3 -3
  179. package/dist/cdn/chunks/{useI18n-D8s7HtTn.js.map → useI18n-CSf-ZpcM.js.map} +1 -1
  180. package/dist/cdn/chunks/useLocalizedDisplay-oykFcYrW.js +33 -0
  181. package/dist/cdn/chunks/{useLocalizedDisplay-Bgg4qpev.js.map → useLocalizedDisplay-oykFcYrW.js.map} +1 -1
  182. package/dist/cdn/chunks/{useLogicTag-B0PDeDxl.js → useLogicTag-D_qg9qqO.js} +4 -4
  183. package/dist/cdn/chunks/{useLogicTag-B0PDeDxl.js.map → useLogicTag-D_qg9qqO.js.map} +1 -1
  184. package/dist/cdn/chunks/{useMergeTag-BSU75bKk.js → useMergeTag-VLnVHtxV.js} +4 -4
  185. package/dist/cdn/chunks/{useMergeTag-BSU75bKk.js.map → useMergeTag-VLnVHtxV.js.map} +1 -1
  186. package/dist/cdn/chunks/{usePopoverPosition-esO6wjvU.js → usePopoverPosition-BJFFi8x6.js} +3 -3
  187. package/dist/cdn/chunks/{usePopoverPosition-esO6wjvU.js.map → usePopoverPosition-BJFFi8x6.js.map} +1 -1
  188. package/dist/cdn/chunks/{useScrollToBlock-CJuUu7Xj.js → useScrollToBlock-MI4PP5lk.js} +3 -3
  189. package/dist/cdn/chunks/{useScrollToBlock-CJuUu7Xj.js.map → useScrollToBlock-MI4PP5lk.js.map} +1 -1
  190. package/dist/cdn/chunks/{withCurrentFont-QqBilClC.js → withCurrentFont-m6TtR0dC.js} +2 -2
  191. package/dist/cdn/chunks/{withCurrentFont-QqBilClC.js.map → withCurrentFont-m6TtR0dC.js.map} +1 -1
  192. package/dist/cdn/editor.css +1 -1
  193. package/dist/cdn/editor.js +685 -663
  194. package/dist/cdn/editor.js.map +1 -1
  195. package/dist/{check-CcuCoJDh.js → check-C7ua4TAK.js} +1 -1
  196. package/dist/{chevron-down-BfYIbFbC.js → chevron-down-DftQrAkI.js} +1 -1
  197. package/dist/{chevron-right-DyjFqY35.js → chevron-right-B-DULGbg.js} +1 -1
  198. package/dist/{chevron-up-BHEIxuS-.js → chevron-up-CeYsyD8c.js} +1 -1
  199. package/dist/{circle-alert-Tq7kAh9S.js → circle-exclamation-point-DHjORV_I.js} +3 -3
  200. package/dist/{clock-Df0ZiXwQ.js → clock-CajOtLEZ.js} +1 -1
  201. package/dist/{composables-DreAt_0A.js → composables-Cq7rsxRc.js} +1123 -1103
  202. package/dist/{createCloudRuntime-CL4tUlDC.js → createCloudRuntime-CHsFF8DI.js} +42 -28
  203. package/dist/{createLucideIcon-CfBdtoUw.js → createLucideIcon-D-mELTSY.js} +6 -6
  204. package/dist/da-CYWJkrTg.js +95 -0
  205. package/dist/da-qQzj0QGy.js +948 -0
  206. package/dist/{dist-CX7skkvG.js → dist-A328tG0Z.js} +2 -2
  207. package/dist/{dist-BjzK1g4Z.js → dist-B15BvV94.js} +2 -2
  208. package/dist/{dist-DDytHU_6.js → dist-B3G4Yvpd.js} +3 -3
  209. package/dist/{dist-CiYotUR8.js → dist-B6ptxfPo.js} +3 -3
  210. package/dist/{dist-0GWMyHtM.js → dist-BmV-2uBJ.js} +2 -2
  211. package/dist/{dist-CCLRTtJP.js → dist-BxKFi2h_.js} +5 -5
  212. package/dist/{dist-BMUUt3zJ.js → dist-C0hVefGI.js} +791 -759
  213. package/dist/{dist-CsknfjrZ.js → dist-CMBOqk9I.js} +7 -7
  214. package/dist/{dist-ZrT0vAB6.js → dist-CXTsTO5h.js} +2 -2
  215. package/dist/{dist-Dq9VnANT.js → dist-D5BUcCjv.js} +2 -2
  216. package/dist/dist-D9cbSSSx.js +4 -0
  217. package/dist/{dist-BsumKKh9.js → dist-DAdrn64r.js} +2 -2
  218. package/dist/{dist-C3avsUq9.js → dist-DENg3ORe.js} +31 -22
  219. package/dist/{dist-Cr1CLCmx.js → dist-DI_8rB1X.js} +2 -2
  220. package/dist/dist-ELLEk-lS.js +4 -0
  221. package/dist/{editor-modal-BD32TXws.js → editor-modal-CgsaLpwB.js} +20 -19
  222. package/dist/en-DBLcB-CW.js +1 -0
  223. package/dist/{extensions-DKxHlSd7.js → extensions-BSXjPQEc.js} +21 -21
  224. package/dist/{eye-B3psrAqd.js → eye-fe5sKF_K.js} +1 -1
  225. package/dist/{image-C3yuPDxx.js → image-CUC7SZiW.js} +1 -1
  226. package/dist/index.d.ts +6 -4
  227. package/dist/{info-DKja7A68.js → info-DDbLU4pT.js} +1 -1
  228. package/dist/keys-D9oKZN1h.js +9 -0
  229. package/dist/{link-DhzPI4Hn.js → link-C2icj0iH.js} +1 -1
  230. package/dist/{list-DVGn7Ik2.js → list-KYC_Jb5A.js} +1 -1
  231. package/dist/{loader-circle-DqKWsMHO.js → loader-circle-DmyagWpc.js} +1 -1
  232. package/dist/{message-circle-C4TonoBs.js → message-circle-ijyWn6UJ.js} +1 -1
  233. package/dist/{normalizeMergeTagMarkup-Da9JAgx7.js → normalizeMergeTagMarkup-CBLCQe02.js} +82 -82
  234. package/dist/{package-9OkiEO4S.js → package-CKYm_jQY.js} +1 -1
  235. package/dist/{pencil-M9vkOB7C.js → pencil-C2TRSR-Y.js} +1 -1
  236. package/dist/{plus-DxZiv9YC.js → plus-CotJVDxb.js} +1 -1
  237. package/dist/{preRenderCustomBlocks-CdqSp2P7.js → preRenderCustomBlocks-e2OlY4aU.js} +3 -3
  238. package/dist/{refresh-cw-UY8_sdFG.js → refresh-cw-CuCRV6D5.js} +1 -1
  239. package/dist/{rotate-ccw-BFTGCpHn.js → rotate-ccw-BlnQ3y6R.js} +1 -1
  240. package/dist/{runtime-dom.esm-bundler-DlHp8xgy.js → runtime-dom.esm-bundler-nN-jsqr1.js} +20 -20
  241. package/dist/{sanitizeHtml-wBibnBF4.js → sanitizeHtml-Dfn-fH17.js} +25 -14
  242. package/dist/{search-RuGJnMEn.js → search-Dxw6oFrZ.js} +1 -1
  243. package/dist/{send-DGB1ar02.js → send-C-blQBZ9.js} +1 -1
  244. package/dist/{smartphone-CVA29CU_.js → smartphone-rLz4X-Dd.js} +1 -1
  245. package/dist/{socialIcons-oo4uL16Y.js → socialIcons-BZRLo0eT.js} +600 -549
  246. package/dist/{sparkles-IHfEwEcd.js → sparkles-JWQlUiSn.js} +1 -1
  247. package/dist/{square-_Cl44UU6.js → square-DshDy1Il.js} +1 -1
  248. package/dist/style.css +1 -1
  249. package/dist/templatical-editor.js +748 -726
  250. package/dist/{text-align-start-Dqk2Xt_Q.js → text-align-start-CyasaQtr.js} +13 -13
  251. package/dist/{trash-Cr7rD5Hh.js → trash-B1lZp2Tv.js} +1 -1
  252. package/dist/{triangle-alert-CKcpwtUj.js → triangle-exclamation-point-BhJvBEoT.js} +3 -3
  253. package/dist/{upload-DR9pqVON.js → upload-CNK8JX38.js} +1 -1
  254. package/dist/{useCloudI18n-BczJoFf4.js → useCloudI18n-HhCZYRV6.js} +2 -2
  255. package/dist/useEditorRoot-B0Njczhx.js +7 -0
  256. package/dist/{useI18n-zeWYtWSv.js → useI18n-CM9vKbYc.js} +2 -2
  257. package/dist/{cdn/chunks/useLocalizedDisplay-Bgg4qpev.js → useLocalizedDisplay-B7tlQF4g.js} +2 -4
  258. package/dist/{useLogicTag-B4Zpk3eo.js → useLogicTag-k_y-4o4W.js} +3 -3
  259. package/dist/{useMergeTag-B5qlq8px.js → useMergeTag-BiZ6XOdL.js} +3 -3
  260. package/dist/{usePopoverPosition-Br3zt_MQ.js → usePopoverPosition-CVRzzLkC.js} +2 -2
  261. package/dist/{useScrollToBlock-BfOzc1Z6.js → useScrollToBlock-vf_KD0FM.js} +3 -3
  262. package/dist/{vue.runtime.esm-bundler-BJXc_Mri.js → vue.runtime.esm-bundler-BE5V8ADU.js} +414 -362
  263. package/dist/{withCurrentFont-m_PHcOD0.js → withCurrentFont-CPhRujet.js} +1 -1
  264. package/dist/{x-DZSFHafL.js → x-DbLX5Qdm.js} +1 -1
  265. package/package.json +23 -23
  266. package/dist/AiPanels-CwKmXzyr.js +0 -31
  267. package/dist/CommentsPanel-B5NqPMmY.js +0 -16
  268. package/dist/CommentsSidebar-BDrcrDxS.js +0 -526
  269. package/dist/cdn/chunks/AiChatPanel-C2gpq4kP.js.map +0 -1
  270. package/dist/cdn/chunks/AiPanels-Cx3PE2mE.js +0 -32
  271. package/dist/cdn/chunks/AiPanels-Cx3PE2mE.js.map +0 -1
  272. package/dist/cdn/chunks/AiRewriteMenu-CnkyjPEu.js.map +0 -1
  273. package/dist/cdn/chunks/BlockIssueBadge-DncZ-HDf.js.map +0 -1
  274. package/dist/cdn/chunks/BlockPreviewCanvas-CCSEzL46.js.map +0 -1
  275. package/dist/cdn/chunks/CloudPanels-CRztnw4M.js.map +0 -1
  276. package/dist/cdn/chunks/CommentsPanel-lgjJNrrY.js +0 -18
  277. package/dist/cdn/chunks/CommentsPanel-lgjJNrrY.js.map +0 -1
  278. package/dist/cdn/chunks/CommentsSidebar-DTold7iy.js +0 -496
  279. package/dist/cdn/chunks/CommentsSidebar-DTold7iy.js.map +0 -1
  280. package/dist/cdn/chunks/IssuesPanel-CrplCzo8.js.map +0 -1
  281. package/dist/cdn/chunks/LanguageMenu-B6MNInCL.js.map +0 -1
  282. package/dist/cdn/chunks/RestoreVersionDialog-CPrrWTsT.js.map +0 -1
  283. package/dist/cdn/chunks/Toolbar-VH07SzX7.js.map +0 -1
  284. package/dist/cdn/chunks/composables-D3lsO7Io.js.map +0 -1
  285. package/dist/cdn/chunks/createCloudRuntime-CE79GB1H.js.map +0 -1
  286. package/dist/cdn/chunks/draggable-DepKdldn.js.map +0 -1
  287. package/dist/cdn/chunks/en-Bcz4gS9U.js +0 -1
  288. package/dist/cdn/chunks/icons-DHExFLlT.js.map +0 -1
  289. package/dist/cdn/chunks/keys-BUmIvYy3.js +0 -11
  290. package/dist/cdn/chunks/keys-BUmIvYy3.js.map +0 -1
  291. package/dist/cdn/chunks/sanitizeHtml-B3njfkSy.js.map +0 -1
  292. package/dist/cdn/chunks/socialIcons-BFgc3qqJ.js.map +0 -1
  293. package/dist/cdn/chunks/src-C9JWWxAk.js.map +0 -1
  294. package/dist/cdn/chunks/src-GgKlXNxy.js.map +0 -1
  295. package/dist/cdn/chunks/src-mXG-Of9A.js.map +0 -1
  296. package/dist/cdn/chunks/tiptap-C940SvId.js.map +0 -1
  297. package/dist/cdn/chunks/useEditorRoot-Beau2Z_T.js +0 -9
  298. package/dist/dist-B_0FPmoy.js +0 -4
  299. package/dist/dist-DKV9m4Uu.js +0 -4
  300. package/dist/en-Dgs_-NBw.js +0 -1
  301. package/dist/keys-w_VRjoMu.js +0 -9
  302. package/dist/useEditorRoot-BcXKhM_8.js +0 -7
  303. package/dist/useLocalizedDisplay-Cbhx208c.js +0 -31
@@ -1,32 +1,32 @@
1
- import { a as e, c as t, i as n, l as r } from "./dist-Cf1pSluo.js";
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 te, tt as V, u as H, x as U } from "./draggable-DepKdldn.js";
3
- import { t as ne } from "./useEditorRoot-Beau2Z_T.js";
4
- import { t as W } from "./useI18n-D8s7HtTn.js";
5
- import "./useCloudI18n-Xsih9yRH.js";
6
- import { t as G } from "./useMergeTag-BSU75bKk.js";
7
- import { _ as re, h as K, v as ie, y as ae } from "./dist-BzXULHvI.js";
8
- import { $ as oe, A as se, B as q, C as J, Cn as Y, D as X, E as ce, G as le, H as ue, I as de, K as Z, Kt as fe, L as pe, M as me, N as Q, O as he, P as ge, Q as _e, Qt as ve, R as ye, S as be, Sn as xe, T as Se, W as Ce, X as we, Y as Te, Z as Ee, Zt as De, a as Oe, at as ke, b as Ae, bn as je, cn as Me, ct as Ne, d as Pe, dt as Fe, et as Ie, hn as Le, ht as Re, i as ze, it as Be, j as Ve, jt as He, lt as Ue, mn as We, mt as Ge, nt as Ke, on as qe, p as Je, pt as Ye, q as Xe, rn as Ze, rt as Qe, sn as $e, st as et, t as tt, tt as nt, u as rt, un as it, vn as at, vt as ot, w as st, x as ct, xn as lt, y as ut, yn as dt } from "./src-mXG-Of9A.js";
1
+ import { a as e, c as t, i as n, l as r } from "./dist-zu1jwYIS.js";
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-VLnVHtxV.js";
7
+ import { _ as ne, h as q, v as J, y as re } from "./dist-BtWMy7UQ.js";
8
+ import { $ as ie, $t as ae, A as Y, B as X, C as Z, Cn as Q, D as oe, E as se, G as ce, H as le, I as ue, K as de, L as fe, M as pe, N as me, O as he, P as ge, Q as _e, Qt as ve, R as ye, S as be, Sn as xe, T as Se, Tn as Ce, W as we, X as Te, Y as Ee, Z as De, a as Oe, at as ke, b as Ae, bn as je, cn as Me, ct as Ne, d as Pe, dn as Fe, dt as Ie, et as Le, gn as Re, hn as ze, ht as Be, i as Ve, in as He, it as Ue, j as We, jt as Ge, ln as Ke, lt as qe, mt as Je, nt as Ye, p as Xe, pt as Ze, q as Qe, qt as $e, rt as et, sn as tt, st as nt, t as rt, tt as it, u as at, vt as ot, w as st, wn as ct, x as lt, xn as ut, y as dt, yn as ft } from "./src-DeywvttP.js";
9
9
  import { t as $ } from "./logger-CqQTfJGx.js";
10
- import { a as ft, c as pt, i as mt, n as ht, o as gt, t as _t } from "./usePopoverPosition-esO6wjvU.js";
11
- import { n as vt } from "./useLocalizedDisplay-Bgg4qpev.js";
12
- import { $ as yt, 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, R as Ft, S as It, T as Lt, U as Rt, V as zt, W as Bt, Y as Vt, Z as Ht, _ as Ut, a as Wt, at as Gt, b as Kt, c as qt, d as Jt, et as Yt, g as Xt, h as Zt, i as Qt, it as $t, j as en, k as tn, l as nn, m as rn, nt as an, ot as on, p as sn, q as cn, r as ln, rt as un, s as dn, st as fn, tt as pn, u as mn, v as hn, w as gn, x as _n, y as vn, z as yn } from "./keys-BUmIvYy3.js";
13
- import { t as bn } from "./useLogicTag-B0PDeDxl.js";
14
- import { B as xn, C as Sn, F as Cn, I as wn, P as Tn, R as En, T as Dn, _ as On, a as kn, f as An, h as jn, n as Mn, o as Nn, t as Pn, u as Fn, v as In, w as Ln, x as Rn, y as zn, z as Bn } from "./socialIcons-BFgc3qqJ.js";
15
- import { r as Vn, t as Hn } from "./templateSettingsFields-cjlP-jdw.js";
16
- import { n as Un, t as Wn } from "./sanitizeHtml-B3njfkSy.js";
17
- import { At as Gn, G as Kn, Mt as qn, Nt as Jn, Ot as Yn, St as Xn, Ut as Zn, V as Qn, Wt as $n, X as er, _t as tr, d as nr, f as rr, k as ir, mt as ar, nt as or, o as sr, y as cr, yt as lr } from "./icons-DHExFLlT.js";
18
- import { t as ur } from "./LoadingTrack-DUYcDHOV.js";
19
- import { t as dr } from "./languageName-DEEOhDWI.js";
20
- import { t as fr } from "./plural-CyxrJXL1.js";
21
- import { m as pr, w as mr, x as hr } from "./styleConstants-CgiNKdnc.js";
22
- import { t as gr } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
23
- import { t as _r } from "./readableTextColor-BfZUGnVj.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";
11
+ import { n as yt } from "./useLocalizedDisplay-oykFcYrW.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-D_qg9qqO.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-D9D02_y5.js";
15
+ import { r as Un, t as Wn } from "./templateSettingsFields-cjlP-jdw.js";
16
+ import { r as Gn, t as Kn } from "./sanitizeHtml-B7LC0gKK.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-Cl4oR2mf.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";
24
24
  // src/composables/useFocusTrap.ts
25
- var vr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
26
- function yr(t, n) {
27
- let r = ne(), i = null, a = null, o = null;
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) {
27
+ let r = te(), i = null, a = null, o = null;
28
28
  function s() {
29
- return t.value ? Array.from(t.value.querySelectorAll(vr)).filter((e) => e.offsetParent !== null) : [];
29
+ return t.value ? Array.from(t.value.querySelectorAll(br)).filter((e) => e.offsetParent !== null) : [];
30
30
  }
31
31
  function c(e) {
32
32
  if (e.key !== "Tab") return;
@@ -55,8 +55,8 @@ function yr(t, n) {
55
55
  });
56
56
  }
57
57
  // src/composables/useEmoji.ts
58
- function br() {
59
- let [e, t] = ie(!1), n = R([]), r = !1;
58
+ function Sr() {
59
+ let [e, t] = J(!1), n = R([]), r = !1;
60
60
  v(() => {
61
61
  r = !0;
62
62
  }), u(e, async (e) => {
@@ -80,7 +80,7 @@ function br() {
80
80
  };
81
81
  }
82
82
  // src/composables/useBlockRegistry.ts
83
- function xr() {
83
+ function Cr() {
84
84
  let e = R(/* @__PURE__ */ new Map());
85
85
  function t(t, n) {
86
86
  e.value.set(t, n), B(e);
@@ -114,7 +114,7 @@ function xr() {
114
114
  let t = a(e.customType);
115
115
  if (!t) return o("Block definition not found");
116
116
  try {
117
- return await pe(await import("./liquid.browser-rubac0VA.js")).parseAndRender(t.template, e.fieldValues);
117
+ return await fe(await import("./liquid.browser-rubac0VA.js")).parseAndRender(t.template, e.fieldValues);
118
118
  } catch (t) {
119
119
  return $.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
120
120
  }
@@ -133,7 +133,7 @@ function xr() {
133
133
  };
134
134
  }
135
135
  // src/composables/useFonts.ts
136
- var Sr = [
136
+ var wr = [
137
137
  {
138
138
  value: "Arial",
139
139
  label: "Arial"
@@ -162,19 +162,19 @@ var Sr = [
162
162
  value: "Courier New",
163
163
  label: "Courier New"
164
164
  }
165
- ], Cr = "Arial, sans-serif";
166
- function wr(e) {
167
- if (e === void 0 || e === !0) return [...Sr];
165
+ ], Tr = "Arial, sans-serif";
166
+ function Er(e) {
167
+ if (e === void 0 || e === !0) return [...wr];
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 = Sr.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: ${Sr.map((e) => e.value).join(", ")}.`));
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(", ")}.`));
173
173
  }
174
174
  return t;
175
175
  }
176
- function Tr(e) {
177
- let t = V(e?.customFonts ?? []), n = V(!1), r = wr(e?.builtIns), i = I(() => e?.defaultFallback ?? Cr), a = I(() => {
176
+ function Dr(e) {
177
+ let t = H(e?.customFonts ?? []), n = H(!1), r = Er(e?.builtIns), i = I(() => e?.defaultFallback ?? Tr), a = I(() => {
178
178
  let e = [...r], n = t.value.map((e) => ({
179
179
  value: e.name,
180
180
  label: e.name,
@@ -185,18 +185,18 @@ function Tr(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 ?? Cr.split(",")[0].trim();
188
+ let s = e?.defaultFont ?? Tr.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 Cr;
195
+ return Tr;
196
196
  }
197
197
  let l = I(() => c());
198
198
  function u(e) {
199
- return ze(e, {
199
+ return Ve(e, {
200
200
  customFonts: t.value,
201
201
  defaultFallback: i.value
202
202
  });
@@ -239,7 +239,7 @@ function Tr(e) {
239
239
  };
240
240
  }
241
241
  // src/composables/useThemeStyles.ts
242
- var Er = {
242
+ var Or = {
243
243
  bg: "--tpl-bg",
244
244
  bgElevated: "--tpl-bg-elevated",
245
245
  bgHover: "--tpl-bg-hover",
@@ -263,10 +263,10 @@ var Er = {
263
263
  dangerLight: "--tpl-danger-light",
264
264
  canvasBg: "--tpl-canvas-bg"
265
265
  };
266
- function Dr({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
266
+ function kr({ 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(Er)) {
269
+ if (a) for (let [e, t] of Object.entries(Or)) {
270
270
  let n = a[e];
271
271
  n && (r[t] = n);
272
272
  }
@@ -274,12 +274,12 @@ function Dr({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
274
274
  }) };
275
275
  }
276
276
  // src/utils/mergeTagNodeSpec.ts
277
- function Or(e, t, n) {
278
- return Ee(e, n) ? {
277
+ function Ar(e, t, n) {
278
+ return De(e, n) ? {
279
279
  type: "logicMergeTagNode",
280
280
  attrs: {
281
281
  value: e,
282
- keyword: le(e, n)
282
+ keyword: ce(e, n)
283
283
  }
284
284
  } : {
285
285
  type: "mergeTagNode",
@@ -290,32 +290,32 @@ function Or(e, t, n) {
290
290
  };
291
291
  }
292
292
  // src/utils/insertLogicTag.ts
293
- function kr(e) {
293
+ function jr(e) {
294
294
  return "before" in e && "after" in e;
295
295
  }
296
- function Ar(e, t, n) {
297
- if (!kr(t)) {
298
- e.chain().focus().insertContent(Or(t.value, t.label, n)).run();
296
+ function Mr(e, t, n) {
297
+ if (!jr(t)) {
298
+ e.chain().focus().insertContent(Ar(t.value, t.label, n)).run();
299
299
  return;
300
300
  }
301
- let r = Or(t.before, t.label, n), i = Or(t.after, t.label, n), { from: a, to: o } = e.state.selection;
301
+ let r = Ar(t.before, t.label, n), i = Ar(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 jr(e) {
305
+ function Nr(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 Mr(e) {
310
+ function Pr(e) {
311
311
  return e.extend({ addAttributes() {
312
312
  return {
313
313
  ...this.parent?.(),
314
314
  color: {
315
315
  default: null,
316
- parseHTML: (e) => jr(gt(e.style.color)),
316
+ parseHTML: (e) => Nr(_t(e.style.color)),
317
317
  renderHTML: (e) => {
318
- let t = jr(e.color);
318
+ let t = Nr(e.color);
319
319
  return t ? { style: `color: ${t}` } : {};
320
320
  }
321
321
  }
@@ -323,9 +323,9 @@ function Mr(e) {
323
323
  } });
324
324
  }
325
325
  // src/composables/useRichTextLinkDialog.ts
326
- function Nr(e, t = ue.liquid, n = () => !0) {
327
- let r = V(!1), i = V(""), a = V(""), o = V(null);
328
- yr(o, r);
326
+ function Fr(e, t = le.liquid, n = () => !0) {
327
+ let r = H(!1), i = H(""), a = H(""), o = H(null);
328
+ xr(o, r);
329
329
  function s() {
330
330
  if (!n()) return;
331
331
  let t = e.value?.getAttributes("link") ?? {};
@@ -336,7 +336,7 @@ function Nr(e, t = ue.liquid, n = () => !0) {
336
336
  if (i.value) {
337
337
  let t = d(i.value);
338
338
  if (t !== null) {
339
- let n = jr(a.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
339
+ let n = Nr(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
  }
@@ -354,7 +354,7 @@ function Nr(e, t = ue.liquid, n = () => !0) {
354
354
  if (t.startsWith("//")) return `https:${t}`;
355
355
  if (l.test(t)) return t;
356
356
  let n = Pe(t);
357
- return n ? rt.some((e) => e === n) ? t : null : u(t) ? t : `https://${t}`;
357
+ return n ? at.some((e) => e === n) ? t : null : u(t) ? t : `https://${t}`;
358
358
  }
359
359
  function f() {
360
360
  n() && (e.value?.chain().focus().extendMarkRange("link").unsetLink().run(), p());
@@ -378,131 +378,131 @@ function Nr(e, t = ue.liquid, n = () => !0) {
378
378
  };
379
379
  }
380
380
  // src/composables/useRichTextEditor.ts
381
- function Pr(t) {
382
- let n = g(hn, null), r = pt(), { mergeTags: i, canRequestMergeTag: a, isRequesting: o, requestMergeTag: s, syntax: c, autocomplete: l } = G(), { canInsertLogicTag: d, isRequesting: f, requestLogicTag: p } = bn(), h = g(an, null), _ = (S(h) ? h.value : h)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", v = Te(c), y = R(null), b = n?.content ? vt(n) : null, x = () => Fe(b?.settings.value ?? { locale: "en" });
383
- u(x, (e) => {
384
- let t = y.value?.view.dom;
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" });
383
+ u(w, (e) => {
384
+ let t = x.value?.view.dom;
385
385
  t && t.setAttribute("dir", e);
386
386
  });
387
- let { showLinkDialog: C, linkUrl: w, linkColor: T, linkDialogRef: E, openLinkDialog: D, insertLink: O, removeLink: ee, closeLinkDialog: k, handleLinkKeydown: A } = Nr(y, c, () => r.value);
388
- u(r, (e) => {
389
- if (y.value?.setEditable(e, !1), !e) {
390
- k();
391
- let e = y.value;
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);
388
+ u(a, (e) => {
389
+ if (x.value?.setEditable(e, !1), !e) {
390
+ j();
391
+ let e = x.value;
392
392
  e && e.view.dispatch(e.state.tr);
393
393
  }
394
394
  });
395
- let { start: j, stop: M } = re(() => y.value?.commands.focus("end"), 0, { immediate: !1 }), N = R(null), P = V(!0), F = V(null), I = !1, L = null;
396
- async function z() {
397
- F.value = null, P.value = !0;
395
+ let { start: N, stop: P } = ne(() => x.value?.commands.focus("end"), 0, { immediate: !1 }), F = R(null), L = H(!0), z = H(null), B = !1, V = null;
396
+ async function U() {
397
+ z.value = null, L.value = !0;
398
398
  try {
399
- let { TiptapEditor: e, EC: a, extensions: o } = await t.loadExtensions({
400
- mergeTags: i,
401
- syntax: c,
402
- triggerChar: v,
403
- autocompleteEnabled: l,
404
- suggestionEmptyText: _
399
+ let { TiptapEditor: e, EC: r, extensions: i } = await t.loadExtensions({
400
+ mergeTags: o,
401
+ syntax: d,
402
+ triggerChar: b,
403
+ autocompleteEnabled: f,
404
+ suggestionEmptyText: y
405
405
  });
406
- if (I) return;
407
- N.value = a;
406
+ if (B) return;
407
+ F.value = r;
408
408
  let s = /* @__PURE__ */ new Map();
409
- o.forEach((e, t) => s.set(e.name, t));
410
- let u = new e({
411
- extensions: o.filter((e, t) => s.get(e.name) === t),
409
+ i.forEach((e, t) => s.set(e.name, t));
410
+ let c = new e({
411
+ extensions: i.filter((e, t) => s.get(e.name) === t),
412
412
  content: t.blockContent(),
413
- editable: r.value,
414
- editorProps: { attributes: { dir: x() } },
413
+ editable: a.value,
414
+ editorProps: { attributes: { dir: w() } },
415
415
  onUpdate: ({ editor: e }) => {
416
- !I && r.value && n && (L = e.getHTML(), n.updateBlock(t.blockId(), { content: L }));
416
+ !B && a.value && n && (V = e.getHTML(), n.updateBlock(t.blockId(), { content: V }));
417
417
  }
418
418
  });
419
- if (I) {
420
- u.destroy();
419
+ if (B) {
420
+ c.destroy();
421
421
  return;
422
422
  }
423
- y.value = u, P.value = !1, j();
423
+ x.value = c, L.value = !1, N();
424
424
  } catch (e) {
425
- if (I) return;
426
- $.error(`[${t.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, e), F.value = e instanceof Error ? e.message : "Failed to load editor", P.value = !1;
425
+ if (B) return;
426
+ $.error(`[${t.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, e), z.value = e instanceof Error ? e.message : "Failed to load editor", L.value = !1;
427
427
  }
428
428
  }
429
- function B() {
430
- y.value?.destroy(), y.value = null, z();
429
+ function W() {
430
+ x.value?.destroy(), x.value = null, U();
431
431
  }
432
- z();
432
+ U();
433
433
  let te = u(() => t.blockContent(), (e) => {
434
- y.value && e !== L && (L = e, y.value.getHTML() !== e && y.value.commands.setContent(e, { emitUpdate: !1 }));
434
+ x.value && e !== V && (V = e, x.value.getHTML() !== e && x.value.commands.setContent(e, { emitUpdate: !1 }));
435
435
  });
436
- function H(e) {
437
- if (o.value || f.value) return;
436
+ function G(e) {
437
+ if (c.value || h.value) return;
438
438
  let n = e.composedPath(), r = n.find((e) => e instanceof HTMLElement);
439
439
  if (!r) return;
440
440
  t.onClickOutsideSideEffect?.(r);
441
441
  let i = n.some((e) => e instanceof HTMLElement && e.classList.contains("tpl-color-popover"));
442
442
  r.closest(".tpl-text-editor-wrapper") || r.closest(".tpl-text-toolbar") || r.closest(".tpl-link-dialog") || i || t.onDone();
443
443
  }
444
- e(document, "mousedown", H), m(() => {
445
- I = !0, te(), M(), y.value?.destroy();
444
+ e(document, "mousedown", G), m(() => {
445
+ B = !0, te(), P(), x.value?.destroy();
446
446
  });
447
- async function U() {
448
- if (!r.value) return;
449
- let e = await s();
450
- !I && r.value && (e && y.value ? y.value.chain().focus().insertMergeTag({
447
+ async function q() {
448
+ if (!a.value) return;
449
+ let e = await l();
450
+ !B && a.value && (e && x.value ? x.value.chain().focus().insertMergeTag({
451
451
  label: e.label,
452
452
  value: e.value
453
- }).run() : y.value?.commands.focus());
453
+ }).run() : x.value?.commands.focus());
454
454
  }
455
- async function ne() {
456
- if (!r.value) return;
457
- let e = await p();
458
- !I && r.value && (e && y.value ? Ar(y.value, e, c) : y.value?.commands.focus());
455
+ async function J() {
456
+ if (!a.value) return;
457
+ let e = await _();
458
+ !B && a.value && (e && x.value ? Mr(x.value, e, d) : x.value?.commands.focus());
459
459
  }
460
460
  return {
461
- editor: y,
462
- EditorContent: N,
463
- isLoading: P,
464
- isEditable: r,
465
- initError: F,
466
- retry: B,
467
- showLinkDialog: C,
468
- linkUrl: w,
469
- linkColor: T,
470
- linkDialogRef: E,
471
- mergeTags: i,
472
- canRequestMergeTag: a,
473
- isRequestingMergeTag: o,
474
- syntax: c,
475
- canInsertLogicTag: d,
476
- isRequestingLogicTag: f,
477
- openLinkDialog: D,
478
- insertLink: O,
479
- removeLink: ee,
480
- closeLinkDialog: k,
481
- handleLinkKeydown: A,
482
- handleAddMergeTag: U,
483
- handleAddLogicTag: ne
461
+ editor: x,
462
+ EditorContent: F,
463
+ isLoading: L,
464
+ isEditable: a,
465
+ initError: z,
466
+ retry: W,
467
+ showLinkDialog: T,
468
+ linkUrl: E,
469
+ linkColor: D,
470
+ linkDialogRef: O,
471
+ mergeTags: o,
472
+ canRequestMergeTag: s,
473
+ isRequestingMergeTag: c,
474
+ syntax: d,
475
+ canInsertLogicTag: p,
476
+ isRequestingLogicTag: h,
477
+ openLinkDialog: ee,
478
+ insertLink: k,
479
+ removeLink: A,
480
+ closeLinkDialog: j,
481
+ handleLinkKeydown: M,
482
+ handleAddMergeTag: q,
483
+ handleAddLogicTag: J
484
484
  };
485
485
  }
486
486
  // src/utils/activeEditorTracker.ts
487
- var Fr = /* @__PURE__ */ new Set(), Ir = 0, Lr = 0;
488
- function Rr() {
489
- let e = ++Lr;
490
- return Fr.add(e), Ir === 0 && (Ir = e), {
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), {
491
491
  id: e,
492
- isActive: () => Fr.size <= 1 || Ir === e,
492
+ isActive: () => Lr.size <= 1 || Rr === e,
493
493
  claim: () => {
494
- Ir = e;
494
+ Rr = e;
495
495
  },
496
496
  dispose: () => {
497
- if (Fr.delete(e), Ir === e) {
498
- let e = Array.from(Fr);
499
- Ir = e[e.length - 1] ?? 0;
497
+ if (Lr.delete(e), Rr === e) {
498
+ let e = Array.from(Lr);
499
+ Rr = e[e.length - 1] ?? 0;
500
500
  }
501
501
  }
502
502
  };
503
503
  }
504
504
  // src/utils/resolveLintOptions.ts
505
- function zr(e) {
505
+ function Vr(e) {
506
506
  let t = e.contentLocale ?? e.content?.settings.locale;
507
507
  return {
508
508
  ...e.lint,
@@ -511,9 +511,9 @@ function zr(e) {
511
511
  };
512
512
  }
513
513
  // src/composables/usePreviewResolution.ts
514
- var Br = 500;
515
- function Vr(e) {
516
- let t = typeof e.resolvePreview == "function", n = V(null), r = V(!1), i = V(!1), a = 0, o = null;
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
517
  function s() {
518
518
  o !== null && (clearTimeout(o), o = null);
519
519
  }
@@ -523,13 +523,13 @@ function Vr(e) {
523
523
  let o = ++a;
524
524
  r.value = !0;
525
525
  let s = {
526
- content: Ze(e.getContent()),
526
+ content: He(e.getContent()),
527
527
  ...e.getRecipient?.() === void 0 ? {} : { recipient: e.getRecipient() }
528
528
  };
529
529
  try {
530
530
  let e = await t(s);
531
531
  if (o !== a) return;
532
- if (!tt(e)) {
532
+ if (!rt(e)) {
533
533
  i.value = !0;
534
534
  return;
535
535
  }
@@ -544,7 +544,7 @@ function Vr(e) {
544
544
  function l() {
545
545
  t && (s(), n.value === null ? c() : o = setTimeout(() => {
546
546
  o = null, c();
547
- }, Br));
547
+ }, Hr));
548
548
  }
549
549
  return u(() => [
550
550
  e.isActive(),
@@ -567,8 +567,8 @@ function Vr(e) {
567
567
  };
568
568
  }
569
569
  // src/composables/useMergeTagPicker.ts
570
- function Hr() {
571
- let e = V(!1), t = V([]), n = V(null), r = null;
570
+ function Wr() {
571
+ let e = H(!1), t = H([]), n = H(null), r = null;
572
572
  function i(i, a) {
573
573
  if (r) {
574
574
  let e = r;
@@ -597,8 +597,8 @@ function Hr() {
597
597
  };
598
598
  }
599
599
  // src/composables/useLogicTagPicker.ts
600
- function Ur() {
601
- let e = V(!1), t = V([]), n = V([]), r = null;
600
+ function Gr() {
601
+ let e = H(!1), t = H([]), n = H([]), r = null;
602
602
  function i(i, a) {
603
603
  if (r) {
604
604
  let e = r;
@@ -627,23 +627,23 @@ function Ur() {
627
627
  };
628
628
  }
629
629
  // src/composables/useTemplateLint.ts
630
- function Wr(e) {
630
+ function Kr(e) {
631
631
  return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 && e.deliverability === !1 && e.compatibility === !1 && e.localization === !1 : !1;
632
632
  }
633
- var Gr = !1;
634
- function Kr(e) {
635
- let t = V([]), n = V(0), r = V(-1), i = u(e.content, () => {
633
+ var qr = !1;
634
+ function Jr(e) {
635
+ let t = H([]), n = H(0), r = H(-1), i = u(e.content, () => {
636
636
  n.value++;
637
- }, { deep: !0 }), a = V(!1), o = V(!1), s = R(null), c = Wr(e.options), l = null, d = !1;
637
+ }, { deep: !0 }), a = H(!1), o = H(!1), s = R(null), c = Kr(e.options), l = null, d = !1;
638
638
  c || f();
639
639
  async function f() {
640
640
  try {
641
- let t = await import("./src-C9JWWxAk.js");
641
+ let t = await import("./src-BCrSqaj8.js");
642
642
  if (d) return;
643
- s.value = { lintTemplate: t.lintTemplate }, a.value = !0, p(), l = ae(n, p, { debounce: e.debounce ?? 500 });
643
+ s.value = { lintTemplate: t.lintTemplate }, a.value = !0, p(), l = re(n, p, { debounce: e.debounce ?? 500 });
644
644
  } catch {
645
645
  if (d) return;
646
- o.value = !0, Gr || (Gr = !0, $.info("@templatical/quality isn't installed, so the Issues panel and its lint badges are off. Add @templatical/quality to your dependencies to turn them on."));
646
+ 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."));
647
647
  }
648
648
  }
649
649
  function p() {
@@ -682,8 +682,8 @@ function Kr(e) {
682
682
  };
683
683
  }
684
684
  // src/composables/useKeyboardReorder.ts
685
- function qr(e, t, n = []) {
686
- let r = V(null), i = V(""), a = null;
685
+ function Yr(e, t, n = []) {
686
+ let r = H(null), i = H(""), a = null;
687
687
  function o(t) {
688
688
  let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
689
689
  if (r !== -1) return {
@@ -709,7 +709,7 @@ function qr(e, t, n = []) {
709
709
  let i = o(r);
710
710
  if (!i) return "";
711
711
  let a = (i.sectionId ? c(i.sectionId, i.columnIndex ?? 0) : e.content.value.blocks)?.[i.index];
712
- return a ? zn(a, t.t, n) : "";
712
+ return a ? Vn(a, t.t, n) : "";
713
713
  }
714
714
  function c(t, n) {
715
715
  return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
@@ -777,14 +777,14 @@ function qr(e, t, n = []) {
777
777
  };
778
778
  }
779
779
  // src/composables/useUiTheme.ts
780
- function Jr(e) {
780
+ function Xr(e) {
781
781
  let n = t("(prefers-color-scheme: dark)");
782
782
  return { resolvedTheme: I(() => e.value === "auto" ? n.value ? "dark" : "light" : e.value) };
783
783
  }
784
784
  // src/composables/useCustomBlockStylesheets.ts
785
- function Yr(e, t) {
785
+ function Zr(e, t) {
786
786
  return I(() => {
787
- let n = Xr(e.value.blocks);
787
+ let n = Qr(e.value.blocks);
788
788
  if (n.size === 0) return [];
789
789
  let r = /* @__PURE__ */ new Set(), i = [];
790
790
  for (let e of n) {
@@ -796,31 +796,31 @@ function Yr(e, t) {
796
796
  return i;
797
797
  });
798
798
  }
799
- function Xr(e) {
799
+ function Qr(e) {
800
800
  let t = /* @__PURE__ */ new Set();
801
- return Zr(e, t), t;
801
+ return $r(e, t), t;
802
802
  }
803
- function Zr(e, t) {
803
+ function $r(e, t) {
804
804
  for (let n of e) if (ot(n)) t.add(n.customType);
805
805
  else if (n.type === "section") {
806
806
  let e = n.children;
807
807
  if (!e) continue;
808
- for (let n of e) Zr(n, t);
809
- } else He(n) && Zr(n.children, t);
808
+ for (let n of e) $r(n, t);
809
+ } else Ge(n) && $r(n.children, t);
810
810
  }
811
811
  // src/utils/registerBuiltInBlocks.ts
812
- var Qr = [
812
+ var ei = [
813
813
  {
814
814
  type: "section",
815
815
  createBlock: he
816
816
  },
817
817
  {
818
818
  type: "title",
819
- createBlock: Q
819
+ createBlock: me
820
820
  },
821
821
  {
822
822
  type: "paragraph",
823
- createBlock: X
823
+ createBlock: oe
824
824
  },
825
825
  {
826
826
  type: "image",
@@ -832,7 +832,7 @@ var Qr = [
832
832
  },
833
833
  {
834
834
  type: "divider",
835
- createBlock: J
835
+ createBlock: Z
836
836
  },
837
837
  {
838
838
  type: "video",
@@ -840,19 +840,19 @@ var Qr = [
840
840
  },
841
841
  {
842
842
  type: "social",
843
- createBlock: se
843
+ createBlock: Y
844
844
  },
845
845
  {
846
846
  type: "menu",
847
- createBlock: ce
847
+ createBlock: se
848
848
  },
849
849
  {
850
850
  type: "table",
851
- createBlock: me
851
+ createBlock: pe
852
852
  },
853
853
  {
854
854
  type: "spacer",
855
- createBlock: Ve
855
+ createBlock: We
856
856
  },
857
857
  {
858
858
  type: "html",
@@ -860,11 +860,11 @@ var Qr = [
860
860
  },
861
861
  {
862
862
  type: "countdown",
863
- createBlock: ct
863
+ createBlock: lt
864
864
  }
865
865
  ];
866
- function $r(e, t) {
867
- for (let n of Qr) {
866
+ function ti(e, t) {
867
+ for (let n of ei) {
868
868
  let r = t[n.type];
869
869
  r && e.registerBuiltIn(n.type, {
870
870
  component: r,
@@ -873,31 +873,31 @@ function $r(e, t) {
873
873
  }
874
874
  }
875
875
  // src/utils/resolveHtmlBlockPreview.ts
876
- function ei(e) {
876
+ function ni(e) {
877
877
  return typeof e == "boolean" ? e : e?.enabled ?? !1;
878
878
  }
879
879
  // src/utils/collectOffPaletteDefaults.ts
880
- function ti(e) {
880
+ function ri(e) {
881
881
  return typeof e == "object" && !!e && !Array.isArray(e);
882
882
  }
883
- function ni(e, t, n) {
884
- let r = new Set(e.map((e) => ft(e))), i = [], a = (e, t) => {
885
- for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(ft(o)) && i.push(`${t}.${n}: ${o}`) : ti(o) && a(o, `${t}.${n}`);
883
+ function ii(e, t, n) {
884
+ 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}`);
886
886
  }, o = t;
887
- for (let [e, t] of Object.entries(Ye)) {
887
+ for (let [e, t] of Object.entries(Ze)) {
888
888
  let n = o?.[e];
889
889
  a({
890
890
  ...t,
891
- ...ti(n) ? n : {}
891
+ ...ri(n) ? n : {}
892
892
  }, e);
893
893
  }
894
894
  return a({
895
- ...Ge,
895
+ ...Je,
896
896
  ...n ?? {}
897
897
  }, "template"), i;
898
898
  }
899
899
  // src/utils/localizedBlockDefaults.ts
900
- function ri(e) {
900
+ function ai(e) {
901
901
  return {
902
902
  title: { content: `<p>${e.blockDefaults.title}</p>` },
903
903
  paragraph: { content: `<p>${e.blockDefaults.paragraph}</p>` },
@@ -905,8 +905,9 @@ function ri(e) {
905
905
  };
906
906
  }
907
907
  // src/i18n/index.ts
908
- var ii = /* #__PURE__ */ Object.assign({
908
+ var oi = /* #__PURE__ */ Object.assign({
909
909
  "./locales/ca.ts": () => import("./ca-BJn8lcJx.js"),
910
+ "./locales/da.ts": () => import("./da-qQzj0QGy.js"),
910
911
  "./locales/de.ts": () => import("./de-BLFp3nWx.js"),
911
912
  "./locales/en.ts": () => import("./en-DGGQJGbm.js"),
912
913
  "./locales/es.ts": () => import("./es-DTY9qgLv.js"),
@@ -914,53 +915,53 @@ var ii = /* #__PURE__ */ Object.assign({
914
915
  "./locales/ja.ts": () => import("./ja-6uOXkh4v.js"),
915
916
  "./locales/nl.ts": () => import("./nl-DCxuxwNq.js"),
916
917
  "./locales/pt-BR.ts": () => import("./pt-BR-CBkcrebr.js")
917
- }), ai = /* #__PURE__ */ Object.assign({
918
+ }), si = /* #__PURE__ */ Object.assign({
918
919
  "./locales/cloud/de.ts": () => import("./de-6M4JoHoD.js"),
919
920
  "./locales/cloud/en.ts": () => import("./en-FzUuJ8HW.js"),
920
921
  "./locales/cloud/pt-BR.ts": () => import("./pt-BR-Bp92Fc6J.js")
921
922
  });
922
- function oi(e) {
923
+ function ci(e) {
923
924
  return Object.keys(e).map((e) => e.match(/\/([^/]+)\.ts$/)?.[1]).filter((e) => !!e);
924
925
  }
925
- var si = oi(ii), ci = oi(ai);
926
- function li(e) {
926
+ var li = ci(oi), ui = ci(si);
927
+ function di(e) {
927
928
  return e.trim().replace(/_/g, "-").toLowerCase();
928
929
  }
929
- function ui(e, t) {
930
- let n = li(e);
931
- return t.find((e) => li(e) === n);
930
+ function fi(e, t) {
931
+ let n = di(e);
932
+ return t.find((e) => di(e) === n);
932
933
  }
933
- function di(e) {
934
- return li(e).split("-")[0];
934
+ function pi(e) {
935
+ return di(e).split("-")[0];
935
936
  }
936
- function fi(e, t) {
937
- return ui(e, t) ?? ui(di(e), t);
937
+ function mi(e, t) {
938
+ return fi(e, t) ?? fi(pi(e), t);
938
939
  }
939
- function pi(e, t) {
940
- return fi(e, t) ?? "en";
940
+ function hi(e, t) {
941
+ return mi(e, t) ?? "en";
941
942
  }
942
- async function mi(e) {
943
- let t = ii[`./locales/${pi(e, si)}.ts`];
943
+ async function gi(e) {
944
+ let t = oi[`./locales/${hi(e, li)}.ts`];
944
945
  return (await t()).default;
945
946
  }
946
- async function hi(e) {
947
- let t = ai[`./locales/cloud/${pi(e, ci)}.ts`];
947
+ async function _i(e) {
948
+ let t = si[`./locales/cloud/${hi(e, ui)}.ts`];
948
949
  return (await t()).default;
949
950
  }
950
- function gi(e) {
951
- return fi(e, si) !== void 0;
951
+ function vi(e) {
952
+ return mi(e, li) !== void 0;
952
953
  }
953
- function _i(e) {
954
- return fi(e, ci) !== void 0;
954
+ function yi(e) {
955
+ return mi(e, ui) !== void 0;
955
956
  }
956
- function vi() {
957
- return [...si];
957
+ function bi() {
958
+ return [...li];
958
959
  }
959
- function yi() {
960
- return [...ci];
960
+ function xi() {
961
+ return [...ui];
961
962
  }
962
963
  // src/i18n/contentDefaults.ts
963
- var bi = {
964
+ var Si = {
964
965
  en: {
965
966
  video: "Video",
966
967
  days: "Days",
@@ -1024,17 +1025,25 @@ var bi = {
1024
1025
  minutes: "分",
1025
1026
  seconds: "秒",
1026
1027
  expired: "このオファーは終了しました"
1027
- }
1028
- }, xi = new Map(Object.keys(bi).map((e) => [e.toLowerCase(), e]));
1029
- function Si(e) {
1030
- if (!e) return bi.en;
1031
- let t = e.trim().replace(/_/g, "-").toLowerCase(), n = xi.get(t);
1032
- if (n) return bi[n];
1033
- let r = xi.get(di(t));
1034
- return r ? bi[r] : bi.en;
1028
+ },
1029
+ da: {
1030
+ video: "Video",
1031
+ days: "Dage",
1032
+ hours: "Timer",
1033
+ minutes: "Minutter",
1034
+ seconds: "Sekunder",
1035
+ expired: "Dette tilbud er udløbet"
1036
+ }
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;
1035
1044
  }
1036
- function Ci(e) {
1037
- let t = Si(e);
1045
+ function Ti(e) {
1046
+ let t = wi(e);
1038
1047
  return {
1039
1048
  video: { alt: t.video },
1040
1049
  countdown: {
@@ -1047,9 +1056,9 @@ function Ci(e) {
1047
1056
  };
1048
1057
  }
1049
1058
  // src/utils/collectColorFieldIssues.ts
1050
- function wi(e, t) {
1059
+ function Ei(e, t) {
1051
1060
  let n = [], r = (r, i) => {
1052
- let a = In(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
1061
+ let a = Rn(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
1053
1062
  if (a.invalidPresets.length > 0 && n.push({
1054
1063
  id: s("invalid-presets"),
1055
1064
  message: `${o}: presets skipped invalid entries: ${a.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).` + (a.presetsInherited ? " No valid entries are left, so the field inherits colors.presets." : "")
@@ -1060,8 +1069,8 @@ function wi(e, t) {
1060
1069
  id: s("allow-custom-ignored"),
1061
1070
  message: `${o}: allowCustom: true is ignored because colors.allowCustom is false — a field can narrow the editor-wide palette, never unlock it.`
1062
1071
  }), !a.allowCustom && a.presets.length > 0) {
1063
- let e = r.default ?? "", t = new Set(a.presets.map((e) => ft(e)));
1064
- e !== "" && !t.has(ft(e)) && n.push({
1072
+ let e = r.default ?? "", t = new Set(a.presets.map((e) => pt(e)));
1073
+ e !== "" && !t.has(pt(e)) && n.push({
1065
1074
  id: s("off-palette-default"),
1066
1075
  message: `${o} locks custom colours, but its default ${e} falls outside the field's presets: ${a.presets.join(", ")}. New blocks start on a colour the picker can't reselect — set the default from the same palette.`
1067
1076
  });
@@ -1072,7 +1081,7 @@ function wi(e, t) {
1072
1081
  return n;
1073
1082
  }
1074
1083
  // src/utils/keyboardShortcuts.ts
1075
- function Ti(e) {
1084
+ function Di(e) {
1076
1085
  for (let t of e.composedPath()) {
1077
1086
  if (!(t instanceof HTMLElement)) continue;
1078
1087
  if (t.isContentEditable) return !0;
@@ -1081,14 +1090,14 @@ function Ti(e) {
1081
1090
  }
1082
1091
  return !1;
1083
1092
  }
1084
- function Ei(e, t) {
1093
+ function Oi(e, t) {
1085
1094
  let n = e.metaKey || e.ctrlKey;
1086
1095
  if (n && e.key.toLowerCase() === "s") e.preventDefault(), t.onSave?.();
1087
1096
  else if (n && e.key.toLowerCase() === "z") {
1088
- if (Ti(e)) return;
1097
+ if (Di(e)) return;
1089
1098
  e.preventDefault(), e.shiftKey ? t.history.redo() : t.history.undo();
1090
1099
  } else {
1091
- if (t.isPicking?.() && !Ti(e)) {
1100
+ if (t.isPicking?.() && !Di(e)) {
1092
1101
  if (e.key === "Escape") {
1093
1102
  e.preventDefault(), t.onCancelPick?.();
1094
1103
  return;
@@ -1102,139 +1111,139 @@ function Ei(e, t) {
1102
1111
  return;
1103
1112
  }
1104
1113
  }
1105
- e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Ti(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
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()));
1106
1115
  }
1107
1116
  }
1108
1117
  // src/utils/blockComponentResolver.ts
1109
- function Di(e, t) {
1118
+ function ki(e, t) {
1110
1119
  let n = { fontFamily: t(e.fontFamily) };
1111
1120
  return e.textColor && (n.color = e.textColor), e.linkColor && (n["--tpl-doc-link-color"] = e.linkColor), e.linkUnderline && (n["--tpl-doc-link-underline"] = "underline"), n;
1112
1121
  }
1113
- function Oi(e, t, n) {
1122
+ function Ai(e, t, n) {
1114
1123
  if (t) {
1115
1124
  let n = t.getComponent(e);
1116
1125
  if (n) return n;
1117
1126
  }
1118
1127
  return n[e.type] ?? null;
1119
1128
  }
1120
- var ki = "--tpl-block-bg-layer", Ai = "--tpl-email-frame-width", ji = "tpl-has-bg-image";
1121
- function Mi(e, t) {
1129
+ var ji = "--tpl-block-bg-layer", Mi = "--tpl-email-frame-width", Ni = "tpl-has-bg-image";
1130
+ function Pi(e, t) {
1122
1131
  if (t === null) return {};
1123
- let n = Le(e);
1132
+ let n = Re(e);
1124
1133
  if (n === null) return {};
1125
- let r = t?.trim(), i = r ? We(r) : n.url;
1134
+ let r = t?.trim(), i = r ? ze(r) : n.url;
1126
1135
  return {
1127
1136
  backgroundImage: `url("${i}")`,
1128
1137
  backgroundSize: n.size,
1129
1138
  backgroundPosition: n.position,
1130
1139
  backgroundRepeat: n.repeat,
1131
- [ki]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
1140
+ [ji]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
1132
1141
  };
1133
1142
  }
1134
- function Ni(e) {
1135
- return e && ki in e ? ji : void 0;
1143
+ function Fi(e) {
1144
+ return e && ji in e ? Ni : void 0;
1136
1145
  }
1137
- var Pi = {
1146
+ var Ii = {
1138
1147
  top: "flex-start",
1139
1148
  middle: "center",
1140
1149
  bottom: "flex-end"
1141
1150
  };
1142
- function Fi(e, t) {
1143
- let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${Ii(t, e.aspectRatio)}px` } : { aspectRatio: `1 / ${e.aspectRatio ?? 1}` };
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}` };
1144
1153
  return {
1145
1154
  display: "flex",
1146
1155
  flexDirection: "column",
1147
- justifyContent: Pi[e.verticalAlign],
1156
+ justifyContent: Ii[e.verticalAlign],
1148
1157
  boxSizing: "border-box",
1149
1158
  ...n
1150
1159
  };
1151
1160
  }
1152
- function Ii(e, t) {
1161
+ function Ri(e, t) {
1153
1162
  return Math.max(1, Math.round(Math.max(1, Math.round(e)) * t));
1154
1163
  }
1155
- function Li(e, t = {}) {
1164
+ function zi(e, t = {}) {
1156
1165
  if (e.type === "wrapper") return {};
1157
1166
  let { padding: n, backgroundColor: r } = e.styles, i = {
1158
1167
  padding: `${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`,
1159
1168
  backgroundColor: r || "transparent"
1160
1169
  };
1161
- if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? dt.paragraphGap : dt.paragraphGap}px`), e.type === "section") {
1162
- let n = Y(e.borderRadius);
1170
+ if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? ut.paragraphGap : ut.paragraphGap}px`), e.type === "section") {
1171
+ let n = Ce(e.borderRadius);
1163
1172
  n !== null && (i.borderRadius = n);
1164
- let r = it(e);
1165
- r?.applied && e.backgroundImage ? (Object.assign(i, Fi(r, t.heroBoxWidth)), Object.assign(i, Mi({
1173
+ let r = Fe(e);
1174
+ r?.applied && e.backgroundImage ? (Object.assign(i, Li(r, t.heroBoxWidth)), Object.assign(i, Pi({
1166
1175
  ...e.backgroundImage,
1167
1176
  size: "cover",
1168
1177
  repeat: !1
1169
- }, t.backgroundImageUrl))) : (Object.assign(i, zi(e.border)), Object.assign(i, Mi(e.backgroundImage, t.backgroundImageUrl)));
1178
+ }, t.backgroundImageUrl))) : (Object.assign(i, Vi(e.border)), Object.assign(i, Pi(e.backgroundImage, t.backgroundImageUrl)));
1170
1179
  }
1171
1180
  return i;
1172
1181
  }
1173
- function Ri(e, t, n, r) {
1174
- return e.type === "section" ? Li(e, {
1175
- backgroundImageUrl: Sn(t, e.backgroundImage, n),
1182
+ function Bi(e, t, n, r) {
1183
+ return e.type === "section" ? zi(e, {
1184
+ backgroundImageUrl: wn(t, e.backgroundImage, n),
1176
1185
  heroBoxWidth: r
1177
- }) : Li(e);
1186
+ }) : zi(e);
1178
1187
  }
1179
- function zi(e) {
1188
+ function Vi(e) {
1180
1189
  let t = {};
1181
- for (let [n, r] of Object.entries(xe(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
1190
+ for (let [n, r] of Object.entries(ct(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
1182
1191
  return t;
1183
1192
  }
1184
- var Bi = {
1193
+ var Hi = {
1185
1194
  width: "100cqw",
1186
1195
  maxWidth: "none",
1187
1196
  marginInline: "calc(50% - 50cqw)",
1188
1197
  boxSizing: "border-box"
1189
1198
  };
1190
- function Vi(e) {
1199
+ function Ui(e) {
1191
1200
  return `${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`;
1192
1201
  }
1193
- function Hi(e) {
1202
+ function Wi(e) {
1194
1203
  let t = {
1195
1204
  width: "var(--tpl-email-frame-width)",
1196
1205
  maxWidth: "100%",
1197
1206
  marginInline: "auto",
1198
1207
  boxSizing: "border-box"
1199
1208
  };
1200
- return e && (t.padding = Vi(e)), t;
1209
+ return e && (t.padding = Ui(e)), t;
1201
1210
  }
1202
- function Ui(e, t = {}) {
1211
+ function Gi(e, t = {}) {
1203
1212
  if (e.type !== "section" || !e.wrapper) return null;
1204
1213
  let n = e.wrapper, r = {};
1205
- if (n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && !n.fullWidth && (r.padding = Vi(n.padding)), !n.fullWidth) {
1206
- let e = Y(n.borderRadius);
1214
+ if (n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && !n.fullWidth && (r.padding = Ui(n.padding)), !n.fullWidth) {
1215
+ let e = Ce(n.borderRadius);
1207
1216
  e !== null && (r.borderRadius = e);
1208
1217
  }
1209
- return Object.assign(r, Mi(n.backgroundImage, t.backgroundImageUrl)), n.fullWidth && Object.assign(r, Bi), r;
1218
+ return Object.assign(r, Pi(n.backgroundImage, t.backgroundImageUrl)), n.fullWidth && Object.assign(r, Hi), r;
1210
1219
  }
1211
- function Wi(e, t = {}) {
1220
+ function Ki(e, t = {}) {
1212
1221
  if (e.type !== "wrapper") return null;
1213
1222
  let n = {};
1214
- return e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding && !e.fullWidth && (n.padding = Vi(e.styles.padding)), !e.fullWidth && e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, Mi(e.backgroundImage, t.backgroundImageUrl)), e.fullWidth && Object.assign(n, Bi), 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;
1215
1224
  }
1216
1225
  // src/utils/mergeTagLabelSegments.ts
1217
- function Gi(e, t, n, r = !1) {
1226
+ function qi(e, t, n, r = !1) {
1218
1227
  if (!e) return [];
1219
1228
  let i = [], a = 0;
1220
- for (let o of Ke(e, n)) {
1229
+ for (let o of Ye(e, n)) {
1221
1230
  o.index > a && i.push({
1222
1231
  type: "text",
1223
1232
  value: e.slice(a, o.index)
1224
1233
  });
1225
1234
  let s = o.value;
1226
1235
  if (_e(s, n)) {
1227
- let e = r ? Xe(s, t) : void 0;
1236
+ let e = r ? Qe(s, t) : void 0;
1228
1237
  i.push(e === void 0 ? {
1229
1238
  type: "tag",
1230
- value: Z(s, t)
1239
+ value: de(s, t)
1231
1240
  } : {
1232
1241
  type: "text",
1233
1242
  value: e
1234
1243
  });
1235
- } else Ee(s, n) ? i.push({
1244
+ } else De(s, n) ? i.push({
1236
1245
  type: "tag",
1237
- value: le(s, n)
1246
+ value: ce(s, n)
1238
1247
  }) : i.push({
1239
1248
  type: "text",
1240
1249
  value: s
@@ -1247,27 +1256,27 @@ function Gi(e, t, n, r = !1) {
1247
1256
  }), i;
1248
1257
  }
1249
1258
  // src/components/MergeTagPreviewText.vue
1250
- var Ki = o({
1259
+ var Ji = o({
1251
1260
  name: "MergeTagPreviewText",
1252
1261
  props: { text: {
1253
1262
  type: String,
1254
1263
  required: !0
1255
1264
  } },
1256
1265
  setup(e) {
1257
- let t = g(Pt, zt), n = g(xt, ue.liquid), r = g(on, null), i = I(() => Gi(e.text, t.value, n, r?.value ?? !1));
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));
1258
1267
  return () => i.value.map((e, t) => e.type === "tag" ? s("span", {
1259
1268
  key: t,
1260
1269
  class: "tpl-merge-tag-label"
1261
1270
  }, e.value) : e.value);
1262
1271
  }
1263
- }), qi = ["href"], Ji = /* @__PURE__ */ o({
1272
+ }), Yi = ["href"], Xi = /* @__PURE__ */ o({
1264
1273
  __name: "ButtonBlock",
1265
1274
  props: {
1266
1275
  block: {},
1267
1276
  viewport: {}
1268
1277
  },
1269
1278
  setup(e) {
1270
- let t = e, n = fn(Kt, "ButtonBlock");
1279
+ let t = e, n = Yt(qt, "ButtonBlock");
1271
1280
  function r(e) {
1272
1281
  return e === "regular" ? "400" : e === "medium" ? "500" : e === "bold" ? "700" : "bold";
1273
1282
  }
@@ -1278,32 +1287,33 @@ var Ki = o({
1278
1287
  backgroundColor: t.block.backgroundColor,
1279
1288
  color: t.block.textColor,
1280
1289
  fontSize: `${t.block.fontSize}px`,
1290
+ lineHeight: String(ft),
1281
1291
  fontWeight: r(t.block.fontWeight),
1282
1292
  textDecoration: "none",
1283
- borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : Y(t.block.borderRadius) ?? "0px",
1293
+ borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : Ce(t.block.borderRadius) ?? "0px",
1284
1294
  textAlign: "center"
1285
1295
  };
1286
- return Object.assign(e, zi(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;
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;
1287
1297
  }), a = I(() => ({ textAlign: t.block.align ?? "center" }));
1288
1298
  return (t, n) => (c(), w("div", { style: L(a.value) }, [N("a", {
1289
1299
  href: e.block.url || "#",
1290
1300
  style: L(i.value),
1291
1301
  class: "tpl:cursor-default",
1292
1302
  onClick: n[0] ||= M(() => {}, ["prevent"])
1293
- }, [U(Ki, { text: e.block.text }, null, 8, ["text"])], 12, qi)], 4));
1303
+ }, [W(Ji, { text: e.block.text }, null, 8, ["text"])], 12, Yi)], 4));
1294
1304
  }
1295
- }), Yi = ["innerHTML"], Xi = [
1305
+ }), Zi = ["innerHTML"], Qi = [
1296
1306
  "src",
1297
1307
  "width",
1298
1308
  "height"
1299
- ], Zi = /* @__PURE__ */ o({
1309
+ ], $i = /* @__PURE__ */ o({
1300
1310
  __name: "CustomBlockIcon",
1301
1311
  props: {
1302
1312
  icon: {},
1303
1313
  size: {}
1304
1314
  },
1305
1315
  setup(e) {
1306
- 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 ? Un(t.icon ?? "") : "");
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 ?? "") : "");
1307
1317
  return (t, o) => r.value ? (c(), w("span", {
1308
1318
  key: 0,
1309
1319
  class: "tpl:inline-flex tpl:items-center tpl:justify-center",
@@ -1312,33 +1322,33 @@ var Ki = o({
1312
1322
  height: `${n.value}px`
1313
1323
  }),
1314
1324
  innerHTML: a.value
1315
- }, null, 12, Yi)) : i.value ? (c(), w("img", {
1325
+ }, null, 12, Zi)) : i.value ? (c(), w("img", {
1316
1326
  key: 1,
1317
1327
  src: e.icon,
1318
1328
  width: n.value,
1319
1329
  height: n.value,
1320
1330
  class: "tpl:inline-block",
1321
1331
  alt: ""
1322
- }, null, 8, Xi)) : (c(), A(D(Zn), {
1332
+ }, null, 8, Qi)) : (c(), A(D($n), {
1323
1333
  key: 2,
1324
1334
  size: n.value,
1325
1335
  "stroke-width": 1.5
1326
1336
  }, null, 8, ["size"]));
1327
1337
  }
1328
- }), Qi = { class: "tpl:w-full" }, $i = {
1338
+ }), ea = { class: "tpl:w-full" }, ta = {
1329
1339
  key: 0,
1330
1340
  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)]"
1331
- }, ea = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ta = {
1341
+ }, na = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ra = {
1332
1342
  key: 1,
1333
1343
  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)]"
1334
- }, na = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ra = {
1344
+ }, ia = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, aa = {
1335
1345
  key: 2,
1336
1346
  class: "tpl:relative"
1337
- }, ia = ["innerHTML"], aa = {
1347
+ }, oa = ["innerHTML"], sa = {
1338
1348
  key: 0,
1339
1349
  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]",
1340
1350
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
1341
- }, oa = /* @__PURE__ */ o({
1351
+ }, ca = /* @__PURE__ */ o({
1342
1352
  __name: "CustomBlock",
1343
1353
  props: {
1344
1354
  block: {},
@@ -1346,7 +1356,7 @@ var Ki = o({
1346
1356
  },
1347
1357
  emits: ["fetchData"],
1348
1358
  setup(e, { emit: t }) {
1349
- let n = e, r = t, { t: i } = W(), a = g(nn, null), o = V(""), s = I(() => Wn(o.value)), l = V(!1), d = I(() => a?.getDefinition(n.block.customType)), f = I(() => !!d.value), p = I(() => n.block), { isFetching: m, fetch: _, needsFetch: v, hasDataSource: y } = Cn({
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({
1350
1360
  definition: d,
1351
1361
  block: p,
1352
1362
  onUpdate: (e, t) => {
@@ -1355,7 +1365,7 @@ var Ki = o({
1355
1365
  dataSourceFetched: t
1356
1366
  });
1357
1367
  }
1358
- }), b = g(Pt, zt), x = g(on, null), S = I(() => {
1368
+ }), b = g(Pt, Bt), x = g(mn, null), S = I(() => {
1359
1369
  if (!x?.value) return n.block;
1360
1370
  let e = {};
1361
1371
  for (let [t, r] of Object.entries(n.block.fieldValues)) e[t] = typeof r == "string" ? ke(r, b.value) : r;
@@ -1375,17 +1385,17 @@ var Ki = o({
1375
1385
  }
1376
1386
  }
1377
1387
  }
1378
- let E = K(C, 150);
1388
+ let E = q(C, 150);
1379
1389
  return h(() => {
1380
1390
  C();
1381
1391
  }), u(() => n.block.fieldValues, () => {
1382
1392
  E();
1383
1393
  }, { deep: !0 }), u(() => x?.value, () => {
1384
1394
  E();
1385
- }), (e, t) => (c(), w("div", Qi, [f.value ? l.value ? (c(), w("div", ta, [U(D(nr), {
1395
+ }), (e, t) => (c(), w("div", ea, [f.value ? l.value ? (c(), w("div", ra, [W(D(ir), {
1386
1396
  size: 24,
1387
1397
  class: "tpl:text-[var(--tpl-danger)]"
1388
- }), N("span", na, P(D(i).customBlocks.renderError), 1)])) : (c(), w("div", ra, [N("div", { innerHTML: s.value }, null, 8, ia), D(y) && D(v) ? (c(), w("div", aa, [D(m) ? (c(), A(ur, {
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, {
1389
1399
  key: 1,
1390
1400
  class: "tpl:w-48"
1391
1401
  })) : (c(), w("button", {
@@ -1393,16 +1403,16 @@ var Ki = o({
1393
1403
  type: "button",
1394
1404
  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)]",
1395
1405
  onClick: t[0] ||= M((...e) => D(_) && D(_)(...e), ["stop"])
1396
- }, [d.value?.icon ? (c(), A(Zi, {
1406
+ }, [d.value?.icon ? (c(), A($i, {
1397
1407
  key: 0,
1398
1408
  icon: d.value.icon,
1399
1409
  size: 16
1400
- }, null, 8, ["icon"])) : k("", !0), T(" " + P(d.value?.dataSource?.label || D(i).customBlocks.dataSource.fetchButton), 1)]))])) : k("", !0)])) : (c(), w("div", $i, [U(D(Qn), {
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), {
1401
1411
  size: 24,
1402
1412
  class: "tpl:text-[var(--tpl-warning)]"
1403
- }), N("span", ea, P(D(i).customBlocks.definitionNotFound), 1)]))]));
1413
+ }), N("span", na, P(D(i).customBlocks.definitionNotFound), 1)]))]));
1404
1414
  }
1405
- }), sa = { class: "tpl:w-full" }, ca = /* @__PURE__ */ o({
1415
+ }), la = { class: "tpl:w-full" }, ua = /* @__PURE__ */ o({
1406
1416
  __name: "DividerBlock",
1407
1417
  props: {
1408
1418
  block: {},
@@ -1414,28 +1424,28 @@ var Ki = o({
1414
1424
  width: t.block.width === "full" ? "100%" : typeof t.block.width == "number" ? `${t.block.width}px` : t.block.width,
1415
1425
  margin: t.block.width === "full" ? "0" : "0 auto"
1416
1426
  }));
1417
- return (e, t) => (c(), w("div", sa, [N("hr", {
1427
+ return (e, t) => (c(), w("div", la, [N("hr", {
1418
1428
  class: "tpl:m-0 tpl:border-none",
1419
1429
  style: L(n.value)
1420
1430
  }, null, 4)]));
1421
1431
  }
1422
- }), la = { class: "tpl:w-full" }, ua = ["srcdoc", "title"], da = {
1432
+ }), da = { class: "tpl:w-full" }, fa = ["srcdoc", "title"], pa = {
1423
1433
  key: 1,
1424
1434
  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)]"
1425
- }, fa = {
1435
+ }, ma = {
1426
1436
  key: 0,
1427
1437
  class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
1428
- }, pa = {
1438
+ }, ha = {
1429
1439
  key: 1,
1430
1440
  class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
1431
- }, ma = /* @__PURE__ */ o({
1441
+ }, ga = /* @__PURE__ */ o({
1432
1442
  __name: "HtmlBlock",
1433
1443
  props: {
1434
1444
  block: {},
1435
1445
  viewport: {}
1436
1446
  },
1437
1447
  setup(e) {
1438
- let t = e, { t: n } = W(), r = g(It, !1), i = I(() => t.block.content.trim().length > 0), a = I(() => r && i.value), o = g(Pt, zt), s = g(on, null), l = I(() => s?.value ? ke(t.block.content, o.value) : t.block.content), d = V(null), f = V(60), p = null;
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;
1439
1449
  function h() {
1440
1450
  let e = d.value?.contentDocument;
1441
1451
  e && (f.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
@@ -1449,7 +1459,7 @@ var Ki = o({
1449
1459
  e || (p?.disconnect(), p = null);
1450
1460
  }), m(() => {
1451
1461
  p?.disconnect(), p = null;
1452
- }), (e, t) => (c(), w("div", la, [a.value ? (c(), w("iframe", {
1462
+ }), (e, t) => (c(), w("div", da, [a.value ? (c(), w("iframe", {
1453
1463
  key: 0,
1454
1464
  ref_key: "iframeRef",
1455
1465
  ref: d,
@@ -1459,18 +1469,18 @@ var Ki = o({
1459
1469
  class: "tpl:block tpl:w-full tpl:border-0",
1460
1470
  style: L({ height: `${f.value}px` }),
1461
1471
  onLoad: _
1462
- }, null, 44, ua)) : (c(), w("div", da, [U(D(qn), {
1472
+ }, null, 44, fa)) : (c(), w("div", pa, [W(D(Yn), {
1463
1473
  size: 24,
1464
1474
  class: "tpl:text-[var(--tpl-text-dim)]"
1465
- }), i.value ? (c(), w("span", fa, P(D(n).html.preview), 1)) : (c(), w("span", pa, P(D(n).html.empty), 1))]))]));
1475
+ }), i.value ? (c(), w("span", ma, P(D(n).html.preview), 1)) : (c(), w("span", ha, P(D(n).html.empty), 1))]))]));
1466
1476
  }
1467
- }), ha = ["data-drop-enabled"], ga = ["href"], _a = ["src", "alt"], va = ["src", "alt"], ya = {
1477
+ }), _a = ["data-drop-enabled"], va = ["href"], ya = ["src", "alt"], ba = ["src", "alt"], xa = {
1468
1478
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
1469
1479
  style: { opacity: "0.7" }
1470
- }, ba = ["href"], xa = ["src", "alt"], Sa = ["src", "alt"], Ca = {
1480
+ }, Sa = ["href"], Ca = ["src", "alt"], wa = ["src", "alt"], Ta = {
1471
1481
  key: 4,
1472
1482
  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)]"
1473
- }, wa = ["aria-label"], Ta = { key: 1 }, Ea = /* @__PURE__ */ o({
1483
+ }, Ea = ["aria-label"], Da = { key: 1 }, Oa = /* @__PURE__ */ o({
1474
1484
  __name: "ImageBlock",
1475
1485
  props: {
1476
1486
  block: {},
@@ -1478,20 +1488,20 @@ var Ki = o({
1478
1488
  },
1479
1489
  emits: ["update"],
1480
1490
  setup(e, { emit: t }) {
1481
- let n = e, r = t, { t: i } = W(), { syntax: a } = G(), o = I(() => Ce(n.block.src, a));
1491
+ let n = e, r = t, { t: i } = G(), { syntax: a } = K(), o = I(() => we(n.block.src, a));
1482
1492
  function s(e) {
1483
1493
  let t = {
1484
1494
  src: e.url,
1485
- ...jn(On(e.width, e.height))
1495
+ ...Nn(An(e.width, e.height))
1486
1496
  };
1487
1497
  e.alt && (t.alt = e.alt), r("update", t);
1488
1498
  }
1489
- let l = V(), { canBrowse: u, dropEnabled: d, isUploading: f, showOverlay: p, openMediaBrowser: m } = Fn({
1499
+ let l = H(), { canBrowse: u, dropEnabled: d, isUploading: f, showOverlay: p, openMediaBrowser: m } = Ln({
1490
1500
  target: l,
1491
1501
  blocked: o,
1492
1502
  apply: s
1493
1503
  }), h = I(() => ({ textAlign: n.block.align })), g = I(() => {
1494
- let e = n.block.border, t = ["left", "right"].map((t) => lt(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
1504
+ let e = n.block.border, t = ["left", "right"].map((t) => Q(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
1495
1505
  return t > 0 ? `calc(100% - ${t}px)` : "100%";
1496
1506
  }), _ = I(() => {
1497
1507
  let e = n.block.align;
@@ -1499,13 +1509,13 @@ var Ki = o({
1499
1509
  maxWidth: "100%",
1500
1510
  width: n.block.width === "full" ? g.value : `${n.block.width}px`,
1501
1511
  height: n.block.height ? `${n.block.height}px` : void 0,
1502
- borderRadius: Y(n.block.borderRadius) ?? void 0,
1503
- ...zi(n.block.border),
1512
+ borderRadius: Ce(n.block.borderRadius) ?? void 0,
1513
+ ...Vi(n.block.border),
1504
1514
  display: "block",
1505
1515
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
1506
1516
  marginRight: e === "center" ? "auto" : void 0
1507
1517
  };
1508
- }), v = Dn(() => o.value ? void 0 : n.block.src), y = Dn(() => o.value ? n.block.placeholderUrl : void 0);
1518
+ }), v = kn(() => o.value ? void 0 : n.block.src), y = kn(() => o.value ? n.block.placeholderUrl : void 0);
1509
1519
  return (t, n) => (c(), w("div", {
1510
1520
  ref_key: "dropZoneRef",
1511
1521
  ref: l,
@@ -1513,11 +1523,11 @@ var Ki = o({
1513
1523
  "data-drop-enabled": D(d),
1514
1524
  class: "tpl:relative tpl:w-full",
1515
1525
  style: L(h.value)
1516
- }, [D(p) ? (c(), A(An, {
1526
+ }, [D(p) ? (c(), A(Mn, {
1517
1527
  key: 0,
1518
1528
  uploading: D(f),
1519
1529
  size: "canvas"
1520
- }, null, 8, ["uploading"])) : k("", !0), e.block.src && o.value && e.block.placeholderUrl ? (c(), w(H, { key: 1 }, [e.block.linkUrl ? (c(), w("a", {
1530
+ }, null, 8, ["uploading"])) : k("", !0), e.block.src && o.value && e.block.placeholderUrl ? (c(), w(U, { key: 1 }, [e.block.linkUrl ? (c(), w("a", {
1521
1531
  key: 0,
1522
1532
  href: e.block.linkUrl,
1523
1533
  target: "_blank",
@@ -1529,22 +1539,22 @@ var Ki = o({
1529
1539
  src: D(y),
1530
1540
  alt: e.block.alt || D(i).image.altTextPlaceholder,
1531
1541
  style: L(_.value)
1532
- }, null, 12, _a)], 8, ga)) : (c(), w("img", {
1542
+ }, null, 12, ya)], 8, va)) : (c(), w("img", {
1533
1543
  key: 1,
1534
1544
  class: "tpl:border-0",
1535
1545
  src: D(y),
1536
1546
  alt: e.block.alt,
1537
1547
  style: L(_.value)
1538
- }, null, 12, va))], 64)) : e.block.src && o.value ? (c(), w("div", {
1548
+ }, null, 12, ba))], 64)) : e.block.src && o.value ? (c(), w("div", {
1539
1549
  key: 2,
1540
1550
  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)]",
1541
1551
  style: L([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, _.value])
1542
- }, [U(D(tr), {
1552
+ }, [W(D(rr), {
1543
1553
  size: 32,
1544
1554
  "stroke-width": 1.5,
1545
1555
  class: "tpl:text-[var(--tpl-primary)]",
1546
1556
  style: { opacity: "0.5" }
1547
- }), N("span", ya, [U(Ki, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (c(), w(H, { key: 3 }, [e.block.linkUrl ? (c(), w("a", {
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", {
1548
1558
  key: 0,
1549
1559
  href: e.block.linkUrl,
1550
1560
  target: "_blank",
@@ -1556,33 +1566,33 @@ var Ki = o({
1556
1566
  src: D(v),
1557
1567
  alt: e.block.alt || D(i).image.altTextPlaceholder,
1558
1568
  style: L(_.value)
1559
- }, null, 12, xa)], 8, ba)) : (c(), w("img", {
1569
+ }, null, 12, Ca)], 8, Sa)) : (c(), w("img", {
1560
1570
  key: 1,
1561
1571
  class: "tpl:border-0",
1562
1572
  src: D(v),
1563
1573
  alt: e.block.alt,
1564
1574
  style: L(_.value)
1565
- }, null, 12, Sa))], 64)) : (c(), w("div", Ca, [D(u) ? (c(), w("button", {
1575
+ }, null, 12, wa))], 64)) : (c(), w("div", Ta, [D(u) ? (c(), w("button", {
1566
1576
  key: 0,
1567
1577
  "aria-label": D(i).image.browseMedia,
1568
1578
  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)]",
1569
1579
  onClick: n[2] ||= M((...e) => D(m) && D(m)(...e), ["stop"])
1570
- }, [U(D(tr), {
1580
+ }, [W(D(rr), {
1571
1581
  size: 14,
1572
1582
  "stroke-width": 1.5
1573
- }), T(" " + P(D(i).image.browseMedia), 1)], 8, wa)) : (c(), w("span", Ta, P(D(i).image.clickToAdd), 1))]))], 12, ha));
1583
+ }), T(" " + P(D(i).image.browseMedia), 1)], 8, Ea)) : (c(), w("span", Da, P(D(i).image.clickToAdd), 1))]))], 12, _a));
1574
1584
  }
1575
- }), Da = { class: "tpl:w-full" }, Oa = ["href"], ka = {
1585
+ }), ka = { class: "tpl:w-full" }, Aa = ["href"], ja = {
1576
1586
  key: 1,
1577
1587
  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)]"
1578
- }, Aa = /* @__PURE__ */ o({
1588
+ }, Ma = /* @__PURE__ */ o({
1579
1589
  __name: "MenuBlock",
1580
1590
  props: {
1581
1591
  block: {},
1582
1592
  viewport: {}
1583
1593
  },
1584
1594
  setup(e) {
1585
- let t = e, { t: n } = W(), r = fn(Kt, "MenuBlock"), i = I(() => ({
1595
+ let t = e, { t: n } = G(), r = Yt(qt, "MenuBlock"), i = I(() => ({
1586
1596
  display: "flex",
1587
1597
  flexWrap: "wrap",
1588
1598
  gap: `0 ${t.block.spacing}px`,
@@ -1594,10 +1604,10 @@ var Ki = o({
1594
1604
  function o(e) {
1595
1605
  return e || t.block.linkColor || t.block.color;
1596
1606
  }
1597
- return (t, r) => (c(), w("div", Da, [a.value ? (c(), w("div", {
1607
+ return (t, r) => (c(), w("div", ka, [a.value ? (c(), w("div", {
1598
1608
  key: 0,
1599
1609
  style: L(i.value)
1600
- }, [(c(!0), w(H, null, p(e.block.items, (t, n) => (c(), w(H, { key: t.id }, [N("a", {
1610
+ }, [(c(!0), w(U, null, p(e.block.items, (t, n) => (c(), w(U, { key: t.id }, [N("a", {
1601
1611
  href: t.url || "#",
1602
1612
  class: "tpl:cursor-default tpl:no-underline",
1603
1613
  style: L({
@@ -1606,45 +1616,49 @@ var Ki = o({
1606
1616
  textDecoration: t.underline ? "underline" : "none"
1607
1617
  }),
1608
1618
  onClick: r[0] ||= M(() => {}, ["prevent"])
1609
- }, [U(Ki, { text: t.text || "..." }, null, 8, ["text"])], 12, Oa), n < e.block.items.length - 1 ? (c(), w("span", {
1619
+ }, [W(Ji, { text: t.text || "..." }, null, 8, ["text"])], 12, Aa), n < e.block.items.length - 1 ? (c(), w("span", {
1610
1620
  key: 0,
1611
1621
  style: L({
1612
1622
  color: e.block.separatorColor,
1613
1623
  padding: `0 ${e.block.spacing}px`
1614
1624
  })
1615
- }, P(e.block.separator), 5)) : k("", !0)], 64))), 128))], 4)) : (c(), w("div", ka, [U(D(er), { size: 16 }), N("span", null, P(D(n).menu.addLinks), 1)]))]));
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)]))]));
1616
1626
  }
1617
1627
  });
1618
1628
  // src/composables/useEditableTextBlock.ts
1619
- function ja(e) {
1620
- let t = g(Pt, zt), r = g(on, null), { syntax: i } = G(), a = I(() => r?.value ? Be(e(), t.value) : Ie(e(), t.value)), o = I(() => Oe(Wn(oe(a.value, i)))), s = V(!1), c = V(null), { top: l, left: u } = n(c), { toLocal: d } = _t(), f = I(() => d({
1621
- top: l.value - 8,
1622
- left: u.value
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);
1631
+ u(() => i?.value, (e) => {
1632
+ e && (c.value = !1);
1633
+ });
1634
+ let l = H(null), { top: d, left: f } = n(l), { toLocal: p } = vt(), m = I(() => p({
1635
+ top: d.value - 8,
1636
+ left: f.value
1623
1637
  }));
1624
- function p() {
1625
- s.value = !0;
1638
+ function h() {
1639
+ i?.value || (c.value = !0);
1626
1640
  }
1627
- function m() {
1628
- s.value = !1;
1641
+ function _() {
1642
+ c.value = !1;
1629
1643
  }
1630
1644
  return {
1631
- isEditing: s,
1632
- blockRef: c,
1633
- toolbarPosition: f,
1634
- resolvedContent: o,
1635
- handleDoubleClick: p,
1636
- handleEditorDone: m
1645
+ isEditing: c,
1646
+ blockRef: l,
1647
+ toolbarPosition: m,
1648
+ resolvedContent: s,
1649
+ handleDoubleClick: h,
1650
+ handleEditorDone: _
1637
1651
  };
1638
1652
  }
1639
1653
  // src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
1640
- var Ma = ["innerHTML"], Na = /* @__PURE__ */ o({
1654
+ var Pa = ["innerHTML"], Fa = /* @__PURE__ */ o({
1641
1655
  __name: "ParagraphBlock",
1642
1656
  props: {
1643
1657
  block: {},
1644
1658
  viewport: {}
1645
1659
  },
1646
1660
  setup(e) {
1647
- let t = e, n = b(() => import("./ParagraphEditor-Bx_Hlw8d.js").then((e) => e.t)), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: l } = ja(() => t.block.content);
1661
+ let t = e, n = b(() => import("./ParagraphEditor-sRPXZDzp.js").then((e) => e.t)), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: l } = Na(() => t.block.content);
1648
1662
  return (t, u) => (c(), w("div", {
1649
1663
  ref_key: "blockRef",
1650
1664
  ref: i,
@@ -1663,11 +1677,11 @@ var Ma = ["innerHTML"], Na = /* @__PURE__ */ o({
1663
1677
  key: 1,
1664
1678
  class: "tpl-text-content tpl:outline-none",
1665
1679
  innerHTML: D(o)
1666
- }, null, 8, Ma))], 544));
1680
+ }, null, 8, Pa))], 544));
1667
1681
  }
1668
1682
  });
1669
1683
  // src/utils/updateBlockList.ts
1670
- function Pa(e, t, n, r = 0, i) {
1684
+ function Ia(e, t, n, r = 0, i) {
1671
1685
  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);
1672
1686
  if (o.some((e) => !s.includes(e.id))) return;
1673
1687
  let c = t.filter((e) => !o.some((t) => t.id === e.id)), l, u = -1;
@@ -1680,19 +1694,19 @@ function Pa(e, t, n, r = 0, i) {
1680
1694
  l && (e.findBlockLocation(l.id) ? e.moveBlock(l.id, u, n, r) : e.addBlock(JSON.parse(JSON.stringify(l)), n, r, u));
1681
1695
  }
1682
1696
  // src/utils/mergeTagTokens.ts
1683
- function Fa(e, t, n) {
1697
+ function La(e, t, n) {
1684
1698
  let r = [], i = "\0MT";
1685
1699
  for (; e.includes(i);) i += "_";
1686
- let a = n === "html" ? et(e, (e) => {
1700
+ let a = n === "html" ? nt(e, (e) => {
1687
1701
  let t = r.push(e) - 1;
1688
1702
  return `${i}${t}\u0000`;
1689
1703
  }) : e, o = Array.from(a.matchAll(RegExp(`${i}\\d+\u0000`, "g")), (e) => ({
1690
1704
  start: e.index,
1691
1705
  end: e.index + e[0].length
1692
- })), s = [], c = Qe(a, t, "logic"), l = [], u = 0;
1706
+ })), s = [], c = et(a, t, "logic"), l = [], u = 0;
1693
1707
  for (let e of ["logic", "value"]) {
1694
1708
  let r = 0;
1695
- for (let i of e === "logic" ? c : Qe(a, t, "value")) {
1709
+ for (let i of e === "logic" ? c : et(a, t, "value")) {
1696
1710
  let t = i.index, a = t + i.value.length;
1697
1711
  for (; o[r]?.end <= t;) r++;
1698
1712
  let c = o[r];
@@ -1715,44 +1729,44 @@ function Fa(e, t, n) {
1715
1729
  }
1716
1730
  return [...r, ...s.map((e) => e.value)].sort();
1717
1731
  }
1718
- function Ia(e, t, n, r) {
1719
- return JSON.stringify(Fa(e, n, r)) !== JSON.stringify(Fa(t, n, r));
1732
+ function Ra(e, t, n, r) {
1733
+ return JSON.stringify(La(e, n, r)) !== JSON.stringify(La(t, n, r));
1720
1734
  }
1721
1735
  // src/components/localization/LocaleStatusChip.vue?vue&type=script&setup=true&lang.ts
1722
- var La = [
1736
+ var za = [
1723
1737
  "data-state",
1724
1738
  "aria-label",
1725
1739
  "title",
1726
1740
  "aria-expanded",
1727
1741
  "aria-controls",
1728
1742
  "onKeydown"
1729
- ], Ra = [
1743
+ ], Ba = [
1730
1744
  "aria-label",
1731
1745
  "aria-labelledby",
1732
1746
  "aria-describedby",
1733
1747
  "onKeydown"
1734
- ], za = ["id"], Ba = ["id"], Va = { class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, Ha = ["disabled"], Ua = {
1748
+ ], Va = ["id"], Ha = ["id"], Ua = { class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, Wa = ["disabled"], Ga = {
1735
1749
  key: 0,
1736
1750
  class: "tpl:m-0 tpl:mb-2 tpl:text-xs tpl:font-medium"
1737
- }, Wa = {
1751
+ }, Ka = {
1738
1752
  key: 1,
1739
1753
  class: "tpl:m-0"
1740
- }, Ga = { class: "tpl:m-0" }, Ka = { class: "tpl:mt-2 tpl:mb-0 tpl:break-words tpl:text-[var(--tpl-chrome-text-muted)]" }, qa = {
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 = {
1741
1755
  key: 3,
1742
1756
  class: "tpl:m-0"
1743
- }, Ja = {
1757
+ }, Xa = {
1744
1758
  key: 4,
1745
1759
  class: "tpl:m-0"
1746
- }, Ya = {
1760
+ }, Za = {
1747
1761
  key: 5,
1748
1762
  class: "tpl:m-0"
1749
- }, Xa = {
1763
+ }, Qa = {
1750
1764
  key: 6,
1751
1765
  class: "tpl:m-0 tpl:list-none tpl:p-0"
1752
- }, Za = ["onClick"], Qa = {
1766
+ }, $a = ["onClick"], eo = {
1753
1767
  key: 7,
1754
1768
  class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:gap-1"
1755
- }, $a = ["data-testid", "disabled"], eo = /*#__PURE__*/ gr(/* @__PURE__ */ o({
1769
+ }, to = ["data-testid", "disabled"], no = /*#__PURE__*/ vr(/* @__PURE__ */ o({
1756
1770
  __name: "LocaleStatusChip",
1757
1771
  props: {
1758
1772
  blockId: {},
@@ -1772,32 +1786,32 @@ var La = [
1772
1786
  },
1773
1787
  emits: ["target"],
1774
1788
  setup(e, { emit: t }) {
1775
- let n = e, r = t, i = g(hn, null), o = g(un, null), s = g(Ct, null), l = g($t, "en") ?? "en", { t: d, format: f } = W(), m = ne(), h = ht(), { toLocal: v } = _t(), y = V(null), b = V(null), x = V(!1), S = V(!1), C = V(null), T = V(null), F = null, R = V({
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({
1776
1790
  top: 0,
1777
1791
  left: 0
1778
- }), z = V({
1792
+ }), z = H({
1779
1793
  maxHeight: 0,
1780
1794
  maxWidth: 0
1781
- }), B = `tpl-locale-popover-${de()}`, te = I(() => dr(i?.activeLocale?.value ?? "")), U = I(() => dr(i?.content.value.settings.locale ?? "en"));
1782
- function G(e, t) {
1795
+ }), B = `tpl-locale-popover-${ue()}`, V = I(() => pr(i?.activeLocale?.value ?? "")), W = I(() => pr(i?.content.value.settings.locale ?? "en"));
1796
+ function K(e, t) {
1783
1797
  switch (e) {
1784
1798
  case "tags-differ": return d.localization.tagsDiffer;
1785
- case "hidden": return f(d.localization.hidden, { language: te.value });
1786
- case "changed": return f(d.localization.changed, { language: te.value });
1787
- case "default-stale": return fr(d.localization.staleLanguages, t, l);
1788
- case "missing": return t === 1 ? d.localization.notTranslated : fr(d.localization.notTranslatedCount, t, l);
1789
- default: return t === 1 ? d.localization.outOfDate : fr(d.localization.staleCount, t, l);
1799
+ case "hidden": return f(d.localization.hidden, { language: V.value });
1800
+ 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);
1790
1804
  }
1791
1805
  }
1792
- let re = I(() => G(n.state, n.count)), K = I(() => n.popoverState ?? n.state), ie = I(() => n.popoverCount ?? n.count), ae = I(() => G(K.value, ie.value)), oe = I(() => n.state === "hidden" ? Yn : n.state === "changed" ? Kn : n.state === "default-stale" ? ar : n.state === "stale" ? Jn : nr), se = I(() => K.value === "default-stale" || (K.value === "missing" || K.value === "stale") && ie.value > 1), q = I(() => n.editable && n.eligibleGaps && o?.isAvailable.value);
1793
- function J(e = !1) {
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);
1807
+ function X(e = !1) {
1794
1808
  x.value = !1, S.value = !1, F = null, e && y.value?.focus({ preventScroll: !0 });
1795
1809
  }
1796
- async function Y() {
1797
- if (x.value) return J();
1798
- h.value && (x.value = !0, await X());
1810
+ async function Z() {
1811
+ if (x.value) return X();
1812
+ h.value && (x.value = !0, await Q());
1799
1813
  }
1800
- async function X() {
1814
+ async function Q() {
1801
1815
  let e = h.value;
1802
1816
  if (!e || !x.value) return;
1803
1817
  let t = e.ownerDocument.defaultView, n = t?.visualViewport, r = n?.offsetTop ?? 0, i = n?.offsetLeft ?? 0, a = r + (n?.height ?? t?.innerHeight ?? 0), o = i + (n?.width ?? t?.innerWidth ?? 0), s = e.parentElement?.getBoundingClientRect(), c = Math.max(r, s?.height ? s.top : r) + 8, l = Math.max(i, s?.width ? s.left : i) + 8, u = Math.max(c, Math.min(a, s?.height ? s.bottom : a) - 8), d = Math.max(l, Math.min(o, s?.width ? s.right : o) - 8);
@@ -1817,54 +1831,54 @@ var La = [
1817
1831
  }), await j(), x.value && (S.value ? T.value : b.value)?.focus({ preventScroll: !0 });
1818
1832
  }
1819
1833
  u(S, async () => {
1820
- x.value && (await X(), x.value && !S.value && C.value?.focus({ preventScroll: !0 }));
1834
+ x.value && (await Q(), x.value && !S.value && C.value?.focus({ preventScroll: !0 }));
1821
1835
  });
1822
- function ce(e) {
1836
+ function oe(e) {
1823
1837
  let t = e.composedPath();
1824
- !t.includes(y.value) && !t.includes(b.value) && J();
1838
+ !t.includes(y.value) && !t.includes(b.value) && X();
1825
1839
  }
1826
- function le(e) {
1840
+ function se(e) {
1827
1841
  if (e.composedPath().includes(b.value)) return;
1828
1842
  let t = y.value?.getBoundingClientRect();
1829
- t && F && t.top === F.top && t.right === F.right || J();
1843
+ t && F && t.top === F.top && t.right === F.right || X();
1830
1844
  }
1831
- function ue() {
1832
- m.removeEventListener("click", ce, !0), m.removeEventListener("scroll", le, !0);
1845
+ function ce() {
1846
+ m.removeEventListener("click", oe, !0), m.removeEventListener("scroll", se, !0);
1833
1847
  }
1834
1848
  u(x, (e) => {
1835
- ue(), e ? (m.addEventListener("click", ce, !0), m.addEventListener("scroll", le, !0)) : r("target", null);
1836
- }, { flush: "sync" }), u(K, () => {
1837
- S.value = !1, x.value && X();
1849
+ ce(), e ? (m.addEventListener("click", oe, !0), m.addEventListener("scroll", se, !0)) : r("target", null);
1850
+ }, { flush: "sync" }), u(q, () => {
1851
+ S.value = !1, x.value && Q();
1838
1852
  }), u([
1839
1853
  () => n.blockId,
1840
1854
  () => n.state,
1841
1855
  () => i?.activeLocale?.value,
1842
1856
  () => i?.state.template?.id,
1843
1857
  () => i?.loadVersion?.value
1844
- ], () => J()), _(ue);
1845
- let Z = (e) => {
1846
- (x.value || h.value) && (r("target", e ?? null), x.value || Y());
1858
+ ], () => X()), _(ce);
1859
+ let le = (e) => {
1860
+ (x.value || h.value) && (r("target", e ?? null), x.value || Z());
1847
1861
  };
1848
1862
  u(() => n.blockId, (e, t) => {
1849
- t && s?.get(t) === Z && s.delete(t), s?.set(e, Z);
1863
+ t && s?.get(t) === le && s.delete(t), s?.set(e, le);
1850
1864
  }, { immediate: !0 }), _(() => {
1851
- s?.get(n.blockId) === Z && s.delete(n.blockId);
1865
+ s?.get(n.blockId) === le && s.delete(n.blockId);
1852
1866
  });
1853
- function fe() {
1854
- i?.keepTranslations?.(n.blockId, n.stale), J(!0);
1867
+ function de() {
1868
+ i?.keepTranslations?.(n.blockId, n.stale), X(!0);
1855
1869
  }
1856
- function pe(e) {
1857
- i?.resetLocaleFields?.(n.blockId, e), J(!0);
1870
+ function fe(e) {
1871
+ i?.resetLocaleFields?.(n.blockId, e), X(!0);
1858
1872
  }
1859
- function me() {
1860
- i?.setBlockHidden?.(n.blockId, !1), J(!0);
1873
+ function pe() {
1874
+ i?.setBlockHidden?.(n.blockId, !1), X(!0);
1861
1875
  }
1862
- function Q(e) {
1863
- i?.setActiveLocale?.(e), J();
1876
+ function me(e) {
1877
+ i?.setActiveLocale?.(e), X();
1864
1878
  }
1865
1879
  function he() {
1866
- q.value && !o?.running.value && (K.value === "tags-differ" && n.replacesCurrent ? S.value = !0 : o?.translate({
1867
- only: K.value === "tags-differ" ? "all" : "gaps",
1880
+ Y.value && !o?.running.value && (q.value === "tags-differ" && n.replacesCurrent ? S.value = !0 : o?.translate({
1881
+ only: q.value === "tags-differ" ? "all" : "gaps",
1868
1882
  blockId: n.blockId
1869
1883
  }));
1870
1884
  }
@@ -1872,33 +1886,33 @@ var La = [
1872
1886
  S.value = !1;
1873
1887
  }
1874
1888
  function _e() {
1875
- S.value ? ge() : J(!0);
1889
+ S.value ? ge() : X(!0);
1876
1890
  }
1877
1891
  function ve() {
1878
- q.value && !o?.running.value && n.translationCount && (S.value = !1, o?.translate({
1892
+ Y.value && !o?.running.value && n.translationCount && (S.value = !1, o?.translate({
1879
1893
  only: "all",
1880
1894
  blockId: n.blockId
1881
1895
  }));
1882
1896
  }
1883
- return (t, n) => (c(), w(H, null, [N("button", {
1897
+ return (t, n) => (c(), w(U, null, [N("button", {
1884
1898
  ref_key: "trigger",
1885
1899
  ref: y,
1886
1900
  type: "button",
1887
1901
  "data-testid": "locale-chip",
1888
1902
  "data-state": e.state,
1889
- "aria-label": re.value,
1890
- title: re.value,
1903
+ "aria-label": ne.value,
1904
+ title: ne.value,
1891
1905
  "aria-expanded": x.value,
1892
1906
  "aria-controls": x.value ? B : void 0,
1893
1907
  "aria-haspopup": "dialog",
1894
1908
  class: "tpl-locale-chip tpl:flex tpl:size-5 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:p-0 tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-chrome-text-muted)] tpl:ring-1 tpl:ring-[var(--tpl-border)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:shadow-[var(--tpl-shadow-sm)] tpl:focus-visible:outline-none tpl:focus-visible:shadow-[var(--tpl-ring)] tpl:hover:focus-visible:shadow-[var(--tpl-ring),var(--tpl-shadow-sm)]",
1895
- onClick: M(Y, ["stop"]),
1896
- onKeydown: [E(M(Y, ["stop", "prevent"]), ["enter"]), E(M(_e, ["stop", "prevent"]), ["esc"])]
1897
- }, [(c(), A(a(oe.value), {
1909
+ onClick: M(Z, ["stop"]),
1910
+ onKeydown: [E(M(Z, ["stop", "prevent"]), ["enter"]), E(M(_e, ["stop", "prevent"]), ["esc"])]
1911
+ }, [(c(), A(a(ie.value), {
1898
1912
  size: 12,
1899
1913
  "stroke-width": 2,
1900
1914
  "aria-hidden": "true"
1901
- }))], 40, La), D(h) && x.value ? (c(), A(ee, {
1915
+ }))], 40, za), D(h) && x.value ? (c(), A(ee, {
1902
1916
  key: 0,
1903
1917
  to: D(h)
1904
1918
  }, [N("div", {
@@ -1906,7 +1920,7 @@ var La = [
1906
1920
  ref_key: "popover",
1907
1921
  ref: b,
1908
1922
  role: "dialog",
1909
- "aria-label": S.value ? void 0 : ae.value,
1923
+ "aria-label": S.value ? void 0 : re.value,
1910
1924
  "aria-labelledby": S.value ? `${B}-question` : void 0,
1911
1925
  "aria-describedby": S.value ? `${B}-warning` : void 0,
1912
1926
  tabindex: "-1",
@@ -1920,84 +1934,84 @@ var La = [
1920
1934
  }),
1921
1935
  onClick: n[2] ||= M(() => {}, ["stop"]),
1922
1936
  onKeydown: E(M(_e, ["stop", "prevent"]), ["esc"])
1923
- }, [S.value ? (c(), w(H, { key: 0 }, [
1937
+ }, [S.value ? (c(), w(U, { key: 0 }, [
1924
1938
  N("h3", {
1925
1939
  id: `${B}-question`,
1926
1940
  class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
1927
- }, P(D(fr)(D(d).localization.translationConfirmation, e.translationCount ?? 0, D(l))), 9, za),
1941
+ }, P(D(mr)(D(d).localization.translationConfirmation, e.translationCount ?? 0, D(l))), 9, Va),
1928
1942
  N("p", {
1929
1943
  id: `${B}-warning`,
1930
1944
  class: "tpl:m-0 tpl:text-[var(--tpl-text-muted)]"
1931
- }, P(D(f)(D(d).localization.translationDescription, { language: te.value })), 9, Ba),
1932
- N("div", Va, [N("button", {
1945
+ }, P(D(f)(D(d).localization.translationDescription, { language: V.value })), 9, Ha),
1946
+ N("div", Ua, [N("button", {
1933
1947
  ref_key: "confirmationCancel",
1934
1948
  ref: T,
1935
1949
  type: "button",
1936
1950
  "data-testid": "translation-confirm-cancel",
1937
- class: O(D(mr)),
1951
+ class: O(D(gr)),
1938
1952
  onClick: ge
1939
1953
  }, P(D(d).localization.cancel), 3), N("button", {
1940
1954
  type: "button",
1941
1955
  "data-testid": "translation-confirm",
1942
- class: O(D(hr)),
1943
- disabled: !q.value || !!D(o)?.running.value || !e.translationCount,
1956
+ class: O(D(_r)),
1957
+ disabled: !Y.value || !!D(o)?.running.value || !e.translationCount,
1944
1958
  onClick: ve
1945
- }, P(D(fr)(D(d).localization.translateAllFields, e.translationCount ?? 0, D(l))), 11, Ha)])
1946
- ], 64)) : (c(), w(H, { key: 1 }, [
1947
- se.value ? (c(), w("p", Ua, P(ae.value), 1)) : k("", !0),
1948
- K.value === "missing" ? (c(), w("p", Wa, P(D(f)(D(d).localization.missingExplanation, { default: U.value })), 1)) : K.value === "stale" ? (c(), w(H, { key: 2 }, [N("p", Ga, P(D(f)(D(d).localization.staleExplanation, { default: U.value })), 1), N("p", Ka, P(D(f)(D(d).localization.currentExcerpt, { excerpt: e.excerpt })), 1)], 64)) : K.value === "tags-differ" ? (c(), w("p", qa, P(D(f)(D(d).localization.tagsDifferExplanation, { default: U.value })), 1)) : K.value === "changed" ? (c(), w("p", Ja, P(D(fr)(D(d).localization.changedProperties, ie.value, D(l), { default: U.value })), 1)) : K.value === "hidden" ? (c(), w("p", Ya, P(D(f)(D(d).localization.hiddenExplanation, { language: te.value })), 1)) : (c(), w("ul", Xa, [(c(!0), w(H, null, p(e.staleLocales, (e) => (c(), w("li", {
1959
+ }, P(D(mr)(D(d).localization.translateAllFields, e.translationCount ?? 0, D(l))), 11, Wa)])
1960
+ ], 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", {
1949
1963
  key: e,
1950
1964
  class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3"
1951
- }, [N("span", null, P(D(dr)(e)), 1), N("button", {
1965
+ }, [N("span", null, P(D(pr)(e)), 1), N("button", {
1952
1966
  type: "button",
1953
- class: O(D(pr)),
1954
- onClick: (t) => Q(e)
1955
- }, P(D(d).localization.open), 11, Za)]))), 128))])),
1956
- e.editable && K.value !== "default-stale" ? (c(), w("div", Qa, [
1957
- q.value && (K.value === "missing" || K.value === "stale" || K.value === "tags-differ") ? (c(), w("button", {
1967
+ class: O(D(hr)),
1968
+ onClick: (t) => me(e)
1969
+ }, P(D(d).localization.open), 11, $a)]))), 128))])),
1970
+ e.editable && q.value !== "default-stale" ? (c(), w("div", eo, [
1971
+ Y.value && (q.value === "missing" || q.value === "stale" || q.value === "tags-differ") ? (c(), w("button", {
1958
1972
  key: 0,
1959
1973
  type: "button",
1960
1974
  ref_key: "retranslate",
1961
1975
  ref: C,
1962
- "data-testid": K.value === "missing" ? "locale-translate" : "locale-retranslate",
1963
- class: O(D(mr)),
1976
+ "data-testid": q.value === "missing" ? "locale-translate" : "locale-retranslate",
1977
+ class: O(D(gr)),
1964
1978
  disabled: !!D(o)?.running.value,
1965
1979
  onClick: he
1966
- }, P(K.value === "missing" ? D(d).localization.translate : D(d).localization.retranslate), 11, $a)) : k("", !0),
1967
- K.value === "stale" || K.value === "tags-differ" ? (c(), w(H, { key: 1 }, [K.value === "stale" ? (c(), w("button", {
1980
+ }, P(q.value === "missing" ? D(d).localization.translate : D(d).localization.retranslate), 11, to)) : k("", !0),
1981
+ q.value === "stale" || q.value === "tags-differ" ? (c(), w(U, { key: 1 }, [q.value === "stale" ? (c(), w("button", {
1968
1982
  key: 0,
1969
1983
  type: "button",
1970
1984
  "data-testid": "locale-keep",
1971
- class: O(D(q.value ? pr : mr)),
1972
- onClick: fe
1985
+ class: O(D(Y.value ? hr : gr)),
1986
+ onClick: de
1973
1987
  }, P(D(d).localization.keep), 3)) : k("", !0), N("button", {
1974
1988
  type: "button",
1975
1989
  "data-testid": "locale-use-default",
1976
- class: O(D(K.value === "tags-differ" && !q.value ? mr : pr)),
1977
- onClick: n[0] ||= (t) => pe(K.value === "tags-differ" ? e.tagsDiffer ?? [] : e.stale)
1978
- }, P(D(f)(D(d).localization.useDefaultLanguage, { default: U.value })), 3)], 64)) : k("", !0),
1979
- K.value === "changed" ? (c(), w("button", {
1990
+ class: O(D(q.value === "tags-differ" && !Y.value ? gr : hr)),
1991
+ onClick: n[0] ||= (t) => fe(q.value === "tags-differ" ? e.tagsDiffer ?? [] : e.stale)
1992
+ }, P(D(f)(D(d).localization.useDefaultLanguage, { default: W.value })), 3)], 64)) : k("", !0),
1993
+ q.value === "changed" ? (c(), w("button", {
1980
1994
  key: 2,
1981
1995
  type: "button",
1982
1996
  "data-testid": "locale-reset",
1983
- class: O(D(mr)),
1984
- onClick: n[1] ||= (t) => pe(e.setPaths)
1997
+ class: O(D(gr)),
1998
+ onClick: n[1] ||= (t) => fe(e.setPaths)
1985
1999
  }, P(D(d).localization.resetChanges), 3)) : k("", !0),
1986
- K.value === "hidden" ? (c(), w("button", {
2000
+ q.value === "hidden" ? (c(), w("button", {
1987
2001
  key: 3,
1988
2002
  type: "button",
1989
2003
  "data-testid": "locale-show",
1990
- class: O(D(mr)),
1991
- onClick: me
2004
+ class: O(D(gr)),
2005
+ onClick: pe
1992
2006
  }, P(D(d).localization.show), 3)) : k("", !0)
1993
2007
  ])) : k("", !0)
1994
- ], 64))], 44, Ra)], 8, ["to"])) : k("", !0)], 64));
2008
+ ], 64))], 44, Ba)], 8, ["to"])) : k("", !0)], 64));
1995
2009
  }
1996
- }), [["__scopeId", "data-v-3343ae7d"]]), to = /* @__PURE__ */ o({
2010
+ }), [["__scopeId", "data-v-3343ae7d"]]), ro = /* @__PURE__ */ o({
1997
2011
  __name: "LocaleMarkers",
1998
2012
  props: { block: {} },
1999
2013
  setup(e) {
2000
- let t = e, n = g(hn, null), r = g(Nt, void 0), i = g(Zt, []), a = g(xt, ue.liquid), o = g(Qt, I(() => /* @__PURE__ */ new Set())), s = I(() => n?.activeLocale?.value), l = I(() => s.value ? t.block.l10n?.[s.value] : void 0), d = I(() => ({
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(() => ({
2001
2015
  blocks: [t.block.type === "section" || t.block.type === "wrapper" ? {
2002
2016
  ...t.block,
2003
2017
  children: []
@@ -2006,14 +2020,14 @@ var La = [
2006
2020
  locale: n.content.value.settings.locale,
2007
2021
  locales: n.content.value.settings.locales
2008
2022
  }
2009
- })), f = I(() => n && s.value && !o.value.has(s.value) ? fe(d.value, s.value, i) : {
2023
+ })), f = I(() => n && s.value && !o.value.has(s.value) ? $e(d.value, s.value, i) : {
2010
2024
  missing: [],
2011
2025
  stale: [],
2012
2026
  translated: []
2013
2027
  }), p = I(() => f.value.stale.map((e) => e.slice(t.block.id.length + 1))), m = I(() => f.value.translated.flatMap((e) => {
2014
- let n = e.slice(t.block.id.length + 1), r = De(t.block, n), i = l.value?.text?.[n]?.value, o = t.block.type === "html" || ye[t.block.type]?.includes(n) ? "html" : "text";
2015
- return typeof r == "string" && i !== void 0 && Ia(r, i, a, o) ? [n] : [];
2016
- })), h = V(null), _ = I(() => n && s.value && !o.value.has(s.value) ? q(d.value, s.value, {
2028
+ 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] : [];
2030
+ })), h = H(null), _ = I(() => n && s.value && !o.value.has(s.value) ? X(d.value, s.value, {
2017
2031
  syntax: a,
2018
2032
  definitions: i,
2019
2033
  doNotTranslate: r?.doNotTranslate,
@@ -2023,9 +2037,9 @@ var La = [
2023
2037
  let n = e.slice(t.block.id.length + 1);
2024
2038
  return f.value.translated.includes(e) && !m.value.includes(n);
2025
2039
  })), y = I(() => Object.keys(l.value?.set ?? {}).filter((e) => {
2026
- let n = e.split("."), r = n.pop(), i = n.length ? De(t.block, n.join(".")) : t.block;
2027
- return Array.isArray(i) ? De(i, r) !== void 0 : i !== void 0;
2028
- })), b = I(() => !s.value && n ? (n.content.value.settings.locales ?? []).filter((e) => !o.value.has(e) && fe(d.value, e, i).stale.length > 0) : []), x = I(() => s.value ? o.value.has(s.value) ? null : l.value?.hidden ? "hidden" : f.value.missing.length ? "missing" : p.value.length ? "stale" : m.value.length ? "tags-differ" : y.value.length ? "changed" : null : b.value.length ? "default-stale" : null);
2040
+ let n = e.split("."), r = n.pop(), i = n.length ? ve(t.block, n.join(".")) : t.block;
2041
+ return Array.isArray(i) ? ve(i, r) !== void 0 : i !== void 0;
2042
+ })), b = I(() => !s.value && n ? (n.content.value.settings.locales ?? []).filter((e) => !o.value.has(e) && $e(d.value, e, i).stale.length > 0) : []), x = I(() => s.value ? o.value.has(s.value) ? null : l.value?.hidden ? "hidden" : f.value.missing.length ? "missing" : p.value.length ? "stale" : m.value.length ? "tags-differ" : y.value.length ? "changed" : null : b.value.length ? "default-stale" : null);
2029
2043
  function S(e) {
2030
2044
  return e === "missing" ? f.value.missing.length : e === "stale" ? p.value.length : e === "tags-differ" ? m.value.length : e === "default-stale" ? b.value.length : y.value.length;
2031
2045
  }
@@ -2034,12 +2048,12 @@ var La = [
2034
2048
  h.value = null;
2035
2049
  });
2036
2050
  let E = I(() => {
2037
- let e = De(t.block, p.value[0] ?? "");
2051
+ let e = ve(t.block, p.value[0] ?? "");
2038
2052
  if (typeof e != "string") return "";
2039
2053
  let n = e.split(/<[^>]*>/).join("");
2040
2054
  return Array.from(n).slice(0, 60).join("");
2041
2055
  });
2042
- return (t, n) => D(r) && x.value ? (c(), A(eo, {
2056
+ return (t, n) => D(r) && x.value ? (c(), A(no, {
2043
2057
  key: 0,
2044
2058
  "block-id": e.block.id,
2045
2059
  state: x.value,
@@ -2073,21 +2087,21 @@ var La = [
2073
2087
  "editable"
2074
2088
  ])) : k("", !0);
2075
2089
  }
2076
- }), no = [
2090
+ }), io = [
2077
2091
  "data-block-id",
2078
2092
  "data-block-type",
2079
2093
  "data-tpl-picked"
2080
- ], ro = ["aria-label"], io = ["data-lock-holder"], ao = ["aria-label"], oo = [
2094
+ ], ao = ["aria-label"], oo = ["data-lock-holder"], so = ["aria-label"], co = [
2081
2095
  "aria-label",
2082
2096
  "aria-pressed",
2083
2097
  "title"
2084
- ], so = ["aria-label", "title"], co = ["aria-label", "title"], lo = ["aria-label", "title"], uo = {
2098
+ ], lo = ["aria-label", "title"], uo = ["aria-label", "title"], fo = ["aria-label", "title"], po = {
2085
2099
  key: 3,
2086
2100
  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"
2087
- }, fo = { 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)]" }, po = {
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 = {
2088
2102
  key: 4,
2089
2103
  class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
2090
- }, mo = ["aria-label", "title"], ho = /*#__PURE__*/ gr(/* @__PURE__ */ o({
2104
+ }, go = ["aria-label", "title"], _o = /*#__PURE__*/ vr(/* @__PURE__ */ o({
2091
2105
  __name: "BlockWrapper",
2092
2106
  props: {
2093
2107
  block: {},
@@ -2100,33 +2114,33 @@ var La = [
2100
2114
  },
2101
2115
  emits: ["select"],
2102
2116
  setup(t, { emit: n }) {
2103
- let i = b(() => import("./BlockIssueBadge-DncZ-HDf.js")), a = t, o = I(() => a.displayBlock ?? a.block), s = n, { t: l, format: d } = W(), f = g(gn, null), p = V(null), m = I(() => f?.liftedBlockId.value === a.block.id), h = I(() => m.value ? d(l.blockActions.dragLifted, { block: a.block.type }) : l.blockActions.drag);
2117
+ let i = b(() => import("./BlockIssueBadge-DIlFDDwh.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);
2104
2118
  async function _() {
2105
2119
  await j(), p.value?.focus();
2106
2120
  }
2107
2121
  function v(e) {
2108
2122
  f && (e.key === " " || e.key === "Enter" ? (e.preventDefault(), e.stopPropagation(), m.value ? f.drop(a.block.id) : f.lift(a.block.id)) : m.value && (e.key === "Escape" ? (e.preventDefault(), e.stopPropagation(), f.cancel(), _()) : e.key === "ArrowUp" ? (e.preventDefault(), e.stopPropagation(), f.moveUp(a.block.id), _()) : e.key === "ArrowDown" && (e.preventDefault(), e.stopPropagation(), f.moveDown(a.block.id), _())));
2109
2123
  }
2110
- let S = I(() => !a.viewport || !o.value.visibility ? !1 : o.value.visibility[a.viewport] === !1), C = I(() => !!(Z?.activeLocale?.value && a.block.l10n?.[Z.activeLocale.value]?.hidden)), E = I(() => a.previewMode === !0 && (S.value || C.value)), ee = I(() => a.viewport ? {
2124
+ 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 ? {
2111
2125
  desktop: l.viewport.desktop,
2112
2126
  mobile: l.viewport.mobile
2113
- }[a.viewport] ?? a.viewport : ""), F = I(() => !!o.value.displayCondition), R = g(dn, null), z = g(rn, null), B = g(Jt, {}), te = I(() => B.savedBlocks?.isPicking.value === !0), H = I(() => !a.nested && B.savedBlocks?.isAvailable.value === !0 && B.savedBlocks?.canCreate.value === !0), ne = I(() => a.isSelected && !te.value), G = I(() => B.comments?.getBlockCount(a.block.id) ?? 0), re = V(null), K = V(null), ie = V(null), ae = V(null), oe = V({
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({
2114
2128
  left: "calc(100% + 8px)",
2115
2129
  top: "50%"
2116
- }), se = V(!1), q = I(() => K.value ?? ae.value), J = I(() => q.value?.closest(".tpl-body"));
2117
- function Y() {
2118
- let e = se.value, t = K.value, n = ae.value, r = re.value;
2130
+ }), ae = H(!1), Y = I(() => q.value ?? re.value), X = I(() => Y.value?.closest(".tpl-body"));
2131
+ function Z() {
2132
+ let e = ae.value, t = q.value, n = re.value, r = ne.value;
2119
2133
  if (!t && !n || !r?.offsetWidth) return;
2120
- let i = r.getBoundingClientRect(), a = i.width / r.offsetWidth || 1, o = J.value, s = o ? (o.getBoundingClientRect().left - i.left) / a + o.clientLeft : -Infinity, c = o ? s + o.clientWidth : Infinity, l = getComputedStyle(r).direction === "rtl";
2134
+ let i = r.getBoundingClientRect(), a = i.width / r.offsetWidth || 1, o = X.value, s = o ? (o.getBoundingClientRect().left - i.left) / a + o.clientLeft : -Infinity, c = o ? s + o.clientWidth : Infinity, l = getComputedStyle(r).direction === "rtl";
2121
2135
  if (n?.offsetWidth) {
2122
2136
  let t = l ? -4 - n.offsetWidth : r.offsetWidth + 4, i = t >= s + 4 && t + n.offsetWidth + 4 <= c;
2123
2137
  if (e === i) {
2124
- se.value = !i, j(Y);
2138
+ ae.value = !i, j(Z);
2125
2139
  return;
2126
2140
  }
2127
2141
  }
2128
2142
  if (!t?.offsetWidth) return;
2129
- let u = Math.max(s + 4, Math.min(r.offsetWidth + 8, c - t.offsetWidth - 4)), d = ie.value, f = Math.max(28, d?.offsetHeight ? d.offsetTop + d.offsetHeight + 4 : 0), p = Math.max(f + t.offsetHeight / 2, r.offsetHeight / 2), m = u < r.offsetWidth && p + t.offsetHeight / 2 <= r.offsetHeight + 8 ? `${p}px` : "50%";
2143
+ let u = Math.max(s + 4, Math.min(r.offsetWidth + 8, c - t.offsetWidth - 4)), d = J.value, f = Math.max(28, d?.offsetHeight ? d.offsetTop + d.offsetHeight + 4 : 0), p = Math.max(f + t.offsetHeight / 2, r.offsetHeight / 2), m = u < r.offsetWidth && p + t.offsetHeight / 2 <= r.offsetHeight + 8 ? `${p}px` : "50%";
2130
2144
  if (u >= r.offsetWidth && n?.offsetWidth && !e && !l) {
2131
2145
  let e = (n.getBoundingClientRect().bottom - i.top) / a + 4 + t.offsetHeight / 2;
2132
2146
  e > r.offsetHeight / 2 && (m = `${e}px`);
@@ -2138,27 +2152,27 @@ var La = [
2138
2152
  u = Math.max(s + 4, Math.min(n, c - t.offsetWidth - 4));
2139
2153
  }
2140
2154
  }
2141
- (oe.value.left !== `${u}px` || oe.value.top !== m) && (oe.value = {
2155
+ (ie.value.left !== `${u}px` || ie.value.top !== m) && (ie.value = {
2142
2156
  left: `${u}px`,
2143
2157
  top: m
2144
2158
  });
2145
2159
  }
2146
- x(Y), r(I(() => q.value ? [
2160
+ x(Z), r(I(() => Y.value ? [
2161
+ ne.value,
2162
+ q.value,
2163
+ J.value,
2147
2164
  re.value,
2148
- K.value,
2149
- ie.value,
2150
- ae.value,
2151
- J.value
2152
- ].filter((e) => !!e) : []), Y), e(J, "scroll", Y, { passive: !0 });
2153
- let X = I(() => B.collaboration?.lockOf(a.block.id) ?? null), ce = I(() => X.value?.holder.type === "guest" ? l.collaboration.guest : X.value?.holder.name ?? ""), le = I(() => B.collaboration?.agentHighlightOf(a.block.id) ?? B.ai?.highlightOf(a.block.id) ?? null), ue = Ln(() => o.value.type === "section" ? o.value.backgroundImage : void 0), de = Ln(() => o.value.type === "section" ? o.value.wrapper?.backgroundImage : void 0), Z = g(hn, null), fe = Z ? vt(Z) : null, pe = g(tn, null) ?? fe?.content ?? null;
2154
- u([() => Z?.activeLocale?.value, () => fe && Fe(fe.settings.value)], Y, { flush: "post" });
2155
- let me = g(Lt, void 0), Q = I(() => Li(o.value, {
2156
- backgroundImageUrl: ue.value,
2157
- heroBoxWidth: kn(o.value) ? Nn(o.value, pe?.value, me) : void 0
2158
- })), he = I(() => Ui(o.value, { backgroundImageUrl: de.value })), ge = I(() => {
2165
+ X.value
2166
+ ].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;
2168
+ u([() => ue?.activeLocale?.value, () => de && Ie(de.settings.value)], Z, { flush: "post" });
2169
+ let pe = g(Rt, void 0), me = I(() => zi(o.value, {
2170
+ 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(() => {
2159
2173
  let e = o.value;
2160
2174
  return e.type === "section" && e.wrapper?.fullWidth === !0 ? e : void 0;
2161
- }), _e = I(() => Hi(ge.value?.wrapper?.padding));
2175
+ }), _e = I(() => Wi(ge.value?.wrapper?.padding));
2162
2176
  function ve(e) {
2163
2177
  a.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), s("select"));
2164
2178
  }
@@ -2177,7 +2191,7 @@ var La = [
2177
2191
  return (e, n) => E.value ? k("", !0) : (c(), w("div", {
2178
2192
  key: 0,
2179
2193
  ref_key: "blockElement",
2180
- ref: re,
2194
+ ref: ne,
2181
2195
  class: O(["tpl-block tpl:group tpl:relative tpl:cursor-pointer tpl:rounded-sm tpl:transition-shadow", {
2182
2196
  "tpl-block--selected": t.isSelected,
2183
2197
  "tpl-block--locale-hidden": C.value,
@@ -2192,53 +2206,53 @@ var La = [
2192
2206
  }, [
2193
2207
  N("div", {
2194
2208
  ref_key: "badgesElement",
2195
- ref: ie,
2209
+ ref: J,
2196
2210
  class: "tpl-block-badges tpl:absolute tpl:top-1 tpl:inset-e-1 tpl:z-10 tpl:flex tpl:gap-1"
2197
2211
  }, [
2198
- G.value > 0 && !S.value ? (c(), w("button", {
2212
+ K.value > 0 && !S.value ? (c(), w("button", {
2199
2213
  key: 0,
2200
2214
  ref_key: "commentElement",
2201
- ref: ae,
2202
- 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)]", se.value ? void 0 : "tpl:absolute tpl:-top-2 tpl:inset-s-full tpl:ms-2"]),
2203
- "aria-label": D(d)(D(l).blockActions.comments, { count: String(G.value) }),
2215
+ ref: re,
2216
+ 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
+ "aria-label": D(d)(D(l).blockActions.comments, { count: String(K.value) }),
2204
2218
  onClick: n[0] ||= M((e) => D(B).comments?.openForBlock(t.block.id), ["stop"])
2205
- }, [U(D(or), {
2219
+ }, [W(D(cr), {
2206
2220
  size: 12,
2207
2221
  "stroke-width": 2.5
2208
- }), T(" " + P(G.value), 1)], 10, ro)) : k("", !0),
2209
- U(D(i), { "block-id": t.block.id }, null, 8, ["block-id"]),
2210
- t.previewMode ? k("", !0) : (c(), A(to, {
2222
+ }), T(" " + P(K.value), 1)], 10, ao)) : k("", !0),
2223
+ W(D(i), { "block-id": t.block.id }, null, 8, ["block-id"]),
2224
+ t.previewMode ? k("", !0) : (c(), A(ro, {
2211
2225
  key: 1,
2212
2226
  block: t.block
2213
2227
  }, null, 8, ["block"]))
2214
2228
  ], 512),
2215
- X.value ? (c(), w("div", {
2229
+ Q.value ? (c(), w("div", {
2216
2230
  key: 0,
2217
2231
  "data-testid": "block-lock",
2218
- "data-lock-holder": X.value.holder.sessionId,
2232
+ "data-lock-holder": Q.value.holder.sessionId,
2219
2233
  class: "tpl-block-lock tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm",
2220
2234
  style: L({
2221
- outline: `2px solid ${X.value.holder.color}`,
2235
+ outline: `2px solid ${Q.value.holder.color}`,
2222
2236
  outlineOffset: "-1px"
2223
2237
  })
2224
2238
  }, [N("span", {
2225
2239
  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",
2226
2240
  style: L({
2227
- backgroundColor: X.value.holder.color,
2228
- color: D(_r)(X.value.holder.color)
2241
+ backgroundColor: Q.value.holder.color,
2242
+ color: D(yr)(Q.value.holder.color)
2229
2243
  })
2230
- }, P(D(d)(D(l).collaboration.editing, { name: ce.value })), 5)], 12, io)) : k("", !0),
2231
- le.value === null ? k("", !0) : (c(), w("div", {
2232
- key: le.value,
2244
+ }, P(D(d)(D(l).collaboration.editing, { name: oe.value })), 5)], 12, oo)) : k("", !0),
2245
+ se.value === null ? k("", !0) : (c(), w("div", {
2246
+ key: se.value,
2233
2247
  "data-testid": "block-agent-highlight",
2234
2248
  "aria-hidden": "true",
2235
2249
  class: "tpl-block-agent-highlight tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm"
2236
2250
  })),
2237
- ne.value ? (c(), w("div", {
2251
+ te.value ? (c(), w("div", {
2238
2252
  key: 2,
2239
2253
  ref_key: "actionsElement",
2240
- ref: K,
2241
- style: L(oe.value),
2254
+ ref: q,
2255
+ style: L(ie.value),
2242
2256
  role: "toolbar",
2243
2257
  "aria-label": D(l).blockActions.drag,
2244
2258
  class: "tpl-block-actions tpl-fade-in tpl:absolute tpl:top-1/2 tpl:z-20 tpl:flex tpl:-translate-y-1/2 tpl:gap-0.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1 tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:shadow-[var(--tpl-shadow-md)] tpl:border tpl:border-[var(--tpl-border)]"
@@ -2252,81 +2266,81 @@ var La = [
2252
2266
  "aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
2253
2267
  title: D(l).blockActions.drag,
2254
2268
  onKeydown: v
2255
- }, [U(D(lr), {
2269
+ }, [W(D(dr), {
2256
2270
  size: 14,
2257
2271
  "stroke-width": 1.5
2258
- })], 40, oo),
2272
+ })], 40, co),
2259
2273
  N("button", {
2260
2274
  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",
2261
2275
  "aria-label": D(l).blockActions.duplicate,
2262
2276
  title: D(l).blockActions.duplicate,
2263
2277
  onClick: M(be, ["stop"])
2264
- }, [U(D(Gn), {
2278
+ }, [W(D(qn), {
2265
2279
  size: 14,
2266
2280
  "stroke-width": 1.5
2267
- })], 8, so),
2268
- H.value ? (c(), w("button", {
2281
+ })], 8, lo),
2282
+ U.value ? (c(), w("button", {
2269
2283
  key: 0,
2270
2284
  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",
2271
2285
  "aria-label": D(l).blockActions.saveAsBlock,
2272
2286
  title: D(l).blockActions.saveAsBlock,
2273
2287
  onClick: M(xe, ["stop"])
2274
- }, [U(D($n), {
2288
+ }, [W(D(tr), {
2275
2289
  size: 14,
2276
2290
  "stroke-width": 1.5
2277
- })], 8, co)) : k("", !0),
2291
+ })], 8, uo)) : k("", !0),
2278
2292
  N("button", {
2279
2293
  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",
2280
2294
  "aria-label": D(l).blockActions.delete,
2281
2295
  title: D(l).blockActions.delete,
2282
2296
  onClick: M(ye, ["stop"])
2283
- }, [U(D(rr), {
2297
+ }, [W(D(ar), {
2284
2298
  size: 14,
2285
2299
  "stroke-width": 1.5
2286
- })], 8, lo)
2287
- ], 12, ao)) : k("", !0),
2288
- S.value ? (c(), w("div", uo, [N("span", fo, [U(D(Yn), {
2300
+ })], 8, fo)
2301
+ ], 12, so)) : k("", !0),
2302
+ S.value ? (c(), w("div", po, [N("span", mo, [W(D(Zn), {
2289
2303
  size: 12,
2290
2304
  "stroke-width": 1.5
2291
2305
  }), T(" " + P(D(d)(D(l).blockActions.hiddenOnViewport, { viewport: ee.value })), 1)])])) : k("", !0),
2292
- F.value && !S.value ? (c(), w("div", po, [N("button", {
2306
+ F.value && !S.value ? (c(), w("div", ho, [N("button", {
2293
2307
  "data-testid": "condition-toggle",
2294
2308
  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)]",
2295
2309
  "aria-label": D(l).blockActions.conditionToggle,
2296
2310
  title: t.block.displayCondition?.label,
2297
2311
  onClick: M(Se, ["stop"])
2298
- }, [U(D(Xn), {
2312
+ }, [W(D(Qn), {
2299
2313
  size: 12,
2300
2314
  "stroke-width": 2
2301
- })], 8, mo)])) : k("", !0),
2315
+ })], 8, go)])) : k("", !0),
2302
2316
  he.value ? (c(), w("div", {
2303
2317
  key: 5,
2304
- class: O(["tpl-section-wrapper tpl-email-surface", D(Ni)(he.value)]),
2318
+ class: O(["tpl-section-wrapper tpl-email-surface", D(Fi)(he.value)]),
2305
2319
  style: L(he.value)
2306
2320
  }, [ge.value ? (c(), w("div", {
2307
2321
  key: 0,
2308
2322
  class: "tpl-band-frame",
2309
2323
  style: L(_e.value)
2310
2324
  }, [N("div", {
2311
- class: O(["tpl-block-content tpl-email-surface", D(Ni)(Q.value)]),
2312
- style: L(Q.value)
2325
+ class: O(["tpl-block-content tpl-email-surface", D(Fi)(me.value)]),
2326
+ style: L(me.value)
2313
2327
  }, [y(e.$slots, "default", {}, void 0, !0)], 6)], 4)) : (c(), w("div", {
2314
2328
  key: 1,
2315
- class: O(["tpl-block-content tpl-email-surface", D(Ni)(Q.value)]),
2316
- style: L(Q.value)
2329
+ class: O(["tpl-block-content tpl-email-surface", D(Fi)(me.value)]),
2330
+ style: L(me.value)
2317
2331
  }, [y(e.$slots, "default", {}, void 0, !0)], 6))], 6)) : (c(), w("div", {
2318
2332
  key: 6,
2319
- class: O(["tpl-block-content tpl-email-surface", D(Ni)(Q.value)]),
2320
- style: L(Q.value)
2333
+ class: O(["tpl-block-content tpl-email-surface", D(Fi)(me.value)]),
2334
+ style: L(me.value)
2321
2335
  }, [y(e.$slots, "default", {}, void 0, !0)], 6))
2322
- ], 10, no));
2336
+ ], 10, io));
2323
2337
  }
2324
2338
  }), [["__scopeId", "data-v-872194d3"]]);
2325
2339
  // src/utils/unwrapParagraph.ts
2326
- function go(e) {
2340
+ function vo(e) {
2327
2341
  let t = /^\s*<p\b/.exec(e);
2328
2342
  if (!t) return e;
2329
- let n = Ue(e, t[0].length);
2343
+ let n = qe(e, t[0].length);
2330
2344
  if (n === -1) return e;
2331
2345
  let r = /<\/p>\s*$/.exec(e);
2332
2346
  if (!r || r.index <= n) return e;
@@ -2334,22 +2348,22 @@ function go(e) {
2334
2348
  return /<\/p>\s*<p\b/i.test(i) ? e : i;
2335
2349
  }
2336
2350
  // src/components/blocks/TitleBlock.vue
2337
- var _o = /* @__PURE__ */ o({
2351
+ var yo = /* @__PURE__ */ o({
2338
2352
  __name: "TitleBlock",
2339
2353
  props: {
2340
2354
  block: {},
2341
2355
  viewport: {}
2342
2356
  },
2343
2357
  setup(e) {
2344
- let t = e, n = b(() => import("./TitleEditor-CzPkkL2s.js")), r = fn(Kt, "TitleBlock"), { isEditing: i, blockRef: o, toolbarPosition: s, resolvedContent: l, handleDoubleClick: u, handleEditorDone: d } = ja(() => t.block.content), f = I(() => {
2358
+ let t = e, n = b(() => import("./TitleEditor-ChPXTB9T.js")), r = Yt(qt, "TitleBlock"), { isEditing: i, blockRef: o, toolbarPosition: s, resolvedContent: l, handleDoubleClick: u, handleEditorDone: d } = Na(() => t.block.content), f = I(() => {
2345
2359
  let e = {
2346
- fontSize: `${at[t.block.level]}px`,
2347
- lineHeight: String(je),
2360
+ fontSize: `${je[t.block.level]}px`,
2361
+ lineHeight: String(xe),
2348
2362
  fontWeight: "700",
2349
2363
  textAlign: t.block.textAlign
2350
2364
  };
2351
2365
  return t.block.color && (e.color = t.block.color), t.block.fontFamily && (e.fontFamily = r.resolveFontFamily(t.block.fontFamily)), e;
2352
- }), p = I(() => `h${t.block.level}`), m = I(() => Wn(go(l.value)));
2366
+ }), p = I(() => `h${t.block.level}`), m = I(() => Kn(vo(l.value)));
2353
2367
  return (t, r) => (c(), w("div", {
2354
2368
  ref_key: "blockRef",
2355
2369
  ref: o,
@@ -2375,13 +2389,13 @@ var _o = /* @__PURE__ */ o({
2375
2389
  innerHTML: m.value
2376
2390
  }, null, 8, ["innerHTML"]))], 36));
2377
2391
  }
2378
- }), vo = "hero", yo = "#1f2937", bo = "#ffffff";
2379
- function xo(e, t) {
2380
- let n = ut("title", e);
2381
- n.color = bo, n.textAlign = "center";
2382
- let r = ut("paragraph", e);
2383
- r.content = `<p style="text-align: center"><span style="color: ${bo}">${So(t)}</span></p>`;
2384
- let i = ut("button", e);
2392
+ }), bo = "hero", xo = "#1f2937", So = "#ffffff";
2393
+ function Co(e, t) {
2394
+ let n = dt("title", e);
2395
+ n.color = So, n.textAlign = "center";
2396
+ let r = dt("paragraph", e);
2397
+ r.content = `<p style="text-align: center"><span style="color: ${So}">${wo(t)}</span></p>`;
2398
+ let i = dt("button", e);
2385
2399
  return i.align = "center", he({
2386
2400
  columns: "1",
2387
2401
  children: [[
@@ -2400,28 +2414,28 @@ function xo(e, t) {
2400
2414
  bottom: 48,
2401
2415
  left: 24
2402
2416
  },
2403
- backgroundColor: yo
2417
+ backgroundColor: xo
2404
2418
  }
2405
2419
  });
2406
2420
  }
2407
- function So(e) {
2421
+ function wo(e) {
2408
2422
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
2409
2423
  }
2410
2424
  // src/utils/sectionColumnDrop.ts
2411
- var Co = /* @__PURE__ */ new Set(["section", vo]);
2412
- function wo(e) {
2413
- return e.dataset.blockType !== "section" && !Co.has(e.dataset.paletteType ?? "");
2425
+ var To = /* @__PURE__ */ new Set(["section", bo]);
2426
+ function Eo(e) {
2427
+ return e.dataset.blockType !== "section" && !To.has(e.dataset.paletteType ?? "");
2414
2428
  }
2415
2429
  // src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
2416
- var To = { class: "tpl:relative tpl:w-full" }, Eo = {
2430
+ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
2417
2431
  key: 0,
2418
2432
  "data-testid": "hero-image-hint",
2419
2433
  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)]"
2420
- }, Do = {
2434
+ }, ko = {
2421
2435
  key: 0,
2422
2436
  "data-testid": "section-drop-hint",
2423
2437
  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)]"
2424
- }, Oo = /* @__PURE__ */ o({
2438
+ }, Ao = /* @__PURE__ */ o({
2425
2439
  __name: "SectionBlock",
2426
2440
  props: {
2427
2441
  block: {},
@@ -2430,20 +2444,21 @@ var To = { class: "tpl:relative tpl:w-full" }, Eo = {
2430
2444
  },
2431
2445
  setup(e) {
2432
2446
  let t = {
2433
- title: _o,
2434
- paragraph: Na,
2435
- image: Ea,
2436
- button: Ji,
2437
- divider: ca,
2438
- custom: oa
2439
- }, n = e, { t: r } = W(), o = fn(hn, "SectionBlock"), { displayBlock: s } = vt(o), u = I(() => n.sourceBlock ?? n.block), m = g(Qt, I(() => /* @__PURE__ */ new Set()));
2440
- d(Qt, I(() => /* @__PURE__ */ new Set([...m.value, ...Object.entries(u.value.l10n ?? {}).filter(([, e]) => e.hidden).map(([e]) => e)])));
2441
- let h = g(rn, null), _ = g(nn, null), v = g(Jt, {}), y = g(Wt, null);
2442
- function b(e) {
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()));
2454
+ 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);
2456
+ function x(e) {
2457
+ if (y?.value) return;
2443
2458
  let t = v.savedBlocks;
2444
2459
  t?.isPicking.value ? t.togglePick(n.block.id) : o.selectBlock(e);
2445
2460
  }
2446
- let x = I(() => {
2461
+ let S = I(() => {
2447
2462
  switch (n.block.columns) {
2448
2463
  case "2": return ["50%", "50%"];
2449
2464
  case "3": return [
@@ -2468,57 +2483,58 @@ var To = { class: "tpl:relative tpl:w-full" }, Eo = {
2468
2483
  ];
2469
2484
  default: return ["100%"];
2470
2485
  }
2471
- }), S = I(() => {
2472
- let e = x.value.length, t = [...(o.state.previewMode ? n.block : u.value).children];
2486
+ }), C = I(() => {
2487
+ let e = S.value.length, t = [...(o.state.previewMode ? n.block : u.value).children];
2473
2488
  for (; t.length < e;) t.push([]);
2474
2489
  return t.slice(0, e);
2475
- }), C = I(() => n.viewport === "mobile" && n.block.stackOnMobile !== !1);
2476
- function T(e) {
2477
- return S.value[e] || [];
2478
- }
2490
+ }), T = I(() => n.viewport === "mobile" && n.block.stackOnMobile !== !1);
2479
2491
  function E(e) {
2480
- return y?.value === !1 || !h?.isHidden(e);
2492
+ return C.value[e] || [];
2481
2493
  }
2482
2494
  function ee(e) {
2483
- return !T(e).some((e) => E(e.id));
2495
+ return b?.value === !1 || !h?.isHidden(e);
2496
+ }
2497
+ function j(e) {
2498
+ return !E(e).some((e) => ee(e.id));
2484
2499
  }
2485
- let j = V(null);
2486
- function M(e) {
2487
- return o.state.previewMode ? !1 : ee(e) ? !0 : j.value === e && T(e).filter((e) => E(e.id)).length <= 1;
2500
+ let M = H(null);
2501
+ function F(e) {
2502
+ return o.state.previewMode ? !1 : j(e) ? !0 : M.value === e && E(e).filter((e) => ee(e.id)).length <= 1;
2488
2503
  }
2489
- let F = I(() => {
2504
+ let R = I(() => {
2490
2505
  if (o.state.previewMode) return !1;
2491
- let e = it(n.block);
2506
+ let e = Fe(n.block);
2492
2507
  return e !== null && !e.applied && e.reason === "image";
2493
2508
  });
2494
- function R(e) {
2495
- return T(e).length === 0 && !o.state.previewMode;
2496
- }
2497
2509
  function B(e) {
2498
- return T(e).length === 0 && o.state.previewMode;
2510
+ return E(e).length === 0 && !o.state.previewMode;
2499
2511
  }
2500
- function ne(e, t) {
2501
- Pa(o, t, n.block.id, e);
2512
+ function te(e) {
2513
+ return E(e).length === 0 && o.state.previewMode;
2502
2514
  }
2503
- function G(e) {
2504
- return Oi(e, _, t);
2515
+ function K(e, t) {
2516
+ y?.value || Ia(o, t, n.block.id, e);
2505
2517
  }
2506
- function re(e, t) {
2507
- e.type === "custom" && o.updateBlock(e.id, {
2518
+ function ne(e) {
2519
+ return Ai(e, _, t);
2520
+ }
2521
+ function q(e, t) {
2522
+ y?.value || e.type !== "custom" || o.updateBlock(e.id, {
2508
2523
  fieldValues: t.fieldValues,
2509
2524
  dataSourceFetched: t.dataSourceFetched
2510
2525
  });
2511
2526
  }
2512
- return (t, u) => (c(), w("div", To, [F.value ? (c(), w("div", Eo, [N("span", null, P(D(r).section.heroAddImage), 1)])) : k("", !0), N("div", { class: O(["tpl:flex tpl:gap-0", { "tpl:flex-col": C.value }]) }, [(c(!0), w(H, null, p(S.value, (t, d) => (c(), w("div", {
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", {
2513
2528
  key: d,
2514
- class: O(["tpl:relative tpl:flex tpl:flex-col tpl:rounded", R(d) ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
2515
- style: L({ width: C.value ? "100%" : x.value[d] })
2516
- }, [U(D(te), {
2517
- "model-value": T(d),
2529
+ class: O(["tpl:relative tpl:flex tpl:flex-col tpl:rounded", B(d) ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
2530
+ style: L({ width: T.value ? "100%" : S.value[d] })
2531
+ }, [W(D(V), {
2532
+ disabled: D(y) ?? !1,
2533
+ "model-value": E(d),
2518
2534
  group: {
2519
2535
  name: "blocks",
2520
2536
  pull: !0,
2521
- put: (e, t, n) => D(wo)(n)
2537
+ put: (e, t, n) => D(Eo)(n)
2522
2538
  },
2523
2539
  animation: 150,
2524
2540
  "ghost-class": "tpl-ghost",
@@ -2529,27 +2545,27 @@ var To = { class: "tpl:relative tpl:w-full" }, Eo = {
2529
2545
  "empty-insert-threshold": 20,
2530
2546
  "force-fallback": !0,
2531
2547
  class: O(["tpl:grow", {
2532
- "tpl:min-h-[60px]": M(d),
2533
- "tpl:min-h-[34px]": B(d)
2548
+ "tpl:min-h-[60px]": F(d),
2549
+ "tpl:min-h-[34px]": te(d)
2534
2550
  }]),
2535
- onUpdate: (e) => D(Pa)(D(o), T(d), n.block.id, d, e),
2536
- onStart: (e) => j.value = d,
2537
- onEnd: u[0] ||= (e) => j.value = null,
2538
- "onUpdate:modelValue": (e) => ne(d, e)
2551
+ onUpdate: (e) => !D(y) && D(Ia)(D(o), E(d), n.block.id, d, e),
2552
+ onStart: (e) => M.value = d,
2553
+ onEnd: u[0] ||= (e) => M.value = null,
2554
+ "onUpdate:modelValue": (e) => K(d, e)
2539
2555
  }, {
2540
- default: l(() => [(c(!0), w(H, null, p(T(d), (t) => f((c(), w("div", { key: t.id }, [U(ho, {
2556
+ default: l(() => [(c(!0), w(U, null, p(E(d), (t) => f((c(), w("div", { key: t.id }, [W(_o, {
2541
2557
  block: t,
2542
2558
  "display-block": D(s)(t),
2543
2559
  "is-selected": D(o).state.selectedBlockId === t.id,
2544
2560
  viewport: e.viewport,
2545
2561
  "preview-mode": D(o).state.previewMode,
2546
2562
  nested: "",
2547
- onSelect: (e) => b(t.id)
2563
+ onSelect: (e) => x(t.id)
2548
2564
  }, {
2549
- default: l(() => [(c(), A(a(G(t)), i({ block: D(s)(t) }, { ref_for: !0 }, t.type === "section" ? { sourceBlock: t } : {}, {
2565
+ default: l(() => [(c(), A(a(ne(t)), i({ block: D(s)(t) }, { ref_for: !0 }, t.type === "section" ? { sourceBlock: t } : {}, {
2550
2566
  viewport: e.viewport,
2551
- onFetchData: (e) => re(t, e),
2552
- onUpdate: (e) => D(o).updateBlock(t.id, e)
2567
+ onFetchData: (e) => q(t, e),
2568
+ onUpdate: (e) => !D(y) && D(o).updateBlock(t.id, e)
2553
2569
  }), null, 16, [
2554
2570
  "block",
2555
2571
  "viewport",
@@ -2564,23 +2580,24 @@ var To = { class: "tpl:relative tpl:w-full" }, Eo = {
2564
2580
  "viewport",
2565
2581
  "preview-mode",
2566
2582
  "onSelect"
2567
- ])])), [[z, E(t.id)]])), 128))]),
2583
+ ])])), [[z, ee(t.id)]])), 128))]),
2568
2584
  _: 2
2569
2585
  }, 1032, [
2586
+ "disabled",
2570
2587
  "model-value",
2571
2588
  "group",
2572
2589
  "class",
2573
2590
  "onUpdate",
2574
2591
  "onStart",
2575
2592
  "onUpdate:modelValue"
2576
- ]), R(d) ? (c(), w("div", Do, [N("span", null, P(D(r).section.dropHere), 1)])) : k("", !0)], 6))), 128))], 2)]));
2593
+ ]), B(d) ? (c(), w("div", ko, [N("span", null, P(D(r).section.dropHere), 1)])) : k("", !0)], 6))), 128))], 2)]));
2577
2594
  }
2578
- }), ko = ["width", "height"], Ao = [
2595
+ }), jo = ["width", "height"], Mo = [
2579
2596
  "d",
2580
2597
  "stroke",
2581
2598
  "stroke-opacity",
2582
2599
  "stroke-width"
2583
- ], jo = ["d", "fill"], Mo = /* @__PURE__ */ o({
2600
+ ], No = ["d", "fill"], Po = /* @__PURE__ */ o({
2584
2601
  __name: "SocialIconSvg",
2585
2602
  props: {
2586
2603
  platform: {},
@@ -2589,7 +2606,7 @@ var To = { class: "tpl:relative tpl:w-full" }, Eo = {
2589
2606
  iconSize: {}
2590
2607
  },
2591
2608
  setup(e) {
2592
- let t = e, n = I(() => Mn[t.platform]), r = I(() => Pn[t.iconSize]), i = I(() => qe(t.platform, t.iconTone)), a = I(() => Me(t.iconStyle, t.iconTone)), o = I(() => {
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(() => {
2593
2610
  let e = {
2594
2611
  display: "inline-flex",
2595
2612
  alignItems: "center",
@@ -2627,7 +2644,7 @@ var To = { class: "tpl:relative tpl:w-full" }, Eo = {
2627
2644
  };
2628
2645
  default: return e;
2629
2646
  }
2630
- }), s = I(() => $e(t.iconStyle)), l = I(() => Math.floor(r.value * s.value));
2647
+ }), s = I(() => Me(t.iconStyle)), l = I(() => Math.floor(r.value * s.value));
2631
2648
  function u(e) {
2632
2649
  let t = `${e.width / 2 * r.value / 24}px`, n = Math.round(e.opacity * 255).toString(16).padStart(2, "0"), i = `${e.color}${n}`;
2633
2650
  return `0 0 0 ${t} ${i}, inset 0 0 0 ${t} ${i}`;
@@ -2648,36 +2665,36 @@ var To = { class: "tpl:relative tpl:w-full" }, Eo = {
2648
2665
  "stroke-opacity": a.value.opacity,
2649
2666
  "stroke-width": a.value.width / s.value,
2650
2667
  "stroke-linejoin": "round"
2651
- }, null, 8, Ao)) : k("", !0), N("path", {
2668
+ }, null, 8, Mo)) : k("", !0), N("path", {
2652
2669
  d: n.value.path,
2653
2670
  fill: d.value
2654
- }, null, 8, jo)], 8, ko))], 4));
2671
+ }, null, 8, No)], 8, jo))], 4));
2655
2672
  }
2656
- }), No = { class: "tpl:w-full" }, Po = ["href"], Fo = {
2673
+ }), Fo = { class: "tpl:w-full" }, Io = ["href"], Lo = {
2657
2674
  key: 1,
2658
2675
  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)]"
2659
- }, Io = /* @__PURE__ */ o({
2676
+ }, Ro = /* @__PURE__ */ o({
2660
2677
  __name: "SocialIconsBlock",
2661
2678
  props: {
2662
2679
  block: {},
2663
2680
  viewport: {}
2664
2681
  },
2665
2682
  setup(e) {
2666
- let t = e, { t: n } = W(), r = I(() => ({
2683
+ let t = e, { t: n } = G(), r = I(() => ({
2667
2684
  display: "flex",
2668
2685
  flexWrap: "wrap",
2669
2686
  gap: `${t.block.spacing}px`,
2670
2687
  justifyContent: t.block.align === "left" ? "flex-start" : t.block.align === "right" ? "flex-end" : "center"
2671
2688
  })), i = I(() => t.block.icons.length > 0);
2672
- return (t, a) => (c(), w("div", No, [i.value ? (c(), w("div", {
2689
+ return (t, a) => (c(), w("div", Fo, [i.value ? (c(), w("div", {
2673
2690
  key: 0,
2674
2691
  style: L(r.value)
2675
- }, [(c(!0), w(H, null, p(e.block.icons, (t) => (c(), w("a", {
2692
+ }, [(c(!0), w(U, null, p(e.block.icons, (t) => (c(), w("a", {
2676
2693
  key: t.id,
2677
2694
  href: t.url || "#",
2678
2695
  class: "tpl:cursor-default",
2679
2696
  onClick: a[0] ||= M(() => {}, ["prevent"])
2680
- }, [U(Mo, {
2697
+ }, [W(Po, {
2681
2698
  platform: t.platform,
2682
2699
  "icon-style": e.block.iconStyle,
2683
2700
  "icon-tone": e.block.iconTone,
@@ -2687,44 +2704,46 @@ var To = { class: "tpl:relative tpl:w-full" }, Eo = {
2687
2704
  "icon-style",
2688
2705
  "icon-tone",
2689
2706
  "icon-size"
2690
- ])], 8, Po))), 128))], 4)) : (c(), w("div", Fo, [U(D(ir), { size: 16 }), N("span", null, P(D(n).social.addIcons), 1)]))]));
2707
+ ])], 8, Io))), 128))], 4)) : (c(), w("div", Lo, [W(D(or), { size: 16 }), N("span", null, P(D(n).social.addIcons), 1)]))]));
2691
2708
  }
2692
- }), Lo = { class: "tpl:w-full" }, Ro = {
2709
+ }), zo = { class: "tpl:w-full" }, Bo = {
2693
2710
  key: 0,
2694
2711
  class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
2695
2712
  style: {
2696
2713
  "background-color": "var(--tpl-bg-hover)",
2697
2714
  color: "var(--tpl-text-dim)"
2698
2715
  }
2699
- }, zo = /* @__PURE__ */ o({
2716
+ }, Vo = /* @__PURE__ */ o({
2700
2717
  __name: "SpacerBlock",
2701
2718
  props: {
2702
2719
  block: {},
2703
2720
  viewport: {}
2704
2721
  },
2705
2722
  setup(e) {
2706
- let t = e, n = fn(hn, "SpacerBlock"), r = I(() => ({
2723
+ let t = e, n = Yt(_n, "SpacerBlock"), r = I(() => ({
2707
2724
  height: `${t.block.height}px`,
2708
2725
  minHeight: `${t.block.height}px`,
2709
2726
  ...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
2710
2727
  }));
2711
- return (t, i) => (c(), w("div", Lo, [N("div", {
2728
+ return (t, i) => (c(), w("div", zo, [N("div", {
2712
2729
  style: L(r.value),
2713
2730
  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 }])
2714
- }, [D(n).state.previewMode ? k("", !0) : (c(), w("span", Ro, P(e.block.height) + "px ", 1))], 6)]));
2731
+ }, [D(n).state.previewMode ? k("", !0) : (c(), w("span", Bo, P(e.block.height) + "px ", 1))], 6)]));
2715
2732
  }
2716
- }), Bo = { class: "tpl:w-full" }, Vo = { key: 0 }, Ho = [
2733
+ }), Ho = { class: "tpl:w-full" }, Uo = { key: 0 }, Wo = [
2717
2734
  "aria-label",
2735
+ "contenteditable",
2718
2736
  "data-placeholder",
2719
2737
  "onBlur"
2720
- ], Uo = [
2738
+ ], Go = [
2721
2739
  "aria-label",
2740
+ "contenteditable",
2722
2741
  "data-placeholder",
2723
2742
  "onBlur"
2724
- ], Wo = {
2743
+ ], Ko = {
2725
2744
  key: 1,
2726
2745
  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)]"
2727
- }, Go = /*#__PURE__*/ gr(/* @__PURE__ */ o({
2746
+ }, qo = /*#__PURE__*/ vr(/* @__PURE__ */ o({
2728
2747
  __name: "TableBlock",
2729
2748
  props: {
2730
2749
  block: {},
@@ -2738,7 +2757,7 @@ var To = { class: "tpl:relative tpl:w-full" }, Eo = {
2738
2757
  updated(e, t) {
2739
2758
  t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
2740
2759
  }
2741
- }, n = e, { t: r } = W(), i = fn(hn, "TableBlock"), a = fn(Kt, "TableBlock"), o = I(() => n.block.rows.length > 0), s = I(() => {
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(() => {
2742
2761
  let e = {
2743
2762
  width: "100%",
2744
2763
  borderCollapse: "collapse",
@@ -2747,53 +2766,54 @@ var To = { class: "tpl:relative tpl:w-full" }, Eo = {
2747
2766
  fontFamily: n.block.fontFamily ? a.resolveFontFamily(n.block.fontFamily) : "inherit"
2748
2767
  };
2749
2768
  return n.block.color && (e.color = n.block.color), e;
2750
- }), l = I(() => ({
2769
+ }), u = I(() => ({
2751
2770
  border: `${n.block.borderWidth}px solid ${n.block.borderColor}`,
2752
2771
  padding: `${n.block.cellPadding}px`,
2753
2772
  textAlign: n.block.textAlign
2754
- })), u = I(() => ({
2755
- ...l.value,
2773
+ })), d = I(() => ({
2774
+ ...u.value,
2756
2775
  fontWeight: "bold",
2757
2776
  backgroundColor: n.block.headerBackgroundColor || "transparent"
2758
- })), d = I(() => n.block.hasHeaderRow && n.block.rows.length > 0 ? n.block.rows[0] : null), m = I(() => n.block.hasHeaderRow ? n.block.rows.slice(1) : n.block.rows);
2759
- function h() {
2760
- i.selectBlock(n.block.id);
2777
+ })), m = I(() => n.block.hasHeaderRow && n.block.rows.length > 0 ? n.block.rows[0] : null), h = I(() => n.block.hasHeaderRow ? n.block.rows.slice(1) : n.block.rows);
2778
+ function _() {
2779
+ o?.value || i.selectBlock(n.block.id);
2761
2780
  }
2762
- function g(e, t, r) {
2763
- let a = r.target.innerText.trim(), o = n.block.rows.map((n) => n.id === e ? {
2781
+ function v(e, t, r) {
2782
+ if (o?.value) return;
2783
+ let a = r.target.innerText.trim(), s = n.block.rows.map((n) => n.id === e ? {
2764
2784
  ...n,
2765
2785
  cells: n.cells.map((e) => e.id === t ? {
2766
2786
  ...e,
2767
2787
  content: a
2768
2788
  } : e)
2769
2789
  } : n);
2770
- i.updateBlock(n.block.id, { rows: o });
2790
+ i.updateBlock(n.block.id, { rows: s });
2771
2791
  }
2772
- return (e, n) => (c(), w("div", Bo, [o.value ? (c(), w("table", {
2792
+ return (e, n) => (c(), w("div", Ho, [s.value ? (c(), w("table", {
2773
2793
  key: 0,
2774
- style: L(s.value),
2794
+ style: L(l.value),
2775
2795
  class: "tpl-table-editable"
2776
- }, [d.value ? (c(), w("thead", Vo, [N("tr", null, [(c(!0), w(H, null, p(d.value.cells, (e) => f((c(), w("th", {
2796
+ }, [m.value ? (c(), w("thead", Uo, [N("tr", null, [(c(!0), w(U, null, p(m.value.cells, (e) => f((c(), w("th", {
2777
2797
  key: e.id,
2778
- style: L(u.value),
2798
+ style: L(d.value),
2779
2799
  "aria-label": D(r).table.cellPlaceholder,
2780
- contenteditable: "true",
2800
+ contenteditable: D(o) ? "false" : "true",
2781
2801
  "data-placeholder": D(r).table.cellPlaceholder,
2782
- onBlur: (t) => g(d.value.id, e.id, t),
2802
+ onBlur: (t) => v(m.value.id, e.id, t),
2783
2803
  onKeydown: n[0] ||= E(M((e) => e.target.blur(), ["prevent"]), ["enter"]),
2784
- onClick: M(h, ["stop"])
2785
- }, null, 44, Ho)), [[t, e.content]])), 128))])])) : k("", !0), N("tbody", null, [(c(!0), w(H, null, p(m.value, (e) => (c(), w("tr", { key: e.id }, [(c(!0), w(H, null, p(e.cells, (i) => f((c(), w("td", {
2804
+ 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", {
2786
2806
  key: i.id,
2787
- style: L(l.value),
2807
+ style: L(u.value),
2788
2808
  "aria-label": D(r).table.cellPlaceholder,
2789
- contenteditable: "true",
2809
+ contenteditable: D(o) ? "false" : "true",
2790
2810
  "data-placeholder": D(r).table.cellPlaceholder,
2791
- onBlur: (t) => g(e.id, i.id, t),
2811
+ onBlur: (t) => v(e.id, i.id, t),
2792
2812
  onKeydown: n[1] ||= E(M((e) => e.target.blur(), ["prevent"]), ["enter"]),
2793
- onClick: M(h, ["stop"])
2794
- }, null, 44, Uo)), [[t, i.content]])), 128))]))), 128))])], 4)) : (c(), w("div", Wo, [U(D(cr), { size: 16 }), N("span", null, P(D(r).table.empty), 1)]))]));
2813
+ 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)]))]));
2795
2815
  }
2796
- }), [["__scopeId", "data-v-6751d456"]]), Ko = /* @__PURE__ */ o({
2816
+ }), [["__scopeId", "data-v-73b9f5e5"]]), Jo = /* @__PURE__ */ o({
2797
2817
  __name: "VideoPlayButton",
2798
2818
  props: { hoverEffect: {
2799
2819
  type: Boolean,
@@ -2810,7 +2830,7 @@ var To = { class: "tpl:relative tpl:w-full" }, Eo = {
2810
2830
  }
2811
2831
  });
2812
2832
  // src/utils/videoThumbnail.ts
2813
- function qo(e) {
2833
+ function Yo(e) {
2814
2834
  if (!e) return {
2815
2835
  platform: "unknown",
2816
2836
  videoId: null,
@@ -2842,24 +2862,24 @@ function qo(e) {
2842
2862
  thumbnailUrl: null
2843
2863
  };
2844
2864
  }
2845
- function Jo(e, t) {
2846
- return t || qo(e).thumbnailUrl;
2865
+ function Xo(e, t) {
2866
+ return t || Yo(e).thumbnailUrl;
2847
2867
  }
2848
2868
  // src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
2849
- var Yo = ["src", "alt"], Xo = {
2869
+ var Zo = ["src", "alt"], Qo = {
2850
2870
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
2851
2871
  style: { opacity: "0.7" }
2852
- }, Zo = ["href"], Qo = ["src", "alt"], $o = ["src", "alt"], es = {
2872
+ }, $o = ["href"], es = ["src", "alt"], ts = ["src", "alt"], ns = {
2853
2873
  key: 3,
2854
2874
  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)]"
2855
- }, ts = /* @__PURE__ */ o({
2875
+ }, rs = /* @__PURE__ */ o({
2856
2876
  __name: "VideoBlock",
2857
2877
  props: {
2858
2878
  block: {},
2859
2879
  viewport: {}
2860
2880
  },
2861
2881
  setup(e) {
2862
- let t = e, { t: n } = W(), { syntax: r } = G(), i = I(() => Ce(t.block.url, r) || Ce(t.block.thumbnailUrl, r)), a = Dn(() => i.value ? void 0 : t.block.thumbnailUrl || void 0), o = Dn(() => i.value ? t.block.placeholderUrl : void 0), s = I(() => i.value ? null : t.block.thumbnailUrl ? a.value ?? null : Jo(t.block.url)), l = I(() => ({ textAlign: t.block.align })), u = I(() => {
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(() => {
2863
2883
  let e = t.block.align;
2864
2884
  return {
2865
2885
  maxWidth: "100%",
@@ -2869,7 +2889,7 @@ var Yo = ["src", "alt"], Xo = {
2869
2889
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
2870
2890
  marginRight: e === "center" ? "auto" : void 0
2871
2891
  };
2872
- }), d = I(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), f = I(() => Ce(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
2892
+ }), d = I(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), f = I(() => we(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
2873
2893
  return (t, r) => (c(), w("div", {
2874
2894
  class: "tpl:w-full",
2875
2895
  style: L(l.value)
@@ -2882,16 +2902,16 @@ var Yo = ["src", "alt"], Xo = {
2882
2902
  src: D(o),
2883
2903
  alt: e.block.alt,
2884
2904
  style: L(d.value)
2885
- }, null, 12, Yo), U(Ko)], 4)) : i.value ? (c(), w("div", {
2905
+ }, null, 12, Zo), W(Jo)], 4)) : i.value ? (c(), w("div", {
2886
2906
  key: 1,
2887
2907
  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)]",
2888
2908
  style: L([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, u.value])
2889
- }, [U(D(sr), {
2909
+ }, [W(D(lr), {
2890
2910
  size: 36,
2891
2911
  "stroke-width": 1.5,
2892
2912
  class: "tpl:text-[var(--tpl-primary)]",
2893
2913
  style: { opacity: "0.5" }
2894
- }), N("span", Xo, [U(Ki, { text: f.value }, null, 8, ["text"])])], 4)) : s.value ? (c(), w(H, { key: 2 }, [e.block.url ? (c(), w("a", {
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", {
2895
2915
  key: 0,
2896
2916
  href: e.block.url,
2897
2917
  target: "_blank",
@@ -2904,7 +2924,7 @@ var Yo = ["src", "alt"], Xo = {
2904
2924
  src: s.value,
2905
2925
  alt: e.block.alt,
2906
2926
  style: L(d.value)
2907
- }, null, 12, Qo), U(Ko, { "hover-effect": "" })], 12, Zo)) : (c(), w("div", {
2927
+ }, null, 12, es), W(Jo, { "hover-effect": "" })], 12, $o)) : (c(), w("div", {
2908
2928
  key: 1,
2909
2929
  class: "tpl:relative tpl:inline-block",
2910
2930
  style: L(u.value)
@@ -2913,53 +2933,53 @@ var Yo = ["src", "alt"], Xo = {
2913
2933
  src: s.value,
2914
2934
  alt: e.block.alt,
2915
2935
  style: L(d.value)
2916
- }, null, 12, $o), U(Ko)], 4))], 64)) : (c(), w("div", es, [U(D(sr), {
2936
+ }, null, 12, ts), W(Jo)], 4))], 64)) : (c(), w("div", ns, [W(D(lr), {
2917
2937
  size: 40,
2918
2938
  "stroke-width": 1.5,
2919
2939
  class: "tpl:text-[var(--tpl-border-light)]"
2920
2940
  }), N("span", null, P(D(n).video.addVideo), 1)]))], 4));
2921
2941
  }
2922
- }), ns = {
2923
- section: Oo,
2924
- title: _o,
2925
- paragraph: Na,
2926
- image: Ea,
2927
- button: Ji,
2928
- divider: ca,
2929
- video: ts,
2930
- social: Io,
2931
- menu: Aa,
2932
- table: Go,
2933
- spacer: zo,
2934
- html: ma,
2935
- countdown: b(() => import("./CountdownBlock-8aPSExrv.js"))
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"))
2936
2956
  };
2937
- function rs(t) {
2938
- let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: s } = W(i), c = I(() => Re(Re(Re(ri(i), Ci(n.content.value.settings?.locale)), Fe(n.content.value.settings) === "rtl" ? {
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" ? {
2939
2959
  title: { textAlign: "right" },
2940
2960
  table: { textAlign: "right" }
2941
2961
  } : {}), r.blockDefaults ?? {}));
2942
2962
  n.setUiTheme(r.uiTheme ?? "auto");
2943
- let { resolvedTheme: l } = Jr(I(() => n.state.uiTheme)), f = V(r.theme ?? {}), { themeStyles: p } = Dr({
2963
+ let { resolvedTheme: l } = Xr(I(() => n.state.uiTheme)), f = H(r.theme ?? {}), { themeStyles: p } = kr({
2944
2964
  themeOverrides: f,
2945
2965
  resolvedTheme: l,
2946
2966
  extraStyles: () => ({
2947
2967
  "--tpl-drop-text": `"${i.canvas.dropHere}"`,
2948
2968
  ...t.themeExtraStyles?.()
2949
2969
  })
2950
- }), m = t.history ?? xn({
2970
+ }), m = t.history ?? Cn({
2951
2971
  content: n.content,
2952
2972
  setContent: (e, t) => n.setContent(e, t)
2953
2973
  });
2954
- t.history || Tn(n, m);
2955
- let h = Bn({
2974
+ t.history || Dn(n, m);
2975
+ let h = Hn({
2956
2976
  addBlock: n.addBlock,
2957
2977
  removeBlock: n.removeBlock,
2958
2978
  updateBlock: n.updateBlock,
2959
2979
  selectBlock: n.selectBlock,
2960
2980
  findBlockLocation: n.findBlockLocation,
2961
2981
  blockDefaults: () => c.value
2962
- }), g = wn(n), _ = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? En({
2982
+ }), g = En(n), _ = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? On({
2963
2983
  content: n.content,
2964
2984
  isDirty: () => n.state.isDirty,
2965
2985
  ...t.autoSaveOptions
@@ -2967,27 +2987,27 @@ function rs(t) {
2967
2987
  _ && (y = u(m.isNavigating, (e) => {
2968
2988
  e ? _.pause() : _.resume();
2969
2989
  }));
2970
- let b = qr(n, {
2990
+ let b = Yr(n, {
2971
2991
  t: o,
2972
2992
  format: s
2973
- }, r.customBlocks ?? []), x = mt(r.colors);
2993
+ }, r.customBlocks ?? []), x = ht(r.colors);
2974
2994
  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) {
2975
- let e = ni(x.presets, r.blockDefaults, r.templateDefaults);
2995
+ let e = ii(x.presets, r.blockDefaults, r.templateDefaults);
2976
2996
  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.`);
2977
2997
  }
2978
- let S = Vn(r.templateSettings);
2979
- for (let e of S.unknown) $.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${Hn.join(", ")}) — skipping it.`);
2980
- let w = xr();
2981
- $r(w, ns);
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);
2982
3002
  let T = /* @__PURE__ */ new Set();
2983
3003
  function E(e) {
2984
3004
  for (let t of e) {
2985
- w.registerCustom(t, oa);
2986
- for (let e of wi(t, x)) T.has(e.id) || (T.add(e.id), $.warn(e.message));
3005
+ w.registerCustom(t, ca);
3006
+ for (let e of Ei(t, x)) T.has(e.id) || (T.add(e.id), $.warn(e.message));
2987
3007
  }
2988
3008
  }
2989
3009
  r.customBlocks?.length && E(r.customBlocks);
2990
- let D = Rr();
3010
+ let D = Br();
2991
3011
  if (C() && v(D.dispose), t.containerEl) {
2992
3012
  let n = t.containerEl;
2993
3013
  e(document, "pointerdown", (e) => {
@@ -3000,7 +3020,7 @@ function rs(t) {
3000
3020
  e ? e.save() : _?.flush();
3001
3021
  }
3002
3022
  function ee(e) {
3003
- D.isActive() && Ei(e, {
3023
+ D.isActive() && Oi(e, {
3004
3024
  history: m,
3005
3025
  selectBlock: (e) => n.selectBlock(e),
3006
3026
  getSelectedBlockId: () => n.state.selectedBlockId,
@@ -3012,41 +3032,41 @@ function rs(t) {
3012
3032
  });
3013
3033
  }
3014
3034
  e(document, "keydown", ee);
3015
- let k = V(null), A = t.editorRoot ?? document;
3016
- d(vn, A), d(cn, k), d(Ct, /* @__PURE__ */ new Map()), d(an, i), d(hn, n), d(_n, m), d(dn, h), d(rn, g), d(Kt, a), d(pn, p), d(Gt, l), d(qt, c), d($t, r.locale), d(nn, w), d(Zt, r.customBlocks ?? []), d(kt, r.paletteBlocks), d(It, ei(r.htmlBlockPreview)), d(Lt, r.layout), d(Ht, r.sectionWrapper), d(sn, x), d(Yt, S.fields), d(Xt, Yr(n.content, w));
3017
- let j = nt(r.mergeTags?.syntax);
3035
+ 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));
3037
+ let j = it(r.mergeTags?.syntax);
3018
3038
  for (let e of ["opener", "closer"]) {
3019
3039
  let t = j[e];
3020
3040
  typeof t == "string" && t.trim() === "" && $.warn(`config.mergeTags.syntax.${e} is blank — ignoring it.`);
3021
3041
  }
3022
- typeof j.opener != "string" && typeof j.closer == "string" && j.closer.trim() !== "" && Te(j) === null && $.warn("config.mergeTags.syntax.closer has no effect without an opener — set opener to turn on autocomplete for this syntax.");
3042
+ typeof j.opener != "string" && typeof j.closer == "string" && j.closer.trim() !== "" && Ee(j) === null && $.warn("config.mergeTags.syntax.closer has no effect without an opener — set opener to turn on autocomplete for this syntax.");
3023
3043
  let M = R(r.mergeTags?.tags ?? []);
3024
3044
  function N(e) {
3025
3045
  Array.isArray(e) ? M.value = e : $.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
3026
3046
  }
3027
- d(Pt, M), d(xt, j), d(Tt, r.mergeTags?.onRequest ?? null), d(wt, r.mergeTags?.autocomplete !== !1), d(yn, r.mergeTags?.showRawValue !== !1);
3028
- let P = V(we(r.mergeTags?.tags ?? []));
3029
- d(Ft, P);
3030
- let F = Vr({
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);
3048
+ let P = H(Te(r.mergeTags?.tags ?? []));
3049
+ d(It, P);
3050
+ let F = Ur({
3031
3051
  resolvePreview: r.resolvePreview,
3032
3052
  getContent: () => {
3033
3053
  let e = n.content.value;
3034
3054
  if (!n.state.previewMode) return e;
3035
- let t = n.activeLocale?.value ?? e.settings.locale ?? "en", i = ve(e, t);
3036
- return r.layout ? Je(ve(r.layout, t, { missing: "default" }), i) : i;
3055
+ let t = n.activeLocale?.value ?? e.settings.locale ?? "en", i = ae(e, t);
3056
+ return r.layout ? Xe(ae(r.layout, t, { missing: "default" }), i) : i;
3037
3057
  },
3038
3058
  isActive: () => n.state.previewMode,
3039
3059
  getLocale: () => n.activeLocale?.value ?? n.content.value.settings.locale
3040
3060
  });
3041
- d(Ot, F), d(Vt, r.resolvePreview);
3061
+ d(Ot, F), d(Ht, r.resolvePreview);
3042
3062
  let L = I(() => !(n.state.previewMode && F.isConfigured));
3043
- d(Wt, L);
3044
- let z = Hr();
3045
- d(Dt, z), d(At, V(!1)), d(Mt, V(!1)), d(en, r.logicTags?.tags ?? []), d(bt, r.logicTags?.pairs ?? []), d(Rt, r.logicTags?.onRequest ?? null), d(jt, Ur()), d(Bt, r.onRequestMedia ?? null), d(mn, r.canDropMedia ?? null), d(St, r.resolveImageUrl ? Rn(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(Ut, r.displayConditions?.conditions ?? []), d(ln, r.displayConditions?.allowCustom ?? !1), d(Et, r.displayConditions?.onRequest ?? null), d(Jt, t.capabilities ?? {}), d(gn, b);
3046
- let B = Wr(r.lint) ? null : Kr({
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({
3047
3067
  content: n.content,
3048
3068
  get options() {
3049
- return zr({
3069
+ return Vr({
3050
3070
  ...r,
3051
3071
  content: n.content.value,
3052
3072
  contentLocale: n.activeLocale?.value ?? void 0
@@ -3058,8 +3078,8 @@ function rs(t) {
3058
3078
  updateSettings: n.updateSettings,
3059
3079
  removeBlock: n.removeBlock
3060
3080
  });
3061
- d(yt, B);
3062
- function te() {
3081
+ d(Zt, B);
3082
+ function V() {
3063
3083
  y?.(), B?.destroy(), _?.destroy(), m.destroy();
3064
3084
  }
3065
3085
  return {
@@ -3084,18 +3104,18 @@ function rs(t) {
3084
3104
  setMergeTags: N,
3085
3105
  mergeTags: M,
3086
3106
  mergeTagSyntax: j,
3087
- destroy: te
3107
+ destroy: V
3088
3108
  };
3089
3109
  }
3090
3110
  // src/composables/useSmallScreenNotice.ts
3091
- var is = "(max-width: 767px)";
3092
- function as(e) {
3093
- let n = t(is);
3111
+ var os = "(max-width: 767px)";
3112
+ function ss(e) {
3113
+ let n = t(os);
3094
3114
  return {
3095
3115
  isSmallScreen: n,
3096
3116
  showNotice: I(() => (F(e) ?? !0) && n.value)
3097
3117
  };
3098
3118
  }
3099
- export { yi as A, Tr as B, Hi as C, Wi as D, Di as E, mi as F, yr as H, Vr as I, zr as L, _i as M, gi as N, Oi as O, hi as P, Pr as R, Ni as S, Ri as T, br as V, ca as _, zo as a, Ji as b, vo as c, ho as d, Pa as f, ma as g, Ea as h, Go as i, vi as j, di as k, xo as l, Aa as m, rs as n, Io as o, Na as p, ts as r, Oo as s, as as t, _o as u, oa as v, Li as w, Ai as x, Zi as y, Mr as z };
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 };
3100
3120
 
3101
- //# sourceMappingURL=composables-D3lsO7Io.js.map
3121
+ //# sourceMappingURL=composables-CMBZad02.js.map