@templatical/editor 0.38.0 → 0.39.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 (222) hide show
  1. package/dist/{AiChatSidebar-tu4eLcf_.js → AiChatSidebar-jVlXXND3.js} +66 -66
  2. package/dist/{AiFeatureMenu-BF0i0vA4.js → AiFeatureMenu-C1HCntyQ.js} +6 -6
  3. package/dist/{BlockIssueBadge-DT-FqKeC.js → BlockIssueBadge-JhNgcUmZ.js} +4 -4
  4. package/dist/{BlockPreviewCanvas-DDCmMram.js → BlockPreviewCanvas-C_rA5LJN.js} +2 -2
  5. package/dist/{CloudHeaderExtras-NPhudovT.js → CloudHeaderExtras-DvYyNsPB.js} +3 -3
  6. package/dist/{CloudPanels-Iwnky0iA.js → CloudPanels-CDPhPVdd.js} +5 -5
  7. package/dist/{CollaboratorBar-DAITu0hz.js → CollaboratorBar-Co9UPoB0.js} +3 -3
  8. package/dist/{ColorPicker-BqlZ_TqG.js → ColorPicker-BTtN94te.js} +6 -6
  9. package/dist/{CommentsPanel-CDvgmWP1.js → CommentsPanel-CRcVN9Ri.js} +1 -1
  10. package/dist/{CommentsSidebar-X_xqM3dR.js → CommentsSidebar-gDU977br.js} +12 -12
  11. package/dist/{CountdownBlock-ZFJIdbP6.js → CountdownBlock-CEzrfe5R.js} +1 -1
  12. package/dist/{CountdownToolbar-DBFoG3a6.js → CountdownToolbar-B00zhkNJ.js} +2 -2
  13. package/dist/{DesignReferenceSidebar--QtXjLrw.js → DesignReferenceSidebar-DedivZZl.js} +7 -7
  14. package/dist/{IssuesPanel-BLbNFMSX.js → IssuesPanel-C-PjdmAV.js} +7 -7
  15. package/dist/{MediaPanels-CMTAhDXB.js → MediaPanels-BpQNY8YX.js} +1 -1
  16. package/dist/{MergeTagInput-BEjzj4Iu.js → MergeTagInput-Cw1RoMly.js} +201 -149
  17. package/dist/{MergeTagModeToggle-DKN6ihI5.js → MergeTagModeToggle-DGuzSAdX.js} +35 -35
  18. package/dist/{MergeTagSuggestion-DKoLEeoj.js → MergeTagSuggestion-BXO3UIXW.js} +2 -2
  19. package/dist/{ParagraphEditor-1E9yzOfk.js → ParagraphEditor-jMKLLTa8.js} +38 -38
  20. package/dist/{RestoreVersionDialog-BMGUkcd8.js → RestoreVersionDialog-DG1jUdBM.js} +4 -4
  21. package/dist/{RichTextEditorContent-BnxbQUV9.js → RichTextEditorContent-JrNEg0kv.js} +8 -8
  22. package/dist/{SaveBlockDialog-WKASpCCT.js → SaveBlockDialog-C0KC-OKs.js} +8 -8
  23. package/dist/{SavedBlocksBrowserModal-AYEXTMtQ.js → SavedBlocksBrowserModal-zyOiRgWZ.js} +10 -10
  24. package/dist/{SavedBlocksPanels-D_CpacTl.js → SavedBlocksPanels-epMd799w.js} +1 -1
  25. package/dist/{SavedBlocksPickBar-BHMwg-1G.js → SavedBlocksPickBar-CJqqQ3jd.js} +3 -3
  26. package/dist/{TemplateScoringPanel-CSin43YM.js → TemplateScoringPanel-m2FOeaai.js} +103 -103
  27. package/dist/{TestEmailModal-BxizsRCd.js → TestEmailModal-D58kYkMV.js} +54 -54
  28. package/dist/{TestEmailPanel-vd2e5HzT.js → TestEmailPanel-BmFVBIQt.js} +1 -1
  29. package/dist/{TitleEditor-CLJ68Ty4.js → TitleEditor-C4BGPXnf.js} +13 -13
  30. package/dist/{TplModal-Q9fDgS1M.js → TplModal-BIDJw4Kj.js} +3 -3
  31. package/dist/{VersionHistoryMenu-eGYVhM4H.js → VersionHistoryMenu-dt_aZQfh.js} +7 -7
  32. package/dist/{VersionHistoryPanels-C7Ntrrfq.js → VersionHistoryPanels-B_5SBRrr.js} +1 -1
  33. package/dist/{VersionPreviewBanner-BbQXnR0M.js → VersionPreviewBanner-DttvOkwd.js} +2 -2
  34. package/dist/{blockTypeIcons-5qD4bB76.js → blockTypeIcons-CzTizYmK.js} +2 -2
  35. package/dist/bundle-stats.json +8 -8
  36. package/dist/{cdn/chunks/ca-D9S-UCfZ.js → ca-YlPDhElv.js} +5 -3
  37. package/dist/cdn/chunks/{AiChatSidebar-dyqqHAcI.js → AiChatSidebar-DeZl9Tk0.js} +54 -54
  38. package/dist/cdn/chunks/AiChatSidebar-DeZl9Tk0.js.map +1 -0
  39. package/dist/cdn/chunks/{AiFeatureMenu-BjVMwhW8.js → AiFeatureMenu-Bv8jMu9p.js} +5 -5
  40. package/dist/cdn/chunks/{AiFeatureMenu-BjVMwhW8.js.map → AiFeatureMenu-Bv8jMu9p.js.map} +1 -1
  41. package/dist/cdn/chunks/{BlockIssueBadge-BJ__oEtm.js → BlockIssueBadge-B6PpoOPv.js} +4 -4
  42. package/dist/cdn/chunks/{BlockIssueBadge-BJ__oEtm.js.map → BlockIssueBadge-B6PpoOPv.js.map} +1 -1
  43. package/dist/cdn/chunks/{BlockPreviewCanvas-B5f26eLE.js → BlockPreviewCanvas-DfEtDosD.js} +3 -3
  44. package/dist/cdn/chunks/{BlockPreviewCanvas-B5f26eLE.js.map → BlockPreviewCanvas-DfEtDosD.js.map} +1 -1
  45. package/dist/cdn/chunks/{CloudHeaderExtras-D5P5IEKA.js → CloudHeaderExtras-Hk98ub-C.js} +4 -4
  46. package/dist/cdn/chunks/{CloudHeaderExtras-D5P5IEKA.js.map → CloudHeaderExtras-Hk98ub-C.js.map} +1 -1
  47. package/dist/cdn/chunks/{CloudPanels-DkmR05nB.js → CloudPanels-Ba3GLmvF.js} +5 -5
  48. package/dist/cdn/chunks/{CloudPanels-DkmR05nB.js.map → CloudPanels-Ba3GLmvF.js.map} +1 -1
  49. package/dist/cdn/chunks/{CollaboratorBar-Yn7KSpt4.js → CollaboratorBar-D2dCQ9gg.js} +4 -4
  50. package/dist/cdn/chunks/{CollaboratorBar-Yn7KSpt4.js.map → CollaboratorBar-D2dCQ9gg.js.map} +1 -1
  51. package/dist/cdn/chunks/{ColorPicker-LcrzgMoW.js → ColorPicker-BaonTCAQ.js} +7 -7
  52. package/dist/cdn/chunks/{ColorPicker-LcrzgMoW.js.map → ColorPicker-BaonTCAQ.js.map} +1 -1
  53. package/dist/cdn/chunks/{CommentsPanel-CntwwocI.js → CommentsPanel-CV2HveQk.js} +2 -2
  54. package/dist/cdn/chunks/{CommentsPanel-CntwwocI.js.map → CommentsPanel-CV2HveQk.js.map} +1 -1
  55. package/dist/cdn/chunks/{CommentsSidebar-BLDKnKy7.js → CommentsSidebar-Dok_vaRc.js} +4 -4
  56. package/dist/cdn/chunks/{CommentsSidebar-BLDKnKy7.js.map → CommentsSidebar-Dok_vaRc.js.map} +1 -1
  57. package/dist/cdn/chunks/{CountdownBlock-B4AfqJwb.js → CountdownBlock-DGDl3ota.js} +2 -2
  58. package/dist/cdn/chunks/{CountdownBlock-B4AfqJwb.js.map → CountdownBlock-DGDl3ota.js.map} +1 -1
  59. package/dist/cdn/chunks/{CountdownToolbar-CA1dpuOI.js → CountdownToolbar-B9Rin64t.js} +3 -3
  60. package/dist/cdn/chunks/{CountdownToolbar-CA1dpuOI.js.map → CountdownToolbar-B9Rin64t.js.map} +1 -1
  61. package/dist/cdn/chunks/{DesignReferenceSidebar-D1Y9Hswe.js → DesignReferenceSidebar-eCuTFak2.js} +4 -4
  62. package/dist/cdn/chunks/{DesignReferenceSidebar-D1Y9Hswe.js.map → DesignReferenceSidebar-eCuTFak2.js.map} +1 -1
  63. package/dist/cdn/chunks/{IssuesPanel-Q62LTqvd.js → IssuesPanel-CP7FEzw7.js} +5 -5
  64. package/dist/cdn/chunks/{IssuesPanel-Q62LTqvd.js.map → IssuesPanel-CP7FEzw7.js.map} +1 -1
  65. package/dist/cdn/chunks/{MediaPanels-D21M6shx.js → MediaPanels-TYrKKHX5.js} +2 -2
  66. package/dist/cdn/chunks/{MediaPanels-D21M6shx.js.map → MediaPanels-TYrKKHX5.js.map} +1 -1
  67. package/dist/cdn/chunks/MergeTagInput-CSIThqkz.js +470 -0
  68. package/dist/cdn/chunks/MergeTagInput-CSIThqkz.js.map +1 -0
  69. package/dist/cdn/chunks/{MergeTagModeToggle-DYxkAGtA.js → MergeTagModeToggle-QGTUIWWo.js} +32 -32
  70. package/dist/cdn/chunks/{MergeTagModeToggle-DYxkAGtA.js.map → MergeTagModeToggle-QGTUIWWo.js.map} +1 -1
  71. package/dist/cdn/chunks/{MergeTagSuggestion-t8Uj00Er.js → MergeTagSuggestion-CY6WK8Eb.js} +3 -3
  72. package/dist/cdn/chunks/MergeTagSuggestion-CY6WK8Eb.js.map +1 -0
  73. package/dist/cdn/chunks/{ParagraphEditor-Bd-GQXee.js → ParagraphEditor-D1tsPv4v.js} +22 -22
  74. package/dist/cdn/chunks/{ParagraphEditor-Bd-GQXee.js.map → ParagraphEditor-D1tsPv4v.js.map} +1 -1
  75. package/dist/cdn/chunks/{RestoreVersionDialog-2X9RpM9A.js → RestoreVersionDialog-BeCxNPLS.js} +4 -4
  76. package/dist/cdn/chunks/{RestoreVersionDialog-2X9RpM9A.js.map → RestoreVersionDialog-BeCxNPLS.js.map} +1 -1
  77. package/dist/cdn/chunks/{RichTextEditorContent-D_rb0rmU.js → RichTextEditorContent-BBxzACFQ.js} +8 -8
  78. package/dist/cdn/chunks/{RichTextEditorContent-D_rb0rmU.js.map → RichTextEditorContent-BBxzACFQ.js.map} +1 -1
  79. package/dist/cdn/chunks/{SaveBlockDialog-CufdTomT.js → SaveBlockDialog-CLgh_g7H.js} +7 -7
  80. package/dist/cdn/chunks/{SaveBlockDialog-CufdTomT.js.map → SaveBlockDialog-CLgh_g7H.js.map} +1 -1
  81. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CqpaNsk7.js → SavedBlocksBrowserModal-B4TcUJJe.js} +8 -8
  82. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CqpaNsk7.js.map → SavedBlocksBrowserModal-B4TcUJJe.js.map} +1 -1
  83. package/dist/cdn/chunks/{SavedBlocksPanels-DpxYxddo.js → SavedBlocksPanels-CaBsHoRC.js} +2 -2
  84. package/dist/cdn/chunks/{SavedBlocksPanels-DpxYxddo.js.map → SavedBlocksPanels-CaBsHoRC.js.map} +1 -1
  85. package/dist/cdn/chunks/{SavedBlocksPickBar-Drpoav1B.js → SavedBlocksPickBar-iG35XCDx.js} +4 -4
  86. package/dist/cdn/chunks/{SavedBlocksPickBar-Drpoav1B.js.map → SavedBlocksPickBar-iG35XCDx.js.map} +1 -1
  87. package/dist/cdn/chunks/{TemplateScoringPanel-DBjUNULq.js → TemplateScoringPanel-DuQJBykq.js} +86 -86
  88. package/dist/cdn/chunks/TemplateScoringPanel-DuQJBykq.js.map +1 -0
  89. package/dist/cdn/chunks/{TestEmailModal-BTNlSW6f.js → TestEmailModal-D6Woss3r.js} +52 -52
  90. package/dist/cdn/chunks/TestEmailModal-D6Woss3r.js.map +1 -0
  91. package/dist/cdn/chunks/{TestEmailPanel-D0A9Zgxr.js → TestEmailPanel-CWQFB7J3.js} +2 -2
  92. package/dist/cdn/chunks/{TestEmailPanel-D0A9Zgxr.js.map → TestEmailPanel-CWQFB7J3.js.map} +1 -1
  93. package/dist/cdn/chunks/{TitleEditor-CrnuIq62.js → TitleEditor-CbY1tgSl.js} +12 -12
  94. package/dist/cdn/chunks/TitleEditor-CbY1tgSl.js.map +1 -0
  95. package/dist/cdn/chunks/{TplModal-DYXrTz42.js → TplModal-CGpp-d_r.js} +4 -4
  96. package/dist/cdn/chunks/{TplModal-DYXrTz42.js.map → TplModal-CGpp-d_r.js.map} +1 -1
  97. package/dist/cdn/chunks/{VersionHistoryMenu-bDGnE4hb.js → VersionHistoryMenu-ByVJXDbK.js} +4 -4
  98. package/dist/cdn/chunks/{VersionHistoryMenu-bDGnE4hb.js.map → VersionHistoryMenu-ByVJXDbK.js.map} +1 -1
  99. package/dist/cdn/chunks/{VersionHistoryPanels-82P0Q0HM.js → VersionHistoryPanels-CQJ5OggF.js} +2 -2
  100. package/dist/cdn/chunks/{VersionHistoryPanels-82P0Q0HM.js.map → VersionHistoryPanels-CQJ5OggF.js.map} +1 -1
  101. package/dist/cdn/chunks/{VersionPreviewBanner-BJiwKkVC.js → VersionPreviewBanner-G4lLbfr8.js} +3 -3
  102. package/dist/cdn/chunks/{VersionPreviewBanner-BJiwKkVC.js.map → VersionPreviewBanner-G4lLbfr8.js.map} +1 -1
  103. package/dist/cdn/chunks/{blockTypeIcons-CNjJSFun.js → blockTypeIcons-CQY-vxdM.js} +2 -2
  104. package/dist/cdn/chunks/{blockTypeIcons-CNjJSFun.js.map → blockTypeIcons-CQY-vxdM.js.map} +1 -1
  105. package/dist/{ca-D9S-UCfZ.js → cdn/chunks/ca-YlPDhElv.js} +7 -1
  106. package/dist/cdn/chunks/{ca-D9S-UCfZ.js.map → ca-YlPDhElv.js.map} +1 -1
  107. package/dist/cdn/chunks/{createCloudRuntime-U-qCH-dq.js → createCloudRuntime-ClvtMBF1.js} +2 -2
  108. package/dist/cdn/chunks/{createCloudRuntime-U-qCH-dq.js.map → createCloudRuntime-ClvtMBF1.js.map} +1 -1
  109. package/dist/cdn/chunks/{de-BUPszLpi.js → de-CONjnzrF.js} +6 -2
  110. package/dist/cdn/chunks/{de-BUPszLpi.js.map → de-CONjnzrF.js.map} +1 -1
  111. package/dist/cdn/chunks/draggable-kbOhCgnk.js.map +1 -1
  112. package/dist/cdn/chunks/{editor-modal-MXgtarMl.js → editor-modal-B6IdQWlf.js} +3 -3
  113. package/dist/cdn/chunks/{editor-modal-MXgtarMl.js.map → editor-modal-B6IdQWlf.js.map} +1 -1
  114. package/dist/cdn/chunks/{en-BbOC5x3w.js → en-BAMooiOF.js} +6 -2
  115. package/dist/cdn/chunks/{en-BbOC5x3w.js.map → en-BAMooiOF.js.map} +1 -1
  116. package/dist/cdn/chunks/en-DjunooBz.js +2 -0
  117. package/dist/{es-0bCDcT9p.js → cdn/chunks/es-I47lHs2m.js} +7 -1
  118. package/dist/cdn/chunks/{es-0bCDcT9p.js.map → es-I47lHs2m.js.map} +1 -1
  119. package/dist/cdn/chunks/{extensions-B8_jnIkD.js → extensions-D2YIhF7u.js} +126 -101
  120. package/dist/cdn/chunks/extensions-D2YIhF7u.js.map +1 -0
  121. package/dist/cdn/chunks/{fr-Brr8mJ9e.js → fr-B8MIKjT4.js} +6 -2
  122. package/dist/cdn/chunks/{fr-Brr8mJ9e.js.map → fr-B8MIKjT4.js.map} +1 -1
  123. package/dist/cdn/chunks/htmlparser-ClUZ6waR.js +1113 -0
  124. package/dist/cdn/chunks/htmlparser-ClUZ6waR.js.map +1 -0
  125. package/dist/cdn/chunks/{icons-BUlqGSgd.js → icons-DdrAicM2.js} +33 -33
  126. package/dist/cdn/chunks/{icons-BUlqGSgd.js.map → icons-DdrAicM2.js.map} +1 -1
  127. package/dist/cdn/chunks/keys-DXYJTLZF.js +12 -0
  128. package/dist/cdn/chunks/keys-DXYJTLZF.js.map +1 -0
  129. package/dist/{nl-Co3_RL0M.js → cdn/chunks/nl-CBLxcb-0.js} +7 -1
  130. package/dist/cdn/chunks/{nl-Co3_RL0M.js.map → nl-CBLxcb-0.js.map} +1 -1
  131. package/dist/{pt-BR-BECez5b0.js → cdn/chunks/pt-BR-CMSRfX7t.js} +7 -1
  132. package/dist/cdn/chunks/{pt-BR-BECez5b0.js.map → pt-BR-CMSRfX7t.js.map} +1 -1
  133. package/dist/cdn/chunks/{src-CUvZWL6Y.js → src-CaNsA_WX.js} +2 -2
  134. package/dist/cdn/chunks/{src-CUvZWL6Y.js.map → src-CaNsA_WX.js.map} +1 -1
  135. package/dist/cdn/chunks/src-Dwgq7hf4.js.map +1 -1
  136. package/dist/cdn/chunks/{src-IGLRmUar.js → src-fn7uy1FD.js} +3 -3
  137. package/dist/cdn/chunks/{src-IGLRmUar.js.map → src-fn7uy1FD.js.map} +1 -1
  138. package/dist/cdn/chunks/{useCloudI18n-DSWSGj-A.js → useCloudI18n-OezCj0cx.js} +2 -2
  139. package/dist/cdn/chunks/{useCloudI18n-DSWSGj-A.js.map → useCloudI18n-OezCj0cx.js.map} +1 -1
  140. package/dist/cdn/chunks/{useEditorCore-Cs7rYVBo.js → useEditorCore-06PtcUi1.js} +482 -473
  141. package/dist/cdn/chunks/useEditorCore-06PtcUi1.js.map +1 -0
  142. package/dist/cdn/chunks/{useEditorRoot-B0zW2nT4.js → useEditorRoot-ByHPMqYT.js} +2 -2
  143. package/dist/cdn/chunks/{useEditorRoot-B0zW2nT4.js.map → useEditorRoot-ByHPMqYT.js.map} +1 -1
  144. package/dist/cdn/chunks/{useI18n-Dlo7R9RA.js → useI18n-BhE7ndNr.js} +2 -2
  145. package/dist/cdn/chunks/{useI18n-Dlo7R9RA.js.map → useI18n-BhE7ndNr.js.map} +1 -1
  146. package/dist/cdn/chunks/useMergeTag-DE2mpy1w.js +60 -0
  147. package/dist/cdn/chunks/useMergeTag-DE2mpy1w.js.map +1 -0
  148. package/dist/cdn/chunks/{usePopoverPosition-ElP3ABaV.js → usePopoverPosition-BPL891uG.js} +2 -2
  149. package/dist/cdn/chunks/{usePopoverPosition-ElP3ABaV.js.map → usePopoverPosition-BPL891uG.js.map} +1 -1
  150. package/dist/cdn/chunks/{useScrollToBlock-nTbWkgaU.js → useScrollToBlock-DwF4pVur.js} +2 -2
  151. package/dist/cdn/chunks/{useScrollToBlock-nTbWkgaU.js.map → useScrollToBlock-DwF4pVur.js.map} +1 -1
  152. package/dist/cdn/editor.css +1 -1
  153. package/dist/cdn/editor.js +894 -857
  154. package/dist/cdn/editor.js.map +1 -1
  155. package/dist/{check-DWtkBzBU.js → check-9xX6RVHz.js} +1 -1
  156. package/dist/{chevron-down-C-Fjxcqj.js → chevron-down-J5hFJ6TL.js} +1 -1
  157. package/dist/{chevron-right-SOkn2d4P.js → chevron-right-BJuo5PQ-.js} +1 -1
  158. package/dist/{chevron-up-lntU1ypp.js → chevron-up-Qfi5k52_.js} +1 -1
  159. package/dist/{circle-alert-CjzUTwy3.js → circle-alert-BiArYmkB.js} +1 -1
  160. package/dist/{clock-pB2QKPsJ.js → clock-BkYJZ7Y0.js} +1 -1
  161. package/dist/{copy-CId1E038.js → copy-BRLUNHwF.js} +1 -1
  162. package/dist/{createCloudRuntime-x5WZm3p8.js → createCloudRuntime-CNFXaTNQ.js} +1 -1
  163. package/dist/{createLucideIcon-Cwf_nTzE.js → createLucideIcon-CDDkF1Tm.js} +5 -5
  164. package/dist/{de-BUPszLpi.js → de-CONjnzrF.js} +5 -1
  165. package/dist/{editor-modal-B_LaQf0s.js → editor-modal-uAEB6xKz.js} +15 -15
  166. package/dist/{en-BbOC5x3w.js → en-BAMooiOF.js} +5 -1
  167. package/dist/en-CQWkDCpm.js +2 -0
  168. package/dist/{cdn/chunks/es-0bCDcT9p.js → es-I47lHs2m.js} +5 -3
  169. package/dist/{extensions-CHOBZRab.js → extensions-CcGj7OfS.js} +129 -104
  170. package/dist/{eye-BuGtFUoJ.js → eye-DwhBOaV8.js} +1 -1
  171. package/dist/{fr-Brr8mJ9e.js → fr-B8MIKjT4.js} +5 -1
  172. package/dist/{image-up-gH4JEpU5.js → image-up-CiyQNZBt.js} +1 -1
  173. package/dist/index.d.ts +15 -0
  174. package/dist/{info-BQ60P82u.js → info-D6A1qEiF.js} +1 -1
  175. package/dist/keys-DD1rl72F.js +10 -0
  176. package/dist/{link-3R8it3J7.js → link-tKGmYWsB.js} +1 -1
  177. package/dist/{list-Ccdgj46T.js → list-DjZQRpeI.js} +1 -1
  178. package/dist/{loader-circle-B_tAD4k6.js → loader-circle-D9ZL3Sv0.js} +1 -1
  179. package/dist/{message-circle-P-KSc6V0.js → message-circle-KTHxCcpB.js} +1 -1
  180. package/dist/{cdn/chunks/nl-Co3_RL0M.js → nl-CBLxcb-0.js} +5 -3
  181. package/dist/{pencil-9ZiwqS4r.js → pencil-Bq-nbQ7F.js} +1 -1
  182. package/dist/{plus-BwJEzCaO.js → plus-CRMnR4IG.js} +1 -1
  183. package/dist/{cdn/chunks/pt-BR-BECez5b0.js → pt-BR-CMSRfX7t.js} +5 -3
  184. package/dist/{refresh-cw-DEgfb2FK.js → refresh-cw-D7bYS5tm.js} +1 -1
  185. package/dist/{search-DqQ8Li5E.js → search-DUo0YwPz.js} +1 -1
  186. package/dist/{send-CE6uvqop.js → send-DaVMQphu.js} +1 -1
  187. package/dist/{shield-check-DhD1Z3rd.js → shield-check-DxaaurL9.js} +1 -1
  188. package/dist/{sparkles-R0ZQHa6F.js → sparkles-D6T6k30e.js} +1 -1
  189. package/dist/style.css +1 -1
  190. package/dist/templatical-editor.js +1156 -1119
  191. package/dist/{text-align-start-DSux2UNn.js → text-align-start-vreFpmCX.js} +1 -1
  192. package/dist/{trash-Cf_SqsER.js → trash-DBv8MGY6.js} +1 -1
  193. package/dist/{triangle-alert-C6tGa6jw.js → triangle-alert-CmNS2LLv.js} +1 -1
  194. package/dist/{upload-DusKjpVr.js → upload-DDB9Fs0P.js} +1 -1
  195. package/dist/{useCloudI18n-BLyh_e2T.js → useCloudI18n-C1wuXik6.js} +1 -1
  196. package/dist/{useEditorCore-DhlKOYwe.js → useEditorCore-jfwgLThK.js} +1077 -1068
  197. package/dist/{useEditorRoot-ds57-l6F.js → useEditorRoot-eVv4doqZ.js} +1 -1
  198. package/dist/{useI18n-BbdxxpOE.js → useI18n-VOtdfENx.js} +1 -1
  199. package/dist/useMergeTag-CQM9pFca.js +58 -0
  200. package/dist/{usePopoverPosition-CprM5p-c.js → usePopoverPosition-gZjRywai.js} +1 -1
  201. package/dist/{useScrollToBlock-BTFw0b9O.js → useScrollToBlock-C0Ehnyl4.js} +2 -2
  202. package/dist/{x-D_-42Ukq.js → x-B7sgO_z8.js} +1 -1
  203. package/package.json +10 -10
  204. package/dist/cdn/chunks/AiChatSidebar-dyqqHAcI.js.map +0 -1
  205. package/dist/cdn/chunks/MergeTagInput-l7paaAml.js +0 -419
  206. package/dist/cdn/chunks/MergeTagInput-l7paaAml.js.map +0 -1
  207. package/dist/cdn/chunks/MergeTagSuggestion-t8Uj00Er.js.map +0 -1
  208. package/dist/cdn/chunks/TemplateScoringPanel-DBjUNULq.js.map +0 -1
  209. package/dist/cdn/chunks/TestEmailModal-BTNlSW6f.js.map +0 -1
  210. package/dist/cdn/chunks/TitleEditor-CrnuIq62.js.map +0 -1
  211. package/dist/cdn/chunks/en-C9U7N77n.js +0 -2
  212. package/dist/cdn/chunks/extensions-B8_jnIkD.js.map +0 -1
  213. package/dist/cdn/chunks/htmlparser-DTML8Gvz.js +0 -1007
  214. package/dist/cdn/chunks/htmlparser-DTML8Gvz.js.map +0 -1
  215. package/dist/cdn/chunks/keys-DBFhDFng.js +0 -12
  216. package/dist/cdn/chunks/keys-DBFhDFng.js.map +0 -1
  217. package/dist/cdn/chunks/useEditorCore-Cs7rYVBo.js.map +0 -1
  218. package/dist/cdn/chunks/useMergeTag-BYAifvh8.js +0 -46
  219. package/dist/cdn/chunks/useMergeTag-BYAifvh8.js.map +0 -1
  220. package/dist/en-DcmpWV53.js +0 -2
  221. package/dist/keys-DQA2i1k1.js +0 -10
  222. package/dist/useMergeTag-DlvOBW_B.js +0 -44
@@ -1,43 +1,43 @@
1
- import { $ as e, A as t, At as n, B as r, D as i, E as a, F as o, H as s, J as c, K as l, M as u, N as d, O as f, R as p, S as m, V as h, W as g, X as _, Y as v, Z as y, _ as b, at as x, b as S, c as C, d as w, g as T, h as E, it as D, j as O, jt as k, k as A, kt as j, l as M, nt as N, ot as ee, r as P, rt as te, s as F, u as I, v as L, y as ne } from "./vue.runtime.esm-bundler-DShF3P6k.js";
2
- import { c as R, o as re, s as ie } from "./runtime-dom.esm-bundler-PnoZU512.js";
3
- import { A as ae, B as oe, C as se, D as ce, E as le, F as ue, H as de, I as fe, L as pe, M as me, N as he, O as ge, P as _e, R as ve, S as ye, T as be, U as xe, V as Se, W as Ce, _ as we, a as Te, b as Ee, d as De, f as Oe, g as ke, h as Ae, i as je, k as Me, l as Ne, m as Pe, n as Fe, o as Ie, p as Le, r as Re, s as ze, t as Be, u as Ve, v as He, w as Ue, x as We, y as Ge, z as Ke } from "./dist-tGkjkX-v.js";
4
- import { _ as qe, h as Je, v as Ye, y as Xe } from "./dist-D8i1ixHK.js";
5
- import { a as Ze, c as Qe, i as $e, r as et } from "./dist-DBirAJIs.js";
6
- import { A as tt, C as nt, D as rt, E as it, F as at, G as ot, H as st, I as ct, J as lt, K as ut, L as dt, M as ft, N as pt, O as mt, P as ht, R as gt, S as _t, T as vt, U as yt, W as bt, Y as xt, _ as St, a as Ct, b as wt, c as Tt, d as Et, f as Dt, g as Ot, h as kt, j as At, k as jt, l as Mt, m as Nt, n as Pt, o as Ft, p as It, q as Lt, r as Rt, s as zt, v as Bt, w as Vt, x as Ht, y as Ut, z as Wt } from "./keys-DQA2i1k1.js";
7
- import { t as Gt } from "./useI18n-BbdxxpOE.js";
8
- import { t as Kt } from "./logger-BBlvSn6q.js";
9
- import { a as qt, i as Jt, o as Yt, r as Xt, t as Zt } from "./usePopoverPosition-CprM5p-c.js";
10
- import { t as Qt } from "./createLucideIcon-Cwf_nTzE.js";
11
- import { t as $t } from "./copy-CId1E038.js";
12
- import { t as en } from "./loader-circle-B_tAD4k6.js";
13
- import { t as tn } from "./message-circle-P-KSc6V0.js";
14
- import { t as nn } from "./trash-Cf_SqsER.js";
15
- import { t as rn } from "./triangle-alert-C6tGa6jw.js";
16
- import { t as an } from "./upload-DusKjpVr.js";
17
- import { t as on } from "./LoadingTrack-BlTL4zFv.js";
18
- import { t as sn } from "./_plugin-vue_export-helper-B3ysoDQm.js";
19
- import { t as cn } from "./useEditorRoot-ds57-l6F.js";
20
- import "./useCloudI18n-BLyh_e2T.js";
21
- import { t as ln } from "./useMergeTag-DlvOBW_B.js";
22
- import { t as un } from "./useAliveFlag-oyByIcjy.js";
1
+ import { $ as e, A as t, At as n, B as r, D as i, E as a, F as o, H as s, J as c, K as l, M as u, N as d, O as f, R as p, S as m, V as h, W as g, X as _, Y as v, Z as y, _ as b, at as x, b as S, c as C, d as w, g as T, h as E, it as D, j as O, jt as k, k as A, kt as j, l as M, nt as ee, ot as te, r as N, rt as ne, s as P, u as F, v as I, y as re } from "./vue.runtime.esm-bundler-DShF3P6k.js";
2
+ import { c as L, o as ie, s as ae } from "./runtime-dom.esm-bundler-PnoZU512.js";
3
+ import { A as oe, B as se, C as ce, D as le, E as ue, F as de, H as fe, I as pe, L as me, M as he, N as ge, O as _e, P as ve, R as ye, S as be, T as xe, U as Se, V as Ce, W as we, _ as Te, a as Ee, b as De, d as Oe, f as ke, g as Ae, h as je, i as Me, k as Ne, l as Pe, m as Fe, n as Ie, o as Le, p as Re, r as ze, s as Be, t as Ve, u as He, v as Ue, w as We, x as Ge, y as Ke, z as qe } from "./dist-tGkjkX-v.js";
4
+ import { _ as Je, h as Ye, v as Xe, y as Ze } from "./dist-D8i1ixHK.js";
5
+ import { a as Qe, c as $e, i as et, r as tt } from "./dist-DBirAJIs.js";
6
+ import { A as nt, B as rt, C as it, D as at, E as ot, F as st, G as ct, I as lt, J as ut, K as dt, L as ft, M as pt, N as mt, O as ht, P as gt, R as _t, S as vt, T as yt, V as bt, W as xt, X as St, Y as Ct, Z as wt, _ as Tt, a as Et, b as Dt, c as Ot, d as kt, f as At, g as jt, h as Mt, j as Nt, k as Pt, l as Ft, m as It, n as Lt, o as Rt, p as zt, q as Bt, r as Vt, s as Ht, v as Ut, w as Wt, x as Gt, y as Kt, z as qt } from "./keys-DD1rl72F.js";
7
+ import { t as Jt } from "./useI18n-VOtdfENx.js";
8
+ import { t as Yt } from "./logger-BBlvSn6q.js";
9
+ import { a as Xt, i as Zt, o as Qt, r as $t, t as en } from "./usePopoverPosition-gZjRywai.js";
10
+ import { t as tn } from "./createLucideIcon-CDDkF1Tm.js";
11
+ import { t as nn } from "./copy-BRLUNHwF.js";
12
+ import { t as rn } from "./loader-circle-D9ZL3Sv0.js";
13
+ import { t as an } from "./message-circle-KTHxCcpB.js";
14
+ import { t as on } from "./trash-DBv8MGY6.js";
15
+ import { t as sn } from "./triangle-alert-CmNS2LLv.js";
16
+ import { t as cn } from "./upload-DDB9Fs0P.js";
17
+ import { t as ln } from "./LoadingTrack-BlTL4zFv.js";
18
+ import { t as un } from "./_plugin-vue_export-helper-B3ysoDQm.js";
19
+ import { t as dn } from "./useEditorRoot-eVv4doqZ.js";
20
+ import "./useCloudI18n-C1wuXik6.js";
21
+ import { t as fn } from "./useMergeTag-CQM9pFca.js";
22
+ import { t as pn } from "./useAliveFlag-oyByIcjy.js";
23
23
  //#region ../core/dist/index.js
24
- function dn(e) {
24
+ function mn(e) {
25
25
  return e instanceof Error ? e : Error(String(e), { cause: e });
26
26
  }
27
- function fn(e, t) {
27
+ function hn(e, t) {
28
28
  try {
29
29
  t();
30
30
  } catch (t) {
31
- e?.(dn(t));
31
+ e?.(mn(t));
32
32
  }
33
33
  }
34
- function pn(e) {
34
+ function gn(e) {
35
35
  return e === "1" ? 1 : e === "3" ? 3 : 2;
36
36
  }
37
- function mn(e) {
37
+ function _n(e) {
38
38
  let t = v({
39
39
  template: null,
40
- content: e.content ?? Pe(e.defaultFontFamily, e.templateDefaults),
40
+ content: e.content ?? Fe(e.defaultFontFamily, e.templateDefaults),
41
41
  selectedBlockId: null,
42
42
  viewport: "desktop",
43
43
  darkMode: !1,
@@ -132,7 +132,7 @@ function mn(e) {
132
132
  if (u(n)) return;
133
133
  let r = o(t.content.blocks, n);
134
134
  if (r && r.type === "section") {
135
- if (i < 0 || i >= pn(r.columns)) return;
135
+ if (i < 0 || i >= gn(r.columns)) return;
136
136
  r.children[i] = r.children[i] || [];
137
137
  let t = r.children[i];
138
138
  a !== void 0 && a < t.length ? t.splice(a, 0, e) : t.push(e);
@@ -165,7 +165,7 @@ function mn(e) {
165
165
  let d;
166
166
  if (i) {
167
167
  let e = o(t.content.blocks, i);
168
- if (!e || e.type !== "section" || a < 0 || a >= pn(e.columns)) return;
168
+ if (!e || e.type !== "section" || a < 0 || a >= gn(e.columns)) return;
169
169
  e.children[a] = e.children[a] || [], d = e.children[a];
170
170
  } else d = t.content.blocks;
171
171
  let [f] = s.blocks.splice(c, 1);
@@ -175,10 +175,10 @@ function mn(e) {
175
175
  r();
176
176
  }
177
177
  function E(e, t) {
178
- throw new ze(`[Templatical] Templates: ${e} ${t}`);
178
+ throw new Be(`[Templatical] Templates: ${e} ${t}`);
179
179
  }
180
180
  function D(t) {
181
- fn(e.onError, t);
181
+ hn(e.onError, t);
182
182
  }
183
183
  function O(t) {
184
184
  let { templates: n } = e;
@@ -248,7 +248,7 @@ function mn(e) {
248
248
  }
249
249
  return D(() => i.onSaved?.(c, { trigger: r })), c;
250
250
  }
251
- function N() {
251
+ function ee() {
252
252
  return t.template?.id !== void 0;
253
253
  }
254
254
  return {
@@ -273,14 +273,14 @@ function mn(e) {
273
273
  create: A,
274
274
  load: j,
275
275
  save: M,
276
- hasTemplate: N
276
+ hasTemplate: ee
277
277
  };
278
278
  }
279
- var hn = 50, gn = 300, _n = 1500;
280
- function vn(e) {
281
- let { content: t, setContent: n, isRemoteOperation: r, maxSize: i = hn } = e, a = y([]), o = y([]), c = y(!1), l = null, u = null, d = s(() => a.value.length > 0), f = s(() => o.value.length > 0);
279
+ var vn = 50, yn = 300, bn = 1500;
280
+ function xn(e) {
281
+ let { content: t, setContent: n, isRemoteOperation: r, maxSize: i = vn } = e, a = y([]), o = y([]), c = y(!1), l = null, u = null, d = s(() => a.value.length > 0), f = s(() => o.value.length > 0);
282
282
  function p() {
283
- return de(t.value);
283
+ return fe(t.value);
284
284
  }
285
285
  function m(e) {
286
286
  a.value.push(e), a.value.length > i && a.value.splice(0, a.value.length - i);
@@ -296,21 +296,21 @@ function vn(e) {
296
296
  if (u && u.blockId === e) {
297
297
  clearTimeout(u.timeoutId), u.timeoutId = setTimeout(() => {
298
298
  u = null;
299
- }, gn);
299
+ }, yn);
300
300
  return;
301
301
  }
302
302
  h(), m(p()), o.value = [], u = {
303
303
  blockId: e,
304
304
  timeoutId: setTimeout(() => {
305
305
  u = null;
306
- }, gn)
306
+ }, yn)
307
307
  };
308
308
  }
309
309
  }
310
310
  function v() {
311
311
  c.value = !0, l && clearTimeout(l), l = setTimeout(() => {
312
312
  c.value = !1, l = null;
313
- }, _n);
313
+ }, bn);
314
314
  }
315
315
  function b() {
316
316
  if (a.value.length === 0) return;
@@ -342,33 +342,33 @@ function vn(e) {
342
342
  destroy: C
343
343
  };
344
344
  }
345
- function yn(e) {
345
+ function Sn(e) {
346
346
  e.type === "table" ? e.rows = e.rows.map((e) => ({
347
347
  ...e,
348
- id: ce(),
348
+ id: le(),
349
349
  cells: e.cells.map((e) => ({
350
350
  ...e,
351
- id: ce()
351
+ id: le()
352
352
  }))
353
353
  })) : e.type === "social" ? e.icons = e.icons.map((e) => ({
354
354
  ...e,
355
- id: ce()
355
+ id: le()
356
356
  })) : e.type === "menu" && (e.items = e.items.map((e) => ({
357
357
  ...e,
358
- id: ce()
358
+ id: le()
359
359
  })));
360
360
  }
361
- function bn(e) {
361
+ function Cn(e) {
362
362
  let { addBlock: t, removeBlock: n, updateBlock: r, selectBlock: i, findBlockLocation: a } = e;
363
363
  function o(n, r, a) {
364
- let o = typeof e.blockDefaults == "function" ? e.blockDefaults() : e.blockDefaults, s = Ve(n, o);
364
+ let o = typeof e.blockDefaults == "function" ? e.blockDefaults() : e.blockDefaults, s = He(n, o);
365
365
  return t(s, r, a), i(s.id), s;
366
366
  }
367
367
  function s(e, n, r) {
368
368
  let o = JSON.parse(JSON.stringify(e));
369
- if (o.id = ce(), yn(o), o.type === "section" && (o.children = o.children.map((e) => e.map((e) => {
369
+ if (o.id = le(), Sn(o), o.type === "section" && (o.children = o.children.map((e) => e.map((e) => {
370
370
  let t = JSON.parse(JSON.stringify(e));
371
- return t.id = ce(), yn(t), t;
371
+ return t.id = le(), Sn(t), t;
372
372
  }))), n !== void 0 || r !== void 0) t(o, n, r);
373
373
  else {
374
374
  let i = a?.(e.id) ?? null;
@@ -389,9 +389,9 @@ function bn(e) {
389
389
  updateBlockProperty: l
390
390
  };
391
391
  }
392
- var xn = 2e3;
393
- function Sn(e) {
394
- let { content: t, isDirty: n, onChange: r, debounce: i = xn, enabled: a = !0 } = e, o = null, s = !1;
392
+ var wn = 2e3;
393
+ function Tn(e) {
394
+ let { content: t, isDirty: n, onChange: r, debounce: i = wn, enabled: a = !0 } = e, o = null, s = !1;
395
395
  function c() {
396
396
  return typeof a == "function" ? a() : a;
397
397
  }
@@ -412,7 +412,7 @@ function Sn(e) {
412
412
  o = null, c() && !s && n() && r(JSON.parse(JSON.stringify(t.value)));
413
413
  }, i));
414
414
  }
415
- let m = ee(t, () => {
415
+ let m = te(t, () => {
416
416
  p();
417
417
  }, { deep: !0 });
418
418
  function h() {
@@ -426,7 +426,7 @@ function Sn(e) {
426
426
  destroy: h
427
427
  };
428
428
  }
429
- function Cn(e) {
429
+ function En(e) {
430
430
  let t = v(/* @__PURE__ */ new Set()), n = s(() => t.size > 0);
431
431
  function r(e) {
432
432
  return t.has(e);
@@ -444,7 +444,7 @@ function Cn(e) {
444
444
  hasHiddenBlocks: n
445
445
  };
446
446
  }
447
- function wn(e) {
447
+ function Dn(e) {
448
448
  let t = y(!1), n = y(!1), r = s(() => !!e.definition.value?.dataSource), i = s(() => r.value && !e.block.value.dataSourceFetched);
449
449
  async function a() {
450
450
  let r = e.definition.value;
@@ -474,7 +474,7 @@ function wn(e) {
474
474
  needsFetch: i
475
475
  };
476
476
  }
477
- function Tn(e, t) {
477
+ function On(e, t) {
478
478
  let n = e.addBlock, r = e.removeBlock, i = e.moveBlock, a = e.updateBlock, o = e.updateSettings;
479
479
  e.addBlock = (r, i, a, o) => {
480
480
  i && e.isBlockLocked(i) || (t.record(), n(r, i, a, o));
@@ -488,15 +488,15 @@ function Tn(e, t) {
488
488
  t.record(), o(e);
489
489
  };
490
490
  }
491
- function En(e) {
492
- let { provider: t } = e, n = y([]), r = y(!1), i = F(() => {
491
+ function kn(e) {
492
+ let { provider: t } = e, n = y([]), r = y(!1), i = P(() => {
493
493
  let e = /* @__PURE__ */ new Set();
494
494
  for (let t of n.value) {
495
495
  let n = t.category?.trim();
496
496
  n && e.add(n);
497
497
  }
498
498
  return [...e].sort((e, t) => e.localeCompare(t));
499
- }), a = F(() => typeof t.create == "function"), o = F(() => typeof t.update == "function"), s = F(() => typeof t.delete == "function");
499
+ }), a = P(() => typeof t.create == "function"), o = P(() => typeof t.update == "function"), s = P(() => typeof t.delete == "function");
500
500
  function c(e) {
501
501
  return o.value && e.canUpdate !== !1;
502
502
  }
@@ -504,10 +504,10 @@ function En(e) {
504
504
  return s.value && e.canDelete !== !1;
505
505
  }
506
506
  function u(e, t) {
507
- throw new ze(`[Templatical] Saved blocks: ${e} is ${t}. Check the capability before calling — the editor's own UI hides the action.`);
507
+ throw new Be(`[Templatical] Saved blocks: ${e} is ${t}. Check the capability before calling — the editor's own UI hides the action.`);
508
508
  }
509
509
  function d(t) {
510
- fn(e.onError, t);
510
+ hn(e.onError, t);
511
511
  }
512
512
  async function f(i) {
513
513
  r.value = !0;
@@ -574,9 +574,9 @@ function En(e) {
574
574
  remove: h
575
575
  };
576
576
  }
577
- var Dn = "templatical:saved-blocks";
578
- function On(e = {}) {
579
- let t = e.key ?? Dn;
577
+ var An = "templatical:saved-blocks";
578
+ function jn(e = {}) {
579
+ let t = e.key ?? An;
580
580
  function n() {
581
581
  if (typeof localStorage > "u") throw Error("[Templatical] createLocalStorageSavedBlocksProvider requires a browser environment with localStorage. Supply your own SavedBlocksProvider for server-side or non-browser use.");
582
582
  return localStorage;
@@ -601,7 +601,7 @@ function On(e = {}) {
601
601
  },
602
602
  async create(e) {
603
603
  let t = (/* @__PURE__ */ new Date()).toISOString(), n = {
604
- id: ce(),
604
+ id: le(),
605
605
  name: e.name,
606
606
  content: e.content,
607
607
  ...e.category ? { category: e.category } : {},
@@ -627,9 +627,9 @@ function On(e = {}) {
627
627
  }
628
628
  };
629
629
  }
630
- var kn = "templatical:media", An = 50;
631
- function jn(e = {}) {
632
- let t = e.key ?? kn;
630
+ var Mn = "templatical:media", Nn = 50;
631
+ function Pn(e = {}) {
632
+ let t = e.key ?? Mn;
633
633
  function n() {
634
634
  if (typeof localStorage > "u") throw Error("[Templatical] createLocalStorageMediaProvider requires a browser environment with localStorage. Supply your own MediaProvider for server-side or non-browser use.");
635
635
  return localStorage;
@@ -666,12 +666,12 @@ function jn(e = {}) {
666
666
  let t = r(), n = e?.search?.trim().toLowerCase(), i = n ? t.filter((e) => {
667
667
  let t = e.filename?.toLowerCase() ?? "", r = e.alt?.toLowerCase() ?? "";
668
668
  return t.includes(n) || r.includes(n);
669
- }) : t, a = e?.cursor ? Number.parseInt(e.cursor, 10) : 0, o = Number.isFinite(a) && a > 0 ? a : 0, s = i.slice(o, o + An), c = { items: s }, l = o + s.length;
669
+ }) : t, a = e?.cursor ? Number.parseInt(e.cursor, 10) : 0, o = Number.isFinite(a) && a > 0 ? a : 0, s = i.slice(o, o + Nn), c = { items: s }, l = o + s.length;
670
670
  return l < i.length && (c.nextCursor = String(l)), c;
671
671
  },
672
672
  async create(e) {
673
673
  let t = await a(e.file), n = (/* @__PURE__ */ new Date()).toISOString(), o = {
674
- id: ce(),
674
+ id: le(),
675
675
  url: t,
676
676
  filename: e.filename || e.file.name,
677
677
  createdAt: n,
@@ -706,18 +706,18 @@ function jn(e = {}) {
706
706
  storage: !1
707
707
  };
708
708
  }
709
- function Mn(e) {
710
- let { provider: t, getTemplateId: n } = e, r = y([]), i = y(!1), a = y(void 0), o = y(!1), s = /* @__PURE__ */ new Map(), c = F(() => typeof t.create == "function"), l = F(() => typeof t.restore == "function");
709
+ function Fn(e) {
710
+ let { provider: t, getTemplateId: n } = e, r = y([]), i = y(!1), a = y(void 0), o = y(!1), s = /* @__PURE__ */ new Map(), c = P(() => typeof t.create == "function"), l = P(() => typeof t.restore == "function");
711
711
  function u(e) {
712
712
  let t = n();
713
- if (!t) throw new ze(`[Templatical] Version history: ${e} needs a template. Call create() or load() first.`);
713
+ if (!t) throw new Be(`[Templatical] Version history: ${e} needs a template. Call create() or load() first.`);
714
714
  return t;
715
715
  }
716
716
  function d(e) {
717
- throw new ze(`[Templatical] Version history: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
717
+ throw new Be(`[Templatical] Version history: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
718
718
  }
719
719
  function f(t) {
720
- fn(e.onError, t);
720
+ hn(e.onError, t);
721
721
  }
722
722
  async function p(n) {
723
723
  let o = u("list");
@@ -784,24 +784,24 @@ function Mn(e) {
784
784
  restore: _
785
785
  };
786
786
  }
787
- function Nn(e) {
788
- let { provider: t, getTemplateId: n, getUser: r } = e, i = y([]), a = y(!1), o = y(!1), s = F(() => typeof t.create == "function"), c = F(() => typeof t.update == "function"), l = F(() => typeof t.delete == "function"), u = F(() => typeof t.setResolved == "function"), d = F(() => i.value.reduce((e, t) => e + 1 + (t.replies?.length ?? 0), 0)), f = F(() => i.value.filter((e) => !e.resolvedAt).length), p = F(() => {
787
+ function In(e) {
788
+ let { provider: t, getTemplateId: n, getUser: r } = e, i = y([]), a = y(!1), o = y(!1), s = P(() => typeof t.create == "function"), c = P(() => typeof t.update == "function"), l = P(() => typeof t.delete == "function"), u = P(() => typeof t.setResolved == "function"), d = P(() => i.value.reduce((e, t) => e + 1 + (t.replies?.length ?? 0), 0)), f = P(() => i.value.filter((e) => !e.resolvedAt).length), p = P(() => {
789
789
  let e = /* @__PURE__ */ new Map();
790
790
  for (let t of i.value) t.blockId && e.set(t.blockId, (e.get(t.blockId) ?? 0) + 1 + (t.replies?.length ?? 0));
791
791
  return e;
792
792
  });
793
793
  function m(e) {
794
794
  let t = n();
795
- if (!t) throw new ze(`[Templatical] Comments: ${e} needs a template. Call create() or load() first.`);
795
+ if (!t) throw new Be(`[Templatical] Comments: ${e} needs a template. Call create() or load() first.`);
796
796
  return t;
797
797
  }
798
798
  function h(e) {
799
799
  let t = r();
800
- if (!t) throw new ze(`[Templatical] Comments: ${e} needs to know who is commenting. Pass init({ user: { id, name } }) — an unattributed comment is not written.`);
800
+ if (!t) throw new Be(`[Templatical] Comments: ${e} needs to know who is commenting. Pass init({ user: { id, name } }) — an unattributed comment is not written.`);
801
801
  return t;
802
802
  }
803
803
  function g(e) {
804
- throw new ze(`[Templatical] Comments: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
804
+ throw new Be(`[Templatical] Comments: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
805
805
  }
806
806
  function _(e) {
807
807
  for (let t of i.value) {
@@ -815,11 +815,11 @@ function Nn(e) {
815
815
  return t !== null && e.author.id === t.id;
816
816
  }
817
817
  function b(t) {
818
- let n = dn(t);
818
+ let n = mn(t);
819
819
  throw e.onError?.(n), n;
820
820
  }
821
821
  function x(t) {
822
- fn(e.onError, t);
822
+ hn(e.onError, t);
823
823
  }
824
824
  function S(e, t, n) {
825
825
  return [
@@ -932,7 +932,7 @@ function Nn(e) {
932
932
  function M(e) {
933
933
  w(e) && x(() => (e.resolvedAt ? t.onResolved : t.onUpdated)?.(e, { origin: "remote" }));
934
934
  }
935
- function N(e, n) {
935
+ function ee(e, n) {
936
936
  let r = T(e, n);
937
937
  r && x(() => t.onDeleted?.(r, { origin: "remote" }));
938
938
  }
@@ -956,10 +956,10 @@ function Nn(e) {
956
956
  isOwn: v,
957
957
  applyRemoteCreate: j,
958
958
  applyRemoteUpdate: M,
959
- applyRemoteDelete: N
959
+ applyRemoteDelete: ee
960
960
  };
961
961
  }
962
- function Pn(e) {
962
+ function Ln(e) {
963
963
  let { comments: t, provider: n, getTemplateId: r } = e, { subscribe: i } = n;
964
964
  if (typeof i != "function") return;
965
965
  let a = null;
@@ -982,27 +982,27 @@ function Pn(e) {
982
982
  }
983
983
  //#endregion
984
984
  //#region src/utils/activeEditorTracker.ts
985
- var Fn = /* @__PURE__ */ new Set(), In = 0, Ln = 0;
986
- function Rn() {
987
- let e = ++Ln;
988
- return Fn.add(e), In === 0 && (In = e), {
985
+ var Rn = /* @__PURE__ */ new Set(), zn = 0, Bn = 0;
986
+ function Vn() {
987
+ let e = ++Bn;
988
+ return Rn.add(e), zn === 0 && (zn = e), {
989
989
  id: e,
990
- isActive: () => Fn.size <= 1 || In === e,
990
+ isActive: () => Rn.size <= 1 || zn === e,
991
991
  claim: () => {
992
- In = e;
992
+ zn = e;
993
993
  },
994
994
  dispose: () => {
995
- if (Fn.delete(e), In === e) {
996
- let e = Array.from(Fn);
997
- In = e[e.length - 1] ?? 0;
995
+ if (Rn.delete(e), zn === e) {
996
+ let e = Array.from(Rn);
997
+ zn = e[e.length - 1] ?? 0;
998
998
  }
999
999
  }
1000
1000
  };
1001
1001
  }
1002
1002
  //#endregion
1003
1003
  //#region src/composables/usePreviewResolution.ts
1004
- var zn = 500;
1005
- function Bn(e) {
1004
+ var Hn = 500;
1005
+ function Un(e) {
1006
1006
  let t = typeof e.resolvePreview == "function", n = y(null), r = y(!1), i = y(!1), a = 0, o = null;
1007
1007
  function s() {
1008
1008
  o !== null && (clearTimeout(o), o = null);
@@ -1013,13 +1013,13 @@ function Bn(e) {
1013
1013
  let o = ++a;
1014
1014
  r.value = !0;
1015
1015
  let s = {
1016
- content: de(e.getContent()),
1016
+ content: fe(e.getContent()),
1017
1017
  ...e.getRecipient?.() === void 0 ? {} : { recipient: e.getRecipient() }
1018
1018
  };
1019
1019
  try {
1020
1020
  let e = await t(s);
1021
1021
  if (o !== a) return;
1022
- if (!pe(e)) {
1022
+ if (!me(e)) {
1023
1023
  i.value = !0;
1024
1024
  return;
1025
1025
  }
@@ -1039,7 +1039,7 @@ function Bn(e) {
1039
1039
  }
1040
1040
  o = setTimeout(() => {
1041
1041
  o = null, l();
1042
- }, zn);
1042
+ }, Hn);
1043
1043
  }
1044
1044
  }
1045
1045
  return p(() => [e.isActive(), e.getRecipient?.()], ([e]) => {
@@ -1052,16 +1052,16 @@ function Bn(e) {
1052
1052
  s(), a++;
1053
1053
  }), {
1054
1054
  isConfigured: t,
1055
- content: F(() => n.value ?? e.getContent()),
1055
+ content: P(() => n.value ?? e.getContent()),
1056
1056
  isResolving: r,
1057
- isInitialResolve: F(() => r.value && n.value === null),
1057
+ isInitialResolve: P(() => r.value && n.value === null),
1058
1058
  hasFailed: i,
1059
- supersedesSamples: F(() => t)
1059
+ supersedesSamples: P(() => t)
1060
1060
  };
1061
1061
  }
1062
1062
  //#endregion
1063
1063
  //#region src/composables/useImageUrlResolver.ts
1064
- function Vn(e) {
1064
+ function Wn(e) {
1065
1065
  let t = v(/* @__PURE__ */ new Map()), n = /* @__PURE__ */ new Set();
1066
1066
  function r(e) {
1067
1067
  return t.get(e);
@@ -1094,8 +1094,8 @@ function Vn(e) {
1094
1094
  lookup: a
1095
1095
  };
1096
1096
  }
1097
- function Hn(e) {
1098
- let t = m(Ht, null), n = F(e);
1097
+ function Gn(e) {
1098
+ let t = m(Gt, null), n = P(e);
1099
1099
  if (!t) return n;
1100
1100
  let r;
1101
1101
  function i() {
@@ -1115,7 +1115,7 @@ function Hn(e) {
1115
1115
  r = void 0, t.lookup(e);
1116
1116
  }, 300);
1117
1117
  }
1118
- }, { immediate: !0 }), F(() => {
1118
+ }, { immediate: !0 }), P(() => {
1119
1119
  let e = n.value;
1120
1120
  if (!e) return e;
1121
1121
  let r = t.get(e);
@@ -1124,37 +1124,38 @@ function Hn(e) {
1124
1124
  }
1125
1125
  //#endregion
1126
1126
  //#region src/composables/useMergeTagPicker.ts
1127
- function Un() {
1128
- let e = y(!1), t = y([]), n = null;
1129
- function r(r) {
1130
- if (n) {
1131
- let e = n;
1132
- n = null, e(null);
1127
+ function Kn() {
1128
+ let e = y(!1), t = y([]), n = y(null), r = null;
1129
+ function i(i, a) {
1130
+ if (r) {
1131
+ let e = r;
1132
+ r = null, e(null);
1133
1133
  }
1134
- return t.value = r, e.value = !0, new Promise((e) => {
1135
- n = e;
1134
+ return t.value = i, n.value = a?.current ?? null, e.value = !0, new Promise((e) => {
1135
+ r = e;
1136
1136
  });
1137
1137
  }
1138
- function i(r) {
1139
- let i = n;
1140
- n = null, e.value = !1, t.value = [], i && i(r);
1138
+ function a(i) {
1139
+ let a = r;
1140
+ r = null, e.value = !1, t.value = [], n.value = null, a && a(i);
1141
1141
  }
1142
1142
  return g() && c(() => {
1143
- if (n) {
1144
- let e = n;
1145
- n = null, e(null);
1143
+ if (r) {
1144
+ let e = r;
1145
+ r = null, e(null);
1146
1146
  }
1147
- e.value = !1, t.value = [];
1147
+ e.value = !1, t.value = [], n.value = null;
1148
1148
  }), {
1149
1149
  isOpen: e,
1150
1150
  tags: t,
1151
- open: r,
1152
- resolve: i
1151
+ current: n,
1152
+ open: i,
1153
+ resolve: a
1153
1154
  };
1154
1155
  }
1155
1156
  //#endregion
1156
1157
  //#region src/composables/useLogicTagPicker.ts
1157
- function Wn() {
1158
+ function qn() {
1158
1159
  let e = y(!1), t = y([]), n = y([]), r = null;
1159
1160
  function i(i, a) {
1160
1161
  if (r) {
@@ -1185,17 +1186,17 @@ function Wn() {
1185
1186
  }
1186
1187
  //#endregion
1187
1188
  //#region src/composables/useTemplateLint.ts
1188
- function Gn(e) {
1189
+ function Jn(e) {
1189
1190
  return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 : !1;
1190
1191
  }
1191
- function Kn(t) {
1192
- let n = y([]), r = y(!1), i = y(!1), a = e(null), o = Gn(t.options), s = null, c = !1;
1192
+ function Yn(t) {
1193
+ let n = y([]), r = y(!1), i = y(!1), a = e(null), o = Jn(t.options), s = null, c = !1;
1193
1194
  o || l();
1194
1195
  async function l() {
1195
1196
  try {
1196
1197
  let e = await import("@templatical/quality");
1197
1198
  if (c) return;
1198
- a.value = { lintTemplate: e.lintTemplate }, r.value = !0, u(), s = Xe(t.content, u, {
1199
+ a.value = { lintTemplate: e.lintTemplate }, r.value = !0, u(), s = Ze(t.content, u, {
1199
1200
  debounce: t.debounce ?? 500,
1200
1201
  deep: !0
1201
1202
  });
@@ -1230,17 +1231,17 @@ function Kn(t) {
1230
1231
  }
1231
1232
  //#endregion
1232
1233
  //#region src/utils/blockTypeLabels.ts
1233
- function qn(e, t) {
1234
+ function Xn(e, t) {
1234
1235
  return t.blocks[e] ?? e;
1235
1236
  }
1236
- function Jn(e, t, n = []) {
1237
- if (e.type !== "custom") return qn(e.type, t);
1237
+ function Zn(e, t, n = []) {
1238
+ if (e.type !== "custom") return Xn(e.type, t);
1238
1239
  let { customType: r } = e;
1239
1240
  return n.find((e) => e.type === r)?.name ?? r;
1240
1241
  }
1241
1242
  //#endregion
1242
1243
  //#region src/composables/useKeyboardReorder.ts
1243
- function Yn(e, t, n = []) {
1244
+ function Qn(e, t, n = []) {
1244
1245
  let r = y(null), i = y(""), a = null;
1245
1246
  function o(t) {
1246
1247
  let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
@@ -1267,7 +1268,7 @@ function Yn(e, t, n = []) {
1267
1268
  let i = o(r);
1268
1269
  if (!i) return "";
1269
1270
  let a = (i.sectionId ? c(i.sectionId, i.columnIndex ?? 0) : e.content.value.blocks)?.[i.index];
1270
- return a ? Jn(a, t.t, n) : "";
1271
+ return a ? Zn(a, t.t, n) : "";
1271
1272
  }
1272
1273
  function c(t, n) {
1273
1274
  return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
@@ -1336,13 +1337,13 @@ function Yn(e, t, n = []) {
1336
1337
  }
1337
1338
  //#endregion
1338
1339
  //#region src/composables/useUiTheme.ts
1339
- function Xn(e) {
1340
- let t = Qe("(prefers-color-scheme: dark)");
1341
- return { resolvedTheme: F(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
1340
+ function $n(e) {
1341
+ let t = $e("(prefers-color-scheme: dark)");
1342
+ return { resolvedTheme: P(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
1342
1343
  }
1343
1344
  //#endregion
1344
1345
  //#region src/composables/useThemeStyles.ts
1345
- var Zn = {
1346
+ var er = {
1346
1347
  bg: "--tpl-bg",
1347
1348
  bgElevated: "--tpl-bg-elevated",
1348
1349
  bgHover: "--tpl-bg-hover",
@@ -1366,10 +1367,10 @@ var Zn = {
1366
1367
  dangerLight: "--tpl-danger-light",
1367
1368
  canvasBg: "--tpl-canvas-bg"
1368
1369
  };
1369
- function Qn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
1370
- return { themeStyles: F(() => {
1370
+ function tr({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
1371
+ return { themeStyles: P(() => {
1371
1372
  let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
1372
- if (a) for (let [e, t] of Object.entries(Zn)) {
1373
+ if (a) for (let [e, t] of Object.entries(er)) {
1373
1374
  let n = a[e];
1374
1375
  n && (r[t] = n);
1375
1376
  }
@@ -1378,7 +1379,7 @@ function Qn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
1378
1379
  }
1379
1380
  //#endregion
1380
1381
  //#region src/composables/useBlockRegistry.ts
1381
- function $n() {
1382
+ function nr() {
1382
1383
  let t = e(/* @__PURE__ */ new Map());
1383
1384
  function n(e, n) {
1384
1385
  t.value.set(e, n), D(t);
@@ -1386,7 +1387,7 @@ function $n() {
1386
1387
  function r(e, n) {
1387
1388
  let r = `custom:${e.type}`, i = {
1388
1389
  component: n,
1389
- createBlock: () => Le(e),
1390
+ createBlock: () => Re(e),
1390
1391
  definition: e
1391
1392
  };
1392
1393
  t.value.set(r, i), D(t);
@@ -1418,7 +1419,7 @@ function $n() {
1418
1419
  strictFilters: !1
1419
1420
  }).parseAndRender(t.template, e.fieldValues);
1420
1421
  } catch (t) {
1421
- return Kt.error(`Failed to render custom block "${e.customType}":`, t), s(`Render error: ${e.customType}`);
1422
+ return Yt.error(`Failed to render custom block "${e.customType}":`, t), s(`Render error: ${e.customType}`);
1422
1423
  }
1423
1424
  }
1424
1425
  function l(e) {
@@ -1436,9 +1437,9 @@ function $n() {
1436
1437
  }
1437
1438
  //#endregion
1438
1439
  //#region src/composables/useCustomBlockStylesheets.ts
1439
- function er(e, t) {
1440
- return F(() => {
1441
- let n = tr(e.value.blocks);
1440
+ function rr(e, t) {
1441
+ return P(() => {
1442
+ let n = ir(e.value.blocks);
1442
1443
  if (n.size === 0) return [];
1443
1444
  let r = /* @__PURE__ */ new Set(), i = [];
1444
1445
  for (let e of n) {
@@ -1450,81 +1451,81 @@ function er(e, t) {
1450
1451
  return i;
1451
1452
  });
1452
1453
  }
1453
- function tr(e) {
1454
+ function ir(e) {
1454
1455
  let t = /* @__PURE__ */ new Set();
1455
- return nr(e, t), t;
1456
+ return ar(e, t), t;
1456
1457
  }
1457
- function nr(e, t) {
1458
+ function ar(e, t) {
1458
1459
  for (let n of e) {
1459
- if (_e(n)) {
1460
+ if (ve(n)) {
1460
1461
  t.add(n.customType);
1461
1462
  continue;
1462
1463
  }
1463
1464
  if (n.type === "section") {
1464
1465
  let e = n.children;
1465
1466
  if (!e) continue;
1466
- for (let n of e) nr(n, t);
1467
+ for (let n of e) ar(n, t);
1467
1468
  }
1468
1469
  }
1469
1470
  }
1470
1471
  //#endregion
1471
1472
  //#region src/utils/registerBuiltInBlocks.ts
1472
- var rr = [
1473
+ var or = [
1473
1474
  {
1474
1475
  type: "section",
1475
- createBlock: Ee
1476
+ createBlock: De
1476
1477
  },
1477
1478
  {
1478
1479
  type: "title",
1479
- createBlock: Ue
1480
+ createBlock: We
1480
1481
  },
1481
1482
  {
1482
1483
  type: "paragraph",
1483
- createBlock: Ge
1484
+ createBlock: Ke
1484
1485
  },
1485
1486
  {
1486
1487
  type: "image",
1487
- createBlock: we
1488
+ createBlock: Te
1488
1489
  },
1489
1490
  {
1490
1491
  type: "button",
1491
- createBlock: De
1492
+ createBlock: Oe
1492
1493
  },
1493
1494
  {
1494
1495
  type: "divider",
1495
- createBlock: Ae
1496
+ createBlock: je
1496
1497
  },
1497
1498
  {
1498
1499
  type: "video",
1499
- createBlock: be
1500
+ createBlock: xe
1500
1501
  },
1501
1502
  {
1502
1503
  type: "social",
1503
- createBlock: We
1504
+ createBlock: Ge
1504
1505
  },
1505
1506
  {
1506
1507
  type: "menu",
1507
- createBlock: He
1508
+ createBlock: Ue
1508
1509
  },
1509
1510
  {
1510
1511
  type: "table",
1511
- createBlock: se
1512
+ createBlock: ce
1512
1513
  },
1513
1514
  {
1514
1515
  type: "spacer",
1515
- createBlock: ye
1516
+ createBlock: be
1516
1517
  },
1517
1518
  {
1518
1519
  type: "html",
1519
- createBlock: ke
1520
+ createBlock: Ae
1520
1521
  },
1521
1522
  {
1522
1523
  type: "countdown",
1523
- createBlock: Oe
1524
+ createBlock: ke
1524
1525
  }
1525
1526
  ];
1526
- function ir(e, t) {
1527
- for (let n of rr) {
1527
+ function sr(e, t) {
1528
+ for (let n of or) {
1528
1529
  let r = t[n.type];
1529
1530
  r && e.registerBuiltIn(n.type, {
1530
1531
  component: r,
@@ -1534,12 +1535,12 @@ function ir(e, t) {
1534
1535
  }
1535
1536
  //#endregion
1536
1537
  //#region src/utils/resolveHtmlBlockPreview.ts
1537
- function ar(e) {
1538
+ function cr(e) {
1538
1539
  return typeof e == "boolean" ? e : e?.enabled ?? !1;
1539
1540
  }
1540
1541
  //#endregion
1541
1542
  //#region src/utils/templateSettingsFields.ts
1542
- var or = {
1543
+ var lr = {
1543
1544
  width: "layout",
1544
1545
  backgroundColor: "appearance",
1545
1546
  textColor: "appearance",
@@ -1549,14 +1550,14 @@ var or = {
1549
1550
  locale: "language",
1550
1551
  direction: "language",
1551
1552
  preheaderText: "preheader"
1552
- }, sr = Object.keys(or);
1553
- function cr(e) {
1554
- return Object.prototype.hasOwnProperty.call(or, e);
1553
+ }, ur = Object.keys(lr);
1554
+ function dr(e) {
1555
+ return Object.prototype.hasOwnProperty.call(lr, e);
1555
1556
  }
1556
- function lr(e) {
1557
+ function fr(e) {
1557
1558
  let t = e?.fields;
1558
1559
  if (t === void 0 || t === !0) return {
1559
- fields: new Set(sr),
1560
+ fields: new Set(ur),
1560
1561
  unknown: []
1561
1562
  };
1562
1563
  if (t === !1) return {
@@ -1564,7 +1565,7 @@ function lr(e) {
1564
1565
  unknown: []
1565
1566
  };
1566
1567
  let n = /* @__PURE__ */ new Set(), r = [];
1567
- for (let e of t) cr(e) ? n.add(e) : r.push(String(e));
1568
+ for (let e of t) dr(e) ? n.add(e) : r.push(String(e));
1568
1569
  return {
1569
1570
  fields: n,
1570
1571
  unknown: r
@@ -1572,28 +1573,28 @@ function lr(e) {
1572
1573
  }
1573
1574
  //#endregion
1574
1575
  //#region src/utils/collectOffPaletteDefaults.ts
1575
- function ur(e) {
1576
+ function pr(e) {
1576
1577
  return typeof e == "object" && !!e && !Array.isArray(e);
1577
1578
  }
1578
- function dr(e, t, n) {
1579
- let r = new Set(e.map((e) => Xt(e))), i = [], a = (e, t) => {
1580
- for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(Xt(o)) && i.push(`${t}.${n}: ${o}`) : ur(o) && a(o, `${t}.${n}`);
1579
+ function mr(e, t, n) {
1580
+ let r = new Set(e.map((e) => $t(e))), i = [], a = (e, t) => {
1581
+ for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has($t(o)) && i.push(`${t}.${n}: ${o}`) : pr(o) && a(o, `${t}.${n}`);
1581
1582
  }, o = t;
1582
- for (let [e, t] of Object.entries(Be)) {
1583
+ for (let [e, t] of Object.entries(Ve)) {
1583
1584
  let n = o?.[e];
1584
1585
  a({
1585
1586
  ...t,
1586
- ...ur(n) ? n : {}
1587
+ ...pr(n) ? n : {}
1587
1588
  }, e);
1588
1589
  }
1589
1590
  return a({
1590
- ...Fe,
1591
+ ...Ie,
1591
1592
  ...n ?? {}
1592
1593
  }, "template"), i;
1593
1594
  }
1594
1595
  //#endregion
1595
1596
  //#region src/utils/localizedBlockDefaults.ts
1596
- function fr(e) {
1597
+ function hr(e) {
1597
1598
  return {
1598
1599
  title: { content: `<p>${e.blockDefaults.title}</p>` },
1599
1600
  paragraph: { content: `<p>${e.blockDefaults.paragraph}</p>` },
@@ -1602,62 +1603,62 @@ function fr(e) {
1602
1603
  }
1603
1604
  //#endregion
1604
1605
  //#region src/i18n/index.ts
1605
- var pr = /* #__PURE__ */ Object.assign({
1606
- "./locales/ca.ts": () => import("./ca-D9S-UCfZ.js"),
1607
- "./locales/de.ts": () => import("./de-BUPszLpi.js"),
1608
- "./locales/en.ts": () => import("./en-BbOC5x3w.js"),
1609
- "./locales/es.ts": () => import("./es-0bCDcT9p.js"),
1610
- "./locales/fr.ts": () => import("./fr-Brr8mJ9e.js"),
1611
- "./locales/nl.ts": () => import("./nl-Co3_RL0M.js"),
1612
- "./locales/pt-BR.ts": () => import("./pt-BR-BECez5b0.js")
1613
- }), mr = /* #__PURE__ */ Object.assign({
1606
+ var gr = /* #__PURE__ */ Object.assign({
1607
+ "./locales/ca.ts": () => import("./ca-YlPDhElv.js"),
1608
+ "./locales/de.ts": () => import("./de-CONjnzrF.js"),
1609
+ "./locales/en.ts": () => import("./en-BAMooiOF.js"),
1610
+ "./locales/es.ts": () => import("./es-I47lHs2m.js"),
1611
+ "./locales/fr.ts": () => import("./fr-B8MIKjT4.js"),
1612
+ "./locales/nl.ts": () => import("./nl-CBLxcb-0.js"),
1613
+ "./locales/pt-BR.ts": () => import("./pt-BR-CMSRfX7t.js")
1614
+ }), _r = /* #__PURE__ */ Object.assign({
1614
1615
  "./locales/cloud/de.ts": () => import("./de-BytZwgn6.js"),
1615
1616
  "./locales/cloud/en.ts": () => import("./en-DyOSV0lY.js"),
1616
1617
  "./locales/cloud/pt-BR.ts": () => import("./pt-BR-C1WLSGDh.js")
1617
1618
  });
1618
- function hr(e) {
1619
+ function vr(e) {
1619
1620
  return Object.keys(e).map((e) => e.match(/\/([^/]+)\.ts$/)?.[1]).filter((e) => !!e);
1620
1621
  }
1621
- var gr = hr(pr), _r = hr(mr);
1622
- function vr(e) {
1622
+ var yr = vr(gr), br = vr(_r);
1623
+ function xr(e) {
1623
1624
  return e.trim().replace(/_/g, "-").toLowerCase();
1624
1625
  }
1625
- function yr(e, t) {
1626
- let n = vr(e);
1627
- return t.find((e) => vr(e) === n);
1626
+ function Sr(e, t) {
1627
+ let n = xr(e);
1628
+ return t.find((e) => xr(e) === n);
1628
1629
  }
1629
- function br(e) {
1630
- return vr(e).split("-")[0];
1630
+ function Cr(e) {
1631
+ return xr(e).split("-")[0];
1631
1632
  }
1632
- function xr(e, t) {
1633
- return yr(e, t) ?? yr(br(e), t);
1633
+ function wr(e, t) {
1634
+ return Sr(e, t) ?? Sr(Cr(e), t);
1634
1635
  }
1635
- function Sr(e, t) {
1636
- return xr(e, t) ?? "en";
1636
+ function Tr(e, t) {
1637
+ return wr(e, t) ?? "en";
1637
1638
  }
1638
- async function Cr(e) {
1639
- let t = pr[`./locales/${Sr(e, gr)}.ts`];
1639
+ async function Er(e) {
1640
+ let t = gr[`./locales/${Tr(e, yr)}.ts`];
1640
1641
  return (await t()).default;
1641
1642
  }
1642
- async function wr(e) {
1643
- let t = mr[`./locales/cloud/${Sr(e, _r)}.ts`];
1643
+ async function Dr(e) {
1644
+ let t = _r[`./locales/cloud/${Tr(e, br)}.ts`];
1644
1645
  return (await t()).default;
1645
1646
  }
1646
- function Tr(e) {
1647
- return xr(e, gr) !== void 0;
1647
+ function Or(e) {
1648
+ return wr(e, yr) !== void 0;
1648
1649
  }
1649
- function Er(e) {
1650
- return xr(e, _r) !== void 0;
1650
+ function kr(e) {
1651
+ return wr(e, br) !== void 0;
1651
1652
  }
1652
- function Dr() {
1653
- return [...gr];
1653
+ function Ar() {
1654
+ return [...yr];
1654
1655
  }
1655
- function Or() {
1656
- return [..._r];
1656
+ function jr() {
1657
+ return [...br];
1657
1658
  }
1658
1659
  //#endregion
1659
1660
  //#region src/i18n/contentDefaults.ts
1660
- var kr = {
1661
+ var Mr = {
1661
1662
  en: {
1662
1663
  video: "Video",
1663
1664
  days: "Days",
@@ -1715,17 +1716,17 @@ var kr = {
1715
1716
  expired: "Aquesta oferta ha caducat"
1716
1717
  }
1717
1718
  };
1718
- Object.keys(kr);
1719
- var Ar = new Map(Object.keys(kr).map((e) => [e.toLowerCase(), e]));
1720
- function jr(e) {
1721
- if (!e) return kr.en;
1722
- let t = e.trim().replace(/_/g, "-").toLowerCase(), n = Ar.get(t);
1723
- if (n) return kr[n];
1724
- let r = Ar.get(br(t));
1725
- return r ? kr[r] : kr.en;
1726
- }
1727
- function Mr(e) {
1728
- let t = jr(e);
1719
+ Object.keys(Mr);
1720
+ var Nr = new Map(Object.keys(Mr).map((e) => [e.toLowerCase(), e]));
1721
+ function Pr(e) {
1722
+ if (!e) return Mr.en;
1723
+ let t = e.trim().replace(/_/g, "-").toLowerCase(), n = Nr.get(t);
1724
+ if (n) return Mr[n];
1725
+ let r = Nr.get(Cr(t));
1726
+ return r ? Mr[r] : Mr.en;
1727
+ }
1728
+ function Fr(e) {
1729
+ let t = Pr(e);
1729
1730
  return {
1730
1731
  video: { alt: t.video },
1731
1732
  countdown: {
@@ -1739,8 +1740,8 @@ function Mr(e) {
1739
1740
  }
1740
1741
  //#endregion
1741
1742
  //#region src/utils/resolveFieldColors.ts
1742
- function Nr(e, t) {
1743
- let n = Yt({ presets: e.presets }, qt), r = n.presets.length === 0, i = e.allowCustom ?? t.allowCustom;
1743
+ function Ir(e, t) {
1744
+ let n = Qt({ presets: e.presets }, Xt), r = n.presets.length === 0, i = e.allowCustom ?? t.allowCustom;
1744
1745
  return {
1745
1746
  presets: r ? t.presets : n.presets,
1746
1747
  allowCustom: t.allowCustom !== !1 && i,
@@ -1752,9 +1753,9 @@ function Nr(e, t) {
1752
1753
  }
1753
1754
  //#endregion
1754
1755
  //#region src/utils/collectColorFieldIssues.ts
1755
- function Pr(e, t) {
1756
+ function Lr(e, t) {
1756
1757
  let n = [], r = (r, i) => {
1757
- let a = Nr(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
1758
+ let a = Ir(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
1758
1759
  if (a.invalidPresets.length > 0 && n.push({
1759
1760
  id: s("invalid-presets"),
1760
1761
  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." : "")
@@ -1765,8 +1766,8 @@ function Pr(e, t) {
1765
1766
  id: s("allow-custom-ignored"),
1766
1767
  message: `${o}: allowCustom: true is ignored because colors.allowCustom is false — a field can narrow the editor-wide palette, never unlock it.`
1767
1768
  }), !a.allowCustom && a.presets.length > 0) {
1768
- let e = r.default ?? "", t = new Set(a.presets.map((e) => Xt(e)));
1769
- e !== "" && !t.has(Xt(e)) && n.push({
1769
+ let e = r.default ?? "", t = new Set(a.presets.map((e) => $t(e)));
1770
+ e !== "" && !t.has($t(e)) && n.push({
1770
1771
  id: s("off-palette-default"),
1771
1772
  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.`
1772
1773
  });
@@ -1778,7 +1779,7 @@ function Pr(e, t) {
1778
1779
  }
1779
1780
  //#endregion
1780
1781
  //#region src/utils/keyboardShortcuts.ts
1781
- function Fr(e) {
1782
+ function Rr(e) {
1782
1783
  for (let t of e.composedPath()) {
1783
1784
  if (!(t instanceof HTMLElement)) continue;
1784
1785
  if (t.isContentEditable) return !0;
@@ -1787,18 +1788,18 @@ function Fr(e) {
1787
1788
  }
1788
1789
  return !1;
1789
1790
  }
1790
- function Ir(e, t) {
1791
+ function zr(e, t) {
1791
1792
  let n = e.metaKey || e.ctrlKey;
1792
1793
  if (n && e.key.toLowerCase() === "s") {
1793
1794
  e.preventDefault(), t.onSave?.();
1794
1795
  return;
1795
1796
  }
1796
1797
  if (n && e.key.toLowerCase() === "z") {
1797
- if (Fr(e)) return;
1798
+ if (Rr(e)) return;
1798
1799
  e.preventDefault(), e.shiftKey ? t.history.redo() : (t.onBeforeUndo?.(), t.history.undo());
1799
1800
  return;
1800
1801
  }
1801
- if (t.isPicking?.() && !Fr(e)) {
1802
+ if (t.isPicking?.() && !Rr(e)) {
1802
1803
  if (e.key === "Escape") {
1803
1804
  e.preventDefault(), t.onCancelPick?.();
1804
1805
  return;
@@ -1816,11 +1817,11 @@ function Ir(e, t) {
1816
1817
  t.selectBlock(null);
1817
1818
  return;
1818
1819
  }
1819
- (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Fr(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
1820
+ (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Rr(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
1820
1821
  }
1821
1822
  //#endregion
1822
1823
  //#region src/utils/mergeTagLabelSegments.ts
1823
- function Lr(e, t, n, r = !1) {
1824
+ function Br(e, t, n, r = !1) {
1824
1825
  if (!e) return [];
1825
1826
  let i = RegExp(`(${n.value.source}|${n.logic.source})`, "g"), a = [], o = 0, s;
1826
1827
  for (; (s = i.exec(e)) !== null;) {
@@ -1829,18 +1830,18 @@ function Lr(e, t, n, r = !1) {
1829
1830
  value: e.slice(o, s.index)
1830
1831
  });
1831
1832
  let i = s[0];
1832
- if (fe(i, n)) {
1833
- let e = r ? ae(i, t) : void 0;
1833
+ if (pe(i, n)) {
1834
+ let e = r ? oe(i, t) : void 0;
1834
1835
  a.push(e === void 0 ? {
1835
1836
  type: "tag",
1836
- value: Me(i, t)
1837
+ value: Ne(i, t)
1837
1838
  } : {
1838
1839
  type: "text",
1839
1840
  value: e
1840
1841
  });
1841
- } else ue(i, n) ? a.push({
1842
+ } else de(i, n) ? a.push({
1842
1843
  type: "tag",
1843
- value: ge(i, n)
1844
+ value: _e(i, n)
1844
1845
  }) : a.push({
1845
1846
  type: "text",
1846
1847
  value: i
@@ -1854,27 +1855,27 @@ function Lr(e, t, n, r = !1) {
1854
1855
  }
1855
1856
  //#endregion
1856
1857
  //#region src/components/MergeTagPreviewText.vue
1857
- var Rr = L({
1858
+ var Vr = I({
1858
1859
  name: "MergeTagPreviewText",
1859
1860
  props: { text: {
1860
1861
  type: String,
1861
1862
  required: !0
1862
1863
  } },
1863
1864
  setup(e) {
1864
- let t = m(rt, []), n = m(ft, Ie.liquid), r = m(lt, null), i = F(() => Lr(e.text, t, n, r?.value ?? !1));
1865
+ let t = m(at, gt), n = m(mt, Le.liquid), r = m(St, null), i = P(() => Br(e.text, t.value, n, r?.value ?? !1));
1865
1866
  return () => i.value.map((e, t) => e.type === "tag" ? S("span", {
1866
1867
  key: t,
1867
1868
  class: "tpl-merge-tag-label"
1868
1869
  }, e.value) : e.value);
1869
1870
  }
1870
- }), zr = ["href"], Br = /* @__PURE__ */ L({
1871
+ }), Hr = ["href"], Ur = /* @__PURE__ */ I({
1871
1872
  __name: "ButtonBlock",
1872
1873
  props: {
1873
1874
  block: {},
1874
1875
  viewport: {}
1875
1876
  },
1876
1877
  setup(e) {
1877
- let r = e, i = F(() => {
1878
+ let r = e, i = P(() => {
1878
1879
  let e = {
1879
1880
  display: "inline-block",
1880
1881
  padding: `${r.block.buttonPadding.top}px ${r.block.buttonPadding.right}px ${r.block.buttonPadding.bottom}px ${r.block.buttonPadding.left}px`,
@@ -1887,22 +1888,22 @@ var Rr = L({
1887
1888
  textAlign: "center"
1888
1889
  };
1889
1890
  return 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;
1890
- }), a = F(() => ({ textAlign: r.block.align ?? "center" }));
1891
+ }), a = P(() => ({ textAlign: r.block.align ?? "center" }));
1891
1892
  return (r, o) => (t(), w("div", { style: n(a.value) }, [C("a", {
1892
1893
  href: e.block.url || "#",
1893
1894
  style: n(i.value),
1894
1895
  class: "tpl:cursor-default",
1895
- onClick: o[0] ||= R(() => {}, ["prevent"])
1896
- }, [T(Rr, { text: e.block.text }, null, 8, ["text"])], 12, zr)], 4));
1896
+ onClick: o[0] ||= L(() => {}, ["prevent"])
1897
+ }, [T(Vr, { text: e.block.text }, null, 8, ["text"])], 12, Hr)], 4));
1897
1898
  }
1898
- }), Vr = Qt({
1899
+ }), Wr = tn({
1899
1900
  name: "bookmark",
1900
1901
  size: 24,
1901
1902
  node: [["path", {
1902
1903
  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",
1903
1904
  key: "oz39mx"
1904
1905
  }]]
1905
- }), Hr = Qt({
1906
+ }), Gr = tn({
1906
1907
  name: "box",
1907
1908
  size: 24,
1908
1909
  node: [
@@ -1919,7 +1920,7 @@ var Rr = L({
1919
1920
  key: "d0xqtd"
1920
1921
  }]
1921
1922
  ]
1922
- }), Ur = Qt({
1923
+ }), Kr = tn({
1923
1924
  name: "code",
1924
1925
  size: 24,
1925
1926
  node: [["path", {
@@ -1929,7 +1930,7 @@ var Rr = L({
1929
1930
  d: "m8 6-6 6 6 6",
1930
1931
  key: "ppft3o"
1931
1932
  }]]
1932
- }), Wr = Qt({
1933
+ }), qr = tn({
1933
1934
  name: "eye-off",
1934
1935
  size: 24,
1935
1936
  node: [
@@ -1950,7 +1951,7 @@ var Rr = L({
1950
1951
  key: "1ooewy"
1951
1952
  }]
1952
1953
  ]
1953
- }), Gr = Qt({
1954
+ }), Jr = tn({
1954
1955
  name: "funnel",
1955
1956
  size: 24,
1956
1957
  node: [["path", {
@@ -1958,7 +1959,7 @@ var Rr = L({
1958
1959
  key: "sc7q7i"
1959
1960
  }]],
1960
1961
  aliases: ["filter"]
1961
- }), Kr = Qt({
1962
+ }), Yr = tn({
1962
1963
  name: "grip-vertical",
1963
1964
  size: 24,
1964
1965
  node: [
@@ -1999,7 +2000,7 @@ var Rr = L({
1999
2000
  key: "f4zoj3"
2000
2001
  }]
2001
2002
  ]
2002
- }), qr = Qt({
2003
+ }), Xr = tn({
2003
2004
  name: "image",
2004
2005
  size: 24,
2005
2006
  node: [
@@ -2023,21 +2024,21 @@ var Rr = L({
2023
2024
  key: "1xmnt7"
2024
2025
  }]
2025
2026
  ]
2026
- }), Jr = Qt({
2027
+ }), Zr = tn({
2027
2028
  name: "navigation",
2028
2029
  size: 24,
2029
2030
  node: [["polygon", {
2030
2031
  points: "3 11 22 2 13 21 11 13 3 11",
2031
2032
  key: "1ltx0t"
2032
2033
  }]]
2033
- }), Yr = Qt({
2034
+ }), Qr = tn({
2034
2035
  name: "puzzle",
2035
2036
  size: 24,
2036
2037
  node: [["path", {
2037
2038
  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",
2038
2039
  key: "w46dr5"
2039
2040
  }]]
2040
- }), Xr = Qt({
2041
+ }), $r = tn({
2041
2042
  name: "share-2",
2042
2043
  size: 24,
2043
2044
  node: [
@@ -2074,7 +2075,7 @@ var Rr = L({
2074
2075
  key: "1n3mei"
2075
2076
  }]
2076
2077
  ]
2077
- }), Zr = Qt({
2078
+ }), ei = tn({
2078
2079
  name: "table",
2079
2080
  size: 24,
2080
2081
  node: [
@@ -2099,7 +2100,7 @@ var Rr = L({
2099
2100
  key: "5xshup"
2100
2101
  }]
2101
2102
  ]
2102
- }), Qr = Qt({
2103
+ }), ti = tn({
2103
2104
  name: "video",
2104
2105
  size: 24,
2105
2106
  node: [["path", {
@@ -2113,18 +2114,18 @@ var Rr = L({
2113
2114
  rx: "2",
2114
2115
  key: "158x01"
2115
2116
  }]]
2116
- }), $r = ["innerHTML"], ei = [
2117
+ }), ni = ["innerHTML"], ri = [
2117
2118
  "src",
2118
2119
  "width",
2119
2120
  "height"
2120
- ], ti = /* @__PURE__ */ L({
2121
+ ], ii = /* @__PURE__ */ I({
2121
2122
  __name: "CustomBlockIcon",
2122
2123
  props: {
2123
2124
  icon: {},
2124
2125
  size: {}
2125
2126
  },
2126
2127
  setup(e) {
2127
- let r = e, i = F(() => r.size ?? 20), a = F(() => r.icon && (r.icon.trimStart().startsWith("<svg") || r.icon.trimStart().startsWith("<SVG"))), o = F(() => r.icon && !a.value && (r.icon.startsWith("http") || r.icon.startsWith("/")));
2128
+ let r = e, i = P(() => r.size ?? 20), a = P(() => r.icon && (r.icon.trimStart().startsWith("<svg") || r.icon.trimStart().startsWith("<SVG"))), o = P(() => r.icon && !a.value && (r.icon.startsWith("http") || r.icon.startsWith("/")));
2128
2129
  return (r, s) => a.value ? (t(), w("span", {
2129
2130
  key: 0,
2130
2131
  class: "tpl:inline-flex tpl:items-center tpl:justify-center",
@@ -2133,24 +2134,24 @@ var Rr = L({
2133
2134
  height: `${i.value}px`
2134
2135
  }),
2135
2136
  innerHTML: e.icon
2136
- }, null, 12, $r)) : o.value ? (t(), w("img", {
2137
+ }, null, 12, ni)) : o.value ? (t(), w("img", {
2137
2138
  key: 1,
2138
2139
  src: e.icon,
2139
2140
  width: i.value,
2140
2141
  height: i.value,
2141
2142
  class: "tpl:inline-block",
2142
2143
  alt: ""
2143
- }, null, 8, ei)) : (t(), M(x(Hr), {
2144
+ }, null, 8, ri)) : (t(), M(x(Gr), {
2144
2145
  key: 2,
2145
2146
  size: i.value,
2146
2147
  "stroke-width": 1.5
2147
2148
  }, null, 8, ["size"]));
2148
2149
  }
2149
- }), ni = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
2150
- function ri(e, t) {
2151
- let n = cn(), r = null, i = null, a = null;
2150
+ }), ai = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
2151
+ function oi(e, t) {
2152
+ let n = dn(), r = null, i = null, a = null;
2152
2153
  function o() {
2153
- return e.value ? Array.from(e.value.querySelectorAll(ni)).filter((e) => e.offsetParent !== null) : [];
2154
+ return e.value ? Array.from(e.value.querySelectorAll(ai)).filter((e) => e.offsetParent !== null) : [];
2154
2155
  }
2155
2156
  function s(e) {
2156
2157
  if (e.key !== "Tab") return;
@@ -2165,7 +2166,7 @@ function ri(e, t) {
2165
2166
  a = null;
2166
2167
  let t = o();
2167
2168
  t.length > 0 && (e.value?.querySelector("[autofocus], input:not([disabled])") ?? t[0]).focus();
2168
- }), i = Ze(e, "keydown", s);
2169
+ }), i = Qe(e, "keydown", s);
2169
2170
  }
2170
2171
  function u(e = {}) {
2171
2172
  let t = e.restoreFocus !== !1;
@@ -2180,8 +2181,8 @@ function ri(e, t) {
2180
2181
  }
2181
2182
  //#endregion
2182
2183
  //#region src/composables/useEmoji.ts
2183
- function ii() {
2184
- let [t, n] = Ye(!1), r = e([]), i = !1;
2184
+ function si() {
2185
+ let [t, n] = Xe(!1), r = e([]), i = !1;
2185
2186
  c(() => {
2186
2187
  i = !0;
2187
2188
  }), p(t, async (e) => {
@@ -2206,7 +2207,7 @@ function ii() {
2206
2207
  }
2207
2208
  //#endregion
2208
2209
  //#region src/composables/useFonts.ts
2209
- var ai = [
2210
+ var ci = [
2210
2211
  {
2211
2212
  value: "Arial",
2212
2213
  label: "Arial"
@@ -2235,7 +2236,7 @@ var ai = [
2235
2236
  value: "Courier New",
2236
2237
  label: "Courier New"
2237
2238
  }
2238
- ], oi = {
2239
+ ], li = {
2239
2240
  arial: "Arial, sans-serif",
2240
2241
  helvetica: "Helvetica, sans-serif",
2241
2242
  georgia: "Georgia, serif",
@@ -2243,23 +2244,23 @@ var ai = [
2243
2244
  verdana: "Verdana, sans-serif",
2244
2245
  "trebuchet ms": "'Trebuchet MS', sans-serif",
2245
2246
  "courier new": "'Courier New', monospace"
2246
- }, si = "Arial, sans-serif";
2247
- function ci(e) {
2248
- if (e === void 0 || e === !0) return [...ai];
2247
+ }, ui = "Arial, sans-serif";
2248
+ function di(e) {
2249
+ if (e === void 0 || e === !0) return [...ci];
2249
2250
  if (e === !1) return [];
2250
2251
  let t = [], n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
2251
2252
  for (let i of e) {
2252
- let e = i.toLowerCase(), a = ai.find((t) => t.value.toLowerCase() === e);
2253
+ let e = i.toLowerCase(), a = ci.find((t) => t.value.toLowerCase() === e);
2253
2254
  if (!a) {
2254
- r.has(e) || (r.add(e), Kt.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${ai.map((e) => e.value).join(", ")}.`));
2255
+ r.has(e) || (r.add(e), Yt.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${ci.map((e) => e.value).join(", ")}.`));
2255
2256
  continue;
2256
2257
  }
2257
2258
  n.has(a.value) || (n.add(a.value), t.push(a));
2258
2259
  }
2259
2260
  return t;
2260
2261
  }
2261
- function li(e) {
2262
- let t = y(e?.customFonts ?? []), n = y(!1), r = ci(e?.builtIns), i = F(() => e?.defaultFallback ?? si), a = F(() => {
2262
+ function fi(e) {
2263
+ let t = y(e?.customFonts ?? []), n = y(!1), r = di(e?.builtIns), i = P(() => e?.defaultFallback ?? ui), a = P(() => {
2263
2264
  let e = [...r], n = t.value.map((e) => ({
2264
2265
  value: e.name,
2265
2266
  label: e.name,
@@ -2270,16 +2271,16 @@ function li(e) {
2270
2271
  function o(e) {
2271
2272
  return a.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
2272
2273
  }
2273
- let s = e?.defaultFont ?? si.split(",")[0].trim();
2274
- o(s) || Kt.warn(`config.fonts: new templates seed "${s}", which the font picker doesn't offer — authors can't reselect it. Either add it to fonts.builtIns, or set fonts.defaultFont to an offered font.`);
2274
+ let s = e?.defaultFont ?? ui.split(",")[0].trim();
2275
+ o(s) || Yt.warn(`config.fonts: new templates seed "${s}", which the font picker doesn't offer — authors can't reselect it. Either add it to fonts.builtIns, or set fonts.defaultFont to an offered font.`);
2275
2276
  function l() {
2276
2277
  if (e?.defaultFont && o(e.defaultFont)) {
2277
2278
  let t = a.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
2278
2279
  if (t) return t.value;
2279
2280
  }
2280
- return si;
2281
+ return ui;
2281
2282
  }
2282
- let u = F(() => l());
2283
+ let u = P(() => l());
2283
2284
  function d(e) {
2284
2285
  if (!e) return i.value;
2285
2286
  let n = t.value.find((t) => t.name.toLowerCase() === e.toLowerCase());
@@ -2287,7 +2288,7 @@ function li(e) {
2287
2288
  let e = n.fallback ?? i.value;
2288
2289
  return `'${n.name}', ${e}`;
2289
2290
  }
2290
- return oi[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${i.value}`);
2291
+ return li[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${i.value}`);
2291
2292
  }
2292
2293
  let f = [], p = !1;
2293
2294
  async function m() {
@@ -2303,7 +2304,7 @@ function li(e) {
2303
2304
  t.onload = () => n(), t.onerror = () => r(/* @__PURE__ */ Error(`Failed to load font: ${e.name}`)), document.head.appendChild(t);
2304
2305
  });
2305
2306
  } catch (t) {
2306
- Kt.warn(`Failed to load custom font "${e.name}":`, t);
2307
+ Yt.warn(`Failed to load custom font "${e.name}":`, t);
2307
2308
  }
2308
2309
  });
2309
2310
  await Promise.allSettled(e), !p && (n.value = !0);
@@ -2328,8 +2329,8 @@ function li(e) {
2328
2329
  }
2329
2330
  //#endregion
2330
2331
  //#region src/composables/useLogicTag.ts
2331
- function ui() {
2332
- let e = m(Vt, []), t = m(nt, []), n = m(ft, Ie.liquid), r = m(pt, null), i = m(vt, null), a = m(it, null) ?? y(!1), o = !!r || e.length > 0 || t.length > 0, s = e.length > 0 || t.length > 0;
2332
+ function pi() {
2333
+ let e = m(Wt, []), t = m(it, []), n = m(mt, Le.liquid), r = m(st, null), i = m(yt, null), a = m(ot, null) ?? y(!1), o = !!r || e.length > 0 || t.length > 0, s = e.length > 0 || t.length > 0;
2333
2334
  async function c() {
2334
2335
  if (r) {
2335
2336
  a.value = !0;
@@ -2360,12 +2361,12 @@ function ui() {
2360
2361
  }
2361
2362
  //#endregion
2362
2363
  //#region src/utils/mergeTagNodeSpec.ts
2363
- function di(e, t, n) {
2364
- return ue(e, n) ? {
2364
+ function mi(e, t, n) {
2365
+ return de(e, n) ? {
2365
2366
  type: "logicMergeTagNode",
2366
2367
  attrs: {
2367
2368
  value: e,
2368
- keyword: ge(e, n)
2369
+ keyword: _e(e, n)
2369
2370
  }
2370
2371
  } : {
2371
2372
  type: "mergeTagNode",
@@ -2377,15 +2378,15 @@ function di(e, t, n) {
2377
2378
  }
2378
2379
  //#endregion
2379
2380
  //#region src/utils/insertLogicTag.ts
2380
- function fi(e) {
2381
+ function hi(e) {
2381
2382
  return "before" in e && "after" in e;
2382
2383
  }
2383
- function pi(e, t, n) {
2384
- if (!fi(t)) {
2385
- e.chain().focus().insertContent(di(t.value, t.label, n)).run();
2384
+ function gi(e, t, n) {
2385
+ if (!hi(t)) {
2386
+ e.chain().focus().insertContent(mi(t.value, t.label, n)).run();
2386
2387
  return;
2387
2388
  }
2388
- let r = di(t.before, t.label, n), i = di(t.after, t.label, n), { from: a, to: o } = e.state.selection;
2389
+ let r = mi(t.before, t.label, n), i = mi(t.after, t.label, n), { from: a, to: o } = e.state.selection;
2389
2390
  if (a !== o) {
2390
2391
  e.chain().focus().insertContentAt(o, i).insertContentAt(a, r).run();
2391
2392
  return;
@@ -2394,20 +2395,20 @@ function pi(e, t, n) {
2394
2395
  }
2395
2396
  //#endregion
2396
2397
  //#region src/utils/linkColorExtension.ts
2397
- function mi(e) {
2398
+ function _i(e) {
2398
2399
  if (!e) return null;
2399
2400
  let t = e.trim();
2400
2401
  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;
2401
2402
  }
2402
- function hi(e) {
2403
+ function vi(e) {
2403
2404
  return e.extend({ addAttributes() {
2404
2405
  return {
2405
2406
  ...this.parent?.(),
2406
2407
  color: {
2407
2408
  default: null,
2408
- parseHTML: (e) => mi(Jt(e.style.color)),
2409
+ parseHTML: (e) => _i(Zt(e.style.color)),
2409
2410
  renderHTML: (e) => {
2410
- let t = mi(e.color);
2411
+ let t = _i(e.color);
2411
2412
  return t ? { style: `color: ${t}` } : {};
2412
2413
  }
2413
2414
  }
@@ -2416,9 +2417,9 @@ function hi(e) {
2416
2417
  }
2417
2418
  //#endregion
2418
2419
  //#region src/composables/useRichTextLinkDialog.ts
2419
- function gi(e, t = Ie.liquid) {
2420
+ function yi(e, t = Le.liquid) {
2420
2421
  let n = y(!1), r = y(""), i = y(""), a = y(null);
2421
- ri(a, n);
2422
+ oi(a, n);
2422
2423
  function o() {
2423
2424
  let t = e.value?.getAttributes("link") ?? {};
2424
2425
  r.value = t.href || "", i.value = t.color || "", n.value = !0;
@@ -2427,7 +2428,7 @@ function gi(e, t = Ie.liquid) {
2427
2428
  if (r.value) {
2428
2429
  let t = u(r.value);
2429
2430
  if (t !== null) {
2430
- let n = mi(i.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
2431
+ let n = _i(i.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
2431
2432
  n && typeof e.value?.commands.unsetColor == "function" && r?.unsetColor(), r?.run();
2432
2433
  }
2433
2434
  }
@@ -2477,15 +2478,15 @@ function gi(e, t = Ie.liquid) {
2477
2478
  }
2478
2479
  //#endregion
2479
2480
  //#region src/composables/useRichTextEditor.ts
2480
- function _i(t) {
2481
- let n = m(Ot, null), { mergeTags: r, canRequestMergeTag: a, isRequesting: o, requestMergeTag: s, syntax: c, autocomplete: u } = ln(), { canInsertLogicTag: d, isRequesting: f, requestLogicTag: h } = ui(), g = m(ot, null), _ = (l(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", v = me(c), b = e(null), x = () => ve(n?.content?.value?.settings ?? { locale: "en" });
2481
+ function bi(t) {
2482
+ let n = m(jt, null), { mergeTags: r, canRequestMergeTag: a, isRequesting: o, requestMergeTag: s, syntax: c, autocomplete: u } = fn(), { canInsertLogicTag: d, isRequesting: f, requestLogicTag: h } = pi(), g = m(Bt, null), _ = (l(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", v = he(c), b = e(null), x = () => ye(n?.content?.value?.settings ?? { locale: "en" });
2482
2483
  p(x, (e) => {
2483
2484
  let t = b.value?.view.dom;
2484
2485
  t && t.setAttribute("dir", e);
2485
2486
  });
2486
- let { showLinkDialog: S, linkUrl: C, linkColor: w, linkDialogRef: T, openLinkDialog: E, insertLink: D, removeLink: O, closeLinkDialog: k, handleLinkKeydown: A } = gi(b, c), { start: j, stop: M } = qe(() => b.value?.commands.focus("end"), 0, { immediate: !1 }), N = e(null), ee = y(!0), P = y(null), te = !1;
2487
- async function F() {
2488
- P.value = null, ee.value = !0;
2487
+ let { showLinkDialog: S, linkUrl: C, linkColor: w, linkDialogRef: T, openLinkDialog: E, insertLink: D, removeLink: O, closeLinkDialog: k, handleLinkKeydown: A } = yi(b, c), { start: j, stop: M } = Je(() => b.value?.commands.focus("end"), 0, { immediate: !1 }), ee = e(null), te = y(!0), N = y(null), ne = !1;
2488
+ async function P() {
2489
+ N.value = null, te.value = !0;
2489
2490
  try {
2490
2491
  let { TiptapEditor: e, EC: i, extensions: a } = await t.loadExtensions({
2491
2492
  mergeTags: r,
@@ -2494,8 +2495,8 @@ function _i(t) {
2494
2495
  autocompleteEnabled: u,
2495
2496
  suggestionEmptyText: _
2496
2497
  });
2497
- if (te) return;
2498
- N.value = i;
2498
+ if (ne) return;
2499
+ ee.value = i;
2499
2500
  let o = /* @__PURE__ */ new Map();
2500
2501
  a.forEach((e, t) => o.set(e.name, t));
2501
2502
  let s = new e({
@@ -2504,27 +2505,27 @@ function _i(t) {
2504
2505
  editable: !0,
2505
2506
  editorProps: { attributes: { dir: x() } },
2506
2507
  onUpdate: ({ editor: e }) => {
2507
- te || n && n.updateBlock(t.blockId(), { content: e.getHTML() });
2508
+ ne || n && n.updateBlock(t.blockId(), { content: e.getHTML() });
2508
2509
  }
2509
2510
  });
2510
- if (te) {
2511
+ if (ne) {
2511
2512
  s.destroy();
2512
2513
  return;
2513
2514
  }
2514
- b.value = s, ee.value = !1, j();
2515
+ b.value = s, te.value = !1, j();
2515
2516
  } catch (e) {
2516
- if (te) return;
2517
- Kt.error(`[${t.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, e), P.value = e instanceof Error ? e.message : "Failed to load editor", ee.value = !1;
2517
+ if (ne) return;
2518
+ Yt.error(`[${t.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, e), N.value = e instanceof Error ? e.message : "Failed to load editor", te.value = !1;
2518
2519
  }
2519
2520
  }
2520
- function I() {
2521
- b.value?.destroy(), b.value = null, F();
2521
+ function F() {
2522
+ b.value?.destroy(), b.value = null, P();
2522
2523
  }
2523
- F();
2524
- let L = p(() => t.blockContent(), (e) => {
2524
+ P();
2525
+ let I = p(() => t.blockContent(), (e) => {
2525
2526
  b.value && b.value.getHTML() !== e && b.value.commands.setContent(e, { emitUpdate: !1 });
2526
2527
  });
2527
- function ne(e) {
2528
+ function re(e) {
2528
2529
  if (o.value || f.value) return;
2529
2530
  let n = e.composedPath(), r = n.find((e) => e instanceof HTMLElement);
2530
2531
  if (!r) return;
@@ -2532,26 +2533,26 @@ function _i(t) {
2532
2533
  let i = n.some((e) => e instanceof HTMLElement && e.classList.contains("tpl-color-popover"));
2533
2534
  r.closest(".tpl-text-editor-wrapper") || r.closest(".tpl-text-toolbar") || r.closest(".tpl-link-dialog") || i || t.onDone();
2534
2535
  }
2535
- Ze(document, "mousedown", ne), i(() => {
2536
- te = !0, L(), M(), b.value?.destroy();
2536
+ Qe(document, "mousedown", re), i(() => {
2537
+ ne = !0, I(), M(), b.value?.destroy();
2537
2538
  });
2538
- async function R() {
2539
+ async function L() {
2539
2540
  let e = await s();
2540
- te || (e && b.value ? b.value.chain().focus().insertMergeTag({
2541
+ ne || (e && b.value ? b.value.chain().focus().insertMergeTag({
2541
2542
  label: e.label,
2542
2543
  value: e.value
2543
2544
  }).run() : b.value?.commands.focus());
2544
2545
  }
2545
- async function re() {
2546
+ async function ie() {
2546
2547
  let e = await h();
2547
- te || (e && b.value ? pi(b.value, e, c) : b.value?.commands.focus());
2548
+ ne || (e && b.value ? gi(b.value, e, c) : b.value?.commands.focus());
2548
2549
  }
2549
2550
  return {
2550
2551
  editor: b,
2551
- EditorContent: N,
2552
- isLoading: ee,
2553
- initError: P,
2554
- retry: I,
2552
+ EditorContent: ee,
2553
+ isLoading: te,
2554
+ initError: N,
2555
+ retry: F,
2555
2556
  showLinkDialog: S,
2556
2557
  linkUrl: C,
2557
2558
  linkColor: w,
@@ -2567,36 +2568,36 @@ function _i(t) {
2567
2568
  removeLink: O,
2568
2569
  closeLinkDialog: k,
2569
2570
  handleLinkKeydown: A,
2570
- handleAddMergeTag: R,
2571
- handleAddLogicTag: re
2571
+ handleAddMergeTag: L,
2572
+ handleAddLogicTag: ie
2572
2573
  };
2573
2574
  }
2574
2575
  //#endregion
2575
2576
  //#region src/composables/useSmallScreenNotice.ts
2576
- var vi = "(max-width: 767px)";
2577
- function yi(e) {
2578
- let t = Qe(vi);
2577
+ var xi = "(max-width: 767px)";
2578
+ function Si(e) {
2579
+ let t = $e(xi);
2579
2580
  return {
2580
2581
  isSmallScreen: t,
2581
- showNotice: F(() => (te(e) ?? !0) && t.value)
2582
+ showNotice: P(() => (ne(e) ?? !0) && t.value)
2582
2583
  };
2583
2584
  }
2584
2585
  //#endregion
2585
2586
  //#region src/components/blocks/CustomBlock.vue?vue&type=script&setup=true&lang.ts
2586
- var bi = { class: "tpl:w-full" }, xi = {
2587
+ var Ci = { class: "tpl:w-full" }, wi = {
2587
2588
  key: 0,
2588
2589
  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)]"
2589
- }, Si = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ci = {
2590
+ }, Ti = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ei = {
2590
2591
  key: 1,
2591
2592
  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)]"
2592
- }, wi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ti = {
2593
+ }, Di = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Oi = {
2593
2594
  key: 2,
2594
2595
  class: "tpl:relative"
2595
- }, Ei = ["innerHTML"], Di = {
2596
+ }, ki = ["innerHTML"], Ai = {
2596
2597
  key: 0,
2597
2598
  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]",
2598
2599
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
2599
- }, Oi = /* @__PURE__ */ L({
2600
+ }, ji = /* @__PURE__ */ I({
2600
2601
  __name: "CustomBlock",
2601
2602
  props: {
2602
2603
  block: {},
@@ -2604,19 +2605,19 @@ var bi = { class: "tpl:w-full" }, xi = {
2604
2605
  },
2605
2606
  emits: ["fetchData"],
2606
2607
  setup(e, { emit: n }) {
2607
- let r = e, i = n, { t: a } = Gt(), o = m(zt, null), s = y(""), c = y(!1), l = F(() => o?.getDefinition(r.block.customType)), u = F(() => !!l.value), { isFetching: d, fetch: h, needsFetch: g, hasDataSource: _ } = wn({
2608
+ let r = e, i = n, { t: a } = Jt(), o = m(Ht, null), s = y(""), c = y(!1), l = P(() => o?.getDefinition(r.block.customType)), u = P(() => !!l.value), { isFetching: d, fetch: h, needsFetch: g, hasDataSource: _ } = Dn({
2608
2609
  definition: l,
2609
- block: F(() => r.block),
2610
+ block: P(() => r.block),
2610
2611
  onUpdate: (e, t) => {
2611
2612
  i("fetchData", {
2612
2613
  fieldValues: e,
2613
2614
  dataSourceFetched: t
2614
2615
  });
2615
2616
  }
2616
- }), v = m(rt, []), b = m(lt, null), S = F(() => {
2617
+ }), v = m(at, gt), b = m(St, null), S = P(() => {
2617
2618
  if (!b?.value) return r.block;
2618
2619
  let e = {};
2619
- for (let [t, n] of Object.entries(r.block.fieldValues)) e[t] = typeof n == "string" ? Ce(n, v) : n;
2620
+ for (let [t, n] of Object.entries(r.block.fieldValues)) e[t] = typeof n == "string" ? we(n, v.value) : n;
2620
2621
  return {
2621
2622
  ...r.block,
2622
2623
  fieldValues: e
@@ -2633,67 +2634,67 @@ var bi = { class: "tpl:w-full" }, xi = {
2633
2634
  }
2634
2635
  }
2635
2636
  }
2636
- let O = Je(D, 150);
2637
+ let O = Ye(D, 150);
2637
2638
  return f(() => {
2638
2639
  D();
2639
2640
  }), p(() => r.block.fieldValues, () => {
2640
2641
  O();
2641
2642
  }, { deep: !0 }), p(() => b?.value, () => {
2642
2643
  O();
2643
- }), (e, n) => (t(), w("div", bi, [u.value ? c.value ? (t(), w("div", Ci, [T(x(rn), {
2644
+ }), (e, n) => (t(), w("div", Ci, [u.value ? c.value ? (t(), w("div", Ei, [T(x(sn), {
2644
2645
  size: 24,
2645
2646
  class: "tpl:text-[var(--tpl-danger)]"
2646
- }), C("span", wi, k(x(a).customBlocks.renderError), 1)])) : (t(), w("div", Ti, [C("div", { innerHTML: s.value }, null, 8, Ei), x(_) && x(g) ? (t(), w("div", Di, [x(d) ? (t(), M(on, {
2647
+ }), C("span", Di, k(x(a).customBlocks.renderError), 1)])) : (t(), w("div", Oi, [C("div", { innerHTML: s.value }, null, 8, ki), x(_) && x(g) ? (t(), w("div", Ai, [x(d) ? (t(), M(ln, {
2647
2648
  key: 1,
2648
2649
  class: "tpl:w-48"
2649
2650
  })) : (t(), w("button", {
2650
2651
  key: 0,
2651
2652
  type: "button",
2652
2653
  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)]",
2653
- onClick: n[0] ||= R((...e) => x(h) && x(h)(...e), ["stop"])
2654
- }, [l.value?.icon ? (t(), M(ti, {
2654
+ onClick: n[0] ||= L((...e) => x(h) && x(h)(...e), ["stop"])
2655
+ }, [l.value?.icon ? (t(), M(ii, {
2655
2656
  key: 0,
2656
2657
  icon: l.value.icon,
2657
2658
  size: 16
2658
- }, null, 8, ["icon"])) : I("", !0), E(" " + k(l.value?.dataSource?.label || x(a).customBlocks.dataSource.fetchButton), 1)]))])) : I("", !0)])) : (t(), w("div", xi, [T(x(Yr), {
2659
+ }, null, 8, ["icon"])) : F("", !0), E(" " + k(l.value?.dataSource?.label || x(a).customBlocks.dataSource.fetchButton), 1)]))])) : F("", !0)])) : (t(), w("div", wi, [T(x(Qr), {
2659
2660
  size: 24,
2660
2661
  class: "tpl:text-[var(--tpl-warning)]"
2661
- }), C("span", Si, k(x(a).customBlocks.definitionNotFound), 1)]))]));
2662
+ }), C("span", Ti, k(x(a).customBlocks.definitionNotFound), 1)]))]));
2662
2663
  }
2663
- }), ki = { class: "tpl:w-full" }, Ai = /* @__PURE__ */ L({
2664
+ }), Mi = { class: "tpl:w-full" }, Ni = /* @__PURE__ */ I({
2664
2665
  __name: "DividerBlock",
2665
2666
  props: {
2666
2667
  block: {},
2667
2668
  viewport: {}
2668
2669
  },
2669
2670
  setup(e) {
2670
- let r = e, i = F(() => ({
2671
+ let r = e, i = P(() => ({
2671
2672
  borderTop: `${r.block.thickness}px ${r.block.lineStyle} ${r.block.color}`,
2672
2673
  width: r.block.width === "full" ? "100%" : `${r.block.width}px`,
2673
2674
  margin: r.block.width === "full" ? "0" : "0 auto"
2674
2675
  }));
2675
- return (e, r) => (t(), w("div", ki, [C("hr", {
2676
+ return (e, r) => (t(), w("div", Mi, [C("hr", {
2676
2677
  class: "tpl:m-0 tpl:border-none",
2677
2678
  style: n(i.value)
2678
2679
  }, null, 4)]));
2679
2680
  }
2680
- }), ji = { class: "tpl:w-full" }, Mi = ["srcdoc", "title"], Ni = {
2681
+ }), Pi = { class: "tpl:w-full" }, Fi = ["srcdoc", "title"], Ii = {
2681
2682
  key: 1,
2682
2683
  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)]"
2683
- }, Pi = {
2684
+ }, Li = {
2684
2685
  key: 0,
2685
2686
  class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
2686
- }, Fi = {
2687
+ }, Ri = {
2687
2688
  key: 1,
2688
2689
  class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
2689
- }, Ii = /* @__PURE__ */ L({
2690
+ }, zi = /* @__PURE__ */ I({
2690
2691
  __name: "HtmlBlock",
2691
2692
  props: {
2692
2693
  block: {},
2693
2694
  viewport: {}
2694
2695
  },
2695
2696
  setup(e) {
2696
- let r = e, { t: a } = Gt(), o = m(wt, !1), s = F(() => r.block.content.trim().length > 0), c = F(() => o && s.value), l = m(rt, []), u = m(lt, null), d = F(() => u?.value ? Ce(r.block.content, l) : r.block.content), f = y(null), h = y(60), g = null;
2697
+ let r = e, { t: a } = Jt(), o = m(Dt, !1), s = P(() => r.block.content.trim().length > 0), c = P(() => o && s.value), l = m(at, gt), u = m(St, null), d = P(() => u?.value ? we(r.block.content, l.value) : r.block.content), f = y(null), h = y(60), g = null;
2697
2698
  function _() {
2698
2699
  let e = f.value?.contentDocument;
2699
2700
  e && (h.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
@@ -2707,7 +2708,7 @@ var bi = { class: "tpl:w-full" }, xi = {
2707
2708
  e || (g?.disconnect(), g = null);
2708
2709
  }), i(() => {
2709
2710
  g?.disconnect(), g = null;
2710
- }), (e, r) => (t(), w("div", ji, [c.value ? (t(), w("iframe", {
2711
+ }), (e, r) => (t(), w("div", Pi, [c.value ? (t(), w("iframe", {
2711
2712
  key: 0,
2712
2713
  ref_key: "iframeRef",
2713
2714
  ref: f,
@@ -2717,36 +2718,36 @@ var bi = { class: "tpl:w-full" }, xi = {
2717
2718
  class: "tpl:block tpl:w-full tpl:border-0",
2718
2719
  style: n({ height: `${h.value}px` }),
2719
2720
  onLoad: v
2720
- }, null, 44, Mi)) : (t(), w("div", Ni, [T(x(Ur), {
2721
+ }, null, 44, Fi)) : (t(), w("div", Ii, [T(x(Kr), {
2721
2722
  size: 24,
2722
2723
  class: "tpl:text-[var(--tpl-text-dim)]"
2723
- }), s.value ? (t(), w("span", Pi, k(x(a).html.preview), 1)) : (t(), w("span", Fi, k(x(a).html.empty), 1))]))]));
2724
+ }), s.value ? (t(), w("span", Li, k(x(a).html.preview), 1)) : (t(), w("span", Ri, k(x(a).html.empty), 1))]))]));
2724
2725
  }
2725
- }), Li = "image/";
2726
- function Ri(e) {
2727
- let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || te(r), { isOverDropZone: a } = et(t, {
2726
+ }), Bi = "image/";
2727
+ function Vi(e) {
2728
+ let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || ne(r), { isOverDropZone: a } = tt(t, {
2728
2729
  preventDefaultForUnhandled: !0,
2729
2730
  onDrop: (e) => {
2730
2731
  if (!i()) return;
2731
- let t = (e ?? []).filter((e) => e.type.startsWith(Li));
2732
+ let t = (e ?? []).filter((e) => e.type.startsWith(Bi));
2732
2733
  t.length > 0 && n([t[0]]);
2733
2734
  }
2734
2735
  });
2735
- return { isOver: F(() => i() && a.value) };
2736
+ return { isOver: P(() => i() && a.value) };
2736
2737
  }
2737
2738
  //#endregion
2738
2739
  //#region src/components/blocks/ImageBlock.vue?vue&type=script&setup=true&lang.ts
2739
- var zi = ["data-drop-enabled"], Bi = {
2740
+ var Hi = ["data-drop-enabled"], Ui = {
2740
2741
  key: 0,
2741
2742
  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)]",
2742
2743
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 85%, transparent)" }
2743
- }, Vi = ["href"], Hi = ["src", "alt"], Ui = ["src", "alt"], Wi = {
2744
+ }, Wi = ["href"], Gi = ["src", "alt"], Ki = ["src", "alt"], qi = {
2744
2745
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
2745
2746
  style: { opacity: "0.7" }
2746
- }, Gi = ["href"], Ki = ["src", "alt"], qi = ["src", "alt"], Ji = {
2747
+ }, Ji = ["href"], Yi = ["src", "alt"], Xi = ["src", "alt"], Zi = {
2747
2748
  key: 4,
2748
2749
  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)]"
2749
- }, Yi = ["aria-label"], Xi = { key: 1 }, Zi = /* @__PURE__ */ L({
2750
+ }, Qi = ["aria-label"], $i = { key: 1 }, ea = /* @__PURE__ */ I({
2750
2751
  __name: "ImageBlock",
2751
2752
  props: {
2752
2753
  block: {},
@@ -2754,7 +2755,7 @@ var zi = ["data-drop-enabled"], Bi = {
2754
2755
  },
2755
2756
  emits: ["update"],
2756
2757
  setup(e, { emit: r }) {
2757
- let i = e, a = r, { t: o } = Gt(), { syntax: s } = ln(), c = m(ht, null), l = m(Tt, null), u = F(() => !!c), d = un();
2758
+ let i = e, a = r, { t: o } = Jt(), { syntax: s } = fn(), c = m(lt, null), l = m(Ot, null), u = P(() => !!c), d = pn();
2758
2759
  async function f() {
2759
2760
  let e = await c?.({ accept: ["images"] });
2760
2761
  if (d.alive && e) {
@@ -2762,7 +2763,7 @@ var zi = ["data-drop-enabled"], Bi = {
2762
2763
  e.alt && (t.alt = e.alt), a("update", t);
2763
2764
  }
2764
2765
  }
2765
- let p = y(), h = y(!1), g = F(() => (l?.value ?? !!c) && !h.value && !D.value);
2766
+ let p = y(), h = y(!1), g = P(() => (l?.value ?? !!c) && !h.value && !D.value);
2766
2767
  async function _(e) {
2767
2768
  if (c) {
2768
2769
  h.value = !0;
@@ -2781,11 +2782,11 @@ var zi = ["data-drop-enabled"], Bi = {
2781
2782
  }
2782
2783
  }
2783
2784
  }
2784
- let { isOver: v } = Ri({
2785
+ let { isOver: v } = Vi({
2785
2786
  target: p,
2786
2787
  enabled: g,
2787
2788
  onFiles: _
2788
- }), b = F(() => ({ textAlign: i.block.align })), S = F(() => {
2789
+ }), b = P(() => ({ textAlign: i.block.align })), S = P(() => {
2789
2790
  let e = i.block.align;
2790
2791
  return {
2791
2792
  maxWidth: "100%",
@@ -2796,7 +2797,7 @@ var zi = ["data-drop-enabled"], Bi = {
2796
2797
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
2797
2798
  marginRight: e === "center" ? "auto" : void 0
2798
2799
  };
2799
- }), D = F(() => Ne(i.block.src, s)), O = Hn(() => D.value ? void 0 : i.block.src), A = Hn(() => D.value ? i.block.placeholderUrl : void 0);
2800
+ }), D = P(() => Pe(i.block.src, s)), O = Gn(() => D.value ? void 0 : i.block.src), A = Gn(() => D.value ? i.block.placeholderUrl : void 0);
2800
2801
  return (r, i) => (t(), w("div", {
2801
2802
  ref_key: "dropZoneRef",
2802
2803
  ref: p,
@@ -2804,79 +2805,79 @@ var zi = ["data-drop-enabled"], Bi = {
2804
2805
  "data-drop-enabled": g.value,
2805
2806
  class: "tpl:relative tpl:w-full",
2806
2807
  style: n(b.value)
2807
- }, [g.value && (x(v) || h.value) ? (t(), w("div", Bi, [h.value ? (t(), w(P, { key: 0 }, [T(x(en), {
2808
+ }, [g.value && (x(v) || h.value) ? (t(), w("div", Ui, [h.value ? (t(), w(N, { key: 0 }, [T(x(rn), {
2808
2809
  class: "tpl-spinner",
2809
2810
  size: 20,
2810
2811
  "stroke-width": 2
2811
- }), E(" " + k(x(o).image.uploading), 1)], 64)) : (t(), w(P, { key: 1 }, [T(x(an), {
2812
+ }), E(" " + k(x(o).image.uploading), 1)], 64)) : (t(), w(N, { key: 1 }, [T(x(cn), {
2812
2813
  size: 20,
2813
2814
  "stroke-width": 1.5
2814
- }), E(" " + k(x(o).image.dropToUpload), 1)], 64))])) : I("", !0), e.block.src && D.value && e.block.placeholderUrl ? (t(), w(P, { key: 1 }, [e.block.linkUrl ? (t(), w("a", {
2815
+ }), E(" " + k(x(o).image.dropToUpload), 1)], 64))])) : F("", !0), e.block.src && D.value && e.block.placeholderUrl ? (t(), w(N, { key: 1 }, [e.block.linkUrl ? (t(), w("a", {
2815
2816
  key: 0,
2816
2817
  href: e.block.linkUrl,
2817
2818
  target: "_blank",
2818
2819
  rel: "noopener noreferrer",
2819
- onClick: i[0] ||= R(() => {}, ["prevent"])
2820
+ onClick: i[0] ||= L(() => {}, ["prevent"])
2820
2821
  }, [C("img", {
2821
2822
  class: "tpl:border-0",
2822
2823
  loading: "lazy",
2823
2824
  src: x(A),
2824
2825
  alt: e.block.alt || x(o).image.altTextPlaceholder,
2825
2826
  style: n(S.value)
2826
- }, null, 12, Hi)], 8, Vi)) : (t(), w("img", {
2827
+ }, null, 12, Gi)], 8, Wi)) : (t(), w("img", {
2827
2828
  key: 1,
2828
2829
  class: "tpl:border-0",
2829
2830
  src: x(A),
2830
2831
  alt: e.block.alt,
2831
2832
  style: n(S.value)
2832
- }, null, 12, Ui))], 64)) : e.block.src && D.value ? (t(), w("div", {
2833
+ }, null, 12, Ki))], 64)) : e.block.src && D.value ? (t(), w("div", {
2833
2834
  key: 2,
2834
2835
  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)]",
2835
2836
  style: n([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, S.value])
2836
- }, [T(x(qr), {
2837
+ }, [T(x(Xr), {
2837
2838
  size: 32,
2838
2839
  "stroke-width": 1.5,
2839
2840
  class: "tpl:text-[var(--tpl-primary)]",
2840
2841
  style: { opacity: "0.5" }
2841
- }), C("span", Wi, [T(Rr, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (t(), w(P, { key: 3 }, [e.block.linkUrl ? (t(), w("a", {
2842
+ }), C("span", qi, [T(Vr, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (t(), w(N, { key: 3 }, [e.block.linkUrl ? (t(), w("a", {
2842
2843
  key: 0,
2843
2844
  href: e.block.linkUrl,
2844
2845
  target: "_blank",
2845
2846
  rel: "noopener noreferrer",
2846
- onClick: i[1] ||= R(() => {}, ["prevent"])
2847
+ onClick: i[1] ||= L(() => {}, ["prevent"])
2847
2848
  }, [C("img", {
2848
2849
  class: "tpl:border-0",
2849
2850
  loading: "lazy",
2850
2851
  src: x(O),
2851
2852
  alt: e.block.alt || x(o).image.altTextPlaceholder,
2852
2853
  style: n(S.value)
2853
- }, null, 12, Ki)], 8, Gi)) : (t(), w("img", {
2854
+ }, null, 12, Yi)], 8, Ji)) : (t(), w("img", {
2854
2855
  key: 1,
2855
2856
  class: "tpl:border-0",
2856
2857
  src: x(O),
2857
2858
  alt: e.block.alt,
2858
2859
  style: n(S.value)
2859
- }, null, 12, qi))], 64)) : (t(), w("div", Ji, [u.value ? (t(), w("button", {
2860
+ }, null, 12, Xi))], 64)) : (t(), w("div", Zi, [u.value ? (t(), w("button", {
2860
2861
  key: 0,
2861
2862
  "aria-label": x(o).image.browseMedia,
2862
2863
  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)]",
2863
- onClick: R(f, ["stop"])
2864
- }, [T(x(qr), {
2864
+ onClick: L(f, ["stop"])
2865
+ }, [T(x(Xr), {
2865
2866
  size: 14,
2866
2867
  "stroke-width": 1.5
2867
- }), E(" " + k(x(o).image.browseMedia), 1)], 8, Yi)) : (t(), w("span", Xi, k(x(o).image.clickToAdd), 1))]))], 12, zi));
2868
+ }), E(" " + k(x(o).image.browseMedia), 1)], 8, Qi)) : (t(), w("span", $i, k(x(o).image.clickToAdd), 1))]))], 12, Hi));
2868
2869
  }
2869
- }), Qi = { class: "tpl:w-full" }, $i = ["href"], ea = {
2870
+ }), ta = { class: "tpl:w-full" }, na = ["href"], ra = {
2870
2871
  key: 1,
2871
2872
  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)]"
2872
- }, ta = /* @__PURE__ */ L({
2873
+ }, ia = /* @__PURE__ */ I({
2873
2874
  __name: "MenuBlock",
2874
2875
  props: {
2875
2876
  block: {},
2876
2877
  viewport: {}
2877
2878
  },
2878
2879
  setup(e) {
2879
- let r = e, { t: i } = Gt(), a = F(() => ({
2880
+ let r = e, { t: i } = Jt(), a = P(() => ({
2880
2881
  display: "flex",
2881
2882
  flexWrap: "wrap",
2882
2883
  gap: `0 ${r.block.spacing}px`,
@@ -2884,14 +2885,14 @@ var zi = ["data-drop-enabled"], Bi = {
2884
2885
  fontSize: `${r.block.fontSize}px`,
2885
2886
  fontFamily: r.block.fontFamily || "inherit",
2886
2887
  alignItems: "center"
2887
- })), o = F(() => r.block.items.length > 0);
2888
+ })), o = P(() => r.block.items.length > 0);
2888
2889
  function s(e) {
2889
2890
  return e || r.block.linkColor || r.block.color;
2890
2891
  }
2891
- return (r, c) => (t(), w("div", Qi, [o.value ? (t(), w("div", {
2892
+ return (r, c) => (t(), w("div", ta, [o.value ? (t(), w("div", {
2892
2893
  key: 0,
2893
2894
  style: n(a.value)
2894
- }, [(t(!0), w(P, null, u(e.block.items, (r, i) => (t(), w(P, { key: r.id }, [C("a", {
2895
+ }, [(t(!0), w(N, null, u(e.block.items, (r, i) => (t(), w(N, { key: r.id }, [C("a", {
2895
2896
  href: r.url || "#",
2896
2897
  class: "tpl:cursor-default tpl:no-underline",
2897
2898
  style: n({
@@ -2899,16 +2900,16 @@ var zi = ["data-drop-enabled"], Bi = {
2899
2900
  fontWeight: r.bold ? "bold" : "normal",
2900
2901
  textDecoration: r.underline ? "underline" : "none"
2901
2902
  }),
2902
- onClick: c[0] ||= R(() => {}, ["prevent"])
2903
- }, [T(Rr, { text: r.text || "..." }, null, 8, ["text"])], 12, $i), i < e.block.items.length - 1 ? (t(), w("span", {
2903
+ onClick: c[0] ||= L(() => {}, ["prevent"])
2904
+ }, [T(Vr, { text: r.text || "..." }, null, 8, ["text"])], 12, na), i < e.block.items.length - 1 ? (t(), w("span", {
2904
2905
  key: 0,
2905
2906
  style: n({
2906
2907
  color: e.block.separatorColor,
2907
2908
  padding: `0 ${e.block.spacing}px`
2908
2909
  })
2909
- }, k(e.block.separator), 5)) : I("", !0)], 64))), 128))], 4)) : (t(), w("div", ea, [T(x(Jr), { size: 16 }), C("span", null, k(x(i).menu.addLinks), 1)]))]));
2910
+ }, k(e.block.separator), 5)) : F("", !0)], 64))), 128))], 4)) : (t(), w("div", ra, [T(x(Zr), { size: 16 }), C("span", null, k(x(i).menu.addLinks), 1)]))]));
2910
2911
  }
2911
- }), na = /* @__PURE__ */ new Set([
2912
+ }), aa = /* @__PURE__ */ new Set([
2912
2913
  "http",
2913
2914
  "https",
2914
2915
  "mailto",
@@ -2918,7 +2919,7 @@ var zi = ["data-drop-enabled"], Bi = {
2918
2919
  "sms",
2919
2920
  "xmpp",
2920
2921
  "cid"
2921
- ]), ra = /* @__PURE__ */ new Set([
2922
+ ]), oa = /* @__PURE__ */ new Set([
2922
2923
  "SCRIPT",
2923
2924
  "STYLE",
2924
2925
  "IFRAME",
@@ -2928,7 +2929,7 @@ var zi = ["data-drop-enabled"], Bi = {
2928
2929
  "META",
2929
2930
  "BASE",
2930
2931
  "FORM"
2931
- ]), ia = /* @__PURE__ */ new Set([
2932
+ ]), sa = /* @__PURE__ */ new Set([
2932
2933
  "href",
2933
2934
  "xlink:href",
2934
2935
  "formaction",
@@ -2937,16 +2938,16 @@ var zi = ["data-drop-enabled"], Bi = {
2937
2938
  "background",
2938
2939
  "poster"
2939
2940
  ]);
2940
- function aa(e, t) {
2941
+ function ca(e, t) {
2941
2942
  let n = e.replace(/[\t\n\r]/g, "").replace(/^[\u0000-\u0020]+/, "").trimEnd();
2942
2943
  if (!n || n.startsWith("#")) return !0;
2943
2944
  let r = /^([a-z][a-z0-9+.-]*):/i.exec(n);
2944
2945
  if (!r) return !0;
2945
2946
  let i = r[1].toLowerCase();
2946
- return na.has(i) ? !0 : t && i === "data" ? /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i.test(n) : !1;
2947
+ return aa.has(i) ? !0 : t && i === "data" ? /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i.test(n) : !1;
2947
2948
  }
2948
- function oa(e) {
2949
- if (ra.has(e.tagName)) {
2949
+ function la(e) {
2950
+ if (oa.has(e.tagName)) {
2950
2951
  e.remove();
2951
2952
  return;
2952
2953
  }
@@ -2958,29 +2959,29 @@ function oa(e) {
2958
2959
  e.removeAttribute(n);
2959
2960
  continue;
2960
2961
  }
2961
- if (ia.has(t)) {
2962
- aa(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n);
2962
+ if (sa.has(t)) {
2963
+ ca(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n);
2963
2964
  continue;
2964
2965
  }
2965
2966
  if (t === "src") {
2966
- aa(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n);
2967
+ ca(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n);
2967
2968
  continue;
2968
2969
  }
2969
2970
  t === "srcdoc" && e.removeAttribute(n);
2970
2971
  }
2971
2972
  let n = Array.from(e.children);
2972
- for (let e of n) oa(e);
2973
+ for (let e of n) la(e);
2973
2974
  }
2974
- function sa(e) {
2975
+ function ua(e) {
2975
2976
  if (typeof DOMParser > "u") return e;
2976
2977
  let t = new DOMParser().parseFromString(`<!doctype html><body>${e}</body>`, "text/html").body, n = Array.from(t.children);
2977
- for (let e of n) oa(e);
2978
+ for (let e of n) la(e);
2978
2979
  return t.innerHTML;
2979
2980
  }
2980
2981
  //#endregion
2981
2982
  //#region src/composables/useEditableTextBlock.ts
2982
- function ca(e) {
2983
- let t = m(rt, []), n = m(lt, null), { syntax: r } = ln(), i = F(() => n?.value ? xe(e(), t) : oe(e(), t)), a = F(() => sa(Ke(i.value, r))), o = y(!1), s = y(null), { top: c, left: l } = $e(s), { toLocal: u } = Zt(), d = F(() => u({
2983
+ function da(e) {
2984
+ let t = m(at, gt), n = m(St, null), { syntax: r } = fn(), i = P(() => n?.value ? Se(e(), t.value) : se(e(), t.value)), a = P(() => ua(qe(i.value, r))), o = y(!1), s = y(null), { top: c, left: l } = et(s), { toLocal: u } = en(), d = P(() => u({
2984
2985
  top: c.value - 8,
2985
2986
  left: l.value
2986
2987
  }));
@@ -3001,14 +3002,14 @@ function ca(e) {
3001
3002
  }
3002
3003
  //#endregion
3003
3004
  //#region src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
3004
- var la = ["innerHTML"], ua = /* @__PURE__ */ L({
3005
+ var fa = ["innerHTML"], pa = /* @__PURE__ */ I({
3005
3006
  __name: "ParagraphBlock",
3006
3007
  props: {
3007
3008
  block: {},
3008
3009
  viewport: {}
3009
3010
  },
3010
3011
  setup(e) {
3011
- let n = e, r = b(() => import("./ParagraphEditor-1E9yzOfk.js")), { isEditing: i, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = ca(() => n.block.content);
3012
+ let n = e, r = b(() => import("./ParagraphEditor-jMKLLTa8.js")), { isEditing: i, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = da(() => n.block.content);
3012
3013
  return (n, u) => (t(), w("div", {
3013
3014
  ref_key: "blockRef",
3014
3015
  ref: a,
@@ -3027,54 +3028,54 @@ var la = ["innerHTML"], ua = /* @__PURE__ */ L({
3027
3028
  key: 1,
3028
3029
  class: "tpl-text-content tpl:outline-none",
3029
3030
  innerHTML: x(s)
3030
- }, null, 8, la))], 544));
3031
+ }, null, 8, fa))], 544));
3031
3032
  }
3032
3033
  });
3033
3034
  //#endregion
3034
3035
  //#region src/utils/blockComponentResolver.ts
3035
- function da(e) {
3036
+ function ma(e) {
3036
3037
  let t = { fontFamily: e.fontFamily };
3037
3038
  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;
3038
3039
  }
3039
- function fa(e, t, n) {
3040
+ function ha(e, t, n) {
3040
3041
  if (t) {
3041
3042
  let n = t.getComponent(e);
3042
3043
  if (n) return n;
3043
3044
  }
3044
3045
  return n[e.type] ?? null;
3045
3046
  }
3046
- function pa(e) {
3047
+ function ga(e) {
3047
3048
  let { padding: t, backgroundColor: n } = e.styles, r = {
3048
3049
  padding: `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`,
3049
3050
  backgroundColor: n || "transparent"
3050
3051
  };
3051
- return (e.type === "paragraph" || e.type === "title") && (r["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? je.paragraphGap : je.paragraphGap}px`), e.type === "section" && e.borderRadius && e.borderRadius > 0 && (r.borderRadius = `${e.borderRadius}px`), r;
3052
+ return (e.type === "paragraph" || e.type === "title") && (r["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? Me.paragraphGap : Me.paragraphGap}px`), e.type === "section" && e.borderRadius && e.borderRadius > 0 && (r.borderRadius = `${e.borderRadius}px`), r;
3052
3053
  }
3053
- function ma(e) {
3054
+ function _a(e) {
3054
3055
  if (e.type !== "section" || !e.wrapper) return null;
3055
3056
  let t = e.wrapper, n = {};
3056
3057
  return t.backgroundColor && (n.backgroundColor = t.backgroundColor), t.padding && (n.padding = `${t.padding.top}px ${t.padding.right}px ${t.padding.bottom}px ${t.padding.left}px`), t.borderRadius && t.borderRadius > 0 && (n.borderRadius = `${t.borderRadius}px`), n;
3057
3058
  }
3058
3059
  //#endregion
3059
3060
  //#region src/components/blocks/BlockWrapper.vue?vue&type=script&setup=true&lang.ts
3060
- var ha = [
3061
+ var va = [
3061
3062
  "data-block-id",
3062
3063
  "data-block-type",
3063
3064
  "data-tpl-picked"
3064
- ], ga = ["aria-label"], _a = [
3065
+ ], ya = ["aria-label"], ba = [
3065
3066
  "aria-label",
3066
3067
  "aria-pressed",
3067
3068
  "title"
3068
- ], va = ["aria-label", "title"], ya = ["aria-label", "title"], ba = ["aria-label", "title"], xa = {
3069
+ ], xa = ["aria-label", "title"], Sa = ["aria-label", "title"], Ca = ["aria-label", "title"], wa = {
3069
3070
  key: 1,
3070
3071
  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"
3071
- }, Sa = { 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)]" }, Ca = {
3072
+ }, Ta = { 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)]" }, Ea = {
3072
3073
  key: 2,
3073
3074
  class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
3074
- }, wa = ["aria-label", "title"], Ta = {
3075
+ }, Da = ["aria-label", "title"], Oa = {
3075
3076
  key: 3,
3076
3077
  class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
3077
- }, Ea = ["aria-label"], Da = /*#__PURE__*/ sn(/* @__PURE__ */ L({
3078
+ }, ka = ["aria-label"], Aa = /*#__PURE__*/ un(/* @__PURE__ */ I({
3078
3079
  __name: "BlockWrapper",
3079
3080
  props: {
3080
3081
  block: {},
@@ -3086,7 +3087,7 @@ var ha = [
3086
3087
  },
3087
3088
  emits: ["select"],
3088
3089
  setup(e, { emit: r }) {
3089
- let i = b(() => import("./BlockIssueBadge-DT-FqKeC.js")), o = e, s = r, { t: c, format: l } = Gt(), u = m(_t, null), f = y(null), p = F(() => u?.liftedBlockId.value === o.block.id), h = F(() => p.value ? l(c.blockActions.dragLifted, { block: o.block.type }) : c.blockActions.drag);
3090
+ let i = b(() => import("./BlockIssueBadge-JhNgcUmZ.js")), o = e, s = r, { t: c, format: l } = Jt(), u = m(vt, null), f = y(null), p = P(() => u?.liftedBlockId.value === o.block.id), h = P(() => p.value ? l(c.blockActions.dragLifted, { block: o.block.type }) : c.blockActions.drag);
3090
3091
  async function g() {
3091
3092
  await a(), f.value?.focus();
3092
3093
  }
@@ -3109,26 +3110,26 @@ var ha = [
3109
3110
  }
3110
3111
  }
3111
3112
  }
3112
- let v = F(() => !o.viewport || !o.block.visibility ? !1 : o.block.visibility[o.viewport] === !1), S = F(() => o.previewMode === !0 && v.value), D = F(() => o.viewport ? {
3113
+ let v = P(() => !o.viewport || !o.block.visibility ? !1 : o.block.visibility[o.viewport] === !1), S = P(() => o.previewMode === !0 && v.value), D = P(() => o.viewport ? {
3113
3114
  desktop: c.viewport.desktop,
3114
3115
  mobile: c.viewport.mobile
3115
- }[o.viewport] ?? o.viewport : ""), O = F(() => !!o.block.displayCondition), A = m(Ct, null), M = m(Dt, null), N = m(Mt, {}), ee = F(() => N.savedBlocks?.isPicking.value === !0), P = F(() => !o.nested && N.savedBlocks?.isAvailable.value === !0 && N.savedBlocks?.canCreate.value === !0), te = F(() => o.isSelected && !ee.value), L = F(() => N.comments?.getBlockCount(o.block.id) ?? 0), ne = F(() => pa(o.block)), re = F(() => ma(o.block));
3116
- function ie(e) {
3116
+ }[o.viewport] ?? o.viewport : ""), O = P(() => !!o.block.displayCondition), A = m(Et, null), M = m(At, null), ee = m(Ft, {}), te = P(() => ee.savedBlocks?.isPicking.value === !0), N = P(() => !o.nested && ee.savedBlocks?.isAvailable.value === !0 && ee.savedBlocks?.canCreate.value === !0), ne = P(() => o.isSelected && !te.value), I = P(() => ee.comments?.getBlockCount(o.block.id) ?? 0), re = P(() => ga(o.block)), ie = P(() => _a(o.block));
3117
+ function ae(e) {
3117
3118
  o.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), s("select"));
3118
3119
  }
3119
- function ae() {
3120
- A?.deleteBlock(o.block.id);
3121
- }
3122
3120
  function oe() {
3123
- A?.duplicateBlock(o.block);
3121
+ A?.deleteBlock(o.block.id);
3124
3122
  }
3125
3123
  function se() {
3126
- N.savedBlocks?.startPicking(o.block.id);
3124
+ A?.duplicateBlock(o.block);
3127
3125
  }
3128
3126
  function ce() {
3127
+ ee.savedBlocks?.startPicking(o.block.id);
3128
+ }
3129
+ function le() {
3129
3130
  M?.toggleBlock(o.block.id);
3130
3131
  }
3131
- return (r, a) => S.value ? I("", !0) : (t(), w("div", {
3132
+ return (r, a) => S.value ? F("", !0) : (t(), w("div", {
3132
3133
  key: 0,
3133
3134
  class: j(["tpl-block tpl:group tpl:relative tpl:cursor-pointer tpl:rounded-sm tpl:transition-shadow", {
3134
3135
  "tpl-block--selected": e.isSelected,
@@ -3139,10 +3140,10 @@ var ha = [
3139
3140
  "data-block-id": e.block.id,
3140
3141
  "data-block-type": e.block.type,
3141
3142
  "data-tpl-picked": e.picked || void 0,
3142
- onClick: ie
3143
+ onClick: ae
3143
3144
  }, [
3144
3145
  T(x(i), { "block-id": e.block.id }, null, 8, ["block-id"]),
3145
- te.value ? (t(), w("div", {
3146
+ ne.value ? (t(), w("div", {
3146
3147
  key: 0,
3147
3148
  role: "toolbar",
3148
3149
  "aria-label": x(c).blockActions.drag,
@@ -3157,98 +3158,98 @@ var ha = [
3157
3158
  "aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
3158
3159
  title: x(c).blockActions.drag,
3159
3160
  onKeydown: _
3160
- }, [T(x(Kr), {
3161
+ }, [T(x(Yr), {
3161
3162
  size: 14,
3162
3163
  "stroke-width": 1.5
3163
- })], 40, _a),
3164
+ })], 40, ba),
3164
3165
  C("button", {
3165
3166
  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",
3166
3167
  "aria-label": x(c).blockActions.duplicate,
3167
3168
  title: x(c).blockActions.duplicate,
3168
- onClick: R(oe, ["stop"])
3169
- }, [T(x($t), {
3169
+ onClick: L(se, ["stop"])
3170
+ }, [T(x(nn), {
3170
3171
  size: 14,
3171
3172
  "stroke-width": 1.5
3172
- })], 8, va),
3173
- P.value ? (t(), w("button", {
3173
+ })], 8, xa),
3174
+ N.value ? (t(), w("button", {
3174
3175
  key: 0,
3175
3176
  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",
3176
3177
  "aria-label": x(c).blockActions.saveAsBlock,
3177
3178
  title: x(c).blockActions.saveAsBlock,
3178
- onClick: R(se, ["stop"])
3179
- }, [T(x(Vr), {
3179
+ onClick: L(ce, ["stop"])
3180
+ }, [T(x(Wr), {
3180
3181
  size: 14,
3181
3182
  "stroke-width": 1.5
3182
- })], 8, ya)) : I("", !0),
3183
+ })], 8, Sa)) : F("", !0),
3183
3184
  C("button", {
3184
3185
  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",
3185
3186
  "aria-label": x(c).blockActions.delete,
3186
3187
  title: x(c).blockActions.delete,
3187
- onClick: R(ae, ["stop"])
3188
- }, [T(x(nn), {
3188
+ onClick: L(oe, ["stop"])
3189
+ }, [T(x(on), {
3189
3190
  size: 14,
3190
3191
  "stroke-width": 1.5
3191
- })], 8, ba)
3192
- ], 8, ga)) : I("", !0),
3193
- v.value ? (t(), w("div", xa, [C("span", Sa, [T(x(Wr), {
3192
+ })], 8, Ca)
3193
+ ], 8, ya)) : F("", !0),
3194
+ v.value ? (t(), w("div", wa, [C("span", Ta, [T(x(qr), {
3194
3195
  size: 12,
3195
3196
  "stroke-width": 1.5
3196
- }), E(" " + k(x(l)(x(c).blockActions.hiddenOnViewport, { viewport: D.value })), 1)])])) : I("", !0),
3197
- O.value && !v.value ? (t(), w("div", Ca, [C("button", {
3197
+ }), E(" " + k(x(l)(x(c).blockActions.hiddenOnViewport, { viewport: D.value })), 1)])])) : F("", !0),
3198
+ O.value && !v.value ? (t(), w("div", Ea, [C("button", {
3198
3199
  "data-testid": "condition-toggle",
3199
3200
  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)]",
3200
3201
  "aria-label": x(c).blockActions.conditionToggle,
3201
3202
  title: e.block.displayCondition?.label,
3202
- onClick: R(ce, ["stop"])
3203
- }, [T(x(Gr), {
3203
+ onClick: L(le, ["stop"])
3204
+ }, [T(x(Jr), {
3204
3205
  size: 12,
3205
3206
  "stroke-width": 2
3206
- })], 8, wa)])) : I("", !0),
3207
- L.value > 0 && !v.value ? (t(), w("div", Ta, [C("button", {
3207
+ })], 8, Da)])) : F("", !0),
3208
+ I.value > 0 && !v.value ? (t(), w("div", Oa, [C("button", {
3208
3209
  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)]",
3209
- "aria-label": x(l)(x(c).blockActions.comments, { count: String(L.value) }),
3210
- onClick: a[0] ||= R((t) => x(N).comments?.openForBlock(e.block.id), ["stop"])
3211
- }, [T(x(tn), {
3210
+ "aria-label": x(l)(x(c).blockActions.comments, { count: String(I.value) }),
3211
+ onClick: a[0] ||= L((t) => x(ee).comments?.openForBlock(e.block.id), ["stop"])
3212
+ }, [T(x(an), {
3212
3213
  size: 12,
3213
3214
  "stroke-width": 2.5
3214
- }), E(" " + k(L.value), 1)], 8, Ea)])) : I("", !0),
3215
- re.value ? (t(), w("div", {
3215
+ }), E(" " + k(I.value), 1)], 8, ka)])) : F("", !0),
3216
+ ie.value ? (t(), w("div", {
3216
3217
  key: 4,
3217
3218
  class: "tpl-section-wrapper",
3218
- style: n(re.value)
3219
+ style: n(ie.value)
3219
3220
  }, [C("div", {
3220
3221
  class: "tpl-block-content",
3221
- style: n(ne.value)
3222
+ style: n(re.value)
3222
3223
  }, [d(r.$slots, "default", {}, void 0, !0)], 4)], 4)) : (t(), w("div", {
3223
3224
  key: 5,
3224
3225
  class: "tpl-block-content",
3225
- style: n(ne.value)
3226
+ style: n(re.value)
3226
3227
  }, [d(r.$slots, "default", {}, void 0, !0)], 4))
3227
- ], 10, ha));
3228
+ ], 10, va));
3228
3229
  }
3229
3230
  }), [["__scopeId", "data-v-2c239048"]]);
3230
3231
  //#endregion
3231
3232
  //#region src/utils/unwrapParagraph.ts
3232
- function Oa(e) {
3233
+ function ja(e) {
3233
3234
  let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
3234
3235
  return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
3235
3236
  }
3236
3237
  //#endregion
3237
3238
  //#region src/components/blocks/TitleBlock.vue
3238
- var ka = /* @__PURE__ */ L({
3239
+ var Ma = /* @__PURE__ */ I({
3239
3240
  __name: "TitleBlock",
3240
3241
  props: {
3241
3242
  block: {},
3242
3243
  viewport: {}
3243
3244
  },
3244
3245
  setup(e) {
3245
- let r = e, i = b(() => import("./TitleEditor-CLJ68Ty4.js")), { isEditing: a, blockRef: s, toolbarPosition: c, resolvedContent: l, handleDoubleClick: u, handleEditorDone: d } = ca(() => r.block.content), f = F(() => {
3246
+ let r = e, i = b(() => import("./TitleEditor-C4BGPXnf.js")), { isEditing: a, blockRef: s, toolbarPosition: c, resolvedContent: l, handleDoubleClick: u, handleEditorDone: d } = da(() => r.block.content), f = P(() => {
3246
3247
  let e = {
3247
- fontSize: `${Re[r.block.level]}px`,
3248
+ fontSize: `${ze[r.block.level]}px`,
3248
3249
  textAlign: r.block.textAlign
3249
3250
  };
3250
3251
  return r.block.color && (e.color = r.block.color), r.block.fontFamily && (e.fontFamily = r.block.fontFamily), e;
3251
- }), p = F(() => `h${r.block.level}`), m = F(() => Oa(l.value));
3252
+ }), p = P(() => `h${r.block.level}`), m = P(() => ja(l.value));
3252
3253
  return (r, l) => (t(), w("div", {
3253
3254
  ref_key: "blockRef",
3254
3255
  ref: s,
@@ -3274,88 +3275,88 @@ var ka = /* @__PURE__ */ L({
3274
3275
  });
3275
3276
  //#endregion
3276
3277
  //#region src/utils/sectionColumnDrop.ts
3277
- function Aa(e) {
3278
+ function Na(e) {
3278
3279
  return e.dataset.blockType !== "section" && e.dataset.paletteType !== "section";
3279
3280
  }
3280
3281
  //#endregion
3281
3282
  //#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
3282
- var ja = Object.defineProperty, Ma = Object.getOwnPropertySymbols, Na = Object.prototype.hasOwnProperty, Pa = Object.prototype.propertyIsEnumerable, Fa = (e, t, n) => t in e ? ja(e, t, {
3283
+ var Pa = Object.defineProperty, Fa = Object.getOwnPropertySymbols, Ia = Object.prototype.hasOwnProperty, La = Object.prototype.propertyIsEnumerable, Ra = (e, t, n) => t in e ? Pa(e, t, {
3283
3284
  enumerable: !0,
3284
3285
  configurable: !0,
3285
3286
  writable: !0,
3286
3287
  value: n
3287
- }) : e[t] = n, Ia = (e, t) => {
3288
- for (var n in t ||= {}) Na.call(t, n) && Fa(e, n, t[n]);
3289
- if (Ma) for (var n of Ma(t)) Pa.call(t, n) && Fa(e, n, t[n]);
3288
+ }) : e[t] = n, za = (e, t) => {
3289
+ for (var n in t ||= {}) Ia.call(t, n) && Ra(e, n, t[n]);
3290
+ if (Fa) for (var n of Fa(t)) La.call(t, n) && Ra(e, n, t[n]);
3290
3291
  return e;
3291
- }, La = (e, t) => {
3292
+ }, Ba = (e, t) => {
3292
3293
  var n = {};
3293
- for (var r in e) Na.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3294
- if (e != null && Ma) for (var r of Ma(e)) t.indexOf(r) < 0 && Pa.call(e, r) && (n[r] = e[r]);
3294
+ for (var r in e) Ia.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3295
+ if (e != null && Fa) for (var r of Fa(e)) t.indexOf(r) < 0 && La.call(e, r) && (n[r] = e[r]);
3295
3296
  return n;
3296
- }, Ra = "[vue-draggable-plus]: ";
3297
- function za(e) {
3298
- console.warn(Ra + e);
3297
+ }, Va = "[vue-draggable-plus]: ";
3298
+ function Ha(e) {
3299
+ console.warn(Va + e);
3299
3300
  }
3300
- function Ba(e) {
3301
- console.error(Ra + e);
3301
+ function Ua(e) {
3302
+ console.error(Va + e);
3302
3303
  }
3303
- function Va(e, t, n) {
3304
+ function Wa(e, t, n) {
3304
3305
  return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
3305
3306
  }
3306
- function Ha(e) {
3307
+ function Ga(e) {
3307
3308
  return e.replace(/-(\w)/g, (e, t) => t ? t.toUpperCase() : "");
3308
3309
  }
3309
- function Ua(e) {
3310
- return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[Ha(n)] = e[n]), t), {});
3310
+ function Ka(e) {
3311
+ return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[Ga(n)] = e[n]), t), {});
3311
3312
  }
3312
- function Wa(e, t) {
3313
+ function qa(e, t) {
3313
3314
  return Array.isArray(e) && e.splice(t, 1), e;
3314
3315
  }
3315
- function Ga(e, t, n) {
3316
+ function Ja(e, t, n) {
3316
3317
  return Array.isArray(e) && e.splice(t, 0, n), e;
3317
3318
  }
3318
- function Ka(e) {
3319
+ function Ya(e) {
3319
3320
  return e === void 0;
3320
3321
  }
3321
- function qa(e) {
3322
+ function Xa(e) {
3322
3323
  return typeof e == "string";
3323
3324
  }
3324
- function Ja(e, t, n) {
3325
+ function Za(e, t, n) {
3325
3326
  let r = e.children[n];
3326
3327
  e.insertBefore(t, r);
3327
3328
  }
3328
- function Ya(e) {
3329
+ function Qa(e) {
3329
3330
  e.parentNode && e.parentNode.removeChild(e);
3330
3331
  }
3331
- function Xa(e, t = document) {
3332
+ function $a(e, t = document) {
3332
3333
  let n = null;
3333
- return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || za(`Element not found: ${e}`), n;
3334
+ return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || Ha(`Element not found: ${e}`), n;
3334
3335
  }
3335
- function Za(e, t, n = null) {
3336
+ function eo(e, t, n = null) {
3336
3337
  return function(...r) {
3337
3338
  return e.apply(n, r), t.apply(n, r);
3338
3339
  };
3339
3340
  }
3340
- function Qa(e, t) {
3341
- let n = Ia({}, e);
3341
+ function to(e, t) {
3342
+ let n = za({}, e);
3342
3343
  return Object.keys(t).forEach((r) => {
3343
- n[r] ? n[r] = Za(e[r], t[r]) : n[r] = t[r];
3344
+ n[r] ? n[r] = eo(e[r], t[r]) : n[r] = t[r];
3344
3345
  }), n;
3345
3346
  }
3346
- function $a(e) {
3347
+ function no(e) {
3347
3348
  return e instanceof HTMLElement;
3348
3349
  }
3349
- function eo(e, t) {
3350
+ function ro(e, t) {
3350
3351
  Object.keys(e).forEach((n) => {
3351
3352
  t(n, e[n]);
3352
3353
  });
3353
3354
  }
3354
- function to(e) {
3355
+ function io(e) {
3355
3356
  return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
3356
3357
  }
3357
- var no = Object.assign;
3358
- function ro(e, t) {
3358
+ var ao = Object.assign;
3359
+ function oo(e, t) {
3359
3360
  var n = Object.keys(e);
3360
3361
  if (Object.getOwnPropertySymbols) {
3361
3362
  var r = Object.getOwnPropertySymbols(e);
@@ -3365,26 +3366,26 @@ function ro(e, t) {
3365
3366
  }
3366
3367
  return n;
3367
3368
  }
3368
- function io(e) {
3369
+ function so(e) {
3369
3370
  for (var t = 1; t < arguments.length; t++) {
3370
3371
  var n = arguments[t] == null ? {} : arguments[t];
3371
- t % 2 ? ro(Object(n), !0).forEach(function(t) {
3372
- oo(e, t, n[t]);
3373
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ro(Object(n)).forEach(function(t) {
3372
+ t % 2 ? oo(Object(n), !0).forEach(function(t) {
3373
+ lo(e, t, n[t]);
3374
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : oo(Object(n)).forEach(function(t) {
3374
3375
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
3375
3376
  });
3376
3377
  }
3377
3378
  return e;
3378
3379
  }
3379
- function ao(e) {
3380
+ function co(e) {
3380
3381
  "@babel/helpers - typeof";
3381
- return ao = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
3382
+ return co = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
3382
3383
  return typeof e;
3383
3384
  } : function(e) {
3384
3385
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
3385
- }, ao(e);
3386
+ }, co(e);
3386
3387
  }
3387
- function oo(e, t, n) {
3388
+ function lo(e, t, n) {
3388
3389
  return t in e ? Object.defineProperty(e, t, {
3389
3390
  value: n,
3390
3391
  enumerable: !0,
@@ -3392,44 +3393,44 @@ function oo(e, t, n) {
3392
3393
  writable: !0
3393
3394
  }) : e[t] = n, e;
3394
3395
  }
3395
- function so() {
3396
- return so = Object.assign || function(e) {
3396
+ function uo() {
3397
+ return uo = Object.assign || function(e) {
3397
3398
  for (var t = 1; t < arguments.length; t++) {
3398
3399
  var n = arguments[t];
3399
3400
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
3400
3401
  }
3401
3402
  return e;
3402
- }, so.apply(this, arguments);
3403
+ }, uo.apply(this, arguments);
3403
3404
  }
3404
- function co(e, t) {
3405
+ function fo(e, t) {
3405
3406
  if (e == null) return {};
3406
3407
  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]);
3407
3408
  return n;
3408
3409
  }
3409
- function lo(e, t) {
3410
+ function po(e, t) {
3410
3411
  if (e == null) return {};
3411
- var n = co(e, t), r, i;
3412
+ var n = fo(e, t), r, i;
3412
3413
  if (Object.getOwnPropertySymbols) {
3413
3414
  var a = Object.getOwnPropertySymbols(e);
3414
3415
  for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
3415
3416
  }
3416
3417
  return n;
3417
3418
  }
3418
- var uo = "1.15.2";
3419
- function fo(e) {
3419
+ var mo = "1.15.2";
3420
+ function ho(e) {
3420
3421
  if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
3421
3422
  }
3422
- var po = fo(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), mo = fo(/Edge/i), ho = fo(/firefox/i), go = fo(/safari/i) && !fo(/chrome/i) && !fo(/android/i), _o = fo(/iP(ad|od|hone)/i), vo = fo(/chrome/i) && fo(/android/i), yo = {
3423
+ var go = ho(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), _o = ho(/Edge/i), vo = ho(/firefox/i), yo = ho(/safari/i) && !ho(/chrome/i) && !ho(/android/i), bo = ho(/iP(ad|od|hone)/i), xo = ho(/chrome/i) && ho(/android/i), So = {
3423
3424
  capture: !1,
3424
3425
  passive: !1
3425
3426
  };
3426
- function z(e, t, n) {
3427
- e.addEventListener(t, n, !po && yo);
3427
+ function R(e, t, n) {
3428
+ e.addEventListener(t, n, !go && So);
3428
3429
  }
3429
- function B(e, t, n) {
3430
- e.removeEventListener(t, n, !po && yo);
3430
+ function z(e, t, n) {
3431
+ e.removeEventListener(t, n, !go && So);
3431
3432
  }
3432
- function bo(e, t) {
3433
+ function Co(e, t) {
3433
3434
  if (t) {
3434
3435
  if (t[0] === ">" && (t = t.substring(1)), e) try {
3435
3436
  if (e.matches) return e.matches(t);
@@ -3441,22 +3442,22 @@ function bo(e, t) {
3441
3442
  return !1;
3442
3443
  }
3443
3444
  }
3444
- function xo(e) {
3445
+ function wo(e) {
3445
3446
  return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
3446
3447
  }
3447
- function So(e, t, n, r) {
3448
+ function To(e, t, n, r) {
3448
3449
  if (e) {
3449
3450
  n ||= document;
3450
3451
  do {
3451
- if (t != null && (t[0] === ">" ? e.parentNode === n && bo(e, t) : bo(e, t)) || r && e === n) return e;
3452
+ if (t != null && (t[0] === ">" ? e.parentNode === n && Co(e, t) : Co(e, t)) || r && e === n) return e;
3452
3453
  if (e === n) break;
3453
- } while (e = xo(e));
3454
+ } while (e = wo(e));
3454
3455
  }
3455
3456
  return null;
3456
3457
  }
3457
- var Co = /\s+/g;
3458
- function wo(e, t, n) {
3459
- e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(Co, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(Co, " "));
3458
+ var Eo = /\s+/g;
3459
+ function B(e, t, n) {
3460
+ e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(Eo, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(Eo, " "));
3460
3461
  }
3461
3462
  function V(e, t, n) {
3462
3463
  var r = e && e.style;
@@ -3465,7 +3466,7 @@ function V(e, t, n) {
3465
3466
  !(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
3466
3467
  }
3467
3468
  }
3468
- function To(e, t) {
3469
+ function Do(e, t) {
3469
3470
  var n = "";
3470
3471
  if (typeof e == "string") n = e;
3471
3472
  else do {
@@ -3475,7 +3476,7 @@ function To(e, t) {
3475
3476
  var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
3476
3477
  return i && new i(n);
3477
3478
  }
3478
- function Eo(e, t, n) {
3479
+ function Oo(e, t, n) {
3479
3480
  if (e) {
3480
3481
  var r = e.getElementsByTagName(t), i = 0, a = r.length;
3481
3482
  if (n) for (; i < a; i++) n(r[i], i);
@@ -3483,13 +3484,13 @@ function Eo(e, t, n) {
3483
3484
  }
3484
3485
  return [];
3485
3486
  }
3486
- function Do() {
3487
+ function ko() {
3487
3488
  return document.scrollingElement || document.documentElement;
3488
3489
  }
3489
3490
  function H(e, t, n, r, i) {
3490
3491
  if (e.getBoundingClientRect || e === window) {
3491
3492
  var a, o, s, c, l, u, d;
3492
- if (e !== window && e.parentNode && e !== Do() ? (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, !po)) do
3493
+ if (e !== window && e.parentNode && e !== ko() ? (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, !go)) do
3493
3494
  if (i && i.getBoundingClientRect && (V(i, "transform") !== "none" || n && V(i, "position") !== "static")) {
3494
3495
  var f = i.getBoundingClientRect();
3495
3496
  o -= f.top + parseInt(V(i, "border-top-width")), s -= f.left + parseInt(V(i, "border-left-width")), c = o + a.height, l = s + a.width;
@@ -3497,7 +3498,7 @@ function H(e, t, n, r, i) {
3497
3498
  }
3498
3499
  while (i = i.parentNode);
3499
3500
  if (r && e !== window) {
3500
- var p = To(i || e), m = p && p.a, h = p && p.d;
3501
+ var p = Do(i || e), m = p && p.a, h = p && p.d;
3501
3502
  p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
3502
3503
  }
3503
3504
  return {
@@ -3510,18 +3511,18 @@ function H(e, t, n, r, i) {
3510
3511
  };
3511
3512
  }
3512
3513
  }
3513
- function Oo(e, t, n) {
3514
- for (var r = Po(e, !0), i = H(e)[t]; r;) {
3514
+ function Ao(e, t, n) {
3515
+ for (var r = Io(e, !0), i = H(e)[t]; r;) {
3515
3516
  var a = H(r)[n], o = void 0;
3516
3517
  if (o = i >= a, !o) return r;
3517
- if (r === Do()) break;
3518
- r = Po(r, !1);
3518
+ if (r === ko()) break;
3519
+ r = Io(r, !1);
3519
3520
  }
3520
3521
  return !1;
3521
3522
  }
3522
- function ko(e, t, n, r) {
3523
+ function jo(e, t, n, r) {
3523
3524
  for (var i = 0, a = 0, o = e.children; a < o.length;) {
3524
- if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && So(o[a], n.draggable, e, !1)) {
3525
+ if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && To(o[a], n.draggable, e, !1)) {
3525
3526
  if (i === t) return o[a];
3526
3527
  i++;
3527
3528
  }
@@ -3529,84 +3530,84 @@ function ko(e, t, n, r) {
3529
3530
  }
3530
3531
  return null;
3531
3532
  }
3532
- function Ao(e, t) {
3533
- for (var n = e.lastElementChild; n && (n === Q.ghost || V(n, "display") === "none" || t && !bo(n, t));) n = n.previousElementSibling;
3533
+ function Mo(e, t) {
3534
+ for (var n = e.lastElementChild; n && (n === Q.ghost || V(n, "display") === "none" || t && !Co(n, t));) n = n.previousElementSibling;
3534
3535
  return n || null;
3535
3536
  }
3536
- function jo(e, t) {
3537
+ function No(e, t) {
3537
3538
  var n = 0;
3538
3539
  if (!e || !e.parentNode) return -1;
3539
- for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || bo(e, t)) && n++;
3540
+ for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || Co(e, t)) && n++;
3540
3541
  return n;
3541
3542
  }
3542
- function Mo(e) {
3543
- var t = 0, n = 0, r = Do();
3543
+ function Po(e) {
3544
+ var t = 0, n = 0, r = ko();
3544
3545
  if (e) do {
3545
- var i = To(e), a = i.a, o = i.d;
3546
+ var i = Do(e), a = i.a, o = i.d;
3546
3547
  t += e.scrollLeft * a, n += e.scrollTop * o;
3547
3548
  } while (e !== r && (e = e.parentNode));
3548
3549
  return [t, n];
3549
3550
  }
3550
- function No(e, t) {
3551
+ function Fo(e, t) {
3551
3552
  for (var n in e) if (e.hasOwnProperty(n)) {
3552
3553
  for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
3553
3554
  }
3554
3555
  return -1;
3555
3556
  }
3556
- function Po(e, t) {
3557
- if (!e || !e.getBoundingClientRect) return Do();
3557
+ function Io(e, t) {
3558
+ if (!e || !e.getBoundingClientRect) return ko();
3558
3559
  var n = e, r = !1;
3559
3560
  do
3560
3561
  if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
3561
3562
  var i = V(n);
3562
3563
  if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
3563
- if (!n.getBoundingClientRect || n === document.body) return Do();
3564
+ if (!n.getBoundingClientRect || n === document.body) return ko();
3564
3565
  if (r || t) return n;
3565
3566
  r = !0;
3566
3567
  }
3567
3568
  }
3568
3569
  while (n = n.parentNode);
3569
- return Do();
3570
+ return ko();
3570
3571
  }
3571
- function Fo(e, t) {
3572
+ function Lo(e, t) {
3572
3573
  if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
3573
3574
  return e;
3574
3575
  }
3575
- function Io(e, t) {
3576
+ function Ro(e, t) {
3576
3577
  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);
3577
3578
  }
3578
- var Lo;
3579
- function Ro(e, t) {
3579
+ var zo;
3580
+ function Bo(e, t) {
3580
3581
  return function() {
3581
- if (!Lo) {
3582
+ if (!zo) {
3582
3583
  var n = arguments, r = this;
3583
- n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), Lo = setTimeout(function() {
3584
- Lo = void 0;
3584
+ n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), zo = setTimeout(function() {
3585
+ zo = void 0;
3585
3586
  }, t);
3586
3587
  }
3587
3588
  };
3588
3589
  }
3589
- function zo() {
3590
- clearTimeout(Lo), Lo = void 0;
3590
+ function Vo() {
3591
+ clearTimeout(zo), zo = void 0;
3591
3592
  }
3592
- function Bo(e, t, n) {
3593
+ function Ho(e, t, n) {
3593
3594
  e.scrollLeft += t, e.scrollTop += n;
3594
3595
  }
3595
- function Vo(e) {
3596
+ function Uo(e) {
3596
3597
  var t = window.Polymer, n = window.jQuery || window.Zepto;
3597
3598
  return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
3598
3599
  }
3599
- function Ho(e, t, n) {
3600
+ function Wo(e, t, n) {
3600
3601
  var r = {};
3601
3602
  return Array.from(e.children).forEach(function(i) {
3602
- if (So(i, t.draggable, e, !1) && !i.animated && i !== n) {
3603
+ if (To(i, t.draggable, e, !1) && !i.animated && i !== n) {
3603
3604
  var a = H(i);
3604
3605
  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);
3605
3606
  }
3606
3607
  }), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
3607
3608
  }
3608
- var Uo = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
3609
- function Wo() {
3609
+ var Go = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
3610
+ function Ko() {
3610
3611
  var e = [], t;
3611
3612
  return {
3612
3613
  captureAnimationState: function() {
@@ -3616,9 +3617,9 @@ function Wo() {
3616
3617
  target: t,
3617
3618
  rect: H(t)
3618
3619
  });
3619
- var n = io({}, e[e.length - 1].rect);
3620
+ var n = so({}, e[e.length - 1].rect);
3620
3621
  if (t.thisAnimationDuration) {
3621
- var r = To(t, !0);
3622
+ var r = Do(t, !0);
3622
3623
  r && (n.top -= r.f, n.left -= r.e);
3623
3624
  }
3624
3625
  t.fromRect = n;
@@ -3629,7 +3630,7 @@ function Wo() {
3629
3630
  e.push(t);
3630
3631
  },
3631
3632
  removeAnimationState: function(t) {
3632
- e.splice(No(e, { target: t }), 1);
3633
+ e.splice(Fo(e, { target: t }), 1);
3633
3634
  },
3634
3635
  animateAll: function(n) {
3635
3636
  var r = this;
@@ -3639,8 +3640,8 @@ function Wo() {
3639
3640
  }
3640
3641
  var i = !1, a = 0;
3641
3642
  e.forEach(function(e) {
3642
- var t = 0, n = e.target, o = n.fromRect, s = H(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = To(n, !0);
3643
- d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Io(c, s) && !Io(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = Ko(u, c, l, r.options)), Io(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() {
3643
+ var t = 0, n = e.target, o = n.fromRect, s = H(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = Do(n, !0);
3644
+ d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Ro(c, s) && !Ro(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)), Ro(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() {
3644
3645
  n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
3645
3646
  }, t), n.thisAnimationDuration = t);
3646
3647
  }), clearTimeout(t), i ? t = setTimeout(function() {
@@ -3650,26 +3651,26 @@ function Wo() {
3650
3651
  animate: function(e, t, n, r) {
3651
3652
  if (r) {
3652
3653
  V(e, "transition", ""), V(e, "transform", "");
3653
- var i = To(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
3654
- e.animatingX = !!s, e.animatingY = !!c, V(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = Go(e), V(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), V(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
3654
+ var i = Do(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
3655
+ e.animatingX = !!s, e.animatingY = !!c, V(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = qo(e), V(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), V(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
3655
3656
  V(e, "transition", ""), V(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
3656
3657
  }, r);
3657
3658
  }
3658
3659
  }
3659
3660
  };
3660
3661
  }
3661
- function Go(e) {
3662
+ function qo(e) {
3662
3663
  return e.offsetWidth;
3663
3664
  }
3664
- function Ko(e, t, n, r) {
3665
+ function Jo(e, t, n, r) {
3665
3666
  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;
3666
3667
  }
3667
- var qo = [], Jo = { initializeByDefault: !0 }, Yo = {
3668
+ var Yo = [], Xo = { initializeByDefault: !0 }, Zo = {
3668
3669
  mount: function(e) {
3669
- for (var t in Jo) Jo.hasOwnProperty(t) && !(t in e) && (e[t] = Jo[t]);
3670
- qo.forEach(function(t) {
3670
+ for (var t in Xo) Xo.hasOwnProperty(t) && !(t in e) && (e[t] = Xo[t]);
3671
+ Yo.forEach(function(t) {
3671
3672
  if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
3672
- }), qo.push(e);
3673
+ }), Yo.push(e);
3673
3674
  },
3674
3675
  pluginEvent: function(e, t, n) {
3675
3676
  var r = this;
@@ -3677,16 +3678,16 @@ var qo = [], Jo = { initializeByDefault: !0 }, Yo = {
3677
3678
  r.eventCanceled = !0;
3678
3679
  };
3679
3680
  var i = e + "Global";
3680
- qo.forEach(function(r) {
3681
- t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](io({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](io({ sortable: t }, n)));
3681
+ Yo.forEach(function(r) {
3682
+ t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](so({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](so({ sortable: t }, n)));
3682
3683
  });
3683
3684
  },
3684
3685
  initializePlugins: function(e, t, n, r) {
3685
- for (var i in qo.forEach(function(r) {
3686
+ for (var i in Yo.forEach(function(r) {
3686
3687
  var i = r.pluginName;
3687
3688
  if (e.options[i] || r.initializeByDefault) {
3688
3689
  var a = new r(e, t, e.options);
3689
- a.sortable = e, a.options = e.options, e[i] = a, so(n, a.defaults);
3690
+ a.sortable = e, a.options = e.options, e[i] = a, uo(n, a.defaults);
3690
3691
  }
3691
3692
  }), e.options) if (e.options.hasOwnProperty(i)) {
3692
3693
  var a = this.modifyOption(e, i, e.options[i]);
@@ -3695,56 +3696,56 @@ var qo = [], Jo = { initializeByDefault: !0 }, Yo = {
3695
3696
  },
3696
3697
  getEventProperties: function(e, t) {
3697
3698
  var n = {};
3698
- return qo.forEach(function(r) {
3699
- typeof r.eventProperties == "function" && so(n, r.eventProperties.call(t[r.pluginName], e));
3699
+ return Yo.forEach(function(r) {
3700
+ typeof r.eventProperties == "function" && uo(n, r.eventProperties.call(t[r.pluginName], e));
3700
3701
  }), n;
3701
3702
  },
3702
3703
  modifyOption: function(e, t, n) {
3703
3704
  var r;
3704
- return qo.forEach(function(i) {
3705
+ return Yo.forEach(function(i) {
3705
3706
  e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
3706
3707
  }), r;
3707
3708
  }
3708
3709
  };
3709
- function Xo(e) {
3710
+ function Qo(e) {
3710
3711
  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;
3711
- if (t ||= n && n[Uo], t) {
3712
+ if (t ||= n && n[Go], t) {
3712
3713
  var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
3713
- window.CustomEvent && !po && !mo ? h = new CustomEvent(r, {
3714
+ window.CustomEvent && !go && !_o ? h = new CustomEvent(r, {
3714
3715
  bubbles: !0,
3715
3716
  cancelable: !0
3716
3717
  }) : (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;
3717
- var v = io(io({}, m), Yo.getEventProperties(r, t));
3718
+ var v = so(so({}, m), Zo.getEventProperties(r, t));
3718
3719
  for (var y in v) h[y] = v[y];
3719
3720
  n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
3720
3721
  }
3721
3722
  }
3722
- var Zo = ["evt"], U = function(e, t) {
3723
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = lo(n, Zo);
3724
- Yo.pluginEvent.bind(Q)(e, t, io({
3723
+ var $o = ["evt"], U = function(e, t) {
3724
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = po(n, $o);
3725
+ Zo.pluginEvent.bind(Q)(e, t, so({
3725
3726
  dragEl: G,
3726
3727
  parentEl: K,
3727
3728
  ghostEl: q,
3728
3729
  rootEl: J,
3729
- nextEl: Qo,
3730
- lastDownEl: $o,
3730
+ nextEl: es,
3731
+ lastDownEl: ts,
3731
3732
  cloneEl: Y,
3732
- cloneHidden: es,
3733
- dragStarted: hs,
3733
+ cloneHidden: ns,
3734
+ dragStarted: _s,
3734
3735
  putSortable: X,
3735
3736
  activeSortable: Q.active,
3736
3737
  originalEvent: r,
3737
- oldIndex: ts,
3738
- oldDraggableIndex: rs,
3739
- newIndex: ns,
3740
- newDraggableIndex: is,
3741
- hideGhostForTarget: Ns,
3742
- unhideGhostForTarget: Ps,
3738
+ oldIndex: rs,
3739
+ oldDraggableIndex: as,
3740
+ newIndex: is,
3741
+ newDraggableIndex: os,
3742
+ hideGhostForTarget: Fs,
3743
+ unhideGhostForTarget: Is,
3743
3744
  cloneNowHidden: function() {
3744
- es = !0;
3745
+ ns = !0;
3745
3746
  },
3746
3747
  cloneNowShown: function() {
3747
- es = !1;
3748
+ ns = !1;
3748
3749
  },
3749
3750
  dispatchSortableEvent: function(e) {
3750
3751
  W({
@@ -3756,45 +3757,45 @@ var Zo = ["evt"], U = function(e, t) {
3756
3757
  }, i));
3757
3758
  };
3758
3759
  function W(e) {
3759
- Xo(io({
3760
+ Qo(so({
3760
3761
  putSortable: X,
3761
3762
  cloneEl: Y,
3762
3763
  targetEl: G,
3763
3764
  rootEl: J,
3764
- oldIndex: ts,
3765
- oldDraggableIndex: rs,
3766
- newIndex: ns,
3767
- newDraggableIndex: is
3765
+ oldIndex: rs,
3766
+ oldDraggableIndex: as,
3767
+ newIndex: is,
3768
+ newDraggableIndex: os
3768
3769
  }, e));
3769
3770
  }
3770
- var G, K, q, J, Qo, $o, Y, es, ts, ns, rs, is, as, X, os = !1, ss = !1, cs = [], ls, us, ds, fs, ps, ms, hs, gs, _s, vs = !1, ys = !1, bs, Z, xs = [], Ss = !1, Cs = [], ws = typeof document < "u", Ts = _o, Es = mo || po ? "cssFloat" : "float", Ds = ws && !vo && !_o && "draggable" in document.createElement("div"), Os = function() {
3771
- if (ws) {
3772
- if (po) return !1;
3771
+ var G, K, q, J, es, ts, Y, ns, rs, is, as, os, ss, X, cs = !1, ls = !1, us = [], ds, fs, ps, ms, hs, gs, _s, vs, ys, bs = !1, xs = !1, Ss, Z, Cs = [], ws = !1, Ts = [], Es = typeof document < "u", Ds = bo, Os = _o || go ? "cssFloat" : "float", ks = Es && !xo && !bo && "draggable" in document.createElement("div"), As = function() {
3772
+ if (Es) {
3773
+ if (go) return !1;
3773
3774
  var e = document.createElement("x");
3774
3775
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
3775
3776
  }
3776
- }(), ks = function(e, t) {
3777
- var n = V(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = ko(e, 0, t), a = ko(e, 1, t), o = i && V(i), s = a && V(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + H(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + H(a).width;
3777
+ }(), js = function(e, t) {
3778
+ var n = V(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = jo(e, 0, t), a = jo(e, 1, t), o = i && V(i), s = a && V(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + H(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + H(a).width;
3778
3779
  if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
3779
3780
  if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
3780
3781
  if (i && o.float && o.float !== "none") {
3781
3782
  var u = o.float === "left" ? "left" : "right";
3782
3783
  return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
3783
3784
  }
3784
- return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Es] === "none" || a && n[Es] === "none" && c + l > r) ? "vertical" : "horizontal";
3785
- }, As = function(e, t, n) {
3785
+ return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Os] === "none" || a && n[Os] === "none" && c + l > r) ? "vertical" : "horizontal";
3786
+ }, Ms = function(e, t, n) {
3786
3787
  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;
3787
3788
  return r === o || i === s || r + a / 2 === o + c / 2;
3788
- }, js = function(e, t) {
3789
+ }, Ns = function(e, t) {
3789
3790
  var n;
3790
- return cs.some(function(r) {
3791
- var i = r[Uo].options.emptyInsertThreshold;
3792
- if (i && !Ao(r)) {
3791
+ return us.some(function(r) {
3792
+ var i = r[Go].options.emptyInsertThreshold;
3793
+ if (i && !Mo(r)) {
3793
3794
  var a = H(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
3794
3795
  if (o && s) return n = r;
3795
3796
  }
3796
3797
  }), n;
3797
- }, Ms = function(e) {
3798
+ }, Ps = function(e) {
3798
3799
  function t(e, n) {
3799
3800
  return function(r, i, a, o) {
3800
3801
  var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
@@ -3807,31 +3808,31 @@ var G, K, q, J, Qo, $o, Y, es, ts, ns, rs, is, as, X, os = !1, ss = !1, cs = [],
3807
3808
  };
3808
3809
  }
3809
3810
  var n = {}, r = e.group;
3810
- (!r || ao(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;
3811
- }, Ns = function() {
3812
- !Os && q && V(q, "display", "none");
3813
- }, Ps = function() {
3814
- !Os && q && V(q, "display", "");
3811
+ (!r || co(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;
3812
+ }, Fs = function() {
3813
+ !As && q && V(q, "display", "none");
3814
+ }, Is = function() {
3815
+ !As && q && V(q, "display", "");
3815
3816
  };
3816
- ws && !vo && document.addEventListener("click", function(e) {
3817
- if (ss) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), ss = !1, !1;
3817
+ Es && !xo && document.addEventListener("click", function(e) {
3818
+ if (ls) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), ls = !1, !1;
3818
3819
  }, !0);
3819
- var Fs = function(e) {
3820
+ var Ls = function(e) {
3820
3821
  if (G) {
3821
3822
  e = e.touches ? e.touches[0] : e;
3822
- var t = js(e.clientX, e.clientY);
3823
+ var t = Ns(e.clientX, e.clientY);
3823
3824
  if (t) {
3824
3825
  var n = {};
3825
3826
  for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
3826
- n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[Uo]._onDragOver(n);
3827
+ n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[Go]._onDragOver(n);
3827
3828
  }
3828
3829
  }
3829
- }, Is = function(e) {
3830
- G && G.parentNode[Uo]._isOutsideThisEl(e.target);
3830
+ }, Rs = function(e) {
3831
+ G && G.parentNode[Go]._isOutsideThisEl(e.target);
3831
3832
  };
3832
3833
  function Q(e, t) {
3833
3834
  if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
3834
- this.el = e, this.options = t = so({}, t), e[Uo] = this;
3835
+ this.el = e, this.options = t = uo({}, t), e[Go] = this;
3835
3836
  var n = {
3836
3837
  group: null,
3837
3838
  sort: !0,
@@ -3844,7 +3845,7 @@ function Q(e, t) {
3844
3845
  invertedSwapThreshold: null,
3845
3846
  removeCloneOnHide: !0,
3846
3847
  direction: function() {
3847
- return ks(e, this.options);
3848
+ return js(e, this.options);
3848
3849
  },
3849
3850
  ghostClass: "sortable-ghost",
3850
3851
  chosenClass: "sortable-chosen",
@@ -3871,17 +3872,17 @@ function Q(e, t) {
3871
3872
  x: 0,
3872
3873
  y: 0
3873
3874
  },
3874
- supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !go,
3875
+ supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !yo,
3875
3876
  emptyInsertThreshold: 5
3876
3877
  };
3877
- for (var r in Yo.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
3878
- for (var i in Ms(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
3879
- this.nativeDraggable = !t.forceFallback && Ds, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? z(e, "pointerdown", this._onTapStart) : (z(e, "mousedown", this._onTapStart), z(e, "touchstart", this._onTapStart)), this.nativeDraggable && (z(e, "dragover", this), z(e, "dragenter", this)), cs.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), so(this, Wo());
3878
+ for (var r in Zo.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
3879
+ for (var i in Ps(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
3880
+ this.nativeDraggable = !t.forceFallback && ks, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? R(e, "pointerdown", this._onTapStart) : (R(e, "mousedown", this._onTapStart), R(e, "touchstart", this._onTapStart)), this.nativeDraggable && (R(e, "dragover", this), R(e, "dragenter", this)), us.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), uo(this, Ko());
3880
3881
  }
3881
3882
  Q.prototype = {
3882
3883
  constructor: Q,
3883
3884
  _isOutsideThisEl: function(e) {
3884
- !this.el.contains(e) && e !== this.el && (gs = null);
3885
+ !this.el.contains(e) && e !== this.el && (vs = null);
3885
3886
  },
3886
3887
  _getDirection: function(e, t) {
3887
3888
  return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, G) : this.options.direction;
@@ -3889,8 +3890,8 @@ Q.prototype = {
3889
3890
  _onTapStart: function(e) {
3890
3891
  if (e.cancelable) {
3891
3892
  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;
3892
- if (Ks(n), !G && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && go && s && s.tagName.toUpperCase() === "SELECT") && (s = So(s, r.draggable, n, !1), !(s && s.animated) && $o !== s)) {
3893
- if (ts = jo(s), rs = jo(s, r.draggable), typeof l == "function") {
3893
+ if (Js(n), !G && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && yo && s && s.tagName.toUpperCase() === "SELECT") && (s = To(s, r.draggable, n, !1), !(s && s.animated) && ts !== s)) {
3894
+ if (rs = No(s), as = No(s, r.draggable), typeof l == "function") {
3894
3895
  if (l.call(this, e, s, this)) {
3895
3896
  W({
3896
3897
  sortable: t,
@@ -3903,7 +3904,7 @@ Q.prototype = {
3903
3904
  return;
3904
3905
  }
3905
3906
  } else if (l && (l = l.split(",").some(function(r) {
3906
- if (r = So(c, r.trim(), n, !1), r) return W({
3907
+ if (r = To(c, r.trim(), n, !1), r) return W({
3907
3908
  sortable: t,
3908
3909
  rootEl: r,
3909
3910
  name: "filter",
@@ -3915,7 +3916,7 @@ Q.prototype = {
3915
3916
  i && e.cancelable && e.preventDefault();
3916
3917
  return;
3917
3918
  }
3918
- r.handle && !So(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
3919
+ r.handle && !To(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
3919
3920
  }
3920
3921
  }
3921
3922
  },
@@ -3923,28 +3924,28 @@ Q.prototype = {
3923
3924
  var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
3924
3925
  if (n && !G && n.parentNode === i) {
3925
3926
  var c = H(n);
3926
- if (J = i, G = n, K = G.parentNode, Qo = G.nextSibling, $o = n, as = a.group, Q.dragged = G, ls = {
3927
+ if (J = i, G = n, K = G.parentNode, es = G.nextSibling, ts = n, ss = a.group, Q.dragged = G, ds = {
3927
3928
  target: G,
3928
3929
  clientX: (t || e).clientX,
3929
3930
  clientY: (t || e).clientY
3930
- }, ps = ls.clientX - c.left, ms = ls.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, G.style["will-change"] = "all", s = function() {
3931
+ }, hs = ds.clientX - c.left, gs = ds.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, G.style["will-change"] = "all", s = function() {
3931
3932
  if (U("delayEnded", r, { evt: e }), Q.eventCanceled) {
3932
3933
  r._onDrop();
3933
3934
  return;
3934
3935
  }
3935
- r._disableDelayedDragEvents(), !ho && r.nativeDraggable && (G.draggable = !0), r._triggerDragStart(e, t), W({
3936
+ r._disableDelayedDragEvents(), !vo && r.nativeDraggable && (G.draggable = !0), r._triggerDragStart(e, t), W({
3936
3937
  sortable: r,
3937
3938
  name: "choose",
3938
3939
  originalEvent: e
3939
- }), wo(G, a.chosenClass, !0);
3940
+ }), B(G, a.chosenClass, !0);
3940
3941
  }, a.ignore.split(",").forEach(function(e) {
3941
- Eo(G, e.trim(), zs);
3942
- }), z(o, "dragover", Fs), z(o, "mousemove", Fs), z(o, "touchmove", Fs), z(o, "mouseup", r._onDrop), z(o, "touchend", r._onDrop), z(o, "touchcancel", r._onDrop), ho && this.nativeDraggable && (this.options.touchStartThreshold = 4, G.draggable = !0), U("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(mo || po))) {
3942
+ Oo(G, e.trim(), Vs);
3943
+ }), R(o, "dragover", Ls), R(o, "mousemove", Ls), R(o, "touchmove", Ls), R(o, "mouseup", r._onDrop), R(o, "touchend", r._onDrop), R(o, "touchcancel", r._onDrop), vo && this.nativeDraggable && (this.options.touchStartThreshold = 4, G.draggable = !0), U("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(_o || go))) {
3943
3944
  if (Q.eventCanceled) {
3944
3945
  this._onDrop();
3945
3946
  return;
3946
3947
  }
3947
- z(o, "mouseup", r._disableDelayedDrag), z(o, "touchend", r._disableDelayedDrag), z(o, "touchcancel", r._disableDelayedDrag), z(o, "mousemove", r._delayedDragTouchMoveHandler), z(o, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && z(o, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
3948
+ R(o, "mouseup", r._disableDelayedDrag), R(o, "touchend", r._disableDelayedDrag), R(o, "touchcancel", r._disableDelayedDrag), R(o, "mousemove", r._delayedDragTouchMoveHandler), R(o, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && R(o, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
3948
3949
  } else s();
3949
3950
  }
3950
3951
  },
@@ -3953,25 +3954,25 @@ Q.prototype = {
3953
3954
  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();
3954
3955
  },
3955
3956
  _disableDelayedDrag: function() {
3956
- G && zs(G), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
3957
+ G && Vs(G), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
3957
3958
  },
3958
3959
  _disableDelayedDragEvents: function() {
3959
3960
  var e = this.el.ownerDocument;
3960
- B(e, "mouseup", this._disableDelayedDrag), B(e, "touchend", this._disableDelayedDrag), B(e, "touchcancel", this._disableDelayedDrag), B(e, "mousemove", this._delayedDragTouchMoveHandler), B(e, "touchmove", this._delayedDragTouchMoveHandler), B(e, "pointermove", this._delayedDragTouchMoveHandler);
3961
+ z(e, "mouseup", this._disableDelayedDrag), z(e, "touchend", this._disableDelayedDrag), z(e, "touchcancel", this._disableDelayedDrag), z(e, "mousemove", this._delayedDragTouchMoveHandler), z(e, "touchmove", this._delayedDragTouchMoveHandler), z(e, "pointermove", this._delayedDragTouchMoveHandler);
3961
3962
  },
3962
3963
  _triggerDragStart: function(e, t) {
3963
- t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? z(document, "pointermove", this._onTouchMove) : t ? z(document, "touchmove", this._onTouchMove) : z(document, "mousemove", this._onTouchMove) : (z(G, "dragend", this), z(J, "dragstart", this._onDragStart));
3964
+ t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? R(document, "pointermove", this._onTouchMove) : t ? R(document, "touchmove", this._onTouchMove) : R(document, "mousemove", this._onTouchMove) : (R(G, "dragend", this), R(J, "dragstart", this._onDragStart));
3964
3965
  try {
3965
- document.selection ? qs(function() {
3966
+ document.selection ? Ys(function() {
3966
3967
  document.selection.empty();
3967
3968
  }) : window.getSelection().removeAllRanges();
3968
3969
  } catch {}
3969
3970
  },
3970
3971
  _dragStarted: function(e, t) {
3971
- if (os = !1, J && G) {
3972
- U("dragStarted", this, { evt: t }), this.nativeDraggable && z(document, "dragover", Is);
3972
+ if (cs = !1, J && G) {
3973
+ U("dragStarted", this, { evt: t }), this.nativeDraggable && R(document, "dragover", Rs);
3973
3974
  var n = this.options;
3974
- !e && wo(G, n.dragClass, !1), wo(G, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), W({
3975
+ !e && B(G, n.dragClass, !1), B(G, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), W({
3975
3976
  sortable: this,
3976
3977
  name: "start",
3977
3978
  originalEvent: t
@@ -3979,33 +3980,33 @@ Q.prototype = {
3979
3980
  } else this._nulling();
3980
3981
  },
3981
3982
  _emulateDragOver: function() {
3982
- if (us) {
3983
- this._lastX = us.clientX, this._lastY = us.clientY, Ns();
3984
- for (var e = document.elementFromPoint(us.clientX, us.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(us.clientX, us.clientY), e !== t);) t = e;
3985
- if (G.parentNode[Uo]._isOutsideThisEl(e), t) do {
3986
- if (t[Uo]) {
3983
+ if (fs) {
3984
+ this._lastX = fs.clientX, this._lastY = fs.clientY, Fs();
3985
+ for (var e = document.elementFromPoint(fs.clientX, fs.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(fs.clientX, fs.clientY), e !== t);) t = e;
3986
+ if (G.parentNode[Go]._isOutsideThisEl(e), t) do {
3987
+ if (t[Go]) {
3987
3988
  var n = void 0;
3988
- if (n = t[Uo]._onDragOver({
3989
- clientX: us.clientX,
3990
- clientY: us.clientY,
3989
+ if (n = t[Go]._onDragOver({
3990
+ clientX: fs.clientX,
3991
+ clientY: fs.clientY,
3991
3992
  target: e,
3992
3993
  rootEl: t
3993
3994
  }), n && !this.options.dragoverBubble) break;
3994
3995
  }
3995
3996
  e = t;
3996
3997
  } while (t = t.parentNode);
3997
- Ps();
3998
+ Is();
3998
3999
  }
3999
4000
  },
4000
4001
  _onTouchMove: function(e) {
4001
- if (ls) {
4002
- var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q && To(q, !0), o = q && a && a.a, s = q && a && a.d, c = Ts && Z && Mo(Z), l = (i.clientX - ls.clientX + r.x) / (o || 1) + (c ? c[0] - xs[0] : 0) / (o || 1), u = (i.clientY - ls.clientY + r.y) / (s || 1) + (c ? c[1] - xs[1] : 0) / (s || 1);
4003
- if (!Q.active && !os) {
4002
+ if (ds) {
4003
+ var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q && Do(q, !0), o = q && a && a.a, s = q && a && a.d, c = Ds && Z && Po(Z), l = (i.clientX - ds.clientX + r.x) / (o || 1) + (c ? c[0] - Cs[0] : 0) / (o || 1), u = (i.clientY - ds.clientY + r.y) / (s || 1) + (c ? c[1] - Cs[1] : 0) / (s || 1);
4004
+ if (!Q.active && !cs) {
4004
4005
  if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
4005
4006
  this._onDragStart(e, !0);
4006
4007
  }
4007
4008
  if (q) {
4008
- a ? (a.e += l - (ds || 0), a.f += u - (fs || 0)) : a = {
4009
+ a ? (a.e += l - (ps || 0), a.f += u - (ms || 0)) : a = {
4009
4010
  a: 1,
4010
4011
  b: 0,
4011
4012
  c: 0,
@@ -4014,19 +4015,19 @@ Q.prototype = {
4014
4015
  f: u
4015
4016
  };
4016
4017
  var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
4017
- V(q, "webkitTransform", d), V(q, "mozTransform", d), V(q, "msTransform", d), V(q, "transform", d), ds = l, fs = u, us = i;
4018
+ V(q, "webkitTransform", d), V(q, "mozTransform", d), V(q, "msTransform", d), V(q, "transform", d), ps = l, ms = u, fs = i;
4018
4019
  }
4019
4020
  e.cancelable && e.preventDefault();
4020
4021
  }
4021
4022
  },
4022
4023
  _appendGhost: function() {
4023
4024
  if (!q) {
4024
- var e = this.options.fallbackOnBody ? document.body : J, t = H(G, !0, Ts, !0, e), n = this.options;
4025
- if (Ts) {
4025
+ var e = this.options.fallbackOnBody ? document.body : J, t = H(G, !0, Ds, !0, e), n = this.options;
4026
+ if (Ds) {
4026
4027
  for (Z = e; V(Z, "position") === "static" && V(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
4027
- Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = Do()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = Do(), xs = Mo(Z);
4028
+ Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = ko()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = ko(), Cs = Po(Z);
4028
4029
  }
4029
- q = G.cloneNode(!0), wo(q, n.ghostClass, !1), wo(q, n.fallbackClass, !0), wo(q, n.dragClass, !0), V(q, "transition", ""), V(q, "transform", ""), V(q, "box-sizing", "border-box"), V(q, "margin", 0), V(q, "top", t.top), V(q, "left", t.left), V(q, "width", t.width), V(q, "height", t.height), V(q, "opacity", "0.8"), V(q, "position", Ts ? "absolute" : "fixed"), V(q, "zIndex", "100000"), V(q, "pointerEvents", "none"), Q.ghost = q, e.appendChild(q), V(q, "transform-origin", ps / parseInt(q.style.width) * 100 + "% " + ms / parseInt(q.style.height) * 100 + "%");
4030
+ q = G.cloneNode(!0), B(q, n.ghostClass, !1), B(q, n.fallbackClass, !0), B(q, n.dragClass, !0), V(q, "transition", ""), V(q, "transform", ""), V(q, "box-sizing", "border-box"), V(q, "margin", 0), V(q, "top", t.top), V(q, "left", t.left), V(q, "width", t.width), V(q, "height", t.height), V(q, "opacity", "0.8"), V(q, "position", Ds ? "absolute" : "fixed"), V(q, "zIndex", "100000"), V(q, "pointerEvents", "none"), Q.ghost = q, e.appendChild(q), V(q, "transform-origin", hs / parseInt(q.style.width) * 100 + "% " + gs / parseInt(q.style.height) * 100 + "%");
4030
4031
  }
4031
4032
  },
4032
4033
  _onDragStart: function(e, t) {
@@ -4035,18 +4036,18 @@ Q.prototype = {
4035
4036
  this._onDrop();
4036
4037
  return;
4037
4038
  }
4038
- U("setupClone", this), Q.eventCanceled || (Y = Vo(G), Y.removeAttribute("id"), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), wo(Y, this.options.chosenClass, !1), Q.clone = Y), n.cloneId = qs(function() {
4039
+ U("setupClone", this), Q.eventCanceled || (Y = Uo(G), Y.removeAttribute("id"), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), B(Y, this.options.chosenClass, !1), Q.clone = Y), n.cloneId = Ys(function() {
4039
4040
  U("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || J.insertBefore(Y, G), n._hideClone(), W({
4040
4041
  sortable: n,
4041
4042
  name: "clone"
4042
4043
  }));
4043
- }), !t && wo(G, i.dragClass, !0), t ? (ss = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (B(document, "mouseup", n._onDrop), B(document, "touchend", n._onDrop), B(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, G)), z(document, "drop", n), V(G, "transform", "translateZ(0)")), os = !0, n._dragStartId = qs(n._dragStarted.bind(n, t, e)), z(document, "selectstart", n), hs = !0, go && V(document.body, "user-select", "none");
4044
+ }), !t && B(G, i.dragClass, !0), t ? (ls = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (z(document, "mouseup", n._onDrop), z(document, "touchend", n._onDrop), z(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, G)), R(document, "drop", n), V(G, "transform", "translateZ(0)")), cs = !0, n._dragStartId = Ys(n._dragStarted.bind(n, t, e)), R(document, "selectstart", n), _s = !0, yo && V(document.body, "user-select", "none");
4044
4045
  },
4045
4046
  _onDragOver: function(e) {
4046
- var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = as === s, u = o.sort, d = X || c, f, p = this, m = !1;
4047
- if (Ss) return;
4047
+ var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = ss === s, u = o.sort, d = X || c, f, p = this, m = !1;
4048
+ if (ws) return;
4048
4049
  function h(o, s) {
4049
- U(o, p, io({
4050
+ U(o, p, so({
4050
4051
  evt: e,
4051
4052
  isOwner: l,
4052
4053
  axis: f ? "vertical" : "horizontal",
@@ -4058,7 +4059,7 @@ Q.prototype = {
4058
4059
  target: n,
4059
4060
  completed: _,
4060
4061
  onMove: function(n, i) {
4061
- return Rs(J, t, G, r, n, H(n), e, i);
4062
+ return Bs(J, t, G, r, n, H(n), e, i);
4062
4063
  },
4063
4064
  changed: v
4064
4065
  }, s));
@@ -4067,50 +4068,50 @@ Q.prototype = {
4067
4068
  h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
4068
4069
  }
4069
4070
  function _(r) {
4070
- return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (wo(G, X ? X.options.ghostClass : c.options.ghostClass, !1), wo(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() {
4071
+ return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (B(G, X ? X.options.ghostClass : c.options.ghostClass, !1), B(G, o.ghostClass, !0)), X !== p && p !== Q.active ? X = p : p === Q.active && X && (X = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
4071
4072
  h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
4072
- }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (gs = null), !o.dragoverBubble && !e.rootEl && n !== document && (G.parentNode[Uo]._isOutsideThisEl(e.target), !r && Fs(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
4073
+ }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (vs = null), !o.dragoverBubble && !e.rootEl && n !== document && (G.parentNode[Go]._isOutsideThisEl(e.target), !r && Ls(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
4073
4074
  }
4074
4075
  function v() {
4075
- ns = jo(G), is = jo(G, o.draggable), W({
4076
+ is = No(G), os = No(G, o.draggable), W({
4076
4077
  sortable: p,
4077
4078
  name: "change",
4078
4079
  toEl: t,
4079
- newIndex: ns,
4080
- newDraggableIndex: is,
4080
+ newIndex: is,
4081
+ newDraggableIndex: os,
4081
4082
  originalEvent: e
4082
4083
  });
4083
4084
  }
4084
- if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = So(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
4085
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = To(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
4085
4086
  if (G.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
4086
- if (ss = !1, c && !o.disabled && (l ? u || (a = K !== J) : X === this || (this.lastPutMode = as.checkPull(this, c, G, e)) && s.checkPut(this, c, G, e))) {
4087
+ if (ls = !1, c && !o.disabled && (l ? u || (a = K !== J) : X === this || (this.lastPutMode = ss.checkPull(this, c, G, e)) && s.checkPut(this, c, G, e))) {
4087
4088
  if (f = this._getDirection(e, n) === "vertical", r = H(G), h("dragOverValid"), Q.eventCanceled) return m;
4088
- if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (Qo ? J.insertBefore(G, Qo) : J.appendChild(G)), _(!0);
4089
- var y = Ao(t, o.draggable);
4090
- if (!y || Hs(e, f, this) && !y.animated) {
4089
+ if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (es ? J.insertBefore(G, es) : J.appendChild(G)), _(!0);
4090
+ var y = Mo(t, o.draggable);
4091
+ if (!y || Ws(e, f, this) && !y.animated) {
4091
4092
  if (y === G) return _(!1);
4092
- if (y && t === e.target && (n = y), n && (i = H(n)), Rs(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);
4093
- } else if (y && Vs(e, f, this)) {
4094
- var b = ko(t, 0, o, !0);
4093
+ if (y && t === e.target && (n = y), n && (i = H(n)), Bs(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);
4094
+ } else if (y && Us(e, f, this)) {
4095
+ var b = jo(t, 0, o, !0);
4095
4096
  if (b === G) return _(!1);
4096
- if (n = b, i = H(n), Rs(J, t, G, r, n, i, e, !1) !== !1) return g(), t.insertBefore(G, b), K = t, v(), _(!0);
4097
+ if (n = b, i = H(n), Bs(J, t, G, r, n, i, e, !1) !== !1) return g(), t.insertBefore(G, b), K = t, v(), _(!0);
4097
4098
  } else if (n.parentNode === t) {
4098
4099
  i = H(n);
4099
- var x = 0, S, C = G.parentNode !== t, w = !As(G.animated && G.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = Oo(n, "top", "top") || Oo(G, "top", "top"), D = E ? E.scrollTop : void 0;
4100
- gs !== n && (S = i[T], vs = !1, ys = !w && o.invertSwap || C), x = Us(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, ys, gs === n);
4100
+ var x = 0, S, C = G.parentNode !== t, w = !Ms(G.animated && G.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = Ao(n, "top", "top") || Ao(G, "top", "top"), D = E ? E.scrollTop : void 0;
4101
+ vs !== n && (S = i[T], bs = !1, xs = !w && o.invertSwap || C), x = Gs(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, xs, vs === n);
4101
4102
  var O;
4102
4103
  if (x !== 0) {
4103
- var k = jo(G);
4104
+ var k = No(G);
4104
4105
  do
4105
4106
  k -= x, O = K.children[k];
4106
4107
  while (O && (V(O, "display") === "none" || O === q));
4107
4108
  }
4108
4109
  if (x === 0 || O === n) return _(!1);
4109
- gs = n, _s = x;
4110
+ vs = n, ys = x;
4110
4111
  var A = n.nextElementSibling, j = !1;
4111
4112
  j = x === 1;
4112
- var M = Rs(J, t, G, r, n, i, e, j);
4113
- if (M !== !1) return (M === 1 || M === -1) && (j = M === 1), Ss = !0, setTimeout(Bs, 30), g(), j && !A ? t.appendChild(G) : n.parentNode.insertBefore(G, j ? A : n), E && Bo(E, 0, D - E.scrollTop), K = G.parentNode, S !== void 0 && !ys && (bs = Math.abs(S - H(n)[T])), v(), _(!0);
4113
+ var M = Bs(J, t, G, r, n, i, e, j);
4114
+ if (M !== !1) return (M === 1 || M === -1) && (j = M === 1), ws = !0, setTimeout(Hs, 30), g(), j && !A ? t.appendChild(G) : n.parentNode.insertBefore(G, j ? A : n), E && Ho(E, 0, D - E.scrollTop), K = G.parentNode, S !== void 0 && !xs && (Ss = Math.abs(S - H(n)[T])), v(), _(!0);
4114
4115
  }
4115
4116
  if (t.contains(G)) return _(!1);
4116
4117
  }
@@ -4118,26 +4119,26 @@ Q.prototype = {
4118
4119
  },
4119
4120
  _ignoreWhileAnimating: null,
4120
4121
  _offMoveEvents: function() {
4121
- B(document, "mousemove", this._onTouchMove), B(document, "touchmove", this._onTouchMove), B(document, "pointermove", this._onTouchMove), B(document, "dragover", Fs), B(document, "mousemove", Fs), B(document, "touchmove", Fs);
4122
+ z(document, "mousemove", this._onTouchMove), z(document, "touchmove", this._onTouchMove), z(document, "pointermove", this._onTouchMove), z(document, "dragover", Ls), z(document, "mousemove", Ls), z(document, "touchmove", Ls);
4122
4123
  },
4123
4124
  _offUpEvents: function() {
4124
4125
  var e = this.el.ownerDocument;
4125
- B(e, "mouseup", this._onDrop), B(e, "touchend", this._onDrop), B(e, "pointerup", this._onDrop), B(e, "touchcancel", this._onDrop), B(document, "selectstart", this);
4126
+ z(e, "mouseup", this._onDrop), z(e, "touchend", this._onDrop), z(e, "pointerup", this._onDrop), z(e, "touchcancel", this._onDrop), z(document, "selectstart", this);
4126
4127
  },
4127
4128
  _onDrop: function(e) {
4128
4129
  var t = this.el, n = this.options;
4129
- if (ns = jo(G), is = jo(G, n.draggable), U("drop", this, { evt: e }), K = G && G.parentNode, ns = jo(G), is = jo(G, n.draggable), Q.eventCanceled) {
4130
+ if (is = No(G), os = No(G, n.draggable), U("drop", this, { evt: e }), K = G && G.parentNode, is = No(G), os = No(G, n.draggable), Q.eventCanceled) {
4130
4131
  this._nulling();
4131
4132
  return;
4132
4133
  }
4133
- os = !1, ys = !1, vs = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Js(this.cloneId), Js(this._dragStartId), this.nativeDraggable && (B(document, "drop", this), B(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), go && V(document.body, "user-select", ""), V(G, "transform", ""), e && (hs && (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 && B(G, "dragend", this), zs(G), G.style["will-change"] = "", hs && !os && wo(G, X ? X.options.ghostClass : this.options.ghostClass, !1), wo(G, this.options.chosenClass, !1), W({
4134
+ cs = !1, xs = !1, bs = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Xs(this.cloneId), Xs(this._dragStartId), this.nativeDraggable && (z(document, "drop", this), z(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), yo && V(document.body, "user-select", ""), V(G, "transform", ""), e && (_s && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), q && q.parentNode && q.parentNode.removeChild(q), (J === K || X && X.lastPutMode !== "clone") && Y && Y.parentNode && Y.parentNode.removeChild(Y), G && (this.nativeDraggable && z(G, "dragend", this), Vs(G), G.style["will-change"] = "", _s && !cs && B(G, X ? X.options.ghostClass : this.options.ghostClass, !1), B(G, this.options.chosenClass, !1), W({
4134
4135
  sortable: this,
4135
4136
  name: "unchoose",
4136
4137
  toEl: K,
4137
4138
  newIndex: null,
4138
4139
  newDraggableIndex: null,
4139
4140
  originalEvent: e
4140
- }), J === K ? ns !== ts && ns >= 0 && (W({
4141
+ }), J === K ? is !== rs && is >= 0 && (W({
4141
4142
  sortable: this,
4142
4143
  name: "update",
4143
4144
  toEl: K,
@@ -4147,7 +4148,7 @@ Q.prototype = {
4147
4148
  name: "sort",
4148
4149
  toEl: K,
4149
4150
  originalEvent: e
4150
- })) : (ns >= 0 && (W({
4151
+ })) : (is >= 0 && (W({
4151
4152
  rootEl: K,
4152
4153
  name: "add",
4153
4154
  toEl: K,
@@ -4169,7 +4170,7 @@ Q.prototype = {
4169
4170
  name: "sort",
4170
4171
  toEl: K,
4171
4172
  originalEvent: e
4172
- })), X && X.save()), Q.active && ((ns == null || ns === -1) && (ns = ts, is = rs), W({
4173
+ })), X && X.save()), Q.active && ((is == null || is === -1) && (is = rs, os = as), W({
4173
4174
  sortable: this,
4174
4175
  name: "end",
4175
4176
  toEl: K,
@@ -4177,9 +4178,9 @@ Q.prototype = {
4177
4178
  }), this.save()))), this._nulling();
4178
4179
  },
4179
4180
  _nulling: function() {
4180
- U("nulling", this), J = G = K = q = Qo = Y = $o = es = ls = us = hs = ns = is = ts = rs = gs = _s = X = as = Q.dragged = Q.ghost = Q.clone = Q.active = null, Cs.forEach(function(e) {
4181
+ U("nulling", this), J = G = K = q = es = Y = ts = ns = ds = fs = _s = is = os = rs = as = vs = ys = X = ss = Q.dragged = Q.ghost = Q.clone = Q.active = null, Ts.forEach(function(e) {
4181
4182
  e.checked = !0;
4182
- }), Cs.length = ds = fs = 0;
4183
+ }), Ts.length = ps = ms = 0;
4183
4184
  },
4184
4185
  handleEvent: function(e) {
4185
4186
  switch (e.type) {
@@ -4189,20 +4190,20 @@ Q.prototype = {
4189
4190
  break;
4190
4191
  case "dragenter":
4191
4192
  case "dragover":
4192
- G && (this._onDragOver(e), Ls(e));
4193
+ G && (this._onDragOver(e), zs(e));
4193
4194
  break;
4194
4195
  case "selectstart": e.preventDefault();
4195
4196
  }
4196
4197
  },
4197
4198
  toArray: function() {
4198
- 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) || Gs(t));
4199
+ for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], To(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || qs(t));
4199
4200
  return e;
4200
4201
  },
4201
4202
  sort: function(e, t) {
4202
4203
  var n = {}, r = this.el;
4203
4204
  this.toArray().forEach(function(e, t) {
4204
4205
  var i = r.children[t];
4205
- So(i, this.options.draggable, r, !1) && (n[e] = i);
4206
+ To(i, this.options.draggable, r, !1) && (n[e] = i);
4206
4207
  }, this), t && this.captureAnimationState(), e.forEach(function(e) {
4207
4208
  n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
4208
4209
  }), t && this.animateAll();
@@ -4212,25 +4213,25 @@ Q.prototype = {
4212
4213
  e && e.set && e.set(this);
4213
4214
  },
4214
4215
  closest: function(e, t) {
4215
- return So(e, t || this.options.draggable, this.el, !1);
4216
+ return To(e, t || this.options.draggable, this.el, !1);
4216
4217
  },
4217
4218
  option: function(e, t) {
4218
4219
  var n = this.options;
4219
4220
  if (t === void 0) return n[e];
4220
- var r = Yo.modifyOption(this, e, t);
4221
- n[e] = r === void 0 ? t : r, e === "group" && Ms(n);
4221
+ var r = Zo.modifyOption(this, e, t);
4222
+ n[e] = r === void 0 ? t : r, e === "group" && Ps(n);
4222
4223
  },
4223
4224
  destroy: function() {
4224
4225
  U("destroy", this);
4225
4226
  var e = this.el;
4226
- e[Uo] = null, B(e, "mousedown", this._onTapStart), B(e, "touchstart", this._onTapStart), B(e, "pointerdown", this._onTapStart), this.nativeDraggable && (B(e, "dragover", this), B(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
4227
+ e[Go] = null, z(e, "mousedown", this._onTapStart), z(e, "touchstart", this._onTapStart), z(e, "pointerdown", this._onTapStart), this.nativeDraggable && (z(e, "dragover", this), z(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
4227
4228
  e.removeAttribute("draggable");
4228
- }), this._onDrop(), this._disableDelayedDragEvents(), cs.splice(cs.indexOf(this.el), 1), this.el = e = null;
4229
+ }), this._onDrop(), this._disableDelayedDragEvents(), us.splice(us.indexOf(this.el), 1), this.el = e = null;
4229
4230
  },
4230
4231
  _hideClone: function() {
4231
- if (!es) {
4232
+ if (!ns) {
4232
4233
  if (U("hideClone", this), Q.eventCanceled) return;
4233
- V(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), es = !0;
4234
+ V(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), ns = !0;
4234
4235
  }
4235
4236
  },
4236
4237
  _showClone: function(e) {
@@ -4238,99 +4239,99 @@ Q.prototype = {
4238
4239
  this._hideClone();
4239
4240
  return;
4240
4241
  }
4241
- if (es) {
4242
+ if (ns) {
4242
4243
  if (U("showClone", this), Q.eventCanceled) return;
4243
- G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) : Qo ? J.insertBefore(Y, Qo) : J.appendChild(Y), this.options.group.revertClone && this.animate(G, Y), V(Y, "display", ""), es = !1;
4244
+ G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) : es ? J.insertBefore(Y, es) : J.appendChild(Y), this.options.group.revertClone && this.animate(G, Y), V(Y, "display", ""), ns = !1;
4244
4245
  }
4245
4246
  }
4246
4247
  };
4247
- function Ls(e) {
4248
+ function zs(e) {
4248
4249
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
4249
4250
  }
4250
- function Rs(e, t, n, r, i, a, o, s) {
4251
- var c, l = e[Uo], u = l.options.onMove, d;
4252
- return window.CustomEvent && !po && !mo ? c = new CustomEvent("move", {
4251
+ function Bs(e, t, n, r, i, a, o, s) {
4252
+ var c, l = e[Go], u = l.options.onMove, d;
4253
+ return window.CustomEvent && !go && !_o ? c = new CustomEvent("move", {
4253
4254
  bubbles: !0,
4254
4255
  cancelable: !0
4255
4256
  }) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || H(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
4256
4257
  }
4257
- function zs(e) {
4258
+ function Vs(e) {
4258
4259
  e.draggable = !1;
4259
4260
  }
4260
- function Bs() {
4261
- Ss = !1;
4261
+ function Hs() {
4262
+ ws = !1;
4262
4263
  }
4263
- function Vs(e, t, n) {
4264
- var r = H(ko(n.el, 0, n.options, !0)), i = Ho(n.el, n.options, q), a = 10;
4264
+ function Us(e, t, n) {
4265
+ var r = H(jo(n.el, 0, n.options, !0)), i = Wo(n.el, n.options, q), a = 10;
4265
4266
  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;
4266
4267
  }
4267
- function Hs(e, t, n) {
4268
- var r = H(Ao(n.el, n.options.draggable)), i = Ho(n.el, n.options, q), a = 10;
4268
+ function Ws(e, t, n) {
4269
+ var r = H(Mo(n.el, n.options.draggable)), i = Wo(n.el, n.options, q), a = 10;
4269
4270
  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;
4270
4271
  }
4271
- function Us(e, t, n, r, i, a, o, s) {
4272
+ function Gs(e, t, n, r, i, a, o, s) {
4272
4273
  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;
4273
4274
  if (!o) {
4274
- if (s && bs < l * i) {
4275
- if (!vs && (_s === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (vs = !0), vs) f = !0;
4276
- else if (_s === 1 ? c < u + bs : c > d - bs) return -_s;
4277
- } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return Ws(t);
4275
+ if (s && Ss < l * i) {
4276
+ if (!bs && (ys === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (bs = !0), bs) f = !0;
4277
+ else if (ys === 1 ? c < u + Ss : c > d - Ss) return -ys;
4278
+ } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return Ks(t);
4278
4279
  }
4279
4280
  return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
4280
4281
  }
4281
- function Ws(e) {
4282
- return jo(G) < jo(e) ? 1 : -1;
4282
+ function Ks(e) {
4283
+ return No(G) < No(e) ? 1 : -1;
4283
4284
  }
4284
- function Gs(e) {
4285
+ function qs(e) {
4285
4286
  for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
4286
4287
  return r.toString(36);
4287
4288
  }
4288
- function Ks(e) {
4289
- Cs.length = 0;
4289
+ function Js(e) {
4290
+ Ts.length = 0;
4290
4291
  for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
4291
4292
  var r = t[n];
4292
- r.checked && Cs.push(r);
4293
+ r.checked && Ts.push(r);
4293
4294
  }
4294
4295
  }
4295
- function qs(e) {
4296
+ function Ys(e) {
4296
4297
  return setTimeout(e, 0);
4297
4298
  }
4298
- function Js(e) {
4299
+ function Xs(e) {
4299
4300
  return clearTimeout(e);
4300
4301
  }
4301
- ws && z(document, "touchmove", function(e) {
4302
- (Q.active || os) && e.cancelable && e.preventDefault();
4302
+ Es && R(document, "touchmove", function(e) {
4303
+ (Q.active || cs) && e.cancelable && e.preventDefault();
4303
4304
  }), Q.utils = {
4304
- on: z,
4305
- off: B,
4305
+ on: R,
4306
+ off: z,
4306
4307
  css: V,
4307
- find: Eo,
4308
+ find: Oo,
4308
4309
  is: function(e, t) {
4309
- return !!So(e, t, e, !1);
4310
+ return !!To(e, t, e, !1);
4310
4311
  },
4311
- extend: Fo,
4312
- throttle: Ro,
4313
- closest: So,
4314
- toggleClass: wo,
4315
- clone: Vo,
4316
- index: jo,
4317
- nextTick: qs,
4318
- cancelNextTick: Js,
4319
- detectDirection: ks,
4320
- getChild: ko
4312
+ extend: Lo,
4313
+ throttle: Bo,
4314
+ closest: To,
4315
+ toggleClass: B,
4316
+ clone: Uo,
4317
+ index: No,
4318
+ nextTick: Ys,
4319
+ cancelNextTick: Xs,
4320
+ detectDirection: js,
4321
+ getChild: jo
4321
4322
  }, Q.get = function(e) {
4322
- return e[Uo];
4323
+ return e[Go];
4323
4324
  }, Q.mount = function() {
4324
4325
  var e = [...arguments];
4325
4326
  e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
4326
4327
  if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
4327
- e.utils && (Q.utils = io(io({}, Q.utils), e.utils)), Yo.mount(e);
4328
+ e.utils && (Q.utils = so(so({}, Q.utils), e.utils)), Zo.mount(e);
4328
4329
  });
4329
4330
  }, Q.create = function(e, t) {
4330
4331
  return new Q(e, t);
4331
- }, Q.version = uo;
4332
- var $ = [], Ys, Xs, Zs = !1, Qs, $s, ec, tc;
4333
- function nc() {
4332
+ }, Q.version = mo;
4333
+ var $ = [], Zs, Qs, $s = !1, ec, tc, nc, rc;
4334
+ function ic() {
4334
4335
  function e() {
4335
4336
  for (var e in this.defaults = {
4336
4337
  scroll: !0,
@@ -4343,70 +4344,70 @@ function nc() {
4343
4344
  return e.prototype = {
4344
4345
  dragStarted: function(e) {
4345
4346
  var t = e.originalEvent;
4346
- this.sortable.nativeDraggable ? z(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? z(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? z(document, "touchmove", this._handleFallbackAutoScroll) : z(document, "mousemove", this._handleFallbackAutoScroll);
4347
+ this.sortable.nativeDraggable ? R(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? R(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? R(document, "touchmove", this._handleFallbackAutoScroll) : R(document, "mousemove", this._handleFallbackAutoScroll);
4347
4348
  },
4348
4349
  dragOverCompleted: function(e) {
4349
4350
  var t = e.originalEvent;
4350
4351
  !this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
4351
4352
  },
4352
4353
  drop: function() {
4353
- this.sortable.nativeDraggable ? B(document, "dragover", this._handleAutoScroll) : (B(document, "pointermove", this._handleFallbackAutoScroll), B(document, "touchmove", this._handleFallbackAutoScroll), B(document, "mousemove", this._handleFallbackAutoScroll)), ic(), rc(), zo();
4354
+ this.sortable.nativeDraggable ? z(document, "dragover", this._handleAutoScroll) : (z(document, "pointermove", this._handleFallbackAutoScroll), z(document, "touchmove", this._handleFallbackAutoScroll), z(document, "mousemove", this._handleFallbackAutoScroll)), oc(), ac(), Vo();
4354
4355
  },
4355
4356
  nulling: function() {
4356
- ec = Xs = Ys = Zs = tc = Qs = $s = null, $.length = 0;
4357
+ nc = Qs = Zs = $s = rc = ec = tc = null, $.length = 0;
4357
4358
  },
4358
4359
  _handleFallbackAutoScroll: function(e) {
4359
4360
  this._handleAutoScroll(e, !0);
4360
4361
  },
4361
4362
  _handleAutoScroll: function(e, t) {
4362
4363
  var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
4363
- if (ec = e, t || this.options.forceAutoScrollFallback || mo || po || go) {
4364
- ac(e, this.options, a, t);
4365
- var o = Po(a, !0);
4366
- Zs && (!tc || r !== Qs || i !== $s) && (tc && ic(), tc = setInterval(function() {
4367
- var a = Po(document.elementFromPoint(r, i), !0);
4368
- a !== o && (o = a, rc()), ac(e, n.options, a, t);
4369
- }, 10), Qs = r, $s = i);
4364
+ if (nc = e, t || this.options.forceAutoScrollFallback || _o || go || yo) {
4365
+ sc(e, this.options, a, t);
4366
+ var o = Io(a, !0);
4367
+ $s && (!rc || r !== ec || i !== tc) && (rc && oc(), rc = setInterval(function() {
4368
+ var a = Io(document.elementFromPoint(r, i), !0);
4369
+ a !== o && (o = a, ac()), sc(e, n.options, a, t);
4370
+ }, 10), ec = r, tc = i);
4370
4371
  } else {
4371
- if (!this.options.bubbleScroll || Po(a, !0) === Do()) {
4372
- rc();
4372
+ if (!this.options.bubbleScroll || Io(a, !0) === ko()) {
4373
+ ac();
4373
4374
  return;
4374
4375
  }
4375
- ac(e, this.options, Po(a, !1), !1);
4376
+ sc(e, this.options, Io(a, !1), !1);
4376
4377
  }
4377
4378
  }
4378
- }, so(e, {
4379
+ }, uo(e, {
4379
4380
  pluginName: "scroll",
4380
4381
  initializeByDefault: !0
4381
4382
  });
4382
4383
  }
4383
- function rc() {
4384
+ function ac() {
4384
4385
  $.forEach(function(e) {
4385
4386
  clearInterval(e.pid);
4386
4387
  }), $ = [];
4387
4388
  }
4388
- function ic() {
4389
- clearInterval(tc);
4389
+ function oc() {
4390
+ clearInterval(rc);
4390
4391
  }
4391
- var ac = Ro(function(e, t, n, r) {
4392
+ var sc = Bo(function(e, t, n, r) {
4392
4393
  if (t.scroll) {
4393
- var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = Do(), l = !1, u;
4394
- Xs !== n && (Xs = n, rc(), Ys = t.scroll, u = t.scrollFn, Ys === !0 && (Ys = Po(n, !0)));
4395
- var d = 0, f = Ys;
4394
+ var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = ko(), l = !1, u;
4395
+ Qs !== n && (Qs = n, ac(), Zs = t.scroll, u = t.scrollFn, Zs === !0 && (Zs = Io(n, !0)));
4396
+ var d = 0, f = Zs;
4396
4397
  do {
4397
4398
  var p = f, m = H(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, w = p.scrollHeight, T = V(p), E = p.scrollLeft, D = p.scrollTop;
4398
4399
  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"));
4399
4400
  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);
4400
4401
  if (!$[d]) for (var A = 0; A <= d; A++) $[A] || ($[A] = {});
4401
4402
  ($[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() {
4402
- r && this.layer === 0 && Q.active._onTouchMove(ec);
4403
+ r && this.layer === 0 && Q.active._onTouchMove(nc);
4403
4404
  var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
4404
- typeof u == "function" && u.call(Q.dragged.parentNode[Uo], n, t, e, ec, $[this.layer].el) !== "continue" || Bo($[this.layer].el, n, t);
4405
+ typeof u == "function" && u.call(Q.dragged.parentNode[Go], n, t, e, nc, $[this.layer].el) !== "continue" || Ho($[this.layer].el, n, t);
4405
4406
  }.bind({ layer: d }), 24))), d++;
4406
- } while (t.bubbleScroll && f !== c && (f = Po(f, !1)));
4407
- Zs = l;
4407
+ } while (t.bubbleScroll && f !== c && (f = Io(f, !1)));
4408
+ $s = l;
4408
4409
  }
4409
- }, 30), oc = function(e) {
4410
+ }, 30), cc = function(e) {
4410
4411
  var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
4411
4412
  if (t) {
4412
4413
  var c = n || i;
@@ -4418,8 +4419,8 @@ var ac = Ro(function(e, t, n, r) {
4418
4419
  }));
4419
4420
  }
4420
4421
  };
4421
- function sc() {}
4422
- sc.prototype = {
4422
+ function lc() {}
4423
+ lc.prototype = {
4423
4424
  startIndex: null,
4424
4425
  dragStart: function(e) {
4425
4426
  var t = e.oldDraggableIndex;
@@ -4428,72 +4429,72 @@ sc.prototype = {
4428
4429
  onSpill: function(e) {
4429
4430
  var t = e.dragEl, n = e.putSortable;
4430
4431
  this.sortable.captureAnimationState(), n && n.captureAnimationState();
4431
- var r = ko(this.sortable.el, this.startIndex, this.options);
4432
+ var r = jo(this.sortable.el, this.startIndex, this.options);
4432
4433
  r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
4433
4434
  },
4434
- drop: oc
4435
- }, so(sc, { pluginName: "revertOnSpill" });
4436
- function cc() {}
4437
- cc.prototype = {
4435
+ drop: cc
4436
+ }, uo(lc, { pluginName: "revertOnSpill" });
4437
+ function uc() {}
4438
+ uc.prototype = {
4438
4439
  onSpill: function(e) {
4439
4440
  var t = e.dragEl, n = e.putSortable || this.sortable;
4440
4441
  n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
4441
4442
  },
4442
- drop: oc
4443
- }, so(cc, { pluginName: "removeOnSpill" }), Q.mount(new nc()), Q.mount(cc, sc);
4444
- function lc(e) {
4443
+ drop: cc
4444
+ }, uo(uc, { pluginName: "removeOnSpill" }), Q.mount(new ic()), Q.mount(uc, lc);
4445
+ function dc(e) {
4445
4446
  return e == null ? e : JSON.parse(JSON.stringify(e));
4446
4447
  }
4447
- function uc(e) {
4448
- ne() && A(e);
4448
+ function fc(e) {
4449
+ re() && A(e);
4449
4450
  }
4450
- function dc(e) {
4451
- ne() ? f(e) : a(e);
4451
+ function pc(e) {
4452
+ re() ? f(e) : a(e);
4452
4453
  }
4453
- var fc = null, pc = null;
4454
- function mc(e = null, t = null) {
4455
- fc = e, pc = t;
4454
+ var mc = null, hc = null;
4455
+ function gc(e = null, t = null) {
4456
+ mc = e, hc = t;
4456
4457
  }
4457
- function hc() {
4458
+ function _c() {
4458
4459
  return {
4459
- data: fc,
4460
- clonedData: pc
4460
+ data: mc,
4461
+ clonedData: hc
4461
4462
  };
4462
4463
  }
4463
- var gc = Symbol("cloneElement");
4464
- function _c(...e) {
4465
- let t = ne()?.proxy, n = null, r = e[0], [, i, o] = e;
4464
+ var vc = Symbol("cloneElement");
4465
+ function yc(...e) {
4466
+ let t = re()?.proxy, n = null, r = e[0], [, i, o] = e;
4466
4467
  Array.isArray(x(i)) || (o = i, i = null);
4467
- let s = null, { immediate: c = !0, clone: u = lc, forceFallback: d, fallbackOnBody: f, customUpdate: m } = x(o) ?? {};
4468
+ let s = null, { immediate: c = !0, clone: u = dc, forceFallback: d, fallbackOnBody: f, customUpdate: m } = x(o) ?? {};
4468
4469
  function h(e) {
4469
4470
  let { from: t, oldIndex: r, item: a } = e, o = Array.from(t.childNodes);
4470
4471
  n = d && !f ? o.slice(0, -1) : o;
4471
4472
  let s = x(x(i)?.[r]), c = u(s);
4472
- mc(s, c), a[gc] = c;
4473
+ gc(s, c), a[vc] = c;
4473
4474
  }
4474
4475
  function g(e) {
4475
- let t = e.item[gc];
4476
- if (!Ka(t)) {
4477
- if (Ya(e.item), l(i)) {
4476
+ let t = e.item[vc];
4477
+ if (!Ya(t)) {
4478
+ if (Qa(e.item), l(i)) {
4478
4479
  let n = [...x(i)];
4479
- i.value = Ga(n, e.newDraggableIndex, t);
4480
+ i.value = Ja(n, e.newDraggableIndex, t);
4480
4481
  return;
4481
4482
  }
4482
- Ga(x(i), e.newDraggableIndex, t);
4483
+ Ja(x(i), e.newDraggableIndex, t);
4483
4484
  }
4484
4485
  }
4485
4486
  function _(e) {
4486
4487
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, pullMode: o, clone: s } = e;
4487
- if (Ja(t, n, r), o === "clone") {
4488
- Ya(s);
4488
+ if (Za(t, n, r), o === "clone") {
4489
+ Qa(s);
4489
4490
  return;
4490
4491
  }
4491
4492
  if (l(i)) {
4492
4493
  let e = [...x(i)];
4493
- i.value = Wa(e, a);
4494
+ i.value = qa(e, a);
4494
4495
  return;
4495
4496
  }
4496
- Wa(x(i), a);
4497
+ qa(x(i), a);
4497
4498
  }
4498
4499
  function v(e) {
4499
4500
  if (m) {
@@ -4501,12 +4502,12 @@ function _c(...e) {
4501
4502
  return;
4502
4503
  }
4503
4504
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, newDraggableIndex: o } = e;
4504
- if (Ya(n), Ja(t, n, r), l(i)) {
4505
+ if (Qa(n), Za(t, n, r), l(i)) {
4505
4506
  let e = [...x(i)];
4506
- i.value = Va(e, a, o);
4507
+ i.value = Wa(e, a, o);
4507
4508
  return;
4508
4509
  }
4509
- Va(x(i), a, o);
4510
+ Wa(x(i), a, o);
4510
4511
  }
4511
4512
  function y(e) {
4512
4513
  let { newIndex: t, oldIndex: r, from: i, to: o } = e, s = null, c = t === r && i === o;
@@ -4525,7 +4526,7 @@ function _c(...e) {
4525
4526
  n = null;
4526
4527
  }
4527
4528
  a(() => {
4528
- if (mc(), s) throw s;
4529
+ if (gc(), s) throw s;
4529
4530
  });
4530
4531
  }
4531
4532
  let b = {
@@ -4537,19 +4538,19 @@ function _c(...e) {
4537
4538
  };
4538
4539
  function S(e) {
4539
4540
  let n = x(r);
4540
- return e ||= qa(n) ? Xa(n, t?.$el) : n, e && !$a(e) && (e = e.$el), e || Ba("Root element not found"), e;
4541
+ return e ||= Xa(n) ? $a(n, t?.$el) : n, e && !no(e) && (e = e.$el), e || Ua("Root element not found"), e;
4541
4542
  }
4542
4543
  function C() {
4543
- let e = x(o) ?? {}, { immediate: t, clone: n } = e, r = La(e, ["immediate", "clone"]);
4544
- return eo(r, (e, t) => {
4545
- to(e) && (r[e] = (e, ...n) => (no(e, hc()), t(e, ...n)));
4546
- }), Qa(i === null ? {} : b, r);
4544
+ let e = x(o) ?? {}, { immediate: t, clone: n } = e, r = Ba(e, ["immediate", "clone"]);
4545
+ return ro(r, (e, t) => {
4546
+ io(e) && (r[e] = (e, ...n) => (ao(e, _c()), t(e, ...n)));
4547
+ }), to(i === null ? {} : b, r);
4547
4548
  }
4548
4549
  let w = (e) => {
4549
4550
  e = S(e), s && T.destroy(), s = new Q(e, C());
4550
4551
  };
4551
4552
  p(() => o, () => {
4552
- s && eo(C(), (e, t) => {
4553
+ s && ro(C(), (e, t) => {
4553
4554
  s?.option(e, t);
4554
4555
  });
4555
4556
  }, { deep: !0 });
@@ -4562,15 +4563,15 @@ function _c(...e) {
4562
4563
  toArray: () => s?.toArray(),
4563
4564
  closest: (...e) => s?.closest(...e)
4564
4565
  };
4565
- return dc(() => {
4566
+ return pc(() => {
4566
4567
  c && w();
4567
- }), uc(T.destroy), Ia({
4568
+ }), fc(T.destroy), za({
4568
4569
  start: w,
4569
4570
  pause: () => T?.option("disabled", !0),
4570
4571
  resume: () => T?.option("disabled", !1)
4571
4572
  }, T);
4572
4573
  }
4573
- var vc = [
4574
+ var bc = [
4574
4575
  "update",
4575
4576
  "start",
4576
4577
  "add",
@@ -4583,7 +4584,7 @@ var vc = [
4583
4584
  "clone",
4584
4585
  "move",
4585
4586
  "change"
4586
- ], yc = [
4587
+ ], xc = [
4587
4588
  "clone",
4588
4589
  "animation",
4589
4590
  "ghostClass",
@@ -4627,43 +4628,43 @@ var vc = [
4627
4628
  "tag",
4628
4629
  "target",
4629
4630
  "customUpdate",
4630
- ...vc.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
4631
- ], bc = L({
4631
+ ...bc.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
4632
+ ], Sc = I({
4632
4633
  name: "VueDraggable",
4633
4634
  model: {
4634
4635
  prop: "modelValue",
4635
4636
  event: "update:modelValue"
4636
4637
  },
4637
- props: yc,
4638
- emits: ["update:modelValue", ...vc],
4638
+ props: xc,
4639
+ emits: ["update:modelValue", ...bc],
4639
4640
  setup(e, { slots: t, emit: n, expose: r, attrs: i }) {
4640
- let a = vc.reduce((e, t) => {
4641
+ let a = bc.reduce((e, t) => {
4641
4642
  let r = `on${t.replace(/^\S/, (e) => e.toUpperCase())}`;
4642
4643
  return e[r] = (...e) => n(t, ...e), e;
4643
- }, {}), o = F(() => {
4644
- let t = N(e), { modelValue: n } = t, r = La(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
4644
+ }, {}), o = P(() => {
4645
+ let t = ee(e), { modelValue: n } = t, r = Ba(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
4645
4646
  let r = x(n);
4646
4647
  return r !== void 0 && (e[t] = r), e;
4647
4648
  }, {});
4648
- return Ia(Ia({}, a), Ua(Ia(Ia({}, i), o)));
4649
- }), s = F({
4649
+ return za(za({}, a), Ka(za(za({}, i), o)));
4650
+ }), s = P({
4650
4651
  get: () => e.modelValue,
4651
4652
  set: (e) => n("update:modelValue", e)
4652
- }), c = y(), l = v(_c(e.target || c, s, o));
4653
+ }), c = y(), l = v(yc(e.target || c, s, o));
4653
4654
  return r(l), () => S(e.tag || "div", { ref: c }, (t?.default)?.call(t, l));
4654
4655
  }
4655
- }), xc = {
4656
+ }), Cc = {
4656
4657
  mounted: "mounted",
4657
4658
  unmounted: "unmounted"
4658
4659
  };
4659
- xc.mounted, xc.unmounted;
4660
+ Cc.mounted, Cc.unmounted;
4660
4661
  //#endregion
4661
4662
  //#region src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
4662
- var Sc = { class: "tpl:w-full" }, Cc = {
4663
+ var wc = { class: "tpl:w-full" }, Tc = {
4663
4664
  key: 0,
4664
4665
  "data-testid": "section-drop-hint",
4665
4666
  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)]"
4666
- }, wc = /* @__PURE__ */ L({
4667
+ }, Ec = /* @__PURE__ */ I({
4667
4668
  __name: "SectionBlock",
4668
4669
  props: {
4669
4670
  block: {},
@@ -4671,13 +4672,13 @@ var Sc = { class: "tpl:w-full" }, Cc = {
4671
4672
  },
4672
4673
  setup(e) {
4673
4674
  let i = {
4674
- title: ka,
4675
- paragraph: ua,
4676
- image: Zi,
4677
- button: Br,
4678
- divider: Ai,
4679
- custom: Oi
4680
- }, a = e, { t: s } = Gt(), c = xt(Ot, "SectionBlock"), l = m(Dt, null), d = m(zt, null), f = m(Mt, {}), p = m(Rt, null);
4675
+ title: Ma,
4676
+ paragraph: pa,
4677
+ image: ea,
4678
+ button: Ur,
4679
+ divider: Ni,
4680
+ custom: ji
4681
+ }, a = e, { t: s } = Jt(), c = wt(jt, "SectionBlock"), l = m(At, null), d = m(Ht, null), f = m(Ft, {}), p = m(Vt, null);
4681
4682
  function g(e) {
4682
4683
  let t = f.savedBlocks;
4683
4684
  if (t?.isPicking.value) {
@@ -4686,7 +4687,7 @@ var Sc = { class: "tpl:w-full" }, Cc = {
4686
4687
  }
4687
4688
  c.selectBlock(e);
4688
4689
  }
4689
- let _ = F(() => {
4690
+ let _ = P(() => {
4690
4691
  switch (a.block.columns) {
4691
4692
  case "2": return ["50%", "50%"];
4692
4693
  case "3": return [
@@ -4698,11 +4699,11 @@ var Sc = { class: "tpl:w-full" }, Cc = {
4698
4699
  case "2-1": return ["66.67%", "33.33%"];
4699
4700
  default: return ["100%"];
4700
4701
  }
4701
- }), v = F(() => {
4702
+ }), v = P(() => {
4702
4703
  let e = _.value.length, t = [...a.block.children];
4703
4704
  for (; t.length < e;) t.push([]);
4704
4705
  return t.slice(0, e);
4705
- }), y = F(() => a.viewport === "mobile" && a.block.stackOnMobile !== !1);
4706
+ }), y = P(() => a.viewport === "mobile" && a.block.stackOnMobile !== !1);
4706
4707
  function b(e) {
4707
4708
  return v.value[e] || [];
4708
4709
  }
@@ -4712,7 +4713,7 @@ var Sc = { class: "tpl:w-full" }, Cc = {
4712
4713
  r[e] = n, c.updateBlock(a.block.id, { children: r });
4713
4714
  }
4714
4715
  function E(e) {
4715
- return fa(e, d, i);
4716
+ return ha(e, d, i);
4716
4717
  }
4717
4718
  function D(e, t) {
4718
4719
  e.type === "custom" && c.updateBlock(e.id, {
@@ -4720,16 +4721,16 @@ var Sc = { class: "tpl:w-full" }, Cc = {
4720
4721
  dataSourceFetched: t.dataSourceFetched
4721
4722
  });
4722
4723
  }
4723
- return (i, a) => (t(), w("div", Sc, [C("div", { class: j(["tpl:flex tpl:gap-0", { "tpl:flex-col": y.value }]) }, [(t(!0), w(P, null, u(v.value, (i, a) => (t(), w("div", {
4724
+ return (i, a) => (t(), w("div", wc, [C("div", { class: j(["tpl:flex tpl:gap-0", { "tpl:flex-col": y.value }]) }, [(t(!0), w(N, null, u(v.value, (i, a) => (t(), w("div", {
4724
4725
  key: a,
4725
4726
  class: j(["tpl:relative tpl:min-h-[60px] tpl:rounded", b(a).length === 0 ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
4726
4727
  style: n({ width: y.value ? "100%" : _.value[a] })
4727
- }, [T(x(bc), {
4728
+ }, [T(x(Sc), {
4728
4729
  "model-value": b(a),
4729
4730
  group: {
4730
4731
  name: "blocks",
4731
4732
  pull: !0,
4732
- put: (e, t, n) => x(Aa)(n)
4733
+ put: (e, t, n) => x(Na)(n)
4733
4734
  },
4734
4735
  animation: 150,
4735
4736
  "ghost-class": "tpl-ghost",
@@ -4742,7 +4743,7 @@ var Sc = { class: "tpl:w-full" }, Cc = {
4742
4743
  class: "tpl:min-h-[60px]",
4743
4744
  "onUpdate:modelValue": (e) => S(a, e)
4744
4745
  }, {
4745
- default: r(() => [(t(!0), w(P, null, u(b(a), (n) => h((t(), w("div", { key: n.id }, [T(Da, {
4746
+ default: r(() => [(t(!0), w(N, null, u(b(a), (n) => h((t(), w("div", { key: n.id }, [T(Aa, {
4746
4747
  block: n,
4747
4748
  "is-selected": x(c).state.selectedBlockId === n.id,
4748
4749
  viewport: e.viewport,
@@ -4768,19 +4769,19 @@ var Sc = { class: "tpl:w-full" }, Cc = {
4768
4769
  "viewport",
4769
4770
  "preview-mode",
4770
4771
  "onSelect"
4771
- ])])), [[re, x(p) === !1 || !x(l)?.isHidden(n.id)]])), 128))]),
4772
+ ])])), [[ie, x(p) === !1 || !x(l)?.isHidden(n.id)]])), 128))]),
4772
4773
  _: 2
4773
4774
  }, 1032, [
4774
4775
  "model-value",
4775
4776
  "group",
4776
4777
  "onUpdate:modelValue"
4777
- ]), b(a).length === 0 ? (t(), w("div", Cc, [C("span", null, k(x(s).section.dropHere), 1)])) : I("", !0)], 6))), 128))], 2)]));
4778
+ ]), b(a).length === 0 ? (t(), w("div", Tc, [C("span", null, k(x(s).section.dropHere), 1)])) : F("", !0)], 6))), 128))], 2)]));
4778
4779
  }
4779
- }), Tc = Te, Ec = {
4780
+ }), Dc = Ee, Oc = {
4780
4781
  small: 24,
4781
4782
  medium: 32,
4782
4783
  large: 48
4783
- }, Dc = [
4784
+ }, kc = [
4784
4785
  "facebook",
4785
4786
  "twitter",
4786
4787
  "instagram",
@@ -4798,11 +4799,11 @@ var Sc = { class: "tpl:w-full" }, Cc = {
4798
4799
  "github",
4799
4800
  "dribbble",
4800
4801
  "behance"
4801
- ], Oc = [
4802
+ ], Ac = [
4802
4803
  "width",
4803
4804
  "height",
4804
4805
  "fill"
4805
- ], kc = ["d"], Ac = /* @__PURE__ */ L({
4806
+ ], jc = ["d"], Mc = /* @__PURE__ */ I({
4806
4807
  __name: "SocialIconSvg",
4807
4808
  props: {
4808
4809
  platform: {},
@@ -4810,7 +4811,7 @@ var Sc = { class: "tpl:w-full" }, Cc = {
4810
4811
  iconSize: {}
4811
4812
  },
4812
4813
  setup(e) {
4813
- let r = e, i = F(() => Tc[r.platform]), a = F(() => Ec[r.iconSize]), o = F(() => {
4814
+ let r = e, i = P(() => Dc[r.platform]), a = P(() => Oc[r.iconSize]), o = P(() => {
4814
4815
  let e = {
4815
4816
  display: "inline-flex",
4816
4817
  alignItems: "center",
@@ -4847,40 +4848,40 @@ var Sc = { class: "tpl:w-full" }, Cc = {
4847
4848
  };
4848
4849
  default: return e;
4849
4850
  }
4850
- }), s = F(() => Math.floor(a.value * .6)), c = F(() => r.iconStyle === "outlined" ? i.value.color : "#ffffff");
4851
+ }), s = P(() => Math.floor(a.value * .6)), c = P(() => r.iconStyle === "outlined" ? i.value.color : "#ffffff");
4851
4852
  return (e, r) => (t(), w("span", { style: n(o.value) }, [(t(), w("svg", {
4852
4853
  width: s.value,
4853
4854
  height: s.value,
4854
4855
  viewBox: "0 0 24 24",
4855
4856
  fill: c.value,
4856
4857
  xmlns: "http://www.w3.org/2000/svg"
4857
- }, [C("path", { d: i.value.path }, null, 8, kc)], 8, Oc))], 4));
4858
+ }, [C("path", { d: i.value.path }, null, 8, jc)], 8, Ac))], 4));
4858
4859
  }
4859
- }), jc = { class: "tpl:w-full" }, Mc = ["href"], Nc = {
4860
+ }), Nc = { class: "tpl:w-full" }, Pc = ["href"], Fc = {
4860
4861
  key: 1,
4861
4862
  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)]"
4862
- }, Pc = /* @__PURE__ */ L({
4863
+ }, Ic = /* @__PURE__ */ I({
4863
4864
  __name: "SocialIconsBlock",
4864
4865
  props: {
4865
4866
  block: {},
4866
4867
  viewport: {}
4867
4868
  },
4868
4869
  setup(e) {
4869
- let r = e, { t: i } = Gt(), a = F(() => ({
4870
+ let r = e, { t: i } = Jt(), a = P(() => ({
4870
4871
  display: "flex",
4871
4872
  flexWrap: "wrap",
4872
4873
  gap: `${r.block.spacing}px`,
4873
4874
  justifyContent: r.block.align === "left" ? "flex-start" : r.block.align === "right" ? "flex-end" : "center"
4874
- })), o = F(() => r.block.icons.length > 0);
4875
- return (r, s) => (t(), w("div", jc, [o.value ? (t(), w("div", {
4875
+ })), o = P(() => r.block.icons.length > 0);
4876
+ return (r, s) => (t(), w("div", Nc, [o.value ? (t(), w("div", {
4876
4877
  key: 0,
4877
4878
  style: n(a.value)
4878
- }, [(t(!0), w(P, null, u(e.block.icons, (n) => (t(), w("a", {
4879
+ }, [(t(!0), w(N, null, u(e.block.icons, (n) => (t(), w("a", {
4879
4880
  key: n.id,
4880
4881
  href: n.url || "#",
4881
4882
  class: "tpl:cursor-default",
4882
- onClick: s[0] ||= R(() => {}, ["prevent"])
4883
- }, [T(Ac, {
4883
+ onClick: s[0] ||= L(() => {}, ["prevent"])
4884
+ }, [T(Mc, {
4884
4885
  platform: n.platform,
4885
4886
  "icon-style": e.block.iconStyle,
4886
4887
  "icon-size": e.block.iconSize
@@ -4888,44 +4889,44 @@ var Sc = { class: "tpl:w-full" }, Cc = {
4888
4889
  "platform",
4889
4890
  "icon-style",
4890
4891
  "icon-size"
4891
- ])], 8, Mc))), 128))], 4)) : (t(), w("div", Nc, [T(x(Xr), { size: 16 }), C("span", null, k(x(i).social.addIcons), 1)]))]));
4892
+ ])], 8, Pc))), 128))], 4)) : (t(), w("div", Fc, [T(x($r), { size: 16 }), C("span", null, k(x(i).social.addIcons), 1)]))]));
4892
4893
  }
4893
- }), Fc = { class: "tpl:w-full" }, Ic = {
4894
+ }), Lc = { class: "tpl:w-full" }, Rc = {
4894
4895
  key: 0,
4895
4896
  class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
4896
4897
  style: {
4897
4898
  "background-color": "var(--tpl-bg-hover)",
4898
4899
  color: "var(--tpl-text-dim)"
4899
4900
  }
4900
- }, Lc = /* @__PURE__ */ L({
4901
+ }, zc = /* @__PURE__ */ I({
4901
4902
  __name: "SpacerBlock",
4902
4903
  props: {
4903
4904
  block: {},
4904
4905
  viewport: {}
4905
4906
  },
4906
4907
  setup(e) {
4907
- let r = e, i = xt(Ot, "SpacerBlock"), a = F(() => ({
4908
+ let r = e, i = wt(jt, "SpacerBlock"), a = P(() => ({
4908
4909
  height: `${r.block.height}px`,
4909
4910
  minHeight: `${r.block.height}px`,
4910
4911
  ...i.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
4911
4912
  }));
4912
- return (r, o) => (t(), w("div", Fc, [C("div", {
4913
+ return (r, o) => (t(), w("div", Lc, [C("div", {
4913
4914
  style: n(a.value),
4914
4915
  class: j(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:border-y tpl:border-dashed": !x(i).state.previewMode }])
4915
- }, [x(i).state.previewMode ? I("", !0) : (t(), w("span", Ic, k(e.block.height) + "px ", 1))], 6)]));
4916
+ }, [x(i).state.previewMode ? F("", !0) : (t(), w("span", Rc, k(e.block.height) + "px ", 1))], 6)]));
4916
4917
  }
4917
- }), Rc = { class: "tpl:w-full" }, zc = { key: 0 }, Bc = [
4918
+ }), Bc = { class: "tpl:w-full" }, Vc = { key: 0 }, Hc = [
4918
4919
  "aria-label",
4919
4920
  "data-placeholder",
4920
4921
  "onBlur"
4921
- ], Vc = [
4922
+ ], Uc = [
4922
4923
  "aria-label",
4923
4924
  "data-placeholder",
4924
4925
  "onBlur"
4925
- ], Hc = {
4926
+ ], Wc = {
4926
4927
  key: 1,
4927
4928
  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)]"
4928
- }, Uc = /*#__PURE__*/ sn(/* @__PURE__ */ L({
4929
+ }, Gc = /*#__PURE__*/ un(/* @__PURE__ */ I({
4929
4930
  __name: "TableBlock",
4930
4931
  props: {
4931
4932
  block: {},
@@ -4939,7 +4940,7 @@ var Sc = { class: "tpl:w-full" }, Cc = {
4939
4940
  updated(e, t) {
4940
4941
  t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
4941
4942
  }
4942
- }, i = e, { t: a } = Gt(), o = xt(Ot, "TableBlock"), s = F(() => i.block.rows.length > 0), c = F(() => {
4943
+ }, i = e, { t: a } = Jt(), o = wt(jt, "TableBlock"), s = P(() => i.block.rows.length > 0), c = P(() => {
4943
4944
  let e = {
4944
4945
  width: "100%",
4945
4946
  borderCollapse: "collapse",
@@ -4948,15 +4949,15 @@ var Sc = { class: "tpl:w-full" }, Cc = {
4948
4949
  fontFamily: i.block.fontFamily || "inherit"
4949
4950
  };
4950
4951
  return i.block.color && (e.color = i.block.color), e;
4951
- }), l = F(() => ({
4952
+ }), l = P(() => ({
4952
4953
  border: `${i.block.borderWidth}px solid ${i.block.borderColor}`,
4953
4954
  padding: `${i.block.cellPadding}px`,
4954
4955
  textAlign: i.block.textAlign
4955
- })), d = F(() => ({
4956
+ })), d = P(() => ({
4956
4957
  ...l.value,
4957
4958
  fontWeight: "bold",
4958
4959
  backgroundColor: i.block.headerBackgroundColor || "transparent"
4959
- })), f = F(() => i.block.hasHeaderRow && i.block.rows.length > 0 ? i.block.rows[0] : null), p = F(() => i.block.hasHeaderRow ? i.block.rows.slice(1) : i.block.rows);
4960
+ })), f = P(() => i.block.hasHeaderRow && i.block.rows.length > 0 ? i.block.rows[0] : null), p = P(() => i.block.hasHeaderRow ? i.block.rows.slice(1) : i.block.rows);
4960
4961
  function m() {
4961
4962
  o.selectBlock(i.block.id);
4962
4963
  }
@@ -4970,31 +4971,31 @@ var Sc = { class: "tpl:w-full" }, Cc = {
4970
4971
  } : n);
4971
4972
  o.updateBlock(i.block.id, { rows: a });
4972
4973
  }
4973
- return (e, i) => (t(), w("div", Rc, [s.value ? (t(), w("table", {
4974
+ return (e, i) => (t(), w("div", Bc, [s.value ? (t(), w("table", {
4974
4975
  key: 0,
4975
4976
  style: n(c.value),
4976
4977
  class: "tpl-table-editable"
4977
- }, [f.value ? (t(), w("thead", zc, [C("tr", null, [(t(!0), w(P, null, u(f.value.cells, (e) => h((t(), w("th", {
4978
+ }, [f.value ? (t(), w("thead", Vc, [C("tr", null, [(t(!0), w(N, null, u(f.value.cells, (e) => h((t(), w("th", {
4978
4979
  key: e.id,
4979
4980
  style: n(d.value),
4980
4981
  "aria-label": x(a).table.cellPlaceholder,
4981
4982
  contenteditable: "true",
4982
4983
  "data-placeholder": x(a).table.cellPlaceholder,
4983
4984
  onBlur: (t) => g(f.value.id, e.id, t),
4984
- onKeydown: i[0] ||= ie(R((e) => e.target.blur(), ["prevent"]), ["enter"]),
4985
- onClick: R(m, ["stop"])
4986
- }, null, 44, Bc)), [[r, e.content]])), 128))])])) : I("", !0), C("tbody", null, [(t(!0), w(P, null, u(p.value, (e) => (t(), w("tr", { key: e.id }, [(t(!0), w(P, null, u(e.cells, (o) => h((t(), w("td", {
4985
+ onKeydown: i[0] ||= ae(L((e) => e.target.blur(), ["prevent"]), ["enter"]),
4986
+ onClick: L(m, ["stop"])
4987
+ }, null, 44, Hc)), [[r, e.content]])), 128))])])) : F("", !0), C("tbody", null, [(t(!0), w(N, null, u(p.value, (e) => (t(), w("tr", { key: e.id }, [(t(!0), w(N, null, u(e.cells, (o) => h((t(), w("td", {
4987
4988
  key: o.id,
4988
4989
  style: n(l.value),
4989
4990
  "aria-label": x(a).table.cellPlaceholder,
4990
4991
  contenteditable: "true",
4991
4992
  "data-placeholder": x(a).table.cellPlaceholder,
4992
4993
  onBlur: (t) => g(e.id, o.id, t),
4993
- onKeydown: i[1] ||= ie(R((e) => e.target.blur(), ["prevent"]), ["enter"]),
4994
- onClick: R(m, ["stop"])
4995
- }, null, 44, Vc)), [[r, o.content]])), 128))]))), 128))])], 4)) : (t(), w("div", Hc, [T(x(Zr), { size: 16 }), C("span", null, k(x(a).table.empty), 1)]))]));
4994
+ onKeydown: i[1] ||= ae(L((e) => e.target.blur(), ["prevent"]), ["enter"]),
4995
+ onClick: L(m, ["stop"])
4996
+ }, null, 44, Uc)), [[r, o.content]])), 128))]))), 128))])], 4)) : (t(), w("div", Wc, [T(x(ei), { size: 16 }), C("span", null, k(x(a).table.empty), 1)]))]));
4996
4997
  }
4997
- }), [["__scopeId", "data-v-963ac422"]]), Wc = /* @__PURE__ */ L({
4998
+ }), [["__scopeId", "data-v-963ac422"]]), Kc = /* @__PURE__ */ I({
4998
4999
  __name: "VideoPlayButton",
4999
5000
  props: { hoverEffect: {
5000
5001
  type: Boolean,
@@ -5012,7 +5013,7 @@ var Sc = { class: "tpl:w-full" }, Cc = {
5012
5013
  });
5013
5014
  //#endregion
5014
5015
  //#region src/utils/videoThumbnail.ts
5015
- function Gc(e) {
5016
+ function qc(e) {
5016
5017
  if (!e) return {
5017
5018
  platform: "unknown",
5018
5019
  videoId: null,
@@ -5044,25 +5045,25 @@ function Gc(e) {
5044
5045
  thumbnailUrl: null
5045
5046
  };
5046
5047
  }
5047
- function Kc(e, t) {
5048
- return t || Gc(e).thumbnailUrl;
5048
+ function Jc(e, t) {
5049
+ return t || qc(e).thumbnailUrl;
5049
5050
  }
5050
5051
  //#endregion
5051
5052
  //#region src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
5052
- var qc = ["src", "alt"], Jc = {
5053
+ var Yc = ["src", "alt"], Xc = {
5053
5054
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
5054
5055
  style: { opacity: "0.7" }
5055
- }, Yc = ["href"], Xc = ["src", "alt"], Zc = ["src", "alt"], Qc = {
5056
+ }, Zc = ["href"], Qc = ["src", "alt"], $c = ["src", "alt"], el = {
5056
5057
  key: 3,
5057
5058
  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)]"
5058
- }, $c = /* @__PURE__ */ L({
5059
+ }, tl = /* @__PURE__ */ I({
5059
5060
  __name: "VideoBlock",
5060
5061
  props: {
5061
5062
  block: {},
5062
5063
  viewport: {}
5063
5064
  },
5064
5065
  setup(e) {
5065
- let r = e, { t: i } = Gt(), { syntax: a } = ln(), o = F(() => Ne(r.block.url, a) || Ne(r.block.thumbnailUrl, a)), s = Hn(() => o.value ? void 0 : r.block.thumbnailUrl || void 0), c = Hn(() => o.value ? r.block.placeholderUrl : void 0), l = F(() => o.value ? null : r.block.thumbnailUrl ? s.value ?? null : Kc(r.block.url)), u = F(() => ({ textAlign: r.block.align })), d = F(() => {
5066
+ let r = e, { t: i } = Jt(), { syntax: a } = fn(), o = P(() => Pe(r.block.url, a) || Pe(r.block.thumbnailUrl, a)), s = Gn(() => o.value ? void 0 : r.block.thumbnailUrl || void 0), c = Gn(() => o.value ? r.block.placeholderUrl : void 0), l = P(() => o.value ? null : r.block.thumbnailUrl ? s.value ?? null : Jc(r.block.url)), u = P(() => ({ textAlign: r.block.align })), d = P(() => {
5066
5067
  let e = r.block.align;
5067
5068
  return {
5068
5069
  maxWidth: "100%",
@@ -5072,7 +5073,7 @@ var qc = ["src", "alt"], Jc = {
5072
5073
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
5073
5074
  marginRight: e === "center" ? "auto" : void 0
5074
5075
  };
5075
- }), f = F(() => ({ height: r.block.height ? `${r.block.height}px` : void 0 })), p = F(() => Ne(r.block.url, a) ? r.block.url : r.block.thumbnailUrl);
5076
+ }), f = P(() => ({ height: r.block.height ? `${r.block.height}px` : void 0 })), p = P(() => Pe(r.block.url, a) ? r.block.url : r.block.thumbnailUrl);
5076
5077
  return (r, a) => (t(), w("div", {
5077
5078
  class: "tpl:w-full",
5078
5079
  style: n(u.value)
@@ -5085,29 +5086,29 @@ var qc = ["src", "alt"], Jc = {
5085
5086
  src: x(c),
5086
5087
  alt: e.block.alt,
5087
5088
  style: n(f.value)
5088
- }, null, 12, qc), T(Wc)], 4)) : o.value ? (t(), w("div", {
5089
+ }, null, 12, Yc), T(Kc)], 4)) : o.value ? (t(), w("div", {
5089
5090
  key: 1,
5090
5091
  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)]",
5091
5092
  style: n([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, d.value])
5092
- }, [T(x(Qr), {
5093
+ }, [T(x(ti), {
5093
5094
  size: 36,
5094
5095
  "stroke-width": 1.5,
5095
5096
  class: "tpl:text-[var(--tpl-primary)]",
5096
5097
  style: { opacity: "0.5" }
5097
- }), C("span", Jc, [T(Rr, { text: p.value }, null, 8, ["text"])])], 4)) : l.value ? (t(), w(P, { key: 2 }, [e.block.url ? (t(), w("a", {
5098
+ }), C("span", Xc, [T(Vr, { text: p.value }, null, 8, ["text"])])], 4)) : l.value ? (t(), w(N, { key: 2 }, [e.block.url ? (t(), w("a", {
5098
5099
  key: 0,
5099
5100
  href: e.block.url,
5100
5101
  target: "_blank",
5101
5102
  rel: "noopener noreferrer",
5102
5103
  class: "tpl:group tpl:relative tpl:inline-block",
5103
5104
  style: n(d.value),
5104
- onClick: a[0] ||= R(() => {}, ["prevent"])
5105
+ onClick: a[0] ||= L(() => {}, ["prevent"])
5105
5106
  }, [C("img", {
5106
5107
  class: "tpl:w-full tpl:border-0",
5107
5108
  src: l.value,
5108
5109
  alt: e.block.alt,
5109
5110
  style: n(f.value)
5110
- }, null, 12, Xc), T(Wc, { "hover-effect": "" })], 12, Yc)) : (t(), w("div", {
5111
+ }, null, 12, Qc), T(Kc, { "hover-effect": "" })], 12, Zc)) : (t(), w("div", {
5111
5112
  key: 1,
5112
5113
  class: "tpl:relative tpl:inline-block",
5113
5114
  style: n(d.value)
@@ -5116,158 +5117,166 @@ var qc = ["src", "alt"], Jc = {
5116
5117
  src: l.value,
5117
5118
  alt: e.block.alt,
5118
5119
  style: n(f.value)
5119
- }, null, 12, Zc), T(Wc)], 4))], 64)) : (t(), w("div", Qc, [T(x(Qr), {
5120
+ }, null, 12, $c), T(Kc)], 4))], 64)) : (t(), w("div", el, [T(x(ti), {
5120
5121
  size: 40,
5121
5122
  "stroke-width": 1.5,
5122
5123
  class: "tpl:text-[var(--tpl-border-light)]"
5123
5124
  }), C("span", null, k(x(i).video.addVideo), 1)]))], 4));
5124
5125
  }
5125
- }), el = {
5126
- section: wc,
5127
- title: ka,
5128
- paragraph: ua,
5129
- image: Zi,
5130
- button: Br,
5131
- divider: Ai,
5132
- video: $c,
5133
- social: Pc,
5134
- menu: ta,
5135
- table: Uc,
5136
- spacer: Lc,
5137
- html: Ii,
5138
- countdown: b(() => import("./CountdownBlock-ZFJIdbP6.js"))
5126
+ }), nl = {
5127
+ section: Ec,
5128
+ title: Ma,
5129
+ paragraph: pa,
5130
+ image: ea,
5131
+ button: Ur,
5132
+ divider: Ni,
5133
+ video: tl,
5134
+ social: Ic,
5135
+ menu: ia,
5136
+ table: Gc,
5137
+ spacer: zc,
5138
+ html: zi,
5139
+ countdown: b(() => import("./CountdownBlock-CEzrfe5R.js"))
5139
5140
  };
5140
- function tl(e) {
5141
- let { editor: t, config: n, translations: r, fontsManager: i } = e, { t: a, format: o } = Gt(r), s = F(() => le(le(le(fr(r), Mr(t.content.value.settings?.locale)), ve(t.content.value.settings) === "rtl" ? {
5141
+ function rl(t) {
5142
+ let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: s } = Jt(i), l = P(() => ue(ue(ue(hr(i), Fr(n.content.value.settings?.locale)), ye(n.content.value.settings) === "rtl" ? {
5142
5143
  title: { textAlign: "right" },
5143
5144
  table: { textAlign: "right" }
5144
- } : {}), n.blockDefaults ?? {}));
5145
- t.setUiTheme(n.uiTheme ?? "auto");
5146
- let { resolvedTheme: l } = Xn(F(() => t.state.uiTheme)), u = y(n.theme ?? {}), { themeStyles: d } = Qn({
5147
- themeOverrides: u,
5148
- resolvedTheme: l,
5145
+ } : {}), r.blockDefaults ?? {}));
5146
+ n.setUiTheme(r.uiTheme ?? "auto");
5147
+ let { resolvedTheme: u } = $n(P(() => n.state.uiTheme)), d = y(r.theme ?? {}), { themeStyles: f } = tr({
5148
+ themeOverrides: d,
5149
+ resolvedTheme: u,
5149
5150
  extraStyles: () => ({
5150
- "--tpl-drop-text": `"${r.canvas.dropHere}"`,
5151
- ...e.themeExtraStyles?.()
5151
+ "--tpl-drop-text": `"${i.canvas.dropHere}"`,
5152
+ ...t.themeExtraStyles?.()
5152
5153
  })
5153
- }), f = vn({
5154
- content: t.content,
5155
- setContent: (e, n) => t.setContent(e, n),
5156
- ...e.historyOptions
5154
+ }), m = xn({
5155
+ content: n.content,
5156
+ setContent: (e, t) => n.setContent(e, t),
5157
+ ...t.historyOptions
5157
5158
  });
5158
- Tn(t, f);
5159
- let m = bn({
5160
- addBlock: t.addBlock,
5161
- removeBlock: t.removeBlock,
5162
- updateBlock: t.updateBlock,
5163
- selectBlock: t.selectBlock,
5164
- findBlockLocation: t.findBlockLocation,
5165
- blockDefaults: () => s.value
5166
- }), h = Cn(t), _ = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? Sn({
5167
- content: t.content,
5168
- isDirty: () => t.state.isDirty,
5169
- ...e.autoSaveOptions
5170
- }) : null, v = null;
5171
- _ && (v = p(f.isNavigating, (e) => {
5172
- e ? _.pause() : _.resume();
5159
+ On(n, m);
5160
+ let h = Cn({
5161
+ addBlock: n.addBlock,
5162
+ removeBlock: n.removeBlock,
5163
+ updateBlock: n.updateBlock,
5164
+ selectBlock: n.selectBlock,
5165
+ findBlockLocation: n.findBlockLocation,
5166
+ blockDefaults: () => l.value
5167
+ }), _ = En(n), v = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? Tn({
5168
+ content: n.content,
5169
+ isDirty: () => n.state.isDirty,
5170
+ ...t.autoSaveOptions
5171
+ }) : null, b = null;
5172
+ v && (b = p(m.isNavigating, (e) => {
5173
+ e ? v.pause() : v.resume();
5173
5174
  }));
5174
- let b = Yn(t, {
5175
- t: a,
5176
- format: o
5177
- }, n.customBlocks ?? []), x = Yt(n.colors);
5178
- if (x.allowCustomIgnored && Kt.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), x.invalidPresets.length > 0 && Kt.warn(`config.colors.presets skipped invalid entries: ${x.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), x.allowCustom === !1) {
5179
- let e = dr(x.presets, n.blockDefaults, n.templateDefaults);
5180
- e.length > 0 && Kt.warn(`config.colors locks custom colours, but these block/template default colours fall outside colors.presets: ${e.join(", ")}. New blocks start on a colour the palette can't reselect — set blockDefaults / templateDefaults from the same palette.`);
5181
- }
5182
- let S = lr(n.templateSettings);
5183
- for (let e of S.unknown) Kt.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${sr.join(", ")}) — skipping it.`);
5184
- let C = $n();
5185
- ir(C, el);
5186
- let w = /* @__PURE__ */ new Set();
5187
- function T(e) {
5175
+ let x = Qn(n, {
5176
+ t: o,
5177
+ format: s
5178
+ }, r.customBlocks ?? []), S = Qt(r.colors);
5179
+ if (S.allowCustomIgnored && Yt.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 && Yt.warn(`config.colors.presets skipped invalid entries: ${S.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), S.allowCustom === !1) {
5180
+ let e = mr(S.presets, r.blockDefaults, r.templateDefaults);
5181
+ e.length > 0 && Yt.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.`);
5182
+ }
5183
+ let C = fr(r.templateSettings);
5184
+ for (let e of C.unknown) Yt.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${ur.join(", ")}) — skipping it.`);
5185
+ let w = nr();
5186
+ sr(w, nl);
5187
+ let T = /* @__PURE__ */ new Set();
5188
+ function E(e) {
5188
5189
  for (let t of e) {
5189
- C.registerCustom(t, Oi);
5190
- for (let e of Pr(t, x)) w.has(e.id) || (w.add(e.id), Kt.warn(e.message));
5190
+ w.registerCustom(t, ji);
5191
+ for (let e of Lr(t, S)) T.has(e.id) || (T.add(e.id), Yt.warn(e.message));
5191
5192
  }
5192
5193
  }
5193
- n.customBlocks?.length && T(n.customBlocks);
5194
- let E = Rn();
5195
- if (g() && c(E.dispose), e.containerEl) {
5196
- let t = e.containerEl;
5197
- Ze(document, "pointerdown", (e) => {
5198
- let n = t.value;
5199
- n && (e.composedPath?.() ?? []).includes(n) && E.claim();
5194
+ r.customBlocks?.length && E(r.customBlocks);
5195
+ let D = Vn();
5196
+ if (g() && c(D.dispose), t.containerEl) {
5197
+ let e = t.containerEl;
5198
+ Qe(document, "pointerdown", (t) => {
5199
+ let n = e.value;
5200
+ n && (t.composedPath?.() ?? []).includes(n) && D.claim();
5200
5201
  }, { capture: !0 });
5201
5202
  }
5202
- function D() {
5203
- let t = e.capabilities?.templates;
5204
- if (t) {
5205
- t.save();
5203
+ function k() {
5204
+ let e = t.capabilities?.templates;
5205
+ if (e) {
5206
+ e.save();
5206
5207
  return;
5207
5208
  }
5208
- _?.flush();
5209
- }
5210
- function k(n) {
5211
- E.isActive() && Ir(n, {
5212
- history: f,
5213
- selectBlock: (e) => t.selectBlock(e),
5214
- getSelectedBlockId: () => t.state.selectedBlockId,
5215
- removeBlock: (e) => t.removeBlock(e),
5216
- onSave: D,
5217
- onBeforeUndo: e.keyboardOptions?.onBeforeUndo,
5218
- isPicking: () => e.capabilities?.savedBlocks?.isPicking.value === !0,
5219
- onConfirmPick: () => e.capabilities?.savedBlocks?.confirmPicking(),
5220
- onCancelPick: () => e.capabilities?.savedBlocks?.cancelPicking()
5209
+ v?.flush();
5210
+ }
5211
+ function A(e) {
5212
+ D.isActive() && zr(e, {
5213
+ history: m,
5214
+ selectBlock: (e) => n.selectBlock(e),
5215
+ getSelectedBlockId: () => n.state.selectedBlockId,
5216
+ removeBlock: (e) => n.removeBlock(e),
5217
+ onSave: k,
5218
+ onBeforeUndo: t.keyboardOptions?.onBeforeUndo,
5219
+ isPicking: () => t.capabilities?.savedBlocks?.isPicking.value === !0,
5220
+ onConfirmPick: () => t.capabilities?.savedBlocks?.confirmPicking(),
5221
+ onCancelPick: () => t.capabilities?.savedBlocks?.cancelPicking()
5221
5222
  });
5222
5223
  }
5223
- Ze(document, "keydown", k);
5224
- let A = y(null);
5225
- O(St, e.editorRoot ?? document), O(dt, A), O(ot, r), O(Ot, t), O(Ut, f), O(Ct, m), O(Dt, h), O(Bt, i), O(bt, d), O(Lt, l), O(Ft, s), O(ut, n.locale), O(zt, C), O(It, n.customBlocks ?? []), O(ct, n.paletteBlocks), O(wt, ar(n.htmlBlockPreview)), O(Et, x), O(yt, S.fields), O(Nt, er(t.content, C));
5226
- let j = Se(n.mergeTags?.syntax);
5227
- O(rt, n.mergeTags?.tags ?? []), O(ft, j), O(at, n.mergeTags?.onRequest ?? null), O(mt, n.mergeTags?.autocomplete !== !1);
5228
- let M = y(he(n.mergeTags?.tags ?? []));
5229
- O(At, M);
5230
- let N = Bn({
5231
- resolvePreview: n.resolvePreview,
5232
- getContent: () => t.content.value,
5233
- isActive: () => t.state.previewMode
5224
+ Qe(document, "keydown", A);
5225
+ let j = y(null);
5226
+ O(Tt, t.editorRoot ?? document), O(qt, j), O(Bt, i), O(jt, n), O(Kt, m), O(Et, h), O(At, _), O(Ut, a), O(dt, f), O(Ct, u), O(Rt, l), O(ut, r.locale), O(Ht, w), O(zt, r.customBlocks ?? []), O(_t, r.paletteBlocks), O(Dt, cr(r.htmlBlockPreview)), O(kt, S), O(ct, C.fields), O(It, rr(n.content, w));
5227
+ let M = Ce(r.mergeTags?.syntax), ee = e(r.mergeTags?.tags ?? []);
5228
+ function te(e) {
5229
+ if (!Array.isArray(e)) {
5230
+ Yt.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
5231
+ return;
5232
+ }
5233
+ ee.value = e;
5234
+ }
5235
+ O(at, ee), O(mt, M), O(ft, r.mergeTags?.onRequest ?? null), O(ht, r.mergeTags?.autocomplete !== !1), O(pt, r.mergeTags?.showRawValue !== !1);
5236
+ let N = y(ge(r.mergeTags?.tags ?? []));
5237
+ O(Nt, N);
5238
+ let ne = Un({
5239
+ resolvePreview: r.resolvePreview,
5240
+ getContent: () => n.content.value,
5241
+ isActive: () => n.state.previewMode
5234
5242
  });
5235
- O(gt, N), O(Wt, n.resolvePreview);
5236
- let ee = F(() => !(t.state.previewMode && N.isConfigured));
5237
- O(Rt, ee);
5238
- let P = Un();
5239
- O(jt, P), O(tt, y(!1)), O(it, y(!1)), O(Vt, n.logicTags?.tags ?? []), O(nt, n.logicTags?.pairs ?? []), O(pt, n.logicTags?.onRequest ?? null), O(vt, Wn()), O(ht, n.onRequestMedia ?? null), O(Tt, n.canDropMedia ?? null), O(Ht, n.resolveImageUrl ? Vn(n.resolveImageUrl) : null), O(kt, n.displayConditions?.conditions ?? []), O(Pt, n.displayConditions?.allowCustom ?? !1), O(Mt, e.capabilities ?? {}), O(_t, b);
5240
- let te = Gn(n.lint) ? null : Kn({
5241
- content: t.content,
5242
- options: n.lint ?? {},
5243
- updateBlock: t.updateBlock,
5244
- updateSettings: t.updateSettings,
5245
- removeBlock: t.removeBlock
5243
+ O(rt, ne), O(bt, r.resolvePreview);
5244
+ let F = P(() => !(n.state.previewMode && ne.isConfigured));
5245
+ O(Vt, F);
5246
+ let I = Kn();
5247
+ O(Pt, I), O(nt, y(!1)), O(ot, y(!1)), O(Wt, r.logicTags?.tags ?? []), O(it, r.logicTags?.pairs ?? []), O(st, r.logicTags?.onRequest ?? null), O(yt, qn()), O(lt, r.onRequestMedia ?? null), O(Ot, r.canDropMedia ?? null), O(Gt, r.resolveImageUrl ? Wn(r.resolveImageUrl) : null), O(Mt, r.displayConditions?.conditions ?? []), O(Lt, r.displayConditions?.allowCustom ?? !1), O(Ft, t.capabilities ?? {}), O(vt, x);
5248
+ let re = Jn(r.lint) ? null : Yn({
5249
+ content: n.content,
5250
+ options: r.lint ?? {},
5251
+ updateBlock: n.updateBlock,
5252
+ updateSettings: n.updateSettings,
5253
+ removeBlock: n.removeBlock
5246
5254
  });
5247
- O(st, te);
5248
- function I() {
5249
- v?.(), te?.destroy(), _?.destroy(), f.destroy();
5255
+ O(xt, re);
5256
+ function L() {
5257
+ b?.(), re?.destroy(), v?.destroy(), m.destroy();
5250
5258
  }
5251
5259
  return {
5252
- t: a,
5253
- format: o,
5254
- history: f,
5255
- blockActions: m,
5256
- conditionPreview: h,
5257
- autoSave: _,
5258
- resolvedTheme: l,
5259
- themeStyles: d,
5260
- themeOverrides: u,
5261
- registry: C,
5262
- keyboardReorder: b,
5263
- templateLint: te,
5264
- popoverRoot: A,
5265
- mergeTagSampleMode: M,
5266
- previewResolution: N,
5267
- appliesConditionFilter: ee,
5268
- registerCustomBlocks: T,
5269
- destroy: I
5260
+ t: o,
5261
+ format: s,
5262
+ history: m,
5263
+ blockActions: h,
5264
+ conditionPreview: _,
5265
+ autoSave: v,
5266
+ resolvedTheme: u,
5267
+ themeStyles: f,
5268
+ themeOverrides: d,
5269
+ registry: w,
5270
+ keyboardReorder: x,
5271
+ templateLint: re,
5272
+ popoverRoot: j,
5273
+ mergeTagSampleMode: N,
5274
+ previewResolution: ne,
5275
+ appliesConditionFilter: F,
5276
+ registerCustomBlocks: E,
5277
+ setMergeTags: te,
5278
+ destroy: L
5270
5279
  };
5271
5280
  }
5272
5281
  //#endregion
5273
- export { On as $, Xr as A, Or as B, hi as C, ri as D, ii as E, Ur as F, Cr as G, Er as H, Vr as I, Jn as J, sr as K, Br as L, qr as M, Kr as N, ti as O, Wr as P, jn as Q, Nr as R, _i as S, li as T, Tr as U, Dr as V, wr as W, Bn as X, qn as Y, xn as Z, Ri as _, Pc as a, Mn as at, Oi as b, bc as c, pa as d, Pn as et, da as f, Zi as g, ta as h, Lc as i, En as it, Jr as j, Zr as k, ka as l, ua as m, $c as n, wn as nt, Dc as o, fa as p, or as q, Uc as r, mn as rt, wc as s, tl as t, Nn as tt, Da as u, Ii as v, ui as w, yi as x, Ai as y, br as z };
5282
+ export { jn as $, $r as A, jr as B, vi as C, oi as D, si as E, Kr as F, Er as G, kr as H, Wr as I, Zn as J, ur as K, Ur as L, Xr as M, Yr as N, ii as O, qr as P, Pn as Q, Ir as R, bi as S, fi as T, Or as U, Ar as V, Dr as W, Un as X, Xn as Y, wn as Z, Vi as _, Ic as a, Fn as at, ji as b, Sc as c, ga as d, Ln as et, ma as f, ea as g, ia as h, zc as i, kn as it, Zr as j, ei as k, Ma as l, pa as m, tl as n, Dn as nt, kc as o, ha as p, lr as q, Gc as r, _n as rt, Ec as s, rl as t, In as tt, Aa as u, zi as v, pi as w, Si as x, Ni as y, Cr as z };