@templatical/editor 0.24.0 → 0.25.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 (231) hide show
  1. package/dist/{AiChatSidebar-Nq-jrGaf.js → AiChatSidebar-CIkS8DsO.js} +15 -15
  2. package/dist/{AiFeatureMenu-tg_zMKMK.js → AiFeatureMenu-Cji1LBJJ.js} +7 -7
  3. package/dist/{BlockIssueBadge-Bd94kIiw.js → BlockIssueBadge-BQiT0FML.js} +5 -5
  4. package/dist/{BlockPreviewCanvas-B34aMhHe.js → BlockPreviewCanvas-DAnwZofk.js} +11 -7
  5. package/dist/{CloudEditor-DjN_9Yso.js → CloudEditor-CXaft6Ej.js} +73 -71
  6. package/dist/{CollaboratorBar-Bhazzcg-.js → CollaboratorBar-BR-rL2wG.js} +4 -4
  7. package/dist/{ColorPicker-DXGrcJxJ.js → ColorPicker-B4ArSUhy.js} +7 -9
  8. package/dist/{CommentsSidebar-ku1kt10u.js → CommentsSidebar-Bm5GLDts.js} +16 -16
  9. package/dist/{CountdownBlock-CN9Lc23W.js → CountdownBlock-CIVAQDVu.js} +3 -3
  10. package/dist/{CountdownToolbar-VEsIyKV6.js → CountdownToolbar-DBmb3tlb.js} +4 -4
  11. package/dist/DesignReferenceSidebar-CnyJ8L-j.js +264 -0
  12. package/dist/{IssuesPanel-CEfzOpS_.js → IssuesPanel-D3XgmYCt.js} +8 -8
  13. package/dist/{LoadingTrack-KIcREPlS.js → LoadingTrack-XK_eeUdq.js} +1 -1
  14. package/dist/{MergeTagModeToggle-C3V2xGAg.js → MergeTagModeToggle-BK0fI3P2.js} +6 -6
  15. package/dist/{MergeTagSuggestion-Dn8ww9nV.js → MergeTagSuggestion-D0OHRv7L.js} +8 -12
  16. package/dist/{NumberWithSuffix-BGocZkj9.js → NumberWithSuffix-Cjj9UNIp.js} +2 -2
  17. package/dist/{ParagraphEditor-D-fz0kUb.js → ParagraphEditor-jGnbJEA2.js} +45 -45
  18. package/dist/{RichTextEditorContent-DydrqFts.js → RichTextEditorContent-DaaKdzjb.js} +8 -8
  19. package/dist/{SaveBlockDialog-BDDFbAWF.js → SaveBlockDialog-B3ngEldp.js} +12 -12
  20. package/dist/{SavedBlocksBrowserModal-Djik_fJh.js → SavedBlocksBrowserModal-DawN3XaB.js} +11 -11
  21. package/dist/{SavedBlocksPanels-CxemyPxL.js → SavedBlocksPanels-eDC9Y46N.js} +2 -2
  22. package/dist/{SavedBlocksPickBar-Dlhipmob.js → SavedBlocksPickBar-CQbbXmzj.js} +4 -4
  23. package/dist/{SnapshotHistory-DPbM4ons.js → SnapshotHistory-COxKtHM-.js} +10 -10
  24. package/dist/{TemplateScoringPanel-BFYgweDX.js → TemplateScoringPanel-bUuqOO1z.js} +16 -16
  25. package/dist/{TestEmailModal-IZfwgya-.js → TestEmailModal-CytkbZVQ.js} +89 -58
  26. package/dist/{TestEmailPanel-QEEx_PkN.js → TestEmailPanel-CHUY7VZn.js} +2 -2
  27. package/dist/{TitleEditor-BB4YlIBF.js → TitleEditor-aMR1bOyY.js} +13 -13
  28. package/dist/TplModal-fmYNYdyp.js +49 -0
  29. package/dist/{blockTypeIcons-Wzd7W_2x.js → blockTypeIcons-C6b9rg88.js} +26 -26
  30. package/dist/bundle-stats.json +6 -6
  31. package/dist/{ca-CO4nq6TX.js → ca-8Dvbwo50.js} +5 -0
  32. package/dist/cdn/chunks/{AiChatSidebar-CN-0DIuA.js → AiChatSidebar-bkBKpNgE.js} +9 -9
  33. package/dist/cdn/chunks/{AiChatSidebar-CN-0DIuA.js.map → AiChatSidebar-bkBKpNgE.js.map} +1 -1
  34. package/dist/cdn/chunks/{AiFeatureMenu-B5pV6Iux.js → AiFeatureMenu-CI4SYTq2.js} +6 -6
  35. package/dist/cdn/chunks/{AiFeatureMenu-B5pV6Iux.js.map → AiFeatureMenu-CI4SYTq2.js.map} +1 -1
  36. package/dist/cdn/chunks/{BlockIssueBadge-aanOjeyi.js → BlockIssueBadge-CRnx8Dv9.js} +5 -5
  37. package/dist/cdn/chunks/{BlockIssueBadge-aanOjeyi.js.map → BlockIssueBadge-CRnx8Dv9.js.map} +1 -1
  38. package/dist/cdn/chunks/{BlockPreviewCanvas-Dc4F4HzY.js → BlockPreviewCanvas-CXCWhqbp.js} +13 -9
  39. package/dist/cdn/chunks/BlockPreviewCanvas-CXCWhqbp.js.map +1 -0
  40. package/dist/cdn/chunks/{CloudEditor-CeKaWWO5.js → CloudEditor-D-t7RyDh.js} +67 -65
  41. package/dist/cdn/chunks/CloudEditor-D-t7RyDh.js.map +1 -0
  42. package/dist/cdn/chunks/{CollaboratorBar-CEdKr0A2.js → CollaboratorBar-DcXYo47v.js} +5 -5
  43. package/dist/cdn/chunks/{CollaboratorBar-CEdKr0A2.js.map → CollaboratorBar-DcXYo47v.js.map} +1 -1
  44. package/dist/cdn/chunks/{ColorPicker-BckwEfcN.js → ColorPicker-_1O7YU2z.js} +8 -10
  45. package/dist/cdn/chunks/{ColorPicker-BckwEfcN.js.map → ColorPicker-_1O7YU2z.js.map} +1 -1
  46. package/dist/cdn/chunks/{CommentsSidebar-6PfpJKh-.js → CommentsSidebar-BEgLBYX-.js} +7 -7
  47. package/dist/cdn/chunks/{CommentsSidebar-6PfpJKh-.js.map → CommentsSidebar-BEgLBYX-.js.map} +1 -1
  48. package/dist/cdn/chunks/{CountdownBlock-CoBmvQKv.js → CountdownBlock-CPnQA44g.js} +4 -4
  49. package/dist/cdn/chunks/{CountdownBlock-CoBmvQKv.js.map → CountdownBlock-CPnQA44g.js.map} +1 -1
  50. package/dist/cdn/chunks/{CountdownToolbar-CdV8RTQu.js → CountdownToolbar-Cdo-30U4.js} +5 -5
  51. package/dist/cdn/chunks/{CountdownToolbar-CdV8RTQu.js.map → CountdownToolbar-Cdo-30U4.js.map} +1 -1
  52. package/dist/cdn/chunks/DesignReferenceSidebar-DPqBr-ut.js +223 -0
  53. package/dist/cdn/chunks/{DesignReferenceSidebar-BjlaP69l.js.map → DesignReferenceSidebar-DPqBr-ut.js.map} +1 -1
  54. package/dist/cdn/chunks/{IssuesPanel-CkkEnhxZ.js → IssuesPanel-DoQWb23r.js} +5 -5
  55. package/dist/cdn/chunks/{IssuesPanel-CkkEnhxZ.js.map → IssuesPanel-DoQWb23r.js.map} +1 -1
  56. package/dist/cdn/chunks/{LoadingTrack-D-CW2tUa.js → LoadingTrack-G2tuXqCJ.js} +2 -2
  57. package/dist/cdn/chunks/{LoadingTrack-D-CW2tUa.js.map → LoadingTrack-G2tuXqCJ.js.map} +1 -1
  58. package/dist/cdn/chunks/{MergeTagModeToggle-DmtR300G.js → MergeTagModeToggle-CWuVC3MU.js} +6 -6
  59. package/dist/cdn/chunks/{MergeTagModeToggle-DmtR300G.js.map → MergeTagModeToggle-CWuVC3MU.js.map} +1 -1
  60. package/dist/cdn/chunks/{MergeTagSuggestion-Cvlkw_PM.js → MergeTagSuggestion-Ces5Ua78.js} +3 -3
  61. package/dist/cdn/chunks/{MergeTagSuggestion-Cvlkw_PM.js.map → MergeTagSuggestion-Ces5Ua78.js.map} +1 -1
  62. package/dist/cdn/chunks/{NumberWithSuffix-BOcMN26z.js → NumberWithSuffix-DQ4sgvt5.js} +3 -3
  63. package/dist/cdn/chunks/{NumberWithSuffix-BOcMN26z.js.map → NumberWithSuffix-DQ4sgvt5.js.map} +1 -1
  64. package/dist/cdn/chunks/{ParagraphEditor-CX1yks4N.js → ParagraphEditor-Uv5LPF3W.js} +131 -131
  65. package/dist/cdn/chunks/{ParagraphEditor-CX1yks4N.js.map → ParagraphEditor-Uv5LPF3W.js.map} +1 -1
  66. package/dist/cdn/chunks/{RichTextEditorContent-z9s7qxs3.js → RichTextEditorContent-Bt3s09qY.js} +7 -7
  67. package/dist/cdn/chunks/{RichTextEditorContent-z9s7qxs3.js.map → RichTextEditorContent-Bt3s09qY.js.map} +1 -1
  68. package/dist/cdn/chunks/{SaveBlockDialog-D2CtW4lC.js → SaveBlockDialog-BAew6EFd.js} +10 -10
  69. package/dist/cdn/chunks/{SaveBlockDialog-D2CtW4lC.js.map → SaveBlockDialog-BAew6EFd.js.map} +1 -1
  70. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DdUKJzzF.js → SavedBlocksBrowserModal-Dn4IJDJW.js} +9 -9
  71. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DdUKJzzF.js.map → SavedBlocksBrowserModal-Dn4IJDJW.js.map} +1 -1
  72. package/dist/cdn/chunks/{SavedBlocksPanels-1kVbqdpc.js → SavedBlocksPanels-B62U5DYW.js} +3 -3
  73. package/dist/cdn/chunks/{SavedBlocksPanels-1kVbqdpc.js.map → SavedBlocksPanels-B62U5DYW.js.map} +1 -1
  74. package/dist/cdn/chunks/{SavedBlocksPickBar--noDJIyN.js → SavedBlocksPickBar-CyRKZg2T.js} +5 -5
  75. package/dist/cdn/chunks/{SavedBlocksPickBar--noDJIyN.js.map → SavedBlocksPickBar-CyRKZg2T.js.map} +1 -1
  76. package/dist/cdn/chunks/{SnapshotHistory-DFuNJRc9.js → SnapshotHistory-QQt0DKey.js} +7 -7
  77. package/dist/cdn/chunks/{SnapshotHistory-DFuNJRc9.js.map → SnapshotHistory-QQt0DKey.js.map} +1 -1
  78. package/dist/cdn/chunks/{TemplateScoringPanel-DG1dAjQk.js → TemplateScoringPanel-BwyCMcit.js} +67 -67
  79. package/dist/cdn/chunks/{TemplateScoringPanel-DG1dAjQk.js.map → TemplateScoringPanel-BwyCMcit.js.map} +1 -1
  80. package/dist/cdn/chunks/{TestEmailModal-CiPfOn2v.js → TestEmailModal-B5UQkDJp.js} +89 -58
  81. package/dist/cdn/chunks/TestEmailModal-B5UQkDJp.js.map +1 -0
  82. package/dist/cdn/chunks/{TestEmailPanel-saOfnpjz.js → TestEmailPanel-CvuBq4RA.js} +3 -3
  83. package/dist/cdn/chunks/{TestEmailPanel-saOfnpjz.js.map → TestEmailPanel-CvuBq4RA.js.map} +1 -1
  84. package/dist/cdn/chunks/{TitleEditor-08KM_VzZ.js → TitleEditor-B9W954u9.js} +13 -13
  85. package/dist/cdn/chunks/{TitleEditor-08KM_VzZ.js.map → TitleEditor-B9W954u9.js.map} +1 -1
  86. package/dist/cdn/chunks/TplModal-B8UsvWc8.js +50 -0
  87. package/dist/cdn/chunks/TplModal-B8UsvWc8.js.map +1 -0
  88. package/dist/cdn/chunks/{blockTypeIcons-DvohkXqi.js → blockTypeIcons-B8s3_ahs.js} +2 -2
  89. package/dist/cdn/chunks/{blockTypeIcons-DvohkXqi.js.map → blockTypeIcons-B8s3_ahs.js.map} +1 -1
  90. package/dist/cdn/chunks/{ca-CO4nq6TX.js → ca-8Dvbwo50.js} +6 -1
  91. package/dist/cdn/chunks/{ca-CO4nq6TX.js.map → ca-8Dvbwo50.js.map} +1 -1
  92. package/dist/cdn/chunks/{cloud-C2I0P9qj.js → cloud-DOaGUdR0.js} +13 -17
  93. package/dist/cdn/chunks/{cloud-C2I0P9qj.js.map → cloud-DOaGUdR0.js.map} +1 -1
  94. package/dist/{de-CUeaFJph.js → cdn/chunks/de-CieSMCUp.js} +7 -0
  95. package/dist/cdn/chunks/{de-CUeaFJph.js.map → de-CieSMCUp.js.map} +1 -1
  96. package/dist/cdn/chunks/{dist-CxTt8FRE.js → dist-B8AX9np4.js} +16 -12
  97. package/dist/cdn/chunks/dist-B8AX9np4.js.map +1 -0
  98. package/dist/cdn/chunks/{dist-CiBEt0VR.js → dist-lZgXNk4G.js} +36 -20
  99. package/dist/cdn/chunks/dist-lZgXNk4G.js.map +1 -0
  100. package/dist/cdn/chunks/{draggable-D840DIZB.js → draggable-JcMTNF3U.js} +14 -15
  101. package/dist/cdn/chunks/{draggable-D840DIZB.js.map → draggable-JcMTNF3U.js.map} +1 -1
  102. package/dist/{en-zCYIPAL5.js → cdn/chunks/en-D0t_2Fq_.js} +7 -0
  103. package/dist/cdn/chunks/{en-zCYIPAL5.js.map → en-D0t_2Fq_.js.map} +1 -1
  104. package/dist/cdn/chunks/{es-BSiH7YkP.js → es-DwDoNuLM.js} +6 -1
  105. package/dist/cdn/chunks/{es-BSiH7YkP.js.map → es-DwDoNuLM.js.map} +1 -1
  106. package/dist/cdn/chunks/{extensions-DBWF_lxx.js → extensions-5jgtarD-.js} +30 -26
  107. package/dist/cdn/chunks/{extensions-DBWF_lxx.js.map → extensions-5jgtarD-.js.map} +1 -1
  108. package/dist/{fr-DTVJ3det.js → cdn/chunks/fr-CSEEzv1_.js} +7 -0
  109. package/dist/cdn/chunks/{fr-DTVJ3det.js.map → fr-CSEEzv1_.js.map} +1 -1
  110. package/dist/cdn/chunks/{htmlparser-CZa2V5cF.js → htmlparser-CPhs2cYE.js} +3 -5
  111. package/dist/cdn/chunks/{htmlparser-CZa2V5cF.js.map → htmlparser-CPhs2cYE.js.map} +1 -1
  112. package/dist/cdn/chunks/{icons-Cqxvwgz7.js → icons-Cp4ZIJw-.js} +31 -31
  113. package/dist/cdn/chunks/{icons-Cqxvwgz7.js.map → icons-Cp4ZIJw-.js.map} +1 -1
  114. package/dist/cdn/chunks/keys-BxPCfHBH.js +12 -0
  115. package/dist/cdn/chunks/keys-BxPCfHBH.js.map +1 -0
  116. package/dist/cdn/chunks/{liquid.browser-BJOEu6Cg.js → liquid.browser-CZaQe87t.js} +756 -718
  117. package/dist/cdn/chunks/liquid.browser-CZaQe87t.js.map +1 -0
  118. package/dist/cdn/chunks/{nl-BqSquFS3.js → nl-xyk1T2mA.js} +6 -1
  119. package/dist/cdn/chunks/{nl-BqSquFS3.js.map → nl-xyk1T2mA.js.map} +1 -1
  120. package/dist/{pt-BR-CMljK37h.js → cdn/chunks/pt-BR-yr6uOJgn.js} +7 -0
  121. package/dist/cdn/chunks/{pt-BR-CMljK37h.js.map → pt-BR-yr6uOJgn.js.map} +1 -1
  122. package/dist/cdn/chunks/{pusher-R0v5p99W.js → pusher-kUlkqMvR.js} +21 -28
  123. package/dist/cdn/chunks/{pusher-R0v5p99W.js.map → pusher-kUlkqMvR.js.map} +1 -1
  124. package/dist/cdn/chunks/{rolldown-runtime-Dqa2HsxW.js → rolldown-runtime-B0aSnxlc.js} +2 -2
  125. package/dist/cdn/chunks/{src-YVsPFLNJ.js → src-B8W42vT-.js} +153 -153
  126. package/dist/cdn/chunks/{src-YVsPFLNJ.js.map → src-B8W42vT-.js.map} +1 -1
  127. package/dist/cdn/chunks/{src-C45kfA2t.js → src-C417zeUg.js} +22 -26
  128. package/dist/cdn/chunks/{src-C45kfA2t.js.map → src-C417zeUg.js.map} +1 -1
  129. package/dist/cdn/chunks/{src-BCJna-6p.js → src-CZjSXPYq.js} +9 -4
  130. package/dist/cdn/chunks/src-CZjSXPYq.js.map +1 -0
  131. package/dist/cdn/chunks/{src-XQmI_Xs1.js → src-Dpj0x27M.js} +523 -787
  132. package/dist/cdn/chunks/{src-XQmI_Xs1.js.map → src-Dpj0x27M.js.map} +1 -1
  133. package/dist/cdn/chunks/{styles-BohMfIBd.js → styles-DANwMzW2.js} +770 -751
  134. package/dist/cdn/chunks/styles-DANwMzW2.js.map +1 -0
  135. package/dist/cdn/chunks/timeouts-SsLMC4a3.js +6 -0
  136. package/dist/cdn/chunks/{timeouts-Bmi_yePw.js.map → timeouts-SsLMC4a3.js.map} +1 -1
  137. package/dist/cdn/chunks/{tiptap-DRKu__AX.js → tiptap-rsib432n.js} +132 -119
  138. package/dist/cdn/chunks/tiptap-rsib432n.js.map +1 -0
  139. package/dist/cdn/chunks/{useAliveFlag-aanU8uqB.js → useAliveFlag-CseYNikC.js} +2 -2
  140. package/dist/cdn/chunks/{useAliveFlag-aanU8uqB.js.map → useAliveFlag-CseYNikC.js.map} +1 -1
  141. package/dist/cdn/chunks/{useCloudI18n-Bem8DUjH.js → useCloudI18n-CjVzv11v.js} +3 -3
  142. package/dist/cdn/chunks/{useCloudI18n-Bem8DUjH.js.map → useCloudI18n-CjVzv11v.js.map} +1 -1
  143. package/dist/cdn/chunks/{useEditorCore-B_vwuKdI.js → useEditorCore-DfW-thCr.js} +484 -411
  144. package/dist/cdn/chunks/useEditorCore-DfW-thCr.js.map +1 -0
  145. package/dist/cdn/chunks/{useI18n-graz19nI.js → useI18n-DniEFeIl.js} +3 -3
  146. package/dist/cdn/chunks/{useI18n-graz19nI.js.map → useI18n-DniEFeIl.js.map} +1 -1
  147. package/dist/cdn/chunks/{useMergeTag-rTzAFMlr.js → useMergeTag-Bk9_f5cc.js} +7 -7
  148. package/dist/cdn/chunks/{useMergeTag-rTzAFMlr.js.map → useMergeTag-Bk9_f5cc.js.map} +1 -1
  149. package/dist/cdn/chunks/{usePopoverPosition-BaFxLP3w.js → usePopoverPosition-C4xFJCJ2.js} +3 -3
  150. package/dist/cdn/chunks/{usePopoverPosition-BaFxLP3w.js.map → usePopoverPosition-C4xFJCJ2.js.map} +1 -1
  151. package/dist/cdn/editor.css +1 -1
  152. package/dist/cdn/editor.js +24 -22
  153. package/dist/cdn/editor.js.map +1 -1
  154. package/dist/{check-BpQDKiPz.js → check-CIhIDh4h.js} +1 -1
  155. package/dist/{chevron-down-j8GrdTyz.js → chevron-down-CZ0m6G3s.js} +1 -1
  156. package/dist/{chevron-up-BACyVhyC.js → chevron-up-BH_tJLeb.js} +1 -1
  157. package/dist/{circle-alert-CgtE46ND.js → circle-alert-DkEXnGPV.js} +1 -1
  158. package/dist/{clock-BzKLLW5L.js → clock-BDIJZUET.js} +1 -1
  159. package/dist/{cloud-DsUct4Zq.js → cloud-BZn3jqoL.js} +10 -14
  160. package/dist/{createLucideIcon-JWHwTI6N.js → createLucideIcon-AEltGIse.js} +3 -3
  161. package/dist/{cdn/chunks/de-CUeaFJph.js → de-CieSMCUp.js} +5 -2
  162. package/dist/{dist-BAkGuPYm.js → dist-B6Px6GPj.js} +1 -1
  163. package/dist/{dist-9uhI32Q4.js → dist-BxbTVeY0.js} +1 -1
  164. package/dist/{dist-DWu9QWFl.js → dist-CIqhVQ1O.js} +5 -5
  165. package/dist/{dist-DPHqs0Yh.js → dist-CQ0fVBQ3.js} +8 -3
  166. package/dist/{dist-CkCVlKj_.js → dist-CRH880TV.js} +1 -1
  167. package/dist/{dist-ByJVlKWy.js → dist-CcQFPJMF.js} +116 -100
  168. package/dist/{dist-JXOq1hib.js → dist-CkPvZCld.js} +1 -1
  169. package/dist/{dist-IGetXrbO.js → dist-DSIgxp0v.js} +1 -1
  170. package/dist/{dist-DYv_Pttj.js → dist-DT1XnEnj.js} +33 -17
  171. package/dist/{dist-C_kAE1sC.js → dist-DX4x6mQ1.js} +3 -3
  172. package/dist/{dist-DFO896yT.js → dist-Dx71pluS.js} +16 -11
  173. package/dist/{dist-CQiAZlTt.js → dist-DyCHUyRR.js} +1 -1
  174. package/dist/{dist-BIYm-U9x.js → dist-iCEDH3cC.js} +1 -1
  175. package/dist/{dist-C5tigvDF.js → dist-nR6mxyqI.js} +1 -1
  176. package/dist/{cdn/chunks/en-zCYIPAL5.js → en-D0t_2Fq_.js} +5 -2
  177. package/dist/{es-BSiH7YkP.js → es-DwDoNuLM.js} +5 -0
  178. package/dist/{extensions-C0DXnYdA.js → extensions-BjvyU9Ea.js} +16 -12
  179. package/dist/{cdn/chunks/fr-DTVJ3det.js → fr-CSEEzv1_.js} +5 -2
  180. package/dist/{image-up-CQdtq8ge.js → image-up-8ktdYdaZ.js} +1 -1
  181. package/dist/index.d.ts +26 -0
  182. package/dist/{info-BUJBXoE6.js → info-CvrCgTLH.js} +1 -1
  183. package/dist/keys-BFPiNAIn.js +10 -0
  184. package/dist/{liquid.browser-DZLtv26k.js → liquid.browser-BECWFL5Z.js} +755 -717
  185. package/dist/{list-checks-BGHaCSD5.js → list-checks-yzGT93ZL.js} +1 -1
  186. package/dist/{loader-circle-C-Z6kgI6.js → loader-circle-B6euendB.js} +1 -1
  187. package/dist/{message-circle-CEm5qckV.js → message-circle-BMldLVcA.js} +1 -1
  188. package/dist/{nl-BqSquFS3.js → nl-xyk1T2mA.js} +5 -0
  189. package/dist/{pencil-DdwmkKLb.js → pencil-CkKkSd6N.js} +1 -1
  190. package/dist/{cdn/chunks/pt-BR-CMljK37h.js → pt-BR-yr6uOJgn.js} +5 -2
  191. package/dist/{refresh-cw-maKlg0dl.js → refresh-cw-fBPgB97G.js} +1 -1
  192. package/dist/{runtime-dom.esm-bundler-GdMI8WqG.js → runtime-dom.esm-bundler-CBbDt7sw.js} +2 -2
  193. package/dist/{scan-line-BFgesTOY.js → scan-line-CRoEOUiK.js} +1 -1
  194. package/dist/{send-B70aQDrA.js → send-B9Tt2qBi.js} +1 -1
  195. package/dist/{shield-check-B7x5OKt5.js → shield-check-QfZkYeIo.js} +1 -1
  196. package/dist/{sparkles-DVlm1Ipp.js → sparkles-8UeMmZb8.js} +1 -1
  197. package/dist/style.css +1 -1
  198. package/dist/{styles-BTTD0Je4.js → styles-C9GM-bBC.js} +913 -894
  199. package/dist/templatical-editor.js +96 -94
  200. package/dist/{text-align-start-Vay3Kvo2.js → text-align-start-Dn8uIheW.js} +1 -1
  201. package/dist/{trash-2-DE8CmxAG.js → trash-2-DDyvqj0E.js} +1 -1
  202. package/dist/{triangle-alert-Djg6IG8N.js → triangle-alert-B3PydLzl.js} +1 -1
  203. package/dist/{upload-BwwE0U6G.js → upload-hE8ItfyG.js} +2 -2
  204. package/dist/{useAliveFlag-C43EhZFY.js → useAliveFlag-AfoTE_AY.js} +1 -1
  205. package/dist/{useCloudI18n-DGr3b2SX.js → useCloudI18n-B2lItQ6O.js} +2 -2
  206. package/dist/{useEditorCore-DOrGex_t.js → useEditorCore-Ck_hBiGA.js} +986 -915
  207. package/dist/{useI18n-BhAejA-x.js → useI18n-C1KcdX_K.js} +2 -2
  208. package/dist/{useMergeTag-Ce95YIOO.js → useMergeTag-DHCwRMfH.js} +4 -4
  209. package/dist/{usePopoverPosition-vjKJaqJf.js → usePopoverPosition-ClnEh_Cp.js} +13 -13
  210. package/dist/{vue.runtime.esm-bundler-B0xoGkDv.js → vue.runtime.esm-bundler-Xpz-L9Fn.js} +27 -22
  211. package/dist/{x-CkD6A1iB.js → x-C4lETLDx.js} +1 -1
  212. package/package.json +12 -12
  213. package/dist/DesignReferenceSidebar-C4pTMzQE.js +0 -264
  214. package/dist/TplModal-DPH4vV8M.js +0 -49
  215. package/dist/cdn/chunks/BlockPreviewCanvas-Dc4F4HzY.js.map +0 -1
  216. package/dist/cdn/chunks/CloudEditor-CeKaWWO5.js.map +0 -1
  217. package/dist/cdn/chunks/DesignReferenceSidebar-BjlaP69l.js +0 -223
  218. package/dist/cdn/chunks/TestEmailModal-CiPfOn2v.js.map +0 -1
  219. package/dist/cdn/chunks/TplModal-Cu4tBBnF.js +0 -50
  220. package/dist/cdn/chunks/TplModal-Cu4tBBnF.js.map +0 -1
  221. package/dist/cdn/chunks/dist-CiBEt0VR.js.map +0 -1
  222. package/dist/cdn/chunks/dist-CxTt8FRE.js.map +0 -1
  223. package/dist/cdn/chunks/keys-B5uoP9P7.js +0 -12
  224. package/dist/cdn/chunks/keys-B5uoP9P7.js.map +0 -1
  225. package/dist/cdn/chunks/liquid.browser-BJOEu6Cg.js.map +0 -1
  226. package/dist/cdn/chunks/src-BCJna-6p.js.map +0 -1
  227. package/dist/cdn/chunks/styles-BohMfIBd.js.map +0 -1
  228. package/dist/cdn/chunks/timeouts-Bmi_yePw.js +0 -6
  229. package/dist/cdn/chunks/tiptap-DRKu__AX.js.map +0 -1
  230. package/dist/cdn/chunks/useEditorCore-B_vwuKdI.js.map +0 -1
  231. package/dist/keys-BVlG5Ozc.js +0 -10
@@ -1,28 +1,28 @@
1
- import { $ as e, A as t, B as n, D as r, Dt as i, E as a, Et as o, H as s, I as c, J as l, K as u, N as d, O as f, Ot as p, R as m, T as h, W as g, Y as _, Z as v, _ as y, c as b, d as x, et as S, g as C, h as w, j as T, k as E, l as D, m as O, nt as k, q as A, r as j, rt as ee, s as M, tt as te, u as N, v as ne, w as re, x as P, y as ie, z as ae } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
- import { c as F, o as oe, s as se } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
- import { t as ce } from "./upload-BwwE0U6G.js";
4
- import { A as le, B as ue, C as de, D as fe, E as pe, F as me, I as he, L as ge, M as _e, N as ve, O as ye, P as be, R as xe, S as Se, T as Ce, _ as we, a as Te, b as Ee, c as De, d as Oe, f as ke, g as Ae, h as je, i as Me, j as Ne, l as Pe, m as Fe, n as Ie, o as Le, p as Re, r 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-DPHqs0Yh.js";
5
- import { f as qe, g as Je, h as Ye, m as Xe } from "./dist-DYv_Pttj.js";
6
- import { a as Ze, c as Qe, d as $e, i as et, l as tt, o as nt, r as rt, t as it, u as at } from "./usePopoverPosition-vjKJaqJf.js";
7
- import { A as ot, B as st, C as ct, D as lt, E as ut, H 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, V as bt, _ as xt, a as St, b as Ct, d as wt, f as Tt, g as Et, h as Dt, i as Ot, j as kt, k as At, l as jt, m as Mt, n as Nt, o as Pt, p as Ft, s as It, v as Lt, w as Rt, x as zt, y as Bt, z as Vt } from "./keys-BVlG5Ozc.js";
8
- import { t as Ht } from "./useI18n-BhAejA-x.js";
9
- import { t as Ut } from "./createLucideIcon-JWHwTI6N.js";
10
- import { t as Wt } from "./loader-circle-C-Z6kgI6.js";
11
- import { t as Gt } from "./message-circle-CEm5qckV.js";
12
- import { t as Kt } from "./trash-2-DE8CmxAG.js";
13
- import { t as qt } from "./triangle-alert-Djg6IG8N.js";
14
- import { t as Jt } from "./LoadingTrack-KIcREPlS.js";
15
- import { t as Yt } from "./_plugin-vue_export-helper-B3ysoDQm.js";
16
- import "./useCloudI18n-DGr3b2SX.js";
17
- import { t as Xt } from "./useMergeTag-Ce95YIOO.js";
18
- import { t as Zt } from "./useAliveFlag-C43EhZFY.js";
1
+ import { $ as e, A as t, B as n, D as r, Dt as i, E as a, Et as o, H as s, I as c, J as l, K as u, N as d, O as f, Ot as p, R as m, T as h, W as g, Y as _, Z as v, _ as y, c as b, d as x, et as S, g as C, h as w, j as T, k as E, l as D, m as O, nt as k, q as A, r as j, rt as ee, s as M, tt as te, u as N, v as ne, w as re, x as P, y as ie, z as ae } from "./vue.runtime.esm-bundler-Xpz-L9Fn.js";
2
+ import { c as F, o as oe, s as se } from "./runtime-dom.esm-bundler-CBbDt7sw.js";
3
+ import { t as ce } from "./upload-hE8ItfyG.js";
4
+ import { A as le, B as ue, C as de, D as fe, E as pe, F as me, I as he, L as ge, M as _e, N as ve, O as ye, P as be, R as xe, S as Se, T as Ce, V as we, _ as Te, a as Ee, b as De, c as Oe, d as ke, f as Ae, g as je, h as Me, i as Ne, j as Pe, l as Fe, m as Ie, n as Le, o as Re, p as ze, r 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-CQ0fVBQ3.js";
5
+ import { f as Je, g as Ye, h as Xe, m as Ze } from "./dist-DT1XnEnj.js";
6
+ import { a as Qe, c as $e, d as et, i as tt, l as nt, o as rt, r as it, t as at, u as ot } from "./usePopoverPosition-ClnEh_Cp.js";
7
+ import { A as st, B as ct, C as lt, D as ut, E as dt, F as ft, G as pt, H as mt, I as ht, L as gt, M as _t, N as vt, O as yt, P as bt, S as xt, T as St, U as Ct, V as wt, W as Tt, _ as Et, a as Dt, b as Ot, c as kt, f as At, g as jt, h as Mt, j as Nt, k as Pt, m as Ft, n as It, o as Lt, p as Rt, r as zt, s as Bt, u as Vt, v as Ht, w as Ut, x as Wt, y as Gt } from "./keys-BFPiNAIn.js";
8
+ import { t as Kt } from "./useI18n-C1KcdX_K.js";
9
+ import { t as I } from "./createLucideIcon-AEltGIse.js";
10
+ import { t as qt } from "./loader-circle-B6euendB.js";
11
+ import { t as Jt } from "./message-circle-BMldLVcA.js";
12
+ import { t as Yt } from "./trash-2-DDyvqj0E.js";
13
+ import { t as Xt } from "./triangle-alert-B3PydLzl.js";
14
+ import { t as Zt } from "./LoadingTrack-XK_eeUdq.js";
15
+ import { t as Qt } from "./_plugin-vue_export-helper-B3ysoDQm.js";
16
+ import "./useCloudI18n-B2lItQ6O.js";
17
+ import { t as $t } from "./useMergeTag-DHCwRMfH.js";
18
+ import { t as en } from "./useAliveFlag-AfoTE_AY.js";
19
19
  //#region ../core/dist/index.js
20
- function Qt(e) {
20
+ function tn(e) {
21
21
  return e === "1" ? 1 : e === "3" ? 3 : 2;
22
22
  }
23
- function $t(e) {
23
+ function nn(e) {
24
24
  let t = A({
25
- content: e.content ?? Re(e.defaultFontFamily, e.templateDefaults),
25
+ content: e.content ?? ze(e.defaultFontFamily, e.templateDefaults),
26
26
  selectedBlockId: null,
27
27
  viewport: "desktop",
28
28
  darkMode: !1,
@@ -111,7 +111,7 @@ function $t(e) {
111
111
  if (c(n)) return;
112
112
  let o = a(t.content.blocks, n);
113
113
  if (o && o.type === "section") {
114
- if (r < 0 || r >= Qt(o.columns)) return;
114
+ if (r < 0 || r >= tn(o.columns)) return;
115
115
  o.children[r] = o.children[r] || [];
116
116
  let t = o.children[r];
117
117
  i !== void 0 && i < t.length ? t.splice(i, 0, e) : t.push(e);
@@ -144,7 +144,7 @@ function $t(e) {
144
144
  let u;
145
145
  if (r) {
146
146
  let e = a(t.content.blocks, r);
147
- if (!e || e.type !== "section" || i < 0 || i >= Qt(e.columns)) return;
147
+ if (!e || e.type !== "section" || i < 0 || i >= tn(e.columns)) return;
148
148
  e.children[i] = e.children[i] || [], u = e.children[i];
149
149
  } else u = t.content.blocks;
150
150
  let [d] = o.blocks.splice(l, 1);
@@ -173,11 +173,11 @@ function $t(e) {
173
173
  findBlockLocation: u
174
174
  };
175
175
  }
176
- var en = 50, tn = 300, nn = 1500;
177
- function rn(e) {
178
- let { content: t, setContent: r, isRemoteOperation: i, maxSize: a = en } = e, o = _([]), s = _([]), c = _(!1), l = null, u = null, d = n(() => o.value.length > 0), f = n(() => s.value.length > 0);
176
+ var rn = 50, an = 300, on = 1500;
177
+ function sn(e) {
178
+ let { content: t, setContent: r, isRemoteOperation: i, maxSize: a = rn } = e, o = _([]), s = _([]), c = _(!1), l = null, u = null, d = n(() => o.value.length > 0), f = n(() => s.value.length > 0);
179
179
  function p() {
180
- return xe(t.value);
180
+ return qe(t.value);
181
181
  }
182
182
  function m(e) {
183
183
  o.value.push(e), o.value.length > a && o.value.splice(0, o.value.length - a);
@@ -193,21 +193,21 @@ function rn(e) {
193
193
  if (u && u.blockId === e) {
194
194
  clearTimeout(u.timeoutId), u.timeoutId = setTimeout(() => {
195
195
  u = null;
196
- }, tn);
196
+ }, an);
197
197
  return;
198
198
  }
199
199
  h(), m(p()), s.value = [], u = {
200
200
  blockId: e,
201
201
  timeoutId: setTimeout(() => {
202
202
  u = null;
203
- }, tn)
203
+ }, an)
204
204
  };
205
205
  }
206
206
  }
207
207
  function y() {
208
208
  c.value = !0, l && clearTimeout(l), l = setTimeout(() => {
209
209
  c.value = !1, l = null;
210
- }, nn);
210
+ }, on);
211
211
  }
212
212
  function b() {
213
213
  if (o.value.length === 0) return;
@@ -239,7 +239,7 @@ function rn(e) {
239
239
  destroy: C
240
240
  };
241
241
  }
242
- function an(e) {
242
+ function cn(e) {
243
243
  e.type === "table" ? e.rows = e.rows.map((e) => ({
244
244
  ...e,
245
245
  id: Ce(),
@@ -255,17 +255,17 @@ function an(e) {
255
255
  id: Ce()
256
256
  })));
257
257
  }
258
- function on(e) {
258
+ function ln(e) {
259
259
  let { addBlock: t, removeBlock: n, updateBlock: r, selectBlock: i, findBlockLocation: a } = e;
260
260
  function o(n, r, a) {
261
- let o = Pe(n, e.blockDefaults);
261
+ let o = Fe(n, e.blockDefaults);
262
262
  return t(o, r, a), i(o.id), o;
263
263
  }
264
264
  function s(e, n, r) {
265
265
  let o = JSON.parse(JSON.stringify(e));
266
- if (o.id = Ce(), an(o), o.type === "section" && (o.children = o.children.map((e) => e.map((e) => {
266
+ if (o.id = Ce(), cn(o), o.type === "section" && (o.children = o.children.map((e) => e.map((e) => {
267
267
  let t = JSON.parse(JSON.stringify(e));
268
- return t.id = Ce(), an(t), t;
268
+ return t.id = Ce(), cn(t), t;
269
269
  }))), n !== void 0 || r !== void 0) t(o, n, r);
270
270
  else {
271
271
  let i = a?.(e.id) ?? null;
@@ -286,7 +286,7 @@ function on(e) {
286
286
  updateBlockProperty: l
287
287
  };
288
288
  }
289
- function sn(e) {
289
+ function un(e) {
290
290
  let { content: t, isDirty: n, onChange: r, debounce: i = 1e3, enabled: a = !0 } = e, o = null, s = !1;
291
291
  function c() {
292
292
  return typeof a == "function" ? a() : a;
@@ -322,7 +322,7 @@ function sn(e) {
322
322
  destroy: h
323
323
  };
324
324
  }
325
- function cn(e) {
325
+ function dn(e) {
326
326
  let t = A(/* @__PURE__ */ new Set()), r = n(() => t.size > 0);
327
327
  function i(e) {
328
328
  return t.has(e);
@@ -340,7 +340,7 @@ function cn(e) {
340
340
  hasHiddenBlocks: r
341
341
  };
342
342
  }
343
- function ln(e) {
343
+ function fn(e) {
344
344
  let t = _(!1), r = _(!1), i = n(() => !!e.definition.value?.dataSource), a = n(() => i.value && !e.block.value.dataSourceFetched);
345
345
  async function o() {
346
346
  let n = e.definition.value;
@@ -370,7 +370,7 @@ function ln(e) {
370
370
  needsFetch: a
371
371
  };
372
372
  }
373
- function un(e, t) {
373
+ function pn(e, t) {
374
374
  let n = e.addBlock, r = e.removeBlock, i = e.moveBlock, a = e.updateBlock, o = e.updateSettings;
375
375
  e.addBlock = (r, i, a, o) => {
376
376
  i && e.isBlockLocked(i) || (t.record(), n(r, i, a, o));
@@ -384,7 +384,7 @@ function un(e, t) {
384
384
  t.record(), o(e);
385
385
  };
386
386
  }
387
- function dn(e) {
387
+ function mn(e) {
388
388
  let { provider: t } = e, n = _([]), r = _(!1), i = M(() => {
389
389
  let e = /* @__PURE__ */ new Set();
390
390
  for (let t of n.value) {
@@ -400,7 +400,7 @@ function dn(e) {
400
400
  return s.value && e.canDelete !== !1;
401
401
  }
402
402
  function u(e, t) {
403
- throw new Le(`[Templatical] Saved blocks: ${e} is ${t}. Check the capability before calling — the editor's own UI hides the action.`);
403
+ throw new Re(`[Templatical] Saved blocks: ${e} is ${t}. Check the capability before calling — the editor's own UI hides the action.`);
404
404
  }
405
405
  async function d(i) {
406
406
  r.value = !0;
@@ -467,9 +467,9 @@ function dn(e) {
467
467
  remove: m
468
468
  };
469
469
  }
470
- var fn = "templatical:saved-blocks";
471
- function pn(e = {}) {
472
- let t = e.key ?? fn;
470
+ var hn = "templatical:saved-blocks";
471
+ function gn(e = {}) {
472
+ let t = e.key ?? hn;
473
473
  function n() {
474
474
  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.");
475
475
  return localStorage;
@@ -522,26 +522,86 @@ function pn(e = {}) {
522
522
  }
523
523
  //#endregion
524
524
  //#region src/utils/activeEditorTracker.ts
525
- var mn = /* @__PURE__ */ new Set(), hn = 0, gn = 0;
526
- function _n() {
527
- let e = ++gn;
528
- return mn.add(e), hn === 0 && (hn = e), {
525
+ var _n = /* @__PURE__ */ new Set(), vn = 0, yn = 0;
526
+ function bn() {
527
+ let e = ++yn;
528
+ return _n.add(e), vn === 0 && (vn = e), {
529
529
  id: e,
530
- isActive: () => mn.size <= 1 || hn === e,
530
+ isActive: () => _n.size <= 1 || vn === e,
531
531
  claim: () => {
532
- hn = e;
532
+ vn = e;
533
533
  },
534
534
  dispose: () => {
535
- if (mn.delete(e), hn === e) {
536
- let e = Array.from(mn);
537
- hn = e[e.length - 1] ?? 0;
535
+ if (_n.delete(e), vn === e) {
536
+ let e = Array.from(_n);
537
+ vn = e[e.length - 1] ?? 0;
538
+ }
539
+ }
540
+ };
541
+ }
542
+ //#endregion
543
+ //#region src/composables/usePreviewResolution.ts
544
+ var xn = 500;
545
+ function Sn(e) {
546
+ let t = typeof e.resolvePreview == "function", n = _(null), r = _(!1), i = _(!1), a = 0, o = null;
547
+ function s() {
548
+ o !== null && (clearTimeout(o), o = null);
549
+ }
550
+ async function l() {
551
+ let t = e.resolvePreview;
552
+ if (!t) return;
553
+ let o = ++a;
554
+ r.value = !0;
555
+ let s = {
556
+ content: qe(e.getContent()),
557
+ ...e.getRecipient?.() === void 0 ? {} : { recipient: e.getRecipient() }
558
+ };
559
+ try {
560
+ let e = await t(s);
561
+ if (o !== a) return;
562
+ if (!me(e)) {
563
+ i.value = !0;
564
+ return;
565
+ }
566
+ n.value = e, i.value = !1;
567
+ } catch {
568
+ if (o !== a) return;
569
+ i.value = !0;
570
+ } finally {
571
+ o === a && (r.value = !1);
572
+ }
573
+ }
574
+ function d() {
575
+ if (t) {
576
+ if (s(), n.value === null) {
577
+ l();
578
+ return;
538
579
  }
580
+ o = setTimeout(() => {
581
+ o = null, l();
582
+ }, xn);
583
+ }
584
+ }
585
+ return c(() => [e.isActive(), e.getRecipient?.()], ([e]) => {
586
+ if (!e) {
587
+ s(), a++, r.value = !1, n.value = null, i.value = !1;
588
+ return;
539
589
  }
590
+ d();
591
+ }, { immediate: !0 }), u(() => {
592
+ s(), a++;
593
+ }), {
594
+ isConfigured: t,
595
+ content: M(() => n.value ?? e.getContent()),
596
+ isResolving: r,
597
+ isInitialResolve: M(() => r.value && n.value === null),
598
+ hasFailed: i,
599
+ supersedesSamples: M(() => t)
540
600
  };
541
601
  }
542
602
  //#endregion
543
603
  //#region src/composables/useImageUrlResolver.ts
544
- function vn(e) {
604
+ function Cn(e) {
545
605
  let t = A(/* @__PURE__ */ new Map()), n = /* @__PURE__ */ new Set();
546
606
  function r(e) {
547
607
  return t.get(e);
@@ -574,8 +634,8 @@ function vn(e) {
574
634
  lookup: a
575
635
  };
576
636
  }
577
- function yn(e) {
578
- let t = P(Ct, null), n = M(e);
637
+ function wn(e) {
638
+ let t = P(Wt, null), n = M(e);
579
639
  if (!t) return n;
580
640
  let r;
581
641
  function i() {
@@ -604,7 +664,7 @@ function yn(e) {
604
664
  }
605
665
  //#endregion
606
666
  //#region src/composables/useMergeTagPicker.ts
607
- function bn() {
667
+ function Tn() {
608
668
  let e = _(!1), t = _([]), n = null;
609
669
  function r(r) {
610
670
  if (n) {
@@ -634,7 +694,7 @@ function bn() {
634
694
  }
635
695
  //#endregion
636
696
  //#region src/composables/useLogicTagPicker.ts
637
- function xn() {
697
+ function En() {
638
698
  let e = _(!1), t = _([]), n = _([]), r = null;
639
699
  function i(i, a) {
640
700
  if (r) {
@@ -665,17 +725,17 @@ function xn() {
665
725
  }
666
726
  //#endregion
667
727
  //#region src/composables/useTemplateLint.ts
668
- function Sn(e) {
728
+ function Dn(e) {
669
729
  return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 : !1;
670
730
  }
671
- function Cn(e) {
672
- let t = _([]), n = _(!1), r = _(!1), i = v(null), a = Sn(e.options), o = null, s = !1;
731
+ function On(e) {
732
+ let t = _([]), n = _(!1), r = _(!1), i = v(null), a = Dn(e.options), o = null, s = !1;
673
733
  a || l();
674
734
  async function l() {
675
735
  try {
676
736
  let t = await import("@templatical/quality");
677
737
  if (s) return;
678
- i.value = { lintTemplate: t.lintTemplate }, n.value = !0, u(), o = Je(e.content, u, {
738
+ i.value = { lintTemplate: t.lintTemplate }, n.value = !0, u(), o = Ye(e.content, u, {
679
739
  debounce: e.debounce ?? 500,
680
740
  deep: !0
681
741
  });
@@ -710,17 +770,17 @@ function Cn(e) {
710
770
  }
711
771
  //#endregion
712
772
  //#region src/utils/blockTypeLabels.ts
713
- function wn(e, t) {
773
+ function kn(e, t) {
714
774
  return t.blocks[e] ?? e;
715
775
  }
716
- function Tn(e, t, n = []) {
717
- if (e.type !== "custom") return wn(e.type, t);
776
+ function An(e, t, n = []) {
777
+ if (e.type !== "custom") return kn(e.type, t);
718
778
  let { customType: r } = e;
719
779
  return n.find((e) => e.type === r)?.name ?? r;
720
780
  }
721
781
  //#endregion
722
782
  //#region src/composables/useKeyboardReorder.ts
723
- function En(e, t, n = []) {
783
+ function jn(e, t, n = []) {
724
784
  let r = _(null), i = _(""), a = null;
725
785
  function o(t) {
726
786
  let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
@@ -747,7 +807,7 @@ function En(e, t, n = []) {
747
807
  let i = o(r);
748
808
  if (!i) return "";
749
809
  let a = (i.sectionId ? c(i.sectionId, i.columnIndex ?? 0) : e.content.value.blocks)?.[i.index];
750
- return a ? Tn(a, t.t, n) : "";
810
+ return a ? An(a, t.t, n) : "";
751
811
  }
752
812
  function c(t, n) {
753
813
  return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
@@ -816,13 +876,13 @@ function En(e, t, n = []) {
816
876
  }
817
877
  //#endregion
818
878
  //#region src/composables/useUiTheme.ts
819
- function Dn(e) {
820
- let t = $e("(prefers-color-scheme: dark)");
879
+ function Mn(e) {
880
+ let t = et("(prefers-color-scheme: dark)");
821
881
  return { resolvedTheme: M(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
822
882
  }
823
883
  //#endregion
824
884
  //#region src/composables/useThemeStyles.ts
825
- var On = {
885
+ var Nn = {
826
886
  bg: "--tpl-bg",
827
887
  bgElevated: "--tpl-bg-elevated",
828
888
  bgHover: "--tpl-bg-hover",
@@ -846,10 +906,10 @@ var On = {
846
906
  dangerLight: "--tpl-danger-light",
847
907
  canvasBg: "--tpl-canvas-bg"
848
908
  };
849
- function kn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
909
+ function Pn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
850
910
  return { themeStyles: M(() => {
851
911
  let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
852
- if (a) for (let [e, t] of Object.entries(On)) {
912
+ if (a) for (let [e, t] of Object.entries(Nn)) {
853
913
  let n = a[e];
854
914
  n && (r[t] = n);
855
915
  }
@@ -858,27 +918,27 @@ function kn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
858
918
  }
859
919
  //#endregion
860
920
  //#region src/utils/logger.ts
861
- var An = "[Templatical]";
862
- function jn() {
921
+ var Fn = "[Templatical]";
922
+ function In() {
863
923
  return typeof process < "u" && process.env.NODE_ENV === "production";
864
924
  }
865
- var Mn = {
925
+ var Ln = {
866
926
  warn(...e) {
867
- console.warn(An, ...e);
927
+ console.warn(Fn, ...e);
868
928
  },
869
929
  error(...e) {
870
- console.error(An, ...e);
930
+ console.error(Fn, ...e);
871
931
  },
872
932
  debug(...e) {
873
- jn() || console.debug(An, ...e);
933
+ In() || console.debug(Fn, ...e);
874
934
  },
875
935
  info(...e) {
876
- jn() || console.info(An, ...e);
936
+ In() || console.info(Fn, ...e);
877
937
  }
878
938
  };
879
939
  //#endregion
880
940
  //#region src/composables/useBlockRegistry.ts
881
- function Nn() {
941
+ function Rn() {
882
942
  let e = v(/* @__PURE__ */ new Map());
883
943
  function t(t, n) {
884
944
  e.value.set(t, n), te(e);
@@ -886,7 +946,7 @@ function Nn() {
886
946
  function n(t, n) {
887
947
  let r = `custom:${t.type}`, i = {
888
948
  component: n,
889
- createBlock: () => ke(t),
949
+ createBlock: () => Ae(t),
890
950
  definition: t
891
951
  };
892
952
  e.value.set(r, i), te(e);
@@ -912,13 +972,13 @@ function Nn() {
912
972
  let t = a(e.customType);
913
973
  if (!t) return o("Block definition not found");
914
974
  try {
915
- let { Liquid: n } = await import("./liquid.browser-DZLtv26k.js");
975
+ let { Liquid: n } = await import("./liquid.browser-BECWFL5Z.js");
916
976
  return await new n({
917
977
  strictVariables: !1,
918
978
  strictFilters: !1
919
979
  }).parseAndRender(t.template, e.fieldValues);
920
980
  } catch (t) {
921
- return Mn.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
981
+ return Ln.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
922
982
  }
923
983
  }
924
984
  function c(t) {
@@ -936,9 +996,9 @@ function Nn() {
936
996
  }
937
997
  //#endregion
938
998
  //#region src/composables/useCustomBlockStylesheets.ts
939
- function Pn(e, t) {
999
+ function zn(e, t) {
940
1000
  return M(() => {
941
- let n = Fn(e.value.blocks);
1001
+ let n = Bn(e.value.blocks);
942
1002
  if (n.size === 0) return [];
943
1003
  let r = /* @__PURE__ */ new Set(), i = [];
944
1004
  for (let e of n) {
@@ -950,11 +1010,11 @@ function Pn(e, t) {
950
1010
  return i;
951
1011
  });
952
1012
  }
953
- function Fn(e) {
1013
+ function Bn(e) {
954
1014
  let t = /* @__PURE__ */ new Set();
955
- return In(e, t), t;
1015
+ return Vn(e, t), t;
956
1016
  }
957
- function In(e, t) {
1017
+ function Vn(e, t) {
958
1018
  for (let n of e) {
959
1019
  if (_e(n)) {
960
1020
  t.add(n.customType);
@@ -963,16 +1023,16 @@ function In(e, t) {
963
1023
  if (n.type === "section") {
964
1024
  let e = n.children;
965
1025
  if (!e) continue;
966
- for (let n of e) In(n, t);
1026
+ for (let n of e) Vn(n, t);
967
1027
  }
968
1028
  }
969
1029
  }
970
1030
  //#endregion
971
1031
  //#region src/utils/registerBuiltInBlocks.ts
972
- var Ln = [
1032
+ var Hn = [
973
1033
  {
974
1034
  type: "section",
975
- createBlock: Ge
1035
+ createBlock: Ke
976
1036
  },
977
1037
  {
978
1038
  type: "title",
@@ -980,31 +1040,31 @@ var Ln = [
980
1040
  },
981
1041
  {
982
1042
  type: "paragraph",
983
- createBlock: He
1043
+ createBlock: Ue
984
1044
  },
985
1045
  {
986
1046
  type: "image",
987
- createBlock: Ae
1047
+ createBlock: je
988
1048
  },
989
1049
  {
990
1050
  type: "button",
991
- createBlock: Ve
1051
+ createBlock: He
992
1052
  },
993
1053
  {
994
1054
  type: "divider",
995
- createBlock: Fe
1055
+ createBlock: Ie
996
1056
  },
997
1057
  {
998
1058
  type: "video",
999
- createBlock: Ue
1059
+ createBlock: We
1000
1060
  },
1001
1061
  {
1002
1062
  type: "social",
1003
- createBlock: Ee
1063
+ createBlock: De
1004
1064
  },
1005
1065
  {
1006
1066
  type: "menu",
1007
- createBlock: we
1067
+ createBlock: Te
1008
1068
  },
1009
1069
  {
1010
1070
  type: "table",
@@ -1012,19 +1072,19 @@ var Ln = [
1012
1072
  },
1013
1073
  {
1014
1074
  type: "spacer",
1015
- createBlock: We
1075
+ createBlock: Ge
1016
1076
  },
1017
1077
  {
1018
1078
  type: "html",
1019
- createBlock: je
1079
+ createBlock: Me
1020
1080
  },
1021
1081
  {
1022
1082
  type: "countdown",
1023
- createBlock: Oe
1083
+ createBlock: ke
1024
1084
  }
1025
1085
  ];
1026
- function Rn(e, t) {
1027
- for (let n of Ln) {
1086
+ function Un(e, t) {
1087
+ for (let n of Hn) {
1028
1088
  let r = t[n.type];
1029
1089
  r && e.registerBuiltIn(n.type, {
1030
1090
  component: r,
@@ -1034,34 +1094,34 @@ function Rn(e, t) {
1034
1094
  }
1035
1095
  //#endregion
1036
1096
  //#region src/utils/resolveHtmlBlockPreview.ts
1037
- function zn(e) {
1097
+ function Wn(e) {
1038
1098
  return typeof e == "boolean" ? e : e?.enabled ?? !1;
1039
1099
  }
1040
1100
  //#endregion
1041
1101
  //#region src/utils/collectOffPaletteDefaults.ts
1042
- function Bn(e) {
1102
+ function Gn(e) {
1043
1103
  return typeof e == "object" && !!e && !Array.isArray(e);
1044
1104
  }
1045
- function Vn(e, t, n) {
1046
- let r = new Set(e.map((e) => rt(e))), i = [], a = (e, t) => {
1047
- for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(rt(o)) && i.push(`${t}.${n}: ${o}`) : Bn(o) && a(o, `${t}.${n}`);
1105
+ function Kn(e, t, n) {
1106
+ let r = new Set(e.map((e) => it(e))), i = [], a = (e, t) => {
1107
+ for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(it(o)) && i.push(`${t}.${n}: ${o}`) : Gn(o) && a(o, `${t}.${n}`);
1048
1108
  }, o = t;
1049
- for (let [e, t] of Object.entries(Be)) {
1109
+ for (let [e, t] of Object.entries(Ve)) {
1050
1110
  let n = o?.[e];
1051
1111
  a({
1052
1112
  ...t,
1053
- ...Bn(n) ? n : {}
1113
+ ...Gn(n) ? n : {}
1054
1114
  }, e);
1055
1115
  }
1056
1116
  return a({
1057
- ...Ie,
1117
+ ...Le,
1058
1118
  ...n ?? {}
1059
1119
  }, "template"), i;
1060
1120
  }
1061
1121
  //#endregion
1062
1122
  //#region src/utils/resolveFieldColors.ts
1063
- function Hn(e, t) {
1064
- let n = nt({ presets: e.presets }, Ze), r = n.presets.length === 0, i = e.allowCustom ?? t.allowCustom;
1123
+ function qn(e, t) {
1124
+ let n = rt({ presets: e.presets }, Qe), r = n.presets.length === 0, i = e.allowCustom ?? t.allowCustom;
1065
1125
  return {
1066
1126
  presets: r ? t.presets : n.presets,
1067
1127
  allowCustom: t.allowCustom !== !1 && i,
@@ -1073,9 +1133,9 @@ function Hn(e, t) {
1073
1133
  }
1074
1134
  //#endregion
1075
1135
  //#region src/utils/collectColorFieldIssues.ts
1076
- function Un(e, t) {
1136
+ function Jn(e, t) {
1077
1137
  let n = [], r = (r, i) => {
1078
- let a = Hn(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
1138
+ let a = qn(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
1079
1139
  if (a.invalidPresets.length > 0 && n.push({
1080
1140
  id: s("invalid-presets"),
1081
1141
  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." : "")
@@ -1086,8 +1146,8 @@ function Un(e, t) {
1086
1146
  id: s("allow-custom-ignored"),
1087
1147
  message: `${o}: allowCustom: true is ignored because colors.allowCustom is false — a field can narrow the editor-wide palette, never unlock it.`
1088
1148
  }), !a.allowCustom && a.presets.length > 0) {
1089
- let e = r.default ?? "", t = new Set(a.presets.map((e) => rt(e)));
1090
- e !== "" && !t.has(rt(e)) && n.push({
1149
+ let e = r.default ?? "", t = new Set(a.presets.map((e) => it(e)));
1150
+ e !== "" && !t.has(it(e)) && n.push({
1091
1151
  id: s("off-palette-default"),
1092
1152
  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.`
1093
1153
  });
@@ -1099,7 +1159,7 @@ function Un(e, t) {
1099
1159
  }
1100
1160
  //#endregion
1101
1161
  //#region src/utils/keyboardShortcuts.ts
1102
- function Wn(e) {
1162
+ function Yn(e) {
1103
1163
  for (let t of e.composedPath()) {
1104
1164
  if (!(t instanceof HTMLElement)) continue;
1105
1165
  if (t.isContentEditable) return !0;
@@ -1108,18 +1168,18 @@ function Wn(e) {
1108
1168
  }
1109
1169
  return !1;
1110
1170
  }
1111
- function Gn(e, t) {
1171
+ function Xn(e, t) {
1112
1172
  let n = e.metaKey || e.ctrlKey;
1113
1173
  if (n && e.key.toLowerCase() === "s") {
1114
1174
  e.preventDefault(), t.onSave?.();
1115
1175
  return;
1116
1176
  }
1117
1177
  if (n && e.key.toLowerCase() === "z") {
1118
- if (Wn(e)) return;
1178
+ if (Yn(e)) return;
1119
1179
  e.preventDefault(), e.shiftKey ? t.history.redo() : (t.onBeforeUndo?.(), t.history.undo());
1120
1180
  return;
1121
1181
  }
1122
- if (t.isPicking?.() && !Wn(e)) {
1182
+ if (t.isPicking?.() && !Yn(e)) {
1123
1183
  if (e.key === "Escape") {
1124
1184
  e.preventDefault(), t.onCancelPick?.();
1125
1185
  return;
@@ -1137,11 +1197,11 @@ function Gn(e, t) {
1137
1197
  t.selectBlock(null);
1138
1198
  return;
1139
1199
  }
1140
- (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Wn(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
1200
+ (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Yn(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
1141
1201
  }
1142
1202
  //#endregion
1143
1203
  //#region src/utils/mergeTagLabelSegments.ts
1144
- function Kn(e, t, n, r = !1) {
1204
+ function Zn(e, t, n, r = !1) {
1145
1205
  if (!e) return [];
1146
1206
  let i = RegExp(`(${n.value.source}|${n.logic.source})`, "g"), a = [], o = 0, s;
1147
1207
  for (; (s = i.exec(e)) !== null;) {
@@ -1175,20 +1235,20 @@ function Kn(e, t, n, r = !1) {
1175
1235
  }
1176
1236
  //#endregion
1177
1237
  //#region src/components/MergeTagPreviewText.vue
1178
- var qn = y({
1238
+ var Qn = y({
1179
1239
  name: "MergeTagPreviewText",
1180
1240
  props: { text: {
1181
1241
  type: String,
1182
1242
  required: !0
1183
1243
  } },
1184
1244
  setup(e) {
1185
- let t = P(yt, []), n = P(At, Te.liquid), r = P(bt, null), i = M(() => Kn(e.text, t, n, r?.value ?? !1));
1245
+ let t = P(dt, []), n = P(st, Ee.liquid), r = P(Tt, null), i = M(() => Zn(e.text, t, n, r?.value ?? !1));
1186
1246
  return () => i.value.map((e, t) => e.type === "tag" ? ie("span", {
1187
1247
  key: t,
1188
1248
  class: "tpl-merge-tag-label"
1189
1249
  }, e.value) : e.value);
1190
1250
  }
1191
- }), Jn = { class: "tpl:text-center" }, Yn = ["href"], Xn = /* @__PURE__ */ y({
1251
+ }), $n = { class: "tpl:text-center" }, er = ["href"], tr = /* @__PURE__ */ y({
1192
1252
  __name: "ButtonBlock",
1193
1253
  props: {
1194
1254
  block: {},
@@ -1209,17 +1269,17 @@ var qn = y({
1209
1269
  };
1210
1270
  return t.block.fontFamily && (e.fontFamily = t.block.fontFamily), t.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof t.block.width == "number" && (e.width = `${t.block.width}px`, e.boxSizing = "border-box"), e;
1211
1271
  });
1212
- return (t, r) => (f(), x("div", Jn, [b("a", {
1272
+ return (t, r) => (f(), x("div", $n, [b("a", {
1213
1273
  href: e.block.url || "#",
1214
1274
  style: i(n.value),
1215
1275
  class: "tpl:cursor-default",
1216
1276
  onClick: r[0] ||= F(() => {}, ["prevent"])
1217
- }, [w(qn, { text: e.block.text }, null, 8, ["text"])], 12, Yn)]));
1277
+ }, [w(Qn, { text: e.block.text }, null, 8, ["text"])], 12, er)]));
1218
1278
  }
1219
- }), Zn = Ut("bookmark", [["path", {
1279
+ }), nr = I("bookmark", [["path", {
1220
1280
  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",
1221
1281
  key: "oz39mx"
1222
- }]]), Qn = Ut("box", [
1282
+ }]]), rr = I("box", [
1223
1283
  ["path", {
1224
1284
  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",
1225
1285
  key: "hh9hay"
@@ -1232,13 +1292,13 @@ var qn = y({
1232
1292
  d: "M12 22V12",
1233
1293
  key: "d0xqtd"
1234
1294
  }]
1235
- ]), $n = Ut("code", [["path", {
1295
+ ]), ir = I("code", [["path", {
1236
1296
  d: "m16 18 6-6-6-6",
1237
1297
  key: "eg8j8"
1238
1298
  }], ["path", {
1239
1299
  d: "m8 6-6 6 6 6",
1240
1300
  key: "ppft3o"
1241
- }]]), er = Ut("copy", [["rect", {
1301
+ }]]), ar = I("copy", [["rect", {
1242
1302
  width: "14",
1243
1303
  height: "14",
1244
1304
  x: "8",
@@ -1249,7 +1309,7 @@ var qn = y({
1249
1309
  }], ["path", {
1250
1310
  d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
1251
1311
  key: "zix9uf"
1252
- }]]), tr = Ut("eye-off", [
1312
+ }]]), or = I("eye-off", [
1253
1313
  ["path", {
1254
1314
  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",
1255
1315
  key: "ct8e1f"
@@ -1266,10 +1326,10 @@ var qn = y({
1266
1326
  d: "m2 2 20 20",
1267
1327
  key: "1ooewy"
1268
1328
  }]
1269
- ]), nr = Ut("funnel", [["path", {
1329
+ ]), sr = I("funnel", [["path", {
1270
1330
  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",
1271
1331
  key: "sc7q7i"
1272
- }]]), rr = Ut("grip-vertical", [
1332
+ }]]), cr = I("grip-vertical", [
1273
1333
  ["circle", {
1274
1334
  cx: "9",
1275
1335
  cy: "12",
@@ -1306,7 +1366,7 @@ var qn = y({
1306
1366
  r: "1",
1307
1367
  key: "f4zoj3"
1308
1368
  }]
1309
- ]), ir = Ut("image", [
1369
+ ]), lr = I("image", [
1310
1370
  ["rect", {
1311
1371
  width: "18",
1312
1372
  height: "18",
@@ -1326,13 +1386,13 @@ var qn = y({
1326
1386
  d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",
1327
1387
  key: "1xmnt7"
1328
1388
  }]
1329
- ]), ar = Ut("navigation", [["polygon", {
1389
+ ]), ur = I("navigation", [["polygon", {
1330
1390
  points: "3 11 22 2 13 21 11 13 3 11",
1331
1391
  key: "1ltx0t"
1332
- }]]), or = Ut("puzzle", [["path", {
1392
+ }]]), dr = I("puzzle", [["path", {
1333
1393
  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",
1334
1394
  key: "w46dr5"
1335
- }]]), sr = Ut("share-2", [
1395
+ }]]), fr = I("share-2", [
1336
1396
  ["circle", {
1337
1397
  cx: "18",
1338
1398
  cy: "5",
@@ -1365,7 +1425,7 @@ var qn = y({
1365
1425
  y2: "10.49",
1366
1426
  key: "1n3mei"
1367
1427
  }]
1368
- ]), cr = Ut("table", [
1428
+ ]), pr = I("table", [
1369
1429
  ["path", {
1370
1430
  d: "M12 3v18",
1371
1431
  key: "108xh3"
@@ -1386,7 +1446,7 @@ var qn = y({
1386
1446
  d: "M3 15h18",
1387
1447
  key: "5xshup"
1388
1448
  }]
1389
- ]), lr = Ut("video", [["path", {
1449
+ ]), mr = I("video", [["path", {
1390
1450
  d: "m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",
1391
1451
  key: "ftymec"
1392
1452
  }], ["rect", {
@@ -1396,11 +1456,11 @@ var qn = y({
1396
1456
  height: "12",
1397
1457
  rx: "2",
1398
1458
  key: "158x01"
1399
- }]]), ur = ["innerHTML"], dr = [
1459
+ }]]), hr = ["innerHTML"], gr = [
1400
1460
  "src",
1401
1461
  "width",
1402
1462
  "height"
1403
- ], fr = /* @__PURE__ */ y({
1463
+ ], _r = /* @__PURE__ */ y({
1404
1464
  __name: "CustomBlockIcon",
1405
1465
  props: {
1406
1466
  icon: {},
@@ -1416,14 +1476,14 @@ var qn = y({
1416
1476
  height: `${n.value}px`
1417
1477
  }),
1418
1478
  innerHTML: e.icon
1419
- }, null, 12, ur)) : a.value ? (f(), x("img", {
1479
+ }, null, 12, hr)) : a.value ? (f(), x("img", {
1420
1480
  key: 1,
1421
1481
  src: e.icon,
1422
1482
  width: n.value,
1423
1483
  height: n.value,
1424
1484
  class: "tpl:inline-block",
1425
1485
  alt: ""
1426
- }, null, 8, dr)) : (f(), D(k(Qn), {
1486
+ }, null, 8, gr)) : (f(), D(k(rr), {
1427
1487
  key: 2,
1428
1488
  size: n.value,
1429
1489
  "stroke-width": 1.5
@@ -1432,16 +1492,16 @@ var qn = y({
1432
1492
  });
1433
1493
  //#endregion
1434
1494
  //#region src/composables/useEditorRoot.ts
1435
- function pr() {
1495
+ function vr() {
1436
1496
  return P(Et, document) ?? document;
1437
1497
  }
1438
1498
  //#endregion
1439
1499
  //#region src/composables/useFocusTrap.ts
1440
- var mr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
1441
- function hr(e, t) {
1442
- let n = pr(), r = null, i = null, a = null;
1500
+ var yr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
1501
+ function br(e, t) {
1502
+ let n = vr(), r = null, i = null, a = null;
1443
1503
  function o() {
1444
- return e.value ? Array.from(e.value.querySelectorAll(mr)).filter((e) => e.offsetParent !== null) : [];
1504
+ return e.value ? Array.from(e.value.querySelectorAll(yr)).filter((e) => e.offsetParent !== null) : [];
1445
1505
  }
1446
1506
  function s(e) {
1447
1507
  if (e.key !== "Tab") return;
@@ -1456,7 +1516,7 @@ function hr(e, t) {
1456
1516
  a = null;
1457
1517
  let t = o();
1458
1518
  t.length > 0 && (e.value?.querySelector("[autofocus], input:not([disabled])") ?? t[0]).focus();
1459
- }), i = at(e, "keydown", s);
1519
+ }), i = ot(e, "keydown", s);
1460
1520
  }
1461
1521
  function d(e = {}) {
1462
1522
  let t = e.restoreFocus !== !1;
@@ -1471,8 +1531,8 @@ function hr(e, t) {
1471
1531
  }
1472
1532
  //#endregion
1473
1533
  //#region src/composables/useEmoji.ts
1474
- function gr() {
1475
- let [e, t] = Ye(!1), n = v([]), r = !1;
1534
+ function xr() {
1535
+ let [e, t] = Xe(!1), n = v([]), r = !1;
1476
1536
  u(() => {
1477
1537
  r = !0;
1478
1538
  }), c(e, async (e) => {
@@ -1497,7 +1557,7 @@ function gr() {
1497
1557
  }
1498
1558
  //#endregion
1499
1559
  //#region src/composables/useDragDrop.ts
1500
- function _r(e) {
1560
+ function Sr(e) {
1501
1561
  let { onBlockMove: t, onBlockAdd: n } = e, r = _(!1), i = _(null), a = _(null);
1502
1562
  function o(e) {
1503
1563
  r.value = !0, i.value = e;
@@ -1547,7 +1607,7 @@ function _r(e) {
1547
1607
  }
1548
1608
  //#endregion
1549
1609
  //#region src/composables/useFonts.ts
1550
- var vr = [
1610
+ var Cr = [
1551
1611
  {
1552
1612
  value: "Arial",
1553
1613
  label: "Arial"
@@ -1576,7 +1636,7 @@ var vr = [
1576
1636
  value: "Courier New",
1577
1637
  label: "Courier New"
1578
1638
  }
1579
- ], yr = {
1639
+ ], wr = {
1580
1640
  arial: "Arial, sans-serif",
1581
1641
  helvetica: "Helvetica, sans-serif",
1582
1642
  georgia: "Georgia, serif",
@@ -1584,23 +1644,23 @@ var vr = [
1584
1644
  verdana: "Verdana, sans-serif",
1585
1645
  "trebuchet ms": "'Trebuchet MS', sans-serif",
1586
1646
  "courier new": "'Courier New', monospace"
1587
- }, br = "Arial, sans-serif";
1588
- function xr(e) {
1589
- if (e === void 0 || e === !0) return [...vr];
1647
+ }, Tr = "Arial, sans-serif";
1648
+ function Er(e) {
1649
+ if (e === void 0 || e === !0) return [...Cr];
1590
1650
  if (e === !1) return [];
1591
1651
  let t = [], n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
1592
1652
  for (let i of e) {
1593
- let e = i.toLowerCase(), a = vr.find((t) => t.value.toLowerCase() === e);
1653
+ let e = i.toLowerCase(), a = Cr.find((t) => t.value.toLowerCase() === e);
1594
1654
  if (!a) {
1595
- r.has(e) || (r.add(e), Mn.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${vr.map((e) => e.value).join(", ")}.`));
1655
+ r.has(e) || (r.add(e), Ln.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${Cr.map((e) => e.value).join(", ")}.`));
1596
1656
  continue;
1597
1657
  }
1598
1658
  n.has(a.value) || (n.add(a.value), t.push(a));
1599
1659
  }
1600
1660
  return t;
1601
1661
  }
1602
- function Sr(e) {
1603
- let t = _(e?.customFonts ?? []), n = _(!0), r = _(!1), i = xr(e?.builtIns), a = M(() => e?.defaultFallback ?? br);
1662
+ function Dr(e) {
1663
+ let t = _(e?.customFonts ?? []), n = _(!0), r = _(!1), i = Er(e?.builtIns), a = M(() => e?.defaultFallback ?? Tr);
1604
1664
  function o(e) {
1605
1665
  n.value = e;
1606
1666
  }
@@ -1617,20 +1677,20 @@ function Sr(e) {
1617
1677
  function l(e) {
1618
1678
  return c.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
1619
1679
  }
1620
- let d = e?.defaultFont ?? br.split(",")[0].trim();
1621
- l(d) || Mn.warn(`config.fonts: new templates seed "${d}", 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.`);
1680
+ let d = e?.defaultFont ?? Tr.split(",")[0].trim();
1681
+ l(d) || Ln.warn(`config.fonts: new templates seed "${d}", 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.`);
1622
1682
  function f(e) {
1623
- return vr.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
1683
+ return Cr.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
1624
1684
  }
1625
1685
  function p() {
1626
1686
  if (e?.defaultFont) {
1627
- if (!n.value && !f(e.defaultFont)) return br;
1687
+ if (!n.value && !f(e.defaultFont)) return Tr;
1628
1688
  if (l(e.defaultFont)) {
1629
1689
  let t = c.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
1630
1690
  if (t) return t.value;
1631
1691
  }
1632
1692
  }
1633
- return br;
1693
+ return Tr;
1634
1694
  }
1635
1695
  let m = M(() => p());
1636
1696
  function h(e) {
@@ -1640,7 +1700,7 @@ function Sr(e) {
1640
1700
  let e = n.fallback ?? a.value;
1641
1701
  return `'${n.name}', ${e}`;
1642
1702
  }
1643
- return yr[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${a.value}`);
1703
+ return wr[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${a.value}`);
1644
1704
  }
1645
1705
  let g = [], v = !1;
1646
1706
  async function y() {
@@ -1656,7 +1716,7 @@ function Sr(e) {
1656
1716
  t.onload = () => n(), t.onerror = () => r(/* @__PURE__ */ Error(`Failed to load font: ${e.name}`)), document.head.appendChild(t);
1657
1717
  });
1658
1718
  } catch (t) {
1659
- Mn.warn(`Failed to load custom font "${e.name}":`, t);
1719
+ Ln.warn(`Failed to load custom font "${e.name}":`, t);
1660
1720
  }
1661
1721
  });
1662
1722
  await Promise.allSettled(e), !v && (r.value = !0);
@@ -1683,8 +1743,8 @@ function Sr(e) {
1683
1743
  }
1684
1744
  //#endregion
1685
1745
  //#region src/composables/useLogicTag.ts
1686
- function Cr() {
1687
- let e = P(ct, []), t = P(vt, []), n = P(At, Te.liquid), r = P(ot, null), i = P(Rt, null), a = _(!1), o = !!r || e.length > 0 || t.length > 0, s = e.length > 0 || t.length > 0;
1746
+ function Or() {
1747
+ let e = P(Ut, []), t = P(lt, []), n = P(st, Ee.liquid), r = P(Nt, null), i = P(St, null), a = _(!1), o = !!r || e.length > 0 || t.length > 0, s = e.length > 0 || t.length > 0;
1688
1748
  async function c() {
1689
1749
  if (r) {
1690
1750
  a.value = !0;
@@ -1715,7 +1775,7 @@ function Cr() {
1715
1775
  }
1716
1776
  //#endregion
1717
1777
  //#region src/utils/mergeTagNodeSpec.ts
1718
- function wr(e, t, n) {
1778
+ function kr(e, t, n) {
1719
1779
  return ve(e, n) ? {
1720
1780
  type: "logicMergeTagNode",
1721
1781
  attrs: {
@@ -1732,15 +1792,15 @@ function wr(e, t, n) {
1732
1792
  }
1733
1793
  //#endregion
1734
1794
  //#region src/utils/insertLogicTag.ts
1735
- function Tr(e) {
1795
+ function Ar(e) {
1736
1796
  return "before" in e && "after" in e;
1737
1797
  }
1738
- function Er(e, t, n) {
1739
- if (!Tr(t)) {
1740
- e.chain().focus().insertContent(wr(t.value, t.label, n)).run();
1798
+ function jr(e, t, n) {
1799
+ if (!Ar(t)) {
1800
+ e.chain().focus().insertContent(kr(t.value, t.label, n)).run();
1741
1801
  return;
1742
1802
  }
1743
- let r = wr(t.before, t.label, n), i = wr(t.after, t.label, n), { from: a, to: o } = e.state.selection;
1803
+ let r = kr(t.before, t.label, n), i = kr(t.after, t.label, n), { from: a, to: o } = e.state.selection;
1744
1804
  if (a !== o) {
1745
1805
  e.chain().focus().insertContentAt(o, i).insertContentAt(a, r).run();
1746
1806
  return;
@@ -1749,20 +1809,20 @@ function Er(e, t, n) {
1749
1809
  }
1750
1810
  //#endregion
1751
1811
  //#region src/utils/linkColorExtension.ts
1752
- function Dr(e) {
1812
+ function Mr(e) {
1753
1813
  if (!e) return null;
1754
1814
  let t = e.trim();
1755
1815
  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;
1756
1816
  }
1757
- function Or(e) {
1817
+ function Nr(e) {
1758
1818
  return e.extend({ addAttributes() {
1759
1819
  return {
1760
1820
  ...this.parent?.(),
1761
1821
  color: {
1762
1822
  default: null,
1763
- parseHTML: (e) => Dr(et(e.style.color)),
1823
+ parseHTML: (e) => Mr(tt(e.style.color)),
1764
1824
  renderHTML: (e) => {
1765
- let t = Dr(e.color);
1825
+ let t = Mr(e.color);
1766
1826
  return t ? { style: `color: ${t}` } : {};
1767
1827
  }
1768
1828
  }
@@ -1771,9 +1831,9 @@ function Or(e) {
1771
1831
  }
1772
1832
  //#endregion
1773
1833
  //#region src/composables/useRichTextLinkDialog.ts
1774
- function kr(e) {
1834
+ function Pr(e) {
1775
1835
  let t = _(!1), n = _(""), r = _(""), i = _(null);
1776
- hr(i, t);
1836
+ br(i, t);
1777
1837
  function a() {
1778
1838
  let i = e.value?.getAttributes("link") ?? {};
1779
1839
  n.value = i.href || "", r.value = i.color || "", t.value = !0;
@@ -1782,7 +1842,7 @@ function kr(e) {
1782
1842
  if (n.value) {
1783
1843
  let t = c(n.value);
1784
1844
  if (t !== null) {
1785
- let n = Dr(r.value), i = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
1845
+ let n = Mr(r.value), i = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
1786
1846
  n && typeof e.value?.commands.unsetColor == "function" && i?.unsetColor(), i?.run();
1787
1847
  }
1788
1848
  }
@@ -1829,8 +1889,8 @@ function kr(e) {
1829
1889
  }
1830
1890
  //#endregion
1831
1891
  //#region src/composables/useRichTextEditor.ts
1832
- function Ar(e) {
1833
- let t = P(Dt, null), { mergeTags: n, canRequestMergeTag: r, isRequesting: i, requestMergeTag: a, syntax: o, autocomplete: s } = Xt(), { canInsertLogicTag: l, isRequesting: u, requestLogicTag: d } = Cr(), f = P(Vt, null), p = (g(f) ? f.value : f)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", m = le(o), y = v(null), { showLinkDialog: b, linkUrl: x, linkColor: S, linkDialogRef: C, openLinkDialog: w, insertLink: T, removeLink: E, closeLinkDialog: D, handleLinkKeydown: O } = kr(y), { start: k, stop: A } = Xe(() => y.value?.commands.focus("end"), 0, { immediate: !1 }), j = v(null), ee = _(!0), M = _(null), te = !1;
1892
+ function Fr(e) {
1893
+ let t = P(jt, null), { mergeTags: n, canRequestMergeTag: r, isRequesting: i, requestMergeTag: a, syntax: o, autocomplete: s } = $t(), { canInsertLogicTag: l, isRequesting: u, requestLogicTag: d } = Or(), f = P(mt, null), p = (g(f) ? f.value : f)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", m = le(o), y = v(null), { showLinkDialog: b, linkUrl: x, linkColor: S, linkDialogRef: C, openLinkDialog: w, insertLink: T, removeLink: E, closeLinkDialog: D, handleLinkKeydown: O } = Pr(y), { start: k, stop: A } = Ze(() => y.value?.commands.focus("end"), 0, { immediate: !1 }), j = v(null), ee = _(!0), M = _(null), te = !1;
1834
1894
  async function N() {
1835
1895
  M.value = null, ee.value = !0;
1836
1896
  try {
@@ -1860,7 +1920,7 @@ function Ar(e) {
1860
1920
  y.value = l, ee.value = !1, k();
1861
1921
  } catch (t) {
1862
1922
  if (te) return;
1863
- Mn.error(`[${e.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, t), M.value = t instanceof Error ? t.message : "Failed to load editor", ee.value = !1;
1923
+ Ln.error(`[${e.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, t), M.value = t instanceof Error ? t.message : "Failed to load editor", ee.value = !1;
1864
1924
  }
1865
1925
  }
1866
1926
  function ne() {
@@ -1878,7 +1938,7 @@ function Ar(e) {
1878
1938
  let a = n.some((e) => e instanceof HTMLElement && e.classList.contains("tpl-color-popover"));
1879
1939
  r.closest(".tpl-text-editor-wrapper") || r.closest(".tpl-text-toolbar") || r.closest(".tpl-link-dialog") || a || e.onDone();
1880
1940
  }
1881
- at(document, "mousedown", ie), h(() => {
1941
+ ot(document, "mousedown", ie), h(() => {
1882
1942
  te = !0, re(), A(), y.value?.destroy();
1883
1943
  });
1884
1944
  async function ae() {
@@ -1890,7 +1950,7 @@ function Ar(e) {
1890
1950
  }
1891
1951
  async function F() {
1892
1952
  let e = await d();
1893
- te || (e && y.value ? Er(y.value, e, o) : y.value?.commands.focus());
1953
+ te || (e && y.value ? jr(y.value, e, o) : y.value?.commands.focus());
1894
1954
  }
1895
1955
  return {
1896
1956
  editor: y,
@@ -1919,9 +1979,9 @@ function Ar(e) {
1919
1979
  }
1920
1980
  //#endregion
1921
1981
  //#region src/composables/useSmallScreenNotice.ts
1922
- var jr = "(max-width: 767px)";
1923
- function Mr(e) {
1924
- let t = $e(jr);
1982
+ var Ir = "(max-width: 767px)";
1983
+ function Lr(e) {
1984
+ let t = et(Ir);
1925
1985
  return {
1926
1986
  isSmallScreen: t,
1927
1987
  showNotice: M(() => (S(e) ?? !0) && t.value)
@@ -1929,20 +1989,20 @@ function Mr(e) {
1929
1989
  }
1930
1990
  //#endregion
1931
1991
  //#region src/components/blocks/CustomBlock.vue?vue&type=script&setup=true&lang.ts
1932
- var Nr = { class: "tpl:w-full" }, Pr = {
1992
+ var Rr = { class: "tpl:w-full" }, zr = {
1933
1993
  key: 0,
1934
1994
  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)]"
1935
- }, Fr = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ir = {
1995
+ }, Br = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Vr = {
1936
1996
  key: 1,
1937
1997
  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)]"
1938
- }, Lr = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Rr = {
1998
+ }, Hr = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ur = {
1939
1999
  key: 2,
1940
2000
  class: "tpl:relative"
1941
- }, zr = ["innerHTML"], Br = {
2001
+ }, Wr = ["innerHTML"], Gr = {
1942
2002
  key: 0,
1943
2003
  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]",
1944
2004
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
1945
- }, Vr = /* @__PURE__ */ y({
2005
+ }, Kr = /* @__PURE__ */ y({
1946
2006
  __name: "CustomBlock",
1947
2007
  props: {
1948
2008
  block: {},
@@ -1950,7 +2010,7 @@ var Nr = { class: "tpl:w-full" }, Pr = {
1950
2010
  },
1951
2011
  emits: ["fetchData"],
1952
2012
  setup(e, { emit: t }) {
1953
- let n = e, r = t, { t: i } = Ht(), o = P(Pt, null), s = _(""), l = _(!1), u = M(() => o?.getDefinition(n.block.customType)), d = M(() => !!u.value), { isFetching: m, fetch: h, needsFetch: g, hasDataSource: v } = ln({
2013
+ let n = e, r = t, { t: i } = Kt(), o = P(Bt, null), s = _(""), l = _(!1), u = M(() => o?.getDefinition(n.block.customType)), d = M(() => !!u.value), { isFetching: m, fetch: h, needsFetch: g, hasDataSource: v } = fn({
1954
2014
  definition: u,
1955
2015
  block: M(() => n.block),
1956
2016
  onUpdate: (e, t) => {
@@ -1959,10 +2019,10 @@ var Nr = { class: "tpl:w-full" }, Pr = {
1959
2019
  dataSourceFetched: t
1960
2020
  });
1961
2021
  }
1962
- }), y = P(yt, []), S = P(bt, null), C = M(() => {
2022
+ }), y = P(dt, []), S = P(Tt, null), C = M(() => {
1963
2023
  if (!S?.value) return n.block;
1964
2024
  let e = {};
1965
- for (let [t, r] of Object.entries(n.block.fieldValues)) e[t] = typeof r == "string" ? ue(r, y) : r;
2025
+ for (let [t, r] of Object.entries(n.block.fieldValues)) e[t] = typeof r == "string" ? we(r, y) : r;
1966
2026
  return {
1967
2027
  ...n.block,
1968
2028
  fieldValues: e
@@ -1979,17 +2039,17 @@ var Nr = { class: "tpl:w-full" }, Pr = {
1979
2039
  }
1980
2040
  }
1981
2041
  }
1982
- let E = qe(T, 150);
2042
+ let E = Je(T, 150);
1983
2043
  return a(() => {
1984
2044
  T();
1985
2045
  }), c(() => n.block.fieldValues, () => {
1986
2046
  E();
1987
2047
  }, { deep: !0 }), c(() => S?.value, () => {
1988
2048
  E();
1989
- }), (e, t) => (f(), x("div", Nr, [d.value ? l.value ? (f(), x("div", Ir, [w(k(qt), {
2049
+ }), (e, t) => (f(), x("div", Rr, [d.value ? l.value ? (f(), x("div", Vr, [w(k(Xt), {
1990
2050
  size: 24,
1991
2051
  class: "tpl:text-[var(--tpl-danger)]"
1992
- }), b("span", Lr, p(k(i).customBlocks.renderError), 1)])) : (f(), x("div", Rr, [b("div", { innerHTML: s.value }, null, 8, zr), k(v) && k(g) ? (f(), x("div", Br, [k(m) ? (f(), D(Jt, {
2052
+ }), b("span", Hr, p(k(i).customBlocks.renderError), 1)])) : (f(), x("div", Ur, [b("div", { innerHTML: s.value }, null, 8, Wr), k(v) && k(g) ? (f(), x("div", Gr, [k(m) ? (f(), D(Zt, {
1993
2053
  key: 1,
1994
2054
  class: "tpl:w-48"
1995
2055
  })) : (f(), x("button", {
@@ -1997,16 +2057,16 @@ var Nr = { class: "tpl:w-full" }, Pr = {
1997
2057
  type: "button",
1998
2058
  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-sm tpl:transition-all tpl:duration-150 hover:tpl:border-[var(--tpl-primary)] hover:tpl:shadow-md tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
1999
2059
  onClick: t[0] ||= F((...e) => k(h) && k(h)(...e), ["stop"])
2000
- }, [u.value?.icon ? (f(), D(fr, {
2060
+ }, [u.value?.icon ? (f(), D(_r, {
2001
2061
  key: 0,
2002
2062
  icon: u.value.icon,
2003
2063
  size: 16
2004
- }, null, 8, ["icon"])) : N("", !0), O(" " + p(u.value?.dataSource?.label || k(i).customBlocks.dataSource.fetchButton), 1)]))])) : N("", !0)])) : (f(), x("div", Pr, [w(k(or), {
2064
+ }, null, 8, ["icon"])) : N("", !0), O(" " + p(u.value?.dataSource?.label || k(i).customBlocks.dataSource.fetchButton), 1)]))])) : N("", !0)])) : (f(), x("div", zr, [w(k(dr), {
2005
2065
  size: 24,
2006
2066
  class: "tpl:text-[var(--tpl-warning)]"
2007
- }), b("span", Fr, p(k(i).customBlocks.definitionNotFound), 1)]))]));
2067
+ }), b("span", Br, p(k(i).customBlocks.definitionNotFound), 1)]))]));
2008
2068
  }
2009
- }), Hr = { class: "tpl:w-full" }, Ur = /* @__PURE__ */ y({
2069
+ }), qr = { class: "tpl:w-full" }, Jr = /* @__PURE__ */ y({
2010
2070
  __name: "DividerBlock",
2011
2071
  props: {
2012
2072
  block: {},
@@ -2018,28 +2078,28 @@ var Nr = { class: "tpl:w-full" }, Pr = {
2018
2078
  width: t.block.width === "full" ? "100%" : `${t.block.width}px`,
2019
2079
  margin: t.block.width === "full" ? "0" : "0 auto"
2020
2080
  }));
2021
- return (e, t) => (f(), x("div", Hr, [b("hr", {
2081
+ return (e, t) => (f(), x("div", qr, [b("hr", {
2022
2082
  class: "tpl:m-0 tpl:border-none",
2023
2083
  style: i(n.value)
2024
2084
  }, null, 4)]));
2025
2085
  }
2026
- }), Wr = { class: "tpl:w-full" }, Gr = ["srcdoc", "title"], Kr = {
2086
+ }), Yr = { class: "tpl:w-full" }, Xr = ["srcdoc", "title"], Zr = {
2027
2087
  key: 1,
2028
2088
  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)]"
2029
- }, qr = {
2089
+ }, Qr = {
2030
2090
  key: 0,
2031
2091
  class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
2032
- }, Jr = {
2092
+ }, $r = {
2033
2093
  key: 1,
2034
2094
  class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
2035
- }, Yr = /* @__PURE__ */ y({
2095
+ }, ei = /* @__PURE__ */ y({
2036
2096
  __name: "HtmlBlock",
2037
2097
  props: {
2038
2098
  block: {},
2039
2099
  viewport: {}
2040
2100
  },
2041
2101
  setup(e) {
2042
- let t = e, { t: n } = Ht(), r = P(Bt, !1), a = M(() => t.block.content.trim().length > 0), o = M(() => r && a.value), s = P(yt, []), l = P(bt, null), u = M(() => l?.value ? ue(t.block.content, s) : t.block.content), d = _(null), m = _(60), g = null;
2102
+ let t = e, { t: n } = Kt(), r = P(Ot, !1), a = M(() => t.block.content.trim().length > 0), o = M(() => r && a.value), s = P(dt, []), l = P(Tt, null), u = M(() => l?.value ? we(t.block.content, s) : t.block.content), d = _(null), m = _(60), g = null;
2043
2103
  function v() {
2044
2104
  let e = d.value?.contentDocument;
2045
2105
  e && (m.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
@@ -2053,7 +2113,7 @@ var Nr = { class: "tpl:w-full" }, Pr = {
2053
2113
  e || (g?.disconnect(), g = null);
2054
2114
  }), h(() => {
2055
2115
  g?.disconnect(), g = null;
2056
- }), (e, t) => (f(), x("div", Wr, [o.value ? (f(), x("iframe", {
2116
+ }), (e, t) => (f(), x("div", Yr, [o.value ? (f(), x("iframe", {
2057
2117
  key: 0,
2058
2118
  ref_key: "iframeRef",
2059
2119
  ref: d,
@@ -2063,18 +2123,18 @@ var Nr = { class: "tpl:w-full" }, Pr = {
2063
2123
  class: "tpl:block tpl:w-full tpl:border-0",
2064
2124
  style: i({ height: `${m.value}px` }),
2065
2125
  onLoad: y
2066
- }, null, 44, Gr)) : (f(), x("div", Kr, [w(k($n), {
2126
+ }, null, 44, Xr)) : (f(), x("div", Zr, [w(k(ir), {
2067
2127
  size: 24,
2068
2128
  class: "tpl:text-[var(--tpl-text-dim)]"
2069
- }), a.value ? (f(), x("span", qr, p(k(n).html.preview), 1)) : (f(), x("span", Jr, p(k(n).html.empty), 1))]))]));
2129
+ }), a.value ? (f(), x("span", Qr, p(k(n).html.preview), 1)) : (f(), x("span", $r, p(k(n).html.empty), 1))]))]));
2070
2130
  }
2071
- }), Xr = "image/";
2072
- function Zr(e) {
2073
- let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || S(r), { isOverDropZone: a } = Qe(t, {
2131
+ }), ti = "image/";
2132
+ function ni(e) {
2133
+ let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || S(r), { isOverDropZone: a } = $e(t, {
2074
2134
  preventDefaultForUnhandled: !0,
2075
2135
  onDrop: (e) => {
2076
2136
  if (!i()) return;
2077
- let t = (e ?? []).filter((e) => e.type.startsWith(Xr));
2137
+ let t = (e ?? []).filter((e) => e.type.startsWith(ti));
2078
2138
  t.length > 0 && n([t[0]]);
2079
2139
  }
2080
2140
  });
@@ -2082,17 +2142,17 @@ function Zr(e) {
2082
2142
  }
2083
2143
  //#endregion
2084
2144
  //#region src/components/blocks/ImageBlock.vue?vue&type=script&setup=true&lang.ts
2085
- var Qr = {
2145
+ var ri = {
2086
2146
  key: 0,
2087
2147
  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)]",
2088
2148
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 85%, transparent)" }
2089
- }, $r = ["href"], ei = ["src", "alt"], ti = ["src", "alt"], ni = {
2149
+ }, ii = ["href"], ai = ["src", "alt"], oi = ["src", "alt"], si = {
2090
2150
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
2091
2151
  style: { opacity: "0.7" }
2092
- }, ri = ["href"], ii = ["src", "alt"], ai = ["src", "alt"], oi = {
2152
+ }, ci = ["href"], li = ["src", "alt"], ui = ["src", "alt"], di = {
2093
2153
  key: 4,
2094
2154
  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)]"
2095
- }, si = ["aria-label"], ci = { key: 1 }, li = /* @__PURE__ */ y({
2155
+ }, fi = ["aria-label"], pi = { key: 1 }, mi = /* @__PURE__ */ y({
2096
2156
  __name: "ImageBlock",
2097
2157
  props: {
2098
2158
  block: {},
@@ -2100,7 +2160,7 @@ var Qr = {
2100
2160
  },
2101
2161
  emits: ["update"],
2102
2162
  setup(e, { emit: t }) {
2103
- let n = e, r = t, { t: a } = Ht(), { syntax: o } = Xt(), s = P(kt, null), c = M(() => !!s), l = Zt();
2163
+ let n = e, r = t, { t: a } = Kt(), { syntax: o } = $t(), s = P(_t, null), c = M(() => !!s), l = en();
2104
2164
  async function u() {
2105
2165
  let e = await s?.({ accept: ["images"] });
2106
2166
  if (l.alive && e) {
@@ -2127,7 +2187,7 @@ var Qr = {
2127
2187
  }
2128
2188
  }
2129
2189
  }
2130
- let { isOver: v } = Zr({
2190
+ let { isOver: v } = ni({
2131
2191
  target: d,
2132
2192
  enabled: h,
2133
2193
  onFiles: g
@@ -2140,14 +2200,14 @@ var Qr = {
2140
2200
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
2141
2201
  marginRight: e === "center" ? "auto" : void 0
2142
2202
  };
2143
- }), C = M(() => De(n.block.src, o)), T = yn(() => C.value ? void 0 : n.block.src), E = yn(() => C.value ? n.block.placeholderUrl : void 0);
2203
+ }), C = M(() => Oe(n.block.src, o)), T = wn(() => C.value ? void 0 : n.block.src), E = wn(() => C.value ? n.block.placeholderUrl : void 0);
2144
2204
  return (t, n) => (f(), x("div", {
2145
2205
  ref_key: "dropZoneRef",
2146
2206
  ref: d,
2147
2207
  "data-testid": "image-drop-zone",
2148
2208
  class: "tpl:relative tpl:w-full",
2149
2209
  style: i(y.value)
2150
- }, [h.value && (k(v) || m.value) ? (f(), x("div", Qr, [m.value ? (f(), x(j, { key: 0 }, [w(k(Wt), {
2210
+ }, [h.value && (k(v) || m.value) ? (f(), x("div", ri, [m.value ? (f(), x(j, { key: 0 }, [w(k(qt), {
2151
2211
  class: "tpl-spinner",
2152
2212
  size: 20,
2153
2213
  "stroke-width": 2
@@ -2166,22 +2226,22 @@ var Qr = {
2166
2226
  src: k(E),
2167
2227
  alt: e.block.alt || k(a).image.altTextPlaceholder,
2168
2228
  style: i(S.value)
2169
- }, null, 12, ei)], 8, $r)) : (f(), x("img", {
2229
+ }, null, 12, ai)], 8, ii)) : (f(), x("img", {
2170
2230
  key: 1,
2171
2231
  class: "tpl:border-0",
2172
2232
  src: k(E),
2173
2233
  alt: e.block.alt,
2174
2234
  style: i(S.value)
2175
- }, null, 12, ti))], 64)) : e.block.src && C.value ? (f(), x("div", {
2235
+ }, null, 12, oi))], 64)) : e.block.src && C.value ? (f(), x("div", {
2176
2236
  key: 2,
2177
2237
  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)]",
2178
2238
  style: i([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, S.value])
2179
- }, [w(k(ir), {
2239
+ }, [w(k(lr), {
2180
2240
  size: 32,
2181
2241
  "stroke-width": 1.5,
2182
2242
  class: "tpl:text-[var(--tpl-primary)]",
2183
2243
  style: { opacity: "0.5" }
2184
- }), b("span", ni, [w(qn, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (f(), x(j, { key: 3 }, [e.block.linkUrl ? (f(), x("a", {
2244
+ }), b("span", si, [w(Qn, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (f(), x(j, { key: 3 }, [e.block.linkUrl ? (f(), x("a", {
2185
2245
  key: 0,
2186
2246
  href: e.block.linkUrl,
2187
2247
  target: "_blank",
@@ -2193,33 +2253,33 @@ var Qr = {
2193
2253
  src: k(T),
2194
2254
  alt: e.block.alt || k(a).image.altTextPlaceholder,
2195
2255
  style: i(S.value)
2196
- }, null, 12, ii)], 8, ri)) : (f(), x("img", {
2256
+ }, null, 12, li)], 8, ci)) : (f(), x("img", {
2197
2257
  key: 1,
2198
2258
  class: "tpl:border-0",
2199
2259
  src: k(T),
2200
2260
  alt: e.block.alt,
2201
2261
  style: i(S.value)
2202
- }, null, 12, ai))], 64)) : (f(), x("div", oi, [c.value ? (f(), x("button", {
2262
+ }, null, 12, ui))], 64)) : (f(), x("div", di, [c.value ? (f(), x("button", {
2203
2263
  key: 0,
2204
2264
  "aria-label": k(a).image.browseMedia,
2205
2265
  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:duration-150 tpl:cursor-pointer tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
2206
2266
  onClick: F(u, ["stop"])
2207
- }, [w(k(ir), {
2267
+ }, [w(k(lr), {
2208
2268
  size: 14,
2209
2269
  "stroke-width": 1.5
2210
- }), O(" " + p(k(a).image.browseMedia), 1)], 8, si)) : (f(), x("span", ci, p(k(a).image.clickToAdd), 1))]))], 4));
2270
+ }), O(" " + p(k(a).image.browseMedia), 1)], 8, fi)) : (f(), x("span", pi, p(k(a).image.clickToAdd), 1))]))], 4));
2211
2271
  }
2212
- }), ui = { class: "tpl:w-full" }, di = ["href"], fi = {
2272
+ }), hi = { class: "tpl:w-full" }, gi = ["href"], _i = {
2213
2273
  key: 1,
2214
2274
  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)]"
2215
- }, pi = /* @__PURE__ */ y({
2275
+ }, vi = /* @__PURE__ */ y({
2216
2276
  __name: "MenuBlock",
2217
2277
  props: {
2218
2278
  block: {},
2219
2279
  viewport: {}
2220
2280
  },
2221
2281
  setup(e) {
2222
- let n = e, { t: r } = Ht(), a = M(() => ({
2282
+ let n = e, { t: r } = Kt(), a = M(() => ({
2223
2283
  display: "flex",
2224
2284
  flexWrap: "wrap",
2225
2285
  gap: `0 ${n.block.spacing}px`,
@@ -2231,7 +2291,7 @@ var Qr = {
2231
2291
  function s(e) {
2232
2292
  return e || n.block.linkColor || n.block.color;
2233
2293
  }
2234
- return (n, c) => (f(), x("div", ui, [o.value ? (f(), x("div", {
2294
+ return (n, c) => (f(), x("div", hi, [o.value ? (f(), x("div", {
2235
2295
  key: 0,
2236
2296
  style: i(a.value)
2237
2297
  }, [(f(!0), x(j, null, t(e.block.items, (t, n) => (f(), x(j, { key: t.id }, [b("a", {
@@ -2243,15 +2303,15 @@ var Qr = {
2243
2303
  textDecoration: t.underline ? "underline" : "none"
2244
2304
  }),
2245
2305
  onClick: c[0] ||= F(() => {}, ["prevent"])
2246
- }, [w(qn, { text: t.text || "..." }, null, 8, ["text"])], 12, di), n < e.block.items.length - 1 ? (f(), x("span", {
2306
+ }, [w(Qn, { text: t.text || "..." }, null, 8, ["text"])], 12, gi), n < e.block.items.length - 1 ? (f(), x("span", {
2247
2307
  key: 0,
2248
2308
  style: i({
2249
2309
  color: e.block.separatorColor,
2250
2310
  padding: `0 ${e.block.spacing}px`
2251
2311
  })
2252
- }, p(e.block.separator), 5)) : N("", !0)], 64))), 128))], 4)) : (f(), x("div", fi, [w(k(ar), { size: 16 }), b("span", null, p(k(r).menu.addLinks), 1)]))]));
2312
+ }, p(e.block.separator), 5)) : N("", !0)], 64))), 128))], 4)) : (f(), x("div", _i, [w(k(ur), { size: 16 }), b("span", null, p(k(r).menu.addLinks), 1)]))]));
2253
2313
  }
2254
- }), mi = /* @__PURE__ */ new Set([
2314
+ }), yi = /* @__PURE__ */ new Set([
2255
2315
  "http",
2256
2316
  "https",
2257
2317
  "mailto",
@@ -2261,7 +2321,7 @@ var Qr = {
2261
2321
  "sms",
2262
2322
  "xmpp",
2263
2323
  "cid"
2264
- ]), hi = /* @__PURE__ */ new Set([
2324
+ ]), bi = /* @__PURE__ */ new Set([
2265
2325
  "SCRIPT",
2266
2326
  "STYLE",
2267
2327
  "IFRAME",
@@ -2271,7 +2331,7 @@ var Qr = {
2271
2331
  "META",
2272
2332
  "BASE",
2273
2333
  "FORM"
2274
- ]), gi = /* @__PURE__ */ new Set([
2334
+ ]), xi = /* @__PURE__ */ new Set([
2275
2335
  "href",
2276
2336
  "xlink:href",
2277
2337
  "formaction",
@@ -2280,16 +2340,16 @@ var Qr = {
2280
2340
  "background",
2281
2341
  "poster"
2282
2342
  ]);
2283
- function _i(e, t) {
2343
+ function Si(e, t) {
2284
2344
  let n = e.replace(/[\t\n\r]/g, "").replace(/^[\u0000-\u0020]+/, "").trimEnd();
2285
2345
  if (!n || n.startsWith("#")) return !0;
2286
2346
  let r = /^([a-z][a-z0-9+.-]*):/i.exec(n);
2287
2347
  if (!r) return !0;
2288
2348
  let i = r[1].toLowerCase();
2289
- return mi.has(i) ? !0 : t && i === "data" ? /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i.test(n) : !1;
2349
+ return yi.has(i) ? !0 : t && i === "data" ? /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i.test(n) : !1;
2290
2350
  }
2291
- function vi(e) {
2292
- if (hi.has(e.tagName)) {
2351
+ function Ci(e) {
2352
+ if (bi.has(e.tagName)) {
2293
2353
  e.remove();
2294
2354
  return;
2295
2355
  }
@@ -2301,29 +2361,29 @@ function vi(e) {
2301
2361
  e.removeAttribute(n);
2302
2362
  continue;
2303
2363
  }
2304
- if (gi.has(t)) {
2305
- _i(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n);
2364
+ if (xi.has(t)) {
2365
+ Si(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n);
2306
2366
  continue;
2307
2367
  }
2308
2368
  if (t === "src") {
2309
- _i(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n);
2369
+ Si(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n);
2310
2370
  continue;
2311
2371
  }
2312
2372
  t === "srcdoc" && e.removeAttribute(n);
2313
2373
  }
2314
2374
  let n = Array.from(e.children);
2315
- for (let e of n) vi(e);
2375
+ for (let e of n) Ci(e);
2316
2376
  }
2317
- function yi(e) {
2377
+ function wi(e) {
2318
2378
  if (typeof DOMParser > "u") return e;
2319
2379
  let t = new DOMParser().parseFromString(`<!doctype html><body>${e}</body>`, "text/html").body, n = Array.from(t.children);
2320
- for (let e of n) vi(e);
2380
+ for (let e of n) Ci(e);
2321
2381
  return t.innerHTML;
2322
2382
  }
2323
2383
  //#endregion
2324
2384
  //#region src/composables/useEditableTextBlock.ts
2325
- function bi(e) {
2326
- let t = P(yt, []), n = P(bt, null), { syntax: r } = Xt(), i = M(() => n?.value ? Ke(e(), t) : he(e(), t)), a = M(() => yi(me(i.value, r))), o = _(!1), s = _(null), { top: c, left: l } = tt(s), { toLocal: u } = it(), d = M(() => u({
2385
+ function Ti(e) {
2386
+ let t = P(dt, []), n = P(Tt, null), { syntax: r } = $t(), i = M(() => n?.value ? ue(e(), t) : ge(e(), t)), a = M(() => wi(he(i.value, r))), o = _(!1), s = _(null), { top: c, left: l } = nt(s), { toLocal: u } = at(), d = M(() => u({
2327
2387
  top: c.value - 8,
2328
2388
  left: l.value
2329
2389
  }));
@@ -2344,14 +2404,14 @@ function bi(e) {
2344
2404
  }
2345
2405
  //#endregion
2346
2406
  //#region src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
2347
- var xi = ["innerHTML"], Si = /* @__PURE__ */ y({
2407
+ var Ei = ["innerHTML"], Di = /* @__PURE__ */ y({
2348
2408
  __name: "ParagraphBlock",
2349
2409
  props: {
2350
2410
  block: {},
2351
2411
  viewport: {}
2352
2412
  },
2353
2413
  setup(e) {
2354
- let t = e, n = C(() => import("./ParagraphEditor-D-fz0kUb.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = bi(() => t.block.content);
2414
+ let t = e, n = C(() => import("./ParagraphEditor-jGnbJEA2.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = Ti(() => t.block.content);
2355
2415
  return (t, l) => (f(), x("div", {
2356
2416
  ref_key: "blockRef",
2357
2417
  ref: i,
@@ -2370,54 +2430,54 @@ var xi = ["innerHTML"], Si = /* @__PURE__ */ y({
2370
2430
  key: 1,
2371
2431
  class: "tpl-text-content tpl:outline-none [&_a]:tpl:underline [&_li]:tpl:my-1 [&_ol]:tpl:my-2 [&_ol]:tpl:pl-6 [&_p]:tpl:m-0 [&_p]:tpl:mb-2 [&_p:last-child]:tpl:mb-0 [&_s]:tpl:line-through [&_sub]:tpl:align-sub [&_sub]:tpl:text-[0.75em] [&_sup]:tpl:align-super [&_sup]:tpl:text-[0.75em] [&_ul]:tpl:my-2 [&_ul]:tpl:pl-6",
2372
2432
  innerHTML: k(o)
2373
- }, null, 8, xi))], 544));
2433
+ }, null, 8, Ei))], 544));
2374
2434
  }
2375
2435
  });
2376
2436
  //#endregion
2377
2437
  //#region src/utils/blockComponentResolver.ts
2378
- function Ci(e) {
2438
+ function Oi(e) {
2379
2439
  let t = { fontFamily: e.fontFamily };
2380
2440
  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;
2381
2441
  }
2382
- function wi(e, t, n) {
2442
+ function ki(e, t, n) {
2383
2443
  if (t) {
2384
2444
  let n = t.getComponent(e);
2385
2445
  if (n) return n;
2386
2446
  }
2387
2447
  return n[e.type] ?? null;
2388
2448
  }
2389
- function Ti(e) {
2449
+ function Ai(e) {
2390
2450
  let { padding: t, backgroundColor: n } = e.styles, r = {
2391
2451
  padding: `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`,
2392
2452
  backgroundColor: n || "transparent"
2393
2453
  };
2394
2454
  return e.type === "section" && e.borderRadius && e.borderRadius > 0 && (r.borderRadius = `${e.borderRadius}px`), r;
2395
2455
  }
2396
- function Ei(e) {
2456
+ function ji(e) {
2397
2457
  if (e.type !== "section" || !e.wrapper) return null;
2398
2458
  let t = e.wrapper, n = {};
2399
2459
  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;
2400
2460
  }
2401
2461
  //#endregion
2402
2462
  //#region src/components/blocks/BlockWrapper.vue?vue&type=script&setup=true&lang.ts
2403
- var Di = [
2463
+ var Mi = [
2404
2464
  "data-block-id",
2405
2465
  "data-block-type",
2406
2466
  "data-tpl-picked"
2407
- ], Oi = ["aria-label"], ki = [
2467
+ ], Ni = ["aria-label"], Pi = [
2408
2468
  "aria-label",
2409
2469
  "aria-pressed",
2410
2470
  "title"
2411
- ], Ai = ["aria-label", "title"], ji = ["aria-label", "title"], Mi = ["aria-label", "title"], Ni = {
2471
+ ], Fi = ["aria-label", "title"], Ii = ["aria-label", "title"], Li = ["aria-label", "title"], Ri = {
2412
2472
  key: 1,
2413
2473
  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"
2414
- }, Pi = { 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)]" }, Fi = {
2474
+ }, zi = { class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-2 tpl:py-1 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-chrome-text-muted)] tpl:shadow-[var(--tpl-shadow-sm)]" }, Bi = {
2415
2475
  key: 2,
2416
2476
  class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
2417
- }, Ii = ["aria-label", "title"], Li = {
2477
+ }, Vi = ["aria-label", "title"], Hi = {
2418
2478
  key: 3,
2419
2479
  class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
2420
- }, Ri = ["aria-label"], zi = /*#__PURE__*/ Yt(/* @__PURE__ */ y({
2480
+ }, Ui = ["aria-label"], Wi = /*#__PURE__*/ Qt(/* @__PURE__ */ y({
2421
2481
  __name: "BlockWrapper",
2422
2482
  props: {
2423
2483
  block: {},
@@ -2429,7 +2489,7 @@ var Di = [
2429
2489
  },
2430
2490
  emits: ["select"],
2431
2491
  setup(e, { emit: t }) {
2432
- let n = C(() => import("./BlockIssueBadge-Bd94kIiw.js")), r = e, a = t, { t: s, format: c } = Ht(), l = P(zt, null), u = _(null), d = M(() => l?.liftedBlockId.value === r.block.id), m = M(() => d.value ? c(s.blockActions.dragLifted, { block: r.block.type }) : s.blockActions.drag);
2492
+ let n = C(() => import("./BlockIssueBadge-BQiT0FML.js")), r = e, a = t, { t: s, format: c } = Kt(), l = P(xt, null), u = _(null), d = M(() => l?.liftedBlockId.value === r.block.id), m = M(() => d.value ? c(s.blockActions.dragLifted, { block: r.block.type }) : s.blockActions.drag);
2433
2493
  async function h() {
2434
2494
  await re(), u.value?.focus();
2435
2495
  }
@@ -2455,13 +2515,13 @@ var Di = [
2455
2515
  let v = M(() => !r.viewport || !r.block.visibility ? !1 : r.block.visibility[r.viewport] === !1), y = M(() => r.previewMode === !0 && v.value), S = M(() => r.viewport ? {
2456
2516
  desktop: s.viewport.desktop,
2457
2517
  mobile: s.viewport.mobile
2458
- }[r.viewport] ?? r.viewport : ""), E = M(() => !!r.block.displayCondition), D = P(Ot, null), A = P(wt, null), j = P(It, {}), ee = M(() => j.savedBlocks?.isPicking.value === !0), te = M(() => !r.nested && j.savedBlocks?.isAvailable.value === !0 && j.savedBlocks?.canCreate.value === !0), ne = M(() => r.isSelected && !ee.value), ie = M(() => j.comments?.getBlockCount(r.block.id) ?? 0), ae = M(() => {
2459
- let e = Ti(r.block), t = {
2518
+ }[r.viewport] ?? r.viewport : ""), E = M(() => !!r.block.displayCondition), D = P(Dt, null), A = P(At, null), j = P(kt, {}), ee = M(() => j.savedBlocks?.isPicking.value === !0), te = M(() => !r.nested && j.savedBlocks?.isAvailable.value === !0 && j.savedBlocks?.canCreate.value === !0), ne = M(() => r.isSelected && !ee.value), ie = M(() => j.comments?.getBlockCount(r.block.id) ?? 0), ae = M(() => {
2519
+ let e = Ai(r.block), t = {
2460
2520
  padding: e.padding,
2461
2521
  backgroundColor: e.backgroundColor
2462
2522
  };
2463
2523
  return e.borderRadius && (t.borderRadius = e.borderRadius), t;
2464
- }), oe = M(() => Ei(r.block));
2524
+ }), oe = M(() => ji(r.block));
2465
2525
  function se(e) {
2466
2526
  r.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), a("select"));
2467
2527
  }
@@ -2506,60 +2566,61 @@ var Di = [
2506
2566
  "aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
2507
2567
  title: k(s).blockActions.drag,
2508
2568
  onKeydown: g
2509
- }, [w(k(rr), {
2569
+ }, [w(k(cr), {
2510
2570
  size: 14,
2511
2571
  "stroke-width": 1.5
2512
- })], 40, ki),
2572
+ })], 40, Pi),
2513
2573
  b("button", {
2514
2574
  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 tpl:duration-150",
2515
2575
  "aria-label": k(s).blockActions.duplicate,
2516
2576
  title: k(s).blockActions.duplicate,
2517
2577
  onClick: F(le, ["stop"])
2518
- }, [w(k(er), {
2578
+ }, [w(k(ar), {
2519
2579
  size: 14,
2520
2580
  "stroke-width": 1.5
2521
- })], 8, Ai),
2581
+ })], 8, Fi),
2522
2582
  te.value ? (f(), x("button", {
2523
2583
  key: 0,
2524
2584
  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 tpl:duration-150",
2525
2585
  "aria-label": k(s).blockActions.saveAsBlock,
2526
2586
  title: k(s).blockActions.saveAsBlock,
2527
2587
  onClick: F(ue, ["stop"])
2528
- }, [w(k(Zn), {
2588
+ }, [w(k(nr), {
2529
2589
  size: 14,
2530
2590
  "stroke-width": 1.5
2531
- })], 8, ji)) : N("", !0),
2591
+ })], 8, Ii)) : N("", !0),
2532
2592
  b("button", {
2533
2593
  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 tpl:duration-150",
2534
2594
  "aria-label": k(s).blockActions.delete,
2535
2595
  title: k(s).blockActions.delete,
2536
2596
  onClick: F(ce, ["stop"])
2537
- }, [w(k(Kt), {
2597
+ }, [w(k(Yt), {
2538
2598
  size: 14,
2539
2599
  "stroke-width": 1.5
2540
- })], 8, Mi)
2541
- ], 8, Oi)) : N("", !0),
2542
- v.value ? (f(), x("div", Ni, [b("span", Pi, [w(k(tr), {
2600
+ })], 8, Li)
2601
+ ], 8, Ni)) : N("", !0),
2602
+ v.value ? (f(), x("div", Ri, [b("span", zi, [w(k(or), {
2543
2603
  size: 12,
2544
2604
  "stroke-width": 1.5
2545
2605
  }), O(" " + p(k(c)(k(s).blockActions.hiddenOnViewport, { viewport: S.value })), 1)])])) : N("", !0),
2546
- E.value && !v.value ? (f(), x("div", Fi, [b("button", {
2606
+ E.value && !v.value ? (f(), x("div", Bi, [b("button", {
2607
+ "data-testid": "condition-toggle",
2547
2608
  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:duration-150 tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-primary)] tpl:border tpl:border-[var(--tpl-border)]",
2548
2609
  "aria-label": k(s).blockActions.conditionToggle,
2549
2610
  title: e.block.displayCondition?.label,
2550
2611
  onClick: F(de, ["stop"])
2551
- }, [w(k(nr), {
2612
+ }, [w(k(sr), {
2552
2613
  size: 12,
2553
2614
  "stroke-width": 2
2554
- })], 8, Ii)])) : N("", !0),
2555
- ie.value > 0 && !v.value ? (f(), x("div", Li, [b("button", {
2615
+ })], 8, Vi)])) : N("", !0),
2616
+ ie.value > 0 && !v.value ? (f(), x("div", Hi, [b("button", {
2556
2617
  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:duration-150 tpl:bg-[var(--tpl-chrome-primary-light)] tpl:text-[var(--tpl-primary)]",
2557
2618
  "aria-label": k(c)(k(s).blockActions.comments, { count: String(ie.value) }),
2558
2619
  onClick: r[0] ||= F((t) => k(j).comments?.openForBlock(e.block.id), ["stop"])
2559
- }, [w(k(Gt), {
2620
+ }, [w(k(Jt), {
2560
2621
  size: 12,
2561
2622
  "stroke-width": 2.5
2562
- }), O(" " + p(ie.value), 1)], 8, Ri)])) : N("", !0),
2623
+ }), O(" " + p(ie.value), 1)], 8, Ui)])) : N("", !0),
2563
2624
  oe.value ? (f(), x("div", {
2564
2625
  key: 4,
2565
2626
  class: "tpl-section-wrapper",
@@ -2572,31 +2633,31 @@ var Di = [
2572
2633
  class: "tpl-block-content",
2573
2634
  style: i(ae.value)
2574
2635
  }, [T(t.$slots, "default", {}, void 0, !0)], 4))
2575
- ], 10, Di));
2636
+ ], 10, Mi));
2576
2637
  }
2577
- }), [["__scopeId", "data-v-43c10a08"]]);
2638
+ }), [["__scopeId", "data-v-8e4583ee"]]);
2578
2639
  //#endregion
2579
2640
  //#region src/utils/unwrapParagraph.ts
2580
- function Bi(e) {
2641
+ function Gi(e) {
2581
2642
  let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
2582
2643
  return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
2583
2644
  }
2584
2645
  //#endregion
2585
2646
  //#region src/components/blocks/TitleBlock.vue
2586
- var Vi = /* @__PURE__ */ y({
2647
+ var Ki = /* @__PURE__ */ y({
2587
2648
  __name: "TitleBlock",
2588
2649
  props: {
2589
2650
  block: {},
2590
2651
  viewport: {}
2591
2652
  },
2592
2653
  setup(e) {
2593
- let t = e, n = C(() => import("./TitleEditor-BB4YlIBF.js")), { isEditing: r, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = bi(() => t.block.content), u = M(() => {
2654
+ let t = e, n = C(() => import("./TitleEditor-aMR1bOyY.js")), { isEditing: r, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = Ti(() => t.block.content), u = M(() => {
2594
2655
  let e = {
2595
- fontSize: `${ze[t.block.level]}px`,
2656
+ fontSize: `${Be[t.block.level]}px`,
2596
2657
  textAlign: t.block.textAlign
2597
2658
  };
2598
2659
  return t.block.color && (e.color = t.block.color), t.block.fontFamily && (e.fontFamily = t.block.fontFamily), e;
2599
- }), p = M(() => `h${t.block.level}`), m = M(() => Bi(s.value));
2660
+ }), p = M(() => `h${t.block.level}`), m = M(() => Gi(s.value));
2600
2661
  return (t, s) => (f(), x("div", {
2601
2662
  ref_key: "blockRef",
2602
2663
  ref: a,
@@ -2622,88 +2683,88 @@ var Vi = /* @__PURE__ */ y({
2622
2683
  });
2623
2684
  //#endregion
2624
2685
  //#region src/utils/sectionColumnDrop.ts
2625
- function Hi(e) {
2686
+ function qi(e) {
2626
2687
  return e.dataset.blockType !== "section" && e.dataset.paletteType !== "section";
2627
2688
  }
2628
2689
  //#endregion
2629
2690
  //#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
2630
- var Ui = Object.defineProperty, Wi = Object.getOwnPropertySymbols, Gi = Object.prototype.hasOwnProperty, Ki = Object.prototype.propertyIsEnumerable, qi = (e, t, n) => t in e ? Ui(e, t, {
2691
+ var Ji = Object.defineProperty, Yi = Object.getOwnPropertySymbols, Xi = Object.prototype.hasOwnProperty, Zi = Object.prototype.propertyIsEnumerable, Qi = (e, t, n) => t in e ? Ji(e, t, {
2631
2692
  enumerable: !0,
2632
2693
  configurable: !0,
2633
2694
  writable: !0,
2634
2695
  value: n
2635
- }) : e[t] = n, Ji = (e, t) => {
2636
- for (var n in t ||= {}) Gi.call(t, n) && qi(e, n, t[n]);
2637
- if (Wi) for (var n of Wi(t)) Ki.call(t, n) && qi(e, n, t[n]);
2696
+ }) : e[t] = n, $i = (e, t) => {
2697
+ for (var n in t ||= {}) Xi.call(t, n) && Qi(e, n, t[n]);
2698
+ if (Yi) for (var n of Yi(t)) Zi.call(t, n) && Qi(e, n, t[n]);
2638
2699
  return e;
2639
- }, Yi = (e, t) => {
2700
+ }, ea = (e, t) => {
2640
2701
  var n = {};
2641
- for (var r in e) Gi.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
2642
- if (e != null && Wi) for (var r of Wi(e)) t.indexOf(r) < 0 && Ki.call(e, r) && (n[r] = e[r]);
2702
+ for (var r in e) Xi.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
2703
+ if (e != null && Yi) for (var r of Yi(e)) t.indexOf(r) < 0 && Zi.call(e, r) && (n[r] = e[r]);
2643
2704
  return n;
2644
- }, Xi = "[vue-draggable-plus]: ";
2645
- function Zi(e) {
2646
- console.warn(Xi + e);
2705
+ }, ta = "[vue-draggable-plus]: ";
2706
+ function na(e) {
2707
+ console.warn(ta + e);
2647
2708
  }
2648
- function Qi(e) {
2649
- console.error(Xi + e);
2709
+ function ra(e) {
2710
+ console.error(ta + e);
2650
2711
  }
2651
- function $i(e, t, n) {
2712
+ function ia(e, t, n) {
2652
2713
  return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
2653
2714
  }
2654
- function ea(e) {
2715
+ function aa(e) {
2655
2716
  return e.replace(/-(\w)/g, (e, t) => t ? t.toUpperCase() : "");
2656
2717
  }
2657
- function ta(e) {
2658
- return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[ea(n)] = e[n]), t), {});
2718
+ function oa(e) {
2719
+ return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[aa(n)] = e[n]), t), {});
2659
2720
  }
2660
- function na(e, t) {
2721
+ function sa(e, t) {
2661
2722
  return Array.isArray(e) && e.splice(t, 1), e;
2662
2723
  }
2663
- function ra(e, t, n) {
2724
+ function ca(e, t, n) {
2664
2725
  return Array.isArray(e) && e.splice(t, 0, n), e;
2665
2726
  }
2666
- function ia(e) {
2727
+ function la(e) {
2667
2728
  return e === void 0;
2668
2729
  }
2669
- function aa(e) {
2730
+ function ua(e) {
2670
2731
  return typeof e == "string";
2671
2732
  }
2672
- function oa(e, t, n) {
2733
+ function da(e, t, n) {
2673
2734
  let r = e.children[n];
2674
2735
  e.insertBefore(t, r);
2675
2736
  }
2676
- function sa(e) {
2737
+ function fa(e) {
2677
2738
  e.parentNode && e.parentNode.removeChild(e);
2678
2739
  }
2679
- function ca(e, t = document) {
2740
+ function pa(e, t = document) {
2680
2741
  let n = null;
2681
- return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || Zi(`Element not found: ${e}`), n;
2742
+ return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || na(`Element not found: ${e}`), n;
2682
2743
  }
2683
- function la(e, t, n = null) {
2744
+ function ma(e, t, n = null) {
2684
2745
  return function(...r) {
2685
2746
  return e.apply(n, r), t.apply(n, r);
2686
2747
  };
2687
2748
  }
2688
- function ua(e, t) {
2689
- let n = Ji({}, e);
2749
+ function ha(e, t) {
2750
+ let n = $i({}, e);
2690
2751
  return Object.keys(t).forEach((r) => {
2691
- n[r] ? n[r] = la(e[r], t[r]) : n[r] = t[r];
2752
+ n[r] ? n[r] = ma(e[r], t[r]) : n[r] = t[r];
2692
2753
  }), n;
2693
2754
  }
2694
- function da(e) {
2755
+ function ga(e) {
2695
2756
  return e instanceof HTMLElement;
2696
2757
  }
2697
- function fa(e, t) {
2758
+ function _a(e, t) {
2698
2759
  Object.keys(e).forEach((n) => {
2699
2760
  t(n, e[n]);
2700
2761
  });
2701
2762
  }
2702
- function pa(e) {
2763
+ function va(e) {
2703
2764
  return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
2704
2765
  }
2705
- var ma = Object.assign;
2706
- function ha(e, t) {
2766
+ var ya = Object.assign;
2767
+ function ba(e, t) {
2707
2768
  var n = Object.keys(e);
2708
2769
  if (Object.getOwnPropertySymbols) {
2709
2770
  var r = Object.getOwnPropertySymbols(e);
@@ -2713,26 +2774,26 @@ function ha(e, t) {
2713
2774
  }
2714
2775
  return n;
2715
2776
  }
2716
- function ga(e) {
2777
+ function xa(e) {
2717
2778
  for (var t = 1; t < arguments.length; t++) {
2718
2779
  var n = arguments[t] == null ? {} : arguments[t];
2719
- t % 2 ? ha(Object(n), !0).forEach(function(t) {
2720
- va(e, t, n[t]);
2721
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ha(Object(n)).forEach(function(t) {
2780
+ t % 2 ? ba(Object(n), !0).forEach(function(t) {
2781
+ Ca(e, t, n[t]);
2782
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ba(Object(n)).forEach(function(t) {
2722
2783
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
2723
2784
  });
2724
2785
  }
2725
2786
  return e;
2726
2787
  }
2727
- function _a(e) {
2788
+ function Sa(e) {
2728
2789
  "@babel/helpers - typeof";
2729
- return _a = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2790
+ return Sa = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2730
2791
  return typeof e;
2731
2792
  } : function(e) {
2732
2793
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2733
- }, _a(e);
2794
+ }, Sa(e);
2734
2795
  }
2735
- function va(e, t, n) {
2796
+ function Ca(e, t, n) {
2736
2797
  return t in e ? Object.defineProperty(e, t, {
2737
2798
  value: n,
2738
2799
  enumerable: !0,
@@ -2740,45 +2801,45 @@ function va(e, t, n) {
2740
2801
  writable: !0
2741
2802
  }) : e[t] = n, e;
2742
2803
  }
2743
- function ya() {
2744
- return ya = Object.assign || function(e) {
2804
+ function wa() {
2805
+ return wa = Object.assign || function(e) {
2745
2806
  for (var t = 1; t < arguments.length; t++) {
2746
2807
  var n = arguments[t];
2747
2808
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
2748
2809
  }
2749
2810
  return e;
2750
- }, ya.apply(this, arguments);
2811
+ }, wa.apply(this, arguments);
2751
2812
  }
2752
- function ba(e, t) {
2813
+ function Ta(e, t) {
2753
2814
  if (e == null) return {};
2754
2815
  var n = {}, r = Object.keys(e), i, a;
2755
2816
  for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
2756
2817
  return n;
2757
2818
  }
2758
- function xa(e, t) {
2819
+ function Ea(e, t) {
2759
2820
  if (e == null) return {};
2760
- var n = ba(e, t), r, i;
2821
+ var n = Ta(e, t), r, i;
2761
2822
  if (Object.getOwnPropertySymbols) {
2762
2823
  var a = Object.getOwnPropertySymbols(e);
2763
2824
  for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
2764
2825
  }
2765
2826
  return n;
2766
2827
  }
2767
- var Sa = "1.15.2";
2768
- function Ca(e) {
2828
+ var Da = "1.15.2";
2829
+ function Oa(e) {
2769
2830
  if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
2770
2831
  }
2771
- var wa = Ca(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ta = Ca(/Edge/i), Ea = Ca(/firefox/i), Da = Ca(/safari/i) && !Ca(/chrome/i) && !Ca(/android/i), Oa = Ca(/iP(ad|od|hone)/i), ka = Ca(/chrome/i) && Ca(/android/i), Aa = {
2832
+ var ka = Oa(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Aa = Oa(/Edge/i), ja = Oa(/firefox/i), Ma = Oa(/safari/i) && !Oa(/chrome/i) && !Oa(/android/i), Na = Oa(/iP(ad|od|hone)/i), Pa = Oa(/chrome/i) && Oa(/android/i), Fa = {
2772
2833
  capture: !1,
2773
2834
  passive: !1
2774
2835
  };
2775
- function I(e, t, n) {
2776
- e.addEventListener(t, n, !wa && Aa);
2777
- }
2778
2836
  function L(e, t, n) {
2779
- e.removeEventListener(t, n, !wa && Aa);
2837
+ e.addEventListener(t, n, !ka && Fa);
2838
+ }
2839
+ function R(e, t, n) {
2840
+ e.removeEventListener(t, n, !ka && Fa);
2780
2841
  }
2781
- function ja(e, t) {
2842
+ function Ia(e, t) {
2782
2843
  if (t) {
2783
2844
  if (t[0] === ">" && (t = t.substring(1)), e) try {
2784
2845
  if (e.matches) return e.matches(t);
@@ -2790,41 +2851,41 @@ function ja(e, t) {
2790
2851
  return !1;
2791
2852
  }
2792
2853
  }
2793
- function Ma(e) {
2854
+ function La(e) {
2794
2855
  return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
2795
2856
  }
2796
- function Na(e, t, n, r) {
2857
+ function Ra(e, t, n, r) {
2797
2858
  if (e) {
2798
2859
  n ||= document;
2799
2860
  do {
2800
- if (t != null && (t[0] === ">" ? e.parentNode === n && ja(e, t) : ja(e, t)) || r && e === n) return e;
2861
+ if (t != null && (t[0] === ">" ? e.parentNode === n && Ia(e, t) : Ia(e, t)) || r && e === n) return e;
2801
2862
  if (e === n) break;
2802
- } while (e = Ma(e));
2863
+ } while (e = La(e));
2803
2864
  }
2804
2865
  return null;
2805
2866
  }
2806
- var Pa = /\s+/g;
2807
- function R(e, t, n) {
2808
- e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(Pa, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(Pa, " "));
2809
- }
2867
+ var za = /\s+/g;
2810
2868
  function z(e, t, n) {
2869
+ e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(za, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(za, " "));
2870
+ }
2871
+ function B(e, t, n) {
2811
2872
  var r = e && e.style;
2812
2873
  if (r) {
2813
2874
  if (n === void 0) return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (n = e.currentStyle), t === void 0 ? n : n[t];
2814
2875
  !(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
2815
2876
  }
2816
2877
  }
2817
- function Fa(e, t) {
2878
+ function Ba(e, t) {
2818
2879
  var n = "";
2819
2880
  if (typeof e == "string") n = e;
2820
2881
  else do {
2821
- var r = z(e, "transform");
2882
+ var r = B(e, "transform");
2822
2883
  r && r !== "none" && (n = r + " " + n);
2823
2884
  } while (!t && (e = e.parentNode));
2824
2885
  var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
2825
2886
  return i && new i(n);
2826
2887
  }
2827
- function Ia(e, t, n) {
2888
+ function Va(e, t, n) {
2828
2889
  if (e) {
2829
2890
  var r = e.getElementsByTagName(t), i = 0, a = r.length;
2830
2891
  if (n) for (; i < a; i++) n(r[i], i);
@@ -2832,21 +2893,21 @@ function Ia(e, t, n) {
2832
2893
  }
2833
2894
  return [];
2834
2895
  }
2835
- function La() {
2896
+ function Ha() {
2836
2897
  return document.scrollingElement || document.documentElement;
2837
2898
  }
2838
- function B(e, t, n, r, i) {
2899
+ function V(e, t, n, r, i) {
2839
2900
  if (!(!e.getBoundingClientRect && e !== window)) {
2840
2901
  var a, o, s, c, l, u, d;
2841
- if (e !== window && e.parentNode && e !== La() ? (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, !wa)) do
2842
- if (i && i.getBoundingClientRect && (z(i, "transform") !== "none" || n && z(i, "position") !== "static")) {
2902
+ if (e !== window && e.parentNode && e !== Ha() ? (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, !ka)) do
2903
+ if (i && i.getBoundingClientRect && (B(i, "transform") !== "none" || n && B(i, "position") !== "static")) {
2843
2904
  var f = i.getBoundingClientRect();
2844
- o -= f.top + parseInt(z(i, "border-top-width")), s -= f.left + parseInt(z(i, "border-left-width")), c = o + a.height, l = s + a.width;
2905
+ o -= f.top + parseInt(B(i, "border-top-width")), s -= f.left + parseInt(B(i, "border-left-width")), c = o + a.height, l = s + a.width;
2845
2906
  break;
2846
2907
  }
2847
2908
  while (i = i.parentNode);
2848
2909
  if (r && e !== window) {
2849
- var p = Fa(i || e), m = p && p.a, h = p && p.d;
2910
+ var p = Ba(i || e), m = p && p.a, h = p && p.d;
2850
2911
  p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
2851
2912
  }
2852
2913
  return {
@@ -2859,18 +2920,18 @@ function B(e, t, n, r, i) {
2859
2920
  };
2860
2921
  }
2861
2922
  }
2862
- function Ra(e, t, n) {
2863
- for (var r = Wa(e, !0), i = B(e)[t]; r;) {
2864
- var a = B(r)[n], o = void 0;
2923
+ function Ua(e, t, n) {
2924
+ for (var r = Ya(e, !0), i = V(e)[t]; r;) {
2925
+ var a = V(r)[n], o = void 0;
2865
2926
  if (o = i >= a, !o) return r;
2866
- if (r === La()) break;
2867
- r = Wa(r, !1);
2927
+ if (r === Ha()) break;
2928
+ r = Ya(r, !1);
2868
2929
  }
2869
2930
  return !1;
2870
2931
  }
2871
- function za(e, t, n, r) {
2932
+ function Wa(e, t, n, r) {
2872
2933
  for (var i = 0, a = 0, o = e.children; a < o.length;) {
2873
- if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && Na(o[a], n.draggable, e, !1)) {
2934
+ if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && Ra(o[a], n.draggable, e, !1)) {
2874
2935
  if (i === t) return o[a];
2875
2936
  i++;
2876
2937
  }
@@ -2878,96 +2939,96 @@ function za(e, t, n, r) {
2878
2939
  }
2879
2940
  return null;
2880
2941
  }
2881
- function Ba(e, t) {
2882
- for (var n = e.lastElementChild; n && (n === Q.ghost || z(n, "display") === "none" || t && !ja(n, t));) n = n.previousElementSibling;
2942
+ function Ga(e, t) {
2943
+ for (var n = e.lastElementChild; n && (n === Q.ghost || B(n, "display") === "none" || t && !Ia(n, t));) n = n.previousElementSibling;
2883
2944
  return n || null;
2884
2945
  }
2885
- function Va(e, t) {
2946
+ function Ka(e, t) {
2886
2947
  var n = 0;
2887
2948
  if (!e || !e.parentNode) return -1;
2888
- for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || ja(e, t)) && n++;
2949
+ for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || Ia(e, t)) && n++;
2889
2950
  return n;
2890
2951
  }
2891
- function Ha(e) {
2892
- var t = 0, n = 0, r = La();
2952
+ function qa(e) {
2953
+ var t = 0, n = 0, r = Ha();
2893
2954
  if (e) do {
2894
- var i = Fa(e), a = i.a, o = i.d;
2955
+ var i = Ba(e), a = i.a, o = i.d;
2895
2956
  t += e.scrollLeft * a, n += e.scrollTop * o;
2896
2957
  } while (e !== r && (e = e.parentNode));
2897
2958
  return [t, n];
2898
2959
  }
2899
- function Ua(e, t) {
2960
+ function Ja(e, t) {
2900
2961
  for (var n in e) if (e.hasOwnProperty(n)) {
2901
2962
  for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
2902
2963
  }
2903
2964
  return -1;
2904
2965
  }
2905
- function Wa(e, t) {
2906
- if (!e || !e.getBoundingClientRect) return La();
2966
+ function Ya(e, t) {
2967
+ if (!e || !e.getBoundingClientRect) return Ha();
2907
2968
  var n = e, r = !1;
2908
2969
  do
2909
2970
  if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
2910
- var i = z(n);
2971
+ var i = B(n);
2911
2972
  if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
2912
- if (!n.getBoundingClientRect || n === document.body) return La();
2973
+ if (!n.getBoundingClientRect || n === document.body) return Ha();
2913
2974
  if (r || t) return n;
2914
2975
  r = !0;
2915
2976
  }
2916
2977
  }
2917
2978
  while (n = n.parentNode);
2918
- return La();
2979
+ return Ha();
2919
2980
  }
2920
- function Ga(e, t) {
2981
+ function Xa(e, t) {
2921
2982
  if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
2922
2983
  return e;
2923
2984
  }
2924
- function Ka(e, t) {
2985
+ function Za(e, t) {
2925
2986
  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);
2926
2987
  }
2927
- var qa;
2928
- function Ja(e, t) {
2988
+ var Qa;
2989
+ function $a(e, t) {
2929
2990
  return function() {
2930
- if (!qa) {
2991
+ if (!Qa) {
2931
2992
  var n = arguments, r = this;
2932
- n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), qa = setTimeout(function() {
2933
- qa = void 0;
2993
+ n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), Qa = setTimeout(function() {
2994
+ Qa = void 0;
2934
2995
  }, t);
2935
2996
  }
2936
2997
  };
2937
2998
  }
2938
- function Ya() {
2939
- clearTimeout(qa), qa = void 0;
2999
+ function eo() {
3000
+ clearTimeout(Qa), Qa = void 0;
2940
3001
  }
2941
- function Xa(e, t, n) {
3002
+ function to(e, t, n) {
2942
3003
  e.scrollLeft += t, e.scrollTop += n;
2943
3004
  }
2944
- function Za(e) {
3005
+ function no(e) {
2945
3006
  var t = window.Polymer, n = window.jQuery || window.Zepto;
2946
3007
  return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
2947
3008
  }
2948
- function Qa(e, t, n) {
3009
+ function ro(e, t, n) {
2949
3010
  var r = {};
2950
3011
  return Array.from(e.children).forEach(function(i) {
2951
- if (!(!Na(i, t.draggable, e, !1) || i.animated || i === n)) {
2952
- var a = B(i);
3012
+ if (!(!Ra(i, t.draggable, e, !1) || i.animated || i === n)) {
3013
+ var a = V(i);
2953
3014
  r.left = Math.min(r.left ?? Infinity, a.left), r.top = Math.min(r.top ?? Infinity, a.top), r.right = Math.max(r.right ?? -Infinity, a.right), r.bottom = Math.max(r.bottom ?? -Infinity, a.bottom);
2954
3015
  }
2955
3016
  }), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
2956
3017
  }
2957
- var V = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
2958
- function $a() {
3018
+ var H = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
3019
+ function io() {
2959
3020
  var e = [], t;
2960
3021
  return {
2961
3022
  captureAnimationState: function() {
2962
3023
  e = [], this.options.animation && [].slice.call(this.el.children).forEach(function(t) {
2963
- if (!(z(t, "display") === "none" || t === Q.ghost)) {
3024
+ if (B(t, "display") !== "none" && t !== Q.ghost) {
2964
3025
  e.push({
2965
3026
  target: t,
2966
- rect: B(t)
3027
+ rect: V(t)
2967
3028
  });
2968
- var n = ga({}, e[e.length - 1].rect);
3029
+ var n = xa({}, e[e.length - 1].rect);
2969
3030
  if (t.thisAnimationDuration) {
2970
- var r = Fa(t, !0);
3031
+ var r = Ba(t, !0);
2971
3032
  r && (n.top -= r.f, n.left -= r.e);
2972
3033
  }
2973
3034
  t.fromRect = n;
@@ -2978,7 +3039,7 @@ function $a() {
2978
3039
  e.push(t);
2979
3040
  },
2980
3041
  removeAnimationState: function(t) {
2981
- e.splice(Ua(e, { target: t }), 1);
3042
+ e.splice(Ja(e, { target: t }), 1);
2982
3043
  },
2983
3044
  animateAll: function(n) {
2984
3045
  var r = this;
@@ -2988,8 +3049,8 @@ function $a() {
2988
3049
  }
2989
3050
  var i = !1, a = 0;
2990
3051
  e.forEach(function(e) {
2991
- var t = 0, n = e.target, o = n.fromRect, s = B(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = Fa(n, !0);
2992
- d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Ka(c, s) && !Ka(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = to(u, c, l, r.options)), Ka(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() {
3052
+ var t = 0, n = e.target, o = n.fromRect, s = V(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = Ba(n, !0);
3053
+ d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Za(c, s) && !Za(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = oo(u, c, l, r.options)), Za(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() {
2993
3054
  n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
2994
3055
  }, t), n.thisAnimationDuration = t);
2995
3056
  }), clearTimeout(t), i ? t = setTimeout(function() {
@@ -2998,27 +3059,27 @@ function $a() {
2998
3059
  },
2999
3060
  animate: function(e, t, n, r) {
3000
3061
  if (r) {
3001
- z(e, "transition", ""), z(e, "transform", "");
3002
- var i = Fa(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
3003
- e.animatingX = !!s, e.animatingY = !!c, z(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = eo(e), z(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), z(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
3004
- z(e, "transition", ""), z(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
3062
+ B(e, "transition", ""), B(e, "transform", "");
3063
+ var i = Ba(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
3064
+ e.animatingX = !!s, e.animatingY = !!c, B(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = ao(e), B(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), B(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
3065
+ B(e, "transition", ""), B(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
3005
3066
  }, r);
3006
3067
  }
3007
3068
  }
3008
3069
  };
3009
3070
  }
3010
- function eo(e) {
3071
+ function ao(e) {
3011
3072
  return e.offsetWidth;
3012
3073
  }
3013
- function to(e, t, n, r) {
3074
+ function oo(e, t, n, r) {
3014
3075
  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;
3015
3076
  }
3016
- var no = [], ro = { initializeByDefault: !0 }, io = {
3077
+ var so = [], co = { initializeByDefault: !0 }, lo = {
3017
3078
  mount: function(e) {
3018
- for (var t in ro) ro.hasOwnProperty(t) && !(t in e) && (e[t] = ro[t]);
3019
- no.forEach(function(t) {
3079
+ for (var t in co) co.hasOwnProperty(t) && !(t in e) && (e[t] = co[t]);
3080
+ so.forEach(function(t) {
3020
3081
  if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
3021
- }), no.push(e);
3082
+ }), so.push(e);
3022
3083
  },
3023
3084
  pluginEvent: function(e, t, n) {
3024
3085
  var r = this;
@@ -3026,16 +3087,16 @@ var no = [], ro = { initializeByDefault: !0 }, io = {
3026
3087
  r.eventCanceled = !0;
3027
3088
  };
3028
3089
  var i = e + "Global";
3029
- no.forEach(function(r) {
3030
- t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](ga({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](ga({ sortable: t }, n)));
3090
+ so.forEach(function(r) {
3091
+ t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](xa({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](xa({ sortable: t }, n)));
3031
3092
  });
3032
3093
  },
3033
3094
  initializePlugins: function(e, t, n, r) {
3034
- for (var i in no.forEach(function(r) {
3095
+ for (var i in so.forEach(function(r) {
3035
3096
  var i = r.pluginName;
3036
3097
  if (!(!e.options[i] && !r.initializeByDefault)) {
3037
3098
  var a = new r(e, t, e.options);
3038
- a.sortable = e, a.options = e.options, e[i] = a, ya(n, a.defaults);
3099
+ a.sortable = e, a.options = e.options, e[i] = a, wa(n, a.defaults);
3039
3100
  }
3040
3101
  }), e.options) if (e.options.hasOwnProperty(i)) {
3041
3102
  var a = this.modifyOption(e, i, e.options[i]);
@@ -3044,59 +3105,59 @@ var no = [], ro = { initializeByDefault: !0 }, io = {
3044
3105
  },
3045
3106
  getEventProperties: function(e, t) {
3046
3107
  var n = {};
3047
- return no.forEach(function(r) {
3048
- typeof r.eventProperties == "function" && ya(n, r.eventProperties.call(t[r.pluginName], e));
3108
+ return so.forEach(function(r) {
3109
+ typeof r.eventProperties == "function" && wa(n, r.eventProperties.call(t[r.pluginName], e));
3049
3110
  }), n;
3050
3111
  },
3051
3112
  modifyOption: function(e, t, n) {
3052
3113
  var r;
3053
- return no.forEach(function(i) {
3114
+ return so.forEach(function(i) {
3054
3115
  e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
3055
3116
  }), r;
3056
3117
  }
3057
3118
  };
3058
- function ao(e) {
3119
+ function uo(e) {
3059
3120
  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;
3060
- if (t ||= n && n[V], t) {
3121
+ if (t ||= n && n[H], t) {
3061
3122
  var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
3062
- window.CustomEvent && !wa && !Ta ? h = new CustomEvent(r, {
3123
+ window.CustomEvent && !ka && !Aa ? h = new CustomEvent(r, {
3063
3124
  bubbles: !0,
3064
3125
  cancelable: !0
3065
3126
  }) : (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;
3066
- var v = ga(ga({}, m), io.getEventProperties(r, t));
3127
+ var v = xa(xa({}, m), lo.getEventProperties(r, t));
3067
3128
  for (var y in v) h[y] = v[y];
3068
3129
  n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
3069
3130
  }
3070
3131
  }
3071
- var oo = ["evt"], H = function(e, t) {
3072
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = xa(n, oo);
3073
- io.pluginEvent.bind(Q)(e, t, ga({
3074
- dragEl: W,
3075
- parentEl: G,
3076
- ghostEl: K,
3077
- rootEl: q,
3078
- nextEl: so,
3079
- lastDownEl: co,
3080
- cloneEl: J,
3081
- cloneHidden: lo,
3082
- dragStarted: wo,
3132
+ var fo = ["evt"], U = function(e, t) {
3133
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = Ea(n, fo);
3134
+ lo.pluginEvent.bind(Q)(e, t, xa({
3135
+ dragEl: G,
3136
+ parentEl: K,
3137
+ ghostEl: q,
3138
+ rootEl: J,
3139
+ nextEl: po,
3140
+ lastDownEl: mo,
3141
+ cloneEl: Y,
3142
+ cloneHidden: ho,
3143
+ dragStarted: Ao,
3083
3144
  putSortable: X,
3084
3145
  activeSortable: Q.active,
3085
3146
  originalEvent: r,
3086
- oldIndex: uo,
3087
- oldDraggableIndex: fo,
3088
- newIndex: Y,
3089
- newDraggableIndex: po,
3090
- hideGhostForTarget: Ho,
3091
- unhideGhostForTarget: Uo,
3147
+ oldIndex: go,
3148
+ oldDraggableIndex: vo,
3149
+ newIndex: _o,
3150
+ newDraggableIndex: yo,
3151
+ hideGhostForTarget: Jo,
3152
+ unhideGhostForTarget: Yo,
3092
3153
  cloneNowHidden: function() {
3093
- lo = !0;
3154
+ ho = !0;
3094
3155
  },
3095
3156
  cloneNowShown: function() {
3096
- lo = !1;
3157
+ ho = !1;
3097
3158
  },
3098
3159
  dispatchSortableEvent: function(e) {
3099
- U({
3160
+ W({
3100
3161
  sortable: t,
3101
3162
  name: e,
3102
3163
  originalEvent: r
@@ -3104,46 +3165,46 @@ var oo = ["evt"], H = function(e, t) {
3104
3165
  }
3105
3166
  }, i));
3106
3167
  };
3107
- function U(e) {
3108
- ao(ga({
3168
+ function W(e) {
3169
+ uo(xa({
3109
3170
  putSortable: X,
3110
- cloneEl: J,
3111
- targetEl: W,
3112
- rootEl: q,
3113
- oldIndex: uo,
3114
- oldDraggableIndex: fo,
3115
- newIndex: Y,
3116
- newDraggableIndex: po
3171
+ cloneEl: Y,
3172
+ targetEl: G,
3173
+ rootEl: J,
3174
+ oldIndex: go,
3175
+ oldDraggableIndex: vo,
3176
+ newIndex: _o,
3177
+ newDraggableIndex: yo
3117
3178
  }, e));
3118
3179
  }
3119
- var W, G, K, q, so, co, J, lo, uo, Y, fo, po, mo, X, ho = !1, go = !1, _o = [], vo, yo, bo, xo, So, Co, wo, To, Eo, Do = !1, Oo = !1, ko, Z, Ao = [], jo = !1, Mo = [], No = typeof document < "u", Po = Oa, Fo = Ta || wa ? "cssFloat" : "float", Io = No && !ka && !Oa && "draggable" in document.createElement("div"), Lo = function() {
3120
- if (No) {
3121
- if (wa) return !1;
3180
+ var G, K, q, J, po, mo, Y, ho, go, _o, vo, yo, bo, X, xo = !1, So = !1, Co = [], wo, To, Eo, Do, Oo, ko, Ao, jo, Mo, No = !1, Po = !1, Fo, Z, Io = [], Lo = !1, Ro = [], zo = typeof document < "u", Bo = Na, Vo = Aa || ka ? "cssFloat" : "float", Ho = zo && !Pa && !Na && "draggable" in document.createElement("div"), Uo = function() {
3181
+ if (zo) {
3182
+ if (ka) return !1;
3122
3183
  var e = document.createElement("x");
3123
3184
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
3124
3185
  }
3125
- }(), Ro = function(e, t) {
3126
- var n = z(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = za(e, 0, t), a = za(e, 1, t), o = i && z(i), s = a && z(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + B(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + B(a).width;
3186
+ }(), Wo = function(e, t) {
3187
+ var n = B(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = Wa(e, 0, t), a = Wa(e, 1, t), o = i && B(i), s = a && B(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + V(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + V(a).width;
3127
3188
  if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
3128
3189
  if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
3129
3190
  if (i && o.float && o.float !== "none") {
3130
3191
  var u = o.float === "left" ? "left" : "right";
3131
3192
  return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
3132
3193
  }
3133
- return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Fo] === "none" || a && n[Fo] === "none" && c + l > r) ? "vertical" : "horizontal";
3134
- }, zo = function(e, t, n) {
3194
+ return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Vo] === "none" || a && n[Vo] === "none" && c + l > r) ? "vertical" : "horizontal";
3195
+ }, Go = function(e, t, n) {
3135
3196
  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;
3136
3197
  return r === o || i === s || r + a / 2 === o + c / 2;
3137
- }, Bo = function(e, t) {
3198
+ }, Ko = function(e, t) {
3138
3199
  var n;
3139
- return _o.some(function(r) {
3140
- var i = r[V].options.emptyInsertThreshold;
3141
- if (!(!i || Ba(r))) {
3142
- var a = B(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
3200
+ return Co.some(function(r) {
3201
+ var i = r[H].options.emptyInsertThreshold;
3202
+ if (!(!i || Ga(r))) {
3203
+ var a = V(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
3143
3204
  if (o && s) return n = r;
3144
3205
  }
3145
3206
  }), n;
3146
- }, Vo = function(e) {
3207
+ }, qo = function(e) {
3147
3208
  function t(e, n) {
3148
3209
  return function(r, i, a, o) {
3149
3210
  var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
@@ -3156,31 +3217,31 @@ var W, G, K, q, so, co, J, lo, uo, Y, fo, po, mo, X, ho = !1, go = !1, _o = [],
3156
3217
  };
3157
3218
  }
3158
3219
  var n = {}, r = e.group;
3159
- (!r || _a(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;
3160
- }, Ho = function() {
3161
- !Lo && K && z(K, "display", "none");
3162
- }, Uo = function() {
3163
- !Lo && K && z(K, "display", "");
3220
+ (!r || Sa(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;
3221
+ }, Jo = function() {
3222
+ !Uo && q && B(q, "display", "none");
3223
+ }, Yo = function() {
3224
+ !Uo && q && B(q, "display", "");
3164
3225
  };
3165
- No && !ka && document.addEventListener("click", function(e) {
3166
- if (go) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), go = !1, !1;
3226
+ zo && !Pa && document.addEventListener("click", function(e) {
3227
+ if (So) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), So = !1, !1;
3167
3228
  }, !0);
3168
- var Wo = function(e) {
3169
- if (W) {
3229
+ var Xo = function(e) {
3230
+ if (G) {
3170
3231
  e = e.touches ? e.touches[0] : e;
3171
- var t = Bo(e.clientX, e.clientY);
3232
+ var t = Ko(e.clientX, e.clientY);
3172
3233
  if (t) {
3173
3234
  var n = {};
3174
3235
  for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
3175
- n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[V]._onDragOver(n);
3236
+ n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[H]._onDragOver(n);
3176
3237
  }
3177
3238
  }
3178
- }, Go = function(e) {
3179
- W && W.parentNode[V]._isOutsideThisEl(e.target);
3239
+ }, Zo = function(e) {
3240
+ G && G.parentNode[H]._isOutsideThisEl(e.target);
3180
3241
  };
3181
3242
  function Q(e, t) {
3182
3243
  if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
3183
- this.el = e, this.options = t = ya({}, t), e[V] = this;
3244
+ this.el = e, this.options = t = wa({}, t), e[H] = this;
3184
3245
  var n = {
3185
3246
  group: null,
3186
3247
  sort: !0,
@@ -3193,7 +3254,7 @@ function Q(e, t) {
3193
3254
  invertedSwapThreshold: null,
3194
3255
  removeCloneOnHide: !0,
3195
3256
  direction: function() {
3196
- return Ro(e, this.options);
3257
+ return Wo(e, this.options);
3197
3258
  },
3198
3259
  ghostClass: "sortable-ghost",
3199
3260
  chosenClass: "sortable-chosen",
@@ -3220,80 +3281,80 @@ function Q(e, t) {
3220
3281
  x: 0,
3221
3282
  y: 0
3222
3283
  },
3223
- supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !Da,
3284
+ supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !Ma,
3224
3285
  emptyInsertThreshold: 5
3225
3286
  };
3226
- for (var r in io.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
3227
- for (var i in Vo(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
3228
- this.nativeDraggable = !t.forceFallback && Io, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? I(e, "pointerdown", this._onTapStart) : (I(e, "mousedown", this._onTapStart), I(e, "touchstart", this._onTapStart)), this.nativeDraggable && (I(e, "dragover", this), I(e, "dragenter", this)), _o.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), ya(this, $a());
3287
+ for (var r in lo.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
3288
+ for (var i in qo(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
3289
+ this.nativeDraggable = !t.forceFallback && Ho, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? L(e, "pointerdown", this._onTapStart) : (L(e, "mousedown", this._onTapStart), L(e, "touchstart", this._onTapStart)), this.nativeDraggable && (L(e, "dragover", this), L(e, "dragenter", this)), Co.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), wa(this, io());
3229
3290
  }
3230
3291
  Q.prototype = {
3231
3292
  constructor: Q,
3232
3293
  _isOutsideThisEl: function(e) {
3233
- !this.el.contains(e) && e !== this.el && (To = null);
3294
+ !this.el.contains(e) && e !== this.el && (jo = null);
3234
3295
  },
3235
3296
  _getDirection: function(e, t) {
3236
- return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, W) : this.options.direction;
3297
+ return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, G) : this.options.direction;
3237
3298
  },
3238
3299
  _onTapStart: function(e) {
3239
3300
  if (e.cancelable) {
3240
3301
  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;
3241
- if (ts(n), !W && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && Da && s && s.tagName.toUpperCase() === "SELECT") && (s = Na(s, r.draggable, n, !1), !(s && s.animated) && co !== s)) {
3242
- if (uo = Va(s), fo = Va(s, r.draggable), typeof l == "function") {
3302
+ if (ss(n), !G && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && Ma && s && s.tagName.toUpperCase() === "SELECT") && (s = Ra(s, r.draggable, n, !1), !(s && s.animated) && mo !== s)) {
3303
+ if (go = Ka(s), vo = Ka(s, r.draggable), typeof l == "function") {
3243
3304
  if (l.call(this, e, s, this)) {
3244
- U({
3305
+ W({
3245
3306
  sortable: t,
3246
3307
  rootEl: c,
3247
3308
  name: "filter",
3248
3309
  targetEl: s,
3249
3310
  toEl: n,
3250
3311
  fromEl: n
3251
- }), H("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
3312
+ }), U("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
3252
3313
  return;
3253
3314
  }
3254
3315
  } else if (l && (l = l.split(",").some(function(r) {
3255
- if (r = Na(c, r.trim(), n, !1), r) return U({
3316
+ if (r = Ra(c, r.trim(), n, !1), r) return W({
3256
3317
  sortable: t,
3257
3318
  rootEl: r,
3258
3319
  name: "filter",
3259
3320
  targetEl: s,
3260
3321
  fromEl: n,
3261
3322
  toEl: n
3262
- }), H("filter", t, { evt: e }), !0;
3323
+ }), U("filter", t, { evt: e }), !0;
3263
3324
  }), l)) {
3264
3325
  i && e.cancelable && e.preventDefault();
3265
3326
  return;
3266
3327
  }
3267
- r.handle && !Na(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
3328
+ r.handle && !Ra(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
3268
3329
  }
3269
3330
  }
3270
3331
  },
3271
3332
  _prepareDragStart: function(e, t, n) {
3272
3333
  var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
3273
- if (n && !W && n.parentNode === i) {
3274
- var c = B(n);
3275
- if (q = i, W = n, G = W.parentNode, so = W.nextSibling, co = n, mo = a.group, Q.dragged = W, vo = {
3276
- target: W,
3334
+ if (n && !G && n.parentNode === i) {
3335
+ var c = V(n);
3336
+ if (J = i, G = n, K = G.parentNode, po = G.nextSibling, mo = n, bo = a.group, Q.dragged = G, wo = {
3337
+ target: G,
3277
3338
  clientX: (t || e).clientX,
3278
3339
  clientY: (t || e).clientY
3279
- }, So = vo.clientX - c.left, Co = vo.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, W.style["will-change"] = "all", s = function() {
3280
- if (H("delayEnded", r, { evt: e }), Q.eventCanceled) {
3340
+ }, Oo = wo.clientX - c.left, ko = wo.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, G.style["will-change"] = "all", s = function() {
3341
+ if (U("delayEnded", r, { evt: e }), Q.eventCanceled) {
3281
3342
  r._onDrop();
3282
3343
  return;
3283
3344
  }
3284
- r._disableDelayedDragEvents(), !Ea && r.nativeDraggable && (W.draggable = !0), r._triggerDragStart(e, t), U({
3345
+ r._disableDelayedDragEvents(), !ja && r.nativeDraggable && (G.draggable = !0), r._triggerDragStart(e, t), W({
3285
3346
  sortable: r,
3286
3347
  name: "choose",
3287
3348
  originalEvent: e
3288
- }), R(W, a.chosenClass, !0);
3349
+ }), z(G, a.chosenClass, !0);
3289
3350
  }, a.ignore.split(",").forEach(function(e) {
3290
- Ia(W, e.trim(), Jo);
3291
- }), I(o, "dragover", Wo), I(o, "mousemove", Wo), I(o, "touchmove", Wo), I(o, "mouseup", r._onDrop), I(o, "touchend", r._onDrop), I(o, "touchcancel", r._onDrop), Ea && this.nativeDraggable && (this.options.touchStartThreshold = 4, W.draggable = !0), H("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Ta || wa))) {
3351
+ Va(G, e.trim(), es);
3352
+ }), L(o, "dragover", Xo), L(o, "mousemove", Xo), L(o, "touchmove", Xo), L(o, "mouseup", r._onDrop), L(o, "touchend", r._onDrop), L(o, "touchcancel", r._onDrop), ja && this.nativeDraggable && (this.options.touchStartThreshold = 4, G.draggable = !0), U("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Aa || ka))) {
3292
3353
  if (Q.eventCanceled) {
3293
3354
  this._onDrop();
3294
3355
  return;
3295
3356
  }
3296
- I(o, "mouseup", r._disableDelayedDrag), I(o, "touchend", r._disableDelayedDrag), I(o, "touchcancel", r._disableDelayedDrag), I(o, "mousemove", r._delayedDragTouchMoveHandler), I(o, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && I(o, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
3357
+ L(o, "mouseup", r._disableDelayedDrag), L(o, "touchend", r._disableDelayedDrag), L(o, "touchcancel", r._disableDelayedDrag), L(o, "mousemove", r._delayedDragTouchMoveHandler), L(o, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && L(o, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
3297
3358
  } else s();
3298
3359
  }
3299
3360
  },
@@ -3302,25 +3363,25 @@ Q.prototype = {
3302
3363
  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();
3303
3364
  },
3304
3365
  _disableDelayedDrag: function() {
3305
- W && Jo(W), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
3366
+ G && es(G), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
3306
3367
  },
3307
3368
  _disableDelayedDragEvents: function() {
3308
3369
  var e = this.el.ownerDocument;
3309
- L(e, "mouseup", this._disableDelayedDrag), L(e, "touchend", this._disableDelayedDrag), L(e, "touchcancel", this._disableDelayedDrag), L(e, "mousemove", this._delayedDragTouchMoveHandler), L(e, "touchmove", this._delayedDragTouchMoveHandler), L(e, "pointermove", this._delayedDragTouchMoveHandler);
3370
+ R(e, "mouseup", this._disableDelayedDrag), R(e, "touchend", this._disableDelayedDrag), R(e, "touchcancel", this._disableDelayedDrag), R(e, "mousemove", this._delayedDragTouchMoveHandler), R(e, "touchmove", this._delayedDragTouchMoveHandler), R(e, "pointermove", this._delayedDragTouchMoveHandler);
3310
3371
  },
3311
3372
  _triggerDragStart: function(e, t) {
3312
- t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? I(document, "pointermove", this._onTouchMove) : t ? I(document, "touchmove", this._onTouchMove) : I(document, "mousemove", this._onTouchMove) : (I(W, "dragend", this), I(q, "dragstart", this._onDragStart));
3373
+ t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? L(document, "pointermove", this._onTouchMove) : t ? L(document, "touchmove", this._onTouchMove) : L(document, "mousemove", this._onTouchMove) : (L(G, "dragend", this), L(J, "dragstart", this._onDragStart));
3313
3374
  try {
3314
- document.selection ? ns(function() {
3375
+ document.selection ? cs(function() {
3315
3376
  document.selection.empty();
3316
3377
  }) : window.getSelection().removeAllRanges();
3317
3378
  } catch {}
3318
3379
  },
3319
3380
  _dragStarted: function(e, t) {
3320
- if (ho = !1, q && W) {
3321
- H("dragStarted", this, { evt: t }), this.nativeDraggable && I(document, "dragover", Go);
3381
+ if (xo = !1, J && G) {
3382
+ U("dragStarted", this, { evt: t }), this.nativeDraggable && L(document, "dragover", Zo);
3322
3383
  var n = this.options;
3323
- !e && R(W, n.dragClass, !1), R(W, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), U({
3384
+ !e && z(G, n.dragClass, !1), z(G, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), W({
3324
3385
  sortable: this,
3325
3386
  name: "start",
3326
3387
  originalEvent: t
@@ -3328,33 +3389,33 @@ Q.prototype = {
3328
3389
  } else this._nulling();
3329
3390
  },
3330
3391
  _emulateDragOver: function() {
3331
- if (yo) {
3332
- this._lastX = yo.clientX, this._lastY = yo.clientY, Ho();
3333
- for (var e = document.elementFromPoint(yo.clientX, yo.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(yo.clientX, yo.clientY), e !== t);) t = e;
3334
- if (W.parentNode[V]._isOutsideThisEl(e), t) do {
3335
- if (t[V]) {
3392
+ if (To) {
3393
+ this._lastX = To.clientX, this._lastY = To.clientY, Jo();
3394
+ for (var e = document.elementFromPoint(To.clientX, To.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(To.clientX, To.clientY), e !== t);) t = e;
3395
+ if (G.parentNode[H]._isOutsideThisEl(e), t) do {
3396
+ if (t[H]) {
3336
3397
  var n = void 0;
3337
- if (n = t[V]._onDragOver({
3338
- clientX: yo.clientX,
3339
- clientY: yo.clientY,
3398
+ if (n = t[H]._onDragOver({
3399
+ clientX: To.clientX,
3400
+ clientY: To.clientY,
3340
3401
  target: e,
3341
3402
  rootEl: t
3342
3403
  }), n && !this.options.dragoverBubble) break;
3343
3404
  }
3344
3405
  e = t;
3345
3406
  } while (t = t.parentNode);
3346
- Uo();
3407
+ Yo();
3347
3408
  }
3348
3409
  },
3349
3410
  _onTouchMove: function(e) {
3350
- if (vo) {
3351
- var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = K && Fa(K, !0), o = K && a && a.a, s = K && a && a.d, c = Po && Z && Ha(Z), l = (i.clientX - vo.clientX + r.x) / (o || 1) + (c ? c[0] - Ao[0] : 0) / (o || 1), u = (i.clientY - vo.clientY + r.y) / (s || 1) + (c ? c[1] - Ao[1] : 0) / (s || 1);
3352
- if (!Q.active && !ho) {
3411
+ if (wo) {
3412
+ var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q && Ba(q, !0), o = q && a && a.a, s = q && a && a.d, c = Bo && Z && qa(Z), l = (i.clientX - wo.clientX + r.x) / (o || 1) + (c ? c[0] - Io[0] : 0) / (o || 1), u = (i.clientY - wo.clientY + r.y) / (s || 1) + (c ? c[1] - Io[1] : 0) / (s || 1);
3413
+ if (!Q.active && !xo) {
3353
3414
  if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
3354
3415
  this._onDragStart(e, !0);
3355
3416
  }
3356
- if (K) {
3357
- a ? (a.e += l - (bo || 0), a.f += u - (xo || 0)) : a = {
3417
+ if (q) {
3418
+ a ? (a.e += l - (Eo || 0), a.f += u - (Do || 0)) : a = {
3358
3419
  a: 1,
3359
3420
  b: 0,
3360
3421
  c: 0,
@@ -3363,39 +3424,39 @@ Q.prototype = {
3363
3424
  f: u
3364
3425
  };
3365
3426
  var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
3366
- z(K, "webkitTransform", d), z(K, "mozTransform", d), z(K, "msTransform", d), z(K, "transform", d), bo = l, xo = u, yo = i;
3427
+ B(q, "webkitTransform", d), B(q, "mozTransform", d), B(q, "msTransform", d), B(q, "transform", d), Eo = l, Do = u, To = i;
3367
3428
  }
3368
3429
  e.cancelable && e.preventDefault();
3369
3430
  }
3370
3431
  },
3371
3432
  _appendGhost: function() {
3372
- if (!K) {
3373
- var e = this.options.fallbackOnBody ? document.body : q, t = B(W, !0, Po, !0, e), n = this.options;
3374
- if (Po) {
3375
- for (Z = e; z(Z, "position") === "static" && z(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
3376
- Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = La()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = La(), Ao = Ha(Z);
3433
+ if (!q) {
3434
+ var e = this.options.fallbackOnBody ? document.body : J, t = V(G, !0, Bo, !0, e), n = this.options;
3435
+ if (Bo) {
3436
+ for (Z = e; B(Z, "position") === "static" && B(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
3437
+ Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = Ha()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = Ha(), Io = qa(Z);
3377
3438
  }
3378
- K = W.cloneNode(!0), R(K, n.ghostClass, !1), R(K, n.fallbackClass, !0), R(K, n.dragClass, !0), z(K, "transition", ""), z(K, "transform", ""), z(K, "box-sizing", "border-box"), z(K, "margin", 0), z(K, "top", t.top), z(K, "left", t.left), z(K, "width", t.width), z(K, "height", t.height), z(K, "opacity", "0.8"), z(K, "position", Po ? "absolute" : "fixed"), z(K, "zIndex", "100000"), z(K, "pointerEvents", "none"), Q.ghost = K, e.appendChild(K), z(K, "transform-origin", So / parseInt(K.style.width) * 100 + "% " + Co / parseInt(K.style.height) * 100 + "%");
3439
+ q = G.cloneNode(!0), z(q, n.ghostClass, !1), z(q, n.fallbackClass, !0), z(q, n.dragClass, !0), B(q, "transition", ""), B(q, "transform", ""), B(q, "box-sizing", "border-box"), B(q, "margin", 0), B(q, "top", t.top), B(q, "left", t.left), B(q, "width", t.width), B(q, "height", t.height), B(q, "opacity", "0.8"), B(q, "position", Bo ? "absolute" : "fixed"), B(q, "zIndex", "100000"), B(q, "pointerEvents", "none"), Q.ghost = q, e.appendChild(q), B(q, "transform-origin", Oo / parseInt(q.style.width) * 100 + "% " + ko / parseInt(q.style.height) * 100 + "%");
3379
3440
  }
3380
3441
  },
3381
3442
  _onDragStart: function(e, t) {
3382
3443
  var n = this, r = e.dataTransfer, i = n.options;
3383
- if (H("dragStart", this, { evt: e }), Q.eventCanceled) {
3444
+ if (U("dragStart", this, { evt: e }), Q.eventCanceled) {
3384
3445
  this._onDrop();
3385
3446
  return;
3386
3447
  }
3387
- H("setupClone", this), Q.eventCanceled || (J = Za(W), J.removeAttribute("id"), J.draggable = !1, J.style["will-change"] = "", this._hideClone(), R(J, this.options.chosenClass, !1), Q.clone = J), n.cloneId = ns(function() {
3388
- H("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || q.insertBefore(J, W), n._hideClone(), U({
3448
+ U("setupClone", this), Q.eventCanceled || (Y = no(G), Y.removeAttribute("id"), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), z(Y, this.options.chosenClass, !1), Q.clone = Y), n.cloneId = cs(function() {
3449
+ U("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || J.insertBefore(Y, G), n._hideClone(), W({
3389
3450
  sortable: n,
3390
3451
  name: "clone"
3391
3452
  }));
3392
- }), !t && R(W, i.dragClass, !0), t ? (go = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (L(document, "mouseup", n._onDrop), L(document, "touchend", n._onDrop), L(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, W)), I(document, "drop", n), z(W, "transform", "translateZ(0)")), ho = !0, n._dragStartId = ns(n._dragStarted.bind(n, t, e)), I(document, "selectstart", n), wo = !0, Da && z(document.body, "user-select", "none");
3453
+ }), !t && z(G, i.dragClass, !0), t ? (So = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (R(document, "mouseup", n._onDrop), R(document, "touchend", n._onDrop), R(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, G)), L(document, "drop", n), B(G, "transform", "translateZ(0)")), xo = !0, n._dragStartId = cs(n._dragStarted.bind(n, t, e)), L(document, "selectstart", n), Ao = !0, Ma && B(document.body, "user-select", "none");
3393
3454
  },
3394
3455
  _onDragOver: function(e) {
3395
- var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = mo === s, u = o.sort, d = X || c, f, p = this, m = !1;
3396
- if (jo) return;
3456
+ var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = bo === s, u = o.sort, d = X || c, f, p = this, m = !1;
3457
+ if (Lo) return;
3397
3458
  function h(o, s) {
3398
- H(o, p, ga({
3459
+ U(o, p, xa({
3399
3460
  evt: e,
3400
3461
  isOwner: l,
3401
3462
  axis: f ? "vertical" : "horizontal",
@@ -3407,7 +3468,7 @@ Q.prototype = {
3407
3468
  target: n,
3408
3469
  completed: _,
3409
3470
  onMove: function(n, i) {
3410
- return qo(q, t, W, r, n, B(n), e, i);
3471
+ return $o(J, t, G, r, n, V(n), e, i);
3411
3472
  },
3412
3473
  changed: v
3413
3474
  }, s));
@@ -3416,119 +3477,119 @@ Q.prototype = {
3416
3477
  h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
3417
3478
  }
3418
3479
  function _(r) {
3419
- return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (R(W, X ? X.options.ghostClass : c.options.ghostClass, !1), R(W, o.ghostClass, !0)), X !== p && p !== Q.active ? X = p : p === Q.active && X && (X = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
3480
+ return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (z(G, X ? X.options.ghostClass : c.options.ghostClass, !1), z(G, o.ghostClass, !0)), X !== p && p !== Q.active ? X = p : p === Q.active && X && (X = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
3420
3481
  h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
3421
- }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === W && !W.animated || n === t && !n.animated) && (To = null), !o.dragoverBubble && !e.rootEl && n !== document && (W.parentNode[V]._isOutsideThisEl(e.target), !r && Wo(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
3482
+ }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (jo = null), !o.dragoverBubble && !e.rootEl && n !== document && (G.parentNode[H]._isOutsideThisEl(e.target), !r && Xo(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
3422
3483
  }
3423
3484
  function v() {
3424
- Y = Va(W), po = Va(W, o.draggable), U({
3485
+ _o = Ka(G), yo = Ka(G, o.draggable), W({
3425
3486
  sortable: p,
3426
3487
  name: "change",
3427
3488
  toEl: t,
3428
- newIndex: Y,
3429
- newDraggableIndex: po,
3489
+ newIndex: _o,
3490
+ newDraggableIndex: yo,
3430
3491
  originalEvent: e
3431
3492
  });
3432
3493
  }
3433
- if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Na(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
3434
- if (W.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
3435
- if (go = !1, c && !o.disabled && (l ? u || (a = G !== q) : X === this || (this.lastPutMode = mo.checkPull(this, c, W, e)) && s.checkPut(this, c, W, e))) {
3436
- if (f = this._getDirection(e, n) === "vertical", r = B(W), h("dragOverValid"), Q.eventCanceled) return m;
3437
- if (a) return G = q, g(), this._hideClone(), h("revert"), Q.eventCanceled || (so ? q.insertBefore(W, so) : q.appendChild(W)), _(!0);
3438
- var y = Ba(t, o.draggable);
3439
- if (!y || Zo(e, f, this) && !y.animated) {
3440
- if (y === W) return _(!1);
3441
- if (y && t === e.target && (n = y), n && (i = B(n)), qo(q, t, W, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(W, y.nextSibling) : t.appendChild(W), G = t, v(), _(!0);
3442
- } else if (y && Xo(e, f, this)) {
3443
- var b = za(t, 0, o, !0);
3444
- if (b === W) return _(!1);
3445
- if (n = b, i = B(n), qo(q, t, W, r, n, i, e, !1) !== !1) return g(), t.insertBefore(W, b), G = t, v(), _(!0);
3494
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Ra(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
3495
+ if (G.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
3496
+ if (So = !1, c && !o.disabled && (l ? u || (a = K !== J) : X === this || (this.lastPutMode = bo.checkPull(this, c, G, e)) && s.checkPut(this, c, G, e))) {
3497
+ if (f = this._getDirection(e, n) === "vertical", r = V(G), h("dragOverValid"), Q.eventCanceled) return m;
3498
+ if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (po ? J.insertBefore(G, po) : J.appendChild(G)), _(!0);
3499
+ var y = Ga(t, o.draggable);
3500
+ if (!y || rs(e, f, this) && !y.animated) {
3501
+ if (y === G) return _(!1);
3502
+ if (y && t === e.target && (n = y), n && (i = V(n)), $o(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);
3503
+ } else if (y && ns(e, f, this)) {
3504
+ var b = Wa(t, 0, o, !0);
3505
+ if (b === G) return _(!1);
3506
+ if (n = b, i = V(n), $o(J, t, G, r, n, i, e, !1) !== !1) return g(), t.insertBefore(G, b), K = t, v(), _(!0);
3446
3507
  } else if (n.parentNode === t) {
3447
- i = B(n);
3448
- var x = 0, S, C = W.parentNode !== t, w = !zo(W.animated && W.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = Ra(n, "top", "top") || Ra(W, "top", "top"), D = E ? E.scrollTop : void 0;
3449
- To !== n && (S = i[T], Do = !1, Oo = !w && o.invertSwap || C), x = Qo(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Oo, To === n);
3508
+ i = V(n);
3509
+ var x = 0, S, C = G.parentNode !== t, w = !Go(G.animated && G.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = Ua(n, "top", "top") || Ua(G, "top", "top"), D = E ? E.scrollTop : void 0;
3510
+ jo !== n && (S = i[T], No = !1, Po = !w && o.invertSwap || C), x = is(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Po, jo === n);
3450
3511
  var O;
3451
3512
  if (x !== 0) {
3452
- var k = Va(W);
3513
+ var k = Ka(G);
3453
3514
  do
3454
- k -= x, O = G.children[k];
3455
- while (O && (z(O, "display") === "none" || O === K));
3515
+ k -= x, O = K.children[k];
3516
+ while (O && (B(O, "display") === "none" || O === q));
3456
3517
  }
3457
3518
  if (x === 0 || O === n) return _(!1);
3458
- To = n, Eo = x;
3519
+ jo = n, Mo = x;
3459
3520
  var A = n.nextElementSibling, j = !1;
3460
3521
  j = x === 1;
3461
- var ee = qo(q, t, W, r, n, i, e, j);
3462
- if (ee !== !1) return (ee === 1 || ee === -1) && (j = ee === 1), jo = !0, setTimeout(Yo, 30), g(), j && !A ? t.appendChild(W) : n.parentNode.insertBefore(W, j ? A : n), E && Xa(E, 0, D - E.scrollTop), G = W.parentNode, S !== void 0 && !Oo && (ko = Math.abs(S - B(n)[T])), v(), _(!0);
3522
+ var ee = $o(J, t, G, r, n, i, e, j);
3523
+ if (ee !== !1) return (ee === 1 || ee === -1) && (j = ee === 1), Lo = !0, setTimeout(ts, 30), g(), j && !A ? t.appendChild(G) : n.parentNode.insertBefore(G, j ? A : n), E && to(E, 0, D - E.scrollTop), K = G.parentNode, S !== void 0 && !Po && (Fo = Math.abs(S - V(n)[T])), v(), _(!0);
3463
3524
  }
3464
- if (t.contains(W)) return _(!1);
3525
+ if (t.contains(G)) return _(!1);
3465
3526
  }
3466
3527
  return !1;
3467
3528
  },
3468
3529
  _ignoreWhileAnimating: null,
3469
3530
  _offMoveEvents: function() {
3470
- L(document, "mousemove", this._onTouchMove), L(document, "touchmove", this._onTouchMove), L(document, "pointermove", this._onTouchMove), L(document, "dragover", Wo), L(document, "mousemove", Wo), L(document, "touchmove", Wo);
3531
+ R(document, "mousemove", this._onTouchMove), R(document, "touchmove", this._onTouchMove), R(document, "pointermove", this._onTouchMove), R(document, "dragover", Xo), R(document, "mousemove", Xo), R(document, "touchmove", Xo);
3471
3532
  },
3472
3533
  _offUpEvents: function() {
3473
3534
  var e = this.el.ownerDocument;
3474
- L(e, "mouseup", this._onDrop), L(e, "touchend", this._onDrop), L(e, "pointerup", this._onDrop), L(e, "touchcancel", this._onDrop), L(document, "selectstart", this);
3535
+ R(e, "mouseup", this._onDrop), R(e, "touchend", this._onDrop), R(e, "pointerup", this._onDrop), R(e, "touchcancel", this._onDrop), R(document, "selectstart", this);
3475
3536
  },
3476
3537
  _onDrop: function(e) {
3477
3538
  var t = this.el, n = this.options;
3478
- if (Y = Va(W), po = Va(W, n.draggable), H("drop", this, { evt: e }), G = W && W.parentNode, Y = Va(W), po = Va(W, n.draggable), Q.eventCanceled) {
3539
+ if (_o = Ka(G), yo = Ka(G, n.draggable), U("drop", this, { evt: e }), K = G && G.parentNode, _o = Ka(G), yo = Ka(G, n.draggable), Q.eventCanceled) {
3479
3540
  this._nulling();
3480
3541
  return;
3481
3542
  }
3482
- ho = !1, Oo = !1, Do = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), rs(this.cloneId), rs(this._dragStartId), this.nativeDraggable && (L(document, "drop", this), L(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Da && z(document.body, "user-select", ""), z(W, "transform", ""), e && (wo && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), K && K.parentNode && K.parentNode.removeChild(K), (q === G || X && X.lastPutMode !== "clone") && J && J.parentNode && J.parentNode.removeChild(J), W && (this.nativeDraggable && L(W, "dragend", this), Jo(W), W.style["will-change"] = "", wo && !ho && R(W, X ? X.options.ghostClass : this.options.ghostClass, !1), R(W, this.options.chosenClass, !1), U({
3543
+ xo = !1, Po = !1, No = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ls(this.cloneId), ls(this._dragStartId), this.nativeDraggable && (R(document, "drop", this), R(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ma && B(document.body, "user-select", ""), B(G, "transform", ""), e && (Ao && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), q && q.parentNode && q.parentNode.removeChild(q), (J === K || X && X.lastPutMode !== "clone") && Y && Y.parentNode && Y.parentNode.removeChild(Y), G && (this.nativeDraggable && R(G, "dragend", this), es(G), G.style["will-change"] = "", Ao && !xo && z(G, X ? X.options.ghostClass : this.options.ghostClass, !1), z(G, this.options.chosenClass, !1), W({
3483
3544
  sortable: this,
3484
3545
  name: "unchoose",
3485
- toEl: G,
3546
+ toEl: K,
3486
3547
  newIndex: null,
3487
3548
  newDraggableIndex: null,
3488
3549
  originalEvent: e
3489
- }), q === G ? Y !== uo && Y >= 0 && (U({
3550
+ }), J === K ? _o !== go && _o >= 0 && (W({
3490
3551
  sortable: this,
3491
3552
  name: "update",
3492
- toEl: G,
3553
+ toEl: K,
3493
3554
  originalEvent: e
3494
- }), U({
3555
+ }), W({
3495
3556
  sortable: this,
3496
3557
  name: "sort",
3497
- toEl: G,
3558
+ toEl: K,
3498
3559
  originalEvent: e
3499
- })) : (Y >= 0 && (U({
3500
- rootEl: G,
3560
+ })) : (_o >= 0 && (W({
3561
+ rootEl: K,
3501
3562
  name: "add",
3502
- toEl: G,
3503
- fromEl: q,
3563
+ toEl: K,
3564
+ fromEl: J,
3504
3565
  originalEvent: e
3505
- }), U({
3566
+ }), W({
3506
3567
  sortable: this,
3507
3568
  name: "remove",
3508
- toEl: G,
3569
+ toEl: K,
3509
3570
  originalEvent: e
3510
- }), U({
3511
- rootEl: G,
3571
+ }), W({
3572
+ rootEl: K,
3512
3573
  name: "sort",
3513
- toEl: G,
3514
- fromEl: q,
3574
+ toEl: K,
3575
+ fromEl: J,
3515
3576
  originalEvent: e
3516
- }), U({
3577
+ }), W({
3517
3578
  sortable: this,
3518
3579
  name: "sort",
3519
- toEl: G,
3580
+ toEl: K,
3520
3581
  originalEvent: e
3521
- })), X && X.save()), Q.active && ((Y == null || Y === -1) && (Y = uo, po = fo), U({
3582
+ })), X && X.save()), Q.active && ((_o == null || _o === -1) && (_o = go, yo = vo), W({
3522
3583
  sortable: this,
3523
3584
  name: "end",
3524
- toEl: G,
3585
+ toEl: K,
3525
3586
  originalEvent: e
3526
3587
  }), this.save()))), this._nulling();
3527
3588
  },
3528
3589
  _nulling: function() {
3529
- H("nulling", this), q = W = G = K = so = J = co = lo = vo = yo = wo = Y = po = uo = fo = To = Eo = X = mo = Q.dragged = Q.ghost = Q.clone = Q.active = null, Mo.forEach(function(e) {
3590
+ U("nulling", this), J = G = K = q = po = Y = mo = ho = wo = To = Ao = _o = yo = go = vo = jo = Mo = X = bo = Q.dragged = Q.ghost = Q.clone = Q.active = null, Ro.forEach(function(e) {
3530
3591
  e.checked = !0;
3531
- }), Mo.length = bo = xo = 0;
3592
+ }), Ro.length = Eo = Do = 0;
3532
3593
  },
3533
3594
  handleEvent: function(e) {
3534
3595
  switch (e.type) {
@@ -3538,22 +3599,20 @@ Q.prototype = {
3538
3599
  break;
3539
3600
  case "dragenter":
3540
3601
  case "dragover":
3541
- W && (this._onDragOver(e), Ko(e));
3542
- break;
3543
- case "selectstart":
3544
- e.preventDefault();
3602
+ G && (this._onDragOver(e), Qo(e));
3545
3603
  break;
3604
+ case "selectstart": e.preventDefault();
3546
3605
  }
3547
3606
  },
3548
3607
  toArray: function() {
3549
- for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Na(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || es(t));
3608
+ for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Ra(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || os(t));
3550
3609
  return e;
3551
3610
  },
3552
3611
  sort: function(e, t) {
3553
3612
  var n = {}, r = this.el;
3554
3613
  this.toArray().forEach(function(e, t) {
3555
3614
  var i = r.children[t];
3556
- Na(i, this.options.draggable, r, !1) && (n[e] = i);
3615
+ Ra(i, this.options.draggable, r, !1) && (n[e] = i);
3557
3616
  }, this), t && this.captureAnimationState(), e.forEach(function(e) {
3558
3617
  n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
3559
3618
  }), t && this.animateAll();
@@ -3563,25 +3622,25 @@ Q.prototype = {
3563
3622
  e && e.set && e.set(this);
3564
3623
  },
3565
3624
  closest: function(e, t) {
3566
- return Na(e, t || this.options.draggable, this.el, !1);
3625
+ return Ra(e, t || this.options.draggable, this.el, !1);
3567
3626
  },
3568
3627
  option: function(e, t) {
3569
3628
  var n = this.options;
3570
3629
  if (t === void 0) return n[e];
3571
- var r = io.modifyOption(this, e, t);
3572
- r === void 0 ? n[e] = t : n[e] = r, e === "group" && Vo(n);
3630
+ var r = lo.modifyOption(this, e, t);
3631
+ n[e] = r === void 0 ? t : r, e === "group" && qo(n);
3573
3632
  },
3574
3633
  destroy: function() {
3575
- H("destroy", this);
3634
+ U("destroy", this);
3576
3635
  var e = this.el;
3577
- e[V] = null, L(e, "mousedown", this._onTapStart), L(e, "touchstart", this._onTapStart), L(e, "pointerdown", this._onTapStart), this.nativeDraggable && (L(e, "dragover", this), L(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
3636
+ e[H] = null, R(e, "mousedown", this._onTapStart), R(e, "touchstart", this._onTapStart), R(e, "pointerdown", this._onTapStart), this.nativeDraggable && (R(e, "dragover", this), R(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
3578
3637
  e.removeAttribute("draggable");
3579
- }), this._onDrop(), this._disableDelayedDragEvents(), _o.splice(_o.indexOf(this.el), 1), this.el = e = null;
3638
+ }), this._onDrop(), this._disableDelayedDragEvents(), Co.splice(Co.indexOf(this.el), 1), this.el = e = null;
3580
3639
  },
3581
3640
  _hideClone: function() {
3582
- if (!lo) {
3583
- if (H("hideClone", this), Q.eventCanceled) return;
3584
- z(J, "display", "none"), this.options.removeCloneOnHide && J.parentNode && J.parentNode.removeChild(J), lo = !0;
3641
+ if (!ho) {
3642
+ if (U("hideClone", this), Q.eventCanceled) return;
3643
+ B(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), ho = !0;
3585
3644
  }
3586
3645
  },
3587
3646
  _showClone: function(e) {
@@ -3589,99 +3648,99 @@ Q.prototype = {
3589
3648
  this._hideClone();
3590
3649
  return;
3591
3650
  }
3592
- if (lo) {
3593
- if (H("showClone", this), Q.eventCanceled) return;
3594
- W.parentNode == q && !this.options.group.revertClone ? q.insertBefore(J, W) : so ? q.insertBefore(J, so) : q.appendChild(J), this.options.group.revertClone && this.animate(W, J), z(J, "display", ""), lo = !1;
3651
+ if (ho) {
3652
+ if (U("showClone", this), Q.eventCanceled) return;
3653
+ G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) : po ? J.insertBefore(Y, po) : J.appendChild(Y), this.options.group.revertClone && this.animate(G, Y), B(Y, "display", ""), ho = !1;
3595
3654
  }
3596
3655
  }
3597
3656
  };
3598
- function Ko(e) {
3657
+ function Qo(e) {
3599
3658
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
3600
3659
  }
3601
- function qo(e, t, n, r, i, a, o, s) {
3602
- var c, l = e[V], u = l.options.onMove, d;
3603
- return window.CustomEvent && !wa && !Ta ? c = new CustomEvent("move", {
3660
+ function $o(e, t, n, r, i, a, o, s) {
3661
+ var c, l = e[H], u = l.options.onMove, d;
3662
+ return window.CustomEvent && !ka && !Aa ? c = new CustomEvent("move", {
3604
3663
  bubbles: !0,
3605
3664
  cancelable: !0
3606
- }) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || B(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
3665
+ }) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || V(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
3607
3666
  }
3608
- function Jo(e) {
3667
+ function es(e) {
3609
3668
  e.draggable = !1;
3610
3669
  }
3611
- function Yo() {
3612
- jo = !1;
3670
+ function ts() {
3671
+ Lo = !1;
3613
3672
  }
3614
- function Xo(e, t, n) {
3615
- var r = B(za(n.el, 0, n.options, !0)), i = Qa(n.el, n.options, K), a = 10;
3673
+ function ns(e, t, n) {
3674
+ var r = V(Wa(n.el, 0, n.options, !0)), i = ro(n.el, n.options, q), a = 10;
3616
3675
  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;
3617
3676
  }
3618
- function Zo(e, t, n) {
3619
- var r = B(Ba(n.el, n.options.draggable)), i = Qa(n.el, n.options, K), a = 10;
3677
+ function rs(e, t, n) {
3678
+ var r = V(Ga(n.el, n.options.draggable)), i = ro(n.el, n.options, q), a = 10;
3620
3679
  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;
3621
3680
  }
3622
- function Qo(e, t, n, r, i, a, o, s) {
3681
+ function is(e, t, n, r, i, a, o, s) {
3623
3682
  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;
3624
3683
  if (!o) {
3625
- if (s && ko < l * i) {
3626
- if (!Do && (Eo === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Do = !0), Do) f = !0;
3627
- else if (Eo === 1 ? c < u + ko : c > d - ko) return -Eo;
3628
- } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return $o(t);
3684
+ if (s && Fo < l * i) {
3685
+ if (!No && (Mo === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (No = !0), No) f = !0;
3686
+ else if (Mo === 1 ? c < u + Fo : c > d - Fo) return -Mo;
3687
+ } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return as(t);
3629
3688
  }
3630
3689
  return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
3631
3690
  }
3632
- function $o(e) {
3633
- return Va(W) < Va(e) ? 1 : -1;
3691
+ function as(e) {
3692
+ return Ka(G) < Ka(e) ? 1 : -1;
3634
3693
  }
3635
- function es(e) {
3694
+ function os(e) {
3636
3695
  for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
3637
3696
  return r.toString(36);
3638
3697
  }
3639
- function ts(e) {
3640
- Mo.length = 0;
3698
+ function ss(e) {
3699
+ Ro.length = 0;
3641
3700
  for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
3642
3701
  var r = t[n];
3643
- r.checked && Mo.push(r);
3702
+ r.checked && Ro.push(r);
3644
3703
  }
3645
3704
  }
3646
- function ns(e) {
3705
+ function cs(e) {
3647
3706
  return setTimeout(e, 0);
3648
3707
  }
3649
- function rs(e) {
3708
+ function ls(e) {
3650
3709
  return clearTimeout(e);
3651
3710
  }
3652
- No && I(document, "touchmove", function(e) {
3653
- (Q.active || ho) && e.cancelable && e.preventDefault();
3711
+ zo && L(document, "touchmove", function(e) {
3712
+ (Q.active || xo) && e.cancelable && e.preventDefault();
3654
3713
  }), Q.utils = {
3655
- on: I,
3656
- off: L,
3657
- css: z,
3658
- find: Ia,
3714
+ on: L,
3715
+ off: R,
3716
+ css: B,
3717
+ find: Va,
3659
3718
  is: function(e, t) {
3660
- return !!Na(e, t, e, !1);
3719
+ return !!Ra(e, t, e, !1);
3661
3720
  },
3662
- extend: Ga,
3663
- throttle: Ja,
3664
- closest: Na,
3665
- toggleClass: R,
3666
- clone: Za,
3667
- index: Va,
3668
- nextTick: ns,
3669
- cancelNextTick: rs,
3670
- detectDirection: Ro,
3671
- getChild: za
3721
+ extend: Xa,
3722
+ throttle: $a,
3723
+ closest: Ra,
3724
+ toggleClass: z,
3725
+ clone: no,
3726
+ index: Ka,
3727
+ nextTick: cs,
3728
+ cancelNextTick: ls,
3729
+ detectDirection: Wo,
3730
+ getChild: Wa
3672
3731
  }, Q.get = function(e) {
3673
- return e[V];
3732
+ return e[H];
3674
3733
  }, Q.mount = function() {
3675
3734
  var e = [...arguments];
3676
3735
  e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
3677
3736
  if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
3678
- e.utils && (Q.utils = ga(ga({}, Q.utils), e.utils)), io.mount(e);
3737
+ e.utils && (Q.utils = xa(xa({}, Q.utils), e.utils)), lo.mount(e);
3679
3738
  });
3680
3739
  }, Q.create = function(e, t) {
3681
3740
  return new Q(e, t);
3682
- }, Q.version = Sa;
3683
- var $ = [], is, as, os = !1, ss, cs, ls, us;
3684
- function ds() {
3741
+ }, Q.version = Da;
3742
+ var $ = [], us, ds, fs = !1, ps, ms, hs, gs;
3743
+ function _s() {
3685
3744
  function e() {
3686
3745
  for (var e in this.defaults = {
3687
3746
  scroll: !0,
@@ -3694,70 +3753,70 @@ function ds() {
3694
3753
  return e.prototype = {
3695
3754
  dragStarted: function(e) {
3696
3755
  var t = e.originalEvent;
3697
- this.sortable.nativeDraggable ? I(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? I(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? I(document, "touchmove", this._handleFallbackAutoScroll) : I(document, "mousemove", this._handleFallbackAutoScroll);
3756
+ this.sortable.nativeDraggable ? L(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? L(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? L(document, "touchmove", this._handleFallbackAutoScroll) : L(document, "mousemove", this._handleFallbackAutoScroll);
3698
3757
  },
3699
3758
  dragOverCompleted: function(e) {
3700
3759
  var t = e.originalEvent;
3701
3760
  !this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
3702
3761
  },
3703
3762
  drop: function() {
3704
- this.sortable.nativeDraggable ? L(document, "dragover", this._handleAutoScroll) : (L(document, "pointermove", this._handleFallbackAutoScroll), L(document, "touchmove", this._handleFallbackAutoScroll), L(document, "mousemove", this._handleFallbackAutoScroll)), ps(), fs(), Ya();
3763
+ this.sortable.nativeDraggable ? R(document, "dragover", this._handleAutoScroll) : (R(document, "pointermove", this._handleFallbackAutoScroll), R(document, "touchmove", this._handleFallbackAutoScroll), R(document, "mousemove", this._handleFallbackAutoScroll)), ys(), vs(), eo();
3705
3764
  },
3706
3765
  nulling: function() {
3707
- ls = as = is = os = us = ss = cs = null, $.length = 0;
3766
+ hs = ds = us = fs = gs = ps = ms = null, $.length = 0;
3708
3767
  },
3709
3768
  _handleFallbackAutoScroll: function(e) {
3710
3769
  this._handleAutoScroll(e, !0);
3711
3770
  },
3712
3771
  _handleAutoScroll: function(e, t) {
3713
3772
  var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
3714
- if (ls = e, t || this.options.forceAutoScrollFallback || Ta || wa || Da) {
3715
- ms(e, this.options, a, t);
3716
- var o = Wa(a, !0);
3717
- os && (!us || r !== ss || i !== cs) && (us && ps(), us = setInterval(function() {
3718
- var a = Wa(document.elementFromPoint(r, i), !0);
3719
- a !== o && (o = a, fs()), ms(e, n.options, a, t);
3720
- }, 10), ss = r, cs = i);
3773
+ if (hs = e, t || this.options.forceAutoScrollFallback || Aa || ka || Ma) {
3774
+ bs(e, this.options, a, t);
3775
+ var o = Ya(a, !0);
3776
+ fs && (!gs || r !== ps || i !== ms) && (gs && ys(), gs = setInterval(function() {
3777
+ var a = Ya(document.elementFromPoint(r, i), !0);
3778
+ a !== o && (o = a, vs()), bs(e, n.options, a, t);
3779
+ }, 10), ps = r, ms = i);
3721
3780
  } else {
3722
- if (!this.options.bubbleScroll || Wa(a, !0) === La()) {
3723
- fs();
3781
+ if (!this.options.bubbleScroll || Ya(a, !0) === Ha()) {
3782
+ vs();
3724
3783
  return;
3725
3784
  }
3726
- ms(e, this.options, Wa(a, !1), !1);
3785
+ bs(e, this.options, Ya(a, !1), !1);
3727
3786
  }
3728
3787
  }
3729
- }, ya(e, {
3788
+ }, wa(e, {
3730
3789
  pluginName: "scroll",
3731
3790
  initializeByDefault: !0
3732
3791
  });
3733
3792
  }
3734
- function fs() {
3793
+ function vs() {
3735
3794
  $.forEach(function(e) {
3736
3795
  clearInterval(e.pid);
3737
3796
  }), $ = [];
3738
3797
  }
3739
- function ps() {
3740
- clearInterval(us);
3798
+ function ys() {
3799
+ clearInterval(gs);
3741
3800
  }
3742
- var ms = Ja(function(e, t, n, r) {
3801
+ var bs = $a(function(e, t, n, r) {
3743
3802
  if (t.scroll) {
3744
- var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = La(), l = !1, u;
3745
- as !== n && (as = n, fs(), is = t.scroll, u = t.scrollFn, is === !0 && (is = Wa(n, !0)));
3746
- var d = 0, f = is;
3803
+ var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = Ha(), l = !1, u;
3804
+ ds !== n && (ds = n, vs(), us = t.scroll, u = t.scrollFn, us === !0 && (us = Ya(n, !0)));
3805
+ var d = 0, f = us;
3747
3806
  do {
3748
- var p = f, m = B(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, w = p.scrollHeight, T = z(p), E = p.scrollLeft, D = p.scrollTop;
3807
+ var p = f, m = V(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, w = p.scrollHeight, T = B(p), E = p.scrollLeft, D = p.scrollTop;
3749
3808
  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"));
3750
3809
  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);
3751
3810
  if (!$[d]) for (var A = 0; A <= d; A++) $[A] || ($[A] = {});
3752
3811
  ($[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() {
3753
- r && this.layer === 0 && Q.active._onTouchMove(ls);
3812
+ r && this.layer === 0 && Q.active._onTouchMove(hs);
3754
3813
  var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
3755
- typeof u == "function" && u.call(Q.dragged.parentNode[V], n, t, e, ls, $[this.layer].el) !== "continue" || Xa($[this.layer].el, n, t);
3814
+ typeof u == "function" && u.call(Q.dragged.parentNode[H], n, t, e, hs, $[this.layer].el) !== "continue" || to($[this.layer].el, n, t);
3756
3815
  }.bind({ layer: d }), 24))), d++;
3757
- } while (t.bubbleScroll && f !== c && (f = Wa(f, !1)));
3758
- os = l;
3816
+ } while (t.bubbleScroll && f !== c && (f = Ya(f, !1)));
3817
+ fs = l;
3759
3818
  }
3760
- }, 30), hs = function(e) {
3819
+ }, 30), xs = function(e) {
3761
3820
  var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
3762
3821
  if (t) {
3763
3822
  var c = n || i;
@@ -3769,8 +3828,8 @@ var ms = Ja(function(e, t, n, r) {
3769
3828
  }));
3770
3829
  }
3771
3830
  };
3772
- function gs() {}
3773
- gs.prototype = {
3831
+ function Ss() {}
3832
+ Ss.prototype = {
3774
3833
  startIndex: null,
3775
3834
  dragStart: function(e) {
3776
3835
  var t = e.oldDraggableIndex;
@@ -3779,72 +3838,72 @@ gs.prototype = {
3779
3838
  onSpill: function(e) {
3780
3839
  var t = e.dragEl, n = e.putSortable;
3781
3840
  this.sortable.captureAnimationState(), n && n.captureAnimationState();
3782
- var r = za(this.sortable.el, this.startIndex, this.options);
3841
+ var r = Wa(this.sortable.el, this.startIndex, this.options);
3783
3842
  r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
3784
3843
  },
3785
- drop: hs
3786
- }, ya(gs, { pluginName: "revertOnSpill" });
3787
- function _s() {}
3788
- _s.prototype = {
3844
+ drop: xs
3845
+ }, wa(Ss, { pluginName: "revertOnSpill" });
3846
+ function Cs() {}
3847
+ Cs.prototype = {
3789
3848
  onSpill: function(e) {
3790
3849
  var t = e.dragEl, n = e.putSortable || this.sortable;
3791
3850
  n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
3792
3851
  },
3793
- drop: hs
3794
- }, ya(_s, { pluginName: "removeOnSpill" }), Q.mount(new ds()), Q.mount(_s, gs);
3795
- function vs(e) {
3852
+ drop: xs
3853
+ }, wa(Cs, { pluginName: "removeOnSpill" }), Q.mount(new _s()), Q.mount(Cs, Ss);
3854
+ function ws(e) {
3796
3855
  return e == null ? e : JSON.parse(JSON.stringify(e));
3797
3856
  }
3798
- function ys(e) {
3857
+ function Ts(e) {
3799
3858
  ne() && r(e);
3800
3859
  }
3801
- function bs(e) {
3860
+ function Es(e) {
3802
3861
  ne() ? a(e) : re(e);
3803
3862
  }
3804
- var xs = null, Ss = null;
3805
- function Cs(e = null, t = null) {
3806
- xs = e, Ss = t;
3863
+ var Ds = null, Os = null;
3864
+ function ks(e = null, t = null) {
3865
+ Ds = e, Os = t;
3807
3866
  }
3808
- function ws() {
3867
+ function As() {
3809
3868
  return {
3810
- data: xs,
3811
- clonedData: Ss
3869
+ data: Ds,
3870
+ clonedData: Os
3812
3871
  };
3813
3872
  }
3814
- var Ts = Symbol("cloneElement");
3815
- function Es(...e) {
3873
+ var js = Symbol("cloneElement");
3874
+ function Ms(...e) {
3816
3875
  let t = ne()?.proxy, n = null, r = e[0], [, i, a] = e;
3817
3876
  Array.isArray(k(i)) || (a = i, i = null);
3818
- let o = null, { immediate: s = !0, clone: l = vs, forceFallback: u, fallbackOnBody: d, customUpdate: f } = k(a) ?? {};
3877
+ let o = null, { immediate: s = !0, clone: l = ws, forceFallback: u, fallbackOnBody: d, customUpdate: f } = k(a) ?? {};
3819
3878
  function p(e) {
3820
3879
  let { from: t, oldIndex: r, item: a } = e, o = Array.from(t.childNodes);
3821
3880
  n = u && !d ? o.slice(0, -1) : o;
3822
3881
  let s = k(k(i)?.[r]), c = l(s);
3823
- Cs(s, c), a[Ts] = c;
3882
+ ks(s, c), a[js] = c;
3824
3883
  }
3825
3884
  function m(e) {
3826
- let t = e.item[Ts];
3827
- if (!ia(t)) {
3828
- if (sa(e.item), g(i)) {
3885
+ let t = e.item[js];
3886
+ if (!la(t)) {
3887
+ if (fa(e.item), g(i)) {
3829
3888
  let n = [...k(i)];
3830
- i.value = ra(n, e.newDraggableIndex, t);
3889
+ i.value = ca(n, e.newDraggableIndex, t);
3831
3890
  return;
3832
3891
  }
3833
- ra(k(i), e.newDraggableIndex, t);
3892
+ ca(k(i), e.newDraggableIndex, t);
3834
3893
  }
3835
3894
  }
3836
3895
  function h(e) {
3837
3896
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, pullMode: o, clone: s } = e;
3838
- if (oa(t, n, r), o === "clone") {
3839
- sa(s);
3897
+ if (da(t, n, r), o === "clone") {
3898
+ fa(s);
3840
3899
  return;
3841
3900
  }
3842
3901
  if (g(i)) {
3843
3902
  let e = [...k(i)];
3844
- i.value = na(e, a);
3903
+ i.value = sa(e, a);
3845
3904
  return;
3846
3905
  }
3847
- na(k(i), a);
3906
+ sa(k(i), a);
3848
3907
  }
3849
3908
  function _(e) {
3850
3909
  if (f) {
@@ -3852,12 +3911,12 @@ function Es(...e) {
3852
3911
  return;
3853
3912
  }
3854
3913
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, newDraggableIndex: o } = e;
3855
- if (sa(n), oa(t, n, r), g(i)) {
3914
+ if (fa(n), da(t, n, r), g(i)) {
3856
3915
  let e = [...k(i)];
3857
- i.value = $i(e, a, o);
3916
+ i.value = ia(e, a, o);
3858
3917
  return;
3859
3918
  }
3860
- $i(k(i), a, o);
3919
+ ia(k(i), a, o);
3861
3920
  }
3862
3921
  function v(e) {
3863
3922
  let { newIndex: t, oldIndex: r, from: i, to: a } = e, o = null, s = t === r && i === a;
@@ -3876,7 +3935,7 @@ function Es(...e) {
3876
3935
  n = null;
3877
3936
  }
3878
3937
  re(() => {
3879
- if (Cs(), o) throw o;
3938
+ if (ks(), o) throw o;
3880
3939
  });
3881
3940
  }
3882
3941
  let y = {
@@ -3888,19 +3947,19 @@ function Es(...e) {
3888
3947
  };
3889
3948
  function b(e) {
3890
3949
  let n = k(r);
3891
- return e ||= aa(n) ? ca(n, t?.$el) : n, e && !da(e) && (e = e.$el), e || Qi("Root element not found"), e;
3950
+ return e ||= ua(n) ? pa(n, t?.$el) : n, e && !ga(e) && (e = e.$el), e || ra("Root element not found"), e;
3892
3951
  }
3893
3952
  function x() {
3894
- let e = k(a) ?? {}, { immediate: t, clone: n } = e, r = Yi(e, ["immediate", "clone"]);
3895
- return fa(r, (e, t) => {
3896
- pa(e) && (r[e] = (e, ...n) => (ma(e, ws()), t(e, ...n)));
3897
- }), ua(i === null ? {} : y, r);
3953
+ let e = k(a) ?? {}, { immediate: t, clone: n } = e, r = ea(e, ["immediate", "clone"]);
3954
+ return _a(r, (e, t) => {
3955
+ va(e) && (r[e] = (e, ...n) => (ya(e, As()), t(e, ...n)));
3956
+ }), ha(i === null ? {} : y, r);
3898
3957
  }
3899
3958
  let S = (e) => {
3900
3959
  e = b(e), o && C.destroy(), o = new Q(e, x());
3901
3960
  };
3902
3961
  c(() => a, () => {
3903
- o && fa(x(), (e, t) => {
3962
+ o && _a(x(), (e, t) => {
3904
3963
  o?.option(e, t);
3905
3964
  });
3906
3965
  }, { deep: !0 });
@@ -3913,15 +3972,15 @@ function Es(...e) {
3913
3972
  toArray: () => o?.toArray(),
3914
3973
  closest: (...e) => o?.closest(...e)
3915
3974
  };
3916
- return bs(() => {
3975
+ return Es(() => {
3917
3976
  s && S();
3918
- }), ys(C.destroy), Ji({
3977
+ }), Ts(C.destroy), $i({
3919
3978
  start: S,
3920
3979
  pause: () => C?.option("disabled", !0),
3921
3980
  resume: () => C?.option("disabled", !1)
3922
3981
  }, C);
3923
3982
  }
3924
- var Ds = [
3983
+ var Ns = [
3925
3984
  "update",
3926
3985
  "start",
3927
3986
  "add",
@@ -3934,87 +3993,87 @@ var Ds = [
3934
3993
  "clone",
3935
3994
  "move",
3936
3995
  "change"
3937
- ], Os = y({
3996
+ ], Ps = [
3997
+ "clone",
3998
+ "animation",
3999
+ "ghostClass",
4000
+ "group",
4001
+ "sort",
4002
+ "disabled",
4003
+ "store",
4004
+ "handle",
4005
+ "draggable",
4006
+ "swapThreshold",
4007
+ "invertSwap",
4008
+ "invertedSwapThreshold",
4009
+ "removeCloneOnHide",
4010
+ "direction",
4011
+ "chosenClass",
4012
+ "dragClass",
4013
+ "ignore",
4014
+ "filter",
4015
+ "preventOnFilter",
4016
+ "easing",
4017
+ "setData",
4018
+ "dropBubble",
4019
+ "dragoverBubble",
4020
+ "dataIdAttr",
4021
+ "delay",
4022
+ "delayOnTouchOnly",
4023
+ "touchStartThreshold",
4024
+ "forceFallback",
4025
+ "fallbackClass",
4026
+ "fallbackOnBody",
4027
+ "fallbackTolerance",
4028
+ "fallbackOffset",
4029
+ "supportPointer",
4030
+ "emptyInsertThreshold",
4031
+ "scroll",
4032
+ "forceAutoScrollFallback",
4033
+ "scrollSensitivity",
4034
+ "scrollSpeed",
4035
+ "bubbleScroll",
4036
+ "modelValue",
4037
+ "tag",
4038
+ "target",
4039
+ "customUpdate",
4040
+ ...Ns.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
4041
+ ], Fs = y({
3938
4042
  name: "VueDraggable",
3939
4043
  model: {
3940
4044
  prop: "modelValue",
3941
4045
  event: "update:modelValue"
3942
4046
  },
3943
- props: [
3944
- "clone",
3945
- "animation",
3946
- "ghostClass",
3947
- "group",
3948
- "sort",
3949
- "disabled",
3950
- "store",
3951
- "handle",
3952
- "draggable",
3953
- "swapThreshold",
3954
- "invertSwap",
3955
- "invertedSwapThreshold",
3956
- "removeCloneOnHide",
3957
- "direction",
3958
- "chosenClass",
3959
- "dragClass",
3960
- "ignore",
3961
- "filter",
3962
- "preventOnFilter",
3963
- "easing",
3964
- "setData",
3965
- "dropBubble",
3966
- "dragoverBubble",
3967
- "dataIdAttr",
3968
- "delay",
3969
- "delayOnTouchOnly",
3970
- "touchStartThreshold",
3971
- "forceFallback",
3972
- "fallbackClass",
3973
- "fallbackOnBody",
3974
- "fallbackTolerance",
3975
- "fallbackOffset",
3976
- "supportPointer",
3977
- "emptyInsertThreshold",
3978
- "scroll",
3979
- "forceAutoScrollFallback",
3980
- "scrollSensitivity",
3981
- "scrollSpeed",
3982
- "bubbleScroll",
3983
- "modelValue",
3984
- "tag",
3985
- "target",
3986
- "customUpdate",
3987
- ...Ds.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
3988
- ],
3989
- emits: ["update:modelValue", ...Ds],
4047
+ props: Ps,
4048
+ emits: ["update:modelValue", ...Ns],
3990
4049
  setup(t, { slots: n, emit: r, expose: i, attrs: a }) {
3991
- let o = Ds.reduce((e, t) => {
4050
+ let o = Ns.reduce((e, t) => {
3992
4051
  let n = `on${t.replace(/^\S/, (e) => e.toUpperCase())}`;
3993
4052
  return e[n] = (...e) => r(t, ...e), e;
3994
4053
  }, {}), s = M(() => {
3995
- let n = e(t), { modelValue: r } = n, i = Yi(n, ["modelValue"]), s = Object.entries(i).reduce((e, [t, n]) => {
4054
+ let n = e(t), { modelValue: r } = n, i = ea(n, ["modelValue"]), s = Object.entries(i).reduce((e, [t, n]) => {
3996
4055
  let r = k(n);
3997
4056
  return r !== void 0 && (e[t] = r), e;
3998
4057
  }, {});
3999
- return Ji(Ji({}, o), ta(Ji(Ji({}, a), s)));
4058
+ return $i($i({}, o), oa($i($i({}, a), s)));
4000
4059
  }), c = M({
4001
4060
  get: () => t.modelValue,
4002
4061
  set: (e) => r("update:modelValue", e)
4003
- }), l = _(), u = A(Es(t.target || l, c, s));
4062
+ }), l = _(), u = A(Ms(t.target || l, c, s));
4004
4063
  return i(u), () => ie(t.tag || "div", { ref: l }, (n?.default)?.call(n, u));
4005
4064
  }
4006
- }), ks = {
4065
+ }), Is = {
4007
4066
  mounted: "mounted",
4008
4067
  unmounted: "unmounted"
4009
4068
  };
4010
- ks.mounted, ks.unmounted;
4069
+ Is.mounted, Is.unmounted;
4011
4070
  //#endregion
4012
4071
  //#region src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
4013
- var As = { class: "tpl:w-full" }, js = {
4072
+ var Ls = { class: "tpl:w-full" }, Rs = {
4014
4073
  key: 0,
4015
4074
  "data-testid": "section-drop-hint",
4016
4075
  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)]"
4017
- }, Ms = /* @__PURE__ */ y({
4076
+ }, zs = /* @__PURE__ */ y({
4018
4077
  __name: "SectionBlock",
4019
4078
  props: {
4020
4079
  block: {},
@@ -4022,14 +4081,14 @@ var As = { class: "tpl:w-full" }, js = {
4022
4081
  },
4023
4082
  setup(e) {
4024
4083
  let n = {
4025
- title: Vi,
4026
- paragraph: Si,
4027
- image: li,
4028
- button: Xn,
4029
- divider: Ur,
4030
- custom: Vr
4031
- }, r = e, { t: a } = Ht(), s = dt(Dt, "SectionBlock"), c = P(wt, null), l = P(Pt, null), u = P(It, {});
4032
- function h(e) {
4084
+ title: Ki,
4085
+ paragraph: Di,
4086
+ image: mi,
4087
+ button: tr,
4088
+ divider: Jr,
4089
+ custom: Kr
4090
+ }, r = e, { t: a } = Kt(), s = pt(jt, "SectionBlock"), c = P(At, null), l = P(Bt, null), u = P(kt, {}), h = P(zt, null);
4091
+ function g(e) {
4033
4092
  let t = u.savedBlocks;
4034
4093
  if (t?.isPicking.value) {
4035
4094
  t.togglePick(r.block.id);
@@ -4037,7 +4096,7 @@ var As = { class: "tpl:w-full" }, js = {
4037
4096
  }
4038
4097
  s.selectBlock(e);
4039
4098
  }
4040
- let g = M(() => {
4099
+ let _ = M(() => {
4041
4100
  switch (r.block.columns) {
4042
4101
  case "2": return ["50%", "50%"];
4043
4102
  case "3": return [
@@ -4049,38 +4108,38 @@ var As = { class: "tpl:w-full" }, js = {
4049
4108
  case "2-1": return ["66.67%", "33.33%"];
4050
4109
  default: return ["100%"];
4051
4110
  }
4052
- }), _ = M(() => {
4053
- let e = g.value.length, t = [...r.block.children];
4111
+ }), v = M(() => {
4112
+ let e = _.value.length, t = [...r.block.children];
4054
4113
  for (; t.length < e;) t.push([]);
4055
4114
  return t.slice(0, e);
4056
- }), v = M(() => r.viewport === "mobile" && r.block.stackOnMobile !== !1);
4057
- function y(e) {
4058
- return _.value[e] || [];
4115
+ }), y = M(() => r.viewport === "mobile" && r.block.stackOnMobile !== !1);
4116
+ function S(e) {
4117
+ return v.value[e] || [];
4059
4118
  }
4060
- function S(e, t) {
4119
+ function C(e, t) {
4061
4120
  let n = t.map((e) => JSON.parse(JSON.stringify(e))), i = [...r.block.children];
4062
4121
  for (; i.length <= e;) i.push([]);
4063
4122
  i[e] = n, s.updateBlock(r.block.id, { children: i });
4064
4123
  }
4065
- function C(e) {
4066
- return wi(e, l, n);
4124
+ function T(e) {
4125
+ return ki(e, l, n);
4067
4126
  }
4068
- function T(e, t) {
4127
+ function E(e, t) {
4069
4128
  e.type === "custom" && s.updateBlock(e.id, {
4070
4129
  fieldValues: t.fieldValues,
4071
4130
  dataSourceFetched: t.dataSourceFetched
4072
4131
  });
4073
4132
  }
4074
- return (n, r) => (f(), x("div", As, [b("div", { class: o(["tpl:flex tpl:gap-0", { "tpl:flex-col": v.value }]) }, [(f(!0), x(j, null, t(_.value, (n, r) => (f(), x("div", {
4133
+ return (n, r) => (f(), x("div", Ls, [b("div", { class: o(["tpl:flex tpl:gap-0", { "tpl:flex-col": y.value }]) }, [(f(!0), x(j, null, t(v.value, (n, r) => (f(), x("div", {
4075
4134
  key: r,
4076
- class: o(["tpl:relative tpl:min-h-[60px] tpl:rounded", y(r).length === 0 ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
4077
- style: i({ width: v.value ? "100%" : g.value[r] })
4078
- }, [w(k(Os), {
4079
- "model-value": y(r),
4135
+ class: o(["tpl:relative tpl:min-h-[60px] tpl:rounded", S(r).length === 0 ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
4136
+ style: i({ width: y.value ? "100%" : _.value[r] })
4137
+ }, [w(k(Fs), {
4138
+ "model-value": S(r),
4080
4139
  group: {
4081
4140
  name: "blocks",
4082
4141
  pull: !0,
4083
- put: (e, t, n) => k(Hi)(n)
4142
+ put: (e, t, n) => k(qi)(n)
4084
4143
  },
4085
4144
  animation: 150,
4086
4145
  "ghost-class": "tpl-ghost",
@@ -4091,20 +4150,20 @@ var As = { class: "tpl:w-full" }, js = {
4091
4150
  "empty-insert-threshold": 20,
4092
4151
  "force-fallback": !0,
4093
4152
  class: "tpl:min-h-[60px]",
4094
- "onUpdate:modelValue": (e) => S(r, e)
4153
+ "onUpdate:modelValue": (e) => C(r, e)
4095
4154
  }, {
4096
- default: m(() => [(f(!0), x(j, null, t(y(r), (t) => ae((f(), x("div", { key: t.id }, [w(zi, {
4155
+ default: m(() => [(f(!0), x(j, null, t(S(r), (t) => ae((f(), x("div", { key: t.id }, [w(Wi, {
4097
4156
  block: t,
4098
4157
  "is-selected": k(s).state.selectedBlockId === t.id,
4099
4158
  viewport: e.viewport,
4100
4159
  "preview-mode": k(s).state.previewMode,
4101
4160
  nested: "",
4102
- onSelect: (e) => h(t.id)
4161
+ onSelect: (e) => g(t.id)
4103
4162
  }, {
4104
- default: m(() => [(f(), D(d(C(t)), {
4163
+ default: m(() => [(f(), D(d(T(t)), {
4105
4164
  block: t,
4106
4165
  viewport: e.viewport,
4107
- onFetchData: (e) => T(t, e),
4166
+ onFetchData: (e) => E(t, e),
4108
4167
  onUpdate: (e) => k(s).updateBlock(t.id, e)
4109
4168
  }, null, 40, [
4110
4169
  "block",
@@ -4119,19 +4178,19 @@ var As = { class: "tpl:w-full" }, js = {
4119
4178
  "viewport",
4120
4179
  "preview-mode",
4121
4180
  "onSelect"
4122
- ])])), [[oe, !k(c)?.isHidden(t.id)]])), 128))]),
4181
+ ])])), [[oe, k(h) === !1 || !k(c)?.isHidden(t.id)]])), 128))]),
4123
4182
  _: 2
4124
4183
  }, 1032, [
4125
4184
  "model-value",
4126
4185
  "group",
4127
4186
  "onUpdate:modelValue"
4128
- ]), y(r).length === 0 ? (f(), x("div", js, [b("span", null, p(k(a).section.dropHere), 1)])) : N("", !0)], 6))), 128))], 2)]));
4187
+ ]), S(r).length === 0 ? (f(), x("div", Rs, [b("span", null, p(k(a).section.dropHere), 1)])) : N("", !0)], 6))), 128))], 2)]));
4129
4188
  }
4130
- }), Ns = Me, Ps = {
4189
+ }), Bs = Ne, Vs = {
4131
4190
  small: 24,
4132
4191
  medium: 32,
4133
4192
  large: 48
4134
- }, Fs = [
4193
+ }, Hs = [
4135
4194
  "facebook",
4136
4195
  "twitter",
4137
4196
  "instagram",
@@ -4149,11 +4208,11 @@ var As = { class: "tpl:w-full" }, js = {
4149
4208
  "github",
4150
4209
  "dribbble",
4151
4210
  "behance"
4152
- ], Is = [
4211
+ ], Us = [
4153
4212
  "width",
4154
4213
  "height",
4155
4214
  "fill"
4156
- ], Ls = ["d"], Rs = /* @__PURE__ */ y({
4215
+ ], Ws = ["d"], Gs = /* @__PURE__ */ y({
4157
4216
  __name: "SocialIconSvg",
4158
4217
  props: {
4159
4218
  platform: {},
@@ -4161,7 +4220,7 @@ var As = { class: "tpl:w-full" }, js = {
4161
4220
  iconSize: {}
4162
4221
  },
4163
4222
  setup(e) {
4164
- let t = e, n = M(() => Ns[t.platform]), r = M(() => Ps[t.iconSize]), a = M(() => {
4223
+ let t = e, n = M(() => Bs[t.platform]), r = M(() => Vs[t.iconSize]), a = M(() => {
4165
4224
  let e = {
4166
4225
  display: "inline-flex",
4167
4226
  alignItems: "center",
@@ -4205,25 +4264,25 @@ var As = { class: "tpl:w-full" }, js = {
4205
4264
  viewBox: "0 0 24 24",
4206
4265
  fill: s.value,
4207
4266
  xmlns: "http://www.w3.org/2000/svg"
4208
- }, [b("path", { d: n.value.path }, null, 8, Ls)], 8, Is))], 4));
4267
+ }, [b("path", { d: n.value.path }, null, 8, Ws)], 8, Us))], 4));
4209
4268
  }
4210
- }), zs = { class: "tpl:w-full" }, Bs = ["href"], Vs = {
4269
+ }), Ks = { class: "tpl:w-full" }, qs = ["href"], Js = {
4211
4270
  key: 1,
4212
4271
  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)]"
4213
- }, Hs = /* @__PURE__ */ y({
4272
+ }, Ys = /* @__PURE__ */ y({
4214
4273
  __name: "SocialIconsBlock",
4215
4274
  props: {
4216
4275
  block: {},
4217
4276
  viewport: {}
4218
4277
  },
4219
4278
  setup(e) {
4220
- let n = e, { t: r } = Ht(), a = M(() => ({
4279
+ let n = e, { t: r } = Kt(), a = M(() => ({
4221
4280
  display: "flex",
4222
4281
  flexWrap: "wrap",
4223
4282
  gap: `${n.block.spacing}px`,
4224
4283
  justifyContent: n.block.align === "left" ? "flex-start" : n.block.align === "right" ? "flex-end" : "center"
4225
4284
  })), o = M(() => n.block.icons.length > 0);
4226
- return (n, s) => (f(), x("div", zs, [o.value ? (f(), x("div", {
4285
+ return (n, s) => (f(), x("div", Ks, [o.value ? (f(), x("div", {
4227
4286
  key: 0,
4228
4287
  style: i(a.value)
4229
4288
  }, [(f(!0), x(j, null, t(e.block.icons, (t) => (f(), x("a", {
@@ -4231,7 +4290,7 @@ var As = { class: "tpl:w-full" }, js = {
4231
4290
  href: t.url || "#",
4232
4291
  class: "tpl:cursor-default",
4233
4292
  onClick: s[0] ||= F(() => {}, ["prevent"])
4234
- }, [w(Rs, {
4293
+ }, [w(Gs, {
4235
4294
  platform: t.platform,
4236
4295
  "icon-style": e.block.iconStyle,
4237
4296
  "icon-size": e.block.iconSize
@@ -4239,44 +4298,44 @@ var As = { class: "tpl:w-full" }, js = {
4239
4298
  "platform",
4240
4299
  "icon-style",
4241
4300
  "icon-size"
4242
- ])], 8, Bs))), 128))], 4)) : (f(), x("div", Vs, [w(k(sr), { size: 16 }), b("span", null, p(k(r).social.addIcons), 1)]))]));
4301
+ ])], 8, qs))), 128))], 4)) : (f(), x("div", Js, [w(k(fr), { size: 16 }), b("span", null, p(k(r).social.addIcons), 1)]))]));
4243
4302
  }
4244
- }), Us = { class: "tpl:w-full" }, Ws = {
4303
+ }), Xs = { class: "tpl:w-full" }, Zs = {
4245
4304
  key: 0,
4246
4305
  class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
4247
4306
  style: {
4248
4307
  "background-color": "var(--tpl-bg-hover)",
4249
4308
  color: "var(--tpl-text-dim)"
4250
4309
  }
4251
- }, Gs = /* @__PURE__ */ y({
4310
+ }, Qs = /* @__PURE__ */ y({
4252
4311
  __name: "SpacerBlock",
4253
4312
  props: {
4254
4313
  block: {},
4255
4314
  viewport: {}
4256
4315
  },
4257
4316
  setup(e) {
4258
- let t = e, n = dt(Dt, "SpacerBlock"), r = M(() => ({
4317
+ let t = e, n = pt(jt, "SpacerBlock"), r = M(() => ({
4259
4318
  height: `${t.block.height}px`,
4260
4319
  minHeight: `${t.block.height}px`,
4261
4320
  ...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
4262
4321
  }));
4263
- return (t, a) => (f(), x("div", Us, [b("div", {
4322
+ return (t, a) => (f(), x("div", Xs, [b("div", {
4264
4323
  style: i(r.value),
4265
4324
  class: o(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:border-y tpl:border-dashed": !k(n).state.previewMode }])
4266
- }, [k(n).state.previewMode ? N("", !0) : (f(), x("span", Ws, p(e.block.height) + "px ", 1))], 6)]));
4325
+ }, [k(n).state.previewMode ? N("", !0) : (f(), x("span", Zs, p(e.block.height) + "px ", 1))], 6)]));
4267
4326
  }
4268
- }), Ks = { class: "tpl:w-full" }, qs = { key: 0 }, Js = [
4327
+ }), $s = { class: "tpl:w-full" }, ec = { key: 0 }, tc = [
4269
4328
  "aria-label",
4270
4329
  "data-placeholder",
4271
4330
  "onBlur"
4272
- ], Ys = [
4331
+ ], nc = [
4273
4332
  "aria-label",
4274
4333
  "data-placeholder",
4275
4334
  "onBlur"
4276
- ], Xs = {
4335
+ ], rc = {
4277
4336
  key: 1,
4278
4337
  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)]"
4279
- }, Zs = /*#__PURE__*/ Yt(/* @__PURE__ */ y({
4338
+ }, ic = /*#__PURE__*/ Qt(/* @__PURE__ */ y({
4280
4339
  __name: "TableBlock",
4281
4340
  props: {
4282
4341
  block: {},
@@ -4290,7 +4349,7 @@ var As = { class: "tpl:w-full" }, js = {
4290
4349
  updated(e, t) {
4291
4350
  t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
4292
4351
  }
4293
- }, r = e, { t: a } = Ht(), o = dt(Dt, "TableBlock"), s = M(() => r.block.rows.length > 0), c = M(() => {
4352
+ }, r = e, { t: a } = Kt(), o = pt(jt, "TableBlock"), s = M(() => r.block.rows.length > 0), c = M(() => {
4294
4353
  let e = {
4295
4354
  width: "100%",
4296
4355
  borderCollapse: "collapse",
@@ -4321,11 +4380,11 @@ var As = { class: "tpl:w-full" }, js = {
4321
4380
  } : n);
4322
4381
  o.updateBlock(r.block.id, { rows: a });
4323
4382
  }
4324
- return (e, r) => (f(), x("div", Ks, [s.value ? (f(), x("table", {
4383
+ return (e, r) => (f(), x("div", $s, [s.value ? (f(), x("table", {
4325
4384
  key: 0,
4326
4385
  style: i(c.value),
4327
4386
  class: "tpl-table-editable"
4328
- }, [d.value ? (f(), x("thead", qs, [b("tr", null, [(f(!0), x(j, null, t(d.value.cells, (e) => ae((f(), x("th", {
4387
+ }, [d.value ? (f(), x("thead", ec, [b("tr", null, [(f(!0), x(j, null, t(d.value.cells, (e) => ae((f(), x("th", {
4329
4388
  key: e.id,
4330
4389
  style: i(u.value),
4331
4390
  "aria-label": k(a).table.cellPlaceholder,
@@ -4334,7 +4393,7 @@ var As = { class: "tpl:w-full" }, js = {
4334
4393
  onBlur: (t) => g(d.value.id, e.id, t),
4335
4394
  onKeydown: r[0] ||= se(F((e) => e.target.blur(), ["prevent"]), ["enter"]),
4336
4395
  onClick: F(h, ["stop"])
4337
- }, null, 44, Js)), [[n, e.content]])), 128))])])) : N("", !0), b("tbody", null, [(f(!0), x(j, null, t(m.value, (e) => (f(), x("tr", { key: e.id }, [(f(!0), x(j, null, t(e.cells, (t) => ae((f(), x("td", {
4396
+ }, null, 44, tc)), [[n, e.content]])), 128))])])) : N("", !0), b("tbody", null, [(f(!0), x(j, null, t(m.value, (e) => (f(), x("tr", { key: e.id }, [(f(!0), x(j, null, t(e.cells, (t) => ae((f(), x("td", {
4338
4397
  key: t.id,
4339
4398
  style: i(l.value),
4340
4399
  "aria-label": k(a).table.cellPlaceholder,
@@ -4343,9 +4402,9 @@ var As = { class: "tpl:w-full" }, js = {
4343
4402
  onBlur: (n) => g(e.id, t.id, n),
4344
4403
  onKeydown: r[1] ||= se(F((e) => e.target.blur(), ["prevent"]), ["enter"]),
4345
4404
  onClick: F(h, ["stop"])
4346
- }, null, 44, Ys)), [[n, t.content]])), 128))]))), 128))])], 4)) : (f(), x("div", Xs, [w(k(cr), { size: 16 }), b("span", null, p(k(a).table.empty), 1)]))]));
4405
+ }, null, 44, nc)), [[n, t.content]])), 128))]))), 128))])], 4)) : (f(), x("div", rc, [w(k(pr), { size: 16 }), b("span", null, p(k(a).table.empty), 1)]))]));
4347
4406
  }
4348
- }), [["__scopeId", "data-v-963ac422"]]), Qs = /* @__PURE__ */ y({
4407
+ }), [["__scopeId", "data-v-963ac422"]]), ac = /* @__PURE__ */ y({
4349
4408
  __name: "VideoPlayButton",
4350
4409
  props: { hoverEffect: {
4351
4410
  type: Boolean,
@@ -4363,7 +4422,7 @@ var As = { class: "tpl:w-full" }, js = {
4363
4422
  });
4364
4423
  //#endregion
4365
4424
  //#region src/utils/videoThumbnail.ts
4366
- function $s(e) {
4425
+ function oc(e) {
4367
4426
  if (!e) return {
4368
4427
  platform: "unknown",
4369
4428
  videoId: null,
@@ -4395,25 +4454,25 @@ function $s(e) {
4395
4454
  thumbnailUrl: null
4396
4455
  };
4397
4456
  }
4398
- function ec(e, t) {
4399
- return t || $s(e).thumbnailUrl;
4457
+ function sc(e, t) {
4458
+ return t || oc(e).thumbnailUrl;
4400
4459
  }
4401
4460
  //#endregion
4402
4461
  //#region src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
4403
- var tc = ["src", "alt"], nc = {
4462
+ var cc = ["src", "alt"], lc = {
4404
4463
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
4405
4464
  style: { opacity: "0.7" }
4406
- }, rc = ["href"], ic = ["src", "alt"], ac = ["src", "alt"], oc = {
4465
+ }, uc = ["href"], dc = ["src", "alt"], fc = ["src", "alt"], pc = {
4407
4466
  key: 3,
4408
4467
  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)]"
4409
- }, sc = /* @__PURE__ */ y({
4468
+ }, mc = /* @__PURE__ */ y({
4410
4469
  __name: "VideoBlock",
4411
4470
  props: {
4412
4471
  block: {},
4413
4472
  viewport: {}
4414
4473
  },
4415
4474
  setup(e) {
4416
- let t = e, { t: n } = Ht(), { syntax: r } = Xt(), a = M(() => De(t.block.url, r) || De(t.block.thumbnailUrl, r)), o = yn(() => a.value ? void 0 : t.block.thumbnailUrl || void 0), s = yn(() => a.value ? t.block.placeholderUrl : void 0), c = M(() => a.value ? null : t.block.thumbnailUrl ? o.value ?? null : ec(t.block.url)), l = M(() => ({ textAlign: t.block.align })), u = M(() => {
4475
+ let t = e, { t: n } = Kt(), { syntax: r } = $t(), a = M(() => Oe(t.block.url, r) || Oe(t.block.thumbnailUrl, r)), o = wn(() => a.value ? void 0 : t.block.thumbnailUrl || void 0), s = wn(() => a.value ? t.block.placeholderUrl : void 0), c = M(() => a.value ? null : t.block.thumbnailUrl ? o.value ?? null : sc(t.block.url)), l = M(() => ({ textAlign: t.block.align })), u = M(() => {
4417
4476
  let e = t.block.align;
4418
4477
  return {
4419
4478
  maxWidth: "100%",
@@ -4422,7 +4481,7 @@ var tc = ["src", "alt"], nc = {
4422
4481
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
4423
4482
  marginRight: e === "center" ? "auto" : void 0
4424
4483
  };
4425
- }), d = M(() => De(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
4484
+ }), d = M(() => Oe(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
4426
4485
  return (t, r) => (f(), x("div", {
4427
4486
  class: "tpl:w-full",
4428
4487
  style: i(l.value)
@@ -4434,16 +4493,16 @@ var tc = ["src", "alt"], nc = {
4434
4493
  class: "tpl:w-full tpl:border-0",
4435
4494
  src: k(s),
4436
4495
  alt: e.block.alt
4437
- }, null, 8, tc), w(Qs)], 4)) : a.value ? (f(), x("div", {
4496
+ }, null, 8, cc), w(ac)], 4)) : a.value ? (f(), x("div", {
4438
4497
  key: 1,
4439
4498
  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)]",
4440
4499
  style: i([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, u.value])
4441
- }, [w(k(lr), {
4500
+ }, [w(k(mr), {
4442
4501
  size: 36,
4443
4502
  "stroke-width": 1.5,
4444
4503
  class: "tpl:text-[var(--tpl-primary)]",
4445
4504
  style: { opacity: "0.5" }
4446
- }), b("span", nc, [w(qn, { text: d.value }, null, 8, ["text"])])], 4)) : c.value ? (f(), x(j, { key: 2 }, [e.block.url ? (f(), x("a", {
4505
+ }), b("span", lc, [w(Qn, { text: d.value }, null, 8, ["text"])])], 4)) : c.value ? (f(), x(j, { key: 2 }, [e.block.url ? (f(), x("a", {
4447
4506
  key: 0,
4448
4507
  href: e.block.url,
4449
4508
  target: "_blank",
@@ -4455,7 +4514,7 @@ var tc = ["src", "alt"], nc = {
4455
4514
  class: "tpl:w-full tpl:border-0",
4456
4515
  src: c.value,
4457
4516
  alt: e.block.alt
4458
- }, null, 8, ic), w(Qs, { "hover-effect": "" })], 12, rc)) : (f(), x("div", {
4517
+ }, null, 8, dc), w(ac, { "hover-effect": "" })], 12, uc)) : (f(), x("div", {
4459
4518
  key: 1,
4460
4519
  class: "tpl:relative tpl:inline-block",
4461
4520
  style: i(u.value)
@@ -4463,48 +4522,48 @@ var tc = ["src", "alt"], nc = {
4463
4522
  class: "tpl:w-full tpl:border-0",
4464
4523
  src: c.value,
4465
4524
  alt: e.block.alt
4466
- }, null, 8, ac), w(Qs)], 4))], 64)) : (f(), x("div", oc, [w(k(lr), {
4525
+ }, null, 8, fc), w(ac)], 4))], 64)) : (f(), x("div", pc, [w(k(mr), {
4467
4526
  size: 40,
4468
4527
  "stroke-width": 1.5,
4469
4528
  class: "tpl:text-[var(--tpl-border-light)]"
4470
4529
  }), b("span", null, p(k(n).video.addVideo), 1)]))], 4));
4471
4530
  }
4472
- }), cc = {
4473
- section: Ms,
4474
- title: Vi,
4475
- paragraph: Si,
4476
- image: li,
4477
- button: Xn,
4478
- divider: Ur,
4479
- video: sc,
4480
- social: Hs,
4481
- menu: pi,
4482
- table: Zs,
4483
- spacer: Gs,
4484
- html: Yr,
4485
- countdown: C(() => import("./CountdownBlock-CN9Lc23W.js"))
4531
+ }), hc = {
4532
+ section: zs,
4533
+ title: Ki,
4534
+ paragraph: Di,
4535
+ image: mi,
4536
+ button: tr,
4537
+ divider: Jr,
4538
+ video: mc,
4539
+ social: Ys,
4540
+ menu: vi,
4541
+ table: ic,
4542
+ spacer: Qs,
4543
+ html: ei,
4544
+ countdown: C(() => import("./CountdownBlock-CIVAQDVu.js"))
4486
4545
  };
4487
- function lc(e) {
4488
- let { editor: t, config: n, translations: r, fontsManager: i } = e, { t: a, format: o } = Ht(r);
4546
+ function gc(e) {
4547
+ let { editor: t, config: n, translations: r, fontsManager: i } = e, { t: a, format: o } = Kt(r);
4489
4548
  t.setUiTheme(n.uiTheme ?? "auto");
4490
- let { resolvedTheme: l } = Dn(M(() => t.state.uiTheme)), d = _(n.theme ?? {}), { themeStyles: f } = kn({
4549
+ let { resolvedTheme: l } = Mn(M(() => t.state.uiTheme)), d = _(n.theme ?? {}), { themeStyles: f } = Pn({
4491
4550
  themeOverrides: d,
4492
4551
  resolvedTheme: l,
4493
4552
  extraStyles: e.themeExtraStyles
4494
- }), p = rn({
4553
+ }), p = sn({
4495
4554
  content: t.content,
4496
4555
  setContent: (e, n) => t.setContent(e, n),
4497
4556
  ...e.historyOptions
4498
4557
  });
4499
- un(t, p);
4500
- let m = on({
4558
+ pn(t, p);
4559
+ let m = ln({
4501
4560
  addBlock: t.addBlock,
4502
4561
  removeBlock: t.removeBlock,
4503
4562
  updateBlock: t.updateBlock,
4504
4563
  selectBlock: t.selectBlock,
4505
4564
  findBlockLocation: t.findBlockLocation,
4506
4565
  blockDefaults: n.blockDefaults
4507
- }), h = cn(t), g = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? sn({
4566
+ }), h = dn(t), g = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? un({
4508
4567
  content: t.content,
4509
4568
  isDirty: () => t.state.isDirty,
4510
4569
  ...e.autoSaveOptions
@@ -4512,34 +4571,34 @@ function lc(e) {
4512
4571
  g && (v = c(p.isNavigating, (e) => {
4513
4572
  e ? g.pause() : g.resume();
4514
4573
  }));
4515
- let y = En(t, {
4574
+ let y = jn(t, {
4516
4575
  t: a,
4517
4576
  format: o
4518
- }, n.customBlocks ?? []), b = nt(n.colors);
4519
- if (b.allowCustomIgnored && Mn.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), b.invalidPresets.length > 0 && Mn.warn(`config.colors.presets skipped invalid entries: ${b.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), b.allowCustom === !1) {
4520
- let e = Vn(b.presets, n.blockDefaults, n.templateDefaults);
4521
- e.length > 0 && Mn.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.`);
4577
+ }, n.customBlocks ?? []), b = rt(n.colors);
4578
+ if (b.allowCustomIgnored && Ln.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), b.invalidPresets.length > 0 && Ln.warn(`config.colors.presets skipped invalid entries: ${b.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), b.allowCustom === !1) {
4579
+ let e = Kn(b.presets, n.blockDefaults, n.templateDefaults);
4580
+ e.length > 0 && Ln.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.`);
4522
4581
  }
4523
- let x = Nn();
4524
- Rn(x, cc);
4582
+ let x = Rn();
4583
+ Un(x, hc);
4525
4584
  let S = /* @__PURE__ */ new Set();
4526
4585
  function C(e) {
4527
4586
  for (let t of e) {
4528
- x.registerCustom(t, Vr);
4529
- for (let e of Un(t, b)) S.has(e.id) || (S.add(e.id), Mn.warn(e.message));
4587
+ x.registerCustom(t, Kr);
4588
+ for (let e of Jn(t, b)) S.has(e.id) || (S.add(e.id), Ln.warn(e.message));
4530
4589
  }
4531
4590
  }
4532
4591
  n.customBlocks?.length && C(n.customBlocks);
4533
- let w = _n();
4592
+ let w = bn();
4534
4593
  if (s() && u(w.dispose), e.containerEl) {
4535
4594
  let t = e.containerEl;
4536
- at(document, "pointerdown", (e) => {
4595
+ ot(document, "pointerdown", (e) => {
4537
4596
  let n = t.value;
4538
4597
  n && (e.composedPath?.() ?? []).includes(n) && w.claim();
4539
4598
  }, { capture: !0 });
4540
4599
  }
4541
4600
  function T(r) {
4542
- w.isActive() && Gn(r, {
4601
+ w.isActive() && Xn(r, {
4543
4602
  history: p,
4544
4603
  selectBlock: (e) => t.selectBlock(e),
4545
4604
  getSelectedBlockId: () => t.state.selectedBlockId,
@@ -4551,23 +4610,33 @@ function lc(e) {
4551
4610
  onCancelPick: () => e.capabilities?.savedBlocks?.cancelPicking()
4552
4611
  });
4553
4612
  }
4554
- at(document, "keydown", T);
4613
+ ot(document, "keydown", T);
4555
4614
  let D = _(null);
4556
- E(Et, e.editorRoot ?? document), E(gt, D), E(Vt, r), E(Dt, t), E(Lt, p), E(Ot, m), E(wt, h), E(xt, i), E(_t, f), E(st, l), E(St, n.blockDefaults), E(Pt, x), E(Tt, n.customBlocks ?? []), E(mt, n.paletteBlocks), E(Bt, zn(n.htmlBlockPreview)), E(jt, b), E(Ft, Pn(t.content, x));
4557
- let O = ge(n.mergeTags?.syntax);
4558
- E(yt, n.mergeTags?.tags ?? []), E(At, O), E(pt, n.mergeTags?.onRequest ?? null), E(ut, n.mergeTags?.autocomplete !== !1);
4559
- let k = _(Ne(n.mergeTags?.tags ?? []));
4560
- E(ht, k), E(lt, bn()), E(ct, n.logicTags?.tags ?? []), E(vt, n.logicTags?.pairs ?? []), E(ot, n.logicTags?.onRequest ?? null), E(Rt, xn()), E(kt, n.onRequestMedia ?? null), E(Ct, n.resolveImageUrl ? vn(n.resolveImageUrl) : null), E(Mt, n.displayConditions?.conditions ?? []), E(Nt, n.displayConditions?.allowCustom ?? !1), E(It, e.capabilities ?? {}), E(zt, y);
4561
- let A = Sn(n.lint) ? null : Cn({
4615
+ E(Et, e.editorRoot ?? document), E(ft, D), E(mt, r), E(jt, t), E(Gt, p), E(Dt, m), E(At, h), E(Ht, i), E(wt, f), E(Ct, l), E(Lt, n.blockDefaults), E(Bt, x), E(Rt, n.customBlocks ?? []), E(bt, n.paletteBlocks), E(Ot, Wn(n.htmlBlockPreview)), E(Vt, b), E(Ft, zn(t.content, x));
4616
+ let O = xe(n.mergeTags?.syntax);
4617
+ E(dt, n.mergeTags?.tags ?? []), E(st, O), E(vt, n.mergeTags?.onRequest ?? null), E(ut, n.mergeTags?.autocomplete !== !1);
4618
+ let k = _(Pe(n.mergeTags?.tags ?? []));
4619
+ E(Pt, k);
4620
+ let A = Sn({
4621
+ resolvePreview: n.resolvePreview,
4622
+ getContent: () => t.content.value,
4623
+ isActive: () => t.state.previewMode
4624
+ });
4625
+ E(ht, A), E(gt, n.resolvePreview);
4626
+ let j = M(() => !(t.state.previewMode && A.isConfigured));
4627
+ E(zt, j);
4628
+ let ee = Tn();
4629
+ E(yt, ee), E(Ut, n.logicTags?.tags ?? []), E(lt, n.logicTags?.pairs ?? []), E(Nt, n.logicTags?.onRequest ?? null), E(St, En()), E(_t, n.onRequestMedia ?? null), E(Wt, n.resolveImageUrl ? Cn(n.resolveImageUrl) : null), E(Mt, n.displayConditions?.conditions ?? []), E(It, n.displayConditions?.allowCustom ?? !1), E(kt, e.capabilities ?? {}), E(xt, y);
4630
+ let te = Dn(n.lint) ? null : On({
4562
4631
  content: t.content,
4563
4632
  options: n.lint ?? {},
4564
4633
  updateBlock: t.updateBlock,
4565
4634
  updateSettings: t.updateSettings,
4566
4635
  removeBlock: t.removeBlock
4567
4636
  });
4568
- E(ft, A);
4569
- function j() {
4570
- v?.(), A?.destroy(), g?.destroy(), p.destroy();
4637
+ E(ct, te);
4638
+ function N() {
4639
+ v?.(), te?.destroy(), g?.destroy(), p.destroy();
4571
4640
  }
4572
4641
  return {
4573
4642
  t: a,
@@ -4581,12 +4650,14 @@ function lc(e) {
4581
4650
  themeOverrides: d,
4582
4651
  registry: x,
4583
4652
  keyboardReorder: y,
4584
- templateLint: A,
4653
+ templateLint: te,
4585
4654
  popoverRoot: D,
4586
4655
  mergeTagSampleMode: k,
4656
+ previewResolution: A,
4657
+ appliesConditionFilter: j,
4587
4658
  registerCustomBlocks: C,
4588
- destroy: j
4659
+ destroy: N
4589
4660
  };
4590
4661
  }
4591
4662
  //#endregion
4592
- export { cr as A, Hn as B, Or as C, gr as D, _r as E, tr as F, ln as G, Tn as H, er as I, $t as K, $n as L, ar as M, ir as N, hr as O, rr as P, Zn as R, Ar as S, Sr as T, wn as U, Mn as V, pn as W, Zr as _, Hs as a, Vr as b, Os as c, Ti as d, Ci as f, li as g, pi as h, Gs as i, sr as j, fr as k, Vi as l, Si as m, sc as n, Fs as o, wi as p, dn as q, Zs as r, Ms as s, lc as t, zi as u, Yr as v, Cr as w, Mr as x, Ur as y, Xn as z };
4663
+ export { pr as A, qn as B, Nr as C, xr as D, Sr as E, or as F, gn as G, An as H, ar as I, mn as J, fn as K, ir as L, ur as M, lr as N, br as O, cr as P, nr as R, Fr as S, Dr as T, kn as U, Ln as V, Sn as W, ni as _, Ys as a, Kr as b, Fs as c, Ai as d, Oi as f, mi as g, vi as h, Qs as i, fr as j, _r as k, Ki as l, Di as m, mc as n, Hs as o, ki as p, nn as q, ic as r, zs as s, gc as t, Wi as u, ei as v, Or as w, Lr as x, Jr as y, tr as z };