@templatical/editor 0.51.0 → 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 (366) 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 +7 -7
  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.css +1 -1
  253. package/dist/cdn/editor.js +389 -378
  254. package/dist/cdn/editor.js.map +1 -1
  255. package/dist/{check-yYsp5Xpk.js → check-N3x4z_rH.js} +1 -2
  256. package/dist/{chevron-down-DTmD06_j.js → chevron-down-gXu9qNwO.js} +1 -2
  257. package/dist/{chevron-right-BSeYZOxc.js → chevron-right-rL0ayGk5.js} +1 -2
  258. package/dist/{chevron-up-BOApwrxi.js → chevron-up-0ugh8HnW.js} +1 -2
  259. package/dist/{circle-alert-BMszY8im.js → circle-alert-B9Ls75B5.js} +1 -2
  260. package/dist/{clock-HADxnl6-.js → clock-BqHBaCLm.js} +1 -2
  261. package/dist/{createCloudRuntime-DVQI_ReU.js → createCloudRuntime-B5VIdnwz.js} +11 -17
  262. package/dist/{createLucideIcon-0lYYH3EW.js → createLucideIcon-BV7Gwz_Z.js} +6 -11
  263. package/dist/{de-DBOTcDj2.js → de-6M4JoHoD.js} +1 -2
  264. package/dist/{de-DNuYQTmS.js → de-CeFJ6wbM.js} +1 -2
  265. package/dist/{de-JvCTMJPy.js → de-DtrXVcuY.js} +1 -2
  266. package/dist/{dist-DI4_YSnG.js → dist-BA-jTQgw.js} +3 -4
  267. package/dist/{dist-BC-ZEYLd.js → dist-BF5zEHop.js} +2 -3
  268. package/dist/{dist-CyBwSiAa.js → dist-BS5uKktL.js} +2 -3
  269. package/dist/{dist-C7EtxNCb.js → dist-CEdyyDn7.js} +2 -3
  270. package/dist/{dist-Cr7RPxI9.js → dist-CWSG7Kj0.js} +478 -461
  271. package/dist/{dist-DXyGqIDE.js → dist-Cy8I5scI.js} +2 -3
  272. package/dist/{dist-DtOF3bDW.js → dist-CzrLYq2s.js} +398 -344
  273. package/dist/{dist-DVNjPKsH.js → dist-D6fZec6r.js} +3 -4
  274. package/dist/{dist-C_dV9QAx.js → dist-DDN7yR-w.js} +7 -7
  275. package/dist/{dist-CuLwJF7H.js → dist-Dd5MU2Ev.js} +23 -14
  276. package/dist/dist-DyFArF_G.js +4 -0
  277. package/dist/{dist-DBxgrOeo.js → dist-V7W1UhVr.js} +1882 -1792
  278. package/dist/{dist-DPcf6XZ8.js → dist-p3wymUDt.js} +2 -3
  279. package/dist/dist-pA3ooG6N.js +4 -0
  280. package/dist/{dist-3HpYixwF.js → dist-txQLT2sF.js} +173 -161
  281. package/dist/{editor-modal-Bzhl-PgI.js → editor-modal-Du9VI9q4.js} +203 -218
  282. package/dist/{emojiData-6m0DBh7O.js → emojiData-CBNuCfum.js} +1 -2
  283. package/dist/en-CyEE7FPY.js +1 -0
  284. package/dist/{en-CW71OK66.js → en-D14i5nFh.js} +1 -2
  285. package/dist/{en-CDhWRrF_.js → en-FzUuJ8HW.js} +1 -2
  286. package/dist/{es-CAv-Vldw.js → es-Dw_h7Oll.js} +1 -2
  287. package/dist/{es-DdK7zQfi.js → es-zDacbMhs.js} +1 -2
  288. package/dist/{extensions-CdyweA50.js → extensions-FRYhx7qa.js} +59 -68
  289. package/dist/{eye-DWkSvYpj.js → eye-BKj9Tfnc.js} +1 -2
  290. package/dist/{formatAbsoluteDateTime-DMmop3C-.js → formatAbsoluteDateTime-Ck2_zXra.js} +1 -2
  291. package/dist/{formatRelativeTime-CtUU-QZ8.js → formatRelativeTime-BTD8Ktt-.js} +0 -1
  292. package/dist/{fr-DVPtxpR6.js → fr-BJaeKu_8.js} +1 -2
  293. package/dist/{fr-Dz5Bgb7-.js → fr-CSgYtjOd.js} +1 -2
  294. package/dist/{image-DesWjcZ4.js → image-DNdvdTla.js} +1 -2
  295. package/dist/index.d.ts +6 -6
  296. package/dist/{info-ClWJGoZy.js → info-Bx-kBkbH.js} +1 -2
  297. package/dist/{ja-Di-zJiT8.js → ja-B7H3ID8O.js} +1 -2
  298. package/dist/{ja-dcWzjStz.js → ja-Cu2HdYaK.js} +1 -2
  299. package/dist/{keys-Zd9KWRD1.js → keys-DBjrQkYH.js} +2 -3
  300. package/dist/{link-BqRicFTA.js → link-D8-rYdIQ.js} +1 -2
  301. package/dist/{liquid.browser-Ct2-EezB.js → liquid.browser-D1RxawkY.js} +704 -686
  302. package/dist/{list-bojQr9bn.js → list-BneisA27.js} +1 -2
  303. package/dist/{loader-circle-B2B8LbUu.js → loader-circle-DBEXphyx.js} +1 -2
  304. package/dist/{logger-k9Nbj3Cp.js → logger-BOu7oEtk.js} +1 -2
  305. package/dist/{message-circle-BEuiNsyZ.js → message-circle-Bg4xInCM.js} +1 -2
  306. package/dist/{nl-CvVuHYFL.js → nl-176ySmc5.js} +1 -2
  307. package/dist/{nl-LZNqQgE4.js → nl-1Ai2NykB.js} +1 -2
  308. package/dist/{normalizeMergeTagMarkup-P6SUBuPv.js → normalizeMergeTagMarkup-IH8COHzd.js} +30 -31
  309. package/dist/{package-DCROB4aM.js → package-B40Vkfsp.js} +1 -2
  310. package/dist/{pencil-CEotCKbf.js → pencil-CYdAHTds.js} +1 -2
  311. package/dist/{preRenderCustomBlocks-D8rr61_z.js → preRenderCustomBlocks-AbZArwkR.js} +4 -5
  312. package/dist/{pt-BR-CHM-ZKvE.js → pt-BR-Bp92Fc6J.js} +1 -2
  313. package/dist/{pt-BR-D6P_mNwA.js → pt-BR-CIbp__Z7.js} +1 -2
  314. package/dist/{pt-BR-ZhO4vgyq.js → pt-BR-dDlTwX18.js} +1 -2
  315. package/dist/{readableTextColor-f8Kykfnh.js → readableTextColor-BfZUGnVj.js} +1 -2
  316. package/dist/{refresh-cw-C6M2mHNC.js → refresh-cw-Bb1FWrU0.js} +1 -2
  317. package/dist/{rolldown-runtime-Dy4uBu1J.js → rolldown-runtime-CGnMp29N.js} +1 -2
  318. package/dist/{runtime-dom.esm-bundler-B8WCZWUm.js → runtime-dom.esm-bundler-CLGymEyk.js} +7 -8
  319. package/dist/sanitizeHtml-CnOA1efV.js +942 -0
  320. package/dist/{search-Cy99zPYf.js → search-BZEo08gi.js} +1 -2
  321. package/dist/{send-BDLJFsf3.js → send-DHtrnXQs.js} +1 -2
  322. package/dist/{smartphone-CVvQaNA4.js → smartphone-dlN3vpA3.js} +1 -2
  323. package/dist/{socialIcons-Dd-jRiVe.js → socialIcons-B_d52_eS.js} +256 -267
  324. package/dist/{sparkles-Ce0Qz0ox.js → sparkles-NOttoDnJ.js} +1 -2
  325. package/dist/{square-BWlolnXe.js → square-B1CJgdt2.js} +1 -2
  326. package/dist/style.css +1 -1
  327. package/dist/{styleConstants-v1dNKgJf.js → styleConstants-B8xVRiwX.js} +1 -2
  328. package/dist/{templateSettingsFields-YCFVBVYh.js → templateSettingsFields-cjlP-jdw.js} +1 -2
  329. package/dist/templatical-editor.js +413 -401
  330. package/dist/{text-align-start-D1V5gPTy.js → text-align-start-zpoXmb-Z.js} +1 -2
  331. package/dist/{trash-CZfiUFmw.js → trash-CGbk4Sgt.js} +1 -2
  332. package/dist/{triangle-alert-CFDzyFC7.js → triangle-alert-CKLMyGVp.js} +1 -2
  333. package/dist/{upload-BJfvdIrD.js → upload-DQoackAn.js} +1 -2
  334. package/dist/{useCloudI18n-Dcjua65H.js → useCloudI18n-DcLtxOQZ.js} +3 -4
  335. package/dist/{useEditorCore-BTLeAVlM.js → useEditorCore-DG9UvWUm.js} +931 -984
  336. package/dist/useEditorRoot-BKr6nNkC.js +7 -0
  337. package/dist/{useI18n-BdoY7xDE.js → useI18n-CeTm777E.js} +3 -4
  338. package/dist/{useLogicTag-DKLZ1T9H.js → useLogicTag-DFDYJeMN.js} +4 -5
  339. package/dist/{useMergeTag-Bhdx7AKk.js → useMergeTag-B46vACAG.js} +4 -5
  340. package/dist/{usePopoverPosition-BZea45XK.js → usePopoverPosition-C42kD7zt.js} +6 -10
  341. package/dist/{useScrollToBlock-FmNMALM_.js → useScrollToBlock-C-NzvjeO.js} +4 -6
  342. package/dist/{vue.runtime.esm-bundler-DgFJ6GPG.js → vue.runtime.esm-bundler-CrlI8j5R.js} +14 -18
  343. package/dist/{withCurrentFont-BATJHNve.js → withCurrentFont-v_a4Oso8.js} +2 -3
  344. package/dist/{x-CZ0Js0hA.js → x-zcrnmcmU.js} +1 -2
  345. package/package.json +24 -22
  346. package/dist/AiHeaderMenu-BEaTazx4.js +0 -36
  347. package/dist/cdn/chunks/AiHeaderMenu-oldAAFyL.js +0 -37
  348. package/dist/cdn/chunks/AiHeaderMenu-oldAAFyL.js.map +0 -1
  349. package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js.map +0 -1
  350. package/dist/cdn/chunks/LoadingTrack-BIcL4NiY.js +0 -12
  351. package/dist/cdn/chunks/en-ifvu6oPv.js +0 -1
  352. package/dist/cdn/chunks/liquid.browser-Bbt17cVz.js.map +0 -1
  353. package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js +0 -62
  354. package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js.map +0 -1
  355. package/dist/cdn/chunks/src-BNFnxfrA.js.map +0 -1
  356. package/dist/cdn/chunks/src-Bs_yxk3h.js.map +0 -1
  357. package/dist/cdn/chunks/src-K6fw_35b.js +0 -649
  358. package/dist/cdn/chunks/src-K6fw_35b.js.map +0 -1
  359. package/dist/cdn/chunks/tiptap-CtVrAViq.js.map +0 -1
  360. package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js.map +0 -1
  361. package/dist/cdn/chunks/useEditorRoot-CR5GjJD6.js +0 -10
  362. package/dist/dist-BPFcLKTw.js +0 -5
  363. package/dist/dist-D7Yj7E-F.js +0 -5
  364. package/dist/en-DwV15ltA.js +0 -1
  365. package/dist/sanitizeRichTextHtml-DeISfLFr.js +0 -60
  366. package/dist/useEditorRoot-DUy67lJu.js +0 -8
@@ -1,26 +1,26 @@
1
- import { At as e, C as t, G as n, Mt as r, O as i, Q as a, U as o, X as s, Y as c, Z as l, _ as u, c as d, et as f, f as p, g as m, it as h, j as g, jt as _, ot as v, r as y, st as b, y as x, z as S } from "./vue.runtime.esm-bundler-DgFJ6GPG.js";
2
- import { C, D as w, K as T, V as E, _ as ee, b as D, ct as O, d as k, f as A, g as j, h as M, l as N, mt as P, ot as F, p as I, q as L, tt as te, v as R, vt as z, wt as B, x as V, y as H } from "./dist-DtOF3bDW.js";
3
- import { r as ne } from "./dist-DI4_YSnG.js";
4
- import { L as U, P as re, c as ie, x as W } from "./keys-Zd9KWRD1.js";
5
- import { t as ae } from "./useI18n-BdoY7xDE.js";
6
- import { o as oe, s as G } from "./usePopoverPosition-BZea45XK.js";
7
- import { t as K } from "./createLucideIcon-0lYYH3EW.js";
8
- import { t as se } from "./upload-BJfvdIrD.js";
9
- import { t as ce } from "./loader-circle-B2B8LbUu.js";
10
- //#region ../core/dist/index.js
11
- function q(e) {
1
+ import { At as e, C as t, G as n, Mt as r, O as i, Q as a, U as o, X as s, Y as c, Z as l, _ as u, c as d, et as f, f as p, g as m, it as h, j as g, jt as _, ot as v, r as y, st as b, y as x, z as S } from "./vue.runtime.esm-bundler-CrlI8j5R.js";
2
+ import { Ot as C, S as w, St as T, U as E, X as D, Y as O, _ as k, b as A, f as j, ft as M, g as N, it as P, k as F, l as I, m as L, p as R, ut as z, v as ee, vt as B, w as V, x as te, y as H } from "./dist-CzrLYq2s.js";
3
+ import { r as U } from "./dist-BA-jTQgw.js";
4
+ import { L as W, P as ne, c as re, x as G } from "./keys-DBjrQkYH.js";
5
+ import { t as ie } from "./useI18n-CeTm777E.js";
6
+ import { o as ae, s as K } from "./usePopoverPosition-C42kD7zt.js";
7
+ import { t as q } from "./createLucideIcon-BV7Gwz_Z.js";
8
+ import { t as oe } from "./upload-DQoackAn.js";
9
+ import { t as se } from "./loader-circle-DBEXphyx.js";
10
+ // ../core/dist/index.js
11
+ function J(e) {
12
12
  return e instanceof Error ? e : Error(String(e), { cause: e });
13
13
  }
14
- function J(e, t) {
14
+ function Y(e, t) {
15
15
  try {
16
16
  t();
17
17
  } catch (t) {
18
- e?.(q(t));
18
+ e?.(J(t));
19
19
  }
20
20
  }
21
- function le(e) {
22
- let t = e.content ?? w(e.defaultFontFamily, e.templateDefaults);
23
- R(t), H(t);
21
+ function ce(e) {
22
+ let t = e.content ?? F(e.defaultFontFamily, e.templateDefaults);
23
+ H(t), A(t);
24
24
  let n = s({
25
25
  template: null,
26
26
  content: t,
@@ -84,7 +84,7 @@ function le(e) {
84
84
  };
85
85
  }
86
86
  function v(e, t = !0) {
87
- R(e), H(e), n.content = e, t && u();
87
+ H(e), A(e), n.content = e, t && u();
88
88
  }
89
89
  function y(e) {
90
90
  e && g(e) || (n.selectedBlockId = e);
@@ -101,28 +101,28 @@ function le(e) {
101
101
  function C(e) {
102
102
  n.previewMode = e, e && (n.selectedBlockId = null);
103
103
  }
104
- function T(e, t) {
104
+ function w(e, t) {
105
105
  if (g(e)) return;
106
106
  let r = p(n.content.blocks, e);
107
107
  r && (Object.assign(r, t), u());
108
108
  }
109
- function E(e) {
109
+ function T(e) {
110
110
  n.content.settings = {
111
111
  ...n.content.settings,
112
112
  ...e
113
113
  }, u();
114
114
  }
115
- function ee(e, t, r = 0, i) {
115
+ function E(e, t, r = 0, i) {
116
116
  let a = {
117
117
  settings: n.content.settings,
118
118
  blocks: [e]
119
119
  };
120
- if (R(a), H(a), !(t && e.type === "section")) {
120
+ if (H(a), A(a), !(t && e.type === "section")) {
121
121
  if (t) {
122
122
  if (g(t)) return;
123
123
  let a = p(n.content.blocks, t);
124
124
  if (a && a.type === "section") {
125
- if (r < 0 || r >= L(a.columns)) return;
125
+ if (r < 0 || r >= D(a.columns)) return;
126
126
  a.children[r] = a.children[r] || [];
127
127
  let t = a.children[r];
128
128
  i !== void 0 && i < t.length ? t.splice(i, 0, e) : t.push(e);
@@ -131,7 +131,7 @@ function le(e) {
131
131
  u();
132
132
  }
133
133
  }
134
- function D(e) {
134
+ function O(e) {
135
135
  if (g(e)) return;
136
136
  let t = h(n.content.blocks, e);
137
137
  if (t) {
@@ -146,7 +146,7 @@ function le(e) {
146
146
  }
147
147
  }
148
148
  }
149
- function O(e, t, r, i = 0) {
149
+ function k(e, t, r, i = 0) {
150
150
  if (g(e) || r && g(r)) return;
151
151
  let a = h(n.content.blocks, e);
152
152
  if (!a) return;
@@ -155,34 +155,34 @@ function le(e) {
155
155
  let s;
156
156
  if (r) {
157
157
  let e = p(n.content.blocks, r);
158
- if (!e || e.type !== "section" || i < 0 || i >= L(e.columns)) return;
158
+ if (!e || e.type !== "section" || i < 0 || i >= D(e.columns)) return;
159
159
  e.children[i] = e.children[i] || [], s = e.children[i];
160
160
  } else s = n.content.blocks;
161
161
  let [c] = a.blocks.splice(o, 1);
162
162
  s.splice(t, 0, c), u();
163
163
  }
164
- function k() {
164
+ function j() {
165
165
  u();
166
166
  }
167
- function A(e, t) {
168
- throw new I(`[Templatical] Templates: ${e} ${t}`);
167
+ function M(e, t) {
168
+ throw new L(`[Templatical] Templates: ${e} ${t}`);
169
169
  }
170
- function j(t) {
171
- J(e.onError, t);
170
+ function N(t) {
171
+ Y(e.onError, t);
172
172
  }
173
- function M(t) {
173
+ function P(t) {
174
174
  let { templates: n } = e;
175
- return n || A(t, "needs a templates provider. Pass one as `init({ templates })` to enable saving and loading."), n;
175
+ return n || M(t, "needs a templates provider. Pass one as `init({ templates })` to enable saving and loading."), n;
176
176
  }
177
- function N(e) {
177
+ function I(e) {
178
178
  n.template && (n.template = {
179
179
  ...n.template,
180
180
  name: e
181
181
  }, u());
182
182
  }
183
- async function P(t) {
184
- let a = M("create()"), { create: o } = a;
185
- typeof o != "function" && A("create()", "is disabled by the provider — its `create` is `false`.");
183
+ async function R(t) {
184
+ let a = P("create()"), { create: o } = a;
185
+ typeof o != "function" && M("create()", "is disabled by the provider — its `create` is `false`.");
186
186
  let s, l = ++i;
187
187
  n.isLoading = !0;
188
188
  try {
@@ -197,26 +197,26 @@ function le(e) {
197
197
  } finally {
198
198
  i === l && (n.isLoading = !1);
199
199
  }
200
- return j(() => a.onCreated?.(s)), s;
200
+ return N(() => a.onCreated?.(s)), s;
201
201
  }
202
- async function F(t, a) {
203
- let o = M("load()"), s, c = ++i;
202
+ async function z(t, a) {
203
+ let o = P("load()"), s, c = ++i;
204
204
  n.isLoading = !0;
205
205
  try {
206
- if (s = await o.load(t), R(s.content), H(s.content), a && !a()) return s;
206
+ if (s = await o.load(t), H(s.content), A(s.content), a && !a()) return s;
207
207
  n.template = s, n.content = s.content, n.isDirty = !1, r.value++;
208
208
  } catch (t) {
209
209
  throw e.onError?.(t), t;
210
210
  } finally {
211
211
  i === c && (n.isLoading = !1);
212
212
  }
213
- return j(() => o.onLoaded?.(s)), s;
213
+ return N(() => o.onLoaded?.(s)), s;
214
214
  }
215
- async function te(t = "api") {
216
- let r = M("save()"), { save: i } = r;
217
- typeof i != "function" && A("save()", "is disabled by the provider — its `save` is `false`.");
215
+ async function ee(t = "api") {
216
+ let r = P("save()"), { save: i } = r;
217
+ typeof i != "function" && M("save()", "is disabled by the provider — its `save` is `false`.");
218
218
  let a = n.template;
219
- a || A("save()", "has no template loaded. Call create() or load() first.");
219
+ a || M("save()", "has no template loaded. Call create() or load() first.");
220
220
  let o = a.name === void 0 ? { content: n.content } : {
221
221
  name: a.name,
222
222
  content: n.content
@@ -237,9 +237,9 @@ function le(e) {
237
237
  } finally {
238
238
  n.isSaving = !1;
239
239
  }
240
- return j(() => r.onSaved?.(s, { trigger: t })), s;
240
+ return N(() => r.onSaved?.(s, { trigger: t })), s;
241
241
  }
242
- function z() {
242
+ function B() {
243
243
  return n.template?.id !== void 0;
244
244
  }
245
245
  return {
@@ -254,25 +254,25 @@ function le(e) {
254
254
  setDarkMode: x,
255
255
  setUiTheme: S,
256
256
  setPreviewMode: C,
257
- updateBlock: T,
258
- updateSettings: E,
259
- addBlock: ee,
260
- removeBlock: D,
261
- moveBlock: O,
262
- markDirty: k,
257
+ updateBlock: w,
258
+ updateSettings: T,
259
+ addBlock: E,
260
+ removeBlock: O,
261
+ moveBlock: k,
262
+ markDirty: j,
263
263
  findBlockLocation: _,
264
- setName: N,
265
- create: P,
266
- load: F,
267
- save: te,
268
- hasTemplate: z
264
+ setName: I,
265
+ create: R,
266
+ load: z,
267
+ save: ee,
268
+ hasTemplate: B
269
269
  };
270
270
  }
271
- var ue = 50, Y = 300, de = 1500;
271
+ var le = 50, ue = 300, de = 1500;
272
272
  function fe(e) {
273
- let { content: t, setContent: n, maxSize: r = ue } = e, i = a([]), s = a([]), c = a(!1), l = null, u = null, d = o(() => i.value.length > 0), f = o(() => s.value.length > 0);
273
+ let { content: t, setContent: n, maxSize: r = le } = e, i = a([]), s = a([]), c = a(!1), l = null, u = null, d = o(() => i.value.length > 0), f = o(() => s.value.length > 0);
274
274
  function p() {
275
- return z(t.value);
275
+ return T(t.value);
276
276
  }
277
277
  function m(e) {
278
278
  i.value.push(e), i.value.length > r && i.value.splice(0, i.value.length - r);
@@ -286,11 +286,11 @@ function fe(e) {
286
286
  function _(e) {
287
287
  u && u.blockId === e ? (clearTimeout(u.timeoutId), u.timeoutId = setTimeout(() => {
288
288
  u = null;
289
- }, Y)) : (h(), m(p()), s.value = [], u = {
289
+ }, ue)) : (h(), m(p()), s.value = [], u = {
290
290
  blockId: e,
291
291
  timeoutId: setTimeout(() => {
292
292
  u = null;
293
- }, Y)
293
+ }, ue)
294
294
  });
295
295
  }
296
296
  function v() {
@@ -331,11 +331,11 @@ function fe(e) {
331
331
  function pe(e) {
332
332
  let { addBlock: t, removeBlock: n, updateBlock: r, selectBlock: i, findBlockLocation: a } = e;
333
333
  function o(n, r, a) {
334
- let o = typeof e.blockDefaults == "function" ? e.blockDefaults() : e.blockDefaults, s = C(n, o);
334
+ let o = typeof e.blockDefaults == "function" ? e.blockDefaults() : e.blockDefaults, s = V(n, o);
335
335
  return t(s, r, a), i(s.id), s;
336
336
  }
337
337
  function s(e, n, r) {
338
- let o = D(e);
338
+ let o = te(e);
339
339
  if (n !== void 0 || r !== void 0) t(o, n, r);
340
340
  else {
341
341
  let i = a?.(e.id) ?? null;
@@ -505,7 +505,7 @@ function we(e) {
505
505
  }
506
506
  function Q(e, t, n) {
507
507
  let r = {}, i = [];
508
- for (let i of Object.keys(t)) n.has(i) || t[i] === void 0 || E(e[i], t[i]) || (r[i] = z(t[i]));
508
+ for (let i of Object.keys(t)) n.has(i) || t[i] === void 0 || E(e[i], t[i]) || (r[i] = T(t[i]));
509
509
  for (let r of Object.keys(e)) n.has(r) || e[r] === void 0 || t[r] === void 0 && i.push(r);
510
510
  return {
511
511
  set: r,
@@ -529,8 +529,8 @@ function Te(e, t) {
529
529
  };
530
530
  for (let t of e.blocks) u(t, "kept");
531
531
  let d = (e) => n.has(e) && !c.has(e), f = (e) => {
532
- let t = z(e);
533
- return t.type === "section" && (t.children = Z(e).map((e) => Array.isArray(e) ? e.filter((e) => !d(e.id)).map((e) => z(e)) : e)), t;
532
+ let t = T(e);
533
+ return t.type === "section" && (t.children = Z(e).map((e) => Array.isArray(e) ? e.filter((e) => !d(e.id)).map((e) => T(e)) : e)), t;
534
534
  }, p = (e, t, r) => {
535
535
  let a = Se(e), o = [], s = [];
536
536
  t.forEach((e, t) => {
@@ -647,14 +647,14 @@ function Le(e) {
647
647
  });
648
648
  }
649
649
  function Re(e) {
650
- let { provider: t } = e, r = e.sessionId ?? crypto.randomUUID(), i = e.maxUndo ?? ke, s = typeof t.acquireLock == "function" && typeof t.renewLock == "function" && typeof t.releaseLock == "function", l = f([]), u = f(/* @__PURE__ */ new Map()), d = a(null), p = a(0), m = a(0), h = null, g = null, _ = !1, v = !1, y = !1, x = null, S = 0, C = !1, w = [], T = null, D = null, O = Promise.resolve(), k = null, A = o(() => (m.value, (g?.undo.length ?? 0) > 0)), M = o(() => (m.value, (g?.redo.length ?? 0) > 0));
651
- function P(t) {
650
+ let { provider: t } = e, r = e.sessionId ?? crypto.randomUUID(), i = e.maxUndo ?? ke, s = typeof t.acquireLock == "function" && typeof t.renewLock == "function" && typeof t.releaseLock == "function", l = f([]), u = f(/* @__PURE__ */ new Map()), d = a(null), p = a(0), m = a(0), h = null, g = null, _ = !1, v = !1, y = !1, x = null, S = 0, C = !1, w = [], D = null, O = null, A = Promise.resolve(), j = null, M = o(() => (m.value, (g?.undo.length ?? 0) > 0)), N = o(() => (m.value, (g?.redo.length ?? 0) > 0));
651
+ function F(t) {
652
652
  e.onError?.(t instanceof Error ? t : Error(String(t)));
653
653
  }
654
- function F(t, n = g) {
654
+ function L(t, n = g) {
655
655
  n !== g || C || e.onNotice?.(t);
656
656
  }
657
- function I() {
657
+ function R() {
658
658
  return {
659
659
  locks: [...u.value.values()].map((e) => ({
660
660
  blockId: e.blockId,
@@ -663,13 +663,13 @@ function Re(e) {
663
663
  session: r
664
664
  };
665
665
  }
666
- function L() {
666
+ function z() {
667
667
  m.value++;
668
668
  }
669
- function R(e, t) {
669
+ function B(e, t) {
670
670
  e.push(t), e.length > i && e.splice(0, e.length - i);
671
671
  }
672
- function B(e) {
672
+ function V(e) {
673
673
  if (!h || _) return;
674
674
  v = !0;
675
675
  try {
@@ -677,24 +677,24 @@ function Re(e) {
677
677
  if (n.length > 0) try {
678
678
  ee(t, n);
679
679
  } catch {
680
- h.setContent(z(e), !1);
680
+ h.setContent(T(e), !1);
681
681
  }
682
- E(h.content.value, e) || h.setContent(z(e), !1);
682
+ E(h.content.value, e) || h.setContent(T(e), !1);
683
683
  } finally {
684
684
  v = !1;
685
685
  }
686
686
  let t = h.state.selectedBlockId;
687
687
  t && !Fe(e.blocks, t) && h.selectBlock(null);
688
688
  }
689
- function V() {
689
+ function te() {
690
690
  v || y || (y = !0, queueMicrotask(() => {
691
- y = !1, ne(!1);
691
+ y = !1, U(!1);
692
692
  }));
693
693
  }
694
694
  function H() {
695
695
  x &&= (clearTimeout(x), null);
696
696
  }
697
- function ne(e, t = !1) {
697
+ function U(e, t = !1) {
698
698
  let n = g;
699
699
  if (!h || !n || _ || v || h.state.isLoading && !t || h.state.template?.id !== n.templateId) return;
700
700
  let r = Te(n.view, h.content.value);
@@ -704,53 +704,53 @@ function Re(e) {
704
704
  let e = Date.now();
705
705
  if (x === null && (S = e), e - S < 1e3) {
706
706
  x && clearTimeout(x), x = setTimeout(() => {
707
- x = null, ne(!0);
707
+ x = null, U(!0);
708
708
  }, 300);
709
709
  return;
710
710
  }
711
711
  }
712
- H(), re(n, r);
712
+ H(), ne(n, r);
713
713
  }
714
714
  }
715
- function U() {
716
- ne(!0);
715
+ function W() {
716
+ U(!0);
717
717
  }
718
- function re(e, t) {
718
+ function ne(e, t) {
719
719
  let n = t, r;
720
720
  try {
721
- r = j(e.view, n, I());
721
+ r = k(e.view, n, R());
722
722
  } catch (t) {
723
- if (!(t instanceof N)) throw t;
724
- B(e.view);
723
+ if (!(t instanceof I)) throw t;
724
+ V(e.view);
725
725
  let n = t.blockId === void 0 ? void 0 : u.value.get(t.blockId)?.holder;
726
- F({
726
+ L({
727
727
  type: "editRefused",
728
728
  code: t.code,
729
729
  ...n ? { holder: n } : {}
730
- }), t.code === "invalid_operation" && P(t);
730
+ }), t.code === "invalid_operation" && F(t);
731
731
  return;
732
732
  }
733
733
  let i = h.content.value;
734
734
  if (!E(r, i)) {
735
- P(/* @__PURE__ */ Error("[Templatical] Collaboration: a change couldn't be expressed as block operations, so the whole content was sent.")), n = [{
735
+ F(/* @__PURE__ */ Error("[Templatical] Collaboration: a change couldn't be expressed as block operations, so the whole content was sent.")), n = [{
736
736
  op: "setContent",
737
- content: z(i)
737
+ content: T(i)
738
738
  }];
739
739
  try {
740
- r = j(e.view, n, I());
740
+ r = k(e.view, n, R());
741
741
  } catch (t) {
742
- if (!(t instanceof N)) throw t;
743
- B(e.view), F({
742
+ if (!(t instanceof I)) throw t;
743
+ V(e.view), L({
744
744
  type: "editRefused",
745
745
  code: t.code
746
746
  });
747
747
  return;
748
748
  }
749
749
  }
750
- let a = { ops: te(e.view, n) };
751
- R(e.undo, a), e.redo = [], L(), e.view = r, ie(e, n, "edit", a);
750
+ let a = { ops: P(e.view, n) };
751
+ B(e.undo, a), e.redo = [], z(), e.view = r, re(e, n, "edit", a);
752
752
  }
753
- function ie(e, t, n, r) {
753
+ function re(e, t, n, r) {
754
754
  let i = { dropped: !1 }, a = 0;
755
755
  do
756
756
  e.pending.push({
@@ -763,105 +763,105 @@ function Re(e) {
763
763
  revision: null
764
764
  }), a += Ae;
765
765
  while (a < t.length);
766
- W(e);
766
+ G(e);
767
767
  }
768
- function W(e) {
768
+ function G(e) {
769
769
  if (e.inFlight) return;
770
770
  let t = e.pending.find((e) => !e.sent);
771
- t ? (t.sent = !0, e.inFlight = t, ae(e, t, 0)) : q(e);
771
+ t ? (t.sent = !0, e.inFlight = t, ie(e, t, 0)) : J(e);
772
772
  }
773
- function ae(e, n, r) {
773
+ function ie(e, n, r) {
774
774
  t.submit(e.templateId, {
775
775
  batchId: n.batchId,
776
776
  baseRevision: e.revision,
777
777
  ops: n.ops,
778
778
  ...n.origin === "ai" ? { origin: "ai" } : {}
779
779
  }).then(({ revision: t }) => {
780
- e.inFlight = null, oe(e, n, t), W(e);
780
+ e.inFlight = null, ae(e, n, t), G(e);
781
781
  }, (t) => {
782
- if (Me(t) !== null) e.inFlight = null, ce(e, n, t), W(e);
782
+ if (Me(t) !== null) e.inFlight = null, se(e, n, t), G(e);
783
783
  else if (Pe(t)) {
784
- J(e, t);
784
+ Y(e, t);
785
785
  let i = Oe[Math.min(r, Oe.length - 1)];
786
786
  setTimeout(() => {
787
- C || ae(e, n, r + 1);
787
+ C || ie(e, n, r + 1);
788
788
  }, i);
789
- } else e.inFlight = null, P(t), ce(e, n, t), W(e);
789
+ } else e.inFlight = null, F(t), se(e, n, t), G(e);
790
790
  });
791
791
  }
792
- function oe(e, t, n) {
793
- t.revision === null && (t.revision = n, n <= e.revision ? (G(e, t), de(e)) : (e.own.set(n, t), Y(e)));
794
- }
795
- function G(e, t) {
796
- e.pending = e.pending.filter((e) => e !== t), q(e);
792
+ function ae(e, t, n) {
793
+ t.revision === null && (t.revision = n, n <= e.revision ? (K(e, t), de(e)) : (e.own.set(n, t), ue(e)));
797
794
  }
798
795
  function K(e, t) {
796
+ e.pending = e.pending.filter((e) => e !== t), J(e);
797
+ }
798
+ function q(e, t) {
799
799
  if (t.entry) {
800
800
  for (let n of [e.undo, e.redo]) {
801
801
  let e = n.indexOf(t.entry);
802
802
  e !== -1 && n.splice(e, 1);
803
803
  }
804
- L();
804
+ z();
805
805
  }
806
806
  }
807
- function se(e, t) {
807
+ function oe(e, t) {
808
808
  let n = !t.group.dropped;
809
- return t.group.dropped = !0, e.pending = e.pending.filter((e) => e.group !== t.group || e.sent), n && K(e, t), q(e), n;
809
+ return t.group.dropped = !0, e.pending = e.pending.filter((e) => e.group !== t.group || e.sent), n && q(e, t), J(e), n;
810
810
  }
811
- function ce(e, t, n) {
812
- if (G(e, t), se(e, t)) {
811
+ function se(e, t, n) {
812
+ if (K(e, t), oe(e, t)) {
813
813
  let r = Me(n) ?? "invalid_operation";
814
814
  if (t.origin === "edit" || t.origin === "ai") {
815
815
  let t = Ne(n);
816
- F({
816
+ L({
817
817
  type: "editRefused",
818
818
  code: r,
819
819
  ...t ? { holder: t } : {}
820
820
  }, e);
821
- } else F({
821
+ } else L({
822
822
  type: "undoSkipped",
823
823
  code: r
824
824
  }, e);
825
825
  }
826
826
  de(e), e === g && X();
827
827
  }
828
- function q(e) {
828
+ function J(e) {
829
829
  if (!(e.pending.length > 0 || e.waiters.length === 0)) for (let t of e.waiters.splice(0)) t.resolve();
830
830
  }
831
- function J(e, t) {
831
+ function Y(e, t) {
832
832
  let n = t instanceof Error ? t : Error(String(t));
833
833
  for (let t of e.waiters.splice(0)) t.reject(n);
834
834
  }
835
- function le(e, t) {
835
+ function ce(e, t) {
836
836
  if (t.revision <= e.revision) return;
837
837
  let n = e.pending.find((e) => e.batchId === t.batchId);
838
- n ? oe(e, n, t.revision) : (e.remote.set(t.revision, t), Y(e));
838
+ n ? ae(e, n, t.revision) : (e.remote.set(t.revision, t), ue(e));
839
839
  }
840
- function ue(t, n) {
840
+ function le(t, n) {
841
841
  let r = n.ops;
842
842
  if (e.normalizeRemoteOperations) try {
843
843
  r = e.normalizeRemoteOperations(n.ops, t.confirmed);
844
844
  } catch (e) {
845
- P(e);
845
+ F(e);
846
846
  }
847
847
  return Le(r);
848
848
  }
849
- function Y(t) {
849
+ function ue(t) {
850
850
  let n = [], r = !1;
851
851
  for (;;) {
852
852
  let e = t.revision + 1, i = t.remote.get(e), a = t.own.get(e);
853
853
  if (!i && !a) break;
854
854
  try {
855
- t.confirmed = j(t.confirmed, i ? ue(t, i) : a.ops);
855
+ t.confirmed = k(t.confirmed, i ? le(t, i) : a.ops);
856
856
  } catch {
857
857
  if (t.recovering) {
858
- t.remote.clear(), t.own.clear(), P(/* @__PURE__ */ Error("[Templatical] Collaboration: this editor can't follow the template's changes. Reload the page."));
858
+ t.remote.clear(), t.own.clear(), F(/* @__PURE__ */ Error("[Templatical] Collaboration: this editor can't follow the template's changes. Reload the page."));
859
859
  return;
860
860
  }
861
861
  me(t);
862
862
  return;
863
863
  }
864
- t.revision = e, i ? (t.remote.delete(e), n.push(i)) : (t.own.delete(e), a.group.dropped && (r = !0), G(t, a));
864
+ t.revision = e, i ? (t.remote.delete(e), n.push(i)) : (t.own.delete(e), a.group.dropped && (r = !0), K(t, a));
865
865
  }
866
866
  if (t === g && (p.value = t.revision), t.remote.size > 0 || t.own.size > 0 ? fe(t) : pe(t), (n.length !== 0 || r) && (de(t), t === g)) for (let t of n) try {
867
867
  e.onRemoteChange?.({
@@ -869,21 +869,21 @@ function Re(e) {
869
869
  ops: t.ops
870
870
  });
871
871
  } catch (e) {
872
- P(e);
872
+ F(e);
873
873
  }
874
874
  }
875
875
  function de(e) {
876
- e === g && U();
876
+ e === g && W();
877
877
  let t = e.confirmed;
878
878
  for (let n = 0; n < e.pending.length; n++) {
879
879
  let r = e.pending[n];
880
880
  try {
881
- t = j(t, r.ops);
881
+ t = k(t, r.ops);
882
882
  } catch (i) {
883
883
  if (r.sent) continue;
884
- if (se(e, r)) {
885
- let t = i instanceof N ? i.code : "invalid_operation";
886
- F(r.origin === "edit" || r.origin === "ai" ? {
884
+ if (oe(e, r)) {
885
+ let t = i instanceof I ? i.code : "invalid_operation";
886
+ L(r.origin === "edit" || r.origin === "ai" ? {
887
887
  type: "editRefused",
888
888
  code: t
889
889
  } : {
@@ -894,7 +894,7 @@ function Re(e) {
894
894
  t = e.confirmed, n = -1;
895
895
  }
896
896
  }
897
- e.view = t, q(e), e === g && B(t);
897
+ e.view = t, J(e), e === g && V(t);
898
898
  }
899
899
  function fe(e) {
900
900
  e.gapTimer ||= setTimeout(() => {
@@ -914,9 +914,9 @@ function Re(e) {
914
914
  await me(e);
915
915
  return;
916
916
  }
917
- for (let t of n.batches) le(e, t);
917
+ for (let t of n.batches) ce(e, t);
918
918
  } catch (e) {
919
- P(e);
919
+ F(e);
920
920
  } finally {
921
921
  e.catchingUp = null;
922
922
  }
@@ -928,11 +928,11 @@ function Re(e) {
928
928
  let n = await e.loadTemplate(t.templateId);
929
929
  if (t.retired) return;
930
930
  let r = n.revision ?? t.revision;
931
- t.confirmed = z(n.content), t.revision = r, t.remote = new Map([...t.remote].filter(([e]) => e > r));
932
- for (let [e, n] of [...t.own]) e <= r && (t.own.delete(e), G(t, n));
933
- t === g && (p.value = r), de(t), Y(t);
931
+ t.confirmed = T(n.content), t.revision = r, t.remote = new Map([...t.remote].filter(([e]) => e > r));
932
+ for (let [e, n] of [...t.own]) e <= r && (t.own.delete(e), K(t, n));
933
+ t === g && (p.value = r), de(t), ue(t);
934
934
  } catch (e) {
935
- P(e);
935
+ F(e);
936
936
  } finally {
937
937
  t.recovering = !1;
938
938
  }
@@ -941,7 +941,7 @@ function Re(e) {
941
941
  let n = () => t === g && !t.retired;
942
942
  return {
943
943
  onBatch: (e) => {
944
- n() && le(t, e);
944
+ n() && ce(t, e);
945
945
  },
946
946
  onResync: (r, i) => {
947
947
  if (!(!n() || r <= t.revision)) {
@@ -951,7 +951,7 @@ function Re(e) {
951
951
  actor: i
952
952
  });
953
953
  } catch (e) {
954
- P(e);
954
+ F(e);
955
955
  }
956
956
  X();
957
957
  }
@@ -973,15 +973,15 @@ function Re(e) {
973
973
  function ge(e, n) {
974
974
  t.join(e.templateId, { sessionId: r }, he(e)).then((t) => {
975
975
  e.retired || e !== g ? n || t.leave() : (e.leave = t.leave, Z(t.locks, !n), Ce(t.members), t.members.length > 0 && (d.value = "connected"), t.revision > e.revision && X(), n && Q());
976
- }, (e) => P(e));
976
+ }, (e) => F(e));
977
977
  }
978
978
  function _e(e) {
979
- let t = z(e.content), n = {
979
+ let t = T(e.content), n = {
980
980
  templateId: e.id,
981
981
  confirmed: t,
982
982
  revision: e.revision ?? 0,
983
983
  pending: [],
984
- view: z(t),
984
+ view: T(t),
985
985
  remote: /* @__PURE__ */ new Map(),
986
986
  own: /* @__PURE__ */ new Map(),
987
987
  inFlight: null,
@@ -994,22 +994,22 @@ function Re(e) {
994
994
  redo: [],
995
995
  waiters: []
996
996
  };
997
- g = n, p.value = n.revision, L(), ge(n, !1), h?.state.selectedBlockId && Be(h.state.selectedBlockId), V();
997
+ g = n, p.value = n.revision, z(), ge(n, !1), h?.state.selectedBlockId && Be(h.state.selectedBlockId), te();
998
998
  }
999
999
  function ve(e) {
1000
- e.retired = !0, pe(e), e.leave?.(), e.leave = null, J(e, /* @__PURE__ */ Error("[Templatical] The template was closed."));
1000
+ e.retired = !0, pe(e), e.leave?.(), e.leave = null, Y(e, /* @__PURE__ */ Error("[Templatical] The template was closed."));
1001
1001
  }
1002
1002
  function ye(e, t) {
1003
1003
  let n = d.value;
1004
1004
  d.value = t, t === "connected" && n !== null && n !== "connected" && ge(e, !0);
1005
1005
  }
1006
1006
  function be(e) {
1007
- g && g.templateId === e?.id || (g &&= (H(), ve(g), null), l.value = [], u.value = /* @__PURE__ */ new Map(), d.value = null, T = null, Q(), L(), e && _e(e));
1007
+ g && g.templateId === e?.id || (g &&= (H(), ve(g), null), l.value = [], u.value = /* @__PURE__ */ new Map(), d.value = null, D = null, Q(), z(), e && _e(e));
1008
1008
  }
1009
1009
  function xe(e) {
1010
1010
  if (e.holder.sessionId === r) return;
1011
1011
  let t = new Map([...u.value].filter(([, t]) => t.holder.sessionId !== e.holder.sessionId));
1012
- t.set(e.blockId, e), u.value = t, h?.state.selectedBlockId === e.blockId && (h.selectBlock(null), F({
1012
+ t.set(e.blockId, e), u.value = t, h?.state.selectedBlockId === e.blockId && (h.selectBlock(null), L({
1013
1013
  type: "selectionRefused",
1014
1014
  blockId: e.blockId,
1015
1015
  holder: e.holder
@@ -1032,23 +1032,23 @@ function Re(e) {
1032
1032
  r.size !== u.value.size && (u.value = r);
1033
1033
  }
1034
1034
  function we(e) {
1035
- O = O.then(e).catch(P);
1035
+ A = A.then(e).catch(F);
1036
1036
  }
1037
1037
  function Q() {
1038
1038
  s && we(async () => {
1039
- if (D && (T === null || D.templateId !== T.templateId)) {
1040
- let e = D;
1041
- D = null, $(), await t.releaseLock(e.templateId, e.blockId);
1039
+ if (O && (D === null || O.templateId !== D.templateId)) {
1040
+ let e = O;
1041
+ O = null, $(), await t.releaseLock(e.templateId, e.blockId);
1042
1042
  }
1043
- let e = T;
1044
- if (!(!e || D?.templateId === e.templateId && D.blockId === e.blockId)) try {
1045
- await t.acquireLock(e.templateId, e.blockId), D = e, ze(), je(e.blockId);
1043
+ let e = D;
1044
+ if (!(!e || O?.templateId === e.templateId && O.blockId === e.blockId)) try {
1045
+ await t.acquireLock(e.templateId, e.blockId), O = e, ze(), je(e.blockId);
1046
1046
  } catch (n) {
1047
- if (D?.templateId === e.templateId) {
1048
- let e = D;
1049
- D = null, $(), await t.releaseLock(e.templateId, e.blockId).catch(() => {});
1047
+ if (O?.templateId === e.templateId) {
1048
+ let e = O;
1049
+ O = null, $(), await t.releaseLock(e.templateId, e.blockId).catch(() => {});
1050
1050
  }
1051
- if (T !== e) return;
1051
+ if (D !== e) return;
1052
1052
  Re(e.blockId, n);
1053
1053
  }
1054
1054
  });
@@ -1061,78 +1061,78 @@ function Re(e) {
1061
1061
  function Re(e, t) {
1062
1062
  let n = Me(t);
1063
1063
  if (n === "lock_held" || n === "block_missing") {
1064
- T = null;
1064
+ D = null;
1065
1065
  let n = Ne(t);
1066
1066
  n ? xe({
1067
1067
  blockId: e,
1068
1068
  holder: n,
1069
1069
  expiresAt: ""
1070
1070
  }) : h?.state.selectedBlockId === e && h.selectBlock(null);
1071
- } else P(t), setTimeout(() => {
1072
- T?.blockId === e && Q();
1071
+ } else F(t), setTimeout(() => {
1072
+ D?.blockId === e && Q();
1073
1073
  }, Oe[0]);
1074
1074
  }
1075
1075
  function ze() {
1076
- k ||= setInterval(() => {
1076
+ j ||= setInterval(() => {
1077
1077
  we(async () => {
1078
- let e = D;
1078
+ let e = O;
1079
1079
  if (e) try {
1080
1080
  await t.renewLock(e.templateId, e.blockId);
1081
1081
  } catch (e) {
1082
1082
  if (Me(e) === "lock_lost") {
1083
- D = null, $(), Q();
1083
+ O = null, $(), Q();
1084
1084
  return;
1085
1085
  }
1086
- P(e);
1086
+ F(e);
1087
1087
  }
1088
1088
  });
1089
1089
  }, De);
1090
1090
  }
1091
1091
  function $() {
1092
- k &&= (clearInterval(k), null);
1092
+ j &&= (clearInterval(j), null);
1093
1093
  }
1094
1094
  function Be(e) {
1095
- U(), g && (T = e ? {
1095
+ W(), g && (D = e ? {
1096
1096
  templateId: g.templateId,
1097
1097
  blockId: e
1098
1098
  } : null, Q());
1099
1099
  }
1100
1100
  function Ve() {
1101
- U(), D && s && (t.releaseLock(D.templateId, D.blockId).catch(() => {}), D = null, $()), g?.leave?.(), g && (g.leave = null);
1101
+ W(), O && s && (t.releaseLock(O.templateId, O.blockId).catch(() => {}), O = null, $()), g?.leave?.(), g && (g.leave = null);
1102
1102
  }
1103
1103
  function He(e) {
1104
1104
  let t = g;
1105
1105
  if (!t || _) return;
1106
- U();
1106
+ W();
1107
1107
  let n = (e === "undo" ? t.undo : t.redo).pop();
1108
1108
  if (!n) return;
1109
- L();
1109
+ z();
1110
1110
  let r;
1111
1111
  try {
1112
- r = j(t.view, n.ops, I());
1112
+ r = k(t.view, n.ops, R());
1113
1113
  } catch (e) {
1114
- if (!(e instanceof N)) throw e;
1115
- F({
1114
+ if (!(e instanceof I)) throw e;
1115
+ L({
1116
1116
  type: "undoSkipped",
1117
1117
  code: e.code
1118
1118
  });
1119
1119
  return;
1120
1120
  }
1121
- let i = { ops: te(t.view, n.ops) };
1122
- R(e === "undo" ? t.redo : t.undo, i), t.view = r, B(r), h?.markDirty(), ie(t, n.ops, e, i);
1121
+ let i = { ops: P(t.view, n.ops) };
1122
+ B(e === "undo" ? t.redo : t.undo, i), t.view = r, V(r), h?.markDirty(), re(t, n.ops, e, i);
1123
1123
  }
1124
1124
  function Ue(e, t) {
1125
1125
  let n = g;
1126
1126
  if (!h || !n || _) return {
1127
1127
  applied: !1,
1128
- error: new N("invalid_operation", 0, "No template is open for editing.")
1128
+ error: new I("invalid_operation", 0, "No template is open for editing.")
1129
1129
  };
1130
- U();
1130
+ W();
1131
1131
  let r, i;
1132
1132
  try {
1133
- r = j(n.view, e, I()), i = te(n.view, e);
1133
+ r = k(n.view, e, R()), i = P(n.view, e);
1134
1134
  } catch (e) {
1135
- if (e instanceof N) return {
1135
+ if (e instanceof I) return {
1136
1136
  applied: !1,
1137
1137
  error: e
1138
1138
  };
@@ -1142,16 +1142,16 @@ function Re(e) {
1142
1142
  return a && a.turn === t.turn ? (a.ops = [...i, ...a.ops], o = a) : (o = {
1143
1143
  ops: i,
1144
1144
  turn: t.turn
1145
- }, R(n.undo, o)), n.redo = [], L(), n.view = r, B(r), h.markDirty(), ie(n, e, t.origin, o), {
1145
+ }, B(n.undo, o)), n.redo = [], z(), n.view = r, V(r), h.markDirty(), re(n, e, t.origin, o), {
1146
1146
  applied: !0,
1147
1147
  inverse: i
1148
1148
  };
1149
1149
  }
1150
1150
  function We(e) {
1151
- h = e, w.push(b(() => e.state.template, (e) => be(e), { immediate: !0 }), b(() => e.content.value, V, { deep: !0 }), b(() => e.state.selectedBlockId, Be), b(() => e.state.isLoading, (e) => e ? ne(!0, !0) : V())), typeof window < "u" && (window.addEventListener("pagehide", Ve), window.addEventListener("blur", U)), n() && c(Je);
1151
+ h = e, w.push(b(() => e.state.template, (e) => be(e), { immediate: !0 }), b(() => e.content.value, te, { deep: !0 }), b(() => e.state.selectedBlockId, Be), b(() => e.state.isLoading, (e) => e ? U(!0, !0) : te())), typeof window < "u" && (window.addEventListener("pagehide", Ve), window.addEventListener("blur", W)), n() && c(Je);
1152
1152
  }
1153
1153
  function Ge() {
1154
- U();
1154
+ W();
1155
1155
  let e = g;
1156
1156
  return !e || e.pending.length === 0 ? Promise.resolve() : new Promise((t, n) => e.waiters.push({
1157
1157
  resolve: t,
@@ -1159,16 +1159,16 @@ function Re(e) {
1159
1159
  }));
1160
1160
  }
1161
1161
  function Ke() {
1162
- U(), _ = !0;
1162
+ W(), _ = !0;
1163
1163
  }
1164
1164
  function qe() {
1165
- _ = !1, g && B(g.view);
1165
+ _ = !1, g && V(g.view);
1166
1166
  }
1167
1167
  function Je() {
1168
1168
  if (!C) {
1169
- U();
1169
+ W();
1170
1170
  for (let e of w.splice(0)) e();
1171
- H(), Ve(), C = !0, g && ve(g), g = null, $(), typeof window < "u" && (window.removeEventListener("pagehide", Ve), window.removeEventListener("blur", U));
1171
+ H(), Ve(), C = !0, g && ve(g), g = null, $(), typeof window < "u" && (window.removeEventListener("pagehide", Ve), window.removeEventListener("blur", W));
1172
1172
  }
1173
1173
  }
1174
1174
  return {
@@ -1177,15 +1177,15 @@ function Re(e) {
1177
1177
  locks: u,
1178
1178
  connection: d,
1179
1179
  revision: p,
1180
- canUndo: A,
1181
- canRedo: M,
1180
+ canUndo: M,
1181
+ canRedo: N,
1182
1182
  attach: We,
1183
1183
  undo: () => He("undo"),
1184
1184
  redo: () => He("redo"),
1185
1185
  clearHistory: () => {
1186
- g && (g.undo = [], g.redo = [], L());
1186
+ g && (g.undo = [], g.redo = [], z());
1187
1187
  },
1188
- flush: U,
1188
+ flush: W,
1189
1189
  settle: Ge,
1190
1190
  suspend: Ke,
1191
1191
  resume: qe,
@@ -1211,10 +1211,10 @@ function ze(e) {
1211
1211
  return c.value && e.canDelete !== !1;
1212
1212
  }
1213
1213
  function f(e, t) {
1214
- throw new I(`[Templatical] Saved blocks: ${e} is ${t}. Check the capability before calling — the editor's own UI hides the action.`);
1214
+ throw new L(`[Templatical] Saved blocks: ${e} is ${t}. Check the capability before calling — the editor's own UI hides the action.`);
1215
1215
  }
1216
1216
  function p(t) {
1217
- J(e.onError, t);
1217
+ Y(e.onError, t);
1218
1218
  }
1219
1219
  async function m(i) {
1220
1220
  r.value = !0;
@@ -1308,7 +1308,7 @@ function Be(e = {}) {
1308
1308
  },
1309
1309
  async create(e) {
1310
1310
  let t = (/* @__PURE__ */ new Date()).toISOString(), n = {
1311
- id: T(),
1311
+ id: O(),
1312
1312
  name: e.name,
1313
1313
  content: e.content,
1314
1314
  ...e.category ? { category: e.category } : {},
@@ -1374,7 +1374,7 @@ function Ue(e = {}) {
1374
1374
  },
1375
1375
  async create(e) {
1376
1376
  let t = await a(e.file), n = (/* @__PURE__ */ new Date()).toISOString(), o = {
1377
- id: T(),
1377
+ id: O(),
1378
1378
  url: t,
1379
1379
  filename: e.filename || e.file.name,
1380
1380
  createdAt: n,
@@ -1413,14 +1413,14 @@ function We(e) {
1413
1413
  let { provider: t, getTemplateId: n } = e, r = a([]), i = a(!1), o = a(void 0), s = a(!1), c = /* @__PURE__ */ new Map(), l = d(() => typeof t.create == "function"), u = d(() => typeof t.restore == "function");
1414
1414
  function f(e) {
1415
1415
  let t = n();
1416
- if (!t) throw new I(`[Templatical] Version history: ${e} needs a template. Call create() or load() first.`);
1416
+ if (!t) throw new L(`[Templatical] Version history: ${e} needs a template. Call create() or load() first.`);
1417
1417
  return t;
1418
1418
  }
1419
1419
  function p(e) {
1420
- throw new I(`[Templatical] Version history: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
1420
+ throw new L(`[Templatical] Version history: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
1421
1421
  }
1422
1422
  function m(t) {
1423
- J(e.onError, t);
1423
+ Y(e.onError, t);
1424
1424
  }
1425
1425
  async function h(n) {
1426
1426
  let a = f("list");
@@ -1495,16 +1495,16 @@ function Ge(e) {
1495
1495
  });
1496
1496
  function g(e) {
1497
1497
  let t = n();
1498
- if (!t) throw new I(`[Templatical] Comments: ${e} needs a template. Call create() or load() first.`);
1498
+ if (!t) throw new L(`[Templatical] Comments: ${e} needs a template. Call create() or load() first.`);
1499
1499
  return t;
1500
1500
  }
1501
1501
  function _(e) {
1502
1502
  let t = r();
1503
- if (!t) throw new I(`[Templatical] Comments: ${e} needs to know who is commenting. Pass init({ user: { id, name } }) — an unattributed comment is not written.`);
1503
+ if (!t) throw new L(`[Templatical] Comments: ${e} needs to know who is commenting. Pass init({ user: { id, name } }) — an unattributed comment is not written.`);
1504
1504
  return t;
1505
1505
  }
1506
1506
  function v(e) {
1507
- throw new I(`[Templatical] Comments: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
1507
+ throw new L(`[Templatical] Comments: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
1508
1508
  }
1509
1509
  function y(e) {
1510
1510
  for (let t of i.value) {
@@ -1518,11 +1518,11 @@ function Ge(e) {
1518
1518
  return t !== null && e.author.id === t.id;
1519
1519
  }
1520
1520
  function x(t) {
1521
- let n = q(t);
1521
+ let n = J(t);
1522
1522
  throw e.onError?.(n), n;
1523
1523
  }
1524
1524
  function S(t) {
1525
- J(e.onError, t);
1525
+ Y(e.onError, t);
1526
1526
  }
1527
1527
  function C(e, t, n) {
1528
1528
  return [
@@ -1561,7 +1561,7 @@ function Ge(e) {
1561
1561
  replies: (t.replies ?? []).filter((t) => t.id !== e)
1562
1562
  } : t) : i.value = i.value.filter((t) => t.id !== e), n;
1563
1563
  }
1564
- async function ee(e) {
1564
+ async function D(e) {
1565
1565
  let n = g("list");
1566
1566
  o.value = !0;
1567
1567
  try {
@@ -1572,7 +1572,7 @@ function Ge(e) {
1572
1572
  o.value = !1;
1573
1573
  }
1574
1574
  }
1575
- async function D(e) {
1575
+ async function O(e) {
1576
1576
  let { create: n } = t;
1577
1577
  typeof n != "function" && v("create");
1578
1578
  let r = g("create");
@@ -1586,7 +1586,7 @@ function Ge(e) {
1586
1586
  s.value = !1;
1587
1587
  }
1588
1588
  }
1589
- async function O(e, n) {
1589
+ async function k(e, n) {
1590
1590
  let { update: r } = t;
1591
1591
  typeof r != "function" && v("update");
1592
1592
  let i = g("update");
@@ -1600,7 +1600,7 @@ function Ge(e) {
1600
1600
  s.value = !1;
1601
1601
  }
1602
1602
  }
1603
- async function k(e) {
1603
+ async function A(e) {
1604
1604
  let { delete: n } = t;
1605
1605
  typeof n != "function" && v("delete");
1606
1606
  let r = g("delete");
@@ -1615,7 +1615,7 @@ function Ge(e) {
1615
1615
  s.value = !1;
1616
1616
  }
1617
1617
  }
1618
- async function A(e, n) {
1618
+ async function j(e, n) {
1619
1619
  let { setResolved: r } = t;
1620
1620
  typeof r != "function" && v("setResolved");
1621
1621
  let i = g("setResolved");
@@ -1629,13 +1629,13 @@ function Ge(e) {
1629
1629
  s.value = !1;
1630
1630
  }
1631
1631
  }
1632
- function j(e) {
1632
+ function M(e) {
1633
1633
  T(e) && S(() => t.onCreated?.(e, { origin: "remote" }));
1634
1634
  }
1635
- function M(e) {
1635
+ function N(e) {
1636
1636
  T(e) && S(() => (e.resolvedAt ? t.onResolved : t.onUpdated)?.(e, { origin: "remote" }));
1637
1637
  }
1638
- function N(e, n) {
1638
+ function P(e, n) {
1639
1639
  let r = E(e, n);
1640
1640
  r && S(() => t.onDeleted?.(r, { origin: "remote" }));
1641
1641
  }
@@ -1650,16 +1650,16 @@ function Ge(e) {
1650
1650
  totalCount: p,
1651
1651
  unresolvedCount: m,
1652
1652
  commentCountByBlock: h,
1653
- load: ee,
1654
- create: D,
1655
- update: O,
1656
- remove: k,
1657
- setResolved: A,
1653
+ load: D,
1654
+ create: O,
1655
+ update: k,
1656
+ remove: A,
1657
+ setResolved: j,
1658
1658
  find: y,
1659
1659
  isOwn: b,
1660
- applyRemoteCreate: j,
1661
- applyRemoteUpdate: M,
1662
- applyRemoteDelete: N
1660
+ applyRemoteCreate: M,
1661
+ applyRemoteUpdate: N,
1662
+ applyRemoteDelete: P
1663
1663
  };
1664
1664
  }
1665
1665
  function Ke(e) {
@@ -1683,11 +1683,9 @@ function Ke(e) {
1683
1683
  }));
1684
1684
  }, { immediate: !0 }), c(o);
1685
1685
  }
1686
- //#endregion
1687
- //#region src/constants/timeouts.ts
1686
+ // src/constants/timeouts.ts
1688
1687
  var qe = 1e4;
1689
- //#endregion
1690
- //#region src/composables/useImageUrlResolver.ts
1688
+ // src/composables/useImageUrlResolver.ts
1691
1689
  function Je(e) {
1692
1690
  let t = s(/* @__PURE__ */ new Map()), n = /* @__PURE__ */ new Set();
1693
1691
  function r(e) {
@@ -1718,7 +1716,7 @@ function Je(e) {
1718
1716
  };
1719
1717
  }
1720
1718
  function Ye(e) {
1721
- let r = t(W, null), i = d(e);
1719
+ let r = t(G, null), i = d(e);
1722
1720
  if (!r) return i;
1723
1721
  let a;
1724
1722
  function o() {
@@ -1745,21 +1743,20 @@ function Xe(e, t) {
1745
1743
  return typeof n == "string" && n.length > 0 ? n : t;
1746
1744
  }
1747
1745
  function Ze(e, t) {
1748
- return typeof e?.url == "string" && V(e.url, t);
1746
+ return typeof e?.url == "string" && w(e.url, t);
1749
1747
  }
1750
1748
  function Qe(e, t) {
1751
1749
  let n = e?.url;
1752
- if (typeof n == "string" && n.trim() !== "") return V(n, t) ? void 0 : n;
1750
+ if (typeof n == "string" && n.trim() !== "") return w(n, t) ? void 0 : n;
1753
1751
  }
1754
1752
  function $e(e) {
1755
- let n = t(re, A.liquid), r = Ye(() => Qe(e(), n));
1753
+ let n = t(ne, R.liquid), r = Ye(() => Qe(e(), n));
1756
1754
  return d(() => Ze(e(), n) ? null : r.value);
1757
1755
  }
1758
1756
  function et(e, t, n) {
1759
1757
  return Ze(t, n) ? null : Xe(e, Qe(t, n));
1760
1758
  }
1761
- //#endregion
1762
- //#region src/utils/blockTypeLabels.ts
1759
+ // src/utils/blockTypeLabels.ts
1763
1760
  function tt(e, t) {
1764
1761
  return t.blocks[e] ?? e;
1765
1762
  }
@@ -1768,10 +1765,9 @@ function nt(e, t, n = []) {
1768
1765
  let { customType: r } = e;
1769
1766
  return n.find((e) => e.type === r)?.name ?? r;
1770
1767
  }
1771
- //#endregion
1772
- //#region src/utils/resolveFieldColors.ts
1768
+ // src/utils/resolveFieldColors.ts
1773
1769
  function rt(e, t) {
1774
- let n = G({ presets: e.presets }, oe), r = n.presets.length === 0, i = e.allowCustom ?? t.allowCustom;
1770
+ let n = K({ presets: e.presets }, ae), r = n.presets.length === 0, i = e.allowCustom ?? t.allowCustom;
1775
1771
  return {
1776
1772
  presets: r ? t.presets : n.presets,
1777
1773
  allowCustom: t.allowCustom !== !1 && i,
@@ -1781,7 +1777,7 @@ function rt(e, t) {
1781
1777
  allowCustomIgnored: e.allowCustom === !0 && t.allowCustom === !1
1782
1778
  };
1783
1779
  }
1784
- var it = K({
1780
+ var it = q({
1785
1781
  name: "code",
1786
1782
  size: 24,
1787
1783
  node: [["path", {
@@ -1791,14 +1787,14 @@ var it = K({
1791
1787
  d: "m8 6-6 6 6 6",
1792
1788
  key: "ppft3o"
1793
1789
  }]]
1794
- }), at = K({
1790
+ }), at = q({
1795
1791
  name: "navigation",
1796
1792
  size: 24,
1797
1793
  node: [["polygon", {
1798
1794
  points: "3 11 22 2 13 21 11 13 3 11",
1799
1795
  key: "1ltx0t"
1800
1796
  }]]
1801
- }), ot = K({
1797
+ }), ot = q({
1802
1798
  name: "share-2",
1803
1799
  size: 24,
1804
1800
  node: [
@@ -1835,7 +1831,7 @@ var it = K({
1835
1831
  key: "1n3mei"
1836
1832
  }]
1837
1833
  ]
1838
- }), st = K({
1834
+ }), st = q({
1839
1835
  name: "table",
1840
1836
  size: 24,
1841
1837
  node: [
@@ -1861,8 +1857,7 @@ var it = K({
1861
1857
  }]
1862
1858
  ]
1863
1859
  });
1864
- //#endregion
1865
- //#region src/utils/imageNaturalSize.ts
1860
+ // src/utils/imageNaturalSize.ts
1866
1861
  function ct(e) {
1867
1862
  return typeof e == "number" && Number.isFinite(e) && e > 0;
1868
1863
  }
@@ -1904,8 +1899,7 @@ function pt(e) {
1904
1899
  });
1905
1900
  });
1906
1901
  }
1907
- //#endregion
1908
- //#region src/components/MediaDropOverlay.vue
1902
+ // src/components/MediaDropOverlay.vue
1909
1903
  var mt = /* @__PURE__ */ x({
1910
1904
  __name: "MediaDropOverlay",
1911
1905
  props: {
@@ -1913,7 +1907,7 @@ var mt = /* @__PURE__ */ x({
1913
1907
  size: { default: "field" }
1914
1908
  },
1915
1909
  setup(t) {
1916
- let n = t, { t: i } = ae(), a = {
1910
+ let n = t, { t: i } = ie(), a = {
1917
1911
  field: {
1918
1912
  gap: "tpl:gap-1.5",
1919
1913
  icon: 18,
@@ -1928,29 +1922,27 @@ var mt = /* @__PURE__ */ x({
1928
1922
  return (n, a) => (g(), p("div", {
1929
1923
  class: e(["tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-10 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-xs tpl:font-medium tpl:border-[var(--tpl-primary)] tpl:text-[var(--tpl-primary)]", o.value.gap]),
1930
1924
  style: _({ backgroundColor: `color-mix(in srgb, var(--tpl-bg) ${o.value.veil}, transparent)` })
1931
- }, [t.uploading ? (g(), p(y, { key: 0 }, [u(v(ce), {
1925
+ }, [t.uploading ? (g(), p(y, { key: 0 }, [u(v(se), {
1932
1926
  class: "tpl-spinner",
1933
1927
  size: o.value.icon,
1934
1928
  "stroke-width": 2
1935
- }, null, 8, ["size"]), m(" " + r(v(i).image.uploading), 1)], 64)) : (g(), p(y, { key: 1 }, [u(v(se), {
1929
+ }, null, 8, ["size"]), m(" " + r(v(i).image.uploading), 1)], 64)) : (g(), p(y, { key: 1 }, [u(v(oe), {
1936
1930
  size: o.value.icon,
1937
1931
  "stroke-width": 1.5
1938
1932
  }, null, 8, ["size"]), m(" " + r(v(i).image.dropToUpload), 1)], 64))], 6));
1939
1933
  }
1940
1934
  });
1941
- //#endregion
1942
- //#region src/composables/useAliveFlag.ts
1935
+ // src/composables/useAliveFlag.ts
1943
1936
  function ht() {
1944
1937
  let e = { alive: !0 };
1945
1938
  return i(() => {
1946
1939
  e.alive = !1;
1947
1940
  }), e;
1948
1941
  }
1949
- //#endregion
1950
- //#region src/composables/useImageDrop.ts
1942
+ // src/composables/useImageDrop.ts
1951
1943
  var gt = "image/";
1952
1944
  function _t(e) {
1953
- let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || h(r), { isOverDropZone: a } = ne(t, {
1945
+ let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || h(r), { isOverDropZone: a } = U(t, {
1954
1946
  preventDefaultForUnhandled: !0,
1955
1947
  onDrop: (e) => {
1956
1948
  if (!i()) return;
@@ -1960,10 +1952,9 @@ function _t(e) {
1960
1952
  });
1961
1953
  return { isOver: d(() => i() && a.value) };
1962
1954
  }
1963
- //#endregion
1964
- //#region src/composables/useMediaDropField.ts
1955
+ // src/composables/useMediaDropField.ts
1965
1956
  function vt(e) {
1966
- let { target: n, blocked: r, apply: i } = e, o = t(U, null), s = t(ie, null), c = ht();
1957
+ let { target: n, blocked: r, apply: i } = e, o = t(W, null), s = t(re, null), c = ht();
1967
1958
  async function l() {
1968
1959
  let e = await o?.({ accept: ["images"] });
1969
1960
  c.alive && e && i(e);
@@ -2012,7 +2003,7 @@ var bt = "width 300ms cubic-bezier(0.34, 1.56, 0.64, 1)", xt = {
2012
2003
  "2-1": [66.67, 33.33]
2013
2004
  };
2014
2005
  function St(e, t) {
2015
- let n = (e) => Math.trunc(e ?? 0), r = (e) => B(e) === null ? 0 : Math.trunc(e.width);
2006
+ let n = (e) => Math.trunc(e ?? 0), r = (e) => C(e) === null ? 0 : Math.trunc(e.width);
2016
2007
  return n(e?.left) + n(e?.right) + r(t?.left) + r(t?.right);
2017
2008
  }
2018
2009
  function Ct(e, t) {
@@ -2023,23 +2014,23 @@ function wt(e, t) {
2023
2014
  return Math.floor(t) - St(e.styles.padding, n);
2024
2015
  }
2025
2016
  function* Tt(e, t) {
2026
- for (let n of e) O(n) ? yield* Tt(n.children, Ct(t, n.styles.padding)) : yield {
2017
+ for (let n of e) M(n) ? yield* Tt(n.children, Ct(t, n.styles.padding)) : yield {
2027
2018
  block: n,
2028
- bandWidth: F(n) && n.wrapper ? Ct(t, n.wrapper.padding) : t
2019
+ bandWidth: z(n) && n.wrapper ? Ct(t, n.wrapper.padding) : t
2029
2020
  };
2030
2021
  }
2031
2022
  function Et(e, t) {
2032
2023
  if (!t) return e;
2033
2024
  try {
2034
- return M(t, e);
2025
+ return N(t, e);
2035
2026
  } catch {
2036
2027
  return e;
2037
2028
  }
2038
2029
  }
2039
2030
  function Dt(e, t, n) {
2040
2031
  let r = Et(e, n);
2041
- for (let { block: e, bandWidth: n } of Tt(r.blocks, r.settings.width)) if (F(e)) {
2042
- let r = P(e)?.applied ? void 0 : e.border, i = Math.floor(n) - St(e.styles.padding, r), a = xt[e.columns] ?? [100];
2032
+ for (let { block: e, bandWidth: n } of Tt(r.blocks, r.settings.width)) if (z(e)) {
2033
+ let r = B(e)?.applied ? void 0 : e.border, i = Math.floor(n) - St(e.styles.padding, r), a = xt[e.columns] ?? [100];
2043
2034
  for (let n = 0; n < e.children.length; n++) {
2044
2035
  let r = Math.floor(i * (a[n] ?? 100) / 100), o = e.children[n].find((e) => e.id === t);
2045
2036
  if (o) return wt(o, r);
@@ -2053,13 +2044,12 @@ function Ot(e, t, n) {
2053
2044
  return null;
2054
2045
  }
2055
2046
  function kt(e, t, n) {
2056
- if (!F(e)) return;
2057
- let r = P(e);
2047
+ if (!z(e)) return;
2048
+ let r = B(e);
2058
2049
  if (r?.applied && r.height === "image") return (t ? Ot(t, e.id, n) : null) ?? yt(t?.settings);
2059
2050
  }
2060
- //#endregion
2061
- //#region src/constants/socialIcons.ts
2062
- var At = k, jt = {
2051
+ // src/constants/socialIcons.ts
2052
+ var At = j, jt = {
2063
2053
  small: 24,
2064
2054
  medium: 32,
2065
2055
  large: 48
@@ -2082,5 +2072,4 @@ var At = k, jt = {
2082
2072
  "dribbble",
2083
2073
  "behance"
2084
2074
  ];
2085
- //#endregion
2086
- export { Ue as A, fe as B, tt as C, $e as D, et as E, Ke as F, ze as H, Ge as I, he as L, me as M, pe as N, Ye as O, Re as P, ge as R, nt as S, Qe as T, We as U, _e as V, st as _, kt as a, it as b, yt as c, mt as d, ft as f, lt as g, ut as h, Dt as i, Be as j, X as k, vt as l, dt as m, At as n, Ot as o, pt as p, Mt as r, bt as s, jt as t, ht as u, ot as v, Je as w, rt as x, at as y, le as z };
2075
+ export { Ue as A, fe as B, tt as C, $e as D, et as E, Ke as F, ze as H, Ge as I, he as L, me as M, pe as N, Ye as O, Re as P, ge as R, nt as S, Qe as T, We as U, _e as V, st as _, kt as a, it as b, yt as c, mt as d, ft as f, lt as g, ut as h, Dt as i, Be as j, X as k, vt as l, dt as m, At as n, Ot as o, pt as p, Mt as r, bt as s, jt as t, ht as u, ot as v, Je as w, rt as x, at as y, ce as z };