@templatical/editor 0.47.0 → 0.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (247) hide show
  1. package/dist/{AiChatSidebar-BPOv5Ra8.js → AiChatSidebar-DxPHFNoT.js} +8 -8
  2. package/dist/{AiFeatureMenu-H_WT4YR8.js → AiFeatureMenu-C8GVqu1d.js} +4 -4
  3. package/dist/{BlockIssueBadge-AgO5abEB.js → BlockIssueBadge-BShkuJis.js} +2 -2
  4. package/dist/BlockPreviewCanvas-tzAtDkXH.js +141 -0
  5. package/dist/{CloudHeaderExtras-gXsTYoGG.js → CloudHeaderExtras-CUSftQdm.js} +2 -2
  6. package/dist/{CloudPanels-H_GdbOfZ.js → CloudPanels-Dgw7tb4R.js} +4 -4
  7. package/dist/{CollaboratorBar-BazGNMqN.js → CollaboratorBar-5rfopCPx.js} +2 -2
  8. package/dist/{CommentsPanel-CMgsG_yh.js → CommentsPanel-DiWzYtnZ.js} +1 -1
  9. package/dist/{CommentsSidebar-DCh8DTP8.js → CommentsSidebar-BOqj16Al.js} +10 -10
  10. package/dist/{CountdownToolbar-DVuucA3v.js → CountdownToolbar-C4y3Ft7H.js} +4 -4
  11. package/dist/{DesignReferenceSidebar-DxNV4lQp.js → DesignReferenceSidebar-BWAi3eQQ.js} +7 -7
  12. package/dist/{IssuesPanel-CUpW54P4.js → IssuesPanel-C-x3I012.js} +5 -5
  13. package/dist/{LogicTagInsertButton-DDYKnqmj.js → LogicTagInsertButton-B1_Wy0AN.js} +6 -6
  14. package/dist/{MediaEditModal-D_we0Scr.js → MediaEditModal-ByOvznRC.js} +1 -1
  15. package/dist/{MediaPanels-L95BwWV1.js → MediaPanels-9mDBv4aL.js} +1 -1
  16. package/dist/{MergeTagInput-DAL998tx.js → MergeTagInput-fOewuF27.js} +1 -1
  17. package/dist/{MergeTagModeToggle-CjHO26rb.js → MergeTagModeToggle-BXamLcv7.js} +4 -4
  18. package/dist/{ParagraphEditor-CcEN1N6n.js → ParagraphEditor-BVjOwwHx.js} +131 -131
  19. package/dist/{RestoreVersionDialog-B2OH5rgs.js → RestoreVersionDialog-BEKXx9xk.js} +3 -3
  20. package/dist/{RichTextEditorContent-BGeTg-QL.js → RichTextEditorContent-D7kp7iig.js} +4 -4
  21. package/dist/{SaveBlockDialog-CCVyU-7y.js → SaveBlockDialog-SJu0lecx.js} +32 -33
  22. package/dist/{SavedBlocksBrowserModal-_WmSeqIh.js → SavedBlocksBrowserModal-DbmIS5uK.js} +9 -9
  23. package/dist/{SavedBlocksPanels-DVX_ruQ7.js → SavedBlocksPanels-Dr5Fxx9Z.js} +1 -1
  24. package/dist/{SavedBlocksPickBar-DVJC28hP.js → SavedBlocksPickBar-DnEWBZJy.js} +2 -2
  25. package/dist/{TemplateScoringPanel-U0QFiwdI.js → TemplateScoringPanel-ynbGl-sr.js} +11 -11
  26. package/dist/{TemplateSettings-CdhTm9JQ.js → TemplateSettings-Bi01S3H3.js} +7 -7
  27. package/dist/{TestEmailModal-BqToA_ls.js → TestEmailModal-CbRY8HQx.js} +7 -7
  28. package/dist/{TestEmailPanel-Cn4Ptq0j.js → TestEmailPanel-NAOmt3xi.js} +1 -1
  29. package/dist/{TitleEditor-CZdqeltH.js → TitleEditor-Cc3DHbuN.js} +8 -8
  30. package/dist/{ToggleSwitch-BR8Sgzib.js → ToggleSwitch-Ozc7YU38.js} +1 -1
  31. package/dist/Toolbar-B-2lO0I8.js +3156 -0
  32. package/dist/{TplModal-CoczSDma.js → TplModal-Bz4-IZ9R.js} +1 -1
  33. package/dist/{VersionHistoryMenu-DY5z5FZr.js → VersionHistoryMenu-CjV1d1zk.js} +5 -5
  34. package/dist/{VersionHistoryPanels-DowHeDAQ.js → VersionHistoryPanels-BtwxrKJn.js} +1 -1
  35. package/dist/{VersionPreviewBanner-Bo8NxBbh.js → VersionPreviewBanner-BLAei1kj.js} +1 -1
  36. package/dist/WrapperBlock-D0qgNqjD.js +45 -0
  37. package/dist/{blockTypeIcons-4E1U8f99.js → blockTypeIcons-CEDZytqP.js} +49 -19
  38. package/dist/bundle-stats.json +8 -8
  39. package/dist/{cdn/chunks/ca-DMoGGP9L.js → ca-CbNzJM3I.js} +17 -3
  40. package/dist/cdn/chunks/{AiChatSidebar-B72rI0be.js → AiChatSidebar-Dk0rJBQN.js} +7 -7
  41. package/dist/cdn/chunks/{AiChatSidebar-B72rI0be.js.map → AiChatSidebar-Dk0rJBQN.js.map} +1 -1
  42. package/dist/cdn/chunks/{AiFeatureMenu-BqSG9iEd.js → AiFeatureMenu-B7b0w8ZS.js} +3 -3
  43. package/dist/cdn/chunks/{AiFeatureMenu-BqSG9iEd.js.map → AiFeatureMenu-B7b0w8ZS.js.map} +1 -1
  44. package/dist/cdn/chunks/{BlockIssueBadge-CS7ytN-z.js → BlockIssueBadge-C7sdnkrF.js} +2 -2
  45. package/dist/cdn/chunks/{BlockIssueBadge-CS7ytN-z.js.map → BlockIssueBadge-C7sdnkrF.js.map} +1 -1
  46. package/dist/cdn/chunks/BlockPreviewCanvas-vK5tBazr.js +143 -0
  47. package/dist/cdn/chunks/BlockPreviewCanvas-vK5tBazr.js.map +1 -0
  48. package/dist/cdn/chunks/{CloudHeaderExtras-DJXLTUHc.js → CloudHeaderExtras-B4fhuwc_.js} +3 -3
  49. package/dist/cdn/chunks/{CloudHeaderExtras-DJXLTUHc.js.map → CloudHeaderExtras-B4fhuwc_.js.map} +1 -1
  50. package/dist/cdn/chunks/{CloudPanels-D1fPLjG8.js → CloudPanels-awqHfJqC.js} +4 -4
  51. package/dist/cdn/chunks/{CloudPanels-D1fPLjG8.js.map → CloudPanels-awqHfJqC.js.map} +1 -1
  52. package/dist/cdn/chunks/{CollaboratorBar-MeRQB1eN.js → CollaboratorBar-CS0ivqkr.js} +3 -3
  53. package/dist/cdn/chunks/{CollaboratorBar-MeRQB1eN.js.map → CollaboratorBar-CS0ivqkr.js.map} +1 -1
  54. package/dist/cdn/chunks/{CommentsPanel-CmxPylNf.js → CommentsPanel-CbzxwsyI.js} +2 -2
  55. package/dist/cdn/chunks/{CommentsPanel-CmxPylNf.js.map → CommentsPanel-CbzxwsyI.js.map} +1 -1
  56. package/dist/cdn/chunks/{CommentsSidebar-CrleQTbo.js → CommentsSidebar-DWPHZuQm.js} +13 -13
  57. package/dist/cdn/chunks/{CommentsSidebar-CrleQTbo.js.map → CommentsSidebar-DWPHZuQm.js.map} +1 -1
  58. package/dist/cdn/chunks/{CountdownToolbar-DPIOtlN0.js → CountdownToolbar-Cqg8FUH-.js} +5 -5
  59. package/dist/cdn/chunks/{CountdownToolbar-DPIOtlN0.js.map → CountdownToolbar-Cqg8FUH-.js.map} +1 -1
  60. package/dist/cdn/chunks/{DesignReferenceSidebar-BgTNqgCy.js → DesignReferenceSidebar-BW9cHnA9.js} +7 -7
  61. package/dist/cdn/chunks/{DesignReferenceSidebar-BgTNqgCy.js.map → DesignReferenceSidebar-BW9cHnA9.js.map} +1 -1
  62. package/dist/cdn/chunks/{IssuesPanel-BGjLcNpQ.js → IssuesPanel-cXf9ywA4.js} +4 -4
  63. package/dist/cdn/chunks/{IssuesPanel-BGjLcNpQ.js.map → IssuesPanel-cXf9ywA4.js.map} +1 -1
  64. package/dist/cdn/chunks/{LogicTagInsertButton-BEsqPhMr.js → LogicTagInsertButton-BMB9vShs.js} +84 -84
  65. package/dist/cdn/chunks/{LogicTagInsertButton-BEsqPhMr.js.map → LogicTagInsertButton-BMB9vShs.js.map} +1 -1
  66. package/dist/cdn/chunks/{MediaEditModal-C1Ao0i2c.js → MediaEditModal-zXfcArr4.js} +2 -2
  67. package/dist/cdn/chunks/{MediaEditModal-C1Ao0i2c.js.map → MediaEditModal-zXfcArr4.js.map} +1 -1
  68. package/dist/cdn/chunks/{MediaPanels-1GPYiZZ0.js → MediaPanels-Cp4XB_dH.js} +2 -2
  69. package/dist/cdn/chunks/{MediaPanels-1GPYiZZ0.js.map → MediaPanels-Cp4XB_dH.js.map} +1 -1
  70. package/dist/cdn/chunks/{MergeTagInput-Dy13_OLc.js → MergeTagInput-DLqrA9co.js} +2 -2
  71. package/dist/cdn/chunks/{MergeTagInput-Dy13_OLc.js.map → MergeTagInput-DLqrA9co.js.map} +1 -1
  72. package/dist/cdn/chunks/{MergeTagModeToggle-B2CPZOeF.js → MergeTagModeToggle-BRiJzzn5.js} +3 -3
  73. package/dist/cdn/chunks/{MergeTagModeToggle-B2CPZOeF.js.map → MergeTagModeToggle-BRiJzzn5.js.map} +1 -1
  74. package/dist/cdn/chunks/{ParagraphEditor-BGLIw7kg.js → ParagraphEditor-D4aq9eeC.js} +35 -35
  75. package/dist/cdn/chunks/{ParagraphEditor-BGLIw7kg.js.map → ParagraphEditor-D4aq9eeC.js.map} +1 -1
  76. package/dist/cdn/chunks/{RestoreVersionDialog-BhykE8En.js → RestoreVersionDialog-BgR6RXSb.js} +5 -5
  77. package/dist/cdn/chunks/{RestoreVersionDialog-BhykE8En.js.map → RestoreVersionDialog-BgR6RXSb.js.map} +1 -1
  78. package/dist/cdn/chunks/{RichTextEditorContent-B-txUvPL.js → RichTextEditorContent-C4DMAn0g.js} +4 -4
  79. package/dist/cdn/chunks/{RichTextEditorContent-B-txUvPL.js.map → RichTextEditorContent-C4DMAn0g.js.map} +1 -1
  80. package/dist/cdn/chunks/{SaveBlockDialog-BHqEp7jw.js → SaveBlockDialog-BaIsQd09.js} +23 -24
  81. package/dist/cdn/chunks/{SaveBlockDialog-BHqEp7jw.js.map → SaveBlockDialog-BaIsQd09.js.map} +1 -1
  82. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BhR6AI0f.js → SavedBlocksBrowserModal-CtnB58p_.js} +6 -6
  83. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BhR6AI0f.js.map → SavedBlocksBrowserModal-CtnB58p_.js.map} +1 -1
  84. package/dist/cdn/chunks/{SavedBlocksPanels-YwffJtfY.js → SavedBlocksPanels-BhEOMzEQ.js} +2 -2
  85. package/dist/cdn/chunks/{SavedBlocksPanels-YwffJtfY.js.map → SavedBlocksPanels-BhEOMzEQ.js.map} +1 -1
  86. package/dist/cdn/chunks/{SavedBlocksPickBar-BtpFU7es.js → SavedBlocksPickBar-CcdqTEIp.js} +3 -3
  87. package/dist/cdn/chunks/{SavedBlocksPickBar-BtpFU7es.js.map → SavedBlocksPickBar-CcdqTEIp.js.map} +1 -1
  88. package/dist/cdn/chunks/{TemplateScoringPanel-N4ySFh5w.js → TemplateScoringPanel-BrWqJCSP.js} +6 -6
  89. package/dist/cdn/chunks/{TemplateScoringPanel-N4ySFh5w.js.map → TemplateScoringPanel-BrWqJCSP.js.map} +1 -1
  90. package/dist/cdn/chunks/{TemplateSettings-C7b5X34U.js → TemplateSettings-BkkWTDHD.js} +10 -10
  91. package/dist/cdn/chunks/{TemplateSettings-C7b5X34U.js.map → TemplateSettings-BkkWTDHD.js.map} +1 -1
  92. package/dist/cdn/chunks/{TestEmailModal-DHJKI5y5.js → TestEmailModal-V5mwHsUV.js} +9 -9
  93. package/dist/cdn/chunks/{TestEmailModal-DHJKI5y5.js.map → TestEmailModal-V5mwHsUV.js.map} +1 -1
  94. package/dist/cdn/chunks/{TestEmailPanel-lYtzTXpR.js → TestEmailPanel-DxrKuctP.js} +2 -2
  95. package/dist/cdn/chunks/{TestEmailPanel-lYtzTXpR.js.map → TestEmailPanel-DxrKuctP.js.map} +1 -1
  96. package/dist/cdn/chunks/{TitleEditor-5eY01ypW.js → TitleEditor-CsZiG3TT.js} +13 -13
  97. package/dist/cdn/chunks/{TitleEditor-5eY01ypW.js.map → TitleEditor-CsZiG3TT.js.map} +1 -1
  98. package/dist/cdn/chunks/{ToggleSwitch-BN8rMC2m.js → ToggleSwitch-BB-bQADJ.js} +2 -2
  99. package/dist/cdn/chunks/{ToggleSwitch-BN8rMC2m.js.map → ToggleSwitch-BB-bQADJ.js.map} +1 -1
  100. package/dist/cdn/chunks/Toolbar-C_x2TfFk.js +3073 -0
  101. package/dist/cdn/chunks/Toolbar-C_x2TfFk.js.map +1 -0
  102. package/dist/cdn/chunks/{TplModal-WIBiBrGy.js → TplModal-DC_eodTV.js} +2 -2
  103. package/dist/cdn/chunks/{TplModal-WIBiBrGy.js.map → TplModal-DC_eodTV.js.map} +1 -1
  104. package/dist/cdn/chunks/{VersionHistoryMenu-CZnlS9K5.js → VersionHistoryMenu-DXnM5Df2.js} +7 -7
  105. package/dist/cdn/chunks/{VersionHistoryMenu-CZnlS9K5.js.map → VersionHistoryMenu-DXnM5Df2.js.map} +1 -1
  106. package/dist/cdn/chunks/{VersionHistoryPanels-xjLSpR1e.js → VersionHistoryPanels-DXSqmaLS.js} +2 -2
  107. package/dist/cdn/chunks/{VersionHistoryPanels-xjLSpR1e.js.map → VersionHistoryPanels-DXSqmaLS.js.map} +1 -1
  108. package/dist/cdn/chunks/{VersionPreviewBanner-sARpn4hh.js → VersionPreviewBanner-DKyN6BhO.js} +2 -2
  109. package/dist/cdn/chunks/{VersionPreviewBanner-sARpn4hh.js.map → VersionPreviewBanner-DKyN6BhO.js.map} +1 -1
  110. package/dist/cdn/chunks/WrapperBlock-gG_Bleug.js +47 -0
  111. package/dist/cdn/chunks/WrapperBlock-gG_Bleug.js.map +1 -0
  112. package/dist/cdn/chunks/blockTypeIcons-HrMJDfVg.js +22 -0
  113. package/dist/cdn/chunks/blockTypeIcons-HrMJDfVg.js.map +1 -0
  114. package/dist/{ca-DMoGGP9L.js → cdn/chunks/ca-CbNzJM3I.js} +19 -1
  115. package/dist/cdn/chunks/ca-CbNzJM3I.js.map +1 -0
  116. package/dist/cdn/chunks/{cloud-Cd7ptfhL.js → cloud-BHClP3e2.js} +2 -2
  117. package/dist/cdn/chunks/{cloud-Cd7ptfhL.js.map → cloud-BHClP3e2.js.map} +1 -1
  118. package/dist/cdn/chunks/{createCloudRuntime-DtIZ2Lee.js → createCloudRuntime-Vd0N4elZ.js} +4 -4
  119. package/dist/cdn/chunks/{createCloudRuntime-DtIZ2Lee.js.map → createCloudRuntime-Vd0N4elZ.js.map} +1 -1
  120. package/dist/cdn/chunks/{de-DgAelLbM.js → de-DMquBpZM.js} +18 -2
  121. package/dist/cdn/chunks/de-DMquBpZM.js.map +1 -0
  122. package/dist/cdn/chunks/{editor-modal-Bcwo0orC.js → editor-modal-vEEmZ8Tu.js} +88 -88
  123. package/dist/cdn/chunks/{editor-modal-Bcwo0orC.js.map → editor-modal-vEEmZ8Tu.js.map} +1 -1
  124. package/dist/cdn/chunks/{en-Dekrl7HA.js → en-C8Mp71sO.js} +18 -2
  125. package/dist/cdn/chunks/en-C8Mp71sO.js.map +1 -0
  126. package/dist/cdn/chunks/en-eWpiXyZu.js +1 -0
  127. package/dist/cdn/chunks/{es-BaZzyidV.js → es-Byq4tthI.js} +18 -2
  128. package/dist/cdn/chunks/es-Byq4tthI.js.map +1 -0
  129. package/dist/cdn/chunks/{extensions-T-t8MKDb.js → extensions-hJ9VqzDc.js} +4 -4
  130. package/dist/cdn/chunks/{extensions-T-t8MKDb.js.map → extensions-hJ9VqzDc.js.map} +1 -1
  131. package/dist/{fr-C5ucb1HK.js → cdn/chunks/fr-B3j35HEw.js} +19 -1
  132. package/dist/cdn/chunks/fr-B3j35HEw.js.map +1 -0
  133. package/dist/cdn/chunks/{icons-C4fX9Bwy.js → icons-aTYwH5-g.js} +123 -94
  134. package/dist/cdn/chunks/icons-aTYwH5-g.js.map +1 -0
  135. package/dist/{ja-CUgR3mV0.js → cdn/chunks/ja-D7txAuGS.js} +19 -1
  136. package/dist/cdn/chunks/ja-D7txAuGS.js.map +1 -0
  137. package/dist/{nl-qrLY7hMS.js → cdn/chunks/nl-ClJ3BY3F.js} +19 -1
  138. package/dist/cdn/chunks/nl-ClJ3BY3F.js.map +1 -0
  139. package/dist/cdn/chunks/{preRenderCustomBlocks-Co0oi0Jf.js → preRenderCustomBlocks-ByfuSjtL.js} +2 -2
  140. package/dist/cdn/chunks/{preRenderCustomBlocks-Co0oi0Jf.js.map → preRenderCustomBlocks-ByfuSjtL.js.map} +1 -1
  141. package/dist/{pt-BR-C6hMTQYi.js → cdn/chunks/pt-BR-DibcXcmv.js} +19 -1
  142. package/dist/cdn/chunks/pt-BR-DibcXcmv.js.map +1 -0
  143. package/dist/cdn/chunks/{socialIcons-DACw1wA8.js → socialIcons-C_lnkpG6.js} +355 -179
  144. package/dist/cdn/chunks/socialIcons-C_lnkpG6.js.map +1 -0
  145. package/dist/cdn/chunks/{src-BnJlDuyB.js → src-DYCDeBDM.js} +219 -181
  146. package/dist/cdn/chunks/src-DYCDeBDM.js.map +1 -0
  147. package/dist/cdn/chunks/{src-CHlVFp7r.js → src-DlFlC9Tt.js} +267 -241
  148. package/dist/cdn/chunks/src-DlFlC9Tt.js.map +1 -0
  149. package/dist/cdn/chunks/{src-Bu0qBpbf.js → src-dZ4D_tuP.js} +226 -193
  150. package/dist/cdn/chunks/src-dZ4D_tuP.js.map +1 -0
  151. package/dist/cdn/chunks/timeouts-Cv2jvusx.js +6 -0
  152. package/dist/cdn/chunks/timeouts-Cv2jvusx.js.map +1 -0
  153. package/dist/cdn/chunks/{useEditorCore-Bf2d1DKI.js → useEditorCore-Bb2UcB20.js} +722 -717
  154. package/dist/cdn/chunks/useEditorCore-Bb2UcB20.js.map +1 -0
  155. package/dist/cdn/chunks/{useLogicTag-3S63go4E.js → useLogicTag-HsyUCQtl.js} +2 -2
  156. package/dist/cdn/chunks/{useLogicTag-3S63go4E.js.map → useLogicTag-HsyUCQtl.js.map} +1 -1
  157. package/dist/cdn/chunks/{useMergeTag-BQtxUHq1.js → useMergeTag-Dg9pE85U.js} +2 -2
  158. package/dist/cdn/chunks/{useMergeTag-BQtxUHq1.js.map → useMergeTag-Dg9pE85U.js.map} +1 -1
  159. package/dist/cdn/chunks/{withCurrentFont-DwJd-lKc.js → withCurrentFont-oLcATrQ8.js} +2 -2
  160. package/dist/cdn/chunks/{withCurrentFont-DwJd-lKc.js.map → withCurrentFont-oLcATrQ8.js.map} +1 -1
  161. package/dist/cdn/editor.css +1 -1
  162. package/dist/cdn/editor.js +403 -397
  163. package/dist/cdn/editor.js.map +1 -1
  164. package/dist/{check-B5R4zXr7.js → check-ClwqRMgv.js} +1 -1
  165. package/dist/{chevron-down-BKyl85NV.js → chevron-down-te6qn-zE.js} +1 -1
  166. package/dist/{chevron-right-BmToZ8qX.js → chevron-right-W2hbH1FM.js} +1 -1
  167. package/dist/{chevron-up-DNYdOxPC.js → chevron-up-Bf5Zo7o4.js} +1 -1
  168. package/dist/{circle-alert-Dx9ju3YZ.js → circle-alert-CIEGV5DN.js} +1 -1
  169. package/dist/{clock-Dv9bxsSH.js → clock-Y4cx0gkJ.js} +1 -1
  170. package/dist/{cloud-DwjaAdwK.js → cloud-B5xwm_4X.js} +1 -1
  171. package/dist/{copy-BsKl4dcy.js → copy-BEcsAlfB.js} +1 -1
  172. package/dist/{createCloudRuntime-C8gpPsSi.js → createCloudRuntime-zNPkF6T9.js} +3 -3
  173. package/dist/{createLucideIcon-DziKp5iU.js → createLucideIcon-CYHXK9hn.js} +5 -5
  174. package/dist/{de-DgAelLbM.js → de-DMquBpZM.js} +17 -1
  175. package/dist/{dist-C8koXLhl.js → dist-tsmnQugO.js} +285 -249
  176. package/dist/{editor-modal-BwyIUnV_.js → editor-modal-AlVLkU91.js} +23 -23
  177. package/dist/en-B0FUfNwz.js +1 -0
  178. package/dist/{en-Dekrl7HA.js → en-C8Mp71sO.js} +17 -1
  179. package/dist/{es-BaZzyidV.js → es-Byq4tthI.js} +17 -1
  180. package/dist/{extensions-DHyKjsNZ.js → extensions-pjO8VGkM.js} +3 -3
  181. package/dist/{eye-DQuinb9k.js → eye-Ddnz8nnm.js} +1 -1
  182. package/dist/{cdn/chunks/fr-C5ucb1HK.js → fr-B3j35HEw.js} +17 -3
  183. package/dist/{image-up-yTfLjOrj.js → image-up-CM_HC0Dx.js} +1 -1
  184. package/dist/index.d.ts +66 -3
  185. package/dist/{info-C7OjlS11.js → info-DXLmzoeY.js} +1 -1
  186. package/dist/{cdn/chunks/ja-CUgR3mV0.js → ja-D7txAuGS.js} +17 -3
  187. package/dist/{link-CrUFaZ0t.js → link-Cel46wgo.js} +1 -1
  188. package/dist/{list-CLgv6M-k.js → list-Cl0GwiV9.js} +1 -1
  189. package/dist/{loader-circle-BXM5VO0K.js → loader-circle-uAwpvfys.js} +1 -1
  190. package/dist/{message-circle-BisdQ8H9.js → message-circle-DWU1pTM_.js} +1 -1
  191. package/dist/{cdn/chunks/nl-qrLY7hMS.js → nl-ClJ3BY3F.js} +17 -3
  192. package/dist/{package-C1T4AxV1.js → package-CbyG_yU_.js} +1 -1
  193. package/dist/{pencil-oo2mwf4C.js → pencil-BzoDcwKu.js} +1 -1
  194. package/dist/{plus-BIilXopD.js → plus-8cDvoCjZ.js} +1 -1
  195. package/dist/{preRenderCustomBlocks-lFX0HHiV.js → preRenderCustomBlocks-DMP5RuHl.js} +3 -3
  196. package/dist/{cdn/chunks/pt-BR-C6hMTQYi.js → pt-BR-DibcXcmv.js} +17 -3
  197. package/dist/{refresh-cw-DrLlkEVC.js → refresh-cw-9WinWixo.js} +1 -1
  198. package/dist/{search-DNu9lImk.js → search-CqgGq1gG.js} +1 -1
  199. package/dist/{send-DDNh3LoJ.js → send-Ceo3c9Db.js} +1 -1
  200. package/dist/{shield-check-aXM3o14f.js → shield-check-uDAwur5D.js} +1 -1
  201. package/dist/{smartphone-isccgDee.js → smartphone-CcLaCpGK.js} +1 -1
  202. package/dist/{socialIcons-BctavKBN.js → socialIcons-PTiwhLoC.js} +332 -153
  203. package/dist/{sparkles-CIMfFxKv.js → sparkles-Do9XjAuT.js} +1 -1
  204. package/dist/style.css +1 -1
  205. package/dist/templatical-editor.js +549 -543
  206. package/dist/{text-align-start-C4JFeqsq.js → text-align-start-DvzC0HQA.js} +1 -1
  207. package/dist/timeouts-Cv2jvusx.js +4 -0
  208. package/dist/{trash-8ZD9pK_c.js → trash-vlINTx32.js} +1 -1
  209. package/dist/{triangle-alert-pq45xEHl.js → triangle-alert-MRYSJ9T2.js} +1 -1
  210. package/dist/{upload-DrNFmVes.js → upload-CtNOI6J2.js} +1 -1
  211. package/dist/{useEditorCore-BcT7UI4e.js → useEditorCore-PvErWWsp.js} +963 -957
  212. package/dist/{useLogicTag-D-dI8H6p.js → useLogicTag-BHn67tDd.js} +1 -1
  213. package/dist/{useMergeTag-5wMeDBi-.js → useMergeTag-CRkm5Ig6.js} +1 -1
  214. package/dist/{useScrollToBlock-Do3suaqp.js → useScrollToBlock-CXmcHQQN.js} +1 -1
  215. package/dist/{withCurrentFont-B4YnsG_2.js → withCurrentFont-CxRGeHO3.js} +1 -1
  216. package/dist/{x-CBFKGLB1.js → x-Cd6SFw8r.js} +1 -1
  217. package/package.json +8 -8
  218. package/dist/BlockPreviewCanvas-CZDBSPoG.js +0 -136
  219. package/dist/Toolbar-OGakTBEg.js +0 -2851
  220. package/dist/WrapperBlock-BOABSX9W.js +0 -46
  221. package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js +0 -138
  222. package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js.map +0 -1
  223. package/dist/cdn/chunks/Toolbar-Ik54UO_-.js +0 -2767
  224. package/dist/cdn/chunks/Toolbar-Ik54UO_-.js.map +0 -1
  225. package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js +0 -48
  226. package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js.map +0 -1
  227. package/dist/cdn/chunks/blockTypeIcons-D3g5QzdT.js +0 -21
  228. package/dist/cdn/chunks/blockTypeIcons-D3g5QzdT.js.map +0 -1
  229. package/dist/cdn/chunks/ca-DMoGGP9L.js.map +0 -1
  230. package/dist/cdn/chunks/de-DgAelLbM.js.map +0 -1
  231. package/dist/cdn/chunks/en-BANFWZdr.js +0 -1
  232. package/dist/cdn/chunks/en-Dekrl7HA.js.map +0 -1
  233. package/dist/cdn/chunks/es-BaZzyidV.js.map +0 -1
  234. package/dist/cdn/chunks/fr-C5ucb1HK.js.map +0 -1
  235. package/dist/cdn/chunks/icons-C4fX9Bwy.js.map +0 -1
  236. package/dist/cdn/chunks/ja-CUgR3mV0.js.map +0 -1
  237. package/dist/cdn/chunks/nl-qrLY7hMS.js.map +0 -1
  238. package/dist/cdn/chunks/pt-BR-C6hMTQYi.js.map +0 -1
  239. package/dist/cdn/chunks/socialIcons-DACw1wA8.js.map +0 -1
  240. package/dist/cdn/chunks/src-BnJlDuyB.js.map +0 -1
  241. package/dist/cdn/chunks/src-Bu0qBpbf.js.map +0 -1
  242. package/dist/cdn/chunks/src-CHlVFp7r.js.map +0 -1
  243. package/dist/cdn/chunks/timeouts-DHPZQ0G3.js +0 -6
  244. package/dist/cdn/chunks/timeouts-DHPZQ0G3.js.map +0 -1
  245. package/dist/cdn/chunks/useEditorCore-Bf2d1DKI.js.map +0 -1
  246. package/dist/en-CC-57eC_.js +0 -1
  247. package/dist/timeouts-DHPZQ0G3.js +0 -4
@@ -1,31 +1,32 @@
1
- import { A as e, At as t, H as n, J as r, R as i, S as a, X as o, Y as s, Z as c, at as l, d as u, g as d, h as f, jt as p, kt as m, ot as h, r as g, rt as _, s as v, v as y } from "./vue.runtime.esm-bundler-CAzmrXdD.js";
2
- import { C as b, V as x, d as S, g as C, h as w, l as T, lt as E, m as D, y as O } from "./dist-C8koXLhl.js";
3
- import { r as k } from "./dist-DAAJogrx.js";
4
- import { L as A, c as j } from "./keys-BKFq19a2.js";
5
- import { t as M } from "./useI18n-CxVEpurs.js";
6
- import { o as N, s as P } from "./usePopoverPosition-CwnH1o5g.js";
7
- import { t as F } from "./createLucideIcon-DziKp5iU.js";
8
- import { t as I } from "./loader-circle-BXM5VO0K.js";
9
- import { t as L } from "./upload-DrNFmVes.js";
10
- import { t as R } from "./useAliveFlag-Dd06mRxe.js";
1
+ import { A as e, At as t, H as n, J as r, R as i, S as a, W as o, X as s, Y as c, Z as l, at as u, d, g as f, h as p, jt as m, kt as h, ot as g, r as _, rt as v, s as y, v as b } from "./vue.runtime.esm-bundler-CAzmrXdD.js";
2
+ import { $ as x, C as S, V as C, _ as w, _t as T, d as E, dt as D, g as O, h as k, l as A, m as j, p as M, st as N, tt as P, u as F, y as I } from "./dist-tsmnQugO.js";
3
+ import { r as L } from "./dist-DAAJogrx.js";
4
+ import { L as R, P as ee, c as te, x as ne } from "./keys-BKFq19a2.js";
5
+ import { r as re } from "./timeouts-Cv2jvusx.js";
6
+ import { t as ie } from "./useI18n-CxVEpurs.js";
7
+ import { o as ae, s as oe } from "./usePopoverPosition-CwnH1o5g.js";
8
+ import { t as z } from "./createLucideIcon-CYHXK9hn.js";
9
+ import { t as se } from "./loader-circle-uAwpvfys.js";
10
+ import { t as ce } from "./upload-CtNOI6J2.js";
11
+ import { t as le } from "./useAliveFlag-Dd06mRxe.js";
11
12
  //#region ../core/dist/index.js
12
- function z(e) {
13
+ function B(e) {
13
14
  return e instanceof Error ? e : Error(String(e), { cause: e });
14
15
  }
15
- function B(e, t) {
16
+ function V(e, t) {
16
17
  try {
17
18
  t();
18
19
  } catch (t) {
19
- e?.(z(t));
20
+ e?.(B(t));
20
21
  }
21
22
  }
22
- function V(e) {
23
+ function H(e) {
23
24
  return e === "1" ? 1 : e === "3" ? 3 : 2;
24
25
  }
25
- function ee(e) {
26
- let t = e.content ?? b(e.defaultFontFamily, e.templateDefaults);
27
- D(t), w(t);
28
- let r = s({
26
+ function ue(e) {
27
+ let t = e.content ?? S(e.defaultFontFamily, e.templateDefaults);
28
+ j(t), k(t);
29
+ let r = c({
29
30
  template: null,
30
31
  content: t,
31
32
  selectedBlockId: null,
@@ -40,7 +41,7 @@ function ee(e) {
40
41
  function a() {
41
42
  r.isDirty = !0, i++;
42
43
  }
43
- let c = n({
44
+ let o = n({
44
45
  get: () => r.content,
45
46
  set: (e) => {
46
47
  r.content = e, a();
@@ -88,7 +89,7 @@ function ee(e) {
88
89
  };
89
90
  }
90
91
  function h(e, t = !0) {
91
- D(e), w(e), r.content = e, t && a();
92
+ j(e), k(e), r.content = e, t && a();
92
93
  }
93
94
  function g(e) {
94
95
  e && p(e) || (r.selectedBlockId = e);
@@ -102,31 +103,31 @@ function ee(e) {
102
103
  function y(e) {
103
104
  r.uiTheme = e;
104
105
  }
105
- function x(e) {
106
+ function b(e) {
106
107
  r.previewMode = e, e && (r.selectedBlockId = null);
107
108
  }
108
- function C(e, t) {
109
+ function x(e, t) {
109
110
  if (p(e)) return;
110
111
  let n = u(r.content.blocks, e);
111
112
  n && (Object.assign(n, t), a());
112
113
  }
113
- function T(e) {
114
+ function C(e) {
114
115
  r.content.settings = {
115
116
  ...r.content.settings,
116
117
  ...e
117
118
  }, a();
118
119
  }
119
- function E(e, t, n = 0, i) {
120
+ function w(e, t, n = 0, i) {
120
121
  let o = {
121
122
  settings: r.content.settings,
122
123
  blocks: [e]
123
124
  };
124
- if (D(o), w(o), !(t && e.type === "section")) {
125
+ if (j(o), k(o), !(t && e.type === "section")) {
125
126
  if (t) {
126
127
  if (p(t)) return;
127
128
  let a = u(r.content.blocks, t);
128
129
  if (a && a.type === "section") {
129
- if (n < 0 || n >= V(a.columns)) return;
130
+ if (n < 0 || n >= H(a.columns)) return;
130
131
  a.children[n] = a.children[n] || [];
131
132
  let t = a.children[n];
132
133
  i !== void 0 && i < t.length ? t.splice(i, 0, e) : t.push(e);
@@ -135,7 +136,7 @@ function ee(e) {
135
136
  a();
136
137
  }
137
138
  }
138
- function O(e) {
139
+ function T(e) {
139
140
  if (p(e)) return;
140
141
  let t = f(r.content.blocks, e);
141
142
  if (t) {
@@ -150,7 +151,7 @@ function ee(e) {
150
151
  }
151
152
  }
152
153
  }
153
- function k(e, t, n, i = 0) {
154
+ function D(e, t, n, i = 0) {
154
155
  if (p(e) || n && p(n)) return;
155
156
  let o = f(r.content.blocks, e);
156
157
  if (!o) return;
@@ -159,24 +160,24 @@ function ee(e) {
159
160
  let c;
160
161
  if (n) {
161
162
  let e = u(r.content.blocks, n);
162
- if (!e || e.type !== "section" || i < 0 || i >= V(e.columns)) return;
163
+ if (!e || e.type !== "section" || i < 0 || i >= H(e.columns)) return;
163
164
  e.children[i] = e.children[i] || [], c = e.children[i];
164
165
  } else c = r.content.blocks;
165
166
  let [l] = o.blocks.splice(s, 1);
166
167
  c.splice(t, 0, l), a();
167
168
  }
168
- function A() {
169
+ function O() {
169
170
  a();
170
171
  }
171
- function j(e, t) {
172
- throw new S(`[Templatical] Templates: ${e} ${t}`);
172
+ function A(e, t) {
173
+ throw new E(`[Templatical] Templates: ${e} ${t}`);
173
174
  }
174
175
  function M(t) {
175
- B(e.onError, t);
176
+ V(e.onError, t);
176
177
  }
177
178
  function N(t) {
178
179
  let { templates: n } = e;
179
- return n || j(t, "needs a templates provider. Pass one as `init({ templates })` to enable saving and loading."), n;
180
+ return n || A(t, "needs a templates provider. Pass one as `init({ templates })` to enable saving and loading."), n;
180
181
  }
181
182
  function P(e) {
182
183
  r.template && (r.template = {
@@ -186,7 +187,7 @@ function ee(e) {
186
187
  }
187
188
  async function F(t) {
188
189
  let n = N("create()"), { create: a } = n;
189
- typeof a != "function" && j("create()", "is disabled by the provider — its `create` is `false`.");
190
+ typeof a != "function" && A("create()", "is disabled by the provider — its `create` is `false`.");
190
191
  let o;
191
192
  r.isLoading = !0;
192
193
  try {
@@ -207,7 +208,7 @@ function ee(e) {
207
208
  let n = N("load()"), i;
208
209
  r.isLoading = !0;
209
210
  try {
210
- i = await n.load(t), D(i.content), w(i.content), r.template = i, r.content = i.content, r.isDirty = !1;
211
+ i = await n.load(t), j(i.content), k(i.content), r.template = i, r.content = i.content, r.isDirty = !1;
211
212
  } catch (t) {
212
213
  throw e.onError?.(t), t;
213
214
  } finally {
@@ -217,9 +218,9 @@ function ee(e) {
217
218
  }
218
219
  async function L(t = "api") {
219
220
  let n = N("save()"), { save: a } = n;
220
- typeof a != "function" && j("save()", "is disabled by the provider — its `save` is `false`.");
221
+ typeof a != "function" && A("save()", "is disabled by the provider — its `save` is `false`.");
221
222
  let o = r.template;
222
- o || j("save()", "has no template loaded. Call create() or load() first.");
223
+ o || A("save()", "has no template loaded. Call create() or load() first.");
223
224
  let s = o.name === void 0 ? { content: r.content } : {
224
225
  name: o.name,
225
226
  content: r.content
@@ -246,8 +247,8 @@ function ee(e) {
246
247
  return r.template?.id !== void 0;
247
248
  }
248
249
  return {
249
- state: o(r),
250
- content: c,
250
+ state: s(r),
251
+ content: o,
251
252
  selectedBlock: l,
252
253
  isBlockLocked: p,
253
254
  setContent: h,
@@ -255,13 +256,13 @@ function ee(e) {
255
256
  setViewport: _,
256
257
  setDarkMode: v,
257
258
  setUiTheme: y,
258
- setPreviewMode: x,
259
- updateBlock: C,
260
- updateSettings: T,
261
- addBlock: E,
262
- removeBlock: O,
263
- moveBlock: k,
264
- markDirty: A,
259
+ setPreviewMode: b,
260
+ updateBlock: x,
261
+ updateSettings: C,
262
+ addBlock: w,
263
+ removeBlock: T,
264
+ moveBlock: D,
265
+ markDirty: O,
265
266
  findBlockLocation: m,
266
267
  setName: P,
267
268
  create: F,
@@ -270,11 +271,11 @@ function ee(e) {
270
271
  hasTemplate: R
271
272
  };
272
273
  }
273
- var H = 50, U = 300, te = 1500;
274
- function W(e) {
275
- let { content: t, setContent: r, isRemoteOperation: i, maxSize: a = H } = e, o = c([]), s = c([]), l = c(!1), u = null, d = null, f = n(() => o.value.length > 0), p = n(() => s.value.length > 0);
274
+ var de = 50, U = 300, fe = 1500;
275
+ function pe(e) {
276
+ let { content: t, setContent: r, isRemoteOperation: i, maxSize: a = de } = e, o = l([]), s = l([]), c = l(!1), u = null, d = null, f = n(() => o.value.length > 0), p = n(() => s.value.length > 0);
276
277
  function m() {
277
- return E(t.value);
278
+ return D(t.value);
278
279
  }
279
280
  function h(e) {
280
281
  o.value.push(e), o.value.length > a && o.value.splice(0, o.value.length - a);
@@ -296,9 +297,9 @@ function W(e) {
296
297
  }));
297
298
  }
298
299
  function y() {
299
- l.value = !0, u && clearTimeout(u), u = setTimeout(() => {
300
- l.value = !1, u = null;
301
- }, te);
300
+ c.value = !0, u && clearTimeout(u), u = setTimeout(() => {
301
+ c.value = !1, u = null;
302
+ }, fe);
302
303
  }
303
304
  function b() {
304
305
  if (o.value.length === 0) return;
@@ -321,7 +322,7 @@ function W(e) {
321
322
  return {
322
323
  canUndo: f,
323
324
  canRedo: p,
324
- isNavigating: l,
325
+ isNavigating: c,
325
326
  undo: b,
326
327
  redo: x,
327
328
  record: _,
@@ -330,14 +331,14 @@ function W(e) {
330
331
  destroy: C
331
332
  };
332
333
  }
333
- function G(e) {
334
+ function me(e) {
334
335
  let { addBlock: t, removeBlock: n, updateBlock: r, selectBlock: i, findBlockLocation: a } = e;
335
336
  function o(n, r, a) {
336
- let o = typeof e.blockDefaults == "function" ? e.blockDefaults() : e.blockDefaults, s = O(n, o);
337
+ let o = typeof e.blockDefaults == "function" ? e.blockDefaults() : e.blockDefaults, s = I(n, o);
337
338
  return t(s, r, a), i(s.id), s;
338
339
  }
339
340
  function s(e, n, r) {
340
- let o = C(e);
341
+ let o = O(e);
341
342
  if (n !== void 0 || r !== void 0) t(o, n, r);
342
343
  else {
343
344
  let i = a?.(e.id) ?? null;
@@ -358,9 +359,9 @@ function G(e) {
358
359
  updateBlockProperty: l
359
360
  };
360
361
  }
361
- var K = 2e3;
362
- function q(e) {
363
- let { content: t, isDirty: n, onChange: r, debounce: i = K, enabled: a = !0 } = e, o = null, s = !1;
362
+ var W = 2e3;
363
+ function he(e) {
364
+ let { content: t, isDirty: n, onChange: r, debounce: i = W, enabled: a = !0 } = e, o = null, s = !1;
364
365
  function c() {
365
366
  return typeof a == "function" ? a() : a;
366
367
  }
@@ -381,10 +382,10 @@ function q(e) {
381
382
  o = null, c() && !s && n() && r(JSON.parse(JSON.stringify(t.value)));
382
383
  }, i));
383
384
  }
384
- let m = h(t, () => {
385
+ let m = g(t, () => {
385
386
  p();
386
387
  }, { deep: !0 });
387
- function g() {
388
+ function h() {
388
389
  m(), d();
389
390
  }
390
391
  return {
@@ -392,11 +393,11 @@ function q(e) {
392
393
  cancel: d,
393
394
  pause: l,
394
395
  resume: u,
395
- destroy: g
396
+ destroy: h
396
397
  };
397
398
  }
398
- function J(e) {
399
- let t = s(/* @__PURE__ */ new Set()), r = n(() => t.size > 0);
399
+ function ge(e) {
400
+ let t = c(/* @__PURE__ */ new Set()), r = n(() => t.size > 0);
400
401
  function i(e) {
401
402
  return t.has(e);
402
403
  }
@@ -413,8 +414,8 @@ function J(e) {
413
414
  hasHiddenBlocks: r
414
415
  };
415
416
  }
416
- function Y(e) {
417
- let t = c(!1), r = c(!1), i = n(() => !!e.definition.value?.dataSource), a = n(() => i.value && !e.block.value.dataSourceFetched);
417
+ function _e(e) {
418
+ let t = l(!1), r = l(!1), i = n(() => !!e.definition.value?.dataSource), a = n(() => i.value && !e.block.value.dataSourceFetched);
418
419
  async function o() {
419
420
  let n = e.definition.value;
420
421
  if (n?.dataSource) {
@@ -443,7 +444,7 @@ function Y(e) {
443
444
  needsFetch: a
444
445
  };
445
446
  }
446
- function X(e, t) {
447
+ function ve(e, t) {
447
448
  let n = e.addBlock, r = e.removeBlock, i = e.moveBlock, a = e.updateBlock, o = e.updateSettings;
448
449
  e.addBlock = (r, i, a, o) => {
449
450
  i && e.isBlockLocked(i) || (t.record(), n(r, i, a, o));
@@ -457,26 +458,26 @@ function X(e, t) {
457
458
  t.record(), o(e);
458
459
  };
459
460
  }
460
- function Z(e) {
461
- let { provider: t } = e, n = c([]), r = c(!1), i = v(() => {
461
+ function ye(e) {
462
+ let { provider: t } = e, n = l([]), r = l(!1), i = y(() => {
462
463
  let e = /* @__PURE__ */ new Set();
463
464
  for (let t of n.value) {
464
465
  let n = t.category?.trim();
465
466
  n && e.add(n);
466
467
  }
467
468
  return [...e].sort((e, t) => e.localeCompare(t));
468
- }), a = v(() => typeof t.create == "function"), o = v(() => typeof t.update == "function"), s = v(() => typeof t.delete == "function");
469
- function l(e) {
469
+ }), a = y(() => typeof t.create == "function"), o = y(() => typeof t.update == "function"), s = y(() => typeof t.delete == "function");
470
+ function c(e) {
470
471
  return o.value && e.canUpdate !== !1;
471
472
  }
472
473
  function u(e) {
473
474
  return s.value && e.canDelete !== !1;
474
475
  }
475
476
  function d(e, t) {
476
- throw new S(`[Templatical] Saved blocks: ${e} is ${t}. Check the capability before calling — the editor's own UI hides the action.`);
477
+ throw new E(`[Templatical] Saved blocks: ${e} is ${t}. Check the capability before calling — the editor's own UI hides the action.`);
477
478
  }
478
479
  function f(t) {
479
- B(e.onError, t);
480
+ V(e.onError, t);
480
481
  }
481
482
  async function p(i) {
482
483
  r.value = !0;
@@ -535,7 +536,7 @@ function Z(e) {
535
536
  canCreate: a,
536
537
  canUpdate: o,
537
538
  canDelete: s,
538
- canUpdateBlock: l,
539
+ canUpdateBlock: c,
539
540
  canDeleteBlock: u,
540
541
  load: p,
541
542
  create: m,
@@ -543,9 +544,9 @@ function Z(e) {
543
544
  remove: g
544
545
  };
545
546
  }
546
- var ne = "templatical:saved-blocks";
547
- function re(e = {}) {
548
- let t = e.key ?? ne;
547
+ var be = "templatical:saved-blocks";
548
+ function xe(e = {}) {
549
+ let t = e.key ?? be;
549
550
  function n() {
550
551
  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.");
551
552
  return localStorage;
@@ -570,7 +571,7 @@ function re(e = {}) {
570
571
  },
571
572
  async create(e) {
572
573
  let t = (/* @__PURE__ */ new Date()).toISOString(), n = {
573
- id: x(),
574
+ id: C(),
574
575
  name: e.name,
575
576
  content: e.content,
576
577
  ...e.category ? { category: e.category } : {},
@@ -596,9 +597,9 @@ function re(e = {}) {
596
597
  }
597
598
  };
598
599
  }
599
- var ie = "templatical:media", ae = 50;
600
- function oe(e = {}) {
601
- let t = e.key ?? ie;
600
+ var Se = "templatical:media", Ce = 50;
601
+ function we(e = {}) {
602
+ let t = e.key ?? Se;
602
603
  function n() {
603
604
  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.");
604
605
  return localStorage;
@@ -631,12 +632,12 @@ function oe(e = {}) {
631
632
  let t = r(), n = e?.search?.trim().toLowerCase(), i = n ? t.filter((e) => {
632
633
  let t = e.filename?.toLowerCase() ?? "", r = e.alt?.toLowerCase() ?? "";
633
634
  return t.includes(n) || r.includes(n);
634
- }) : t, a = e?.cursor ? Number.parseInt(e.cursor, 10) : 0, o = Number.isFinite(a) && a > 0 ? a : 0, s = i.slice(o, o + ae), c = { items: s }, l = o + s.length;
635
+ }) : t, a = e?.cursor ? Number.parseInt(e.cursor, 10) : 0, o = Number.isFinite(a) && a > 0 ? a : 0, s = i.slice(o, o + Ce), c = { items: s }, l = o + s.length;
635
636
  return l < i.length && (c.nextCursor = String(l)), c;
636
637
  },
637
638
  async create(e) {
638
639
  let t = await a(e.file), n = (/* @__PURE__ */ new Date()).toISOString(), o = {
639
- id: x(),
640
+ id: C(),
640
641
  url: t,
641
642
  filename: e.filename || e.file.name,
642
643
  createdAt: n,
@@ -671,18 +672,18 @@ function oe(e = {}) {
671
672
  storage: !1
672
673
  };
673
674
  }
674
- function se(e) {
675
- let { provider: t, getTemplateId: n } = e, r = c([]), i = c(!1), a = c(void 0), o = c(!1), s = /* @__PURE__ */ new Map(), l = v(() => typeof t.create == "function"), u = v(() => typeof t.restore == "function");
675
+ function Te(e) {
676
+ let { provider: t, getTemplateId: n } = e, r = l([]), i = l(!1), a = l(void 0), o = l(!1), s = /* @__PURE__ */ new Map(), c = y(() => typeof t.create == "function"), u = y(() => typeof t.restore == "function");
676
677
  function d(e) {
677
678
  let t = n();
678
- if (!t) throw new S(`[Templatical] Version history: ${e} needs a template. Call create() or load() first.`);
679
+ if (!t) throw new E(`[Templatical] Version history: ${e} needs a template. Call create() or load() first.`);
679
680
  return t;
680
681
  }
681
682
  function f(e) {
682
- throw new S(`[Templatical] Version history: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
683
+ throw new E(`[Templatical] Version history: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
683
684
  }
684
685
  function p(t) {
685
- B(e.onError, t);
686
+ V(e.onError, t);
686
687
  }
687
688
  async function m(n) {
688
689
  let o = d("list");
@@ -721,7 +722,7 @@ function se(e) {
721
722
  throw e.onError?.(t), t;
722
723
  }
723
724
  }
724
- async function y(n) {
725
+ async function v(n) {
725
726
  let { restore: r } = t;
726
727
  typeof r != "function" && f("restore");
727
728
  let i = d("restore"), a;
@@ -740,35 +741,35 @@ function se(e) {
740
741
  versions: r,
741
742
  isLoading: i,
742
743
  isRestoring: o,
743
- canCreate: l,
744
+ canCreate: c,
744
745
  canRestore: u,
745
746
  load: m,
746
747
  peekContent: h,
747
748
  resolveContent: g,
748
749
  create: _,
749
- restore: y
750
+ restore: v
750
751
  };
751
752
  }
752
- function ce(e) {
753
- let { provider: t, getTemplateId: n, getUser: r } = e, i = c([]), a = c(!1), o = c(!1), s = v(() => typeof t.create == "function"), l = v(() => typeof t.update == "function"), u = v(() => typeof t.delete == "function"), d = v(() => typeof t.setResolved == "function"), f = v(() => i.value.reduce((e, t) => e + 1 + (t.replies?.length ?? 0), 0)), p = v(() => i.value.filter((e) => !e.resolvedAt).length), m = v(() => {
753
+ function Ee(e) {
754
+ let { provider: t, getTemplateId: n, getUser: r } = e, i = l([]), a = l(!1), o = l(!1), s = y(() => typeof t.create == "function"), c = y(() => typeof t.update == "function"), u = y(() => typeof t.delete == "function"), d = y(() => typeof t.setResolved == "function"), f = y(() => i.value.reduce((e, t) => e + 1 + (t.replies?.length ?? 0), 0)), p = y(() => i.value.filter((e) => !e.resolvedAt).length), m = y(() => {
754
755
  let e = /* @__PURE__ */ new Map();
755
756
  for (let t of i.value) t.blockId && e.set(t.blockId, (e.get(t.blockId) ?? 0) + 1 + (t.replies?.length ?? 0));
756
757
  return e;
757
758
  });
758
759
  function h(e) {
759
760
  let t = n();
760
- if (!t) throw new S(`[Templatical] Comments: ${e} needs a template. Call create() or load() first.`);
761
+ if (!t) throw new E(`[Templatical] Comments: ${e} needs a template. Call create() or load() first.`);
761
762
  return t;
762
763
  }
763
764
  function g(e) {
764
765
  let t = r();
765
- if (!t) throw new S(`[Templatical] Comments: ${e} needs to know who is commenting. Pass init({ user: { id, name } }) — an unattributed comment is not written.`);
766
+ if (!t) throw new E(`[Templatical] Comments: ${e} needs to know who is commenting. Pass init({ user: { id, name } }) — an unattributed comment is not written.`);
766
767
  return t;
767
768
  }
768
769
  function _(e) {
769
- throw new S(`[Templatical] Comments: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
770
+ throw new E(`[Templatical] Comments: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
770
771
  }
771
- function y(e) {
772
+ function v(e) {
772
773
  for (let t of i.value) {
773
774
  if (t.id === e) return t;
774
775
  for (let n of t.replies ?? []) if (n.id === e) return n;
@@ -780,30 +781,30 @@ function ce(e) {
780
781
  return t !== null && e.author.id === t.id;
781
782
  }
782
783
  function x(t) {
783
- let n = z(t);
784
+ let n = B(t);
784
785
  throw e.onError?.(n), n;
785
786
  }
786
- function C(t) {
787
- B(e.onError, t);
787
+ function S(t) {
788
+ V(e.onError, t);
788
789
  }
789
- function w(e, t, n) {
790
+ function C(e, t, n) {
790
791
  return [
791
792
  ...e.slice(0, t),
792
793
  n,
793
794
  ...e.slice(t + 1)
794
795
  ];
795
796
  }
796
- function T(e, t) {
797
+ function w(e, t) {
797
798
  return e !== void 0 && JSON.stringify(e) === JSON.stringify(t);
798
799
  }
799
- function E(e) {
800
+ function T(e) {
800
801
  if (e.parentId) {
801
802
  let t = !1, n = i.value.map((n) => {
802
803
  if (n.id !== e.parentId) return n;
803
804
  let r = n.replies ?? [], i = r.findIndex((t) => t.id === e.id);
804
- return i !== -1 && T(r[i], e) ? n : (t = !0, {
805
+ return i !== -1 && w(r[i], e) ? n : (t = !0, {
805
806
  ...n,
806
- replies: i === -1 ? [...r, e] : w(r, i, e)
807
+ replies: i === -1 ? [...r, e] : C(r, i, e)
807
808
  });
808
809
  });
809
810
  return t && (i.value = n), t;
@@ -814,10 +815,10 @@ function ce(e) {
814
815
  ...e,
815
816
  replies: e.replies ?? i.value[t].replies
816
817
  };
817
- return !T(i.value[t], n) && (i.value = w(i.value, t, n), !0);
818
+ return !w(i.value[t], n) && (i.value = C(i.value, t, n), !0);
818
819
  }
819
820
  function D(e, t) {
820
- let n = y(e), r = t ?? n?.parentId ?? null;
821
+ let n = v(e), r = t ?? n?.parentId ?? null;
821
822
  return r ? i.value = i.value.map((t) => t.id === r ? {
822
823
  ...t,
823
824
  replies: (t.replies ?? []).filter((t) => t.id !== e)
@@ -841,7 +842,7 @@ function ce(e) {
841
842
  g("create"), o.value = !0;
842
843
  try {
843
844
  let i = await n(r, e);
844
- return E(i), C(() => t.onCreated?.(i, { origin: "local" })), i;
845
+ return T(i), S(() => t.onCreated?.(i, { origin: "local" })), i;
845
846
  } catch (e) {
846
847
  x(e);
847
848
  } finally {
@@ -855,7 +856,7 @@ function ce(e) {
855
856
  g("update"), o.value = !0;
856
857
  try {
857
858
  let a = await r(i, e, n);
858
- return E(a), C(() => t.onUpdated?.(a, { origin: "local" })), a;
859
+ return T(a), S(() => t.onUpdated?.(a, { origin: "local" })), a;
859
860
  } catch (e) {
860
861
  x(e);
861
862
  } finally {
@@ -867,10 +868,10 @@ function ce(e) {
867
868
  typeof n != "function" && _("delete");
868
869
  let r = h("delete");
869
870
  g("delete");
870
- let i = y(e);
871
+ let i = v(e);
871
872
  o.value = !0;
872
873
  try {
873
- await n(r, e), D(e), i && C(() => t.onDeleted?.(i, { origin: "local" }));
874
+ await n(r, e), D(e), i && S(() => t.onDeleted?.(i, { origin: "local" }));
874
875
  } catch (e) {
875
876
  x(e);
876
877
  } finally {
@@ -884,7 +885,7 @@ function ce(e) {
884
885
  g("setResolved"), o.value = !0;
885
886
  try {
886
887
  let a = await r(i, e, n);
887
- return E(a), C(() => (a.resolvedAt ? t.onResolved : t.onUnresolved)?.(a, { origin: "local" })), a;
888
+ return T(a), S(() => (a.resolvedAt ? t.onResolved : t.onUnresolved)?.(a, { origin: "local" })), a;
888
889
  } catch (e) {
889
890
  x(e);
890
891
  } finally {
@@ -892,21 +893,21 @@ function ce(e) {
892
893
  }
893
894
  }
894
895
  function N(e) {
895
- E(e) && C(() => t.onCreated?.(e, { origin: "remote" }));
896
+ T(e) && S(() => t.onCreated?.(e, { origin: "remote" }));
896
897
  }
897
898
  function P(e) {
898
- E(e) && C(() => (e.resolvedAt ? t.onResolved : t.onUpdated)?.(e, { origin: "remote" }));
899
+ T(e) && S(() => (e.resolvedAt ? t.onResolved : t.onUpdated)?.(e, { origin: "remote" }));
899
900
  }
900
901
  function F(e, n) {
901
902
  let r = D(e, n);
902
- r && C(() => t.onDeleted?.(r, { origin: "remote" }));
903
+ r && S(() => t.onDeleted?.(r, { origin: "remote" }));
903
904
  }
904
905
  return {
905
906
  comments: i,
906
907
  isLoading: a,
907
908
  isSubmitting: o,
908
909
  canCreate: s,
909
- canUpdate: l,
910
+ canUpdate: c,
910
911
  canDelete: u,
911
912
  canResolve: d,
912
913
  totalCount: f,
@@ -917,14 +918,14 @@ function ce(e) {
917
918
  update: A,
918
919
  remove: j,
919
920
  setResolved: M,
920
- find: y,
921
+ find: v,
921
922
  isOwn: b,
922
923
  applyRemoteCreate: N,
923
924
  applyRemoteUpdate: P,
924
925
  applyRemoteDelete: F
925
926
  };
926
927
  }
927
- function le(e) {
928
+ function De(e) {
928
929
  let { comments: t, provider: n, getTemplateId: a } = e, { subscribe: o } = n;
929
930
  if (typeof o != "function") return;
930
931
  let s = null;
@@ -946,19 +947,91 @@ function le(e) {
946
947
  }, { immediate: !0 }), r(c);
947
948
  }
948
949
  //#endregion
950
+ //#region src/composables/useImageUrlResolver.ts
951
+ function Oe(e) {
952
+ let t = c(/* @__PURE__ */ new Map()), n = /* @__PURE__ */ new Set();
953
+ function r(e) {
954
+ return t.get(e);
955
+ }
956
+ function i(e) {
957
+ return t.has(e) || n.has(e);
958
+ }
959
+ function a(r) {
960
+ if (i(r)) return;
961
+ let a;
962
+ try {
963
+ a = e(r);
964
+ } catch {
965
+ t.set(r, null);
966
+ return;
967
+ }
968
+ a === null || typeof a == "string" ? t.set(r, a) : (n.add(r), Promise.resolve(a).then((e) => {
969
+ t.set(r, typeof e == "string" ? e : null);
970
+ }, () => {
971
+ t.set(r, null);
972
+ }).finally(() => n.delete(r)));
973
+ }
974
+ return {
975
+ get: r,
976
+ has: i,
977
+ lookup: a
978
+ };
979
+ }
980
+ function G(e) {
981
+ let t = a(ne, null), n = y(e);
982
+ if (!t) return n;
983
+ let s;
984
+ function c() {
985
+ s !== void 0 && (clearTimeout(s), s = void 0);
986
+ }
987
+ o() && r(c);
988
+ let l = !0;
989
+ return i(n, (e) => {
990
+ c();
991
+ let n = l;
992
+ l = !1, e && !t.has(e) && (n ? t.lookup(e) : s = setTimeout(() => {
993
+ s = void 0, t.lookup(e);
994
+ }, 300));
995
+ }, { immediate: !0 }), y(() => {
996
+ let e = n.value;
997
+ if (!e) return e;
998
+ let r = t.get(e);
999
+ return typeof r == "string" && r.length > 0 ? r : e;
1000
+ });
1001
+ }
1002
+ function ke(e, t) {
1003
+ if (!e || !t) return t;
1004
+ let n = e.get(t);
1005
+ return typeof n == "string" && n.length > 0 ? n : t;
1006
+ }
1007
+ function K(e, t) {
1008
+ return typeof e?.url == "string" && w(e.url, t);
1009
+ }
1010
+ function q(e, t) {
1011
+ let n = e?.url;
1012
+ if (typeof n == "string" && n.trim() !== "") return w(n, t) ? void 0 : n;
1013
+ }
1014
+ function Ae(e) {
1015
+ let t = a(ee, F.liquid), n = G(() => q(e(), t));
1016
+ return y(() => K(e(), t) ? null : n.value);
1017
+ }
1018
+ function je(e, t, n) {
1019
+ return K(t, n) ? null : ke(e, q(t, n));
1020
+ }
1021
+ //#endregion
949
1022
  //#region src/utils/blockTypeLabels.ts
950
- function Q(e, t) {
1023
+ function J(e, t) {
951
1024
  return t.blocks[e] ?? e;
952
1025
  }
953
- function ue(e, t, n = []) {
954
- if (e.type !== "custom") return Q(e.type, t);
1026
+ function Me(e, t, n = []) {
1027
+ if (e.type !== "custom") return J(e.type, t);
955
1028
  let { customType: r } = e;
956
1029
  return n.find((e) => e.type === r)?.name ?? r;
957
1030
  }
958
1031
  //#endregion
959
1032
  //#region src/utils/resolveFieldColors.ts
960
- function de(e, t) {
961
- let n = P({ presets: e.presets }, N), r = n.presets.length === 0, i = e.allowCustom ?? t.allowCustom;
1033
+ function Ne(e, t) {
1034
+ let n = oe({ presets: e.presets }, ae), r = n.presets.length === 0, i = e.allowCustom ?? t.allowCustom;
962
1035
  return {
963
1036
  presets: r ? t.presets : n.presets,
964
1037
  allowCustom: t.allowCustom !== !1 && i,
@@ -968,7 +1041,7 @@ function de(e, t) {
968
1041
  allowCustomIgnored: e.allowCustom === !0 && t.allowCustom === !1
969
1042
  };
970
1043
  }
971
- var fe = F({
1044
+ var Pe = z({
972
1045
  name: "code",
973
1046
  size: 24,
974
1047
  node: [["path", {
@@ -978,7 +1051,7 @@ var fe = F({
978
1051
  d: "m8 6-6 6 6 6",
979
1052
  key: "ppft3o"
980
1053
  }]]
981
- }), $ = F({
1054
+ }), Fe = z({
982
1055
  name: "image",
983
1056
  size: 24,
984
1057
  node: [
@@ -1002,14 +1075,14 @@ var fe = F({
1002
1075
  key: "1xmnt7"
1003
1076
  }]
1004
1077
  ]
1005
- }), pe = F({
1078
+ }), Ie = z({
1006
1079
  name: "navigation",
1007
1080
  size: 24,
1008
1081
  node: [["polygon", {
1009
1082
  points: "3 11 22 2 13 21 11 13 3 11",
1010
1083
  key: "1ltx0t"
1011
1084
  }]]
1012
- }), me = F({
1085
+ }), Le = z({
1013
1086
  name: "share-2",
1014
1087
  size: 24,
1015
1088
  node: [
@@ -1046,7 +1119,7 @@ var fe = F({
1046
1119
  key: "1n3mei"
1047
1120
  }]
1048
1121
  ]
1049
- }), he = F({
1122
+ }), Re = z({
1050
1123
  name: "table",
1051
1124
  size: 24,
1052
1125
  node: [
@@ -1071,14 +1144,60 @@ var fe = F({
1071
1144
  key: "5xshup"
1072
1145
  }]
1073
1146
  ]
1074
- }), ge = /* @__PURE__ */ y({
1147
+ });
1148
+ //#endregion
1149
+ //#region src/utils/imageNaturalSize.ts
1150
+ function ze(e) {
1151
+ return typeof e == "number" && Number.isFinite(e) && e > 0;
1152
+ }
1153
+ function Y(e, t) {
1154
+ return ze(e) && ze(t) ? {
1155
+ width: e,
1156
+ height: t
1157
+ } : null;
1158
+ }
1159
+ function Be(e) {
1160
+ return Y(e.naturalWidth, e.naturalHeight);
1161
+ }
1162
+ function Ve(e) {
1163
+ return e ? {
1164
+ naturalWidth: e.width,
1165
+ naturalHeight: e.height
1166
+ } : {
1167
+ naturalWidth: void 0,
1168
+ naturalHeight: void 0
1169
+ };
1170
+ }
1171
+ function He(e, t) {
1172
+ if (typeof Image > "u") return t(null), () => {};
1173
+ let n = new Image(), r = () => {
1174
+ n.onload = null, n.onerror = null;
1175
+ };
1176
+ return n.onload = () => {
1177
+ r(), t(Y(n.naturalWidth, n.naturalHeight));
1178
+ }, n.onerror = () => {
1179
+ r(), t(null);
1180
+ }, n.src = e, r;
1181
+ }
1182
+ function Ue(e) {
1183
+ return new Promise((t) => {
1184
+ let n = setTimeout(() => {
1185
+ r(), t(null);
1186
+ }, re), r = He(e, (e) => {
1187
+ clearTimeout(n), t(e);
1188
+ });
1189
+ });
1190
+ }
1191
+ //#endregion
1192
+ //#region src/components/MediaDropOverlay.vue
1193
+ var We = /* @__PURE__ */ b({
1075
1194
  __name: "MediaDropOverlay",
1076
1195
  props: {
1077
1196
  uploading: { type: Boolean },
1078
1197
  size: { default: "field" }
1079
1198
  },
1080
1199
  setup(n) {
1081
- let r = n, { t: i } = M(), a = {
1200
+ let r = n, { t: i } = ie(), a = {
1082
1201
  field: {
1083
1202
  gap: "tpl:gap-1.5",
1084
1203
  icon: 18,
@@ -1089,40 +1208,40 @@ var fe = F({
1089
1208
  icon: 20,
1090
1209
  veil: "85%"
1091
1210
  }
1092
- }, o = v(() => a[r.size]);
1093
- return (r, a) => (e(), u("div", {
1094
- class: m(["tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-10 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-xs tpl:font-medium tpl:border-[var(--tpl-primary)] tpl:text-[var(--tpl-primary)]", o.value.gap]),
1211
+ }, o = y(() => a[r.size]);
1212
+ return (r, a) => (e(), d("div", {
1213
+ class: h(["tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-10 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-xs tpl:font-medium tpl:border-[var(--tpl-primary)] tpl:text-[var(--tpl-primary)]", o.value.gap]),
1095
1214
  style: t({ backgroundColor: `color-mix(in srgb, var(--tpl-bg) ${o.value.veil}, transparent)` })
1096
- }, [n.uploading ? (e(), u(g, { key: 0 }, [d(l(I), {
1215
+ }, [n.uploading ? (e(), d(_, { key: 0 }, [f(u(se), {
1097
1216
  class: "tpl-spinner",
1098
1217
  size: o.value.icon,
1099
1218
  "stroke-width": 2
1100
- }, null, 8, ["size"]), f(" " + p(l(i).image.uploading), 1)], 64)) : (e(), u(g, { key: 1 }, [d(l(L), {
1219
+ }, null, 8, ["size"]), p(" " + m(u(i).image.uploading), 1)], 64)) : (e(), d(_, { key: 1 }, [f(u(ce), {
1101
1220
  size: o.value.icon,
1102
1221
  "stroke-width": 1.5
1103
- }, null, 8, ["size"]), f(" " + p(l(i).image.dropToUpload), 1)], 64))], 6));
1222
+ }, null, 8, ["size"]), p(" " + m(u(i).image.dropToUpload), 1)], 64))], 6));
1104
1223
  }
1105
- }), _e = "image/";
1106
- function ve(e) {
1107
- let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || _(r), { isOverDropZone: a } = k(t, {
1224
+ }), Ge = "image/";
1225
+ function Ke(e) {
1226
+ let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || v(r), { isOverDropZone: a } = L(t, {
1108
1227
  preventDefaultForUnhandled: !0,
1109
1228
  onDrop: (e) => {
1110
1229
  if (!i()) return;
1111
- let t = (e ?? []).filter((e) => e.type.startsWith(_e));
1230
+ let t = (e ?? []).filter((e) => e.type.startsWith(Ge));
1112
1231
  t.length > 0 && n([t[0]]);
1113
1232
  }
1114
1233
  });
1115
- return { isOver: v(() => i() && a.value) };
1234
+ return { isOver: y(() => i() && a.value) };
1116
1235
  }
1117
1236
  //#endregion
1118
1237
  //#region src/composables/useMediaDropField.ts
1119
- function ye(e) {
1120
- let { target: t, blocked: n, apply: r } = e, i = a(A, null), o = a(j, null), s = R();
1121
- async function l() {
1238
+ function qe(e) {
1239
+ let { target: t, blocked: n, apply: r } = e, i = a(R, null), o = a(te, null), s = le();
1240
+ async function c() {
1122
1241
  let e = await i?.({ accept: ["images"] });
1123
1242
  s.alive && e && r(e);
1124
1243
  }
1125
- let u = c(!1), d = v(() => (o?.value ?? !!i) && !u.value && !_(n));
1244
+ let u = l(!1), d = y(() => (o?.value ?? !!i) && !u.value && !v(n));
1126
1245
  async function f(e) {
1127
1246
  if (i) {
1128
1247
  u.value = !0;
@@ -1138,26 +1257,86 @@ function ye(e) {
1138
1257
  }
1139
1258
  }
1140
1259
  }
1141
- let { isOver: p } = ve({
1260
+ let { isOver: p } = Ke({
1142
1261
  target: t,
1143
1262
  enabled: d,
1144
1263
  onFiles: f
1145
- }), m = v(() => d.value && p.value || u.value);
1264
+ }), m = y(() => d.value && p.value || u.value);
1146
1265
  return {
1147
1266
  canBrowse: !!i,
1148
1267
  dropEnabled: d,
1149
1268
  isUploading: u,
1150
1269
  showOverlay: m,
1151
- openMediaBrowser: l
1270
+ openMediaBrowser: c
1152
1271
  };
1153
1272
  }
1273
+ function Je(e, t = "desktop") {
1274
+ return t === "mobile" ? 375 : e?.width ?? 600;
1275
+ }
1276
+ var Ye = "width 300ms cubic-bezier(0.34, 1.56, 0.64, 1)", Xe = {
1277
+ 1: [100],
1278
+ 2: [50, 50],
1279
+ 3: [
1280
+ 33.33,
1281
+ 33.33,
1282
+ 33.34
1283
+ ],
1284
+ "1-2": [33.33, 66.67],
1285
+ "2-1": [66.67, 33.33]
1286
+ };
1287
+ function X(e, t) {
1288
+ let n = (e) => Math.trunc(e ?? 0), r = (e) => T(e) === null ? 0 : Math.trunc(e.width);
1289
+ return n(e?.left) + n(e?.right) + r(t?.left) + r(t?.right);
1290
+ }
1291
+ function Z(e, t) {
1292
+ return Math.floor(e) - X(t);
1293
+ }
1294
+ function Ze(e, t) {
1295
+ let n = "border" in e ? e.border : void 0;
1296
+ return Math.floor(t) - X(e.styles.padding, n);
1297
+ }
1298
+ function* Q(e, t) {
1299
+ for (let n of e) P(n) ? yield* Q(n.children, Z(t, n.styles.padding)) : yield {
1300
+ block: n,
1301
+ bandWidth: x(n) && n.wrapper ? Z(t, n.wrapper.padding) : t
1302
+ };
1303
+ }
1304
+ function Qe(e, t) {
1305
+ if (!t) return e;
1306
+ try {
1307
+ return M(t, e);
1308
+ } catch {
1309
+ return e;
1310
+ }
1311
+ }
1312
+ function $e(e, t, n) {
1313
+ let r = Qe(e, n);
1314
+ for (let { block: e, bandWidth: n } of Q(r.blocks, r.settings.width)) if (x(e)) {
1315
+ let r = N(e)?.applied ? void 0 : e.border, i = Math.floor(n) - X(e.styles.padding, r), a = Xe[e.columns] ?? [100];
1316
+ for (let n = 0; n < e.children.length; n++) {
1317
+ let r = Math.floor(i * (a[n] ?? 100) / 100), o = e.children[n].find((e) => e.id === t);
1318
+ if (o) return Ze(o, r);
1319
+ }
1320
+ } else if (e.id === t) return Ze(e, n);
1321
+ return null;
1322
+ }
1323
+ function $(e, t, n) {
1324
+ let r = Qe(e, n);
1325
+ for (let { block: e, bandWidth: n } of Q(r.blocks, r.settings.width)) if (e.id === t) return Math.floor(n);
1326
+ return null;
1327
+ }
1328
+ function et(e, t, n) {
1329
+ if (!x(e)) return;
1330
+ let r = N(e);
1331
+ if (r?.applied && r.height === "image") return (t ? $(t, e.id, n) : null) ?? Je(t?.settings);
1332
+ }
1154
1333
  //#endregion
1155
1334
  //#region src/constants/socialIcons.ts
1156
- var be = T, xe = {
1335
+ var tt = A, nt = {
1157
1336
  small: 24,
1158
1337
  medium: 32,
1159
1338
  large: 48
1160
- }, Se = [
1339
+ }, rt = [
1161
1340
  "facebook",
1162
1341
  "twitter",
1163
1342
  "instagram",
@@ -1177,4 +1356,4 @@ var be = T, xe = {
1177
1356
  "behance"
1178
1357
  ];
1179
1358
  //#endregion
1180
- export { ee as C, se as D, Z as E, Y as S, X as T, q as _, ge as a, ce as b, pe as c, de as d, ue as f, re as g, oe as h, ye as i, $ as l, K as m, be as n, he as o, Q as p, Se as r, me as s, xe as t, fe as u, G as v, W as w, J as x, le as y };
1359
+ export { we as A, ve as B, J as C, Ae as D, je as E, Ee as F, Te as H, ge as I, _e as L, he as M, me as N, G as O, De as P, ue as R, Me as S, q as T, ye as V, Le as _, et as a, Pe as b, Je as c, He as d, Ue as f, Re as g, Y as h, $e as i, xe as j, W as k, qe as l, Be as m, tt as n, $ as o, Ve as p, rt as r, Ye as s, nt as t, We as u, Ie as v, Oe as w, Ne as x, Fe as y, pe as z };