@templatical/editor 0.39.0 → 0.39.2

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 (273) hide show
  1. package/README.md +2 -4
  2. package/dist/{AiChatSidebar-jVlXXND3.js → AiChatSidebar-pOxCZWz9.js} +14 -14
  3. package/dist/{AiFeatureMenu-C1HCntyQ.js → AiFeatureMenu-Bljk6Qjv.js} +7 -7
  4. package/dist/{BlockIssueBadge-JhNgcUmZ.js → BlockIssueBadge-D5oGxOQP.js} +5 -5
  5. package/dist/{BlockPreviewCanvas-C_rA5LJN.js → BlockPreviewCanvas-DXGjUECG.js} +27 -27
  6. package/dist/{CloudHeaderExtras-DvYyNsPB.js → CloudHeaderExtras-DaocwNmy.js} +5 -5
  7. package/dist/{CloudPanels-CDPhPVdd.js → CloudPanels-CyZAnSJY.js} +7 -7
  8. package/dist/{CollaboratorBar-Co9UPoB0.js → CollaboratorBar-C7Zca3g1.js} +4 -4
  9. package/dist/{CommentsPanel-CRcVN9Ri.js → CommentsPanel-CNOb7YCm.js} +2 -2
  10. package/dist/{CommentsSidebar-gDU977br.js → CommentsSidebar-VmwjU9va.js} +14 -14
  11. package/dist/{CountdownBlock-CEzrfe5R.js → CountdownBlock-DSvbf3qU.js} +3 -3
  12. package/dist/{CountdownToolbar-B00zhkNJ.js → CountdownToolbar-C2kfS6Oy.js} +31 -30
  13. package/dist/{DesignReferenceSidebar-DedivZZl.js → DesignReferenceSidebar-QC4gEUWp.js} +11 -11
  14. package/dist/{IssuesPanel-C-PjdmAV.js → IssuesPanel-DL2Xr14_.js} +8 -8
  15. package/dist/{LoadingTrack-BlTL4zFv.js → LoadingTrack-C2jKCU2d.js} +1 -1
  16. package/dist/LogicTagInsertButton-D8IwH-9Z.js +1071 -0
  17. package/dist/MediaEditModal-D4GEq2md.js +3545 -0
  18. package/dist/{MediaPanels-BpQNY8YX.js → MediaPanels-sapgKtxu.js} +2 -2
  19. package/dist/MergeTagInput-QI-5KG2R.js +81 -0
  20. package/dist/{MergeTagModeToggle-DGuzSAdX.js → MergeTagModeToggle-D793Bj_E.js} +14 -55
  21. package/dist/{ParagraphEditor-jMKLLTa8.js → ParagraphEditor-DkkPSexG.js} +65 -66
  22. package/dist/{RestoreVersionDialog-DG1jUdBM.js → RestoreVersionDialog-BgueZnZr.js} +5 -5
  23. package/dist/{RichTextEditorContent-JrNEg0kv.js → RichTextEditorContent-BC5UTVnb.js} +11 -11
  24. package/dist/{SaveBlockDialog-C0KC-OKs.js → SaveBlockDialog-BuTuVlLr.js} +12 -11
  25. package/dist/{SavedBlocksBrowserModal-zyOiRgWZ.js → SavedBlocksBrowserModal-Srhix8BB.js} +17 -16
  26. package/dist/{SavedBlocksPanels-epMd799w.js → SavedBlocksPanels-B2iScCS-.js} +2 -2
  27. package/dist/{SavedBlocksPickBar-CJqqQ3jd.js → SavedBlocksPickBar-cI7bDQQi.js} +4 -4
  28. package/dist/{TemplateScoringPanel-m2FOeaai.js → TemplateScoringPanel-C2Rdlyn6.js} +16 -16
  29. package/dist/TemplateSettings-C_5leDdF.js +245 -0
  30. package/dist/{TestEmailModal-D58kYkMV.js → TestEmailModal-DJ5q_u4N.js} +10 -10
  31. package/dist/{TestEmailPanel-BmFVBIQt.js → TestEmailPanel-CP24UGst.js} +2 -2
  32. package/dist/{TitleEditor-C4BGPXnf.js → TitleEditor-QBBOXtxx.js} +15 -15
  33. package/dist/ToggleSwitch-JvQ_CmI1.js +102 -0
  34. package/dist/Toolbar-COD2TW20.js +2426 -0
  35. package/dist/{TplModal-BIDJw4Kj.js → TplModal-C8xGjC1l.js} +5 -5
  36. package/dist/{VersionHistoryMenu-dt_aZQfh.js → VersionHistoryMenu-BVQityes.js} +10 -10
  37. package/dist/{VersionHistoryPanels-B_5SBRrr.js → VersionHistoryPanels-BrK6na4A.js} +2 -2
  38. package/dist/{VersionPreviewBanner-DttvOkwd.js → VersionPreviewBanner-BaMSgA1O.js} +3 -3
  39. package/dist/{blockTypeIcons-CzTizYmK.js → blockTypeIcons-CdXugKyV.js} +16 -37
  40. package/dist/bundle-stats.json +8 -8
  41. package/dist/{ca-Jx2CDwtn.js → ca-BTf1Zbqb.js} +9 -0
  42. package/dist/cdn/chunks/{AiChatSidebar-DeZl9Tk0.js → AiChatSidebar-CjSEoK4x.js} +8 -8
  43. package/dist/cdn/chunks/{AiChatSidebar-DeZl9Tk0.js.map → AiChatSidebar-CjSEoK4x.js.map} +1 -1
  44. package/dist/cdn/chunks/{AiFeatureMenu-Bv8jMu9p.js → AiFeatureMenu-l0K5TOSn.js} +6 -6
  45. package/dist/cdn/chunks/{AiFeatureMenu-Bv8jMu9p.js.map → AiFeatureMenu-l0K5TOSn.js.map} +1 -1
  46. package/dist/cdn/chunks/{BlockIssueBadge-B6PpoOPv.js → BlockIssueBadge-9hHpaXb9.js} +5 -5
  47. package/dist/cdn/chunks/{BlockIssueBadge-B6PpoOPv.js.map → BlockIssueBadge-9hHpaXb9.js.map} +1 -1
  48. package/dist/cdn/chunks/{BlockPreviewCanvas-DfEtDosD.js → BlockPreviewCanvas-lQrAdgG3.js} +30 -30
  49. package/dist/cdn/chunks/{BlockPreviewCanvas-DfEtDosD.js.map → BlockPreviewCanvas-lQrAdgG3.js.map} +1 -1
  50. package/dist/cdn/chunks/{CloudHeaderExtras-Hk98ub-C.js → CloudHeaderExtras-CXNe7Q-4.js} +5 -5
  51. package/dist/cdn/chunks/{CloudHeaderExtras-Hk98ub-C.js.map → CloudHeaderExtras-CXNe7Q-4.js.map} +1 -1
  52. package/dist/cdn/chunks/{CloudPanels-Ba3GLmvF.js → CloudPanels-bHhh9AUA.js} +6 -6
  53. package/dist/cdn/chunks/{CloudPanels-Ba3GLmvF.js.map → CloudPanels-bHhh9AUA.js.map} +1 -1
  54. package/dist/cdn/chunks/{CollaboratorBar-D2dCQ9gg.js → CollaboratorBar-DgqcaGGI.js} +5 -5
  55. package/dist/cdn/chunks/{CollaboratorBar-D2dCQ9gg.js.map → CollaboratorBar-DgqcaGGI.js.map} +1 -1
  56. package/dist/cdn/chunks/{CommentsPanel-CV2HveQk.js → CommentsPanel-Cy4TlTHC.js} +3 -3
  57. package/dist/cdn/chunks/{CommentsPanel-CV2HveQk.js.map → CommentsPanel-Cy4TlTHC.js.map} +1 -1
  58. package/dist/cdn/chunks/{CommentsSidebar-Dok_vaRc.js → CommentsSidebar-C7oAP3Mx.js} +5 -5
  59. package/dist/cdn/chunks/{CommentsSidebar-Dok_vaRc.js.map → CommentsSidebar-C7oAP3Mx.js.map} +1 -1
  60. package/dist/cdn/chunks/{CountdownBlock-DGDl3ota.js → CountdownBlock-DdC8Lg5F.js} +4 -4
  61. package/dist/cdn/chunks/{CountdownBlock-DGDl3ota.js.map → CountdownBlock-DdC8Lg5F.js.map} +1 -1
  62. package/dist/cdn/chunks/{CountdownToolbar-B9Rin64t.js → CountdownToolbar-CN9h4nlC.js} +22 -21
  63. package/dist/cdn/chunks/{CountdownToolbar-B9Rin64t.js.map → CountdownToolbar-CN9h4nlC.js.map} +1 -1
  64. package/dist/cdn/chunks/{DesignReferenceSidebar-eCuTFak2.js → DesignReferenceSidebar-Bjo0M-AY.js} +7 -7
  65. package/dist/cdn/chunks/{DesignReferenceSidebar-eCuTFak2.js.map → DesignReferenceSidebar-Bjo0M-AY.js.map} +1 -1
  66. package/dist/cdn/chunks/{IssuesPanel-CP7FEzw7.js → IssuesPanel-DdFk-Blf.js} +6 -6
  67. package/dist/cdn/chunks/{IssuesPanel-CP7FEzw7.js.map → IssuesPanel-DdFk-Blf.js.map} +1 -1
  68. package/dist/cdn/chunks/{LoadingTrack-Cm3TDKb3.js → LoadingTrack-Ba5xh5HD.js} +2 -2
  69. package/dist/cdn/chunks/{LoadingTrack-Cm3TDKb3.js.map → LoadingTrack-Ba5xh5HD.js.map} +1 -1
  70. package/dist/cdn/chunks/LogicTagInsertButton-DpyPozop.js +1035 -0
  71. package/dist/cdn/chunks/LogicTagInsertButton-DpyPozop.js.map +1 -0
  72. package/dist/cdn/chunks/MediaEditModal-BBZRcYKe.js +3529 -0
  73. package/dist/cdn/chunks/MediaEditModal-BBZRcYKe.js.map +1 -0
  74. package/dist/cdn/chunks/{MediaPanels-TYrKKHX5.js → MediaPanels-CSBCsFwT.js} +3 -3
  75. package/dist/cdn/chunks/{MediaPanels-TYrKKHX5.js.map → MediaPanels-CSBCsFwT.js.map} +1 -1
  76. package/dist/cdn/chunks/MergeTagInput-ERJr7bP_.js +83 -0
  77. package/dist/cdn/chunks/MergeTagInput-ERJr7bP_.js.map +1 -0
  78. package/dist/cdn/chunks/{MergeTagModeToggle-QGTUIWWo.js → MergeTagModeToggle-n3nvSNeQ.js} +5 -5
  79. package/dist/cdn/chunks/{MergeTagModeToggle-QGTUIWWo.js.map → MergeTagModeToggle-n3nvSNeQ.js.map} +1 -1
  80. package/dist/cdn/chunks/{ParagraphEditor-D1tsPv4v.js → ParagraphEditor-DO4RzP8l.js} +40 -40
  81. package/dist/cdn/chunks/{ParagraphEditor-D1tsPv4v.js.map → ParagraphEditor-DO4RzP8l.js.map} +1 -1
  82. package/dist/cdn/chunks/{RestoreVersionDialog-BeCxNPLS.js → RestoreVersionDialog-CzZ_sFnz.js} +5 -5
  83. package/dist/cdn/chunks/{RestoreVersionDialog-BeCxNPLS.js.map → RestoreVersionDialog-CzZ_sFnz.js.map} +1 -1
  84. package/dist/cdn/chunks/{RichTextEditorContent-BBxzACFQ.js → RichTextEditorContent-Ch5zeyZ7.js} +8 -8
  85. package/dist/cdn/chunks/{RichTextEditorContent-BBxzACFQ.js.map → RichTextEditorContent-Ch5zeyZ7.js.map} +1 -1
  86. package/dist/cdn/chunks/{SaveBlockDialog-CLgh_g7H.js → SaveBlockDialog-LgxYrXyx.js} +10 -9
  87. package/dist/cdn/chunks/{SaveBlockDialog-CLgh_g7H.js.map → SaveBlockDialog-LgxYrXyx.js.map} +1 -1
  88. package/dist/cdn/chunks/{SavedBlocksBrowserModal-B4TcUJJe.js → SavedBlocksBrowserModal-CdeSsTpb.js} +9 -9
  89. package/dist/cdn/chunks/{SavedBlocksBrowserModal-B4TcUJJe.js.map → SavedBlocksBrowserModal-CdeSsTpb.js.map} +1 -1
  90. package/dist/cdn/chunks/{SavedBlocksPanels-CaBsHoRC.js → SavedBlocksPanels-B5hakNJj.js} +3 -3
  91. package/dist/cdn/chunks/{SavedBlocksPanels-CaBsHoRC.js.map → SavedBlocksPanels-B5hakNJj.js.map} +1 -1
  92. package/dist/cdn/chunks/{SavedBlocksPickBar-iG35XCDx.js → SavedBlocksPickBar-Cl6PLwwV.js} +5 -5
  93. package/dist/cdn/chunks/{SavedBlocksPickBar-iG35XCDx.js.map → SavedBlocksPickBar-Cl6PLwwV.js.map} +1 -1
  94. package/dist/cdn/chunks/{TemplateScoringPanel-DuQJBykq.js → TemplateScoringPanel--JxR6CsQ.js} +6 -6
  95. package/dist/cdn/chunks/{TemplateScoringPanel-DuQJBykq.js.map → TemplateScoringPanel--JxR6CsQ.js.map} +1 -1
  96. package/dist/cdn/chunks/TemplateSettings-DjXiiiNr.js +207 -0
  97. package/dist/cdn/chunks/TemplateSettings-DjXiiiNr.js.map +1 -0
  98. package/dist/cdn/chunks/{TestEmailModal-D6Woss3r.js → TestEmailModal-BAuDxJtD.js} +9 -9
  99. package/dist/cdn/chunks/{TestEmailModal-D6Woss3r.js.map → TestEmailModal-BAuDxJtD.js.map} +1 -1
  100. package/dist/cdn/chunks/{TestEmailPanel-CWQFB7J3.js → TestEmailPanel-GUGZisLp.js} +3 -3
  101. package/dist/cdn/chunks/{TestEmailPanel-CWQFB7J3.js.map → TestEmailPanel-GUGZisLp.js.map} +1 -1
  102. package/dist/cdn/chunks/{TitleEditor-CbY1tgSl.js → TitleEditor-uKu33Nwr.js} +12 -12
  103. package/dist/cdn/chunks/{TitleEditor-CbY1tgSl.js.map → TitleEditor-uKu33Nwr.js.map} +1 -1
  104. package/dist/cdn/chunks/ToggleSwitch-CDy8OfcB.js +104 -0
  105. package/dist/cdn/chunks/ToggleSwitch-CDy8OfcB.js.map +1 -0
  106. package/dist/cdn/chunks/Toolbar-dxDYwN5E.js +2385 -0
  107. package/dist/cdn/chunks/Toolbar-dxDYwN5E.js.map +1 -0
  108. package/dist/cdn/chunks/{TplModal-CGpp-d_r.js → TplModal-DuwS2ifK.js} +5 -5
  109. package/dist/cdn/chunks/{TplModal-CGpp-d_r.js.map → TplModal-DuwS2ifK.js.map} +1 -1
  110. package/dist/cdn/chunks/{VersionHistoryMenu-ByVJXDbK.js → VersionHistoryMenu-Dij1pTEb.js} +6 -6
  111. package/dist/cdn/chunks/{VersionHistoryMenu-ByVJXDbK.js.map → VersionHistoryMenu-Dij1pTEb.js.map} +1 -1
  112. package/dist/cdn/chunks/{VersionHistoryPanels-CQJ5OggF.js → VersionHistoryPanels-GeR6MStB.js} +3 -3
  113. package/dist/cdn/chunks/{VersionHistoryPanels-CQJ5OggF.js.map → VersionHistoryPanels-GeR6MStB.js.map} +1 -1
  114. package/dist/cdn/chunks/{VersionPreviewBanner-G4lLbfr8.js → VersionPreviewBanner-Df3FVlig.js} +4 -4
  115. package/dist/cdn/chunks/{VersionPreviewBanner-G4lLbfr8.js.map → VersionPreviewBanner-Df3FVlig.js.map} +1 -1
  116. package/dist/cdn/chunks/{blockTypeIcons-CQY-vxdM.js → blockTypeIcons-raBjStuv.js} +2 -2
  117. package/dist/cdn/chunks/{blockTypeIcons-CQY-vxdM.js.map → blockTypeIcons-raBjStuv.js.map} +1 -1
  118. package/dist/cdn/chunks/{ca-Jx2CDwtn.js → ca-BTf1Zbqb.js} +10 -1
  119. package/dist/cdn/chunks/{ca-Jx2CDwtn.js.map → ca-BTf1Zbqb.js.map} +1 -1
  120. package/dist/cdn/chunks/{cloud-BLgCKP7Z.js → cloud-eaXyxZ8l.js} +2 -2
  121. package/dist/cdn/chunks/{cloud-BLgCKP7Z.js.map → cloud-eaXyxZ8l.js.map} +1 -1
  122. package/dist/cdn/chunks/{createCloudRuntime-ClvtMBF1.js → createCloudRuntime-D5bXzcTe.js} +6 -6
  123. package/dist/cdn/chunks/{createCloudRuntime-ClvtMBF1.js.map → createCloudRuntime-D5bXzcTe.js.map} +1 -1
  124. package/dist/{de-Ck0pBGHu.js → cdn/chunks/de-xzrh9PA3.js} +11 -0
  125. package/dist/cdn/chunks/{de-Ck0pBGHu.js.map → de-xzrh9PA3.js.map} +1 -1
  126. package/dist/cdn/chunks/{dist-BW6Y49zE.js → dist-BRZhN8qJ.js} +4 -4
  127. package/dist/cdn/chunks/dist-BRZhN8qJ.js.map +1 -0
  128. package/dist/cdn/chunks/{dist-CAFTQ6Y2.js → dist-CXB2_kBa.js} +27 -22
  129. package/dist/cdn/chunks/dist-CXB2_kBa.js.map +1 -0
  130. package/dist/cdn/chunks/{draggable-kbOhCgnk.js → draggable-IB4x6w2O.js} +1477 -1470
  131. package/dist/cdn/chunks/draggable-IB4x6w2O.js.map +1 -0
  132. package/dist/cdn/chunks/editor-modal-C-yBlj2C.js +2700 -0
  133. package/dist/cdn/chunks/editor-modal-C-yBlj2C.js.map +1 -0
  134. package/dist/cdn/chunks/en-DYtFUE2l.js +2 -0
  135. package/dist/cdn/chunks/{es-lagTvUfX.js → es-BT4LSpE2.js} +10 -1
  136. package/dist/cdn/chunks/{es-lagTvUfX.js.map → es-BT4LSpE2.js.map} +1 -1
  137. package/dist/cdn/chunks/{extensions-D2YIhF7u.js → extensions-Bhu8UEE5.js} +105 -45
  138. package/dist/cdn/chunks/extensions-Bhu8UEE5.js.map +1 -0
  139. package/dist/cdn/chunks/{fr-C4hVl5Lk.js → fr-CI7OJoql.js} +10 -1
  140. package/dist/cdn/chunks/{fr-C4hVl5Lk.js.map → fr-CI7OJoql.js.map} +1 -1
  141. package/dist/cdn/chunks/{icons-DdrAicM2.js → icons-BKkJ-5xF.js} +43 -43
  142. package/dist/cdn/chunks/{icons-DdrAicM2.js.map → icons-BKkJ-5xF.js.map} +1 -1
  143. package/dist/cdn/chunks/{keys-DXYJTLZF.js → keys-dJbD1QPs.js} +2 -2
  144. package/dist/cdn/chunks/{keys-DXYJTLZF.js.map → keys-dJbD1QPs.js.map} +1 -1
  145. package/dist/{nl-CReD7Apd.js → cdn/chunks/nl-D8y5OWGB.js} +11 -0
  146. package/dist/cdn/chunks/{nl-CReD7Apd.js.map → nl-D8y5OWGB.js.map} +1 -1
  147. package/dist/cdn/chunks/{pt-BR-BRA0-vGP.js → pt-BR-DMCbUBvJ.js} +10 -1
  148. package/dist/cdn/chunks/{pt-BR-BRA0-vGP.js.map → pt-BR-DMCbUBvJ.js.map} +1 -1
  149. package/dist/cdn/chunks/socialIcons-9VrG8X3m.js +1054 -0
  150. package/dist/cdn/chunks/socialIcons-9VrG8X3m.js.map +1 -0
  151. package/dist/cdn/chunks/{src-fn7uy1FD.js → src-O5Sp_qJ7.js} +3 -3
  152. package/dist/cdn/chunks/{src-fn7uy1FD.js.map → src-O5Sp_qJ7.js.map} +1 -1
  153. package/dist/cdn/chunks/templateSettingsFields-YCFVBVYh.js +36 -0
  154. package/dist/cdn/chunks/templateSettingsFields-YCFVBVYh.js.map +1 -0
  155. package/dist/cdn/chunks/{tiptap-Epe8m3Vo.js → tiptap-DhLuKyDc.js} +2776 -2773
  156. package/dist/cdn/chunks/tiptap-DhLuKyDc.js.map +1 -0
  157. package/dist/cdn/chunks/{useAliveFlag-CT9gjvO_.js → useAliveFlag-DAlQLbM2.js} +2 -2
  158. package/dist/cdn/chunks/{useAliveFlag-CT9gjvO_.js.map → useAliveFlag-DAlQLbM2.js.map} +1 -1
  159. package/dist/cdn/chunks/{useCloudI18n-OezCj0cx.js → useCloudI18n-C09JcFS0.js} +3 -3
  160. package/dist/cdn/chunks/{useCloudI18n-OezCj0cx.js.map → useCloudI18n-C09JcFS0.js.map} +1 -1
  161. package/dist/cdn/chunks/useEditorCore-BHmIp1hW.js +2592 -0
  162. package/dist/cdn/chunks/useEditorCore-BHmIp1hW.js.map +1 -0
  163. package/dist/cdn/chunks/useEditorRoot-DFx2fXJP.js +10 -0
  164. package/dist/cdn/chunks/{useEditorRoot-ByHPMqYT.js.map → useEditorRoot-DFx2fXJP.js.map} +1 -1
  165. package/dist/cdn/chunks/{useI18n-BhE7ndNr.js → useI18n-DTZ9sIcv.js} +3 -3
  166. package/dist/cdn/chunks/{useI18n-BhE7ndNr.js.map → useI18n-DTZ9sIcv.js.map} +1 -1
  167. package/dist/cdn/chunks/useLogicTag-E2V0Xdcb.js +38 -0
  168. package/dist/cdn/chunks/useLogicTag-E2V0Xdcb.js.map +1 -0
  169. package/dist/cdn/chunks/{useMergeTag-DE2mpy1w.js → useMergeTag-BE8oDoha.js} +3 -3
  170. package/dist/cdn/chunks/{useMergeTag-DE2mpy1w.js.map → useMergeTag-BE8oDoha.js.map} +1 -1
  171. package/dist/cdn/chunks/{usePopoverPosition-BPL891uG.js → usePopoverPosition-gB9q-ql7.js} +3 -3
  172. package/dist/cdn/chunks/{usePopoverPosition-BPL891uG.js.map → usePopoverPosition-gB9q-ql7.js.map} +1 -1
  173. package/dist/cdn/chunks/{useScrollToBlock-DwF4pVur.js → useScrollToBlock-CtTXwmiU.js} +3 -3
  174. package/dist/cdn/chunks/{useScrollToBlock-DwF4pVur.js.map → useScrollToBlock-CtTXwmiU.js.map} +1 -1
  175. package/dist/cdn/editor.css +1 -1
  176. package/dist/cdn/editor.js +809 -3337
  177. package/dist/cdn/editor.js.map +1 -1
  178. package/dist/{check-9xX6RVHz.js → check-eqb2JhqU.js} +1 -1
  179. package/dist/{chevron-down-J5hFJ6TL.js → chevron-down-Dkr-7Ywl.js} +1 -1
  180. package/dist/{chevron-right-BJuo5PQ-.js → chevron-right-Bge4XF_B.js} +1 -1
  181. package/dist/{chevron-up-Qfi5k52_.js → chevron-up-CQAyl0kC.js} +1 -1
  182. package/dist/{circle-alert-BiArYmkB.js → circle-alert-CYgTHKWr.js} +1 -1
  183. package/dist/{clock-BkYJZ7Y0.js → clock-BgSJZJP5.js} +1 -1
  184. package/dist/{cloud-DdidMW6f.js → cloud-C9xWZXhg.js} +1 -1
  185. package/dist/{copy-BRLUNHwF.js → copy-mw6PVnOJ.js} +1 -1
  186. package/dist/{createCloudRuntime-CNFXaTNQ.js → createCloudRuntime-BGd5--Bq.js} +5 -5
  187. package/dist/{createLucideIcon-CDDkF1Tm.js → createLucideIcon-BxY5yz5u.js} +6 -6
  188. package/dist/{cdn/chunks/de-Ck0pBGHu.js → de-xzrh9PA3.js} +9 -2
  189. package/dist/{dist-D8i1ixHK.js → dist-8VFzbeu9.js} +3 -3
  190. package/dist/{dist-DBirAJIs.js → dist-BDuPwOyn.js} +26 -21
  191. package/dist/{dist-CtF9STPS.js → dist-BJM3eFyT.js} +1 -1
  192. package/dist/{dist-DkcA6epL.js → dist-BdHF7nyq.js} +3 -3
  193. package/dist/{dist-ByT5fgKq.js → dist-Bl4rxpX9.js} +1 -1
  194. package/dist/{dist-BVqAYoRB.js → dist-BmsLcnrO.js} +4 -4
  195. package/dist/{dist-CtMXAH7a.js → dist-BxVnMgXZ.js} +1 -1
  196. package/dist/{dist-DC-3T0ED.js → dist-CQSVro7b.js} +1 -1
  197. package/dist/{dist-f7HXo6j6.js → dist-DQbOebGW.js} +1 -1
  198. package/dist/{dist-DL9334yz.js → dist-DerFNpDY.js} +3 -3
  199. package/dist/{dist-D08oVYhr.js → dist-Djmzp6wi.js} +1 -1
  200. package/dist/{dist-D7WY8VPq.js → dist-DyrEOKEJ.js} +1 -1
  201. package/dist/{dist-DzdeVn-W.js → dist-EDkj3Ub1.js} +1 -1
  202. package/dist/{dist-C1tsW_99.js → dist-wyXxj3R1.js} +1 -1
  203. package/dist/editor-modal-oD1qNz_P.js +2773 -0
  204. package/dist/en-CM5fTFSo.js +2 -0
  205. package/dist/{es-lagTvUfX.js → es-BT4LSpE2.js} +9 -0
  206. package/dist/extensions-DRN-elXT.js +1645 -0
  207. package/dist/{eye-DwhBOaV8.js → eye-DphkRtAD.js} +1 -1
  208. package/dist/{fr-C4hVl5Lk.js → fr-CI7OJoql.js} +9 -0
  209. package/dist/{image-up-CiyQNZBt.js → image-up-Qi2BXD7T.js} +1 -1
  210. package/dist/{info-D6A1qEiF.js → info-VSyAs02q.js} +1 -1
  211. package/dist/{keys-DD1rl72F.js → keys-BdoSgsz9.js} +1 -1
  212. package/dist/{link-tKGmYWsB.js → link-CNuozGqD.js} +1 -1
  213. package/dist/{list-DjZQRpeI.js → list-BA0I5Wmu.js} +1 -1
  214. package/dist/{loader-circle-D9ZL3Sv0.js → loader-circle-z5eeqasv.js} +1 -1
  215. package/dist/{message-circle-KTHxCcpB.js → message-circle-BsQ9hEup.js} +1 -1
  216. package/dist/{cdn/chunks/nl-CReD7Apd.js → nl-D8y5OWGB.js} +9 -2
  217. package/dist/package-OkXfuRoO.js +25 -0
  218. package/dist/{pencil-Bq-nbQ7F.js → pencil-DFVFA7Dj.js} +1 -1
  219. package/dist/{plus-CRMnR4IG.js → plus-D8bkVjZ7.js} +1 -1
  220. package/dist/{pt-BR-BRA0-vGP.js → pt-BR-DMCbUBvJ.js} +9 -0
  221. package/dist/{refresh-cw-D7bYS5tm.js → refresh-cw-DPB7YFuz.js} +1 -1
  222. package/dist/{runtime-dom.esm-bundler-PnoZU512.js → runtime-dom.esm-bundler-BGbPz4-g.js} +2 -2
  223. package/dist/{search-DUo0YwPz.js → search-C-dCgqIa.js} +1 -1
  224. package/dist/{send-DaVMQphu.js → send-Cm2fy2zm.js} +1 -1
  225. package/dist/{shield-check-DxaaurL9.js → shield-check-COgBYFDF.js} +1 -1
  226. package/dist/smartphone-v0u_MOEV.js +46 -0
  227. package/dist/socialIcons-DkGcpEwC.js +1130 -0
  228. package/dist/{sparkles-D6T6k30e.js → sparkles-Ds0RF8Iu.js} +1 -1
  229. package/dist/style.css +1 -1
  230. package/dist/templateSettingsFields-YCFVBVYh.js +34 -0
  231. package/dist/templatical-editor.js +895 -3498
  232. package/dist/{text-align-start-vreFpmCX.js → text-align-start-DiavaIm6.js} +1 -1
  233. package/dist/{trash-DBv8MGY6.js → trash-DnOkfu2V.js} +1 -1
  234. package/dist/{triangle-alert-CmNS2LLv.js → triangle-alert-DGLAyXnh.js} +1 -1
  235. package/dist/{upload-DDB9Fs0P.js → upload-BBDme2cy.js} +1 -1
  236. package/dist/{useAliveFlag-oyByIcjy.js → useAliveFlag-BkKyhkwZ.js} +1 -1
  237. package/dist/{useCloudI18n-C1wuXik6.js → useCloudI18n-D1iedlP3.js} +2 -2
  238. package/dist/{useEditorCore-jfwgLThK.js → useEditorCore-C5APBjjV.js} +1140 -2325
  239. package/dist/{useEditorRoot-eVv4doqZ.js → useEditorRoot-BOxn5EfP.js} +2 -2
  240. package/dist/{useI18n-VOtdfENx.js → useI18n-Ds_-druD.js} +2 -2
  241. package/dist/useLogicTag-DoHfc08B.js +36 -0
  242. package/dist/{useMergeTag-CQM9pFca.js → useMergeTag-DXyum3kG.js} +2 -2
  243. package/dist/{usePopoverPosition-gZjRywai.js → usePopoverPosition-Du-Ah8E9.js} +2 -2
  244. package/dist/{useScrollToBlock-C0Ehnyl4.js → useScrollToBlock-DXQYPCnJ.js} +3 -3
  245. package/dist/{vue.runtime.esm-bundler-DShF3P6k.js → vue.runtime.esm-bundler-CyqhBwpY.js} +1133 -1126
  246. package/dist/{x-B7sgO_z8.js → x-3BHV3Q6K.js} +1 -1
  247. package/package.json +14 -14
  248. package/dist/ColorPicker-BTtN94te.js +0 -501
  249. package/dist/FieldRow-C8nOknr_.js +0 -128
  250. package/dist/MergeTagInput-Cw1RoMly.js +0 -509
  251. package/dist/MergeTagSuggestion-BXO3UIXW.js +0 -1329
  252. package/dist/cdn/chunks/ColorPicker-BaonTCAQ.js +0 -502
  253. package/dist/cdn/chunks/ColorPicker-BaonTCAQ.js.map +0 -1
  254. package/dist/cdn/chunks/FieldRow-D9OJhYeb.js +0 -130
  255. package/dist/cdn/chunks/FieldRow-D9OJhYeb.js.map +0 -1
  256. package/dist/cdn/chunks/MergeTagInput-CSIThqkz.js +0 -470
  257. package/dist/cdn/chunks/MergeTagInput-CSIThqkz.js.map +0 -1
  258. package/dist/cdn/chunks/MergeTagSuggestion-CY6WK8Eb.js +0 -215
  259. package/dist/cdn/chunks/MergeTagSuggestion-CY6WK8Eb.js.map +0 -1
  260. package/dist/cdn/chunks/dist-BW6Y49zE.js.map +0 -1
  261. package/dist/cdn/chunks/dist-CAFTQ6Y2.js.map +0 -1
  262. package/dist/cdn/chunks/draggable-kbOhCgnk.js.map +0 -1
  263. package/dist/cdn/chunks/editor-modal-B6IdQWlf.js +0 -5908
  264. package/dist/cdn/chunks/editor-modal-B6IdQWlf.js.map +0 -1
  265. package/dist/cdn/chunks/en-DjunooBz.js +0 -2
  266. package/dist/cdn/chunks/extensions-D2YIhF7u.js.map +0 -1
  267. package/dist/cdn/chunks/tiptap-Epe8m3Vo.js.map +0 -1
  268. package/dist/cdn/chunks/useEditorCore-06PtcUi1.js +0 -3698
  269. package/dist/cdn/chunks/useEditorCore-06PtcUi1.js.map +0 -1
  270. package/dist/cdn/chunks/useEditorRoot-ByHPMqYT.js +0 -10
  271. package/dist/editor-modal-uAEB6xKz.js +0 -5998
  272. package/dist/en-CQWkDCpm.js +0 -2
  273. package/dist/extensions-CcGj7OfS.js +0 -470
@@ -0,0 +1,1130 @@
1
+ import { H as e, J as t, R as n, X as r, Y as i, Z as a, ot as o, rt as s, s as c } from "./vue.runtime.esm-bundler-CyqhBwpY.js";
2
+ import { D as l, H as u, a as d, m as f, s as p, u as m } from "./dist-tGkjkX-v.js";
3
+ import { r as h } from "./dist-BDuPwOyn.js";
4
+ import { a as g, o as _ } from "./usePopoverPosition-Du-Ah8E9.js";
5
+ import { t as v } from "./createLucideIcon-BxY5yz5u.js";
6
+ //#region ../core/dist/index.js
7
+ function y(e) {
8
+ return e instanceof Error ? e : Error(String(e), { cause: e });
9
+ }
10
+ function b(e, t) {
11
+ try {
12
+ t();
13
+ } catch (t) {
14
+ e?.(y(t));
15
+ }
16
+ }
17
+ function x(e) {
18
+ return e === "1" ? 1 : e === "3" ? 3 : 2;
19
+ }
20
+ function S(t) {
21
+ let n = i({
22
+ template: null,
23
+ content: t.content ?? f(t.defaultFontFamily, t.templateDefaults),
24
+ selectedBlockId: null,
25
+ viewport: "desktop",
26
+ darkMode: !1,
27
+ previewMode: !1,
28
+ isDirty: !1,
29
+ isSaving: !1,
30
+ isLoading: !1,
31
+ uiTheme: "auto"
32
+ }), a = 0;
33
+ function o() {
34
+ n.isDirty = !0, a++;
35
+ }
36
+ let s = e({
37
+ get: () => n.content,
38
+ set: (e) => {
39
+ n.content = e, o();
40
+ }
41
+ }), c = e(() => n.selectedBlockId ? l(n.content.blocks, n.selectedBlockId) : null);
42
+ function l(e, t) {
43
+ for (let n of e) {
44
+ if (n.id === t) return n;
45
+ if (n.type === "section") for (let e of n.children) {
46
+ let n = l(e, t);
47
+ if (n) return n;
48
+ }
49
+ }
50
+ return null;
51
+ }
52
+ function u(e, t) {
53
+ if (t.add(e.id), e.type === "section") for (let n of e.children) for (let e of n) u(e, t);
54
+ }
55
+ function d(e, t, n = { blocks: e }) {
56
+ for (let r = 0; r < e.length; r++) {
57
+ let i = e[r];
58
+ if (i.id === t) return n;
59
+ if (i.type === "section") for (let e = 0; e < i.children.length; e++) {
60
+ let n = d(i.children[e], t, {
61
+ blocks: i.children[e],
62
+ sectionId: i.id,
63
+ columnIndex: e
64
+ });
65
+ if (n) return n;
66
+ }
67
+ }
68
+ return null;
69
+ }
70
+ function m(e) {
71
+ return t.lockedBlocks?.value.has(e) ?? !1;
72
+ }
73
+ function h(e) {
74
+ let t = d(n.content.blocks, e);
75
+ if (!t) return null;
76
+ let r = t.blocks.findIndex((t) => t.id === e);
77
+ return r === -1 ? null : {
78
+ targetSectionId: t.sectionId,
79
+ columnIndex: t.columnIndex,
80
+ index: r
81
+ };
82
+ }
83
+ function g(e, t = !0) {
84
+ n.content = e, t && o();
85
+ }
86
+ function _(e) {
87
+ e && m(e) || (n.selectedBlockId = e);
88
+ }
89
+ function v(e) {
90
+ n.viewport = e;
91
+ }
92
+ function y(e) {
93
+ n.darkMode = e;
94
+ }
95
+ function S(e) {
96
+ n.uiTheme = e;
97
+ }
98
+ function C(e) {
99
+ n.previewMode = e, e && (n.selectedBlockId = null);
100
+ }
101
+ function w(e, t) {
102
+ if (m(e)) return;
103
+ let r = l(n.content.blocks, e);
104
+ r && (Object.assign(r, t), o());
105
+ }
106
+ function T(e) {
107
+ n.content.settings = {
108
+ ...n.content.settings,
109
+ ...e
110
+ }, o();
111
+ }
112
+ function E(e, t, r = 0, i) {
113
+ if (!(t && e.type === "section")) {
114
+ if (t) {
115
+ if (m(t)) return;
116
+ let a = l(n.content.blocks, t);
117
+ if (a && a.type === "section") {
118
+ if (r < 0 || r >= x(a.columns)) return;
119
+ a.children[r] = a.children[r] || [];
120
+ let t = a.children[r];
121
+ i !== void 0 && i < t.length ? t.splice(i, 0, e) : t.push(e);
122
+ }
123
+ } else i !== void 0 && i < n.content.blocks.length ? n.content.blocks.splice(i, 0, e) : n.content.blocks.push(e);
124
+ o();
125
+ }
126
+ }
127
+ function D(e) {
128
+ if (m(e)) return;
129
+ let t = d(n.content.blocks, e);
130
+ if (t) {
131
+ let r = t.blocks.findIndex((t) => t.id === e);
132
+ if (r !== -1) {
133
+ let [e] = t.blocks.splice(r, 1);
134
+ if (n.selectedBlockId) {
135
+ let t = /* @__PURE__ */ new Set();
136
+ u(e, t), t.has(n.selectedBlockId) && (n.selectedBlockId = null);
137
+ }
138
+ o();
139
+ }
140
+ }
141
+ }
142
+ function O(e, t, r, i = 0) {
143
+ if (m(e) || r && m(r)) return;
144
+ let a = d(n.content.blocks, e);
145
+ if (!a) return;
146
+ let s = a.blocks.findIndex((t) => t.id === e);
147
+ if (s === -1 || r && a.blocks[s].type === "section") return;
148
+ let c;
149
+ if (r) {
150
+ let e = l(n.content.blocks, r);
151
+ if (!e || e.type !== "section" || i < 0 || i >= x(e.columns)) return;
152
+ e.children[i] = e.children[i] || [], c = e.children[i];
153
+ } else c = n.content.blocks;
154
+ let [u] = a.blocks.splice(s, 1);
155
+ c.splice(t, 0, u), o();
156
+ }
157
+ function k() {
158
+ o();
159
+ }
160
+ function A(e, t) {
161
+ throw new p(`[Templatical] Templates: ${e} ${t}`);
162
+ }
163
+ function j(e) {
164
+ b(t.onError, e);
165
+ }
166
+ function M(e) {
167
+ let { templates: n } = t;
168
+ return n || A(e, "needs a templates provider. Pass one as `init({ templates })` to enable saving and loading."), n;
169
+ }
170
+ function N(e) {
171
+ n.template && (n.template = {
172
+ ...n.template,
173
+ name: e
174
+ }, o());
175
+ }
176
+ async function P(e) {
177
+ let r = M("create()"), { create: i } = r;
178
+ typeof i != "function" && A("create()", "is disabled by the provider — its `create` is `false`.");
179
+ let o;
180
+ n.isLoading = !0;
181
+ try {
182
+ e?.content && (n.content = e.content);
183
+ let t = a;
184
+ o = await i(e?.name === void 0 ? { content: n.content } : {
185
+ name: e.name,
186
+ content: n.content
187
+ }), n.template = o, a === t && (n.isDirty = !1);
188
+ } catch (e) {
189
+ throw t.onError?.(e), e;
190
+ } finally {
191
+ n.isLoading = !1;
192
+ }
193
+ return j(() => r.onCreated?.(o)), o;
194
+ }
195
+ async function F(e) {
196
+ let r = M("load()"), i;
197
+ n.isLoading = !0;
198
+ try {
199
+ i = await r.load(e), n.template = i, n.content = i.content, n.isDirty = !1;
200
+ } catch (e) {
201
+ throw t.onError?.(e), e;
202
+ } finally {
203
+ n.isLoading = !1;
204
+ }
205
+ return j(() => r.onLoaded?.(i)), i;
206
+ }
207
+ async function I(e = "api") {
208
+ let r = M("save()"), { save: i } = r;
209
+ typeof i != "function" && A("save()", "is disabled by the provider — its `save` is `false`.");
210
+ let o = n.template;
211
+ o || A("save()", "has no template loaded. Call create() or load() first.");
212
+ let s = o.name === void 0 ? { content: n.content } : {
213
+ name: o.name,
214
+ content: n.content
215
+ }, c;
216
+ n.isSaving = !0;
217
+ try {
218
+ let e = a;
219
+ if (c = await i(o.id, s), n.template?.id === o.id) {
220
+ let e = n.template.name;
221
+ n.template = e === o.name ? c : {
222
+ ...c,
223
+ name: e
224
+ };
225
+ }
226
+ a === e && (n.isDirty = !1);
227
+ } catch (e) {
228
+ throw t.onError?.(e), e;
229
+ } finally {
230
+ n.isSaving = !1;
231
+ }
232
+ return j(() => r.onSaved?.(c, { trigger: e })), c;
233
+ }
234
+ function L() {
235
+ return n.template?.id !== void 0;
236
+ }
237
+ return {
238
+ state: r(n),
239
+ content: s,
240
+ selectedBlock: c,
241
+ isBlockLocked: m,
242
+ setContent: g,
243
+ selectBlock: _,
244
+ setViewport: v,
245
+ setDarkMode: y,
246
+ setUiTheme: S,
247
+ setPreviewMode: C,
248
+ updateBlock: w,
249
+ updateSettings: T,
250
+ addBlock: E,
251
+ removeBlock: D,
252
+ moveBlock: O,
253
+ markDirty: k,
254
+ findBlockLocation: h,
255
+ setName: N,
256
+ create: P,
257
+ load: F,
258
+ save: I,
259
+ hasTemplate: L
260
+ };
261
+ }
262
+ var C = 50, w = 300, T = 1500;
263
+ function E(t) {
264
+ let { content: n, setContent: r, isRemoteOperation: i, maxSize: o = C } = t, s = a([]), c = a([]), l = a(!1), d = null, f = null, p = e(() => s.value.length > 0), m = e(() => c.value.length > 0);
265
+ function h() {
266
+ return u(n.value);
267
+ }
268
+ function g(e) {
269
+ s.value.push(e), s.value.length > o && s.value.splice(0, s.value.length - o);
270
+ }
271
+ function _() {
272
+ f &&= (clearTimeout(f.timeoutId), null);
273
+ }
274
+ function v() {
275
+ i?.() || (_(), g(h()), c.value = []);
276
+ }
277
+ function y(e) {
278
+ if (!i?.()) {
279
+ if (f && f.blockId === e) {
280
+ clearTimeout(f.timeoutId), f.timeoutId = setTimeout(() => {
281
+ f = null;
282
+ }, w);
283
+ return;
284
+ }
285
+ _(), g(h()), c.value = [], f = {
286
+ blockId: e,
287
+ timeoutId: setTimeout(() => {
288
+ f = null;
289
+ }, w)
290
+ };
291
+ }
292
+ }
293
+ function b() {
294
+ l.value = !0, d && clearTimeout(d), d = setTimeout(() => {
295
+ l.value = !1, d = null;
296
+ }, T);
297
+ }
298
+ function x() {
299
+ if (s.value.length === 0) return;
300
+ _();
301
+ let e = s.value.pop();
302
+ c.value.push(h()), r(e, !0), b();
303
+ }
304
+ function S() {
305
+ if (c.value.length === 0) return;
306
+ _();
307
+ let e = c.value.pop();
308
+ s.value.push(h()), r(e, !0), b();
309
+ }
310
+ function E() {
311
+ s.value = [], c.value = [], _();
312
+ }
313
+ function D() {
314
+ E(), d &&= (clearTimeout(d), null);
315
+ }
316
+ return {
317
+ canUndo: p,
318
+ canRedo: m,
319
+ isNavigating: l,
320
+ undo: x,
321
+ redo: S,
322
+ record: v,
323
+ recordDebounced: y,
324
+ clear: E,
325
+ destroy: D
326
+ };
327
+ }
328
+ function D(e) {
329
+ e.type === "table" ? e.rows = e.rows.map((e) => ({
330
+ ...e,
331
+ id: l(),
332
+ cells: e.cells.map((e) => ({
333
+ ...e,
334
+ id: l()
335
+ }))
336
+ })) : e.type === "social" ? e.icons = e.icons.map((e) => ({
337
+ ...e,
338
+ id: l()
339
+ })) : e.type === "menu" && (e.items = e.items.map((e) => ({
340
+ ...e,
341
+ id: l()
342
+ })));
343
+ }
344
+ function O(e) {
345
+ let { addBlock: t, removeBlock: n, updateBlock: r, selectBlock: i, findBlockLocation: a } = e;
346
+ function o(n, r, a) {
347
+ let o = typeof e.blockDefaults == "function" ? e.blockDefaults() : e.blockDefaults, s = m(n, o);
348
+ return t(s, r, a), i(s.id), s;
349
+ }
350
+ function s(e, n, r) {
351
+ let o = JSON.parse(JSON.stringify(e));
352
+ if (o.id = l(), D(o), o.type === "section" && (o.children = o.children.map((e) => e.map((e) => {
353
+ let t = JSON.parse(JSON.stringify(e));
354
+ return t.id = l(), D(t), t;
355
+ }))), n !== void 0 || r !== void 0) t(o, n, r);
356
+ else {
357
+ let i = a?.(e.id) ?? null;
358
+ i ? t(o, i.targetSectionId, i.columnIndex, i.index + 1) : t(o, n, r);
359
+ }
360
+ return i(o.id), o;
361
+ }
362
+ function c(e) {
363
+ n(e);
364
+ }
365
+ function u(e, t, n) {
366
+ r(e, { [t]: n });
367
+ }
368
+ return {
369
+ createAndAddBlock: o,
370
+ duplicateBlock: s,
371
+ deleteBlock: c,
372
+ updateBlockProperty: u
373
+ };
374
+ }
375
+ var k = 2e3;
376
+ function A(e) {
377
+ let { content: t, isDirty: n, onChange: r, debounce: i = k, enabled: a = !0 } = e, s = null, c = !1;
378
+ function l() {
379
+ return typeof a == "function" ? a() : a;
380
+ }
381
+ function u() {
382
+ c = !0, f();
383
+ }
384
+ function d() {
385
+ c = !1;
386
+ }
387
+ function f() {
388
+ s &&= (clearTimeout(s), null);
389
+ }
390
+ function p() {
391
+ f(), n() && r(JSON.parse(JSON.stringify(t.value)));
392
+ }
393
+ function m() {
394
+ l() && !c && (f(), s = setTimeout(() => {
395
+ s = null, l() && !c && n() && r(JSON.parse(JSON.stringify(t.value)));
396
+ }, i));
397
+ }
398
+ let h = o(t, () => {
399
+ m();
400
+ }, { deep: !0 });
401
+ function g() {
402
+ h(), f();
403
+ }
404
+ return {
405
+ flush: p,
406
+ cancel: f,
407
+ pause: u,
408
+ resume: d,
409
+ destroy: g
410
+ };
411
+ }
412
+ function j(t) {
413
+ let n = i(/* @__PURE__ */ new Set()), r = e(() => n.size > 0);
414
+ function a(e) {
415
+ return n.has(e);
416
+ }
417
+ function o(e) {
418
+ n.has(e) ? n.delete(e) : (n.add(e), t.state.selectedBlockId === e && t.selectBlock(null));
419
+ }
420
+ function s() {
421
+ n.clear();
422
+ }
423
+ return {
424
+ isHidden: a,
425
+ toggleBlock: o,
426
+ reset: s,
427
+ hasHiddenBlocks: r
428
+ };
429
+ }
430
+ function M(t) {
431
+ let n = a(!1), r = a(!1), i = e(() => !!t.definition.value?.dataSource), o = e(() => i.value && !t.block.value.dataSourceFetched);
432
+ async function s() {
433
+ let e = t.definition.value;
434
+ if (e?.dataSource) {
435
+ n.value = !0, r.value = !1;
436
+ try {
437
+ let n = await e.dataSource.onFetch({
438
+ fieldValues: { ...t.block.value.fieldValues },
439
+ blockId: t.block.value.id
440
+ });
441
+ if (n == null) return;
442
+ let r = { ...t.block.value.fieldValues };
443
+ for (let e of Object.keys(r)) e in n && (r[e] = n[e]);
444
+ t.onUpdate(r, !0);
445
+ } catch (e) {
446
+ console.warn("[Templatical] Data source fetch error:", e), r.value = !0;
447
+ } finally {
448
+ n.value = !1;
449
+ }
450
+ }
451
+ }
452
+ return {
453
+ isFetching: n,
454
+ fetchError: r,
455
+ fetch: s,
456
+ hasDataSource: i,
457
+ needsFetch: o
458
+ };
459
+ }
460
+ function N(e, t) {
461
+ let n = e.addBlock, r = e.removeBlock, i = e.moveBlock, a = e.updateBlock, o = e.updateSettings;
462
+ e.addBlock = (r, i, a, o) => {
463
+ i && e.isBlockLocked(i) || (t.record(), n(r, i, a, o));
464
+ }, e.removeBlock = (n) => {
465
+ e.isBlockLocked(n) || (t.record(), r(n));
466
+ }, e.moveBlock = (n, r, a, o) => {
467
+ e.isBlockLocked(n) || a && e.isBlockLocked(a) || (t.record(), i(n, r, a, o));
468
+ }, e.updateBlock = (n, r) => {
469
+ e.isBlockLocked(n) || (t.recordDebounced(n), a(n, r));
470
+ }, e.updateSettings = (e) => {
471
+ t.record(), o(e);
472
+ };
473
+ }
474
+ function P(e) {
475
+ let { provider: t } = e, n = a([]), r = a(!1), i = c(() => {
476
+ let e = /* @__PURE__ */ new Set();
477
+ for (let t of n.value) {
478
+ let n = t.category?.trim();
479
+ n && e.add(n);
480
+ }
481
+ return [...e].sort((e, t) => e.localeCompare(t));
482
+ }), o = c(() => typeof t.create == "function"), s = c(() => typeof t.update == "function"), l = c(() => typeof t.delete == "function");
483
+ function u(e) {
484
+ return s.value && e.canUpdate !== !1;
485
+ }
486
+ function d(e) {
487
+ return l.value && e.canDelete !== !1;
488
+ }
489
+ function f(e, t) {
490
+ throw new p(`[Templatical] Saved blocks: ${e} is ${t}. Check the capability before calling — the editor's own UI hides the action.`);
491
+ }
492
+ function m(t) {
493
+ b(e.onError, t);
494
+ }
495
+ async function h(i) {
496
+ r.value = !0;
497
+ try {
498
+ n.value = await t.list(i);
499
+ } catch (t) {
500
+ throw e.onError?.(t), t;
501
+ } finally {
502
+ r.value = !1;
503
+ }
504
+ }
505
+ async function g(r, i, a) {
506
+ let { create: o } = t;
507
+ typeof o != "function" && f("create", "disabled by the provider");
508
+ try {
509
+ let e = await o(a ? {
510
+ name: r,
511
+ content: i,
512
+ category: a
513
+ } : {
514
+ name: r,
515
+ content: i
516
+ });
517
+ return n.value = [e, ...n.value], m(() => t.onCreated?.(e)), e;
518
+ } catch (t) {
519
+ throw e.onError?.(t), t;
520
+ }
521
+ }
522
+ async function _(r, i) {
523
+ let { update: a } = t;
524
+ typeof a != "function" && f("update", "disabled by the provider");
525
+ let o = n.value.find((e) => e.id === r);
526
+ o && o.canUpdate === !1 && f("update", `not permitted for entry "${r}"`);
527
+ try {
528
+ let e = await a(r, i);
529
+ return n.value = n.value.map((t) => t.id === r ? e : t), m(() => t.onUpdated?.(e)), e;
530
+ } catch (t) {
531
+ throw e.onError?.(t), t;
532
+ }
533
+ }
534
+ async function v(r) {
535
+ let { delete: i } = t;
536
+ typeof i != "function" && f("delete", "disabled by the provider");
537
+ let a = n.value.find((e) => e.id === r) ?? null;
538
+ a && a.canDelete === !1 && f("delete", `not permitted for entry "${r}"`);
539
+ try {
540
+ await i(r), n.value = n.value.filter((e) => e.id !== r), a && m(() => t.onDeleted?.(a));
541
+ } catch (t) {
542
+ throw e.onError?.(t), t;
543
+ }
544
+ }
545
+ return {
546
+ savedBlocks: n,
547
+ isLoading: r,
548
+ categories: i,
549
+ canCreate: o,
550
+ canUpdate: s,
551
+ canDelete: l,
552
+ canUpdateBlock: u,
553
+ canDeleteBlock: d,
554
+ load: h,
555
+ create: g,
556
+ update: _,
557
+ remove: v
558
+ };
559
+ }
560
+ var F = "templatical:saved-blocks";
561
+ function I(e = {}) {
562
+ let t = e.key ?? F;
563
+ function n() {
564
+ if (typeof localStorage > "u") throw Error("[Templatical] createLocalStorageSavedBlocksProvider requires a browser environment with localStorage. Supply your own SavedBlocksProvider for server-side or non-browser use.");
565
+ return localStorage;
566
+ }
567
+ function r() {
568
+ let e = n().getItem(t);
569
+ if (!e) return [];
570
+ try {
571
+ let t = JSON.parse(e);
572
+ return Array.isArray(t) ? t : [];
573
+ } catch {
574
+ return [];
575
+ }
576
+ }
577
+ function i(e) {
578
+ n().setItem(t, JSON.stringify(e));
579
+ }
580
+ return {
581
+ async list(e) {
582
+ let t = r(), n = e?.search?.trim().toLowerCase(), i = e?.category?.trim();
583
+ return t.filter((e) => !(n && !e.name.toLowerCase().includes(n) || i && e.category !== i));
584
+ },
585
+ async create(e) {
586
+ let t = (/* @__PURE__ */ new Date()).toISOString(), n = {
587
+ id: l(),
588
+ name: e.name,
589
+ content: e.content,
590
+ ...e.category ? { category: e.category } : {},
591
+ createdAt: t,
592
+ updatedAt: t
593
+ };
594
+ return i([n, ...r()]), n;
595
+ },
596
+ async update(e, t) {
597
+ let n = r(), a = n.findIndex((t) => t.id === e);
598
+ if (a === -1) throw Error(`[Templatical] Saved block not found: ${e}`);
599
+ let o = {
600
+ ...n[a],
601
+ ...t,
602
+ updatedAt: (/* @__PURE__ */ new Date()).toISOString()
603
+ }, s = [...n];
604
+ return s[a] = o, i(s), o;
605
+ },
606
+ async delete(e) {
607
+ let t = r();
608
+ if (!t.some((t) => t.id === e)) throw Error(`[Templatical] Saved block not found: ${e}`);
609
+ i(t.filter((t) => t.id !== e));
610
+ }
611
+ };
612
+ }
613
+ var L = "templatical:media", R = 50;
614
+ function z(e = {}) {
615
+ let t = e.key ?? L;
616
+ function n() {
617
+ if (typeof localStorage > "u") throw Error("[Templatical] createLocalStorageMediaProvider requires a browser environment with localStorage. Supply your own MediaProvider for server-side or non-browser use.");
618
+ return localStorage;
619
+ }
620
+ function r() {
621
+ let e = n().getItem(t);
622
+ if (!e) return [];
623
+ try {
624
+ let t = JSON.parse(e);
625
+ return Array.isArray(t) ? t : [];
626
+ } catch {
627
+ return [];
628
+ }
629
+ }
630
+ function i(e) {
631
+ n().setItem(t, JSON.stringify(e));
632
+ }
633
+ function a(e) {
634
+ return typeof FileReader > "u" ? Promise.reject(/* @__PURE__ */ Error("[Templatical] createLocalStorageMediaProvider requires a browser environment with FileReader.")) : new Promise((t, n) => {
635
+ let r = new FileReader();
636
+ r.onload = () => {
637
+ if (typeof r.result != "string") {
638
+ n(/* @__PURE__ */ Error("[Templatical] Failed to read file as a data URL."));
639
+ return;
640
+ }
641
+ t(r.result);
642
+ }, r.onerror = () => {
643
+ n(r.error ?? /* @__PURE__ */ Error("[Templatical] Failed to read file as a data URL."));
644
+ }, r.readAsDataURL(e);
645
+ });
646
+ }
647
+ return {
648
+ async list(e) {
649
+ let t = r(), n = e?.search?.trim().toLowerCase(), i = n ? t.filter((e) => {
650
+ let t = e.filename?.toLowerCase() ?? "", r = e.alt?.toLowerCase() ?? "";
651
+ return t.includes(n) || r.includes(n);
652
+ }) : t, a = e?.cursor ? Number.parseInt(e.cursor, 10) : 0, o = Number.isFinite(a) && a > 0 ? a : 0, s = i.slice(o, o + R), c = { items: s }, l = o + s.length;
653
+ return l < i.length && (c.nextCursor = String(l)), c;
654
+ },
655
+ async create(e) {
656
+ let t = await a(e.file), n = (/* @__PURE__ */ new Date()).toISOString(), o = {
657
+ id: l(),
658
+ url: t,
659
+ filename: e.filename || e.file.name,
660
+ createdAt: n,
661
+ updatedAt: n,
662
+ size: e.file.size
663
+ };
664
+ return e.alt !== void 0 && (o.alt = e.alt), e.file.type && (o.mimeType = e.file.type), e.folderId !== void 0 && (o.folderId = e.folderId), i([o, ...r()]), o;
665
+ },
666
+ async update(e, t) {
667
+ let n = r(), a = n.findIndex((t) => t.id === e);
668
+ if (a === -1) throw Error(`[Templatical] Media asset not found: ${e}`);
669
+ let o = n[a], s = {
670
+ ...o,
671
+ ...t,
672
+ id: o.id,
673
+ url: o.url,
674
+ updatedAt: (/* @__PURE__ */ new Date()).toISOString()
675
+ }, c = [...n];
676
+ return c[a] = s, i(c), s;
677
+ },
678
+ async delete(e) {
679
+ let t = r();
680
+ for (let n of e) if (!t.some((e) => e.id === n)) throw Error(`[Templatical] Media asset not found: ${n}`);
681
+ let n = new Set(e);
682
+ i(t.filter((e) => !n.has(e.id)));
683
+ },
684
+ folders: !1,
685
+ replace: !1,
686
+ importFromUrl: !1,
687
+ checkUsage: !1,
688
+ frequentlyUsed: !1,
689
+ storage: !1
690
+ };
691
+ }
692
+ function B(e) {
693
+ let { provider: t, getTemplateId: n } = e, r = a([]), i = a(!1), o = a(void 0), s = a(!1), l = /* @__PURE__ */ new Map(), u = c(() => typeof t.create == "function"), d = c(() => typeof t.restore == "function");
694
+ function f(e) {
695
+ let t = n();
696
+ if (!t) throw new p(`[Templatical] Version history: ${e} needs a template. Call create() or load() first.`);
697
+ return t;
698
+ }
699
+ function m(e) {
700
+ throw new p(`[Templatical] Version history: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
701
+ }
702
+ function h(t) {
703
+ b(e.onError, t);
704
+ }
705
+ async function g(n) {
706
+ let a = f("list");
707
+ i.value = !0;
708
+ try {
709
+ let e = await t.list(a, n);
710
+ r.value = e.versions, o.value = e.nextCursor;
711
+ } catch (t) {
712
+ throw e.onError?.(t), t;
713
+ } finally {
714
+ i.value = !1;
715
+ }
716
+ }
717
+ function _(e) {
718
+ return e.content ?? l.get(e.id) ?? null;
719
+ }
720
+ async function v(n) {
721
+ let r = _(n);
722
+ if (r) return r;
723
+ let i = f("get");
724
+ try {
725
+ let e = await t.get(i, n.id);
726
+ return l.set(n.id, e), e;
727
+ } catch (t) {
728
+ throw e.onError?.(t), t;
729
+ }
730
+ }
731
+ async function y(n, i) {
732
+ let { create: a } = t;
733
+ typeof a != "function" && m("create");
734
+ let o = f("create");
735
+ try {
736
+ let e = await a(o, n, i);
737
+ return r.value = [e, ...r.value], h(() => t.onCreated?.(e)), e;
738
+ } catch (t) {
739
+ throw e.onError?.(t), t;
740
+ }
741
+ }
742
+ async function x(n) {
743
+ let { restore: r } = t;
744
+ typeof r != "function" && m("restore");
745
+ let i = f("restore"), a;
746
+ s.value = !0;
747
+ try {
748
+ a = await r(i, n);
749
+ } catch (t) {
750
+ throw e.onError?.(t), t;
751
+ } finally {
752
+ s.value = !1;
753
+ }
754
+ return h(() => t.onRestored?.(a)), a;
755
+ }
756
+ return {
757
+ nextCursor: o,
758
+ versions: r,
759
+ isLoading: i,
760
+ isRestoring: s,
761
+ canCreate: u,
762
+ canRestore: d,
763
+ load: g,
764
+ peekContent: _,
765
+ resolveContent: v,
766
+ create: y,
767
+ restore: x
768
+ };
769
+ }
770
+ function V(e) {
771
+ let { provider: t, getTemplateId: n, getUser: r } = e, i = a([]), o = a(!1), s = a(!1), l = c(() => typeof t.create == "function"), u = c(() => typeof t.update == "function"), d = c(() => typeof t.delete == "function"), f = c(() => typeof t.setResolved == "function"), m = c(() => i.value.reduce((e, t) => e + 1 + (t.replies?.length ?? 0), 0)), h = c(() => i.value.filter((e) => !e.resolvedAt).length), g = c(() => {
772
+ let e = /* @__PURE__ */ new Map();
773
+ for (let t of i.value) t.blockId && e.set(t.blockId, (e.get(t.blockId) ?? 0) + 1 + (t.replies?.length ?? 0));
774
+ return e;
775
+ });
776
+ function _(e) {
777
+ let t = n();
778
+ if (!t) throw new p(`[Templatical] Comments: ${e} needs a template. Call create() or load() first.`);
779
+ return t;
780
+ }
781
+ function v(e) {
782
+ let t = r();
783
+ if (!t) throw new p(`[Templatical] Comments: ${e} needs to know who is commenting. Pass init({ user: { id, name } }) — an unattributed comment is not written.`);
784
+ return t;
785
+ }
786
+ function x(e) {
787
+ throw new p(`[Templatical] Comments: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
788
+ }
789
+ function S(e) {
790
+ for (let t of i.value) {
791
+ if (t.id === e) return t;
792
+ for (let n of t.replies ?? []) if (n.id === e) return n;
793
+ }
794
+ return null;
795
+ }
796
+ function C(e) {
797
+ let t = r();
798
+ return t !== null && e.author.id === t.id;
799
+ }
800
+ function w(t) {
801
+ let n = y(t);
802
+ throw e.onError?.(n), n;
803
+ }
804
+ function T(t) {
805
+ b(e.onError, t);
806
+ }
807
+ function E(e, t, n) {
808
+ return [
809
+ ...e.slice(0, t),
810
+ n,
811
+ ...e.slice(t + 1)
812
+ ];
813
+ }
814
+ function D(e, t) {
815
+ return e !== void 0 && JSON.stringify(e) === JSON.stringify(t);
816
+ }
817
+ function O(e) {
818
+ if (e.parentId) {
819
+ let t = !1, n = i.value.map((n) => {
820
+ if (n.id !== e.parentId) return n;
821
+ let r = n.replies ?? [], i = r.findIndex((t) => t.id === e.id);
822
+ return i !== -1 && D(r[i], e) ? n : (t = !0, {
823
+ ...n,
824
+ replies: i === -1 ? [...r, e] : E(r, i, e)
825
+ });
826
+ });
827
+ return t && (i.value = n), t;
828
+ }
829
+ let t = i.value.findIndex((t) => t.id === e.id);
830
+ if (t === -1) return i.value = [...i.value, e], !0;
831
+ let n = {
832
+ ...e,
833
+ replies: e.replies ?? i.value[t].replies
834
+ };
835
+ return !D(i.value[t], n) && (i.value = E(i.value, t, n), !0);
836
+ }
837
+ function k(e, t) {
838
+ let n = S(e), r = t ?? n?.parentId ?? null;
839
+ return r ? i.value = i.value.map((t) => t.id === r ? {
840
+ ...t,
841
+ replies: (t.replies ?? []).filter((t) => t.id !== e)
842
+ } : t) : i.value = i.value.filter((t) => t.id !== e), n;
843
+ }
844
+ async function A(e) {
845
+ let n = _("list");
846
+ o.value = !0;
847
+ try {
848
+ i.value = await t.list(n, e);
849
+ } catch (e) {
850
+ w(e);
851
+ } finally {
852
+ o.value = !1;
853
+ }
854
+ }
855
+ async function j(e) {
856
+ let { create: n } = t;
857
+ typeof n != "function" && x("create");
858
+ let r = _("create");
859
+ v("create"), s.value = !0;
860
+ try {
861
+ let i = await n(r, e);
862
+ return O(i), T(() => t.onCreated?.(i, { origin: "local" })), i;
863
+ } catch (e) {
864
+ w(e);
865
+ } finally {
866
+ s.value = !1;
867
+ }
868
+ }
869
+ async function M(e, n) {
870
+ let { update: r } = t;
871
+ typeof r != "function" && x("update");
872
+ let i = _("update");
873
+ v("update"), s.value = !0;
874
+ try {
875
+ let a = await r(i, e, n);
876
+ return O(a), T(() => t.onUpdated?.(a, { origin: "local" })), a;
877
+ } catch (e) {
878
+ w(e);
879
+ } finally {
880
+ s.value = !1;
881
+ }
882
+ }
883
+ async function N(e) {
884
+ let { delete: n } = t;
885
+ typeof n != "function" && x("delete");
886
+ let r = _("delete");
887
+ v("delete");
888
+ let i = S(e);
889
+ s.value = !0;
890
+ try {
891
+ await n(r, e), k(e), i && T(() => t.onDeleted?.(i, { origin: "local" }));
892
+ } catch (e) {
893
+ w(e);
894
+ } finally {
895
+ s.value = !1;
896
+ }
897
+ }
898
+ async function P(e, n) {
899
+ let { setResolved: r } = t;
900
+ typeof r != "function" && x("setResolved");
901
+ let i = _("setResolved");
902
+ v("setResolved"), s.value = !0;
903
+ try {
904
+ let a = await r(i, e, n);
905
+ return O(a), T(() => (a.resolvedAt ? t.onResolved : t.onUnresolved)?.(a, { origin: "local" })), a;
906
+ } catch (e) {
907
+ w(e);
908
+ } finally {
909
+ s.value = !1;
910
+ }
911
+ }
912
+ function F(e) {
913
+ O(e) && T(() => t.onCreated?.(e, { origin: "remote" }));
914
+ }
915
+ function I(e) {
916
+ O(e) && T(() => (e.resolvedAt ? t.onResolved : t.onUpdated)?.(e, { origin: "remote" }));
917
+ }
918
+ function L(e, n) {
919
+ let r = k(e, n);
920
+ r && T(() => t.onDeleted?.(r, { origin: "remote" }));
921
+ }
922
+ return {
923
+ comments: i,
924
+ isLoading: o,
925
+ isSubmitting: s,
926
+ canCreate: l,
927
+ canUpdate: u,
928
+ canDelete: d,
929
+ canResolve: f,
930
+ totalCount: m,
931
+ unresolvedCount: h,
932
+ commentCountByBlock: g,
933
+ load: A,
934
+ create: j,
935
+ update: M,
936
+ remove: N,
937
+ setResolved: P,
938
+ find: S,
939
+ isOwn: C,
940
+ applyRemoteCreate: F,
941
+ applyRemoteUpdate: I,
942
+ applyRemoteDelete: L
943
+ };
944
+ }
945
+ function H(e) {
946
+ let { comments: r, provider: i, getTemplateId: a } = e, { subscribe: o } = i;
947
+ if (typeof o != "function") return;
948
+ let s = null;
949
+ function c() {
950
+ s?.(), s = null;
951
+ }
952
+ n(() => a(), (e) => {
953
+ c(), e && (s = o(e, (e) => {
954
+ switch (e.type) {
955
+ case "created":
956
+ r.applyRemoteCreate(e.comment);
957
+ break;
958
+ case "updated":
959
+ r.applyRemoteUpdate(e.comment);
960
+ break;
961
+ case "deleted": r.applyRemoteDelete(e.commentId, e.parentId);
962
+ }
963
+ }));
964
+ }, { immediate: !0 }), t(c);
965
+ }
966
+ //#endregion
967
+ //#region src/utils/blockTypeLabels.ts
968
+ function U(e, t) {
969
+ return t.blocks[e] ?? e;
970
+ }
971
+ function W(e, t, n = []) {
972
+ if (e.type !== "custom") return U(e.type, t);
973
+ let { customType: r } = e;
974
+ return n.find((e) => e.type === r)?.name ?? r;
975
+ }
976
+ //#endregion
977
+ //#region src/utils/resolveFieldColors.ts
978
+ function G(e, t) {
979
+ let n = _({ presets: e.presets }, g), r = n.presets.length === 0, i = e.allowCustom ?? t.allowCustom;
980
+ return {
981
+ presets: r ? t.presets : n.presets,
982
+ allowCustom: t.allowCustom !== !1 && i,
983
+ invalidPresets: n.invalidPresets,
984
+ emptyPresets: e.presets !== void 0 && e.presets.length === 0,
985
+ presetsInherited: r,
986
+ allowCustomIgnored: e.allowCustom === !0 && t.allowCustom === !1
987
+ };
988
+ }
989
+ var K = v({
990
+ name: "code",
991
+ size: 24,
992
+ node: [["path", {
993
+ d: "m16 18 6-6-6-6",
994
+ key: "eg8j8"
995
+ }], ["path", {
996
+ d: "m8 6-6 6 6 6",
997
+ key: "ppft3o"
998
+ }]]
999
+ }), q = v({
1000
+ name: "image",
1001
+ size: 24,
1002
+ node: [
1003
+ ["rect", {
1004
+ width: "18",
1005
+ height: "18",
1006
+ x: "3",
1007
+ y: "3",
1008
+ rx: "2",
1009
+ ry: "2",
1010
+ key: "1m3agn"
1011
+ }],
1012
+ ["circle", {
1013
+ cx: "9",
1014
+ cy: "9",
1015
+ r: "2",
1016
+ key: "af1f0g"
1017
+ }],
1018
+ ["path", {
1019
+ d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",
1020
+ key: "1xmnt7"
1021
+ }]
1022
+ ]
1023
+ }), J = v({
1024
+ name: "navigation",
1025
+ size: 24,
1026
+ node: [["polygon", {
1027
+ points: "3 11 22 2 13 21 11 13 3 11",
1028
+ key: "1ltx0t"
1029
+ }]]
1030
+ }), Y = v({
1031
+ name: "share-2",
1032
+ size: 24,
1033
+ node: [
1034
+ ["circle", {
1035
+ cx: "18",
1036
+ cy: "5",
1037
+ r: "3",
1038
+ key: "gq8acd"
1039
+ }],
1040
+ ["circle", {
1041
+ cx: "6",
1042
+ cy: "12",
1043
+ r: "3",
1044
+ key: "w7nqdw"
1045
+ }],
1046
+ ["circle", {
1047
+ cx: "18",
1048
+ cy: "19",
1049
+ r: "3",
1050
+ key: "1xt0gg"
1051
+ }],
1052
+ ["line", {
1053
+ x1: "8.59",
1054
+ x2: "15.42",
1055
+ y1: "13.51",
1056
+ y2: "17.49",
1057
+ key: "47mynk"
1058
+ }],
1059
+ ["line", {
1060
+ x1: "15.41",
1061
+ x2: "8.59",
1062
+ y1: "6.51",
1063
+ y2: "10.49",
1064
+ key: "1n3mei"
1065
+ }]
1066
+ ]
1067
+ }), X = v({
1068
+ name: "table",
1069
+ size: 24,
1070
+ node: [
1071
+ ["path", {
1072
+ d: "M12 3v18",
1073
+ key: "108xh3"
1074
+ }],
1075
+ ["rect", {
1076
+ width: "18",
1077
+ height: "18",
1078
+ x: "3",
1079
+ y: "3",
1080
+ rx: "2",
1081
+ key: "afitv7"
1082
+ }],
1083
+ ["path", {
1084
+ d: "M3 9h18",
1085
+ key: "1pudct"
1086
+ }],
1087
+ ["path", {
1088
+ d: "M3 15h18",
1089
+ key: "5xshup"
1090
+ }]
1091
+ ]
1092
+ }), Z = "image/";
1093
+ function Q(e) {
1094
+ let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || s(r), { isOverDropZone: a } = h(t, {
1095
+ preventDefaultForUnhandled: !0,
1096
+ onDrop: (e) => {
1097
+ if (!i()) return;
1098
+ let t = (e ?? []).filter((e) => e.type.startsWith(Z));
1099
+ t.length > 0 && n([t[0]]);
1100
+ }
1101
+ });
1102
+ return { isOver: c(() => i() && a.value) };
1103
+ }
1104
+ //#endregion
1105
+ //#region src/constants/socialIcons.ts
1106
+ var $ = d, ee = {
1107
+ small: 24,
1108
+ medium: 32,
1109
+ large: 48
1110
+ }, te = [
1111
+ "facebook",
1112
+ "twitter",
1113
+ "instagram",
1114
+ "linkedin",
1115
+ "youtube",
1116
+ "tiktok",
1117
+ "pinterest",
1118
+ "email",
1119
+ "website",
1120
+ "whatsapp",
1121
+ "telegram",
1122
+ "discord",
1123
+ "snapchat",
1124
+ "reddit",
1125
+ "github",
1126
+ "dribbble",
1127
+ "behance"
1128
+ ];
1129
+ //#endregion
1130
+ export { E as C, B as E, S, P as T, O as _, X as a, j as b, q as c, W as d, U as f, A as g, I as h, Q as i, K as l, z as m, $ as n, Y as o, k as p, te as r, J as s, ee as t, G as u, H as v, N as w, M as x, V as y };