@templatical/editor 0.45.0 → 0.47.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 (309) hide show
  1. package/dist/{AiChatSidebar-BlFWWhBv.js → AiChatSidebar-BPOv5Ra8.js} +14 -14
  2. package/dist/{AiFeatureMenu-CvWygUmC.js → AiFeatureMenu-H_WT4YR8.js} +7 -7
  3. package/dist/{BlockIssueBadge-CZA1XvAh.js → BlockIssueBadge-AgO5abEB.js} +5 -5
  4. package/dist/BlockPreviewCanvas-CZDBSPoG.js +136 -0
  5. package/dist/{CloudHeaderExtras-BzM1QU1r.js → CloudHeaderExtras-gXsTYoGG.js} +5 -5
  6. package/dist/{CloudPanels-d36YXXyn.js → CloudPanels-H_GdbOfZ.js} +9 -9
  7. package/dist/{CollaboratorBar-rwXe_Qd2.js → CollaboratorBar-BazGNMqN.js} +4 -4
  8. package/dist/{CommentsPanel-Bn6P5crU.js → CommentsPanel-CMgsG_yh.js} +2 -2
  9. package/dist/{CommentsSidebar-B8wT932T.js → CommentsSidebar-DCh8DTP8.js} +14 -14
  10. package/dist/CountdownBlock-zx39Dyby.js +92 -0
  11. package/dist/{CountdownToolbar-lbjCc8ik.js → CountdownToolbar-DVuucA3v.js} +7 -7
  12. package/dist/{DesignReferenceSidebar-zlJQsP0X.js → DesignReferenceSidebar-DxNV4lQp.js} +12 -12
  13. package/dist/{IssuesPanel-CHx3m8SP.js → IssuesPanel-CUpW54P4.js} +8 -8
  14. package/dist/{LoadingTrack-DROqNuuD.js → LoadingTrack-6XsqodoY.js} +1 -1
  15. package/dist/{LogicTagInsertButton-BvftbkL4.js → LogicTagInsertButton-DDYKnqmj.js} +22 -22
  16. package/dist/{MediaEditModal-EY1YYcpw.js → MediaEditModal-D_we0Scr.js} +4 -4
  17. package/dist/{MediaPanels-CRVFGFZW.js → MediaPanels-L95BwWV1.js} +2 -2
  18. package/dist/{MergeTagInput-CR1kcj8X.js → MergeTagInput-DAL998tx.js} +3 -3
  19. package/dist/{MergeTagModeToggle-DssKrVYb.js → MergeTagModeToggle-CjHO26rb.js} +7 -7
  20. package/dist/{ParagraphEditor-DFizsZRc.js → ParagraphEditor-CcEN1N6n.js} +165 -150
  21. package/dist/{RestoreVersionDialog-Cp3q2mU4.js → RestoreVersionDialog-B2OH5rgs.js} +6 -6
  22. package/dist/{RichTextEditorContent-Cj3oaPMk.js → RichTextEditorContent-BGeTg-QL.js} +12 -12
  23. package/dist/{SaveBlockDialog-BR8vW_XF.js → SaveBlockDialog-CCVyU-7y.js} +13 -13
  24. package/dist/{SavedBlocksBrowserModal-DmwbmKxI.js → SavedBlocksBrowserModal-_WmSeqIh.js} +14 -14
  25. package/dist/{SavedBlocksPanels-D4XKrs-a.js → SavedBlocksPanels-DVX_ruQ7.js} +2 -2
  26. package/dist/{SavedBlocksPickBar-gfc-o5sR.js → SavedBlocksPickBar-DVJC28hP.js} +5 -5
  27. package/dist/{TemplateScoringPanel-3lHzuCl0.js → TemplateScoringPanel-U0QFiwdI.js} +16 -16
  28. package/dist/{TemplateSettings-D7aNrd0d.js → TemplateSettings-CdhTm9JQ.js} +12 -12
  29. package/dist/{TestEmailModal-DUmtcSm-.js → TestEmailModal-BqToA_ls.js} +14 -14
  30. package/dist/{TestEmailPanel-s9gISTI8.js → TestEmailPanel-Cn4Ptq0j.js} +2 -2
  31. package/dist/{TitleEditor-C-uHqtml.js → TitleEditor-CZdqeltH.js} +13 -13
  32. package/dist/{ToggleSwitch-CTwwCIVA.js → ToggleSwitch-BR8Sgzib.js} +2 -2
  33. package/dist/{Toolbar-CLpA36RO.js → Toolbar-OGakTBEg.js} +748 -629
  34. package/dist/{TplModal-D6XtxusQ.js → TplModal-CoczSDma.js} +6 -6
  35. package/dist/{VersionHistoryMenu-D7zaTMrb.js → VersionHistoryMenu-DY5z5FZr.js} +10 -10
  36. package/dist/{VersionHistoryPanels-Dvowtt7V.js → VersionHistoryPanels-DowHeDAQ.js} +2 -2
  37. package/dist/{VersionPreviewBanner-BUKb9gc6.js → VersionPreviewBanner-Bo8NxBbh.js} +4 -4
  38. package/dist/WrapperBlock-BOABSX9W.js +46 -0
  39. package/dist/{blockTypeIcons-D3aj5u_5.js → blockTypeIcons-4E1U8f99.js} +5 -5
  40. package/dist/bundle-stats.json +6 -6
  41. package/dist/{ca-C__Dzq--.js → ca-DMoGGP9L.js} +21 -0
  42. package/dist/cdn/chunks/{AiChatSidebar-SRGBP-SL.js → AiChatSidebar-B72rI0be.js} +12 -12
  43. package/dist/cdn/chunks/{AiChatSidebar-SRGBP-SL.js.map → AiChatSidebar-B72rI0be.js.map} +1 -1
  44. package/dist/cdn/chunks/{AiFeatureMenu-oZhlgsGh.js → AiFeatureMenu-BqSG9iEd.js} +6 -6
  45. package/dist/cdn/chunks/{AiFeatureMenu-oZhlgsGh.js.map → AiFeatureMenu-BqSG9iEd.js.map} +1 -1
  46. package/dist/cdn/chunks/{BlockIssueBadge-05Q3L4RV.js → BlockIssueBadge-CS7ytN-z.js} +5 -5
  47. package/dist/cdn/chunks/{BlockIssueBadge-05Q3L4RV.js.map → BlockIssueBadge-CS7ytN-z.js.map} +1 -1
  48. package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js +138 -0
  49. package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js.map +1 -0
  50. package/dist/cdn/chunks/{CloudHeaderExtras-t-_ZlHwn.js → CloudHeaderExtras-DJXLTUHc.js} +5 -5
  51. package/dist/cdn/chunks/{CloudHeaderExtras-t-_ZlHwn.js.map → CloudHeaderExtras-DJXLTUHc.js.map} +1 -1
  52. package/dist/cdn/chunks/{CloudPanels-DR2eEcpX.js → CloudPanels-D1fPLjG8.js} +8 -8
  53. package/dist/cdn/chunks/{CloudPanels-DR2eEcpX.js.map → CloudPanels-D1fPLjG8.js.map} +1 -1
  54. package/dist/cdn/chunks/{CollaboratorBar-w8_2WPE0.js → CollaboratorBar-MeRQB1eN.js} +5 -5
  55. package/dist/cdn/chunks/{CollaboratorBar-w8_2WPE0.js.map → CollaboratorBar-MeRQB1eN.js.map} +1 -1
  56. package/dist/cdn/chunks/{CommentsPanel-VH_NJ5HZ.js → CommentsPanel-CmxPylNf.js} +3 -3
  57. package/dist/cdn/chunks/{CommentsPanel-VH_NJ5HZ.js.map → CommentsPanel-CmxPylNf.js.map} +1 -1
  58. package/dist/cdn/chunks/{CommentsSidebar-CYPH5rVi.js → CommentsSidebar-CrleQTbo.js} +13 -13
  59. package/dist/cdn/chunks/{CommentsSidebar-CYPH5rVi.js.map → CommentsSidebar-CrleQTbo.js.map} +1 -1
  60. package/dist/cdn/chunks/CountdownBlock-Dasj191h.js +94 -0
  61. package/dist/cdn/chunks/CountdownBlock-Dasj191h.js.map +1 -0
  62. package/dist/cdn/chunks/{CountdownToolbar-CvNuDR5Z.js → CountdownToolbar-DPIOtlN0.js} +8 -8
  63. package/dist/cdn/chunks/{CountdownToolbar-CvNuDR5Z.js.map → CountdownToolbar-DPIOtlN0.js.map} +1 -1
  64. package/dist/cdn/chunks/{DesignReferenceSidebar-CJg_5GXU.js → DesignReferenceSidebar-BgTNqgCy.js} +8 -8
  65. package/dist/cdn/chunks/{DesignReferenceSidebar-CJg_5GXU.js.map → DesignReferenceSidebar-BgTNqgCy.js.map} +1 -1
  66. package/dist/cdn/chunks/{IssuesPanel-DXqlRk19.js → IssuesPanel-BGjLcNpQ.js} +6 -6
  67. package/dist/cdn/chunks/{IssuesPanel-DXqlRk19.js.map → IssuesPanel-BGjLcNpQ.js.map} +1 -1
  68. package/dist/cdn/chunks/{LoadingTrack-Cg1HRIND.js → LoadingTrack-DbH97JR9.js} +2 -2
  69. package/dist/cdn/chunks/{LoadingTrack-Cg1HRIND.js.map → LoadingTrack-DbH97JR9.js.map} +1 -1
  70. package/dist/cdn/chunks/{LogicTagInsertButton-DnHghQHb.js → LogicTagInsertButton-BEsqPhMr.js} +11 -11
  71. package/dist/cdn/chunks/{LogicTagInsertButton-DnHghQHb.js.map → LogicTagInsertButton-BEsqPhMr.js.map} +1 -1
  72. package/dist/cdn/chunks/{MediaEditModal-CD3fVbWI.js → MediaEditModal-C1Ao0i2c.js} +4 -4
  73. package/dist/cdn/chunks/{MediaEditModal-CD3fVbWI.js.map → MediaEditModal-C1Ao0i2c.js.map} +1 -1
  74. package/dist/cdn/chunks/{MediaPanels-B2AyUUcf.js → MediaPanels-1GPYiZZ0.js} +3 -3
  75. package/dist/cdn/chunks/{MediaPanels-B2AyUUcf.js.map → MediaPanels-1GPYiZZ0.js.map} +1 -1
  76. package/dist/cdn/chunks/{MergeTagInput-heTX9P_k.js → MergeTagInput-Dy13_OLc.js} +4 -4
  77. package/dist/cdn/chunks/{MergeTagInput-heTX9P_k.js.map → MergeTagInput-Dy13_OLc.js.map} +1 -1
  78. package/dist/cdn/chunks/{MergeTagModeToggle-C9EfuZIP.js → MergeTagModeToggle-B2CPZOeF.js} +6 -6
  79. package/dist/cdn/chunks/{MergeTagModeToggle-C9EfuZIP.js.map → MergeTagModeToggle-B2CPZOeF.js.map} +1 -1
  80. package/dist/cdn/chunks/{ParagraphEditor-B5DN4Sy4.js → ParagraphEditor-BGLIw7kg.js} +91 -76
  81. package/dist/cdn/chunks/ParagraphEditor-BGLIw7kg.js.map +1 -0
  82. package/dist/cdn/chunks/{RestoreVersionDialog-DBgJ-Nui.js → RestoreVersionDialog-BhykE8En.js} +8 -8
  83. package/dist/cdn/chunks/{RestoreVersionDialog-DBgJ-Nui.js.map → RestoreVersionDialog-BhykE8En.js.map} +1 -1
  84. package/dist/cdn/chunks/{RichTextEditorContent-LOas4rfU.js → RichTextEditorContent-B-txUvPL.js} +11 -11
  85. package/dist/cdn/chunks/{RichTextEditorContent-LOas4rfU.js.map → RichTextEditorContent-B-txUvPL.js.map} +1 -1
  86. package/dist/cdn/chunks/{SaveBlockDialog-Dx-QVQCX.js → SaveBlockDialog-BHqEp7jw.js} +40 -40
  87. package/dist/cdn/chunks/{SaveBlockDialog-Dx-QVQCX.js.map → SaveBlockDialog-BHqEp7jw.js.map} +1 -1
  88. package/dist/cdn/chunks/{SavedBlocksBrowserModal-C2RQ-JCc.js → SavedBlocksBrowserModal-BhR6AI0f.js} +10 -10
  89. package/dist/cdn/chunks/{SavedBlocksBrowserModal-C2RQ-JCc.js.map → SavedBlocksBrowserModal-BhR6AI0f.js.map} +1 -1
  90. package/dist/cdn/chunks/{SavedBlocksPanels-BmRbvqqL.js → SavedBlocksPanels-YwffJtfY.js} +3 -3
  91. package/dist/cdn/chunks/{SavedBlocksPanels-BmRbvqqL.js.map → SavedBlocksPanels-YwffJtfY.js.map} +1 -1
  92. package/dist/cdn/chunks/{SavedBlocksPickBar-BzwKojoJ.js → SavedBlocksPickBar-BtpFU7es.js} +6 -6
  93. package/dist/cdn/chunks/{SavedBlocksPickBar-BzwKojoJ.js.map → SavedBlocksPickBar-BtpFU7es.js.map} +1 -1
  94. package/dist/cdn/chunks/{TemplateScoringPanel-C_57Bfkf.js → TemplateScoringPanel-N4ySFh5w.js} +12 -12
  95. package/dist/cdn/chunks/{TemplateScoringPanel-C_57Bfkf.js.map → TemplateScoringPanel-N4ySFh5w.js.map} +1 -1
  96. package/dist/cdn/chunks/{TemplateSettings-G-yV7C1C.js → TemplateSettings-C7b5X34U.js} +13 -13
  97. package/dist/cdn/chunks/TemplateSettings-C7b5X34U.js.map +1 -0
  98. package/dist/cdn/chunks/{TestEmailModal-lOeztfTN.js → TestEmailModal-DHJKI5y5.js} +11 -11
  99. package/dist/cdn/chunks/{TestEmailModal-lOeztfTN.js.map → TestEmailModal-DHJKI5y5.js.map} +1 -1
  100. package/dist/cdn/chunks/{TestEmailPanel-CZswVkk_.js → TestEmailPanel-lYtzTXpR.js} +3 -3
  101. package/dist/cdn/chunks/{TestEmailPanel-CZswVkk_.js.map → TestEmailPanel-lYtzTXpR.js.map} +1 -1
  102. package/dist/cdn/chunks/{TitleEditor-CnTT2Y3H.js → TitleEditor-5eY01ypW.js} +15 -15
  103. package/dist/cdn/chunks/{TitleEditor-CnTT2Y3H.js.map → TitleEditor-5eY01ypW.js.map} +1 -1
  104. package/dist/cdn/chunks/{ToggleSwitch-CLHteVMO.js → ToggleSwitch-BN8rMC2m.js} +3 -3
  105. package/dist/cdn/chunks/{ToggleSwitch-CLHteVMO.js.map → ToggleSwitch-BN8rMC2m.js.map} +1 -1
  106. package/dist/cdn/chunks/{Toolbar-K4tIkpG1.js → Toolbar-Ik54UO_-.js} +696 -575
  107. package/dist/cdn/chunks/Toolbar-Ik54UO_-.js.map +1 -0
  108. package/dist/cdn/chunks/{TplModal-OOT36AjS.js → TplModal-WIBiBrGy.js} +6 -6
  109. package/dist/cdn/chunks/TplModal-WIBiBrGy.js.map +1 -0
  110. package/dist/cdn/chunks/{VersionHistoryMenu-DbxuJgDO.js → VersionHistoryMenu-CZnlS9K5.js} +6 -6
  111. package/dist/cdn/chunks/{VersionHistoryMenu-DbxuJgDO.js.map → VersionHistoryMenu-CZnlS9K5.js.map} +1 -1
  112. package/dist/cdn/chunks/{VersionHistoryPanels-BrpYRSfW.js → VersionHistoryPanels-xjLSpR1e.js} +3 -3
  113. package/dist/cdn/chunks/{VersionHistoryPanels-BrpYRSfW.js.map → VersionHistoryPanels-xjLSpR1e.js.map} +1 -1
  114. package/dist/cdn/chunks/{VersionPreviewBanner-HRERIH-v.js → VersionPreviewBanner-sARpn4hh.js} +5 -5
  115. package/dist/cdn/chunks/{VersionPreviewBanner-HRERIH-v.js.map → VersionPreviewBanner-sARpn4hh.js.map} +1 -1
  116. package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js +48 -0
  117. package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js.map +1 -0
  118. package/dist/cdn/chunks/{blockTypeIcons-DdZP-3FM.js → blockTypeIcons-D3g5QzdT.js} +2 -2
  119. package/dist/cdn/chunks/{blockTypeIcons-DdZP-3FM.js.map → blockTypeIcons-D3g5QzdT.js.map} +1 -1
  120. package/dist/cdn/chunks/{ca-C__Dzq--.js → ca-DMoGGP9L.js} +22 -1
  121. package/dist/cdn/chunks/ca-DMoGGP9L.js.map +1 -0
  122. package/dist/cdn/chunks/{cloud-bhW8qTnh.js → cloud-Cd7ptfhL.js} +3 -3
  123. package/dist/cdn/chunks/{cloud-bhW8qTnh.js.map → cloud-Cd7ptfhL.js.map} +1 -1
  124. package/dist/cdn/chunks/{createCloudRuntime-CeRJkLR2.js → createCloudRuntime-DtIZ2Lee.js} +17 -8
  125. package/dist/cdn/chunks/createCloudRuntime-DtIZ2Lee.js.map +1 -0
  126. package/dist/cdn/chunks/{de-CGjbQ2mt.js → de-DgAelLbM.js} +22 -1
  127. package/dist/cdn/chunks/de-DgAelLbM.js.map +1 -0
  128. package/dist/cdn/chunks/{dist-B7W-Lb65.js → dist-CjL6JHML.js} +3 -3
  129. package/dist/cdn/chunks/{dist-B7W-Lb65.js.map → dist-CjL6JHML.js.map} +1 -1
  130. package/dist/cdn/chunks/{dist-C5nRd_ua.js → dist-MNQYSEWU.js} +4 -4
  131. package/dist/cdn/chunks/{dist-C5nRd_ua.js.map → dist-MNQYSEWU.js.map} +1 -1
  132. package/dist/cdn/chunks/{draggable-BUTN5vZC.js → draggable-DrsNwZuB.js} +1673 -1595
  133. package/dist/cdn/chunks/draggable-DrsNwZuB.js.map +1 -0
  134. package/dist/cdn/chunks/{editor-modal-BpsbYA4_.js → editor-modal-Bcwo0orC.js} +34 -34
  135. package/dist/cdn/chunks/{editor-modal-BpsbYA4_.js.map → editor-modal-Bcwo0orC.js.map} +1 -1
  136. package/dist/cdn/chunks/en-BANFWZdr.js +1 -0
  137. package/dist/cdn/chunks/{en-BTiiAC-B.js → en-Dekrl7HA.js} +22 -1
  138. package/dist/cdn/chunks/en-Dekrl7HA.js.map +1 -0
  139. package/dist/cdn/chunks/{es-CdTOcSTf.js → es-BaZzyidV.js} +22 -1
  140. package/dist/cdn/chunks/es-BaZzyidV.js.map +1 -0
  141. package/dist/cdn/chunks/{extensions-xjRsIjMP.js → extensions-T-t8MKDb.js} +9 -9
  142. package/dist/cdn/chunks/extensions-T-t8MKDb.js.map +1 -0
  143. package/dist/cdn/chunks/{fr-B6lcLLzC.js → fr-C5ucb1HK.js} +22 -1
  144. package/dist/cdn/chunks/fr-C5ucb1HK.js.map +1 -0
  145. package/dist/cdn/chunks/{icons-Dr9erFGs.js → icons-C4fX9Bwy.js} +27 -27
  146. package/dist/cdn/chunks/{icons-Dr9erFGs.js.map → icons-C4fX9Bwy.js.map} +1 -1
  147. package/dist/cdn/chunks/{ja-BhdkqENz.js → ja-CUgR3mV0.js} +22 -1
  148. package/dist/cdn/chunks/ja-CUgR3mV0.js.map +1 -0
  149. package/dist/cdn/chunks/{keys-BKu-LOk5.js → keys-HI-INbkz.js} +2 -2
  150. package/dist/cdn/chunks/{keys-BKu-LOk5.js.map → keys-HI-INbkz.js.map} +1 -1
  151. package/dist/{nl-CE3YItYg.js → cdn/chunks/nl-qrLY7hMS.js} +23 -0
  152. package/dist/cdn/chunks/nl-qrLY7hMS.js.map +1 -0
  153. package/dist/{preRenderCustomBlocks-DAS48ZCp.js → cdn/chunks/preRenderCustomBlocks-Co0oi0Jf.js} +7 -3
  154. package/dist/cdn/chunks/preRenderCustomBlocks-Co0oi0Jf.js.map +1 -0
  155. package/dist/cdn/chunks/{pt-BR-CUIT4rq4.js → pt-BR-C6hMTQYi.js} +22 -1
  156. package/dist/cdn/chunks/pt-BR-C6hMTQYi.js.map +1 -0
  157. package/dist/cdn/chunks/socialIcons-DACw1wA8.js +1103 -0
  158. package/dist/cdn/chunks/socialIcons-DACw1wA8.js.map +1 -0
  159. package/dist/cdn/chunks/{src-BcqNlDMe.js → src-BnJlDuyB.js} +361 -206
  160. package/dist/cdn/chunks/src-BnJlDuyB.js.map +1 -0
  161. package/dist/cdn/chunks/{src-CkXmV2I2.js → src-Bu0qBpbf.js} +202 -202
  162. package/dist/cdn/chunks/src-Bu0qBpbf.js.map +1 -0
  163. package/dist/cdn/chunks/{src-HA9F2kvk.js → src-CHlVFp7r.js} +368 -311
  164. package/dist/cdn/chunks/src-CHlVFp7r.js.map +1 -0
  165. package/dist/{styleConstants-C_YAPdQS.js → cdn/chunks/styleConstants-D1Jz-TFU.js} +9 -28
  166. package/dist/cdn/chunks/{styleConstants-C_YAPdQS.js.map → styleConstants-D1Jz-TFU.js.map} +1 -1
  167. package/dist/cdn/chunks/{tiptap-CYDXLO17.js → tiptap-BPigZk5G.js} +3258 -3098
  168. package/dist/cdn/chunks/tiptap-BPigZk5G.js.map +1 -0
  169. package/dist/cdn/chunks/{useAliveFlag-DzyXG-8A.js → useAliveFlag-DCB96vzR.js} +2 -2
  170. package/dist/cdn/chunks/{useAliveFlag-DzyXG-8A.js.map → useAliveFlag-DCB96vzR.js.map} +1 -1
  171. package/dist/cdn/chunks/{useCloudI18n-Cgk0ts_F.js → useCloudI18n-BBF4waXO.js} +3 -3
  172. package/dist/cdn/chunks/{useCloudI18n-Cgk0ts_F.js.map → useCloudI18n-BBF4waXO.js.map} +1 -1
  173. package/dist/cdn/chunks/{useEditorCore-BF1ZhcGu.js → useEditorCore-Bf2d1DKI.js} +622 -607
  174. package/dist/cdn/chunks/useEditorCore-Bf2d1DKI.js.map +1 -0
  175. package/dist/cdn/chunks/useEditorRoot-CTc6O8al.js +10 -0
  176. package/dist/cdn/chunks/{useEditorRoot-DDPIcEOO.js.map → useEditorRoot-CTc6O8al.js.map} +1 -1
  177. package/dist/cdn/chunks/{useI18n-DO4NTunW.js → useI18n-DUlyyIJJ.js} +3 -3
  178. package/dist/cdn/chunks/{useI18n-DO4NTunW.js.map → useI18n-DUlyyIJJ.js.map} +1 -1
  179. package/dist/cdn/chunks/{useLogicTag-91bO_SOi.js → useLogicTag-3S63go4E.js} +4 -4
  180. package/dist/cdn/chunks/{useLogicTag-91bO_SOi.js.map → useLogicTag-3S63go4E.js.map} +1 -1
  181. package/dist/cdn/chunks/{useMergeTag-hwifK582.js → useMergeTag-BQtxUHq1.js} +4 -4
  182. package/dist/cdn/chunks/{useMergeTag-hwifK582.js.map → useMergeTag-BQtxUHq1.js.map} +1 -1
  183. package/dist/cdn/chunks/{usePopoverPosition-CtVNwoHj.js → usePopoverPosition-IbaW6-Ao.js} +3 -3
  184. package/dist/cdn/chunks/{usePopoverPosition-CtVNwoHj.js.map → usePopoverPosition-IbaW6-Ao.js.map} +1 -1
  185. package/dist/cdn/chunks/{useScrollToBlock-BDNJ25X1.js → useScrollToBlock-uUa601I4.js} +4 -5
  186. package/dist/cdn/chunks/useScrollToBlock-uUa601I4.js.map +1 -0
  187. package/dist/cdn/chunks/withCurrentFont-DwJd-lKc.js +21 -0
  188. package/dist/cdn/chunks/withCurrentFont-DwJd-lKc.js.map +1 -0
  189. package/dist/cdn/editor.css +1 -1
  190. package/dist/cdn/editor.js +602 -580
  191. package/dist/cdn/editor.js.map +1 -1
  192. package/dist/{check-ZKvtMdpe.js → check-B5R4zXr7.js} +1 -1
  193. package/dist/{chevron-down-RrwkYMlp.js → chevron-down-BKyl85NV.js} +1 -1
  194. package/dist/{chevron-right-CklHaa1U.js → chevron-right-BmToZ8qX.js} +1 -1
  195. package/dist/{chevron-up-DjN2NTbo.js → chevron-up-DNYdOxPC.js} +1 -1
  196. package/dist/{circle-alert-BR1_Yfb-.js → circle-alert-Dx9ju3YZ.js} +1 -1
  197. package/dist/{clock-BEagNj21.js → clock-Dv9bxsSH.js} +1 -1
  198. package/dist/{cloud-CVfwPu19.js → cloud-DwjaAdwK.js} +2 -2
  199. package/dist/{copy-D6DNoSq1.js → copy-BsKl4dcy.js} +1 -1
  200. package/dist/{createCloudRuntime-GRv_TDb2.js → createCloudRuntime-C8gpPsSi.js} +16 -7
  201. package/dist/{createLucideIcon-BAPyioGd.js → createLucideIcon-DziKp5iU.js} +6 -6
  202. package/dist/{de-CGjbQ2mt.js → de-DgAelLbM.js} +21 -0
  203. package/dist/{dist-Bd7khQsg.js → dist-3HpYixwF.js} +2 -2
  204. package/dist/{dist-lL3nVbxV.js → dist-BC-ZEYLd.js} +2 -2
  205. package/dist/dist-BPFcLKTw.js +5 -0
  206. package/dist/{dist-CSaWqmWM.js → dist-C8koXLhl.js} +390 -241
  207. package/dist/{dist-C-VFTX82.js → dist-CUWI-IvA.js} +2 -2
  208. package/dist/{dist-Bc30883t.js → dist-Cr7RPxI9.js} +5 -5
  209. package/dist/{dist-DapsJxn_.js → dist-CuLwJF7H.js} +2 -2
  210. package/dist/{dist-5KNKxglR.js → dist-CyBwSiAa.js} +2 -2
  211. package/dist/dist-D7Yj7E-F.js +5 -0
  212. package/dist/{dist-B_vYjCsk.js → dist-DAAJogrx.js} +3 -3
  213. package/dist/{dist-CMcFD7gP.js → dist-DBxgrOeo.js} +1906 -1746
  214. package/dist/{dist-DHensKDY.js → dist-DPcf6XZ8.js} +2 -2
  215. package/dist/{dist-5DAb7bYT.js → dist-DVNjPKsH.js} +2 -2
  216. package/dist/{dist-C3eH9-N2.js → dist-DXyGqIDE.js} +2 -2
  217. package/dist/{dist-1H4cnaoD.js → dist-DuufrR8O.js} +4 -4
  218. package/dist/{editor-modal-oRmkDlUs.js → editor-modal-BwyIUnV_.js} +27 -27
  219. package/dist/en-CC-57eC_.js +1 -0
  220. package/dist/{en-BTiiAC-B.js → en-Dekrl7HA.js} +21 -0
  221. package/dist/{es-CdTOcSTf.js → es-BaZzyidV.js} +21 -0
  222. package/dist/{extensions-B65sfZRk.js → extensions-DHyKjsNZ.js} +19 -19
  223. package/dist/{eye-DvsTBI57.js → eye-DQuinb9k.js} +1 -1
  224. package/dist/{fr-B6lcLLzC.js → fr-C5ucb1HK.js} +21 -0
  225. package/dist/{image-up-BoFGZm5Q.js → image-up-yTfLjOrj.js} +1 -1
  226. package/dist/index.d.ts +92 -20
  227. package/dist/{info-0bQQGjTV.js → info-C7OjlS11.js} +1 -1
  228. package/dist/{ja-BhdkqENz.js → ja-CUgR3mV0.js} +21 -0
  229. package/dist/{keys-injl74ob.js → keys-BKFq19a2.js} +1 -1
  230. package/dist/{link-Cstrr3Ep.js → link-CrUFaZ0t.js} +1 -1
  231. package/dist/{list-Dx9Rmy5s.js → list-CLgv6M-k.js} +1 -1
  232. package/dist/{loader-circle-D8Qqs0MG.js → loader-circle-BXM5VO0K.js} +1 -1
  233. package/dist/{message-circle-D78ELX6I.js → message-circle-BisdQ8H9.js} +1 -1
  234. package/dist/{cdn/chunks/nl-CE3YItYg.js → nl-qrLY7hMS.js} +21 -2
  235. package/dist/{package-DOvM9sHE.js → package-C1T4AxV1.js} +1 -1
  236. package/dist/{pencil-B6m0OG0n.js → pencil-oo2mwf4C.js} +1 -1
  237. package/dist/{plus-D-nEKxTc.js → plus-BIilXopD.js} +1 -1
  238. package/dist/{cdn/chunks/preRenderCustomBlocks-CFwa7nP9.js → preRenderCustomBlocks-lFX0HHiV.js} +3 -3
  239. package/dist/{pt-BR-CUIT4rq4.js → pt-BR-C6hMTQYi.js} +21 -0
  240. package/dist/{refresh-cw-CXZS-R1U.js → refresh-cw-DrLlkEVC.js} +1 -1
  241. package/dist/{runtime-dom.esm-bundler-CO67ema2.js → runtime-dom.esm-bundler-lFF-QG3j.js} +3 -3
  242. package/dist/{search-DSvil0jo.js → search-DNu9lImk.js} +1 -1
  243. package/dist/{send-BBR28V94.js → send-DDNh3LoJ.js} +1 -1
  244. package/dist/{shield-check-ByxUnaU9.js → shield-check-aXM3o14f.js} +1 -1
  245. package/dist/{smartphone-CNOwGf5T.js → smartphone-isccgDee.js} +1 -1
  246. package/dist/socialIcons-BctavKBN.js +1180 -0
  247. package/dist/{sparkles-DO1hzwzf.js → sparkles-CIMfFxKv.js} +1 -1
  248. package/dist/style.css +1 -1
  249. package/dist/{cdn/chunks/styleConstants-C_YAPdQS.js → styleConstants-D1Jz-TFU.js} +7 -30
  250. package/dist/templatical-editor.js +509 -487
  251. package/dist/{text-align-start-BKEKMheq.js → text-align-start-C4JFeqsq.js} +1 -1
  252. package/dist/{trash-CKEQH4vH.js → trash-8ZD9pK_c.js} +1 -1
  253. package/dist/{triangle-alert-BHnfd3fV.js → triangle-alert-pq45xEHl.js} +1 -1
  254. package/dist/{upload-C8uO7KsR.js → upload-DrNFmVes.js} +1 -1
  255. package/dist/{useAliveFlag-6PtarpNZ.js → useAliveFlag-Dd06mRxe.js} +1 -1
  256. package/dist/{useCloudI18n-GvIOLziA.js → useCloudI18n-Nwqo7pI_.js} +2 -2
  257. package/dist/{useEditorCore-DQSeKPE9.js → useEditorCore-BcT7UI4e.js} +1027 -1018
  258. package/dist/{useEditorRoot-OWzNpDdT.js → useEditorRoot-BD3piYtD.js} +2 -2
  259. package/dist/{useI18n-uF11q85g.js → useI18n-CxVEpurs.js} +2 -2
  260. package/dist/{useLogicTag-BH87j1vZ.js → useLogicTag-D-dI8H6p.js} +3 -3
  261. package/dist/{useMergeTag-DfPKX2Tk.js → useMergeTag-5wMeDBi-.js} +3 -3
  262. package/dist/{usePopoverPosition-DkBrHfCo.js → usePopoverPosition-CwnH1o5g.js} +2 -2
  263. package/dist/{useScrollToBlock-Dr7Sb6Tr.js → useScrollToBlock-Do3suaqp.js} +4 -5
  264. package/dist/{vue.runtime.esm-bundler-CctRY8kr.js → vue.runtime.esm-bundler-CAzmrXdD.js} +1215 -1155
  265. package/dist/withCurrentFont-B4YnsG_2.js +19 -0
  266. package/dist/{x-gEC0yMci.js → x-CBFKGLB1.js} +1 -1
  267. package/package.json +24 -24
  268. package/dist/BlockPreviewCanvas-DwxJOTzH.js +0 -133
  269. package/dist/CountdownBlock-RNx3hIu0.js +0 -91
  270. package/dist/WrapperBlock-CzJa2Mxw.js +0 -34
  271. package/dist/cdn/chunks/BlockPreviewCanvas-hKxE6f-k.js +0 -135
  272. package/dist/cdn/chunks/BlockPreviewCanvas-hKxE6f-k.js.map +0 -1
  273. package/dist/cdn/chunks/CountdownBlock-lHU3Lu7Q.js +0 -93
  274. package/dist/cdn/chunks/CountdownBlock-lHU3Lu7Q.js.map +0 -1
  275. package/dist/cdn/chunks/ParagraphEditor-B5DN4Sy4.js.map +0 -1
  276. package/dist/cdn/chunks/TemplateSettings-G-yV7C1C.js.map +0 -1
  277. package/dist/cdn/chunks/Toolbar-K4tIkpG1.js.map +0 -1
  278. package/dist/cdn/chunks/TplModal-OOT36AjS.js.map +0 -1
  279. package/dist/cdn/chunks/WrapperBlock-DdrnwH80.js +0 -36
  280. package/dist/cdn/chunks/WrapperBlock-DdrnwH80.js.map +0 -1
  281. package/dist/cdn/chunks/ca-C__Dzq--.js.map +0 -1
  282. package/dist/cdn/chunks/createCloudRuntime-CeRJkLR2.js.map +0 -1
  283. package/dist/cdn/chunks/de-CGjbQ2mt.js.map +0 -1
  284. package/dist/cdn/chunks/draggable-BUTN5vZC.js.map +0 -1
  285. package/dist/cdn/chunks/en-BTiiAC-B.js.map +0 -1
  286. package/dist/cdn/chunks/en-CAt6y87e.js +0 -1
  287. package/dist/cdn/chunks/es-CdTOcSTf.js.map +0 -1
  288. package/dist/cdn/chunks/extensions-xjRsIjMP.js.map +0 -1
  289. package/dist/cdn/chunks/fr-B6lcLLzC.js.map +0 -1
  290. package/dist/cdn/chunks/ja-BhdkqENz.js.map +0 -1
  291. package/dist/cdn/chunks/nl-CE3YItYg.js.map +0 -1
  292. package/dist/cdn/chunks/preRenderCustomBlocks-CFwa7nP9.js.map +0 -1
  293. package/dist/cdn/chunks/pt-BR-CUIT4rq4.js.map +0 -1
  294. package/dist/cdn/chunks/socialIcons-CsYnPPll.js +0 -1050
  295. package/dist/cdn/chunks/socialIcons-CsYnPPll.js.map +0 -1
  296. package/dist/cdn/chunks/src-BcqNlDMe.js.map +0 -1
  297. package/dist/cdn/chunks/src-CkXmV2I2.js.map +0 -1
  298. package/dist/cdn/chunks/src-HA9F2kvk.js.map +0 -1
  299. package/dist/cdn/chunks/tiptap-CYDXLO17.js.map +0 -1
  300. package/dist/cdn/chunks/useEditorCore-BF1ZhcGu.js.map +0 -1
  301. package/dist/cdn/chunks/useEditorRoot-DDPIcEOO.js +0 -10
  302. package/dist/cdn/chunks/useScrollToBlock-BDNJ25X1.js.map +0 -1
  303. package/dist/cdn/chunks/withCurrentFont-DeCbPVaE.js +0 -32
  304. package/dist/cdn/chunks/withCurrentFont-DeCbPVaE.js.map +0 -1
  305. package/dist/dist-CFC4pg2o.js +0 -5
  306. package/dist/dist-j2FavQmU.js +0 -5
  307. package/dist/en-Bk4iCfjp.js +0 -1
  308. package/dist/socialIcons-CvAixjj8.js +0 -1126
  309. package/dist/withCurrentFont-DeCbPVaE.js +0 -30
@@ -1,1050 +0,0 @@
1
- import { B as e, Q as t, W as n, X as r, Y as i, Z as a, f as o, ot as s, rt as c } from "./draggable-BUTN5vZC.js";
2
- import { D as l, K as u, S as d, T as f, W as p, dt as m, t as h, x as g } from "./src-BcqNlDMe.js";
3
- import { r as _ } from "./dist-C5nRd_ua.js";
4
- import { o as v, s as y } from "./usePopoverPosition-CtVNwoHj.js";
5
- //#region ../core/src/error-reporting.ts
6
- function b(e) {
7
- return e instanceof Error ? e : Error(String(e), { cause: e });
8
- }
9
- function x(e, t) {
10
- try {
11
- t();
12
- } catch (t) {
13
- e?.(b(t));
14
- }
15
- }
16
- //#endregion
17
- //#region ../core/src/editor.ts
18
- function S(e) {
19
- return e === "1" ? 1 : e === "3" ? 3 : 2;
20
- }
21
- function C(e) {
22
- let t = e.content ?? u(e.defaultFontFamily, e.templateDefaults);
23
- g(t), d(t);
24
- let i = r({
25
- template: null,
26
- content: t,
27
- selectedBlockId: null,
28
- viewport: "desktop",
29
- darkMode: !1,
30
- previewMode: !1,
31
- isDirty: !1,
32
- isSaving: !1,
33
- isLoading: !1,
34
- uiTheme: "auto"
35
- }), o = 0;
36
- function s() {
37
- i.isDirty = !0, o++;
38
- }
39
- let c = n({
40
- get: () => i.content,
41
- set: (e) => {
42
- i.content = e, s();
43
- }
44
- }), l = n(() => i.selectedBlockId ? f(i.content.blocks, i.selectedBlockId) : null);
45
- function f(e, t) {
46
- for (let n of e) {
47
- if (n.id === t) return n;
48
- if (n.type === "section") for (let e of n.children) {
49
- let n = f(e, t);
50
- if (n) return n;
51
- }
52
- }
53
- return null;
54
- }
55
- function p(e, t) {
56
- if (t.add(e.id), e.type === "section") for (let n of e.children) for (let e of n) p(e, t);
57
- }
58
- function m(e, t, n = { blocks: e }) {
59
- for (let r = 0; r < e.length; r++) {
60
- let i = e[r];
61
- if (i.id === t) return n;
62
- if (i.type === "section") for (let e = 0; e < i.children.length; e++) {
63
- let n = m(i.children[e], t, {
64
- blocks: i.children[e],
65
- sectionId: i.id,
66
- columnIndex: e
67
- });
68
- if (n) return n;
69
- }
70
- }
71
- return null;
72
- }
73
- function _(t) {
74
- return e.lockedBlocks?.value.has(t) ?? !1;
75
- }
76
- function v(e) {
77
- let t = m(i.content.blocks, e);
78
- if (!t) return null;
79
- let n = t.blocks.findIndex((t) => t.id === e);
80
- return n === -1 ? null : {
81
- targetSectionId: t.sectionId,
82
- columnIndex: t.columnIndex,
83
- index: n
84
- };
85
- }
86
- function y(e, t = !0) {
87
- g(e), d(e), i.content = e, t && s();
88
- }
89
- function b(e) {
90
- e && _(e) || (i.selectedBlockId = e);
91
- }
92
- function C(e) {
93
- i.viewport = e;
94
- }
95
- function w(e) {
96
- i.darkMode = e;
97
- }
98
- function T(e) {
99
- i.uiTheme = e;
100
- }
101
- function E(e) {
102
- i.previewMode = e, e && (i.selectedBlockId = null);
103
- }
104
- function D(e, t) {
105
- if (_(e)) return;
106
- let n = f(i.content.blocks, e);
107
- n && (Object.assign(n, t), s());
108
- }
109
- function O(e) {
110
- i.content.settings = {
111
- ...i.content.settings,
112
- ...e
113
- }, s();
114
- }
115
- function k(e, t, n = 0, r) {
116
- let a = {
117
- settings: i.content.settings,
118
- blocks: [e]
119
- };
120
- if (g(a), d(a), !(t && e.type === "section")) {
121
- if (t) {
122
- if (_(t)) return;
123
- let a = f(i.content.blocks, t);
124
- if (a && a.type === "section") {
125
- if (n < 0 || n >= S(a.columns)) return;
126
- a.children[n] = a.children[n] || [];
127
- let t = a.children[n];
128
- r !== void 0 && r < t.length ? t.splice(r, 0, e) : t.push(e);
129
- }
130
- } else r !== void 0 && r < i.content.blocks.length ? i.content.blocks.splice(r, 0, e) : i.content.blocks.push(e);
131
- s();
132
- }
133
- }
134
- function A(e) {
135
- if (_(e)) return;
136
- let t = m(i.content.blocks, e);
137
- if (t) {
138
- let n = t.blocks.findIndex((t) => t.id === e);
139
- if (n !== -1) {
140
- let [e] = t.blocks.splice(n, 1);
141
- if (i.selectedBlockId) {
142
- let t = /* @__PURE__ */ new Set();
143
- p(e, t), t.has(i.selectedBlockId) && (i.selectedBlockId = null);
144
- }
145
- s();
146
- }
147
- }
148
- }
149
- function j(e, t, n, r = 0) {
150
- if (_(e) || n && _(n)) return;
151
- let a = m(i.content.blocks, e);
152
- if (!a) return;
153
- let o = a.blocks.findIndex((t) => t.id === e);
154
- if (o === -1 || n && a.blocks[o].type === "section") return;
155
- let c;
156
- if (n) {
157
- let e = f(i.content.blocks, n);
158
- if (!e || e.type !== "section" || r < 0 || r >= S(e.columns)) return;
159
- e.children[r] = e.children[r] || [], c = e.children[r];
160
- } else c = i.content.blocks;
161
- let [l] = a.blocks.splice(o, 1);
162
- c.splice(t, 0, l), s();
163
- }
164
- function M() {
165
- s();
166
- }
167
- function N(e, t) {
168
- throw new h(`[Templatical] Templates: ${e} ${t}`);
169
- }
170
- function P(t) {
171
- x(e.onError, t);
172
- }
173
- function F(t) {
174
- let { templates: n } = e;
175
- return n || N(t, "needs a templates provider. Pass one as `init({ templates })` to enable saving and loading."), n;
176
- }
177
- function I(e) {
178
- i.template && (i.template = {
179
- ...i.template,
180
- name: e
181
- }, s());
182
- }
183
- async function L(t) {
184
- let n = F("create()"), { create: r } = n;
185
- typeof r != "function" && N("create()", "is disabled by the provider — its `create` is `false`.");
186
- let a;
187
- i.isLoading = !0;
188
- try {
189
- t?.content && (i.content = t.content);
190
- let e = o;
191
- a = await r(t?.name === void 0 ? { content: i.content } : {
192
- name: t.name,
193
- content: i.content
194
- }), i.template = a, o === e && (i.isDirty = !1);
195
- } catch (t) {
196
- throw e.onError?.(t), t;
197
- } finally {
198
- i.isLoading = !1;
199
- }
200
- return P(() => n.onCreated?.(a)), a;
201
- }
202
- async function R(t) {
203
- let n = F("load()"), r;
204
- i.isLoading = !0;
205
- try {
206
- r = await n.load(t), g(r.content), d(r.content), i.template = r, i.content = r.content, i.isDirty = !1;
207
- } catch (t) {
208
- throw e.onError?.(t), t;
209
- } finally {
210
- i.isLoading = !1;
211
- }
212
- return P(() => n.onLoaded?.(r)), r;
213
- }
214
- async function z(t = "api") {
215
- let n = F("save()"), { save: r } = n;
216
- typeof r != "function" && N("save()", "is disabled by the provider — its `save` is `false`.");
217
- let a = i.template;
218
- a || N("save()", "has no template loaded. Call create() or load() first.");
219
- let s = a.name === void 0 ? { content: i.content } : {
220
- name: a.name,
221
- content: i.content
222
- }, c;
223
- i.isSaving = !0;
224
- try {
225
- let e = o;
226
- if (c = await r(a.id, s), i.template?.id === a.id) {
227
- let e = i.template.name;
228
- i.template = e === a.name ? c : {
229
- ...c,
230
- name: e
231
- };
232
- }
233
- o === e && (i.isDirty = !1);
234
- } catch (t) {
235
- throw e.onError?.(t), t;
236
- } finally {
237
- i.isSaving = !1;
238
- }
239
- return P(() => n.onSaved?.(c, { trigger: t })), c;
240
- }
241
- function B() {
242
- return i.template?.id !== void 0;
243
- }
244
- return {
245
- state: a(i),
246
- content: c,
247
- selectedBlock: l,
248
- isBlockLocked: _,
249
- setContent: y,
250
- selectBlock: b,
251
- setViewport: C,
252
- setDarkMode: w,
253
- setUiTheme: T,
254
- setPreviewMode: E,
255
- updateBlock: D,
256
- updateSettings: O,
257
- addBlock: k,
258
- removeBlock: A,
259
- moveBlock: j,
260
- markDirty: M,
261
- findBlockLocation: v,
262
- setName: I,
263
- create: L,
264
- load: R,
265
- save: z,
266
- hasTemplate: B
267
- };
268
- }
269
- //#endregion
270
- //#region ../core/src/history.ts
271
- var w = 50, T = 300, E = 1500;
272
- function D(e) {
273
- let { content: r, setContent: i, isRemoteOperation: a, maxSize: o = w } = e, s = t([]), c = t([]), l = t(!1), u = null, d = null, p = n(() => s.value.length > 0), m = n(() => c.value.length > 0);
274
- function h() {
275
- return f(r.value);
276
- }
277
- function g(e) {
278
- s.value.push(e), s.value.length > o && s.value.splice(0, s.value.length - o);
279
- }
280
- function _() {
281
- d &&= (clearTimeout(d.timeoutId), null);
282
- }
283
- function v() {
284
- a?.() || (_(), g(h()), c.value = []);
285
- }
286
- function y(e) {
287
- a?.() || (d && d.blockId === e ? (clearTimeout(d.timeoutId), d.timeoutId = setTimeout(() => {
288
- d = null;
289
- }, T)) : (_(), g(h()), c.value = [], d = {
290
- blockId: e,
291
- timeoutId: setTimeout(() => {
292
- d = null;
293
- }, T)
294
- }));
295
- }
296
- function b() {
297
- l.value = !0, u && clearTimeout(u), u = setTimeout(() => {
298
- l.value = !1, u = null;
299
- }, E);
300
- }
301
- function x() {
302
- if (s.value.length === 0) return;
303
- _();
304
- let e = s.value.pop();
305
- c.value.push(h()), i(e, !0), b();
306
- }
307
- function S() {
308
- if (c.value.length === 0) return;
309
- _();
310
- let e = c.value.pop();
311
- s.value.push(h()), i(e, !0), b();
312
- }
313
- function C() {
314
- s.value = [], c.value = [], _();
315
- }
316
- function D() {
317
- C(), u &&= (clearTimeout(u), null);
318
- }
319
- return {
320
- canUndo: p,
321
- canRedo: m,
322
- isNavigating: l,
323
- undo: x,
324
- redo: S,
325
- record: v,
326
- recordDebounced: y,
327
- clear: C,
328
- destroy: D
329
- };
330
- }
331
- //#endregion
332
- //#region ../core/src/block-actions.ts
333
- function O(e) {
334
- e.type === "table" ? e.rows = e.rows.map((e) => ({
335
- ...e,
336
- id: p(),
337
- cells: e.cells.map((e) => ({
338
- ...e,
339
- id: p()
340
- }))
341
- })) : e.type === "social" ? e.icons = e.icons.map((e) => ({
342
- ...e,
343
- id: p()
344
- })) : e.type === "menu" && (e.items = e.items.map((e) => ({
345
- ...e,
346
- id: p()
347
- })));
348
- }
349
- function k(e) {
350
- let { addBlock: t, removeBlock: n, updateBlock: r, selectBlock: i, findBlockLocation: a } = e;
351
- function o(n, r, a) {
352
- let o = typeof e.blockDefaults == "function" ? e.blockDefaults() : e.blockDefaults, s = l(n, o);
353
- return t(s, r, a), i(s.id), s;
354
- }
355
- function s(e, n, r) {
356
- let o = JSON.parse(JSON.stringify(e));
357
- if (o.id = p(), O(o), o.type === "section" && (o.children = o.children.map((e) => e.map((e) => {
358
- let t = JSON.parse(JSON.stringify(e));
359
- return t.id = p(), O(t), t;
360
- }))), n !== void 0 || r !== void 0) t(o, n, r);
361
- else {
362
- let i = a?.(e.id) ?? null;
363
- i ? t(o, i.targetSectionId, i.columnIndex, i.index + 1) : t(o, n, r);
364
- }
365
- return i(o.id), o;
366
- }
367
- function c(e) {
368
- n(e);
369
- }
370
- function u(e, t, n) {
371
- r(e, { [t]: n });
372
- }
373
- return {
374
- createAndAddBlock: o,
375
- duplicateBlock: s,
376
- deleteBlock: c,
377
- updateBlockProperty: u
378
- };
379
- }
380
- //#endregion
381
- //#region ../core/src/auto-save.ts
382
- var A = 2e3;
383
- function j(e) {
384
- let { content: t, isDirty: n, onChange: r, debounce: i = A, enabled: a = !0 } = e, o = null, c = !1;
385
- function l() {
386
- return typeof a == "function" ? a() : a;
387
- }
388
- function u() {
389
- c = !0, f();
390
- }
391
- function d() {
392
- c = !1;
393
- }
394
- function f() {
395
- o &&= (clearTimeout(o), null);
396
- }
397
- function p() {
398
- f(), n() && r(JSON.parse(JSON.stringify(t.value)));
399
- }
400
- function m() {
401
- l() && !c && (f(), o = setTimeout(() => {
402
- o = null, l() && !c && n() && r(JSON.parse(JSON.stringify(t.value)));
403
- }, i));
404
- }
405
- let h = s(t, () => {
406
- m();
407
- }, { deep: !0 });
408
- function g() {
409
- h(), f();
410
- }
411
- return {
412
- flush: p,
413
- cancel: f,
414
- pause: u,
415
- resume: d,
416
- destroy: g
417
- };
418
- }
419
- //#endregion
420
- //#region ../core/src/condition-preview.ts
421
- function M(e) {
422
- let t = r(/* @__PURE__ */ new Set()), i = n(() => t.size > 0);
423
- function a(e) {
424
- return t.has(e);
425
- }
426
- function o(n) {
427
- t.has(n) ? t.delete(n) : (t.add(n), e.state.selectedBlockId === n && e.selectBlock(null));
428
- }
429
- function s() {
430
- t.clear();
431
- }
432
- return {
433
- isHidden: a,
434
- toggleBlock: o,
435
- reset: s,
436
- hasHiddenBlocks: i
437
- };
438
- }
439
- //#endregion
440
- //#region ../core/src/data-source-fetch.ts
441
- function N(e) {
442
- let r = t(!1), i = t(!1), a = n(() => !!e.definition.value?.dataSource), o = n(() => a.value && !e.block.value.dataSourceFetched);
443
- async function s() {
444
- let t = e.definition.value;
445
- if (t?.dataSource) {
446
- r.value = !0, i.value = !1;
447
- try {
448
- let n = await t.dataSource.onFetch({
449
- fieldValues: { ...e.block.value.fieldValues },
450
- blockId: e.block.value.id
451
- });
452
- if (n == null) return;
453
- let r = { ...e.block.value.fieldValues };
454
- for (let e of Object.keys(r)) e in n && (r[e] = n[e]);
455
- e.onUpdate(r, !0);
456
- } catch (e) {
457
- console.warn("[Templatical] Data source fetch error:", e), i.value = !0;
458
- } finally {
459
- r.value = !1;
460
- }
461
- }
462
- }
463
- return {
464
- isFetching: r,
465
- fetchError: i,
466
- fetch: s,
467
- hasDataSource: a,
468
- needsFetch: o
469
- };
470
- }
471
- //#endregion
472
- //#region ../core/src/history-interceptor.ts
473
- function P(e, t) {
474
- let n = e.addBlock, r = e.removeBlock, i = e.moveBlock, a = e.updateBlock, o = e.updateSettings;
475
- e.addBlock = (r, i, a, o) => {
476
- i && e.isBlockLocked(i) || (t.record(), n(r, i, a, o));
477
- }, e.removeBlock = (n) => {
478
- e.isBlockLocked(n) || (t.record(), r(n));
479
- }, e.moveBlock = (n, r, a, o) => {
480
- e.isBlockLocked(n) || a && e.isBlockLocked(a) || (t.record(), i(n, r, a, o));
481
- }, e.updateBlock = (n, r) => {
482
- e.isBlockLocked(n) || (t.recordDebounced(n), a(n, r));
483
- }, e.updateSettings = (e) => {
484
- t.record(), o(e);
485
- };
486
- }
487
- //#endregion
488
- //#region ../core/src/saved-blocks.ts
489
- function F(e) {
490
- let { provider: n } = e, r = t([]), i = t(!1), a = o(() => {
491
- let e = /* @__PURE__ */ new Set();
492
- for (let t of r.value) {
493
- let n = t.category?.trim();
494
- n && e.add(n);
495
- }
496
- return [...e].sort((e, t) => e.localeCompare(t));
497
- }), s = o(() => typeof n.create == "function"), c = o(() => typeof n.update == "function"), l = o(() => typeof n.delete == "function");
498
- function u(e) {
499
- return c.value && e.canUpdate !== !1;
500
- }
501
- function d(e) {
502
- return l.value && e.canDelete !== !1;
503
- }
504
- function f(e, t) {
505
- throw new h(`[Templatical] Saved blocks: ${e} is ${t}. Check the capability before calling — the editor's own UI hides the action.`);
506
- }
507
- function p(t) {
508
- x(e.onError, t);
509
- }
510
- async function m(t) {
511
- i.value = !0;
512
- try {
513
- r.value = await n.list(t);
514
- } catch (t) {
515
- throw e.onError?.(t), t;
516
- } finally {
517
- i.value = !1;
518
- }
519
- }
520
- async function g(t, i, a) {
521
- let { create: o } = n;
522
- typeof o != "function" && f("create", "disabled by the provider");
523
- try {
524
- let e = await o(a ? {
525
- name: t,
526
- content: i,
527
- category: a
528
- } : {
529
- name: t,
530
- content: i
531
- });
532
- return r.value = [e, ...r.value], p(() => n.onCreated?.(e)), e;
533
- } catch (t) {
534
- throw e.onError?.(t), t;
535
- }
536
- }
537
- async function _(t, i) {
538
- let { update: a } = n;
539
- typeof a != "function" && f("update", "disabled by the provider");
540
- let o = r.value.find((e) => e.id === t);
541
- o && o.canUpdate === !1 && f("update", `not permitted for entry "${t}"`);
542
- try {
543
- let e = await a(t, i);
544
- return r.value = r.value.map((n) => n.id === t ? e : n), p(() => n.onUpdated?.(e)), e;
545
- } catch (t) {
546
- throw e.onError?.(t), t;
547
- }
548
- }
549
- async function v(t) {
550
- let { delete: i } = n;
551
- typeof i != "function" && f("delete", "disabled by the provider");
552
- let a = r.value.find((e) => e.id === t) ?? null;
553
- a && a.canDelete === !1 && f("delete", `not permitted for entry "${t}"`);
554
- try {
555
- await i(t), r.value = r.value.filter((e) => e.id !== t), a && p(() => n.onDeleted?.(a));
556
- } catch (t) {
557
- throw e.onError?.(t), t;
558
- }
559
- }
560
- return {
561
- savedBlocks: r,
562
- isLoading: i,
563
- categories: a,
564
- canCreate: s,
565
- canUpdate: c,
566
- canDelete: l,
567
- canUpdateBlock: u,
568
- canDeleteBlock: d,
569
- load: m,
570
- create: g,
571
- update: _,
572
- remove: v
573
- };
574
- }
575
- //#endregion
576
- //#region ../core/src/saved-blocks-local.ts
577
- var I = "templatical:saved-blocks";
578
- function L(e = {}) {
579
- let t = e.key ?? I;
580
- function n() {
581
- 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.");
582
- return localStorage;
583
- }
584
- function r() {
585
- let e = n().getItem(t);
586
- if (!e) return [];
587
- try {
588
- let t = JSON.parse(e);
589
- return Array.isArray(t) ? t : [];
590
- } catch {
591
- return [];
592
- }
593
- }
594
- function i(e) {
595
- n().setItem(t, JSON.stringify(e));
596
- }
597
- return {
598
- async list(e) {
599
- let t = r(), n = e?.search?.trim().toLowerCase(), i = e?.category?.trim();
600
- return t.filter((e) => !(n && !e.name.toLowerCase().includes(n) || i && e.category !== i));
601
- },
602
- async create(e) {
603
- let t = (/* @__PURE__ */ new Date()).toISOString(), n = {
604
- id: p(),
605
- name: e.name,
606
- content: e.content,
607
- ...e.category ? { category: e.category } : {},
608
- createdAt: t,
609
- updatedAt: t
610
- };
611
- return i([n, ...r()]), n;
612
- },
613
- async update(e, t) {
614
- let n = r(), a = n.findIndex((t) => t.id === e);
615
- if (a === -1) throw Error(`[Templatical] Saved block not found: ${e}`);
616
- let o = {
617
- ...n[a],
618
- ...t,
619
- updatedAt: (/* @__PURE__ */ new Date()).toISOString()
620
- }, s = [...n];
621
- return s[a] = o, i(s), o;
622
- },
623
- async delete(e) {
624
- let t = r();
625
- if (!t.some((t) => t.id === e)) throw Error(`[Templatical] Saved block not found: ${e}`);
626
- i(t.filter((t) => t.id !== e));
627
- }
628
- };
629
- }
630
- //#endregion
631
- //#region ../core/src/media-local.ts
632
- var R = "templatical:media", z = 50;
633
- function B(e = {}) {
634
- let t = e.key ?? R;
635
- function n() {
636
- 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.");
637
- return localStorage;
638
- }
639
- function r() {
640
- let e = n().getItem(t);
641
- if (!e) return [];
642
- try {
643
- let t = JSON.parse(e);
644
- return Array.isArray(t) ? t : [];
645
- } catch {
646
- return [];
647
- }
648
- }
649
- function i(e) {
650
- n().setItem(t, JSON.stringify(e));
651
- }
652
- function a(e) {
653
- return typeof FileReader > "u" ? Promise.reject(/* @__PURE__ */ Error("[Templatical] createLocalStorageMediaProvider requires a browser environment with FileReader.")) : new Promise((t, n) => {
654
- let r = new FileReader();
655
- r.onload = () => {
656
- typeof r.result == "string" ? t(r.result) : n(/* @__PURE__ */ Error("[Templatical] Failed to read file as a data URL."));
657
- }, r.onerror = () => {
658
- n(r.error ?? /* @__PURE__ */ Error("[Templatical] Failed to read file as a data URL."));
659
- }, r.readAsDataURL(e);
660
- });
661
- }
662
- return {
663
- async list(e) {
664
- let t = r(), n = e?.search?.trim().toLowerCase(), i = n ? t.filter((e) => {
665
- let t = e.filename?.toLowerCase() ?? "", r = e.alt?.toLowerCase() ?? "";
666
- return t.includes(n) || r.includes(n);
667
- }) : t, a = e?.cursor ? Number.parseInt(e.cursor, 10) : 0, o = Number.isFinite(a) && a > 0 ? a : 0, s = i.slice(o, o + z), c = { items: s }, l = o + s.length;
668
- return l < i.length && (c.nextCursor = String(l)), c;
669
- },
670
- async create(e) {
671
- let t = await a(e.file), n = (/* @__PURE__ */ new Date()).toISOString(), o = {
672
- id: p(),
673
- url: t,
674
- filename: e.filename || e.file.name,
675
- createdAt: n,
676
- updatedAt: n,
677
- size: e.file.size
678
- };
679
- 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;
680
- },
681
- async update(e, t) {
682
- let n = r(), a = n.findIndex((t) => t.id === e);
683
- if (a === -1) throw Error(`[Templatical] Media asset not found: ${e}`);
684
- let o = n[a], s = {
685
- ...o,
686
- ...t,
687
- id: o.id,
688
- url: o.url,
689
- updatedAt: (/* @__PURE__ */ new Date()).toISOString()
690
- }, c = [...n];
691
- return c[a] = s, i(c), s;
692
- },
693
- async delete(e) {
694
- let t = r();
695
- for (let n of e) if (!t.some((e) => e.id === n)) throw Error(`[Templatical] Media asset not found: ${n}`);
696
- let n = new Set(e);
697
- i(t.filter((e) => !n.has(e.id)));
698
- },
699
- folders: !1,
700
- replace: !1,
701
- importFromUrl: !1,
702
- checkUsage: !1,
703
- frequentlyUsed: !1,
704
- storage: !1
705
- };
706
- }
707
- //#endregion
708
- //#region ../core/src/version-history.ts
709
- function V(e) {
710
- let { provider: n, getTemplateId: r } = e, i = t([]), a = t(!1), s = t(void 0), c = t(!1), l = /* @__PURE__ */ new Map(), u = o(() => typeof n.create == "function"), d = o(() => typeof n.restore == "function");
711
- function f(e) {
712
- let t = r();
713
- if (!t) throw new h(`[Templatical] Version history: ${e} needs a template. Call create() or load() first.`);
714
- return t;
715
- }
716
- function p(e) {
717
- throw new h(`[Templatical] Version history: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
718
- }
719
- function m(t) {
720
- x(e.onError, t);
721
- }
722
- async function g(t) {
723
- let r = f("list");
724
- a.value = !0;
725
- try {
726
- let e = await n.list(r, t);
727
- i.value = e.versions, s.value = e.nextCursor;
728
- } catch (t) {
729
- throw e.onError?.(t), t;
730
- } finally {
731
- a.value = !1;
732
- }
733
- }
734
- function _(e) {
735
- return e.content ?? l.get(e.id) ?? null;
736
- }
737
- async function v(t) {
738
- let r = _(t);
739
- if (r) return r;
740
- let i = f("get");
741
- try {
742
- let e = await n.get(i, t.id);
743
- return l.set(t.id, e), e;
744
- } catch (t) {
745
- throw e.onError?.(t), t;
746
- }
747
- }
748
- async function y(t, r) {
749
- let { create: a } = n;
750
- typeof a != "function" && p("create");
751
- let o = f("create");
752
- try {
753
- let e = await a(o, t, r);
754
- return i.value = [e, ...i.value], m(() => n.onCreated?.(e)), e;
755
- } catch (t) {
756
- throw e.onError?.(t), t;
757
- }
758
- }
759
- async function b(t) {
760
- let { restore: r } = n;
761
- typeof r != "function" && p("restore");
762
- let i = f("restore"), a;
763
- c.value = !0;
764
- try {
765
- a = await r(i, t);
766
- } catch (t) {
767
- throw e.onError?.(t), t;
768
- } finally {
769
- c.value = !1;
770
- }
771
- return m(() => n.onRestored?.(a)), a;
772
- }
773
- return {
774
- nextCursor: s,
775
- versions: i,
776
- isLoading: a,
777
- isRestoring: c,
778
- canCreate: u,
779
- canRestore: d,
780
- load: g,
781
- peekContent: _,
782
- resolveContent: v,
783
- create: y,
784
- restore: b
785
- };
786
- }
787
- //#endregion
788
- //#region ../core/src/comments.ts
789
- function H(e) {
790
- let { provider: n, getTemplateId: r, getUser: i } = e, a = t([]), s = t(!1), c = t(!1), l = o(() => typeof n.create == "function"), u = o(() => typeof n.update == "function"), d = o(() => typeof n.delete == "function"), f = o(() => typeof n.setResolved == "function"), p = o(() => a.value.reduce((e, t) => e + 1 + (t.replies?.length ?? 0), 0)), m = o(() => a.value.filter((e) => !e.resolvedAt).length), g = o(() => {
791
- let e = /* @__PURE__ */ new Map();
792
- for (let t of a.value) t.blockId && e.set(t.blockId, (e.get(t.blockId) ?? 0) + 1 + (t.replies?.length ?? 0));
793
- return e;
794
- });
795
- function _(e) {
796
- let t = r();
797
- if (!t) throw new h(`[Templatical] Comments: ${e} needs a template. Call create() or load() first.`);
798
- return t;
799
- }
800
- function v(e) {
801
- let t = i();
802
- if (!t) throw new h(`[Templatical] Comments: ${e} needs to know who is commenting. Pass init({ user: { id, name } }) — an unattributed comment is not written.`);
803
- return t;
804
- }
805
- function y(e) {
806
- throw new h(`[Templatical] Comments: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
807
- }
808
- function S(e) {
809
- for (let t of a.value) {
810
- if (t.id === e) return t;
811
- for (let n of t.replies ?? []) if (n.id === e) return n;
812
- }
813
- return null;
814
- }
815
- function C(e) {
816
- let t = i();
817
- return t !== null && e.author.id === t.id;
818
- }
819
- function w(t) {
820
- let n = b(t);
821
- throw e.onError?.(n), n;
822
- }
823
- function T(t) {
824
- x(e.onError, t);
825
- }
826
- function E(e, t, n) {
827
- return [
828
- ...e.slice(0, t),
829
- n,
830
- ...e.slice(t + 1)
831
- ];
832
- }
833
- function D(e, t) {
834
- return e !== void 0 && JSON.stringify(e) === JSON.stringify(t);
835
- }
836
- function O(e) {
837
- if (e.parentId) {
838
- let t = !1, n = a.value.map((n) => {
839
- if (n.id !== e.parentId) return n;
840
- let r = n.replies ?? [], i = r.findIndex((t) => t.id === e.id);
841
- return i !== -1 && D(r[i], e) ? n : (t = !0, {
842
- ...n,
843
- replies: i === -1 ? [...r, e] : E(r, i, e)
844
- });
845
- });
846
- return t && (a.value = n), t;
847
- }
848
- let t = a.value.findIndex((t) => t.id === e.id);
849
- if (t === -1) return a.value = [...a.value, e], !0;
850
- let n = {
851
- ...e,
852
- replies: e.replies ?? a.value[t].replies
853
- };
854
- return !D(a.value[t], n) && (a.value = E(a.value, t, n), !0);
855
- }
856
- function k(e, t) {
857
- let n = S(e), r = t ?? n?.parentId ?? null;
858
- return r ? a.value = a.value.map((t) => t.id === r ? {
859
- ...t,
860
- replies: (t.replies ?? []).filter((t) => t.id !== e)
861
- } : t) : a.value = a.value.filter((t) => t.id !== e), n;
862
- }
863
- async function A(e) {
864
- let t = _("list");
865
- s.value = !0;
866
- try {
867
- a.value = await n.list(t, e);
868
- } catch (e) {
869
- w(e);
870
- } finally {
871
- s.value = !1;
872
- }
873
- }
874
- async function j(e) {
875
- let { create: t } = n;
876
- typeof t != "function" && y("create");
877
- let r = _("create");
878
- v("create"), c.value = !0;
879
- try {
880
- let i = await t(r, e);
881
- return O(i), T(() => n.onCreated?.(i, { origin: "local" })), i;
882
- } catch (e) {
883
- w(e);
884
- } finally {
885
- c.value = !1;
886
- }
887
- }
888
- async function M(e, t) {
889
- let { update: r } = n;
890
- typeof r != "function" && y("update");
891
- let i = _("update");
892
- v("update"), c.value = !0;
893
- try {
894
- let a = await r(i, e, t);
895
- return O(a), T(() => n.onUpdated?.(a, { origin: "local" })), a;
896
- } catch (e) {
897
- w(e);
898
- } finally {
899
- c.value = !1;
900
- }
901
- }
902
- async function N(e) {
903
- let { delete: t } = n;
904
- typeof t != "function" && y("delete");
905
- let r = _("delete");
906
- v("delete");
907
- let i = S(e);
908
- c.value = !0;
909
- try {
910
- await t(r, e), k(e), i && T(() => n.onDeleted?.(i, { origin: "local" }));
911
- } catch (e) {
912
- w(e);
913
- } finally {
914
- c.value = !1;
915
- }
916
- }
917
- async function P(e, t) {
918
- let { setResolved: r } = n;
919
- typeof r != "function" && y("setResolved");
920
- let i = _("setResolved");
921
- v("setResolved"), c.value = !0;
922
- try {
923
- let a = await r(i, e, t);
924
- return O(a), T(() => (a.resolvedAt ? n.onResolved : n.onUnresolved)?.(a, { origin: "local" })), a;
925
- } catch (e) {
926
- w(e);
927
- } finally {
928
- c.value = !1;
929
- }
930
- }
931
- function F(e) {
932
- O(e) && T(() => n.onCreated?.(e, { origin: "remote" }));
933
- }
934
- function I(e) {
935
- O(e) && T(() => (e.resolvedAt ? n.onResolved : n.onUpdated)?.(e, { origin: "remote" }));
936
- }
937
- function L(e, t) {
938
- let r = k(e, t);
939
- r && T(() => n.onDeleted?.(r, { origin: "remote" }));
940
- }
941
- return {
942
- comments: a,
943
- isLoading: s,
944
- isSubmitting: c,
945
- canCreate: l,
946
- canUpdate: u,
947
- canDelete: d,
948
- canResolve: f,
949
- totalCount: p,
950
- unresolvedCount: m,
951
- commentCountByBlock: g,
952
- load: A,
953
- create: j,
954
- update: M,
955
- remove: N,
956
- setResolved: P,
957
- find: S,
958
- isOwn: C,
959
- applyRemoteCreate: F,
960
- applyRemoteUpdate: I,
961
- applyRemoteDelete: L
962
- };
963
- }
964
- function U(t) {
965
- let { comments: n, provider: r, getTemplateId: a } = t, { subscribe: o } = r;
966
- if (typeof o != "function") return;
967
- let s = null;
968
- function c() {
969
- s?.(), s = null;
970
- }
971
- e(() => a(), (e) => {
972
- c(), e && (s = o(e, (e) => {
973
- switch (e.type) {
974
- case "created":
975
- n.applyRemoteCreate(e.comment);
976
- break;
977
- case "updated":
978
- n.applyRemoteUpdate(e.comment);
979
- break;
980
- case "deleted": n.applyRemoteDelete(e.commentId, e.parentId);
981
- }
982
- }));
983
- }, { immediate: !0 }), i(c);
984
- }
985
- //#endregion
986
- //#region src/utils/blockTypeLabels.ts
987
- function W(e, t) {
988
- return t.blocks[e] ?? e;
989
- }
990
- function G(e, t, n = []) {
991
- if (e.type !== "custom") return W(e.type, t);
992
- let { customType: r } = e;
993
- return n.find((e) => e.type === r)?.name ?? r;
994
- }
995
- //#endregion
996
- //#region src/utils/resolveFieldColors.ts
997
- function K(e, t) {
998
- let n = y({ presets: e.presets }, v), r = n.presets.length === 0;
999
- return {
1000
- presets: r ? t.presets : n.presets,
1001
- allowCustom: t.allowCustom === !1 ? !1 : e.allowCustom ?? t.allowCustom,
1002
- invalidPresets: n.invalidPresets,
1003
- emptyPresets: e.presets !== void 0 && e.presets.length === 0,
1004
- presetsInherited: r,
1005
- allowCustomIgnored: e.allowCustom === !0 && t.allowCustom === !1
1006
- };
1007
- }
1008
- //#endregion
1009
- //#region src/composables/useImageDrop.ts
1010
- var q = "image/";
1011
- function J(e) {
1012
- let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || c(r), { isOverDropZone: a } = _(t, {
1013
- preventDefaultForUnhandled: !0,
1014
- onDrop: (e) => {
1015
- if (!i()) return;
1016
- let t = (e ?? []).filter((e) => e.type.startsWith(q));
1017
- t.length > 0 && n([t[0]]);
1018
- }
1019
- });
1020
- return { isOver: o(() => i() && a.value) };
1021
- }
1022
- //#endregion
1023
- //#region src/constants/socialIcons.ts
1024
- var Y = m, X = {
1025
- small: 24,
1026
- medium: 32,
1027
- large: 48
1028
- }, Z = [
1029
- "facebook",
1030
- "twitter",
1031
- "instagram",
1032
- "linkedin",
1033
- "youtube",
1034
- "tiktok",
1035
- "pinterest",
1036
- "email",
1037
- "website",
1038
- "whatsapp",
1039
- "telegram",
1040
- "discord",
1041
- "snapchat",
1042
- "reddit",
1043
- "github",
1044
- "dribbble",
1045
- "behance"
1046
- ];
1047
- //#endregion
1048
- export { A as _, K as a, D as b, U as c, B as d, L as f, M as g, N as h, J as i, H as l, P as m, Y as n, G as o, F as p, Z as r, W as s, X as t, V as u, j as v, C as x, k as y };
1049
-
1050
- //# sourceMappingURL=socialIcons-CsYnPPll.js.map