@templatical/editor 0.51.1 → 0.52.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 (361) hide show
  1. package/THIRD_PARTY_NOTICES.md +208 -0
  2. package/dist/{AiAltTextPopover-BZQ95GXL.js → AiAltTextPopover-Cm11CsKH.js} +7 -8
  3. package/dist/{AiAltTextReview-DoBEudnE.js → AiAltTextReview-DE8t8Rud.js} +8 -9
  4. package/dist/{AiChatPanel-Bs6sES3b.js → AiChatPanel-7ftS7d40.js} +18 -20
  5. package/dist/{AiPanels-CfN7A-ZA.js → AiPanels-CxGp6klr.js} +5 -7
  6. package/dist/{AiRewriteMenu-C3ZfDDYy.js → AiRewriteMenu-DNI-5CUj.js} +21 -22
  7. package/dist/{BlockIssueBadge-CKwZ1Vgn.js → BlockIssueBadge-6Ri2FfX-.js} +6 -7
  8. package/dist/{BlockPreviewCanvas-BXNLLLYi.js → BlockPreviewCanvas-Df9iz7sK.js} +10 -11
  9. package/dist/{CloudHeaderExtras-CsJMEiyN.js → CloudHeaderExtras-CsgyNNV1.js} +3 -4
  10. package/dist/{CloudPanels-B4F5m7vy.js → CloudPanels-BDV4XQ_l.js} +8 -9
  11. package/dist/{CollaborationNotices-CNuDp7Y2.js → CollaborationNotices-JQ3vQoqO.js} +4 -5
  12. package/dist/{CollaboratorBar-BtHPiuHq.js → CollaboratorBar-EeqqWcX6.js} +4 -5
  13. package/dist/{CommentsPanel-CyCM-BvT.js → CommentsPanel-BuftXc0U.js} +3 -5
  14. package/dist/{CommentsSidebar-Ca3DyFOX.js → CommentsSidebar-Co3x4uH0.js} +16 -17
  15. package/dist/{CountdownBlock-DR4Xm2-T.js → CountdownBlock-BT3ZTH1F.js} +5 -6
  16. package/dist/{CountdownToolbar-CEIMPojJ.js → CountdownToolbar-CrL4WKy9.js} +8 -9
  17. package/dist/{IssuesPanel-C8nMUccy.js → IssuesPanel-BHFQ3wrP.js} +12 -13
  18. package/dist/{LoadingTrack-B0RKQWq3.js → LoadingTrack-DZA5AoP9.js} +3 -4
  19. package/dist/{LogicTagInsertButton-CqfU52CO.js → LogicTagInsertButton-CSD9cfJB.js} +23 -30
  20. package/dist/{MediaEditModal-DHtkZ4OU.js → MediaEditModal-DQl5w44r.js} +7 -10
  21. package/dist/{MediaPanels-CGcOB2pR.js → MediaPanels-BFWYuJot.js} +3 -5
  22. package/dist/{MergeTagInput-YnEkorTZ.js → MergeTagInput-DE7kWwXx.js} +5 -6
  23. package/dist/{MergeTagModeToggle-Dhb1DAcQ.js → MergeTagModeToggle-DvD0ne7N.js} +7 -8
  24. package/dist/{MergeTagTextarea-e4lnwtqZ.js → MergeTagTextarea-DVPQkiYY.js} +3 -4
  25. package/dist/{ParagraphEditor-B6NK0ytw.js → ParagraphEditor-D-nqs82g.js} +55 -58
  26. package/dist/{RestoreVersionDialog-Bq_IGOLJ.js → RestoreVersionDialog-DqUPsLB9.js} +7 -8
  27. package/dist/{RichTextEditorContent-AOM6fylS.js → RichTextEditorContent-Xq9D0Zs3.js} +9 -10
  28. package/dist/{SaveBlockDialog-C8GngfQx.js → SaveBlockDialog-DAPv70p4.js} +13 -14
  29. package/dist/{SavedBlocksBrowserModal-wnkvxpm_.js → SavedBlocksBrowserModal-SRtN5h9q.js} +17 -18
  30. package/dist/{SavedBlocksPanels-C2s3q0pJ.js → SavedBlocksPanels-ChbL9v9x.js} +3 -5
  31. package/dist/{SavedBlocksPickBar-BjcTiV87.js → SavedBlocksPickBar-hRaiLNdu.js} +6 -7
  32. package/dist/{TemplateSettings-BVBWpiDU.js → TemplateSettings-D0XcH32O.js} +14 -15
  33. package/dist/{TestEmailModal-SyhO9bn3.js → TestEmailModal-Cb5t0yB2.js} +16 -18
  34. package/dist/{TestEmailPanel-BDd2Rtav.js → TestEmailPanel-COJQa2A9.js} +3 -5
  35. package/dist/{TitleEditor-pxD53y_l.js → TitleEditor-BYk_9SpQ.js} +14 -15
  36. package/dist/{ToggleSwitch-D51U9cmR.js → ToggleSwitch-poGWbduy.js} +2 -3
  37. package/dist/{Toolbar-CZSPZYbj.js → Toolbar-Dku_pZni.js} +134 -142
  38. package/dist/{TplModal-DCzBzicE.js → TplModal-9IndEYk5.js} +6 -7
  39. package/dist/{VersionHistoryMenu-BQeWPT85.js → VersionHistoryMenu-BG5qayvg.js} +12 -13
  40. package/dist/{VersionHistoryPanels-BBm7YbRQ.js → VersionHistoryPanels-hPg7Q5-f.js} +3 -5
  41. package/dist/{VersionPreviewBanner-DUGF0tUJ.js → VersionPreviewBanner-CSs7zum_.js} +5 -6
  42. package/dist/{WrapperBlock-BO619LAb.js → WrapperBlock-DwjK_IdJ.js} +6 -7
  43. package/dist/{_plugin-vue_export-helper-B3ysoDQm.js → _plugin-vue_export-helper-Djzt4Yr7.js} +1 -2
  44. package/dist/{aiErrors-D5UOoYOt.js → aiErrors-C3QEMB0x.js} +3 -5
  45. package/dist/{aiImageContext-BH4Ss1h3.js → aiImageContext-BQ5mQ6B5.js} +2 -3
  46. package/dist/{aiRewritePreview-DLGM05Ge.js → aiRewritePreview-DlMyx6Si.js} +1 -2
  47. package/dist/{blockTypeIcons-NzaYvAI4.js → blockTypeIcons-yt7SLzub.js} +3 -4
  48. package/dist/bundle-stats.json +6 -6
  49. package/dist/{ca-C7mTzW1r.js → ca-CD-Kt1qz.js} +1 -2
  50. package/dist/{ca-CYQH3J0b.js → ca-Cc6eL0ZS.js} +1 -2
  51. package/dist/cdn/chunks/{AiAltTextPopover-CQu0Q_ZX.js → AiAltTextPopover-DjMoJCgU.js} +7 -8
  52. package/dist/cdn/chunks/{AiAltTextPopover-CQu0Q_ZX.js.map → AiAltTextPopover-DjMoJCgU.js.map} +1 -1
  53. package/dist/cdn/chunks/{AiAltTextReview-CI2HbWfn.js → AiAltTextReview-BafAtBoA.js} +8 -9
  54. package/dist/cdn/chunks/{AiAltTextReview-CI2HbWfn.js.map → AiAltTextReview-BafAtBoA.js.map} +1 -1
  55. package/dist/cdn/chunks/{AiChatPanel-BYqn1bKu.js → AiChatPanel-DXeZgc7D.js} +15 -17
  56. package/dist/cdn/chunks/{AiChatPanel-BYqn1bKu.js.map → AiChatPanel-DXeZgc7D.js.map} +1 -1
  57. package/dist/cdn/chunks/{AiPanels-CIFKQv8Y.js → AiPanels-B4uAVRoO.js} +5 -7
  58. package/dist/cdn/chunks/{AiPanels-CIFKQv8Y.js.map → AiPanels-B4uAVRoO.js.map} +1 -1
  59. package/dist/cdn/chunks/{AiRewriteMenu-Bhh71zcc.js → AiRewriteMenu-4F6vwhJ5.js} +21 -22
  60. package/dist/cdn/chunks/AiRewriteMenu-4F6vwhJ5.js.map +1 -0
  61. package/dist/cdn/chunks/{BlockIssueBadge-DAn2vsMJ.js → BlockIssueBadge-DIJDqqcY.js} +6 -7
  62. package/dist/cdn/chunks/{BlockIssueBadge-DAn2vsMJ.js.map → BlockIssueBadge-DIJDqqcY.js.map} +1 -1
  63. package/dist/cdn/chunks/{BlockPreviewCanvas-D0--EQkP.js → BlockPreviewCanvas-Ny1X_mee.js} +9 -10
  64. package/dist/cdn/chunks/{BlockPreviewCanvas-D0--EQkP.js.map → BlockPreviewCanvas-Ny1X_mee.js.map} +1 -1
  65. package/dist/cdn/chunks/{CloudHeaderExtras-DaUU8P8R.js → CloudHeaderExtras-DtMORiLS.js} +4 -5
  66. package/dist/cdn/chunks/{CloudHeaderExtras-DaUU8P8R.js.map → CloudHeaderExtras-DtMORiLS.js.map} +1 -1
  67. package/dist/cdn/chunks/{CloudPanels-C3jsxo_f.js → CloudPanels-BkmLc2Fl.js} +7 -8
  68. package/dist/cdn/chunks/{CloudPanels-C3jsxo_f.js.map → CloudPanels-BkmLc2Fl.js.map} +1 -1
  69. package/dist/cdn/chunks/{CollaborationNotices-DjRI8gvs.js → CollaborationNotices-Hf8r08Sw.js} +5 -6
  70. package/dist/cdn/chunks/{CollaborationNotices-DjRI8gvs.js.map → CollaborationNotices-Hf8r08Sw.js.map} +1 -1
  71. package/dist/cdn/chunks/{CollaboratorBar-Dfzm6A9A.js → CollaboratorBar-II8eYtKu.js} +6 -7
  72. package/dist/cdn/chunks/{CollaboratorBar-Dfzm6A9A.js.map → CollaboratorBar-II8eYtKu.js.map} +1 -1
  73. package/dist/cdn/chunks/{CommentsPanel-CSO79OeX.js → CommentsPanel-CAiwilM2.js} +4 -6
  74. package/dist/cdn/chunks/{CommentsPanel-CSO79OeX.js.map → CommentsPanel-CAiwilM2.js.map} +1 -1
  75. package/dist/cdn/chunks/{CommentsSidebar-CCvplq1Z.js → CommentsSidebar-Dj8sDiLN.js} +18 -19
  76. package/dist/cdn/chunks/{CommentsSidebar-CCvplq1Z.js.map → CommentsSidebar-Dj8sDiLN.js.map} +1 -1
  77. package/dist/cdn/chunks/{CountdownBlock-C6USdwk3.js → CountdownBlock-Dyr5P0IP.js} +6 -7
  78. package/dist/cdn/chunks/{CountdownBlock-C6USdwk3.js.map → CountdownBlock-Dyr5P0IP.js.map} +1 -1
  79. package/dist/cdn/chunks/{CountdownToolbar-Cjud2Tos.js → CountdownToolbar-CguFJdqn.js} +9 -10
  80. package/dist/cdn/chunks/{CountdownToolbar-Cjud2Tos.js.map → CountdownToolbar-CguFJdqn.js.map} +1 -1
  81. package/dist/cdn/chunks/{IssuesPanel-BaWHPDxZ.js → IssuesPanel-pr7_nuLI.js} +9 -10
  82. package/dist/cdn/chunks/{IssuesPanel-BaWHPDxZ.js.map → IssuesPanel-pr7_nuLI.js.map} +1 -1
  83. package/dist/cdn/chunks/LoadingTrack-DfJ_C33G.js +11 -0
  84. package/dist/cdn/chunks/{LoadingTrack-BIcL4NiY.js.map → LoadingTrack-DfJ_C33G.js.map} +1 -1
  85. package/dist/cdn/chunks/{LogicTagInsertButton-CsL2JDOG.js → LogicTagInsertButton-B_ldj3TO.js} +18 -25
  86. package/dist/cdn/chunks/{LogicTagInsertButton-CsL2JDOG.js.map → LogicTagInsertButton-B_ldj3TO.js.map} +1 -1
  87. package/dist/cdn/chunks/{MediaEditModal-BuHCiyMu.js → MediaEditModal-CGfzcHwP.js} +7 -10
  88. package/dist/cdn/chunks/{MediaEditModal-BuHCiyMu.js.map → MediaEditModal-CGfzcHwP.js.map} +1 -1
  89. package/dist/cdn/chunks/{MediaPanels-DAgUf_T1.js → MediaPanels-D0BdxdqP.js} +4 -6
  90. package/dist/cdn/chunks/{MediaPanels-DAgUf_T1.js.map → MediaPanels-D0BdxdqP.js.map} +1 -1
  91. package/dist/cdn/chunks/{MergeTagInput-C8U-7LxL.js → MergeTagInput-CFu9VXPS.js} +6 -7
  92. package/dist/cdn/chunks/{MergeTagInput-C8U-7LxL.js.map → MergeTagInput-CFu9VXPS.js.map} +1 -1
  93. package/dist/cdn/chunks/{MergeTagModeToggle-Mm-p0A52.js → MergeTagModeToggle-BFpK5dxg.js} +7 -8
  94. package/dist/cdn/chunks/{MergeTagModeToggle-Mm-p0A52.js.map → MergeTagModeToggle-BFpK5dxg.js.map} +1 -1
  95. package/dist/cdn/chunks/{MergeTagTextarea-DuLScsWM.js → MergeTagTextarea-Zo0mYWbf.js} +4 -5
  96. package/dist/cdn/chunks/{MergeTagTextarea-DuLScsWM.js.map → MergeTagTextarea-Zo0mYWbf.js.map} +1 -1
  97. package/dist/cdn/chunks/{ParagraphEditor-CqSj6Ayz.js → ParagraphEditor-DsPLVAgm.js} +35 -38
  98. package/dist/cdn/chunks/{ParagraphEditor-CqSj6Ayz.js.map → ParagraphEditor-DsPLVAgm.js.map} +1 -1
  99. package/dist/cdn/chunks/{RestoreVersionDialog-CdA5osuA.js → RestoreVersionDialog-B866zFP0.js} +9 -10
  100. package/dist/cdn/chunks/{RestoreVersionDialog-CdA5osuA.js.map → RestoreVersionDialog-B866zFP0.js.map} +1 -1
  101. package/dist/cdn/chunks/{RichTextEditorContent-Q1d2xqBT.js → RichTextEditorContent-DaY63kye.js} +9 -10
  102. package/dist/cdn/chunks/{RichTextEditorContent-Q1d2xqBT.js.map → RichTextEditorContent-DaY63kye.js.map} +1 -1
  103. package/dist/cdn/chunks/{SaveBlockDialog-CijargAy.js → SaveBlockDialog-B7nftAAS.js} +11 -12
  104. package/dist/cdn/chunks/{SaveBlockDialog-CijargAy.js.map → SaveBlockDialog-B7nftAAS.js.map} +1 -1
  105. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DtOz_X5S.js → SavedBlocksBrowserModal-B9XCjDfm.js} +13 -14
  106. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DtOz_X5S.js.map → SavedBlocksBrowserModal-B9XCjDfm.js.map} +1 -1
  107. package/dist/cdn/chunks/{SavedBlocksPanels-BowyED5h.js → SavedBlocksPanels-C3nK90pz.js} +4 -6
  108. package/dist/cdn/chunks/{SavedBlocksPanels-BowyED5h.js.map → SavedBlocksPanels-C3nK90pz.js.map} +1 -1
  109. package/dist/cdn/chunks/{SavedBlocksPickBar-BPRaJBv3.js → SavedBlocksPickBar-B166Mek9.js} +7 -8
  110. package/dist/cdn/chunks/{SavedBlocksPickBar-BPRaJBv3.js.map → SavedBlocksPickBar-B166Mek9.js.map} +1 -1
  111. package/dist/cdn/chunks/{TemplateSettings-ByZeBO34.js → TemplateSettings-jWpmuWDR.js} +13 -14
  112. package/dist/cdn/chunks/{TemplateSettings-ByZeBO34.js.map → TemplateSettings-jWpmuWDR.js.map} +1 -1
  113. package/dist/cdn/chunks/{TestEmailModal-BUVTj3Ic.js → TestEmailModal-DcwKhFnI.js} +15 -17
  114. package/dist/cdn/chunks/{TestEmailModal-BUVTj3Ic.js.map → TestEmailModal-DcwKhFnI.js.map} +1 -1
  115. package/dist/cdn/chunks/{TestEmailPanel-BxutYoWg.js → TestEmailPanel-BDBAvAfI.js} +4 -6
  116. package/dist/cdn/chunks/{TestEmailPanel-BxutYoWg.js.map → TestEmailPanel-BDBAvAfI.js.map} +1 -1
  117. package/dist/cdn/chunks/{TitleEditor-Ccv6uoTz.js → TitleEditor-R2lQw6WA.js} +15 -16
  118. package/dist/cdn/chunks/{TitleEditor-Ccv6uoTz.js.map → TitleEditor-R2lQw6WA.js.map} +1 -1
  119. package/dist/cdn/chunks/{ToggleSwitch-Ctdmj621.js → ToggleSwitch-BDMugNES.js} +3 -4
  120. package/dist/cdn/chunks/{ToggleSwitch-Ctdmj621.js.map → ToggleSwitch-BDMugNES.js.map} +1 -1
  121. package/dist/cdn/chunks/{Toolbar-DoprRgTn.js → Toolbar-CnvfW72e.js} +156 -164
  122. package/dist/cdn/chunks/{Toolbar-DoprRgTn.js.map → Toolbar-CnvfW72e.js.map} +1 -1
  123. package/dist/cdn/chunks/{TplModal-BXQzmsJX.js → TplModal-BDyeS69p.js} +6 -7
  124. package/dist/cdn/chunks/{TplModal-BXQzmsJX.js.map → TplModal-BDyeS69p.js.map} +1 -1
  125. package/dist/cdn/chunks/{VersionHistoryMenu-BF2fNCvq.js → VersionHistoryMenu-CmpgUI4Q.js} +13 -14
  126. package/dist/cdn/chunks/{VersionHistoryMenu-BF2fNCvq.js.map → VersionHistoryMenu-CmpgUI4Q.js.map} +1 -1
  127. package/dist/cdn/chunks/{VersionHistoryPanels-Dal0Uk69.js → VersionHistoryPanels-DB_FZyyg.js} +4 -6
  128. package/dist/cdn/chunks/{VersionHistoryPanels-Dal0Uk69.js.map → VersionHistoryPanels-DB_FZyyg.js.map} +1 -1
  129. package/dist/cdn/chunks/{VersionPreviewBanner-BaGcn-b1.js → VersionPreviewBanner-CZ--HOoa.js} +6 -7
  130. package/dist/cdn/chunks/{VersionPreviewBanner-BaGcn-b1.js.map → VersionPreviewBanner-CZ--HOoa.js.map} +1 -1
  131. package/dist/cdn/chunks/{WrapperBlock-DkQJtLz0.js → WrapperBlock-D3obNGab.js} +7 -8
  132. package/dist/cdn/chunks/{WrapperBlock-DkQJtLz0.js.map → WrapperBlock-D3obNGab.js.map} +1 -1
  133. package/dist/cdn/chunks/{_plugin-vue_export-helper-B3ysoDQm.js → _plugin-vue_export-helper-Djzt4Yr7.js} +1 -2
  134. package/dist/cdn/chunks/{aiErrors-D5UOoYOt.js → aiErrors-C3QEMB0x.js} +4 -6
  135. package/dist/cdn/chunks/{aiErrors-D5UOoYOt.js.map → aiErrors-C3QEMB0x.js.map} +1 -1
  136. package/dist/cdn/chunks/{aiImageContext-BH4Ss1h3.js → aiImageContext-BQ5mQ6B5.js} +3 -4
  137. package/dist/cdn/chunks/{aiImageContext-BH4Ss1h3.js.map → aiImageContext-BQ5mQ6B5.js.map} +1 -1
  138. package/dist/cdn/chunks/{aiRewritePreview-DLGM05Ge.js → aiRewritePreview-DlMyx6Si.js} +2 -3
  139. package/dist/cdn/chunks/{aiRewritePreview-DLGM05Ge.js.map → aiRewritePreview-DlMyx6Si.js.map} +1 -1
  140. package/dist/cdn/chunks/{blockTypeIcons-ikZAmd6U.js → blockTypeIcons-DFf7AyqI.js} +3 -4
  141. package/dist/cdn/chunks/{blockTypeIcons-ikZAmd6U.js.map → blockTypeIcons-DFf7AyqI.js.map} +1 -1
  142. package/dist/cdn/chunks/{ca-C7mTzW1r.js → ca-CD-Kt1qz.js} +2 -3
  143. package/dist/cdn/chunks/{ca-C7mTzW1r.js.map → ca-CD-Kt1qz.js.map} +1 -1
  144. package/dist/cdn/chunks/{ca-CYQH3J0b.js → ca-Cc6eL0ZS.js} +2 -3
  145. package/dist/cdn/chunks/{ca-CYQH3J0b.js.map → ca-Cc6eL0ZS.js.map} +1 -1
  146. package/dist/cdn/chunks/{createCloudRuntime-DpBWhrv3.js → createCloudRuntime-D6niZ2Rc.js} +27 -46
  147. package/dist/cdn/chunks/{createCloudRuntime-DpBWhrv3.js.map → createCloudRuntime-D6niZ2Rc.js.map} +1 -1
  148. package/dist/cdn/chunks/{de-DBOTcDj2.js → de-6M4JoHoD.js} +2 -3
  149. package/dist/cdn/chunks/{de-DBOTcDj2.js.map → de-6M4JoHoD.js.map} +1 -1
  150. package/dist/cdn/chunks/{de-DNuYQTmS.js → de-CeFJ6wbM.js} +2 -3
  151. package/dist/cdn/chunks/{de-DNuYQTmS.js.map → de-CeFJ6wbM.js.map} +1 -1
  152. package/dist/cdn/chunks/{de-JvCTMJPy.js → de-DtrXVcuY.js} +2 -3
  153. package/dist/cdn/chunks/{de-JvCTMJPy.js.map → de-DtrXVcuY.js.map} +1 -1
  154. package/dist/cdn/chunks/{dist-Bo8Thh8v.js → dist-C2epoAwW.js} +3 -4
  155. package/dist/cdn/chunks/{dist-Bo8Thh8v.js.map → dist-C2epoAwW.js.map} +1 -1
  156. package/dist/cdn/chunks/{dist-S-rLGqax.js → dist-CONcGNwy.js} +4 -5
  157. package/dist/cdn/chunks/{dist-S-rLGqax.js.map → dist-CONcGNwy.js.map} +1 -1
  158. package/dist/cdn/chunks/dompurify-JVtr5-B1.js +872 -0
  159. package/dist/cdn/chunks/dompurify-JVtr5-B1.js.map +1 -0
  160. package/dist/cdn/chunks/{draggable-DZ0gwUJ6.js → draggable-B8hTTYFO.js} +19 -22
  161. package/dist/cdn/chunks/{draggable-DZ0gwUJ6.js.map → draggable-B8hTTYFO.js.map} +1 -1
  162. package/dist/cdn/chunks/{editor-modal-CI6EfeMd.js → editor-modal-cvYkpbHD.js} +66 -81
  163. package/dist/cdn/chunks/{editor-modal-CI6EfeMd.js.map → editor-modal-cvYkpbHD.js.map} +1 -1
  164. package/dist/cdn/chunks/{emojiData-6m0DBh7O.js → emojiData-CBNuCfum.js} +2 -3
  165. package/dist/cdn/chunks/{emojiData-6m0DBh7O.js.map → emojiData-CBNuCfum.js.map} +1 -1
  166. package/dist/cdn/chunks/en-CKAXAo3Z.js +1 -0
  167. package/dist/cdn/chunks/{en-CW71OK66.js → en-D14i5nFh.js} +2 -3
  168. package/dist/cdn/chunks/{en-CW71OK66.js.map → en-D14i5nFh.js.map} +1 -1
  169. package/dist/cdn/chunks/{en-CDhWRrF_.js → en-FzUuJ8HW.js} +2 -3
  170. package/dist/cdn/chunks/{en-CDhWRrF_.js.map → en-FzUuJ8HW.js.map} +1 -1
  171. package/dist/cdn/chunks/{es-CAv-Vldw.js → es-Dw_h7Oll.js} +2 -3
  172. package/dist/cdn/chunks/{es-CAv-Vldw.js.map → es-Dw_h7Oll.js.map} +1 -1
  173. package/dist/cdn/chunks/{es-DdK7zQfi.js → es-zDacbMhs.js} +2 -3
  174. package/dist/cdn/chunks/{es-DdK7zQfi.js.map → es-zDacbMhs.js.map} +1 -1
  175. package/dist/cdn/chunks/{extensions-taJTZlLK.js → extensions-ClDhn88e.js} +12 -17
  176. package/dist/cdn/chunks/{extensions-taJTZlLK.js.map → extensions-ClDhn88e.js.map} +1 -1
  177. package/dist/cdn/chunks/{formatAbsoluteDateTime-DMmop3C-.js → formatAbsoluteDateTime-Ck2_zXra.js} +2 -3
  178. package/dist/cdn/chunks/{formatAbsoluteDateTime-DMmop3C-.js.map → formatAbsoluteDateTime-Ck2_zXra.js.map} +1 -1
  179. package/dist/cdn/chunks/{formatRelativeTime-CtUU-QZ8.js → formatRelativeTime-BTD8Ktt-.js} +1 -2
  180. package/dist/cdn/chunks/{formatRelativeTime-CtUU-QZ8.js.map → formatRelativeTime-BTD8Ktt-.js.map} +1 -1
  181. package/dist/cdn/chunks/{fr-DVPtxpR6.js → fr-BJaeKu_8.js} +2 -3
  182. package/dist/cdn/chunks/{fr-DVPtxpR6.js.map → fr-BJaeKu_8.js.map} +1 -1
  183. package/dist/cdn/chunks/{fr-Dz5Bgb7-.js → fr-CSgYtjOd.js} +2 -3
  184. package/dist/cdn/chunks/{fr-Dz5Bgb7-.js.map → fr-CSgYtjOd.js.map} +1 -1
  185. package/dist/cdn/chunks/{htmlparser-CDRsn-gn.js → htmlparser-hu3YnNQU.js} +6 -11
  186. package/dist/cdn/chunks/{htmlparser-CDRsn-gn.js.map → htmlparser-hu3YnNQU.js.map} +1 -1
  187. package/dist/cdn/chunks/{icons-DNX6StSs.js → icons-HCBP93Ch.js} +50 -55
  188. package/dist/cdn/chunks/{icons-DNX6StSs.js.map → icons-HCBP93Ch.js.map} +1 -1
  189. package/dist/cdn/chunks/{ja-Di-zJiT8.js → ja-B7H3ID8O.js} +2 -3
  190. package/dist/cdn/chunks/{ja-Di-zJiT8.js.map → ja-B7H3ID8O.js.map} +1 -1
  191. package/dist/cdn/chunks/{ja-dcWzjStz.js → ja-Cu2HdYaK.js} +2 -3
  192. package/dist/cdn/chunks/{ja-dcWzjStz.js.map → ja-Cu2HdYaK.js.map} +1 -1
  193. package/dist/cdn/chunks/{keys-BTpmg2Tt.js → keys-BF9gazbd.js} +3 -4
  194. package/dist/cdn/chunks/{keys-BTpmg2Tt.js.map → keys-BF9gazbd.js.map} +1 -1
  195. package/dist/cdn/chunks/{liquid.browser-Bbt17cVz.js → liquid.browser-DkLBNrft.js} +705 -687
  196. package/dist/cdn/chunks/liquid.browser-DkLBNrft.js.map +1 -0
  197. package/dist/cdn/chunks/{logger-Tj0RPskW.js → logger-CqQTfJGx.js} +2 -3
  198. package/dist/cdn/chunks/{logger-Tj0RPskW.js.map → logger-CqQTfJGx.js.map} +1 -1
  199. package/dist/cdn/chunks/{nl-CvVuHYFL.js → nl-176ySmc5.js} +2 -3
  200. package/dist/cdn/chunks/{nl-CvVuHYFL.js.map → nl-176ySmc5.js.map} +1 -1
  201. package/dist/cdn/chunks/{nl-LZNqQgE4.js → nl-1Ai2NykB.js} +2 -3
  202. package/dist/cdn/chunks/{nl-LZNqQgE4.js.map → nl-1Ai2NykB.js.map} +1 -1
  203. package/dist/cdn/chunks/{normalizeMergeTagMarkup-DyePIGqu.js → normalizeMergeTagMarkup-DpHCSESZ.js} +3 -4
  204. package/dist/cdn/chunks/{normalizeMergeTagMarkup-DyePIGqu.js.map → normalizeMergeTagMarkup-DpHCSESZ.js.map} +1 -1
  205. package/dist/cdn/chunks/{preRenderCustomBlocks-Dc-QLntG.js → preRenderCustomBlocks-D-dsBq5t.js} +6 -7
  206. package/dist/cdn/chunks/{preRenderCustomBlocks-Dc-QLntG.js.map → preRenderCustomBlocks-D-dsBq5t.js.map} +1 -1
  207. package/dist/cdn/chunks/{pt-BR-CHM-ZKvE.js → pt-BR-Bp92Fc6J.js} +2 -3
  208. package/dist/cdn/chunks/{pt-BR-CHM-ZKvE.js.map → pt-BR-Bp92Fc6J.js.map} +1 -1
  209. package/dist/cdn/chunks/{pt-BR-D6P_mNwA.js → pt-BR-CIbp__Z7.js} +2 -3
  210. package/dist/cdn/chunks/{pt-BR-D6P_mNwA.js.map → pt-BR-CIbp__Z7.js.map} +1 -1
  211. package/dist/cdn/chunks/{pt-BR-ZhO4vgyq.js → pt-BR-dDlTwX18.js} +2 -3
  212. package/dist/cdn/chunks/{pt-BR-ZhO4vgyq.js.map → pt-BR-dDlTwX18.js.map} +1 -1
  213. package/dist/cdn/chunks/{pusher-Cs4GGEtd.js → pusher-x9rNqzon.js} +3 -4
  214. package/dist/cdn/chunks/{pusher-Cs4GGEtd.js.map → pusher-x9rNqzon.js.map} +1 -1
  215. package/dist/cdn/chunks/{readableTextColor-f8Kykfnh.js → readableTextColor-BfZUGnVj.js} +2 -3
  216. package/dist/cdn/chunks/{readableTextColor-f8Kykfnh.js.map → readableTextColor-BfZUGnVj.js.map} +1 -1
  217. package/dist/cdn/chunks/{rolldown-runtime-Y_bBpyJl.js → rolldown-runtime-QGRDbDUS.js} +1 -2
  218. package/dist/cdn/chunks/sanitizeHtml-B2h15u0_.js +72 -0
  219. package/dist/cdn/chunks/sanitizeHtml-B2h15u0_.js.map +1 -0
  220. package/dist/cdn/chunks/{socialIcons-BBvsTwCV.js → socialIcons-rJoqO1TJ.js} +167 -191
  221. package/dist/cdn/chunks/{socialIcons-BBvsTwCV.js.map → socialIcons-rJoqO1TJ.js.map} +1 -1
  222. package/dist/cdn/chunks/{src-Bs_yxk3h.js → src-BKpAis_q.js} +502 -537
  223. package/dist/cdn/chunks/src-BKpAis_q.js.map +1 -0
  224. package/dist/cdn/chunks/{src-BNFnxfrA.js → src-C9DTvn1H.js} +207 -171
  225. package/dist/cdn/chunks/src-C9DTvn1H.js.map +1 -0
  226. package/dist/cdn/chunks/src-CUH_EI7k.js +647 -0
  227. package/dist/cdn/chunks/src-CUH_EI7k.js.map +1 -0
  228. package/dist/cdn/chunks/{styleConstants-v1dNKgJf.js → styleConstants-B8xVRiwX.js} +2 -3
  229. package/dist/cdn/chunks/{styleConstants-v1dNKgJf.js.map → styleConstants-B8xVRiwX.js.map} +1 -1
  230. package/dist/cdn/chunks/{templateSettingsFields-YCFVBVYh.js → templateSettingsFields-cjlP-jdw.js} +2 -3
  231. package/dist/cdn/chunks/{templateSettingsFields-YCFVBVYh.js.map → templateSettingsFields-cjlP-jdw.js.map} +1 -1
  232. package/dist/cdn/chunks/{tiptap-CtVrAViq.js → tiptap-ChSZybTi.js} +3364 -3240
  233. package/dist/cdn/chunks/tiptap-ChSZybTi.js.map +1 -0
  234. package/dist/cdn/chunks/{useCloudI18n-AVXhzbhQ.js → useCloudI18n-RJXyVnIf.js} +4 -5
  235. package/dist/cdn/chunks/{useCloudI18n-AVXhzbhQ.js.map → useCloudI18n-RJXyVnIf.js.map} +1 -1
  236. package/dist/cdn/chunks/{useEditorCore-CCVFi1YZ.js → useEditorCore-CjaEV_01.js} +534 -586
  237. package/dist/cdn/chunks/useEditorCore-CjaEV_01.js.map +1 -0
  238. package/dist/cdn/chunks/useEditorRoot-BT3c9CXj.js +9 -0
  239. package/dist/cdn/chunks/{useEditorRoot-CR5GjJD6.js.map → useEditorRoot-BT3c9CXj.js.map} +1 -1
  240. package/dist/cdn/chunks/{useI18n-CbVubQhM.js → useI18n-11iqzC6m.js} +4 -5
  241. package/dist/cdn/chunks/{useI18n-CbVubQhM.js.map → useI18n-11iqzC6m.js.map} +1 -1
  242. package/dist/cdn/chunks/{useLogicTag-B49Nc53Y.js → useLogicTag-vy5KGg5D.js} +5 -6
  243. package/dist/cdn/chunks/{useLogicTag-B49Nc53Y.js.map → useLogicTag-vy5KGg5D.js.map} +1 -1
  244. package/dist/cdn/chunks/{useMergeTag-B0KryMj8.js → useMergeTag-BFBBjnwh.js} +5 -6
  245. package/dist/cdn/chunks/{useMergeTag-B0KryMj8.js.map → useMergeTag-BFBBjnwh.js.map} +1 -1
  246. package/dist/cdn/chunks/{usePopoverPosition-C829ps5i.js → usePopoverPosition-AnVIwiVv.js} +7 -11
  247. package/dist/cdn/chunks/{usePopoverPosition-C829ps5i.js.map → usePopoverPosition-AnVIwiVv.js.map} +1 -1
  248. package/dist/cdn/chunks/{useScrollToBlock-CAwvulog.js → useScrollToBlock-C0dawxGr.js} +5 -7
  249. package/dist/cdn/chunks/{useScrollToBlock-CAwvulog.js.map → useScrollToBlock-C0dawxGr.js.map} +1 -1
  250. package/dist/cdn/chunks/{withCurrentFont-DFPXeVfG.js → withCurrentFont-C3CquBQN.js} +3 -4
  251. package/dist/cdn/chunks/{withCurrentFont-DFPXeVfG.js.map → withCurrentFont-C3CquBQN.js.map} +1 -1
  252. package/dist/cdn/editor.js +221 -242
  253. package/dist/cdn/editor.js.map +1 -1
  254. package/dist/{check-yYsp5Xpk.js → check-N3x4z_rH.js} +1 -2
  255. package/dist/{chevron-down-DTmD06_j.js → chevron-down-gXu9qNwO.js} +1 -2
  256. package/dist/{chevron-right-BSeYZOxc.js → chevron-right-rL0ayGk5.js} +1 -2
  257. package/dist/{chevron-up-BOApwrxi.js → chevron-up-0ugh8HnW.js} +1 -2
  258. package/dist/{circle-alert-BMszY8im.js → circle-alert-B9Ls75B5.js} +1 -2
  259. package/dist/{clock-HADxnl6-.js → clock-BqHBaCLm.js} +1 -2
  260. package/dist/{createCloudRuntime-DVQI_ReU.js → createCloudRuntime-B5VIdnwz.js} +11 -17
  261. package/dist/{createLucideIcon-0lYYH3EW.js → createLucideIcon-BV7Gwz_Z.js} +6 -11
  262. package/dist/{de-DBOTcDj2.js → de-6M4JoHoD.js} +1 -2
  263. package/dist/{de-DNuYQTmS.js → de-CeFJ6wbM.js} +1 -2
  264. package/dist/{de-JvCTMJPy.js → de-DtrXVcuY.js} +1 -2
  265. package/dist/{dist-DI4_YSnG.js → dist-BA-jTQgw.js} +3 -4
  266. package/dist/{dist-BC-ZEYLd.js → dist-BF5zEHop.js} +2 -3
  267. package/dist/{dist-CyBwSiAa.js → dist-BS5uKktL.js} +2 -3
  268. package/dist/{dist-C7EtxNCb.js → dist-CEdyyDn7.js} +2 -3
  269. package/dist/{dist-Cr7RPxI9.js → dist-CWSG7Kj0.js} +478 -461
  270. package/dist/{dist-DXyGqIDE.js → dist-Cy8I5scI.js} +2 -3
  271. package/dist/{dist-DtOF3bDW.js → dist-CzrLYq2s.js} +398 -344
  272. package/dist/{dist-DVNjPKsH.js → dist-D6fZec6r.js} +3 -4
  273. package/dist/{dist-C_dV9QAx.js → dist-DDN7yR-w.js} +7 -7
  274. package/dist/{dist-CuLwJF7H.js → dist-Dd5MU2Ev.js} +23 -14
  275. package/dist/dist-DyFArF_G.js +4 -0
  276. package/dist/{dist-DBxgrOeo.js → dist-V7W1UhVr.js} +1882 -1792
  277. package/dist/{dist-DPcf6XZ8.js → dist-p3wymUDt.js} +2 -3
  278. package/dist/dist-pA3ooG6N.js +4 -0
  279. package/dist/{dist-3HpYixwF.js → dist-txQLT2sF.js} +173 -161
  280. package/dist/{editor-modal-Bzhl-PgI.js → editor-modal-Du9VI9q4.js} +203 -218
  281. package/dist/{emojiData-6m0DBh7O.js → emojiData-CBNuCfum.js} +1 -2
  282. package/dist/en-CyEE7FPY.js +1 -0
  283. package/dist/{en-CW71OK66.js → en-D14i5nFh.js} +1 -2
  284. package/dist/{en-CDhWRrF_.js → en-FzUuJ8HW.js} +1 -2
  285. package/dist/{es-CAv-Vldw.js → es-Dw_h7Oll.js} +1 -2
  286. package/dist/{es-DdK7zQfi.js → es-zDacbMhs.js} +1 -2
  287. package/dist/{extensions-CdyweA50.js → extensions-FRYhx7qa.js} +59 -68
  288. package/dist/{eye-DWkSvYpj.js → eye-BKj9Tfnc.js} +1 -2
  289. package/dist/{formatAbsoluteDateTime-DMmop3C-.js → formatAbsoluteDateTime-Ck2_zXra.js} +1 -2
  290. package/dist/{formatRelativeTime-CtUU-QZ8.js → formatRelativeTime-BTD8Ktt-.js} +0 -1
  291. package/dist/{fr-DVPtxpR6.js → fr-BJaeKu_8.js} +1 -2
  292. package/dist/{fr-Dz5Bgb7-.js → fr-CSgYtjOd.js} +1 -2
  293. package/dist/{image-DesWjcZ4.js → image-DNdvdTla.js} +1 -2
  294. package/dist/index.d.ts +6 -6
  295. package/dist/{info-ClWJGoZy.js → info-Bx-kBkbH.js} +1 -2
  296. package/dist/{ja-Di-zJiT8.js → ja-B7H3ID8O.js} +1 -2
  297. package/dist/{ja-dcWzjStz.js → ja-Cu2HdYaK.js} +1 -2
  298. package/dist/{keys-Zd9KWRD1.js → keys-DBjrQkYH.js} +2 -3
  299. package/dist/{link-BqRicFTA.js → link-D8-rYdIQ.js} +1 -2
  300. package/dist/{liquid.browser-Ct2-EezB.js → liquid.browser-D1RxawkY.js} +704 -686
  301. package/dist/{list-bojQr9bn.js → list-BneisA27.js} +1 -2
  302. package/dist/{loader-circle-B2B8LbUu.js → loader-circle-DBEXphyx.js} +1 -2
  303. package/dist/{logger-k9Nbj3Cp.js → logger-BOu7oEtk.js} +1 -2
  304. package/dist/{message-circle-BEuiNsyZ.js → message-circle-Bg4xInCM.js} +1 -2
  305. package/dist/{nl-CvVuHYFL.js → nl-176ySmc5.js} +1 -2
  306. package/dist/{nl-LZNqQgE4.js → nl-1Ai2NykB.js} +1 -2
  307. package/dist/{normalizeMergeTagMarkup-P6SUBuPv.js → normalizeMergeTagMarkup-IH8COHzd.js} +30 -31
  308. package/dist/{package-DCROB4aM.js → package-B40Vkfsp.js} +1 -2
  309. package/dist/{pencil-CEotCKbf.js → pencil-CYdAHTds.js} +1 -2
  310. package/dist/{preRenderCustomBlocks-D8rr61_z.js → preRenderCustomBlocks-AbZArwkR.js} +4 -5
  311. package/dist/{pt-BR-CHM-ZKvE.js → pt-BR-Bp92Fc6J.js} +1 -2
  312. package/dist/{pt-BR-D6P_mNwA.js → pt-BR-CIbp__Z7.js} +1 -2
  313. package/dist/{pt-BR-ZhO4vgyq.js → pt-BR-dDlTwX18.js} +1 -2
  314. package/dist/{readableTextColor-f8Kykfnh.js → readableTextColor-BfZUGnVj.js} +1 -2
  315. package/dist/{refresh-cw-C6M2mHNC.js → refresh-cw-Bb1FWrU0.js} +1 -2
  316. package/dist/{rolldown-runtime-Dy4uBu1J.js → rolldown-runtime-CGnMp29N.js} +1 -2
  317. package/dist/{runtime-dom.esm-bundler-B8WCZWUm.js → runtime-dom.esm-bundler-CLGymEyk.js} +7 -8
  318. package/dist/sanitizeHtml-CnOA1efV.js +942 -0
  319. package/dist/{search-Cy99zPYf.js → search-BZEo08gi.js} +1 -2
  320. package/dist/{send-BDLJFsf3.js → send-DHtrnXQs.js} +1 -2
  321. package/dist/{smartphone-CVvQaNA4.js → smartphone-dlN3vpA3.js} +1 -2
  322. package/dist/{socialIcons-Dd-jRiVe.js → socialIcons-B_d52_eS.js} +256 -267
  323. package/dist/{sparkles-Ce0Qz0ox.js → sparkles-NOttoDnJ.js} +1 -2
  324. package/dist/{square-BWlolnXe.js → square-B1CJgdt2.js} +1 -2
  325. package/dist/{styleConstants-v1dNKgJf.js → styleConstants-B8xVRiwX.js} +1 -2
  326. package/dist/{templateSettingsFields-YCFVBVYh.js → templateSettingsFields-cjlP-jdw.js} +1 -2
  327. package/dist/templatical-editor.js +245 -265
  328. package/dist/{text-align-start-D1V5gPTy.js → text-align-start-zpoXmb-Z.js} +1 -2
  329. package/dist/{trash-CZfiUFmw.js → trash-CGbk4Sgt.js} +1 -2
  330. package/dist/{triangle-alert-CFDzyFC7.js → triangle-alert-CKLMyGVp.js} +1 -2
  331. package/dist/{upload-BJfvdIrD.js → upload-DQoackAn.js} +1 -2
  332. package/dist/{useCloudI18n-Dcjua65H.js → useCloudI18n-DcLtxOQZ.js} +3 -4
  333. package/dist/{useEditorCore-BTLeAVlM.js → useEditorCore-DG9UvWUm.js} +931 -984
  334. package/dist/useEditorRoot-BKr6nNkC.js +7 -0
  335. package/dist/{useI18n-BdoY7xDE.js → useI18n-CeTm777E.js} +3 -4
  336. package/dist/{useLogicTag-DKLZ1T9H.js → useLogicTag-DFDYJeMN.js} +4 -5
  337. package/dist/{useMergeTag-Bhdx7AKk.js → useMergeTag-B46vACAG.js} +4 -5
  338. package/dist/{usePopoverPosition-BZea45XK.js → usePopoverPosition-C42kD7zt.js} +6 -10
  339. package/dist/{useScrollToBlock-FmNMALM_.js → useScrollToBlock-C-NzvjeO.js} +4 -6
  340. package/dist/{vue.runtime.esm-bundler-DgFJ6GPG.js → vue.runtime.esm-bundler-CrlI8j5R.js} +14 -18
  341. package/dist/{withCurrentFont-BATJHNve.js → withCurrentFont-v_a4Oso8.js} +2 -3
  342. package/dist/{x-CZ0Js0hA.js → x-zcrnmcmU.js} +1 -2
  343. package/package.json +24 -22
  344. package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js.map +0 -1
  345. package/dist/cdn/chunks/LoadingTrack-BIcL4NiY.js +0 -12
  346. package/dist/cdn/chunks/en-ifvu6oPv.js +0 -1
  347. package/dist/cdn/chunks/liquid.browser-Bbt17cVz.js.map +0 -1
  348. package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js +0 -62
  349. package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js.map +0 -1
  350. package/dist/cdn/chunks/src-BNFnxfrA.js.map +0 -1
  351. package/dist/cdn/chunks/src-Bs_yxk3h.js.map +0 -1
  352. package/dist/cdn/chunks/src-YGkzYyu0.js +0 -649
  353. package/dist/cdn/chunks/src-YGkzYyu0.js.map +0 -1
  354. package/dist/cdn/chunks/tiptap-CtVrAViq.js.map +0 -1
  355. package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js.map +0 -1
  356. package/dist/cdn/chunks/useEditorRoot-CR5GjJD6.js +0 -10
  357. package/dist/dist-BPFcLKTw.js +0 -5
  358. package/dist/dist-D7Yj7E-F.js +0 -5
  359. package/dist/en-DwV15ltA.js +0 -1
  360. package/dist/sanitizeRichTextHtml-DeISfLFr.js +0 -60
  361. package/dist/useEditorRoot-DUy67lJu.js +0 -8
@@ -1,44 +1,43 @@
1
- import { $ as e, A as t, C as n, D as r, F as i, I as a, J as o, L as s, M as c, P as l, S as u, T as d, U as f, V as p, W as m, X as h, _ as g, at as _, b as v, c as y, dt as b, g as x, h as S, it as C, j as w, l as T, lt as E, m as D, ot as O, p as k, q as A, s as j, t as M, tt as N, u as P, ut as F, x as I, z as L } from "./draggable-DZ0gwUJ6.js";
2
- import { A as R, At as z, Bt as B, Ct as V, Dt as H, Et as U, F as ee, Ft as te, G as ne, H as re, Ht as W, I as ie, J as ae, L as oe, M as se, N as ce, Ot as le, P as ue, Pt as de, Q as fe, R as pe, Rt as me, U as he, Ut as ge, V as _e, Vt as ve, W as ye, X as be, Z as xe, a as Se, b as Ce, c as we, d as Te, f as Ee, g as De, h as Oe, i as ke, j as Ae, l as je, m as Me, mt as Ne, n as Pe, o as Fe, p as Ie, r as Le, t as Re, tt as ze, u as Be, w as Ve, y as He, z as Ue, zt as We } from "./src-BNFnxfrA.js";
3
- import { C as Ge, I as Ke, L as qe, M as Je, N as Ye, P as Xe, R as Ze, S as Qe, _ as $e, a as et, b as tt, d as nt, g as rt, l as it, m as at, n as ot, t as st, v as ct, w as lt } from "./socialIcons-BBvsTwCV.js";
4
- import { _ as ut, h as dt, v as ft, y as pt } from "./dist-Bo8Thh8v.js";
5
- import { a as G, c as mt, i as ht } from "./dist-S-rLGqax.js";
6
- import { $ as K, A as gt, B as _t, C as vt, D as yt, E as bt, F as xt, H as St, I as Ct, J as wt, K as Tt, L as Et, M as Dt, N as Ot, O as q, P as kt, Q as At, R as jt, S as Mt, T as Nt, V as Pt, W 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-BTpmg2Tt.js";
7
- import { t as X } from "./logger-Tj0RPskW.js";
8
- import { t as Z } from "./useI18n-CbVubQhM.js";
9
- import { i as sn, r as cn, s as ln, t as un } from "./usePopoverPosition-C829ps5i.js";
10
- import { r as dn, t as fn } from "./templateSettingsFields-YCFVBVYh.js";
11
- import { At as pn, Dt as mn, Ht as hn, Ot as gn, V as _n, Vt as vn, X as yn, d as bn, f as xn, ht as Sn, k as Cn, nt as wn, o as Tn, vt as En, xt as Dn, y as On } from "./icons-DNX6StSs.js";
12
- import { t as kn } from "./LoadingTrack-BIcL4NiY.js";
13
- import { t as An } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
- import { t as jn } from "./useEditorRoot-CR5GjJD6.js";
15
- import "./useCloudI18n-AVXhzbhQ.js";
16
- import { t as Mn } from "./useMergeTag-B0KryMj8.js";
17
- import { t as Nn } from "./useLogicTag-B49Nc53Y.js";
18
- import { t as Pn } from "./sanitizeRichTextHtml-DeISfLFr.js";
19
- import { t as Fn } from "./readableTextColor-f8Kykfnh.js";
20
- //#region src/utils/activeEditorTracker.ts
21
- var In = /* @__PURE__ */ new Set(), Q = 0, Ln = 0;
22
- function Rn() {
23
- let e = ++Ln;
24
- return In.add(e), Q === 0 && (Q = e), {
1
+ import { $ as e, A as t, C as n, D as r, F as i, I as a, J as o, L as s, M as c, P as l, S as u, T as d, U as f, V as p, W as m, X as h, _ as g, at as _, b as v, c as y, dt as b, g as x, h as S, it as C, j as w, l as T, lt as E, m as D, ot as O, p as k, q as A, s as j, t as M, tt as N, u as P, ut as F, x as I, z as L } from "./draggable-B8hTTYFO.js";
2
+ import { $ as ee, B as R, Bt as z, E as B, F as V, Ft as H, G as te, Gt as ne, H as re, I as ie, J as U, Jt as W, K as ae, Kt as oe, L as se, Mt as ce, Nt as le, O as ue, Ot as de, P as fe, Q as pe, R as me, T as he, U as ge, Ut as _e, V as ve, Wt as ye, Y as be, a as xe, b as Se, c as Ce, d as we, f as Te, g as Ee, h as De, i as Oe, jt as ke, l as Ae, m as je, n as Me, nt as Ne, o as Pe, ot as Fe, p as Ie, q as Le, qt as Re, r as ze, rt as Be, t as Ve, tt as He, u as Ue, y as We, yt as Ge, z as Ke, zt as qe } from "./src-C9DTvn1H.js";
3
+ import { C as Je, I as Ye, L as Xe, M as Ze, N as Qe, P as $e, R as et, S as tt, _ as nt, a as rt, b as it, d as at, g as ot, l as st, m as ct, n as lt, t as ut, v as dt, w as ft } from "./socialIcons-rJoqO1TJ.js";
4
+ import { _ as pt, h as mt, v as ht, y as gt } from "./dist-C2epoAwW.js";
5
+ import { a as _t, c as vt, i as yt } from "./dist-CONcGNwy.js";
6
+ import { $ as G, A as bt, B as xt, C as St, D as Ct, E as wt, F as Tt, H as Et, I as Dt, J as Ot, K as kt, L as At, M as jt, N as Mt, O as K, P as Nt, Q as q, R as Pt, S as Ft, T as It, V as Lt, W as Rt, X as zt, Y as Bt, Z as Vt, _ as Ht, a as Ut, b as Wt, c as Gt, d as Kt, f as qt, g as J, h as Jt, j as Yt, k as Xt, l as Zt, m as Qt, n as $t, o as en, p as tn, q as nn, r as rn, s as an, v as Y, w as on, x as sn, y as cn, z as ln } from "./keys-BF9gazbd.js";
7
+ import { t as X } from "./logger-CqQTfJGx.js";
8
+ import { t as Z } from "./useI18n-11iqzC6m.js";
9
+ import { i as un, r as dn, s as fn, t as pn } from "./usePopoverPosition-AnVIwiVv.js";
10
+ import { r as mn, t as hn } from "./templateSettingsFields-cjlP-jdw.js";
11
+ import { n as gn, t as _n } from "./sanitizeHtml-B2h15u0_.js";
12
+ import { At as vn, Et as yn, Ht as bn, Ot as xn, V as Sn, Vt as Cn, X as wn, d as Tn, f as En, ht as Dn, k as On, nt as kn, o as An, vt as jn, xt as Mn, y as Nn } from "./icons-HCBP93Ch.js";
13
+ import { t as Pn } from "./LoadingTrack-DfJ_C33G.js";
14
+ import { t as Fn } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
15
+ import { t as In } from "./useEditorRoot-BT3c9CXj.js";
16
+ import "./useCloudI18n-RJXyVnIf.js";
17
+ import { t as Ln } from "./useMergeTag-BFBBjnwh.js";
18
+ import { t as Rn } from "./useLogicTag-vy5KGg5D.js";
19
+ import { t as zn } from "./readableTextColor-BfZUGnVj.js";
20
+ // src/utils/activeEditorTracker.ts
21
+ var Bn = /* @__PURE__ */ new Set(), Q = 0, Vn = 0;
22
+ function Hn() {
23
+ let e = ++Vn;
24
+ return Bn.add(e), Q === 0 && (Q = e), {
25
25
  id: e,
26
- isActive: () => In.size <= 1 || Q === e,
26
+ isActive: () => Bn.size <= 1 || Q === e,
27
27
  claim: () => {
28
28
  Q = e;
29
29
  },
30
30
  dispose: () => {
31
- if (In.delete(e), Q === e) {
32
- let e = Array.from(In);
31
+ if (Bn.delete(e), Q === e) {
32
+ let e = Array.from(Bn);
33
33
  Q = e[e.length - 1] ?? 0;
34
34
  }
35
35
  }
36
36
  };
37
37
  }
38
- //#endregion
39
- //#region src/composables/usePreviewResolution.ts
40
- var zn = 500;
41
- function Bn(t) {
38
+ // src/composables/usePreviewResolution.ts
39
+ var Un = 500;
40
+ function Wn(t) {
42
41
  let n = typeof t.resolvePreview == "function", r = e(null), i = e(!1), a = e(!1), o = 0, s = null;
43
42
  function c() {
44
43
  s !== null && (clearTimeout(s), s = null);
@@ -49,13 +48,13 @@ function Bn(t) {
49
48
  let n = ++o;
50
49
  i.value = !0;
51
50
  let s = {
52
- content: V(t.getContent()),
51
+ content: de(t.getContent()),
53
52
  ...t.getRecipient?.() === void 0 ? {} : { recipient: t.getRecipient() }
54
53
  };
55
54
  try {
56
55
  let t = await e(s);
57
56
  if (n !== o) return;
58
- if (!Re(t)) {
57
+ if (!Ve(t)) {
59
58
  a.value = !0;
60
59
  return;
61
60
  }
@@ -70,7 +69,7 @@ function Bn(t) {
70
69
  function u() {
71
70
  n && (c(), r.value === null ? l() : s = setTimeout(() => {
72
71
  s = null, l();
73
- }, zn));
72
+ }, Un));
74
73
  }
75
74
  return p(() => [t.isActive(), t.getRecipient?.()], ([e]) => {
76
75
  e ? u() : (c(), o++, i.value = !1, r.value = null, a.value = !1);
@@ -85,9 +84,8 @@ function Bn(t) {
85
84
  supersedesSamples: k(() => n)
86
85
  };
87
86
  }
88
- //#endregion
89
- //#region src/composables/useMergeTagPicker.ts
90
- function Vn() {
87
+ // src/composables/useMergeTagPicker.ts
88
+ function Gn() {
91
89
  let t = e(!1), n = e([]), r = e(null), i = null;
92
90
  function a(e, a) {
93
91
  if (i) {
@@ -116,9 +114,8 @@ function Vn() {
116
114
  resolve: o
117
115
  };
118
116
  }
119
- //#endregion
120
- //#region src/composables/useLogicTagPicker.ts
121
- function Hn() {
117
+ // src/composables/useLogicTagPicker.ts
118
+ function Kn() {
122
119
  let t = e(!1), n = e([]), r = e([]), i = null;
123
120
  function a(e, a) {
124
121
  if (i) {
@@ -147,31 +144,30 @@ function Hn() {
147
144
  resolve: o
148
145
  };
149
146
  }
150
- //#endregion
151
- //#region src/composables/useTemplateLint.ts
152
- function Un(e) {
147
+ // src/composables/useTemplateLint.ts
148
+ function qn(e) {
153
149
  return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 && e.deliverability === !1 && e.compatibility === !1 : !1;
154
150
  }
155
- var Wn = !1;
156
- function Gn(t) {
151
+ var Jn = !1;
152
+ function Yn(t) {
157
153
  let n = e([]), r = e(0), i = e(-1), a = p(t.content, () => {
158
154
  r.value++;
159
155
  }, {
160
156
  deep: !0,
161
157
  flush: "sync"
162
- }), o = e(!1), s = e(!1), c = N(null), l = Un(t.options), u = null, d = !1;
158
+ }), o = e(!1), s = e(!1), c = N(null), l = qn(t.options), u = null, d = !1;
163
159
  l || f();
164
160
  async function f() {
165
161
  try {
166
- let e = await import("./src-Bs_yxk3h.js");
162
+ let e = await import("./src-BKpAis_q.js");
167
163
  if (d) return;
168
- c.value = { lintTemplate: e.lintTemplate }, o.value = !0, m(), u = pt(t.content, m, {
164
+ c.value = { lintTemplate: e.lintTemplate }, o.value = !0, m(), u = gt(t.content, m, {
169
165
  debounce: t.debounce ?? 500,
170
166
  deep: !0
171
167
  });
172
168
  } catch {
173
169
  if (d) return;
174
- s.value = !0, Wn || (Wn = !0, X.info("@templatical/quality isn't installed, so the Issues panel and its lint badges are off. Add @templatical/quality to your dependencies to turn them on."));
170
+ s.value = !0, Jn || (Jn = !0, X.info("@templatical/quality isn't installed, so the Issues panel and its lint badges are off. Add @templatical/quality to your dependencies to turn them on."));
175
171
  }
176
172
  }
177
173
  function m() {
@@ -202,9 +198,8 @@ function Gn(t) {
202
198
  destroy: _
203
199
  };
204
200
  }
205
- //#endregion
206
- //#region src/composables/useKeyboardReorder.ts
207
- function Kn(t, n, r = []) {
201
+ // src/composables/useKeyboardReorder.ts
202
+ function Xn(t, n, r = []) {
208
203
  let i = e(null), a = e(""), o = null;
209
204
  function s(e) {
210
205
  let n = t.content.value.blocks, r = n.findIndex((t) => t.id === e);
@@ -231,7 +226,7 @@ function Kn(t, n, r = []) {
231
226
  let i = s(e);
232
227
  if (!i) return "";
233
228
  let a = (i.sectionId ? l(i.sectionId, i.columnIndex ?? 0) : t.content.value.blocks)?.[i.index];
234
- return a ? ct(a, n.t, r) : "";
229
+ return a ? dt(a, n.t, r) : "";
235
230
  }
236
231
  function l(e, n) {
237
232
  return t.content.value.blocks.find((t) => t.id === e && t.type === "section")?.children[n] ?? null;
@@ -298,15 +293,13 @@ function Kn(t, n, r = []) {
298
293
  drop: g
299
294
  };
300
295
  }
301
- //#endregion
302
- //#region src/composables/useUiTheme.ts
303
- function qn(e) {
304
- let t = mt("(prefers-color-scheme: dark)");
296
+ // src/composables/useUiTheme.ts
297
+ function Zn(e) {
298
+ let t = vt("(prefers-color-scheme: dark)");
305
299
  return { resolvedTheme: k(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
306
300
  }
307
- //#endregion
308
- //#region src/composables/useThemeStyles.ts
309
- var Jn = {
301
+ // src/composables/useThemeStyles.ts
302
+ var Qn = {
310
303
  bg: "--tpl-bg",
311
304
  bgElevated: "--tpl-bg-elevated",
312
305
  bgHover: "--tpl-bg-hover",
@@ -330,19 +323,18 @@ var Jn = {
330
323
  dangerLight: "--tpl-danger-light",
331
324
  canvasBg: "--tpl-canvas-bg"
332
325
  };
333
- function Yn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
326
+ function $n({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
334
327
  return { themeStyles: k(() => {
335
328
  let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
336
- if (a) for (let [e, t] of Object.entries(Jn)) {
329
+ if (a) for (let [e, t] of Object.entries(Qn)) {
337
330
  let n = a[e];
338
331
  n && (r[t] = n);
339
332
  }
340
333
  return n && Object.assign(r, n()), r;
341
334
  }) };
342
335
  }
343
- //#endregion
344
- //#region src/composables/useBlockRegistry.ts
345
- function Xn() {
336
+ // src/composables/useBlockRegistry.ts
337
+ function er() {
346
338
  let e = N(/* @__PURE__ */ new Map());
347
339
  function t(t, n) {
348
340
  e.value.set(t, n), _(e);
@@ -351,7 +343,7 @@ function Xn() {
351
343
  let r = `custom:${t.type}`;
352
344
  e.value.set(r, {
353
345
  component: n,
354
- createBlock: () => ce(t),
346
+ createBlock: () => se(t),
355
347
  definition: t
356
348
  }), _(e);
357
349
  }
@@ -376,11 +368,7 @@ function Xn() {
376
368
  let t = a(e.customType);
377
369
  if (!t) return o("Block definition not found");
378
370
  try {
379
- let { Liquid: n } = await import("./liquid.browser-Bbt17cVz.js");
380
- return await new n({
381
- strictVariables: !1,
382
- strictFilters: !1
383
- }).parseAndRender(t.template, e.fieldValues);
371
+ return await pe(await import("./liquid.browser-DkLBNrft.js")).parseAndRender(t.template, e.fieldValues);
384
372
  } catch (t) {
385
373
  return X.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
386
374
  }
@@ -398,11 +386,10 @@ function Xn() {
398
386
  isRegistered: c
399
387
  };
400
388
  }
401
- //#endregion
402
- //#region src/composables/useCustomBlockStylesheets.ts
403
- function Zn(e, t) {
389
+ // src/composables/useCustomBlockStylesheets.ts
390
+ function tr(e, t) {
404
391
  return k(() => {
405
- let n = Qn(e.value.blocks);
392
+ let n = nr(e.value.blocks);
406
393
  if (n.size === 0) return [];
407
394
  let r = /* @__PURE__ */ new Set(), i = [];
408
395
  for (let e of n) {
@@ -414,76 +401,75 @@ function Zn(e, t) {
414
401
  return i;
415
402
  });
416
403
  }
417
- function Qn(e) {
404
+ function nr(e) {
418
405
  let t = /* @__PURE__ */ new Set();
419
- return $n(e, t), t;
406
+ return rr(e, t), t;
420
407
  }
421
- function $n(e, t) {
422
- for (let n of e) if (ze(n)) t.add(n.customType);
408
+ function rr(e, t) {
409
+ for (let n of e) if (Fe(n)) t.add(n.customType);
423
410
  else if (n.type === "section") {
424
411
  let e = n.children;
425
412
  if (!e) continue;
426
- for (let n of e) $n(n, t);
427
- } else Ne(n) && $n(n.children, t);
413
+ for (let n of e) rr(n, t);
414
+ } else Ge(n) && rr(n.children, t);
428
415
  }
429
- //#endregion
430
- //#region src/utils/registerBuiltInBlocks.ts
431
- var er = [
416
+ // src/utils/registerBuiltInBlocks.ts
417
+ var ir = [
432
418
  {
433
419
  type: "section",
434
- createBlock: Ue
420
+ createBlock: ge
435
421
  },
436
422
  {
437
423
  type: "title",
438
- createBlock: ye
424
+ createBlock: U
439
425
  },
440
426
  {
441
427
  type: "paragraph",
442
- createBlock: pe
428
+ createBlock: re
443
429
  },
444
430
  {
445
431
  type: "image",
446
- createBlock: ie
432
+ createBlock: R
447
433
  },
448
434
  {
449
435
  type: "button",
450
- createBlock: Ae
436
+ createBlock: V
451
437
  },
452
438
  {
453
439
  type: "divider",
454
- createBlock: ue
440
+ createBlock: me
455
441
  },
456
442
  {
457
443
  type: "video",
458
- createBlock: ne
444
+ createBlock: be
459
445
  },
460
446
  {
461
447
  type: "social",
462
- createBlock: _e
448
+ createBlock: te
463
449
  },
464
450
  {
465
451
  type: "menu",
466
- createBlock: oe
452
+ createBlock: ve
467
453
  },
468
454
  {
469
455
  type: "table",
470
- createBlock: he
456
+ createBlock: Le
471
457
  },
472
458
  {
473
459
  type: "spacer",
474
- createBlock: re
460
+ createBlock: ae
475
461
  },
476
462
  {
477
463
  type: "html",
478
- createBlock: ee
464
+ createBlock: Ke
479
465
  },
480
466
  {
481
467
  type: "countdown",
482
- createBlock: se
468
+ createBlock: ie
483
469
  }
484
470
  ];
485
- function tr(e, t) {
486
- for (let n of er) {
471
+ function ar(e, t) {
472
+ for (let n of ir) {
487
473
  let r = t[n.type];
488
474
  r && e.registerBuiltIn(n.type, {
489
475
  component: r,
@@ -491,99 +477,94 @@ function tr(e, t) {
491
477
  });
492
478
  }
493
479
  }
494
- //#endregion
495
- //#region src/utils/resolveHtmlBlockPreview.ts
496
- function nr(e) {
480
+ // src/utils/resolveHtmlBlockPreview.ts
481
+ function or(e) {
497
482
  return typeof e == "boolean" ? e : e?.enabled ?? !1;
498
483
  }
499
- //#endregion
500
- //#region src/utils/collectOffPaletteDefaults.ts
501
- function rr(e) {
484
+ // src/utils/collectOffPaletteDefaults.ts
485
+ function sr(e) {
502
486
  return typeof e == "object" && !!e && !Array.isArray(e);
503
487
  }
504
- function ir(e, t, n) {
505
- let r = new Set(e.map((e) => cn(e))), i = [], a = (e, t) => {
506
- 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}`) : rr(o) && a(o, `${t}.${n}`);
488
+ function cr(e, t, n) {
489
+ let r = new Set(e.map((e) => dn(e))), i = [], a = (e, t) => {
490
+ for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(dn(o)) && i.push(`${t}.${n}: ${o}`) : sr(o) && a(o, `${t}.${n}`);
507
491
  }, o = t;
508
- for (let [e, t] of Object.entries(be)) {
492
+ for (let [e, t] of Object.entries(He)) {
509
493
  let n = o?.[e];
510
494
  a({
511
495
  ...t,
512
- ...rr(n) ? n : {}
496
+ ...sr(n) ? n : {}
513
497
  }, e);
514
498
  }
515
499
  return a({
516
- ...xe,
500
+ ...Ne,
517
501
  ...n ?? {}
518
502
  }, "template"), i;
519
503
  }
520
- //#endregion
521
- //#region src/utils/localizedBlockDefaults.ts
522
- function ar(e) {
504
+ // src/utils/localizedBlockDefaults.ts
505
+ function lr(e) {
523
506
  return {
524
507
  title: { content: `<p>${e.blockDefaults.title}</p>` },
525
508
  paragraph: { content: `<p>${e.blockDefaults.paragraph}</p>` },
526
509
  button: { text: e.blockDefaults.button }
527
510
  };
528
511
  }
529
- //#endregion
530
- //#region src/i18n/index.ts
531
- var or = /* #__PURE__ */ Object.assign({
532
- "./locales/ca.ts": () => import("./ca-C7mTzW1r.js"),
533
- "./locales/de.ts": () => import("./de-DNuYQTmS.js"),
534
- "./locales/en.ts": () => import("./en-CW71OK66.js"),
535
- "./locales/es.ts": () => import("./es-DdK7zQfi.js"),
536
- "./locales/fr.ts": () => import("./fr-Dz5Bgb7-.js"),
537
- "./locales/ja.ts": () => import("./ja-Di-zJiT8.js"),
538
- "./locales/nl.ts": () => import("./nl-CvVuHYFL.js"),
539
- "./locales/pt-BR.ts": () => import("./pt-BR-ZhO4vgyq.js")
540
- }), sr = /* #__PURE__ */ Object.assign({
541
- "./locales/cloud/de.ts": () => import("./de-DBOTcDj2.js"),
542
- "./locales/cloud/en.ts": () => import("./en-CDhWRrF_.js"),
543
- "./locales/cloud/pt-BR.ts": () => import("./pt-BR-CHM-ZKvE.js")
512
+ // src/i18n/index.ts
513
+ var ur = /* #__PURE__ */ Object.assign({
514
+ "./locales/ca.ts": () => import("./ca-CD-Kt1qz.js"),
515
+ "./locales/de.ts": () => import("./de-CeFJ6wbM.js"),
516
+ "./locales/en.ts": () => import("./en-D14i5nFh.js"),
517
+ "./locales/es.ts": () => import("./es-zDacbMhs.js"),
518
+ "./locales/fr.ts": () => import("./fr-CSgYtjOd.js"),
519
+ "./locales/ja.ts": () => import("./ja-B7H3ID8O.js"),
520
+ "./locales/nl.ts": () => import("./nl-176ySmc5.js"),
521
+ "./locales/pt-BR.ts": () => import("./pt-BR-dDlTwX18.js")
522
+ }), dr = /* #__PURE__ */ Object.assign({
523
+ "./locales/cloud/de.ts": () => import("./de-6M4JoHoD.js"),
524
+ "./locales/cloud/en.ts": () => import("./en-FzUuJ8HW.js"),
525
+ "./locales/cloud/pt-BR.ts": () => import("./pt-BR-Bp92Fc6J.js")
544
526
  });
545
- function cr(e) {
527
+ function fr(e) {
546
528
  return Object.keys(e).map((e) => e.match(/\/([^/]+)\.ts$/)?.[1]).filter((e) => !!e);
547
529
  }
548
- var lr = cr(or), ur = cr(sr);
549
- function dr(e) {
530
+ var pr = fr(ur), mr = fr(dr);
531
+ function hr(e) {
550
532
  return e.trim().replace(/_/g, "-").toLowerCase();
551
533
  }
552
- function fr(e, t) {
553
- let n = dr(e);
554
- return t.find((e) => dr(e) === n);
534
+ function gr(e, t) {
535
+ let n = hr(e);
536
+ return t.find((e) => hr(e) === n);
555
537
  }
556
- function pr(e) {
557
- return dr(e).split("-")[0];
538
+ function _r(e) {
539
+ return hr(e).split("-")[0];
558
540
  }
559
- function mr(e, t) {
560
- return fr(e, t) ?? fr(pr(e), t);
541
+ function vr(e, t) {
542
+ return gr(e, t) ?? gr(_r(e), t);
561
543
  }
562
- function hr(e, t) {
563
- return mr(e, t) ?? "en";
544
+ function yr(e, t) {
545
+ return vr(e, t) ?? "en";
564
546
  }
565
- async function gr(e) {
566
- let t = or[`./locales/${hr(e, lr)}.ts`];
547
+ async function br(e) {
548
+ let t = ur[`./locales/${yr(e, pr)}.ts`];
567
549
  return (await t()).default;
568
550
  }
569
- async function _r(e) {
570
- let t = sr[`./locales/cloud/${hr(e, ur)}.ts`];
551
+ async function xr(e) {
552
+ let t = dr[`./locales/cloud/${yr(e, mr)}.ts`];
571
553
  return (await t()).default;
572
554
  }
573
- function vr(e) {
574
- return mr(e, lr) !== void 0;
555
+ function Sr(e) {
556
+ return vr(e, pr) !== void 0;
575
557
  }
576
- function yr(e) {
577
- return mr(e, ur) !== void 0;
558
+ function Cr(e) {
559
+ return vr(e, mr) !== void 0;
578
560
  }
579
- function br() {
580
- return [...lr];
561
+ function wr() {
562
+ return [...pr];
581
563
  }
582
- function xr() {
583
- return [...ur];
564
+ function Tr() {
565
+ return [...mr];
584
566
  }
585
- //#endregion
586
- //#region src/i18n/contentDefaults.ts
567
+ // src/i18n/contentDefaults.ts
587
568
  var $ = {
588
569
  en: {
589
570
  video: "Video",
@@ -649,16 +630,16 @@ var $ = {
649
630
  seconds: "秒",
650
631
  expired: "このオファーは終了しました"
651
632
  }
652
- }, Sr = new Map(Object.keys($).map((e) => [e.toLowerCase(), e]));
653
- function Cr(e) {
633
+ }, Er = new Map(Object.keys($).map((e) => [e.toLowerCase(), e]));
634
+ function Dr(e) {
654
635
  if (!e) return $.en;
655
- let t = e.trim().replace(/_/g, "-").toLowerCase(), n = Sr.get(t);
636
+ let t = e.trim().replace(/_/g, "-").toLowerCase(), n = Er.get(t);
656
637
  if (n) return $[n];
657
- let r = Sr.get(pr(t));
638
+ let r = Er.get(_r(t));
658
639
  return r ? $[r] : $.en;
659
640
  }
660
- function wr(e) {
661
- let t = Cr(e);
641
+ function Or(e) {
642
+ let t = Dr(e);
662
643
  return {
663
644
  video: { alt: t.video },
664
645
  countdown: {
@@ -670,11 +651,10 @@ function wr(e) {
670
651
  }
671
652
  };
672
653
  }
673
- //#endregion
674
- //#region src/utils/collectColorFieldIssues.ts
675
- function Tr(e, t) {
654
+ // src/utils/collectColorFieldIssues.ts
655
+ function kr(e, t) {
676
656
  let n = [], r = (r, i) => {
677
- let a = $e(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
657
+ let a = nt(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
678
658
  if (a.invalidPresets.length > 0 && n.push({
679
659
  id: s("invalid-presets"),
680
660
  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." : "")
@@ -685,8 +665,8 @@ function Tr(e, t) {
685
665
  id: s("allow-custom-ignored"),
686
666
  message: `${o}: allowCustom: true is ignored because colors.allowCustom is false — a field can narrow the editor-wide palette, never unlock it.`
687
667
  }), !a.allowCustom && a.presets.length > 0) {
688
- let e = r.default ?? "", t = new Set(a.presets.map((e) => cn(e)));
689
- e !== "" && !t.has(cn(e)) && n.push({
668
+ let e = r.default ?? "", t = new Set(a.presets.map((e) => dn(e)));
669
+ e !== "" && !t.has(dn(e)) && n.push({
690
670
  id: s("off-palette-default"),
691
671
  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.`
692
672
  });
@@ -696,9 +676,8 @@ function Tr(e, t) {
696
676
  else if (t.type === "repeatable") for (let e of t.fields) e.type === "color" && r(e, `${t.key}[].${e.key}`);
697
677
  return n;
698
678
  }
699
- //#endregion
700
- //#region src/utils/keyboardShortcuts.ts
701
- function Er(e) {
679
+ // src/utils/keyboardShortcuts.ts
680
+ function Ar(e) {
702
681
  for (let t of e.composedPath()) {
703
682
  if (!(t instanceof HTMLElement)) continue;
704
683
  if (t.isContentEditable) return !0;
@@ -707,14 +686,14 @@ function Er(e) {
707
686
  }
708
687
  return !1;
709
688
  }
710
- function Dr(e, t) {
689
+ function jr(e, t) {
711
690
  let n = e.metaKey || e.ctrlKey;
712
691
  if (n && e.key.toLowerCase() === "s") e.preventDefault(), t.onSave?.();
713
692
  else if (n && e.key.toLowerCase() === "z") {
714
- if (Er(e)) return;
693
+ if (Ar(e)) return;
715
694
  e.preventDefault(), e.shiftKey ? t.history.redo() : t.history.undo();
716
695
  } else {
717
- if (t.isPicking?.() && !Er(e)) {
696
+ if (t.isPicking?.() && !Ar(e)) {
718
697
  if (e.key === "Escape") {
719
698
  e.preventDefault(), t.onCancelPick?.();
720
699
  return;
@@ -728,105 +707,103 @@ function Dr(e, t) {
728
707
  return;
729
708
  }
730
709
  }
731
- e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Er(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
710
+ e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Ar(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
732
711
  }
733
712
  }
734
- //#endregion
735
- //#region src/utils/blockComponentResolver.ts
736
- function Or(e, t) {
713
+ // src/utils/blockComponentResolver.ts
714
+ function Mr(e, t) {
737
715
  let n = { fontFamily: t(e.fontFamily) };
738
716
  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;
739
717
  }
740
- function kr(e, t, n) {
718
+ function Nr(e, t, n) {
741
719
  if (t) {
742
720
  let n = t.getComponent(e);
743
721
  if (n) return n;
744
722
  }
745
723
  return n[e.type] ?? null;
746
724
  }
747
- var Ar = "--tpl-block-bg-layer", jr = "tpl-has-bg-image";
748
- function Mr(e, t) {
725
+ var Pr = "--tpl-block-bg-layer", Fr = "tpl-has-bg-image";
726
+ function Ir(e, t) {
749
727
  if (t === null) return {};
750
- let n = te(e);
728
+ let n = z(e);
751
729
  if (n === null) return {};
752
- let r = t?.trim(), i = r ? de(r) : n.url;
730
+ let r = t?.trim(), i = r ? qe(r) : n.url;
753
731
  return {
754
732
  backgroundImage: `url("${i}")`,
755
733
  backgroundSize: n.size,
756
734
  backgroundPosition: n.position,
757
735
  backgroundRepeat: n.repeat,
758
- [Ar]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
736
+ [Pr]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
759
737
  };
760
738
  }
761
- function Nr(e) {
762
- return e && Ar in e ? jr : void 0;
739
+ function Lr(e) {
740
+ return e && Pr in e ? Fr : void 0;
763
741
  }
764
- var Pr = {
742
+ var Rr = {
765
743
  top: "flex-start",
766
744
  middle: "center",
767
745
  bottom: "flex-end"
768
746
  };
769
- function Fr(e, t) {
770
- let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${Ir(t, e.aspectRatio)}px` } : { aspectRatio: `1 / ${e.aspectRatio ?? 1}` };
747
+ function zr(e, t) {
748
+ let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${Br(t, e.aspectRatio)}px` } : { aspectRatio: `1 / ${e.aspectRatio ?? 1}` };
771
749
  return {
772
750
  display: "flex",
773
751
  flexDirection: "column",
774
- justifyContent: Pr[e.verticalAlign],
752
+ justifyContent: Rr[e.verticalAlign],
775
753
  boxSizing: "border-box",
776
754
  ...n
777
755
  };
778
756
  }
779
- function Ir(e, t) {
757
+ function Br(e, t) {
780
758
  return Math.max(1, Math.round(Math.max(1, Math.round(e)) * t));
781
759
  }
782
- function Lr(e, t = {}) {
760
+ function Vr(e, t = {}) {
783
761
  if (e.type === "wrapper") return {};
784
762
  let { padding: n, backgroundColor: r } = e.styles, i = {
785
763
  padding: `${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`,
786
764
  backgroundColor: r || "transparent"
787
765
  };
788
- if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? We.paragraphGap : We.paragraphGap}px`), e.type === "section") {
789
- let n = ge(e.borderRadius);
766
+ if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? ye.paragraphGap : ye.paragraphGap}px`), e.type === "section") {
767
+ let n = W(e.borderRadius);
790
768
  n !== null && (i.borderRadius = n);
791
- let r = z(e);
792
- r?.applied && e.backgroundImage ? (Object.assign(i, Fr(r, t.heroBoxWidth)), Object.assign(i, Mr({
769
+ let r = H(e);
770
+ r?.applied && e.backgroundImage ? (Object.assign(i, zr(r, t.heroBoxWidth)), Object.assign(i, Ir({
793
771
  ...e.backgroundImage,
794
772
  size: "cover",
795
773
  repeat: !1
796
- }, t.backgroundImageUrl))) : (Object.assign(i, zr(e.border)), Object.assign(i, Mr(e.backgroundImage, t.backgroundImageUrl)));
774
+ }, t.backgroundImageUrl))) : (Object.assign(i, Ur(e.border)), Object.assign(i, Ir(e.backgroundImage, t.backgroundImageUrl)));
797
775
  }
798
776
  return i;
799
777
  }
800
- function Rr(e, t, n, r) {
801
- return e.type === "section" ? Lr(e, {
802
- backgroundImageUrl: Qe(t, e.backgroundImage, n),
778
+ function Hr(e, t, n, r) {
779
+ return e.type === "section" ? Vr(e, {
780
+ backgroundImageUrl: tt(t, e.backgroundImage, n),
803
781
  heroBoxWidth: r
804
- }) : Lr(e);
782
+ }) : Vr(e);
805
783
  }
806
- function zr(e) {
784
+ function Ur(e) {
807
785
  let t = {};
808
- for (let [n, r] of Object.entries(W(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
786
+ for (let [n, r] of Object.entries(Re(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
809
787
  return t;
810
788
  }
811
- function Br(e, t = {}) {
789
+ function Wr(e, t = {}) {
812
790
  if (e.type !== "section" || !e.wrapper) return null;
813
791
  let n = e.wrapper, r = {};
814
792
  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`);
815
- let i = ge(n.borderRadius);
816
- return i !== null && (r.borderRadius = i), Object.assign(r, Mr(n.backgroundImage, t.backgroundImageUrl)), r;
793
+ let i = W(n.borderRadius);
794
+ return i !== null && (r.borderRadius = i), Object.assign(r, Ir(n.backgroundImage, t.backgroundImageUrl)), r;
817
795
  }
818
- function Vr(e, t = {}) {
796
+ function Gr(e, t = {}) {
819
797
  if (e.type !== "wrapper") return null;
820
798
  let n = {};
821
799
  if (e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding) {
822
800
  let t = e.styles.padding;
823
801
  n.padding = `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`;
824
802
  }
825
- return e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, Mr(e.backgroundImage, t.backgroundImageUrl)), n;
803
+ return e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, Ir(e.backgroundImage, t.backgroundImageUrl)), n;
826
804
  }
827
- //#endregion
828
- //#region src/utils/mergeTagLabelSegments.ts
829
- function Hr(e, t, n, r = !1) {
805
+ // src/utils/mergeTagLabelSegments.ts
806
+ function Kr(e, t, n, r = !1) {
830
807
  if (!e) return [];
831
808
  let i = RegExp(`(${n.value.source}|${n.logic.source})`, "g"), a = [], o = 0, s;
832
809
  for (; (s = i.exec(e)) !== null;) {
@@ -835,18 +812,18 @@ function Hr(e, t, n, r = !1) {
835
812
  value: e.slice(o, s.index)
836
813
  });
837
814
  let i = s[0];
838
- if (Te(i, n)) {
839
- let e = r ? Fe(i, t) : void 0;
815
+ if (we(i, n)) {
816
+ let e = r ? Pe(i, t) : void 0;
840
817
  a.push(e === void 0 ? {
841
818
  type: "tag",
842
- value: Se(i, t)
819
+ value: xe(i, t)
843
820
  } : {
844
821
  type: "text",
845
822
  value: e
846
823
  });
847
- } else Be(i, n) ? a.push({
824
+ } else Ue(i, n) ? a.push({
848
825
  type: "tag",
849
- value: ke(i, n)
826
+ value: Oe(i, n)
850
827
  }) : a.push({
851
828
  type: "text",
852
829
  value: i
@@ -858,29 +835,28 @@ function Hr(e, t, n, r = !1) {
858
835
  value: e.slice(o)
859
836
  }), a;
860
837
  }
861
- //#endregion
862
- //#region src/components/MergeTagPreviewText.vue
863
- var Ur = n({
838
+ // src/components/MergeTagPreviewText.vue
839
+ var qr = n({
864
840
  name: "MergeTagPreviewText",
865
841
  props: { text: {
866
842
  type: String,
867
843
  required: !0
868
844
  } },
869
845
  setup(e) {
870
- let t = r(q, xt), n = r(kt, Pe.liquid), i = r(At, null), a = k(() => Hr(e.text, t.value, n, i?.value ?? !1));
846
+ let t = r(K, Tt), n = r(Nt, Me.liquid), i = r(q, null), a = k(() => Kr(e.text, t.value, n, i?.value ?? !1));
871
847
  return () => a.value.map((e, t) => e.type === "tag" ? d("span", {
872
848
  key: t,
873
849
  class: "tpl-merge-tag-label"
874
850
  }, e.value) : e.value);
875
851
  }
876
- }), Wr = ["href"], Gr = /* @__PURE__ */ n({
852
+ }), Jr = ["href"], Yr = /* @__PURE__ */ n({
877
853
  __name: "ButtonBlock",
878
854
  props: {
879
855
  block: {},
880
856
  viewport: {}
881
857
  },
882
858
  setup(e) {
883
- let t = e, n = K(Y, "ButtonBlock"), r = k(() => {
859
+ let t = e, n = G(Y, "ButtonBlock"), r = k(() => {
884
860
  let e = {
885
861
  display: "inline-block",
886
862
  padding: `${t.block.buttonPadding.top}px ${t.block.buttonPadding.right}px ${t.block.buttonPadding.bottom}px ${t.block.buttonPadding.left}px`,
@@ -889,56 +865,56 @@ var Ur = n({
889
865
  fontSize: `${t.block.fontSize}px`,
890
866
  fontWeight: "bold",
891
867
  textDecoration: "none",
892
- borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : ge(t.block.borderRadius) ?? "0px",
868
+ borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : W(t.block.borderRadius) ?? "0px",
893
869
  textAlign: "center"
894
870
  };
895
- return Object.assign(e, zr(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;
871
+ return Object.assign(e, Ur(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;
896
872
  }), i = k(() => ({ textAlign: t.block.align ?? "center" }));
897
873
  return (t, n) => (l(), g("div", { style: F(i.value) }, [D("a", {
898
874
  href: e.block.url || "#",
899
875
  style: F(r.value),
900
876
  class: "tpl:cursor-default",
901
877
  onClick: n[0] ||= T(() => {}, ["prevent"])
902
- }, [I(Ur, { text: e.block.text }, null, 8, ["text"])], 12, Wr)], 4));
878
+ }, [I(qr, { text: e.block.text }, null, 8, ["text"])], 12, Jr)], 4));
903
879
  }
904
- }), Kr = ["innerHTML"], qr = [
880
+ }), Xr = ["innerHTML"], Zr = [
905
881
  "src",
906
882
  "width",
907
883
  "height"
908
- ], Jr = /* @__PURE__ */ n({
884
+ ], Qr = /* @__PURE__ */ n({
909
885
  __name: "CustomBlockIcon",
910
886
  props: {
911
887
  icon: {},
912
888
  size: {}
913
889
  },
914
890
  setup(e) {
915
- let t = e, n = k(() => t.size ?? 20), r = k(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), i = k(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/")));
916
- return (t, a) => r.value ? (l(), g("span", {
891
+ let t = e, n = k(() => t.size ?? 20), r = k(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), i = k(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/"))), a = k(() => r.value ? gn(t.icon ?? "") : "");
892
+ return (t, o) => r.value ? (l(), g("span", {
917
893
  key: 0,
918
894
  class: "tpl:inline-flex tpl:items-center tpl:justify-center",
919
895
  style: F({
920
896
  width: `${n.value}px`,
921
897
  height: `${n.value}px`
922
898
  }),
923
- innerHTML: e.icon
924
- }, null, 12, Kr)) : i.value ? (l(), g("img", {
899
+ innerHTML: a.value
900
+ }, null, 12, Xr)) : i.value ? (l(), g("img", {
925
901
  key: 1,
926
902
  src: e.icon,
927
903
  width: n.value,
928
904
  height: n.value,
929
905
  class: "tpl:inline-block",
930
906
  alt: ""
931
- }, null, 8, qr)) : (l(), S(O(vn), {
907
+ }, null, 8, Zr)) : (l(), S(O(Cn), {
932
908
  key: 2,
933
909
  size: n.value,
934
910
  "stroke-width": 1.5
935
911
  }, null, 8, ["size"]));
936
912
  }
937
- }), Yr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
938
- function Xr(e, t) {
939
- let n = jn(), r = null, i = null, a = null;
913
+ }), $r = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
914
+ function ei(e, t) {
915
+ let n = In(), r = null, i = null, a = null;
940
916
  function o() {
941
- return e.value ? Array.from(e.value.querySelectorAll(Yr)).filter((e) => e.offsetParent !== null) : [];
917
+ return e.value ? Array.from(e.value.querySelectorAll($r)).filter((e) => e.offsetParent !== null) : [];
942
918
  }
943
919
  function s(e) {
944
920
  if (e.key !== "Tab") return;
@@ -953,7 +929,7 @@ function Xr(e, t) {
953
929
  a = null;
954
930
  let t = o();
955
931
  t.length > 0 && (e.value?.querySelector("[autofocus], input:not([disabled])") ?? t[0]).focus();
956
- }), i = G(e, "keydown", s);
932
+ }), i = _t(e, "keydown", s);
957
933
  }
958
934
  function l(e = {}) {
959
935
  let t = e.restoreFocus !== !1;
@@ -966,15 +942,14 @@ function Xr(e, t) {
966
942
  u(), l();
967
943
  });
968
944
  }
969
- //#endregion
970
- //#region src/composables/useEmoji.ts
971
- function Zr() {
972
- let [e, t] = ft(!1), n = N([]), r = !1;
945
+ // src/composables/useEmoji.ts
946
+ function ti() {
947
+ let [e, t] = ht(!1), n = N([]), r = !1;
973
948
  h(() => {
974
949
  r = !0;
975
950
  }), p(e, async (e) => {
976
951
  if (e && n.value.length === 0) {
977
- let { emojiCategories: e } = await import("./emojiData-6m0DBh7O.js");
952
+ let { emojiCategories: e } = await import("./emojiData-CBNuCfum.js");
978
953
  if (r) return;
979
954
  n.value = e;
980
955
  }
@@ -992,9 +967,8 @@ function Zr() {
992
967
  close: a
993
968
  };
994
969
  }
995
- //#endregion
996
- //#region src/composables/useFonts.ts
997
- var Qr = [
970
+ // src/composables/useFonts.ts
971
+ var ni = [
998
972
  {
999
973
  value: "Arial",
1000
974
  label: "Arial"
@@ -1023,19 +997,19 @@ var Qr = [
1023
997
  value: "Courier New",
1024
998
  label: "Courier New"
1025
999
  }
1026
- ], $r = "Arial, sans-serif";
1027
- function ei(e) {
1028
- if (e === void 0 || e === !0) return [...Qr];
1000
+ ], ri = "Arial, sans-serif";
1001
+ function ii(e) {
1002
+ if (e === void 0 || e === !0) return [...ni];
1029
1003
  if (e === !1) return [];
1030
1004
  let t = [], n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
1031
1005
  for (let i of e) {
1032
- let e = i.toLowerCase(), a = Qr.find((t) => t.value.toLowerCase() === e);
1033
- 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: ${Qr.map((e) => e.value).join(", ")}.`));
1006
+ let e = i.toLowerCase(), a = ni.find((t) => t.value.toLowerCase() === e);
1007
+ 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: ${ni.map((e) => e.value).join(", ")}.`));
1034
1008
  }
1035
1009
  return t;
1036
1010
  }
1037
- function ti(t) {
1038
- let n = e(t?.customFonts ?? []), r = e(!1), i = ei(t?.builtIns), a = k(() => t?.defaultFallback ?? $r), o = k(() => {
1011
+ function ai(t) {
1012
+ let n = e(t?.customFonts ?? []), r = e(!1), i = ii(t?.builtIns), a = k(() => t?.defaultFallback ?? ri), o = k(() => {
1039
1013
  let e = [...i], t = n.value.map((e) => ({
1040
1014
  value: e.name,
1041
1015
  label: e.name,
@@ -1046,18 +1020,18 @@ function ti(t) {
1046
1020
  function s(e) {
1047
1021
  return o.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
1048
1022
  }
1049
- let c = t?.defaultFont ?? $r.split(",")[0].trim();
1023
+ let c = t?.defaultFont ?? ri.split(",")[0].trim();
1050
1024
  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.`);
1051
1025
  function l() {
1052
1026
  if (t?.defaultFont && s(t.defaultFont)) {
1053
1027
  let e = o.value.find((e) => e.label.toLowerCase() === t.defaultFont.toLowerCase() || e.value.toLowerCase().startsWith(t.defaultFont.toLowerCase()));
1054
1028
  if (e) return e.value;
1055
1029
  }
1056
- return $r;
1030
+ return ri;
1057
1031
  }
1058
1032
  let u = k(() => l());
1059
1033
  function d(e) {
1060
- return He(e, {
1034
+ return We(e, {
1061
1035
  customFonts: n.value,
1062
1036
  defaultFallback: a.value
1063
1037
  });
@@ -1099,14 +1073,13 @@ function ti(t) {
1099
1073
  getDefaultFont: l
1100
1074
  };
1101
1075
  }
1102
- //#endregion
1103
- //#region src/utils/mergeTagNodeSpec.ts
1104
- function ni(e, t, n) {
1105
- return Be(e, n) ? {
1076
+ // src/utils/mergeTagNodeSpec.ts
1077
+ function oi(e, t, n) {
1078
+ return Ue(e, n) ? {
1106
1079
  type: "logicMergeTagNode",
1107
1080
  attrs: {
1108
1081
  value: e,
1109
- keyword: ke(e, n)
1082
+ keyword: Oe(e, n)
1110
1083
  }
1111
1084
  } : {
1112
1085
  type: "mergeTagNode",
@@ -1116,91 +1089,78 @@ function ni(e, t, n) {
1116
1089
  }
1117
1090
  };
1118
1091
  }
1119
- //#endregion
1120
- //#region src/utils/insertLogicTag.ts
1121
- function ri(e) {
1092
+ // src/utils/insertLogicTag.ts
1093
+ function si(e) {
1122
1094
  return "before" in e && "after" in e;
1123
1095
  }
1124
- function ii(e, t, n) {
1125
- if (!ri(t)) {
1126
- e.chain().focus().insertContent(ni(t.value, t.label, n)).run();
1096
+ function ci(e, t, n) {
1097
+ if (!si(t)) {
1098
+ e.chain().focus().insertContent(oi(t.value, t.label, n)).run();
1127
1099
  return;
1128
1100
  }
1129
- let r = ni(t.before, t.label, n), i = ni(t.after, t.label, n), { from: a, to: o } = e.state.selection;
1101
+ let r = oi(t.before, t.label, n), i = oi(t.after, t.label, n), { from: a, to: o } = e.state.selection;
1130
1102
  a === o ? e.chain().focus().insertContentAt(a, [r, i]).setTextSelection(a + 1).run() : e.chain().focus().insertContentAt(o, i).insertContentAt(a, r).run();
1131
1103
  }
1132
- //#endregion
1133
- //#region src/utils/linkColorExtension.ts
1134
- function ai(e) {
1104
+ // src/utils/linkColorExtension.ts
1105
+ function li(e) {
1135
1106
  if (!e) return null;
1136
1107
  let t = e.trim();
1137
1108
  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;
1138
1109
  }
1139
- function oi(e) {
1110
+ function ui(e) {
1140
1111
  return e.extend({ addAttributes() {
1141
1112
  return {
1142
1113
  ...this.parent?.(),
1143
1114
  color: {
1144
1115
  default: null,
1145
- parseHTML: (e) => ai(sn(e.style.color)),
1116
+ parseHTML: (e) => li(un(e.style.color)),
1146
1117
  renderHTML: (e) => {
1147
- let t = ai(e.color);
1118
+ let t = li(e.color);
1148
1119
  return t ? { style: `color: ${t}` } : {};
1149
1120
  }
1150
1121
  }
1151
1122
  };
1152
1123
  } });
1153
1124
  }
1154
- //#endregion
1155
- //#region src/composables/useRichTextLinkDialog.ts
1156
- function si(t, n = Pe.liquid) {
1125
+ // src/composables/useRichTextLinkDialog.ts
1126
+ function di(t, n = Me.liquid) {
1157
1127
  let r = e(!1), i = e(""), a = e(""), o = e(null);
1158
- Xr(o, r);
1128
+ ei(o, r);
1159
1129
  function s() {
1160
1130
  let e = t.value?.getAttributes("link") ?? {};
1161
1131
  i.value = e.href || "", a.value = e.color || "", r.value = !0;
1162
1132
  }
1163
1133
  function c() {
1164
1134
  if (i.value) {
1165
- let e = f(i.value);
1135
+ let e = d(i.value);
1166
1136
  if (e !== null) {
1167
- let n = ai(a.value), r = t.value?.chain().focus().extendMarkRange("link").setLink({ href: e }).updateAttributes("link", { color: n });
1137
+ let n = li(a.value), r = t.value?.chain().focus().extendMarkRange("link").setLink({ href: e }).updateAttributes("link", { color: n });
1168
1138
  n && typeof t.value?.commands.unsetColor == "function" && r?.unsetColor(), r?.run();
1169
1139
  }
1170
1140
  }
1171
- m();
1172
- }
1173
- let l = /* @__PURE__ */ new Set([
1174
- "http",
1175
- "https",
1176
- "mailto",
1177
- "tel",
1178
- "ftp",
1179
- "ftps",
1180
- "sms",
1181
- "xmpp",
1182
- "cid"
1183
- ]), u = /^(?:\/|\.{1,2}\/|\?)/;
1184
- function d(e) {
1141
+ p();
1142
+ }
1143
+ let l = /^(?:\/|\.{1,2}\/|\?)/;
1144
+ function u(e) {
1185
1145
  return RegExp(`^(?:${n.value.source})`).test(e);
1186
1146
  }
1187
- function f(e) {
1147
+ function d(e) {
1188
1148
  let t = e.trim();
1189
1149
  if (!t) return null;
1190
1150
  if (t.startsWith("#")) return t;
1191
1151
  if (t.startsWith("//")) return `https:${t}`;
1192
- if (u.test(t)) return t;
1193
- let n = /^([a-z][a-z0-9+.-]*):/i.exec(t);
1194
- return n ? l.has(n[1].toLowerCase()) ? t : null : d(t) ? t : `https://${t}`;
1152
+ if (l.test(t)) return t;
1153
+ let n = B(t);
1154
+ return n ? he.some((e) => e === n) ? t : null : u(t) ? t : `https://${t}`;
1195
1155
  }
1196
- function p() {
1197
- t.value?.chain().focus().extendMarkRange("link").unsetLink().run(), m();
1156
+ function f() {
1157
+ t.value?.chain().focus().extendMarkRange("link").unsetLink().run(), p();
1198
1158
  }
1199
- function m() {
1159
+ function p() {
1200
1160
  r.value = !1, i.value = "", a.value = "";
1201
1161
  }
1202
- function h(e) {
1203
- e.key === "Enter" ? (e.preventDefault(), c()) : e.key === "Escape" && m();
1162
+ function m(e) {
1163
+ e.key === "Enter" ? (e.preventDefault(), c()) : e.key === "Escape" && p();
1204
1164
  }
1205
1165
  return {
1206
1166
  showLinkDialog: r,
@@ -1209,20 +1169,19 @@ function si(t, n = Pe.liquid) {
1209
1169
  linkDialogRef: o,
1210
1170
  openLinkDialog: s,
1211
1171
  insertLink: c,
1212
- removeLink: p,
1213
- closeLinkDialog: m,
1214
- handleLinkKeydown: h
1172
+ removeLink: f,
1173
+ closeLinkDialog: p,
1174
+ handleLinkKeydown: m
1215
1175
  };
1216
1176
  }
1217
- //#endregion
1218
- //#region src/composables/useRichTextEditor.ts
1219
- function ci(t) {
1220
- let n = r(J, null), { mergeTags: i, canRequestMergeTag: a, isRequesting: s, requestMergeTag: c, syntax: l, autocomplete: u } = Mn(), { canInsertLogicTag: d, isRequesting: f, requestLogicTag: m } = Nn(), h = r(Lt, null), g = (o(h) ? h.value : h)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", _ = we(l), v = N(null), y = () => ae(n?.content?.value?.settings ?? { locale: "en" });
1177
+ // src/composables/useRichTextEditor.ts
1178
+ function fi(t) {
1179
+ let n = r(J, null), { mergeTags: i, canRequestMergeTag: a, isRequesting: s, requestMergeTag: c, syntax: l, autocomplete: u } = Ln(), { canInsertLogicTag: d, isRequesting: f, requestLogicTag: m } = Rn(), h = r(Bt, null), g = (o(h) ? h.value : h)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", _ = Ce(l), v = N(null), y = () => ee(n?.content?.value?.settings ?? { locale: "en" });
1221
1180
  p(y, (e) => {
1222
1181
  let t = v.value?.view.dom;
1223
1182
  t && t.setAttribute("dir", e);
1224
1183
  });
1225
- let { showLinkDialog: b, linkUrl: x, linkColor: S, linkDialogRef: C, openLinkDialog: T, insertLink: E, removeLink: D, closeLinkDialog: O, handleLinkKeydown: k } = si(v, l), { start: A, stop: j } = ut(() => v.value?.commands.focus("end"), 0, { immediate: !1 }), M = N(null), P = e(!0), F = e(null), I = !1, L = null;
1184
+ let { showLinkDialog: b, linkUrl: x, linkColor: S, linkDialogRef: C, openLinkDialog: T, insertLink: E, removeLink: D, closeLinkDialog: O, handleLinkKeydown: k } = di(v, l), { start: A, stop: j } = pt(() => v.value?.commands.focus("end"), 0, { immediate: !1 }), M = N(null), P = e(!0), F = e(null), I = !1, L = null;
1226
1185
  async function R() {
1227
1186
  F.value = null, P.value = !0;
1228
1187
  try {
@@ -1271,7 +1230,7 @@ function ci(t) {
1271
1230
  let i = n.some((e) => e instanceof HTMLElement && e.classList.contains("tpl-color-popover"));
1272
1231
  r.closest(".tpl-text-editor-wrapper") || r.closest(".tpl-text-toolbar") || r.closest(".tpl-link-dialog") || i || t.onDone();
1273
1232
  }
1274
- G(document, "mousedown", V), w(() => {
1233
+ _t(document, "mousedown", V), w(() => {
1275
1234
  I = !0, B(), j(), v.value?.destroy();
1276
1235
  });
1277
1236
  async function H() {
@@ -1281,9 +1240,9 @@ function ci(t) {
1281
1240
  value: e.value
1282
1241
  }).run() : v.value?.commands.focus());
1283
1242
  }
1284
- async function U() {
1243
+ async function te() {
1285
1244
  let e = await m();
1286
- I || (e && v.value ? ii(v.value, e, l) : v.value?.commands.focus());
1245
+ I || (e && v.value ? ci(v.value, e, l) : v.value?.commands.focus());
1287
1246
  }
1288
1247
  return {
1289
1248
  editor: v,
@@ -1307,35 +1266,33 @@ function ci(t) {
1307
1266
  closeLinkDialog: O,
1308
1267
  handleLinkKeydown: k,
1309
1268
  handleAddMergeTag: H,
1310
- handleAddLogicTag: U
1269
+ handleAddLogicTag: te
1311
1270
  };
1312
1271
  }
1313
- //#endregion
1314
- //#region src/composables/useSmallScreenNotice.ts
1315
- var li = "(max-width: 767px)";
1316
- function ui(e) {
1317
- let t = mt(li);
1272
+ // src/composables/useSmallScreenNotice.ts
1273
+ var pi = "(max-width: 767px)";
1274
+ function mi(e) {
1275
+ let t = vt(pi);
1318
1276
  return {
1319
1277
  isSmallScreen: t,
1320
1278
  showNotice: k(() => (C(e) ?? !0) && t.value)
1321
1279
  };
1322
1280
  }
1323
- //#endregion
1324
- //#region src/components/blocks/CustomBlock.vue?vue&type=script&setup=true&lang.ts
1325
- var di = { class: "tpl:w-full" }, fi = {
1281
+ // src/components/blocks/CustomBlock.vue?vue&type=script&setup=true&lang.ts
1282
+ var hi = { class: "tpl:w-full" }, gi = {
1326
1283
  key: 0,
1327
1284
  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)]"
1328
- }, pi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, mi = {
1285
+ }, _i = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, vi = {
1329
1286
  key: 1,
1330
1287
  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)]"
1331
- }, hi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, gi = {
1288
+ }, yi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, bi = {
1332
1289
  key: 2,
1333
1290
  class: "tpl:relative"
1334
- }, _i = ["innerHTML"], vi = {
1291
+ }, xi = ["innerHTML"], Si = {
1335
1292
  key: 0,
1336
1293
  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]",
1337
1294
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
1338
- }, yi = /* @__PURE__ */ n({
1295
+ }, Ci = /* @__PURE__ */ n({
1339
1296
  __name: "CustomBlock",
1340
1297
  props: {
1341
1298
  block: {},
@@ -1343,63 +1300,63 @@ var di = { class: "tpl:w-full" }, fi = {
1343
1300
  },
1344
1301
  emits: ["fetchData"],
1345
1302
  setup(t, { emit: n }) {
1346
- let i = t, a = n, { t: o } = Z(), s = r(tn, null), u = e(""), d = e(!1), f = k(() => s?.getDefinition(i.block.customType)), m = k(() => !!f.value), h = k(() => i.block), { isFetching: _, fetch: y, needsFetch: C, hasDataSource: w } = Ye({
1347
- definition: f,
1348
- block: h,
1303
+ let i = t, a = n, { t: o } = Z(), s = r(an, null), u = e(""), d = k(() => _n(u.value)), f = e(!1), m = k(() => s?.getDefinition(i.block.customType)), h = k(() => !!m.value), _ = k(() => i.block), { isFetching: y, fetch: C, needsFetch: w, hasDataSource: E } = Qe({
1304
+ definition: m,
1305
+ block: _,
1349
1306
  onUpdate: (e, t) => {
1350
1307
  a("fetchData", {
1351
1308
  fieldValues: e,
1352
1309
  dataSourceFetched: t
1353
1310
  });
1354
1311
  }
1355
- }), E = r(q, xt), A = r(At, null), j = k(() => {
1356
- if (!A?.value) return i.block;
1312
+ }), A = r(K, Tt), j = r(q, null), M = k(() => {
1313
+ if (!j?.value) return i.block;
1357
1314
  let e = {};
1358
- for (let [t, n] of Object.entries(i.block.fieldValues)) e[t] = typeof n == "string" ? De(n, E.value) : n;
1315
+ for (let [t, n] of Object.entries(i.block.fieldValues)) e[t] = typeof n == "string" ? Ee(n, A.value) : n;
1359
1316
  return {
1360
1317
  ...i.block,
1361
1318
  fieldValues: e
1362
1319
  };
1363
1320
  });
1364
- async function M() {
1321
+ async function N() {
1365
1322
  if (s) {
1366
- d.value = !1;
1323
+ f.value = !1;
1367
1324
  try {
1368
- let e = await s.renderCustomBlock(j.value);
1369
- e.includes("Template render error:") && (d.value = !0), u.value = e;
1325
+ let e = await s.renderCustomBlock(M.value);
1326
+ e.includes("Template render error:") && (f.value = !0), u.value = e;
1370
1327
  } catch {
1371
- d.value = !0, u.value = "";
1328
+ f.value = !0, u.value = "";
1372
1329
  }
1373
1330
  }
1374
1331
  }
1375
- let N = dt(M, 150);
1332
+ let P = mt(N, 150);
1376
1333
  return c(() => {
1377
- M();
1378
- }), p(() => i.block.fieldValues, () => {
1379
- N();
1380
- }, { deep: !0 }), p(() => A?.value, () => {
1381
1334
  N();
1382
- }), (e, t) => (l(), g("div", di, [m.value ? d.value ? (l(), g("div", mi, [I(O(bn), {
1335
+ }), p(() => i.block.fieldValues, () => {
1336
+ P();
1337
+ }, { deep: !0 }), p(() => j?.value, () => {
1338
+ P();
1339
+ }), (e, t) => (l(), g("div", hi, [h.value ? f.value ? (l(), g("div", vi, [I(O(Tn), {
1383
1340
  size: 24,
1384
1341
  class: "tpl:text-[var(--tpl-danger)]"
1385
- }), D("span", hi, b(O(o).customBlocks.renderError), 1)])) : (l(), g("div", gi, [D("div", { innerHTML: u.value }, null, 8, _i), O(w) && O(C) ? (l(), g("div", vi, [O(_) ? (l(), S(kn, {
1342
+ }), D("span", yi, b(O(o).customBlocks.renderError), 1)])) : (l(), g("div", bi, [D("div", { innerHTML: d.value }, null, 8, xi), O(E) && O(w) ? (l(), g("div", Si, [O(y) ? (l(), S(Pn, {
1386
1343
  key: 1,
1387
1344
  class: "tpl:w-48"
1388
1345
  })) : (l(), g("button", {
1389
1346
  key: 0,
1390
1347
  type: "button",
1391
1348
  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)]",
1392
- onClick: t[0] ||= T((...e) => O(y) && O(y)(...e), ["stop"])
1393
- }, [f.value?.icon ? (l(), S(Jr, {
1349
+ onClick: t[0] ||= T((...e) => O(C) && O(C)(...e), ["stop"])
1350
+ }, [m.value?.icon ? (l(), S(Qr, {
1394
1351
  key: 0,
1395
- icon: f.value.icon,
1352
+ icon: m.value.icon,
1396
1353
  size: 16
1397
- }, null, 8, ["icon"])) : x("", !0), v(" " + b(f.value?.dataSource?.label || O(o).customBlocks.dataSource.fetchButton), 1)]))])) : x("", !0)])) : (l(), g("div", fi, [I(O(_n), {
1354
+ }, null, 8, ["icon"])) : x("", !0), v(" " + b(m.value?.dataSource?.label || O(o).customBlocks.dataSource.fetchButton), 1)]))])) : x("", !0)])) : (l(), g("div", gi, [I(O(Sn), {
1398
1355
  size: 24,
1399
1356
  class: "tpl:text-[var(--tpl-warning)]"
1400
- }), D("span", pi, b(O(o).customBlocks.definitionNotFound), 1)]))]));
1357
+ }), D("span", _i, b(O(o).customBlocks.definitionNotFound), 1)]))]));
1401
1358
  }
1402
- }), bi = { class: "tpl:w-full" }, xi = /* @__PURE__ */ n({
1359
+ }), wi = { class: "tpl:w-full" }, Ti = /* @__PURE__ */ n({
1403
1360
  __name: "DividerBlock",
1404
1361
  props: {
1405
1362
  block: {},
@@ -1411,28 +1368,28 @@ var di = { class: "tpl:w-full" }, fi = {
1411
1368
  width: t.block.width === "full" ? "100%" : typeof t.block.width == "number" ? `${t.block.width}px` : t.block.width,
1412
1369
  margin: t.block.width === "full" ? "0" : "0 auto"
1413
1370
  }));
1414
- return (e, t) => (l(), g("div", bi, [D("hr", {
1371
+ return (e, t) => (l(), g("div", wi, [D("hr", {
1415
1372
  class: "tpl:m-0 tpl:border-none",
1416
1373
  style: F(n.value)
1417
1374
  }, null, 4)]));
1418
1375
  }
1419
- }), Si = { class: "tpl:w-full" }, Ci = ["srcdoc", "title"], wi = {
1376
+ }), Ei = { class: "tpl:w-full" }, Di = ["srcdoc", "title"], Oi = {
1420
1377
  key: 1,
1421
1378
  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)]"
1422
- }, Ti = {
1379
+ }, ki = {
1423
1380
  key: 0,
1424
1381
  class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
1425
- }, Ei = {
1382
+ }, Ai = {
1426
1383
  key: 1,
1427
1384
  class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
1428
- }, Di = /* @__PURE__ */ n({
1385
+ }, ji = /* @__PURE__ */ n({
1429
1386
  __name: "HtmlBlock",
1430
1387
  props: {
1431
1388
  block: {},
1432
1389
  viewport: {}
1433
1390
  },
1434
1391
  setup(t) {
1435
- let n = t, { t: i } = Z(), a = r(Vt, !1), o = k(() => n.block.content.trim().length > 0), s = k(() => a && o.value), c = r(q, xt), u = r(At, null), d = k(() => u?.value ? De(n.block.content, c.value) : n.block.content), f = e(null), m = e(60), h = null;
1392
+ let n = t, { t: i } = Z(), a = r(Wt, !1), o = k(() => n.block.content.trim().length > 0), s = k(() => a && o.value), c = r(K, Tt), u = r(q, null), d = k(() => u?.value ? Ee(n.block.content, c.value) : n.block.content), f = e(null), m = e(60), h = null;
1436
1393
  function _() {
1437
1394
  let e = f.value?.contentDocument;
1438
1395
  e && (m.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
@@ -1446,7 +1403,7 @@ var di = { class: "tpl:w-full" }, fi = {
1446
1403
  e || (h?.disconnect(), h = null);
1447
1404
  }), w(() => {
1448
1405
  h?.disconnect(), h = null;
1449
- }), (e, t) => (l(), g("div", Si, [s.value ? (l(), g("iframe", {
1406
+ }), (e, t) => (l(), g("div", Ei, [s.value ? (l(), g("iframe", {
1450
1407
  key: 0,
1451
1408
  ref_key: "iframeRef",
1452
1409
  ref: f,
@@ -1456,18 +1413,18 @@ var di = { class: "tpl:w-full" }, fi = {
1456
1413
  class: "tpl:block tpl:w-full tpl:border-0",
1457
1414
  style: F({ height: `${m.value}px` }),
1458
1415
  onLoad: v
1459
- }, null, 44, Ci)) : (l(), g("div", wi, [I(O(pn), {
1416
+ }, null, 44, Di)) : (l(), g("div", Oi, [I(O(vn), {
1460
1417
  size: 24,
1461
1418
  class: "tpl:text-[var(--tpl-text-dim)]"
1462
- }), o.value ? (l(), g("span", Ti, b(O(i).html.preview), 1)) : (l(), g("span", Ei, b(O(i).html.empty), 1))]))]));
1419
+ }), o.value ? (l(), g("span", ki, b(O(i).html.preview), 1)) : (l(), g("span", Ai, b(O(i).html.empty), 1))]))]));
1463
1420
  }
1464
- }), Oi = ["data-drop-enabled"], ki = ["href"], Ai = ["src", "alt"], ji = ["src", "alt"], Mi = {
1421
+ }), Mi = ["data-drop-enabled"], Ni = ["href"], Pi = ["src", "alt"], Fi = ["src", "alt"], Ii = {
1465
1422
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
1466
1423
  style: { opacity: "0.7" }
1467
- }, Ni = ["href"], Pi = ["src", "alt"], Fi = ["src", "alt"], Ii = {
1424
+ }, Li = ["href"], Ri = ["src", "alt"], zi = ["src", "alt"], Bi = {
1468
1425
  key: 4,
1469
1426
  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)]"
1470
- }, Li = ["aria-label"], Ri = { key: 1 }, zi = /* @__PURE__ */ n({
1427
+ }, Vi = ["aria-label"], Hi = { key: 1 }, Ui = /* @__PURE__ */ n({
1471
1428
  __name: "ImageBlock",
1472
1429
  props: {
1473
1430
  block: {},
@@ -1475,20 +1432,20 @@ var di = { class: "tpl:w-full" }, fi = {
1475
1432
  },
1476
1433
  emits: ["update"],
1477
1434
  setup(t, { emit: n }) {
1478
- let r = t, i = n, { t: a } = Z(), { syntax: o } = Mn(), s = k(() => Le(r.block.src, o));
1435
+ let r = t, i = n, { t: a } = Z(), { syntax: o } = Ln(), s = k(() => ze(r.block.src, o));
1479
1436
  function c(e) {
1480
1437
  let t = {
1481
1438
  src: e.url,
1482
- ...at(rt(e.width, e.height))
1439
+ ...ct(ot(e.width, e.height))
1483
1440
  };
1484
1441
  e.alt && (t.alt = e.alt), i("update", t);
1485
1442
  }
1486
- let u = e(), { canBrowse: d, dropEnabled: f, isUploading: p, showOverlay: m, openMediaBrowser: h } = it({
1443
+ let u = e(), { canBrowse: d, dropEnabled: f, isUploading: p, showOverlay: m, openMediaBrowser: h } = st({
1487
1444
  target: u,
1488
1445
  blocked: s,
1489
1446
  apply: c
1490
1447
  }), _ = k(() => ({ textAlign: r.block.align })), y = k(() => {
1491
- let e = r.block.border, t = ["left", "right"].map((t) => ve(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
1448
+ let e = r.block.border, t = ["left", "right"].map((t) => oe(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
1492
1449
  return t > 0 ? `calc(100% - ${t}px)` : "100%";
1493
1450
  }), C = k(() => {
1494
1451
  let e = r.block.align;
@@ -1496,13 +1453,13 @@ var di = { class: "tpl:w-full" }, fi = {
1496
1453
  maxWidth: "100%",
1497
1454
  width: r.block.width === "full" ? y.value : `${r.block.width}px`,
1498
1455
  height: r.block.height ? `${r.block.height}px` : void 0,
1499
- borderRadius: ge(r.block.borderRadius) ?? void 0,
1500
- ...zr(r.block.border),
1456
+ borderRadius: W(r.block.borderRadius) ?? void 0,
1457
+ ...Ur(r.block.border),
1501
1458
  display: "block",
1502
1459
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
1503
1460
  marginRight: e === "center" ? "auto" : void 0
1504
1461
  };
1505
- }), w = lt(() => s.value ? void 0 : r.block.src), E = lt(() => s.value ? r.block.placeholderUrl : void 0);
1462
+ }), w = ft(() => s.value ? void 0 : r.block.src), E = ft(() => s.value ? r.block.placeholderUrl : void 0);
1506
1463
  return (e, n) => (l(), g("div", {
1507
1464
  ref_key: "dropZoneRef",
1508
1465
  ref: u,
@@ -1510,7 +1467,7 @@ var di = { class: "tpl:w-full" }, fi = {
1510
1467
  "data-drop-enabled": O(f),
1511
1468
  class: "tpl:relative tpl:w-full",
1512
1469
  style: F(_.value)
1513
- }, [O(m) ? (l(), S(nt, {
1470
+ }, [O(m) ? (l(), S(at, {
1514
1471
  key: 0,
1515
1472
  uploading: O(p),
1516
1473
  size: "canvas"
@@ -1526,22 +1483,22 @@ var di = { class: "tpl:w-full" }, fi = {
1526
1483
  src: O(E),
1527
1484
  alt: t.block.alt || O(a).image.altTextPlaceholder,
1528
1485
  style: F(C.value)
1529
- }, null, 12, Ai)], 8, ki)) : (l(), g("img", {
1486
+ }, null, 12, Pi)], 8, Ni)) : (l(), g("img", {
1530
1487
  key: 1,
1531
1488
  class: "tpl:border-0",
1532
1489
  src: O(E),
1533
1490
  alt: t.block.alt,
1534
1491
  style: F(C.value)
1535
- }, null, 12, ji))], 64)) : t.block.src && s.value ? (l(), g("div", {
1492
+ }, null, 12, Fi))], 64)) : t.block.src && s.value ? (l(), g("div", {
1536
1493
  key: 2,
1537
1494
  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)]",
1538
1495
  style: F([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, C.value])
1539
- }, [I(O(Sn), {
1496
+ }, [I(O(Dn), {
1540
1497
  size: 32,
1541
1498
  "stroke-width": 1.5,
1542
1499
  class: "tpl:text-[var(--tpl-primary)]",
1543
1500
  style: { opacity: "0.5" }
1544
- }), D("span", Mi, [I(Ur, { text: t.block.src }, null, 8, ["text"])])], 4)) : t.block.src ? (l(), g(P, { key: 3 }, [t.block.linkUrl ? (l(), g("a", {
1501
+ }), D("span", Ii, [I(qr, { text: t.block.src }, null, 8, ["text"])])], 4)) : t.block.src ? (l(), g(P, { key: 3 }, [t.block.linkUrl ? (l(), g("a", {
1545
1502
  key: 0,
1546
1503
  href: t.block.linkUrl,
1547
1504
  target: "_blank",
@@ -1553,33 +1510,33 @@ var di = { class: "tpl:w-full" }, fi = {
1553
1510
  src: O(w),
1554
1511
  alt: t.block.alt || O(a).image.altTextPlaceholder,
1555
1512
  style: F(C.value)
1556
- }, null, 12, Pi)], 8, Ni)) : (l(), g("img", {
1513
+ }, null, 12, Ri)], 8, Li)) : (l(), g("img", {
1557
1514
  key: 1,
1558
1515
  class: "tpl:border-0",
1559
1516
  src: O(w),
1560
1517
  alt: t.block.alt,
1561
1518
  style: F(C.value)
1562
- }, null, 12, Fi))], 64)) : (l(), g("div", Ii, [O(d) ? (l(), g("button", {
1519
+ }, null, 12, zi))], 64)) : (l(), g("div", Bi, [O(d) ? (l(), g("button", {
1563
1520
  key: 0,
1564
1521
  "aria-label": O(a).image.browseMedia,
1565
1522
  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)]",
1566
1523
  onClick: n[2] ||= T((...e) => O(h) && O(h)(...e), ["stop"])
1567
- }, [I(O(Sn), {
1524
+ }, [I(O(Dn), {
1568
1525
  size: 14,
1569
1526
  "stroke-width": 1.5
1570
- }), v(" " + b(O(a).image.browseMedia), 1)], 8, Li)) : (l(), g("span", Ri, b(O(a).image.clickToAdd), 1))]))], 12, Oi));
1527
+ }), v(" " + b(O(a).image.browseMedia), 1)], 8, Vi)) : (l(), g("span", Hi, b(O(a).image.clickToAdd), 1))]))], 12, Mi));
1571
1528
  }
1572
- }), Bi = { class: "tpl:w-full" }, Vi = ["href"], Hi = {
1529
+ }), Wi = { class: "tpl:w-full" }, Gi = ["href"], Ki = {
1573
1530
  key: 1,
1574
1531
  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)]"
1575
- }, Ui = /* @__PURE__ */ n({
1532
+ }, qi = /* @__PURE__ */ n({
1576
1533
  __name: "MenuBlock",
1577
1534
  props: {
1578
1535
  block: {},
1579
1536
  viewport: {}
1580
1537
  },
1581
1538
  setup(e) {
1582
- let t = e, { t: n } = Z(), r = K(Y, "MenuBlock"), i = k(() => ({
1539
+ let t = e, { t: n } = Z(), r = G(Y, "MenuBlock"), i = k(() => ({
1583
1540
  display: "flex",
1584
1541
  flexWrap: "wrap",
1585
1542
  gap: `0 ${t.block.spacing}px`,
@@ -1591,7 +1548,7 @@ var di = { class: "tpl:w-full" }, fi = {
1591
1548
  function s(e) {
1592
1549
  return e || t.block.linkColor || t.block.color;
1593
1550
  }
1594
- return (t, r) => (l(), g("div", Bi, [o.value ? (l(), g("div", {
1551
+ return (t, r) => (l(), g("div", Wi, [o.value ? (l(), g("div", {
1595
1552
  key: 0,
1596
1553
  style: F(i.value)
1597
1554
  }, [(l(!0), g(P, null, a(e.block.items, (t, n) => (l(), g(P, { key: t.id }, [D("a", {
@@ -1603,19 +1560,18 @@ var di = { class: "tpl:w-full" }, fi = {
1603
1560
  textDecoration: t.underline ? "underline" : "none"
1604
1561
  }),
1605
1562
  onClick: r[0] ||= T(() => {}, ["prevent"])
1606
- }, [I(Ur, { text: t.text || "..." }, null, 8, ["text"])], 12, Vi), n < e.block.items.length - 1 ? (l(), g("span", {
1563
+ }, [I(qr, { text: t.text || "..." }, null, 8, ["text"])], 12, Gi), n < e.block.items.length - 1 ? (l(), g("span", {
1607
1564
  key: 0,
1608
1565
  style: F({
1609
1566
  color: e.block.separatorColor,
1610
1567
  padding: `0 ${e.block.spacing}px`
1611
1568
  })
1612
- }, b(e.block.separator), 5)) : x("", !0)], 64))), 128))], 4)) : (l(), g("div", Hi, [I(O(yn), { size: 16 }), D("span", null, b(O(n).menu.addLinks), 1)]))]));
1569
+ }, b(e.block.separator), 5)) : x("", !0)], 64))), 128))], 4)) : (l(), g("div", Ki, [I(O(wn), { size: 16 }), D("span", null, b(O(n).menu.addLinks), 1)]))]));
1613
1570
  }
1614
1571
  });
1615
- //#endregion
1616
- //#region src/composables/useEditableTextBlock.ts
1617
- function Wi(t) {
1618
- let n = r(q, xt), i = r(At, null), { syntax: a } = Mn(), o = k(() => i?.value ? Oe(t(), n.value) : Ie(t(), n.value)), s = k(() => Ce(Pn(Ee(o.value, a)))), c = e(!1), l = e(null), { top: u, left: d } = ht(l), { toLocal: f } = un(), p = k(() => f({
1572
+ // src/composables/useEditableTextBlock.ts
1573
+ function Ji(t) {
1574
+ let n = r(K, Tt), i = r(q, null), { syntax: a } = Ln(), o = k(() => i?.value ? De(t(), n.value) : Ie(t(), n.value)), s = k(() => Se(_n(Te(o.value, a)))), c = e(!1), l = e(null), { top: u, left: d } = yt(l), { toLocal: f } = pn(), p = k(() => f({
1619
1575
  top: u.value - 8,
1620
1576
  left: d.value
1621
1577
  }));
@@ -1634,16 +1590,15 @@ function Wi(t) {
1634
1590
  handleEditorDone: h
1635
1591
  };
1636
1592
  }
1637
- //#endregion
1638
- //#region src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
1639
- var Gi = ["innerHTML"], Ki = /* @__PURE__ */ n({
1593
+ // src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
1594
+ var Yi = ["innerHTML"], Xi = /* @__PURE__ */ n({
1640
1595
  __name: "ParagraphBlock",
1641
1596
  props: {
1642
1597
  block: {},
1643
1598
  viewport: {}
1644
1599
  },
1645
1600
  setup(e) {
1646
- let t = e, n = u(() => import("./ParagraphEditor-CqSj6Ayz.js").then((e) => e.t)), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = Wi(() => t.block.content);
1601
+ let t = e, n = u(() => import("./ParagraphEditor-DsPLVAgm.js").then((e) => e.t)), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = Ji(() => t.block.content);
1647
1602
  return (t, u) => (l(), g("div", {
1648
1603
  ref_key: "blockRef",
1649
1604
  ref: i,
@@ -1662,26 +1617,26 @@ var Gi = ["innerHTML"], Ki = /* @__PURE__ */ n({
1662
1617
  key: 1,
1663
1618
  class: "tpl-text-content tpl:outline-none",
1664
1619
  innerHTML: O(o)
1665
- }, null, 8, Gi))], 544));
1620
+ }, null, 8, Yi))], 544));
1666
1621
  }
1667
- }), qi = [
1622
+ }), Zi = [
1668
1623
  "data-block-id",
1669
1624
  "data-block-type",
1670
1625
  "data-tpl-picked"
1671
- ], Ji = ["data-lock-holder"], Yi = ["aria-label"], Xi = [
1626
+ ], Qi = ["data-lock-holder"], $i = ["aria-label"], ea = [
1672
1627
  "aria-label",
1673
1628
  "aria-pressed",
1674
1629
  "title"
1675
- ], Zi = ["aria-label", "title"], Qi = ["aria-label", "title"], $i = ["aria-label", "title"], ea = {
1630
+ ], ta = ["aria-label", "title"], na = ["aria-label", "title"], ra = ["aria-label", "title"], ia = {
1676
1631
  key: 3,
1677
1632
  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"
1678
- }, ta = { 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)]" }, na = {
1633
+ }, aa = { 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)]" }, oa = {
1679
1634
  key: 4,
1680
1635
  class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
1681
- }, ra = ["aria-label", "title"], ia = {
1636
+ }, sa = ["aria-label", "title"], ca = {
1682
1637
  key: 5,
1683
1638
  class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
1684
- }, aa = ["aria-label"], oa = /*#__PURE__*/ An(/* @__PURE__ */ n({
1639
+ }, la = ["aria-label"], ua = /*#__PURE__*/ Fn(/* @__PURE__ */ n({
1685
1640
  __name: "BlockWrapper",
1686
1641
  props: {
1687
1642
  block: {},
@@ -1693,7 +1648,7 @@ var Gi = ["innerHTML"], Ki = /* @__PURE__ */ n({
1693
1648
  },
1694
1649
  emits: ["select"],
1695
1650
  setup(n, { emit: i }) {
1696
- let a = u(() => import("./BlockIssueBadge-DAn2vsMJ.js")), o = n, c = i, { t: d, format: f } = Z(), p = r(Mt, null), m = e(null), h = k(() => p?.liftedBlockId.value === o.block.id), _ = k(() => h.value ? f(d.blockActions.dragLifted, { block: o.block.type }) : d.blockActions.drag);
1651
+ let a = u(() => import("./BlockIssueBadge-DIJDqqcY.js")), o = n, c = i, { t: d, format: f } = Z(), p = r(Ft, null), m = e(null), h = k(() => p?.liftedBlockId.value === o.block.id), _ = k(() => h.value ? f(d.blockActions.dragLifted, { block: o.block.type }) : d.blockActions.drag);
1697
1652
  async function y() {
1698
1653
  await t(), m.value?.focus();
1699
1654
  }
@@ -1703,10 +1658,10 @@ var Gi = ["innerHTML"], Ki = /* @__PURE__ */ n({
1703
1658
  let C = k(() => !o.viewport || !o.block.visibility ? !1 : o.block.visibility[o.viewport] === !1), w = k(() => o.previewMode === !0 && C.value), A = k(() => o.viewport ? {
1704
1659
  desktop: d.viewport.desktop,
1705
1660
  mobile: d.viewport.mobile
1706
- }[o.viewport] ?? o.viewport : ""), j = k(() => !!o.block.displayCondition), M = r(Bt, null), N = r(Wt, null), P = r(Jt, {}), L = k(() => P.savedBlocks?.isPicking.value === !0), R = k(() => !o.nested && P.savedBlocks?.isAvailable.value === !0 && P.savedBlocks?.canCreate.value === !0), z = k(() => o.isSelected && !L.value), B = k(() => P.comments?.getBlockCount(o.block.id) ?? 0), V = k(() => P.collaboration?.lockOf(o.block.id) ?? null), H = k(() => V.value?.holder.type === "guest" ? d.collaboration.guest : V.value?.holder.name ?? ""), U = k(() => P.collaboration?.agentHighlightOf(o.block.id) ?? P.ai?.highlightOf(o.block.id) ?? null), ee = Ge(() => o.block.type === "section" ? o.block.backgroundImage : void 0), te = Ge(() => o.block.type === "section" ? o.block.wrapper?.backgroundImage : void 0), ne = r(J, null), re = r(vt, void 0), W = k(() => Lr(o.block, {
1707
- backgroundImageUrl: ee.value,
1708
- heroBoxWidth: et(o.block, ne?.content.value, re)
1709
- })), ie = k(() => Br(o.block, { backgroundImageUrl: te.value }));
1661
+ }[o.viewport] ?? o.viewport : ""), j = k(() => !!o.block.displayCondition), M = r(Ut, null), N = r(qt, null), P = r(Zt, {}), L = k(() => P.savedBlocks?.isPicking.value === !0), ee = k(() => !o.nested && P.savedBlocks?.isAvailable.value === !0 && P.savedBlocks?.canCreate.value === !0), R = k(() => o.isSelected && !L.value), z = k(() => P.comments?.getBlockCount(o.block.id) ?? 0), B = k(() => P.collaboration?.lockOf(o.block.id) ?? null), V = k(() => B.value?.holder.type === "guest" ? d.collaboration.guest : B.value?.holder.name ?? ""), H = k(() => P.collaboration?.agentHighlightOf(o.block.id) ?? P.ai?.highlightOf(o.block.id) ?? null), te = Je(() => o.block.type === "section" ? o.block.backgroundImage : void 0), ne = Je(() => o.block.type === "section" ? o.block.wrapper?.backgroundImage : void 0), re = r(J, null), ie = r(St, void 0), U = k(() => Vr(o.block, {
1662
+ backgroundImageUrl: te.value,
1663
+ heroBoxWidth: rt(o.block, re?.content.value, ie)
1664
+ })), W = k(() => Wr(o.block, { backgroundImageUrl: ne.value }));
1710
1665
  function ae(e) {
1711
1666
  o.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), c("select"));
1712
1667
  }
@@ -1736,29 +1691,29 @@ var Gi = ["innerHTML"], Ki = /* @__PURE__ */ n({
1736
1691
  onClick: ae
1737
1692
  }, [
1738
1693
  I(O(a), { "block-id": n.block.id }, null, 8, ["block-id"]),
1739
- V.value ? (l(), g("div", {
1694
+ B.value ? (l(), g("div", {
1740
1695
  key: 0,
1741
1696
  "data-testid": "block-lock",
1742
- "data-lock-holder": V.value.holder.sessionId,
1697
+ "data-lock-holder": B.value.holder.sessionId,
1743
1698
  class: "tpl-block-lock tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm",
1744
1699
  style: F({
1745
- outline: `2px solid ${V.value.holder.color}`,
1700
+ outline: `2px solid ${B.value.holder.color}`,
1746
1701
  outlineOffset: "-1px"
1747
1702
  })
1748
1703
  }, [D("span", {
1749
1704
  class: "tpl:absolute tpl:-top-0.5 tpl:left-1/2 tpl:z-[5] tpl:-translate-x-1/2 tpl:-translate-y-full tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:whitespace-nowrap",
1750
1705
  style: F({
1751
- backgroundColor: V.value.holder.color,
1752
- color: O(Fn)(V.value.holder.color)
1706
+ backgroundColor: B.value.holder.color,
1707
+ color: O(zn)(B.value.holder.color)
1753
1708
  })
1754
- }, b(O(f)(O(d).collaboration.editing, { name: H.value })), 5)], 12, Ji)) : x("", !0),
1755
- U.value === null ? x("", !0) : (l(), g("div", {
1756
- key: U.value,
1709
+ }, b(O(f)(O(d).collaboration.editing, { name: V.value })), 5)], 12, Qi)) : x("", !0),
1710
+ H.value === null ? x("", !0) : (l(), g("div", {
1711
+ key: H.value,
1757
1712
  "data-testid": "block-agent-highlight",
1758
1713
  "aria-hidden": "true",
1759
1714
  class: "tpl-block-agent-highlight tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm"
1760
1715
  })),
1761
- z.value ? (l(), g("div", {
1716
+ R.value ? (l(), g("div", {
1762
1717
  key: 2,
1763
1718
  role: "toolbar",
1764
1719
  "aria-label": O(d).blockActions.drag,
@@ -1773,100 +1728,98 @@ var Gi = ["innerHTML"], Ki = /* @__PURE__ */ n({
1773
1728
  "aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
1774
1729
  title: O(d).blockActions.drag,
1775
1730
  onKeydown: S
1776
- }, [I(O(En), {
1731
+ }, [I(O(jn), {
1777
1732
  size: 14,
1778
1733
  "stroke-width": 1.5
1779
- })], 40, Xi),
1734
+ })], 40, ea),
1780
1735
  D("button", {
1781
1736
  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",
1782
1737
  "aria-label": O(d).blockActions.duplicate,
1783
1738
  title: O(d).blockActions.duplicate,
1784
1739
  onClick: T(se, ["stop"])
1785
- }, [I(O(gn), {
1740
+ }, [I(O(xn), {
1786
1741
  size: 14,
1787
1742
  "stroke-width": 1.5
1788
- })], 8, Zi),
1789
- R.value ? (l(), g("button", {
1743
+ })], 8, ta),
1744
+ ee.value ? (l(), g("button", {
1790
1745
  key: 0,
1791
1746
  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",
1792
1747
  "aria-label": O(d).blockActions.saveAsBlock,
1793
1748
  title: O(d).blockActions.saveAsBlock,
1794
1749
  onClick: T(ce, ["stop"])
1795
- }, [I(O(hn), {
1750
+ }, [I(O(bn), {
1796
1751
  size: 14,
1797
1752
  "stroke-width": 1.5
1798
- })], 8, Qi)) : x("", !0),
1753
+ })], 8, na)) : x("", !0),
1799
1754
  D("button", {
1800
1755
  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",
1801
1756
  "aria-label": O(d).blockActions.delete,
1802
1757
  title: O(d).blockActions.delete,
1803
1758
  onClick: T(oe, ["stop"])
1804
- }, [I(O(xn), {
1759
+ }, [I(O(En), {
1805
1760
  size: 14,
1806
1761
  "stroke-width": 1.5
1807
- })], 8, $i)
1808
- ], 8, Yi)) : x("", !0),
1809
- C.value ? (l(), g("div", ea, [D("span", ta, [I(O(mn), {
1762
+ })], 8, ra)
1763
+ ], 8, $i)) : x("", !0),
1764
+ C.value ? (l(), g("div", ia, [D("span", aa, [I(O(yn), {
1810
1765
  size: 12,
1811
1766
  "stroke-width": 1.5
1812
1767
  }), v(" " + b(O(f)(O(d).blockActions.hiddenOnViewport, { viewport: A.value })), 1)])])) : x("", !0),
1813
- j.value && !C.value ? (l(), g("div", na, [D("button", {
1768
+ j.value && !C.value ? (l(), g("div", oa, [D("button", {
1814
1769
  "data-testid": "condition-toggle",
1815
1770
  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)]",
1816
1771
  "aria-label": O(d).blockActions.conditionToggle,
1817
1772
  title: n.block.displayCondition?.label,
1818
1773
  onClick: T(le, ["stop"])
1819
- }, [I(O(Dn), {
1774
+ }, [I(O(Mn), {
1820
1775
  size: 12,
1821
1776
  "stroke-width": 2
1822
- })], 8, ra)])) : x("", !0),
1823
- B.value > 0 && !C.value ? (l(), g("div", ia, [D("button", {
1777
+ })], 8, sa)])) : x("", !0),
1778
+ z.value > 0 && !C.value ? (l(), g("div", ca, [D("button", {
1824
1779
  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)]",
1825
- "aria-label": O(f)(O(d).blockActions.comments, { count: String(B.value) }),
1780
+ "aria-label": O(f)(O(d).blockActions.comments, { count: String(z.value) }),
1826
1781
  onClick: t[0] ||= T((e) => O(P).comments?.openForBlock(n.block.id), ["stop"])
1827
- }, [I(O(wn), {
1782
+ }, [I(O(kn), {
1828
1783
  size: 12,
1829
1784
  "stroke-width": 2.5
1830
- }), v(" " + b(B.value), 1)], 8, aa)])) : x("", !0),
1831
- ie.value ? (l(), g("div", {
1785
+ }), v(" " + b(z.value), 1)], 8, la)])) : x("", !0),
1786
+ W.value ? (l(), g("div", {
1832
1787
  key: 6,
1833
- class: E(["tpl-section-wrapper tpl-email-surface", O(Nr)(ie.value)]),
1834
- style: F(ie.value)
1835
- }, [D("div", {
1836
- class: E(["tpl-block-content tpl-email-surface", O(Nr)(W.value)]),
1788
+ class: E(["tpl-section-wrapper tpl-email-surface", O(Lr)(W.value)]),
1837
1789
  style: F(W.value)
1790
+ }, [D("div", {
1791
+ class: E(["tpl-block-content tpl-email-surface", O(Lr)(U.value)]),
1792
+ style: F(U.value)
1838
1793
  }, [s(e.$slots, "default", {}, void 0, !0)], 6)], 6)) : (l(), g("div", {
1839
1794
  key: 7,
1840
- class: E(["tpl-block-content tpl-email-surface", O(Nr)(W.value)]),
1841
- style: F(W.value)
1795
+ class: E(["tpl-block-content tpl-email-surface", O(Lr)(U.value)]),
1796
+ style: F(U.value)
1842
1797
  }, [s(e.$slots, "default", {}, void 0, !0)], 6))
1843
- ], 10, qi));
1798
+ ], 10, Zi));
1844
1799
  }
1845
1800
  }), [["__scopeId", "data-v-126b991e"]]);
1846
- //#endregion
1847
- //#region src/utils/unwrapParagraph.ts
1848
- function sa(e) {
1801
+ // src/utils/unwrapParagraph.ts
1802
+ function da(e) {
1849
1803
  let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
1850
1804
  return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
1851
1805
  }
1852
- //#endregion
1853
- //#region src/components/blocks/TitleBlock.vue
1854
- var ca = /* @__PURE__ */ n({
1806
+ // src/components/blocks/TitleBlock.vue
1807
+ var fa = /* @__PURE__ */ n({
1855
1808
  __name: "TitleBlock",
1856
1809
  props: {
1857
1810
  block: {},
1858
1811
  viewport: {}
1859
1812
  },
1860
1813
  setup(e) {
1861
- let t = e, n = u(() => import("./TitleEditor-Ccv6uoTz.js")), r = K(Y, "TitleBlock"), { isEditing: i, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: d } = Wi(() => t.block.content), f = k(() => {
1814
+ let t = e, n = u(() => import("./TitleEditor-R2lQw6WA.js")), r = G(Y, "TitleBlock"), { isEditing: i, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: d } = Ji(() => t.block.content), f = k(() => {
1862
1815
  let e = {
1863
- fontSize: `${me[t.block.level]}px`,
1864
- lineHeight: String(B),
1816
+ fontSize: `${_e[t.block.level]}px`,
1817
+ lineHeight: String(ne),
1865
1818
  fontWeight: "700",
1866
1819
  textAlign: t.block.textAlign
1867
1820
  };
1868
1821
  return t.block.color && (e.color = t.block.color), t.block.fontFamily && (e.fontFamily = r.resolveFontFamily(t.block.fontFamily)), e;
1869
- }), p = k(() => `h${t.block.level}`), m = k(() => sa(s.value));
1822
+ }), p = k(() => `h${t.block.level}`), m = k(() => da(s.value));
1870
1823
  return (t, r) => (l(), g("div", {
1871
1824
  ref_key: "blockRef",
1872
1825
  ref: a,
@@ -1892,14 +1845,14 @@ var ca = /* @__PURE__ */ n({
1892
1845
  innerHTML: m.value
1893
1846
  }, null, 8, ["innerHTML"]))], 36));
1894
1847
  }
1895
- }), la = "hero", ua = "#1f2937", da = "#ffffff";
1896
- function fa(e, t) {
1897
- let n = R("title", e);
1898
- n.color = da, n.textAlign = "center";
1899
- let r = R("paragraph", e);
1900
- r.content = `<p style="text-align: center"><span style="color: ${da}">${pa(t)}</span></p>`;
1901
- let i = R("button", e);
1902
- return i.align = "center", Ue({
1848
+ }), pa = "hero", ma = "#1f2937", ha = "#ffffff";
1849
+ function ga(e, t) {
1850
+ let n = fe("title", e);
1851
+ n.color = ha, n.textAlign = "center";
1852
+ let r = fe("paragraph", e);
1853
+ r.content = `<p style="text-align: center"><span style="color: ${ha}">${_a(t)}</span></p>`;
1854
+ let i = fe("button", e);
1855
+ return i.align = "center", ge({
1903
1856
  columns: "1",
1904
1857
  children: [[
1905
1858
  n,
@@ -1917,30 +1870,28 @@ function fa(e, t) {
1917
1870
  bottom: 48,
1918
1871
  left: 24
1919
1872
  },
1920
- backgroundColor: ua
1873
+ backgroundColor: ma
1921
1874
  }
1922
1875
  });
1923
1876
  }
1924
- function pa(e) {
1877
+ function _a(e) {
1925
1878
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
1926
1879
  }
1927
- //#endregion
1928
- //#region src/utils/sectionColumnDrop.ts
1929
- var ma = /* @__PURE__ */ new Set(["section", la]);
1930
- function ha(e) {
1931
- return e.dataset.blockType !== "section" && !ma.has(e.dataset.paletteType ?? "");
1880
+ // src/utils/sectionColumnDrop.ts
1881
+ var va = /* @__PURE__ */ new Set(["section", pa]);
1882
+ function ya(e) {
1883
+ return e.dataset.blockType !== "section" && !va.has(e.dataset.paletteType ?? "");
1932
1884
  }
1933
- //#endregion
1934
- //#region src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
1935
- var ga = { class: "tpl:relative tpl:w-full" }, _a = {
1885
+ // src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
1886
+ var ba = { class: "tpl:relative tpl:w-full" }, xa = {
1936
1887
  key: 0,
1937
1888
  "data-testid": "hero-image-hint",
1938
1889
  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)]"
1939
- }, va = {
1890
+ }, Sa = {
1940
1891
  key: 0,
1941
1892
  "data-testid": "section-drop-hint",
1942
1893
  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)]"
1943
- }, ya = /* @__PURE__ */ n({
1894
+ }, Ca = /* @__PURE__ */ n({
1944
1895
  __name: "SectionBlock",
1945
1896
  props: {
1946
1897
  block: {},
@@ -1948,13 +1899,13 @@ var ga = { class: "tpl:relative tpl:w-full" }, _a = {
1948
1899
  },
1949
1900
  setup(t) {
1950
1901
  let n = {
1951
- title: ca,
1952
- paragraph: Ki,
1953
- image: zi,
1954
- button: Gr,
1955
- divider: xi,
1956
- custom: yi
1957
- }, i = t, { t: o } = Z(), s = K(J, "SectionBlock"), c = r(Wt, null), u = r(tn, null), d = r(Jt, {}), p = r(en, null);
1902
+ title: fa,
1903
+ paragraph: Xi,
1904
+ image: Ui,
1905
+ button: Yr,
1906
+ divider: Ti,
1907
+ custom: Ci
1908
+ }, i = t, { t: o } = Z(), s = G(J, "SectionBlock"), c = r(qt, null), u = r(an, null), d = r(Zt, {}), p = r(rn, null);
1958
1909
  function h(e) {
1959
1910
  let t = d.savedBlocks;
1960
1911
  t?.isPicking.value ? t.togglePick(i.block.id) : s.selectBlock(e);
@@ -1989,41 +1940,41 @@ var ga = { class: "tpl:relative tpl:w-full" }, _a = {
1989
1940
  function N(e) {
1990
1941
  return s.state.previewMode ? !1 : T(e) ? !0 : A.value === e && C(e).filter((e) => w(e.id)).length <= 1;
1991
1942
  }
1992
- let R = k(() => {
1943
+ let ee = k(() => {
1993
1944
  if (s.state.previewMode) return !1;
1994
- let e = z(i.block);
1945
+ let e = H(i.block);
1995
1946
  return e !== null && !e.applied && e.reason === "image";
1996
1947
  });
1997
- function B(e) {
1948
+ function R(e) {
1998
1949
  return C(e).length === 0 && !s.state.previewMode;
1999
1950
  }
2000
- function V(e) {
1951
+ function z(e) {
2001
1952
  return C(e).length === 0 && s.state.previewMode;
2002
1953
  }
2003
- function H(e, t) {
1954
+ function B(e, t) {
2004
1955
  let n = t.map((e) => JSON.parse(JSON.stringify(e))), r = [...i.block.children];
2005
1956
  for (; r.length <= e;) r.push([]);
2006
1957
  r[e] = n, s.updateBlock(i.block.id, { children: r });
2007
1958
  }
2008
- function U(e) {
2009
- return kr(e, u, n);
1959
+ function V(e) {
1960
+ return Nr(e, u, n);
2010
1961
  }
2011
- function ee(e, t) {
1962
+ function te(e, t) {
2012
1963
  e.type === "custom" && s.updateBlock(e.id, {
2013
1964
  fieldValues: t.fieldValues,
2014
1965
  dataSourceFetched: t.dataSourceFetched
2015
1966
  });
2016
1967
  }
2017
- return (e, n) => (l(), g("div", ga, [R.value ? (l(), g("div", _a, [D("span", null, b(O(o).section.heroAddImage), 1)])) : x("", !0), D("div", { class: E(["tpl:flex tpl:gap-0", { "tpl:flex-col": y.value }]) }, [(l(!0), g(P, null, a(v.value, (e, r) => (l(), g("div", {
1968
+ return (e, n) => (l(), g("div", ba, [ee.value ? (l(), g("div", xa, [D("span", null, b(O(o).section.heroAddImage), 1)])) : x("", !0), D("div", { class: E(["tpl:flex tpl:gap-0", { "tpl:flex-col": y.value }]) }, [(l(!0), g(P, null, a(v.value, (e, r) => (l(), g("div", {
2018
1969
  key: r,
2019
- class: E(["tpl:relative tpl:flex tpl:flex-col tpl:rounded", B(r) ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
1970
+ class: E(["tpl:relative tpl:flex tpl:flex-col tpl:rounded", R(r) ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
2020
1971
  style: F({ width: y.value ? "100%" : _.value[r] })
2021
1972
  }, [I(O(M), {
2022
1973
  "model-value": C(r),
2023
1974
  group: {
2024
1975
  name: "blocks",
2025
1976
  pull: !0,
2026
- put: (e, t, n) => O(ha)(n)
1977
+ put: (e, t, n) => O(ya)(n)
2027
1978
  },
2028
1979
  animation: 150,
2029
1980
  "ghost-class": "tpl-ghost",
@@ -2035,13 +1986,13 @@ var ga = { class: "tpl:relative tpl:w-full" }, _a = {
2035
1986
  "force-fallback": !0,
2036
1987
  class: E(["tpl:grow", {
2037
1988
  "tpl:min-h-[60px]": N(r),
2038
- "tpl:min-h-[34px]": V(r)
1989
+ "tpl:min-h-[34px]": z(r)
2039
1990
  }]),
2040
1991
  onStart: (e) => A.value = r,
2041
1992
  onEnd: n[0] ||= (e) => A.value = null,
2042
- "onUpdate:modelValue": (e) => H(r, e)
1993
+ "onUpdate:modelValue": (e) => B(r, e)
2043
1994
  }, {
2044
- default: f(() => [(l(!0), g(P, null, a(C(r), (e) => m((l(), g("div", { key: e.id }, [I(oa, {
1995
+ default: f(() => [(l(!0), g(P, null, a(C(r), (e) => m((l(), g("div", { key: e.id }, [I(ua, {
2045
1996
  block: e,
2046
1997
  "is-selected": O(s).state.selectedBlockId === e.id,
2047
1998
  viewport: t.viewport,
@@ -2049,10 +2000,10 @@ var ga = { class: "tpl:relative tpl:w-full" }, _a = {
2049
2000
  nested: "",
2050
2001
  onSelect: (t) => h(e.id)
2051
2002
  }, {
2052
- default: f(() => [(l(), S(L(U(e)), {
2003
+ default: f(() => [(l(), S(L(V(e)), {
2053
2004
  block: e,
2054
2005
  viewport: t.viewport,
2055
- onFetchData: (t) => ee(e, t),
2006
+ onFetchData: (t) => te(e, t),
2056
2007
  onUpdate: (t) => O(s).updateBlock(e.id, t)
2057
2008
  }, null, 40, [
2058
2009
  "block",
@@ -2075,14 +2026,14 @@ var ga = { class: "tpl:relative tpl:w-full" }, _a = {
2075
2026
  "class",
2076
2027
  "onStart",
2077
2028
  "onUpdate:modelValue"
2078
- ]), B(r) ? (l(), g("div", va, [D("span", null, b(O(o).section.dropHere), 1)])) : x("", !0)], 6))), 128))], 2)]));
2029
+ ]), R(r) ? (l(), g("div", Sa, [D("span", null, b(O(o).section.dropHere), 1)])) : x("", !0)], 6))), 128))], 2)]));
2079
2030
  }
2080
- }), ba = ["width", "height"], xa = [
2031
+ }), wa = ["width", "height"], Ta = [
2081
2032
  "d",
2082
2033
  "stroke",
2083
2034
  "stroke-opacity",
2084
2035
  "stroke-width"
2085
- ], Sa = ["d", "fill"], Ca = /* @__PURE__ */ n({
2036
+ ], Ea = ["d", "fill"], Da = /* @__PURE__ */ n({
2086
2037
  __name: "SocialIconSvg",
2087
2038
  props: {
2088
2039
  platform: {},
@@ -2091,7 +2042,7 @@ var ga = { class: "tpl:relative tpl:w-full" }, _a = {
2091
2042
  iconSize: {}
2092
2043
  },
2093
2044
  setup(e) {
2094
- let t = e, n = k(() => ot[t.platform]), r = k(() => st[t.iconSize]), i = k(() => U(t.platform, t.iconTone)), a = k(() => le(t.iconStyle, t.iconTone)), o = k(() => {
2045
+ let t = e, n = k(() => lt[t.platform]), r = k(() => ut[t.iconSize]), i = k(() => ke(t.platform, t.iconTone)), a = k(() => le(t.iconStyle, t.iconTone)), o = k(() => {
2095
2046
  let e = {
2096
2047
  display: "inline-flex",
2097
2048
  alignItems: "center",
@@ -2129,7 +2080,7 @@ var ga = { class: "tpl:relative tpl:w-full" }, _a = {
2129
2080
  };
2130
2081
  default: return e;
2131
2082
  }
2132
- }), s = k(() => H(t.iconStyle)), c = k(() => Math.floor(r.value * s.value));
2083
+ }), s = k(() => ce(t.iconStyle)), c = k(() => Math.floor(r.value * s.value));
2133
2084
  function u(e) {
2134
2085
  let t = `${e.width / 2 * r.value / 24}px`, n = Math.round(e.opacity * 255).toString(16).padStart(2, "0"), i = `${e.color}${n}`;
2135
2086
  return `0 0 0 ${t} ${i}, inset 0 0 0 ${t} ${i}`;
@@ -2150,15 +2101,15 @@ var ga = { class: "tpl:relative tpl:w-full" }, _a = {
2150
2101
  "stroke-opacity": a.value.opacity,
2151
2102
  "stroke-width": a.value.width / s.value,
2152
2103
  "stroke-linejoin": "round"
2153
- }, null, 8, xa)) : x("", !0), D("path", {
2104
+ }, null, 8, Ta)) : x("", !0), D("path", {
2154
2105
  d: n.value.path,
2155
2106
  fill: d.value
2156
- }, null, 8, Sa)], 8, ba))], 4));
2107
+ }, null, 8, Ea)], 8, wa))], 4));
2157
2108
  }
2158
- }), wa = { class: "tpl:w-full" }, Ta = ["href"], Ea = {
2109
+ }), Oa = { class: "tpl:w-full" }, ka = ["href"], Aa = {
2159
2110
  key: 1,
2160
2111
  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)]"
2161
- }, Da = /* @__PURE__ */ n({
2112
+ }, ja = /* @__PURE__ */ n({
2162
2113
  __name: "SocialIconsBlock",
2163
2114
  props: {
2164
2115
  block: {},
@@ -2171,7 +2122,7 @@ var ga = { class: "tpl:relative tpl:w-full" }, _a = {
2171
2122
  gap: `${t.block.spacing}px`,
2172
2123
  justifyContent: t.block.align === "left" ? "flex-start" : t.block.align === "right" ? "flex-end" : "center"
2173
2124
  })), i = k(() => t.block.icons.length > 0);
2174
- return (t, o) => (l(), g("div", wa, [i.value ? (l(), g("div", {
2125
+ return (t, o) => (l(), g("div", Oa, [i.value ? (l(), g("div", {
2175
2126
  key: 0,
2176
2127
  style: F(r.value)
2177
2128
  }, [(l(!0), g(P, null, a(e.block.icons, (t) => (l(), g("a", {
@@ -2179,7 +2130,7 @@ var ga = { class: "tpl:relative tpl:w-full" }, _a = {
2179
2130
  href: t.url || "#",
2180
2131
  class: "tpl:cursor-default",
2181
2132
  onClick: o[0] ||= T(() => {}, ["prevent"])
2182
- }, [I(Ca, {
2133
+ }, [I(Da, {
2183
2134
  platform: t.platform,
2184
2135
  "icon-style": e.block.iconStyle,
2185
2136
  "icon-tone": e.block.iconTone,
@@ -2189,44 +2140,44 @@ var ga = { class: "tpl:relative tpl:w-full" }, _a = {
2189
2140
  "icon-style",
2190
2141
  "icon-tone",
2191
2142
  "icon-size"
2192
- ])], 8, Ta))), 128))], 4)) : (l(), g("div", Ea, [I(O(Cn), { size: 16 }), D("span", null, b(O(n).social.addIcons), 1)]))]));
2143
+ ])], 8, ka))), 128))], 4)) : (l(), g("div", Aa, [I(O(On), { size: 16 }), D("span", null, b(O(n).social.addIcons), 1)]))]));
2193
2144
  }
2194
- }), Oa = { class: "tpl:w-full" }, ka = {
2145
+ }), Ma = { class: "tpl:w-full" }, Na = {
2195
2146
  key: 0,
2196
2147
  class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
2197
2148
  style: {
2198
2149
  "background-color": "var(--tpl-bg-hover)",
2199
2150
  color: "var(--tpl-text-dim)"
2200
2151
  }
2201
- }, Aa = /* @__PURE__ */ n({
2152
+ }, Pa = /* @__PURE__ */ n({
2202
2153
  __name: "SpacerBlock",
2203
2154
  props: {
2204
2155
  block: {},
2205
2156
  viewport: {}
2206
2157
  },
2207
2158
  setup(e) {
2208
- let t = e, n = K(J, "SpacerBlock"), r = k(() => ({
2159
+ let t = e, n = G(J, "SpacerBlock"), r = k(() => ({
2209
2160
  height: `${t.block.height}px`,
2210
2161
  minHeight: `${t.block.height}px`,
2211
2162
  ...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
2212
2163
  }));
2213
- return (t, i) => (l(), g("div", Oa, [D("div", {
2164
+ return (t, i) => (l(), g("div", Ma, [D("div", {
2214
2165
  style: F(r.value),
2215
2166
  class: E(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:box-border tpl:border-y tpl:border-x-0 tpl:border-dashed": !O(n).state.previewMode }])
2216
- }, [O(n).state.previewMode ? x("", !0) : (l(), g("span", ka, b(e.block.height) + "px ", 1))], 6)]));
2167
+ }, [O(n).state.previewMode ? x("", !0) : (l(), g("span", Na, b(e.block.height) + "px ", 1))], 6)]));
2217
2168
  }
2218
- }), ja = { class: "tpl:w-full" }, Ma = { key: 0 }, Na = [
2169
+ }), Fa = { class: "tpl:w-full" }, Ia = { key: 0 }, La = [
2219
2170
  "aria-label",
2220
2171
  "data-placeholder",
2221
2172
  "onBlur"
2222
- ], Pa = [
2173
+ ], Ra = [
2223
2174
  "aria-label",
2224
2175
  "data-placeholder",
2225
2176
  "onBlur"
2226
- ], Fa = {
2177
+ ], za = {
2227
2178
  key: 1,
2228
2179
  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)]"
2229
- }, Ia = /*#__PURE__*/ An(/* @__PURE__ */ n({
2180
+ }, Ba = /*#__PURE__*/ Fn(/* @__PURE__ */ n({
2230
2181
  __name: "TableBlock",
2231
2182
  props: {
2232
2183
  block: {},
@@ -2240,7 +2191,7 @@ var ga = { class: "tpl:relative tpl:w-full" }, _a = {
2240
2191
  updated(e, t) {
2241
2192
  t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
2242
2193
  }
2243
- }, n = e, { t: r } = Z(), i = K(J, "TableBlock"), o = K(Y, "TableBlock"), s = k(() => n.block.rows.length > 0), c = k(() => {
2194
+ }, n = e, { t: r } = Z(), i = G(J, "TableBlock"), o = G(Y, "TableBlock"), s = k(() => n.block.rows.length > 0), c = k(() => {
2244
2195
  let e = {
2245
2196
  width: "100%",
2246
2197
  borderCollapse: "collapse",
@@ -2271,11 +2222,11 @@ var ga = { class: "tpl:relative tpl:w-full" }, _a = {
2271
2222
  } : n);
2272
2223
  i.updateBlock(n.block.id, { rows: o });
2273
2224
  }
2274
- return (e, n) => (l(), g("div", ja, [s.value ? (l(), g("table", {
2225
+ return (e, n) => (l(), g("div", Fa, [s.value ? (l(), g("table", {
2275
2226
  key: 0,
2276
2227
  style: F(c.value),
2277
2228
  class: "tpl-table-editable"
2278
- }, [f.value ? (l(), g("thead", Ma, [D("tr", null, [(l(!0), g(P, null, a(f.value.cells, (e) => m((l(), g("th", {
2229
+ }, [f.value ? (l(), g("thead", Ia, [D("tr", null, [(l(!0), g(P, null, a(f.value.cells, (e) => m((l(), g("th", {
2279
2230
  key: e.id,
2280
2231
  style: F(d.value),
2281
2232
  "aria-label": O(r).table.cellPlaceholder,
@@ -2284,7 +2235,7 @@ var ga = { class: "tpl:relative tpl:w-full" }, _a = {
2284
2235
  onBlur: (t) => _(f.value.id, e.id, t),
2285
2236
  onKeydown: n[0] ||= y(T((e) => e.target.blur(), ["prevent"]), ["enter"]),
2286
2237
  onClick: T(h, ["stop"])
2287
- }, null, 44, Na)), [[t, e.content]])), 128))])])) : x("", !0), D("tbody", null, [(l(!0), g(P, null, a(p.value, (e) => (l(), g("tr", { key: e.id }, [(l(!0), g(P, null, a(e.cells, (i) => m((l(), g("td", {
2238
+ }, null, 44, La)), [[t, e.content]])), 128))])])) : x("", !0), D("tbody", null, [(l(!0), g(P, null, a(p.value, (e) => (l(), g("tr", { key: e.id }, [(l(!0), g(P, null, a(e.cells, (i) => m((l(), g("td", {
2288
2239
  key: i.id,
2289
2240
  style: F(u.value),
2290
2241
  "aria-label": O(r).table.cellPlaceholder,
@@ -2293,9 +2244,9 @@ var ga = { class: "tpl:relative tpl:w-full" }, _a = {
2293
2244
  onBlur: (t) => _(e.id, i.id, t),
2294
2245
  onKeydown: n[1] ||= y(T((e) => e.target.blur(), ["prevent"]), ["enter"]),
2295
2246
  onClick: T(h, ["stop"])
2296
- }, null, 44, Pa)), [[t, i.content]])), 128))]))), 128))])], 4)) : (l(), g("div", Fa, [I(O(On), { size: 16 }), D("span", null, b(O(r).table.empty), 1)]))]));
2247
+ }, null, 44, Ra)), [[t, i.content]])), 128))]))), 128))])], 4)) : (l(), g("div", za, [I(O(Nn), { size: 16 }), D("span", null, b(O(r).table.empty), 1)]))]));
2297
2248
  }
2298
- }), [["__scopeId", "data-v-6751d456"]]), La = /* @__PURE__ */ n({
2249
+ }), [["__scopeId", "data-v-6751d456"]]), Va = /* @__PURE__ */ n({
2299
2250
  __name: "VideoPlayButton",
2300
2251
  props: { hoverEffect: {
2301
2252
  type: Boolean,
@@ -2311,9 +2262,8 @@ var ga = { class: "tpl:relative tpl:w-full" }, _a = {
2311
2262
  }, [D("polygon", { points: "5,3 19,12 5,21" })])], -1)]], 2));
2312
2263
  }
2313
2264
  });
2314
- //#endregion
2315
- //#region src/utils/videoThumbnail.ts
2316
- function Ra(e) {
2265
+ // src/utils/videoThumbnail.ts
2266
+ function Ha(e) {
2317
2267
  if (!e) return {
2318
2268
  platform: "unknown",
2319
2269
  videoId: null,
@@ -2345,25 +2295,24 @@ function Ra(e) {
2345
2295
  thumbnailUrl: null
2346
2296
  };
2347
2297
  }
2348
- function za(e, t) {
2349
- return t || Ra(e).thumbnailUrl;
2298
+ function Ua(e, t) {
2299
+ return t || Ha(e).thumbnailUrl;
2350
2300
  }
2351
- //#endregion
2352
- //#region src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
2353
- var Ba = ["src", "alt"], Va = {
2301
+ // src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
2302
+ var Wa = ["src", "alt"], Ga = {
2354
2303
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
2355
2304
  style: { opacity: "0.7" }
2356
- }, Ha = ["href"], Ua = ["src", "alt"], Wa = ["src", "alt"], Ga = {
2305
+ }, Ka = ["href"], qa = ["src", "alt"], Ja = ["src", "alt"], Ya = {
2357
2306
  key: 3,
2358
2307
  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)]"
2359
- }, Ka = /* @__PURE__ */ n({
2308
+ }, Xa = /* @__PURE__ */ n({
2360
2309
  __name: "VideoBlock",
2361
2310
  props: {
2362
2311
  block: {},
2363
2312
  viewport: {}
2364
2313
  },
2365
2314
  setup(e) {
2366
- let t = e, { t: n } = Z(), { syntax: r } = Mn(), i = k(() => Le(t.block.url, r) || Le(t.block.thumbnailUrl, r)), a = lt(() => i.value ? void 0 : t.block.thumbnailUrl || void 0), o = lt(() => i.value ? t.block.placeholderUrl : void 0), s = k(() => i.value ? null : t.block.thumbnailUrl ? a.value ?? null : za(t.block.url)), c = k(() => ({ textAlign: t.block.align })), u = k(() => {
2315
+ let t = e, { t: n } = Z(), { syntax: r } = Ln(), i = k(() => ze(t.block.url, r) || ze(t.block.thumbnailUrl, r)), a = ft(() => i.value ? void 0 : t.block.thumbnailUrl || void 0), o = ft(() => i.value ? t.block.placeholderUrl : void 0), s = k(() => i.value ? null : t.block.thumbnailUrl ? a.value ?? null : Ua(t.block.url)), c = k(() => ({ textAlign: t.block.align })), u = k(() => {
2367
2316
  let e = t.block.align;
2368
2317
  return {
2369
2318
  maxWidth: "100%",
@@ -2373,7 +2322,7 @@ var Ba = ["src", "alt"], Va = {
2373
2322
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
2374
2323
  marginRight: e === "center" ? "auto" : void 0
2375
2324
  };
2376
- }), d = k(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), f = k(() => Le(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
2325
+ }), d = k(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), f = k(() => ze(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
2377
2326
  return (t, r) => (l(), g("div", {
2378
2327
  class: "tpl:w-full",
2379
2328
  style: F(c.value)
@@ -2386,16 +2335,16 @@ var Ba = ["src", "alt"], Va = {
2386
2335
  src: O(o),
2387
2336
  alt: e.block.alt,
2388
2337
  style: F(d.value)
2389
- }, null, 12, Ba), I(La)], 4)) : i.value ? (l(), g("div", {
2338
+ }, null, 12, Wa), I(Va)], 4)) : i.value ? (l(), g("div", {
2390
2339
  key: 1,
2391
2340
  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)]",
2392
2341
  style: F([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, u.value])
2393
- }, [I(O(Tn), {
2342
+ }, [I(O(An), {
2394
2343
  size: 36,
2395
2344
  "stroke-width": 1.5,
2396
2345
  class: "tpl:text-[var(--tpl-primary)]",
2397
2346
  style: { opacity: "0.5" }
2398
- }), D("span", Va, [I(Ur, { text: f.value }, null, 8, ["text"])])], 4)) : s.value ? (l(), g(P, { key: 2 }, [e.block.url ? (l(), g("a", {
2347
+ }), D("span", Ga, [I(qr, { text: f.value }, null, 8, ["text"])])], 4)) : s.value ? (l(), g(P, { key: 2 }, [e.block.url ? (l(), g("a", {
2399
2348
  key: 0,
2400
2349
  href: e.block.url,
2401
2350
  target: "_blank",
@@ -2408,7 +2357,7 @@ var Ba = ["src", "alt"], Va = {
2408
2357
  src: s.value,
2409
2358
  alt: e.block.alt,
2410
2359
  style: F(d.value)
2411
- }, null, 12, Ua), I(La, { "hover-effect": "" })], 12, Ha)) : (l(), g("div", {
2360
+ }, null, 12, qa), I(Va, { "hover-effect": "" })], 12, Ka)) : (l(), g("div", {
2412
2361
  key: 1,
2413
2362
  class: "tpl:relative tpl:inline-block",
2414
2363
  style: F(u.value)
@@ -2417,53 +2366,53 @@ var Ba = ["src", "alt"], Va = {
2417
2366
  src: s.value,
2418
2367
  alt: e.block.alt,
2419
2368
  style: F(d.value)
2420
- }, null, 12, Wa), I(La)], 4))], 64)) : (l(), g("div", Ga, [I(O(Tn), {
2369
+ }, null, 12, Ja), I(Va)], 4))], 64)) : (l(), g("div", Ya, [I(O(An), {
2421
2370
  size: 40,
2422
2371
  "stroke-width": 1.5,
2423
2372
  class: "tpl:text-[var(--tpl-border-light)]"
2424
2373
  }), D("span", null, b(O(n).video.addVideo), 1)]))], 4));
2425
2374
  }
2426
- }), qa = {
2427
- section: ya,
2428
- title: ca,
2429
- paragraph: Ki,
2430
- image: zi,
2431
- button: Gr,
2432
- divider: xi,
2433
- video: Ka,
2434
- social: Da,
2435
- menu: Ui,
2436
- table: Ia,
2437
- spacer: Aa,
2438
- html: Di,
2439
- countdown: u(() => import("./CountdownBlock-C6USdwk3.js"))
2375
+ }), Za = {
2376
+ section: Ca,
2377
+ title: fa,
2378
+ paragraph: Xi,
2379
+ image: Ui,
2380
+ button: Yr,
2381
+ divider: Ti,
2382
+ video: Xa,
2383
+ social: ja,
2384
+ menu: qi,
2385
+ table: Ba,
2386
+ spacer: Pa,
2387
+ html: ji,
2388
+ countdown: u(() => import("./CountdownBlock-Dyr5P0IP.js"))
2440
2389
  };
2441
- function Ja(t) {
2442
- let { editor: n, config: r, translations: a, fontsManager: o } = t, { t: s, format: c } = Z(a), l = k(() => fe(fe(fe(ar(a), wr(n.content.value.settings?.locale)), ae(n.content.value.settings) === "rtl" ? {
2390
+ function Qa(t) {
2391
+ let { editor: n, config: r, translations: a, fontsManager: o } = t, { t: s, format: c } = Z(a), l = k(() => Be(Be(Be(lr(a), Or(n.content.value.settings?.locale)), ee(n.content.value.settings) === "rtl" ? {
2443
2392
  title: { textAlign: "right" },
2444
2393
  table: { textAlign: "right" }
2445
2394
  } : {}), r.blockDefaults ?? {}));
2446
2395
  n.setUiTheme(r.uiTheme ?? "auto");
2447
- let { resolvedTheme: u } = qn(k(() => n.state.uiTheme)), d = e(r.theme ?? {}), { themeStyles: f } = Yn({
2396
+ let { resolvedTheme: u } = Zn(k(() => n.state.uiTheme)), d = e(r.theme ?? {}), { themeStyles: f } = $n({
2448
2397
  themeOverrides: d,
2449
2398
  resolvedTheme: u,
2450
2399
  extraStyles: () => ({
2451
2400
  "--tpl-drop-text": `"${a.canvas.dropHere}"`,
2452
2401
  ...t.themeExtraStyles?.()
2453
2402
  })
2454
- }), m = t.history ?? Ze({
2403
+ }), m = t.history ?? et({
2455
2404
  content: n.content,
2456
2405
  setContent: (e, t) => n.setContent(e, t)
2457
2406
  });
2458
- t.history || Je(n, m);
2459
- let g = qe({
2407
+ t.history || Ze(n, m);
2408
+ let g = Xe({
2460
2409
  addBlock: n.addBlock,
2461
2410
  removeBlock: n.removeBlock,
2462
2411
  updateBlock: n.updateBlock,
2463
2412
  selectBlock: n.selectBlock,
2464
2413
  findBlockLocation: n.findBlockLocation,
2465
2414
  blockDefaults: () => l.value
2466
- }), _ = Xe(n), v = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? Ke({
2415
+ }), _ = $e(n), v = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? Ye({
2467
2416
  content: n.content,
2468
2417
  isDirty: () => n.state.isDirty,
2469
2418
  ...t.autoSaveOptions
@@ -2471,30 +2420,30 @@ function Ja(t) {
2471
2420
  v && (y = p(m.isNavigating, (e) => {
2472
2421
  e ? v.pause() : v.resume();
2473
2422
  }));
2474
- let b = Kn(n, {
2423
+ let b = Xn(n, {
2475
2424
  t: s,
2476
2425
  format: c
2477
- }, r.customBlocks ?? []), x = ln(r.colors);
2426
+ }, r.customBlocks ?? []), x = fn(r.colors);
2478
2427
  if (x.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."), x.invalidPresets.length > 0 && X.warn(`config.colors.presets skipped invalid entries: ${x.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), x.allowCustom === !1) {
2479
- let e = ir(x.presets, r.blockDefaults, r.templateDefaults);
2428
+ let e = cr(x.presets, r.blockDefaults, r.templateDefaults);
2480
2429
  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.`);
2481
2430
  }
2482
- let S = dn(r.templateSettings);
2483
- for (let e of S.unknown) X.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${fn.join(", ")}) — skipping it.`);
2484
- let C = Xn();
2485
- tr(C, qa);
2431
+ let S = mn(r.templateSettings);
2432
+ for (let e of S.unknown) X.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${hn.join(", ")}) — skipping it.`);
2433
+ let C = er();
2434
+ ar(C, Za);
2486
2435
  let w = /* @__PURE__ */ new Set();
2487
2436
  function T(e) {
2488
2437
  for (let t of e) {
2489
- C.registerCustom(t, yi);
2490
- for (let e of Tr(t, x)) w.has(e.id) || (w.add(e.id), X.warn(e.message));
2438
+ C.registerCustom(t, Ci);
2439
+ for (let e of kr(t, x)) w.has(e.id) || (w.add(e.id), X.warn(e.message));
2491
2440
  }
2492
2441
  }
2493
2442
  r.customBlocks?.length && T(r.customBlocks);
2494
- let E = Rn();
2443
+ let E = Hn();
2495
2444
  if (A() && h(E.dispose), t.containerEl) {
2496
2445
  let e = t.containerEl;
2497
- G(document, "pointerdown", (t) => {
2446
+ _t(document, "pointerdown", (t) => {
2498
2447
  let n = e.value;
2499
2448
  n && (t.composedPath?.() ?? []).includes(n) && E.claim();
2500
2449
  }, { capture: !0 });
@@ -2504,7 +2453,7 @@ function Ja(t) {
2504
2453
  e ? e.save() : v?.flush();
2505
2454
  }
2506
2455
  function O(e) {
2507
- E.isActive() && Dr(e, {
2456
+ E.isActive() && jr(e, {
2508
2457
  history: m,
2509
2458
  selectBlock: (e) => n.selectBlock(e),
2510
2459
  getSelectedBlockId: () => n.state.selectedBlockId,
@@ -2515,43 +2464,43 @@ function Ja(t) {
2515
2464
  onCancelPick: () => t.capabilities?.savedBlocks?.cancelPicking()
2516
2465
  });
2517
2466
  }
2518
- G(document, "keydown", O);
2467
+ _t(document, "keydown", O);
2519
2468
  let j = e(null), M = t.editorRoot ?? document;
2520
- i(zt, M), i(_t, j), i(Lt, a), i(J, n), i(an, m), i(Bt, g), i(Wt, _), i(Y, o), i(wt, f), i(Rt, u), i(Zt, l), i(It, r.locale), i(tn, C), i(Qt, r.customBlocks ?? []), i(on, r.paletteBlocks), i(Vt, nr(r.htmlBlockPreview)), i(vt, r.layout), i(Ft, r.sectionWrapper), i(Ut, x), i($t, S.fields), i(Yt, Zn(n.content, C));
2521
- let P = Me(r.mergeTags?.syntax);
2469
+ i(Ht, M), i(xt, j), i(Bt, a), i(J, n), i(cn, m), i(Ut, g), i(qt, _), i(Y, o), i(Ot, f), i(Vt, u), i(en, l), i(zt, r.locale), i(an, C), i(tn, r.customBlocks ?? []), i(ln, r.paletteBlocks), i(Wt, or(r.htmlBlockPreview)), i(St, r.layout), i(Rt, r.sectionWrapper), i(Kt, x), i(nn, S.fields), i(Qt, tr(n.content, C));
2470
+ let P = je(r.mergeTags?.syntax);
2522
2471
  for (let e of ["opener", "closer"]) {
2523
2472
  let t = P[e];
2524
2473
  typeof t == "string" && t.trim() === "" && X.warn(`config.mergeTags.syntax.${e} is blank — ignoring it.`);
2525
2474
  }
2526
- typeof P.opener != "string" && typeof P.closer == "string" && P.closer.trim() !== "" && we(P) === null && X.warn("config.mergeTags.syntax.closer has no effect without an opener — set opener to turn on autocomplete for this syntax.");
2475
+ typeof P.opener != "string" && typeof P.closer == "string" && P.closer.trim() !== "" && Ce(P) === null && X.warn("config.mergeTags.syntax.closer has no effect without an opener — set opener to turn on autocomplete for this syntax.");
2527
2476
  let F = N(r.mergeTags?.tags ?? []);
2528
2477
  function I(e) {
2529
2478
  Array.isArray(e) ? F.value = e : X.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
2530
2479
  }
2531
- i(q, F), i(kt, P), i(jt, r.mergeTags?.onRequest ?? null), i(qt, r.mergeTags?.autocomplete !== !1), i(Ot, r.mergeTags?.showRawValue !== !1);
2532
- let L = e(je(r.mergeTags?.tags ?? []));
2533
- i(Dt, L);
2534
- let R = Bn({
2480
+ i(K, F), i(Nt, P), i(Pt, r.mergeTags?.onRequest ?? null), i(Xt, r.mergeTags?.autocomplete !== !1), i(Mt, r.mergeTags?.showRawValue !== !1);
2481
+ let L = e(Ae(r.mergeTags?.tags ?? []));
2482
+ i(jt, L);
2483
+ let R = Wn({
2535
2484
  resolvePreview: r.resolvePreview,
2536
2485
  getContent: () => {
2537
2486
  let e = n.content.value;
2538
- return r.layout && n.state.previewMode ? Ve(r.layout, e) : e;
2487
+ return r.layout && n.state.previewMode ? ue(r.layout, e) : e;
2539
2488
  },
2540
2489
  isActive: () => n.state.previewMode
2541
2490
  });
2542
- i(Pt, R), i(St, r.resolvePreview);
2491
+ i(Lt, R), i(Et, r.resolvePreview);
2543
2492
  let z = k(() => !(n.state.previewMode && R.isConfigured));
2544
- i(en, z);
2545
- let B = Vn();
2546
- i(gt, B), i(Kt, e(!1)), i(yt, e(!1)), i(Nt, r.logicTags?.tags ?? []), i(nn, r.logicTags?.pairs ?? []), i(Ct, r.logicTags?.onRequest ?? null), i(bt, Hn()), i(Et, r.onRequestMedia ?? null), i(Ht, r.canDropMedia ?? null), i(rn, r.resolveImageUrl ? tt(r.resolveImageUrl) : null), i(Gt, r.displayConditions?.conditions ?? []), i(Xt, r.displayConditions?.allowCustom ?? !1), i(Jt, t.capabilities ?? {}), i(Mt, b);
2547
- let V = Un(r.lint) ? null : Gn({
2493
+ i(rn, z);
2494
+ let B = Gn();
2495
+ i(bt, B), i(Yt, e(!1)), i(Ct, e(!1)), i(It, r.logicTags?.tags ?? []), i(on, r.logicTags?.pairs ?? []), i(Dt, r.logicTags?.onRequest ?? null), i(wt, Kn()), i(At, r.onRequestMedia ?? null), i(Gt, r.canDropMedia ?? null), i(sn, r.resolveImageUrl ? it(r.resolveImageUrl) : null), i(Jt, r.displayConditions?.conditions ?? []), i($t, r.displayConditions?.allowCustom ?? !1), i(Zt, t.capabilities ?? {}), i(Ft, b);
2496
+ let V = qn(r.lint) ? null : Yn({
2548
2497
  content: n.content,
2549
2498
  options: r.lint ?? {},
2550
2499
  updateBlock: n.updateBlock,
2551
2500
  updateSettings: n.updateSettings,
2552
2501
  removeBlock: n.removeBlock
2553
2502
  });
2554
- i(Tt, V);
2503
+ i(kt, V);
2555
2504
  function H() {
2556
2505
  y?.(), V?.destroy(), v?.destroy(), m.destroy();
2557
2506
  }
@@ -2580,7 +2529,6 @@ function Ja(t) {
2580
2529
  destroy: H
2581
2530
  };
2582
2531
  }
2583
- //#endregion
2584
- export { kr as A, Jr as C, Rr as D, Lr as E, vr as F, _r as I, gr as L, xr as M, br as N, Or as O, yr as P, Bn as R, Xr as S, Nr as T, ui as _, Da as a, ti as b, fa as c, Ki as d, Ui as f, yi as g, xi as h, Aa as i, pr as j, Vr as k, ca as l, Di as m, Ka as n, ya as o, zi as p, Ia as r, la as s, Ja as t, oa as u, ci as v, Gr as w, Zr as x, oi as y };
2532
+ export { Nr as A, Qr as C, Hr as D, Vr as E, Sr as F, xr as I, br as L, Tr as M, wr as N, Mr as O, Cr as P, Wn as R, ei as S, Lr as T, mi as _, ja as a, ai as b, ga as c, Xi as d, qi as f, Ci as g, Ti as h, Pa as i, _r as j, Gr as k, fa as l, ji as m, Xa as n, Ca as o, Ui as p, Ba as r, pa as s, Qa as t, ua as u, fi as v, Yr as w, ti as x, ui as y };
2585
2533
 
2586
- //# sourceMappingURL=useEditorCore-CCVFi1YZ.js.map
2534
+ //# sourceMappingURL=useEditorCore-CjaEV_01.js.map