@templatical/editor 0.59.1 → 0.59.2

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