@templatical/editor 0.47.0 → 0.49.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 (319) hide show
  1. package/README.md +1 -1
  2. package/dist/{AiChatSidebar-BPOv5Ra8.js → AiChatSidebar-CdjTb9ej.js} +14 -14
  3. package/dist/{AiFeatureMenu-H_WT4YR8.js → AiFeatureMenu-DKm7VYCs.js} +7 -7
  4. package/dist/{BlockIssueBadge-AgO5abEB.js → BlockIssueBadge-BdpJwim0.js} +5 -5
  5. package/dist/BlockPreviewCanvas-D_sowkf0.js +141 -0
  6. package/dist/CloudHeaderExtras-CI8RR9hG.js +55 -0
  7. package/dist/{CloudPanels-H_GdbOfZ.js → CloudPanels-1hwFiJ0G.js} +39 -68
  8. package/dist/CollaborationNotices-BWpKzueF.js +73 -0
  9. package/dist/CollaboratorBar-D87phJsw.js +123 -0
  10. package/dist/{CommentsPanel-CMgsG_yh.js → CommentsPanel-BUvUzO3T.js} +2 -2
  11. package/dist/{CommentsSidebar-DCh8DTP8.js → CommentsSidebar-J65znlrH.js} +14 -14
  12. package/dist/{CountdownBlock-zx39Dyby.js → CountdownBlock-DPQXWRvU.js} +4 -4
  13. package/dist/{CountdownToolbar-DVuucA3v.js → CountdownToolbar-CLMIwfK7.js} +7 -7
  14. package/dist/{DesignReferenceSidebar-DxNV4lQp.js → DesignReferenceSidebar-BTwCFgz8.js} +13 -13
  15. package/dist/{IssuesPanel-CUpW54P4.js → IssuesPanel-DeeVsfG7.js} +8 -8
  16. package/dist/{LoadingTrack-6XsqodoY.js → LoadingTrack-BXOptf5g.js} +1 -1
  17. package/dist/{LogicTagInsertButton-DDYKnqmj.js → LogicTagInsertButton-CR5E4jSG.js} +17 -17
  18. package/dist/{MediaEditModal-D_we0Scr.js → MediaEditModal-C_wxoUMG.js} +3 -3
  19. package/dist/{MediaPanels-L95BwWV1.js → MediaPanels-BVXDkqtH.js} +2 -2
  20. package/dist/{MergeTagInput-DAL998tx.js → MergeTagInput-BEw_r0PJ.js} +3 -3
  21. package/dist/{MergeTagModeToggle-CjHO26rb.js → MergeTagModeToggle-CJTpFmVd.js} +7 -7
  22. package/dist/{ParagraphEditor-CcEN1N6n.js → ParagraphEditor-zLV44z-R.js} +135 -135
  23. package/dist/{RestoreVersionDialog-B2OH5rgs.js → RestoreVersionDialog-BaDpy3cL.js} +6 -6
  24. package/dist/{RichTextEditorContent-BGeTg-QL.js → RichTextEditorContent-CsvniFlI.js} +9 -9
  25. package/dist/{SaveBlockDialog-CCVyU-7y.js → SaveBlockDialog-DzWURF_e.js} +34 -35
  26. package/dist/{SavedBlocksBrowserModal-_WmSeqIh.js → SavedBlocksBrowserModal-B8DCFW7t.js} +14 -14
  27. package/dist/{SavedBlocksPanels-DVX_ruQ7.js → SavedBlocksPanels-B3Af8ns2.js} +2 -2
  28. package/dist/{SavedBlocksPickBar-DVJC28hP.js → SavedBlocksPickBar-Dj11-Lqp.js} +5 -5
  29. package/dist/{TemplateScoringPanel-U0QFiwdI.js → TemplateScoringPanel-Ba9sgvjS.js} +16 -16
  30. package/dist/{TemplateSettings-CdhTm9JQ.js → TemplateSettings-Cu5X9DgA.js} +11 -11
  31. package/dist/{TestEmailModal-BqToA_ls.js → TestEmailModal-BeRYV3eg.js} +14 -14
  32. package/dist/{TestEmailPanel-Cn4Ptq0j.js → TestEmailPanel-B8c3fQi2.js} +2 -2
  33. package/dist/{TitleEditor-CZdqeltH.js → TitleEditor-CvpNUoAp.js} +13 -13
  34. package/dist/{ToggleSwitch-BR8Sgzib.js → ToggleSwitch-DHweVJOr.js} +2 -2
  35. package/dist/Toolbar-BadDSkkF.js +3153 -0
  36. package/dist/{TplModal-CoczSDma.js → TplModal-BZgi9Tes.js} +5 -5
  37. package/dist/{VersionHistoryMenu-DY5z5FZr.js → VersionHistoryMenu-BRlcQ8wX.js} +10 -10
  38. package/dist/{VersionHistoryPanels-DowHeDAQ.js → VersionHistoryPanels-DGkllN3a.js} +2 -2
  39. package/dist/{VersionPreviewBanner-Bo8NxBbh.js → VersionPreviewBanner-F-811aps.js} +4 -4
  40. package/dist/WrapperBlock-DiiaxpMb.js +45 -0
  41. package/dist/{blockTypeIcons-4E1U8f99.js → blockTypeIcons-CayLluou.js} +49 -19
  42. package/dist/bundle-stats.json +7 -7
  43. package/dist/{ca-DMoGGP9L.js → ca-DSJwJ5ov.js} +40 -2
  44. package/dist/cdn/chunks/{AiChatSidebar-B72rI0be.js → AiChatSidebar-yXJ85Zcg.js} +12 -12
  45. package/dist/cdn/chunks/{AiChatSidebar-B72rI0be.js.map → AiChatSidebar-yXJ85Zcg.js.map} +1 -1
  46. package/dist/cdn/chunks/{AiFeatureMenu-BqSG9iEd.js → AiFeatureMenu-4ydjrhsQ.js} +6 -6
  47. package/dist/cdn/chunks/{AiFeatureMenu-BqSG9iEd.js.map → AiFeatureMenu-4ydjrhsQ.js.map} +1 -1
  48. package/dist/cdn/chunks/{BlockIssueBadge-CS7ytN-z.js → BlockIssueBadge-D1VBS_6x.js} +5 -5
  49. package/dist/cdn/chunks/{BlockIssueBadge-CS7ytN-z.js.map → BlockIssueBadge-D1VBS_6x.js.map} +1 -1
  50. package/dist/cdn/chunks/BlockPreviewCanvas-m2tWRyWv.js +143 -0
  51. package/dist/cdn/chunks/BlockPreviewCanvas-m2tWRyWv.js.map +1 -0
  52. package/dist/cdn/chunks/{CloudHeaderExtras-DJXLTUHc.js → CloudHeaderExtras-DEkRww7n.js} +16 -20
  53. package/dist/cdn/chunks/CloudHeaderExtras-DEkRww7n.js.map +1 -0
  54. package/dist/cdn/chunks/{CloudPanels-D1fPLjG8.js → CloudPanels-XufhBZYF.js} +38 -67
  55. package/dist/cdn/chunks/CloudPanels-XufhBZYF.js.map +1 -0
  56. package/dist/cdn/chunks/CollaborationNotices-CBvKEj1Q.js +75 -0
  57. package/dist/cdn/chunks/CollaborationNotices-CBvKEj1Q.js.map +1 -0
  58. package/dist/cdn/chunks/CollaboratorBar-DWW54Bn_.js +72 -0
  59. package/dist/cdn/chunks/CollaboratorBar-DWW54Bn_.js.map +1 -0
  60. package/dist/cdn/chunks/{CommentsPanel-CmxPylNf.js → CommentsPanel-R8YLLO3v.js} +3 -3
  61. package/dist/cdn/chunks/{CommentsPanel-CmxPylNf.js.map → CommentsPanel-R8YLLO3v.js.map} +1 -1
  62. package/dist/cdn/chunks/{CommentsSidebar-CrleQTbo.js → CommentsSidebar-96NZHVq3.js} +16 -16
  63. package/dist/cdn/chunks/{CommentsSidebar-CrleQTbo.js.map → CommentsSidebar-96NZHVq3.js.map} +1 -1
  64. package/dist/cdn/chunks/{CountdownBlock-Dasj191h.js → CountdownBlock-DB4JNdqh.js} +5 -5
  65. package/dist/cdn/chunks/{CountdownBlock-Dasj191h.js.map → CountdownBlock-DB4JNdqh.js.map} +1 -1
  66. package/dist/cdn/chunks/{CountdownToolbar-DPIOtlN0.js → CountdownToolbar-tmiTPEXm.js} +8 -8
  67. package/dist/cdn/chunks/{CountdownToolbar-DPIOtlN0.js.map → CountdownToolbar-tmiTPEXm.js.map} +1 -1
  68. package/dist/cdn/chunks/{DesignReferenceSidebar-BgTNqgCy.js → DesignReferenceSidebar-D14IIu_P.js} +40 -40
  69. package/dist/cdn/chunks/{DesignReferenceSidebar-BgTNqgCy.js.map → DesignReferenceSidebar-D14IIu_P.js.map} +1 -1
  70. package/dist/cdn/chunks/{IssuesPanel-BGjLcNpQ.js → IssuesPanel-BoPiCLGc.js} +6 -6
  71. package/dist/cdn/chunks/{IssuesPanel-BGjLcNpQ.js.map → IssuesPanel-BoPiCLGc.js.map} +1 -1
  72. package/dist/cdn/chunks/{LoadingTrack-DbH97JR9.js → LoadingTrack-YU44CM8X.js} +2 -2
  73. package/dist/cdn/chunks/{LoadingTrack-DbH97JR9.js.map → LoadingTrack-YU44CM8X.js.map} +1 -1
  74. package/dist/cdn/chunks/{LogicTagInsertButton-BEsqPhMr.js → LogicTagInsertButton-BJ2t2vxC.js} +98 -98
  75. package/dist/cdn/chunks/{LogicTagInsertButton-BEsqPhMr.js.map → LogicTagInsertButton-BJ2t2vxC.js.map} +1 -1
  76. package/dist/cdn/chunks/{MediaEditModal-C1Ao0i2c.js → MediaEditModal-DD0SZ-S3.js} +3 -3
  77. package/dist/cdn/chunks/{MediaEditModal-C1Ao0i2c.js.map → MediaEditModal-DD0SZ-S3.js.map} +1 -1
  78. package/dist/cdn/chunks/{MediaPanels-1GPYiZZ0.js → MediaPanels-CkdJ_kGp.js} +3 -3
  79. package/dist/cdn/chunks/{MediaPanels-1GPYiZZ0.js.map → MediaPanels-CkdJ_kGp.js.map} +1 -1
  80. package/dist/cdn/chunks/{MergeTagInput-Dy13_OLc.js → MergeTagInput-7wXX71DH.js} +4 -4
  81. package/dist/cdn/chunks/{MergeTagInput-Dy13_OLc.js.map → MergeTagInput-7wXX71DH.js.map} +1 -1
  82. package/dist/cdn/chunks/{MergeTagModeToggle-B2CPZOeF.js → MergeTagModeToggle-r9vHH4u_.js} +6 -6
  83. package/dist/cdn/chunks/{MergeTagModeToggle-B2CPZOeF.js.map → MergeTagModeToggle-r9vHH4u_.js.map} +1 -1
  84. package/dist/cdn/chunks/{ParagraphEditor-BGLIw7kg.js → ParagraphEditor-CJQjRHXV.js} +52 -52
  85. package/dist/cdn/chunks/{ParagraphEditor-BGLIw7kg.js.map → ParagraphEditor-CJQjRHXV.js.map} +1 -1
  86. package/dist/cdn/chunks/{RestoreVersionDialog-BhykE8En.js → RestoreVersionDialog-C5cxBRKi.js} +8 -8
  87. package/dist/cdn/chunks/{RestoreVersionDialog-BhykE8En.js.map → RestoreVersionDialog-C5cxBRKi.js.map} +1 -1
  88. package/dist/cdn/chunks/{RichTextEditorContent-B-txUvPL.js → RichTextEditorContent-BfE7Bkge.js} +8 -8
  89. package/dist/cdn/chunks/{RichTextEditorContent-B-txUvPL.js.map → RichTextEditorContent-BfE7Bkge.js.map} +1 -1
  90. package/dist/cdn/chunks/{SaveBlockDialog-BHqEp7jw.js → SaveBlockDialog-BKbjUnPM.js} +25 -26
  91. package/dist/cdn/chunks/{SaveBlockDialog-BHqEp7jw.js.map → SaveBlockDialog-BKbjUnPM.js.map} +1 -1
  92. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BhR6AI0f.js → SavedBlocksBrowserModal-BMtyUrUP.js} +10 -10
  93. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BhR6AI0f.js.map → SavedBlocksBrowserModal-BMtyUrUP.js.map} +1 -1
  94. package/dist/cdn/chunks/{SavedBlocksPanels-YwffJtfY.js → SavedBlocksPanels-s_gxi1im.js} +3 -3
  95. package/dist/cdn/chunks/{SavedBlocksPanels-YwffJtfY.js.map → SavedBlocksPanels-s_gxi1im.js.map} +1 -1
  96. package/dist/cdn/chunks/{SavedBlocksPickBar-BtpFU7es.js → SavedBlocksPickBar-B8WHk5mI.js} +6 -6
  97. package/dist/cdn/chunks/{SavedBlocksPickBar-BtpFU7es.js.map → SavedBlocksPickBar-B8WHk5mI.js.map} +1 -1
  98. package/dist/cdn/chunks/{TemplateScoringPanel-N4ySFh5w.js → TemplateScoringPanel-BBPnHILC.js} +10 -10
  99. package/dist/cdn/chunks/{TemplateScoringPanel-N4ySFh5w.js.map → TemplateScoringPanel-BBPnHILC.js.map} +1 -1
  100. package/dist/cdn/chunks/{TemplateSettings-C7b5X34U.js → TemplateSettings-CtrzzQWl.js} +14 -14
  101. package/dist/cdn/chunks/{TemplateSettings-C7b5X34U.js.map → TemplateSettings-CtrzzQWl.js.map} +1 -1
  102. package/dist/cdn/chunks/{TestEmailModal-DHJKI5y5.js → TestEmailModal-DuZKYMWD.js} +15 -15
  103. package/dist/cdn/chunks/{TestEmailModal-DHJKI5y5.js.map → TestEmailModal-DuZKYMWD.js.map} +1 -1
  104. package/dist/cdn/chunks/{TestEmailPanel-lYtzTXpR.js → TestEmailPanel-DERaCdpG.js} +3 -3
  105. package/dist/cdn/chunks/{TestEmailPanel-lYtzTXpR.js.map → TestEmailPanel-DERaCdpG.js.map} +1 -1
  106. package/dist/cdn/chunks/{TitleEditor-5eY01ypW.js → TitleEditor-CEgxjtUX.js} +20 -20
  107. package/dist/cdn/chunks/{TitleEditor-5eY01ypW.js.map → TitleEditor-CEgxjtUX.js.map} +1 -1
  108. package/dist/cdn/chunks/{ToggleSwitch-BN8rMC2m.js → ToggleSwitch-DGQ7iRc-.js} +3 -3
  109. package/dist/cdn/chunks/{ToggleSwitch-BN8rMC2m.js.map → ToggleSwitch-DGQ7iRc-.js.map} +1 -1
  110. package/dist/cdn/chunks/Toolbar-GFIZQHzw.js +3070 -0
  111. package/dist/cdn/chunks/Toolbar-GFIZQHzw.js.map +1 -0
  112. package/dist/cdn/chunks/{TplModal-WIBiBrGy.js → TplModal-DDrbWJcE.js} +5 -5
  113. package/dist/cdn/chunks/{TplModal-WIBiBrGy.js.map → TplModal-DDrbWJcE.js.map} +1 -1
  114. package/dist/cdn/chunks/{VersionHistoryMenu-CZnlS9K5.js → VersionHistoryMenu-MlxsUmuT.js} +11 -11
  115. package/dist/cdn/chunks/{VersionHistoryMenu-CZnlS9K5.js.map → VersionHistoryMenu-MlxsUmuT.js.map} +1 -1
  116. package/dist/cdn/chunks/{VersionHistoryPanels-xjLSpR1e.js → VersionHistoryPanels-DVOV8QLv.js} +3 -3
  117. package/dist/cdn/chunks/{VersionHistoryPanels-xjLSpR1e.js.map → VersionHistoryPanels-DVOV8QLv.js.map} +1 -1
  118. package/dist/cdn/chunks/{VersionPreviewBanner-sARpn4hh.js → VersionPreviewBanner-BQwRKc6S.js} +5 -5
  119. package/dist/cdn/chunks/{VersionPreviewBanner-sARpn4hh.js.map → VersionPreviewBanner-BQwRKc6S.js.map} +1 -1
  120. package/dist/cdn/chunks/WrapperBlock-CFuP4R0c.js +47 -0
  121. package/dist/cdn/chunks/WrapperBlock-CFuP4R0c.js.map +1 -0
  122. package/dist/cdn/chunks/blockTypeIcons-BnAd8qsP.js +22 -0
  123. package/dist/cdn/chunks/blockTypeIcons-BnAd8qsP.js.map +1 -0
  124. package/dist/cdn/chunks/{ca-DMoGGP9L.js → ca-DSJwJ5ov.js} +41 -3
  125. package/dist/cdn/chunks/ca-DSJwJ5ov.js.map +1 -0
  126. package/dist/{cloud-DwjaAdwK.js → cdn/chunks/cloud-CI_fgDyy.js} +116 -293
  127. package/dist/cdn/chunks/cloud-CI_fgDyy.js.map +1 -0
  128. package/dist/cdn/chunks/{createCloudRuntime-DtIZ2Lee.js → createCloudRuntime-DiYCJ21w.js} +127 -169
  129. package/dist/cdn/chunks/createCloudRuntime-DiYCJ21w.js.map +1 -0
  130. package/dist/{de-DgAelLbM.js → cdn/chunks/de-CBE6O79z.js} +42 -2
  131. package/dist/cdn/chunks/de-CBE6O79z.js.map +1 -0
  132. package/dist/{de-mMY5yQJu.js → cdn/chunks/de-D_atmUVB.js} +2 -4
  133. package/dist/cdn/chunks/{de-mMY5yQJu.js.map → de-D_atmUVB.js.map} +1 -1
  134. package/dist/cdn/chunks/{dist-MNQYSEWU.js → dist-DdwjXLme.js} +3 -3
  135. package/dist/cdn/chunks/{dist-MNQYSEWU.js.map → dist-DdwjXLme.js.map} +1 -1
  136. package/dist/cdn/chunks/{dist-CjL6JHML.js → dist-Doy3r07H.js} +2 -2
  137. package/dist/cdn/chunks/{dist-CjL6JHML.js.map → dist-Doy3r07H.js.map} +1 -1
  138. package/dist/cdn/chunks/{draggable-DrsNwZuB.js → draggable-akeQH_JP.js} +1682 -1683
  139. package/dist/cdn/chunks/draggable-akeQH_JP.js.map +1 -0
  140. package/dist/cdn/chunks/{editor-modal-Bcwo0orC.js → editor-modal-HJBy9kLj.js} +69 -69
  141. package/dist/cdn/chunks/{editor-modal-Bcwo0orC.js.map → editor-modal-HJBy9kLj.js.map} +1 -1
  142. package/dist/cdn/chunks/{en-Dekrl7HA.js → en-CDexnk0p.js} +41 -3
  143. package/dist/cdn/chunks/en-CDexnk0p.js.map +1 -0
  144. package/dist/{en-ChVeGQBY.js → cdn/chunks/en-DhJLnaBx.js} +2 -4
  145. package/dist/cdn/chunks/en-DhJLnaBx.js.map +1 -0
  146. package/dist/cdn/chunks/en-Ve-PWSXu.js +1 -0
  147. package/dist/{es-BaZzyidV.js → cdn/chunks/es-BE42B6uN.js} +42 -2
  148. package/dist/cdn/chunks/es-BE42B6uN.js.map +1 -0
  149. package/dist/cdn/chunks/{extensions-T-t8MKDb.js → extensions-koOuDeZS.js} +23 -23
  150. package/dist/cdn/chunks/{extensions-T-t8MKDb.js.map → extensions-koOuDeZS.js.map} +1 -1
  151. package/dist/{fr-C5ucb1HK.js → cdn/chunks/fr-DlJFPDQR.js} +42 -2
  152. package/dist/cdn/chunks/fr-DlJFPDQR.js.map +1 -0
  153. package/dist/cdn/chunks/{icons-C4fX9Bwy.js → icons-CjlNV8xD.js} +121 -92
  154. package/dist/cdn/chunks/icons-CjlNV8xD.js.map +1 -0
  155. package/dist/{ja-CUgR3mV0.js → cdn/chunks/ja-CUT8gkNI.js} +42 -2
  156. package/dist/cdn/chunks/ja-CUT8gkNI.js.map +1 -0
  157. package/dist/cdn/chunks/{keys-HI-INbkz.js → keys-UAWhQ3zW.js} +2 -2
  158. package/dist/cdn/chunks/{keys-HI-INbkz.js.map → keys-UAWhQ3zW.js.map} +1 -1
  159. package/dist/{nl-qrLY7hMS.js → cdn/chunks/nl-bXWqqRyS.js} +42 -2
  160. package/dist/cdn/chunks/nl-bXWqqRyS.js.map +1 -0
  161. package/dist/cdn/chunks/{preRenderCustomBlocks-Co0oi0Jf.js → preRenderCustomBlocks-DqKbdTJ8.js} +5 -5
  162. package/dist/cdn/chunks/{preRenderCustomBlocks-Co0oi0Jf.js.map → preRenderCustomBlocks-DqKbdTJ8.js.map} +1 -1
  163. package/dist/{pt-BR-C6hMTQYi.js → cdn/chunks/pt-BR-2_H4-wlb.js} +42 -2
  164. package/dist/cdn/chunks/pt-BR-2_H4-wlb.js.map +1 -0
  165. package/dist/{pt-BR-CoCwRUi0.js → cdn/chunks/pt-BR-BphMoUTw.js} +2 -4
  166. package/dist/cdn/chunks/{pt-BR-CoCwRUi0.js.map → pt-BR-BphMoUTw.js.map} +1 -1
  167. package/dist/cdn/chunks/{pusher-C8DeiO2X.js → pusher-Cs4GGEtd.js} +2 -2
  168. package/dist/cdn/chunks/pusher-Cs4GGEtd.js.map +1 -0
  169. package/dist/cdn/chunks/{rolldown-runtime-B0aSnxlc.js → rolldown-runtime-Y_bBpyJl.js} +1 -1
  170. package/dist/cdn/chunks/socialIcons-CkZSYpoG.js +2091 -0
  171. package/dist/cdn/chunks/socialIcons-CkZSYpoG.js.map +1 -0
  172. package/dist/cdn/chunks/{src-CHlVFp7r.js → src-B1e5SSYP.js} +312 -286
  173. package/dist/cdn/chunks/src-B1e5SSYP.js.map +1 -0
  174. package/dist/cdn/chunks/src-B77z1iw4.js +649 -0
  175. package/dist/cdn/chunks/src-B77z1iw4.js.map +1 -0
  176. package/dist/cdn/chunks/{src-BnJlDuyB.js → src-CvLTYGdO.js} +555 -283
  177. package/dist/cdn/chunks/src-CvLTYGdO.js.map +1 -0
  178. package/dist/cdn/chunks/{styleConstants-D1Jz-TFU.js → styleConstants-v1dNKgJf.js} +2 -4
  179. package/dist/cdn/chunks/{styleConstants-D1Jz-TFU.js.map → styleConstants-v1dNKgJf.js.map} +1 -1
  180. package/dist/cdn/chunks/{timeouts-DHPZQ0G3.js → timeouts-o5Y9BuqI.js} +2 -2
  181. package/dist/cdn/chunks/timeouts-o5Y9BuqI.js.map +1 -0
  182. package/dist/cdn/chunks/{tiptap-BPigZk5G.js → tiptap-B1RfWFzB.js} +3 -3
  183. package/dist/cdn/chunks/tiptap-B1RfWFzB.js.map +1 -0
  184. package/dist/cdn/chunks/{useAliveFlag-DCB96vzR.js → useAliveFlag-PuXh83UK.js} +2 -2
  185. package/dist/cdn/chunks/{useAliveFlag-DCB96vzR.js.map → useAliveFlag-PuXh83UK.js.map} +1 -1
  186. package/dist/cdn/chunks/{useCloudI18n-BBF4waXO.js → useCloudI18n-kp07GQmk.js} +3 -3
  187. package/dist/cdn/chunks/{useCloudI18n-BBF4waXO.js.map → useCloudI18n-kp07GQmk.js.map} +1 -1
  188. package/dist/cdn/chunks/{useEditorCore-Bf2d1DKI.js → useEditorCore-DpCFvHg_.js} +758 -732
  189. package/dist/cdn/chunks/useEditorCore-DpCFvHg_.js.map +1 -0
  190. package/dist/cdn/chunks/useEditorRoot-5SBqm90x.js +10 -0
  191. package/dist/cdn/chunks/{useEditorRoot-CTc6O8al.js.map → useEditorRoot-5SBqm90x.js.map} +1 -1
  192. package/dist/cdn/chunks/{useI18n-DUlyyIJJ.js → useI18n-DEqtEgOs.js} +3 -3
  193. package/dist/cdn/chunks/{useI18n-DUlyyIJJ.js.map → useI18n-DEqtEgOs.js.map} +1 -1
  194. package/dist/cdn/chunks/{useLogicTag-3S63go4E.js → useLogicTag-X8bc5qNl.js} +4 -4
  195. package/dist/cdn/chunks/{useLogicTag-3S63go4E.js.map → useLogicTag-X8bc5qNl.js.map} +1 -1
  196. package/dist/cdn/chunks/{useMergeTag-BQtxUHq1.js → useMergeTag-DFoOexIQ.js} +6 -6
  197. package/dist/cdn/chunks/{useMergeTag-BQtxUHq1.js.map → useMergeTag-DFoOexIQ.js.map} +1 -1
  198. package/dist/cdn/chunks/{usePopoverPosition-IbaW6-Ao.js → usePopoverPosition-Cz9-XiXR.js} +3 -3
  199. package/dist/cdn/chunks/{usePopoverPosition-IbaW6-Ao.js.map → usePopoverPosition-Cz9-XiXR.js.map} +1 -1
  200. package/dist/cdn/chunks/{useScrollToBlock-uUa601I4.js → useScrollToBlock-MNzurEZV.js} +3 -3
  201. package/dist/cdn/chunks/{useScrollToBlock-uUa601I4.js.map → useScrollToBlock-MNzurEZV.js.map} +1 -1
  202. package/dist/cdn/chunks/{withCurrentFont-DwJd-lKc.js → withCurrentFont-D-f61ghC.js} +2 -2
  203. package/dist/cdn/chunks/{withCurrentFont-DwJd-lKc.js.map → withCurrentFont-D-f61ghC.js.map} +1 -1
  204. package/dist/cdn/editor.css +1 -1
  205. package/dist/cdn/editor.js +1328 -1069
  206. package/dist/cdn/editor.js.map +1 -1
  207. package/dist/{check-B5R4zXr7.js → check-DQQzkmIC.js} +1 -1
  208. package/dist/{chevron-down-BKyl85NV.js → chevron-down-CIF4bdon.js} +1 -1
  209. package/dist/{chevron-right-BmToZ8qX.js → chevron-right-Cg7Xu-ev.js} +1 -1
  210. package/dist/{chevron-up-DNYdOxPC.js → chevron-up-Csu7ISD-.js} +1 -1
  211. package/dist/{circle-alert-Dx9ju3YZ.js → circle-alert-YUvIJAgY.js} +1 -1
  212. package/dist/{clock-Dv9bxsSH.js → clock-CnSIGKQW.js} +1 -1
  213. package/dist/{cdn/chunks/cloud-Cd7ptfhL.js → cloud-YUYDtdHt.js} +308 -569
  214. package/dist/{copy-BsKl4dcy.js → copy-CUC43md_.js} +1 -1
  215. package/dist/{createCloudRuntime-C8gpPsSi.js → createCloudRuntime-BMDRjL0k.js} +126 -168
  216. package/dist/{createLucideIcon-DziKp5iU.js → createLucideIcon-BcP1sjdp.js} +6 -6
  217. package/dist/{cdn/chunks/de-DgAelLbM.js → de-CBE6O79z.js} +40 -4
  218. package/dist/{cdn/chunks/de-mMY5yQJu.js → de-D_atmUVB.js} +0 -6
  219. package/dist/{dist-CUWI-IvA.js → dist-Bv_GBr2l.js} +1 -1
  220. package/dist/{dist-DAAJogrx.js → dist-CCqn-RqE.js} +2 -2
  221. package/dist/{dist-DuufrR8O.js → dist-CNqjHA8e.js} +2 -2
  222. package/dist/{dist-C8koXLhl.js → dist-DBG3nh3k.js} +550 -284
  223. package/dist/{editor-modal-BwyIUnV_.js → editor-modal--7_9A6j-.js} +27 -27
  224. package/dist/en-BHCMzqib.js +1 -0
  225. package/dist/{en-Dekrl7HA.js → en-CDexnk0p.js} +40 -2
  226. package/dist/{cdn/chunks/en-ChVeGQBY.js → en-DhJLnaBx.js} +0 -6
  227. package/dist/{cdn/chunks/es-BaZzyidV.js → es-BE42B6uN.js} +40 -4
  228. package/dist/{extensions-DHyKjsNZ.js → extensions-zwsZlWjH.js} +23 -23
  229. package/dist/{eye-DQuinb9k.js → eye-B1bua-ck.js} +1 -1
  230. package/dist/{cdn/chunks/fr-C5ucb1HK.js → fr-DlJFPDQR.js} +40 -4
  231. package/dist/{image-up-yTfLjOrj.js → image-up-BqiO7KCO.js} +1 -1
  232. package/dist/index.d.ts +356 -38
  233. package/dist/{info-C7OjlS11.js → info-x26nGOo2.js} +1 -1
  234. package/dist/{cdn/chunks/ja-CUgR3mV0.js → ja-CUT8gkNI.js} +40 -4
  235. package/dist/{keys-BKFq19a2.js → keys-BymCnLHD.js} +1 -1
  236. package/dist/{link-CrUFaZ0t.js → link-CezhndyR.js} +1 -1
  237. package/dist/{list-CLgv6M-k.js → list-DQqdptI0.js} +1 -1
  238. package/dist/{loader-circle-BXM5VO0K.js → loader-circle-DCEeoYoi.js} +1 -1
  239. package/dist/{message-circle-BisdQ8H9.js → message-circle-BLGzfv_7.js} +1 -1
  240. package/dist/{cdn/chunks/nl-qrLY7hMS.js → nl-bXWqqRyS.js} +40 -4
  241. package/dist/{package-C1T4AxV1.js → package-D_kEQCMU.js} +1 -1
  242. package/dist/{pencil-oo2mwf4C.js → pencil-Dct8zGLy.js} +1 -1
  243. package/dist/{plus-BIilXopD.js → plus-BDd0gTEm.js} +1 -1
  244. package/dist/{preRenderCustomBlocks-lFX0HHiV.js → preRenderCustomBlocks-CtKJecE-.js} +1 -1
  245. package/dist/{cdn/chunks/pt-BR-C6hMTQYi.js → pt-BR-2_H4-wlb.js} +40 -4
  246. package/dist/{cdn/chunks/pt-BR-CoCwRUi0.js → pt-BR-BphMoUTw.js} +0 -6
  247. package/dist/{refresh-cw-DrLlkEVC.js → refresh-cw-tGMRDxr8.js} +1 -1
  248. package/dist/{runtime-dom.esm-bundler-lFF-QG3j.js → runtime-dom.esm-bundler-DYn1z2Xf.js} +1 -1
  249. package/dist/{search-DNu9lImk.js → search-Bm2cCQpe.js} +1 -1
  250. package/dist/{send-DDNh3LoJ.js → send-sVLaKZ7f.js} +1 -1
  251. package/dist/{shield-check-aXM3o14f.js → shield-check-YhsbXfQc.js} +1 -1
  252. package/dist/{smartphone-isccgDee.js → smartphone-B2W81p02.js} +1 -1
  253. package/dist/socialIcons-Bwv-49EB.js +2167 -0
  254. package/dist/{sparkles-CIMfFxKv.js → sparkles-a1qkBZ8X.js} +1 -1
  255. package/dist/style.css +1 -1
  256. package/dist/{styleConstants-D1Jz-TFU.js → styleConstants-v1dNKgJf.js} +1 -3
  257. package/dist/templatical-editor.js +1448 -1189
  258. package/dist/{text-align-start-C4JFeqsq.js → text-align-start-CTuwQ5YW.js} +1 -1
  259. package/dist/{timeouts-DHPZQ0G3.js → timeouts-o5Y9BuqI.js} +1 -1
  260. package/dist/{trash-8ZD9pK_c.js → trash-I3D2peFQ.js} +1 -1
  261. package/dist/{triangle-alert-pq45xEHl.js → triangle-alert-CenxmLRE.js} +1 -1
  262. package/dist/{upload-DrNFmVes.js → upload-uU2cK0Ce.js} +1 -1
  263. package/dist/{useAliveFlag-Dd06mRxe.js → useAliveFlag-BjP0Gxza.js} +1 -1
  264. package/dist/{useCloudI18n-Nwqo7pI_.js → useCloudI18n-CGVEZV3o.js} +2 -2
  265. package/dist/{useEditorCore-BcT7UI4e.js → useEditorCore-DRbMRe8F.js} +1103 -1076
  266. package/dist/{useEditorRoot-BD3piYtD.js → useEditorRoot-BVm2-1N8.js} +2 -2
  267. package/dist/{useI18n-CxVEpurs.js → useI18n-CSh4gO5c.js} +2 -2
  268. package/dist/{useLogicTag-D-dI8H6p.js → useLogicTag-zcI6BWIf.js} +3 -3
  269. package/dist/{useMergeTag-5wMeDBi-.js → useMergeTag-C-iBLlp0.js} +5 -5
  270. package/dist/{usePopoverPosition-CwnH1o5g.js → usePopoverPosition-CMcsMBtK.js} +2 -2
  271. package/dist/{useScrollToBlock-Do3suaqp.js → useScrollToBlock-CdCQK9QQ.js} +3 -3
  272. package/dist/{vue.runtime.esm-bundler-CAzmrXdD.js → vue.runtime.esm-bundler-DV0Wx4r_.js} +1079 -1080
  273. package/dist/{withCurrentFont-B4YnsG_2.js → withCurrentFont-D62njRLu.js} +1 -1
  274. package/dist/{x-CBFKGLB1.js → x-KFQ4S-Kz.js} +1 -1
  275. package/package.json +12 -12
  276. package/dist/BlockPreviewCanvas-CZDBSPoG.js +0 -136
  277. package/dist/CloudHeaderExtras-gXsTYoGG.js +0 -59
  278. package/dist/CollaboratorBar-BazGNMqN.js +0 -103
  279. package/dist/Toolbar-OGakTBEg.js +0 -2851
  280. package/dist/WrapperBlock-BOABSX9W.js +0 -46
  281. package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js +0 -138
  282. package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js.map +0 -1
  283. package/dist/cdn/chunks/CloudHeaderExtras-DJXLTUHc.js.map +0 -1
  284. package/dist/cdn/chunks/CloudPanels-D1fPLjG8.js.map +0 -1
  285. package/dist/cdn/chunks/CollaboratorBar-MeRQB1eN.js +0 -52
  286. package/dist/cdn/chunks/CollaboratorBar-MeRQB1eN.js.map +0 -1
  287. package/dist/cdn/chunks/Toolbar-Ik54UO_-.js +0 -2767
  288. package/dist/cdn/chunks/Toolbar-Ik54UO_-.js.map +0 -1
  289. package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js +0 -48
  290. package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js.map +0 -1
  291. package/dist/cdn/chunks/blockTypeIcons-D3g5QzdT.js +0 -21
  292. package/dist/cdn/chunks/blockTypeIcons-D3g5QzdT.js.map +0 -1
  293. package/dist/cdn/chunks/ca-DMoGGP9L.js.map +0 -1
  294. package/dist/cdn/chunks/cloud-Cd7ptfhL.js.map +0 -1
  295. package/dist/cdn/chunks/createCloudRuntime-DtIZ2Lee.js.map +0 -1
  296. package/dist/cdn/chunks/de-DgAelLbM.js.map +0 -1
  297. package/dist/cdn/chunks/draggable-DrsNwZuB.js.map +0 -1
  298. package/dist/cdn/chunks/en-BANFWZdr.js +0 -1
  299. package/dist/cdn/chunks/en-ChVeGQBY.js.map +0 -1
  300. package/dist/cdn/chunks/en-Dekrl7HA.js.map +0 -1
  301. package/dist/cdn/chunks/es-BaZzyidV.js.map +0 -1
  302. package/dist/cdn/chunks/fr-C5ucb1HK.js.map +0 -1
  303. package/dist/cdn/chunks/icons-C4fX9Bwy.js.map +0 -1
  304. package/dist/cdn/chunks/ja-CUgR3mV0.js.map +0 -1
  305. package/dist/cdn/chunks/nl-qrLY7hMS.js.map +0 -1
  306. package/dist/cdn/chunks/pt-BR-C6hMTQYi.js.map +0 -1
  307. package/dist/cdn/chunks/pusher-C8DeiO2X.js.map +0 -1
  308. package/dist/cdn/chunks/socialIcons-DACw1wA8.js +0 -1103
  309. package/dist/cdn/chunks/socialIcons-DACw1wA8.js.map +0 -1
  310. package/dist/cdn/chunks/src-BnJlDuyB.js.map +0 -1
  311. package/dist/cdn/chunks/src-Bu0qBpbf.js +0 -616
  312. package/dist/cdn/chunks/src-Bu0qBpbf.js.map +0 -1
  313. package/dist/cdn/chunks/src-CHlVFp7r.js.map +0 -1
  314. package/dist/cdn/chunks/timeouts-DHPZQ0G3.js.map +0 -1
  315. package/dist/cdn/chunks/tiptap-BPigZk5G.js.map +0 -1
  316. package/dist/cdn/chunks/useEditorCore-Bf2d1DKI.js.map +0 -1
  317. package/dist/cdn/chunks/useEditorRoot-CTc6O8al.js +0 -10
  318. package/dist/en-CC-57eC_.js +0 -1
  319. package/dist/socialIcons-BctavKBN.js +0 -1180
@@ -1,47 +1,48 @@
1
- import { $ as e, A as t, At as n, B as r, D as i, E as a, F as o, J as s, K as c, M as l, N as u, O as d, R as f, S as p, V as m, W as h, Y as g, Z as _, _ as v, at as y, b, c as x, d as S, g as C, h as w, it as T, j as E, jt as D, k as O, kt as k, l as A, nt as j, r as M, rt as ee, s as N, u as P, v as F, y as te } from "./vue.runtime.esm-bundler-CAzmrXdD.js";
2
- import { c as I, o as ne, s as re } from "./runtime-dom.esm-bundler-lFF-QG3j.js";
3
- import { D as ie, E as ae, F as oe, H as se, J as ce, K as le, L as ue, M as de, N as fe, O as pe, P as me, R as he, S as ge, T as _e, U as ve, W as ye, X as be, Y as xe, Z as Se, _ as Ce, _t as we, a as Te, at as Ee, b as De, c as Oe, ct as ke, dt as Ae, et as je, f as Me, ft as Ne, gt as Pe, ht as Fe, it as Ie, j as Le, k as Re, lt as ze, mt as Be, o as Ve, ot as He, p as Ue, pt as We, q as Ge, rt as Ke, s as qe, st as Je, u as Ye, ut as Xe, w as Ze, x as Qe, z as $e } from "./dist-C8koXLhl.js";
4
- import { S as et, T as tt, _ as nt, a as rt, c as it, d as at, f as ot, i as st, l as ct, n as lt, o as ut, s as dt, t as ft, u as pt, v as mt, w as ht, x as gt } from "./socialIcons-BctavKBN.js";
5
- import { _ as _t, h as vt, v as yt, y as bt } from "./dist-CUWI-IvA.js";
6
- import { a as xt, c as St, i as Ct } from "./dist-DAAJogrx.js";
7
- import { $ as wt, A as Tt, B as Et, C as Dt, D as Ot, E as kt, F as At, G as jt, H as Mt, I as Nt, J as Pt, K as Ft, L as It, M as Lt, N as Rt, O as zt, P as Bt, Q as Vt, R as Ht, S as Ut, T as Wt, V as Gt, X as Kt, Y as qt, Z as Jt, _ as Yt, a as Xt, b as Zt, c as Qt, d as $t, f as en, g as tn, h as nn, j as rn, k as an, l as on, m as sn, n as cn, o as ln, p as un, q as dn, r as fn, s as pn, v as mn, w as hn, x as gn, y as _n, z as vn } from "./keys-BKFq19a2.js";
8
- import { t as yn } from "./useI18n-CxVEpurs.js";
9
- import { t as bn } from "./logger-BBlvSn6q.js";
10
- import { i as xn, r as Sn, s as Cn, t as wn } from "./usePopoverPosition-CwnH1o5g.js";
11
- import { r as Tn, t as En } from "./templateSettingsFields-YCFVBVYh.js";
12
- import { t as Dn } from "./createLucideIcon-DziKp5iU.js";
13
- import { t as On } from "./copy-BsKl4dcy.js";
14
- import { t as kn } from "./message-circle-BisdQ8H9.js";
15
- import { t as An } from "./trash-8ZD9pK_c.js";
16
- import { t as jn } from "./triangle-alert-pq45xEHl.js";
17
- import { t as Mn } from "./LoadingTrack-6XsqodoY.js";
18
- import { t as Nn } from "./_plugin-vue_export-helper-B3ysoDQm.js";
19
- import { t as Pn } from "./useEditorRoot-BD3piYtD.js";
20
- import "./useCloudI18n-Nwqo7pI_.js";
21
- import { t as Fn } from "./useMergeTag-5wMeDBi-.js";
22
- import { t as In } from "./useLogicTag-D-dI8H6p.js";
1
+ import { $ as e, A as t, At as n, B as r, D as i, E as a, F as o, J as s, K as c, M as l, N as u, O as d, R as f, S as p, V as m, W as h, Y as g, Z as _, _ as v, at as y, b, c as x, d as S, g as C, h as w, it as T, j as E, jt as D, k as O, kt as k, l as A, nt as j, r as M, rt as N, s as P, u as F, v as I, y as ee } from "./vue.runtime.esm-bundler-DV0Wx4r_.js";
2
+ import { c as L, o as te, s as ne } from "./runtime-dom.esm-bundler-DYn1z2Xf.js";
3
+ import { A as re, C as ie, Ct as ae, D as oe, F as se, H as ce, I as le, J as ue, L as de, M as fe, O as pe, P as me, Q as he, R as ge, S as _e, St as ve, T as ye, U as be, V as xe, Y as Se, Z as Ce, _t as we, a as Te, b as Ee, bt as De, d as Oe, dt as ke, et as Ae, ft as je, gt as Me, ht as Ne, j as Pe, k as Fe, l as Ie, lt as Le, m as Re, mt as ze, nt as Be, o as Ve, ot as He, p as Ue, pt as We, q as Ge, rt as Ke, s as qe, tt as Je, ut as Ye, vt as Xe, w as Ze, wt as Qe, xt as $e, yt as et } from "./dist-DBG3nh3k.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, g as mt, h as ht, l as gt, n as _t, p as vt, t as yt, u as bt, v as xt, w as St, x as Ct, y as wt } from "./socialIcons-Bwv-49EB.js";
5
+ import { _ as Tt, h as Et, v as Dt, y as Ot } from "./dist-Bv_GBr2l.js";
6
+ import { a as kt, c as At, i as jt } from "./dist-CCqn-RqE.js";
7
+ import { $ as Mt, A as Nt, B as Pt, C as Ft, D as It, E as Lt, F as Rt, G as zt, H as Bt, I as Vt, J as Ht, K as Ut, L as Wt, M as Gt, N as Kt, O as qt, P as Jt, Q as Yt, R as Xt, S as Zt, T as Qt, V as $t, X as en, Y as tn, Z as nn, _ as rn, a as an, b as on, c as sn, d as cn, f as ln, g as un, h as dn, j as fn, k as pn, l as mn, m as hn, n as gn, o as _n, p as vn, q as yn, r as bn, s as xn, v as Sn, w as Cn, x as wn, y as Tn, z as En } from "./keys-BymCnLHD.js";
8
+ import { t as Dn } from "./useI18n-CSh4gO5c.js";
9
+ import { t as On } from "./logger-BBlvSn6q.js";
10
+ import { i as kn, r as An, s as jn, t as Mn } from "./usePopoverPosition-CMcsMBtK.js";
11
+ import { r as Nn, t as Pn } from "./templateSettingsFields-YCFVBVYh.js";
12
+ import { t as Fn } from "./createLucideIcon-BcP1sjdp.js";
13
+ import { t as In } from "./copy-CUC43md_.js";
14
+ import { t as Ln } from "./message-circle-BLGzfv_7.js";
15
+ import { t as Rn } from "./trash-I3D2peFQ.js";
16
+ import { t as zn } from "./triangle-alert-CenxmLRE.js";
17
+ import { t as Bn } from "./LoadingTrack-BXOptf5g.js";
18
+ import { t as Vn } from "./_plugin-vue_export-helper-B3ysoDQm.js";
19
+ import { t as Hn } from "./useEditorRoot-BVm2-1N8.js";
20
+ import "./useCloudI18n-CGVEZV3o.js";
21
+ import { t as Un } from "./useMergeTag-C-iBLlp0.js";
22
+ import { t as Wn } from "./useLogicTag-zcI6BWIf.js";
23
+ import { t as Gn } from "./readableTextColor-f8Kykfnh.js";
23
24
  //#region src/utils/activeEditorTracker.ts
24
- var Ln = /* @__PURE__ */ new Set(), Rn = 0, zn = 0;
25
- function Bn() {
26
- let e = ++zn;
27
- return Ln.add(e), Rn === 0 && (Rn = e), {
25
+ var Kn = /* @__PURE__ */ new Set(), qn = 0, Jn = 0;
26
+ function Yn() {
27
+ let e = ++Jn;
28
+ return Kn.add(e), qn === 0 && (qn = e), {
28
29
  id: e,
29
- isActive: () => Ln.size <= 1 || Rn === e,
30
+ isActive: () => Kn.size <= 1 || qn === e,
30
31
  claim: () => {
31
- Rn = e;
32
+ qn = e;
32
33
  },
33
34
  dispose: () => {
34
- if (Ln.delete(e), Rn === e) {
35
- let e = Array.from(Ln);
36
- Rn = e[e.length - 1] ?? 0;
35
+ if (Kn.delete(e), qn === e) {
36
+ let e = Array.from(Kn);
37
+ qn = e[e.length - 1] ?? 0;
37
38
  }
38
39
  }
39
40
  };
40
41
  }
41
42
  //#endregion
42
43
  //#region src/composables/usePreviewResolution.ts
43
- var Vn = 500;
44
- function Hn(e) {
44
+ var Xn = 500;
45
+ function Zn(e) {
45
46
  let t = typeof e.resolvePreview == "function", n = _(null), r = _(!1), i = _(!1), a = 0, o = null;
46
47
  function c() {
47
48
  o !== null && (clearTimeout(o), o = null);
@@ -52,13 +53,13 @@ function Hn(e) {
52
53
  let o = ++a;
53
54
  r.value = !0;
54
55
  let s = {
55
- content: ze(e.getContent()),
56
+ content: Me(e.getContent()),
56
57
  ...e.getRecipient?.() === void 0 ? {} : { recipient: e.getRecipient() }
57
58
  };
58
59
  try {
59
60
  let e = await t(s);
60
61
  if (o !== a) return;
61
- if (!Se(e)) {
62
+ if (!Ke(e)) {
62
63
  i.value = !0;
63
64
  return;
64
65
  }
@@ -73,7 +74,7 @@ function Hn(e) {
73
74
  function u() {
74
75
  t && (c(), n.value === null ? l() : o = setTimeout(() => {
75
76
  o = null, l();
76
- }, Vn));
77
+ }, Xn));
77
78
  }
78
79
  return f(() => [e.isActive(), e.getRecipient?.()], ([e]) => {
79
80
  e ? u() : (c(), a++, r.value = !1, n.value = null, i.value = !1);
@@ -81,88 +82,16 @@ function Hn(e) {
81
82
  c(), a++;
82
83
  }), {
83
84
  isConfigured: t,
84
- content: N(() => n.value ?? e.getContent()),
85
+ content: P(() => n.value ?? e.getContent()),
85
86
  isResolving: r,
86
- isInitialResolve: N(() => r.value && n.value === null),
87
+ isInitialResolve: P(() => r.value && n.value === null),
87
88
  hasFailed: i,
88
- supersedesSamples: N(() => t)
89
+ supersedesSamples: P(() => t)
89
90
  };
90
91
  }
91
92
  //#endregion
92
- //#region src/composables/useImageUrlResolver.ts
93
- function Un(e) {
94
- let t = g(/* @__PURE__ */ new Map()), n = /* @__PURE__ */ new Set();
95
- function r(e) {
96
- return t.get(e);
97
- }
98
- function i(e) {
99
- return t.has(e) || n.has(e);
100
- }
101
- function a(r) {
102
- if (i(r)) return;
103
- let a;
104
- try {
105
- a = e(r);
106
- } catch {
107
- t.set(r, null);
108
- return;
109
- }
110
- a === null || typeof a == "string" ? t.set(r, a) : (n.add(r), Promise.resolve(a).then((e) => {
111
- t.set(r, typeof e == "string" ? e : null);
112
- }, () => {
113
- t.set(r, null);
114
- }).finally(() => n.delete(r)));
115
- }
116
- return {
117
- get: r,
118
- has: i,
119
- lookup: a
120
- };
121
- }
122
- function Wn(e) {
123
- let t = p(gn, null), n = N(e);
124
- if (!t) return n;
125
- let r;
126
- function i() {
127
- r !== void 0 && (clearTimeout(r), r = void 0);
128
- }
129
- h() && s(i);
130
- let a = !0;
131
- return f(n, (e) => {
132
- i();
133
- let n = a;
134
- a = !1, e && !t.has(e) && (n ? t.lookup(e) : r = setTimeout(() => {
135
- r = void 0, t.lookup(e);
136
- }, 300));
137
- }, { immediate: !0 }), N(() => {
138
- let e = n.value;
139
- if (!e) return e;
140
- let r = t.get(e);
141
- return typeof r == "string" && r.length > 0 ? r : e;
142
- });
143
- }
144
- function Gn(e, t) {
145
- if (!e || !t) return t;
146
- let n = e.get(t);
147
- return typeof n == "string" && n.length > 0 ? n : t;
148
- }
149
- function Kn(e, t) {
150
- return typeof e?.url == "string" && Ce(e.url, t);
151
- }
152
- function qn(e, t) {
153
- let n = e?.url;
154
- if (typeof n == "string" && n.trim() !== "") return Ce(n, t) ? void 0 : n;
155
- }
156
- function Jn(e) {
157
- let t = p(Bt, Ye.liquid), n = Wn(() => qn(e(), t));
158
- return N(() => Kn(e(), t) ? null : n.value);
159
- }
160
- function Yn(e, t, n) {
161
- return Kn(t, n) ? null : Gn(e, qn(t, n));
162
- }
163
- //#endregion
164
93
  //#region src/composables/useMergeTagPicker.ts
165
- function Xn() {
94
+ function Qn() {
166
95
  let e = _(!1), t = _([]), n = _(null), r = null;
167
96
  function i(i, a) {
168
97
  if (r) {
@@ -193,7 +122,7 @@ function Xn() {
193
122
  }
194
123
  //#endregion
195
124
  //#region src/composables/useLogicTagPicker.ts
196
- function Zn() {
125
+ function $n() {
197
126
  let e = _(!1), t = _([]), n = _([]), r = null;
198
127
  function i(i, a) {
199
128
  if (r) {
@@ -224,17 +153,17 @@ function Zn() {
224
153
  }
225
154
  //#endregion
226
155
  //#region src/composables/useTemplateLint.ts
227
- function Qn(e) {
156
+ function er(e) {
228
157
  return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 : !1;
229
158
  }
230
- function $n(t) {
231
- let n = _([]), r = _(!1), i = _(!1), a = e(null), o = Qn(t.options), s = null, c = !1;
159
+ function tr(t) {
160
+ let n = _([]), r = _(!1), i = _(!1), a = e(null), o = er(t.options), s = null, c = !1;
232
161
  o || l();
233
162
  async function l() {
234
163
  try {
235
164
  let e = await import("@templatical/quality");
236
165
  if (c) return;
237
- a.value = { lintTemplate: e.lintTemplate }, r.value = !0, u(), s = bt(t.content, u, {
166
+ a.value = { lintTemplate: e.lintTemplate }, r.value = !0, u(), s = Ot(t.content, u, {
238
167
  debounce: t.debounce ?? 500,
239
168
  deep: !0
240
169
  });
@@ -269,7 +198,7 @@ function $n(t) {
269
198
  }
270
199
  //#endregion
271
200
  //#region src/composables/useKeyboardReorder.ts
272
- function er(e, t, n = []) {
201
+ function nr(e, t, n = []) {
273
202
  let r = _(null), i = _(""), a = null;
274
203
  function o(t) {
275
204
  let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
@@ -296,7 +225,7 @@ function er(e, t, n = []) {
296
225
  let i = o(r);
297
226
  if (!i) return "";
298
227
  let a = (i.sectionId ? c(i.sectionId, i.columnIndex ?? 0) : e.content.value.blocks)?.[i.index];
299
- return a ? ot(a, t.t, n) : "";
228
+ return a ? lt(a, t.t, n) : "";
300
229
  }
301
230
  function c(t, n) {
302
231
  return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
@@ -365,13 +294,13 @@ function er(e, t, n = []) {
365
294
  }
366
295
  //#endregion
367
296
  //#region src/composables/useUiTheme.ts
368
- function tr(e) {
369
- let t = St("(prefers-color-scheme: dark)");
370
- return { resolvedTheme: N(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
297
+ function rr(e) {
298
+ let t = At("(prefers-color-scheme: dark)");
299
+ return { resolvedTheme: P(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
371
300
  }
372
301
  //#endregion
373
302
  //#region src/composables/useThemeStyles.ts
374
- var nr = {
303
+ var ir = {
375
304
  bg: "--tpl-bg",
376
305
  bgElevated: "--tpl-bg-elevated",
377
306
  bgHover: "--tpl-bg-hover",
@@ -395,10 +324,10 @@ var nr = {
395
324
  dangerLight: "--tpl-danger-light",
396
325
  canvasBg: "--tpl-canvas-bg"
397
326
  };
398
- function rr({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
399
- return { themeStyles: N(() => {
327
+ function ar({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
328
+ return { themeStyles: P(() => {
400
329
  let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
401
- if (a) for (let [e, t] of Object.entries(nr)) {
330
+ if (a) for (let [e, t] of Object.entries(ir)) {
402
331
  let n = a[e];
403
332
  n && (r[t] = n);
404
333
  }
@@ -407,7 +336,7 @@ function rr({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
407
336
  }
408
337
  //#endregion
409
338
  //#region src/composables/useBlockRegistry.ts
410
- function ir() {
339
+ function or() {
411
340
  let t = e(/* @__PURE__ */ new Map());
412
341
  function n(e, n) {
413
342
  t.value.set(e, n), T(t);
@@ -415,7 +344,7 @@ function ir() {
415
344
  function r(e, n) {
416
345
  let r = `custom:${e.type}`, i = {
417
346
  component: n,
418
- createBlock: () => ge(e),
347
+ createBlock: () => ye(e),
419
348
  definition: e
420
349
  };
421
350
  t.value.set(r, i), T(t);
@@ -447,7 +376,7 @@ function ir() {
447
376
  strictFilters: !1
448
377
  }).parseAndRender(t.template, e.fieldValues);
449
378
  } catch (t) {
450
- return bn.error(`Failed to render custom block "${e.customType}":`, t), s(`Render error: ${e.customType}`);
379
+ return On.error(`Failed to render custom block "${e.customType}":`, t), s(`Render error: ${e.customType}`);
451
380
  }
452
381
  }
453
382
  function l(e) {
@@ -465,9 +394,9 @@ function ir() {
465
394
  }
466
395
  //#endregion
467
396
  //#region src/composables/useCustomBlockStylesheets.ts
468
- function ar(e, t) {
469
- return N(() => {
470
- let n = or(e.value.blocks);
397
+ function sr(e, t) {
398
+ return P(() => {
399
+ let n = cr(e.value.blocks);
471
400
  if (n.size === 0) return [];
472
401
  let r = /* @__PURE__ */ new Set(), i = [];
473
402
  for (let e of n) {
@@ -479,76 +408,76 @@ function ar(e, t) {
479
408
  return i;
480
409
  });
481
410
  }
482
- function or(e) {
411
+ function cr(e) {
483
412
  let t = /* @__PURE__ */ new Set();
484
- return sr(e, t), t;
413
+ return lr(e, t), t;
485
414
  }
486
- function sr(e, t) {
487
- for (let n of e) if (ce(n)) t.add(n.customType);
415
+ function lr(e, t) {
416
+ for (let n of e) if (Ae(n)) t.add(n.customType);
488
417
  else if (n.type === "section") {
489
418
  let e = n.children;
490
419
  if (!e) continue;
491
- for (let n of e) sr(n, t);
492
- } else je(n) && sr(n.children, t);
420
+ for (let n of e) lr(n, t);
421
+ } else He(n) && lr(n.children, t);
493
422
  }
494
423
  //#endregion
495
424
  //#region src/utils/registerBuiltInBlocks.ts
496
- var cr = [
425
+ var ur = [
497
426
  {
498
427
  type: "section",
499
- createBlock: Re
428
+ createBlock: fe
500
429
  },
501
430
  {
502
431
  type: "title",
503
- createBlock: me
432
+ createBlock: de
504
433
  },
505
434
  {
506
435
  type: "paragraph",
507
- createBlock: pe
436
+ createBlock: Pe
508
437
  },
509
438
  {
510
439
  type: "image",
511
- createBlock: ae
440
+ createBlock: Fe
512
441
  },
513
442
  {
514
443
  type: "button",
515
- createBlock: De
444
+ createBlock: ie
516
445
  },
517
446
  {
518
447
  type: "divider",
519
- createBlock: Ze
448
+ createBlock: oe
520
449
  },
521
450
  {
522
451
  type: "video",
523
- createBlock: oe
452
+ createBlock: ge
524
453
  },
525
454
  {
526
455
  type: "social",
527
- createBlock: Le
456
+ createBlock: me
528
457
  },
529
458
  {
530
459
  type: "menu",
531
- createBlock: ie
460
+ createBlock: re
532
461
  },
533
462
  {
534
463
  type: "table",
535
- createBlock: fe
464
+ createBlock: le
536
465
  },
537
466
  {
538
467
  type: "spacer",
539
- createBlock: de
468
+ createBlock: se
540
469
  },
541
470
  {
542
471
  type: "html",
543
- createBlock: _e
472
+ createBlock: pe
544
473
  },
545
474
  {
546
475
  type: "countdown",
547
- createBlock: Qe
476
+ createBlock: Ze
548
477
  }
549
478
  ];
550
- function lr(e, t) {
551
- for (let n of cr) {
479
+ function dr(e, t) {
480
+ for (let n of ur) {
552
481
  let r = t[n.type];
553
482
  r && e.registerBuiltIn(n.type, {
554
483
  component: r,
@@ -558,23 +487,23 @@ function lr(e, t) {
558
487
  }
559
488
  //#endregion
560
489
  //#region src/utils/resolveHtmlBlockPreview.ts
561
- function ur(e) {
490
+ function fr(e) {
562
491
  return typeof e == "boolean" ? e : e?.enabled ?? !1;
563
492
  }
564
493
  //#endregion
565
494
  //#region src/utils/collectOffPaletteDefaults.ts
566
- function dr(e) {
495
+ function pr(e) {
567
496
  return typeof e == "object" && !!e && !Array.isArray(e);
568
497
  }
569
- function fr(e, t, n) {
570
- let r = new Set(e.map((e) => Sn(e))), i = [], a = (e, t) => {
571
- for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(Sn(o)) && i.push(`${t}.${n}: ${o}`) : dr(o) && a(o, `${t}.${n}`);
498
+ function mr(e, t, n) {
499
+ let r = new Set(e.map((e) => An(e))), i = [], a = (e, t) => {
500
+ for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(An(o)) && i.push(`${t}.${n}: ${o}`) : pr(o) && a(o, `${t}.${n}`);
572
501
  }, o = t;
573
502
  for (let [e, t] of Object.entries(Te)) {
574
503
  let n = o?.[e];
575
504
  a({
576
505
  ...t,
577
- ...dr(n) ? n : {}
506
+ ...pr(n) ? n : {}
578
507
  }, e);
579
508
  }
580
509
  return a({
@@ -584,7 +513,7 @@ function fr(e, t, n) {
584
513
  }
585
514
  //#endregion
586
515
  //#region src/utils/localizedBlockDefaults.ts
587
- function pr(e) {
516
+ function hr(e) {
588
517
  return {
589
518
  title: { content: `<p>${e.blockDefaults.title}</p>` },
590
519
  paragraph: { content: `<p>${e.blockDefaults.paragraph}</p>` },
@@ -593,63 +522,63 @@ function pr(e) {
593
522
  }
594
523
  //#endregion
595
524
  //#region src/i18n/index.ts
596
- var mr = /* #__PURE__ */ Object.assign({
597
- "./locales/ca.ts": () => import("./ca-DMoGGP9L.js"),
598
- "./locales/de.ts": () => import("./de-DgAelLbM.js"),
599
- "./locales/en.ts": () => import("./en-Dekrl7HA.js"),
600
- "./locales/es.ts": () => import("./es-BaZzyidV.js"),
601
- "./locales/fr.ts": () => import("./fr-C5ucb1HK.js"),
602
- "./locales/ja.ts": () => import("./ja-CUgR3mV0.js"),
603
- "./locales/nl.ts": () => import("./nl-qrLY7hMS.js"),
604
- "./locales/pt-BR.ts": () => import("./pt-BR-C6hMTQYi.js")
605
- }), hr = /* #__PURE__ */ Object.assign({
606
- "./locales/cloud/de.ts": () => import("./de-mMY5yQJu.js"),
607
- "./locales/cloud/en.ts": () => import("./en-ChVeGQBY.js"),
608
- "./locales/cloud/pt-BR.ts": () => import("./pt-BR-CoCwRUi0.js")
525
+ var gr = /* #__PURE__ */ Object.assign({
526
+ "./locales/ca.ts": () => import("./ca-DSJwJ5ov.js"),
527
+ "./locales/de.ts": () => import("./de-CBE6O79z.js"),
528
+ "./locales/en.ts": () => import("./en-CDexnk0p.js"),
529
+ "./locales/es.ts": () => import("./es-BE42B6uN.js"),
530
+ "./locales/fr.ts": () => import("./fr-DlJFPDQR.js"),
531
+ "./locales/ja.ts": () => import("./ja-CUT8gkNI.js"),
532
+ "./locales/nl.ts": () => import("./nl-bXWqqRyS.js"),
533
+ "./locales/pt-BR.ts": () => import("./pt-BR-2_H4-wlb.js")
534
+ }), _r = /* #__PURE__ */ Object.assign({
535
+ "./locales/cloud/de.ts": () => import("./de-D_atmUVB.js"),
536
+ "./locales/cloud/en.ts": () => import("./en-DhJLnaBx.js"),
537
+ "./locales/cloud/pt-BR.ts": () => import("./pt-BR-BphMoUTw.js")
609
538
  });
610
- function gr(e) {
539
+ function vr(e) {
611
540
  return Object.keys(e).map((e) => e.match(/\/([^/]+)\.ts$/)?.[1]).filter((e) => !!e);
612
541
  }
613
- var _r = gr(mr), vr = gr(hr);
614
- function yr(e) {
542
+ var yr = vr(gr), br = vr(_r);
543
+ function xr(e) {
615
544
  return e.trim().replace(/_/g, "-").toLowerCase();
616
545
  }
617
- function br(e, t) {
618
- let n = yr(e);
619
- return t.find((e) => yr(e) === n);
546
+ function Sr(e, t) {
547
+ let n = xr(e);
548
+ return t.find((e) => xr(e) === n);
620
549
  }
621
- function xr(e) {
622
- return yr(e).split("-")[0];
550
+ function Cr(e) {
551
+ return xr(e).split("-")[0];
623
552
  }
624
- function Sr(e, t) {
625
- return br(e, t) ?? br(xr(e), t);
553
+ function wr(e, t) {
554
+ return Sr(e, t) ?? Sr(Cr(e), t);
626
555
  }
627
- function Cr(e, t) {
628
- return Sr(e, t) ?? "en";
556
+ function Tr(e, t) {
557
+ return wr(e, t) ?? "en";
629
558
  }
630
- async function wr(e) {
631
- let t = mr[`./locales/${Cr(e, _r)}.ts`];
559
+ async function Er(e) {
560
+ let t = gr[`./locales/${Tr(e, yr)}.ts`];
632
561
  return (await t()).default;
633
562
  }
634
- async function Tr(e) {
635
- let t = hr[`./locales/cloud/${Cr(e, vr)}.ts`];
563
+ async function Dr(e) {
564
+ let t = _r[`./locales/cloud/${Tr(e, br)}.ts`];
636
565
  return (await t()).default;
637
566
  }
638
- function Er(e) {
639
- return Sr(e, _r) !== void 0;
567
+ function Or(e) {
568
+ return wr(e, yr) !== void 0;
640
569
  }
641
- function Dr(e) {
642
- return Sr(e, vr) !== void 0;
570
+ function kr(e) {
571
+ return wr(e, br) !== void 0;
643
572
  }
644
- function Or() {
645
- return [..._r];
573
+ function Ar() {
574
+ return [...yr];
646
575
  }
647
- function kr() {
648
- return [...vr];
576
+ function jr() {
577
+ return [...br];
649
578
  }
650
579
  //#endregion
651
580
  //#region src/i18n/contentDefaults.ts
652
- var Ar = {
581
+ var Mr = {
653
582
  en: {
654
583
  video: "Video",
655
584
  days: "Days",
@@ -715,17 +644,17 @@ var Ar = {
715
644
  expired: "このオファーは終了しました"
716
645
  }
717
646
  };
718
- Object.keys(Ar);
719
- var jr = new Map(Object.keys(Ar).map((e) => [e.toLowerCase(), e]));
720
- function Mr(e) {
721
- if (!e) return Ar.en;
722
- let t = e.trim().replace(/_/g, "-").toLowerCase(), n = jr.get(t);
723
- if (n) return Ar[n];
724
- let r = jr.get(xr(t));
725
- return r ? Ar[r] : Ar.en;
726
- }
727
- function Nr(e) {
728
- let t = Mr(e);
647
+ Object.keys(Mr);
648
+ var Nr = new Map(Object.keys(Mr).map((e) => [e.toLowerCase(), e]));
649
+ function Pr(e) {
650
+ if (!e) return Mr.en;
651
+ let t = e.trim().replace(/_/g, "-").toLowerCase(), n = Nr.get(t);
652
+ if (n) return Mr[n];
653
+ let r = Nr.get(Cr(t));
654
+ return r ? Mr[r] : Mr.en;
655
+ }
656
+ function Fr(e) {
657
+ let t = Pr(e);
729
658
  return {
730
659
  video: { alt: t.video },
731
660
  countdown: {
@@ -739,9 +668,9 @@ function Nr(e) {
739
668
  }
740
669
  //#endregion
741
670
  //#region src/utils/collectColorFieldIssues.ts
742
- function Pr(e, t) {
671
+ function Ir(e, t) {
743
672
  let n = [], r = (r, i) => {
744
- let a = at(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
673
+ let a = Ct(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
745
674
  if (a.invalidPresets.length > 0 && n.push({
746
675
  id: s("invalid-presets"),
747
676
  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." : "")
@@ -752,8 +681,8 @@ function Pr(e, t) {
752
681
  id: s("allow-custom-ignored"),
753
682
  message: `${o}: allowCustom: true is ignored because colors.allowCustom is false — a field can narrow the editor-wide palette, never unlock it.`
754
683
  }), !a.allowCustom && a.presets.length > 0) {
755
- let e = r.default ?? "", t = new Set(a.presets.map((e) => Sn(e)));
756
- e !== "" && !t.has(Sn(e)) && n.push({
684
+ let e = r.default ?? "", t = new Set(a.presets.map((e) => An(e)));
685
+ e !== "" && !t.has(An(e)) && n.push({
757
686
  id: s("off-palette-default"),
758
687
  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.`
759
688
  });
@@ -765,7 +694,7 @@ function Pr(e, t) {
765
694
  }
766
695
  //#endregion
767
696
  //#region src/utils/keyboardShortcuts.ts
768
- function Fr(e) {
697
+ function Lr(e) {
769
698
  for (let t of e.composedPath()) {
770
699
  if (!(t instanceof HTMLElement)) continue;
771
700
  if (t.isContentEditable) return !0;
@@ -774,14 +703,14 @@ function Fr(e) {
774
703
  }
775
704
  return !1;
776
705
  }
777
- function Ir(e, t) {
706
+ function Rr(e, t) {
778
707
  let n = e.metaKey || e.ctrlKey;
779
708
  if (n && e.key.toLowerCase() === "s") e.preventDefault(), t.onSave?.();
780
709
  else if (n && e.key.toLowerCase() === "z") {
781
- if (Fr(e)) return;
782
- e.preventDefault(), e.shiftKey ? t.history.redo() : (t.onBeforeUndo?.(), t.history.undo());
710
+ if (Lr(e)) return;
711
+ e.preventDefault(), e.shiftKey ? t.history.redo() : t.history.undo();
783
712
  } else {
784
- if (t.isPicking?.() && !Fr(e)) {
713
+ if (t.isPicking?.() && !Lr(e)) {
785
714
  if (e.key === "Escape") {
786
715
  e.preventDefault(), t.onCancelPick?.();
787
716
  return;
@@ -795,78 +724,105 @@ function Ir(e, t) {
795
724
  return;
796
725
  }
797
726
  }
798
- e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Fr(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
727
+ e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Lr(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
799
728
  }
800
729
  }
801
730
  //#endregion
802
731
  //#region src/utils/blockComponentResolver.ts
803
- function Lr(e, t) {
732
+ function zr(e, t) {
804
733
  let n = { fontFamily: t(e.fontFamily) };
805
734
  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;
806
735
  }
807
- function Rr(e, t, n) {
736
+ function Br(e, t, n) {
808
737
  if (t) {
809
738
  let n = t.getComponent(e);
810
739
  if (n) return n;
811
740
  }
812
741
  return n[e.type] ?? null;
813
742
  }
814
- var zr = "--tpl-block-bg-layer", Br = "tpl-has-bg-image";
815
- function Vr(e, t) {
743
+ var Vr = "--tpl-block-bg-layer", Hr = "tpl-has-bg-image";
744
+ function Ur(e, t) {
816
745
  if (t === null) return {};
817
- let n = Ke(e);
746
+ let n = Le(e);
818
747
  if (n === null) return {};
819
- let r = t?.trim(), i = r ? he(r) : n.url;
748
+ let r = t?.trim(), i = r ? ce(r) : n.url;
820
749
  return {
821
750
  backgroundImage: `url("${i}")`,
822
751
  backgroundSize: n.size,
823
752
  backgroundPosition: n.position,
824
753
  backgroundRepeat: n.repeat,
825
- [zr]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
754
+ [Vr]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
755
+ };
756
+ }
757
+ function Wr(e) {
758
+ return e && Vr in e ? Hr : void 0;
759
+ }
760
+ var Gr = {
761
+ top: "flex-start",
762
+ middle: "center",
763
+ bottom: "flex-end"
764
+ };
765
+ function Kr(e, t) {
766
+ 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}` };
767
+ return {
768
+ display: "flex",
769
+ flexDirection: "column",
770
+ justifyContent: Gr[e.verticalAlign],
771
+ boxSizing: "border-box",
772
+ ...n
826
773
  };
827
774
  }
828
- function Hr(e) {
829
- return e && zr in e ? Br : void 0;
775
+ function qr(e, t) {
776
+ return Math.max(1, Math.round(Math.max(1, Math.round(e)) * t));
830
777
  }
831
- function Ur(e, t = {}) {
778
+ function Jr(e, t = {}) {
832
779
  if (e.type === "wrapper") return {};
833
780
  let { padding: n, backgroundColor: r } = e.styles, i = {
834
781
  padding: `${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`,
835
782
  backgroundColor: r || "transparent"
836
783
  };
837
- if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? Oe.paragraphGap : Oe.paragraphGap}px`), e.type === "section") {
838
- let n = we(e.borderRadius);
839
- n !== null && (i.borderRadius = n), Object.assign(i, Gr(e.border)), Object.assign(i, Vr(e.backgroundImage, t.backgroundImageUrl));
784
+ if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? Ie.paragraphGap : Ie.paragraphGap}px`), e.type === "section") {
785
+ let n = Qe(e.borderRadius);
786
+ n !== null && (i.borderRadius = n);
787
+ let r = je(e);
788
+ r?.applied && e.backgroundImage ? (Object.assign(i, Kr(r, t.heroBoxWidth)), Object.assign(i, Ur({
789
+ ...e.backgroundImage,
790
+ size: "cover",
791
+ repeat: !1
792
+ }, t.backgroundImageUrl))) : (Object.assign(i, Xr(e.border)), Object.assign(i, Ur(e.backgroundImage, t.backgroundImageUrl)));
840
793
  }
841
794
  return i;
842
795
  }
843
- function Wr(e, t, n) {
844
- return e.type === "section" ? Ur(e, { backgroundImageUrl: Yn(t, e.backgroundImage, n) }) : Ur(e);
796
+ function Yr(e, t, n, r) {
797
+ return e.type === "section" ? Jr(e, {
798
+ backgroundImageUrl: rt(t, e.backgroundImage, n),
799
+ heroBoxWidth: r
800
+ }) : Jr(e);
845
801
  }
846
- function Gr(e) {
802
+ function Xr(e) {
847
803
  let t = {};
848
- for (let [n, r] of Object.entries(Pe(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
804
+ for (let [n, r] of Object.entries(ae(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
849
805
  return t;
850
806
  }
851
- function Kr(e, t = {}) {
807
+ function Zr(e, t = {}) {
852
808
  if (e.type !== "section" || !e.wrapper) return null;
853
809
  let n = e.wrapper, r = {};
854
810
  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`);
855
- let i = we(n.borderRadius);
856
- return i !== null && (r.borderRadius = i), Object.assign(r, Vr(n.backgroundImage, t.backgroundImageUrl)), r;
811
+ let i = Qe(n.borderRadius);
812
+ return i !== null && (r.borderRadius = i), Object.assign(r, Ur(n.backgroundImage, t.backgroundImageUrl)), r;
857
813
  }
858
- function qr(e, t = {}) {
814
+ function Qr(e, t = {}) {
859
815
  if (e.type !== "wrapper") return null;
860
816
  let n = {};
861
817
  if (e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding) {
862
818
  let t = e.styles.padding;
863
819
  n.padding = `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`;
864
820
  }
865
- return e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, Vr(e.backgroundImage, t.backgroundImageUrl)), n;
821
+ return e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, Ur(e.backgroundImage, t.backgroundImageUrl)), n;
866
822
  }
867
823
  //#endregion
868
824
  //#region src/utils/mergeTagLabelSegments.ts
869
- function Jr(e, t, n, r = !1) {
825
+ function $r(e, t, n, r = !1) {
870
826
  if (!e) return [];
871
827
  let i = RegExp(`(${n.value.source}|${n.logic.source})`, "g"), a = [], o = 0, s;
872
828
  for (; (s = i.exec(e)) !== null;) {
@@ -875,18 +831,18 @@ function Jr(e, t, n, r = !1) {
875
831
  value: e.slice(o, s.index)
876
832
  });
877
833
  let i = s[0];
878
- if (be(i, n)) {
879
- let e = r ? ye(i, t) : void 0;
834
+ if (Be(i, n)) {
835
+ let e = r ? Se(i, t) : void 0;
880
836
  a.push(e === void 0 ? {
881
837
  type: "tag",
882
- value: ve(i, t)
838
+ value: ue(i, t)
883
839
  } : {
884
840
  type: "text",
885
841
  value: e
886
842
  });
887
- } else xe(i, n) ? a.push({
843
+ } else Je(i, n) ? a.push({
888
844
  type: "tag",
889
- value: se(i, n)
845
+ value: Ge(i, n)
890
846
  }) : a.push({
891
847
  type: "text",
892
848
  value: i
@@ -900,27 +856,27 @@ function Jr(e, t, n, r = !1) {
900
856
  }
901
857
  //#endregion
902
858
  //#region src/components/MergeTagPreviewText.vue
903
- var Yr = F({
859
+ var ei = I({
904
860
  name: "MergeTagPreviewText",
905
861
  props: { text: {
906
862
  type: String,
907
863
  required: !0
908
864
  } },
909
865
  setup(e) {
910
- let t = p(zt, At), n = p(Bt, Ye.liquid), r = p(Vt, null), i = N(() => Jr(e.text, t.value, n, r?.value ?? !1));
866
+ let t = p(qt, Rt), n = p(Jt, Oe.liquid), r = p(Yt, null), i = P(() => $r(e.text, t.value, n, r?.value ?? !1));
911
867
  return () => i.value.map((e, t) => e.type === "tag" ? b("span", {
912
868
  key: t,
913
869
  class: "tpl-merge-tag-label"
914
870
  }, e.value) : e.value);
915
871
  }
916
- }), Xr = ["href"], Zr = /* @__PURE__ */ F({
872
+ }), ti = ["href"], ni = /* @__PURE__ */ I({
917
873
  __name: "ButtonBlock",
918
874
  props: {
919
875
  block: {},
920
876
  viewport: {}
921
877
  },
922
878
  setup(e) {
923
- let r = e, i = wt(mn, "ButtonBlock"), a = N(() => {
879
+ let r = e, i = Mt(Sn, "ButtonBlock"), a = P(() => {
924
880
  let e = {
925
881
  display: "inline-block",
926
882
  padding: `${r.block.buttonPadding.top}px ${r.block.buttonPadding.right}px ${r.block.buttonPadding.bottom}px ${r.block.buttonPadding.left}px`,
@@ -929,26 +885,26 @@ var Yr = F({
929
885
  fontSize: `${r.block.fontSize}px`,
930
886
  fontWeight: "bold",
931
887
  textDecoration: "none",
932
- borderRadius: typeof r.block.borderRadius == "number" ? `${r.block.borderRadius}px` : we(r.block.borderRadius) ?? "0px",
888
+ borderRadius: typeof r.block.borderRadius == "number" ? `${r.block.borderRadius}px` : Qe(r.block.borderRadius) ?? "0px",
933
889
  textAlign: "center"
934
890
  };
935
- return Object.assign(e, Gr(r.block.border)), r.block.fontFamily && (e.fontFamily = i.resolveFontFamily(r.block.fontFamily)), r.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof r.block.width == "number" && (e.width = `${r.block.width}px`, e.boxSizing = "border-box"), e;
936
- }), o = N(() => ({ textAlign: r.block.align ?? "center" }));
891
+ return Object.assign(e, Xr(r.block.border)), r.block.fontFamily && (e.fontFamily = i.resolveFontFamily(r.block.fontFamily)), r.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof r.block.width == "number" && (e.width = `${r.block.width}px`, e.boxSizing = "border-box"), e;
892
+ }), o = P(() => ({ textAlign: r.block.align ?? "center" }));
937
893
  return (r, i) => (t(), S("div", { style: n(o.value) }, [x("a", {
938
894
  href: e.block.url || "#",
939
895
  style: n(a.value),
940
896
  class: "tpl:cursor-default",
941
- onClick: i[0] ||= I(() => {}, ["prevent"])
942
- }, [C(Yr, { text: e.block.text }, null, 8, ["text"])], 12, Xr)], 4));
897
+ onClick: i[0] ||= L(() => {}, ["prevent"])
898
+ }, [C(ei, { text: e.block.text }, null, 8, ["text"])], 12, ti)], 4));
943
899
  }
944
- }), Qr = Dn({
900
+ }), ri = Fn({
945
901
  name: "bookmark",
946
902
  size: 24,
947
903
  node: [["path", {
948
904
  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",
949
905
  key: "oz39mx"
950
906
  }]]
951
- }), $r = Dn({
907
+ }), ii = Fn({
952
908
  name: "box",
953
909
  size: 24,
954
910
  node: [
@@ -965,7 +921,7 @@ var Yr = F({
965
921
  key: "d0xqtd"
966
922
  }]
967
923
  ]
968
- }), ei = Dn({
924
+ }), ai = Fn({
969
925
  name: "eye-off",
970
926
  size: 24,
971
927
  node: [
@@ -986,7 +942,7 @@ var Yr = F({
986
942
  key: "1ooewy"
987
943
  }]
988
944
  ]
989
- }), ti = Dn({
945
+ }), oi = Fn({
990
946
  name: "funnel",
991
947
  size: 24,
992
948
  node: [["path", {
@@ -994,7 +950,7 @@ var Yr = F({
994
950
  key: "sc7q7i"
995
951
  }]],
996
952
  aliases: ["filter"]
997
- }), ni = Dn({
953
+ }), si = Fn({
998
954
  name: "grip-vertical",
999
955
  size: 24,
1000
956
  node: [
@@ -1035,14 +991,14 @@ var Yr = F({
1035
991
  key: "f4zoj3"
1036
992
  }]
1037
993
  ]
1038
- }), ri = Dn({
994
+ }), ci = Fn({
1039
995
  name: "puzzle",
1040
996
  size: 24,
1041
997
  node: [["path", {
1042
998
  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",
1043
999
  key: "w46dr5"
1044
1000
  }]]
1045
- }), ii = Dn({
1001
+ }), li = Fn({
1046
1002
  name: "video",
1047
1003
  size: 24,
1048
1004
  node: [["path", {
@@ -1056,18 +1012,18 @@ var Yr = F({
1056
1012
  rx: "2",
1057
1013
  key: "158x01"
1058
1014
  }]]
1059
- }), ai = ["innerHTML"], oi = [
1015
+ }), ui = ["innerHTML"], di = [
1060
1016
  "src",
1061
1017
  "width",
1062
1018
  "height"
1063
- ], si = /* @__PURE__ */ F({
1019
+ ], fi = /* @__PURE__ */ I({
1064
1020
  __name: "CustomBlockIcon",
1065
1021
  props: {
1066
1022
  icon: {},
1067
1023
  size: {}
1068
1024
  },
1069
1025
  setup(e) {
1070
- let r = e, i = N(() => r.size ?? 20), a = N(() => r.icon && (r.icon.trimStart().startsWith("<svg") || r.icon.trimStart().startsWith("<SVG"))), o = N(() => r.icon && !a.value && (r.icon.startsWith("http") || r.icon.startsWith("/")));
1026
+ let r = e, i = P(() => r.size ?? 20), a = P(() => r.icon && (r.icon.trimStart().startsWith("<svg") || r.icon.trimStart().startsWith("<SVG"))), o = P(() => r.icon && !a.value && (r.icon.startsWith("http") || r.icon.startsWith("/")));
1071
1027
  return (r, s) => a.value ? (t(), S("span", {
1072
1028
  key: 0,
1073
1029
  class: "tpl:inline-flex tpl:items-center tpl:justify-center",
@@ -1076,24 +1032,24 @@ var Yr = F({
1076
1032
  height: `${i.value}px`
1077
1033
  }),
1078
1034
  innerHTML: e.icon
1079
- }, null, 12, ai)) : o.value ? (t(), S("img", {
1035
+ }, null, 12, ui)) : o.value ? (t(), S("img", {
1080
1036
  key: 1,
1081
1037
  src: e.icon,
1082
1038
  width: i.value,
1083
1039
  height: i.value,
1084
1040
  class: "tpl:inline-block",
1085
1041
  alt: ""
1086
- }, null, 8, oi)) : (t(), A(y($r), {
1042
+ }, null, 8, di)) : (t(), A(y(ii), {
1087
1043
  key: 2,
1088
1044
  size: i.value,
1089
1045
  "stroke-width": 1.5
1090
1046
  }, null, 8, ["size"]));
1091
1047
  }
1092
- }), ci = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
1093
- function li(e, t) {
1094
- let n = Pn(), r = null, i = null, a = null;
1048
+ }), pi = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
1049
+ function mi(e, t) {
1050
+ let n = Hn(), r = null, i = null, a = null;
1095
1051
  function o() {
1096
- return e.value ? Array.from(e.value.querySelectorAll(ci)).filter((e) => e.offsetParent !== null) : [];
1052
+ return e.value ? Array.from(e.value.querySelectorAll(pi)).filter((e) => e.offsetParent !== null) : [];
1097
1053
  }
1098
1054
  function c(e) {
1099
1055
  if (e.key !== "Tab") return;
@@ -1108,7 +1064,7 @@ function li(e, t) {
1108
1064
  a = null;
1109
1065
  let t = o();
1110
1066
  t.length > 0 && (e.value?.querySelector("[autofocus], input:not([disabled])") ?? t[0]).focus();
1111
- }), i = xt(e, "keydown", c);
1067
+ }), i = kt(e, "keydown", c);
1112
1068
  }
1113
1069
  function u(e = {}) {
1114
1070
  let t = e.restoreFocus !== !1;
@@ -1123,8 +1079,8 @@ function li(e, t) {
1123
1079
  }
1124
1080
  //#endregion
1125
1081
  //#region src/composables/useEmoji.ts
1126
- function ui() {
1127
- let [t, n] = yt(!1), r = e([]), i = !1;
1082
+ function hi() {
1083
+ let [t, n] = Dt(!1), r = e([]), i = !1;
1128
1084
  s(() => {
1129
1085
  i = !0;
1130
1086
  }), f(t, async (e) => {
@@ -1149,7 +1105,7 @@ function ui() {
1149
1105
  }
1150
1106
  //#endregion
1151
1107
  //#region src/composables/useFonts.ts
1152
- var di = [
1108
+ var gi = [
1153
1109
  {
1154
1110
  value: "Arial",
1155
1111
  label: "Arial"
@@ -1178,19 +1134,19 @@ var di = [
1178
1134
  value: "Courier New",
1179
1135
  label: "Courier New"
1180
1136
  }
1181
- ], fi = "Arial, sans-serif";
1182
- function pi(e) {
1183
- if (e === void 0 || e === !0) return [...di];
1137
+ ], _i = "Arial, sans-serif";
1138
+ function vi(e) {
1139
+ if (e === void 0 || e === !0) return [...gi];
1184
1140
  if (e === !1) return [];
1185
1141
  let t = [], n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
1186
1142
  for (let i of e) {
1187
- let e = i.toLowerCase(), a = di.find((t) => t.value.toLowerCase() === e);
1188
- a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), bn.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${di.map((e) => e.value).join(", ")}.`));
1143
+ let e = i.toLowerCase(), a = gi.find((t) => t.value.toLowerCase() === e);
1144
+ a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), On.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${gi.map((e) => e.value).join(", ")}.`));
1189
1145
  }
1190
1146
  return t;
1191
1147
  }
1192
- function mi(e) {
1193
- let t = _(e?.customFonts ?? []), n = _(!1), r = pi(e?.builtIns), i = N(() => e?.defaultFallback ?? fi), a = N(() => {
1148
+ function yi(e) {
1149
+ let t = _(e?.customFonts ?? []), n = _(!1), r = vi(e?.builtIns), i = P(() => e?.defaultFallback ?? _i), a = P(() => {
1194
1150
  let e = [...r], n = t.value.map((e) => ({
1195
1151
  value: e.name,
1196
1152
  label: e.name,
@@ -1201,18 +1157,18 @@ function mi(e) {
1201
1157
  function o(e) {
1202
1158
  return a.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
1203
1159
  }
1204
- let c = e?.defaultFont ?? fi.split(",")[0].trim();
1205
- o(c) || bn.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.`);
1160
+ let c = e?.defaultFont ?? _i.split(",")[0].trim();
1161
+ o(c) || On.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.`);
1206
1162
  function l() {
1207
1163
  if (e?.defaultFont && o(e.defaultFont)) {
1208
1164
  let t = a.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
1209
1165
  if (t) return t.value;
1210
1166
  }
1211
- return fi;
1167
+ return _i;
1212
1168
  }
1213
- let u = N(() => l());
1169
+ let u = P(() => l());
1214
1170
  function d(e) {
1215
- return Ee(e, {
1171
+ return ke(e, {
1216
1172
  customFonts: t.value,
1217
1173
  defaultFallback: i.value
1218
1174
  });
@@ -1231,7 +1187,7 @@ function mi(e) {
1231
1187
  t.onload = () => n(), t.onerror = () => r(/* @__PURE__ */ Error(`Failed to load font: ${e.name}`)), document.head.appendChild(t);
1232
1188
  });
1233
1189
  } catch (t) {
1234
- bn.warn(`Failed to load custom font "${e.name}":`, t);
1190
+ On.warn(`Failed to load custom font "${e.name}":`, t);
1235
1191
  }
1236
1192
  });
1237
1193
  await Promise.allSettled(e), !p && (n.value = !0);
@@ -1256,12 +1212,12 @@ function mi(e) {
1256
1212
  }
1257
1213
  //#endregion
1258
1214
  //#region src/utils/mergeTagNodeSpec.ts
1259
- function hi(e, t, n) {
1260
- return xe(e, n) ? {
1215
+ function bi(e, t, n) {
1216
+ return Je(e, n) ? {
1261
1217
  type: "logicMergeTagNode",
1262
1218
  attrs: {
1263
1219
  value: e,
1264
- keyword: se(e, n)
1220
+ keyword: Ge(e, n)
1265
1221
  }
1266
1222
  } : {
1267
1223
  type: "mergeTagNode",
@@ -1273,33 +1229,33 @@ function hi(e, t, n) {
1273
1229
  }
1274
1230
  //#endregion
1275
1231
  //#region src/utils/insertLogicTag.ts
1276
- function gi(e) {
1232
+ function xi(e) {
1277
1233
  return "before" in e && "after" in e;
1278
1234
  }
1279
- function _i(e, t, n) {
1280
- if (!gi(t)) {
1281
- e.chain().focus().insertContent(hi(t.value, t.label, n)).run();
1235
+ function Si(e, t, n) {
1236
+ if (!xi(t)) {
1237
+ e.chain().focus().insertContent(bi(t.value, t.label, n)).run();
1282
1238
  return;
1283
1239
  }
1284
- let r = hi(t.before, t.label, n), i = hi(t.after, t.label, n), { from: a, to: o } = e.state.selection;
1240
+ let r = bi(t.before, t.label, n), i = bi(t.after, t.label, n), { from: a, to: o } = e.state.selection;
1285
1241
  a === o ? e.chain().focus().insertContentAt(a, [r, i]).setTextSelection(a + 1).run() : e.chain().focus().insertContentAt(o, i).insertContentAt(a, r).run();
1286
1242
  }
1287
1243
  //#endregion
1288
1244
  //#region src/utils/linkColorExtension.ts
1289
- function vi(e) {
1245
+ function Ci(e) {
1290
1246
  if (!e) return null;
1291
1247
  let t = e.trim();
1292
1248
  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;
1293
1249
  }
1294
- function yi(e) {
1250
+ function wi(e) {
1295
1251
  return e.extend({ addAttributes() {
1296
1252
  return {
1297
1253
  ...this.parent?.(),
1298
1254
  color: {
1299
1255
  default: null,
1300
- parseHTML: (e) => vi(xn(e.style.color)),
1256
+ parseHTML: (e) => Ci(kn(e.style.color)),
1301
1257
  renderHTML: (e) => {
1302
- let t = vi(e.color);
1258
+ let t = Ci(e.color);
1303
1259
  return t ? { style: `color: ${t}` } : {};
1304
1260
  }
1305
1261
  }
@@ -1308,9 +1264,9 @@ function yi(e) {
1308
1264
  }
1309
1265
  //#endregion
1310
1266
  //#region src/composables/useRichTextLinkDialog.ts
1311
- function bi(e, t = Ye.liquid) {
1267
+ function Ti(e, t = Oe.liquid) {
1312
1268
  let n = _(!1), r = _(""), i = _(""), a = _(null);
1313
- li(a, n);
1269
+ mi(a, n);
1314
1270
  function o() {
1315
1271
  let t = e.value?.getAttributes("link") ?? {};
1316
1272
  r.value = t.href || "", i.value = t.color || "", n.value = !0;
@@ -1319,7 +1275,7 @@ function bi(e, t = Ye.liquid) {
1319
1275
  if (r.value) {
1320
1276
  let t = d(r.value);
1321
1277
  if (t !== null) {
1322
- let n = vi(i.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
1278
+ let n = Ci(i.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
1323
1279
  n && typeof e.value?.commands.unsetColor == "function" && r?.unsetColor(), r?.run();
1324
1280
  }
1325
1281
  }
@@ -1371,15 +1327,15 @@ function bi(e, t = Ye.liquid) {
1371
1327
  }
1372
1328
  //#endregion
1373
1329
  //#region src/composables/useRichTextEditor.ts
1374
- function xi(t) {
1375
- let n = p(tn, null), { mergeTags: r, canRequestMergeTag: a, isRequesting: o, requestMergeTag: s, syntax: l, autocomplete: u } = Fn(), { canInsertLogicTag: d, isRequesting: m, requestLogicTag: h } = In(), g = p(qt, null), v = (c(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", y = le(l), b = e(null), x = () => Ie(n?.content?.value?.settings ?? { locale: "en" });
1330
+ function Ei(t) {
1331
+ let n = p(un, null), { mergeTags: r, canRequestMergeTag: a, isRequesting: o, requestMergeTag: s, syntax: l, autocomplete: u } = Un(), { canInsertLogicTag: d, isRequesting: m, requestLogicTag: h } = Wn(), g = p(tn, null), v = (c(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", y = Ce(l), b = e(null), x = () => Ye(n?.content?.value?.settings ?? { locale: "en" });
1376
1332
  f(x, (e) => {
1377
1333
  let t = b.value?.view.dom;
1378
1334
  t && t.setAttribute("dir", e);
1379
1335
  });
1380
- let { showLinkDialog: S, linkUrl: C, linkColor: w, linkDialogRef: T, openLinkDialog: E, insertLink: D, removeLink: O, closeLinkDialog: k, handleLinkKeydown: A } = bi(b, l), { start: j, stop: M } = _t(() => b.value?.commands.focus("end"), 0, { immediate: !1 }), ee = e(null), N = _(!0), P = _(null), F = !1, te = null;
1381
- async function I() {
1382
- P.value = null, N.value = !0;
1336
+ let { showLinkDialog: S, linkUrl: C, linkColor: w, linkDialogRef: T, openLinkDialog: E, insertLink: D, removeLink: O, closeLinkDialog: k, handleLinkKeydown: A } = Ti(b, l), { start: j, stop: M } = Tt(() => b.value?.commands.focus("end"), 0, { immediate: !1 }), N = e(null), P = _(!0), F = _(null), I = !1, ee = null;
1337
+ async function L() {
1338
+ F.value = null, P.value = !0;
1383
1339
  try {
1384
1340
  let { TiptapEditor: e, EC: i, extensions: a } = await t.loadExtensions({
1385
1341
  mergeTags: r,
@@ -1388,8 +1344,8 @@ function xi(t) {
1388
1344
  autocompleteEnabled: u,
1389
1345
  suggestionEmptyText: v
1390
1346
  });
1391
- if (F) return;
1392
- ee.value = i;
1347
+ if (I) return;
1348
+ N.value = i;
1393
1349
  let o = /* @__PURE__ */ new Map();
1394
1350
  a.forEach((e, t) => o.set(e.name, t));
1395
1351
  let s = new e({
@@ -1398,27 +1354,27 @@ function xi(t) {
1398
1354
  editable: !0,
1399
1355
  editorProps: { attributes: { dir: x() } },
1400
1356
  onUpdate: ({ editor: e }) => {
1401
- F || n && (te = e.getHTML(), n.updateBlock(t.blockId(), { content: te }));
1357
+ I || n && (ee = e.getHTML(), n.updateBlock(t.blockId(), { content: ee }));
1402
1358
  }
1403
1359
  });
1404
- if (F) {
1360
+ if (I) {
1405
1361
  s.destroy();
1406
1362
  return;
1407
1363
  }
1408
- b.value = s, N.value = !1, j();
1364
+ b.value = s, P.value = !1, j();
1409
1365
  } catch (e) {
1410
- if (F) return;
1411
- bn.error(`[${t.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, e), P.value = e instanceof Error ? e.message : "Failed to load editor", N.value = !1;
1366
+ if (I) return;
1367
+ On.error(`[${t.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, e), F.value = e instanceof Error ? e.message : "Failed to load editor", P.value = !1;
1412
1368
  }
1413
1369
  }
1414
- function ne() {
1415
- b.value?.destroy(), b.value = null, I();
1370
+ function te() {
1371
+ b.value?.destroy(), b.value = null, L();
1416
1372
  }
1417
- I();
1418
- let re = f(() => t.blockContent(), (e) => {
1419
- b.value && e !== te && (te = e, b.value.getHTML() !== e && b.value.commands.setContent(e, { emitUpdate: !1 }));
1373
+ L();
1374
+ let ne = f(() => t.blockContent(), (e) => {
1375
+ b.value && e !== ee && (ee = e, b.value.getHTML() !== e && b.value.commands.setContent(e, { emitUpdate: !1 }));
1420
1376
  });
1421
- function ie(e) {
1377
+ function re(e) {
1422
1378
  if (o.value || m.value) return;
1423
1379
  let n = e.composedPath(), r = n.find((e) => e instanceof HTMLElement);
1424
1380
  if (!r) return;
@@ -1426,26 +1382,26 @@ function xi(t) {
1426
1382
  let i = n.some((e) => e instanceof HTMLElement && e.classList.contains("tpl-color-popover"));
1427
1383
  r.closest(".tpl-text-editor-wrapper") || r.closest(".tpl-text-toolbar") || r.closest(".tpl-link-dialog") || i || t.onDone();
1428
1384
  }
1429
- xt(document, "mousedown", ie), i(() => {
1430
- F = !0, re(), M(), b.value?.destroy();
1385
+ kt(document, "mousedown", re), i(() => {
1386
+ I = !0, ne(), M(), b.value?.destroy();
1431
1387
  });
1432
- async function ae() {
1388
+ async function ie() {
1433
1389
  let e = await s();
1434
- F || (e && b.value ? b.value.chain().focus().insertMergeTag({
1390
+ I || (e && b.value ? b.value.chain().focus().insertMergeTag({
1435
1391
  label: e.label,
1436
1392
  value: e.value
1437
1393
  }).run() : b.value?.commands.focus());
1438
1394
  }
1439
- async function oe() {
1395
+ async function ae() {
1440
1396
  let e = await h();
1441
- F || (e && b.value ? _i(b.value, e, l) : b.value?.commands.focus());
1397
+ I || (e && b.value ? Si(b.value, e, l) : b.value?.commands.focus());
1442
1398
  }
1443
1399
  return {
1444
1400
  editor: b,
1445
- EditorContent: ee,
1446
- isLoading: N,
1447
- initError: P,
1448
- retry: ne,
1401
+ EditorContent: N,
1402
+ isLoading: P,
1403
+ initError: F,
1404
+ retry: te,
1449
1405
  showLinkDialog: S,
1450
1406
  linkUrl: C,
1451
1407
  linkColor: w,
@@ -1461,36 +1417,36 @@ function xi(t) {
1461
1417
  removeLink: O,
1462
1418
  closeLinkDialog: k,
1463
1419
  handleLinkKeydown: A,
1464
- handleAddMergeTag: ae,
1465
- handleAddLogicTag: oe
1420
+ handleAddMergeTag: ie,
1421
+ handleAddLogicTag: ae
1466
1422
  };
1467
1423
  }
1468
1424
  //#endregion
1469
1425
  //#region src/composables/useSmallScreenNotice.ts
1470
- var Si = "(max-width: 767px)";
1471
- function Ci(e) {
1472
- let t = St(Si);
1426
+ var Di = "(max-width: 767px)";
1427
+ function Oi(e) {
1428
+ let t = At(Di);
1473
1429
  return {
1474
1430
  isSmallScreen: t,
1475
- showNotice: N(() => (ee(e) ?? !0) && t.value)
1431
+ showNotice: P(() => (N(e) ?? !0) && t.value)
1476
1432
  };
1477
1433
  }
1478
1434
  //#endregion
1479
1435
  //#region src/components/blocks/CustomBlock.vue?vue&type=script&setup=true&lang.ts
1480
- var wi = { class: "tpl:w-full" }, Ti = {
1436
+ var ki = { class: "tpl:w-full" }, Ai = {
1481
1437
  key: 0,
1482
1438
  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)]"
1483
- }, Ei = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Di = {
1439
+ }, ji = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Mi = {
1484
1440
  key: 1,
1485
1441
  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)]"
1486
- }, Oi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ki = {
1442
+ }, Ni = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Pi = {
1487
1443
  key: 2,
1488
1444
  class: "tpl:relative"
1489
- }, Ai = ["innerHTML"], ji = {
1445
+ }, Fi = ["innerHTML"], Ii = {
1490
1446
  key: 0,
1491
1447
  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]",
1492
1448
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
1493
- }, Mi = /* @__PURE__ */ F({
1449
+ }, Li = /* @__PURE__ */ I({
1494
1450
  __name: "CustomBlock",
1495
1451
  props: {
1496
1452
  block: {},
@@ -1498,7 +1454,7 @@ var wi = { class: "tpl:w-full" }, Ti = {
1498
1454
  },
1499
1455
  emits: ["fetchData"],
1500
1456
  setup(e, { emit: n }) {
1501
- let r = e, i = n, { t: a } = yn(), o = p(pn, null), s = _(""), c = _(!1), l = N(() => o?.getDefinition(r.block.customType)), u = N(() => !!l.value), m = N(() => r.block), { isFetching: h, fetch: g, needsFetch: v, hasDataSource: b } = et({
1457
+ let r = e, i = n, { t: a } = Dn(), o = p(xn, null), s = _(""), c = _(!1), l = P(() => o?.getDefinition(r.block.customType)), u = P(() => !!l.value), m = P(() => r.block), { isFetching: h, fetch: g, needsFetch: v, hasDataSource: b } = ct({
1502
1458
  definition: l,
1503
1459
  block: m,
1504
1460
  onUpdate: (e, t) => {
@@ -1507,10 +1463,10 @@ var wi = { class: "tpl:w-full" }, Ti = {
1507
1463
  dataSourceFetched: t
1508
1464
  });
1509
1465
  }
1510
- }), T = p(zt, At), E = p(Vt, null), O = N(() => {
1466
+ }), T = p(qt, Rt), E = p(Yt, null), O = P(() => {
1511
1467
  if (!E?.value) return r.block;
1512
1468
  let e = {};
1513
- for (let [t, n] of Object.entries(r.block.fieldValues)) e[t] = typeof n == "string" ? Be(n, T.value) : n;
1469
+ for (let [t, n] of Object.entries(r.block.fieldValues)) e[t] = typeof n == "string" ? $e(n, T.value) : n;
1514
1470
  return {
1515
1471
  ...r.block,
1516
1472
  fieldValues: e
@@ -1527,67 +1483,67 @@ var wi = { class: "tpl:w-full" }, Ti = {
1527
1483
  }
1528
1484
  }
1529
1485
  }
1530
- let j = vt(k, 150);
1486
+ let j = Et(k, 150);
1531
1487
  return d(() => {
1532
1488
  k();
1533
1489
  }), f(() => r.block.fieldValues, () => {
1534
1490
  j();
1535
1491
  }, { deep: !0 }), f(() => E?.value, () => {
1536
1492
  j();
1537
- }), (e, n) => (t(), S("div", wi, [u.value ? c.value ? (t(), S("div", Di, [C(y(jn), {
1493
+ }), (e, n) => (t(), S("div", ki, [u.value ? c.value ? (t(), S("div", Mi, [C(y(zn), {
1538
1494
  size: 24,
1539
1495
  class: "tpl:text-[var(--tpl-danger)]"
1540
- }), x("span", Oi, D(y(a).customBlocks.renderError), 1)])) : (t(), S("div", ki, [x("div", { innerHTML: s.value }, null, 8, Ai), y(b) && y(v) ? (t(), S("div", ji, [y(h) ? (t(), A(Mn, {
1496
+ }), x("span", Ni, D(y(a).customBlocks.renderError), 1)])) : (t(), S("div", Pi, [x("div", { innerHTML: s.value }, null, 8, Fi), y(b) && y(v) ? (t(), S("div", Ii, [y(h) ? (t(), A(Bn, {
1541
1497
  key: 1,
1542
1498
  class: "tpl:w-48"
1543
1499
  })) : (t(), S("button", {
1544
1500
  key: 0,
1545
1501
  type: "button",
1546
1502
  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)]",
1547
- onClick: n[0] ||= I((...e) => y(g) && y(g)(...e), ["stop"])
1548
- }, [l.value?.icon ? (t(), A(si, {
1503
+ onClick: n[0] ||= L((...e) => y(g) && y(g)(...e), ["stop"])
1504
+ }, [l.value?.icon ? (t(), A(fi, {
1549
1505
  key: 0,
1550
1506
  icon: l.value.icon,
1551
1507
  size: 16
1552
- }, null, 8, ["icon"])) : P("", !0), w(" " + D(l.value?.dataSource?.label || y(a).customBlocks.dataSource.fetchButton), 1)]))])) : P("", !0)])) : (t(), S("div", Ti, [C(y(ri), {
1508
+ }, null, 8, ["icon"])) : F("", !0), w(" " + D(l.value?.dataSource?.label || y(a).customBlocks.dataSource.fetchButton), 1)]))])) : F("", !0)])) : (t(), S("div", Ai, [C(y(ci), {
1553
1509
  size: 24,
1554
1510
  class: "tpl:text-[var(--tpl-warning)]"
1555
- }), x("span", Ei, D(y(a).customBlocks.definitionNotFound), 1)]))]));
1511
+ }), x("span", ji, D(y(a).customBlocks.definitionNotFound), 1)]))]));
1556
1512
  }
1557
- }), Ni = { class: "tpl:w-full" }, Pi = /* @__PURE__ */ F({
1513
+ }), Ri = { class: "tpl:w-full" }, zi = /* @__PURE__ */ I({
1558
1514
  __name: "DividerBlock",
1559
1515
  props: {
1560
1516
  block: {},
1561
1517
  viewport: {}
1562
1518
  },
1563
1519
  setup(e) {
1564
- let r = e, i = N(() => ({
1520
+ let r = e, i = P(() => ({
1565
1521
  borderTop: `${r.block.thickness}px ${r.block.lineStyle} ${r.block.color}`,
1566
1522
  width: r.block.width === "full" ? "100%" : typeof r.block.width == "number" ? `${r.block.width}px` : r.block.width,
1567
1523
  margin: r.block.width === "full" ? "0" : "0 auto"
1568
1524
  }));
1569
- return (e, r) => (t(), S("div", Ni, [x("hr", {
1525
+ return (e, r) => (t(), S("div", Ri, [x("hr", {
1570
1526
  class: "tpl:m-0 tpl:border-none",
1571
1527
  style: n(i.value)
1572
1528
  }, null, 4)]));
1573
1529
  }
1574
- }), Fi = { class: "tpl:w-full" }, Ii = ["srcdoc", "title"], Li = {
1530
+ }), Bi = { class: "tpl:w-full" }, Vi = ["srcdoc", "title"], Hi = {
1575
1531
  key: 1,
1576
1532
  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)]"
1577
- }, Ri = {
1533
+ }, Ui = {
1578
1534
  key: 0,
1579
1535
  class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
1580
- }, zi = {
1536
+ }, Wi = {
1581
1537
  key: 1,
1582
1538
  class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
1583
- }, Bi = /* @__PURE__ */ F({
1539
+ }, Gi = /* @__PURE__ */ I({
1584
1540
  __name: "HtmlBlock",
1585
1541
  props: {
1586
1542
  block: {},
1587
1543
  viewport: {}
1588
1544
  },
1589
1545
  setup(e) {
1590
- let r = e, { t: a } = yn(), o = p(Zt, !1), s = N(() => r.block.content.trim().length > 0), c = N(() => o && s.value), l = p(zt, At), u = p(Vt, null), d = N(() => u?.value ? Be(r.block.content, l.value) : r.block.content), m = _(null), h = _(60), g = null;
1546
+ let r = e, { t: a } = Dn(), o = p(on, !1), s = P(() => r.block.content.trim().length > 0), c = P(() => o && s.value), l = p(qt, Rt), u = p(Yt, null), d = P(() => u?.value ? $e(r.block.content, l.value) : r.block.content), m = _(null), h = _(60), g = null;
1591
1547
  function v() {
1592
1548
  let e = m.value?.contentDocument;
1593
1549
  e && (h.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
@@ -1601,7 +1557,7 @@ var wi = { class: "tpl:w-full" }, Ti = {
1601
1557
  e || (g?.disconnect(), g = null);
1602
1558
  }), i(() => {
1603
1559
  g?.disconnect(), g = null;
1604
- }), (e, r) => (t(), S("div", Fi, [c.value ? (t(), S("iframe", {
1560
+ }), (e, r) => (t(), S("div", Bi, [c.value ? (t(), S("iframe", {
1605
1561
  key: 0,
1606
1562
  ref_key: "iframeRef",
1607
1563
  ref: m,
@@ -1611,18 +1567,18 @@ var wi = { class: "tpl:w-full" }, Ti = {
1611
1567
  class: "tpl:block tpl:w-full tpl:border-0",
1612
1568
  style: n({ height: `${h.value}px` }),
1613
1569
  onLoad: b
1614
- }, null, 44, Ii)) : (t(), S("div", Li, [C(y(pt), {
1570
+ }, null, 44, Vi)) : (t(), S("div", Hi, [C(y(pt), {
1615
1571
  size: 24,
1616
1572
  class: "tpl:text-[var(--tpl-text-dim)]"
1617
- }), s.value ? (t(), S("span", Ri, D(y(a).html.preview), 1)) : (t(), S("span", zi, D(y(a).html.empty), 1))]))]));
1573
+ }), s.value ? (t(), S("span", Ui, D(y(a).html.preview), 1)) : (t(), S("span", Wi, D(y(a).html.empty), 1))]))]));
1618
1574
  }
1619
- }), Vi = ["data-drop-enabled"], Hi = ["href"], Ui = ["src", "alt"], Wi = ["src", "alt"], Gi = {
1575
+ }), Ki = ["data-drop-enabled"], qi = ["href"], Ji = ["src", "alt"], Yi = ["src", "alt"], Xi = {
1620
1576
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
1621
1577
  style: { opacity: "0.7" }
1622
- }, Ki = ["href"], qi = ["src", "alt"], Ji = ["src", "alt"], Yi = {
1578
+ }, Zi = ["href"], Qi = ["src", "alt"], $i = ["src", "alt"], ea = {
1623
1579
  key: 4,
1624
1580
  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)]"
1625
- }, Xi = ["aria-label"], Zi = { key: 1 }, Qi = /* @__PURE__ */ F({
1581
+ }, ta = ["aria-label"], na = { key: 1 }, ra = /* @__PURE__ */ I({
1626
1582
  __name: "ImageBlock",
1627
1583
  props: {
1628
1584
  block: {},
@@ -1630,31 +1586,34 @@ var wi = { class: "tpl:w-full" }, Ti = {
1630
1586
  },
1631
1587
  emits: ["update"],
1632
1588
  setup(e, { emit: r }) {
1633
- let i = e, a = r, { t: o } = yn(), { syntax: s } = Fn(), c = N(() => Ce(i.block.src, s));
1589
+ let i = e, a = r, { t: o } = Dn(), { syntax: s } = Un(), c = P(() => Ee(i.block.src, s));
1634
1590
  function l(e) {
1635
- let t = { src: e.url };
1591
+ let t = {
1592
+ src: e.url,
1593
+ ...vt(ht(e.width, e.height))
1594
+ };
1636
1595
  e.alt && (t.alt = e.alt), a("update", t);
1637
1596
  }
1638
- let u = _(), { canBrowse: d, dropEnabled: f, isUploading: p, showOverlay: m, openMediaBrowser: h } = st({
1597
+ let u = _(), { canBrowse: d, dropEnabled: f, isUploading: p, showOverlay: m, openMediaBrowser: h } = gt({
1639
1598
  target: u,
1640
1599
  blocked: c,
1641
1600
  apply: l
1642
- }), g = N(() => ({ textAlign: i.block.align })), v = N(() => {
1643
- let e = i.block.border, t = ["left", "right"].map((t) => Fe(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
1601
+ }), g = P(() => ({ textAlign: i.block.align })), v = P(() => {
1602
+ let e = i.block.border, t = ["left", "right"].map((t) => ve(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
1644
1603
  return t > 0 ? `calc(100% - ${t}px)` : "100%";
1645
- }), b = N(() => {
1604
+ }), b = P(() => {
1646
1605
  let e = i.block.align;
1647
1606
  return {
1648
1607
  maxWidth: "100%",
1649
1608
  width: i.block.width === "full" ? v.value : `${i.block.width}px`,
1650
1609
  height: i.block.height ? `${i.block.height}px` : void 0,
1651
- borderRadius: we(i.block.borderRadius) ?? void 0,
1652
- ...Gr(i.block.border),
1610
+ borderRadius: Qe(i.block.borderRadius) ?? void 0,
1611
+ ...Xr(i.block.border),
1653
1612
  display: "block",
1654
1613
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
1655
1614
  marginRight: e === "center" ? "auto" : void 0
1656
1615
  };
1657
- }), T = Wn(() => c.value ? void 0 : i.block.src), E = Wn(() => c.value ? i.block.placeholderUrl : void 0);
1616
+ }), T = st(() => c.value ? void 0 : i.block.src), E = st(() => c.value ? i.block.placeholderUrl : void 0);
1658
1617
  return (r, i) => (t(), S("div", {
1659
1618
  ref_key: "dropZoneRef",
1660
1619
  ref: u,
@@ -1662,76 +1621,76 @@ var wi = { class: "tpl:w-full" }, Ti = {
1662
1621
  "data-drop-enabled": y(f),
1663
1622
  class: "tpl:relative tpl:w-full",
1664
1623
  style: n(g.value)
1665
- }, [y(m) ? (t(), A(rt, {
1624
+ }, [y(m) ? (t(), A(bt, {
1666
1625
  key: 0,
1667
1626
  uploading: y(p),
1668
1627
  size: "canvas"
1669
- }, null, 8, ["uploading"])) : P("", !0), e.block.src && c.value && e.block.placeholderUrl ? (t(), S(M, { key: 1 }, [e.block.linkUrl ? (t(), S("a", {
1628
+ }, null, 8, ["uploading"])) : F("", !0), e.block.src && c.value && e.block.placeholderUrl ? (t(), S(M, { key: 1 }, [e.block.linkUrl ? (t(), S("a", {
1670
1629
  key: 0,
1671
1630
  href: e.block.linkUrl,
1672
1631
  target: "_blank",
1673
1632
  rel: "noopener noreferrer",
1674
- onClick: i[0] ||= I(() => {}, ["prevent"])
1633
+ onClick: i[0] ||= L(() => {}, ["prevent"])
1675
1634
  }, [x("img", {
1676
1635
  class: "tpl:border-0",
1677
1636
  loading: "lazy",
1678
1637
  src: y(E),
1679
1638
  alt: e.block.alt || y(o).image.altTextPlaceholder,
1680
1639
  style: n(b.value)
1681
- }, null, 12, Ui)], 8, Hi)) : (t(), S("img", {
1640
+ }, null, 12, Ji)], 8, qi)) : (t(), S("img", {
1682
1641
  key: 1,
1683
1642
  class: "tpl:border-0",
1684
1643
  src: y(E),
1685
1644
  alt: e.block.alt,
1686
1645
  style: n(b.value)
1687
- }, null, 12, Wi))], 64)) : e.block.src && c.value ? (t(), S("div", {
1646
+ }, null, 12, Yi))], 64)) : e.block.src && c.value ? (t(), S("div", {
1688
1647
  key: 2,
1689
1648
  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)]",
1690
1649
  style: n([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, b.value])
1691
- }, [C(y(ct), {
1650
+ }, [C(y(wt), {
1692
1651
  size: 32,
1693
1652
  "stroke-width": 1.5,
1694
1653
  class: "tpl:text-[var(--tpl-primary)]",
1695
1654
  style: { opacity: "0.5" }
1696
- }), x("span", Gi, [C(Yr, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (t(), S(M, { key: 3 }, [e.block.linkUrl ? (t(), S("a", {
1655
+ }), x("span", Xi, [C(ei, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (t(), S(M, { key: 3 }, [e.block.linkUrl ? (t(), S("a", {
1697
1656
  key: 0,
1698
1657
  href: e.block.linkUrl,
1699
1658
  target: "_blank",
1700
1659
  rel: "noopener noreferrer",
1701
- onClick: i[1] ||= I(() => {}, ["prevent"])
1660
+ onClick: i[1] ||= L(() => {}, ["prevent"])
1702
1661
  }, [x("img", {
1703
1662
  class: "tpl:border-0",
1704
1663
  loading: "lazy",
1705
1664
  src: y(T),
1706
1665
  alt: e.block.alt || y(o).image.altTextPlaceholder,
1707
1666
  style: n(b.value)
1708
- }, null, 12, qi)], 8, Ki)) : (t(), S("img", {
1667
+ }, null, 12, Qi)], 8, Zi)) : (t(), S("img", {
1709
1668
  key: 1,
1710
1669
  class: "tpl:border-0",
1711
1670
  src: y(T),
1712
1671
  alt: e.block.alt,
1713
1672
  style: n(b.value)
1714
- }, null, 12, Ji))], 64)) : (t(), S("div", Yi, [y(d) ? (t(), S("button", {
1673
+ }, null, 12, $i))], 64)) : (t(), S("div", ea, [y(d) ? (t(), S("button", {
1715
1674
  key: 0,
1716
1675
  "aria-label": y(o).image.browseMedia,
1717
1676
  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)]",
1718
- onClick: i[2] ||= I((...e) => y(h) && y(h)(...e), ["stop"])
1719
- }, [C(y(ct), {
1677
+ onClick: i[2] ||= L((...e) => y(h) && y(h)(...e), ["stop"])
1678
+ }, [C(y(wt), {
1720
1679
  size: 14,
1721
1680
  "stroke-width": 1.5
1722
- }), w(" " + D(y(o).image.browseMedia), 1)], 8, Xi)) : (t(), S("span", Zi, D(y(o).image.clickToAdd), 1))]))], 12, Vi));
1681
+ }), w(" " + D(y(o).image.browseMedia), 1)], 8, ta)) : (t(), S("span", na, D(y(o).image.clickToAdd), 1))]))], 12, Ki));
1723
1682
  }
1724
- }), $i = { class: "tpl:w-full" }, ea = ["href"], ta = {
1683
+ }), ia = { class: "tpl:w-full" }, aa = ["href"], oa = {
1725
1684
  key: 1,
1726
1685
  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)]"
1727
- }, na = /* @__PURE__ */ F({
1686
+ }, sa = /* @__PURE__ */ I({
1728
1687
  __name: "MenuBlock",
1729
1688
  props: {
1730
1689
  block: {},
1731
1690
  viewport: {}
1732
1691
  },
1733
1692
  setup(e) {
1734
- let r = e, { t: i } = yn(), a = wt(mn, "MenuBlock"), o = N(() => ({
1693
+ let r = e, { t: i } = Dn(), a = Mt(Sn, "MenuBlock"), o = P(() => ({
1735
1694
  display: "flex",
1736
1695
  flexWrap: "wrap",
1737
1696
  gap: `0 ${r.block.spacing}px`,
@@ -1739,11 +1698,11 @@ var wi = { class: "tpl:w-full" }, Ti = {
1739
1698
  fontSize: `${r.block.fontSize}px`,
1740
1699
  fontFamily: r.block.fontFamily ? a.resolveFontFamily(r.block.fontFamily) : "inherit",
1741
1700
  alignItems: "center"
1742
- })), s = N(() => r.block.items.length > 0);
1701
+ })), s = P(() => r.block.items.length > 0);
1743
1702
  function c(e) {
1744
1703
  return e || r.block.linkColor || r.block.color;
1745
1704
  }
1746
- return (r, a) => (t(), S("div", $i, [s.value ? (t(), S("div", {
1705
+ return (r, a) => (t(), S("div", ia, [s.value ? (t(), S("div", {
1747
1706
  key: 0,
1748
1707
  style: n(o.value)
1749
1708
  }, [(t(!0), S(M, null, l(e.block.items, (r, i) => (t(), S(M, { key: r.id }, [x("a", {
@@ -1754,16 +1713,16 @@ var wi = { class: "tpl:w-full" }, Ti = {
1754
1713
  fontWeight: r.bold ? "bold" : "normal",
1755
1714
  textDecoration: r.underline ? "underline" : "none"
1756
1715
  }),
1757
- onClick: a[0] ||= I(() => {}, ["prevent"])
1758
- }, [C(Yr, { text: r.text || "..." }, null, 8, ["text"])], 12, ea), i < e.block.items.length - 1 ? (t(), S("span", {
1716
+ onClick: a[0] ||= L(() => {}, ["prevent"])
1717
+ }, [C(ei, { text: r.text || "..." }, null, 8, ["text"])], 12, aa), i < e.block.items.length - 1 ? (t(), S("span", {
1759
1718
  key: 0,
1760
1719
  style: n({
1761
1720
  color: e.block.separatorColor,
1762
1721
  padding: `0 ${e.block.spacing}px`
1763
1722
  })
1764
- }, D(e.block.separator), 5)) : P("", !0)], 64))), 128))], 4)) : (t(), S("div", ta, [C(y(it), { size: 16 }), x("span", null, D(y(i).menu.addLinks), 1)]))]));
1723
+ }, D(e.block.separator), 5)) : F("", !0)], 64))), 128))], 4)) : (t(), S("div", oa, [C(y(xt), { size: 16 }), x("span", null, D(y(i).menu.addLinks), 1)]))]));
1765
1724
  }
1766
- }), ra = /* @__PURE__ */ new Set([
1725
+ }), ca = /* @__PURE__ */ new Set([
1767
1726
  "http",
1768
1727
  "https",
1769
1728
  "mailto",
@@ -1773,7 +1732,7 @@ var wi = { class: "tpl:w-full" }, Ti = {
1773
1732
  "sms",
1774
1733
  "xmpp",
1775
1734
  "cid"
1776
- ]), ia = /* @__PURE__ */ new Set([
1735
+ ]), la = /* @__PURE__ */ new Set([
1777
1736
  "SCRIPT",
1778
1737
  "STYLE",
1779
1738
  "IFRAME",
@@ -1783,7 +1742,7 @@ var wi = { class: "tpl:w-full" }, Ti = {
1783
1742
  "META",
1784
1743
  "BASE",
1785
1744
  "FORM"
1786
- ]), aa = /* @__PURE__ */ new Set([
1745
+ ]), ua = /* @__PURE__ */ new Set([
1787
1746
  "href",
1788
1747
  "xlink:href",
1789
1748
  "formaction",
@@ -1792,16 +1751,16 @@ var wi = { class: "tpl:w-full" }, Ti = {
1792
1751
  "background",
1793
1752
  "poster"
1794
1753
  ]);
1795
- function oa(e, t) {
1754
+ function da(e, t) {
1796
1755
  let n = e.replace(/[\t\n\r]/g, "").replace(/^[\u0000-\u0020]+/, "").trimEnd();
1797
1756
  if (!n || n.startsWith("#")) return !0;
1798
1757
  let r = /^([a-z][a-z0-9+.-]*):/i.exec(n);
1799
1758
  if (!r) return !0;
1800
1759
  let i = r[1].toLowerCase();
1801
- return ra.has(i) ? !0 : t && i === "data" ? /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i.test(n) : !1;
1760
+ return ca.has(i) ? !0 : t && i === "data" ? /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i.test(n) : !1;
1802
1761
  }
1803
- function sa(e) {
1804
- if (ia.has(e.tagName)) {
1762
+ function fa(e) {
1763
+ if (la.has(e.tagName)) {
1805
1764
  e.remove();
1806
1765
  return;
1807
1766
  }
@@ -1809,21 +1768,21 @@ function sa(e) {
1809
1768
  for (let n = 0; n < e.attributes.length; n++) t.push(e.attributes[n].name);
1810
1769
  for (let n of t) {
1811
1770
  let t = n.toLowerCase();
1812
- t.startsWith("on") ? e.removeAttribute(n) : aa.has(t) ? oa(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n) : t === "src" ? oa(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n) : t === "srcdoc" && e.removeAttribute(n);
1771
+ t.startsWith("on") ? e.removeAttribute(n) : ua.has(t) ? da(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n) : t === "src" ? da(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n) : t === "srcdoc" && e.removeAttribute(n);
1813
1772
  }
1814
1773
  let n = Array.from(e.children);
1815
- for (let e of n) sa(e);
1774
+ for (let e of n) fa(e);
1816
1775
  }
1817
- function ca(e) {
1776
+ function pa(e) {
1818
1777
  if (typeof DOMParser > "u") return e;
1819
1778
  let t = new DOMParser().parseFromString(`<!doctype html><body>${e}</body>`, "text/html").body, n = Array.from(t.children);
1820
- for (let e of n) sa(e);
1779
+ for (let e of n) fa(e);
1821
1780
  return t.innerHTML;
1822
1781
  }
1823
1782
  //#endregion
1824
1783
  //#region src/composables/useEditableTextBlock.ts
1825
- function la(e) {
1826
- let t = p(zt, At), n = p(Vt, null), { syntax: r } = Fn(), i = N(() => n?.value ? We(e(), t.value) : Je(e(), t.value)), a = N(() => $e(ca(He(i.value, r)))), o = _(!1), s = _(null), { top: c, left: l } = Ct(s), { toLocal: u } = wn(), d = N(() => u({
1784
+ function ma(e) {
1785
+ let t = p(qt, Rt), n = p(Yt, null), { syntax: r } = Un(), i = P(() => n?.value ? De(e(), t.value) : ze(e(), t.value)), a = P(() => be(pa(We(i.value, r)))), o = _(!1), s = _(null), { top: c, left: l } = jt(s), { toLocal: u } = Mn(), d = P(() => u({
1827
1786
  top: c.value - 8,
1828
1787
  left: l.value
1829
1788
  }));
@@ -1844,14 +1803,14 @@ function la(e) {
1844
1803
  }
1845
1804
  //#endregion
1846
1805
  //#region src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
1847
- var ua = ["innerHTML"], da = /* @__PURE__ */ F({
1806
+ var ha = ["innerHTML"], ga = /* @__PURE__ */ I({
1848
1807
  __name: "ParagraphBlock",
1849
1808
  props: {
1850
1809
  block: {},
1851
1810
  viewport: {}
1852
1811
  },
1853
1812
  setup(e) {
1854
- let n = e, r = v(() => import("./ParagraphEditor-CcEN1N6n.js")), { isEditing: i, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = la(() => n.block.content);
1813
+ let n = e, r = v(() => import("./ParagraphEditor-zLV44z-R.js")), { isEditing: i, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = ma(() => n.block.content);
1855
1814
  return (n, u) => (t(), S("div", {
1856
1815
  ref_key: "blockRef",
1857
1816
  ref: a,
@@ -1870,26 +1829,26 @@ var ua = ["innerHTML"], da = /* @__PURE__ */ F({
1870
1829
  key: 1,
1871
1830
  class: "tpl-text-content tpl:outline-none",
1872
1831
  innerHTML: y(s)
1873
- }, null, 8, ua))], 544));
1832
+ }, null, 8, ha))], 544));
1874
1833
  }
1875
- }), fa = [
1834
+ }), _a = [
1876
1835
  "data-block-id",
1877
1836
  "data-block-type",
1878
1837
  "data-tpl-picked"
1879
- ], pa = ["aria-label"], ma = [
1838
+ ], va = ["data-lock-holder"], ya = ["aria-label"], ba = [
1880
1839
  "aria-label",
1881
1840
  "aria-pressed",
1882
1841
  "title"
1883
- ], ha = ["aria-label", "title"], ga = ["aria-label", "title"], _a = ["aria-label", "title"], va = {
1884
- key: 1,
1842
+ ], xa = ["aria-label", "title"], Sa = ["aria-label", "title"], Ca = ["aria-label", "title"], wa = {
1843
+ key: 3,
1885
1844
  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"
1886
- }, ya = { 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)]" }, ba = {
1887
- key: 2,
1845
+ }, Ta = { class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-2 tpl:py-1 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-chrome-text-muted)] tpl:shadow-[var(--tpl-shadow-sm)]" }, Ea = {
1846
+ key: 4,
1888
1847
  class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
1889
- }, xa = ["aria-label", "title"], Sa = {
1890
- key: 3,
1848
+ }, Da = ["aria-label", "title"], Oa = {
1849
+ key: 5,
1891
1850
  class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
1892
- }, Ca = ["aria-label"], wa = /*#__PURE__*/ Nn(/* @__PURE__ */ F({
1851
+ }, ka = ["aria-label"], Aa = /*#__PURE__*/ Vn(/* @__PURE__ */ I({
1893
1852
  __name: "BlockWrapper",
1894
1853
  props: {
1895
1854
  block: {},
@@ -1901,33 +1860,36 @@ var ua = ["innerHTML"], da = /* @__PURE__ */ F({
1901
1860
  },
1902
1861
  emits: ["select"],
1903
1862
  setup(e, { emit: r }) {
1904
- let i = v(() => import("./BlockIssueBadge-AgO5abEB.js")), o = e, s = r, { t: c, format: l } = yn(), d = p(Ut, null), f = _(null), m = N(() => d?.liftedBlockId.value === o.block.id), h = N(() => m.value ? l(c.blockActions.dragLifted, { block: o.block.type }) : c.blockActions.drag);
1863
+ let i = v(() => import("./BlockIssueBadge-BdpJwim0.js")), o = e, s = r, { t: c, format: l } = Dn(), d = p(Zt, null), f = _(null), m = P(() => d?.liftedBlockId.value === o.block.id), h = P(() => m.value ? l(c.blockActions.dragLifted, { block: o.block.type }) : c.blockActions.drag);
1905
1864
  async function g() {
1906
1865
  await a(), f.value?.focus();
1907
1866
  }
1908
1867
  function b(e) {
1909
1868
  d && (e.key === " " || e.key === "Enter" ? (e.preventDefault(), e.stopPropagation(), m.value ? d.drop(o.block.id) : d.lift(o.block.id)) : m.value && (e.key === "Escape" ? (e.preventDefault(), e.stopPropagation(), d.cancel(), g()) : e.key === "ArrowUp" ? (e.preventDefault(), e.stopPropagation(), d.moveUp(o.block.id), g()) : e.key === "ArrowDown" && (e.preventDefault(), e.stopPropagation(), d.moveDown(o.block.id), g())));
1910
1869
  }
1911
- let T = N(() => !o.viewport || !o.block.visibility ? !1 : o.block.visibility[o.viewport] === !1), E = N(() => o.previewMode === !0 && T.value), O = N(() => o.viewport ? {
1870
+ let T = P(() => !o.viewport || !o.block.visibility ? !1 : o.block.visibility[o.viewport] === !1), E = P(() => o.previewMode === !0 && T.value), O = P(() => o.viewport ? {
1912
1871
  desktop: c.viewport.desktop,
1913
1872
  mobile: c.viewport.mobile
1914
- }[o.viewport] ?? o.viewport : ""), A = N(() => !!o.block.displayCondition), j = p(Xt, null), M = p(en, null), ee = p(on, {}), F = N(() => ee.savedBlocks?.isPicking.value === !0), te = N(() => !o.nested && ee.savedBlocks?.isAvailable.value === !0 && ee.savedBlocks?.canCreate.value === !0), ne = N(() => o.isSelected && !F.value), re = N(() => ee.comments?.getBlockCount(o.block.id) ?? 0), ie = Jn(() => o.block.type === "section" ? o.block.backgroundImage : void 0), ae = Jn(() => o.block.type === "section" ? o.block.wrapper?.backgroundImage : void 0), oe = N(() => Ur(o.block, { backgroundImageUrl: ie.value })), se = N(() => Kr(o.block, { backgroundImageUrl: ae.value }));
1915
- function ce(e) {
1873
+ }[o.viewport] ?? o.viewport : ""), A = P(() => !!o.block.displayCondition), j = p(an, null), M = p(ln, null), N = p(mn, {}), I = P(() => N.savedBlocks?.isPicking.value === !0), ee = P(() => !o.nested && N.savedBlocks?.isAvailable.value === !0 && N.savedBlocks?.canCreate.value === !0), te = P(() => o.isSelected && !I.value), ne = P(() => N.comments?.getBlockCount(o.block.id) ?? 0), re = P(() => N.collaboration?.lockOf(o.block.id) ?? null), ie = P(() => re.value?.holder.type === "guest" ? c.collaboration.guest : re.value?.holder.name ?? ""), ae = P(() => N.collaboration?.agentHighlightOf(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 = p(un, null), le = p(Ft, void 0), ue = P(() => Jr(o.block, {
1874
+ backgroundImageUrl: oe.value,
1875
+ heroBoxWidth: ft(o.block, ce?.content.value, le)
1876
+ })), de = P(() => Zr(o.block, { backgroundImageUrl: se.value }));
1877
+ function fe(e) {
1916
1878
  o.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), s("select"));
1917
1879
  }
1918
- function le() {
1880
+ function pe() {
1919
1881
  j?.deleteBlock(o.block.id);
1920
1882
  }
1921
- function ue() {
1883
+ function me() {
1922
1884
  j?.duplicateBlock(o.block);
1923
1885
  }
1924
- function de() {
1925
- ee.savedBlocks?.startPicking(o.block.id);
1886
+ function he() {
1887
+ N.savedBlocks?.startPicking(o.block.id);
1926
1888
  }
1927
- function fe() {
1889
+ function ge() {
1928
1890
  M?.toggleBlock(o.block.id);
1929
1891
  }
1930
- return (r, a) => E.value ? P("", !0) : (t(), S("div", {
1892
+ return (r, a) => E.value ? F("", !0) : (t(), S("div", {
1931
1893
  key: 0,
1932
1894
  class: k(["tpl-block tpl:group tpl:relative tpl:cursor-pointer tpl:rounded-sm tpl:transition-shadow", {
1933
1895
  "tpl-block--selected": e.isSelected,
@@ -1938,11 +1900,33 @@ var ua = ["innerHTML"], da = /* @__PURE__ */ F({
1938
1900
  "data-block-id": e.block.id,
1939
1901
  "data-block-type": e.block.type,
1940
1902
  "data-tpl-picked": e.picked || void 0,
1941
- onClick: ce
1903
+ onClick: fe
1942
1904
  }, [
1943
1905
  C(y(i), { "block-id": e.block.id }, null, 8, ["block-id"]),
1944
- ne.value ? (t(), S("div", {
1906
+ re.value ? (t(), S("div", {
1945
1907
  key: 0,
1908
+ "data-testid": "block-lock",
1909
+ "data-lock-holder": re.value.holder.sessionId,
1910
+ class: "tpl-block-lock tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm",
1911
+ style: n({
1912
+ outline: `2px solid ${re.value.holder.color}`,
1913
+ outlineOffset: "-1px"
1914
+ })
1915
+ }, [x("span", {
1916
+ 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",
1917
+ style: n({
1918
+ backgroundColor: re.value.holder.color,
1919
+ color: y(Gn)(re.value.holder.color)
1920
+ })
1921
+ }, D(y(l)(y(c).collaboration.editing, { name: ie.value })), 5)], 12, va)) : F("", !0),
1922
+ ae.value === null ? F("", !0) : (t(), S("div", {
1923
+ key: ae.value,
1924
+ "data-testid": "block-agent-highlight",
1925
+ "aria-hidden": "true",
1926
+ class: "tpl-block-agent-highlight tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm"
1927
+ })),
1928
+ te.value ? (t(), S("div", {
1929
+ key: 2,
1946
1930
  role: "toolbar",
1947
1931
  "aria-label": y(c).blockActions.drag,
1948
1932
  class: "tpl-block-actions tpl-fade-in tpl:absolute tpl:-right-2 tpl:top-1/2 tpl:z-10 tpl:flex tpl:-translate-y-1/2 tpl:translate-x-full tpl:gap-0.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1 tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:shadow-[var(--tpl-shadow-md)] tpl:border tpl:border-[var(--tpl-border)]"
@@ -1956,99 +1940,100 @@ var ua = ["innerHTML"], da = /* @__PURE__ */ F({
1956
1940
  "aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
1957
1941
  title: y(c).blockActions.drag,
1958
1942
  onKeydown: b
1959
- }, [C(y(ni), {
1943
+ }, [C(y(si), {
1960
1944
  size: 14,
1961
1945
  "stroke-width": 1.5
1962
- })], 40, ma),
1946
+ })], 40, ba),
1963
1947
  x("button", {
1964
1948
  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",
1965
1949
  "aria-label": y(c).blockActions.duplicate,
1966
1950
  title: y(c).blockActions.duplicate,
1967
- onClick: I(ue, ["stop"])
1968
- }, [C(y(On), {
1951
+ onClick: L(me, ["stop"])
1952
+ }, [C(y(In), {
1969
1953
  size: 14,
1970
1954
  "stroke-width": 1.5
1971
- })], 8, ha),
1972
- te.value ? (t(), S("button", {
1955
+ })], 8, xa),
1956
+ ee.value ? (t(), S("button", {
1973
1957
  key: 0,
1974
1958
  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",
1975
1959
  "aria-label": y(c).blockActions.saveAsBlock,
1976
1960
  title: y(c).blockActions.saveAsBlock,
1977
- onClick: I(de, ["stop"])
1978
- }, [C(y(Qr), {
1961
+ onClick: L(he, ["stop"])
1962
+ }, [C(y(ri), {
1979
1963
  size: 14,
1980
1964
  "stroke-width": 1.5
1981
- })], 8, ga)) : P("", !0),
1965
+ })], 8, Sa)) : F("", !0),
1982
1966
  x("button", {
1983
1967
  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",
1984
1968
  "aria-label": y(c).blockActions.delete,
1985
1969
  title: y(c).blockActions.delete,
1986
- onClick: I(le, ["stop"])
1987
- }, [C(y(An), {
1970
+ onClick: L(pe, ["stop"])
1971
+ }, [C(y(Rn), {
1988
1972
  size: 14,
1989
1973
  "stroke-width": 1.5
1990
- })], 8, _a)
1991
- ], 8, pa)) : P("", !0),
1992
- T.value ? (t(), S("div", va, [x("span", ya, [C(y(ei), {
1974
+ })], 8, Ca)
1975
+ ], 8, ya)) : F("", !0),
1976
+ T.value ? (t(), S("div", wa, [x("span", Ta, [C(y(ai), {
1993
1977
  size: 12,
1994
1978
  "stroke-width": 1.5
1995
- }), w(" " + D(y(l)(y(c).blockActions.hiddenOnViewport, { viewport: O.value })), 1)])])) : P("", !0),
1996
- A.value && !T.value ? (t(), S("div", ba, [x("button", {
1979
+ }), w(" " + D(y(l)(y(c).blockActions.hiddenOnViewport, { viewport: O.value })), 1)])])) : F("", !0),
1980
+ A.value && !T.value ? (t(), S("div", Ea, [x("button", {
1997
1981
  "data-testid": "condition-toggle",
1998
1982
  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)]",
1999
1983
  "aria-label": y(c).blockActions.conditionToggle,
2000
1984
  title: e.block.displayCondition?.label,
2001
- onClick: I(fe, ["stop"])
2002
- }, [C(y(ti), {
1985
+ onClick: L(ge, ["stop"])
1986
+ }, [C(y(oi), {
2003
1987
  size: 12,
2004
1988
  "stroke-width": 2
2005
- })], 8, xa)])) : P("", !0),
2006
- re.value > 0 && !T.value ? (t(), S("div", Sa, [x("button", {
1989
+ })], 8, Da)])) : F("", !0),
1990
+ ne.value > 0 && !T.value ? (t(), S("div", Oa, [x("button", {
2007
1991
  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)]",
2008
- "aria-label": y(l)(y(c).blockActions.comments, { count: String(re.value) }),
2009
- onClick: a[0] ||= I((t) => y(ee).comments?.openForBlock(e.block.id), ["stop"])
2010
- }, [C(y(kn), {
1992
+ "aria-label": y(l)(y(c).blockActions.comments, { count: String(ne.value) }),
1993
+ onClick: a[0] ||= L((t) => y(N).comments?.openForBlock(e.block.id), ["stop"])
1994
+ }, [C(y(Ln), {
2011
1995
  size: 12,
2012
1996
  "stroke-width": 2.5
2013
- }), w(" " + D(re.value), 1)], 8, Ca)])) : P("", !0),
2014
- se.value ? (t(), S("div", {
2015
- key: 4,
2016
- class: k(["tpl-section-wrapper tpl-email-surface", y(Hr)(se.value)]),
2017
- style: n(se.value)
1997
+ }), w(" " + D(ne.value), 1)], 8, ka)])) : F("", !0),
1998
+ de.value ? (t(), S("div", {
1999
+ key: 6,
2000
+ class: k(["tpl-section-wrapper tpl-email-surface", y(Wr)(de.value)]),
2001
+ style: n(de.value)
2018
2002
  }, [x("div", {
2019
- class: k(["tpl-block-content tpl-email-surface", y(Hr)(oe.value)]),
2020
- style: n(oe.value)
2003
+ class: k(["tpl-block-content tpl-email-surface", y(Wr)(ue.value)]),
2004
+ style: n(ue.value)
2021
2005
  }, [u(r.$slots, "default", {}, void 0, !0)], 6)], 6)) : (t(), S("div", {
2022
- key: 5,
2023
- class: k(["tpl-block-content tpl-email-surface", y(Hr)(oe.value)]),
2024
- style: n(oe.value)
2006
+ key: 7,
2007
+ class: k(["tpl-block-content tpl-email-surface", y(Wr)(ue.value)]),
2008
+ style: n(ue.value)
2025
2009
  }, [u(r.$slots, "default", {}, void 0, !0)], 6))
2026
- ], 10, fa));
2010
+ ], 10, _a));
2027
2011
  }
2028
- }), [["__scopeId", "data-v-d4623cf8"]]);
2012
+ }), [["__scopeId", "data-v-3c489db0"]]);
2029
2013
  //#endregion
2030
2014
  //#region src/utils/unwrapParagraph.ts
2031
- function Ta(e) {
2015
+ function ja(e) {
2032
2016
  let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
2033
2017
  return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
2034
2018
  }
2035
2019
  //#endregion
2036
2020
  //#region src/components/blocks/TitleBlock.vue
2037
- var Ea = /* @__PURE__ */ F({
2021
+ var Ma = /* @__PURE__ */ I({
2038
2022
  __name: "TitleBlock",
2039
2023
  props: {
2040
2024
  block: {},
2041
2025
  viewport: {}
2042
2026
  },
2043
2027
  setup(e) {
2044
- let r = e, i = v(() => import("./TitleEditor-CZdqeltH.js")), a = wt(mn, "TitleBlock"), { isEditing: s, blockRef: c, toolbarPosition: l, resolvedContent: u, handleDoubleClick: d, handleEditorDone: f } = la(() => r.block.content), p = N(() => {
2028
+ let r = e, i = v(() => import("./TitleEditor-CvpNUoAp.js")), a = Mt(Sn, "TitleBlock"), { isEditing: s, blockRef: c, toolbarPosition: l, resolvedContent: u, handleDoubleClick: d, handleEditorDone: f } = ma(() => r.block.content), p = P(() => {
2045
2029
  let e = {
2046
2030
  fontSize: `${qe[r.block.level]}px`,
2047
- lineHeight: String(Me),
2031
+ lineHeight: String(Ue),
2032
+ fontWeight: "700",
2048
2033
  textAlign: r.block.textAlign
2049
2034
  };
2050
2035
  return r.block.color && (e.color = r.block.color), r.block.fontFamily && (e.fontFamily = a.resolveFontFamily(r.block.fontFamily)), e;
2051
- }), m = N(() => `h${r.block.level}`), h = N(() => Ta(u.value));
2036
+ }), m = P(() => `h${r.block.level}`), h = P(() => ja(u.value));
2052
2037
  return (r, a) => (t(), S("div", {
2053
2038
  ref_key: "blockRef",
2054
2039
  ref: c,
@@ -2067,95 +2052,130 @@ var Ea = /* @__PURE__ */ F({
2067
2052
  ])) : (t(), A(o(m.value), {
2068
2053
  key: 1,
2069
2054
  class: "tpl-text-content tpl:m-0 tpl:font-[inherit] tpl:text-[length:inherit] tpl:leading-[inherit] tpl:outline-none",
2070
- style: { color: "inherit" },
2055
+ style: {
2056
+ color: "inherit",
2057
+ fontWeight: "inherit"
2058
+ },
2071
2059
  innerHTML: h.value
2072
2060
  }, null, 8, ["innerHTML"]))], 36));
2073
2061
  }
2074
- });
2062
+ }), Na = "hero", Pa = "#1f2937", Fa = "#ffffff";
2063
+ function Ia(e, t) {
2064
+ let n = _e("title", e);
2065
+ n.color = Fa, n.textAlign = "center";
2066
+ let r = _e("paragraph", e);
2067
+ r.content = `<p style="text-align: center"><span style="color: ${Fa}">${La(t)}</span></p>`;
2068
+ let i = _e("button", e);
2069
+ return i.align = "center", fe({
2070
+ columns: "1",
2071
+ children: [[
2072
+ n,
2073
+ r,
2074
+ i
2075
+ ]],
2076
+ hero: {
2077
+ height: "image",
2078
+ verticalAlign: "middle"
2079
+ },
2080
+ styles: {
2081
+ padding: {
2082
+ top: 48,
2083
+ right: 24,
2084
+ bottom: 48,
2085
+ left: 24
2086
+ },
2087
+ backgroundColor: Pa
2088
+ }
2089
+ });
2090
+ }
2091
+ function La(e) {
2092
+ return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
2093
+ }
2075
2094
  //#endregion
2076
2095
  //#region src/utils/sectionColumnDrop.ts
2077
- function Da(e) {
2078
- return e.dataset.blockType !== "section" && e.dataset.paletteType !== "section";
2096
+ var Ra = /* @__PURE__ */ new Set(["section", Na]);
2097
+ function za(e) {
2098
+ return e.dataset.blockType !== "section" && !Ra.has(e.dataset.paletteType ?? "");
2079
2099
  }
2080
2100
  //#endregion
2081
2101
  //#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
2082
- var Oa = Object.defineProperty, ka = Object.getOwnPropertySymbols, Aa = Object.prototype.hasOwnProperty, ja = Object.prototype.propertyIsEnumerable, Ma = (e, t, n) => t in e ? Oa(e, t, {
2102
+ var Ba = Object.defineProperty, Va = Object.getOwnPropertySymbols, Ha = Object.prototype.hasOwnProperty, Ua = Object.prototype.propertyIsEnumerable, Wa = (e, t, n) => t in e ? Ba(e, t, {
2083
2103
  enumerable: !0,
2084
2104
  configurable: !0,
2085
2105
  writable: !0,
2086
2106
  value: n
2087
- }) : e[t] = n, Na = (e, t) => {
2088
- for (var n in t ||= {}) Aa.call(t, n) && Ma(e, n, t[n]);
2089
- if (ka) for (var n of ka(t)) ja.call(t, n) && Ma(e, n, t[n]);
2107
+ }) : e[t] = n, Ga = (e, t) => {
2108
+ for (var n in t ||= {}) Ha.call(t, n) && Wa(e, n, t[n]);
2109
+ if (Va) for (var n of Va(t)) Ua.call(t, n) && Wa(e, n, t[n]);
2090
2110
  return e;
2091
- }, Pa = (e, t) => {
2111
+ }, Ka = (e, t) => {
2092
2112
  var n = {};
2093
- for (var r in e) Aa.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
2094
- if (e != null && ka) for (var r of ka(e)) t.indexOf(r) < 0 && ja.call(e, r) && (n[r] = e[r]);
2113
+ for (var r in e) Ha.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
2114
+ if (e != null && Va) for (var r of Va(e)) t.indexOf(r) < 0 && Ua.call(e, r) && (n[r] = e[r]);
2095
2115
  return n;
2096
- }, Fa = "[vue-draggable-plus]: ";
2097
- function Ia(e) {
2098
- console.warn(Fa + e);
2116
+ }, qa = "[vue-draggable-plus]: ";
2117
+ function Ja(e) {
2118
+ console.warn(qa + e);
2099
2119
  }
2100
- function La(e) {
2101
- console.error(Fa + e);
2120
+ function Ya(e) {
2121
+ console.error(qa + e);
2102
2122
  }
2103
- function Ra(e, t, n) {
2123
+ function Xa(e, t, n) {
2104
2124
  return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
2105
2125
  }
2106
- function za(e) {
2126
+ function Za(e) {
2107
2127
  return e.replace(/-(\w)/g, (e, t) => t ? t.toUpperCase() : "");
2108
2128
  }
2109
- function Ba(e) {
2110
- return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[za(n)] = e[n]), t), {});
2129
+ function Qa(e) {
2130
+ return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[Za(n)] = e[n]), t), {});
2111
2131
  }
2112
- function Va(e, t) {
2132
+ function $a(e, t) {
2113
2133
  return Array.isArray(e) && e.splice(t, 1), e;
2114
2134
  }
2115
- function Ha(e, t, n) {
2135
+ function eo(e, t, n) {
2116
2136
  return Array.isArray(e) && e.splice(t, 0, n), e;
2117
2137
  }
2118
- function Ua(e) {
2138
+ function to(e) {
2119
2139
  return e === void 0;
2120
2140
  }
2121
- function Wa(e) {
2141
+ function no(e) {
2122
2142
  return typeof e == "string";
2123
2143
  }
2124
- function Ga(e, t, n) {
2144
+ function ro(e, t, n) {
2125
2145
  let r = e.children[n];
2126
2146
  e.insertBefore(t, r);
2127
2147
  }
2128
- function Ka(e) {
2148
+ function io(e) {
2129
2149
  e.parentNode && e.parentNode.removeChild(e);
2130
2150
  }
2131
- function qa(e, t = document) {
2151
+ function ao(e, t = document) {
2132
2152
  let n = null;
2133
- return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || Ia(`Element not found: ${e}`), n;
2153
+ return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || Ja(`Element not found: ${e}`), n;
2134
2154
  }
2135
- function Ja(e, t, n = null) {
2155
+ function oo(e, t, n = null) {
2136
2156
  return function(...r) {
2137
2157
  return e.apply(n, r), t.apply(n, r);
2138
2158
  };
2139
2159
  }
2140
- function Ya(e, t) {
2141
- let n = Na({}, e);
2160
+ function so(e, t) {
2161
+ let n = Ga({}, e);
2142
2162
  return Object.keys(t).forEach((r) => {
2143
- n[r] ? n[r] = Ja(e[r], t[r]) : n[r] = t[r];
2163
+ n[r] ? n[r] = oo(e[r], t[r]) : n[r] = t[r];
2144
2164
  }), n;
2145
2165
  }
2146
- function Xa(e) {
2166
+ function co(e) {
2147
2167
  return e instanceof HTMLElement;
2148
2168
  }
2149
- function Za(e, t) {
2169
+ function lo(e, t) {
2150
2170
  Object.keys(e).forEach((n) => {
2151
2171
  t(n, e[n]);
2152
2172
  });
2153
2173
  }
2154
- function Qa(e) {
2174
+ function uo(e) {
2155
2175
  return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
2156
2176
  }
2157
- var $a = Object.assign;
2158
- function eo(e, t) {
2177
+ var fo = Object.assign;
2178
+ function po(e, t) {
2159
2179
  var n = Object.keys(e);
2160
2180
  if (Object.getOwnPropertySymbols) {
2161
2181
  var r = Object.getOwnPropertySymbols(e);
@@ -2165,26 +2185,26 @@ function eo(e, t) {
2165
2185
  }
2166
2186
  return n;
2167
2187
  }
2168
- function to(e) {
2188
+ function mo(e) {
2169
2189
  for (var t = 1; t < arguments.length; t++) {
2170
2190
  var n = arguments[t] == null ? {} : arguments[t];
2171
- t % 2 ? eo(Object(n), !0).forEach(function(t) {
2172
- ro(e, t, n[t]);
2173
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : eo(Object(n)).forEach(function(t) {
2191
+ t % 2 ? po(Object(n), !0).forEach(function(t) {
2192
+ go(e, t, n[t]);
2193
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : po(Object(n)).forEach(function(t) {
2174
2194
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
2175
2195
  });
2176
2196
  }
2177
2197
  return e;
2178
2198
  }
2179
- function no(e) {
2199
+ function ho(e) {
2180
2200
  "@babel/helpers - typeof";
2181
- return no = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2201
+ return ho = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2182
2202
  return typeof e;
2183
2203
  } : function(e) {
2184
2204
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2185
- }, no(e);
2205
+ }, ho(e);
2186
2206
  }
2187
- function ro(e, t, n) {
2207
+ function go(e, t, n) {
2188
2208
  return t in e ? Object.defineProperty(e, t, {
2189
2209
  value: n,
2190
2210
  enumerable: !0,
@@ -2192,44 +2212,44 @@ function ro(e, t, n) {
2192
2212
  writable: !0
2193
2213
  }) : e[t] = n, e;
2194
2214
  }
2195
- function io() {
2196
- return io = Object.assign || function(e) {
2215
+ function _o() {
2216
+ return _o = Object.assign || function(e) {
2197
2217
  for (var t = 1; t < arguments.length; t++) {
2198
2218
  var n = arguments[t];
2199
2219
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
2200
2220
  }
2201
2221
  return e;
2202
- }, io.apply(this, arguments);
2222
+ }, _o.apply(this, arguments);
2203
2223
  }
2204
- function ao(e, t) {
2224
+ function vo(e, t) {
2205
2225
  if (e == null) return {};
2206
2226
  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]);
2207
2227
  return n;
2208
2228
  }
2209
- function oo(e, t) {
2229
+ function yo(e, t) {
2210
2230
  if (e == null) return {};
2211
- var n = ao(e, t), r, i;
2231
+ var n = vo(e, t), r, i;
2212
2232
  if (Object.getOwnPropertySymbols) {
2213
2233
  var a = Object.getOwnPropertySymbols(e);
2214
2234
  for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
2215
2235
  }
2216
2236
  return n;
2217
2237
  }
2218
- var so = "1.15.2";
2219
- function co(e) {
2238
+ var bo = "1.15.2";
2239
+ function xo(e) {
2220
2240
  if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
2221
2241
  }
2222
- var lo = co(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), uo = co(/Edge/i), fo = co(/firefox/i), po = co(/safari/i) && !co(/chrome/i) && !co(/android/i), mo = co(/iP(ad|od|hone)/i), ho = co(/chrome/i) && co(/android/i), go = {
2242
+ var So = xo(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Co = xo(/Edge/i), wo = xo(/firefox/i), To = xo(/safari/i) && !xo(/chrome/i) && !xo(/android/i), Eo = xo(/iP(ad|od|hone)/i), Do = xo(/chrome/i) && xo(/android/i), Oo = {
2223
2243
  capture: !1,
2224
2244
  passive: !1
2225
2245
  };
2226
- function L(e, t, n) {
2227
- e.addEventListener(t, n, !lo && go);
2228
- }
2229
2246
  function R(e, t, n) {
2230
- e.removeEventListener(t, n, !lo && go);
2247
+ e.addEventListener(t, n, !So && Oo);
2231
2248
  }
2232
- function _o(e, t) {
2249
+ function z(e, t, n) {
2250
+ e.removeEventListener(t, n, !So && Oo);
2251
+ }
2252
+ function ko(e, t) {
2233
2253
  if (t) {
2234
2254
  if (t[0] === ">" && (t = t.substring(1)), e) try {
2235
2255
  if (e.matches) return e.matches(t);
@@ -2241,41 +2261,41 @@ function _o(e, t) {
2241
2261
  return !1;
2242
2262
  }
2243
2263
  }
2244
- function vo(e) {
2264
+ function Ao(e) {
2245
2265
  return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
2246
2266
  }
2247
- function yo(e, t, n, r) {
2267
+ function jo(e, t, n, r) {
2248
2268
  if (e) {
2249
2269
  n ||= document;
2250
2270
  do {
2251
- if (t != null && (t[0] === ">" ? e.parentNode === n && _o(e, t) : _o(e, t)) || r && e === n) return e;
2271
+ if (t != null && (t[0] === ">" ? e.parentNode === n && ko(e, t) : ko(e, t)) || r && e === n) return e;
2252
2272
  if (e === n) break;
2253
- } while (e = vo(e));
2273
+ } while (e = Ao(e));
2254
2274
  }
2255
2275
  return null;
2256
2276
  }
2257
- var bo = /\s+/g;
2258
- function xo(e, t, n) {
2259
- e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(bo, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(bo, " "));
2277
+ var Mo = /\s+/g;
2278
+ function B(e, t, n) {
2279
+ e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(Mo, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(Mo, " "));
2260
2280
  }
2261
- function z(e, t, n) {
2281
+ function V(e, t, n) {
2262
2282
  var r = e && e.style;
2263
2283
  if (r) {
2264
2284
  if (n === void 0) return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (n = e.currentStyle), t === void 0 ? n : n[t];
2265
2285
  !(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
2266
2286
  }
2267
2287
  }
2268
- function So(e, t) {
2288
+ function No(e, t) {
2269
2289
  var n = "";
2270
2290
  if (typeof e == "string") n = e;
2271
2291
  else do {
2272
- var r = z(e, "transform");
2292
+ var r = V(e, "transform");
2273
2293
  r && r !== "none" && (n = r + " " + n);
2274
2294
  } while (!t && (e = e.parentNode));
2275
2295
  var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
2276
2296
  return i && new i(n);
2277
2297
  }
2278
- function Co(e, t, n) {
2298
+ function Po(e, t, n) {
2279
2299
  if (e) {
2280
2300
  var r = e.getElementsByTagName(t), i = 0, a = r.length;
2281
2301
  if (n) for (; i < a; i++) n(r[i], i);
@@ -2283,21 +2303,21 @@ function Co(e, t, n) {
2283
2303
  }
2284
2304
  return [];
2285
2305
  }
2286
- function wo() {
2306
+ function Fo() {
2287
2307
  return document.scrollingElement || document.documentElement;
2288
2308
  }
2289
- function B(e, t, n, r, i) {
2309
+ function H(e, t, n, r, i) {
2290
2310
  if (e.getBoundingClientRect || e === window) {
2291
2311
  var a, o, s, c, l, u, d;
2292
- if (e !== window && e.parentNode && e !== wo() ? (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, !lo)) do
2293
- if (i && i.getBoundingClientRect && (z(i, "transform") !== "none" || n && z(i, "position") !== "static")) {
2312
+ 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, !So)) do
2313
+ if (i && i.getBoundingClientRect && (V(i, "transform") !== "none" || n && V(i, "position") !== "static")) {
2294
2314
  var f = i.getBoundingClientRect();
2295
- o -= f.top + parseInt(z(i, "border-top-width")), s -= f.left + parseInt(z(i, "border-left-width")), c = o + a.height, l = s + a.width;
2315
+ 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;
2296
2316
  break;
2297
2317
  }
2298
2318
  while (i = i.parentNode);
2299
2319
  if (r && e !== window) {
2300
- var p = So(i || e), m = p && p.a, h = p && p.d;
2320
+ var p = No(i || e), m = p && p.a, h = p && p.d;
2301
2321
  p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
2302
2322
  }
2303
2323
  return {
@@ -2310,18 +2330,18 @@ function B(e, t, n, r, i) {
2310
2330
  };
2311
2331
  }
2312
2332
  }
2313
- function To(e, t, n) {
2314
- for (var r = jo(e, !0), i = B(e)[t]; r;) {
2315
- var a = B(r)[n], o = void 0;
2333
+ function Io(e, t, n) {
2334
+ for (var r = Ho(e, !0), i = H(e)[t]; r;) {
2335
+ var a = H(r)[n], o = void 0;
2316
2336
  if (o = i >= a, !o) return r;
2317
- if (r === wo()) break;
2318
- r = jo(r, !1);
2337
+ if (r === Fo()) break;
2338
+ r = Ho(r, !1);
2319
2339
  }
2320
2340
  return !1;
2321
2341
  }
2322
- function Eo(e, t, n, r) {
2342
+ function Lo(e, t, n, r) {
2323
2343
  for (var i = 0, a = 0, o = e.children; a < o.length;) {
2324
- if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && yo(o[a], n.draggable, e, !1)) {
2344
+ if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && jo(o[a], n.draggable, e, !1)) {
2325
2345
  if (i === t) return o[a];
2326
2346
  i++;
2327
2347
  }
@@ -2329,96 +2349,96 @@ function Eo(e, t, n, r) {
2329
2349
  }
2330
2350
  return null;
2331
2351
  }
2332
- function Do(e, t) {
2333
- for (var n = e.lastElementChild; n && (n === Q.ghost || z(n, "display") === "none" || t && !_o(n, t));) n = n.previousElementSibling;
2352
+ function Ro(e, t) {
2353
+ for (var n = e.lastElementChild; n && (n === Q.ghost || V(n, "display") === "none" || t && !ko(n, t));) n = n.previousElementSibling;
2334
2354
  return n || null;
2335
2355
  }
2336
- function Oo(e, t) {
2356
+ function zo(e, t) {
2337
2357
  var n = 0;
2338
2358
  if (!e || !e.parentNode) return -1;
2339
- for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || _o(e, t)) && n++;
2359
+ for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || ko(e, t)) && n++;
2340
2360
  return n;
2341
2361
  }
2342
- function ko(e) {
2343
- var t = 0, n = 0, r = wo();
2362
+ function Bo(e) {
2363
+ var t = 0, n = 0, r = Fo();
2344
2364
  if (e) do {
2345
- var i = So(e), a = i.a, o = i.d;
2365
+ var i = No(e), a = i.a, o = i.d;
2346
2366
  t += e.scrollLeft * a, n += e.scrollTop * o;
2347
2367
  } while (e !== r && (e = e.parentNode));
2348
2368
  return [t, n];
2349
2369
  }
2350
- function Ao(e, t) {
2370
+ function Vo(e, t) {
2351
2371
  for (var n in e) if (e.hasOwnProperty(n)) {
2352
2372
  for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
2353
2373
  }
2354
2374
  return -1;
2355
2375
  }
2356
- function jo(e, t) {
2357
- if (!e || !e.getBoundingClientRect) return wo();
2376
+ function Ho(e, t) {
2377
+ if (!e || !e.getBoundingClientRect) return Fo();
2358
2378
  var n = e, r = !1;
2359
2379
  do
2360
2380
  if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
2361
- var i = z(n);
2381
+ var i = V(n);
2362
2382
  if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
2363
- if (!n.getBoundingClientRect || n === document.body) return wo();
2383
+ if (!n.getBoundingClientRect || n === document.body) return Fo();
2364
2384
  if (r || t) return n;
2365
2385
  r = !0;
2366
2386
  }
2367
2387
  }
2368
2388
  while (n = n.parentNode);
2369
- return wo();
2389
+ return Fo();
2370
2390
  }
2371
- function Mo(e, t) {
2391
+ function Uo(e, t) {
2372
2392
  if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
2373
2393
  return e;
2374
2394
  }
2375
- function No(e, t) {
2395
+ function Wo(e, t) {
2376
2396
  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);
2377
2397
  }
2378
- var Po;
2379
- function Fo(e, t) {
2398
+ var Go;
2399
+ function Ko(e, t) {
2380
2400
  return function() {
2381
- if (!Po) {
2401
+ if (!Go) {
2382
2402
  var n = arguments, r = this;
2383
- n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), Po = setTimeout(function() {
2384
- Po = void 0;
2403
+ n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), Go = setTimeout(function() {
2404
+ Go = void 0;
2385
2405
  }, t);
2386
2406
  }
2387
2407
  };
2388
2408
  }
2389
- function Io() {
2390
- clearTimeout(Po), Po = void 0;
2409
+ function qo() {
2410
+ clearTimeout(Go), Go = void 0;
2391
2411
  }
2392
- function Lo(e, t, n) {
2412
+ function Jo(e, t, n) {
2393
2413
  e.scrollLeft += t, e.scrollTop += n;
2394
2414
  }
2395
- function Ro(e) {
2415
+ function Yo(e) {
2396
2416
  var t = window.Polymer, n = window.jQuery || window.Zepto;
2397
2417
  return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
2398
2418
  }
2399
- function zo(e, t, n) {
2419
+ function Xo(e, t, n) {
2400
2420
  var r = {};
2401
2421
  return Array.from(e.children).forEach(function(i) {
2402
- if (yo(i, t.draggable, e, !1) && !i.animated && i !== n) {
2403
- var a = B(i);
2422
+ if (jo(i, t.draggable, e, !1) && !i.animated && i !== n) {
2423
+ var a = H(i);
2404
2424
  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);
2405
2425
  }
2406
2426
  }), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
2407
2427
  }
2408
- var V = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
2409
- function Bo() {
2428
+ var Zo = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
2429
+ function Qo() {
2410
2430
  var e = [], t;
2411
2431
  return {
2412
2432
  captureAnimationState: function() {
2413
2433
  e = [], this.options.animation && [].slice.call(this.el.children).forEach(function(t) {
2414
- if (z(t, "display") !== "none" && t !== Q.ghost) {
2434
+ if (V(t, "display") !== "none" && t !== Q.ghost) {
2415
2435
  e.push({
2416
2436
  target: t,
2417
- rect: B(t)
2437
+ rect: H(t)
2418
2438
  });
2419
- var n = to({}, e[e.length - 1].rect);
2439
+ var n = mo({}, e[e.length - 1].rect);
2420
2440
  if (t.thisAnimationDuration) {
2421
- var r = So(t, !0);
2441
+ var r = No(t, !0);
2422
2442
  r && (n.top -= r.f, n.left -= r.e);
2423
2443
  }
2424
2444
  t.fromRect = n;
@@ -2429,7 +2449,7 @@ function Bo() {
2429
2449
  e.push(t);
2430
2450
  },
2431
2451
  removeAnimationState: function(t) {
2432
- e.splice(Ao(e, { target: t }), 1);
2452
+ e.splice(Vo(e, { target: t }), 1);
2433
2453
  },
2434
2454
  animateAll: function(n) {
2435
2455
  var r = this;
@@ -2437,8 +2457,8 @@ function Bo() {
2437
2457
  else {
2438
2458
  var i = !1, a = 0;
2439
2459
  e.forEach(function(e) {
2440
- var t = 0, n = e.target, o = n.fromRect, s = B(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = So(n, !0);
2441
- d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && No(c, s) && !No(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = Ho(u, c, l, r.options)), No(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() {
2460
+ 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);
2461
+ 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() {
2442
2462
  n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
2443
2463
  }, t), n.thisAnimationDuration = t);
2444
2464
  }), clearTimeout(t), i ? t = setTimeout(function() {
@@ -2448,27 +2468,27 @@ function Bo() {
2448
2468
  },
2449
2469
  animate: function(e, t, n, r) {
2450
2470
  if (r) {
2451
- z(e, "transition", ""), z(e, "transform", "");
2452
- var i = So(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
2453
- e.animatingX = !!s, e.animatingY = !!c, z(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = Vo(e), z(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), z(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
2454
- z(e, "transition", ""), z(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
2471
+ V(e, "transition", ""), V(e, "transform", "");
2472
+ 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);
2473
+ 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() {
2474
+ V(e, "transition", ""), V(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
2455
2475
  }, r);
2456
2476
  }
2457
2477
  }
2458
2478
  };
2459
2479
  }
2460
- function Vo(e) {
2480
+ function $o(e) {
2461
2481
  return e.offsetWidth;
2462
2482
  }
2463
- function Ho(e, t, n, r) {
2483
+ function es(e, t, n, r) {
2464
2484
  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;
2465
2485
  }
2466
- var Uo = [], Wo = { initializeByDefault: !0 }, Go = {
2486
+ var ts = [], ns = { initializeByDefault: !0 }, rs = {
2467
2487
  mount: function(e) {
2468
- for (var t in Wo) Wo.hasOwnProperty(t) && !(t in e) && (e[t] = Wo[t]);
2469
- Uo.forEach(function(t) {
2488
+ for (var t in ns) ns.hasOwnProperty(t) && !(t in e) && (e[t] = ns[t]);
2489
+ ts.forEach(function(t) {
2470
2490
  if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
2471
- }), Uo.push(e);
2491
+ }), ts.push(e);
2472
2492
  },
2473
2493
  pluginEvent: function(e, t, n) {
2474
2494
  var r = this;
@@ -2476,16 +2496,16 @@ var Uo = [], Wo = { initializeByDefault: !0 }, Go = {
2476
2496
  r.eventCanceled = !0;
2477
2497
  };
2478
2498
  var i = e + "Global";
2479
- Uo.forEach(function(r) {
2480
- t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](to({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](to({ sortable: t }, n)));
2499
+ ts.forEach(function(r) {
2500
+ t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](mo({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](mo({ sortable: t }, n)));
2481
2501
  });
2482
2502
  },
2483
2503
  initializePlugins: function(e, t, n, r) {
2484
- for (var i in Uo.forEach(function(r) {
2504
+ for (var i in ts.forEach(function(r) {
2485
2505
  var i = r.pluginName;
2486
2506
  if (e.options[i] || r.initializeByDefault) {
2487
2507
  var a = new r(e, t, e.options);
2488
- a.sortable = e, a.options = e.options, e[i] = a, io(n, a.defaults);
2508
+ a.sortable = e, a.options = e.options, e[i] = a, _o(n, a.defaults);
2489
2509
  }
2490
2510
  }), e.options) if (e.options.hasOwnProperty(i)) {
2491
2511
  var a = this.modifyOption(e, i, e.options[i]);
@@ -2494,59 +2514,59 @@ var Uo = [], Wo = { initializeByDefault: !0 }, Go = {
2494
2514
  },
2495
2515
  getEventProperties: function(e, t) {
2496
2516
  var n = {};
2497
- return Uo.forEach(function(r) {
2498
- typeof r.eventProperties == "function" && io(n, r.eventProperties.call(t[r.pluginName], e));
2517
+ return ts.forEach(function(r) {
2518
+ typeof r.eventProperties == "function" && _o(n, r.eventProperties.call(t[r.pluginName], e));
2499
2519
  }), n;
2500
2520
  },
2501
2521
  modifyOption: function(e, t, n) {
2502
2522
  var r;
2503
- return Uo.forEach(function(i) {
2523
+ return ts.forEach(function(i) {
2504
2524
  e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
2505
2525
  }), r;
2506
2526
  }
2507
2527
  };
2508
- function Ko(e) {
2528
+ function is(e) {
2509
2529
  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;
2510
- if (t ||= n && n[V], t) {
2530
+ if (t ||= n && n[Zo], t) {
2511
2531
  var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
2512
- window.CustomEvent && !lo && !uo ? h = new CustomEvent(r, {
2532
+ window.CustomEvent && !So && !Co ? h = new CustomEvent(r, {
2513
2533
  bubbles: !0,
2514
2534
  cancelable: !0
2515
2535
  }) : (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;
2516
- var v = to(to({}, m), Go.getEventProperties(r, t));
2536
+ var v = mo(mo({}, m), rs.getEventProperties(r, t));
2517
2537
  for (var y in v) h[y] = v[y];
2518
2538
  n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
2519
2539
  }
2520
2540
  }
2521
- var qo = ["evt"], H = function(e, t) {
2522
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = oo(n, qo);
2523
- Go.pluginEvent.bind(Q)(e, t, to({
2524
- dragEl: W,
2525
- parentEl: G,
2526
- ghostEl: K,
2527
- rootEl: q,
2528
- nextEl: Jo,
2529
- lastDownEl: Yo,
2530
- cloneEl: J,
2531
- cloneHidden: Xo,
2532
- dragStarted: us,
2541
+ var as = ["evt"], U = function(e, t) {
2542
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = yo(n, as);
2543
+ rs.pluginEvent.bind(Q)(e, t, mo({
2544
+ dragEl: G,
2545
+ parentEl: K,
2546
+ ghostEl: q,
2547
+ rootEl: J,
2548
+ nextEl: os,
2549
+ lastDownEl: ss,
2550
+ cloneEl: Y,
2551
+ cloneHidden: cs,
2552
+ dragStarted: Cs,
2533
2553
  putSortable: X,
2534
2554
  activeSortable: Q.active,
2535
2555
  originalEvent: r,
2536
- oldIndex: Zo,
2537
- oldDraggableIndex: Qo,
2538
- newIndex: Y,
2539
- newDraggableIndex: $o,
2540
- hideGhostForTarget: Os,
2541
- unhideGhostForTarget: ks,
2556
+ oldIndex: ls,
2557
+ oldDraggableIndex: ds,
2558
+ newIndex: us,
2559
+ newDraggableIndex: fs,
2560
+ hideGhostForTarget: Vs,
2561
+ unhideGhostForTarget: Hs,
2542
2562
  cloneNowHidden: function() {
2543
- Xo = !0;
2563
+ cs = !0;
2544
2564
  },
2545
2565
  cloneNowShown: function() {
2546
- Xo = !1;
2566
+ cs = !1;
2547
2567
  },
2548
2568
  dispatchSortableEvent: function(e) {
2549
- U({
2569
+ W({
2550
2570
  sortable: t,
2551
2571
  name: e,
2552
2572
  originalEvent: r
@@ -2554,46 +2574,46 @@ var qo = ["evt"], H = function(e, t) {
2554
2574
  }
2555
2575
  }, i));
2556
2576
  };
2557
- function U(e) {
2558
- Ko(to({
2577
+ function W(e) {
2578
+ is(mo({
2559
2579
  putSortable: X,
2560
- cloneEl: J,
2561
- targetEl: W,
2562
- rootEl: q,
2563
- oldIndex: Zo,
2564
- oldDraggableIndex: Qo,
2565
- newIndex: Y,
2566
- newDraggableIndex: $o
2580
+ cloneEl: Y,
2581
+ targetEl: G,
2582
+ rootEl: J,
2583
+ oldIndex: ls,
2584
+ oldDraggableIndex: ds,
2585
+ newIndex: us,
2586
+ newDraggableIndex: fs
2567
2587
  }, e));
2568
2588
  }
2569
- var W, G, K, q, Jo, Yo, J, Xo, Zo, Y, Qo, $o, es, X, ts = !1, ns = !1, rs = [], is, as, os, ss, cs, ls, us, ds, fs, ps = !1, ms = !1, hs, Z, gs = [], _s = !1, vs = [], ys = typeof document < "u", bs = mo, xs = uo || lo ? "cssFloat" : "float", Ss = ys && !ho && !mo && "draggable" in document.createElement("div"), Cs = function() {
2570
- if (ys) {
2571
- if (lo) return !1;
2589
+ 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 = Eo, Ps = Co || So ? "cssFloat" : "float", Fs = Ms && !Do && !Eo && "draggable" in document.createElement("div"), Is = function() {
2590
+ if (Ms) {
2591
+ if (So) return !1;
2572
2592
  var e = document.createElement("x");
2573
2593
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
2574
2594
  }
2575
- }(), ws = function(e, t) {
2576
- var n = z(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = Eo(e, 0, t), a = Eo(e, 1, t), o = i && z(i), s = a && z(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + B(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + B(a).width;
2595
+ }(), Ls = function(e, t) {
2596
+ 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;
2577
2597
  if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
2578
2598
  if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
2579
2599
  if (i && o.float && o.float !== "none") {
2580
2600
  var u = o.float === "left" ? "left" : "right";
2581
2601
  return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
2582
2602
  }
2583
- return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[xs] === "none" || a && n[xs] === "none" && c + l > r) ? "vertical" : "horizontal";
2584
- }, Ts = function(e, t, n) {
2603
+ 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";
2604
+ }, Rs = function(e, t, n) {
2585
2605
  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;
2586
2606
  return r === o || i === s || r + a / 2 === o + c / 2;
2587
- }, Es = function(e, t) {
2607
+ }, zs = function(e, t) {
2588
2608
  var n;
2589
- return rs.some(function(r) {
2590
- var i = r[V].options.emptyInsertThreshold;
2591
- if (i && !Do(r)) {
2592
- var a = B(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
2609
+ return gs.some(function(r) {
2610
+ var i = r[Zo].options.emptyInsertThreshold;
2611
+ if (i && !Ro(r)) {
2612
+ var a = H(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
2593
2613
  if (o && s) return n = r;
2594
2614
  }
2595
2615
  }), n;
2596
- }, Ds = function(e) {
2616
+ }, Bs = function(e) {
2597
2617
  function t(e, n) {
2598
2618
  return function(r, i, a, o) {
2599
2619
  var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
@@ -2606,31 +2626,31 @@ var W, G, K, q, Jo, Yo, J, Xo, Zo, Y, Qo, $o, es, X, ts = !1, ns = !1, rs = [],
2606
2626
  };
2607
2627
  }
2608
2628
  var n = {}, r = e.group;
2609
- (!r || no(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;
2610
- }, Os = function() {
2611
- !Cs && K && z(K, "display", "none");
2612
- }, ks = function() {
2613
- !Cs && K && z(K, "display", "");
2629
+ (!r || ho(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;
2630
+ }, Vs = function() {
2631
+ !Is && q && V(q, "display", "none");
2632
+ }, Hs = function() {
2633
+ !Is && q && V(q, "display", "");
2614
2634
  };
2615
- ys && !ho && document.addEventListener("click", function(e) {
2616
- if (ns) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), ns = !1, !1;
2635
+ Ms && !Do && document.addEventListener("click", function(e) {
2636
+ if (hs) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), hs = !1, !1;
2617
2637
  }, !0);
2618
- var As = function(e) {
2619
- if (W) {
2638
+ var Us = function(e) {
2639
+ if (G) {
2620
2640
  e = e.touches ? e.touches[0] : e;
2621
- var t = Es(e.clientX, e.clientY);
2641
+ var t = zs(e.clientX, e.clientY);
2622
2642
  if (t) {
2623
2643
  var n = {};
2624
2644
  for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
2625
- n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[V]._onDragOver(n);
2645
+ n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[Zo]._onDragOver(n);
2626
2646
  }
2627
2647
  }
2628
- }, js = function(e) {
2629
- W && W.parentNode[V]._isOutsideThisEl(e.target);
2648
+ }, Ws = function(e) {
2649
+ G && G.parentNode[Zo]._isOutsideThisEl(e.target);
2630
2650
  };
2631
2651
  function Q(e, t) {
2632
2652
  if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
2633
- this.el = e, this.options = t = io({}, t), e[V] = this;
2653
+ this.el = e, this.options = t = _o({}, t), e[Zo] = this;
2634
2654
  var n = {
2635
2655
  group: null,
2636
2656
  sort: !0,
@@ -2643,7 +2663,7 @@ function Q(e, t) {
2643
2663
  invertedSwapThreshold: null,
2644
2664
  removeCloneOnHide: !0,
2645
2665
  direction: function() {
2646
- return ws(e, this.options);
2666
+ return Ls(e, this.options);
2647
2667
  },
2648
2668
  ghostClass: "sortable-ghost",
2649
2669
  chosenClass: "sortable-chosen",
@@ -2670,76 +2690,76 @@ function Q(e, t) {
2670
2690
  x: 0,
2671
2691
  y: 0
2672
2692
  },
2673
- supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !po,
2693
+ supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !To,
2674
2694
  emptyInsertThreshold: 5
2675
2695
  };
2676
- for (var r in Go.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
2677
- for (var i in Ds(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
2678
- this.nativeDraggable = !t.forceFallback && Ss, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? L(e, "pointerdown", this._onTapStart) : (L(e, "mousedown", this._onTapStart), L(e, "touchstart", this._onTapStart)), this.nativeDraggable && (L(e, "dragover", this), L(e, "dragenter", this)), rs.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), io(this, Bo());
2696
+ for (var r in rs.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
2697
+ for (var i in Bs(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
2698
+ this.nativeDraggable = !t.forceFallback && Fs, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? R(e, "pointerdown", this._onTapStart) : (R(e, "mousedown", this._onTapStart), R(e, "touchstart", this._onTapStart)), this.nativeDraggable && (R(e, "dragover", this), R(e, "dragenter", this)), gs.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), _o(this, Qo());
2679
2699
  }
2680
2700
  Q.prototype = {
2681
2701
  constructor: Q,
2682
2702
  _isOutsideThisEl: function(e) {
2683
- !this.el.contains(e) && e !== this.el && (ds = null);
2703
+ !this.el.contains(e) && e !== this.el && (ws = null);
2684
2704
  },
2685
2705
  _getDirection: function(e, t) {
2686
- return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, W) : this.options.direction;
2706
+ return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, G) : this.options.direction;
2687
2707
  },
2688
2708
  _onTapStart: function(e) {
2689
2709
  if (e.cancelable) {
2690
2710
  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;
2691
- if (Vs(n), !W && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && po && s && s.tagName.toUpperCase() === "SELECT") && (s = yo(s, r.draggable, n, !1), !(s && s.animated) && Yo !== s)) {
2692
- if (Zo = Oo(s), Qo = Oo(s, r.draggable), typeof l == "function") {
2711
+ if (ec(n), !G && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && To && s && s.tagName.toUpperCase() === "SELECT") && (s = jo(s, r.draggable, n, !1), !(s && s.animated) && ss !== s)) {
2712
+ if (ls = zo(s), ds = zo(s, r.draggable), typeof l == "function") {
2693
2713
  if (l.call(this, e, s, this)) {
2694
- U({
2714
+ W({
2695
2715
  sortable: t,
2696
2716
  rootEl: c,
2697
2717
  name: "filter",
2698
2718
  targetEl: s,
2699
2719
  toEl: n,
2700
2720
  fromEl: n
2701
- }), H("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
2721
+ }), U("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
2702
2722
  return;
2703
2723
  }
2704
2724
  } else if (l && (l = l.split(",").some(function(r) {
2705
- if (r = yo(c, r.trim(), n, !1), r) return U({
2725
+ if (r = jo(c, r.trim(), n, !1), r) return W({
2706
2726
  sortable: t,
2707
2727
  rootEl: r,
2708
2728
  name: "filter",
2709
2729
  targetEl: s,
2710
2730
  fromEl: n,
2711
2731
  toEl: n
2712
- }), H("filter", t, { evt: e }), !0;
2732
+ }), U("filter", t, { evt: e }), !0;
2713
2733
  }), l)) {
2714
2734
  i && e.cancelable && e.preventDefault();
2715
2735
  return;
2716
2736
  }
2717
- r.handle && !yo(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
2737
+ r.handle && !jo(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
2718
2738
  }
2719
2739
  }
2720
2740
  },
2721
2741
  _prepareDragStart: function(e, t, n) {
2722
2742
  var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
2723
- if (n && !W && n.parentNode === i) {
2724
- var c = B(n);
2725
- if (q = i, W = n, G = W.parentNode, Jo = W.nextSibling, Yo = n, es = a.group, Q.dragged = W, is = {
2726
- target: W,
2743
+ if (n && !G && n.parentNode === i) {
2744
+ var c = H(n);
2745
+ if (J = i, G = n, K = G.parentNode, os = G.nextSibling, ss = n, ps = a.group, Q.dragged = G, _s = {
2746
+ target: G,
2727
2747
  clientX: (t || e).clientX,
2728
2748
  clientY: (t || e).clientY
2729
- }, cs = is.clientX - c.left, ls = is.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, W.style["will-change"] = "all", s = function() {
2730
- H("delayEnded", r, { evt: e }), Q.eventCanceled ? r._onDrop() : (r._disableDelayedDragEvents(), !fo && r.nativeDraggable && (W.draggable = !0), r._triggerDragStart(e, t), U({
2749
+ }, 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() {
2750
+ U("delayEnded", r, { evt: e }), Q.eventCanceled ? r._onDrop() : (r._disableDelayedDragEvents(), !wo && r.nativeDraggable && (G.draggable = !0), r._triggerDragStart(e, t), W({
2731
2751
  sortable: r,
2732
2752
  name: "choose",
2733
2753
  originalEvent: e
2734
- }), xo(W, a.chosenClass, !0));
2754
+ }), B(G, a.chosenClass, !0));
2735
2755
  }, a.ignore.split(",").forEach(function(e) {
2736
- Co(W, e.trim(), Ps);
2737
- }), L(o, "dragover", As), L(o, "mousemove", As), L(o, "touchmove", As), L(o, "mouseup", r._onDrop), L(o, "touchend", r._onDrop), L(o, "touchcancel", r._onDrop), fo && this.nativeDraggable && (this.options.touchStartThreshold = 4, W.draggable = !0), H("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(uo || lo))) {
2756
+ Po(G, e.trim(), qs);
2757
+ }), R(o, "dragover", Us), R(o, "mousemove", Us), R(o, "touchmove", Us), R(o, "mouseup", r._onDrop), R(o, "touchend", r._onDrop), R(o, "touchcancel", r._onDrop), wo && this.nativeDraggable && (this.options.touchStartThreshold = 4, G.draggable = !0), U("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Co || So))) {
2738
2758
  if (Q.eventCanceled) {
2739
2759
  this._onDrop();
2740
2760
  return;
2741
2761
  }
2742
- L(o, "mouseup", r._disableDelayedDrag), L(o, "touchend", r._disableDelayedDrag), L(o, "touchcancel", r._disableDelayedDrag), L(o, "mousemove", r._delayedDragTouchMoveHandler), L(o, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && L(o, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
2762
+ R(o, "mouseup", r._disableDelayedDrag), R(o, "touchend", r._disableDelayedDrag), R(o, "touchcancel", r._disableDelayedDrag), R(o, "mousemove", r._delayedDragTouchMoveHandler), R(o, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && R(o, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
2743
2763
  } else s();
2744
2764
  }
2745
2765
  },
@@ -2748,25 +2768,25 @@ Q.prototype = {
2748
2768
  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();
2749
2769
  },
2750
2770
  _disableDelayedDrag: function() {
2751
- W && Ps(W), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2771
+ G && qs(G), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2752
2772
  },
2753
2773
  _disableDelayedDragEvents: function() {
2754
2774
  var e = this.el.ownerDocument;
2755
- R(e, "mouseup", this._disableDelayedDrag), R(e, "touchend", this._disableDelayedDrag), R(e, "touchcancel", this._disableDelayedDrag), R(e, "mousemove", this._delayedDragTouchMoveHandler), R(e, "touchmove", this._delayedDragTouchMoveHandler), R(e, "pointermove", this._delayedDragTouchMoveHandler);
2775
+ z(e, "mouseup", this._disableDelayedDrag), z(e, "touchend", this._disableDelayedDrag), z(e, "touchcancel", this._disableDelayedDrag), z(e, "mousemove", this._delayedDragTouchMoveHandler), z(e, "touchmove", this._delayedDragTouchMoveHandler), z(e, "pointermove", this._delayedDragTouchMoveHandler);
2756
2776
  },
2757
2777
  _triggerDragStart: function(e, t) {
2758
- t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? L(document, "pointermove", this._onTouchMove) : t ? L(document, "touchmove", this._onTouchMove) : L(document, "mousemove", this._onTouchMove) : (L(W, "dragend", this), L(q, "dragstart", this._onDragStart));
2778
+ t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? R(document, "pointermove", this._onTouchMove) : t ? R(document, "touchmove", this._onTouchMove) : R(document, "mousemove", this._onTouchMove) : (R(G, "dragend", this), R(J, "dragstart", this._onDragStart));
2759
2779
  try {
2760
- document.selection ? Hs(function() {
2780
+ document.selection ? tc(function() {
2761
2781
  document.selection.empty();
2762
2782
  }) : window.getSelection().removeAllRanges();
2763
2783
  } catch {}
2764
2784
  },
2765
2785
  _dragStarted: function(e, t) {
2766
- if (ts = !1, q && W) {
2767
- H("dragStarted", this, { evt: t }), this.nativeDraggable && L(document, "dragover", js);
2786
+ if (ms = !1, J && G) {
2787
+ U("dragStarted", this, { evt: t }), this.nativeDraggable && R(document, "dragover", Ws);
2768
2788
  var n = this.options;
2769
- !e && xo(W, n.dragClass, !1), xo(W, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), U({
2789
+ !e && B(G, n.dragClass, !1), B(G, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), W({
2770
2790
  sortable: this,
2771
2791
  name: "start",
2772
2792
  originalEvent: t
@@ -2774,33 +2794,33 @@ Q.prototype = {
2774
2794
  } else this._nulling();
2775
2795
  },
2776
2796
  _emulateDragOver: function() {
2777
- if (as) {
2778
- this._lastX = as.clientX, this._lastY = as.clientY, Os();
2779
- for (var e = document.elementFromPoint(as.clientX, as.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(as.clientX, as.clientY), e !== t);) t = e;
2780
- if (W.parentNode[V]._isOutsideThisEl(e), t) do {
2781
- if (t[V]) {
2797
+ if (vs) {
2798
+ this._lastX = vs.clientX, this._lastY = vs.clientY, Vs();
2799
+ 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;
2800
+ if (G.parentNode[Zo]._isOutsideThisEl(e), t) do {
2801
+ if (t[Zo]) {
2782
2802
  var n = void 0;
2783
- if (n = t[V]._onDragOver({
2784
- clientX: as.clientX,
2785
- clientY: as.clientY,
2803
+ if (n = t[Zo]._onDragOver({
2804
+ clientX: vs.clientX,
2805
+ clientY: vs.clientY,
2786
2806
  target: e,
2787
2807
  rootEl: t
2788
2808
  }), n && !this.options.dragoverBubble) break;
2789
2809
  }
2790
2810
  e = t;
2791
2811
  } while (t = t.parentNode);
2792
- ks();
2812
+ Hs();
2793
2813
  }
2794
2814
  },
2795
2815
  _onTouchMove: function(e) {
2796
- if (is) {
2797
- var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = K && So(K, !0), o = K && a && a.a, s = K && a && a.d, c = bs && Z && ko(Z), l = (i.clientX - is.clientX + r.x) / (o || 1) + (c ? c[0] - gs[0] : 0) / (o || 1), u = (i.clientY - is.clientY + r.y) / (s || 1) + (c ? c[1] - gs[1] : 0) / (s || 1);
2798
- if (!Q.active && !ts) {
2816
+ if (_s) {
2817
+ 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);
2818
+ if (!Q.active && !ms) {
2799
2819
  if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
2800
2820
  this._onDragStart(e, !0);
2801
2821
  }
2802
- if (K) {
2803
- a ? (a.e += l - (os || 0), a.f += u - (ss || 0)) : a = {
2822
+ if (q) {
2823
+ a ? (a.e += l - (ys || 0), a.f += u - (bs || 0)) : a = {
2804
2824
  a: 1,
2805
2825
  b: 0,
2806
2826
  c: 0,
@@ -2809,35 +2829,35 @@ Q.prototype = {
2809
2829
  f: u
2810
2830
  };
2811
2831
  var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
2812
- z(K, "webkitTransform", d), z(K, "mozTransform", d), z(K, "msTransform", d), z(K, "transform", d), os = l, ss = u, as = i;
2832
+ V(q, "webkitTransform", d), V(q, "mozTransform", d), V(q, "msTransform", d), V(q, "transform", d), ys = l, bs = u, vs = i;
2813
2833
  }
2814
2834
  e.cancelable && e.preventDefault();
2815
2835
  }
2816
2836
  },
2817
2837
  _appendGhost: function() {
2818
- if (!K) {
2819
- var e = this.options.fallbackOnBody ? document.body : q, t = B(W, !0, bs, !0, e), n = this.options;
2820
- if (bs) {
2821
- for (Z = e; z(Z, "position") === "static" && z(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
2822
- Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = wo()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = wo(), gs = ko(Z);
2838
+ if (!q) {
2839
+ var e = this.options.fallbackOnBody ? document.body : J, t = H(G, !0, Ns, !0, e), n = this.options;
2840
+ if (Ns) {
2841
+ for (Z = e; V(Z, "position") === "static" && V(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
2842
+ Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = Fo()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = Fo(), ks = Bo(Z);
2823
2843
  }
2824
- K = W.cloneNode(!0), xo(K, n.ghostClass, !1), xo(K, n.fallbackClass, !0), xo(K, n.dragClass, !0), z(K, "transition", ""), z(K, "transform", ""), z(K, "box-sizing", "border-box"), z(K, "margin", 0), z(K, "top", t.top), z(K, "left", t.left), z(K, "width", t.width), z(K, "height", t.height), z(K, "opacity", "0.8"), z(K, "position", bs ? "absolute" : "fixed"), z(K, "zIndex", "100000"), z(K, "pointerEvents", "none"), Q.ghost = K, e.appendChild(K), z(K, "transform-origin", cs / parseInt(K.style.width) * 100 + "% " + ls / parseInt(K.style.height) * 100 + "%");
2844
+ q = G.cloneNode(!0), B(q, n.ghostClass, !1), B(q, n.fallbackClass, !0), B(q, n.dragClass, !0), V(q, "transition", ""), V(q, "transform", ""), V(q, "box-sizing", "border-box"), V(q, "margin", 0), V(q, "top", t.top), V(q, "left", t.left), V(q, "width", t.width), V(q, "height", t.height), V(q, "opacity", "0.8"), V(q, "position", 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 + "%");
2825
2845
  }
2826
2846
  },
2827
2847
  _onDragStart: function(e, t) {
2828
2848
  var n = this, r = e.dataTransfer, i = n.options;
2829
- H("dragStart", this, { evt: e }), Q.eventCanceled ? this._onDrop() : (H("setupClone", this), Q.eventCanceled || (J = Ro(W), J.removeAttribute("id"), J.draggable = !1, J.style["will-change"] = "", this._hideClone(), xo(J, this.options.chosenClass, !1), Q.clone = J), n.cloneId = Hs(function() {
2830
- H("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || q.insertBefore(J, W), n._hideClone(), U({
2849
+ 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(), B(Y, this.options.chosenClass, !1), Q.clone = Y), n.cloneId = tc(function() {
2850
+ U("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || J.insertBefore(Y, G), n._hideClone(), W({
2831
2851
  sortable: n,
2832
2852
  name: "clone"
2833
2853
  }));
2834
- }), !t && xo(W, i.dragClass, !0), t ? (ns = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (R(document, "mouseup", n._onDrop), R(document, "touchend", n._onDrop), R(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, W)), L(document, "drop", n), z(W, "transform", "translateZ(0)")), ts = !0, n._dragStartId = Hs(n._dragStarted.bind(n, t, e)), L(document, "selectstart", n), us = !0, po && z(document.body, "user-select", "none"));
2854
+ }), !t && B(G, i.dragClass, !0), t ? (hs = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (z(document, "mouseup", n._onDrop), z(document, "touchend", n._onDrop), z(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, G)), R(document, "drop", n), V(G, "transform", "translateZ(0)")), ms = !0, n._dragStartId = tc(n._dragStarted.bind(n, t, e)), R(document, "selectstart", n), Cs = !0, To && V(document.body, "user-select", "none"));
2835
2855
  },
2836
2856
  _onDragOver: function(e) {
2837
- var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = es === s, u = o.sort, d = X || c, f, p = this, m = !1;
2838
- if (_s) return;
2857
+ 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;
2858
+ if (As) return;
2839
2859
  function h(o, s) {
2840
- H(o, p, to({
2860
+ U(o, p, mo({
2841
2861
  evt: e,
2842
2862
  isOwner: l,
2843
2863
  axis: f ? "vertical" : "horizontal",
@@ -2849,7 +2869,7 @@ Q.prototype = {
2849
2869
  target: n,
2850
2870
  completed: _,
2851
2871
  onMove: function(n, i) {
2852
- return Ns(q, t, W, r, n, B(n), e, i);
2872
+ return Ks(J, t, G, r, n, H(n), e, i);
2853
2873
  },
2854
2874
  changed: v
2855
2875
  }, s));
@@ -2858,115 +2878,115 @@ Q.prototype = {
2858
2878
  h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
2859
2879
  }
2860
2880
  function _(r) {
2861
- return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (xo(W, X ? X.options.ghostClass : c.options.ghostClass, !1), xo(W, o.ghostClass, !0)), X !== p && p !== Q.active ? X = p : p === Q.active && X && (X = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
2881
+ return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (B(G, X ? X.options.ghostClass : c.options.ghostClass, !1), B(G, o.ghostClass, !0)), X !== p && p !== Q.active ? X = p : p === Q.active && X && (X = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
2862
2882
  h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
2863
- }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === W && !W.animated || n === t && !n.animated) && (ds = null), !o.dragoverBubble && !e.rootEl && n !== document && (W.parentNode[V]._isOutsideThisEl(e.target), !r && As(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
2883
+ }), 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;
2864
2884
  }
2865
2885
  function v() {
2866
- Y = Oo(W), $o = Oo(W, o.draggable), U({
2886
+ us = zo(G), fs = zo(G, o.draggable), W({
2867
2887
  sortable: p,
2868
2888
  name: "change",
2869
2889
  toEl: t,
2870
- newIndex: Y,
2871
- newDraggableIndex: $o,
2890
+ newIndex: us,
2891
+ newDraggableIndex: fs,
2872
2892
  originalEvent: e
2873
2893
  });
2874
2894
  }
2875
- if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = yo(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
2876
- if (W.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
2877
- if (ns = !1, c && !o.disabled && (l ? u || (a = G !== q) : X === this || (this.lastPutMode = es.checkPull(this, c, W, e)) && s.checkPut(this, c, W, e))) {
2878
- if (f = this._getDirection(e, n) === "vertical", r = B(W), h("dragOverValid"), Q.eventCanceled) return m;
2879
- if (a) return G = q, g(), this._hideClone(), h("revert"), Q.eventCanceled || (Jo ? q.insertBefore(W, Jo) : q.appendChild(W)), _(!0);
2880
- var y = Do(t, o.draggable);
2881
- if (!y || Ls(e, f, this) && !y.animated) {
2882
- if (y === W) return _(!1);
2883
- if (y && t === e.target && (n = y), n && (i = B(n)), Ns(q, t, W, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(W, y.nextSibling) : t.appendChild(W), G = t, v(), _(!0);
2884
- } else if (y && Is(e, f, this)) {
2885
- var b = Eo(t, 0, o, !0);
2886
- if (b === W) return _(!1);
2887
- if (n = b, i = B(n), Ns(q, t, W, r, n, i, e, !1) !== !1) return g(), t.insertBefore(W, b), G = t, v(), _(!0);
2895
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = jo(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
2896
+ if (G.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
2897
+ 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))) {
2898
+ if (f = this._getDirection(e, n) === "vertical", r = H(G), h("dragOverValid"), Q.eventCanceled) return m;
2899
+ if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (os ? J.insertBefore(G, os) : J.appendChild(G)), _(!0);
2900
+ var y = Ro(t, o.draggable);
2901
+ if (!y || Xs(e, f, this) && !y.animated) {
2902
+ if (y === G) return _(!1);
2903
+ 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);
2904
+ } else if (y && Ys(e, f, this)) {
2905
+ var b = Lo(t, 0, o, !0);
2906
+ if (b === G) return _(!1);
2907
+ 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);
2888
2908
  } else if (n.parentNode === t) {
2889
- i = B(n);
2890
- var x = 0, S, C = W.parentNode !== t, w = !Ts(W.animated && W.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = To(n, "top", "top") || To(W, "top", "top"), D = E ? E.scrollTop : void 0;
2891
- ds !== n && (S = i[T], ps = !1, ms = !w && o.invertSwap || C), x = Rs(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, ms, ds === n);
2909
+ i = H(n);
2910
+ 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;
2911
+ 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);
2892
2912
  var O;
2893
2913
  if (x !== 0) {
2894
- var k = Oo(W);
2914
+ var k = zo(G);
2895
2915
  do
2896
- k -= x, O = G.children[k];
2897
- while (O && (z(O, "display") === "none" || O === K));
2916
+ k -= x, O = K.children[k];
2917
+ while (O && (V(O, "display") === "none" || O === q));
2898
2918
  }
2899
2919
  if (x === 0 || O === n) return _(!1);
2900
- ds = n, fs = x;
2920
+ ws = n, Ts = x;
2901
2921
  var A = n.nextElementSibling, j = !1;
2902
2922
  j = x === 1;
2903
- var M = Ns(q, t, W, r, n, i, e, j);
2904
- if (M !== !1) return (M === 1 || M === -1) && (j = M === 1), _s = !0, setTimeout(Fs, 30), g(), j && !A ? t.appendChild(W) : n.parentNode.insertBefore(W, j ? A : n), E && Lo(E, 0, D - E.scrollTop), G = W.parentNode, S !== void 0 && !ms && (hs = Math.abs(S - B(n)[T])), v(), _(!0);
2923
+ var M = Ks(J, t, G, r, n, i, e, j);
2924
+ 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);
2905
2925
  }
2906
- if (t.contains(W)) return _(!1);
2926
+ if (t.contains(G)) return _(!1);
2907
2927
  }
2908
2928
  return !1;
2909
2929
  },
2910
2930
  _ignoreWhileAnimating: null,
2911
2931
  _offMoveEvents: function() {
2912
- R(document, "mousemove", this._onTouchMove), R(document, "touchmove", this._onTouchMove), R(document, "pointermove", this._onTouchMove), R(document, "dragover", As), R(document, "mousemove", As), R(document, "touchmove", As);
2932
+ z(document, "mousemove", this._onTouchMove), z(document, "touchmove", this._onTouchMove), z(document, "pointermove", this._onTouchMove), z(document, "dragover", Us), z(document, "mousemove", Us), z(document, "touchmove", Us);
2913
2933
  },
2914
2934
  _offUpEvents: function() {
2915
2935
  var e = this.el.ownerDocument;
2916
- R(e, "mouseup", this._onDrop), R(e, "touchend", this._onDrop), R(e, "pointerup", this._onDrop), R(e, "touchcancel", this._onDrop), R(document, "selectstart", this);
2936
+ z(e, "mouseup", this._onDrop), z(e, "touchend", this._onDrop), z(e, "pointerup", this._onDrop), z(e, "touchcancel", this._onDrop), z(document, "selectstart", this);
2917
2937
  },
2918
2938
  _onDrop: function(e) {
2919
2939
  var t = this.el, n = this.options;
2920
- Y = Oo(W), $o = Oo(W, n.draggable), H("drop", this, { evt: e }), G = W && W.parentNode, Y = Oo(W), $o = Oo(W, n.draggable), Q.eventCanceled || (ts = !1, ms = !1, ps = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Us(this.cloneId), Us(this._dragStartId), this.nativeDraggable && (R(document, "drop", this), R(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), po && z(document.body, "user-select", ""), z(W, "transform", ""), e && (us && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), K && K.parentNode && K.parentNode.removeChild(K), (q === G || X && X.lastPutMode !== "clone") && J && J.parentNode && J.parentNode.removeChild(J), W && (this.nativeDraggable && R(W, "dragend", this), Ps(W), W.style["will-change"] = "", us && !ts && xo(W, X ? X.options.ghostClass : this.options.ghostClass, !1), xo(W, this.options.chosenClass, !1), U({
2940
+ 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 && (z(document, "drop", this), z(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), To && 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 && z(G, "dragend", this), qs(G), G.style["will-change"] = "", Cs && !ms && B(G, X ? X.options.ghostClass : this.options.ghostClass, !1), B(G, this.options.chosenClass, !1), W({
2921
2941
  sortable: this,
2922
2942
  name: "unchoose",
2923
- toEl: G,
2943
+ toEl: K,
2924
2944
  newIndex: null,
2925
2945
  newDraggableIndex: null,
2926
2946
  originalEvent: e
2927
- }), q === G ? Y !== Zo && Y >= 0 && (U({
2947
+ }), J === K ? us !== ls && us >= 0 && (W({
2928
2948
  sortable: this,
2929
2949
  name: "update",
2930
- toEl: G,
2950
+ toEl: K,
2931
2951
  originalEvent: e
2932
- }), U({
2952
+ }), W({
2933
2953
  sortable: this,
2934
2954
  name: "sort",
2935
- toEl: G,
2955
+ toEl: K,
2936
2956
  originalEvent: e
2937
- })) : (Y >= 0 && (U({
2938
- rootEl: G,
2957
+ })) : (us >= 0 && (W({
2958
+ rootEl: K,
2939
2959
  name: "add",
2940
- toEl: G,
2941
- fromEl: q,
2960
+ toEl: K,
2961
+ fromEl: J,
2942
2962
  originalEvent: e
2943
- }), U({
2963
+ }), W({
2944
2964
  sortable: this,
2945
2965
  name: "remove",
2946
- toEl: G,
2966
+ toEl: K,
2947
2967
  originalEvent: e
2948
- }), U({
2949
- rootEl: G,
2968
+ }), W({
2969
+ rootEl: K,
2950
2970
  name: "sort",
2951
- toEl: G,
2952
- fromEl: q,
2971
+ toEl: K,
2972
+ fromEl: J,
2953
2973
  originalEvent: e
2954
- }), U({
2974
+ }), W({
2955
2975
  sortable: this,
2956
2976
  name: "sort",
2957
- toEl: G,
2977
+ toEl: K,
2958
2978
  originalEvent: e
2959
- })), X && X.save()), Q.active && ((Y == null || Y === -1) && (Y = Zo, $o = Qo), U({
2979
+ })), X && X.save()), Q.active && ((us == null || us === -1) && (us = ls, fs = ds), W({
2960
2980
  sortable: this,
2961
2981
  name: "end",
2962
- toEl: G,
2982
+ toEl: K,
2963
2983
  originalEvent: e
2964
2984
  }), this.save())))), this._nulling();
2965
2985
  },
2966
2986
  _nulling: function() {
2967
- H("nulling", this), q = W = G = K = Jo = J = Yo = Xo = is = as = us = Y = $o = Zo = Qo = ds = fs = X = es = Q.dragged = Q.ghost = Q.clone = Q.active = null, vs.forEach(function(e) {
2987
+ 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) {
2968
2988
  e.checked = !0;
2969
- }), vs.length = os = ss = 0;
2989
+ }), js.length = ys = bs = 0;
2970
2990
  },
2971
2991
  handleEvent: function(e) {
2972
2992
  switch (e.type) {
@@ -2976,20 +2996,20 @@ Q.prototype = {
2976
2996
  break;
2977
2997
  case "dragenter":
2978
2998
  case "dragover":
2979
- W && (this._onDragOver(e), Ms(e));
2999
+ G && (this._onDragOver(e), Gs(e));
2980
3000
  break;
2981
3001
  case "selectstart": e.preventDefault();
2982
3002
  }
2983
3003
  },
2984
3004
  toArray: function() {
2985
- for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], yo(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || Bs(t));
3005
+ for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], jo(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || $s(t));
2986
3006
  return e;
2987
3007
  },
2988
3008
  sort: function(e, t) {
2989
3009
  var n = {}, r = this.el;
2990
3010
  this.toArray().forEach(function(e, t) {
2991
3011
  var i = r.children[t];
2992
- yo(i, this.options.draggable, r, !1) && (n[e] = i);
3012
+ jo(i, this.options.draggable, r, !1) && (n[e] = i);
2993
3013
  }, this), t && this.captureAnimationState(), e.forEach(function(e) {
2994
3014
  n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
2995
3015
  }), t && this.animateAll();
@@ -2999,122 +3019,122 @@ Q.prototype = {
2999
3019
  e && e.set && e.set(this);
3000
3020
  },
3001
3021
  closest: function(e, t) {
3002
- return yo(e, t || this.options.draggable, this.el, !1);
3022
+ return jo(e, t || this.options.draggable, this.el, !1);
3003
3023
  },
3004
3024
  option: function(e, t) {
3005
3025
  var n = this.options;
3006
3026
  if (t === void 0) return n[e];
3007
- var r = Go.modifyOption(this, e, t);
3008
- n[e] = r === void 0 ? t : r, e === "group" && Ds(n);
3027
+ var r = rs.modifyOption(this, e, t);
3028
+ n[e] = r === void 0 ? t : r, e === "group" && Bs(n);
3009
3029
  },
3010
3030
  destroy: function() {
3011
- H("destroy", this);
3031
+ U("destroy", this);
3012
3032
  var e = this.el;
3013
- e[V] = null, R(e, "mousedown", this._onTapStart), R(e, "touchstart", this._onTapStart), R(e, "pointerdown", this._onTapStart), this.nativeDraggable && (R(e, "dragover", this), R(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
3033
+ e[Zo] = null, z(e, "mousedown", this._onTapStart), z(e, "touchstart", this._onTapStart), z(e, "pointerdown", this._onTapStart), this.nativeDraggable && (z(e, "dragover", this), z(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
3014
3034
  e.removeAttribute("draggable");
3015
- }), this._onDrop(), this._disableDelayedDragEvents(), rs.splice(rs.indexOf(this.el), 1), this.el = e = null;
3035
+ }), this._onDrop(), this._disableDelayedDragEvents(), gs.splice(gs.indexOf(this.el), 1), this.el = e = null;
3016
3036
  },
3017
3037
  _hideClone: function() {
3018
- if (!Xo) {
3019
- if (H("hideClone", this), Q.eventCanceled) return;
3020
- z(J, "display", "none"), this.options.removeCloneOnHide && J.parentNode && J.parentNode.removeChild(J), Xo = !0;
3038
+ if (!cs) {
3039
+ if (U("hideClone", this), Q.eventCanceled) return;
3040
+ V(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), cs = !0;
3021
3041
  }
3022
3042
  },
3023
3043
  _showClone: function(e) {
3024
3044
  if (e.lastPutMode !== "clone") this._hideClone();
3025
- else if (Xo) {
3026
- if (H("showClone", this), Q.eventCanceled) return;
3027
- W.parentNode == q && !this.options.group.revertClone ? q.insertBefore(J, W) : Jo ? q.insertBefore(J, Jo) : q.appendChild(J), this.options.group.revertClone && this.animate(W, J), z(J, "display", ""), Xo = !1;
3045
+ else if (cs) {
3046
+ if (U("showClone", this), Q.eventCanceled) return;
3047
+ 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;
3028
3048
  }
3029
3049
  }
3030
3050
  };
3031
- function Ms(e) {
3051
+ function Gs(e) {
3032
3052
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
3033
3053
  }
3034
- function Ns(e, t, n, r, i, a, o, s) {
3035
- var c, l = e[V], u = l.options.onMove, d;
3036
- return window.CustomEvent && !lo && !uo ? c = new CustomEvent("move", {
3054
+ function Ks(e, t, n, r, i, a, o, s) {
3055
+ var c, l = e[Zo], u = l.options.onMove, d;
3056
+ return window.CustomEvent && !So && !Co ? c = new CustomEvent("move", {
3037
3057
  bubbles: !0,
3038
3058
  cancelable: !0
3039
- }) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || B(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
3059
+ }) : (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;
3040
3060
  }
3041
- function Ps(e) {
3061
+ function qs(e) {
3042
3062
  e.draggable = !1;
3043
3063
  }
3044
- function Fs() {
3045
- _s = !1;
3064
+ function Js() {
3065
+ As = !1;
3046
3066
  }
3047
- function Is(e, t, n) {
3048
- var r = B(Eo(n.el, 0, n.options, !0)), i = zo(n.el, n.options, K), a = 10;
3067
+ function Ys(e, t, n) {
3068
+ var r = H(Lo(n.el, 0, n.options, !0)), i = Xo(n.el, n.options, q), a = 10;
3049
3069
  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;
3050
3070
  }
3051
- function Ls(e, t, n) {
3052
- var r = B(Do(n.el, n.options.draggable)), i = zo(n.el, n.options, K), a = 10;
3071
+ function Xs(e, t, n) {
3072
+ var r = H(Ro(n.el, n.options.draggable)), i = Xo(n.el, n.options, q), a = 10;
3053
3073
  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;
3054
3074
  }
3055
- function Rs(e, t, n, r, i, a, o, s) {
3075
+ function Zs(e, t, n, r, i, a, o, s) {
3056
3076
  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;
3057
3077
  if (!o) {
3058
- if (s && hs < l * i) {
3059
- if (!ps && (fs === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (ps = !0), ps) f = !0;
3060
- else if (fs === 1 ? c < u + hs : c > d - hs) return -fs;
3061
- } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return zs(t);
3078
+ if (s && Os < l * i) {
3079
+ if (!Es && (Ts === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Es = !0), Es) f = !0;
3080
+ else if (Ts === 1 ? c < u + Os : c > d - Os) return -Ts;
3081
+ } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return Qs(t);
3062
3082
  }
3063
3083
  return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
3064
3084
  }
3065
- function zs(e) {
3066
- return Oo(W) < Oo(e) ? 1 : -1;
3085
+ function Qs(e) {
3086
+ return zo(G) < zo(e) ? 1 : -1;
3067
3087
  }
3068
- function Bs(e) {
3088
+ function $s(e) {
3069
3089
  for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
3070
3090
  return r.toString(36);
3071
3091
  }
3072
- function Vs(e) {
3073
- vs.length = 0;
3092
+ function ec(e) {
3093
+ js.length = 0;
3074
3094
  for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
3075
3095
  var r = t[n];
3076
- r.checked && vs.push(r);
3096
+ r.checked && js.push(r);
3077
3097
  }
3078
3098
  }
3079
- function Hs(e) {
3099
+ function tc(e) {
3080
3100
  return setTimeout(e, 0);
3081
3101
  }
3082
- function Us(e) {
3102
+ function nc(e) {
3083
3103
  return clearTimeout(e);
3084
3104
  }
3085
- ys && L(document, "touchmove", function(e) {
3086
- (Q.active || ts) && e.cancelable && e.preventDefault();
3105
+ Ms && R(document, "touchmove", function(e) {
3106
+ (Q.active || ms) && e.cancelable && e.preventDefault();
3087
3107
  }), Q.utils = {
3088
- on: L,
3089
- off: R,
3090
- css: z,
3091
- find: Co,
3108
+ on: R,
3109
+ off: z,
3110
+ css: V,
3111
+ find: Po,
3092
3112
  is: function(e, t) {
3093
- return !!yo(e, t, e, !1);
3094
- },
3095
- extend: Mo,
3096
- throttle: Fo,
3097
- closest: yo,
3098
- toggleClass: xo,
3099
- clone: Ro,
3100
- index: Oo,
3101
- nextTick: Hs,
3102
- cancelNextTick: Us,
3103
- detectDirection: ws,
3104
- getChild: Eo
3113
+ return !!jo(e, t, e, !1);
3114
+ },
3115
+ extend: Uo,
3116
+ throttle: Ko,
3117
+ closest: jo,
3118
+ toggleClass: B,
3119
+ clone: Yo,
3120
+ index: zo,
3121
+ nextTick: tc,
3122
+ cancelNextTick: nc,
3123
+ detectDirection: Ls,
3124
+ getChild: Lo
3105
3125
  }, Q.get = function(e) {
3106
- return e[V];
3126
+ return e[Zo];
3107
3127
  }, Q.mount = function() {
3108
3128
  var e = [...arguments];
3109
3129
  e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
3110
3130
  if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
3111
- e.utils && (Q.utils = to(to({}, Q.utils), e.utils)), Go.mount(e);
3131
+ e.utils && (Q.utils = mo(mo({}, Q.utils), e.utils)), rs.mount(e);
3112
3132
  });
3113
3133
  }, Q.create = function(e, t) {
3114
3134
  return new Q(e, t);
3115
- }, Q.version = so;
3116
- var $ = [], Ws, Gs, Ks = !1, qs, Js, Ys, Xs;
3117
- function Zs() {
3135
+ }, Q.version = bo;
3136
+ var $ = [], rc, ic, ac = !1, oc, sc, cc, lc;
3137
+ function uc() {
3118
3138
  function e() {
3119
3139
  for (var e in this.defaults = {
3120
3140
  scroll: !0,
@@ -3127,70 +3147,70 @@ function Zs() {
3127
3147
  return e.prototype = {
3128
3148
  dragStarted: function(e) {
3129
3149
  var t = e.originalEvent;
3130
- this.sortable.nativeDraggable ? L(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? L(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? L(document, "touchmove", this._handleFallbackAutoScroll) : L(document, "mousemove", this._handleFallbackAutoScroll);
3150
+ this.sortable.nativeDraggable ? R(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? R(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? R(document, "touchmove", this._handleFallbackAutoScroll) : R(document, "mousemove", this._handleFallbackAutoScroll);
3131
3151
  },
3132
3152
  dragOverCompleted: function(e) {
3133
3153
  var t = e.originalEvent;
3134
3154
  !this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
3135
3155
  },
3136
3156
  drop: function() {
3137
- this.sortable.nativeDraggable ? R(document, "dragover", this._handleAutoScroll) : (R(document, "pointermove", this._handleFallbackAutoScroll), R(document, "touchmove", this._handleFallbackAutoScroll), R(document, "mousemove", this._handleFallbackAutoScroll)), $s(), Qs(), Io();
3157
+ this.sortable.nativeDraggable ? z(document, "dragover", this._handleAutoScroll) : (z(document, "pointermove", this._handleFallbackAutoScroll), z(document, "touchmove", this._handleFallbackAutoScroll), z(document, "mousemove", this._handleFallbackAutoScroll)), fc(), dc(), qo();
3138
3158
  },
3139
3159
  nulling: function() {
3140
- Ys = Gs = Ws = Ks = Xs = qs = Js = null, $.length = 0;
3160
+ cc = ic = rc = ac = lc = oc = sc = null, $.length = 0;
3141
3161
  },
3142
3162
  _handleFallbackAutoScroll: function(e) {
3143
3163
  this._handleAutoScroll(e, !0);
3144
3164
  },
3145
3165
  _handleAutoScroll: function(e, t) {
3146
3166
  var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
3147
- if (Ys = e, t || this.options.forceAutoScrollFallback || uo || lo || po) {
3148
- ec(e, this.options, a, t);
3149
- var o = jo(a, !0);
3150
- Ks && (!Xs || r !== qs || i !== Js) && (Xs && $s(), Xs = setInterval(function() {
3151
- var a = jo(document.elementFromPoint(r, i), !0);
3152
- a !== o && (o = a, Qs()), ec(e, n.options, a, t);
3153
- }, 10), qs = r, Js = i);
3167
+ if (cc = e, t || this.options.forceAutoScrollFallback || Co || So || To) {
3168
+ pc(e, this.options, a, t);
3169
+ var o = Ho(a, !0);
3170
+ ac && (!lc || r !== oc || i !== sc) && (lc && fc(), lc = setInterval(function() {
3171
+ var a = Ho(document.elementFromPoint(r, i), !0);
3172
+ a !== o && (o = a, dc()), pc(e, n.options, a, t);
3173
+ }, 10), oc = r, sc = i);
3154
3174
  } else {
3155
- if (!this.options.bubbleScroll || jo(a, !0) === wo()) {
3156
- Qs();
3175
+ if (!this.options.bubbleScroll || Ho(a, !0) === Fo()) {
3176
+ dc();
3157
3177
  return;
3158
3178
  }
3159
- ec(e, this.options, jo(a, !1), !1);
3179
+ pc(e, this.options, Ho(a, !1), !1);
3160
3180
  }
3161
3181
  }
3162
- }, io(e, {
3182
+ }, _o(e, {
3163
3183
  pluginName: "scroll",
3164
3184
  initializeByDefault: !0
3165
3185
  });
3166
3186
  }
3167
- function Qs() {
3187
+ function dc() {
3168
3188
  $.forEach(function(e) {
3169
3189
  clearInterval(e.pid);
3170
3190
  }), $ = [];
3171
3191
  }
3172
- function $s() {
3173
- clearInterval(Xs);
3192
+ function fc() {
3193
+ clearInterval(lc);
3174
3194
  }
3175
- var ec = Fo(function(e, t, n, r) {
3195
+ var pc = Ko(function(e, t, n, r) {
3176
3196
  if (t.scroll) {
3177
- var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = wo(), l = !1, u;
3178
- Gs !== n && (Gs = n, Qs(), Ws = t.scroll, u = t.scrollFn, Ws === !0 && (Ws = jo(n, !0)));
3179
- var d = 0, f = Ws;
3197
+ 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;
3198
+ ic !== n && (ic = n, dc(), rc = t.scroll, u = t.scrollFn, rc === !0 && (rc = Ho(n, !0)));
3199
+ var d = 0, f = rc;
3180
3200
  do {
3181
- var p = f, m = B(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, w = p.scrollHeight, T = z(p), E = p.scrollLeft, D = p.scrollTop;
3201
+ 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;
3182
3202
  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"));
3183
3203
  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);
3184
3204
  if (!$[d]) for (var A = 0; A <= d; A++) $[A] || ($[A] = {});
3185
3205
  ($[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() {
3186
- r && this.layer === 0 && Q.active._onTouchMove(Ys);
3206
+ r && this.layer === 0 && Q.active._onTouchMove(cc);
3187
3207
  var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
3188
- typeof u == "function" && u.call(Q.dragged.parentNode[V], n, t, e, Ys, $[this.layer].el) !== "continue" || Lo($[this.layer].el, n, t);
3208
+ typeof u == "function" && u.call(Q.dragged.parentNode[Zo], n, t, e, cc, $[this.layer].el) !== "continue" || Jo($[this.layer].el, n, t);
3189
3209
  }.bind({ layer: d }), 24))), d++;
3190
- } while (t.bubbleScroll && f !== c && (f = jo(f, !1)));
3191
- Ks = l;
3210
+ } while (t.bubbleScroll && f !== c && (f = Ho(f, !1)));
3211
+ ac = l;
3192
3212
  }
3193
- }, 30), tc = function(e) {
3213
+ }, 30), mc = function(e) {
3194
3214
  var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
3195
3215
  if (t) {
3196
3216
  var c = n || i;
@@ -3202,8 +3222,8 @@ var ec = Fo(function(e, t, n, r) {
3202
3222
  }));
3203
3223
  }
3204
3224
  };
3205
- function nc() {}
3206
- nc.prototype = {
3225
+ function hc() {}
3226
+ hc.prototype = {
3207
3227
  startIndex: null,
3208
3228
  dragStart: function(e) {
3209
3229
  var t = e.oldDraggableIndex;
@@ -3212,67 +3232,67 @@ nc.prototype = {
3212
3232
  onSpill: function(e) {
3213
3233
  var t = e.dragEl, n = e.putSortable;
3214
3234
  this.sortable.captureAnimationState(), n && n.captureAnimationState();
3215
- var r = Eo(this.sortable.el, this.startIndex, this.options);
3235
+ var r = Lo(this.sortable.el, this.startIndex, this.options);
3216
3236
  r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
3217
3237
  },
3218
- drop: tc
3219
- }, io(nc, { pluginName: "revertOnSpill" });
3220
- function rc() {}
3221
- rc.prototype = {
3238
+ drop: mc
3239
+ }, _o(hc, { pluginName: "revertOnSpill" });
3240
+ function gc() {}
3241
+ gc.prototype = {
3222
3242
  onSpill: function(e) {
3223
3243
  var t = e.dragEl, n = e.putSortable || this.sortable;
3224
3244
  n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
3225
3245
  },
3226
- drop: tc
3227
- }, io(rc, { pluginName: "removeOnSpill" }), Q.mount(new Zs()), Q.mount(rc, nc);
3228
- function ic(e) {
3246
+ drop: mc
3247
+ }, _o(gc, { pluginName: "removeOnSpill" }), Q.mount(new uc()), Q.mount(gc, hc);
3248
+ function _c(e) {
3229
3249
  return e == null ? e : JSON.parse(JSON.stringify(e));
3230
3250
  }
3231
- function ac(e) {
3232
- te() && O(e);
3251
+ function vc(e) {
3252
+ ee() && O(e);
3233
3253
  }
3234
- function oc(e) {
3235
- te() ? d(e) : a(e);
3254
+ function yc(e) {
3255
+ ee() ? d(e) : a(e);
3236
3256
  }
3237
- var sc = null, cc = null;
3238
- function lc(e = null, t = null) {
3239
- sc = e, cc = t;
3257
+ var bc = null, xc = null;
3258
+ function Sc(e = null, t = null) {
3259
+ bc = e, xc = t;
3240
3260
  }
3241
- function uc() {
3261
+ function Cc() {
3242
3262
  return {
3243
- data: sc,
3244
- clonedData: cc
3263
+ data: bc,
3264
+ clonedData: xc
3245
3265
  };
3246
3266
  }
3247
- var dc = Symbol("cloneElement");
3248
- function fc(...e) {
3249
- let t = te()?.proxy, n = null, r = e[0], [, i, o] = e;
3267
+ var wc = Symbol("cloneElement");
3268
+ function Tc(...e) {
3269
+ let t = ee()?.proxy, n = null, r = e[0], [, i, o] = e;
3250
3270
  Array.isArray(y(i)) || (o = i, i = null);
3251
- let s = null, { immediate: l = !0, clone: u = ic, forceFallback: d, fallbackOnBody: p, customUpdate: m } = y(o) ?? {};
3271
+ let s = null, { immediate: l = !0, clone: u = _c, forceFallback: d, fallbackOnBody: p, customUpdate: m } = y(o) ?? {};
3252
3272
  function h(e) {
3253
3273
  let { from: t, oldIndex: r, item: a } = e, o = Array.from(t.childNodes);
3254
3274
  n = d && !p ? o.slice(0, -1) : o;
3255
3275
  let s = y(y(i)?.[r]), c = u(s);
3256
- lc(s, c), a[dc] = c;
3276
+ Sc(s, c), a[wc] = c;
3257
3277
  }
3258
3278
  function g(e) {
3259
- let t = e.item[dc];
3260
- if (!Ua(t)) {
3261
- if (Ka(e.item), c(i)) {
3279
+ let t = e.item[wc];
3280
+ if (!to(t)) {
3281
+ if (io(e.item), c(i)) {
3262
3282
  let n = [...y(i)];
3263
- i.value = Ha(n, e.newDraggableIndex, t);
3283
+ i.value = eo(n, e.newDraggableIndex, t);
3264
3284
  return;
3265
3285
  }
3266
- Ha(y(i), e.newDraggableIndex, t);
3286
+ eo(y(i), e.newDraggableIndex, t);
3267
3287
  }
3268
3288
  }
3269
3289
  function _(e) {
3270
3290
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, pullMode: o, clone: s } = e;
3271
- if (Ga(t, n, r), o === "clone") Ka(s);
3291
+ if (ro(t, n, r), o === "clone") io(s);
3272
3292
  else if (c(i)) {
3273
3293
  let e = [...y(i)];
3274
- i.value = Va(e, a);
3275
- } else Va(y(i), a);
3294
+ i.value = $a(e, a);
3295
+ } else $a(y(i), a);
3276
3296
  }
3277
3297
  function v(e) {
3278
3298
  if (m) {
@@ -3280,10 +3300,10 @@ function fc(...e) {
3280
3300
  return;
3281
3301
  }
3282
3302
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, newDraggableIndex: o } = e;
3283
- if (Ka(n), Ga(t, n, r), c(i)) {
3303
+ if (io(n), ro(t, n, r), c(i)) {
3284
3304
  let e = [...y(i)];
3285
- i.value = Ra(e, a, o);
3286
- } else Ra(y(i), a, o);
3305
+ i.value = Xa(e, a, o);
3306
+ } else Xa(y(i), a, o);
3287
3307
  }
3288
3308
  function b(e) {
3289
3309
  let { newIndex: t, oldIndex: r, from: i, to: o } = e, s = null, c = t === r && i === o;
@@ -3302,7 +3322,7 @@ function fc(...e) {
3302
3322
  n = null;
3303
3323
  }
3304
3324
  a(() => {
3305
- if (lc(), s) throw s;
3325
+ if (Sc(), s) throw s;
3306
3326
  });
3307
3327
  }
3308
3328
  let x = {
@@ -3314,19 +3334,19 @@ function fc(...e) {
3314
3334
  };
3315
3335
  function S(e) {
3316
3336
  let n = y(r);
3317
- return e ||= Wa(n) ? qa(n, t?.$el) : n, e && !Xa(e) && (e = e.$el), e || La("Root element not found"), e;
3337
+ return e ||= no(n) ? ao(n, t?.$el) : n, e && !co(e) && (e = e.$el), e || Ya("Root element not found"), e;
3318
3338
  }
3319
3339
  function C() {
3320
- let e = y(o) ?? {}, { immediate: t, clone: n } = e, r = Pa(e, ["immediate", "clone"]);
3321
- return Za(r, (e, t) => {
3322
- Qa(e) && (r[e] = (e, ...n) => ($a(e, uc()), t(e, ...n)));
3323
- }), Ya(i === null ? {} : x, r);
3340
+ let e = y(o) ?? {}, { immediate: t, clone: n } = e, r = Ka(e, ["immediate", "clone"]);
3341
+ return lo(r, (e, t) => {
3342
+ uo(e) && (r[e] = (e, ...n) => (fo(e, Cc()), t(e, ...n)));
3343
+ }), so(i === null ? {} : x, r);
3324
3344
  }
3325
3345
  let w = (e) => {
3326
3346
  e = S(e), s && T.destroy(), s = new Q(e, C());
3327
3347
  };
3328
3348
  f(() => o, () => {
3329
- s && Za(C(), (e, t) => {
3349
+ s && lo(C(), (e, t) => {
3330
3350
  s?.option(e, t);
3331
3351
  });
3332
3352
  }, { deep: !0 });
@@ -3339,15 +3359,15 @@ function fc(...e) {
3339
3359
  toArray: () => s?.toArray(),
3340
3360
  closest: (...e) => s?.closest(...e)
3341
3361
  };
3342
- return oc(() => {
3362
+ return yc(() => {
3343
3363
  l && w();
3344
- }), ac(T.destroy), Na({
3364
+ }), vc(T.destroy), Ga({
3345
3365
  start: w,
3346
3366
  pause: () => T?.option("disabled", !0),
3347
3367
  resume: () => T?.option("disabled", !1)
3348
3368
  }, T);
3349
3369
  }
3350
- var pc = [
3370
+ var Ec = [
3351
3371
  "update",
3352
3372
  "start",
3353
3373
  "add",
@@ -3360,7 +3380,7 @@ var pc = [
3360
3380
  "clone",
3361
3381
  "move",
3362
3382
  "change"
3363
- ], mc = [
3383
+ ], Dc = [
3364
3384
  "clone",
3365
3385
  "animation",
3366
3386
  "ghostClass",
@@ -3404,43 +3424,47 @@ var pc = [
3404
3424
  "tag",
3405
3425
  "target",
3406
3426
  "customUpdate",
3407
- ...pc.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
3408
- ], hc = F({
3427
+ ...Ec.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
3428
+ ], Oc = I({
3409
3429
  name: "VueDraggable",
3410
3430
  model: {
3411
3431
  prop: "modelValue",
3412
3432
  event: "update:modelValue"
3413
3433
  },
3414
- props: mc,
3415
- emits: ["update:modelValue", ...pc],
3434
+ props: Dc,
3435
+ emits: ["update:modelValue", ...Ec],
3416
3436
  setup(e, { slots: t, emit: n, expose: r, attrs: i }) {
3417
- let a = pc.reduce((e, t) => {
3437
+ let a = Ec.reduce((e, t) => {
3418
3438
  let r = `on${t.replace(/^\S/, (e) => e.toUpperCase())}`;
3419
3439
  return e[r] = (...e) => n(t, ...e), e;
3420
- }, {}), o = N(() => {
3421
- let t = j(e), { modelValue: n } = t, r = Pa(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
3440
+ }, {}), o = P(() => {
3441
+ let t = j(e), { modelValue: n } = t, r = Ka(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
3422
3442
  let r = y(n);
3423
3443
  return r !== void 0 && (e[t] = r), e;
3424
3444
  }, {});
3425
- return Na(Na({}, a), Ba(Na(Na({}, i), o)));
3426
- }), s = N({
3445
+ return Ga(Ga({}, a), Qa(Ga(Ga({}, i), o)));
3446
+ }), s = P({
3427
3447
  get: () => e.modelValue,
3428
3448
  set: (e) => n("update:modelValue", e)
3429
- }), c = _(), l = g(fc(e.target || c, s, o));
3449
+ }), c = _(), l = g(Tc(e.target || c, s, o));
3430
3450
  return r(l), () => b(e.tag || "div", { ref: c }, (t?.default)?.call(t, l));
3431
3451
  }
3432
- }), gc = {
3452
+ }), kc = {
3433
3453
  mounted: "mounted",
3434
3454
  unmounted: "unmounted"
3435
3455
  };
3436
- gc.mounted, gc.unmounted;
3456
+ kc.mounted, kc.unmounted;
3437
3457
  //#endregion
3438
3458
  //#region src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
3439
- var _c = { class: "tpl:w-full" }, vc = {
3459
+ var Ac = { class: "tpl:relative tpl:w-full" }, jc = {
3460
+ key: 0,
3461
+ "data-testid": "hero-image-hint",
3462
+ 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)]"
3463
+ }, Mc = {
3440
3464
  key: 0,
3441
3465
  "data-testid": "section-drop-hint",
3442
3466
  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)]"
3443
- }, yc = /* @__PURE__ */ F({
3467
+ }, Nc = /* @__PURE__ */ I({
3444
3468
  __name: "SectionBlock",
3445
3469
  props: {
3446
3470
  block: {},
@@ -3448,18 +3472,18 @@ var _c = { class: "tpl:w-full" }, vc = {
3448
3472
  },
3449
3473
  setup(e) {
3450
3474
  let i = {
3451
- title: Ea,
3452
- paragraph: da,
3453
- image: Qi,
3454
- button: Zr,
3455
- divider: Pi,
3456
- custom: Mi
3457
- }, a = e, { t: s } = yn(), c = wt(tn, "SectionBlock"), u = p(en, null), d = p(pn, null), f = p(on, {}), h = p(fn, null);
3475
+ title: Ma,
3476
+ paragraph: ga,
3477
+ image: ra,
3478
+ button: ni,
3479
+ divider: zi,
3480
+ custom: Li
3481
+ }, a = e, { t: s } = Dn(), c = Mt(un, "SectionBlock"), u = p(ln, null), d = p(xn, null), f = p(mn, {}), h = p(bn, null);
3458
3482
  function g(e) {
3459
3483
  let t = f.savedBlocks;
3460
3484
  t?.isPicking.value ? t.togglePick(a.block.id) : c.selectBlock(e);
3461
3485
  }
3462
- let v = N(() => {
3486
+ let v = P(() => {
3463
3487
  switch (a.block.columns) {
3464
3488
  case "2": return ["50%", "50%"];
3465
3489
  case "3": return [
@@ -3471,11 +3495,11 @@ var _c = { class: "tpl:w-full" }, vc = {
3471
3495
  case "2-1": return ["66.67%", "33.33%"];
3472
3496
  default: return ["100%"];
3473
3497
  }
3474
- }), b = N(() => {
3498
+ }), b = P(() => {
3475
3499
  let e = v.value.length, t = [...a.block.children];
3476
3500
  for (; t.length < e;) t.push([]);
3477
3501
  return t.slice(0, e);
3478
- }), w = N(() => a.viewport === "mobile" && a.block.stackOnMobile !== !1);
3502
+ }), w = P(() => a.viewport === "mobile" && a.block.stackOnMobile !== !1);
3479
3503
  function T(e) {
3480
3504
  return b.value[e] || [];
3481
3505
  }
@@ -3486,22 +3510,27 @@ var _c = { class: "tpl:w-full" }, vc = {
3486
3510
  return !T(e).some((e) => E(e.id));
3487
3511
  }
3488
3512
  let j = _(null);
3489
- function ee(e) {
3513
+ function N(e) {
3490
3514
  return c.state.previewMode ? !1 : O(e) ? !0 : j.value === e && T(e).filter((e) => E(e.id)).length <= 1;
3491
3515
  }
3492
- function F(e) {
3516
+ let I = P(() => {
3517
+ if (c.state.previewMode) return !1;
3518
+ let e = je(a.block);
3519
+ return e !== null && !e.applied && e.reason === "image";
3520
+ });
3521
+ function ee(e) {
3493
3522
  return T(e).length === 0 && !c.state.previewMode;
3494
3523
  }
3495
- function te(e) {
3524
+ function L(e) {
3496
3525
  return T(e).length === 0 && c.state.previewMode;
3497
3526
  }
3498
- function I(e, t) {
3527
+ function ne(e, t) {
3499
3528
  let n = t.map((e) => JSON.parse(JSON.stringify(e))), r = [...a.block.children];
3500
3529
  for (; r.length <= e;) r.push([]);
3501
3530
  r[e] = n, c.updateBlock(a.block.id, { children: r });
3502
3531
  }
3503
3532
  function re(e) {
3504
- return Rr(e, d, i);
3533
+ return Br(e, d, i);
3505
3534
  }
3506
3535
  function ie(e, t) {
3507
3536
  e.type === "custom" && c.updateBlock(e.id, {
@@ -3509,16 +3538,16 @@ var _c = { class: "tpl:w-full" }, vc = {
3509
3538
  dataSourceFetched: t.dataSourceFetched
3510
3539
  });
3511
3540
  }
3512
- return (i, a) => (t(), S("div", _c, [x("div", { class: k(["tpl:flex tpl:gap-0", { "tpl:flex-col": w.value }]) }, [(t(!0), S(M, null, l(b.value, (i, u) => (t(), S("div", {
3541
+ return (i, a) => (t(), S("div", Ac, [I.value ? (t(), S("div", jc, [x("span", null, D(y(s).section.heroAddImage), 1)])) : F("", !0), x("div", { class: k(["tpl:flex tpl:gap-0", { "tpl:flex-col": w.value }]) }, [(t(!0), S(M, null, l(b.value, (i, u) => (t(), S("div", {
3513
3542
  key: u,
3514
- class: k(["tpl:relative tpl:flex tpl:flex-col tpl:rounded", F(u) ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
3543
+ class: k(["tpl:relative tpl:flex tpl:flex-col tpl:rounded", ee(u) ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
3515
3544
  style: n({ width: w.value ? "100%" : v.value[u] })
3516
- }, [C(y(hc), {
3545
+ }, [C(y(Oc), {
3517
3546
  "model-value": T(u),
3518
3547
  group: {
3519
3548
  name: "blocks",
3520
3549
  pull: !0,
3521
- put: (e, t, n) => y(Da)(n)
3550
+ put: (e, t, n) => y(za)(n)
3522
3551
  },
3523
3552
  animation: 150,
3524
3553
  "ghost-class": "tpl-ghost",
@@ -3529,14 +3558,14 @@ var _c = { class: "tpl:w-full" }, vc = {
3529
3558
  "empty-insert-threshold": 20,
3530
3559
  "force-fallback": !0,
3531
3560
  class: k(["tpl:grow", {
3532
- "tpl:min-h-[60px]": ee(u),
3533
- "tpl:min-h-[34px]": te(u)
3561
+ "tpl:min-h-[60px]": N(u),
3562
+ "tpl:min-h-[34px]": L(u)
3534
3563
  }]),
3535
3564
  onStart: (e) => j.value = u,
3536
3565
  onEnd: a[0] ||= (e) => j.value = null,
3537
- "onUpdate:modelValue": (e) => I(u, e)
3566
+ "onUpdate:modelValue": (e) => ne(u, e)
3538
3567
  }, {
3539
- default: r(() => [(t(!0), S(M, null, l(T(u), (n) => m((t(), S("div", { key: n.id }, [C(wa, {
3568
+ default: r(() => [(t(!0), S(M, null, l(T(u), (n) => m((t(), S("div", { key: n.id }, [C(Aa, {
3540
3569
  block: n,
3541
3570
  "is-selected": y(c).state.selectedBlockId === n.id,
3542
3571
  viewport: e.viewport,
@@ -3562,7 +3591,7 @@ var _c = { class: "tpl:w-full" }, vc = {
3562
3591
  "viewport",
3563
3592
  "preview-mode",
3564
3593
  "onSelect"
3565
- ])])), [[ne, E(n.id)]])), 128))]),
3594
+ ])])), [[te, E(n.id)]])), 128))]),
3566
3595
  _: 2
3567
3596
  }, 1032, [
3568
3597
  "model-value",
@@ -3570,14 +3599,14 @@ var _c = { class: "tpl:w-full" }, vc = {
3570
3599
  "class",
3571
3600
  "onStart",
3572
3601
  "onUpdate:modelValue"
3573
- ]), F(u) ? (t(), S("div", vc, [x("span", null, D(y(s).section.dropHere), 1)])) : P("", !0)], 6))), 128))], 2)]));
3602
+ ]), ee(u) ? (t(), S("div", Mc, [x("span", null, D(y(s).section.dropHere), 1)])) : F("", !0)], 6))), 128))], 2)]));
3574
3603
  }
3575
- }), bc = ["width", "height"], xc = [
3604
+ }), Pc = ["width", "height"], Fc = [
3576
3605
  "d",
3577
3606
  "stroke",
3578
3607
  "stroke-opacity",
3579
3608
  "stroke-width"
3580
- ], Sc = ["d", "fill"], Cc = /* @__PURE__ */ F({
3609
+ ], Ic = ["d", "fill"], Lc = /* @__PURE__ */ I({
3581
3610
  __name: "SocialIconSvg",
3582
3611
  props: {
3583
3612
  platform: {},
@@ -3586,7 +3615,7 @@ var _c = { class: "tpl:w-full" }, vc = {
3586
3615
  iconSize: {}
3587
3616
  },
3588
3617
  setup(e) {
3589
- let r = e, i = N(() => lt[r.platform]), a = N(() => ft[r.iconSize]), o = N(() => Xe(r.platform, r.iconTone)), s = N(() => Ne(r.iconStyle, r.iconTone)), c = N(() => {
3618
+ let r = e, i = P(() => _t[r.platform]), a = P(() => yt[r.iconSize]), o = P(() => we(r.platform, r.iconTone)), s = P(() => et(r.iconStyle, r.iconTone)), c = P(() => {
3590
3619
  let e = {
3591
3620
  display: "inline-flex",
3592
3621
  alignItems: "center",
@@ -3624,12 +3653,12 @@ var _c = { class: "tpl:w-full" }, vc = {
3624
3653
  };
3625
3654
  default: return e;
3626
3655
  }
3627
- }), l = N(() => Ae(r.iconStyle)), u = N(() => Math.floor(a.value * l.value));
3656
+ }), l = P(() => Xe(r.iconStyle)), u = P(() => Math.floor(a.value * l.value));
3628
3657
  function d(e) {
3629
3658
  let t = `${e.width / 2 * a.value / 24}px`, n = Math.round(e.opacity * 255).toString(16).padStart(2, "0"), r = `${e.color}${n}`;
3630
3659
  return `0 0 0 ${t} ${r}, inset 0 0 0 ${t} ${r}`;
3631
3660
  }
3632
- let f = N(() => r.iconStyle === "outlined" || r.iconStyle === "plain" ? o.value.fill : o.value.onFill);
3661
+ let f = P(() => r.iconStyle === "outlined" || r.iconStyle === "plain" ? o.value.fill : o.value.onFill);
3633
3662
  return (e, r) => (t(), S("span", { style: n(c.value) }, [(t(), S("svg", {
3634
3663
  width: u.value,
3635
3664
  height: u.value,
@@ -3645,36 +3674,36 @@ var _c = { class: "tpl:w-full" }, vc = {
3645
3674
  "stroke-opacity": s.value.opacity,
3646
3675
  "stroke-width": s.value.width / l.value,
3647
3676
  "stroke-linejoin": "round"
3648
- }, null, 8, xc)) : P("", !0), x("path", {
3677
+ }, null, 8, Fc)) : F("", !0), x("path", {
3649
3678
  d: i.value.path,
3650
3679
  fill: f.value
3651
- }, null, 8, Sc)], 8, bc))], 4));
3680
+ }, null, 8, Ic)], 8, Pc))], 4));
3652
3681
  }
3653
- }), wc = { class: "tpl:w-full" }, Tc = ["href"], Ec = {
3682
+ }), Rc = { class: "tpl:w-full" }, zc = ["href"], Bc = {
3654
3683
  key: 1,
3655
3684
  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)]"
3656
- }, Dc = /* @__PURE__ */ F({
3685
+ }, Vc = /* @__PURE__ */ I({
3657
3686
  __name: "SocialIconsBlock",
3658
3687
  props: {
3659
3688
  block: {},
3660
3689
  viewport: {}
3661
3690
  },
3662
3691
  setup(e) {
3663
- let r = e, { t: i } = yn(), a = N(() => ({
3692
+ let r = e, { t: i } = Dn(), a = P(() => ({
3664
3693
  display: "flex",
3665
3694
  flexWrap: "wrap",
3666
3695
  gap: `${r.block.spacing}px`,
3667
3696
  justifyContent: r.block.align === "left" ? "flex-start" : r.block.align === "right" ? "flex-end" : "center"
3668
- })), o = N(() => r.block.icons.length > 0);
3669
- return (r, s) => (t(), S("div", wc, [o.value ? (t(), S("div", {
3697
+ })), o = P(() => r.block.icons.length > 0);
3698
+ return (r, s) => (t(), S("div", Rc, [o.value ? (t(), S("div", {
3670
3699
  key: 0,
3671
3700
  style: n(a.value)
3672
3701
  }, [(t(!0), S(M, null, l(e.block.icons, (n) => (t(), S("a", {
3673
3702
  key: n.id,
3674
3703
  href: n.url || "#",
3675
3704
  class: "tpl:cursor-default",
3676
- onClick: s[0] ||= I(() => {}, ["prevent"])
3677
- }, [C(Cc, {
3705
+ onClick: s[0] ||= L(() => {}, ["prevent"])
3706
+ }, [C(Lc, {
3678
3707
  platform: n.platform,
3679
3708
  "icon-style": e.block.iconStyle,
3680
3709
  "icon-tone": e.block.iconTone,
@@ -3684,44 +3713,44 @@ var _c = { class: "tpl:w-full" }, vc = {
3684
3713
  "icon-style",
3685
3714
  "icon-tone",
3686
3715
  "icon-size"
3687
- ])], 8, Tc))), 128))], 4)) : (t(), S("div", Ec, [C(y(dt), { size: 16 }), x("span", null, D(y(i).social.addIcons), 1)]))]));
3716
+ ])], 8, zc))), 128))], 4)) : (t(), S("div", Bc, [C(y(dt), { size: 16 }), x("span", null, D(y(i).social.addIcons), 1)]))]));
3688
3717
  }
3689
- }), Oc = { class: "tpl:w-full" }, kc = {
3718
+ }), Hc = { class: "tpl:w-full" }, Uc = {
3690
3719
  key: 0,
3691
3720
  class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
3692
3721
  style: {
3693
3722
  "background-color": "var(--tpl-bg-hover)",
3694
3723
  color: "var(--tpl-text-dim)"
3695
3724
  }
3696
- }, Ac = /* @__PURE__ */ F({
3725
+ }, Wc = /* @__PURE__ */ I({
3697
3726
  __name: "SpacerBlock",
3698
3727
  props: {
3699
3728
  block: {},
3700
3729
  viewport: {}
3701
3730
  },
3702
3731
  setup(e) {
3703
- let r = e, i = wt(tn, "SpacerBlock"), a = N(() => ({
3732
+ let r = e, i = Mt(un, "SpacerBlock"), a = P(() => ({
3704
3733
  height: `${r.block.height}px`,
3705
3734
  minHeight: `${r.block.height}px`,
3706
3735
  ...i.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
3707
3736
  }));
3708
- return (r, o) => (t(), S("div", Oc, [x("div", {
3737
+ return (r, o) => (t(), S("div", Hc, [x("div", {
3709
3738
  style: n(a.value),
3710
3739
  class: k(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:box-border tpl:border-y tpl:border-x-0 tpl:border-dashed": !y(i).state.previewMode }])
3711
- }, [y(i).state.previewMode ? P("", !0) : (t(), S("span", kc, D(e.block.height) + "px ", 1))], 6)]));
3740
+ }, [y(i).state.previewMode ? F("", !0) : (t(), S("span", Uc, D(e.block.height) + "px ", 1))], 6)]));
3712
3741
  }
3713
- }), jc = { class: "tpl:w-full" }, Mc = { key: 0 }, Nc = [
3742
+ }), Gc = { class: "tpl:w-full" }, Kc = { key: 0 }, qc = [
3714
3743
  "aria-label",
3715
3744
  "data-placeholder",
3716
3745
  "onBlur"
3717
- ], Pc = [
3746
+ ], Jc = [
3718
3747
  "aria-label",
3719
3748
  "data-placeholder",
3720
3749
  "onBlur"
3721
- ], Fc = {
3750
+ ], Yc = {
3722
3751
  key: 1,
3723
3752
  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)]"
3724
- }, Ic = /*#__PURE__*/ Nn(/* @__PURE__ */ F({
3753
+ }, Xc = /*#__PURE__*/ Vn(/* @__PURE__ */ I({
3725
3754
  __name: "TableBlock",
3726
3755
  props: {
3727
3756
  block: {},
@@ -3735,7 +3764,7 @@ var _c = { class: "tpl:w-full" }, vc = {
3735
3764
  updated(e, t) {
3736
3765
  t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
3737
3766
  }
3738
- }, i = e, { t: a } = yn(), o = wt(tn, "TableBlock"), s = wt(mn, "TableBlock"), c = N(() => i.block.rows.length > 0), u = N(() => {
3767
+ }, i = e, { t: a } = Dn(), o = Mt(un, "TableBlock"), s = Mt(Sn, "TableBlock"), c = P(() => i.block.rows.length > 0), u = P(() => {
3739
3768
  let e = {
3740
3769
  width: "100%",
3741
3770
  borderCollapse: "collapse",
@@ -3744,15 +3773,15 @@ var _c = { class: "tpl:w-full" }, vc = {
3744
3773
  fontFamily: i.block.fontFamily ? s.resolveFontFamily(i.block.fontFamily) : "inherit"
3745
3774
  };
3746
3775
  return i.block.color && (e.color = i.block.color), e;
3747
- }), d = N(() => ({
3776
+ }), d = P(() => ({
3748
3777
  border: `${i.block.borderWidth}px solid ${i.block.borderColor}`,
3749
3778
  padding: `${i.block.cellPadding}px`,
3750
3779
  textAlign: i.block.textAlign
3751
- })), f = N(() => ({
3780
+ })), f = P(() => ({
3752
3781
  ...d.value,
3753
3782
  fontWeight: "bold",
3754
3783
  backgroundColor: i.block.headerBackgroundColor || "transparent"
3755
- })), p = N(() => i.block.hasHeaderRow && i.block.rows.length > 0 ? i.block.rows[0] : null), h = N(() => i.block.hasHeaderRow ? i.block.rows.slice(1) : i.block.rows);
3784
+ })), p = P(() => i.block.hasHeaderRow && i.block.rows.length > 0 ? i.block.rows[0] : null), h = P(() => i.block.hasHeaderRow ? i.block.rows.slice(1) : i.block.rows);
3756
3785
  function g() {
3757
3786
  o.selectBlock(i.block.id);
3758
3787
  }
@@ -3766,31 +3795,31 @@ var _c = { class: "tpl:w-full" }, vc = {
3766
3795
  } : n);
3767
3796
  o.updateBlock(i.block.id, { rows: a });
3768
3797
  }
3769
- return (e, i) => (t(), S("div", jc, [c.value ? (t(), S("table", {
3798
+ return (e, i) => (t(), S("div", Gc, [c.value ? (t(), S("table", {
3770
3799
  key: 0,
3771
3800
  style: n(u.value),
3772
3801
  class: "tpl-table-editable"
3773
- }, [p.value ? (t(), S("thead", Mc, [x("tr", null, [(t(!0), S(M, null, l(p.value.cells, (e) => m((t(), S("th", {
3802
+ }, [p.value ? (t(), S("thead", Kc, [x("tr", null, [(t(!0), S(M, null, l(p.value.cells, (e) => m((t(), S("th", {
3774
3803
  key: e.id,
3775
3804
  style: n(f.value),
3776
3805
  "aria-label": y(a).table.cellPlaceholder,
3777
3806
  contenteditable: "true",
3778
3807
  "data-placeholder": y(a).table.cellPlaceholder,
3779
3808
  onBlur: (t) => _(p.value.id, e.id, t),
3780
- onKeydown: i[0] ||= re(I((e) => e.target.blur(), ["prevent"]), ["enter"]),
3781
- onClick: I(g, ["stop"])
3782
- }, null, 44, Nc)), [[r, e.content]])), 128))])])) : P("", !0), x("tbody", null, [(t(!0), S(M, null, l(h.value, (e) => (t(), S("tr", { key: e.id }, [(t(!0), S(M, null, l(e.cells, (o) => m((t(), S("td", {
3809
+ onKeydown: i[0] ||= ne(L((e) => e.target.blur(), ["prevent"]), ["enter"]),
3810
+ onClick: L(g, ["stop"])
3811
+ }, null, 44, qc)), [[r, e.content]])), 128))])])) : F("", !0), x("tbody", null, [(t(!0), S(M, null, l(h.value, (e) => (t(), S("tr", { key: e.id }, [(t(!0), S(M, null, l(e.cells, (o) => m((t(), S("td", {
3783
3812
  key: o.id,
3784
3813
  style: n(d.value),
3785
3814
  "aria-label": y(a).table.cellPlaceholder,
3786
3815
  contenteditable: "true",
3787
3816
  "data-placeholder": y(a).table.cellPlaceholder,
3788
3817
  onBlur: (t) => _(e.id, o.id, t),
3789
- onKeydown: i[1] ||= re(I((e) => e.target.blur(), ["prevent"]), ["enter"]),
3790
- onClick: I(g, ["stop"])
3791
- }, null, 44, Pc)), [[r, o.content]])), 128))]))), 128))])], 4)) : (t(), S("div", Fc, [C(y(ut), { size: 16 }), x("span", null, D(y(a).table.empty), 1)]))]));
3818
+ onKeydown: i[1] ||= ne(L((e) => e.target.blur(), ["prevent"]), ["enter"]),
3819
+ onClick: L(g, ["stop"])
3820
+ }, null, 44, Jc)), [[r, o.content]])), 128))]))), 128))])], 4)) : (t(), S("div", Yc, [C(y(mt), { size: 16 }), x("span", null, D(y(a).table.empty), 1)]))]));
3792
3821
  }
3793
- }), [["__scopeId", "data-v-6751d456"]]), Lc = /* @__PURE__ */ F({
3822
+ }), [["__scopeId", "data-v-6751d456"]]), Zc = /* @__PURE__ */ I({
3794
3823
  __name: "VideoPlayButton",
3795
3824
  props: { hoverEffect: {
3796
3825
  type: Boolean,
@@ -3808,7 +3837,7 @@ var _c = { class: "tpl:w-full" }, vc = {
3808
3837
  });
3809
3838
  //#endregion
3810
3839
  //#region src/utils/videoThumbnail.ts
3811
- function Rc(e) {
3840
+ function Qc(e) {
3812
3841
  if (!e) return {
3813
3842
  platform: "unknown",
3814
3843
  videoId: null,
@@ -3840,25 +3869,25 @@ function Rc(e) {
3840
3869
  thumbnailUrl: null
3841
3870
  };
3842
3871
  }
3843
- function zc(e, t) {
3844
- return t || Rc(e).thumbnailUrl;
3872
+ function $c(e, t) {
3873
+ return t || Qc(e).thumbnailUrl;
3845
3874
  }
3846
3875
  //#endregion
3847
3876
  //#region src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
3848
- var Bc = ["src", "alt"], Vc = {
3877
+ var el = ["src", "alt"], tl = {
3849
3878
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
3850
3879
  style: { opacity: "0.7" }
3851
- }, Hc = ["href"], Uc = ["src", "alt"], Wc = ["src", "alt"], Gc = {
3880
+ }, nl = ["href"], rl = ["src", "alt"], il = ["src", "alt"], al = {
3852
3881
  key: 3,
3853
3882
  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)]"
3854
- }, Kc = /* @__PURE__ */ F({
3883
+ }, ol = /* @__PURE__ */ I({
3855
3884
  __name: "VideoBlock",
3856
3885
  props: {
3857
3886
  block: {},
3858
3887
  viewport: {}
3859
3888
  },
3860
3889
  setup(e) {
3861
- let r = e, { t: i } = yn(), { syntax: a } = Fn(), o = N(() => Ce(r.block.url, a) || Ce(r.block.thumbnailUrl, a)), s = Wn(() => o.value ? void 0 : r.block.thumbnailUrl || void 0), c = Wn(() => o.value ? r.block.placeholderUrl : void 0), l = N(() => o.value ? null : r.block.thumbnailUrl ? s.value ?? null : zc(r.block.url)), u = N(() => ({ textAlign: r.block.align })), d = N(() => {
3890
+ let r = e, { t: i } = Dn(), { syntax: a } = Un(), o = P(() => Ee(r.block.url, a) || Ee(r.block.thumbnailUrl, a)), s = st(() => o.value ? void 0 : r.block.thumbnailUrl || void 0), c = st(() => o.value ? r.block.placeholderUrl : void 0), l = P(() => o.value ? null : r.block.thumbnailUrl ? s.value ?? null : $c(r.block.url)), u = P(() => ({ textAlign: r.block.align })), d = P(() => {
3862
3891
  let e = r.block.align;
3863
3892
  return {
3864
3893
  maxWidth: "100%",
@@ -3868,7 +3897,7 @@ var Bc = ["src", "alt"], Vc = {
3868
3897
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
3869
3898
  marginRight: e === "center" ? "auto" : void 0
3870
3899
  };
3871
- }), f = N(() => ({ height: r.block.height ? `${r.block.height}px` : void 0 })), p = N(() => Ce(r.block.url, a) ? r.block.url : r.block.thumbnailUrl);
3900
+ }), f = P(() => ({ height: r.block.height ? `${r.block.height}px` : void 0 })), p = P(() => Ee(r.block.url, a) ? r.block.url : r.block.thumbnailUrl);
3872
3901
  return (r, a) => (t(), S("div", {
3873
3902
  class: "tpl:w-full",
3874
3903
  style: n(u.value)
@@ -3881,29 +3910,29 @@ var Bc = ["src", "alt"], Vc = {
3881
3910
  src: y(c),
3882
3911
  alt: e.block.alt,
3883
3912
  style: n(f.value)
3884
- }, null, 12, Bc), C(Lc)], 4)) : o.value ? (t(), S("div", {
3913
+ }, null, 12, el), C(Zc)], 4)) : o.value ? (t(), S("div", {
3885
3914
  key: 1,
3886
3915
  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)]",
3887
3916
  style: n([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, d.value])
3888
- }, [C(y(ii), {
3917
+ }, [C(y(li), {
3889
3918
  size: 36,
3890
3919
  "stroke-width": 1.5,
3891
3920
  class: "tpl:text-[var(--tpl-primary)]",
3892
3921
  style: { opacity: "0.5" }
3893
- }), x("span", Vc, [C(Yr, { text: p.value }, null, 8, ["text"])])], 4)) : l.value ? (t(), S(M, { key: 2 }, [e.block.url ? (t(), S("a", {
3922
+ }), x("span", tl, [C(ei, { text: p.value }, null, 8, ["text"])])], 4)) : l.value ? (t(), S(M, { key: 2 }, [e.block.url ? (t(), S("a", {
3894
3923
  key: 0,
3895
3924
  href: e.block.url,
3896
3925
  target: "_blank",
3897
3926
  rel: "noopener noreferrer",
3898
3927
  class: "tpl:group tpl:relative tpl:inline-block",
3899
3928
  style: n(d.value),
3900
- onClick: a[0] ||= I(() => {}, ["prevent"])
3929
+ onClick: a[0] ||= L(() => {}, ["prevent"])
3901
3930
  }, [x("img", {
3902
3931
  class: "tpl:block tpl:w-full tpl:border-0",
3903
3932
  src: l.value,
3904
3933
  alt: e.block.alt,
3905
3934
  style: n(f.value)
3906
- }, null, 12, Uc), C(Lc, { "hover-effect": "" })], 12, Hc)) : (t(), S("div", {
3935
+ }, null, 12, rl), C(Zc, { "hover-effect": "" })], 12, nl)) : (t(), S("div", {
3907
3936
  key: 1,
3908
3937
  class: "tpl:relative tpl:inline-block",
3909
3938
  style: n(d.value)
@@ -3912,54 +3941,53 @@ var Bc = ["src", "alt"], Vc = {
3912
3941
  src: l.value,
3913
3942
  alt: e.block.alt,
3914
3943
  style: n(f.value)
3915
- }, null, 12, Wc), C(Lc)], 4))], 64)) : (t(), S("div", Gc, [C(y(ii), {
3944
+ }, null, 12, il), C(Zc)], 4))], 64)) : (t(), S("div", al, [C(y(li), {
3916
3945
  size: 40,
3917
3946
  "stroke-width": 1.5,
3918
3947
  class: "tpl:text-[var(--tpl-border-light)]"
3919
3948
  }), x("span", null, D(y(i).video.addVideo), 1)]))], 4));
3920
3949
  }
3921
- }), qc = {
3922
- section: yc,
3923
- title: Ea,
3924
- paragraph: da,
3925
- image: Qi,
3926
- button: Zr,
3927
- divider: Pi,
3928
- video: Kc,
3929
- social: Dc,
3930
- menu: na,
3931
- table: Ic,
3932
- spacer: Ac,
3933
- html: Bi,
3934
- countdown: v(() => import("./CountdownBlock-zx39Dyby.js"))
3950
+ }), sl = {
3951
+ section: Nc,
3952
+ title: Ma,
3953
+ paragraph: ga,
3954
+ image: ra,
3955
+ button: ni,
3956
+ divider: zi,
3957
+ video: ol,
3958
+ social: Vc,
3959
+ menu: sa,
3960
+ table: Xc,
3961
+ spacer: Wc,
3962
+ html: Gi,
3963
+ countdown: v(() => import("./CountdownBlock-DPQXWRvU.js"))
3935
3964
  };
3936
- function Jc(t) {
3937
- let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: c } = yn(i), l = N(() => ue(ue(ue(pr(i), Nr(n.content.value.settings?.locale)), Ie(n.content.value.settings) === "rtl" ? {
3965
+ function cl(t) {
3966
+ let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: c } = Dn(i), l = P(() => xe(xe(xe(hr(i), Fr(n.content.value.settings?.locale)), Ye(n.content.value.settings) === "rtl" ? {
3938
3967
  title: { textAlign: "right" },
3939
3968
  table: { textAlign: "right" }
3940
3969
  } : {}), r.blockDefaults ?? {}));
3941
3970
  n.setUiTheme(r.uiTheme ?? "auto");
3942
- let { resolvedTheme: u } = tr(N(() => n.state.uiTheme)), d = _(r.theme ?? {}), { themeStyles: p } = rr({
3971
+ let { resolvedTheme: u } = rr(P(() => n.state.uiTheme)), d = _(r.theme ?? {}), { themeStyles: p } = ar({
3943
3972
  themeOverrides: d,
3944
3973
  resolvedTheme: u,
3945
3974
  extraStyles: () => ({
3946
3975
  "--tpl-drop-text": `"${i.canvas.dropHere}"`,
3947
3976
  ...t.themeExtraStyles?.()
3948
3977
  })
3949
- }), m = ht({
3978
+ }), m = t.history ?? tt({
3950
3979
  content: n.content,
3951
- setContent: (e, t) => n.setContent(e, t),
3952
- ...t.historyOptions
3980
+ setContent: (e, t) => n.setContent(e, t)
3953
3981
  });
3954
- tt(n, m);
3955
- let g = mt({
3982
+ t.history || ut(n, m);
3983
+ let g = ot({
3956
3984
  addBlock: n.addBlock,
3957
3985
  removeBlock: n.removeBlock,
3958
3986
  updateBlock: n.updateBlock,
3959
3987
  selectBlock: n.selectBlock,
3960
3988
  findBlockLocation: n.findBlockLocation,
3961
3989
  blockDefaults: () => l.value
3962
- }), v = gt(n), y = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? nt({
3990
+ }), v = it(n), y = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? at({
3963
3991
  content: n.content,
3964
3992
  isDirty: () => n.state.isDirty,
3965
3993
  ...t.autoSaveOptions
@@ -3967,30 +3995,30 @@ function Jc(t) {
3967
3995
  y && (b = f(m.isNavigating, (e) => {
3968
3996
  e ? y.pause() : y.resume();
3969
3997
  }));
3970
- let x = er(n, {
3998
+ let x = nr(n, {
3971
3999
  t: o,
3972
4000
  format: c
3973
- }, r.customBlocks ?? []), S = Cn(r.colors);
3974
- if (S.allowCustomIgnored && bn.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), S.invalidPresets.length > 0 && bn.warn(`config.colors.presets skipped invalid entries: ${S.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), S.allowCustom === !1) {
3975
- let e = fr(S.presets, r.blockDefaults, r.templateDefaults);
3976
- e.length > 0 && bn.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.`);
3977
- }
3978
- let C = Tn(r.templateSettings);
3979
- for (let e of C.unknown) bn.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${En.join(", ")}) — skipping it.`);
3980
- let w = ir();
3981
- lr(w, qc);
4001
+ }, r.customBlocks ?? []), S = jn(r.colors);
4002
+ if (S.allowCustomIgnored && On.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), S.invalidPresets.length > 0 && On.warn(`config.colors.presets skipped invalid entries: ${S.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), S.allowCustom === !1) {
4003
+ let e = mr(S.presets, r.blockDefaults, r.templateDefaults);
4004
+ e.length > 0 && On.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.`);
4005
+ }
4006
+ let C = Nn(r.templateSettings);
4007
+ for (let e of C.unknown) On.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${Pn.join(", ")}) — skipping it.`);
4008
+ let w = or();
4009
+ dr(w, sl);
3982
4010
  let T = /* @__PURE__ */ new Set();
3983
4011
  function D(e) {
3984
4012
  for (let t of e) {
3985
- w.registerCustom(t, Mi);
3986
- for (let e of Pr(t, S)) T.has(e.id) || (T.add(e.id), bn.warn(e.message));
4013
+ w.registerCustom(t, Li);
4014
+ for (let e of Ir(t, S)) T.has(e.id) || (T.add(e.id), On.warn(e.message));
3987
4015
  }
3988
4016
  }
3989
4017
  r.customBlocks?.length && D(r.customBlocks);
3990
- let O = Bn();
4018
+ let O = Yn();
3991
4019
  if (h() && s(O.dispose), t.containerEl) {
3992
4020
  let e = t.containerEl;
3993
- xt(document, "pointerdown", (t) => {
4021
+ kt(document, "pointerdown", (t) => {
3994
4022
  let n = e.value;
3995
4023
  n && (t.composedPath?.() ?? []).includes(n) && O.claim();
3996
4024
  }, { capture: !0 });
@@ -4000,51 +4028,50 @@ function Jc(t) {
4000
4028
  e ? e.save() : y?.flush();
4001
4029
  }
4002
4030
  function A(e) {
4003
- O.isActive() && Ir(e, {
4031
+ O.isActive() && Rr(e, {
4004
4032
  history: m,
4005
4033
  selectBlock: (e) => n.selectBlock(e),
4006
4034
  getSelectedBlockId: () => n.state.selectedBlockId,
4007
4035
  removeBlock: (e) => n.removeBlock(e),
4008
4036
  onSave: k,
4009
- onBeforeUndo: t.keyboardOptions?.onBeforeUndo,
4010
4037
  isPicking: () => t.capabilities?.savedBlocks?.isPicking.value === !0,
4011
4038
  onConfirmPick: () => t.capabilities?.savedBlocks?.confirmPicking(),
4012
4039
  onCancelPick: () => t.capabilities?.savedBlocks?.cancelPicking()
4013
4040
  });
4014
4041
  }
4015
- xt(document, "keydown", A);
4042
+ kt(document, "keydown", A);
4016
4043
  let j = _(null), M = t.editorRoot ?? document;
4017
- E(Yt, M), E(Et, j), E(qt, i), E(tn, n), E(_n, m), E(Xt, g), E(en, v), E(mn, a), E(Pt, p), E(Jt, u), E(ln, l), E(Kt, r.locale), E(pn, w), E(un, r.customBlocks ?? []), E(vn, r.paletteBlocks), E(Zt, ur(r.htmlBlockPreview)), E(Dt, r.layout), E(jt, r.sectionWrapper), E($t, S), E(dn, C.fields), E(sn, ar(n.content, w));
4018
- let ee = ke(r.mergeTags?.syntax), P = e(r.mergeTags?.tags ?? []);
4019
- function F(e) {
4020
- Array.isArray(e) ? P.value = e : bn.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
4021
- }
4022
- E(zt, P), E(Bt, ee), E(Ht, r.mergeTags?.onRequest ?? null), E(an, r.mergeTags?.autocomplete !== !1), E(Rt, r.mergeTags?.showRawValue !== !1);
4023
- let te = _(Ge(r.mergeTags?.tags ?? []));
4024
- E(Lt, te);
4025
- let I = Hn({
4044
+ E(rn, M), E(Pt, j), E(tn, i), E(un, n), E(Tn, m), E(an, g), E(ln, v), E(Sn, a), E(Ht, p), E(nn, u), E(_n, l), E(en, r.locale), E(xn, w), E(vn, r.customBlocks ?? []), E(En, r.paletteBlocks), E(on, fr(r.htmlBlockPreview)), E(Ft, r.layout), E(zt, r.sectionWrapper), E(cn, S), E(yn, C.fields), E(hn, sr(n.content, w));
4045
+ let N = Ne(r.mergeTags?.syntax), F = e(r.mergeTags?.tags ?? []);
4046
+ function I(e) {
4047
+ Array.isArray(e) ? F.value = e : On.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
4048
+ }
4049
+ E(qt, F), E(Jt, N), E(Xt, r.mergeTags?.onRequest ?? null), E(pn, r.mergeTags?.autocomplete !== !1), E(Kt, r.mergeTags?.showRawValue !== !1);
4050
+ let ee = _(he(r.mergeTags?.tags ?? []));
4051
+ E(Gt, ee);
4052
+ let L = Zn({
4026
4053
  resolvePreview: r.resolvePreview,
4027
4054
  getContent: () => {
4028
4055
  let e = n.content.value;
4029
- return r.layout && n.state.previewMode ? Ue(r.layout, e) : e;
4056
+ return r.layout && n.state.previewMode ? Re(r.layout, e) : e;
4030
4057
  },
4031
4058
  isActive: () => n.state.previewMode
4032
4059
  });
4033
- E(Gt, I), E(Mt, r.resolvePreview);
4034
- let ne = N(() => !(n.state.previewMode && I.isConfigured));
4035
- E(fn, ne);
4036
- let re = Xn();
4037
- E(Tt, re), E(rn, _(!1)), E(Ot, _(!1)), E(Wt, r.logicTags?.tags ?? []), E(hn, r.logicTags?.pairs ?? []), E(Nt, r.logicTags?.onRequest ?? null), E(kt, Zn()), E(It, r.onRequestMedia ?? null), E(Qt, r.canDropMedia ?? null), E(gn, r.resolveImageUrl ? Un(r.resolveImageUrl) : null), E(nn, r.displayConditions?.conditions ?? []), E(cn, r.displayConditions?.allowCustom ?? !1), E(on, t.capabilities ?? {}), E(Ut, x);
4038
- let ie = Qn(r.lint) ? null : $n({
4060
+ E($t, L), E(Bt, r.resolvePreview);
4061
+ let te = P(() => !(n.state.previewMode && L.isConfigured));
4062
+ E(bn, te);
4063
+ let ne = Qn();
4064
+ E(Nt, ne), E(fn, _(!1)), E(It, _(!1)), E(Qt, r.logicTags?.tags ?? []), E(Cn, r.logicTags?.pairs ?? []), E(Vt, r.logicTags?.onRequest ?? null), E(Lt, $n()), E(Wt, r.onRequestMedia ?? null), E(sn, r.canDropMedia ?? null), E(wn, r.resolveImageUrl ? St(r.resolveImageUrl) : null), E(dn, r.displayConditions?.conditions ?? []), E(gn, r.displayConditions?.allowCustom ?? !1), E(mn, t.capabilities ?? {}), E(Zt, x);
4065
+ let re = er(r.lint) ? null : tr({
4039
4066
  content: n.content,
4040
4067
  options: r.lint ?? {},
4041
4068
  updateBlock: n.updateBlock,
4042
4069
  updateSettings: n.updateSettings,
4043
4070
  removeBlock: n.removeBlock
4044
4071
  });
4045
- E(Ft, ie);
4046
- function ae() {
4047
- b?.(), ie?.destroy(), y?.destroy(), m.destroy();
4072
+ E(Ut, re);
4073
+ function ie() {
4074
+ b?.(), re?.destroy(), y?.destroy(), m.destroy();
4048
4075
  }
4049
4076
  return {
4050
4077
  t: o,
@@ -4059,15 +4086,15 @@ function Jc(t) {
4059
4086
  themeOverrides: d,
4060
4087
  registry: w,
4061
4088
  keyboardReorder: x,
4062
- templateLint: ie,
4089
+ templateLint: re,
4063
4090
  popoverRoot: j,
4064
- mergeTagSampleMode: te,
4065
- previewResolution: I,
4066
- appliesConditionFilter: ne,
4091
+ mergeTagSampleMode: ee,
4092
+ previewResolution: L,
4093
+ appliesConditionFilter: te,
4067
4094
  registerCustomBlocks: D,
4068
- setMergeTags: F,
4069
- destroy: ae
4095
+ setMergeTags: I,
4096
+ destroy: ie
4070
4097
  };
4071
4098
  }
4072
4099
  //#endregion
4073
- export { Lr as A, qn as B, ni as C, Hr as D, Zr as E, Or as F, Hn as H, Dr as I, Er as L, Rr as M, xr as N, Ur as O, kr as P, Tr as R, si as S, Qr as T, Jn as V, xi as _, Dc as a, ui as b, Ea as c, na as d, Qi as f, Ci as g, Mi as h, Ac as i, qr as j, Wr as k, wa as l, Pi as m, Kc as n, yc as o, Bi as p, Ic as r, hc as s, Jc as t, da as u, yi as v, ei as w, li as x, mi as y, wr as z };
4100
+ export { Jr as A, Dr as B, mi as C, ri as D, ai as E, Cr as F, Zn as H, jr as I, Ar as L, zr as M, Qr as N, ni as O, Br as P, kr as R, hi as S, si as T, Er as V, Li as _, Vc as a, wi as b, Na as c, Aa as d, ga as f, zi as g, Gi as h, Wc as i, Yr as j, Wr as k, Ia as l, ra as m, ol as n, Nc as o, sa as p, Xc as r, Oc as s, cl as t, Ma as u, Oi as v, fi as w, yi as x, Ei as y, Or as z };