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