@templatical/editor 0.46.0 → 0.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (305) hide show
  1. package/dist/{AiChatSidebar-DGcH4Lyo.js → AiChatSidebar-BPOv5Ra8.js} +14 -14
  2. package/dist/{AiFeatureMenu-B4q-0g1S.js → AiFeatureMenu-H_WT4YR8.js} +7 -7
  3. package/dist/{BlockIssueBadge-CZA1XvAh.js → BlockIssueBadge-AgO5abEB.js} +5 -5
  4. package/dist/BlockPreviewCanvas-CZDBSPoG.js +136 -0
  5. package/dist/{CloudHeaderExtras-ehMYJP68.js → CloudHeaderExtras-gXsTYoGG.js} +5 -5
  6. package/dist/{CloudPanels-BwOaAlKz.js → CloudPanels-H_GdbOfZ.js} +9 -9
  7. package/dist/{CollaboratorBar-qOZFRNPx.js → CollaboratorBar-BazGNMqN.js} +4 -4
  8. package/dist/{CommentsPanel-Bn6P5crU.js → CommentsPanel-CMgsG_yh.js} +2 -2
  9. package/dist/{CommentsSidebar-B8wT932T.js → CommentsSidebar-DCh8DTP8.js} +14 -14
  10. package/dist/CountdownBlock-zx39Dyby.js +92 -0
  11. package/dist/{CountdownToolbar-BeF21SeB.js → CountdownToolbar-DVuucA3v.js} +7 -7
  12. package/dist/{DesignReferenceSidebar-zH93uB15.js → DesignReferenceSidebar-DxNV4lQp.js} +12 -12
  13. package/dist/{IssuesPanel-Dltw9haP.js → IssuesPanel-CUpW54P4.js} +8 -8
  14. package/dist/{LoadingTrack-DROqNuuD.js → LoadingTrack-6XsqodoY.js} +1 -1
  15. package/dist/{LogicTagInsertButton-CHa-UD76.js → LogicTagInsertButton-DDYKnqmj.js} +13 -13
  16. package/dist/{MediaEditModal-EY1YYcpw.js → MediaEditModal-D_we0Scr.js} +4 -4
  17. package/dist/{MediaPanels-CRVFGFZW.js → MediaPanels-L95BwWV1.js} +2 -2
  18. package/dist/{MergeTagInput-B3ntd4dN.js → MergeTagInput-DAL998tx.js} +3 -3
  19. package/dist/{MergeTagModeToggle-C_06ZL0Q.js → MergeTagModeToggle-CjHO26rb.js} +7 -7
  20. package/dist/{ParagraphEditor-CxuW3TV0.js → ParagraphEditor-CcEN1N6n.js} +165 -150
  21. package/dist/{RestoreVersionDialog-B1n37M1Z.js → RestoreVersionDialog-B2OH5rgs.js} +6 -6
  22. package/dist/{RichTextEditorContent-CP_uULWB.js → RichTextEditorContent-BGeTg-QL.js} +12 -12
  23. package/dist/{SaveBlockDialog-BSKX_7_v.js → SaveBlockDialog-CCVyU-7y.js} +13 -13
  24. package/dist/{SavedBlocksBrowserModal-CHKrH1gO.js → SavedBlocksBrowserModal-_WmSeqIh.js} +14 -14
  25. package/dist/{SavedBlocksPanels-B-xDqBcz.js → SavedBlocksPanels-DVX_ruQ7.js} +2 -2
  26. package/dist/{SavedBlocksPickBar-D2J-g82g.js → SavedBlocksPickBar-DVJC28hP.js} +5 -5
  27. package/dist/{TemplateScoringPanel-3lHzuCl0.js → TemplateScoringPanel-U0QFiwdI.js} +16 -16
  28. package/dist/{TemplateSettings-D07K_Y4m.js → TemplateSettings-CdhTm9JQ.js} +12 -12
  29. package/dist/{TestEmailModal-BNPw_lID.js → TestEmailModal-BqToA_ls.js} +14 -14
  30. package/dist/{TestEmailPanel-8klWo8hE.js → TestEmailPanel-Cn4Ptq0j.js} +2 -2
  31. package/dist/{TitleEditor-CmC9OuhA.js → TitleEditor-CZdqeltH.js} +13 -13
  32. package/dist/{ToggleSwitch-COeyWGfT.js → ToggleSwitch-BR8Sgzib.js} +2 -2
  33. package/dist/{Toolbar-CqhRb6EM.js → Toolbar-OGakTBEg.js} +747 -628
  34. package/dist/{TplModal-BGFawHY9.js → TplModal-CoczSDma.js} +6 -6
  35. package/dist/{VersionHistoryMenu-D7zaTMrb.js → VersionHistoryMenu-DY5z5FZr.js} +10 -10
  36. package/dist/{VersionHistoryPanels-DdbGjEOR.js → VersionHistoryPanels-DowHeDAQ.js} +2 -2
  37. package/dist/{VersionPreviewBanner-BUKb9gc6.js → VersionPreviewBanner-Bo8NxBbh.js} +4 -4
  38. package/dist/WrapperBlock-BOABSX9W.js +46 -0
  39. package/dist/{blockTypeIcons-CVKo6V_v.js → blockTypeIcons-4E1U8f99.js} +5 -5
  40. package/dist/bundle-stats.json +6 -6
  41. package/dist/{ca-C__Dzq--.js → ca-DMoGGP9L.js} +21 -0
  42. package/dist/cdn/chunks/{AiChatSidebar-kCK4NZM9.js → AiChatSidebar-B72rI0be.js} +12 -12
  43. package/dist/cdn/chunks/{AiChatSidebar-kCK4NZM9.js.map → AiChatSidebar-B72rI0be.js.map} +1 -1
  44. package/dist/cdn/chunks/{AiFeatureMenu-K1dLeDft.js → AiFeatureMenu-BqSG9iEd.js} +6 -6
  45. package/dist/cdn/chunks/{AiFeatureMenu-K1dLeDft.js.map → AiFeatureMenu-BqSG9iEd.js.map} +1 -1
  46. package/dist/cdn/chunks/{BlockIssueBadge-05Q3L4RV.js → BlockIssueBadge-CS7ytN-z.js} +5 -5
  47. package/dist/cdn/chunks/{BlockIssueBadge-05Q3L4RV.js.map → BlockIssueBadge-CS7ytN-z.js.map} +1 -1
  48. package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js +138 -0
  49. package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js.map +1 -0
  50. package/dist/cdn/chunks/{CloudHeaderExtras-5ONQ1RCa.js → CloudHeaderExtras-DJXLTUHc.js} +5 -5
  51. package/dist/cdn/chunks/{CloudHeaderExtras-5ONQ1RCa.js.map → CloudHeaderExtras-DJXLTUHc.js.map} +1 -1
  52. package/dist/cdn/chunks/{CloudPanels-_irSdWbi.js → CloudPanels-D1fPLjG8.js} +8 -8
  53. package/dist/cdn/chunks/{CloudPanels-_irSdWbi.js.map → CloudPanels-D1fPLjG8.js.map} +1 -1
  54. package/dist/cdn/chunks/{CollaboratorBar-CZufI1On.js → CollaboratorBar-MeRQB1eN.js} +5 -5
  55. package/dist/cdn/chunks/{CollaboratorBar-CZufI1On.js.map → CollaboratorBar-MeRQB1eN.js.map} +1 -1
  56. package/dist/cdn/chunks/{CommentsPanel-VH_NJ5HZ.js → CommentsPanel-CmxPylNf.js} +3 -3
  57. package/dist/cdn/chunks/{CommentsPanel-VH_NJ5HZ.js.map → CommentsPanel-CmxPylNf.js.map} +1 -1
  58. package/dist/cdn/chunks/{CommentsSidebar-CYPH5rVi.js → CommentsSidebar-CrleQTbo.js} +13 -13
  59. package/dist/cdn/chunks/{CommentsSidebar-CYPH5rVi.js.map → CommentsSidebar-CrleQTbo.js.map} +1 -1
  60. package/dist/cdn/chunks/CountdownBlock-Dasj191h.js +94 -0
  61. package/dist/cdn/chunks/CountdownBlock-Dasj191h.js.map +1 -0
  62. package/dist/cdn/chunks/{CountdownToolbar-BaXCefQM.js → CountdownToolbar-DPIOtlN0.js} +8 -8
  63. package/dist/cdn/chunks/{CountdownToolbar-BaXCefQM.js.map → CountdownToolbar-DPIOtlN0.js.map} +1 -1
  64. package/dist/cdn/chunks/{DesignReferenceSidebar-GjkpHylX.js → DesignReferenceSidebar-BgTNqgCy.js} +8 -8
  65. package/dist/cdn/chunks/{DesignReferenceSidebar-GjkpHylX.js.map → DesignReferenceSidebar-BgTNqgCy.js.map} +1 -1
  66. package/dist/cdn/chunks/{IssuesPanel-C1Lv2y_O.js → IssuesPanel-BGjLcNpQ.js} +6 -6
  67. package/dist/cdn/chunks/{IssuesPanel-C1Lv2y_O.js.map → IssuesPanel-BGjLcNpQ.js.map} +1 -1
  68. package/dist/cdn/chunks/{LoadingTrack-Cg1HRIND.js → LoadingTrack-DbH97JR9.js} +2 -2
  69. package/dist/cdn/chunks/{LoadingTrack-Cg1HRIND.js.map → LoadingTrack-DbH97JR9.js.map} +1 -1
  70. package/dist/cdn/chunks/{LogicTagInsertButton-BYjdrDnQ.js → LogicTagInsertButton-BEsqPhMr.js} +11 -11
  71. package/dist/cdn/chunks/{LogicTagInsertButton-BYjdrDnQ.js.map → LogicTagInsertButton-BEsqPhMr.js.map} +1 -1
  72. package/dist/cdn/chunks/{MediaEditModal-CD3fVbWI.js → MediaEditModal-C1Ao0i2c.js} +4 -4
  73. package/dist/cdn/chunks/{MediaEditModal-CD3fVbWI.js.map → MediaEditModal-C1Ao0i2c.js.map} +1 -1
  74. package/dist/cdn/chunks/{MediaPanels-B2AyUUcf.js → MediaPanels-1GPYiZZ0.js} +3 -3
  75. package/dist/cdn/chunks/{MediaPanels-B2AyUUcf.js.map → MediaPanels-1GPYiZZ0.js.map} +1 -1
  76. package/dist/cdn/chunks/{MergeTagInput-Cx67J_vg.js → MergeTagInput-Dy13_OLc.js} +4 -4
  77. package/dist/cdn/chunks/{MergeTagInput-Cx67J_vg.js.map → MergeTagInput-Dy13_OLc.js.map} +1 -1
  78. package/dist/cdn/chunks/{MergeTagModeToggle-DZ4EuXVp.js → MergeTagModeToggle-B2CPZOeF.js} +6 -6
  79. package/dist/cdn/chunks/{MergeTagModeToggle-DZ4EuXVp.js.map → MergeTagModeToggle-B2CPZOeF.js.map} +1 -1
  80. package/dist/cdn/chunks/{ParagraphEditor-DndEFXmR.js → ParagraphEditor-BGLIw7kg.js} +91 -76
  81. package/dist/cdn/chunks/ParagraphEditor-BGLIw7kg.js.map +1 -0
  82. package/dist/cdn/chunks/{RestoreVersionDialog-CFYs13a4.js → RestoreVersionDialog-BhykE8En.js} +8 -8
  83. package/dist/cdn/chunks/{RestoreVersionDialog-CFYs13a4.js.map → RestoreVersionDialog-BhykE8En.js.map} +1 -1
  84. package/dist/cdn/chunks/{RichTextEditorContent-DKkDQ0dc.js → RichTextEditorContent-B-txUvPL.js} +11 -11
  85. package/dist/cdn/chunks/{RichTextEditorContent-DKkDQ0dc.js.map → RichTextEditorContent-B-txUvPL.js.map} +1 -1
  86. package/dist/cdn/chunks/{SaveBlockDialog-BOA2RaC_.js → SaveBlockDialog-BHqEp7jw.js} +40 -40
  87. package/dist/cdn/chunks/{SaveBlockDialog-BOA2RaC_.js.map → SaveBlockDialog-BHqEp7jw.js.map} +1 -1
  88. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DQDVek3K.js → SavedBlocksBrowserModal-BhR6AI0f.js} +10 -10
  89. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DQDVek3K.js.map → SavedBlocksBrowserModal-BhR6AI0f.js.map} +1 -1
  90. package/dist/cdn/chunks/{SavedBlocksPanels-Lu3tJ3QA.js → SavedBlocksPanels-YwffJtfY.js} +3 -3
  91. package/dist/cdn/chunks/{SavedBlocksPanels-Lu3tJ3QA.js.map → SavedBlocksPanels-YwffJtfY.js.map} +1 -1
  92. package/dist/cdn/chunks/{SavedBlocksPickBar-D7MtqG6r.js → SavedBlocksPickBar-BtpFU7es.js} +6 -6
  93. package/dist/cdn/chunks/{SavedBlocksPickBar-D7MtqG6r.js.map → SavedBlocksPickBar-BtpFU7es.js.map} +1 -1
  94. package/dist/cdn/chunks/{TemplateScoringPanel-C_57Bfkf.js → TemplateScoringPanel-N4ySFh5w.js} +12 -12
  95. package/dist/cdn/chunks/{TemplateScoringPanel-C_57Bfkf.js.map → TemplateScoringPanel-N4ySFh5w.js.map} +1 -1
  96. package/dist/cdn/chunks/{TemplateSettings-rZiHmq24.js → TemplateSettings-C7b5X34U.js} +13 -13
  97. package/dist/cdn/chunks/TemplateSettings-C7b5X34U.js.map +1 -0
  98. package/dist/cdn/chunks/{TestEmailModal-DWEyHXH2.js → TestEmailModal-DHJKI5y5.js} +11 -11
  99. package/dist/cdn/chunks/{TestEmailModal-DWEyHXH2.js.map → TestEmailModal-DHJKI5y5.js.map} +1 -1
  100. package/dist/cdn/chunks/{TestEmailPanel-XXMD-Lnr.js → TestEmailPanel-lYtzTXpR.js} +3 -3
  101. package/dist/cdn/chunks/{TestEmailPanel-XXMD-Lnr.js.map → TestEmailPanel-lYtzTXpR.js.map} +1 -1
  102. package/dist/cdn/chunks/{TitleEditor-D1F0YoE-.js → TitleEditor-5eY01ypW.js} +15 -15
  103. package/dist/cdn/chunks/{TitleEditor-D1F0YoE-.js.map → TitleEditor-5eY01ypW.js.map} +1 -1
  104. package/dist/cdn/chunks/{ToggleSwitch-B5U9cqhi.js → ToggleSwitch-BN8rMC2m.js} +3 -3
  105. package/dist/cdn/chunks/{ToggleSwitch-B5U9cqhi.js.map → ToggleSwitch-BN8rMC2m.js.map} +1 -1
  106. package/dist/cdn/chunks/{Toolbar-C_5HfUQq.js → Toolbar-Ik54UO_-.js} +696 -575
  107. package/dist/cdn/chunks/Toolbar-Ik54UO_-.js.map +1 -0
  108. package/dist/cdn/chunks/{TplModal-CYBbPCHL.js → TplModal-WIBiBrGy.js} +6 -6
  109. package/dist/cdn/chunks/TplModal-WIBiBrGy.js.map +1 -0
  110. package/dist/cdn/chunks/{VersionHistoryMenu-DbxuJgDO.js → VersionHistoryMenu-CZnlS9K5.js} +6 -6
  111. package/dist/cdn/chunks/{VersionHistoryMenu-DbxuJgDO.js.map → VersionHistoryMenu-CZnlS9K5.js.map} +1 -1
  112. package/dist/cdn/chunks/{VersionHistoryPanels-Dq12VsTX.js → VersionHistoryPanels-xjLSpR1e.js} +3 -3
  113. package/dist/cdn/chunks/{VersionHistoryPanels-Dq12VsTX.js.map → VersionHistoryPanels-xjLSpR1e.js.map} +1 -1
  114. package/dist/cdn/chunks/{VersionPreviewBanner-HRERIH-v.js → VersionPreviewBanner-sARpn4hh.js} +5 -5
  115. package/dist/cdn/chunks/{VersionPreviewBanner-HRERIH-v.js.map → VersionPreviewBanner-sARpn4hh.js.map} +1 -1
  116. package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js +48 -0
  117. package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js.map +1 -0
  118. package/dist/cdn/chunks/{blockTypeIcons-DdZP-3FM.js → blockTypeIcons-D3g5QzdT.js} +2 -2
  119. package/dist/cdn/chunks/{blockTypeIcons-DdZP-3FM.js.map → blockTypeIcons-D3g5QzdT.js.map} +1 -1
  120. package/dist/cdn/chunks/{ca-C__Dzq--.js → ca-DMoGGP9L.js} +22 -1
  121. package/dist/cdn/chunks/ca-DMoGGP9L.js.map +1 -0
  122. package/dist/cdn/chunks/{cloud-h1vaHp2p.js → cloud-Cd7ptfhL.js} +3 -3
  123. package/dist/cdn/chunks/{cloud-h1vaHp2p.js.map → cloud-Cd7ptfhL.js.map} +1 -1
  124. package/dist/cdn/chunks/{createCloudRuntime-bJN9EM1H.js → createCloudRuntime-DtIZ2Lee.js} +17 -8
  125. package/dist/cdn/chunks/createCloudRuntime-DtIZ2Lee.js.map +1 -0
  126. package/dist/cdn/chunks/{de-CGjbQ2mt.js → de-DgAelLbM.js} +22 -1
  127. package/dist/cdn/chunks/de-DgAelLbM.js.map +1 -0
  128. package/dist/cdn/chunks/{dist-B7W-Lb65.js → dist-CjL6JHML.js} +3 -3
  129. package/dist/cdn/chunks/{dist-B7W-Lb65.js.map → dist-CjL6JHML.js.map} +1 -1
  130. package/dist/cdn/chunks/{dist-C5nRd_ua.js → dist-MNQYSEWU.js} +4 -4
  131. package/dist/cdn/chunks/{dist-C5nRd_ua.js.map → dist-MNQYSEWU.js.map} +1 -1
  132. package/dist/cdn/chunks/{draggable-BUTN5vZC.js → draggable-DrsNwZuB.js} +1673 -1595
  133. package/dist/cdn/chunks/draggable-DrsNwZuB.js.map +1 -0
  134. package/dist/cdn/chunks/{editor-modal-BpsbYA4_.js → editor-modal-Bcwo0orC.js} +34 -34
  135. package/dist/cdn/chunks/{editor-modal-BpsbYA4_.js.map → editor-modal-Bcwo0orC.js.map} +1 -1
  136. package/dist/cdn/chunks/en-BANFWZdr.js +1 -0
  137. package/dist/cdn/chunks/{en-BTiiAC-B.js → en-Dekrl7HA.js} +22 -1
  138. package/dist/cdn/chunks/en-Dekrl7HA.js.map +1 -0
  139. package/dist/cdn/chunks/{es-CdTOcSTf.js → es-BaZzyidV.js} +22 -1
  140. package/dist/cdn/chunks/es-BaZzyidV.js.map +1 -0
  141. package/dist/cdn/chunks/{extensions-CrmXF4MW.js → extensions-T-t8MKDb.js} +7 -7
  142. package/dist/cdn/chunks/{extensions-CrmXF4MW.js.map → extensions-T-t8MKDb.js.map} +1 -1
  143. package/dist/cdn/chunks/{fr-B6lcLLzC.js → fr-C5ucb1HK.js} +22 -1
  144. package/dist/cdn/chunks/fr-C5ucb1HK.js.map +1 -0
  145. package/dist/cdn/chunks/{icons-Dr9erFGs.js → icons-C4fX9Bwy.js} +27 -27
  146. package/dist/cdn/chunks/{icons-Dr9erFGs.js.map → icons-C4fX9Bwy.js.map} +1 -1
  147. package/dist/cdn/chunks/{ja-BhdkqENz.js → ja-CUgR3mV0.js} +22 -1
  148. package/dist/cdn/chunks/ja-CUgR3mV0.js.map +1 -0
  149. package/dist/cdn/chunks/{keys-BKu-LOk5.js → keys-HI-INbkz.js} +2 -2
  150. package/dist/cdn/chunks/{keys-BKu-LOk5.js.map → keys-HI-INbkz.js.map} +1 -1
  151. package/dist/{nl-CE3YItYg.js → cdn/chunks/nl-qrLY7hMS.js} +23 -0
  152. package/dist/cdn/chunks/nl-qrLY7hMS.js.map +1 -0
  153. package/dist/cdn/chunks/{preRenderCustomBlocks-CyGB3lZr.js → preRenderCustomBlocks-Co0oi0Jf.js} +4 -2
  154. package/dist/cdn/chunks/preRenderCustomBlocks-Co0oi0Jf.js.map +1 -0
  155. package/dist/cdn/chunks/{pt-BR-CUIT4rq4.js → pt-BR-C6hMTQYi.js} +22 -1
  156. package/dist/cdn/chunks/pt-BR-C6hMTQYi.js.map +1 -0
  157. package/dist/cdn/chunks/socialIcons-DACw1wA8.js +1103 -0
  158. package/dist/cdn/chunks/socialIcons-DACw1wA8.js.map +1 -0
  159. package/dist/{dist-BI_LeQGl.js → cdn/chunks/src-BnJlDuyB.js} +392 -249
  160. package/dist/cdn/chunks/src-BnJlDuyB.js.map +1 -0
  161. package/dist/cdn/chunks/{src-BMw3u-iV.js → src-Bu0qBpbf.js} +214 -212
  162. package/dist/cdn/chunks/src-Bu0qBpbf.js.map +1 -0
  163. package/dist/cdn/chunks/{src-B0pZeTYO.js → src-CHlVFp7r.js} +308 -268
  164. package/dist/cdn/chunks/src-CHlVFp7r.js.map +1 -0
  165. package/dist/{styleConstants-C_YAPdQS.js → cdn/chunks/styleConstants-D1Jz-TFU.js} +9 -28
  166. package/dist/cdn/chunks/{styleConstants-C_YAPdQS.js.map → styleConstants-D1Jz-TFU.js.map} +1 -1
  167. package/dist/cdn/chunks/{tiptap-CYDXLO17.js → tiptap-BPigZk5G.js} +3258 -3098
  168. package/dist/cdn/chunks/tiptap-BPigZk5G.js.map +1 -0
  169. package/dist/cdn/chunks/{useAliveFlag-DzyXG-8A.js → useAliveFlag-DCB96vzR.js} +2 -2
  170. package/dist/cdn/chunks/{useAliveFlag-DzyXG-8A.js.map → useAliveFlag-DCB96vzR.js.map} +1 -1
  171. package/dist/cdn/chunks/{useCloudI18n-Cgk0ts_F.js → useCloudI18n-BBF4waXO.js} +3 -3
  172. package/dist/cdn/chunks/{useCloudI18n-Cgk0ts_F.js.map → useCloudI18n-BBF4waXO.js.map} +1 -1
  173. package/dist/cdn/chunks/{useEditorCore-DuC7kVti.js → useEditorCore-Bf2d1DKI.js} +543 -532
  174. package/dist/cdn/chunks/useEditorCore-Bf2d1DKI.js.map +1 -0
  175. package/dist/cdn/chunks/useEditorRoot-CTc6O8al.js +10 -0
  176. package/dist/cdn/chunks/{useEditorRoot-DDPIcEOO.js.map → useEditorRoot-CTc6O8al.js.map} +1 -1
  177. package/dist/cdn/chunks/{useI18n-DO4NTunW.js → useI18n-DUlyyIJJ.js} +3 -3
  178. package/dist/cdn/chunks/{useI18n-DO4NTunW.js.map → useI18n-DUlyyIJJ.js.map} +1 -1
  179. package/dist/cdn/chunks/{useLogicTag-B3uV3XHG.js → useLogicTag-3S63go4E.js} +4 -4
  180. package/dist/cdn/chunks/{useLogicTag-B3uV3XHG.js.map → useLogicTag-3S63go4E.js.map} +1 -1
  181. package/dist/cdn/chunks/{useMergeTag-DJLM-7WQ.js → useMergeTag-BQtxUHq1.js} +4 -4
  182. package/dist/cdn/chunks/{useMergeTag-DJLM-7WQ.js.map → useMergeTag-BQtxUHq1.js.map} +1 -1
  183. package/dist/cdn/chunks/{usePopoverPosition-CtVNwoHj.js → usePopoverPosition-IbaW6-Ao.js} +3 -3
  184. package/dist/cdn/chunks/{usePopoverPosition-CtVNwoHj.js.map → usePopoverPosition-IbaW6-Ao.js.map} +1 -1
  185. package/dist/cdn/chunks/{useScrollToBlock-CpmB5KxW.js → useScrollToBlock-uUa601I4.js} +3 -3
  186. package/dist/cdn/chunks/{useScrollToBlock-CpmB5KxW.js.map → useScrollToBlock-uUa601I4.js.map} +1 -1
  187. package/dist/cdn/chunks/withCurrentFont-DwJd-lKc.js +21 -0
  188. package/dist/cdn/chunks/{withCurrentFont-isIyuezD.js.map → withCurrentFont-DwJd-lKc.js.map} +1 -1
  189. package/dist/cdn/editor.css +1 -1
  190. package/dist/cdn/editor.js +614 -610
  191. package/dist/cdn/editor.js.map +1 -1
  192. package/dist/{check-ZKvtMdpe.js → check-B5R4zXr7.js} +1 -1
  193. package/dist/{chevron-down-RrwkYMlp.js → chevron-down-BKyl85NV.js} +1 -1
  194. package/dist/{chevron-right-CklHaa1U.js → chevron-right-BmToZ8qX.js} +1 -1
  195. package/dist/{chevron-up-DjN2NTbo.js → chevron-up-DNYdOxPC.js} +1 -1
  196. package/dist/{circle-alert-BR1_Yfb-.js → circle-alert-Dx9ju3YZ.js} +1 -1
  197. package/dist/{clock-BEagNj21.js → clock-Dv9bxsSH.js} +1 -1
  198. package/dist/{cloud-DPGjMGfv.js → cloud-DwjaAdwK.js} +2 -2
  199. package/dist/{copy-D6DNoSq1.js → copy-BsKl4dcy.js} +1 -1
  200. package/dist/{createCloudRuntime-D0RRgWab.js → createCloudRuntime-C8gpPsSi.js} +16 -7
  201. package/dist/{createLucideIcon-BAPyioGd.js → createLucideIcon-DziKp5iU.js} +6 -6
  202. package/dist/{de-CGjbQ2mt.js → de-DgAelLbM.js} +21 -0
  203. package/dist/{dist-Bd7khQsg.js → dist-3HpYixwF.js} +2 -2
  204. package/dist/{dist-lL3nVbxV.js → dist-BC-ZEYLd.js} +2 -2
  205. package/dist/dist-BPFcLKTw.js +5 -0
  206. package/dist/{cdn/chunks/src-Bh0MoJ67.js → dist-C8koXLhl.js} +295 -298
  207. package/dist/{dist-C-VFTX82.js → dist-CUWI-IvA.js} +2 -2
  208. package/dist/{dist-Bc30883t.js → dist-Cr7RPxI9.js} +5 -5
  209. package/dist/{dist-DapsJxn_.js → dist-CuLwJF7H.js} +2 -2
  210. package/dist/{dist-5KNKxglR.js → dist-CyBwSiAa.js} +2 -2
  211. package/dist/dist-D7Yj7E-F.js +5 -0
  212. package/dist/{dist-B_vYjCsk.js → dist-DAAJogrx.js} +3 -3
  213. package/dist/{dist-CMcFD7gP.js → dist-DBxgrOeo.js} +1906 -1746
  214. package/dist/{dist-DHensKDY.js → dist-DPcf6XZ8.js} +2 -2
  215. package/dist/{dist-5DAb7bYT.js → dist-DVNjPKsH.js} +2 -2
  216. package/dist/{dist-C3eH9-N2.js → dist-DXyGqIDE.js} +2 -2
  217. package/dist/{dist-1H4cnaoD.js → dist-DuufrR8O.js} +4 -4
  218. package/dist/{editor-modal-oRmkDlUs.js → editor-modal-BwyIUnV_.js} +27 -27
  219. package/dist/en-CC-57eC_.js +1 -0
  220. package/dist/{en-BTiiAC-B.js → en-Dekrl7HA.js} +21 -0
  221. package/dist/{es-CdTOcSTf.js → es-BaZzyidV.js} +21 -0
  222. package/dist/{extensions-CYigjb1g.js → extensions-DHyKjsNZ.js} +9 -9
  223. package/dist/{eye-DvsTBI57.js → eye-DQuinb9k.js} +1 -1
  224. package/dist/{fr-B6lcLLzC.js → fr-C5ucb1HK.js} +21 -0
  225. package/dist/{image-up-BoFGZm5Q.js → image-up-yTfLjOrj.js} +1 -1
  226. package/dist/index.d.ts +58 -8
  227. package/dist/{info-0bQQGjTV.js → info-C7OjlS11.js} +1 -1
  228. package/dist/{ja-BhdkqENz.js → ja-CUgR3mV0.js} +21 -0
  229. package/dist/{keys-injl74ob.js → keys-BKFq19a2.js} +1 -1
  230. package/dist/{link-Cstrr3Ep.js → link-CrUFaZ0t.js} +1 -1
  231. package/dist/{list-Dx9Rmy5s.js → list-CLgv6M-k.js} +1 -1
  232. package/dist/{loader-circle-D8Qqs0MG.js → loader-circle-BXM5VO0K.js} +1 -1
  233. package/dist/{message-circle-D78ELX6I.js → message-circle-BisdQ8H9.js} +1 -1
  234. package/dist/{cdn/chunks/nl-CE3YItYg.js → nl-qrLY7hMS.js} +21 -2
  235. package/dist/{package-DOvM9sHE.js → package-C1T4AxV1.js} +1 -1
  236. package/dist/{pencil-B6m0OG0n.js → pencil-oo2mwf4C.js} +1 -1
  237. package/dist/{plus-D-nEKxTc.js → plus-BIilXopD.js} +1 -1
  238. package/dist/{preRenderCustomBlocks-DokBGA_M.js → preRenderCustomBlocks-lFX0HHiV.js} +5 -3
  239. package/dist/{pt-BR-CUIT4rq4.js → pt-BR-C6hMTQYi.js} +21 -0
  240. package/dist/{refresh-cw-CXZS-R1U.js → refresh-cw-DrLlkEVC.js} +1 -1
  241. package/dist/{runtime-dom.esm-bundler-CO67ema2.js → runtime-dom.esm-bundler-lFF-QG3j.js} +3 -3
  242. package/dist/{search-DSvil0jo.js → search-DNu9lImk.js} +1 -1
  243. package/dist/{send-BBR28V94.js → send-DDNh3LoJ.js} +1 -1
  244. package/dist/{shield-check-ByxUnaU9.js → shield-check-aXM3o14f.js} +1 -1
  245. package/dist/{smartphone-CNOwGf5T.js → smartphone-isccgDee.js} +1 -1
  246. package/dist/socialIcons-BctavKBN.js +1180 -0
  247. package/dist/{sparkles-DO1hzwzf.js → sparkles-CIMfFxKv.js} +1 -1
  248. package/dist/style.css +1 -1
  249. package/dist/{cdn/chunks/styleConstants-C_YAPdQS.js → styleConstants-D1Jz-TFU.js} +7 -30
  250. package/dist/templatical-editor.js +559 -555
  251. package/dist/{text-align-start-BKEKMheq.js → text-align-start-C4JFeqsq.js} +1 -1
  252. package/dist/{trash-CKEQH4vH.js → trash-8ZD9pK_c.js} +1 -1
  253. package/dist/{triangle-alert-BHnfd3fV.js → triangle-alert-pq45xEHl.js} +1 -1
  254. package/dist/{upload-C8uO7KsR.js → upload-DrNFmVes.js} +1 -1
  255. package/dist/{useAliveFlag-6PtarpNZ.js → useAliveFlag-Dd06mRxe.js} +1 -1
  256. package/dist/{useCloudI18n-GvIOLziA.js → useCloudI18n-Nwqo7pI_.js} +2 -2
  257. package/dist/{useEditorCore-BJAQMvNW.js → useEditorCore-BcT7UI4e.js} +1011 -1006
  258. package/dist/{useEditorRoot-OWzNpDdT.js → useEditorRoot-BD3piYtD.js} +2 -2
  259. package/dist/{useI18n-uF11q85g.js → useI18n-CxVEpurs.js} +2 -2
  260. package/dist/{useLogicTag-B5gjcMzn.js → useLogicTag-D-dI8H6p.js} +3 -3
  261. package/dist/{useMergeTag-BwsBIDzR.js → useMergeTag-5wMeDBi-.js} +5 -5
  262. package/dist/{usePopoverPosition-DkBrHfCo.js → usePopoverPosition-CwnH1o5g.js} +2 -2
  263. package/dist/{useScrollToBlock-JRxhT1u_.js → useScrollToBlock-Do3suaqp.js} +3 -3
  264. package/dist/{vue.runtime.esm-bundler-CctRY8kr.js → vue.runtime.esm-bundler-CAzmrXdD.js} +1215 -1155
  265. package/dist/{withCurrentFont-C9vqrduu.js → withCurrentFont-B4YnsG_2.js} +1 -1
  266. package/dist/{x-gEC0yMci.js → x-CBFKGLB1.js} +1 -1
  267. package/package.json +23 -23
  268. package/dist/BlockPreviewCanvas-DIZ0KgUD.js +0 -133
  269. package/dist/CountdownBlock-RNx3hIu0.js +0 -91
  270. package/dist/WrapperBlock-CTkmA887.js +0 -34
  271. package/dist/cdn/chunks/BlockPreviewCanvas-Djz9YAFx.js +0 -135
  272. package/dist/cdn/chunks/BlockPreviewCanvas-Djz9YAFx.js.map +0 -1
  273. package/dist/cdn/chunks/CountdownBlock-lHU3Lu7Q.js +0 -93
  274. package/dist/cdn/chunks/CountdownBlock-lHU3Lu7Q.js.map +0 -1
  275. package/dist/cdn/chunks/ParagraphEditor-DndEFXmR.js.map +0 -1
  276. package/dist/cdn/chunks/TemplateSettings-rZiHmq24.js.map +0 -1
  277. package/dist/cdn/chunks/Toolbar-C_5HfUQq.js.map +0 -1
  278. package/dist/cdn/chunks/TplModal-CYBbPCHL.js.map +0 -1
  279. package/dist/cdn/chunks/WrapperBlock-CJ0CLqi2.js +0 -36
  280. package/dist/cdn/chunks/WrapperBlock-CJ0CLqi2.js.map +0 -1
  281. package/dist/cdn/chunks/ca-C__Dzq--.js.map +0 -1
  282. package/dist/cdn/chunks/createCloudRuntime-bJN9EM1H.js.map +0 -1
  283. package/dist/cdn/chunks/de-CGjbQ2mt.js.map +0 -1
  284. package/dist/cdn/chunks/draggable-BUTN5vZC.js.map +0 -1
  285. package/dist/cdn/chunks/en-BTiiAC-B.js.map +0 -1
  286. package/dist/cdn/chunks/en-CAt6y87e.js +0 -1
  287. package/dist/cdn/chunks/es-CdTOcSTf.js.map +0 -1
  288. package/dist/cdn/chunks/fr-B6lcLLzC.js.map +0 -1
  289. package/dist/cdn/chunks/ja-BhdkqENz.js.map +0 -1
  290. package/dist/cdn/chunks/nl-CE3YItYg.js.map +0 -1
  291. package/dist/cdn/chunks/preRenderCustomBlocks-CyGB3lZr.js.map +0 -1
  292. package/dist/cdn/chunks/pt-BR-CUIT4rq4.js.map +0 -1
  293. package/dist/cdn/chunks/socialIcons-ClJVDZwt.js +0 -1031
  294. package/dist/cdn/chunks/socialIcons-ClJVDZwt.js.map +0 -1
  295. package/dist/cdn/chunks/src-B0pZeTYO.js.map +0 -1
  296. package/dist/cdn/chunks/src-BMw3u-iV.js.map +0 -1
  297. package/dist/cdn/chunks/src-Bh0MoJ67.js.map +0 -1
  298. package/dist/cdn/chunks/tiptap-CYDXLO17.js.map +0 -1
  299. package/dist/cdn/chunks/useEditorCore-DuC7kVti.js.map +0 -1
  300. package/dist/cdn/chunks/useEditorRoot-DDPIcEOO.js +0 -10
  301. package/dist/cdn/chunks/withCurrentFont-isIyuezD.js +0 -21
  302. package/dist/dist-CFC4pg2o.js +0 -5
  303. package/dist/dist-j2FavQmU.js +0 -5
  304. package/dist/en-Bk4iCfjp.js +0 -1
  305. package/dist/socialIcons-Ct_IoqPQ.js +0 -1107
@@ -1,50 +1,47 @@
1
- import { $ as e, A as t, At as n, B as r, D as i, E as a, F as o, J as s, K as c, M as l, N as u, O as d, R as f, S as p, V as m, W as h, Y as g, Z as _, _ as v, at as y, b, c as x, d as S, g as C, h as w, it as T, j as E, jt as D, k as O, kt as k, l as A, nt as j, r as M, rt as ee, s as N, u as P, v as F, y as te } from "./vue.runtime.esm-bundler-CctRY8kr.js";
2
- import { c as I, o as ne, s as re } from "./runtime-dom.esm-bundler-CO67ema2.js";
3
- import { $ as ie, A as ae, C as oe, E as se, G as ce, H as le, K as ue, L as de, M as fe, O as pe, P as me, Q as he, R as ge, S as _e, T as ve, U as ye, V as be, W as xe, Y as Se, _ as Ce, a as we, at as Te, ct as Ee, d as De, et as Oe, h as ke, i as Ae, it as je, j as Me, k as Ne, l as Pe, lt as Fe, nt as Ie, o as Le, ot as Re, r as ze, rt as Be, s as Ve, st as He, tt as Ue, ut as We, v as Ge, w as Ke, x as qe, y as Je, z as Ye } from "./dist-BI_LeQGl.js";
4
- import { C as Xe, _ as Ze, a as Qe, b as $e, c as et, d as tt, g as nt, i as rt, l as it, n as at, o as ot, s as st, t as ct, u as lt, w as ut, x as dt } from "./socialIcons-Ct_IoqPQ.js";
5
- import { _ as ft, h as pt, v as mt, y as ht } from "./dist-C-VFTX82.js";
6
- import { a as gt, c as _t, i as vt } from "./dist-B_vYjCsk.js";
7
- import { $ as yt, A as bt, B as xt, C as St, D as Ct, E as wt, F as Tt, G as Et, H as Dt, I as Ot, J as kt, K as At, L as jt, M as Mt, N as Nt, O as Pt, P as Ft, Q as It, R as Lt, S as Rt, T as zt, V as Bt, X as Vt, Y as Ht, Z as Ut, _ as Wt, a as Gt, b as Kt, c as qt, d as Jt, f as Yt, g as Xt, h as Zt, j as Qt, k as $t, l as en, m as tn, n as nn, o as rn, p as an, q as on, r as sn, s as cn, v as ln, w as un, x as dn, y as fn, z as pn } from "./keys-injl74ob.js";
8
- import { t as mn } from "./useI18n-uF11q85g.js";
9
- import { t as hn } from "./logger-BBlvSn6q.js";
10
- import { i as gn, r as _n, s as vn, t as yn } from "./usePopoverPosition-DkBrHfCo.js";
11
- import { r as bn, t as xn } from "./templateSettingsFields-YCFVBVYh.js";
12
- import { t as Sn } from "./createLucideIcon-BAPyioGd.js";
13
- import { t as Cn } from "./copy-D6DNoSq1.js";
14
- import { t as wn } from "./loader-circle-D8Qqs0MG.js";
15
- import { t as Tn } from "./message-circle-D78ELX6I.js";
16
- import { t as En } from "./trash-CKEQH4vH.js";
17
- import { t as Dn } from "./triangle-alert-BHnfd3fV.js";
18
- import { t as On } from "./upload-C8uO7KsR.js";
19
- import { t as kn } from "./LoadingTrack-DROqNuuD.js";
20
- import { t as An } from "./_plugin-vue_export-helper-B3ysoDQm.js";
21
- import { t as jn } from "./useEditorRoot-OWzNpDdT.js";
22
- import "./useCloudI18n-GvIOLziA.js";
23
- import { t as Mn } from "./useMergeTag-BwsBIDzR.js";
24
- import { t as Nn } from "./useLogicTag-B5gjcMzn.js";
25
- import { t as Pn } from "./useAliveFlag-6PtarpNZ.js";
1
+ import { $ as e, A as t, At as n, B as r, D as i, E as a, F as o, J as s, K as c, M as l, N as u, O as d, R as f, S as p, V as m, W as h, Y as g, Z as _, _ as v, at as y, b, c as x, d as S, g as C, h as w, it as T, j as E, jt as D, k as O, kt as k, l as A, nt as j, r as M, rt as ee, s as N, u as P, v as F, y as te } from "./vue.runtime.esm-bundler-CAzmrXdD.js";
2
+ import { c as I, o as ne, s as re } from "./runtime-dom.esm-bundler-lFF-QG3j.js";
3
+ import { D as ie, E as ae, F as oe, H as se, J as ce, K as le, L as ue, M as de, N as fe, O as pe, P as me, R as he, S as ge, T as _e, U as ve, W as ye, X as be, Y as xe, Z as Se, _ as Ce, _t as we, a as Te, at as Ee, b as De, c as Oe, ct as ke, dt as Ae, et as je, f as Me, ft as Ne, gt as Pe, ht as Fe, it as Ie, j as Le, k as Re, lt as ze, mt as Be, o as Ve, ot as He, p as Ue, pt as We, q as Ge, rt as Ke, s as qe, st as Je, u as Ye, ut as Xe, w as Ze, x as Qe, z as $e } from "./dist-C8koXLhl.js";
4
+ import { S as et, T as tt, _ as nt, a as rt, c as it, d as at, f as ot, i as st, l as ct, n as lt, o as ut, s as dt, t as ft, u as pt, v as mt, w as ht, x as gt } from "./socialIcons-BctavKBN.js";
5
+ import { _ as _t, h as vt, v as yt, y as bt } from "./dist-CUWI-IvA.js";
6
+ import { a as xt, c as St, i as Ct } from "./dist-DAAJogrx.js";
7
+ import { $ as wt, A as Tt, B as Et, C as Dt, D as Ot, E as kt, F as At, G as jt, H as Mt, I as Nt, J as Pt, K as Ft, L as It, M as Lt, N as Rt, O as zt, P as Bt, Q as Vt, R as Ht, S as Ut, T as Wt, V as Gt, X as Kt, Y as qt, Z as Jt, _ as Yt, a as Xt, b as Zt, c as Qt, d as $t, f as en, g as tn, h as nn, j as rn, k as an, l as on, m as sn, n as cn, o as ln, p as un, q as dn, r as fn, s as pn, v as mn, w as hn, x as gn, y as _n, z as vn } from "./keys-BKFq19a2.js";
8
+ import { t as yn } from "./useI18n-CxVEpurs.js";
9
+ import { t as bn } from "./logger-BBlvSn6q.js";
10
+ import { i as xn, r as Sn, s as Cn, t as wn } from "./usePopoverPosition-CwnH1o5g.js";
11
+ import { r as Tn, t as En } from "./templateSettingsFields-YCFVBVYh.js";
12
+ import { t as Dn } from "./createLucideIcon-DziKp5iU.js";
13
+ import { t as On } from "./copy-BsKl4dcy.js";
14
+ import { t as kn } from "./message-circle-BisdQ8H9.js";
15
+ import { t as An } from "./trash-8ZD9pK_c.js";
16
+ import { t as jn } from "./triangle-alert-pq45xEHl.js";
17
+ import { t as Mn } from "./LoadingTrack-6XsqodoY.js";
18
+ import { t as Nn } from "./_plugin-vue_export-helper-B3ysoDQm.js";
19
+ import { t as Pn } from "./useEditorRoot-BD3piYtD.js";
20
+ import "./useCloudI18n-Nwqo7pI_.js";
21
+ import { t as Fn } from "./useMergeTag-5wMeDBi-.js";
22
+ import { t as In } from "./useLogicTag-D-dI8H6p.js";
26
23
  //#region src/utils/activeEditorTracker.ts
27
- var Fn = /* @__PURE__ */ new Set(), In = 0, Ln = 0;
28
- function Rn() {
29
- let e = ++Ln;
30
- return Fn.add(e), In === 0 && (In = e), {
24
+ var Ln = /* @__PURE__ */ new Set(), Rn = 0, zn = 0;
25
+ function Bn() {
26
+ let e = ++zn;
27
+ return Ln.add(e), Rn === 0 && (Rn = e), {
31
28
  id: e,
32
- isActive: () => Fn.size <= 1 || In === e,
29
+ isActive: () => Ln.size <= 1 || Rn === e,
33
30
  claim: () => {
34
- In = e;
31
+ Rn = e;
35
32
  },
36
33
  dispose: () => {
37
- if (Fn.delete(e), In === e) {
38
- let e = Array.from(Fn);
39
- In = e[e.length - 1] ?? 0;
34
+ if (Ln.delete(e), Rn === e) {
35
+ let e = Array.from(Ln);
36
+ Rn = e[e.length - 1] ?? 0;
40
37
  }
41
38
  }
42
39
  };
43
40
  }
44
41
  //#endregion
45
42
  //#region src/composables/usePreviewResolution.ts
46
- var zn = 500;
47
- function Bn(e) {
43
+ var Vn = 500;
44
+ function Hn(e) {
48
45
  let t = typeof e.resolvePreview == "function", n = _(null), r = _(!1), i = _(!1), a = 0, o = null;
49
46
  function c() {
50
47
  o !== null && (clearTimeout(o), o = null);
@@ -55,13 +52,13 @@ function Bn(e) {
55
52
  let o = ++a;
56
53
  r.value = !0;
57
54
  let s = {
58
- content: Ie(e.getContent()),
55
+ content: ze(e.getContent()),
59
56
  ...e.getRecipient?.() === void 0 ? {} : { recipient: e.getRecipient() }
60
57
  };
61
58
  try {
62
59
  let e = await t(s);
63
60
  if (o !== a) return;
64
- if (!ue(e)) {
61
+ if (!Se(e)) {
65
62
  i.value = !0;
66
63
  return;
67
64
  }
@@ -76,7 +73,7 @@ function Bn(e) {
76
73
  function u() {
77
74
  t && (c(), n.value === null ? l() : o = setTimeout(() => {
78
75
  o = null, l();
79
- }, zn));
76
+ }, Vn));
80
77
  }
81
78
  return f(() => [e.isActive(), e.getRecipient?.()], ([e]) => {
82
79
  e ? u() : (c(), a++, r.value = !1, n.value = null, i.value = !1);
@@ -93,7 +90,7 @@ function Bn(e) {
93
90
  }
94
91
  //#endregion
95
92
  //#region src/composables/useImageUrlResolver.ts
96
- function Vn(e) {
93
+ function Un(e) {
97
94
  let t = g(/* @__PURE__ */ new Map()), n = /* @__PURE__ */ new Set();
98
95
  function r(e) {
99
96
  return t.get(e);
@@ -122,8 +119,8 @@ function Vn(e) {
122
119
  lookup: a
123
120
  };
124
121
  }
125
- function Hn(e) {
126
- let t = p(dn, null), n = N(e);
122
+ function Wn(e) {
123
+ let t = p(gn, null), n = N(e);
127
124
  if (!t) return n;
128
125
  let r;
129
126
  function i() {
@@ -144,9 +141,28 @@ function Hn(e) {
144
141
  return typeof r == "string" && r.length > 0 ? r : e;
145
142
  });
146
143
  }
144
+ function Gn(e, t) {
145
+ if (!e || !t) return t;
146
+ let n = e.get(t);
147
+ return typeof n == "string" && n.length > 0 ? n : t;
148
+ }
149
+ function Kn(e, t) {
150
+ return typeof e?.url == "string" && Ce(e.url, t);
151
+ }
152
+ function qn(e, t) {
153
+ let n = e?.url;
154
+ if (typeof n == "string" && n.trim() !== "") return Ce(n, t) ? void 0 : n;
155
+ }
156
+ function Jn(e) {
157
+ let t = p(Bt, Ye.liquid), n = Wn(() => qn(e(), t));
158
+ return N(() => Kn(e(), t) ? null : n.value);
159
+ }
160
+ function Yn(e, t, n) {
161
+ return Kn(t, n) ? null : Gn(e, qn(t, n));
162
+ }
147
163
  //#endregion
148
164
  //#region src/composables/useMergeTagPicker.ts
149
- function Un() {
165
+ function Xn() {
150
166
  let e = _(!1), t = _([]), n = _(null), r = null;
151
167
  function i(i, a) {
152
168
  if (r) {
@@ -177,7 +193,7 @@ function Un() {
177
193
  }
178
194
  //#endregion
179
195
  //#region src/composables/useLogicTagPicker.ts
180
- function Wn() {
196
+ function Zn() {
181
197
  let e = _(!1), t = _([]), n = _([]), r = null;
182
198
  function i(i, a) {
183
199
  if (r) {
@@ -208,17 +224,17 @@ function Wn() {
208
224
  }
209
225
  //#endregion
210
226
  //#region src/composables/useTemplateLint.ts
211
- function Gn(e) {
227
+ function Qn(e) {
212
228
  return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 : !1;
213
229
  }
214
- function Kn(t) {
215
- let n = _([]), r = _(!1), i = _(!1), a = e(null), o = Gn(t.options), s = null, c = !1;
230
+ function $n(t) {
231
+ let n = _([]), r = _(!1), i = _(!1), a = e(null), o = Qn(t.options), s = null, c = !1;
216
232
  o || l();
217
233
  async function l() {
218
234
  try {
219
235
  let e = await import("@templatical/quality");
220
236
  if (c) return;
221
- a.value = { lintTemplate: e.lintTemplate }, r.value = !0, u(), s = ht(t.content, u, {
237
+ a.value = { lintTemplate: e.lintTemplate }, r.value = !0, u(), s = bt(t.content, u, {
222
238
  debounce: t.debounce ?? 500,
223
239
  deep: !0
224
240
  });
@@ -253,7 +269,7 @@ function Kn(t) {
253
269
  }
254
270
  //#endregion
255
271
  //#region src/composables/useKeyboardReorder.ts
256
- function qn(e, t, n = []) {
272
+ function er(e, t, n = []) {
257
273
  let r = _(null), i = _(""), a = null;
258
274
  function o(t) {
259
275
  let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
@@ -280,7 +296,7 @@ function qn(e, t, n = []) {
280
296
  let i = o(r);
281
297
  if (!i) return "";
282
298
  let a = (i.sectionId ? c(i.sectionId, i.columnIndex ?? 0) : e.content.value.blocks)?.[i.index];
283
- return a ? tt(a, t.t, n) : "";
299
+ return a ? ot(a, t.t, n) : "";
284
300
  }
285
301
  function c(t, n) {
286
302
  return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
@@ -349,13 +365,13 @@ function qn(e, t, n = []) {
349
365
  }
350
366
  //#endregion
351
367
  //#region src/composables/useUiTheme.ts
352
- function Jn(e) {
353
- let t = _t("(prefers-color-scheme: dark)");
368
+ function tr(e) {
369
+ let t = St("(prefers-color-scheme: dark)");
354
370
  return { resolvedTheme: N(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
355
371
  }
356
372
  //#endregion
357
373
  //#region src/composables/useThemeStyles.ts
358
- var Yn = {
374
+ var nr = {
359
375
  bg: "--tpl-bg",
360
376
  bgElevated: "--tpl-bg-elevated",
361
377
  bgHover: "--tpl-bg-hover",
@@ -379,10 +395,10 @@ var Yn = {
379
395
  dangerLight: "--tpl-danger-light",
380
396
  canvasBg: "--tpl-canvas-bg"
381
397
  };
382
- function Xn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
398
+ function rr({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
383
399
  return { themeStyles: N(() => {
384
400
  let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
385
- if (a) for (let [e, t] of Object.entries(Yn)) {
401
+ if (a) for (let [e, t] of Object.entries(nr)) {
386
402
  let n = a[e];
387
403
  n && (r[t] = n);
388
404
  }
@@ -391,7 +407,7 @@ function Xn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
391
407
  }
392
408
  //#endregion
393
409
  //#region src/composables/useBlockRegistry.ts
394
- function Zn() {
410
+ function ir() {
395
411
  let t = e(/* @__PURE__ */ new Map());
396
412
  function n(e, n) {
397
413
  t.value.set(e, n), T(t);
@@ -399,7 +415,7 @@ function Zn() {
399
415
  function r(e, n) {
400
416
  let r = `custom:${e.type}`, i = {
401
417
  component: n,
402
- createBlock: () => Je(e),
418
+ createBlock: () => ge(e),
403
419
  definition: e
404
420
  };
405
421
  t.value.set(r, i), T(t);
@@ -431,7 +447,7 @@ function Zn() {
431
447
  strictFilters: !1
432
448
  }).parseAndRender(t.template, e.fieldValues);
433
449
  } catch (t) {
434
- return hn.error(`Failed to render custom block "${e.customType}":`, t), s(`Render error: ${e.customType}`);
450
+ return bn.error(`Failed to render custom block "${e.customType}":`, t), s(`Render error: ${e.customType}`);
435
451
  }
436
452
  }
437
453
  function l(e) {
@@ -449,9 +465,9 @@ function Zn() {
449
465
  }
450
466
  //#endregion
451
467
  //#region src/composables/useCustomBlockStylesheets.ts
452
- function Qn(e, t) {
468
+ function ar(e, t) {
453
469
  return N(() => {
454
- let n = $n(e.value.blocks);
470
+ let n = or(e.value.blocks);
455
471
  if (n.size === 0) return [];
456
472
  let r = /* @__PURE__ */ new Set(), i = [];
457
473
  for (let e of n) {
@@ -463,64 +479,64 @@ function Qn(e, t) {
463
479
  return i;
464
480
  });
465
481
  }
466
- function $n(e) {
482
+ function or(e) {
467
483
  let t = /* @__PURE__ */ new Set();
468
- return er(e, t), t;
484
+ return sr(e, t), t;
469
485
  }
470
- function er(e, t) {
471
- for (let n of e) if (ye(n)) t.add(n.customType);
486
+ function sr(e, t) {
487
+ for (let n of e) if (ce(n)) t.add(n.customType);
472
488
  else if (n.type === "section") {
473
489
  let e = n.children;
474
490
  if (!e) continue;
475
- for (let n of e) er(n, t);
476
- } else Se(n) && er(n.children, t);
491
+ for (let n of e) sr(n, t);
492
+ } else je(n) && sr(n.children, t);
477
493
  }
478
494
  //#endregion
479
495
  //#region src/utils/registerBuiltInBlocks.ts
480
- var tr = [
496
+ var cr = [
481
497
  {
482
498
  type: "section",
483
- createBlock: se
499
+ createBlock: Re
484
500
  },
485
501
  {
486
502
  type: "title",
487
- createBlock: Me
503
+ createBlock: me
488
504
  },
489
505
  {
490
506
  type: "paragraph",
491
- createBlock: ve
507
+ createBlock: pe
492
508
  },
493
509
  {
494
510
  type: "image",
495
- createBlock: oe
511
+ createBlock: ae
496
512
  },
497
513
  {
498
514
  type: "button",
499
- createBlock: Ce
515
+ createBlock: De
500
516
  },
501
517
  {
502
518
  type: "divider",
503
- createBlock: qe
519
+ createBlock: Ze
504
520
  },
505
521
  {
506
522
  type: "video",
507
- createBlock: fe
523
+ createBlock: oe
508
524
  },
509
525
  {
510
526
  type: "social",
511
- createBlock: pe
527
+ createBlock: Le
512
528
  },
513
529
  {
514
530
  type: "menu",
515
- createBlock: Ke
531
+ createBlock: ie
516
532
  },
517
533
  {
518
534
  type: "table",
519
- createBlock: ae
535
+ createBlock: fe
520
536
  },
521
537
  {
522
538
  type: "spacer",
523
- createBlock: Ne
539
+ createBlock: de
524
540
  },
525
541
  {
526
542
  type: "html",
@@ -528,11 +544,11 @@ var tr = [
528
544
  },
529
545
  {
530
546
  type: "countdown",
531
- createBlock: Ge
547
+ createBlock: Qe
532
548
  }
533
549
  ];
534
- function nr(e, t) {
535
- for (let n of tr) {
550
+ function lr(e, t) {
551
+ for (let n of cr) {
536
552
  let r = t[n.type];
537
553
  r && e.registerBuiltIn(n.type, {
538
554
  component: r,
@@ -542,33 +558,33 @@ function nr(e, t) {
542
558
  }
543
559
  //#endregion
544
560
  //#region src/utils/resolveHtmlBlockPreview.ts
545
- function rr(e) {
561
+ function ur(e) {
546
562
  return typeof e == "boolean" ? e : e?.enabled ?? !1;
547
563
  }
548
564
  //#endregion
549
565
  //#region src/utils/collectOffPaletteDefaults.ts
550
- function ir(e) {
566
+ function dr(e) {
551
567
  return typeof e == "object" && !!e && !Array.isArray(e);
552
568
  }
553
- function ar(e, t, n) {
554
- let r = new Set(e.map((e) => _n(e))), i = [], a = (e, t) => {
555
- for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(_n(o)) && i.push(`${t}.${n}: ${o}`) : ir(o) && a(o, `${t}.${n}`);
569
+ function fr(e, t, n) {
570
+ let r = new Set(e.map((e) => Sn(e))), i = [], a = (e, t) => {
571
+ for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(Sn(o)) && i.push(`${t}.${n}: ${o}`) : dr(o) && a(o, `${t}.${n}`);
556
572
  }, o = t;
557
- for (let [e, t] of Object.entries(Ae)) {
573
+ for (let [e, t] of Object.entries(Te)) {
558
574
  let n = o?.[e];
559
575
  a({
560
576
  ...t,
561
- ...ir(n) ? n : {}
577
+ ...dr(n) ? n : {}
562
578
  }, e);
563
579
  }
564
580
  return a({
565
- ...we,
581
+ ...Ve,
566
582
  ...n ?? {}
567
583
  }, "template"), i;
568
584
  }
569
585
  //#endregion
570
586
  //#region src/utils/localizedBlockDefaults.ts
571
- function or(e) {
587
+ function pr(e) {
572
588
  return {
573
589
  title: { content: `<p>${e.blockDefaults.title}</p>` },
574
590
  paragraph: { content: `<p>${e.blockDefaults.paragraph}</p>` },
@@ -577,63 +593,63 @@ function or(e) {
577
593
  }
578
594
  //#endregion
579
595
  //#region src/i18n/index.ts
580
- var sr = /* #__PURE__ */ Object.assign({
581
- "./locales/ca.ts": () => import("./ca-C__Dzq--.js"),
582
- "./locales/de.ts": () => import("./de-CGjbQ2mt.js"),
583
- "./locales/en.ts": () => import("./en-BTiiAC-B.js"),
584
- "./locales/es.ts": () => import("./es-CdTOcSTf.js"),
585
- "./locales/fr.ts": () => import("./fr-B6lcLLzC.js"),
586
- "./locales/ja.ts": () => import("./ja-BhdkqENz.js"),
587
- "./locales/nl.ts": () => import("./nl-CE3YItYg.js"),
588
- "./locales/pt-BR.ts": () => import("./pt-BR-CUIT4rq4.js")
589
- }), cr = /* #__PURE__ */ Object.assign({
596
+ var mr = /* #__PURE__ */ Object.assign({
597
+ "./locales/ca.ts": () => import("./ca-DMoGGP9L.js"),
598
+ "./locales/de.ts": () => import("./de-DgAelLbM.js"),
599
+ "./locales/en.ts": () => import("./en-Dekrl7HA.js"),
600
+ "./locales/es.ts": () => import("./es-BaZzyidV.js"),
601
+ "./locales/fr.ts": () => import("./fr-C5ucb1HK.js"),
602
+ "./locales/ja.ts": () => import("./ja-CUgR3mV0.js"),
603
+ "./locales/nl.ts": () => import("./nl-qrLY7hMS.js"),
604
+ "./locales/pt-BR.ts": () => import("./pt-BR-C6hMTQYi.js")
605
+ }), hr = /* #__PURE__ */ Object.assign({
590
606
  "./locales/cloud/de.ts": () => import("./de-mMY5yQJu.js"),
591
607
  "./locales/cloud/en.ts": () => import("./en-ChVeGQBY.js"),
592
608
  "./locales/cloud/pt-BR.ts": () => import("./pt-BR-CoCwRUi0.js")
593
609
  });
594
- function lr(e) {
610
+ function gr(e) {
595
611
  return Object.keys(e).map((e) => e.match(/\/([^/]+)\.ts$/)?.[1]).filter((e) => !!e);
596
612
  }
597
- var ur = lr(sr), dr = lr(cr);
598
- function fr(e) {
613
+ var _r = gr(mr), vr = gr(hr);
614
+ function yr(e) {
599
615
  return e.trim().replace(/_/g, "-").toLowerCase();
600
616
  }
601
- function pr(e, t) {
602
- let n = fr(e);
603
- return t.find((e) => fr(e) === n);
617
+ function br(e, t) {
618
+ let n = yr(e);
619
+ return t.find((e) => yr(e) === n);
604
620
  }
605
- function mr(e) {
606
- return fr(e).split("-")[0];
621
+ function xr(e) {
622
+ return yr(e).split("-")[0];
607
623
  }
608
- function hr(e, t) {
609
- return pr(e, t) ?? pr(mr(e), t);
624
+ function Sr(e, t) {
625
+ return br(e, t) ?? br(xr(e), t);
610
626
  }
611
- function gr(e, t) {
612
- return hr(e, t) ?? "en";
627
+ function Cr(e, t) {
628
+ return Sr(e, t) ?? "en";
613
629
  }
614
- async function _r(e) {
615
- let t = sr[`./locales/${gr(e, ur)}.ts`];
630
+ async function wr(e) {
631
+ let t = mr[`./locales/${Cr(e, _r)}.ts`];
616
632
  return (await t()).default;
617
633
  }
618
- async function vr(e) {
619
- let t = cr[`./locales/cloud/${gr(e, dr)}.ts`];
634
+ async function Tr(e) {
635
+ let t = hr[`./locales/cloud/${Cr(e, vr)}.ts`];
620
636
  return (await t()).default;
621
637
  }
622
- function yr(e) {
623
- return hr(e, ur) !== void 0;
638
+ function Er(e) {
639
+ return Sr(e, _r) !== void 0;
624
640
  }
625
- function br(e) {
626
- return hr(e, dr) !== void 0;
641
+ function Dr(e) {
642
+ return Sr(e, vr) !== void 0;
627
643
  }
628
- function xr() {
629
- return [...ur];
644
+ function Or() {
645
+ return [..._r];
630
646
  }
631
- function Sr() {
632
- return [...dr];
647
+ function kr() {
648
+ return [...vr];
633
649
  }
634
650
  //#endregion
635
651
  //#region src/i18n/contentDefaults.ts
636
- var Cr = {
652
+ var Ar = {
637
653
  en: {
638
654
  video: "Video",
639
655
  days: "Days",
@@ -699,17 +715,17 @@ var Cr = {
699
715
  expired: "このオファーは終了しました"
700
716
  }
701
717
  };
702
- Object.keys(Cr);
703
- var wr = new Map(Object.keys(Cr).map((e) => [e.toLowerCase(), e]));
704
- function Tr(e) {
705
- if (!e) return Cr.en;
706
- let t = e.trim().replace(/_/g, "-").toLowerCase(), n = wr.get(t);
707
- if (n) return Cr[n];
708
- let r = wr.get(mr(t));
709
- return r ? Cr[r] : Cr.en;
718
+ Object.keys(Ar);
719
+ var jr = new Map(Object.keys(Ar).map((e) => [e.toLowerCase(), e]));
720
+ function Mr(e) {
721
+ if (!e) return Ar.en;
722
+ let t = e.trim().replace(/_/g, "-").toLowerCase(), n = jr.get(t);
723
+ if (n) return Ar[n];
724
+ let r = jr.get(xr(t));
725
+ return r ? Ar[r] : Ar.en;
710
726
  }
711
- function Er(e) {
712
- let t = Tr(e);
727
+ function Nr(e) {
728
+ let t = Mr(e);
713
729
  return {
714
730
  video: { alt: t.video },
715
731
  countdown: {
@@ -723,9 +739,9 @@ function Er(e) {
723
739
  }
724
740
  //#endregion
725
741
  //#region src/utils/collectColorFieldIssues.ts
726
- function Dr(e, t) {
742
+ function Pr(e, t) {
727
743
  let n = [], r = (r, i) => {
728
- let a = lt(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
744
+ let a = at(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
729
745
  if (a.invalidPresets.length > 0 && n.push({
730
746
  id: s("invalid-presets"),
731
747
  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." : "")
@@ -736,8 +752,8 @@ function Dr(e, t) {
736
752
  id: s("allow-custom-ignored"),
737
753
  message: `${o}: allowCustom: true is ignored because colors.allowCustom is false — a field can narrow the editor-wide palette, never unlock it.`
738
754
  }), !a.allowCustom && a.presets.length > 0) {
739
- let e = r.default ?? "", t = new Set(a.presets.map((e) => _n(e)));
740
- e !== "" && !t.has(_n(e)) && n.push({
755
+ let e = r.default ?? "", t = new Set(a.presets.map((e) => Sn(e)));
756
+ e !== "" && !t.has(Sn(e)) && n.push({
741
757
  id: s("off-palette-default"),
742
758
  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.`
743
759
  });
@@ -749,7 +765,7 @@ function Dr(e, t) {
749
765
  }
750
766
  //#endregion
751
767
  //#region src/utils/keyboardShortcuts.ts
752
- function Or(e) {
768
+ function Fr(e) {
753
769
  for (let t of e.composedPath()) {
754
770
  if (!(t instanceof HTMLElement)) continue;
755
771
  if (t.isContentEditable) return !0;
@@ -758,14 +774,14 @@ function Or(e) {
758
774
  }
759
775
  return !1;
760
776
  }
761
- function kr(e, t) {
777
+ function Ir(e, t) {
762
778
  let n = e.metaKey || e.ctrlKey;
763
779
  if (n && e.key.toLowerCase() === "s") e.preventDefault(), t.onSave?.();
764
780
  else if (n && e.key.toLowerCase() === "z") {
765
- if (Or(e)) return;
781
+ if (Fr(e)) return;
766
782
  e.preventDefault(), e.shiftKey ? t.history.redo() : (t.onBeforeUndo?.(), t.history.undo());
767
783
  } else {
768
- if (t.isPicking?.() && !Or(e)) {
784
+ if (t.isPicking?.() && !Fr(e)) {
769
785
  if (e.key === "Escape") {
770
786
  e.preventDefault(), t.onCancelPick?.();
771
787
  return;
@@ -779,58 +795,78 @@ function kr(e, t) {
779
795
  return;
780
796
  }
781
797
  }
782
- e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Or(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
798
+ e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Fr(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
783
799
  }
784
800
  }
785
801
  //#endregion
786
802
  //#region src/utils/blockComponentResolver.ts
787
- function Ar(e) {
788
- let t = { fontFamily: e.fontFamily };
789
- 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;
803
+ function Lr(e, t) {
804
+ let n = { fontFamily: t(e.fontFamily) };
805
+ return e.textColor && (n.color = e.textColor), e.linkColor && (n["--tpl-doc-link-color"] = e.linkColor), e.linkUnderline && (n["--tpl-doc-link-underline"] = "underline"), n;
790
806
  }
791
- function jr(e, t, n) {
807
+ function Rr(e, t, n) {
792
808
  if (t) {
793
809
  let n = t.getComponent(e);
794
810
  if (n) return n;
795
811
  }
796
812
  return n[e.type] ?? null;
797
813
  }
798
- function Mr(e) {
814
+ var zr = "--tpl-block-bg-layer", Br = "tpl-has-bg-image";
815
+ function Vr(e, t) {
816
+ if (t === null) return {};
817
+ let n = Ke(e);
818
+ if (n === null) return {};
819
+ let r = t?.trim(), i = r ? he(r) : n.url;
820
+ return {
821
+ backgroundImage: `url("${i}")`,
822
+ backgroundSize: n.size,
823
+ backgroundPosition: n.position,
824
+ backgroundRepeat: n.repeat,
825
+ [zr]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
826
+ };
827
+ }
828
+ function Hr(e) {
829
+ return e && zr in e ? Br : void 0;
830
+ }
831
+ function Ur(e, t = {}) {
799
832
  if (e.type === "wrapper") return {};
800
- let { padding: t, backgroundColor: n } = e.styles, r = {
801
- padding: `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`,
802
- backgroundColor: n || "transparent"
833
+ let { padding: n, backgroundColor: r } = e.styles, i = {
834
+ padding: `${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`,
835
+ backgroundColor: r || "transparent"
803
836
  };
804
- if ((e.type === "paragraph" || e.type === "title") && (r["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? Ve.paragraphGap : Ve.paragraphGap}px`), e.type === "section") {
805
- let t = We(e.borderRadius);
806
- t !== null && (r.borderRadius = t), Object.assign(r, Nr(e.border));
837
+ if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? Oe.paragraphGap : Oe.paragraphGap}px`), e.type === "section") {
838
+ let n = we(e.borderRadius);
839
+ n !== null && (i.borderRadius = n), Object.assign(i, Gr(e.border)), Object.assign(i, Vr(e.backgroundImage, t.backgroundImageUrl));
807
840
  }
808
- return r;
841
+ return i;
809
842
  }
810
- function Nr(e) {
843
+ function Wr(e, t, n) {
844
+ return e.type === "section" ? Ur(e, { backgroundImageUrl: Yn(t, e.backgroundImage, n) }) : Ur(e);
845
+ }
846
+ function Gr(e) {
811
847
  let t = {};
812
- for (let [n, r] of Object.entries(Fe(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
848
+ for (let [n, r] of Object.entries(Pe(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
813
849
  return t;
814
850
  }
815
- function Pr(e) {
851
+ function Kr(e, t = {}) {
816
852
  if (e.type !== "section" || !e.wrapper) return null;
817
- let t = e.wrapper, n = {};
818
- 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`);
819
- let r = We(t.borderRadius);
820
- return r !== null && (n.borderRadius = r), n;
853
+ let n = e.wrapper, r = {};
854
+ n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && (r.padding = `${n.padding.top}px ${n.padding.right}px ${n.padding.bottom}px ${n.padding.left}px`);
855
+ let i = we(n.borderRadius);
856
+ return i !== null && (r.borderRadius = i), Object.assign(r, Vr(n.backgroundImage, t.backgroundImageUrl)), r;
821
857
  }
822
- function Fr(e) {
858
+ function qr(e, t = {}) {
823
859
  if (e.type !== "wrapper") return null;
824
- let t = {};
825
- if (e.styles.backgroundColor && (t.backgroundColor = e.styles.backgroundColor), e.styles.padding) {
826
- let n = e.styles.padding;
827
- t.padding = `${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`;
860
+ let n = {};
861
+ if (e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding) {
862
+ let t = e.styles.padding;
863
+ n.padding = `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`;
828
864
  }
829
- return e.borderRadius && e.borderRadius > 0 && (t.borderRadius = `${e.borderRadius}px`), t;
865
+ return e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, Vr(e.backgroundImage, t.backgroundImageUrl)), n;
830
866
  }
831
867
  //#endregion
832
868
  //#region src/utils/mergeTagLabelSegments.ts
833
- function Ir(e, t, n, r = !1) {
869
+ function Jr(e, t, n, r = !1) {
834
870
  if (!e) return [];
835
871
  let i = RegExp(`(${n.value.source}|${n.logic.source})`, "g"), a = [], o = 0, s;
836
872
  for (; (s = i.exec(e)) !== null;) {
@@ -839,18 +875,18 @@ function Ir(e, t, n, r = !1) {
839
875
  value: e.slice(o, s.index)
840
876
  });
841
877
  let i = s[0];
842
- if (ce(i, n)) {
843
- let e = r ? Ye(i, t) : void 0;
878
+ if (be(i, n)) {
879
+ let e = r ? ye(i, t) : void 0;
844
880
  a.push(e === void 0 ? {
845
881
  type: "tag",
846
- value: ge(i, t)
882
+ value: ve(i, t)
847
883
  } : {
848
884
  type: "text",
849
885
  value: e
850
886
  });
851
887
  } else xe(i, n) ? a.push({
852
888
  type: "tag",
853
- value: de(i, n)
889
+ value: se(i, n)
854
890
  }) : a.push({
855
891
  type: "text",
856
892
  value: i
@@ -864,27 +900,27 @@ function Ir(e, t, n, r = !1) {
864
900
  }
865
901
  //#endregion
866
902
  //#region src/components/MergeTagPreviewText.vue
867
- var Lr = F({
903
+ var Yr = F({
868
904
  name: "MergeTagPreviewText",
869
905
  props: { text: {
870
906
  type: String,
871
907
  required: !0
872
908
  } },
873
909
  setup(e) {
874
- let t = p(Pt, Tt), n = p(Ft, Pe.liquid), r = p(It, null), i = N(() => Ir(e.text, t.value, n, r?.value ?? !1));
910
+ let t = p(zt, At), n = p(Bt, Ye.liquid), r = p(Vt, null), i = N(() => Jr(e.text, t.value, n, r?.value ?? !1));
875
911
  return () => i.value.map((e, t) => e.type === "tag" ? b("span", {
876
912
  key: t,
877
913
  class: "tpl-merge-tag-label"
878
914
  }, e.value) : e.value);
879
915
  }
880
- }), Rr = ["href"], zr = /* @__PURE__ */ F({
916
+ }), Xr = ["href"], Zr = /* @__PURE__ */ F({
881
917
  __name: "ButtonBlock",
882
918
  props: {
883
919
  block: {},
884
920
  viewport: {}
885
921
  },
886
922
  setup(e) {
887
- let r = e, i = N(() => {
923
+ let r = e, i = wt(mn, "ButtonBlock"), a = N(() => {
888
924
  let e = {
889
925
  display: "inline-block",
890
926
  padding: `${r.block.buttonPadding.top}px ${r.block.buttonPadding.right}px ${r.block.buttonPadding.bottom}px ${r.block.buttonPadding.left}px`,
@@ -893,26 +929,26 @@ var Lr = F({
893
929
  fontSize: `${r.block.fontSize}px`,
894
930
  fontWeight: "bold",
895
931
  textDecoration: "none",
896
- borderRadius: typeof r.block.borderRadius == "number" ? `${r.block.borderRadius}px` : We(r.block.borderRadius) ?? "0px",
932
+ borderRadius: typeof r.block.borderRadius == "number" ? `${r.block.borderRadius}px` : we(r.block.borderRadius) ?? "0px",
897
933
  textAlign: "center"
898
934
  };
899
- return Object.assign(e, Nr(r.block.border)), r.block.fontFamily && (e.fontFamily = r.block.fontFamily), r.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof r.block.width == "number" && (e.width = `${r.block.width}px`, e.boxSizing = "border-box"), e;
900
- }), a = N(() => ({ textAlign: r.block.align ?? "center" }));
901
- return (r, o) => (t(), S("div", { style: n(a.value) }, [x("a", {
935
+ return Object.assign(e, Gr(r.block.border)), r.block.fontFamily && (e.fontFamily = i.resolveFontFamily(r.block.fontFamily)), r.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof r.block.width == "number" && (e.width = `${r.block.width}px`, e.boxSizing = "border-box"), e;
936
+ }), o = N(() => ({ textAlign: r.block.align ?? "center" }));
937
+ return (r, i) => (t(), S("div", { style: n(o.value) }, [x("a", {
902
938
  href: e.block.url || "#",
903
- style: n(i.value),
939
+ style: n(a.value),
904
940
  class: "tpl:cursor-default",
905
- onClick: o[0] ||= I(() => {}, ["prevent"])
906
- }, [C(Lr, { text: e.block.text }, null, 8, ["text"])], 12, Rr)], 4));
941
+ onClick: i[0] ||= I(() => {}, ["prevent"])
942
+ }, [C(Yr, { text: e.block.text }, null, 8, ["text"])], 12, Xr)], 4));
907
943
  }
908
- }), Br = Sn({
944
+ }), Qr = Dn({
909
945
  name: "bookmark",
910
946
  size: 24,
911
947
  node: [["path", {
912
948
  d: "M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",
913
949
  key: "oz39mx"
914
950
  }]]
915
- }), Vr = Sn({
951
+ }), $r = Dn({
916
952
  name: "box",
917
953
  size: 24,
918
954
  node: [
@@ -929,7 +965,7 @@ var Lr = F({
929
965
  key: "d0xqtd"
930
966
  }]
931
967
  ]
932
- }), Hr = Sn({
968
+ }), ei = Dn({
933
969
  name: "eye-off",
934
970
  size: 24,
935
971
  node: [
@@ -950,7 +986,7 @@ var Lr = F({
950
986
  key: "1ooewy"
951
987
  }]
952
988
  ]
953
- }), Ur = Sn({
989
+ }), ti = Dn({
954
990
  name: "funnel",
955
991
  size: 24,
956
992
  node: [["path", {
@@ -958,7 +994,7 @@ var Lr = F({
958
994
  key: "sc7q7i"
959
995
  }]],
960
996
  aliases: ["filter"]
961
- }), Wr = Sn({
997
+ }), ni = Dn({
962
998
  name: "grip-vertical",
963
999
  size: 24,
964
1000
  node: [
@@ -999,14 +1035,14 @@ var Lr = F({
999
1035
  key: "f4zoj3"
1000
1036
  }]
1001
1037
  ]
1002
- }), Gr = Sn({
1038
+ }), ri = Dn({
1003
1039
  name: "puzzle",
1004
1040
  size: 24,
1005
1041
  node: [["path", {
1006
1042
  d: "M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",
1007
1043
  key: "w46dr5"
1008
1044
  }]]
1009
- }), Kr = Sn({
1045
+ }), ii = Dn({
1010
1046
  name: "video",
1011
1047
  size: 24,
1012
1048
  node: [["path", {
@@ -1020,11 +1056,11 @@ var Lr = F({
1020
1056
  rx: "2",
1021
1057
  key: "158x01"
1022
1058
  }]]
1023
- }), qr = ["innerHTML"], Jr = [
1059
+ }), ai = ["innerHTML"], oi = [
1024
1060
  "src",
1025
1061
  "width",
1026
1062
  "height"
1027
- ], Yr = /* @__PURE__ */ F({
1063
+ ], si = /* @__PURE__ */ F({
1028
1064
  __name: "CustomBlockIcon",
1029
1065
  props: {
1030
1066
  icon: {},
@@ -1040,24 +1076,24 @@ var Lr = F({
1040
1076
  height: `${i.value}px`
1041
1077
  }),
1042
1078
  innerHTML: e.icon
1043
- }, null, 12, qr)) : o.value ? (t(), S("img", {
1079
+ }, null, 12, ai)) : o.value ? (t(), S("img", {
1044
1080
  key: 1,
1045
1081
  src: e.icon,
1046
1082
  width: i.value,
1047
1083
  height: i.value,
1048
1084
  class: "tpl:inline-block",
1049
1085
  alt: ""
1050
- }, null, 8, Jr)) : (t(), A(y(Vr), {
1086
+ }, null, 8, oi)) : (t(), A(y($r), {
1051
1087
  key: 2,
1052
1088
  size: i.value,
1053
1089
  "stroke-width": 1.5
1054
1090
  }, null, 8, ["size"]));
1055
1091
  }
1056
- }), Xr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
1057
- function Zr(e, t) {
1058
- let n = jn(), r = null, i = null, a = null;
1092
+ }), ci = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
1093
+ function li(e, t) {
1094
+ let n = Pn(), r = null, i = null, a = null;
1059
1095
  function o() {
1060
- return e.value ? Array.from(e.value.querySelectorAll(Xr)).filter((e) => e.offsetParent !== null) : [];
1096
+ return e.value ? Array.from(e.value.querySelectorAll(ci)).filter((e) => e.offsetParent !== null) : [];
1061
1097
  }
1062
1098
  function c(e) {
1063
1099
  if (e.key !== "Tab") return;
@@ -1072,7 +1108,7 @@ function Zr(e, t) {
1072
1108
  a = null;
1073
1109
  let t = o();
1074
1110
  t.length > 0 && (e.value?.querySelector("[autofocus], input:not([disabled])") ?? t[0]).focus();
1075
- }), i = gt(e, "keydown", c);
1111
+ }), i = xt(e, "keydown", c);
1076
1112
  }
1077
1113
  function u(e = {}) {
1078
1114
  let t = e.restoreFocus !== !1;
@@ -1087,8 +1123,8 @@ function Zr(e, t) {
1087
1123
  }
1088
1124
  //#endregion
1089
1125
  //#region src/composables/useEmoji.ts
1090
- function Qr() {
1091
- let [t, n] = mt(!1), r = e([]), i = !1;
1126
+ function ui() {
1127
+ let [t, n] = yt(!1), r = e([]), i = !1;
1092
1128
  s(() => {
1093
1129
  i = !0;
1094
1130
  }), f(t, async (e) => {
@@ -1113,7 +1149,7 @@ function Qr() {
1113
1149
  }
1114
1150
  //#endregion
1115
1151
  //#region src/composables/useFonts.ts
1116
- var $r = [
1152
+ var di = [
1117
1153
  {
1118
1154
  value: "Arial",
1119
1155
  label: "Arial"
@@ -1142,19 +1178,19 @@ var $r = [
1142
1178
  value: "Courier New",
1143
1179
  label: "Courier New"
1144
1180
  }
1145
- ], ei = "Arial, sans-serif";
1146
- function ti(e) {
1147
- if (e === void 0 || e === !0) return [...$r];
1181
+ ], fi = "Arial, sans-serif";
1182
+ function pi(e) {
1183
+ if (e === void 0 || e === !0) return [...di];
1148
1184
  if (e === !1) return [];
1149
1185
  let t = [], n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
1150
1186
  for (let i of e) {
1151
- let e = i.toLowerCase(), a = $r.find((t) => t.value.toLowerCase() === e);
1152
- a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), hn.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${$r.map((e) => e.value).join(", ")}.`));
1187
+ let e = i.toLowerCase(), a = di.find((t) => t.value.toLowerCase() === e);
1188
+ a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), bn.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${di.map((e) => e.value).join(", ")}.`));
1153
1189
  }
1154
1190
  return t;
1155
1191
  }
1156
- function ni(e) {
1157
- let t = _(e?.customFonts ?? []), n = _(!1), r = ti(e?.builtIns), i = N(() => e?.defaultFallback ?? ei), a = N(() => {
1192
+ function mi(e) {
1193
+ let t = _(e?.customFonts ?? []), n = _(!1), r = pi(e?.builtIns), i = N(() => e?.defaultFallback ?? fi), a = N(() => {
1158
1194
  let e = [...r], n = t.value.map((e) => ({
1159
1195
  value: e.name,
1160
1196
  label: e.name,
@@ -1165,24 +1201,21 @@ function ni(e) {
1165
1201
  function o(e) {
1166
1202
  return a.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
1167
1203
  }
1168
- let c = e?.defaultFont ?? ei.split(",")[0].trim();
1169
- o(c) || hn.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.`);
1204
+ let c = e?.defaultFont ?? fi.split(",")[0].trim();
1205
+ o(c) || bn.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.`);
1170
1206
  function l() {
1171
1207
  if (e?.defaultFont && o(e.defaultFont)) {
1172
1208
  let t = a.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
1173
1209
  if (t) return t.value;
1174
1210
  }
1175
- return ei;
1211
+ return fi;
1176
1212
  }
1177
1213
  let u = N(() => l());
1178
1214
  function d(e) {
1179
- if (!e) return i.value;
1180
- let n = t.value.find((t) => t.name.toLowerCase() === e.toLowerCase());
1181
- if (n) {
1182
- let e = n.fallback ?? i.value;
1183
- return `'${n.name}', ${e}`;
1184
- }
1185
- return ze[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${i.value}`);
1215
+ return Ee(e, {
1216
+ customFonts: t.value,
1217
+ defaultFallback: i.value
1218
+ });
1186
1219
  }
1187
1220
  let f = [], p = !1;
1188
1221
  async function m() {
@@ -1198,7 +1231,7 @@ function ni(e) {
1198
1231
  t.onload = () => n(), t.onerror = () => r(/* @__PURE__ */ Error(`Failed to load font: ${e.name}`)), document.head.appendChild(t);
1199
1232
  });
1200
1233
  } catch (t) {
1201
- hn.warn(`Failed to load custom font "${e.name}":`, t);
1234
+ bn.warn(`Failed to load custom font "${e.name}":`, t);
1202
1235
  }
1203
1236
  });
1204
1237
  await Promise.allSettled(e), !p && (n.value = !0);
@@ -1217,18 +1250,18 @@ function ni(e) {
1217
1250
  isLoaded: n,
1218
1251
  loadCustomFonts: m,
1219
1252
  cleanupFontLinks: g,
1220
- getFontWithFallback: d,
1253
+ resolveFontFamily: d,
1221
1254
  getDefaultFont: l
1222
1255
  };
1223
1256
  }
1224
1257
  //#endregion
1225
1258
  //#region src/utils/mergeTagNodeSpec.ts
1226
- function ri(e, t, n) {
1259
+ function hi(e, t, n) {
1227
1260
  return xe(e, n) ? {
1228
1261
  type: "logicMergeTagNode",
1229
1262
  attrs: {
1230
1263
  value: e,
1231
- keyword: de(e, n)
1264
+ keyword: se(e, n)
1232
1265
  }
1233
1266
  } : {
1234
1267
  type: "mergeTagNode",
@@ -1240,33 +1273,33 @@ function ri(e, t, n) {
1240
1273
  }
1241
1274
  //#endregion
1242
1275
  //#region src/utils/insertLogicTag.ts
1243
- function ii(e) {
1276
+ function gi(e) {
1244
1277
  return "before" in e && "after" in e;
1245
1278
  }
1246
- function ai(e, t, n) {
1247
- if (!ii(t)) {
1248
- e.chain().focus().insertContent(ri(t.value, t.label, n)).run();
1279
+ function _i(e, t, n) {
1280
+ if (!gi(t)) {
1281
+ e.chain().focus().insertContent(hi(t.value, t.label, n)).run();
1249
1282
  return;
1250
1283
  }
1251
- let r = ri(t.before, t.label, n), i = ri(t.after, t.label, n), { from: a, to: o } = e.state.selection;
1284
+ let r = hi(t.before, t.label, n), i = hi(t.after, t.label, n), { from: a, to: o } = e.state.selection;
1252
1285
  a === o ? e.chain().focus().insertContentAt(a, [r, i]).setTextSelection(a + 1).run() : e.chain().focus().insertContentAt(o, i).insertContentAt(a, r).run();
1253
1286
  }
1254
1287
  //#endregion
1255
1288
  //#region src/utils/linkColorExtension.ts
1256
- function oi(e) {
1289
+ function vi(e) {
1257
1290
  if (!e) return null;
1258
1291
  let t = e.trim();
1259
1292
  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;
1260
1293
  }
1261
- function si(e) {
1294
+ function yi(e) {
1262
1295
  return e.extend({ addAttributes() {
1263
1296
  return {
1264
1297
  ...this.parent?.(),
1265
1298
  color: {
1266
1299
  default: null,
1267
- parseHTML: (e) => oi(gn(e.style.color)),
1300
+ parseHTML: (e) => vi(xn(e.style.color)),
1268
1301
  renderHTML: (e) => {
1269
- let t = oi(e.color);
1302
+ let t = vi(e.color);
1270
1303
  return t ? { style: `color: ${t}` } : {};
1271
1304
  }
1272
1305
  }
@@ -1275,9 +1308,9 @@ function si(e) {
1275
1308
  }
1276
1309
  //#endregion
1277
1310
  //#region src/composables/useRichTextLinkDialog.ts
1278
- function ci(e, t = Pe.liquid) {
1311
+ function bi(e, t = Ye.liquid) {
1279
1312
  let n = _(!1), r = _(""), i = _(""), a = _(null);
1280
- Zr(a, n);
1313
+ li(a, n);
1281
1314
  function o() {
1282
1315
  let t = e.value?.getAttributes("link") ?? {};
1283
1316
  r.value = t.href || "", i.value = t.color || "", n.value = !0;
@@ -1286,7 +1319,7 @@ function ci(e, t = Pe.liquid) {
1286
1319
  if (r.value) {
1287
1320
  let t = d(r.value);
1288
1321
  if (t !== null) {
1289
- let n = oi(i.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
1322
+ let n = vi(i.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
1290
1323
  n && typeof e.value?.commands.unsetColor == "function" && r?.unsetColor(), r?.run();
1291
1324
  }
1292
1325
  }
@@ -1338,13 +1371,13 @@ function ci(e, t = Pe.liquid) {
1338
1371
  }
1339
1372
  //#endregion
1340
1373
  //#region src/composables/useRichTextEditor.ts
1341
- function li(t) {
1342
- let n = p(Xt, null), { mergeTags: r, canRequestMergeTag: a, isRequesting: o, requestMergeTag: s, syntax: l, autocomplete: u } = Mn(), { canInsertLogicTag: d, isRequesting: m, requestLogicTag: h } = Nn(), g = p(Ht, null), v = (c(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", y = be(l), b = e(null), x = () => he(n?.content?.value?.settings ?? { locale: "en" });
1374
+ function xi(t) {
1375
+ let n = p(tn, null), { mergeTags: r, canRequestMergeTag: a, isRequesting: o, requestMergeTag: s, syntax: l, autocomplete: u } = Fn(), { canInsertLogicTag: d, isRequesting: m, requestLogicTag: h } = In(), g = p(qt, null), v = (c(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", y = le(l), b = e(null), x = () => Ie(n?.content?.value?.settings ?? { locale: "en" });
1343
1376
  f(x, (e) => {
1344
1377
  let t = b.value?.view.dom;
1345
1378
  t && t.setAttribute("dir", e);
1346
1379
  });
1347
- let { showLinkDialog: S, linkUrl: C, linkColor: w, linkDialogRef: T, openLinkDialog: E, insertLink: D, removeLink: O, closeLinkDialog: k, handleLinkKeydown: A } = ci(b, l), { start: j, stop: M } = ft(() => b.value?.commands.focus("end"), 0, { immediate: !1 }), ee = e(null), N = _(!0), P = _(null), F = !1, te = null;
1380
+ let { showLinkDialog: S, linkUrl: C, linkColor: w, linkDialogRef: T, openLinkDialog: E, insertLink: D, removeLink: O, closeLinkDialog: k, handleLinkKeydown: A } = bi(b, l), { start: j, stop: M } = _t(() => b.value?.commands.focus("end"), 0, { immediate: !1 }), ee = e(null), N = _(!0), P = _(null), F = !1, te = null;
1348
1381
  async function I() {
1349
1382
  P.value = null, N.value = !0;
1350
1383
  try {
@@ -1375,7 +1408,7 @@ function li(t) {
1375
1408
  b.value = s, N.value = !1, j();
1376
1409
  } catch (e) {
1377
1410
  if (F) return;
1378
- hn.error(`[${t.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, e), P.value = e instanceof Error ? e.message : "Failed to load editor", N.value = !1;
1411
+ bn.error(`[${t.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, e), P.value = e instanceof Error ? e.message : "Failed to load editor", N.value = !1;
1379
1412
  }
1380
1413
  }
1381
1414
  function ne() {
@@ -1393,7 +1426,7 @@ function li(t) {
1393
1426
  let i = n.some((e) => e instanceof HTMLElement && e.classList.contains("tpl-color-popover"));
1394
1427
  r.closest(".tpl-text-editor-wrapper") || r.closest(".tpl-text-toolbar") || r.closest(".tpl-link-dialog") || i || t.onDone();
1395
1428
  }
1396
- gt(document, "mousedown", ie), i(() => {
1429
+ xt(document, "mousedown", ie), i(() => {
1397
1430
  F = !0, re(), M(), b.value?.destroy();
1398
1431
  });
1399
1432
  async function ae() {
@@ -1405,7 +1438,7 @@ function li(t) {
1405
1438
  }
1406
1439
  async function oe() {
1407
1440
  let e = await h();
1408
- F || (e && b.value ? ai(b.value, e, l) : b.value?.commands.focus());
1441
+ F || (e && b.value ? _i(b.value, e, l) : b.value?.commands.focus());
1409
1442
  }
1410
1443
  return {
1411
1444
  editor: b,
@@ -1434,9 +1467,9 @@ function li(t) {
1434
1467
  }
1435
1468
  //#endregion
1436
1469
  //#region src/composables/useSmallScreenNotice.ts
1437
- var ui = "(max-width: 767px)";
1438
- function di(e) {
1439
- let t = _t(ui);
1470
+ var Si = "(max-width: 767px)";
1471
+ function Ci(e) {
1472
+ let t = St(Si);
1440
1473
  return {
1441
1474
  isSmallScreen: t,
1442
1475
  showNotice: N(() => (ee(e) ?? !0) && t.value)
@@ -1444,20 +1477,20 @@ function di(e) {
1444
1477
  }
1445
1478
  //#endregion
1446
1479
  //#region src/components/blocks/CustomBlock.vue?vue&type=script&setup=true&lang.ts
1447
- var fi = { class: "tpl:w-full" }, pi = {
1480
+ var wi = { class: "tpl:w-full" }, Ti = {
1448
1481
  key: 0,
1449
- 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)]"
1450
- }, mi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, hi = {
1482
+ class: "tpl:flex tpl:box-border 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)]"
1483
+ }, Ei = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Di = {
1451
1484
  key: 1,
1452
- 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)]"
1453
- }, gi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, _i = {
1485
+ class: "tpl:flex tpl:box-border 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)]"
1486
+ }, Oi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ki = {
1454
1487
  key: 2,
1455
1488
  class: "tpl:relative"
1456
- }, vi = ["innerHTML"], yi = {
1489
+ }, Ai = ["innerHTML"], ji = {
1457
1490
  key: 0,
1458
1491
  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]",
1459
1492
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
1460
- }, bi = /* @__PURE__ */ F({
1493
+ }, Mi = /* @__PURE__ */ F({
1461
1494
  __name: "CustomBlock",
1462
1495
  props: {
1463
1496
  block: {},
@@ -1465,7 +1498,7 @@ var fi = { class: "tpl:w-full" }, pi = {
1465
1498
  },
1466
1499
  emits: ["fetchData"],
1467
1500
  setup(e, { emit: n }) {
1468
- let r = e, i = n, { t: a } = mn(), o = p(cn, null), s = _(""), c = _(!1), l = N(() => o?.getDefinition(r.block.customType)), u = N(() => !!l.value), m = N(() => r.block), { isFetching: h, fetch: g, needsFetch: v, hasDataSource: b } = dt({
1501
+ let r = e, i = n, { t: a } = yn(), o = p(pn, null), s = _(""), c = _(!1), l = N(() => o?.getDefinition(r.block.customType)), u = N(() => !!l.value), m = N(() => r.block), { isFetching: h, fetch: g, needsFetch: v, hasDataSource: b } = et({
1469
1502
  definition: l,
1470
1503
  block: m,
1471
1504
  onUpdate: (e, t) => {
@@ -1474,10 +1507,10 @@ var fi = { class: "tpl:w-full" }, pi = {
1474
1507
  dataSourceFetched: t
1475
1508
  });
1476
1509
  }
1477
- }), T = p(Pt, Tt), E = p(It, null), O = N(() => {
1510
+ }), T = p(zt, At), E = p(Vt, null), O = N(() => {
1478
1511
  if (!E?.value) return r.block;
1479
1512
  let e = {};
1480
- for (let [t, n] of Object.entries(r.block.fieldValues)) e[t] = typeof n == "string" ? He(n, T.value) : n;
1513
+ for (let [t, n] of Object.entries(r.block.fieldValues)) e[t] = typeof n == "string" ? Be(n, T.value) : n;
1481
1514
  return {
1482
1515
  ...r.block,
1483
1516
  fieldValues: e
@@ -1494,17 +1527,17 @@ var fi = { class: "tpl:w-full" }, pi = {
1494
1527
  }
1495
1528
  }
1496
1529
  }
1497
- let j = pt(k, 150);
1530
+ let j = vt(k, 150);
1498
1531
  return d(() => {
1499
1532
  k();
1500
1533
  }), f(() => r.block.fieldValues, () => {
1501
1534
  j();
1502
1535
  }, { deep: !0 }), f(() => E?.value, () => {
1503
1536
  j();
1504
- }), (e, n) => (t(), S("div", fi, [u.value ? c.value ? (t(), S("div", hi, [C(y(Dn), {
1537
+ }), (e, n) => (t(), S("div", wi, [u.value ? c.value ? (t(), S("div", Di, [C(y(jn), {
1505
1538
  size: 24,
1506
1539
  class: "tpl:text-[var(--tpl-danger)]"
1507
- }), x("span", gi, D(y(a).customBlocks.renderError), 1)])) : (t(), S("div", _i, [x("div", { innerHTML: s.value }, null, 8, vi), y(b) && y(v) ? (t(), S("div", yi, [y(h) ? (t(), A(kn, {
1540
+ }), x("span", Oi, D(y(a).customBlocks.renderError), 1)])) : (t(), S("div", ki, [x("div", { innerHTML: s.value }, null, 8, Ai), y(b) && y(v) ? (t(), S("div", ji, [y(h) ? (t(), A(Mn, {
1508
1541
  key: 1,
1509
1542
  class: "tpl:w-48"
1510
1543
  })) : (t(), S("button", {
@@ -1512,16 +1545,16 @@ var fi = { class: "tpl:w-full" }, pi = {
1512
1545
  type: "button",
1513
1546
  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)]",
1514
1547
  onClick: n[0] ||= I((...e) => y(g) && y(g)(...e), ["stop"])
1515
- }, [l.value?.icon ? (t(), A(Yr, {
1548
+ }, [l.value?.icon ? (t(), A(si, {
1516
1549
  key: 0,
1517
1550
  icon: l.value.icon,
1518
1551
  size: 16
1519
- }, null, 8, ["icon"])) : P("", !0), w(" " + D(l.value?.dataSource?.label || y(a).customBlocks.dataSource.fetchButton), 1)]))])) : P("", !0)])) : (t(), S("div", pi, [C(y(Gr), {
1552
+ }, null, 8, ["icon"])) : P("", !0), w(" " + D(l.value?.dataSource?.label || y(a).customBlocks.dataSource.fetchButton), 1)]))])) : P("", !0)])) : (t(), S("div", Ti, [C(y(ri), {
1520
1553
  size: 24,
1521
1554
  class: "tpl:text-[var(--tpl-warning)]"
1522
- }), x("span", mi, D(y(a).customBlocks.definitionNotFound), 1)]))]));
1555
+ }), x("span", Ei, D(y(a).customBlocks.definitionNotFound), 1)]))]));
1523
1556
  }
1524
- }), xi = { class: "tpl:w-full" }, Si = /* @__PURE__ */ F({
1557
+ }), Ni = { class: "tpl:w-full" }, Pi = /* @__PURE__ */ F({
1525
1558
  __name: "DividerBlock",
1526
1559
  props: {
1527
1560
  block: {},
@@ -1533,28 +1566,28 @@ var fi = { class: "tpl:w-full" }, pi = {
1533
1566
  width: r.block.width === "full" ? "100%" : typeof r.block.width == "number" ? `${r.block.width}px` : r.block.width,
1534
1567
  margin: r.block.width === "full" ? "0" : "0 auto"
1535
1568
  }));
1536
- return (e, r) => (t(), S("div", xi, [x("hr", {
1569
+ return (e, r) => (t(), S("div", Ni, [x("hr", {
1537
1570
  class: "tpl:m-0 tpl:border-none",
1538
1571
  style: n(i.value)
1539
1572
  }, null, 4)]));
1540
1573
  }
1541
- }), Ci = { class: "tpl:w-full" }, wi = ["srcdoc", "title"], Ti = {
1574
+ }), Fi = { class: "tpl:w-full" }, Ii = ["srcdoc", "title"], Li = {
1542
1575
  key: 1,
1543
- 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)]"
1544
- }, Ei = {
1576
+ class: "tpl:flex tpl:box-border 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)]"
1577
+ }, Ri = {
1545
1578
  key: 0,
1546
1579
  class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
1547
- }, Di = {
1580
+ }, zi = {
1548
1581
  key: 1,
1549
1582
  class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
1550
- }, Oi = /* @__PURE__ */ F({
1583
+ }, Bi = /* @__PURE__ */ F({
1551
1584
  __name: "HtmlBlock",
1552
1585
  props: {
1553
1586
  block: {},
1554
1587
  viewport: {}
1555
1588
  },
1556
1589
  setup(e) {
1557
- let r = e, { t: a } = mn(), o = p(Kt, !1), s = N(() => r.block.content.trim().length > 0), c = N(() => o && s.value), l = p(Pt, Tt), u = p(It, null), d = N(() => u?.value ? He(r.block.content, l.value) : r.block.content), m = _(null), h = _(60), g = null;
1590
+ let r = e, { t: a } = yn(), o = p(Zt, !1), s = N(() => r.block.content.trim().length > 0), c = N(() => o && s.value), l = p(zt, At), u = p(Vt, null), d = N(() => u?.value ? Be(r.block.content, l.value) : r.block.content), m = _(null), h = _(60), g = null;
1558
1591
  function v() {
1559
1592
  let e = m.value?.contentDocument;
1560
1593
  e && (h.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
@@ -1568,7 +1601,7 @@ var fi = { class: "tpl:w-full" }, pi = {
1568
1601
  e || (g?.disconnect(), g = null);
1569
1602
  }), i(() => {
1570
1603
  g?.disconnect(), g = null;
1571
- }), (e, r) => (t(), S("div", Ci, [c.value ? (t(), S("iframe", {
1604
+ }), (e, r) => (t(), S("div", Fi, [c.value ? (t(), S("iframe", {
1572
1605
  key: 0,
1573
1606
  ref_key: "iframeRef",
1574
1607
  ref: m,
@@ -1578,22 +1611,18 @@ var fi = { class: "tpl:w-full" }, pi = {
1578
1611
  class: "tpl:block tpl:w-full tpl:border-0",
1579
1612
  style: n({ height: `${h.value}px` }),
1580
1613
  onLoad: b
1581
- }, null, 44, wi)) : (t(), S("div", Ti, [C(y(it), {
1614
+ }, null, 44, Ii)) : (t(), S("div", Li, [C(y(pt), {
1582
1615
  size: 24,
1583
1616
  class: "tpl:text-[var(--tpl-text-dim)]"
1584
- }), s.value ? (t(), S("span", Ei, D(y(a).html.preview), 1)) : (t(), S("span", Di, D(y(a).html.empty), 1))]))]));
1617
+ }), s.value ? (t(), S("span", Ri, D(y(a).html.preview), 1)) : (t(), S("span", zi, D(y(a).html.empty), 1))]))]));
1585
1618
  }
1586
- }), ki = ["data-drop-enabled"], Ai = {
1587
- key: 0,
1588
- 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)]",
1589
- style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 85%, transparent)" }
1590
- }, ji = ["href"], Mi = ["src", "alt"], Ni = ["src", "alt"], Pi = {
1619
+ }), Vi = ["data-drop-enabled"], Hi = ["href"], Ui = ["src", "alt"], Wi = ["src", "alt"], Gi = {
1591
1620
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
1592
1621
  style: { opacity: "0.7" }
1593
- }, Fi = ["href"], Ii = ["src", "alt"], Li = ["src", "alt"], Ri = {
1622
+ }, Ki = ["href"], qi = ["src", "alt"], Ji = ["src", "alt"], Yi = {
1594
1623
  key: 4,
1595
- 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)]"
1596
- }, zi = ["aria-label"], Bi = { key: 1 }, Vi = /* @__PURE__ */ F({
1624
+ class: "tpl:flex tpl:box-border 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)]"
1625
+ }, Xi = ["aria-label"], Zi = { key: 1 }, Qi = /* @__PURE__ */ F({
1597
1626
  __name: "ImageBlock",
1598
1627
  props: {
1599
1628
  block: {},
@@ -1601,68 +1630,43 @@ var fi = { class: "tpl:w-full" }, pi = {
1601
1630
  },
1602
1631
  emits: ["update"],
1603
1632
  setup(e, { emit: r }) {
1604
- let i = e, a = r, { t: o } = mn(), { syntax: s } = Mn(), c = p(jt, null), l = p(qt, null), u = N(() => !!c), d = Pn();
1605
- async function f() {
1606
- let e = await c?.({ accept: ["images"] });
1607
- if (d.alive && e) {
1608
- let t = { src: e.url };
1609
- e.alt && (t.alt = e.alt), a("update", t);
1610
- }
1611
- }
1612
- let m = _(), h = _(!1), g = N(() => (l?.value ?? !!c) && !h.value && !k.value);
1613
- async function v(e) {
1614
- if (c) {
1615
- h.value = !0;
1616
- try {
1617
- let t = await c({
1618
- accept: ["images"],
1619
- files: e
1620
- });
1621
- if (!d.alive) return;
1622
- if (t) {
1623
- let e = { src: t.url };
1624
- t.alt && (e.alt = t.alt), a("update", e);
1625
- }
1626
- } finally {
1627
- d.alive && (h.value = !1);
1628
- }
1629
- }
1630
- }
1631
- let { isOver: b } = rt({
1632
- target: m,
1633
- enabled: g,
1634
- onFiles: v
1635
- }), T = N(() => ({ textAlign: i.block.align })), E = N(() => {
1636
- let e = i.block.border, t = ["left", "right"].map((t) => Ee(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
1633
+ let i = e, a = r, { t: o } = yn(), { syntax: s } = Fn(), c = N(() => Ce(i.block.src, s));
1634
+ function l(e) {
1635
+ let t = { src: e.url };
1636
+ e.alt && (t.alt = e.alt), a("update", t);
1637
+ }
1638
+ let u = _(), { canBrowse: d, dropEnabled: f, isUploading: p, showOverlay: m, openMediaBrowser: h } = st({
1639
+ target: u,
1640
+ blocked: c,
1641
+ apply: l
1642
+ }), g = N(() => ({ textAlign: i.block.align })), v = N(() => {
1643
+ let e = i.block.border, t = ["left", "right"].map((t) => Fe(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
1637
1644
  return t > 0 ? `calc(100% - ${t}px)` : "100%";
1638
- }), O = N(() => {
1645
+ }), b = N(() => {
1639
1646
  let e = i.block.align;
1640
1647
  return {
1641
1648
  maxWidth: "100%",
1642
- width: i.block.width === "full" ? E.value : `${i.block.width}px`,
1649
+ width: i.block.width === "full" ? v.value : `${i.block.width}px`,
1643
1650
  height: i.block.height ? `${i.block.height}px` : void 0,
1644
- borderRadius: We(i.block.borderRadius) ?? void 0,
1645
- ...Nr(i.block.border),
1651
+ borderRadius: we(i.block.borderRadius) ?? void 0,
1652
+ ...Gr(i.block.border),
1646
1653
  display: "block",
1647
1654
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
1648
1655
  marginRight: e === "center" ? "auto" : void 0
1649
1656
  };
1650
- }), k = N(() => ke(i.block.src, s)), A = Hn(() => k.value ? void 0 : i.block.src), j = Hn(() => k.value ? i.block.placeholderUrl : void 0);
1657
+ }), T = Wn(() => c.value ? void 0 : i.block.src), E = Wn(() => c.value ? i.block.placeholderUrl : void 0);
1651
1658
  return (r, i) => (t(), S("div", {
1652
1659
  ref_key: "dropZoneRef",
1653
- ref: m,
1660
+ ref: u,
1654
1661
  "data-testid": "image-drop-zone",
1655
- "data-drop-enabled": g.value,
1662
+ "data-drop-enabled": y(f),
1656
1663
  class: "tpl:relative tpl:w-full",
1657
- style: n(T.value)
1658
- }, [g.value && (y(b) || h.value) ? (t(), S("div", Ai, [h.value ? (t(), S(M, { key: 0 }, [C(y(wn), {
1659
- class: "tpl-spinner",
1660
- size: 20,
1661
- "stroke-width": 2
1662
- }), w(" " + D(y(o).image.uploading), 1)], 64)) : (t(), S(M, { key: 1 }, [C(y(On), {
1663
- size: 20,
1664
- "stroke-width": 1.5
1665
- }), w(" " + D(y(o).image.dropToUpload), 1)], 64))])) : P("", !0), e.block.src && k.value && e.block.placeholderUrl ? (t(), S(M, { key: 1 }, [e.block.linkUrl ? (t(), S("a", {
1664
+ style: n(g.value)
1665
+ }, [y(m) ? (t(), A(rt, {
1666
+ key: 0,
1667
+ uploading: y(p),
1668
+ size: "canvas"
1669
+ }, null, 8, ["uploading"])) : P("", !0), e.block.src && c.value && e.block.placeholderUrl ? (t(), S(M, { key: 1 }, [e.block.linkUrl ? (t(), S("a", {
1666
1670
  key: 0,
1667
1671
  href: e.block.linkUrl,
1668
1672
  target: "_blank",
@@ -1671,25 +1675,25 @@ var fi = { class: "tpl:w-full" }, pi = {
1671
1675
  }, [x("img", {
1672
1676
  class: "tpl:border-0",
1673
1677
  loading: "lazy",
1674
- src: y(j),
1678
+ src: y(E),
1675
1679
  alt: e.block.alt || y(o).image.altTextPlaceholder,
1676
- style: n(O.value)
1677
- }, null, 12, Mi)], 8, ji)) : (t(), S("img", {
1680
+ style: n(b.value)
1681
+ }, null, 12, Ui)], 8, Hi)) : (t(), S("img", {
1678
1682
  key: 1,
1679
1683
  class: "tpl:border-0",
1680
- src: y(j),
1684
+ src: y(E),
1681
1685
  alt: e.block.alt,
1682
- style: n(O.value)
1683
- }, null, 12, Ni))], 64)) : e.block.src && k.value ? (t(), S("div", {
1686
+ style: n(b.value)
1687
+ }, null, 12, Wi))], 64)) : e.block.src && c.value ? (t(), S("div", {
1684
1688
  key: 2,
1685
- 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)]",
1686
- style: n([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, O.value])
1687
- }, [C(y(et), {
1689
+ class: "tpl:!flex tpl:box-border 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)]",
1690
+ style: n([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, b.value])
1691
+ }, [C(y(ct), {
1688
1692
  size: 32,
1689
1693
  "stroke-width": 1.5,
1690
1694
  class: "tpl:text-[var(--tpl-primary)]",
1691
1695
  style: { opacity: "0.5" }
1692
- }), x("span", Pi, [C(Lr, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (t(), S(M, { key: 3 }, [e.block.linkUrl ? (t(), S("a", {
1696
+ }), x("span", Gi, [C(Yr, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (t(), S(M, { key: 3 }, [e.block.linkUrl ? (t(), S("a", {
1693
1697
  key: 0,
1694
1698
  href: e.block.linkUrl,
1695
1699
  target: "_blank",
@@ -1698,68 +1702,68 @@ var fi = { class: "tpl:w-full" }, pi = {
1698
1702
  }, [x("img", {
1699
1703
  class: "tpl:border-0",
1700
1704
  loading: "lazy",
1701
- src: y(A),
1705
+ src: y(T),
1702
1706
  alt: e.block.alt || y(o).image.altTextPlaceholder,
1703
- style: n(O.value)
1704
- }, null, 12, Ii)], 8, Fi)) : (t(), S("img", {
1707
+ style: n(b.value)
1708
+ }, null, 12, qi)], 8, Ki)) : (t(), S("img", {
1705
1709
  key: 1,
1706
1710
  class: "tpl:border-0",
1707
- src: y(A),
1711
+ src: y(T),
1708
1712
  alt: e.block.alt,
1709
- style: n(O.value)
1710
- }, null, 12, Li))], 64)) : (t(), S("div", Ri, [u.value ? (t(), S("button", {
1713
+ style: n(b.value)
1714
+ }, null, 12, Ji))], 64)) : (t(), S("div", Yi, [y(d) ? (t(), S("button", {
1711
1715
  key: 0,
1712
1716
  "aria-label": y(o).image.browseMedia,
1713
1717
  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)]",
1714
- onClick: I(f, ["stop"])
1715
- }, [C(y(et), {
1718
+ onClick: i[2] ||= I((...e) => y(h) && y(h)(...e), ["stop"])
1719
+ }, [C(y(ct), {
1716
1720
  size: 14,
1717
1721
  "stroke-width": 1.5
1718
- }), w(" " + D(y(o).image.browseMedia), 1)], 8, zi)) : (t(), S("span", Bi, D(y(o).image.clickToAdd), 1))]))], 12, ki));
1722
+ }), w(" " + D(y(o).image.browseMedia), 1)], 8, Xi)) : (t(), S("span", Zi, D(y(o).image.clickToAdd), 1))]))], 12, Vi));
1719
1723
  }
1720
- }), Hi = { class: "tpl:w-full" }, Ui = ["href"], Wi = {
1724
+ }), $i = { class: "tpl:w-full" }, ea = ["href"], ta = {
1721
1725
  key: 1,
1722
1726
  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)]"
1723
- }, Gi = /* @__PURE__ */ F({
1727
+ }, na = /* @__PURE__ */ F({
1724
1728
  __name: "MenuBlock",
1725
1729
  props: {
1726
1730
  block: {},
1727
1731
  viewport: {}
1728
1732
  },
1729
1733
  setup(e) {
1730
- let r = e, { t: i } = mn(), a = N(() => ({
1734
+ let r = e, { t: i } = yn(), a = wt(mn, "MenuBlock"), o = N(() => ({
1731
1735
  display: "flex",
1732
1736
  flexWrap: "wrap",
1733
1737
  gap: `0 ${r.block.spacing}px`,
1734
1738
  justifyContent: r.block.textAlign === "left" ? "flex-start" : r.block.textAlign === "right" ? "flex-end" : "center",
1735
1739
  fontSize: `${r.block.fontSize}px`,
1736
- fontFamily: r.block.fontFamily || "inherit",
1740
+ fontFamily: r.block.fontFamily ? a.resolveFontFamily(r.block.fontFamily) : "inherit",
1737
1741
  alignItems: "center"
1738
- })), o = N(() => r.block.items.length > 0);
1739
- function s(e) {
1742
+ })), s = N(() => r.block.items.length > 0);
1743
+ function c(e) {
1740
1744
  return e || r.block.linkColor || r.block.color;
1741
1745
  }
1742
- return (r, c) => (t(), S("div", Hi, [o.value ? (t(), S("div", {
1746
+ return (r, a) => (t(), S("div", $i, [s.value ? (t(), S("div", {
1743
1747
  key: 0,
1744
- style: n(a.value)
1748
+ style: n(o.value)
1745
1749
  }, [(t(!0), S(M, null, l(e.block.items, (r, i) => (t(), S(M, { key: r.id }, [x("a", {
1746
1750
  href: r.url || "#",
1747
1751
  class: "tpl:cursor-default tpl:no-underline",
1748
1752
  style: n({
1749
- color: s(r.color),
1753
+ color: c(r.color),
1750
1754
  fontWeight: r.bold ? "bold" : "normal",
1751
1755
  textDecoration: r.underline ? "underline" : "none"
1752
1756
  }),
1753
- onClick: c[0] ||= I(() => {}, ["prevent"])
1754
- }, [C(Lr, { text: r.text || "..." }, null, 8, ["text"])], 12, Ui), i < e.block.items.length - 1 ? (t(), S("span", {
1757
+ onClick: a[0] ||= I(() => {}, ["prevent"])
1758
+ }, [C(Yr, { text: r.text || "..." }, null, 8, ["text"])], 12, ea), i < e.block.items.length - 1 ? (t(), S("span", {
1755
1759
  key: 0,
1756
1760
  style: n({
1757
1761
  color: e.block.separatorColor,
1758
1762
  padding: `0 ${e.block.spacing}px`
1759
1763
  })
1760
- }, D(e.block.separator), 5)) : P("", !0)], 64))), 128))], 4)) : (t(), S("div", Wi, [C(y(st), { size: 16 }), x("span", null, D(y(i).menu.addLinks), 1)]))]));
1764
+ }, D(e.block.separator), 5)) : P("", !0)], 64))), 128))], 4)) : (t(), S("div", ta, [C(y(it), { size: 16 }), x("span", null, D(y(i).menu.addLinks), 1)]))]));
1761
1765
  }
1762
- }), Ki = /* @__PURE__ */ new Set([
1766
+ }), ra = /* @__PURE__ */ new Set([
1763
1767
  "http",
1764
1768
  "https",
1765
1769
  "mailto",
@@ -1769,7 +1773,7 @@ var fi = { class: "tpl:w-full" }, pi = {
1769
1773
  "sms",
1770
1774
  "xmpp",
1771
1775
  "cid"
1772
- ]), qi = /* @__PURE__ */ new Set([
1776
+ ]), ia = /* @__PURE__ */ new Set([
1773
1777
  "SCRIPT",
1774
1778
  "STYLE",
1775
1779
  "IFRAME",
@@ -1779,7 +1783,7 @@ var fi = { class: "tpl:w-full" }, pi = {
1779
1783
  "META",
1780
1784
  "BASE",
1781
1785
  "FORM"
1782
- ]), Ji = /* @__PURE__ */ new Set([
1786
+ ]), aa = /* @__PURE__ */ new Set([
1783
1787
  "href",
1784
1788
  "xlink:href",
1785
1789
  "formaction",
@@ -1788,16 +1792,16 @@ var fi = { class: "tpl:w-full" }, pi = {
1788
1792
  "background",
1789
1793
  "poster"
1790
1794
  ]);
1791
- function Yi(e, t) {
1795
+ function oa(e, t) {
1792
1796
  let n = e.replace(/[\t\n\r]/g, "").replace(/^[\u0000-\u0020]+/, "").trimEnd();
1793
1797
  if (!n || n.startsWith("#")) return !0;
1794
1798
  let r = /^([a-z][a-z0-9+.-]*):/i.exec(n);
1795
1799
  if (!r) return !0;
1796
1800
  let i = r[1].toLowerCase();
1797
- return Ki.has(i) ? !0 : t && i === "data" ? /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i.test(n) : !1;
1801
+ return ra.has(i) ? !0 : t && i === "data" ? /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i.test(n) : !1;
1798
1802
  }
1799
- function Xi(e) {
1800
- if (qi.has(e.tagName)) {
1803
+ function sa(e) {
1804
+ if (ia.has(e.tagName)) {
1801
1805
  e.remove();
1802
1806
  return;
1803
1807
  }
@@ -1805,21 +1809,21 @@ function Xi(e) {
1805
1809
  for (let n = 0; n < e.attributes.length; n++) t.push(e.attributes[n].name);
1806
1810
  for (let n of t) {
1807
1811
  let t = n.toLowerCase();
1808
- t.startsWith("on") ? e.removeAttribute(n) : Ji.has(t) ? Yi(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n) : t === "src" ? Yi(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n) : t === "srcdoc" && e.removeAttribute(n);
1812
+ t.startsWith("on") ? e.removeAttribute(n) : aa.has(t) ? oa(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n) : t === "src" ? oa(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n) : t === "srcdoc" && e.removeAttribute(n);
1809
1813
  }
1810
1814
  let n = Array.from(e.children);
1811
- for (let e of n) Xi(e);
1815
+ for (let e of n) sa(e);
1812
1816
  }
1813
- function Zi(e) {
1817
+ function ca(e) {
1814
1818
  if (typeof DOMParser > "u") return e;
1815
1819
  let t = new DOMParser().parseFromString(`<!doctype html><body>${e}</body>`, "text/html").body, n = Array.from(t.children);
1816
- for (let e of n) Xi(e);
1820
+ for (let e of n) sa(e);
1817
1821
  return t.innerHTML;
1818
1822
  }
1819
1823
  //#endregion
1820
1824
  //#region src/composables/useEditableTextBlock.ts
1821
- function Qi(e) {
1822
- let t = p(Pt, Tt), n = p(It, null), { syntax: r } = Mn(), i = N(() => n?.value ? Re(e(), t.value) : Oe(e(), t.value)), a = N(() => Zi(ie(i.value, r))), o = _(!1), s = _(null), { top: c, left: l } = vt(s), { toLocal: u } = yn(), d = N(() => u({
1825
+ function la(e) {
1826
+ let t = p(zt, At), n = p(Vt, null), { syntax: r } = Fn(), i = N(() => n?.value ? We(e(), t.value) : Je(e(), t.value)), a = N(() => $e(ca(He(i.value, r)))), o = _(!1), s = _(null), { top: c, left: l } = Ct(s), { toLocal: u } = wn(), d = N(() => u({
1823
1827
  top: c.value - 8,
1824
1828
  left: l.value
1825
1829
  }));
@@ -1840,14 +1844,14 @@ function Qi(e) {
1840
1844
  }
1841
1845
  //#endregion
1842
1846
  //#region src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
1843
- var $i = ["innerHTML"], ea = /* @__PURE__ */ F({
1847
+ var ua = ["innerHTML"], da = /* @__PURE__ */ F({
1844
1848
  __name: "ParagraphBlock",
1845
1849
  props: {
1846
1850
  block: {},
1847
1851
  viewport: {}
1848
1852
  },
1849
1853
  setup(e) {
1850
- let n = e, r = v(() => import("./ParagraphEditor-CxuW3TV0.js")), { isEditing: i, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = Qi(() => n.block.content);
1854
+ let n = e, r = v(() => import("./ParagraphEditor-CcEN1N6n.js")), { isEditing: i, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = la(() => n.block.content);
1851
1855
  return (n, u) => (t(), S("div", {
1852
1856
  ref_key: "blockRef",
1853
1857
  ref: a,
@@ -1866,26 +1870,26 @@ var $i = ["innerHTML"], ea = /* @__PURE__ */ F({
1866
1870
  key: 1,
1867
1871
  class: "tpl-text-content tpl:outline-none",
1868
1872
  innerHTML: y(s)
1869
- }, null, 8, $i))], 544));
1873
+ }, null, 8, ua))], 544));
1870
1874
  }
1871
- }), ta = [
1875
+ }), fa = [
1872
1876
  "data-block-id",
1873
1877
  "data-block-type",
1874
1878
  "data-tpl-picked"
1875
- ], na = ["aria-label"], ra = [
1879
+ ], pa = ["aria-label"], ma = [
1876
1880
  "aria-label",
1877
1881
  "aria-pressed",
1878
1882
  "title"
1879
- ], ia = ["aria-label", "title"], aa = ["aria-label", "title"], oa = ["aria-label", "title"], sa = {
1883
+ ], ha = ["aria-label", "title"], ga = ["aria-label", "title"], _a = ["aria-label", "title"], va = {
1880
1884
  key: 1,
1881
1885
  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"
1882
- }, ca = { 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)]" }, la = {
1886
+ }, ya = { 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)]" }, ba = {
1883
1887
  key: 2,
1884
1888
  class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
1885
- }, ua = ["aria-label", "title"], da = {
1889
+ }, xa = ["aria-label", "title"], Sa = {
1886
1890
  key: 3,
1887
1891
  class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
1888
- }, fa = ["aria-label"], pa = /*#__PURE__*/ An(/* @__PURE__ */ F({
1892
+ }, Ca = ["aria-label"], wa = /*#__PURE__*/ Nn(/* @__PURE__ */ F({
1889
1893
  __name: "BlockWrapper",
1890
1894
  props: {
1891
1895
  block: {},
@@ -1897,7 +1901,7 @@ var $i = ["innerHTML"], ea = /* @__PURE__ */ F({
1897
1901
  },
1898
1902
  emits: ["select"],
1899
1903
  setup(e, { emit: r }) {
1900
- let i = v(() => import("./BlockIssueBadge-CZA1XvAh.js")), o = e, s = r, { t: c, format: l } = mn(), d = p(Rt, null), f = _(null), m = N(() => d?.liftedBlockId.value === o.block.id), h = N(() => m.value ? l(c.blockActions.dragLifted, { block: o.block.type }) : c.blockActions.drag);
1904
+ let i = v(() => import("./BlockIssueBadge-AgO5abEB.js")), o = e, s = r, { t: c, format: l } = yn(), d = p(Ut, null), f = _(null), m = N(() => d?.liftedBlockId.value === o.block.id), h = N(() => m.value ? l(c.blockActions.dragLifted, { block: o.block.type }) : c.blockActions.drag);
1901
1905
  async function g() {
1902
1906
  await a(), f.value?.focus();
1903
1907
  }
@@ -1907,20 +1911,20 @@ var $i = ["innerHTML"], ea = /* @__PURE__ */ F({
1907
1911
  let T = N(() => !o.viewport || !o.block.visibility ? !1 : o.block.visibility[o.viewport] === !1), E = N(() => o.previewMode === !0 && T.value), O = N(() => o.viewport ? {
1908
1912
  desktop: c.viewport.desktop,
1909
1913
  mobile: c.viewport.mobile
1910
- }[o.viewport] ?? o.viewport : ""), A = N(() => !!o.block.displayCondition), j = p(Gt, null), M = p(Yt, null), ee = p(en, {}), F = N(() => ee.savedBlocks?.isPicking.value === !0), te = N(() => !o.nested && ee.savedBlocks?.isAvailable.value === !0 && ee.savedBlocks?.canCreate.value === !0), ne = N(() => o.isSelected && !F.value), re = N(() => ee.comments?.getBlockCount(o.block.id) ?? 0), ie = N(() => Mr(o.block)), ae = N(() => Pr(o.block));
1911
- function oe(e) {
1914
+ }[o.viewport] ?? o.viewport : ""), A = N(() => !!o.block.displayCondition), j = p(Xt, null), M = p(en, null), ee = p(on, {}), F = N(() => ee.savedBlocks?.isPicking.value === !0), te = N(() => !o.nested && ee.savedBlocks?.isAvailable.value === !0 && ee.savedBlocks?.canCreate.value === !0), ne = N(() => o.isSelected && !F.value), re = N(() => ee.comments?.getBlockCount(o.block.id) ?? 0), ie = Jn(() => o.block.type === "section" ? o.block.backgroundImage : void 0), ae = Jn(() => o.block.type === "section" ? o.block.wrapper?.backgroundImage : void 0), oe = N(() => Ur(o.block, { backgroundImageUrl: ie.value })), se = N(() => Kr(o.block, { backgroundImageUrl: ae.value }));
1915
+ function ce(e) {
1912
1916
  o.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), s("select"));
1913
1917
  }
1914
- function se() {
1918
+ function le() {
1915
1919
  j?.deleteBlock(o.block.id);
1916
1920
  }
1917
- function ce() {
1921
+ function ue() {
1918
1922
  j?.duplicateBlock(o.block);
1919
1923
  }
1920
- function le() {
1924
+ function de() {
1921
1925
  ee.savedBlocks?.startPicking(o.block.id);
1922
1926
  }
1923
- function ue() {
1927
+ function fe() {
1924
1928
  M?.toggleBlock(o.block.id);
1925
1929
  }
1926
1930
  return (r, a) => E.value ? P("", !0) : (t(), S("div", {
@@ -1934,7 +1938,7 @@ var $i = ["innerHTML"], ea = /* @__PURE__ */ F({
1934
1938
  "data-block-id": e.block.id,
1935
1939
  "data-block-type": e.block.type,
1936
1940
  "data-tpl-picked": e.picked || void 0,
1937
- onClick: oe
1941
+ onClick: ce
1938
1942
  }, [
1939
1943
  C(y(i), { "block-id": e.block.id }, null, 8, ["block-id"]),
1940
1944
  ne.value ? (t(), S("div", {
@@ -1952,205 +1956,206 @@ var $i = ["innerHTML"], ea = /* @__PURE__ */ F({
1952
1956
  "aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
1953
1957
  title: y(c).blockActions.drag,
1954
1958
  onKeydown: b
1955
- }, [C(y(Wr), {
1959
+ }, [C(y(ni), {
1956
1960
  size: 14,
1957
1961
  "stroke-width": 1.5
1958
- })], 40, ra),
1962
+ })], 40, ma),
1959
1963
  x("button", {
1960
1964
  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",
1961
1965
  "aria-label": y(c).blockActions.duplicate,
1962
1966
  title: y(c).blockActions.duplicate,
1963
- onClick: I(ce, ["stop"])
1964
- }, [C(y(Cn), {
1967
+ onClick: I(ue, ["stop"])
1968
+ }, [C(y(On), {
1965
1969
  size: 14,
1966
1970
  "stroke-width": 1.5
1967
- })], 8, ia),
1971
+ })], 8, ha),
1968
1972
  te.value ? (t(), S("button", {
1969
1973
  key: 0,
1970
1974
  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",
1971
1975
  "aria-label": y(c).blockActions.saveAsBlock,
1972
1976
  title: y(c).blockActions.saveAsBlock,
1973
- onClick: I(le, ["stop"])
1974
- }, [C(y(Br), {
1977
+ onClick: I(de, ["stop"])
1978
+ }, [C(y(Qr), {
1975
1979
  size: 14,
1976
1980
  "stroke-width": 1.5
1977
- })], 8, aa)) : P("", !0),
1981
+ })], 8, ga)) : P("", !0),
1978
1982
  x("button", {
1979
1983
  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",
1980
1984
  "aria-label": y(c).blockActions.delete,
1981
1985
  title: y(c).blockActions.delete,
1982
- onClick: I(se, ["stop"])
1983
- }, [C(y(En), {
1986
+ onClick: I(le, ["stop"])
1987
+ }, [C(y(An), {
1984
1988
  size: 14,
1985
1989
  "stroke-width": 1.5
1986
- })], 8, oa)
1987
- ], 8, na)) : P("", !0),
1988
- T.value ? (t(), S("div", sa, [x("span", ca, [C(y(Hr), {
1990
+ })], 8, _a)
1991
+ ], 8, pa)) : P("", !0),
1992
+ T.value ? (t(), S("div", va, [x("span", ya, [C(y(ei), {
1989
1993
  size: 12,
1990
1994
  "stroke-width": 1.5
1991
1995
  }), w(" " + D(y(l)(y(c).blockActions.hiddenOnViewport, { viewport: O.value })), 1)])])) : P("", !0),
1992
- A.value && !T.value ? (t(), S("div", la, [x("button", {
1996
+ A.value && !T.value ? (t(), S("div", ba, [x("button", {
1993
1997
  "data-testid": "condition-toggle",
1994
1998
  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)]",
1995
1999
  "aria-label": y(c).blockActions.conditionToggle,
1996
2000
  title: e.block.displayCondition?.label,
1997
- onClick: I(ue, ["stop"])
1998
- }, [C(y(Ur), {
2001
+ onClick: I(fe, ["stop"])
2002
+ }, [C(y(ti), {
1999
2003
  size: 12,
2000
2004
  "stroke-width": 2
2001
- })], 8, ua)])) : P("", !0),
2002
- re.value > 0 && !T.value ? (t(), S("div", da, [x("button", {
2005
+ })], 8, xa)])) : P("", !0),
2006
+ re.value > 0 && !T.value ? (t(), S("div", Sa, [x("button", {
2003
2007
  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)]",
2004
2008
  "aria-label": y(l)(y(c).blockActions.comments, { count: String(re.value) }),
2005
2009
  onClick: a[0] ||= I((t) => y(ee).comments?.openForBlock(e.block.id), ["stop"])
2006
- }, [C(y(Tn), {
2010
+ }, [C(y(kn), {
2007
2011
  size: 12,
2008
2012
  "stroke-width": 2.5
2009
- }), w(" " + D(re.value), 1)], 8, fa)])) : P("", !0),
2010
- ae.value ? (t(), S("div", {
2013
+ }), w(" " + D(re.value), 1)], 8, Ca)])) : P("", !0),
2014
+ se.value ? (t(), S("div", {
2011
2015
  key: 4,
2012
- class: "tpl-section-wrapper",
2013
- style: n(ae.value)
2016
+ class: k(["tpl-section-wrapper tpl-email-surface", y(Hr)(se.value)]),
2017
+ style: n(se.value)
2014
2018
  }, [x("div", {
2015
- class: "tpl-block-content",
2016
- style: n(ie.value)
2017
- }, [u(r.$slots, "default", {}, void 0, !0)], 4)], 4)) : (t(), S("div", {
2019
+ class: k(["tpl-block-content tpl-email-surface", y(Hr)(oe.value)]),
2020
+ style: n(oe.value)
2021
+ }, [u(r.$slots, "default", {}, void 0, !0)], 6)], 6)) : (t(), S("div", {
2018
2022
  key: 5,
2019
- class: "tpl-block-content",
2020
- style: n(ie.value)
2021
- }, [u(r.$slots, "default", {}, void 0, !0)], 4))
2022
- ], 10, ta));
2023
+ class: k(["tpl-block-content tpl-email-surface", y(Hr)(oe.value)]),
2024
+ style: n(oe.value)
2025
+ }, [u(r.$slots, "default", {}, void 0, !0)], 6))
2026
+ ], 10, fa));
2023
2027
  }
2024
- }), [["__scopeId", "data-v-2c239048"]]);
2028
+ }), [["__scopeId", "data-v-d4623cf8"]]);
2025
2029
  //#endregion
2026
2030
  //#region src/utils/unwrapParagraph.ts
2027
- function ma(e) {
2031
+ function Ta(e) {
2028
2032
  let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
2029
2033
  return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
2030
2034
  }
2031
2035
  //#endregion
2032
2036
  //#region src/components/blocks/TitleBlock.vue
2033
- var ha = /* @__PURE__ */ F({
2037
+ var Ea = /* @__PURE__ */ F({
2034
2038
  __name: "TitleBlock",
2035
2039
  props: {
2036
2040
  block: {},
2037
2041
  viewport: {}
2038
2042
  },
2039
2043
  setup(e) {
2040
- let r = e, i = v(() => import("./TitleEditor-CmC9OuhA.js")), { isEditing: a, blockRef: s, toolbarPosition: c, resolvedContent: l, handleDoubleClick: u, handleEditorDone: d } = Qi(() => r.block.content), f = N(() => {
2044
+ let r = e, i = v(() => import("./TitleEditor-CZdqeltH.js")), a = wt(mn, "TitleBlock"), { isEditing: s, blockRef: c, toolbarPosition: l, resolvedContent: u, handleDoubleClick: d, handleEditorDone: f } = la(() => r.block.content), p = N(() => {
2041
2045
  let e = {
2042
- fontSize: `${Le[r.block.level]}px`,
2046
+ fontSize: `${qe[r.block.level]}px`,
2047
+ lineHeight: String(Me),
2043
2048
  textAlign: r.block.textAlign
2044
2049
  };
2045
- return r.block.color && (e.color = r.block.color), r.block.fontFamily && (e.fontFamily = r.block.fontFamily), e;
2046
- }), p = N(() => `h${r.block.level}`), m = N(() => ma(l.value));
2047
- return (r, l) => (t(), S("div", {
2050
+ return r.block.color && (e.color = r.block.color), r.block.fontFamily && (e.fontFamily = a.resolveFontFamily(r.block.fontFamily)), e;
2051
+ }), m = N(() => `h${r.block.level}`), h = N(() => Ta(u.value));
2052
+ return (r, a) => (t(), S("div", {
2048
2053
  ref_key: "blockRef",
2049
- ref: s,
2054
+ ref: c,
2050
2055
  class: "tpl:min-h-[1em] tpl:w-full",
2051
- style: n(f.value),
2052
- onDblclick: l[0] ||= (...e) => y(u) && y(u)(...e)
2053
- }, [y(a) ? (t(), A(y(i), {
2056
+ style: n(p.value),
2057
+ onDblclick: a[0] ||= (...e) => y(d) && y(d)(...e)
2058
+ }, [y(s) ? (t(), A(y(i), {
2054
2059
  key: 0,
2055
2060
  block: e.block,
2056
- "toolbar-position": y(c),
2057
- onDone: y(d)
2061
+ "toolbar-position": y(l),
2062
+ onDone: y(f)
2058
2063
  }, null, 8, [
2059
2064
  "block",
2060
2065
  "toolbar-position",
2061
2066
  "onDone"
2062
- ])) : (t(), A(o(p.value), {
2067
+ ])) : (t(), A(o(m.value), {
2063
2068
  key: 1,
2064
- class: "tpl-text-content tpl:m-0 tpl:font-[inherit] tpl:text-[length:inherit] tpl:leading-tight tpl:outline-none",
2069
+ class: "tpl-text-content tpl:m-0 tpl:font-[inherit] tpl:text-[length:inherit] tpl:leading-[inherit] tpl:outline-none",
2065
2070
  style: { color: "inherit" },
2066
- innerHTML: m.value
2071
+ innerHTML: h.value
2067
2072
  }, null, 8, ["innerHTML"]))], 36));
2068
2073
  }
2069
2074
  });
2070
2075
  //#endregion
2071
2076
  //#region src/utils/sectionColumnDrop.ts
2072
- function ga(e) {
2077
+ function Da(e) {
2073
2078
  return e.dataset.blockType !== "section" && e.dataset.paletteType !== "section";
2074
2079
  }
2075
2080
  //#endregion
2076
2081
  //#region ../../node_modules/.pnpm/vue-draggable-plus@0.6.1_@types+sortablejs@1.15.9/node_modules/vue-draggable-plus/dist/vue-draggable-plus.js
2077
- var _a = Object.defineProperty, va = Object.getOwnPropertySymbols, ya = Object.prototype.hasOwnProperty, ba = Object.prototype.propertyIsEnumerable, xa = (e, t, n) => t in e ? _a(e, t, {
2082
+ var Oa = Object.defineProperty, ka = Object.getOwnPropertySymbols, Aa = Object.prototype.hasOwnProperty, ja = Object.prototype.propertyIsEnumerable, Ma = (e, t, n) => t in e ? Oa(e, t, {
2078
2083
  enumerable: !0,
2079
2084
  configurable: !0,
2080
2085
  writable: !0,
2081
2086
  value: n
2082
- }) : e[t] = n, Sa = (e, t) => {
2083
- for (var n in t ||= {}) ya.call(t, n) && xa(e, n, t[n]);
2084
- if (va) for (var n of va(t)) ba.call(t, n) && xa(e, n, t[n]);
2087
+ }) : e[t] = n, Na = (e, t) => {
2088
+ for (var n in t ||= {}) Aa.call(t, n) && Ma(e, n, t[n]);
2089
+ if (ka) for (var n of ka(t)) ja.call(t, n) && Ma(e, n, t[n]);
2085
2090
  return e;
2086
- }, Ca = (e, t) => {
2091
+ }, Pa = (e, t) => {
2087
2092
  var n = {};
2088
- for (var r in e) ya.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
2089
- if (e != null && va) for (var r of va(e)) t.indexOf(r) < 0 && ba.call(e, r) && (n[r] = e[r]);
2093
+ for (var r in e) Aa.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
2094
+ if (e != null && ka) for (var r of ka(e)) t.indexOf(r) < 0 && ja.call(e, r) && (n[r] = e[r]);
2090
2095
  return n;
2091
- }, wa = "[vue-draggable-plus]: ";
2092
- function Ta(e) {
2093
- console.warn(wa + e);
2096
+ }, Fa = "[vue-draggable-plus]: ";
2097
+ function Ia(e) {
2098
+ console.warn(Fa + e);
2094
2099
  }
2095
- function Ea(e) {
2096
- console.error(wa + e);
2100
+ function La(e) {
2101
+ console.error(Fa + e);
2097
2102
  }
2098
- function Da(e, t, n) {
2103
+ function Ra(e, t, n) {
2099
2104
  return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
2100
2105
  }
2101
- function Oa(e) {
2106
+ function za(e) {
2102
2107
  return e.replace(/-(\w)/g, (e, t) => t ? t.toUpperCase() : "");
2103
2108
  }
2104
- function ka(e) {
2105
- return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[Oa(n)] = e[n]), t), {});
2109
+ function Ba(e) {
2110
+ return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[za(n)] = e[n]), t), {});
2106
2111
  }
2107
- function Aa(e, t) {
2112
+ function Va(e, t) {
2108
2113
  return Array.isArray(e) && e.splice(t, 1), e;
2109
2114
  }
2110
- function ja(e, t, n) {
2115
+ function Ha(e, t, n) {
2111
2116
  return Array.isArray(e) && e.splice(t, 0, n), e;
2112
2117
  }
2113
- function Ma(e) {
2118
+ function Ua(e) {
2114
2119
  return e === void 0;
2115
2120
  }
2116
- function Na(e) {
2121
+ function Wa(e) {
2117
2122
  return typeof e == "string";
2118
2123
  }
2119
- function Pa(e, t, n) {
2124
+ function Ga(e, t, n) {
2120
2125
  let r = e.children[n];
2121
2126
  e.insertBefore(t, r);
2122
2127
  }
2123
- function Fa(e) {
2128
+ function Ka(e) {
2124
2129
  e.parentNode && e.parentNode.removeChild(e);
2125
2130
  }
2126
- function Ia(e, t = document) {
2131
+ function qa(e, t = document) {
2127
2132
  let n = null;
2128
- return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || Ta(`Element not found: ${e}`), n;
2133
+ return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || Ia(`Element not found: ${e}`), n;
2129
2134
  }
2130
- function La(e, t, n = null) {
2135
+ function Ja(e, t, n = null) {
2131
2136
  return function(...r) {
2132
2137
  return e.apply(n, r), t.apply(n, r);
2133
2138
  };
2134
2139
  }
2135
- function Ra(e, t) {
2136
- let n = Sa({}, e);
2140
+ function Ya(e, t) {
2141
+ let n = Na({}, e);
2137
2142
  return Object.keys(t).forEach((r) => {
2138
- n[r] ? n[r] = La(e[r], t[r]) : n[r] = t[r];
2143
+ n[r] ? n[r] = Ja(e[r], t[r]) : n[r] = t[r];
2139
2144
  }), n;
2140
2145
  }
2141
- function za(e) {
2146
+ function Xa(e) {
2142
2147
  return e instanceof HTMLElement;
2143
2148
  }
2144
- function Ba(e, t) {
2149
+ function Za(e, t) {
2145
2150
  Object.keys(e).forEach((n) => {
2146
2151
  t(n, e[n]);
2147
2152
  });
2148
2153
  }
2149
- function Va(e) {
2154
+ function Qa(e) {
2150
2155
  return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
2151
2156
  }
2152
- var Ha = Object.assign;
2153
- function Ua(e, t) {
2157
+ var $a = Object.assign;
2158
+ function eo(e, t) {
2154
2159
  var n = Object.keys(e);
2155
2160
  if (Object.getOwnPropertySymbols) {
2156
2161
  var r = Object.getOwnPropertySymbols(e);
@@ -2160,26 +2165,26 @@ function Ua(e, t) {
2160
2165
  }
2161
2166
  return n;
2162
2167
  }
2163
- function Wa(e) {
2168
+ function to(e) {
2164
2169
  for (var t = 1; t < arguments.length; t++) {
2165
2170
  var n = arguments[t] == null ? {} : arguments[t];
2166
- t % 2 ? Ua(Object(n), !0).forEach(function(t) {
2167
- Ka(e, t, n[t]);
2168
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ua(Object(n)).forEach(function(t) {
2171
+ t % 2 ? eo(Object(n), !0).forEach(function(t) {
2172
+ ro(e, t, n[t]);
2173
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : eo(Object(n)).forEach(function(t) {
2169
2174
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
2170
2175
  });
2171
2176
  }
2172
2177
  return e;
2173
2178
  }
2174
- function Ga(e) {
2179
+ function no(e) {
2175
2180
  "@babel/helpers - typeof";
2176
- return Ga = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2181
+ return no = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2177
2182
  return typeof e;
2178
2183
  } : function(e) {
2179
2184
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2180
- }, Ga(e);
2185
+ }, no(e);
2181
2186
  }
2182
- function Ka(e, t, n) {
2187
+ function ro(e, t, n) {
2183
2188
  return t in e ? Object.defineProperty(e, t, {
2184
2189
  value: n,
2185
2190
  enumerable: !0,
@@ -2187,44 +2192,44 @@ function Ka(e, t, n) {
2187
2192
  writable: !0
2188
2193
  }) : e[t] = n, e;
2189
2194
  }
2190
- function qa() {
2191
- return qa = Object.assign || function(e) {
2195
+ function io() {
2196
+ return io = Object.assign || function(e) {
2192
2197
  for (var t = 1; t < arguments.length; t++) {
2193
2198
  var n = arguments[t];
2194
2199
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
2195
2200
  }
2196
2201
  return e;
2197
- }, qa.apply(this, arguments);
2202
+ }, io.apply(this, arguments);
2198
2203
  }
2199
- function Ja(e, t) {
2204
+ function ao(e, t) {
2200
2205
  if (e == null) return {};
2201
2206
  for (var n = {}, r = Object.keys(e), i, a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
2202
2207
  return n;
2203
2208
  }
2204
- function Ya(e, t) {
2209
+ function oo(e, t) {
2205
2210
  if (e == null) return {};
2206
- var n = Ja(e, t), r, i;
2211
+ var n = ao(e, t), r, i;
2207
2212
  if (Object.getOwnPropertySymbols) {
2208
2213
  var a = Object.getOwnPropertySymbols(e);
2209
2214
  for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
2210
2215
  }
2211
2216
  return n;
2212
2217
  }
2213
- var Xa = "1.15.2";
2214
- function Za(e) {
2218
+ var so = "1.15.2";
2219
+ function co(e) {
2215
2220
  if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
2216
2221
  }
2217
- var Qa = Za(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), $a = Za(/Edge/i), eo = Za(/firefox/i), to = Za(/safari/i) && !Za(/chrome/i) && !Za(/android/i), no = Za(/iP(ad|od|hone)/i), ro = Za(/chrome/i) && Za(/android/i), io = {
2222
+ var lo = co(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), uo = co(/Edge/i), fo = co(/firefox/i), po = co(/safari/i) && !co(/chrome/i) && !co(/android/i), mo = co(/iP(ad|od|hone)/i), ho = co(/chrome/i) && co(/android/i), go = {
2218
2223
  capture: !1,
2219
2224
  passive: !1
2220
2225
  };
2221
2226
  function L(e, t, n) {
2222
- e.addEventListener(t, n, !Qa && io);
2227
+ e.addEventListener(t, n, !lo && go);
2223
2228
  }
2224
2229
  function R(e, t, n) {
2225
- e.removeEventListener(t, n, !Qa && io);
2230
+ e.removeEventListener(t, n, !lo && go);
2226
2231
  }
2227
- function ao(e, t) {
2232
+ function _o(e, t) {
2228
2233
  if (t) {
2229
2234
  if (t[0] === ">" && (t = t.substring(1)), e) try {
2230
2235
  if (e.matches) return e.matches(t);
@@ -2236,41 +2241,41 @@ function ao(e, t) {
2236
2241
  return !1;
2237
2242
  }
2238
2243
  }
2239
- function oo(e) {
2244
+ function vo(e) {
2240
2245
  return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
2241
2246
  }
2242
- function so(e, t, n, r) {
2247
+ function yo(e, t, n, r) {
2243
2248
  if (e) {
2244
2249
  n ||= document;
2245
2250
  do {
2246
- if (t != null && (t[0] === ">" ? e.parentNode === n && ao(e, t) : ao(e, t)) || r && e === n) return e;
2251
+ if (t != null && (t[0] === ">" ? e.parentNode === n && _o(e, t) : _o(e, t)) || r && e === n) return e;
2247
2252
  if (e === n) break;
2248
- } while (e = oo(e));
2253
+ } while (e = vo(e));
2249
2254
  }
2250
2255
  return null;
2251
2256
  }
2252
- var co = /\s+/g;
2253
- function z(e, t, n) {
2254
- e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(co, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(co, " "));
2257
+ var bo = /\s+/g;
2258
+ function xo(e, t, n) {
2259
+ e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(bo, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(bo, " "));
2255
2260
  }
2256
- function B(e, t, n) {
2261
+ function z(e, t, n) {
2257
2262
  var r = e && e.style;
2258
2263
  if (r) {
2259
2264
  if (n === void 0) return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (n = e.currentStyle), t === void 0 ? n : n[t];
2260
2265
  !(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
2261
2266
  }
2262
2267
  }
2263
- function lo(e, t) {
2268
+ function So(e, t) {
2264
2269
  var n = "";
2265
2270
  if (typeof e == "string") n = e;
2266
2271
  else do {
2267
- var r = B(e, "transform");
2272
+ var r = z(e, "transform");
2268
2273
  r && r !== "none" && (n = r + " " + n);
2269
2274
  } while (!t && (e = e.parentNode));
2270
2275
  var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
2271
2276
  return i && new i(n);
2272
2277
  }
2273
- function uo(e, t, n) {
2278
+ function Co(e, t, n) {
2274
2279
  if (e) {
2275
2280
  var r = e.getElementsByTagName(t), i = 0, a = r.length;
2276
2281
  if (n) for (; i < a; i++) n(r[i], i);
@@ -2278,21 +2283,21 @@ function uo(e, t, n) {
2278
2283
  }
2279
2284
  return [];
2280
2285
  }
2281
- function fo() {
2286
+ function wo() {
2282
2287
  return document.scrollingElement || document.documentElement;
2283
2288
  }
2284
- function V(e, t, n, r, i) {
2289
+ function B(e, t, n, r, i) {
2285
2290
  if (e.getBoundingClientRect || e === window) {
2286
2291
  var a, o, s, c, l, u, d;
2287
- if (e !== window && e.parentNode && e !== fo() ? (a = e.getBoundingClientRect(), o = a.top, s = a.left, c = a.bottom, l = a.right, u = a.height, d = a.width) : (o = 0, s = 0, c = window.innerHeight, l = window.innerWidth, u = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (i ||= e.parentNode, !Qa)) do
2288
- if (i && i.getBoundingClientRect && (B(i, "transform") !== "none" || n && B(i, "position") !== "static")) {
2292
+ if (e !== window && e.parentNode && e !== wo() ? (a = e.getBoundingClientRect(), o = a.top, s = a.left, c = a.bottom, l = a.right, u = a.height, d = a.width) : (o = 0, s = 0, c = window.innerHeight, l = window.innerWidth, u = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (i ||= e.parentNode, !lo)) do
2293
+ if (i && i.getBoundingClientRect && (z(i, "transform") !== "none" || n && z(i, "position") !== "static")) {
2289
2294
  var f = i.getBoundingClientRect();
2290
- o -= f.top + parseInt(B(i, "border-top-width")), s -= f.left + parseInt(B(i, "border-left-width")), c = o + a.height, l = s + a.width;
2295
+ o -= f.top + parseInt(z(i, "border-top-width")), s -= f.left + parseInt(z(i, "border-left-width")), c = o + a.height, l = s + a.width;
2291
2296
  break;
2292
2297
  }
2293
2298
  while (i = i.parentNode);
2294
2299
  if (r && e !== window) {
2295
- var p = lo(i || e), m = p && p.a, h = p && p.d;
2300
+ var p = So(i || e), m = p && p.a, h = p && p.d;
2296
2301
  p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
2297
2302
  }
2298
2303
  return {
@@ -2305,18 +2310,18 @@ function V(e, t, n, r, i) {
2305
2310
  };
2306
2311
  }
2307
2312
  }
2308
- function po(e, t, n) {
2309
- for (var r = yo(e, !0), i = V(e)[t]; r;) {
2310
- var a = V(r)[n], o = void 0;
2313
+ function To(e, t, n) {
2314
+ for (var r = jo(e, !0), i = B(e)[t]; r;) {
2315
+ var a = B(r)[n], o = void 0;
2311
2316
  if (o = i >= a, !o) return r;
2312
- if (r === fo()) break;
2313
- r = yo(r, !1);
2317
+ if (r === wo()) break;
2318
+ r = jo(r, !1);
2314
2319
  }
2315
2320
  return !1;
2316
2321
  }
2317
- function mo(e, t, n, r) {
2322
+ function Eo(e, t, n, r) {
2318
2323
  for (var i = 0, a = 0, o = e.children; a < o.length;) {
2319
- if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && so(o[a], n.draggable, e, !1)) {
2324
+ if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && yo(o[a], n.draggable, e, !1)) {
2320
2325
  if (i === t) return o[a];
2321
2326
  i++;
2322
2327
  }
@@ -2324,96 +2329,96 @@ function mo(e, t, n, r) {
2324
2329
  }
2325
2330
  return null;
2326
2331
  }
2327
- function ho(e, t) {
2328
- for (var n = e.lastElementChild; n && (n === Q.ghost || B(n, "display") === "none" || t && !ao(n, t));) n = n.previousElementSibling;
2332
+ function Do(e, t) {
2333
+ for (var n = e.lastElementChild; n && (n === Q.ghost || z(n, "display") === "none" || t && !_o(n, t));) n = n.previousElementSibling;
2329
2334
  return n || null;
2330
2335
  }
2331
- function go(e, t) {
2336
+ function Oo(e, t) {
2332
2337
  var n = 0;
2333
2338
  if (!e || !e.parentNode) return -1;
2334
- for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || ao(e, t)) && n++;
2339
+ for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || _o(e, t)) && n++;
2335
2340
  return n;
2336
2341
  }
2337
- function _o(e) {
2338
- var t = 0, n = 0, r = fo();
2342
+ function ko(e) {
2343
+ var t = 0, n = 0, r = wo();
2339
2344
  if (e) do {
2340
- var i = lo(e), a = i.a, o = i.d;
2345
+ var i = So(e), a = i.a, o = i.d;
2341
2346
  t += e.scrollLeft * a, n += e.scrollTop * o;
2342
2347
  } while (e !== r && (e = e.parentNode));
2343
2348
  return [t, n];
2344
2349
  }
2345
- function vo(e, t) {
2350
+ function Ao(e, t) {
2346
2351
  for (var n in e) if (e.hasOwnProperty(n)) {
2347
2352
  for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
2348
2353
  }
2349
2354
  return -1;
2350
2355
  }
2351
- function yo(e, t) {
2352
- if (!e || !e.getBoundingClientRect) return fo();
2356
+ function jo(e, t) {
2357
+ if (!e || !e.getBoundingClientRect) return wo();
2353
2358
  var n = e, r = !1;
2354
2359
  do
2355
2360
  if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
2356
- var i = B(n);
2361
+ var i = z(n);
2357
2362
  if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
2358
- if (!n.getBoundingClientRect || n === document.body) return fo();
2363
+ if (!n.getBoundingClientRect || n === document.body) return wo();
2359
2364
  if (r || t) return n;
2360
2365
  r = !0;
2361
2366
  }
2362
2367
  }
2363
2368
  while (n = n.parentNode);
2364
- return fo();
2369
+ return wo();
2365
2370
  }
2366
- function bo(e, t) {
2371
+ function Mo(e, t) {
2367
2372
  if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
2368
2373
  return e;
2369
2374
  }
2370
- function xo(e, t) {
2375
+ function No(e, t) {
2371
2376
  return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
2372
2377
  }
2373
- var So;
2374
- function Co(e, t) {
2378
+ var Po;
2379
+ function Fo(e, t) {
2375
2380
  return function() {
2376
- if (!So) {
2381
+ if (!Po) {
2377
2382
  var n = arguments, r = this;
2378
- n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), So = setTimeout(function() {
2379
- So = void 0;
2383
+ n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), Po = setTimeout(function() {
2384
+ Po = void 0;
2380
2385
  }, t);
2381
2386
  }
2382
2387
  };
2383
2388
  }
2384
- function wo() {
2385
- clearTimeout(So), So = void 0;
2389
+ function Io() {
2390
+ clearTimeout(Po), Po = void 0;
2386
2391
  }
2387
- function To(e, t, n) {
2392
+ function Lo(e, t, n) {
2388
2393
  e.scrollLeft += t, e.scrollTop += n;
2389
2394
  }
2390
- function Eo(e) {
2395
+ function Ro(e) {
2391
2396
  var t = window.Polymer, n = window.jQuery || window.Zepto;
2392
2397
  return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
2393
2398
  }
2394
- function Do(e, t, n) {
2399
+ function zo(e, t, n) {
2395
2400
  var r = {};
2396
2401
  return Array.from(e.children).forEach(function(i) {
2397
- if (so(i, t.draggable, e, !1) && !i.animated && i !== n) {
2398
- var a = V(i);
2402
+ if (yo(i, t.draggable, e, !1) && !i.animated && i !== n) {
2403
+ var a = B(i);
2399
2404
  r.left = Math.min(r.left ?? 1 / 0, a.left), r.top = Math.min(r.top ?? 1 / 0, a.top), r.right = Math.max(r.right ?? -1 / 0, a.right), r.bottom = Math.max(r.bottom ?? -1 / 0, a.bottom);
2400
2405
  }
2401
2406
  }), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
2402
2407
  }
2403
- var H = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
2404
- function Oo() {
2408
+ var V = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
2409
+ function Bo() {
2405
2410
  var e = [], t;
2406
2411
  return {
2407
2412
  captureAnimationState: function() {
2408
2413
  e = [], this.options.animation && [].slice.call(this.el.children).forEach(function(t) {
2409
- if (B(t, "display") !== "none" && t !== Q.ghost) {
2414
+ if (z(t, "display") !== "none" && t !== Q.ghost) {
2410
2415
  e.push({
2411
2416
  target: t,
2412
- rect: V(t)
2417
+ rect: B(t)
2413
2418
  });
2414
- var n = Wa({}, e[e.length - 1].rect);
2419
+ var n = to({}, e[e.length - 1].rect);
2415
2420
  if (t.thisAnimationDuration) {
2416
- var r = lo(t, !0);
2421
+ var r = So(t, !0);
2417
2422
  r && (n.top -= r.f, n.left -= r.e);
2418
2423
  }
2419
2424
  t.fromRect = n;
@@ -2424,7 +2429,7 @@ function Oo() {
2424
2429
  e.push(t);
2425
2430
  },
2426
2431
  removeAnimationState: function(t) {
2427
- e.splice(vo(e, { target: t }), 1);
2432
+ e.splice(Ao(e, { target: t }), 1);
2428
2433
  },
2429
2434
  animateAll: function(n) {
2430
2435
  var r = this;
@@ -2432,8 +2437,8 @@ function Oo() {
2432
2437
  else {
2433
2438
  var i = !1, a = 0;
2434
2439
  e.forEach(function(e) {
2435
- var t = 0, n = e.target, o = n.fromRect, s = V(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = lo(n, !0);
2436
- d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && xo(c, s) && !xo(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = Ao(u, c, l, r.options)), xo(s, o) || (n.prevFromRect = o, n.prevToRect = s, t ||= r.options.animation, r.animate(n, u, s, t)), t && (i = !0, a = Math.max(a, t), clearTimeout(n.animationResetTimer), n.animationResetTimer = setTimeout(function() {
2440
+ var t = 0, n = e.target, o = n.fromRect, s = B(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = So(n, !0);
2441
+ d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && No(c, s) && !No(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = Ho(u, c, l, r.options)), No(s, o) || (n.prevFromRect = o, n.prevToRect = s, t ||= r.options.animation, r.animate(n, u, s, t)), t && (i = !0, a = Math.max(a, t), clearTimeout(n.animationResetTimer), n.animationResetTimer = setTimeout(function() {
2437
2442
  n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
2438
2443
  }, t), n.thisAnimationDuration = t);
2439
2444
  }), clearTimeout(t), i ? t = setTimeout(function() {
@@ -2443,27 +2448,27 @@ function Oo() {
2443
2448
  },
2444
2449
  animate: function(e, t, n, r) {
2445
2450
  if (r) {
2446
- B(e, "transition", ""), B(e, "transform", "");
2447
- var i = lo(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
2448
- e.animatingX = !!s, e.animatingY = !!c, B(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = ko(e), B(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), B(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
2449
- B(e, "transition", ""), B(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
2451
+ z(e, "transition", ""), z(e, "transform", "");
2452
+ var i = So(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
2453
+ e.animatingX = !!s, e.animatingY = !!c, z(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = Vo(e), z(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), z(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
2454
+ z(e, "transition", ""), z(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
2450
2455
  }, r);
2451
2456
  }
2452
2457
  }
2453
2458
  };
2454
2459
  }
2455
- function ko(e) {
2460
+ function Vo(e) {
2456
2461
  return e.offsetWidth;
2457
2462
  }
2458
- function Ao(e, t, n, r) {
2463
+ function Ho(e, t, n, r) {
2459
2464
  return Math.sqrt((t.top - e.top) ** 2 + (t.left - e.left) ** 2) / Math.sqrt((t.top - n.top) ** 2 + (t.left - n.left) ** 2) * r.animation;
2460
2465
  }
2461
- var jo = [], Mo = { initializeByDefault: !0 }, No = {
2466
+ var Uo = [], Wo = { initializeByDefault: !0 }, Go = {
2462
2467
  mount: function(e) {
2463
- for (var t in Mo) Mo.hasOwnProperty(t) && !(t in e) && (e[t] = Mo[t]);
2464
- jo.forEach(function(t) {
2468
+ for (var t in Wo) Wo.hasOwnProperty(t) && !(t in e) && (e[t] = Wo[t]);
2469
+ Uo.forEach(function(t) {
2465
2470
  if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
2466
- }), jo.push(e);
2471
+ }), Uo.push(e);
2467
2472
  },
2468
2473
  pluginEvent: function(e, t, n) {
2469
2474
  var r = this;
@@ -2471,16 +2476,16 @@ var jo = [], Mo = { initializeByDefault: !0 }, No = {
2471
2476
  r.eventCanceled = !0;
2472
2477
  };
2473
2478
  var i = e + "Global";
2474
- jo.forEach(function(r) {
2475
- t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](Wa({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](Wa({ sortable: t }, n)));
2479
+ Uo.forEach(function(r) {
2480
+ t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](to({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](to({ sortable: t }, n)));
2476
2481
  });
2477
2482
  },
2478
2483
  initializePlugins: function(e, t, n, r) {
2479
- for (var i in jo.forEach(function(r) {
2484
+ for (var i in Uo.forEach(function(r) {
2480
2485
  var i = r.pluginName;
2481
2486
  if (e.options[i] || r.initializeByDefault) {
2482
2487
  var a = new r(e, t, e.options);
2483
- a.sortable = e, a.options = e.options, e[i] = a, qa(n, a.defaults);
2488
+ a.sortable = e, a.options = e.options, e[i] = a, io(n, a.defaults);
2484
2489
  }
2485
2490
  }), e.options) if (e.options.hasOwnProperty(i)) {
2486
2491
  var a = this.modifyOption(e, i, e.options[i]);
@@ -2489,59 +2494,59 @@ var jo = [], Mo = { initializeByDefault: !0 }, No = {
2489
2494
  },
2490
2495
  getEventProperties: function(e, t) {
2491
2496
  var n = {};
2492
- return jo.forEach(function(r) {
2493
- typeof r.eventProperties == "function" && qa(n, r.eventProperties.call(t[r.pluginName], e));
2497
+ return Uo.forEach(function(r) {
2498
+ typeof r.eventProperties == "function" && io(n, r.eventProperties.call(t[r.pluginName], e));
2494
2499
  }), n;
2495
2500
  },
2496
2501
  modifyOption: function(e, t, n) {
2497
2502
  var r;
2498
- return jo.forEach(function(i) {
2503
+ return Uo.forEach(function(i) {
2499
2504
  e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
2500
2505
  }), r;
2501
2506
  }
2502
2507
  };
2503
- function Po(e) {
2508
+ function Ko(e) {
2504
2509
  var t = e.sortable, n = e.rootEl, r = e.name, i = e.targetEl, a = e.cloneEl, o = e.toEl, s = e.fromEl, c = e.oldIndex, l = e.newIndex, u = e.oldDraggableIndex, d = e.newDraggableIndex, f = e.originalEvent, p = e.putSortable, m = e.extraEventProperties;
2505
- if (t ||= n && n[H], t) {
2510
+ if (t ||= n && n[V], t) {
2506
2511
  var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
2507
- window.CustomEvent && !Qa && !$a ? h = new CustomEvent(r, {
2512
+ window.CustomEvent && !lo && !uo ? h = new CustomEvent(r, {
2508
2513
  bubbles: !0,
2509
2514
  cancelable: !0
2510
2515
  }) : (h = document.createEvent("Event"), h.initEvent(r, !0, !0)), h.to = o || n, h.from = s || n, h.item = i || n, h.clone = a, h.oldIndex = c, h.newIndex = l, h.oldDraggableIndex = u, h.newDraggableIndex = d, h.originalEvent = f, h.pullMode = p ? p.lastPutMode : void 0;
2511
- var v = Wa(Wa({}, m), No.getEventProperties(r, t));
2516
+ var v = to(to({}, m), Go.getEventProperties(r, t));
2512
2517
  for (var y in v) h[y] = v[y];
2513
2518
  n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
2514
2519
  }
2515
2520
  }
2516
- var Fo = ["evt"], U = function(e, t) {
2517
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = Ya(n, Fo);
2518
- No.pluginEvent.bind(Q)(e, t, Wa({
2519
- dragEl: G,
2520
- parentEl: K,
2521
- ghostEl: q,
2522
- rootEl: J,
2523
- nextEl: Io,
2524
- lastDownEl: Lo,
2525
- cloneEl: Y,
2526
- cloneHidden: Ro,
2527
- dragStarted: $o,
2521
+ var qo = ["evt"], H = function(e, t) {
2522
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = oo(n, qo);
2523
+ Go.pluginEvent.bind(Q)(e, t, to({
2524
+ dragEl: W,
2525
+ parentEl: G,
2526
+ ghostEl: K,
2527
+ rootEl: q,
2528
+ nextEl: Jo,
2529
+ lastDownEl: Yo,
2530
+ cloneEl: J,
2531
+ cloneHidden: Xo,
2532
+ dragStarted: us,
2528
2533
  putSortable: X,
2529
2534
  activeSortable: Q.active,
2530
2535
  originalEvent: r,
2531
- oldIndex: zo,
2532
- oldDraggableIndex: Vo,
2533
- newIndex: Bo,
2534
- newDraggableIndex: Ho,
2535
- hideGhostForTarget: _s,
2536
- unhideGhostForTarget: vs,
2536
+ oldIndex: Zo,
2537
+ oldDraggableIndex: Qo,
2538
+ newIndex: Y,
2539
+ newDraggableIndex: $o,
2540
+ hideGhostForTarget: Os,
2541
+ unhideGhostForTarget: ks,
2537
2542
  cloneNowHidden: function() {
2538
- Ro = !0;
2543
+ Xo = !0;
2539
2544
  },
2540
2545
  cloneNowShown: function() {
2541
- Ro = !1;
2546
+ Xo = !1;
2542
2547
  },
2543
2548
  dispatchSortableEvent: function(e) {
2544
- W({
2549
+ U({
2545
2550
  sortable: t,
2546
2551
  name: e,
2547
2552
  originalEvent: r
@@ -2549,46 +2554,46 @@ var Fo = ["evt"], U = function(e, t) {
2549
2554
  }
2550
2555
  }, i));
2551
2556
  };
2552
- function W(e) {
2553
- Po(Wa({
2557
+ function U(e) {
2558
+ Ko(to({
2554
2559
  putSortable: X,
2555
- cloneEl: Y,
2556
- targetEl: G,
2557
- rootEl: J,
2558
- oldIndex: zo,
2559
- oldDraggableIndex: Vo,
2560
- newIndex: Bo,
2561
- newDraggableIndex: Ho
2560
+ cloneEl: J,
2561
+ targetEl: W,
2562
+ rootEl: q,
2563
+ oldIndex: Zo,
2564
+ oldDraggableIndex: Qo,
2565
+ newIndex: Y,
2566
+ newDraggableIndex: $o
2562
2567
  }, e));
2563
2568
  }
2564
- var G, K, q, J, Io, Lo, Y, Ro, zo, Bo, Vo, Ho, Uo, X, Wo = !1, Go = !1, Ko = [], qo, Jo, Yo, Xo, Zo, Qo, $o, es, ts, ns = !1, rs = !1, is, Z, as = [], os = !1, ss = [], cs = typeof document < "u", ls = no, us = $a || Qa ? "cssFloat" : "float", ds = cs && !ro && !no && "draggable" in document.createElement("div"), fs = function() {
2565
- if (cs) {
2566
- if (Qa) return !1;
2569
+ var W, G, K, q, Jo, Yo, J, Xo, Zo, Y, Qo, $o, es, X, ts = !1, ns = !1, rs = [], is, as, os, ss, cs, ls, us, ds, fs, ps = !1, ms = !1, hs, Z, gs = [], _s = !1, vs = [], ys = typeof document < "u", bs = mo, xs = uo || lo ? "cssFloat" : "float", Ss = ys && !ho && !mo && "draggable" in document.createElement("div"), Cs = function() {
2570
+ if (ys) {
2571
+ if (lo) return !1;
2567
2572
  var e = document.createElement("x");
2568
2573
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
2569
2574
  }
2570
- }(), ps = function(e, t) {
2571
- var n = B(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = mo(e, 0, t), a = mo(e, 1, t), o = i && B(i), s = a && B(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + V(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + V(a).width;
2575
+ }(), ws = function(e, t) {
2576
+ var n = z(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = Eo(e, 0, t), a = Eo(e, 1, t), o = i && z(i), s = a && z(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + B(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + B(a).width;
2572
2577
  if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
2573
2578
  if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
2574
2579
  if (i && o.float && o.float !== "none") {
2575
2580
  var u = o.float === "left" ? "left" : "right";
2576
2581
  return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
2577
2582
  }
2578
- return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[us] === "none" || a && n[us] === "none" && c + l > r) ? "vertical" : "horizontal";
2579
- }, ms = function(e, t, n) {
2583
+ return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[xs] === "none" || a && n[xs] === "none" && c + l > r) ? "vertical" : "horizontal";
2584
+ }, Ts = function(e, t, n) {
2580
2585
  var r = n ? e.left : e.top, i = n ? e.right : e.bottom, a = n ? e.width : e.height, o = n ? t.left : t.top, s = n ? t.right : t.bottom, c = n ? t.width : t.height;
2581
2586
  return r === o || i === s || r + a / 2 === o + c / 2;
2582
- }, hs = function(e, t) {
2587
+ }, Es = function(e, t) {
2583
2588
  var n;
2584
- return Ko.some(function(r) {
2585
- var i = r[H].options.emptyInsertThreshold;
2586
- if (i && !ho(r)) {
2587
- var a = V(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
2589
+ return rs.some(function(r) {
2590
+ var i = r[V].options.emptyInsertThreshold;
2591
+ if (i && !Do(r)) {
2592
+ var a = B(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
2588
2593
  if (o && s) return n = r;
2589
2594
  }
2590
2595
  }), n;
2591
- }, gs = function(e) {
2596
+ }, Ds = function(e) {
2592
2597
  function t(e, n) {
2593
2598
  return function(r, i, a, o) {
2594
2599
  var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
@@ -2601,31 +2606,31 @@ var G, K, q, J, Io, Lo, Y, Ro, zo, Bo, Vo, Ho, Uo, X, Wo = !1, Go = !1, Ko = [],
2601
2606
  };
2602
2607
  }
2603
2608
  var n = {}, r = e.group;
2604
- (!r || Ga(r) != "object") && (r = { name: r }), n.name = r.name, n.checkPull = t(r.pull, !0), n.checkPut = t(r.put), n.revertClone = r.revertClone, e.group = n;
2605
- }, _s = function() {
2606
- !fs && q && B(q, "display", "none");
2607
- }, vs = function() {
2608
- !fs && q && B(q, "display", "");
2609
+ (!r || no(r) != "object") && (r = { name: r }), n.name = r.name, n.checkPull = t(r.pull, !0), n.checkPut = t(r.put), n.revertClone = r.revertClone, e.group = n;
2610
+ }, Os = function() {
2611
+ !Cs && K && z(K, "display", "none");
2612
+ }, ks = function() {
2613
+ !Cs && K && z(K, "display", "");
2609
2614
  };
2610
- cs && !ro && document.addEventListener("click", function(e) {
2611
- if (Go) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Go = !1, !1;
2615
+ ys && !ho && document.addEventListener("click", function(e) {
2616
+ if (ns) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), ns = !1, !1;
2612
2617
  }, !0);
2613
- var ys = function(e) {
2614
- if (G) {
2618
+ var As = function(e) {
2619
+ if (W) {
2615
2620
  e = e.touches ? e.touches[0] : e;
2616
- var t = hs(e.clientX, e.clientY);
2621
+ var t = Es(e.clientX, e.clientY);
2617
2622
  if (t) {
2618
2623
  var n = {};
2619
2624
  for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
2620
- n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[H]._onDragOver(n);
2625
+ n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[V]._onDragOver(n);
2621
2626
  }
2622
2627
  }
2623
- }, bs = function(e) {
2624
- G && G.parentNode[H]._isOutsideThisEl(e.target);
2628
+ }, js = function(e) {
2629
+ W && W.parentNode[V]._isOutsideThisEl(e.target);
2625
2630
  };
2626
2631
  function Q(e, t) {
2627
2632
  if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
2628
- this.el = e, this.options = t = qa({}, t), e[H] = this;
2633
+ this.el = e, this.options = t = io({}, t), e[V] = this;
2629
2634
  var n = {
2630
2635
  group: null,
2631
2636
  sort: !0,
@@ -2638,7 +2643,7 @@ function Q(e, t) {
2638
2643
  invertedSwapThreshold: null,
2639
2644
  removeCloneOnHide: !0,
2640
2645
  direction: function() {
2641
- return ps(e, this.options);
2646
+ return ws(e, this.options);
2642
2647
  },
2643
2648
  ghostClass: "sortable-ghost",
2644
2649
  chosenClass: "sortable-chosen",
@@ -2665,71 +2670,71 @@ function Q(e, t) {
2665
2670
  x: 0,
2666
2671
  y: 0
2667
2672
  },
2668
- supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !to,
2673
+ supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !po,
2669
2674
  emptyInsertThreshold: 5
2670
2675
  };
2671
- for (var r in No.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
2672
- for (var i in gs(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
2673
- this.nativeDraggable = !t.forceFallback && ds, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? L(e, "pointerdown", this._onTapStart) : (L(e, "mousedown", this._onTapStart), L(e, "touchstart", this._onTapStart)), this.nativeDraggable && (L(e, "dragover", this), L(e, "dragenter", this)), Ko.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), qa(this, Oo());
2676
+ for (var r in Go.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
2677
+ for (var i in Ds(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
2678
+ this.nativeDraggable = !t.forceFallback && Ss, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? L(e, "pointerdown", this._onTapStart) : (L(e, "mousedown", this._onTapStart), L(e, "touchstart", this._onTapStart)), this.nativeDraggable && (L(e, "dragover", this), L(e, "dragenter", this)), rs.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), io(this, Bo());
2674
2679
  }
2675
2680
  Q.prototype = {
2676
2681
  constructor: Q,
2677
2682
  _isOutsideThisEl: function(e) {
2678
- !this.el.contains(e) && e !== this.el && (es = null);
2683
+ !this.el.contains(e) && e !== this.el && (ds = null);
2679
2684
  },
2680
2685
  _getDirection: function(e, t) {
2681
- return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, G) : this.options.direction;
2686
+ return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, W) : this.options.direction;
2682
2687
  },
2683
2688
  _onTapStart: function(e) {
2684
2689
  if (e.cancelable) {
2685
2690
  var t = this, n = this.el, r = this.options, i = r.preventOnFilter, a = e.type, o = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (o || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, l = r.filter;
2686
- if (As(n), !G && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && to && s && s.tagName.toUpperCase() === "SELECT") && (s = so(s, r.draggable, n, !1), !(s && s.animated) && Lo !== s)) {
2687
- if (zo = go(s), Vo = go(s, r.draggable), typeof l == "function") {
2691
+ if (Vs(n), !W && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && po && s && s.tagName.toUpperCase() === "SELECT") && (s = yo(s, r.draggable, n, !1), !(s && s.animated) && Yo !== s)) {
2692
+ if (Zo = Oo(s), Qo = Oo(s, r.draggable), typeof l == "function") {
2688
2693
  if (l.call(this, e, s, this)) {
2689
- W({
2694
+ U({
2690
2695
  sortable: t,
2691
2696
  rootEl: c,
2692
2697
  name: "filter",
2693
2698
  targetEl: s,
2694
2699
  toEl: n,
2695
2700
  fromEl: n
2696
- }), U("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
2701
+ }), H("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
2697
2702
  return;
2698
2703
  }
2699
2704
  } else if (l && (l = l.split(",").some(function(r) {
2700
- if (r = so(c, r.trim(), n, !1), r) return W({
2705
+ if (r = yo(c, r.trim(), n, !1), r) return U({
2701
2706
  sortable: t,
2702
2707
  rootEl: r,
2703
2708
  name: "filter",
2704
2709
  targetEl: s,
2705
2710
  fromEl: n,
2706
2711
  toEl: n
2707
- }), U("filter", t, { evt: e }), !0;
2712
+ }), H("filter", t, { evt: e }), !0;
2708
2713
  }), l)) {
2709
2714
  i && e.cancelable && e.preventDefault();
2710
2715
  return;
2711
2716
  }
2712
- r.handle && !so(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
2717
+ r.handle && !yo(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
2713
2718
  }
2714
2719
  }
2715
2720
  },
2716
2721
  _prepareDragStart: function(e, t, n) {
2717
2722
  var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
2718
- if (n && !G && n.parentNode === i) {
2719
- var c = V(n);
2720
- if (J = i, G = n, K = G.parentNode, Io = G.nextSibling, Lo = n, Uo = a.group, Q.dragged = G, qo = {
2721
- target: G,
2723
+ if (n && !W && n.parentNode === i) {
2724
+ var c = B(n);
2725
+ if (q = i, W = n, G = W.parentNode, Jo = W.nextSibling, Yo = n, es = a.group, Q.dragged = W, is = {
2726
+ target: W,
2722
2727
  clientX: (t || e).clientX,
2723
2728
  clientY: (t || e).clientY
2724
- }, Zo = qo.clientX - c.left, Qo = qo.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, G.style["will-change"] = "all", s = function() {
2725
- U("delayEnded", r, { evt: e }), Q.eventCanceled ? r._onDrop() : (r._disableDelayedDragEvents(), !eo && r.nativeDraggable && (G.draggable = !0), r._triggerDragStart(e, t), W({
2729
+ }, cs = is.clientX - c.left, ls = is.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, W.style["will-change"] = "all", s = function() {
2730
+ H("delayEnded", r, { evt: e }), Q.eventCanceled ? r._onDrop() : (r._disableDelayedDragEvents(), !fo && r.nativeDraggable && (W.draggable = !0), r._triggerDragStart(e, t), U({
2726
2731
  sortable: r,
2727
2732
  name: "choose",
2728
2733
  originalEvent: e
2729
- }), z(G, a.chosenClass, !0));
2734
+ }), xo(W, a.chosenClass, !0));
2730
2735
  }, a.ignore.split(",").forEach(function(e) {
2731
- uo(G, e.trim(), Cs);
2732
- }), L(o, "dragover", ys), L(o, "mousemove", ys), L(o, "touchmove", ys), L(o, "mouseup", r._onDrop), L(o, "touchend", r._onDrop), L(o, "touchcancel", r._onDrop), eo && this.nativeDraggable && (this.options.touchStartThreshold = 4, G.draggable = !0), U("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !($a || Qa))) {
2736
+ Co(W, e.trim(), Ps);
2737
+ }), L(o, "dragover", As), L(o, "mousemove", As), L(o, "touchmove", As), L(o, "mouseup", r._onDrop), L(o, "touchend", r._onDrop), L(o, "touchcancel", r._onDrop), fo && this.nativeDraggable && (this.options.touchStartThreshold = 4, W.draggable = !0), H("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(uo || lo))) {
2733
2738
  if (Q.eventCanceled) {
2734
2739
  this._onDrop();
2735
2740
  return;
@@ -2743,25 +2748,25 @@ Q.prototype = {
2743
2748
  Math.max(Math.abs(t.clientX - this._lastX), Math.abs(t.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
2744
2749
  },
2745
2750
  _disableDelayedDrag: function() {
2746
- G && Cs(G), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2751
+ W && Ps(W), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2747
2752
  },
2748
2753
  _disableDelayedDragEvents: function() {
2749
2754
  var e = this.el.ownerDocument;
2750
2755
  R(e, "mouseup", this._disableDelayedDrag), R(e, "touchend", this._disableDelayedDrag), R(e, "touchcancel", this._disableDelayedDrag), R(e, "mousemove", this._delayedDragTouchMoveHandler), R(e, "touchmove", this._delayedDragTouchMoveHandler), R(e, "pointermove", this._delayedDragTouchMoveHandler);
2751
2756
  },
2752
2757
  _triggerDragStart: function(e, t) {
2753
- t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? L(document, "pointermove", this._onTouchMove) : t ? L(document, "touchmove", this._onTouchMove) : L(document, "mousemove", this._onTouchMove) : (L(G, "dragend", this), L(J, "dragstart", this._onDragStart));
2758
+ t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? L(document, "pointermove", this._onTouchMove) : t ? L(document, "touchmove", this._onTouchMove) : L(document, "mousemove", this._onTouchMove) : (L(W, "dragend", this), L(q, "dragstart", this._onDragStart));
2754
2759
  try {
2755
- document.selection ? js(function() {
2760
+ document.selection ? Hs(function() {
2756
2761
  document.selection.empty();
2757
2762
  }) : window.getSelection().removeAllRanges();
2758
2763
  } catch {}
2759
2764
  },
2760
2765
  _dragStarted: function(e, t) {
2761
- if (Wo = !1, J && G) {
2762
- U("dragStarted", this, { evt: t }), this.nativeDraggable && L(document, "dragover", bs);
2766
+ if (ts = !1, q && W) {
2767
+ H("dragStarted", this, { evt: t }), this.nativeDraggable && L(document, "dragover", js);
2763
2768
  var n = this.options;
2764
- !e && z(G, n.dragClass, !1), z(G, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), W({
2769
+ !e && xo(W, n.dragClass, !1), xo(W, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), U({
2765
2770
  sortable: this,
2766
2771
  name: "start",
2767
2772
  originalEvent: t
@@ -2769,33 +2774,33 @@ Q.prototype = {
2769
2774
  } else this._nulling();
2770
2775
  },
2771
2776
  _emulateDragOver: function() {
2772
- if (Jo) {
2773
- this._lastX = Jo.clientX, this._lastY = Jo.clientY, _s();
2774
- for (var e = document.elementFromPoint(Jo.clientX, Jo.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Jo.clientX, Jo.clientY), e !== t);) t = e;
2775
- if (G.parentNode[H]._isOutsideThisEl(e), t) do {
2776
- if (t[H]) {
2777
+ if (as) {
2778
+ this._lastX = as.clientX, this._lastY = as.clientY, Os();
2779
+ for (var e = document.elementFromPoint(as.clientX, as.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(as.clientX, as.clientY), e !== t);) t = e;
2780
+ if (W.parentNode[V]._isOutsideThisEl(e), t) do {
2781
+ if (t[V]) {
2777
2782
  var n = void 0;
2778
- if (n = t[H]._onDragOver({
2779
- clientX: Jo.clientX,
2780
- clientY: Jo.clientY,
2783
+ if (n = t[V]._onDragOver({
2784
+ clientX: as.clientX,
2785
+ clientY: as.clientY,
2781
2786
  target: e,
2782
2787
  rootEl: t
2783
2788
  }), n && !this.options.dragoverBubble) break;
2784
2789
  }
2785
2790
  e = t;
2786
2791
  } while (t = t.parentNode);
2787
- vs();
2792
+ ks();
2788
2793
  }
2789
2794
  },
2790
2795
  _onTouchMove: function(e) {
2791
- if (qo) {
2792
- var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q && lo(q, !0), o = q && a && a.a, s = q && a && a.d, c = ls && Z && _o(Z), l = (i.clientX - qo.clientX + r.x) / (o || 1) + (c ? c[0] - as[0] : 0) / (o || 1), u = (i.clientY - qo.clientY + r.y) / (s || 1) + (c ? c[1] - as[1] : 0) / (s || 1);
2793
- if (!Q.active && !Wo) {
2796
+ if (is) {
2797
+ var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = K && So(K, !0), o = K && a && a.a, s = K && a && a.d, c = bs && Z && ko(Z), l = (i.clientX - is.clientX + r.x) / (o || 1) + (c ? c[0] - gs[0] : 0) / (o || 1), u = (i.clientY - is.clientY + r.y) / (s || 1) + (c ? c[1] - gs[1] : 0) / (s || 1);
2798
+ if (!Q.active && !ts) {
2794
2799
  if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
2795
2800
  this._onDragStart(e, !0);
2796
2801
  }
2797
- if (q) {
2798
- a ? (a.e += l - (Yo || 0), a.f += u - (Xo || 0)) : a = {
2802
+ if (K) {
2803
+ a ? (a.e += l - (os || 0), a.f += u - (ss || 0)) : a = {
2799
2804
  a: 1,
2800
2805
  b: 0,
2801
2806
  c: 0,
@@ -2804,35 +2809,35 @@ Q.prototype = {
2804
2809
  f: u
2805
2810
  };
2806
2811
  var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
2807
- B(q, "webkitTransform", d), B(q, "mozTransform", d), B(q, "msTransform", d), B(q, "transform", d), Yo = l, Xo = u, Jo = i;
2812
+ z(K, "webkitTransform", d), z(K, "mozTransform", d), z(K, "msTransform", d), z(K, "transform", d), os = l, ss = u, as = i;
2808
2813
  }
2809
2814
  e.cancelable && e.preventDefault();
2810
2815
  }
2811
2816
  },
2812
2817
  _appendGhost: function() {
2813
- if (!q) {
2814
- var e = this.options.fallbackOnBody ? document.body : J, t = V(G, !0, ls, !0, e), n = this.options;
2815
- if (ls) {
2816
- for (Z = e; B(Z, "position") === "static" && B(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
2817
- Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = fo()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = fo(), as = _o(Z);
2818
+ if (!K) {
2819
+ var e = this.options.fallbackOnBody ? document.body : q, t = B(W, !0, bs, !0, e), n = this.options;
2820
+ if (bs) {
2821
+ for (Z = e; z(Z, "position") === "static" && z(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
2822
+ Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = wo()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = wo(), gs = ko(Z);
2818
2823
  }
2819
- q = G.cloneNode(!0), z(q, n.ghostClass, !1), z(q, n.fallbackClass, !0), z(q, n.dragClass, !0), B(q, "transition", ""), B(q, "transform", ""), B(q, "box-sizing", "border-box"), B(q, "margin", 0), B(q, "top", t.top), B(q, "left", t.left), B(q, "width", t.width), B(q, "height", t.height), B(q, "opacity", "0.8"), B(q, "position", ls ? "absolute" : "fixed"), B(q, "zIndex", "100000"), B(q, "pointerEvents", "none"), Q.ghost = q, e.appendChild(q), B(q, "transform-origin", Zo / parseInt(q.style.width) * 100 + "% " + Qo / parseInt(q.style.height) * 100 + "%");
2824
+ K = W.cloneNode(!0), xo(K, n.ghostClass, !1), xo(K, n.fallbackClass, !0), xo(K, n.dragClass, !0), z(K, "transition", ""), z(K, "transform", ""), z(K, "box-sizing", "border-box"), z(K, "margin", 0), z(K, "top", t.top), z(K, "left", t.left), z(K, "width", t.width), z(K, "height", t.height), z(K, "opacity", "0.8"), z(K, "position", bs ? "absolute" : "fixed"), z(K, "zIndex", "100000"), z(K, "pointerEvents", "none"), Q.ghost = K, e.appendChild(K), z(K, "transform-origin", cs / parseInt(K.style.width) * 100 + "% " + ls / parseInt(K.style.height) * 100 + "%");
2820
2825
  }
2821
2826
  },
2822
2827
  _onDragStart: function(e, t) {
2823
2828
  var n = this, r = e.dataTransfer, i = n.options;
2824
- U("dragStart", this, { evt: e }), Q.eventCanceled ? this._onDrop() : (U("setupClone", this), Q.eventCanceled || (Y = Eo(G), Y.removeAttribute("id"), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), z(Y, this.options.chosenClass, !1), Q.clone = Y), n.cloneId = js(function() {
2825
- U("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || J.insertBefore(Y, G), n._hideClone(), W({
2829
+ H("dragStart", this, { evt: e }), Q.eventCanceled ? this._onDrop() : (H("setupClone", this), Q.eventCanceled || (J = Ro(W), J.removeAttribute("id"), J.draggable = !1, J.style["will-change"] = "", this._hideClone(), xo(J, this.options.chosenClass, !1), Q.clone = J), n.cloneId = Hs(function() {
2830
+ H("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || q.insertBefore(J, W), n._hideClone(), U({
2826
2831
  sortable: n,
2827
2832
  name: "clone"
2828
2833
  }));
2829
- }), !t && z(G, i.dragClass, !0), t ? (Go = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (R(document, "mouseup", n._onDrop), R(document, "touchend", n._onDrop), R(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, G)), L(document, "drop", n), B(G, "transform", "translateZ(0)")), Wo = !0, n._dragStartId = js(n._dragStarted.bind(n, t, e)), L(document, "selectstart", n), $o = !0, to && B(document.body, "user-select", "none"));
2834
+ }), !t && xo(W, i.dragClass, !0), t ? (ns = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (R(document, "mouseup", n._onDrop), R(document, "touchend", n._onDrop), R(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, W)), L(document, "drop", n), z(W, "transform", "translateZ(0)")), ts = !0, n._dragStartId = Hs(n._dragStarted.bind(n, t, e)), L(document, "selectstart", n), us = !0, po && z(document.body, "user-select", "none"));
2830
2835
  },
2831
2836
  _onDragOver: function(e) {
2832
- var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = Uo === s, u = o.sort, d = X || c, f, p = this, m = !1;
2833
- if (os) return;
2837
+ var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = es === s, u = o.sort, d = X || c, f, p = this, m = !1;
2838
+ if (_s) return;
2834
2839
  function h(o, s) {
2835
- U(o, p, Wa({
2840
+ H(o, p, to({
2836
2841
  evt: e,
2837
2842
  isOwner: l,
2838
2843
  axis: f ? "vertical" : "horizontal",
@@ -2844,7 +2849,7 @@ Q.prototype = {
2844
2849
  target: n,
2845
2850
  completed: _,
2846
2851
  onMove: function(n, i) {
2847
- return Ss(J, t, G, r, n, V(n), e, i);
2852
+ return Ns(q, t, W, r, n, B(n), e, i);
2848
2853
  },
2849
2854
  changed: v
2850
2855
  }, s));
@@ -2853,58 +2858,58 @@ Q.prototype = {
2853
2858
  h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
2854
2859
  }
2855
2860
  function _(r) {
2856
- return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (z(G, X ? X.options.ghostClass : c.options.ghostClass, !1), z(G, o.ghostClass, !0)), X !== p && p !== Q.active ? X = p : p === Q.active && X && (X = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
2861
+ return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (xo(W, X ? X.options.ghostClass : c.options.ghostClass, !1), xo(W, o.ghostClass, !0)), X !== p && p !== Q.active ? X = p : p === Q.active && X && (X = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
2857
2862
  h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
2858
- }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (es = null), !o.dragoverBubble && !e.rootEl && n !== document && (G.parentNode[H]._isOutsideThisEl(e.target), !r && ys(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
2863
+ }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === W && !W.animated || n === t && !n.animated) && (ds = null), !o.dragoverBubble && !e.rootEl && n !== document && (W.parentNode[V]._isOutsideThisEl(e.target), !r && As(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
2859
2864
  }
2860
2865
  function v() {
2861
- Bo = go(G), Ho = go(G, o.draggable), W({
2866
+ Y = Oo(W), $o = Oo(W, o.draggable), U({
2862
2867
  sortable: p,
2863
2868
  name: "change",
2864
2869
  toEl: t,
2865
- newIndex: Bo,
2866
- newDraggableIndex: Ho,
2870
+ newIndex: Y,
2871
+ newDraggableIndex: $o,
2867
2872
  originalEvent: e
2868
2873
  });
2869
2874
  }
2870
- if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = so(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
2871
- if (G.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
2872
- if (Go = !1, c && !o.disabled && (l ? u || (a = K !== J) : X === this || (this.lastPutMode = Uo.checkPull(this, c, G, e)) && s.checkPut(this, c, G, e))) {
2873
- if (f = this._getDirection(e, n) === "vertical", r = V(G), h("dragOverValid"), Q.eventCanceled) return m;
2874
- if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (Io ? J.insertBefore(G, Io) : J.appendChild(G)), _(!0);
2875
- var y = ho(t, o.draggable);
2876
- if (!y || Es(e, f, this) && !y.animated) {
2877
- if (y === G) return _(!1);
2878
- if (y && t === e.target && (n = y), n && (i = V(n)), Ss(J, t, G, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(G, y.nextSibling) : t.appendChild(G), K = t, v(), _(!0);
2879
- } else if (y && Ts(e, f, this)) {
2880
- var b = mo(t, 0, o, !0);
2881
- if (b === G) return _(!1);
2882
- if (n = b, i = V(n), Ss(J, t, G, r, n, i, e, !1) !== !1) return g(), t.insertBefore(G, b), K = t, v(), _(!0);
2875
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = yo(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
2876
+ if (W.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
2877
+ if (ns = !1, c && !o.disabled && (l ? u || (a = G !== q) : X === this || (this.lastPutMode = es.checkPull(this, c, W, e)) && s.checkPut(this, c, W, e))) {
2878
+ if (f = this._getDirection(e, n) === "vertical", r = B(W), h("dragOverValid"), Q.eventCanceled) return m;
2879
+ if (a) return G = q, g(), this._hideClone(), h("revert"), Q.eventCanceled || (Jo ? q.insertBefore(W, Jo) : q.appendChild(W)), _(!0);
2880
+ var y = Do(t, o.draggable);
2881
+ if (!y || Ls(e, f, this) && !y.animated) {
2882
+ if (y === W) return _(!1);
2883
+ if (y && t === e.target && (n = y), n && (i = B(n)), Ns(q, t, W, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(W, y.nextSibling) : t.appendChild(W), G = t, v(), _(!0);
2884
+ } else if (y && Is(e, f, this)) {
2885
+ var b = Eo(t, 0, o, !0);
2886
+ if (b === W) return _(!1);
2887
+ if (n = b, i = B(n), Ns(q, t, W, r, n, i, e, !1) !== !1) return g(), t.insertBefore(W, b), G = t, v(), _(!0);
2883
2888
  } else if (n.parentNode === t) {
2884
- i = V(n);
2885
- var x = 0, S, C = G.parentNode !== t, w = !ms(G.animated && G.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = po(n, "top", "top") || po(G, "top", "top"), D = E ? E.scrollTop : void 0;
2886
- es !== n && (S = i[T], ns = !1, rs = !w && o.invertSwap || C), x = Ds(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, rs, es === n);
2889
+ i = B(n);
2890
+ var x = 0, S, C = W.parentNode !== t, w = !Ts(W.animated && W.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = To(n, "top", "top") || To(W, "top", "top"), D = E ? E.scrollTop : void 0;
2891
+ ds !== n && (S = i[T], ps = !1, ms = !w && o.invertSwap || C), x = Rs(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, ms, ds === n);
2887
2892
  var O;
2888
2893
  if (x !== 0) {
2889
- var k = go(G);
2894
+ var k = Oo(W);
2890
2895
  do
2891
- k -= x, O = K.children[k];
2892
- while (O && (B(O, "display") === "none" || O === q));
2896
+ k -= x, O = G.children[k];
2897
+ while (O && (z(O, "display") === "none" || O === K));
2893
2898
  }
2894
2899
  if (x === 0 || O === n) return _(!1);
2895
- es = n, ts = x;
2900
+ ds = n, fs = x;
2896
2901
  var A = n.nextElementSibling, j = !1;
2897
2902
  j = x === 1;
2898
- var M = Ss(J, t, G, r, n, i, e, j);
2899
- if (M !== !1) return (M === 1 || M === -1) && (j = M === 1), os = !0, setTimeout(ws, 30), g(), j && !A ? t.appendChild(G) : n.parentNode.insertBefore(G, j ? A : n), E && To(E, 0, D - E.scrollTop), K = G.parentNode, S !== void 0 && !rs && (is = Math.abs(S - V(n)[T])), v(), _(!0);
2903
+ var M = Ns(q, t, W, r, n, i, e, j);
2904
+ if (M !== !1) return (M === 1 || M === -1) && (j = M === 1), _s = !0, setTimeout(Fs, 30), g(), j && !A ? t.appendChild(W) : n.parentNode.insertBefore(W, j ? A : n), E && Lo(E, 0, D - E.scrollTop), G = W.parentNode, S !== void 0 && !ms && (hs = Math.abs(S - B(n)[T])), v(), _(!0);
2900
2905
  }
2901
- if (t.contains(G)) return _(!1);
2906
+ if (t.contains(W)) return _(!1);
2902
2907
  }
2903
2908
  return !1;
2904
2909
  },
2905
2910
  _ignoreWhileAnimating: null,
2906
2911
  _offMoveEvents: function() {
2907
- R(document, "mousemove", this._onTouchMove), R(document, "touchmove", this._onTouchMove), R(document, "pointermove", this._onTouchMove), R(document, "dragover", ys), R(document, "mousemove", ys), R(document, "touchmove", ys);
2912
+ R(document, "mousemove", this._onTouchMove), R(document, "touchmove", this._onTouchMove), R(document, "pointermove", this._onTouchMove), R(document, "dragover", As), R(document, "mousemove", As), R(document, "touchmove", As);
2908
2913
  },
2909
2914
  _offUpEvents: function() {
2910
2915
  var e = this.el.ownerDocument;
@@ -2912,56 +2917,56 @@ Q.prototype = {
2912
2917
  },
2913
2918
  _onDrop: function(e) {
2914
2919
  var t = this.el, n = this.options;
2915
- Bo = go(G), Ho = go(G, n.draggable), U("drop", this, { evt: e }), K = G && G.parentNode, Bo = go(G), Ho = go(G, n.draggable), Q.eventCanceled || (Wo = !1, rs = !1, ns = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Ms(this.cloneId), Ms(this._dragStartId), this.nativeDraggable && (R(document, "drop", this), R(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), to && B(document.body, "user-select", ""), B(G, "transform", ""), e && ($o && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), q && q.parentNode && q.parentNode.removeChild(q), (J === K || X && X.lastPutMode !== "clone") && Y && Y.parentNode && Y.parentNode.removeChild(Y), G && (this.nativeDraggable && R(G, "dragend", this), Cs(G), G.style["will-change"] = "", $o && !Wo && z(G, X ? X.options.ghostClass : this.options.ghostClass, !1), z(G, this.options.chosenClass, !1), W({
2920
+ Y = Oo(W), $o = Oo(W, n.draggable), H("drop", this, { evt: e }), G = W && W.parentNode, Y = Oo(W), $o = Oo(W, n.draggable), Q.eventCanceled || (ts = !1, ms = !1, ps = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Us(this.cloneId), Us(this._dragStartId), this.nativeDraggable && (R(document, "drop", this), R(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), po && z(document.body, "user-select", ""), z(W, "transform", ""), e && (us && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), K && K.parentNode && K.parentNode.removeChild(K), (q === G || X && X.lastPutMode !== "clone") && J && J.parentNode && J.parentNode.removeChild(J), W && (this.nativeDraggable && R(W, "dragend", this), Ps(W), W.style["will-change"] = "", us && !ts && xo(W, X ? X.options.ghostClass : this.options.ghostClass, !1), xo(W, this.options.chosenClass, !1), U({
2916
2921
  sortable: this,
2917
2922
  name: "unchoose",
2918
- toEl: K,
2923
+ toEl: G,
2919
2924
  newIndex: null,
2920
2925
  newDraggableIndex: null,
2921
2926
  originalEvent: e
2922
- }), J === K ? Bo !== zo && Bo >= 0 && (W({
2927
+ }), q === G ? Y !== Zo && Y >= 0 && (U({
2923
2928
  sortable: this,
2924
2929
  name: "update",
2925
- toEl: K,
2930
+ toEl: G,
2926
2931
  originalEvent: e
2927
- }), W({
2932
+ }), U({
2928
2933
  sortable: this,
2929
2934
  name: "sort",
2930
- toEl: K,
2935
+ toEl: G,
2931
2936
  originalEvent: e
2932
- })) : (Bo >= 0 && (W({
2933
- rootEl: K,
2937
+ })) : (Y >= 0 && (U({
2938
+ rootEl: G,
2934
2939
  name: "add",
2935
- toEl: K,
2936
- fromEl: J,
2940
+ toEl: G,
2941
+ fromEl: q,
2937
2942
  originalEvent: e
2938
- }), W({
2943
+ }), U({
2939
2944
  sortable: this,
2940
2945
  name: "remove",
2941
- toEl: K,
2946
+ toEl: G,
2942
2947
  originalEvent: e
2943
- }), W({
2944
- rootEl: K,
2948
+ }), U({
2949
+ rootEl: G,
2945
2950
  name: "sort",
2946
- toEl: K,
2947
- fromEl: J,
2951
+ toEl: G,
2952
+ fromEl: q,
2948
2953
  originalEvent: e
2949
- }), W({
2954
+ }), U({
2950
2955
  sortable: this,
2951
2956
  name: "sort",
2952
- toEl: K,
2957
+ toEl: G,
2953
2958
  originalEvent: e
2954
- })), X && X.save()), Q.active && ((Bo == null || Bo === -1) && (Bo = zo, Ho = Vo), W({
2959
+ })), X && X.save()), Q.active && ((Y == null || Y === -1) && (Y = Zo, $o = Qo), U({
2955
2960
  sortable: this,
2956
2961
  name: "end",
2957
- toEl: K,
2962
+ toEl: G,
2958
2963
  originalEvent: e
2959
2964
  }), this.save())))), this._nulling();
2960
2965
  },
2961
2966
  _nulling: function() {
2962
- U("nulling", this), J = G = K = q = Io = Y = Lo = Ro = qo = Jo = $o = Bo = Ho = zo = Vo = es = ts = X = Uo = Q.dragged = Q.ghost = Q.clone = Q.active = null, ss.forEach(function(e) {
2967
+ H("nulling", this), q = W = G = K = Jo = J = Yo = Xo = is = as = us = Y = $o = Zo = Qo = ds = fs = X = es = Q.dragged = Q.ghost = Q.clone = Q.active = null, vs.forEach(function(e) {
2963
2968
  e.checked = !0;
2964
- }), ss.length = Yo = Xo = 0;
2969
+ }), vs.length = os = ss = 0;
2965
2970
  },
2966
2971
  handleEvent: function(e) {
2967
2972
  switch (e.type) {
@@ -2971,20 +2976,20 @@ Q.prototype = {
2971
2976
  break;
2972
2977
  case "dragenter":
2973
2978
  case "dragover":
2974
- G && (this._onDragOver(e), xs(e));
2979
+ W && (this._onDragOver(e), Ms(e));
2975
2980
  break;
2976
2981
  case "selectstart": e.preventDefault();
2977
2982
  }
2978
2983
  },
2979
2984
  toArray: function() {
2980
- for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], so(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || ks(t));
2985
+ for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], yo(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || Bs(t));
2981
2986
  return e;
2982
2987
  },
2983
2988
  sort: function(e, t) {
2984
2989
  var n = {}, r = this.el;
2985
2990
  this.toArray().forEach(function(e, t) {
2986
2991
  var i = r.children[t];
2987
- so(i, this.options.draggable, r, !1) && (n[e] = i);
2992
+ yo(i, this.options.draggable, r, !1) && (n[e] = i);
2988
2993
  }, this), t && this.captureAnimationState(), e.forEach(function(e) {
2989
2994
  n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
2990
2995
  }), t && this.animateAll();
@@ -2994,122 +2999,122 @@ Q.prototype = {
2994
2999
  e && e.set && e.set(this);
2995
3000
  },
2996
3001
  closest: function(e, t) {
2997
- return so(e, t || this.options.draggable, this.el, !1);
3002
+ return yo(e, t || this.options.draggable, this.el, !1);
2998
3003
  },
2999
3004
  option: function(e, t) {
3000
3005
  var n = this.options;
3001
3006
  if (t === void 0) return n[e];
3002
- var r = No.modifyOption(this, e, t);
3003
- n[e] = r === void 0 ? t : r, e === "group" && gs(n);
3007
+ var r = Go.modifyOption(this, e, t);
3008
+ n[e] = r === void 0 ? t : r, e === "group" && Ds(n);
3004
3009
  },
3005
3010
  destroy: function() {
3006
- U("destroy", this);
3011
+ H("destroy", this);
3007
3012
  var e = this.el;
3008
- e[H] = null, R(e, "mousedown", this._onTapStart), R(e, "touchstart", this._onTapStart), R(e, "pointerdown", this._onTapStart), this.nativeDraggable && (R(e, "dragover", this), R(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
3013
+ e[V] = null, R(e, "mousedown", this._onTapStart), R(e, "touchstart", this._onTapStart), R(e, "pointerdown", this._onTapStart), this.nativeDraggable && (R(e, "dragover", this), R(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
3009
3014
  e.removeAttribute("draggable");
3010
- }), this._onDrop(), this._disableDelayedDragEvents(), Ko.splice(Ko.indexOf(this.el), 1), this.el = e = null;
3015
+ }), this._onDrop(), this._disableDelayedDragEvents(), rs.splice(rs.indexOf(this.el), 1), this.el = e = null;
3011
3016
  },
3012
3017
  _hideClone: function() {
3013
- if (!Ro) {
3014
- if (U("hideClone", this), Q.eventCanceled) return;
3015
- B(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), Ro = !0;
3018
+ if (!Xo) {
3019
+ if (H("hideClone", this), Q.eventCanceled) return;
3020
+ z(J, "display", "none"), this.options.removeCloneOnHide && J.parentNode && J.parentNode.removeChild(J), Xo = !0;
3016
3021
  }
3017
3022
  },
3018
3023
  _showClone: function(e) {
3019
3024
  if (e.lastPutMode !== "clone") this._hideClone();
3020
- else if (Ro) {
3021
- if (U("showClone", this), Q.eventCanceled) return;
3022
- G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) : Io ? J.insertBefore(Y, Io) : J.appendChild(Y), this.options.group.revertClone && this.animate(G, Y), B(Y, "display", ""), Ro = !1;
3025
+ else if (Xo) {
3026
+ if (H("showClone", this), Q.eventCanceled) return;
3027
+ W.parentNode == q && !this.options.group.revertClone ? q.insertBefore(J, W) : Jo ? q.insertBefore(J, Jo) : q.appendChild(J), this.options.group.revertClone && this.animate(W, J), z(J, "display", ""), Xo = !1;
3023
3028
  }
3024
3029
  }
3025
3030
  };
3026
- function xs(e) {
3031
+ function Ms(e) {
3027
3032
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
3028
3033
  }
3029
- function Ss(e, t, n, r, i, a, o, s) {
3030
- var c, l = e[H], u = l.options.onMove, d;
3031
- return window.CustomEvent && !Qa && !$a ? c = new CustomEvent("move", {
3034
+ function Ns(e, t, n, r, i, a, o, s) {
3035
+ var c, l = e[V], u = l.options.onMove, d;
3036
+ return window.CustomEvent && !lo && !uo ? c = new CustomEvent("move", {
3032
3037
  bubbles: !0,
3033
3038
  cancelable: !0
3034
- }) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || V(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
3039
+ }) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || B(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
3035
3040
  }
3036
- function Cs(e) {
3041
+ function Ps(e) {
3037
3042
  e.draggable = !1;
3038
3043
  }
3039
- function ws() {
3040
- os = !1;
3044
+ function Fs() {
3045
+ _s = !1;
3041
3046
  }
3042
- function Ts(e, t, n) {
3043
- var r = V(mo(n.el, 0, n.options, !0)), i = Do(n.el, n.options, q), a = 10;
3047
+ function Is(e, t, n) {
3048
+ var r = B(Eo(n.el, 0, n.options, !0)), i = zo(n.el, n.options, K), a = 10;
3044
3049
  return t ? e.clientX < i.left - a || e.clientY < r.top && e.clientX < r.right : e.clientY < i.top - a || e.clientY < r.bottom && e.clientX < r.left;
3045
3050
  }
3046
- function Es(e, t, n) {
3047
- var r = V(ho(n.el, n.options.draggable)), i = Do(n.el, n.options, q), a = 10;
3051
+ function Ls(e, t, n) {
3052
+ var r = B(Do(n.el, n.options.draggable)), i = zo(n.el, n.options, K), a = 10;
3048
3053
  return t ? e.clientX > i.right + a || e.clientY > r.bottom && e.clientX > r.left : e.clientY > i.bottom + a || e.clientX > r.right && e.clientY > r.top;
3049
3054
  }
3050
- function Ds(e, t, n, r, i, a, o, s) {
3055
+ function Rs(e, t, n, r, i, a, o, s) {
3051
3056
  var c = r ? e.clientY : e.clientX, l = r ? n.height : n.width, u = r ? n.top : n.left, d = r ? n.bottom : n.right, f = !1;
3052
3057
  if (!o) {
3053
- if (s && is < l * i) {
3054
- if (!ns && (ts === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (ns = !0), ns) f = !0;
3055
- else if (ts === 1 ? c < u + is : c > d - is) return -ts;
3056
- } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return Os(t);
3058
+ if (s && hs < l * i) {
3059
+ if (!ps && (fs === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (ps = !0), ps) f = !0;
3060
+ else if (fs === 1 ? c < u + hs : c > d - hs) return -fs;
3061
+ } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return zs(t);
3057
3062
  }
3058
3063
  return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
3059
3064
  }
3060
- function Os(e) {
3061
- return go(G) < go(e) ? 1 : -1;
3065
+ function zs(e) {
3066
+ return Oo(W) < Oo(e) ? 1 : -1;
3062
3067
  }
3063
- function ks(e) {
3068
+ function Bs(e) {
3064
3069
  for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
3065
3070
  return r.toString(36);
3066
3071
  }
3067
- function As(e) {
3068
- ss.length = 0;
3072
+ function Vs(e) {
3073
+ vs.length = 0;
3069
3074
  for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
3070
3075
  var r = t[n];
3071
- r.checked && ss.push(r);
3076
+ r.checked && vs.push(r);
3072
3077
  }
3073
3078
  }
3074
- function js(e) {
3079
+ function Hs(e) {
3075
3080
  return setTimeout(e, 0);
3076
3081
  }
3077
- function Ms(e) {
3082
+ function Us(e) {
3078
3083
  return clearTimeout(e);
3079
3084
  }
3080
- cs && L(document, "touchmove", function(e) {
3081
- (Q.active || Wo) && e.cancelable && e.preventDefault();
3085
+ ys && L(document, "touchmove", function(e) {
3086
+ (Q.active || ts) && e.cancelable && e.preventDefault();
3082
3087
  }), Q.utils = {
3083
3088
  on: L,
3084
3089
  off: R,
3085
- css: B,
3086
- find: uo,
3090
+ css: z,
3091
+ find: Co,
3087
3092
  is: function(e, t) {
3088
- return !!so(e, t, e, !1);
3089
- },
3090
- extend: bo,
3091
- throttle: Co,
3092
- closest: so,
3093
- toggleClass: z,
3094
- clone: Eo,
3095
- index: go,
3096
- nextTick: js,
3097
- cancelNextTick: Ms,
3098
- detectDirection: ps,
3099
- getChild: mo
3093
+ return !!yo(e, t, e, !1);
3094
+ },
3095
+ extend: Mo,
3096
+ throttle: Fo,
3097
+ closest: yo,
3098
+ toggleClass: xo,
3099
+ clone: Ro,
3100
+ index: Oo,
3101
+ nextTick: Hs,
3102
+ cancelNextTick: Us,
3103
+ detectDirection: ws,
3104
+ getChild: Eo
3100
3105
  }, Q.get = function(e) {
3101
- return e[H];
3106
+ return e[V];
3102
3107
  }, Q.mount = function() {
3103
3108
  var e = [...arguments];
3104
3109
  e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
3105
3110
  if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
3106
- e.utils && (Q.utils = Wa(Wa({}, Q.utils), e.utils)), No.mount(e);
3111
+ e.utils && (Q.utils = to(to({}, Q.utils), e.utils)), Go.mount(e);
3107
3112
  });
3108
3113
  }, Q.create = function(e, t) {
3109
3114
  return new Q(e, t);
3110
- }, Q.version = Xa;
3111
- var $ = [], Ns, Ps, Fs = !1, Is, Ls, Rs, zs;
3112
- function Bs() {
3115
+ }, Q.version = so;
3116
+ var $ = [], Ws, Gs, Ks = !1, qs, Js, Ys, Xs;
3117
+ function Zs() {
3113
3118
  function e() {
3114
3119
  for (var e in this.defaults = {
3115
3120
  scroll: !0,
@@ -3129,63 +3134,63 @@ function Bs() {
3129
3134
  !this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
3130
3135
  },
3131
3136
  drop: function() {
3132
- this.sortable.nativeDraggable ? R(document, "dragover", this._handleAutoScroll) : (R(document, "pointermove", this._handleFallbackAutoScroll), R(document, "touchmove", this._handleFallbackAutoScroll), R(document, "mousemove", this._handleFallbackAutoScroll)), Hs(), Vs(), wo();
3137
+ this.sortable.nativeDraggable ? R(document, "dragover", this._handleAutoScroll) : (R(document, "pointermove", this._handleFallbackAutoScroll), R(document, "touchmove", this._handleFallbackAutoScroll), R(document, "mousemove", this._handleFallbackAutoScroll)), $s(), Qs(), Io();
3133
3138
  },
3134
3139
  nulling: function() {
3135
- Rs = Ps = Ns = Fs = zs = Is = Ls = null, $.length = 0;
3140
+ Ys = Gs = Ws = Ks = Xs = qs = Js = null, $.length = 0;
3136
3141
  },
3137
3142
  _handleFallbackAutoScroll: function(e) {
3138
3143
  this._handleAutoScroll(e, !0);
3139
3144
  },
3140
3145
  _handleAutoScroll: function(e, t) {
3141
3146
  var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
3142
- if (Rs = e, t || this.options.forceAutoScrollFallback || $a || Qa || to) {
3143
- Us(e, this.options, a, t);
3144
- var o = yo(a, !0);
3145
- Fs && (!zs || r !== Is || i !== Ls) && (zs && Hs(), zs = setInterval(function() {
3146
- var a = yo(document.elementFromPoint(r, i), !0);
3147
- a !== o && (o = a, Vs()), Us(e, n.options, a, t);
3148
- }, 10), Is = r, Ls = i);
3147
+ if (Ys = e, t || this.options.forceAutoScrollFallback || uo || lo || po) {
3148
+ ec(e, this.options, a, t);
3149
+ var o = jo(a, !0);
3150
+ Ks && (!Xs || r !== qs || i !== Js) && (Xs && $s(), Xs = setInterval(function() {
3151
+ var a = jo(document.elementFromPoint(r, i), !0);
3152
+ a !== o && (o = a, Qs()), ec(e, n.options, a, t);
3153
+ }, 10), qs = r, Js = i);
3149
3154
  } else {
3150
- if (!this.options.bubbleScroll || yo(a, !0) === fo()) {
3151
- Vs();
3155
+ if (!this.options.bubbleScroll || jo(a, !0) === wo()) {
3156
+ Qs();
3152
3157
  return;
3153
3158
  }
3154
- Us(e, this.options, yo(a, !1), !1);
3159
+ ec(e, this.options, jo(a, !1), !1);
3155
3160
  }
3156
3161
  }
3157
- }, qa(e, {
3162
+ }, io(e, {
3158
3163
  pluginName: "scroll",
3159
3164
  initializeByDefault: !0
3160
3165
  });
3161
3166
  }
3162
- function Vs() {
3167
+ function Qs() {
3163
3168
  $.forEach(function(e) {
3164
3169
  clearInterval(e.pid);
3165
3170
  }), $ = [];
3166
3171
  }
3167
- function Hs() {
3168
- clearInterval(zs);
3172
+ function $s() {
3173
+ clearInterval(Xs);
3169
3174
  }
3170
- var Us = Co(function(e, t, n, r) {
3175
+ var ec = Fo(function(e, t, n, r) {
3171
3176
  if (t.scroll) {
3172
- var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = fo(), l = !1, u;
3173
- Ps !== n && (Ps = n, Vs(), Ns = t.scroll, u = t.scrollFn, Ns === !0 && (Ns = yo(n, !0)));
3174
- var d = 0, f = Ns;
3177
+ var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = wo(), l = !1, u;
3178
+ Gs !== n && (Gs = n, Qs(), Ws = t.scroll, u = t.scrollFn, Ws === !0 && (Ws = jo(n, !0)));
3179
+ var d = 0, f = Ws;
3175
3180
  do {
3176
- var p = f, m = V(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, w = p.scrollHeight, T = B(p), E = p.scrollLeft, D = p.scrollTop;
3181
+ var p = f, m = B(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, w = p.scrollHeight, T = z(p), E = p.scrollLeft, D = p.scrollTop;
3177
3182
  p === c ? (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll" || T.overflowX === "visible"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll" || T.overflowY === "visible")) : (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll"));
3178
3183
  var O = x && (Math.abs(v - i) <= o && E + y < C) - (Math.abs(_ - i) <= o && !!E), k = S && (Math.abs(g - a) <= o && D + b < w) - (Math.abs(h - a) <= o && !!D);
3179
3184
  if (!$[d]) for (var A = 0; A <= d; A++) $[A] || ($[A] = {});
3180
3185
  ($[d].vx != O || $[d].vy != k || $[d].el !== p) && ($[d].el = p, $[d].vx = O, $[d].vy = k, clearInterval($[d].pid), (O != 0 || k != 0) && (l = !0, $[d].pid = setInterval(function() {
3181
- r && this.layer === 0 && Q.active._onTouchMove(Rs);
3186
+ r && this.layer === 0 && Q.active._onTouchMove(Ys);
3182
3187
  var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
3183
- typeof u == "function" && u.call(Q.dragged.parentNode[H], n, t, e, Rs, $[this.layer].el) !== "continue" || To($[this.layer].el, n, t);
3188
+ typeof u == "function" && u.call(Q.dragged.parentNode[V], n, t, e, Ys, $[this.layer].el) !== "continue" || Lo($[this.layer].el, n, t);
3184
3189
  }.bind({ layer: d }), 24))), d++;
3185
- } while (t.bubbleScroll && f !== c && (f = yo(f, !1)));
3186
- Fs = l;
3190
+ } while (t.bubbleScroll && f !== c && (f = jo(f, !1)));
3191
+ Ks = l;
3187
3192
  }
3188
- }, 30), Ws = function(e) {
3193
+ }, 30), tc = function(e) {
3189
3194
  var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
3190
3195
  if (t) {
3191
3196
  var c = n || i;
@@ -3197,8 +3202,8 @@ var Us = Co(function(e, t, n, r) {
3197
3202
  }));
3198
3203
  }
3199
3204
  };
3200
- function Gs() {}
3201
- Gs.prototype = {
3205
+ function nc() {}
3206
+ nc.prototype = {
3202
3207
  startIndex: null,
3203
3208
  dragStart: function(e) {
3204
3209
  var t = e.oldDraggableIndex;
@@ -3207,67 +3212,67 @@ Gs.prototype = {
3207
3212
  onSpill: function(e) {
3208
3213
  var t = e.dragEl, n = e.putSortable;
3209
3214
  this.sortable.captureAnimationState(), n && n.captureAnimationState();
3210
- var r = mo(this.sortable.el, this.startIndex, this.options);
3215
+ var r = Eo(this.sortable.el, this.startIndex, this.options);
3211
3216
  r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
3212
3217
  },
3213
- drop: Ws
3214
- }, qa(Gs, { pluginName: "revertOnSpill" });
3215
- function Ks() {}
3216
- Ks.prototype = {
3218
+ drop: tc
3219
+ }, io(nc, { pluginName: "revertOnSpill" });
3220
+ function rc() {}
3221
+ rc.prototype = {
3217
3222
  onSpill: function(e) {
3218
3223
  var t = e.dragEl, n = e.putSortable || this.sortable;
3219
3224
  n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
3220
3225
  },
3221
- drop: Ws
3222
- }, qa(Ks, { pluginName: "removeOnSpill" }), Q.mount(new Bs()), Q.mount(Ks, Gs);
3223
- function qs(e) {
3226
+ drop: tc
3227
+ }, io(rc, { pluginName: "removeOnSpill" }), Q.mount(new Zs()), Q.mount(rc, nc);
3228
+ function ic(e) {
3224
3229
  return e == null ? e : JSON.parse(JSON.stringify(e));
3225
3230
  }
3226
- function Js(e) {
3231
+ function ac(e) {
3227
3232
  te() && O(e);
3228
3233
  }
3229
- function Ys(e) {
3234
+ function oc(e) {
3230
3235
  te() ? d(e) : a(e);
3231
3236
  }
3232
- var Xs = null, Zs = null;
3233
- function Qs(e = null, t = null) {
3234
- Xs = e, Zs = t;
3237
+ var sc = null, cc = null;
3238
+ function lc(e = null, t = null) {
3239
+ sc = e, cc = t;
3235
3240
  }
3236
- function $s() {
3241
+ function uc() {
3237
3242
  return {
3238
- data: Xs,
3239
- clonedData: Zs
3243
+ data: sc,
3244
+ clonedData: cc
3240
3245
  };
3241
3246
  }
3242
- var ec = Symbol("cloneElement");
3243
- function tc(...e) {
3247
+ var dc = Symbol("cloneElement");
3248
+ function fc(...e) {
3244
3249
  let t = te()?.proxy, n = null, r = e[0], [, i, o] = e;
3245
3250
  Array.isArray(y(i)) || (o = i, i = null);
3246
- let s = null, { immediate: l = !0, clone: u = qs, forceFallback: d, fallbackOnBody: p, customUpdate: m } = y(o) ?? {};
3251
+ let s = null, { immediate: l = !0, clone: u = ic, forceFallback: d, fallbackOnBody: p, customUpdate: m } = y(o) ?? {};
3247
3252
  function h(e) {
3248
3253
  let { from: t, oldIndex: r, item: a } = e, o = Array.from(t.childNodes);
3249
3254
  n = d && !p ? o.slice(0, -1) : o;
3250
3255
  let s = y(y(i)?.[r]), c = u(s);
3251
- Qs(s, c), a[ec] = c;
3256
+ lc(s, c), a[dc] = c;
3252
3257
  }
3253
3258
  function g(e) {
3254
- let t = e.item[ec];
3255
- if (!Ma(t)) {
3256
- if (Fa(e.item), c(i)) {
3259
+ let t = e.item[dc];
3260
+ if (!Ua(t)) {
3261
+ if (Ka(e.item), c(i)) {
3257
3262
  let n = [...y(i)];
3258
- i.value = ja(n, e.newDraggableIndex, t);
3263
+ i.value = Ha(n, e.newDraggableIndex, t);
3259
3264
  return;
3260
3265
  }
3261
- ja(y(i), e.newDraggableIndex, t);
3266
+ Ha(y(i), e.newDraggableIndex, t);
3262
3267
  }
3263
3268
  }
3264
3269
  function _(e) {
3265
3270
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, pullMode: o, clone: s } = e;
3266
- if (Pa(t, n, r), o === "clone") Fa(s);
3271
+ if (Ga(t, n, r), o === "clone") Ka(s);
3267
3272
  else if (c(i)) {
3268
3273
  let e = [...y(i)];
3269
- i.value = Aa(e, a);
3270
- } else Aa(y(i), a);
3274
+ i.value = Va(e, a);
3275
+ } else Va(y(i), a);
3271
3276
  }
3272
3277
  function v(e) {
3273
3278
  if (m) {
@@ -3275,10 +3280,10 @@ function tc(...e) {
3275
3280
  return;
3276
3281
  }
3277
3282
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, newDraggableIndex: o } = e;
3278
- if (Fa(n), Pa(t, n, r), c(i)) {
3283
+ if (Ka(n), Ga(t, n, r), c(i)) {
3279
3284
  let e = [...y(i)];
3280
- i.value = Da(e, a, o);
3281
- } else Da(y(i), a, o);
3285
+ i.value = Ra(e, a, o);
3286
+ } else Ra(y(i), a, o);
3282
3287
  }
3283
3288
  function b(e) {
3284
3289
  let { newIndex: t, oldIndex: r, from: i, to: o } = e, s = null, c = t === r && i === o;
@@ -3297,7 +3302,7 @@ function tc(...e) {
3297
3302
  n = null;
3298
3303
  }
3299
3304
  a(() => {
3300
- if (Qs(), s) throw s;
3305
+ if (lc(), s) throw s;
3301
3306
  });
3302
3307
  }
3303
3308
  let x = {
@@ -3309,19 +3314,19 @@ function tc(...e) {
3309
3314
  };
3310
3315
  function S(e) {
3311
3316
  let n = y(r);
3312
- return e ||= Na(n) ? Ia(n, t?.$el) : n, e && !za(e) && (e = e.$el), e || Ea("Root element not found"), e;
3317
+ return e ||= Wa(n) ? qa(n, t?.$el) : n, e && !Xa(e) && (e = e.$el), e || La("Root element not found"), e;
3313
3318
  }
3314
3319
  function C() {
3315
- let e = y(o) ?? {}, { immediate: t, clone: n } = e, r = Ca(e, ["immediate", "clone"]);
3316
- return Ba(r, (e, t) => {
3317
- Va(e) && (r[e] = (e, ...n) => (Ha(e, $s()), t(e, ...n)));
3318
- }), Ra(i === null ? {} : x, r);
3320
+ let e = y(o) ?? {}, { immediate: t, clone: n } = e, r = Pa(e, ["immediate", "clone"]);
3321
+ return Za(r, (e, t) => {
3322
+ Qa(e) && (r[e] = (e, ...n) => ($a(e, uc()), t(e, ...n)));
3323
+ }), Ya(i === null ? {} : x, r);
3319
3324
  }
3320
3325
  let w = (e) => {
3321
3326
  e = S(e), s && T.destroy(), s = new Q(e, C());
3322
3327
  };
3323
3328
  f(() => o, () => {
3324
- s && Ba(C(), (e, t) => {
3329
+ s && Za(C(), (e, t) => {
3325
3330
  s?.option(e, t);
3326
3331
  });
3327
3332
  }, { deep: !0 });
@@ -3334,15 +3339,15 @@ function tc(...e) {
3334
3339
  toArray: () => s?.toArray(),
3335
3340
  closest: (...e) => s?.closest(...e)
3336
3341
  };
3337
- return Ys(() => {
3342
+ return oc(() => {
3338
3343
  l && w();
3339
- }), Js(T.destroy), Sa({
3344
+ }), ac(T.destroy), Na({
3340
3345
  start: w,
3341
3346
  pause: () => T?.option("disabled", !0),
3342
3347
  resume: () => T?.option("disabled", !1)
3343
3348
  }, T);
3344
3349
  }
3345
- var nc = [
3350
+ var pc = [
3346
3351
  "update",
3347
3352
  "start",
3348
3353
  "add",
@@ -3355,7 +3360,7 @@ var nc = [
3355
3360
  "clone",
3356
3361
  "move",
3357
3362
  "change"
3358
- ], rc = [
3363
+ ], mc = [
3359
3364
  "clone",
3360
3365
  "animation",
3361
3366
  "ghostClass",
@@ -3399,43 +3404,43 @@ var nc = [
3399
3404
  "tag",
3400
3405
  "target",
3401
3406
  "customUpdate",
3402
- ...nc.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
3403
- ], ic = F({
3407
+ ...pc.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
3408
+ ], hc = F({
3404
3409
  name: "VueDraggable",
3405
3410
  model: {
3406
3411
  prop: "modelValue",
3407
3412
  event: "update:modelValue"
3408
3413
  },
3409
- props: rc,
3410
- emits: ["update:modelValue", ...nc],
3414
+ props: mc,
3415
+ emits: ["update:modelValue", ...pc],
3411
3416
  setup(e, { slots: t, emit: n, expose: r, attrs: i }) {
3412
- let a = nc.reduce((e, t) => {
3417
+ let a = pc.reduce((e, t) => {
3413
3418
  let r = `on${t.replace(/^\S/, (e) => e.toUpperCase())}`;
3414
3419
  return e[r] = (...e) => n(t, ...e), e;
3415
3420
  }, {}), o = N(() => {
3416
- let t = j(e), { modelValue: n } = t, r = Ca(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
3421
+ let t = j(e), { modelValue: n } = t, r = Pa(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
3417
3422
  let r = y(n);
3418
3423
  return r !== void 0 && (e[t] = r), e;
3419
3424
  }, {});
3420
- return Sa(Sa({}, a), ka(Sa(Sa({}, i), o)));
3425
+ return Na(Na({}, a), Ba(Na(Na({}, i), o)));
3421
3426
  }), s = N({
3422
3427
  get: () => e.modelValue,
3423
3428
  set: (e) => n("update:modelValue", e)
3424
- }), c = _(), l = g(tc(e.target || c, s, o));
3429
+ }), c = _(), l = g(fc(e.target || c, s, o));
3425
3430
  return r(l), () => b(e.tag || "div", { ref: c }, (t?.default)?.call(t, l));
3426
3431
  }
3427
- }), ac = {
3432
+ }), gc = {
3428
3433
  mounted: "mounted",
3429
3434
  unmounted: "unmounted"
3430
3435
  };
3431
- ac.mounted, ac.unmounted;
3436
+ gc.mounted, gc.unmounted;
3432
3437
  //#endregion
3433
3438
  //#region src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
3434
- var oc = { class: "tpl:w-full" }, sc = {
3439
+ var _c = { class: "tpl:w-full" }, vc = {
3435
3440
  key: 0,
3436
3441
  "data-testid": "section-drop-hint",
3437
3442
  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)]"
3438
- }, cc = /* @__PURE__ */ F({
3443
+ }, yc = /* @__PURE__ */ F({
3439
3444
  __name: "SectionBlock",
3440
3445
  props: {
3441
3446
  block: {},
@@ -3443,13 +3448,13 @@ var oc = { class: "tpl:w-full" }, sc = {
3443
3448
  },
3444
3449
  setup(e) {
3445
3450
  let i = {
3446
- title: ha,
3447
- paragraph: ea,
3448
- image: Vi,
3449
- button: zr,
3450
- divider: Si,
3451
- custom: bi
3452
- }, a = e, { t: s } = mn(), c = yt(Xt, "SectionBlock"), u = p(Yt, null), d = p(cn, null), f = p(en, {}), h = p(sn, null);
3451
+ title: Ea,
3452
+ paragraph: da,
3453
+ image: Qi,
3454
+ button: Zr,
3455
+ divider: Pi,
3456
+ custom: Mi
3457
+ }, a = e, { t: s } = yn(), c = wt(tn, "SectionBlock"), u = p(en, null), d = p(pn, null), f = p(on, {}), h = p(fn, null);
3453
3458
  function g(e) {
3454
3459
  let t = f.savedBlocks;
3455
3460
  t?.isPicking.value ? t.togglePick(a.block.id) : c.selectBlock(e);
@@ -3496,7 +3501,7 @@ var oc = { class: "tpl:w-full" }, sc = {
3496
3501
  r[e] = n, c.updateBlock(a.block.id, { children: r });
3497
3502
  }
3498
3503
  function re(e) {
3499
- return jr(e, d, i);
3504
+ return Rr(e, d, i);
3500
3505
  }
3501
3506
  function ie(e, t) {
3502
3507
  e.type === "custom" && c.updateBlock(e.id, {
@@ -3504,16 +3509,16 @@ var oc = { class: "tpl:w-full" }, sc = {
3504
3509
  dataSourceFetched: t.dataSourceFetched
3505
3510
  });
3506
3511
  }
3507
- return (i, a) => (t(), S("div", oc, [x("div", { class: k(["tpl:flex tpl:gap-0", { "tpl:flex-col": w.value }]) }, [(t(!0), S(M, null, l(b.value, (i, u) => (t(), S("div", {
3512
+ return (i, a) => (t(), S("div", _c, [x("div", { class: k(["tpl:flex tpl:gap-0", { "tpl:flex-col": w.value }]) }, [(t(!0), S(M, null, l(b.value, (i, u) => (t(), S("div", {
3508
3513
  key: u,
3509
3514
  class: k(["tpl:relative tpl:flex tpl:flex-col tpl:rounded", F(u) ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
3510
3515
  style: n({ width: w.value ? "100%" : v.value[u] })
3511
- }, [C(y(ic), {
3516
+ }, [C(y(hc), {
3512
3517
  "model-value": T(u),
3513
3518
  group: {
3514
3519
  name: "blocks",
3515
3520
  pull: !0,
3516
- put: (e, t, n) => y(ga)(n)
3521
+ put: (e, t, n) => y(Da)(n)
3517
3522
  },
3518
3523
  animation: 150,
3519
3524
  "ghost-class": "tpl-ghost",
@@ -3531,7 +3536,7 @@ var oc = { class: "tpl:w-full" }, sc = {
3531
3536
  onEnd: a[0] ||= (e) => j.value = null,
3532
3537
  "onUpdate:modelValue": (e) => I(u, e)
3533
3538
  }, {
3534
- default: r(() => [(t(!0), S(M, null, l(T(u), (n) => m((t(), S("div", { key: n.id }, [C(pa, {
3539
+ default: r(() => [(t(!0), S(M, null, l(T(u), (n) => m((t(), S("div", { key: n.id }, [C(wa, {
3535
3540
  block: n,
3536
3541
  "is-selected": y(c).state.selectedBlockId === n.id,
3537
3542
  viewport: e.viewport,
@@ -3565,14 +3570,14 @@ var oc = { class: "tpl:w-full" }, sc = {
3565
3570
  "class",
3566
3571
  "onStart",
3567
3572
  "onUpdate:modelValue"
3568
- ]), F(u) ? (t(), S("div", sc, [x("span", null, D(y(s).section.dropHere), 1)])) : P("", !0)], 6))), 128))], 2)]));
3573
+ ]), F(u) ? (t(), S("div", vc, [x("span", null, D(y(s).section.dropHere), 1)])) : P("", !0)], 6))), 128))], 2)]));
3569
3574
  }
3570
- }), lc = ["width", "height"], uc = [
3575
+ }), bc = ["width", "height"], xc = [
3571
3576
  "d",
3572
3577
  "stroke",
3573
3578
  "stroke-opacity",
3574
3579
  "stroke-width"
3575
- ], dc = ["d", "fill"], fc = /* @__PURE__ */ F({
3580
+ ], Sc = ["d", "fill"], Cc = /* @__PURE__ */ F({
3576
3581
  __name: "SocialIconSvg",
3577
3582
  props: {
3578
3583
  platform: {},
@@ -3581,7 +3586,7 @@ var oc = { class: "tpl:w-full" }, sc = {
3581
3586
  iconSize: {}
3582
3587
  },
3583
3588
  setup(e) {
3584
- let r = e, i = N(() => at[r.platform]), a = N(() => ct[r.iconSize]), o = N(() => Be(r.platform, r.iconTone)), s = N(() => Te(r.iconStyle, r.iconTone)), c = N(() => {
3589
+ let r = e, i = N(() => lt[r.platform]), a = N(() => ft[r.iconSize]), o = N(() => Xe(r.platform, r.iconTone)), s = N(() => Ne(r.iconStyle, r.iconTone)), c = N(() => {
3585
3590
  let e = {
3586
3591
  display: "inline-flex",
3587
3592
  alignItems: "center",
@@ -3619,7 +3624,7 @@ var oc = { class: "tpl:w-full" }, sc = {
3619
3624
  };
3620
3625
  default: return e;
3621
3626
  }
3622
- }), l = N(() => je(r.iconStyle)), u = N(() => Math.floor(a.value * l.value));
3627
+ }), l = N(() => Ae(r.iconStyle)), u = N(() => Math.floor(a.value * l.value));
3623
3628
  function d(e) {
3624
3629
  let t = `${e.width / 2 * a.value / 24}px`, n = Math.round(e.opacity * 255).toString(16).padStart(2, "0"), r = `${e.color}${n}`;
3625
3630
  return `0 0 0 ${t} ${r}, inset 0 0 0 ${t} ${r}`;
@@ -3640,28 +3645,28 @@ var oc = { class: "tpl:w-full" }, sc = {
3640
3645
  "stroke-opacity": s.value.opacity,
3641
3646
  "stroke-width": s.value.width / l.value,
3642
3647
  "stroke-linejoin": "round"
3643
- }, null, 8, uc)) : P("", !0), x("path", {
3648
+ }, null, 8, xc)) : P("", !0), x("path", {
3644
3649
  d: i.value.path,
3645
3650
  fill: f.value
3646
- }, null, 8, dc)], 8, lc))], 4));
3651
+ }, null, 8, Sc)], 8, bc))], 4));
3647
3652
  }
3648
- }), pc = { class: "tpl:w-full" }, mc = ["href"], hc = {
3653
+ }), wc = { class: "tpl:w-full" }, Tc = ["href"], Ec = {
3649
3654
  key: 1,
3650
3655
  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)]"
3651
- }, gc = /* @__PURE__ */ F({
3656
+ }, Dc = /* @__PURE__ */ F({
3652
3657
  __name: "SocialIconsBlock",
3653
3658
  props: {
3654
3659
  block: {},
3655
3660
  viewport: {}
3656
3661
  },
3657
3662
  setup(e) {
3658
- let r = e, { t: i } = mn(), a = N(() => ({
3663
+ let r = e, { t: i } = yn(), a = N(() => ({
3659
3664
  display: "flex",
3660
3665
  flexWrap: "wrap",
3661
3666
  gap: `${r.block.spacing}px`,
3662
3667
  justifyContent: r.block.align === "left" ? "flex-start" : r.block.align === "right" ? "flex-end" : "center"
3663
3668
  })), o = N(() => r.block.icons.length > 0);
3664
- return (r, s) => (t(), S("div", pc, [o.value ? (t(), S("div", {
3669
+ return (r, s) => (t(), S("div", wc, [o.value ? (t(), S("div", {
3665
3670
  key: 0,
3666
3671
  style: n(a.value)
3667
3672
  }, [(t(!0), S(M, null, l(e.block.icons, (n) => (t(), S("a", {
@@ -3669,7 +3674,7 @@ var oc = { class: "tpl:w-full" }, sc = {
3669
3674
  href: n.url || "#",
3670
3675
  class: "tpl:cursor-default",
3671
3676
  onClick: s[0] ||= I(() => {}, ["prevent"])
3672
- }, [C(fc, {
3677
+ }, [C(Cc, {
3673
3678
  platform: n.platform,
3674
3679
  "icon-style": e.block.iconStyle,
3675
3680
  "icon-tone": e.block.iconTone,
@@ -3679,44 +3684,44 @@ var oc = { class: "tpl:w-full" }, sc = {
3679
3684
  "icon-style",
3680
3685
  "icon-tone",
3681
3686
  "icon-size"
3682
- ])], 8, mc))), 128))], 4)) : (t(), S("div", hc, [C(y(ot), { size: 16 }), x("span", null, D(y(i).social.addIcons), 1)]))]));
3687
+ ])], 8, Tc))), 128))], 4)) : (t(), S("div", Ec, [C(y(dt), { size: 16 }), x("span", null, D(y(i).social.addIcons), 1)]))]));
3683
3688
  }
3684
- }), _c = { class: "tpl:w-full" }, vc = {
3689
+ }), Oc = { class: "tpl:w-full" }, kc = {
3685
3690
  key: 0,
3686
3691
  class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
3687
3692
  style: {
3688
3693
  "background-color": "var(--tpl-bg-hover)",
3689
3694
  color: "var(--tpl-text-dim)"
3690
3695
  }
3691
- }, yc = /* @__PURE__ */ F({
3696
+ }, Ac = /* @__PURE__ */ F({
3692
3697
  __name: "SpacerBlock",
3693
3698
  props: {
3694
3699
  block: {},
3695
3700
  viewport: {}
3696
3701
  },
3697
3702
  setup(e) {
3698
- let r = e, i = yt(Xt, "SpacerBlock"), a = N(() => ({
3703
+ let r = e, i = wt(tn, "SpacerBlock"), a = N(() => ({
3699
3704
  height: `${r.block.height}px`,
3700
3705
  minHeight: `${r.block.height}px`,
3701
3706
  ...i.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
3702
3707
  }));
3703
- return (r, o) => (t(), S("div", _c, [x("div", {
3708
+ return (r, o) => (t(), S("div", Oc, [x("div", {
3704
3709
  style: n(a.value),
3705
- class: k(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:border-y tpl:border-dashed": !y(i).state.previewMode }])
3706
- }, [y(i).state.previewMode ? P("", !0) : (t(), S("span", vc, D(e.block.height) + "px ", 1))], 6)]));
3710
+ class: k(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:box-border tpl:border-y tpl:border-x-0 tpl:border-dashed": !y(i).state.previewMode }])
3711
+ }, [y(i).state.previewMode ? P("", !0) : (t(), S("span", kc, D(e.block.height) + "px ", 1))], 6)]));
3707
3712
  }
3708
- }), bc = { class: "tpl:w-full" }, xc = { key: 0 }, Sc = [
3713
+ }), jc = { class: "tpl:w-full" }, Mc = { key: 0 }, Nc = [
3709
3714
  "aria-label",
3710
3715
  "data-placeholder",
3711
3716
  "onBlur"
3712
- ], Cc = [
3717
+ ], Pc = [
3713
3718
  "aria-label",
3714
3719
  "data-placeholder",
3715
3720
  "onBlur"
3716
- ], wc = {
3721
+ ], Fc = {
3717
3722
  key: 1,
3718
3723
  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)]"
3719
- }, Tc = /*#__PURE__*/ An(/* @__PURE__ */ F({
3724
+ }, Ic = /*#__PURE__*/ Nn(/* @__PURE__ */ F({
3720
3725
  __name: "TableBlock",
3721
3726
  props: {
3722
3727
  block: {},
@@ -3730,28 +3735,28 @@ var oc = { class: "tpl:w-full" }, sc = {
3730
3735
  updated(e, t) {
3731
3736
  t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
3732
3737
  }
3733
- }, i = e, { t: a } = mn(), o = yt(Xt, "TableBlock"), s = N(() => i.block.rows.length > 0), c = N(() => {
3738
+ }, i = e, { t: a } = yn(), o = wt(tn, "TableBlock"), s = wt(mn, "TableBlock"), c = N(() => i.block.rows.length > 0), u = N(() => {
3734
3739
  let e = {
3735
3740
  width: "100%",
3736
3741
  borderCollapse: "collapse",
3737
3742
  fontSize: `${i.block.fontSize}px`,
3738
3743
  textAlign: i.block.textAlign,
3739
- fontFamily: i.block.fontFamily || "inherit"
3744
+ fontFamily: i.block.fontFamily ? s.resolveFontFamily(i.block.fontFamily) : "inherit"
3740
3745
  };
3741
3746
  return i.block.color && (e.color = i.block.color), e;
3742
- }), u = N(() => ({
3747
+ }), d = N(() => ({
3743
3748
  border: `${i.block.borderWidth}px solid ${i.block.borderColor}`,
3744
3749
  padding: `${i.block.cellPadding}px`,
3745
3750
  textAlign: i.block.textAlign
3746
- })), d = N(() => ({
3747
- ...u.value,
3751
+ })), f = N(() => ({
3752
+ ...d.value,
3748
3753
  fontWeight: "bold",
3749
3754
  backgroundColor: i.block.headerBackgroundColor || "transparent"
3750
- })), f = N(() => i.block.hasHeaderRow && i.block.rows.length > 0 ? i.block.rows[0] : null), p = N(() => i.block.hasHeaderRow ? i.block.rows.slice(1) : i.block.rows);
3751
- function h() {
3755
+ })), p = N(() => i.block.hasHeaderRow && i.block.rows.length > 0 ? i.block.rows[0] : null), h = N(() => i.block.hasHeaderRow ? i.block.rows.slice(1) : i.block.rows);
3756
+ function g() {
3752
3757
  o.selectBlock(i.block.id);
3753
3758
  }
3754
- function g(e, t, n) {
3759
+ function _(e, t, n) {
3755
3760
  let r = n.target.innerText.trim(), a = i.block.rows.map((n) => n.id === e ? {
3756
3761
  ...n,
3757
3762
  cells: n.cells.map((e) => e.id === t ? {
@@ -3761,31 +3766,31 @@ var oc = { class: "tpl:w-full" }, sc = {
3761
3766
  } : n);
3762
3767
  o.updateBlock(i.block.id, { rows: a });
3763
3768
  }
3764
- return (e, i) => (t(), S("div", bc, [s.value ? (t(), S("table", {
3769
+ return (e, i) => (t(), S("div", jc, [c.value ? (t(), S("table", {
3765
3770
  key: 0,
3766
- style: n(c.value),
3771
+ style: n(u.value),
3767
3772
  class: "tpl-table-editable"
3768
- }, [f.value ? (t(), S("thead", xc, [x("tr", null, [(t(!0), S(M, null, l(f.value.cells, (e) => m((t(), S("th", {
3773
+ }, [p.value ? (t(), S("thead", Mc, [x("tr", null, [(t(!0), S(M, null, l(p.value.cells, (e) => m((t(), S("th", {
3769
3774
  key: e.id,
3770
- style: n(d.value),
3775
+ style: n(f.value),
3771
3776
  "aria-label": y(a).table.cellPlaceholder,
3772
3777
  contenteditable: "true",
3773
3778
  "data-placeholder": y(a).table.cellPlaceholder,
3774
- onBlur: (t) => g(f.value.id, e.id, t),
3779
+ onBlur: (t) => _(p.value.id, e.id, t),
3775
3780
  onKeydown: i[0] ||= re(I((e) => e.target.blur(), ["prevent"]), ["enter"]),
3776
- onClick: I(h, ["stop"])
3777
- }, null, 44, Sc)), [[r, e.content]])), 128))])])) : P("", !0), x("tbody", null, [(t(!0), S(M, null, l(p.value, (e) => (t(), S("tr", { key: e.id }, [(t(!0), S(M, null, l(e.cells, (o) => m((t(), S("td", {
3781
+ onClick: I(g, ["stop"])
3782
+ }, null, 44, Nc)), [[r, e.content]])), 128))])])) : P("", !0), x("tbody", null, [(t(!0), S(M, null, l(h.value, (e) => (t(), S("tr", { key: e.id }, [(t(!0), S(M, null, l(e.cells, (o) => m((t(), S("td", {
3778
3783
  key: o.id,
3779
- style: n(u.value),
3784
+ style: n(d.value),
3780
3785
  "aria-label": y(a).table.cellPlaceholder,
3781
3786
  contenteditable: "true",
3782
3787
  "data-placeholder": y(a).table.cellPlaceholder,
3783
- onBlur: (t) => g(e.id, o.id, t),
3788
+ onBlur: (t) => _(e.id, o.id, t),
3784
3789
  onKeydown: i[1] ||= re(I((e) => e.target.blur(), ["prevent"]), ["enter"]),
3785
- onClick: I(h, ["stop"])
3786
- }, null, 44, Cc)), [[r, o.content]])), 128))]))), 128))])], 4)) : (t(), S("div", wc, [C(y(Qe), { size: 16 }), x("span", null, D(y(a).table.empty), 1)]))]));
3790
+ onClick: I(g, ["stop"])
3791
+ }, null, 44, Pc)), [[r, o.content]])), 128))]))), 128))])], 4)) : (t(), S("div", Fc, [C(y(ut), { size: 16 }), x("span", null, D(y(a).table.empty), 1)]))]));
3787
3792
  }
3788
- }), [["__scopeId", "data-v-963ac422"]]), Ec = /* @__PURE__ */ F({
3793
+ }), [["__scopeId", "data-v-6751d456"]]), Lc = /* @__PURE__ */ F({
3789
3794
  __name: "VideoPlayButton",
3790
3795
  props: { hoverEffect: {
3791
3796
  type: Boolean,
@@ -3803,7 +3808,7 @@ var oc = { class: "tpl:w-full" }, sc = {
3803
3808
  });
3804
3809
  //#endregion
3805
3810
  //#region src/utils/videoThumbnail.ts
3806
- function Dc(e) {
3811
+ function Rc(e) {
3807
3812
  if (!e) return {
3808
3813
  platform: "unknown",
3809
3814
  videoId: null,
@@ -3835,25 +3840,25 @@ function Dc(e) {
3835
3840
  thumbnailUrl: null
3836
3841
  };
3837
3842
  }
3838
- function Oc(e, t) {
3839
- return t || Dc(e).thumbnailUrl;
3843
+ function zc(e, t) {
3844
+ return t || Rc(e).thumbnailUrl;
3840
3845
  }
3841
3846
  //#endregion
3842
3847
  //#region src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
3843
- var kc = ["src", "alt"], Ac = {
3848
+ var Bc = ["src", "alt"], Vc = {
3844
3849
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
3845
3850
  style: { opacity: "0.7" }
3846
- }, jc = ["href"], Mc = ["src", "alt"], Nc = ["src", "alt"], Pc = {
3851
+ }, Hc = ["href"], Uc = ["src", "alt"], Wc = ["src", "alt"], Gc = {
3847
3852
  key: 3,
3848
- 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)]"
3849
- }, Fc = /* @__PURE__ */ F({
3853
+ class: "tpl:flex tpl:box-border 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)]"
3854
+ }, Kc = /* @__PURE__ */ F({
3850
3855
  __name: "VideoBlock",
3851
3856
  props: {
3852
3857
  block: {},
3853
3858
  viewport: {}
3854
3859
  },
3855
3860
  setup(e) {
3856
- let r = e, { t: i } = mn(), { syntax: a } = Mn(), o = N(() => ke(r.block.url, a) || ke(r.block.thumbnailUrl, a)), s = Hn(() => o.value ? void 0 : r.block.thumbnailUrl || void 0), c = Hn(() => o.value ? r.block.placeholderUrl : void 0), l = N(() => o.value ? null : r.block.thumbnailUrl ? s.value ?? null : Oc(r.block.url)), u = N(() => ({ textAlign: r.block.align })), d = N(() => {
3861
+ let r = e, { t: i } = yn(), { syntax: a } = Fn(), o = N(() => Ce(r.block.url, a) || Ce(r.block.thumbnailUrl, a)), s = Wn(() => o.value ? void 0 : r.block.thumbnailUrl || void 0), c = Wn(() => o.value ? r.block.placeholderUrl : void 0), l = N(() => o.value ? null : r.block.thumbnailUrl ? s.value ?? null : zc(r.block.url)), u = N(() => ({ textAlign: r.block.align })), d = N(() => {
3857
3862
  let e = r.block.align;
3858
3863
  return {
3859
3864
  maxWidth: "100%",
@@ -3863,7 +3868,7 @@ var kc = ["src", "alt"], Ac = {
3863
3868
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
3864
3869
  marginRight: e === "center" ? "auto" : void 0
3865
3870
  };
3866
- }), f = N(() => ({ height: r.block.height ? `${r.block.height}px` : void 0 })), p = N(() => ke(r.block.url, a) ? r.block.url : r.block.thumbnailUrl);
3871
+ }), f = N(() => ({ height: r.block.height ? `${r.block.height}px` : void 0 })), p = N(() => Ce(r.block.url, a) ? r.block.url : r.block.thumbnailUrl);
3867
3872
  return (r, a) => (t(), S("div", {
3868
3873
  class: "tpl:w-full",
3869
3874
  style: n(u.value)
@@ -3872,20 +3877,20 @@ var kc = ["src", "alt"], Ac = {
3872
3877
  class: "tpl:relative tpl:inline-block",
3873
3878
  style: n(d.value)
3874
3879
  }, [x("img", {
3875
- class: "tpl:w-full tpl:border-0",
3880
+ class: "tpl:block tpl:w-full tpl:border-0",
3876
3881
  src: y(c),
3877
3882
  alt: e.block.alt,
3878
3883
  style: n(f.value)
3879
- }, null, 12, kc), C(Ec)], 4)) : o.value ? (t(), S("div", {
3884
+ }, null, 12, Bc), C(Lc)], 4)) : o.value ? (t(), S("div", {
3880
3885
  key: 1,
3881
- 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)]",
3886
+ class: "tpl:relative tpl:!flex tpl:box-border 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)]",
3882
3887
  style: n([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, d.value])
3883
- }, [C(y(Kr), {
3888
+ }, [C(y(ii), {
3884
3889
  size: 36,
3885
3890
  "stroke-width": 1.5,
3886
3891
  class: "tpl:text-[var(--tpl-primary)]",
3887
3892
  style: { opacity: "0.5" }
3888
- }), x("span", Ac, [C(Lr, { text: p.value }, null, 8, ["text"])])], 4)) : l.value ? (t(), S(M, { key: 2 }, [e.block.url ? (t(), S("a", {
3893
+ }), x("span", Vc, [C(Yr, { text: p.value }, null, 8, ["text"])])], 4)) : l.value ? (t(), S(M, { key: 2 }, [e.block.url ? (t(), S("a", {
3889
3894
  key: 0,
3890
3895
  href: e.block.url,
3891
3896
  target: "_blank",
@@ -3894,67 +3899,67 @@ var kc = ["src", "alt"], Ac = {
3894
3899
  style: n(d.value),
3895
3900
  onClick: a[0] ||= I(() => {}, ["prevent"])
3896
3901
  }, [x("img", {
3897
- class: "tpl:w-full tpl:border-0",
3902
+ class: "tpl:block tpl:w-full tpl:border-0",
3898
3903
  src: l.value,
3899
3904
  alt: e.block.alt,
3900
3905
  style: n(f.value)
3901
- }, null, 12, Mc), C(Ec, { "hover-effect": "" })], 12, jc)) : (t(), S("div", {
3906
+ }, null, 12, Uc), C(Lc, { "hover-effect": "" })], 12, Hc)) : (t(), S("div", {
3902
3907
  key: 1,
3903
3908
  class: "tpl:relative tpl:inline-block",
3904
3909
  style: n(d.value)
3905
3910
  }, [x("img", {
3906
- class: "tpl:w-full tpl:border-0",
3911
+ class: "tpl:block tpl:w-full tpl:border-0",
3907
3912
  src: l.value,
3908
3913
  alt: e.block.alt,
3909
3914
  style: n(f.value)
3910
- }, null, 12, Nc), C(Ec)], 4))], 64)) : (t(), S("div", Pc, [C(y(Kr), {
3915
+ }, null, 12, Wc), C(Lc)], 4))], 64)) : (t(), S("div", Gc, [C(y(ii), {
3911
3916
  size: 40,
3912
3917
  "stroke-width": 1.5,
3913
3918
  class: "tpl:text-[var(--tpl-border-light)]"
3914
3919
  }), x("span", null, D(y(i).video.addVideo), 1)]))], 4));
3915
3920
  }
3916
- }), Ic = {
3917
- section: cc,
3918
- title: ha,
3919
- paragraph: ea,
3920
- image: Vi,
3921
- button: zr,
3922
- divider: Si,
3923
- video: Fc,
3924
- social: gc,
3925
- menu: Gi,
3926
- table: Tc,
3927
- spacer: yc,
3928
- html: Oi,
3929
- countdown: v(() => import("./CountdownBlock-RNx3hIu0.js"))
3921
+ }), qc = {
3922
+ section: yc,
3923
+ title: Ea,
3924
+ paragraph: da,
3925
+ image: Qi,
3926
+ button: Zr,
3927
+ divider: Pi,
3928
+ video: Kc,
3929
+ social: Dc,
3930
+ menu: na,
3931
+ table: Ic,
3932
+ spacer: Ac,
3933
+ html: Bi,
3934
+ countdown: v(() => import("./CountdownBlock-zx39Dyby.js"))
3930
3935
  };
3931
- function Lc(t) {
3932
- let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: c } = mn(i), l = N(() => me(me(me(or(i), Er(n.content.value.settings?.locale)), he(n.content.value.settings) === "rtl" ? {
3936
+ function Jc(t) {
3937
+ let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: c } = yn(i), l = N(() => ue(ue(ue(pr(i), Nr(n.content.value.settings?.locale)), Ie(n.content.value.settings) === "rtl" ? {
3933
3938
  title: { textAlign: "right" },
3934
3939
  table: { textAlign: "right" }
3935
3940
  } : {}), r.blockDefaults ?? {}));
3936
3941
  n.setUiTheme(r.uiTheme ?? "auto");
3937
- let { resolvedTheme: u } = Jn(N(() => n.state.uiTheme)), d = _(r.theme ?? {}), { themeStyles: p } = Xn({
3942
+ let { resolvedTheme: u } = tr(N(() => n.state.uiTheme)), d = _(r.theme ?? {}), { themeStyles: p } = rr({
3938
3943
  themeOverrides: d,
3939
3944
  resolvedTheme: u,
3940
3945
  extraStyles: () => ({
3941
3946
  "--tpl-drop-text": `"${i.canvas.dropHere}"`,
3942
3947
  ...t.themeExtraStyles?.()
3943
3948
  })
3944
- }), m = Xe({
3949
+ }), m = ht({
3945
3950
  content: n.content,
3946
3951
  setContent: (e, t) => n.setContent(e, t),
3947
3952
  ...t.historyOptions
3948
3953
  });
3949
- ut(n, m);
3950
- let g = Ze({
3954
+ tt(n, m);
3955
+ let g = mt({
3951
3956
  addBlock: n.addBlock,
3952
3957
  removeBlock: n.removeBlock,
3953
3958
  updateBlock: n.updateBlock,
3954
3959
  selectBlock: n.selectBlock,
3955
3960
  findBlockLocation: n.findBlockLocation,
3956
3961
  blockDefaults: () => l.value
3957
- }), v = $e(n), y = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? nt({
3962
+ }), v = gt(n), y = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? nt({
3958
3963
  content: n.content,
3959
3964
  isDirty: () => n.state.isDirty,
3960
3965
  ...t.autoSaveOptions
@@ -3962,30 +3967,30 @@ function Lc(t) {
3962
3967
  y && (b = f(m.isNavigating, (e) => {
3963
3968
  e ? y.pause() : y.resume();
3964
3969
  }));
3965
- let x = qn(n, {
3970
+ let x = er(n, {
3966
3971
  t: o,
3967
3972
  format: c
3968
- }, r.customBlocks ?? []), S = vn(r.colors);
3969
- if (S.allowCustomIgnored && hn.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), S.invalidPresets.length > 0 && hn.warn(`config.colors.presets skipped invalid entries: ${S.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), S.allowCustom === !1) {
3970
- let e = ar(S.presets, r.blockDefaults, r.templateDefaults);
3971
- e.length > 0 && hn.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.`);
3972
- }
3973
- let C = bn(r.templateSettings);
3974
- for (let e of C.unknown) hn.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${xn.join(", ")}) — skipping it.`);
3975
- let w = Zn();
3976
- nr(w, Ic);
3973
+ }, r.customBlocks ?? []), S = Cn(r.colors);
3974
+ if (S.allowCustomIgnored && bn.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), S.invalidPresets.length > 0 && bn.warn(`config.colors.presets skipped invalid entries: ${S.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), S.allowCustom === !1) {
3975
+ let e = fr(S.presets, r.blockDefaults, r.templateDefaults);
3976
+ e.length > 0 && bn.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.`);
3977
+ }
3978
+ let C = Tn(r.templateSettings);
3979
+ for (let e of C.unknown) bn.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${En.join(", ")}) — skipping it.`);
3980
+ let w = ir();
3981
+ lr(w, qc);
3977
3982
  let T = /* @__PURE__ */ new Set();
3978
3983
  function D(e) {
3979
3984
  for (let t of e) {
3980
- w.registerCustom(t, bi);
3981
- for (let e of Dr(t, S)) T.has(e.id) || (T.add(e.id), hn.warn(e.message));
3985
+ w.registerCustom(t, Mi);
3986
+ for (let e of Pr(t, S)) T.has(e.id) || (T.add(e.id), bn.warn(e.message));
3982
3987
  }
3983
3988
  }
3984
3989
  r.customBlocks?.length && D(r.customBlocks);
3985
- let O = Rn();
3990
+ let O = Bn();
3986
3991
  if (h() && s(O.dispose), t.containerEl) {
3987
3992
  let e = t.containerEl;
3988
- gt(document, "pointerdown", (t) => {
3993
+ xt(document, "pointerdown", (t) => {
3989
3994
  let n = e.value;
3990
3995
  n && (t.composedPath?.() ?? []).includes(n) && O.claim();
3991
3996
  }, { capture: !0 });
@@ -3995,7 +4000,7 @@ function Lc(t) {
3995
4000
  e ? e.save() : y?.flush();
3996
4001
  }
3997
4002
  function A(e) {
3998
- O.isActive() && kr(e, {
4003
+ O.isActive() && Ir(e, {
3999
4004
  history: m,
4000
4005
  selectBlock: (e) => n.selectBlock(e),
4001
4006
  getSelectedBlockId: () => n.state.selectedBlockId,
@@ -4007,37 +4012,37 @@ function Lc(t) {
4007
4012
  onCancelPick: () => t.capabilities?.savedBlocks?.cancelPicking()
4008
4013
  });
4009
4014
  }
4010
- gt(document, "keydown", A);
4015
+ xt(document, "keydown", A);
4011
4016
  let j = _(null), M = t.editorRoot ?? document;
4012
- E(Wt, M), E(xt, j), E(Ht, i), E(Xt, n), E(fn, m), E(Gt, g), E(Yt, v), E(ln, a), E(kt, p), E(Ut, u), E(rn, l), E(Vt, r.locale), E(cn, w), E(an, r.customBlocks ?? []), E(pn, r.paletteBlocks), E(Kt, rr(r.htmlBlockPreview)), E(St, r.layout), E(Et, r.sectionWrapper), E(Jt, S), E(on, C.fields), E(tn, Qn(n.content, w));
4013
- let ee = Ue(r.mergeTags?.syntax), P = e(r.mergeTags?.tags ?? []);
4017
+ E(Yt, M), E(Et, j), E(qt, i), E(tn, n), E(_n, m), E(Xt, g), E(en, v), E(mn, a), E(Pt, p), E(Jt, u), E(ln, l), E(Kt, r.locale), E(pn, w), E(un, r.customBlocks ?? []), E(vn, r.paletteBlocks), E(Zt, ur(r.htmlBlockPreview)), E(Dt, r.layout), E(jt, r.sectionWrapper), E($t, S), E(dn, C.fields), E(sn, ar(n.content, w));
4018
+ let ee = ke(r.mergeTags?.syntax), P = e(r.mergeTags?.tags ?? []);
4014
4019
  function F(e) {
4015
- Array.isArray(e) ? P.value = e : hn.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
4020
+ Array.isArray(e) ? P.value = e : bn.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
4016
4021
  }
4017
- E(Pt, P), E(Ft, ee), E(Lt, r.mergeTags?.onRequest ?? null), E($t, r.mergeTags?.autocomplete !== !1), E(Nt, r.mergeTags?.showRawValue !== !1);
4018
- let te = _(le(r.mergeTags?.tags ?? []));
4019
- E(Mt, te);
4020
- let I = Bn({
4022
+ E(zt, P), E(Bt, ee), E(Ht, r.mergeTags?.onRequest ?? null), E(an, r.mergeTags?.autocomplete !== !1), E(Rt, r.mergeTags?.showRawValue !== !1);
4023
+ let te = _(Ge(r.mergeTags?.tags ?? []));
4024
+ E(Lt, te);
4025
+ let I = Hn({
4021
4026
  resolvePreview: r.resolvePreview,
4022
4027
  getContent: () => {
4023
4028
  let e = n.content.value;
4024
- return r.layout && n.state.previewMode ? De(r.layout, e) : e;
4029
+ return r.layout && n.state.previewMode ? Ue(r.layout, e) : e;
4025
4030
  },
4026
4031
  isActive: () => n.state.previewMode
4027
4032
  });
4028
- E(Bt, I), E(Dt, r.resolvePreview);
4033
+ E(Gt, I), E(Mt, r.resolvePreview);
4029
4034
  let ne = N(() => !(n.state.previewMode && I.isConfigured));
4030
- E(sn, ne);
4031
- let re = Un();
4032
- E(bt, re), E(Qt, _(!1)), E(Ct, _(!1)), E(zt, r.logicTags?.tags ?? []), E(un, r.logicTags?.pairs ?? []), E(Ot, r.logicTags?.onRequest ?? null), E(wt, Wn()), E(jt, r.onRequestMedia ?? null), E(qt, r.canDropMedia ?? null), E(dn, r.resolveImageUrl ? Vn(r.resolveImageUrl) : null), E(Zt, r.displayConditions?.conditions ?? []), E(nn, r.displayConditions?.allowCustom ?? !1), E(en, t.capabilities ?? {}), E(Rt, x);
4033
- let ie = Gn(r.lint) ? null : Kn({
4035
+ E(fn, ne);
4036
+ let re = Xn();
4037
+ E(Tt, re), E(rn, _(!1)), E(Ot, _(!1)), E(Wt, r.logicTags?.tags ?? []), E(hn, r.logicTags?.pairs ?? []), E(Nt, r.logicTags?.onRequest ?? null), E(kt, Zn()), E(It, r.onRequestMedia ?? null), E(Qt, r.canDropMedia ?? null), E(gn, r.resolveImageUrl ? Un(r.resolveImageUrl) : null), E(nn, r.displayConditions?.conditions ?? []), E(cn, r.displayConditions?.allowCustom ?? !1), E(on, t.capabilities ?? {}), E(Ut, x);
4038
+ let ie = Qn(r.lint) ? null : $n({
4034
4039
  content: n.content,
4035
4040
  options: r.lint ?? {},
4036
4041
  updateBlock: n.updateBlock,
4037
4042
  updateSettings: n.updateSettings,
4038
4043
  removeBlock: n.removeBlock
4039
4044
  });
4040
- E(At, ie);
4045
+ E(Ft, ie);
4041
4046
  function ae() {
4042
4047
  b?.(), ie?.destroy(), y?.destroy(), m.destroy();
4043
4048
  }
@@ -4065,4 +4070,4 @@ function Lc(t) {
4065
4070
  };
4066
4071
  }
4067
4072
  //#endregion
4068
- export { jr as A, Wr as C, Mr as D, zr as E, yr as F, vr as I, _r as L, Sr as M, xr as N, Ar as O, br as P, Bn as R, Yr as S, Br as T, li as _, gc as a, Qr as b, ha as c, Gi as d, Vi as f, di as g, bi as h, yc as i, mr as j, Fr as k, pa as l, Si as m, Fc as n, cc as o, Oi as p, Tc as r, ic as s, Lc as t, ea as u, si as v, Hr as w, Zr as x, ni as y };
4073
+ export { Lr as A, qn as B, ni as C, Hr as D, Zr as E, Or as F, Hn as H, Dr as I, Er as L, Rr as M, xr as N, Ur as O, kr as P, Tr as R, si as S, Qr as T, Jn as V, xi as _, Dc as a, ui as b, Ea as c, na as d, Qi as f, Ci as g, Mi as h, Ac as i, qr as j, Wr as k, wa as l, Pi as m, Kc as n, yc as o, Bi as p, Ic as r, hc as s, Jc as t, da as u, yi as v, ei as w, li as x, mi as y, wr as z };