@templatical/editor 0.47.0 → 0.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (247) hide show
  1. package/dist/{AiChatSidebar-BPOv5Ra8.js → AiChatSidebar-DxPHFNoT.js} +8 -8
  2. package/dist/{AiFeatureMenu-H_WT4YR8.js → AiFeatureMenu-C8GVqu1d.js} +4 -4
  3. package/dist/{BlockIssueBadge-AgO5abEB.js → BlockIssueBadge-BShkuJis.js} +2 -2
  4. package/dist/BlockPreviewCanvas-tzAtDkXH.js +141 -0
  5. package/dist/{CloudHeaderExtras-gXsTYoGG.js → CloudHeaderExtras-CUSftQdm.js} +2 -2
  6. package/dist/{CloudPanels-H_GdbOfZ.js → CloudPanels-Dgw7tb4R.js} +4 -4
  7. package/dist/{CollaboratorBar-BazGNMqN.js → CollaboratorBar-5rfopCPx.js} +2 -2
  8. package/dist/{CommentsPanel-CMgsG_yh.js → CommentsPanel-DiWzYtnZ.js} +1 -1
  9. package/dist/{CommentsSidebar-DCh8DTP8.js → CommentsSidebar-BOqj16Al.js} +10 -10
  10. package/dist/{CountdownToolbar-DVuucA3v.js → CountdownToolbar-C4y3Ft7H.js} +4 -4
  11. package/dist/{DesignReferenceSidebar-DxNV4lQp.js → DesignReferenceSidebar-BWAi3eQQ.js} +7 -7
  12. package/dist/{IssuesPanel-CUpW54P4.js → IssuesPanel-C-x3I012.js} +5 -5
  13. package/dist/{LogicTagInsertButton-DDYKnqmj.js → LogicTagInsertButton-B1_Wy0AN.js} +6 -6
  14. package/dist/{MediaEditModal-D_we0Scr.js → MediaEditModal-ByOvznRC.js} +1 -1
  15. package/dist/{MediaPanels-L95BwWV1.js → MediaPanels-9mDBv4aL.js} +1 -1
  16. package/dist/{MergeTagInput-DAL998tx.js → MergeTagInput-fOewuF27.js} +1 -1
  17. package/dist/{MergeTagModeToggle-CjHO26rb.js → MergeTagModeToggle-BXamLcv7.js} +4 -4
  18. package/dist/{ParagraphEditor-CcEN1N6n.js → ParagraphEditor-BVjOwwHx.js} +131 -131
  19. package/dist/{RestoreVersionDialog-B2OH5rgs.js → RestoreVersionDialog-BEKXx9xk.js} +3 -3
  20. package/dist/{RichTextEditorContent-BGeTg-QL.js → RichTextEditorContent-D7kp7iig.js} +4 -4
  21. package/dist/{SaveBlockDialog-CCVyU-7y.js → SaveBlockDialog-SJu0lecx.js} +32 -33
  22. package/dist/{SavedBlocksBrowserModal-_WmSeqIh.js → SavedBlocksBrowserModal-DbmIS5uK.js} +9 -9
  23. package/dist/{SavedBlocksPanels-DVX_ruQ7.js → SavedBlocksPanels-Dr5Fxx9Z.js} +1 -1
  24. package/dist/{SavedBlocksPickBar-DVJC28hP.js → SavedBlocksPickBar-DnEWBZJy.js} +2 -2
  25. package/dist/{TemplateScoringPanel-U0QFiwdI.js → TemplateScoringPanel-ynbGl-sr.js} +11 -11
  26. package/dist/{TemplateSettings-CdhTm9JQ.js → TemplateSettings-Bi01S3H3.js} +7 -7
  27. package/dist/{TestEmailModal-BqToA_ls.js → TestEmailModal-CbRY8HQx.js} +7 -7
  28. package/dist/{TestEmailPanel-Cn4Ptq0j.js → TestEmailPanel-NAOmt3xi.js} +1 -1
  29. package/dist/{TitleEditor-CZdqeltH.js → TitleEditor-Cc3DHbuN.js} +8 -8
  30. package/dist/{ToggleSwitch-BR8Sgzib.js → ToggleSwitch-Ozc7YU38.js} +1 -1
  31. package/dist/Toolbar-B-2lO0I8.js +3156 -0
  32. package/dist/{TplModal-CoczSDma.js → TplModal-Bz4-IZ9R.js} +1 -1
  33. package/dist/{VersionHistoryMenu-DY5z5FZr.js → VersionHistoryMenu-CjV1d1zk.js} +5 -5
  34. package/dist/{VersionHistoryPanels-DowHeDAQ.js → VersionHistoryPanels-BtwxrKJn.js} +1 -1
  35. package/dist/{VersionPreviewBanner-Bo8NxBbh.js → VersionPreviewBanner-BLAei1kj.js} +1 -1
  36. package/dist/WrapperBlock-D0qgNqjD.js +45 -0
  37. package/dist/{blockTypeIcons-4E1U8f99.js → blockTypeIcons-CEDZytqP.js} +49 -19
  38. package/dist/bundle-stats.json +8 -8
  39. package/dist/{cdn/chunks/ca-DMoGGP9L.js → ca-CbNzJM3I.js} +17 -3
  40. package/dist/cdn/chunks/{AiChatSidebar-B72rI0be.js → AiChatSidebar-Dk0rJBQN.js} +7 -7
  41. package/dist/cdn/chunks/{AiChatSidebar-B72rI0be.js.map → AiChatSidebar-Dk0rJBQN.js.map} +1 -1
  42. package/dist/cdn/chunks/{AiFeatureMenu-BqSG9iEd.js → AiFeatureMenu-B7b0w8ZS.js} +3 -3
  43. package/dist/cdn/chunks/{AiFeatureMenu-BqSG9iEd.js.map → AiFeatureMenu-B7b0w8ZS.js.map} +1 -1
  44. package/dist/cdn/chunks/{BlockIssueBadge-CS7ytN-z.js → BlockIssueBadge-C7sdnkrF.js} +2 -2
  45. package/dist/cdn/chunks/{BlockIssueBadge-CS7ytN-z.js.map → BlockIssueBadge-C7sdnkrF.js.map} +1 -1
  46. package/dist/cdn/chunks/BlockPreviewCanvas-vK5tBazr.js +143 -0
  47. package/dist/cdn/chunks/BlockPreviewCanvas-vK5tBazr.js.map +1 -0
  48. package/dist/cdn/chunks/{CloudHeaderExtras-DJXLTUHc.js → CloudHeaderExtras-B4fhuwc_.js} +3 -3
  49. package/dist/cdn/chunks/{CloudHeaderExtras-DJXLTUHc.js.map → CloudHeaderExtras-B4fhuwc_.js.map} +1 -1
  50. package/dist/cdn/chunks/{CloudPanels-D1fPLjG8.js → CloudPanels-awqHfJqC.js} +4 -4
  51. package/dist/cdn/chunks/{CloudPanels-D1fPLjG8.js.map → CloudPanels-awqHfJqC.js.map} +1 -1
  52. package/dist/cdn/chunks/{CollaboratorBar-MeRQB1eN.js → CollaboratorBar-CS0ivqkr.js} +3 -3
  53. package/dist/cdn/chunks/{CollaboratorBar-MeRQB1eN.js.map → CollaboratorBar-CS0ivqkr.js.map} +1 -1
  54. package/dist/cdn/chunks/{CommentsPanel-CmxPylNf.js → CommentsPanel-CbzxwsyI.js} +2 -2
  55. package/dist/cdn/chunks/{CommentsPanel-CmxPylNf.js.map → CommentsPanel-CbzxwsyI.js.map} +1 -1
  56. package/dist/cdn/chunks/{CommentsSidebar-CrleQTbo.js → CommentsSidebar-DWPHZuQm.js} +13 -13
  57. package/dist/cdn/chunks/{CommentsSidebar-CrleQTbo.js.map → CommentsSidebar-DWPHZuQm.js.map} +1 -1
  58. package/dist/cdn/chunks/{CountdownToolbar-DPIOtlN0.js → CountdownToolbar-Cqg8FUH-.js} +5 -5
  59. package/dist/cdn/chunks/{CountdownToolbar-DPIOtlN0.js.map → CountdownToolbar-Cqg8FUH-.js.map} +1 -1
  60. package/dist/cdn/chunks/{DesignReferenceSidebar-BgTNqgCy.js → DesignReferenceSidebar-BW9cHnA9.js} +7 -7
  61. package/dist/cdn/chunks/{DesignReferenceSidebar-BgTNqgCy.js.map → DesignReferenceSidebar-BW9cHnA9.js.map} +1 -1
  62. package/dist/cdn/chunks/{IssuesPanel-BGjLcNpQ.js → IssuesPanel-cXf9ywA4.js} +4 -4
  63. package/dist/cdn/chunks/{IssuesPanel-BGjLcNpQ.js.map → IssuesPanel-cXf9ywA4.js.map} +1 -1
  64. package/dist/cdn/chunks/{LogicTagInsertButton-BEsqPhMr.js → LogicTagInsertButton-BMB9vShs.js} +84 -84
  65. package/dist/cdn/chunks/{LogicTagInsertButton-BEsqPhMr.js.map → LogicTagInsertButton-BMB9vShs.js.map} +1 -1
  66. package/dist/cdn/chunks/{MediaEditModal-C1Ao0i2c.js → MediaEditModal-zXfcArr4.js} +2 -2
  67. package/dist/cdn/chunks/{MediaEditModal-C1Ao0i2c.js.map → MediaEditModal-zXfcArr4.js.map} +1 -1
  68. package/dist/cdn/chunks/{MediaPanels-1GPYiZZ0.js → MediaPanels-Cp4XB_dH.js} +2 -2
  69. package/dist/cdn/chunks/{MediaPanels-1GPYiZZ0.js.map → MediaPanels-Cp4XB_dH.js.map} +1 -1
  70. package/dist/cdn/chunks/{MergeTagInput-Dy13_OLc.js → MergeTagInput-DLqrA9co.js} +2 -2
  71. package/dist/cdn/chunks/{MergeTagInput-Dy13_OLc.js.map → MergeTagInput-DLqrA9co.js.map} +1 -1
  72. package/dist/cdn/chunks/{MergeTagModeToggle-B2CPZOeF.js → MergeTagModeToggle-BRiJzzn5.js} +3 -3
  73. package/dist/cdn/chunks/{MergeTagModeToggle-B2CPZOeF.js.map → MergeTagModeToggle-BRiJzzn5.js.map} +1 -1
  74. package/dist/cdn/chunks/{ParagraphEditor-BGLIw7kg.js → ParagraphEditor-D4aq9eeC.js} +35 -35
  75. package/dist/cdn/chunks/{ParagraphEditor-BGLIw7kg.js.map → ParagraphEditor-D4aq9eeC.js.map} +1 -1
  76. package/dist/cdn/chunks/{RestoreVersionDialog-BhykE8En.js → RestoreVersionDialog-BgR6RXSb.js} +5 -5
  77. package/dist/cdn/chunks/{RestoreVersionDialog-BhykE8En.js.map → RestoreVersionDialog-BgR6RXSb.js.map} +1 -1
  78. package/dist/cdn/chunks/{RichTextEditorContent-B-txUvPL.js → RichTextEditorContent-C4DMAn0g.js} +4 -4
  79. package/dist/cdn/chunks/{RichTextEditorContent-B-txUvPL.js.map → RichTextEditorContent-C4DMAn0g.js.map} +1 -1
  80. package/dist/cdn/chunks/{SaveBlockDialog-BHqEp7jw.js → SaveBlockDialog-BaIsQd09.js} +23 -24
  81. package/dist/cdn/chunks/{SaveBlockDialog-BHqEp7jw.js.map → SaveBlockDialog-BaIsQd09.js.map} +1 -1
  82. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BhR6AI0f.js → SavedBlocksBrowserModal-CtnB58p_.js} +6 -6
  83. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BhR6AI0f.js.map → SavedBlocksBrowserModal-CtnB58p_.js.map} +1 -1
  84. package/dist/cdn/chunks/{SavedBlocksPanels-YwffJtfY.js → SavedBlocksPanels-BhEOMzEQ.js} +2 -2
  85. package/dist/cdn/chunks/{SavedBlocksPanels-YwffJtfY.js.map → SavedBlocksPanels-BhEOMzEQ.js.map} +1 -1
  86. package/dist/cdn/chunks/{SavedBlocksPickBar-BtpFU7es.js → SavedBlocksPickBar-CcdqTEIp.js} +3 -3
  87. package/dist/cdn/chunks/{SavedBlocksPickBar-BtpFU7es.js.map → SavedBlocksPickBar-CcdqTEIp.js.map} +1 -1
  88. package/dist/cdn/chunks/{TemplateScoringPanel-N4ySFh5w.js → TemplateScoringPanel-BrWqJCSP.js} +6 -6
  89. package/dist/cdn/chunks/{TemplateScoringPanel-N4ySFh5w.js.map → TemplateScoringPanel-BrWqJCSP.js.map} +1 -1
  90. package/dist/cdn/chunks/{TemplateSettings-C7b5X34U.js → TemplateSettings-BkkWTDHD.js} +10 -10
  91. package/dist/cdn/chunks/{TemplateSettings-C7b5X34U.js.map → TemplateSettings-BkkWTDHD.js.map} +1 -1
  92. package/dist/cdn/chunks/{TestEmailModal-DHJKI5y5.js → TestEmailModal-V5mwHsUV.js} +9 -9
  93. package/dist/cdn/chunks/{TestEmailModal-DHJKI5y5.js.map → TestEmailModal-V5mwHsUV.js.map} +1 -1
  94. package/dist/cdn/chunks/{TestEmailPanel-lYtzTXpR.js → TestEmailPanel-DxrKuctP.js} +2 -2
  95. package/dist/cdn/chunks/{TestEmailPanel-lYtzTXpR.js.map → TestEmailPanel-DxrKuctP.js.map} +1 -1
  96. package/dist/cdn/chunks/{TitleEditor-5eY01ypW.js → TitleEditor-CsZiG3TT.js} +13 -13
  97. package/dist/cdn/chunks/{TitleEditor-5eY01ypW.js.map → TitleEditor-CsZiG3TT.js.map} +1 -1
  98. package/dist/cdn/chunks/{ToggleSwitch-BN8rMC2m.js → ToggleSwitch-BB-bQADJ.js} +2 -2
  99. package/dist/cdn/chunks/{ToggleSwitch-BN8rMC2m.js.map → ToggleSwitch-BB-bQADJ.js.map} +1 -1
  100. package/dist/cdn/chunks/Toolbar-C_x2TfFk.js +3073 -0
  101. package/dist/cdn/chunks/Toolbar-C_x2TfFk.js.map +1 -0
  102. package/dist/cdn/chunks/{TplModal-WIBiBrGy.js → TplModal-DC_eodTV.js} +2 -2
  103. package/dist/cdn/chunks/{TplModal-WIBiBrGy.js.map → TplModal-DC_eodTV.js.map} +1 -1
  104. package/dist/cdn/chunks/{VersionHistoryMenu-CZnlS9K5.js → VersionHistoryMenu-DXnM5Df2.js} +7 -7
  105. package/dist/cdn/chunks/{VersionHistoryMenu-CZnlS9K5.js.map → VersionHistoryMenu-DXnM5Df2.js.map} +1 -1
  106. package/dist/cdn/chunks/{VersionHistoryPanels-xjLSpR1e.js → VersionHistoryPanels-DXSqmaLS.js} +2 -2
  107. package/dist/cdn/chunks/{VersionHistoryPanels-xjLSpR1e.js.map → VersionHistoryPanels-DXSqmaLS.js.map} +1 -1
  108. package/dist/cdn/chunks/{VersionPreviewBanner-sARpn4hh.js → VersionPreviewBanner-DKyN6BhO.js} +2 -2
  109. package/dist/cdn/chunks/{VersionPreviewBanner-sARpn4hh.js.map → VersionPreviewBanner-DKyN6BhO.js.map} +1 -1
  110. package/dist/cdn/chunks/WrapperBlock-gG_Bleug.js +47 -0
  111. package/dist/cdn/chunks/WrapperBlock-gG_Bleug.js.map +1 -0
  112. package/dist/cdn/chunks/blockTypeIcons-HrMJDfVg.js +22 -0
  113. package/dist/cdn/chunks/blockTypeIcons-HrMJDfVg.js.map +1 -0
  114. package/dist/{ca-DMoGGP9L.js → cdn/chunks/ca-CbNzJM3I.js} +19 -1
  115. package/dist/cdn/chunks/ca-CbNzJM3I.js.map +1 -0
  116. package/dist/cdn/chunks/{cloud-Cd7ptfhL.js → cloud-BHClP3e2.js} +2 -2
  117. package/dist/cdn/chunks/{cloud-Cd7ptfhL.js.map → cloud-BHClP3e2.js.map} +1 -1
  118. package/dist/cdn/chunks/{createCloudRuntime-DtIZ2Lee.js → createCloudRuntime-Vd0N4elZ.js} +4 -4
  119. package/dist/cdn/chunks/{createCloudRuntime-DtIZ2Lee.js.map → createCloudRuntime-Vd0N4elZ.js.map} +1 -1
  120. package/dist/cdn/chunks/{de-DgAelLbM.js → de-DMquBpZM.js} +18 -2
  121. package/dist/cdn/chunks/de-DMquBpZM.js.map +1 -0
  122. package/dist/cdn/chunks/{editor-modal-Bcwo0orC.js → editor-modal-vEEmZ8Tu.js} +88 -88
  123. package/dist/cdn/chunks/{editor-modal-Bcwo0orC.js.map → editor-modal-vEEmZ8Tu.js.map} +1 -1
  124. package/dist/cdn/chunks/{en-Dekrl7HA.js → en-C8Mp71sO.js} +18 -2
  125. package/dist/cdn/chunks/en-C8Mp71sO.js.map +1 -0
  126. package/dist/cdn/chunks/en-eWpiXyZu.js +1 -0
  127. package/dist/cdn/chunks/{es-BaZzyidV.js → es-Byq4tthI.js} +18 -2
  128. package/dist/cdn/chunks/es-Byq4tthI.js.map +1 -0
  129. package/dist/cdn/chunks/{extensions-T-t8MKDb.js → extensions-hJ9VqzDc.js} +4 -4
  130. package/dist/cdn/chunks/{extensions-T-t8MKDb.js.map → extensions-hJ9VqzDc.js.map} +1 -1
  131. package/dist/{fr-C5ucb1HK.js → cdn/chunks/fr-B3j35HEw.js} +19 -1
  132. package/dist/cdn/chunks/fr-B3j35HEw.js.map +1 -0
  133. package/dist/cdn/chunks/{icons-C4fX9Bwy.js → icons-aTYwH5-g.js} +123 -94
  134. package/dist/cdn/chunks/icons-aTYwH5-g.js.map +1 -0
  135. package/dist/{ja-CUgR3mV0.js → cdn/chunks/ja-D7txAuGS.js} +19 -1
  136. package/dist/cdn/chunks/ja-D7txAuGS.js.map +1 -0
  137. package/dist/{nl-qrLY7hMS.js → cdn/chunks/nl-ClJ3BY3F.js} +19 -1
  138. package/dist/cdn/chunks/nl-ClJ3BY3F.js.map +1 -0
  139. package/dist/cdn/chunks/{preRenderCustomBlocks-Co0oi0Jf.js → preRenderCustomBlocks-ByfuSjtL.js} +2 -2
  140. package/dist/cdn/chunks/{preRenderCustomBlocks-Co0oi0Jf.js.map → preRenderCustomBlocks-ByfuSjtL.js.map} +1 -1
  141. package/dist/{pt-BR-C6hMTQYi.js → cdn/chunks/pt-BR-DibcXcmv.js} +19 -1
  142. package/dist/cdn/chunks/pt-BR-DibcXcmv.js.map +1 -0
  143. package/dist/cdn/chunks/{socialIcons-DACw1wA8.js → socialIcons-C_lnkpG6.js} +355 -179
  144. package/dist/cdn/chunks/socialIcons-C_lnkpG6.js.map +1 -0
  145. package/dist/cdn/chunks/{src-BnJlDuyB.js → src-DYCDeBDM.js} +219 -181
  146. package/dist/cdn/chunks/src-DYCDeBDM.js.map +1 -0
  147. package/dist/cdn/chunks/{src-CHlVFp7r.js → src-DlFlC9Tt.js} +267 -241
  148. package/dist/cdn/chunks/src-DlFlC9Tt.js.map +1 -0
  149. package/dist/cdn/chunks/{src-Bu0qBpbf.js → src-dZ4D_tuP.js} +226 -193
  150. package/dist/cdn/chunks/src-dZ4D_tuP.js.map +1 -0
  151. package/dist/cdn/chunks/timeouts-Cv2jvusx.js +6 -0
  152. package/dist/cdn/chunks/timeouts-Cv2jvusx.js.map +1 -0
  153. package/dist/cdn/chunks/{useEditorCore-Bf2d1DKI.js → useEditorCore-Bb2UcB20.js} +722 -717
  154. package/dist/cdn/chunks/useEditorCore-Bb2UcB20.js.map +1 -0
  155. package/dist/cdn/chunks/{useLogicTag-3S63go4E.js → useLogicTag-HsyUCQtl.js} +2 -2
  156. package/dist/cdn/chunks/{useLogicTag-3S63go4E.js.map → useLogicTag-HsyUCQtl.js.map} +1 -1
  157. package/dist/cdn/chunks/{useMergeTag-BQtxUHq1.js → useMergeTag-Dg9pE85U.js} +2 -2
  158. package/dist/cdn/chunks/{useMergeTag-BQtxUHq1.js.map → useMergeTag-Dg9pE85U.js.map} +1 -1
  159. package/dist/cdn/chunks/{withCurrentFont-DwJd-lKc.js → withCurrentFont-oLcATrQ8.js} +2 -2
  160. package/dist/cdn/chunks/{withCurrentFont-DwJd-lKc.js.map → withCurrentFont-oLcATrQ8.js.map} +1 -1
  161. package/dist/cdn/editor.css +1 -1
  162. package/dist/cdn/editor.js +403 -397
  163. package/dist/cdn/editor.js.map +1 -1
  164. package/dist/{check-B5R4zXr7.js → check-ClwqRMgv.js} +1 -1
  165. package/dist/{chevron-down-BKyl85NV.js → chevron-down-te6qn-zE.js} +1 -1
  166. package/dist/{chevron-right-BmToZ8qX.js → chevron-right-W2hbH1FM.js} +1 -1
  167. package/dist/{chevron-up-DNYdOxPC.js → chevron-up-Bf5Zo7o4.js} +1 -1
  168. package/dist/{circle-alert-Dx9ju3YZ.js → circle-alert-CIEGV5DN.js} +1 -1
  169. package/dist/{clock-Dv9bxsSH.js → clock-Y4cx0gkJ.js} +1 -1
  170. package/dist/{cloud-DwjaAdwK.js → cloud-B5xwm_4X.js} +1 -1
  171. package/dist/{copy-BsKl4dcy.js → copy-BEcsAlfB.js} +1 -1
  172. package/dist/{createCloudRuntime-C8gpPsSi.js → createCloudRuntime-zNPkF6T9.js} +3 -3
  173. package/dist/{createLucideIcon-DziKp5iU.js → createLucideIcon-CYHXK9hn.js} +5 -5
  174. package/dist/{de-DgAelLbM.js → de-DMquBpZM.js} +17 -1
  175. package/dist/{dist-C8koXLhl.js → dist-tsmnQugO.js} +285 -249
  176. package/dist/{editor-modal-BwyIUnV_.js → editor-modal-AlVLkU91.js} +23 -23
  177. package/dist/en-B0FUfNwz.js +1 -0
  178. package/dist/{en-Dekrl7HA.js → en-C8Mp71sO.js} +17 -1
  179. package/dist/{es-BaZzyidV.js → es-Byq4tthI.js} +17 -1
  180. package/dist/{extensions-DHyKjsNZ.js → extensions-pjO8VGkM.js} +3 -3
  181. package/dist/{eye-DQuinb9k.js → eye-Ddnz8nnm.js} +1 -1
  182. package/dist/{cdn/chunks/fr-C5ucb1HK.js → fr-B3j35HEw.js} +17 -3
  183. package/dist/{image-up-yTfLjOrj.js → image-up-CM_HC0Dx.js} +1 -1
  184. package/dist/index.d.ts +66 -3
  185. package/dist/{info-C7OjlS11.js → info-DXLmzoeY.js} +1 -1
  186. package/dist/{cdn/chunks/ja-CUgR3mV0.js → ja-D7txAuGS.js} +17 -3
  187. package/dist/{link-CrUFaZ0t.js → link-Cel46wgo.js} +1 -1
  188. package/dist/{list-CLgv6M-k.js → list-Cl0GwiV9.js} +1 -1
  189. package/dist/{loader-circle-BXM5VO0K.js → loader-circle-uAwpvfys.js} +1 -1
  190. package/dist/{message-circle-BisdQ8H9.js → message-circle-DWU1pTM_.js} +1 -1
  191. package/dist/{cdn/chunks/nl-qrLY7hMS.js → nl-ClJ3BY3F.js} +17 -3
  192. package/dist/{package-C1T4AxV1.js → package-CbyG_yU_.js} +1 -1
  193. package/dist/{pencil-oo2mwf4C.js → pencil-BzoDcwKu.js} +1 -1
  194. package/dist/{plus-BIilXopD.js → plus-8cDvoCjZ.js} +1 -1
  195. package/dist/{preRenderCustomBlocks-lFX0HHiV.js → preRenderCustomBlocks-DMP5RuHl.js} +3 -3
  196. package/dist/{cdn/chunks/pt-BR-C6hMTQYi.js → pt-BR-DibcXcmv.js} +17 -3
  197. package/dist/{refresh-cw-DrLlkEVC.js → refresh-cw-9WinWixo.js} +1 -1
  198. package/dist/{search-DNu9lImk.js → search-CqgGq1gG.js} +1 -1
  199. package/dist/{send-DDNh3LoJ.js → send-Ceo3c9Db.js} +1 -1
  200. package/dist/{shield-check-aXM3o14f.js → shield-check-uDAwur5D.js} +1 -1
  201. package/dist/{smartphone-isccgDee.js → smartphone-CcLaCpGK.js} +1 -1
  202. package/dist/{socialIcons-BctavKBN.js → socialIcons-PTiwhLoC.js} +332 -153
  203. package/dist/{sparkles-CIMfFxKv.js → sparkles-Do9XjAuT.js} +1 -1
  204. package/dist/style.css +1 -1
  205. package/dist/templatical-editor.js +549 -543
  206. package/dist/{text-align-start-C4JFeqsq.js → text-align-start-DvzC0HQA.js} +1 -1
  207. package/dist/timeouts-Cv2jvusx.js +4 -0
  208. package/dist/{trash-8ZD9pK_c.js → trash-vlINTx32.js} +1 -1
  209. package/dist/{triangle-alert-pq45xEHl.js → triangle-alert-MRYSJ9T2.js} +1 -1
  210. package/dist/{upload-DrNFmVes.js → upload-CtNOI6J2.js} +1 -1
  211. package/dist/{useEditorCore-BcT7UI4e.js → useEditorCore-PvErWWsp.js} +963 -957
  212. package/dist/{useLogicTag-D-dI8H6p.js → useLogicTag-BHn67tDd.js} +1 -1
  213. package/dist/{useMergeTag-5wMeDBi-.js → useMergeTag-CRkm5Ig6.js} +1 -1
  214. package/dist/{useScrollToBlock-Do3suaqp.js → useScrollToBlock-CXmcHQQN.js} +1 -1
  215. package/dist/{withCurrentFont-B4YnsG_2.js → withCurrentFont-CxRGeHO3.js} +1 -1
  216. package/dist/{x-CBFKGLB1.js → x-Cd6SFw8r.js} +1 -1
  217. package/package.json +8 -8
  218. package/dist/BlockPreviewCanvas-CZDBSPoG.js +0 -136
  219. package/dist/Toolbar-OGakTBEg.js +0 -2851
  220. package/dist/WrapperBlock-BOABSX9W.js +0 -46
  221. package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js +0 -138
  222. package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js.map +0 -1
  223. package/dist/cdn/chunks/Toolbar-Ik54UO_-.js +0 -2767
  224. package/dist/cdn/chunks/Toolbar-Ik54UO_-.js.map +0 -1
  225. package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js +0 -48
  226. package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js.map +0 -1
  227. package/dist/cdn/chunks/blockTypeIcons-D3g5QzdT.js +0 -21
  228. package/dist/cdn/chunks/blockTypeIcons-D3g5QzdT.js.map +0 -1
  229. package/dist/cdn/chunks/ca-DMoGGP9L.js.map +0 -1
  230. package/dist/cdn/chunks/de-DgAelLbM.js.map +0 -1
  231. package/dist/cdn/chunks/en-BANFWZdr.js +0 -1
  232. package/dist/cdn/chunks/en-Dekrl7HA.js.map +0 -1
  233. package/dist/cdn/chunks/es-BaZzyidV.js.map +0 -1
  234. package/dist/cdn/chunks/fr-C5ucb1HK.js.map +0 -1
  235. package/dist/cdn/chunks/icons-C4fX9Bwy.js.map +0 -1
  236. package/dist/cdn/chunks/ja-CUgR3mV0.js.map +0 -1
  237. package/dist/cdn/chunks/nl-qrLY7hMS.js.map +0 -1
  238. package/dist/cdn/chunks/pt-BR-C6hMTQYi.js.map +0 -1
  239. package/dist/cdn/chunks/socialIcons-DACw1wA8.js.map +0 -1
  240. package/dist/cdn/chunks/src-BnJlDuyB.js.map +0 -1
  241. package/dist/cdn/chunks/src-Bu0qBpbf.js.map +0 -1
  242. package/dist/cdn/chunks/src-CHlVFp7r.js.map +0 -1
  243. package/dist/cdn/chunks/timeouts-DHPZQ0G3.js +0 -6
  244. package/dist/cdn/chunks/timeouts-DHPZQ0G3.js.map +0 -1
  245. package/dist/cdn/chunks/useEditorCore-Bf2d1DKI.js.map +0 -1
  246. package/dist/en-CC-57eC_.js +0 -1
  247. package/dist/timeouts-DHPZQ0G3.js +0 -4
@@ -1,43 +1,42 @@
1
- import { A as e, B as t, E as n, F as r, H as i, I as a, K as o, N as s, P as c, Q as l, R as u, S as d, U as f, X as p, Y as m, at as h, b as g, c as _, ct as v, et as y, f as b, g as x, h as S, it as C, j as w, k as T, l as E, lt as D, m as O, p as k, q as A, rt as j, s as M, t as N, u as P, ut as F, w as I, x as L, y as R } from "./draggable-DrsNwZuB.js";
2
- import { $ as z, At as B, B as V, F as H, G as U, H as ee, I as te, K as ne, L as re, M as ie, Mt as ae, N as oe, Nt as se, Ot as ce, P as le, Q as ue, R as de, T as fe, Tt as pe, U as me, W as he, X as ge, Y as _e, _ as ve, a as ye, b as be, bt as xe, d as Se, et as Ce, f as we, g as Te, h as Ee, ht as De, i as W, jt as Oe, kt as ke, l as Ae, m as je, n as Me, nt as Ne, o as Pe, p as Fe, r as Ie, s as Le, u as Re, vt as ze, wt as Be, x as Ve, yt as He, z as Ue } from "./src-BnJlDuyB.js";
3
- import { _ as We, a as Ge, b as Ke, g as qe, h as Je, i as Ye, n as Xe, o as Ze, s as Qe, t as $e, x as et, y as tt } from "./socialIcons-DACw1wA8.js";
4
- import { _ as nt, h as rt, v as it, y as at } from "./dist-CjL6JHML.js";
5
- import { a as ot, c as st, i as ct } from "./dist-MNQYSEWU.js";
6
- import { $ as G, A as lt, B as ut, C as dt, D as ft, E as pt, F as mt, G as ht, H as gt, I as _t, J as vt, K as yt, L as bt, M as xt, N as St, O as K, P as Ct, Q as wt, R as Tt, S as Et, T as Dt, V as Ot, X as kt, Y as At, Z as jt, _ as Mt, a as Nt, b as Pt, c as Ft, d as It, f as Lt, g as q, h as Rt, j as zt, k as Bt, l as Vt, m as Ht, n as Ut, o as Wt, p as Gt, q as Kt, r as qt, s as Jt, v as J, w as Yt, x as Xt, y as Zt, z as Qt } from "./keys-HI-INbkz.js";
7
- import "./timeouts-DHPZQ0G3.js";
8
- import { t as Y } from "./useI18n-DUlyyIJJ.js";
9
- import { t as X } from "./logger-ByvdoAwq.js";
10
- import { i as $t, r as en, s as tn, t as nn } from "./usePopoverPosition-IbaW6-Ao.js";
11
- import { r as rn, t as an } from "./templateSettingsFields-YCFVBVYh.js";
12
- import { Bt as on, Dt as sn, Et as cn, U as ln, Vt as un, Z as dn, d as fn, f as pn, gt as mn, j as hn, kt as gn, nt as _n, o as vn, pt as yn, y as bn, yt as xn } from "./icons-C4fX9Bwy.js";
13
- import { t as Sn } from "./LoadingTrack-DbH97JR9.js";
14
- import { t as Cn } from "./_plugin-vue_export-helper-B3ysoDQm.js";
15
- import { t as wn } from "./useEditorRoot-CTc6O8al.js";
1
+ import { A as e, B as t, E as n, F as r, H as i, I as a, K as o, N as s, P as c, Q as l, R as u, S as d, U as f, Y as p, at as m, b as h, c as g, ct as _, et as v, f as y, g as b, h as x, it as S, j as C, k as w, l as T, lt as E, m as D, p as O, q as k, rt as A, s as j, t as M, u as N, ut as P, w as F, x as I, y as L } from "./draggable-DrsNwZuB.js";
2
+ import { $ as R, At as z, B, Dt as V, Et as H, F as ee, Ft as U, G as W, H as te, I as ne, K as re, L as ie, M as ae, Mt as oe, N as se, Nt as ce, P as le, Pt as ue, Q as de, R as fe, St as pe, T as me, U as he, W as ge, X as _e, Y as ve, _ as ye, a as be, b as xe, bt as Se, d as Ce, et as we, f as Te, g as Ee, h as De, ht as Oe, i as ke, j as Ae, jt as je, l as Me, m as Ne, n as Pe, nt as Fe, o as Ie, p as Le, r as Re, s as ze, u as Be, vt as Ve, x as He, yt as Ue, z as We } from "./src-DYCDeBDM.js";
3
+ import { A as Ge, C as G, F as Ke, I as qe, M as Je, P as Ye, S as Xe, _ as Ze, a as Qe, g as $e, h as et, j as tt, l as nt, n as rt, p as it, t as at, u as ot, x as st, y as ct } from "./socialIcons-C_lnkpG6.js";
4
+ import { _ as lt, h as ut, v as dt, y as ft } from "./dist-CjL6JHML.js";
5
+ import { a as pt, c as mt, i as ht } from "./dist-MNQYSEWU.js";
6
+ import { $ as K, A as gt, B as _t, C as vt, D as yt, E as bt, F as xt, G as St, H as Ct, I as wt, J as Tt, K as Et, L as Dt, M as Ot, N as kt, O as q, P as At, Q as jt, R as Mt, S as Nt, T as Pt, V as Ft, X as It, Y as Lt, Z as Rt, _ as zt, a as Bt, b as Vt, c as Ht, d as Ut, f as Wt, g as J, h as Gt, j as Kt, k as qt, l as Jt, m as Yt, n as Xt, o as Zt, p as Qt, q as $t, r as en, s as tn, v as Y, w as nn, x as rn, y as an, z as on } from "./keys-HI-INbkz.js";
7
+ import { t as X } from "./useI18n-DUlyyIJJ.js";
8
+ import { t as Z } from "./logger-ByvdoAwq.js";
9
+ import { i as sn, r as cn, s as ln, t as un } from "./usePopoverPosition-IbaW6-Ao.js";
10
+ import { r as dn, t as fn } from "./templateSettingsFields-YCFVBVYh.js";
11
+ import { At as pn, Et as mn, Ht as hn, Ot as gn, U as _n, Vt as vn, Z as yn, _t as bn, bt as xn, d as Sn, f as Cn, j as wn, mt as Tn, nt as En, o as Dn, y as On } from "./icons-aTYwH5-g.js";
12
+ import { t as kn } from "./LoadingTrack-DbH97JR9.js";
13
+ import { t as An } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
+ import { t as jn } from "./useEditorRoot-CTc6O8al.js";
16
15
  import "./useCloudI18n-BBF4waXO.js";
17
- import { t as Tn } from "./useMergeTag-BQtxUHq1.js";
18
- import { t as En } from "./useLogicTag-3S63go4E.js";
16
+ import { t as Mn } from "./useMergeTag-Dg9pE85U.js";
17
+ import { t as Nn } from "./useLogicTag-HsyUCQtl.js";
19
18
  //#region src/utils/activeEditorTracker.ts
20
- var Dn = /* @__PURE__ */ new Set(), Z = 0, On = 0;
21
- function kn() {
22
- let e = ++On;
23
- return Dn.add(e), Z === 0 && (Z = e), {
19
+ var Pn = /* @__PURE__ */ new Set(), Q = 0, Fn = 0;
20
+ function In() {
21
+ let e = ++Fn;
22
+ return Pn.add(e), Q === 0 && (Q = e), {
24
23
  id: e,
25
- isActive: () => Dn.size <= 1 || Z === e,
24
+ isActive: () => Pn.size <= 1 || Q === e,
26
25
  claim: () => {
27
- Z = e;
26
+ Q = e;
28
27
  },
29
28
  dispose: () => {
30
- if (Dn.delete(e), Z === e) {
31
- let e = Array.from(Dn);
32
- Z = e[e.length - 1] ?? 0;
29
+ if (Pn.delete(e), Q === e) {
30
+ let e = Array.from(Pn);
31
+ Q = e[e.length - 1] ?? 0;
33
32
  }
34
33
  }
35
34
  };
36
35
  }
37
36
  //#endregion
38
37
  //#region src/composables/usePreviewResolution.ts
39
- var An = 500;
40
- function jn(e) {
38
+ var Ln = 500;
39
+ function Rn(e) {
41
40
  let n = typeof e.resolvePreview == "function", r = l(null), i = l(!1), a = l(!1), o = 0, s = null;
42
41
  function c() {
43
42
  s !== null && (clearTimeout(s), s = null);
@@ -48,13 +47,13 @@ function jn(e) {
48
47
  let n = ++o;
49
48
  i.value = !0;
50
49
  let s = {
51
- content: _e(e.getContent()),
50
+ content: ve(e.getContent()),
52
51
  ...e.getRecipient?.() === void 0 ? {} : { recipient: e.getRecipient() }
53
52
  };
54
53
  try {
55
54
  let e = await t(s);
56
55
  if (n !== o) return;
57
- if (!Me(e)) {
56
+ if (!Pe(e)) {
58
57
  a.value = !0;
59
58
  return;
60
59
  }
@@ -69,96 +68,24 @@ function jn(e) {
69
68
  function d() {
70
69
  n && (c(), r.value === null ? u() : s = setTimeout(() => {
71
70
  s = null, u();
72
- }, An));
71
+ }, Ln));
73
72
  }
74
73
  return t(() => [e.isActive(), e.getRecipient?.()], ([e]) => {
75
74
  e ? d() : (c(), o++, i.value = !1, r.value = null, a.value = !1);
76
- }, { immediate: !0 }), m(() => {
75
+ }, { immediate: !0 }), p(() => {
77
76
  c(), o++;
78
77
  }), {
79
78
  isConfigured: n,
80
- content: b(() => r.value ?? e.getContent()),
79
+ content: y(() => r.value ?? e.getContent()),
81
80
  isResolving: i,
82
- isInitialResolve: b(() => i.value && r.value === null),
81
+ isInitialResolve: y(() => i.value && r.value === null),
83
82
  hasFailed: a,
84
- supersedesSamples: b(() => n)
83
+ supersedesSamples: y(() => n)
85
84
  };
86
85
  }
87
86
  //#endregion
88
- //#region src/composables/useImageUrlResolver.ts
89
- function Mn(e) {
90
- let t = p(/* @__PURE__ */ new Map()), n = /* @__PURE__ */ new Set();
91
- function r(e) {
92
- return t.get(e);
93
- }
94
- function i(e) {
95
- return t.has(e) || n.has(e);
96
- }
97
- function a(r) {
98
- if (i(r)) return;
99
- let a;
100
- try {
101
- a = e(r);
102
- } catch {
103
- t.set(r, null);
104
- return;
105
- }
106
- a === null || typeof a == "string" ? t.set(r, a) : (n.add(r), Promise.resolve(a).then((e) => {
107
- t.set(r, typeof e == "string" ? e : null);
108
- }, () => {
109
- t.set(r, null);
110
- }).finally(() => n.delete(r)));
111
- }
112
- return {
113
- get: r,
114
- has: i,
115
- lookup: a
116
- };
117
- }
118
- function Q(e) {
119
- let r = n(Xt, null), i = b(e);
120
- if (!r) return i;
121
- let a;
122
- function s() {
123
- a !== void 0 && (clearTimeout(a), a = void 0);
124
- }
125
- o() && m(s);
126
- let c = !0;
127
- return t(i, (e) => {
128
- s();
129
- let t = c;
130
- c = !1, e && !r.has(e) && (t ? r.lookup(e) : a = setTimeout(() => {
131
- a = void 0, r.lookup(e);
132
- }, 300));
133
- }, { immediate: !0 }), b(() => {
134
- let e = i.value;
135
- if (!e) return e;
136
- let t = r.get(e);
137
- return typeof t == "string" && t.length > 0 ? t : e;
138
- });
139
- }
140
- function Nn(e, t) {
141
- if (!e || !t) return t;
142
- let n = e.get(t);
143
- return typeof n == "string" && n.length > 0 ? n : t;
144
- }
145
- function Pn(e, t) {
146
- return typeof e?.url == "string" && W(e.url, t);
147
- }
148
- function Fn(e, t) {
149
- let n = e?.url;
150
- if (typeof n == "string" && n.trim() !== "") return W(n, t) ? void 0 : n;
151
- }
152
- function In(e) {
153
- let t = n(Ct, Ie.liquid), r = Q(() => Fn(e(), t));
154
- return b(() => Pn(e(), t) ? null : r.value);
155
- }
156
- function Ln(e, t, n) {
157
- return Pn(t, n) ? null : Nn(e, Fn(t, n));
158
- }
159
- //#endregion
160
87
  //#region src/composables/useMergeTagPicker.ts
161
- function Rn() {
88
+ function zn() {
162
89
  let e = l(!1), t = l([]), n = l(null), r = null;
163
90
  function i(i, a) {
164
91
  if (r) {
@@ -173,7 +100,7 @@ function Rn() {
173
100
  let a = r;
174
101
  r = null, e.value = !1, t.value = [], n.value = null, a && a(i);
175
102
  }
176
- return o() && m(() => {
103
+ return o() && p(() => {
177
104
  if (r) {
178
105
  let e = r;
179
106
  r = null, e(null);
@@ -189,7 +116,7 @@ function Rn() {
189
116
  }
190
117
  //#endregion
191
118
  //#region src/composables/useLogicTagPicker.ts
192
- function zn() {
119
+ function Bn() {
193
120
  let e = l(!1), t = l([]), n = l([]), r = null;
194
121
  function i(i, a) {
195
122
  if (r) {
@@ -204,7 +131,7 @@ function zn() {
204
131
  let a = r;
205
132
  r = null, e.value = !1, t.value = [], n.value = [], a && a(i);
206
133
  }
207
- return o() && m(() => {
134
+ return o() && p(() => {
208
135
  if (r) {
209
136
  let e = r;
210
137
  r = null, e(null);
@@ -220,17 +147,17 @@ function zn() {
220
147
  }
221
148
  //#endregion
222
149
  //#region src/composables/useTemplateLint.ts
223
- function Bn(e) {
150
+ function Vn(e) {
224
151
  return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 : !1;
225
152
  }
226
- function Vn(e) {
227
- let n = l([]), r = l(!1), i = l(!1), a = y(null), o = Bn(e.options), s = null, c = !1;
153
+ function Hn(e) {
154
+ let n = l([]), r = l(!1), i = l(!1), a = v(null), o = Vn(e.options), s = null, c = !1;
228
155
  o || u();
229
156
  async function u() {
230
157
  try {
231
- let t = await import("./src-CHlVFp7r.js");
158
+ let t = await import("./src-DlFlC9Tt.js");
232
159
  if (c) return;
233
- a.value = { lintTemplate: t.lintTemplate }, r.value = !0, d(), s = at(e.content, d, {
160
+ a.value = { lintTemplate: t.lintTemplate }, r.value = !0, d(), s = ft(e.content, d, {
234
161
  debounce: e.debounce ?? 500,
235
162
  deep: !0
236
163
  });
@@ -265,7 +192,7 @@ function Vn(e) {
265
192
  }
266
193
  //#endregion
267
194
  //#region src/composables/useKeyboardReorder.ts
268
- function Hn(e, t, n = []) {
195
+ function Un(e, t, n = []) {
269
196
  let r = l(null), i = l(""), a = null;
270
197
  function o(t) {
271
198
  let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
@@ -292,7 +219,7 @@ function Hn(e, t, n = []) {
292
219
  let i = o(r);
293
220
  if (!i) return "";
294
221
  let a = (i.sectionId ? c(i.sectionId, i.columnIndex ?? 0) : e.content.value.blocks)?.[i.index];
295
- return a ? Qe(a, t.t, n) : "";
222
+ return a ? Ze(a, t.t, n) : "";
296
223
  }
297
224
  function c(t, n) {
298
225
  return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
@@ -361,13 +288,13 @@ function Hn(e, t, n = []) {
361
288
  }
362
289
  //#endregion
363
290
  //#region src/composables/useUiTheme.ts
364
- function Un(e) {
365
- let t = st("(prefers-color-scheme: dark)");
366
- return { resolvedTheme: b(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
291
+ function Wn(e) {
292
+ let t = mt("(prefers-color-scheme: dark)");
293
+ return { resolvedTheme: y(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
367
294
  }
368
295
  //#endregion
369
296
  //#region src/composables/useThemeStyles.ts
370
- var Wn = {
297
+ var Gn = {
371
298
  bg: "--tpl-bg",
372
299
  bgElevated: "--tpl-bg-elevated",
373
300
  bgHover: "--tpl-bg-hover",
@@ -391,10 +318,10 @@ var Wn = {
391
318
  dangerLight: "--tpl-danger-light",
392
319
  canvasBg: "--tpl-canvas-bg"
393
320
  };
394
- function Gn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
395
- return { themeStyles: b(() => {
321
+ function Kn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
322
+ return { themeStyles: y(() => {
396
323
  let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
397
- if (a) for (let [e, t] of Object.entries(Wn)) {
324
+ if (a) for (let [e, t] of Object.entries(Gn)) {
398
325
  let n = a[e];
399
326
  n && (r[t] = n);
400
327
  }
@@ -403,10 +330,10 @@ function Gn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
403
330
  }
404
331
  //#endregion
405
332
  //#region src/composables/useBlockRegistry.ts
406
- function Kn() {
407
- let e = y(/* @__PURE__ */ new Map());
333
+ function qn() {
334
+ let e = v(/* @__PURE__ */ new Map());
408
335
  function t(t, n) {
409
- e.value.set(t, n), C(e);
336
+ e.value.set(t, n), S(e);
410
337
  }
411
338
  function n(t, n) {
412
339
  let r = `custom:${t.type}`;
@@ -414,7 +341,7 @@ function Kn() {
414
341
  component: n,
415
342
  createBlock: () => le(t),
416
343
  definition: t
417
- }), C(e);
344
+ }), S(e);
418
345
  }
419
346
  function r(t) {
420
347
  if (t.type === "custom") {
@@ -443,7 +370,7 @@ function Kn() {
443
370
  strictFilters: !1
444
371
  }).parseAndRender(t.template, e.fieldValues);
445
372
  } catch (t) {
446
- return X.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
373
+ return Z.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
447
374
  }
448
375
  }
449
376
  function c(t) {
@@ -461,9 +388,9 @@ function Kn() {
461
388
  }
462
389
  //#endregion
463
390
  //#region src/composables/useCustomBlockStylesheets.ts
464
- function qn(e, t) {
465
- return b(() => {
466
- let n = Jn(e.value.blocks);
391
+ function Jn(e, t) {
392
+ return y(() => {
393
+ let n = Yn(e.value.blocks);
467
394
  if (n.size === 0) return [];
468
395
  let r = /* @__PURE__ */ new Set(), i = [];
469
396
  for (let e of n) {
@@ -475,76 +402,76 @@ function qn(e, t) {
475
402
  return i;
476
403
  });
477
404
  }
478
- function Jn(e) {
405
+ function Yn(e) {
479
406
  let t = /* @__PURE__ */ new Set();
480
- return Yn(e, t), t;
407
+ return Xn(e, t), t;
481
408
  }
482
- function Yn(e, t) {
483
- for (let n of e) if (Ne(n)) t.add(n.customType);
409
+ function Xn(e, t) {
410
+ for (let n of e) if (Fe(n)) t.add(n.customType);
484
411
  else if (n.type === "section") {
485
412
  let e = n.children;
486
413
  if (!e) continue;
487
- for (let n of e) Yn(n, t);
488
- } else De(n) && Yn(n.children, t);
414
+ for (let n of e) Xn(n, t);
415
+ } else Oe(n) && Xn(n.children, t);
489
416
  }
490
417
  //#endregion
491
418
  //#region src/utils/registerBuiltInBlocks.ts
492
- var Xn = [
419
+ var Zn = [
493
420
  {
494
421
  type: "section",
495
- createBlock: V
422
+ createBlock: B
496
423
  },
497
424
  {
498
425
  type: "title",
499
- createBlock: U
426
+ createBlock: W
500
427
  },
501
428
  {
502
429
  type: "paragraph",
503
- createBlock: Ue
430
+ createBlock: We
504
431
  },
505
432
  {
506
433
  type: "image",
507
- createBlock: re
434
+ createBlock: ie
508
435
  },
509
436
  {
510
437
  type: "button",
511
- createBlock: ie
438
+ createBlock: ae
512
439
  },
513
440
  {
514
441
  type: "divider",
515
- createBlock: H
442
+ createBlock: ee
516
443
  },
517
444
  {
518
445
  type: "video",
519
- createBlock: ne
446
+ createBlock: re
520
447
  },
521
448
  {
522
449
  type: "social",
523
- createBlock: ee
450
+ createBlock: te
524
451
  },
525
452
  {
526
453
  type: "menu",
527
- createBlock: de
454
+ createBlock: fe
528
455
  },
529
456
  {
530
457
  type: "table",
531
- createBlock: he
458
+ createBlock: ge
532
459
  },
533
460
  {
534
461
  type: "spacer",
535
- createBlock: me
462
+ createBlock: he
536
463
  },
537
464
  {
538
465
  type: "html",
539
- createBlock: te
466
+ createBlock: ne
540
467
  },
541
468
  {
542
469
  type: "countdown",
543
- createBlock: oe
470
+ createBlock: se
544
471
  }
545
472
  ];
546
- function Zn(e, t) {
547
- for (let n of Xn) {
473
+ function Qn(e, t) {
474
+ for (let n of Zn) {
548
475
  let r = t[n.type];
549
476
  r && e.registerBuiltIn(n.type, {
550
477
  component: r,
@@ -554,33 +481,33 @@ function Zn(e, t) {
554
481
  }
555
482
  //#endregion
556
483
  //#region src/utils/resolveHtmlBlockPreview.ts
557
- function Qn(e) {
484
+ function $n(e) {
558
485
  return typeof e == "boolean" ? e : e?.enabled ?? !1;
559
486
  }
560
487
  //#endregion
561
488
  //#region src/utils/collectOffPaletteDefaults.ts
562
- function $n(e) {
489
+ function er(e) {
563
490
  return typeof e == "object" && !!e && !Array.isArray(e);
564
491
  }
565
- function er(e, t, n) {
566
- let r = new Set(e.map((e) => en(e))), i = [], a = (e, t) => {
567
- for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(en(o)) && i.push(`${t}.${n}: ${o}`) : $n(o) && a(o, `${t}.${n}`);
492
+ function tr(e, t, n) {
493
+ let r = new Set(e.map((e) => cn(e))), i = [], a = (e, t) => {
494
+ for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(cn(o)) && i.push(`${t}.${n}: ${o}`) : er(o) && a(o, `${t}.${n}`);
568
495
  }, o = t;
569
- for (let [e, t] of Object.entries(ue)) {
496
+ for (let [e, t] of Object.entries(de)) {
570
497
  let n = o?.[e];
571
498
  a({
572
499
  ...t,
573
- ...$n(n) ? n : {}
500
+ ...er(n) ? n : {}
574
501
  }, e);
575
502
  }
576
503
  return a({
577
- ...z,
504
+ ...R,
578
505
  ...n ?? {}
579
506
  }, "template"), i;
580
507
  }
581
508
  //#endregion
582
509
  //#region src/utils/localizedBlockDefaults.ts
583
- function tr(e) {
510
+ function nr(e) {
584
511
  return {
585
512
  title: { content: `<p>${e.blockDefaults.title}</p>` },
586
513
  paragraph: { content: `<p>${e.blockDefaults.paragraph}</p>` },
@@ -589,60 +516,60 @@ function tr(e) {
589
516
  }
590
517
  //#endregion
591
518
  //#region src/i18n/index.ts
592
- var nr = /* #__PURE__ */ Object.assign({
593
- "./locales/ca.ts": () => import("./ca-DMoGGP9L.js"),
594
- "./locales/de.ts": () => import("./de-DgAelLbM.js"),
595
- "./locales/en.ts": () => import("./en-Dekrl7HA.js"),
596
- "./locales/es.ts": () => import("./es-BaZzyidV.js"),
597
- "./locales/fr.ts": () => import("./fr-C5ucb1HK.js"),
598
- "./locales/ja.ts": () => import("./ja-CUgR3mV0.js"),
599
- "./locales/nl.ts": () => import("./nl-qrLY7hMS.js"),
600
- "./locales/pt-BR.ts": () => import("./pt-BR-C6hMTQYi.js")
601
- }), rr = /* #__PURE__ */ Object.assign({
519
+ var rr = /* #__PURE__ */ Object.assign({
520
+ "./locales/ca.ts": () => import("./ca-CbNzJM3I.js"),
521
+ "./locales/de.ts": () => import("./de-DMquBpZM.js"),
522
+ "./locales/en.ts": () => import("./en-C8Mp71sO.js"),
523
+ "./locales/es.ts": () => import("./es-Byq4tthI.js"),
524
+ "./locales/fr.ts": () => import("./fr-B3j35HEw.js"),
525
+ "./locales/ja.ts": () => import("./ja-D7txAuGS.js"),
526
+ "./locales/nl.ts": () => import("./nl-ClJ3BY3F.js"),
527
+ "./locales/pt-BR.ts": () => import("./pt-BR-DibcXcmv.js")
528
+ }), ir = /* #__PURE__ */ Object.assign({
602
529
  "./locales/cloud/de.ts": () => import("./de-mMY5yQJu.js"),
603
530
  "./locales/cloud/en.ts": () => import("./en-ChVeGQBY.js"),
604
531
  "./locales/cloud/pt-BR.ts": () => import("./pt-BR-CoCwRUi0.js")
605
532
  });
606
- function ir(e) {
533
+ function ar(e) {
607
534
  return Object.keys(e).map((e) => e.match(/\/([^/]+)\.ts$/)?.[1]).filter((e) => !!e);
608
535
  }
609
- var ar = ir(nr), or = ir(rr);
610
- function sr(e) {
536
+ var or = ar(rr), sr = ar(ir);
537
+ function cr(e) {
611
538
  return e.trim().replace(/_/g, "-").toLowerCase();
612
539
  }
613
- function cr(e, t) {
614
- let n = sr(e);
615
- return t.find((e) => sr(e) === n);
616
- }
617
- function lr(e) {
618
- return sr(e).split("-")[0];
540
+ function lr(e, t) {
541
+ let n = cr(e);
542
+ return t.find((e) => cr(e) === n);
619
543
  }
620
- function ur(e, t) {
621
- return cr(e, t) ?? cr(lr(e), t);
544
+ function ur(e) {
545
+ return cr(e).split("-")[0];
622
546
  }
623
547
  function dr(e, t) {
624
- return ur(e, t) ?? "en";
548
+ return lr(e, t) ?? lr(ur(e), t);
625
549
  }
626
- async function fr(e) {
627
- let t = nr[`./locales/${dr(e, ar)}.ts`];
628
- return (await t()).default;
550
+ function fr(e, t) {
551
+ return dr(e, t) ?? "en";
629
552
  }
630
553
  async function pr(e) {
631
- let t = rr[`./locales/cloud/${dr(e, or)}.ts`];
554
+ let t = rr[`./locales/${fr(e, or)}.ts`];
632
555
  return (await t()).default;
633
556
  }
634
- function mr(e) {
635
- return ur(e, ar) !== void 0;
557
+ async function mr(e) {
558
+ let t = ir[`./locales/cloud/${fr(e, sr)}.ts`];
559
+ return (await t()).default;
636
560
  }
637
561
  function hr(e) {
638
- return ur(e, or) !== void 0;
562
+ return dr(e, or) !== void 0;
639
563
  }
640
- function gr() {
641
- return [...ar];
564
+ function gr(e) {
565
+ return dr(e, sr) !== void 0;
642
566
  }
643
567
  function _r() {
644
568
  return [...or];
645
569
  }
570
+ function vr() {
571
+ return [...sr];
572
+ }
646
573
  //#endregion
647
574
  //#region src/i18n/contentDefaults.ts
648
575
  var $ = {
@@ -710,16 +637,16 @@ var $ = {
710
637
  seconds: "秒",
711
638
  expired: "このオファーは終了しました"
712
639
  }
713
- }, vr = new Map(Object.keys($).map((e) => [e.toLowerCase(), e]));
714
- function yr(e) {
640
+ }, yr = new Map(Object.keys($).map((e) => [e.toLowerCase(), e]));
641
+ function br(e) {
715
642
  if (!e) return $.en;
716
- let t = e.trim().replace(/_/g, "-").toLowerCase(), n = vr.get(t);
643
+ let t = e.trim().replace(/_/g, "-").toLowerCase(), n = yr.get(t);
717
644
  if (n) return $[n];
718
- let r = vr.get(lr(t));
645
+ let r = yr.get(ur(t));
719
646
  return r ? $[r] : $.en;
720
647
  }
721
- function br(e) {
722
- let t = yr(e);
648
+ function xr(e) {
649
+ let t = br(e);
723
650
  return {
724
651
  video: { alt: t.video },
725
652
  countdown: {
@@ -733,9 +660,9 @@ function br(e) {
733
660
  }
734
661
  //#endregion
735
662
  //#region src/utils/collectColorFieldIssues.ts
736
- function xr(e, t) {
663
+ function Sr(e, t) {
737
664
  let n = [], r = (r, i) => {
738
- let a = Ze(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
665
+ let a = $e(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
739
666
  if (a.invalidPresets.length > 0 && n.push({
740
667
  id: s("invalid-presets"),
741
668
  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." : "")
@@ -746,8 +673,8 @@ function xr(e, t) {
746
673
  id: s("allow-custom-ignored"),
747
674
  message: `${o}: allowCustom: true is ignored because colors.allowCustom is false — a field can narrow the editor-wide palette, never unlock it.`
748
675
  }), !a.allowCustom && a.presets.length > 0) {
749
- let e = r.default ?? "", t = new Set(a.presets.map((e) => en(e)));
750
- e !== "" && !t.has(en(e)) && n.push({
676
+ let e = r.default ?? "", t = new Set(a.presets.map((e) => cn(e)));
677
+ e !== "" && !t.has(cn(e)) && n.push({
751
678
  id: s("off-palette-default"),
752
679
  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.`
753
680
  });
@@ -759,7 +686,7 @@ function xr(e, t) {
759
686
  }
760
687
  //#endregion
761
688
  //#region src/utils/keyboardShortcuts.ts
762
- function Sr(e) {
689
+ function Cr(e) {
763
690
  for (let t of e.composedPath()) {
764
691
  if (!(t instanceof HTMLElement)) continue;
765
692
  if (t.isContentEditable) return !0;
@@ -768,14 +695,14 @@ function Sr(e) {
768
695
  }
769
696
  return !1;
770
697
  }
771
- function Cr(e, t) {
698
+ function wr(e, t) {
772
699
  let n = e.metaKey || e.ctrlKey;
773
700
  if (n && e.key.toLowerCase() === "s") e.preventDefault(), t.onSave?.();
774
701
  else if (n && e.key.toLowerCase() === "z") {
775
- if (Sr(e)) return;
702
+ if (Cr(e)) return;
776
703
  e.preventDefault(), e.shiftKey ? t.history.redo() : (t.onBeforeUndo?.(), t.history.undo());
777
704
  } else {
778
- if (t.isPicking?.() && !Sr(e)) {
705
+ if (t.isPicking?.() && !Cr(e)) {
779
706
  if (e.key === "Escape") {
780
707
  e.preventDefault(), t.onCancelPick?.();
781
708
  return;
@@ -789,78 +716,105 @@ function Cr(e, t) {
789
716
  return;
790
717
  }
791
718
  }
792
- e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Sr(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
719
+ e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Cr(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
793
720
  }
794
721
  }
795
722
  //#endregion
796
723
  //#region src/utils/blockComponentResolver.ts
797
- function wr(e, t) {
724
+ function Tr(e, t) {
798
725
  let n = { fontFamily: t(e.fontFamily) };
799
726
  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;
800
727
  }
801
- function Tr(e, t, n) {
728
+ function Er(e, t, n) {
802
729
  if (t) {
803
730
  let n = t.getComponent(e);
804
731
  if (n) return n;
805
732
  }
806
733
  return n[e.type] ?? null;
807
734
  }
808
- var Er = "--tpl-block-bg-layer", Dr = "tpl-has-bg-image";
809
- function Or(e, t) {
735
+ var Dr = "--tpl-block-bg-layer", Or = "tpl-has-bg-image";
736
+ function kr(e, t) {
810
737
  if (t === null) return {};
811
- let n = pe(e);
738
+ let n = V(e);
812
739
  if (n === null) return {};
813
- let r = t?.trim(), i = r ? Be(r) : n.url;
740
+ let r = t?.trim(), i = r ? H(r) : n.url;
814
741
  return {
815
742
  backgroundImage: `url("${i}")`,
816
743
  backgroundSize: n.size,
817
744
  backgroundPosition: n.position,
818
745
  backgroundRepeat: n.repeat,
819
- [Er]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
746
+ [Dr]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
747
+ };
748
+ }
749
+ function Ar(e) {
750
+ return e && Dr in e ? Or : void 0;
751
+ }
752
+ var jr = {
753
+ top: "flex-start",
754
+ middle: "center",
755
+ bottom: "flex-end"
756
+ };
757
+ function Mr(e, t) {
758
+ let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${Nr(t, e.aspectRatio)}px` } : { aspectRatio: `1 / ${e.aspectRatio ?? 1}` };
759
+ return {
760
+ display: "flex",
761
+ flexDirection: "column",
762
+ justifyContent: jr[e.verticalAlign],
763
+ boxSizing: "border-box",
764
+ ...n
820
765
  };
821
766
  }
822
- function kr(e) {
823
- return e && Er in e ? Dr : void 0;
767
+ function Nr(e, t) {
768
+ return Math.max(1, Math.round(Math.max(1, Math.round(e)) * t));
824
769
  }
825
- function Ar(e, t = {}) {
770
+ function Pr(e, t = {}) {
826
771
  if (e.type === "wrapper") return {};
827
772
  let { padding: n, backgroundColor: r } = e.styles, i = {
828
773
  padding: `${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`,
829
774
  backgroundColor: r || "transparent"
830
775
  };
831
- if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? ke.paragraphGap : ke.paragraphGap}px`), e.type === "section") {
832
- let n = se(e.borderRadius);
833
- n !== null && (i.borderRadius = n), Object.assign(i, Mr(e.border)), Object.assign(i, Or(e.backgroundImage, t.backgroundImageUrl));
776
+ if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? je.paragraphGap : je.paragraphGap}px`), e.type === "section") {
777
+ let n = U(e.borderRadius);
778
+ n !== null && (i.borderRadius = n);
779
+ let r = pe(e);
780
+ r?.applied && e.backgroundImage ? (Object.assign(i, Mr(r, t.heroBoxWidth)), Object.assign(i, kr({
781
+ ...e.backgroundImage,
782
+ size: "cover",
783
+ repeat: !1
784
+ }, t.backgroundImageUrl))) : (Object.assign(i, Ir(e.border)), Object.assign(i, kr(e.backgroundImage, t.backgroundImageUrl)));
834
785
  }
835
786
  return i;
836
787
  }
837
- function jr(e, t, n) {
838
- return e.type === "section" ? Ar(e, { backgroundImageUrl: Ln(t, e.backgroundImage, n) }) : Ar(e);
788
+ function Fr(e, t, n, r) {
789
+ return e.type === "section" ? Pr(e, {
790
+ backgroundImageUrl: st(t, e.backgroundImage, n),
791
+ heroBoxWidth: r
792
+ }) : Pr(e);
839
793
  }
840
- function Mr(e) {
794
+ function Ir(e) {
841
795
  let t = {};
842
- for (let [n, r] of Object.entries(ae(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
796
+ for (let [n, r] of Object.entries(ue(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
843
797
  return t;
844
798
  }
845
- function Nr(e, t = {}) {
799
+ function Lr(e, t = {}) {
846
800
  if (e.type !== "section" || !e.wrapper) return null;
847
801
  let n = e.wrapper, r = {};
848
802
  n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && (r.padding = `${n.padding.top}px ${n.padding.right}px ${n.padding.bottom}px ${n.padding.left}px`);
849
- let i = se(n.borderRadius);
850
- return i !== null && (r.borderRadius = i), Object.assign(r, Or(n.backgroundImage, t.backgroundImageUrl)), r;
803
+ let i = U(n.borderRadius);
804
+ return i !== null && (r.borderRadius = i), Object.assign(r, kr(n.backgroundImage, t.backgroundImageUrl)), r;
851
805
  }
852
- function Pr(e, t = {}) {
806
+ function Rr(e, t = {}) {
853
807
  if (e.type !== "wrapper") return null;
854
808
  let n = {};
855
809
  if (e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding) {
856
810
  let t = e.styles.padding;
857
811
  n.padding = `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`;
858
812
  }
859
- return e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, Or(e.backgroundImage, t.backgroundImageUrl)), n;
813
+ return e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, kr(e.backgroundImage, t.backgroundImageUrl)), n;
860
814
  }
861
815
  //#endregion
862
816
  //#region src/utils/mergeTagLabelSegments.ts
863
- function Fr(e, t, n, r = !1) {
817
+ function zr(e, t, n, r = !1) {
864
818
  if (!e) return [];
865
819
  let i = RegExp(`(${n.value.source}|${n.logic.source})`, "g"), a = [], o = 0, s;
866
820
  for (; (s = i.exec(e)) !== null;) {
@@ -869,18 +823,18 @@ function Fr(e, t, n, r = !1) {
869
823
  value: e.slice(o, s.index)
870
824
  });
871
825
  let i = s[0];
872
- if (we(i, n)) {
873
- let e = r ? Le(i, t) : void 0;
826
+ if (Te(i, n)) {
827
+ let e = r ? ze(i, t) : void 0;
874
828
  a.push(e === void 0 ? {
875
829
  type: "tag",
876
- value: Pe(i, t)
830
+ value: Ie(i, t)
877
831
  } : {
878
832
  type: "text",
879
833
  value: e
880
834
  });
881
- } else Se(i, n) ? a.push({
835
+ } else Ce(i, n) ? a.push({
882
836
  type: "tag",
883
- value: ye(i, n)
837
+ value: be(i, n)
884
838
  }) : a.push({
885
839
  type: "text",
886
840
  value: i
@@ -894,27 +848,27 @@ function Fr(e, t, n, r = !1) {
894
848
  }
895
849
  //#endregion
896
850
  //#region src/components/MergeTagPreviewText.vue
897
- var Ir = d({
851
+ var Br = d({
898
852
  name: "MergeTagPreviewText",
899
853
  props: { text: {
900
854
  type: String,
901
855
  required: !0
902
856
  } },
903
857
  setup(e) {
904
- let t = n(K, mt), r = n(Ct, Ie.liquid), i = n(wt, null), a = b(() => Fr(e.text, t.value, r, i?.value ?? !1));
905
- return () => a.value.map((e, t) => e.type === "tag" ? I("span", {
858
+ let t = n(q, xt), r = n(At, Re.liquid), i = n(jt, null), a = y(() => zr(e.text, t.value, r, i?.value ?? !1));
859
+ return () => a.value.map((e, t) => e.type === "tag" ? F("span", {
906
860
  key: t,
907
861
  class: "tpl-merge-tag-label"
908
862
  }, e.value) : e.value);
909
863
  }
910
- }), Lr = ["href"], Rr = /* @__PURE__ */ d({
864
+ }), Vr = ["href"], Hr = /* @__PURE__ */ d({
911
865
  __name: "ButtonBlock",
912
866
  props: {
913
867
  block: {},
914
868
  viewport: {}
915
869
  },
916
870
  setup(e) {
917
- let t = e, n = G(J, "ButtonBlock"), r = b(() => {
871
+ let t = e, n = K(Y, "ButtonBlock"), r = y(() => {
918
872
  let e = {
919
873
  display: "inline-block",
920
874
  padding: `${t.block.buttonPadding.top}px ${t.block.buttonPadding.right}px ${t.block.buttonPadding.bottom}px ${t.block.buttonPadding.left}px`,
@@ -923,56 +877,56 @@ var Ir = d({
923
877
  fontSize: `${t.block.fontSize}px`,
924
878
  fontWeight: "bold",
925
879
  textDecoration: "none",
926
- borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : se(t.block.borderRadius) ?? "0px",
880
+ borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : U(t.block.borderRadius) ?? "0px",
927
881
  textAlign: "center"
928
882
  };
929
- return Object.assign(e, Mr(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;
930
- }), i = b(() => ({ textAlign: t.block.align ?? "center" }));
931
- return (t, n) => (s(), x("div", { style: D(i.value) }, [k("a", {
883
+ return Object.assign(e, Ir(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;
884
+ }), i = y(() => ({ textAlign: t.block.align ?? "center" }));
885
+ return (t, n) => (s(), b("div", { style: E(i.value) }, [O("a", {
932
886
  href: e.block.url || "#",
933
- style: D(r.value),
887
+ style: E(r.value),
934
888
  class: "tpl:cursor-default",
935
- onClick: n[0] ||= E(() => {}, ["prevent"])
936
- }, [g(Ir, { text: e.block.text }, null, 8, ["text"])], 12, Lr)], 4));
889
+ onClick: n[0] ||= T(() => {}, ["prevent"])
890
+ }, [h(Br, { text: e.block.text }, null, 8, ["text"])], 12, Vr)], 4));
937
891
  }
938
- }), zr = ["innerHTML"], Br = [
892
+ }), Ur = ["innerHTML"], Wr = [
939
893
  "src",
940
894
  "width",
941
895
  "height"
942
- ], Vr = /* @__PURE__ */ d({
896
+ ], Gr = /* @__PURE__ */ d({
943
897
  __name: "CustomBlockIcon",
944
898
  props: {
945
899
  icon: {},
946
900
  size: {}
947
901
  },
948
902
  setup(e) {
949
- let t = e, n = b(() => t.size ?? 20), r = b(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), i = b(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/")));
950
- return (t, a) => r.value ? (s(), x("span", {
903
+ let t = e, n = y(() => t.size ?? 20), r = y(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), i = y(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/")));
904
+ return (t, a) => r.value ? (s(), b("span", {
951
905
  key: 0,
952
906
  class: "tpl:inline-flex tpl:items-center tpl:justify-center",
953
- style: D({
907
+ style: E({
954
908
  width: `${n.value}px`,
955
909
  height: `${n.value}px`
956
910
  }),
957
911
  innerHTML: e.icon
958
- }, null, 12, zr)) : i.value ? (s(), x("img", {
912
+ }, null, 12, Ur)) : i.value ? (s(), b("img", {
959
913
  key: 1,
960
914
  src: e.icon,
961
915
  width: n.value,
962
916
  height: n.value,
963
917
  class: "tpl:inline-block",
964
918
  alt: ""
965
- }, null, 8, Br)) : (s(), O(h(on), {
919
+ }, null, 8, Wr)) : (s(), D(m(vn), {
966
920
  key: 2,
967
921
  size: n.value,
968
922
  "stroke-width": 1.5
969
923
  }, null, 8, ["size"]));
970
924
  }
971
- }), Hr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
972
- function Ur(e, n) {
973
- let r = wn(), i = null, a = null, o = null;
925
+ }), Kr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
926
+ function qr(e, n) {
927
+ let r = jn(), i = null, a = null, o = null;
974
928
  function s() {
975
- return e.value ? Array.from(e.value.querySelectorAll(Hr)).filter((e) => e.offsetParent !== null) : [];
929
+ return e.value ? Array.from(e.value.querySelectorAll(Kr)).filter((e) => e.offsetParent !== null) : [];
976
930
  }
977
931
  function c(e) {
978
932
  if (e.key !== "Tab") return;
@@ -987,7 +941,7 @@ function Ur(e, n) {
987
941
  o = null;
988
942
  let t = s();
989
943
  t.length > 0 && (e.value?.querySelector("[autofocus], input:not([disabled])") ?? t[0]).focus();
990
- }), a = ot(e, "keydown", c);
944
+ }), a = pt(e, "keydown", c);
991
945
  }
992
946
  function u(e = {}) {
993
947
  let t = e.restoreFocus !== !1;
@@ -996,15 +950,15 @@ function Ur(e, n) {
996
950
  let d = t([n, e], ([e, t]) => {
997
951
  e && t ? l() : u();
998
952
  }, { flush: "post" });
999
- m(() => {
953
+ p(() => {
1000
954
  d(), u();
1001
955
  });
1002
956
  }
1003
957
  //#endregion
1004
958
  //#region src/composables/useEmoji.ts
1005
- function Wr() {
1006
- let [e, n] = it(!1), r = y([]), i = !1;
1007
- m(() => {
959
+ function Jr() {
960
+ let [e, n] = dt(!1), r = v([]), i = !1;
961
+ p(() => {
1008
962
  i = !0;
1009
963
  }), t(e, async (e) => {
1010
964
  if (e && r.value.length === 0) {
@@ -1028,7 +982,7 @@ function Wr() {
1028
982
  }
1029
983
  //#endregion
1030
984
  //#region src/composables/useFonts.ts
1031
- var Gr = [
985
+ var Yr = [
1032
986
  {
1033
987
  value: "Arial",
1034
988
  label: "Arial"
@@ -1057,19 +1011,19 @@ var Gr = [
1057
1011
  value: "Courier New",
1058
1012
  label: "Courier New"
1059
1013
  }
1060
- ], Kr = "Arial, sans-serif";
1061
- function qr(e) {
1062
- if (e === void 0 || e === !0) return [...Gr];
1014
+ ], Xr = "Arial, sans-serif";
1015
+ function Zr(e) {
1016
+ if (e === void 0 || e === !0) return [...Yr];
1063
1017
  if (e === !1) return [];
1064
1018
  let t = [], n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
1065
1019
  for (let i of e) {
1066
- let e = i.toLowerCase(), a = Gr.find((t) => t.value.toLowerCase() === e);
1067
- a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), X.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${Gr.map((e) => e.value).join(", ")}.`));
1020
+ let e = i.toLowerCase(), a = Yr.find((t) => t.value.toLowerCase() === e);
1021
+ a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), Z.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${Yr.map((e) => e.value).join(", ")}.`));
1068
1022
  }
1069
1023
  return t;
1070
1024
  }
1071
- function Jr(e) {
1072
- let t = l(e?.customFonts ?? []), n = l(!1), r = qr(e?.builtIns), i = b(() => e?.defaultFallback ?? Kr), a = b(() => {
1025
+ function Qr(e) {
1026
+ let t = l(e?.customFonts ?? []), n = l(!1), r = Zr(e?.builtIns), i = y(() => e?.defaultFallback ?? Xr), a = y(() => {
1073
1027
  let e = [...r], n = t.value.map((e) => ({
1074
1028
  value: e.name,
1075
1029
  label: e.name,
@@ -1080,23 +1034,23 @@ function Jr(e) {
1080
1034
  function s(e) {
1081
1035
  return a.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
1082
1036
  }
1083
- let c = e?.defaultFont ?? Kr.split(",")[0].trim();
1084
- s(c) || X.warn(`config.fonts: new templates seed "${c}", 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.`);
1037
+ let c = e?.defaultFont ?? Xr.split(",")[0].trim();
1038
+ s(c) || Z.warn(`config.fonts: new templates seed "${c}", 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.`);
1085
1039
  function u() {
1086
1040
  if (e?.defaultFont && s(e.defaultFont)) {
1087
1041
  let t = a.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
1088
1042
  if (t) return t.value;
1089
1043
  }
1090
- return Kr;
1044
+ return Xr;
1091
1045
  }
1092
- let d = b(() => u());
1046
+ let d = y(() => u());
1093
1047
  function f(e) {
1094
- return be(e, {
1048
+ return xe(e, {
1095
1049
  customFonts: t.value,
1096
1050
  defaultFallback: i.value
1097
1051
  });
1098
1052
  }
1099
- let p = [], h = !1;
1053
+ let m = [], h = !1;
1100
1054
  async function g() {
1101
1055
  if (t.value.length === 0) {
1102
1056
  h || (n.value = !0);
@@ -1106,20 +1060,20 @@ function Jr(e) {
1106
1060
  try {
1107
1061
  if (document.querySelector(`link[data-custom-font="${CSS.escape(e.name)}"]`)) return;
1108
1062
  let t = document.createElement("link");
1109
- t.rel = "stylesheet", t.href = e.url, t.setAttribute("data-custom-font", e.name), p.push(t), await new Promise((n, r) => {
1063
+ t.rel = "stylesheet", t.href = e.url, t.setAttribute("data-custom-font", e.name), m.push(t), await new Promise((n, r) => {
1110
1064
  t.onload = () => n(), t.onerror = () => r(/* @__PURE__ */ Error(`Failed to load font: ${e.name}`)), document.head.appendChild(t);
1111
1065
  });
1112
1066
  } catch (t) {
1113
- X.warn(`Failed to load custom font "${e.name}":`, t);
1067
+ Z.warn(`Failed to load custom font "${e.name}":`, t);
1114
1068
  }
1115
1069
  });
1116
1070
  await Promise.allSettled(e), !h && (n.value = !0);
1117
1071
  }
1118
1072
  function _() {
1119
- for (let e of p) e.remove();
1120
- p.length = 0;
1073
+ for (let e of m) e.remove();
1074
+ m.length = 0;
1121
1075
  }
1122
- return o() && m(() => {
1076
+ return o() && p(() => {
1123
1077
  h = !0, _();
1124
1078
  }), {
1125
1079
  fonts: a,
@@ -1135,12 +1089,12 @@ function Jr(e) {
1135
1089
  }
1136
1090
  //#endregion
1137
1091
  //#region src/utils/mergeTagNodeSpec.ts
1138
- function Yr(e, t, n) {
1139
- return Se(e, n) ? {
1092
+ function $r(e, t, n) {
1093
+ return Ce(e, n) ? {
1140
1094
  type: "logicMergeTagNode",
1141
1095
  attrs: {
1142
1096
  value: e,
1143
- keyword: ye(e, n)
1097
+ keyword: be(e, n)
1144
1098
  }
1145
1099
  } : {
1146
1100
  type: "mergeTagNode",
@@ -1152,33 +1106,33 @@ function Yr(e, t, n) {
1152
1106
  }
1153
1107
  //#endregion
1154
1108
  //#region src/utils/insertLogicTag.ts
1155
- function Xr(e) {
1109
+ function ei(e) {
1156
1110
  return "before" in e && "after" in e;
1157
1111
  }
1158
- function Zr(e, t, n) {
1159
- if (!Xr(t)) {
1160
- e.chain().focus().insertContent(Yr(t.value, t.label, n)).run();
1112
+ function ti(e, t, n) {
1113
+ if (!ei(t)) {
1114
+ e.chain().focus().insertContent($r(t.value, t.label, n)).run();
1161
1115
  return;
1162
1116
  }
1163
- let r = Yr(t.before, t.label, n), i = Yr(t.after, t.label, n), { from: a, to: o } = e.state.selection;
1117
+ let r = $r(t.before, t.label, n), i = $r(t.after, t.label, n), { from: a, to: o } = e.state.selection;
1164
1118
  a === o ? e.chain().focus().insertContentAt(a, [r, i]).setTextSelection(a + 1).run() : e.chain().focus().insertContentAt(o, i).insertContentAt(a, r).run();
1165
1119
  }
1166
1120
  //#endregion
1167
1121
  //#region src/utils/linkColorExtension.ts
1168
- function Qr(e) {
1122
+ function ni(e) {
1169
1123
  if (!e) return null;
1170
1124
  let t = e.trim();
1171
1125
  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;
1172
1126
  }
1173
- function $r(e) {
1127
+ function ri(e) {
1174
1128
  return e.extend({ addAttributes() {
1175
1129
  return {
1176
1130
  ...this.parent?.(),
1177
1131
  color: {
1178
1132
  default: null,
1179
- parseHTML: (e) => Qr($t(e.style.color)),
1133
+ parseHTML: (e) => ni(sn(e.style.color)),
1180
1134
  renderHTML: (e) => {
1181
- let t = Qr(e.color);
1135
+ let t = ni(e.color);
1182
1136
  return t ? { style: `color: ${t}` } : {};
1183
1137
  }
1184
1138
  }
@@ -1187,9 +1141,9 @@ function $r(e) {
1187
1141
  }
1188
1142
  //#endregion
1189
1143
  //#region src/composables/useRichTextLinkDialog.ts
1190
- function ei(e, t = Ie.liquid) {
1144
+ function ii(e, t = Re.liquid) {
1191
1145
  let n = l(!1), r = l(""), i = l(""), a = l(null);
1192
- Ur(a, n);
1146
+ qr(a, n);
1193
1147
  function o() {
1194
1148
  let t = e.value?.getAttributes("link") ?? {};
1195
1149
  r.value = t.href || "", i.value = t.color || "", n.value = !0;
@@ -1198,7 +1152,7 @@ function ei(e, t = Ie.liquid) {
1198
1152
  if (r.value) {
1199
1153
  let t = f(r.value);
1200
1154
  if (t !== null) {
1201
- let n = Qr(i.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
1155
+ let n = ni(i.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
1202
1156
  n && typeof e.value?.commands.unsetColor == "function" && r?.unsetColor(), r?.run();
1203
1157
  }
1204
1158
  }
@@ -1250,13 +1204,13 @@ function ei(e, t = Ie.liquid) {
1250
1204
  }
1251
1205
  //#endregion
1252
1206
  //#region src/composables/useRichTextEditor.ts
1253
- function ti(r) {
1254
- let i = n(q, null), { mergeTags: a, canRequestMergeTag: o, isRequesting: s, requestMergeTag: c, syntax: u, autocomplete: d } = Tn(), { canInsertLogicTag: f, isRequesting: p, requestLogicTag: m } = En(), h = n(At, null), g = (A(h) ? h.value : h)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", _ = Ae(u), v = y(null), b = () => ge(i?.content?.value?.settings ?? { locale: "en" });
1207
+ function ai(r) {
1208
+ let i = n(J, null), { mergeTags: a, canRequestMergeTag: o, isRequesting: s, requestMergeTag: c, syntax: u, autocomplete: d } = Mn(), { canInsertLogicTag: f, isRequesting: p, requestLogicTag: m } = Nn(), h = n(Lt, null), g = (k(h) ? h.value : h)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", _ = Me(u), y = v(null), b = () => _e(i?.content?.value?.settings ?? { locale: "en" });
1255
1209
  t(b, (e) => {
1256
- let t = v.value?.view.dom;
1210
+ let t = y.value?.view.dom;
1257
1211
  t && t.setAttribute("dir", e);
1258
1212
  });
1259
- let { showLinkDialog: x, linkUrl: S, linkColor: C, linkDialogRef: w, openLinkDialog: T, insertLink: E, removeLink: D, closeLinkDialog: O, handleLinkKeydown: k } = ei(v, u), { start: j, stop: M } = nt(() => v.value?.commands.focus("end"), 0, { immediate: !1 }), N = y(null), P = l(!0), F = l(null), I = !1, L = null;
1213
+ let { showLinkDialog: x, linkUrl: S, linkColor: C, linkDialogRef: w, openLinkDialog: T, insertLink: E, removeLink: D, closeLinkDialog: O, handleLinkKeydown: A } = ii(y, u), { start: j, stop: M } = lt(() => y.value?.commands.focus("end"), 0, { immediate: !1 }), N = v(null), P = l(!0), F = l(null), I = !1, L = null;
1260
1214
  async function R() {
1261
1215
  F.value = null, P.value = !0;
1262
1216
  try {
@@ -1284,18 +1238,18 @@ function ti(r) {
1284
1238
  s.destroy();
1285
1239
  return;
1286
1240
  }
1287
- v.value = s, P.value = !1, j();
1241
+ y.value = s, P.value = !1, j();
1288
1242
  } catch (e) {
1289
1243
  if (I) return;
1290
- X.error(`[${r.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, e), F.value = e instanceof Error ? e.message : "Failed to load editor", P.value = !1;
1244
+ Z.error(`[${r.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, e), F.value = e instanceof Error ? e.message : "Failed to load editor", P.value = !1;
1291
1245
  }
1292
1246
  }
1293
1247
  function z() {
1294
- v.value?.destroy(), v.value = null, R();
1248
+ y.value?.destroy(), y.value = null, R();
1295
1249
  }
1296
1250
  R();
1297
1251
  let B = t(() => r.blockContent(), (e) => {
1298
- v.value && e !== L && (L = e, v.value.getHTML() !== e && v.value.commands.setContent(e, { emitUpdate: !1 }));
1252
+ y.value && e !== L && (L = e, y.value.getHTML() !== e && y.value.commands.setContent(e, { emitUpdate: !1 }));
1299
1253
  });
1300
1254
  function V(e) {
1301
1255
  if (s.value || p.value) return;
@@ -1305,22 +1259,22 @@ function ti(r) {
1305
1259
  let i = t.some((e) => e instanceof HTMLElement && e.classList.contains("tpl-color-popover"));
1306
1260
  n.closest(".tpl-text-editor-wrapper") || n.closest(".tpl-text-toolbar") || n.closest(".tpl-link-dialog") || i || r.onDone();
1307
1261
  }
1308
- ot(document, "mousedown", V), e(() => {
1309
- I = !0, B(), M(), v.value?.destroy();
1262
+ pt(document, "mousedown", V), e(() => {
1263
+ I = !0, B(), M(), y.value?.destroy();
1310
1264
  });
1311
1265
  async function H() {
1312
1266
  let e = await c();
1313
- I || (e && v.value ? v.value.chain().focus().insertMergeTag({
1267
+ I || (e && y.value ? y.value.chain().focus().insertMergeTag({
1314
1268
  label: e.label,
1315
1269
  value: e.value
1316
- }).run() : v.value?.commands.focus());
1270
+ }).run() : y.value?.commands.focus());
1317
1271
  }
1318
- async function U() {
1272
+ async function ee() {
1319
1273
  let e = await m();
1320
- I || (e && v.value ? Zr(v.value, e, u) : v.value?.commands.focus());
1274
+ I || (e && y.value ? ti(y.value, e, u) : y.value?.commands.focus());
1321
1275
  }
1322
1276
  return {
1323
- editor: v,
1277
+ editor: y,
1324
1278
  EditorContent: N,
1325
1279
  isLoading: P,
1326
1280
  initError: F,
@@ -1339,37 +1293,37 @@ function ti(r) {
1339
1293
  insertLink: E,
1340
1294
  removeLink: D,
1341
1295
  closeLinkDialog: O,
1342
- handleLinkKeydown: k,
1296
+ handleLinkKeydown: A,
1343
1297
  handleAddMergeTag: H,
1344
- handleAddLogicTag: U
1298
+ handleAddLogicTag: ee
1345
1299
  };
1346
1300
  }
1347
1301
  //#endregion
1348
1302
  //#region src/composables/useSmallScreenNotice.ts
1349
- var ni = "(max-width: 767px)";
1350
- function ri(e) {
1351
- let t = st(ni);
1303
+ var oi = "(max-width: 767px)";
1304
+ function si(e) {
1305
+ let t = mt(oi);
1352
1306
  return {
1353
1307
  isSmallScreen: t,
1354
- showNotice: b(() => (j(e) ?? !0) && t.value)
1308
+ showNotice: y(() => (A(e) ?? !0) && t.value)
1355
1309
  };
1356
1310
  }
1357
1311
  //#endregion
1358
1312
  //#region src/components/blocks/CustomBlock.vue?vue&type=script&setup=true&lang.ts
1359
- var ii = { class: "tpl:w-full" }, ai = {
1313
+ var ci = { class: "tpl:w-full" }, li = {
1360
1314
  key: 0,
1361
1315
  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)]"
1362
- }, oi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, si = {
1316
+ }, ui = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, di = {
1363
1317
  key: 1,
1364
1318
  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)]"
1365
- }, ci = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, li = {
1319
+ }, fi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, pi = {
1366
1320
  key: 2,
1367
1321
  class: "tpl:relative"
1368
- }, ui = ["innerHTML"], di = {
1322
+ }, mi = ["innerHTML"], hi = {
1369
1323
  key: 0,
1370
1324
  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]",
1371
1325
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
1372
- }, fi = /* @__PURE__ */ d({
1326
+ }, gi = /* @__PURE__ */ d({
1373
1327
  __name: "CustomBlock",
1374
1328
  props: {
1375
1329
  block: {},
@@ -1377,19 +1331,19 @@ var ii = { class: "tpl:w-full" }, ai = {
1377
1331
  },
1378
1332
  emits: ["fetchData"],
1379
1333
  setup(e, { emit: r }) {
1380
- let i = e, a = r, { t: o } = Y(), c = n(Jt, null), u = l(""), d = l(!1), f = b(() => c?.getDefinition(i.block.customType)), p = b(() => !!f.value), m = b(() => i.block), { isFetching: _, fetch: v, needsFetch: y, hasDataSource: C } = qe({
1334
+ let i = e, a = r, { t: o } = X(), c = n(tn, null), u = l(""), d = l(!1), f = y(() => c?.getDefinition(i.block.customType)), p = y(() => !!f.value), g = y(() => i.block), { isFetching: _, fetch: v, needsFetch: S, hasDataSource: w } = tt({
1381
1335
  definition: f,
1382
- block: m,
1336
+ block: g,
1383
1337
  onUpdate: (e, t) => {
1384
1338
  a("fetchData", {
1385
1339
  fieldValues: e,
1386
1340
  dataSourceFetched: t
1387
1341
  });
1388
1342
  }
1389
- }), T = n(K, mt), D = n(wt, null), A = b(() => {
1390
- if (!D?.value) return i.block;
1343
+ }), E = n(q, xt), k = n(jt, null), A = y(() => {
1344
+ if (!k?.value) return i.block;
1391
1345
  let e = {};
1392
- for (let [t, n] of Object.entries(i.block.fieldValues)) e[t] = typeof n == "string" ? ve(n, T.value) : n;
1346
+ for (let [t, n] of Object.entries(i.block.fieldValues)) e[t] = typeof n == "string" ? ye(n, E.value) : n;
1393
1347
  return {
1394
1348
  ...i.block,
1395
1349
  fieldValues: e
@@ -1406,102 +1360,102 @@ var ii = { class: "tpl:w-full" }, ai = {
1406
1360
  }
1407
1361
  }
1408
1362
  }
1409
- let M = rt(j, 150);
1410
- return w(() => {
1363
+ let M = ut(j, 150);
1364
+ return C(() => {
1411
1365
  j();
1412
1366
  }), t(() => i.block.fieldValues, () => {
1413
1367
  M();
1414
- }, { deep: !0 }), t(() => D?.value, () => {
1368
+ }, { deep: !0 }), t(() => k?.value, () => {
1415
1369
  M();
1416
- }), (e, t) => (s(), x("div", ii, [p.value ? d.value ? (s(), x("div", si, [g(h(fn), {
1370
+ }), (e, t) => (s(), b("div", ci, [p.value ? d.value ? (s(), b("div", di, [h(m(Sn), {
1417
1371
  size: 24,
1418
1372
  class: "tpl:text-[var(--tpl-danger)]"
1419
- }), k("span", ci, F(h(o).customBlocks.renderError), 1)])) : (s(), x("div", li, [k("div", { innerHTML: u.value }, null, 8, ui), h(C) && h(y) ? (s(), x("div", di, [h(_) ? (s(), O(Sn, {
1373
+ }), O("span", fi, P(m(o).customBlocks.renderError), 1)])) : (s(), b("div", pi, [O("div", { innerHTML: u.value }, null, 8, mi), m(w) && m(S) ? (s(), b("div", hi, [m(_) ? (s(), D(kn, {
1420
1374
  key: 1,
1421
1375
  class: "tpl:w-48"
1422
- })) : (s(), x("button", {
1376
+ })) : (s(), b("button", {
1423
1377
  key: 0,
1424
1378
  type: "button",
1425
1379
  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)]",
1426
- onClick: t[0] ||= E((...e) => h(v) && h(v)(...e), ["stop"])
1427
- }, [f.value?.icon ? (s(), O(Vr, {
1380
+ onClick: t[0] ||= T((...e) => m(v) && m(v)(...e), ["stop"])
1381
+ }, [f.value?.icon ? (s(), D(Gr, {
1428
1382
  key: 0,
1429
1383
  icon: f.value.icon,
1430
1384
  size: 16
1431
- }, null, 8, ["icon"])) : S("", !0), R(" " + F(f.value?.dataSource?.label || h(o).customBlocks.dataSource.fetchButton), 1)]))])) : S("", !0)])) : (s(), x("div", ai, [g(h(ln), {
1385
+ }, null, 8, ["icon"])) : x("", !0), L(" " + P(f.value?.dataSource?.label || m(o).customBlocks.dataSource.fetchButton), 1)]))])) : x("", !0)])) : (s(), b("div", li, [h(m(_n), {
1432
1386
  size: 24,
1433
1387
  class: "tpl:text-[var(--tpl-warning)]"
1434
- }), k("span", oi, F(h(o).customBlocks.definitionNotFound), 1)]))]));
1388
+ }), O("span", ui, P(m(o).customBlocks.definitionNotFound), 1)]))]));
1435
1389
  }
1436
- }), pi = { class: "tpl:w-full" }, mi = /* @__PURE__ */ d({
1390
+ }), _i = { class: "tpl:w-full" }, vi = /* @__PURE__ */ d({
1437
1391
  __name: "DividerBlock",
1438
1392
  props: {
1439
1393
  block: {},
1440
1394
  viewport: {}
1441
1395
  },
1442
1396
  setup(e) {
1443
- let t = e, n = b(() => ({
1397
+ let t = e, n = y(() => ({
1444
1398
  borderTop: `${t.block.thickness}px ${t.block.lineStyle} ${t.block.color}`,
1445
1399
  width: t.block.width === "full" ? "100%" : typeof t.block.width == "number" ? `${t.block.width}px` : t.block.width,
1446
1400
  margin: t.block.width === "full" ? "0" : "0 auto"
1447
1401
  }));
1448
- return (e, t) => (s(), x("div", pi, [k("hr", {
1402
+ return (e, t) => (s(), b("div", _i, [O("hr", {
1449
1403
  class: "tpl:m-0 tpl:border-none",
1450
- style: D(n.value)
1404
+ style: E(n.value)
1451
1405
  }, null, 4)]));
1452
1406
  }
1453
- }), hi = { class: "tpl:w-full" }, gi = ["srcdoc", "title"], _i = {
1407
+ }), yi = { class: "tpl:w-full" }, bi = ["srcdoc", "title"], xi = {
1454
1408
  key: 1,
1455
1409
  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)]"
1456
- }, vi = {
1410
+ }, Si = {
1457
1411
  key: 0,
1458
1412
  class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
1459
- }, yi = {
1413
+ }, Ci = {
1460
1414
  key: 1,
1461
1415
  class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
1462
- }, bi = /* @__PURE__ */ d({
1416
+ }, wi = /* @__PURE__ */ d({
1463
1417
  __name: "HtmlBlock",
1464
1418
  props: {
1465
1419
  block: {},
1466
1420
  viewport: {}
1467
1421
  },
1468
1422
  setup(r) {
1469
- let i = r, { t: a } = Y(), o = n(Pt, !1), c = b(() => i.block.content.trim().length > 0), u = b(() => o && c.value), d = n(K, mt), f = n(wt, null), p = b(() => f?.value ? ve(i.block.content, d.value) : i.block.content), m = l(null), _ = l(60), v = null;
1470
- function y() {
1471
- let e = m.value?.contentDocument;
1423
+ let i = r, { t: a } = X(), o = n(Vt, !1), c = y(() => i.block.content.trim().length > 0), u = y(() => o && c.value), d = n(q, xt), f = n(jt, null), p = y(() => f?.value ? ye(i.block.content, d.value) : i.block.content), g = l(null), _ = l(60), v = null;
1424
+ function x() {
1425
+ let e = g.value?.contentDocument;
1472
1426
  e && (_.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
1473
1427
  }
1474
1428
  function S() {
1475
- v?.disconnect(), v = null, y();
1476
- let e = m.value?.contentDocument?.documentElement;
1477
- e && typeof ResizeObserver < "u" && (v = new ResizeObserver(() => y()), v.observe(e));
1429
+ v?.disconnect(), v = null, x();
1430
+ let e = g.value?.contentDocument?.documentElement;
1431
+ e && typeof ResizeObserver < "u" && (v = new ResizeObserver(() => x()), v.observe(e));
1478
1432
  }
1479
1433
  return t(u, (e) => {
1480
1434
  e || (v?.disconnect(), v = null);
1481
1435
  }), e(() => {
1482
1436
  v?.disconnect(), v = null;
1483
- }), (e, t) => (s(), x("div", hi, [u.value ? (s(), x("iframe", {
1437
+ }), (e, t) => (s(), b("div", yi, [u.value ? (s(), b("iframe", {
1484
1438
  key: 0,
1485
1439
  ref_key: "iframeRef",
1486
- ref: m,
1440
+ ref: g,
1487
1441
  srcdoc: p.value,
1488
1442
  sandbox: "allow-same-origin",
1489
- title: h(a).html.preview,
1443
+ title: m(a).html.preview,
1490
1444
  class: "tpl:block tpl:w-full tpl:border-0",
1491
- style: D({ height: `${_.value}px` }),
1445
+ style: E({ height: `${_.value}px` }),
1492
1446
  onLoad: S
1493
- }, null, 44, gi)) : (s(), x("div", _i, [g(h(gn), {
1447
+ }, null, 44, bi)) : (s(), b("div", xi, [h(m(pn), {
1494
1448
  size: 24,
1495
1449
  class: "tpl:text-[var(--tpl-text-dim)]"
1496
- }), c.value ? (s(), x("span", vi, F(h(a).html.preview), 1)) : (s(), x("span", yi, F(h(a).html.empty), 1))]))]));
1450
+ }), c.value ? (s(), b("span", Si, P(m(a).html.preview), 1)) : (s(), b("span", Ci, P(m(a).html.empty), 1))]))]));
1497
1451
  }
1498
- }), xi = ["data-drop-enabled"], Si = ["href"], Ci = ["src", "alt"], wi = ["src", "alt"], Ti = {
1452
+ }), Ti = ["data-drop-enabled"], Ei = ["href"], Di = ["src", "alt"], Oi = ["src", "alt"], ki = {
1499
1453
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
1500
1454
  style: { opacity: "0.7" }
1501
- }, Ei = ["href"], Di = ["src", "alt"], Oi = ["src", "alt"], ki = {
1455
+ }, Ai = ["href"], ji = ["src", "alt"], Mi = ["src", "alt"], Ni = {
1502
1456
  key: 4,
1503
1457
  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)]"
1504
- }, Ai = ["aria-label"], ji = { key: 1 }, Mi = /* @__PURE__ */ d({
1458
+ }, Pi = ["aria-label"], Fi = { key: 1 }, Ii = /* @__PURE__ */ d({
1505
1459
  __name: "ImageBlock",
1506
1460
  props: {
1507
1461
  block: {},
@@ -1509,108 +1463,111 @@ var ii = { class: "tpl:w-full" }, ai = {
1509
1463
  },
1510
1464
  emits: ["update"],
1511
1465
  setup(e, { emit: t }) {
1512
- let n = e, r = t, { t: i } = Y(), { syntax: a } = Tn(), o = b(() => W(n.block.src, a));
1466
+ let n = e, r = t, { t: i } = X(), { syntax: a } = Mn(), o = y(() => ke(n.block.src, a));
1513
1467
  function c(e) {
1514
- let t = { src: e.url };
1468
+ let t = {
1469
+ src: e.url,
1470
+ ...it(et(e.width, e.height))
1471
+ };
1515
1472
  e.alt && (t.alt = e.alt), r("update", t);
1516
1473
  }
1517
- let u = l(), { canBrowse: d, dropEnabled: f, isUploading: p, showOverlay: m, openMediaBrowser: _ } = Ye({
1474
+ let u = l(), { canBrowse: d, dropEnabled: f, isUploading: p, showOverlay: g, openMediaBrowser: _ } = nt({
1518
1475
  target: u,
1519
1476
  blocked: o,
1520
1477
  apply: c
1521
- }), v = b(() => ({ textAlign: n.block.align })), y = b(() => {
1522
- let e = n.block.border, t = ["left", "right"].map((t) => Oe(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
1478
+ }), v = y(() => ({ textAlign: n.block.align })), S = y(() => {
1479
+ let e = n.block.border, t = ["left", "right"].map((t) => ce(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
1523
1480
  return t > 0 ? `calc(100% - ${t}px)` : "100%";
1524
- }), C = b(() => {
1481
+ }), C = y(() => {
1525
1482
  let e = n.block.align;
1526
1483
  return {
1527
1484
  maxWidth: "100%",
1528
- width: n.block.width === "full" ? y.value : `${n.block.width}px`,
1485
+ width: n.block.width === "full" ? S.value : `${n.block.width}px`,
1529
1486
  height: n.block.height ? `${n.block.height}px` : void 0,
1530
- borderRadius: se(n.block.borderRadius) ?? void 0,
1531
- ...Mr(n.block.border),
1487
+ borderRadius: U(n.block.borderRadius) ?? void 0,
1488
+ ...Ir(n.block.border),
1532
1489
  display: "block",
1533
1490
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
1534
1491
  marginRight: e === "center" ? "auto" : void 0
1535
1492
  };
1536
- }), w = Q(() => o.value ? void 0 : n.block.src), T = Q(() => o.value ? n.block.placeholderUrl : void 0);
1537
- return (t, n) => (s(), x("div", {
1493
+ }), w = G(() => o.value ? void 0 : n.block.src), k = G(() => o.value ? n.block.placeholderUrl : void 0);
1494
+ return (t, n) => (s(), b("div", {
1538
1495
  ref_key: "dropZoneRef",
1539
1496
  ref: u,
1540
1497
  "data-testid": "image-drop-zone",
1541
- "data-drop-enabled": h(f),
1498
+ "data-drop-enabled": m(f),
1542
1499
  class: "tpl:relative tpl:w-full",
1543
- style: D(v.value)
1544
- }, [h(m) ? (s(), O(Ge, {
1500
+ style: E(v.value)
1501
+ }, [m(g) ? (s(), D(ot, {
1545
1502
  key: 0,
1546
- uploading: h(p),
1503
+ uploading: m(p),
1547
1504
  size: "canvas"
1548
- }, null, 8, ["uploading"])) : S("", !0), e.block.src && o.value && e.block.placeholderUrl ? (s(), x(P, { key: 1 }, [e.block.linkUrl ? (s(), x("a", {
1505
+ }, null, 8, ["uploading"])) : x("", !0), e.block.src && o.value && e.block.placeholderUrl ? (s(), b(N, { key: 1 }, [e.block.linkUrl ? (s(), b("a", {
1549
1506
  key: 0,
1550
1507
  href: e.block.linkUrl,
1551
1508
  target: "_blank",
1552
1509
  rel: "noopener noreferrer",
1553
- onClick: n[0] ||= E(() => {}, ["prevent"])
1554
- }, [k("img", {
1510
+ onClick: n[0] ||= T(() => {}, ["prevent"])
1511
+ }, [O("img", {
1555
1512
  class: "tpl:border-0",
1556
1513
  loading: "lazy",
1557
- src: h(T),
1558
- alt: e.block.alt || h(i).image.altTextPlaceholder,
1559
- style: D(C.value)
1560
- }, null, 12, Ci)], 8, Si)) : (s(), x("img", {
1514
+ src: m(k),
1515
+ alt: e.block.alt || m(i).image.altTextPlaceholder,
1516
+ style: E(C.value)
1517
+ }, null, 12, Di)], 8, Ei)) : (s(), b("img", {
1561
1518
  key: 1,
1562
1519
  class: "tpl:border-0",
1563
- src: h(T),
1520
+ src: m(k),
1564
1521
  alt: e.block.alt,
1565
- style: D(C.value)
1566
- }, null, 12, wi))], 64)) : e.block.src && o.value ? (s(), x("div", {
1522
+ style: E(C.value)
1523
+ }, null, 12, Oi))], 64)) : e.block.src && o.value ? (s(), b("div", {
1567
1524
  key: 2,
1568
1525
  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)]",
1569
- style: D([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, C.value])
1570
- }, [g(h(yn), {
1526
+ style: E([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, C.value])
1527
+ }, [h(m(Tn), {
1571
1528
  size: 32,
1572
1529
  "stroke-width": 1.5,
1573
1530
  class: "tpl:text-[var(--tpl-primary)]",
1574
1531
  style: { opacity: "0.5" }
1575
- }), k("span", Ti, [g(Ir, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (s(), x(P, { key: 3 }, [e.block.linkUrl ? (s(), x("a", {
1532
+ }), O("span", ki, [h(Br, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (s(), b(N, { key: 3 }, [e.block.linkUrl ? (s(), b("a", {
1576
1533
  key: 0,
1577
1534
  href: e.block.linkUrl,
1578
1535
  target: "_blank",
1579
1536
  rel: "noopener noreferrer",
1580
- onClick: n[1] ||= E(() => {}, ["prevent"])
1581
- }, [k("img", {
1537
+ onClick: n[1] ||= T(() => {}, ["prevent"])
1538
+ }, [O("img", {
1582
1539
  class: "tpl:border-0",
1583
1540
  loading: "lazy",
1584
- src: h(w),
1585
- alt: e.block.alt || h(i).image.altTextPlaceholder,
1586
- style: D(C.value)
1587
- }, null, 12, Di)], 8, Ei)) : (s(), x("img", {
1541
+ src: m(w),
1542
+ alt: e.block.alt || m(i).image.altTextPlaceholder,
1543
+ style: E(C.value)
1544
+ }, null, 12, ji)], 8, Ai)) : (s(), b("img", {
1588
1545
  key: 1,
1589
1546
  class: "tpl:border-0",
1590
- src: h(w),
1547
+ src: m(w),
1591
1548
  alt: e.block.alt,
1592
- style: D(C.value)
1593
- }, null, 12, Oi))], 64)) : (s(), x("div", ki, [h(d) ? (s(), x("button", {
1549
+ style: E(C.value)
1550
+ }, null, 12, Mi))], 64)) : (s(), b("div", Ni, [m(d) ? (s(), b("button", {
1594
1551
  key: 0,
1595
- "aria-label": h(i).image.browseMedia,
1552
+ "aria-label": m(i).image.browseMedia,
1596
1553
  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)]",
1597
- onClick: n[2] ||= E((...e) => h(_) && h(_)(...e), ["stop"])
1598
- }, [g(h(yn), {
1554
+ onClick: n[2] ||= T((...e) => m(_) && m(_)(...e), ["stop"])
1555
+ }, [h(m(Tn), {
1599
1556
  size: 14,
1600
1557
  "stroke-width": 1.5
1601
- }), R(" " + F(h(i).image.browseMedia), 1)], 8, Ai)) : (s(), x("span", ji, F(h(i).image.clickToAdd), 1))]))], 12, xi));
1558
+ }), L(" " + P(m(i).image.browseMedia), 1)], 8, Pi)) : (s(), b("span", Fi, P(m(i).image.clickToAdd), 1))]))], 12, Ti));
1602
1559
  }
1603
- }), Ni = { class: "tpl:w-full" }, Pi = ["href"], Fi = {
1560
+ }), Li = { class: "tpl:w-full" }, Ri = ["href"], zi = {
1604
1561
  key: 1,
1605
1562
  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)]"
1606
- }, Ii = /* @__PURE__ */ d({
1563
+ }, Bi = /* @__PURE__ */ d({
1607
1564
  __name: "MenuBlock",
1608
1565
  props: {
1609
1566
  block: {},
1610
1567
  viewport: {}
1611
1568
  },
1612
1569
  setup(e) {
1613
- let t = e, { t: n } = Y(), i = G(J, "MenuBlock"), a = b(() => ({
1570
+ let t = e, { t: n } = X(), i = K(Y, "MenuBlock"), a = y(() => ({
1614
1571
  display: "flex",
1615
1572
  flexWrap: "wrap",
1616
1573
  gap: `0 ${t.block.spacing}px`,
@@ -1618,31 +1575,31 @@ var ii = { class: "tpl:w-full" }, ai = {
1618
1575
  fontSize: `${t.block.fontSize}px`,
1619
1576
  fontFamily: t.block.fontFamily ? i.resolveFontFamily(t.block.fontFamily) : "inherit",
1620
1577
  alignItems: "center"
1621
- })), o = b(() => t.block.items.length > 0);
1578
+ })), o = y(() => t.block.items.length > 0);
1622
1579
  function c(e) {
1623
1580
  return e || t.block.linkColor || t.block.color;
1624
1581
  }
1625
- return (t, i) => (s(), x("div", Ni, [o.value ? (s(), x("div", {
1582
+ return (t, i) => (s(), b("div", Li, [o.value ? (s(), b("div", {
1626
1583
  key: 0,
1627
- style: D(a.value)
1628
- }, [(s(!0), x(P, null, r(e.block.items, (t, n) => (s(), x(P, { key: t.id }, [k("a", {
1584
+ style: E(a.value)
1585
+ }, [(s(!0), b(N, null, r(e.block.items, (t, n) => (s(), b(N, { key: t.id }, [O("a", {
1629
1586
  href: t.url || "#",
1630
1587
  class: "tpl:cursor-default tpl:no-underline",
1631
- style: D({
1588
+ style: E({
1632
1589
  color: c(t.color),
1633
1590
  fontWeight: t.bold ? "bold" : "normal",
1634
1591
  textDecoration: t.underline ? "underline" : "none"
1635
1592
  }),
1636
- onClick: i[0] ||= E(() => {}, ["prevent"])
1637
- }, [g(Ir, { text: t.text || "..." }, null, 8, ["text"])], 12, Pi), n < e.block.items.length - 1 ? (s(), x("span", {
1593
+ onClick: i[0] ||= T(() => {}, ["prevent"])
1594
+ }, [h(Br, { text: t.text || "..." }, null, 8, ["text"])], 12, Ri), n < e.block.items.length - 1 ? (s(), b("span", {
1638
1595
  key: 0,
1639
- style: D({
1596
+ style: E({
1640
1597
  color: e.block.separatorColor,
1641
1598
  padding: `0 ${e.block.spacing}px`
1642
1599
  })
1643
- }, F(e.block.separator), 5)) : S("", !0)], 64))), 128))], 4)) : (s(), x("div", Fi, [g(h(dn), { size: 16 }), k("span", null, F(h(n).menu.addLinks), 1)]))]));
1600
+ }, P(e.block.separator), 5)) : x("", !0)], 64))), 128))], 4)) : (s(), b("div", zi, [h(m(yn), { size: 16 }), O("span", null, P(m(n).menu.addLinks), 1)]))]));
1644
1601
  }
1645
- }), Li = /* @__PURE__ */ new Set([
1602
+ }), Vi = /* @__PURE__ */ new Set([
1646
1603
  "http",
1647
1604
  "https",
1648
1605
  "mailto",
@@ -1652,7 +1609,7 @@ var ii = { class: "tpl:w-full" }, ai = {
1652
1609
  "sms",
1653
1610
  "xmpp",
1654
1611
  "cid"
1655
- ]), Ri = /* @__PURE__ */ new Set([
1612
+ ]), Hi = /* @__PURE__ */ new Set([
1656
1613
  "SCRIPT",
1657
1614
  "STYLE",
1658
1615
  "IFRAME",
@@ -1662,7 +1619,7 @@ var ii = { class: "tpl:w-full" }, ai = {
1662
1619
  "META",
1663
1620
  "BASE",
1664
1621
  "FORM"
1665
- ]), zi = /* @__PURE__ */ new Set([
1622
+ ]), Ui = /* @__PURE__ */ new Set([
1666
1623
  "href",
1667
1624
  "xlink:href",
1668
1625
  "formaction",
@@ -1671,16 +1628,16 @@ var ii = { class: "tpl:w-full" }, ai = {
1671
1628
  "background",
1672
1629
  "poster"
1673
1630
  ]);
1674
- function Bi(e, t) {
1631
+ function Wi(e, t) {
1675
1632
  let n = e.replace(/[\t\n\r]/g, "").replace(/^[\u0000-\u0020]+/, "").trimEnd();
1676
1633
  if (!n || n.startsWith("#")) return !0;
1677
1634
  let r = /^([a-z][a-z0-9+.-]*):/i.exec(n);
1678
1635
  if (!r) return !0;
1679
1636
  let i = r[1].toLowerCase();
1680
- return Li.has(i) ? !0 : t && i === "data" ? /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i.test(n) : !1;
1637
+ return Vi.has(i) ? !0 : t && i === "data" ? /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i.test(n) : !1;
1681
1638
  }
1682
- function Vi(e) {
1683
- if (Ri.has(e.tagName)) {
1639
+ function Gi(e) {
1640
+ if (Hi.has(e.tagName)) {
1684
1641
  e.remove();
1685
1642
  return;
1686
1643
  }
@@ -1688,21 +1645,21 @@ function Vi(e) {
1688
1645
  for (let n = 0; n < e.attributes.length; n++) t.push(e.attributes[n].name);
1689
1646
  for (let n of t) {
1690
1647
  let t = n.toLowerCase();
1691
- t.startsWith("on") ? e.removeAttribute(n) : zi.has(t) ? Bi(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n) : t === "src" ? Bi(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n) : t === "srcdoc" && e.removeAttribute(n);
1648
+ t.startsWith("on") ? e.removeAttribute(n) : Ui.has(t) ? Wi(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n) : t === "src" ? Wi(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n) : t === "srcdoc" && e.removeAttribute(n);
1692
1649
  }
1693
1650
  let n = Array.from(e.children);
1694
- for (let e of n) Vi(e);
1651
+ for (let e of n) Gi(e);
1695
1652
  }
1696
- function Hi(e) {
1653
+ function Ki(e) {
1697
1654
  if (typeof DOMParser > "u") return e;
1698
1655
  let t = new DOMParser().parseFromString(`<!doctype html><body>${e}</body>`, "text/html").body, n = Array.from(t.children);
1699
- for (let e of n) Vi(e);
1656
+ for (let e of n) Gi(e);
1700
1657
  return t.innerHTML;
1701
1658
  }
1702
1659
  //#endregion
1703
1660
  //#region src/composables/useEditableTextBlock.ts
1704
- function Ui(e) {
1705
- let t = n(K, mt), r = n(wt, null), { syntax: i } = Tn(), a = b(() => r?.value ? Te(e(), t.value) : je(e(), t.value)), o = b(() => Ve(Hi(Fe(a.value, i)))), s = l(!1), c = l(null), { top: u, left: d } = ct(c), { toLocal: f } = nn(), p = b(() => f({
1661
+ function qi(e) {
1662
+ let t = n(q, xt), r = n(jt, null), { syntax: i } = Mn(), a = y(() => r?.value ? Ee(e(), t.value) : Ne(e(), t.value)), o = y(() => He(Ki(Le(a.value, i)))), s = l(!1), c = l(null), { top: u, left: d } = ht(c), { toLocal: f } = un(), p = y(() => f({
1706
1663
  top: u.value - 8,
1707
1664
  left: d.value
1708
1665
  }));
@@ -1723,52 +1680,52 @@ function Ui(e) {
1723
1680
  }
1724
1681
  //#endregion
1725
1682
  //#region src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
1726
- var Wi = ["innerHTML"], Gi = /* @__PURE__ */ d({
1683
+ var Ji = ["innerHTML"], Yi = /* @__PURE__ */ d({
1727
1684
  __name: "ParagraphBlock",
1728
1685
  props: {
1729
1686
  block: {},
1730
1687
  viewport: {}
1731
1688
  },
1732
1689
  setup(e) {
1733
- let t = e, n = L(() => import("./ParagraphEditor-BGLIw7kg.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: c, handleEditorDone: l } = Ui(() => t.block.content);
1734
- return (t, u) => (s(), x("div", {
1690
+ let t = e, n = I(() => import("./ParagraphEditor-D4aq9eeC.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: c, handleEditorDone: l } = qi(() => t.block.content);
1691
+ return (t, u) => (s(), b("div", {
1735
1692
  ref_key: "blockRef",
1736
1693
  ref: i,
1737
1694
  class: "tpl:min-h-[1em] tpl:w-full",
1738
- onDblclick: u[0] ||= (...e) => h(c) && h(c)(...e)
1739
- }, [h(r) ? (s(), O(h(n), {
1695
+ onDblclick: u[0] ||= (...e) => m(c) && m(c)(...e)
1696
+ }, [m(r) ? (s(), D(m(n), {
1740
1697
  key: 0,
1741
1698
  block: e.block,
1742
- "toolbar-position": h(a),
1743
- onDone: h(l)
1699
+ "toolbar-position": m(a),
1700
+ onDone: m(l)
1744
1701
  }, null, 8, [
1745
1702
  "block",
1746
1703
  "toolbar-position",
1747
1704
  "onDone"
1748
- ])) : (s(), x("div", {
1705
+ ])) : (s(), b("div", {
1749
1706
  key: 1,
1750
1707
  class: "tpl-text-content tpl:outline-none",
1751
- innerHTML: h(o)
1752
- }, null, 8, Wi))], 544));
1708
+ innerHTML: m(o)
1709
+ }, null, 8, Ji))], 544));
1753
1710
  }
1754
- }), Ki = [
1711
+ }), Xi = [
1755
1712
  "data-block-id",
1756
1713
  "data-block-type",
1757
1714
  "data-tpl-picked"
1758
- ], qi = ["aria-label"], Ji = [
1715
+ ], Zi = ["aria-label"], Qi = [
1759
1716
  "aria-label",
1760
1717
  "aria-pressed",
1761
1718
  "title"
1762
- ], Yi = ["aria-label", "title"], Xi = ["aria-label", "title"], Zi = ["aria-label", "title"], Qi = {
1719
+ ], $i = ["aria-label", "title"], ea = ["aria-label", "title"], ta = ["aria-label", "title"], na = {
1763
1720
  key: 1,
1764
1721
  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"
1765
- }, $i = { 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)]" }, ea = {
1722
+ }, ra = { 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)]" }, ia = {
1766
1723
  key: 2,
1767
1724
  class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
1768
- }, ta = ["aria-label", "title"], na = {
1725
+ }, aa = ["aria-label", "title"], oa = {
1769
1726
  key: 3,
1770
1727
  class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
1771
- }, ra = ["aria-label"], ia = /*#__PURE__*/ Cn(/* @__PURE__ */ d({
1728
+ }, sa = ["aria-label"], ca = /*#__PURE__*/ An(/* @__PURE__ */ d({
1772
1729
  __name: "BlockWrapper",
1773
1730
  props: {
1774
1731
  block: {},
@@ -1780,35 +1737,38 @@ var Wi = ["innerHTML"], Gi = /* @__PURE__ */ d({
1780
1737
  },
1781
1738
  emits: ["select"],
1782
1739
  setup(e, { emit: t }) {
1783
- let r = L(() => import("./BlockIssueBadge-CS7ytN-z.js")), i = e, o = t, { t: c, format: u } = Y(), d = n(Et, null), f = l(null), p = b(() => d?.liftedBlockId.value === i.block.id), m = b(() => p.value ? u(c.blockActions.dragLifted, { block: i.block.type }) : c.blockActions.drag);
1784
- async function _() {
1785
- await T(), f.value?.focus();
1740
+ let r = I(() => import("./BlockIssueBadge-C7sdnkrF.js")), i = e, o = t, { t: c, format: u } = X(), d = n(Nt, null), f = l(null), p = y(() => d?.liftedBlockId.value === i.block.id), g = y(() => p.value ? u(c.blockActions.dragLifted, { block: i.block.type }) : c.blockActions.drag);
1741
+ async function v() {
1742
+ await w(), f.value?.focus();
1786
1743
  }
1787
- function y(e) {
1788
- d && (e.key === " " || e.key === "Enter" ? (e.preventDefault(), e.stopPropagation(), p.value ? d.drop(i.block.id) : d.lift(i.block.id)) : p.value && (e.key === "Escape" ? (e.preventDefault(), e.stopPropagation(), d.cancel(), _()) : e.key === "ArrowUp" ? (e.preventDefault(), e.stopPropagation(), d.moveUp(i.block.id), _()) : e.key === "ArrowDown" && (e.preventDefault(), e.stopPropagation(), d.moveDown(i.block.id), _())));
1744
+ function S(e) {
1745
+ d && (e.key === " " || e.key === "Enter" ? (e.preventDefault(), e.stopPropagation(), p.value ? d.drop(i.block.id) : d.lift(i.block.id)) : p.value && (e.key === "Escape" ? (e.preventDefault(), e.stopPropagation(), d.cancel(), v()) : e.key === "ArrowUp" ? (e.preventDefault(), e.stopPropagation(), d.moveUp(i.block.id), v()) : e.key === "ArrowDown" && (e.preventDefault(), e.stopPropagation(), d.moveDown(i.block.id), v())));
1789
1746
  }
1790
- let C = b(() => !i.viewport || !i.block.visibility ? !1 : i.block.visibility[i.viewport] === !1), w = b(() => i.previewMode === !0 && C.value), O = b(() => i.viewport ? {
1747
+ let C = y(() => !i.viewport || !i.block.visibility ? !1 : i.block.visibility[i.viewport] === !1), D = y(() => i.previewMode === !0 && C.value), k = y(() => i.viewport ? {
1791
1748
  desktop: c.viewport.desktop,
1792
1749
  mobile: c.viewport.mobile
1793
- }[i.viewport] ?? i.viewport : ""), A = b(() => !!i.block.displayCondition), j = n(Nt, null), M = n(Lt, null), N = n(Vt, {}), P = b(() => N.savedBlocks?.isPicking.value === !0), I = b(() => !i.nested && N.savedBlocks?.isAvailable.value === !0 && N.savedBlocks?.canCreate.value === !0), z = b(() => i.isSelected && !P.value), B = b(() => N.comments?.getBlockCount(i.block.id) ?? 0), V = In(() => i.block.type === "section" ? i.block.backgroundImage : void 0), H = In(() => i.block.type === "section" ? i.block.wrapper?.backgroundImage : void 0), U = b(() => Ar(i.block, { backgroundImageUrl: V.value })), ee = b(() => Nr(i.block, { backgroundImageUrl: H.value }));
1794
- function te(e) {
1750
+ }[i.viewport] ?? i.viewport : ""), A = y(() => !!i.block.displayCondition), j = n(Bt, null), M = n(Wt, null), N = n(Jt, {}), F = y(() => N.savedBlocks?.isPicking.value === !0), R = y(() => !i.nested && N.savedBlocks?.isAvailable.value === !0 && N.savedBlocks?.canCreate.value === !0), z = y(() => i.isSelected && !F.value), B = y(() => N.comments?.getBlockCount(i.block.id) ?? 0), V = Xe(() => i.block.type === "section" ? i.block.backgroundImage : void 0), H = Xe(() => i.block.type === "section" ? i.block.wrapper?.backgroundImage : void 0), ee = n(J, null), U = n(vt, void 0), W = y(() => Pr(i.block, {
1751
+ backgroundImageUrl: V.value,
1752
+ heroBoxWidth: Qe(i.block, ee?.content.value, U)
1753
+ })), te = y(() => Lr(i.block, { backgroundImageUrl: H.value }));
1754
+ function ne(e) {
1795
1755
  i.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), o("select"));
1796
1756
  }
1797
- function ne() {
1757
+ function re() {
1798
1758
  j?.deleteBlock(i.block.id);
1799
1759
  }
1800
- function re() {
1760
+ function ie() {
1801
1761
  j?.duplicateBlock(i.block);
1802
1762
  }
1803
- function ie() {
1763
+ function ae() {
1804
1764
  N.savedBlocks?.startPicking(i.block.id);
1805
1765
  }
1806
- function ae() {
1766
+ function oe() {
1807
1767
  M?.toggleBlock(i.block.id);
1808
1768
  }
1809
- return (t, n) => w.value ? S("", !0) : (s(), x("div", {
1769
+ return (t, n) => D.value ? x("", !0) : (s(), b("div", {
1810
1770
  key: 0,
1811
- class: v(["tpl-block tpl:group tpl:relative tpl:cursor-pointer tpl:rounded-sm tpl:transition-shadow", {
1771
+ class: _(["tpl-block tpl:group tpl:relative tpl:cursor-pointer tpl:rounded-sm tpl:transition-shadow", {
1812
1772
  "tpl-block--selected": e.isSelected,
1813
1773
  "tpl-block--picked": e.picked,
1814
1774
  "tpl-block--idle": !e.isSelected && !e.picked,
@@ -1817,152 +1777,192 @@ var Wi = ["innerHTML"], Gi = /* @__PURE__ */ d({
1817
1777
  "data-block-id": e.block.id,
1818
1778
  "data-block-type": e.block.type,
1819
1779
  "data-tpl-picked": e.picked || void 0,
1820
- onClick: te
1780
+ onClick: ne
1821
1781
  }, [
1822
- g(h(r), { "block-id": e.block.id }, null, 8, ["block-id"]),
1823
- z.value ? (s(), x("div", {
1782
+ h(m(r), { "block-id": e.block.id }, null, 8, ["block-id"]),
1783
+ z.value ? (s(), b("div", {
1824
1784
  key: 0,
1825
1785
  role: "toolbar",
1826
- "aria-label": h(c).blockActions.drag,
1786
+ "aria-label": m(c).blockActions.drag,
1827
1787
  class: "tpl-block-actions tpl-fade-in tpl:absolute tpl:-right-2 tpl:top-1/2 tpl:z-10 tpl:flex tpl:-translate-y-1/2 tpl:translate-x-full 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)]"
1828
1788
  }, [
1829
- k("button", {
1789
+ O("button", {
1830
1790
  ref_key: "dragButtonRef",
1831
1791
  ref: f,
1832
1792
  class: "tpl-block-btn tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-grab tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors tpl:active:cursor-grabbing",
1833
- "aria-label": m.value,
1793
+ "aria-label": g.value,
1834
1794
  "aria-pressed": p.value,
1835
1795
  "aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
1836
- title: h(c).blockActions.drag,
1837
- onKeydown: y
1838
- }, [g(h(mn), {
1796
+ title: m(c).blockActions.drag,
1797
+ onKeydown: S
1798
+ }, [h(m(bn), {
1839
1799
  size: 14,
1840
1800
  "stroke-width": 1.5
1841
- })], 40, Ji),
1842
- k("button", {
1801
+ })], 40, Qi),
1802
+ O("button", {
1843
1803
  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",
1844
- "aria-label": h(c).blockActions.duplicate,
1845
- title: h(c).blockActions.duplicate,
1846
- onClick: E(re, ["stop"])
1847
- }, [g(h(sn), {
1804
+ "aria-label": m(c).blockActions.duplicate,
1805
+ title: m(c).blockActions.duplicate,
1806
+ onClick: T(ie, ["stop"])
1807
+ }, [h(m(gn), {
1848
1808
  size: 14,
1849
1809
  "stroke-width": 1.5
1850
- })], 8, Yi),
1851
- I.value ? (s(), x("button", {
1810
+ })], 8, $i),
1811
+ R.value ? (s(), b("button", {
1852
1812
  key: 0,
1853
1813
  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",
1854
- "aria-label": h(c).blockActions.saveAsBlock,
1855
- title: h(c).blockActions.saveAsBlock,
1856
- onClick: E(ie, ["stop"])
1857
- }, [g(h(un), {
1814
+ "aria-label": m(c).blockActions.saveAsBlock,
1815
+ title: m(c).blockActions.saveAsBlock,
1816
+ onClick: T(ae, ["stop"])
1817
+ }, [h(m(hn), {
1858
1818
  size: 14,
1859
1819
  "stroke-width": 1.5
1860
- })], 8, Xi)) : S("", !0),
1861
- k("button", {
1820
+ })], 8, ea)) : x("", !0),
1821
+ O("button", {
1862
1822
  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",
1863
- "aria-label": h(c).blockActions.delete,
1864
- title: h(c).blockActions.delete,
1865
- onClick: E(ne, ["stop"])
1866
- }, [g(h(pn), {
1823
+ "aria-label": m(c).blockActions.delete,
1824
+ title: m(c).blockActions.delete,
1825
+ onClick: T(re, ["stop"])
1826
+ }, [h(m(Cn), {
1867
1827
  size: 14,
1868
1828
  "stroke-width": 1.5
1869
- })], 8, Zi)
1870
- ], 8, qi)) : S("", !0),
1871
- C.value ? (s(), x("div", Qi, [k("span", $i, [g(h(cn), {
1829
+ })], 8, ta)
1830
+ ], 8, Zi)) : x("", !0),
1831
+ C.value ? (s(), b("div", na, [O("span", ra, [h(m(mn), {
1872
1832
  size: 12,
1873
1833
  "stroke-width": 1.5
1874
- }), R(" " + F(h(u)(h(c).blockActions.hiddenOnViewport, { viewport: O.value })), 1)])])) : S("", !0),
1875
- A.value && !C.value ? (s(), x("div", ea, [k("button", {
1834
+ }), L(" " + P(m(u)(m(c).blockActions.hiddenOnViewport, { viewport: k.value })), 1)])])) : x("", !0),
1835
+ A.value && !C.value ? (s(), b("div", ia, [O("button", {
1876
1836
  "data-testid": "condition-toggle",
1877
1837
  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)]",
1878
- "aria-label": h(c).blockActions.conditionToggle,
1838
+ "aria-label": m(c).blockActions.conditionToggle,
1879
1839
  title: e.block.displayCondition?.label,
1880
- onClick: E(ae, ["stop"])
1881
- }, [g(h(xn), {
1840
+ onClick: T(oe, ["stop"])
1841
+ }, [h(m(xn), {
1882
1842
  size: 12,
1883
1843
  "stroke-width": 2
1884
- })], 8, ta)])) : S("", !0),
1885
- B.value > 0 && !C.value ? (s(), x("div", na, [k("button", {
1844
+ })], 8, aa)])) : x("", !0),
1845
+ B.value > 0 && !C.value ? (s(), b("div", oa, [O("button", {
1886
1846
  class: "tpl-comment-indicator tpl:flex tpl:min-h-6 tpl:min-w-6 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)]",
1887
- "aria-label": h(u)(h(c).blockActions.comments, { count: String(B.value) }),
1888
- onClick: n[0] ||= E((t) => h(N).comments?.openForBlock(e.block.id), ["stop"])
1889
- }, [g(h(_n), {
1847
+ "aria-label": m(u)(m(c).blockActions.comments, { count: String(B.value) }),
1848
+ onClick: n[0] ||= T((t) => m(N).comments?.openForBlock(e.block.id), ["stop"])
1849
+ }, [h(m(En), {
1890
1850
  size: 12,
1891
1851
  "stroke-width": 2.5
1892
- }), R(" " + F(B.value), 1)], 8, ra)])) : S("", !0),
1893
- ee.value ? (s(), x("div", {
1852
+ }), L(" " + P(B.value), 1)], 8, sa)])) : x("", !0),
1853
+ te.value ? (s(), b("div", {
1894
1854
  key: 4,
1895
- class: v(["tpl-section-wrapper tpl-email-surface", h(kr)(ee.value)]),
1896
- style: D(ee.value)
1897
- }, [k("div", {
1898
- class: v(["tpl-block-content tpl-email-surface", h(kr)(U.value)]),
1899
- style: D(U.value)
1900
- }, [a(t.$slots, "default", {}, void 0, !0)], 6)], 6)) : (s(), x("div", {
1855
+ class: _(["tpl-section-wrapper tpl-email-surface", m(Ar)(te.value)]),
1856
+ style: E(te.value)
1857
+ }, [O("div", {
1858
+ class: _(["tpl-block-content tpl-email-surface", m(Ar)(W.value)]),
1859
+ style: E(W.value)
1860
+ }, [a(t.$slots, "default", {}, void 0, !0)], 6)], 6)) : (s(), b("div", {
1901
1861
  key: 5,
1902
- class: v(["tpl-block-content tpl-email-surface", h(kr)(U.value)]),
1903
- style: D(U.value)
1862
+ class: _(["tpl-block-content tpl-email-surface", m(Ar)(W.value)]),
1863
+ style: E(W.value)
1904
1864
  }, [a(t.$slots, "default", {}, void 0, !0)], 6))
1905
- ], 10, Ki));
1865
+ ], 10, Xi));
1906
1866
  }
1907
- }), [["__scopeId", "data-v-d4623cf8"]]);
1867
+ }), [["__scopeId", "data-v-254ef206"]]);
1908
1868
  //#endregion
1909
1869
  //#region src/utils/unwrapParagraph.ts
1910
- function aa(e) {
1870
+ function la(e) {
1911
1871
  let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
1912
1872
  return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
1913
1873
  }
1914
1874
  //#endregion
1915
1875
  //#region src/components/blocks/TitleBlock.vue
1916
- var oa = /* @__PURE__ */ d({
1876
+ var ua = /* @__PURE__ */ d({
1917
1877
  __name: "TitleBlock",
1918
1878
  props: {
1919
1879
  block: {},
1920
1880
  viewport: {}
1921
1881
  },
1922
1882
  setup(e) {
1923
- let t = e, n = L(() => import("./TitleEditor-5eY01ypW.js")), r = G(J, "TitleBlock"), { isEditing: i, blockRef: a, toolbarPosition: o, resolvedContent: c, handleDoubleClick: l, handleEditorDone: d } = Ui(() => t.block.content), f = b(() => {
1883
+ let t = e, n = I(() => import("./TitleEditor-CsZiG3TT.js")), r = K(Y, "TitleBlock"), { isEditing: i, blockRef: a, toolbarPosition: o, resolvedContent: c, handleDoubleClick: l, handleEditorDone: d } = qi(() => t.block.content), f = y(() => {
1924
1884
  let e = {
1925
- fontSize: `${ce[t.block.level]}px`,
1926
- lineHeight: String(B),
1885
+ fontSize: `${z[t.block.level]}px`,
1886
+ lineHeight: String(oe),
1887
+ fontWeight: "700",
1927
1888
  textAlign: t.block.textAlign
1928
1889
  };
1929
1890
  return t.block.color && (e.color = t.block.color), t.block.fontFamily && (e.fontFamily = r.resolveFontFamily(t.block.fontFamily)), e;
1930
- }), p = b(() => `h${t.block.level}`), m = b(() => aa(c.value));
1931
- return (t, r) => (s(), x("div", {
1891
+ }), p = y(() => `h${t.block.level}`), h = y(() => la(c.value));
1892
+ return (t, r) => (s(), b("div", {
1932
1893
  ref_key: "blockRef",
1933
1894
  ref: a,
1934
1895
  class: "tpl:min-h-[1em] tpl:w-full",
1935
- style: D(f.value),
1936
- onDblclick: r[0] ||= (...e) => h(l) && h(l)(...e)
1937
- }, [h(i) ? (s(), O(h(n), {
1896
+ style: E(f.value),
1897
+ onDblclick: r[0] ||= (...e) => m(l) && m(l)(...e)
1898
+ }, [m(i) ? (s(), D(m(n), {
1938
1899
  key: 0,
1939
1900
  block: e.block,
1940
- "toolbar-position": h(o),
1941
- onDone: h(d)
1901
+ "toolbar-position": m(o),
1902
+ onDone: m(d)
1942
1903
  }, null, 8, [
1943
1904
  "block",
1944
1905
  "toolbar-position",
1945
1906
  "onDone"
1946
- ])) : (s(), O(u(p.value), {
1907
+ ])) : (s(), D(u(p.value), {
1947
1908
  key: 1,
1948
1909
  class: "tpl-text-content tpl:m-0 tpl:font-[inherit] tpl:text-[length:inherit] tpl:leading-[inherit] tpl:outline-none",
1949
- style: { color: "inherit" },
1950
- innerHTML: m.value
1910
+ style: {
1911
+ color: "inherit",
1912
+ fontWeight: "inherit"
1913
+ },
1914
+ innerHTML: h.value
1951
1915
  }, null, 8, ["innerHTML"]))], 36));
1952
1916
  }
1953
- });
1917
+ }), da = "hero", fa = "#1f2937", pa = "#ffffff";
1918
+ function ma(e, t) {
1919
+ let n = Ae("title", e);
1920
+ n.color = pa, n.textAlign = "center";
1921
+ let r = Ae("paragraph", e);
1922
+ r.content = `<p style="text-align: center"><span style="color: ${pa}">${ha(t)}</span></p>`;
1923
+ let i = Ae("button", e);
1924
+ return i.align = "center", B({
1925
+ columns: "1",
1926
+ children: [[
1927
+ n,
1928
+ r,
1929
+ i
1930
+ ]],
1931
+ hero: {
1932
+ height: "image",
1933
+ verticalAlign: "middle"
1934
+ },
1935
+ styles: {
1936
+ padding: {
1937
+ top: 48,
1938
+ right: 24,
1939
+ bottom: 48,
1940
+ left: 24
1941
+ },
1942
+ backgroundColor: fa
1943
+ }
1944
+ });
1945
+ }
1946
+ function ha(e) {
1947
+ return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
1948
+ }
1954
1949
  //#endregion
1955
1950
  //#region src/utils/sectionColumnDrop.ts
1956
- function sa(e) {
1957
- return e.dataset.blockType !== "section" && e.dataset.paletteType !== "section";
1951
+ var ga = /* @__PURE__ */ new Set(["section", da]);
1952
+ function _a(e) {
1953
+ return e.dataset.blockType !== "section" && !ga.has(e.dataset.paletteType ?? "");
1958
1954
  }
1959
1955
  //#endregion
1960
1956
  //#region src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
1961
- var ca = { class: "tpl:w-full" }, la = {
1957
+ var va = { class: "tpl:relative tpl:w-full" }, ya = {
1958
+ key: 0,
1959
+ "data-testid": "hero-image-hint",
1960
+ 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)]"
1961
+ }, ba = {
1962
1962
  key: 0,
1963
1963
  "data-testid": "section-drop-hint",
1964
1964
  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)]"
1965
- }, ua = /* @__PURE__ */ d({
1965
+ }, xa = /* @__PURE__ */ d({
1966
1966
  __name: "SectionBlock",
1967
1967
  props: {
1968
1968
  block: {},
@@ -1970,18 +1970,18 @@ var ca = { class: "tpl:w-full" }, la = {
1970
1970
  },
1971
1971
  setup(e) {
1972
1972
  let t = {
1973
- title: oa,
1974
- paragraph: Gi,
1975
- image: Mi,
1976
- button: Rr,
1977
- divider: mi,
1978
- custom: fi
1979
- }, a = e, { t: o } = Y(), c = G(q, "SectionBlock"), d = n(Lt, null), p = n(Jt, null), m = n(Vt, {}), _ = n(qt, null);
1980
- function y(e) {
1981
- let t = m.savedBlocks;
1973
+ title: ua,
1974
+ paragraph: Yi,
1975
+ image: Ii,
1976
+ button: Hr,
1977
+ divider: vi,
1978
+ custom: gi
1979
+ }, a = e, { t: o } = X(), c = K(J, "SectionBlock"), d = n(Wt, null), p = n(tn, null), g = n(Jt, {}), v = n(en, null);
1980
+ function S(e) {
1981
+ let t = g.savedBlocks;
1982
1982
  t?.isPicking.value ? t.togglePick(a.block.id) : c.selectBlock(e);
1983
1983
  }
1984
- let C = b(() => {
1984
+ let C = y(() => {
1985
1985
  switch (a.block.columns) {
1986
1986
  case "2": return ["50%", "50%"];
1987
1987
  case "3": return [
@@ -1993,54 +1993,59 @@ var ca = { class: "tpl:w-full" }, la = {
1993
1993
  case "2-1": return ["66.67%", "33.33%"];
1994
1994
  default: return ["100%"];
1995
1995
  }
1996
- }), w = b(() => {
1996
+ }), w = y(() => {
1997
1997
  let e = C.value.length, t = [...a.block.children];
1998
1998
  for (; t.length < e;) t.push([]);
1999
1999
  return t.slice(0, e);
2000
- }), T = b(() => a.viewport === "mobile" && a.block.stackOnMobile !== !1);
2001
- function E(e) {
2000
+ }), T = y(() => a.viewport === "mobile" && a.block.stackOnMobile !== !1);
2001
+ function k(e) {
2002
2002
  return w.value[e] || [];
2003
2003
  }
2004
2004
  function A(e) {
2005
- return _?.value === !1 || !d?.isHidden(e);
2005
+ return v?.value === !1 || !d?.isHidden(e);
2006
2006
  }
2007
- function j(e) {
2008
- return !E(e).some((e) => A(e.id));
2007
+ function F(e) {
2008
+ return !k(e).some((e) => A(e.id));
2009
2009
  }
2010
2010
  let I = l(null);
2011
2011
  function L(e) {
2012
- return c.state.previewMode ? !1 : j(e) ? !0 : I.value === e && E(e).filter((e) => A(e.id)).length <= 1;
2013
- }
2014
- function R(e) {
2015
- return E(e).length === 0 && !c.state.previewMode;
2012
+ return c.state.previewMode ? !1 : F(e) ? !0 : I.value === e && k(e).filter((e) => A(e.id)).length <= 1;
2016
2013
  }
2014
+ let R = y(() => {
2015
+ if (c.state.previewMode) return !1;
2016
+ let e = pe(a.block);
2017
+ return e !== null && !e.applied && e.reason === "image";
2018
+ });
2017
2019
  function z(e) {
2018
- return E(e).length === 0 && c.state.previewMode;
2020
+ return k(e).length === 0 && !c.state.previewMode;
2019
2021
  }
2020
- function B(e, t) {
2022
+ function B(e) {
2023
+ return k(e).length === 0 && c.state.previewMode;
2024
+ }
2025
+ function V(e, t) {
2021
2026
  let n = t.map((e) => JSON.parse(JSON.stringify(e))), r = [...a.block.children];
2022
2027
  for (; r.length <= e;) r.push([]);
2023
2028
  r[e] = n, c.updateBlock(a.block.id, { children: r });
2024
2029
  }
2025
- function V(e) {
2026
- return Tr(e, p, t);
2030
+ function H(e) {
2031
+ return Er(e, p, t);
2027
2032
  }
2028
- function H(e, t) {
2033
+ function ee(e, t) {
2029
2034
  e.type === "custom" && c.updateBlock(e.id, {
2030
2035
  fieldValues: t.fieldValues,
2031
2036
  dataSourceFetched: t.dataSourceFetched
2032
2037
  });
2033
2038
  }
2034
- return (t, n) => (s(), x("div", ca, [k("div", { class: v(["tpl:flex tpl:gap-0", { "tpl:flex-col": T.value }]) }, [(s(!0), x(P, null, r(w.value, (t, a) => (s(), x("div", {
2039
+ return (t, n) => (s(), b("div", va, [R.value ? (s(), b("div", ya, [O("span", null, P(m(o).section.heroAddImage), 1)])) : x("", !0), O("div", { class: _(["tpl:flex tpl:gap-0", { "tpl:flex-col": T.value }]) }, [(s(!0), b(N, null, r(w.value, (t, a) => (s(), b("div", {
2035
2040
  key: a,
2036
- class: v(["tpl:relative tpl:flex tpl:flex-col tpl:rounded", R(a) ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
2037
- style: D({ width: T.value ? "100%" : C.value[a] })
2038
- }, [g(h(N), {
2039
- "model-value": E(a),
2041
+ class: _(["tpl:relative tpl:flex tpl:flex-col tpl:rounded", z(a) ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
2042
+ style: E({ width: T.value ? "100%" : C.value[a] })
2043
+ }, [h(m(M), {
2044
+ "model-value": k(a),
2040
2045
  group: {
2041
2046
  name: "blocks",
2042
2047
  pull: !0,
2043
- put: (e, t, n) => h(sa)(n)
2048
+ put: (e, t, n) => m(_a)(n)
2044
2049
  },
2045
2050
  animation: 150,
2046
2051
  "ghost-class": "tpl-ghost",
@@ -2050,27 +2055,27 @@ var ca = { class: "tpl:w-full" }, la = {
2050
2055
  "inverted-swap-threshold": .65,
2051
2056
  "empty-insert-threshold": 20,
2052
2057
  "force-fallback": !0,
2053
- class: v(["tpl:grow", {
2058
+ class: _(["tpl:grow", {
2054
2059
  "tpl:min-h-[60px]": L(a),
2055
- "tpl:min-h-[34px]": z(a)
2060
+ "tpl:min-h-[34px]": B(a)
2056
2061
  }]),
2057
2062
  onStart: (e) => I.value = a,
2058
2063
  onEnd: n[0] ||= (e) => I.value = null,
2059
- "onUpdate:modelValue": (e) => B(a, e)
2064
+ "onUpdate:modelValue": (e) => V(a, e)
2060
2065
  }, {
2061
- default: i(() => [(s(!0), x(P, null, r(E(a), (t) => f((s(), x("div", { key: t.id }, [g(ia, {
2066
+ default: i(() => [(s(!0), b(N, null, r(k(a), (t) => f((s(), b("div", { key: t.id }, [h(ca, {
2062
2067
  block: t,
2063
- "is-selected": h(c).state.selectedBlockId === t.id,
2068
+ "is-selected": m(c).state.selectedBlockId === t.id,
2064
2069
  viewport: e.viewport,
2065
- "preview-mode": h(c).state.previewMode,
2070
+ "preview-mode": m(c).state.previewMode,
2066
2071
  nested: "",
2067
- onSelect: (e) => y(t.id)
2072
+ onSelect: (e) => S(t.id)
2068
2073
  }, {
2069
- default: i(() => [(s(), O(u(V(t)), {
2074
+ default: i(() => [(s(), D(u(H(t)), {
2070
2075
  block: t,
2071
2076
  viewport: e.viewport,
2072
- onFetchData: (e) => H(t, e),
2073
- onUpdate: (e) => h(c).updateBlock(t.id, e)
2077
+ onFetchData: (e) => ee(t, e),
2078
+ onUpdate: (e) => m(c).updateBlock(t.id, e)
2074
2079
  }, null, 40, [
2075
2080
  "block",
2076
2081
  "viewport",
@@ -2084,7 +2089,7 @@ var ca = { class: "tpl:w-full" }, la = {
2084
2089
  "viewport",
2085
2090
  "preview-mode",
2086
2091
  "onSelect"
2087
- ])])), [[M, A(t.id)]])), 128))]),
2092
+ ])])), [[j, A(t.id)]])), 128))]),
2088
2093
  _: 2
2089
2094
  }, 1032, [
2090
2095
  "model-value",
@@ -2092,14 +2097,14 @@ var ca = { class: "tpl:w-full" }, la = {
2092
2097
  "class",
2093
2098
  "onStart",
2094
2099
  "onUpdate:modelValue"
2095
- ]), R(a) ? (s(), x("div", la, [k("span", null, F(h(o).section.dropHere), 1)])) : S("", !0)], 6))), 128))], 2)]));
2100
+ ]), z(a) ? (s(), b("div", ba, [O("span", null, P(m(o).section.dropHere), 1)])) : x("", !0)], 6))), 128))], 2)]));
2096
2101
  }
2097
- }), da = ["width", "height"], fa = [
2102
+ }), Sa = ["width", "height"], Ca = [
2098
2103
  "d",
2099
2104
  "stroke",
2100
2105
  "stroke-opacity",
2101
2106
  "stroke-width"
2102
- ], pa = ["d", "fill"], ma = /* @__PURE__ */ d({
2107
+ ], wa = ["d", "fill"], Ta = /* @__PURE__ */ d({
2103
2108
  __name: "SocialIconSvg",
2104
2109
  props: {
2105
2110
  platform: {},
@@ -2108,7 +2113,7 @@ var ca = { class: "tpl:w-full" }, la = {
2108
2113
  iconSize: {}
2109
2114
  },
2110
2115
  setup(e) {
2111
- let t = e, n = b(() => Xe[t.platform]), r = b(() => $e[t.iconSize]), i = b(() => ze(t.platform, t.iconTone)), a = b(() => xe(t.iconStyle, t.iconTone)), o = b(() => {
2116
+ let t = e, n = y(() => rt[t.platform]), r = y(() => at[t.iconSize]), i = y(() => Ve(t.platform, t.iconTone)), a = y(() => Se(t.iconStyle, t.iconTone)), o = y(() => {
2112
2117
  let e = {
2113
2118
  display: "inline-flex",
2114
2119
  alignItems: "center",
@@ -2146,19 +2151,19 @@ var ca = { class: "tpl:w-full" }, la = {
2146
2151
  };
2147
2152
  default: return e;
2148
2153
  }
2149
- }), c = b(() => He(t.iconStyle)), l = b(() => Math.floor(r.value * c.value));
2154
+ }), c = y(() => Ue(t.iconStyle)), l = y(() => Math.floor(r.value * c.value));
2150
2155
  function u(e) {
2151
2156
  let t = `${e.width / 2 * r.value / 24}px`, n = Math.round(e.opacity * 255).toString(16).padStart(2, "0"), i = `${e.color}${n}`;
2152
2157
  return `0 0 0 ${t} ${i}, inset 0 0 0 ${t} ${i}`;
2153
2158
  }
2154
- let d = b(() => t.iconStyle === "outlined" || t.iconStyle === "plain" ? i.value.fill : i.value.onFill);
2155
- return (e, t) => (s(), x("span", { style: D(o.value) }, [(s(), x("svg", {
2159
+ let d = y(() => t.iconStyle === "outlined" || t.iconStyle === "plain" ? i.value.fill : i.value.onFill);
2160
+ return (e, t) => (s(), b("span", { style: E(o.value) }, [(s(), b("svg", {
2156
2161
  width: l.value,
2157
2162
  height: l.value,
2158
2163
  viewBox: "0 0 24 24",
2159
2164
  overflow: "visible",
2160
2165
  xmlns: "http://www.w3.org/2000/svg"
2161
- }, [a.value ? (s(), x("path", {
2166
+ }, [a.value ? (s(), b("path", {
2162
2167
  key: 0,
2163
2168
  "data-testid": "social-icon-halo",
2164
2169
  d: n.value.path,
@@ -2167,36 +2172,36 @@ var ca = { class: "tpl:w-full" }, la = {
2167
2172
  "stroke-opacity": a.value.opacity,
2168
2173
  "stroke-width": a.value.width / c.value,
2169
2174
  "stroke-linejoin": "round"
2170
- }, null, 8, fa)) : S("", !0), k("path", {
2175
+ }, null, 8, Ca)) : x("", !0), O("path", {
2171
2176
  d: n.value.path,
2172
2177
  fill: d.value
2173
- }, null, 8, pa)], 8, da))], 4));
2178
+ }, null, 8, wa)], 8, Sa))], 4));
2174
2179
  }
2175
- }), ha = { class: "tpl:w-full" }, ga = ["href"], _a = {
2180
+ }), Ea = { class: "tpl:w-full" }, Da = ["href"], Oa = {
2176
2181
  key: 1,
2177
2182
  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)]"
2178
- }, va = /* @__PURE__ */ d({
2183
+ }, ka = /* @__PURE__ */ d({
2179
2184
  __name: "SocialIconsBlock",
2180
2185
  props: {
2181
2186
  block: {},
2182
2187
  viewport: {}
2183
2188
  },
2184
2189
  setup(e) {
2185
- let t = e, { t: n } = Y(), i = b(() => ({
2190
+ let t = e, { t: n } = X(), i = y(() => ({
2186
2191
  display: "flex",
2187
2192
  flexWrap: "wrap",
2188
2193
  gap: `${t.block.spacing}px`,
2189
2194
  justifyContent: t.block.align === "left" ? "flex-start" : t.block.align === "right" ? "flex-end" : "center"
2190
- })), a = b(() => t.block.icons.length > 0);
2191
- return (t, o) => (s(), x("div", ha, [a.value ? (s(), x("div", {
2195
+ })), a = y(() => t.block.icons.length > 0);
2196
+ return (t, o) => (s(), b("div", Ea, [a.value ? (s(), b("div", {
2192
2197
  key: 0,
2193
- style: D(i.value)
2194
- }, [(s(!0), x(P, null, r(e.block.icons, (t) => (s(), x("a", {
2198
+ style: E(i.value)
2199
+ }, [(s(!0), b(N, null, r(e.block.icons, (t) => (s(), b("a", {
2195
2200
  key: t.id,
2196
2201
  href: t.url || "#",
2197
2202
  class: "tpl:cursor-default",
2198
- onClick: o[0] ||= E(() => {}, ["prevent"])
2199
- }, [g(ma, {
2203
+ onClick: o[0] ||= T(() => {}, ["prevent"])
2204
+ }, [h(Ta, {
2200
2205
  platform: t.platform,
2201
2206
  "icon-style": e.block.iconStyle,
2202
2207
  "icon-tone": e.block.iconTone,
@@ -2206,44 +2211,44 @@ var ca = { class: "tpl:w-full" }, la = {
2206
2211
  "icon-style",
2207
2212
  "icon-tone",
2208
2213
  "icon-size"
2209
- ])], 8, ga))), 128))], 4)) : (s(), x("div", _a, [g(h(hn), { size: 16 }), k("span", null, F(h(n).social.addIcons), 1)]))]));
2214
+ ])], 8, Da))), 128))], 4)) : (s(), b("div", Oa, [h(m(wn), { size: 16 }), O("span", null, P(m(n).social.addIcons), 1)]))]));
2210
2215
  }
2211
- }), ya = { class: "tpl:w-full" }, ba = {
2216
+ }), Aa = { class: "tpl:w-full" }, ja = {
2212
2217
  key: 0,
2213
2218
  class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
2214
2219
  style: {
2215
2220
  "background-color": "var(--tpl-bg-hover)",
2216
2221
  color: "var(--tpl-text-dim)"
2217
2222
  }
2218
- }, xa = /* @__PURE__ */ d({
2223
+ }, Ma = /* @__PURE__ */ d({
2219
2224
  __name: "SpacerBlock",
2220
2225
  props: {
2221
2226
  block: {},
2222
2227
  viewport: {}
2223
2228
  },
2224
2229
  setup(e) {
2225
- let t = e, n = G(q, "SpacerBlock"), r = b(() => ({
2230
+ let t = e, n = K(J, "SpacerBlock"), r = y(() => ({
2226
2231
  height: `${t.block.height}px`,
2227
2232
  minHeight: `${t.block.height}px`,
2228
2233
  ...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
2229
2234
  }));
2230
- return (t, i) => (s(), x("div", ya, [k("div", {
2231
- style: D(r.value),
2232
- class: v(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:box-border tpl:border-y tpl:border-x-0 tpl:border-dashed": !h(n).state.previewMode }])
2233
- }, [h(n).state.previewMode ? S("", !0) : (s(), x("span", ba, F(e.block.height) + "px ", 1))], 6)]));
2235
+ return (t, i) => (s(), b("div", Aa, [O("div", {
2236
+ style: E(r.value),
2237
+ class: _(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:box-border tpl:border-y tpl:border-x-0 tpl:border-dashed": !m(n).state.previewMode }])
2238
+ }, [m(n).state.previewMode ? x("", !0) : (s(), b("span", ja, P(e.block.height) + "px ", 1))], 6)]));
2234
2239
  }
2235
- }), Sa = { class: "tpl:w-full" }, Ca = { key: 0 }, wa = [
2240
+ }), Na = { class: "tpl:w-full" }, Pa = { key: 0 }, Fa = [
2236
2241
  "aria-label",
2237
2242
  "data-placeholder",
2238
2243
  "onBlur"
2239
- ], Ta = [
2244
+ ], Ia = [
2240
2245
  "aria-label",
2241
2246
  "data-placeholder",
2242
2247
  "onBlur"
2243
- ], Ea = {
2248
+ ], La = {
2244
2249
  key: 1,
2245
2250
  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)]"
2246
- }, Da = /*#__PURE__*/ Cn(/* @__PURE__ */ d({
2251
+ }, Ra = /*#__PURE__*/ An(/* @__PURE__ */ d({
2247
2252
  __name: "TableBlock",
2248
2253
  props: {
2249
2254
  block: {},
@@ -2257,7 +2262,7 @@ var ca = { class: "tpl:w-full" }, la = {
2257
2262
  updated(e, t) {
2258
2263
  t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
2259
2264
  }
2260
- }, n = e, { t: i } = Y(), a = G(q, "TableBlock"), o = G(J, "TableBlock"), c = b(() => n.block.rows.length > 0), l = b(() => {
2265
+ }, n = e, { t: i } = X(), a = K(J, "TableBlock"), o = K(Y, "TableBlock"), c = y(() => n.block.rows.length > 0), l = y(() => {
2261
2266
  let e = {
2262
2267
  width: "100%",
2263
2268
  borderCollapse: "collapse",
@@ -2266,19 +2271,19 @@ var ca = { class: "tpl:w-full" }, la = {
2266
2271
  fontFamily: n.block.fontFamily ? o.resolveFontFamily(n.block.fontFamily) : "inherit"
2267
2272
  };
2268
2273
  return n.block.color && (e.color = n.block.color), e;
2269
- }), u = b(() => ({
2274
+ }), u = y(() => ({
2270
2275
  border: `${n.block.borderWidth}px solid ${n.block.borderColor}`,
2271
2276
  padding: `${n.block.cellPadding}px`,
2272
2277
  textAlign: n.block.textAlign
2273
- })), d = b(() => ({
2278
+ })), d = y(() => ({
2274
2279
  ...u.value,
2275
2280
  fontWeight: "bold",
2276
2281
  backgroundColor: n.block.headerBackgroundColor || "transparent"
2277
- })), p = b(() => n.block.hasHeaderRow && n.block.rows.length > 0 ? n.block.rows[0] : null), m = b(() => n.block.hasHeaderRow ? n.block.rows.slice(1) : n.block.rows);
2282
+ })), p = y(() => n.block.hasHeaderRow && n.block.rows.length > 0 ? n.block.rows[0] : null), _ = y(() => n.block.hasHeaderRow ? n.block.rows.slice(1) : n.block.rows);
2278
2283
  function v() {
2279
2284
  a.selectBlock(n.block.id);
2280
2285
  }
2281
- function y(e, t, r) {
2286
+ function S(e, t, r) {
2282
2287
  let i = r.target.innerText.trim(), o = n.block.rows.map((n) => n.id === e ? {
2283
2288
  ...n,
2284
2289
  cells: n.cells.map((e) => e.id === t ? {
@@ -2288,49 +2293,49 @@ var ca = { class: "tpl:w-full" }, la = {
2288
2293
  } : n);
2289
2294
  a.updateBlock(n.block.id, { rows: o });
2290
2295
  }
2291
- return (e, n) => (s(), x("div", Sa, [c.value ? (s(), x("table", {
2296
+ return (e, n) => (s(), b("div", Na, [c.value ? (s(), b("table", {
2292
2297
  key: 0,
2293
- style: D(l.value),
2298
+ style: E(l.value),
2294
2299
  class: "tpl-table-editable"
2295
- }, [p.value ? (s(), x("thead", Ca, [k("tr", null, [(s(!0), x(P, null, r(p.value.cells, (e) => f((s(), x("th", {
2300
+ }, [p.value ? (s(), b("thead", Pa, [O("tr", null, [(s(!0), b(N, null, r(p.value.cells, (e) => f((s(), b("th", {
2296
2301
  key: e.id,
2297
- style: D(d.value),
2298
- "aria-label": h(i).table.cellPlaceholder,
2302
+ style: E(d.value),
2303
+ "aria-label": m(i).table.cellPlaceholder,
2299
2304
  contenteditable: "true",
2300
- "data-placeholder": h(i).table.cellPlaceholder,
2301
- onBlur: (t) => y(p.value.id, e.id, t),
2302
- onKeydown: n[0] ||= _(E((e) => e.target.blur(), ["prevent"]), ["enter"]),
2303
- onClick: E(v, ["stop"])
2304
- }, null, 44, wa)), [[t, e.content]])), 128))])])) : S("", !0), k("tbody", null, [(s(!0), x(P, null, r(m.value, (e) => (s(), x("tr", { key: e.id }, [(s(!0), x(P, null, r(e.cells, (r) => f((s(), x("td", {
2305
+ "data-placeholder": m(i).table.cellPlaceholder,
2306
+ onBlur: (t) => S(p.value.id, e.id, t),
2307
+ onKeydown: n[0] ||= g(T((e) => e.target.blur(), ["prevent"]), ["enter"]),
2308
+ onClick: T(v, ["stop"])
2309
+ }, null, 44, Fa)), [[t, e.content]])), 128))])])) : x("", !0), O("tbody", null, [(s(!0), b(N, null, r(_.value, (e) => (s(), b("tr", { key: e.id }, [(s(!0), b(N, null, r(e.cells, (r) => f((s(), b("td", {
2305
2310
  key: r.id,
2306
- style: D(u.value),
2307
- "aria-label": h(i).table.cellPlaceholder,
2311
+ style: E(u.value),
2312
+ "aria-label": m(i).table.cellPlaceholder,
2308
2313
  contenteditable: "true",
2309
- "data-placeholder": h(i).table.cellPlaceholder,
2310
- onBlur: (t) => y(e.id, r.id, t),
2311
- onKeydown: n[1] ||= _(E((e) => e.target.blur(), ["prevent"]), ["enter"]),
2312
- onClick: E(v, ["stop"])
2313
- }, null, 44, Ta)), [[t, r.content]])), 128))]))), 128))])], 4)) : (s(), x("div", Ea, [g(h(bn), { size: 16 }), k("span", null, F(h(i).table.empty), 1)]))]));
2314
+ "data-placeholder": m(i).table.cellPlaceholder,
2315
+ onBlur: (t) => S(e.id, r.id, t),
2316
+ onKeydown: n[1] ||= g(T((e) => e.target.blur(), ["prevent"]), ["enter"]),
2317
+ onClick: T(v, ["stop"])
2318
+ }, null, 44, Ia)), [[t, r.content]])), 128))]))), 128))])], 4)) : (s(), b("div", La, [h(m(On), { size: 16 }), O("span", null, P(m(i).table.empty), 1)]))]));
2314
2319
  }
2315
- }), [["__scopeId", "data-v-6751d456"]]), Oa = /* @__PURE__ */ d({
2320
+ }), [["__scopeId", "data-v-6751d456"]]), za = /* @__PURE__ */ d({
2316
2321
  __name: "VideoPlayButton",
2317
2322
  props: { hoverEffect: {
2318
2323
  type: Boolean,
2319
2324
  default: !1
2320
2325
  } },
2321
2326
  setup(e) {
2322
- return (t, n) => (s(), x("div", { class: v(["tpl:absolute tpl:inset-0 tpl:flex tpl:items-center tpl:justify-center tpl:bg-black/30", e.hoverEffect && "tpl:transition-opacity tpl:group-hover:bg-black/40"]) }, [...n[0] ||= [k("div", { class: "tpl:flex tpl:size-16 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[color-mix(in_srgb,var(--tpl-bg)_90%,transparent)] tpl:shadow-[var(--tpl-shadow-lg)]" }, [k("svg", {
2327
+ return (t, n) => (s(), b("div", { class: _(["tpl:absolute tpl:inset-0 tpl:flex tpl:items-center tpl:justify-center tpl:bg-black/30", e.hoverEffect && "tpl:transition-opacity tpl:group-hover:bg-black/40"]) }, [...n[0] ||= [O("div", { class: "tpl:flex tpl:size-16 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[color-mix(in_srgb,var(--tpl-bg)_90%,transparent)] tpl:shadow-[var(--tpl-shadow-lg)]" }, [O("svg", {
2323
2328
  class: "tpl:ml-1 tpl:text-[var(--tpl-danger)]",
2324
2329
  width: "28",
2325
2330
  height: "28",
2326
2331
  viewBox: "0 0 24 24",
2327
2332
  fill: "currentColor"
2328
- }, [k("polygon", { points: "5,3 19,12 5,21" })])], -1)]], 2));
2333
+ }, [O("polygon", { points: "5,3 19,12 5,21" })])], -1)]], 2));
2329
2334
  }
2330
2335
  });
2331
2336
  //#endregion
2332
2337
  //#region src/utils/videoThumbnail.ts
2333
- function ka(e) {
2338
+ function Ba(e) {
2334
2339
  if (!e) return {
2335
2340
  platform: "unknown",
2336
2341
  videoId: null,
@@ -2362,25 +2367,25 @@ function ka(e) {
2362
2367
  thumbnailUrl: null
2363
2368
  };
2364
2369
  }
2365
- function Aa(e, t) {
2366
- return t || ka(e).thumbnailUrl;
2370
+ function Va(e, t) {
2371
+ return t || Ba(e).thumbnailUrl;
2367
2372
  }
2368
2373
  //#endregion
2369
2374
  //#region src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
2370
- var ja = ["src", "alt"], Ma = {
2375
+ var Ha = ["src", "alt"], Ua = {
2371
2376
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
2372
2377
  style: { opacity: "0.7" }
2373
- }, Na = ["href"], Pa = ["src", "alt"], Fa = ["src", "alt"], Ia = {
2378
+ }, Wa = ["href"], Ga = ["src", "alt"], Ka = ["src", "alt"], qa = {
2374
2379
  key: 3,
2375
2380
  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)]"
2376
- }, La = /* @__PURE__ */ d({
2381
+ }, Ja = /* @__PURE__ */ d({
2377
2382
  __name: "VideoBlock",
2378
2383
  props: {
2379
2384
  block: {},
2380
2385
  viewport: {}
2381
2386
  },
2382
2387
  setup(e) {
2383
- let t = e, { t: n } = Y(), { syntax: r } = Tn(), i = b(() => W(t.block.url, r) || W(t.block.thumbnailUrl, r)), a = Q(() => i.value ? void 0 : t.block.thumbnailUrl || void 0), o = Q(() => i.value ? t.block.placeholderUrl : void 0), c = b(() => i.value ? null : t.block.thumbnailUrl ? a.value ?? null : Aa(t.block.url)), l = b(() => ({ textAlign: t.block.align })), u = b(() => {
2388
+ let t = e, { t: n } = X(), { syntax: r } = Mn(), i = y(() => ke(t.block.url, r) || ke(t.block.thumbnailUrl, r)), a = G(() => i.value ? void 0 : t.block.thumbnailUrl || void 0), o = G(() => i.value ? t.block.placeholderUrl : void 0), c = y(() => i.value ? null : t.block.thumbnailUrl ? a.value ?? null : Va(t.block.url)), l = y(() => ({ textAlign: t.block.align })), u = y(() => {
2384
2389
  let e = t.block.align;
2385
2390
  return {
2386
2391
  maxWidth: "100%",
@@ -2390,90 +2395,90 @@ var ja = ["src", "alt"], Ma = {
2390
2395
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
2391
2396
  marginRight: e === "center" ? "auto" : void 0
2392
2397
  };
2393
- }), d = b(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), f = b(() => W(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
2394
- return (t, r) => (s(), x("div", {
2398
+ }), d = y(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), f = y(() => ke(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
2399
+ return (t, r) => (s(), b("div", {
2395
2400
  class: "tpl:w-full",
2396
- style: D(l.value)
2397
- }, [i.value && e.block.placeholderUrl ? (s(), x("div", {
2401
+ style: E(l.value)
2402
+ }, [i.value && e.block.placeholderUrl ? (s(), b("div", {
2398
2403
  key: 0,
2399
2404
  class: "tpl:relative tpl:inline-block",
2400
- style: D(u.value)
2401
- }, [k("img", {
2405
+ style: E(u.value)
2406
+ }, [O("img", {
2402
2407
  class: "tpl:block tpl:w-full tpl:border-0",
2403
- src: h(o),
2408
+ src: m(o),
2404
2409
  alt: e.block.alt,
2405
- style: D(d.value)
2406
- }, null, 12, ja), g(Oa)], 4)) : i.value ? (s(), x("div", {
2410
+ style: E(d.value)
2411
+ }, null, 12, Ha), h(za)], 4)) : i.value ? (s(), b("div", {
2407
2412
  key: 1,
2408
2413
  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)]",
2409
- style: D([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, u.value])
2410
- }, [g(h(vn), {
2414
+ style: E([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, u.value])
2415
+ }, [h(m(Dn), {
2411
2416
  size: 36,
2412
2417
  "stroke-width": 1.5,
2413
2418
  class: "tpl:text-[var(--tpl-primary)]",
2414
2419
  style: { opacity: "0.5" }
2415
- }), k("span", Ma, [g(Ir, { text: f.value }, null, 8, ["text"])])], 4)) : c.value ? (s(), x(P, { key: 2 }, [e.block.url ? (s(), x("a", {
2420
+ }), O("span", Ua, [h(Br, { text: f.value }, null, 8, ["text"])])], 4)) : c.value ? (s(), b(N, { key: 2 }, [e.block.url ? (s(), b("a", {
2416
2421
  key: 0,
2417
2422
  href: e.block.url,
2418
2423
  target: "_blank",
2419
2424
  rel: "noopener noreferrer",
2420
2425
  class: "tpl:group tpl:relative tpl:inline-block",
2421
- style: D(u.value),
2422
- onClick: r[0] ||= E(() => {}, ["prevent"])
2423
- }, [k("img", {
2426
+ style: E(u.value),
2427
+ onClick: r[0] ||= T(() => {}, ["prevent"])
2428
+ }, [O("img", {
2424
2429
  class: "tpl:block tpl:w-full tpl:border-0",
2425
2430
  src: c.value,
2426
2431
  alt: e.block.alt,
2427
- style: D(d.value)
2428
- }, null, 12, Pa), g(Oa, { "hover-effect": "" })], 12, Na)) : (s(), x("div", {
2432
+ style: E(d.value)
2433
+ }, null, 12, Ga), h(za, { "hover-effect": "" })], 12, Wa)) : (s(), b("div", {
2429
2434
  key: 1,
2430
2435
  class: "tpl:relative tpl:inline-block",
2431
- style: D(u.value)
2432
- }, [k("img", {
2436
+ style: E(u.value)
2437
+ }, [O("img", {
2433
2438
  class: "tpl:block tpl:w-full tpl:border-0",
2434
2439
  src: c.value,
2435
2440
  alt: e.block.alt,
2436
- style: D(d.value)
2437
- }, null, 12, Fa), g(Oa)], 4))], 64)) : (s(), x("div", Ia, [g(h(vn), {
2441
+ style: E(d.value)
2442
+ }, null, 12, Ka), h(za)], 4))], 64)) : (s(), b("div", qa, [h(m(Dn), {
2438
2443
  size: 40,
2439
2444
  "stroke-width": 1.5,
2440
2445
  class: "tpl:text-[var(--tpl-border-light)]"
2441
- }), k("span", null, F(h(n).video.addVideo), 1)]))], 4));
2442
- }
2443
- }), Ra = {
2444
- section: ua,
2445
- title: oa,
2446
- paragraph: Gi,
2447
- image: Mi,
2448
- button: Rr,
2449
- divider: mi,
2450
- video: La,
2451
- social: va,
2452
- menu: Ii,
2453
- table: Da,
2454
- spacer: xa,
2455
- html: bi,
2456
- countdown: L(() => import("./CountdownBlock-Dasj191h.js"))
2446
+ }), O("span", null, P(m(n).video.addVideo), 1)]))], 4));
2447
+ }
2448
+ }), Ya = {
2449
+ section: xa,
2450
+ title: ua,
2451
+ paragraph: Yi,
2452
+ image: Ii,
2453
+ button: Hr,
2454
+ divider: vi,
2455
+ video: Ja,
2456
+ social: ka,
2457
+ menu: Bi,
2458
+ table: Ra,
2459
+ spacer: Ma,
2460
+ html: wi,
2461
+ countdown: I(() => import("./CountdownBlock-Dasj191h.js"))
2457
2462
  };
2458
- function za(e) {
2459
- let { editor: n, config: r, translations: i, fontsManager: a } = e, { t: s, format: u } = Y(i), d = b(() => Ce(Ce(Ce(tr(i), br(n.content.value.settings?.locale)), ge(n.content.value.settings) === "rtl" ? {
2463
+ function Xa(e) {
2464
+ let { editor: n, config: r, translations: i, fontsManager: a } = e, { t: s, format: u } = X(i), d = y(() => we(we(we(nr(i), xr(n.content.value.settings?.locale)), _e(n.content.value.settings) === "rtl" ? {
2460
2465
  title: { textAlign: "right" },
2461
2466
  table: { textAlign: "right" }
2462
2467
  } : {}), r.blockDefaults ?? {}));
2463
2468
  n.setUiTheme(r.uiTheme ?? "auto");
2464
- let { resolvedTheme: f } = Un(b(() => n.state.uiTheme)), p = l(r.theme ?? {}), { themeStyles: h } = Gn({
2465
- themeOverrides: p,
2469
+ let { resolvedTheme: f } = Wn(y(() => n.state.uiTheme)), m = l(r.theme ?? {}), { themeStyles: h } = Kn({
2470
+ themeOverrides: m,
2466
2471
  resolvedTheme: f,
2467
2472
  extraStyles: () => ({
2468
2473
  "--tpl-drop-text": `"${i.canvas.dropHere}"`,
2469
2474
  ...e.themeExtraStyles?.()
2470
2475
  })
2471
- }), g = et({
2476
+ }), g = qe({
2472
2477
  content: n.content,
2473
2478
  setContent: (e, t) => n.setContent(e, t),
2474
2479
  ...e.historyOptions
2475
2480
  });
2476
- Je(n, g);
2481
+ Ge(n, g);
2477
2482
  let _ = Ke({
2478
2483
  addBlock: n.addBlock,
2479
2484
  removeBlock: n.removeBlock,
@@ -2481,7 +2486,7 @@ function za(e) {
2481
2486
  selectBlock: n.selectBlock,
2482
2487
  findBlockLocation: n.findBlockLocation,
2483
2488
  blockDefaults: () => d.value
2484
- }), v = We(n), x = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? tt({
2489
+ }), b = Je(n), x = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? Ye({
2485
2490
  content: n.content,
2486
2491
  isDirty: () => n.state.isDirty,
2487
2492
  ...e.autoSaveOptions
@@ -2489,30 +2494,30 @@ function za(e) {
2489
2494
  x && (S = t(g.isNavigating, (e) => {
2490
2495
  e ? x.pause() : x.resume();
2491
2496
  }));
2492
- let C = Hn(n, {
2497
+ let C = Un(n, {
2493
2498
  t: s,
2494
2499
  format: u
2495
- }, r.customBlocks ?? []), w = tn(r.colors);
2496
- if (w.allowCustomIgnored && X.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), w.invalidPresets.length > 0 && X.warn(`config.colors.presets skipped invalid entries: ${w.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), w.allowCustom === !1) {
2497
- let e = er(w.presets, r.blockDefaults, r.templateDefaults);
2498
- e.length > 0 && X.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.`);
2499
- }
2500
- let T = rn(r.templateSettings);
2501
- for (let e of T.unknown) X.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${an.join(", ")}) — skipping it.`);
2502
- let E = Kn();
2503
- Zn(E, Ra);
2500
+ }, r.customBlocks ?? []), w = ln(r.colors);
2501
+ if (w.allowCustomIgnored && Z.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), w.invalidPresets.length > 0 && Z.warn(`config.colors.presets skipped invalid entries: ${w.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), w.allowCustom === !1) {
2502
+ let e = tr(w.presets, r.blockDefaults, r.templateDefaults);
2503
+ e.length > 0 && Z.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.`);
2504
+ }
2505
+ let T = dn(r.templateSettings);
2506
+ for (let e of T.unknown) Z.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${fn.join(", ")}) — skipping it.`);
2507
+ let E = qn();
2508
+ Qn(E, Ya);
2504
2509
  let D = /* @__PURE__ */ new Set();
2505
2510
  function O(e) {
2506
2511
  for (let t of e) {
2507
- E.registerCustom(t, fi);
2508
- for (let e of xr(t, w)) D.has(e.id) || (D.add(e.id), X.warn(e.message));
2512
+ E.registerCustom(t, gi);
2513
+ for (let e of Sr(t, w)) D.has(e.id) || (D.add(e.id), Z.warn(e.message));
2509
2514
  }
2510
2515
  }
2511
2516
  r.customBlocks?.length && O(r.customBlocks);
2512
- let k = kn();
2513
- if (o() && m(k.dispose), e.containerEl) {
2517
+ let k = In();
2518
+ if (o() && p(k.dispose), e.containerEl) {
2514
2519
  let t = e.containerEl;
2515
- ot(document, "pointerdown", (e) => {
2520
+ pt(document, "pointerdown", (e) => {
2516
2521
  let n = t.value;
2517
2522
  n && (e.composedPath?.() ?? []).includes(n) && k.claim();
2518
2523
  }, { capture: !0 });
@@ -2522,7 +2527,7 @@ function za(e) {
2522
2527
  t ? t.save() : x?.flush();
2523
2528
  }
2524
2529
  function j(t) {
2525
- k.isActive() && Cr(t, {
2530
+ k.isActive() && wr(t, {
2526
2531
  history: g,
2527
2532
  selectBlock: (e) => n.selectBlock(e),
2528
2533
  getSelectedBlockId: () => n.state.selectedBlockId,
@@ -2534,37 +2539,37 @@ function za(e) {
2534
2539
  onCancelPick: () => e.capabilities?.savedBlocks?.cancelPicking()
2535
2540
  });
2536
2541
  }
2537
- ot(document, "keydown", j);
2542
+ pt(document, "keydown", j);
2538
2543
  let M = l(null), N = e.editorRoot ?? document;
2539
- c(Mt, N), c(ut, M), c(At, i), c(q, n), c(Zt, g), c(Nt, _), c(Lt, v), c(J, a), c(vt, h), c(jt, f), c(Wt, d), c(kt, r.locale), c(Jt, E), c(Gt, r.customBlocks ?? []), c(Qt, r.paletteBlocks), c(Pt, Qn(r.htmlBlockPreview)), c(dt, r.layout), c(ht, r.sectionWrapper), c(It, w), c(Kt, T.fields), c(Ht, qn(n.content, E));
2540
- let P = Ee(r.mergeTags?.syntax), F = y(r.mergeTags?.tags ?? []);
2544
+ c(zt, N), c(_t, M), c(Lt, i), c(J, n), c(an, g), c(Bt, _), c(Wt, b), c(Y, a), c(Tt, h), c(Rt, f), c(Zt, d), c(It, r.locale), c(tn, E), c(Qt, r.customBlocks ?? []), c(on, r.paletteBlocks), c(Vt, $n(r.htmlBlockPreview)), c(vt, r.layout), c(St, r.sectionWrapper), c(Ut, w), c($t, T.fields), c(Yt, Jn(n.content, E));
2545
+ let P = De(r.mergeTags?.syntax), F = v(r.mergeTags?.tags ?? []);
2541
2546
  function I(e) {
2542
- Array.isArray(e) ? F.value = e : X.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
2547
+ Array.isArray(e) ? F.value = e : Z.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
2543
2548
  }
2544
- c(K, F), c(Ct, P), c(Tt, r.mergeTags?.onRequest ?? null), c(Bt, r.mergeTags?.autocomplete !== !1), c(St, r.mergeTags?.showRawValue !== !1);
2545
- let L = l(Re(r.mergeTags?.tags ?? []));
2546
- c(xt, L);
2547
- let R = jn({
2549
+ c(q, F), c(At, P), c(Mt, r.mergeTags?.onRequest ?? null), c(qt, r.mergeTags?.autocomplete !== !1), c(kt, r.mergeTags?.showRawValue !== !1);
2550
+ let L = l(Be(r.mergeTags?.tags ?? []));
2551
+ c(Ot, L);
2552
+ let R = Rn({
2548
2553
  resolvePreview: r.resolvePreview,
2549
2554
  getContent: () => {
2550
2555
  let e = n.content.value;
2551
- return r.layout && n.state.previewMode ? fe(r.layout, e) : e;
2556
+ return r.layout && n.state.previewMode ? me(r.layout, e) : e;
2552
2557
  },
2553
2558
  isActive: () => n.state.previewMode
2554
2559
  });
2555
- c(Ot, R), c(gt, r.resolvePreview);
2556
- let z = b(() => !(n.state.previewMode && R.isConfigured));
2557
- c(qt, z);
2558
- let B = Rn();
2559
- c(lt, B), c(zt, l(!1)), c(ft, l(!1)), c(Dt, r.logicTags?.tags ?? []), c(Yt, r.logicTags?.pairs ?? []), c(_t, r.logicTags?.onRequest ?? null), c(pt, zn()), c(bt, r.onRequestMedia ?? null), c(Ft, r.canDropMedia ?? null), c(Xt, r.resolveImageUrl ? Mn(r.resolveImageUrl) : null), c(Rt, r.displayConditions?.conditions ?? []), c(Ut, r.displayConditions?.allowCustom ?? !1), c(Vt, e.capabilities ?? {}), c(Et, C);
2560
- let V = Bn(r.lint) ? null : Vn({
2560
+ c(Ft, R), c(Ct, r.resolvePreview);
2561
+ let z = y(() => !(n.state.previewMode && R.isConfigured));
2562
+ c(en, z);
2563
+ let B = zn();
2564
+ c(gt, B), c(Kt, l(!1)), c(yt, l(!1)), c(Pt, r.logicTags?.tags ?? []), c(nn, r.logicTags?.pairs ?? []), c(wt, r.logicTags?.onRequest ?? null), c(bt, Bn()), c(Dt, r.onRequestMedia ?? null), c(Ht, r.canDropMedia ?? null), c(rn, r.resolveImageUrl ? ct(r.resolveImageUrl) : null), c(Gt, r.displayConditions?.conditions ?? []), c(Xt, r.displayConditions?.allowCustom ?? !1), c(Jt, e.capabilities ?? {}), c(Nt, C);
2565
+ let V = Vn(r.lint) ? null : Hn({
2561
2566
  content: n.content,
2562
2567
  options: r.lint ?? {},
2563
2568
  updateBlock: n.updateBlock,
2564
2569
  updateSettings: n.updateSettings,
2565
2570
  removeBlock: n.removeBlock
2566
2571
  });
2567
- c(yt, V);
2572
+ c(Et, V);
2568
2573
  function H() {
2569
2574
  S?.(), V?.destroy(), x?.destroy(), g.destroy();
2570
2575
  }
@@ -2574,11 +2579,11 @@ function za(e) {
2574
2579
  editorRoot: N,
2575
2580
  history: g,
2576
2581
  blockActions: _,
2577
- conditionPreview: v,
2582
+ conditionPreview: b,
2578
2583
  autoSave: x,
2579
2584
  resolvedTheme: f,
2580
2585
  themeStyles: h,
2581
- themeOverrides: p,
2586
+ themeOverrides: m,
2582
2587
  registry: E,
2583
2588
  keyboardReorder: C,
2584
2589
  templateLint: V,
@@ -2592,6 +2597,6 @@ function za(e) {
2592
2597
  };
2593
2598
  }
2594
2599
  //#endregion
2595
- export { _r as A, kr as C, Pr as D, wr as E, fr as F, Fn as I, In as L, hr as M, mr as N, Tr as O, pr as P, jn as R, Rr as S, jr as T, $r as _, va as a, Ur as b, ia as c, Mi as d, bi as f, ti as g, ri as h, xa as i, gr as j, lr as k, Gi as l, fi as m, La as n, ua as o, mi as p, Da as r, oa as s, za as t, Ii as u, Jr as v, Ar as w, Vr as x, Wr as y };
2600
+ export { Er as A, Gr as C, Fr as D, Pr as E, hr as F, mr as I, pr as L, vr as M, _r as N, Tr as O, gr as P, Rn as R, qr as S, Ar as T, si as _, ka as a, Qr as b, ma as c, Yi as d, Bi as f, gi as g, vi as h, Ma as i, ur as j, Rr as k, ua as l, wi as m, Ja as n, xa as o, Ii as p, Ra as r, da as s, Xa as t, ca as u, ai as v, Hr as w, Jr as x, ri as y };
2596
2601
 
2597
- //# sourceMappingURL=useEditorCore-Bf2d1DKI.js.map
2602
+ //# sourceMappingURL=useEditorCore-Bb2UcB20.js.map