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