@templatical/editor 0.59.2 → 0.60.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 (311) hide show
  1. package/dist/{AiAltTextPopover-BhWHOOKX.js → AiAltTextPopover-DiIaqDtB.js} +1 -1
  2. package/dist/{AiAltTextReview-CmW7pLmo.js → AiAltTextReview-DIe0WBbj.js} +1 -1
  3. package/dist/{AiChatPanel-CV0mCtad.js → AiChatPanel-aj2TPO9F.js} +8 -8
  4. package/dist/{AiPanels-C8M7q_vM.js → AiPanels-CRM3jf82.js} +1 -1
  5. package/dist/{AiRewriteMenu-DC2ZLH5L.js → AiRewriteMenu-F3GyXBsk.js} +8 -8
  6. package/dist/{BlockIssueBadge-B8sl9BM1.js → BlockIssueBadge-DlhA_I6J.js} +2 -2
  7. package/dist/{BlockPreviewCanvas-yhOQAQhJ.js → BlockPreviewCanvas-DYspUXMO.js} +19 -44
  8. package/dist/{CloudPanels-CD0lsL0R.js → CloudPanels-CAMn545-.js} +3 -3
  9. package/dist/{CollaborationNotices-DrMrP73M.js → CollaborationNotices-CnfS8BQy.js} +1 -1
  10. package/dist/{CollaboratorBar-TsK872uC.js → CollaboratorBar-DufLdLQP.js} +1 -1
  11. package/dist/{CommentsPanel-BX8JVrXU.js → CommentsPanel-C2hFFs0o.js} +1 -1
  12. package/dist/{CommentsSidebar-BUlseNwL.js → CommentsSidebar-CgEwxt2T.js} +10 -10
  13. package/dist/{CountdownToolbar-dx3FVRjh.js → CountdownToolbar-CNqYDevp.js} +4 -4
  14. package/dist/{IssuesPanel-BwnvXxBC.js → IssuesPanel-cPKhimE9.js} +9 -9
  15. package/dist/{LanguageMenu-Cf5bKocE.js → LanguageMenu-zxlpmw2x.js} +12 -12
  16. package/dist/{LocaleNotices-CGEp0pQ8.js → LocaleNotices-PIfpvCCI.js} +2 -2
  17. package/dist/{LogicTagInsertButton-BdDe-vrZ.js → LogicTagInsertButton-DqTkGJSR.js} +16 -16
  18. package/dist/{MediaEditModal-BWOqjEZN.js → MediaEditModal-C2Bn8WGb.js} +1 -1
  19. package/dist/{MediaPanels-C-XrldMu.js → MediaPanels-BAZByHRA.js} +1 -1
  20. package/dist/{MergeTagInput-CTTi-eB0.js → MergeTagInput-Jly1Pw0v.js} +1 -1
  21. package/dist/{MergeTagModeToggle-Bd0svGQm.js → MergeTagModeToggle-5kaFLRAm.js} +4 -4
  22. package/dist/{MergeTagTextarea-DiahMV-3.js → MergeTagTextarea-CCfirhcR.js} +5 -5
  23. package/dist/{ParagraphEditor-Db1cmj8Y.js → ParagraphEditor-DTdnxgDZ.js} +43 -43
  24. package/dist/{RestoreVersionDialog-DA1Z0q9Z.js → RestoreVersionDialog-cUYu3Xqs.js} +3 -3
  25. package/dist/{RichTextEditorContent-CyO6e4ZG.js → RichTextEditorContent-Aub9tOHF.js} +4 -4
  26. package/dist/{SaveBlockDialog-D7SaFxa_.js → SaveBlockDialog-D_ie3uIF.js} +7 -7
  27. package/dist/{SavedBlocksBrowserModal-B5r3LWWG.js → SavedBlocksBrowserModal-fhSnYT1l.js} +9 -9
  28. package/dist/{SavedBlocksPanels-BH2f7jm-.js → SavedBlocksPanels-Lklqy4XI.js} +1 -1
  29. package/dist/{SavedBlocksPickBar-B24TScw0.js → SavedBlocksPickBar-CpWkCa8G.js} +2 -2
  30. package/dist/{TemplateSettings-CuN9Vkl_.js → TemplateSettings-BJ4a8RBr.js} +8 -8
  31. package/dist/{TestEmailModal-C4DAaohi.js → TestEmailModal-BEoapoDc.js} +8 -8
  32. package/dist/{TestEmailPanel-DoMcVJSE.js → TestEmailPanel-DgyzokCf.js} +1 -1
  33. package/dist/{TitleEditor-b5Pr_m9j.js → TitleEditor-BQoSPgOi.js} +9 -9
  34. package/dist/{Toolbar-BOf7Y862.js → Toolbar-KhPpWyX1.js} +857 -756
  35. package/dist/{TplModal-DAcXzBJh.js → TplModal-F_kA7luG.js} +1 -1
  36. package/dist/{VersionHistoryMenu-TbIGteNi.js → VersionHistoryMenu-Bz4G8cNm.js} +5 -5
  37. package/dist/{VersionHistoryPanels-Ia6ipOqG.js → VersionHistoryPanels-DmVRyWv9.js} +1 -1
  38. package/dist/{VersionPreviewBanner-CRfu6quf.js → VersionPreviewBanner-BeppXZyn.js} +1 -1
  39. package/dist/{WrapperBlock-BZenrXM6.js → WrapperBlock-Ds7yfbhg.js} +3 -3
  40. package/dist/{blockTypeIcons-DdYZy8yG.js → blockTypeIcons-Do1QqDjg.js} +3 -3
  41. package/dist/bundle-stats.json +6 -6
  42. package/dist/{cdn/chunks/ca-YfIxwO1G.js → ca-Ce3NmK9v.js} +6 -3
  43. package/dist/cdn/chunks/{AiAltTextPopover-CcX_OMUU.js → AiAltTextPopover-CUzIaLRK.js} +2 -2
  44. package/dist/cdn/chunks/AiAltTextPopover-CUzIaLRK.js.map +1 -0
  45. package/dist/cdn/chunks/{AiAltTextReview-Dmm3h0jd.js → AiAltTextReview-BXBlE71X.js} +2 -2
  46. package/dist/cdn/chunks/AiAltTextReview-BXBlE71X.js.map +1 -0
  47. package/dist/cdn/chunks/{AiChatPanel-DV23DJ-2.js → AiChatPanel-BKydciDQ.js} +2 -2
  48. package/dist/cdn/chunks/AiChatPanel-BKydciDQ.js.map +1 -0
  49. package/dist/cdn/chunks/{AiPanels-CxhOpMAp.js → AiPanels-De-cIZ4p.js} +2 -2
  50. package/dist/cdn/chunks/AiPanels-De-cIZ4p.js.map +1 -0
  51. package/dist/cdn/chunks/{AiRewriteMenu-87-O514r.js → AiRewriteMenu-C9vBUTIB.js} +6 -6
  52. package/dist/cdn/chunks/AiRewriteMenu-C9vBUTIB.js.map +1 -0
  53. package/dist/cdn/chunks/{BlockIssueBadge-Dp06vQd3.js → BlockIssueBadge-B3CTTvgw.js} +2 -2
  54. package/dist/cdn/chunks/BlockIssueBadge-B3CTTvgw.js.map +1 -0
  55. package/dist/cdn/chunks/{BlockPreviewCanvas-DQGzUvZ5.js → BlockPreviewCanvas-B4Bj--kc.js} +20 -45
  56. package/dist/cdn/chunks/BlockPreviewCanvas-B4Bj--kc.js.map +1 -0
  57. package/dist/cdn/chunks/CloudHeaderExtras-Cd-ePldd.js.map +1 -1
  58. package/dist/cdn/chunks/{CloudPanels-D8fchoYt.js → CloudPanels-CQ75I3hQ.js} +3 -3
  59. package/dist/cdn/chunks/CloudPanels-CQ75I3hQ.js.map +1 -0
  60. package/dist/cdn/chunks/{CollaborationNotices-DNEs3g9B.js → CollaborationNotices-CgLea-hu.js} +2 -2
  61. package/dist/cdn/chunks/CollaborationNotices-CgLea-hu.js.map +1 -0
  62. package/dist/cdn/chunks/{CollaboratorBar-CN6XAlbn.js → CollaboratorBar-CjRcbebT.js} +2 -2
  63. package/dist/cdn/chunks/CollaboratorBar-CjRcbebT.js.map +1 -0
  64. package/dist/cdn/chunks/{CommentsPanel-CxZ1kFcK.js → CommentsPanel-D_ud9GMN.js} +2 -2
  65. package/dist/cdn/chunks/CommentsPanel-D_ud9GMN.js.map +1 -0
  66. package/dist/cdn/chunks/{CommentsSidebar-DCr2mV8b.js → CommentsSidebar-CXn1EGAI.js} +2 -2
  67. package/dist/cdn/chunks/CommentsSidebar-CXn1EGAI.js.map +1 -0
  68. package/dist/cdn/chunks/CountdownBlock--hlKE2aj.js.map +1 -1
  69. package/dist/cdn/chunks/{CountdownToolbar-CUTbVPPV.js → CountdownToolbar-BOyk_4k7.js} +5 -5
  70. package/dist/cdn/chunks/CountdownToolbar-BOyk_4k7.js.map +1 -0
  71. package/dist/cdn/chunks/{IssuesPanel-BhcSzwuL.js → IssuesPanel-DOC94ZsH.js} +4 -4
  72. package/dist/cdn/chunks/IssuesPanel-DOC94ZsH.js.map +1 -0
  73. package/dist/cdn/chunks/{LanguageMenu-6wGhkyFT.js → LanguageMenu-DktneIpL.js} +7 -7
  74. package/dist/cdn/chunks/LanguageMenu-DktneIpL.js.map +1 -0
  75. package/dist/cdn/chunks/{LocaleNotices-Br92Xueo.js → LocaleNotices-B2NgnHoP.js} +2 -2
  76. package/dist/cdn/chunks/LocaleNotices-B2NgnHoP.js.map +1 -0
  77. package/dist/cdn/chunks/{LogicTagInsertButton-r2EVUtDU.js → LogicTagInsertButton-CQ8RiOou.js} +5 -5
  78. package/dist/cdn/chunks/LogicTagInsertButton-CQ8RiOou.js.map +1 -0
  79. package/dist/cdn/chunks/{MediaEditModal-CfgN7Jyi.js → MediaEditModal-Cs7_Om7e.js} +2 -2
  80. package/dist/cdn/chunks/MediaEditModal-Cs7_Om7e.js.map +1 -0
  81. package/dist/cdn/chunks/{MediaPanels-Cb5vsgb-.js → MediaPanels-BeekGmql.js} +2 -2
  82. package/dist/cdn/chunks/MediaPanels-BeekGmql.js.map +1 -0
  83. package/dist/cdn/chunks/{MergeTagInput-Dh3N6CEV.js → MergeTagInput-D7FZ0ca0.js} +2 -2
  84. package/dist/cdn/chunks/MergeTagInput-D7FZ0ca0.js.map +1 -0
  85. package/dist/cdn/chunks/{MergeTagModeToggle-D6u3hMrI.js → MergeTagModeToggle-CySCCEDs.js} +3 -3
  86. package/dist/cdn/chunks/MergeTagModeToggle-CySCCEDs.js.map +1 -0
  87. package/dist/cdn/chunks/{MergeTagTextarea-BpVtpiNL.js → MergeTagTextarea-DJbWTYVH.js} +7 -7
  88. package/dist/cdn/chunks/MergeTagTextarea-DJbWTYVH.js.map +1 -0
  89. package/dist/cdn/chunks/{ParagraphEditor-DGJmPAC1.js → ParagraphEditor-DAQUWqQJ.js} +23 -23
  90. package/dist/cdn/chunks/ParagraphEditor-DAQUWqQJ.js.map +1 -0
  91. package/dist/cdn/chunks/{RestoreVersionDialog-D5qeCa0F.js → RestoreVersionDialog-COTRe_rM.js} +3 -3
  92. package/dist/cdn/chunks/RestoreVersionDialog-COTRe_rM.js.map +1 -0
  93. package/dist/cdn/chunks/{RichTextEditorContent-DyGiXKKI.js → RichTextEditorContent-DeWPMd9V.js} +4 -4
  94. package/dist/cdn/chunks/RichTextEditorContent-DeWPMd9V.js.map +1 -0
  95. package/dist/cdn/chunks/{SaveBlockDialog-B0TJYxd8.js → SaveBlockDialog-adQMbKR1.js} +6 -6
  96. package/dist/cdn/chunks/SaveBlockDialog-adQMbKR1.js.map +1 -0
  97. package/dist/cdn/chunks/{SavedBlocksBrowserModal-D8Ly7LrA.js → SavedBlocksBrowserModal-CGIFCRAx.js} +6 -6
  98. package/dist/cdn/chunks/SavedBlocksBrowserModal-CGIFCRAx.js.map +1 -0
  99. package/dist/cdn/chunks/{SavedBlocksPanels-Co1cbWR8.js → SavedBlocksPanels-Du0RYlEf.js} +2 -2
  100. package/dist/cdn/chunks/SavedBlocksPanels-Du0RYlEf.js.map +1 -0
  101. package/dist/cdn/chunks/{SavedBlocksPickBar-DNtVbpm-.js → SavedBlocksPickBar-DmleyUrn.js} +3 -3
  102. package/dist/cdn/chunks/SavedBlocksPickBar-DmleyUrn.js.map +1 -0
  103. package/dist/cdn/chunks/{TemplateSettings-BRc878ZF.js → TemplateSettings-Csjef99q.js} +6 -6
  104. package/dist/cdn/chunks/TemplateSettings-Csjef99q.js.map +1 -0
  105. package/dist/cdn/chunks/{TestEmailModal-CIui7VfS.js → TestEmailModal-ClkexOtF.js} +7 -7
  106. package/dist/cdn/chunks/TestEmailModal-ClkexOtF.js.map +1 -0
  107. package/dist/cdn/chunks/{TestEmailPanel-vKvruW_r.js → TestEmailPanel-DYEYzhU2.js} +2 -2
  108. package/dist/cdn/chunks/TestEmailPanel-DYEYzhU2.js.map +1 -0
  109. package/dist/cdn/chunks/{TitleEditor-BI-9Nnj3.js → TitleEditor-opvaIgVr.js} +8 -8
  110. package/dist/cdn/chunks/TitleEditor-opvaIgVr.js.map +1 -0
  111. package/dist/cdn/chunks/ToggleSwitch-C0w0srN_.js.map +1 -1
  112. package/dist/cdn/chunks/{Toolbar-CYnnArxv.js → Toolbar-DbqkKRXy.js} +771 -670
  113. package/dist/cdn/chunks/Toolbar-DbqkKRXy.js.map +1 -0
  114. package/dist/cdn/chunks/{TplModal-B3nZeGWK.js → TplModal-DLV5OeMD.js} +2 -2
  115. package/dist/cdn/chunks/TplModal-DLV5OeMD.js.map +1 -0
  116. package/dist/cdn/chunks/{VersionHistoryMenu-CMGfAKuV.js → VersionHistoryMenu-DBd0zwjE.js} +2 -2
  117. package/dist/cdn/chunks/VersionHistoryMenu-DBd0zwjE.js.map +1 -0
  118. package/dist/cdn/chunks/{VersionHistoryPanels-Bb2ouQg7.js → VersionHistoryPanels-hy_Ybxie.js} +2 -2
  119. package/dist/cdn/chunks/VersionHistoryPanels-hy_Ybxie.js.map +1 -0
  120. package/dist/cdn/chunks/{VersionPreviewBanner-573UP-g4.js → VersionPreviewBanner-D-yHxWWY.js} +2 -2
  121. package/dist/cdn/chunks/VersionPreviewBanner-D-yHxWWY.js.map +1 -0
  122. package/dist/cdn/chunks/{WrapperBlock-DVu632LD.js → WrapperBlock-Ce_k8m_x.js} +4 -4
  123. package/dist/cdn/chunks/WrapperBlock-Ce_k8m_x.js.map +1 -0
  124. package/dist/cdn/chunks/{blockTypeIcons-CGxNYHVA.js → blockTypeIcons-DBoP1HkR.js} +2 -2
  125. package/dist/cdn/chunks/{blockTypeIcons-CGxNYHVA.js.map → blockTypeIcons-DBoP1HkR.js.map} +1 -1
  126. package/dist/{ca-YfIxwO1G.js → cdn/chunks/ca-Ce3NmK9v.js} +8 -1
  127. package/dist/cdn/chunks/ca-Ce3NmK9v.js.map +1 -0
  128. package/dist/cdn/chunks/{composables-DY3anqHO.js → composables-Brr4m0Sg.js} +566 -591
  129. package/dist/cdn/chunks/composables-Brr4m0Sg.js.map +1 -0
  130. package/dist/cdn/chunks/{createCloudRuntime-B5numxlW.js → createCloudRuntime-QPeg45XL.js} +3 -3
  131. package/dist/cdn/chunks/{createCloudRuntime-B5numxlW.js.map → createCloudRuntime-QPeg45XL.js.map} +1 -1
  132. package/dist/cdn/chunks/{da-CM6DCvRG.js → da-4YwDAuEr.js} +7 -2
  133. package/dist/cdn/chunks/da-4YwDAuEr.js.map +1 -0
  134. package/dist/{de-Dugz1zXC.js → cdn/chunks/de-BlQ0vdZJ.js} +8 -1
  135. package/dist/cdn/chunks/de-BlQ0vdZJ.js.map +1 -0
  136. package/dist/cdn/chunks/{editor-modal-CXSSZplR.js → editor-modal-BCcbvIxc.js} +4 -4
  137. package/dist/cdn/chunks/editor-modal-BCcbvIxc.js.map +1 -0
  138. package/dist/cdn/chunks/en-DkulseE1.js +1 -0
  139. package/dist/{en-BykoFuFY.js → cdn/chunks/en-MlNeQVSG.js} +8 -1
  140. package/dist/cdn/chunks/en-MlNeQVSG.js.map +1 -0
  141. package/dist/{es-DaWsTkpj.js → cdn/chunks/es-2s8x4OM2.js} +8 -1
  142. package/dist/cdn/chunks/es-2s8x4OM2.js.map +1 -0
  143. package/dist/cdn/chunks/{extensions-BWVlr8Ga.js → extensions-BpuyqKVY.js} +5 -5
  144. package/dist/cdn/chunks/extensions-BpuyqKVY.js.map +1 -0
  145. package/dist/{fr-DqwQHtJo.js → cdn/chunks/fr-D3MjrsgQ.js} +8 -1
  146. package/dist/cdn/chunks/fr-D3MjrsgQ.js.map +1 -0
  147. package/dist/cdn/chunks/{icons-C7vjUBLn.js → icons-BJ6AtVgu.js} +23 -23
  148. package/dist/cdn/chunks/{icons-C7vjUBLn.js.map → icons-BJ6AtVgu.js.map} +1 -1
  149. package/dist/cdn/chunks/{ja-BH4MS1Ye.js → ja-B4Kx7uBX.js} +7 -2
  150. package/dist/cdn/chunks/ja-B4Kx7uBX.js.map +1 -0
  151. package/dist/{nl-BQl1_UHv.js → cdn/chunks/nl-U65iX7wN.js} +8 -1
  152. package/dist/cdn/chunks/nl-U65iX7wN.js.map +1 -0
  153. package/dist/cdn/chunks/{normalizeMergeTagMarkup-Dw3rFvyd.js → normalizeMergeTagMarkup-B81BAWKT.js} +64 -64
  154. package/dist/cdn/chunks/{normalizeMergeTagMarkup-Dw3rFvyd.js.map → normalizeMergeTagMarkup-B81BAWKT.js.map} +1 -1
  155. package/dist/cdn/chunks/{preRenderCustomBlocks-BGtb8Xbp.js → preRenderCustomBlocks-CQuaMxuv.js} +2 -2
  156. package/dist/cdn/chunks/{preRenderCustomBlocks-BGtb8Xbp.js.map → preRenderCustomBlocks-CQuaMxuv.js.map} +1 -1
  157. package/dist/{pt-BR-eyzmU9Vs.js → cdn/chunks/pt-BR-_jsX1xLv.js} +8 -1
  158. package/dist/cdn/chunks/pt-BR-_jsX1xLv.js.map +1 -0
  159. package/dist/cdn/chunks/{sanitizeHtml-CLRY8s2s.js → sanitizeHtml-BdAjvU9I.js} +2 -2
  160. package/dist/cdn/chunks/{sanitizeHtml-CLRY8s2s.js.map → sanitizeHtml-BdAjvU9I.js.map} +1 -1
  161. package/dist/cdn/chunks/{socialIcons-kYhdXJ9P.js → socialIcons-Df9dNe7I.js} +495 -517
  162. package/dist/cdn/chunks/socialIcons-Df9dNe7I.js.map +1 -0
  163. package/dist/cdn/chunks/{src-BmzzkUf7.js → src-B3v_3j9b.js} +436 -404
  164. package/dist/cdn/chunks/src-B3v_3j9b.js.map +1 -0
  165. package/dist/cdn/chunks/{src-DY2kMjoD.js → src-BHgVGOTi.js} +771 -667
  166. package/dist/cdn/chunks/src-BHgVGOTi.js.map +1 -0
  167. package/dist/cdn/chunks/src-C5V_yzAU.js +673 -0
  168. package/dist/cdn/chunks/src-C5V_yzAU.js.map +1 -0
  169. package/dist/cdn/chunks/{tiptap-B7gxx0aJ.js → tiptap-D9amDW4u.js} +1030 -1027
  170. package/dist/cdn/chunks/tiptap-D9amDW4u.js.map +1 -0
  171. package/dist/cdn/chunks/useLocalizedDisplay-C3lIetmX.js +33 -0
  172. package/dist/cdn/chunks/{useLocalizedDisplay-B5wMJLru.js.map → useLocalizedDisplay-C3lIetmX.js.map} +1 -1
  173. package/dist/cdn/chunks/{useLogicTag-0wkSxy3z.js → useLogicTag-DOIlsGk8.js} +2 -2
  174. package/dist/cdn/chunks/{useLogicTag-0wkSxy3z.js.map → useLogicTag-DOIlsGk8.js.map} +1 -1
  175. package/dist/cdn/chunks/{useMergeTag-y3bX8M_6.js → useMergeTag-DUNl364g.js} +2 -2
  176. package/dist/cdn/chunks/{useMergeTag-y3bX8M_6.js.map → useMergeTag-DUNl364g.js.map} +1 -1
  177. package/dist/cdn/chunks/{withCurrentFont-B42BKo9N.js → withCurrentFont-ufGLu2Vt.js} +2 -2
  178. package/dist/cdn/chunks/{withCurrentFont-B42BKo9N.js.map → withCurrentFont-ufGLu2Vt.js.map} +1 -1
  179. package/dist/cdn/editor.js +109 -109
  180. package/dist/cdn/editor.js.map +1 -1
  181. package/dist/{check-ErKdPXG6.js → check-CWq6Nfjj.js} +1 -1
  182. package/dist/{chevron-down-C_vv5fZE.js → chevron-down-B9t0SK_-.js} +1 -1
  183. package/dist/{chevron-right-Cw4GpjFA.js → chevron-right-B_qslOCS.js} +1 -1
  184. package/dist/{chevron-up-uijYZoph.js → chevron-up-CxZ2teV2.js} +1 -1
  185. package/dist/{circle-exclamation-point-CIYHx5Tw.js → circle-exclamation-point-B1tbhkNb.js} +1 -1
  186. package/dist/{clock-tnC1IvZk.js → clock-Rw4btQn-.js} +1 -1
  187. package/dist/{composables-CFTH0Nqb.js → composables-5KJV0O9T.js} +914 -939
  188. package/dist/{createCloudRuntime-BvWlm_38.js → createCloudRuntime-BdoKeYJi.js} +2 -2
  189. package/dist/{createLucideIcon-CssArtUe.js → createLucideIcon-B6Zkn9r0.js} +5 -5
  190. package/dist/{da-CM6DCvRG.js → da-4YwDAuEr.js} +6 -1
  191. package/dist/{cdn/chunks/de-Dugz1zXC.js → de-BlQ0vdZJ.js} +6 -3
  192. package/dist/dist-AyAOL8Bj.js +4 -0
  193. package/dist/{dist-BTUMr4Pb.js → dist-BNrGwgev.js} +2 -2
  194. package/dist/{dist-CsplpC_6.js → dist-BPVNNdTv.js} +2 -2
  195. package/dist/{dist-bWIkrMkM.js → dist-C7YLw60i.js} +2 -2
  196. package/dist/{dist-Clfx1JeL.js → dist-CBnAqr27.js} +2 -2
  197. package/dist/{dist-CkHJRChP.js → dist-COvAA64n.js} +2 -2
  198. package/dist/{dist-C-NRkFsp.js → dist-CuRjmtWu.js} +5 -5
  199. package/dist/{dist-HKEDfp__.js → dist-DG_AWt8v.js} +2 -2
  200. package/dist/{dist-DY3WbyCO.js → dist-DYtuc3jc.js} +2 -2
  201. package/dist/dist-DkPTWQuO.js +4 -0
  202. package/dist/{dist-DwpKFWF4.js → dist-DoWk1r7z.js} +77 -74
  203. package/dist/{dist-CMo4K5So.js → dist-DsA7NeIy.js} +798 -696
  204. package/dist/{dist-BlrlMP8f.js → dist-fDsB6dCL.js} +2 -2
  205. package/dist/{editor-modal-BWvxfSj8.js → editor-modal-_ylhrf4g.js} +15 -15
  206. package/dist/en-DwxgN_-Y.js +1 -0
  207. package/dist/{cdn/chunks/en-BykoFuFY.js → en-MlNeQVSG.js} +6 -3
  208. package/dist/{cdn/chunks/es-DaWsTkpj.js → es-2s8x4OM2.js} +6 -3
  209. package/dist/{extensions-BPVackEE.js → extensions-DCJGAZ9z.js} +73 -73
  210. package/dist/{eye-DK4--qHk.js → eye-BE-DeEqG.js} +1 -1
  211. package/dist/{cdn/chunks/fr-DqwQHtJo.js → fr-D3MjrsgQ.js} +6 -3
  212. package/dist/{image-B5pJOw5Q.js → image-DfRxUmUh.js} +1 -1
  213. package/dist/index.d.ts +37 -7
  214. package/dist/{info-DKM0_thN.js → info-D1PS-81D.js} +1 -1
  215. package/dist/{ja-BH4MS1Ye.js → ja-B4Kx7uBX.js} +6 -1
  216. package/dist/{link-BNgTZ_Sw.js → link-DLaACaIz.js} +1 -1
  217. package/dist/{list-Bqynqm7o.js → list-CvtzVlvM.js} +1 -1
  218. package/dist/{loader-circle-BMc3fVpa.js → loader-circle-DCkSXApP.js} +1 -1
  219. package/dist/{message-circle-D_TpvAJh.js → message-circle-Bj4F9bBO.js} +1 -1
  220. package/dist/{cdn/chunks/nl-BQl1_UHv.js → nl-U65iX7wN.js} +6 -3
  221. package/dist/{normalizeMergeTagMarkup-PQqrbfmt.js → normalizeMergeTagMarkup-B7n_-4Dz.js} +45 -45
  222. package/dist/{package-D2fov5PU.js → package-By1au8Wi.js} +1 -1
  223. package/dist/{pencil-BNdkJyfY.js → pencil-T4qqyRLl.js} +1 -1
  224. package/dist/{plus-CWmBmMx-.js → plus-3Zry-1gs.js} +1 -1
  225. package/dist/{preRenderCustomBlocks-Dg5GBNi2.js → preRenderCustomBlocks-D3GzENVB.js} +3 -3
  226. package/dist/{cdn/chunks/pt-BR-eyzmU9Vs.js → pt-BR-_jsX1xLv.js} +6 -3
  227. package/dist/{refresh-cw-Ryg1j66N.js → refresh-cw-BwaO0ioc.js} +1 -1
  228. package/dist/{rotate-ccw-D8j7gXXv.js → rotate-ccw-C3E0W5q-.js} +1 -1
  229. package/dist/{sanitizeHtml-DVdfdxOz.js → sanitizeHtml-BcbjlypU.js} +6 -6
  230. package/dist/{search-CX2JkSHz.js → search-DfExisVv.js} +1 -1
  231. package/dist/{send-BLR1b-p5.js → send-FRC7Giap.js} +1 -1
  232. package/dist/{smartphone-Co8m0LLg.js → smartphone-BlYU_z_x.js} +1 -1
  233. package/dist/{socialIcons-DBHv_ntg.js → socialIcons-By2LPWOQ.js} +561 -583
  234. package/dist/{sparkles-Dc3Undp5.js → sparkles-DSi61skE.js} +1 -1
  235. package/dist/{square-CPw_cyX8.js → square-DEE8tT2w.js} +1 -1
  236. package/dist/templatical-editor.js +139 -139
  237. package/dist/{text-align-start-2VZGhCiK.js → text-align-start-DGdrmKcG.js} +1 -1
  238. package/dist/{trash-t6XXliVc.js → trash-YZPJMZc7.js} +1 -1
  239. package/dist/{triangle-exclamation-point-_YYWE2ZH.js → triangle-exclamation-point-BR-W6pQm.js} +1 -1
  240. package/dist/{upload-BWYXWYHb.js → upload-B_Eoqj-4.js} +1 -1
  241. package/dist/useLocalizedDisplay-_P6-hXaO.js +31 -0
  242. package/dist/{useLogicTag-CVOj0VUv.js → useLogicTag-f0SJ1Cd2.js} +1 -1
  243. package/dist/{useMergeTag-Bams_kam.js → useMergeTag-0-EudwkV.js} +3 -3
  244. package/dist/{useScrollToBlock-CwUQ_nKz.js → useScrollToBlock-CtM_ydOS.js} +1 -1
  245. package/dist/withCurrentFont-BOg3jmCT.js +18 -0
  246. package/dist/{x-CTKOxIyZ.js → x-C0X5MoK3.js} +1 -1
  247. package/package.json +22 -22
  248. package/dist/cdn/chunks/AiAltTextPopover-CcX_OMUU.js.map +0 -1
  249. package/dist/cdn/chunks/AiAltTextReview-Dmm3h0jd.js.map +0 -1
  250. package/dist/cdn/chunks/AiChatPanel-DV23DJ-2.js.map +0 -1
  251. package/dist/cdn/chunks/AiPanels-CxhOpMAp.js.map +0 -1
  252. package/dist/cdn/chunks/AiRewriteMenu-87-O514r.js.map +0 -1
  253. package/dist/cdn/chunks/BlockIssueBadge-Dp06vQd3.js.map +0 -1
  254. package/dist/cdn/chunks/BlockPreviewCanvas-DQGzUvZ5.js.map +0 -1
  255. package/dist/cdn/chunks/CloudPanels-D8fchoYt.js.map +0 -1
  256. package/dist/cdn/chunks/CollaborationNotices-DNEs3g9B.js.map +0 -1
  257. package/dist/cdn/chunks/CollaboratorBar-CN6XAlbn.js.map +0 -1
  258. package/dist/cdn/chunks/CommentsPanel-CxZ1kFcK.js.map +0 -1
  259. package/dist/cdn/chunks/CommentsSidebar-DCr2mV8b.js.map +0 -1
  260. package/dist/cdn/chunks/CountdownToolbar-CUTbVPPV.js.map +0 -1
  261. package/dist/cdn/chunks/IssuesPanel-BhcSzwuL.js.map +0 -1
  262. package/dist/cdn/chunks/LanguageMenu-6wGhkyFT.js.map +0 -1
  263. package/dist/cdn/chunks/LocaleNotices-Br92Xueo.js.map +0 -1
  264. package/dist/cdn/chunks/LogicTagInsertButton-r2EVUtDU.js.map +0 -1
  265. package/dist/cdn/chunks/MediaEditModal-CfgN7Jyi.js.map +0 -1
  266. package/dist/cdn/chunks/MediaPanels-Cb5vsgb-.js.map +0 -1
  267. package/dist/cdn/chunks/MergeTagInput-Dh3N6CEV.js.map +0 -1
  268. package/dist/cdn/chunks/MergeTagModeToggle-D6u3hMrI.js.map +0 -1
  269. package/dist/cdn/chunks/MergeTagTextarea-BpVtpiNL.js.map +0 -1
  270. package/dist/cdn/chunks/ParagraphEditor-DGJmPAC1.js.map +0 -1
  271. package/dist/cdn/chunks/RestoreVersionDialog-D5qeCa0F.js.map +0 -1
  272. package/dist/cdn/chunks/RichTextEditorContent-DyGiXKKI.js.map +0 -1
  273. package/dist/cdn/chunks/SaveBlockDialog-B0TJYxd8.js.map +0 -1
  274. package/dist/cdn/chunks/SavedBlocksBrowserModal-D8Ly7LrA.js.map +0 -1
  275. package/dist/cdn/chunks/SavedBlocksPanels-Co1cbWR8.js.map +0 -1
  276. package/dist/cdn/chunks/SavedBlocksPickBar-DNtVbpm-.js.map +0 -1
  277. package/dist/cdn/chunks/TemplateSettings-BRc878ZF.js.map +0 -1
  278. package/dist/cdn/chunks/TestEmailModal-CIui7VfS.js.map +0 -1
  279. package/dist/cdn/chunks/TestEmailPanel-vKvruW_r.js.map +0 -1
  280. package/dist/cdn/chunks/TitleEditor-BI-9Nnj3.js.map +0 -1
  281. package/dist/cdn/chunks/Toolbar-CYnnArxv.js.map +0 -1
  282. package/dist/cdn/chunks/TplModal-B3nZeGWK.js.map +0 -1
  283. package/dist/cdn/chunks/VersionHistoryMenu-CMGfAKuV.js.map +0 -1
  284. package/dist/cdn/chunks/VersionHistoryPanels-Bb2ouQg7.js.map +0 -1
  285. package/dist/cdn/chunks/VersionPreviewBanner-573UP-g4.js.map +0 -1
  286. package/dist/cdn/chunks/WrapperBlock-DVu632LD.js.map +0 -1
  287. package/dist/cdn/chunks/ca-YfIxwO1G.js.map +0 -1
  288. package/dist/cdn/chunks/composables-DY3anqHO.js.map +0 -1
  289. package/dist/cdn/chunks/da-CM6DCvRG.js.map +0 -1
  290. package/dist/cdn/chunks/de-Dugz1zXC.js.map +0 -1
  291. package/dist/cdn/chunks/editor-modal-CXSSZplR.js.map +0 -1
  292. package/dist/cdn/chunks/en-BykoFuFY.js.map +0 -1
  293. package/dist/cdn/chunks/en-DYMYt1TN.js +0 -1
  294. package/dist/cdn/chunks/es-DaWsTkpj.js.map +0 -1
  295. package/dist/cdn/chunks/extensions-BWVlr8Ga.js.map +0 -1
  296. package/dist/cdn/chunks/fr-DqwQHtJo.js.map +0 -1
  297. package/dist/cdn/chunks/ja-BH4MS1Ye.js.map +0 -1
  298. package/dist/cdn/chunks/nl-BQl1_UHv.js.map +0 -1
  299. package/dist/cdn/chunks/pt-BR-eyzmU9Vs.js.map +0 -1
  300. package/dist/cdn/chunks/socialIcons-kYhdXJ9P.js.map +0 -1
  301. package/dist/cdn/chunks/src-B7X7x_ST.js +0 -707
  302. package/dist/cdn/chunks/src-B7X7x_ST.js.map +0 -1
  303. package/dist/cdn/chunks/src-BmzzkUf7.js.map +0 -1
  304. package/dist/cdn/chunks/src-DY2kMjoD.js.map +0 -1
  305. package/dist/cdn/chunks/tiptap-B7gxx0aJ.js.map +0 -1
  306. package/dist/cdn/chunks/useLocalizedDisplay-B5wMJLru.js +0 -33
  307. package/dist/dist-CkIeJEsa.js +0 -4
  308. package/dist/dist-eAgG-nCb.js +0 -4
  309. package/dist/en-DvCaYqiR.js +0 -1
  310. package/dist/useLocalizedDisplay-CbFM0cCV.js +0 -31
  311. package/dist/withCurrentFont-y0O5kOLW.js +0 -18
@@ -4,39 +4,39 @@ import { A as s, B as c, D as l, F as u, Ft as d, H as f, L as p, M as m, Mt as
4
4
  import { t as se } from "./useEditorRoot-DWfC2CVC.js";
5
5
  import { t as ce } from "./useI18n-Cx9W7OWb.js";
6
6
  import "./useCloudI18n-BnuOL1YS.js";
7
- import { t as V } from "./useMergeTag-Bams_kam.js";
7
+ import { t as V } from "./useMergeTag-0-EudwkV.js";
8
8
  import { _ as le, h as ue, v as de, y as fe } from "./dist-A328tG0Z.js";
9
- import { $ as pe, $t as me, At as he, B as ge, Bt as _e, Ct as ve, F as ye, Gt as be, H as xe, Ht as Se, I as Ce, J as we, Jt as Te, Kt as Ee, L as De, Mt as Oe, N as ke, P as Ae, Pt as je, Qt as Me, S as Ne, St as Pe, U as Fe, Ut as Ie, V as Le, Vt as Re, W as ze, Wt as Be, X as Ve, Xt as He, Y as Ue, Yt as We, Z as Ge, Zt as Ke, _ as qe, a as Je, an as Ye, at as Xe, b as Ze, c as Qe, dt as $e, en as et, ft as tt, gt as nt, ht as rt, in as it, it as at, j as ot, l as st, lt as ct, m as lt, nn as ut, on as dt, ot as ft, p as pt, pt as mt, q as ht, qt as gt, rn as _t, s as vt, st as yt, tt as bt, un as xt, xt as St, y as Ct, yt as wt, z as Tt, zt as Et } from "./dist-CMo4K5So.js";
10
- import { t as Dt } from "./logger-BOu7oEtk.js";
11
- import { a as Ot, c as kt, i as At, n as jt, o as Mt, t as Nt } from "./usePopoverPosition-DF0ZYH7g.js";
12
- import { n as Pt } from "./useLocalizedDisplay-CbFM0cCV.js";
13
- import { $ as Ft, A as It, B as Lt, C as Rt, D as zt, F as Bt, G as Vt, H as Ht, I as Ut, J as Wt, K as Gt, L as Kt, M as qt, N as Jt, O as Yt, P as Xt, R as Zt, S as Qt, T as $t, U as en, V as tn, W as nn, X as rn, Y as an, Z as on, _ as sn, a as cn, at as ln, b as un, c as dn, ct as fn, d as pn, et as mn, g as hn, h as gn, i as _n, it as vn, j as yn, k as bn, l as xn, lt as Sn, m as Cn, nt as wn, ot as Tn, p as En, q as Dn, r as On, rt as kn, s as An, st as jn, u as Mn, ut as Nn, v as Pn, w as Fn, x as In, y as Ln, z as Rn } from "./keys-B4DimcgX.js";
14
- import { t as zn } from "./useLogicTag-CVOj0VUv.js";
15
- import { B as Bn, C as Vn, D as Hn, E as Un, F as Wn, H as Gn, O as Kn, P as qn, T as Jn, U as Yn, _ as Xn, a as Zn, f as Qn, h as $n, k as er, n as tr, o as nr, t as rr, u as ir, v as ar, w as or, x as sr, y as cr, z as lr } from "./socialIcons-DBHv_ntg.js";
16
- import { r as ur, t as dr } from "./templateSettingsFields-cjlP-jdw.js";
17
- import { i as fr, r as pr, t as mr } from "./sanitizeHtml-DVdfdxOz.js";
18
- import { t as hr } from "./createLucideIcon-CssArtUe.js";
19
- import { t as gr } from "./LoadingTrack-c4SeD16s.js";
20
- import { t as _r } from "./triangle-exclamation-point-_YYWE2ZH.js";
21
- import { t as vr } from "./image-B5pJOw5Q.js";
22
- import { t as yr } from "./clock-tnC1IvZk.js";
23
- import { t as br } from "./pencil-BNdkJyfY.js";
24
- import { t as xr } from "./languageName-DEEOhDWI.js";
25
- import { t as Sr } from "./plural-CyxrJXL1.js";
26
- import { m as Cr, w as wr, x as Tr } from "./styleConstants-Br6CIRoS.js";
27
- import { t as Er } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
28
- import { n as Dr } from "./upload-BWYXWYHb.js";
29
- import { t as Or } from "./message-circle-D_TpvAJh.js";
30
- import { t as kr } from "./trash-t6XXliVc.js";
31
- import { t as Ar } from "./readableTextColor-BfZUGnVj.js";
32
- var jr = hr({
9
+ import { $ as pe, B as me, Bt as he, C as ge, Et as _e, Ft as ve, G as ye, Gt as be, H as xe, I as Se, Jt as Ce, K as we, Kt as Te, L as Ee, Lt as De, Nt as Oe, P as ke, Q as Ae, Qt as je, R as Me, St as Ne, Tt as Pe, U as Fe, Ut as Ie, W as Le, Wt as Re, X as ze, Xt as Be, Yt as Ve, Z as He, Zt as Ue, an as We, b as Ge, c as Ke, cn as qe, ct as Je, dn as Ye, en as Xe, et as Ze, fn as Qe, ft as $e, gn as et, gt as tt, h as nt, ht as rt, in as it, it as at, j as ot, l as st, ln as ct, lt, m as ut, mt as dt, nn as ft, nt as pt, on as mt, q as ht, qt as gt, rn as _t, st as vt, tn as yt, u as bt, un as xt, ut as St, v as Ct, vt as wt, wt as Tt, x as Et, yt as Dt, z as Ot } from "./dist-DsA7NeIy.js";
10
+ import { t as kt } from "./logger-BOu7oEtk.js";
11
+ import { a as At, c as jt, i as Mt, n as Nt, o as Pt, t as Ft } from "./usePopoverPosition-DF0ZYH7g.js";
12
+ import { n as It } from "./useLocalizedDisplay-_P6-hXaO.js";
13
+ import { $ as Lt, A as Rt, B as zt, C as Bt, D as Vt, F as Ht, G as Ut, H as Wt, I as Gt, J as Kt, K as qt, L as Jt, M as Yt, N as Xt, O as Zt, P as Qt, R as $t, S as en, T as tn, U as nn, V as rn, W as an, X as on, Y as sn, Z as cn, _ as ln, a as un, at as dn, b as fn, c as pn, ct as mn, d as hn, et as gn, g as _n, h as vn, i as yn, it as bn, j as xn, k as Sn, l as Cn, lt as wn, m as Tn, nt as En, ot as Dn, p as On, q as kn, r as An, rt as jn, s as Mn, st as Nn, u as Pn, ut as Fn, v as In, w as Ln, x as Rn, y as zn, z as Bn } from "./keys-B4DimcgX.js";
14
+ import { t as Vn } from "./useLogicTag-f0SJ1Cd2.js";
15
+ import { B as Hn, C as Un, D as Wn, E as Gn, F as Kn, H as qn, O as Jn, P as Yn, T as Xn, U as Zn, _ as Qn, a as $n, f as er, h as tr, k as nr, n as rr, o as ir, t as ar, u as or, v as sr, w as cr, x as lr, y as ur, z as dr } from "./socialIcons-By2LPWOQ.js";
16
+ import { r as fr, t as pr } from "./templateSettingsFields-cjlP-jdw.js";
17
+ import { i as mr, r as hr, t as gr } from "./sanitizeHtml-BcbjlypU.js";
18
+ import { t as _r } from "./createLucideIcon-B6Zkn9r0.js";
19
+ import { t as vr } from "./LoadingTrack-c4SeD16s.js";
20
+ import { t as yr } from "./triangle-exclamation-point-BR-W6pQm.js";
21
+ import { t as br } from "./image-DfRxUmUh.js";
22
+ import { t as xr } from "./clock-Rw4btQn-.js";
23
+ import { t as Sr } from "./pencil-T4qqyRLl.js";
24
+ import { t as Cr } from "./languageName-DEEOhDWI.js";
25
+ import { t as wr } from "./plural-CyxrJXL1.js";
26
+ import { m as Tr, w as Er, x as Dr } from "./styleConstants-Br6CIRoS.js";
27
+ import { t as Or } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
28
+ import { n as kr } from "./upload-B_Eoqj-4.js";
29
+ import { t as Ar } from "./message-circle-Bj4F9bBO.js";
30
+ import { t as jr } from "./trash-YZPJMZc7.js";
31
+ import { t as Mr } from "./readableTextColor-BfZUGnVj.js";
32
+ var Nr = _r({
33
33
  name: "bookmark",
34
34
  size: 24,
35
35
  node: [["path", {
36
36
  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",
37
37
  key: "oz39mx"
38
38
  }]]
39
- }), Mr = hr({
39
+ }), Pr = _r({
40
40
  name: "box",
41
41
  size: 24,
42
42
  node: [
@@ -53,7 +53,7 @@ var jr = hr({
53
53
  key: "d0xqtd"
54
54
  }]
55
55
  ]
56
- }), Nr = hr({
56
+ }), Fr = _r({
57
57
  name: "eye-off",
58
58
  size: 24,
59
59
  node: [
@@ -74,7 +74,7 @@ var jr = hr({
74
74
  key: "1ooewy"
75
75
  }]
76
76
  ]
77
- }), Pr = hr({
77
+ }), Ir = _r({
78
78
  name: "funnel",
79
79
  size: 24,
80
80
  node: [["path", {
@@ -82,7 +82,7 @@ var jr = hr({
82
82
  key: "sc7q7i"
83
83
  }]],
84
84
  aliases: ["filter"]
85
- }), Fr = hr({
85
+ }), Lr = _r({
86
86
  name: "grip-vertical",
87
87
  size: 24,
88
88
  node: [
@@ -123,14 +123,14 @@ var jr = hr({
123
123
  key: "f4zoj3"
124
124
  }]
125
125
  ]
126
- }), Ir = hr({
126
+ }), Rr = _r({
127
127
  name: "puzzle",
128
128
  size: 24,
129
129
  node: [["path", {
130
130
  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",
131
131
  key: "w46dr5"
132
132
  }]]
133
- }), Lr = hr({
133
+ }), zr = _r({
134
134
  name: "video",
135
135
  size: 24,
136
136
  node: [["path", {
@@ -144,11 +144,11 @@ var jr = hr({
144
144
  rx: "2",
145
145
  key: "158x01"
146
146
  }]]
147
- }), Rr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
148
- function zr(t, n) {
147
+ }), Br = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
148
+ function Vr(t, n) {
149
149
  let r = se(), i = null, a = null, o = null;
150
150
  function s() {
151
- return t.value ? Array.from(t.value.querySelectorAll(Rr)).filter((e) => e.offsetParent !== null) : [];
151
+ return t.value ? Array.from(t.value.querySelectorAll(Br)).filter((e) => e.offsetParent !== null) : [];
152
152
  }
153
153
  function l(e) {
154
154
  if (e.key !== "Tab") return;
@@ -177,7 +177,7 @@ function zr(t, n) {
177
177
  });
178
178
  }
179
179
  // src/composables/useEmoji.ts
180
- function Br() {
180
+ function Hr() {
181
181
  let [e, t] = de(!1), n = ie([]), r = !1;
182
182
  T(() => {
183
183
  r = !0;
@@ -202,7 +202,7 @@ function Br() {
202
202
  };
203
203
  }
204
204
  // src/composables/useBlockRegistry.ts
205
- function Vr() {
205
+ function Ur() {
206
206
  let e = ie(/* @__PURE__ */ new Map());
207
207
  function t(t, n) {
208
208
  e.value.set(t, n), ae(e);
@@ -210,7 +210,7 @@ function Vr() {
210
210
  function n(t, n) {
211
211
  let r = `custom:${t.type}`, i = {
212
212
  component: n,
213
- createBlock: () => Ce(t),
213
+ createBlock: () => Ot(t),
214
214
  definition: t
215
215
  };
216
216
  e.value.set(r, i), ae(e);
@@ -236,9 +236,9 @@ function Vr() {
236
236
  let t = a(e.customType);
237
237
  if (!t) return o("Block definition not found");
238
238
  try {
239
- return await De(await import("./liquid.browser-DUXEekoN.js")).parseAndRender(t.template, e.fieldValues);
239
+ return await me(await import("./liquid.browser-DUXEekoN.js")).parseAndRender(t.template, e.fieldValues);
240
240
  } catch (t) {
241
- return Dt.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
241
+ return kt.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
242
242
  }
243
243
  }
244
244
  function c(t) {
@@ -255,7 +255,7 @@ function Vr() {
255
255
  };
256
256
  }
257
257
  // src/composables/useFonts.ts
258
- var Hr = [
258
+ var Wr = [
259
259
  {
260
260
  value: "Arial",
261
261
  label: "Arial"
@@ -284,19 +284,19 @@ var Hr = [
284
284
  value: "Courier New",
285
285
  label: "Courier New"
286
286
  }
287
- ], Ur = "Arial, sans-serif";
288
- function Wr(e) {
289
- if (e === void 0 || e === !0) return [...Hr];
287
+ ], Gr = "Arial, sans-serif";
288
+ function Kr(e) {
289
+ if (e === void 0 || e === !0) return [...Wr];
290
290
  if (e === !1) return [];
291
291
  let t = [], n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
292
292
  for (let i of e) {
293
- let e = i.toLowerCase(), a = Hr.find((t) => t.value.toLowerCase() === e);
294
- a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), Dt.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${Hr.map((e) => e.value).join(", ")}.`));
293
+ let e = i.toLowerCase(), a = Wr.find((t) => t.value.toLowerCase() === e);
294
+ a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), kt.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${Wr.map((e) => e.value).join(", ")}.`));
295
295
  }
296
296
  return t;
297
297
  }
298
- function Gr(e) {
299
- let t = M(e?.customFonts ?? []), n = M(!1), r = Wr(e?.builtIns), i = k(() => e?.defaultFallback ?? Ur), a = k(() => {
298
+ function qr(e) {
299
+ let t = M(e?.customFonts ?? []), n = M(!1), r = Kr(e?.builtIns), i = k(() => e?.defaultFallback ?? Gr), a = k(() => {
300
300
  let e = [...r], n = t.value.map((e) => ({
301
301
  value: e.name,
302
302
  label: e.name,
@@ -307,18 +307,18 @@ function Gr(e) {
307
307
  function o(e) {
308
308
  return a.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
309
309
  }
310
- let s = e?.defaultFont ?? Ur.split(",")[0].trim();
311
- o(s) || Dt.warn(`config.fonts: new templates seed "${s}", 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.`);
310
+ let s = e?.defaultFont ?? Gr.split(",")[0].trim();
311
+ o(s) || kt.warn(`config.fonts: new templates seed "${s}", 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.`);
312
312
  function c() {
313
313
  if (e?.defaultFont && o(e.defaultFont)) {
314
314
  let t = a.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
315
315
  if (t) return t.value;
316
316
  }
317
- return Ur;
317
+ return Gr;
318
318
  }
319
319
  let l = k(() => c());
320
320
  function u(e) {
321
- return Ie(e, {
321
+ return gt(e, {
322
322
  customFonts: t.value,
323
323
  defaultFallback: i.value
324
324
  });
@@ -337,7 +337,7 @@ function Gr(e) {
337
337
  t.onload = () => n(), t.onerror = () => r(/* @__PURE__ */ Error(`Failed to load font: ${e.name}`)), document.head.appendChild(t);
338
338
  });
339
339
  } catch (t) {
340
- Dt.warn(`Failed to load custom font "${e.name}":`, t);
340
+ kt.warn(`Failed to load custom font "${e.name}":`, t);
341
341
  }
342
342
  });
343
343
  await Promise.allSettled(e), f || (n.value = !0);
@@ -361,7 +361,7 @@ function Gr(e) {
361
361
  };
362
362
  }
363
363
  // src/composables/useThemeStyles.ts
364
- var Kr = {
364
+ var Jr = {
365
365
  bg: "--tpl-bg",
366
366
  bgElevated: "--tpl-bg-elevated",
367
367
  bgHover: "--tpl-bg-hover",
@@ -385,10 +385,10 @@ var Kr = {
385
385
  dangerLight: "--tpl-danger-light",
386
386
  canvasBg: "--tpl-canvas-bg"
387
387
  };
388
- function qr({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
388
+ function Yr({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
389
389
  return { themeStyles: k(() => {
390
390
  let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
391
- if (a) for (let [e, t] of Object.entries(Kr)) {
391
+ if (a) for (let [e, t] of Object.entries(Jr)) {
392
392
  let n = a[e];
393
393
  n && (r[t] = n);
394
394
  }
@@ -396,12 +396,12 @@ function qr({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
396
396
  }) };
397
397
  }
398
398
  // src/utils/mergeTagNodeSpec.ts
399
- function Jr(e, t, n) {
400
- return St(e, n) ? {
399
+ function Xr(e, t, n) {
400
+ return Tt(e, n) ? {
401
401
  type: "logicMergeTagNode",
402
402
  attrs: {
403
403
  value: e,
404
- keyword: $e(e, n)
404
+ keyword: dt(e, n)
405
405
  }
406
406
  } : {
407
407
  type: "mergeTagNode",
@@ -412,32 +412,32 @@ function Jr(e, t, n) {
412
412
  };
413
413
  }
414
414
  // src/utils/insertLogicTag.ts
415
- function Yr(e) {
415
+ function Zr(e) {
416
416
  return "before" in e && "after" in e;
417
417
  }
418
- function Xr(e, t, n) {
419
- if (!Yr(t)) {
420
- e.chain().focus().insertContent(Jr(t.value, t.label, n)).run();
418
+ function Qr(e, t, n) {
419
+ if (!Zr(t)) {
420
+ e.chain().focus().insertContent(Xr(t.value, t.label, n)).run();
421
421
  return;
422
422
  }
423
- let r = Jr(t.before, t.label, n), i = Jr(t.after, t.label, n), { from: a, to: o } = e.state.selection;
423
+ let r = Xr(t.before, t.label, n), i = Xr(t.after, t.label, n), { from: a, to: o } = e.state.selection;
424
424
  a === o ? e.chain().focus().insertContentAt(a, [r, i]).setTextSelection(a + 1).run() : e.chain().focus().insertContentAt(o, i).insertContentAt(a, r).run();
425
425
  }
426
426
  // src/utils/linkColorExtension.ts
427
- function Zr(e) {
427
+ function $r(e) {
428
428
  if (!e) return null;
429
429
  let t = e.trim();
430
430
  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;
431
431
  }
432
- function Qr(e) {
432
+ function ei(e) {
433
433
  return e.extend({ addAttributes() {
434
434
  return {
435
435
  ...this.parent?.(),
436
436
  color: {
437
437
  default: null,
438
- parseHTML: (e) => Zr(Mt(e.style.color)),
438
+ parseHTML: (e) => $r(Pt(e.style.color)),
439
439
  renderHTML: (e) => {
440
- let t = Zr(e.color);
440
+ let t = $r(e.color);
441
441
  return t ? { style: `color: ${t}` } : {};
442
442
  }
443
443
  }
@@ -445,9 +445,9 @@ function Qr(e) {
445
445
  } });
446
446
  }
447
447
  // src/composables/useRichTextLinkDialog.ts
448
- function $r(e, t = qe.liquid, n = () => !0) {
448
+ function ti(e, t = Ct.liquid, n = () => !0) {
449
449
  let r = M(!1), i = M(""), a = M(""), o = M(null);
450
- zr(o, r);
450
+ Vr(o, r);
451
451
  function s() {
452
452
  if (!n()) return;
453
453
  let t = e.value?.getAttributes("link") ?? {};
@@ -458,7 +458,7 @@ function $r(e, t = qe.liquid, n = () => !0) {
458
458
  if (i.value) {
459
459
  let t = d(i.value);
460
460
  if (t !== null) {
461
- let n = Zr(a.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
461
+ let n = $r(a.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
462
462
  n && typeof e.value?.commands.unsetColor == "function" && r?.unsetColor(), r?.run();
463
463
  }
464
464
  }
@@ -475,8 +475,8 @@ function $r(e, t = qe.liquid, n = () => !0) {
475
475
  if (t.startsWith("#")) return t;
476
476
  if (t.startsWith("//")) return `https:${t}`;
477
477
  if (l.test(t)) return t;
478
- let n = Xe(t);
479
- return n ? lt.some((e) => e === n) ? t : null : u(t) ? t : `https://${t}`;
478
+ let n = Je(t);
479
+ return n ? nt.some((e) => e === n) ? t : null : u(t) ? t : `https://${t}`;
480
480
  }
481
481
  function f() {
482
482
  n() && (e.value?.chain().focus().extendMarkRange("link").unsetLink().run(), p());
@@ -500,13 +500,13 @@ function $r(e, t = qe.liquid, n = () => !0) {
500
500
  };
501
501
  }
502
502
  // src/composables/useRichTextEditor.ts
503
- function ei(t) {
504
- let n = z(Pn, null), r = kt(), i = z(an, null), a = k(() => r.value && !i?.value), { mergeTags: o, canRequestMergeTag: s, isRequesting: l, requestMergeTag: u, syntax: d, autocomplete: f } = V(), { canInsertLogicTag: p, isRequesting: m, requestLogicTag: h } = zn(), g = z(ln, null), _ = (w(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", v = rt(d), y = ie(null), b = n?.content ? Pt(n) : null, x = () => Se(b?.settings.value ?? { locale: "en" });
503
+ function ni(t) {
504
+ let n = z(In, null), r = jt(), i = z(sn, null), a = k(() => r.value && !i?.value), { mergeTags: o, canRequestMergeTag: s, isRequesting: l, requestMergeTag: u, syntax: d, autocomplete: f } = V(), { canInsertLogicTag: p, isRequesting: m, requestLogicTag: h } = Vn(), g = z(dn, null), _ = (w(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", v = wt(d), y = ie(null), b = n?.content ? It(n) : null, x = () => Te(b?.settings.value ?? { locale: "en" });
505
505
  c(x, (e) => {
506
506
  let t = y.value?.view.dom;
507
507
  t && t.setAttribute("dir", e);
508
508
  });
509
- let { showLinkDialog: S, linkUrl: C, linkColor: T, linkDialogRef: E, openLinkDialog: ee, insertLink: D, removeLink: O, closeLinkDialog: A, handleLinkKeydown: j } = $r(y, d, () => a.value);
509
+ let { showLinkDialog: S, linkUrl: C, linkColor: T, linkDialogRef: E, openLinkDialog: ee, insertLink: D, removeLink: O, closeLinkDialog: A, handleLinkKeydown: j } = ti(y, d, () => a.value);
510
510
  c(a, (e) => {
511
511
  if (y.value?.setEditable(e, !1), !e) {
512
512
  A();
@@ -545,7 +545,7 @@ function ei(t) {
545
545
  y.value = c, P.value = !1, N();
546
546
  } catch (e) {
547
547
  if (I) return;
548
- Dt.error(`[${t.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, e), F.value = e instanceof Error ? e.message : "Failed to load editor", P.value = !1;
548
+ kt.error(`[${t.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, e), F.value = e instanceof Error ? e.message : "Failed to load editor", P.value = !1;
549
549
  }
550
550
  }
551
551
  function R() {
@@ -577,7 +577,7 @@ function ei(t) {
577
577
  async function ce() {
578
578
  if (!a.value) return;
579
579
  let e = await h();
580
- !I && a.value && (e && y.value ? Xr(y.value, e, d) : y.value?.commands.focus());
580
+ !I && a.value && (e && y.value ? Qr(y.value, e, d) : y.value?.commands.focus());
581
581
  }
582
582
  return {
583
583
  editor: y,
@@ -606,25 +606,25 @@ function ei(t) {
606
606
  };
607
607
  }
608
608
  // src/utils/activeEditorTracker.ts
609
- var ti = /* @__PURE__ */ new Set(), ni = 0, ri = 0;
610
- function ii() {
611
- let e = ++ri;
612
- return ti.add(e), ni === 0 && (ni = e), {
609
+ var ri = /* @__PURE__ */ new Set(), ii = 0, ai = 0;
610
+ function oi() {
611
+ let e = ++ai;
612
+ return ri.add(e), ii === 0 && (ii = e), {
613
613
  id: e,
614
- isActive: () => ti.size <= 1 || ni === e,
614
+ isActive: () => ri.size <= 1 || ii === e,
615
615
  claim: () => {
616
- ni = e;
616
+ ii = e;
617
617
  },
618
618
  dispose: () => {
619
- if (ti.delete(e), ni === e) {
620
- let e = Array.from(ti);
621
- ni = e[e.length - 1] ?? 0;
619
+ if (ri.delete(e), ii === e) {
620
+ let e = Array.from(ri);
621
+ ii = e[e.length - 1] ?? 0;
622
622
  }
623
623
  }
624
624
  };
625
625
  }
626
626
  // src/utils/resolveLintOptions.ts
627
- function ai(e) {
627
+ function si(e) {
628
628
  let t = e.contentLocale ?? e.content?.settings.locale;
629
629
  return {
630
630
  ...e.lint,
@@ -633,8 +633,8 @@ function ai(e) {
633
633
  };
634
634
  }
635
635
  // src/composables/usePreviewResolution.ts
636
- var oi = 500;
637
- function si(e) {
636
+ var ci = 500;
637
+ function li(e) {
638
638
  let t = typeof e.resolvePreview == "function", n = M(null), r = M(!1), i = M(!1), a = M(!1), o = 0, s = null;
639
639
  function l() {
640
640
  s !== null && (clearTimeout(s), s = null);
@@ -645,7 +645,7 @@ function si(e) {
645
645
  let c = ++o;
646
646
  r.value = !0;
647
647
  let l = {
648
- content: We(e.getContent()),
648
+ content: Xe(e.getContent()),
649
649
  surface: e.surface,
650
650
  trigger: t,
651
651
  ...e.getRecipient?.() === void 0 ? {} : { recipient: e.getRecipient() }
@@ -653,7 +653,7 @@ function si(e) {
653
653
  try {
654
654
  let e = await s(l);
655
655
  if (c !== o) return;
656
- if (!ve(e)) {
656
+ if (!_e(e)) {
657
657
  i.value = !0, n.value = null;
658
658
  return;
659
659
  }
@@ -668,7 +668,7 @@ function si(e) {
668
668
  function d(e) {
669
669
  t && (l(), !a.value && e !== "recipient" ? u(e) : s = setTimeout(() => {
670
670
  s = null, u(e);
671
- }, oi));
671
+ }, ci));
672
672
  }
673
673
  function f() {
674
674
  t && e.isActive() && (l(), u("refresh"));
@@ -701,7 +701,7 @@ function si(e) {
701
701
  };
702
702
  }
703
703
  // src/composables/useMergeTagPicker.ts
704
- function ci() {
704
+ function ui() {
705
705
  let e = M(!1), t = M([]), n = M(null), r = null;
706
706
  function i(i, a) {
707
707
  if (r) {
@@ -731,7 +731,7 @@ function ci() {
731
731
  };
732
732
  }
733
733
  // src/composables/useLogicTagPicker.ts
734
- function li() {
734
+ function di() {
735
735
  let e = M(!1), t = M([]), n = M([]), r = null;
736
736
  function i(i, a) {
737
737
  if (r) {
@@ -761,14 +761,14 @@ function li() {
761
761
  };
762
762
  }
763
763
  // src/composables/useTemplateLint.ts
764
- function ui(e) {
764
+ function fi(e) {
765
765
  return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 && e.deliverability === !1 && e.compatibility === !1 && e.localization === !1 : !1;
766
766
  }
767
- var di = !1;
768
- function fi(e) {
767
+ var pi = !1;
768
+ function mi(e) {
769
769
  let t = M([]), n = M(0), r = M(-1), i = c(e.content, () => {
770
770
  n.value++;
771
- }, { deep: !0 }), a = M(!1), o = M(!1), s = ie(null), l = ui(e.options), u = null, d = !1;
771
+ }, { deep: !0 }), a = M(!1), o = M(!1), s = ie(null), l = fi(e.options), u = null, d = !1;
772
772
  l || f();
773
773
  async function f() {
774
774
  try {
@@ -777,7 +777,7 @@ function fi(e) {
777
777
  s.value = { lintTemplate: t.lintTemplate }, a.value = !0, p(), u = fe(n, p, { debounce: e.debounce ?? 500 });
778
778
  } catch {
779
779
  if (d) return;
780
- o.value = !0, di || (di = !0, Dt.info("@templatical/quality isn't installed, so the Issues panel and its lint badges are off. Add @templatical/quality to your dependencies to turn them on."));
780
+ o.value = !0, pi || (pi = !0, kt.info("@templatical/quality isn't installed, so the Issues panel and its lint badges are off. Add @templatical/quality to your dependencies to turn them on."));
781
781
  }
782
782
  }
783
783
  function p() {
@@ -816,7 +816,7 @@ function fi(e) {
816
816
  };
817
817
  }
818
818
  // src/composables/useKeyboardReorder.ts
819
- function pi(e, t, n = []) {
819
+ function hi(e, t, n = []) {
820
820
  let r = M(null), i = M(""), a = null;
821
821
  function o(t) {
822
822
  let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
@@ -843,7 +843,7 @@ function pi(e, t, n = []) {
843
843
  let i = o(r);
844
844
  if (!i) return "";
845
845
  let a = (i.sectionId ? c(i.sectionId, i.columnIndex ?? 0) : e.content.value.blocks)?.[i.index];
846
- return a ? cr(a, t.t, n) : "";
846
+ return a ? ur(a, t.t, n) : "";
847
847
  }
848
848
  function c(t, n) {
849
849
  return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
@@ -911,14 +911,14 @@ function pi(e, t, n = []) {
911
911
  };
912
912
  }
913
913
  // src/composables/useUiTheme.ts
914
- function mi(e) {
914
+ function gi(e) {
915
915
  let n = t("(prefers-color-scheme: dark)");
916
916
  return { resolvedTheme: k(() => e.value === "auto" ? n.value ? "dark" : "light" : e.value) };
917
917
  }
918
918
  // src/composables/useCustomBlockStylesheets.ts
919
- function hi(e, t) {
919
+ function _i(e, t) {
920
920
  return k(() => {
921
- let n = gi(e.value.blocks);
921
+ let n = vi(e.value.blocks);
922
922
  if (n.size === 0) return [];
923
923
  let r = /* @__PURE__ */ new Set(), i = [];
924
924
  for (let e of n) {
@@ -930,31 +930,31 @@ function hi(e, t) {
930
930
  return i;
931
931
  });
932
932
  }
933
- function gi(e) {
933
+ function vi(e) {
934
934
  let t = /* @__PURE__ */ new Set();
935
- return _i(e, t), t;
935
+ return yi(e, t), t;
936
936
  }
937
- function _i(e, t) {
938
- for (let n of e) if (wt(n)) t.add(n.customType);
937
+ function yi(e, t) {
938
+ for (let n of e) if (Ne(n)) t.add(n.customType);
939
939
  else if (n.type === "section") {
940
940
  let e = n.children;
941
941
  if (!e) continue;
942
- for (let n of e) _i(n, t);
943
- } else he(n) && _i(n.children, t);
942
+ for (let n of e) yi(n, t);
943
+ } else Oe(n) && yi(n.children, t);
944
944
  }
945
945
  // src/utils/registerBuiltInBlocks.ts
946
- var vi = [
946
+ var bi = [
947
947
  {
948
948
  type: "section",
949
- createBlock: ze
949
+ createBlock: ht
950
950
  },
951
951
  {
952
952
  type: "title",
953
- createBlock: Ve
953
+ createBlock: pe
954
954
  },
955
955
  {
956
956
  type: "paragraph",
957
- createBlock: Fe
957
+ createBlock: we
958
958
  },
959
959
  {
960
960
  type: "image",
@@ -962,43 +962,43 @@ var vi = [
962
962
  },
963
963
  {
964
964
  type: "button",
965
- createBlock: Ae
965
+ createBlock: Ee
966
966
  },
967
967
  {
968
968
  type: "divider",
969
- createBlock: Tt
969
+ createBlock: xe
970
970
  },
971
971
  {
972
972
  type: "video",
973
- createBlock: Ge
973
+ createBlock: Ze
974
974
  },
975
975
  {
976
976
  type: "social",
977
- createBlock: ht
977
+ createBlock: ze
978
978
  },
979
979
  {
980
980
  type: "menu",
981
- createBlock: xe
981
+ createBlock: ye
982
982
  },
983
983
  {
984
984
  type: "table",
985
- createBlock: Ue
985
+ createBlock: Ae
986
986
  },
987
987
  {
988
988
  type: "spacer",
989
- createBlock: we
989
+ createBlock: He
990
990
  },
991
991
  {
992
992
  type: "html",
993
- createBlock: ge
993
+ createBlock: Fe
994
994
  },
995
995
  {
996
996
  type: "countdown",
997
- createBlock: ye
997
+ createBlock: Me
998
998
  }
999
999
  ];
1000
- function yi(e, t) {
1001
- for (let n of vi) {
1000
+ function xi(e, t) {
1001
+ for (let n of bi) {
1002
1002
  let r = t[n.type];
1003
1003
  r && e.registerBuiltIn(n.type, {
1004
1004
  component: r,
@@ -1007,31 +1007,31 @@ function yi(e, t) {
1007
1007
  }
1008
1008
  }
1009
1009
  // src/utils/resolveHtmlBlockPreview.ts
1010
- function bi(e) {
1010
+ function Si(e) {
1011
1011
  return typeof e == "boolean" ? e : e?.enabled ?? !1;
1012
1012
  }
1013
1013
  // src/utils/collectOffPaletteDefaults.ts
1014
- function xi(e) {
1014
+ function Ci(e) {
1015
1015
  return typeof e == "object" && !!e && !Array.isArray(e);
1016
1016
  }
1017
- function Si(e, t, n) {
1018
- let r = new Set(e.map((e) => Ot(e))), i = [], a = (e, t) => {
1019
- for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(Ot(o)) && i.push(`${t}.${n}: ${o}`) : xi(o) && a(o, `${t}.${n}`);
1017
+ function wi(e, t, n) {
1018
+ let r = new Set(e.map((e) => At(e))), i = [], a = (e, t) => {
1019
+ for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(At(o)) && i.push(`${t}.${n}: ${o}`) : Ci(o) && a(o, `${t}.${n}`);
1020
1020
  }, o = t;
1021
- for (let [e, t] of Object.entries(vt)) {
1021
+ for (let [e, t] of Object.entries(Ke)) {
1022
1022
  let n = o?.[e];
1023
1023
  a({
1024
1024
  ...t,
1025
- ...xi(n) ? n : {}
1025
+ ...Ci(n) ? n : {}
1026
1026
  }, e);
1027
1027
  }
1028
1028
  return a({
1029
- ...Qe,
1029
+ ...st,
1030
1030
  ...n ?? {}
1031
1031
  }, "template"), i;
1032
1032
  }
1033
1033
  // src/utils/localizedBlockDefaults.ts
1034
- function Ci(e) {
1034
+ function Ti(e) {
1035
1035
  return {
1036
1036
  title: { content: `<p>${e.blockDefaults.title}</p>` },
1037
1037
  paragraph: { content: `<p>${e.blockDefaults.paragraph}</p>` },
@@ -1039,63 +1039,63 @@ function Ci(e) {
1039
1039
  };
1040
1040
  }
1041
1041
  // src/i18n/index.ts
1042
- var wi = /* #__PURE__ */ Object.assign({
1043
- "./locales/ca.ts": () => import("./ca-YfIxwO1G.js"),
1044
- "./locales/da.ts": () => import("./da-CM6DCvRG.js"),
1045
- "./locales/de.ts": () => import("./de-Dugz1zXC.js"),
1046
- "./locales/en.ts": () => import("./en-BykoFuFY.js"),
1047
- "./locales/es.ts": () => import("./es-DaWsTkpj.js"),
1048
- "./locales/fr.ts": () => import("./fr-DqwQHtJo.js"),
1049
- "./locales/ja.ts": () => import("./ja-BH4MS1Ye.js"),
1050
- "./locales/nl.ts": () => import("./nl-BQl1_UHv.js"),
1051
- "./locales/pt-BR.ts": () => import("./pt-BR-eyzmU9Vs.js")
1052
- }), Ti = /* #__PURE__ */ Object.assign({
1042
+ var Ei = /* #__PURE__ */ Object.assign({
1043
+ "./locales/ca.ts": () => import("./ca-Ce3NmK9v.js"),
1044
+ "./locales/da.ts": () => import("./da-4YwDAuEr.js"),
1045
+ "./locales/de.ts": () => import("./de-BlQ0vdZJ.js"),
1046
+ "./locales/en.ts": () => import("./en-MlNeQVSG.js"),
1047
+ "./locales/es.ts": () => import("./es-2s8x4OM2.js"),
1048
+ "./locales/fr.ts": () => import("./fr-D3MjrsgQ.js"),
1049
+ "./locales/ja.ts": () => import("./ja-B4Kx7uBX.js"),
1050
+ "./locales/nl.ts": () => import("./nl-U65iX7wN.js"),
1051
+ "./locales/pt-BR.ts": () => import("./pt-BR-_jsX1xLv.js")
1052
+ }), Di = /* #__PURE__ */ Object.assign({
1053
1053
  "./locales/cloud/de.ts": () => import("./de-6M4JoHoD.js"),
1054
1054
  "./locales/cloud/en.ts": () => import("./en-FzUuJ8HW.js"),
1055
1055
  "./locales/cloud/pt-BR.ts": () => import("./pt-BR-Bp92Fc6J.js")
1056
1056
  });
1057
- function Ei(e) {
1057
+ function Oi(e) {
1058
1058
  return Object.keys(e).map((e) => e.match(/\/([^/]+)\.ts$/)?.[1]).filter((e) => !!e);
1059
1059
  }
1060
- var Di = Ei(wi), Oi = Ei(Ti);
1061
- function ki(e) {
1060
+ var ki = Oi(Ei), Ai = Oi(Di);
1061
+ function ji(e) {
1062
1062
  return e.trim().replace(/_/g, "-").toLowerCase();
1063
1063
  }
1064
- function Ai(e, t) {
1065
- let n = ki(e);
1066
- return t.find((e) => ki(e) === n);
1064
+ function Mi(e, t) {
1065
+ let n = ji(e);
1066
+ return t.find((e) => ji(e) === n);
1067
1067
  }
1068
- function ji(e) {
1069
- return ki(e).split("-")[0];
1068
+ function Ni(e) {
1069
+ return ji(e).split("-")[0];
1070
1070
  }
1071
- function Mi(e, t) {
1072
- return Ai(e, t) ?? Ai(ji(e), t);
1071
+ function Pi(e, t) {
1072
+ return Mi(e, t) ?? Mi(Ni(e), t);
1073
1073
  }
1074
- function Ni(e, t) {
1075
- return Mi(e, t) ?? "en";
1074
+ function Fi(e, t) {
1075
+ return Pi(e, t) ?? "en";
1076
1076
  }
1077
- async function Pi(e) {
1078
- let t = wi[`./locales/${Ni(e, Di)}.ts`];
1077
+ async function Ii(e) {
1078
+ let t = Ei[`./locales/${Fi(e, ki)}.ts`];
1079
1079
  return (await t()).default;
1080
1080
  }
1081
- async function Fi(e) {
1082
- let t = Ti[`./locales/cloud/${Ni(e, Oi)}.ts`];
1081
+ async function Li(e) {
1082
+ let t = Di[`./locales/cloud/${Fi(e, Ai)}.ts`];
1083
1083
  return (await t()).default;
1084
1084
  }
1085
- function Ii(e) {
1086
- return Mi(e, Di) !== void 0;
1085
+ function Ri(e) {
1086
+ return Pi(e, ki) !== void 0;
1087
1087
  }
1088
- function Li(e) {
1089
- return Mi(e, Oi) !== void 0;
1088
+ function zi(e) {
1089
+ return Pi(e, Ai) !== void 0;
1090
1090
  }
1091
- function Ri() {
1092
- return [...Di];
1091
+ function Bi() {
1092
+ return [...ki];
1093
1093
  }
1094
- function zi() {
1095
- return [...Oi];
1094
+ function Vi() {
1095
+ return [...Ai];
1096
1096
  }
1097
1097
  // src/i18n/contentDefaults.ts
1098
- var Bi = {
1098
+ var Hi = {
1099
1099
  en: {
1100
1100
  video: "Video",
1101
1101
  days: "Days",
@@ -1169,17 +1169,17 @@ var Bi = {
1169
1169
  expired: "Dette tilbud er udløbet"
1170
1170
  }
1171
1171
  };
1172
- Object.keys(Bi);
1173
- var Vi = new Map(Object.keys(Bi).map((e) => [e.toLowerCase(), e]));
1174
- function Hi(e) {
1175
- if (!e) return Bi.en;
1176
- let t = e.trim().replace(/_/g, "-").toLowerCase(), n = Vi.get(t);
1177
- if (n) return Bi[n];
1178
- let r = Vi.get(ji(t));
1179
- return r ? Bi[r] : Bi.en;
1180
- }
1181
- function Ui(e) {
1182
- let t = Hi(e);
1172
+ Object.keys(Hi);
1173
+ var Ui = new Map(Object.keys(Hi).map((e) => [e.toLowerCase(), e]));
1174
+ function Wi(e) {
1175
+ if (!e) return Hi.en;
1176
+ let t = e.trim().replace(/_/g, "-").toLowerCase(), n = Ui.get(t);
1177
+ if (n) return Hi[n];
1178
+ let r = Ui.get(Ni(t));
1179
+ return r ? Hi[r] : Hi.en;
1180
+ }
1181
+ function Gi(e) {
1182
+ let t = Wi(e);
1183
1183
  return {
1184
1184
  video: { alt: t.video },
1185
1185
  countdown: {
@@ -1192,9 +1192,9 @@ function Ui(e) {
1192
1192
  };
1193
1193
  }
1194
1194
  // src/utils/collectColorFieldIssues.ts
1195
- function Wi(e, t) {
1195
+ function Ki(e, t) {
1196
1196
  let n = [], r = (r, i) => {
1197
- let a = ar(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
1197
+ let a = sr(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
1198
1198
  if (a.invalidPresets.length > 0 && n.push({
1199
1199
  id: s("invalid-presets"),
1200
1200
  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." : "")
@@ -1205,8 +1205,8 @@ function Wi(e, t) {
1205
1205
  id: s("allow-custom-ignored"),
1206
1206
  message: `${o}: allowCustom: true is ignored because colors.allowCustom is false — a field can narrow the editor-wide palette, never unlock it.`
1207
1207
  }), !a.allowCustom && a.presets.length > 0) {
1208
- let e = r.default ?? "", t = new Set(a.presets.map((e) => Ot(e)));
1209
- e !== "" && !t.has(Ot(e)) && n.push({
1208
+ let e = r.default ?? "", t = new Set(a.presets.map((e) => At(e)));
1209
+ e !== "" && !t.has(At(e)) && n.push({
1210
1210
  id: s("off-palette-default"),
1211
1211
  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.`
1212
1212
  });
@@ -1217,7 +1217,7 @@ function Wi(e, t) {
1217
1217
  return n;
1218
1218
  }
1219
1219
  // src/utils/keyboardShortcuts.ts
1220
- function Gi(e) {
1220
+ function qi(e) {
1221
1221
  for (let t of e.composedPath()) {
1222
1222
  if (!(t instanceof HTMLElement)) continue;
1223
1223
  if (t.isContentEditable) return !0;
@@ -1226,14 +1226,14 @@ function Gi(e) {
1226
1226
  }
1227
1227
  return !1;
1228
1228
  }
1229
- function Ki(e, t) {
1229
+ function Ji(e, t) {
1230
1230
  let n = e.metaKey || e.ctrlKey;
1231
1231
  if (n && e.key.toLowerCase() === "s") e.preventDefault(), t.onSave?.();
1232
1232
  else if (n && e.key.toLowerCase() === "z") {
1233
- if (Gi(e)) return;
1233
+ if (qi(e)) return;
1234
1234
  e.preventDefault(), e.shiftKey ? t.history.redo() : t.history.undo();
1235
1235
  } else {
1236
- if (t.isPicking?.() && !Gi(e)) {
1236
+ if (t.isPicking?.() && !qi(e)) {
1237
1237
  if (e.key === "Escape") {
1238
1238
  e.preventDefault(), t.onCancelPick?.();
1239
1239
  return;
@@ -1247,139 +1247,139 @@ function Ki(e, t) {
1247
1247
  return;
1248
1248
  }
1249
1249
  }
1250
- e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Gi(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
1250
+ e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !qi(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
1251
1251
  }
1252
1252
  }
1253
1253
  // src/utils/blockComponentResolver.ts
1254
- function qi(e, t) {
1254
+ function Yi(e, t) {
1255
1255
  let n = { fontFamily: t(e.fontFamily) };
1256
1256
  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;
1257
1257
  }
1258
- function Ji(e, t, n) {
1258
+ function Xi(e, t, n) {
1259
1259
  if (t) {
1260
1260
  let n = t.getComponent(e);
1261
1261
  if (n) return n;
1262
1262
  }
1263
1263
  return n[e.type] ?? null;
1264
1264
  }
1265
- var Yi = "--tpl-block-bg-layer", Xi = "--tpl-email-frame-width", Zi = "tpl-has-bg-image";
1266
- function Qi(e, t) {
1265
+ var Zi = "--tpl-block-bg-layer", Qi = "--tpl-email-frame-width", $i = "tpl-has-bg-image";
1266
+ function ea(e, t) {
1267
1267
  if (t === null) return {};
1268
- let n = Re(e);
1268
+ let n = be(e);
1269
1269
  if (n === null) return {};
1270
- let r = t?.trim(), i = r ? at(r) : n.url;
1270
+ let r = t?.trim(), i = r ? vt(r) : n.url;
1271
1271
  return {
1272
1272
  backgroundImage: `url("${i}")`,
1273
1273
  backgroundSize: n.size,
1274
1274
  backgroundPosition: n.position,
1275
1275
  backgroundRepeat: n.repeat,
1276
- [Yi]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
1276
+ [Zi]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
1277
1277
  };
1278
1278
  }
1279
- function $i(e) {
1280
- return e && Yi in e ? Zi : void 0;
1279
+ function ta(e) {
1280
+ return e && Zi in e ? $i : void 0;
1281
1281
  }
1282
- var ea = {
1282
+ var na = {
1283
1283
  top: "flex-start",
1284
1284
  middle: "center",
1285
1285
  bottom: "flex-end"
1286
1286
  };
1287
- function ta(e, t) {
1288
- let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${na(t, e.aspectRatio)}px` } : { aspectRatio: `1 / ${e.aspectRatio ?? 1}` };
1287
+ function ra(e, t) {
1288
+ let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${ia(t, e.aspectRatio)}px` } : { aspectRatio: `1 / ${e.aspectRatio ?? 1}` };
1289
1289
  return {
1290
1290
  display: "flex",
1291
1291
  flexDirection: "column",
1292
- justifyContent: ea[e.verticalAlign],
1292
+ justifyContent: na[e.verticalAlign],
1293
1293
  boxSizing: "border-box",
1294
1294
  ...n
1295
1295
  };
1296
1296
  }
1297
- function na(e, t) {
1297
+ function ia(e, t) {
1298
1298
  return Math.max(1, Math.round(Math.max(1, Math.round(e)) * t));
1299
1299
  }
1300
- function ra(e, t = {}) {
1300
+ function aa(e, t = {}) {
1301
1301
  if (e.type === "wrapper") return {};
1302
1302
  let { padding: n, backgroundColor: r } = e.styles, i = {
1303
1303
  padding: `${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`,
1304
1304
  backgroundColor: r || "transparent"
1305
1305
  };
1306
- if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? pt.paragraphGap : pt.paragraphGap}px`), e.type === "section") {
1307
- let n = dt(e.borderRadius);
1306
+ if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? ut.paragraphGap : ut.paragraphGap}px`), e.type === "section") {
1307
+ let n = Qe(e.borderRadius);
1308
1308
  n !== null && (i.borderRadius = n);
1309
- let r = Be(e);
1310
- r?.applied && e.backgroundImage ? (Object.assign(i, ta(r, t.heroBoxWidth)), Object.assign(i, Qi({
1309
+ let r = Ce(e);
1310
+ r?.applied && e.backgroundImage ? (Object.assign(i, ra(r, t.heroBoxWidth)), Object.assign(i, ea({
1311
1311
  ...e.backgroundImage,
1312
1312
  size: "cover",
1313
1313
  repeat: !1
1314
- }, t.backgroundImageUrl))) : (Object.assign(i, aa(e.border)), Object.assign(i, Qi(e.backgroundImage, t.backgroundImageUrl)));
1314
+ }, t.backgroundImageUrl))) : (Object.assign(i, sa(e.border)), Object.assign(i, ea(e.backgroundImage, t.backgroundImageUrl)));
1315
1315
  }
1316
1316
  return i;
1317
1317
  }
1318
- function ia(e, t, n, r) {
1319
- return e.type === "section" ? ra(e, {
1320
- backgroundImageUrl: Vn(t, e.backgroundImage, n),
1318
+ function oa(e, t, n, r) {
1319
+ return e.type === "section" ? aa(e, {
1320
+ backgroundImageUrl: Un(t, e.backgroundImage, n),
1321
1321
  heroBoxWidth: r
1322
- }) : ra(e);
1322
+ }) : aa(e);
1323
1323
  }
1324
- function aa(e) {
1324
+ function sa(e) {
1325
1325
  let t = {};
1326
1326
  for (let [n, r] of Object.entries(Ye(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
1327
1327
  return t;
1328
1328
  }
1329
- var oa = {
1329
+ var ca = {
1330
1330
  width: "100cqw",
1331
1331
  maxWidth: "none",
1332
1332
  marginInline: "calc(50% - 50cqw)",
1333
1333
  boxSizing: "border-box"
1334
1334
  };
1335
- function sa(e) {
1335
+ function la(e) {
1336
1336
  return `${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`;
1337
1337
  }
1338
- function ca(e) {
1338
+ function ua(e) {
1339
1339
  let t = {
1340
1340
  width: "var(--tpl-email-frame-width)",
1341
1341
  maxWidth: "100%",
1342
1342
  marginInline: "auto",
1343
1343
  boxSizing: "border-box"
1344
1344
  };
1345
- return e && (t.padding = sa(e)), t;
1345
+ return e && (t.padding = la(e)), t;
1346
1346
  }
1347
- function la(e, t = {}) {
1347
+ function da(e, t = {}) {
1348
1348
  if (e.type !== "section" || !e.wrapper) return null;
1349
1349
  let n = e.wrapper, r = {};
1350
- if (n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && !n.fullWidth && (r.padding = sa(n.padding)), !n.fullWidth) {
1351
- let e = dt(n.borderRadius);
1350
+ if (n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && !n.fullWidth && (r.padding = la(n.padding)), !n.fullWidth) {
1351
+ let e = Qe(n.borderRadius);
1352
1352
  e !== null && (r.borderRadius = e);
1353
1353
  }
1354
- return Object.assign(r, Qi(n.backgroundImage, t.backgroundImageUrl)), n.fullWidth && Object.assign(r, oa), r;
1354
+ return Object.assign(r, ea(n.backgroundImage, t.backgroundImageUrl)), n.fullWidth && Object.assign(r, ca), r;
1355
1355
  }
1356
- function ua(e, t = {}) {
1356
+ function fa(e, t = {}) {
1357
1357
  if (e.type !== "wrapper") return null;
1358
1358
  let n = {};
1359
- return e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding && !e.fullWidth && (n.padding = sa(e.styles.padding)), !e.fullWidth && e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, Qi(e.backgroundImage, t.backgroundImageUrl)), e.fullWidth && Object.assign(n, oa), n;
1359
+ return e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding && !e.fullWidth && (n.padding = la(e.styles.padding)), !e.fullWidth && e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, ea(e.backgroundImage, t.backgroundImageUrl)), e.fullWidth && Object.assign(n, ca), n;
1360
1360
  }
1361
1361
  // src/utils/mergeTagLabelSegments.ts
1362
- function da(e, t, n, r = !1) {
1362
+ function pa(e, t, n, r = !1) {
1363
1363
  if (!e) return [];
1364
1364
  let i = [], a = 0;
1365
- for (let o of He(e, n)) {
1365
+ for (let o of yt(e, n)) {
1366
1366
  o.index > a && i.push({
1367
1367
  type: "text",
1368
1368
  value: e.slice(a, o.index)
1369
1369
  });
1370
1370
  let s = o.value;
1371
1371
  if (Pe(s, n)) {
1372
- let e = r ? mt(s, t) : void 0;
1372
+ let e = r ? tt(s, t) : void 0;
1373
1373
  i.push(e === void 0 ? {
1374
1374
  type: "tag",
1375
- value: tt(s, t)
1375
+ value: rt(s, t)
1376
1376
  } : {
1377
1377
  type: "text",
1378
1378
  value: e
1379
1379
  });
1380
- } else St(s, n) ? i.push({
1380
+ } else Tt(s, n) ? i.push({
1381
1381
  type: "tag",
1382
- value: $e(s, n)
1382
+ value: dt(s, n)
1383
1383
  }) : i.push({
1384
1384
  type: "text",
1385
1385
  value: s
@@ -1392,27 +1392,27 @@ function da(e, t, n, r = !1) {
1392
1392
  }), i;
1393
1393
  }
1394
1394
  // src/components/MergeTagPreviewText.vue
1395
- var fa = B({
1395
+ var ma = B({
1396
1396
  name: "MergeTagPreviewText",
1397
1397
  props: { text: {
1398
1398
  type: String,
1399
1399
  required: !0
1400
1400
  } },
1401
1401
  setup(e) {
1402
- let t = z(Xt, tn), n = z(Lt, qe.liquid), r = z(Sn, null), i = k(() => da(e.text, t.value, n, r?.value ?? !1));
1402
+ let t = z(Qt, rn), n = z(zt, Ct.liquid), r = z(wn, null), i = k(() => pa(e.text, t.value, n, r?.value ?? !1));
1403
1403
  return () => i.value.map((e, t) => e.type === "tag" ? x("span", {
1404
1404
  key: t,
1405
1405
  class: "tpl-merge-tag-label"
1406
1406
  }, e.value) : e.value);
1407
1407
  }
1408
- }), pa = ["href"], ma = /* @__PURE__ */ B({
1408
+ }), ha = ["href"], ga = /* @__PURE__ */ B({
1409
1409
  __name: "ButtonBlock",
1410
1410
  props: {
1411
1411
  block: {},
1412
1412
  viewport: {}
1413
1413
  },
1414
1414
  setup(e) {
1415
- let t = e, n = Nn(un, "ButtonBlock");
1415
+ let t = e, n = Fn(fn, "ButtonBlock");
1416
1416
  function r(e) {
1417
1417
  return e === "regular" ? "400" : e === "medium" ? "500" : e === "bold" ? "700" : "bold";
1418
1418
  }
@@ -1423,33 +1423,33 @@ var fa = B({
1423
1423
  backgroundColor: t.block.backgroundColor,
1424
1424
  color: t.block.textColor,
1425
1425
  fontSize: `${t.block.fontSize}px`,
1426
- lineHeight: String(Je),
1426
+ lineHeight: String(ot(t.block)),
1427
1427
  fontWeight: r(t.block.fontWeight),
1428
1428
  textDecoration: "none",
1429
- borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : dt(t.block.borderRadius) ?? "0px",
1429
+ borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : Qe(t.block.borderRadius) ?? "0px",
1430
1430
  textAlign: "center"
1431
1431
  };
1432
- return Object.assign(e, aa(t.block.border)), t.block.fontFamily && (e.fontFamily = n.resolveFontFamily(t.block.fontFamily)), t.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof t.block.width == "number" && (e.width = `${t.block.width}px`, e.boxSizing = "border-box"), e;
1432
+ return Object.assign(e, sa(t.block.border)), t.block.fontFamily && (e.fontFamily = n.resolveFontFamily(t.block.fontFamily)), t.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof t.block.width == "number" ? (e.width = `${t.block.width}px`, e.boxSizing = "border-box") : typeof t.block.width == "string" && he(t.block.width) !== null && (e.width = t.block.width, e.boxSizing = "border-box"), e;
1433
1433
  }), o = k(() => ({ textAlign: t.block.align ?? "center" }));
1434
1434
  return (t, n) => (m(), N("div", { style: y(o.value) }, [P("a", {
1435
1435
  href: e.block.url || "#",
1436
1436
  style: y(a.value),
1437
1437
  class: "tpl:cursor-default",
1438
1438
  onClick: n[0] ||= i(() => {}, ["prevent"])
1439
- }, [E(fa, { text: e.block.text }, null, 8, ["text"])], 12, pa)], 4));
1439
+ }, [E(ma, { text: e.block.text }, null, 8, ["text"])], 12, ha)], 4));
1440
1440
  }
1441
- }), ha = ["innerHTML"], ga = [
1441
+ }), _a = ["innerHTML"], va = [
1442
1442
  "src",
1443
1443
  "width",
1444
1444
  "height"
1445
- ], _a = /* @__PURE__ */ B({
1445
+ ], ya = /* @__PURE__ */ B({
1446
1446
  __name: "CustomBlockIcon",
1447
1447
  props: {
1448
1448
  icon: {},
1449
1449
  size: {}
1450
1450
  },
1451
1451
  setup(e) {
1452
- let t = e, n = k(() => t.size ?? 20), r = k(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), i = k(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/"))), a = k(() => r.value ? pr(t.icon ?? "") : "");
1452
+ let t = e, n = k(() => t.size ?? 20), r = k(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), i = k(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/"))), a = k(() => r.value ? hr(t.icon ?? "") : "");
1453
1453
  return (t, o) => r.value ? (m(), N("span", {
1454
1454
  key: 0,
1455
1455
  class: "tpl:inline-flex tpl:items-center tpl:justify-center",
@@ -1458,33 +1458,33 @@ var fa = B({
1458
1458
  height: `${n.value}px`
1459
1459
  }),
1460
1460
  innerHTML: a.value
1461
- }, null, 12, ha)) : i.value ? (m(), N("img", {
1461
+ }, null, 12, _a)) : i.value ? (m(), N("img", {
1462
1462
  key: 1,
1463
1463
  src: e.icon,
1464
1464
  width: n.value,
1465
1465
  height: n.value,
1466
1466
  class: "tpl:inline-block",
1467
1467
  alt: ""
1468
- }, null, 8, ga)) : (m(), R(A(Mr), {
1468
+ }, null, 8, va)) : (m(), R(A(Pr), {
1469
1469
  key: 2,
1470
1470
  size: n.value,
1471
1471
  "stroke-width": 1.5
1472
1472
  }, null, 8, ["size"]));
1473
1473
  }
1474
- }), va = { class: "tpl:w-full" }, ya = {
1474
+ }), ba = { class: "tpl:w-full" }, xa = {
1475
1475
  key: 0,
1476
1476
  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)]"
1477
- }, ba = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, xa = {
1477
+ }, Sa = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ca = {
1478
1478
  key: 1,
1479
1479
  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)]"
1480
- }, Sa = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ca = {
1480
+ }, wa = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ta = {
1481
1481
  key: 2,
1482
1482
  class: "tpl:relative"
1483
- }, wa = ["innerHTML"], Ta = {
1483
+ }, Ea = ["innerHTML"], Da = {
1484
1484
  key: 0,
1485
1485
  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]",
1486
1486
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
1487
- }, Ea = /* @__PURE__ */ B({
1487
+ }, Oa = /* @__PURE__ */ B({
1488
1488
  __name: "CustomBlock",
1489
1489
  props: {
1490
1490
  block: {},
@@ -1492,7 +1492,7 @@ var fa = B({
1492
1492
  },
1493
1493
  emits: ["fetchData"],
1494
1494
  setup(e, { emit: t }) {
1495
- let n = e, r = t, { t: a } = ce(), o = z(xn, null), l = M(""), u = k(() => mr(l.value)), f = M(!1), p = k(() => o?.getDefinition(n.block.customType)), h = k(() => !!p.value), g = k(() => n.block), { isFetching: _, fetch: v, needsFetch: y, hasDataSource: b } = Bn({
1495
+ let n = e, r = t, { t: a } = ce(), o = z(Cn, null), l = M(""), u = k(() => gr(l.value)), f = M(!1), p = k(() => o?.getDefinition(n.block.customType)), h = k(() => !!p.value), g = k(() => n.block), { isFetching: _, fetch: v, needsFetch: y, hasDataSource: b } = Hn({
1496
1496
  definition: p,
1497
1497
  block: g,
1498
1498
  onUpdate: (e, t) => {
@@ -1501,10 +1501,10 @@ var fa = B({
1501
1501
  dataSourceFetched: t
1502
1502
  });
1503
1503
  }
1504
- }), x = z(Xt, tn), S = z(Sn, null), C = k(() => {
1504
+ }), x = z(Qt, rn), S = z(wn, null), C = k(() => {
1505
1505
  if (!S?.value) return n.block;
1506
1506
  let e = {};
1507
- for (let [t, r] of Object.entries(n.block.fieldValues)) e[t] = typeof r == "string" ? _t(r, x.value) : r;
1507
+ for (let [t, r] of Object.entries(n.block.fieldValues)) e[t] = typeof r == "string" ? ct(r, x.value) : r;
1508
1508
  return {
1509
1509
  ...n.block,
1510
1510
  fieldValues: e
@@ -1528,10 +1528,10 @@ var fa = B({
1528
1528
  T();
1529
1529
  }, { deep: !0 }), c(() => S?.value, () => {
1530
1530
  T();
1531
- }), (e, t) => (m(), N("div", va, [h.value ? f.value ? (m(), N("div", xa, [E(A(_r), {
1531
+ }), (e, t) => (m(), N("div", ba, [h.value ? f.value ? (m(), N("div", Ca, [E(A(yr), {
1532
1532
  size: 24,
1533
1533
  class: "tpl:text-[var(--tpl-danger)]"
1534
- }), P("span", Sa, d(A(a).customBlocks.renderError), 1)])) : (m(), N("div", Ca, [P("div", { innerHTML: u.value }, null, 8, wa), A(b) && A(y) ? (m(), N("div", Ta, [A(_) ? (m(), R(gr, {
1534
+ }), P("span", wa, d(A(a).customBlocks.renderError), 1)])) : (m(), N("div", Ta, [P("div", { innerHTML: u.value }, null, 8, Ea), A(b) && A(y) ? (m(), N("div", Da, [A(_) ? (m(), R(vr, {
1535
1535
  key: 1,
1536
1536
  class: "tpl:w-48"
1537
1537
  })) : (m(), N("button", {
@@ -1539,16 +1539,16 @@ var fa = B({
1539
1539
  type: "button",
1540
1540
  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)]",
1541
1541
  onClick: t[0] ||= i((...e) => A(v) && A(v)(...e), ["stop"])
1542
- }, [p.value?.icon ? (m(), R(_a, {
1542
+ }, [p.value?.icon ? (m(), R(ya, {
1543
1543
  key: 0,
1544
1544
  icon: p.value.icon,
1545
1545
  size: 16
1546
- }, null, 8, ["icon"])) : j("", !0), te(" " + d(p.value?.dataSource?.label || A(a).customBlocks.dataSource.fetchButton), 1)]))])) : j("", !0)])) : (m(), N("div", ya, [E(A(Ir), {
1546
+ }, null, 8, ["icon"])) : j("", !0), te(" " + d(p.value?.dataSource?.label || A(a).customBlocks.dataSource.fetchButton), 1)]))])) : j("", !0)])) : (m(), N("div", xa, [E(A(Rr), {
1547
1547
  size: 24,
1548
1548
  class: "tpl:text-[var(--tpl-warning)]"
1549
- }), P("span", ba, d(A(a).customBlocks.definitionNotFound), 1)]))]));
1549
+ }), P("span", Sa, d(A(a).customBlocks.definitionNotFound), 1)]))]));
1550
1550
  }
1551
- }), Da = { class: "tpl:w-full" }, Oa = /* @__PURE__ */ B({
1551
+ }), ka = { class: "tpl:w-full" }, Aa = /* @__PURE__ */ B({
1552
1552
  __name: "DividerBlock",
1553
1553
  props: {
1554
1554
  block: {},
@@ -1560,28 +1560,28 @@ var fa = B({
1560
1560
  width: t.block.width === "full" ? "100%" : typeof t.block.width == "number" ? `${t.block.width}px` : t.block.width,
1561
1561
  margin: t.block.width === "full" ? "0" : "0 auto"
1562
1562
  }));
1563
- return (e, t) => (m(), N("div", Da, [P("hr", {
1563
+ return (e, t) => (m(), N("div", ka, [P("hr", {
1564
1564
  class: "tpl:m-0 tpl:border-none",
1565
1565
  style: y(n.value)
1566
1566
  }, null, 4)]));
1567
1567
  }
1568
- }), ka = { class: "tpl:w-full" }, Aa = ["srcdoc", "title"], ja = {
1568
+ }), ja = { class: "tpl:w-full" }, Ma = ["srcdoc", "title"], Na = {
1569
1569
  key: 1,
1570
1570
  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)]"
1571
- }, Ma = {
1571
+ }, Pa = {
1572
1572
  key: 0,
1573
1573
  class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
1574
- }, Na = {
1574
+ }, Fa = {
1575
1575
  key: 1,
1576
1576
  class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
1577
- }, Pa = /* @__PURE__ */ B({
1577
+ }, Ia = /* @__PURE__ */ B({
1578
1578
  __name: "HtmlBlock",
1579
1579
  props: {
1580
1580
  block: {},
1581
1581
  viewport: {}
1582
1582
  },
1583
1583
  setup(e) {
1584
- let t = e, { t: n } = ce(), r = z(Qt, !1), i = k(() => t.block.content.trim().length > 0), a = k(() => r && i.value), o = z(Xt, tn), s = z(Sn, null), l = k(() => s?.value ? _t(t.block.content, o.value) : t.block.content), u = M(null), f = M(60), p = null;
1584
+ let t = e, { t: n } = ce(), r = z(en, !1), i = k(() => t.block.content.trim().length > 0), a = k(() => r && i.value), o = z(Qt, rn), s = z(wn, null), l = k(() => s?.value ? ct(t.block.content, o.value) : t.block.content), u = M(null), f = M(60), p = null;
1585
1585
  function h() {
1586
1586
  let e = u.value?.contentDocument;
1587
1587
  e && (f.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
@@ -1595,7 +1595,7 @@ var fa = B({
1595
1595
  e || (p?.disconnect(), p = null);
1596
1596
  }), re(() => {
1597
1597
  p?.disconnect(), p = null;
1598
- }), (e, t) => (m(), N("div", ka, [a.value ? (m(), N("iframe", {
1598
+ }), (e, t) => (m(), N("div", ja, [a.value ? (m(), N("iframe", {
1599
1599
  key: 0,
1600
1600
  ref_key: "iframeRef",
1601
1601
  ref: u,
@@ -1605,18 +1605,18 @@ var fa = B({
1605
1605
  class: "tpl:block tpl:w-full tpl:border-0",
1606
1606
  style: y({ height: `${f.value}px` }),
1607
1607
  onLoad: g
1608
- }, null, 44, Aa)) : (m(), N("div", ja, [E(A(er), {
1608
+ }, null, 44, Ma)) : (m(), N("div", Na, [E(A(nr), {
1609
1609
  size: 24,
1610
1610
  class: "tpl:text-[var(--tpl-text-dim)]"
1611
- }), i.value ? (m(), N("span", Ma, d(A(n).html.preview), 1)) : (m(), N("span", Na, d(A(n).html.empty), 1))]))]));
1611
+ }), i.value ? (m(), N("span", Pa, d(A(n).html.preview), 1)) : (m(), N("span", Fa, d(A(n).html.empty), 1))]))]));
1612
1612
  }
1613
- }), Fa = ["data-drop-enabled"], Ia = ["href"], La = ["src", "alt"], Ra = ["src", "alt"], za = {
1613
+ }), La = ["data-drop-enabled"], Ra = ["href"], za = ["src", "alt"], Ba = ["src", "alt"], Va = {
1614
1614
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
1615
1615
  style: { opacity: "0.7" }
1616
- }, Ba = ["href"], Va = ["src", "alt"], Ha = ["src", "alt"], Ua = {
1616
+ }, Ha = ["href"], Ua = ["src", "alt"], Wa = ["src", "alt"], Ga = {
1617
1617
  key: 4,
1618
1618
  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)]"
1619
- }, Wa = ["aria-label"], Ga = { key: 1 }, Ka = /* @__PURE__ */ B({
1619
+ }, Ka = ["aria-label"], qa = { key: 1 }, Ja = /* @__PURE__ */ B({
1620
1620
  __name: "ImageBlock",
1621
1621
  props: {
1622
1622
  block: {},
@@ -1624,20 +1624,20 @@ var fa = B({
1624
1624
  },
1625
1625
  emits: ["update"],
1626
1626
  setup(e, { emit: t }) {
1627
- let n = e, r = t, { t: a } = ce(), { syntax: o } = V(), s = k(() => ot(n.block.src, o));
1627
+ let n = e, r = t, { t: a } = ce(), { syntax: o } = V(), s = k(() => ke(n.block.src, o));
1628
1628
  function c(e) {
1629
1629
  let t = {
1630
1630
  src: e.url,
1631
- ...$n(Xn(e.width, e.height))
1631
+ ...tr(Qn(e.width, e.height))
1632
1632
  };
1633
1633
  e.alt && (t.alt = e.alt), r("update", t);
1634
1634
  }
1635
- let l = M(), { canBrowse: u, dropEnabled: f, isUploading: p, showOverlay: h, openMediaBrowser: g } = ir({
1635
+ let l = M(), { canBrowse: u, dropEnabled: f, isUploading: p, showOverlay: h, openMediaBrowser: g } = or({
1636
1636
  target: l,
1637
1637
  blocked: s,
1638
1638
  apply: c
1639
1639
  }), _ = k(() => ({ textAlign: n.block.align })), v = k(() => {
1640
- let e = n.block.border, t = ["left", "right"].map((t) => it(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
1640
+ let e = n.block.border, t = ["left", "right"].map((t) => xt(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
1641
1641
  return t > 0 ? `calc(100% - ${t}px)` : "100%";
1642
1642
  }), b = k(() => {
1643
1643
  let e = n.block.align;
@@ -1645,13 +1645,13 @@ var fa = B({
1645
1645
  maxWidth: "100%",
1646
1646
  width: n.block.width === "full" ? v.value : `${n.block.width}px`,
1647
1647
  height: n.block.height ? `${n.block.height}px` : void 0,
1648
- borderRadius: dt(n.block.borderRadius) ?? void 0,
1649
- ...aa(n.block.border),
1648
+ borderRadius: Qe(n.block.borderRadius) ?? void 0,
1649
+ ...sa(n.block.border),
1650
1650
  display: "block",
1651
1651
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
1652
1652
  marginRight: e === "center" ? "auto" : void 0
1653
1653
  };
1654
- }), x = Jn(() => s.value ? void 0 : n.block.src), S = Jn(() => s.value ? n.block.placeholderUrl : void 0);
1654
+ }), x = Xn(() => s.value ? void 0 : n.block.src), S = Xn(() => s.value ? n.block.placeholderUrl : void 0);
1655
1655
  return (t, n) => (m(), N("div", {
1656
1656
  ref_key: "dropZoneRef",
1657
1657
  ref: l,
@@ -1659,7 +1659,7 @@ var fa = B({
1659
1659
  "data-drop-enabled": A(f),
1660
1660
  class: "tpl:relative tpl:w-full",
1661
1661
  style: y(_.value)
1662
- }, [A(h) ? (m(), R(Qn, {
1662
+ }, [A(h) ? (m(), R(er, {
1663
1663
  key: 0,
1664
1664
  uploading: A(p),
1665
1665
  size: "canvas"
@@ -1675,22 +1675,22 @@ var fa = B({
1675
1675
  src: A(S),
1676
1676
  alt: e.block.alt || A(a).image.altTextPlaceholder,
1677
1677
  style: y(b.value)
1678
- }, null, 12, La)], 8, Ia)) : (m(), N("img", {
1678
+ }, null, 12, za)], 8, Ra)) : (m(), N("img", {
1679
1679
  key: 1,
1680
1680
  class: "tpl:border-0",
1681
1681
  src: A(S),
1682
1682
  alt: e.block.alt,
1683
1683
  style: y(b.value)
1684
- }, null, 12, Ra))], 64)) : e.block.src && s.value ? (m(), N("div", {
1684
+ }, null, 12, Ba))], 64)) : e.block.src && s.value ? (m(), N("div", {
1685
1685
  key: 2,
1686
1686
  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)]",
1687
1687
  style: y([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, b.value])
1688
- }, [E(A(vr), {
1688
+ }, [E(A(br), {
1689
1689
  size: 32,
1690
1690
  "stroke-width": 1.5,
1691
1691
  class: "tpl:text-[var(--tpl-primary)]",
1692
1692
  style: { opacity: "0.5" }
1693
- }), P("span", za, [E(fa, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (m(), N(L, { key: 3 }, [e.block.linkUrl ? (m(), N("a", {
1693
+ }), P("span", Va, [E(ma, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (m(), N(L, { key: 3 }, [e.block.linkUrl ? (m(), N("a", {
1694
1694
  key: 0,
1695
1695
  href: e.block.linkUrl,
1696
1696
  target: "_blank",
@@ -1702,33 +1702,33 @@ var fa = B({
1702
1702
  src: A(x),
1703
1703
  alt: e.block.alt || A(a).image.altTextPlaceholder,
1704
1704
  style: y(b.value)
1705
- }, null, 12, Va)], 8, Ba)) : (m(), N("img", {
1705
+ }, null, 12, Ua)], 8, Ha)) : (m(), N("img", {
1706
1706
  key: 1,
1707
1707
  class: "tpl:border-0",
1708
1708
  src: A(x),
1709
1709
  alt: e.block.alt,
1710
1710
  style: y(b.value)
1711
- }, null, 12, Ha))], 64)) : (m(), N("div", Ua, [A(u) ? (m(), N("button", {
1711
+ }, null, 12, Wa))], 64)) : (m(), N("div", Ga, [A(u) ? (m(), N("button", {
1712
1712
  key: 0,
1713
1713
  "aria-label": A(a).image.browseMedia,
1714
1714
  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)]",
1715
1715
  onClick: n[2] ||= i((...e) => A(g) && A(g)(...e), ["stop"])
1716
- }, [E(A(vr), {
1716
+ }, [E(A(br), {
1717
1717
  size: 14,
1718
1718
  "stroke-width": 1.5
1719
- }), te(" " + d(A(a).image.browseMedia), 1)], 8, Wa)) : (m(), N("span", Ga, d(A(a).image.clickToAdd), 1))]))], 12, Fa));
1719
+ }), te(" " + d(A(a).image.browseMedia), 1)], 8, Ka)) : (m(), N("span", qa, d(A(a).image.clickToAdd), 1))]))], 12, La));
1720
1720
  }
1721
- }), qa = { class: "tpl:w-full" }, Ja = ["href"], Ya = {
1721
+ }), Ya = { class: "tpl:w-full" }, Xa = ["href"], Za = {
1722
1722
  key: 1,
1723
1723
  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)]"
1724
- }, Xa = /* @__PURE__ */ B({
1724
+ }, Qa = /* @__PURE__ */ B({
1725
1725
  __name: "MenuBlock",
1726
1726
  props: {
1727
1727
  block: {},
1728
1728
  viewport: {}
1729
1729
  },
1730
1730
  setup(e) {
1731
- let t = e, { t: n } = ce(), r = Nn(un, "MenuBlock"), a = k(() => ({
1731
+ let t = e, { t: n } = ce(), r = Fn(fn, "MenuBlock"), a = k(() => ({
1732
1732
  display: "flex",
1733
1733
  flexWrap: "wrap",
1734
1734
  gap: `0 ${t.block.spacing}px`,
@@ -1740,7 +1740,7 @@ var fa = B({
1740
1740
  function s(e) {
1741
1741
  return e || t.block.linkColor || t.block.color;
1742
1742
  }
1743
- return (t, r) => (m(), N("div", qa, [o.value ? (m(), N("div", {
1743
+ return (t, r) => (m(), N("div", Ya, [o.value ? (m(), N("div", {
1744
1744
  key: 0,
1745
1745
  style: y(a.value)
1746
1746
  }, [(m(!0), N(L, null, v(e.block.items, (t, n) => (m(), N(L, { key: t.id }, [P("a", {
@@ -1752,22 +1752,22 @@ var fa = B({
1752
1752
  textDecoration: t.underline ? "underline" : "none"
1753
1753
  }),
1754
1754
  onClick: r[0] ||= i(() => {}, ["prevent"])
1755
- }, [E(fa, { text: t.text || "..." }, null, 8, ["text"])], 12, Ja), n < e.block.items.length - 1 ? (m(), N("span", {
1755
+ }, [E(ma, { text: t.text || "..." }, null, 8, ["text"])], 12, Xa), n < e.block.items.length - 1 ? (m(), N("span", {
1756
1756
  key: 0,
1757
1757
  style: y({
1758
1758
  color: e.block.separatorColor,
1759
1759
  padding: `0 ${e.block.spacing}px`
1760
1760
  })
1761
- }, d(e.block.separator), 5)) : j("", !0)], 64))), 128))], 4)) : (m(), N("div", Ya, [E(A(Kn), { size: 16 }), P("span", null, d(A(n).menu.addLinks), 1)]))]));
1761
+ }, d(e.block.separator), 5)) : j("", !0)], 64))), 128))], 4)) : (m(), N("div", Za, [E(A(Jn), { size: 16 }), P("span", null, d(A(n).menu.addLinks), 1)]))]));
1762
1762
  }
1763
1763
  });
1764
1764
  // src/composables/useEditableTextBlock.ts
1765
- function Za(e) {
1766
- let t = z(Xt, tn), r = z(Sn, null), i = z(mn, null), a = z(an, null), { syntax: o } = V(), s = k(() => r?.value ? ut(e(), t.value) : Ee(e(), t.value)), l = k(() => i?.value ? xt(e(), t.value, o) : be(s.value, o)), u = k(() => ft(mr(l.value))), d = M(!1);
1765
+ function $a(e) {
1766
+ let t = z(Qt, rn), r = z(wn, null), i = z(gn, null), a = z(sn, null), { syntax: o } = V(), s = k(() => r?.value ? qe(e(), t.value) : Be(e(), t.value)), l = k(() => i?.value ? et(e(), t.value, o) : Ve(s.value, o)), u = k(() => lt(gr(l.value))), d = M(!1);
1767
1767
  c(() => a?.value, (e) => {
1768
1768
  e && (d.value = !1);
1769
1769
  });
1770
- let f = M(null), { top: p, left: m } = n(f), { toLocal: h } = Nt(), g = k(() => h({
1770
+ let f = M(null), { top: p, left: m } = n(f), { toLocal: h } = Ft(), g = k(() => h({
1771
1771
  top: p.value - 8,
1772
1772
  left: m.value
1773
1773
  }));
@@ -1787,14 +1787,14 @@ function Za(e) {
1787
1787
  };
1788
1788
  }
1789
1789
  // src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
1790
- var Qa = ["innerHTML"], $a = /* @__PURE__ */ B({
1790
+ var eo = ["innerHTML"], to = /* @__PURE__ */ B({
1791
1791
  __name: "ParagraphBlock",
1792
1792
  props: {
1793
1793
  block: {},
1794
1794
  viewport: {}
1795
1795
  },
1796
1796
  setup(e) {
1797
- let t = e, n = oe(() => import("./ParagraphEditor-Db1cmj8Y.js").then((e) => e.t)), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = Za(() => t.block.content);
1797
+ let t = e, n = oe(() => import("./ParagraphEditor-DTdnxgDZ.js").then((e) => e.t)), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = $a(() => t.block.content);
1798
1798
  return (t, l) => (m(), N("div", {
1799
1799
  ref_key: "blockRef",
1800
1800
  ref: i,
@@ -1813,11 +1813,11 @@ var Qa = ["innerHTML"], $a = /* @__PURE__ */ B({
1813
1813
  key: 1,
1814
1814
  class: "tpl-text-content tpl:outline-none",
1815
1815
  innerHTML: A(o)
1816
- }, null, 8, Qa))], 544));
1816
+ }, null, 8, eo))], 544));
1817
1817
  }
1818
1818
  });
1819
1819
  // src/utils/updateBlockList.ts
1820
- function eo(e, t, n, r = 0, i) {
1820
+ function no(e, t, n, r = 0, i) {
1821
1821
  let a = n ? e.content.value.blocks.find((e) => e.id === n) : void 0, o = n ? a?.type === "section" ? a.children[r] ?? [] : [] : e.content.value.blocks, s = t.map((e) => e.id);
1822
1822
  if (o.some((e) => !s.includes(e.id))) return;
1823
1823
  let c = t.filter((e) => !o.some((t) => t.id === e.id)), l, u = -1;
@@ -1830,19 +1830,19 @@ function eo(e, t, n, r = 0, i) {
1830
1830
  l && (e.findBlockLocation(l.id) ? e.moveBlock(l.id, u, n, r) : e.addBlock(JSON.parse(JSON.stringify(l)), n, r, u));
1831
1831
  }
1832
1832
  // src/utils/mergeTagTokens.ts
1833
- function to(e, t, n) {
1833
+ function ro(e, t, n) {
1834
1834
  let r = [], i = "\0MT";
1835
1835
  for (; e.includes(i);) i += "_";
1836
- let a = n === "html" ? _e(e, (e) => {
1836
+ let a = n === "html" ? Re(e, (e) => {
1837
1837
  let t = r.push(e) - 1;
1838
1838
  return `${i}${t}\u0000`;
1839
1839
  }) : e, o = Array.from(a.matchAll(RegExp(`${i}\\d+\u0000`, "g")), (e) => ({
1840
1840
  start: e.index,
1841
1841
  end: e.index + e[0].length
1842
- })), s = [], c = Ke(a, t, "logic"), l = [], u = 0;
1842
+ })), s = [], c = ft(a, t, "logic"), l = [], u = 0;
1843
1843
  for (let e of ["logic", "value"]) {
1844
1844
  let r = 0;
1845
- for (let i of e === "logic" ? c : Ke(a, t, "value")) {
1845
+ for (let i of e === "logic" ? c : ft(a, t, "value")) {
1846
1846
  let t = i.index, a = t + i.value.length;
1847
1847
  for (; o[r]?.end <= t;) r++;
1848
1848
  let c = o[r];
@@ -1858,51 +1858,51 @@ function to(e, t, n) {
1858
1858
  }), s.push({
1859
1859
  start: t,
1860
1860
  end: a,
1861
- value: n === "html" ? pe(i.value) : i.value
1861
+ value: n === "html" ? pt(i.value) : i.value
1862
1862
  });
1863
1863
  }
1864
1864
  }
1865
1865
  }
1866
1866
  return [...r, ...s.map((e) => e.value)].sort();
1867
1867
  }
1868
- function no(e, t, n, r) {
1869
- return JSON.stringify(to(e, n, r)) !== JSON.stringify(to(t, n, r));
1868
+ function io(e, t, n, r) {
1869
+ return JSON.stringify(ro(e, n, r)) !== JSON.stringify(ro(t, n, r));
1870
1870
  }
1871
1871
  // src/components/localization/LocaleStatusChip.vue?vue&type=script&setup=true&lang.ts
1872
- var ro = [
1872
+ var ao = [
1873
1873
  "data-state",
1874
1874
  "aria-label",
1875
1875
  "title",
1876
1876
  "aria-expanded",
1877
1877
  "aria-controls",
1878
1878
  "onKeydown"
1879
- ], io = [
1879
+ ], oo = [
1880
1880
  "aria-label",
1881
1881
  "aria-labelledby",
1882
1882
  "aria-describedby",
1883
1883
  "onKeydown"
1884
- ], ao = ["id"], oo = ["id"], so = { class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, co = ["disabled"], lo = {
1884
+ ], so = ["id"], co = ["id"], lo = { class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, uo = ["disabled"], fo = {
1885
1885
  key: 0,
1886
1886
  class: "tpl:m-0 tpl:mb-2 tpl:text-xs tpl:font-medium"
1887
- }, uo = {
1887
+ }, po = {
1888
1888
  key: 1,
1889
1889
  class: "tpl:m-0"
1890
- }, fo = { class: "tpl:m-0" }, po = { class: "tpl:mt-2 tpl:mb-0 tpl:break-words tpl:text-[var(--tpl-chrome-text-muted)]" }, mo = {
1890
+ }, mo = { class: "tpl:m-0" }, ho = { class: "tpl:mt-2 tpl:mb-0 tpl:break-words tpl:text-[var(--tpl-chrome-text-muted)]" }, go = {
1891
1891
  key: 3,
1892
1892
  class: "tpl:m-0"
1893
- }, ho = {
1893
+ }, _o = {
1894
1894
  key: 4,
1895
1895
  class: "tpl:m-0"
1896
- }, go = {
1896
+ }, vo = {
1897
1897
  key: 5,
1898
1898
  class: "tpl:m-0"
1899
- }, _o = {
1899
+ }, yo = {
1900
1900
  key: 6,
1901
1901
  class: "tpl:m-0 tpl:list-none tpl:p-0"
1902
- }, vo = ["onClick"], yo = {
1902
+ }, bo = ["onClick"], xo = {
1903
1903
  key: 7,
1904
1904
  class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:gap-1"
1905
- }, bo = ["data-testid", "disabled"], xo = /*#__PURE__*/ Er(/* @__PURE__ */ B({
1905
+ }, So = ["data-testid", "disabled"], Co = /*#__PURE__*/ Or(/* @__PURE__ */ B({
1906
1906
  __name: "LocaleStatusChip",
1907
1907
  props: {
1908
1908
  blockId: {},
@@ -1922,24 +1922,24 @@ var ro = [
1922
1922
  },
1923
1923
  emits: ["target"],
1924
1924
  setup(e, { emit: t }) {
1925
- let n = e, r = t, a = z(Pn, null), s = z(Tn, null), l = z(zt, null), u = z(jn, "en") ?? "en", { t: f, format: g } = ce(), b = se(), x = jt(), { toLocal: S } = Nt(), C = M(null), w = M(null), T = M(!1), E = M(!1), D = M(null), O = M(null), te = null, re = M({
1925
+ let n = e, r = t, a = z(In, null), s = z(Dn, null), l = z(Vt, null), u = z(Nn, "en") ?? "en", { t: f, format: g } = ce(), b = se(), x = Nt(), { toLocal: S } = Ft(), C = M(null), w = M(null), T = M(!1), E = M(!1), D = M(null), O = M(null), te = null, re = M({
1926
1926
  top: 0,
1927
1927
  left: 0
1928
1928
  }), ie = M({
1929
1929
  maxHeight: 0,
1930
1930
  maxWidth: 0
1931
- }), F = `tpl-locale-popover-${ct()}`, I = k(() => xr(a?.activeLocale?.value ?? "")), ae = k(() => xr(a?.content.value.settings.locale ?? "en"));
1931
+ }), F = `tpl-locale-popover-${$e()}`, I = k(() => Cr(a?.activeLocale?.value ?? "")), ae = k(() => Cr(a?.content.value.settings.locale ?? "en"));
1932
1932
  function oe(e, t) {
1933
1933
  switch (e) {
1934
1934
  case "tags-differ": return f.localization.tagsDiffer;
1935
1935
  case "hidden": return g(f.localization.hidden, { language: I.value });
1936
1936
  case "changed": return g(f.localization.changed, { language: I.value });
1937
- case "default-stale": return Sr(f.localization.staleLanguages, t, u);
1938
- case "missing": return t === 1 ? f.localization.notTranslated : Sr(f.localization.notTranslatedCount, t, u);
1939
- default: return t === 1 ? f.localization.outOfDate : Sr(f.localization.staleCount, t, u);
1937
+ case "default-stale": return wr(f.localization.staleLanguages, t, u);
1938
+ case "missing": return t === 1 ? f.localization.notTranslated : wr(f.localization.notTranslatedCount, t, u);
1939
+ default: return t === 1 ? f.localization.outOfDate : wr(f.localization.staleCount, t, u);
1940
1940
  }
1941
1941
  }
1942
- let B = k(() => oe(n.state, n.count)), V = k(() => n.popoverState ?? n.state), le = k(() => n.popoverCount ?? n.count), ue = k(() => oe(V.value, le.value)), de = k(() => n.state === "hidden" ? Nr : n.state === "changed" ? br : n.state === "default-stale" ? fr : n.state === "stale" ? yr : _r), fe = k(() => V.value === "default-stale" || (V.value === "missing" || V.value === "stale") && le.value > 1), pe = k(() => n.editable && n.eligibleGaps && s?.isAvailable.value);
1942
+ let B = k(() => oe(n.state, n.count)), V = k(() => n.popoverState ?? n.state), le = k(() => n.popoverCount ?? n.count), ue = k(() => oe(V.value, le.value)), de = k(() => n.state === "hidden" ? Fr : n.state === "changed" ? Sr : n.state === "default-stale" ? mr : n.state === "stale" ? xr : yr), fe = k(() => V.value === "default-stale" || (V.value === "missing" || V.value === "stale") && le.value > 1), pe = k(() => n.editable && n.eligibleGaps && s?.isAvailable.value);
1943
1943
  function me(e = !1) {
1944
1944
  T.value = !1, E.value = !1, te = null, e && C.value?.focus({ preventScroll: !0 });
1945
1945
  }
@@ -2048,7 +2048,7 @@ var ro = [
2048
2048
  size: 12,
2049
2049
  "stroke-width": 2,
2050
2050
  "aria-hidden": "true"
2051
- }))], 40, ro), A(x) && T.value ? (m(), R(ee, {
2051
+ }))], 40, ao), A(x) && T.value ? (m(), R(ee, {
2052
2052
  key: 0,
2053
2053
  to: A(x)
2054
2054
  }, [P("div", {
@@ -2074,80 +2074,80 @@ var ro = [
2074
2074
  P("h3", {
2075
2075
  id: `${F}-question`,
2076
2076
  class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
2077
- }, d(A(Sr)(A(f).localization.translationConfirmation, e.translationCount ?? 0, A(u))), 9, ao),
2077
+ }, d(A(wr)(A(f).localization.translationConfirmation, e.translationCount ?? 0, A(u))), 9, so),
2078
2078
  P("p", {
2079
2079
  id: `${F}-warning`,
2080
2080
  class: "tpl:m-0 tpl:text-[var(--tpl-text-muted)]"
2081
- }, d(A(g)(A(f).localization.translationDescription, { language: I.value })), 9, oo),
2082
- P("div", so, [P("button", {
2081
+ }, d(A(g)(A(f).localization.translationDescription, { language: I.value })), 9, co),
2082
+ P("div", lo, [P("button", {
2083
2083
  ref_key: "confirmationCancel",
2084
2084
  ref: O,
2085
2085
  type: "button",
2086
2086
  "data-testid": "translation-confirm-cancel",
2087
- class: h(A(wr)),
2087
+ class: h(A(Er)),
2088
2088
  onClick: Ee
2089
2089
  }, d(A(f).localization.cancel), 3), P("button", {
2090
2090
  type: "button",
2091
2091
  "data-testid": "translation-confirm",
2092
- class: h(A(Tr)),
2092
+ class: h(A(Dr)),
2093
2093
  disabled: !pe.value || !!A(s)?.running.value || !e.translationCount,
2094
2094
  onClick: Oe
2095
- }, d(A(Sr)(A(f).localization.translateAllFields, e.translationCount ?? 0, A(u))), 11, co)])
2095
+ }, d(A(wr)(A(f).localization.translateAllFields, e.translationCount ?? 0, A(u))), 11, uo)])
2096
2096
  ], 64)) : (m(), N(L, { key: 1 }, [
2097
- fe.value ? (m(), N("p", lo, d(ue.value), 1)) : j("", !0),
2098
- V.value === "missing" ? (m(), N("p", uo, d(A(g)(A(f).localization.missingExplanation, { default: ae.value })), 1)) : V.value === "stale" ? (m(), N(L, { key: 2 }, [P("p", fo, d(A(g)(A(f).localization.staleExplanation, { default: ae.value })), 1), P("p", po, d(A(g)(A(f).localization.currentExcerpt, { excerpt: e.excerpt })), 1)], 64)) : V.value === "tags-differ" ? (m(), N("p", mo, d(A(g)(A(f).localization.tagsDifferExplanation, { default: ae.value })), 1)) : V.value === "changed" ? (m(), N("p", ho, d(A(Sr)(A(f).localization.changedProperties, le.value, A(u), { default: ae.value })), 1)) : V.value === "hidden" ? (m(), N("p", go, d(A(g)(A(f).localization.hiddenExplanation, { language: I.value })), 1)) : (m(), N("ul", _o, [(m(!0), N(L, null, v(e.staleLocales, (e) => (m(), N("li", {
2097
+ fe.value ? (m(), N("p", fo, d(ue.value), 1)) : j("", !0),
2098
+ V.value === "missing" ? (m(), N("p", po, d(A(g)(A(f).localization.missingExplanation, { default: ae.value })), 1)) : V.value === "stale" ? (m(), N(L, { key: 2 }, [P("p", mo, d(A(g)(A(f).localization.staleExplanation, { default: ae.value })), 1), P("p", ho, d(A(g)(A(f).localization.currentExcerpt, { excerpt: e.excerpt })), 1)], 64)) : V.value === "tags-differ" ? (m(), N("p", go, d(A(g)(A(f).localization.tagsDifferExplanation, { default: ae.value })), 1)) : V.value === "changed" ? (m(), N("p", _o, d(A(wr)(A(f).localization.changedProperties, le.value, A(u), { default: ae.value })), 1)) : V.value === "hidden" ? (m(), N("p", vo, d(A(g)(A(f).localization.hiddenExplanation, { language: I.value })), 1)) : (m(), N("ul", yo, [(m(!0), N(L, null, v(e.staleLocales, (e) => (m(), N("li", {
2099
2099
  key: e,
2100
2100
  class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3"
2101
- }, [P("span", null, d(A(xr)(e)), 1), P("button", {
2101
+ }, [P("span", null, d(A(Cr)(e)), 1), P("button", {
2102
2102
  type: "button",
2103
- class: h(A(Cr)),
2103
+ class: h(A(Tr)),
2104
2104
  onClick: (t) => we(e)
2105
- }, d(A(f).localization.open), 11, vo)]))), 128))])),
2106
- e.editable && V.value !== "default-stale" ? (m(), N("div", yo, [
2105
+ }, d(A(f).localization.open), 11, bo)]))), 128))])),
2106
+ e.editable && V.value !== "default-stale" ? (m(), N("div", xo, [
2107
2107
  pe.value && (V.value === "missing" || V.value === "stale" || V.value === "tags-differ") ? (m(), N("button", {
2108
2108
  key: 0,
2109
2109
  type: "button",
2110
2110
  ref_key: "retranslate",
2111
2111
  ref: D,
2112
2112
  "data-testid": V.value === "missing" ? "locale-translate" : "locale-retranslate",
2113
- class: h(A(wr)),
2113
+ class: h(A(Er)),
2114
2114
  disabled: !!A(s)?.running.value,
2115
2115
  onClick: Te
2116
- }, d(V.value === "missing" ? A(f).localization.translate : A(f).localization.retranslate), 11, bo)) : j("", !0),
2116
+ }, d(V.value === "missing" ? A(f).localization.translate : A(f).localization.retranslate), 11, So)) : j("", !0),
2117
2117
  V.value === "stale" || V.value === "tags-differ" ? (m(), N(L, { key: 1 }, [V.value === "stale" ? (m(), N("button", {
2118
2118
  key: 0,
2119
2119
  type: "button",
2120
2120
  "data-testid": "locale-keep",
2121
- class: h(pe.value ? A(Cr) : A(wr)),
2121
+ class: h(pe.value ? A(Tr) : A(Er)),
2122
2122
  onClick: xe
2123
2123
  }, d(A(f).localization.keep), 3)) : j("", !0), P("button", {
2124
2124
  type: "button",
2125
2125
  "data-testid": "locale-use-default",
2126
- class: h(V.value === "tags-differ" && !pe.value ? A(wr) : A(Cr)),
2126
+ class: h(V.value === "tags-differ" && !pe.value ? A(Er) : A(Tr)),
2127
2127
  onClick: n[0] ||= (t) => Se(V.value === "tags-differ" ? e.tagsDiffer ?? [] : e.stale)
2128
2128
  }, d(A(g)(A(f).localization.useDefaultLanguage, { default: ae.value })), 3)], 64)) : j("", !0),
2129
2129
  V.value === "changed" ? (m(), N("button", {
2130
2130
  key: 2,
2131
2131
  type: "button",
2132
2132
  "data-testid": "locale-reset",
2133
- class: h(A(wr)),
2133
+ class: h(A(Er)),
2134
2134
  onClick: n[1] ||= (t) => Se(e.setPaths)
2135
2135
  }, d(A(f).localization.resetChanges), 3)) : j("", !0),
2136
2136
  V.value === "hidden" ? (m(), N("button", {
2137
2137
  key: 3,
2138
2138
  type: "button",
2139
2139
  "data-testid": "locale-show",
2140
- class: h(A(wr)),
2140
+ class: h(A(Er)),
2141
2141
  onClick: Ce
2142
2142
  }, d(A(f).localization.show), 3)) : j("", !0)
2143
2143
  ])) : j("", !0)
2144
- ], 64))], 44, io)], 8, ["to"])) : j("", !0)], 64));
2144
+ ], 64))], 44, oo)], 8, ["to"])) : j("", !0)], 64));
2145
2145
  }
2146
- }), [["__scopeId", "data-v-3343ae7d"]]), So = /* @__PURE__ */ B({
2146
+ }), [["__scopeId", "data-v-3343ae7d"]]), wo = /* @__PURE__ */ B({
2147
2147
  __name: "LocaleMarkers",
2148
2148
  props: { block: {} },
2149
2149
  setup(e) {
2150
- let t = e, n = z(Pn, null), r = z(Yt, void 0), i = z(gn, []), a = z(Lt, qe.liquid), o = z(_n, k(() => /* @__PURE__ */ new Set())), s = k(() => n?.activeLocale?.value), l = k(() => s.value ? t.block.l10n?.[s.value] : void 0), u = k(() => ({
2150
+ let t = e, n = z(In, null), r = z(Zt, void 0), i = z(vn, []), a = z(zt, Ct.liquid), o = z(yn, k(() => /* @__PURE__ */ new Set())), s = k(() => n?.activeLocale?.value), l = k(() => s.value ? t.block.l10n?.[s.value] : void 0), u = k(() => ({
2151
2151
  blocks: [t.block.type === "section" || t.block.type === "wrapper" ? {
2152
2152
  ...t.block,
2153
2153
  children: []
@@ -2156,14 +2156,14 @@ var ro = [
2156
2156
  locale: n.content.value.settings.locale,
2157
2157
  locales: n.content.value.settings.locales
2158
2158
  }
2159
- })), d = k(() => n && s.value && !o.value.has(s.value) ? Oe(u.value, s.value, i) : {
2159
+ })), d = k(() => n && s.value && !o.value.has(s.value) ? ve(u.value, s.value, i) : {
2160
2160
  missing: [],
2161
2161
  stale: [],
2162
2162
  translated: []
2163
2163
  }), f = k(() => d.value.stale.map((e) => e.slice(t.block.id.length + 1))), p = k(() => d.value.translated.flatMap((e) => {
2164
- let n = e.slice(t.block.id.length + 1), r = Et(t.block, n), i = l.value?.text?.[n]?.value, o = t.block.type === "html" || Ze[t.block.type]?.includes(n) ? "html" : "text";
2165
- return typeof r == "string" && i !== void 0 && no(r, i, a, o) ? [n] : [];
2166
- })), h = M(null), g = k(() => n && s.value && !o.value.has(s.value) ? je(u.value, s.value, {
2164
+ let n = e.slice(t.block.id.length + 1), r = Ie(t.block, n), i = l.value?.text?.[n]?.value, o = t.block.type === "html" || Et[t.block.type]?.includes(n) ? "html" : "text";
2165
+ return typeof r == "string" && i !== void 0 && io(r, i, a, o) ? [n] : [];
2166
+ })), h = M(null), g = k(() => n && s.value && !o.value.has(s.value) ? De(u.value, s.value, {
2167
2167
  syntax: a,
2168
2168
  definitions: i,
2169
2169
  doNotTranslate: r?.doNotTranslate,
@@ -2173,9 +2173,9 @@ var ro = [
2173
2173
  let n = e.slice(t.block.id.length + 1);
2174
2174
  return d.value.translated.includes(e) && !p.value.includes(n);
2175
2175
  })), v = k(() => Object.keys(l.value?.set ?? {}).filter((e) => {
2176
- let n = e.split("."), r = n.pop(), i = n.length ? Et(t.block, n.join(".")) : t.block;
2177
- return Array.isArray(i) ? Et(i, r) !== void 0 : i !== void 0;
2178
- })), y = k(() => !s.value && n ? (n.content.value.settings.locales ?? []).filter((e) => !o.value.has(e) && Oe(u.value, e, i).stale.length > 0) : []), b = k(() => s.value ? o.value.has(s.value) ? null : l.value?.hidden ? "hidden" : d.value.missing.length ? "missing" : f.value.length ? "stale" : p.value.length ? "tags-differ" : v.value.length ? "changed" : null : y.value.length ? "default-stale" : null);
2176
+ let n = e.split("."), r = n.pop(), i = n.length ? Ie(t.block, n.join(".")) : t.block;
2177
+ return Array.isArray(i) ? Ie(i, r) !== void 0 : i !== void 0;
2178
+ })), y = k(() => !s.value && n ? (n.content.value.settings.locales ?? []).filter((e) => !o.value.has(e) && ve(u.value, e, i).stale.length > 0) : []), b = k(() => s.value ? o.value.has(s.value) ? null : l.value?.hidden ? "hidden" : d.value.missing.length ? "missing" : f.value.length ? "stale" : p.value.length ? "tags-differ" : v.value.length ? "changed" : null : y.value.length ? "default-stale" : null);
2179
2179
  function x(e) {
2180
2180
  return e === "missing" ? d.value.missing.length : e === "stale" ? f.value.length : e === "tags-differ" ? p.value.length : e === "default-stale" ? y.value.length : v.value.length;
2181
2181
  }
@@ -2184,12 +2184,12 @@ var ro = [
2184
2184
  h.value = null;
2185
2185
  });
2186
2186
  let T = k(() => {
2187
- let e = Et(t.block, f.value[0] ?? "");
2187
+ let e = Ie(t.block, f.value[0] ?? "");
2188
2188
  if (typeof e != "string") return "";
2189
2189
  let n = e.split(/<[^>]*>/).join("");
2190
2190
  return Array.from(n).slice(0, 60).join("");
2191
2191
  });
2192
- return (t, n) => A(r) && b.value ? (m(), R(xo, {
2192
+ return (t, n) => A(r) && b.value ? (m(), R(Co, {
2193
2193
  key: 0,
2194
2194
  "block-id": e.block.id,
2195
2195
  state: b.value,
@@ -2223,21 +2223,21 @@ var ro = [
2223
2223
  "editable"
2224
2224
  ])) : j("", !0);
2225
2225
  }
2226
- }), Co = [
2226
+ }), To = [
2227
2227
  "data-block-id",
2228
2228
  "data-block-type",
2229
2229
  "data-tpl-picked"
2230
- ], wo = ["aria-label"], To = ["data-lock-holder"], Eo = ["aria-label"], Do = [
2230
+ ], Eo = ["aria-label"], Do = ["data-lock-holder"], Oo = ["aria-label"], ko = [
2231
2231
  "aria-label",
2232
2232
  "aria-pressed",
2233
2233
  "title"
2234
- ], Oo = ["aria-label", "title"], ko = ["aria-label", "title"], Ao = ["aria-label", "title"], jo = {
2234
+ ], Ao = ["aria-label", "title"], jo = ["aria-label", "title"], Mo = ["aria-label", "title"], No = {
2235
2235
  key: 3,
2236
2236
  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"
2237
- }, Mo = { 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)]" }, No = {
2237
+ }, Po = { 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)]" }, Fo = {
2238
2238
  key: 4,
2239
2239
  class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
2240
- }, Po = ["aria-label", "title"], Fo = /*#__PURE__*/ Er(/* @__PURE__ */ B({
2240
+ }, Io = ["aria-label", "title"], Lo = /*#__PURE__*/ Or(/* @__PURE__ */ B({
2241
2241
  __name: "BlockWrapper",
2242
2242
  props: {
2243
2243
  block: {},
@@ -2250,7 +2250,7 @@ var ro = [
2250
2250
  },
2251
2251
  emits: ["select"],
2252
2252
  setup(t, { emit: n }) {
2253
- let a = oe(() => import("./BlockIssueBadge-B8sl9BM1.js")), o = t, s = k(() => o.displayBlock ?? o.block), l = n, { t: p, format: g } = ce(), v = z(Fn, null), b = M(null), x = k(() => v?.liftedBlockId.value === o.block.id), S = k(() => x.value ? g(p.blockActions.dragLifted, { block: o.block.type }) : p.blockActions.drag);
2253
+ let a = oe(() => import("./BlockIssueBadge-DlhA_I6J.js")), o = t, s = k(() => o.displayBlock ?? o.block), l = n, { t: p, format: g } = ce(), v = z(Ln, null), b = M(null), x = k(() => v?.liftedBlockId.value === o.block.id), S = k(() => x.value ? g(p.blockActions.dragLifted, { block: o.block.type }) : p.blockActions.drag);
2254
2254
  async function C() {
2255
2255
  await _(), b.value?.focus();
2256
2256
  }
@@ -2260,7 +2260,7 @@ var ro = [
2260
2260
  let T = k(() => !o.viewport || !s.value.visibility ? !1 : s.value.visibility[o.viewport] === !1), ee = k(() => !!(xe?.activeLocale?.value && o.block.l10n?.[xe.activeLocale.value]?.hidden)), D = k(() => o.previewMode === !0 && (T.value || ee.value)), O = k(() => o.viewport ? {
2261
2261
  desktop: p.viewport.desktop,
2262
2262
  mobile: p.viewport.mobile
2263
- }[o.viewport] ?? o.viewport : ""), ne = k(() => !!s.value.displayCondition), re = z(An, null), ie = z(Cn, null), F = z(pn, {}), I = k(() => F.savedBlocks?.isPicking.value === !0), L = k(() => !o.nested && F.savedBlocks?.isAvailable.value === !0 && F.savedBlocks?.canCreate.value === !0), ae = k(() => o.isSelected && !I.value), B = k(() => F.comments?.getBlockCount(o.block.id) ?? 0), se = M(null), V = M(null), le = M(null), ue = M(null), de = M({
2263
+ }[o.viewport] ?? o.viewport : ""), ne = k(() => !!s.value.displayCondition), re = z(Mn, null), ie = z(Tn, null), F = z(hn, {}), I = k(() => F.savedBlocks?.isPicking.value === !0), L = k(() => !o.nested && F.savedBlocks?.isAvailable.value === !0 && F.savedBlocks?.canCreate.value === !0), ae = k(() => o.isSelected && !I.value), B = k(() => F.comments?.getBlockCount(o.block.id) ?? 0), se = M(null), V = M(null), le = M(null), ue = M(null), de = M({
2264
2264
  left: "calc(100% + 8px)",
2265
2265
  top: "50%"
2266
2266
  }), fe = M(!1), pe = k(() => V.value ?? ue.value), me = k(() => pe.value?.closest(".tpl-body"));
@@ -2300,15 +2300,15 @@ var ro = [
2300
2300
  ue.value,
2301
2301
  me.value
2302
2302
  ].filter((e) => !!e) : []), he), e(me, "scroll", he, { passive: !0 });
2303
- let ge = k(() => F.collaboration?.lockOf(o.block.id) ?? null), _e = k(() => ge.value?.holder.type === "guest" ? p.collaboration.guest : ge.value?.holder.name ?? ""), ve = k(() => F.collaboration?.agentHighlightOf(o.block.id) ?? F.ai?.highlightOf(o.block.id) ?? null), ye = or(() => s.value.type === "section" ? s.value.backgroundImage : void 0), be = or(() => s.value.type === "section" ? s.value.wrapper?.backgroundImage : void 0), xe = z(Pn, null), Ce = xe ? Pt(xe) : null, we = z(bn, null) ?? Ce?.content ?? null;
2304
- c([() => xe?.activeLocale?.value, () => Ce && Se(Ce.settings.value)], he, { flush: "post" });
2305
- let Te = z($t, void 0), Ee = k(() => ra(s.value, {
2303
+ let ge = k(() => F.collaboration?.lockOf(o.block.id) ?? null), _e = k(() => ge.value?.holder.type === "guest" ? p.collaboration.guest : ge.value?.holder.name ?? ""), ve = k(() => F.collaboration?.agentHighlightOf(o.block.id) ?? F.ai?.highlightOf(o.block.id) ?? null), ye = cr(() => s.value.type === "section" ? s.value.backgroundImage : void 0), be = cr(() => s.value.type === "section" ? s.value.wrapper?.backgroundImage : void 0), xe = z(In, null), Se = xe ? It(xe) : null, Ce = z(Sn, null) ?? Se?.content ?? null;
2304
+ c([() => xe?.activeLocale?.value, () => Se && Te(Se.settings.value)], he, { flush: "post" });
2305
+ let we = z(tn, void 0), Ee = k(() => aa(s.value, {
2306
2306
  backgroundImageUrl: ye.value,
2307
- heroBoxWidth: Zn(s.value) ? nr(s.value, we?.value, Te) : void 0
2308
- })), De = k(() => la(s.value, { backgroundImageUrl: be.value })), Oe = k(() => {
2307
+ heroBoxWidth: $n(s.value) ? ir(s.value, Ce?.value, we) : void 0
2308
+ })), De = k(() => da(s.value, { backgroundImageUrl: be.value })), Oe = k(() => {
2309
2309
  let e = s.value;
2310
2310
  return e.type === "section" && e.wrapper?.fullWidth === !0 ? e : void 0;
2311
- }), ke = k(() => ca(Oe.value?.wrapper?.padding));
2311
+ }), ke = k(() => ua(Oe.value?.wrapper?.padding));
2312
2312
  function Ae(e) {
2313
2313
  o.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), l("select"));
2314
2314
  }
@@ -2352,12 +2352,12 @@ var ro = [
2352
2352
  class: h(["tpl-comment-indicator tpl:flex tpl:min-h-6 tpl:min-w-6 tpl:shrink-0 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)]", fe.value ? void 0 : "tpl:absolute tpl:-top-2 tpl:inset-s-full tpl:ms-2"]),
2353
2353
  "aria-label": A(g)(A(p).blockActions.comments, { count: String(B.value) }),
2354
2354
  onClick: n[0] ||= i((e) => A(F).comments?.openForBlock(t.block.id), ["stop"])
2355
- }, [E(A(Or), {
2355
+ }, [E(A(Ar), {
2356
2356
  size: 12,
2357
2357
  "stroke-width": 2.5
2358
- }), te(" " + d(B.value), 1)], 10, wo)) : j("", !0),
2358
+ }), te(" " + d(B.value), 1)], 10, Eo)) : j("", !0),
2359
2359
  E(A(a), { "block-id": t.block.id }, null, 8, ["block-id"]),
2360
- t.previewMode ? j("", !0) : (m(), R(So, {
2360
+ t.previewMode ? j("", !0) : (m(), R(wo, {
2361
2361
  key: 1,
2362
2362
  block: t.block
2363
2363
  }, null, 8, ["block"]))
@@ -2375,9 +2375,9 @@ var ro = [
2375
2375
  class: "tpl:absolute tpl:-top-0.5 tpl:left-1/2 tpl:z-[5] tpl:-translate-x-1/2 tpl:-translate-y-full tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:whitespace-nowrap",
2376
2376
  style: y({
2377
2377
  backgroundColor: ge.value.holder.color,
2378
- color: A(Ar)(ge.value.holder.color)
2378
+ color: A(Mr)(ge.value.holder.color)
2379
2379
  })
2380
- }, d(A(g)(A(p).collaboration.editing, { name: _e.value })), 5)], 12, To)) : j("", !0),
2380
+ }, d(A(g)(A(p).collaboration.editing, { name: _e.value })), 5)], 12, Do)) : j("", !0),
2381
2381
  ve.value === null ? j("", !0) : (m(), N("div", {
2382
2382
  key: ve.value,
2383
2383
  "data-testid": "block-agent-highlight",
@@ -2402,81 +2402,81 @@ var ro = [
2402
2402
  "aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
2403
2403
  title: A(p).blockActions.drag,
2404
2404
  onKeydown: w
2405
- }, [E(A(Fr), {
2405
+ }, [E(A(Lr), {
2406
2406
  size: 14,
2407
2407
  "stroke-width": 1.5
2408
- })], 40, Do),
2408
+ })], 40, ko),
2409
2409
  P("button", {
2410
2410
  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",
2411
2411
  "aria-label": A(p).blockActions.duplicate,
2412
2412
  title: A(p).blockActions.duplicate,
2413
2413
  onClick: i(Me, ["stop"])
2414
- }, [E(A(Dr), {
2414
+ }, [E(A(kr), {
2415
2415
  size: 14,
2416
2416
  "stroke-width": 1.5
2417
- })], 8, Oo),
2417
+ })], 8, Ao),
2418
2418
  L.value ? (m(), N("button", {
2419
2419
  key: 0,
2420
2420
  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",
2421
2421
  "aria-label": A(p).blockActions.saveAsBlock,
2422
2422
  title: A(p).blockActions.saveAsBlock,
2423
2423
  onClick: i(Ne, ["stop"])
2424
- }, [E(A(jr), {
2424
+ }, [E(A(Nr), {
2425
2425
  size: 14,
2426
2426
  "stroke-width": 1.5
2427
- })], 8, ko)) : j("", !0),
2427
+ })], 8, jo)) : j("", !0),
2428
2428
  P("button", {
2429
2429
  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",
2430
2430
  "aria-label": A(p).blockActions.delete,
2431
2431
  title: A(p).blockActions.delete,
2432
2432
  onClick: i(je, ["stop"])
2433
- }, [E(A(kr), {
2433
+ }, [E(A(jr), {
2434
2434
  size: 14,
2435
2435
  "stroke-width": 1.5
2436
- })], 8, Ao)
2437
- ], 12, Eo)) : j("", !0),
2438
- T.value ? (m(), N("div", jo, [P("span", Mo, [E(A(Nr), {
2436
+ })], 8, Mo)
2437
+ ], 12, Oo)) : j("", !0),
2438
+ T.value ? (m(), N("div", No, [P("span", Po, [E(A(Fr), {
2439
2439
  size: 12,
2440
2440
  "stroke-width": 1.5
2441
2441
  }), te(" " + d(A(g)(A(p).blockActions.hiddenOnViewport, { viewport: O.value })), 1)])])) : j("", !0),
2442
- ne.value && !T.value ? (m(), N("div", No, [P("button", {
2442
+ ne.value && !T.value ? (m(), N("div", Fo, [P("button", {
2443
2443
  "data-testid": "condition-toggle",
2444
2444
  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)]",
2445
2445
  "aria-label": A(p).blockActions.conditionToggle,
2446
2446
  title: t.block.displayCondition?.label,
2447
2447
  onClick: i(Pe, ["stop"])
2448
- }, [E(A(Pr), {
2448
+ }, [E(A(Ir), {
2449
2449
  size: 12,
2450
2450
  "stroke-width": 2
2451
- })], 8, Po)])) : j("", !0),
2451
+ })], 8, Io)])) : j("", !0),
2452
2452
  De.value ? (m(), N("div", {
2453
2453
  key: 5,
2454
- class: h(["tpl-section-wrapper tpl-email-surface", A($i)(De.value)]),
2454
+ class: h(["tpl-section-wrapper tpl-email-surface", A(ta)(De.value)]),
2455
2455
  style: y(De.value)
2456
2456
  }, [Oe.value ? (m(), N("div", {
2457
2457
  key: 0,
2458
2458
  class: "tpl-band-frame",
2459
2459
  style: y(ke.value)
2460
2460
  }, [P("div", {
2461
- class: h(["tpl-block-content tpl-email-surface", A($i)(Ee.value)]),
2461
+ class: h(["tpl-block-content tpl-email-surface", A(ta)(Ee.value)]),
2462
2462
  style: y(Ee.value)
2463
2463
  }, [u(e.$slots, "default", {}, void 0, !0)], 6)], 4)) : (m(), N("div", {
2464
2464
  key: 1,
2465
- class: h(["tpl-block-content tpl-email-surface", A($i)(Ee.value)]),
2465
+ class: h(["tpl-block-content tpl-email-surface", A(ta)(Ee.value)]),
2466
2466
  style: y(Ee.value)
2467
2467
  }, [u(e.$slots, "default", {}, void 0, !0)], 6))], 6)) : (m(), N("div", {
2468
2468
  key: 6,
2469
- class: h(["tpl-block-content tpl-email-surface", A($i)(Ee.value)]),
2469
+ class: h(["tpl-block-content tpl-email-surface", A(ta)(Ee.value)]),
2470
2470
  style: y(Ee.value)
2471
2471
  }, [u(e.$slots, "default", {}, void 0, !0)], 6))
2472
- ], 10, Co));
2472
+ ], 10, To));
2473
2473
  }
2474
2474
  }), [["__scopeId", "data-v-872194d3"]]);
2475
2475
  // src/utils/unwrapParagraph.ts
2476
- function Io(e) {
2476
+ function Ro(e) {
2477
2477
  let t = /^\s*<p\b/.exec(e);
2478
2478
  if (!t) return e;
2479
- let n = yt(e, t[0].length);
2479
+ let n = St(e, t[0].length);
2480
2480
  if (n === -1) return e;
2481
2481
  let r = /<\/p>\s*$/.exec(e);
2482
2482
  if (!r || r.index <= n) return e;
@@ -2484,22 +2484,22 @@ function Io(e) {
2484
2484
  return /<\/p>\s*<p\b/i.test(i) ? e : i;
2485
2485
  }
2486
2486
  // src/components/blocks/TitleBlock.vue
2487
- var Lo = /* @__PURE__ */ B({
2487
+ var zo = /* @__PURE__ */ B({
2488
2488
  __name: "TitleBlock",
2489
2489
  props: {
2490
2490
  block: {},
2491
2491
  viewport: {}
2492
2492
  },
2493
2493
  setup(e) {
2494
- let t = e, n = oe(() => import("./TitleEditor-b5Pr_m9j.js")), r = Nn(un, "TitleBlock"), { isEditing: i, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = Za(() => t.block.content), u = k(() => {
2494
+ let t = e, n = oe(() => import("./TitleEditor-BQoSPgOi.js")), r = Fn(fn, "TitleBlock"), { isEditing: i, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = $a(() => t.block.content), u = k(() => {
2495
2495
  let e = {
2496
- fontSize: `${st[t.block.level]}px`,
2497
- lineHeight: String(Ct),
2496
+ fontSize: `${bt[t.block.level]}px`,
2497
+ lineHeight: String(Ge),
2498
2498
  fontWeight: "700",
2499
2499
  textAlign: t.block.textAlign
2500
2500
  };
2501
2501
  return t.block.color && (e.color = t.block.color), t.block.fontFamily && (e.fontFamily = r.resolveFontFamily(t.block.fontFamily)), e;
2502
- }), d = k(() => `h${t.block.level}`), f = k(() => mr(Io(s.value)));
2502
+ }), d = k(() => `h${t.block.level}`), f = k(() => gr(Ro(s.value)));
2503
2503
  return (t, r) => (m(), N("div", {
2504
2504
  ref_key: "blockRef",
2505
2505
  ref: a,
@@ -2525,14 +2525,14 @@ var Lo = /* @__PURE__ */ B({
2525
2525
  innerHTML: f.value
2526
2526
  }, null, 8, ["innerHTML"]))], 36));
2527
2527
  }
2528
- }), Ro = "hero", zo = "#1f2937", Bo = "#ffffff";
2529
- function Vo(e, t) {
2530
- let n = ke("title", e);
2531
- n.color = Bo, n.textAlign = "center";
2532
- let r = ke("paragraph", e);
2533
- r.content = `<p style="text-align: center"><span style="color: ${Bo}">${Ho(t)}</span></p>`;
2534
- let i = ke("button", e);
2535
- return i.align = "center", ze({
2528
+ }), Bo = "hero", Vo = "#1f2937", Ho = "#ffffff";
2529
+ function Uo(e, t) {
2530
+ let n = Se("title", e);
2531
+ n.color = Ho, n.textAlign = "center";
2532
+ let r = Se("paragraph", e);
2533
+ r.content = `<p style="text-align: center"><span style="color: ${Ho}">${Wo(t)}</span></p>`;
2534
+ let i = Se("button", e);
2535
+ return i.align = "center", ht({
2536
2536
  columns: "1",
2537
2537
  children: [[
2538
2538
  n,
@@ -2550,96 +2550,96 @@ function Vo(e, t) {
2550
2550
  bottom: 48,
2551
2551
  left: 24
2552
2552
  },
2553
- backgroundColor: zo
2553
+ backgroundColor: Vo
2554
2554
  }
2555
2555
  });
2556
2556
  }
2557
- function Ho(e) {
2557
+ function Wo(e) {
2558
2558
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
2559
2559
  }
2560
2560
  // src/utils/sectionColumnDrop.ts
2561
- var Uo = /* @__PURE__ */ new Set(["section", Ro]);
2562
- function Wo(e) {
2563
- return e.dataset.blockType !== "section" && !Uo.has(e.dataset.paletteType ?? "");
2561
+ var Go = /* @__PURE__ */ new Set(["section", Bo]);
2562
+ function Ko(e) {
2563
+ return e.dataset.blockType !== "section" && !Go.has(e.dataset.paletteType ?? "");
2564
2564
  }
2565
2565
  // ../../node_modules/.pnpm/vue-draggable-plus@0.6.1_@types+sortablejs@1.15.9/node_modules/vue-draggable-plus/dist/vue-draggable-plus.js
2566
- var Go = Object.defineProperty, Ko = Object.getOwnPropertySymbols, qo = Object.prototype.hasOwnProperty, Jo = Object.prototype.propertyIsEnumerable, Yo = (e, t, n) => t in e ? Go(e, t, {
2566
+ var qo = Object.defineProperty, Jo = Object.getOwnPropertySymbols, Yo = Object.prototype.hasOwnProperty, Xo = Object.prototype.propertyIsEnumerable, Zo = (e, t, n) => t in e ? qo(e, t, {
2567
2567
  enumerable: !0,
2568
2568
  configurable: !0,
2569
2569
  writable: !0,
2570
2570
  value: n
2571
- }) : e[t] = n, Xo = (e, t) => {
2572
- for (var n in t ||= {}) qo.call(t, n) && Yo(e, n, t[n]);
2573
- if (Ko) for (var n of Ko(t)) Jo.call(t, n) && Yo(e, n, t[n]);
2571
+ }) : e[t] = n, Qo = (e, t) => {
2572
+ for (var n in t ||= {}) Yo.call(t, n) && Zo(e, n, t[n]);
2573
+ if (Jo) for (var n of Jo(t)) Xo.call(t, n) && Zo(e, n, t[n]);
2574
2574
  return e;
2575
- }, Zo = (e, t) => {
2575
+ }, $o = (e, t) => {
2576
2576
  var n = {};
2577
- for (var r in e) qo.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
2578
- if (e != null && Ko) for (var r of Ko(e)) t.indexOf(r) < 0 && Jo.call(e, r) && (n[r] = e[r]);
2577
+ for (var r in e) Yo.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
2578
+ if (e != null && Jo) for (var r of Jo(e)) t.indexOf(r) < 0 && Xo.call(e, r) && (n[r] = e[r]);
2579
2579
  return n;
2580
- }, Qo = "[vue-draggable-plus]: ";
2581
- function $o(e) {
2582
- console.warn(Qo + e);
2580
+ }, es = "[vue-draggable-plus]: ";
2581
+ function ts(e) {
2582
+ console.warn(es + e);
2583
2583
  }
2584
- function es(e) {
2585
- console.error(Qo + e);
2584
+ function ns(e) {
2585
+ console.error(es + e);
2586
2586
  }
2587
- function ts(e, t, n) {
2587
+ function rs(e, t, n) {
2588
2588
  return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
2589
2589
  }
2590
- function ns(e) {
2590
+ function is(e) {
2591
2591
  return e.replace(/-(\w)/g, (e, t) => t ? t.toUpperCase() : "");
2592
2592
  }
2593
- function rs(e) {
2594
- return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[ns(n)] = e[n]), t), {});
2593
+ function as(e) {
2594
+ return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[is(n)] = e[n]), t), {});
2595
2595
  }
2596
- function is(e, t) {
2596
+ function os(e, t) {
2597
2597
  return Array.isArray(e) && e.splice(t, 1), e;
2598
2598
  }
2599
- function as(e, t, n) {
2599
+ function ss(e, t, n) {
2600
2600
  return Array.isArray(e) && e.splice(t, 0, n), e;
2601
2601
  }
2602
- function os(e) {
2602
+ function cs(e) {
2603
2603
  return e === void 0;
2604
2604
  }
2605
- function ss(e) {
2605
+ function ls(e) {
2606
2606
  return typeof e == "string";
2607
2607
  }
2608
- function cs(e, t, n) {
2608
+ function us(e, t, n) {
2609
2609
  let r = e.children[n];
2610
2610
  e.insertBefore(t, r);
2611
2611
  }
2612
- function ls(e) {
2612
+ function ds(e) {
2613
2613
  e.parentNode && e.parentNode.removeChild(e);
2614
2614
  }
2615
- function us(e, t = document) {
2615
+ function fs(e, t = document) {
2616
2616
  let n = null;
2617
- return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || $o(`Element not found: ${e}`), n;
2617
+ return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || ts(`Element not found: ${e}`), n;
2618
2618
  }
2619
- function ds(e, t, n = null) {
2619
+ function ps(e, t, n = null) {
2620
2620
  return function(...r) {
2621
2621
  return e.apply(n, r), t.apply(n, r);
2622
2622
  };
2623
2623
  }
2624
- function fs(e, t) {
2625
- let n = Xo({}, e);
2624
+ function ms(e, t) {
2625
+ let n = Qo({}, e);
2626
2626
  return Object.keys(t).forEach((r) => {
2627
- n[r] ? n[r] = ds(e[r], t[r]) : n[r] = t[r];
2627
+ n[r] ? n[r] = ps(e[r], t[r]) : n[r] = t[r];
2628
2628
  }), n;
2629
2629
  }
2630
- function ps(e) {
2630
+ function hs(e) {
2631
2631
  return e instanceof HTMLElement;
2632
2632
  }
2633
- function ms(e, t) {
2633
+ function gs(e, t) {
2634
2634
  Object.keys(e).forEach((n) => {
2635
2635
  t(n, e[n]);
2636
2636
  });
2637
2637
  }
2638
- function hs(e) {
2638
+ function _s(e) {
2639
2639
  return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
2640
2640
  }
2641
- var gs = Object.assign;
2642
- function _s(e, t) {
2641
+ var vs = Object.assign;
2642
+ function ys(e, t) {
2643
2643
  var n = Object.keys(e);
2644
2644
  if (Object.getOwnPropertySymbols) {
2645
2645
  var r = Object.getOwnPropertySymbols(e);
@@ -2649,26 +2649,26 @@ function _s(e, t) {
2649
2649
  }
2650
2650
  return n;
2651
2651
  }
2652
- function vs(e) {
2652
+ function bs(e) {
2653
2653
  for (var t = 1; t < arguments.length; t++) {
2654
2654
  var n = arguments[t] == null ? {} : arguments[t];
2655
- t % 2 ? _s(Object(n), !0).forEach(function(t) {
2656
- bs(e, t, n[t]);
2657
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _s(Object(n)).forEach(function(t) {
2655
+ t % 2 ? ys(Object(n), !0).forEach(function(t) {
2656
+ Ss(e, t, n[t]);
2657
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ys(Object(n)).forEach(function(t) {
2658
2658
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
2659
2659
  });
2660
2660
  }
2661
2661
  return e;
2662
2662
  }
2663
- function ys(e) {
2663
+ function xs(e) {
2664
2664
  "@babel/helpers - typeof";
2665
- return ys = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2665
+ return xs = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2666
2666
  return typeof e;
2667
2667
  } : function(e) {
2668
2668
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2669
- }, ys(e);
2669
+ }, xs(e);
2670
2670
  }
2671
- function bs(e, t, n) {
2671
+ function Ss(e, t, n) {
2672
2672
  return t in e ? Object.defineProperty(e, t, {
2673
2673
  value: n,
2674
2674
  enumerable: !0,
@@ -2676,44 +2676,44 @@ function bs(e, t, n) {
2676
2676
  writable: !0
2677
2677
  }) : e[t] = n, e;
2678
2678
  }
2679
- function xs() {
2680
- return xs = Object.assign || function(e) {
2679
+ function Cs() {
2680
+ return Cs = Object.assign || function(e) {
2681
2681
  for (var t = 1; t < arguments.length; t++) {
2682
2682
  var n = arguments[t];
2683
2683
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
2684
2684
  }
2685
2685
  return e;
2686
- }, xs.apply(this, arguments);
2686
+ }, Cs.apply(this, arguments);
2687
2687
  }
2688
- function Ss(e, t) {
2688
+ function ws(e, t) {
2689
2689
  if (e == null) return {};
2690
2690
  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]);
2691
2691
  return n;
2692
2692
  }
2693
- function Cs(e, t) {
2693
+ function Ts(e, t) {
2694
2694
  if (e == null) return {};
2695
- var n = Ss(e, t), r, i;
2695
+ var n = ws(e, t), r, i;
2696
2696
  if (Object.getOwnPropertySymbols) {
2697
2697
  var a = Object.getOwnPropertySymbols(e);
2698
2698
  for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
2699
2699
  }
2700
2700
  return n;
2701
2701
  }
2702
- var ws = "1.15.2";
2703
- function Ts(e) {
2702
+ var Es = "1.15.2";
2703
+ function Ds(e) {
2704
2704
  if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
2705
2705
  }
2706
- var Es = Ts(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ds = Ts(/Edge/i), Os = Ts(/firefox/i), ks = Ts(/safari/i) && !Ts(/chrome/i) && !Ts(/android/i), As = Ts(/iP(ad|od|hone)/i), js = Ts(/chrome/i) && Ts(/android/i), Ms = {
2706
+ var Os = Ds(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ks = Ds(/Edge/i), As = Ds(/firefox/i), js = Ds(/safari/i) && !Ds(/chrome/i) && !Ds(/android/i), Ms = Ds(/iP(ad|od|hone)/i), Ns = Ds(/chrome/i) && Ds(/android/i), Ps = {
2707
2707
  capture: !1,
2708
2708
  passive: !1
2709
2709
  };
2710
2710
  function H(e, t, n) {
2711
- e.addEventListener(t, n, !Es && Ms);
2711
+ e.addEventListener(t, n, !Os && Ps);
2712
2712
  }
2713
2713
  function U(e, t, n) {
2714
- e.removeEventListener(t, n, !Es && Ms);
2714
+ e.removeEventListener(t, n, !Os && Ps);
2715
2715
  }
2716
- function Ns(e, t) {
2716
+ function Fs(e, t) {
2717
2717
  if (t) {
2718
2718
  if (t[0] === ">" && (t = t.substring(1)), e) try {
2719
2719
  if (e.matches) return e.matches(t);
@@ -2725,22 +2725,22 @@ function Ns(e, t) {
2725
2725
  return !1;
2726
2726
  }
2727
2727
  }
2728
- function Ps(e) {
2728
+ function Is(e) {
2729
2729
  return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
2730
2730
  }
2731
- function Fs(e, t, n, r) {
2731
+ function Ls(e, t, n, r) {
2732
2732
  if (e) {
2733
2733
  n ||= document;
2734
2734
  do {
2735
- if (t != null && (t[0] === ">" ? e.parentNode === n && Ns(e, t) : Ns(e, t)) || r && e === n) return e;
2735
+ if (t != null && (t[0] === ">" ? e.parentNode === n && Fs(e, t) : Fs(e, t)) || r && e === n) return e;
2736
2736
  if (e === n) break;
2737
- } while (e = Ps(e));
2737
+ } while (e = Is(e));
2738
2738
  }
2739
2739
  return null;
2740
2740
  }
2741
- var Is = /\s+/g;
2742
- function Ls(e, t, n) {
2743
- e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(Is, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(Is, " "));
2741
+ var Rs = /\s+/g;
2742
+ function zs(e, t, n) {
2743
+ e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(Rs, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(Rs, " "));
2744
2744
  }
2745
2745
  function W(e, t, n) {
2746
2746
  var r = e && e.style;
@@ -2749,7 +2749,7 @@ function W(e, t, n) {
2749
2749
  !(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
2750
2750
  }
2751
2751
  }
2752
- function Rs(e, t) {
2752
+ function Bs(e, t) {
2753
2753
  var n = "";
2754
2754
  if (typeof e == "string") n = e;
2755
2755
  else do {
@@ -2759,7 +2759,7 @@ function Rs(e, t) {
2759
2759
  var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
2760
2760
  return i && new i(n);
2761
2761
  }
2762
- function zs(e, t, n) {
2762
+ function Vs(e, t, n) {
2763
2763
  if (e) {
2764
2764
  var r = e.getElementsByTagName(t), i = 0, a = r.length;
2765
2765
  if (n) for (; i < a; i++) n(r[i], i);
@@ -2767,13 +2767,13 @@ function zs(e, t, n) {
2767
2767
  }
2768
2768
  return [];
2769
2769
  }
2770
- function Bs() {
2770
+ function Hs() {
2771
2771
  return document.scrollingElement || document.documentElement;
2772
2772
  }
2773
2773
  function G(e, t, n, r, i) {
2774
2774
  if (e.getBoundingClientRect || e === window) {
2775
2775
  var a, o, s, c, l, u, d;
2776
- if (e !== window && e.parentNode && e !== Bs() ? (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, !Es)) do
2776
+ if (e !== window && e.parentNode && e !== Hs() ? (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, !Os)) do
2777
2777
  if (i && i.getBoundingClientRect && (W(i, "transform") !== "none" || n && W(i, "position") !== "static")) {
2778
2778
  var f = i.getBoundingClientRect();
2779
2779
  o -= f.top + parseInt(W(i, "border-top-width")), s -= f.left + parseInt(W(i, "border-left-width")), c = o + a.height, l = s + a.width;
@@ -2781,7 +2781,7 @@ function G(e, t, n, r, i) {
2781
2781
  }
2782
2782
  while (i = i.parentNode);
2783
2783
  if (r && e !== window) {
2784
- var p = Rs(i || e), m = p && p.a, h = p && p.d;
2784
+ var p = Bs(i || e), m = p && p.a, h = p && p.d;
2785
2785
  p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
2786
2786
  }
2787
2787
  return {
@@ -2794,18 +2794,18 @@ function G(e, t, n, r, i) {
2794
2794
  };
2795
2795
  }
2796
2796
  }
2797
- function Vs(e, t, n) {
2798
- for (var r = qs(e, !0), i = G(e)[t]; r;) {
2797
+ function Us(e, t, n) {
2798
+ for (var r = Ys(e, !0), i = G(e)[t]; r;) {
2799
2799
  var a = G(r)[n], o = void 0;
2800
2800
  if (o = i >= a, !o) return r;
2801
- if (r === Bs()) break;
2802
- r = qs(r, !1);
2801
+ if (r === Hs()) break;
2802
+ r = Ys(r, !1);
2803
2803
  }
2804
2804
  return !1;
2805
2805
  }
2806
- function Hs(e, t, n, r) {
2806
+ function Ws(e, t, n, r) {
2807
2807
  for (var i = 0, a = 0, o = e.children; a < o.length;) {
2808
- if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && Fs(o[a], n.draggable, e, !1)) {
2808
+ if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && Ls(o[a], n.draggable, e, !1)) {
2809
2809
  if (i === t) return o[a];
2810
2810
  i++;
2811
2811
  }
@@ -2813,84 +2813,84 @@ function Hs(e, t, n, r) {
2813
2813
  }
2814
2814
  return null;
2815
2815
  }
2816
- function Us(e, t) {
2817
- for (var n = e.lastElementChild; n && (n === Q.ghost || W(n, "display") === "none" || t && !Ns(n, t));) n = n.previousElementSibling;
2816
+ function Gs(e, t) {
2817
+ for (var n = e.lastElementChild; n && (n === Q.ghost || W(n, "display") === "none" || t && !Fs(n, t));) n = n.previousElementSibling;
2818
2818
  return n || null;
2819
2819
  }
2820
- function Ws(e, t) {
2820
+ function Ks(e, t) {
2821
2821
  var n = 0;
2822
2822
  if (!e || !e.parentNode) return -1;
2823
- for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || Ns(e, t)) && n++;
2823
+ for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || Fs(e, t)) && n++;
2824
2824
  return n;
2825
2825
  }
2826
- function Gs(e) {
2827
- var t = 0, n = 0, r = Bs();
2826
+ function qs(e) {
2827
+ var t = 0, n = 0, r = Hs();
2828
2828
  if (e) do {
2829
- var i = Rs(e), a = i.a, o = i.d;
2829
+ var i = Bs(e), a = i.a, o = i.d;
2830
2830
  t += e.scrollLeft * a, n += e.scrollTop * o;
2831
2831
  } while (e !== r && (e = e.parentNode));
2832
2832
  return [t, n];
2833
2833
  }
2834
- function Ks(e, t) {
2834
+ function Js(e, t) {
2835
2835
  for (var n in e) if (e.hasOwnProperty(n)) {
2836
2836
  for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
2837
2837
  }
2838
2838
  return -1;
2839
2839
  }
2840
- function qs(e, t) {
2841
- if (!e || !e.getBoundingClientRect) return Bs();
2840
+ function Ys(e, t) {
2841
+ if (!e || !e.getBoundingClientRect) return Hs();
2842
2842
  var n = e, r = !1;
2843
2843
  do
2844
2844
  if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
2845
2845
  var i = W(n);
2846
2846
  if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
2847
- if (!n.getBoundingClientRect || n === document.body) return Bs();
2847
+ if (!n.getBoundingClientRect || n === document.body) return Hs();
2848
2848
  if (r || t) return n;
2849
2849
  r = !0;
2850
2850
  }
2851
2851
  }
2852
2852
  while (n = n.parentNode);
2853
- return Bs();
2853
+ return Hs();
2854
2854
  }
2855
- function Js(e, t) {
2855
+ function Xs(e, t) {
2856
2856
  if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
2857
2857
  return e;
2858
2858
  }
2859
- function Ys(e, t) {
2859
+ function Zs(e, t) {
2860
2860
  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);
2861
2861
  }
2862
- var Xs;
2863
- function Zs(e, t) {
2862
+ var Qs;
2863
+ function $s(e, t) {
2864
2864
  return function() {
2865
- if (!Xs) {
2865
+ if (!Qs) {
2866
2866
  var n = arguments, r = this;
2867
- n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), Xs = setTimeout(function() {
2868
- Xs = void 0;
2867
+ n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), Qs = setTimeout(function() {
2868
+ Qs = void 0;
2869
2869
  }, t);
2870
2870
  }
2871
2871
  };
2872
2872
  }
2873
- function Qs() {
2874
- clearTimeout(Xs), Xs = void 0;
2873
+ function ec() {
2874
+ clearTimeout(Qs), Qs = void 0;
2875
2875
  }
2876
- function $s(e, t, n) {
2876
+ function tc(e, t, n) {
2877
2877
  e.scrollLeft += t, e.scrollTop += n;
2878
2878
  }
2879
- function ec(e) {
2879
+ function nc(e) {
2880
2880
  var t = window.Polymer, n = window.jQuery || window.Zepto;
2881
2881
  return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
2882
2882
  }
2883
- function tc(e, t, n) {
2883
+ function rc(e, t, n) {
2884
2884
  var r = {};
2885
2885
  return Array.from(e.children).forEach(function(i) {
2886
- if (Fs(i, t.draggable, e, !1) && !i.animated && i !== n) {
2886
+ if (Ls(i, t.draggable, e, !1) && !i.animated && i !== n) {
2887
2887
  var a = G(i);
2888
2888
  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);
2889
2889
  }
2890
2890
  }), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
2891
2891
  }
2892
- var nc = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
2893
- function rc() {
2892
+ var ic = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
2893
+ function ac() {
2894
2894
  var e = [], t;
2895
2895
  return {
2896
2896
  captureAnimationState: function() {
@@ -2900,9 +2900,9 @@ function rc() {
2900
2900
  target: t,
2901
2901
  rect: G(t)
2902
2902
  });
2903
- var n = vs({}, e[e.length - 1].rect);
2903
+ var n = bs({}, e[e.length - 1].rect);
2904
2904
  if (t.thisAnimationDuration) {
2905
- var r = Rs(t, !0);
2905
+ var r = Bs(t, !0);
2906
2906
  r && (n.top -= r.f, n.left -= r.e);
2907
2907
  }
2908
2908
  t.fromRect = n;
@@ -2913,7 +2913,7 @@ function rc() {
2913
2913
  e.push(t);
2914
2914
  },
2915
2915
  removeAnimationState: function(t) {
2916
- e.splice(Ks(e, { target: t }), 1);
2916
+ e.splice(Js(e, { target: t }), 1);
2917
2917
  },
2918
2918
  animateAll: function(n) {
2919
2919
  var r = this;
@@ -2921,8 +2921,8 @@ function rc() {
2921
2921
  else {
2922
2922
  var i = !1, a = 0;
2923
2923
  e.forEach(function(e) {
2924
- var t = 0, n = e.target, o = n.fromRect, s = G(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = Rs(n, !0);
2925
- d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Ys(c, s) && !Ys(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = ac(u, c, l, r.options)), Ys(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() {
2924
+ var t = 0, n = e.target, o = n.fromRect, s = G(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = Bs(n, !0);
2925
+ d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Zs(c, s) && !Zs(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = sc(u, c, l, r.options)), Zs(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() {
2926
2926
  n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
2927
2927
  }, t), n.thisAnimationDuration = t);
2928
2928
  }), clearTimeout(t), i ? t = setTimeout(function() {
@@ -2933,26 +2933,26 @@ function rc() {
2933
2933
  animate: function(e, t, n, r) {
2934
2934
  if (r) {
2935
2935
  W(e, "transition", ""), W(e, "transform", "");
2936
- var i = Rs(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
2937
- e.animatingX = !!s, e.animatingY = !!c, W(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = ic(e), W(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), W(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
2936
+ var i = Bs(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
2937
+ e.animatingX = !!s, e.animatingY = !!c, W(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = oc(e), W(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), W(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
2938
2938
  W(e, "transition", ""), W(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
2939
2939
  }, r);
2940
2940
  }
2941
2941
  }
2942
2942
  };
2943
2943
  }
2944
- function ic(e) {
2944
+ function oc(e) {
2945
2945
  return e.offsetWidth;
2946
2946
  }
2947
- function ac(e, t, n, r) {
2947
+ function sc(e, t, n, r) {
2948
2948
  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;
2949
2949
  }
2950
- var oc = [], sc = { initializeByDefault: !0 }, cc = {
2950
+ var cc = [], lc = { initializeByDefault: !0 }, uc = {
2951
2951
  mount: function(e) {
2952
- for (var t in sc) sc.hasOwnProperty(t) && !(t in e) && (e[t] = sc[t]);
2953
- oc.forEach(function(t) {
2952
+ for (var t in lc) lc.hasOwnProperty(t) && !(t in e) && (e[t] = lc[t]);
2953
+ cc.forEach(function(t) {
2954
2954
  if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
2955
- }), oc.push(e);
2955
+ }), cc.push(e);
2956
2956
  },
2957
2957
  pluginEvent: function(e, t, n) {
2958
2958
  var r = this;
@@ -2960,16 +2960,16 @@ var oc = [], sc = { initializeByDefault: !0 }, cc = {
2960
2960
  r.eventCanceled = !0;
2961
2961
  };
2962
2962
  var i = e + "Global";
2963
- oc.forEach(function(r) {
2964
- t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](vs({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](vs({ sortable: t }, n)));
2963
+ cc.forEach(function(r) {
2964
+ t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](bs({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](bs({ sortable: t }, n)));
2965
2965
  });
2966
2966
  },
2967
2967
  initializePlugins: function(e, t, n, r) {
2968
- for (var i in oc.forEach(function(r) {
2968
+ for (var i in cc.forEach(function(r) {
2969
2969
  var i = r.pluginName;
2970
2970
  if (e.options[i] || r.initializeByDefault) {
2971
2971
  var a = new r(e, t, e.options);
2972
- a.sortable = e, a.options = e.options, e[i] = a, xs(n, a.defaults);
2972
+ a.sortable = e, a.options = e.options, e[i] = a, Cs(n, a.defaults);
2973
2973
  }
2974
2974
  }), e.options) if (e.options.hasOwnProperty(i)) {
2975
2975
  var a = this.modifyOption(e, i, e.options[i]);
@@ -2978,59 +2978,59 @@ var oc = [], sc = { initializeByDefault: !0 }, cc = {
2978
2978
  },
2979
2979
  getEventProperties: function(e, t) {
2980
2980
  var n = {};
2981
- return oc.forEach(function(r) {
2982
- typeof r.eventProperties == "function" && xs(n, r.eventProperties.call(t[r.pluginName], e));
2981
+ return cc.forEach(function(r) {
2982
+ typeof r.eventProperties == "function" && Cs(n, r.eventProperties.call(t[r.pluginName], e));
2983
2983
  }), n;
2984
2984
  },
2985
2985
  modifyOption: function(e, t, n) {
2986
2986
  var r;
2987
- return oc.forEach(function(i) {
2987
+ return cc.forEach(function(i) {
2988
2988
  e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
2989
2989
  }), r;
2990
2990
  }
2991
2991
  };
2992
- function lc(e) {
2992
+ function dc(e) {
2993
2993
  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;
2994
- if (t ||= n && n[nc], t) {
2994
+ if (t ||= n && n[ic], t) {
2995
2995
  var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
2996
- window.CustomEvent && !Es && !Ds ? h = new CustomEvent(r, {
2996
+ window.CustomEvent && !Os && !ks ? h = new CustomEvent(r, {
2997
2997
  bubbles: !0,
2998
2998
  cancelable: !0
2999
2999
  }) : (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;
3000
- var v = vs(vs({}, m), cc.getEventProperties(r, t));
3000
+ var v = bs(bs({}, m), uc.getEventProperties(r, t));
3001
3001
  for (var y in v) h[y] = v[y];
3002
3002
  n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
3003
3003
  }
3004
3004
  }
3005
- var uc = ["evt"], dc = function(e, t) {
3006
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = Cs(n, uc);
3007
- cc.pluginEvent.bind(Q)(e, t, vs({
3005
+ var fc = ["evt"], pc = function(e, t) {
3006
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = Ts(n, fc);
3007
+ uc.pluginEvent.bind(Q)(e, t, bs({
3008
3008
  dragEl: K,
3009
3009
  parentEl: q,
3010
3010
  ghostEl: J,
3011
3011
  rootEl: Y,
3012
- nextEl: pc,
3013
- lastDownEl: mc,
3012
+ nextEl: hc,
3013
+ lastDownEl: gc,
3014
3014
  cloneEl: X,
3015
- cloneHidden: hc,
3016
- dragStarted: Ac,
3015
+ cloneHidden: _c,
3016
+ dragStarted: Mc,
3017
3017
  putSortable: Z,
3018
3018
  activeSortable: Q.active,
3019
3019
  originalEvent: r,
3020
- oldIndex: gc,
3021
- oldDraggableIndex: vc,
3022
- newIndex: _c,
3023
- newDraggableIndex: yc,
3024
- hideGhostForTarget: Yc,
3025
- unhideGhostForTarget: Xc,
3020
+ oldIndex: vc,
3021
+ oldDraggableIndex: bc,
3022
+ newIndex: yc,
3023
+ newDraggableIndex: xc,
3024
+ hideGhostForTarget: Zc,
3025
+ unhideGhostForTarget: Qc,
3026
3026
  cloneNowHidden: function() {
3027
- hc = !0;
3027
+ _c = !0;
3028
3028
  },
3029
3029
  cloneNowShown: function() {
3030
- hc = !1;
3030
+ _c = !1;
3031
3031
  },
3032
3032
  dispatchSortableEvent: function(e) {
3033
- fc({
3033
+ mc({
3034
3034
  sortable: t,
3035
3035
  name: e,
3036
3036
  originalEvent: r
@@ -3038,46 +3038,46 @@ var uc = ["evt"], dc = function(e, t) {
3038
3038
  }
3039
3039
  }, i));
3040
3040
  };
3041
- function fc(e) {
3042
- lc(vs({
3041
+ function mc(e) {
3042
+ dc(bs({
3043
3043
  putSortable: Z,
3044
3044
  cloneEl: X,
3045
3045
  targetEl: K,
3046
3046
  rootEl: Y,
3047
- oldIndex: gc,
3048
- oldDraggableIndex: vc,
3049
- newIndex: _c,
3050
- newDraggableIndex: yc
3047
+ oldIndex: vc,
3048
+ oldDraggableIndex: bc,
3049
+ newIndex: yc,
3050
+ newDraggableIndex: xc
3051
3051
  }, e));
3052
3052
  }
3053
- var K, q, J, Y, pc, mc, X, hc, gc, _c, vc, yc, bc, Z, xc = !1, Sc = !1, Cc = [], wc, Tc, Ec, Dc, Oc, kc, Ac, jc, Mc, Nc = !1, Pc = !1, Fc, Ic, Lc = [], Rc = !1, zc = [], Bc = typeof document < "u", Vc = As, Hc = Ds || Es ? "cssFloat" : "float", Uc = Bc && !js && !As && "draggable" in document.createElement("div"), Wc = function() {
3054
- if (Bc) {
3055
- if (Es) return !1;
3053
+ var K, q, J, Y, hc, gc, X, _c, vc, yc, bc, xc, Sc, Z, Cc = !1, wc = !1, Tc = [], Ec, Dc, Oc, kc, Ac, jc, Mc, Nc, Pc, Fc = !1, Ic = !1, Lc, Rc, zc = [], Bc = !1, Vc = [], Hc = typeof document < "u", Uc = Ms, Wc = ks || Os ? "cssFloat" : "float", Gc = Hc && !Ns && !Ms && "draggable" in document.createElement("div"), Kc = function() {
3054
+ if (Hc) {
3055
+ if (Os) return !1;
3056
3056
  var e = document.createElement("x");
3057
3057
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
3058
3058
  }
3059
- }(), Gc = function(e, t) {
3060
- var n = W(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = Hs(e, 0, t), a = Hs(e, 1, t), o = i && W(i), s = a && W(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + G(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + G(a).width;
3059
+ }(), qc = function(e, t) {
3060
+ var n = W(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = Ws(e, 0, t), a = Ws(e, 1, t), o = i && W(i), s = a && W(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + G(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + G(a).width;
3061
3061
  if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
3062
3062
  if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
3063
3063
  if (i && o.float && o.float !== "none") {
3064
3064
  var u = o.float === "left" ? "left" : "right";
3065
3065
  return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
3066
3066
  }
3067
- return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Hc] === "none" || a && n[Hc] === "none" && c + l > r) ? "vertical" : "horizontal";
3068
- }, Kc = function(e, t, n) {
3067
+ return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Wc] === "none" || a && n[Wc] === "none" && c + l > r) ? "vertical" : "horizontal";
3068
+ }, Jc = function(e, t, n) {
3069
3069
  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;
3070
3070
  return r === o || i === s || r + a / 2 === o + c / 2;
3071
- }, qc = function(e, t) {
3071
+ }, Yc = function(e, t) {
3072
3072
  var n;
3073
- return Cc.some(function(r) {
3074
- var i = r[nc].options.emptyInsertThreshold;
3075
- if (i && !Us(r)) {
3073
+ return Tc.some(function(r) {
3074
+ var i = r[ic].options.emptyInsertThreshold;
3075
+ if (i && !Gs(r)) {
3076
3076
  var a = G(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
3077
3077
  if (o && s) return n = r;
3078
3078
  }
3079
3079
  }), n;
3080
- }, Jc = function(e) {
3080
+ }, Xc = function(e) {
3081
3081
  function t(e, n) {
3082
3082
  return function(r, i, a, o) {
3083
3083
  var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
@@ -3090,31 +3090,31 @@ var K, q, J, Y, pc, mc, X, hc, gc, _c, vc, yc, bc, Z, xc = !1, Sc = !1, Cc = [],
3090
3090
  };
3091
3091
  }
3092
3092
  var n = {}, r = e.group;
3093
- r && ys(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;
3094
- }, Yc = function() {
3095
- !Wc && J && W(J, "display", "none");
3096
- }, Xc = function() {
3097
- !Wc && J && W(J, "display", "");
3093
+ r && xs(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;
3094
+ }, Zc = function() {
3095
+ !Kc && J && W(J, "display", "none");
3096
+ }, Qc = function() {
3097
+ !Kc && J && W(J, "display", "");
3098
3098
  };
3099
- Bc && !js && document.addEventListener("click", function(e) {
3100
- if (Sc) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Sc = !1, !1;
3099
+ Hc && !Ns && document.addEventListener("click", function(e) {
3100
+ if (wc) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), wc = !1, !1;
3101
3101
  }, !0);
3102
- var Zc = function(e) {
3102
+ var $c = function(e) {
3103
3103
  if (K) {
3104
3104
  e = e.touches ? e.touches[0] : e;
3105
- var t = qc(e.clientX, e.clientY);
3105
+ var t = Yc(e.clientX, e.clientY);
3106
3106
  if (t) {
3107
3107
  var n = {};
3108
3108
  for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
3109
- n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[nc]._onDragOver(n);
3109
+ n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[ic]._onDragOver(n);
3110
3110
  }
3111
3111
  }
3112
- }, Qc = function(e) {
3113
- K && K.parentNode[nc]._isOutsideThisEl(e.target);
3112
+ }, el = function(e) {
3113
+ K && K.parentNode[ic]._isOutsideThisEl(e.target);
3114
3114
  };
3115
3115
  function Q(e, t) {
3116
3116
  if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
3117
- this.el = e, this.options = t = xs({}, t), e[nc] = this;
3117
+ this.el = e, this.options = t = Cs({}, t), e[ic] = this;
3118
3118
  var n = {
3119
3119
  group: null,
3120
3120
  sort: !0,
@@ -3127,7 +3127,7 @@ function Q(e, t) {
3127
3127
  invertedSwapThreshold: null,
3128
3128
  removeCloneOnHide: !0,
3129
3129
  direction: function() {
3130
- return Gc(e, this.options);
3130
+ return qc(e, this.options);
3131
3131
  },
3132
3132
  ghostClass: "sortable-ghost",
3133
3133
  chosenClass: "sortable-chosen",
@@ -3154,17 +3154,17 @@ function Q(e, t) {
3154
3154
  x: 0,
3155
3155
  y: 0
3156
3156
  },
3157
- supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !ks,
3157
+ supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !js,
3158
3158
  emptyInsertThreshold: 5
3159
3159
  };
3160
- for (var r in cc.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
3161
- for (var i in Jc(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
3162
- this.nativeDraggable = !t.forceFallback && Uc, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? H(e, "pointerdown", this._onTapStart) : (H(e, "mousedown", this._onTapStart), H(e, "touchstart", this._onTapStart)), this.nativeDraggable && (H(e, "dragover", this), H(e, "dragenter", this)), Cc.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), xs(this, rc());
3160
+ for (var r in uc.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
3161
+ for (var i in Xc(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
3162
+ this.nativeDraggable = !t.forceFallback && Gc, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? H(e, "pointerdown", this._onTapStart) : (H(e, "mousedown", this._onTapStart), H(e, "touchstart", this._onTapStart)), this.nativeDraggable && (H(e, "dragover", this), H(e, "dragenter", this)), Tc.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Cs(this, ac());
3163
3163
  }
3164
3164
  Q.prototype = {
3165
3165
  constructor: Q,
3166
3166
  _isOutsideThisEl: function(e) {
3167
- !this.el.contains(e) && e !== this.el && (jc = null);
3167
+ !this.el.contains(e) && e !== this.el && (Nc = null);
3168
3168
  },
3169
3169
  _getDirection: function(e, t) {
3170
3170
  return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, K) : this.options.direction;
@@ -3172,33 +3172,33 @@ Q.prototype = {
3172
3172
  _onTapStart: function(e) {
3173
3173
  if (e.cancelable) {
3174
3174
  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;
3175
- if (cl(n), !K && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && ks && s && s.tagName.toUpperCase() === "SELECT") && (s = Fs(s, r.draggable, n, !1), !(s && s.animated) && mc !== s)) {
3176
- if (gc = Ws(s), vc = Ws(s, r.draggable), typeof l == "function") {
3175
+ if (ul(n), !K && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && js && s && s.tagName.toUpperCase() === "SELECT") && (s = Ls(s, r.draggable, n, !1), !(s && s.animated) && gc !== s)) {
3176
+ if (vc = Ks(s), bc = Ks(s, r.draggable), typeof l == "function") {
3177
3177
  if (l.call(this, e, s, this)) {
3178
- fc({
3178
+ mc({
3179
3179
  sortable: t,
3180
3180
  rootEl: c,
3181
3181
  name: "filter",
3182
3182
  targetEl: s,
3183
3183
  toEl: n,
3184
3184
  fromEl: n
3185
- }), dc("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
3185
+ }), pc("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
3186
3186
  return;
3187
3187
  }
3188
3188
  } else if (l && (l = l.split(",").some(function(r) {
3189
- if (r = Fs(c, r.trim(), n, !1), r) return fc({
3189
+ if (r = Ls(c, r.trim(), n, !1), r) return mc({
3190
3190
  sortable: t,
3191
3191
  rootEl: r,
3192
3192
  name: "filter",
3193
3193
  targetEl: s,
3194
3194
  fromEl: n,
3195
3195
  toEl: n
3196
- }), dc("filter", t, { evt: e }), !0;
3196
+ }), pc("filter", t, { evt: e }), !0;
3197
3197
  }), l)) {
3198
3198
  i && e.cancelable && e.preventDefault();
3199
3199
  return;
3200
3200
  }
3201
- r.handle && !Fs(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
3201
+ r.handle && !Ls(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
3202
3202
  }
3203
3203
  }
3204
3204
  },
@@ -3206,19 +3206,19 @@ Q.prototype = {
3206
3206
  var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
3207
3207
  if (n && !K && n.parentNode === i) {
3208
3208
  var c = G(n);
3209
- if (Y = i, K = n, q = K.parentNode, pc = K.nextSibling, mc = n, bc = a.group, Q.dragged = K, wc = {
3209
+ if (Y = i, K = n, q = K.parentNode, hc = K.nextSibling, gc = n, Sc = a.group, Q.dragged = K, Ec = {
3210
3210
  target: K,
3211
3211
  clientX: (t || e).clientX,
3212
3212
  clientY: (t || e).clientY
3213
- }, Oc = wc.clientX - c.left, kc = wc.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, K.style["will-change"] = "all", s = function() {
3214
- dc("delayEnded", r, { evt: e }), Q.eventCanceled ? r._onDrop() : (r._disableDelayedDragEvents(), !Os && r.nativeDraggable && (K.draggable = !0), r._triggerDragStart(e, t), fc({
3213
+ }, Ac = Ec.clientX - c.left, jc = Ec.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, K.style["will-change"] = "all", s = function() {
3214
+ pc("delayEnded", r, { evt: e }), Q.eventCanceled ? r._onDrop() : (r._disableDelayedDragEvents(), !As && r.nativeDraggable && (K.draggable = !0), r._triggerDragStart(e, t), mc({
3215
3215
  sortable: r,
3216
3216
  name: "choose",
3217
3217
  originalEvent: e
3218
- }), Ls(K, a.chosenClass, !0));
3218
+ }), zs(K, a.chosenClass, !0));
3219
3219
  }, a.ignore.split(",").forEach(function(e) {
3220
- zs(K, e.trim(), tl);
3221
- }), H(o, "dragover", Zc), H(o, "mousemove", Zc), H(o, "touchmove", Zc), H(o, "mouseup", r._onDrop), H(o, "touchend", r._onDrop), H(o, "touchcancel", r._onDrop), Os && this.nativeDraggable && (this.options.touchStartThreshold = 4, K.draggable = !0), dc("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Ds || Es))) {
3220
+ Vs(K, e.trim(), rl);
3221
+ }), H(o, "dragover", $c), H(o, "mousemove", $c), H(o, "touchmove", $c), H(o, "mouseup", r._onDrop), H(o, "touchend", r._onDrop), H(o, "touchcancel", r._onDrop), As && this.nativeDraggable && (this.options.touchStartThreshold = 4, K.draggable = !0), pc("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(ks || Os))) {
3222
3222
  if (Q.eventCanceled) {
3223
3223
  this._onDrop();
3224
3224
  return;
@@ -3232,7 +3232,7 @@ Q.prototype = {
3232
3232
  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();
3233
3233
  },
3234
3234
  _disableDelayedDrag: function() {
3235
- K && tl(K), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
3235
+ K && rl(K), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
3236
3236
  },
3237
3237
  _disableDelayedDragEvents: function() {
3238
3238
  var e = this.el.ownerDocument;
@@ -3241,16 +3241,16 @@ Q.prototype = {
3241
3241
  _triggerDragStart: function(e, t) {
3242
3242
  t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? H(document, "pointermove", this._onTouchMove) : t ? H(document, "touchmove", this._onTouchMove) : H(document, "mousemove", this._onTouchMove) : (H(K, "dragend", this), H(Y, "dragstart", this._onDragStart));
3243
3243
  try {
3244
- document.selection ? ll(function() {
3244
+ document.selection ? dl(function() {
3245
3245
  document.selection.empty();
3246
3246
  }) : window.getSelection().removeAllRanges();
3247
3247
  } catch {}
3248
3248
  },
3249
3249
  _dragStarted: function(e, t) {
3250
- if (xc = !1, Y && K) {
3251
- dc("dragStarted", this, { evt: t }), this.nativeDraggable && H(document, "dragover", Qc);
3250
+ if (Cc = !1, Y && K) {
3251
+ pc("dragStarted", this, { evt: t }), this.nativeDraggable && H(document, "dragover", el);
3252
3252
  var n = this.options;
3253
- !e && Ls(K, n.dragClass, !1), Ls(K, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), fc({
3253
+ !e && zs(K, n.dragClass, !1), zs(K, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), mc({
3254
3254
  sortable: this,
3255
3255
  name: "start",
3256
3256
  originalEvent: t
@@ -3258,33 +3258,33 @@ Q.prototype = {
3258
3258
  } else this._nulling();
3259
3259
  },
3260
3260
  _emulateDragOver: function() {
3261
- if (Tc) {
3262
- this._lastX = Tc.clientX, this._lastY = Tc.clientY, Yc();
3263
- for (var e = document.elementFromPoint(Tc.clientX, Tc.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Tc.clientX, Tc.clientY), e !== t);) t = e;
3264
- if (K.parentNode[nc]._isOutsideThisEl(e), t) do {
3265
- if (t[nc]) {
3261
+ if (Dc) {
3262
+ this._lastX = Dc.clientX, this._lastY = Dc.clientY, Zc();
3263
+ for (var e = document.elementFromPoint(Dc.clientX, Dc.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Dc.clientX, Dc.clientY), e !== t);) t = e;
3264
+ if (K.parentNode[ic]._isOutsideThisEl(e), t) do {
3265
+ if (t[ic]) {
3266
3266
  var n = void 0;
3267
- if (n = t[nc]._onDragOver({
3268
- clientX: Tc.clientX,
3269
- clientY: Tc.clientY,
3267
+ if (n = t[ic]._onDragOver({
3268
+ clientX: Dc.clientX,
3269
+ clientY: Dc.clientY,
3270
3270
  target: e,
3271
3271
  rootEl: t
3272
3272
  }), n && !this.options.dragoverBubble) break;
3273
3273
  }
3274
3274
  e = t;
3275
3275
  } while (t = t.parentNode);
3276
- Xc();
3276
+ Qc();
3277
3277
  }
3278
3278
  },
3279
3279
  _onTouchMove: function(e) {
3280
- if (wc) {
3281
- var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = J && Rs(J, !0), o = J && a && a.a, s = J && a && a.d, c = Vc && Ic && Gs(Ic), l = (i.clientX - wc.clientX + r.x) / (o || 1) + (c ? c[0] - Lc[0] : 0) / (o || 1), u = (i.clientY - wc.clientY + r.y) / (s || 1) + (c ? c[1] - Lc[1] : 0) / (s || 1);
3282
- if (!Q.active && !xc) {
3280
+ if (Ec) {
3281
+ var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = J && Bs(J, !0), o = J && a && a.a, s = J && a && a.d, c = Uc && Rc && qs(Rc), l = (i.clientX - Ec.clientX + r.x) / (o || 1) + (c ? c[0] - zc[0] : 0) / (o || 1), u = (i.clientY - Ec.clientY + r.y) / (s || 1) + (c ? c[1] - zc[1] : 0) / (s || 1);
3282
+ if (!Q.active && !Cc) {
3283
3283
  if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
3284
3284
  this._onDragStart(e, !0);
3285
3285
  }
3286
3286
  if (J) {
3287
- a ? (a.e += l - (Ec || 0), a.f += u - (Dc || 0)) : a = {
3287
+ a ? (a.e += l - (Oc || 0), a.f += u - (kc || 0)) : a = {
3288
3288
  a: 1,
3289
3289
  b: 0,
3290
3290
  c: 0,
@@ -3293,35 +3293,35 @@ Q.prototype = {
3293
3293
  f: u
3294
3294
  };
3295
3295
  var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
3296
- W(J, "webkitTransform", d), W(J, "mozTransform", d), W(J, "msTransform", d), W(J, "transform", d), Ec = l, Dc = u, Tc = i;
3296
+ W(J, "webkitTransform", d), W(J, "mozTransform", d), W(J, "msTransform", d), W(J, "transform", d), Oc = l, kc = u, Dc = i;
3297
3297
  }
3298
3298
  e.cancelable && e.preventDefault();
3299
3299
  }
3300
3300
  },
3301
3301
  _appendGhost: function() {
3302
3302
  if (!J) {
3303
- var e = this.options.fallbackOnBody ? document.body : Y, t = G(K, !0, Vc, !0, e), n = this.options;
3304
- if (Vc) {
3305
- for (Ic = e; W(Ic, "position") === "static" && W(Ic, "transform") === "none" && Ic !== document;) Ic = Ic.parentNode;
3306
- Ic !== document.body && Ic !== document.documentElement ? (Ic === document && (Ic = Bs()), t.top += Ic.scrollTop, t.left += Ic.scrollLeft) : Ic = Bs(), Lc = Gs(Ic);
3303
+ var e = this.options.fallbackOnBody ? document.body : Y, t = G(K, !0, Uc, !0, e), n = this.options;
3304
+ if (Uc) {
3305
+ for (Rc = e; W(Rc, "position") === "static" && W(Rc, "transform") === "none" && Rc !== document;) Rc = Rc.parentNode;
3306
+ Rc !== document.body && Rc !== document.documentElement ? (Rc === document && (Rc = Hs()), t.top += Rc.scrollTop, t.left += Rc.scrollLeft) : Rc = Hs(), zc = qs(Rc);
3307
3307
  }
3308
- J = K.cloneNode(!0), Ls(J, n.ghostClass, !1), Ls(J, n.fallbackClass, !0), Ls(J, n.dragClass, !0), W(J, "transition", ""), W(J, "transform", ""), W(J, "box-sizing", "border-box"), W(J, "margin", 0), W(J, "top", t.top), W(J, "left", t.left), W(J, "width", t.width), W(J, "height", t.height), W(J, "opacity", "0.8"), W(J, "position", Vc ? "absolute" : "fixed"), W(J, "zIndex", "100000"), W(J, "pointerEvents", "none"), Q.ghost = J, e.appendChild(J), W(J, "transform-origin", Oc / parseInt(J.style.width) * 100 + "% " + kc / parseInt(J.style.height) * 100 + "%");
3308
+ J = K.cloneNode(!0), zs(J, n.ghostClass, !1), zs(J, n.fallbackClass, !0), zs(J, n.dragClass, !0), W(J, "transition", ""), W(J, "transform", ""), W(J, "box-sizing", "border-box"), W(J, "margin", 0), W(J, "top", t.top), W(J, "left", t.left), W(J, "width", t.width), W(J, "height", t.height), W(J, "opacity", "0.8"), W(J, "position", Uc ? "absolute" : "fixed"), W(J, "zIndex", "100000"), W(J, "pointerEvents", "none"), Q.ghost = J, e.appendChild(J), W(J, "transform-origin", Ac / parseInt(J.style.width) * 100 + "% " + jc / parseInt(J.style.height) * 100 + "%");
3309
3309
  }
3310
3310
  },
3311
3311
  _onDragStart: function(e, t) {
3312
3312
  var n = this, r = e.dataTransfer, i = n.options;
3313
- dc("dragStart", this, { evt: e }), Q.eventCanceled ? this._onDrop() : (dc("setupClone", this), Q.eventCanceled || (X = ec(K), X.removeAttribute("id"), X.draggable = !1, X.style["will-change"] = "", this._hideClone(), Ls(X, this.options.chosenClass, !1), Q.clone = X), n.cloneId = ll(function() {
3314
- dc("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || Y.insertBefore(X, K), n._hideClone(), fc({
3313
+ pc("dragStart", this, { evt: e }), Q.eventCanceled ? this._onDrop() : (pc("setupClone", this), Q.eventCanceled || (X = nc(K), X.removeAttribute("id"), X.draggable = !1, X.style["will-change"] = "", this._hideClone(), zs(X, this.options.chosenClass, !1), Q.clone = X), n.cloneId = dl(function() {
3314
+ pc("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || Y.insertBefore(X, K), n._hideClone(), mc({
3315
3315
  sortable: n,
3316
3316
  name: "clone"
3317
3317
  }));
3318
- }), !t && Ls(K, i.dragClass, !0), t ? (Sc = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (U(document, "mouseup", n._onDrop), U(document, "touchend", n._onDrop), U(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, K)), H(document, "drop", n), W(K, "transform", "translateZ(0)")), xc = !0, n._dragStartId = ll(n._dragStarted.bind(n, t, e)), H(document, "selectstart", n), Ac = !0, ks && W(document.body, "user-select", "none"));
3318
+ }), !t && zs(K, i.dragClass, !0), t ? (wc = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (U(document, "mouseup", n._onDrop), U(document, "touchend", n._onDrop), U(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, K)), H(document, "drop", n), W(K, "transform", "translateZ(0)")), Cc = !0, n._dragStartId = dl(n._dragStarted.bind(n, t, e)), H(document, "selectstart", n), Mc = !0, js && W(document.body, "user-select", "none"));
3319
3319
  },
3320
3320
  _onDragOver: function(e) {
3321
- var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = bc === s, u = o.sort, d = Z || c, f, p = this, m = !1;
3322
- if (Rc) return;
3321
+ var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = Sc === s, u = o.sort, d = Z || c, f, p = this, m = !1;
3322
+ if (Bc) return;
3323
3323
  function h(o, s) {
3324
- dc(o, p, vs({
3324
+ pc(o, p, bs({
3325
3325
  evt: e,
3326
3326
  isOwner: l,
3327
3327
  axis: f ? "vertical" : "horizontal",
@@ -3333,7 +3333,7 @@ Q.prototype = {
3333
3333
  target: n,
3334
3334
  completed: _,
3335
3335
  onMove: function(n, i) {
3336
- return el(Y, t, K, r, n, G(n), e, i);
3336
+ return nl(Y, t, K, r, n, G(n), e, i);
3337
3337
  },
3338
3338
  changed: v
3339
3339
  }, s));
@@ -3342,50 +3342,50 @@ Q.prototype = {
3342
3342
  h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
3343
3343
  }
3344
3344
  function _(r) {
3345
- return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (Ls(K, Z ? Z.options.ghostClass : c.options.ghostClass, !1), Ls(K, o.ghostClass, !0)), Z !== p && p !== Q.active ? Z = p : p === Q.active && Z && (Z = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
3345
+ return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (zs(K, Z ? Z.options.ghostClass : c.options.ghostClass, !1), zs(K, o.ghostClass, !0)), Z !== p && p !== Q.active ? Z = p : p === Q.active && Z && (Z = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
3346
3346
  h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
3347
- }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === K && !K.animated || n === t && !n.animated) && (jc = null), !o.dragoverBubble && !e.rootEl && n !== document && (K.parentNode[nc]._isOutsideThisEl(e.target), !r && Zc(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
3347
+ }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === K && !K.animated || n === t && !n.animated) && (Nc = null), !o.dragoverBubble && !e.rootEl && n !== document && (K.parentNode[ic]._isOutsideThisEl(e.target), !r && $c(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
3348
3348
  }
3349
3349
  function v() {
3350
- _c = Ws(K), yc = Ws(K, o.draggable), fc({
3350
+ yc = Ks(K), xc = Ks(K, o.draggable), mc({
3351
3351
  sortable: p,
3352
3352
  name: "change",
3353
3353
  toEl: t,
3354
- newIndex: _c,
3355
- newDraggableIndex: yc,
3354
+ newIndex: yc,
3355
+ newDraggableIndex: xc,
3356
3356
  originalEvent: e
3357
3357
  });
3358
3358
  }
3359
- if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Fs(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
3359
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Ls(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
3360
3360
  if (K.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
3361
- if (Sc = !1, c && !o.disabled && (l ? u || (a = q !== Y) : Z === this || (this.lastPutMode = bc.checkPull(this, c, K, e)) && s.checkPut(this, c, K, e))) {
3361
+ if (wc = !1, c && !o.disabled && (l ? u || (a = q !== Y) : Z === this || (this.lastPutMode = Sc.checkPull(this, c, K, e)) && s.checkPut(this, c, K, e))) {
3362
3362
  if (f = this._getDirection(e, n) === "vertical", r = G(K), h("dragOverValid"), Q.eventCanceled) return m;
3363
- if (a) return q = Y, g(), this._hideClone(), h("revert"), Q.eventCanceled || (pc ? Y.insertBefore(K, pc) : Y.appendChild(K)), _(!0);
3364
- var y = Us(t, o.draggable);
3365
- if (!y || il(e, f, this) && !y.animated) {
3363
+ if (a) return q = Y, g(), this._hideClone(), h("revert"), Q.eventCanceled || (hc ? Y.insertBefore(K, hc) : Y.appendChild(K)), _(!0);
3364
+ var y = Gs(t, o.draggable);
3365
+ if (!y || ol(e, f, this) && !y.animated) {
3366
3366
  if (y === K) return _(!1);
3367
- if (y && t === e.target && (n = y), n && (i = G(n)), el(Y, t, K, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(K, y.nextSibling) : t.appendChild(K), q = t, v(), _(!0);
3368
- } else if (y && rl(e, f, this)) {
3369
- var b = Hs(t, 0, o, !0);
3367
+ if (y && t === e.target && (n = y), n && (i = G(n)), nl(Y, t, K, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(K, y.nextSibling) : t.appendChild(K), q = t, v(), _(!0);
3368
+ } else if (y && al(e, f, this)) {
3369
+ var b = Ws(t, 0, o, !0);
3370
3370
  if (b === K) return _(!1);
3371
- if (n = b, i = G(n), el(Y, t, K, r, n, i, e, !1) !== !1) return g(), t.insertBefore(K, b), q = t, v(), _(!0);
3371
+ if (n = b, i = G(n), nl(Y, t, K, r, n, i, e, !1) !== !1) return g(), t.insertBefore(K, b), q = t, v(), _(!0);
3372
3372
  } else if (n.parentNode === t) {
3373
3373
  i = G(n);
3374
- var x = 0, S, C = K.parentNode !== t, w = !Kc(K.animated && K.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = Vs(n, "top", "top") || Vs(K, "top", "top"), ee = E ? E.scrollTop : void 0;
3375
- jc !== n && (S = i[T], Nc = !1, Pc = !w && o.invertSwap || C), x = al(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Pc, jc === n);
3374
+ var x = 0, S, C = K.parentNode !== t, w = !Jc(K.animated && K.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = Us(n, "top", "top") || Us(K, "top", "top"), ee = E ? E.scrollTop : void 0;
3375
+ Nc !== n && (S = i[T], Fc = !1, Ic = !w && o.invertSwap || C), x = sl(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Ic, Nc === n);
3376
3376
  var D;
3377
3377
  if (x !== 0) {
3378
- var O = Ws(K);
3378
+ var O = Ks(K);
3379
3379
  do
3380
3380
  O -= x, D = q.children[O];
3381
3381
  while (D && (W(D, "display") === "none" || D === J));
3382
3382
  }
3383
3383
  if (x === 0 || D === n) return _(!1);
3384
- jc = n, Mc = x;
3384
+ Nc = n, Pc = x;
3385
3385
  var k = n.nextElementSibling, A = !1;
3386
3386
  A = x === 1;
3387
- var j = el(Y, t, K, r, n, i, e, A);
3388
- if (j !== !1) return (j === 1 || j === -1) && (A = j === 1), Rc = !0, setTimeout(nl, 30), g(), A && !k ? t.appendChild(K) : n.parentNode.insertBefore(K, A ? k : n), E && $s(E, 0, ee - E.scrollTop), q = K.parentNode, S !== void 0 && !Pc && (Fc = Math.abs(S - G(n)[T])), v(), _(!0);
3387
+ var j = nl(Y, t, K, r, n, i, e, A);
3388
+ if (j !== !1) return (j === 1 || j === -1) && (A = j === 1), Bc = !0, setTimeout(il, 30), g(), A && !k ? t.appendChild(K) : n.parentNode.insertBefore(K, A ? k : n), E && tc(E, 0, ee - E.scrollTop), q = K.parentNode, S !== void 0 && !Ic && (Lc = Math.abs(S - G(n)[T])), v(), _(!0);
3389
3389
  }
3390
3390
  if (t.contains(K)) return _(!1);
3391
3391
  }
@@ -3393,7 +3393,7 @@ Q.prototype = {
3393
3393
  },
3394
3394
  _ignoreWhileAnimating: null,
3395
3395
  _offMoveEvents: function() {
3396
- U(document, "mousemove", this._onTouchMove), U(document, "touchmove", this._onTouchMove), U(document, "pointermove", this._onTouchMove), U(document, "dragover", Zc), U(document, "mousemove", Zc), U(document, "touchmove", Zc);
3396
+ U(document, "mousemove", this._onTouchMove), U(document, "touchmove", this._onTouchMove), U(document, "pointermove", this._onTouchMove), U(document, "dragover", $c), U(document, "mousemove", $c), U(document, "touchmove", $c);
3397
3397
  },
3398
3398
  _offUpEvents: function() {
3399
3399
  var e = this.el.ownerDocument;
@@ -3401,46 +3401,46 @@ Q.prototype = {
3401
3401
  },
3402
3402
  _onDrop: function(e) {
3403
3403
  var t = this.el, n = this.options;
3404
- _c = Ws(K), yc = Ws(K, n.draggable), dc("drop", this, { evt: e }), q = K && K.parentNode, _c = Ws(K), yc = Ws(K, n.draggable), Q.eventCanceled || (xc = !1, Pc = !1, Nc = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ul(this.cloneId), ul(this._dragStartId), this.nativeDraggable && (U(document, "drop", this), U(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), ks && W(document.body, "user-select", ""), W(K, "transform", ""), e && (Ac && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), J && J.parentNode && J.parentNode.removeChild(J), (Y === q || Z && Z.lastPutMode !== "clone") && X && X.parentNode && X.parentNode.removeChild(X), K && (this.nativeDraggable && U(K, "dragend", this), tl(K), K.style["will-change"] = "", Ac && !xc && Ls(K, Z ? Z.options.ghostClass : this.options.ghostClass, !1), Ls(K, this.options.chosenClass, !1), fc({
3404
+ yc = Ks(K), xc = Ks(K, n.draggable), pc("drop", this, { evt: e }), q = K && K.parentNode, yc = Ks(K), xc = Ks(K, n.draggable), Q.eventCanceled || (Cc = !1, Ic = !1, Fc = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), fl(this.cloneId), fl(this._dragStartId), this.nativeDraggable && (U(document, "drop", this), U(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), js && W(document.body, "user-select", ""), W(K, "transform", ""), e && (Mc && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), J && J.parentNode && J.parentNode.removeChild(J), (Y === q || Z && Z.lastPutMode !== "clone") && X && X.parentNode && X.parentNode.removeChild(X), K && (this.nativeDraggable && U(K, "dragend", this), rl(K), K.style["will-change"] = "", Mc && !Cc && zs(K, Z ? Z.options.ghostClass : this.options.ghostClass, !1), zs(K, this.options.chosenClass, !1), mc({
3405
3405
  sortable: this,
3406
3406
  name: "unchoose",
3407
3407
  toEl: q,
3408
3408
  newIndex: null,
3409
3409
  newDraggableIndex: null,
3410
3410
  originalEvent: e
3411
- }), Y === q ? _c !== gc && _c >= 0 && (fc({
3411
+ }), Y === q ? yc !== vc && yc >= 0 && (mc({
3412
3412
  sortable: this,
3413
3413
  name: "update",
3414
3414
  toEl: q,
3415
3415
  originalEvent: e
3416
- }), fc({
3416
+ }), mc({
3417
3417
  sortable: this,
3418
3418
  name: "sort",
3419
3419
  toEl: q,
3420
3420
  originalEvent: e
3421
- })) : (_c >= 0 && (fc({
3421
+ })) : (yc >= 0 && (mc({
3422
3422
  rootEl: q,
3423
3423
  name: "add",
3424
3424
  toEl: q,
3425
3425
  fromEl: Y,
3426
3426
  originalEvent: e
3427
- }), fc({
3427
+ }), mc({
3428
3428
  sortable: this,
3429
3429
  name: "remove",
3430
3430
  toEl: q,
3431
3431
  originalEvent: e
3432
- }), fc({
3432
+ }), mc({
3433
3433
  rootEl: q,
3434
3434
  name: "sort",
3435
3435
  toEl: q,
3436
3436
  fromEl: Y,
3437
3437
  originalEvent: e
3438
- }), fc({
3438
+ }), mc({
3439
3439
  sortable: this,
3440
3440
  name: "sort",
3441
3441
  toEl: q,
3442
3442
  originalEvent: e
3443
- })), Z && Z.save()), Q.active && ((_c == null || _c === -1) && (_c = gc, yc = vc), fc({
3443
+ })), Z && Z.save()), Q.active && ((yc == null || yc === -1) && (yc = vc, xc = bc), mc({
3444
3444
  sortable: this,
3445
3445
  name: "end",
3446
3446
  toEl: q,
@@ -3448,9 +3448,9 @@ Q.prototype = {
3448
3448
  }), this.save())))), this._nulling();
3449
3449
  },
3450
3450
  _nulling: function() {
3451
- dc("nulling", this), Y = K = q = J = pc = X = mc = hc = wc = Tc = Ac = _c = yc = gc = vc = jc = Mc = Z = bc = Q.dragged = Q.ghost = Q.clone = Q.active = null, zc.forEach(function(e) {
3451
+ pc("nulling", this), Y = K = q = J = hc = X = gc = _c = Ec = Dc = Mc = yc = xc = vc = bc = Nc = Pc = Z = Sc = Q.dragged = Q.ghost = Q.clone = Q.active = null, Vc.forEach(function(e) {
3452
3452
  e.checked = !0;
3453
- }), zc.length = Ec = Dc = 0;
3453
+ }), Vc.length = Oc = kc = 0;
3454
3454
  },
3455
3455
  handleEvent: function(e) {
3456
3456
  switch (e.type) {
@@ -3460,20 +3460,20 @@ Q.prototype = {
3460
3460
  break;
3461
3461
  case "dragenter":
3462
3462
  case "dragover":
3463
- K && (this._onDragOver(e), $c(e));
3463
+ K && (this._onDragOver(e), tl(e));
3464
3464
  break;
3465
3465
  case "selectstart": e.preventDefault();
3466
3466
  }
3467
3467
  },
3468
3468
  toArray: function() {
3469
- for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Fs(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || sl(t));
3469
+ for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Ls(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || ll(t));
3470
3470
  return e;
3471
3471
  },
3472
3472
  sort: function(e, t) {
3473
3473
  var n = {}, r = this.el;
3474
3474
  this.toArray().forEach(function(e, t) {
3475
3475
  var i = r.children[t];
3476
- Fs(i, this.options.draggable, r, !1) && (n[e] = i);
3476
+ Ls(i, this.options.draggable, r, !1) && (n[e] = i);
3477
3477
  }, this), t && this.captureAnimationState(), e.forEach(function(e) {
3478
3478
  n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
3479
3479
  }), t && this.animateAll();
@@ -3483,122 +3483,122 @@ Q.prototype = {
3483
3483
  e && e.set && e.set(this);
3484
3484
  },
3485
3485
  closest: function(e, t) {
3486
- return Fs(e, t || this.options.draggable, this.el, !1);
3486
+ return Ls(e, t || this.options.draggable, this.el, !1);
3487
3487
  },
3488
3488
  option: function(e, t) {
3489
3489
  var n = this.options;
3490
3490
  if (t === void 0) return n[e];
3491
- var r = cc.modifyOption(this, e, t);
3492
- n[e] = r === void 0 ? t : r, e === "group" && Jc(n);
3491
+ var r = uc.modifyOption(this, e, t);
3492
+ n[e] = r === void 0 ? t : r, e === "group" && Xc(n);
3493
3493
  },
3494
3494
  destroy: function() {
3495
- dc("destroy", this);
3495
+ pc("destroy", this);
3496
3496
  var e = this.el;
3497
- e[nc] = null, U(e, "mousedown", this._onTapStart), U(e, "touchstart", this._onTapStart), U(e, "pointerdown", this._onTapStart), this.nativeDraggable && (U(e, "dragover", this), U(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
3497
+ e[ic] = null, U(e, "mousedown", this._onTapStart), U(e, "touchstart", this._onTapStart), U(e, "pointerdown", this._onTapStart), this.nativeDraggable && (U(e, "dragover", this), U(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
3498
3498
  e.removeAttribute("draggable");
3499
- }), this._onDrop(), this._disableDelayedDragEvents(), Cc.splice(Cc.indexOf(this.el), 1), this.el = e = null;
3499
+ }), this._onDrop(), this._disableDelayedDragEvents(), Tc.splice(Tc.indexOf(this.el), 1), this.el = e = null;
3500
3500
  },
3501
3501
  _hideClone: function() {
3502
- if (!hc) {
3503
- if (dc("hideClone", this), Q.eventCanceled) return;
3504
- W(X, "display", "none"), this.options.removeCloneOnHide && X.parentNode && X.parentNode.removeChild(X), hc = !0;
3502
+ if (!_c) {
3503
+ if (pc("hideClone", this), Q.eventCanceled) return;
3504
+ W(X, "display", "none"), this.options.removeCloneOnHide && X.parentNode && X.parentNode.removeChild(X), _c = !0;
3505
3505
  }
3506
3506
  },
3507
3507
  _showClone: function(e) {
3508
3508
  if (e.lastPutMode !== "clone") this._hideClone();
3509
- else if (hc) {
3510
- if (dc("showClone", this), Q.eventCanceled) return;
3511
- K.parentNode == Y && !this.options.group.revertClone ? Y.insertBefore(X, K) : pc ? Y.insertBefore(X, pc) : Y.appendChild(X), this.options.group.revertClone && this.animate(K, X), W(X, "display", ""), hc = !1;
3509
+ else if (_c) {
3510
+ if (pc("showClone", this), Q.eventCanceled) return;
3511
+ K.parentNode == Y && !this.options.group.revertClone ? Y.insertBefore(X, K) : hc ? Y.insertBefore(X, hc) : Y.appendChild(X), this.options.group.revertClone && this.animate(K, X), W(X, "display", ""), _c = !1;
3512
3512
  }
3513
3513
  }
3514
3514
  };
3515
- function $c(e) {
3515
+ function tl(e) {
3516
3516
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
3517
3517
  }
3518
- function el(e, t, n, r, i, a, o, s) {
3519
- var c, l = e[nc], u = l.options.onMove, d;
3520
- return window.CustomEvent && !Es && !Ds ? c = new CustomEvent("move", {
3518
+ function nl(e, t, n, r, i, a, o, s) {
3519
+ var c, l = e[ic], u = l.options.onMove, d;
3520
+ return window.CustomEvent && !Os && !ks ? c = new CustomEvent("move", {
3521
3521
  bubbles: !0,
3522
3522
  cancelable: !0
3523
3523
  }) : (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 || G(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
3524
3524
  }
3525
- function tl(e) {
3525
+ function rl(e) {
3526
3526
  e.draggable = !1;
3527
3527
  }
3528
- function nl() {
3529
- Rc = !1;
3528
+ function il() {
3529
+ Bc = !1;
3530
3530
  }
3531
- function rl(e, t, n) {
3532
- var r = G(Hs(n.el, 0, n.options, !0)), i = tc(n.el, n.options, J), a = 10;
3531
+ function al(e, t, n) {
3532
+ var r = G(Ws(n.el, 0, n.options, !0)), i = rc(n.el, n.options, J), a = 10;
3533
3533
  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;
3534
3534
  }
3535
- function il(e, t, n) {
3536
- var r = G(Us(n.el, n.options.draggable)), i = tc(n.el, n.options, J), a = 10;
3535
+ function ol(e, t, n) {
3536
+ var r = G(Gs(n.el, n.options.draggable)), i = rc(n.el, n.options, J), a = 10;
3537
3537
  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;
3538
3538
  }
3539
- function al(e, t, n, r, i, a, o, s) {
3539
+ function sl(e, t, n, r, i, a, o, s) {
3540
3540
  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;
3541
3541
  if (!o) {
3542
- if (s && Fc < l * i) {
3543
- if (!Nc && (Mc === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Nc = !0), Nc) f = !0;
3544
- else if (Mc === 1 ? c < u + Fc : c > d - Fc) return -Mc;
3545
- } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return ol(t);
3542
+ if (s && Lc < l * i) {
3543
+ if (!Fc && (Pc === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Fc = !0), Fc) f = !0;
3544
+ else if (Pc === 1 ? c < u + Lc : c > d - Lc) return -Pc;
3545
+ } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return cl(t);
3546
3546
  }
3547
3547
  return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
3548
3548
  }
3549
- function ol(e) {
3550
- return Ws(K) < Ws(e) ? 1 : -1;
3549
+ function cl(e) {
3550
+ return Ks(K) < Ks(e) ? 1 : -1;
3551
3551
  }
3552
- function sl(e) {
3552
+ function ll(e) {
3553
3553
  for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
3554
3554
  return r.toString(36);
3555
3555
  }
3556
- function cl(e) {
3557
- zc.length = 0;
3556
+ function ul(e) {
3557
+ Vc.length = 0;
3558
3558
  for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
3559
3559
  var r = t[n];
3560
- r.checked && zc.push(r);
3560
+ r.checked && Vc.push(r);
3561
3561
  }
3562
3562
  }
3563
- function ll(e) {
3563
+ function dl(e) {
3564
3564
  return setTimeout(e, 0);
3565
3565
  }
3566
- function ul(e) {
3566
+ function fl(e) {
3567
3567
  return clearTimeout(e);
3568
3568
  }
3569
- Bc && H(document, "touchmove", function(e) {
3570
- (Q.active || xc) && e.cancelable && e.preventDefault();
3569
+ Hc && H(document, "touchmove", function(e) {
3570
+ (Q.active || Cc) && e.cancelable && e.preventDefault();
3571
3571
  }), Q.utils = {
3572
3572
  on: H,
3573
3573
  off: U,
3574
3574
  css: W,
3575
- find: zs,
3575
+ find: Vs,
3576
3576
  is: function(e, t) {
3577
- return !!Fs(e, t, e, !1);
3577
+ return !!Ls(e, t, e, !1);
3578
3578
  },
3579
- extend: Js,
3580
- throttle: Zs,
3581
- closest: Fs,
3582
- toggleClass: Ls,
3583
- clone: ec,
3584
- index: Ws,
3585
- nextTick: ll,
3586
- cancelNextTick: ul,
3587
- detectDirection: Gc,
3588
- getChild: Hs
3579
+ extend: Xs,
3580
+ throttle: $s,
3581
+ closest: Ls,
3582
+ toggleClass: zs,
3583
+ clone: nc,
3584
+ index: Ks,
3585
+ nextTick: dl,
3586
+ cancelNextTick: fl,
3587
+ detectDirection: qc,
3588
+ getChild: Ws
3589
3589
  }, Q.get = function(e) {
3590
- return e[nc];
3590
+ return e[ic];
3591
3591
  }, Q.mount = function() {
3592
3592
  var e = [...arguments];
3593
3593
  e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
3594
3594
  if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
3595
- e.utils && (Q.utils = vs(vs({}, Q.utils), e.utils)), cc.mount(e);
3595
+ e.utils && (Q.utils = bs(bs({}, Q.utils), e.utils)), uc.mount(e);
3596
3596
  });
3597
3597
  }, Q.create = function(e, t) {
3598
3598
  return new Q(e, t);
3599
- }, Q.version = ws;
3600
- var $ = [], dl, fl, pl = !1, ml, hl, gl, _l;
3601
- function vl() {
3599
+ }, Q.version = Es;
3600
+ var $ = [], pl, ml, hl = !1, gl, _l, vl, yl;
3601
+ function bl() {
3602
3602
  function e() {
3603
3603
  for (var e in this.defaults = {
3604
3604
  scroll: !0,
@@ -3618,63 +3618,63 @@ function vl() {
3618
3618
  !this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
3619
3619
  },
3620
3620
  drop: function() {
3621
- this.sortable.nativeDraggable ? U(document, "dragover", this._handleAutoScroll) : (U(document, "pointermove", this._handleFallbackAutoScroll), U(document, "touchmove", this._handleFallbackAutoScroll), U(document, "mousemove", this._handleFallbackAutoScroll)), bl(), yl(), Qs();
3621
+ this.sortable.nativeDraggable ? U(document, "dragover", this._handleAutoScroll) : (U(document, "pointermove", this._handleFallbackAutoScroll), U(document, "touchmove", this._handleFallbackAutoScroll), U(document, "mousemove", this._handleFallbackAutoScroll)), Sl(), xl(), ec();
3622
3622
  },
3623
3623
  nulling: function() {
3624
- gl = fl = dl = pl = _l = ml = hl = null, $.length = 0;
3624
+ vl = ml = pl = hl = yl = gl = _l = null, $.length = 0;
3625
3625
  },
3626
3626
  _handleFallbackAutoScroll: function(e) {
3627
3627
  this._handleAutoScroll(e, !0);
3628
3628
  },
3629
3629
  _handleAutoScroll: function(e, t) {
3630
3630
  var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
3631
- if (gl = e, t || this.options.forceAutoScrollFallback || Ds || Es || ks) {
3632
- xl(e, this.options, a, t);
3633
- var o = qs(a, !0);
3634
- pl && (!_l || r !== ml || i !== hl) && (_l && bl(), _l = setInterval(function() {
3635
- var a = qs(document.elementFromPoint(r, i), !0);
3636
- a !== o && (o = a, yl()), xl(e, n.options, a, t);
3637
- }, 10), ml = r, hl = i);
3631
+ if (vl = e, t || this.options.forceAutoScrollFallback || ks || Os || js) {
3632
+ Cl(e, this.options, a, t);
3633
+ var o = Ys(a, !0);
3634
+ hl && (!yl || r !== gl || i !== _l) && (yl && Sl(), yl = setInterval(function() {
3635
+ var a = Ys(document.elementFromPoint(r, i), !0);
3636
+ a !== o && (o = a, xl()), Cl(e, n.options, a, t);
3637
+ }, 10), gl = r, _l = i);
3638
3638
  } else {
3639
- if (!this.options.bubbleScroll || qs(a, !0) === Bs()) {
3640
- yl();
3639
+ if (!this.options.bubbleScroll || Ys(a, !0) === Hs()) {
3640
+ xl();
3641
3641
  return;
3642
3642
  }
3643
- xl(e, this.options, qs(a, !1), !1);
3643
+ Cl(e, this.options, Ys(a, !1), !1);
3644
3644
  }
3645
3645
  }
3646
- }, xs(e, {
3646
+ }, Cs(e, {
3647
3647
  pluginName: "scroll",
3648
3648
  initializeByDefault: !0
3649
3649
  });
3650
3650
  }
3651
- function yl() {
3651
+ function xl() {
3652
3652
  $.forEach(function(e) {
3653
3653
  clearInterval(e.pid);
3654
3654
  }), $ = [];
3655
3655
  }
3656
- function bl() {
3657
- clearInterval(_l);
3656
+ function Sl() {
3657
+ clearInterval(yl);
3658
3658
  }
3659
- var xl = Zs(function(e, t, n, r) {
3659
+ var Cl = $s(function(e, t, n, r) {
3660
3660
  if (t.scroll) {
3661
- var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = Bs(), l = !1, u;
3662
- fl !== n && (fl = n, yl(), dl = t.scroll, u = t.scrollFn, dl === !0 && (dl = qs(n, !0)));
3663
- var d = 0, f = dl;
3661
+ var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = Hs(), l = !1, u;
3662
+ ml !== n && (ml = n, xl(), pl = t.scroll, u = t.scrollFn, pl === !0 && (pl = Ys(n, !0)));
3663
+ var d = 0, f = pl;
3664
3664
  do {
3665
3665
  var p = f, m = G(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 = W(p), E = p.scrollLeft, ee = p.scrollTop;
3666
3666
  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"));
3667
3667
  var D = x && (Math.abs(v - i) <= o && E + y < C) - (Math.abs(_ - i) <= o && !!E), O = S && (Math.abs(g - a) <= o && ee + b < w) - (Math.abs(h - a) <= o && !!ee);
3668
3668
  if (!$[d]) for (var k = 0; k <= d; k++) $[k] || ($[k] = {});
3669
3669
  ($[d].vx != D || $[d].vy != O || $[d].el !== p) && ($[d].el = p, $[d].vx = D, $[d].vy = O, clearInterval($[d].pid), (D != 0 || O != 0) && (l = !0, $[d].pid = setInterval(function() {
3670
- r && this.layer === 0 && Q.active._onTouchMove(gl);
3670
+ r && this.layer === 0 && Q.active._onTouchMove(vl);
3671
3671
  var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
3672
- typeof u == "function" && u.call(Q.dragged.parentNode[nc], n, t, e, gl, $[this.layer].el) !== "continue" || $s($[this.layer].el, n, t);
3672
+ typeof u == "function" && u.call(Q.dragged.parentNode[ic], n, t, e, vl, $[this.layer].el) !== "continue" || tc($[this.layer].el, n, t);
3673
3673
  }.bind({ layer: d }), 24))), d++;
3674
- } while (t.bubbleScroll && f !== c && (f = qs(f, !1)));
3675
- pl = l;
3674
+ } while (t.bubbleScroll && f !== c && (f = Ys(f, !1)));
3675
+ hl = l;
3676
3676
  }
3677
- }, 30), Sl = function(e) {
3677
+ }, 30), wl = function(e) {
3678
3678
  var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
3679
3679
  if (t) {
3680
3680
  var c = n || i;
@@ -3686,8 +3686,8 @@ var xl = Zs(function(e, t, n, r) {
3686
3686
  }));
3687
3687
  }
3688
3688
  };
3689
- function Cl() {}
3690
- Cl.prototype = {
3689
+ function Tl() {}
3690
+ Tl.prototype = {
3691
3691
  startIndex: null,
3692
3692
  dragStart: function(e) {
3693
3693
  var t = e.oldDraggableIndex;
@@ -3696,67 +3696,67 @@ Cl.prototype = {
3696
3696
  onSpill: function(e) {
3697
3697
  var t = e.dragEl, n = e.putSortable;
3698
3698
  this.sortable.captureAnimationState(), n && n.captureAnimationState();
3699
- var r = Hs(this.sortable.el, this.startIndex, this.options);
3699
+ var r = Ws(this.sortable.el, this.startIndex, this.options);
3700
3700
  r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
3701
3701
  },
3702
- drop: Sl
3703
- }, xs(Cl, { pluginName: "revertOnSpill" });
3704
- function wl() {}
3705
- wl.prototype = {
3702
+ drop: wl
3703
+ }, Cs(Tl, { pluginName: "revertOnSpill" });
3704
+ function El() {}
3705
+ El.prototype = {
3706
3706
  onSpill: function(e) {
3707
3707
  var t = e.dragEl, n = e.putSortable || this.sortable;
3708
3708
  n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
3709
3709
  },
3710
- drop: Sl
3711
- }, xs(wl, { pluginName: "removeOnSpill" }), Q.mount(new vl()), Q.mount(wl, Cl);
3712
- function Tl(e) {
3710
+ drop: wl
3711
+ }, Cs(El, { pluginName: "removeOnSpill" }), Q.mount(new bl()), Q.mount(El, Tl);
3712
+ function Dl(e) {
3713
3713
  return e == null ? e : JSON.parse(JSON.stringify(e));
3714
3714
  }
3715
- function El(e) {
3715
+ function Ol(e) {
3716
3716
  O() && ne(e);
3717
3717
  }
3718
- function Dl(e) {
3718
+ function kl(e) {
3719
3719
  O() ? s(e) : _(e);
3720
3720
  }
3721
- var Ol = null, kl = null;
3722
- function Al(e = null, t = null) {
3723
- Ol = e, kl = t;
3721
+ var Al = null, jl = null;
3722
+ function Ml(e = null, t = null) {
3723
+ Al = e, jl = t;
3724
3724
  }
3725
- function jl() {
3725
+ function Nl() {
3726
3726
  return {
3727
- data: Ol,
3728
- clonedData: kl
3727
+ data: Al,
3728
+ clonedData: jl
3729
3729
  };
3730
3730
  }
3731
- var Ml = Symbol("cloneElement");
3732
- function Nl(...e) {
3731
+ var Pl = Symbol("cloneElement");
3732
+ function Fl(...e) {
3733
3733
  let t = O()?.proxy, n = null, r = e[0], [, i, a] = e;
3734
3734
  Array.isArray(A(i)) || (a = i, i = null);
3735
- let o = null, { immediate: s = !0, clone: l = Tl, forceFallback: u, fallbackOnBody: d, customUpdate: f } = A(a) ?? {};
3735
+ let o = null, { immediate: s = !0, clone: l = Dl, forceFallback: u, fallbackOnBody: d, customUpdate: f } = A(a) ?? {};
3736
3736
  function p(e) {
3737
3737
  let { from: t, oldIndex: r, item: a } = e, o = Array.from(t.childNodes);
3738
3738
  n = u && !d ? o.slice(0, -1) : o;
3739
3739
  let s = A(A(i)?.[r]), c = l(s);
3740
- Al(s, c), a[Ml] = c;
3740
+ Ml(s, c), a[Pl] = c;
3741
3741
  }
3742
3742
  function m(e) {
3743
- let t = e.item[Ml];
3744
- if (!os(t)) {
3745
- if (ls(e.item), w(i)) {
3743
+ let t = e.item[Pl];
3744
+ if (!cs(t)) {
3745
+ if (ds(e.item), w(i)) {
3746
3746
  let n = [...A(i)];
3747
- i.value = as(n, e.newDraggableIndex, t);
3747
+ i.value = ss(n, e.newDraggableIndex, t);
3748
3748
  return;
3749
3749
  }
3750
- as(A(i), e.newDraggableIndex, t);
3750
+ ss(A(i), e.newDraggableIndex, t);
3751
3751
  }
3752
3752
  }
3753
3753
  function h(e) {
3754
3754
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, pullMode: o, clone: s } = e;
3755
- if (cs(t, n, r), o === "clone") ls(s);
3755
+ if (us(t, n, r), o === "clone") ds(s);
3756
3756
  else if (w(i)) {
3757
3757
  let e = [...A(i)];
3758
- i.value = is(e, a);
3759
- } else is(A(i), a);
3758
+ i.value = os(e, a);
3759
+ } else os(A(i), a);
3760
3760
  }
3761
3761
  function g(e) {
3762
3762
  if (f) {
@@ -3764,10 +3764,10 @@ function Nl(...e) {
3764
3764
  return;
3765
3765
  }
3766
3766
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, newDraggableIndex: o } = e;
3767
- if (ls(n), cs(t, n, r), w(i)) {
3767
+ if (ds(n), us(t, n, r), w(i)) {
3768
3768
  let e = [...A(i)];
3769
- i.value = ts(e, a, o);
3770
- } else ts(A(i), a, o);
3769
+ i.value = rs(e, a, o);
3770
+ } else rs(A(i), a, o);
3771
3771
  }
3772
3772
  function v(e) {
3773
3773
  let { newIndex: t, oldIndex: r, from: i, to: a } = e, o = null, s = t === r && i === a;
@@ -3786,7 +3786,7 @@ function Nl(...e) {
3786
3786
  n = null;
3787
3787
  }
3788
3788
  _(() => {
3789
- if (Al(), o) throw o;
3789
+ if (Ml(), o) throw o;
3790
3790
  });
3791
3791
  }
3792
3792
  let y = {
@@ -3798,19 +3798,19 @@ function Nl(...e) {
3798
3798
  };
3799
3799
  function b(e) {
3800
3800
  let n = A(r);
3801
- return e ||= ss(n) ? us(n, t?.$el) : n, e && !ps(e) && (e = e.$el), e || es("Root element not found"), e;
3801
+ return e ||= ls(n) ? fs(n, t?.$el) : n, e && !hs(e) && (e = e.$el), e || ns("Root element not found"), e;
3802
3802
  }
3803
3803
  function x() {
3804
- let e = A(a) ?? {}, { immediate: t, clone: n } = e, r = Zo(e, ["immediate", "clone"]);
3805
- return ms(r, (e, t) => {
3806
- hs(e) && (r[e] = (e, ...n) => (gs(e, jl()), t(e, ...n)));
3807
- }), fs(i === null ? {} : y, r);
3804
+ let e = A(a) ?? {}, { immediate: t, clone: n } = e, r = $o(e, ["immediate", "clone"]);
3805
+ return gs(r, (e, t) => {
3806
+ _s(e) && (r[e] = (e, ...n) => (vs(e, Nl()), t(e, ...n)));
3807
+ }), ms(i === null ? {} : y, r);
3808
3808
  }
3809
3809
  let S = (e) => {
3810
3810
  e = b(e), o && C.destroy(), o = new Q(e, x());
3811
3811
  };
3812
3812
  c(() => a, () => {
3813
- o && ms(x(), (e, t) => {
3813
+ o && gs(x(), (e, t) => {
3814
3814
  o?.option(e, t);
3815
3815
  });
3816
3816
  }, { deep: !0 });
@@ -3823,15 +3823,15 @@ function Nl(...e) {
3823
3823
  toArray: () => o?.toArray(),
3824
3824
  closest: (...e) => o?.closest(...e)
3825
3825
  };
3826
- return Dl(() => {
3826
+ return kl(() => {
3827
3827
  s && S();
3828
- }), El(C.destroy), Xo({
3828
+ }), Ol(C.destroy), Qo({
3829
3829
  start: S,
3830
3830
  pause: () => C?.option("disabled", !0),
3831
3831
  resume: () => C?.option("disabled", !1)
3832
3832
  }, C);
3833
3833
  }
3834
- var Pl = [
3834
+ var Il = [
3835
3835
  "update",
3836
3836
  "start",
3837
3837
  "add",
@@ -3844,7 +3844,7 @@ var Pl = [
3844
3844
  "clone",
3845
3845
  "move",
3846
3846
  "change"
3847
- ], Fl = [
3847
+ ], Ll = [
3848
3848
  "clone",
3849
3849
  "animation",
3850
3850
  "ghostClass",
@@ -3888,46 +3888,46 @@ var Pl = [
3888
3888
  "tag",
3889
3889
  "target",
3890
3890
  "customUpdate",
3891
- ...Pl.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
3892
- ], Il = B({
3891
+ ...Il.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
3892
+ ], Rl = B({
3893
3893
  name: "VueDraggable",
3894
3894
  model: {
3895
3895
  prop: "modelValue",
3896
3896
  event: "update:modelValue"
3897
3897
  },
3898
- props: Fl,
3899
- emits: ["update:modelValue", ...Pl],
3898
+ props: Ll,
3899
+ emits: ["update:modelValue", ...Il],
3900
3900
  setup(e, { slots: t, emit: n, expose: r, attrs: i }) {
3901
- let a = Pl.reduce((e, t) => {
3901
+ let a = Il.reduce((e, t) => {
3902
3902
  let r = `on${t.replace(/^\S/, (e) => e.toUpperCase())}`;
3903
3903
  return e[r] = (...e) => n(t, ...e), e;
3904
3904
  }, {}), o = k(() => {
3905
- let t = D(e), { modelValue: n } = t, r = Zo(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
3905
+ let t = D(e), { modelValue: n } = t, r = $o(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
3906
3906
  let r = A(n);
3907
3907
  return r !== void 0 && (e[t] = r), e;
3908
3908
  }, {});
3909
- return Xo(Xo({}, a), rs(Xo(Xo({}, i), o)));
3909
+ return Qo(Qo({}, a), as(Qo(Qo({}, i), o)));
3910
3910
  }), s = k({
3911
3911
  get: () => e.modelValue,
3912
3912
  set: (e) => n("update:modelValue", e)
3913
- }), c = M(), l = b(Nl(e.target || c, s, o));
3913
+ }), c = M(), l = b(Fl(e.target || c, s, o));
3914
3914
  return r(l), () => x(e.tag || "div", { ref: c }, (t?.default)?.call(t, l));
3915
3915
  }
3916
- }), Ll = {
3916
+ }), zl = {
3917
3917
  mounted: "mounted",
3918
3918
  unmounted: "unmounted"
3919
3919
  };
3920
- Ll.mounted, Ll.unmounted;
3920
+ zl.mounted, zl.unmounted;
3921
3921
  // src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
3922
- var Rl = { class: "tpl:relative tpl:w-full" }, zl = {
3922
+ var Bl = { class: "tpl:relative tpl:w-full" }, Vl = {
3923
3923
  key: 0,
3924
3924
  "data-testid": "hero-image-hint",
3925
3925
  class: "tpl:pointer-events-none tpl:absolute tpl:inset-x-0 tpl:bottom-full tpl:mb-2 tpl:flex tpl:justify-center tpl:text-xs tpl:text-[var(--tpl-chrome-text-dim)]"
3926
- }, Bl = {
3926
+ }, Hl = {
3927
3927
  key: 0,
3928
3928
  "data-testid": "section-drop-hint",
3929
3929
  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)]"
3930
- }, Vl = /* @__PURE__ */ B({
3930
+ }, Ul = /* @__PURE__ */ B({
3931
3931
  __name: "SectionBlock",
3932
3932
  props: {
3933
3933
  block: {},
@@ -3936,46 +3936,21 @@ var Rl = { class: "tpl:relative tpl:w-full" }, zl = {
3936
3936
  },
3937
3937
  setup(e) {
3938
3938
  let t = {
3939
- title: Lo,
3940
- paragraph: $a,
3941
- image: Ka,
3942
- button: ma,
3943
- divider: Oa,
3944
- custom: Ea
3945
- }, n = e, { t: r } = ce(), i = Nn(Pn, "SectionBlock"), { displayBlock: o } = Pt(i), s = k(() => n.sourceBlock ?? n.block), c = z(_n, k(() => /* @__PURE__ */ new Set()));
3946
- g(_n, k(() => /* @__PURE__ */ new Set([...c.value, ...Object.entries(s.value.l10n ?? {}).filter(([, e]) => e.hidden).map(([e]) => e)])));
3947
- let u = z(Cn, null), f = z(xn, null), _ = z(pn, {}), b = z(an, null), x = z(cn, null);
3939
+ title: zo,
3940
+ paragraph: to,
3941
+ image: Ja,
3942
+ button: ga,
3943
+ divider: Aa,
3944
+ custom: Oa
3945
+ }, n = e, { t: r } = ce(), i = Fn(In, "SectionBlock"), { displayBlock: o } = It(i), s = k(() => n.sourceBlock ?? n.block), c = z(yn, k(() => /* @__PURE__ */ new Set()));
3946
+ g(yn, k(() => /* @__PURE__ */ new Set([...c.value, ...Object.entries(s.value.l10n ?? {}).filter(([, e]) => e.hidden).map(([e]) => e)])));
3947
+ let u = z(Tn, null), f = z(Cn, null), _ = z(hn, {}), b = z(sn, null), x = z(un, null);
3948
3948
  function w(e) {
3949
3949
  if (b?.value) return;
3950
3950
  let t = _.savedBlocks;
3951
3951
  t?.isPicking.value ? t.togglePick(n.block.id) : i.selectBlock(e);
3952
3952
  }
3953
- let T = k(() => {
3954
- switch (n.block.columns) {
3955
- case "2": return ["50%", "50%"];
3956
- case "3": return [
3957
- "33.33%",
3958
- "33.33%",
3959
- "33.33%"
3960
- ];
3961
- case "4": return [
3962
- "25%",
3963
- "25%",
3964
- "25%",
3965
- "25%"
3966
- ];
3967
- case "1-2": return ["33.33%", "66.67%"];
3968
- case "2-1": return ["66.67%", "33.33%"];
3969
- case "1-3": return ["25%", "75%"];
3970
- case "3-1": return ["75%", "25%"];
3971
- case "1-2-1": return [
3972
- "25%",
3973
- "50%",
3974
- "25%"
3975
- ];
3976
- default: return ["100%"];
3977
- }
3978
- }), ee = k(() => {
3953
+ let T = k(() => _t(n.block).map((e) => `${e}%`)), ee = k(() => {
3979
3954
  let e = T.value.length, t = [...(i.state.previewMode ? n.block : s.value).children];
3980
3955
  for (; t.length < e;) t.push([]);
3981
3956
  return t.slice(0, e);
@@ -3995,7 +3970,7 @@ var Rl = { class: "tpl:relative tpl:w-full" }, zl = {
3995
3970
  }
3996
3971
  let F = k(() => {
3997
3972
  if (i.state.previewMode) return !1;
3998
- let e = Be(n.block);
3973
+ let e = Ce(n.block);
3999
3974
  return e !== null && !e.applied && e.reason === "image";
4000
3975
  });
4001
3976
  function I(e) {
@@ -4005,10 +3980,10 @@ var Rl = { class: "tpl:relative tpl:w-full" }, zl = {
4005
3980
  return O(e).length === 0 && i.state.previewMode;
4006
3981
  }
4007
3982
  function oe(e, t) {
4008
- b?.value || eo(i, t, n.block.id, e);
3983
+ b?.value || no(i, t, n.block.id, e);
4009
3984
  }
4010
3985
  function B(e) {
4011
- return Ji(e, f, t);
3986
+ return Xi(e, f, t);
4012
3987
  }
4013
3988
  function se(e, t) {
4014
3989
  b?.value || e.type !== "custom" || i.updateBlock(e.id, {
@@ -4016,17 +3991,17 @@ var Rl = { class: "tpl:relative tpl:w-full" }, zl = {
4016
3991
  dataSourceFetched: t.dataSourceFetched
4017
3992
  });
4018
3993
  }
4019
- return (t, s) => (m(), N("div", Rl, [F.value ? (m(), N("div", zl, [P("span", null, d(A(r).section.heroAddImage), 1)])) : j("", !0), P("div", { class: h(["tpl:flex tpl:gap-0", { "tpl:flex-col": D.value }]) }, [(m(!0), N(L, null, v(ee.value, (t, c) => (m(), N("div", {
3994
+ return (t, s) => (m(), N("div", Bl, [F.value ? (m(), N("div", Vl, [P("span", null, d(A(r).section.heroAddImage), 1)])) : j("", !0), P("div", { class: h(["tpl:flex tpl:gap-0", { "tpl:flex-col": D.value }]) }, [(m(!0), N(L, null, v(ee.value, (t, c) => (m(), N("div", {
4020
3995
  key: c,
4021
3996
  class: h(["tpl:relative tpl:flex tpl:flex-col tpl:rounded", I(c) ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
4022
3997
  style: y({ width: D.value ? "100%" : T.value[c] })
4023
- }, [E(A(Il), {
3998
+ }, [E(A(Rl), {
4024
3999
  disabled: A(b) ?? !1,
4025
4000
  "model-value": O(c),
4026
4001
  group: {
4027
4002
  name: "blocks",
4028
4003
  pull: !0,
4029
- put: (e, t, n) => A(Wo)(n)
4004
+ put: (e, t, n) => A(Ko)(n)
4030
4005
  },
4031
4006
  animation: 150,
4032
4007
  "ghost-class": "tpl-ghost",
@@ -4040,12 +4015,12 @@ var Rl = { class: "tpl:relative tpl:w-full" }, zl = {
4040
4015
  "tpl:min-h-[60px]": ie(c),
4041
4016
  "tpl:min-h-[34px]": ae(c)
4042
4017
  }]),
4043
- onUpdate: (e) => !A(b) && A(eo)(A(i), O(c), n.block.id, c, e),
4018
+ onUpdate: (e) => !A(b) && A(no)(A(i), O(c), n.block.id, c, e),
4044
4019
  onStart: (e) => re.value = c,
4045
4020
  onEnd: s[0] ||= (e) => re.value = null,
4046
4021
  "onUpdate:modelValue": (e) => oe(c, e)
4047
4022
  }, {
4048
- default: S(() => [(m(!0), N(L, null, v(O(c), (t) => C((m(), N("div", { key: t.id }, [E(Fo, {
4023
+ default: S(() => [(m(!0), N(L, null, v(O(c), (t) => C((m(), N("div", { key: t.id }, [E(Lo, {
4049
4024
  block: t,
4050
4025
  "display-block": A(o)(t),
4051
4026
  "is-selected": A(i).state.selectedBlockId === t.id,
@@ -4082,14 +4057,14 @@ var Rl = { class: "tpl:relative tpl:w-full" }, zl = {
4082
4057
  "onUpdate",
4083
4058
  "onStart",
4084
4059
  "onUpdate:modelValue"
4085
- ]), I(c) ? (m(), N("div", Bl, [P("span", null, d(A(r).section.dropHere), 1)])) : j("", !0)], 6))), 128))], 2)]));
4060
+ ]), I(c) ? (m(), N("div", Hl, [P("span", null, d(A(r).section.dropHere), 1)])) : j("", !0)], 6))), 128))], 2)]));
4086
4061
  }
4087
- }), Hl = ["width", "height"], Ul = [
4062
+ }), Wl = ["width", "height"], Gl = [
4088
4063
  "d",
4089
4064
  "stroke",
4090
4065
  "stroke-opacity",
4091
4066
  "stroke-width"
4092
- ], Wl = ["d", "fill"], Gl = /* @__PURE__ */ B({
4067
+ ], Kl = ["d", "fill"], ql = /* @__PURE__ */ B({
4093
4068
  __name: "SocialIconSvg",
4094
4069
  props: {
4095
4070
  platform: {},
@@ -4098,7 +4073,7 @@ var Rl = { class: "tpl:relative tpl:w-full" }, zl = {
4098
4073
  iconSize: {}
4099
4074
  },
4100
4075
  setup(e) {
4101
- let t = e, n = k(() => tr[t.platform]), r = k(() => rr[t.iconSize]), i = k(() => Me(t.platform, t.iconTone)), a = k(() => et(t.iconStyle, t.iconTone)), o = k(() => {
4076
+ let t = e, n = k(() => rr[t.platform]), r = k(() => ar[t.iconSize]), i = k(() => it(t.platform, t.iconTone)), a = k(() => mt(t.iconStyle, t.iconTone)), o = k(() => {
4102
4077
  let e = {
4103
4078
  display: "inline-flex",
4104
4079
  alignItems: "center",
@@ -4136,7 +4111,7 @@ var Rl = { class: "tpl:relative tpl:w-full" }, zl = {
4136
4111
  };
4137
4112
  default: return e;
4138
4113
  }
4139
- }), s = k(() => me(t.iconStyle)), c = k(() => Math.floor(r.value * s.value));
4114
+ }), s = k(() => We(t.iconStyle)), c = k(() => Math.floor(r.value * s.value));
4140
4115
  function l(e) {
4141
4116
  let t = `${e.width / 2 * r.value / 24}px`, n = Math.round(e.opacity * 255).toString(16).padStart(2, "0"), i = `${e.color}${n}`;
4142
4117
  return `0 0 0 ${t} ${i}, inset 0 0 0 ${t} ${i}`;
@@ -4157,15 +4132,15 @@ var Rl = { class: "tpl:relative tpl:w-full" }, zl = {
4157
4132
  "stroke-opacity": a.value.opacity,
4158
4133
  "stroke-width": a.value.width / s.value,
4159
4134
  "stroke-linejoin": "round"
4160
- }, null, 8, Ul)) : j("", !0), P("path", {
4135
+ }, null, 8, Gl)) : j("", !0), P("path", {
4161
4136
  d: n.value.path,
4162
4137
  fill: u.value
4163
- }, null, 8, Wl)], 8, Hl))], 4));
4138
+ }, null, 8, Kl)], 8, Wl))], 4));
4164
4139
  }
4165
- }), Kl = { class: "tpl:w-full" }, ql = ["href"], Jl = {
4140
+ }), Jl = { class: "tpl:w-full" }, Yl = ["href"], Xl = {
4166
4141
  key: 1,
4167
4142
  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)]"
4168
- }, Yl = /* @__PURE__ */ B({
4143
+ }, Zl = /* @__PURE__ */ B({
4169
4144
  __name: "SocialIconsBlock",
4170
4145
  props: {
4171
4146
  block: {},
@@ -4178,7 +4153,7 @@ var Rl = { class: "tpl:relative tpl:w-full" }, zl = {
4178
4153
  gap: `${t.block.spacing}px`,
4179
4154
  justifyContent: t.block.align === "left" ? "flex-start" : t.block.align === "right" ? "flex-end" : "center"
4180
4155
  })), a = k(() => t.block.icons.length > 0);
4181
- return (t, o) => (m(), N("div", Kl, [a.value ? (m(), N("div", {
4156
+ return (t, o) => (m(), N("div", Jl, [a.value ? (m(), N("div", {
4182
4157
  key: 0,
4183
4158
  style: y(r.value)
4184
4159
  }, [(m(!0), N(L, null, v(e.block.icons, (t) => (m(), N("a", {
@@ -4186,7 +4161,7 @@ var Rl = { class: "tpl:relative tpl:w-full" }, zl = {
4186
4161
  href: t.url || "#",
4187
4162
  class: "tpl:cursor-default",
4188
4163
  onClick: o[0] ||= i(() => {}, ["prevent"])
4189
- }, [E(Gl, {
4164
+ }, [E(ql, {
4190
4165
  platform: t.platform,
4191
4166
  "icon-style": e.block.iconStyle,
4192
4167
  "icon-tone": e.block.iconTone,
@@ -4196,46 +4171,46 @@ var Rl = { class: "tpl:relative tpl:w-full" }, zl = {
4196
4171
  "icon-style",
4197
4172
  "icon-tone",
4198
4173
  "icon-size"
4199
- ])], 8, ql))), 128))], 4)) : (m(), N("div", Jl, [E(A(Hn), { size: 16 }), P("span", null, d(A(n).social.addIcons), 1)]))]));
4174
+ ])], 8, Yl))), 128))], 4)) : (m(), N("div", Xl, [E(A(Wn), { size: 16 }), P("span", null, d(A(n).social.addIcons), 1)]))]));
4200
4175
  }
4201
- }), Xl = { class: "tpl:w-full" }, Zl = {
4176
+ }), Ql = { class: "tpl:w-full" }, $l = {
4202
4177
  key: 0,
4203
4178
  class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
4204
4179
  style: {
4205
4180
  "background-color": "var(--tpl-bg-hover)",
4206
4181
  color: "var(--tpl-text-dim)"
4207
4182
  }
4208
- }, Ql = /* @__PURE__ */ B({
4183
+ }, eu = /* @__PURE__ */ B({
4209
4184
  __name: "SpacerBlock",
4210
4185
  props: {
4211
4186
  block: {},
4212
4187
  viewport: {}
4213
4188
  },
4214
4189
  setup(e) {
4215
- let t = e, n = Nn(Pn, "SpacerBlock"), r = k(() => ({
4190
+ let t = e, n = Fn(In, "SpacerBlock"), r = k(() => ({
4216
4191
  height: `${t.block.height}px`,
4217
4192
  minHeight: `${t.block.height}px`,
4218
4193
  ...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
4219
4194
  }));
4220
- return (t, i) => (m(), N("div", Xl, [P("div", {
4195
+ return (t, i) => (m(), N("div", Ql, [P("div", {
4221
4196
  style: y(r.value),
4222
4197
  class: h(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:box-border tpl:border-y tpl:border-x-0 tpl:border-dashed": !A(n).state.previewMode }])
4223
- }, [A(n).state.previewMode ? j("", !0) : (m(), N("span", Zl, d(e.block.height) + "px ", 1))], 6)]));
4198
+ }, [A(n).state.previewMode ? j("", !0) : (m(), N("span", $l, d(e.block.height) + "px ", 1))], 6)]));
4224
4199
  }
4225
- }), $l = { class: "tpl:w-full" }, eu = { key: 0 }, tu = [
4200
+ }), tu = { class: "tpl:w-full" }, nu = { key: 0 }, ru = [
4226
4201
  "aria-label",
4227
4202
  "contenteditable",
4228
4203
  "data-placeholder",
4229
4204
  "onBlur"
4230
- ], nu = [
4205
+ ], iu = [
4231
4206
  "aria-label",
4232
4207
  "contenteditable",
4233
4208
  "data-placeholder",
4234
4209
  "onBlur"
4235
- ], ru = {
4210
+ ], au = {
4236
4211
  key: 1,
4237
4212
  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)]"
4238
- }, iu = /*#__PURE__*/ Er(/* @__PURE__ */ B({
4213
+ }, ou = /*#__PURE__*/ Or(/* @__PURE__ */ B({
4239
4214
  __name: "TableBlock",
4240
4215
  props: {
4241
4216
  block: {},
@@ -4249,7 +4224,7 @@ var Rl = { class: "tpl:relative tpl:w-full" }, zl = {
4249
4224
  updated(e, t) {
4250
4225
  t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
4251
4226
  }
4252
- }, n = e, { t: r } = ce(), a = Nn(Pn, "TableBlock"), s = Nn(un, "TableBlock"), c = z(an, null), l = k(() => n.block.rows.length > 0), u = k(() => {
4227
+ }, n = e, { t: r } = ce(), a = Fn(In, "TableBlock"), s = Fn(fn, "TableBlock"), c = z(sn, null), l = k(() => n.block.rows.length > 0), u = k(() => {
4253
4228
  let e = {
4254
4229
  width: "100%",
4255
4230
  borderCollapse: "collapse",
@@ -4281,11 +4256,11 @@ var Rl = { class: "tpl:relative tpl:w-full" }, zl = {
4281
4256
  } : n);
4282
4257
  a.updateBlock(n.block.id, { rows: o });
4283
4258
  }
4284
- return (e, n) => (m(), N("div", $l, [l.value ? (m(), N("table", {
4259
+ return (e, n) => (m(), N("div", tu, [l.value ? (m(), N("table", {
4285
4260
  key: 0,
4286
4261
  style: y(u.value),
4287
4262
  class: "tpl-table-editable"
4288
- }, [h.value ? (m(), N("thead", eu, [P("tr", null, [(m(!0), N(L, null, v(h.value.cells, (e) => C((m(), N("th", {
4263
+ }, [h.value ? (m(), N("thead", nu, [P("tr", null, [(m(!0), N(L, null, v(h.value.cells, (e) => C((m(), N("th", {
4289
4264
  key: e.id,
4290
4265
  style: y(p.value),
4291
4266
  "aria-label": A(r).table.cellPlaceholder,
@@ -4294,7 +4269,7 @@ var Rl = { class: "tpl:relative tpl:w-full" }, zl = {
4294
4269
  onBlur: (t) => b(h.value.id, e.id, t),
4295
4270
  onKeydown: n[0] ||= o(i((e) => e.target.blur(), ["prevent"]), ["enter"]),
4296
4271
  onClick: i(_, ["stop"])
4297
- }, null, 44, tu)), [[t, e.content]])), 128))])])) : j("", !0), P("tbody", null, [(m(!0), N(L, null, v(g.value, (e) => (m(), N("tr", { key: e.id }, [(m(!0), N(L, null, v(e.cells, (a) => C((m(), N("td", {
4272
+ }, null, 44, ru)), [[t, e.content]])), 128))])])) : j("", !0), P("tbody", null, [(m(!0), N(L, null, v(g.value, (e) => (m(), N("tr", { key: e.id }, [(m(!0), N(L, null, v(e.cells, (a) => C((m(), N("td", {
4298
4273
  key: a.id,
4299
4274
  style: y(f.value),
4300
4275
  "aria-label": A(r).table.cellPlaceholder,
@@ -4303,9 +4278,9 @@ var Rl = { class: "tpl:relative tpl:w-full" }, zl = {
4303
4278
  onBlur: (t) => b(e.id, a.id, t),
4304
4279
  onKeydown: n[1] ||= o(i((e) => e.target.blur(), ["prevent"]), ["enter"]),
4305
4280
  onClick: i(_, ["stop"])
4306
- }, null, 44, nu)), [[t, a.content]])), 128))]))), 128))])], 4)) : (m(), N("div", ru, [E(A(Un), { size: 16 }), P("span", null, d(A(r).table.empty), 1)]))]));
4281
+ }, null, 44, iu)), [[t, a.content]])), 128))]))), 128))])], 4)) : (m(), N("div", au, [E(A(Gn), { size: 16 }), P("span", null, d(A(r).table.empty), 1)]))]));
4307
4282
  }
4308
- }), [["__scopeId", "data-v-73b9f5e5"]]), au = /* @__PURE__ */ B({
4283
+ }), [["__scopeId", "data-v-73b9f5e5"]]), su = /* @__PURE__ */ B({
4309
4284
  __name: "VideoPlayButton",
4310
4285
  props: { hoverEffect: {
4311
4286
  type: Boolean,
@@ -4322,7 +4297,7 @@ var Rl = { class: "tpl:relative tpl:w-full" }, zl = {
4322
4297
  }
4323
4298
  });
4324
4299
  // src/utils/videoThumbnail.ts
4325
- function ou(e) {
4300
+ function cu(e) {
4326
4301
  if (!e) return {
4327
4302
  platform: "unknown",
4328
4303
  videoId: null,
@@ -4354,24 +4329,24 @@ function ou(e) {
4354
4329
  thumbnailUrl: null
4355
4330
  };
4356
4331
  }
4357
- function su(e, t) {
4358
- return t || ou(e).thumbnailUrl;
4332
+ function lu(e, t) {
4333
+ return t || cu(e).thumbnailUrl;
4359
4334
  }
4360
4335
  // src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
4361
- var cu = ["src", "alt"], lu = {
4336
+ var uu = ["src", "alt"], du = {
4362
4337
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
4363
4338
  style: { opacity: "0.7" }
4364
- }, uu = ["href"], du = ["src", "alt"], fu = ["src", "alt"], pu = {
4339
+ }, fu = ["href"], pu = ["src", "alt"], mu = ["src", "alt"], hu = {
4365
4340
  key: 3,
4366
4341
  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)]"
4367
- }, mu = /* @__PURE__ */ B({
4342
+ }, gu = /* @__PURE__ */ B({
4368
4343
  __name: "VideoBlock",
4369
4344
  props: {
4370
4345
  block: {},
4371
4346
  viewport: {}
4372
4347
  },
4373
4348
  setup(e) {
4374
- let t = e, { t: n } = ce(), { syntax: r } = V(), a = k(() => ot(t.block.url, r) || ot(t.block.thumbnailUrl, r)), o = Jn(() => a.value ? void 0 : t.block.thumbnailUrl || void 0), s = Jn(() => a.value ? t.block.placeholderUrl : void 0), c = k(() => a.value ? null : t.block.thumbnailUrl ? o.value ?? null : su(t.block.url)), l = k(() => ({ textAlign: t.block.align })), u = k(() => {
4349
+ let t = e, { t: n } = ce(), { syntax: r } = V(), a = k(() => ke(t.block.url, r) || ke(t.block.thumbnailUrl, r)), o = Xn(() => a.value ? void 0 : t.block.thumbnailUrl || void 0), s = Xn(() => a.value ? t.block.placeholderUrl : void 0), c = k(() => a.value ? null : t.block.thumbnailUrl ? o.value ?? null : lu(t.block.url)), l = k(() => ({ textAlign: t.block.align })), u = k(() => {
4375
4350
  let e = t.block.align;
4376
4351
  return {
4377
4352
  maxWidth: "100%",
@@ -4381,7 +4356,7 @@ var cu = ["src", "alt"], lu = {
4381
4356
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
4382
4357
  marginRight: e === "center" ? "auto" : void 0
4383
4358
  };
4384
- }), f = k(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), p = k(() => ot(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
4359
+ }), f = k(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), p = k(() => ke(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
4385
4360
  return (t, r) => (m(), N("div", {
4386
4361
  class: "tpl:w-full",
4387
4362
  style: y(l.value)
@@ -4394,16 +4369,16 @@ var cu = ["src", "alt"], lu = {
4394
4369
  src: A(s),
4395
4370
  alt: e.block.alt,
4396
4371
  style: y(f.value)
4397
- }, null, 12, cu), E(au)], 4)) : a.value ? (m(), N("div", {
4372
+ }, null, 12, uu), E(su)], 4)) : a.value ? (m(), N("div", {
4398
4373
  key: 1,
4399
4374
  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)]",
4400
4375
  style: y([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, u.value])
4401
- }, [E(A(Lr), {
4376
+ }, [E(A(zr), {
4402
4377
  size: 36,
4403
4378
  "stroke-width": 1.5,
4404
4379
  class: "tpl:text-[var(--tpl-primary)]",
4405
4380
  style: { opacity: "0.5" }
4406
- }), P("span", lu, [E(fa, { text: p.value }, null, 8, ["text"])])], 4)) : c.value ? (m(), N(L, { key: 2 }, [e.block.url ? (m(), N("a", {
4381
+ }), P("span", du, [E(ma, { text: p.value }, null, 8, ["text"])])], 4)) : c.value ? (m(), N(L, { key: 2 }, [e.block.url ? (m(), N("a", {
4407
4382
  key: 0,
4408
4383
  href: e.block.url,
4409
4384
  target: "_blank",
@@ -4416,7 +4391,7 @@ var cu = ["src", "alt"], lu = {
4416
4391
  src: c.value,
4417
4392
  alt: e.block.alt,
4418
4393
  style: y(f.value)
4419
- }, null, 12, du), E(au, { "hover-effect": "" })], 12, uu)) : (m(), N("div", {
4394
+ }, null, 12, pu), E(su, { "hover-effect": "" })], 12, fu)) : (m(), N("div", {
4420
4395
  key: 1,
4421
4396
  class: "tpl:relative tpl:inline-block",
4422
4397
  style: y(u.value)
@@ -4425,53 +4400,53 @@ var cu = ["src", "alt"], lu = {
4425
4400
  src: c.value,
4426
4401
  alt: e.block.alt,
4427
4402
  style: y(f.value)
4428
- }, null, 12, fu), E(au)], 4))], 64)) : (m(), N("div", pu, [E(A(Lr), {
4403
+ }, null, 12, mu), E(su)], 4))], 64)) : (m(), N("div", hu, [E(A(zr), {
4429
4404
  size: 40,
4430
4405
  "stroke-width": 1.5,
4431
4406
  class: "tpl:text-[var(--tpl-border-light)]"
4432
4407
  }), P("span", null, d(A(n).video.addVideo), 1)]))], 4));
4433
4408
  }
4434
- }), hu = {
4435
- section: Vl,
4436
- title: Lo,
4437
- paragraph: $a,
4438
- image: Ka,
4439
- button: ma,
4440
- divider: Oa,
4441
- video: mu,
4442
- social: Yl,
4443
- menu: Xa,
4444
- table: iu,
4445
- spacer: Ql,
4446
- html: Pa,
4409
+ }), _u = {
4410
+ section: Ul,
4411
+ title: zo,
4412
+ paragraph: to,
4413
+ image: Ja,
4414
+ button: ga,
4415
+ divider: Aa,
4416
+ video: gu,
4417
+ social: Zl,
4418
+ menu: Qa,
4419
+ table: ou,
4420
+ spacer: eu,
4421
+ html: Ia,
4447
4422
  countdown: oe(() => import("./CountdownBlock-AYPypmcX.js"))
4448
4423
  };
4449
- function gu(t) {
4450
- let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: s } = ce(i), l = k(() => bt(bt(bt(Ci(i), Ui(n.content.value.settings?.locale)), Se(n.content.value.settings) === "rtl" ? {
4424
+ function vu(t) {
4425
+ let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: s } = ce(i), l = k(() => at(at(at(Ti(i), Gi(n.content.value.settings?.locale)), Te(n.content.value.settings) === "rtl" ? {
4451
4426
  title: { textAlign: "right" },
4452
4427
  table: { textAlign: "right" }
4453
4428
  } : {}), r.blockDefaults ?? {}));
4454
4429
  n.setUiTheme(r.uiTheme ?? "auto");
4455
- let { resolvedTheme: u } = mi(k(() => n.state.uiTheme)), d = M(r.theme ?? {}), { themeStyles: f } = qr({
4430
+ let { resolvedTheme: u } = gi(k(() => n.state.uiTheme)), d = M(r.theme ?? {}), { themeStyles: f } = Yr({
4456
4431
  themeOverrides: d,
4457
4432
  resolvedTheme: u,
4458
4433
  extraStyles: () => ({
4459
4434
  "--tpl-drop-text": `"${i.canvas.dropHere}"`,
4460
4435
  ...t.themeExtraStyles?.()
4461
4436
  })
4462
- }), p = t.history ?? Gn({
4437
+ }), p = t.history ?? qn({
4463
4438
  content: n.content,
4464
4439
  setContent: (e, t) => n.setContent(e, t)
4465
4440
  });
4466
- t.history ? n.contentReplaced && c(n.contentReplaced, () => p.clear(), { flush: "sync" }) : Yn(n, p);
4467
- let m = Wn({
4441
+ t.history ? n.contentReplaced && c(n.contentReplaced, () => p.clear(), { flush: "sync" }) : Zn(n, p);
4442
+ let m = Kn({
4468
4443
  addBlock: n.addBlock,
4469
4444
  removeBlock: n.removeBlock,
4470
4445
  updateBlock: n.updateBlock,
4471
4446
  selectBlock: n.selectBlock,
4472
4447
  findBlockLocation: n.findBlockLocation,
4473
4448
  blockDefaults: () => l.value
4474
- }), h = lr(n), _ = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? qn({
4449
+ }), h = dr(n), _ = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? Yn({
4475
4450
  content: n.content,
4476
4451
  isDirty: () => n.state.isDirty,
4477
4452
  ...t.autoSaveOptions
@@ -4479,27 +4454,27 @@ function gu(t) {
4479
4454
  _ && (v = c(p.isNavigating, (e) => {
4480
4455
  e ? _.pause() : _.resume();
4481
4456
  }));
4482
- let y = pi(n, {
4457
+ let y = hi(n, {
4483
4458
  t: o,
4484
4459
  format: s
4485
- }, r.customBlocks ?? []), b = At(r.colors);
4486
- if (b.allowCustomIgnored && Dt.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), b.invalidPresets.length > 0 && Dt.warn(`config.colors.presets skipped invalid entries: ${b.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), b.allowCustom === !1) {
4487
- let e = Si(b.presets, r.blockDefaults, r.templateDefaults);
4488
- e.length > 0 && Dt.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.`);
4489
- }
4490
- let x = ur(r.templateSettings);
4491
- for (let e of x.unknown) Dt.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${dr.join(", ")}) — skipping it.`);
4492
- let S = Vr();
4493
- yi(S, hu);
4460
+ }, r.customBlocks ?? []), b = Mt(r.colors);
4461
+ if (b.allowCustomIgnored && kt.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), b.invalidPresets.length > 0 && kt.warn(`config.colors.presets skipped invalid entries: ${b.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), b.allowCustom === !1) {
4462
+ let e = wi(b.presets, r.blockDefaults, r.templateDefaults);
4463
+ e.length > 0 && kt.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.`);
4464
+ }
4465
+ let x = fr(r.templateSettings);
4466
+ for (let e of x.unknown) kt.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${pr.join(", ")}) — skipping it.`);
4467
+ let S = Ur();
4468
+ xi(S, _u);
4494
4469
  let C = /* @__PURE__ */ new Set();
4495
4470
  function w(e) {
4496
4471
  for (let t of e) {
4497
- S.registerCustom(t, Ea);
4498
- for (let e of Wi(t, b)) C.has(e.id) || (C.add(e.id), Dt.warn(e.message));
4472
+ S.registerCustom(t, Oa);
4473
+ for (let e of Ki(t, b)) C.has(e.id) || (C.add(e.id), kt.warn(e.message));
4499
4474
  }
4500
4475
  }
4501
4476
  r.customBlocks?.length && w(r.customBlocks);
4502
- let E = ii();
4477
+ let E = oi();
4503
4478
  if (I() && T(E.dispose), t.containerEl) {
4504
4479
  let n = t.containerEl;
4505
4480
  e(document, "pointerdown", (e) => {
@@ -4512,7 +4487,7 @@ function gu(t) {
4512
4487
  e ? e.save() : _?.flush();
4513
4488
  }
4514
4489
  function D(e) {
4515
- E.isActive() && Ki(e, {
4490
+ E.isActive() && Ji(e, {
4516
4491
  history: p,
4517
4492
  selectBlock: (e) => n.selectBlock(e),
4518
4493
  getSelectedBlockId: () => n.state.selectedBlockId,
@@ -4525,45 +4500,45 @@ function gu(t) {
4525
4500
  }
4526
4501
  e(document, "keydown", D);
4527
4502
  let O = M(null), A = t.editorRoot ?? document;
4528
- g(Ln, A), g(Dn, O), g(zt, /* @__PURE__ */ new Map()), g(ln, i), g(Pn, n), g(In, p), g(An, m), g(Cn, h), g(un, a), g(vn, f), g(fn, u), g(dn, l), g(jn, r.locale), g(xn, S), g(gn, r.customBlocks ?? []), g(Gt, r.paletteBlocks), g(Qt, bi(r.htmlBlockPreview)), g($t, r.layout), g(Ft, r.sectionWrapper), g(En, b), g(kn, x.fields), g(hn, hi(n.content, S));
4529
- let j = Te(r.mergeTags?.syntax);
4503
+ g(zn, A), g(kn, O), g(Vt, /* @__PURE__ */ new Map()), g(dn, i), g(In, n), g(Rn, p), g(Mn, m), g(Tn, h), g(fn, a), g(bn, f), g(mn, u), g(pn, l), g(Nn, r.locale), g(Cn, S), g(vn, r.customBlocks ?? []), g(qt, r.paletteBlocks), g(en, Si(r.htmlBlockPreview)), g(tn, r.layout), g(Lt, r.sectionWrapper), g(On, b), g(jn, x.fields), g(_n, _i(n.content, S));
4504
+ let j = je(r.mergeTags?.syntax);
4530
4505
  for (let e of ["opener", "closer"]) {
4531
4506
  let t = j[e];
4532
- typeof t == "string" && t.trim() === "" && Dt.warn(`config.mergeTags.syntax.${e} is blank — ignoring it.`);
4507
+ typeof t == "string" && t.trim() === "" && kt.warn(`config.mergeTags.syntax.${e} is blank — ignoring it.`);
4533
4508
  }
4534
- typeof j.opener != "string" && typeof j.closer == "string" && j.closer.trim() !== "" && rt(j) === null && Dt.warn("config.mergeTags.syntax.closer has no effect without an opener — set opener to turn on autocomplete for this syntax.");
4509
+ typeof j.opener != "string" && typeof j.closer == "string" && j.closer.trim() !== "" && wt(j) === null && kt.warn("config.mergeTags.syntax.closer has no effect without an opener — set opener to turn on autocomplete for this syntax.");
4535
4510
  let N = ie(r.mergeTags?.tags ?? []);
4536
4511
  function te(e) {
4537
- Array.isArray(e) ? N.value = e : Dt.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
4512
+ Array.isArray(e) ? N.value = e : kt.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
4538
4513
  }
4539
- g(Xt, N), g(Lt, j), g(Vt, r.mergeTags?.onRequest ?? null), g(Bt, r.mergeTags?.autocomplete !== !1), g(Rn, r.mergeTags?.showRawValue !== !1);
4540
- let ne = M(nt(r.mergeTags?.tags ?? []));
4541
- g(Zt, ne);
4542
- let re = si({
4514
+ g(Qt, N), g(zt, j), g(Ut, r.mergeTags?.onRequest ?? null), g(Ht, r.mergeTags?.autocomplete !== !1), g(Bn, r.mergeTags?.showRawValue !== !1);
4515
+ let ne = M(Dt(r.mergeTags?.tags ?? []));
4516
+ g($t, ne);
4517
+ let re = li({
4543
4518
  resolvePreview: r.resolvePreview,
4544
4519
  surface: "preview",
4545
4520
  getContent: () => {
4546
4521
  let e = n.content.value;
4547
4522
  if (!n.state.previewMode) return e;
4548
- let t = n.activeLocale?.value ?? e.settings.locale ?? "en", i = gt(e, t);
4549
- return r.layout ? Ne(gt(r.layout, t, { missing: "default" }), i) : i;
4523
+ let t = n.activeLocale?.value ?? e.settings.locale ?? "en", i = Ue(e, t);
4524
+ return r.layout ? ge(Ue(r.layout, t, { missing: "default" }), i) : i;
4550
4525
  },
4551
4526
  isActive: () => n.state.previewMode,
4552
4527
  getLocale: () => n.activeLocale?.value ?? n.content.value.settings.locale
4553
4528
  });
4554
- g(Wt, re), g(on, r.resolvePreview);
4529
+ g(Kt, re), g(cn, r.resolvePreview);
4555
4530
  let P = null;
4556
- g(rn, (e) => (P = e, () => {
4531
+ g(on, (e) => (P = e, () => {
4557
4532
  P === e && (P = null);
4558
4533
  }));
4559
4534
  let F = () => (P ?? re.refresh)(), L = k(() => !(n.state.previewMode && re.isConfigured));
4560
- g(cn, L);
4561
- let ae = ci();
4562
- g(Ut, ae), g(Kt, M(!1)), g(Jt, M(!1)), g(yn, r.logicTags?.tags ?? []), g(It, r.logicTags?.pairs ?? []), g(en, r.logicTags?.onRequest ?? null), g(qt, li()), g(nn, r.onRequestMedia ?? null), g(Mn, r.canDropMedia ?? null), g(Rt, r.resolveImageUrl ? sr(r.resolveImageUrl) : null), r.displayConditions?.onRequest && (r.displayConditions.conditions !== void 0 || r.displayConditions.allowCustom !== void 0) && Dt.warn("config.displayConditions.onRequest replaces the built-in condition list — conditions and allowCustom are ignored."), g(sn, r.displayConditions?.conditions ?? []), g(On, r.displayConditions?.allowCustom ?? !1), g(Ht, r.displayConditions?.onRequest ?? null), g(pn, t.capabilities ?? {}), g(Fn, y);
4563
- let R = ui(r.lint) ? null : fi({
4535
+ g(un, L);
4536
+ let ae = ui();
4537
+ g(Gt, ae), g(Jt, M(!1)), g(Xt, M(!1)), g(xn, r.logicTags?.tags ?? []), g(Rt, r.logicTags?.pairs ?? []), g(nn, r.logicTags?.onRequest ?? null), g(Yt, di()), g(an, r.onRequestMedia ?? null), g(Pn, r.canDropMedia ?? null), g(Bt, r.resolveImageUrl ? lr(r.resolveImageUrl) : null), r.displayConditions?.onRequest && (r.displayConditions.conditions !== void 0 || r.displayConditions.allowCustom !== void 0) && kt.warn("config.displayConditions.onRequest replaces the built-in condition list — conditions and allowCustom are ignored."), g(ln, r.displayConditions?.conditions ?? []), g(An, r.displayConditions?.allowCustom ?? !1), g(Wt, r.displayConditions?.onRequest ?? null), g(hn, t.capabilities ?? {}), g(Ln, y);
4538
+ let R = fi(r.lint) ? null : mi({
4564
4539
  content: n.content,
4565
4540
  get options() {
4566
- return ai({
4541
+ return si({
4567
4542
  ...r,
4568
4543
  content: n.content.value,
4569
4544
  contentLocale: n.activeLocale?.value ?? void 0
@@ -4575,7 +4550,7 @@ function gu(t) {
4575
4550
  updateSettings: n.updateSettings,
4576
4551
  removeBlock: n.removeBlock
4577
4552
  });
4578
- g(wn, R);
4553
+ g(En, R);
4579
4554
  function oe() {
4580
4555
  v?.(), R?.destroy(), _?.destroy(), p.destroy();
4581
4556
  }
@@ -4606,12 +4581,12 @@ function gu(t) {
4606
4581
  };
4607
4582
  }
4608
4583
  // src/composables/useSmallScreenNotice.ts
4609
- var _u = "(max-width: 767px)";
4610
- function vu(e) {
4611
- let n = t(_u);
4584
+ var yu = "(max-width: 767px)";
4585
+ function bu(e) {
4586
+ let n = t(yu);
4612
4587
  return {
4613
4588
  isSmallScreen: n,
4614
4589
  showNotice: k(() => (F(e) ?? !0) && n.value)
4615
4590
  };
4616
4591
  }
4617
- export { ji as A, Qr as B, $i as C, qi as D, ia as E, Fi as F, Nr as G, Br as H, Pi as I, jr as K, si as L, Ri as M, Li as N, ua as O, Ii as P, ai as R, Xi as S, ra as T, zr as U, Gr as V, Fr as W, Pa as _, Ql as a, _a as b, Il as c, Lo as d, Fo as f, Ka as g, Xa as h, iu as i, zi as j, Ji as k, Ro as l, $a as m, gu as n, Yl as o, eo as p, mu as r, Vl as s, vu as t, Vo as u, Oa as v, ca as w, ma as x, Ea as y, ei as z };
4592
+ export { Ni as A, ei as B, ta as C, Yi as D, oa as E, Li as F, Fr as G, Hr as H, Ii as I, Nr as K, li as L, Bi as M, zi as N, fa as O, Ri as P, si as R, Qi as S, aa as T, Vr as U, qr as V, Lr as W, Ia as _, eu as a, ya as b, Rl as c, zo as d, Lo as f, Ja as g, Qa as h, ou as i, Vi as j, Xi as k, Bo as l, to as m, vu as n, Zl as o, no as p, gu as r, Ul as s, bu as t, Uo as u, Aa as v, ua as w, ga as x, Oa as y, ni as z };