@templatical/editor 0.44.3 → 0.46.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 (294) hide show
  1. package/dist/{AiChatSidebar-BUR5Jshu.js → AiChatSidebar-DGcH4Lyo.js} +15 -19
  2. package/dist/{AiFeatureMenu-CXqrbDNb.js → AiFeatureMenu-B4q-0g1S.js} +7 -7
  3. package/dist/{BlockIssueBadge-CWZEwMXX.js → BlockIssueBadge-CZA1XvAh.js} +5 -5
  4. package/dist/{BlockPreviewCanvas-DCeZid0G.js → BlockPreviewCanvas-DIZ0KgUD.js} +5 -5
  5. package/dist/{CloudHeaderExtras-B38fU84y.js → CloudHeaderExtras-ehMYJP68.js} +5 -5
  6. package/dist/{CloudPanels-B2Mz-TwS.js → CloudPanels-BwOaAlKz.js} +8 -8
  7. package/dist/{CollaboratorBar-CL70aVnL.js → CollaboratorBar-qOZFRNPx.js} +4 -4
  8. package/dist/{CommentsPanel-CYMHfFcn.js → CommentsPanel-Bn6P5crU.js} +2 -2
  9. package/dist/{CommentsSidebar-uvQyCMUe.js → CommentsSidebar-B8wT932T.js} +14 -14
  10. package/dist/{CountdownBlock-C6R-hn7D.js → CountdownBlock-RNx3hIu0.js} +3 -3
  11. package/dist/{CountdownToolbar-C052mx2P.js → CountdownToolbar-BeF21SeB.js} +62 -61
  12. package/dist/{DesignReferenceSidebar-ZKJ7y7-G.js → DesignReferenceSidebar-zH93uB15.js} +25 -26
  13. package/dist/{IssuesPanel-DAlNiJX_.js → IssuesPanel-Dltw9haP.js} +8 -8
  14. package/dist/{LoadingTrack-C1Epulqq.js → LoadingTrack-DROqNuuD.js} +1 -1
  15. package/dist/{LogicTagInsertButton-DMUfVsPr.js → LogicTagInsertButton-CHa-UD76.js} +22 -28
  16. package/dist/{MediaEditModal-Cmd9tQXZ.js → MediaEditModal-EY1YYcpw.js} +6 -14
  17. package/dist/{MediaPanels-DoBhG5gg.js → MediaPanels-CRVFGFZW.js} +2 -2
  18. package/dist/{MergeTagInput-DoQWMSW4.js → MergeTagInput-B3ntd4dN.js} +2 -2
  19. package/dist/{MergeTagModeToggle-DOHixe4G.js → MergeTagModeToggle-C_06ZL0Q.js} +7 -7
  20. package/dist/{ParagraphEditor-CHlX3nAk.js → ParagraphEditor-CxuW3TV0.js} +140 -139
  21. package/dist/{RestoreVersionDialog-C8Qt-sJV.js → RestoreVersionDialog-B1n37M1Z.js} +5 -5
  22. package/dist/{RichTextEditorContent-BedBVHXS.js → RichTextEditorContent-CP_uULWB.js} +9 -9
  23. package/dist/{SaveBlockDialog-CsielLi1.js → SaveBlockDialog-BSKX_7_v.js} +12 -12
  24. package/dist/{SavedBlocksBrowserModal-RKo9mq3U.js → SavedBlocksBrowserModal-CHKrH1gO.js} +15 -18
  25. package/dist/{SavedBlocksPanels-B7IlFCQp.js → SavedBlocksPanels-B-xDqBcz.js} +2 -2
  26. package/dist/{SavedBlocksPickBar-BYCwMUR6.js → SavedBlocksPickBar-D2J-g82g.js} +4 -4
  27. package/dist/{TemplateScoringPanel-DXsyp0_A.js → TemplateScoringPanel-3lHzuCl0.js} +16 -16
  28. package/dist/TemplateSettings-D07K_Y4m.js +246 -0
  29. package/dist/{TestEmailModal-Btbk0B1s.js → TestEmailModal-BNPw_lID.js} +11 -11
  30. package/dist/{TestEmailPanel-kdF_QluO.js → TestEmailPanel-8klWo8hE.js} +2 -2
  31. package/dist/{TitleEditor-Cl6AmEy9.js → TitleEditor-CmC9OuhA.js} +13 -13
  32. package/dist/{ToggleSwitch-D7GLaT8s.js → ToggleSwitch-COeyWGfT.js} +2 -2
  33. package/dist/{Toolbar-CWxqqBHE.js → Toolbar-CqhRb6EM.js} +522 -524
  34. package/dist/{TplModal-DD1xZyBq.js → TplModal-BGFawHY9.js} +5 -5
  35. package/dist/{VersionHistoryMenu-fLrx-Lvi.js → VersionHistoryMenu-D7zaTMrb.js} +10 -10
  36. package/dist/{VersionHistoryPanels-Caa2_niu.js → VersionHistoryPanels-DdbGjEOR.js} +2 -2
  37. package/dist/{VersionPreviewBanner-CWuxq_bb.js → VersionPreviewBanner-BUKb9gc6.js} +3 -3
  38. package/dist/{WrapperBlock-Do8kLejT.js → WrapperBlock-CTkmA887.js} +3 -3
  39. package/dist/{blockTypeIcons-DEvNVvBj.js → blockTypeIcons-CVKo6V_v.js} +2 -2
  40. package/dist/bundle-stats.json +7 -7
  41. package/dist/{ca-DES69VJW.js → ca-C__Dzq--.js} +5 -0
  42. package/dist/cdn/chunks/{AiChatSidebar-Cvp9beXR.js → AiChatSidebar-kCK4NZM9.js} +9 -13
  43. package/dist/cdn/chunks/{AiChatSidebar-Cvp9beXR.js.map → AiChatSidebar-kCK4NZM9.js.map} +1 -1
  44. package/dist/cdn/chunks/{AiFeatureMenu-B291Us2g.js → AiFeatureMenu-K1dLeDft.js} +6 -6
  45. package/dist/cdn/chunks/{AiFeatureMenu-B291Us2g.js.map → AiFeatureMenu-K1dLeDft.js.map} +1 -1
  46. package/dist/cdn/chunks/{BlockIssueBadge-CKIrYROg.js → BlockIssueBadge-05Q3L4RV.js} +5 -5
  47. package/dist/cdn/chunks/{BlockIssueBadge-CKIrYROg.js.map → BlockIssueBadge-05Q3L4RV.js.map} +1 -1
  48. package/dist/cdn/chunks/{BlockPreviewCanvas-CRJZBmwV.js → BlockPreviewCanvas-Djz9YAFx.js} +6 -6
  49. package/dist/cdn/chunks/{BlockPreviewCanvas-CRJZBmwV.js.map → BlockPreviewCanvas-Djz9YAFx.js.map} +1 -1
  50. package/dist/cdn/chunks/{CloudHeaderExtras-BvCPpih5.js → CloudHeaderExtras-5ONQ1RCa.js} +5 -5
  51. package/dist/cdn/chunks/{CloudHeaderExtras-BvCPpih5.js.map → CloudHeaderExtras-5ONQ1RCa.js.map} +1 -1
  52. package/dist/cdn/chunks/{CloudPanels-vlPH6N3s.js → CloudPanels-_irSdWbi.js} +7 -7
  53. package/dist/cdn/chunks/{CloudPanels-vlPH6N3s.js.map → CloudPanels-_irSdWbi.js.map} +1 -1
  54. package/dist/cdn/chunks/{CollaboratorBar-Xt3WJ-rn.js → CollaboratorBar-CZufI1On.js} +5 -5
  55. package/dist/cdn/chunks/{CollaboratorBar-Xt3WJ-rn.js.map → CollaboratorBar-CZufI1On.js.map} +1 -1
  56. package/dist/cdn/chunks/{CommentsPanel-BjHRj_Yw.js → CommentsPanel-VH_NJ5HZ.js} +3 -3
  57. package/dist/cdn/chunks/{CommentsPanel-BjHRj_Yw.js.map → CommentsPanel-VH_NJ5HZ.js.map} +1 -1
  58. package/dist/cdn/chunks/{CommentsSidebar-CpCfqSq4.js → CommentsSidebar-CYPH5rVi.js} +5 -5
  59. package/dist/cdn/chunks/{CommentsSidebar-CpCfqSq4.js.map → CommentsSidebar-CYPH5rVi.js.map} +1 -1
  60. package/dist/cdn/chunks/{CountdownBlock-sVDjKkRw.js → CountdownBlock-lHU3Lu7Q.js} +4 -4
  61. package/dist/cdn/chunks/{CountdownBlock-sVDjKkRw.js.map → CountdownBlock-lHU3Lu7Q.js.map} +1 -1
  62. package/dist/cdn/chunks/{CountdownToolbar-C9QpHQcv.js → CountdownToolbar-BaXCefQM.js} +63 -62
  63. package/dist/cdn/chunks/CountdownToolbar-BaXCefQM.js.map +1 -0
  64. package/dist/cdn/chunks/{DesignReferenceSidebar-BO0xz1wC.js → DesignReferenceSidebar-GjkpHylX.js} +21 -22
  65. package/dist/cdn/chunks/{DesignReferenceSidebar-BO0xz1wC.js.map → DesignReferenceSidebar-GjkpHylX.js.map} +1 -1
  66. package/dist/cdn/chunks/{IssuesPanel--62qud8w.js → IssuesPanel-C1Lv2y_O.js} +6 -6
  67. package/dist/cdn/chunks/{IssuesPanel--62qud8w.js.map → IssuesPanel-C1Lv2y_O.js.map} +1 -1
  68. package/dist/cdn/chunks/{LoadingTrack-_7DH_5aw.js → LoadingTrack-Cg1HRIND.js} +2 -2
  69. package/dist/cdn/chunks/{LoadingTrack-_7DH_5aw.js.map → LoadingTrack-Cg1HRIND.js.map} +1 -1
  70. package/dist/cdn/chunks/{LogicTagInsertButton-gc8ICURV.js → LogicTagInsertButton-BYjdrDnQ.js} +11 -17
  71. package/dist/cdn/chunks/{LogicTagInsertButton-gc8ICURV.js.map → LogicTagInsertButton-BYjdrDnQ.js.map} +1 -1
  72. package/dist/cdn/chunks/{MediaEditModal-BuDXKwx4.js → MediaEditModal-CD3fVbWI.js} +6 -14
  73. package/dist/cdn/chunks/{MediaEditModal-BuDXKwx4.js.map → MediaEditModal-CD3fVbWI.js.map} +1 -1
  74. package/dist/cdn/chunks/{MediaPanels-xFpaxFRH.js → MediaPanels-B2AyUUcf.js} +3 -3
  75. package/dist/cdn/chunks/{MediaPanels-xFpaxFRH.js.map → MediaPanels-B2AyUUcf.js.map} +1 -1
  76. package/dist/cdn/chunks/{MergeTagInput-DsPKWbWr.js → MergeTagInput-Cx67J_vg.js} +3 -3
  77. package/dist/cdn/chunks/{MergeTagInput-DsPKWbWr.js.map → MergeTagInput-Cx67J_vg.js.map} +1 -1
  78. package/dist/cdn/chunks/{MergeTagModeToggle-DU0WqgVH.js → MergeTagModeToggle-DZ4EuXVp.js} +6 -6
  79. package/dist/cdn/chunks/{MergeTagModeToggle-DU0WqgVH.js.map → MergeTagModeToggle-DZ4EuXVp.js.map} +1 -1
  80. package/dist/cdn/chunks/{ParagraphEditor-BWfx94pb.js → ParagraphEditor-DndEFXmR.js} +145 -144
  81. package/dist/cdn/chunks/ParagraphEditor-DndEFXmR.js.map +1 -0
  82. package/dist/cdn/chunks/{RestoreVersionDialog-DWUnyA0B.js → RestoreVersionDialog-CFYs13a4.js} +5 -5
  83. package/dist/cdn/chunks/{RestoreVersionDialog-DWUnyA0B.js.map → RestoreVersionDialog-CFYs13a4.js.map} +1 -1
  84. package/dist/cdn/chunks/{RichTextEditorContent-Dkcts8Vh.js → RichTextEditorContent-DKkDQ0dc.js} +8 -8
  85. package/dist/cdn/chunks/{RichTextEditorContent-Dkcts8Vh.js.map → RichTextEditorContent-DKkDQ0dc.js.map} +1 -1
  86. package/dist/cdn/chunks/{SaveBlockDialog-CcfyxDfZ.js → SaveBlockDialog-BOA2RaC_.js} +10 -10
  87. package/dist/cdn/chunks/{SaveBlockDialog-CcfyxDfZ.js.map → SaveBlockDialog-BOA2RaC_.js.map} +1 -1
  88. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DauQ_V9N.js → SavedBlocksBrowserModal-DQDVek3K.js} +11 -14
  89. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DauQ_V9N.js.map → SavedBlocksBrowserModal-DQDVek3K.js.map} +1 -1
  90. package/dist/cdn/chunks/{SavedBlocksPanels-J5v2PsFv.js → SavedBlocksPanels-Lu3tJ3QA.js} +3 -3
  91. package/dist/cdn/chunks/{SavedBlocksPanels-J5v2PsFv.js.map → SavedBlocksPanels-Lu3tJ3QA.js.map} +1 -1
  92. package/dist/cdn/chunks/{SavedBlocksPickBar-v3AMSqli.js → SavedBlocksPickBar-D7MtqG6r.js} +5 -5
  93. package/dist/cdn/chunks/{SavedBlocksPickBar-v3AMSqli.js.map → SavedBlocksPickBar-D7MtqG6r.js.map} +1 -1
  94. package/dist/cdn/chunks/{TemplateScoringPanel-BBRHCNcR.js → TemplateScoringPanel-C_57Bfkf.js} +8 -8
  95. package/dist/cdn/chunks/{TemplateScoringPanel-BBRHCNcR.js.map → TemplateScoringPanel-C_57Bfkf.js.map} +1 -1
  96. package/dist/cdn/chunks/{TemplateSettings-vsFOU0oA.js → TemplateSettings-rZiHmq24.js} +48 -47
  97. package/dist/cdn/chunks/TemplateSettings-rZiHmq24.js.map +1 -0
  98. package/dist/cdn/chunks/{TestEmailModal-CW9EFpFR.js → TestEmailModal-DWEyHXH2.js} +10 -10
  99. package/dist/cdn/chunks/{TestEmailModal-CW9EFpFR.js.map → TestEmailModal-DWEyHXH2.js.map} +1 -1
  100. package/dist/cdn/chunks/{TestEmailPanel-D1Hchlr7.js → TestEmailPanel-XXMD-Lnr.js} +3 -3
  101. package/dist/cdn/chunks/{TestEmailPanel-D1Hchlr7.js.map → TestEmailPanel-XXMD-Lnr.js.map} +1 -1
  102. package/dist/cdn/chunks/{TitleEditor-nDV6P-ag.js → TitleEditor-D1F0YoE-.js} +12 -12
  103. package/dist/cdn/chunks/{TitleEditor-nDV6P-ag.js.map → TitleEditor-D1F0YoE-.js.map} +1 -1
  104. package/dist/cdn/chunks/{ToggleSwitch-DoUNcLPP.js → ToggleSwitch-B5U9cqhi.js} +3 -3
  105. package/dist/cdn/chunks/{ToggleSwitch-DoUNcLPP.js.map → ToggleSwitch-B5U9cqhi.js.map} +1 -1
  106. package/dist/cdn/chunks/{Toolbar-CnfNUkOY.js → Toolbar-C_5HfUQq.js} +422 -424
  107. package/dist/cdn/chunks/Toolbar-C_5HfUQq.js.map +1 -0
  108. package/dist/cdn/chunks/{TplModal-VuZ9bDw9.js → TplModal-CYBbPCHL.js} +5 -5
  109. package/dist/cdn/chunks/{TplModal-VuZ9bDw9.js.map → TplModal-CYBbPCHL.js.map} +1 -1
  110. package/dist/cdn/chunks/{VersionHistoryMenu-Cp3EHO_P.js → VersionHistoryMenu-DbxuJgDO.js} +6 -6
  111. package/dist/cdn/chunks/{VersionHistoryMenu-Cp3EHO_P.js.map → VersionHistoryMenu-DbxuJgDO.js.map} +1 -1
  112. package/dist/cdn/chunks/{VersionHistoryPanels-BChjjMC6.js → VersionHistoryPanels-Dq12VsTX.js} +3 -3
  113. package/dist/cdn/chunks/{VersionHistoryPanels-BChjjMC6.js.map → VersionHistoryPanels-Dq12VsTX.js.map} +1 -1
  114. package/dist/cdn/chunks/{VersionPreviewBanner-BgkroXnG.js → VersionPreviewBanner-HRERIH-v.js} +4 -4
  115. package/dist/cdn/chunks/{VersionPreviewBanner-BgkroXnG.js.map → VersionPreviewBanner-HRERIH-v.js.map} +1 -1
  116. package/dist/cdn/chunks/{WrapperBlock-DDnue8oy.js → WrapperBlock-CJ0CLqi2.js} +4 -4
  117. package/dist/cdn/chunks/{WrapperBlock-DDnue8oy.js.map → WrapperBlock-CJ0CLqi2.js.map} +1 -1
  118. package/dist/cdn/chunks/{blockTypeIcons-BMZi7sdX.js → blockTypeIcons-DdZP-3FM.js} +2 -2
  119. package/dist/cdn/chunks/{blockTypeIcons-BMZi7sdX.js.map → blockTypeIcons-DdZP-3FM.js.map} +1 -1
  120. package/dist/cdn/chunks/{ca-DES69VJW.js → ca-C__Dzq--.js} +6 -1
  121. package/dist/cdn/chunks/ca-C__Dzq--.js.map +1 -0
  122. package/dist/cdn/chunks/{cloud-DLQU5l0Z.js → cloud-h1vaHp2p.js} +4 -4
  123. package/dist/cdn/chunks/{cloud-DLQU5l0Z.js.map → cloud-h1vaHp2p.js.map} +1 -1
  124. package/dist/cdn/chunks/{createCloudRuntime-Mnx8kV2W.js → createCloudRuntime-bJN9EM1H.js} +9 -12
  125. package/dist/cdn/chunks/{createCloudRuntime-Mnx8kV2W.js.map → createCloudRuntime-bJN9EM1H.js.map} +1 -1
  126. package/dist/{de-MlrDhC3Y.js → cdn/chunks/de-CGjbQ2mt.js} +7 -0
  127. package/dist/cdn/chunks/de-CGjbQ2mt.js.map +1 -0
  128. package/dist/cdn/chunks/{dist-BRZhN8qJ.js → dist-B7W-Lb65.js} +2 -2
  129. package/dist/cdn/chunks/{dist-BRZhN8qJ.js.map → dist-B7W-Lb65.js.map} +1 -1
  130. package/dist/cdn/chunks/{dist-CXB2_kBa.js → dist-C5nRd_ua.js} +5 -13
  131. package/dist/cdn/chunks/{dist-CXB2_kBa.js.map → dist-C5nRd_ua.js.map} +1 -1
  132. package/dist/cdn/chunks/{draggable-IB4x6w2O.js → draggable-BUTN5vZC.js} +32 -77
  133. package/dist/cdn/chunks/{draggable-IB4x6w2O.js.map → draggable-BUTN5vZC.js.map} +1 -1
  134. package/dist/cdn/chunks/{editor-modal-B7NNAFI5.js → editor-modal-BpsbYA4_.js} +14 -34
  135. package/dist/cdn/chunks/{editor-modal-B7NNAFI5.js.map → editor-modal-BpsbYA4_.js.map} +1 -1
  136. package/dist/{en-6vJh7KCM.js → cdn/chunks/en-BTiiAC-B.js} +7 -0
  137. package/dist/cdn/chunks/en-BTiiAC-B.js.map +1 -0
  138. package/dist/cdn/chunks/en-CAt6y87e.js +1 -0
  139. package/dist/{es-ewL03EaP.js → cdn/chunks/es-CdTOcSTf.js} +7 -0
  140. package/dist/cdn/chunks/es-CdTOcSTf.js.map +1 -0
  141. package/dist/cdn/chunks/{extensions-ClmkNA8R.js → extensions-CrmXF4MW.js} +11 -19
  142. package/dist/cdn/chunks/extensions-CrmXF4MW.js.map +1 -0
  143. package/dist/{fr-D1syuxs1.js → cdn/chunks/fr-B6lcLLzC.js} +7 -0
  144. package/dist/cdn/chunks/fr-B6lcLLzC.js.map +1 -0
  145. package/dist/cdn/chunks/{htmlparser-ClUZ6waR.js → htmlparser-CDRsn-gn.js} +3 -11
  146. package/dist/cdn/chunks/{htmlparser-ClUZ6waR.js.map → htmlparser-CDRsn-gn.js.map} +1 -1
  147. package/dist/cdn/chunks/{icons-BjvraR-Y.js → icons-Dr9erFGs.js} +48 -48
  148. package/dist/cdn/chunks/{icons-BjvraR-Y.js.map → icons-Dr9erFGs.js.map} +1 -1
  149. package/dist/{ja-Dd_nytwe.js → cdn/chunks/ja-BhdkqENz.js} +7 -0
  150. package/dist/cdn/chunks/ja-BhdkqENz.js.map +1 -0
  151. package/dist/cdn/chunks/{keys-DCWeHkSF.js → keys-BKu-LOk5.js} +2 -2
  152. package/dist/cdn/chunks/{keys-DCWeHkSF.js.map → keys-BKu-LOk5.js.map} +1 -1
  153. package/dist/cdn/chunks/{liquid.browser-DXPjcePu.js → liquid.browser-Bbt17cVz.js} +30 -56
  154. package/dist/cdn/chunks/{liquid.browser-DXPjcePu.js.map → liquid.browser-Bbt17cVz.js.map} +1 -1
  155. package/dist/{nl-DD1t_qxS.js → cdn/chunks/nl-CE3YItYg.js} +7 -0
  156. package/dist/cdn/chunks/nl-CE3YItYg.js.map +1 -0
  157. package/dist/{preRenderCustomBlocks-C_PIxBp7.js → cdn/chunks/preRenderCustomBlocks-CyGB3lZr.js} +5 -3
  158. package/dist/cdn/chunks/{preRenderCustomBlocks-Bg3rIgGJ.js.map → preRenderCustomBlocks-CyGB3lZr.js.map} +1 -1
  159. package/dist/{pt-BR-BmtO0R7k.js → cdn/chunks/pt-BR-CUIT4rq4.js} +7 -0
  160. package/dist/cdn/chunks/pt-BR-CUIT4rq4.js.map +1 -0
  161. package/dist/cdn/chunks/{pusher-BbIHJKf3.js → pusher-C8DeiO2X.js} +18 -57
  162. package/dist/cdn/chunks/{pusher-BbIHJKf3.js.map → pusher-C8DeiO2X.js.map} +1 -1
  163. package/dist/cdn/chunks/{socialIcons-CnUJBZTO.js → socialIcons-ClJVDZwt.js} +90 -119
  164. package/dist/cdn/chunks/socialIcons-ClJVDZwt.js.map +1 -0
  165. package/dist/cdn/chunks/{src-B5-VKcRQ.js → src-B0pZeTYO.js} +194 -215
  166. package/dist/cdn/chunks/src-B0pZeTYO.js.map +1 -0
  167. package/dist/cdn/chunks/{src-CjjJWoUZ.js → src-BMw3u-iV.js} +225 -232
  168. package/dist/cdn/chunks/src-BMw3u-iV.js.map +1 -0
  169. package/dist/cdn/chunks/{src-QIGNPFkl.js → src-Bh0MoJ67.js} +360 -246
  170. package/dist/cdn/chunks/src-Bh0MoJ67.js.map +1 -0
  171. package/dist/cdn/chunks/{tiptap-02G9FGkl.js → tiptap-CYDXLO17.js} +87 -134
  172. package/dist/cdn/chunks/{tiptap-02G9FGkl.js.map → tiptap-CYDXLO17.js.map} +1 -1
  173. package/dist/cdn/chunks/{useAliveFlag-DAlQLbM2.js → useAliveFlag-DzyXG-8A.js} +2 -2
  174. package/dist/cdn/chunks/{useAliveFlag-DAlQLbM2.js.map → useAliveFlag-DzyXG-8A.js.map} +1 -1
  175. package/dist/cdn/chunks/{useCloudI18n-CrjWbpbu.js → useCloudI18n-Cgk0ts_F.js} +3 -3
  176. package/dist/cdn/chunks/{useCloudI18n-CrjWbpbu.js.map → useCloudI18n-Cgk0ts_F.js.map} +1 -1
  177. package/dist/cdn/chunks/{useEditorCore-q0G4q-52.js → useEditorCore-DuC7kVti.js} +559 -599
  178. package/dist/cdn/chunks/useEditorCore-DuC7kVti.js.map +1 -0
  179. package/dist/cdn/chunks/useEditorRoot-DDPIcEOO.js +10 -0
  180. package/dist/cdn/chunks/{useEditorRoot-CshefZLP.js.map → useEditorRoot-DDPIcEOO.js.map} +1 -1
  181. package/dist/cdn/chunks/{useI18n-CyO_Nmca.js → useI18n-DO4NTunW.js} +3 -3
  182. package/dist/cdn/chunks/{useI18n-CyO_Nmca.js.map → useI18n-DO4NTunW.js.map} +1 -1
  183. package/dist/cdn/chunks/{useLogicTag-D6lWY0bD.js → useLogicTag-B3uV3XHG.js} +4 -4
  184. package/dist/cdn/chunks/{useLogicTag-D6lWY0bD.js.map → useLogicTag-B3uV3XHG.js.map} +1 -1
  185. package/dist/cdn/chunks/{useMergeTag-2iW-BKWW.js → useMergeTag-DJLM-7WQ.js} +4 -4
  186. package/dist/cdn/chunks/{useMergeTag-2iW-BKWW.js.map → useMergeTag-DJLM-7WQ.js.map} +1 -1
  187. package/dist/cdn/chunks/{usePopoverPosition-DGXjXKjM.js → usePopoverPosition-CtVNwoHj.js} +3 -3
  188. package/dist/cdn/chunks/{usePopoverPosition-DGXjXKjM.js.map → usePopoverPosition-CtVNwoHj.js.map} +1 -1
  189. package/dist/cdn/chunks/{useScrollToBlock-DgHZJvID.js → useScrollToBlock-CpmB5KxW.js} +4 -5
  190. package/dist/cdn/chunks/useScrollToBlock-CpmB5KxW.js.map +1 -0
  191. package/dist/cdn/chunks/withCurrentFont-isIyuezD.js +21 -0
  192. package/dist/cdn/chunks/withCurrentFont-isIyuezD.js.map +1 -0
  193. package/dist/cdn/editor.css +1 -1
  194. package/dist/cdn/editor.js +472 -491
  195. package/dist/cdn/editor.js.map +1 -1
  196. package/dist/{check-DNyj-E0y.js → check-ZKvtMdpe.js} +1 -1
  197. package/dist/{chevron-down-BYnhkMsA.js → chevron-down-RrwkYMlp.js} +1 -1
  198. package/dist/{chevron-right-D9HGBqJo.js → chevron-right-CklHaa1U.js} +1 -1
  199. package/dist/{chevron-up-BnIR1-ma.js → chevron-up-DjN2NTbo.js} +1 -1
  200. package/dist/{circle-alert-B6xl1B_M.js → circle-alert-BR1_Yfb-.js} +1 -1
  201. package/dist/{clock-Cs5Wd3dW.js → clock-BEagNj21.js} +1 -1
  202. package/dist/{cloud-BNEL7bxL.js → cloud-DPGjMGfv.js} +2 -2
  203. package/dist/{copy-6uKc-WBk.js → copy-D6DNoSq1.js} +1 -1
  204. package/dist/{createCloudRuntime-CaZapQZ6.js → createCloudRuntime-D0RRgWab.js} +8 -11
  205. package/dist/{createLucideIcon-BVcoovvP.js → createLucideIcon-BAPyioGd.js} +6 -6
  206. package/dist/{cdn/chunks/de-MlrDhC3Y.js → de-CGjbQ2mt.js} +5 -2
  207. package/dist/{dist-CmwBvyW0.js → dist-1H4cnaoD.js} +3 -3
  208. package/dist/{dist-D4HP93ZF.js → dist-5DAb7bYT.js} +1 -1
  209. package/dist/{dist-DdSWMtEP.js → dist-5KNKxglR.js} +1 -1
  210. package/dist/{dist-HjILVdTA.js → dist-BI_LeQGl.js} +289 -201
  211. package/dist/{dist-BDuPwOyn.js → dist-B_vYjCsk.js} +4 -12
  212. package/dist/{dist-Ceew_u40.js → dist-Bc30883t.js} +6 -22
  213. package/dist/{dist-Czzst9ng.js → dist-Bd7khQsg.js} +3 -11
  214. package/dist/{dist-8VFzbeu9.js → dist-C-VFTX82.js} +1 -1
  215. package/dist/{dist-BYg1EL5g.js → dist-C3eH9-N2.js} +1 -1
  216. package/dist/{dist-Dw2_11LA.js → dist-CFC4pg2o.js} +1 -1
  217. package/dist/{dist-BgSLW3Hn.js → dist-CMcFD7gP.js} +72 -87
  218. package/dist/{dist-DmQckB4p.js → dist-DHensKDY.js} +1 -1
  219. package/dist/{dist-CWc7nIkA.js → dist-DapsJxn_.js} +1 -1
  220. package/dist/{dist-D2m55Lvs.js → dist-j2FavQmU.js} +1 -1
  221. package/dist/{dist-8By0p8ah.js → dist-lL3nVbxV.js} +1 -1
  222. package/dist/{editor-modal-Co-rZGaf.js → editor-modal-oRmkDlUs.js} +27 -47
  223. package/dist/{cdn/chunks/en-6vJh7KCM.js → en-BTiiAC-B.js} +5 -2
  224. package/dist/en-Bk4iCfjp.js +1 -0
  225. package/dist/{cdn/chunks/es-ewL03EaP.js → es-CdTOcSTf.js} +5 -2
  226. package/dist/{extensions-DXSI8Dyj.js → extensions-CYigjb1g.js} +52 -68
  227. package/dist/{eye-Nbtw_q05.js → eye-DvsTBI57.js} +1 -1
  228. package/dist/{cdn/chunks/fr-D1syuxs1.js → fr-B6lcLLzC.js} +5 -2
  229. package/dist/{image-up-C1jC7NzQ.js → image-up-BoFGZm5Q.js} +1 -1
  230. package/dist/index.d.ts +46 -13
  231. package/dist/{info-ClH66pKN.js → info-0bQQGjTV.js} +1 -1
  232. package/dist/{cdn/chunks/ja-Dd_nytwe.js → ja-BhdkqENz.js} +5 -2
  233. package/dist/{keys-CDqfZIRt.js → keys-injl74ob.js} +1 -1
  234. package/dist/{link-y47GNW0o.js → link-Cstrr3Ep.js} +1 -1
  235. package/dist/{liquid.browser-Cs4gOjeX.js → liquid.browser-Ct2-EezB.js} +29 -55
  236. package/dist/{list-DiLMlMaE.js → list-Dx9Rmy5s.js} +1 -1
  237. package/dist/{loader-circle-BRdCPW5h.js → loader-circle-D8Qqs0MG.js} +1 -1
  238. package/dist/{message-circle-CNgIpVJv.js → message-circle-D78ELX6I.js} +1 -1
  239. package/dist/{cdn/chunks/nl-DD1t_qxS.js → nl-CE3YItYg.js} +5 -2
  240. package/dist/{package-B9OWk-Kp.js → package-DOvM9sHE.js} +1 -1
  241. package/dist/{pencil-BDnjo24u.js → pencil-B6m0OG0n.js} +1 -1
  242. package/dist/{plus-BMgjN7lI.js → plus-D-nEKxTc.js} +1 -1
  243. package/dist/{cdn/chunks/preRenderCustomBlocks-Bg3rIgGJ.js → preRenderCustomBlocks-DokBGA_M.js} +3 -5
  244. package/dist/{cdn/chunks/pt-BR-BmtO0R7k.js → pt-BR-CUIT4rq4.js} +5 -2
  245. package/dist/{refresh-cw-CR5lenxl.js → refresh-cw-CXZS-R1U.js} +1 -1
  246. package/dist/{runtime-dom.esm-bundler-BGbPz4-g.js → runtime-dom.esm-bundler-CO67ema2.js} +15 -16
  247. package/dist/{search-CxRUiOSF.js → search-DSvil0jo.js} +1 -1
  248. package/dist/{send-Bu2RysGL.js → send-BBR28V94.js} +1 -1
  249. package/dist/{shield-check-Cg8f4LB0.js → shield-check-ByxUnaU9.js} +1 -1
  250. package/dist/{smartphone-CHf-8lHp.js → smartphone-CNOwGf5T.js} +1 -1
  251. package/dist/{socialIcons-D1gkHc_i.js → socialIcons-Ct_IoqPQ.js} +112 -141
  252. package/dist/{sparkles-_DQGv4ub.js → sparkles-DO1hzwzf.js} +1 -1
  253. package/dist/style.css +1 -1
  254. package/dist/templatical-editor.js +504 -523
  255. package/dist/{text-align-start-PHo-Ep5i.js → text-align-start-BKEKMheq.js} +13 -13
  256. package/dist/{trash-BxIzHAri.js → trash-CKEQH4vH.js} +1 -1
  257. package/dist/{triangle-alert-fcb2KoA-.js → triangle-alert-BHnfd3fV.js} +1 -1
  258. package/dist/{upload-BxBtMPMv.js → upload-C8uO7KsR.js} +1 -1
  259. package/dist/{useAliveFlag-BkKyhkwZ.js → useAliveFlag-6PtarpNZ.js} +1 -1
  260. package/dist/{useCloudI18n-DpEsiLeR.js → useCloudI18n-GvIOLziA.js} +2 -2
  261. package/dist/{useEditorCore-B1CWeFTj.js → useEditorCore-BJAQMvNW.js} +950 -1013
  262. package/dist/{useEditorRoot-CkB_5d0h.js → useEditorRoot-OWzNpDdT.js} +2 -2
  263. package/dist/{useI18n-B_CdcBwG.js → useI18n-uF11q85g.js} +2 -2
  264. package/dist/{useLogicTag-wqfdwYYR.js → useLogicTag-B5gjcMzn.js} +3 -3
  265. package/dist/{useMergeTag-D3XDE_58.js → useMergeTag-BwsBIDzR.js} +5 -5
  266. package/dist/{usePopoverPosition-BYmd-lhR.js → usePopoverPosition-DkBrHfCo.js} +2 -2
  267. package/dist/{useScrollToBlock-DA_aIJXS.js → useScrollToBlock-JRxhT1u_.js} +4 -5
  268. package/dist/{vue.runtime.esm-bundler-CyqhBwpY.js → vue.runtime.esm-bundler-CctRY8kr.js} +13 -45
  269. package/dist/withCurrentFont-C9vqrduu.js +19 -0
  270. package/dist/{x-DrZO5tt0.js → x-gEC0yMci.js} +1 -1
  271. package/package.json +12 -12
  272. package/dist/TemplateSettings-Bh10NFIN.js +0 -245
  273. package/dist/cdn/chunks/CountdownToolbar-C9QpHQcv.js.map +0 -1
  274. package/dist/cdn/chunks/ParagraphEditor-BWfx94pb.js.map +0 -1
  275. package/dist/cdn/chunks/TemplateSettings-vsFOU0oA.js.map +0 -1
  276. package/dist/cdn/chunks/Toolbar-CnfNUkOY.js.map +0 -1
  277. package/dist/cdn/chunks/ca-DES69VJW.js.map +0 -1
  278. package/dist/cdn/chunks/de-MlrDhC3Y.js.map +0 -1
  279. package/dist/cdn/chunks/en-6vJh7KCM.js.map +0 -1
  280. package/dist/cdn/chunks/en-C3n0qWte.js +0 -2
  281. package/dist/cdn/chunks/es-ewL03EaP.js.map +0 -1
  282. package/dist/cdn/chunks/extensions-ClmkNA8R.js.map +0 -1
  283. package/dist/cdn/chunks/fr-D1syuxs1.js.map +0 -1
  284. package/dist/cdn/chunks/ja-Dd_nytwe.js.map +0 -1
  285. package/dist/cdn/chunks/nl-DD1t_qxS.js.map +0 -1
  286. package/dist/cdn/chunks/pt-BR-BmtO0R7k.js.map +0 -1
  287. package/dist/cdn/chunks/socialIcons-CnUJBZTO.js.map +0 -1
  288. package/dist/cdn/chunks/src-B5-VKcRQ.js.map +0 -1
  289. package/dist/cdn/chunks/src-CjjJWoUZ.js.map +0 -1
  290. package/dist/cdn/chunks/src-QIGNPFkl.js.map +0 -1
  291. package/dist/cdn/chunks/useEditorCore-q0G4q-52.js.map +0 -1
  292. package/dist/cdn/chunks/useEditorRoot-CshefZLP.js +0 -10
  293. package/dist/cdn/chunks/useScrollToBlock-DgHZJvID.js.map +0 -1
  294. package/dist/en-B-xoKkWi.js +0 -2
@@ -1,35 +1,35 @@
1
- import { A as e, B as t, E as n, F as r, H as i, I as a, K as o, N as s, P as c, Q as l, R as u, S as d, U as f, X as p, Y as m, at as h, b as g, c as _, ct as v, et as y, f as b, g as x, h as S, it as C, j as w, k as T, l as E, lt as D, m as O, p as k, q as A, rt as j, s as M, t as N, u as P, ut as F, w as I, x as L, y as R } from "./draggable-IB4x6w2O.js";
2
- import { A as z, B, F as V, G as H, H as ee, I as te, J as ne, M as re, N as ie, O as ae, P as oe, R as se, T as ce, V as le, Y as ue, Z as de, _ as fe, _t as pe, a as me, b as he, d as ge, f as _e, g as ve, gt as ye, h as be, ht as xe, i as U, j as Se, k as Ce, l as we, m as Te, mt as Ee, n as De, o as Oe, p as ke, q as Ae, r as je, s as Me, u as Ne, ut as Pe, vt as W, z as Fe } from "./src-QIGNPFkl.js";
3
- import { a as Ie, b as Le, g as Re, h as ze, i as Be, m as Ve, n as He, o as Ue, t as We, v as Ge, y as Ke } from "./socialIcons-CnUJBZTO.js";
4
- import { _ as qe, h as Je, v as Ye, y as Xe } from "./dist-BRZhN8qJ.js";
5
- import { a as G, c as Ze, i as Qe } from "./dist-CXB2_kBa.js";
6
- import { $ as $e, A as et, B as tt, C as nt, D as rt, E as it, F as K, G as at, H as ot, I as st, J as ct, K as lt, L as ut, M as dt, N as ft, O as q, P as pt, Q as J, R as mt, S as ht, T as gt, V as _t, X as vt, Y as yt, Z as bt, _ as xt, a as St, b as Ct, c as wt, d as Tt, f as Et, g as Y, h as Dt, j as Ot, k as kt, l as At, m as jt, n as Mt, o as Nt, p as Pt, q as Ft, r as It, s as Lt, v as Rt, w as zt, x as Bt, y as Vt, z as Ht } from "./keys-DCWeHkSF.js";
1
+ import { A as e, B as t, E as n, F as r, H as i, I as a, K as o, N as s, P as c, Q as l, R as u, S as d, U as f, X as p, Y as m, at as h, b as g, c as _, ct as v, et as y, f as b, g as x, h as S, it as C, j as w, k as T, l as E, lt as D, m as O, p as k, q as A, rt as j, s as M, t as N, u as P, ut as F, w as I, x as L, y as R } from "./draggable-BUTN5vZC.js";
2
+ import { $ as z, B, Ct as V, Dt as H, Et as ee, F as te, G as ne, H as re, I as ie, K as ae, L as oe, M as se, N as ce, P as le, Q as ue, R as de, T as fe, Tt as pe, U as me, W as he, X as ge, Y as _e, _ as ve, a as ye, bt as be, d as xe, et as Se, f as Ce, g as we, h as Te, ht as Ee, i as U, l as De, m as Oe, n as ke, nt as Ae, o as je, p as Me, r as Ne, s as Pe, u as Fe, v as Ie, vt as Le, wt as Re, yt as ze, z as Be } from "./src-Bh0MoJ67.js";
3
+ import { a as Ve, b as He, g as Ue, h as We, i as Ge, m as Ke, n as qe, o as Je, t as Ye, v as Xe, y as Ze } from "./socialIcons-ClJVDZwt.js";
4
+ import { _ as Qe, h as $e, v as et, y as tt } from "./dist-B7W-Lb65.js";
5
+ import { a as W, c as nt, i as rt } from "./dist-C5nRd_ua.js";
6
+ import { $ as it, A as at, B as ot, C as st, D as ct, E as lt, F as G, G as ut, H as dt, I as ft, J as pt, K as mt, L as ht, M as gt, N as _t, O as K, P as vt, Q as q, R as yt, S as bt, T as xt, V as St, X as Ct, Y as wt, Z as Tt, _ as Et, a as Dt, b as Ot, c as kt, d as At, f as jt, g as J, h as Mt, j as Nt, k as Pt, l as Ft, m as It, n as Lt, o as Rt, p as zt, q as Bt, r as Vt, s as Ht, v as Ut, w as Wt, x as Gt, y as Kt, z as qt } from "./keys-BKu-LOk5.js";
7
7
  import "./timeouts-DHPZQ0G3.js";
8
- import { t as X } from "./useI18n-CyO_Nmca.js";
9
- import { t as Z } from "./logger-ByvdoAwq.js";
10
- import { i as Ut, r as Wt, s as Gt, t as Kt } from "./usePopoverPosition-DGXjXKjM.js";
11
- import { r as qt, t as Jt } from "./templateSettingsFields-YCFVBVYh.js";
12
- import { Bt as Yt, Dt as Xt, Et as Zt, U as Qt, Vt as $t, Z as en, at as tn, d as nn, f as rn, gt as an, j as on, kt as sn, nt as cn, o as ln, pt as un, s as dn, y as fn, yt as pn } from "./icons-BjvraR-Y.js";
13
- import { t as mn } from "./LoadingTrack-_7DH_5aw.js";
14
- import { t as hn } from "./_plugin-vue_export-helper-B3ysoDQm.js";
15
- import { t as gn } from "./useEditorRoot-CshefZLP.js";
16
- import "./useCloudI18n-CrjWbpbu.js";
17
- import { t as _n } from "./useMergeTag-2iW-BKWW.js";
18
- import { t as vn } from "./useLogicTag-D6lWY0bD.js";
19
- import { t as yn } from "./useAliveFlag-DAlQLbM2.js";
8
+ import { t as Y } from "./useI18n-DO4NTunW.js";
9
+ import { t as X } from "./logger-ByvdoAwq.js";
10
+ import { i as Jt, r as Z, s as Yt, t as Xt } from "./usePopoverPosition-CtVNwoHj.js";
11
+ import { r as Zt, t as Qt } from "./templateSettingsFields-YCFVBVYh.js";
12
+ import { Bt as $t, Dt as en, Tt as tn, U as nn, Vt as rn, Z as an, at as on, d as sn, f as cn, gt as ln, j as un, kt as dn, nt as fn, o as pn, pt as mn, s as hn, y as gn, yt as _n } from "./icons-Dr9erFGs.js";
13
+ import { t as vn } from "./LoadingTrack-Cg1HRIND.js";
14
+ import { t as yn } from "./_plugin-vue_export-helper-B3ysoDQm.js";
15
+ import { t as bn } from "./useEditorRoot-DDPIcEOO.js";
16
+ import "./useCloudI18n-Cgk0ts_F.js";
17
+ import { t as xn } from "./useMergeTag-DJLM-7WQ.js";
18
+ import { t as Sn } from "./useLogicTag-B3uV3XHG.js";
19
+ import { t as Cn } from "./useAliveFlag-DzyXG-8A.js";
20
20
  //#region src/utils/activeEditorTracker.ts
21
- var bn = /* @__PURE__ */ new Set(), Q = 0, xn = 0;
22
- function Sn() {
23
- let e = ++xn;
24
- return bn.add(e), Q === 0 && (Q = e), {
21
+ var wn = /* @__PURE__ */ new Set(), Q = 0, Tn = 0;
22
+ function En() {
23
+ let e = ++Tn;
24
+ return wn.add(e), Q === 0 && (Q = e), {
25
25
  id: e,
26
- isActive: () => bn.size <= 1 || Q === e,
26
+ isActive: () => wn.size <= 1 || Q === e,
27
27
  claim: () => {
28
28
  Q = e;
29
29
  },
30
30
  dispose: () => {
31
- if (bn.delete(e), Q === e) {
32
- let e = Array.from(bn);
31
+ if (wn.delete(e), Q === e) {
32
+ let e = Array.from(wn);
33
33
  Q = e[e.length - 1] ?? 0;
34
34
  }
35
35
  }
@@ -37,8 +37,8 @@ function Sn() {
37
37
  }
38
38
  //#endregion
39
39
  //#region src/composables/usePreviewResolution.ts
40
- var Cn = 500;
41
- function wn(e) {
40
+ var Dn = 500;
41
+ function On(e) {
42
42
  let n = typeof e.resolvePreview == "function", r = l(null), i = l(!1), a = l(!1), o = 0, s = null;
43
43
  function c() {
44
44
  s !== null && (clearTimeout(s), s = null);
@@ -49,13 +49,13 @@ function wn(e) {
49
49
  let n = ++o;
50
50
  i.value = !0;
51
51
  let s = {
52
- content: ce(e.getContent()),
52
+ content: _e(e.getContent()),
53
53
  ...e.getRecipient?.() === void 0 ? {} : { recipient: e.getRecipient() }
54
54
  };
55
55
  try {
56
56
  let e = await t(s);
57
57
  if (n !== o) return;
58
- if (!De(e)) {
58
+ if (!ke(e)) {
59
59
  a.value = !0;
60
60
  return;
61
61
  }
@@ -68,22 +68,12 @@ function wn(e) {
68
68
  }
69
69
  }
70
70
  function d() {
71
- if (n) {
72
- if (c(), r.value === null) {
73
- u();
74
- return;
75
- }
76
- s = setTimeout(() => {
77
- s = null, u();
78
- }, Cn);
79
- }
71
+ n && (c(), r.value === null ? u() : s = setTimeout(() => {
72
+ s = null, u();
73
+ }, Dn));
80
74
  }
81
75
  return t(() => [e.isActive(), e.getRecipient?.()], ([e]) => {
82
- if (!e) {
83
- c(), o++, i.value = !1, r.value = null, a.value = !1;
84
- return;
85
- }
86
- d();
76
+ e ? d() : (c(), o++, i.value = !1, r.value = null, a.value = !1);
87
77
  }, { immediate: !0 }), m(() => {
88
78
  c(), o++;
89
79
  }), {
@@ -97,7 +87,7 @@ function wn(e) {
97
87
  }
98
88
  //#endregion
99
89
  //#region src/composables/useImageUrlResolver.ts
100
- function Tn(e) {
90
+ function kn(e) {
101
91
  let t = p(/* @__PURE__ */ new Map()), n = /* @__PURE__ */ new Set();
102
92
  function r(e) {
103
93
  return t.get(e);
@@ -114,15 +104,11 @@ function Tn(e) {
114
104
  t.set(r, null);
115
105
  return;
116
106
  }
117
- if (a === null || typeof a == "string") {
118
- t.set(r, a);
119
- return;
120
- }
121
- n.add(r), Promise.resolve(a).then((e) => {
107
+ a === null || typeof a == "string" ? t.set(r, a) : (n.add(r), Promise.resolve(a).then((e) => {
122
108
  t.set(r, typeof e == "string" ? e : null);
123
109
  }, () => {
124
110
  t.set(r, null);
125
- }).finally(() => n.delete(r));
111
+ }).finally(() => n.delete(r)));
126
112
  }
127
113
  return {
128
114
  get: r,
@@ -130,8 +116,8 @@ function Tn(e) {
130
116
  lookup: a
131
117
  };
132
118
  }
133
- function En(e) {
134
- let r = n(Bt, null), i = b(e);
119
+ function An(e) {
120
+ let r = n(Gt, null), i = b(e);
135
121
  if (!r) return i;
136
122
  let a;
137
123
  function s() {
@@ -142,15 +128,9 @@ function En(e) {
142
128
  return t(i, (e) => {
143
129
  s();
144
130
  let t = c;
145
- if (c = !1, e && !r.has(e)) {
146
- if (t) {
147
- r.lookup(e);
148
- return;
149
- }
150
- a = setTimeout(() => {
151
- a = void 0, r.lookup(e);
152
- }, 300);
153
- }
131
+ c = !1, e && !r.has(e) && (t ? r.lookup(e) : a = setTimeout(() => {
132
+ a = void 0, r.lookup(e);
133
+ }, 300));
154
134
  }, { immediate: !0 }), b(() => {
155
135
  let e = i.value;
156
136
  if (!e) return e;
@@ -160,7 +140,7 @@ function En(e) {
160
140
  }
161
141
  //#endregion
162
142
  //#region src/composables/useMergeTagPicker.ts
163
- function Dn() {
143
+ function jn() {
164
144
  let e = l(!1), t = l([]), n = l(null), r = null;
165
145
  function i(i, a) {
166
146
  if (r) {
@@ -191,7 +171,7 @@ function Dn() {
191
171
  }
192
172
  //#endregion
193
173
  //#region src/composables/useLogicTagPicker.ts
194
- function On() {
174
+ function Mn() {
195
175
  let e = l(!1), t = l([]), n = l([]), r = null;
196
176
  function i(i, a) {
197
177
  if (r) {
@@ -222,17 +202,17 @@ function On() {
222
202
  }
223
203
  //#endregion
224
204
  //#region src/composables/useTemplateLint.ts
225
- function kn(e) {
205
+ function Nn(e) {
226
206
  return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 : !1;
227
207
  }
228
- function An(e) {
229
- let n = l([]), r = l(!1), i = l(!1), a = y(null), o = kn(e.options), s = null, c = !1;
208
+ function Pn(e) {
209
+ let n = l([]), r = l(!1), i = l(!1), a = y(null), o = Nn(e.options), s = null, c = !1;
230
210
  o || u();
231
211
  async function u() {
232
212
  try {
233
- let t = await import("./src-B5-VKcRQ.js");
213
+ let t = await import("./src-B0pZeTYO.js");
234
214
  if (c) return;
235
- a.value = { lintTemplate: t.lintTemplate }, r.value = !0, d(), s = Xe(e.content, d, {
215
+ a.value = { lintTemplate: t.lintTemplate }, r.value = !0, d(), s = tt(e.content, d, {
236
216
  debounce: e.debounce ?? 500,
237
217
  deep: !0
238
218
  });
@@ -267,7 +247,7 @@ function An(e) {
267
247
  }
268
248
  //#endregion
269
249
  //#region src/composables/useKeyboardReorder.ts
270
- function jn(e, t, n = []) {
250
+ function Fn(e, t, n = []) {
271
251
  let r = l(null), i = l(""), a = null;
272
252
  function o(t) {
273
253
  let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
@@ -294,7 +274,7 @@ function jn(e, t, n = []) {
294
274
  let i = o(r);
295
275
  if (!i) return "";
296
276
  let a = (i.sectionId ? c(i.sectionId, i.columnIndex ?? 0) : e.content.value.blocks)?.[i.index];
297
- return a ? Ue(a, t.t, n) : "";
277
+ return a ? Je(a, t.t, n) : "";
298
278
  }
299
279
  function c(t, n) {
300
280
  return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
@@ -363,13 +343,13 @@ function jn(e, t, n = []) {
363
343
  }
364
344
  //#endregion
365
345
  //#region src/composables/useUiTheme.ts
366
- function Mn(e) {
367
- let t = Ze("(prefers-color-scheme: dark)");
346
+ function In(e) {
347
+ let t = nt("(prefers-color-scheme: dark)");
368
348
  return { resolvedTheme: b(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
369
349
  }
370
350
  //#endregion
371
351
  //#region src/composables/useThemeStyles.ts
372
- var Nn = {
352
+ var Ln = {
373
353
  bg: "--tpl-bg",
374
354
  bgElevated: "--tpl-bg-elevated",
375
355
  bgHover: "--tpl-bg-hover",
@@ -393,10 +373,10 @@ var Nn = {
393
373
  dangerLight: "--tpl-danger-light",
394
374
  canvasBg: "--tpl-canvas-bg"
395
375
  };
396
- function Pn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
376
+ function Rn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
397
377
  return { themeStyles: b(() => {
398
378
  let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
399
- if (a) for (let [e, t] of Object.entries(Nn)) {
379
+ if (a) for (let [e, t] of Object.entries(Ln)) {
400
380
  let n = a[e];
401
381
  n && (r[t] = n);
402
382
  }
@@ -405,7 +385,7 @@ function Pn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
405
385
  }
406
386
  //#endregion
407
387
  //#region src/composables/useBlockRegistry.ts
408
- function Fn() {
388
+ function zn() {
409
389
  let e = y(/* @__PURE__ */ new Map());
410
390
  function t(t, n) {
411
391
  e.value.set(t, n), C(e);
@@ -414,7 +394,7 @@ function Fn() {
414
394
  let r = `custom:${t.type}`;
415
395
  e.value.set(r, {
416
396
  component: n,
417
- createBlock: () => z(t),
397
+ createBlock: () => le(t),
418
398
  definition: t
419
399
  }), C(e);
420
400
  }
@@ -439,13 +419,13 @@ function Fn() {
439
419
  let t = a(e.customType);
440
420
  if (!t) return o("Block definition not found");
441
421
  try {
442
- let { Liquid: n } = await import("./liquid.browser-DXPjcePu.js");
422
+ let { Liquid: n } = await import("./liquid.browser-Bbt17cVz.js");
443
423
  return await new n({
444
424
  strictVariables: !1,
445
425
  strictFilters: !1
446
426
  }).parseAndRender(t.template, e.fieldValues);
447
427
  } catch (t) {
448
- return Z.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
428
+ return X.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
449
429
  }
450
430
  }
451
431
  function c(t) {
@@ -463,9 +443,9 @@ function Fn() {
463
443
  }
464
444
  //#endregion
465
445
  //#region src/composables/useCustomBlockStylesheets.ts
466
- function In(e, t) {
446
+ function Bn(e, t) {
467
447
  return b(() => {
468
- let n = Ln(e.value.blocks);
448
+ let n = Vn(e.value.blocks);
469
449
  if (n.size === 0) return [];
470
450
  let r = /* @__PURE__ */ new Set(), i = [];
471
451
  for (let e of n) {
@@ -477,81 +457,76 @@ function In(e, t) {
477
457
  return i;
478
458
  });
479
459
  }
480
- function Ln(e) {
460
+ function Vn(e) {
481
461
  let t = /* @__PURE__ */ new Set();
482
- return Rn(e, t), t;
462
+ return Hn(e, t), t;
483
463
  }
484
- function Rn(e, t) {
485
- for (let n of e) {
486
- if (de(n)) {
487
- t.add(n.customType);
488
- continue;
489
- }
490
- if (n.type === "section") {
491
- let e = n.children;
492
- if (!e) continue;
493
- for (let n of e) Rn(n, t);
494
- } else Pe(n) && Rn(n.children, t);
495
- }
464
+ function Hn(e, t) {
465
+ for (let n of e) if (Ae(n)) t.add(n.customType);
466
+ else if (n.type === "section") {
467
+ let e = n.children;
468
+ if (!e) continue;
469
+ for (let n of e) Hn(n, t);
470
+ } else Ee(n) && Hn(n.children, t);
496
471
  }
497
472
  //#endregion
498
473
  //#region src/utils/registerBuiltInBlocks.ts
499
- var zn = [
474
+ var Un = [
500
475
  {
501
476
  type: "section",
502
- createBlock: te
477
+ createBlock: B
503
478
  },
504
479
  {
505
480
  type: "title",
506
- createBlock: le
481
+ createBlock: ne
507
482
  },
508
483
  {
509
484
  type: "paragraph",
510
- createBlock: V
485
+ createBlock: Be
511
486
  },
512
487
  {
513
488
  type: "image",
514
- createBlock: ie
489
+ createBlock: oe
515
490
  },
516
491
  {
517
492
  type: "button",
518
- createBlock: ae
493
+ createBlock: se
519
494
  },
520
495
  {
521
496
  type: "divider",
522
- createBlock: Se
497
+ createBlock: te
523
498
  },
524
499
  {
525
500
  type: "video",
526
- createBlock: ee
501
+ createBlock: ae
527
502
  },
528
503
  {
529
504
  type: "social",
530
- createBlock: se
505
+ createBlock: re
531
506
  },
532
507
  {
533
508
  type: "menu",
534
- createBlock: oe
509
+ createBlock: de
535
510
  },
536
511
  {
537
512
  type: "table",
538
- createBlock: B
513
+ createBlock: he
539
514
  },
540
515
  {
541
516
  type: "spacer",
542
- createBlock: Fe
517
+ createBlock: me
543
518
  },
544
519
  {
545
520
  type: "html",
546
- createBlock: re
521
+ createBlock: ie
547
522
  },
548
523
  {
549
524
  type: "countdown",
550
- createBlock: Ce
525
+ createBlock: ce
551
526
  }
552
527
  ];
553
- function Bn(e, t) {
554
- for (let n of zn) {
528
+ function Wn(e, t) {
529
+ for (let n of Un) {
555
530
  let r = t[n.type];
556
531
  r && e.registerBuiltIn(n.type, {
557
532
  component: r,
@@ -561,33 +536,33 @@ function Bn(e, t) {
561
536
  }
562
537
  //#endregion
563
538
  //#region src/utils/resolveHtmlBlockPreview.ts
564
- function Vn(e) {
539
+ function Gn(e) {
565
540
  return typeof e == "boolean" ? e : e?.enabled ?? !1;
566
541
  }
567
542
  //#endregion
568
543
  //#region src/utils/collectOffPaletteDefaults.ts
569
- function Hn(e) {
544
+ function Kn(e) {
570
545
  return typeof e == "object" && !!e && !Array.isArray(e);
571
546
  }
572
- function Un(e, t, n) {
573
- let r = new Set(e.map((e) => Wt(e))), i = [], a = (e, t) => {
574
- for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(Wt(o)) && i.push(`${t}.${n}: ${o}`) : Hn(o) && a(o, `${t}.${n}`);
547
+ function qn(e, t, n) {
548
+ let r = new Set(e.map((e) => Z(e))), i = [], a = (e, t) => {
549
+ for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(Z(o)) && i.push(`${t}.${n}: ${o}`) : Kn(o) && a(o, `${t}.${n}`);
575
550
  }, o = t;
576
- for (let [e, t] of Object.entries(Ae)) {
551
+ for (let [e, t] of Object.entries(ue)) {
577
552
  let n = o?.[e];
578
553
  a({
579
554
  ...t,
580
- ...Hn(n) ? n : {}
555
+ ...Kn(n) ? n : {}
581
556
  }, e);
582
557
  }
583
558
  return a({
584
- ...ne,
559
+ ...z,
585
560
  ...n ?? {}
586
561
  }, "template"), i;
587
562
  }
588
563
  //#endregion
589
564
  //#region src/utils/localizedBlockDefaults.ts
590
- function Wn(e) {
565
+ function Jn(e) {
591
566
  return {
592
567
  title: { content: `<p>${e.blockDefaults.title}</p>` },
593
568
  paragraph: { content: `<p>${e.blockDefaults.paragraph}</p>` },
@@ -596,59 +571,59 @@ function Wn(e) {
596
571
  }
597
572
  //#endregion
598
573
  //#region src/i18n/index.ts
599
- var Gn = /* #__PURE__ */ Object.assign({
600
- "./locales/ca.ts": () => import("./ca-DES69VJW.js"),
601
- "./locales/de.ts": () => import("./de-MlrDhC3Y.js"),
602
- "./locales/en.ts": () => import("./en-6vJh7KCM.js"),
603
- "./locales/es.ts": () => import("./es-ewL03EaP.js"),
604
- "./locales/fr.ts": () => import("./fr-D1syuxs1.js"),
605
- "./locales/ja.ts": () => import("./ja-Dd_nytwe.js"),
606
- "./locales/nl.ts": () => import("./nl-DD1t_qxS.js"),
607
- "./locales/pt-BR.ts": () => import("./pt-BR-BmtO0R7k.js")
608
- }), Kn = /* #__PURE__ */ Object.assign({
574
+ var Yn = /* #__PURE__ */ Object.assign({
575
+ "./locales/ca.ts": () => import("./ca-C__Dzq--.js"),
576
+ "./locales/de.ts": () => import("./de-CGjbQ2mt.js"),
577
+ "./locales/en.ts": () => import("./en-BTiiAC-B.js"),
578
+ "./locales/es.ts": () => import("./es-CdTOcSTf.js"),
579
+ "./locales/fr.ts": () => import("./fr-B6lcLLzC.js"),
580
+ "./locales/ja.ts": () => import("./ja-BhdkqENz.js"),
581
+ "./locales/nl.ts": () => import("./nl-CE3YItYg.js"),
582
+ "./locales/pt-BR.ts": () => import("./pt-BR-CUIT4rq4.js")
583
+ }), Xn = /* #__PURE__ */ Object.assign({
609
584
  "./locales/cloud/de.ts": () => import("./de-mMY5yQJu.js"),
610
585
  "./locales/cloud/en.ts": () => import("./en-ChVeGQBY.js"),
611
586
  "./locales/cloud/pt-BR.ts": () => import("./pt-BR-CoCwRUi0.js")
612
587
  });
613
- function qn(e) {
588
+ function Zn(e) {
614
589
  return Object.keys(e).map((e) => e.match(/\/([^/]+)\.ts$/)?.[1]).filter((e) => !!e);
615
590
  }
616
- var Jn = qn(Gn), Yn = qn(Kn);
617
- function Xn(e) {
591
+ var Qn = Zn(Yn), $n = Zn(Xn);
592
+ function er(e) {
618
593
  return e.trim().replace(/_/g, "-").toLowerCase();
619
594
  }
620
- function Zn(e, t) {
621
- let n = Xn(e);
622
- return t.find((e) => Xn(e) === n);
595
+ function tr(e, t) {
596
+ let n = er(e);
597
+ return t.find((e) => er(e) === n);
623
598
  }
624
- function Qn(e) {
625
- return Xn(e).split("-")[0];
599
+ function nr(e) {
600
+ return er(e).split("-")[0];
626
601
  }
627
- function $n(e, t) {
628
- return Zn(e, t) ?? Zn(Qn(e), t);
602
+ function rr(e, t) {
603
+ return tr(e, t) ?? tr(nr(e), t);
629
604
  }
630
- function er(e, t) {
631
- return $n(e, t) ?? "en";
605
+ function ir(e, t) {
606
+ return rr(e, t) ?? "en";
632
607
  }
633
- async function tr(e) {
634
- let t = Gn[`./locales/${er(e, Jn)}.ts`];
608
+ async function ar(e) {
609
+ let t = Yn[`./locales/${ir(e, Qn)}.ts`];
635
610
  return (await t()).default;
636
611
  }
637
- async function nr(e) {
638
- let t = Kn[`./locales/cloud/${er(e, Yn)}.ts`];
612
+ async function or(e) {
613
+ let t = Xn[`./locales/cloud/${ir(e, $n)}.ts`];
639
614
  return (await t()).default;
640
615
  }
641
- function rr(e) {
642
- return $n(e, Jn) !== void 0;
616
+ function sr(e) {
617
+ return rr(e, Qn) !== void 0;
643
618
  }
644
- function ir(e) {
645
- return $n(e, Yn) !== void 0;
619
+ function cr(e) {
620
+ return rr(e, $n) !== void 0;
646
621
  }
647
- function ar() {
648
- return [...Jn];
622
+ function lr() {
623
+ return [...Qn];
649
624
  }
650
- function or() {
651
- return [...Yn];
625
+ function ur() {
626
+ return [...$n];
652
627
  }
653
628
  //#endregion
654
629
  //#region src/i18n/contentDefaults.ts
@@ -717,16 +692,16 @@ var $ = {
717
692
  seconds: "秒",
718
693
  expired: "このオファーは終了しました"
719
694
  }
720
- }, sr = new Map(Object.keys($).map((e) => [e.toLowerCase(), e]));
721
- function cr(e) {
695
+ }, dr = new Map(Object.keys($).map((e) => [e.toLowerCase(), e]));
696
+ function fr(e) {
722
697
  if (!e) return $.en;
723
- let t = e.trim().replace(/_/g, "-").toLowerCase(), n = sr.get(t);
698
+ let t = e.trim().replace(/_/g, "-").toLowerCase(), n = dr.get(t);
724
699
  if (n) return $[n];
725
- let r = sr.get(Qn(t));
700
+ let r = dr.get(nr(t));
726
701
  return r ? $[r] : $.en;
727
702
  }
728
- function lr(e) {
729
- let t = cr(e);
703
+ function pr(e) {
704
+ let t = fr(e);
730
705
  return {
731
706
  video: { alt: t.video },
732
707
  countdown: {
@@ -740,9 +715,9 @@ function lr(e) {
740
715
  }
741
716
  //#endregion
742
717
  //#region src/utils/collectColorFieldIssues.ts
743
- function ur(e, t) {
718
+ function mr(e, t) {
744
719
  let n = [], r = (r, i) => {
745
- let a = Ie(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
720
+ let a = Ve(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
746
721
  if (a.invalidPresets.length > 0 && n.push({
747
722
  id: s("invalid-presets"),
748
723
  message: `${o}: presets skipped invalid entries: ${a.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).` + (a.presetsInherited ? " No valid entries are left, so the field inherits colors.presets." : "")
@@ -753,8 +728,8 @@ function ur(e, t) {
753
728
  id: s("allow-custom-ignored"),
754
729
  message: `${o}: allowCustom: true is ignored because colors.allowCustom is false — a field can narrow the editor-wide palette, never unlock it.`
755
730
  }), !a.allowCustom && a.presets.length > 0) {
756
- let e = r.default ?? "", t = new Set(a.presets.map((e) => Wt(e)));
757
- e !== "" && !t.has(Wt(e)) && n.push({
731
+ let e = r.default ?? "", t = new Set(a.presets.map((e) => Z(e)));
732
+ e !== "" && !t.has(Z(e)) && n.push({
758
733
  id: s("off-palette-default"),
759
734
  message: `${o} locks custom colours, but its default ${e} falls outside the field's presets: ${a.presets.join(", ")}. New blocks start on a colour the picker can't reselect — set the default from the same palette.`
760
735
  });
@@ -766,7 +741,7 @@ function ur(e, t) {
766
741
  }
767
742
  //#endregion
768
743
  //#region src/utils/keyboardShortcuts.ts
769
- function dr(e) {
744
+ function hr(e) {
770
745
  for (let t of e.composedPath()) {
771
746
  if (!(t instanceof HTMLElement)) continue;
772
747
  if (t.isContentEditable) return !0;
@@ -775,75 +750,68 @@ function dr(e) {
775
750
  }
776
751
  return !1;
777
752
  }
778
- function fr(e, t) {
753
+ function gr(e, t) {
779
754
  let n = e.metaKey || e.ctrlKey;
780
- if (n && e.key.toLowerCase() === "s") {
781
- e.preventDefault(), t.onSave?.();
782
- return;
783
- }
784
- if (n && e.key.toLowerCase() === "z") {
785
- if (dr(e)) return;
755
+ if (n && e.key.toLowerCase() === "s") e.preventDefault(), t.onSave?.();
756
+ else if (n && e.key.toLowerCase() === "z") {
757
+ if (hr(e)) return;
786
758
  e.preventDefault(), e.shiftKey ? t.history.redo() : (t.onBeforeUndo?.(), t.history.undo());
787
- return;
788
- }
789
- if (t.isPicking?.() && !dr(e)) {
790
- if (e.key === "Escape") {
791
- e.preventDefault(), t.onCancelPick?.();
792
- return;
793
- }
794
- if (e.key === "Enter") {
795
- e.preventDefault(), t.onConfirmPick?.();
796
- return;
797
- }
798
- if (e.key === "Delete" || e.key === "Backspace") {
799
- e.preventDefault();
800
- return;
759
+ } else {
760
+ if (t.isPicking?.() && !hr(e)) {
761
+ if (e.key === "Escape") {
762
+ e.preventDefault(), t.onCancelPick?.();
763
+ return;
764
+ }
765
+ if (e.key === "Enter") {
766
+ e.preventDefault(), t.onConfirmPick?.();
767
+ return;
768
+ }
769
+ if (e.key === "Delete" || e.key === "Backspace") {
770
+ e.preventDefault();
771
+ return;
772
+ }
801
773
  }
774
+ e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !hr(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
802
775
  }
803
- if (e.key === "Escape") {
804
- t.selectBlock(null);
805
- return;
806
- }
807
- (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !dr(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
808
776
  }
809
777
  //#endregion
810
778
  //#region src/utils/blockComponentResolver.ts
811
- function pr(e) {
779
+ function _r(e) {
812
780
  let t = { fontFamily: e.fontFamily };
813
781
  return e.textColor && (t.color = e.textColor), e.linkColor && (t["--tpl-doc-link-color"] = e.linkColor), e.linkUnderline && (t["--tpl-doc-link-underline"] = "underline"), t;
814
782
  }
815
- function mr(e, t, n) {
783
+ function vr(e, t, n) {
816
784
  if (t) {
817
785
  let n = t.getComponent(e);
818
786
  if (n) return n;
819
787
  }
820
788
  return n[e.type] ?? null;
821
789
  }
822
- function hr(e) {
790
+ function yr(e) {
823
791
  if (e.type === "wrapper") return {};
824
792
  let { padding: t, backgroundColor: n } = e.styles, r = {
825
793
  padding: `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`,
826
794
  backgroundColor: n || "transparent"
827
795
  };
828
- if ((e.type === "paragraph" || e.type === "title") && (r["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? xe.paragraphGap : xe.paragraphGap}px`), e.type === "section") {
829
- let t = W(e.borderRadius);
830
- t !== null && (r.borderRadius = t), Object.assign(r, gr(e.border));
796
+ if ((e.type === "paragraph" || e.type === "title") && (r["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? Re.paragraphGap : Re.paragraphGap}px`), e.type === "section") {
797
+ let t = H(e.borderRadius);
798
+ t !== null && (r.borderRadius = t), Object.assign(r, br(e.border));
831
799
  }
832
800
  return r;
833
801
  }
834
- function gr(e) {
802
+ function br(e) {
835
803
  let t = {};
836
- for (let [n, r] of Object.entries(pe(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
804
+ for (let [n, r] of Object.entries(ee(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
837
805
  return t;
838
806
  }
839
- function _r(e) {
807
+ function xr(e) {
840
808
  if (e.type !== "section" || !e.wrapper) return null;
841
809
  let t = e.wrapper, n = {};
842
810
  t.backgroundColor && (n.backgroundColor = t.backgroundColor), t.padding && (n.padding = `${t.padding.top}px ${t.padding.right}px ${t.padding.bottom}px ${t.padding.left}px`);
843
- let r = W(t.borderRadius);
811
+ let r = H(t.borderRadius);
844
812
  return r !== null && (n.borderRadius = r), n;
845
813
  }
846
- function vr(e) {
814
+ function Sr(e) {
847
815
  if (e.type !== "wrapper") return null;
848
816
  let t = {};
849
817
  if (e.styles.backgroundColor && (t.backgroundColor = e.styles.backgroundColor), e.styles.padding) {
@@ -854,7 +822,7 @@ function vr(e) {
854
822
  }
855
823
  //#endregion
856
824
  //#region src/utils/mergeTagLabelSegments.ts
857
- function yr(e, t, n, r = !1) {
825
+ function Cr(e, t, n, r = !1) {
858
826
  if (!e) return [];
859
827
  let i = RegExp(`(${n.value.source}|${n.logic.source})`, "g"), a = [], o = 0, s;
860
828
  for (; (s = i.exec(e)) !== null;) {
@@ -863,18 +831,18 @@ function yr(e, t, n, r = !1) {
863
831
  value: e.slice(o, s.index)
864
832
  });
865
833
  let i = s[0];
866
- if (_e(i, n)) {
867
- let e = r ? Me(i, t) : void 0;
834
+ if (Ce(i, n)) {
835
+ let e = r ? Pe(i, t) : void 0;
868
836
  a.push(e === void 0 ? {
869
837
  type: "tag",
870
- value: Oe(i, t)
838
+ value: je(i, t)
871
839
  } : {
872
840
  type: "text",
873
841
  value: e
874
842
  });
875
- } else ge(i, n) ? a.push({
843
+ } else xe(i, n) ? a.push({
876
844
  type: "tag",
877
- value: me(i, n)
845
+ value: ye(i, n)
878
846
  }) : a.push({
879
847
  type: "text",
880
848
  value: i
@@ -888,20 +856,20 @@ function yr(e, t, n, r = !1) {
888
856
  }
889
857
  //#endregion
890
858
  //#region src/components/MergeTagPreviewText.vue
891
- var br = d({
859
+ var wr = d({
892
860
  name: "MergeTagPreviewText",
893
861
  props: { text: {
894
862
  type: String,
895
863
  required: !0
896
864
  } },
897
865
  setup(e) {
898
- let t = n(q, K), r = n(pt, je.liquid), i = n(J, null), a = b(() => yr(e.text, t.value, r, i?.value ?? !1));
866
+ let t = n(K, G), r = n(vt, Ne.liquid), i = n(q, null), a = b(() => Cr(e.text, t.value, r, i?.value ?? !1));
899
867
  return () => a.value.map((e, t) => e.type === "tag" ? I("span", {
900
868
  key: t,
901
869
  class: "tpl-merge-tag-label"
902
870
  }, e.value) : e.value);
903
871
  }
904
- }), xr = ["href"], Sr = /* @__PURE__ */ d({
872
+ }), Tr = ["href"], Er = /* @__PURE__ */ d({
905
873
  __name: "ButtonBlock",
906
874
  props: {
907
875
  block: {},
@@ -917,23 +885,23 @@ var br = d({
917
885
  fontSize: `${t.block.fontSize}px`,
918
886
  fontWeight: "bold",
919
887
  textDecoration: "none",
920
- borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : W(t.block.borderRadius) ?? "0px",
888
+ borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : H(t.block.borderRadius) ?? "0px",
921
889
  textAlign: "center"
922
890
  };
923
- return Object.assign(e, gr(t.block.border)), t.block.fontFamily && (e.fontFamily = t.block.fontFamily), t.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof t.block.width == "number" && (e.width = `${t.block.width}px`, e.boxSizing = "border-box"), e;
891
+ return Object.assign(e, br(t.block.border)), t.block.fontFamily && (e.fontFamily = t.block.fontFamily), t.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof t.block.width == "number" && (e.width = `${t.block.width}px`, e.boxSizing = "border-box"), e;
924
892
  }), r = b(() => ({ textAlign: t.block.align ?? "center" }));
925
893
  return (t, i) => (s(), x("div", { style: D(r.value) }, [k("a", {
926
894
  href: e.block.url || "#",
927
895
  style: D(n.value),
928
896
  class: "tpl:cursor-default",
929
897
  onClick: i[0] ||= E(() => {}, ["prevent"])
930
- }, [g(br, { text: e.block.text }, null, 8, ["text"])], 12, xr)], 4));
898
+ }, [g(wr, { text: e.block.text }, null, 8, ["text"])], 12, Tr)], 4));
931
899
  }
932
- }), Cr = ["innerHTML"], wr = [
900
+ }), Dr = ["innerHTML"], Or = [
933
901
  "src",
934
902
  "width",
935
903
  "height"
936
- ], Tr = /* @__PURE__ */ d({
904
+ ], kr = /* @__PURE__ */ d({
937
905
  __name: "CustomBlockIcon",
938
906
  props: {
939
907
  icon: {},
@@ -949,24 +917,24 @@ var br = d({
949
917
  height: `${n.value}px`
950
918
  }),
951
919
  innerHTML: e.icon
952
- }, null, 12, Cr)) : i.value ? (s(), x("img", {
920
+ }, null, 12, Dr)) : i.value ? (s(), x("img", {
953
921
  key: 1,
954
922
  src: e.icon,
955
923
  width: n.value,
956
924
  height: n.value,
957
925
  class: "tpl:inline-block",
958
926
  alt: ""
959
- }, null, 8, wr)) : (s(), O(h(Yt), {
927
+ }, null, 8, Or)) : (s(), O(h($t), {
960
928
  key: 2,
961
929
  size: n.value,
962
930
  "stroke-width": 1.5
963
931
  }, null, 8, ["size"]));
964
932
  }
965
- }), Er = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
966
- function Dr(e, n) {
967
- let r = gn(), i = null, a = null, o = null;
933
+ }), Ar = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
934
+ function jr(e, n) {
935
+ let r = bn(), i = null, a = null, o = null;
968
936
  function s() {
969
- return e.value ? Array.from(e.value.querySelectorAll(Er)).filter((e) => e.offsetParent !== null) : [];
937
+ return e.value ? Array.from(e.value.querySelectorAll(Ar)).filter((e) => e.offsetParent !== null) : [];
970
938
  }
971
939
  function c(e) {
972
940
  if (e.key !== "Tab") return;
@@ -981,7 +949,7 @@ function Dr(e, n) {
981
949
  o = null;
982
950
  let t = s();
983
951
  t.length > 0 && (e.value?.querySelector("[autofocus], input:not([disabled])") ?? t[0]).focus();
984
- }), a = G(e, "keydown", c);
952
+ }), a = W(e, "keydown", c);
985
953
  }
986
954
  function u(e = {}) {
987
955
  let t = e.restoreFocus !== !1;
@@ -996,8 +964,8 @@ function Dr(e, n) {
996
964
  }
997
965
  //#endregion
998
966
  //#region src/composables/useEmoji.ts
999
- function Or() {
1000
- let [e, n] = Ye(!1), r = y([]), i = !1;
967
+ function Mr() {
968
+ let [e, n] = et(!1), r = y([]), i = !1;
1001
969
  m(() => {
1002
970
  i = !0;
1003
971
  }), t(e, async (e) => {
@@ -1022,7 +990,7 @@ function Or() {
1022
990
  }
1023
991
  //#endregion
1024
992
  //#region src/composables/useFonts.ts
1025
- var kr = [
993
+ var Nr = [
1026
994
  {
1027
995
  value: "Arial",
1028
996
  label: "Arial"
@@ -1051,31 +1019,19 @@ var kr = [
1051
1019
  value: "Courier New",
1052
1020
  label: "Courier New"
1053
1021
  }
1054
- ], Ar = {
1055
- arial: "Arial, sans-serif",
1056
- helvetica: "Helvetica, sans-serif",
1057
- georgia: "Georgia, serif",
1058
- "times new roman": "'Times New Roman', serif",
1059
- verdana: "Verdana, sans-serif",
1060
- "trebuchet ms": "'Trebuchet MS', sans-serif",
1061
- "courier new": "'Courier New', monospace"
1062
- }, jr = "Arial, sans-serif";
1063
- function Mr(e) {
1064
- if (e === void 0 || e === !0) return [...kr];
1022
+ ], Pr = "Arial, sans-serif";
1023
+ function Fr(e) {
1024
+ if (e === void 0 || e === !0) return [...Nr];
1065
1025
  if (e === !1) return [];
1066
1026
  let t = [], n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
1067
1027
  for (let i of e) {
1068
- let e = i.toLowerCase(), a = kr.find((t) => t.value.toLowerCase() === e);
1069
- if (!a) {
1070
- r.has(e) || (r.add(e), Z.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${kr.map((e) => e.value).join(", ")}.`));
1071
- continue;
1072
- }
1073
- n.has(a.value) || (n.add(a.value), t.push(a));
1028
+ let e = i.toLowerCase(), a = Nr.find((t) => t.value.toLowerCase() === e);
1029
+ a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), X.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${Nr.map((e) => e.value).join(", ")}.`));
1074
1030
  }
1075
1031
  return t;
1076
1032
  }
1077
- function Nr(e) {
1078
- let t = l(e?.customFonts ?? []), n = l(!1), r = Mr(e?.builtIns), i = b(() => e?.defaultFallback ?? jr), a = b(() => {
1033
+ function Ir(e) {
1034
+ let t = l(e?.customFonts ?? []), n = l(!1), r = Fr(e?.builtIns), i = b(() => e?.defaultFallback ?? Pr), a = b(() => {
1079
1035
  let e = [...r], n = t.value.map((e) => ({
1080
1036
  value: e.name,
1081
1037
  label: e.name,
@@ -1086,20 +1042,20 @@ function Nr(e) {
1086
1042
  function s(e) {
1087
1043
  return a.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
1088
1044
  }
1089
- let c = e?.defaultFont ?? jr.split(",")[0].trim();
1090
- s(c) || Z.warn(`config.fonts: new templates seed "${c}", which the font picker doesn't offer — authors can't reselect it. Either add it to fonts.builtIns, or set fonts.defaultFont to an offered font.`);
1045
+ let c = e?.defaultFont ?? Pr.split(",")[0].trim();
1046
+ s(c) || X.warn(`config.fonts: new templates seed "${c}", which the font picker doesn't offer — authors can't reselect it. Either add it to fonts.builtIns, or set fonts.defaultFont to an offered font.`);
1091
1047
  function u() {
1092
1048
  if (e?.defaultFont && s(e.defaultFont)) {
1093
1049
  let t = a.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
1094
1050
  if (t) return t.value;
1095
1051
  }
1096
- return jr;
1052
+ return Pr;
1097
1053
  }
1098
1054
  let d = b(() => u());
1099
1055
  function f(e) {
1100
1056
  if (!e) return i.value;
1101
1057
  let n = t.value.find((t) => t.name.toLowerCase() === e.toLowerCase());
1102
- return n ? `'${n.name}', ${n.fallback ?? i.value}` : Ar[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${i.value}`);
1058
+ return n ? `'${n.name}', ${n.fallback ?? i.value}` : Ie[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${i.value}`);
1103
1059
  }
1104
1060
  let p = [], h = !1;
1105
1061
  async function g() {
@@ -1115,7 +1071,7 @@ function Nr(e) {
1115
1071
  t.onload = () => n(), t.onerror = () => r(/* @__PURE__ */ Error(`Failed to load font: ${e.name}`)), document.head.appendChild(t);
1116
1072
  });
1117
1073
  } catch (t) {
1118
- Z.warn(`Failed to load custom font "${e.name}":`, t);
1074
+ X.warn(`Failed to load custom font "${e.name}":`, t);
1119
1075
  }
1120
1076
  });
1121
1077
  await Promise.allSettled(e), !h && (n.value = !0);
@@ -1140,12 +1096,12 @@ function Nr(e) {
1140
1096
  }
1141
1097
  //#endregion
1142
1098
  //#region src/utils/mergeTagNodeSpec.ts
1143
- function Pr(e, t, n) {
1144
- return ge(e, n) ? {
1099
+ function Lr(e, t, n) {
1100
+ return xe(e, n) ? {
1145
1101
  type: "logicMergeTagNode",
1146
1102
  attrs: {
1147
1103
  value: e,
1148
- keyword: me(e, n)
1104
+ keyword: ye(e, n)
1149
1105
  }
1150
1106
  } : {
1151
1107
  type: "mergeTagNode",
@@ -1157,37 +1113,33 @@ function Pr(e, t, n) {
1157
1113
  }
1158
1114
  //#endregion
1159
1115
  //#region src/utils/insertLogicTag.ts
1160
- function Fr(e) {
1116
+ function Rr(e) {
1161
1117
  return "before" in e && "after" in e;
1162
1118
  }
1163
- function Ir(e, t, n) {
1164
- if (!Fr(t)) {
1165
- e.chain().focus().insertContent(Pr(t.value, t.label, n)).run();
1166
- return;
1167
- }
1168
- let r = Pr(t.before, t.label, n), i = Pr(t.after, t.label, n), { from: a, to: o } = e.state.selection;
1169
- if (a !== o) {
1170
- e.chain().focus().insertContentAt(o, i).insertContentAt(a, r).run();
1119
+ function zr(e, t, n) {
1120
+ if (!Rr(t)) {
1121
+ e.chain().focus().insertContent(Lr(t.value, t.label, n)).run();
1171
1122
  return;
1172
1123
  }
1173
- e.chain().focus().insertContentAt(a, [r, i]).setTextSelection(a + 1).run();
1124
+ let r = Lr(t.before, t.label, n), i = Lr(t.after, t.label, n), { from: a, to: o } = e.state.selection;
1125
+ a === o ? e.chain().focus().insertContentAt(a, [r, i]).setTextSelection(a + 1).run() : e.chain().focus().insertContentAt(o, i).insertContentAt(a, r).run();
1174
1126
  }
1175
1127
  //#endregion
1176
1128
  //#region src/utils/linkColorExtension.ts
1177
- function Lr(e) {
1129
+ function Br(e) {
1178
1130
  if (!e) return null;
1179
1131
  let t = e.trim();
1180
1132
  return /^#[0-9a-f]{3,8}$/i.test(t) || /^(rgb|rgba|hsl|hsla)\(\s*[0-9.,%/\s]+\)$/i.test(t) || /^[a-z]+$/i.test(t) ? t : null;
1181
1133
  }
1182
- function Rr(e) {
1134
+ function Vr(e) {
1183
1135
  return e.extend({ addAttributes() {
1184
1136
  return {
1185
1137
  ...this.parent?.(),
1186
1138
  color: {
1187
1139
  default: null,
1188
- parseHTML: (e) => Lr(Ut(e.style.color)),
1140
+ parseHTML: (e) => Br(Jt(e.style.color)),
1189
1141
  renderHTML: (e) => {
1190
- let t = Lr(e.color);
1142
+ let t = Br(e.color);
1191
1143
  return t ? { style: `color: ${t}` } : {};
1192
1144
  }
1193
1145
  }
@@ -1196,22 +1148,22 @@ function Rr(e) {
1196
1148
  }
1197
1149
  //#endregion
1198
1150
  //#region src/composables/useRichTextLinkDialog.ts
1199
- function zr(e, t = je.liquid) {
1151
+ function Hr(e, t = Ne.liquid) {
1200
1152
  let n = l(!1), r = l(""), i = l(""), a = l(null);
1201
- Dr(a, n);
1153
+ jr(a, n);
1202
1154
  function o() {
1203
1155
  let t = e.value?.getAttributes("link") ?? {};
1204
1156
  r.value = t.href || "", i.value = t.color || "", n.value = !0;
1205
1157
  }
1206
1158
  function s() {
1207
1159
  if (r.value) {
1208
- let t = d(r.value);
1160
+ let t = f(r.value);
1209
1161
  if (t !== null) {
1210
- let n = Lr(i.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
1162
+ let n = Br(i.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
1211
1163
  n && typeof e.value?.commands.unsetColor == "function" && r?.unsetColor(), r?.run();
1212
1164
  }
1213
1165
  }
1214
- p();
1166
+ m();
1215
1167
  }
1216
1168
  let c = /* @__PURE__ */ new Set([
1217
1169
  "http",
@@ -1223,25 +1175,27 @@ function zr(e, t = je.liquid) {
1223
1175
  "sms",
1224
1176
  "xmpp",
1225
1177
  "cid"
1226
- ]);
1227
- function u(e) {
1178
+ ]), u = /^(?:\/|\.{1,2}\/|\?)/;
1179
+ function d(e) {
1228
1180
  return RegExp(`^(?:${t.value.source})`).test(e);
1229
1181
  }
1230
- function d(e) {
1182
+ function f(e) {
1231
1183
  let t = e.trim();
1232
1184
  if (!t) return null;
1233
1185
  if (t.startsWith("#")) return t;
1186
+ if (t.startsWith("//")) return `https:${t}`;
1187
+ if (u.test(t)) return t;
1234
1188
  let n = /^([a-z][a-z0-9+.-]*):/i.exec(t);
1235
- return n ? c.has(n[1].toLowerCase()) ? t : null : u(t) ? t : `https://${t}`;
1236
- }
1237
- function f() {
1238
- e.value?.chain().focus().extendMarkRange("link").unsetLink().run(), p();
1189
+ return n ? c.has(n[1].toLowerCase()) ? t : null : d(t) ? t : `https://${t}`;
1239
1190
  }
1240
1191
  function p() {
1192
+ e.value?.chain().focus().extendMarkRange("link").unsetLink().run(), m();
1193
+ }
1194
+ function m() {
1241
1195
  n.value = !1, r.value = "", i.value = "";
1242
1196
  }
1243
- function m(e) {
1244
- e.key === "Enter" ? (e.preventDefault(), s()) : e.key === "Escape" && p();
1197
+ function h(e) {
1198
+ e.key === "Enter" ? (e.preventDefault(), s()) : e.key === "Escape" && m();
1245
1199
  }
1246
1200
  return {
1247
1201
  showLinkDialog: n,
@@ -1250,21 +1204,21 @@ function zr(e, t = je.liquid) {
1250
1204
  linkDialogRef: a,
1251
1205
  openLinkDialog: o,
1252
1206
  insertLink: s,
1253
- removeLink: f,
1254
- closeLinkDialog: p,
1255
- handleLinkKeydown: m
1207
+ removeLink: p,
1208
+ closeLinkDialog: m,
1209
+ handleLinkKeydown: h
1256
1210
  };
1257
1211
  }
1258
1212
  //#endregion
1259
1213
  //#region src/composables/useRichTextEditor.ts
1260
- function Br(r) {
1261
- let i = n(Y, null), { mergeTags: a, canRequestMergeTag: o, isRequesting: s, requestMergeTag: c, syntax: u, autocomplete: d } = _n(), { canInsertLogicTag: f, isRequesting: p, requestLogicTag: m } = vn(), h = n(yt, null), g = (A(h) ? h.value : h)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", _ = we(u), v = y(null), b = () => H(i?.content?.value?.settings ?? { locale: "en" });
1214
+ function Ur(r) {
1215
+ let i = n(J, null), { mergeTags: a, canRequestMergeTag: o, isRequesting: s, requestMergeTag: c, syntax: u, autocomplete: d } = xn(), { canInsertLogicTag: f, isRequesting: p, requestLogicTag: m } = Sn(), h = n(wt, null), g = (A(h) ? h.value : h)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", _ = De(u), v = y(null), b = () => ge(i?.content?.value?.settings ?? { locale: "en" });
1262
1216
  t(b, (e) => {
1263
1217
  let t = v.value?.view.dom;
1264
1218
  t && t.setAttribute("dir", e);
1265
1219
  });
1266
- let { showLinkDialog: x, linkUrl: S, linkColor: C, linkDialogRef: w, openLinkDialog: T, insertLink: E, removeLink: D, closeLinkDialog: O, handleLinkKeydown: k } = zr(v, u), { start: j, stop: M } = qe(() => v.value?.commands.focus("end"), 0, { immediate: !1 }), N = y(null), P = l(!0), F = l(null), I = !1;
1267
- async function L() {
1220
+ let { showLinkDialog: x, linkUrl: S, linkColor: C, linkDialogRef: w, openLinkDialog: T, insertLink: E, removeLink: D, closeLinkDialog: O, handleLinkKeydown: k } = Hr(v, u), { start: j, stop: M } = Qe(() => v.value?.commands.focus("end"), 0, { immediate: !1 }), N = y(null), P = l(!0), F = l(null), I = !1, L = null;
1221
+ async function R() {
1268
1222
  F.value = null, P.value = !0;
1269
1223
  try {
1270
1224
  let { TiptapEditor: e, EC: t, extensions: n } = await r.loadExtensions({
@@ -1284,7 +1238,7 @@ function Br(r) {
1284
1238
  editable: !0,
1285
1239
  editorProps: { attributes: { dir: b() } },
1286
1240
  onUpdate: ({ editor: e }) => {
1287
- I || i && i.updateBlock(r.blockId(), { content: e.getHTML() });
1241
+ I || i && (L = e.getHTML(), i.updateBlock(r.blockId(), { content: L }));
1288
1242
  }
1289
1243
  });
1290
1244
  if (I) {
@@ -1294,17 +1248,17 @@ function Br(r) {
1294
1248
  v.value = s, P.value = !1, j();
1295
1249
  } catch (e) {
1296
1250
  if (I) return;
1297
- Z.error(`[${r.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, e), F.value = e instanceof Error ? e.message : "Failed to load editor", P.value = !1;
1251
+ X.error(`[${r.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, e), F.value = e instanceof Error ? e.message : "Failed to load editor", P.value = !1;
1298
1252
  }
1299
1253
  }
1300
- function R() {
1301
- v.value?.destroy(), v.value = null, L();
1254
+ function z() {
1255
+ v.value?.destroy(), v.value = null, R();
1302
1256
  }
1303
- L();
1304
- let z = t(() => r.blockContent(), (e) => {
1305
- v.value && v.value.getHTML() !== e && v.value.commands.setContent(e, { emitUpdate: !1 });
1257
+ R();
1258
+ let B = t(() => r.blockContent(), (e) => {
1259
+ v.value && e !== L && (L = e, v.value.getHTML() !== e && v.value.commands.setContent(e, { emitUpdate: !1 }));
1306
1260
  });
1307
- function B(e) {
1261
+ function V(e) {
1308
1262
  if (s.value || p.value) return;
1309
1263
  let t = e.composedPath(), n = t.find((e) => e instanceof HTMLElement);
1310
1264
  if (!n) return;
@@ -1312,10 +1266,10 @@ function Br(r) {
1312
1266
  let i = t.some((e) => e instanceof HTMLElement && e.classList.contains("tpl-color-popover"));
1313
1267
  n.closest(".tpl-text-editor-wrapper") || n.closest(".tpl-text-toolbar") || n.closest(".tpl-link-dialog") || i || r.onDone();
1314
1268
  }
1315
- G(document, "mousedown", B), e(() => {
1316
- I = !0, z(), M(), v.value?.destroy();
1269
+ W(document, "mousedown", V), e(() => {
1270
+ I = !0, B(), M(), v.value?.destroy();
1317
1271
  });
1318
- async function V() {
1272
+ async function H() {
1319
1273
  let e = await c();
1320
1274
  I || (e && v.value ? v.value.chain().focus().insertMergeTag({
1321
1275
  label: e.label,
@@ -1324,14 +1278,14 @@ function Br(r) {
1324
1278
  }
1325
1279
  async function ee() {
1326
1280
  let e = await m();
1327
- I || (e && v.value ? Ir(v.value, e, u) : v.value?.commands.focus());
1281
+ I || (e && v.value ? zr(v.value, e, u) : v.value?.commands.focus());
1328
1282
  }
1329
1283
  return {
1330
1284
  editor: v,
1331
1285
  EditorContent: N,
1332
1286
  isLoading: P,
1333
1287
  initError: F,
1334
- retry: R,
1288
+ retry: z,
1335
1289
  showLinkDialog: x,
1336
1290
  linkUrl: S,
1337
1291
  linkColor: C,
@@ -1347,15 +1301,15 @@ function Br(r) {
1347
1301
  removeLink: D,
1348
1302
  closeLinkDialog: O,
1349
1303
  handleLinkKeydown: k,
1350
- handleAddMergeTag: V,
1304
+ handleAddMergeTag: H,
1351
1305
  handleAddLogicTag: ee
1352
1306
  };
1353
1307
  }
1354
1308
  //#endregion
1355
1309
  //#region src/composables/useSmallScreenNotice.ts
1356
- var Vr = "(max-width: 767px)";
1357
- function Hr(e) {
1358
- let t = Ze(Vr);
1310
+ var Wr = "(max-width: 767px)";
1311
+ function Gr(e) {
1312
+ let t = nt(Wr);
1359
1313
  return {
1360
1314
  isSmallScreen: t,
1361
1315
  showNotice: b(() => (j(e) ?? !0) && t.value)
@@ -1363,20 +1317,20 @@ function Hr(e) {
1363
1317
  }
1364
1318
  //#endregion
1365
1319
  //#region src/components/blocks/CustomBlock.vue?vue&type=script&setup=true&lang.ts
1366
- var Ur = { class: "tpl:w-full" }, Wr = {
1320
+ var Kr = { class: "tpl:w-full" }, qr = {
1367
1321
  key: 0,
1368
1322
  class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-warning)] tpl:bg-[var(--tpl-warning-light)]"
1369
- }, Gr = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Kr = {
1323
+ }, Jr = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Yr = {
1370
1324
  key: 1,
1371
1325
  class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-danger)] tpl:bg-[var(--tpl-danger-light)]"
1372
- }, qr = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Jr = {
1326
+ }, Xr = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Zr = {
1373
1327
  key: 2,
1374
1328
  class: "tpl:relative"
1375
- }, Yr = ["innerHTML"], Xr = {
1329
+ }, Qr = ["innerHTML"], $r = {
1376
1330
  key: 0,
1377
1331
  class: "tpl:absolute tpl:inset-0 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:rounded tpl:backdrop-blur-[2px]",
1378
1332
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
1379
- }, Zr = /* @__PURE__ */ d({
1333
+ }, ei = /* @__PURE__ */ d({
1380
1334
  __name: "CustomBlock",
1381
1335
  props: {
1382
1336
  block: {},
@@ -1384,7 +1338,7 @@ var Ur = { class: "tpl:w-full" }, Wr = {
1384
1338
  },
1385
1339
  emits: ["fetchData"],
1386
1340
  setup(e, { emit: r }) {
1387
- let i = e, a = r, { t: o } = X(), c = n(Lt, null), u = l(""), d = l(!1), f = b(() => c?.getDefinition(i.block.customType)), p = b(() => !!f.value), m = b(() => i.block), { isFetching: _, fetch: v, needsFetch: y, hasDataSource: C } = ze({
1341
+ let i = e, a = r, { t: o } = Y(), c = n(Ht, null), u = l(""), d = l(!1), f = b(() => c?.getDefinition(i.block.customType)), p = b(() => !!f.value), m = b(() => i.block), { isFetching: _, fetch: v, needsFetch: y, hasDataSource: C } = We({
1388
1342
  definition: f,
1389
1343
  block: m,
1390
1344
  onUpdate: (e, t) => {
@@ -1393,10 +1347,10 @@ var Ur = { class: "tpl:w-full" }, Wr = {
1393
1347
  dataSourceFetched: t
1394
1348
  });
1395
1349
  }
1396
- }), T = n(q, K), D = n(J, null), A = b(() => {
1350
+ }), T = n(K, G), D = n(q, null), A = b(() => {
1397
1351
  if (!D?.value) return i.block;
1398
1352
  let e = {};
1399
- for (let [t, n] of Object.entries(i.block.fieldValues)) e[t] = typeof n == "string" ? fe(n, T.value) : n;
1353
+ for (let [t, n] of Object.entries(i.block.fieldValues)) e[t] = typeof n == "string" ? ve(n, T.value) : n;
1400
1354
  return {
1401
1355
  ...i.block,
1402
1356
  fieldValues: e
@@ -1413,17 +1367,17 @@ var Ur = { class: "tpl:w-full" }, Wr = {
1413
1367
  }
1414
1368
  }
1415
1369
  }
1416
- let M = Je(j, 150);
1370
+ let M = $e(j, 150);
1417
1371
  return w(() => {
1418
1372
  j();
1419
1373
  }), t(() => i.block.fieldValues, () => {
1420
1374
  M();
1421
1375
  }, { deep: !0 }), t(() => D?.value, () => {
1422
1376
  M();
1423
- }), (e, t) => (s(), x("div", Ur, [p.value ? d.value ? (s(), x("div", Kr, [g(h(nn), {
1377
+ }), (e, t) => (s(), x("div", Kr, [p.value ? d.value ? (s(), x("div", Yr, [g(h(sn), {
1424
1378
  size: 24,
1425
1379
  class: "tpl:text-[var(--tpl-danger)]"
1426
- }), k("span", qr, F(h(o).customBlocks.renderError), 1)])) : (s(), x("div", Jr, [k("div", { innerHTML: u.value }, null, 8, Yr), h(C) && h(y) ? (s(), x("div", Xr, [h(_) ? (s(), O(mn, {
1380
+ }), k("span", Xr, F(h(o).customBlocks.renderError), 1)])) : (s(), x("div", Zr, [k("div", { innerHTML: u.value }, null, 8, Qr), h(C) && h(y) ? (s(), x("div", $r, [h(_) ? (s(), O(vn, {
1427
1381
  key: 1,
1428
1382
  class: "tpl:w-48"
1429
1383
  })) : (s(), x("button", {
@@ -1431,16 +1385,16 @@ var Ur = { class: "tpl:w-full" }, Wr = {
1431
1385
  type: "button",
1432
1386
  class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2 tpl:text-sm tpl:font-semibold tpl:shadow-[var(--tpl-shadow)] tpl:transition-all tpl:hover:border-[var(--tpl-primary)] tpl:hover:shadow-[var(--tpl-shadow-md)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
1433
1387
  onClick: t[0] ||= E((...e) => h(v) && h(v)(...e), ["stop"])
1434
- }, [f.value?.icon ? (s(), O(Tr, {
1388
+ }, [f.value?.icon ? (s(), O(kr, {
1435
1389
  key: 0,
1436
1390
  icon: f.value.icon,
1437
1391
  size: 16
1438
- }, null, 8, ["icon"])) : S("", !0), R(" " + F(f.value?.dataSource?.label || h(o).customBlocks.dataSource.fetchButton), 1)]))])) : S("", !0)])) : (s(), x("div", Wr, [g(h(Qt), {
1392
+ }, null, 8, ["icon"])) : S("", !0), R(" " + F(f.value?.dataSource?.label || h(o).customBlocks.dataSource.fetchButton), 1)]))])) : S("", !0)])) : (s(), x("div", qr, [g(h(nn), {
1439
1393
  size: 24,
1440
1394
  class: "tpl:text-[var(--tpl-warning)]"
1441
- }), k("span", Gr, F(h(o).customBlocks.definitionNotFound), 1)]))]));
1395
+ }), k("span", Jr, F(h(o).customBlocks.definitionNotFound), 1)]))]));
1442
1396
  }
1443
- }), Qr = { class: "tpl:w-full" }, $r = /* @__PURE__ */ d({
1397
+ }), ti = { class: "tpl:w-full" }, ni = /* @__PURE__ */ d({
1444
1398
  __name: "DividerBlock",
1445
1399
  props: {
1446
1400
  block: {},
@@ -1452,28 +1406,28 @@ var Ur = { class: "tpl:w-full" }, Wr = {
1452
1406
  width: t.block.width === "full" ? "100%" : typeof t.block.width == "number" ? `${t.block.width}px` : t.block.width,
1453
1407
  margin: t.block.width === "full" ? "0" : "0 auto"
1454
1408
  }));
1455
- return (e, t) => (s(), x("div", Qr, [k("hr", {
1409
+ return (e, t) => (s(), x("div", ti, [k("hr", {
1456
1410
  class: "tpl:m-0 tpl:border-none",
1457
1411
  style: D(n.value)
1458
1412
  }, null, 4)]));
1459
1413
  }
1460
- }), ei = { class: "tpl:w-full" }, ti = ["srcdoc", "title"], ni = {
1414
+ }), ri = { class: "tpl:w-full" }, ii = ["srcdoc", "title"], ai = {
1461
1415
  key: 1,
1462
1416
  class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)]"
1463
- }, ri = {
1417
+ }, oi = {
1464
1418
  key: 0,
1465
1419
  class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
1466
- }, ii = {
1420
+ }, si = {
1467
1421
  key: 1,
1468
1422
  class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
1469
- }, ai = /* @__PURE__ */ d({
1423
+ }, ci = /* @__PURE__ */ d({
1470
1424
  __name: "HtmlBlock",
1471
1425
  props: {
1472
1426
  block: {},
1473
1427
  viewport: {}
1474
1428
  },
1475
1429
  setup(r) {
1476
- let i = r, { t: a } = X(), o = n(Ct, !1), c = b(() => i.block.content.trim().length > 0), u = b(() => o && c.value), d = n(q, K), f = n(J, null), p = b(() => f?.value ? fe(i.block.content, d.value) : i.block.content), m = l(null), _ = l(60), v = null;
1430
+ let i = r, { t: a } = Y(), o = n(Ot, !1), c = b(() => i.block.content.trim().length > 0), u = b(() => o && c.value), d = n(K, G), f = n(q, null), p = b(() => f?.value ? ve(i.block.content, d.value) : i.block.content), m = l(null), _ = l(60), v = null;
1477
1431
  function y() {
1478
1432
  let e = m.value?.contentDocument;
1479
1433
  e && (_.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
@@ -1487,7 +1441,7 @@ var Ur = { class: "tpl:w-full" }, Wr = {
1487
1441
  e || (v?.disconnect(), v = null);
1488
1442
  }), e(() => {
1489
1443
  v?.disconnect(), v = null;
1490
- }), (e, t) => (s(), x("div", ei, [u.value ? (s(), x("iframe", {
1444
+ }), (e, t) => (s(), x("div", ri, [u.value ? (s(), x("iframe", {
1491
1445
  key: 0,
1492
1446
  ref_key: "iframeRef",
1493
1447
  ref: m,
@@ -1497,22 +1451,22 @@ var Ur = { class: "tpl:w-full" }, Wr = {
1497
1451
  class: "tpl:block tpl:w-full tpl:border-0",
1498
1452
  style: D({ height: `${_.value}px` }),
1499
1453
  onLoad: S
1500
- }, null, 44, ti)) : (s(), x("div", ni, [g(h(sn), {
1454
+ }, null, 44, ii)) : (s(), x("div", ai, [g(h(dn), {
1501
1455
  size: 24,
1502
1456
  class: "tpl:text-[var(--tpl-text-dim)]"
1503
- }), c.value ? (s(), x("span", ri, F(h(a).html.preview), 1)) : (s(), x("span", ii, F(h(a).html.empty), 1))]))]));
1457
+ }), c.value ? (s(), x("span", oi, F(h(a).html.preview), 1)) : (s(), x("span", si, F(h(a).html.empty), 1))]))]));
1504
1458
  }
1505
- }), oi = ["data-drop-enabled"], si = {
1459
+ }), li = ["data-drop-enabled"], ui = {
1506
1460
  key: 0,
1507
1461
  class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-10 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-xs tpl:font-medium tpl:border-[var(--tpl-primary)] tpl:text-[var(--tpl-primary)]",
1508
1462
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 85%, transparent)" }
1509
- }, ci = ["href"], li = ["src", "alt"], ui = ["src", "alt"], di = {
1463
+ }, di = ["href"], fi = ["src", "alt"], pi = ["src", "alt"], mi = {
1510
1464
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
1511
1465
  style: { opacity: "0.7" }
1512
- }, fi = ["href"], pi = ["src", "alt"], mi = ["src", "alt"], hi = {
1466
+ }, hi = ["href"], gi = ["src", "alt"], _i = ["src", "alt"], vi = {
1513
1467
  key: 4,
1514
1468
  class: "tpl:flex tpl:min-h-[100px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
1515
- }, gi = ["aria-label"], _i = { key: 1 }, vi = /* @__PURE__ */ d({
1469
+ }, yi = ["aria-label"], bi = { key: 1 }, xi = /* @__PURE__ */ d({
1516
1470
  __name: "ImageBlock",
1517
1471
  props: {
1518
1472
  block: {},
@@ -1520,7 +1474,7 @@ var Ur = { class: "tpl:w-full" }, Wr = {
1520
1474
  },
1521
1475
  emits: ["update"],
1522
1476
  setup(e, { emit: t }) {
1523
- let r = e, i = t, { t: a } = X(), { syntax: o } = _n(), c = n(ut, null), u = n(wt, null), d = b(() => !!c), f = yn();
1477
+ let r = e, i = t, { t: a } = Y(), { syntax: o } = xn(), c = n(ht, null), u = n(kt, null), d = b(() => !!c), f = Cn();
1524
1478
  async function p() {
1525
1479
  let e = await c?.({ accept: ["images"] });
1526
1480
  if (f.alive && e) {
@@ -1547,12 +1501,12 @@ var Ur = { class: "tpl:w-full" }, Wr = {
1547
1501
  }
1548
1502
  }
1549
1503
  }
1550
- let { isOver: C } = Be({
1504
+ let { isOver: C } = Ge({
1551
1505
  target: m,
1552
1506
  enabled: v,
1553
1507
  onFiles: y
1554
1508
  }), w = b(() => ({ textAlign: r.block.align })), T = b(() => {
1555
- let e = r.block.border, t = ["left", "right"].map((t) => ye(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
1509
+ let e = r.block.border, t = ["left", "right"].map((t) => pe(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
1556
1510
  return t > 0 ? `calc(100% - ${t}px)` : "100%";
1557
1511
  }), O = b(() => {
1558
1512
  let e = r.block.align;
@@ -1560,13 +1514,13 @@ var Ur = { class: "tpl:w-full" }, Wr = {
1560
1514
  maxWidth: "100%",
1561
1515
  width: r.block.width === "full" ? T.value : `${r.block.width}px`,
1562
1516
  height: r.block.height ? `${r.block.height}px` : void 0,
1563
- borderRadius: W(r.block.borderRadius) ?? void 0,
1564
- ...gr(r.block.border),
1517
+ borderRadius: H(r.block.borderRadius) ?? void 0,
1518
+ ...br(r.block.border),
1565
1519
  display: "block",
1566
1520
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
1567
1521
  marginRight: e === "center" ? "auto" : void 0
1568
1522
  };
1569
- }), A = b(() => U(r.block.src, o)), j = En(() => A.value ? void 0 : r.block.src), M = En(() => A.value ? r.block.placeholderUrl : void 0);
1523
+ }), A = b(() => U(r.block.src, o)), j = An(() => A.value ? void 0 : r.block.src), M = An(() => A.value ? r.block.placeholderUrl : void 0);
1570
1524
  return (t, n) => (s(), x("div", {
1571
1525
  ref_key: "dropZoneRef",
1572
1526
  ref: m,
@@ -1574,11 +1528,11 @@ var Ur = { class: "tpl:w-full" }, Wr = {
1574
1528
  "data-drop-enabled": v.value,
1575
1529
  class: "tpl:relative tpl:w-full",
1576
1530
  style: D(w.value)
1577
- }, [v.value && (h(C) || _.value) ? (s(), x("div", si, [_.value ? (s(), x(P, { key: 0 }, [g(h(tn), {
1531
+ }, [v.value && (h(C) || _.value) ? (s(), x("div", ui, [_.value ? (s(), x(P, { key: 0 }, [g(h(on), {
1578
1532
  class: "tpl-spinner",
1579
1533
  size: 20,
1580
1534
  "stroke-width": 2
1581
- }), R(" " + F(h(a).image.uploading), 1)], 64)) : (s(), x(P, { key: 1 }, [g(h(dn), {
1535
+ }), R(" " + F(h(a).image.uploading), 1)], 64)) : (s(), x(P, { key: 1 }, [g(h(hn), {
1582
1536
  size: 20,
1583
1537
  "stroke-width": 1.5
1584
1538
  }), R(" " + F(h(a).image.dropToUpload), 1)], 64))])) : S("", !0), e.block.src && A.value && e.block.placeholderUrl ? (s(), x(P, { key: 1 }, [e.block.linkUrl ? (s(), x("a", {
@@ -1593,22 +1547,22 @@ var Ur = { class: "tpl:w-full" }, Wr = {
1593
1547
  src: h(M),
1594
1548
  alt: e.block.alt || h(a).image.altTextPlaceholder,
1595
1549
  style: D(O.value)
1596
- }, null, 12, li)], 8, ci)) : (s(), x("img", {
1550
+ }, null, 12, fi)], 8, di)) : (s(), x("img", {
1597
1551
  key: 1,
1598
1552
  class: "tpl:border-0",
1599
1553
  src: h(M),
1600
1554
  alt: e.block.alt,
1601
1555
  style: D(O.value)
1602
- }, null, 12, ui))], 64)) : e.block.src && A.value ? (s(), x("div", {
1556
+ }, null, 12, pi))], 64)) : e.block.src && A.value ? (s(), x("div", {
1603
1557
  key: 2,
1604
1558
  class: "tpl:!flex tpl:min-h-[120px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
1605
1559
  style: D([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, O.value])
1606
- }, [g(h(un), {
1560
+ }, [g(h(mn), {
1607
1561
  size: 32,
1608
1562
  "stroke-width": 1.5,
1609
1563
  class: "tpl:text-[var(--tpl-primary)]",
1610
1564
  style: { opacity: "0.5" }
1611
- }), k("span", di, [g(br, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (s(), x(P, { key: 3 }, [e.block.linkUrl ? (s(), x("a", {
1565
+ }), k("span", mi, [g(wr, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (s(), x(P, { key: 3 }, [e.block.linkUrl ? (s(), x("a", {
1612
1566
  key: 0,
1613
1567
  href: e.block.linkUrl,
1614
1568
  target: "_blank",
@@ -1620,33 +1574,33 @@ var Ur = { class: "tpl:w-full" }, Wr = {
1620
1574
  src: h(j),
1621
1575
  alt: e.block.alt || h(a).image.altTextPlaceholder,
1622
1576
  style: D(O.value)
1623
- }, null, 12, pi)], 8, fi)) : (s(), x("img", {
1577
+ }, null, 12, gi)], 8, hi)) : (s(), x("img", {
1624
1578
  key: 1,
1625
1579
  class: "tpl:border-0",
1626
1580
  src: h(j),
1627
1581
  alt: e.block.alt,
1628
1582
  style: D(O.value)
1629
- }, null, 12, mi))], 64)) : (s(), x("div", hi, [d.value ? (s(), x("button", {
1583
+ }, null, 12, _i))], 64)) : (s(), x("div", vi, [d.value ? (s(), x("button", {
1630
1584
  key: 0,
1631
1585
  "aria-label": h(a).image.browseMedia,
1632
1586
  class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:cursor-pointer tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
1633
1587
  onClick: E(p, ["stop"])
1634
- }, [g(h(un), {
1588
+ }, [g(h(mn), {
1635
1589
  size: 14,
1636
1590
  "stroke-width": 1.5
1637
- }), R(" " + F(h(a).image.browseMedia), 1)], 8, gi)) : (s(), x("span", _i, F(h(a).image.clickToAdd), 1))]))], 12, oi));
1591
+ }), R(" " + F(h(a).image.browseMedia), 1)], 8, yi)) : (s(), x("span", bi, F(h(a).image.clickToAdd), 1))]))], 12, li));
1638
1592
  }
1639
- }), yi = { class: "tpl:w-full" }, bi = ["href"], xi = {
1593
+ }), Si = { class: "tpl:w-full" }, Ci = ["href"], wi = {
1640
1594
  key: 1,
1641
1595
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
1642
- }, Si = /* @__PURE__ */ d({
1596
+ }, Ti = /* @__PURE__ */ d({
1643
1597
  __name: "MenuBlock",
1644
1598
  props: {
1645
1599
  block: {},
1646
1600
  viewport: {}
1647
1601
  },
1648
1602
  setup(e) {
1649
- let t = e, { t: n } = X(), i = b(() => ({
1603
+ let t = e, { t: n } = Y(), i = b(() => ({
1650
1604
  display: "flex",
1651
1605
  flexWrap: "wrap",
1652
1606
  gap: `0 ${t.block.spacing}px`,
@@ -1658,7 +1612,7 @@ var Ur = { class: "tpl:w-full" }, Wr = {
1658
1612
  function o(e) {
1659
1613
  return e || t.block.linkColor || t.block.color;
1660
1614
  }
1661
- return (t, c) => (s(), x("div", yi, [a.value ? (s(), x("div", {
1615
+ return (t, c) => (s(), x("div", Si, [a.value ? (s(), x("div", {
1662
1616
  key: 0,
1663
1617
  style: D(i.value)
1664
1618
  }, [(s(!0), x(P, null, r(e.block.items, (t, n) => (s(), x(P, { key: t.id }, [k("a", {
@@ -1670,15 +1624,15 @@ var Ur = { class: "tpl:w-full" }, Wr = {
1670
1624
  textDecoration: t.underline ? "underline" : "none"
1671
1625
  }),
1672
1626
  onClick: c[0] ||= E(() => {}, ["prevent"])
1673
- }, [g(br, { text: t.text || "..." }, null, 8, ["text"])], 12, bi), n < e.block.items.length - 1 ? (s(), x("span", {
1627
+ }, [g(wr, { text: t.text || "..." }, null, 8, ["text"])], 12, Ci), n < e.block.items.length - 1 ? (s(), x("span", {
1674
1628
  key: 0,
1675
1629
  style: D({
1676
1630
  color: e.block.separatorColor,
1677
1631
  padding: `0 ${e.block.spacing}px`
1678
1632
  })
1679
- }, F(e.block.separator), 5)) : S("", !0)], 64))), 128))], 4)) : (s(), x("div", xi, [g(h(en), { size: 16 }), k("span", null, F(h(n).menu.addLinks), 1)]))]));
1633
+ }, F(e.block.separator), 5)) : S("", !0)], 64))), 128))], 4)) : (s(), x("div", wi, [g(h(an), { size: 16 }), k("span", null, F(h(n).menu.addLinks), 1)]))]));
1680
1634
  }
1681
- }), Ci = /* @__PURE__ */ new Set([
1635
+ }), Ei = /* @__PURE__ */ new Set([
1682
1636
  "http",
1683
1637
  "https",
1684
1638
  "mailto",
@@ -1688,7 +1642,7 @@ var Ur = { class: "tpl:w-full" }, Wr = {
1688
1642
  "sms",
1689
1643
  "xmpp",
1690
1644
  "cid"
1691
- ]), wi = /* @__PURE__ */ new Set([
1645
+ ]), Di = /* @__PURE__ */ new Set([
1692
1646
  "SCRIPT",
1693
1647
  "STYLE",
1694
1648
  "IFRAME",
@@ -1698,7 +1652,7 @@ var Ur = { class: "tpl:w-full" }, Wr = {
1698
1652
  "META",
1699
1653
  "BASE",
1700
1654
  "FORM"
1701
- ]), Ti = /* @__PURE__ */ new Set([
1655
+ ]), Oi = /* @__PURE__ */ new Set([
1702
1656
  "href",
1703
1657
  "xlink:href",
1704
1658
  "formaction",
@@ -1707,16 +1661,16 @@ var Ur = { class: "tpl:w-full" }, Wr = {
1707
1661
  "background",
1708
1662
  "poster"
1709
1663
  ]);
1710
- function Ei(e, t) {
1664
+ function ki(e, t) {
1711
1665
  let n = e.replace(/[\t\n\r]/g, "").replace(/^[\u0000-\u0020]+/, "").trimEnd();
1712
1666
  if (!n || n.startsWith("#")) return !0;
1713
1667
  let r = /^([a-z][a-z0-9+.-]*):/i.exec(n);
1714
1668
  if (!r) return !0;
1715
1669
  let i = r[1].toLowerCase();
1716
- return Ci.has(i) ? !0 : t && i === "data" ? /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i.test(n) : !1;
1670
+ return Ei.has(i) ? !0 : t && i === "data" ? /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i.test(n) : !1;
1717
1671
  }
1718
- function Di(e) {
1719
- if (wi.has(e.tagName)) {
1672
+ function Ai(e) {
1673
+ if (Di.has(e.tagName)) {
1720
1674
  e.remove();
1721
1675
  return;
1722
1676
  }
@@ -1724,33 +1678,21 @@ function Di(e) {
1724
1678
  for (let n = 0; n < e.attributes.length; n++) t.push(e.attributes[n].name);
1725
1679
  for (let n of t) {
1726
1680
  let t = n.toLowerCase();
1727
- if (t.startsWith("on")) {
1728
- e.removeAttribute(n);
1729
- continue;
1730
- }
1731
- if (Ti.has(t)) {
1732
- Ei(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n);
1733
- continue;
1734
- }
1735
- if (t === "src") {
1736
- Ei(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n);
1737
- continue;
1738
- }
1739
- t === "srcdoc" && e.removeAttribute(n);
1681
+ t.startsWith("on") ? e.removeAttribute(n) : Oi.has(t) ? ki(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n) : t === "src" ? ki(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n) : t === "srcdoc" && e.removeAttribute(n);
1740
1682
  }
1741
1683
  let n = Array.from(e.children);
1742
- for (let e of n) Di(e);
1684
+ for (let e of n) Ai(e);
1743
1685
  }
1744
- function Oi(e) {
1686
+ function ji(e) {
1745
1687
  if (typeof DOMParser > "u") return e;
1746
1688
  let t = new DOMParser().parseFromString(`<!doctype html><body>${e}</body>`, "text/html").body, n = Array.from(t.children);
1747
- for (let e of n) Di(e);
1689
+ for (let e of n) Ai(e);
1748
1690
  return t.innerHTML;
1749
1691
  }
1750
1692
  //#endregion
1751
1693
  //#region src/composables/useEditableTextBlock.ts
1752
- function ki(e) {
1753
- let t = n(q, K), r = n(J, null), { syntax: i } = _n(), a = b(() => r?.value ? ve(e(), t.value) : Te(e(), t.value)), o = b(() => Oi(ke(a.value, i))), s = l(!1), c = l(null), { top: u, left: d } = Qe(c), { toLocal: f } = Kt(), p = b(() => f({
1694
+ function Mi(e) {
1695
+ let t = n(K, G), r = n(q, null), { syntax: i } = xn(), a = b(() => r?.value ? we(e(), t.value) : Oe(e(), t.value)), o = b(() => ji(Me(a.value, i))), s = l(!1), c = l(null), { top: u, left: d } = rt(c), { toLocal: f } = Xt(), p = b(() => f({
1754
1696
  top: u.value - 8,
1755
1697
  left: d.value
1756
1698
  }));
@@ -1771,14 +1713,14 @@ function ki(e) {
1771
1713
  }
1772
1714
  //#endregion
1773
1715
  //#region src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
1774
- var Ai = ["innerHTML"], ji = /* @__PURE__ */ d({
1716
+ var Ni = ["innerHTML"], Pi = /* @__PURE__ */ d({
1775
1717
  __name: "ParagraphBlock",
1776
1718
  props: {
1777
1719
  block: {},
1778
1720
  viewport: {}
1779
1721
  },
1780
1722
  setup(e) {
1781
- let t = e, n = L(() => import("./ParagraphEditor-BWfx94pb.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: c, handleEditorDone: l } = ki(() => t.block.content);
1723
+ let t = e, n = L(() => import("./ParagraphEditor-DndEFXmR.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: c, handleEditorDone: l } = Mi(() => t.block.content);
1782
1724
  return (t, u) => (s(), x("div", {
1783
1725
  ref_key: "blockRef",
1784
1726
  ref: i,
@@ -1797,26 +1739,26 @@ var Ai = ["innerHTML"], ji = /* @__PURE__ */ d({
1797
1739
  key: 1,
1798
1740
  class: "tpl-text-content tpl:outline-none",
1799
1741
  innerHTML: h(o)
1800
- }, null, 8, Ai))], 544));
1742
+ }, null, 8, Ni))], 544));
1801
1743
  }
1802
- }), Mi = [
1744
+ }), Fi = [
1803
1745
  "data-block-id",
1804
1746
  "data-block-type",
1805
1747
  "data-tpl-picked"
1806
- ], Ni = ["aria-label"], Pi = [
1748
+ ], Ii = ["aria-label"], Li = [
1807
1749
  "aria-label",
1808
1750
  "aria-pressed",
1809
1751
  "title"
1810
- ], Fi = ["aria-label", "title"], Ii = ["aria-label", "title"], Li = ["aria-label", "title"], Ri = {
1752
+ ], Ri = ["aria-label", "title"], zi = ["aria-label", "title"], Bi = ["aria-label", "title"], Vi = {
1811
1753
  key: 1,
1812
1754
  class: "tpl-block-hidden-overlay tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[5] tpl:flex tpl:items-center tpl:justify-center tpl:rounded-sm"
1813
- }, zi = { class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-2 tpl:py-1 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-chrome-text-muted)] tpl:shadow-[var(--tpl-shadow-sm)]" }, Bi = {
1755
+ }, Hi = { class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-2 tpl:py-1 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-chrome-text-muted)] tpl:shadow-[var(--tpl-shadow-sm)]" }, Ui = {
1814
1756
  key: 2,
1815
1757
  class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
1816
- }, Vi = ["aria-label", "title"], Hi = {
1758
+ }, Wi = ["aria-label", "title"], Gi = {
1817
1759
  key: 3,
1818
1760
  class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
1819
- }, Ui = ["aria-label"], Wi = /*#__PURE__*/ hn(/* @__PURE__ */ d({
1761
+ }, Ki = ["aria-label"], qi = /*#__PURE__*/ yn(/* @__PURE__ */ d({
1820
1762
  __name: "BlockWrapper",
1821
1763
  props: {
1822
1764
  block: {},
@@ -1828,33 +1770,17 @@ var Ai = ["innerHTML"], ji = /* @__PURE__ */ d({
1828
1770
  },
1829
1771
  emits: ["select"],
1830
1772
  setup(e, { emit: t }) {
1831
- let r = L(() => import("./BlockIssueBadge-CKIrYROg.js")), i = e, o = t, { t: c, format: u } = X(), d = n(ht, null), f = l(null), p = b(() => d?.liftedBlockId.value === i.block.id), m = b(() => p.value ? u(c.blockActions.dragLifted, { block: i.block.type }) : c.blockActions.drag);
1773
+ let r = L(() => import("./BlockIssueBadge-05Q3L4RV.js")), i = e, o = t, { t: c, format: u } = Y(), d = n(bt, null), f = l(null), p = b(() => d?.liftedBlockId.value === i.block.id), m = b(() => p.value ? u(c.blockActions.dragLifted, { block: i.block.type }) : c.blockActions.drag);
1832
1774
  async function _() {
1833
1775
  await T(), f.value?.focus();
1834
1776
  }
1835
1777
  function y(e) {
1836
- if (d) {
1837
- if (e.key === " " || e.key === "Enter") {
1838
- e.preventDefault(), e.stopPropagation(), p.value ? d.drop(i.block.id) : d.lift(i.block.id);
1839
- return;
1840
- }
1841
- if (p.value) {
1842
- if (e.key === "Escape") {
1843
- e.preventDefault(), e.stopPropagation(), d.cancel(), _();
1844
- return;
1845
- }
1846
- if (e.key === "ArrowUp") {
1847
- e.preventDefault(), e.stopPropagation(), d.moveUp(i.block.id), _();
1848
- return;
1849
- }
1850
- e.key === "ArrowDown" && (e.preventDefault(), e.stopPropagation(), d.moveDown(i.block.id), _());
1851
- }
1852
- }
1778
+ d && (e.key === " " || e.key === "Enter" ? (e.preventDefault(), e.stopPropagation(), p.value ? d.drop(i.block.id) : d.lift(i.block.id)) : p.value && (e.key === "Escape" ? (e.preventDefault(), e.stopPropagation(), d.cancel(), _()) : e.key === "ArrowUp" ? (e.preventDefault(), e.stopPropagation(), d.moveUp(i.block.id), _()) : e.key === "ArrowDown" && (e.preventDefault(), e.stopPropagation(), d.moveDown(i.block.id), _())));
1853
1779
  }
1854
1780
  let C = b(() => !i.viewport || !i.block.visibility ? !1 : i.block.visibility[i.viewport] === !1), w = b(() => i.previewMode === !0 && C.value), O = b(() => i.viewport ? {
1855
1781
  desktop: c.viewport.desktop,
1856
1782
  mobile: c.viewport.mobile
1857
- }[i.viewport] ?? i.viewport : ""), A = b(() => !!i.block.displayCondition), j = n(St, null), M = n(Et, null), N = n(At, {}), P = b(() => N.savedBlocks?.isPicking.value === !0), I = b(() => !i.nested && N.savedBlocks?.isAvailable.value === !0 && N.savedBlocks?.canCreate.value === !0), z = b(() => i.isSelected && !P.value), B = b(() => N.comments?.getBlockCount(i.block.id) ?? 0), V = b(() => hr(i.block)), H = b(() => _r(i.block));
1783
+ }[i.viewport] ?? i.viewport : ""), A = b(() => !!i.block.displayCondition), j = n(Dt, null), M = n(jt, null), N = n(Ft, {}), P = b(() => N.savedBlocks?.isPicking.value === !0), I = b(() => !i.nested && N.savedBlocks?.isAvailable.value === !0 && N.savedBlocks?.canCreate.value === !0), z = b(() => i.isSelected && !P.value), B = b(() => N.comments?.getBlockCount(i.block.id) ?? 0), V = b(() => yr(i.block)), H = b(() => xr(i.block));
1858
1784
  function ee(e) {
1859
1785
  i.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), o("select"));
1860
1786
  }
@@ -1899,61 +1825,61 @@ var Ai = ["innerHTML"], ji = /* @__PURE__ */ d({
1899
1825
  "aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
1900
1826
  title: h(c).blockActions.drag,
1901
1827
  onKeydown: y
1902
- }, [g(h(an), {
1828
+ }, [g(h(ln), {
1903
1829
  size: 14,
1904
1830
  "stroke-width": 1.5
1905
- })], 40, Pi),
1831
+ })], 40, Li),
1906
1832
  k("button", {
1907
1833
  class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors",
1908
1834
  "aria-label": h(c).blockActions.duplicate,
1909
1835
  title: h(c).blockActions.duplicate,
1910
1836
  onClick: E(ne, ["stop"])
1911
- }, [g(h(Xt), {
1837
+ }, [g(h(en), {
1912
1838
  size: 14,
1913
1839
  "stroke-width": 1.5
1914
- })], 8, Fi),
1840
+ })], 8, Ri),
1915
1841
  I.value ? (s(), x("button", {
1916
1842
  key: 0,
1917
1843
  class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors",
1918
1844
  "aria-label": h(c).blockActions.saveAsBlock,
1919
1845
  title: h(c).blockActions.saveAsBlock,
1920
1846
  onClick: E(re, ["stop"])
1921
- }, [g(h($t), {
1847
+ }, [g(h(rn), {
1922
1848
  size: 14,
1923
1849
  "stroke-width": 1.5
1924
- })], 8, Ii)) : S("", !0),
1850
+ })], 8, zi)) : S("", !0),
1925
1851
  k("button", {
1926
1852
  class: "tpl-block-action-btn tpl-block-delete-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors",
1927
1853
  "aria-label": h(c).blockActions.delete,
1928
1854
  title: h(c).blockActions.delete,
1929
1855
  onClick: E(te, ["stop"])
1930
- }, [g(h(rn), {
1856
+ }, [g(h(cn), {
1931
1857
  size: 14,
1932
1858
  "stroke-width": 1.5
1933
- })], 8, Li)
1934
- ], 8, Ni)) : S("", !0),
1935
- C.value ? (s(), x("div", Ri, [k("span", zi, [g(h(Zt), {
1859
+ })], 8, Bi)
1860
+ ], 8, Ii)) : S("", !0),
1861
+ C.value ? (s(), x("div", Vi, [k("span", Hi, [g(h(tn), {
1936
1862
  size: 12,
1937
1863
  "stroke-width": 1.5
1938
1864
  }), R(" " + F(h(u)(h(c).blockActions.hiddenOnViewport, { viewport: O.value })), 1)])])) : S("", !0),
1939
- A.value && !C.value ? (s(), x("div", Bi, [k("button", {
1865
+ A.value && !C.value ? (s(), x("div", Ui, [k("button", {
1940
1866
  "data-testid": "condition-toggle",
1941
1867
  class: "tpl-condition-toggle tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1 tpl:transition-colors tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-primary)] tpl:border tpl:border-[var(--tpl-border)]",
1942
1868
  "aria-label": h(c).blockActions.conditionToggle,
1943
1869
  title: e.block.displayCondition?.label,
1944
1870
  onClick: E(ie, ["stop"])
1945
- }, [g(h(pn), {
1871
+ }, [g(h(_n), {
1946
1872
  size: 12,
1947
1873
  "stroke-width": 2
1948
- })], 8, Vi)])) : S("", !0),
1949
- B.value > 0 && !C.value ? (s(), x("div", Hi, [k("button", {
1874
+ })], 8, Wi)])) : S("", !0),
1875
+ B.value > 0 && !C.value ? (s(), x("div", Gi, [k("button", {
1950
1876
  class: "tpl-comment-indicator tpl:flex tpl:min-h-6 tpl:min-w-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-0.5 tpl:rounded-full tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-semibold tpl:transition-colors tpl:bg-[var(--tpl-chrome-primary-light)] tpl:text-[var(--tpl-primary)]",
1951
1877
  "aria-label": h(u)(h(c).blockActions.comments, { count: String(B.value) }),
1952
1878
  onClick: n[0] ||= E((t) => h(N).comments?.openForBlock(e.block.id), ["stop"])
1953
- }, [g(h(cn), {
1879
+ }, [g(h(fn), {
1954
1880
  size: 12,
1955
1881
  "stroke-width": 2.5
1956
- }), R(" " + F(B.value), 1)], 8, Ui)])) : S("", !0),
1882
+ }), R(" " + F(B.value), 1)], 8, Ki)])) : S("", !0),
1957
1883
  H.value ? (s(), x("div", {
1958
1884
  key: 4,
1959
1885
  class: "tpl-section-wrapper",
@@ -1966,31 +1892,31 @@ var Ai = ["innerHTML"], ji = /* @__PURE__ */ d({
1966
1892
  class: "tpl-block-content",
1967
1893
  style: D(V.value)
1968
1894
  }, [a(t.$slots, "default", {}, void 0, !0)], 4))
1969
- ], 10, Mi));
1895
+ ], 10, Fi));
1970
1896
  }
1971
1897
  }), [["__scopeId", "data-v-2c239048"]]);
1972
1898
  //#endregion
1973
1899
  //#region src/utils/unwrapParagraph.ts
1974
- function Gi(e) {
1900
+ function Ji(e) {
1975
1901
  let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
1976
1902
  return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
1977
1903
  }
1978
1904
  //#endregion
1979
1905
  //#region src/components/blocks/TitleBlock.vue
1980
- var Ki = /* @__PURE__ */ d({
1906
+ var Yi = /* @__PURE__ */ d({
1981
1907
  __name: "TitleBlock",
1982
1908
  props: {
1983
1909
  block: {},
1984
1910
  viewport: {}
1985
1911
  },
1986
1912
  setup(e) {
1987
- let t = e, n = L(() => import("./TitleEditor-nDV6P-ag.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: c, handleEditorDone: l } = ki(() => t.block.content), d = b(() => {
1913
+ let t = e, n = L(() => import("./TitleEditor-D1F0YoE-.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: c, handleEditorDone: l } = Mi(() => t.block.content), d = b(() => {
1988
1914
  let e = {
1989
- fontSize: `${Ee[t.block.level]}px`,
1915
+ fontSize: `${V[t.block.level]}px`,
1990
1916
  textAlign: t.block.textAlign
1991
1917
  };
1992
1918
  return t.block.color && (e.color = t.block.color), t.block.fontFamily && (e.fontFamily = t.block.fontFamily), e;
1993
- }), f = b(() => `h${t.block.level}`), p = b(() => Gi(o.value));
1919
+ }), f = b(() => `h${t.block.level}`), p = b(() => Ji(o.value));
1994
1920
  return (t, o) => (s(), x("div", {
1995
1921
  ref_key: "blockRef",
1996
1922
  ref: i,
@@ -2016,16 +1942,16 @@ var Ki = /* @__PURE__ */ d({
2016
1942
  });
2017
1943
  //#endregion
2018
1944
  //#region src/utils/sectionColumnDrop.ts
2019
- function qi(e) {
1945
+ function Xi(e) {
2020
1946
  return e.dataset.blockType !== "section" && e.dataset.paletteType !== "section";
2021
1947
  }
2022
1948
  //#endregion
2023
1949
  //#region src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
2024
- var Ji = { class: "tpl:w-full" }, Yi = {
1950
+ var Zi = { class: "tpl:w-full" }, Qi = {
2025
1951
  key: 0,
2026
1952
  "data-testid": "section-drop-hint",
2027
1953
  class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:flex tpl:items-center tpl:justify-center tpl:text-xs tpl:text-[var(--tpl-chrome-text-dim)]"
2028
- }, Xi = /* @__PURE__ */ d({
1954
+ }, $i = /* @__PURE__ */ d({
2029
1955
  __name: "SectionBlock",
2030
1956
  props: {
2031
1957
  block: {},
@@ -2033,22 +1959,18 @@ var Ji = { class: "tpl:w-full" }, Yi = {
2033
1959
  },
2034
1960
  setup(e) {
2035
1961
  let t = {
2036
- title: Ki,
2037
- paragraph: ji,
2038
- image: vi,
2039
- button: Sr,
2040
- divider: $r,
2041
- custom: Zr
2042
- }, a = e, { t: o } = X(), c = $e(Y, "SectionBlock"), l = n(Et, null), d = n(Lt, null), p = n(At, {}), m = n(It, null);
2043
- function _(e) {
2044
- let t = p.savedBlocks;
2045
- if (t?.isPicking.value) {
2046
- t.togglePick(a.block.id);
2047
- return;
2048
- }
2049
- c.selectBlock(e);
1962
+ title: Yi,
1963
+ paragraph: Pi,
1964
+ image: xi,
1965
+ button: Er,
1966
+ divider: ni,
1967
+ custom: ei
1968
+ }, a = e, { t: o } = Y(), c = it(J, "SectionBlock"), d = n(jt, null), p = n(Ht, null), m = n(Ft, {}), _ = n(Vt, null);
1969
+ function y(e) {
1970
+ let t = m.savedBlocks;
1971
+ t?.isPicking.value ? t.togglePick(a.block.id) : c.selectBlock(e);
2050
1972
  }
2051
- let y = b(() => {
1973
+ let C = b(() => {
2052
1974
  switch (a.block.columns) {
2053
1975
  case "2": return ["50%", "50%"];
2054
1976
  case "3": return [
@@ -2060,38 +1982,54 @@ var Ji = { class: "tpl:w-full" }, Yi = {
2060
1982
  case "2-1": return ["66.67%", "33.33%"];
2061
1983
  default: return ["100%"];
2062
1984
  }
2063
- }), C = b(() => {
2064
- let e = y.value.length, t = [...a.block.children];
1985
+ }), w = b(() => {
1986
+ let e = C.value.length, t = [...a.block.children];
2065
1987
  for (; t.length < e;) t.push([]);
2066
1988
  return t.slice(0, e);
2067
- }), w = b(() => a.viewport === "mobile" && a.block.stackOnMobile !== !1);
2068
- function T(e) {
2069
- return C.value[e] || [];
1989
+ }), T = b(() => a.viewport === "mobile" && a.block.stackOnMobile !== !1);
1990
+ function E(e) {
1991
+ return w.value[e] || [];
2070
1992
  }
2071
- function E(e, t) {
1993
+ function A(e) {
1994
+ return _?.value === !1 || !d?.isHidden(e);
1995
+ }
1996
+ function j(e) {
1997
+ return !E(e).some((e) => A(e.id));
1998
+ }
1999
+ let I = l(null);
2000
+ function L(e) {
2001
+ return c.state.previewMode ? !1 : j(e) ? !0 : I.value === e && E(e).filter((e) => A(e.id)).length <= 1;
2002
+ }
2003
+ function R(e) {
2004
+ return E(e).length === 0 && !c.state.previewMode;
2005
+ }
2006
+ function z(e) {
2007
+ return E(e).length === 0 && c.state.previewMode;
2008
+ }
2009
+ function B(e, t) {
2072
2010
  let n = t.map((e) => JSON.parse(JSON.stringify(e))), r = [...a.block.children];
2073
2011
  for (; r.length <= e;) r.push([]);
2074
2012
  r[e] = n, c.updateBlock(a.block.id, { children: r });
2075
2013
  }
2076
- function A(e) {
2077
- return mr(e, d, t);
2014
+ function V(e) {
2015
+ return vr(e, p, t);
2078
2016
  }
2079
- function j(e, t) {
2017
+ function H(e, t) {
2080
2018
  e.type === "custom" && c.updateBlock(e.id, {
2081
2019
  fieldValues: t.fieldValues,
2082
2020
  dataSourceFetched: t.dataSourceFetched
2083
2021
  });
2084
2022
  }
2085
- return (t, n) => (s(), x("div", Ji, [k("div", { class: v(["tpl:flex tpl:gap-0", { "tpl:flex-col": w.value }]) }, [(s(!0), x(P, null, r(C.value, (t, n) => (s(), x("div", {
2086
- key: n,
2087
- class: v(["tpl:relative tpl:min-h-[60px] tpl:rounded", T(n).length === 0 ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
2088
- style: D({ width: w.value ? "100%" : y.value[n] })
2023
+ return (t, n) => (s(), x("div", Zi, [k("div", { class: v(["tpl:flex tpl:gap-0", { "tpl:flex-col": T.value }]) }, [(s(!0), x(P, null, r(w.value, (t, a) => (s(), x("div", {
2024
+ key: a,
2025
+ class: v(["tpl:relative tpl:flex tpl:flex-col tpl:rounded", R(a) ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
2026
+ style: D({ width: T.value ? "100%" : C.value[a] })
2089
2027
  }, [g(h(N), {
2090
- "model-value": T(n),
2028
+ "model-value": E(a),
2091
2029
  group: {
2092
2030
  name: "blocks",
2093
2031
  pull: !0,
2094
- put: (e, t, n) => h(qi)(n)
2032
+ put: (e, t, n) => h(Xi)(n)
2095
2033
  },
2096
2034
  animation: 150,
2097
2035
  "ghost-class": "tpl-ghost",
@@ -2101,21 +2039,26 @@ var Ji = { class: "tpl:w-full" }, Yi = {
2101
2039
  "inverted-swap-threshold": .65,
2102
2040
  "empty-insert-threshold": 20,
2103
2041
  "force-fallback": !0,
2104
- class: "tpl:min-h-[60px]",
2105
- "onUpdate:modelValue": (e) => E(n, e)
2042
+ class: v(["tpl:grow", {
2043
+ "tpl:min-h-[60px]": L(a),
2044
+ "tpl:min-h-[34px]": z(a)
2045
+ }]),
2046
+ onStart: (e) => I.value = a,
2047
+ onEnd: n[0] ||= (e) => I.value = null,
2048
+ "onUpdate:modelValue": (e) => B(a, e)
2106
2049
  }, {
2107
- default: i(() => [(s(!0), x(P, null, r(T(n), (t) => f((s(), x("div", { key: t.id }, [g(Wi, {
2050
+ default: i(() => [(s(!0), x(P, null, r(E(a), (t) => f((s(), x("div", { key: t.id }, [g(qi, {
2108
2051
  block: t,
2109
2052
  "is-selected": h(c).state.selectedBlockId === t.id,
2110
2053
  viewport: e.viewport,
2111
2054
  "preview-mode": h(c).state.previewMode,
2112
2055
  nested: "",
2113
- onSelect: (e) => _(t.id)
2056
+ onSelect: (e) => y(t.id)
2114
2057
  }, {
2115
- default: i(() => [(s(), O(u(A(t)), {
2058
+ default: i(() => [(s(), O(u(V(t)), {
2116
2059
  block: t,
2117
2060
  viewport: e.viewport,
2118
- onFetchData: (e) => j(t, e),
2061
+ onFetchData: (e) => H(t, e),
2119
2062
  onUpdate: (e) => h(c).updateBlock(t.id, e)
2120
2063
  }, null, 40, [
2121
2064
  "block",
@@ -2130,89 +2073,111 @@ var Ji = { class: "tpl:w-full" }, Yi = {
2130
2073
  "viewport",
2131
2074
  "preview-mode",
2132
2075
  "onSelect"
2133
- ])])), [[M, h(m) === !1 || !h(l)?.isHidden(t.id)]])), 128))]),
2076
+ ])])), [[M, A(t.id)]])), 128))]),
2134
2077
  _: 2
2135
2078
  }, 1032, [
2136
2079
  "model-value",
2137
2080
  "group",
2081
+ "class",
2082
+ "onStart",
2138
2083
  "onUpdate:modelValue"
2139
- ]), T(n).length === 0 ? (s(), x("div", Yi, [k("span", null, F(h(o).section.dropHere), 1)])) : S("", !0)], 6))), 128))], 2)]));
2140
- }
2141
- }), Zi = [
2142
- "width",
2143
- "height",
2144
- "fill"
2145
- ], Qi = ["d"], $i = /* @__PURE__ */ d({
2084
+ ]), R(a) ? (s(), x("div", Qi, [k("span", null, F(h(o).section.dropHere), 1)])) : S("", !0)], 6))), 128))], 2)]));
2085
+ }
2086
+ }), ea = ["width", "height"], ta = [
2087
+ "d",
2088
+ "stroke",
2089
+ "stroke-opacity",
2090
+ "stroke-width"
2091
+ ], na = ["d", "fill"], ra = /* @__PURE__ */ d({
2146
2092
  __name: "SocialIconSvg",
2147
2093
  props: {
2148
2094
  platform: {},
2149
2095
  iconStyle: {},
2096
+ iconTone: {},
2150
2097
  iconSize: {}
2151
2098
  },
2152
2099
  setup(e) {
2153
- let t = e, n = b(() => He[t.platform]), r = b(() => We[t.iconSize]), i = b(() => {
2100
+ let t = e, n = b(() => qe[t.platform]), r = b(() => Ye[t.iconSize]), i = b(() => Le(t.platform, t.iconTone)), a = b(() => be(t.iconStyle, t.iconTone)), o = b(() => {
2154
2101
  let e = {
2155
2102
  display: "inline-flex",
2156
2103
  alignItems: "center",
2157
2104
  justifyContent: "center",
2158
2105
  width: `${r.value}px`,
2159
2106
  height: `${r.value}px`
2160
- };
2107
+ }, n = i.value.fill;
2161
2108
  switch (t.iconStyle) {
2162
2109
  case "solid": return {
2163
2110
  ...e,
2164
- backgroundColor: n.value.color,
2111
+ backgroundColor: n,
2165
2112
  borderRadius: "4px"
2166
2113
  };
2167
2114
  case "outlined": return {
2168
2115
  ...e,
2169
2116
  backgroundColor: "transparent",
2170
- border: `2px solid ${n.value.color}`,
2171
- borderRadius: "4px"
2117
+ border: `2px solid ${n}`,
2118
+ borderRadius: "4px",
2119
+ ...a.value && { boxShadow: u(a.value) }
2172
2120
  };
2173
2121
  case "rounded": return {
2174
2122
  ...e,
2175
- backgroundColor: n.value.color,
2123
+ backgroundColor: n,
2176
2124
  borderRadius: "8px"
2177
2125
  };
2178
2126
  case "square": return {
2179
2127
  ...e,
2180
- backgroundColor: n.value.color,
2128
+ backgroundColor: n,
2181
2129
  borderRadius: "0"
2182
2130
  };
2183
2131
  case "circle": return {
2184
2132
  ...e,
2185
- backgroundColor: n.value.color,
2133
+ backgroundColor: n,
2186
2134
  borderRadius: "50%"
2187
2135
  };
2188
2136
  default: return e;
2189
2137
  }
2190
- }), a = b(() => Math.floor(r.value * .6)), o = b(() => t.iconStyle === "outlined" ? n.value.color : "#ffffff");
2191
- return (e, t) => (s(), x("span", { style: D(i.value) }, [(s(), x("svg", {
2192
- width: a.value,
2193
- height: a.value,
2138
+ }), c = b(() => ze(t.iconStyle)), l = b(() => Math.floor(r.value * c.value));
2139
+ function u(e) {
2140
+ let t = `${e.width / 2 * r.value / 24}px`, n = Math.round(e.opacity * 255).toString(16).padStart(2, "0"), i = `${e.color}${n}`;
2141
+ return `0 0 0 ${t} ${i}, inset 0 0 0 ${t} ${i}`;
2142
+ }
2143
+ let d = b(() => t.iconStyle === "outlined" || t.iconStyle === "plain" ? i.value.fill : i.value.onFill);
2144
+ return (e, t) => (s(), x("span", { style: D(o.value) }, [(s(), x("svg", {
2145
+ width: l.value,
2146
+ height: l.value,
2194
2147
  viewBox: "0 0 24 24",
2195
- fill: o.value,
2148
+ overflow: "visible",
2196
2149
  xmlns: "http://www.w3.org/2000/svg"
2197
- }, [k("path", { d: n.value.path }, null, 8, Qi)], 8, Zi))], 4));
2198
- }
2199
- }), ea = { class: "tpl:w-full" }, ta = ["href"], na = {
2150
+ }, [a.value ? (s(), x("path", {
2151
+ key: 0,
2152
+ "data-testid": "social-icon-halo",
2153
+ d: n.value.path,
2154
+ fill: "none",
2155
+ stroke: a.value.color,
2156
+ "stroke-opacity": a.value.opacity,
2157
+ "stroke-width": a.value.width / c.value,
2158
+ "stroke-linejoin": "round"
2159
+ }, null, 8, ta)) : S("", !0), k("path", {
2160
+ d: n.value.path,
2161
+ fill: d.value
2162
+ }, null, 8, na)], 8, ea))], 4));
2163
+ }
2164
+ }), ia = { class: "tpl:w-full" }, aa = ["href"], oa = {
2200
2165
  key: 1,
2201
2166
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
2202
- }, ra = /* @__PURE__ */ d({
2167
+ }, sa = /* @__PURE__ */ d({
2203
2168
  __name: "SocialIconsBlock",
2204
2169
  props: {
2205
2170
  block: {},
2206
2171
  viewport: {}
2207
2172
  },
2208
2173
  setup(e) {
2209
- let t = e, { t: n } = X(), i = b(() => ({
2174
+ let t = e, { t: n } = Y(), i = b(() => ({
2210
2175
  display: "flex",
2211
2176
  flexWrap: "wrap",
2212
2177
  gap: `${t.block.spacing}px`,
2213
2178
  justifyContent: t.block.align === "left" ? "flex-start" : t.block.align === "right" ? "flex-end" : "center"
2214
2179
  })), a = b(() => t.block.icons.length > 0);
2215
- return (t, o) => (s(), x("div", ea, [a.value ? (s(), x("div", {
2180
+ return (t, o) => (s(), x("div", ia, [a.value ? (s(), x("div", {
2216
2181
  key: 0,
2217
2182
  style: D(i.value)
2218
2183
  }, [(s(!0), x(P, null, r(e.block.icons, (t) => (s(), x("a", {
@@ -2220,52 +2185,54 @@ var Ji = { class: "tpl:w-full" }, Yi = {
2220
2185
  href: t.url || "#",
2221
2186
  class: "tpl:cursor-default",
2222
2187
  onClick: o[0] ||= E(() => {}, ["prevent"])
2223
- }, [g($i, {
2188
+ }, [g(ra, {
2224
2189
  platform: t.platform,
2225
2190
  "icon-style": e.block.iconStyle,
2191
+ "icon-tone": e.block.iconTone,
2226
2192
  "icon-size": e.block.iconSize
2227
2193
  }, null, 8, [
2228
2194
  "platform",
2229
2195
  "icon-style",
2196
+ "icon-tone",
2230
2197
  "icon-size"
2231
- ])], 8, ta))), 128))], 4)) : (s(), x("div", na, [g(h(on), { size: 16 }), k("span", null, F(h(n).social.addIcons), 1)]))]));
2198
+ ])], 8, aa))), 128))], 4)) : (s(), x("div", oa, [g(h(un), { size: 16 }), k("span", null, F(h(n).social.addIcons), 1)]))]));
2232
2199
  }
2233
- }), ia = { class: "tpl:w-full" }, aa = {
2200
+ }), ca = { class: "tpl:w-full" }, la = {
2234
2201
  key: 0,
2235
2202
  class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
2236
2203
  style: {
2237
2204
  "background-color": "var(--tpl-bg-hover)",
2238
2205
  color: "var(--tpl-text-dim)"
2239
2206
  }
2240
- }, oa = /* @__PURE__ */ d({
2207
+ }, ua = /* @__PURE__ */ d({
2241
2208
  __name: "SpacerBlock",
2242
2209
  props: {
2243
2210
  block: {},
2244
2211
  viewport: {}
2245
2212
  },
2246
2213
  setup(e) {
2247
- let t = e, n = $e(Y, "SpacerBlock"), r = b(() => ({
2214
+ let t = e, n = it(J, "SpacerBlock"), r = b(() => ({
2248
2215
  height: `${t.block.height}px`,
2249
2216
  minHeight: `${t.block.height}px`,
2250
2217
  ...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
2251
2218
  }));
2252
- return (t, i) => (s(), x("div", ia, [k("div", {
2219
+ return (t, i) => (s(), x("div", ca, [k("div", {
2253
2220
  style: D(r.value),
2254
2221
  class: v(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:border-y tpl:border-dashed": !h(n).state.previewMode }])
2255
- }, [h(n).state.previewMode ? S("", !0) : (s(), x("span", aa, F(e.block.height) + "px ", 1))], 6)]));
2222
+ }, [h(n).state.previewMode ? S("", !0) : (s(), x("span", la, F(e.block.height) + "px ", 1))], 6)]));
2256
2223
  }
2257
- }), sa = { class: "tpl:w-full" }, ca = { key: 0 }, la = [
2224
+ }), da = { class: "tpl:w-full" }, fa = { key: 0 }, pa = [
2258
2225
  "aria-label",
2259
2226
  "data-placeholder",
2260
2227
  "onBlur"
2261
- ], ua = [
2228
+ ], ma = [
2262
2229
  "aria-label",
2263
2230
  "data-placeholder",
2264
2231
  "onBlur"
2265
- ], da = {
2232
+ ], ha = {
2266
2233
  key: 1,
2267
2234
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
2268
- }, fa = /*#__PURE__*/ hn(/* @__PURE__ */ d({
2235
+ }, ga = /*#__PURE__*/ yn(/* @__PURE__ */ d({
2269
2236
  __name: "TableBlock",
2270
2237
  props: {
2271
2238
  block: {},
@@ -2279,7 +2246,7 @@ var Ji = { class: "tpl:w-full" }, Yi = {
2279
2246
  updated(e, t) {
2280
2247
  t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
2281
2248
  }
2282
- }, n = e, { t: i } = X(), a = $e(Y, "TableBlock"), o = b(() => n.block.rows.length > 0), c = b(() => {
2249
+ }, n = e, { t: i } = Y(), a = it(J, "TableBlock"), o = b(() => n.block.rows.length > 0), c = b(() => {
2283
2250
  let e = {
2284
2251
  width: "100%",
2285
2252
  borderCollapse: "collapse",
@@ -2310,11 +2277,11 @@ var Ji = { class: "tpl:w-full" }, Yi = {
2310
2277
  } : n);
2311
2278
  a.updateBlock(n.block.id, { rows: o });
2312
2279
  }
2313
- return (e, n) => (s(), x("div", sa, [o.value ? (s(), x("table", {
2280
+ return (e, n) => (s(), x("div", da, [o.value ? (s(), x("table", {
2314
2281
  key: 0,
2315
2282
  style: D(c.value),
2316
2283
  class: "tpl-table-editable"
2317
- }, [d.value ? (s(), x("thead", ca, [k("tr", null, [(s(!0), x(P, null, r(d.value.cells, (e) => f((s(), x("th", {
2284
+ }, [d.value ? (s(), x("thead", fa, [k("tr", null, [(s(!0), x(P, null, r(d.value.cells, (e) => f((s(), x("th", {
2318
2285
  key: e.id,
2319
2286
  style: D(u.value),
2320
2287
  "aria-label": h(i).table.cellPlaceholder,
@@ -2323,7 +2290,7 @@ var Ji = { class: "tpl:w-full" }, Yi = {
2323
2290
  onBlur: (t) => v(d.value.id, e.id, t),
2324
2291
  onKeydown: n[0] ||= _(E((e) => e.target.blur(), ["prevent"]), ["enter"]),
2325
2292
  onClick: E(m, ["stop"])
2326
- }, null, 44, la)), [[t, e.content]])), 128))])])) : S("", !0), k("tbody", null, [(s(!0), x(P, null, r(p.value, (e) => (s(), x("tr", { key: e.id }, [(s(!0), x(P, null, r(e.cells, (r) => f((s(), x("td", {
2293
+ }, null, 44, pa)), [[t, e.content]])), 128))])])) : S("", !0), k("tbody", null, [(s(!0), x(P, null, r(p.value, (e) => (s(), x("tr", { key: e.id }, [(s(!0), x(P, null, r(e.cells, (r) => f((s(), x("td", {
2327
2294
  key: r.id,
2328
2295
  style: D(l.value),
2329
2296
  "aria-label": h(i).table.cellPlaceholder,
@@ -2332,9 +2299,9 @@ var Ji = { class: "tpl:w-full" }, Yi = {
2332
2299
  onBlur: (t) => v(e.id, r.id, t),
2333
2300
  onKeydown: n[1] ||= _(E((e) => e.target.blur(), ["prevent"]), ["enter"]),
2334
2301
  onClick: E(m, ["stop"])
2335
- }, null, 44, ua)), [[t, r.content]])), 128))]))), 128))])], 4)) : (s(), x("div", da, [g(h(fn), { size: 16 }), k("span", null, F(h(i).table.empty), 1)]))]));
2302
+ }, null, 44, ma)), [[t, r.content]])), 128))]))), 128))])], 4)) : (s(), x("div", ha, [g(h(gn), { size: 16 }), k("span", null, F(h(i).table.empty), 1)]))]));
2336
2303
  }
2337
- }), [["__scopeId", "data-v-963ac422"]]), pa = /* @__PURE__ */ d({
2304
+ }), [["__scopeId", "data-v-963ac422"]]), _a = /* @__PURE__ */ d({
2338
2305
  __name: "VideoPlayButton",
2339
2306
  props: { hoverEffect: {
2340
2307
  type: Boolean,
@@ -2352,7 +2319,7 @@ var Ji = { class: "tpl:w-full" }, Yi = {
2352
2319
  });
2353
2320
  //#endregion
2354
2321
  //#region src/utils/videoThumbnail.ts
2355
- function ma(e) {
2322
+ function va(e) {
2356
2323
  if (!e) return {
2357
2324
  platform: "unknown",
2358
2325
  videoId: null,
@@ -2384,25 +2351,25 @@ function ma(e) {
2384
2351
  thumbnailUrl: null
2385
2352
  };
2386
2353
  }
2387
- function ha(e, t) {
2388
- return t || ma(e).thumbnailUrl;
2354
+ function ya(e, t) {
2355
+ return t || va(e).thumbnailUrl;
2389
2356
  }
2390
2357
  //#endregion
2391
2358
  //#region src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
2392
- var ga = ["src", "alt"], _a = {
2359
+ var ba = ["src", "alt"], xa = {
2393
2360
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
2394
2361
  style: { opacity: "0.7" }
2395
- }, va = ["href"], ya = ["src", "alt"], ba = ["src", "alt"], xa = {
2362
+ }, Sa = ["href"], Ca = ["src", "alt"], wa = ["src", "alt"], Ta = {
2396
2363
  key: 3,
2397
2364
  class: "tpl:flex tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
2398
- }, Sa = /* @__PURE__ */ d({
2365
+ }, Ea = /* @__PURE__ */ d({
2399
2366
  __name: "VideoBlock",
2400
2367
  props: {
2401
2368
  block: {},
2402
2369
  viewport: {}
2403
2370
  },
2404
2371
  setup(e) {
2405
- let t = e, { t: n } = X(), { syntax: r } = _n(), i = b(() => U(t.block.url, r) || U(t.block.thumbnailUrl, r)), a = En(() => i.value ? void 0 : t.block.thumbnailUrl || void 0), o = En(() => i.value ? t.block.placeholderUrl : void 0), c = b(() => i.value ? null : t.block.thumbnailUrl ? a.value ?? null : ha(t.block.url)), l = b(() => ({ textAlign: t.block.align })), u = b(() => {
2372
+ let t = e, { t: n } = Y(), { syntax: r } = xn(), i = b(() => U(t.block.url, r) || U(t.block.thumbnailUrl, r)), a = An(() => i.value ? void 0 : t.block.thumbnailUrl || void 0), o = An(() => i.value ? t.block.placeholderUrl : void 0), c = b(() => i.value ? null : t.block.thumbnailUrl ? a.value ?? null : ya(t.block.url)), l = b(() => ({ textAlign: t.block.align })), u = b(() => {
2406
2373
  let e = t.block.align;
2407
2374
  return {
2408
2375
  maxWidth: "100%",
@@ -2425,16 +2392,16 @@ var ga = ["src", "alt"], _a = {
2425
2392
  src: h(o),
2426
2393
  alt: e.block.alt,
2427
2394
  style: D(d.value)
2428
- }, null, 12, ga), g(pa)], 4)) : i.value ? (s(), x("div", {
2395
+ }, null, 12, ba), g(_a)], 4)) : i.value ? (s(), x("div", {
2429
2396
  key: 1,
2430
2397
  class: "tpl:relative tpl:!flex tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
2431
2398
  style: D([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, u.value])
2432
- }, [g(h(ln), {
2399
+ }, [g(h(pn), {
2433
2400
  size: 36,
2434
2401
  "stroke-width": 1.5,
2435
2402
  class: "tpl:text-[var(--tpl-primary)]",
2436
2403
  style: { opacity: "0.5" }
2437
- }), k("span", _a, [g(br, { text: f.value }, null, 8, ["text"])])], 4)) : c.value ? (s(), x(P, { key: 2 }, [e.block.url ? (s(), x("a", {
2404
+ }), k("span", xa, [g(wr, { text: f.value }, null, 8, ["text"])])], 4)) : c.value ? (s(), x(P, { key: 2 }, [e.block.url ? (s(), x("a", {
2438
2405
  key: 0,
2439
2406
  href: e.block.url,
2440
2407
  target: "_blank",
@@ -2447,7 +2414,7 @@ var ga = ["src", "alt"], _a = {
2447
2414
  src: c.value,
2448
2415
  alt: e.block.alt,
2449
2416
  style: D(d.value)
2450
- }, null, 12, ya), g(pa, { "hover-effect": "" })], 12, va)) : (s(), x("div", {
2417
+ }, null, 12, Ca), g(_a, { "hover-effect": "" })], 12, Sa)) : (s(), x("div", {
2451
2418
  key: 1,
2452
2419
  class: "tpl:relative tpl:inline-block",
2453
2420
  style: D(u.value)
@@ -2456,54 +2423,54 @@ var ga = ["src", "alt"], _a = {
2456
2423
  src: c.value,
2457
2424
  alt: e.block.alt,
2458
2425
  style: D(d.value)
2459
- }, null, 12, ba), g(pa)], 4))], 64)) : (s(), x("div", xa, [g(h(ln), {
2426
+ }, null, 12, wa), g(_a)], 4))], 64)) : (s(), x("div", Ta, [g(h(pn), {
2460
2427
  size: 40,
2461
2428
  "stroke-width": 1.5,
2462
2429
  class: "tpl:text-[var(--tpl-border-light)]"
2463
2430
  }), k("span", null, F(h(n).video.addVideo), 1)]))], 4));
2464
2431
  }
2465
- }), Ca = {
2466
- section: Xi,
2467
- title: Ki,
2468
- paragraph: ji,
2469
- image: vi,
2470
- button: Sr,
2471
- divider: $r,
2472
- video: Sa,
2473
- social: ra,
2474
- menu: Si,
2475
- table: fa,
2476
- spacer: oa,
2477
- html: ai,
2478
- countdown: L(() => import("./CountdownBlock-sVDjKkRw.js"))
2432
+ }), Da = {
2433
+ section: $i,
2434
+ title: Yi,
2435
+ paragraph: Pi,
2436
+ image: xi,
2437
+ button: Er,
2438
+ divider: ni,
2439
+ video: Ea,
2440
+ social: sa,
2441
+ menu: Ti,
2442
+ table: ga,
2443
+ spacer: ua,
2444
+ html: ci,
2445
+ countdown: L(() => import("./CountdownBlock-lHU3Lu7Q.js"))
2479
2446
  };
2480
- function wa(e) {
2481
- let { editor: n, config: r, translations: i, fontsManager: a } = e, { t: s, format: u } = X(i), d = b(() => ue(ue(ue(Wn(i), lr(n.content.value.settings?.locale)), H(n.content.value.settings) === "rtl" ? {
2447
+ function Oa(e) {
2448
+ let { editor: n, config: r, translations: i, fontsManager: a } = e, { t: s, format: u } = Y(i), d = b(() => Se(Se(Se(Jn(i), pr(n.content.value.settings?.locale)), ge(n.content.value.settings) === "rtl" ? {
2482
2449
  title: { textAlign: "right" },
2483
2450
  table: { textAlign: "right" }
2484
2451
  } : {}), r.blockDefaults ?? {}));
2485
2452
  n.setUiTheme(r.uiTheme ?? "auto");
2486
- let { resolvedTheme: f } = Mn(b(() => n.state.uiTheme)), p = l(r.theme ?? {}), { themeStyles: h } = Pn({
2453
+ let { resolvedTheme: f } = In(b(() => n.state.uiTheme)), p = l(r.theme ?? {}), { themeStyles: h } = Rn({
2487
2454
  themeOverrides: p,
2488
2455
  resolvedTheme: f,
2489
2456
  extraStyles: () => ({
2490
2457
  "--tpl-drop-text": `"${i.canvas.dropHere}"`,
2491
2458
  ...e.themeExtraStyles?.()
2492
2459
  })
2493
- }), g = Le({
2460
+ }), g = He({
2494
2461
  content: n.content,
2495
2462
  setContent: (e, t) => n.setContent(e, t),
2496
2463
  ...e.historyOptions
2497
2464
  });
2498
- Ve(n, g);
2499
- let _ = Ke({
2465
+ Ke(n, g);
2466
+ let _ = Ze({
2500
2467
  addBlock: n.addBlock,
2501
2468
  removeBlock: n.removeBlock,
2502
2469
  updateBlock: n.updateBlock,
2503
2470
  selectBlock: n.selectBlock,
2504
2471
  findBlockLocation: n.findBlockLocation,
2505
2472
  blockDefaults: () => d.value
2506
- }), v = Re(n), x = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? Ge({
2473
+ }), v = Ue(n), x = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? Xe({
2507
2474
  content: n.content,
2508
2475
  isDirty: () => n.state.isDirty,
2509
2476
  ...e.autoSaveOptions
@@ -2511,44 +2478,40 @@ function wa(e) {
2511
2478
  x && (S = t(g.isNavigating, (e) => {
2512
2479
  e ? x.pause() : x.resume();
2513
2480
  }));
2514
- let C = jn(n, {
2481
+ let C = Fn(n, {
2515
2482
  t: s,
2516
2483
  format: u
2517
- }, r.customBlocks ?? []), w = Gt(r.colors);
2518
- if (w.allowCustomIgnored && Z.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), w.invalidPresets.length > 0 && Z.warn(`config.colors.presets skipped invalid entries: ${w.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), w.allowCustom === !1) {
2519
- let e = Un(w.presets, r.blockDefaults, r.templateDefaults);
2520
- e.length > 0 && Z.warn(`config.colors locks custom colours, but these block/template default colours fall outside colors.presets: ${e.join(", ")}. New blocks start on a colour the palette can't reselect — set blockDefaults / templateDefaults from the same palette.`);
2521
- }
2522
- let T = qt(r.templateSettings);
2523
- for (let e of T.unknown) Z.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${Jt.join(", ")}) — skipping it.`);
2524
- let E = Fn();
2525
- Bn(E, Ca);
2484
+ }, r.customBlocks ?? []), w = Yt(r.colors);
2485
+ if (w.allowCustomIgnored && X.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), w.invalidPresets.length > 0 && X.warn(`config.colors.presets skipped invalid entries: ${w.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), w.allowCustom === !1) {
2486
+ let e = qn(w.presets, r.blockDefaults, r.templateDefaults);
2487
+ e.length > 0 && X.warn(`config.colors locks custom colours, but these block/template default colours fall outside colors.presets: ${e.join(", ")}. New blocks start on a colour the palette can't reselect — set blockDefaults / templateDefaults from the same palette.`);
2488
+ }
2489
+ let T = Zt(r.templateSettings);
2490
+ for (let e of T.unknown) X.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${Qt.join(", ")}) — skipping it.`);
2491
+ let E = zn();
2492
+ Wn(E, Da);
2526
2493
  let D = /* @__PURE__ */ new Set();
2527
2494
  function O(e) {
2528
2495
  for (let t of e) {
2529
- E.registerCustom(t, Zr);
2530
- for (let e of ur(t, w)) D.has(e.id) || (D.add(e.id), Z.warn(e.message));
2496
+ E.registerCustom(t, ei);
2497
+ for (let e of mr(t, w)) D.has(e.id) || (D.add(e.id), X.warn(e.message));
2531
2498
  }
2532
2499
  }
2533
2500
  r.customBlocks?.length && O(r.customBlocks);
2534
- let k = Sn();
2501
+ let k = En();
2535
2502
  if (o() && m(k.dispose), e.containerEl) {
2536
2503
  let t = e.containerEl;
2537
- G(document, "pointerdown", (e) => {
2504
+ W(document, "pointerdown", (e) => {
2538
2505
  let n = t.value;
2539
2506
  n && (e.composedPath?.() ?? []).includes(n) && k.claim();
2540
2507
  }, { capture: !0 });
2541
2508
  }
2542
2509
  function A() {
2543
2510
  let t = e.capabilities?.templates;
2544
- if (t) {
2545
- t.save();
2546
- return;
2547
- }
2548
- x?.flush();
2511
+ t ? t.save() : x?.flush();
2549
2512
  }
2550
2513
  function j(t) {
2551
- k.isActive() && fr(t, {
2514
+ k.isActive() && gr(t, {
2552
2515
  history: g,
2553
2516
  selectBlock: (e) => n.selectBlock(e),
2554
2517
  getSelectedBlockId: () => n.state.selectedBlockId,
@@ -2560,47 +2523,44 @@ function wa(e) {
2560
2523
  onCancelPick: () => e.capabilities?.savedBlocks?.cancelPicking()
2561
2524
  });
2562
2525
  }
2563
- G(document, "keydown", j);
2564
- let M = l(null);
2565
- c(xt, e.editorRoot ?? document), c(tt, M), c(yt, i), c(Y, n), c(Vt, g), c(St, _), c(Et, v), c(Rt, a), c(ct, h), c(bt, f), c(Nt, d), c(vt, r.locale), c(Lt, E), c(Pt, r.customBlocks ?? []), c(Ht, r.paletteBlocks), c(Ct, Vn(r.htmlBlockPreview)), c(nt, r.layout), c(at, r.sectionWrapper), c(Tt, w), c(Ft, T.fields), c(jt, In(n.content, E));
2566
- let N = be(r.mergeTags?.syntax), P = y(r.mergeTags?.tags ?? []);
2567
- function F(e) {
2568
- if (!Array.isArray(e)) {
2569
- Z.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
2570
- return;
2571
- }
2572
- P.value = e;
2573
- }
2574
- c(q, P), c(pt, N), c(mt, r.mergeTags?.onRequest ?? null), c(kt, r.mergeTags?.autocomplete !== !1), c(ft, r.mergeTags?.showRawValue !== !1);
2575
- let I = l(Ne(r.mergeTags?.tags ?? []));
2576
- c(dt, I);
2577
- let L = wn({
2526
+ W(document, "keydown", j);
2527
+ let M = l(null), N = e.editorRoot ?? document;
2528
+ c(Et, N), c(ot, M), c(wt, i), c(J, n), c(Kt, g), c(Dt, _), c(jt, v), c(Ut, a), c(pt, h), c(Tt, f), c(Rt, d), c(Ct, r.locale), c(Ht, E), c(zt, r.customBlocks ?? []), c(qt, r.paletteBlocks), c(Ot, Gn(r.htmlBlockPreview)), c(st, r.layout), c(ut, r.sectionWrapper), c(At, w), c(Bt, T.fields), c(It, Bn(n.content, E));
2529
+ let P = Te(r.mergeTags?.syntax), F = y(r.mergeTags?.tags ?? []);
2530
+ function I(e) {
2531
+ Array.isArray(e) ? F.value = e : X.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
2532
+ }
2533
+ c(K, F), c(vt, P), c(yt, r.mergeTags?.onRequest ?? null), c(Pt, r.mergeTags?.autocomplete !== !1), c(_t, r.mergeTags?.showRawValue !== !1);
2534
+ let L = l(Fe(r.mergeTags?.tags ?? []));
2535
+ c(gt, L);
2536
+ let R = On({
2578
2537
  resolvePreview: r.resolvePreview,
2579
2538
  getContent: () => {
2580
2539
  let e = n.content.value;
2581
- return r.layout && n.state.previewMode ? he(r.layout, e) : e;
2540
+ return r.layout && n.state.previewMode ? fe(r.layout, e) : e;
2582
2541
  },
2583
2542
  isActive: () => n.state.previewMode
2584
2543
  });
2585
- c(_t, L), c(ot, r.resolvePreview);
2586
- let R = b(() => !(n.state.previewMode && L.isConfigured));
2587
- c(It, R);
2588
- let z = Dn();
2589
- c(et, z), c(Ot, l(!1)), c(rt, l(!1)), c(gt, r.logicTags?.tags ?? []), c(zt, r.logicTags?.pairs ?? []), c(st, r.logicTags?.onRequest ?? null), c(it, On()), c(ut, r.onRequestMedia ?? null), c(wt, r.canDropMedia ?? null), c(Bt, r.resolveImageUrl ? Tn(r.resolveImageUrl) : null), c(Dt, r.displayConditions?.conditions ?? []), c(Mt, r.displayConditions?.allowCustom ?? !1), c(At, e.capabilities ?? {}), c(ht, C);
2590
- let B = kn(r.lint) ? null : An({
2544
+ c(St, R), c(dt, r.resolvePreview);
2545
+ let z = b(() => !(n.state.previewMode && R.isConfigured));
2546
+ c(Vt, z);
2547
+ let B = jn();
2548
+ c(at, B), c(Nt, l(!1)), c(ct, l(!1)), c(xt, r.logicTags?.tags ?? []), c(Wt, r.logicTags?.pairs ?? []), c(ft, r.logicTags?.onRequest ?? null), c(lt, Mn()), c(ht, r.onRequestMedia ?? null), c(kt, r.canDropMedia ?? null), c(Gt, r.resolveImageUrl ? kn(r.resolveImageUrl) : null), c(Mt, r.displayConditions?.conditions ?? []), c(Lt, r.displayConditions?.allowCustom ?? !1), c(Ft, e.capabilities ?? {}), c(bt, C);
2549
+ let V = Nn(r.lint) ? null : Pn({
2591
2550
  content: n.content,
2592
2551
  options: r.lint ?? {},
2593
2552
  updateBlock: n.updateBlock,
2594
2553
  updateSettings: n.updateSettings,
2595
2554
  removeBlock: n.removeBlock
2596
2555
  });
2597
- c(lt, B);
2598
- function V() {
2599
- S?.(), B?.destroy(), x?.destroy(), g.destroy();
2556
+ c(mt, V);
2557
+ function H() {
2558
+ S?.(), V?.destroy(), x?.destroy(), g.destroy();
2600
2559
  }
2601
2560
  return {
2602
2561
  t: s,
2603
2562
  format: u,
2563
+ editorRoot: N,
2604
2564
  history: g,
2605
2565
  blockActions: _,
2606
2566
  conditionPreview: v,
@@ -2610,17 +2570,17 @@ function wa(e) {
2610
2570
  themeOverrides: p,
2611
2571
  registry: E,
2612
2572
  keyboardReorder: C,
2613
- templateLint: B,
2573
+ templateLint: V,
2614
2574
  popoverRoot: M,
2615
- mergeTagSampleMode: I,
2616
- previewResolution: L,
2617
- appliesConditionFilter: R,
2575
+ mergeTagSampleMode: L,
2576
+ previewResolution: R,
2577
+ appliesConditionFilter: z,
2618
2578
  registerCustomBlocks: O,
2619
- setMergeTags: F,
2620
- destroy: V
2579
+ setMergeTags: I,
2580
+ destroy: H
2621
2581
  };
2622
2582
  }
2623
2583
  //#endregion
2624
- export { ir as A, hr as C, Qn as D, mr as E, nr as M, tr as N, or as O, wn as P, Sr as S, vr as T, Rr as _, ra as a, Dr as b, Wi as c, vi as d, ai as f, Br as g, Hr as h, oa as i, rr as j, ar as k, ji as l, Zr as m, Sa as n, Xi as o, $r as p, fa as r, Ki as s, wa as t, Si as u, Nr as v, pr as w, Tr as x, Or as y };
2584
+ export { cr as A, yr as C, nr as D, vr as E, or as M, ar as N, ur as O, On as P, Er as S, Sr as T, Vr as _, sa as a, jr as b, qi as c, xi as d, ci as f, Ur as g, Gr as h, ua as i, sr as j, lr as k, Pi as l, ei as m, Ea as n, $i as o, ni as p, ga as r, Yi as s, Oa as t, Ti as u, Ir as v, _r as w, kr as x, Mr as y };
2625
2585
 
2626
- //# sourceMappingURL=useEditorCore-q0G4q-52.js.map
2586
+ //# sourceMappingURL=useEditorCore-DuC7kVti.js.map