@templatical/editor 0.34.3 → 0.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) hide show
  1. package/dist/{AiChatSidebar-CkHJ28sf.js → AiChatSidebar-DPHbCGu4.js} +29 -21
  2. package/dist/{AiFeatureMenu-DWdKguDN.js → AiFeatureMenu--8z7qvg1.js} +4 -4
  3. package/dist/{BlockIssueBadge-DcyHTAqw.js → BlockIssueBadge-BGCsJqqM.js} +2 -2
  4. package/dist/BlockPreviewCanvas-DKspIy8V.js +131 -0
  5. package/dist/{CloudHeaderExtras-BJ3Cebhv.js → CloudHeaderExtras-CRUQvgSV.js} +2 -2
  6. package/dist/{CloudPanels-BGz9ygo6.js → CloudPanels-Bp5gFtaL.js} +3 -3
  7. package/dist/{CollaboratorBar-KphmSQeZ.js → CollaboratorBar-DvwZm5u7.js} +57 -49
  8. package/dist/{ColorPicker-C6EOwtHC.js → ColorPicker-DtozuN75.js} +1 -1
  9. package/dist/{CommentsPanel-DmWh8f08.js → CommentsPanel-3C-DsEjy.js} +1 -1
  10. package/dist/{CommentsSidebar-CL_tffzT.js → CommentsSidebar-go1FnjDW.js} +34 -25
  11. package/dist/{CountdownToolbar-B8J4i5Xp.js → CountdownToolbar-SLBuij7Q.js} +1 -1
  12. package/dist/{DesignReferenceSidebar-BDhEeaAh.js → DesignReferenceSidebar-rcE_BvUd.js} +55 -47
  13. package/dist/{IssuesPanel-CiOjeRFI.js → IssuesPanel-Cig46N1i.js} +23 -15
  14. package/dist/{MergeTagInput-RytOlh1A.js → MergeTagInput-D1hzsn2b.js} +42 -33
  15. package/dist/{MergeTagModeToggle-Bi-FydXj.js → MergeTagModeToggle-CH9wR5YF.js} +70 -58
  16. package/dist/{ParagraphEditor-C87tkmtE.js → ParagraphEditor-CT2AdMdZ.js} +365 -323
  17. package/dist/{RestoreVersionDialog-Db5rZRMA.js → RestoreVersionDialog-mdqgQxFR.js} +3 -3
  18. package/dist/{RichTextEditorContent-BmTcV2-a.js → RichTextEditorContent-riOB-rKD.js} +48 -36
  19. package/dist/{SaveBlockDialog-CDCzx6Bo.js → SaveBlockDialog-Cn2v4Lpj.js} +6 -6
  20. package/dist/{SavedBlocksBrowserModal-DQR6kJB1.js → SavedBlocksBrowserModal-BORqqASb.js} +7 -7
  21. package/dist/{SavedBlocksPanels-DFzV0CRD.js → SavedBlocksPanels-ffBnWuVU.js} +1 -1
  22. package/dist/{SavedBlocksPickBar-XyXmnSnO.js → SavedBlocksPickBar-BmQC2tWN.js} +2 -2
  23. package/dist/{TemplateScoringPanel-CpyEKMzC.js → TemplateScoringPanel-CxAtdreR.js} +36 -27
  24. package/dist/{TestEmailModal-DIfJy9eE.js → TestEmailModal-Cjn1padY.js} +7 -7
  25. package/dist/{TestEmailPanel-C8Wx5yPS.js → TestEmailPanel-Bf3XZ1jn.js} +1 -1
  26. package/dist/{TitleEditor-iNFOisr4.js → TitleEditor-pYEUX6lR.js} +5 -5
  27. package/dist/{TplModal-CowM3o_F.js → TplModal-DRx4ytx8.js} +1 -1
  28. package/dist/{VersionHistoryMenu-CV90OhXs.js → VersionHistoryMenu-CrNrGsaa.js} +21 -13
  29. package/dist/{VersionHistoryPanels-BE3pplJG.js → VersionHistoryPanels-CsuQk6W3.js} +1 -1
  30. package/dist/{VersionPreviewBanner-BwUWBtlH.js → VersionPreviewBanner-BqbO0Zss.js} +1 -1
  31. package/dist/blockTypeIcons-D_4HdaY9.js +175 -0
  32. package/dist/bundle-stats.json +6 -6
  33. package/dist/{ca-C0hfqt4U.js → ca-D9S-UCfZ.js} +2 -0
  34. package/dist/cdn/chunks/{AiChatSidebar-BEnIWn6s.js → AiChatSidebar-D0f74_nS.js} +3 -3
  35. package/dist/cdn/chunks/{AiChatSidebar-BEnIWn6s.js.map → AiChatSidebar-D0f74_nS.js.map} +1 -1
  36. package/dist/cdn/chunks/{AiFeatureMenu-DMl23akc.js → AiFeatureMenu-DwGb3eF9.js} +3 -3
  37. package/dist/cdn/chunks/{AiFeatureMenu-DMl23akc.js.map → AiFeatureMenu-DwGb3eF9.js.map} +1 -1
  38. package/dist/cdn/chunks/{BlockIssueBadge-CloK4k3M.js → BlockIssueBadge-CosQgeJ-.js} +2 -2
  39. package/dist/cdn/chunks/{BlockIssueBadge-CloK4k3M.js.map → BlockIssueBadge-CosQgeJ-.js.map} +1 -1
  40. package/dist/cdn/chunks/BlockPreviewCanvas-CIpZ2a6g.js +133 -0
  41. package/dist/cdn/chunks/BlockPreviewCanvas-CIpZ2a6g.js.map +1 -0
  42. package/dist/cdn/chunks/{CloudHeaderExtras-b4KpVeUN.js → CloudHeaderExtras-CQzQwKFB.js} +3 -3
  43. package/dist/cdn/chunks/{CloudHeaderExtras-b4KpVeUN.js.map → CloudHeaderExtras-CQzQwKFB.js.map} +1 -1
  44. package/dist/cdn/chunks/{CloudPanels-DzwOq9lp.js → CloudPanels-BmexuLOU.js} +4 -4
  45. package/dist/cdn/chunks/{CloudPanels-DzwOq9lp.js.map → CloudPanels-BmexuLOU.js.map} +1 -1
  46. package/dist/cdn/chunks/{CollaboratorBar-WXKvpoGK.js → CollaboratorBar-DEICobpp.js} +3 -3
  47. package/dist/cdn/chunks/{CollaboratorBar-WXKvpoGK.js.map → CollaboratorBar-DEICobpp.js.map} +1 -1
  48. package/dist/cdn/chunks/{ColorPicker-BubTDiS1.js → ColorPicker-C7yC58FK.js} +2 -2
  49. package/dist/cdn/chunks/{ColorPicker-BubTDiS1.js.map → ColorPicker-C7yC58FK.js.map} +1 -1
  50. package/dist/cdn/chunks/{CommentsPanel-DAA2VqX4.js → CommentsPanel-OjmKxLL7.js} +2 -2
  51. package/dist/cdn/chunks/{CommentsPanel-DAA2VqX4.js.map → CommentsPanel-OjmKxLL7.js.map} +1 -1
  52. package/dist/cdn/chunks/{CommentsSidebar-Ci0M2ePp.js → CommentsSidebar-C4pWZGpy.js} +2 -2
  53. package/dist/cdn/chunks/{CommentsSidebar-Ci0M2ePp.js.map → CommentsSidebar-C4pWZGpy.js.map} +1 -1
  54. package/dist/cdn/chunks/{CountdownToolbar-CzZq26Vp.js → CountdownToolbar-wlJOxyAl.js} +2 -2
  55. package/dist/cdn/chunks/{CountdownToolbar-CzZq26Vp.js.map → CountdownToolbar-wlJOxyAl.js.map} +1 -1
  56. package/dist/cdn/chunks/{DesignReferenceSidebar-C_ehdX5C.js → DesignReferenceSidebar-DELhnh8h.js} +3 -3
  57. package/dist/cdn/chunks/{DesignReferenceSidebar-C_ehdX5C.js.map → DesignReferenceSidebar-DELhnh8h.js.map} +1 -1
  58. package/dist/cdn/chunks/{IssuesPanel-BXAN2_al.js → IssuesPanel-C9i3o8aE.js} +2 -2
  59. package/dist/cdn/chunks/{IssuesPanel-BXAN2_al.js.map → IssuesPanel-C9i3o8aE.js.map} +1 -1
  60. package/dist/cdn/chunks/{MergeTagInput-1vcI9uQH.js → MergeTagInput-D76Kyvgu.js} +5 -5
  61. package/dist/cdn/chunks/{MergeTagInput-1vcI9uQH.js.map → MergeTagInput-D76Kyvgu.js.map} +1 -1
  62. package/dist/cdn/chunks/{MergeTagModeToggle-B_mUYJo4.js → MergeTagModeToggle-Dz3gxN2y.js} +3 -3
  63. package/dist/cdn/chunks/{MergeTagModeToggle-B_mUYJo4.js.map → MergeTagModeToggle-Dz3gxN2y.js.map} +1 -1
  64. package/dist/cdn/chunks/{ParagraphEditor-DCDHMcmx.js → ParagraphEditor-DQn0HMfV.js} +176 -172
  65. package/dist/cdn/chunks/{ParagraphEditor-DCDHMcmx.js.map → ParagraphEditor-DQn0HMfV.js.map} +1 -1
  66. package/dist/cdn/chunks/{RestoreVersionDialog-BkSSwf-Q.js → RestoreVersionDialog-BdjOL8Oy.js} +3 -3
  67. package/dist/cdn/chunks/{RestoreVersionDialog-BkSSwf-Q.js.map → RestoreVersionDialog-BdjOL8Oy.js.map} +1 -1
  68. package/dist/cdn/chunks/{RichTextEditorContent-S4KogjIj.js → RichTextEditorContent-Drzwgh0J.js} +4 -4
  69. package/dist/cdn/chunks/{RichTextEditorContent-S4KogjIj.js.map → RichTextEditorContent-Drzwgh0J.js.map} +1 -1
  70. package/dist/cdn/chunks/{SaveBlockDialog-BH774Nt0.js → SaveBlockDialog-B3rbmXSM.js} +5 -5
  71. package/dist/cdn/chunks/{SaveBlockDialog-BH774Nt0.js.map → SaveBlockDialog-B3rbmXSM.js.map} +1 -1
  72. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CSUqw_dD.js → SavedBlocksBrowserModal-CkUXlnd2.js} +6 -6
  73. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CSUqw_dD.js.map → SavedBlocksBrowserModal-CkUXlnd2.js.map} +1 -1
  74. package/dist/cdn/chunks/{SavedBlocksPanels-B6ApbCjG.js → SavedBlocksPanels-BPi3PZKP.js} +2 -2
  75. package/dist/cdn/chunks/{SavedBlocksPanels-B6ApbCjG.js.map → SavedBlocksPanels-BPi3PZKP.js.map} +1 -1
  76. package/dist/cdn/chunks/{SavedBlocksPickBar-C9MXSRcR.js → SavedBlocksPickBar-BvB9A5W2.js} +3 -3
  77. package/dist/cdn/chunks/{SavedBlocksPickBar-C9MXSRcR.js.map → SavedBlocksPickBar-BvB9A5W2.js.map} +1 -1
  78. package/dist/cdn/chunks/{TemplateScoringPanel-QVOxc9TZ.js → TemplateScoringPanel-BBCyLnOi.js} +2 -2
  79. package/dist/cdn/chunks/{TemplateScoringPanel-QVOxc9TZ.js.map → TemplateScoringPanel-BBCyLnOi.js.map} +1 -1
  80. package/dist/cdn/chunks/{TestEmailModal-_CZvaO58.js → TestEmailModal-DAGTsBqi.js} +7 -7
  81. package/dist/cdn/chunks/{TestEmailModal-_CZvaO58.js.map → TestEmailModal-DAGTsBqi.js.map} +1 -1
  82. package/dist/cdn/chunks/{TestEmailPanel-DXLxvyrD.js → TestEmailPanel-BfenVvfx.js} +2 -2
  83. package/dist/cdn/chunks/{TestEmailPanel-DXLxvyrD.js.map → TestEmailPanel-BfenVvfx.js.map} +1 -1
  84. package/dist/cdn/chunks/{TitleEditor-BuCOahW3.js → TitleEditor-oQ4gr6wS.js} +5 -5
  85. package/dist/cdn/chunks/{TitleEditor-BuCOahW3.js.map → TitleEditor-oQ4gr6wS.js.map} +1 -1
  86. package/dist/cdn/chunks/{TplModal-CqY8R3hn.js → TplModal-DxOMcVwp.js} +2 -2
  87. package/dist/cdn/chunks/{TplModal-CqY8R3hn.js.map → TplModal-DxOMcVwp.js.map} +1 -1
  88. package/dist/cdn/chunks/{VersionHistoryMenu-DDjIBvad.js → VersionHistoryMenu-BfVUvWHT.js} +4 -4
  89. package/dist/cdn/chunks/{VersionHistoryMenu-DDjIBvad.js.map → VersionHistoryMenu-BfVUvWHT.js.map} +1 -1
  90. package/dist/cdn/chunks/{VersionHistoryPanels-BuTw04T5.js → VersionHistoryPanels-NpDb641L.js} +2 -2
  91. package/dist/cdn/chunks/{VersionHistoryPanels-BuTw04T5.js.map → VersionHistoryPanels-NpDb641L.js.map} +1 -1
  92. package/dist/cdn/chunks/{VersionPreviewBanner-fGAv20qI.js → VersionPreviewBanner-Cpgt4xHc.js} +2 -2
  93. package/dist/cdn/chunks/{VersionPreviewBanner-fGAv20qI.js.map → VersionPreviewBanner-Cpgt4xHc.js.map} +1 -1
  94. package/dist/cdn/chunks/{blockTypeIcons-ZEzEpCti.js → blockTypeIcons-t9vvaiuH.js} +2 -2
  95. package/dist/cdn/chunks/{blockTypeIcons-ZEzEpCti.js.map → blockTypeIcons-t9vvaiuH.js.map} +1 -1
  96. package/dist/cdn/chunks/{ca-C0hfqt4U.js → ca-D9S-UCfZ.js} +3 -1
  97. package/dist/cdn/chunks/{ca-C0hfqt4U.js.map → ca-D9S-UCfZ.js.map} +1 -1
  98. package/dist/cdn/chunks/{cloud-BP5-6__d.js → cloud-CullB76F.js} +2 -2
  99. package/dist/cdn/chunks/{cloud-BP5-6__d.js.map → cloud-CullB76F.js.map} +1 -1
  100. package/dist/cdn/chunks/{createCloudRuntime-JFE-sxbT.js → createCloudRuntime-Cx2JpUYU.js} +4 -4
  101. package/dist/cdn/chunks/{createCloudRuntime-JFE-sxbT.js.map → createCloudRuntime-Cx2JpUYU.js.map} +1 -1
  102. package/dist/{de-C6J2Iae8.js → cdn/chunks/de-BUPszLpi.js} +4 -0
  103. package/dist/cdn/chunks/{de-C6J2Iae8.js.map → de-BUPszLpi.js.map} +1 -1
  104. package/dist/cdn/chunks/{en-BaUYOQi8.js → en-BbOC5x3w.js} +3 -1
  105. package/dist/cdn/chunks/en-BbOC5x3w.js.map +1 -0
  106. package/dist/cdn/chunks/en-rGHphLWo.js +2 -0
  107. package/dist/cdn/chunks/{es-CKDYfJYn.js → es-0bCDcT9p.js} +3 -1
  108. package/dist/cdn/chunks/{es-CKDYfJYn.js.map → es-0bCDcT9p.js.map} +1 -1
  109. package/dist/cdn/chunks/{extensions-7z04EIGg.js → extensions-BpXY7jO5.js} +3 -3
  110. package/dist/cdn/chunks/{extensions-7z04EIGg.js.map → extensions-BpXY7jO5.js.map} +1 -1
  111. package/dist/{fr-L8DR73mK.js → cdn/chunks/fr-Brr8mJ9e.js} +4 -0
  112. package/dist/cdn/chunks/fr-Brr8mJ9e.js.map +1 -0
  113. package/dist/cdn/chunks/icons-BLxcQUck.js +1675 -0
  114. package/dist/cdn/chunks/icons-BLxcQUck.js.map +1 -0
  115. package/dist/cdn/chunks/{nl-GDWeuX18.js → nl-Co3_RL0M.js} +3 -1
  116. package/dist/cdn/chunks/nl-Co3_RL0M.js.map +1 -0
  117. package/dist/cdn/chunks/{preRenderCustomBlocks-LFB-e-0m.js → preRenderCustomBlocks-Bdpiiw4A.js} +2 -2
  118. package/dist/cdn/chunks/{preRenderCustomBlocks-LFB-e-0m.js.map → preRenderCustomBlocks-Bdpiiw4A.js.map} +1 -1
  119. package/dist/cdn/chunks/{pt-BR-B1AVVhWj.js → pt-BR-BECez5b0.js} +3 -1
  120. package/dist/cdn/chunks/{pt-BR-B1AVVhWj.js.map → pt-BR-BECez5b0.js.map} +1 -1
  121. package/dist/cdn/chunks/{src-BDvZrpFH.js → src-BC-eolWY.js} +161 -160
  122. package/dist/cdn/chunks/src-BC-eolWY.js.map +1 -0
  123. package/dist/cdn/chunks/{src-BM3f9I7t.js → src-CUvZWL6Y.js} +83 -83
  124. package/dist/cdn/chunks/src-CUvZWL6Y.js.map +1 -0
  125. package/dist/cdn/chunks/{src-Cxl-9O-L.js → src-CaXeO-gG.js} +17 -17
  126. package/dist/cdn/chunks/{src-Cxl-9O-L.js.map → src-CaXeO-gG.js.map} +1 -1
  127. package/dist/cdn/chunks/{src-CLoCCDfs.js → src-Dwgq7hf4.js} +71 -48
  128. package/dist/cdn/chunks/src-Dwgq7hf4.js.map +1 -0
  129. package/dist/cdn/chunks/{useEditorCore-ehUSEsbw.js → useEditorCore-D4MytYB9.js} +495 -485
  130. package/dist/cdn/chunks/useEditorCore-D4MytYB9.js.map +1 -0
  131. package/dist/cdn/chunks/{useMergeTag-TLhF2fGK.js → useMergeTag-CSocWpxV.js} +2 -2
  132. package/dist/cdn/chunks/{useMergeTag-TLhF2fGK.js.map → useMergeTag-CSocWpxV.js.map} +1 -1
  133. package/dist/cdn/editor.css +1 -1
  134. package/dist/cdn/editor.js +920 -907
  135. package/dist/cdn/editor.js.map +1 -1
  136. package/dist/check-CY-Ec6FV.js +11 -0
  137. package/dist/chevron-down-BghbWA9p.js +11 -0
  138. package/dist/chevron-up-n3qFAPS3.js +11 -0
  139. package/dist/circle-alert-L5uGGFRP.js +30 -0
  140. package/dist/clock-Dgnwp18n.js +16 -0
  141. package/dist/{cloud-BMzRKCbk.js → cloud-B1c4XIsn.js} +1 -1
  142. package/dist/{createCloudRuntime-DbTFm1ES.js → createCloudRuntime-PevFSH74.js} +2 -2
  143. package/dist/createLucideIcon-05lB8iWe.js +96 -0
  144. package/dist/{cdn/chunks/de-C6J2Iae8.js → de-BUPszLpi.js} +2 -2
  145. package/dist/{dist-PL6vP4SC.js → dist-tGkjkX-v.js} +143 -122
  146. package/dist/{en-BaUYOQi8.js → en-BbOC5x3w.js} +2 -0
  147. package/dist/{es-CKDYfJYn.js → es-0bCDcT9p.js} +2 -0
  148. package/dist/{extensions-Mf8iHey9.js → extensions-Bawm4BOM.js} +2 -2
  149. package/dist/{cdn/chunks/fr-L8DR73mK.js → fr-Brr8mJ9e.js} +2 -2
  150. package/dist/image-up-ovhjl9u9.js +27 -0
  151. package/dist/info-c3KI927I.js +23 -0
  152. package/dist/loader-circle-B2Y8xZQb.js +12 -0
  153. package/dist/message-circle-B7K-naUa.js +11 -0
  154. package/dist/{nl-GDWeuX18.js → nl-Co3_RL0M.js} +2 -0
  155. package/dist/pencil-BhWTFcp4.js +14 -0
  156. package/dist/{preRenderCustomBlocks-CSIF-HyJ.js → preRenderCustomBlocks-DFXH54Zr.js} +1 -1
  157. package/dist/{pt-BR-B1AVVhWj.js → pt-BR-BECez5b0.js} +2 -0
  158. package/dist/refresh-cw-BqUR5vgO.js +37 -0
  159. package/dist/send-D1vvuW79.js +14 -0
  160. package/dist/shield-check-DjK54PnW.js +14 -0
  161. package/dist/sparkles-DNdS9V_3.js +28 -0
  162. package/dist/style.css +1 -1
  163. package/dist/templatical-editor.js +1238 -1167
  164. package/dist/text-align-start-Bcmo_VUY.js +58 -0
  165. package/dist/trash-C9bMXvw4.js +30 -0
  166. package/dist/triangle-alert-Bn8Bd2Yv.js +22 -0
  167. package/dist/upload-DKgg1gno.js +21 -0
  168. package/dist/{useEditorCore-DdkQuTHl.js → useEditorCore-CYGvurZa.js} +1089 -1026
  169. package/dist/{useMergeTag-gSuYus-M.js → useMergeTag-C9GEpljB.js} +1 -1
  170. package/dist/{useScrollToBlock-CdI8fGqt.js → useScrollToBlock-oUx1HIZ2.js} +27 -23
  171. package/dist/x-BPKoRPTG.js +14 -0
  172. package/package.json +9 -9
  173. package/dist/BlockPreviewCanvas-B621ANn9.js +0 -129
  174. package/dist/blockTypeIcons-DQsKtHik.js +0 -134
  175. package/dist/cdn/chunks/BlockPreviewCanvas-DSiJFJa0.js +0 -131
  176. package/dist/cdn/chunks/BlockPreviewCanvas-DSiJFJa0.js.map +0 -1
  177. package/dist/cdn/chunks/en-BaUYOQi8.js.map +0 -1
  178. package/dist/cdn/chunks/en-mEKGL1PX.js +0 -2
  179. package/dist/cdn/chunks/fr-L8DR73mK.js.map +0 -1
  180. package/dist/cdn/chunks/icons-SP5Itd-A.js +0 -1218
  181. package/dist/cdn/chunks/icons-SP5Itd-A.js.map +0 -1
  182. package/dist/cdn/chunks/nl-GDWeuX18.js.map +0 -1
  183. package/dist/cdn/chunks/src-BDvZrpFH.js.map +0 -1
  184. package/dist/cdn/chunks/src-BM3f9I7t.js.map +0 -1
  185. package/dist/cdn/chunks/src-CLoCCDfs.js.map +0 -1
  186. package/dist/cdn/chunks/useEditorCore-ehUSEsbw.js.map +0 -1
  187. package/dist/check-JK8Uacq0.js +0 -7
  188. package/dist/chevron-down-a-fb_Ijn.js +0 -7
  189. package/dist/chevron-up-x4l0et_Y.js +0 -7
  190. package/dist/circle-alert-CJDW5LZo.js +0 -25
  191. package/dist/clock-BW6rXk2f.js +0 -12
  192. package/dist/createLucideIcon-Bvw1Zx56.js +0 -43
  193. package/dist/image-up-CuzFc1mu.js +0 -23
  194. package/dist/info-DybAwcA3.js +0 -19
  195. package/dist/loader-circle-t-SVgmJ3.js +0 -7
  196. package/dist/message-circle-DtwKrlhN.js +0 -7
  197. package/dist/pencil-2qhC-Y4q.js +0 -10
  198. package/dist/refresh-cw-C8SBuPdg.js +0 -29
  199. package/dist/send-BoqJliF6.js +0 -10
  200. package/dist/shield-check-D0dMaHtE.js +0 -10
  201. package/dist/sparkles-Dy2BJjiX.js +0 -23
  202. package/dist/text-align-start-DrxjxvIy.js +0 -43
  203. package/dist/trash-rYMzzHZd.js +0 -25
  204. package/dist/triangle-alert-DxnFj4-B.js +0 -17
  205. package/dist/upload-DZu1adQz.js +0 -17
  206. package/dist/x-DJOd1hS4.js +0 -10
@@ -1,42 +1,42 @@
1
1
  import { A as e, B as t, D as n, Dt as r, E as i, G as a, J as o, L as s, M as c, O as l, Ot as u, P as d, Q as f, S as p, T as m, U as h, V as g, X as _, Y as v, _ as y, b, c as x, d as S, et as C, g as w, h as T, it as E, j as D, k as O, kt as k, l as A, nt as ee, q as j, r as M, rt as N, s as P, tt as te, u as F, v as I, y as ne, z as re } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
2
2
  import { c as L, o as ie, s as ae } from "./runtime-dom.esm-bundler-BuG03jBM.js";
3
- import { A as oe, B as se, C as ce, D as le, E as ue, F as de, H as fe, I as pe, L as me, M as he, N as ge, O as _e, P as ve, R as ye, S as be, T as xe, U as Se, V as Ce, _ as we, a as Te, b as Ee, d as De, f as Oe, g as ke, h as Ae, i as je, k as Me, l as Ne, m as Pe, n as Fe, o as Ie, p as Le, r as Re, s as ze, t as Be, u as Ve, v as He, w as Ue, x as We, y as Ge, z as Ke } from "./dist-PL6vP4SC.js";
4
- import { f as qe, g as Je, h as Ye, m as Xe } from "./dist-heatwAdo.js";
5
- import { a as Ze, i as Qe, n as $e, r as et } from "./dist-dNiknO7j.js";
6
- import { A as tt, C as nt, D as rt, E as it, F as at, G as ot, H as st, I as ct, J as lt, K as ut, L as dt, M as ft, N as pt, O as mt, P as ht, R as gt, S as _t, T as vt, U as yt, V as bt, W as xt, _ as St, a as Ct, b as wt, c as Tt, d as Et, f as Dt, g as Ot, h as kt, j as At, k as jt, m as Mt, n as Nt, o as Pt, p as Ft, q as It, r as Lt, s as Rt, u as zt, v as Bt, w as Vt, x as Ht, y as Ut } from "./keys-C3P1yxnr.js";
7
- import { t as Wt } from "./useI18n-CL6RfPzK.js";
8
- import { t as Gt } from "./logger-BBlvSn6q.js";
9
- import { a as Kt, i as qt, o as Jt, r as Yt, t as Xt } from "./usePopoverPosition-CWxaIWd3.js";
10
- import { t as Zt } from "./createLucideIcon-Bvw1Zx56.js";
11
- import { t as Qt } from "./loader-circle-t-SVgmJ3.js";
12
- import { t as $t } from "./message-circle-DtwKrlhN.js";
13
- import { t as en } from "./trash-rYMzzHZd.js";
14
- import { t as tn } from "./triangle-alert-DxnFj4-B.js";
15
- import { t as nn } from "./upload-DZu1adQz.js";
16
- import { t as rn } from "./LoadingTrack-SQXoZVf2.js";
17
- import { t as an } from "./_plugin-vue_export-helper-B3ysoDQm.js";
18
- import { t as on } from "./useEditorRoot-DkRGTQRs.js";
3
+ import { A as oe, B as se, C as ce, D as le, E as ue, F as de, H as fe, I as pe, L as me, M as he, N as ge, O as _e, P as ve, R as ye, S as be, T as xe, U as Se, V as Ce, W as we, _ as Te, a as Ee, b as De, d as Oe, f as ke, g as Ae, h as je, i as Me, k as Ne, l as Pe, m as Fe, n as Ie, o as Le, p as Re, r as ze, s as Be, t as Ve, u as He, v as Ue, w as We, x as Ge, y as Ke, z as qe } from "./dist-tGkjkX-v.js";
4
+ import { f as Je, g as Ye, h as Xe, m as Ze } from "./dist-heatwAdo.js";
5
+ import { a as Qe, i as $e, n as et, r as tt } from "./dist-dNiknO7j.js";
6
+ import { A as nt, C as rt, D as it, E as at, F as ot, G as st, H as ct, I as lt, J as ut, K as dt, L as ft, M as pt, N as mt, O as ht, P as gt, R as _t, S as vt, T as yt, U as bt, V as xt, W as St, _ as Ct, a as wt, b as Tt, c as Et, d as Dt, f as Ot, g as kt, h as At, j as jt, k as Mt, m as Nt, n as Pt, o as Ft, p as It, q as Lt, r as Rt, s as zt, u as Bt, v as Vt, w as Ht, x as Ut, y as Wt } from "./keys-C3P1yxnr.js";
7
+ import { t as Gt } from "./useI18n-CL6RfPzK.js";
8
+ import { t as Kt } from "./logger-BBlvSn6q.js";
9
+ import { a as qt, i as Jt, o as Yt, r as Xt, t as Zt } from "./usePopoverPosition-CWxaIWd3.js";
10
+ import { t as Qt } from "./createLucideIcon-05lB8iWe.js";
11
+ import { t as $t } from "./loader-circle-B2Y8xZQb.js";
12
+ import { t as en } from "./message-circle-B7K-naUa.js";
13
+ import { t as tn } from "./trash-C9bMXvw4.js";
14
+ import { t as nn } from "./triangle-alert-Bn8Bd2Yv.js";
15
+ import { t as rn } from "./upload-DKgg1gno.js";
16
+ import { t as an } from "./LoadingTrack-SQXoZVf2.js";
17
+ import { t as on } from "./_plugin-vue_export-helper-B3ysoDQm.js";
18
+ import { t as sn } from "./useEditorRoot-DkRGTQRs.js";
19
19
  import "./useCloudI18n-BKoiYsWZ.js";
20
- import { t as sn } from "./useMergeTag-gSuYus-M.js";
21
- import { t as cn } from "./useAliveFlag-PVmp95MT.js";
20
+ import { t as cn } from "./useMergeTag-C9GEpljB.js";
21
+ import { t as ln } from "./useAliveFlag-PVmp95MT.js";
22
22
  //#region ../core/dist/index.js
23
- function ln(e) {
23
+ function un(e) {
24
24
  return e instanceof Error ? e : Error(String(e), { cause: e });
25
25
  }
26
- function un(e, t) {
26
+ function dn(e, t) {
27
27
  try {
28
28
  t();
29
29
  } catch (t) {
30
- e?.(ln(t));
30
+ e?.(un(t));
31
31
  }
32
32
  }
33
- function dn(e) {
33
+ function fn(e) {
34
34
  return e === "1" ? 1 : e === "3" ? 3 : 2;
35
35
  }
36
- function fn(e) {
36
+ function pn(e) {
37
37
  let t = o({
38
38
  template: null,
39
- content: e.content ?? Pe(e.defaultFontFamily, e.templateDefaults),
39
+ content: e.content ?? Fe(e.defaultFontFamily, e.templateDefaults),
40
40
  selectedBlockId: null,
41
41
  viewport: "desktop",
42
42
  darkMode: !1,
@@ -131,7 +131,7 @@ function fn(e) {
131
131
  if (u(n)) return;
132
132
  let r = s(t.content.blocks, n);
133
133
  if (r && r.type === "section") {
134
- if (i < 0 || i >= dn(r.columns)) return;
134
+ if (i < 0 || i >= fn(r.columns)) return;
135
135
  r.children[i] = r.children[i] || [];
136
136
  let t = r.children[i];
137
137
  a !== void 0 && a < t.length ? t.splice(a, 0, e) : t.push(e);
@@ -164,7 +164,7 @@ function fn(e) {
164
164
  let d;
165
165
  if (i) {
166
166
  let e = s(t.content.blocks, i);
167
- if (!e || e.type !== "section" || a < 0 || a >= dn(e.columns)) return;
167
+ if (!e || e.type !== "section" || a < 0 || a >= fn(e.columns)) return;
168
168
  e.children[a] = e.children[a] || [], d = e.children[a];
169
169
  } else d = t.content.blocks;
170
170
  let [f] = o.blocks.splice(c, 1);
@@ -174,10 +174,10 @@ function fn(e) {
174
174
  r();
175
175
  }
176
176
  function E(e, t) {
177
- throw new ze(`[Templatical] Templates: ${e} ${t}`);
177
+ throw new Be(`[Templatical] Templates: ${e} ${t}`);
178
178
  }
179
179
  function D(t) {
180
- un(e.onError, t);
180
+ dn(e.onError, t);
181
181
  }
182
182
  function O(t) {
183
183
  let { templates: n } = e;
@@ -275,11 +275,11 @@ function fn(e) {
275
275
  hasTemplate: M
276
276
  };
277
277
  }
278
- var pn = 50, mn = 300, hn = 1500;
279
- function gn(e) {
280
- let { content: t, setContent: n, isRemoteOperation: r, maxSize: i = pn } = e, a = _([]), o = _([]), s = _(!1), c = null, l = null, u = g(() => a.value.length > 0), d = g(() => o.value.length > 0);
278
+ var mn = 50, hn = 300, gn = 1500;
279
+ function _n(e) {
280
+ let { content: t, setContent: n, isRemoteOperation: r, maxSize: i = mn } = e, a = _([]), o = _([]), s = _(!1), c = null, l = null, u = g(() => a.value.length > 0), d = g(() => o.value.length > 0);
281
281
  function f() {
282
- return Ce(t.value);
282
+ return fe(t.value);
283
283
  }
284
284
  function p(e) {
285
285
  a.value.push(e), a.value.length > i && a.value.splice(0, a.value.length - i);
@@ -295,21 +295,21 @@ function gn(e) {
295
295
  if (l && l.blockId === e) {
296
296
  clearTimeout(l.timeoutId), l.timeoutId = setTimeout(() => {
297
297
  l = null;
298
- }, mn);
298
+ }, hn);
299
299
  return;
300
300
  }
301
301
  m(), p(f()), o.value = [], l = {
302
302
  blockId: e,
303
303
  timeoutId: setTimeout(() => {
304
304
  l = null;
305
- }, mn)
305
+ }, hn)
306
306
  };
307
307
  }
308
308
  }
309
309
  function y() {
310
310
  s.value = !0, c && clearTimeout(c), c = setTimeout(() => {
311
311
  s.value = !1, c = null;
312
- }, hn);
312
+ }, gn);
313
313
  }
314
314
  function b() {
315
315
  if (a.value.length === 0) return;
@@ -341,7 +341,7 @@ function gn(e) {
341
341
  destroy: C
342
342
  };
343
343
  }
344
- function _n(e) {
344
+ function vn(e) {
345
345
  e.type === "table" ? e.rows = e.rows.map((e) => ({
346
346
  ...e,
347
347
  id: le(),
@@ -357,17 +357,17 @@ function _n(e) {
357
357
  id: le()
358
358
  })));
359
359
  }
360
- function vn(e) {
360
+ function yn(e) {
361
361
  let { addBlock: t, removeBlock: n, updateBlock: r, selectBlock: i, findBlockLocation: a } = e;
362
362
  function o(n, r, a) {
363
- let o = typeof e.blockDefaults == "function" ? e.blockDefaults() : e.blockDefaults, s = Ve(n, o);
363
+ let o = typeof e.blockDefaults == "function" ? e.blockDefaults() : e.blockDefaults, s = He(n, o);
364
364
  return t(s, r, a), i(s.id), s;
365
365
  }
366
366
  function s(e, n, r) {
367
367
  let o = JSON.parse(JSON.stringify(e));
368
- if (o.id = le(), _n(o), o.type === "section" && (o.children = o.children.map((e) => e.map((e) => {
368
+ if (o.id = le(), vn(o), o.type === "section" && (o.children = o.children.map((e) => e.map((e) => {
369
369
  let t = JSON.parse(JSON.stringify(e));
370
- return t.id = le(), _n(t), t;
370
+ return t.id = le(), vn(t), t;
371
371
  }))), n !== void 0 || r !== void 0) t(o, n, r);
372
372
  else {
373
373
  let i = a?.(e.id) ?? null;
@@ -388,9 +388,9 @@ function vn(e) {
388
388
  updateBlockProperty: l
389
389
  };
390
390
  }
391
- var yn = 2e3;
392
- function bn(e) {
393
- let { content: t, isDirty: n, onChange: r, debounce: i = yn, enabled: a = !0 } = e, o = null, s = !1;
391
+ var bn = 2e3;
392
+ function xn(e) {
393
+ let { content: t, isDirty: n, onChange: r, debounce: i = bn, enabled: a = !0 } = e, o = null, s = !1;
394
394
  function c() {
395
395
  return typeof a == "function" ? a() : a;
396
396
  }
@@ -425,7 +425,7 @@ function bn(e) {
425
425
  destroy: h
426
426
  };
427
427
  }
428
- function xn(e) {
428
+ function Sn(e) {
429
429
  let t = o(/* @__PURE__ */ new Set()), n = g(() => t.size > 0);
430
430
  function r(e) {
431
431
  return t.has(e);
@@ -443,7 +443,7 @@ function xn(e) {
443
443
  hasHiddenBlocks: n
444
444
  };
445
445
  }
446
- function Sn(e) {
446
+ function Cn(e) {
447
447
  let t = _(!1), n = _(!1), r = g(() => !!e.definition.value?.dataSource), i = g(() => r.value && !e.block.value.dataSourceFetched);
448
448
  async function a() {
449
449
  let r = e.definition.value;
@@ -473,7 +473,7 @@ function Sn(e) {
473
473
  needsFetch: i
474
474
  };
475
475
  }
476
- function Cn(e, t) {
476
+ function wn(e, t) {
477
477
  let n = e.addBlock, r = e.removeBlock, i = e.moveBlock, a = e.updateBlock, o = e.updateSettings;
478
478
  e.addBlock = (r, i, a, o) => {
479
479
  i && e.isBlockLocked(i) || (t.record(), n(r, i, a, o));
@@ -487,7 +487,7 @@ function Cn(e, t) {
487
487
  t.record(), o(e);
488
488
  };
489
489
  }
490
- function wn(e) {
490
+ function Tn(e) {
491
491
  let { provider: t } = e, n = _([]), r = _(!1), i = P(() => {
492
492
  let e = /* @__PURE__ */ new Set();
493
493
  for (let t of n.value) {
@@ -503,10 +503,10 @@ function wn(e) {
503
503
  return s.value && e.canDelete !== !1;
504
504
  }
505
505
  function u(e, t) {
506
- throw new ze(`[Templatical] Saved blocks: ${e} is ${t}. Check the capability before calling — the editor's own UI hides the action.`);
506
+ throw new Be(`[Templatical] Saved blocks: ${e} is ${t}. Check the capability before calling — the editor's own UI hides the action.`);
507
507
  }
508
508
  function d(t) {
509
- un(e.onError, t);
509
+ dn(e.onError, t);
510
510
  }
511
511
  async function f(i) {
512
512
  r.value = !0;
@@ -573,9 +573,9 @@ function wn(e) {
573
573
  remove: h
574
574
  };
575
575
  }
576
- var Tn = "templatical:saved-blocks";
577
- function En(e = {}) {
578
- let t = e.key ?? Tn;
576
+ var En = "templatical:saved-blocks";
577
+ function Dn(e = {}) {
578
+ let t = e.key ?? En;
579
579
  function n() {
580
580
  if (typeof localStorage > "u") throw Error("[Templatical] createLocalStorageSavedBlocksProvider requires a browser environment with localStorage. Supply your own SavedBlocksProvider for server-side or non-browser use.");
581
581
  return localStorage;
@@ -626,18 +626,18 @@ function En(e = {}) {
626
626
  }
627
627
  };
628
628
  }
629
- function Dn(e) {
629
+ function On(e) {
630
630
  let { provider: t, getTemplateId: n } = e, r = _([]), i = _(!1), a = _(void 0), o = _(!1), s = /* @__PURE__ */ new Map(), c = P(() => typeof t.create == "function"), l = P(() => typeof t.restore == "function");
631
631
  function u(e) {
632
632
  let t = n();
633
- if (!t) throw new ze(`[Templatical] Version history: ${e} needs a template. Call create() or load() first.`);
633
+ if (!t) throw new Be(`[Templatical] Version history: ${e} needs a template. Call create() or load() first.`);
634
634
  return t;
635
635
  }
636
636
  function d(e) {
637
- throw new ze(`[Templatical] Version history: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
637
+ throw new Be(`[Templatical] Version history: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
638
638
  }
639
639
  function f(t) {
640
- un(e.onError, t);
640
+ dn(e.onError, t);
641
641
  }
642
642
  async function p(n) {
643
643
  let o = u("list");
@@ -704,7 +704,7 @@ function Dn(e) {
704
704
  restore: v
705
705
  };
706
706
  }
707
- function On(e) {
707
+ function kn(e) {
708
708
  let { provider: t, getTemplateId: n, getUser: r } = e, i = _([]), a = _(!1), o = _(!1), s = P(() => typeof t.create == "function"), c = P(() => typeof t.update == "function"), l = P(() => typeof t.delete == "function"), u = P(() => typeof t.setResolved == "function"), d = P(() => i.value.reduce((e, t) => e + 1 + (t.replies?.length ?? 0), 0)), f = P(() => i.value.filter((e) => !e.resolvedAt).length), p = P(() => {
709
709
  let e = /* @__PURE__ */ new Map();
710
710
  for (let t of i.value) t.blockId && e.set(t.blockId, (e.get(t.blockId) ?? 0) + 1 + (t.replies?.length ?? 0));
@@ -712,16 +712,16 @@ function On(e) {
712
712
  });
713
713
  function m(e) {
714
714
  let t = n();
715
- if (!t) throw new ze(`[Templatical] Comments: ${e} needs a template. Call create() or load() first.`);
715
+ if (!t) throw new Be(`[Templatical] Comments: ${e} needs a template. Call create() or load() first.`);
716
716
  return t;
717
717
  }
718
718
  function h(e) {
719
719
  let t = r();
720
- if (!t) throw new ze(`[Templatical] Comments: ${e} needs to know who is commenting. Pass init({ user: { id, name } }) — an unattributed comment is not written.`);
720
+ if (!t) throw new Be(`[Templatical] Comments: ${e} needs to know who is commenting. Pass init({ user: { id, name } }) — an unattributed comment is not written.`);
721
721
  return t;
722
722
  }
723
723
  function g(e) {
724
- throw new ze(`[Templatical] Comments: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
724
+ throw new Be(`[Templatical] Comments: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
725
725
  }
726
726
  function v(e) {
727
727
  for (let t of i.value) {
@@ -735,11 +735,11 @@ function On(e) {
735
735
  return t !== null && e.author.id === t.id;
736
736
  }
737
737
  function b(t) {
738
- let n = ln(t);
738
+ let n = un(t);
739
739
  throw e.onError?.(n), n;
740
740
  }
741
741
  function x(t) {
742
- un(e.onError, t);
742
+ dn(e.onError, t);
743
743
  }
744
744
  function S(e, t, n) {
745
745
  return [
@@ -879,7 +879,7 @@ function On(e) {
879
879
  applyRemoteDelete: M
880
880
  };
881
881
  }
882
- function kn(e) {
882
+ function An(e) {
883
883
  let { comments: t, provider: n, getTemplateId: r } = e, { subscribe: i } = n;
884
884
  if (typeof i != "function") return;
885
885
  let a = null;
@@ -902,27 +902,27 @@ function kn(e) {
902
902
  }
903
903
  //#endregion
904
904
  //#region src/utils/activeEditorTracker.ts
905
- var An = /* @__PURE__ */ new Set(), jn = 0, Mn = 0;
906
- function Nn() {
907
- let e = ++Mn;
908
- return An.add(e), jn === 0 && (jn = e), {
905
+ var jn = /* @__PURE__ */ new Set(), Mn = 0, Nn = 0;
906
+ function Pn() {
907
+ let e = ++Nn;
908
+ return jn.add(e), Mn === 0 && (Mn = e), {
909
909
  id: e,
910
- isActive: () => An.size <= 1 || jn === e,
910
+ isActive: () => jn.size <= 1 || Mn === e,
911
911
  claim: () => {
912
- jn = e;
912
+ Mn = e;
913
913
  },
914
914
  dispose: () => {
915
- if (An.delete(e), jn === e) {
916
- let e = Array.from(An);
917
- jn = e[e.length - 1] ?? 0;
915
+ if (jn.delete(e), Mn === e) {
916
+ let e = Array.from(jn);
917
+ Mn = e[e.length - 1] ?? 0;
918
918
  }
919
919
  }
920
920
  };
921
921
  }
922
922
  //#endregion
923
923
  //#region src/composables/usePreviewResolution.ts
924
- var Pn = 500;
925
- function Fn(e) {
924
+ var Fn = 500;
925
+ function In(e) {
926
926
  let t = typeof e.resolvePreview == "function", n = _(null), r = _(!1), i = _(!1), a = 0, o = null;
927
927
  function c() {
928
928
  o !== null && (clearTimeout(o), o = null);
@@ -933,7 +933,7 @@ function Fn(e) {
933
933
  let o = ++a;
934
934
  r.value = !0;
935
935
  let s = {
936
- content: Ce(e.getContent()),
936
+ content: fe(e.getContent()),
937
937
  ...e.getRecipient?.() === void 0 ? {} : { recipient: e.getRecipient() }
938
938
  };
939
939
  try {
@@ -959,7 +959,7 @@ function Fn(e) {
959
959
  }
960
960
  o = setTimeout(() => {
961
961
  o = null, l();
962
- }, Pn);
962
+ }, Fn);
963
963
  }
964
964
  }
965
965
  return s(() => [e.isActive(), e.getRecipient?.()], ([e]) => {
@@ -981,7 +981,7 @@ function Fn(e) {
981
981
  }
982
982
  //#endregion
983
983
  //#region src/composables/useImageUrlResolver.ts
984
- function In(e) {
984
+ function Ln(e) {
985
985
  let t = o(/* @__PURE__ */ new Map()), n = /* @__PURE__ */ new Set();
986
986
  function r(e) {
987
987
  return t.get(e);
@@ -1014,8 +1014,8 @@ function In(e) {
1014
1014
  lookup: a
1015
1015
  };
1016
1016
  }
1017
- function Ln(e) {
1018
- let t = p(wt, null), n = P(e);
1017
+ function Rn(e) {
1018
+ let t = p(Tt, null), n = P(e);
1019
1019
  if (!t) return n;
1020
1020
  let r;
1021
1021
  function i() {
@@ -1044,7 +1044,7 @@ function Ln(e) {
1044
1044
  }
1045
1045
  //#endregion
1046
1046
  //#region src/composables/useMergeTagPicker.ts
1047
- function Rn() {
1047
+ function zn() {
1048
1048
  let e = _(!1), t = _([]), n = null;
1049
1049
  function r(r) {
1050
1050
  if (n) {
@@ -1074,7 +1074,7 @@ function Rn() {
1074
1074
  }
1075
1075
  //#endregion
1076
1076
  //#region src/composables/useLogicTagPicker.ts
1077
- function zn() {
1077
+ function Bn() {
1078
1078
  let e = _(!1), t = _([]), n = _([]), r = null;
1079
1079
  function i(i, a) {
1080
1080
  if (r) {
@@ -1105,17 +1105,17 @@ function zn() {
1105
1105
  }
1106
1106
  //#endregion
1107
1107
  //#region src/composables/useTemplateLint.ts
1108
- function Bn(e) {
1108
+ function Vn(e) {
1109
1109
  return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 : !1;
1110
1110
  }
1111
- function Vn(e) {
1112
- let t = _([]), n = _(!1), r = _(!1), i = f(null), a = Bn(e.options), o = null, c = !1;
1111
+ function Hn(e) {
1112
+ let t = _([]), n = _(!1), r = _(!1), i = f(null), a = Vn(e.options), o = null, c = !1;
1113
1113
  a || l();
1114
1114
  async function l() {
1115
1115
  try {
1116
1116
  let t = await import("@templatical/quality");
1117
1117
  if (c) return;
1118
- i.value = { lintTemplate: t.lintTemplate }, n.value = !0, u(), o = Je(e.content, u, {
1118
+ i.value = { lintTemplate: t.lintTemplate }, n.value = !0, u(), o = Ye(e.content, u, {
1119
1119
  debounce: e.debounce ?? 500,
1120
1120
  deep: !0
1121
1121
  });
@@ -1150,17 +1150,17 @@ function Vn(e) {
1150
1150
  }
1151
1151
  //#endregion
1152
1152
  //#region src/utils/blockTypeLabels.ts
1153
- function Hn(e, t) {
1153
+ function Un(e, t) {
1154
1154
  return t.blocks[e] ?? e;
1155
1155
  }
1156
- function Un(e, t, n = []) {
1157
- if (e.type !== "custom") return Hn(e.type, t);
1156
+ function Wn(e, t, n = []) {
1157
+ if (e.type !== "custom") return Un(e.type, t);
1158
1158
  let { customType: r } = e;
1159
1159
  return n.find((e) => e.type === r)?.name ?? r;
1160
1160
  }
1161
1161
  //#endregion
1162
1162
  //#region src/composables/useKeyboardReorder.ts
1163
- function Wn(e, t, n = []) {
1163
+ function Gn(e, t, n = []) {
1164
1164
  let r = _(null), i = _(""), a = null;
1165
1165
  function o(t) {
1166
1166
  let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
@@ -1187,7 +1187,7 @@ function Wn(e, t, n = []) {
1187
1187
  let i = o(r);
1188
1188
  if (!i) return "";
1189
1189
  let a = (i.sectionId ? c(i.sectionId, i.columnIndex ?? 0) : e.content.value.blocks)?.[i.index];
1190
- return a ? Un(a, t.t, n) : "";
1190
+ return a ? Wn(a, t.t, n) : "";
1191
1191
  }
1192
1192
  function c(t, n) {
1193
1193
  return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
@@ -1256,13 +1256,13 @@ function Wn(e, t, n = []) {
1256
1256
  }
1257
1257
  //#endregion
1258
1258
  //#region src/composables/useUiTheme.ts
1259
- function Gn(e) {
1260
- let t = Ze("(prefers-color-scheme: dark)");
1259
+ function Kn(e) {
1260
+ let t = Qe("(prefers-color-scheme: dark)");
1261
1261
  return { resolvedTheme: P(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
1262
1262
  }
1263
1263
  //#endregion
1264
1264
  //#region src/composables/useThemeStyles.ts
1265
- var Kn = {
1265
+ var qn = {
1266
1266
  bg: "--tpl-bg",
1267
1267
  bgElevated: "--tpl-bg-elevated",
1268
1268
  bgHover: "--tpl-bg-hover",
@@ -1286,10 +1286,10 @@ var Kn = {
1286
1286
  dangerLight: "--tpl-danger-light",
1287
1287
  canvasBg: "--tpl-canvas-bg"
1288
1288
  };
1289
- function qn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
1289
+ function Jn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
1290
1290
  return { themeStyles: P(() => {
1291
1291
  let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
1292
- if (a) for (let [e, t] of Object.entries(Kn)) {
1292
+ if (a) for (let [e, t] of Object.entries(qn)) {
1293
1293
  let n = a[e];
1294
1294
  n && (r[t] = n);
1295
1295
  }
@@ -1298,7 +1298,7 @@ function qn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
1298
1298
  }
1299
1299
  //#endregion
1300
1300
  //#region src/composables/useBlockRegistry.ts
1301
- function Jn() {
1301
+ function Yn() {
1302
1302
  let e = f(/* @__PURE__ */ new Map());
1303
1303
  function t(t, n) {
1304
1304
  e.value.set(t, n), ee(e);
@@ -1306,7 +1306,7 @@ function Jn() {
1306
1306
  function n(t, n) {
1307
1307
  let r = `custom:${t.type}`, i = {
1308
1308
  component: n,
1309
- createBlock: () => Le(t),
1309
+ createBlock: () => Re(t),
1310
1310
  definition: t
1311
1311
  };
1312
1312
  e.value.set(r, i), ee(e);
@@ -1338,7 +1338,7 @@ function Jn() {
1338
1338
  strictFilters: !1
1339
1339
  }).parseAndRender(t.template, e.fieldValues);
1340
1340
  } catch (t) {
1341
- return Gt.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
1341
+ return Kt.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
1342
1342
  }
1343
1343
  }
1344
1344
  function c(t) {
@@ -1356,9 +1356,9 @@ function Jn() {
1356
1356
  }
1357
1357
  //#endregion
1358
1358
  //#region src/composables/useCustomBlockStylesheets.ts
1359
- function Yn(e, t) {
1359
+ function Xn(e, t) {
1360
1360
  return P(() => {
1361
- let n = Xn(e.value.blocks);
1361
+ let n = Zn(e.value.blocks);
1362
1362
  if (n.size === 0) return [];
1363
1363
  let r = /* @__PURE__ */ new Set(), i = [];
1364
1364
  for (let e of n) {
@@ -1370,11 +1370,11 @@ function Yn(e, t) {
1370
1370
  return i;
1371
1371
  });
1372
1372
  }
1373
- function Xn(e) {
1373
+ function Zn(e) {
1374
1374
  let t = /* @__PURE__ */ new Set();
1375
- return Zn(e, t), t;
1375
+ return Qn(e, t), t;
1376
1376
  }
1377
- function Zn(e, t) {
1377
+ function Qn(e, t) {
1378
1378
  for (let n of e) {
1379
1379
  if (ve(n)) {
1380
1380
  t.add(n.customType);
@@ -1383,36 +1383,36 @@ function Zn(e, t) {
1383
1383
  if (n.type === "section") {
1384
1384
  let e = n.children;
1385
1385
  if (!e) continue;
1386
- for (let n of e) Zn(n, t);
1386
+ for (let n of e) Qn(n, t);
1387
1387
  }
1388
1388
  }
1389
1389
  }
1390
1390
  //#endregion
1391
1391
  //#region src/utils/registerBuiltInBlocks.ts
1392
- var Qn = [
1392
+ var $n = [
1393
1393
  {
1394
1394
  type: "section",
1395
- createBlock: Ee
1395
+ createBlock: De
1396
1396
  },
1397
1397
  {
1398
1398
  type: "title",
1399
- createBlock: Ue
1399
+ createBlock: We
1400
1400
  },
1401
1401
  {
1402
1402
  type: "paragraph",
1403
- createBlock: Ge
1403
+ createBlock: Ke
1404
1404
  },
1405
1405
  {
1406
1406
  type: "image",
1407
- createBlock: we
1407
+ createBlock: Te
1408
1408
  },
1409
1409
  {
1410
1410
  type: "button",
1411
- createBlock: De
1411
+ createBlock: Oe
1412
1412
  },
1413
1413
  {
1414
1414
  type: "divider",
1415
- createBlock: Ae
1415
+ createBlock: je
1416
1416
  },
1417
1417
  {
1418
1418
  type: "video",
@@ -1420,11 +1420,11 @@ var Qn = [
1420
1420
  },
1421
1421
  {
1422
1422
  type: "social",
1423
- createBlock: We
1423
+ createBlock: Ge
1424
1424
  },
1425
1425
  {
1426
1426
  type: "menu",
1427
- createBlock: He
1427
+ createBlock: Ue
1428
1428
  },
1429
1429
  {
1430
1430
  type: "table",
@@ -1436,15 +1436,15 @@ var Qn = [
1436
1436
  },
1437
1437
  {
1438
1438
  type: "html",
1439
- createBlock: ke
1439
+ createBlock: Ae
1440
1440
  },
1441
1441
  {
1442
1442
  type: "countdown",
1443
- createBlock: Oe
1443
+ createBlock: ke
1444
1444
  }
1445
1445
  ];
1446
- function $n(e, t) {
1447
- for (let n of Qn) {
1446
+ function er(e, t) {
1447
+ for (let n of $n) {
1448
1448
  let r = t[n.type];
1449
1449
  r && e.registerBuiltIn(n.type, {
1450
1450
  component: r,
@@ -1454,12 +1454,12 @@ function $n(e, t) {
1454
1454
  }
1455
1455
  //#endregion
1456
1456
  //#region src/utils/resolveHtmlBlockPreview.ts
1457
- function er(e) {
1457
+ function tr(e) {
1458
1458
  return typeof e == "boolean" ? e : e?.enabled ?? !1;
1459
1459
  }
1460
1460
  //#endregion
1461
1461
  //#region src/utils/templateSettingsFields.ts
1462
- var tr = {
1462
+ var nr = {
1463
1463
  width: "layout",
1464
1464
  backgroundColor: "appearance",
1465
1465
  textColor: "appearance",
@@ -1467,15 +1467,16 @@ var tr = {
1467
1467
  linkUnderline: "appearance",
1468
1468
  fontFamily: "appearance",
1469
1469
  locale: "language",
1470
+ direction: "language",
1470
1471
  preheaderText: "preheader"
1471
- }, nr = Object.keys(tr);
1472
- function rr(e) {
1473
- return Object.prototype.hasOwnProperty.call(tr, e);
1474
- }
1472
+ }, rr = Object.keys(nr);
1475
1473
  function ir(e) {
1474
+ return Object.prototype.hasOwnProperty.call(nr, e);
1475
+ }
1476
+ function ar(e) {
1476
1477
  let t = e?.fields;
1477
1478
  if (t === void 0 || t === !0) return {
1478
- fields: new Set(nr),
1479
+ fields: new Set(rr),
1479
1480
  unknown: []
1480
1481
  };
1481
1482
  if (t === !1) return {
@@ -1483,7 +1484,7 @@ function ir(e) {
1483
1484
  unknown: []
1484
1485
  };
1485
1486
  let n = /* @__PURE__ */ new Set(), r = [];
1486
- for (let e of t) rr(e) ? n.add(e) : r.push(String(e));
1487
+ for (let e of t) ir(e) ? n.add(e) : r.push(String(e));
1487
1488
  return {
1488
1489
  fields: n,
1489
1490
  unknown: r
@@ -1491,28 +1492,28 @@ function ir(e) {
1491
1492
  }
1492
1493
  //#endregion
1493
1494
  //#region src/utils/collectOffPaletteDefaults.ts
1494
- function ar(e) {
1495
+ function or(e) {
1495
1496
  return typeof e == "object" && !!e && !Array.isArray(e);
1496
1497
  }
1497
- function or(e, t, n) {
1498
- let r = new Set(e.map((e) => Yt(e))), i = [], a = (e, t) => {
1499
- for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(Yt(o)) && i.push(`${t}.${n}: ${o}`) : ar(o) && a(o, `${t}.${n}`);
1498
+ function sr(e, t, n) {
1499
+ let r = new Set(e.map((e) => Xt(e))), i = [], a = (e, t) => {
1500
+ for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(Xt(o)) && i.push(`${t}.${n}: ${o}`) : or(o) && a(o, `${t}.${n}`);
1500
1501
  }, o = t;
1501
- for (let [e, t] of Object.entries(Be)) {
1502
+ for (let [e, t] of Object.entries(Ve)) {
1502
1503
  let n = o?.[e];
1503
1504
  a({
1504
1505
  ...t,
1505
- ...ar(n) ? n : {}
1506
+ ...or(n) ? n : {}
1506
1507
  }, e);
1507
1508
  }
1508
1509
  return a({
1509
- ...Fe,
1510
+ ...Ie,
1510
1511
  ...n ?? {}
1511
1512
  }, "template"), i;
1512
1513
  }
1513
1514
  //#endregion
1514
1515
  //#region src/utils/localizedBlockDefaults.ts
1515
- function sr(e) {
1516
+ function cr(e) {
1516
1517
  return {
1517
1518
  title: { content: `<p>${e.blockDefaults.title}</p>` },
1518
1519
  paragraph: { content: `<p>${e.blockDefaults.paragraph}</p>` },
@@ -1521,62 +1522,62 @@ function sr(e) {
1521
1522
  }
1522
1523
  //#endregion
1523
1524
  //#region src/i18n/index.ts
1524
- var cr = /* #__PURE__ */ Object.assign({
1525
- "./locales/ca.ts": () => import("./ca-C0hfqt4U.js"),
1526
- "./locales/de.ts": () => import("./de-C6J2Iae8.js"),
1527
- "./locales/en.ts": () => import("./en-BaUYOQi8.js"),
1528
- "./locales/es.ts": () => import("./es-CKDYfJYn.js"),
1529
- "./locales/fr.ts": () => import("./fr-L8DR73mK.js"),
1530
- "./locales/nl.ts": () => import("./nl-GDWeuX18.js"),
1531
- "./locales/pt-BR.ts": () => import("./pt-BR-B1AVVhWj.js")
1532
- }), lr = /* #__PURE__ */ Object.assign({
1525
+ var lr = /* #__PURE__ */ Object.assign({
1526
+ "./locales/ca.ts": () => import("./ca-D9S-UCfZ.js"),
1527
+ "./locales/de.ts": () => import("./de-BUPszLpi.js"),
1528
+ "./locales/en.ts": () => import("./en-BbOC5x3w.js"),
1529
+ "./locales/es.ts": () => import("./es-0bCDcT9p.js"),
1530
+ "./locales/fr.ts": () => import("./fr-Brr8mJ9e.js"),
1531
+ "./locales/nl.ts": () => import("./nl-Co3_RL0M.js"),
1532
+ "./locales/pt-BR.ts": () => import("./pt-BR-BECez5b0.js")
1533
+ }), ur = /* #__PURE__ */ Object.assign({
1533
1534
  "./locales/cloud/de.ts": () => import("./de-BytZwgn6.js"),
1534
1535
  "./locales/cloud/en.ts": () => import("./en-DyOSV0lY.js"),
1535
1536
  "./locales/cloud/pt-BR.ts": () => import("./pt-BR-C1WLSGDh.js")
1536
1537
  });
1537
- function ur(e) {
1538
+ function dr(e) {
1538
1539
  return Object.keys(e).map((e) => e.match(/\/([^/]+)\.ts$/)?.[1]).filter((e) => !!e);
1539
1540
  }
1540
- var dr = ur(cr), fr = ur(lr);
1541
- function pr(e) {
1541
+ var fr = dr(lr), pr = dr(ur);
1542
+ function mr(e) {
1542
1543
  return e.trim().replace(/_/g, "-").toLowerCase();
1543
1544
  }
1544
- function mr(e, t) {
1545
- let n = pr(e);
1546
- return t.find((e) => pr(e) === n);
1545
+ function hr(e, t) {
1546
+ let n = mr(e);
1547
+ return t.find((e) => mr(e) === n);
1547
1548
  }
1548
- function hr(e) {
1549
- return pr(e).split("-")[0];
1550
- }
1551
- function gr(e, t) {
1552
- return mr(e, t) ?? mr(hr(e), t);
1549
+ function gr(e) {
1550
+ return mr(e).split("-")[0];
1553
1551
  }
1554
1552
  function _r(e, t) {
1555
- return gr(e, t) ?? "en";
1553
+ return hr(e, t) ?? hr(gr(e), t);
1556
1554
  }
1557
- async function vr(e) {
1558
- let t = cr[`./locales/${_r(e, dr)}.ts`];
1559
- return (await t()).default;
1555
+ function vr(e, t) {
1556
+ return _r(e, t) ?? "en";
1560
1557
  }
1561
1558
  async function yr(e) {
1562
- let t = lr[`./locales/cloud/${_r(e, fr)}.ts`];
1559
+ let t = lr[`./locales/${vr(e, fr)}.ts`];
1563
1560
  return (await t()).default;
1564
1561
  }
1565
- function br(e) {
1566
- return gr(e, dr) !== void 0;
1562
+ async function br(e) {
1563
+ let t = ur[`./locales/cloud/${vr(e, pr)}.ts`];
1564
+ return (await t()).default;
1567
1565
  }
1568
1566
  function xr(e) {
1569
- return gr(e, fr) !== void 0;
1567
+ return _r(e, fr) !== void 0;
1570
1568
  }
1571
- function Sr() {
1572
- return [...dr];
1569
+ function Sr(e) {
1570
+ return _r(e, pr) !== void 0;
1573
1571
  }
1574
1572
  function Cr() {
1575
1573
  return [...fr];
1576
1574
  }
1575
+ function wr() {
1576
+ return [...pr];
1577
+ }
1577
1578
  //#endregion
1578
1579
  //#region src/i18n/contentDefaults.ts
1579
- var wr = {
1580
+ var Tr = {
1580
1581
  en: {
1581
1582
  video: "Video",
1582
1583
  days: "Days",
@@ -1634,17 +1635,17 @@ var wr = {
1634
1635
  expired: "Aquesta oferta ha caducat"
1635
1636
  }
1636
1637
  };
1637
- Object.keys(wr);
1638
- var Tr = new Map(Object.keys(wr).map((e) => [e.toLowerCase(), e]));
1639
- function Er(e) {
1640
- if (!e) return wr.en;
1641
- let t = e.trim().replace(/_/g, "-").toLowerCase(), n = Tr.get(t);
1642
- if (n) return wr[n];
1643
- let r = Tr.get(hr(t));
1644
- return r ? wr[r] : wr.en;
1645
- }
1638
+ Object.keys(Tr);
1639
+ var Er = new Map(Object.keys(Tr).map((e) => [e.toLowerCase(), e]));
1646
1640
  function Dr(e) {
1647
- let t = Er(e);
1641
+ if (!e) return Tr.en;
1642
+ let t = e.trim().replace(/_/g, "-").toLowerCase(), n = Er.get(t);
1643
+ if (n) return Tr[n];
1644
+ let r = Er.get(gr(t));
1645
+ return r ? Tr[r] : Tr.en;
1646
+ }
1647
+ function Or(e) {
1648
+ let t = Dr(e);
1648
1649
  return {
1649
1650
  video: { alt: t.video },
1650
1651
  countdown: {
@@ -1658,8 +1659,8 @@ function Dr(e) {
1658
1659
  }
1659
1660
  //#endregion
1660
1661
  //#region src/utils/resolveFieldColors.ts
1661
- function Or(e, t) {
1662
- let n = Jt({ presets: e.presets }, Kt), r = n.presets.length === 0, i = e.allowCustom ?? t.allowCustom;
1662
+ function kr(e, t) {
1663
+ let n = Yt({ presets: e.presets }, qt), r = n.presets.length === 0, i = e.allowCustom ?? t.allowCustom;
1663
1664
  return {
1664
1665
  presets: r ? t.presets : n.presets,
1665
1666
  allowCustom: t.allowCustom !== !1 && i,
@@ -1671,9 +1672,9 @@ function Or(e, t) {
1671
1672
  }
1672
1673
  //#endregion
1673
1674
  //#region src/utils/collectColorFieldIssues.ts
1674
- function kr(e, t) {
1675
+ function Ar(e, t) {
1675
1676
  let n = [], r = (r, i) => {
1676
- let a = Or(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
1677
+ let a = kr(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
1677
1678
  if (a.invalidPresets.length > 0 && n.push({
1678
1679
  id: s("invalid-presets"),
1679
1680
  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." : "")
@@ -1684,8 +1685,8 @@ function kr(e, t) {
1684
1685
  id: s("allow-custom-ignored"),
1685
1686
  message: `${o}: allowCustom: true is ignored because colors.allowCustom is false — a field can narrow the editor-wide palette, never unlock it.`
1686
1687
  }), !a.allowCustom && a.presets.length > 0) {
1687
- let e = r.default ?? "", t = new Set(a.presets.map((e) => Yt(e)));
1688
- e !== "" && !t.has(Yt(e)) && n.push({
1688
+ let e = r.default ?? "", t = new Set(a.presets.map((e) => Xt(e)));
1689
+ e !== "" && !t.has(Xt(e)) && n.push({
1689
1690
  id: s("off-palette-default"),
1690
1691
  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.`
1691
1692
  });
@@ -1697,7 +1698,7 @@ function kr(e, t) {
1697
1698
  }
1698
1699
  //#endregion
1699
1700
  //#region src/utils/keyboardShortcuts.ts
1700
- function Ar(e) {
1701
+ function jr(e) {
1701
1702
  for (let t of e.composedPath()) {
1702
1703
  if (!(t instanceof HTMLElement)) continue;
1703
1704
  if (t.isContentEditable) return !0;
@@ -1706,18 +1707,18 @@ function Ar(e) {
1706
1707
  }
1707
1708
  return !1;
1708
1709
  }
1709
- function jr(e, t) {
1710
+ function Mr(e, t) {
1710
1711
  let n = e.metaKey || e.ctrlKey;
1711
1712
  if (n && e.key.toLowerCase() === "s") {
1712
1713
  e.preventDefault(), t.onSave?.();
1713
1714
  return;
1714
1715
  }
1715
1716
  if (n && e.key.toLowerCase() === "z") {
1716
- if (Ar(e)) return;
1717
+ if (jr(e)) return;
1717
1718
  e.preventDefault(), e.shiftKey ? t.history.redo() : (t.onBeforeUndo?.(), t.history.undo());
1718
1719
  return;
1719
1720
  }
1720
- if (t.isPicking?.() && !Ar(e)) {
1721
+ if (t.isPicking?.() && !jr(e)) {
1721
1722
  if (e.key === "Escape") {
1722
1723
  e.preventDefault(), t.onCancelPick?.();
1723
1724
  return;
@@ -1735,11 +1736,11 @@ function jr(e, t) {
1735
1736
  t.selectBlock(null);
1736
1737
  return;
1737
1738
  }
1738
- (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Ar(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
1739
+ (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !jr(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
1739
1740
  }
1740
1741
  //#endregion
1741
1742
  //#region src/utils/mergeTagLabelSegments.ts
1742
- function Mr(e, t, n, r = !1) {
1743
+ function Nr(e, t, n, r = !1) {
1743
1744
  if (!e) return [];
1744
1745
  let i = RegExp(`(${n.value.source}|${n.logic.source})`, "g"), a = [], o = 0, s;
1745
1746
  for (; (s = i.exec(e)) !== null;) {
@@ -1752,7 +1753,7 @@ function Mr(e, t, n, r = !1) {
1752
1753
  let e = r ? oe(i, t) : void 0;
1753
1754
  a.push(e === void 0 ? {
1754
1755
  type: "tag",
1755
- value: Me(i, t)
1756
+ value: Ne(i, t)
1756
1757
  } : {
1757
1758
  type: "text",
1758
1759
  value: e
@@ -1773,20 +1774,20 @@ function Mr(e, t, n, r = !1) {
1773
1774
  }
1774
1775
  //#endregion
1775
1776
  //#region src/components/MergeTagPreviewText.vue
1776
- var Nr = I({
1777
+ var Pr = I({
1777
1778
  name: "MergeTagPreviewText",
1778
1779
  props: { text: {
1779
1780
  type: String,
1780
1781
  required: !0
1781
1782
  } },
1782
1783
  setup(e) {
1783
- let t = p(it, []), n = p(At, Ie.liquid), r = p(It, null), i = P(() => Mr(e.text, t, n, r?.value ?? !1));
1784
+ let t = p(at, []), n = p(jt, Le.liquid), r = p(Lt, null), i = P(() => Nr(e.text, t, n, r?.value ?? !1));
1784
1785
  return () => i.value.map((e, t) => e.type === "tag" ? b("span", {
1785
1786
  key: t,
1786
1787
  class: "tpl-merge-tag-label"
1787
1788
  }, e.value) : e.value);
1788
1789
  }
1789
- }), Pr = ["href"], Fr = /* @__PURE__ */ I({
1790
+ }), Fr = ["href"], Ir = /* @__PURE__ */ I({
1790
1791
  __name: "ButtonBlock",
1791
1792
  props: {
1792
1793
  block: {},
@@ -1812,193 +1813,246 @@ var Nr = I({
1812
1813
  style: u(n.value),
1813
1814
  class: "tpl:cursor-default",
1814
1815
  onClick: i[0] ||= L(() => {}, ["prevent"])
1815
- }, [w(Nr, { text: e.block.text }, null, 8, ["text"])], 12, Pr)], 4));
1816
- }
1817
- }), Ir = Zt("bookmark", [["path", {
1818
- 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",
1819
- key: "oz39mx"
1820
- }]]), Lr = Zt("box", [
1821
- ["path", {
1822
- d: "M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",
1823
- key: "hh9hay"
1824
- }],
1825
- ["path", {
1826
- d: "m3.3 7 8.7 5 8.7-5",
1827
- key: "g66t2b"
1828
- }],
1829
- ["path", {
1830
- d: "M12 22V12",
1831
- key: "d0xqtd"
1832
- }]
1833
- ]), Rr = Zt("code", [["path", {
1834
- d: "m16 18 6-6-6-6",
1835
- key: "eg8j8"
1836
- }], ["path", {
1837
- d: "m8 6-6 6 6 6",
1838
- key: "ppft3o"
1839
- }]]), zr = Zt("copy", [["rect", {
1840
- width: "14",
1841
- height: "14",
1842
- x: "8",
1843
- y: "8",
1844
- rx: "2",
1845
- ry: "2",
1846
- key: "17jyea"
1847
- }], ["path", {
1848
- d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
1849
- key: "zix9uf"
1850
- }]]), Br = Zt("eye-off", [
1851
- ["path", {
1852
- d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",
1853
- key: "ct8e1f"
1854
- }],
1855
- ["path", {
1856
- d: "M14.084 14.158a3 3 0 0 1-4.242-4.242",
1857
- key: "151rxh"
1858
- }],
1859
- ["path", {
1860
- d: "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",
1861
- key: "13bj9a"
1862
- }],
1863
- ["path", {
1864
- d: "m2 2 20 20",
1865
- key: "1ooewy"
1866
- }]
1867
- ]), Vr = Zt("funnel", [["path", {
1868
- d: "M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",
1869
- key: "sc7q7i"
1870
- }]]), Hr = Zt("grip-vertical", [
1871
- ["circle", {
1872
- cx: "9",
1873
- cy: "12",
1874
- r: "1",
1875
- key: "1vctgf"
1876
- }],
1877
- ["circle", {
1878
- cx: "9",
1879
- cy: "5",
1880
- r: "1",
1881
- key: "hp0tcf"
1882
- }],
1883
- ["circle", {
1884
- cx: "9",
1885
- cy: "19",
1886
- r: "1",
1887
- key: "fkjjf6"
1888
- }],
1889
- ["circle", {
1890
- cx: "15",
1891
- cy: "12",
1892
- r: "1",
1893
- key: "1tmaij"
1894
- }],
1895
- ["circle", {
1896
- cx: "15",
1897
- cy: "5",
1898
- r: "1",
1899
- key: "19l28e"
1900
- }],
1901
- ["circle", {
1902
- cx: "15",
1903
- cy: "19",
1904
- r: "1",
1905
- key: "f4zoj3"
1906
- }]
1907
- ]), Ur = Zt("image", [
1908
- ["rect", {
1909
- width: "18",
1910
- height: "18",
1911
- x: "3",
1912
- y: "3",
1816
+ }, [w(Pr, { text: e.block.text }, null, 8, ["text"])], 12, Fr)], 4));
1817
+ }
1818
+ }), Lr = Qt({
1819
+ name: "bookmark",
1820
+ size: 24,
1821
+ node: [["path", {
1822
+ 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",
1823
+ key: "oz39mx"
1824
+ }]]
1825
+ }), Rr = Qt({
1826
+ name: "box",
1827
+ size: 24,
1828
+ node: [
1829
+ ["path", {
1830
+ d: "M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",
1831
+ key: "hh9hay"
1832
+ }],
1833
+ ["path", {
1834
+ d: "m3.3 7 8.7 5 8.7-5",
1835
+ key: "g66t2b"
1836
+ }],
1837
+ ["path", {
1838
+ d: "M12 22V12",
1839
+ key: "d0xqtd"
1840
+ }]
1841
+ ]
1842
+ }), zr = Qt({
1843
+ name: "code",
1844
+ size: 24,
1845
+ node: [["path", {
1846
+ d: "m16 18 6-6-6-6",
1847
+ key: "eg8j8"
1848
+ }], ["path", {
1849
+ d: "m8 6-6 6 6 6",
1850
+ key: "ppft3o"
1851
+ }]]
1852
+ }), Br = Qt({
1853
+ name: "copy",
1854
+ size: 24,
1855
+ node: [["rect", {
1856
+ width: "14",
1857
+ height: "14",
1858
+ x: "8",
1859
+ y: "8",
1913
1860
  rx: "2",
1914
1861
  ry: "2",
1915
- key: "1m3agn"
1916
- }],
1917
- ["circle", {
1918
- cx: "9",
1919
- cy: "9",
1920
- r: "2",
1921
- key: "af1f0g"
1922
- }],
1923
- ["path", {
1924
- d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",
1925
- key: "1xmnt7"
1926
- }]
1927
- ]), Wr = Zt("navigation", [["polygon", {
1928
- points: "3 11 22 2 13 21 11 13 3 11",
1929
- key: "1ltx0t"
1930
- }]]), Gr = Zt("puzzle", [["path", {
1931
- 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",
1932
- key: "w46dr5"
1933
- }]]), Kr = Zt("share-2", [
1934
- ["circle", {
1935
- cx: "18",
1936
- cy: "5",
1937
- r: "3",
1938
- key: "gq8acd"
1939
- }],
1940
- ["circle", {
1941
- cx: "6",
1942
- cy: "12",
1943
- r: "3",
1944
- key: "w7nqdw"
1945
- }],
1946
- ["circle", {
1947
- cx: "18",
1948
- cy: "19",
1949
- r: "3",
1950
- key: "1xt0gg"
1951
- }],
1952
- ["line", {
1953
- x1: "8.59",
1954
- x2: "15.42",
1955
- y1: "13.51",
1956
- y2: "17.49",
1957
- key: "47mynk"
1958
- }],
1959
- ["line", {
1960
- x1: "15.41",
1961
- x2: "8.59",
1962
- y1: "6.51",
1963
- y2: "10.49",
1964
- key: "1n3mei"
1965
- }]
1966
- ]), qr = Zt("table", [
1967
- ["path", {
1968
- d: "M12 3v18",
1969
- key: "108xh3"
1970
- }],
1971
- ["rect", {
1972
- width: "18",
1973
- height: "18",
1974
- x: "3",
1975
- y: "3",
1862
+ key: "17jyea"
1863
+ }], ["path", {
1864
+ d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
1865
+ key: "zix9uf"
1866
+ }]]
1867
+ }), Vr = Qt({
1868
+ name: "eye-off",
1869
+ size: 24,
1870
+ node: [
1871
+ ["path", {
1872
+ d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",
1873
+ key: "ct8e1f"
1874
+ }],
1875
+ ["path", {
1876
+ d: "M14.084 14.158a3 3 0 0 1-4.242-4.242",
1877
+ key: "151rxh"
1878
+ }],
1879
+ ["path", {
1880
+ d: "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",
1881
+ key: "13bj9a"
1882
+ }],
1883
+ ["path", {
1884
+ d: "m2 2 20 20",
1885
+ key: "1ooewy"
1886
+ }]
1887
+ ]
1888
+ }), Hr = Qt({
1889
+ name: "funnel",
1890
+ size: 24,
1891
+ node: [["path", {
1892
+ d: "M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",
1893
+ key: "sc7q7i"
1894
+ }]],
1895
+ aliases: ["filter"]
1896
+ }), Ur = Qt({
1897
+ name: "grip-vertical",
1898
+ size: 24,
1899
+ node: [
1900
+ ["circle", {
1901
+ cx: "9",
1902
+ cy: "12",
1903
+ r: "1",
1904
+ key: "1vctgf"
1905
+ }],
1906
+ ["circle", {
1907
+ cx: "9",
1908
+ cy: "5",
1909
+ r: "1",
1910
+ key: "hp0tcf"
1911
+ }],
1912
+ ["circle", {
1913
+ cx: "9",
1914
+ cy: "19",
1915
+ r: "1",
1916
+ key: "fkjjf6"
1917
+ }],
1918
+ ["circle", {
1919
+ cx: "15",
1920
+ cy: "12",
1921
+ r: "1",
1922
+ key: "1tmaij"
1923
+ }],
1924
+ ["circle", {
1925
+ cx: "15",
1926
+ cy: "5",
1927
+ r: "1",
1928
+ key: "19l28e"
1929
+ }],
1930
+ ["circle", {
1931
+ cx: "15",
1932
+ cy: "19",
1933
+ r: "1",
1934
+ key: "f4zoj3"
1935
+ }]
1936
+ ]
1937
+ }), Wr = Qt({
1938
+ name: "image",
1939
+ size: 24,
1940
+ node: [
1941
+ ["rect", {
1942
+ width: "18",
1943
+ height: "18",
1944
+ x: "3",
1945
+ y: "3",
1946
+ rx: "2",
1947
+ ry: "2",
1948
+ key: "1m3agn"
1949
+ }],
1950
+ ["circle", {
1951
+ cx: "9",
1952
+ cy: "9",
1953
+ r: "2",
1954
+ key: "af1f0g"
1955
+ }],
1956
+ ["path", {
1957
+ d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",
1958
+ key: "1xmnt7"
1959
+ }]
1960
+ ]
1961
+ }), Gr = Qt({
1962
+ name: "navigation",
1963
+ size: 24,
1964
+ node: [["polygon", {
1965
+ points: "3 11 22 2 13 21 11 13 3 11",
1966
+ key: "1ltx0t"
1967
+ }]]
1968
+ }), Kr = Qt({
1969
+ name: "puzzle",
1970
+ size: 24,
1971
+ node: [["path", {
1972
+ 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",
1973
+ key: "w46dr5"
1974
+ }]]
1975
+ }), qr = Qt({
1976
+ name: "share-2",
1977
+ size: 24,
1978
+ node: [
1979
+ ["circle", {
1980
+ cx: "18",
1981
+ cy: "5",
1982
+ r: "3",
1983
+ key: "gq8acd"
1984
+ }],
1985
+ ["circle", {
1986
+ cx: "6",
1987
+ cy: "12",
1988
+ r: "3",
1989
+ key: "w7nqdw"
1990
+ }],
1991
+ ["circle", {
1992
+ cx: "18",
1993
+ cy: "19",
1994
+ r: "3",
1995
+ key: "1xt0gg"
1996
+ }],
1997
+ ["line", {
1998
+ x1: "8.59",
1999
+ x2: "15.42",
2000
+ y1: "13.51",
2001
+ y2: "17.49",
2002
+ key: "47mynk"
2003
+ }],
2004
+ ["line", {
2005
+ x1: "15.41",
2006
+ x2: "8.59",
2007
+ y1: "6.51",
2008
+ y2: "10.49",
2009
+ key: "1n3mei"
2010
+ }]
2011
+ ]
2012
+ }), Jr = Qt({
2013
+ name: "table",
2014
+ size: 24,
2015
+ node: [
2016
+ ["path", {
2017
+ d: "M12 3v18",
2018
+ key: "108xh3"
2019
+ }],
2020
+ ["rect", {
2021
+ width: "18",
2022
+ height: "18",
2023
+ x: "3",
2024
+ y: "3",
2025
+ rx: "2",
2026
+ key: "afitv7"
2027
+ }],
2028
+ ["path", {
2029
+ d: "M3 9h18",
2030
+ key: "1pudct"
2031
+ }],
2032
+ ["path", {
2033
+ d: "M3 15h18",
2034
+ key: "5xshup"
2035
+ }]
2036
+ ]
2037
+ }), Yr = Qt({
2038
+ name: "video",
2039
+ size: 24,
2040
+ node: [["path", {
2041
+ d: "m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",
2042
+ key: "ftymec"
2043
+ }], ["rect", {
2044
+ x: "2",
2045
+ y: "6",
2046
+ width: "14",
2047
+ height: "12",
1976
2048
  rx: "2",
1977
- key: "afitv7"
1978
- }],
1979
- ["path", {
1980
- d: "M3 9h18",
1981
- key: "1pudct"
1982
- }],
1983
- ["path", {
1984
- d: "M3 15h18",
1985
- key: "5xshup"
1986
- }]
1987
- ]), Jr = Zt("video", [["path", {
1988
- d: "m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",
1989
- key: "ftymec"
1990
- }], ["rect", {
1991
- x: "2",
1992
- y: "6",
1993
- width: "14",
1994
- height: "12",
1995
- rx: "2",
1996
- key: "158x01"
1997
- }]]), Yr = ["innerHTML"], Xr = [
2049
+ key: "158x01"
2050
+ }]]
2051
+ }), Xr = ["innerHTML"], Zr = [
1998
2052
  "src",
1999
2053
  "width",
2000
2054
  "height"
2001
- ], Zr = /* @__PURE__ */ I({
2055
+ ], Qr = /* @__PURE__ */ I({
2002
2056
  __name: "CustomBlockIcon",
2003
2057
  props: {
2004
2058
  icon: {},
@@ -2014,24 +2068,24 @@ var Nr = I({
2014
2068
  height: `${n.value}px`
2015
2069
  }),
2016
2070
  innerHTML: e.icon
2017
- }, null, 12, Yr)) : i.value ? (O(), S("img", {
2071
+ }, null, 12, Xr)) : i.value ? (O(), S("img", {
2018
2072
  key: 1,
2019
2073
  src: e.icon,
2020
2074
  width: n.value,
2021
2075
  height: n.value,
2022
2076
  class: "tpl:inline-block",
2023
2077
  alt: ""
2024
- }, null, 8, Xr)) : (O(), A(N(Lr), {
2078
+ }, null, 8, Zr)) : (O(), A(N(Rr), {
2025
2079
  key: 2,
2026
2080
  size: n.value,
2027
2081
  "stroke-width": 1.5
2028
2082
  }, null, 8, ["size"]));
2029
2083
  }
2030
- }), Qr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
2031
- function $r(e, t) {
2032
- let n = on(), r = null, i = null, a = null;
2084
+ }), $r = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
2085
+ function ei(e, t) {
2086
+ let n = sn(), r = null, i = null, a = null;
2033
2087
  function o() {
2034
- return e.value ? Array.from(e.value.querySelectorAll(Qr)).filter((e) => e.offsetParent !== null) : [];
2088
+ return e.value ? Array.from(e.value.querySelectorAll($r)).filter((e) => e.offsetParent !== null) : [];
2035
2089
  }
2036
2090
  function c(e) {
2037
2091
  if (e.key !== "Tab") return;
@@ -2046,7 +2100,7 @@ function $r(e, t) {
2046
2100
  a = null;
2047
2101
  let t = o();
2048
2102
  t.length > 0 && (e.value?.querySelector("[autofocus], input:not([disabled])") ?? t[0]).focus();
2049
- }), i = Qe(e, "keydown", c);
2103
+ }), i = $e(e, "keydown", c);
2050
2104
  }
2051
2105
  function u(e = {}) {
2052
2106
  let t = e.restoreFocus !== !1;
@@ -2061,8 +2115,8 @@ function $r(e, t) {
2061
2115
  }
2062
2116
  //#endregion
2063
2117
  //#region src/composables/useEmoji.ts
2064
- function ei() {
2065
- let [e, t] = Ye(!1), n = f([]), r = !1;
2118
+ function ti() {
2119
+ let [e, t] = Xe(!1), n = f([]), r = !1;
2066
2120
  j(() => {
2067
2121
  r = !0;
2068
2122
  }), s(e, async (e) => {
@@ -2087,7 +2141,7 @@ function ei() {
2087
2141
  }
2088
2142
  //#endregion
2089
2143
  //#region src/composables/useFonts.ts
2090
- var ti = [
2144
+ var ni = [
2091
2145
  {
2092
2146
  value: "Arial",
2093
2147
  label: "Arial"
@@ -2116,7 +2170,7 @@ var ti = [
2116
2170
  value: "Courier New",
2117
2171
  label: "Courier New"
2118
2172
  }
2119
- ], ni = {
2173
+ ], ri = {
2120
2174
  arial: "Arial, sans-serif",
2121
2175
  helvetica: "Helvetica, sans-serif",
2122
2176
  georgia: "Georgia, serif",
@@ -2124,23 +2178,23 @@ var ti = [
2124
2178
  verdana: "Verdana, sans-serif",
2125
2179
  "trebuchet ms": "'Trebuchet MS', sans-serif",
2126
2180
  "courier new": "'Courier New', monospace"
2127
- }, ri = "Arial, sans-serif";
2128
- function ii(e) {
2129
- if (e === void 0 || e === !0) return [...ti];
2181
+ }, ii = "Arial, sans-serif";
2182
+ function ai(e) {
2183
+ if (e === void 0 || e === !0) return [...ni];
2130
2184
  if (e === !1) return [];
2131
2185
  let t = [], n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
2132
2186
  for (let i of e) {
2133
- let e = i.toLowerCase(), a = ti.find((t) => t.value.toLowerCase() === e);
2187
+ let e = i.toLowerCase(), a = ni.find((t) => t.value.toLowerCase() === e);
2134
2188
  if (!a) {
2135
- r.has(e) || (r.add(e), Gt.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${ti.map((e) => e.value).join(", ")}.`));
2189
+ r.has(e) || (r.add(e), Kt.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${ni.map((e) => e.value).join(", ")}.`));
2136
2190
  continue;
2137
2191
  }
2138
2192
  n.has(a.value) || (n.add(a.value), t.push(a));
2139
2193
  }
2140
2194
  return t;
2141
2195
  }
2142
- function ai(e) {
2143
- let t = _(e?.customFonts ?? []), n = _(!1), r = ii(e?.builtIns), i = P(() => e?.defaultFallback ?? ri), a = P(() => {
2196
+ function oi(e) {
2197
+ let t = _(e?.customFonts ?? []), n = _(!1), r = ai(e?.builtIns), i = P(() => e?.defaultFallback ?? ii), a = P(() => {
2144
2198
  let e = [...r], n = t.value.map((e) => ({
2145
2199
  value: e.name,
2146
2200
  label: e.name,
@@ -2151,14 +2205,14 @@ function ai(e) {
2151
2205
  function o(e) {
2152
2206
  return a.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
2153
2207
  }
2154
- let s = e?.defaultFont ?? ri.split(",")[0].trim();
2155
- o(s) || Gt.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.`);
2208
+ let s = e?.defaultFont ?? ii.split(",")[0].trim();
2209
+ o(s) || Kt.warn(`config.fonts: new templates seed "${s}", which the font picker doesn't offer — authors can't reselect it. Either add it to fonts.builtIns, or set fonts.defaultFont to an offered font.`);
2156
2210
  function c() {
2157
2211
  if (e?.defaultFont && o(e.defaultFont)) {
2158
2212
  let t = a.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
2159
2213
  if (t) return t.value;
2160
2214
  }
2161
- return ri;
2215
+ return ii;
2162
2216
  }
2163
2217
  let l = P(() => c());
2164
2218
  function u(e) {
@@ -2168,7 +2222,7 @@ function ai(e) {
2168
2222
  let e = n.fallback ?? i.value;
2169
2223
  return `'${n.name}', ${e}`;
2170
2224
  }
2171
- return ni[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${i.value}`);
2225
+ return ri[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${i.value}`);
2172
2226
  }
2173
2227
  let d = [], f = !1;
2174
2228
  async function p() {
@@ -2184,7 +2238,7 @@ function ai(e) {
2184
2238
  t.onload = () => n(), t.onerror = () => r(/* @__PURE__ */ Error(`Failed to load font: ${e.name}`)), document.head.appendChild(t);
2185
2239
  });
2186
2240
  } catch (t) {
2187
- Gt.warn(`Failed to load custom font "${e.name}":`, t);
2241
+ Kt.warn(`Failed to load custom font "${e.name}":`, t);
2188
2242
  }
2189
2243
  });
2190
2244
  await Promise.allSettled(e), !f && (n.value = !0);
@@ -2209,8 +2263,8 @@ function ai(e) {
2209
2263
  }
2210
2264
  //#endregion
2211
2265
  //#region src/composables/useLogicTag.ts
2212
- function oi() {
2213
- let e = p(nt, []), t = p(_t, []), n = p(At, Ie.liquid), r = p(ft, null), i = p(Vt, null), a = p(vt, null) ?? _(!1), o = !!r || e.length > 0 || t.length > 0, s = e.length > 0 || t.length > 0;
2266
+ function si() {
2267
+ let e = p(rt, []), t = p(vt, []), n = p(jt, Le.liquid), r = p(pt, null), i = p(Ht, null), a = p(yt, null) ?? _(!1), o = !!r || e.length > 0 || t.length > 0, s = e.length > 0 || t.length > 0;
2214
2268
  async function c() {
2215
2269
  if (r) {
2216
2270
  a.value = !0;
@@ -2241,7 +2295,7 @@ function oi() {
2241
2295
  }
2242
2296
  //#endregion
2243
2297
  //#region src/utils/mergeTagNodeSpec.ts
2244
- function si(e, t, n) {
2298
+ function ci(e, t, n) {
2245
2299
  return de(e, n) ? {
2246
2300
  type: "logicMergeTagNode",
2247
2301
  attrs: {
@@ -2258,15 +2312,15 @@ function si(e, t, n) {
2258
2312
  }
2259
2313
  //#endregion
2260
2314
  //#region src/utils/insertLogicTag.ts
2261
- function ci(e) {
2315
+ function li(e) {
2262
2316
  return "before" in e && "after" in e;
2263
2317
  }
2264
- function li(e, t, n) {
2265
- if (!ci(t)) {
2266
- e.chain().focus().insertContent(si(t.value, t.label, n)).run();
2318
+ function ui(e, t, n) {
2319
+ if (!li(t)) {
2320
+ e.chain().focus().insertContent(ci(t.value, t.label, n)).run();
2267
2321
  return;
2268
2322
  }
2269
- let r = si(t.before, t.label, n), i = si(t.after, t.label, n), { from: a, to: o } = e.state.selection;
2323
+ let r = ci(t.before, t.label, n), i = ci(t.after, t.label, n), { from: a, to: o } = e.state.selection;
2270
2324
  if (a !== o) {
2271
2325
  e.chain().focus().insertContentAt(o, i).insertContentAt(a, r).run();
2272
2326
  return;
@@ -2275,20 +2329,20 @@ function li(e, t, n) {
2275
2329
  }
2276
2330
  //#endregion
2277
2331
  //#region src/utils/linkColorExtension.ts
2278
- function ui(e) {
2332
+ function di(e) {
2279
2333
  if (!e) return null;
2280
2334
  let t = e.trim();
2281
2335
  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;
2282
2336
  }
2283
- function di(e) {
2337
+ function fi(e) {
2284
2338
  return e.extend({ addAttributes() {
2285
2339
  return {
2286
2340
  ...this.parent?.(),
2287
2341
  color: {
2288
2342
  default: null,
2289
- parseHTML: (e) => ui(qt(e.style.color)),
2343
+ parseHTML: (e) => di(Jt(e.style.color)),
2290
2344
  renderHTML: (e) => {
2291
- let t = ui(e.color);
2345
+ let t = di(e.color);
2292
2346
  return t ? { style: `color: ${t}` } : {};
2293
2347
  }
2294
2348
  }
@@ -2297,9 +2351,9 @@ function di(e) {
2297
2351
  }
2298
2352
  //#endregion
2299
2353
  //#region src/composables/useRichTextLinkDialog.ts
2300
- function fi(e, t = Ie.liquid) {
2354
+ function pi(e, t = Le.liquid) {
2301
2355
  let n = _(!1), r = _(""), i = _(""), a = _(null);
2302
- $r(a, n);
2356
+ ei(a, n);
2303
2357
  function o() {
2304
2358
  let t = e.value?.getAttributes("link") ?? {};
2305
2359
  r.value = t.href || "", i.value = t.color || "", n.value = !0;
@@ -2308,7 +2362,7 @@ function fi(e, t = Ie.liquid) {
2308
2362
  if (r.value) {
2309
2363
  let t = u(r.value);
2310
2364
  if (t !== null) {
2311
- let n = ui(i.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
2365
+ let n = di(i.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
2312
2366
  n && typeof e.value?.commands.unsetColor == "function" && r?.unsetColor(), r?.run();
2313
2367
  }
2314
2368
  }
@@ -2358,10 +2412,15 @@ function fi(e, t = Ie.liquid) {
2358
2412
  }
2359
2413
  //#endregion
2360
2414
  //#region src/composables/useRichTextEditor.ts
2361
- function pi(e) {
2362
- let t = p(kt, null), { mergeTags: n, canRequestMergeTag: r, isRequesting: o, requestMergeTag: c, syntax: l, autocomplete: u } = sn(), { canInsertLogicTag: d, isRequesting: m, requestLogicTag: h } = oi(), g = p(xt, null), v = (a(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", y = he(l), b = f(null), { showLinkDialog: x, linkUrl: S, linkColor: C, linkDialogRef: w, openLinkDialog: T, insertLink: E, removeLink: D, closeLinkDialog: O, handleLinkKeydown: k } = fi(b, l), { start: A, stop: ee } = Xe(() => b.value?.commands.focus("end"), 0, { immediate: !1 }), j = f(null), M = _(!0), N = _(null), P = !1;
2363
- async function te() {
2364
- N.value = null, M.value = !0;
2415
+ function mi(e) {
2416
+ let t = p(At, null), { mergeTags: n, canRequestMergeTag: r, isRequesting: o, requestMergeTag: c, syntax: l, autocomplete: u } = cn(), { canInsertLogicTag: d, isRequesting: m, requestLogicTag: h } = si(), g = p(St, null), v = (a(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", y = he(l), b = f(null), x = () => ye(t?.content?.value?.settings ?? { locale: "en" });
2417
+ s(x, (e) => {
2418
+ let t = b.value?.view.dom;
2419
+ t && t.setAttribute("dir", e);
2420
+ });
2421
+ let { showLinkDialog: S, linkUrl: C, linkColor: w, linkDialogRef: T, openLinkDialog: E, insertLink: D, removeLink: O, closeLinkDialog: k, handleLinkKeydown: A } = pi(b, l), { start: ee, stop: j } = Ze(() => b.value?.commands.focus("end"), 0, { immediate: !1 }), M = f(null), N = _(!0), P = _(null), te = !1;
2422
+ async function F() {
2423
+ P.value = null, N.value = !0;
2365
2424
  try {
2366
2425
  let { TiptapEditor: r, EC: i, extensions: a } = await e.loadExtensions({
2367
2426
  mergeTags: n,
@@ -2370,36 +2429,37 @@ function pi(e) {
2370
2429
  autocompleteEnabled: u,
2371
2430
  suggestionEmptyText: v
2372
2431
  });
2373
- if (P) return;
2374
- j.value = i;
2432
+ if (te) return;
2433
+ M.value = i;
2375
2434
  let o = /* @__PURE__ */ new Map();
2376
2435
  a.forEach((e, t) => o.set(e.name, t));
2377
2436
  let s = new r({
2378
2437
  extensions: a.filter((e, t) => o.get(e.name) === t),
2379
2438
  content: e.blockContent(),
2380
2439
  editable: !0,
2440
+ editorProps: { attributes: { dir: x() } },
2381
2441
  onUpdate: ({ editor: n }) => {
2382
- P || t && t.updateBlock(e.blockId(), { content: n.getHTML() });
2442
+ te || t && t.updateBlock(e.blockId(), { content: n.getHTML() });
2383
2443
  }
2384
2444
  });
2385
- if (P) {
2445
+ if (te) {
2386
2446
  s.destroy();
2387
2447
  return;
2388
2448
  }
2389
- b.value = s, M.value = !1, A();
2449
+ b.value = s, N.value = !1, ee();
2390
2450
  } catch (t) {
2391
- if (P) return;
2392
- Gt.error(`[${e.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, t), N.value = t instanceof Error ? t.message : "Failed to load editor", M.value = !1;
2451
+ if (te) return;
2452
+ Kt.error(`[${e.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, t), P.value = t instanceof Error ? t.message : "Failed to load editor", N.value = !1;
2393
2453
  }
2394
2454
  }
2395
- function F() {
2396
- b.value?.destroy(), b.value = null, te();
2455
+ function I() {
2456
+ b.value?.destroy(), b.value = null, F();
2397
2457
  }
2398
- te();
2399
- let I = s(() => e.blockContent(), (e) => {
2458
+ F();
2459
+ let ne = s(() => e.blockContent(), (e) => {
2400
2460
  b.value && b.value.getHTML() !== e && b.value.commands.setContent(e, { emitUpdate: !1 });
2401
2461
  });
2402
- function ne(t) {
2462
+ function re(t) {
2403
2463
  if (o.value || m.value) return;
2404
2464
  let n = t.composedPath(), r = n.find((e) => e instanceof HTMLElement);
2405
2465
  if (!r) return;
@@ -2407,50 +2467,50 @@ function pi(e) {
2407
2467
  let i = n.some((e) => e instanceof HTMLElement && e.classList.contains("tpl-color-popover"));
2408
2468
  r.closest(".tpl-text-editor-wrapper") || r.closest(".tpl-text-toolbar") || r.closest(".tpl-link-dialog") || i || e.onDone();
2409
2469
  }
2410
- Qe(document, "mousedown", ne), i(() => {
2411
- P = !0, I(), ee(), b.value?.destroy();
2470
+ $e(document, "mousedown", re), i(() => {
2471
+ te = !0, ne(), j(), b.value?.destroy();
2412
2472
  });
2413
- async function re() {
2473
+ async function L() {
2414
2474
  let e = await c();
2415
- P || (e && b.value ? b.value.chain().focus().insertMergeTag({
2475
+ te || (e && b.value ? b.value.chain().focus().insertMergeTag({
2416
2476
  label: e.label,
2417
2477
  value: e.value
2418
2478
  }).run() : b.value?.commands.focus());
2419
2479
  }
2420
- async function L() {
2480
+ async function ie() {
2421
2481
  let e = await h();
2422
- P || (e && b.value ? li(b.value, e, l) : b.value?.commands.focus());
2482
+ te || (e && b.value ? ui(b.value, e, l) : b.value?.commands.focus());
2423
2483
  }
2424
2484
  return {
2425
2485
  editor: b,
2426
- EditorContent: j,
2427
- isLoading: M,
2428
- initError: N,
2429
- retry: F,
2430
- showLinkDialog: x,
2431
- linkUrl: S,
2432
- linkColor: C,
2433
- linkDialogRef: w,
2486
+ EditorContent: M,
2487
+ isLoading: N,
2488
+ initError: P,
2489
+ retry: I,
2490
+ showLinkDialog: S,
2491
+ linkUrl: C,
2492
+ linkColor: w,
2493
+ linkDialogRef: T,
2434
2494
  mergeTags: n,
2435
2495
  canRequestMergeTag: r,
2436
2496
  isRequestingMergeTag: o,
2437
2497
  syntax: l,
2438
2498
  canInsertLogicTag: d,
2439
2499
  isRequestingLogicTag: m,
2440
- openLinkDialog: T,
2441
- insertLink: E,
2442
- removeLink: D,
2443
- closeLinkDialog: O,
2444
- handleLinkKeydown: k,
2445
- handleAddMergeTag: re,
2446
- handleAddLogicTag: L
2500
+ openLinkDialog: E,
2501
+ insertLink: D,
2502
+ removeLink: O,
2503
+ closeLinkDialog: k,
2504
+ handleLinkKeydown: A,
2505
+ handleAddMergeTag: L,
2506
+ handleAddLogicTag: ie
2447
2507
  };
2448
2508
  }
2449
2509
  //#endregion
2450
2510
  //#region src/composables/useSmallScreenNotice.ts
2451
- var mi = "(max-width: 767px)";
2452
- function hi(e) {
2453
- let t = Ze(mi);
2511
+ var hi = "(max-width: 767px)";
2512
+ function gi(e) {
2513
+ let t = Qe(hi);
2454
2514
  return {
2455
2515
  isSmallScreen: t,
2456
2516
  showNotice: P(() => (te(e) ?? !0) && t.value)
@@ -2458,20 +2518,20 @@ function hi(e) {
2458
2518
  }
2459
2519
  //#endregion
2460
2520
  //#region src/components/blocks/CustomBlock.vue?vue&type=script&setup=true&lang.ts
2461
- var gi = { class: "tpl:w-full" }, _i = {
2521
+ var _i = { class: "tpl:w-full" }, vi = {
2462
2522
  key: 0,
2463
2523
  class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-warning)] tpl:bg-[var(--tpl-warning-light)]"
2464
- }, vi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, yi = {
2524
+ }, yi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, bi = {
2465
2525
  key: 1,
2466
2526
  class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-danger)] tpl:bg-[var(--tpl-danger-light)]"
2467
- }, bi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, xi = {
2527
+ }, xi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Si = {
2468
2528
  key: 2,
2469
2529
  class: "tpl:relative"
2470
- }, Si = ["innerHTML"], Ci = {
2530
+ }, Ci = ["innerHTML"], wi = {
2471
2531
  key: 0,
2472
2532
  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]",
2473
2533
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
2474
- }, wi = /* @__PURE__ */ I({
2534
+ }, Ti = /* @__PURE__ */ I({
2475
2535
  __name: "CustomBlock",
2476
2536
  props: {
2477
2537
  block: {},
@@ -2479,7 +2539,7 @@ var gi = { class: "tpl:w-full" }, _i = {
2479
2539
  },
2480
2540
  emits: ["fetchData"],
2481
2541
  setup(e, { emit: t }) {
2482
- let r = e, i = t, { t: a } = Wt(), o = p(Rt, null), c = _(""), l = _(!1), u = P(() => o?.getDefinition(r.block.customType)), d = P(() => !!u.value), { isFetching: f, fetch: m, needsFetch: h, hasDataSource: g } = Sn({
2542
+ let r = e, i = t, { t: a } = Gt(), o = p(zt, null), c = _(""), l = _(!1), u = P(() => o?.getDefinition(r.block.customType)), d = P(() => !!u.value), { isFetching: f, fetch: m, needsFetch: h, hasDataSource: g } = Cn({
2483
2543
  definition: u,
2484
2544
  block: P(() => r.block),
2485
2545
  onUpdate: (e, t) => {
@@ -2488,10 +2548,10 @@ var gi = { class: "tpl:w-full" }, _i = {
2488
2548
  dataSourceFetched: t
2489
2549
  });
2490
2550
  }
2491
- }), v = p(it, []), y = p(It, null), b = P(() => {
2551
+ }), v = p(at, []), y = p(Lt, null), b = P(() => {
2492
2552
  if (!y?.value) return r.block;
2493
2553
  let e = {};
2494
- for (let [t, n] of Object.entries(r.block.fieldValues)) e[t] = typeof n == "string" ? Se(n, v) : n;
2554
+ for (let [t, n] of Object.entries(r.block.fieldValues)) e[t] = typeof n == "string" ? we(n, v) : n;
2495
2555
  return {
2496
2556
  ...r.block,
2497
2557
  fieldValues: e
@@ -2508,17 +2568,17 @@ var gi = { class: "tpl:w-full" }, _i = {
2508
2568
  }
2509
2569
  }
2510
2570
  }
2511
- let E = qe(C, 150);
2571
+ let E = Je(C, 150);
2512
2572
  return n(() => {
2513
2573
  C();
2514
2574
  }), s(() => r.block.fieldValues, () => {
2515
2575
  E();
2516
2576
  }, { deep: !0 }), s(() => y?.value, () => {
2517
2577
  E();
2518
- }), (e, t) => (O(), S("div", gi, [d.value ? l.value ? (O(), S("div", yi, [w(N(tn), {
2578
+ }), (e, t) => (O(), S("div", _i, [d.value ? l.value ? (O(), S("div", bi, [w(N(nn), {
2519
2579
  size: 24,
2520
2580
  class: "tpl:text-[var(--tpl-danger)]"
2521
- }), x("span", bi, k(N(a).customBlocks.renderError), 1)])) : (O(), S("div", xi, [x("div", { innerHTML: c.value }, null, 8, Si), N(g) && N(h) ? (O(), S("div", Ci, [N(f) ? (O(), A(rn, {
2581
+ }), x("span", xi, k(N(a).customBlocks.renderError), 1)])) : (O(), S("div", Si, [x("div", { innerHTML: c.value }, null, 8, Ci), N(g) && N(h) ? (O(), S("div", wi, [N(f) ? (O(), A(an, {
2522
2582
  key: 1,
2523
2583
  class: "tpl:w-48"
2524
2584
  })) : (O(), S("button", {
@@ -2526,16 +2586,16 @@ var gi = { class: "tpl:w-full" }, _i = {
2526
2586
  type: "button",
2527
2587
  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)]",
2528
2588
  onClick: t[0] ||= L((...e) => N(m) && N(m)(...e), ["stop"])
2529
- }, [u.value?.icon ? (O(), A(Zr, {
2589
+ }, [u.value?.icon ? (O(), A(Qr, {
2530
2590
  key: 0,
2531
2591
  icon: u.value.icon,
2532
2592
  size: 16
2533
- }, null, 8, ["icon"])) : F("", !0), T(" " + k(u.value?.dataSource?.label || N(a).customBlocks.dataSource.fetchButton), 1)]))])) : F("", !0)])) : (O(), S("div", _i, [w(N(Gr), {
2593
+ }, null, 8, ["icon"])) : F("", !0), T(" " + k(u.value?.dataSource?.label || N(a).customBlocks.dataSource.fetchButton), 1)]))])) : F("", !0)])) : (O(), S("div", vi, [w(N(Kr), {
2534
2594
  size: 24,
2535
2595
  class: "tpl:text-[var(--tpl-warning)]"
2536
- }), x("span", vi, k(N(a).customBlocks.definitionNotFound), 1)]))]));
2596
+ }), x("span", yi, k(N(a).customBlocks.definitionNotFound), 1)]))]));
2537
2597
  }
2538
- }), Ti = { class: "tpl:w-full" }, Ei = /* @__PURE__ */ I({
2598
+ }), Ei = { class: "tpl:w-full" }, Di = /* @__PURE__ */ I({
2539
2599
  __name: "DividerBlock",
2540
2600
  props: {
2541
2601
  block: {},
@@ -2547,28 +2607,28 @@ var gi = { class: "tpl:w-full" }, _i = {
2547
2607
  width: t.block.width === "full" ? "100%" : `${t.block.width}px`,
2548
2608
  margin: t.block.width === "full" ? "0" : "0 auto"
2549
2609
  }));
2550
- return (e, t) => (O(), S("div", Ti, [x("hr", {
2610
+ return (e, t) => (O(), S("div", Ei, [x("hr", {
2551
2611
  class: "tpl:m-0 tpl:border-none",
2552
2612
  style: u(n.value)
2553
2613
  }, null, 4)]));
2554
2614
  }
2555
- }), Di = { class: "tpl:w-full" }, Oi = ["srcdoc", "title"], ki = {
2615
+ }), Oi = { class: "tpl:w-full" }, ki = ["srcdoc", "title"], Ai = {
2556
2616
  key: 1,
2557
2617
  class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)]"
2558
- }, Ai = {
2618
+ }, ji = {
2559
2619
  key: 0,
2560
2620
  class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
2561
- }, ji = {
2621
+ }, Mi = {
2562
2622
  key: 1,
2563
2623
  class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
2564
- }, Mi = /* @__PURE__ */ I({
2624
+ }, Ni = /* @__PURE__ */ I({
2565
2625
  __name: "HtmlBlock",
2566
2626
  props: {
2567
2627
  block: {},
2568
2628
  viewport: {}
2569
2629
  },
2570
2630
  setup(e) {
2571
- let t = e, { t: n } = Wt(), r = p(Ut, !1), a = P(() => t.block.content.trim().length > 0), o = P(() => r && a.value), c = p(it, []), l = p(It, null), d = P(() => l?.value ? Se(t.block.content, c) : t.block.content), f = _(null), m = _(60), h = null;
2631
+ let t = e, { t: n } = Gt(), r = p(Wt, !1), a = P(() => t.block.content.trim().length > 0), o = P(() => r && a.value), c = p(at, []), l = p(Lt, null), d = P(() => l?.value ? we(t.block.content, c) : t.block.content), f = _(null), m = _(60), h = null;
2572
2632
  function g() {
2573
2633
  let e = f.value?.contentDocument;
2574
2634
  e && (m.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
@@ -2582,7 +2642,7 @@ var gi = { class: "tpl:w-full" }, _i = {
2582
2642
  e || (h?.disconnect(), h = null);
2583
2643
  }), i(() => {
2584
2644
  h?.disconnect(), h = null;
2585
- }), (e, t) => (O(), S("div", Di, [o.value ? (O(), S("iframe", {
2645
+ }), (e, t) => (O(), S("div", Oi, [o.value ? (O(), S("iframe", {
2586
2646
  key: 0,
2587
2647
  ref_key: "iframeRef",
2588
2648
  ref: f,
@@ -2592,18 +2652,18 @@ var gi = { class: "tpl:w-full" }, _i = {
2592
2652
  class: "tpl:block tpl:w-full tpl:border-0",
2593
2653
  style: u({ height: `${m.value}px` }),
2594
2654
  onLoad: v
2595
- }, null, 44, Oi)) : (O(), S("div", ki, [w(N(Rr), {
2655
+ }, null, 44, ki)) : (O(), S("div", Ai, [w(N(zr), {
2596
2656
  size: 24,
2597
2657
  class: "tpl:text-[var(--tpl-text-dim)]"
2598
- }), a.value ? (O(), S("span", Ai, k(N(n).html.preview), 1)) : (O(), S("span", ji, k(N(n).html.empty), 1))]))]));
2658
+ }), a.value ? (O(), S("span", ji, k(N(n).html.preview), 1)) : (O(), S("span", Mi, k(N(n).html.empty), 1))]))]));
2599
2659
  }
2600
- }), Ni = "image/";
2601
- function Pi(e) {
2602
- let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || te(r), { isOverDropZone: a } = $e(t, {
2660
+ }), Pi = "image/";
2661
+ function Fi(e) {
2662
+ let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || te(r), { isOverDropZone: a } = et(t, {
2603
2663
  preventDefaultForUnhandled: !0,
2604
2664
  onDrop: (e) => {
2605
2665
  if (!i()) return;
2606
- let t = (e ?? []).filter((e) => e.type.startsWith(Ni));
2666
+ let t = (e ?? []).filter((e) => e.type.startsWith(Pi));
2607
2667
  t.length > 0 && n([t[0]]);
2608
2668
  }
2609
2669
  });
@@ -2611,17 +2671,17 @@ function Pi(e) {
2611
2671
  }
2612
2672
  //#endregion
2613
2673
  //#region src/components/blocks/ImageBlock.vue?vue&type=script&setup=true&lang.ts
2614
- var Fi = {
2674
+ var Ii = {
2615
2675
  key: 0,
2616
2676
  class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-10 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-xs tpl:font-medium tpl:border-[var(--tpl-primary)] tpl:text-[var(--tpl-primary)]",
2617
2677
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 85%, transparent)" }
2618
- }, Ii = ["href"], Li = ["src", "alt"], Ri = ["src", "alt"], zi = {
2678
+ }, Li = ["href"], Ri = ["src", "alt"], zi = ["src", "alt"], Bi = {
2619
2679
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
2620
2680
  style: { opacity: "0.7" }
2621
- }, Bi = ["href"], Vi = ["src", "alt"], Hi = ["src", "alt"], Ui = {
2681
+ }, Vi = ["href"], Hi = ["src", "alt"], Ui = ["src", "alt"], Wi = {
2622
2682
  key: 4,
2623
2683
  class: "tpl:flex tpl:min-h-[100px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
2624
- }, Wi = ["aria-label"], Gi = { key: 1 }, Ki = /* @__PURE__ */ I({
2684
+ }, Gi = ["aria-label"], Ki = { key: 1 }, qi = /* @__PURE__ */ I({
2625
2685
  __name: "ImageBlock",
2626
2686
  props: {
2627
2687
  block: {},
@@ -2629,7 +2689,7 @@ var Fi = {
2629
2689
  },
2630
2690
  emits: ["update"],
2631
2691
  setup(e, { emit: t }) {
2632
- let n = e, r = t, { t: i } = Wt(), { syntax: a } = sn(), o = p(pt, null), s = P(() => !!o), c = cn();
2692
+ let n = e, r = t, { t: i } = Gt(), { syntax: a } = cn(), o = p(mt, null), s = P(() => !!o), c = ln();
2633
2693
  async function l() {
2634
2694
  let e = await o?.({ accept: ["images"] });
2635
2695
  if (c.alive && e) {
@@ -2656,7 +2716,7 @@ var Fi = {
2656
2716
  }
2657
2717
  }
2658
2718
  }
2659
- let { isOver: g } = Pi({
2719
+ let { isOver: g } = Fi({
2660
2720
  target: d,
2661
2721
  enabled: m,
2662
2722
  onFiles: h
@@ -2671,18 +2731,18 @@ var Fi = {
2671
2731
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
2672
2732
  marginRight: e === "center" ? "auto" : void 0
2673
2733
  };
2674
- }), b = P(() => Ne(n.block.src, a)), C = Ln(() => b.value ? void 0 : n.block.src), E = Ln(() => b.value ? n.block.placeholderUrl : void 0);
2734
+ }), b = P(() => Pe(n.block.src, a)), C = Rn(() => b.value ? void 0 : n.block.src), E = Rn(() => b.value ? n.block.placeholderUrl : void 0);
2675
2735
  return (t, n) => (O(), S("div", {
2676
2736
  ref_key: "dropZoneRef",
2677
2737
  ref: d,
2678
2738
  "data-testid": "image-drop-zone",
2679
2739
  class: "tpl:relative tpl:w-full",
2680
2740
  style: u(v.value)
2681
- }, [m.value && (N(g) || f.value) ? (O(), S("div", Fi, [f.value ? (O(), S(M, { key: 0 }, [w(N(Qt), {
2741
+ }, [m.value && (N(g) || f.value) ? (O(), S("div", Ii, [f.value ? (O(), S(M, { key: 0 }, [w(N($t), {
2682
2742
  class: "tpl-spinner",
2683
2743
  size: 20,
2684
2744
  "stroke-width": 2
2685
- }), T(" " + k(N(i).image.uploading), 1)], 64)) : (O(), S(M, { key: 1 }, [w(N(nn), {
2745
+ }), T(" " + k(N(i).image.uploading), 1)], 64)) : (O(), S(M, { key: 1 }, [w(N(rn), {
2686
2746
  size: 20,
2687
2747
  "stroke-width": 1.5
2688
2748
  }), T(" " + k(N(i).image.dropToUpload), 1)], 64))])) : F("", !0), e.block.src && b.value && e.block.placeholderUrl ? (O(), S(M, { key: 1 }, [e.block.linkUrl ? (O(), S("a", {
@@ -2697,22 +2757,22 @@ var Fi = {
2697
2757
  src: N(E),
2698
2758
  alt: e.block.alt || N(i).image.altTextPlaceholder,
2699
2759
  style: u(y.value)
2700
- }, null, 12, Li)], 8, Ii)) : (O(), S("img", {
2760
+ }, null, 12, Ri)], 8, Li)) : (O(), S("img", {
2701
2761
  key: 1,
2702
2762
  class: "tpl:border-0",
2703
2763
  src: N(E),
2704
2764
  alt: e.block.alt,
2705
2765
  style: u(y.value)
2706
- }, null, 12, Ri))], 64)) : e.block.src && b.value ? (O(), S("div", {
2766
+ }, null, 12, zi))], 64)) : e.block.src && b.value ? (O(), S("div", {
2707
2767
  key: 2,
2708
2768
  class: "tpl:!flex tpl:min-h-[120px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
2709
2769
  style: u([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, y.value])
2710
- }, [w(N(Ur), {
2770
+ }, [w(N(Wr), {
2711
2771
  size: 32,
2712
2772
  "stroke-width": 1.5,
2713
2773
  class: "tpl:text-[var(--tpl-primary)]",
2714
2774
  style: { opacity: "0.5" }
2715
- }), x("span", zi, [w(Nr, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (O(), S(M, { key: 3 }, [e.block.linkUrl ? (O(), S("a", {
2775
+ }), x("span", Bi, [w(Pr, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (O(), S(M, { key: 3 }, [e.block.linkUrl ? (O(), S("a", {
2716
2776
  key: 0,
2717
2777
  href: e.block.linkUrl,
2718
2778
  target: "_blank",
@@ -2724,33 +2784,33 @@ var Fi = {
2724
2784
  src: N(C),
2725
2785
  alt: e.block.alt || N(i).image.altTextPlaceholder,
2726
2786
  style: u(y.value)
2727
- }, null, 12, Vi)], 8, Bi)) : (O(), S("img", {
2787
+ }, null, 12, Hi)], 8, Vi)) : (O(), S("img", {
2728
2788
  key: 1,
2729
2789
  class: "tpl:border-0",
2730
2790
  src: N(C),
2731
2791
  alt: e.block.alt,
2732
2792
  style: u(y.value)
2733
- }, null, 12, Hi))], 64)) : (O(), S("div", Ui, [s.value ? (O(), S("button", {
2793
+ }, null, 12, Ui))], 64)) : (O(), S("div", Wi, [s.value ? (O(), S("button", {
2734
2794
  key: 0,
2735
2795
  "aria-label": N(i).image.browseMedia,
2736
2796
  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)]",
2737
2797
  onClick: L(l, ["stop"])
2738
- }, [w(N(Ur), {
2798
+ }, [w(N(Wr), {
2739
2799
  size: 14,
2740
2800
  "stroke-width": 1.5
2741
- }), T(" " + k(N(i).image.browseMedia), 1)], 8, Wi)) : (O(), S("span", Gi, k(N(i).image.clickToAdd), 1))]))], 4));
2801
+ }), T(" " + k(N(i).image.browseMedia), 1)], 8, Gi)) : (O(), S("span", Ki, k(N(i).image.clickToAdd), 1))]))], 4));
2742
2802
  }
2743
- }), qi = { class: "tpl:w-full" }, Ji = ["href"], Yi = {
2803
+ }), Ji = { class: "tpl:w-full" }, Yi = ["href"], Xi = {
2744
2804
  key: 1,
2745
2805
  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)]"
2746
- }, Xi = /* @__PURE__ */ I({
2806
+ }, Zi = /* @__PURE__ */ I({
2747
2807
  __name: "MenuBlock",
2748
2808
  props: {
2749
2809
  block: {},
2750
2810
  viewport: {}
2751
2811
  },
2752
2812
  setup(e) {
2753
- let t = e, { t: n } = Wt(), r = P(() => ({
2813
+ let t = e, { t: n } = Gt(), r = P(() => ({
2754
2814
  display: "flex",
2755
2815
  flexWrap: "wrap",
2756
2816
  gap: `0 ${t.block.spacing}px`,
@@ -2762,7 +2822,7 @@ var Fi = {
2762
2822
  function a(e) {
2763
2823
  return e || t.block.linkColor || t.block.color;
2764
2824
  }
2765
- return (t, o) => (O(), S("div", qi, [i.value ? (O(), S("div", {
2825
+ return (t, o) => (O(), S("div", Ji, [i.value ? (O(), S("div", {
2766
2826
  key: 0,
2767
2827
  style: u(r.value)
2768
2828
  }, [(O(!0), S(M, null, D(e.block.items, (t, n) => (O(), S(M, { key: t.id }, [x("a", {
@@ -2774,15 +2834,15 @@ var Fi = {
2774
2834
  textDecoration: t.underline ? "underline" : "none"
2775
2835
  }),
2776
2836
  onClick: o[0] ||= L(() => {}, ["prevent"])
2777
- }, [w(Nr, { text: t.text || "..." }, null, 8, ["text"])], 12, Ji), n < e.block.items.length - 1 ? (O(), S("span", {
2837
+ }, [w(Pr, { text: t.text || "..." }, null, 8, ["text"])], 12, Yi), n < e.block.items.length - 1 ? (O(), S("span", {
2778
2838
  key: 0,
2779
2839
  style: u({
2780
2840
  color: e.block.separatorColor,
2781
2841
  padding: `0 ${e.block.spacing}px`
2782
2842
  })
2783
- }, k(e.block.separator), 5)) : F("", !0)], 64))), 128))], 4)) : (O(), S("div", Yi, [w(N(Wr), { size: 16 }), x("span", null, k(N(n).menu.addLinks), 1)]))]));
2843
+ }, k(e.block.separator), 5)) : F("", !0)], 64))), 128))], 4)) : (O(), S("div", Xi, [w(N(Gr), { size: 16 }), x("span", null, k(N(n).menu.addLinks), 1)]))]));
2784
2844
  }
2785
- }), Zi = /* @__PURE__ */ new Set([
2845
+ }), Qi = /* @__PURE__ */ new Set([
2786
2846
  "http",
2787
2847
  "https",
2788
2848
  "mailto",
@@ -2792,7 +2852,7 @@ var Fi = {
2792
2852
  "sms",
2793
2853
  "xmpp",
2794
2854
  "cid"
2795
- ]), Qi = /* @__PURE__ */ new Set([
2855
+ ]), $i = /* @__PURE__ */ new Set([
2796
2856
  "SCRIPT",
2797
2857
  "STYLE",
2798
2858
  "IFRAME",
@@ -2802,7 +2862,7 @@ var Fi = {
2802
2862
  "META",
2803
2863
  "BASE",
2804
2864
  "FORM"
2805
- ]), $i = /* @__PURE__ */ new Set([
2865
+ ]), ea = /* @__PURE__ */ new Set([
2806
2866
  "href",
2807
2867
  "xlink:href",
2808
2868
  "formaction",
@@ -2811,16 +2871,16 @@ var Fi = {
2811
2871
  "background",
2812
2872
  "poster"
2813
2873
  ]);
2814
- function ea(e, t) {
2874
+ function ta(e, t) {
2815
2875
  let n = e.replace(/[\t\n\r]/g, "").replace(/^[\u0000-\u0020]+/, "").trimEnd();
2816
2876
  if (!n || n.startsWith("#")) return !0;
2817
2877
  let r = /^([a-z][a-z0-9+.-]*):/i.exec(n);
2818
2878
  if (!r) return !0;
2819
2879
  let i = r[1].toLowerCase();
2820
- return Zi.has(i) ? !0 : t && i === "data" ? /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i.test(n) : !1;
2880
+ return Qi.has(i) ? !0 : t && i === "data" ? /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i.test(n) : !1;
2821
2881
  }
2822
- function ta(e) {
2823
- if (Qi.has(e.tagName)) {
2882
+ function na(e) {
2883
+ if ($i.has(e.tagName)) {
2824
2884
  e.remove();
2825
2885
  return;
2826
2886
  }
@@ -2832,29 +2892,29 @@ function ta(e) {
2832
2892
  e.removeAttribute(n);
2833
2893
  continue;
2834
2894
  }
2835
- if ($i.has(t)) {
2836
- ea(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n);
2895
+ if (ea.has(t)) {
2896
+ ta(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n);
2837
2897
  continue;
2838
2898
  }
2839
2899
  if (t === "src") {
2840
- ea(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n);
2900
+ ta(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n);
2841
2901
  continue;
2842
2902
  }
2843
2903
  t === "srcdoc" && e.removeAttribute(n);
2844
2904
  }
2845
2905
  let n = Array.from(e.children);
2846
- for (let e of n) ta(e);
2906
+ for (let e of n) na(e);
2847
2907
  }
2848
- function na(e) {
2908
+ function ra(e) {
2849
2909
  if (typeof DOMParser > "u") return e;
2850
2910
  let t = new DOMParser().parseFromString(`<!doctype html><body>${e}</body>`, "text/html").body, n = Array.from(t.children);
2851
- for (let e of n) ta(e);
2911
+ for (let e of n) na(e);
2852
2912
  return t.innerHTML;
2853
2913
  }
2854
2914
  //#endregion
2855
2915
  //#region src/composables/useEditableTextBlock.ts
2856
- function ra(e) {
2857
- let t = p(it, []), n = p(It, null), { syntax: r } = sn(), i = P(() => n?.value ? fe(e(), t) : Ke(e(), t)), a = P(() => na(ye(i.value, r))), o = _(!1), s = _(null), { top: c, left: l } = et(s), { toLocal: u } = Xt(), d = P(() => u({
2916
+ function ia(e) {
2917
+ let t = p(at, []), n = p(Lt, null), { syntax: r } = cn(), i = P(() => n?.value ? Se(e(), t) : se(e(), t)), a = P(() => ra(qe(i.value, r))), o = _(!1), s = _(null), { top: c, left: l } = tt(s), { toLocal: u } = Zt(), d = P(() => u({
2858
2918
  top: c.value - 8,
2859
2919
  left: l.value
2860
2920
  }));
@@ -2875,14 +2935,14 @@ function ra(e) {
2875
2935
  }
2876
2936
  //#endregion
2877
2937
  //#region src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
2878
- var ia = ["innerHTML"], aa = /* @__PURE__ */ I({
2938
+ var aa = ["innerHTML"], oa = /* @__PURE__ */ I({
2879
2939
  __name: "ParagraphBlock",
2880
2940
  props: {
2881
2941
  block: {},
2882
2942
  viewport: {}
2883
2943
  },
2884
2944
  setup(e) {
2885
- let t = e, n = y(() => import("./ParagraphEditor-C87tkmtE.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = ra(() => t.block.content);
2945
+ let t = e, n = y(() => import("./ParagraphEditor-CT2AdMdZ.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = ia(() => t.block.content);
2886
2946
  return (t, l) => (O(), S("div", {
2887
2947
  ref_key: "blockRef",
2888
2948
  ref: i,
@@ -2901,54 +2961,54 @@ var ia = ["innerHTML"], aa = /* @__PURE__ */ I({
2901
2961
  key: 1,
2902
2962
  class: "tpl-text-content tpl:outline-none",
2903
2963
  innerHTML: N(o)
2904
- }, null, 8, ia))], 544));
2964
+ }, null, 8, aa))], 544));
2905
2965
  }
2906
2966
  });
2907
2967
  //#endregion
2908
2968
  //#region src/utils/blockComponentResolver.ts
2909
- function oa(e) {
2969
+ function sa(e) {
2910
2970
  let t = { fontFamily: e.fontFamily };
2911
2971
  return e.textColor && (t.color = e.textColor), e.linkColor && (t["--tpl-doc-link-color"] = e.linkColor), e.linkUnderline && (t["--tpl-doc-link-underline"] = "underline"), t;
2912
2972
  }
2913
- function sa(e, t, n) {
2973
+ function ca(e, t, n) {
2914
2974
  if (t) {
2915
2975
  let n = t.getComponent(e);
2916
2976
  if (n) return n;
2917
2977
  }
2918
2978
  return n[e.type] ?? null;
2919
2979
  }
2920
- function ca(e) {
2980
+ function la(e) {
2921
2981
  let { padding: t, backgroundColor: n } = e.styles, r = {
2922
2982
  padding: `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`,
2923
2983
  backgroundColor: n || "transparent"
2924
2984
  };
2925
- return (e.type === "paragraph" || e.type === "title") && (r["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? je.paragraphGap : je.paragraphGap}px`), e.type === "section" && e.borderRadius && e.borderRadius > 0 && (r.borderRadius = `${e.borderRadius}px`), r;
2985
+ return (e.type === "paragraph" || e.type === "title") && (r["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? Me.paragraphGap : Me.paragraphGap}px`), e.type === "section" && e.borderRadius && e.borderRadius > 0 && (r.borderRadius = `${e.borderRadius}px`), r;
2926
2986
  }
2927
- function la(e) {
2987
+ function ua(e) {
2928
2988
  if (e.type !== "section" || !e.wrapper) return null;
2929
2989
  let t = e.wrapper, n = {};
2930
2990
  return t.backgroundColor && (n.backgroundColor = t.backgroundColor), t.padding && (n.padding = `${t.padding.top}px ${t.padding.right}px ${t.padding.bottom}px ${t.padding.left}px`), t.borderRadius && t.borderRadius > 0 && (n.borderRadius = `${t.borderRadius}px`), n;
2931
2991
  }
2932
2992
  //#endregion
2933
2993
  //#region src/components/blocks/BlockWrapper.vue?vue&type=script&setup=true&lang.ts
2934
- var ua = [
2994
+ var da = [
2935
2995
  "data-block-id",
2936
2996
  "data-block-type",
2937
2997
  "data-tpl-picked"
2938
- ], da = ["aria-label"], fa = [
2998
+ ], fa = ["aria-label"], pa = [
2939
2999
  "aria-label",
2940
3000
  "aria-pressed",
2941
3001
  "title"
2942
- ], pa = ["aria-label", "title"], ma = ["aria-label", "title"], ha = ["aria-label", "title"], ga = {
3002
+ ], ma = ["aria-label", "title"], ha = ["aria-label", "title"], ga = ["aria-label", "title"], _a = {
2943
3003
  key: 1,
2944
3004
  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"
2945
- }, _a = { 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)]" }, va = {
3005
+ }, va = { 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)]" }, ya = {
2946
3006
  key: 2,
2947
3007
  class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
2948
- }, ya = ["aria-label", "title"], ba = {
3008
+ }, ba = ["aria-label", "title"], xa = {
2949
3009
  key: 3,
2950
3010
  class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
2951
- }, xa = ["aria-label"], Sa = /*#__PURE__*/ an(/* @__PURE__ */ I({
3011
+ }, Sa = ["aria-label"], Ca = /*#__PURE__*/ on(/* @__PURE__ */ I({
2952
3012
  __name: "BlockWrapper",
2953
3013
  props: {
2954
3014
  block: {},
@@ -2960,7 +3020,7 @@ var ua = [
2960
3020
  },
2961
3021
  emits: ["select"],
2962
3022
  setup(e, { emit: t }) {
2963
- let n = y(() => import("./BlockIssueBadge-DcyHTAqw.js")), i = e, a = t, { t: o, format: s } = Wt(), l = p(Ht, null), d = _(null), f = P(() => l?.liftedBlockId.value === i.block.id), h = P(() => f.value ? s(o.blockActions.dragLifted, { block: i.block.type }) : o.blockActions.drag);
3023
+ let n = y(() => import("./BlockIssueBadge-BGCsJqqM.js")), i = e, a = t, { t: o, format: s } = Gt(), l = p(Ut, null), d = _(null), f = P(() => l?.liftedBlockId.value === i.block.id), h = P(() => f.value ? s(o.blockActions.dragLifted, { block: i.block.type }) : o.blockActions.drag);
2964
3024
  async function g() {
2965
3025
  await m(), d.value?.focus();
2966
3026
  }
@@ -2986,7 +3046,7 @@ var ua = [
2986
3046
  let b = P(() => !i.viewport || !i.block.visibility ? !1 : i.block.visibility[i.viewport] === !1), C = P(() => i.previewMode === !0 && b.value), E = P(() => i.viewport ? {
2987
3047
  desktop: o.viewport.desktop,
2988
3048
  mobile: o.viewport.mobile
2989
- }[i.viewport] ?? i.viewport : ""), D = P(() => !!i.block.displayCondition), A = p(Ct, null), ee = p(Et, null), j = p(Tt, {}), M = P(() => j.savedBlocks?.isPicking.value === !0), te = P(() => !i.nested && j.savedBlocks?.isAvailable.value === !0 && j.savedBlocks?.canCreate.value === !0), I = P(() => i.isSelected && !M.value), ne = P(() => j.comments?.getBlockCount(i.block.id) ?? 0), re = P(() => ca(i.block)), ie = P(() => la(i.block));
3049
+ }[i.viewport] ?? i.viewport : ""), D = P(() => !!i.block.displayCondition), A = p(wt, null), ee = p(Dt, null), j = p(Et, {}), M = P(() => j.savedBlocks?.isPicking.value === !0), te = P(() => !i.nested && j.savedBlocks?.isAvailable.value === !0 && j.savedBlocks?.canCreate.value === !0), I = P(() => i.isSelected && !M.value), ne = P(() => j.comments?.getBlockCount(i.block.id) ?? 0), re = P(() => la(i.block)), ie = P(() => ua(i.block));
2990
3050
  function ae(e) {
2991
3051
  i.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), a("select"));
2992
3052
  }
@@ -3031,61 +3091,61 @@ var ua = [
3031
3091
  "aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
3032
3092
  title: N(o).blockActions.drag,
3033
3093
  onKeydown: v
3034
- }, [w(N(Hr), {
3094
+ }, [w(N(Ur), {
3035
3095
  size: 14,
3036
3096
  "stroke-width": 1.5
3037
- })], 40, fa),
3097
+ })], 40, pa),
3038
3098
  x("button", {
3039
3099
  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",
3040
3100
  "aria-label": N(o).blockActions.duplicate,
3041
3101
  title: N(o).blockActions.duplicate,
3042
3102
  onClick: L(se, ["stop"])
3043
- }, [w(N(zr), {
3103
+ }, [w(N(Br), {
3044
3104
  size: 14,
3045
3105
  "stroke-width": 1.5
3046
- })], 8, pa),
3106
+ })], 8, ma),
3047
3107
  te.value ? (O(), S("button", {
3048
3108
  key: 0,
3049
3109
  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",
3050
3110
  "aria-label": N(o).blockActions.saveAsBlock,
3051
3111
  title: N(o).blockActions.saveAsBlock,
3052
3112
  onClick: L(ce, ["stop"])
3053
- }, [w(N(Ir), {
3113
+ }, [w(N(Lr), {
3054
3114
  size: 14,
3055
3115
  "stroke-width": 1.5
3056
- })], 8, ma)) : F("", !0),
3116
+ })], 8, ha)) : F("", !0),
3057
3117
  x("button", {
3058
3118
  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",
3059
3119
  "aria-label": N(o).blockActions.delete,
3060
3120
  title: N(o).blockActions.delete,
3061
3121
  onClick: L(oe, ["stop"])
3062
- }, [w(N(en), {
3122
+ }, [w(N(tn), {
3063
3123
  size: 14,
3064
3124
  "stroke-width": 1.5
3065
- })], 8, ha)
3066
- ], 8, da)) : F("", !0),
3067
- b.value ? (O(), S("div", ga, [x("span", _a, [w(N(Br), {
3125
+ })], 8, ga)
3126
+ ], 8, fa)) : F("", !0),
3127
+ b.value ? (O(), S("div", _a, [x("span", va, [w(N(Vr), {
3068
3128
  size: 12,
3069
3129
  "stroke-width": 1.5
3070
3130
  }), T(" " + k(N(s)(N(o).blockActions.hiddenOnViewport, { viewport: E.value })), 1)])])) : F("", !0),
3071
- D.value && !b.value ? (O(), S("div", va, [x("button", {
3131
+ D.value && !b.value ? (O(), S("div", ya, [x("button", {
3072
3132
  "data-testid": "condition-toggle",
3073
3133
  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)]",
3074
3134
  "aria-label": N(o).blockActions.conditionToggle,
3075
3135
  title: e.block.displayCondition?.label,
3076
3136
  onClick: L(le, ["stop"])
3077
- }, [w(N(Vr), {
3137
+ }, [w(N(Hr), {
3078
3138
  size: 12,
3079
3139
  "stroke-width": 2
3080
- })], 8, ya)])) : F("", !0),
3081
- ne.value > 0 && !b.value ? (O(), S("div", ba, [x("button", {
3140
+ })], 8, ba)])) : F("", !0),
3141
+ ne.value > 0 && !b.value ? (O(), S("div", xa, [x("button", {
3082
3142
  class: "tpl-comment-indicator tpl:flex tpl:min-h-6 tpl:min-w-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-0.5 tpl:rounded-full tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-semibold tpl:transition-colors tpl:bg-[var(--tpl-chrome-primary-light)] tpl:text-[var(--tpl-primary)]",
3083
3143
  "aria-label": N(s)(N(o).blockActions.comments, { count: String(ne.value) }),
3084
3144
  onClick: i[0] ||= L((t) => N(j).comments?.openForBlock(e.block.id), ["stop"])
3085
- }, [w(N($t), {
3145
+ }, [w(N(en), {
3086
3146
  size: 12,
3087
3147
  "stroke-width": 2.5
3088
- }), T(" " + k(ne.value), 1)], 8, xa)])) : F("", !0),
3148
+ }), T(" " + k(ne.value), 1)], 8, Sa)])) : F("", !0),
3089
3149
  ie.value ? (O(), S("div", {
3090
3150
  key: 4,
3091
3151
  class: "tpl-section-wrapper",
@@ -3098,31 +3158,31 @@ var ua = [
3098
3158
  class: "tpl-block-content",
3099
3159
  style: u(re.value)
3100
3160
  }, [c(t.$slots, "default", {}, void 0, !0)], 4))
3101
- ], 10, ua));
3161
+ ], 10, da));
3102
3162
  }
3103
3163
  }), [["__scopeId", "data-v-2c239048"]]);
3104
3164
  //#endregion
3105
3165
  //#region src/utils/unwrapParagraph.ts
3106
- function Ca(e) {
3166
+ function wa(e) {
3107
3167
  let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
3108
3168
  return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
3109
3169
  }
3110
3170
  //#endregion
3111
3171
  //#region src/components/blocks/TitleBlock.vue
3112
- var wa = /* @__PURE__ */ I({
3172
+ var Ta = /* @__PURE__ */ I({
3113
3173
  __name: "TitleBlock",
3114
3174
  props: {
3115
3175
  block: {},
3116
3176
  viewport: {}
3117
3177
  },
3118
3178
  setup(e) {
3119
- let t = e, n = y(() => import("./TitleEditor-iNFOisr4.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = ra(() => t.block.content), l = P(() => {
3179
+ let t = e, n = y(() => import("./TitleEditor-pYEUX6lR.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = ia(() => t.block.content), l = P(() => {
3120
3180
  let e = {
3121
- fontSize: `${Re[t.block.level]}px`,
3181
+ fontSize: `${ze[t.block.level]}px`,
3122
3182
  textAlign: t.block.textAlign
3123
3183
  };
3124
3184
  return t.block.color && (e.color = t.block.color), t.block.fontFamily && (e.fontFamily = t.block.fontFamily), e;
3125
- }), f = P(() => `h${t.block.level}`), p = P(() => Ca(o.value));
3185
+ }), f = P(() => `h${t.block.level}`), p = P(() => wa(o.value));
3126
3186
  return (t, o) => (O(), S("div", {
3127
3187
  ref_key: "blockRef",
3128
3188
  ref: i,
@@ -3148,88 +3208,88 @@ var wa = /* @__PURE__ */ I({
3148
3208
  });
3149
3209
  //#endregion
3150
3210
  //#region src/utils/sectionColumnDrop.ts
3151
- function Ta(e) {
3211
+ function Ea(e) {
3152
3212
  return e.dataset.blockType !== "section" && e.dataset.paletteType !== "section";
3153
3213
  }
3154
3214
  //#endregion
3155
3215
  //#region ../../node_modules/.pnpm/vue-draggable-plus@0.6.1_@types+sortablejs@1.15.9/node_modules/vue-draggable-plus/dist/vue-draggable-plus.js
3156
- var Ea = Object.defineProperty, Da = Object.getOwnPropertySymbols, Oa = Object.prototype.hasOwnProperty, ka = Object.prototype.propertyIsEnumerable, Aa = (e, t, n) => t in e ? Ea(e, t, {
3216
+ var Da = Object.defineProperty, Oa = Object.getOwnPropertySymbols, ka = Object.prototype.hasOwnProperty, Aa = Object.prototype.propertyIsEnumerable, ja = (e, t, n) => t in e ? Da(e, t, {
3157
3217
  enumerable: !0,
3158
3218
  configurable: !0,
3159
3219
  writable: !0,
3160
3220
  value: n
3161
- }) : e[t] = n, ja = (e, t) => {
3162
- for (var n in t ||= {}) Oa.call(t, n) && Aa(e, n, t[n]);
3163
- if (Da) for (var n of Da(t)) ka.call(t, n) && Aa(e, n, t[n]);
3221
+ }) : e[t] = n, Ma = (e, t) => {
3222
+ for (var n in t ||= {}) ka.call(t, n) && ja(e, n, t[n]);
3223
+ if (Oa) for (var n of Oa(t)) Aa.call(t, n) && ja(e, n, t[n]);
3164
3224
  return e;
3165
- }, Ma = (e, t) => {
3225
+ }, Na = (e, t) => {
3166
3226
  var n = {};
3167
- for (var r in e) Oa.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3168
- if (e != null && Da) for (var r of Da(e)) t.indexOf(r) < 0 && ka.call(e, r) && (n[r] = e[r]);
3227
+ for (var r in e) ka.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3228
+ if (e != null && Oa) for (var r of Oa(e)) t.indexOf(r) < 0 && Aa.call(e, r) && (n[r] = e[r]);
3169
3229
  return n;
3170
- }, Na = "[vue-draggable-plus]: ";
3171
- function Pa(e) {
3172
- console.warn(Na + e);
3173
- }
3230
+ }, Pa = "[vue-draggable-plus]: ";
3174
3231
  function Fa(e) {
3175
- console.error(Na + e);
3232
+ console.warn(Pa + e);
3233
+ }
3234
+ function Ia(e) {
3235
+ console.error(Pa + e);
3176
3236
  }
3177
- function Ia(e, t, n) {
3237
+ function La(e, t, n) {
3178
3238
  return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
3179
3239
  }
3180
- function La(e) {
3240
+ function Ra(e) {
3181
3241
  return e.replace(/-(\w)/g, (e, t) => t ? t.toUpperCase() : "");
3182
3242
  }
3183
- function Ra(e) {
3184
- return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[La(n)] = e[n]), t), {});
3243
+ function za(e) {
3244
+ return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[Ra(n)] = e[n]), t), {});
3185
3245
  }
3186
- function za(e, t) {
3246
+ function Ba(e, t) {
3187
3247
  return Array.isArray(e) && e.splice(t, 1), e;
3188
3248
  }
3189
- function Ba(e, t, n) {
3249
+ function Va(e, t, n) {
3190
3250
  return Array.isArray(e) && e.splice(t, 0, n), e;
3191
3251
  }
3192
- function Va(e) {
3252
+ function Ha(e) {
3193
3253
  return e === void 0;
3194
3254
  }
3195
- function Ha(e) {
3255
+ function Ua(e) {
3196
3256
  return typeof e == "string";
3197
3257
  }
3198
- function Ua(e, t, n) {
3258
+ function Wa(e, t, n) {
3199
3259
  let r = e.children[n];
3200
3260
  e.insertBefore(t, r);
3201
3261
  }
3202
- function Wa(e) {
3262
+ function Ga(e) {
3203
3263
  e.parentNode && e.parentNode.removeChild(e);
3204
3264
  }
3205
- function Ga(e, t = document) {
3265
+ function Ka(e, t = document) {
3206
3266
  let n = null;
3207
- return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || Pa(`Element not found: ${e}`), n;
3267
+ return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || Fa(`Element not found: ${e}`), n;
3208
3268
  }
3209
- function Ka(e, t, n = null) {
3269
+ function qa(e, t, n = null) {
3210
3270
  return function(...r) {
3211
3271
  return e.apply(n, r), t.apply(n, r);
3212
3272
  };
3213
3273
  }
3214
- function qa(e, t) {
3215
- let n = ja({}, e);
3274
+ function Ja(e, t) {
3275
+ let n = Ma({}, e);
3216
3276
  return Object.keys(t).forEach((r) => {
3217
- n[r] ? n[r] = Ka(e[r], t[r]) : n[r] = t[r];
3277
+ n[r] ? n[r] = qa(e[r], t[r]) : n[r] = t[r];
3218
3278
  }), n;
3219
3279
  }
3220
- function Ja(e) {
3280
+ function Ya(e) {
3221
3281
  return e instanceof HTMLElement;
3222
3282
  }
3223
- function Ya(e, t) {
3283
+ function Xa(e, t) {
3224
3284
  Object.keys(e).forEach((n) => {
3225
3285
  t(n, e[n]);
3226
3286
  });
3227
3287
  }
3228
- function Xa(e) {
3288
+ function Za(e) {
3229
3289
  return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
3230
3290
  }
3231
- var Za = Object.assign;
3232
- function Qa(e, t) {
3291
+ var Qa = Object.assign;
3292
+ function $a(e, t) {
3233
3293
  var n = Object.keys(e);
3234
3294
  if (Object.getOwnPropertySymbols) {
3235
3295
  var r = Object.getOwnPropertySymbols(e);
@@ -3239,26 +3299,26 @@ function Qa(e, t) {
3239
3299
  }
3240
3300
  return n;
3241
3301
  }
3242
- function $a(e) {
3302
+ function eo(e) {
3243
3303
  for (var t = 1; t < arguments.length; t++) {
3244
3304
  var n = arguments[t] == null ? {} : arguments[t];
3245
- t % 2 ? Qa(Object(n), !0).forEach(function(t) {
3246
- to(e, t, n[t]);
3247
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Qa(Object(n)).forEach(function(t) {
3305
+ t % 2 ? $a(Object(n), !0).forEach(function(t) {
3306
+ no(e, t, n[t]);
3307
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $a(Object(n)).forEach(function(t) {
3248
3308
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
3249
3309
  });
3250
3310
  }
3251
3311
  return e;
3252
3312
  }
3253
- function eo(e) {
3313
+ function to(e) {
3254
3314
  "@babel/helpers - typeof";
3255
- return eo = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
3315
+ return to = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
3256
3316
  return typeof e;
3257
3317
  } : function(e) {
3258
3318
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
3259
- }, eo(e);
3319
+ }, to(e);
3260
3320
  }
3261
- function to(e, t, n) {
3321
+ function no(e, t, n) {
3262
3322
  return t in e ? Object.defineProperty(e, t, {
3263
3323
  value: n,
3264
3324
  enumerable: !0,
@@ -3266,44 +3326,44 @@ function to(e, t, n) {
3266
3326
  writable: !0
3267
3327
  }) : e[t] = n, e;
3268
3328
  }
3269
- function no() {
3270
- return no = Object.assign || function(e) {
3329
+ function ro() {
3330
+ return ro = Object.assign || function(e) {
3271
3331
  for (var t = 1; t < arguments.length; t++) {
3272
3332
  var n = arguments[t];
3273
3333
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
3274
3334
  }
3275
3335
  return e;
3276
- }, no.apply(this, arguments);
3336
+ }, ro.apply(this, arguments);
3277
3337
  }
3278
- function ro(e, t) {
3338
+ function io(e, t) {
3279
3339
  if (e == null) return {};
3280
3340
  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]);
3281
3341
  return n;
3282
3342
  }
3283
- function io(e, t) {
3343
+ function ao(e, t) {
3284
3344
  if (e == null) return {};
3285
- var n = ro(e, t), r, i;
3345
+ var n = io(e, t), r, i;
3286
3346
  if (Object.getOwnPropertySymbols) {
3287
3347
  var a = Object.getOwnPropertySymbols(e);
3288
3348
  for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
3289
3349
  }
3290
3350
  return n;
3291
3351
  }
3292
- var ao = "1.15.2";
3293
- function oo(e) {
3352
+ var oo = "1.15.2";
3353
+ function so(e) {
3294
3354
  if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
3295
3355
  }
3296
- var so = oo(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), co = oo(/Edge/i), lo = oo(/firefox/i), uo = oo(/safari/i) && !oo(/chrome/i) && !oo(/android/i), fo = oo(/iP(ad|od|hone)/i), po = oo(/chrome/i) && oo(/android/i), mo = {
3356
+ var co = so(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), lo = so(/Edge/i), uo = so(/firefox/i), fo = so(/safari/i) && !so(/chrome/i) && !so(/android/i), po = so(/iP(ad|od|hone)/i), mo = so(/chrome/i) && so(/android/i), ho = {
3297
3357
  capture: !1,
3298
3358
  passive: !1
3299
3359
  };
3300
3360
  function R(e, t, n) {
3301
- e.addEventListener(t, n, !so && mo);
3361
+ e.addEventListener(t, n, !co && ho);
3302
3362
  }
3303
3363
  function z(e, t, n) {
3304
- e.removeEventListener(t, n, !so && mo);
3364
+ e.removeEventListener(t, n, !co && ho);
3305
3365
  }
3306
- function ho(e, t) {
3366
+ function go(e, t) {
3307
3367
  if (t) {
3308
3368
  if (t[0] === ">" && (t = t.substring(1)), e) try {
3309
3369
  if (e.matches) return e.matches(t);
@@ -3315,22 +3375,22 @@ function ho(e, t) {
3315
3375
  return !1;
3316
3376
  }
3317
3377
  }
3318
- function go(e) {
3378
+ function _o(e) {
3319
3379
  return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
3320
3380
  }
3321
- function _o(e, t, n, r) {
3381
+ function vo(e, t, n, r) {
3322
3382
  if (e) {
3323
3383
  n ||= document;
3324
3384
  do {
3325
- if (t != null && (t[0] === ">" ? e.parentNode === n && ho(e, t) : ho(e, t)) || r && e === n) return e;
3385
+ if (t != null && (t[0] === ">" ? e.parentNode === n && go(e, t) : go(e, t)) || r && e === n) return e;
3326
3386
  if (e === n) break;
3327
- } while (e = go(e));
3387
+ } while (e = _o(e));
3328
3388
  }
3329
3389
  return null;
3330
3390
  }
3331
- var vo = /\s+/g;
3391
+ var yo = /\s+/g;
3332
3392
  function B(e, t, n) {
3333
- e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(vo, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(vo, " "));
3393
+ e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(yo, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(yo, " "));
3334
3394
  }
3335
3395
  function V(e, t, n) {
3336
3396
  var r = e && e.style;
@@ -3339,7 +3399,7 @@ function V(e, t, n) {
3339
3399
  !(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
3340
3400
  }
3341
3401
  }
3342
- function yo(e, t) {
3402
+ function bo(e, t) {
3343
3403
  var n = "";
3344
3404
  if (typeof e == "string") n = e;
3345
3405
  else do {
@@ -3349,7 +3409,7 @@ function yo(e, t) {
3349
3409
  var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
3350
3410
  return i && new i(n);
3351
3411
  }
3352
- function bo(e, t, n) {
3412
+ function xo(e, t, n) {
3353
3413
  if (e) {
3354
3414
  var r = e.getElementsByTagName(t), i = 0, a = r.length;
3355
3415
  if (n) for (; i < a; i++) n(r[i], i);
@@ -3357,13 +3417,13 @@ function bo(e, t, n) {
3357
3417
  }
3358
3418
  return [];
3359
3419
  }
3360
- function xo() {
3420
+ function So() {
3361
3421
  return document.scrollingElement || document.documentElement;
3362
3422
  }
3363
3423
  function H(e, t, n, r, i) {
3364
3424
  if (e.getBoundingClientRect || e === window) {
3365
3425
  var a, o, s, c, l, u, d;
3366
- if (e !== window && e.parentNode && e !== xo() ? (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, !so)) do
3426
+ if (e !== window && e.parentNode && e !== So() ? (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, !co)) do
3367
3427
  if (i && i.getBoundingClientRect && (V(i, "transform") !== "none" || n && V(i, "position") !== "static")) {
3368
3428
  var f = i.getBoundingClientRect();
3369
3429
  o -= f.top + parseInt(V(i, "border-top-width")), s -= f.left + parseInt(V(i, "border-left-width")), c = o + a.height, l = s + a.width;
@@ -3371,7 +3431,7 @@ function H(e, t, n, r, i) {
3371
3431
  }
3372
3432
  while (i = i.parentNode);
3373
3433
  if (r && e !== window) {
3374
- var p = yo(i || e), m = p && p.a, h = p && p.d;
3434
+ var p = bo(i || e), m = p && p.a, h = p && p.d;
3375
3435
  p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
3376
3436
  }
3377
3437
  return {
@@ -3384,18 +3444,18 @@ function H(e, t, n, r, i) {
3384
3444
  };
3385
3445
  }
3386
3446
  }
3387
- function So(e, t, n) {
3388
- for (var r = Oo(e, !0), i = H(e)[t]; r;) {
3447
+ function Co(e, t, n) {
3448
+ for (var r = ko(e, !0), i = H(e)[t]; r;) {
3389
3449
  var a = H(r)[n], o = void 0;
3390
3450
  if (o = i >= a, !o) return r;
3391
- if (r === xo()) break;
3392
- r = Oo(r, !1);
3451
+ if (r === So()) break;
3452
+ r = ko(r, !1);
3393
3453
  }
3394
3454
  return !1;
3395
3455
  }
3396
- function Co(e, t, n, r) {
3456
+ function wo(e, t, n, r) {
3397
3457
  for (var i = 0, a = 0, o = e.children; a < o.length;) {
3398
- if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && _o(o[a], n.draggable, e, !1)) {
3458
+ if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && vo(o[a], n.draggable, e, !1)) {
3399
3459
  if (i === t) return o[a];
3400
3460
  i++;
3401
3461
  }
@@ -3403,84 +3463,84 @@ function Co(e, t, n, r) {
3403
3463
  }
3404
3464
  return null;
3405
3465
  }
3406
- function wo(e, t) {
3407
- for (var n = e.lastElementChild; n && (n === Q.ghost || V(n, "display") === "none" || t && !ho(n, t));) n = n.previousElementSibling;
3466
+ function To(e, t) {
3467
+ for (var n = e.lastElementChild; n && (n === Q.ghost || V(n, "display") === "none" || t && !go(n, t));) n = n.previousElementSibling;
3408
3468
  return n || null;
3409
3469
  }
3410
- function To(e, t) {
3470
+ function Eo(e, t) {
3411
3471
  var n = 0;
3412
3472
  if (!e || !e.parentNode) return -1;
3413
- for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || ho(e, t)) && n++;
3473
+ for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || go(e, t)) && n++;
3414
3474
  return n;
3415
3475
  }
3416
- function Eo(e) {
3417
- var t = 0, n = 0, r = xo();
3476
+ function Do(e) {
3477
+ var t = 0, n = 0, r = So();
3418
3478
  if (e) do {
3419
- var i = yo(e), a = i.a, o = i.d;
3479
+ var i = bo(e), a = i.a, o = i.d;
3420
3480
  t += e.scrollLeft * a, n += e.scrollTop * o;
3421
3481
  } while (e !== r && (e = e.parentNode));
3422
3482
  return [t, n];
3423
3483
  }
3424
- function Do(e, t) {
3484
+ function Oo(e, t) {
3425
3485
  for (var n in e) if (e.hasOwnProperty(n)) {
3426
3486
  for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
3427
3487
  }
3428
3488
  return -1;
3429
3489
  }
3430
- function Oo(e, t) {
3431
- if (!e || !e.getBoundingClientRect) return xo();
3490
+ function ko(e, t) {
3491
+ if (!e || !e.getBoundingClientRect) return So();
3432
3492
  var n = e, r = !1;
3433
3493
  do
3434
3494
  if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
3435
3495
  var i = V(n);
3436
3496
  if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
3437
- if (!n.getBoundingClientRect || n === document.body) return xo();
3497
+ if (!n.getBoundingClientRect || n === document.body) return So();
3438
3498
  if (r || t) return n;
3439
3499
  r = !0;
3440
3500
  }
3441
3501
  }
3442
3502
  while (n = n.parentNode);
3443
- return xo();
3503
+ return So();
3444
3504
  }
3445
- function ko(e, t) {
3505
+ function Ao(e, t) {
3446
3506
  if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
3447
3507
  return e;
3448
3508
  }
3449
- function Ao(e, t) {
3509
+ function jo(e, t) {
3450
3510
  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);
3451
3511
  }
3452
- var jo;
3453
- function Mo(e, t) {
3512
+ var Mo;
3513
+ function No(e, t) {
3454
3514
  return function() {
3455
- if (!jo) {
3515
+ if (!Mo) {
3456
3516
  var n = arguments, r = this;
3457
- n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), jo = setTimeout(function() {
3458
- jo = void 0;
3517
+ n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), Mo = setTimeout(function() {
3518
+ Mo = void 0;
3459
3519
  }, t);
3460
3520
  }
3461
3521
  };
3462
3522
  }
3463
- function No() {
3464
- clearTimeout(jo), jo = void 0;
3523
+ function Po() {
3524
+ clearTimeout(Mo), Mo = void 0;
3465
3525
  }
3466
- function Po(e, t, n) {
3526
+ function Fo(e, t, n) {
3467
3527
  e.scrollLeft += t, e.scrollTop += n;
3468
3528
  }
3469
- function Fo(e) {
3529
+ function Io(e) {
3470
3530
  var t = window.Polymer, n = window.jQuery || window.Zepto;
3471
3531
  return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
3472
3532
  }
3473
- function Io(e, t, n) {
3533
+ function Lo(e, t, n) {
3474
3534
  var r = {};
3475
3535
  return Array.from(e.children).forEach(function(i) {
3476
- if (_o(i, t.draggable, e, !1) && !i.animated && i !== n) {
3536
+ if (vo(i, t.draggable, e, !1) && !i.animated && i !== n) {
3477
3537
  var a = H(i);
3478
3538
  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);
3479
3539
  }
3480
3540
  }), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
3481
3541
  }
3482
- var Lo = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
3483
- function Ro() {
3542
+ var Ro = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
3543
+ function zo() {
3484
3544
  var e = [], t;
3485
3545
  return {
3486
3546
  captureAnimationState: function() {
@@ -3490,9 +3550,9 @@ function Ro() {
3490
3550
  target: t,
3491
3551
  rect: H(t)
3492
3552
  });
3493
- var n = $a({}, e[e.length - 1].rect);
3553
+ var n = eo({}, e[e.length - 1].rect);
3494
3554
  if (t.thisAnimationDuration) {
3495
- var r = yo(t, !0);
3555
+ var r = bo(t, !0);
3496
3556
  r && (n.top -= r.f, n.left -= r.e);
3497
3557
  }
3498
3558
  t.fromRect = n;
@@ -3503,7 +3563,7 @@ function Ro() {
3503
3563
  e.push(t);
3504
3564
  },
3505
3565
  removeAnimationState: function(t) {
3506
- e.splice(Do(e, { target: t }), 1);
3566
+ e.splice(Oo(e, { target: t }), 1);
3507
3567
  },
3508
3568
  animateAll: function(n) {
3509
3569
  var r = this;
@@ -3513,8 +3573,8 @@ function Ro() {
3513
3573
  }
3514
3574
  var i = !1, a = 0;
3515
3575
  e.forEach(function(e) {
3516
- var t = 0, n = e.target, o = n.fromRect, s = H(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = yo(n, !0);
3517
- d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Ao(c, s) && !Ao(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = Bo(u, c, l, r.options)), Ao(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() {
3576
+ var t = 0, n = e.target, o = n.fromRect, s = H(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = bo(n, !0);
3577
+ d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && jo(c, s) && !jo(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = Vo(u, c, l, r.options)), jo(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() {
3518
3578
  n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
3519
3579
  }, t), n.thisAnimationDuration = t);
3520
3580
  }), clearTimeout(t), i ? t = setTimeout(function() {
@@ -3524,26 +3584,26 @@ function Ro() {
3524
3584
  animate: function(e, t, n, r) {
3525
3585
  if (r) {
3526
3586
  V(e, "transition", ""), V(e, "transform", "");
3527
- var i = yo(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
3528
- e.animatingX = !!s, e.animatingY = !!c, V(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = zo(e), V(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), V(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
3587
+ var i = bo(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
3588
+ e.animatingX = !!s, e.animatingY = !!c, V(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = Bo(e), V(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), V(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
3529
3589
  V(e, "transition", ""), V(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
3530
3590
  }, r);
3531
3591
  }
3532
3592
  }
3533
3593
  };
3534
3594
  }
3535
- function zo(e) {
3595
+ function Bo(e) {
3536
3596
  return e.offsetWidth;
3537
3597
  }
3538
- function Bo(e, t, n, r) {
3598
+ function Vo(e, t, n, r) {
3539
3599
  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;
3540
3600
  }
3541
- var Vo = [], Ho = { initializeByDefault: !0 }, Uo = {
3601
+ var Ho = [], Uo = { initializeByDefault: !0 }, Wo = {
3542
3602
  mount: function(e) {
3543
- for (var t in Ho) Ho.hasOwnProperty(t) && !(t in e) && (e[t] = Ho[t]);
3544
- Vo.forEach(function(t) {
3603
+ for (var t in Uo) Uo.hasOwnProperty(t) && !(t in e) && (e[t] = Uo[t]);
3604
+ Ho.forEach(function(t) {
3545
3605
  if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
3546
- }), Vo.push(e);
3606
+ }), Ho.push(e);
3547
3607
  },
3548
3608
  pluginEvent: function(e, t, n) {
3549
3609
  var r = this;
@@ -3551,16 +3611,16 @@ var Vo = [], Ho = { initializeByDefault: !0 }, Uo = {
3551
3611
  r.eventCanceled = !0;
3552
3612
  };
3553
3613
  var i = e + "Global";
3554
- Vo.forEach(function(r) {
3555
- t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i]($a({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e]($a({ sortable: t }, n)));
3614
+ Ho.forEach(function(r) {
3615
+ t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](eo({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](eo({ sortable: t }, n)));
3556
3616
  });
3557
3617
  },
3558
3618
  initializePlugins: function(e, t, n, r) {
3559
- for (var i in Vo.forEach(function(r) {
3619
+ for (var i in Ho.forEach(function(r) {
3560
3620
  var i = r.pluginName;
3561
3621
  if (e.options[i] || r.initializeByDefault) {
3562
3622
  var a = new r(e, t, e.options);
3563
- a.sortable = e, a.options = e.options, e[i] = a, no(n, a.defaults);
3623
+ a.sortable = e, a.options = e.options, e[i] = a, ro(n, a.defaults);
3564
3624
  }
3565
3625
  }), e.options) if (e.options.hasOwnProperty(i)) {
3566
3626
  var a = this.modifyOption(e, i, e.options[i]);
@@ -3569,56 +3629,56 @@ var Vo = [], Ho = { initializeByDefault: !0 }, Uo = {
3569
3629
  },
3570
3630
  getEventProperties: function(e, t) {
3571
3631
  var n = {};
3572
- return Vo.forEach(function(r) {
3573
- typeof r.eventProperties == "function" && no(n, r.eventProperties.call(t[r.pluginName], e));
3632
+ return Ho.forEach(function(r) {
3633
+ typeof r.eventProperties == "function" && ro(n, r.eventProperties.call(t[r.pluginName], e));
3574
3634
  }), n;
3575
3635
  },
3576
3636
  modifyOption: function(e, t, n) {
3577
3637
  var r;
3578
- return Vo.forEach(function(i) {
3638
+ return Ho.forEach(function(i) {
3579
3639
  e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
3580
3640
  }), r;
3581
3641
  }
3582
3642
  };
3583
- function Wo(e) {
3643
+ function Go(e) {
3584
3644
  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;
3585
- if (t ||= n && n[Lo], t) {
3645
+ if (t ||= n && n[Ro], t) {
3586
3646
  var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
3587
- window.CustomEvent && !so && !co ? h = new CustomEvent(r, {
3647
+ window.CustomEvent && !co && !lo ? h = new CustomEvent(r, {
3588
3648
  bubbles: !0,
3589
3649
  cancelable: !0
3590
3650
  }) : (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;
3591
- var v = $a($a({}, m), Uo.getEventProperties(r, t));
3651
+ var v = eo(eo({}, m), Wo.getEventProperties(r, t));
3592
3652
  for (var y in v) h[y] = v[y];
3593
3653
  n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
3594
3654
  }
3595
3655
  }
3596
- var Go = ["evt"], U = function(e, t) {
3597
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = io(n, Go);
3598
- Uo.pluginEvent.bind(Q)(e, t, $a({
3656
+ var Ko = ["evt"], U = function(e, t) {
3657
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = ao(n, Ko);
3658
+ Wo.pluginEvent.bind(Q)(e, t, eo({
3599
3659
  dragEl: G,
3600
3660
  parentEl: K,
3601
3661
  ghostEl: q,
3602
3662
  rootEl: J,
3603
- nextEl: Ko,
3604
- lastDownEl: qo,
3663
+ nextEl: qo,
3664
+ lastDownEl: Jo,
3605
3665
  cloneEl: Y,
3606
- cloneHidden: Jo,
3607
- dragStarted: ls,
3666
+ cloneHidden: Yo,
3667
+ dragStarted: us,
3608
3668
  putSortable: X,
3609
3669
  activeSortable: Q.active,
3610
3670
  originalEvent: r,
3611
- oldIndex: Yo,
3612
- oldDraggableIndex: Zo,
3613
- newIndex: Xo,
3614
- newDraggableIndex: Qo,
3615
- hideGhostForTarget: Ds,
3616
- unhideGhostForTarget: Os,
3671
+ oldIndex: Xo,
3672
+ oldDraggableIndex: Qo,
3673
+ newIndex: Zo,
3674
+ newDraggableIndex: $o,
3675
+ hideGhostForTarget: Os,
3676
+ unhideGhostForTarget: ks,
3617
3677
  cloneNowHidden: function() {
3618
- Jo = !0;
3678
+ Yo = !0;
3619
3679
  },
3620
3680
  cloneNowShown: function() {
3621
- Jo = !1;
3681
+ Yo = !1;
3622
3682
  },
3623
3683
  dispatchSortableEvent: function(e) {
3624
3684
  W({
@@ -3630,45 +3690,45 @@ var Go = ["evt"], U = function(e, t) {
3630
3690
  }, i));
3631
3691
  };
3632
3692
  function W(e) {
3633
- Wo($a({
3693
+ Go(eo({
3634
3694
  putSortable: X,
3635
3695
  cloneEl: Y,
3636
3696
  targetEl: G,
3637
3697
  rootEl: J,
3638
- oldIndex: Yo,
3639
- oldDraggableIndex: Zo,
3640
- newIndex: Xo,
3641
- newDraggableIndex: Qo
3698
+ oldIndex: Xo,
3699
+ oldDraggableIndex: Qo,
3700
+ newIndex: Zo,
3701
+ newDraggableIndex: $o
3642
3702
  }, e));
3643
3703
  }
3644
- var G, K, q, J, Ko, qo, Y, Jo, Yo, Xo, Zo, Qo, $o, X, es = !1, ts = !1, ns = [], rs, is, as, os, ss, cs, ls, us, ds, fs = !1, ps = !1, ms, Z, hs = [], gs = !1, _s = [], vs = typeof document < "u", ys = fo, bs = co || so ? "cssFloat" : "float", xs = vs && !po && !fo && "draggable" in document.createElement("div"), Ss = function() {
3645
- if (vs) {
3646
- if (so) return !1;
3704
+ var G, K, q, J, qo, Jo, Y, Yo, Xo, Zo, Qo, $o, es, X, ts = !1, ns = !1, rs = [], is, as, os, ss, cs, ls, us, ds, fs, ps = !1, ms = !1, hs, Z, gs = [], _s = !1, vs = [], ys = typeof document < "u", bs = po, xs = lo || co ? "cssFloat" : "float", Ss = ys && !mo && !po && "draggable" in document.createElement("div"), Cs = function() {
3705
+ if (ys) {
3706
+ if (co) return !1;
3647
3707
  var e = document.createElement("x");
3648
3708
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
3649
3709
  }
3650
- }(), Cs = function(e, t) {
3651
- var n = V(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = Co(e, 0, t), a = Co(e, 1, t), o = i && V(i), s = a && V(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + H(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + H(a).width;
3710
+ }(), ws = function(e, t) {
3711
+ var n = V(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = wo(e, 0, t), a = wo(e, 1, t), o = i && V(i), s = a && V(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + H(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + H(a).width;
3652
3712
  if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
3653
3713
  if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
3654
3714
  if (i && o.float && o.float !== "none") {
3655
3715
  var u = o.float === "left" ? "left" : "right";
3656
3716
  return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
3657
3717
  }
3658
- return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[bs] === "none" || a && n[bs] === "none" && c + l > r) ? "vertical" : "horizontal";
3659
- }, ws = function(e, t, n) {
3718
+ return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[xs] === "none" || a && n[xs] === "none" && c + l > r) ? "vertical" : "horizontal";
3719
+ }, Ts = function(e, t, n) {
3660
3720
  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;
3661
3721
  return r === o || i === s || r + a / 2 === o + c / 2;
3662
- }, Ts = function(e, t) {
3722
+ }, Es = function(e, t) {
3663
3723
  var n;
3664
- return ns.some(function(r) {
3665
- var i = r[Lo].options.emptyInsertThreshold;
3666
- if (i && !wo(r)) {
3724
+ return rs.some(function(r) {
3725
+ var i = r[Ro].options.emptyInsertThreshold;
3726
+ if (i && !To(r)) {
3667
3727
  var a = H(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
3668
3728
  if (o && s) return n = r;
3669
3729
  }
3670
3730
  }), n;
3671
- }, Es = function(e) {
3731
+ }, Ds = function(e) {
3672
3732
  function t(e, n) {
3673
3733
  return function(r, i, a, o) {
3674
3734
  var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
@@ -3681,31 +3741,31 @@ var G, K, q, J, Ko, qo, Y, Jo, Yo, Xo, Zo, Qo, $o, X, es = !1, ts = !1, ns = [],
3681
3741
  };
3682
3742
  }
3683
3743
  var n = {}, r = e.group;
3684
- (!r || eo(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;
3685
- }, Ds = function() {
3686
- !Ss && q && V(q, "display", "none");
3744
+ (!r || to(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;
3687
3745
  }, Os = function() {
3688
- !Ss && q && V(q, "display", "");
3746
+ !Cs && q && V(q, "display", "none");
3747
+ }, ks = function() {
3748
+ !Cs && q && V(q, "display", "");
3689
3749
  };
3690
- vs && !po && document.addEventListener("click", function(e) {
3691
- if (ts) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), ts = !1, !1;
3750
+ ys && !mo && document.addEventListener("click", function(e) {
3751
+ if (ns) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), ns = !1, !1;
3692
3752
  }, !0);
3693
- var ks = function(e) {
3753
+ var As = function(e) {
3694
3754
  if (G) {
3695
3755
  e = e.touches ? e.touches[0] : e;
3696
- var t = Ts(e.clientX, e.clientY);
3756
+ var t = Es(e.clientX, e.clientY);
3697
3757
  if (t) {
3698
3758
  var n = {};
3699
3759
  for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
3700
- n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[Lo]._onDragOver(n);
3760
+ n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[Ro]._onDragOver(n);
3701
3761
  }
3702
3762
  }
3703
- }, As = function(e) {
3704
- G && G.parentNode[Lo]._isOutsideThisEl(e.target);
3763
+ }, js = function(e) {
3764
+ G && G.parentNode[Ro]._isOutsideThisEl(e.target);
3705
3765
  };
3706
3766
  function Q(e, t) {
3707
3767
  if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
3708
- this.el = e, this.options = t = no({}, t), e[Lo] = this;
3768
+ this.el = e, this.options = t = ro({}, t), e[Ro] = this;
3709
3769
  var n = {
3710
3770
  group: null,
3711
3771
  sort: !0,
@@ -3718,7 +3778,7 @@ function Q(e, t) {
3718
3778
  invertedSwapThreshold: null,
3719
3779
  removeCloneOnHide: !0,
3720
3780
  direction: function() {
3721
- return Cs(e, this.options);
3781
+ return ws(e, this.options);
3722
3782
  },
3723
3783
  ghostClass: "sortable-ghost",
3724
3784
  chosenClass: "sortable-chosen",
@@ -3745,17 +3805,17 @@ function Q(e, t) {
3745
3805
  x: 0,
3746
3806
  y: 0
3747
3807
  },
3748
- supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !uo,
3808
+ supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !fo,
3749
3809
  emptyInsertThreshold: 5
3750
3810
  };
3751
- for (var r in Uo.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
3752
- for (var i in Es(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
3753
- this.nativeDraggable = !t.forceFallback && xs, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? R(e, "pointerdown", this._onTapStart) : (R(e, "mousedown", this._onTapStart), R(e, "touchstart", this._onTapStart)), this.nativeDraggable && (R(e, "dragover", this), R(e, "dragenter", this)), ns.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), no(this, Ro());
3811
+ for (var r in Wo.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
3812
+ for (var i in Ds(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
3813
+ this.nativeDraggable = !t.forceFallback && Ss, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? R(e, "pointerdown", this._onTapStart) : (R(e, "mousedown", this._onTapStart), R(e, "touchstart", this._onTapStart)), this.nativeDraggable && (R(e, "dragover", this), R(e, "dragenter", this)), rs.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), ro(this, zo());
3754
3814
  }
3755
3815
  Q.prototype = {
3756
3816
  constructor: Q,
3757
3817
  _isOutsideThisEl: function(e) {
3758
- !this.el.contains(e) && e !== this.el && (us = null);
3818
+ !this.el.contains(e) && e !== this.el && (ds = null);
3759
3819
  },
3760
3820
  _getDirection: function(e, t) {
3761
3821
  return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, G) : this.options.direction;
@@ -3763,8 +3823,8 @@ Q.prototype = {
3763
3823
  _onTapStart: function(e) {
3764
3824
  if (e.cancelable) {
3765
3825
  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;
3766
- if (Bs(n), !G && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && uo && s && s.tagName.toUpperCase() === "SELECT") && (s = _o(s, r.draggable, n, !1), !(s && s.animated) && qo !== s)) {
3767
- if (Yo = To(s), Zo = To(s, r.draggable), typeof l == "function") {
3826
+ if (Vs(n), !G && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && fo && s && s.tagName.toUpperCase() === "SELECT") && (s = vo(s, r.draggable, n, !1), !(s && s.animated) && Jo !== s)) {
3827
+ if (Xo = Eo(s), Qo = Eo(s, r.draggable), typeof l == "function") {
3768
3828
  if (l.call(this, e, s, this)) {
3769
3829
  W({
3770
3830
  sortable: t,
@@ -3777,7 +3837,7 @@ Q.prototype = {
3777
3837
  return;
3778
3838
  }
3779
3839
  } else if (l && (l = l.split(",").some(function(r) {
3780
- if (r = _o(c, r.trim(), n, !1), r) return W({
3840
+ if (r = vo(c, r.trim(), n, !1), r) return W({
3781
3841
  sortable: t,
3782
3842
  rootEl: r,
3783
3843
  name: "filter",
@@ -3789,7 +3849,7 @@ Q.prototype = {
3789
3849
  i && e.cancelable && e.preventDefault();
3790
3850
  return;
3791
3851
  }
3792
- r.handle && !_o(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
3852
+ r.handle && !vo(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
3793
3853
  }
3794
3854
  }
3795
3855
  },
@@ -3797,23 +3857,23 @@ Q.prototype = {
3797
3857
  var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
3798
3858
  if (n && !G && n.parentNode === i) {
3799
3859
  var c = H(n);
3800
- if (J = i, G = n, K = G.parentNode, Ko = G.nextSibling, qo = n, $o = a.group, Q.dragged = G, rs = {
3860
+ if (J = i, G = n, K = G.parentNode, qo = G.nextSibling, Jo = n, es = a.group, Q.dragged = G, is = {
3801
3861
  target: G,
3802
3862
  clientX: (t || e).clientX,
3803
3863
  clientY: (t || e).clientY
3804
- }, ss = rs.clientX - c.left, cs = rs.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, G.style["will-change"] = "all", s = function() {
3864
+ }, cs = is.clientX - c.left, ls = is.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, G.style["will-change"] = "all", s = function() {
3805
3865
  if (U("delayEnded", r, { evt: e }), Q.eventCanceled) {
3806
3866
  r._onDrop();
3807
3867
  return;
3808
3868
  }
3809
- r._disableDelayedDragEvents(), !lo && r.nativeDraggable && (G.draggable = !0), r._triggerDragStart(e, t), W({
3869
+ r._disableDelayedDragEvents(), !uo && r.nativeDraggable && (G.draggable = !0), r._triggerDragStart(e, t), W({
3810
3870
  sortable: r,
3811
3871
  name: "choose",
3812
3872
  originalEvent: e
3813
3873
  }), B(G, a.chosenClass, !0);
3814
3874
  }, a.ignore.split(",").forEach(function(e) {
3815
- bo(G, e.trim(), Ns);
3816
- }), R(o, "dragover", ks), R(o, "mousemove", ks), R(o, "touchmove", ks), R(o, "mouseup", r._onDrop), R(o, "touchend", r._onDrop), R(o, "touchcancel", r._onDrop), lo && this.nativeDraggable && (this.options.touchStartThreshold = 4, G.draggable = !0), U("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(co || so))) {
3875
+ xo(G, e.trim(), Ps);
3876
+ }), R(o, "dragover", As), R(o, "mousemove", As), R(o, "touchmove", As), R(o, "mouseup", r._onDrop), R(o, "touchend", r._onDrop), R(o, "touchcancel", r._onDrop), uo && this.nativeDraggable && (this.options.touchStartThreshold = 4, G.draggable = !0), U("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(lo || co))) {
3817
3877
  if (Q.eventCanceled) {
3818
3878
  this._onDrop();
3819
3879
  return;
@@ -3827,7 +3887,7 @@ Q.prototype = {
3827
3887
  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();
3828
3888
  },
3829
3889
  _disableDelayedDrag: function() {
3830
- G && Ns(G), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
3890
+ G && Ps(G), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
3831
3891
  },
3832
3892
  _disableDelayedDragEvents: function() {
3833
3893
  var e = this.el.ownerDocument;
@@ -3836,14 +3896,14 @@ Q.prototype = {
3836
3896
  _triggerDragStart: function(e, t) {
3837
3897
  t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? R(document, "pointermove", this._onTouchMove) : t ? R(document, "touchmove", this._onTouchMove) : R(document, "mousemove", this._onTouchMove) : (R(G, "dragend", this), R(J, "dragstart", this._onDragStart));
3838
3898
  try {
3839
- document.selection ? Vs(function() {
3899
+ document.selection ? Hs(function() {
3840
3900
  document.selection.empty();
3841
3901
  }) : window.getSelection().removeAllRanges();
3842
3902
  } catch {}
3843
3903
  },
3844
3904
  _dragStarted: function(e, t) {
3845
- if (es = !1, J && G) {
3846
- U("dragStarted", this, { evt: t }), this.nativeDraggable && R(document, "dragover", As);
3905
+ if (ts = !1, J && G) {
3906
+ U("dragStarted", this, { evt: t }), this.nativeDraggable && R(document, "dragover", js);
3847
3907
  var n = this.options;
3848
3908
  !e && B(G, n.dragClass, !1), B(G, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), W({
3849
3909
  sortable: this,
@@ -3853,33 +3913,33 @@ Q.prototype = {
3853
3913
  } else this._nulling();
3854
3914
  },
3855
3915
  _emulateDragOver: function() {
3856
- if (is) {
3857
- this._lastX = is.clientX, this._lastY = is.clientY, Ds();
3858
- for (var e = document.elementFromPoint(is.clientX, is.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(is.clientX, is.clientY), e !== t);) t = e;
3859
- if (G.parentNode[Lo]._isOutsideThisEl(e), t) do {
3860
- if (t[Lo]) {
3916
+ if (as) {
3917
+ this._lastX = as.clientX, this._lastY = as.clientY, Os();
3918
+ for (var e = document.elementFromPoint(as.clientX, as.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(as.clientX, as.clientY), e !== t);) t = e;
3919
+ if (G.parentNode[Ro]._isOutsideThisEl(e), t) do {
3920
+ if (t[Ro]) {
3861
3921
  var n = void 0;
3862
- if (n = t[Lo]._onDragOver({
3863
- clientX: is.clientX,
3864
- clientY: is.clientY,
3922
+ if (n = t[Ro]._onDragOver({
3923
+ clientX: as.clientX,
3924
+ clientY: as.clientY,
3865
3925
  target: e,
3866
3926
  rootEl: t
3867
3927
  }), n && !this.options.dragoverBubble) break;
3868
3928
  }
3869
3929
  e = t;
3870
3930
  } while (t = t.parentNode);
3871
- Os();
3931
+ ks();
3872
3932
  }
3873
3933
  },
3874
3934
  _onTouchMove: function(e) {
3875
- if (rs) {
3876
- var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q && yo(q, !0), o = q && a && a.a, s = q && a && a.d, c = ys && Z && Eo(Z), l = (i.clientX - rs.clientX + r.x) / (o || 1) + (c ? c[0] - hs[0] : 0) / (o || 1), u = (i.clientY - rs.clientY + r.y) / (s || 1) + (c ? c[1] - hs[1] : 0) / (s || 1);
3877
- if (!Q.active && !es) {
3935
+ if (is) {
3936
+ var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q && bo(q, !0), o = q && a && a.a, s = q && a && a.d, c = bs && Z && Do(Z), l = (i.clientX - is.clientX + r.x) / (o || 1) + (c ? c[0] - gs[0] : 0) / (o || 1), u = (i.clientY - is.clientY + r.y) / (s || 1) + (c ? c[1] - gs[1] : 0) / (s || 1);
3937
+ if (!Q.active && !ts) {
3878
3938
  if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
3879
3939
  this._onDragStart(e, !0);
3880
3940
  }
3881
3941
  if (q) {
3882
- a ? (a.e += l - (as || 0), a.f += u - (os || 0)) : a = {
3942
+ a ? (a.e += l - (os || 0), a.f += u - (ss || 0)) : a = {
3883
3943
  a: 1,
3884
3944
  b: 0,
3885
3945
  c: 0,
@@ -3888,19 +3948,19 @@ Q.prototype = {
3888
3948
  f: u
3889
3949
  };
3890
3950
  var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
3891
- V(q, "webkitTransform", d), V(q, "mozTransform", d), V(q, "msTransform", d), V(q, "transform", d), as = l, os = u, is = i;
3951
+ V(q, "webkitTransform", d), V(q, "mozTransform", d), V(q, "msTransform", d), V(q, "transform", d), os = l, ss = u, as = i;
3892
3952
  }
3893
3953
  e.cancelable && e.preventDefault();
3894
3954
  }
3895
3955
  },
3896
3956
  _appendGhost: function() {
3897
3957
  if (!q) {
3898
- var e = this.options.fallbackOnBody ? document.body : J, t = H(G, !0, ys, !0, e), n = this.options;
3899
- if (ys) {
3958
+ var e = this.options.fallbackOnBody ? document.body : J, t = H(G, !0, bs, !0, e), n = this.options;
3959
+ if (bs) {
3900
3960
  for (Z = e; V(Z, "position") === "static" && V(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
3901
- Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = xo()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = xo(), hs = Eo(Z);
3961
+ Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = So()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = So(), gs = Do(Z);
3902
3962
  }
3903
- q = G.cloneNode(!0), B(q, n.ghostClass, !1), B(q, n.fallbackClass, !0), B(q, n.dragClass, !0), V(q, "transition", ""), V(q, "transform", ""), V(q, "box-sizing", "border-box"), V(q, "margin", 0), V(q, "top", t.top), V(q, "left", t.left), V(q, "width", t.width), V(q, "height", t.height), V(q, "opacity", "0.8"), V(q, "position", ys ? "absolute" : "fixed"), V(q, "zIndex", "100000"), V(q, "pointerEvents", "none"), Q.ghost = q, e.appendChild(q), V(q, "transform-origin", ss / parseInt(q.style.width) * 100 + "% " + cs / parseInt(q.style.height) * 100 + "%");
3963
+ q = G.cloneNode(!0), B(q, n.ghostClass, !1), B(q, n.fallbackClass, !0), B(q, n.dragClass, !0), V(q, "transition", ""), V(q, "transform", ""), V(q, "box-sizing", "border-box"), V(q, "margin", 0), V(q, "top", t.top), V(q, "left", t.left), V(q, "width", t.width), V(q, "height", t.height), V(q, "opacity", "0.8"), V(q, "position", bs ? "absolute" : "fixed"), V(q, "zIndex", "100000"), V(q, "pointerEvents", "none"), Q.ghost = q, e.appendChild(q), V(q, "transform-origin", cs / parseInt(q.style.width) * 100 + "% " + ls / parseInt(q.style.height) * 100 + "%");
3904
3964
  }
3905
3965
  },
3906
3966
  _onDragStart: function(e, t) {
@@ -3909,18 +3969,18 @@ Q.prototype = {
3909
3969
  this._onDrop();
3910
3970
  return;
3911
3971
  }
3912
- U("setupClone", this), Q.eventCanceled || (Y = Fo(G), Y.removeAttribute("id"), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), B(Y, this.options.chosenClass, !1), Q.clone = Y), n.cloneId = Vs(function() {
3972
+ U("setupClone", this), Q.eventCanceled || (Y = Io(G), Y.removeAttribute("id"), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), B(Y, this.options.chosenClass, !1), Q.clone = Y), n.cloneId = Hs(function() {
3913
3973
  U("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || J.insertBefore(Y, G), n._hideClone(), W({
3914
3974
  sortable: n,
3915
3975
  name: "clone"
3916
3976
  }));
3917
- }), !t && B(G, i.dragClass, !0), t ? (ts = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (z(document, "mouseup", n._onDrop), z(document, "touchend", n._onDrop), z(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, G)), R(document, "drop", n), V(G, "transform", "translateZ(0)")), es = !0, n._dragStartId = Vs(n._dragStarted.bind(n, t, e)), R(document, "selectstart", n), ls = !0, uo && V(document.body, "user-select", "none");
3977
+ }), !t && B(G, i.dragClass, !0), t ? (ns = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (z(document, "mouseup", n._onDrop), z(document, "touchend", n._onDrop), z(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, G)), R(document, "drop", n), V(G, "transform", "translateZ(0)")), ts = !0, n._dragStartId = Hs(n._dragStarted.bind(n, t, e)), R(document, "selectstart", n), us = !0, fo && V(document.body, "user-select", "none");
3918
3978
  },
3919
3979
  _onDragOver: function(e) {
3920
- var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = $o === s, u = o.sort, d = X || c, f, p = this, m = !1;
3921
- if (gs) return;
3980
+ var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = es === s, u = o.sort, d = X || c, f, p = this, m = !1;
3981
+ if (_s) return;
3922
3982
  function h(o, s) {
3923
- U(o, p, $a({
3983
+ U(o, p, eo({
3924
3984
  evt: e,
3925
3985
  isOwner: l,
3926
3986
  axis: f ? "vertical" : "horizontal",
@@ -3932,7 +3992,7 @@ Q.prototype = {
3932
3992
  target: n,
3933
3993
  completed: _,
3934
3994
  onMove: function(n, i) {
3935
- return Ms(J, t, G, r, n, H(n), e, i);
3995
+ return Ns(J, t, G, r, n, H(n), e, i);
3936
3996
  },
3937
3997
  changed: v
3938
3998
  }, s));
@@ -3943,48 +4003,48 @@ Q.prototype = {
3943
4003
  function _(r) {
3944
4004
  return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (B(G, X ? X.options.ghostClass : c.options.ghostClass, !1), B(G, o.ghostClass, !0)), X !== p && p !== Q.active ? X = p : p === Q.active && X && (X = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
3945
4005
  h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
3946
- }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (us = null), !o.dragoverBubble && !e.rootEl && n !== document && (G.parentNode[Lo]._isOutsideThisEl(e.target), !r && ks(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
4006
+ }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (ds = null), !o.dragoverBubble && !e.rootEl && n !== document && (G.parentNode[Ro]._isOutsideThisEl(e.target), !r && As(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
3947
4007
  }
3948
4008
  function v() {
3949
- Xo = To(G), Qo = To(G, o.draggable), W({
4009
+ Zo = Eo(G), $o = Eo(G, o.draggable), W({
3950
4010
  sortable: p,
3951
4011
  name: "change",
3952
4012
  toEl: t,
3953
- newIndex: Xo,
3954
- newDraggableIndex: Qo,
4013
+ newIndex: Zo,
4014
+ newDraggableIndex: $o,
3955
4015
  originalEvent: e
3956
4016
  });
3957
4017
  }
3958
- if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = _o(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
4018
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = vo(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
3959
4019
  if (G.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
3960
- if (ts = !1, c && !o.disabled && (l ? u || (a = K !== J) : X === this || (this.lastPutMode = $o.checkPull(this, c, G, e)) && s.checkPut(this, c, G, e))) {
4020
+ if (ns = !1, c && !o.disabled && (l ? u || (a = K !== J) : X === this || (this.lastPutMode = es.checkPull(this, c, G, e)) && s.checkPut(this, c, G, e))) {
3961
4021
  if (f = this._getDirection(e, n) === "vertical", r = H(G), h("dragOverValid"), Q.eventCanceled) return m;
3962
- if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (Ko ? J.insertBefore(G, Ko) : J.appendChild(G)), _(!0);
3963
- var y = wo(t, o.draggable);
3964
- if (!y || Is(e, f, this) && !y.animated) {
4022
+ if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (qo ? J.insertBefore(G, qo) : J.appendChild(G)), _(!0);
4023
+ var y = To(t, o.draggable);
4024
+ if (!y || Ls(e, f, this) && !y.animated) {
3965
4025
  if (y === G) return _(!1);
3966
- if (y && t === e.target && (n = y), n && (i = H(n)), Ms(J, t, G, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(G, y.nextSibling) : t.appendChild(G), K = t, v(), _(!0);
3967
- } else if (y && Fs(e, f, this)) {
3968
- var b = Co(t, 0, o, !0);
4026
+ if (y && t === e.target && (n = y), n && (i = H(n)), Ns(J, t, G, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(G, y.nextSibling) : t.appendChild(G), K = t, v(), _(!0);
4027
+ } else if (y && Is(e, f, this)) {
4028
+ var b = wo(t, 0, o, !0);
3969
4029
  if (b === G) return _(!1);
3970
- if (n = b, i = H(n), Ms(J, t, G, r, n, i, e, !1) !== !1) return g(), t.insertBefore(G, b), K = t, v(), _(!0);
4030
+ if (n = b, i = H(n), Ns(J, t, G, r, n, i, e, !1) !== !1) return g(), t.insertBefore(G, b), K = t, v(), _(!0);
3971
4031
  } else if (n.parentNode === t) {
3972
4032
  i = H(n);
3973
- var x = 0, S, C = G.parentNode !== t, w = !ws(G.animated && G.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = So(n, "top", "top") || So(G, "top", "top"), D = E ? E.scrollTop : void 0;
3974
- us !== n && (S = i[T], fs = !1, ps = !w && o.invertSwap || C), x = Ls(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, ps, us === n);
4033
+ var x = 0, S, C = G.parentNode !== t, w = !Ts(G.animated && G.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = Co(n, "top", "top") || Co(G, "top", "top"), D = E ? E.scrollTop : void 0;
4034
+ ds !== n && (S = i[T], ps = !1, ms = !w && o.invertSwap || C), x = Rs(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, ms, ds === n);
3975
4035
  var O;
3976
4036
  if (x !== 0) {
3977
- var k = To(G);
4037
+ var k = Eo(G);
3978
4038
  do
3979
4039
  k -= x, O = K.children[k];
3980
4040
  while (O && (V(O, "display") === "none" || O === q));
3981
4041
  }
3982
4042
  if (x === 0 || O === n) return _(!1);
3983
- us = n, ds = x;
4043
+ ds = n, fs = x;
3984
4044
  var A = n.nextElementSibling, ee = !1;
3985
4045
  ee = x === 1;
3986
- var j = Ms(J, t, G, r, n, i, e, ee);
3987
- if (j !== !1) return (j === 1 || j === -1) && (ee = j === 1), gs = !0, setTimeout(Ps, 30), g(), ee && !A ? t.appendChild(G) : n.parentNode.insertBefore(G, ee ? A : n), E && Po(E, 0, D - E.scrollTop), K = G.parentNode, S !== void 0 && !ps && (ms = Math.abs(S - H(n)[T])), v(), _(!0);
4046
+ var j = Ns(J, t, G, r, n, i, e, ee);
4047
+ if (j !== !1) return (j === 1 || j === -1) && (ee = j === 1), _s = !0, setTimeout(Fs, 30), g(), ee && !A ? t.appendChild(G) : n.parentNode.insertBefore(G, ee ? A : n), E && Fo(E, 0, D - E.scrollTop), K = G.parentNode, S !== void 0 && !ms && (hs = Math.abs(S - H(n)[T])), v(), _(!0);
3988
4048
  }
3989
4049
  if (t.contains(G)) return _(!1);
3990
4050
  }
@@ -3992,7 +4052,7 @@ Q.prototype = {
3992
4052
  },
3993
4053
  _ignoreWhileAnimating: null,
3994
4054
  _offMoveEvents: function() {
3995
- z(document, "mousemove", this._onTouchMove), z(document, "touchmove", this._onTouchMove), z(document, "pointermove", this._onTouchMove), z(document, "dragover", ks), z(document, "mousemove", ks), z(document, "touchmove", ks);
4055
+ z(document, "mousemove", this._onTouchMove), z(document, "touchmove", this._onTouchMove), z(document, "pointermove", this._onTouchMove), z(document, "dragover", As), z(document, "mousemove", As), z(document, "touchmove", As);
3996
4056
  },
3997
4057
  _offUpEvents: function() {
3998
4058
  var e = this.el.ownerDocument;
@@ -4000,18 +4060,18 @@ Q.prototype = {
4000
4060
  },
4001
4061
  _onDrop: function(e) {
4002
4062
  var t = this.el, n = this.options;
4003
- if (Xo = To(G), Qo = To(G, n.draggable), U("drop", this, { evt: e }), K = G && G.parentNode, Xo = To(G), Qo = To(G, n.draggable), Q.eventCanceled) {
4063
+ if (Zo = Eo(G), $o = Eo(G, n.draggable), U("drop", this, { evt: e }), K = G && G.parentNode, Zo = Eo(G), $o = Eo(G, n.draggable), Q.eventCanceled) {
4004
4064
  this._nulling();
4005
4065
  return;
4006
4066
  }
4007
- es = !1, ps = !1, fs = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Hs(this.cloneId), Hs(this._dragStartId), this.nativeDraggable && (z(document, "drop", this), z(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), uo && V(document.body, "user-select", ""), V(G, "transform", ""), e && (ls && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), q && q.parentNode && q.parentNode.removeChild(q), (J === K || X && X.lastPutMode !== "clone") && Y && Y.parentNode && Y.parentNode.removeChild(Y), G && (this.nativeDraggable && z(G, "dragend", this), Ns(G), G.style["will-change"] = "", ls && !es && B(G, X ? X.options.ghostClass : this.options.ghostClass, !1), B(G, this.options.chosenClass, !1), W({
4067
+ ts = !1, ms = !1, ps = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Us(this.cloneId), Us(this._dragStartId), this.nativeDraggable && (z(document, "drop", this), z(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), fo && V(document.body, "user-select", ""), V(G, "transform", ""), e && (us && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), q && q.parentNode && q.parentNode.removeChild(q), (J === K || X && X.lastPutMode !== "clone") && Y && Y.parentNode && Y.parentNode.removeChild(Y), G && (this.nativeDraggable && z(G, "dragend", this), Ps(G), G.style["will-change"] = "", us && !ts && B(G, X ? X.options.ghostClass : this.options.ghostClass, !1), B(G, this.options.chosenClass, !1), W({
4008
4068
  sortable: this,
4009
4069
  name: "unchoose",
4010
4070
  toEl: K,
4011
4071
  newIndex: null,
4012
4072
  newDraggableIndex: null,
4013
4073
  originalEvent: e
4014
- }), J === K ? Xo !== Yo && Xo >= 0 && (W({
4074
+ }), J === K ? Zo !== Xo && Zo >= 0 && (W({
4015
4075
  sortable: this,
4016
4076
  name: "update",
4017
4077
  toEl: K,
@@ -4021,7 +4081,7 @@ Q.prototype = {
4021
4081
  name: "sort",
4022
4082
  toEl: K,
4023
4083
  originalEvent: e
4024
- })) : (Xo >= 0 && (W({
4084
+ })) : (Zo >= 0 && (W({
4025
4085
  rootEl: K,
4026
4086
  name: "add",
4027
4087
  toEl: K,
@@ -4043,7 +4103,7 @@ Q.prototype = {
4043
4103
  name: "sort",
4044
4104
  toEl: K,
4045
4105
  originalEvent: e
4046
- })), X && X.save()), Q.active && ((Xo == null || Xo === -1) && (Xo = Yo, Qo = Zo), W({
4106
+ })), X && X.save()), Q.active && ((Zo == null || Zo === -1) && (Zo = Xo, $o = Qo), W({
4047
4107
  sortable: this,
4048
4108
  name: "end",
4049
4109
  toEl: K,
@@ -4051,9 +4111,9 @@ Q.prototype = {
4051
4111
  }), this.save()))), this._nulling();
4052
4112
  },
4053
4113
  _nulling: function() {
4054
- U("nulling", this), J = G = K = q = Ko = Y = qo = Jo = rs = is = ls = Xo = Qo = Yo = Zo = us = ds = X = $o = Q.dragged = Q.ghost = Q.clone = Q.active = null, _s.forEach(function(e) {
4114
+ U("nulling", this), J = G = K = q = qo = Y = Jo = Yo = is = as = us = Zo = $o = Xo = Qo = ds = fs = X = es = Q.dragged = Q.ghost = Q.clone = Q.active = null, vs.forEach(function(e) {
4055
4115
  e.checked = !0;
4056
- }), _s.length = as = os = 0;
4116
+ }), vs.length = os = ss = 0;
4057
4117
  },
4058
4118
  handleEvent: function(e) {
4059
4119
  switch (e.type) {
@@ -4063,20 +4123,20 @@ Q.prototype = {
4063
4123
  break;
4064
4124
  case "dragenter":
4065
4125
  case "dragover":
4066
- G && (this._onDragOver(e), js(e));
4126
+ G && (this._onDragOver(e), Ms(e));
4067
4127
  break;
4068
4128
  case "selectstart": e.preventDefault();
4069
4129
  }
4070
4130
  },
4071
4131
  toArray: function() {
4072
- for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], _o(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || zs(t));
4132
+ for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], vo(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || Bs(t));
4073
4133
  return e;
4074
4134
  },
4075
4135
  sort: function(e, t) {
4076
4136
  var n = {}, r = this.el;
4077
4137
  this.toArray().forEach(function(e, t) {
4078
4138
  var i = r.children[t];
4079
- _o(i, this.options.draggable, r, !1) && (n[e] = i);
4139
+ vo(i, this.options.draggable, r, !1) && (n[e] = i);
4080
4140
  }, this), t && this.captureAnimationState(), e.forEach(function(e) {
4081
4141
  n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
4082
4142
  }), t && this.animateAll();
@@ -4086,25 +4146,25 @@ Q.prototype = {
4086
4146
  e && e.set && e.set(this);
4087
4147
  },
4088
4148
  closest: function(e, t) {
4089
- return _o(e, t || this.options.draggable, this.el, !1);
4149
+ return vo(e, t || this.options.draggable, this.el, !1);
4090
4150
  },
4091
4151
  option: function(e, t) {
4092
4152
  var n = this.options;
4093
4153
  if (t === void 0) return n[e];
4094
- var r = Uo.modifyOption(this, e, t);
4095
- n[e] = r === void 0 ? t : r, e === "group" && Es(n);
4154
+ var r = Wo.modifyOption(this, e, t);
4155
+ n[e] = r === void 0 ? t : r, e === "group" && Ds(n);
4096
4156
  },
4097
4157
  destroy: function() {
4098
4158
  U("destroy", this);
4099
4159
  var e = this.el;
4100
- e[Lo] = null, z(e, "mousedown", this._onTapStart), z(e, "touchstart", this._onTapStart), z(e, "pointerdown", this._onTapStart), this.nativeDraggable && (z(e, "dragover", this), z(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
4160
+ e[Ro] = null, z(e, "mousedown", this._onTapStart), z(e, "touchstart", this._onTapStart), z(e, "pointerdown", this._onTapStart), this.nativeDraggable && (z(e, "dragover", this), z(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
4101
4161
  e.removeAttribute("draggable");
4102
- }), this._onDrop(), this._disableDelayedDragEvents(), ns.splice(ns.indexOf(this.el), 1), this.el = e = null;
4162
+ }), this._onDrop(), this._disableDelayedDragEvents(), rs.splice(rs.indexOf(this.el), 1), this.el = e = null;
4103
4163
  },
4104
4164
  _hideClone: function() {
4105
- if (!Jo) {
4165
+ if (!Yo) {
4106
4166
  if (U("hideClone", this), Q.eventCanceled) return;
4107
- V(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), Jo = !0;
4167
+ V(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), Yo = !0;
4108
4168
  }
4109
4169
  },
4110
4170
  _showClone: function(e) {
@@ -4112,99 +4172,99 @@ Q.prototype = {
4112
4172
  this._hideClone();
4113
4173
  return;
4114
4174
  }
4115
- if (Jo) {
4175
+ if (Yo) {
4116
4176
  if (U("showClone", this), Q.eventCanceled) return;
4117
- G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) : Ko ? J.insertBefore(Y, Ko) : J.appendChild(Y), this.options.group.revertClone && this.animate(G, Y), V(Y, "display", ""), Jo = !1;
4177
+ G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) : qo ? J.insertBefore(Y, qo) : J.appendChild(Y), this.options.group.revertClone && this.animate(G, Y), V(Y, "display", ""), Yo = !1;
4118
4178
  }
4119
4179
  }
4120
4180
  };
4121
- function js(e) {
4181
+ function Ms(e) {
4122
4182
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
4123
4183
  }
4124
- function Ms(e, t, n, r, i, a, o, s) {
4125
- var c, l = e[Lo], u = l.options.onMove, d;
4126
- return window.CustomEvent && !so && !co ? c = new CustomEvent("move", {
4184
+ function Ns(e, t, n, r, i, a, o, s) {
4185
+ var c, l = e[Ro], u = l.options.onMove, d;
4186
+ return window.CustomEvent && !co && !lo ? c = new CustomEvent("move", {
4127
4187
  bubbles: !0,
4128
4188
  cancelable: !0
4129
4189
  }) : (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 || H(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
4130
4190
  }
4131
- function Ns(e) {
4191
+ function Ps(e) {
4132
4192
  e.draggable = !1;
4133
4193
  }
4134
- function Ps() {
4135
- gs = !1;
4194
+ function Fs() {
4195
+ _s = !1;
4136
4196
  }
4137
- function Fs(e, t, n) {
4138
- var r = H(Co(n.el, 0, n.options, !0)), i = Io(n.el, n.options, q), a = 10;
4197
+ function Is(e, t, n) {
4198
+ var r = H(wo(n.el, 0, n.options, !0)), i = Lo(n.el, n.options, q), a = 10;
4139
4199
  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;
4140
4200
  }
4141
- function Is(e, t, n) {
4142
- var r = H(wo(n.el, n.options.draggable)), i = Io(n.el, n.options, q), a = 10;
4201
+ function Ls(e, t, n) {
4202
+ var r = H(To(n.el, n.options.draggable)), i = Lo(n.el, n.options, q), a = 10;
4143
4203
  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;
4144
4204
  }
4145
- function Ls(e, t, n, r, i, a, o, s) {
4205
+ function Rs(e, t, n, r, i, a, o, s) {
4146
4206
  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;
4147
4207
  if (!o) {
4148
- if (s && ms < l * i) {
4149
- if (!fs && (ds === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (fs = !0), fs) f = !0;
4150
- else if (ds === 1 ? c < u + ms : c > d - ms) return -ds;
4151
- } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return Rs(t);
4208
+ if (s && hs < l * i) {
4209
+ if (!ps && (fs === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (ps = !0), ps) f = !0;
4210
+ else if (fs === 1 ? c < u + hs : c > d - hs) return -fs;
4211
+ } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return zs(t);
4152
4212
  }
4153
4213
  return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
4154
4214
  }
4155
- function Rs(e) {
4156
- return To(G) < To(e) ? 1 : -1;
4157
- }
4158
4215
  function zs(e) {
4216
+ return Eo(G) < Eo(e) ? 1 : -1;
4217
+ }
4218
+ function Bs(e) {
4159
4219
  for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
4160
4220
  return r.toString(36);
4161
4221
  }
4162
- function Bs(e) {
4163
- _s.length = 0;
4222
+ function Vs(e) {
4223
+ vs.length = 0;
4164
4224
  for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
4165
4225
  var r = t[n];
4166
- r.checked && _s.push(r);
4226
+ r.checked && vs.push(r);
4167
4227
  }
4168
4228
  }
4169
- function Vs(e) {
4229
+ function Hs(e) {
4170
4230
  return setTimeout(e, 0);
4171
4231
  }
4172
- function Hs(e) {
4232
+ function Us(e) {
4173
4233
  return clearTimeout(e);
4174
4234
  }
4175
- vs && R(document, "touchmove", function(e) {
4176
- (Q.active || es) && e.cancelable && e.preventDefault();
4235
+ ys && R(document, "touchmove", function(e) {
4236
+ (Q.active || ts) && e.cancelable && e.preventDefault();
4177
4237
  }), Q.utils = {
4178
4238
  on: R,
4179
4239
  off: z,
4180
4240
  css: V,
4181
- find: bo,
4241
+ find: xo,
4182
4242
  is: function(e, t) {
4183
- return !!_o(e, t, e, !1);
4243
+ return !!vo(e, t, e, !1);
4184
4244
  },
4185
- extend: ko,
4186
- throttle: Mo,
4187
- closest: _o,
4245
+ extend: Ao,
4246
+ throttle: No,
4247
+ closest: vo,
4188
4248
  toggleClass: B,
4189
- clone: Fo,
4190
- index: To,
4191
- nextTick: Vs,
4192
- cancelNextTick: Hs,
4193
- detectDirection: Cs,
4194
- getChild: Co
4249
+ clone: Io,
4250
+ index: Eo,
4251
+ nextTick: Hs,
4252
+ cancelNextTick: Us,
4253
+ detectDirection: ws,
4254
+ getChild: wo
4195
4255
  }, Q.get = function(e) {
4196
- return e[Lo];
4256
+ return e[Ro];
4197
4257
  }, Q.mount = function() {
4198
4258
  var e = [...arguments];
4199
4259
  e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
4200
4260
  if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
4201
- e.utils && (Q.utils = $a($a({}, Q.utils), e.utils)), Uo.mount(e);
4261
+ e.utils && (Q.utils = eo(eo({}, Q.utils), e.utils)), Wo.mount(e);
4202
4262
  });
4203
4263
  }, Q.create = function(e, t) {
4204
4264
  return new Q(e, t);
4205
- }, Q.version = ao;
4206
- var $ = [], Us, Ws, Gs = !1, Ks, qs, Js, Ys;
4207
- function Xs() {
4265
+ }, Q.version = oo;
4266
+ var $ = [], Ws, Gs, Ks = !1, qs, Js, Ys, Xs;
4267
+ function Zs() {
4208
4268
  function e() {
4209
4269
  for (var e in this.defaults = {
4210
4270
  scroll: !0,
@@ -4224,63 +4284,63 @@ function Xs() {
4224
4284
  !this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
4225
4285
  },
4226
4286
  drop: function() {
4227
- this.sortable.nativeDraggable ? z(document, "dragover", this._handleAutoScroll) : (z(document, "pointermove", this._handleFallbackAutoScroll), z(document, "touchmove", this._handleFallbackAutoScroll), z(document, "mousemove", this._handleFallbackAutoScroll)), Qs(), Zs(), No();
4287
+ this.sortable.nativeDraggable ? z(document, "dragover", this._handleAutoScroll) : (z(document, "pointermove", this._handleFallbackAutoScroll), z(document, "touchmove", this._handleFallbackAutoScroll), z(document, "mousemove", this._handleFallbackAutoScroll)), $s(), Qs(), Po();
4228
4288
  },
4229
4289
  nulling: function() {
4230
- Js = Ws = Us = Gs = Ys = Ks = qs = null, $.length = 0;
4290
+ Ys = Gs = Ws = Ks = Xs = qs = Js = null, $.length = 0;
4231
4291
  },
4232
4292
  _handleFallbackAutoScroll: function(e) {
4233
4293
  this._handleAutoScroll(e, !0);
4234
4294
  },
4235
4295
  _handleAutoScroll: function(e, t) {
4236
4296
  var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
4237
- if (Js = e, t || this.options.forceAutoScrollFallback || co || so || uo) {
4238
- $s(e, this.options, a, t);
4239
- var o = Oo(a, !0);
4240
- Gs && (!Ys || r !== Ks || i !== qs) && (Ys && Qs(), Ys = setInterval(function() {
4241
- var a = Oo(document.elementFromPoint(r, i), !0);
4242
- a !== o && (o = a, Zs()), $s(e, n.options, a, t);
4243
- }, 10), Ks = r, qs = i);
4297
+ if (Ys = e, t || this.options.forceAutoScrollFallback || lo || co || fo) {
4298
+ ec(e, this.options, a, t);
4299
+ var o = ko(a, !0);
4300
+ Ks && (!Xs || r !== qs || i !== Js) && (Xs && $s(), Xs = setInterval(function() {
4301
+ var a = ko(document.elementFromPoint(r, i), !0);
4302
+ a !== o && (o = a, Qs()), ec(e, n.options, a, t);
4303
+ }, 10), qs = r, Js = i);
4244
4304
  } else {
4245
- if (!this.options.bubbleScroll || Oo(a, !0) === xo()) {
4246
- Zs();
4305
+ if (!this.options.bubbleScroll || ko(a, !0) === So()) {
4306
+ Qs();
4247
4307
  return;
4248
4308
  }
4249
- $s(e, this.options, Oo(a, !1), !1);
4309
+ ec(e, this.options, ko(a, !1), !1);
4250
4310
  }
4251
4311
  }
4252
- }, no(e, {
4312
+ }, ro(e, {
4253
4313
  pluginName: "scroll",
4254
4314
  initializeByDefault: !0
4255
4315
  });
4256
4316
  }
4257
- function Zs() {
4317
+ function Qs() {
4258
4318
  $.forEach(function(e) {
4259
4319
  clearInterval(e.pid);
4260
4320
  }), $ = [];
4261
4321
  }
4262
- function Qs() {
4263
- clearInterval(Ys);
4322
+ function $s() {
4323
+ clearInterval(Xs);
4264
4324
  }
4265
- var $s = Mo(function(e, t, n, r) {
4325
+ var ec = No(function(e, t, n, r) {
4266
4326
  if (t.scroll) {
4267
- var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = xo(), l = !1, u;
4268
- Ws !== n && (Ws = n, Zs(), Us = t.scroll, u = t.scrollFn, Us === !0 && (Us = Oo(n, !0)));
4269
- var d = 0, f = Us;
4327
+ var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = So(), l = !1, u;
4328
+ Gs !== n && (Gs = n, Qs(), Ws = t.scroll, u = t.scrollFn, Ws === !0 && (Ws = ko(n, !0)));
4329
+ var d = 0, f = Ws;
4270
4330
  do {
4271
4331
  var p = f, m = H(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 = V(p), E = p.scrollLeft, D = p.scrollTop;
4272
4332
  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"));
4273
4333
  var O = x && (Math.abs(v - i) <= o && E + y < C) - (Math.abs(_ - i) <= o && !!E), k = S && (Math.abs(g - a) <= o && D + b < w) - (Math.abs(h - a) <= o && !!D);
4274
4334
  if (!$[d]) for (var A = 0; A <= d; A++) $[A] || ($[A] = {});
4275
4335
  ($[d].vx != O || $[d].vy != k || $[d].el !== p) && ($[d].el = p, $[d].vx = O, $[d].vy = k, clearInterval($[d].pid), (O != 0 || k != 0) && (l = !0, $[d].pid = setInterval(function() {
4276
- r && this.layer === 0 && Q.active._onTouchMove(Js);
4336
+ r && this.layer === 0 && Q.active._onTouchMove(Ys);
4277
4337
  var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
4278
- typeof u == "function" && u.call(Q.dragged.parentNode[Lo], n, t, e, Js, $[this.layer].el) !== "continue" || Po($[this.layer].el, n, t);
4338
+ typeof u == "function" && u.call(Q.dragged.parentNode[Ro], n, t, e, Ys, $[this.layer].el) !== "continue" || Fo($[this.layer].el, n, t);
4279
4339
  }.bind({ layer: d }), 24))), d++;
4280
- } while (t.bubbleScroll && f !== c && (f = Oo(f, !1)));
4281
- Gs = l;
4340
+ } while (t.bubbleScroll && f !== c && (f = ko(f, !1)));
4341
+ Ks = l;
4282
4342
  }
4283
- }, 30), ec = function(e) {
4343
+ }, 30), tc = function(e) {
4284
4344
  var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
4285
4345
  if (t) {
4286
4346
  var c = n || i;
@@ -4292,8 +4352,8 @@ var $s = Mo(function(e, t, n, r) {
4292
4352
  }));
4293
4353
  }
4294
4354
  };
4295
- function tc() {}
4296
- tc.prototype = {
4355
+ function nc() {}
4356
+ nc.prototype = {
4297
4357
  startIndex: null,
4298
4358
  dragStart: function(e) {
4299
4359
  var t = e.oldDraggableIndex;
@@ -4302,72 +4362,72 @@ tc.prototype = {
4302
4362
  onSpill: function(e) {
4303
4363
  var t = e.dragEl, n = e.putSortable;
4304
4364
  this.sortable.captureAnimationState(), n && n.captureAnimationState();
4305
- var r = Co(this.sortable.el, this.startIndex, this.options);
4365
+ var r = wo(this.sortable.el, this.startIndex, this.options);
4306
4366
  r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
4307
4367
  },
4308
- drop: ec
4309
- }, no(tc, { pluginName: "revertOnSpill" });
4310
- function nc() {}
4311
- nc.prototype = {
4368
+ drop: tc
4369
+ }, ro(nc, { pluginName: "revertOnSpill" });
4370
+ function rc() {}
4371
+ rc.prototype = {
4312
4372
  onSpill: function(e) {
4313
4373
  var t = e.dragEl, n = e.putSortable || this.sortable;
4314
4374
  n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
4315
4375
  },
4316
- drop: ec
4317
- }, no(nc, { pluginName: "removeOnSpill" }), Q.mount(new Xs()), Q.mount(nc, tc);
4318
- function rc(e) {
4376
+ drop: tc
4377
+ }, ro(rc, { pluginName: "removeOnSpill" }), Q.mount(new Zs()), Q.mount(rc, nc);
4378
+ function ic(e) {
4319
4379
  return e == null ? e : JSON.parse(JSON.stringify(e));
4320
4380
  }
4321
- function ic(e) {
4381
+ function ac(e) {
4322
4382
  ne() && l(e);
4323
4383
  }
4324
- function ac(e) {
4384
+ function oc(e) {
4325
4385
  ne() ? n(e) : m(e);
4326
4386
  }
4327
- var oc = null, sc = null;
4328
- function cc(e = null, t = null) {
4329
- oc = e, sc = t;
4387
+ var sc = null, cc = null;
4388
+ function lc(e = null, t = null) {
4389
+ sc = e, cc = t;
4330
4390
  }
4331
- function lc() {
4391
+ function uc() {
4332
4392
  return {
4333
- data: oc,
4334
- clonedData: sc
4393
+ data: sc,
4394
+ clonedData: cc
4335
4395
  };
4336
4396
  }
4337
- var uc = Symbol("cloneElement");
4338
- function dc(...e) {
4397
+ var dc = Symbol("cloneElement");
4398
+ function fc(...e) {
4339
4399
  let t = ne()?.proxy, n = null, r = e[0], [, i, o] = e;
4340
4400
  Array.isArray(N(i)) || (o = i, i = null);
4341
- let c = null, { immediate: l = !0, clone: u = rc, forceFallback: d, fallbackOnBody: f, customUpdate: p } = N(o) ?? {};
4401
+ let c = null, { immediate: l = !0, clone: u = ic, forceFallback: d, fallbackOnBody: f, customUpdate: p } = N(o) ?? {};
4342
4402
  function h(e) {
4343
4403
  let { from: t, oldIndex: r, item: a } = e, o = Array.from(t.childNodes);
4344
4404
  n = d && !f ? o.slice(0, -1) : o;
4345
4405
  let s = N(N(i)?.[r]), c = u(s);
4346
- cc(s, c), a[uc] = c;
4406
+ lc(s, c), a[dc] = c;
4347
4407
  }
4348
4408
  function g(e) {
4349
- let t = e.item[uc];
4350
- if (!Va(t)) {
4351
- if (Wa(e.item), a(i)) {
4409
+ let t = e.item[dc];
4410
+ if (!Ha(t)) {
4411
+ if (Ga(e.item), a(i)) {
4352
4412
  let n = [...N(i)];
4353
- i.value = Ba(n, e.newDraggableIndex, t);
4413
+ i.value = Va(n, e.newDraggableIndex, t);
4354
4414
  return;
4355
4415
  }
4356
- Ba(N(i), e.newDraggableIndex, t);
4416
+ Va(N(i), e.newDraggableIndex, t);
4357
4417
  }
4358
4418
  }
4359
4419
  function _(e) {
4360
4420
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: o, pullMode: s, clone: c } = e;
4361
- if (Ua(t, n, r), s === "clone") {
4362
- Wa(c);
4421
+ if (Wa(t, n, r), s === "clone") {
4422
+ Ga(c);
4363
4423
  return;
4364
4424
  }
4365
4425
  if (a(i)) {
4366
4426
  let e = [...N(i)];
4367
- i.value = za(e, o);
4427
+ i.value = Ba(e, o);
4368
4428
  return;
4369
4429
  }
4370
- za(N(i), o);
4430
+ Ba(N(i), o);
4371
4431
  }
4372
4432
  function v(e) {
4373
4433
  if (p) {
@@ -4375,12 +4435,12 @@ function dc(...e) {
4375
4435
  return;
4376
4436
  }
4377
4437
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: o, newDraggableIndex: s } = e;
4378
- if (Wa(n), Ua(t, n, r), a(i)) {
4438
+ if (Ga(n), Wa(t, n, r), a(i)) {
4379
4439
  let e = [...N(i)];
4380
- i.value = Ia(e, o, s);
4440
+ i.value = La(e, o, s);
4381
4441
  return;
4382
4442
  }
4383
- Ia(N(i), o, s);
4443
+ La(N(i), o, s);
4384
4444
  }
4385
4445
  function y(e) {
4386
4446
  let { newIndex: t, oldIndex: r, from: i, to: a } = e, o = null, s = t === r && i === a;
@@ -4399,7 +4459,7 @@ function dc(...e) {
4399
4459
  n = null;
4400
4460
  }
4401
4461
  m(() => {
4402
- if (cc(), o) throw o;
4462
+ if (lc(), o) throw o;
4403
4463
  });
4404
4464
  }
4405
4465
  let b = {
@@ -4411,19 +4471,19 @@ function dc(...e) {
4411
4471
  };
4412
4472
  function x(e) {
4413
4473
  let n = N(r);
4414
- return e ||= Ha(n) ? Ga(n, t?.$el) : n, e && !Ja(e) && (e = e.$el), e || Fa("Root element not found"), e;
4474
+ return e ||= Ua(n) ? Ka(n, t?.$el) : n, e && !Ya(e) && (e = e.$el), e || Ia("Root element not found"), e;
4415
4475
  }
4416
4476
  function S() {
4417
- let e = N(o) ?? {}, { immediate: t, clone: n } = e, r = Ma(e, ["immediate", "clone"]);
4418
- return Ya(r, (e, t) => {
4419
- Xa(e) && (r[e] = (e, ...n) => (Za(e, lc()), t(e, ...n)));
4420
- }), qa(i === null ? {} : b, r);
4477
+ let e = N(o) ?? {}, { immediate: t, clone: n } = e, r = Na(e, ["immediate", "clone"]);
4478
+ return Xa(r, (e, t) => {
4479
+ Za(e) && (r[e] = (e, ...n) => (Qa(e, uc()), t(e, ...n)));
4480
+ }), Ja(i === null ? {} : b, r);
4421
4481
  }
4422
4482
  let C = (e) => {
4423
4483
  e = x(e), c && w.destroy(), c = new Q(e, S());
4424
4484
  };
4425
4485
  s(() => o, () => {
4426
- c && Ya(S(), (e, t) => {
4486
+ c && Xa(S(), (e, t) => {
4427
4487
  c?.option(e, t);
4428
4488
  });
4429
4489
  }, { deep: !0 });
@@ -4436,15 +4496,15 @@ function dc(...e) {
4436
4496
  toArray: () => c?.toArray(),
4437
4497
  closest: (...e) => c?.closest(...e)
4438
4498
  };
4439
- return ac(() => {
4499
+ return oc(() => {
4440
4500
  l && C();
4441
- }), ic(w.destroy), ja({
4501
+ }), ac(w.destroy), Ma({
4442
4502
  start: C,
4443
4503
  pause: () => w?.option("disabled", !0),
4444
4504
  resume: () => w?.option("disabled", !1)
4445
4505
  }, w);
4446
4506
  }
4447
- var fc = [
4507
+ var pc = [
4448
4508
  "update",
4449
4509
  "start",
4450
4510
  "add",
@@ -4457,7 +4517,7 @@ var fc = [
4457
4517
  "clone",
4458
4518
  "move",
4459
4519
  "change"
4460
- ], pc = [
4520
+ ], mc = [
4461
4521
  "clone",
4462
4522
  "animation",
4463
4523
  "ghostClass",
@@ -4501,43 +4561,43 @@ var fc = [
4501
4561
  "tag",
4502
4562
  "target",
4503
4563
  "customUpdate",
4504
- ...fc.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
4505
- ], mc = I({
4564
+ ...pc.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
4565
+ ], hc = I({
4506
4566
  name: "VueDraggable",
4507
4567
  model: {
4508
4568
  prop: "modelValue",
4509
4569
  event: "update:modelValue"
4510
4570
  },
4511
- props: pc,
4512
- emits: ["update:modelValue", ...fc],
4571
+ props: mc,
4572
+ emits: ["update:modelValue", ...pc],
4513
4573
  setup(e, { slots: t, emit: n, expose: r, attrs: i }) {
4514
- let a = fc.reduce((e, t) => {
4574
+ let a = pc.reduce((e, t) => {
4515
4575
  let r = `on${t.replace(/^\S/, (e) => e.toUpperCase())}`;
4516
4576
  return e[r] = (...e) => n(t, ...e), e;
4517
4577
  }, {}), s = P(() => {
4518
- let t = C(e), { modelValue: n } = t, r = Ma(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
4578
+ let t = C(e), { modelValue: n } = t, r = Na(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
4519
4579
  let r = N(n);
4520
4580
  return r !== void 0 && (e[t] = r), e;
4521
4581
  }, {});
4522
- return ja(ja({}, a), Ra(ja(ja({}, i), o)));
4582
+ return Ma(Ma({}, a), za(Ma(Ma({}, i), o)));
4523
4583
  }), c = P({
4524
4584
  get: () => e.modelValue,
4525
4585
  set: (e) => n("update:modelValue", e)
4526
- }), l = _(), u = o(dc(e.target || l, c, s));
4586
+ }), l = _(), u = o(fc(e.target || l, c, s));
4527
4587
  return r(u), () => b(e.tag || "div", { ref: l }, (t?.default)?.call(t, u));
4528
4588
  }
4529
- }), hc = {
4589
+ }), gc = {
4530
4590
  mounted: "mounted",
4531
4591
  unmounted: "unmounted"
4532
4592
  };
4533
- hc.mounted, hc.unmounted;
4593
+ gc.mounted, gc.unmounted;
4534
4594
  //#endregion
4535
4595
  //#region src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
4536
- var gc = { class: "tpl:w-full" }, _c = {
4596
+ var _c = { class: "tpl:w-full" }, vc = {
4537
4597
  key: 0,
4538
4598
  "data-testid": "section-drop-hint",
4539
4599
  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)]"
4540
- }, vc = /* @__PURE__ */ I({
4600
+ }, yc = /* @__PURE__ */ I({
4541
4601
  __name: "SectionBlock",
4542
4602
  props: {
4543
4603
  block: {},
@@ -4545,13 +4605,13 @@ var gc = { class: "tpl:w-full" }, _c = {
4545
4605
  },
4546
4606
  setup(e) {
4547
4607
  let n = {
4548
- title: wa,
4549
- paragraph: aa,
4550
- image: Ki,
4551
- button: Fr,
4552
- divider: Ei,
4553
- custom: wi
4554
- }, i = e, { t: a } = Wt(), o = lt(kt, "SectionBlock"), s = p(Et, null), c = p(Rt, null), l = p(Tt, {}), f = p(Lt, null);
4608
+ title: Ta,
4609
+ paragraph: oa,
4610
+ image: qi,
4611
+ button: Ir,
4612
+ divider: Di,
4613
+ custom: Ti
4614
+ }, i = e, { t: a } = Gt(), o = ut(At, "SectionBlock"), s = p(Dt, null), c = p(zt, null), l = p(Et, {}), f = p(Rt, null);
4555
4615
  function m(e) {
4556
4616
  let t = l.savedBlocks;
4557
4617
  if (t?.isPicking.value) {
@@ -4586,7 +4646,7 @@ var gc = { class: "tpl:w-full" }, _c = {
4586
4646
  r[e] = n, o.updateBlock(i.block.id, { children: r });
4587
4647
  }
4588
4648
  function b(e) {
4589
- return sa(e, c, n);
4649
+ return ca(e, c, n);
4590
4650
  }
4591
4651
  function C(e, t) {
4592
4652
  e.type === "custom" && o.updateBlock(e.id, {
@@ -4594,16 +4654,16 @@ var gc = { class: "tpl:w-full" }, _c = {
4594
4654
  dataSourceFetched: t.dataSourceFetched
4595
4655
  });
4596
4656
  }
4597
- return (n, i) => (O(), S("div", gc, [x("div", { class: r(["tpl:flex tpl:gap-0", { "tpl:flex-col": _.value }]) }, [(O(!0), S(M, null, D(g.value, (n, i) => (O(), S("div", {
4657
+ return (n, i) => (O(), S("div", _c, [x("div", { class: r(["tpl:flex tpl:gap-0", { "tpl:flex-col": _.value }]) }, [(O(!0), S(M, null, D(g.value, (n, i) => (O(), S("div", {
4598
4658
  key: i,
4599
4659
  class: r(["tpl:relative tpl:min-h-[60px] tpl:rounded", v(i).length === 0 ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
4600
4660
  style: u({ width: _.value ? "100%" : h.value[i] })
4601
- }, [w(N(mc), {
4661
+ }, [w(N(hc), {
4602
4662
  "model-value": v(i),
4603
4663
  group: {
4604
4664
  name: "blocks",
4605
4665
  pull: !0,
4606
- put: (e, t, n) => N(Ta)(n)
4666
+ put: (e, t, n) => N(Ea)(n)
4607
4667
  },
4608
4668
  animation: 150,
4609
4669
  "ghost-class": "tpl-ghost",
@@ -4616,7 +4676,7 @@ var gc = { class: "tpl:w-full" }, _c = {
4616
4676
  class: "tpl:min-h-[60px]",
4617
4677
  "onUpdate:modelValue": (e) => y(i, e)
4618
4678
  }, {
4619
- default: re(() => [(O(!0), S(M, null, D(v(i), (n) => t((O(), S("div", { key: n.id }, [w(Sa, {
4679
+ default: re(() => [(O(!0), S(M, null, D(v(i), (n) => t((O(), S("div", { key: n.id }, [w(Ca, {
4620
4680
  block: n,
4621
4681
  "is-selected": N(o).state.selectedBlockId === n.id,
4622
4682
  viewport: e.viewport,
@@ -4648,13 +4708,13 @@ var gc = { class: "tpl:w-full" }, _c = {
4648
4708
  "model-value",
4649
4709
  "group",
4650
4710
  "onUpdate:modelValue"
4651
- ]), v(i).length === 0 ? (O(), S("div", _c, [x("span", null, k(N(a).section.dropHere), 1)])) : F("", !0)], 6))), 128))], 2)]));
4711
+ ]), v(i).length === 0 ? (O(), S("div", vc, [x("span", null, k(N(a).section.dropHere), 1)])) : F("", !0)], 6))), 128))], 2)]));
4652
4712
  }
4653
- }), yc = Te, bc = {
4713
+ }), bc = Ee, xc = {
4654
4714
  small: 24,
4655
4715
  medium: 32,
4656
4716
  large: 48
4657
- }, xc = [
4717
+ }, Sc = [
4658
4718
  "facebook",
4659
4719
  "twitter",
4660
4720
  "instagram",
@@ -4672,11 +4732,11 @@ var gc = { class: "tpl:w-full" }, _c = {
4672
4732
  "github",
4673
4733
  "dribbble",
4674
4734
  "behance"
4675
- ], Sc = [
4735
+ ], Cc = [
4676
4736
  "width",
4677
4737
  "height",
4678
4738
  "fill"
4679
- ], Cc = ["d"], wc = /* @__PURE__ */ I({
4739
+ ], wc = ["d"], Tc = /* @__PURE__ */ I({
4680
4740
  __name: "SocialIconSvg",
4681
4741
  props: {
4682
4742
  platform: {},
@@ -4684,7 +4744,7 @@ var gc = { class: "tpl:w-full" }, _c = {
4684
4744
  iconSize: {}
4685
4745
  },
4686
4746
  setup(e) {
4687
- let t = e, n = P(() => yc[t.platform]), r = P(() => bc[t.iconSize]), i = P(() => {
4747
+ let t = e, n = P(() => bc[t.platform]), r = P(() => xc[t.iconSize]), i = P(() => {
4688
4748
  let e = {
4689
4749
  display: "inline-flex",
4690
4750
  alignItems: "center",
@@ -4728,25 +4788,25 @@ var gc = { class: "tpl:w-full" }, _c = {
4728
4788
  viewBox: "0 0 24 24",
4729
4789
  fill: o.value,
4730
4790
  xmlns: "http://www.w3.org/2000/svg"
4731
- }, [x("path", { d: n.value.path }, null, 8, Cc)], 8, Sc))], 4));
4791
+ }, [x("path", { d: n.value.path }, null, 8, wc)], 8, Cc))], 4));
4732
4792
  }
4733
- }), Tc = { class: "tpl:w-full" }, Ec = ["href"], Dc = {
4793
+ }), Ec = { class: "tpl:w-full" }, Dc = ["href"], Oc = {
4734
4794
  key: 1,
4735
4795
  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)]"
4736
- }, Oc = /* @__PURE__ */ I({
4796
+ }, kc = /* @__PURE__ */ I({
4737
4797
  __name: "SocialIconsBlock",
4738
4798
  props: {
4739
4799
  block: {},
4740
4800
  viewport: {}
4741
4801
  },
4742
4802
  setup(e) {
4743
- let t = e, { t: n } = Wt(), r = P(() => ({
4803
+ let t = e, { t: n } = Gt(), r = P(() => ({
4744
4804
  display: "flex",
4745
4805
  flexWrap: "wrap",
4746
4806
  gap: `${t.block.spacing}px`,
4747
4807
  justifyContent: t.block.align === "left" ? "flex-start" : t.block.align === "right" ? "flex-end" : "center"
4748
4808
  })), i = P(() => t.block.icons.length > 0);
4749
- return (t, a) => (O(), S("div", Tc, [i.value ? (O(), S("div", {
4809
+ return (t, a) => (O(), S("div", Ec, [i.value ? (O(), S("div", {
4750
4810
  key: 0,
4751
4811
  style: u(r.value)
4752
4812
  }, [(O(!0), S(M, null, D(e.block.icons, (t) => (O(), S("a", {
@@ -4754,7 +4814,7 @@ var gc = { class: "tpl:w-full" }, _c = {
4754
4814
  href: t.url || "#",
4755
4815
  class: "tpl:cursor-default",
4756
4816
  onClick: a[0] ||= L(() => {}, ["prevent"])
4757
- }, [w(wc, {
4817
+ }, [w(Tc, {
4758
4818
  platform: t.platform,
4759
4819
  "icon-style": e.block.iconStyle,
4760
4820
  "icon-size": e.block.iconSize
@@ -4762,44 +4822,44 @@ var gc = { class: "tpl:w-full" }, _c = {
4762
4822
  "platform",
4763
4823
  "icon-style",
4764
4824
  "icon-size"
4765
- ])], 8, Ec))), 128))], 4)) : (O(), S("div", Dc, [w(N(Kr), { size: 16 }), x("span", null, k(N(n).social.addIcons), 1)]))]));
4825
+ ])], 8, Dc))), 128))], 4)) : (O(), S("div", Oc, [w(N(qr), { size: 16 }), x("span", null, k(N(n).social.addIcons), 1)]))]));
4766
4826
  }
4767
- }), kc = { class: "tpl:w-full" }, Ac = {
4827
+ }), Ac = { class: "tpl:w-full" }, jc = {
4768
4828
  key: 0,
4769
4829
  class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
4770
4830
  style: {
4771
4831
  "background-color": "var(--tpl-bg-hover)",
4772
4832
  color: "var(--tpl-text-dim)"
4773
4833
  }
4774
- }, jc = /* @__PURE__ */ I({
4834
+ }, Mc = /* @__PURE__ */ I({
4775
4835
  __name: "SpacerBlock",
4776
4836
  props: {
4777
4837
  block: {},
4778
4838
  viewport: {}
4779
4839
  },
4780
4840
  setup(e) {
4781
- let t = e, n = lt(kt, "SpacerBlock"), i = P(() => ({
4841
+ let t = e, n = ut(At, "SpacerBlock"), i = P(() => ({
4782
4842
  height: `${t.block.height}px`,
4783
4843
  minHeight: `${t.block.height}px`,
4784
4844
  ...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
4785
4845
  }));
4786
- return (t, a) => (O(), S("div", kc, [x("div", {
4846
+ return (t, a) => (O(), S("div", Ac, [x("div", {
4787
4847
  style: u(i.value),
4788
4848
  class: r(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:border-y tpl:border-dashed": !N(n).state.previewMode }])
4789
- }, [N(n).state.previewMode ? F("", !0) : (O(), S("span", Ac, k(e.block.height) + "px ", 1))], 6)]));
4849
+ }, [N(n).state.previewMode ? F("", !0) : (O(), S("span", jc, k(e.block.height) + "px ", 1))], 6)]));
4790
4850
  }
4791
- }), Mc = { class: "tpl:w-full" }, Nc = { key: 0 }, Pc = [
4851
+ }), Nc = { class: "tpl:w-full" }, Pc = { key: 0 }, Fc = [
4792
4852
  "aria-label",
4793
4853
  "data-placeholder",
4794
4854
  "onBlur"
4795
- ], Fc = [
4855
+ ], Ic = [
4796
4856
  "aria-label",
4797
4857
  "data-placeholder",
4798
4858
  "onBlur"
4799
- ], Ic = {
4859
+ ], Lc = {
4800
4860
  key: 1,
4801
4861
  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)]"
4802
- }, Lc = /*#__PURE__*/ an(/* @__PURE__ */ I({
4862
+ }, Rc = /*#__PURE__*/ on(/* @__PURE__ */ I({
4803
4863
  __name: "TableBlock",
4804
4864
  props: {
4805
4865
  block: {},
@@ -4813,7 +4873,7 @@ var gc = { class: "tpl:w-full" }, _c = {
4813
4873
  updated(e, t) {
4814
4874
  t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
4815
4875
  }
4816
- }, r = e, { t: i } = Wt(), a = lt(kt, "TableBlock"), o = P(() => r.block.rows.length > 0), s = P(() => {
4876
+ }, r = e, { t: i } = Gt(), a = ut(At, "TableBlock"), o = P(() => r.block.rows.length > 0), s = P(() => {
4817
4877
  let e = {
4818
4878
  width: "100%",
4819
4879
  borderCollapse: "collapse",
@@ -4844,11 +4904,11 @@ var gc = { class: "tpl:w-full" }, _c = {
4844
4904
  } : n);
4845
4905
  a.updateBlock(r.block.id, { rows: o });
4846
4906
  }
4847
- return (e, r) => (O(), S("div", Mc, [o.value ? (O(), S("table", {
4907
+ return (e, r) => (O(), S("div", Nc, [o.value ? (O(), S("table", {
4848
4908
  key: 0,
4849
4909
  style: u(s.value),
4850
4910
  class: "tpl-table-editable"
4851
- }, [d.value ? (O(), S("thead", Nc, [x("tr", null, [(O(!0), S(M, null, D(d.value.cells, (e) => t((O(), S("th", {
4911
+ }, [d.value ? (O(), S("thead", Pc, [x("tr", null, [(O(!0), S(M, null, D(d.value.cells, (e) => t((O(), S("th", {
4852
4912
  key: e.id,
4853
4913
  style: u(l.value),
4854
4914
  "aria-label": N(i).table.cellPlaceholder,
@@ -4857,7 +4917,7 @@ var gc = { class: "tpl:w-full" }, _c = {
4857
4917
  onBlur: (t) => m(d.value.id, e.id, t),
4858
4918
  onKeydown: r[0] ||= ae(L((e) => e.target.blur(), ["prevent"]), ["enter"]),
4859
4919
  onClick: L(p, ["stop"])
4860
- }, null, 44, Pc)), [[n, e.content]])), 128))])])) : F("", !0), x("tbody", null, [(O(!0), S(M, null, D(f.value, (e) => (O(), S("tr", { key: e.id }, [(O(!0), S(M, null, D(e.cells, (a) => t((O(), S("td", {
4920
+ }, null, 44, Fc)), [[n, e.content]])), 128))])])) : F("", !0), x("tbody", null, [(O(!0), S(M, null, D(f.value, (e) => (O(), S("tr", { key: e.id }, [(O(!0), S(M, null, D(e.cells, (a) => t((O(), S("td", {
4861
4921
  key: a.id,
4862
4922
  style: u(c.value),
4863
4923
  "aria-label": N(i).table.cellPlaceholder,
@@ -4866,9 +4926,9 @@ var gc = { class: "tpl:w-full" }, _c = {
4866
4926
  onBlur: (t) => m(e.id, a.id, t),
4867
4927
  onKeydown: r[1] ||= ae(L((e) => e.target.blur(), ["prevent"]), ["enter"]),
4868
4928
  onClick: L(p, ["stop"])
4869
- }, null, 44, Fc)), [[n, a.content]])), 128))]))), 128))])], 4)) : (O(), S("div", Ic, [w(N(qr), { size: 16 }), x("span", null, k(N(i).table.empty), 1)]))]));
4929
+ }, null, 44, Ic)), [[n, a.content]])), 128))]))), 128))])], 4)) : (O(), S("div", Lc, [w(N(Jr), { size: 16 }), x("span", null, k(N(i).table.empty), 1)]))]));
4870
4930
  }
4871
- }), [["__scopeId", "data-v-963ac422"]]), Rc = /* @__PURE__ */ I({
4931
+ }), [["__scopeId", "data-v-963ac422"]]), zc = /* @__PURE__ */ I({
4872
4932
  __name: "VideoPlayButton",
4873
4933
  props: { hoverEffect: {
4874
4934
  type: Boolean,
@@ -4886,7 +4946,7 @@ var gc = { class: "tpl:w-full" }, _c = {
4886
4946
  });
4887
4947
  //#endregion
4888
4948
  //#region src/utils/videoThumbnail.ts
4889
- function zc(e) {
4949
+ function Bc(e) {
4890
4950
  if (!e) return {
4891
4951
  platform: "unknown",
4892
4952
  videoId: null,
@@ -4918,25 +4978,25 @@ function zc(e) {
4918
4978
  thumbnailUrl: null
4919
4979
  };
4920
4980
  }
4921
- function Bc(e, t) {
4922
- return t || zc(e).thumbnailUrl;
4981
+ function Vc(e, t) {
4982
+ return t || Bc(e).thumbnailUrl;
4923
4983
  }
4924
4984
  //#endregion
4925
4985
  //#region src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
4926
- var Vc = ["src", "alt"], Hc = {
4986
+ var Hc = ["src", "alt"], Uc = {
4927
4987
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
4928
4988
  style: { opacity: "0.7" }
4929
- }, Uc = ["href"], Wc = ["src", "alt"], Gc = ["src", "alt"], Kc = {
4989
+ }, Wc = ["href"], Gc = ["src", "alt"], Kc = ["src", "alt"], qc = {
4930
4990
  key: 3,
4931
4991
  class: "tpl:flex tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
4932
- }, qc = /* @__PURE__ */ I({
4992
+ }, Jc = /* @__PURE__ */ I({
4933
4993
  __name: "VideoBlock",
4934
4994
  props: {
4935
4995
  block: {},
4936
4996
  viewport: {}
4937
4997
  },
4938
4998
  setup(e) {
4939
- let t = e, { t: n } = Wt(), { syntax: r } = sn(), i = P(() => Ne(t.block.url, r) || Ne(t.block.thumbnailUrl, r)), a = Ln(() => i.value ? void 0 : t.block.thumbnailUrl || void 0), o = Ln(() => i.value ? t.block.placeholderUrl : void 0), s = P(() => i.value ? null : t.block.thumbnailUrl ? a.value ?? null : Bc(t.block.url)), c = P(() => ({ textAlign: t.block.align })), l = P(() => {
4999
+ let t = e, { t: n } = Gt(), { syntax: r } = cn(), i = P(() => Pe(t.block.url, r) || Pe(t.block.thumbnailUrl, r)), a = Rn(() => i.value ? void 0 : t.block.thumbnailUrl || void 0), o = Rn(() => i.value ? t.block.placeholderUrl : void 0), s = P(() => i.value ? null : t.block.thumbnailUrl ? a.value ?? null : Vc(t.block.url)), c = P(() => ({ textAlign: t.block.align })), l = P(() => {
4940
5000
  let e = t.block.align;
4941
5001
  return {
4942
5002
  maxWidth: "100%",
@@ -4946,7 +5006,7 @@ var Vc = ["src", "alt"], Hc = {
4946
5006
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
4947
5007
  marginRight: e === "center" ? "auto" : void 0
4948
5008
  };
4949
- }), d = P(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), f = P(() => Ne(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
5009
+ }), d = P(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), f = P(() => Pe(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
4950
5010
  return (t, r) => (O(), S("div", {
4951
5011
  class: "tpl:w-full",
4952
5012
  style: u(c.value)
@@ -4959,16 +5019,16 @@ var Vc = ["src", "alt"], Hc = {
4959
5019
  src: N(o),
4960
5020
  alt: e.block.alt,
4961
5021
  style: u(d.value)
4962
- }, null, 12, Vc), w(Rc)], 4)) : i.value ? (O(), S("div", {
5022
+ }, null, 12, Hc), w(zc)], 4)) : i.value ? (O(), S("div", {
4963
5023
  key: 1,
4964
5024
  class: "tpl:relative tpl:!flex tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
4965
5025
  style: u([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, l.value])
4966
- }, [w(N(Jr), {
5026
+ }, [w(N(Yr), {
4967
5027
  size: 36,
4968
5028
  "stroke-width": 1.5,
4969
5029
  class: "tpl:text-[var(--tpl-primary)]",
4970
5030
  style: { opacity: "0.5" }
4971
- }), x("span", Hc, [w(Nr, { text: f.value }, null, 8, ["text"])])], 4)) : s.value ? (O(), S(M, { key: 2 }, [e.block.url ? (O(), S("a", {
5031
+ }), x("span", Uc, [w(Pr, { text: f.value }, null, 8, ["text"])])], 4)) : s.value ? (O(), S(M, { key: 2 }, [e.block.url ? (O(), S("a", {
4972
5032
  key: 0,
4973
5033
  href: e.block.url,
4974
5034
  target: "_blank",
@@ -4981,7 +5041,7 @@ var Vc = ["src", "alt"], Hc = {
4981
5041
  src: s.value,
4982
5042
  alt: e.block.alt,
4983
5043
  style: u(d.value)
4984
- }, null, 12, Wc), w(Rc, { "hover-effect": "" })], 12, Uc)) : (O(), S("div", {
5044
+ }, null, 12, Gc), w(zc, { "hover-effect": "" })], 12, Wc)) : (O(), S("div", {
4985
5045
  key: 1,
4986
5046
  class: "tpl:relative tpl:inline-block",
4987
5047
  style: u(l.value)
@@ -4990,51 +5050,54 @@ var Vc = ["src", "alt"], Hc = {
4990
5050
  src: s.value,
4991
5051
  alt: e.block.alt,
4992
5052
  style: u(d.value)
4993
- }, null, 12, Gc), w(Rc)], 4))], 64)) : (O(), S("div", Kc, [w(N(Jr), {
5053
+ }, null, 12, Kc), w(zc)], 4))], 64)) : (O(), S("div", qc, [w(N(Yr), {
4994
5054
  size: 40,
4995
5055
  "stroke-width": 1.5,
4996
5056
  class: "tpl:text-[var(--tpl-border-light)]"
4997
5057
  }), x("span", null, k(N(n).video.addVideo), 1)]))], 4));
4998
5058
  }
4999
- }), Jc = {
5000
- section: vc,
5001
- title: wa,
5002
- paragraph: aa,
5003
- image: Ki,
5004
- button: Fr,
5005
- divider: Ei,
5006
- video: qc,
5007
- social: Oc,
5008
- menu: Xi,
5009
- table: Lc,
5010
- spacer: jc,
5011
- html: Mi,
5059
+ }), Yc = {
5060
+ section: yc,
5061
+ title: Ta,
5062
+ paragraph: oa,
5063
+ image: qi,
5064
+ button: Ir,
5065
+ divider: Di,
5066
+ video: Jc,
5067
+ social: kc,
5068
+ menu: Zi,
5069
+ table: Rc,
5070
+ spacer: Mc,
5071
+ html: Ni,
5012
5072
  countdown: y(() => import("./CountdownBlock-D1fsNsyS.js"))
5013
5073
  };
5014
- function Yc(t) {
5015
- let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: c } = Wt(i), l = P(() => ue(ue(sr(i), Dr(n.content.value.settings?.locale)), r.blockDefaults ?? {}));
5074
+ function Xc(t) {
5075
+ let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: c } = Gt(i), l = P(() => ue(ue(ue(cr(i), Or(n.content.value.settings?.locale)), ye(n.content.value.settings) === "rtl" ? {
5076
+ title: { textAlign: "right" },
5077
+ table: { textAlign: "right" }
5078
+ } : {}), r.blockDefaults ?? {}));
5016
5079
  n.setUiTheme(r.uiTheme ?? "auto");
5017
- let { resolvedTheme: u } = Gn(P(() => n.state.uiTheme)), d = _(r.theme ?? {}), { themeStyles: f } = qn({
5080
+ let { resolvedTheme: u } = Kn(P(() => n.state.uiTheme)), d = _(r.theme ?? {}), { themeStyles: f } = Jn({
5018
5081
  themeOverrides: d,
5019
5082
  resolvedTheme: u,
5020
5083
  extraStyles: () => ({
5021
5084
  "--tpl-drop-text": `"${i.canvas.dropHere}"`,
5022
5085
  ...t.themeExtraStyles?.()
5023
5086
  })
5024
- }), p = gn({
5087
+ }), p = _n({
5025
5088
  content: n.content,
5026
5089
  setContent: (e, t) => n.setContent(e, t),
5027
5090
  ...t.historyOptions
5028
5091
  });
5029
- Cn(n, p);
5030
- let m = vn({
5092
+ wn(n, p);
5093
+ let m = yn({
5031
5094
  addBlock: n.addBlock,
5032
5095
  removeBlock: n.removeBlock,
5033
5096
  updateBlock: n.updateBlock,
5034
5097
  selectBlock: n.selectBlock,
5035
5098
  findBlockLocation: n.findBlockLocation,
5036
5099
  blockDefaults: () => l.value
5037
- }), g = xn(n), v = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? bn({
5100
+ }), g = Sn(n), v = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? xn({
5038
5101
  content: n.content,
5039
5102
  isDirty: () => n.state.isDirty,
5040
5103
  ...t.autoSaveOptions
@@ -5042,30 +5105,30 @@ function Yc(t) {
5042
5105
  v && (y = s(p.isNavigating, (e) => {
5043
5106
  e ? v.pause() : v.resume();
5044
5107
  }));
5045
- let b = Wn(n, {
5108
+ let b = Gn(n, {
5046
5109
  t: o,
5047
5110
  format: c
5048
- }, r.customBlocks ?? []), x = Jt(r.colors);
5049
- if (x.allowCustomIgnored && Gt.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), x.invalidPresets.length > 0 && Gt.warn(`config.colors.presets skipped invalid entries: ${x.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), x.allowCustom === !1) {
5050
- let e = or(x.presets, r.blockDefaults, r.templateDefaults);
5051
- e.length > 0 && Gt.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.`);
5052
- }
5053
- let S = ir(r.templateSettings);
5054
- for (let e of S.unknown) Gt.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${nr.join(", ")}) — skipping it.`);
5055
- let C = Jn();
5056
- $n(C, Jc);
5111
+ }, r.customBlocks ?? []), x = Yt(r.colors);
5112
+ if (x.allowCustomIgnored && Kt.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), x.invalidPresets.length > 0 && Kt.warn(`config.colors.presets skipped invalid entries: ${x.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), x.allowCustom === !1) {
5113
+ let e = sr(x.presets, r.blockDefaults, r.templateDefaults);
5114
+ e.length > 0 && Kt.warn(`config.colors locks custom colours, but these block/template default colours fall outside colors.presets: ${e.join(", ")}. New blocks start on a colour the palette can't reselect — set blockDefaults / templateDefaults from the same palette.`);
5115
+ }
5116
+ let S = ar(r.templateSettings);
5117
+ for (let e of S.unknown) Kt.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${rr.join(", ")}) — skipping it.`);
5118
+ let C = Yn();
5119
+ er(C, Yc);
5057
5120
  let w = /* @__PURE__ */ new Set();
5058
5121
  function T(e) {
5059
5122
  for (let t of e) {
5060
- C.registerCustom(t, wi);
5061
- for (let e of kr(t, x)) w.has(e.id) || (w.add(e.id), Gt.warn(e.message));
5123
+ C.registerCustom(t, Ti);
5124
+ for (let e of Ar(t, x)) w.has(e.id) || (w.add(e.id), Kt.warn(e.message));
5062
5125
  }
5063
5126
  }
5064
5127
  r.customBlocks?.length && T(r.customBlocks);
5065
- let E = Nn();
5128
+ let E = Pn();
5066
5129
  if (h() && j(E.dispose), t.containerEl) {
5067
5130
  let e = t.containerEl;
5068
- Qe(document, "pointerdown", (t) => {
5131
+ $e(document, "pointerdown", (t) => {
5069
5132
  let n = e.value;
5070
5133
  n && (t.composedPath?.() ?? []).includes(n) && E.claim();
5071
5134
  }, { capture: !0 });
@@ -5079,7 +5142,7 @@ function Yc(t) {
5079
5142
  v?.flush();
5080
5143
  }
5081
5144
  function O(e) {
5082
- E.isActive() && jr(e, {
5145
+ E.isActive() && Mr(e, {
5083
5146
  history: p,
5084
5147
  selectBlock: (e) => n.selectBlock(e),
5085
5148
  getSelectedBlockId: () => n.state.selectedBlockId,
@@ -5091,31 +5154,31 @@ function Yc(t) {
5091
5154
  onCancelPick: () => t.capabilities?.savedBlocks?.cancelPicking()
5092
5155
  });
5093
5156
  }
5094
- Qe(document, "keydown", O);
5157
+ $e(document, "keydown", O);
5095
5158
  let k = _(null);
5096
- e(Ot, t.editorRoot ?? document), e(ct, k), e(xt, i), e(kt, n), e(Bt, p), e(Ct, m), e(Et, g), e(St, a), e(yt, f), e(ut, u), e(Pt, l), e(ot, r.locale), e(Rt, C), e(Dt, r.customBlocks ?? []), e(at, r.paletteBlocks), e(Ut, er(r.htmlBlockPreview)), e(zt, x), e(st, S.fields), e(Ft, Yn(n.content, C));
5097
- let A = se(r.mergeTags?.syntax);
5098
- e(it, r.mergeTags?.tags ?? []), e(At, A), e(ht, r.mergeTags?.onRequest ?? null), e(rt, r.mergeTags?.autocomplete !== !1);
5159
+ e(kt, t.editorRoot ?? document), e(lt, k), e(St, i), e(At, n), e(Vt, p), e(wt, m), e(Dt, g), e(Ct, a), e(bt, f), e(dt, u), e(Ft, l), e(st, r.locale), e(zt, C), e(Ot, r.customBlocks ?? []), e(ot, r.paletteBlocks), e(Wt, tr(r.htmlBlockPreview)), e(Bt, x), e(ct, S.fields), e(It, Xn(n.content, C));
5160
+ let A = Ce(r.mergeTags?.syntax);
5161
+ e(at, r.mergeTags?.tags ?? []), e(jt, A), e(gt, r.mergeTags?.onRequest ?? null), e(it, r.mergeTags?.autocomplete !== !1);
5099
5162
  let ee = _(ge(r.mergeTags?.tags ?? []));
5100
- e(tt, ee);
5101
- let M = Fn({
5163
+ e(nt, ee);
5164
+ let M = In({
5102
5165
  resolvePreview: r.resolvePreview,
5103
5166
  getContent: () => n.content.value,
5104
5167
  isActive: () => n.state.previewMode
5105
5168
  });
5106
- e(dt, M), e(gt, r.resolvePreview);
5169
+ e(ft, M), e(_t, r.resolvePreview);
5107
5170
  let N = P(() => !(n.state.previewMode && M.isConfigured));
5108
- e(Lt, N);
5109
- let te = Rn();
5110
- e(mt, te), e(jt, _(!1)), e(vt, _(!1)), e(nt, r.logicTags?.tags ?? []), e(_t, r.logicTags?.pairs ?? []), e(ft, r.logicTags?.onRequest ?? null), e(Vt, zn()), e(pt, r.onRequestMedia ?? null), e(wt, r.resolveImageUrl ? In(r.resolveImageUrl) : null), e(Mt, r.displayConditions?.conditions ?? []), e(Nt, r.displayConditions?.allowCustom ?? !1), e(Tt, t.capabilities ?? {}), e(Ht, b);
5111
- let F = Bn(r.lint) ? null : Vn({
5171
+ e(Rt, N);
5172
+ let te = zn();
5173
+ e(ht, te), e(Mt, _(!1)), e(yt, _(!1)), e(rt, r.logicTags?.tags ?? []), e(vt, r.logicTags?.pairs ?? []), e(pt, r.logicTags?.onRequest ?? null), e(Ht, Bn()), e(mt, r.onRequestMedia ?? null), e(Tt, r.resolveImageUrl ? Ln(r.resolveImageUrl) : null), e(Nt, r.displayConditions?.conditions ?? []), e(Pt, r.displayConditions?.allowCustom ?? !1), e(Et, t.capabilities ?? {}), e(Ut, b);
5174
+ let F = Vn(r.lint) ? null : Hn({
5112
5175
  content: n.content,
5113
5176
  options: r.lint ?? {},
5114
5177
  updateBlock: n.updateBlock,
5115
5178
  updateSettings: n.updateSettings,
5116
5179
  removeBlock: n.removeBlock
5117
5180
  });
5118
- e(bt, F);
5181
+ e(xt, F);
5119
5182
  function I() {
5120
5183
  y?.(), F?.destroy(), v?.destroy(), p.destroy();
5121
5184
  }
@@ -5141,4 +5204,4 @@ function Yc(t) {
5141
5204
  };
5142
5205
  }
5143
5206
  //#endregion
5144
- export { En as $, Kr as A, hr as B, di as C, $r as D, ei as E, zr as F, yr as G, Sr as H, Rr as I, tr as J, vr as K, Ir as L, Ur as M, Hr as N, Zr as O, Br as P, yn as Q, Fr as R, pi as S, ai as T, xr as U, Cr as V, br as W, Hn as X, Un as Y, Fn as Z, Pi as _, Oc as a, Dn as at, wi as b, mc as c, ca as d, kn as et, oa as f, Ki as g, Xi as h, jc as i, wn as it, Wr as j, qr as k, wa as l, aa as m, qc as n, Sn as nt, xc as o, sa as p, nr as q, Lc as r, fn as rt, vc as s, Yc as t, On as tt, Sa as u, Mi as v, oi as w, hi as x, Ei as y, Or as z };
5207
+ export { Dn as $, qr as A, gr as B, fi as C, ei as D, ti as E, Br as F, br as G, Cr as H, zr as I, nr as J, yr as K, Lr as L, Wr as M, Ur as N, Qr as O, Vr as P, bn as Q, Ir as R, mi as S, oi as T, Sr as U, wr as V, xr as W, Un as X, Wn as Y, In as Z, Fi as _, kc as a, On as at, Ti as b, hc as c, la as d, An as et, sa as f, qi as g, Zi as h, Mc as i, Tn as it, Gr as j, Jr as k, Ta as l, oa as m, Jc as n, Cn as nt, Sc as o, ca as p, rr as q, Rc as r, pn as rt, yc as s, Xc as t, kn as tt, Ca as u, Ni as v, si as w, gi as x, Di as y, kr as z };