@templatical/editor 0.51.1 → 0.52.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 (361) hide show
  1. package/THIRD_PARTY_NOTICES.md +208 -0
  2. package/dist/{AiAltTextPopover-BZQ95GXL.js → AiAltTextPopover-Cm11CsKH.js} +7 -8
  3. package/dist/{AiAltTextReview-DoBEudnE.js → AiAltTextReview-DE8t8Rud.js} +8 -9
  4. package/dist/{AiChatPanel-Bs6sES3b.js → AiChatPanel-7ftS7d40.js} +18 -20
  5. package/dist/{AiPanels-CfN7A-ZA.js → AiPanels-CxGp6klr.js} +5 -7
  6. package/dist/{AiRewriteMenu-C3ZfDDYy.js → AiRewriteMenu-DNI-5CUj.js} +21 -22
  7. package/dist/{BlockIssueBadge-CKwZ1Vgn.js → BlockIssueBadge-6Ri2FfX-.js} +6 -7
  8. package/dist/{BlockPreviewCanvas-BXNLLLYi.js → BlockPreviewCanvas-Df9iz7sK.js} +10 -11
  9. package/dist/{CloudHeaderExtras-CsJMEiyN.js → CloudHeaderExtras-CsgyNNV1.js} +3 -4
  10. package/dist/{CloudPanels-B4F5m7vy.js → CloudPanels-BDV4XQ_l.js} +8 -9
  11. package/dist/{CollaborationNotices-CNuDp7Y2.js → CollaborationNotices-JQ3vQoqO.js} +4 -5
  12. package/dist/{CollaboratorBar-BtHPiuHq.js → CollaboratorBar-EeqqWcX6.js} +4 -5
  13. package/dist/{CommentsPanel-CyCM-BvT.js → CommentsPanel-BuftXc0U.js} +3 -5
  14. package/dist/{CommentsSidebar-Ca3DyFOX.js → CommentsSidebar-Co3x4uH0.js} +16 -17
  15. package/dist/{CountdownBlock-DR4Xm2-T.js → CountdownBlock-BT3ZTH1F.js} +5 -6
  16. package/dist/{CountdownToolbar-CEIMPojJ.js → CountdownToolbar-CrL4WKy9.js} +8 -9
  17. package/dist/{IssuesPanel-C8nMUccy.js → IssuesPanel-BHFQ3wrP.js} +12 -13
  18. package/dist/{LoadingTrack-B0RKQWq3.js → LoadingTrack-DZA5AoP9.js} +3 -4
  19. package/dist/{LogicTagInsertButton-CqfU52CO.js → LogicTagInsertButton-CSD9cfJB.js} +23 -30
  20. package/dist/{MediaEditModal-DHtkZ4OU.js → MediaEditModal-DQl5w44r.js} +7 -10
  21. package/dist/{MediaPanels-CGcOB2pR.js → MediaPanels-BFWYuJot.js} +3 -5
  22. package/dist/{MergeTagInput-YnEkorTZ.js → MergeTagInput-DE7kWwXx.js} +5 -6
  23. package/dist/{MergeTagModeToggle-Dhb1DAcQ.js → MergeTagModeToggle-DvD0ne7N.js} +7 -8
  24. package/dist/{MergeTagTextarea-e4lnwtqZ.js → MergeTagTextarea-DVPQkiYY.js} +3 -4
  25. package/dist/{ParagraphEditor-B6NK0ytw.js → ParagraphEditor-D-nqs82g.js} +55 -58
  26. package/dist/{RestoreVersionDialog-Bq_IGOLJ.js → RestoreVersionDialog-DqUPsLB9.js} +7 -8
  27. package/dist/{RichTextEditorContent-AOM6fylS.js → RichTextEditorContent-Xq9D0Zs3.js} +9 -10
  28. package/dist/{SaveBlockDialog-C8GngfQx.js → SaveBlockDialog-DAPv70p4.js} +13 -14
  29. package/dist/{SavedBlocksBrowserModal-wnkvxpm_.js → SavedBlocksBrowserModal-SRtN5h9q.js} +17 -18
  30. package/dist/{SavedBlocksPanels-C2s3q0pJ.js → SavedBlocksPanels-ChbL9v9x.js} +3 -5
  31. package/dist/{SavedBlocksPickBar-BjcTiV87.js → SavedBlocksPickBar-hRaiLNdu.js} +6 -7
  32. package/dist/{TemplateSettings-BVBWpiDU.js → TemplateSettings-D0XcH32O.js} +14 -15
  33. package/dist/{TestEmailModal-SyhO9bn3.js → TestEmailModal-Cb5t0yB2.js} +16 -18
  34. package/dist/{TestEmailPanel-BDd2Rtav.js → TestEmailPanel-COJQa2A9.js} +3 -5
  35. package/dist/{TitleEditor-pxD53y_l.js → TitleEditor-BYk_9SpQ.js} +14 -15
  36. package/dist/{ToggleSwitch-D51U9cmR.js → ToggleSwitch-poGWbduy.js} +2 -3
  37. package/dist/{Toolbar-CZSPZYbj.js → Toolbar-Dku_pZni.js} +134 -142
  38. package/dist/{TplModal-DCzBzicE.js → TplModal-9IndEYk5.js} +6 -7
  39. package/dist/{VersionHistoryMenu-BQeWPT85.js → VersionHistoryMenu-BG5qayvg.js} +12 -13
  40. package/dist/{VersionHistoryPanels-BBm7YbRQ.js → VersionHistoryPanels-hPg7Q5-f.js} +3 -5
  41. package/dist/{VersionPreviewBanner-DUGF0tUJ.js → VersionPreviewBanner-CSs7zum_.js} +5 -6
  42. package/dist/{WrapperBlock-BO619LAb.js → WrapperBlock-DwjK_IdJ.js} +6 -7
  43. package/dist/{_plugin-vue_export-helper-B3ysoDQm.js → _plugin-vue_export-helper-Djzt4Yr7.js} +1 -2
  44. package/dist/{aiErrors-D5UOoYOt.js → aiErrors-C3QEMB0x.js} +3 -5
  45. package/dist/{aiImageContext-BH4Ss1h3.js → aiImageContext-BQ5mQ6B5.js} +2 -3
  46. package/dist/{aiRewritePreview-DLGM05Ge.js → aiRewritePreview-DlMyx6Si.js} +1 -2
  47. package/dist/{blockTypeIcons-NzaYvAI4.js → blockTypeIcons-yt7SLzub.js} +3 -4
  48. package/dist/bundle-stats.json +6 -6
  49. package/dist/{ca-C7mTzW1r.js → ca-CD-Kt1qz.js} +1 -2
  50. package/dist/{ca-CYQH3J0b.js → ca-Cc6eL0ZS.js} +1 -2
  51. package/dist/cdn/chunks/{AiAltTextPopover-CQu0Q_ZX.js → AiAltTextPopover-DjMoJCgU.js} +7 -8
  52. package/dist/cdn/chunks/{AiAltTextPopover-CQu0Q_ZX.js.map → AiAltTextPopover-DjMoJCgU.js.map} +1 -1
  53. package/dist/cdn/chunks/{AiAltTextReview-CI2HbWfn.js → AiAltTextReview-BafAtBoA.js} +8 -9
  54. package/dist/cdn/chunks/{AiAltTextReview-CI2HbWfn.js.map → AiAltTextReview-BafAtBoA.js.map} +1 -1
  55. package/dist/cdn/chunks/{AiChatPanel-BYqn1bKu.js → AiChatPanel-DXeZgc7D.js} +15 -17
  56. package/dist/cdn/chunks/{AiChatPanel-BYqn1bKu.js.map → AiChatPanel-DXeZgc7D.js.map} +1 -1
  57. package/dist/cdn/chunks/{AiPanels-CIFKQv8Y.js → AiPanels-B4uAVRoO.js} +5 -7
  58. package/dist/cdn/chunks/{AiPanels-CIFKQv8Y.js.map → AiPanels-B4uAVRoO.js.map} +1 -1
  59. package/dist/cdn/chunks/{AiRewriteMenu-Bhh71zcc.js → AiRewriteMenu-4F6vwhJ5.js} +21 -22
  60. package/dist/cdn/chunks/AiRewriteMenu-4F6vwhJ5.js.map +1 -0
  61. package/dist/cdn/chunks/{BlockIssueBadge-DAn2vsMJ.js → BlockIssueBadge-DIJDqqcY.js} +6 -7
  62. package/dist/cdn/chunks/{BlockIssueBadge-DAn2vsMJ.js.map → BlockIssueBadge-DIJDqqcY.js.map} +1 -1
  63. package/dist/cdn/chunks/{BlockPreviewCanvas-D0--EQkP.js → BlockPreviewCanvas-Ny1X_mee.js} +9 -10
  64. package/dist/cdn/chunks/{BlockPreviewCanvas-D0--EQkP.js.map → BlockPreviewCanvas-Ny1X_mee.js.map} +1 -1
  65. package/dist/cdn/chunks/{CloudHeaderExtras-DaUU8P8R.js → CloudHeaderExtras-DtMORiLS.js} +4 -5
  66. package/dist/cdn/chunks/{CloudHeaderExtras-DaUU8P8R.js.map → CloudHeaderExtras-DtMORiLS.js.map} +1 -1
  67. package/dist/cdn/chunks/{CloudPanels-C3jsxo_f.js → CloudPanels-BkmLc2Fl.js} +7 -8
  68. package/dist/cdn/chunks/{CloudPanels-C3jsxo_f.js.map → CloudPanels-BkmLc2Fl.js.map} +1 -1
  69. package/dist/cdn/chunks/{CollaborationNotices-DjRI8gvs.js → CollaborationNotices-Hf8r08Sw.js} +5 -6
  70. package/dist/cdn/chunks/{CollaborationNotices-DjRI8gvs.js.map → CollaborationNotices-Hf8r08Sw.js.map} +1 -1
  71. package/dist/cdn/chunks/{CollaboratorBar-Dfzm6A9A.js → CollaboratorBar-II8eYtKu.js} +6 -7
  72. package/dist/cdn/chunks/{CollaboratorBar-Dfzm6A9A.js.map → CollaboratorBar-II8eYtKu.js.map} +1 -1
  73. package/dist/cdn/chunks/{CommentsPanel-CSO79OeX.js → CommentsPanel-CAiwilM2.js} +4 -6
  74. package/dist/cdn/chunks/{CommentsPanel-CSO79OeX.js.map → CommentsPanel-CAiwilM2.js.map} +1 -1
  75. package/dist/cdn/chunks/{CommentsSidebar-CCvplq1Z.js → CommentsSidebar-Dj8sDiLN.js} +18 -19
  76. package/dist/cdn/chunks/{CommentsSidebar-CCvplq1Z.js.map → CommentsSidebar-Dj8sDiLN.js.map} +1 -1
  77. package/dist/cdn/chunks/{CountdownBlock-C6USdwk3.js → CountdownBlock-Dyr5P0IP.js} +6 -7
  78. package/dist/cdn/chunks/{CountdownBlock-C6USdwk3.js.map → CountdownBlock-Dyr5P0IP.js.map} +1 -1
  79. package/dist/cdn/chunks/{CountdownToolbar-Cjud2Tos.js → CountdownToolbar-CguFJdqn.js} +9 -10
  80. package/dist/cdn/chunks/{CountdownToolbar-Cjud2Tos.js.map → CountdownToolbar-CguFJdqn.js.map} +1 -1
  81. package/dist/cdn/chunks/{IssuesPanel-BaWHPDxZ.js → IssuesPanel-pr7_nuLI.js} +9 -10
  82. package/dist/cdn/chunks/{IssuesPanel-BaWHPDxZ.js.map → IssuesPanel-pr7_nuLI.js.map} +1 -1
  83. package/dist/cdn/chunks/LoadingTrack-DfJ_C33G.js +11 -0
  84. package/dist/cdn/chunks/{LoadingTrack-BIcL4NiY.js.map → LoadingTrack-DfJ_C33G.js.map} +1 -1
  85. package/dist/cdn/chunks/{LogicTagInsertButton-CsL2JDOG.js → LogicTagInsertButton-B_ldj3TO.js} +18 -25
  86. package/dist/cdn/chunks/{LogicTagInsertButton-CsL2JDOG.js.map → LogicTagInsertButton-B_ldj3TO.js.map} +1 -1
  87. package/dist/cdn/chunks/{MediaEditModal-BuHCiyMu.js → MediaEditModal-CGfzcHwP.js} +7 -10
  88. package/dist/cdn/chunks/{MediaEditModal-BuHCiyMu.js.map → MediaEditModal-CGfzcHwP.js.map} +1 -1
  89. package/dist/cdn/chunks/{MediaPanels-DAgUf_T1.js → MediaPanels-D0BdxdqP.js} +4 -6
  90. package/dist/cdn/chunks/{MediaPanels-DAgUf_T1.js.map → MediaPanels-D0BdxdqP.js.map} +1 -1
  91. package/dist/cdn/chunks/{MergeTagInput-C8U-7LxL.js → MergeTagInput-CFu9VXPS.js} +6 -7
  92. package/dist/cdn/chunks/{MergeTagInput-C8U-7LxL.js.map → MergeTagInput-CFu9VXPS.js.map} +1 -1
  93. package/dist/cdn/chunks/{MergeTagModeToggle-Mm-p0A52.js → MergeTagModeToggle-BFpK5dxg.js} +7 -8
  94. package/dist/cdn/chunks/{MergeTagModeToggle-Mm-p0A52.js.map → MergeTagModeToggle-BFpK5dxg.js.map} +1 -1
  95. package/dist/cdn/chunks/{MergeTagTextarea-DuLScsWM.js → MergeTagTextarea-Zo0mYWbf.js} +4 -5
  96. package/dist/cdn/chunks/{MergeTagTextarea-DuLScsWM.js.map → MergeTagTextarea-Zo0mYWbf.js.map} +1 -1
  97. package/dist/cdn/chunks/{ParagraphEditor-CqSj6Ayz.js → ParagraphEditor-DsPLVAgm.js} +35 -38
  98. package/dist/cdn/chunks/{ParagraphEditor-CqSj6Ayz.js.map → ParagraphEditor-DsPLVAgm.js.map} +1 -1
  99. package/dist/cdn/chunks/{RestoreVersionDialog-CdA5osuA.js → RestoreVersionDialog-B866zFP0.js} +9 -10
  100. package/dist/cdn/chunks/{RestoreVersionDialog-CdA5osuA.js.map → RestoreVersionDialog-B866zFP0.js.map} +1 -1
  101. package/dist/cdn/chunks/{RichTextEditorContent-Q1d2xqBT.js → RichTextEditorContent-DaY63kye.js} +9 -10
  102. package/dist/cdn/chunks/{RichTextEditorContent-Q1d2xqBT.js.map → RichTextEditorContent-DaY63kye.js.map} +1 -1
  103. package/dist/cdn/chunks/{SaveBlockDialog-CijargAy.js → SaveBlockDialog-B7nftAAS.js} +11 -12
  104. package/dist/cdn/chunks/{SaveBlockDialog-CijargAy.js.map → SaveBlockDialog-B7nftAAS.js.map} +1 -1
  105. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DtOz_X5S.js → SavedBlocksBrowserModal-B9XCjDfm.js} +13 -14
  106. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DtOz_X5S.js.map → SavedBlocksBrowserModal-B9XCjDfm.js.map} +1 -1
  107. package/dist/cdn/chunks/{SavedBlocksPanels-BowyED5h.js → SavedBlocksPanels-C3nK90pz.js} +4 -6
  108. package/dist/cdn/chunks/{SavedBlocksPanels-BowyED5h.js.map → SavedBlocksPanels-C3nK90pz.js.map} +1 -1
  109. package/dist/cdn/chunks/{SavedBlocksPickBar-BPRaJBv3.js → SavedBlocksPickBar-B166Mek9.js} +7 -8
  110. package/dist/cdn/chunks/{SavedBlocksPickBar-BPRaJBv3.js.map → SavedBlocksPickBar-B166Mek9.js.map} +1 -1
  111. package/dist/cdn/chunks/{TemplateSettings-ByZeBO34.js → TemplateSettings-jWpmuWDR.js} +13 -14
  112. package/dist/cdn/chunks/{TemplateSettings-ByZeBO34.js.map → TemplateSettings-jWpmuWDR.js.map} +1 -1
  113. package/dist/cdn/chunks/{TestEmailModal-BUVTj3Ic.js → TestEmailModal-DcwKhFnI.js} +15 -17
  114. package/dist/cdn/chunks/{TestEmailModal-BUVTj3Ic.js.map → TestEmailModal-DcwKhFnI.js.map} +1 -1
  115. package/dist/cdn/chunks/{TestEmailPanel-BxutYoWg.js → TestEmailPanel-BDBAvAfI.js} +4 -6
  116. package/dist/cdn/chunks/{TestEmailPanel-BxutYoWg.js.map → TestEmailPanel-BDBAvAfI.js.map} +1 -1
  117. package/dist/cdn/chunks/{TitleEditor-Ccv6uoTz.js → TitleEditor-R2lQw6WA.js} +15 -16
  118. package/dist/cdn/chunks/{TitleEditor-Ccv6uoTz.js.map → TitleEditor-R2lQw6WA.js.map} +1 -1
  119. package/dist/cdn/chunks/{ToggleSwitch-Ctdmj621.js → ToggleSwitch-BDMugNES.js} +3 -4
  120. package/dist/cdn/chunks/{ToggleSwitch-Ctdmj621.js.map → ToggleSwitch-BDMugNES.js.map} +1 -1
  121. package/dist/cdn/chunks/{Toolbar-DoprRgTn.js → Toolbar-CnvfW72e.js} +156 -164
  122. package/dist/cdn/chunks/{Toolbar-DoprRgTn.js.map → Toolbar-CnvfW72e.js.map} +1 -1
  123. package/dist/cdn/chunks/{TplModal-BXQzmsJX.js → TplModal-BDyeS69p.js} +6 -7
  124. package/dist/cdn/chunks/{TplModal-BXQzmsJX.js.map → TplModal-BDyeS69p.js.map} +1 -1
  125. package/dist/cdn/chunks/{VersionHistoryMenu-BF2fNCvq.js → VersionHistoryMenu-CmpgUI4Q.js} +13 -14
  126. package/dist/cdn/chunks/{VersionHistoryMenu-BF2fNCvq.js.map → VersionHistoryMenu-CmpgUI4Q.js.map} +1 -1
  127. package/dist/cdn/chunks/{VersionHistoryPanels-Dal0Uk69.js → VersionHistoryPanels-DB_FZyyg.js} +4 -6
  128. package/dist/cdn/chunks/{VersionHistoryPanels-Dal0Uk69.js.map → VersionHistoryPanels-DB_FZyyg.js.map} +1 -1
  129. package/dist/cdn/chunks/{VersionPreviewBanner-BaGcn-b1.js → VersionPreviewBanner-CZ--HOoa.js} +6 -7
  130. package/dist/cdn/chunks/{VersionPreviewBanner-BaGcn-b1.js.map → VersionPreviewBanner-CZ--HOoa.js.map} +1 -1
  131. package/dist/cdn/chunks/{WrapperBlock-DkQJtLz0.js → WrapperBlock-D3obNGab.js} +7 -8
  132. package/dist/cdn/chunks/{WrapperBlock-DkQJtLz0.js.map → WrapperBlock-D3obNGab.js.map} +1 -1
  133. package/dist/cdn/chunks/{_plugin-vue_export-helper-B3ysoDQm.js → _plugin-vue_export-helper-Djzt4Yr7.js} +1 -2
  134. package/dist/cdn/chunks/{aiErrors-D5UOoYOt.js → aiErrors-C3QEMB0x.js} +4 -6
  135. package/dist/cdn/chunks/{aiErrors-D5UOoYOt.js.map → aiErrors-C3QEMB0x.js.map} +1 -1
  136. package/dist/cdn/chunks/{aiImageContext-BH4Ss1h3.js → aiImageContext-BQ5mQ6B5.js} +3 -4
  137. package/dist/cdn/chunks/{aiImageContext-BH4Ss1h3.js.map → aiImageContext-BQ5mQ6B5.js.map} +1 -1
  138. package/dist/cdn/chunks/{aiRewritePreview-DLGM05Ge.js → aiRewritePreview-DlMyx6Si.js} +2 -3
  139. package/dist/cdn/chunks/{aiRewritePreview-DLGM05Ge.js.map → aiRewritePreview-DlMyx6Si.js.map} +1 -1
  140. package/dist/cdn/chunks/{blockTypeIcons-ikZAmd6U.js → blockTypeIcons-DFf7AyqI.js} +3 -4
  141. package/dist/cdn/chunks/{blockTypeIcons-ikZAmd6U.js.map → blockTypeIcons-DFf7AyqI.js.map} +1 -1
  142. package/dist/cdn/chunks/{ca-C7mTzW1r.js → ca-CD-Kt1qz.js} +2 -3
  143. package/dist/cdn/chunks/{ca-C7mTzW1r.js.map → ca-CD-Kt1qz.js.map} +1 -1
  144. package/dist/cdn/chunks/{ca-CYQH3J0b.js → ca-Cc6eL0ZS.js} +2 -3
  145. package/dist/cdn/chunks/{ca-CYQH3J0b.js.map → ca-Cc6eL0ZS.js.map} +1 -1
  146. package/dist/cdn/chunks/{createCloudRuntime-DpBWhrv3.js → createCloudRuntime-D6niZ2Rc.js} +27 -46
  147. package/dist/cdn/chunks/{createCloudRuntime-DpBWhrv3.js.map → createCloudRuntime-D6niZ2Rc.js.map} +1 -1
  148. package/dist/cdn/chunks/{de-DBOTcDj2.js → de-6M4JoHoD.js} +2 -3
  149. package/dist/cdn/chunks/{de-DBOTcDj2.js.map → de-6M4JoHoD.js.map} +1 -1
  150. package/dist/cdn/chunks/{de-DNuYQTmS.js → de-CeFJ6wbM.js} +2 -3
  151. package/dist/cdn/chunks/{de-DNuYQTmS.js.map → de-CeFJ6wbM.js.map} +1 -1
  152. package/dist/cdn/chunks/{de-JvCTMJPy.js → de-DtrXVcuY.js} +2 -3
  153. package/dist/cdn/chunks/{de-JvCTMJPy.js.map → de-DtrXVcuY.js.map} +1 -1
  154. package/dist/cdn/chunks/{dist-Bo8Thh8v.js → dist-C2epoAwW.js} +3 -4
  155. package/dist/cdn/chunks/{dist-Bo8Thh8v.js.map → dist-C2epoAwW.js.map} +1 -1
  156. package/dist/cdn/chunks/{dist-S-rLGqax.js → dist-CONcGNwy.js} +4 -5
  157. package/dist/cdn/chunks/{dist-S-rLGqax.js.map → dist-CONcGNwy.js.map} +1 -1
  158. package/dist/cdn/chunks/dompurify-JVtr5-B1.js +872 -0
  159. package/dist/cdn/chunks/dompurify-JVtr5-B1.js.map +1 -0
  160. package/dist/cdn/chunks/{draggable-DZ0gwUJ6.js → draggable-B8hTTYFO.js} +19 -22
  161. package/dist/cdn/chunks/{draggable-DZ0gwUJ6.js.map → draggable-B8hTTYFO.js.map} +1 -1
  162. package/dist/cdn/chunks/{editor-modal-CI6EfeMd.js → editor-modal-cvYkpbHD.js} +66 -81
  163. package/dist/cdn/chunks/{editor-modal-CI6EfeMd.js.map → editor-modal-cvYkpbHD.js.map} +1 -1
  164. package/dist/cdn/chunks/{emojiData-6m0DBh7O.js → emojiData-CBNuCfum.js} +2 -3
  165. package/dist/cdn/chunks/{emojiData-6m0DBh7O.js.map → emojiData-CBNuCfum.js.map} +1 -1
  166. package/dist/cdn/chunks/en-CKAXAo3Z.js +1 -0
  167. package/dist/cdn/chunks/{en-CW71OK66.js → en-D14i5nFh.js} +2 -3
  168. package/dist/cdn/chunks/{en-CW71OK66.js.map → en-D14i5nFh.js.map} +1 -1
  169. package/dist/cdn/chunks/{en-CDhWRrF_.js → en-FzUuJ8HW.js} +2 -3
  170. package/dist/cdn/chunks/{en-CDhWRrF_.js.map → en-FzUuJ8HW.js.map} +1 -1
  171. package/dist/cdn/chunks/{es-CAv-Vldw.js → es-Dw_h7Oll.js} +2 -3
  172. package/dist/cdn/chunks/{es-CAv-Vldw.js.map → es-Dw_h7Oll.js.map} +1 -1
  173. package/dist/cdn/chunks/{es-DdK7zQfi.js → es-zDacbMhs.js} +2 -3
  174. package/dist/cdn/chunks/{es-DdK7zQfi.js.map → es-zDacbMhs.js.map} +1 -1
  175. package/dist/cdn/chunks/{extensions-taJTZlLK.js → extensions-ClDhn88e.js} +12 -17
  176. package/dist/cdn/chunks/{extensions-taJTZlLK.js.map → extensions-ClDhn88e.js.map} +1 -1
  177. package/dist/cdn/chunks/{formatAbsoluteDateTime-DMmop3C-.js → formatAbsoluteDateTime-Ck2_zXra.js} +2 -3
  178. package/dist/cdn/chunks/{formatAbsoluteDateTime-DMmop3C-.js.map → formatAbsoluteDateTime-Ck2_zXra.js.map} +1 -1
  179. package/dist/cdn/chunks/{formatRelativeTime-CtUU-QZ8.js → formatRelativeTime-BTD8Ktt-.js} +1 -2
  180. package/dist/cdn/chunks/{formatRelativeTime-CtUU-QZ8.js.map → formatRelativeTime-BTD8Ktt-.js.map} +1 -1
  181. package/dist/cdn/chunks/{fr-DVPtxpR6.js → fr-BJaeKu_8.js} +2 -3
  182. package/dist/cdn/chunks/{fr-DVPtxpR6.js.map → fr-BJaeKu_8.js.map} +1 -1
  183. package/dist/cdn/chunks/{fr-Dz5Bgb7-.js → fr-CSgYtjOd.js} +2 -3
  184. package/dist/cdn/chunks/{fr-Dz5Bgb7-.js.map → fr-CSgYtjOd.js.map} +1 -1
  185. package/dist/cdn/chunks/{htmlparser-CDRsn-gn.js → htmlparser-hu3YnNQU.js} +6 -11
  186. package/dist/cdn/chunks/{htmlparser-CDRsn-gn.js.map → htmlparser-hu3YnNQU.js.map} +1 -1
  187. package/dist/cdn/chunks/{icons-DNX6StSs.js → icons-HCBP93Ch.js} +50 -55
  188. package/dist/cdn/chunks/{icons-DNX6StSs.js.map → icons-HCBP93Ch.js.map} +1 -1
  189. package/dist/cdn/chunks/{ja-Di-zJiT8.js → ja-B7H3ID8O.js} +2 -3
  190. package/dist/cdn/chunks/{ja-Di-zJiT8.js.map → ja-B7H3ID8O.js.map} +1 -1
  191. package/dist/cdn/chunks/{ja-dcWzjStz.js → ja-Cu2HdYaK.js} +2 -3
  192. package/dist/cdn/chunks/{ja-dcWzjStz.js.map → ja-Cu2HdYaK.js.map} +1 -1
  193. package/dist/cdn/chunks/{keys-BTpmg2Tt.js → keys-BF9gazbd.js} +3 -4
  194. package/dist/cdn/chunks/{keys-BTpmg2Tt.js.map → keys-BF9gazbd.js.map} +1 -1
  195. package/dist/cdn/chunks/{liquid.browser-Bbt17cVz.js → liquid.browser-DkLBNrft.js} +705 -687
  196. package/dist/cdn/chunks/liquid.browser-DkLBNrft.js.map +1 -0
  197. package/dist/cdn/chunks/{logger-Tj0RPskW.js → logger-CqQTfJGx.js} +2 -3
  198. package/dist/cdn/chunks/{logger-Tj0RPskW.js.map → logger-CqQTfJGx.js.map} +1 -1
  199. package/dist/cdn/chunks/{nl-CvVuHYFL.js → nl-176ySmc5.js} +2 -3
  200. package/dist/cdn/chunks/{nl-CvVuHYFL.js.map → nl-176ySmc5.js.map} +1 -1
  201. package/dist/cdn/chunks/{nl-LZNqQgE4.js → nl-1Ai2NykB.js} +2 -3
  202. package/dist/cdn/chunks/{nl-LZNqQgE4.js.map → nl-1Ai2NykB.js.map} +1 -1
  203. package/dist/cdn/chunks/{normalizeMergeTagMarkup-DyePIGqu.js → normalizeMergeTagMarkup-DpHCSESZ.js} +3 -4
  204. package/dist/cdn/chunks/{normalizeMergeTagMarkup-DyePIGqu.js.map → normalizeMergeTagMarkup-DpHCSESZ.js.map} +1 -1
  205. package/dist/cdn/chunks/{preRenderCustomBlocks-Dc-QLntG.js → preRenderCustomBlocks-D-dsBq5t.js} +6 -7
  206. package/dist/cdn/chunks/{preRenderCustomBlocks-Dc-QLntG.js.map → preRenderCustomBlocks-D-dsBq5t.js.map} +1 -1
  207. package/dist/cdn/chunks/{pt-BR-CHM-ZKvE.js → pt-BR-Bp92Fc6J.js} +2 -3
  208. package/dist/cdn/chunks/{pt-BR-CHM-ZKvE.js.map → pt-BR-Bp92Fc6J.js.map} +1 -1
  209. package/dist/cdn/chunks/{pt-BR-D6P_mNwA.js → pt-BR-CIbp__Z7.js} +2 -3
  210. package/dist/cdn/chunks/{pt-BR-D6P_mNwA.js.map → pt-BR-CIbp__Z7.js.map} +1 -1
  211. package/dist/cdn/chunks/{pt-BR-ZhO4vgyq.js → pt-BR-dDlTwX18.js} +2 -3
  212. package/dist/cdn/chunks/{pt-BR-ZhO4vgyq.js.map → pt-BR-dDlTwX18.js.map} +1 -1
  213. package/dist/cdn/chunks/{pusher-Cs4GGEtd.js → pusher-x9rNqzon.js} +3 -4
  214. package/dist/cdn/chunks/{pusher-Cs4GGEtd.js.map → pusher-x9rNqzon.js.map} +1 -1
  215. package/dist/cdn/chunks/{readableTextColor-f8Kykfnh.js → readableTextColor-BfZUGnVj.js} +2 -3
  216. package/dist/cdn/chunks/{readableTextColor-f8Kykfnh.js.map → readableTextColor-BfZUGnVj.js.map} +1 -1
  217. package/dist/cdn/chunks/{rolldown-runtime-Y_bBpyJl.js → rolldown-runtime-QGRDbDUS.js} +1 -2
  218. package/dist/cdn/chunks/sanitizeHtml-B2h15u0_.js +72 -0
  219. package/dist/cdn/chunks/sanitizeHtml-B2h15u0_.js.map +1 -0
  220. package/dist/cdn/chunks/{socialIcons-BBvsTwCV.js → socialIcons-rJoqO1TJ.js} +167 -191
  221. package/dist/cdn/chunks/{socialIcons-BBvsTwCV.js.map → socialIcons-rJoqO1TJ.js.map} +1 -1
  222. package/dist/cdn/chunks/{src-Bs_yxk3h.js → src-BKpAis_q.js} +502 -537
  223. package/dist/cdn/chunks/src-BKpAis_q.js.map +1 -0
  224. package/dist/cdn/chunks/{src-BNFnxfrA.js → src-C9DTvn1H.js} +207 -171
  225. package/dist/cdn/chunks/src-C9DTvn1H.js.map +1 -0
  226. package/dist/cdn/chunks/src-CUH_EI7k.js +647 -0
  227. package/dist/cdn/chunks/src-CUH_EI7k.js.map +1 -0
  228. package/dist/cdn/chunks/{styleConstants-v1dNKgJf.js → styleConstants-B8xVRiwX.js} +2 -3
  229. package/dist/cdn/chunks/{styleConstants-v1dNKgJf.js.map → styleConstants-B8xVRiwX.js.map} +1 -1
  230. package/dist/cdn/chunks/{templateSettingsFields-YCFVBVYh.js → templateSettingsFields-cjlP-jdw.js} +2 -3
  231. package/dist/cdn/chunks/{templateSettingsFields-YCFVBVYh.js.map → templateSettingsFields-cjlP-jdw.js.map} +1 -1
  232. package/dist/cdn/chunks/{tiptap-CtVrAViq.js → tiptap-ChSZybTi.js} +3364 -3240
  233. package/dist/cdn/chunks/tiptap-ChSZybTi.js.map +1 -0
  234. package/dist/cdn/chunks/{useCloudI18n-AVXhzbhQ.js → useCloudI18n-RJXyVnIf.js} +4 -5
  235. package/dist/cdn/chunks/{useCloudI18n-AVXhzbhQ.js.map → useCloudI18n-RJXyVnIf.js.map} +1 -1
  236. package/dist/cdn/chunks/{useEditorCore-CCVFi1YZ.js → useEditorCore-CjaEV_01.js} +534 -586
  237. package/dist/cdn/chunks/useEditorCore-CjaEV_01.js.map +1 -0
  238. package/dist/cdn/chunks/useEditorRoot-BT3c9CXj.js +9 -0
  239. package/dist/cdn/chunks/{useEditorRoot-CR5GjJD6.js.map → useEditorRoot-BT3c9CXj.js.map} +1 -1
  240. package/dist/cdn/chunks/{useI18n-CbVubQhM.js → useI18n-11iqzC6m.js} +4 -5
  241. package/dist/cdn/chunks/{useI18n-CbVubQhM.js.map → useI18n-11iqzC6m.js.map} +1 -1
  242. package/dist/cdn/chunks/{useLogicTag-B49Nc53Y.js → useLogicTag-vy5KGg5D.js} +5 -6
  243. package/dist/cdn/chunks/{useLogicTag-B49Nc53Y.js.map → useLogicTag-vy5KGg5D.js.map} +1 -1
  244. package/dist/cdn/chunks/{useMergeTag-B0KryMj8.js → useMergeTag-BFBBjnwh.js} +5 -6
  245. package/dist/cdn/chunks/{useMergeTag-B0KryMj8.js.map → useMergeTag-BFBBjnwh.js.map} +1 -1
  246. package/dist/cdn/chunks/{usePopoverPosition-C829ps5i.js → usePopoverPosition-AnVIwiVv.js} +7 -11
  247. package/dist/cdn/chunks/{usePopoverPosition-C829ps5i.js.map → usePopoverPosition-AnVIwiVv.js.map} +1 -1
  248. package/dist/cdn/chunks/{useScrollToBlock-CAwvulog.js → useScrollToBlock-C0dawxGr.js} +5 -7
  249. package/dist/cdn/chunks/{useScrollToBlock-CAwvulog.js.map → useScrollToBlock-C0dawxGr.js.map} +1 -1
  250. package/dist/cdn/chunks/{withCurrentFont-DFPXeVfG.js → withCurrentFont-C3CquBQN.js} +3 -4
  251. package/dist/cdn/chunks/{withCurrentFont-DFPXeVfG.js.map → withCurrentFont-C3CquBQN.js.map} +1 -1
  252. package/dist/cdn/editor.js +221 -242
  253. package/dist/cdn/editor.js.map +1 -1
  254. package/dist/{check-yYsp5Xpk.js → check-N3x4z_rH.js} +1 -2
  255. package/dist/{chevron-down-DTmD06_j.js → chevron-down-gXu9qNwO.js} +1 -2
  256. package/dist/{chevron-right-BSeYZOxc.js → chevron-right-rL0ayGk5.js} +1 -2
  257. package/dist/{chevron-up-BOApwrxi.js → chevron-up-0ugh8HnW.js} +1 -2
  258. package/dist/{circle-alert-BMszY8im.js → circle-alert-B9Ls75B5.js} +1 -2
  259. package/dist/{clock-HADxnl6-.js → clock-BqHBaCLm.js} +1 -2
  260. package/dist/{createCloudRuntime-DVQI_ReU.js → createCloudRuntime-B5VIdnwz.js} +11 -17
  261. package/dist/{createLucideIcon-0lYYH3EW.js → createLucideIcon-BV7Gwz_Z.js} +6 -11
  262. package/dist/{de-DBOTcDj2.js → de-6M4JoHoD.js} +1 -2
  263. package/dist/{de-DNuYQTmS.js → de-CeFJ6wbM.js} +1 -2
  264. package/dist/{de-JvCTMJPy.js → de-DtrXVcuY.js} +1 -2
  265. package/dist/{dist-DI4_YSnG.js → dist-BA-jTQgw.js} +3 -4
  266. package/dist/{dist-BC-ZEYLd.js → dist-BF5zEHop.js} +2 -3
  267. package/dist/{dist-CyBwSiAa.js → dist-BS5uKktL.js} +2 -3
  268. package/dist/{dist-C7EtxNCb.js → dist-CEdyyDn7.js} +2 -3
  269. package/dist/{dist-Cr7RPxI9.js → dist-CWSG7Kj0.js} +478 -461
  270. package/dist/{dist-DXyGqIDE.js → dist-Cy8I5scI.js} +2 -3
  271. package/dist/{dist-DtOF3bDW.js → dist-CzrLYq2s.js} +398 -344
  272. package/dist/{dist-DVNjPKsH.js → dist-D6fZec6r.js} +3 -4
  273. package/dist/{dist-C_dV9QAx.js → dist-DDN7yR-w.js} +7 -7
  274. package/dist/{dist-CuLwJF7H.js → dist-Dd5MU2Ev.js} +23 -14
  275. package/dist/dist-DyFArF_G.js +4 -0
  276. package/dist/{dist-DBxgrOeo.js → dist-V7W1UhVr.js} +1882 -1792
  277. package/dist/{dist-DPcf6XZ8.js → dist-p3wymUDt.js} +2 -3
  278. package/dist/dist-pA3ooG6N.js +4 -0
  279. package/dist/{dist-3HpYixwF.js → dist-txQLT2sF.js} +173 -161
  280. package/dist/{editor-modal-Bzhl-PgI.js → editor-modal-Du9VI9q4.js} +203 -218
  281. package/dist/{emojiData-6m0DBh7O.js → emojiData-CBNuCfum.js} +1 -2
  282. package/dist/en-CyEE7FPY.js +1 -0
  283. package/dist/{en-CW71OK66.js → en-D14i5nFh.js} +1 -2
  284. package/dist/{en-CDhWRrF_.js → en-FzUuJ8HW.js} +1 -2
  285. package/dist/{es-CAv-Vldw.js → es-Dw_h7Oll.js} +1 -2
  286. package/dist/{es-DdK7zQfi.js → es-zDacbMhs.js} +1 -2
  287. package/dist/{extensions-CdyweA50.js → extensions-FRYhx7qa.js} +59 -68
  288. package/dist/{eye-DWkSvYpj.js → eye-BKj9Tfnc.js} +1 -2
  289. package/dist/{formatAbsoluteDateTime-DMmop3C-.js → formatAbsoluteDateTime-Ck2_zXra.js} +1 -2
  290. package/dist/{formatRelativeTime-CtUU-QZ8.js → formatRelativeTime-BTD8Ktt-.js} +0 -1
  291. package/dist/{fr-DVPtxpR6.js → fr-BJaeKu_8.js} +1 -2
  292. package/dist/{fr-Dz5Bgb7-.js → fr-CSgYtjOd.js} +1 -2
  293. package/dist/{image-DesWjcZ4.js → image-DNdvdTla.js} +1 -2
  294. package/dist/index.d.ts +6 -6
  295. package/dist/{info-ClWJGoZy.js → info-Bx-kBkbH.js} +1 -2
  296. package/dist/{ja-Di-zJiT8.js → ja-B7H3ID8O.js} +1 -2
  297. package/dist/{ja-dcWzjStz.js → ja-Cu2HdYaK.js} +1 -2
  298. package/dist/{keys-Zd9KWRD1.js → keys-DBjrQkYH.js} +2 -3
  299. package/dist/{link-BqRicFTA.js → link-D8-rYdIQ.js} +1 -2
  300. package/dist/{liquid.browser-Ct2-EezB.js → liquid.browser-D1RxawkY.js} +704 -686
  301. package/dist/{list-bojQr9bn.js → list-BneisA27.js} +1 -2
  302. package/dist/{loader-circle-B2B8LbUu.js → loader-circle-DBEXphyx.js} +1 -2
  303. package/dist/{logger-k9Nbj3Cp.js → logger-BOu7oEtk.js} +1 -2
  304. package/dist/{message-circle-BEuiNsyZ.js → message-circle-Bg4xInCM.js} +1 -2
  305. package/dist/{nl-CvVuHYFL.js → nl-176ySmc5.js} +1 -2
  306. package/dist/{nl-LZNqQgE4.js → nl-1Ai2NykB.js} +1 -2
  307. package/dist/{normalizeMergeTagMarkup-P6SUBuPv.js → normalizeMergeTagMarkup-IH8COHzd.js} +30 -31
  308. package/dist/{package-DCROB4aM.js → package-B40Vkfsp.js} +1 -2
  309. package/dist/{pencil-CEotCKbf.js → pencil-CYdAHTds.js} +1 -2
  310. package/dist/{preRenderCustomBlocks-D8rr61_z.js → preRenderCustomBlocks-AbZArwkR.js} +4 -5
  311. package/dist/{pt-BR-CHM-ZKvE.js → pt-BR-Bp92Fc6J.js} +1 -2
  312. package/dist/{pt-BR-D6P_mNwA.js → pt-BR-CIbp__Z7.js} +1 -2
  313. package/dist/{pt-BR-ZhO4vgyq.js → pt-BR-dDlTwX18.js} +1 -2
  314. package/dist/{readableTextColor-f8Kykfnh.js → readableTextColor-BfZUGnVj.js} +1 -2
  315. package/dist/{refresh-cw-C6M2mHNC.js → refresh-cw-Bb1FWrU0.js} +1 -2
  316. package/dist/{rolldown-runtime-Dy4uBu1J.js → rolldown-runtime-CGnMp29N.js} +1 -2
  317. package/dist/{runtime-dom.esm-bundler-B8WCZWUm.js → runtime-dom.esm-bundler-CLGymEyk.js} +7 -8
  318. package/dist/sanitizeHtml-CnOA1efV.js +942 -0
  319. package/dist/{search-Cy99zPYf.js → search-BZEo08gi.js} +1 -2
  320. package/dist/{send-BDLJFsf3.js → send-DHtrnXQs.js} +1 -2
  321. package/dist/{smartphone-CVvQaNA4.js → smartphone-dlN3vpA3.js} +1 -2
  322. package/dist/{socialIcons-Dd-jRiVe.js → socialIcons-B_d52_eS.js} +256 -267
  323. package/dist/{sparkles-Ce0Qz0ox.js → sparkles-NOttoDnJ.js} +1 -2
  324. package/dist/{square-BWlolnXe.js → square-B1CJgdt2.js} +1 -2
  325. package/dist/{styleConstants-v1dNKgJf.js → styleConstants-B8xVRiwX.js} +1 -2
  326. package/dist/{templateSettingsFields-YCFVBVYh.js → templateSettingsFields-cjlP-jdw.js} +1 -2
  327. package/dist/templatical-editor.js +245 -265
  328. package/dist/{text-align-start-D1V5gPTy.js → text-align-start-zpoXmb-Z.js} +1 -2
  329. package/dist/{trash-CZfiUFmw.js → trash-CGbk4Sgt.js} +1 -2
  330. package/dist/{triangle-alert-CFDzyFC7.js → triangle-alert-CKLMyGVp.js} +1 -2
  331. package/dist/{upload-BJfvdIrD.js → upload-DQoackAn.js} +1 -2
  332. package/dist/{useCloudI18n-Dcjua65H.js → useCloudI18n-DcLtxOQZ.js} +3 -4
  333. package/dist/{useEditorCore-BTLeAVlM.js → useEditorCore-DG9UvWUm.js} +931 -984
  334. package/dist/useEditorRoot-BKr6nNkC.js +7 -0
  335. package/dist/{useI18n-BdoY7xDE.js → useI18n-CeTm777E.js} +3 -4
  336. package/dist/{useLogicTag-DKLZ1T9H.js → useLogicTag-DFDYJeMN.js} +4 -5
  337. package/dist/{useMergeTag-Bhdx7AKk.js → useMergeTag-B46vACAG.js} +4 -5
  338. package/dist/{usePopoverPosition-BZea45XK.js → usePopoverPosition-C42kD7zt.js} +6 -10
  339. package/dist/{useScrollToBlock-FmNMALM_.js → useScrollToBlock-C-NzvjeO.js} +4 -6
  340. package/dist/{vue.runtime.esm-bundler-DgFJ6GPG.js → vue.runtime.esm-bundler-CrlI8j5R.js} +14 -18
  341. package/dist/{withCurrentFont-BATJHNve.js → withCurrentFont-v_a4Oso8.js} +2 -3
  342. package/dist/{x-CZ0Js0hA.js → x-zcrnmcmU.js} +1 -2
  343. package/package.json +24 -22
  344. package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js.map +0 -1
  345. package/dist/cdn/chunks/LoadingTrack-BIcL4NiY.js +0 -12
  346. package/dist/cdn/chunks/en-ifvu6oPv.js +0 -1
  347. package/dist/cdn/chunks/liquid.browser-Bbt17cVz.js.map +0 -1
  348. package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js +0 -62
  349. package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js.map +0 -1
  350. package/dist/cdn/chunks/src-BNFnxfrA.js.map +0 -1
  351. package/dist/cdn/chunks/src-Bs_yxk3h.js.map +0 -1
  352. package/dist/cdn/chunks/src-YGkzYyu0.js +0 -649
  353. package/dist/cdn/chunks/src-YGkzYyu0.js.map +0 -1
  354. package/dist/cdn/chunks/tiptap-CtVrAViq.js.map +0 -1
  355. package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js.map +0 -1
  356. package/dist/cdn/chunks/useEditorRoot-CR5GjJD6.js +0 -10
  357. package/dist/dist-BPFcLKTw.js +0 -5
  358. package/dist/dist-D7Yj7E-F.js +0 -5
  359. package/dist/en-DwV15ltA.js +0 -1
  360. package/dist/sanitizeRichTextHtml-DeISfLFr.js +0 -60
  361. package/dist/useEditorRoot-DUy67lJu.js +0 -8
@@ -1,50 +1,49 @@
1
- import { A as e, At as t, C as n, D as r, G as i, H as a, I as o, M as s, Mt as c, N as l, O as u, P as d, Q as f, V as p, X as m, Y as h, _ as g, at as _, b as v, c as y, d as b, et as x, f as S, g as C, it as w, j as T, jt as E, k as D, l as O, ot as k, q as A, r as j, rt as ee, u as M, v as N, x as P, y as F, z as I } from "./vue.runtime.esm-bundler-DgFJ6GPG.js";
2
- import { c as L, o as te, s as ne } from "./runtime-dom.esm-bundler-B8WCZWUm.js";
3
- import { $ as re, A as ie, C as ae, Ct as oe, E as se, Et as ce, F as le, H as ue, I as de, J as fe, L as pe, M as me, N as he, O as ge, Q as _e, R as ve, St as ye, T as be, Tt as xe, U as Se, W as Ce, X as we, Y as Te, _t as Ee, at as De, bt as Oe, c as ke, ct as Ae, dt as je, f as Me, ft as Ne, gt as Pe, h as Fe, ht as Ie, it as Le, j as Re, k as ze, m as Be, mt as Ve, nt as He, o as Ue, pt as We, rt as Ge, s as Ke, u as qe, vt as Je, w as Ye, wt as Xe, x as Ze, xt as Qe, yt as $e, z as et } from "./dist-DtOF3bDW.js";
4
- import { B as tt, D as nt, E as rt, L as it, M as at, N as ot, O as st, R as ct, S as lt, V as ut, _ as dt, a as ft, b as pt, d as mt, g as ht, l as gt, m as _t, n as vt, t as yt, v as bt, w as xt, x as St, y as Ct } from "./socialIcons-Dd-jRiVe.js";
5
- import { _ as wt, h as Tt, v as Et, y as Dt } from "./dist-C7EtxNCb.js";
6
- import { a as Ot, c as kt, i as At } from "./dist-DI4_YSnG.js";
7
- import { $ as jt, A as Mt, B as Nt, C as Pt, D as Ft, E as It, F as Lt, H as Rt, I as zt, J as Bt, K as Vt, L as Ht, M as Ut, N as Wt, O as Gt, P as Kt, Q as qt, R as Jt, S as Yt, T as Xt, V as Zt, W as Qt, X as $t, Y as en, Z as tn, _ as nn, a as rn, b as an, c as on, d as sn, f as cn, g as ln, h as un, j as dn, k as fn, l as pn, m as mn, n as hn, o as gn, p as _n, q as vn, r as yn, s as bn, v as xn, w as Sn, x as Cn, y as wn, z as Tn } from "./keys-Zd9KWRD1.js";
8
- import { t as R } from "./logger-k9Nbj3Cp.js";
9
- import { t as En } from "./useI18n-BdoY7xDE.js";
10
- import { i as Dn, r as On, s as kn, t as An } from "./usePopoverPosition-BZea45XK.js";
11
- import { r as jn, t as Mn } from "./templateSettingsFields-YCFVBVYh.js";
12
- import { t as Nn } from "./createLucideIcon-0lYYH3EW.js";
13
- import { n as Pn } from "./upload-BJfvdIrD.js";
14
- import { t as Fn } from "./image-DesWjcZ4.js";
15
- import { t as In } from "./message-circle-BEuiNsyZ.js";
16
- import { t as Ln } from "./trash-CZfiUFmw.js";
17
- import { t as Rn } from "./triangle-alert-CFDzyFC7.js";
18
- import { t as zn } from "./LoadingTrack-B0RKQWq3.js";
19
- import { t as Bn } from "./_plugin-vue_export-helper-B3ysoDQm.js";
20
- import { t as Vn } from "./useEditorRoot-DUy67lJu.js";
21
- import "./useCloudI18n-Dcjua65H.js";
22
- import { t as Hn } from "./useMergeTag-Bhdx7AKk.js";
23
- import { t as Un } from "./useLogicTag-DKLZ1T9H.js";
24
- import { t as Wn } from "./sanitizeRichTextHtml-DeISfLFr.js";
25
- import { t as Gn } from "./readableTextColor-f8Kykfnh.js";
26
- //#region src/utils/activeEditorTracker.ts
27
- var Kn = /* @__PURE__ */ new Set(), qn = 0, Jn = 0;
28
- function Yn() {
29
- let e = ++Jn;
30
- return Kn.add(e), qn === 0 && (qn = e), {
1
+ import { A as e, At as t, C as n, D as r, G as i, H as a, I as o, M as s, Mt as c, N as l, O as u, P as d, Q as f, V as p, X as m, Y as h, _ as g, at as _, b as v, c as y, d as b, et as x, f as S, g as C, it as w, j as T, jt as E, k as D, l as O, ot as k, q as A, r as j, rt as M, u as N, v as ee, x as P, y as F, z as I } from "./vue.runtime.esm-bundler-CrlI8j5R.js";
2
+ import { c as L, o as te, s as ne } from "./runtime-dom.esm-bundler-CLGymEyk.js";
3
+ import { $ as re, A as ie, At as ae, B as oe, Ct as se, D as ce, Dt as le, E as ue, Et as de, F as fe, G as pe, K as me, L as he, M as ge, N as _e, O as ve, Ot as ye, P as be, Q as xe, R as Se, S as Ce, St as we, T as Te, Tt as Ee, V as De, W as Oe, Z as ke, _t as Ae, at as je, bt as Me, c as Ne, ct as Pe, d as Fe, ft as Ie, g as Le, gt as Re, h as ze, ht as Be, j as Ve, kt as He, nt as Ue, o as We, ot as Ge, p as Ke, q as qe, s as Je, st as Ye, tt as Xe, u as Ze, vt as Qe, w as $e, wt as et, xt as tt, yt as nt, z as rt } from "./dist-CzrLYq2s.js";
4
+ import { B as it, D as at, E as ot, L as st, M as ct, N as lt, O as ut, R as dt, S as ft, V as pt, _ as mt, a as ht, b as gt, d as _t, g as vt, l as yt, m as bt, n as xt, t as St, v as Ct, w as wt, x as Tt, y as Et } from "./socialIcons-B_d52_eS.js";
5
+ import { _ as Dt, h as Ot, v as kt, y as At } from "./dist-CEdyyDn7.js";
6
+ import { a as jt, c as Mt, i as Nt } from "./dist-BA-jTQgw.js";
7
+ import { $ as Pt, A as Ft, B as It, C as Lt, D as Rt, E as zt, F as Bt, H as Vt, I as Ht, J as Ut, K as Wt, L as Gt, M as Kt, N as qt, O as Jt, P as Yt, Q as Xt, R as Zt, S as Qt, T as $t, V as en, W as tn, X as nn, Y as rn, Z as an, _ as on, a as sn, b as cn, c as ln, d as un, f as dn, g as fn, h as pn, j as mn, k as hn, l as gn, m as _n, n as vn, o as yn, p as bn, q as xn, r as Sn, s as Cn, v as wn, w as Tn, x as En, y as Dn, z as On } from "./keys-DBjrQkYH.js";
8
+ import { t as R } from "./logger-BOu7oEtk.js";
9
+ import { t as kn } from "./useI18n-CeTm777E.js";
10
+ import { i as An, r as jn, s as Mn, t as Nn } from "./usePopoverPosition-C42kD7zt.js";
11
+ import { r as Pn, t as Fn } from "./templateSettingsFields-cjlP-jdw.js";
12
+ import { n as In, t as Ln } from "./sanitizeHtml-CnOA1efV.js";
13
+ import { t as Rn } from "./createLucideIcon-BV7Gwz_Z.js";
14
+ import { n as zn } from "./upload-DQoackAn.js";
15
+ import { t as Bn } from "./image-DNdvdTla.js";
16
+ import { t as Vn } from "./message-circle-Bg4xInCM.js";
17
+ import { t as Hn } from "./trash-CGbk4Sgt.js";
18
+ import { t as Un } from "./triangle-alert-CKLMyGVp.js";
19
+ import { t as Wn } from "./LoadingTrack-DZA5AoP9.js";
20
+ import { t as Gn } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
21
+ import { t as Kn } from "./useEditorRoot-BKr6nNkC.js";
22
+ import "./useCloudI18n-DcLtxOQZ.js";
23
+ import { t as qn } from "./useMergeTag-B46vACAG.js";
24
+ import { t as Jn } from "./useLogicTag-DFDYJeMN.js";
25
+ import { t as Yn } from "./readableTextColor-BfZUGnVj.js";
26
+ // src/utils/activeEditorTracker.ts
27
+ var Xn = /* @__PURE__ */ new Set(), Zn = 0, Qn = 0;
28
+ function $n() {
29
+ let e = ++Qn;
30
+ return Xn.add(e), Zn === 0 && (Zn = e), {
31
31
  id: e,
32
- isActive: () => Kn.size <= 1 || qn === e,
32
+ isActive: () => Xn.size <= 1 || Zn === e,
33
33
  claim: () => {
34
- qn = e;
34
+ Zn = e;
35
35
  },
36
36
  dispose: () => {
37
- if (Kn.delete(e), qn === e) {
38
- let e = Array.from(Kn);
39
- qn = e[e.length - 1] ?? 0;
37
+ if (Xn.delete(e), Zn === e) {
38
+ let e = Array.from(Xn);
39
+ Zn = e[e.length - 1] ?? 0;
40
40
  }
41
41
  }
42
42
  };
43
43
  }
44
- //#endregion
45
- //#region src/composables/usePreviewResolution.ts
46
- var Xn = 500;
47
- function Zn(e) {
44
+ // src/composables/usePreviewResolution.ts
45
+ var er = 500;
46
+ function tr(e) {
48
47
  let t = typeof e.resolvePreview == "function", n = f(null), r = f(!1), i = f(!1), a = 0, o = null;
49
48
  function s() {
50
49
  o !== null && (clearTimeout(o), o = null);
@@ -55,13 +54,13 @@ function Zn(e) {
55
54
  let o = ++a;
56
55
  r.value = !0;
57
56
  let s = {
58
- content: Je(e.getContent()),
57
+ content: we(e.getContent()),
59
58
  ...e.getRecipient?.() === void 0 ? {} : { recipient: e.getRecipient() }
60
59
  };
61
60
  try {
62
61
  let e = await t(s);
63
62
  if (o !== a) return;
64
- if (!De(e)) {
63
+ if (!Pe(e)) {
65
64
  i.value = !0;
66
65
  return;
67
66
  }
@@ -76,7 +75,7 @@ function Zn(e) {
76
75
  function l() {
77
76
  t && (s(), n.value === null ? c() : o = setTimeout(() => {
78
77
  o = null, c();
79
- }, Xn));
78
+ }, er));
80
79
  }
81
80
  return I(() => [e.isActive(), e.getRecipient?.()], ([e]) => {
82
81
  e ? l() : (s(), a++, r.value = !1, n.value = null, i.value = !1);
@@ -91,9 +90,8 @@ function Zn(e) {
91
90
  supersedesSamples: y(() => t)
92
91
  };
93
92
  }
94
- //#endregion
95
- //#region src/composables/useMergeTagPicker.ts
96
- function Qn() {
93
+ // src/composables/useMergeTagPicker.ts
94
+ function nr() {
97
95
  let e = f(!1), t = f([]), n = f(null), r = null;
98
96
  function a(i, a) {
99
97
  if (r) {
@@ -122,9 +120,8 @@ function Qn() {
122
120
  resolve: o
123
121
  };
124
122
  }
125
- //#endregion
126
- //#region src/composables/useLogicTagPicker.ts
127
- function $n() {
123
+ // src/composables/useLogicTagPicker.ts
124
+ function rr() {
128
125
  let e = f(!1), t = f([]), n = f([]), r = null;
129
126
  function a(i, a) {
130
127
  if (r) {
@@ -153,31 +150,30 @@ function $n() {
153
150
  resolve: o
154
151
  };
155
152
  }
156
- //#endregion
157
- //#region src/composables/useTemplateLint.ts
158
- function er(e) {
153
+ // src/composables/useTemplateLint.ts
154
+ function ir(e) {
159
155
  return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 && e.deliverability === !1 && e.compatibility === !1 : !1;
160
156
  }
161
- var tr = !1;
162
- function nr(e) {
157
+ var ar = !1;
158
+ function or(e) {
163
159
  let t = f([]), n = f(0), r = f(-1), i = I(e.content, () => {
164
160
  n.value++;
165
161
  }, {
166
162
  deep: !0,
167
163
  flush: "sync"
168
- }), a = f(!1), o = f(!1), s = x(null), c = er(e.options), l = null, u = !1;
164
+ }), a = f(!1), o = f(!1), s = x(null), c = ir(e.options), l = null, u = !1;
169
165
  c || d();
170
166
  async function d() {
171
167
  try {
172
168
  let t = await import("@templatical/quality");
173
169
  if (u) return;
174
- s.value = { lintTemplate: t.lintTemplate }, a.value = !0, p(), l = Dt(e.content, p, {
170
+ s.value = { lintTemplate: t.lintTemplate }, a.value = !0, p(), l = At(e.content, p, {
175
171
  debounce: e.debounce ?? 500,
176
172
  deep: !0
177
173
  });
178
174
  } catch {
179
175
  if (u) return;
180
- o.value = !0, tr || (tr = !0, R.info("@templatical/quality isn't installed, so the Issues panel and its lint badges are off. Add @templatical/quality to your dependencies to turn them on."));
176
+ o.value = !0, ar || (ar = !0, R.info("@templatical/quality isn't installed, so the Issues panel and its lint badges are off. Add @templatical/quality to your dependencies to turn them on."));
181
177
  }
182
178
  }
183
179
  function p() {
@@ -208,9 +204,8 @@ function nr(e) {
208
204
  destroy: g
209
205
  };
210
206
  }
211
- //#endregion
212
- //#region src/composables/useKeyboardReorder.ts
213
- function rr(e, t, n = []) {
207
+ // src/composables/useKeyboardReorder.ts
208
+ function sr(e, t, n = []) {
214
209
  let r = f(null), i = f(""), a = null;
215
210
  function o(t) {
216
211
  let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
@@ -237,7 +232,7 @@ function rr(e, t, n = []) {
237
232
  let i = o(r);
238
233
  if (!i) return "";
239
234
  let a = (i.sectionId ? c(i.sectionId, i.columnIndex ?? 0) : e.content.value.blocks)?.[i.index];
240
- return a ? lt(a, t.t, n) : "";
235
+ return a ? ft(a, t.t, n) : "";
241
236
  }
242
237
  function c(t, n) {
243
238
  return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
@@ -304,15 +299,13 @@ function rr(e, t, n = []) {
304
299
  drop: g
305
300
  };
306
301
  }
307
- //#endregion
308
- //#region src/composables/useUiTheme.ts
309
- function ir(e) {
310
- let t = kt("(prefers-color-scheme: dark)");
302
+ // src/composables/useUiTheme.ts
303
+ function cr(e) {
304
+ let t = Mt("(prefers-color-scheme: dark)");
311
305
  return { resolvedTheme: y(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
312
306
  }
313
- //#endregion
314
- //#region src/composables/useThemeStyles.ts
315
- var ar = {
307
+ // src/composables/useThemeStyles.ts
308
+ var lr = {
316
309
  bg: "--tpl-bg",
317
310
  bgElevated: "--tpl-bg-elevated",
318
311
  bgHover: "--tpl-bg-hover",
@@ -336,19 +329,18 @@ var ar = {
336
329
  dangerLight: "--tpl-danger-light",
337
330
  canvasBg: "--tpl-canvas-bg"
338
331
  };
339
- function or({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
332
+ function ur({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
340
333
  return { themeStyles: y(() => {
341
334
  let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
342
- if (a) for (let [e, t] of Object.entries(ar)) {
335
+ if (a) for (let [e, t] of Object.entries(lr)) {
343
336
  let n = a[e];
344
337
  n && (r[t] = n);
345
338
  }
346
339
  return n && Object.assign(r, n()), r;
347
340
  }) };
348
341
  }
349
- //#endregion
350
- //#region src/composables/useBlockRegistry.ts
351
- function sr() {
342
+ // src/composables/useBlockRegistry.ts
343
+ function dr() {
352
344
  let e = x(/* @__PURE__ */ new Map());
353
345
  function t(t, n) {
354
346
  e.value.set(t, n), _(e);
@@ -356,7 +348,7 @@ function sr() {
356
348
  function n(t, n) {
357
349
  let r = `custom:${t.type}`, i = {
358
350
  component: n,
359
- createBlock: () => se(t),
351
+ createBlock: () => ce(t),
360
352
  definition: t
361
353
  };
362
354
  e.value.set(r, i), _(e);
@@ -382,11 +374,7 @@ function sr() {
382
374
  let t = a(e.customType);
383
375
  if (!t) return o("Block definition not found");
384
376
  try {
385
- let { Liquid: n } = await import("./liquid.browser-Ct2-EezB.js");
386
- return await new n({
387
- strictVariables: !1,
388
- strictFilters: !1
389
- }).parseAndRender(t.template, e.fieldValues);
377
+ return await ve(await import("./liquid.browser-D1RxawkY.js")).parseAndRender(t.template, e.fieldValues);
390
378
  } catch (t) {
391
379
  return R.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
392
380
  }
@@ -404,11 +392,10 @@ function sr() {
404
392
  isRegistered: c
405
393
  };
406
394
  }
407
- //#endregion
408
- //#region src/composables/useCustomBlockStylesheets.ts
409
- function cr(e, t) {
395
+ // src/composables/useCustomBlockStylesheets.ts
396
+ function fr(e, t) {
410
397
  return y(() => {
411
- let n = lr(e.value.blocks);
398
+ let n = pr(e.value.blocks);
412
399
  if (n.size === 0) return [];
413
400
  let r = /* @__PURE__ */ new Set(), i = [];
414
401
  for (let e of n) {
@@ -420,76 +407,75 @@ function cr(e, t) {
420
407
  return i;
421
408
  });
422
409
  }
423
- function lr(e) {
410
+ function pr(e) {
424
411
  let t = /* @__PURE__ */ new Set();
425
- return ur(e, t), t;
412
+ return mr(e, t), t;
426
413
  }
427
- function ur(e, t) {
428
- for (let n of e) if (He(n)) t.add(n.customType);
414
+ function mr(e, t) {
415
+ for (let n of e) if (je(n)) t.add(n.customType);
429
416
  else if (n.type === "section") {
430
417
  let e = n.children;
431
418
  if (!e) continue;
432
- for (let n of e) ur(n, t);
433
- } else Ae(n) && ur(n.children, t);
419
+ for (let n of e) mr(n, t);
420
+ } else Ie(n) && mr(n.children, t);
434
421
  }
435
- //#endregion
436
- //#region src/utils/registerBuiltInBlocks.ts
437
- var dr = [
422
+ // src/utils/registerBuiltInBlocks.ts
423
+ var hr = [
438
424
  {
439
425
  type: "section",
440
- createBlock: he
426
+ createBlock: fe
441
427
  },
442
428
  {
443
429
  type: "title",
444
- createBlock: ve
430
+ createBlock: oe
445
431
  },
446
432
  {
447
433
  type: "paragraph",
448
- createBlock: me
434
+ createBlock: be
449
435
  },
450
436
  {
451
437
  type: "image",
452
- createBlock: ie
438
+ createBlock: ge
453
439
  },
454
440
  {
455
441
  type: "button",
456
- createBlock: Ye
442
+ createBlock: Te
457
443
  },
458
444
  {
459
445
  type: "divider",
460
- createBlock: ge
446
+ createBlock: ie
461
447
  },
462
448
  {
463
449
  type: "video",
464
- createBlock: et
450
+ createBlock: De
465
451
  },
466
452
  {
467
453
  type: "social",
468
- createBlock: le
454
+ createBlock: he
469
455
  },
470
456
  {
471
457
  type: "menu",
472
- createBlock: Re
458
+ createBlock: _e
473
459
  },
474
460
  {
475
461
  type: "table",
476
- createBlock: pe
462
+ createBlock: rt
477
463
  },
478
464
  {
479
465
  type: "spacer",
480
- createBlock: de
466
+ createBlock: Se
481
467
  },
482
468
  {
483
469
  type: "html",
484
- createBlock: ze
470
+ createBlock: Ve
485
471
  },
486
472
  {
487
473
  type: "countdown",
488
- createBlock: be
474
+ createBlock: ue
489
475
  }
490
476
  ];
491
- function fr(e, t) {
492
- for (let n of dr) {
477
+ function gr(e, t) {
478
+ for (let n of hr) {
493
479
  let r = t[n.type];
494
480
  r && e.registerBuiltIn(n.type, {
495
481
  component: r,
@@ -497,100 +483,95 @@ function fr(e, t) {
497
483
  });
498
484
  }
499
485
  }
500
- //#endregion
501
- //#region src/utils/resolveHtmlBlockPreview.ts
502
- function pr(e) {
486
+ // src/utils/resolveHtmlBlockPreview.ts
487
+ function _r(e) {
503
488
  return typeof e == "boolean" ? e : e?.enabled ?? !1;
504
489
  }
505
- //#endregion
506
- //#region src/utils/collectOffPaletteDefaults.ts
507
- function mr(e) {
490
+ // src/utils/collectOffPaletteDefaults.ts
491
+ function vr(e) {
508
492
  return typeof e == "object" && !!e && !Array.isArray(e);
509
493
  }
510
- function hr(e, t, n) {
511
- let r = new Set(e.map((e) => On(e))), i = [], a = (e, t) => {
512
- for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(On(o)) && i.push(`${t}.${n}: ${o}`) : mr(o) && a(o, `${t}.${n}`);
494
+ function yr(e, t, n) {
495
+ let r = new Set(e.map((e) => jn(e))), i = [], a = (e, t) => {
496
+ for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(jn(o)) && i.push(`${t}.${n}: ${o}`) : vr(o) && a(o, `${t}.${n}`);
513
497
  }, o = t;
514
- for (let [e, t] of Object.entries(Ue)) {
498
+ for (let [e, t] of Object.entries(We)) {
515
499
  let n = o?.[e];
516
500
  a({
517
501
  ...t,
518
- ...mr(n) ? n : {}
502
+ ...vr(n) ? n : {}
519
503
  }, e);
520
504
  }
521
505
  return a({
522
- ...Ke,
506
+ ...Je,
523
507
  ...n ?? {}
524
508
  }, "template"), i;
525
509
  }
526
- //#endregion
527
- //#region src/utils/localizedBlockDefaults.ts
528
- function gr(e) {
510
+ // src/utils/localizedBlockDefaults.ts
511
+ function br(e) {
529
512
  return {
530
513
  title: { content: `<p>${e.blockDefaults.title}</p>` },
531
514
  paragraph: { content: `<p>${e.blockDefaults.paragraph}</p>` },
532
515
  button: { text: e.blockDefaults.button }
533
516
  };
534
517
  }
535
- //#endregion
536
- //#region src/i18n/index.ts
537
- var _r = /* #__PURE__ */ Object.assign({
538
- "./locales/ca.ts": () => import("./ca-C7mTzW1r.js"),
539
- "./locales/de.ts": () => import("./de-DNuYQTmS.js"),
540
- "./locales/en.ts": () => import("./en-CW71OK66.js"),
541
- "./locales/es.ts": () => import("./es-DdK7zQfi.js"),
542
- "./locales/fr.ts": () => import("./fr-Dz5Bgb7-.js"),
543
- "./locales/ja.ts": () => import("./ja-Di-zJiT8.js"),
544
- "./locales/nl.ts": () => import("./nl-CvVuHYFL.js"),
545
- "./locales/pt-BR.ts": () => import("./pt-BR-ZhO4vgyq.js")
546
- }), vr = /* #__PURE__ */ Object.assign({
547
- "./locales/cloud/de.ts": () => import("./de-DBOTcDj2.js"),
548
- "./locales/cloud/en.ts": () => import("./en-CDhWRrF_.js"),
549
- "./locales/cloud/pt-BR.ts": () => import("./pt-BR-CHM-ZKvE.js")
518
+ // src/i18n/index.ts
519
+ var xr = /* #__PURE__ */ Object.assign({
520
+ "./locales/ca.ts": () => import("./ca-CD-Kt1qz.js"),
521
+ "./locales/de.ts": () => import("./de-CeFJ6wbM.js"),
522
+ "./locales/en.ts": () => import("./en-D14i5nFh.js"),
523
+ "./locales/es.ts": () => import("./es-zDacbMhs.js"),
524
+ "./locales/fr.ts": () => import("./fr-CSgYtjOd.js"),
525
+ "./locales/ja.ts": () => import("./ja-B7H3ID8O.js"),
526
+ "./locales/nl.ts": () => import("./nl-176ySmc5.js"),
527
+ "./locales/pt-BR.ts": () => import("./pt-BR-dDlTwX18.js")
528
+ }), Sr = /* #__PURE__ */ Object.assign({
529
+ "./locales/cloud/de.ts": () => import("./de-6M4JoHoD.js"),
530
+ "./locales/cloud/en.ts": () => import("./en-FzUuJ8HW.js"),
531
+ "./locales/cloud/pt-BR.ts": () => import("./pt-BR-Bp92Fc6J.js")
550
532
  });
551
- function yr(e) {
533
+ function Cr(e) {
552
534
  return Object.keys(e).map((e) => e.match(/\/([^/]+)\.ts$/)?.[1]).filter((e) => !!e);
553
535
  }
554
- var br = yr(_r), xr = yr(vr);
555
- function Sr(e) {
536
+ var wr = Cr(xr), Tr = Cr(Sr);
537
+ function Er(e) {
556
538
  return e.trim().replace(/_/g, "-").toLowerCase();
557
539
  }
558
- function Cr(e, t) {
559
- let n = Sr(e);
560
- return t.find((e) => Sr(e) === n);
540
+ function Dr(e, t) {
541
+ let n = Er(e);
542
+ return t.find((e) => Er(e) === n);
561
543
  }
562
- function wr(e) {
563
- return Sr(e).split("-")[0];
544
+ function Or(e) {
545
+ return Er(e).split("-")[0];
564
546
  }
565
- function Tr(e, t) {
566
- return Cr(e, t) ?? Cr(wr(e), t);
547
+ function kr(e, t) {
548
+ return Dr(e, t) ?? Dr(Or(e), t);
567
549
  }
568
- function Er(e, t) {
569
- return Tr(e, t) ?? "en";
550
+ function Ar(e, t) {
551
+ return kr(e, t) ?? "en";
570
552
  }
571
- async function Dr(e) {
572
- let t = _r[`./locales/${Er(e, br)}.ts`];
553
+ async function jr(e) {
554
+ let t = xr[`./locales/${Ar(e, wr)}.ts`];
573
555
  return (await t()).default;
574
556
  }
575
- async function Or(e) {
576
- let t = vr[`./locales/cloud/${Er(e, xr)}.ts`];
557
+ async function Mr(e) {
558
+ let t = Sr[`./locales/cloud/${Ar(e, Tr)}.ts`];
577
559
  return (await t()).default;
578
560
  }
579
- function kr(e) {
580
- return Tr(e, br) !== void 0;
561
+ function Nr(e) {
562
+ return kr(e, wr) !== void 0;
581
563
  }
582
- function Ar(e) {
583
- return Tr(e, xr) !== void 0;
564
+ function Pr(e) {
565
+ return kr(e, Tr) !== void 0;
584
566
  }
585
- function jr() {
586
- return [...br];
567
+ function Fr() {
568
+ return [...wr];
587
569
  }
588
- function Mr() {
589
- return [...xr];
570
+ function Ir() {
571
+ return [...Tr];
590
572
  }
591
- //#endregion
592
- //#region src/i18n/contentDefaults.ts
593
- var Nr = {
573
+ // src/i18n/contentDefaults.ts
574
+ var Lr = {
594
575
  en: {
595
576
  video: "Video",
596
577
  days: "Days",
@@ -656,17 +637,17 @@ var Nr = {
656
637
  expired: "このオファーは終了しました"
657
638
  }
658
639
  };
659
- Object.keys(Nr);
660
- var Pr = new Map(Object.keys(Nr).map((e) => [e.toLowerCase(), e]));
661
- function Fr(e) {
662
- if (!e) return Nr.en;
663
- let t = e.trim().replace(/_/g, "-").toLowerCase(), n = Pr.get(t);
664
- if (n) return Nr[n];
665
- let r = Pr.get(wr(t));
666
- return r ? Nr[r] : Nr.en;
667
- }
668
- function Ir(e) {
669
- let t = Fr(e);
640
+ Object.keys(Lr);
641
+ var Rr = new Map(Object.keys(Lr).map((e) => [e.toLowerCase(), e]));
642
+ function zr(e) {
643
+ if (!e) return Lr.en;
644
+ let t = e.trim().replace(/_/g, "-").toLowerCase(), n = Rr.get(t);
645
+ if (n) return Lr[n];
646
+ let r = Rr.get(Or(t));
647
+ return r ? Lr[r] : Lr.en;
648
+ }
649
+ function Br(e) {
650
+ let t = zr(e);
670
651
  return {
671
652
  video: { alt: t.video },
672
653
  countdown: {
@@ -678,11 +659,10 @@ function Ir(e) {
678
659
  }
679
660
  };
680
661
  }
681
- //#endregion
682
- //#region src/utils/collectColorFieldIssues.ts
683
- function Lr(e, t) {
662
+ // src/utils/collectColorFieldIssues.ts
663
+ function Vr(e, t) {
684
664
  let n = [], r = (r, i) => {
685
- let a = St(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
665
+ let a = Tt(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
686
666
  if (a.invalidPresets.length > 0 && n.push({
687
667
  id: s("invalid-presets"),
688
668
  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." : "")
@@ -693,8 +673,8 @@ function Lr(e, t) {
693
673
  id: s("allow-custom-ignored"),
694
674
  message: `${o}: allowCustom: true is ignored because colors.allowCustom is false — a field can narrow the editor-wide palette, never unlock it.`
695
675
  }), !a.allowCustom && a.presets.length > 0) {
696
- let e = r.default ?? "", t = new Set(a.presets.map((e) => On(e)));
697
- e !== "" && !t.has(On(e)) && n.push({
676
+ let e = r.default ?? "", t = new Set(a.presets.map((e) => jn(e)));
677
+ e !== "" && !t.has(jn(e)) && n.push({
698
678
  id: s("off-palette-default"),
699
679
  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.`
700
680
  });
@@ -704,9 +684,8 @@ function Lr(e, t) {
704
684
  else if (t.type === "repeatable") for (let e of t.fields) e.type === "color" && r(e, `${t.key}[].${e.key}`);
705
685
  return n;
706
686
  }
707
- //#endregion
708
- //#region src/utils/keyboardShortcuts.ts
709
- function Rr(e) {
687
+ // src/utils/keyboardShortcuts.ts
688
+ function Hr(e) {
710
689
  for (let t of e.composedPath()) {
711
690
  if (!(t instanceof HTMLElement)) continue;
712
691
  if (t.isContentEditable) return !0;
@@ -715,14 +694,14 @@ function Rr(e) {
715
694
  }
716
695
  return !1;
717
696
  }
718
- function zr(e, t) {
697
+ function Ur(e, t) {
719
698
  let n = e.metaKey || e.ctrlKey;
720
699
  if (n && e.key.toLowerCase() === "s") e.preventDefault(), t.onSave?.();
721
700
  else if (n && e.key.toLowerCase() === "z") {
722
- if (Rr(e)) return;
701
+ if (Hr(e)) return;
723
702
  e.preventDefault(), e.shiftKey ? t.history.redo() : t.history.undo();
724
703
  } else {
725
- if (t.isPicking?.() && !Rr(e)) {
704
+ if (t.isPicking?.() && !Hr(e)) {
726
705
  if (e.key === "Escape") {
727
706
  e.preventDefault(), t.onCancelPick?.();
728
707
  return;
@@ -736,105 +715,103 @@ function zr(e, t) {
736
715
  return;
737
716
  }
738
717
  }
739
- e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Rr(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
718
+ e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Hr(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
740
719
  }
741
720
  }
742
- //#endregion
743
- //#region src/utils/blockComponentResolver.ts
744
- function Br(e, t) {
721
+ // src/utils/blockComponentResolver.ts
722
+ function Wr(e, t) {
745
723
  let n = { fontFamily: t(e.fontFamily) };
746
724
  return e.textColor && (n.color = e.textColor), e.linkColor && (n["--tpl-doc-link-color"] = e.linkColor), e.linkUnderline && (n["--tpl-doc-link-underline"] = "underline"), n;
747
725
  }
748
- function Vr(e, t, n) {
726
+ function Gr(e, t, n) {
749
727
  if (t) {
750
728
  let n = t.getComponent(e);
751
729
  if (n) return n;
752
730
  }
753
731
  return n[e.type] ?? null;
754
732
  }
755
- var Hr = "--tpl-block-bg-layer", Ur = "tpl-has-bg-image";
756
- function Wr(e, t) {
733
+ var Kr = "--tpl-block-bg-layer", qr = "tpl-has-bg-image";
734
+ function Jr(e, t) {
757
735
  if (t === null) return {};
758
- let n = je(e);
736
+ let n = Be(e);
759
737
  if (n === null) return {};
760
- let r = t?.trim(), i = r ? Se(r) : n.url;
738
+ let r = t?.trim(), i = r ? pe(r) : n.url;
761
739
  return {
762
740
  backgroundImage: `url("${i}")`,
763
741
  backgroundSize: n.size,
764
742
  backgroundPosition: n.position,
765
743
  backgroundRepeat: n.repeat,
766
- [Hr]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
744
+ [Kr]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
767
745
  };
768
746
  }
769
- function Gr(e) {
770
- return e && Hr in e ? Ur : void 0;
747
+ function Yr(e) {
748
+ return e && Kr in e ? qr : void 0;
771
749
  }
772
- var Kr = {
750
+ var Xr = {
773
751
  top: "flex-start",
774
752
  middle: "center",
775
753
  bottom: "flex-end"
776
754
  };
777
- function qr(e, t) {
778
- let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${Jr(t, e.aspectRatio)}px` } : { aspectRatio: `1 / ${e.aspectRatio ?? 1}` };
755
+ function Zr(e, t) {
756
+ let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${Qr(t, e.aspectRatio)}px` } : { aspectRatio: `1 / ${e.aspectRatio ?? 1}` };
779
757
  return {
780
758
  display: "flex",
781
759
  flexDirection: "column",
782
- justifyContent: Kr[e.verticalAlign],
760
+ justifyContent: Xr[e.verticalAlign],
783
761
  boxSizing: "border-box",
784
762
  ...n
785
763
  };
786
764
  }
787
- function Jr(e, t) {
765
+ function Qr(e, t) {
788
766
  return Math.max(1, Math.round(Math.max(1, Math.round(e)) * t));
789
767
  }
790
- function Yr(e, t = {}) {
768
+ function $r(e, t = {}) {
791
769
  if (e.type === "wrapper") return {};
792
770
  let { padding: n, backgroundColor: r } = e.styles, i = {
793
771
  padding: `${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`,
794
772
  backgroundColor: r || "transparent"
795
773
  };
796
- if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? qe.paragraphGap : qe.paragraphGap}px`), e.type === "section") {
797
- let n = ce(e.borderRadius);
774
+ if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? Ze.paragraphGap : Ze.paragraphGap}px`), e.type === "section") {
775
+ let n = ae(e.borderRadius);
798
776
  n !== null && (i.borderRadius = n);
799
- let r = Ve(e);
800
- r?.applied && e.backgroundImage ? (Object.assign(i, qr(r, t.heroBoxWidth)), Object.assign(i, Wr({
777
+ let r = Qe(e);
778
+ r?.applied && e.backgroundImage ? (Object.assign(i, Zr(r, t.heroBoxWidth)), Object.assign(i, Jr({
801
779
  ...e.backgroundImage,
802
780
  size: "cover",
803
781
  repeat: !1
804
- }, t.backgroundImageUrl))) : (Object.assign(i, Zr(e.border)), Object.assign(i, Wr(e.backgroundImage, t.backgroundImageUrl)));
782
+ }, t.backgroundImageUrl))) : (Object.assign(i, ti(e.border)), Object.assign(i, Jr(e.backgroundImage, t.backgroundImageUrl)));
805
783
  }
806
784
  return i;
807
785
  }
808
- function Xr(e, t, n, r) {
809
- return e.type === "section" ? Yr(e, {
810
- backgroundImageUrl: rt(t, e.backgroundImage, n),
786
+ function ei(e, t, n, r) {
787
+ return e.type === "section" ? $r(e, {
788
+ backgroundImageUrl: ot(t, e.backgroundImage, n),
811
789
  heroBoxWidth: r
812
- }) : Yr(e);
790
+ }) : $r(e);
813
791
  }
814
- function Zr(e) {
792
+ function ti(e) {
815
793
  let t = {};
816
- for (let [n, r] of Object.entries(xe(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
794
+ for (let [n, r] of Object.entries(He(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
817
795
  return t;
818
796
  }
819
- function Qr(e, t = {}) {
797
+ function ni(e, t = {}) {
820
798
  if (e.type !== "section" || !e.wrapper) return null;
821
799
  let n = e.wrapper, r = {};
822
800
  n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && (r.padding = `${n.padding.top}px ${n.padding.right}px ${n.padding.bottom}px ${n.padding.left}px`);
823
- let i = ce(n.borderRadius);
824
- return i !== null && (r.borderRadius = i), Object.assign(r, Wr(n.backgroundImage, t.backgroundImageUrl)), r;
801
+ let i = ae(n.borderRadius);
802
+ return i !== null && (r.borderRadius = i), Object.assign(r, Jr(n.backgroundImage, t.backgroundImageUrl)), r;
825
803
  }
826
- function $r(e, t = {}) {
804
+ function ri(e, t = {}) {
827
805
  if (e.type !== "wrapper") return null;
828
806
  let n = {};
829
807
  if (e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding) {
830
808
  let t = e.styles.padding;
831
809
  n.padding = `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`;
832
810
  }
833
- return e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, Wr(e.backgroundImage, t.backgroundImageUrl)), n;
811
+ return e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, Jr(e.backgroundImage, t.backgroundImageUrl)), n;
834
812
  }
835
- //#endregion
836
- //#region src/utils/mergeTagLabelSegments.ts
837
- function ei(e, t, n, r = !1) {
813
+ // src/utils/mergeTagLabelSegments.ts
814
+ function ii(e, t, n, r = !1) {
838
815
  if (!e) return [];
839
816
  let i = RegExp(`(${n.value.source}|${n.logic.source})`, "g"), a = [], o = 0, s;
840
817
  for (; (s = i.exec(e)) !== null;) {
@@ -843,18 +820,18 @@ function ei(e, t, n, r = !1) {
843
820
  value: e.slice(o, s.index)
844
821
  });
845
822
  let i = s[0];
846
- if (Le(i, n)) {
847
- let e = r ? we(i, t) : void 0;
823
+ if (Ye(i, n)) {
824
+ let e = r ? re(i, t) : void 0;
848
825
  a.push(e === void 0 ? {
849
826
  type: "tag",
850
- value: Te(i, t)
827
+ value: xe(i, t)
851
828
  } : {
852
829
  type: "text",
853
830
  value: e
854
831
  });
855
832
  } else Ge(i, n) ? a.push({
856
833
  type: "tag",
857
- value: fe(i, n)
834
+ value: ke(i, n)
858
835
  }) : a.push({
859
836
  type: "text",
860
837
  value: i
@@ -866,29 +843,28 @@ function ei(e, t, n, r = !1) {
866
843
  value: e.slice(o)
867
844
  }), a;
868
845
  }
869
- //#endregion
870
- //#region src/components/MergeTagPreviewText.vue
871
- var ti = F({
846
+ // src/components/MergeTagPreviewText.vue
847
+ var ai = F({
872
848
  name: "MergeTagPreviewText",
873
849
  props: { text: {
874
850
  type: String,
875
851
  required: !0
876
852
  } },
877
853
  setup(e) {
878
- let t = n(Gt, Lt), r = n(Kt, Me.liquid), i = n(qt, null), a = y(() => ei(e.text, t.value, r, i?.value ?? !1));
854
+ let t = n(Jt, Bt), r = n(Yt, Ke.liquid), i = n(Xt, null), a = y(() => ii(e.text, t.value, r, i?.value ?? !1));
879
855
  return () => a.value.map((e, t) => e.type === "tag" ? P("span", {
880
856
  key: t,
881
857
  class: "tpl-merge-tag-label"
882
858
  }, e.value) : e.value);
883
859
  }
884
- }), ni = ["href"], ri = /* @__PURE__ */ F({
860
+ }), oi = ["href"], si = /* @__PURE__ */ F({
885
861
  __name: "ButtonBlock",
886
862
  props: {
887
863
  block: {},
888
864
  viewport: {}
889
865
  },
890
866
  setup(e) {
891
- let t = e, n = jt(xn, "ButtonBlock"), r = y(() => {
867
+ let t = e, n = Pt(wn, "ButtonBlock"), r = y(() => {
892
868
  let e = {
893
869
  display: "inline-block",
894
870
  padding: `${t.block.buttonPadding.top}px ${t.block.buttonPadding.right}px ${t.block.buttonPadding.bottom}px ${t.block.buttonPadding.left}px`,
@@ -897,26 +873,26 @@ var ti = F({
897
873
  fontSize: `${t.block.fontSize}px`,
898
874
  fontWeight: "bold",
899
875
  textDecoration: "none",
900
- borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : ce(t.block.borderRadius) ?? "0px",
876
+ borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : ae(t.block.borderRadius) ?? "0px",
901
877
  textAlign: "center"
902
878
  };
903
- return Object.assign(e, Zr(t.block.border)), t.block.fontFamily && (e.fontFamily = n.resolveFontFamily(t.block.fontFamily)), t.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof t.block.width == "number" && (e.width = `${t.block.width}px`, e.boxSizing = "border-box"), e;
879
+ return Object.assign(e, ti(t.block.border)), t.block.fontFamily && (e.fontFamily = n.resolveFontFamily(t.block.fontFamily)), t.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof t.block.width == "number" && (e.width = `${t.block.width}px`, e.boxSizing = "border-box"), e;
904
880
  }), i = y(() => ({ textAlign: t.block.align ?? "center" }));
905
881
  return (t, n) => (T(), S("div", { style: E(i.value) }, [O("a", {
906
882
  href: e.block.url || "#",
907
883
  style: E(r.value),
908
884
  class: "tpl:cursor-default",
909
885
  onClick: n[0] ||= L(() => {}, ["prevent"])
910
- }, [g(ti, { text: e.block.text }, null, 8, ["text"])], 12, ni)], 4));
886
+ }, [g(ai, { text: e.block.text }, null, 8, ["text"])], 12, oi)], 4));
911
887
  }
912
- }), ii = Nn({
888
+ }), ci = Rn({
913
889
  name: "bookmark",
914
890
  size: 24,
915
891
  node: [["path", {
916
892
  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",
917
893
  key: "oz39mx"
918
894
  }]]
919
- }), ai = Nn({
895
+ }), li = Rn({
920
896
  name: "box",
921
897
  size: 24,
922
898
  node: [
@@ -933,7 +909,7 @@ var ti = F({
933
909
  key: "d0xqtd"
934
910
  }]
935
911
  ]
936
- }), oi = Nn({
912
+ }), ui = Rn({
937
913
  name: "eye-off",
938
914
  size: 24,
939
915
  node: [
@@ -954,7 +930,7 @@ var ti = F({
954
930
  key: "1ooewy"
955
931
  }]
956
932
  ]
957
- }), si = Nn({
933
+ }), di = Rn({
958
934
  name: "funnel",
959
935
  size: 24,
960
936
  node: [["path", {
@@ -962,7 +938,7 @@ var ti = F({
962
938
  key: "sc7q7i"
963
939
  }]],
964
940
  aliases: ["filter"]
965
- }), ci = Nn({
941
+ }), fi = Rn({
966
942
  name: "grip-vertical",
967
943
  size: 24,
968
944
  node: [
@@ -1003,14 +979,14 @@ var ti = F({
1003
979
  key: "f4zoj3"
1004
980
  }]
1005
981
  ]
1006
- }), li = Nn({
982
+ }), pi = Rn({
1007
983
  name: "puzzle",
1008
984
  size: 24,
1009
985
  node: [["path", {
1010
986
  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",
1011
987
  key: "w46dr5"
1012
988
  }]]
1013
- }), ui = Nn({
989
+ }), mi = Rn({
1014
990
  name: "video",
1015
991
  size: 24,
1016
992
  node: [["path", {
@@ -1024,44 +1000,44 @@ var ti = F({
1024
1000
  rx: "2",
1025
1001
  key: "158x01"
1026
1002
  }]]
1027
- }), di = ["innerHTML"], fi = [
1003
+ }), hi = ["innerHTML"], gi = [
1028
1004
  "src",
1029
1005
  "width",
1030
1006
  "height"
1031
- ], pi = /* @__PURE__ */ F({
1007
+ ], _i = /* @__PURE__ */ F({
1032
1008
  __name: "CustomBlockIcon",
1033
1009
  props: {
1034
1010
  icon: {},
1035
1011
  size: {}
1036
1012
  },
1037
1013
  setup(e) {
1038
- let t = e, n = y(() => t.size ?? 20), r = y(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), i = y(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/")));
1039
- return (t, a) => r.value ? (T(), S("span", {
1014
+ let t = e, n = y(() => t.size ?? 20), r = y(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), i = y(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/"))), a = y(() => r.value ? In(t.icon ?? "") : "");
1015
+ return (t, o) => r.value ? (T(), S("span", {
1040
1016
  key: 0,
1041
1017
  class: "tpl:inline-flex tpl:items-center tpl:justify-center",
1042
1018
  style: E({
1043
1019
  width: `${n.value}px`,
1044
1020
  height: `${n.value}px`
1045
1021
  }),
1046
- innerHTML: e.icon
1047
- }, null, 12, di)) : i.value ? (T(), S("img", {
1022
+ innerHTML: a.value
1023
+ }, null, 12, hi)) : i.value ? (T(), S("img", {
1048
1024
  key: 1,
1049
1025
  src: e.icon,
1050
1026
  width: n.value,
1051
1027
  height: n.value,
1052
1028
  class: "tpl:inline-block",
1053
1029
  alt: ""
1054
- }, null, 8, fi)) : (T(), M(k(ai), {
1030
+ }, null, 8, gi)) : (T(), N(k(li), {
1055
1031
  key: 2,
1056
1032
  size: n.value,
1057
1033
  "stroke-width": 1.5
1058
1034
  }, null, 8, ["size"]));
1059
1035
  }
1060
- }), mi = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
1061
- function hi(e, t) {
1062
- let n = Vn(), r = null, i = null, a = null;
1036
+ }), vi = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
1037
+ function yi(e, t) {
1038
+ let n = Kn(), r = null, i = null, a = null;
1063
1039
  function o() {
1064
- return e.value ? Array.from(e.value.querySelectorAll(mi)).filter((e) => e.offsetParent !== null) : [];
1040
+ return e.value ? Array.from(e.value.querySelectorAll(vi)).filter((e) => e.offsetParent !== null) : [];
1065
1041
  }
1066
1042
  function s(e) {
1067
1043
  if (e.key !== "Tab") return;
@@ -1076,7 +1052,7 @@ function hi(e, t) {
1076
1052
  a = null;
1077
1053
  let t = o();
1078
1054
  t.length > 0 && (e.value?.querySelector("[autofocus], input:not([disabled])") ?? t[0]).focus();
1079
- }), i = Ot(e, "keydown", s);
1055
+ }), i = jt(e, "keydown", s);
1080
1056
  }
1081
1057
  function l(e = {}) {
1082
1058
  let t = e.restoreFocus !== !1;
@@ -1089,15 +1065,14 @@ function hi(e, t) {
1089
1065
  u(), l();
1090
1066
  });
1091
1067
  }
1092
- //#endregion
1093
- //#region src/composables/useEmoji.ts
1094
- function gi() {
1095
- let [e, t] = Et(!1), n = x([]), r = !1;
1068
+ // src/composables/useEmoji.ts
1069
+ function bi() {
1070
+ let [e, t] = kt(!1), n = x([]), r = !1;
1096
1071
  h(() => {
1097
1072
  r = !0;
1098
1073
  }), I(e, async (e) => {
1099
1074
  if (e && n.value.length === 0) {
1100
- let { emojiCategories: e } = await import("./emojiData-6m0DBh7O.js");
1075
+ let { emojiCategories: e } = await import("./emojiData-CBNuCfum.js");
1101
1076
  if (r) return;
1102
1077
  n.value = e;
1103
1078
  }
@@ -1115,9 +1090,8 @@ function gi() {
1115
1090
  close: a
1116
1091
  };
1117
1092
  }
1118
- //#endregion
1119
- //#region src/composables/useFonts.ts
1120
- var _i = [
1093
+ // src/composables/useFonts.ts
1094
+ var xi = [
1121
1095
  {
1122
1096
  value: "Arial",
1123
1097
  label: "Arial"
@@ -1146,19 +1120,19 @@ var _i = [
1146
1120
  value: "Courier New",
1147
1121
  label: "Courier New"
1148
1122
  }
1149
- ], vi = "Arial, sans-serif";
1150
- function yi(e) {
1151
- if (e === void 0 || e === !0) return [..._i];
1123
+ ], Si = "Arial, sans-serif";
1124
+ function Ci(e) {
1125
+ if (e === void 0 || e === !0) return [...xi];
1152
1126
  if (e === !1) return [];
1153
1127
  let t = [], n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
1154
1128
  for (let i of e) {
1155
- let e = i.toLowerCase(), a = _i.find((t) => t.value.toLowerCase() === e);
1156
- a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), R.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${_i.map((e) => e.value).join(", ")}.`));
1129
+ let e = i.toLowerCase(), a = xi.find((t) => t.value.toLowerCase() === e);
1130
+ a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), R.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${xi.map((e) => e.value).join(", ")}.`));
1157
1131
  }
1158
1132
  return t;
1159
1133
  }
1160
- function bi(e) {
1161
- let t = f(e?.customFonts ?? []), n = f(!1), r = yi(e?.builtIns), a = y(() => e?.defaultFallback ?? vi), o = y(() => {
1134
+ function wi(e) {
1135
+ let t = f(e?.customFonts ?? []), n = f(!1), r = Ci(e?.builtIns), a = y(() => e?.defaultFallback ?? Si), o = y(() => {
1162
1136
  let e = [...r], n = t.value.map((e) => ({
1163
1137
  value: e.name,
1164
1138
  label: e.name,
@@ -1169,18 +1143,18 @@ function bi(e) {
1169
1143
  function s(e) {
1170
1144
  return o.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
1171
1145
  }
1172
- let c = e?.defaultFont ?? vi.split(",")[0].trim();
1146
+ let c = e?.defaultFont ?? Si.split(",")[0].trim();
1173
1147
  s(c) || R.warn(`config.fonts: new templates seed "${c}", which the font picker doesn't offer — authors can't reselect it. Either add it to fonts.builtIns, or set fonts.defaultFont to an offered font.`);
1174
1148
  function l() {
1175
1149
  if (e?.defaultFont && s(e.defaultFont)) {
1176
1150
  let t = o.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
1177
1151
  if (t) return t.value;
1178
1152
  }
1179
- return vi;
1153
+ return Si;
1180
1154
  }
1181
1155
  let u = y(() => l());
1182
1156
  function d(e) {
1183
- return We(e, {
1157
+ return Ae(e, {
1184
1158
  customFonts: t.value,
1185
1159
  defaultFallback: a.value
1186
1160
  });
@@ -1222,14 +1196,13 @@ function bi(e) {
1222
1196
  getDefaultFont: l
1223
1197
  };
1224
1198
  }
1225
- //#endregion
1226
- //#region src/utils/mergeTagNodeSpec.ts
1227
- function xi(e, t, n) {
1199
+ // src/utils/mergeTagNodeSpec.ts
1200
+ function Ti(e, t, n) {
1228
1201
  return Ge(e, n) ? {
1229
1202
  type: "logicMergeTagNode",
1230
1203
  attrs: {
1231
1204
  value: e,
1232
- keyword: fe(e, n)
1205
+ keyword: ke(e, n)
1233
1206
  }
1234
1207
  } : {
1235
1208
  type: "mergeTagNode",
@@ -1239,91 +1212,78 @@ function xi(e, t, n) {
1239
1212
  }
1240
1213
  };
1241
1214
  }
1242
- //#endregion
1243
- //#region src/utils/insertLogicTag.ts
1244
- function Si(e) {
1215
+ // src/utils/insertLogicTag.ts
1216
+ function Ei(e) {
1245
1217
  return "before" in e && "after" in e;
1246
1218
  }
1247
- function Ci(e, t, n) {
1248
- if (!Si(t)) {
1249
- e.chain().focus().insertContent(xi(t.value, t.label, n)).run();
1219
+ function Di(e, t, n) {
1220
+ if (!Ei(t)) {
1221
+ e.chain().focus().insertContent(Ti(t.value, t.label, n)).run();
1250
1222
  return;
1251
1223
  }
1252
- let r = xi(t.before, t.label, n), i = xi(t.after, t.label, n), { from: a, to: o } = e.state.selection;
1224
+ let r = Ti(t.before, t.label, n), i = Ti(t.after, t.label, n), { from: a, to: o } = e.state.selection;
1253
1225
  a === o ? e.chain().focus().insertContentAt(a, [r, i]).setTextSelection(a + 1).run() : e.chain().focus().insertContentAt(o, i).insertContentAt(a, r).run();
1254
1226
  }
1255
- //#endregion
1256
- //#region src/utils/linkColorExtension.ts
1257
- function wi(e) {
1227
+ // src/utils/linkColorExtension.ts
1228
+ function Oi(e) {
1258
1229
  if (!e) return null;
1259
1230
  let t = e.trim();
1260
1231
  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;
1261
1232
  }
1262
- function Ti(e) {
1233
+ function ki(e) {
1263
1234
  return e.extend({ addAttributes() {
1264
1235
  return {
1265
1236
  ...this.parent?.(),
1266
1237
  color: {
1267
1238
  default: null,
1268
- parseHTML: (e) => wi(Dn(e.style.color)),
1239
+ parseHTML: (e) => Oi(An(e.style.color)),
1269
1240
  renderHTML: (e) => {
1270
- let t = wi(e.color);
1241
+ let t = Oi(e.color);
1271
1242
  return t ? { style: `color: ${t}` } : {};
1272
1243
  }
1273
1244
  }
1274
1245
  };
1275
1246
  } });
1276
1247
  }
1277
- //#endregion
1278
- //#region src/composables/useRichTextLinkDialog.ts
1279
- function Ei(e, t = Me.liquid) {
1248
+ // src/composables/useRichTextLinkDialog.ts
1249
+ function Ai(e, t = Ke.liquid) {
1280
1250
  let n = f(!1), r = f(""), i = f(""), a = f(null);
1281
- hi(a, n);
1251
+ yi(a, n);
1282
1252
  function o() {
1283
1253
  let t = e.value?.getAttributes("link") ?? {};
1284
1254
  r.value = t.href || "", i.value = t.color || "", n.value = !0;
1285
1255
  }
1286
1256
  function s() {
1287
1257
  if (r.value) {
1288
- let t = d(r.value);
1258
+ let t = u(r.value);
1289
1259
  if (t !== null) {
1290
- let n = wi(i.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
1260
+ let n = Oi(i.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
1291
1261
  n && typeof e.value?.commands.unsetColor == "function" && r?.unsetColor(), r?.run();
1292
1262
  }
1293
1263
  }
1294
- m();
1295
- }
1296
- let c = /* @__PURE__ */ new Set([
1297
- "http",
1298
- "https",
1299
- "mailto",
1300
- "tel",
1301
- "ftp",
1302
- "ftps",
1303
- "sms",
1304
- "xmpp",
1305
- "cid"
1306
- ]), l = /^(?:\/|\.{1,2}\/|\?)/;
1307
- function u(e) {
1264
+ p();
1265
+ }
1266
+ let c = /^(?:\/|\.{1,2}\/|\?)/;
1267
+ function l(e) {
1308
1268
  return RegExp(`^(?:${t.value.source})`).test(e);
1309
1269
  }
1310
- function d(e) {
1270
+ function u(e) {
1311
1271
  let t = e.trim();
1312
1272
  if (!t) return null;
1313
1273
  if (t.startsWith("#")) return t;
1314
1274
  if (t.startsWith("//")) return `https:${t}`;
1315
- if (l.test(t)) return t;
1316
- let n = /^([a-z][a-z0-9+.-]*):/i.exec(t);
1317
- return n ? c.has(n[1].toLowerCase()) ? t : null : u(t) ? t : `https://${t}`;
1275
+ if (c.test(t)) return t;
1276
+ let n = me(t);
1277
+ return n ? Fe.some((e) => e === n) ? t : null : l(t) ? t : `https://${t}`;
1318
1278
  }
1319
- function p() {
1320
- e.value?.chain().focus().extendMarkRange("link").unsetLink().run(), m();
1279
+ function d() {
1280
+ e.value?.chain().focus().extendMarkRange("link").unsetLink().run(), p();
1321
1281
  }
1322
- function m() {
1282
+ function p() {
1323
1283
  n.value = !1, r.value = "", i.value = "";
1324
1284
  }
1325
- function h(e) {
1326
- e.key === "Enter" ? (e.preventDefault(), s()) : e.key === "Escape" && m();
1285
+ function m(e) {
1286
+ e.key === "Enter" ? (e.preventDefault(), s()) : e.key === "Escape" && p();
1327
1287
  }
1328
1288
  return {
1329
1289
  showLinkDialog: n,
@@ -1332,22 +1292,21 @@ function Ei(e, t = Me.liquid) {
1332
1292
  linkDialogRef: a,
1333
1293
  openLinkDialog: o,
1334
1294
  insertLink: s,
1335
- removeLink: p,
1336
- closeLinkDialog: m,
1337
- handleLinkKeydown: h
1295
+ removeLink: d,
1296
+ closeLinkDialog: p,
1297
+ handleLinkKeydown: m
1338
1298
  };
1339
1299
  }
1340
- //#endregion
1341
- //#region src/composables/useRichTextEditor.ts
1342
- function Di(e) {
1343
- let t = n(ln, null), { mergeTags: r, canRequestMergeTag: i, isRequesting: a, requestMergeTag: o, syntax: s, autocomplete: c } = Hn(), { canInsertLogicTag: l, isRequesting: d, requestLogicTag: p } = Un(), m = n(en, null), h = (A(m) ? m.value : m)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", g = _e(s), _ = x(null), v = () => Ne(t?.content?.value?.settings ?? { locale: "en" });
1300
+ // src/composables/useRichTextEditor.ts
1301
+ function ji(e) {
1302
+ let t = n(fn, null), { mergeTags: r, canRequestMergeTag: i, isRequesting: a, requestMergeTag: o, syntax: s, autocomplete: c } = qn(), { canInsertLogicTag: l, isRequesting: d, requestLogicTag: p } = Jn(), m = n(rn, null), h = (A(m) ? m.value : m)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", g = Xe(s), _ = x(null), v = () => Re(t?.content?.value?.settings ?? { locale: "en" });
1344
1303
  I(v, (e) => {
1345
1304
  let t = _.value?.view.dom;
1346
1305
  t && t.setAttribute("dir", e);
1347
1306
  });
1348
- let { showLinkDialog: y, linkUrl: b, linkColor: S, linkDialogRef: C, openLinkDialog: w, insertLink: T, removeLink: E, closeLinkDialog: D, handleLinkKeydown: O } = Ei(_, s), { start: k, stop: j } = wt(() => _.value?.commands.focus("end"), 0, { immediate: !1 }), ee = x(null), M = f(!0), N = f(null), P = !1, F = null;
1307
+ let { showLinkDialog: y, linkUrl: b, linkColor: S, linkDialogRef: C, openLinkDialog: w, insertLink: T, removeLink: E, closeLinkDialog: D, handleLinkKeydown: O } = Ai(_, s), { start: k, stop: j } = Dt(() => _.value?.commands.focus("end"), 0, { immediate: !1 }), M = x(null), N = f(!0), ee = f(null), P = !1, F = null;
1349
1308
  async function L() {
1350
- N.value = null, M.value = !0;
1309
+ ee.value = null, N.value = !0;
1351
1310
  try {
1352
1311
  let { TiptapEditor: n, EC: i, extensions: a } = await e.loadExtensions({
1353
1312
  mergeTags: r,
@@ -1357,7 +1316,7 @@ function Di(e) {
1357
1316
  suggestionEmptyText: h
1358
1317
  });
1359
1318
  if (P) return;
1360
- ee.value = i;
1319
+ M.value = i;
1361
1320
  let o = /* @__PURE__ */ new Map();
1362
1321
  a.forEach((e, t) => o.set(e.name, t));
1363
1322
  let l = new n({
@@ -1373,10 +1332,10 @@ function Di(e) {
1373
1332
  l.destroy();
1374
1333
  return;
1375
1334
  }
1376
- _.value = l, M.value = !1, k();
1335
+ _.value = l, N.value = !1, k();
1377
1336
  } catch (t) {
1378
1337
  if (P) return;
1379
- R.error(`[${e.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, t), N.value = t instanceof Error ? t.message : "Failed to load editor", M.value = !1;
1338
+ R.error(`[${e.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, t), ee.value = t instanceof Error ? t.message : "Failed to load editor", N.value = !1;
1380
1339
  }
1381
1340
  }
1382
1341
  function te() {
@@ -1394,7 +1353,7 @@ function Di(e) {
1394
1353
  let i = n.some((e) => e instanceof HTMLElement && e.classList.contains("tpl-color-popover"));
1395
1354
  r.closest(".tpl-text-editor-wrapper") || r.closest(".tpl-text-toolbar") || r.closest(".tpl-link-dialog") || i || e.onDone();
1396
1355
  }
1397
- Ot(document, "mousedown", re), u(() => {
1356
+ jt(document, "mousedown", re), u(() => {
1398
1357
  P = !0, ne(), j(), _.value?.destroy();
1399
1358
  });
1400
1359
  async function ie() {
@@ -1406,13 +1365,13 @@ function Di(e) {
1406
1365
  }
1407
1366
  async function ae() {
1408
1367
  let e = await p();
1409
- P || (e && _.value ? Ci(_.value, e, s) : _.value?.commands.focus());
1368
+ P || (e && _.value ? Di(_.value, e, s) : _.value?.commands.focus());
1410
1369
  }
1411
1370
  return {
1412
1371
  editor: _,
1413
- EditorContent: ee,
1414
- isLoading: M,
1415
- initError: N,
1372
+ EditorContent: M,
1373
+ isLoading: N,
1374
+ initError: ee,
1416
1375
  retry: te,
1417
1376
  showLinkDialog: y,
1418
1377
  linkUrl: b,
@@ -1433,32 +1392,30 @@ function Di(e) {
1433
1392
  handleAddLogicTag: ae
1434
1393
  };
1435
1394
  }
1436
- //#endregion
1437
- //#region src/composables/useSmallScreenNotice.ts
1438
- var Oi = "(max-width: 767px)";
1439
- function ki(e) {
1440
- let t = kt(Oi);
1395
+ // src/composables/useSmallScreenNotice.ts
1396
+ var Mi = "(max-width: 767px)";
1397
+ function Ni(e) {
1398
+ let t = Mt(Mi);
1441
1399
  return {
1442
1400
  isSmallScreen: t,
1443
1401
  showNotice: y(() => (w(e) ?? !0) && t.value)
1444
1402
  };
1445
1403
  }
1446
- //#endregion
1447
- //#region src/components/blocks/CustomBlock.vue?vue&type=script&setup=true&lang.ts
1448
- var Ai = { class: "tpl:w-full" }, ji = {
1404
+ // src/components/blocks/CustomBlock.vue?vue&type=script&setup=true&lang.ts
1405
+ var Pi = { class: "tpl:w-full" }, Fi = {
1449
1406
  key: 0,
1450
1407
  class: "tpl:flex tpl:box-border tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-warning)] tpl:bg-[var(--tpl-warning-light)]"
1451
- }, Mi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ni = {
1408
+ }, Ii = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Li = {
1452
1409
  key: 1,
1453
1410
  class: "tpl:flex tpl:box-border tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-danger)] tpl:bg-[var(--tpl-danger-light)]"
1454
- }, Pi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Fi = {
1411
+ }, Ri = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, zi = {
1455
1412
  key: 2,
1456
1413
  class: "tpl:relative"
1457
- }, Ii = ["innerHTML"], Li = {
1414
+ }, Bi = ["innerHTML"], Vi = {
1458
1415
  key: 0,
1459
1416
  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]",
1460
1417
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
1461
- }, Ri = /* @__PURE__ */ F({
1418
+ }, Hi = /* @__PURE__ */ F({
1462
1419
  __name: "CustomBlock",
1463
1420
  props: {
1464
1421
  block: {},
@@ -1466,63 +1423,63 @@ var Ai = { class: "tpl:w-full" }, ji = {
1466
1423
  },
1467
1424
  emits: ["fetchData"],
1468
1425
  setup(e, { emit: t }) {
1469
- let r = e, i = t, { t: a } = En(), o = n(bn, null), s = f(""), l = f(!1), u = y(() => o?.getDefinition(r.block.customType)), d = y(() => !!u.value), p = y(() => r.block), { isFetching: m, fetch: h, needsFetch: _, hasDataSource: v } = ct({
1470
- definition: u,
1471
- block: p,
1426
+ let r = e, i = t, { t: a } = kn(), o = n(Cn, null), s = f(""), l = y(() => Ln(s.value)), u = f(!1), d = y(() => o?.getDefinition(r.block.customType)), p = y(() => !!d.value), m = y(() => r.block), { isFetching: h, fetch: _, needsFetch: v, hasDataSource: x } = dt({
1427
+ definition: d,
1428
+ block: m,
1472
1429
  onUpdate: (e, t) => {
1473
1430
  i("fetchData", {
1474
1431
  fieldValues: e,
1475
1432
  dataSourceFetched: t
1476
1433
  });
1477
1434
  }
1478
- }), x = n(Gt, Lt), w = n(qt, null), E = y(() => {
1479
- if (!w?.value) return r.block;
1435
+ }), w = n(Jt, Bt), E = n(Xt, null), A = y(() => {
1436
+ if (!E?.value) return r.block;
1480
1437
  let e = {};
1481
- for (let [t, n] of Object.entries(r.block.fieldValues)) e[t] = typeof n == "string" ? oe(n, x.value) : n;
1438
+ for (let [t, n] of Object.entries(r.block.fieldValues)) e[t] = typeof n == "string" ? le(n, w.value) : n;
1482
1439
  return {
1483
1440
  ...r.block,
1484
1441
  fieldValues: e
1485
1442
  };
1486
1443
  });
1487
- async function A() {
1444
+ async function j() {
1488
1445
  if (o) {
1489
- l.value = !1;
1446
+ u.value = !1;
1490
1447
  try {
1491
- let e = await o.renderCustomBlock(E.value);
1492
- e.includes("Template render error:") && (l.value = !0), s.value = e;
1448
+ let e = await o.renderCustomBlock(A.value);
1449
+ e.includes("Template render error:") && (u.value = !0), s.value = e;
1493
1450
  } catch {
1494
- l.value = !0, s.value = "";
1451
+ u.value = !0, s.value = "";
1495
1452
  }
1496
1453
  }
1497
1454
  }
1498
- let j = Tt(A, 150);
1455
+ let M = Ot(j, 150);
1499
1456
  return D(() => {
1500
- A();
1501
- }), I(() => r.block.fieldValues, () => {
1502
- j();
1503
- }, { deep: !0 }), I(() => w?.value, () => {
1504
1457
  j();
1505
- }), (e, t) => (T(), S("div", Ai, [d.value ? l.value ? (T(), S("div", Ni, [g(k(Rn), {
1458
+ }), I(() => r.block.fieldValues, () => {
1459
+ M();
1460
+ }, { deep: !0 }), I(() => E?.value, () => {
1461
+ M();
1462
+ }), (e, t) => (T(), S("div", Pi, [p.value ? u.value ? (T(), S("div", Li, [g(k(Un), {
1506
1463
  size: 24,
1507
1464
  class: "tpl:text-[var(--tpl-danger)]"
1508
- }), O("span", Pi, c(k(a).customBlocks.renderError), 1)])) : (T(), S("div", Fi, [O("div", { innerHTML: s.value }, null, 8, Ii), k(v) && k(_) ? (T(), S("div", Li, [k(m) ? (T(), M(zn, {
1465
+ }), O("span", Ri, c(k(a).customBlocks.renderError), 1)])) : (T(), S("div", zi, [O("div", { innerHTML: l.value }, null, 8, Bi), k(x) && k(v) ? (T(), S("div", Vi, [k(h) ? (T(), N(Wn, {
1509
1466
  key: 1,
1510
1467
  class: "tpl:w-48"
1511
1468
  })) : (T(), S("button", {
1512
1469
  key: 0,
1513
1470
  type: "button",
1514
1471
  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)]",
1515
- onClick: t[0] ||= L((...e) => k(h) && k(h)(...e), ["stop"])
1516
- }, [u.value?.icon ? (T(), M(pi, {
1472
+ onClick: t[0] ||= L((...e) => k(_) && k(_)(...e), ["stop"])
1473
+ }, [d.value?.icon ? (T(), N(_i, {
1517
1474
  key: 0,
1518
- icon: u.value.icon,
1475
+ icon: d.value.icon,
1519
1476
  size: 16
1520
- }, null, 8, ["icon"])) : b("", !0), C(" " + c(u.value?.dataSource?.label || k(a).customBlocks.dataSource.fetchButton), 1)]))])) : b("", !0)])) : (T(), S("div", ji, [g(k(li), {
1477
+ }, null, 8, ["icon"])) : b("", !0), C(" " + c(d.value?.dataSource?.label || k(a).customBlocks.dataSource.fetchButton), 1)]))])) : b("", !0)])) : (T(), S("div", Fi, [g(k(pi), {
1521
1478
  size: 24,
1522
1479
  class: "tpl:text-[var(--tpl-warning)]"
1523
- }), O("span", Mi, c(k(a).customBlocks.definitionNotFound), 1)]))]));
1480
+ }), O("span", Ii, c(k(a).customBlocks.definitionNotFound), 1)]))]));
1524
1481
  }
1525
- }), zi = { class: "tpl:w-full" }, Bi = /* @__PURE__ */ F({
1482
+ }), Ui = { class: "tpl:w-full" }, Wi = /* @__PURE__ */ F({
1526
1483
  __name: "DividerBlock",
1527
1484
  props: {
1528
1485
  block: {},
@@ -1534,28 +1491,28 @@ var Ai = { class: "tpl:w-full" }, ji = {
1534
1491
  width: t.block.width === "full" ? "100%" : typeof t.block.width == "number" ? `${t.block.width}px` : t.block.width,
1535
1492
  margin: t.block.width === "full" ? "0" : "0 auto"
1536
1493
  }));
1537
- return (e, t) => (T(), S("div", zi, [O("hr", {
1494
+ return (e, t) => (T(), S("div", Ui, [O("hr", {
1538
1495
  class: "tpl:m-0 tpl:border-none",
1539
1496
  style: E(n.value)
1540
1497
  }, null, 4)]));
1541
1498
  }
1542
- }), Vi = { class: "tpl:w-full" }, Hi = ["srcdoc", "title"], Ui = {
1499
+ }), Gi = { class: "tpl:w-full" }, Ki = ["srcdoc", "title"], qi = {
1543
1500
  key: 1,
1544
1501
  class: "tpl:flex tpl:box-border tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)]"
1545
- }, Wi = {
1502
+ }, Ji = {
1546
1503
  key: 0,
1547
1504
  class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
1548
- }, Gi = {
1505
+ }, Yi = {
1549
1506
  key: 1,
1550
1507
  class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
1551
- }, Ki = /* @__PURE__ */ F({
1508
+ }, Xi = /* @__PURE__ */ F({
1552
1509
  __name: "HtmlBlock",
1553
1510
  props: {
1554
1511
  block: {},
1555
1512
  viewport: {}
1556
1513
  },
1557
1514
  setup(e) {
1558
- let t = e, { t: r } = En(), i = n(an, !1), a = y(() => t.block.content.trim().length > 0), o = y(() => i && a.value), s = n(Gt, Lt), l = n(qt, null), d = y(() => l?.value ? oe(t.block.content, s.value) : t.block.content), p = f(null), m = f(60), h = null;
1515
+ let t = e, { t: r } = kn(), i = n(cn, !1), a = y(() => t.block.content.trim().length > 0), o = y(() => i && a.value), s = n(Jt, Bt), l = n(Xt, null), d = y(() => l?.value ? le(t.block.content, s.value) : t.block.content), p = f(null), m = f(60), h = null;
1559
1516
  function _() {
1560
1517
  let e = p.value?.contentDocument;
1561
1518
  e && (m.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
@@ -1569,7 +1526,7 @@ var Ai = { class: "tpl:w-full" }, ji = {
1569
1526
  e || (h?.disconnect(), h = null);
1570
1527
  }), u(() => {
1571
1528
  h?.disconnect(), h = null;
1572
- }), (e, t) => (T(), S("div", Vi, [o.value ? (T(), S("iframe", {
1529
+ }), (e, t) => (T(), S("div", Gi, [o.value ? (T(), S("iframe", {
1573
1530
  key: 0,
1574
1531
  ref_key: "iframeRef",
1575
1532
  ref: p,
@@ -1579,18 +1536,18 @@ var Ai = { class: "tpl:w-full" }, ji = {
1579
1536
  class: "tpl:block tpl:w-full tpl:border-0",
1580
1537
  style: E({ height: `${m.value}px` }),
1581
1538
  onLoad: v
1582
- }, null, 44, Hi)) : (T(), S("div", Ui, [g(k(pt), {
1539
+ }, null, 44, Ki)) : (T(), S("div", qi, [g(k(gt), {
1583
1540
  size: 24,
1584
1541
  class: "tpl:text-[var(--tpl-text-dim)]"
1585
- }), a.value ? (T(), S("span", Wi, c(k(r).html.preview), 1)) : (T(), S("span", Gi, c(k(r).html.empty), 1))]))]));
1542
+ }), a.value ? (T(), S("span", Ji, c(k(r).html.preview), 1)) : (T(), S("span", Yi, c(k(r).html.empty), 1))]))]));
1586
1543
  }
1587
- }), qi = ["data-drop-enabled"], Ji = ["href"], Yi = ["src", "alt"], Xi = ["src", "alt"], Zi = {
1544
+ }), Zi = ["data-drop-enabled"], Qi = ["href"], $i = ["src", "alt"], ea = ["src", "alt"], ta = {
1588
1545
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
1589
1546
  style: { opacity: "0.7" }
1590
- }, Qi = ["href"], $i = ["src", "alt"], ea = ["src", "alt"], ta = {
1547
+ }, na = ["href"], ra = ["src", "alt"], ia = ["src", "alt"], aa = {
1591
1548
  key: 4,
1592
1549
  class: "tpl:flex tpl:box-border tpl:min-h-[100px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
1593
- }, na = ["aria-label"], ra = { key: 1 }, ia = /* @__PURE__ */ F({
1550
+ }, oa = ["aria-label"], sa = { key: 1 }, ca = /* @__PURE__ */ F({
1594
1551
  __name: "ImageBlock",
1595
1552
  props: {
1596
1553
  block: {},
@@ -1598,20 +1555,20 @@ var Ai = { class: "tpl:w-full" }, ji = {
1598
1555
  },
1599
1556
  emits: ["update"],
1600
1557
  setup(e, { emit: t }) {
1601
- let n = e, r = t, { t: i } = En(), { syntax: a } = Hn(), o = y(() => Ze(n.block.src, a));
1558
+ let n = e, r = t, { t: i } = kn(), { syntax: a } = qn(), o = y(() => Ce(n.block.src, a));
1602
1559
  function s(e) {
1603
1560
  let t = {
1604
1561
  src: e.url,
1605
- ..._t(ht(e.width, e.height))
1562
+ ...bt(vt(e.width, e.height))
1606
1563
  };
1607
1564
  e.alt && (t.alt = e.alt), r("update", t);
1608
1565
  }
1609
- let l = f(), { canBrowse: u, dropEnabled: d, isUploading: p, showOverlay: m, openMediaBrowser: h } = gt({
1566
+ let l = f(), { canBrowse: u, dropEnabled: d, isUploading: p, showOverlay: m, openMediaBrowser: h } = yt({
1610
1567
  target: l,
1611
1568
  blocked: o,
1612
1569
  apply: s
1613
1570
  }), _ = y(() => ({ textAlign: n.block.align })), v = y(() => {
1614
- let e = n.block.border, t = ["left", "right"].map((t) => Xe(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
1571
+ let e = n.block.border, t = ["left", "right"].map((t) => ye(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
1615
1572
  return t > 0 ? `calc(100% - ${t}px)` : "100%";
1616
1573
  }), x = y(() => {
1617
1574
  let e = n.block.align;
@@ -1619,13 +1576,13 @@ var Ai = { class: "tpl:w-full" }, ji = {
1619
1576
  maxWidth: "100%",
1620
1577
  width: n.block.width === "full" ? v.value : `${n.block.width}px`,
1621
1578
  height: n.block.height ? `${n.block.height}px` : void 0,
1622
- borderRadius: ce(n.block.borderRadius) ?? void 0,
1623
- ...Zr(n.block.border),
1579
+ borderRadius: ae(n.block.borderRadius) ?? void 0,
1580
+ ...ti(n.block.border),
1624
1581
  display: "block",
1625
1582
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
1626
1583
  marginRight: e === "center" ? "auto" : void 0
1627
1584
  };
1628
- }), w = st(() => o.value ? void 0 : n.block.src), D = st(() => o.value ? n.block.placeholderUrl : void 0);
1585
+ }), w = ut(() => o.value ? void 0 : n.block.src), D = ut(() => o.value ? n.block.placeholderUrl : void 0);
1629
1586
  return (t, n) => (T(), S("div", {
1630
1587
  ref_key: "dropZoneRef",
1631
1588
  ref: l,
@@ -1633,7 +1590,7 @@ var Ai = { class: "tpl:w-full" }, ji = {
1633
1590
  "data-drop-enabled": k(d),
1634
1591
  class: "tpl:relative tpl:w-full",
1635
1592
  style: E(_.value)
1636
- }, [k(m) ? (T(), M(mt, {
1593
+ }, [k(m) ? (T(), N(_t, {
1637
1594
  key: 0,
1638
1595
  uploading: k(p),
1639
1596
  size: "canvas"
@@ -1649,22 +1606,22 @@ var Ai = { class: "tpl:w-full" }, ji = {
1649
1606
  src: k(D),
1650
1607
  alt: e.block.alt || k(i).image.altTextPlaceholder,
1651
1608
  style: E(x.value)
1652
- }, null, 12, Yi)], 8, Ji)) : (T(), S("img", {
1609
+ }, null, 12, $i)], 8, Qi)) : (T(), S("img", {
1653
1610
  key: 1,
1654
1611
  class: "tpl:border-0",
1655
1612
  src: k(D),
1656
1613
  alt: e.block.alt,
1657
1614
  style: E(x.value)
1658
- }, null, 12, Xi))], 64)) : e.block.src && o.value ? (T(), S("div", {
1615
+ }, null, 12, ea))], 64)) : e.block.src && o.value ? (T(), S("div", {
1659
1616
  key: 2,
1660
1617
  class: "tpl:!flex tpl:box-border tpl:min-h-[120px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
1661
1618
  style: E([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, x.value])
1662
- }, [g(k(Fn), {
1619
+ }, [g(k(Bn), {
1663
1620
  size: 32,
1664
1621
  "stroke-width": 1.5,
1665
1622
  class: "tpl:text-[var(--tpl-primary)]",
1666
1623
  style: { opacity: "0.5" }
1667
- }), O("span", Zi, [g(ti, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (T(), S(j, { key: 3 }, [e.block.linkUrl ? (T(), S("a", {
1624
+ }), O("span", ta, [g(ai, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (T(), S(j, { key: 3 }, [e.block.linkUrl ? (T(), S("a", {
1668
1625
  key: 0,
1669
1626
  href: e.block.linkUrl,
1670
1627
  target: "_blank",
@@ -1676,33 +1633,33 @@ var Ai = { class: "tpl:w-full" }, ji = {
1676
1633
  src: k(w),
1677
1634
  alt: e.block.alt || k(i).image.altTextPlaceholder,
1678
1635
  style: E(x.value)
1679
- }, null, 12, $i)], 8, Qi)) : (T(), S("img", {
1636
+ }, null, 12, ra)], 8, na)) : (T(), S("img", {
1680
1637
  key: 1,
1681
1638
  class: "tpl:border-0",
1682
1639
  src: k(w),
1683
1640
  alt: e.block.alt,
1684
1641
  style: E(x.value)
1685
- }, null, 12, ea))], 64)) : (T(), S("div", ta, [k(u) ? (T(), S("button", {
1642
+ }, null, 12, ia))], 64)) : (T(), S("div", aa, [k(u) ? (T(), S("button", {
1686
1643
  key: 0,
1687
1644
  "aria-label": k(i).image.browseMedia,
1688
1645
  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)]",
1689
1646
  onClick: n[2] ||= L((...e) => k(h) && k(h)(...e), ["stop"])
1690
- }, [g(k(Fn), {
1647
+ }, [g(k(Bn), {
1691
1648
  size: 14,
1692
1649
  "stroke-width": 1.5
1693
- }), C(" " + c(k(i).image.browseMedia), 1)], 8, na)) : (T(), S("span", ra, c(k(i).image.clickToAdd), 1))]))], 12, qi));
1650
+ }), C(" " + c(k(i).image.browseMedia), 1)], 8, oa)) : (T(), S("span", sa, c(k(i).image.clickToAdd), 1))]))], 12, Zi));
1694
1651
  }
1695
- }), aa = { class: "tpl:w-full" }, oa = ["href"], sa = {
1652
+ }), la = { class: "tpl:w-full" }, ua = ["href"], da = {
1696
1653
  key: 1,
1697
1654
  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)]"
1698
- }, ca = /* @__PURE__ */ F({
1655
+ }, fa = /* @__PURE__ */ F({
1699
1656
  __name: "MenuBlock",
1700
1657
  props: {
1701
1658
  block: {},
1702
1659
  viewport: {}
1703
1660
  },
1704
1661
  setup(e) {
1705
- let t = e, { t: n } = En(), r = jt(xn, "MenuBlock"), i = y(() => ({
1662
+ let t = e, { t: n } = kn(), r = Pt(wn, "MenuBlock"), i = y(() => ({
1706
1663
  display: "flex",
1707
1664
  flexWrap: "wrap",
1708
1665
  gap: `0 ${t.block.spacing}px`,
@@ -1714,7 +1671,7 @@ var Ai = { class: "tpl:w-full" }, ji = {
1714
1671
  function o(e) {
1715
1672
  return e || t.block.linkColor || t.block.color;
1716
1673
  }
1717
- return (t, r) => (T(), S("div", aa, [a.value ? (T(), S("div", {
1674
+ return (t, r) => (T(), S("div", la, [a.value ? (T(), S("div", {
1718
1675
  key: 0,
1719
1676
  style: E(i.value)
1720
1677
  }, [(T(!0), S(j, null, l(e.block.items, (t, n) => (T(), S(j, { key: t.id }, [O("a", {
@@ -1726,19 +1683,18 @@ var Ai = { class: "tpl:w-full" }, ji = {
1726
1683
  textDecoration: t.underline ? "underline" : "none"
1727
1684
  }),
1728
1685
  onClick: r[0] ||= L(() => {}, ["prevent"])
1729
- }, [g(ti, { text: t.text || "..." }, null, 8, ["text"])], 12, oa), n < e.block.items.length - 1 ? (T(), S("span", {
1686
+ }, [g(ai, { text: t.text || "..." }, null, 8, ["text"])], 12, ua), n < e.block.items.length - 1 ? (T(), S("span", {
1730
1687
  key: 0,
1731
1688
  style: E({
1732
1689
  color: e.block.separatorColor,
1733
1690
  padding: `0 ${e.block.spacing}px`
1734
1691
  })
1735
- }, c(e.block.separator), 5)) : b("", !0)], 64))), 128))], 4)) : (T(), S("div", sa, [g(k(Ct), { size: 16 }), O("span", null, c(k(n).menu.addLinks), 1)]))]));
1692
+ }, c(e.block.separator), 5)) : b("", !0)], 64))), 128))], 4)) : (T(), S("div", da, [g(k(Et), { size: 16 }), O("span", null, c(k(n).menu.addLinks), 1)]))]));
1736
1693
  }
1737
1694
  });
1738
- //#endregion
1739
- //#region src/composables/useEditableTextBlock.ts
1740
- function la(e) {
1741
- let t = n(Gt, Lt), r = n(qt, null), { syntax: i } = Hn(), a = y(() => r?.value ? ye(e(), t.value) : Pe(e(), t.value)), o = y(() => Ce(Wn(Ie(a.value, i)))), s = f(!1), c = f(null), { top: l, left: u } = At(c), { toLocal: d } = An(), p = y(() => d({
1695
+ // src/composables/useEditableTextBlock.ts
1696
+ function pa(e) {
1697
+ let t = n(Jt, Bt), r = n(Xt, null), { syntax: i } = qn(), a = y(() => r?.value ? de(e(), t.value) : Me(e(), t.value)), o = y(() => qe(Ln(nt(a.value, i)))), s = f(!1), c = f(null), { top: l, left: u } = Nt(c), { toLocal: d } = Nn(), p = y(() => d({
1742
1698
  top: l.value - 8,
1743
1699
  left: u.value
1744
1700
  }));
@@ -1757,22 +1713,21 @@ function la(e) {
1757
1713
  handleEditorDone: h
1758
1714
  };
1759
1715
  }
1760
- //#endregion
1761
- //#region src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
1762
- var ua = ["innerHTML"], da = /* @__PURE__ */ F({
1716
+ // src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
1717
+ var ma = ["innerHTML"], ha = /* @__PURE__ */ F({
1763
1718
  __name: "ParagraphBlock",
1764
1719
  props: {
1765
1720
  block: {},
1766
1721
  viewport: {}
1767
1722
  },
1768
1723
  setup(e) {
1769
- let t = e, n = N(() => import("./ParagraphEditor-B6NK0ytw.js").then((e) => e.t)), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = la(() => t.block.content);
1724
+ let t = e, n = ee(() => import("./ParagraphEditor-D-nqs82g.js").then((e) => e.t)), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = pa(() => t.block.content);
1770
1725
  return (t, l) => (T(), S("div", {
1771
1726
  ref_key: "blockRef",
1772
1727
  ref: i,
1773
1728
  class: "tpl:min-h-[1em] tpl:w-full",
1774
1729
  onDblclick: l[0] ||= (...e) => k(s) && k(s)(...e)
1775
- }, [k(r) ? (T(), M(k(n), {
1730
+ }, [k(r) ? (T(), N(k(n), {
1776
1731
  key: 0,
1777
1732
  block: e.block,
1778
1733
  "toolbar-position": k(a),
@@ -1785,26 +1740,26 @@ var ua = ["innerHTML"], da = /* @__PURE__ */ F({
1785
1740
  key: 1,
1786
1741
  class: "tpl-text-content tpl:outline-none",
1787
1742
  innerHTML: k(o)
1788
- }, null, 8, ua))], 544));
1743
+ }, null, 8, ma))], 544));
1789
1744
  }
1790
- }), fa = [
1745
+ }), ga = [
1791
1746
  "data-block-id",
1792
1747
  "data-block-type",
1793
1748
  "data-tpl-picked"
1794
- ], pa = ["data-lock-holder"], ma = ["aria-label"], ha = [
1749
+ ], _a = ["data-lock-holder"], va = ["aria-label"], ya = [
1795
1750
  "aria-label",
1796
1751
  "aria-pressed",
1797
1752
  "title"
1798
- ], ga = ["aria-label", "title"], _a = ["aria-label", "title"], va = ["aria-label", "title"], ya = {
1753
+ ], ba = ["aria-label", "title"], xa = ["aria-label", "title"], Sa = ["aria-label", "title"], Ca = {
1799
1754
  key: 3,
1800
1755
  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"
1801
- }, ba = { 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)]" }, xa = {
1756
+ }, wa = { 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)]" }, Ta = {
1802
1757
  key: 4,
1803
1758
  class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
1804
- }, Sa = ["aria-label", "title"], Ca = {
1759
+ }, Ea = ["aria-label", "title"], Da = {
1805
1760
  key: 5,
1806
1761
  class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
1807
- }, wa = ["aria-label"], Ta = /*#__PURE__*/ Bn(/* @__PURE__ */ F({
1762
+ }, Oa = ["aria-label"], ka = /*#__PURE__*/ Gn(/* @__PURE__ */ F({
1808
1763
  __name: "BlockWrapper",
1809
1764
  props: {
1810
1765
  block: {},
@@ -1816,7 +1771,7 @@ var ua = ["innerHTML"], da = /* @__PURE__ */ F({
1816
1771
  },
1817
1772
  emits: ["select"],
1818
1773
  setup(e, { emit: i }) {
1819
- let a = N(() => import("./BlockIssueBadge-CKwZ1Vgn.js")), o = e, s = i, { t: l, format: u } = En(), p = n(Yt, null), m = f(null), h = y(() => p?.liftedBlockId.value === o.block.id), _ = y(() => h.value ? u(l.blockActions.dragLifted, { block: o.block.type }) : l.blockActions.drag);
1774
+ let a = ee(() => import("./BlockIssueBadge-6Ri2FfX-.js")), o = e, s = i, { t: l, format: u } = kn(), p = n(Qt, null), m = f(null), h = y(() => p?.liftedBlockId.value === o.block.id), _ = y(() => h.value ? u(l.blockActions.dragLifted, { block: o.block.type }) : l.blockActions.drag);
1820
1775
  async function v() {
1821
1776
  await r(), m.value?.focus();
1822
1777
  }
@@ -1826,24 +1781,24 @@ var ua = ["innerHTML"], da = /* @__PURE__ */ F({
1826
1781
  let w = y(() => !o.viewport || !o.block.visibility ? !1 : o.block.visibility[o.viewport] === !1), D = y(() => o.previewMode === !0 && w.value), A = y(() => o.viewport ? {
1827
1782
  desktop: l.viewport.desktop,
1828
1783
  mobile: l.viewport.mobile
1829
- }[o.viewport] ?? o.viewport : ""), j = y(() => !!o.block.displayCondition), ee = n(rn, null), M = n(cn, null), P = n(pn, {}), F = y(() => P.savedBlocks?.isPicking.value === !0), I = y(() => !o.nested && P.savedBlocks?.isAvailable.value === !0 && P.savedBlocks?.canCreate.value === !0), te = y(() => o.isSelected && !F.value), ne = y(() => P.comments?.getBlockCount(o.block.id) ?? 0), re = y(() => P.collaboration?.lockOf(o.block.id) ?? null), ie = y(() => re.value?.holder.type === "guest" ? l.collaboration.guest : re.value?.holder.name ?? ""), ae = y(() => P.collaboration?.agentHighlightOf(o.block.id) ?? P.ai?.highlightOf(o.block.id) ?? null), oe = nt(() => o.block.type === "section" ? o.block.backgroundImage : void 0), se = nt(() => o.block.type === "section" ? o.block.wrapper?.backgroundImage : void 0), ce = n(ln, null), le = n(Pt, void 0), ue = y(() => Yr(o.block, {
1784
+ }[o.viewport] ?? o.viewport : ""), j = y(() => !!o.block.displayCondition), M = n(sn, null), N = n(dn, null), P = n(gn, {}), F = y(() => P.savedBlocks?.isPicking.value === !0), I = y(() => !o.nested && P.savedBlocks?.isAvailable.value === !0 && P.savedBlocks?.canCreate.value === !0), te = y(() => o.isSelected && !F.value), ne = y(() => P.comments?.getBlockCount(o.block.id) ?? 0), re = y(() => P.collaboration?.lockOf(o.block.id) ?? null), ie = y(() => re.value?.holder.type === "guest" ? l.collaboration.guest : re.value?.holder.name ?? ""), ae = y(() => P.collaboration?.agentHighlightOf(o.block.id) ?? P.ai?.highlightOf(o.block.id) ?? null), oe = at(() => o.block.type === "section" ? o.block.backgroundImage : void 0), se = at(() => o.block.type === "section" ? o.block.wrapper?.backgroundImage : void 0), ce = n(fn, null), le = n(Lt, void 0), ue = y(() => $r(o.block, {
1830
1785
  backgroundImageUrl: oe.value,
1831
- heroBoxWidth: ft(o.block, ce?.content.value, le)
1832
- })), de = y(() => Qr(o.block, { backgroundImageUrl: se.value }));
1786
+ heroBoxWidth: ht(o.block, ce?.content.value, le)
1787
+ })), de = y(() => ni(o.block, { backgroundImageUrl: se.value }));
1833
1788
  function fe(e) {
1834
1789
  o.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), s("select"));
1835
1790
  }
1836
1791
  function pe() {
1837
- ee?.deleteBlock(o.block.id);
1792
+ M?.deleteBlock(o.block.id);
1838
1793
  }
1839
1794
  function me() {
1840
- ee?.duplicateBlock(o.block);
1795
+ M?.duplicateBlock(o.block);
1841
1796
  }
1842
1797
  function he() {
1843
1798
  P.savedBlocks?.startPicking(o.block.id);
1844
1799
  }
1845
1800
  function ge() {
1846
- M?.toggleBlock(o.block.id);
1801
+ N?.toggleBlock(o.block.id);
1847
1802
  }
1848
1803
  return (n, r) => D.value ? b("", !0) : (T(), S("div", {
1849
1804
  key: 0,
@@ -1872,9 +1827,9 @@ var ua = ["innerHTML"], da = /* @__PURE__ */ F({
1872
1827
  class: "tpl:absolute tpl:-top-0.5 tpl:left-1/2 tpl:z-[5] tpl:-translate-x-1/2 tpl:-translate-y-full tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:whitespace-nowrap",
1873
1828
  style: E({
1874
1829
  backgroundColor: re.value.holder.color,
1875
- color: k(Gn)(re.value.holder.color)
1830
+ color: k(Yn)(re.value.holder.color)
1876
1831
  })
1877
- }, c(k(u)(k(l).collaboration.editing, { name: ie.value })), 5)], 12, pa)) : b("", !0),
1832
+ }, c(k(u)(k(l).collaboration.editing, { name: ie.value })), 5)], 12, _a)) : b("", !0),
1878
1833
  ae.value === null ? b("", !0) : (T(), S("div", {
1879
1834
  key: ae.value,
1880
1835
  "data-testid": "block-agent-highlight",
@@ -1896,107 +1851,105 @@ var ua = ["innerHTML"], da = /* @__PURE__ */ F({
1896
1851
  "aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
1897
1852
  title: k(l).blockActions.drag,
1898
1853
  onKeydown: x
1899
- }, [g(k(ci), {
1854
+ }, [g(k(fi), {
1900
1855
  size: 14,
1901
1856
  "stroke-width": 1.5
1902
- })], 40, ha),
1857
+ })], 40, ya),
1903
1858
  O("button", {
1904
1859
  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",
1905
1860
  "aria-label": k(l).blockActions.duplicate,
1906
1861
  title: k(l).blockActions.duplicate,
1907
1862
  onClick: L(me, ["stop"])
1908
- }, [g(k(Pn), {
1863
+ }, [g(k(zn), {
1909
1864
  size: 14,
1910
1865
  "stroke-width": 1.5
1911
- })], 8, ga),
1866
+ })], 8, ba),
1912
1867
  I.value ? (T(), S("button", {
1913
1868
  key: 0,
1914
1869
  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",
1915
1870
  "aria-label": k(l).blockActions.saveAsBlock,
1916
1871
  title: k(l).blockActions.saveAsBlock,
1917
1872
  onClick: L(he, ["stop"])
1918
- }, [g(k(ii), {
1873
+ }, [g(k(ci), {
1919
1874
  size: 14,
1920
1875
  "stroke-width": 1.5
1921
- })], 8, _a)) : b("", !0),
1876
+ })], 8, xa)) : b("", !0),
1922
1877
  O("button", {
1923
1878
  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",
1924
1879
  "aria-label": k(l).blockActions.delete,
1925
1880
  title: k(l).blockActions.delete,
1926
1881
  onClick: L(pe, ["stop"])
1927
- }, [g(k(Ln), {
1882
+ }, [g(k(Hn), {
1928
1883
  size: 14,
1929
1884
  "stroke-width": 1.5
1930
- })], 8, va)
1931
- ], 8, ma)) : b("", !0),
1932
- w.value ? (T(), S("div", ya, [O("span", ba, [g(k(oi), {
1885
+ })], 8, Sa)
1886
+ ], 8, va)) : b("", !0),
1887
+ w.value ? (T(), S("div", Ca, [O("span", wa, [g(k(ui), {
1933
1888
  size: 12,
1934
1889
  "stroke-width": 1.5
1935
1890
  }), C(" " + c(k(u)(k(l).blockActions.hiddenOnViewport, { viewport: A.value })), 1)])])) : b("", !0),
1936
- j.value && !w.value ? (T(), S("div", xa, [O("button", {
1891
+ j.value && !w.value ? (T(), S("div", Ta, [O("button", {
1937
1892
  "data-testid": "condition-toggle",
1938
1893
  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)]",
1939
1894
  "aria-label": k(l).blockActions.conditionToggle,
1940
1895
  title: e.block.displayCondition?.label,
1941
1896
  onClick: L(ge, ["stop"])
1942
- }, [g(k(si), {
1897
+ }, [g(k(di), {
1943
1898
  size: 12,
1944
1899
  "stroke-width": 2
1945
- })], 8, Sa)])) : b("", !0),
1946
- ne.value > 0 && !w.value ? (T(), S("div", Ca, [O("button", {
1900
+ })], 8, Ea)])) : b("", !0),
1901
+ ne.value > 0 && !w.value ? (T(), S("div", Da, [O("button", {
1947
1902
  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)]",
1948
1903
  "aria-label": k(u)(k(l).blockActions.comments, { count: String(ne.value) }),
1949
1904
  onClick: r[0] ||= L((t) => k(P).comments?.openForBlock(e.block.id), ["stop"])
1950
- }, [g(k(In), {
1905
+ }, [g(k(Vn), {
1951
1906
  size: 12,
1952
1907
  "stroke-width": 2.5
1953
- }), C(" " + c(ne.value), 1)], 8, wa)])) : b("", !0),
1908
+ }), C(" " + c(ne.value), 1)], 8, Oa)])) : b("", !0),
1954
1909
  de.value ? (T(), S("div", {
1955
1910
  key: 6,
1956
- class: t(["tpl-section-wrapper tpl-email-surface", k(Gr)(de.value)]),
1911
+ class: t(["tpl-section-wrapper tpl-email-surface", k(Yr)(de.value)]),
1957
1912
  style: E(de.value)
1958
1913
  }, [O("div", {
1959
- class: t(["tpl-block-content tpl-email-surface", k(Gr)(ue.value)]),
1914
+ class: t(["tpl-block-content tpl-email-surface", k(Yr)(ue.value)]),
1960
1915
  style: E(ue.value)
1961
1916
  }, [d(n.$slots, "default", {}, void 0, !0)], 6)], 6)) : (T(), S("div", {
1962
1917
  key: 7,
1963
- class: t(["tpl-block-content tpl-email-surface", k(Gr)(ue.value)]),
1918
+ class: t(["tpl-block-content tpl-email-surface", k(Yr)(ue.value)]),
1964
1919
  style: E(ue.value)
1965
1920
  }, [d(n.$slots, "default", {}, void 0, !0)], 6))
1966
- ], 10, fa));
1921
+ ], 10, ga));
1967
1922
  }
1968
1923
  }), [["__scopeId", "data-v-126b991e"]]);
1969
- //#endregion
1970
- //#region src/utils/unwrapParagraph.ts
1971
- function Ea(e) {
1924
+ // src/utils/unwrapParagraph.ts
1925
+ function Aa(e) {
1972
1926
  let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
1973
1927
  return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
1974
1928
  }
1975
- //#endregion
1976
- //#region src/components/blocks/TitleBlock.vue
1977
- var Da = /* @__PURE__ */ F({
1929
+ // src/components/blocks/TitleBlock.vue
1930
+ var ja = /* @__PURE__ */ F({
1978
1931
  __name: "TitleBlock",
1979
1932
  props: {
1980
1933
  block: {},
1981
1934
  viewport: {}
1982
1935
  },
1983
1936
  setup(e) {
1984
- let t = e, n = N(() => import("./TitleEditor-pxD53y_l.js")), r = jt(xn, "TitleBlock"), { isEditing: i, blockRef: a, toolbarPosition: s, resolvedContent: c, handleDoubleClick: l, handleEditorDone: u } = la(() => t.block.content), d = y(() => {
1937
+ let t = e, n = ee(() => import("./TitleEditor-BYk_9SpQ.js")), r = Pt(wn, "TitleBlock"), { isEditing: i, blockRef: a, toolbarPosition: s, resolvedContent: c, handleDoubleClick: l, handleEditorDone: u } = pa(() => t.block.content), d = y(() => {
1985
1938
  let e = {
1986
- fontSize: `${ke[t.block.level]}px`,
1987
- lineHeight: String(Be),
1939
+ fontSize: `${Ne[t.block.level]}px`,
1940
+ lineHeight: String(ze),
1988
1941
  fontWeight: "700",
1989
1942
  textAlign: t.block.textAlign
1990
1943
  };
1991
1944
  return t.block.color && (e.color = t.block.color), t.block.fontFamily && (e.fontFamily = r.resolveFontFamily(t.block.fontFamily)), e;
1992
- }), f = y(() => `h${t.block.level}`), p = y(() => Ea(c.value));
1945
+ }), f = y(() => `h${t.block.level}`), p = y(() => Aa(c.value));
1993
1946
  return (t, r) => (T(), S("div", {
1994
1947
  ref_key: "blockRef",
1995
1948
  ref: a,
1996
1949
  class: "tpl:min-h-[1em] tpl:w-full",
1997
1950
  style: E(d.value),
1998
1951
  onDblclick: r[0] ||= (...e) => k(l) && k(l)(...e)
1999
- }, [k(i) ? (T(), M(k(n), {
1952
+ }, [k(i) ? (T(), N(k(n), {
2000
1953
  key: 0,
2001
1954
  block: e.block,
2002
1955
  "toolbar-position": k(s),
@@ -2005,7 +1958,7 @@ var Da = /* @__PURE__ */ F({
2005
1958
  "block",
2006
1959
  "toolbar-position",
2007
1960
  "onDone"
2008
- ])) : (T(), M(o(f.value), {
1961
+ ])) : (T(), N(o(f.value), {
2009
1962
  key: 1,
2010
1963
  class: "tpl-text-content tpl:m-0 tpl:font-[inherit] tpl:text-[length:inherit] tpl:leading-[inherit] tpl:outline-none",
2011
1964
  style: {
@@ -2015,14 +1968,14 @@ var Da = /* @__PURE__ */ F({
2015
1968
  innerHTML: p.value
2016
1969
  }, null, 8, ["innerHTML"]))], 36));
2017
1970
  }
2018
- }), Oa = "hero", ka = "#1f2937", Aa = "#ffffff";
2019
- function ja(e, t) {
2020
- let n = ae("title", e);
2021
- n.color = Aa, n.textAlign = "center";
2022
- let r = ae("paragraph", e);
2023
- r.content = `<p style="text-align: center"><span style="color: ${Aa}">${Ma(t)}</span></p>`;
2024
- let i = ae("button", e);
2025
- return i.align = "center", he({
1971
+ }), Ma = "hero", Na = "#1f2937", Pa = "#ffffff";
1972
+ function Fa(e, t) {
1973
+ let n = $e("title", e);
1974
+ n.color = Pa, n.textAlign = "center";
1975
+ let r = $e("paragraph", e);
1976
+ r.content = `<p style="text-align: center"><span style="color: ${Pa}">${Ia(t)}</span></p>`;
1977
+ let i = $e("button", e);
1978
+ return i.align = "center", fe({
2026
1979
  columns: "1",
2027
1980
  children: [[
2028
1981
  n,
@@ -2040,98 +1993,96 @@ function ja(e, t) {
2040
1993
  bottom: 48,
2041
1994
  left: 24
2042
1995
  },
2043
- backgroundColor: ka
1996
+ backgroundColor: Na
2044
1997
  }
2045
1998
  });
2046
1999
  }
2047
- function Ma(e) {
2000
+ function Ia(e) {
2048
2001
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
2049
2002
  }
2050
- //#endregion
2051
- //#region src/utils/sectionColumnDrop.ts
2052
- var Na = /* @__PURE__ */ new Set(["section", Oa]);
2053
- function Pa(e) {
2054
- return e.dataset.blockType !== "section" && !Na.has(e.dataset.paletteType ?? "");
2003
+ // src/utils/sectionColumnDrop.ts
2004
+ var La = /* @__PURE__ */ new Set(["section", Ma]);
2005
+ function Ra(e) {
2006
+ return e.dataset.blockType !== "section" && !La.has(e.dataset.paletteType ?? "");
2055
2007
  }
2056
- //#endregion
2057
- //#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
2058
- var Fa = Object.defineProperty, Ia = Object.getOwnPropertySymbols, La = Object.prototype.hasOwnProperty, Ra = Object.prototype.propertyIsEnumerable, za = (e, t, n) => t in e ? Fa(e, t, {
2008
+ // ../../node_modules/.pnpm/vue-draggable-plus@0.6.1_@types+sortablejs@1.15.9/node_modules/vue-draggable-plus/dist/vue-draggable-plus.js
2009
+ var za = Object.defineProperty, Ba = Object.getOwnPropertySymbols, Va = Object.prototype.hasOwnProperty, Ha = Object.prototype.propertyIsEnumerable, Ua = (e, t, n) => t in e ? za(e, t, {
2059
2010
  enumerable: !0,
2060
2011
  configurable: !0,
2061
2012
  writable: !0,
2062
2013
  value: n
2063
- }) : e[t] = n, Ba = (e, t) => {
2064
- for (var n in t ||= {}) La.call(t, n) && za(e, n, t[n]);
2065
- if (Ia) for (var n of Ia(t)) Ra.call(t, n) && za(e, n, t[n]);
2014
+ }) : e[t] = n, Wa = (e, t) => {
2015
+ for (var n in t ||= {}) Va.call(t, n) && Ua(e, n, t[n]);
2016
+ if (Ba) for (var n of Ba(t)) Ha.call(t, n) && Ua(e, n, t[n]);
2066
2017
  return e;
2067
- }, Va = (e, t) => {
2018
+ }, Ga = (e, t) => {
2068
2019
  var n = {};
2069
- for (var r in e) La.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
2070
- if (e != null && Ia) for (var r of Ia(e)) t.indexOf(r) < 0 && Ra.call(e, r) && (n[r] = e[r]);
2020
+ for (var r in e) Va.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
2021
+ if (e != null && Ba) for (var r of Ba(e)) t.indexOf(r) < 0 && Ha.call(e, r) && (n[r] = e[r]);
2071
2022
  return n;
2072
- }, Ha = "[vue-draggable-plus]: ";
2073
- function Ua(e) {
2074
- console.warn(Ha + e);
2023
+ }, Ka = "[vue-draggable-plus]: ";
2024
+ function qa(e) {
2025
+ console.warn(Ka + e);
2075
2026
  }
2076
- function Wa(e) {
2077
- console.error(Ha + e);
2027
+ function Ja(e) {
2028
+ console.error(Ka + e);
2078
2029
  }
2079
- function Ga(e, t, n) {
2030
+ function Ya(e, t, n) {
2080
2031
  return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
2081
2032
  }
2082
- function Ka(e) {
2033
+ function Xa(e) {
2083
2034
  return e.replace(/-(\w)/g, (e, t) => t ? t.toUpperCase() : "");
2084
2035
  }
2085
- function qa(e) {
2086
- return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[Ka(n)] = e[n]), t), {});
2036
+ function Za(e) {
2037
+ return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[Xa(n)] = e[n]), t), {});
2087
2038
  }
2088
- function Ja(e, t) {
2039
+ function Qa(e, t) {
2089
2040
  return Array.isArray(e) && e.splice(t, 1), e;
2090
2041
  }
2091
- function Ya(e, t, n) {
2042
+ function $a(e, t, n) {
2092
2043
  return Array.isArray(e) && e.splice(t, 0, n), e;
2093
2044
  }
2094
- function Xa(e) {
2045
+ function eo(e) {
2095
2046
  return e === void 0;
2096
2047
  }
2097
- function Za(e) {
2048
+ function to(e) {
2098
2049
  return typeof e == "string";
2099
2050
  }
2100
- function Qa(e, t, n) {
2051
+ function no(e, t, n) {
2101
2052
  let r = e.children[n];
2102
2053
  e.insertBefore(t, r);
2103
2054
  }
2104
- function $a(e) {
2055
+ function ro(e) {
2105
2056
  e.parentNode && e.parentNode.removeChild(e);
2106
2057
  }
2107
- function eo(e, t = document) {
2058
+ function io(e, t = document) {
2108
2059
  let n = null;
2109
- return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || Ua(`Element not found: ${e}`), n;
2060
+ return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || qa(`Element not found: ${e}`), n;
2110
2061
  }
2111
- function to(e, t, n = null) {
2062
+ function ao(e, t, n = null) {
2112
2063
  return function(...r) {
2113
2064
  return e.apply(n, r), t.apply(n, r);
2114
2065
  };
2115
2066
  }
2116
- function no(e, t) {
2117
- let n = Ba({}, e);
2067
+ function oo(e, t) {
2068
+ let n = Wa({}, e);
2118
2069
  return Object.keys(t).forEach((r) => {
2119
- n[r] ? n[r] = to(e[r], t[r]) : n[r] = t[r];
2070
+ n[r] ? n[r] = ao(e[r], t[r]) : n[r] = t[r];
2120
2071
  }), n;
2121
2072
  }
2122
- function ro(e) {
2073
+ function so(e) {
2123
2074
  return e instanceof HTMLElement;
2124
2075
  }
2125
- function io(e, t) {
2076
+ function co(e, t) {
2126
2077
  Object.keys(e).forEach((n) => {
2127
2078
  t(n, e[n]);
2128
2079
  });
2129
2080
  }
2130
- function ao(e) {
2081
+ function lo(e) {
2131
2082
  return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
2132
2083
  }
2133
- var oo = Object.assign;
2134
- function so(e, t) {
2084
+ var uo = Object.assign;
2085
+ function fo(e, t) {
2135
2086
  var n = Object.keys(e);
2136
2087
  if (Object.getOwnPropertySymbols) {
2137
2088
  var r = Object.getOwnPropertySymbols(e);
@@ -2141,26 +2092,26 @@ function so(e, t) {
2141
2092
  }
2142
2093
  return n;
2143
2094
  }
2144
- function co(e) {
2095
+ function po(e) {
2145
2096
  for (var t = 1; t < arguments.length; t++) {
2146
2097
  var n = arguments[t] == null ? {} : arguments[t];
2147
- t % 2 ? so(Object(n), !0).forEach(function(t) {
2148
- uo(e, t, n[t]);
2149
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : so(Object(n)).forEach(function(t) {
2098
+ t % 2 ? fo(Object(n), !0).forEach(function(t) {
2099
+ ho(e, t, n[t]);
2100
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fo(Object(n)).forEach(function(t) {
2150
2101
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
2151
2102
  });
2152
2103
  }
2153
2104
  return e;
2154
2105
  }
2155
- function lo(e) {
2106
+ function mo(e) {
2156
2107
  "@babel/helpers - typeof";
2157
- return lo = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2108
+ return mo = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2158
2109
  return typeof e;
2159
2110
  } : function(e) {
2160
2111
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2161
- }, lo(e);
2112
+ }, mo(e);
2162
2113
  }
2163
- function uo(e, t, n) {
2114
+ function ho(e, t, n) {
2164
2115
  return t in e ? Object.defineProperty(e, t, {
2165
2116
  value: n,
2166
2117
  enumerable: !0,
@@ -2168,44 +2119,44 @@ function uo(e, t, n) {
2168
2119
  writable: !0
2169
2120
  }) : e[t] = n, e;
2170
2121
  }
2171
- function fo() {
2172
- return fo = Object.assign || function(e) {
2122
+ function go() {
2123
+ return go = Object.assign || function(e) {
2173
2124
  for (var t = 1; t < arguments.length; t++) {
2174
2125
  var n = arguments[t];
2175
2126
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
2176
2127
  }
2177
2128
  return e;
2178
- }, fo.apply(this, arguments);
2129
+ }, go.apply(this, arguments);
2179
2130
  }
2180
- function po(e, t) {
2131
+ function _o(e, t) {
2181
2132
  if (e == null) return {};
2182
2133
  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]);
2183
2134
  return n;
2184
2135
  }
2185
- function mo(e, t) {
2136
+ function vo(e, t) {
2186
2137
  if (e == null) return {};
2187
- var n = po(e, t), r, i;
2138
+ var n = _o(e, t), r, i;
2188
2139
  if (Object.getOwnPropertySymbols) {
2189
2140
  var a = Object.getOwnPropertySymbols(e);
2190
2141
  for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
2191
2142
  }
2192
2143
  return n;
2193
2144
  }
2194
- var ho = "1.15.2";
2195
- function go(e) {
2145
+ var yo = "1.15.2";
2146
+ function bo(e) {
2196
2147
  if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
2197
2148
  }
2198
- var _o = go(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), vo = go(/Edge/i), yo = go(/firefox/i), bo = go(/safari/i) && !go(/chrome/i) && !go(/android/i), xo = go(/iP(ad|od|hone)/i), So = go(/chrome/i) && go(/android/i), Co = {
2149
+ var xo = bo(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), So = bo(/Edge/i), Co = bo(/firefox/i), wo = bo(/safari/i) && !bo(/chrome/i) && !bo(/android/i), To = bo(/iP(ad|od|hone)/i), Eo = bo(/chrome/i) && bo(/android/i), Do = {
2199
2150
  capture: !1,
2200
2151
  passive: !1
2201
2152
  };
2202
2153
  function z(e, t, n) {
2203
- e.addEventListener(t, n, !_o && Co);
2154
+ e.addEventListener(t, n, !xo && Do);
2204
2155
  }
2205
2156
  function B(e, t, n) {
2206
- e.removeEventListener(t, n, !_o && Co);
2157
+ e.removeEventListener(t, n, !xo && Do);
2207
2158
  }
2208
- function wo(e, t) {
2159
+ function Oo(e, t) {
2209
2160
  if (t) {
2210
2161
  if (t[0] === ">" && (t = t.substring(1)), e) try {
2211
2162
  if (e.matches) return e.matches(t);
@@ -2217,22 +2168,22 @@ function wo(e, t) {
2217
2168
  return !1;
2218
2169
  }
2219
2170
  }
2220
- function To(e) {
2171
+ function ko(e) {
2221
2172
  return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
2222
2173
  }
2223
- function Eo(e, t, n, r) {
2174
+ function Ao(e, t, n, r) {
2224
2175
  if (e) {
2225
2176
  n ||= document;
2226
2177
  do {
2227
- if (t != null && (t[0] === ">" ? e.parentNode === n && wo(e, t) : wo(e, t)) || r && e === n) return e;
2178
+ if (t != null && (t[0] === ">" ? e.parentNode === n && Oo(e, t) : Oo(e, t)) || r && e === n) return e;
2228
2179
  if (e === n) break;
2229
- } while (e = To(e));
2180
+ } while (e = ko(e));
2230
2181
  }
2231
2182
  return null;
2232
2183
  }
2233
- var Do = /\s+/g;
2234
- function Oo(e, t, n) {
2235
- e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(Do, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(Do, " "));
2184
+ var jo = /\s+/g;
2185
+ function Mo(e, t, n) {
2186
+ e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(jo, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(jo, " "));
2236
2187
  }
2237
2188
  function V(e, t, n) {
2238
2189
  var r = e && e.style;
@@ -2241,7 +2192,7 @@ function V(e, t, n) {
2241
2192
  !(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
2242
2193
  }
2243
2194
  }
2244
- function ko(e, t) {
2195
+ function No(e, t) {
2245
2196
  var n = "";
2246
2197
  if (typeof e == "string") n = e;
2247
2198
  else do {
@@ -2251,7 +2202,7 @@ function ko(e, t) {
2251
2202
  var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
2252
2203
  return i && new i(n);
2253
2204
  }
2254
- function Ao(e, t, n) {
2205
+ function Po(e, t, n) {
2255
2206
  if (e) {
2256
2207
  var r = e.getElementsByTagName(t), i = 0, a = r.length;
2257
2208
  if (n) for (; i < a; i++) n(r[i], i);
@@ -2259,13 +2210,13 @@ function Ao(e, t, n) {
2259
2210
  }
2260
2211
  return [];
2261
2212
  }
2262
- function jo() {
2213
+ function Fo() {
2263
2214
  return document.scrollingElement || document.documentElement;
2264
2215
  }
2265
2216
  function H(e, t, n, r, i) {
2266
2217
  if (e.getBoundingClientRect || e === window) {
2267
2218
  var a, o, s, c, l, u, d;
2268
- if (e !== window && e.parentNode && e !== jo() ? (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, !_o)) do
2219
+ if (e !== window && e.parentNode && e !== Fo() ? (a = e.getBoundingClientRect(), o = a.top, s = a.left, c = a.bottom, l = a.right, u = a.height, d = a.width) : (o = 0, s = 0, c = window.innerHeight, l = window.innerWidth, u = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (i ||= e.parentNode, !xo)) do
2269
2220
  if (i && i.getBoundingClientRect && (V(i, "transform") !== "none" || n && V(i, "position") !== "static")) {
2270
2221
  var f = i.getBoundingClientRect();
2271
2222
  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;
@@ -2273,7 +2224,7 @@ function H(e, t, n, r, i) {
2273
2224
  }
2274
2225
  while (i = i.parentNode);
2275
2226
  if (r && e !== window) {
2276
- var p = ko(i || e), m = p && p.a, h = p && p.d;
2227
+ var p = No(i || e), m = p && p.a, h = p && p.d;
2277
2228
  p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
2278
2229
  }
2279
2230
  return {
@@ -2286,18 +2237,18 @@ function H(e, t, n, r, i) {
2286
2237
  };
2287
2238
  }
2288
2239
  }
2289
- function Mo(e, t, n) {
2290
- for (var r = Ro(e, !0), i = H(e)[t]; r;) {
2240
+ function Io(e, t, n) {
2241
+ for (var r = Ho(e, !0), i = H(e)[t]; r;) {
2291
2242
  var a = H(r)[n], o = void 0;
2292
2243
  if (o = i >= a, !o) return r;
2293
- if (r === jo()) break;
2294
- r = Ro(r, !1);
2244
+ if (r === Fo()) break;
2245
+ r = Ho(r, !1);
2295
2246
  }
2296
2247
  return !1;
2297
2248
  }
2298
- function No(e, t, n, r) {
2249
+ function Lo(e, t, n, r) {
2299
2250
  for (var i = 0, a = 0, o = e.children; a < o.length;) {
2300
- if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && Eo(o[a], n.draggable, e, !1)) {
2251
+ if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && Ao(o[a], n.draggable, e, !1)) {
2301
2252
  if (i === t) return o[a];
2302
2253
  i++;
2303
2254
  }
@@ -2305,84 +2256,84 @@ function No(e, t, n, r) {
2305
2256
  }
2306
2257
  return null;
2307
2258
  }
2308
- function Po(e, t) {
2309
- for (var n = e.lastElementChild; n && (n === Q.ghost || V(n, "display") === "none" || t && !wo(n, t));) n = n.previousElementSibling;
2259
+ function Ro(e, t) {
2260
+ for (var n = e.lastElementChild; n && (n === Q.ghost || V(n, "display") === "none" || t && !Oo(n, t));) n = n.previousElementSibling;
2310
2261
  return n || null;
2311
2262
  }
2312
- function Fo(e, t) {
2263
+ function zo(e, t) {
2313
2264
  var n = 0;
2314
2265
  if (!e || !e.parentNode) return -1;
2315
- for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || wo(e, t)) && n++;
2266
+ for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || Oo(e, t)) && n++;
2316
2267
  return n;
2317
2268
  }
2318
- function Io(e) {
2319
- var t = 0, n = 0, r = jo();
2269
+ function Bo(e) {
2270
+ var t = 0, n = 0, r = Fo();
2320
2271
  if (e) do {
2321
- var i = ko(e), a = i.a, o = i.d;
2272
+ var i = No(e), a = i.a, o = i.d;
2322
2273
  t += e.scrollLeft * a, n += e.scrollTop * o;
2323
2274
  } while (e !== r && (e = e.parentNode));
2324
2275
  return [t, n];
2325
2276
  }
2326
- function Lo(e, t) {
2277
+ function Vo(e, t) {
2327
2278
  for (var n in e) if (e.hasOwnProperty(n)) {
2328
2279
  for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
2329
2280
  }
2330
2281
  return -1;
2331
2282
  }
2332
- function Ro(e, t) {
2333
- if (!e || !e.getBoundingClientRect) return jo();
2283
+ function Ho(e, t) {
2284
+ if (!e || !e.getBoundingClientRect) return Fo();
2334
2285
  var n = e, r = !1;
2335
2286
  do
2336
2287
  if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
2337
2288
  var i = V(n);
2338
2289
  if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
2339
- if (!n.getBoundingClientRect || n === document.body) return jo();
2290
+ if (!n.getBoundingClientRect || n === document.body) return Fo();
2340
2291
  if (r || t) return n;
2341
2292
  r = !0;
2342
2293
  }
2343
2294
  }
2344
2295
  while (n = n.parentNode);
2345
- return jo();
2296
+ return Fo();
2346
2297
  }
2347
- function zo(e, t) {
2298
+ function Uo(e, t) {
2348
2299
  if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
2349
2300
  return e;
2350
2301
  }
2351
- function Bo(e, t) {
2302
+ function Wo(e, t) {
2352
2303
  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);
2353
2304
  }
2354
- var Vo;
2355
- function Ho(e, t) {
2305
+ var Go;
2306
+ function Ko(e, t) {
2356
2307
  return function() {
2357
- if (!Vo) {
2308
+ if (!Go) {
2358
2309
  var n = arguments, r = this;
2359
- n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), Vo = setTimeout(function() {
2360
- Vo = void 0;
2310
+ n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), Go = setTimeout(function() {
2311
+ Go = void 0;
2361
2312
  }, t);
2362
2313
  }
2363
2314
  };
2364
2315
  }
2365
- function Uo() {
2366
- clearTimeout(Vo), Vo = void 0;
2316
+ function qo() {
2317
+ clearTimeout(Go), Go = void 0;
2367
2318
  }
2368
- function Wo(e, t, n) {
2319
+ function Jo(e, t, n) {
2369
2320
  e.scrollLeft += t, e.scrollTop += n;
2370
2321
  }
2371
- function Go(e) {
2322
+ function Yo(e) {
2372
2323
  var t = window.Polymer, n = window.jQuery || window.Zepto;
2373
2324
  return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
2374
2325
  }
2375
- function Ko(e, t, n) {
2326
+ function Xo(e, t, n) {
2376
2327
  var r = {};
2377
2328
  return Array.from(e.children).forEach(function(i) {
2378
- if (Eo(i, t.draggable, e, !1) && !i.animated && i !== n) {
2329
+ if (Ao(i, t.draggable, e, !1) && !i.animated && i !== n) {
2379
2330
  var a = H(i);
2380
2331
  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);
2381
2332
  }
2382
2333
  }), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
2383
2334
  }
2384
- var qo = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
2385
- function Jo() {
2335
+ var Zo = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
2336
+ function Qo() {
2386
2337
  var e = [], t;
2387
2338
  return {
2388
2339
  captureAnimationState: function() {
@@ -2392,9 +2343,9 @@ function Jo() {
2392
2343
  target: t,
2393
2344
  rect: H(t)
2394
2345
  });
2395
- var n = co({}, e[e.length - 1].rect);
2346
+ var n = po({}, e[e.length - 1].rect);
2396
2347
  if (t.thisAnimationDuration) {
2397
- var r = ko(t, !0);
2348
+ var r = No(t, !0);
2398
2349
  r && (n.top -= r.f, n.left -= r.e);
2399
2350
  }
2400
2351
  t.fromRect = n;
@@ -2405,7 +2356,7 @@ function Jo() {
2405
2356
  e.push(t);
2406
2357
  },
2407
2358
  removeAnimationState: function(t) {
2408
- e.splice(Lo(e, { target: t }), 1);
2359
+ e.splice(Vo(e, { target: t }), 1);
2409
2360
  },
2410
2361
  animateAll: function(n) {
2411
2362
  var r = this;
@@ -2413,8 +2364,8 @@ function Jo() {
2413
2364
  else {
2414
2365
  var i = !1, a = 0;
2415
2366
  e.forEach(function(e) {
2416
- var t = 0, n = e.target, o = n.fromRect, s = H(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = ko(n, !0);
2417
- d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Bo(c, s) && !Bo(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = Xo(u, c, l, r.options)), Bo(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() {
2367
+ var t = 0, n = e.target, o = n.fromRect, s = H(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = No(n, !0);
2368
+ d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Wo(c, s) && !Wo(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = es(u, c, l, r.options)), Wo(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() {
2418
2369
  n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
2419
2370
  }, t), n.thisAnimationDuration = t);
2420
2371
  }), clearTimeout(t), i ? t = setTimeout(function() {
@@ -2425,26 +2376,26 @@ function Jo() {
2425
2376
  animate: function(e, t, n, r) {
2426
2377
  if (r) {
2427
2378
  V(e, "transition", ""), V(e, "transform", "");
2428
- var i = ko(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
2429
- e.animatingX = !!s, e.animatingY = !!c, V(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = Yo(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() {
2379
+ var i = No(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
2380
+ e.animatingX = !!s, e.animatingY = !!c, V(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = $o(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() {
2430
2381
  V(e, "transition", ""), V(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
2431
2382
  }, r);
2432
2383
  }
2433
2384
  }
2434
2385
  };
2435
2386
  }
2436
- function Yo(e) {
2387
+ function $o(e) {
2437
2388
  return e.offsetWidth;
2438
2389
  }
2439
- function Xo(e, t, n, r) {
2390
+ function es(e, t, n, r) {
2440
2391
  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;
2441
2392
  }
2442
- var Zo = [], Qo = { initializeByDefault: !0 }, $o = {
2393
+ var ts = [], ns = { initializeByDefault: !0 }, rs = {
2443
2394
  mount: function(e) {
2444
- for (var t in Qo) Qo.hasOwnProperty(t) && !(t in e) && (e[t] = Qo[t]);
2445
- Zo.forEach(function(t) {
2395
+ for (var t in ns) ns.hasOwnProperty(t) && !(t in e) && (e[t] = ns[t]);
2396
+ ts.forEach(function(t) {
2446
2397
  if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
2447
- }), Zo.push(e);
2398
+ }), ts.push(e);
2448
2399
  },
2449
2400
  pluginEvent: function(e, t, n) {
2450
2401
  var r = this;
@@ -2452,16 +2403,16 @@ var Zo = [], Qo = { initializeByDefault: !0 }, $o = {
2452
2403
  r.eventCanceled = !0;
2453
2404
  };
2454
2405
  var i = e + "Global";
2455
- Zo.forEach(function(r) {
2456
- t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](co({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](co({ sortable: t }, n)));
2406
+ ts.forEach(function(r) {
2407
+ t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](po({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](po({ sortable: t }, n)));
2457
2408
  });
2458
2409
  },
2459
2410
  initializePlugins: function(e, t, n, r) {
2460
- for (var i in Zo.forEach(function(r) {
2411
+ for (var i in ts.forEach(function(r) {
2461
2412
  var i = r.pluginName;
2462
2413
  if (e.options[i] || r.initializeByDefault) {
2463
2414
  var a = new r(e, t, e.options);
2464
- a.sortable = e, a.options = e.options, e[i] = a, fo(n, a.defaults);
2415
+ a.sortable = e, a.options = e.options, e[i] = a, go(n, a.defaults);
2465
2416
  }
2466
2417
  }), e.options) if (e.options.hasOwnProperty(i)) {
2467
2418
  var a = this.modifyOption(e, i, e.options[i]);
@@ -2470,56 +2421,56 @@ var Zo = [], Qo = { initializeByDefault: !0 }, $o = {
2470
2421
  },
2471
2422
  getEventProperties: function(e, t) {
2472
2423
  var n = {};
2473
- return Zo.forEach(function(r) {
2474
- typeof r.eventProperties == "function" && fo(n, r.eventProperties.call(t[r.pluginName], e));
2424
+ return ts.forEach(function(r) {
2425
+ typeof r.eventProperties == "function" && go(n, r.eventProperties.call(t[r.pluginName], e));
2475
2426
  }), n;
2476
2427
  },
2477
2428
  modifyOption: function(e, t, n) {
2478
2429
  var r;
2479
- return Zo.forEach(function(i) {
2430
+ return ts.forEach(function(i) {
2480
2431
  e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
2481
2432
  }), r;
2482
2433
  }
2483
2434
  };
2484
- function es(e) {
2435
+ function is(e) {
2485
2436
  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;
2486
- if (t ||= n && n[qo], t) {
2437
+ if (t ||= n && n[Zo], t) {
2487
2438
  var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
2488
- window.CustomEvent && !_o && !vo ? h = new CustomEvent(r, {
2439
+ window.CustomEvent && !xo && !So ? h = new CustomEvent(r, {
2489
2440
  bubbles: !0,
2490
2441
  cancelable: !0
2491
2442
  }) : (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;
2492
- var v = co(co({}, m), $o.getEventProperties(r, t));
2443
+ var v = po(po({}, m), rs.getEventProperties(r, t));
2493
2444
  for (var y in v) h[y] = v[y];
2494
2445
  n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
2495
2446
  }
2496
2447
  }
2497
- var ts = ["evt"], U = function(e, t) {
2498
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = mo(n, ts);
2499
- $o.pluginEvent.bind(Q)(e, t, co({
2448
+ var as = ["evt"], U = function(e, t) {
2449
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = vo(n, as);
2450
+ rs.pluginEvent.bind(Q)(e, t, po({
2500
2451
  dragEl: G,
2501
2452
  parentEl: K,
2502
2453
  ghostEl: q,
2503
2454
  rootEl: J,
2504
- nextEl: ns,
2505
- lastDownEl: rs,
2455
+ nextEl: os,
2456
+ lastDownEl: ss,
2506
2457
  cloneEl: Y,
2507
- cloneHidden: is,
2508
- dragStarted: ys,
2458
+ cloneHidden: cs,
2459
+ dragStarted: Cs,
2509
2460
  putSortable: X,
2510
2461
  activeSortable: Q.active,
2511
2462
  originalEvent: r,
2512
- oldIndex: as,
2513
- oldDraggableIndex: ss,
2514
- newIndex: os,
2515
- newDraggableIndex: cs,
2516
- hideGhostForTarget: Ls,
2517
- unhideGhostForTarget: Rs,
2463
+ oldIndex: ls,
2464
+ oldDraggableIndex: ds,
2465
+ newIndex: us,
2466
+ newDraggableIndex: fs,
2467
+ hideGhostForTarget: Vs,
2468
+ unhideGhostForTarget: Hs,
2518
2469
  cloneNowHidden: function() {
2519
- is = !0;
2470
+ cs = !0;
2520
2471
  },
2521
2472
  cloneNowShown: function() {
2522
- is = !1;
2473
+ cs = !1;
2523
2474
  },
2524
2475
  dispatchSortableEvent: function(e) {
2525
2476
  W({
@@ -2531,45 +2482,45 @@ var ts = ["evt"], U = function(e, t) {
2531
2482
  }, i));
2532
2483
  };
2533
2484
  function W(e) {
2534
- es(co({
2485
+ is(po({
2535
2486
  putSortable: X,
2536
2487
  cloneEl: Y,
2537
2488
  targetEl: G,
2538
2489
  rootEl: J,
2539
- oldIndex: as,
2540
- oldDraggableIndex: ss,
2541
- newIndex: os,
2542
- newDraggableIndex: cs
2490
+ oldIndex: ls,
2491
+ oldDraggableIndex: ds,
2492
+ newIndex: us,
2493
+ newDraggableIndex: fs
2543
2494
  }, e));
2544
2495
  }
2545
- var G, K, q, J, ns, rs, Y, is, as, os, ss, cs, ls, X, us = !1, ds = !1, fs = [], ps, ms, hs, gs, _s, vs, ys, bs, xs, Ss = !1, Cs = !1, ws, Z, Ts = [], Es = !1, Ds = [], Os = typeof document < "u", ks = xo, As = vo || _o ? "cssFloat" : "float", js = Os && !So && !xo && "draggable" in document.createElement("div"), Ms = function() {
2546
- if (Os) {
2547
- if (_o) return !1;
2496
+ var G, K, q, J, os, ss, Y, cs, ls, us, ds, fs, ps, X, ms = !1, hs = !1, gs = [], _s, vs, ys, bs, xs, Ss, Cs, ws, Ts, Es = !1, Ds = !1, Os, Z, ks = [], As = !1, js = [], Ms = typeof document < "u", Ns = To, Ps = So || xo ? "cssFloat" : "float", Fs = Ms && !Eo && !To && "draggable" in document.createElement("div"), Is = function() {
2497
+ if (Ms) {
2498
+ if (xo) return !1;
2548
2499
  var e = document.createElement("x");
2549
2500
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
2550
2501
  }
2551
- }(), Ns = function(e, t) {
2552
- var n = V(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = No(e, 0, t), a = No(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;
2502
+ }(), Ls = function(e, t) {
2503
+ var n = V(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = Lo(e, 0, t), a = Lo(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;
2553
2504
  if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
2554
2505
  if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
2555
2506
  if (i && o.float && o.float !== "none") {
2556
2507
  var u = o.float === "left" ? "left" : "right";
2557
2508
  return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
2558
2509
  }
2559
- return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[As] === "none" || a && n[As] === "none" && c + l > r) ? "vertical" : "horizontal";
2560
- }, Ps = function(e, t, n) {
2510
+ return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Ps] === "none" || a && n[Ps] === "none" && c + l > r) ? "vertical" : "horizontal";
2511
+ }, Rs = function(e, t, n) {
2561
2512
  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;
2562
2513
  return r === o || i === s || r + a / 2 === o + c / 2;
2563
- }, Fs = function(e, t) {
2514
+ }, zs = function(e, t) {
2564
2515
  var n;
2565
- return fs.some(function(r) {
2566
- var i = r[qo].options.emptyInsertThreshold;
2567
- if (i && !Po(r)) {
2516
+ return gs.some(function(r) {
2517
+ var i = r[Zo].options.emptyInsertThreshold;
2518
+ if (i && !Ro(r)) {
2568
2519
  var a = H(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
2569
2520
  if (o && s) return n = r;
2570
2521
  }
2571
2522
  }), n;
2572
- }, Is = function(e) {
2523
+ }, Bs = function(e) {
2573
2524
  function t(e, n) {
2574
2525
  return function(r, i, a, o) {
2575
2526
  var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
@@ -2582,31 +2533,31 @@ var G, K, q, J, ns, rs, Y, is, as, os, ss, cs, ls, X, us = !1, ds = !1, fs = [],
2582
2533
  };
2583
2534
  }
2584
2535
  var n = {}, r = e.group;
2585
- (!r || lo(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;
2586
- }, Ls = function() {
2587
- !Ms && q && V(q, "display", "none");
2588
- }, Rs = function() {
2589
- !Ms && q && V(q, "display", "");
2536
+ r && mo(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;
2537
+ }, Vs = function() {
2538
+ !Is && q && V(q, "display", "none");
2539
+ }, Hs = function() {
2540
+ !Is && q && V(q, "display", "");
2590
2541
  };
2591
- Os && !So && document.addEventListener("click", function(e) {
2592
- if (ds) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), ds = !1, !1;
2542
+ Ms && !Eo && document.addEventListener("click", function(e) {
2543
+ if (hs) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), hs = !1, !1;
2593
2544
  }, !0);
2594
- var zs = function(e) {
2545
+ var Us = function(e) {
2595
2546
  if (G) {
2596
2547
  e = e.touches ? e.touches[0] : e;
2597
- var t = Fs(e.clientX, e.clientY);
2548
+ var t = zs(e.clientX, e.clientY);
2598
2549
  if (t) {
2599
2550
  var n = {};
2600
2551
  for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
2601
- n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[qo]._onDragOver(n);
2552
+ n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[Zo]._onDragOver(n);
2602
2553
  }
2603
2554
  }
2604
- }, Bs = function(e) {
2605
- G && G.parentNode[qo]._isOutsideThisEl(e.target);
2555
+ }, Ws = function(e) {
2556
+ G && G.parentNode[Zo]._isOutsideThisEl(e.target);
2606
2557
  };
2607
2558
  function Q(e, t) {
2608
2559
  if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
2609
- this.el = e, this.options = t = fo({}, t), e[qo] = this;
2560
+ this.el = e, this.options = t = go({}, t), e[Zo] = this;
2610
2561
  var n = {
2611
2562
  group: null,
2612
2563
  sort: !0,
@@ -2619,7 +2570,7 @@ function Q(e, t) {
2619
2570
  invertedSwapThreshold: null,
2620
2571
  removeCloneOnHide: !0,
2621
2572
  direction: function() {
2622
- return Ns(e, this.options);
2573
+ return Ls(e, this.options);
2623
2574
  },
2624
2575
  ghostClass: "sortable-ghost",
2625
2576
  chosenClass: "sortable-chosen",
@@ -2646,17 +2597,17 @@ function Q(e, t) {
2646
2597
  x: 0,
2647
2598
  y: 0
2648
2599
  },
2649
- supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !bo,
2600
+ supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !wo,
2650
2601
  emptyInsertThreshold: 5
2651
2602
  };
2652
- for (var r in $o.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
2653
- for (var i in Is(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
2654
- this.nativeDraggable = !t.forceFallback && js, 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)), fs.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), fo(this, Jo());
2603
+ for (var r in rs.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
2604
+ for (var i in Bs(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
2605
+ this.nativeDraggable = !t.forceFallback && Fs, 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)), gs.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), go(this, Qo());
2655
2606
  }
2656
2607
  Q.prototype = {
2657
2608
  constructor: Q,
2658
2609
  _isOutsideThisEl: function(e) {
2659
- !this.el.contains(e) && e !== this.el && (bs = null);
2610
+ !this.el.contains(e) && e !== this.el && (ws = null);
2660
2611
  },
2661
2612
  _getDirection: function(e, t) {
2662
2613
  return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, G) : this.options.direction;
@@ -2664,8 +2615,8 @@ Q.prototype = {
2664
2615
  _onTapStart: function(e) {
2665
2616
  if (e.cancelable) {
2666
2617
  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;
2667
- if (Xs(n), !G && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && bo && s && s.tagName.toUpperCase() === "SELECT") && (s = Eo(s, r.draggable, n, !1), !(s && s.animated) && rs !== s)) {
2668
- if (as = Fo(s), ss = Fo(s, r.draggable), typeof l == "function") {
2618
+ if (ec(n), !G && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && wo && s && s.tagName.toUpperCase() === "SELECT") && (s = Ao(s, r.draggable, n, !1), !(s && s.animated) && ss !== s)) {
2619
+ if (ls = zo(s), ds = zo(s, r.draggable), typeof l == "function") {
2669
2620
  if (l.call(this, e, s, this)) {
2670
2621
  W({
2671
2622
  sortable: t,
@@ -2678,7 +2629,7 @@ Q.prototype = {
2678
2629
  return;
2679
2630
  }
2680
2631
  } else if (l && (l = l.split(",").some(function(r) {
2681
- if (r = Eo(c, r.trim(), n, !1), r) return W({
2632
+ if (r = Ao(c, r.trim(), n, !1), r) return W({
2682
2633
  sortable: t,
2683
2634
  rootEl: r,
2684
2635
  name: "filter",
@@ -2690,7 +2641,7 @@ Q.prototype = {
2690
2641
  i && e.cancelable && e.preventDefault();
2691
2642
  return;
2692
2643
  }
2693
- r.handle && !Eo(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
2644
+ r.handle && !Ao(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
2694
2645
  }
2695
2646
  }
2696
2647
  },
@@ -2698,19 +2649,19 @@ Q.prototype = {
2698
2649
  var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
2699
2650
  if (n && !G && n.parentNode === i) {
2700
2651
  var c = H(n);
2701
- if (J = i, G = n, K = G.parentNode, ns = G.nextSibling, rs = n, ls = a.group, Q.dragged = G, ps = {
2652
+ if (J = i, G = n, K = G.parentNode, os = G.nextSibling, ss = n, ps = a.group, Q.dragged = G, _s = {
2702
2653
  target: G,
2703
2654
  clientX: (t || e).clientX,
2704
2655
  clientY: (t || e).clientY
2705
- }, _s = ps.clientX - c.left, vs = ps.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, G.style["will-change"] = "all", s = function() {
2706
- U("delayEnded", r, { evt: e }), Q.eventCanceled ? r._onDrop() : (r._disableDelayedDragEvents(), !yo && r.nativeDraggable && (G.draggable = !0), r._triggerDragStart(e, t), W({
2656
+ }, xs = _s.clientX - c.left, Ss = _s.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, G.style["will-change"] = "all", s = function() {
2657
+ U("delayEnded", r, { evt: e }), Q.eventCanceled ? r._onDrop() : (r._disableDelayedDragEvents(), !Co && r.nativeDraggable && (G.draggable = !0), r._triggerDragStart(e, t), W({
2707
2658
  sortable: r,
2708
2659
  name: "choose",
2709
2660
  originalEvent: e
2710
- }), Oo(G, a.chosenClass, !0));
2661
+ }), Mo(G, a.chosenClass, !0));
2711
2662
  }, a.ignore.split(",").forEach(function(e) {
2712
- Ao(G, e.trim(), Us);
2713
- }), z(o, "dragover", zs), z(o, "mousemove", zs), z(o, "touchmove", zs), z(o, "mouseup", r._onDrop), z(o, "touchend", r._onDrop), z(o, "touchcancel", r._onDrop), yo && this.nativeDraggable && (this.options.touchStartThreshold = 4, G.draggable = !0), U("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(vo || _o))) {
2663
+ Po(G, e.trim(), qs);
2664
+ }), z(o, "dragover", Us), z(o, "mousemove", Us), z(o, "touchmove", Us), z(o, "mouseup", r._onDrop), z(o, "touchend", r._onDrop), z(o, "touchcancel", r._onDrop), Co && this.nativeDraggable && (this.options.touchStartThreshold = 4, G.draggable = !0), U("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(So || xo))) {
2714
2665
  if (Q.eventCanceled) {
2715
2666
  this._onDrop();
2716
2667
  return;
@@ -2724,7 +2675,7 @@ Q.prototype = {
2724
2675
  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();
2725
2676
  },
2726
2677
  _disableDelayedDrag: function() {
2727
- G && Us(G), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2678
+ G && qs(G), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2728
2679
  },
2729
2680
  _disableDelayedDragEvents: function() {
2730
2681
  var e = this.el.ownerDocument;
@@ -2733,16 +2684,16 @@ Q.prototype = {
2733
2684
  _triggerDragStart: function(e, t) {
2734
2685
  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));
2735
2686
  try {
2736
- document.selection ? Zs(function() {
2687
+ document.selection ? tc(function() {
2737
2688
  document.selection.empty();
2738
2689
  }) : window.getSelection().removeAllRanges();
2739
2690
  } catch {}
2740
2691
  },
2741
2692
  _dragStarted: function(e, t) {
2742
- if (us = !1, J && G) {
2743
- U("dragStarted", this, { evt: t }), this.nativeDraggable && z(document, "dragover", Bs);
2693
+ if (ms = !1, J && G) {
2694
+ U("dragStarted", this, { evt: t }), this.nativeDraggable && z(document, "dragover", Ws);
2744
2695
  var n = this.options;
2745
- !e && Oo(G, n.dragClass, !1), Oo(G, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), W({
2696
+ !e && Mo(G, n.dragClass, !1), Mo(G, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), W({
2746
2697
  sortable: this,
2747
2698
  name: "start",
2748
2699
  originalEvent: t
@@ -2750,33 +2701,33 @@ Q.prototype = {
2750
2701
  } else this._nulling();
2751
2702
  },
2752
2703
  _emulateDragOver: function() {
2753
- if (ms) {
2754
- this._lastX = ms.clientX, this._lastY = ms.clientY, Ls();
2755
- for (var e = document.elementFromPoint(ms.clientX, ms.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(ms.clientX, ms.clientY), e !== t);) t = e;
2756
- if (G.parentNode[qo]._isOutsideThisEl(e), t) do {
2757
- if (t[qo]) {
2704
+ if (vs) {
2705
+ this._lastX = vs.clientX, this._lastY = vs.clientY, Vs();
2706
+ for (var e = document.elementFromPoint(vs.clientX, vs.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(vs.clientX, vs.clientY), e !== t);) t = e;
2707
+ if (G.parentNode[Zo]._isOutsideThisEl(e), t) do {
2708
+ if (t[Zo]) {
2758
2709
  var n = void 0;
2759
- if (n = t[qo]._onDragOver({
2760
- clientX: ms.clientX,
2761
- clientY: ms.clientY,
2710
+ if (n = t[Zo]._onDragOver({
2711
+ clientX: vs.clientX,
2712
+ clientY: vs.clientY,
2762
2713
  target: e,
2763
2714
  rootEl: t
2764
2715
  }), n && !this.options.dragoverBubble) break;
2765
2716
  }
2766
2717
  e = t;
2767
2718
  } while (t = t.parentNode);
2768
- Rs();
2719
+ Hs();
2769
2720
  }
2770
2721
  },
2771
2722
  _onTouchMove: function(e) {
2772
- if (ps) {
2773
- var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q && ko(q, !0), o = q && a && a.a, s = q && a && a.d, c = ks && Z && Io(Z), l = (i.clientX - ps.clientX + r.x) / (o || 1) + (c ? c[0] - Ts[0] : 0) / (o || 1), u = (i.clientY - ps.clientY + r.y) / (s || 1) + (c ? c[1] - Ts[1] : 0) / (s || 1);
2774
- if (!Q.active && !us) {
2723
+ if (_s) {
2724
+ var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q && No(q, !0), o = q && a && a.a, s = q && a && a.d, c = Ns && Z && Bo(Z), l = (i.clientX - _s.clientX + r.x) / (o || 1) + (c ? c[0] - ks[0] : 0) / (o || 1), u = (i.clientY - _s.clientY + r.y) / (s || 1) + (c ? c[1] - ks[1] : 0) / (s || 1);
2725
+ if (!Q.active && !ms) {
2775
2726
  if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
2776
2727
  this._onDragStart(e, !0);
2777
2728
  }
2778
2729
  if (q) {
2779
- a ? (a.e += l - (hs || 0), a.f += u - (gs || 0)) : a = {
2730
+ a ? (a.e += l - (ys || 0), a.f += u - (bs || 0)) : a = {
2780
2731
  a: 1,
2781
2732
  b: 0,
2782
2733
  c: 0,
@@ -2785,35 +2736,35 @@ Q.prototype = {
2785
2736
  f: u
2786
2737
  };
2787
2738
  var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
2788
- V(q, "webkitTransform", d), V(q, "mozTransform", d), V(q, "msTransform", d), V(q, "transform", d), hs = l, gs = u, ms = i;
2739
+ V(q, "webkitTransform", d), V(q, "mozTransform", d), V(q, "msTransform", d), V(q, "transform", d), ys = l, bs = u, vs = i;
2789
2740
  }
2790
2741
  e.cancelable && e.preventDefault();
2791
2742
  }
2792
2743
  },
2793
2744
  _appendGhost: function() {
2794
2745
  if (!q) {
2795
- var e = this.options.fallbackOnBody ? document.body : J, t = H(G, !0, ks, !0, e), n = this.options;
2796
- if (ks) {
2746
+ var e = this.options.fallbackOnBody ? document.body : J, t = H(G, !0, Ns, !0, e), n = this.options;
2747
+ if (Ns) {
2797
2748
  for (Z = e; V(Z, "position") === "static" && V(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
2798
- Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = jo()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = jo(), Ts = Io(Z);
2749
+ Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = Fo()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = Fo(), ks = Bo(Z);
2799
2750
  }
2800
- q = G.cloneNode(!0), Oo(q, n.ghostClass, !1), Oo(q, n.fallbackClass, !0), Oo(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", ks ? "absolute" : "fixed"), V(q, "zIndex", "100000"), V(q, "pointerEvents", "none"), Q.ghost = q, e.appendChild(q), V(q, "transform-origin", _s / parseInt(q.style.width) * 100 + "% " + vs / parseInt(q.style.height) * 100 + "%");
2751
+ q = G.cloneNode(!0), Mo(q, n.ghostClass, !1), Mo(q, n.fallbackClass, !0), Mo(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", Ns ? "absolute" : "fixed"), V(q, "zIndex", "100000"), V(q, "pointerEvents", "none"), Q.ghost = q, e.appendChild(q), V(q, "transform-origin", xs / parseInt(q.style.width) * 100 + "% " + Ss / parseInt(q.style.height) * 100 + "%");
2801
2752
  }
2802
2753
  },
2803
2754
  _onDragStart: function(e, t) {
2804
2755
  var n = this, r = e.dataTransfer, i = n.options;
2805
- U("dragStart", this, { evt: e }), Q.eventCanceled ? this._onDrop() : (U("setupClone", this), Q.eventCanceled || (Y = Go(G), Y.removeAttribute("id"), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), Oo(Y, this.options.chosenClass, !1), Q.clone = Y), n.cloneId = Zs(function() {
2756
+ U("dragStart", this, { evt: e }), Q.eventCanceled ? this._onDrop() : (U("setupClone", this), Q.eventCanceled || (Y = Yo(G), Y.removeAttribute("id"), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), Mo(Y, this.options.chosenClass, !1), Q.clone = Y), n.cloneId = tc(function() {
2806
2757
  U("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || J.insertBefore(Y, G), n._hideClone(), W({
2807
2758
  sortable: n,
2808
2759
  name: "clone"
2809
2760
  }));
2810
- }), !t && Oo(G, i.dragClass, !0), t ? (ds = !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)")), us = !0, n._dragStartId = Zs(n._dragStarted.bind(n, t, e)), z(document, "selectstart", n), ys = !0, bo && V(document.body, "user-select", "none"));
2761
+ }), !t && Mo(G, i.dragClass, !0), t ? (hs = !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)")), ms = !0, n._dragStartId = tc(n._dragStarted.bind(n, t, e)), z(document, "selectstart", n), Cs = !0, wo && V(document.body, "user-select", "none"));
2811
2762
  },
2812
2763
  _onDragOver: function(e) {
2813
- var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = ls === s, u = o.sort, d = X || c, f, p = this, m = !1;
2814
- if (Es) return;
2764
+ var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = ps === s, u = o.sort, d = X || c, f, p = this, m = !1;
2765
+ if (As) return;
2815
2766
  function h(o, s) {
2816
- U(o, p, co({
2767
+ U(o, p, po({
2817
2768
  evt: e,
2818
2769
  isOwner: l,
2819
2770
  axis: f ? "vertical" : "horizontal",
@@ -2825,7 +2776,7 @@ Q.prototype = {
2825
2776
  target: n,
2826
2777
  completed: _,
2827
2778
  onMove: function(n, i) {
2828
- return Hs(J, t, G, r, n, H(n), e, i);
2779
+ return Ks(J, t, G, r, n, H(n), e, i);
2829
2780
  },
2830
2781
  changed: v
2831
2782
  }, s));
@@ -2834,50 +2785,50 @@ Q.prototype = {
2834
2785
  h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
2835
2786
  }
2836
2787
  function _(r) {
2837
- return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (Oo(G, X ? X.options.ghostClass : c.options.ghostClass, !1), Oo(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() {
2788
+ return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (Mo(G, X ? X.options.ghostClass : c.options.ghostClass, !1), Mo(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() {
2838
2789
  h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
2839
- }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (bs = null), !o.dragoverBubble && !e.rootEl && n !== document && (G.parentNode[qo]._isOutsideThisEl(e.target), !r && zs(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
2790
+ }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (ws = null), !o.dragoverBubble && !e.rootEl && n !== document && (G.parentNode[Zo]._isOutsideThisEl(e.target), !r && Us(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
2840
2791
  }
2841
2792
  function v() {
2842
- os = Fo(G), cs = Fo(G, o.draggable), W({
2793
+ us = zo(G), fs = zo(G, o.draggable), W({
2843
2794
  sortable: p,
2844
2795
  name: "change",
2845
2796
  toEl: t,
2846
- newIndex: os,
2847
- newDraggableIndex: cs,
2797
+ newIndex: us,
2798
+ newDraggableIndex: fs,
2848
2799
  originalEvent: e
2849
2800
  });
2850
2801
  }
2851
- if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Eo(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
2802
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Ao(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
2852
2803
  if (G.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
2853
- if (ds = !1, c && !o.disabled && (l ? u || (a = K !== J) : X === this || (this.lastPutMode = ls.checkPull(this, c, G, e)) && s.checkPut(this, c, G, e))) {
2804
+ if (hs = !1, c && !o.disabled && (l ? u || (a = K !== J) : X === this || (this.lastPutMode = ps.checkPull(this, c, G, e)) && s.checkPut(this, c, G, e))) {
2854
2805
  if (f = this._getDirection(e, n) === "vertical", r = H(G), h("dragOverValid"), Q.eventCanceled) return m;
2855
- if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (ns ? J.insertBefore(G, ns) : J.appendChild(G)), _(!0);
2856
- var y = Po(t, o.draggable);
2857
- if (!y || Ks(e, f, this) && !y.animated) {
2806
+ if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (os ? J.insertBefore(G, os) : J.appendChild(G)), _(!0);
2807
+ var y = Ro(t, o.draggable);
2808
+ if (!y || Xs(e, f, this) && !y.animated) {
2858
2809
  if (y === G) return _(!1);
2859
- if (y && t === e.target && (n = y), n && (i = H(n)), Hs(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);
2860
- } else if (y && Gs(e, f, this)) {
2861
- var b = No(t, 0, o, !0);
2810
+ if (y && t === e.target && (n = y), n && (i = H(n)), Ks(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);
2811
+ } else if (y && Ys(e, f, this)) {
2812
+ var b = Lo(t, 0, o, !0);
2862
2813
  if (b === G) return _(!1);
2863
- if (n = b, i = H(n), Hs(J, t, G, r, n, i, e, !1) !== !1) return g(), t.insertBefore(G, b), K = t, v(), _(!0);
2814
+ if (n = b, i = H(n), Ks(J, t, G, r, n, i, e, !1) !== !1) return g(), t.insertBefore(G, b), K = t, v(), _(!0);
2864
2815
  } else if (n.parentNode === t) {
2865
2816
  i = H(n);
2866
- var x = 0, S, C = G.parentNode !== t, w = !Ps(G.animated && G.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = Mo(n, "top", "top") || Mo(G, "top", "top"), D = E ? E.scrollTop : void 0;
2867
- bs !== n && (S = i[T], Ss = !1, Cs = !w && o.invertSwap || C), x = qs(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Cs, bs === n);
2817
+ var x = 0, S, C = G.parentNode !== t, w = !Rs(G.animated && G.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = Io(n, "top", "top") || Io(G, "top", "top"), D = E ? E.scrollTop : void 0;
2818
+ ws !== n && (S = i[T], Es = !1, Ds = !w && o.invertSwap || C), x = Zs(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Ds, ws === n);
2868
2819
  var O;
2869
2820
  if (x !== 0) {
2870
- var k = Fo(G);
2821
+ var k = zo(G);
2871
2822
  do
2872
2823
  k -= x, O = K.children[k];
2873
2824
  while (O && (V(O, "display") === "none" || O === q));
2874
2825
  }
2875
2826
  if (x === 0 || O === n) return _(!1);
2876
- bs = n, xs = x;
2827
+ ws = n, Ts = x;
2877
2828
  var A = n.nextElementSibling, j = !1;
2878
2829
  j = x === 1;
2879
- var ee = Hs(J, t, G, r, n, i, e, j);
2880
- if (ee !== !1) return (ee === 1 || ee === -1) && (j = ee === 1), Es = !0, setTimeout(Ws, 30), g(), j && !A ? t.appendChild(G) : n.parentNode.insertBefore(G, j ? A : n), E && Wo(E, 0, D - E.scrollTop), K = G.parentNode, S !== void 0 && !Cs && (ws = Math.abs(S - H(n)[T])), v(), _(!0);
2830
+ var M = Ks(J, t, G, r, n, i, e, j);
2831
+ if (M !== !1) return (M === 1 || M === -1) && (j = M === 1), As = !0, setTimeout(Js, 30), g(), j && !A ? t.appendChild(G) : n.parentNode.insertBefore(G, j ? A : n), E && Jo(E, 0, D - E.scrollTop), K = G.parentNode, S !== void 0 && !Ds && (Os = Math.abs(S - H(n)[T])), v(), _(!0);
2881
2832
  }
2882
2833
  if (t.contains(G)) return _(!1);
2883
2834
  }
@@ -2885,7 +2836,7 @@ Q.prototype = {
2885
2836
  },
2886
2837
  _ignoreWhileAnimating: null,
2887
2838
  _offMoveEvents: function() {
2888
- B(document, "mousemove", this._onTouchMove), B(document, "touchmove", this._onTouchMove), B(document, "pointermove", this._onTouchMove), B(document, "dragover", zs), B(document, "mousemove", zs), B(document, "touchmove", zs);
2839
+ B(document, "mousemove", this._onTouchMove), B(document, "touchmove", this._onTouchMove), B(document, "pointermove", this._onTouchMove), B(document, "dragover", Us), B(document, "mousemove", Us), B(document, "touchmove", Us);
2889
2840
  },
2890
2841
  _offUpEvents: function() {
2891
2842
  var e = this.el.ownerDocument;
@@ -2893,14 +2844,14 @@ Q.prototype = {
2893
2844
  },
2894
2845
  _onDrop: function(e) {
2895
2846
  var t = this.el, n = this.options;
2896
- os = Fo(G), cs = Fo(G, n.draggable), U("drop", this, { evt: e }), K = G && G.parentNode, os = Fo(G), cs = Fo(G, n.draggable), Q.eventCanceled || (us = !1, Cs = !1, Ss = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Qs(this.cloneId), Qs(this._dragStartId), this.nativeDraggable && (B(document, "drop", this), B(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), bo && V(document.body, "user-select", ""), V(G, "transform", ""), e && (ys && (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), Us(G), G.style["will-change"] = "", ys && !us && Oo(G, X ? X.options.ghostClass : this.options.ghostClass, !1), Oo(G, this.options.chosenClass, !1), W({
2847
+ us = zo(G), fs = zo(G, n.draggable), U("drop", this, { evt: e }), K = G && G.parentNode, us = zo(G), fs = zo(G, n.draggable), Q.eventCanceled || (ms = !1, Ds = !1, Es = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), nc(this.cloneId), nc(this._dragStartId), this.nativeDraggable && (B(document, "drop", this), B(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), wo && V(document.body, "user-select", ""), V(G, "transform", ""), e && (Cs && (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), qs(G), G.style["will-change"] = "", Cs && !ms && Mo(G, X ? X.options.ghostClass : this.options.ghostClass, !1), Mo(G, this.options.chosenClass, !1), W({
2897
2848
  sortable: this,
2898
2849
  name: "unchoose",
2899
2850
  toEl: K,
2900
2851
  newIndex: null,
2901
2852
  newDraggableIndex: null,
2902
2853
  originalEvent: e
2903
- }), J === K ? os !== as && os >= 0 && (W({
2854
+ }), J === K ? us !== ls && us >= 0 && (W({
2904
2855
  sortable: this,
2905
2856
  name: "update",
2906
2857
  toEl: K,
@@ -2910,7 +2861,7 @@ Q.prototype = {
2910
2861
  name: "sort",
2911
2862
  toEl: K,
2912
2863
  originalEvent: e
2913
- })) : (os >= 0 && (W({
2864
+ })) : (us >= 0 && (W({
2914
2865
  rootEl: K,
2915
2866
  name: "add",
2916
2867
  toEl: K,
@@ -2932,7 +2883,7 @@ Q.prototype = {
2932
2883
  name: "sort",
2933
2884
  toEl: K,
2934
2885
  originalEvent: e
2935
- })), X && X.save()), Q.active && ((os == null || os === -1) && (os = as, cs = ss), W({
2886
+ })), X && X.save()), Q.active && ((us == null || us === -1) && (us = ls, fs = ds), W({
2936
2887
  sortable: this,
2937
2888
  name: "end",
2938
2889
  toEl: K,
@@ -2940,9 +2891,9 @@ Q.prototype = {
2940
2891
  }), this.save())))), this._nulling();
2941
2892
  },
2942
2893
  _nulling: function() {
2943
- U("nulling", this), J = G = K = q = ns = Y = rs = is = ps = ms = ys = os = cs = as = ss = bs = xs = X = ls = Q.dragged = Q.ghost = Q.clone = Q.active = null, Ds.forEach(function(e) {
2894
+ U("nulling", this), J = G = K = q = os = Y = ss = cs = _s = vs = Cs = us = fs = ls = ds = ws = Ts = X = ps = Q.dragged = Q.ghost = Q.clone = Q.active = null, js.forEach(function(e) {
2944
2895
  e.checked = !0;
2945
- }), Ds.length = hs = gs = 0;
2896
+ }), js.length = ys = bs = 0;
2946
2897
  },
2947
2898
  handleEvent: function(e) {
2948
2899
  switch (e.type) {
@@ -2952,20 +2903,20 @@ Q.prototype = {
2952
2903
  break;
2953
2904
  case "dragenter":
2954
2905
  case "dragover":
2955
- G && (this._onDragOver(e), Vs(e));
2906
+ G && (this._onDragOver(e), Gs(e));
2956
2907
  break;
2957
2908
  case "selectstart": e.preventDefault();
2958
2909
  }
2959
2910
  },
2960
2911
  toArray: function() {
2961
- for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Eo(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || Ys(t));
2912
+ for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Ao(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || $s(t));
2962
2913
  return e;
2963
2914
  },
2964
2915
  sort: function(e, t) {
2965
2916
  var n = {}, r = this.el;
2966
2917
  this.toArray().forEach(function(e, t) {
2967
2918
  var i = r.children[t];
2968
- Eo(i, this.options.draggable, r, !1) && (n[e] = i);
2919
+ Ao(i, this.options.draggable, r, !1) && (n[e] = i);
2969
2920
  }, this), t && this.captureAnimationState(), e.forEach(function(e) {
2970
2921
  n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
2971
2922
  }), t && this.animateAll();
@@ -2975,122 +2926,122 @@ Q.prototype = {
2975
2926
  e && e.set && e.set(this);
2976
2927
  },
2977
2928
  closest: function(e, t) {
2978
- return Eo(e, t || this.options.draggable, this.el, !1);
2929
+ return Ao(e, t || this.options.draggable, this.el, !1);
2979
2930
  },
2980
2931
  option: function(e, t) {
2981
2932
  var n = this.options;
2982
2933
  if (t === void 0) return n[e];
2983
- var r = $o.modifyOption(this, e, t);
2984
- n[e] = r === void 0 ? t : r, e === "group" && Is(n);
2934
+ var r = rs.modifyOption(this, e, t);
2935
+ n[e] = r === void 0 ? t : r, e === "group" && Bs(n);
2985
2936
  },
2986
2937
  destroy: function() {
2987
2938
  U("destroy", this);
2988
2939
  var e = this.el;
2989
- e[qo] = 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) {
2940
+ e[Zo] = 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) {
2990
2941
  e.removeAttribute("draggable");
2991
- }), this._onDrop(), this._disableDelayedDragEvents(), fs.splice(fs.indexOf(this.el), 1), this.el = e = null;
2942
+ }), this._onDrop(), this._disableDelayedDragEvents(), gs.splice(gs.indexOf(this.el), 1), this.el = e = null;
2992
2943
  },
2993
2944
  _hideClone: function() {
2994
- if (!is) {
2945
+ if (!cs) {
2995
2946
  if (U("hideClone", this), Q.eventCanceled) return;
2996
- V(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), is = !0;
2947
+ V(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), cs = !0;
2997
2948
  }
2998
2949
  },
2999
2950
  _showClone: function(e) {
3000
2951
  if (e.lastPutMode !== "clone") this._hideClone();
3001
- else if (is) {
2952
+ else if (cs) {
3002
2953
  if (U("showClone", this), Q.eventCanceled) return;
3003
- G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) : ns ? J.insertBefore(Y, ns) : J.appendChild(Y), this.options.group.revertClone && this.animate(G, Y), V(Y, "display", ""), is = !1;
2954
+ G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) : os ? J.insertBefore(Y, os) : J.appendChild(Y), this.options.group.revertClone && this.animate(G, Y), V(Y, "display", ""), cs = !1;
3004
2955
  }
3005
2956
  }
3006
2957
  };
3007
- function Vs(e) {
2958
+ function Gs(e) {
3008
2959
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
3009
2960
  }
3010
- function Hs(e, t, n, r, i, a, o, s) {
3011
- var c, l = e[qo], u = l.options.onMove, d;
3012
- return window.CustomEvent && !_o && !vo ? c = new CustomEvent("move", {
2961
+ function Ks(e, t, n, r, i, a, o, s) {
2962
+ var c, l = e[Zo], u = l.options.onMove, d;
2963
+ return window.CustomEvent && !xo && !So ? c = new CustomEvent("move", {
3013
2964
  bubbles: !0,
3014
2965
  cancelable: !0
3015
2966
  }) : (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;
3016
2967
  }
3017
- function Us(e) {
2968
+ function qs(e) {
3018
2969
  e.draggable = !1;
3019
2970
  }
3020
- function Ws() {
3021
- Es = !1;
2971
+ function Js() {
2972
+ As = !1;
3022
2973
  }
3023
- function Gs(e, t, n) {
3024
- var r = H(No(n.el, 0, n.options, !0)), i = Ko(n.el, n.options, q), a = 10;
2974
+ function Ys(e, t, n) {
2975
+ var r = H(Lo(n.el, 0, n.options, !0)), i = Xo(n.el, n.options, q), a = 10;
3025
2976
  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;
3026
2977
  }
3027
- function Ks(e, t, n) {
3028
- var r = H(Po(n.el, n.options.draggable)), i = Ko(n.el, n.options, q), a = 10;
2978
+ function Xs(e, t, n) {
2979
+ var r = H(Ro(n.el, n.options.draggable)), i = Xo(n.el, n.options, q), a = 10;
3029
2980
  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;
3030
2981
  }
3031
- function qs(e, t, n, r, i, a, o, s) {
2982
+ function Zs(e, t, n, r, i, a, o, s) {
3032
2983
  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;
3033
2984
  if (!o) {
3034
- if (s && ws < l * i) {
3035
- if (!Ss && (xs === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Ss = !0), Ss) f = !0;
3036
- else if (xs === 1 ? c < u + ws : c > d - ws) return -xs;
3037
- } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return Js(t);
2985
+ if (s && Os < l * i) {
2986
+ if (!Es && (Ts === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Es = !0), Es) f = !0;
2987
+ else if (Ts === 1 ? c < u + Os : c > d - Os) return -Ts;
2988
+ } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return Qs(t);
3038
2989
  }
3039
2990
  return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
3040
2991
  }
3041
- function Js(e) {
3042
- return Fo(G) < Fo(e) ? 1 : -1;
2992
+ function Qs(e) {
2993
+ return zo(G) < zo(e) ? 1 : -1;
3043
2994
  }
3044
- function Ys(e) {
2995
+ function $s(e) {
3045
2996
  for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
3046
2997
  return r.toString(36);
3047
2998
  }
3048
- function Xs(e) {
3049
- Ds.length = 0;
2999
+ function ec(e) {
3000
+ js.length = 0;
3050
3001
  for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
3051
3002
  var r = t[n];
3052
- r.checked && Ds.push(r);
3003
+ r.checked && js.push(r);
3053
3004
  }
3054
3005
  }
3055
- function Zs(e) {
3006
+ function tc(e) {
3056
3007
  return setTimeout(e, 0);
3057
3008
  }
3058
- function Qs(e) {
3009
+ function nc(e) {
3059
3010
  return clearTimeout(e);
3060
3011
  }
3061
- Os && z(document, "touchmove", function(e) {
3062
- (Q.active || us) && e.cancelable && e.preventDefault();
3012
+ Ms && z(document, "touchmove", function(e) {
3013
+ (Q.active || ms) && e.cancelable && e.preventDefault();
3063
3014
  }), Q.utils = {
3064
3015
  on: z,
3065
3016
  off: B,
3066
3017
  css: V,
3067
- find: Ao,
3018
+ find: Po,
3068
3019
  is: function(e, t) {
3069
- return !!Eo(e, t, e, !1);
3070
- },
3071
- extend: zo,
3072
- throttle: Ho,
3073
- closest: Eo,
3074
- toggleClass: Oo,
3075
- clone: Go,
3076
- index: Fo,
3077
- nextTick: Zs,
3078
- cancelNextTick: Qs,
3079
- detectDirection: Ns,
3080
- getChild: No
3020
+ return !!Ao(e, t, e, !1);
3021
+ },
3022
+ extend: Uo,
3023
+ throttle: Ko,
3024
+ closest: Ao,
3025
+ toggleClass: Mo,
3026
+ clone: Yo,
3027
+ index: zo,
3028
+ nextTick: tc,
3029
+ cancelNextTick: nc,
3030
+ detectDirection: Ls,
3031
+ getChild: Lo
3081
3032
  }, Q.get = function(e) {
3082
- return e[qo];
3033
+ return e[Zo];
3083
3034
  }, Q.mount = function() {
3084
3035
  var e = [...arguments];
3085
3036
  e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
3086
3037
  if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
3087
- e.utils && (Q.utils = co(co({}, Q.utils), e.utils)), $o.mount(e);
3038
+ e.utils && (Q.utils = po(po({}, Q.utils), e.utils)), rs.mount(e);
3088
3039
  });
3089
3040
  }, Q.create = function(e, t) {
3090
3041
  return new Q(e, t);
3091
- }, Q.version = ho;
3092
- var $ = [], $s, ec, tc = !1, nc, rc, ic, ac;
3093
- function oc() {
3042
+ }, Q.version = yo;
3043
+ var $ = [], rc, ic, ac = !1, oc, sc, cc, lc;
3044
+ function uc() {
3094
3045
  function e() {
3095
3046
  for (var e in this.defaults = {
3096
3047
  scroll: !0,
@@ -3110,63 +3061,63 @@ function oc() {
3110
3061
  !this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
3111
3062
  },
3112
3063
  drop: function() {
3113
- this.sortable.nativeDraggable ? B(document, "dragover", this._handleAutoScroll) : (B(document, "pointermove", this._handleFallbackAutoScroll), B(document, "touchmove", this._handleFallbackAutoScroll), B(document, "mousemove", this._handleFallbackAutoScroll)), cc(), sc(), Uo();
3064
+ this.sortable.nativeDraggable ? B(document, "dragover", this._handleAutoScroll) : (B(document, "pointermove", this._handleFallbackAutoScroll), B(document, "touchmove", this._handleFallbackAutoScroll), B(document, "mousemove", this._handleFallbackAutoScroll)), fc(), dc(), qo();
3114
3065
  },
3115
3066
  nulling: function() {
3116
- ic = ec = $s = tc = ac = nc = rc = null, $.length = 0;
3067
+ cc = ic = rc = ac = lc = oc = sc = null, $.length = 0;
3117
3068
  },
3118
3069
  _handleFallbackAutoScroll: function(e) {
3119
3070
  this._handleAutoScroll(e, !0);
3120
3071
  },
3121
3072
  _handleAutoScroll: function(e, t) {
3122
3073
  var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
3123
- if (ic = e, t || this.options.forceAutoScrollFallback || vo || _o || bo) {
3124
- lc(e, this.options, a, t);
3125
- var o = Ro(a, !0);
3126
- tc && (!ac || r !== nc || i !== rc) && (ac && cc(), ac = setInterval(function() {
3127
- var a = Ro(document.elementFromPoint(r, i), !0);
3128
- a !== o && (o = a, sc()), lc(e, n.options, a, t);
3129
- }, 10), nc = r, rc = i);
3074
+ if (cc = e, t || this.options.forceAutoScrollFallback || So || xo || wo) {
3075
+ pc(e, this.options, a, t);
3076
+ var o = Ho(a, !0);
3077
+ ac && (!lc || r !== oc || i !== sc) && (lc && fc(), lc = setInterval(function() {
3078
+ var a = Ho(document.elementFromPoint(r, i), !0);
3079
+ a !== o && (o = a, dc()), pc(e, n.options, a, t);
3080
+ }, 10), oc = r, sc = i);
3130
3081
  } else {
3131
- if (!this.options.bubbleScroll || Ro(a, !0) === jo()) {
3132
- sc();
3082
+ if (!this.options.bubbleScroll || Ho(a, !0) === Fo()) {
3083
+ dc();
3133
3084
  return;
3134
3085
  }
3135
- lc(e, this.options, Ro(a, !1), !1);
3086
+ pc(e, this.options, Ho(a, !1), !1);
3136
3087
  }
3137
3088
  }
3138
- }, fo(e, {
3089
+ }, go(e, {
3139
3090
  pluginName: "scroll",
3140
3091
  initializeByDefault: !0
3141
3092
  });
3142
3093
  }
3143
- function sc() {
3094
+ function dc() {
3144
3095
  $.forEach(function(e) {
3145
3096
  clearInterval(e.pid);
3146
3097
  }), $ = [];
3147
3098
  }
3148
- function cc() {
3149
- clearInterval(ac);
3099
+ function fc() {
3100
+ clearInterval(lc);
3150
3101
  }
3151
- var lc = Ho(function(e, t, n, r) {
3102
+ var pc = Ko(function(e, t, n, r) {
3152
3103
  if (t.scroll) {
3153
- var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = jo(), l = !1, u;
3154
- ec !== n && (ec = n, sc(), $s = t.scroll, u = t.scrollFn, $s === !0 && ($s = Ro(n, !0)));
3155
- var d = 0, f = $s;
3104
+ var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = Fo(), l = !1, u;
3105
+ ic !== n && (ic = n, dc(), rc = t.scroll, u = t.scrollFn, rc === !0 && (rc = Ho(n, !0)));
3106
+ var d = 0, f = rc;
3156
3107
  do {
3157
3108
  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;
3158
3109
  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"));
3159
3110
  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);
3160
3111
  if (!$[d]) for (var A = 0; A <= d; A++) $[A] || ($[A] = {});
3161
3112
  ($[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() {
3162
- r && this.layer === 0 && Q.active._onTouchMove(ic);
3113
+ r && this.layer === 0 && Q.active._onTouchMove(cc);
3163
3114
  var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
3164
- typeof u == "function" && u.call(Q.dragged.parentNode[qo], n, t, e, ic, $[this.layer].el) !== "continue" || Wo($[this.layer].el, n, t);
3115
+ typeof u == "function" && u.call(Q.dragged.parentNode[Zo], n, t, e, cc, $[this.layer].el) !== "continue" || Jo($[this.layer].el, n, t);
3165
3116
  }.bind({ layer: d }), 24))), d++;
3166
- } while (t.bubbleScroll && f !== c && (f = Ro(f, !1)));
3167
- tc = l;
3117
+ } while (t.bubbleScroll && f !== c && (f = Ho(f, !1)));
3118
+ ac = l;
3168
3119
  }
3169
- }, 30), uc = function(e) {
3120
+ }, 30), mc = function(e) {
3170
3121
  var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
3171
3122
  if (t) {
3172
3123
  var c = n || i;
@@ -3178,8 +3129,8 @@ var lc = Ho(function(e, t, n, r) {
3178
3129
  }));
3179
3130
  }
3180
3131
  };
3181
- function dc() {}
3182
- dc.prototype = {
3132
+ function hc() {}
3133
+ hc.prototype = {
3183
3134
  startIndex: null,
3184
3135
  dragStart: function(e) {
3185
3136
  var t = e.oldDraggableIndex;
@@ -3188,67 +3139,67 @@ dc.prototype = {
3188
3139
  onSpill: function(e) {
3189
3140
  var t = e.dragEl, n = e.putSortable;
3190
3141
  this.sortable.captureAnimationState(), n && n.captureAnimationState();
3191
- var r = No(this.sortable.el, this.startIndex, this.options);
3142
+ var r = Lo(this.sortable.el, this.startIndex, this.options);
3192
3143
  r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
3193
3144
  },
3194
- drop: uc
3195
- }, fo(dc, { pluginName: "revertOnSpill" });
3196
- function fc() {}
3197
- fc.prototype = {
3145
+ drop: mc
3146
+ }, go(hc, { pluginName: "revertOnSpill" });
3147
+ function gc() {}
3148
+ gc.prototype = {
3198
3149
  onSpill: function(e) {
3199
3150
  var t = e.dragEl, n = e.putSortable || this.sortable;
3200
3151
  n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
3201
3152
  },
3202
- drop: uc
3203
- }, fo(fc, { pluginName: "removeOnSpill" }), Q.mount(new oc()), Q.mount(fc, dc);
3204
- function pc(e) {
3153
+ drop: mc
3154
+ }, go(gc, { pluginName: "removeOnSpill" }), Q.mount(new uc()), Q.mount(gc, hc);
3155
+ function _c(e) {
3205
3156
  return e == null ? e : JSON.parse(JSON.stringify(e));
3206
3157
  }
3207
- function mc(t) {
3158
+ function vc(t) {
3208
3159
  v() && e(t);
3209
3160
  }
3210
- function hc(e) {
3161
+ function yc(e) {
3211
3162
  v() ? D(e) : r(e);
3212
3163
  }
3213
- var gc = null, _c = null;
3214
- function vc(e = null, t = null) {
3215
- gc = e, _c = t;
3164
+ var bc = null, xc = null;
3165
+ function Sc(e = null, t = null) {
3166
+ bc = e, xc = t;
3216
3167
  }
3217
- function yc() {
3168
+ function Cc() {
3218
3169
  return {
3219
- data: gc,
3220
- clonedData: _c
3170
+ data: bc,
3171
+ clonedData: xc
3221
3172
  };
3222
3173
  }
3223
- var bc = Symbol("cloneElement");
3224
- function xc(...e) {
3174
+ var wc = Symbol("cloneElement");
3175
+ function Tc(...e) {
3225
3176
  let t = v()?.proxy, n = null, i = e[0], [, a, o] = e;
3226
3177
  Array.isArray(k(a)) || (o = a, a = null);
3227
- let s = null, { immediate: c = !0, clone: l = pc, forceFallback: u, fallbackOnBody: d, customUpdate: f } = k(o) ?? {};
3178
+ let s = null, { immediate: c = !0, clone: l = _c, forceFallback: u, fallbackOnBody: d, customUpdate: f } = k(o) ?? {};
3228
3179
  function p(e) {
3229
3180
  let { from: t, oldIndex: r, item: i } = e, o = Array.from(t.childNodes);
3230
3181
  n = u && !d ? o.slice(0, -1) : o;
3231
3182
  let s = k(k(a)?.[r]), c = l(s);
3232
- vc(s, c), i[bc] = c;
3183
+ Sc(s, c), i[wc] = c;
3233
3184
  }
3234
3185
  function m(e) {
3235
- let t = e.item[bc];
3236
- if (!Xa(t)) {
3237
- if ($a(e.item), A(a)) {
3186
+ let t = e.item[wc];
3187
+ if (!eo(t)) {
3188
+ if (ro(e.item), A(a)) {
3238
3189
  let n = [...k(a)];
3239
- a.value = Ya(n, e.newDraggableIndex, t);
3190
+ a.value = $a(n, e.newDraggableIndex, t);
3240
3191
  return;
3241
3192
  }
3242
- Ya(k(a), e.newDraggableIndex, t);
3193
+ $a(k(a), e.newDraggableIndex, t);
3243
3194
  }
3244
3195
  }
3245
3196
  function h(e) {
3246
3197
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: i, pullMode: o, clone: s } = e;
3247
- if (Qa(t, n, r), o === "clone") $a(s);
3198
+ if (no(t, n, r), o === "clone") ro(s);
3248
3199
  else if (A(a)) {
3249
3200
  let e = [...k(a)];
3250
- a.value = Ja(e, i);
3251
- } else Ja(k(a), i);
3201
+ a.value = Qa(e, i);
3202
+ } else Qa(k(a), i);
3252
3203
  }
3253
3204
  function g(e) {
3254
3205
  if (f) {
@@ -3256,10 +3207,10 @@ function xc(...e) {
3256
3207
  return;
3257
3208
  }
3258
3209
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: i, newDraggableIndex: o } = e;
3259
- if ($a(n), Qa(t, n, r), A(a)) {
3210
+ if (ro(n), no(t, n, r), A(a)) {
3260
3211
  let e = [...k(a)];
3261
- a.value = Ga(e, i, o);
3262
- } else Ga(k(a), i, o);
3212
+ a.value = Ya(e, i, o);
3213
+ } else Ya(k(a), i, o);
3263
3214
  }
3264
3215
  function _(e) {
3265
3216
  let { newIndex: t, oldIndex: i, from: a, to: o } = e, s = null, c = t === i && a === o;
@@ -3278,7 +3229,7 @@ function xc(...e) {
3278
3229
  n = null;
3279
3230
  }
3280
3231
  r(() => {
3281
- if (vc(), s) throw s;
3232
+ if (Sc(), s) throw s;
3282
3233
  });
3283
3234
  }
3284
3235
  let y = {
@@ -3290,19 +3241,19 @@ function xc(...e) {
3290
3241
  };
3291
3242
  function b(e) {
3292
3243
  let n = k(i);
3293
- return e ||= Za(n) ? eo(n, t?.$el) : n, e && !ro(e) && (e = e.$el), e || Wa("Root element not found"), e;
3244
+ return e ||= to(n) ? io(n, t?.$el) : n, e && !so(e) && (e = e.$el), e || Ja("Root element not found"), e;
3294
3245
  }
3295
3246
  function x() {
3296
- let e = k(o) ?? {}, { immediate: t, clone: n } = e, r = Va(e, ["immediate", "clone"]);
3297
- return io(r, (e, t) => {
3298
- ao(e) && (r[e] = (e, ...n) => (oo(e, yc()), t(e, ...n)));
3299
- }), no(a === null ? {} : y, r);
3247
+ let e = k(o) ?? {}, { immediate: t, clone: n } = e, r = Ga(e, ["immediate", "clone"]);
3248
+ return co(r, (e, t) => {
3249
+ lo(e) && (r[e] = (e, ...n) => (uo(e, Cc()), t(e, ...n)));
3250
+ }), oo(a === null ? {} : y, r);
3300
3251
  }
3301
3252
  let S = (e) => {
3302
3253
  e = b(e), s && C.destroy(), s = new Q(e, x());
3303
3254
  };
3304
3255
  I(() => o, () => {
3305
- s && io(x(), (e, t) => {
3256
+ s && co(x(), (e, t) => {
3306
3257
  s?.option(e, t);
3307
3258
  });
3308
3259
  }, { deep: !0 });
@@ -3315,15 +3266,15 @@ function xc(...e) {
3315
3266
  toArray: () => s?.toArray(),
3316
3267
  closest: (...e) => s?.closest(...e)
3317
3268
  };
3318
- return hc(() => {
3269
+ return yc(() => {
3319
3270
  c && S();
3320
- }), mc(C.destroy), Ba({
3271
+ }), vc(C.destroy), Wa({
3321
3272
  start: S,
3322
3273
  pause: () => C?.option("disabled", !0),
3323
3274
  resume: () => C?.option("disabled", !1)
3324
3275
  }, C);
3325
3276
  }
3326
- var Sc = [
3277
+ var Ec = [
3327
3278
  "update",
3328
3279
  "start",
3329
3280
  "add",
@@ -3336,7 +3287,7 @@ var Sc = [
3336
3287
  "clone",
3337
3288
  "move",
3338
3289
  "change"
3339
- ], Cc = [
3290
+ ], Dc = [
3340
3291
  "clone",
3341
3292
  "animation",
3342
3293
  "ghostClass",
@@ -3380,47 +3331,46 @@ var Sc = [
3380
3331
  "tag",
3381
3332
  "target",
3382
3333
  "customUpdate",
3383
- ...Sc.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
3384
- ], wc = F({
3334
+ ...Ec.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
3335
+ ], Oc = F({
3385
3336
  name: "VueDraggable",
3386
3337
  model: {
3387
3338
  prop: "modelValue",
3388
3339
  event: "update:modelValue"
3389
3340
  },
3390
- props: Cc,
3391
- emits: ["update:modelValue", ...Sc],
3341
+ props: Dc,
3342
+ emits: ["update:modelValue", ...Ec],
3392
3343
  setup(e, { slots: t, emit: n, expose: r, attrs: i }) {
3393
- let a = Sc.reduce((e, t) => {
3344
+ let a = Ec.reduce((e, t) => {
3394
3345
  let r = `on${t.replace(/^\S/, (e) => e.toUpperCase())}`;
3395
3346
  return e[r] = (...e) => n(t, ...e), e;
3396
3347
  }, {}), o = y(() => {
3397
- let t = ee(e), { modelValue: n } = t, r = Va(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
3348
+ let t = M(e), { modelValue: n } = t, r = Ga(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
3398
3349
  let r = k(n);
3399
3350
  return r !== void 0 && (e[t] = r), e;
3400
3351
  }, {});
3401
- return Ba(Ba({}, a), qa(Ba(Ba({}, i), o)));
3352
+ return Wa(Wa({}, a), Za(Wa(Wa({}, i), o)));
3402
3353
  }), s = y({
3403
3354
  get: () => e.modelValue,
3404
3355
  set: (e) => n("update:modelValue", e)
3405
- }), c = f(), l = m(xc(e.target || c, s, o));
3356
+ }), c = f(), l = m(Tc(e.target || c, s, o));
3406
3357
  return r(l), () => P(e.tag || "div", { ref: c }, (t?.default)?.call(t, l));
3407
3358
  }
3408
- }), Tc = {
3359
+ }), kc = {
3409
3360
  mounted: "mounted",
3410
3361
  unmounted: "unmounted"
3411
3362
  };
3412
- Tc.mounted, Tc.unmounted;
3413
- //#endregion
3414
- //#region src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
3415
- var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
3363
+ kc.mounted, kc.unmounted;
3364
+ // src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
3365
+ var Ac = { class: "tpl:relative tpl:w-full" }, jc = {
3416
3366
  key: 0,
3417
3367
  "data-testid": "hero-image-hint",
3418
3368
  class: "tpl:pointer-events-none tpl:absolute tpl:inset-x-0 tpl:bottom-full tpl:mb-2 tpl:flex tpl:justify-center tpl:text-xs tpl:text-[var(--tpl-chrome-text-dim)]"
3419
- }, Oc = {
3369
+ }, Mc = {
3420
3370
  key: 0,
3421
3371
  "data-testid": "section-drop-hint",
3422
3372
  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)]"
3423
- }, kc = /* @__PURE__ */ F({
3373
+ }, Nc = /* @__PURE__ */ F({
3424
3374
  __name: "SectionBlock",
3425
3375
  props: {
3426
3376
  block: {},
@@ -3428,13 +3378,13 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
3428
3378
  },
3429
3379
  setup(e) {
3430
3380
  let r = {
3431
- title: Da,
3432
- paragraph: da,
3433
- image: ia,
3434
- button: ri,
3435
- divider: Bi,
3436
- custom: Ri
3437
- }, i = e, { t: s } = En(), u = jt(ln, "SectionBlock"), d = n(cn, null), m = n(bn, null), h = n(pn, {}), _ = n(yn, null);
3381
+ title: ja,
3382
+ paragraph: ha,
3383
+ image: ca,
3384
+ button: si,
3385
+ divider: Wi,
3386
+ custom: Hi
3387
+ }, i = e, { t: s } = kn(), u = Pt(fn, "SectionBlock"), d = n(dn, null), m = n(Cn, null), h = n(gn, {}), _ = n(Sn, null);
3438
3388
  function v(e) {
3439
3389
  let t = h.savedBlocks;
3440
3390
  t?.isPicking.value ? t.togglePick(i.block.id) : u.selectBlock(e);
@@ -3462,16 +3412,16 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
3462
3412
  function A(e) {
3463
3413
  return _?.value === !1 || !d?.isHidden(e);
3464
3414
  }
3465
- function ee(e) {
3415
+ function M(e) {
3466
3416
  return !D(e).some((e) => A(e.id));
3467
3417
  }
3468
- let N = f(null);
3418
+ let ee = f(null);
3469
3419
  function P(e) {
3470
- return u.state.previewMode ? !1 : ee(e) ? !0 : N.value === e && D(e).filter((e) => A(e.id)).length <= 1;
3420
+ return u.state.previewMode ? !1 : M(e) ? !0 : ee.value === e && D(e).filter((e) => A(e.id)).length <= 1;
3471
3421
  }
3472
3422
  let F = y(() => {
3473
3423
  if (u.state.previewMode) return !1;
3474
- let e = Ve(i.block);
3424
+ let e = Qe(i.block);
3475
3425
  return e !== null && !e.applied && e.reason === "image";
3476
3426
  });
3477
3427
  function I(e) {
@@ -3486,7 +3436,7 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
3486
3436
  r[e] = n, u.updateBlock(i.block.id, { children: r });
3487
3437
  }
3488
3438
  function re(e) {
3489
- return Vr(e, m, r);
3439
+ return Gr(e, m, r);
3490
3440
  }
3491
3441
  function ie(e, t) {
3492
3442
  e.type === "custom" && u.updateBlock(e.id, {
@@ -3494,16 +3444,16 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
3494
3444
  dataSourceFetched: t.dataSourceFetched
3495
3445
  });
3496
3446
  }
3497
- return (n, r) => (T(), S("div", Ec, [F.value ? (T(), S("div", Dc, [O("span", null, c(k(s).section.heroAddImage), 1)])) : b("", !0), O("div", { class: t(["tpl:flex tpl:gap-0", { "tpl:flex-col": w.value }]) }, [(T(!0), S(j, null, l(C.value, (n, i) => (T(), S("div", {
3447
+ return (n, r) => (T(), S("div", Ac, [F.value ? (T(), S("div", jc, [O("span", null, c(k(s).section.heroAddImage), 1)])) : b("", !0), O("div", { class: t(["tpl:flex tpl:gap-0", { "tpl:flex-col": w.value }]) }, [(T(!0), S(j, null, l(C.value, (n, i) => (T(), S("div", {
3498
3448
  key: i,
3499
3449
  class: t(["tpl:relative tpl:flex tpl:flex-col tpl:rounded", I(i) ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
3500
3450
  style: E({ width: w.value ? "100%" : x.value[i] })
3501
- }, [g(k(wc), {
3451
+ }, [g(k(Oc), {
3502
3452
  "model-value": D(i),
3503
3453
  group: {
3504
3454
  name: "blocks",
3505
3455
  pull: !0,
3506
- put: (e, t, n) => k(Pa)(n)
3456
+ put: (e, t, n) => k(Ra)(n)
3507
3457
  },
3508
3458
  animation: 150,
3509
3459
  "ghost-class": "tpl-ghost",
@@ -3517,11 +3467,11 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
3517
3467
  "tpl:min-h-[60px]": P(i),
3518
3468
  "tpl:min-h-[34px]": L(i)
3519
3469
  }]),
3520
- onStart: (e) => N.value = i,
3521
- onEnd: r[0] ||= (e) => N.value = null,
3470
+ onStart: (e) => ee.value = i,
3471
+ onEnd: r[0] ||= (e) => ee.value = null,
3522
3472
  "onUpdate:modelValue": (e) => ne(i, e)
3523
3473
  }, {
3524
- default: p(() => [(T(!0), S(j, null, l(D(i), (t) => a((T(), S("div", { key: t.id }, [g(Ta, {
3474
+ default: p(() => [(T(!0), S(j, null, l(D(i), (t) => a((T(), S("div", { key: t.id }, [g(ka, {
3525
3475
  block: t,
3526
3476
  "is-selected": k(u).state.selectedBlockId === t.id,
3527
3477
  viewport: e.viewport,
@@ -3529,7 +3479,7 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
3529
3479
  nested: "",
3530
3480
  onSelect: (e) => v(t.id)
3531
3481
  }, {
3532
- default: p(() => [(T(), M(o(re(t)), {
3482
+ default: p(() => [(T(), N(o(re(t)), {
3533
3483
  block: t,
3534
3484
  viewport: e.viewport,
3535
3485
  onFetchData: (e) => ie(t, e),
@@ -3555,14 +3505,14 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
3555
3505
  "class",
3556
3506
  "onStart",
3557
3507
  "onUpdate:modelValue"
3558
- ]), I(i) ? (T(), S("div", Oc, [O("span", null, c(k(s).section.dropHere), 1)])) : b("", !0)], 6))), 128))], 2)]));
3508
+ ]), I(i) ? (T(), S("div", Mc, [O("span", null, c(k(s).section.dropHere), 1)])) : b("", !0)], 6))), 128))], 2)]));
3559
3509
  }
3560
- }), Ac = ["width", "height"], jc = [
3510
+ }), Pc = ["width", "height"], Fc = [
3561
3511
  "d",
3562
3512
  "stroke",
3563
3513
  "stroke-opacity",
3564
3514
  "stroke-width"
3565
- ], Mc = ["d", "fill"], Nc = /* @__PURE__ */ F({
3515
+ ], Ic = ["d", "fill"], Lc = /* @__PURE__ */ F({
3566
3516
  __name: "SocialIconSvg",
3567
3517
  props: {
3568
3518
  platform: {},
@@ -3571,7 +3521,7 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
3571
3521
  iconSize: {}
3572
3522
  },
3573
3523
  setup(e) {
3574
- let t = e, n = y(() => vt[t.platform]), r = y(() => yt[t.iconSize]), i = y(() => $e(t.platform, t.iconTone)), a = y(() => Qe(t.iconStyle, t.iconTone)), o = y(() => {
3524
+ let t = e, n = y(() => xt[t.platform]), r = y(() => St[t.iconSize]), i = y(() => se(t.platform, t.iconTone)), a = y(() => Ee(t.iconStyle, t.iconTone)), o = y(() => {
3575
3525
  let e = {
3576
3526
  display: "inline-flex",
3577
3527
  alignItems: "center",
@@ -3609,7 +3559,7 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
3609
3559
  };
3610
3560
  default: return e;
3611
3561
  }
3612
- }), s = y(() => Oe(t.iconStyle)), c = y(() => Math.floor(r.value * s.value));
3562
+ }), s = y(() => et(t.iconStyle)), c = y(() => Math.floor(r.value * s.value));
3613
3563
  function l(e) {
3614
3564
  let t = `${e.width / 2 * r.value / 24}px`, n = Math.round(e.opacity * 255).toString(16).padStart(2, "0"), i = `${e.color}${n}`;
3615
3565
  return `0 0 0 ${t} ${i}, inset 0 0 0 ${t} ${i}`;
@@ -3630,28 +3580,28 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
3630
3580
  "stroke-opacity": a.value.opacity,
3631
3581
  "stroke-width": a.value.width / s.value,
3632
3582
  "stroke-linejoin": "round"
3633
- }, null, 8, jc)) : b("", !0), O("path", {
3583
+ }, null, 8, Fc)) : b("", !0), O("path", {
3634
3584
  d: n.value.path,
3635
3585
  fill: u.value
3636
- }, null, 8, Mc)], 8, Ac))], 4));
3586
+ }, null, 8, Ic)], 8, Pc))], 4));
3637
3587
  }
3638
- }), Pc = { class: "tpl:w-full" }, Fc = ["href"], Ic = {
3588
+ }), Rc = { class: "tpl:w-full" }, zc = ["href"], Bc = {
3639
3589
  key: 1,
3640
3590
  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)]"
3641
- }, Lc = /* @__PURE__ */ F({
3591
+ }, Vc = /* @__PURE__ */ F({
3642
3592
  __name: "SocialIconsBlock",
3643
3593
  props: {
3644
3594
  block: {},
3645
3595
  viewport: {}
3646
3596
  },
3647
3597
  setup(e) {
3648
- let t = e, { t: n } = En(), r = y(() => ({
3598
+ let t = e, { t: n } = kn(), r = y(() => ({
3649
3599
  display: "flex",
3650
3600
  flexWrap: "wrap",
3651
3601
  gap: `${t.block.spacing}px`,
3652
3602
  justifyContent: t.block.align === "left" ? "flex-start" : t.block.align === "right" ? "flex-end" : "center"
3653
3603
  })), i = y(() => t.block.icons.length > 0);
3654
- return (t, a) => (T(), S("div", Pc, [i.value ? (T(), S("div", {
3604
+ return (t, a) => (T(), S("div", Rc, [i.value ? (T(), S("div", {
3655
3605
  key: 0,
3656
3606
  style: E(r.value)
3657
3607
  }, [(T(!0), S(j, null, l(e.block.icons, (t) => (T(), S("a", {
@@ -3659,7 +3609,7 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
3659
3609
  href: t.url || "#",
3660
3610
  class: "tpl:cursor-default",
3661
3611
  onClick: a[0] ||= L(() => {}, ["prevent"])
3662
- }, [g(Nc, {
3612
+ }, [g(Lc, {
3663
3613
  platform: t.platform,
3664
3614
  "icon-style": e.block.iconStyle,
3665
3615
  "icon-tone": e.block.iconTone,
@@ -3669,44 +3619,44 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
3669
3619
  "icon-style",
3670
3620
  "icon-tone",
3671
3621
  "icon-size"
3672
- ])], 8, Fc))), 128))], 4)) : (T(), S("div", Ic, [g(k(bt), { size: 16 }), O("span", null, c(k(n).social.addIcons), 1)]))]));
3622
+ ])], 8, zc))), 128))], 4)) : (T(), S("div", Bc, [g(k(Ct), { size: 16 }), O("span", null, c(k(n).social.addIcons), 1)]))]));
3673
3623
  }
3674
- }), Rc = { class: "tpl:w-full" }, zc = {
3624
+ }), Hc = { class: "tpl:w-full" }, Uc = {
3675
3625
  key: 0,
3676
3626
  class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
3677
3627
  style: {
3678
3628
  "background-color": "var(--tpl-bg-hover)",
3679
3629
  color: "var(--tpl-text-dim)"
3680
3630
  }
3681
- }, Bc = /* @__PURE__ */ F({
3631
+ }, Wc = /* @__PURE__ */ F({
3682
3632
  __name: "SpacerBlock",
3683
3633
  props: {
3684
3634
  block: {},
3685
3635
  viewport: {}
3686
3636
  },
3687
3637
  setup(e) {
3688
- let n = e, r = jt(ln, "SpacerBlock"), i = y(() => ({
3638
+ let n = e, r = Pt(fn, "SpacerBlock"), i = y(() => ({
3689
3639
  height: `${n.block.height}px`,
3690
3640
  minHeight: `${n.block.height}px`,
3691
3641
  ...r.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
3692
3642
  }));
3693
- return (n, a) => (T(), S("div", Rc, [O("div", {
3643
+ return (n, a) => (T(), S("div", Hc, [O("div", {
3694
3644
  style: E(i.value),
3695
3645
  class: t(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:box-border tpl:border-y tpl:border-x-0 tpl:border-dashed": !k(r).state.previewMode }])
3696
- }, [k(r).state.previewMode ? b("", !0) : (T(), S("span", zc, c(e.block.height) + "px ", 1))], 6)]));
3646
+ }, [k(r).state.previewMode ? b("", !0) : (T(), S("span", Uc, c(e.block.height) + "px ", 1))], 6)]));
3697
3647
  }
3698
- }), Vc = { class: "tpl:w-full" }, Hc = { key: 0 }, Uc = [
3648
+ }), Gc = { class: "tpl:w-full" }, Kc = { key: 0 }, qc = [
3699
3649
  "aria-label",
3700
3650
  "data-placeholder",
3701
3651
  "onBlur"
3702
- ], Wc = [
3652
+ ], Jc = [
3703
3653
  "aria-label",
3704
3654
  "data-placeholder",
3705
3655
  "onBlur"
3706
- ], Gc = {
3656
+ ], Yc = {
3707
3657
  key: 1,
3708
3658
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
3709
- }, Kc = /*#__PURE__*/ Bn(/* @__PURE__ */ F({
3659
+ }, Xc = /*#__PURE__*/ Gn(/* @__PURE__ */ F({
3710
3660
  __name: "TableBlock",
3711
3661
  props: {
3712
3662
  block: {},
@@ -3720,7 +3670,7 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
3720
3670
  updated(e, t) {
3721
3671
  t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
3722
3672
  }
3723
- }, n = e, { t: r } = En(), i = jt(ln, "TableBlock"), o = jt(xn, "TableBlock"), s = y(() => n.block.rows.length > 0), u = y(() => {
3673
+ }, n = e, { t: r } = kn(), i = Pt(fn, "TableBlock"), o = Pt(wn, "TableBlock"), s = y(() => n.block.rows.length > 0), u = y(() => {
3724
3674
  let e = {
3725
3675
  width: "100%",
3726
3676
  borderCollapse: "collapse",
@@ -3751,11 +3701,11 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
3751
3701
  } : n);
3752
3702
  i.updateBlock(n.block.id, { rows: o });
3753
3703
  }
3754
- return (e, n) => (T(), S("div", Vc, [s.value ? (T(), S("table", {
3704
+ return (e, n) => (T(), S("div", Gc, [s.value ? (T(), S("table", {
3755
3705
  key: 0,
3756
3706
  style: E(u.value),
3757
3707
  class: "tpl-table-editable"
3758
- }, [p.value ? (T(), S("thead", Hc, [O("tr", null, [(T(!0), S(j, null, l(p.value.cells, (e) => a((T(), S("th", {
3708
+ }, [p.value ? (T(), S("thead", Kc, [O("tr", null, [(T(!0), S(j, null, l(p.value.cells, (e) => a((T(), S("th", {
3759
3709
  key: e.id,
3760
3710
  style: E(f.value),
3761
3711
  "aria-label": k(r).table.cellPlaceholder,
@@ -3764,7 +3714,7 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
3764
3714
  onBlur: (t) => _(p.value.id, e.id, t),
3765
3715
  onKeydown: n[0] ||= ne(L((e) => e.target.blur(), ["prevent"]), ["enter"]),
3766
3716
  onClick: L(h, ["stop"])
3767
- }, null, 44, Uc)), [[t, e.content]])), 128))])])) : b("", !0), O("tbody", null, [(T(!0), S(j, null, l(m.value, (e) => (T(), S("tr", { key: e.id }, [(T(!0), S(j, null, l(e.cells, (i) => a((T(), S("td", {
3717
+ }, null, 44, qc)), [[t, e.content]])), 128))])])) : b("", !0), O("tbody", null, [(T(!0), S(j, null, l(m.value, (e) => (T(), S("tr", { key: e.id }, [(T(!0), S(j, null, l(e.cells, (i) => a((T(), S("td", {
3768
3718
  key: i.id,
3769
3719
  style: E(d.value),
3770
3720
  "aria-label": k(r).table.cellPlaceholder,
@@ -3773,9 +3723,9 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
3773
3723
  onBlur: (t) => _(e.id, i.id, t),
3774
3724
  onKeydown: n[1] ||= ne(L((e) => e.target.blur(), ["prevent"]), ["enter"]),
3775
3725
  onClick: L(h, ["stop"])
3776
- }, null, 44, Wc)), [[t, i.content]])), 128))]))), 128))])], 4)) : (T(), S("div", Gc, [g(k(dt), { size: 16 }), O("span", null, c(k(r).table.empty), 1)]))]));
3726
+ }, null, 44, Jc)), [[t, i.content]])), 128))]))), 128))])], 4)) : (T(), S("div", Yc, [g(k(mt), { size: 16 }), O("span", null, c(k(r).table.empty), 1)]))]));
3777
3727
  }
3778
- }), [["__scopeId", "data-v-6751d456"]]), qc = /* @__PURE__ */ F({
3728
+ }), [["__scopeId", "data-v-6751d456"]]), Zc = /* @__PURE__ */ F({
3779
3729
  __name: "VideoPlayButton",
3780
3730
  props: { hoverEffect: {
3781
3731
  type: Boolean,
@@ -3791,9 +3741,8 @@ var Ec = { class: "tpl:relative tpl:w-full" }, Dc = {
3791
3741
  }, [O("polygon", { points: "5,3 19,12 5,21" })])], -1)]], 2));
3792
3742
  }
3793
3743
  });
3794
- //#endregion
3795
- //#region src/utils/videoThumbnail.ts
3796
- function Jc(e) {
3744
+ // src/utils/videoThumbnail.ts
3745
+ function Qc(e) {
3797
3746
  if (!e) return {
3798
3747
  platform: "unknown",
3799
3748
  videoId: null,
@@ -3825,25 +3774,24 @@ function Jc(e) {
3825
3774
  thumbnailUrl: null
3826
3775
  };
3827
3776
  }
3828
- function Yc(e, t) {
3829
- return t || Jc(e).thumbnailUrl;
3777
+ function $c(e, t) {
3778
+ return t || Qc(e).thumbnailUrl;
3830
3779
  }
3831
- //#endregion
3832
- //#region src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
3833
- var Xc = ["src", "alt"], Zc = {
3780
+ // src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
3781
+ var el = ["src", "alt"], tl = {
3834
3782
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
3835
3783
  style: { opacity: "0.7" }
3836
- }, Qc = ["href"], $c = ["src", "alt"], el = ["src", "alt"], tl = {
3784
+ }, nl = ["href"], rl = ["src", "alt"], il = ["src", "alt"], al = {
3837
3785
  key: 3,
3838
3786
  class: "tpl:flex tpl:box-border tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
3839
- }, nl = /* @__PURE__ */ F({
3787
+ }, ol = /* @__PURE__ */ F({
3840
3788
  __name: "VideoBlock",
3841
3789
  props: {
3842
3790
  block: {},
3843
3791
  viewport: {}
3844
3792
  },
3845
3793
  setup(e) {
3846
- let t = e, { t: n } = En(), { syntax: r } = Hn(), i = y(() => Ze(t.block.url, r) || Ze(t.block.thumbnailUrl, r)), a = st(() => i.value ? void 0 : t.block.thumbnailUrl || void 0), o = st(() => i.value ? t.block.placeholderUrl : void 0), s = y(() => i.value ? null : t.block.thumbnailUrl ? a.value ?? null : Yc(t.block.url)), l = y(() => ({ textAlign: t.block.align })), u = y(() => {
3794
+ let t = e, { t: n } = kn(), { syntax: r } = qn(), i = y(() => Ce(t.block.url, r) || Ce(t.block.thumbnailUrl, r)), a = ut(() => i.value ? void 0 : t.block.thumbnailUrl || void 0), o = ut(() => i.value ? t.block.placeholderUrl : void 0), s = y(() => i.value ? null : t.block.thumbnailUrl ? a.value ?? null : $c(t.block.url)), l = y(() => ({ textAlign: t.block.align })), u = y(() => {
3847
3795
  let e = t.block.align;
3848
3796
  return {
3849
3797
  maxWidth: "100%",
@@ -3853,7 +3801,7 @@ var Xc = ["src", "alt"], Zc = {
3853
3801
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
3854
3802
  marginRight: e === "center" ? "auto" : void 0
3855
3803
  };
3856
- }), d = y(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), f = y(() => Ze(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
3804
+ }), d = y(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), f = y(() => Ce(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
3857
3805
  return (t, r) => (T(), S("div", {
3858
3806
  class: "tpl:w-full",
3859
3807
  style: E(l.value)
@@ -3866,16 +3814,16 @@ var Xc = ["src", "alt"], Zc = {
3866
3814
  src: k(o),
3867
3815
  alt: e.block.alt,
3868
3816
  style: E(d.value)
3869
- }, null, 12, Xc), g(qc)], 4)) : i.value ? (T(), S("div", {
3817
+ }, null, 12, el), g(Zc)], 4)) : i.value ? (T(), S("div", {
3870
3818
  key: 1,
3871
3819
  class: "tpl:relative tpl:!flex tpl:box-border tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
3872
3820
  style: E([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, u.value])
3873
- }, [g(k(ui), {
3821
+ }, [g(k(mi), {
3874
3822
  size: 36,
3875
3823
  "stroke-width": 1.5,
3876
3824
  class: "tpl:text-[var(--tpl-primary)]",
3877
3825
  style: { opacity: "0.5" }
3878
- }), O("span", Zc, [g(ti, { text: f.value }, null, 8, ["text"])])], 4)) : s.value ? (T(), S(j, { key: 2 }, [e.block.url ? (T(), S("a", {
3826
+ }), O("span", tl, [g(ai, { text: f.value }, null, 8, ["text"])])], 4)) : s.value ? (T(), S(j, { key: 2 }, [e.block.url ? (T(), S("a", {
3879
3827
  key: 0,
3880
3828
  href: e.block.url,
3881
3829
  target: "_blank",
@@ -3888,7 +3836,7 @@ var Xc = ["src", "alt"], Zc = {
3888
3836
  src: s.value,
3889
3837
  alt: e.block.alt,
3890
3838
  style: E(d.value)
3891
- }, null, 12, $c), g(qc, { "hover-effect": "" })], 12, Qc)) : (T(), S("div", {
3839
+ }, null, 12, rl), g(Zc, { "hover-effect": "" })], 12, nl)) : (T(), S("div", {
3892
3840
  key: 1,
3893
3841
  class: "tpl:relative tpl:inline-block",
3894
3842
  style: E(u.value)
@@ -3897,53 +3845,53 @@ var Xc = ["src", "alt"], Zc = {
3897
3845
  src: s.value,
3898
3846
  alt: e.block.alt,
3899
3847
  style: E(d.value)
3900
- }, null, 12, el), g(qc)], 4))], 64)) : (T(), S("div", tl, [g(k(ui), {
3848
+ }, null, 12, il), g(Zc)], 4))], 64)) : (T(), S("div", al, [g(k(mi), {
3901
3849
  size: 40,
3902
3850
  "stroke-width": 1.5,
3903
3851
  class: "tpl:text-[var(--tpl-border-light)]"
3904
3852
  }), O("span", null, c(k(n).video.addVideo), 1)]))], 4));
3905
3853
  }
3906
- }), rl = {
3907
- section: kc,
3908
- title: Da,
3909
- paragraph: da,
3910
- image: ia,
3911
- button: ri,
3912
- divider: Bi,
3913
- video: nl,
3914
- social: Lc,
3915
- menu: ca,
3916
- table: Kc,
3917
- spacer: Bc,
3918
- html: Ki,
3919
- countdown: N(() => import("./CountdownBlock-DR4Xm2-T.js"))
3854
+ }), sl = {
3855
+ section: Nc,
3856
+ title: ja,
3857
+ paragraph: ha,
3858
+ image: ca,
3859
+ button: si,
3860
+ divider: Wi,
3861
+ video: ol,
3862
+ social: Vc,
3863
+ menu: fa,
3864
+ table: Xc,
3865
+ spacer: Wc,
3866
+ html: Xi,
3867
+ countdown: ee(() => import("./CountdownBlock-BT3ZTH1F.js"))
3920
3868
  };
3921
- function il(e) {
3922
- let { editor: t, config: n, translations: r, fontsManager: a } = e, { t: o, format: c } = En(r), l = y(() => ue(ue(ue(gr(r), Ir(t.content.value.settings?.locale)), Ne(t.content.value.settings) === "rtl" ? {
3869
+ function cl(e) {
3870
+ let { editor: t, config: n, translations: r, fontsManager: a } = e, { t: o, format: c } = kn(r), l = y(() => Oe(Oe(Oe(br(r), Br(t.content.value.settings?.locale)), Re(t.content.value.settings) === "rtl" ? {
3923
3871
  title: { textAlign: "right" },
3924
3872
  table: { textAlign: "right" }
3925
3873
  } : {}), n.blockDefaults ?? {}));
3926
3874
  t.setUiTheme(n.uiTheme ?? "auto");
3927
- let { resolvedTheme: u } = ir(y(() => t.state.uiTheme)), d = f(n.theme ?? {}), { themeStyles: p } = or({
3875
+ let { resolvedTheme: u } = cr(y(() => t.state.uiTheme)), d = f(n.theme ?? {}), { themeStyles: p } = ur({
3928
3876
  themeOverrides: d,
3929
3877
  resolvedTheme: u,
3930
3878
  extraStyles: () => ({
3931
3879
  "--tpl-drop-text": `"${r.canvas.dropHere}"`,
3932
3880
  ...e.themeExtraStyles?.()
3933
3881
  })
3934
- }), m = e.history ?? tt({
3882
+ }), m = e.history ?? it({
3935
3883
  content: t.content,
3936
3884
  setContent: (e, n) => t.setContent(e, n)
3937
3885
  });
3938
- e.history || ut(t, m);
3939
- let g = ot({
3886
+ e.history || pt(t, m);
3887
+ let g = lt({
3940
3888
  addBlock: t.addBlock,
3941
3889
  removeBlock: t.removeBlock,
3942
3890
  updateBlock: t.updateBlock,
3943
3891
  selectBlock: t.selectBlock,
3944
3892
  findBlockLocation: t.findBlockLocation,
3945
3893
  blockDefaults: () => l.value
3946
- }), _ = it(t), v = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? at({
3894
+ }), _ = st(t), v = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? ct({
3947
3895
  content: t.content,
3948
3896
  isDirty: () => t.state.isDirty,
3949
3897
  ...e.autoSaveOptions
@@ -3951,30 +3899,30 @@ function il(e) {
3951
3899
  v && (b = I(m.isNavigating, (e) => {
3952
3900
  e ? v.pause() : v.resume();
3953
3901
  }));
3954
- let S = rr(t, {
3902
+ let S = sr(t, {
3955
3903
  t: o,
3956
3904
  format: c
3957
- }, n.customBlocks ?? []), C = kn(n.colors);
3905
+ }, n.customBlocks ?? []), C = Mn(n.colors);
3958
3906
  if (C.allowCustomIgnored && R.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), C.invalidPresets.length > 0 && R.warn(`config.colors.presets skipped invalid entries: ${C.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), C.allowCustom === !1) {
3959
- let e = hr(C.presets, n.blockDefaults, n.templateDefaults);
3907
+ let e = yr(C.presets, n.blockDefaults, n.templateDefaults);
3960
3908
  e.length > 0 && R.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.`);
3961
3909
  }
3962
- let w = jn(n.templateSettings);
3963
- for (let e of w.unknown) R.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${Mn.join(", ")}) — skipping it.`);
3964
- let T = sr();
3965
- fr(T, rl);
3910
+ let w = Pn(n.templateSettings);
3911
+ for (let e of w.unknown) R.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${Fn.join(", ")}) — skipping it.`);
3912
+ let T = dr();
3913
+ gr(T, sl);
3966
3914
  let E = /* @__PURE__ */ new Set();
3967
3915
  function D(e) {
3968
3916
  for (let t of e) {
3969
- T.registerCustom(t, Ri);
3970
- for (let e of Lr(t, C)) E.has(e.id) || (E.add(e.id), R.warn(e.message));
3917
+ T.registerCustom(t, Hi);
3918
+ for (let e of Vr(t, C)) E.has(e.id) || (E.add(e.id), R.warn(e.message));
3971
3919
  }
3972
3920
  }
3973
3921
  n.customBlocks?.length && D(n.customBlocks);
3974
- let O = Yn();
3922
+ let O = $n();
3975
3923
  if (i() && h(O.dispose), e.containerEl) {
3976
3924
  let t = e.containerEl;
3977
- Ot(document, "pointerdown", (e) => {
3925
+ jt(document, "pointerdown", (e) => {
3978
3926
  let n = t.value;
3979
3927
  n && (e.composedPath?.() ?? []).includes(n) && O.claim();
3980
3928
  }, { capture: !0 });
@@ -3984,7 +3932,7 @@ function il(e) {
3984
3932
  t ? t.save() : v?.flush();
3985
3933
  }
3986
3934
  function A(n) {
3987
- O.isActive() && zr(n, {
3935
+ O.isActive() && Ur(n, {
3988
3936
  history: m,
3989
3937
  selectBlock: (e) => t.selectBlock(e),
3990
3938
  getSelectedBlockId: () => t.state.selectedBlockId,
@@ -3995,50 +3943,50 @@ function il(e) {
3995
3943
  onCancelPick: () => e.capabilities?.savedBlocks?.cancelPicking()
3996
3944
  });
3997
3945
  }
3998
- Ot(document, "keydown", A);
3999
- let j = f(null), ee = e.editorRoot ?? document;
4000
- s(nn, ee), s(Nt, j), s(en, r), s(ln, t), s(wn, m), s(rn, g), s(cn, _), s(xn, a), s(Bt, p), s(tn, u), s(gn, l), s($t, n.locale), s(bn, T), s(_n, n.customBlocks ?? []), s(Tn, n.paletteBlocks), s(an, pr(n.htmlBlockPreview)), s(Pt, n.layout), s(Qt, n.sectionWrapper), s(sn, C), s(vn, w.fields), s(mn, cr(t.content, T));
4001
- let M = Ee(n.mergeTags?.syntax);
3946
+ jt(document, "keydown", A);
3947
+ let j = f(null), M = e.editorRoot ?? document;
3948
+ s(on, M), s(It, j), s(rn, r), s(fn, t), s(Dn, m), s(sn, g), s(dn, _), s(wn, a), s(Ut, p), s(an, u), s(yn, l), s(nn, n.locale), s(Cn, T), s(bn, n.customBlocks ?? []), s(On, n.paletteBlocks), s(cn, _r(n.htmlBlockPreview)), s(Lt, n.layout), s(tn, n.sectionWrapper), s(un, C), s(xn, w.fields), s(_n, fr(t.content, T));
3949
+ let N = tt(n.mergeTags?.syntax);
4002
3950
  for (let e of ["opener", "closer"]) {
4003
- let t = M[e];
3951
+ let t = N[e];
4004
3952
  typeof t == "string" && t.trim() === "" && R.warn(`config.mergeTags.syntax.${e} is blank — ignoring it.`);
4005
3953
  }
4006
- typeof M.opener != "string" && typeof M.closer == "string" && M.closer.trim() !== "" && _e(M) === null && R.warn("config.mergeTags.syntax.closer has no effect without an opener — set opener to turn on autocomplete for this syntax.");
4007
- let N = x(n.mergeTags?.tags ?? []);
3954
+ typeof N.opener != "string" && typeof N.closer == "string" && N.closer.trim() !== "" && Xe(N) === null && R.warn("config.mergeTags.syntax.closer has no effect without an opener — set opener to turn on autocomplete for this syntax.");
3955
+ let ee = x(n.mergeTags?.tags ?? []);
4008
3956
  function P(e) {
4009
- Array.isArray(e) ? N.value = e : R.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
3957
+ Array.isArray(e) ? ee.value = e : R.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
4010
3958
  }
4011
- s(Gt, N), s(Kt, M), s(Jt, n.mergeTags?.onRequest ?? null), s(fn, n.mergeTags?.autocomplete !== !1), s(Wt, n.mergeTags?.showRawValue !== !1);
4012
- let F = f(re(n.mergeTags?.tags ?? []));
4013
- s(Ut, F);
4014
- let L = Zn({
3959
+ s(Jt, ee), s(Yt, N), s(Zt, n.mergeTags?.onRequest ?? null), s(hn, n.mergeTags?.autocomplete !== !1), s(qt, n.mergeTags?.showRawValue !== !1);
3960
+ let F = f(Ue(n.mergeTags?.tags ?? []));
3961
+ s(Kt, F);
3962
+ let L = tr({
4015
3963
  resolvePreview: n.resolvePreview,
4016
3964
  getContent: () => {
4017
3965
  let e = t.content.value;
4018
- return n.layout && t.state.previewMode ? Fe(n.layout, e) : e;
3966
+ return n.layout && t.state.previewMode ? Le(n.layout, e) : e;
4019
3967
  },
4020
3968
  isActive: () => t.state.previewMode
4021
3969
  });
4022
- s(Zt, L), s(Rt, n.resolvePreview);
3970
+ s(en, L), s(Vt, n.resolvePreview);
4023
3971
  let te = y(() => !(t.state.previewMode && L.isConfigured));
4024
- s(yn, te);
4025
- let ne = Qn();
4026
- s(Mt, ne), s(dn, f(!1)), s(Ft, f(!1)), s(Xt, n.logicTags?.tags ?? []), s(Sn, n.logicTags?.pairs ?? []), s(zt, n.logicTags?.onRequest ?? null), s(It, $n()), s(Ht, n.onRequestMedia ?? null), s(on, n.canDropMedia ?? null), s(Cn, n.resolveImageUrl ? xt(n.resolveImageUrl) : null), s(un, n.displayConditions?.conditions ?? []), s(hn, n.displayConditions?.allowCustom ?? !1), s(pn, e.capabilities ?? {}), s(Yt, S);
4027
- let ie = er(n.lint) ? null : nr({
3972
+ s(Sn, te);
3973
+ let ne = nr();
3974
+ s(Ft, ne), s(mn, f(!1)), s(Rt, f(!1)), s($t, n.logicTags?.tags ?? []), s(Tn, n.logicTags?.pairs ?? []), s(Ht, n.logicTags?.onRequest ?? null), s(zt, rr()), s(Gt, n.onRequestMedia ?? null), s(ln, n.canDropMedia ?? null), s(En, n.resolveImageUrl ? wt(n.resolveImageUrl) : null), s(pn, n.displayConditions?.conditions ?? []), s(vn, n.displayConditions?.allowCustom ?? !1), s(gn, e.capabilities ?? {}), s(Qt, S);
3975
+ let re = ir(n.lint) ? null : or({
4028
3976
  content: t.content,
4029
3977
  options: n.lint ?? {},
4030
3978
  updateBlock: t.updateBlock,
4031
3979
  updateSettings: t.updateSettings,
4032
3980
  removeBlock: t.removeBlock
4033
3981
  });
4034
- s(Vt, ie);
4035
- function ae() {
4036
- b?.(), ie?.destroy(), v?.destroy(), m.destroy();
3982
+ s(Wt, re);
3983
+ function ie() {
3984
+ b?.(), re?.destroy(), v?.destroy(), m.destroy();
4037
3985
  }
4038
3986
  return {
4039
3987
  t: o,
4040
3988
  format: c,
4041
- editorRoot: ee,
3989
+ editorRoot: M,
4042
3990
  history: m,
4043
3991
  blockActions: g,
4044
3992
  conditionPreview: _,
@@ -4048,17 +3996,16 @@ function il(e) {
4048
3996
  themeOverrides: d,
4049
3997
  registry: T,
4050
3998
  keyboardReorder: S,
4051
- templateLint: ie,
3999
+ templateLint: re,
4052
4000
  popoverRoot: j,
4053
4001
  mergeTagSampleMode: F,
4054
4002
  previewResolution: L,
4055
4003
  appliesConditionFilter: te,
4056
4004
  registerCustomBlocks: D,
4057
4005
  setMergeTags: P,
4058
- mergeTags: N,
4059
- mergeTagSyntax: M,
4060
- destroy: ae
4006
+ mergeTags: ee,
4007
+ mergeTagSyntax: N,
4008
+ destroy: ie
4061
4009
  };
4062
4010
  }
4063
- //#endregion
4064
- export { Yr as A, Or as B, hi as C, ii as D, oi as E, wr as F, Zn as H, Mr as I, jr as L, Br as M, $r as N, ri as O, Vr as P, Ar as R, gi as S, ci as T, Dr as V, Ri as _, Lc as a, Ti as b, Oa as c, Ta as d, da as f, Bi as g, Ki as h, Bc as i, Xr as j, Gr as k, ja as l, ia as m, nl as n, kc as o, ca as p, Kc as r, wc as s, il as t, Da as u, ki as v, pi as w, bi as x, Di as y, kr as z };
4011
+ export { $r as A, Mr as B, yi as C, ci as D, ui as E, Or as F, tr as H, Ir as I, Fr as L, Wr as M, ri as N, si as O, Gr as P, Pr as R, bi as S, fi as T, jr as V, Hi as _, Vc as a, ki as b, Ma as c, ka as d, ha as f, Wi as g, Xi as h, Wc as i, ei as j, Yr as k, Fa as l, ca as m, ol as n, Nc as o, fa as p, Xc as r, Oc as s, cl as t, ja as u, Ni as v, _i as w, wi as x, ji as y, Nr as z };