@templatical/editor 0.24.1 → 0.25.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 (153) hide show
  1. package/dist/{AiChatSidebar-X4viKtvs.js → AiChatSidebar-CIkS8DsO.js} +3 -3
  2. package/dist/{AiFeatureMenu-DDAamRaA.js → AiFeatureMenu-Cji1LBJJ.js} +3 -3
  3. package/dist/{BlockIssueBadge-Qxrl7Ujl.js → BlockIssueBadge-BQiT0FML.js} +2 -2
  4. package/dist/{BlockPreviewCanvas-Cf-kxbEr.js → BlockPreviewCanvas-DAnwZofk.js} +10 -6
  5. package/dist/{CloudEditor-JIzhj1Xq.js → CloudEditor-CXaft6Ej.js} +60 -58
  6. package/dist/{CollaboratorBar-tC7AACTb.js → CollaboratorBar-BR-rL2wG.js} +2 -2
  7. package/dist/{ColorPicker--_2PbzFk.js → ColorPicker-B4ArSUhy.js} +3 -3
  8. package/dist/{CommentsSidebar-Ci2Ov8FG.js → CommentsSidebar-Bm5GLDts.js} +4 -4
  9. package/dist/{CountdownBlock-aZIKfBWY.js → CountdownBlock-CIVAQDVu.js} +1 -1
  10. package/dist/{CountdownToolbar-DHp6T0Q_.js → CountdownToolbar-DBmb3tlb.js} +3 -3
  11. package/dist/{DesignReferenceSidebar-DQsC-3hB.js → DesignReferenceSidebar-CnyJ8L-j.js} +3 -3
  12. package/dist/{IssuesPanel-CoOfib44.js → IssuesPanel-D3XgmYCt.js} +2 -2
  13. package/dist/{MergeTagModeToggle-CiFiSV0C.js → MergeTagModeToggle-BK0fI3P2.js} +3 -3
  14. package/dist/{NumberWithSuffix-CXFbUqsx.js → NumberWithSuffix-Cjj9UNIp.js} +1 -1
  15. package/dist/{ParagraphEditor-Cy-bpEjI.js → ParagraphEditor-jGnbJEA2.js} +8 -8
  16. package/dist/{RichTextEditorContent-CYJko6id.js → RichTextEditorContent-DaaKdzjb.js} +4 -4
  17. package/dist/{SaveBlockDialog-CNTSaMEa.js → SaveBlockDialog-B3ngEldp.js} +7 -7
  18. package/dist/{SavedBlocksBrowserModal-CvxS5-YX.js → SavedBlocksBrowserModal-DawN3XaB.js} +6 -6
  19. package/dist/{SavedBlocksPanels-CNdUxS89.js → SavedBlocksPanels-eDC9Y46N.js} +1 -1
  20. package/dist/{SavedBlocksPickBar-BvXKhblL.js → SavedBlocksPickBar-CQbbXmzj.js} +2 -2
  21. package/dist/{SnapshotHistory-BqPSIV9L.js → SnapshotHistory-COxKtHM-.js} +4 -4
  22. package/dist/{TemplateScoringPanel-CMEuz9yF.js → TemplateScoringPanel-bUuqOO1z.js} +3 -3
  23. package/dist/{TestEmailModal-BDhnnCBx.js → TestEmailModal-CytkbZVQ.js} +87 -56
  24. package/dist/{TestEmailPanel--RwnwLn2.js → TestEmailPanel-CHUY7VZn.js} +1 -1
  25. package/dist/{TitleEditor-F7E_pU9H.js → TitleEditor-aMR1bOyY.js} +7 -7
  26. package/dist/{TplModal-BIiS24Of.js → TplModal-fmYNYdyp.js} +3 -3
  27. package/dist/{blockTypeIcons-C6PnLMp7.js → blockTypeIcons-C6b9rg88.js} +1 -1
  28. package/dist/bundle-stats.json +6 -6
  29. package/dist/{cdn/chunks/ca-CO4nq6TX.js → ca-8Dvbwo50.js} +5 -2
  30. package/dist/cdn/chunks/{AiChatSidebar-UbF3ePzR.js → AiChatSidebar-bkBKpNgE.js} +4 -4
  31. package/dist/cdn/chunks/{AiChatSidebar-UbF3ePzR.js.map → AiChatSidebar-bkBKpNgE.js.map} +1 -1
  32. package/dist/cdn/chunks/{AiFeatureMenu-OIwoJzHG.js → AiFeatureMenu-CI4SYTq2.js} +4 -4
  33. package/dist/cdn/chunks/{AiFeatureMenu-OIwoJzHG.js.map → AiFeatureMenu-CI4SYTq2.js.map} +1 -1
  34. package/dist/cdn/chunks/{BlockIssueBadge-Bd2EuT1C.js → BlockIssueBadge-CRnx8Dv9.js} +3 -3
  35. package/dist/cdn/chunks/{BlockIssueBadge-Bd2EuT1C.js.map → BlockIssueBadge-CRnx8Dv9.js.map} +1 -1
  36. package/dist/cdn/chunks/{BlockPreviewCanvas-C-ut8GkJ.js → BlockPreviewCanvas-CXCWhqbp.js} +11 -7
  37. package/dist/cdn/chunks/BlockPreviewCanvas-CXCWhqbp.js.map +1 -0
  38. package/dist/cdn/chunks/{CloudEditor-D87qsqbZ.js → CloudEditor-D-t7RyDh.js} +62 -60
  39. package/dist/cdn/chunks/CloudEditor-D-t7RyDh.js.map +1 -0
  40. package/dist/cdn/chunks/{CollaboratorBar-Br4RvNrA.js → CollaboratorBar-DcXYo47v.js} +3 -3
  41. package/dist/cdn/chunks/{CollaboratorBar-Br4RvNrA.js.map → CollaboratorBar-DcXYo47v.js.map} +1 -1
  42. package/dist/cdn/chunks/{ColorPicker-B-ymPPtU.js → ColorPicker-_1O7YU2z.js} +4 -4
  43. package/dist/cdn/chunks/{ColorPicker-B-ymPPtU.js.map → ColorPicker-_1O7YU2z.js.map} +1 -1
  44. package/dist/cdn/chunks/{CommentsSidebar-Tv_WTcJv.js → CommentsSidebar-BEgLBYX-.js} +5 -5
  45. package/dist/cdn/chunks/{CommentsSidebar-Tv_WTcJv.js.map → CommentsSidebar-BEgLBYX-.js.map} +1 -1
  46. package/dist/cdn/chunks/{CountdownBlock-cEcXSK91.js → CountdownBlock-CPnQA44g.js} +2 -2
  47. package/dist/cdn/chunks/{CountdownBlock-cEcXSK91.js.map → CountdownBlock-CPnQA44g.js.map} +1 -1
  48. package/dist/cdn/chunks/{CountdownToolbar-CLp3_ebk.js → CountdownToolbar-Cdo-30U4.js} +4 -4
  49. package/dist/cdn/chunks/{CountdownToolbar-CLp3_ebk.js.map → CountdownToolbar-Cdo-30U4.js.map} +1 -1
  50. package/dist/cdn/chunks/{DesignReferenceSidebar-YeqxSsxO.js → DesignReferenceSidebar-DPqBr-ut.js} +4 -4
  51. package/dist/cdn/chunks/{DesignReferenceSidebar-YeqxSsxO.js.map → DesignReferenceSidebar-DPqBr-ut.js.map} +1 -1
  52. package/dist/cdn/chunks/{IssuesPanel-BhsvC3XQ.js → IssuesPanel-DoQWb23r.js} +3 -3
  53. package/dist/cdn/chunks/{IssuesPanel-BhsvC3XQ.js.map → IssuesPanel-DoQWb23r.js.map} +1 -1
  54. package/dist/cdn/chunks/{MergeTagModeToggle-DrdxQA0K.js → MergeTagModeToggle-CWuVC3MU.js} +4 -4
  55. package/dist/cdn/chunks/{MergeTagModeToggle-DrdxQA0K.js.map → MergeTagModeToggle-CWuVC3MU.js.map} +1 -1
  56. package/dist/cdn/chunks/{NumberWithSuffix-BK_Xh4w4.js → NumberWithSuffix-DQ4sgvt5.js} +2 -2
  57. package/dist/cdn/chunks/{NumberWithSuffix-BK_Xh4w4.js.map → NumberWithSuffix-DQ4sgvt5.js.map} +1 -1
  58. package/dist/cdn/chunks/{ParagraphEditor-DKz4vTWB.js → ParagraphEditor-Uv5LPF3W.js} +9 -9
  59. package/dist/cdn/chunks/{ParagraphEditor-DKz4vTWB.js.map → ParagraphEditor-Uv5LPF3W.js.map} +1 -1
  60. package/dist/cdn/chunks/{RichTextEditorContent-CJ2WVicQ.js → RichTextEditorContent-Bt3s09qY.js} +5 -5
  61. package/dist/cdn/chunks/{RichTextEditorContent-CJ2WVicQ.js.map → RichTextEditorContent-Bt3s09qY.js.map} +1 -1
  62. package/dist/cdn/chunks/{SaveBlockDialog-DTemkKPX.js → SaveBlockDialog-BAew6EFd.js} +8 -8
  63. package/dist/cdn/chunks/{SaveBlockDialog-DTemkKPX.js.map → SaveBlockDialog-BAew6EFd.js.map} +1 -1
  64. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DbMaIbeH.js → SavedBlocksBrowserModal-Dn4IJDJW.js} +6 -6
  65. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DbMaIbeH.js.map → SavedBlocksBrowserModal-Dn4IJDJW.js.map} +1 -1
  66. package/dist/cdn/chunks/{SavedBlocksPanels-CUffuDAC.js → SavedBlocksPanels-B62U5DYW.js} +2 -2
  67. package/dist/cdn/chunks/{SavedBlocksPanels-CUffuDAC.js.map → SavedBlocksPanels-B62U5DYW.js.map} +1 -1
  68. package/dist/cdn/chunks/{SavedBlocksPickBar-D7SmNz2n.js → SavedBlocksPickBar-CyRKZg2T.js} +3 -3
  69. package/dist/cdn/chunks/{SavedBlocksPickBar-D7SmNz2n.js.map → SavedBlocksPickBar-CyRKZg2T.js.map} +1 -1
  70. package/dist/cdn/chunks/{SnapshotHistory-m5Z8bTej.js → SnapshotHistory-QQt0DKey.js} +4 -4
  71. package/dist/cdn/chunks/{SnapshotHistory-m5Z8bTej.js.map → SnapshotHistory-QQt0DKey.js.map} +1 -1
  72. package/dist/cdn/chunks/{TemplateScoringPanel-DgRU5fty.js → TemplateScoringPanel-BwyCMcit.js} +65 -65
  73. package/dist/cdn/chunks/{TemplateScoringPanel-DgRU5fty.js.map → TemplateScoringPanel-BwyCMcit.js.map} +1 -1
  74. package/dist/cdn/chunks/{TestEmailModal-Ce8-vzGh.js → TestEmailModal-B5UQkDJp.js} +89 -58
  75. package/dist/cdn/chunks/TestEmailModal-B5UQkDJp.js.map +1 -0
  76. package/dist/cdn/chunks/{TestEmailPanel-BlmIKKSL.js → TestEmailPanel-CvuBq4RA.js} +2 -2
  77. package/dist/cdn/chunks/{TestEmailPanel-BlmIKKSL.js.map → TestEmailPanel-CvuBq4RA.js.map} +1 -1
  78. package/dist/cdn/chunks/{TitleEditor-C6_bQxYR.js → TitleEditor-B9W954u9.js} +8 -8
  79. package/dist/cdn/chunks/{TitleEditor-C6_bQxYR.js.map → TitleEditor-B9W954u9.js.map} +1 -1
  80. package/dist/cdn/chunks/{TplModal-D6bFON2K.js → TplModal-B8UsvWc8.js} +4 -4
  81. package/dist/cdn/chunks/{TplModal-D6bFON2K.js.map → TplModal-B8UsvWc8.js.map} +1 -1
  82. package/dist/{ca-CO4nq6TX.js → cdn/chunks/ca-8Dvbwo50.js} +7 -0
  83. package/dist/cdn/chunks/{ca-CO4nq6TX.js.map → ca-8Dvbwo50.js.map} +1 -1
  84. package/dist/cdn/chunks/{cloud-CRlDc0Ev.js → cloud-DOaGUdR0.js} +2 -2
  85. package/dist/cdn/chunks/{cloud-CRlDc0Ev.js.map → cloud-DOaGUdR0.js.map} +1 -1
  86. package/dist/{de-CUeaFJph.js → cdn/chunks/de-CieSMCUp.js} +7 -0
  87. package/dist/cdn/chunks/{de-CUeaFJph.js.map → de-CieSMCUp.js.map} +1 -1
  88. package/dist/{en-zCYIPAL5.js → cdn/chunks/en-D0t_2Fq_.js} +7 -0
  89. package/dist/cdn/chunks/{en-zCYIPAL5.js.map → en-D0t_2Fq_.js.map} +1 -1
  90. package/dist/cdn/chunks/{es-BSiH7YkP.js → es-DwDoNuLM.js} +6 -1
  91. package/dist/cdn/chunks/{es-BSiH7YkP.js.map → es-DwDoNuLM.js.map} +1 -1
  92. package/dist/cdn/chunks/{extensions-CKMD_er_.js → extensions-5jgtarD-.js} +19 -19
  93. package/dist/cdn/chunks/{extensions-CKMD_er_.js.map → extensions-5jgtarD-.js.map} +1 -1
  94. package/dist/{fr-DTVJ3det.js → cdn/chunks/fr-CSEEzv1_.js} +7 -0
  95. package/dist/cdn/chunks/{fr-DTVJ3det.js.map → fr-CSEEzv1_.js.map} +1 -1
  96. package/dist/cdn/chunks/keys-BxPCfHBH.js +12 -0
  97. package/dist/cdn/chunks/keys-BxPCfHBH.js.map +1 -0
  98. package/dist/{nl-BqSquFS3.js → cdn/chunks/nl-xyk1T2mA.js} +7 -0
  99. package/dist/cdn/chunks/{nl-BqSquFS3.js.map → nl-xyk1T2mA.js.map} +1 -1
  100. package/dist/{pt-BR-CMljK37h.js → cdn/chunks/pt-BR-yr6uOJgn.js} +7 -0
  101. package/dist/cdn/chunks/{pt-BR-CMljK37h.js.map → pt-BR-yr6uOJgn.js.map} +1 -1
  102. package/dist/cdn/chunks/{src-B4UhYbI8.js → src-B8W42vT-.js} +152 -152
  103. package/dist/cdn/chunks/{src-B4UhYbI8.js.map → src-B8W42vT-.js.map} +1 -1
  104. package/dist/cdn/chunks/{src-B3HKHglu.js → src-C417zeUg.js} +20 -20
  105. package/dist/cdn/chunks/{src-B3HKHglu.js.map → src-C417zeUg.js.map} +1 -1
  106. package/dist/cdn/chunks/{src-D5mfLR4V.js → src-CZjSXPYq.js} +8 -3
  107. package/dist/cdn/chunks/src-CZjSXPYq.js.map +1 -0
  108. package/dist/cdn/chunks/{src-CumZZNXZ.js → src-Dpj0x27M.js} +2 -2
  109. package/dist/cdn/chunks/{src-CumZZNXZ.js.map → src-Dpj0x27M.js.map} +1 -1
  110. package/dist/cdn/chunks/{styles--m9OCb_Z.js → styles-DANwMzW2.js} +743 -724
  111. package/dist/cdn/chunks/styles-DANwMzW2.js.map +1 -0
  112. package/dist/cdn/chunks/{useCloudI18n-sx1pqEbY.js → useCloudI18n-CjVzv11v.js} +2 -2
  113. package/dist/cdn/chunks/{useCloudI18n-sx1pqEbY.js.map → useCloudI18n-CjVzv11v.js.map} +1 -1
  114. package/dist/cdn/chunks/{useEditorCore-ZqF7P99K.js → useEditorCore-DfW-thCr.js} +472 -401
  115. package/dist/cdn/chunks/useEditorCore-DfW-thCr.js.map +1 -0
  116. package/dist/cdn/chunks/{useI18n-vD57BfVR.js → useI18n-DniEFeIl.js} +2 -2
  117. package/dist/cdn/chunks/{useI18n-vD57BfVR.js.map → useI18n-DniEFeIl.js.map} +1 -1
  118. package/dist/cdn/chunks/{useMergeTag-HatzNGgc.js → useMergeTag-Bk9_f5cc.js} +6 -6
  119. package/dist/cdn/chunks/{useMergeTag-HatzNGgc.js.map → useMergeTag-Bk9_f5cc.js.map} +1 -1
  120. package/dist/cdn/chunks/{usePopoverPosition-BdQ3Sv4B.js → usePopoverPosition-C4xFJCJ2.js} +2 -2
  121. package/dist/cdn/chunks/{usePopoverPosition-BdQ3Sv4B.js.map → usePopoverPosition-C4xFJCJ2.js.map} +1 -1
  122. package/dist/cdn/editor.css +1 -1
  123. package/dist/cdn/editor.js +21 -19
  124. package/dist/cdn/editor.js.map +1 -1
  125. package/dist/{cloud-R8ci6yR1.js → cloud-BZn3jqoL.js} +1 -1
  126. package/dist/{cdn/chunks/de-CUeaFJph.js → de-CieSMCUp.js} +5 -2
  127. package/dist/{dist-Ba5Q-UX1.js → dist-CQ0fVBQ3.js} +7 -2
  128. package/dist/{cdn/chunks/en-zCYIPAL5.js → en-D0t_2Fq_.js} +5 -2
  129. package/dist/{es-BSiH7YkP.js → es-DwDoNuLM.js} +5 -0
  130. package/dist/{extensions-CGxj6-2o.js → extensions-BjvyU9Ea.js} +3 -3
  131. package/dist/{cdn/chunks/fr-DTVJ3det.js → fr-CSEEzv1_.js} +5 -2
  132. package/dist/index.d.ts +26 -0
  133. package/dist/keys-BFPiNAIn.js +10 -0
  134. package/dist/{cdn/chunks/nl-BqSquFS3.js → nl-xyk1T2mA.js} +5 -2
  135. package/dist/{cdn/chunks/pt-BR-CMljK37h.js → pt-BR-yr6uOJgn.js} +5 -2
  136. package/dist/style.css +1 -1
  137. package/dist/{styles-C9AMvkJk.js → styles-C9GM-bBC.js} +885 -866
  138. package/dist/templatical-editor.js +93 -91
  139. package/dist/{useCloudI18n-BC_QV2Z7.js → useCloudI18n-B2lItQ6O.js} +1 -1
  140. package/dist/{useEditorCore-Dojb-P2f.js → useEditorCore-Ck_hBiGA.js} +908 -837
  141. package/dist/{useI18n-DzOcl2wl.js → useI18n-C1KcdX_K.js} +1 -1
  142. package/dist/{useMergeTag-BFxXCv3p.js → useMergeTag-DHCwRMfH.js} +3 -3
  143. package/dist/{usePopoverPosition-Dtr1Mp1x.js → usePopoverPosition-ClnEh_Cp.js} +1 -1
  144. package/package.json +7 -7
  145. package/dist/cdn/chunks/BlockPreviewCanvas-C-ut8GkJ.js.map +0 -1
  146. package/dist/cdn/chunks/CloudEditor-D87qsqbZ.js.map +0 -1
  147. package/dist/cdn/chunks/TestEmailModal-Ce8-vzGh.js.map +0 -1
  148. package/dist/cdn/chunks/keys-CswSK7eb.js +0 -12
  149. package/dist/cdn/chunks/keys-CswSK7eb.js.map +0 -1
  150. package/dist/cdn/chunks/src-D5mfLR4V.js.map +0 -1
  151. package/dist/cdn/chunks/styles--m9OCb_Z.js.map +0 -1
  152. package/dist/cdn/chunks/useEditorCore-ZqF7P99K.js.map +0 -1
  153. package/dist/keys-uWpGv4Pq.js +0 -10
@@ -1,28 +1,28 @@
1
1
  import { $ as e, A as t, B as n, D as r, Dt as i, E as a, Et as o, H as s, I as c, J as l, K as u, N as d, O as f, Ot as p, R as m, T as h, W as g, Y as _, Z as v, _ as y, c as b, d as x, et as S, g as C, h as w, j as T, k as E, l as D, m as O, nt as k, q as A, r as j, rt as ee, s as M, tt as te, u as N, v as ne, w as re, x as P, y as ie, z as ae } from "./vue.runtime.esm-bundler-Xpz-L9Fn.js";
2
2
  import { c as F, o as oe, s as se } from "./runtime-dom.esm-bundler-CBbDt7sw.js";
3
3
  import { t as ce } from "./upload-hE8ItfyG.js";
4
- import { A as le, B as ue, C as de, D as fe, E as pe, F as me, I as he, L as ge, M as _e, N as ve, O as ye, P as be, R as xe, S as Se, T as Ce, _ as we, a as Te, b as Ee, c as De, d as Oe, f as ke, g as Ae, h as je, i as Me, j as Ne, l as Pe, m as Fe, n as Ie, o as Le, p as Re, r as ze, t as Be, u as Ve, v as He, w as Ue, x as We, y as Ge, z as Ke } from "./dist-Ba5Q-UX1.js";
5
- import { f as qe, g as Je, h as Ye, m as Xe } from "./dist-DT1XnEnj.js";
6
- import { a as Ze, c as Qe, d as $e, i as et, l as tt, o as nt, r as rt, t as it, u as at } from "./usePopoverPosition-Dtr1Mp1x.js";
7
- import { A as ot, B as st, C as ct, D as lt, E as ut, H as dt, L as ft, M as pt, N as mt, O as ht, P as gt, R as _t, S as vt, T as yt, V as bt, _ as xt, a as St, b as Ct, d 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, s as It, v as Lt, w as Rt, x as zt, y as Bt, z as Vt } from "./keys-uWpGv4Pq.js";
8
- import { t as Ht } from "./useI18n-DzOcl2wl.js";
4
+ import { A as le, B as ue, C as de, D as fe, E as pe, F as me, I as he, L as ge, M as _e, N as ve, O as ye, P as be, R as xe, S as Se, T as Ce, V as we, _ as Te, a as Ee, b as De, c as Oe, d as ke, f as Ae, g as je, h as Me, i as Ne, j as Pe, l as Fe, m as Ie, n as Le, o as Re, p as ze, r as Be, t as Ve, u as He, v as Ue, w as We, x as Ge, y as Ke, z as qe } from "./dist-CQ0fVBQ3.js";
5
+ import { f as Je, g as Ye, h as Xe, m as Ze } from "./dist-DT1XnEnj.js";
6
+ import { a as Qe, c as $e, d as et, i as tt, l as nt, o as rt, r as it, t as at, u as ot } from "./usePopoverPosition-ClnEh_Cp.js";
7
+ import { A as st, B as ct, C as lt, D as ut, E as dt, F as ft, G as pt, H as mt, I as ht, L as gt, M as _t, N as vt, O as yt, P as bt, S as xt, T as St, U as Ct, V as wt, W as Tt, _ as Et, a as Dt, b as Ot, c as kt, f as At, g as jt, h as Mt, j as Nt, k as Pt, m as Ft, n as It, o as Lt, p as Rt, r as zt, s as Bt, u as Vt, v as Ht, w as Ut, x as Wt, y as Gt } from "./keys-BFPiNAIn.js";
8
+ import { t as Kt } from "./useI18n-C1KcdX_K.js";
9
9
  import { t as I } from "./createLucideIcon-AEltGIse.js";
10
- import { t as Ut } from "./loader-circle-B6euendB.js";
11
- import { t as Wt } from "./message-circle-BMldLVcA.js";
12
- import { t as Gt } from "./trash-2-DDyvqj0E.js";
13
- import { t as Kt } from "./triangle-alert-B3PydLzl.js";
14
- import { t as qt } from "./LoadingTrack-XK_eeUdq.js";
15
- import { t as Jt } from "./_plugin-vue_export-helper-B3ysoDQm.js";
16
- import "./useCloudI18n-BC_QV2Z7.js";
17
- import { t as Yt } from "./useMergeTag-BFxXCv3p.js";
18
- import { t as Xt } from "./useAliveFlag-AfoTE_AY.js";
10
+ import { t as qt } from "./loader-circle-B6euendB.js";
11
+ import { t as Jt } from "./message-circle-BMldLVcA.js";
12
+ import { t as Yt } from "./trash-2-DDyvqj0E.js";
13
+ import { t as Xt } from "./triangle-alert-B3PydLzl.js";
14
+ import { t as Zt } from "./LoadingTrack-XK_eeUdq.js";
15
+ import { t as Qt } from "./_plugin-vue_export-helper-B3ysoDQm.js";
16
+ import "./useCloudI18n-B2lItQ6O.js";
17
+ import { t as $t } from "./useMergeTag-DHCwRMfH.js";
18
+ import { t as en } from "./useAliveFlag-AfoTE_AY.js";
19
19
  //#region ../core/dist/index.js
20
- function Zt(e) {
20
+ function tn(e) {
21
21
  return e === "1" ? 1 : e === "3" ? 3 : 2;
22
22
  }
23
- function Qt(e) {
23
+ function nn(e) {
24
24
  let t = A({
25
- content: e.content ?? Re(e.defaultFontFamily, e.templateDefaults),
25
+ content: e.content ?? ze(e.defaultFontFamily, e.templateDefaults),
26
26
  selectedBlockId: null,
27
27
  viewport: "desktop",
28
28
  darkMode: !1,
@@ -111,7 +111,7 @@ function Qt(e) {
111
111
  if (c(n)) return;
112
112
  let o = a(t.content.blocks, n);
113
113
  if (o && o.type === "section") {
114
- if (r < 0 || r >= Zt(o.columns)) return;
114
+ if (r < 0 || r >= tn(o.columns)) return;
115
115
  o.children[r] = o.children[r] || [];
116
116
  let t = o.children[r];
117
117
  i !== void 0 && i < t.length ? t.splice(i, 0, e) : t.push(e);
@@ -144,7 +144,7 @@ function Qt(e) {
144
144
  let u;
145
145
  if (r) {
146
146
  let e = a(t.content.blocks, r);
147
- if (!e || e.type !== "section" || i < 0 || i >= Zt(e.columns)) return;
147
+ if (!e || e.type !== "section" || i < 0 || i >= tn(e.columns)) return;
148
148
  e.children[i] = e.children[i] || [], u = e.children[i];
149
149
  } else u = t.content.blocks;
150
150
  let [d] = o.blocks.splice(l, 1);
@@ -173,11 +173,11 @@ function Qt(e) {
173
173
  findBlockLocation: u
174
174
  };
175
175
  }
176
- var $t = 50, en = 300, tn = 1500;
177
- function nn(e) {
178
- let { content: t, setContent: r, isRemoteOperation: i, maxSize: a = $t } = e, o = _([]), s = _([]), c = _(!1), l = null, u = null, d = n(() => o.value.length > 0), f = n(() => s.value.length > 0);
176
+ var rn = 50, an = 300, on = 1500;
177
+ function sn(e) {
178
+ let { content: t, setContent: r, isRemoteOperation: i, maxSize: a = rn } = e, o = _([]), s = _([]), c = _(!1), l = null, u = null, d = n(() => o.value.length > 0), f = n(() => s.value.length > 0);
179
179
  function p() {
180
- return xe(t.value);
180
+ return qe(t.value);
181
181
  }
182
182
  function m(e) {
183
183
  o.value.push(e), o.value.length > a && o.value.splice(0, o.value.length - a);
@@ -193,21 +193,21 @@ function nn(e) {
193
193
  if (u && u.blockId === e) {
194
194
  clearTimeout(u.timeoutId), u.timeoutId = setTimeout(() => {
195
195
  u = null;
196
- }, en);
196
+ }, an);
197
197
  return;
198
198
  }
199
199
  h(), m(p()), s.value = [], u = {
200
200
  blockId: e,
201
201
  timeoutId: setTimeout(() => {
202
202
  u = null;
203
- }, en)
203
+ }, an)
204
204
  };
205
205
  }
206
206
  }
207
207
  function y() {
208
208
  c.value = !0, l && clearTimeout(l), l = setTimeout(() => {
209
209
  c.value = !1, l = null;
210
- }, tn);
210
+ }, on);
211
211
  }
212
212
  function b() {
213
213
  if (o.value.length === 0) return;
@@ -239,7 +239,7 @@ function nn(e) {
239
239
  destroy: C
240
240
  };
241
241
  }
242
- function rn(e) {
242
+ function cn(e) {
243
243
  e.type === "table" ? e.rows = e.rows.map((e) => ({
244
244
  ...e,
245
245
  id: Ce(),
@@ -255,17 +255,17 @@ function rn(e) {
255
255
  id: Ce()
256
256
  })));
257
257
  }
258
- function an(e) {
258
+ function ln(e) {
259
259
  let { addBlock: t, removeBlock: n, updateBlock: r, selectBlock: i, findBlockLocation: a } = e;
260
260
  function o(n, r, a) {
261
- let o = Pe(n, e.blockDefaults);
261
+ let o = Fe(n, e.blockDefaults);
262
262
  return t(o, r, a), i(o.id), o;
263
263
  }
264
264
  function s(e, n, r) {
265
265
  let o = JSON.parse(JSON.stringify(e));
266
- if (o.id = Ce(), rn(o), o.type === "section" && (o.children = o.children.map((e) => e.map((e) => {
266
+ if (o.id = Ce(), cn(o), o.type === "section" && (o.children = o.children.map((e) => e.map((e) => {
267
267
  let t = JSON.parse(JSON.stringify(e));
268
- return t.id = Ce(), rn(t), t;
268
+ return t.id = Ce(), cn(t), t;
269
269
  }))), n !== void 0 || r !== void 0) t(o, n, r);
270
270
  else {
271
271
  let i = a?.(e.id) ?? null;
@@ -286,7 +286,7 @@ function an(e) {
286
286
  updateBlockProperty: l
287
287
  };
288
288
  }
289
- function on(e) {
289
+ function un(e) {
290
290
  let { content: t, isDirty: n, onChange: r, debounce: i = 1e3, enabled: a = !0 } = e, o = null, s = !1;
291
291
  function c() {
292
292
  return typeof a == "function" ? a() : a;
@@ -322,7 +322,7 @@ function on(e) {
322
322
  destroy: h
323
323
  };
324
324
  }
325
- function sn(e) {
325
+ function dn(e) {
326
326
  let t = A(/* @__PURE__ */ new Set()), r = n(() => t.size > 0);
327
327
  function i(e) {
328
328
  return t.has(e);
@@ -340,7 +340,7 @@ function sn(e) {
340
340
  hasHiddenBlocks: r
341
341
  };
342
342
  }
343
- function cn(e) {
343
+ function fn(e) {
344
344
  let t = _(!1), r = _(!1), i = n(() => !!e.definition.value?.dataSource), a = n(() => i.value && !e.block.value.dataSourceFetched);
345
345
  async function o() {
346
346
  let n = e.definition.value;
@@ -370,7 +370,7 @@ function cn(e) {
370
370
  needsFetch: a
371
371
  };
372
372
  }
373
- function ln(e, t) {
373
+ function pn(e, t) {
374
374
  let n = e.addBlock, r = e.removeBlock, i = e.moveBlock, a = e.updateBlock, o = e.updateSettings;
375
375
  e.addBlock = (r, i, a, o) => {
376
376
  i && e.isBlockLocked(i) || (t.record(), n(r, i, a, o));
@@ -384,7 +384,7 @@ function ln(e, t) {
384
384
  t.record(), o(e);
385
385
  };
386
386
  }
387
- function un(e) {
387
+ function mn(e) {
388
388
  let { provider: t } = e, n = _([]), r = _(!1), i = M(() => {
389
389
  let e = /* @__PURE__ */ new Set();
390
390
  for (let t of n.value) {
@@ -400,7 +400,7 @@ function un(e) {
400
400
  return s.value && e.canDelete !== !1;
401
401
  }
402
402
  function u(e, t) {
403
- throw new Le(`[Templatical] Saved blocks: ${e} is ${t}. Check the capability before calling — the editor's own UI hides the action.`);
403
+ throw new Re(`[Templatical] Saved blocks: ${e} is ${t}. Check the capability before calling — the editor's own UI hides the action.`);
404
404
  }
405
405
  async function d(i) {
406
406
  r.value = !0;
@@ -467,9 +467,9 @@ function un(e) {
467
467
  remove: m
468
468
  };
469
469
  }
470
- var dn = "templatical:saved-blocks";
471
- function fn(e = {}) {
472
- let t = e.key ?? dn;
470
+ var hn = "templatical:saved-blocks";
471
+ function gn(e = {}) {
472
+ let t = e.key ?? hn;
473
473
  function n() {
474
474
  if (typeof localStorage > "u") throw Error("[Templatical] createLocalStorageSavedBlocksProvider requires a browser environment with localStorage. Supply your own SavedBlocksProvider for server-side or non-browser use.");
475
475
  return localStorage;
@@ -522,26 +522,86 @@ function fn(e = {}) {
522
522
  }
523
523
  //#endregion
524
524
  //#region src/utils/activeEditorTracker.ts
525
- var pn = /* @__PURE__ */ new Set(), mn = 0, hn = 0;
526
- function gn() {
527
- let e = ++hn;
528
- return pn.add(e), mn === 0 && (mn = e), {
525
+ var _n = /* @__PURE__ */ new Set(), vn = 0, yn = 0;
526
+ function bn() {
527
+ let e = ++yn;
528
+ return _n.add(e), vn === 0 && (vn = e), {
529
529
  id: e,
530
- isActive: () => pn.size <= 1 || mn === e,
530
+ isActive: () => _n.size <= 1 || vn === e,
531
531
  claim: () => {
532
- mn = e;
532
+ vn = e;
533
533
  },
534
534
  dispose: () => {
535
- if (pn.delete(e), mn === e) {
536
- let e = Array.from(pn);
537
- mn = e[e.length - 1] ?? 0;
535
+ if (_n.delete(e), vn === e) {
536
+ let e = Array.from(_n);
537
+ vn = e[e.length - 1] ?? 0;
538
+ }
539
+ }
540
+ };
541
+ }
542
+ //#endregion
543
+ //#region src/composables/usePreviewResolution.ts
544
+ var xn = 500;
545
+ function Sn(e) {
546
+ let t = typeof e.resolvePreview == "function", n = _(null), r = _(!1), i = _(!1), a = 0, o = null;
547
+ function s() {
548
+ o !== null && (clearTimeout(o), o = null);
549
+ }
550
+ async function l() {
551
+ let t = e.resolvePreview;
552
+ if (!t) return;
553
+ let o = ++a;
554
+ r.value = !0;
555
+ let s = {
556
+ content: qe(e.getContent()),
557
+ ...e.getRecipient?.() === void 0 ? {} : { recipient: e.getRecipient() }
558
+ };
559
+ try {
560
+ let e = await t(s);
561
+ if (o !== a) return;
562
+ if (!me(e)) {
563
+ i.value = !0;
564
+ return;
538
565
  }
566
+ n.value = e, i.value = !1;
567
+ } catch {
568
+ if (o !== a) return;
569
+ i.value = !0;
570
+ } finally {
571
+ o === a && (r.value = !1);
539
572
  }
573
+ }
574
+ function d() {
575
+ if (t) {
576
+ if (s(), n.value === null) {
577
+ l();
578
+ return;
579
+ }
580
+ o = setTimeout(() => {
581
+ o = null, l();
582
+ }, xn);
583
+ }
584
+ }
585
+ return c(() => [e.isActive(), e.getRecipient?.()], ([e]) => {
586
+ if (!e) {
587
+ s(), a++, r.value = !1, n.value = null, i.value = !1;
588
+ return;
589
+ }
590
+ d();
591
+ }, { immediate: !0 }), u(() => {
592
+ s(), a++;
593
+ }), {
594
+ isConfigured: t,
595
+ content: M(() => n.value ?? e.getContent()),
596
+ isResolving: r,
597
+ isInitialResolve: M(() => r.value && n.value === null),
598
+ hasFailed: i,
599
+ supersedesSamples: M(() => t)
540
600
  };
541
601
  }
542
602
  //#endregion
543
603
  //#region src/composables/useImageUrlResolver.ts
544
- function _n(e) {
604
+ function Cn(e) {
545
605
  let t = A(/* @__PURE__ */ new Map()), n = /* @__PURE__ */ new Set();
546
606
  function r(e) {
547
607
  return t.get(e);
@@ -574,8 +634,8 @@ function _n(e) {
574
634
  lookup: a
575
635
  };
576
636
  }
577
- function vn(e) {
578
- let t = P(Ct, null), n = M(e);
637
+ function wn(e) {
638
+ let t = P(Wt, null), n = M(e);
579
639
  if (!t) return n;
580
640
  let r;
581
641
  function i() {
@@ -604,7 +664,7 @@ function vn(e) {
604
664
  }
605
665
  //#endregion
606
666
  //#region src/composables/useMergeTagPicker.ts
607
- function yn() {
667
+ function Tn() {
608
668
  let e = _(!1), t = _([]), n = null;
609
669
  function r(r) {
610
670
  if (n) {
@@ -634,7 +694,7 @@ function yn() {
634
694
  }
635
695
  //#endregion
636
696
  //#region src/composables/useLogicTagPicker.ts
637
- function bn() {
697
+ function En() {
638
698
  let e = _(!1), t = _([]), n = _([]), r = null;
639
699
  function i(i, a) {
640
700
  if (r) {
@@ -665,17 +725,17 @@ function bn() {
665
725
  }
666
726
  //#endregion
667
727
  //#region src/composables/useTemplateLint.ts
668
- function xn(e) {
728
+ function Dn(e) {
669
729
  return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 : !1;
670
730
  }
671
- function Sn(e) {
672
- let t = _([]), n = _(!1), r = _(!1), i = v(null), a = xn(e.options), o = null, s = !1;
731
+ function On(e) {
732
+ let t = _([]), n = _(!1), r = _(!1), i = v(null), a = Dn(e.options), o = null, s = !1;
673
733
  a || l();
674
734
  async function l() {
675
735
  try {
676
736
  let t = await import("@templatical/quality");
677
737
  if (s) return;
678
- i.value = { lintTemplate: t.lintTemplate }, n.value = !0, u(), o = Je(e.content, u, {
738
+ i.value = { lintTemplate: t.lintTemplate }, n.value = !0, u(), o = Ye(e.content, u, {
679
739
  debounce: e.debounce ?? 500,
680
740
  deep: !0
681
741
  });
@@ -710,17 +770,17 @@ function Sn(e) {
710
770
  }
711
771
  //#endregion
712
772
  //#region src/utils/blockTypeLabels.ts
713
- function Cn(e, t) {
773
+ function kn(e, t) {
714
774
  return t.blocks[e] ?? e;
715
775
  }
716
- function wn(e, t, n = []) {
717
- if (e.type !== "custom") return Cn(e.type, t);
776
+ function An(e, t, n = []) {
777
+ if (e.type !== "custom") return kn(e.type, t);
718
778
  let { customType: r } = e;
719
779
  return n.find((e) => e.type === r)?.name ?? r;
720
780
  }
721
781
  //#endregion
722
782
  //#region src/composables/useKeyboardReorder.ts
723
- function Tn(e, t, n = []) {
783
+ function jn(e, t, n = []) {
724
784
  let r = _(null), i = _(""), a = null;
725
785
  function o(t) {
726
786
  let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
@@ -747,7 +807,7 @@ function Tn(e, t, n = []) {
747
807
  let i = o(r);
748
808
  if (!i) return "";
749
809
  let a = (i.sectionId ? c(i.sectionId, i.columnIndex ?? 0) : e.content.value.blocks)?.[i.index];
750
- return a ? wn(a, t.t, n) : "";
810
+ return a ? An(a, t.t, n) : "";
751
811
  }
752
812
  function c(t, n) {
753
813
  return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
@@ -816,13 +876,13 @@ function Tn(e, t, n = []) {
816
876
  }
817
877
  //#endregion
818
878
  //#region src/composables/useUiTheme.ts
819
- function En(e) {
820
- let t = $e("(prefers-color-scheme: dark)");
879
+ function Mn(e) {
880
+ let t = et("(prefers-color-scheme: dark)");
821
881
  return { resolvedTheme: M(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
822
882
  }
823
883
  //#endregion
824
884
  //#region src/composables/useThemeStyles.ts
825
- var Dn = {
885
+ var Nn = {
826
886
  bg: "--tpl-bg",
827
887
  bgElevated: "--tpl-bg-elevated",
828
888
  bgHover: "--tpl-bg-hover",
@@ -846,10 +906,10 @@ var Dn = {
846
906
  dangerLight: "--tpl-danger-light",
847
907
  canvasBg: "--tpl-canvas-bg"
848
908
  };
849
- function On({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
909
+ function Pn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
850
910
  return { themeStyles: M(() => {
851
911
  let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
852
- if (a) for (let [e, t] of Object.entries(Dn)) {
912
+ if (a) for (let [e, t] of Object.entries(Nn)) {
853
913
  let n = a[e];
854
914
  n && (r[t] = n);
855
915
  }
@@ -858,27 +918,27 @@ function On({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
858
918
  }
859
919
  //#endregion
860
920
  //#region src/utils/logger.ts
861
- var kn = "[Templatical]";
862
- function An() {
921
+ var Fn = "[Templatical]";
922
+ function In() {
863
923
  return typeof process < "u" && process.env.NODE_ENV === "production";
864
924
  }
865
- var jn = {
925
+ var Ln = {
866
926
  warn(...e) {
867
- console.warn(kn, ...e);
927
+ console.warn(Fn, ...e);
868
928
  },
869
929
  error(...e) {
870
- console.error(kn, ...e);
930
+ console.error(Fn, ...e);
871
931
  },
872
932
  debug(...e) {
873
- An() || console.debug(kn, ...e);
933
+ In() || console.debug(Fn, ...e);
874
934
  },
875
935
  info(...e) {
876
- An() || console.info(kn, ...e);
936
+ In() || console.info(Fn, ...e);
877
937
  }
878
938
  };
879
939
  //#endregion
880
940
  //#region src/composables/useBlockRegistry.ts
881
- function Mn() {
941
+ function Rn() {
882
942
  let e = v(/* @__PURE__ */ new Map());
883
943
  function t(t, n) {
884
944
  e.value.set(t, n), te(e);
@@ -886,7 +946,7 @@ function Mn() {
886
946
  function n(t, n) {
887
947
  let r = `custom:${t.type}`, i = {
888
948
  component: n,
889
- createBlock: () => ke(t),
949
+ createBlock: () => Ae(t),
890
950
  definition: t
891
951
  };
892
952
  e.value.set(r, i), te(e);
@@ -918,7 +978,7 @@ function Mn() {
918
978
  strictFilters: !1
919
979
  }).parseAndRender(t.template, e.fieldValues);
920
980
  } catch (t) {
921
- return jn.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
981
+ return Ln.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
922
982
  }
923
983
  }
924
984
  function c(t) {
@@ -936,9 +996,9 @@ function Mn() {
936
996
  }
937
997
  //#endregion
938
998
  //#region src/composables/useCustomBlockStylesheets.ts
939
- function Nn(e, t) {
999
+ function zn(e, t) {
940
1000
  return M(() => {
941
- let n = Pn(e.value.blocks);
1001
+ let n = Bn(e.value.blocks);
942
1002
  if (n.size === 0) return [];
943
1003
  let r = /* @__PURE__ */ new Set(), i = [];
944
1004
  for (let e of n) {
@@ -950,11 +1010,11 @@ function Nn(e, t) {
950
1010
  return i;
951
1011
  });
952
1012
  }
953
- function Pn(e) {
1013
+ function Bn(e) {
954
1014
  let t = /* @__PURE__ */ new Set();
955
- return Fn(e, t), t;
1015
+ return Vn(e, t), t;
956
1016
  }
957
- function Fn(e, t) {
1017
+ function Vn(e, t) {
958
1018
  for (let n of e) {
959
1019
  if (_e(n)) {
960
1020
  t.add(n.customType);
@@ -963,16 +1023,16 @@ function Fn(e, t) {
963
1023
  if (n.type === "section") {
964
1024
  let e = n.children;
965
1025
  if (!e) continue;
966
- for (let n of e) Fn(n, t);
1026
+ for (let n of e) Vn(n, t);
967
1027
  }
968
1028
  }
969
1029
  }
970
1030
  //#endregion
971
1031
  //#region src/utils/registerBuiltInBlocks.ts
972
- var In = [
1032
+ var Hn = [
973
1033
  {
974
1034
  type: "section",
975
- createBlock: Ge
1035
+ createBlock: Ke
976
1036
  },
977
1037
  {
978
1038
  type: "title",
@@ -980,31 +1040,31 @@ var In = [
980
1040
  },
981
1041
  {
982
1042
  type: "paragraph",
983
- createBlock: He
1043
+ createBlock: Ue
984
1044
  },
985
1045
  {
986
1046
  type: "image",
987
- createBlock: Ae
1047
+ createBlock: je
988
1048
  },
989
1049
  {
990
1050
  type: "button",
991
- createBlock: Ve
1051
+ createBlock: He
992
1052
  },
993
1053
  {
994
1054
  type: "divider",
995
- createBlock: Fe
1055
+ createBlock: Ie
996
1056
  },
997
1057
  {
998
1058
  type: "video",
999
- createBlock: Ue
1059
+ createBlock: We
1000
1060
  },
1001
1061
  {
1002
1062
  type: "social",
1003
- createBlock: Ee
1063
+ createBlock: De
1004
1064
  },
1005
1065
  {
1006
1066
  type: "menu",
1007
- createBlock: we
1067
+ createBlock: Te
1008
1068
  },
1009
1069
  {
1010
1070
  type: "table",
@@ -1012,19 +1072,19 @@ var In = [
1012
1072
  },
1013
1073
  {
1014
1074
  type: "spacer",
1015
- createBlock: We
1075
+ createBlock: Ge
1016
1076
  },
1017
1077
  {
1018
1078
  type: "html",
1019
- createBlock: je
1079
+ createBlock: Me
1020
1080
  },
1021
1081
  {
1022
1082
  type: "countdown",
1023
- createBlock: Oe
1083
+ createBlock: ke
1024
1084
  }
1025
1085
  ];
1026
- function Ln(e, t) {
1027
- for (let n of In) {
1086
+ function Un(e, t) {
1087
+ for (let n of Hn) {
1028
1088
  let r = t[n.type];
1029
1089
  r && e.registerBuiltIn(n.type, {
1030
1090
  component: r,
@@ -1034,34 +1094,34 @@ function Ln(e, t) {
1034
1094
  }
1035
1095
  //#endregion
1036
1096
  //#region src/utils/resolveHtmlBlockPreview.ts
1037
- function Rn(e) {
1097
+ function Wn(e) {
1038
1098
  return typeof e == "boolean" ? e : e?.enabled ?? !1;
1039
1099
  }
1040
1100
  //#endregion
1041
1101
  //#region src/utils/collectOffPaletteDefaults.ts
1042
- function zn(e) {
1102
+ function Gn(e) {
1043
1103
  return typeof e == "object" && !!e && !Array.isArray(e);
1044
1104
  }
1045
- function Bn(e, t, n) {
1046
- let r = new Set(e.map((e) => rt(e))), i = [], a = (e, t) => {
1047
- for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(rt(o)) && i.push(`${t}.${n}: ${o}`) : zn(o) && a(o, `${t}.${n}`);
1105
+ function Kn(e, t, n) {
1106
+ let r = new Set(e.map((e) => it(e))), i = [], a = (e, t) => {
1107
+ for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(it(o)) && i.push(`${t}.${n}: ${o}`) : Gn(o) && a(o, `${t}.${n}`);
1048
1108
  }, o = t;
1049
- for (let [e, t] of Object.entries(Be)) {
1109
+ for (let [e, t] of Object.entries(Ve)) {
1050
1110
  let n = o?.[e];
1051
1111
  a({
1052
1112
  ...t,
1053
- ...zn(n) ? n : {}
1113
+ ...Gn(n) ? n : {}
1054
1114
  }, e);
1055
1115
  }
1056
1116
  return a({
1057
- ...Ie,
1117
+ ...Le,
1058
1118
  ...n ?? {}
1059
1119
  }, "template"), i;
1060
1120
  }
1061
1121
  //#endregion
1062
1122
  //#region src/utils/resolveFieldColors.ts
1063
- function Vn(e, t) {
1064
- let n = nt({ presets: e.presets }, Ze), r = n.presets.length === 0, i = e.allowCustom ?? t.allowCustom;
1123
+ function qn(e, t) {
1124
+ let n = rt({ presets: e.presets }, Qe), r = n.presets.length === 0, i = e.allowCustom ?? t.allowCustom;
1065
1125
  return {
1066
1126
  presets: r ? t.presets : n.presets,
1067
1127
  allowCustom: t.allowCustom !== !1 && i,
@@ -1073,9 +1133,9 @@ function Vn(e, t) {
1073
1133
  }
1074
1134
  //#endregion
1075
1135
  //#region src/utils/collectColorFieldIssues.ts
1076
- function Hn(e, t) {
1136
+ function Jn(e, t) {
1077
1137
  let n = [], r = (r, i) => {
1078
- let a = Vn(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
1138
+ let a = qn(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
1079
1139
  if (a.invalidPresets.length > 0 && n.push({
1080
1140
  id: s("invalid-presets"),
1081
1141
  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." : "")
@@ -1086,8 +1146,8 @@ function Hn(e, t) {
1086
1146
  id: s("allow-custom-ignored"),
1087
1147
  message: `${o}: allowCustom: true is ignored because colors.allowCustom is false — a field can narrow the editor-wide palette, never unlock it.`
1088
1148
  }), !a.allowCustom && a.presets.length > 0) {
1089
- let e = r.default ?? "", t = new Set(a.presets.map((e) => rt(e)));
1090
- e !== "" && !t.has(rt(e)) && n.push({
1149
+ let e = r.default ?? "", t = new Set(a.presets.map((e) => it(e)));
1150
+ e !== "" && !t.has(it(e)) && n.push({
1091
1151
  id: s("off-palette-default"),
1092
1152
  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.`
1093
1153
  });
@@ -1099,7 +1159,7 @@ function Hn(e, t) {
1099
1159
  }
1100
1160
  //#endregion
1101
1161
  //#region src/utils/keyboardShortcuts.ts
1102
- function Un(e) {
1162
+ function Yn(e) {
1103
1163
  for (let t of e.composedPath()) {
1104
1164
  if (!(t instanceof HTMLElement)) continue;
1105
1165
  if (t.isContentEditable) return !0;
@@ -1108,18 +1168,18 @@ function Un(e) {
1108
1168
  }
1109
1169
  return !1;
1110
1170
  }
1111
- function Wn(e, t) {
1171
+ function Xn(e, t) {
1112
1172
  let n = e.metaKey || e.ctrlKey;
1113
1173
  if (n && e.key.toLowerCase() === "s") {
1114
1174
  e.preventDefault(), t.onSave?.();
1115
1175
  return;
1116
1176
  }
1117
1177
  if (n && e.key.toLowerCase() === "z") {
1118
- if (Un(e)) return;
1178
+ if (Yn(e)) return;
1119
1179
  e.preventDefault(), e.shiftKey ? t.history.redo() : (t.onBeforeUndo?.(), t.history.undo());
1120
1180
  return;
1121
1181
  }
1122
- if (t.isPicking?.() && !Un(e)) {
1182
+ if (t.isPicking?.() && !Yn(e)) {
1123
1183
  if (e.key === "Escape") {
1124
1184
  e.preventDefault(), t.onCancelPick?.();
1125
1185
  return;
@@ -1137,11 +1197,11 @@ function Wn(e, t) {
1137
1197
  t.selectBlock(null);
1138
1198
  return;
1139
1199
  }
1140
- (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Un(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
1200
+ (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Yn(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
1141
1201
  }
1142
1202
  //#endregion
1143
1203
  //#region src/utils/mergeTagLabelSegments.ts
1144
- function Gn(e, t, n, r = !1) {
1204
+ function Zn(e, t, n, r = !1) {
1145
1205
  if (!e) return [];
1146
1206
  let i = RegExp(`(${n.value.source}|${n.logic.source})`, "g"), a = [], o = 0, s;
1147
1207
  for (; (s = i.exec(e)) !== null;) {
@@ -1175,20 +1235,20 @@ function Gn(e, t, n, r = !1) {
1175
1235
  }
1176
1236
  //#endregion
1177
1237
  //#region src/components/MergeTagPreviewText.vue
1178
- var Kn = y({
1238
+ var Qn = y({
1179
1239
  name: "MergeTagPreviewText",
1180
1240
  props: { text: {
1181
1241
  type: String,
1182
1242
  required: !0
1183
1243
  } },
1184
1244
  setup(e) {
1185
- let t = P(yt, []), n = P(At, Te.liquid), r = P(bt, null), i = M(() => Gn(e.text, t, n, r?.value ?? !1));
1245
+ let t = P(dt, []), n = P(st, Ee.liquid), r = P(Tt, null), i = M(() => Zn(e.text, t, n, r?.value ?? !1));
1186
1246
  return () => i.value.map((e, t) => e.type === "tag" ? ie("span", {
1187
1247
  key: t,
1188
1248
  class: "tpl-merge-tag-label"
1189
1249
  }, e.value) : e.value);
1190
1250
  }
1191
- }), qn = { class: "tpl:text-center" }, Jn = ["href"], Yn = /* @__PURE__ */ y({
1251
+ }), $n = { class: "tpl:text-center" }, er = ["href"], tr = /* @__PURE__ */ y({
1192
1252
  __name: "ButtonBlock",
1193
1253
  props: {
1194
1254
  block: {},
@@ -1209,17 +1269,17 @@ var Kn = y({
1209
1269
  };
1210
1270
  return t.block.fontFamily && (e.fontFamily = t.block.fontFamily), t.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof t.block.width == "number" && (e.width = `${t.block.width}px`, e.boxSizing = "border-box"), e;
1211
1271
  });
1212
- return (t, r) => (f(), x("div", qn, [b("a", {
1272
+ return (t, r) => (f(), x("div", $n, [b("a", {
1213
1273
  href: e.block.url || "#",
1214
1274
  style: i(n.value),
1215
1275
  class: "tpl:cursor-default",
1216
1276
  onClick: r[0] ||= F(() => {}, ["prevent"])
1217
- }, [w(Kn, { text: e.block.text }, null, 8, ["text"])], 12, Jn)]));
1277
+ }, [w(Qn, { text: e.block.text }, null, 8, ["text"])], 12, er)]));
1218
1278
  }
1219
- }), Xn = I("bookmark", [["path", {
1279
+ }), nr = I("bookmark", [["path", {
1220
1280
  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",
1221
1281
  key: "oz39mx"
1222
- }]]), Zn = I("box", [
1282
+ }]]), rr = I("box", [
1223
1283
  ["path", {
1224
1284
  d: "M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",
1225
1285
  key: "hh9hay"
@@ -1232,13 +1292,13 @@ var Kn = y({
1232
1292
  d: "M12 22V12",
1233
1293
  key: "d0xqtd"
1234
1294
  }]
1235
- ]), Qn = I("code", [["path", {
1295
+ ]), ir = I("code", [["path", {
1236
1296
  d: "m16 18 6-6-6-6",
1237
1297
  key: "eg8j8"
1238
1298
  }], ["path", {
1239
1299
  d: "m8 6-6 6 6 6",
1240
1300
  key: "ppft3o"
1241
- }]]), $n = I("copy", [["rect", {
1301
+ }]]), ar = I("copy", [["rect", {
1242
1302
  width: "14",
1243
1303
  height: "14",
1244
1304
  x: "8",
@@ -1249,7 +1309,7 @@ var Kn = y({
1249
1309
  }], ["path", {
1250
1310
  d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
1251
1311
  key: "zix9uf"
1252
- }]]), er = I("eye-off", [
1312
+ }]]), or = I("eye-off", [
1253
1313
  ["path", {
1254
1314
  d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",
1255
1315
  key: "ct8e1f"
@@ -1266,10 +1326,10 @@ var Kn = y({
1266
1326
  d: "m2 2 20 20",
1267
1327
  key: "1ooewy"
1268
1328
  }]
1269
- ]), tr = I("funnel", [["path", {
1329
+ ]), sr = I("funnel", [["path", {
1270
1330
  d: "M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",
1271
1331
  key: "sc7q7i"
1272
- }]]), nr = I("grip-vertical", [
1332
+ }]]), cr = I("grip-vertical", [
1273
1333
  ["circle", {
1274
1334
  cx: "9",
1275
1335
  cy: "12",
@@ -1306,7 +1366,7 @@ var Kn = y({
1306
1366
  r: "1",
1307
1367
  key: "f4zoj3"
1308
1368
  }]
1309
- ]), rr = I("image", [
1369
+ ]), lr = I("image", [
1310
1370
  ["rect", {
1311
1371
  width: "18",
1312
1372
  height: "18",
@@ -1326,13 +1386,13 @@ var Kn = y({
1326
1386
  d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",
1327
1387
  key: "1xmnt7"
1328
1388
  }]
1329
- ]), ir = I("navigation", [["polygon", {
1389
+ ]), ur = I("navigation", [["polygon", {
1330
1390
  points: "3 11 22 2 13 21 11 13 3 11",
1331
1391
  key: "1ltx0t"
1332
- }]]), ar = I("puzzle", [["path", {
1392
+ }]]), dr = I("puzzle", [["path", {
1333
1393
  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",
1334
1394
  key: "w46dr5"
1335
- }]]), or = I("share-2", [
1395
+ }]]), fr = I("share-2", [
1336
1396
  ["circle", {
1337
1397
  cx: "18",
1338
1398
  cy: "5",
@@ -1365,7 +1425,7 @@ var Kn = y({
1365
1425
  y2: "10.49",
1366
1426
  key: "1n3mei"
1367
1427
  }]
1368
- ]), sr = I("table", [
1428
+ ]), pr = I("table", [
1369
1429
  ["path", {
1370
1430
  d: "M12 3v18",
1371
1431
  key: "108xh3"
@@ -1386,7 +1446,7 @@ var Kn = y({
1386
1446
  d: "M3 15h18",
1387
1447
  key: "5xshup"
1388
1448
  }]
1389
- ]), cr = I("video", [["path", {
1449
+ ]), mr = I("video", [["path", {
1390
1450
  d: "m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",
1391
1451
  key: "ftymec"
1392
1452
  }], ["rect", {
@@ -1396,11 +1456,11 @@ var Kn = y({
1396
1456
  height: "12",
1397
1457
  rx: "2",
1398
1458
  key: "158x01"
1399
- }]]), lr = ["innerHTML"], ur = [
1459
+ }]]), hr = ["innerHTML"], gr = [
1400
1460
  "src",
1401
1461
  "width",
1402
1462
  "height"
1403
- ], dr = /* @__PURE__ */ y({
1463
+ ], _r = /* @__PURE__ */ y({
1404
1464
  __name: "CustomBlockIcon",
1405
1465
  props: {
1406
1466
  icon: {},
@@ -1416,14 +1476,14 @@ var Kn = y({
1416
1476
  height: `${n.value}px`
1417
1477
  }),
1418
1478
  innerHTML: e.icon
1419
- }, null, 12, lr)) : a.value ? (f(), x("img", {
1479
+ }, null, 12, hr)) : a.value ? (f(), x("img", {
1420
1480
  key: 1,
1421
1481
  src: e.icon,
1422
1482
  width: n.value,
1423
1483
  height: n.value,
1424
1484
  class: "tpl:inline-block",
1425
1485
  alt: ""
1426
- }, null, 8, ur)) : (f(), D(k(Zn), {
1486
+ }, null, 8, gr)) : (f(), D(k(rr), {
1427
1487
  key: 2,
1428
1488
  size: n.value,
1429
1489
  "stroke-width": 1.5
@@ -1432,16 +1492,16 @@ var Kn = y({
1432
1492
  });
1433
1493
  //#endregion
1434
1494
  //#region src/composables/useEditorRoot.ts
1435
- function fr() {
1495
+ function vr() {
1436
1496
  return P(Et, document) ?? document;
1437
1497
  }
1438
1498
  //#endregion
1439
1499
  //#region src/composables/useFocusTrap.ts
1440
- var pr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
1441
- function mr(e, t) {
1442
- let n = fr(), r = null, i = null, a = null;
1500
+ var yr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
1501
+ function br(e, t) {
1502
+ let n = vr(), r = null, i = null, a = null;
1443
1503
  function o() {
1444
- return e.value ? Array.from(e.value.querySelectorAll(pr)).filter((e) => e.offsetParent !== null) : [];
1504
+ return e.value ? Array.from(e.value.querySelectorAll(yr)).filter((e) => e.offsetParent !== null) : [];
1445
1505
  }
1446
1506
  function s(e) {
1447
1507
  if (e.key !== "Tab") return;
@@ -1456,7 +1516,7 @@ function mr(e, t) {
1456
1516
  a = null;
1457
1517
  let t = o();
1458
1518
  t.length > 0 && (e.value?.querySelector("[autofocus], input:not([disabled])") ?? t[0]).focus();
1459
- }), i = at(e, "keydown", s);
1519
+ }), i = ot(e, "keydown", s);
1460
1520
  }
1461
1521
  function d(e = {}) {
1462
1522
  let t = e.restoreFocus !== !1;
@@ -1471,8 +1531,8 @@ function mr(e, t) {
1471
1531
  }
1472
1532
  //#endregion
1473
1533
  //#region src/composables/useEmoji.ts
1474
- function hr() {
1475
- let [e, t] = Ye(!1), n = v([]), r = !1;
1534
+ function xr() {
1535
+ let [e, t] = Xe(!1), n = v([]), r = !1;
1476
1536
  u(() => {
1477
1537
  r = !0;
1478
1538
  }), c(e, async (e) => {
@@ -1497,7 +1557,7 @@ function hr() {
1497
1557
  }
1498
1558
  //#endregion
1499
1559
  //#region src/composables/useDragDrop.ts
1500
- function gr(e) {
1560
+ function Sr(e) {
1501
1561
  let { onBlockMove: t, onBlockAdd: n } = e, r = _(!1), i = _(null), a = _(null);
1502
1562
  function o(e) {
1503
1563
  r.value = !0, i.value = e;
@@ -1547,7 +1607,7 @@ function gr(e) {
1547
1607
  }
1548
1608
  //#endregion
1549
1609
  //#region src/composables/useFonts.ts
1550
- var _r = [
1610
+ var Cr = [
1551
1611
  {
1552
1612
  value: "Arial",
1553
1613
  label: "Arial"
@@ -1576,7 +1636,7 @@ var _r = [
1576
1636
  value: "Courier New",
1577
1637
  label: "Courier New"
1578
1638
  }
1579
- ], vr = {
1639
+ ], wr = {
1580
1640
  arial: "Arial, sans-serif",
1581
1641
  helvetica: "Helvetica, sans-serif",
1582
1642
  georgia: "Georgia, serif",
@@ -1584,23 +1644,23 @@ var _r = [
1584
1644
  verdana: "Verdana, sans-serif",
1585
1645
  "trebuchet ms": "'Trebuchet MS', sans-serif",
1586
1646
  "courier new": "'Courier New', monospace"
1587
- }, yr = "Arial, sans-serif";
1588
- function br(e) {
1589
- if (e === void 0 || e === !0) return [..._r];
1647
+ }, Tr = "Arial, sans-serif";
1648
+ function Er(e) {
1649
+ if (e === void 0 || e === !0) return [...Cr];
1590
1650
  if (e === !1) return [];
1591
1651
  let t = [], n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
1592
1652
  for (let i of e) {
1593
- let e = i.toLowerCase(), a = _r.find((t) => t.value.toLowerCase() === e);
1653
+ let e = i.toLowerCase(), a = Cr.find((t) => t.value.toLowerCase() === e);
1594
1654
  if (!a) {
1595
- r.has(e) || (r.add(e), jn.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${_r.map((e) => e.value).join(", ")}.`));
1655
+ r.has(e) || (r.add(e), Ln.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${Cr.map((e) => e.value).join(", ")}.`));
1596
1656
  continue;
1597
1657
  }
1598
1658
  n.has(a.value) || (n.add(a.value), t.push(a));
1599
1659
  }
1600
1660
  return t;
1601
1661
  }
1602
- function xr(e) {
1603
- let t = _(e?.customFonts ?? []), n = _(!0), r = _(!1), i = br(e?.builtIns), a = M(() => e?.defaultFallback ?? yr);
1662
+ function Dr(e) {
1663
+ let t = _(e?.customFonts ?? []), n = _(!0), r = _(!1), i = Er(e?.builtIns), a = M(() => e?.defaultFallback ?? Tr);
1604
1664
  function o(e) {
1605
1665
  n.value = e;
1606
1666
  }
@@ -1617,20 +1677,20 @@ function xr(e) {
1617
1677
  function l(e) {
1618
1678
  return c.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
1619
1679
  }
1620
- let d = e?.defaultFont ?? yr.split(",")[0].trim();
1621
- l(d) || jn.warn(`config.fonts: new templates seed "${d}", 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.`);
1680
+ let d = e?.defaultFont ?? Tr.split(",")[0].trim();
1681
+ l(d) || Ln.warn(`config.fonts: new templates seed "${d}", 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.`);
1622
1682
  function f(e) {
1623
- return _r.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
1683
+ return Cr.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
1624
1684
  }
1625
1685
  function p() {
1626
1686
  if (e?.defaultFont) {
1627
- if (!n.value && !f(e.defaultFont)) return yr;
1687
+ if (!n.value && !f(e.defaultFont)) return Tr;
1628
1688
  if (l(e.defaultFont)) {
1629
1689
  let t = c.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
1630
1690
  if (t) return t.value;
1631
1691
  }
1632
1692
  }
1633
- return yr;
1693
+ return Tr;
1634
1694
  }
1635
1695
  let m = M(() => p());
1636
1696
  function h(e) {
@@ -1640,7 +1700,7 @@ function xr(e) {
1640
1700
  let e = n.fallback ?? a.value;
1641
1701
  return `'${n.name}', ${e}`;
1642
1702
  }
1643
- return vr[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${a.value}`);
1703
+ return wr[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${a.value}`);
1644
1704
  }
1645
1705
  let g = [], v = !1;
1646
1706
  async function y() {
@@ -1656,7 +1716,7 @@ function xr(e) {
1656
1716
  t.onload = () => n(), t.onerror = () => r(/* @__PURE__ */ Error(`Failed to load font: ${e.name}`)), document.head.appendChild(t);
1657
1717
  });
1658
1718
  } catch (t) {
1659
- jn.warn(`Failed to load custom font "${e.name}":`, t);
1719
+ Ln.warn(`Failed to load custom font "${e.name}":`, t);
1660
1720
  }
1661
1721
  });
1662
1722
  await Promise.allSettled(e), !v && (r.value = !0);
@@ -1683,8 +1743,8 @@ function xr(e) {
1683
1743
  }
1684
1744
  //#endregion
1685
1745
  //#region src/composables/useLogicTag.ts
1686
- function Sr() {
1687
- let e = P(ct, []), t = P(vt, []), n = P(At, Te.liquid), r = P(ot, null), i = P(Rt, null), a = _(!1), o = !!r || e.length > 0 || t.length > 0, s = e.length > 0 || t.length > 0;
1746
+ function Or() {
1747
+ let e = P(Ut, []), t = P(lt, []), n = P(st, Ee.liquid), r = P(Nt, null), i = P(St, null), a = _(!1), o = !!r || e.length > 0 || t.length > 0, s = e.length > 0 || t.length > 0;
1688
1748
  async function c() {
1689
1749
  if (r) {
1690
1750
  a.value = !0;
@@ -1715,7 +1775,7 @@ function Sr() {
1715
1775
  }
1716
1776
  //#endregion
1717
1777
  //#region src/utils/mergeTagNodeSpec.ts
1718
- function Cr(e, t, n) {
1778
+ function kr(e, t, n) {
1719
1779
  return ve(e, n) ? {
1720
1780
  type: "logicMergeTagNode",
1721
1781
  attrs: {
@@ -1732,15 +1792,15 @@ function Cr(e, t, n) {
1732
1792
  }
1733
1793
  //#endregion
1734
1794
  //#region src/utils/insertLogicTag.ts
1735
- function wr(e) {
1795
+ function Ar(e) {
1736
1796
  return "before" in e && "after" in e;
1737
1797
  }
1738
- function Tr(e, t, n) {
1739
- if (!wr(t)) {
1740
- e.chain().focus().insertContent(Cr(t.value, t.label, n)).run();
1798
+ function jr(e, t, n) {
1799
+ if (!Ar(t)) {
1800
+ e.chain().focus().insertContent(kr(t.value, t.label, n)).run();
1741
1801
  return;
1742
1802
  }
1743
- let r = Cr(t.before, t.label, n), i = Cr(t.after, t.label, n), { from: a, to: o } = e.state.selection;
1803
+ let r = kr(t.before, t.label, n), i = kr(t.after, t.label, n), { from: a, to: o } = e.state.selection;
1744
1804
  if (a !== o) {
1745
1805
  e.chain().focus().insertContentAt(o, i).insertContentAt(a, r).run();
1746
1806
  return;
@@ -1749,20 +1809,20 @@ function Tr(e, t, n) {
1749
1809
  }
1750
1810
  //#endregion
1751
1811
  //#region src/utils/linkColorExtension.ts
1752
- function Er(e) {
1812
+ function Mr(e) {
1753
1813
  if (!e) return null;
1754
1814
  let t = e.trim();
1755
1815
  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;
1756
1816
  }
1757
- function Dr(e) {
1817
+ function Nr(e) {
1758
1818
  return e.extend({ addAttributes() {
1759
1819
  return {
1760
1820
  ...this.parent?.(),
1761
1821
  color: {
1762
1822
  default: null,
1763
- parseHTML: (e) => Er(et(e.style.color)),
1823
+ parseHTML: (e) => Mr(tt(e.style.color)),
1764
1824
  renderHTML: (e) => {
1765
- let t = Er(e.color);
1825
+ let t = Mr(e.color);
1766
1826
  return t ? { style: `color: ${t}` } : {};
1767
1827
  }
1768
1828
  }
@@ -1771,9 +1831,9 @@ function Dr(e) {
1771
1831
  }
1772
1832
  //#endregion
1773
1833
  //#region src/composables/useRichTextLinkDialog.ts
1774
- function Or(e) {
1834
+ function Pr(e) {
1775
1835
  let t = _(!1), n = _(""), r = _(""), i = _(null);
1776
- mr(i, t);
1836
+ br(i, t);
1777
1837
  function a() {
1778
1838
  let i = e.value?.getAttributes("link") ?? {};
1779
1839
  n.value = i.href || "", r.value = i.color || "", t.value = !0;
@@ -1782,7 +1842,7 @@ function Or(e) {
1782
1842
  if (n.value) {
1783
1843
  let t = c(n.value);
1784
1844
  if (t !== null) {
1785
- let n = Er(r.value), i = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
1845
+ let n = Mr(r.value), i = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
1786
1846
  n && typeof e.value?.commands.unsetColor == "function" && i?.unsetColor(), i?.run();
1787
1847
  }
1788
1848
  }
@@ -1829,8 +1889,8 @@ function Or(e) {
1829
1889
  }
1830
1890
  //#endregion
1831
1891
  //#region src/composables/useRichTextEditor.ts
1832
- function kr(e) {
1833
- let t = P(Dt, null), { mergeTags: n, canRequestMergeTag: r, isRequesting: i, requestMergeTag: a, syntax: o, autocomplete: s } = Yt(), { canInsertLogicTag: l, isRequesting: u, requestLogicTag: d } = Sr(), f = P(Vt, null), p = (g(f) ? f.value : f)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", m = le(o), y = v(null), { showLinkDialog: b, linkUrl: x, linkColor: S, linkDialogRef: C, openLinkDialog: w, insertLink: T, removeLink: E, closeLinkDialog: D, handleLinkKeydown: O } = Or(y), { start: k, stop: A } = Xe(() => y.value?.commands.focus("end"), 0, { immediate: !1 }), j = v(null), ee = _(!0), M = _(null), te = !1;
1892
+ function Fr(e) {
1893
+ let t = P(jt, null), { mergeTags: n, canRequestMergeTag: r, isRequesting: i, requestMergeTag: a, syntax: o, autocomplete: s } = $t(), { canInsertLogicTag: l, isRequesting: u, requestLogicTag: d } = Or(), f = P(mt, null), p = (g(f) ? f.value : f)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", m = le(o), y = v(null), { showLinkDialog: b, linkUrl: x, linkColor: S, linkDialogRef: C, openLinkDialog: w, insertLink: T, removeLink: E, closeLinkDialog: D, handleLinkKeydown: O } = Pr(y), { start: k, stop: A } = Ze(() => y.value?.commands.focus("end"), 0, { immediate: !1 }), j = v(null), ee = _(!0), M = _(null), te = !1;
1834
1894
  async function N() {
1835
1895
  M.value = null, ee.value = !0;
1836
1896
  try {
@@ -1860,7 +1920,7 @@ function kr(e) {
1860
1920
  y.value = l, ee.value = !1, k();
1861
1921
  } catch (t) {
1862
1922
  if (te) return;
1863
- jn.error(`[${e.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, t), M.value = t instanceof Error ? t.message : "Failed to load editor", ee.value = !1;
1923
+ Ln.error(`[${e.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, t), M.value = t instanceof Error ? t.message : "Failed to load editor", ee.value = !1;
1864
1924
  }
1865
1925
  }
1866
1926
  function ne() {
@@ -1878,7 +1938,7 @@ function kr(e) {
1878
1938
  let a = n.some((e) => e instanceof HTMLElement && e.classList.contains("tpl-color-popover"));
1879
1939
  r.closest(".tpl-text-editor-wrapper") || r.closest(".tpl-text-toolbar") || r.closest(".tpl-link-dialog") || a || e.onDone();
1880
1940
  }
1881
- at(document, "mousedown", ie), h(() => {
1941
+ ot(document, "mousedown", ie), h(() => {
1882
1942
  te = !0, re(), A(), y.value?.destroy();
1883
1943
  });
1884
1944
  async function ae() {
@@ -1890,7 +1950,7 @@ function kr(e) {
1890
1950
  }
1891
1951
  async function F() {
1892
1952
  let e = await d();
1893
- te || (e && y.value ? Tr(y.value, e, o) : y.value?.commands.focus());
1953
+ te || (e && y.value ? jr(y.value, e, o) : y.value?.commands.focus());
1894
1954
  }
1895
1955
  return {
1896
1956
  editor: y,
@@ -1919,9 +1979,9 @@ function kr(e) {
1919
1979
  }
1920
1980
  //#endregion
1921
1981
  //#region src/composables/useSmallScreenNotice.ts
1922
- var Ar = "(max-width: 767px)";
1923
- function jr(e) {
1924
- let t = $e(Ar);
1982
+ var Ir = "(max-width: 767px)";
1983
+ function Lr(e) {
1984
+ let t = et(Ir);
1925
1985
  return {
1926
1986
  isSmallScreen: t,
1927
1987
  showNotice: M(() => (S(e) ?? !0) && t.value)
@@ -1929,20 +1989,20 @@ function jr(e) {
1929
1989
  }
1930
1990
  //#endregion
1931
1991
  //#region src/components/blocks/CustomBlock.vue?vue&type=script&setup=true&lang.ts
1932
- var Mr = { class: "tpl:w-full" }, Nr = {
1992
+ var Rr = { class: "tpl:w-full" }, zr = {
1933
1993
  key: 0,
1934
1994
  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)]"
1935
- }, Pr = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Fr = {
1995
+ }, Br = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Vr = {
1936
1996
  key: 1,
1937
1997
  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)]"
1938
- }, Ir = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Lr = {
1998
+ }, Hr = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ur = {
1939
1999
  key: 2,
1940
2000
  class: "tpl:relative"
1941
- }, Rr = ["innerHTML"], zr = {
2001
+ }, Wr = ["innerHTML"], Gr = {
1942
2002
  key: 0,
1943
2003
  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]",
1944
2004
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
1945
- }, Br = /* @__PURE__ */ y({
2005
+ }, Kr = /* @__PURE__ */ y({
1946
2006
  __name: "CustomBlock",
1947
2007
  props: {
1948
2008
  block: {},
@@ -1950,7 +2010,7 @@ var Mr = { class: "tpl:w-full" }, Nr = {
1950
2010
  },
1951
2011
  emits: ["fetchData"],
1952
2012
  setup(e, { emit: t }) {
1953
- let n = e, r = t, { t: i } = Ht(), o = P(Pt, null), s = _(""), l = _(!1), u = M(() => o?.getDefinition(n.block.customType)), d = M(() => !!u.value), { isFetching: m, fetch: h, needsFetch: g, hasDataSource: v } = cn({
2013
+ let n = e, r = t, { t: i } = Kt(), o = P(Bt, null), s = _(""), l = _(!1), u = M(() => o?.getDefinition(n.block.customType)), d = M(() => !!u.value), { isFetching: m, fetch: h, needsFetch: g, hasDataSource: v } = fn({
1954
2014
  definition: u,
1955
2015
  block: M(() => n.block),
1956
2016
  onUpdate: (e, t) => {
@@ -1959,10 +2019,10 @@ var Mr = { class: "tpl:w-full" }, Nr = {
1959
2019
  dataSourceFetched: t
1960
2020
  });
1961
2021
  }
1962
- }), y = P(yt, []), S = P(bt, null), C = M(() => {
2022
+ }), y = P(dt, []), S = P(Tt, null), C = M(() => {
1963
2023
  if (!S?.value) return n.block;
1964
2024
  let e = {};
1965
- for (let [t, r] of Object.entries(n.block.fieldValues)) e[t] = typeof r == "string" ? ue(r, y) : r;
2025
+ for (let [t, r] of Object.entries(n.block.fieldValues)) e[t] = typeof r == "string" ? we(r, y) : r;
1966
2026
  return {
1967
2027
  ...n.block,
1968
2028
  fieldValues: e
@@ -1979,17 +2039,17 @@ var Mr = { class: "tpl:w-full" }, Nr = {
1979
2039
  }
1980
2040
  }
1981
2041
  }
1982
- let E = qe(T, 150);
2042
+ let E = Je(T, 150);
1983
2043
  return a(() => {
1984
2044
  T();
1985
2045
  }), c(() => n.block.fieldValues, () => {
1986
2046
  E();
1987
2047
  }, { deep: !0 }), c(() => S?.value, () => {
1988
2048
  E();
1989
- }), (e, t) => (f(), x("div", Mr, [d.value ? l.value ? (f(), x("div", Fr, [w(k(Kt), {
2049
+ }), (e, t) => (f(), x("div", Rr, [d.value ? l.value ? (f(), x("div", Vr, [w(k(Xt), {
1990
2050
  size: 24,
1991
2051
  class: "tpl:text-[var(--tpl-danger)]"
1992
- }), b("span", Ir, p(k(i).customBlocks.renderError), 1)])) : (f(), x("div", Lr, [b("div", { innerHTML: s.value }, null, 8, Rr), k(v) && k(g) ? (f(), x("div", zr, [k(m) ? (f(), D(qt, {
2052
+ }), b("span", Hr, p(k(i).customBlocks.renderError), 1)])) : (f(), x("div", Ur, [b("div", { innerHTML: s.value }, null, 8, Wr), k(v) && k(g) ? (f(), x("div", Gr, [k(m) ? (f(), D(Zt, {
1993
2053
  key: 1,
1994
2054
  class: "tpl:w-48"
1995
2055
  })) : (f(), x("button", {
@@ -1997,16 +2057,16 @@ var Mr = { class: "tpl:w-full" }, Nr = {
1997
2057
  type: "button",
1998
2058
  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-sm tpl:transition-all tpl:duration-150 hover:tpl:border-[var(--tpl-primary)] hover:tpl:shadow-md tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
1999
2059
  onClick: t[0] ||= F((...e) => k(h) && k(h)(...e), ["stop"])
2000
- }, [u.value?.icon ? (f(), D(dr, {
2060
+ }, [u.value?.icon ? (f(), D(_r, {
2001
2061
  key: 0,
2002
2062
  icon: u.value.icon,
2003
2063
  size: 16
2004
- }, null, 8, ["icon"])) : N("", !0), O(" " + p(u.value?.dataSource?.label || k(i).customBlocks.dataSource.fetchButton), 1)]))])) : N("", !0)])) : (f(), x("div", Nr, [w(k(ar), {
2064
+ }, null, 8, ["icon"])) : N("", !0), O(" " + p(u.value?.dataSource?.label || k(i).customBlocks.dataSource.fetchButton), 1)]))])) : N("", !0)])) : (f(), x("div", zr, [w(k(dr), {
2005
2065
  size: 24,
2006
2066
  class: "tpl:text-[var(--tpl-warning)]"
2007
- }), b("span", Pr, p(k(i).customBlocks.definitionNotFound), 1)]))]));
2067
+ }), b("span", Br, p(k(i).customBlocks.definitionNotFound), 1)]))]));
2008
2068
  }
2009
- }), Vr = { class: "tpl:w-full" }, Hr = /* @__PURE__ */ y({
2069
+ }), qr = { class: "tpl:w-full" }, Jr = /* @__PURE__ */ y({
2010
2070
  __name: "DividerBlock",
2011
2071
  props: {
2012
2072
  block: {},
@@ -2018,28 +2078,28 @@ var Mr = { class: "tpl:w-full" }, Nr = {
2018
2078
  width: t.block.width === "full" ? "100%" : `${t.block.width}px`,
2019
2079
  margin: t.block.width === "full" ? "0" : "0 auto"
2020
2080
  }));
2021
- return (e, t) => (f(), x("div", Vr, [b("hr", {
2081
+ return (e, t) => (f(), x("div", qr, [b("hr", {
2022
2082
  class: "tpl:m-0 tpl:border-none",
2023
2083
  style: i(n.value)
2024
2084
  }, null, 4)]));
2025
2085
  }
2026
- }), Ur = { class: "tpl:w-full" }, Wr = ["srcdoc", "title"], Gr = {
2086
+ }), Yr = { class: "tpl:w-full" }, Xr = ["srcdoc", "title"], Zr = {
2027
2087
  key: 1,
2028
2088
  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)]"
2029
- }, Kr = {
2089
+ }, Qr = {
2030
2090
  key: 0,
2031
2091
  class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
2032
- }, qr = {
2092
+ }, $r = {
2033
2093
  key: 1,
2034
2094
  class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
2035
- }, Jr = /* @__PURE__ */ y({
2095
+ }, ei = /* @__PURE__ */ y({
2036
2096
  __name: "HtmlBlock",
2037
2097
  props: {
2038
2098
  block: {},
2039
2099
  viewport: {}
2040
2100
  },
2041
2101
  setup(e) {
2042
- let t = e, { t: n } = Ht(), r = P(Bt, !1), a = M(() => t.block.content.trim().length > 0), o = M(() => r && a.value), s = P(yt, []), l = P(bt, null), u = M(() => l?.value ? ue(t.block.content, s) : t.block.content), d = _(null), m = _(60), g = null;
2102
+ let t = e, { t: n } = Kt(), r = P(Ot, !1), a = M(() => t.block.content.trim().length > 0), o = M(() => r && a.value), s = P(dt, []), l = P(Tt, null), u = M(() => l?.value ? we(t.block.content, s) : t.block.content), d = _(null), m = _(60), g = null;
2043
2103
  function v() {
2044
2104
  let e = d.value?.contentDocument;
2045
2105
  e && (m.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
@@ -2053,7 +2113,7 @@ var Mr = { class: "tpl:w-full" }, Nr = {
2053
2113
  e || (g?.disconnect(), g = null);
2054
2114
  }), h(() => {
2055
2115
  g?.disconnect(), g = null;
2056
- }), (e, t) => (f(), x("div", Ur, [o.value ? (f(), x("iframe", {
2116
+ }), (e, t) => (f(), x("div", Yr, [o.value ? (f(), x("iframe", {
2057
2117
  key: 0,
2058
2118
  ref_key: "iframeRef",
2059
2119
  ref: d,
@@ -2063,18 +2123,18 @@ var Mr = { class: "tpl:w-full" }, Nr = {
2063
2123
  class: "tpl:block tpl:w-full tpl:border-0",
2064
2124
  style: i({ height: `${m.value}px` }),
2065
2125
  onLoad: y
2066
- }, null, 44, Wr)) : (f(), x("div", Gr, [w(k(Qn), {
2126
+ }, null, 44, Xr)) : (f(), x("div", Zr, [w(k(ir), {
2067
2127
  size: 24,
2068
2128
  class: "tpl:text-[var(--tpl-text-dim)]"
2069
- }), a.value ? (f(), x("span", Kr, p(k(n).html.preview), 1)) : (f(), x("span", qr, p(k(n).html.empty), 1))]))]));
2129
+ }), a.value ? (f(), x("span", Qr, p(k(n).html.preview), 1)) : (f(), x("span", $r, p(k(n).html.empty), 1))]))]));
2070
2130
  }
2071
- }), Yr = "image/";
2072
- function Xr(e) {
2073
- let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || S(r), { isOverDropZone: a } = Qe(t, {
2131
+ }), ti = "image/";
2132
+ function ni(e) {
2133
+ let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || S(r), { isOverDropZone: a } = $e(t, {
2074
2134
  preventDefaultForUnhandled: !0,
2075
2135
  onDrop: (e) => {
2076
2136
  if (!i()) return;
2077
- let t = (e ?? []).filter((e) => e.type.startsWith(Yr));
2137
+ let t = (e ?? []).filter((e) => e.type.startsWith(ti));
2078
2138
  t.length > 0 && n([t[0]]);
2079
2139
  }
2080
2140
  });
@@ -2082,17 +2142,17 @@ function Xr(e) {
2082
2142
  }
2083
2143
  //#endregion
2084
2144
  //#region src/components/blocks/ImageBlock.vue?vue&type=script&setup=true&lang.ts
2085
- var Zr = {
2145
+ var ri = {
2086
2146
  key: 0,
2087
2147
  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)]",
2088
2148
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 85%, transparent)" }
2089
- }, Qr = ["href"], $r = ["src", "alt"], ei = ["src", "alt"], ti = {
2149
+ }, ii = ["href"], ai = ["src", "alt"], oi = ["src", "alt"], si = {
2090
2150
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
2091
2151
  style: { opacity: "0.7" }
2092
- }, ni = ["href"], ri = ["src", "alt"], ii = ["src", "alt"], ai = {
2152
+ }, ci = ["href"], li = ["src", "alt"], ui = ["src", "alt"], di = {
2093
2153
  key: 4,
2094
2154
  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)]"
2095
- }, oi = ["aria-label"], si = { key: 1 }, ci = /* @__PURE__ */ y({
2155
+ }, fi = ["aria-label"], pi = { key: 1 }, mi = /* @__PURE__ */ y({
2096
2156
  __name: "ImageBlock",
2097
2157
  props: {
2098
2158
  block: {},
@@ -2100,7 +2160,7 @@ var Zr = {
2100
2160
  },
2101
2161
  emits: ["update"],
2102
2162
  setup(e, { emit: t }) {
2103
- let n = e, r = t, { t: a } = Ht(), { syntax: o } = Yt(), s = P(kt, null), c = M(() => !!s), l = Xt();
2163
+ let n = e, r = t, { t: a } = Kt(), { syntax: o } = $t(), s = P(_t, null), c = M(() => !!s), l = en();
2104
2164
  async function u() {
2105
2165
  let e = await s?.({ accept: ["images"] });
2106
2166
  if (l.alive && e) {
@@ -2127,7 +2187,7 @@ var Zr = {
2127
2187
  }
2128
2188
  }
2129
2189
  }
2130
- let { isOver: v } = Xr({
2190
+ let { isOver: v } = ni({
2131
2191
  target: d,
2132
2192
  enabled: h,
2133
2193
  onFiles: g
@@ -2140,14 +2200,14 @@ var Zr = {
2140
2200
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
2141
2201
  marginRight: e === "center" ? "auto" : void 0
2142
2202
  };
2143
- }), C = M(() => De(n.block.src, o)), T = vn(() => C.value ? void 0 : n.block.src), E = vn(() => C.value ? n.block.placeholderUrl : void 0);
2203
+ }), C = M(() => Oe(n.block.src, o)), T = wn(() => C.value ? void 0 : n.block.src), E = wn(() => C.value ? n.block.placeholderUrl : void 0);
2144
2204
  return (t, n) => (f(), x("div", {
2145
2205
  ref_key: "dropZoneRef",
2146
2206
  ref: d,
2147
2207
  "data-testid": "image-drop-zone",
2148
2208
  class: "tpl:relative tpl:w-full",
2149
2209
  style: i(y.value)
2150
- }, [h.value && (k(v) || m.value) ? (f(), x("div", Zr, [m.value ? (f(), x(j, { key: 0 }, [w(k(Ut), {
2210
+ }, [h.value && (k(v) || m.value) ? (f(), x("div", ri, [m.value ? (f(), x(j, { key: 0 }, [w(k(qt), {
2151
2211
  class: "tpl-spinner",
2152
2212
  size: 20,
2153
2213
  "stroke-width": 2
@@ -2166,22 +2226,22 @@ var Zr = {
2166
2226
  src: k(E),
2167
2227
  alt: e.block.alt || k(a).image.altTextPlaceholder,
2168
2228
  style: i(S.value)
2169
- }, null, 12, $r)], 8, Qr)) : (f(), x("img", {
2229
+ }, null, 12, ai)], 8, ii)) : (f(), x("img", {
2170
2230
  key: 1,
2171
2231
  class: "tpl:border-0",
2172
2232
  src: k(E),
2173
2233
  alt: e.block.alt,
2174
2234
  style: i(S.value)
2175
- }, null, 12, ei))], 64)) : e.block.src && C.value ? (f(), x("div", {
2235
+ }, null, 12, oi))], 64)) : e.block.src && C.value ? (f(), x("div", {
2176
2236
  key: 2,
2177
2237
  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)]",
2178
2238
  style: i([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, S.value])
2179
- }, [w(k(rr), {
2239
+ }, [w(k(lr), {
2180
2240
  size: 32,
2181
2241
  "stroke-width": 1.5,
2182
2242
  class: "tpl:text-[var(--tpl-primary)]",
2183
2243
  style: { opacity: "0.5" }
2184
- }), b("span", ti, [w(Kn, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (f(), x(j, { key: 3 }, [e.block.linkUrl ? (f(), x("a", {
2244
+ }), b("span", si, [w(Qn, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (f(), x(j, { key: 3 }, [e.block.linkUrl ? (f(), x("a", {
2185
2245
  key: 0,
2186
2246
  href: e.block.linkUrl,
2187
2247
  target: "_blank",
@@ -2193,33 +2253,33 @@ var Zr = {
2193
2253
  src: k(T),
2194
2254
  alt: e.block.alt || k(a).image.altTextPlaceholder,
2195
2255
  style: i(S.value)
2196
- }, null, 12, ri)], 8, ni)) : (f(), x("img", {
2256
+ }, null, 12, li)], 8, ci)) : (f(), x("img", {
2197
2257
  key: 1,
2198
2258
  class: "tpl:border-0",
2199
2259
  src: k(T),
2200
2260
  alt: e.block.alt,
2201
2261
  style: i(S.value)
2202
- }, null, 12, ii))], 64)) : (f(), x("div", ai, [c.value ? (f(), x("button", {
2262
+ }, null, 12, ui))], 64)) : (f(), x("div", di, [c.value ? (f(), x("button", {
2203
2263
  key: 0,
2204
2264
  "aria-label": k(a).image.browseMedia,
2205
2265
  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:duration-150 tpl:cursor-pointer tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
2206
2266
  onClick: F(u, ["stop"])
2207
- }, [w(k(rr), {
2267
+ }, [w(k(lr), {
2208
2268
  size: 14,
2209
2269
  "stroke-width": 1.5
2210
- }), O(" " + p(k(a).image.browseMedia), 1)], 8, oi)) : (f(), x("span", si, p(k(a).image.clickToAdd), 1))]))], 4));
2270
+ }), O(" " + p(k(a).image.browseMedia), 1)], 8, fi)) : (f(), x("span", pi, p(k(a).image.clickToAdd), 1))]))], 4));
2211
2271
  }
2212
- }), li = { class: "tpl:w-full" }, ui = ["href"], di = {
2272
+ }), hi = { class: "tpl:w-full" }, gi = ["href"], _i = {
2213
2273
  key: 1,
2214
2274
  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)]"
2215
- }, fi = /* @__PURE__ */ y({
2275
+ }, vi = /* @__PURE__ */ y({
2216
2276
  __name: "MenuBlock",
2217
2277
  props: {
2218
2278
  block: {},
2219
2279
  viewport: {}
2220
2280
  },
2221
2281
  setup(e) {
2222
- let n = e, { t: r } = Ht(), a = M(() => ({
2282
+ let n = e, { t: r } = Kt(), a = M(() => ({
2223
2283
  display: "flex",
2224
2284
  flexWrap: "wrap",
2225
2285
  gap: `0 ${n.block.spacing}px`,
@@ -2231,7 +2291,7 @@ var Zr = {
2231
2291
  function s(e) {
2232
2292
  return e || n.block.linkColor || n.block.color;
2233
2293
  }
2234
- return (n, c) => (f(), x("div", li, [o.value ? (f(), x("div", {
2294
+ return (n, c) => (f(), x("div", hi, [o.value ? (f(), x("div", {
2235
2295
  key: 0,
2236
2296
  style: i(a.value)
2237
2297
  }, [(f(!0), x(j, null, t(e.block.items, (t, n) => (f(), x(j, { key: t.id }, [b("a", {
@@ -2243,15 +2303,15 @@ var Zr = {
2243
2303
  textDecoration: t.underline ? "underline" : "none"
2244
2304
  }),
2245
2305
  onClick: c[0] ||= F(() => {}, ["prevent"])
2246
- }, [w(Kn, { text: t.text || "..." }, null, 8, ["text"])], 12, ui), n < e.block.items.length - 1 ? (f(), x("span", {
2306
+ }, [w(Qn, { text: t.text || "..." }, null, 8, ["text"])], 12, gi), n < e.block.items.length - 1 ? (f(), x("span", {
2247
2307
  key: 0,
2248
2308
  style: i({
2249
2309
  color: e.block.separatorColor,
2250
2310
  padding: `0 ${e.block.spacing}px`
2251
2311
  })
2252
- }, p(e.block.separator), 5)) : N("", !0)], 64))), 128))], 4)) : (f(), x("div", di, [w(k(ir), { size: 16 }), b("span", null, p(k(r).menu.addLinks), 1)]))]));
2312
+ }, p(e.block.separator), 5)) : N("", !0)], 64))), 128))], 4)) : (f(), x("div", _i, [w(k(ur), { size: 16 }), b("span", null, p(k(r).menu.addLinks), 1)]))]));
2253
2313
  }
2254
- }), pi = /* @__PURE__ */ new Set([
2314
+ }), yi = /* @__PURE__ */ new Set([
2255
2315
  "http",
2256
2316
  "https",
2257
2317
  "mailto",
@@ -2261,7 +2321,7 @@ var Zr = {
2261
2321
  "sms",
2262
2322
  "xmpp",
2263
2323
  "cid"
2264
- ]), mi = /* @__PURE__ */ new Set([
2324
+ ]), bi = /* @__PURE__ */ new Set([
2265
2325
  "SCRIPT",
2266
2326
  "STYLE",
2267
2327
  "IFRAME",
@@ -2271,7 +2331,7 @@ var Zr = {
2271
2331
  "META",
2272
2332
  "BASE",
2273
2333
  "FORM"
2274
- ]), hi = /* @__PURE__ */ new Set([
2334
+ ]), xi = /* @__PURE__ */ new Set([
2275
2335
  "href",
2276
2336
  "xlink:href",
2277
2337
  "formaction",
@@ -2280,16 +2340,16 @@ var Zr = {
2280
2340
  "background",
2281
2341
  "poster"
2282
2342
  ]);
2283
- function gi(e, t) {
2343
+ function Si(e, t) {
2284
2344
  let n = e.replace(/[\t\n\r]/g, "").replace(/^[\u0000-\u0020]+/, "").trimEnd();
2285
2345
  if (!n || n.startsWith("#")) return !0;
2286
2346
  let r = /^([a-z][a-z0-9+.-]*):/i.exec(n);
2287
2347
  if (!r) return !0;
2288
2348
  let i = r[1].toLowerCase();
2289
- return pi.has(i) ? !0 : t && i === "data" ? /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i.test(n) : !1;
2349
+ return yi.has(i) ? !0 : t && i === "data" ? /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i.test(n) : !1;
2290
2350
  }
2291
- function _i(e) {
2292
- if (mi.has(e.tagName)) {
2351
+ function Ci(e) {
2352
+ if (bi.has(e.tagName)) {
2293
2353
  e.remove();
2294
2354
  return;
2295
2355
  }
@@ -2301,29 +2361,29 @@ function _i(e) {
2301
2361
  e.removeAttribute(n);
2302
2362
  continue;
2303
2363
  }
2304
- if (hi.has(t)) {
2305
- gi(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n);
2364
+ if (xi.has(t)) {
2365
+ Si(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n);
2306
2366
  continue;
2307
2367
  }
2308
2368
  if (t === "src") {
2309
- gi(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n);
2369
+ Si(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n);
2310
2370
  continue;
2311
2371
  }
2312
2372
  t === "srcdoc" && e.removeAttribute(n);
2313
2373
  }
2314
2374
  let n = Array.from(e.children);
2315
- for (let e of n) _i(e);
2375
+ for (let e of n) Ci(e);
2316
2376
  }
2317
- function vi(e) {
2377
+ function wi(e) {
2318
2378
  if (typeof DOMParser > "u") return e;
2319
2379
  let t = new DOMParser().parseFromString(`<!doctype html><body>${e}</body>`, "text/html").body, n = Array.from(t.children);
2320
- for (let e of n) _i(e);
2380
+ for (let e of n) Ci(e);
2321
2381
  return t.innerHTML;
2322
2382
  }
2323
2383
  //#endregion
2324
2384
  //#region src/composables/useEditableTextBlock.ts
2325
- function yi(e) {
2326
- let t = P(yt, []), n = P(bt, null), { syntax: r } = Yt(), i = M(() => n?.value ? Ke(e(), t) : he(e(), t)), a = M(() => vi(me(i.value, r))), o = _(!1), s = _(null), { top: c, left: l } = tt(s), { toLocal: u } = it(), d = M(() => u({
2385
+ function Ti(e) {
2386
+ let t = P(dt, []), n = P(Tt, null), { syntax: r } = $t(), i = M(() => n?.value ? ue(e(), t) : ge(e(), t)), a = M(() => wi(he(i.value, r))), o = _(!1), s = _(null), { top: c, left: l } = nt(s), { toLocal: u } = at(), d = M(() => u({
2327
2387
  top: c.value - 8,
2328
2388
  left: l.value
2329
2389
  }));
@@ -2344,14 +2404,14 @@ function yi(e) {
2344
2404
  }
2345
2405
  //#endregion
2346
2406
  //#region src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
2347
- var bi = ["innerHTML"], xi = /* @__PURE__ */ y({
2407
+ var Ei = ["innerHTML"], Di = /* @__PURE__ */ y({
2348
2408
  __name: "ParagraphBlock",
2349
2409
  props: {
2350
2410
  block: {},
2351
2411
  viewport: {}
2352
2412
  },
2353
2413
  setup(e) {
2354
- let t = e, n = C(() => import("./ParagraphEditor-Cy-bpEjI.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = yi(() => t.block.content);
2414
+ let t = e, n = C(() => import("./ParagraphEditor-jGnbJEA2.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = Ti(() => t.block.content);
2355
2415
  return (t, l) => (f(), x("div", {
2356
2416
  ref_key: "blockRef",
2357
2417
  ref: i,
@@ -2370,54 +2430,54 @@ var bi = ["innerHTML"], xi = /* @__PURE__ */ y({
2370
2430
  key: 1,
2371
2431
  class: "tpl-text-content tpl:outline-none [&_a]:tpl:underline [&_li]:tpl:my-1 [&_ol]:tpl:my-2 [&_ol]:tpl:pl-6 [&_p]:tpl:m-0 [&_p]:tpl:mb-2 [&_p:last-child]:tpl:mb-0 [&_s]:tpl:line-through [&_sub]:tpl:align-sub [&_sub]:tpl:text-[0.75em] [&_sup]:tpl:align-super [&_sup]:tpl:text-[0.75em] [&_ul]:tpl:my-2 [&_ul]:tpl:pl-6",
2372
2432
  innerHTML: k(o)
2373
- }, null, 8, bi))], 544));
2433
+ }, null, 8, Ei))], 544));
2374
2434
  }
2375
2435
  });
2376
2436
  //#endregion
2377
2437
  //#region src/utils/blockComponentResolver.ts
2378
- function Si(e) {
2438
+ function Oi(e) {
2379
2439
  let t = { fontFamily: e.fontFamily };
2380
2440
  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;
2381
2441
  }
2382
- function Ci(e, t, n) {
2442
+ function ki(e, t, n) {
2383
2443
  if (t) {
2384
2444
  let n = t.getComponent(e);
2385
2445
  if (n) return n;
2386
2446
  }
2387
2447
  return n[e.type] ?? null;
2388
2448
  }
2389
- function wi(e) {
2449
+ function Ai(e) {
2390
2450
  let { padding: t, backgroundColor: n } = e.styles, r = {
2391
2451
  padding: `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`,
2392
2452
  backgroundColor: n || "transparent"
2393
2453
  };
2394
2454
  return e.type === "section" && e.borderRadius && e.borderRadius > 0 && (r.borderRadius = `${e.borderRadius}px`), r;
2395
2455
  }
2396
- function Ti(e) {
2456
+ function ji(e) {
2397
2457
  if (e.type !== "section" || !e.wrapper) return null;
2398
2458
  let t = e.wrapper, n = {};
2399
2459
  return t.backgroundColor && (n.backgroundColor = t.backgroundColor), t.padding && (n.padding = `${t.padding.top}px ${t.padding.right}px ${t.padding.bottom}px ${t.padding.left}px`), t.borderRadius && t.borderRadius > 0 && (n.borderRadius = `${t.borderRadius}px`), n;
2400
2460
  }
2401
2461
  //#endregion
2402
2462
  //#region src/components/blocks/BlockWrapper.vue?vue&type=script&setup=true&lang.ts
2403
- var Ei = [
2463
+ var Mi = [
2404
2464
  "data-block-id",
2405
2465
  "data-block-type",
2406
2466
  "data-tpl-picked"
2407
- ], Di = ["aria-label"], Oi = [
2467
+ ], Ni = ["aria-label"], Pi = [
2408
2468
  "aria-label",
2409
2469
  "aria-pressed",
2410
2470
  "title"
2411
- ], ki = ["aria-label", "title"], Ai = ["aria-label", "title"], ji = ["aria-label", "title"], Mi = {
2471
+ ], Fi = ["aria-label", "title"], Ii = ["aria-label", "title"], Li = ["aria-label", "title"], Ri = {
2412
2472
  key: 1,
2413
2473
  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"
2414
- }, Ni = { 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)]" }, Pi = {
2474
+ }, zi = { 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)]" }, Bi = {
2415
2475
  key: 2,
2416
2476
  class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
2417
- }, Fi = ["aria-label", "title"], Ii = {
2477
+ }, Vi = ["aria-label", "title"], Hi = {
2418
2478
  key: 3,
2419
2479
  class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
2420
- }, Li = ["aria-label"], Ri = /*#__PURE__*/ Jt(/* @__PURE__ */ y({
2480
+ }, Ui = ["aria-label"], Wi = /*#__PURE__*/ Qt(/* @__PURE__ */ y({
2421
2481
  __name: "BlockWrapper",
2422
2482
  props: {
2423
2483
  block: {},
@@ -2429,7 +2489,7 @@ var Ei = [
2429
2489
  },
2430
2490
  emits: ["select"],
2431
2491
  setup(e, { emit: t }) {
2432
- let n = C(() => import("./BlockIssueBadge-Qxrl7Ujl.js")), r = e, a = t, { t: s, format: c } = Ht(), l = P(zt, null), u = _(null), d = M(() => l?.liftedBlockId.value === r.block.id), m = M(() => d.value ? c(s.blockActions.dragLifted, { block: r.block.type }) : s.blockActions.drag);
2492
+ let n = C(() => import("./BlockIssueBadge-BQiT0FML.js")), r = e, a = t, { t: s, format: c } = Kt(), l = P(xt, null), u = _(null), d = M(() => l?.liftedBlockId.value === r.block.id), m = M(() => d.value ? c(s.blockActions.dragLifted, { block: r.block.type }) : s.blockActions.drag);
2433
2493
  async function h() {
2434
2494
  await re(), u.value?.focus();
2435
2495
  }
@@ -2455,13 +2515,13 @@ var Ei = [
2455
2515
  let v = M(() => !r.viewport || !r.block.visibility ? !1 : r.block.visibility[r.viewport] === !1), y = M(() => r.previewMode === !0 && v.value), S = M(() => r.viewport ? {
2456
2516
  desktop: s.viewport.desktop,
2457
2517
  mobile: s.viewport.mobile
2458
- }[r.viewport] ?? r.viewport : ""), E = M(() => !!r.block.displayCondition), D = P(Ot, null), A = P(wt, null), j = P(It, {}), ee = M(() => j.savedBlocks?.isPicking.value === !0), te = M(() => !r.nested && j.savedBlocks?.isAvailable.value === !0 && j.savedBlocks?.canCreate.value === !0), ne = M(() => r.isSelected && !ee.value), ie = M(() => j.comments?.getBlockCount(r.block.id) ?? 0), ae = M(() => {
2459
- let e = wi(r.block), t = {
2518
+ }[r.viewport] ?? r.viewport : ""), E = M(() => !!r.block.displayCondition), D = P(Dt, null), A = P(At, null), j = P(kt, {}), ee = M(() => j.savedBlocks?.isPicking.value === !0), te = M(() => !r.nested && j.savedBlocks?.isAvailable.value === !0 && j.savedBlocks?.canCreate.value === !0), ne = M(() => r.isSelected && !ee.value), ie = M(() => j.comments?.getBlockCount(r.block.id) ?? 0), ae = M(() => {
2519
+ let e = Ai(r.block), t = {
2460
2520
  padding: e.padding,
2461
2521
  backgroundColor: e.backgroundColor
2462
2522
  };
2463
2523
  return e.borderRadius && (t.borderRadius = e.borderRadius), t;
2464
- }), oe = M(() => Ti(r.block));
2524
+ }), oe = M(() => ji(r.block));
2465
2525
  function se(e) {
2466
2526
  r.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), a("select"));
2467
2527
  }
@@ -2506,60 +2566,61 @@ var Ei = [
2506
2566
  "aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
2507
2567
  title: k(s).blockActions.drag,
2508
2568
  onKeydown: g
2509
- }, [w(k(nr), {
2569
+ }, [w(k(cr), {
2510
2570
  size: 14,
2511
2571
  "stroke-width": 1.5
2512
- })], 40, Oi),
2572
+ })], 40, Pi),
2513
2573
  b("button", {
2514
2574
  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 tpl:duration-150",
2515
2575
  "aria-label": k(s).blockActions.duplicate,
2516
2576
  title: k(s).blockActions.duplicate,
2517
2577
  onClick: F(le, ["stop"])
2518
- }, [w(k($n), {
2578
+ }, [w(k(ar), {
2519
2579
  size: 14,
2520
2580
  "stroke-width": 1.5
2521
- })], 8, ki),
2581
+ })], 8, Fi),
2522
2582
  te.value ? (f(), x("button", {
2523
2583
  key: 0,
2524
2584
  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 tpl:duration-150",
2525
2585
  "aria-label": k(s).blockActions.saveAsBlock,
2526
2586
  title: k(s).blockActions.saveAsBlock,
2527
2587
  onClick: F(ue, ["stop"])
2528
- }, [w(k(Xn), {
2588
+ }, [w(k(nr), {
2529
2589
  size: 14,
2530
2590
  "stroke-width": 1.5
2531
- })], 8, Ai)) : N("", !0),
2591
+ })], 8, Ii)) : N("", !0),
2532
2592
  b("button", {
2533
2593
  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 tpl:duration-150",
2534
2594
  "aria-label": k(s).blockActions.delete,
2535
2595
  title: k(s).blockActions.delete,
2536
2596
  onClick: F(ce, ["stop"])
2537
- }, [w(k(Gt), {
2597
+ }, [w(k(Yt), {
2538
2598
  size: 14,
2539
2599
  "stroke-width": 1.5
2540
- })], 8, ji)
2541
- ], 8, Di)) : N("", !0),
2542
- v.value ? (f(), x("div", Mi, [b("span", Ni, [w(k(er), {
2600
+ })], 8, Li)
2601
+ ], 8, Ni)) : N("", !0),
2602
+ v.value ? (f(), x("div", Ri, [b("span", zi, [w(k(or), {
2543
2603
  size: 12,
2544
2604
  "stroke-width": 1.5
2545
2605
  }), O(" " + p(k(c)(k(s).blockActions.hiddenOnViewport, { viewport: S.value })), 1)])])) : N("", !0),
2546
- E.value && !v.value ? (f(), x("div", Pi, [b("button", {
2606
+ E.value && !v.value ? (f(), x("div", Bi, [b("button", {
2607
+ "data-testid": "condition-toggle",
2547
2608
  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:duration-150 tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-primary)] tpl:border tpl:border-[var(--tpl-border)]",
2548
2609
  "aria-label": k(s).blockActions.conditionToggle,
2549
2610
  title: e.block.displayCondition?.label,
2550
2611
  onClick: F(de, ["stop"])
2551
- }, [w(k(tr), {
2612
+ }, [w(k(sr), {
2552
2613
  size: 12,
2553
2614
  "stroke-width": 2
2554
- })], 8, Fi)])) : N("", !0),
2555
- ie.value > 0 && !v.value ? (f(), x("div", Ii, [b("button", {
2615
+ })], 8, Vi)])) : N("", !0),
2616
+ ie.value > 0 && !v.value ? (f(), x("div", Hi, [b("button", {
2556
2617
  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:duration-150 tpl:bg-[var(--tpl-chrome-primary-light)] tpl:text-[var(--tpl-primary)]",
2557
2618
  "aria-label": k(c)(k(s).blockActions.comments, { count: String(ie.value) }),
2558
2619
  onClick: r[0] ||= F((t) => k(j).comments?.openForBlock(e.block.id), ["stop"])
2559
- }, [w(k(Wt), {
2620
+ }, [w(k(Jt), {
2560
2621
  size: 12,
2561
2622
  "stroke-width": 2.5
2562
- }), O(" " + p(ie.value), 1)], 8, Li)])) : N("", !0),
2623
+ }), O(" " + p(ie.value), 1)], 8, Ui)])) : N("", !0),
2563
2624
  oe.value ? (f(), x("div", {
2564
2625
  key: 4,
2565
2626
  class: "tpl-section-wrapper",
@@ -2572,31 +2633,31 @@ var Ei = [
2572
2633
  class: "tpl-block-content",
2573
2634
  style: i(ae.value)
2574
2635
  }, [T(t.$slots, "default", {}, void 0, !0)], 4))
2575
- ], 10, Ei));
2636
+ ], 10, Mi));
2576
2637
  }
2577
- }), [["__scopeId", "data-v-43c10a08"]]);
2638
+ }), [["__scopeId", "data-v-8e4583ee"]]);
2578
2639
  //#endregion
2579
2640
  //#region src/utils/unwrapParagraph.ts
2580
- function zi(e) {
2641
+ function Gi(e) {
2581
2642
  let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
2582
2643
  return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
2583
2644
  }
2584
2645
  //#endregion
2585
2646
  //#region src/components/blocks/TitleBlock.vue
2586
- var Bi = /* @__PURE__ */ y({
2647
+ var Ki = /* @__PURE__ */ y({
2587
2648
  __name: "TitleBlock",
2588
2649
  props: {
2589
2650
  block: {},
2590
2651
  viewport: {}
2591
2652
  },
2592
2653
  setup(e) {
2593
- let t = e, n = C(() => import("./TitleEditor-F7E_pU9H.js")), { isEditing: r, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = yi(() => t.block.content), u = M(() => {
2654
+ let t = e, n = C(() => import("./TitleEditor-aMR1bOyY.js")), { isEditing: r, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = Ti(() => t.block.content), u = M(() => {
2594
2655
  let e = {
2595
- fontSize: `${ze[t.block.level]}px`,
2656
+ fontSize: `${Be[t.block.level]}px`,
2596
2657
  textAlign: t.block.textAlign
2597
2658
  };
2598
2659
  return t.block.color && (e.color = t.block.color), t.block.fontFamily && (e.fontFamily = t.block.fontFamily), e;
2599
- }), p = M(() => `h${t.block.level}`), m = M(() => zi(s.value));
2660
+ }), p = M(() => `h${t.block.level}`), m = M(() => Gi(s.value));
2600
2661
  return (t, s) => (f(), x("div", {
2601
2662
  ref_key: "blockRef",
2602
2663
  ref: a,
@@ -2622,88 +2683,88 @@ var Bi = /* @__PURE__ */ y({
2622
2683
  });
2623
2684
  //#endregion
2624
2685
  //#region src/utils/sectionColumnDrop.ts
2625
- function Vi(e) {
2686
+ function qi(e) {
2626
2687
  return e.dataset.blockType !== "section" && e.dataset.paletteType !== "section";
2627
2688
  }
2628
2689
  //#endregion
2629
2690
  //#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
2630
- var Hi = Object.defineProperty, Ui = Object.getOwnPropertySymbols, Wi = Object.prototype.hasOwnProperty, Gi = Object.prototype.propertyIsEnumerable, Ki = (e, t, n) => t in e ? Hi(e, t, {
2691
+ var Ji = Object.defineProperty, Yi = Object.getOwnPropertySymbols, Xi = Object.prototype.hasOwnProperty, Zi = Object.prototype.propertyIsEnumerable, Qi = (e, t, n) => t in e ? Ji(e, t, {
2631
2692
  enumerable: !0,
2632
2693
  configurable: !0,
2633
2694
  writable: !0,
2634
2695
  value: n
2635
- }) : e[t] = n, qi = (e, t) => {
2636
- for (var n in t ||= {}) Wi.call(t, n) && Ki(e, n, t[n]);
2637
- if (Ui) for (var n of Ui(t)) Gi.call(t, n) && Ki(e, n, t[n]);
2696
+ }) : e[t] = n, $i = (e, t) => {
2697
+ for (var n in t ||= {}) Xi.call(t, n) && Qi(e, n, t[n]);
2698
+ if (Yi) for (var n of Yi(t)) Zi.call(t, n) && Qi(e, n, t[n]);
2638
2699
  return e;
2639
- }, Ji = (e, t) => {
2700
+ }, ea = (e, t) => {
2640
2701
  var n = {};
2641
- for (var r in e) Wi.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
2642
- if (e != null && Ui) for (var r of Ui(e)) t.indexOf(r) < 0 && Gi.call(e, r) && (n[r] = e[r]);
2702
+ for (var r in e) Xi.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
2703
+ if (e != null && Yi) for (var r of Yi(e)) t.indexOf(r) < 0 && Zi.call(e, r) && (n[r] = e[r]);
2643
2704
  return n;
2644
- }, Yi = "[vue-draggable-plus]: ";
2645
- function Xi(e) {
2646
- console.warn(Yi + e);
2705
+ }, ta = "[vue-draggable-plus]: ";
2706
+ function na(e) {
2707
+ console.warn(ta + e);
2647
2708
  }
2648
- function Zi(e) {
2649
- console.error(Yi + e);
2709
+ function ra(e) {
2710
+ console.error(ta + e);
2650
2711
  }
2651
- function Qi(e, t, n) {
2712
+ function ia(e, t, n) {
2652
2713
  return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
2653
2714
  }
2654
- function $i(e) {
2715
+ function aa(e) {
2655
2716
  return e.replace(/-(\w)/g, (e, t) => t ? t.toUpperCase() : "");
2656
2717
  }
2657
- function ea(e) {
2658
- return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[$i(n)] = e[n]), t), {});
2718
+ function oa(e) {
2719
+ return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[aa(n)] = e[n]), t), {});
2659
2720
  }
2660
- function ta(e, t) {
2721
+ function sa(e, t) {
2661
2722
  return Array.isArray(e) && e.splice(t, 1), e;
2662
2723
  }
2663
- function na(e, t, n) {
2724
+ function ca(e, t, n) {
2664
2725
  return Array.isArray(e) && e.splice(t, 0, n), e;
2665
2726
  }
2666
- function ra(e) {
2727
+ function la(e) {
2667
2728
  return e === void 0;
2668
2729
  }
2669
- function ia(e) {
2730
+ function ua(e) {
2670
2731
  return typeof e == "string";
2671
2732
  }
2672
- function aa(e, t, n) {
2733
+ function da(e, t, n) {
2673
2734
  let r = e.children[n];
2674
2735
  e.insertBefore(t, r);
2675
2736
  }
2676
- function oa(e) {
2737
+ function fa(e) {
2677
2738
  e.parentNode && e.parentNode.removeChild(e);
2678
2739
  }
2679
- function sa(e, t = document) {
2740
+ function pa(e, t = document) {
2680
2741
  let n = null;
2681
- return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || Xi(`Element not found: ${e}`), n;
2742
+ return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || na(`Element not found: ${e}`), n;
2682
2743
  }
2683
- function ca(e, t, n = null) {
2744
+ function ma(e, t, n = null) {
2684
2745
  return function(...r) {
2685
2746
  return e.apply(n, r), t.apply(n, r);
2686
2747
  };
2687
2748
  }
2688
- function la(e, t) {
2689
- let n = qi({}, e);
2749
+ function ha(e, t) {
2750
+ let n = $i({}, e);
2690
2751
  return Object.keys(t).forEach((r) => {
2691
- n[r] ? n[r] = ca(e[r], t[r]) : n[r] = t[r];
2752
+ n[r] ? n[r] = ma(e[r], t[r]) : n[r] = t[r];
2692
2753
  }), n;
2693
2754
  }
2694
- function ua(e) {
2755
+ function ga(e) {
2695
2756
  return e instanceof HTMLElement;
2696
2757
  }
2697
- function da(e, t) {
2758
+ function _a(e, t) {
2698
2759
  Object.keys(e).forEach((n) => {
2699
2760
  t(n, e[n]);
2700
2761
  });
2701
2762
  }
2702
- function fa(e) {
2763
+ function va(e) {
2703
2764
  return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
2704
2765
  }
2705
- var pa = Object.assign;
2706
- function ma(e, t) {
2766
+ var ya = Object.assign;
2767
+ function ba(e, t) {
2707
2768
  var n = Object.keys(e);
2708
2769
  if (Object.getOwnPropertySymbols) {
2709
2770
  var r = Object.getOwnPropertySymbols(e);
@@ -2713,26 +2774,26 @@ function ma(e, t) {
2713
2774
  }
2714
2775
  return n;
2715
2776
  }
2716
- function ha(e) {
2777
+ function xa(e) {
2717
2778
  for (var t = 1; t < arguments.length; t++) {
2718
2779
  var n = arguments[t] == null ? {} : arguments[t];
2719
- t % 2 ? ma(Object(n), !0).forEach(function(t) {
2720
- _a(e, t, n[t]);
2721
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ma(Object(n)).forEach(function(t) {
2780
+ t % 2 ? ba(Object(n), !0).forEach(function(t) {
2781
+ Ca(e, t, n[t]);
2782
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ba(Object(n)).forEach(function(t) {
2722
2783
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
2723
2784
  });
2724
2785
  }
2725
2786
  return e;
2726
2787
  }
2727
- function ga(e) {
2788
+ function Sa(e) {
2728
2789
  "@babel/helpers - typeof";
2729
- return ga = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2790
+ return Sa = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2730
2791
  return typeof e;
2731
2792
  } : function(e) {
2732
2793
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2733
- }, ga(e);
2794
+ }, Sa(e);
2734
2795
  }
2735
- function _a(e, t, n) {
2796
+ function Ca(e, t, n) {
2736
2797
  return t in e ? Object.defineProperty(e, t, {
2737
2798
  value: n,
2738
2799
  enumerable: !0,
@@ -2740,45 +2801,45 @@ function _a(e, t, n) {
2740
2801
  writable: !0
2741
2802
  }) : e[t] = n, e;
2742
2803
  }
2743
- function va() {
2744
- return va = Object.assign || function(e) {
2804
+ function wa() {
2805
+ return wa = Object.assign || function(e) {
2745
2806
  for (var t = 1; t < arguments.length; t++) {
2746
2807
  var n = arguments[t];
2747
2808
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
2748
2809
  }
2749
2810
  return e;
2750
- }, va.apply(this, arguments);
2811
+ }, wa.apply(this, arguments);
2751
2812
  }
2752
- function ya(e, t) {
2813
+ function Ta(e, t) {
2753
2814
  if (e == null) return {};
2754
2815
  var n = {}, r = Object.keys(e), i, a;
2755
2816
  for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
2756
2817
  return n;
2757
2818
  }
2758
- function ba(e, t) {
2819
+ function Ea(e, t) {
2759
2820
  if (e == null) return {};
2760
- var n = ya(e, t), r, i;
2821
+ var n = Ta(e, t), r, i;
2761
2822
  if (Object.getOwnPropertySymbols) {
2762
2823
  var a = Object.getOwnPropertySymbols(e);
2763
2824
  for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
2764
2825
  }
2765
2826
  return n;
2766
2827
  }
2767
- var xa = "1.15.2";
2768
- function Sa(e) {
2828
+ var Da = "1.15.2";
2829
+ function Oa(e) {
2769
2830
  if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
2770
2831
  }
2771
- var Ca = Sa(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), wa = Sa(/Edge/i), Ta = Sa(/firefox/i), Ea = Sa(/safari/i) && !Sa(/chrome/i) && !Sa(/android/i), Da = Sa(/iP(ad|od|hone)/i), Oa = Sa(/chrome/i) && Sa(/android/i), ka = {
2832
+ var ka = Oa(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Aa = Oa(/Edge/i), ja = Oa(/firefox/i), Ma = Oa(/safari/i) && !Oa(/chrome/i) && !Oa(/android/i), Na = Oa(/iP(ad|od|hone)/i), Pa = Oa(/chrome/i) && Oa(/android/i), Fa = {
2772
2833
  capture: !1,
2773
2834
  passive: !1
2774
2835
  };
2775
2836
  function L(e, t, n) {
2776
- e.addEventListener(t, n, !Ca && ka);
2837
+ e.addEventListener(t, n, !ka && Fa);
2777
2838
  }
2778
2839
  function R(e, t, n) {
2779
- e.removeEventListener(t, n, !Ca && ka);
2840
+ e.removeEventListener(t, n, !ka && Fa);
2780
2841
  }
2781
- function Aa(e, t) {
2842
+ function Ia(e, t) {
2782
2843
  if (t) {
2783
2844
  if (t[0] === ">" && (t = t.substring(1)), e) try {
2784
2845
  if (e.matches) return e.matches(t);
@@ -2790,22 +2851,22 @@ function Aa(e, t) {
2790
2851
  return !1;
2791
2852
  }
2792
2853
  }
2793
- function ja(e) {
2854
+ function La(e) {
2794
2855
  return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
2795
2856
  }
2796
- function Ma(e, t, n, r) {
2857
+ function Ra(e, t, n, r) {
2797
2858
  if (e) {
2798
2859
  n ||= document;
2799
2860
  do {
2800
- if (t != null && (t[0] === ">" ? e.parentNode === n && Aa(e, t) : Aa(e, t)) || r && e === n) return e;
2861
+ if (t != null && (t[0] === ">" ? e.parentNode === n && Ia(e, t) : Ia(e, t)) || r && e === n) return e;
2801
2862
  if (e === n) break;
2802
- } while (e = ja(e));
2863
+ } while (e = La(e));
2803
2864
  }
2804
2865
  return null;
2805
2866
  }
2806
- var Na = /\s+/g;
2867
+ var za = /\s+/g;
2807
2868
  function z(e, t, n) {
2808
- e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(Na, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(Na, " "));
2869
+ e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(za, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(za, " "));
2809
2870
  }
2810
2871
  function B(e, t, n) {
2811
2872
  var r = e && e.style;
@@ -2814,7 +2875,7 @@ function B(e, t, n) {
2814
2875
  !(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
2815
2876
  }
2816
2877
  }
2817
- function Pa(e, t) {
2878
+ function Ba(e, t) {
2818
2879
  var n = "";
2819
2880
  if (typeof e == "string") n = e;
2820
2881
  else do {
@@ -2824,7 +2885,7 @@ function Pa(e, t) {
2824
2885
  var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
2825
2886
  return i && new i(n);
2826
2887
  }
2827
- function Fa(e, t, n) {
2888
+ function Va(e, t, n) {
2828
2889
  if (e) {
2829
2890
  var r = e.getElementsByTagName(t), i = 0, a = r.length;
2830
2891
  if (n) for (; i < a; i++) n(r[i], i);
@@ -2832,13 +2893,13 @@ function Fa(e, t, n) {
2832
2893
  }
2833
2894
  return [];
2834
2895
  }
2835
- function Ia() {
2896
+ function Ha() {
2836
2897
  return document.scrollingElement || document.documentElement;
2837
2898
  }
2838
2899
  function V(e, t, n, r, i) {
2839
2900
  if (!(!e.getBoundingClientRect && e !== window)) {
2840
2901
  var a, o, s, c, l, u, d;
2841
- if (e !== window && e.parentNode && e !== Ia() ? (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, !Ca)) do
2902
+ if (e !== window && e.parentNode && e !== Ha() ? (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, !ka)) do
2842
2903
  if (i && i.getBoundingClientRect && (B(i, "transform") !== "none" || n && B(i, "position") !== "static")) {
2843
2904
  var f = i.getBoundingClientRect();
2844
2905
  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;
@@ -2846,7 +2907,7 @@ function V(e, t, n, r, i) {
2846
2907
  }
2847
2908
  while (i = i.parentNode);
2848
2909
  if (r && e !== window) {
2849
- var p = Pa(i || e), m = p && p.a, h = p && p.d;
2910
+ var p = Ba(i || e), m = p && p.a, h = p && p.d;
2850
2911
  p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
2851
2912
  }
2852
2913
  return {
@@ -2859,18 +2920,18 @@ function V(e, t, n, r, i) {
2859
2920
  };
2860
2921
  }
2861
2922
  }
2862
- function La(e, t, n) {
2863
- for (var r = Ua(e, !0), i = V(e)[t]; r;) {
2923
+ function Ua(e, t, n) {
2924
+ for (var r = Ya(e, !0), i = V(e)[t]; r;) {
2864
2925
  var a = V(r)[n], o = void 0;
2865
2926
  if (o = i >= a, !o) return r;
2866
- if (r === Ia()) break;
2867
- r = Ua(r, !1);
2927
+ if (r === Ha()) break;
2928
+ r = Ya(r, !1);
2868
2929
  }
2869
2930
  return !1;
2870
2931
  }
2871
- function Ra(e, t, n, r) {
2932
+ function Wa(e, t, n, r) {
2872
2933
  for (var i = 0, a = 0, o = e.children; a < o.length;) {
2873
- if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && Ma(o[a], n.draggable, e, !1)) {
2934
+ if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && Ra(o[a], n.draggable, e, !1)) {
2874
2935
  if (i === t) return o[a];
2875
2936
  i++;
2876
2937
  }
@@ -2878,84 +2939,84 @@ function Ra(e, t, n, r) {
2878
2939
  }
2879
2940
  return null;
2880
2941
  }
2881
- function za(e, t) {
2882
- for (var n = e.lastElementChild; n && (n === Q.ghost || B(n, "display") === "none" || t && !Aa(n, t));) n = n.previousElementSibling;
2942
+ function Ga(e, t) {
2943
+ for (var n = e.lastElementChild; n && (n === Q.ghost || B(n, "display") === "none" || t && !Ia(n, t));) n = n.previousElementSibling;
2883
2944
  return n || null;
2884
2945
  }
2885
- function Ba(e, t) {
2946
+ function Ka(e, t) {
2886
2947
  var n = 0;
2887
2948
  if (!e || !e.parentNode) return -1;
2888
- for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || Aa(e, t)) && n++;
2949
+ for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || Ia(e, t)) && n++;
2889
2950
  return n;
2890
2951
  }
2891
- function Va(e) {
2892
- var t = 0, n = 0, r = Ia();
2952
+ function qa(e) {
2953
+ var t = 0, n = 0, r = Ha();
2893
2954
  if (e) do {
2894
- var i = Pa(e), a = i.a, o = i.d;
2955
+ var i = Ba(e), a = i.a, o = i.d;
2895
2956
  t += e.scrollLeft * a, n += e.scrollTop * o;
2896
2957
  } while (e !== r && (e = e.parentNode));
2897
2958
  return [t, n];
2898
2959
  }
2899
- function Ha(e, t) {
2960
+ function Ja(e, t) {
2900
2961
  for (var n in e) if (e.hasOwnProperty(n)) {
2901
2962
  for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
2902
2963
  }
2903
2964
  return -1;
2904
2965
  }
2905
- function Ua(e, t) {
2906
- if (!e || !e.getBoundingClientRect) return Ia();
2966
+ function Ya(e, t) {
2967
+ if (!e || !e.getBoundingClientRect) return Ha();
2907
2968
  var n = e, r = !1;
2908
2969
  do
2909
2970
  if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
2910
2971
  var i = B(n);
2911
2972
  if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
2912
- if (!n.getBoundingClientRect || n === document.body) return Ia();
2973
+ if (!n.getBoundingClientRect || n === document.body) return Ha();
2913
2974
  if (r || t) return n;
2914
2975
  r = !0;
2915
2976
  }
2916
2977
  }
2917
2978
  while (n = n.parentNode);
2918
- return Ia();
2979
+ return Ha();
2919
2980
  }
2920
- function Wa(e, t) {
2981
+ function Xa(e, t) {
2921
2982
  if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
2922
2983
  return e;
2923
2984
  }
2924
- function Ga(e, t) {
2985
+ function Za(e, t) {
2925
2986
  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);
2926
2987
  }
2927
- var Ka;
2928
- function qa(e, t) {
2988
+ var Qa;
2989
+ function $a(e, t) {
2929
2990
  return function() {
2930
- if (!Ka) {
2991
+ if (!Qa) {
2931
2992
  var n = arguments, r = this;
2932
- n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), Ka = setTimeout(function() {
2933
- Ka = void 0;
2993
+ n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), Qa = setTimeout(function() {
2994
+ Qa = void 0;
2934
2995
  }, t);
2935
2996
  }
2936
2997
  };
2937
2998
  }
2938
- function Ja() {
2939
- clearTimeout(Ka), Ka = void 0;
2999
+ function eo() {
3000
+ clearTimeout(Qa), Qa = void 0;
2940
3001
  }
2941
- function Ya(e, t, n) {
3002
+ function to(e, t, n) {
2942
3003
  e.scrollLeft += t, e.scrollTop += n;
2943
3004
  }
2944
- function Xa(e) {
3005
+ function no(e) {
2945
3006
  var t = window.Polymer, n = window.jQuery || window.Zepto;
2946
3007
  return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
2947
3008
  }
2948
- function Za(e, t, n) {
3009
+ function ro(e, t, n) {
2949
3010
  var r = {};
2950
3011
  return Array.from(e.children).forEach(function(i) {
2951
- if (!(!Ma(i, t.draggable, e, !1) || i.animated || i === n)) {
3012
+ if (!(!Ra(i, t.draggable, e, !1) || i.animated || i === n)) {
2952
3013
  var a = V(i);
2953
3014
  r.left = Math.min(r.left ?? Infinity, a.left), r.top = Math.min(r.top ?? Infinity, a.top), r.right = Math.max(r.right ?? -Infinity, a.right), r.bottom = Math.max(r.bottom ?? -Infinity, a.bottom);
2954
3015
  }
2955
3016
  }), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
2956
3017
  }
2957
- var Qa = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
2958
- function $a() {
3018
+ var H = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
3019
+ function io() {
2959
3020
  var e = [], t;
2960
3021
  return {
2961
3022
  captureAnimationState: function() {
@@ -2965,9 +3026,9 @@ function $a() {
2965
3026
  target: t,
2966
3027
  rect: V(t)
2967
3028
  });
2968
- var n = ha({}, e[e.length - 1].rect);
3029
+ var n = xa({}, e[e.length - 1].rect);
2969
3030
  if (t.thisAnimationDuration) {
2970
- var r = Pa(t, !0);
3031
+ var r = Ba(t, !0);
2971
3032
  r && (n.top -= r.f, n.left -= r.e);
2972
3033
  }
2973
3034
  t.fromRect = n;
@@ -2978,7 +3039,7 @@ function $a() {
2978
3039
  e.push(t);
2979
3040
  },
2980
3041
  removeAnimationState: function(t) {
2981
- e.splice(Ha(e, { target: t }), 1);
3042
+ e.splice(Ja(e, { target: t }), 1);
2982
3043
  },
2983
3044
  animateAll: function(n) {
2984
3045
  var r = this;
@@ -2988,8 +3049,8 @@ function $a() {
2988
3049
  }
2989
3050
  var i = !1, a = 0;
2990
3051
  e.forEach(function(e) {
2991
- var t = 0, n = e.target, o = n.fromRect, s = V(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = Pa(n, !0);
2992
- d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Ga(c, s) && !Ga(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = to(u, c, l, r.options)), Ga(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() {
3052
+ var t = 0, n = e.target, o = n.fromRect, s = V(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = Ba(n, !0);
3053
+ d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Za(c, s) && !Za(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = oo(u, c, l, r.options)), Za(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() {
2993
3054
  n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
2994
3055
  }, t), n.thisAnimationDuration = t);
2995
3056
  }), clearTimeout(t), i ? t = setTimeout(function() {
@@ -2999,26 +3060,26 @@ function $a() {
2999
3060
  animate: function(e, t, n, r) {
3000
3061
  if (r) {
3001
3062
  B(e, "transition", ""), B(e, "transform", "");
3002
- var i = Pa(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
3003
- 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() {
3063
+ var i = Ba(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
3064
+ e.animatingX = !!s, e.animatingY = !!c, B(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = ao(e), B(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), B(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
3004
3065
  B(e, "transition", ""), B(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
3005
3066
  }, r);
3006
3067
  }
3007
3068
  }
3008
3069
  };
3009
3070
  }
3010
- function eo(e) {
3071
+ function ao(e) {
3011
3072
  return e.offsetWidth;
3012
3073
  }
3013
- function to(e, t, n, r) {
3074
+ function oo(e, t, n, r) {
3014
3075
  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;
3015
3076
  }
3016
- var no = [], ro = { initializeByDefault: !0 }, io = {
3077
+ var so = [], co = { initializeByDefault: !0 }, lo = {
3017
3078
  mount: function(e) {
3018
- for (var t in ro) ro.hasOwnProperty(t) && !(t in e) && (e[t] = ro[t]);
3019
- no.forEach(function(t) {
3079
+ for (var t in co) co.hasOwnProperty(t) && !(t in e) && (e[t] = co[t]);
3080
+ so.forEach(function(t) {
3020
3081
  if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
3021
- }), no.push(e);
3082
+ }), so.push(e);
3022
3083
  },
3023
3084
  pluginEvent: function(e, t, n) {
3024
3085
  var r = this;
@@ -3026,16 +3087,16 @@ var no = [], ro = { initializeByDefault: !0 }, io = {
3026
3087
  r.eventCanceled = !0;
3027
3088
  };
3028
3089
  var i = e + "Global";
3029
- no.forEach(function(r) {
3030
- t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](ha({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](ha({ sortable: t }, n)));
3090
+ so.forEach(function(r) {
3091
+ t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](xa({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](xa({ sortable: t }, n)));
3031
3092
  });
3032
3093
  },
3033
3094
  initializePlugins: function(e, t, n, r) {
3034
- for (var i in no.forEach(function(r) {
3095
+ for (var i in so.forEach(function(r) {
3035
3096
  var i = r.pluginName;
3036
3097
  if (!(!e.options[i] && !r.initializeByDefault)) {
3037
3098
  var a = new r(e, t, e.options);
3038
- a.sortable = e, a.options = e.options, e[i] = a, va(n, a.defaults);
3099
+ a.sortable = e, a.options = e.options, e[i] = a, wa(n, a.defaults);
3039
3100
  }
3040
3101
  }), e.options) if (e.options.hasOwnProperty(i)) {
3041
3102
  var a = this.modifyOption(e, i, e.options[i]);
@@ -3044,59 +3105,59 @@ var no = [], ro = { initializeByDefault: !0 }, io = {
3044
3105
  },
3045
3106
  getEventProperties: function(e, t) {
3046
3107
  var n = {};
3047
- return no.forEach(function(r) {
3048
- typeof r.eventProperties == "function" && va(n, r.eventProperties.call(t[r.pluginName], e));
3108
+ return so.forEach(function(r) {
3109
+ typeof r.eventProperties == "function" && wa(n, r.eventProperties.call(t[r.pluginName], e));
3049
3110
  }), n;
3050
3111
  },
3051
3112
  modifyOption: function(e, t, n) {
3052
3113
  var r;
3053
- return no.forEach(function(i) {
3114
+ return so.forEach(function(i) {
3054
3115
  e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
3055
3116
  }), r;
3056
3117
  }
3057
3118
  };
3058
- function ao(e) {
3119
+ function uo(e) {
3059
3120
  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;
3060
- if (t ||= n && n[Qa], t) {
3121
+ if (t ||= n && n[H], t) {
3061
3122
  var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
3062
- window.CustomEvent && !Ca && !wa ? h = new CustomEvent(r, {
3123
+ window.CustomEvent && !ka && !Aa ? h = new CustomEvent(r, {
3063
3124
  bubbles: !0,
3064
3125
  cancelable: !0
3065
3126
  }) : (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;
3066
- var v = ha(ha({}, m), io.getEventProperties(r, t));
3127
+ var v = xa(xa({}, m), lo.getEventProperties(r, t));
3067
3128
  for (var y in v) h[y] = v[y];
3068
3129
  n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
3069
3130
  }
3070
3131
  }
3071
- var oo = ["evt"], H = function(e, t) {
3072
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = ba(n, oo);
3073
- io.pluginEvent.bind(Q)(e, t, ha({
3074
- dragEl: W,
3075
- parentEl: G,
3076
- ghostEl: K,
3077
- rootEl: q,
3078
- nextEl: so,
3079
- lastDownEl: co,
3080
- cloneEl: J,
3081
- cloneHidden: lo,
3082
- dragStarted: wo,
3132
+ var fo = ["evt"], U = function(e, t) {
3133
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = Ea(n, fo);
3134
+ lo.pluginEvent.bind(Q)(e, t, xa({
3135
+ dragEl: G,
3136
+ parentEl: K,
3137
+ ghostEl: q,
3138
+ rootEl: J,
3139
+ nextEl: po,
3140
+ lastDownEl: mo,
3141
+ cloneEl: Y,
3142
+ cloneHidden: ho,
3143
+ dragStarted: Ao,
3083
3144
  putSortable: X,
3084
3145
  activeSortable: Q.active,
3085
3146
  originalEvent: r,
3086
- oldIndex: uo,
3087
- oldDraggableIndex: fo,
3088
- newIndex: Y,
3089
- newDraggableIndex: po,
3090
- hideGhostForTarget: Ho,
3091
- unhideGhostForTarget: Uo,
3147
+ oldIndex: go,
3148
+ oldDraggableIndex: vo,
3149
+ newIndex: _o,
3150
+ newDraggableIndex: yo,
3151
+ hideGhostForTarget: Jo,
3152
+ unhideGhostForTarget: Yo,
3092
3153
  cloneNowHidden: function() {
3093
- lo = !0;
3154
+ ho = !0;
3094
3155
  },
3095
3156
  cloneNowShown: function() {
3096
- lo = !1;
3157
+ ho = !1;
3097
3158
  },
3098
3159
  dispatchSortableEvent: function(e) {
3099
- U({
3160
+ W({
3100
3161
  sortable: t,
3101
3162
  name: e,
3102
3163
  originalEvent: r
@@ -3104,46 +3165,46 @@ var oo = ["evt"], H = function(e, t) {
3104
3165
  }
3105
3166
  }, i));
3106
3167
  };
3107
- function U(e) {
3108
- ao(ha({
3168
+ function W(e) {
3169
+ uo(xa({
3109
3170
  putSortable: X,
3110
- cloneEl: J,
3111
- targetEl: W,
3112
- rootEl: q,
3113
- oldIndex: uo,
3114
- oldDraggableIndex: fo,
3115
- newIndex: Y,
3116
- newDraggableIndex: po
3171
+ cloneEl: Y,
3172
+ targetEl: G,
3173
+ rootEl: J,
3174
+ oldIndex: go,
3175
+ oldDraggableIndex: vo,
3176
+ newIndex: _o,
3177
+ newDraggableIndex: yo
3117
3178
  }, e));
3118
3179
  }
3119
- var W, G, K, q, so, co, J, lo, uo, Y, fo, po, mo, X, ho = !1, go = !1, _o = [], vo, yo, bo, xo, So, Co, wo, To, Eo, Do = !1, Oo = !1, ko, Z, Ao = [], jo = !1, Mo = [], No = typeof document < "u", Po = Da, Fo = wa || Ca ? "cssFloat" : "float", Io = No && !Oa && !Da && "draggable" in document.createElement("div"), Lo = function() {
3120
- if (No) {
3121
- if (Ca) return !1;
3180
+ var G, K, q, J, po, mo, Y, ho, go, _o, vo, yo, bo, X, xo = !1, So = !1, Co = [], wo, To, Eo, Do, Oo, ko, Ao, jo, Mo, No = !1, Po = !1, Fo, Z, Io = [], Lo = !1, Ro = [], zo = typeof document < "u", Bo = Na, Vo = Aa || ka ? "cssFloat" : "float", Ho = zo && !Pa && !Na && "draggable" in document.createElement("div"), Uo = function() {
3181
+ if (zo) {
3182
+ if (ka) return !1;
3122
3183
  var e = document.createElement("x");
3123
3184
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
3124
3185
  }
3125
- }(), Ro = function(e, t) {
3126
- var n = B(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = Ra(e, 0, t), a = Ra(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;
3186
+ }(), Wo = function(e, t) {
3187
+ var n = B(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = Wa(e, 0, t), a = Wa(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;
3127
3188
  if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
3128
3189
  if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
3129
3190
  if (i && o.float && o.float !== "none") {
3130
3191
  var u = o.float === "left" ? "left" : "right";
3131
3192
  return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
3132
3193
  }
3133
- return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Fo] === "none" || a && n[Fo] === "none" && c + l > r) ? "vertical" : "horizontal";
3134
- }, zo = function(e, t, n) {
3194
+ return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Vo] === "none" || a && n[Vo] === "none" && c + l > r) ? "vertical" : "horizontal";
3195
+ }, Go = function(e, t, n) {
3135
3196
  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;
3136
3197
  return r === o || i === s || r + a / 2 === o + c / 2;
3137
- }, Bo = function(e, t) {
3198
+ }, Ko = function(e, t) {
3138
3199
  var n;
3139
- return _o.some(function(r) {
3140
- var i = r[Qa].options.emptyInsertThreshold;
3141
- if (!(!i || za(r))) {
3200
+ return Co.some(function(r) {
3201
+ var i = r[H].options.emptyInsertThreshold;
3202
+ if (!(!i || Ga(r))) {
3142
3203
  var a = V(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
3143
3204
  if (o && s) return n = r;
3144
3205
  }
3145
3206
  }), n;
3146
- }, Vo = function(e) {
3207
+ }, qo = function(e) {
3147
3208
  function t(e, n) {
3148
3209
  return function(r, i, a, o) {
3149
3210
  var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
@@ -3156,31 +3217,31 @@ var W, G, K, q, so, co, J, lo, uo, Y, fo, po, mo, X, ho = !1, go = !1, _o = [],
3156
3217
  };
3157
3218
  }
3158
3219
  var n = {}, r = e.group;
3159
- (!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;
3160
- }, Ho = function() {
3161
- !Lo && K && B(K, "display", "none");
3162
- }, Uo = function() {
3163
- !Lo && K && B(K, "display", "");
3220
+ (!r || Sa(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;
3221
+ }, Jo = function() {
3222
+ !Uo && q && B(q, "display", "none");
3223
+ }, Yo = function() {
3224
+ !Uo && q && B(q, "display", "");
3164
3225
  };
3165
- No && !Oa && document.addEventListener("click", function(e) {
3166
- if (go) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), go = !1, !1;
3226
+ zo && !Pa && document.addEventListener("click", function(e) {
3227
+ if (So) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), So = !1, !1;
3167
3228
  }, !0);
3168
- var Wo = function(e) {
3169
- if (W) {
3229
+ var Xo = function(e) {
3230
+ if (G) {
3170
3231
  e = e.touches ? e.touches[0] : e;
3171
- var t = Bo(e.clientX, e.clientY);
3232
+ var t = Ko(e.clientX, e.clientY);
3172
3233
  if (t) {
3173
3234
  var n = {};
3174
3235
  for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
3175
- n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[Qa]._onDragOver(n);
3236
+ n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[H]._onDragOver(n);
3176
3237
  }
3177
3238
  }
3178
- }, Go = function(e) {
3179
- W && W.parentNode[Qa]._isOutsideThisEl(e.target);
3239
+ }, Zo = function(e) {
3240
+ G && G.parentNode[H]._isOutsideThisEl(e.target);
3180
3241
  };
3181
3242
  function Q(e, t) {
3182
3243
  if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
3183
- this.el = e, this.options = t = va({}, t), e[Qa] = this;
3244
+ this.el = e, this.options = t = wa({}, t), e[H] = this;
3184
3245
  var n = {
3185
3246
  group: null,
3186
3247
  sort: !0,
@@ -3193,7 +3254,7 @@ function Q(e, t) {
3193
3254
  invertedSwapThreshold: null,
3194
3255
  removeCloneOnHide: !0,
3195
3256
  direction: function() {
3196
- return Ro(e, this.options);
3257
+ return Wo(e, this.options);
3197
3258
  },
3198
3259
  ghostClass: "sortable-ghost",
3199
3260
  chosenClass: "sortable-chosen",
@@ -3220,75 +3281,75 @@ function Q(e, t) {
3220
3281
  x: 0,
3221
3282
  y: 0
3222
3283
  },
3223
- supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !Ea,
3284
+ supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !Ma,
3224
3285
  emptyInsertThreshold: 5
3225
3286
  };
3226
- for (var r in io.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
3227
- for (var i in Vo(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
3228
- this.nativeDraggable = !t.forceFallback && Io, 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)), _o.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), va(this, $a());
3287
+ for (var r in lo.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
3288
+ for (var i in qo(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
3289
+ this.nativeDraggable = !t.forceFallback && Ho, 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)), Co.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), wa(this, io());
3229
3290
  }
3230
3291
  Q.prototype = {
3231
3292
  constructor: Q,
3232
3293
  _isOutsideThisEl: function(e) {
3233
- !this.el.contains(e) && e !== this.el && (To = null);
3294
+ !this.el.contains(e) && e !== this.el && (jo = null);
3234
3295
  },
3235
3296
  _getDirection: function(e, t) {
3236
- return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, W) : this.options.direction;
3297
+ return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, G) : this.options.direction;
3237
3298
  },
3238
3299
  _onTapStart: function(e) {
3239
3300
  if (e.cancelable) {
3240
3301
  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;
3241
- if (ts(n), !W && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && Ea && s && s.tagName.toUpperCase() === "SELECT") && (s = Ma(s, r.draggable, n, !1), !(s && s.animated) && co !== s)) {
3242
- if (uo = Ba(s), fo = Ba(s, r.draggable), typeof l == "function") {
3302
+ if (ss(n), !G && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && Ma && s && s.tagName.toUpperCase() === "SELECT") && (s = Ra(s, r.draggable, n, !1), !(s && s.animated) && mo !== s)) {
3303
+ if (go = Ka(s), vo = Ka(s, r.draggable), typeof l == "function") {
3243
3304
  if (l.call(this, e, s, this)) {
3244
- U({
3305
+ W({
3245
3306
  sortable: t,
3246
3307
  rootEl: c,
3247
3308
  name: "filter",
3248
3309
  targetEl: s,
3249
3310
  toEl: n,
3250
3311
  fromEl: n
3251
- }), H("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
3312
+ }), U("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
3252
3313
  return;
3253
3314
  }
3254
3315
  } else if (l && (l = l.split(",").some(function(r) {
3255
- if (r = Ma(c, r.trim(), n, !1), r) return U({
3316
+ if (r = Ra(c, r.trim(), n, !1), r) return W({
3256
3317
  sortable: t,
3257
3318
  rootEl: r,
3258
3319
  name: "filter",
3259
3320
  targetEl: s,
3260
3321
  fromEl: n,
3261
3322
  toEl: n
3262
- }), H("filter", t, { evt: e }), !0;
3323
+ }), U("filter", t, { evt: e }), !0;
3263
3324
  }), l)) {
3264
3325
  i && e.cancelable && e.preventDefault();
3265
3326
  return;
3266
3327
  }
3267
- r.handle && !Ma(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
3328
+ r.handle && !Ra(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
3268
3329
  }
3269
3330
  }
3270
3331
  },
3271
3332
  _prepareDragStart: function(e, t, n) {
3272
3333
  var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
3273
- if (n && !W && n.parentNode === i) {
3334
+ if (n && !G && n.parentNode === i) {
3274
3335
  var c = V(n);
3275
- if (q = i, W = n, G = W.parentNode, so = W.nextSibling, co = n, mo = a.group, Q.dragged = W, vo = {
3276
- target: W,
3336
+ if (J = i, G = n, K = G.parentNode, po = G.nextSibling, mo = n, bo = a.group, Q.dragged = G, wo = {
3337
+ target: G,
3277
3338
  clientX: (t || e).clientX,
3278
3339
  clientY: (t || e).clientY
3279
- }, So = vo.clientX - c.left, Co = vo.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, W.style["will-change"] = "all", s = function() {
3280
- if (H("delayEnded", r, { evt: e }), Q.eventCanceled) {
3340
+ }, Oo = wo.clientX - c.left, ko = wo.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, G.style["will-change"] = "all", s = function() {
3341
+ if (U("delayEnded", r, { evt: e }), Q.eventCanceled) {
3281
3342
  r._onDrop();
3282
3343
  return;
3283
3344
  }
3284
- r._disableDelayedDragEvents(), !Ta && r.nativeDraggable && (W.draggable = !0), r._triggerDragStart(e, t), U({
3345
+ r._disableDelayedDragEvents(), !ja && r.nativeDraggable && (G.draggable = !0), r._triggerDragStart(e, t), W({
3285
3346
  sortable: r,
3286
3347
  name: "choose",
3287
3348
  originalEvent: e
3288
- }), z(W, a.chosenClass, !0);
3349
+ }), z(G, a.chosenClass, !0);
3289
3350
  }, a.ignore.split(",").forEach(function(e) {
3290
- Fa(W, e.trim(), Jo);
3291
- }), L(o, "dragover", Wo), L(o, "mousemove", Wo), L(o, "touchmove", Wo), L(o, "mouseup", r._onDrop), L(o, "touchend", r._onDrop), L(o, "touchcancel", r._onDrop), Ta && this.nativeDraggable && (this.options.touchStartThreshold = 4, W.draggable = !0), H("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(wa || Ca))) {
3351
+ Va(G, e.trim(), es);
3352
+ }), L(o, "dragover", Xo), L(o, "mousemove", Xo), L(o, "touchmove", Xo), L(o, "mouseup", r._onDrop), L(o, "touchend", r._onDrop), L(o, "touchcancel", r._onDrop), ja && this.nativeDraggable && (this.options.touchStartThreshold = 4, G.draggable = !0), U("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Aa || ka))) {
3292
3353
  if (Q.eventCanceled) {
3293
3354
  this._onDrop();
3294
3355
  return;
@@ -3302,25 +3363,25 @@ Q.prototype = {
3302
3363
  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();
3303
3364
  },
3304
3365
  _disableDelayedDrag: function() {
3305
- W && Jo(W), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
3366
+ G && es(G), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
3306
3367
  },
3307
3368
  _disableDelayedDragEvents: function() {
3308
3369
  var e = this.el.ownerDocument;
3309
3370
  R(e, "mouseup", this._disableDelayedDrag), R(e, "touchend", this._disableDelayedDrag), R(e, "touchcancel", this._disableDelayedDrag), R(e, "mousemove", this._delayedDragTouchMoveHandler), R(e, "touchmove", this._delayedDragTouchMoveHandler), R(e, "pointermove", this._delayedDragTouchMoveHandler);
3310
3371
  },
3311
3372
  _triggerDragStart: function(e, t) {
3312
- t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? L(document, "pointermove", this._onTouchMove) : t ? L(document, "touchmove", this._onTouchMove) : L(document, "mousemove", this._onTouchMove) : (L(W, "dragend", this), L(q, "dragstart", this._onDragStart));
3373
+ 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));
3313
3374
  try {
3314
- document.selection ? ns(function() {
3375
+ document.selection ? cs(function() {
3315
3376
  document.selection.empty();
3316
3377
  }) : window.getSelection().removeAllRanges();
3317
3378
  } catch {}
3318
3379
  },
3319
3380
  _dragStarted: function(e, t) {
3320
- if (ho = !1, q && W) {
3321
- H("dragStarted", this, { evt: t }), this.nativeDraggable && L(document, "dragover", Go);
3381
+ if (xo = !1, J && G) {
3382
+ U("dragStarted", this, { evt: t }), this.nativeDraggable && L(document, "dragover", Zo);
3322
3383
  var n = this.options;
3323
- !e && z(W, n.dragClass, !1), z(W, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), U({
3384
+ !e && z(G, n.dragClass, !1), z(G, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), W({
3324
3385
  sortable: this,
3325
3386
  name: "start",
3326
3387
  originalEvent: t
@@ -3328,33 +3389,33 @@ Q.prototype = {
3328
3389
  } else this._nulling();
3329
3390
  },
3330
3391
  _emulateDragOver: function() {
3331
- if (yo) {
3332
- this._lastX = yo.clientX, this._lastY = yo.clientY, Ho();
3333
- for (var e = document.elementFromPoint(yo.clientX, yo.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(yo.clientX, yo.clientY), e !== t);) t = e;
3334
- if (W.parentNode[Qa]._isOutsideThisEl(e), t) do {
3335
- if (t[Qa]) {
3392
+ if (To) {
3393
+ this._lastX = To.clientX, this._lastY = To.clientY, Jo();
3394
+ for (var e = document.elementFromPoint(To.clientX, To.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(To.clientX, To.clientY), e !== t);) t = e;
3395
+ if (G.parentNode[H]._isOutsideThisEl(e), t) do {
3396
+ if (t[H]) {
3336
3397
  var n = void 0;
3337
- if (n = t[Qa]._onDragOver({
3338
- clientX: yo.clientX,
3339
- clientY: yo.clientY,
3398
+ if (n = t[H]._onDragOver({
3399
+ clientX: To.clientX,
3400
+ clientY: To.clientY,
3340
3401
  target: e,
3341
3402
  rootEl: t
3342
3403
  }), n && !this.options.dragoverBubble) break;
3343
3404
  }
3344
3405
  e = t;
3345
3406
  } while (t = t.parentNode);
3346
- Uo();
3407
+ Yo();
3347
3408
  }
3348
3409
  },
3349
3410
  _onTouchMove: function(e) {
3350
- if (vo) {
3351
- var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = K && Pa(K, !0), o = K && a && a.a, s = K && a && a.d, c = Po && Z && Va(Z), l = (i.clientX - vo.clientX + r.x) / (o || 1) + (c ? c[0] - Ao[0] : 0) / (o || 1), u = (i.clientY - vo.clientY + r.y) / (s || 1) + (c ? c[1] - Ao[1] : 0) / (s || 1);
3352
- if (!Q.active && !ho) {
3411
+ if (wo) {
3412
+ var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q && Ba(q, !0), o = q && a && a.a, s = q && a && a.d, c = Bo && Z && qa(Z), l = (i.clientX - wo.clientX + r.x) / (o || 1) + (c ? c[0] - Io[0] : 0) / (o || 1), u = (i.clientY - wo.clientY + r.y) / (s || 1) + (c ? c[1] - Io[1] : 0) / (s || 1);
3413
+ if (!Q.active && !xo) {
3353
3414
  if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
3354
3415
  this._onDragStart(e, !0);
3355
3416
  }
3356
- if (K) {
3357
- a ? (a.e += l - (bo || 0), a.f += u - (xo || 0)) : a = {
3417
+ if (q) {
3418
+ a ? (a.e += l - (Eo || 0), a.f += u - (Do || 0)) : a = {
3358
3419
  a: 1,
3359
3420
  b: 0,
3360
3421
  c: 0,
@@ -3363,39 +3424,39 @@ Q.prototype = {
3363
3424
  f: u
3364
3425
  };
3365
3426
  var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
3366
- B(K, "webkitTransform", d), B(K, "mozTransform", d), B(K, "msTransform", d), B(K, "transform", d), bo = l, xo = u, yo = i;
3427
+ B(q, "webkitTransform", d), B(q, "mozTransform", d), B(q, "msTransform", d), B(q, "transform", d), Eo = l, Do = u, To = i;
3367
3428
  }
3368
3429
  e.cancelable && e.preventDefault();
3369
3430
  }
3370
3431
  },
3371
3432
  _appendGhost: function() {
3372
- if (!K) {
3373
- var e = this.options.fallbackOnBody ? document.body : q, t = V(W, !0, Po, !0, e), n = this.options;
3374
- if (Po) {
3433
+ if (!q) {
3434
+ var e = this.options.fallbackOnBody ? document.body : J, t = V(G, !0, Bo, !0, e), n = this.options;
3435
+ if (Bo) {
3375
3436
  for (Z = e; B(Z, "position") === "static" && B(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
3376
- Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = Ia()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = Ia(), Ao = Va(Z);
3437
+ Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = Ha()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = Ha(), Io = qa(Z);
3377
3438
  }
3378
- K = W.cloneNode(!0), z(K, n.ghostClass, !1), z(K, n.fallbackClass, !0), z(K, n.dragClass, !0), B(K, "transition", ""), B(K, "transform", ""), B(K, "box-sizing", "border-box"), B(K, "margin", 0), B(K, "top", t.top), B(K, "left", t.left), B(K, "width", t.width), B(K, "height", t.height), B(K, "opacity", "0.8"), B(K, "position", Po ? "absolute" : "fixed"), B(K, "zIndex", "100000"), B(K, "pointerEvents", "none"), Q.ghost = K, e.appendChild(K), B(K, "transform-origin", So / parseInt(K.style.width) * 100 + "% " + Co / parseInt(K.style.height) * 100 + "%");
3439
+ 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", Bo ? "absolute" : "fixed"), B(q, "zIndex", "100000"), B(q, "pointerEvents", "none"), Q.ghost = q, e.appendChild(q), B(q, "transform-origin", Oo / parseInt(q.style.width) * 100 + "% " + ko / parseInt(q.style.height) * 100 + "%");
3379
3440
  }
3380
3441
  },
3381
3442
  _onDragStart: function(e, t) {
3382
3443
  var n = this, r = e.dataTransfer, i = n.options;
3383
- if (H("dragStart", this, { evt: e }), Q.eventCanceled) {
3444
+ if (U("dragStart", this, { evt: e }), Q.eventCanceled) {
3384
3445
  this._onDrop();
3385
3446
  return;
3386
3447
  }
3387
- H("setupClone", this), Q.eventCanceled || (J = Xa(W), J.removeAttribute("id"), J.draggable = !1, J.style["will-change"] = "", this._hideClone(), z(J, this.options.chosenClass, !1), Q.clone = J), n.cloneId = ns(function() {
3388
- H("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || q.insertBefore(J, W), n._hideClone(), U({
3448
+ U("setupClone", this), Q.eventCanceled || (Y = no(G), Y.removeAttribute("id"), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), z(Y, this.options.chosenClass, !1), Q.clone = Y), n.cloneId = cs(function() {
3449
+ U("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || J.insertBefore(Y, G), n._hideClone(), W({
3389
3450
  sortable: n,
3390
3451
  name: "clone"
3391
3452
  }));
3392
- }), !t && z(W, i.dragClass, !0), t ? (go = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (R(document, "mouseup", n._onDrop), R(document, "touchend", n._onDrop), R(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, W)), L(document, "drop", n), B(W, "transform", "translateZ(0)")), ho = !0, n._dragStartId = ns(n._dragStarted.bind(n, t, e)), L(document, "selectstart", n), wo = !0, Ea && B(document.body, "user-select", "none");
3453
+ }), !t && z(G, i.dragClass, !0), t ? (So = !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)")), xo = !0, n._dragStartId = cs(n._dragStarted.bind(n, t, e)), L(document, "selectstart", n), Ao = !0, Ma && B(document.body, "user-select", "none");
3393
3454
  },
3394
3455
  _onDragOver: function(e) {
3395
- var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = mo === s, u = o.sort, d = X || c, f, p = this, m = !1;
3396
- if (jo) return;
3456
+ 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;
3457
+ if (Lo) return;
3397
3458
  function h(o, s) {
3398
- H(o, p, ha({
3459
+ U(o, p, xa({
3399
3460
  evt: e,
3400
3461
  isOwner: l,
3401
3462
  axis: f ? "vertical" : "horizontal",
@@ -3407,7 +3468,7 @@ Q.prototype = {
3407
3468
  target: n,
3408
3469
  completed: _,
3409
3470
  onMove: function(n, i) {
3410
- return qo(q, t, W, r, n, V(n), e, i);
3471
+ return $o(J, t, G, r, n, V(n), e, i);
3411
3472
  },
3412
3473
  changed: v
3413
3474
  }, s));
@@ -3416,58 +3477,58 @@ Q.prototype = {
3416
3477
  h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
3417
3478
  }
3418
3479
  function _(r) {
3419
- return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (z(W, X ? X.options.ghostClass : c.options.ghostClass, !1), z(W, o.ghostClass, !0)), X !== p && p !== Q.active ? X = p : p === Q.active && X && (X = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
3480
+ 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() {
3420
3481
  h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
3421
- }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === W && !W.animated || n === t && !n.animated) && (To = null), !o.dragoverBubble && !e.rootEl && n !== document && (W.parentNode[Qa]._isOutsideThisEl(e.target), !r && Wo(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
3482
+ }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (jo = null), !o.dragoverBubble && !e.rootEl && n !== document && (G.parentNode[H]._isOutsideThisEl(e.target), !r && Xo(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
3422
3483
  }
3423
3484
  function v() {
3424
- Y = Ba(W), po = Ba(W, o.draggable), U({
3485
+ _o = Ka(G), yo = Ka(G, o.draggable), W({
3425
3486
  sortable: p,
3426
3487
  name: "change",
3427
3488
  toEl: t,
3428
- newIndex: Y,
3429
- newDraggableIndex: po,
3489
+ newIndex: _o,
3490
+ newDraggableIndex: yo,
3430
3491
  originalEvent: e
3431
3492
  });
3432
3493
  }
3433
- if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Ma(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
3434
- if (W.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
3435
- if (go = !1, c && !o.disabled && (l ? u || (a = G !== q) : X === this || (this.lastPutMode = mo.checkPull(this, c, W, e)) && s.checkPut(this, c, W, e))) {
3436
- if (f = this._getDirection(e, n) === "vertical", r = V(W), h("dragOverValid"), Q.eventCanceled) return m;
3437
- if (a) return G = q, g(), this._hideClone(), h("revert"), Q.eventCanceled || (so ? q.insertBefore(W, so) : q.appendChild(W)), _(!0);
3438
- var y = za(t, o.draggable);
3439
- if (!y || Zo(e, f, this) && !y.animated) {
3440
- if (y === W) return _(!1);
3441
- if (y && t === e.target && (n = y), n && (i = V(n)), qo(q, t, W, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(W, y.nextSibling) : t.appendChild(W), G = t, v(), _(!0);
3442
- } else if (y && Xo(e, f, this)) {
3443
- var b = Ra(t, 0, o, !0);
3444
- if (b === W) return _(!1);
3445
- if (n = b, i = V(n), qo(q, t, W, r, n, i, e, !1) !== !1) return g(), t.insertBefore(W, b), G = t, v(), _(!0);
3494
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Ra(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
3495
+ if (G.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
3496
+ if (So = !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))) {
3497
+ if (f = this._getDirection(e, n) === "vertical", r = V(G), h("dragOverValid"), Q.eventCanceled) return m;
3498
+ if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (po ? J.insertBefore(G, po) : J.appendChild(G)), _(!0);
3499
+ var y = Ga(t, o.draggable);
3500
+ if (!y || rs(e, f, this) && !y.animated) {
3501
+ if (y === G) return _(!1);
3502
+ if (y && t === e.target && (n = y), n && (i = V(n)), $o(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);
3503
+ } else if (y && ns(e, f, this)) {
3504
+ var b = Wa(t, 0, o, !0);
3505
+ if (b === G) return _(!1);
3506
+ if (n = b, i = V(n), $o(J, t, G, r, n, i, e, !1) !== !1) return g(), t.insertBefore(G, b), K = t, v(), _(!0);
3446
3507
  } else if (n.parentNode === t) {
3447
3508
  i = V(n);
3448
- var x = 0, S, C = W.parentNode !== t, w = !zo(W.animated && W.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = La(n, "top", "top") || La(W, "top", "top"), D = E ? E.scrollTop : void 0;
3449
- To !== n && (S = i[T], Do = !1, Oo = !w && o.invertSwap || C), x = Qo(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Oo, To === n);
3509
+ var x = 0, S, C = G.parentNode !== t, w = !Go(G.animated && G.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = Ua(n, "top", "top") || Ua(G, "top", "top"), D = E ? E.scrollTop : void 0;
3510
+ jo !== n && (S = i[T], No = !1, Po = !w && o.invertSwap || C), x = is(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Po, jo === n);
3450
3511
  var O;
3451
3512
  if (x !== 0) {
3452
- var k = Ba(W);
3513
+ var k = Ka(G);
3453
3514
  do
3454
- k -= x, O = G.children[k];
3455
- while (O && (B(O, "display") === "none" || O === K));
3515
+ k -= x, O = K.children[k];
3516
+ while (O && (B(O, "display") === "none" || O === q));
3456
3517
  }
3457
3518
  if (x === 0 || O === n) return _(!1);
3458
- To = n, Eo = x;
3519
+ jo = n, Mo = x;
3459
3520
  var A = n.nextElementSibling, j = !1;
3460
3521
  j = x === 1;
3461
- var ee = qo(q, t, W, r, n, i, e, j);
3462
- if (ee !== !1) return (ee === 1 || ee === -1) && (j = ee === 1), jo = !0, setTimeout(Yo, 30), g(), j && !A ? t.appendChild(W) : n.parentNode.insertBefore(W, j ? A : n), E && Ya(E, 0, D - E.scrollTop), G = W.parentNode, S !== void 0 && !Oo && (ko = Math.abs(S - V(n)[T])), v(), _(!0);
3522
+ var ee = $o(J, t, G, r, n, i, e, j);
3523
+ if (ee !== !1) return (ee === 1 || ee === -1) && (j = ee === 1), Lo = !0, setTimeout(ts, 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 && !Po && (Fo = Math.abs(S - V(n)[T])), v(), _(!0);
3463
3524
  }
3464
- if (t.contains(W)) return _(!1);
3525
+ if (t.contains(G)) return _(!1);
3465
3526
  }
3466
3527
  return !1;
3467
3528
  },
3468
3529
  _ignoreWhileAnimating: null,
3469
3530
  _offMoveEvents: function() {
3470
- R(document, "mousemove", this._onTouchMove), R(document, "touchmove", this._onTouchMove), R(document, "pointermove", this._onTouchMove), R(document, "dragover", Wo), R(document, "mousemove", Wo), R(document, "touchmove", Wo);
3531
+ R(document, "mousemove", this._onTouchMove), R(document, "touchmove", this._onTouchMove), R(document, "pointermove", this._onTouchMove), R(document, "dragover", Xo), R(document, "mousemove", Xo), R(document, "touchmove", Xo);
3471
3532
  },
3472
3533
  _offUpEvents: function() {
3473
3534
  var e = this.el.ownerDocument;
@@ -3475,60 +3536,60 @@ Q.prototype = {
3475
3536
  },
3476
3537
  _onDrop: function(e) {
3477
3538
  var t = this.el, n = this.options;
3478
- if (Y = Ba(W), po = Ba(W, n.draggable), H("drop", this, { evt: e }), G = W && W.parentNode, Y = Ba(W), po = Ba(W, n.draggable), Q.eventCanceled) {
3539
+ if (_o = Ka(G), yo = Ka(G, n.draggable), U("drop", this, { evt: e }), K = G && G.parentNode, _o = Ka(G), yo = Ka(G, n.draggable), Q.eventCanceled) {
3479
3540
  this._nulling();
3480
3541
  return;
3481
3542
  }
3482
- ho = !1, Oo = !1, Do = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), rs(this.cloneId), rs(this._dragStartId), this.nativeDraggable && (R(document, "drop", this), R(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ea && B(document.body, "user-select", ""), B(W, "transform", ""), e && (wo && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), K && K.parentNode && K.parentNode.removeChild(K), (q === G || X && X.lastPutMode !== "clone") && J && J.parentNode && J.parentNode.removeChild(J), W && (this.nativeDraggable && R(W, "dragend", this), Jo(W), W.style["will-change"] = "", wo && !ho && z(W, X ? X.options.ghostClass : this.options.ghostClass, !1), z(W, this.options.chosenClass, !1), U({
3543
+ xo = !1, Po = !1, No = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ls(this.cloneId), ls(this._dragStartId), this.nativeDraggable && (R(document, "drop", this), R(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ma && B(document.body, "user-select", ""), B(G, "transform", ""), e && (Ao && (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), es(G), G.style["will-change"] = "", Ao && !xo && z(G, X ? X.options.ghostClass : this.options.ghostClass, !1), z(G, this.options.chosenClass, !1), W({
3483
3544
  sortable: this,
3484
3545
  name: "unchoose",
3485
- toEl: G,
3546
+ toEl: K,
3486
3547
  newIndex: null,
3487
3548
  newDraggableIndex: null,
3488
3549
  originalEvent: e
3489
- }), q === G ? Y !== uo && Y >= 0 && (U({
3550
+ }), J === K ? _o !== go && _o >= 0 && (W({
3490
3551
  sortable: this,
3491
3552
  name: "update",
3492
- toEl: G,
3553
+ toEl: K,
3493
3554
  originalEvent: e
3494
- }), U({
3555
+ }), W({
3495
3556
  sortable: this,
3496
3557
  name: "sort",
3497
- toEl: G,
3558
+ toEl: K,
3498
3559
  originalEvent: e
3499
- })) : (Y >= 0 && (U({
3500
- rootEl: G,
3560
+ })) : (_o >= 0 && (W({
3561
+ rootEl: K,
3501
3562
  name: "add",
3502
- toEl: G,
3503
- fromEl: q,
3563
+ toEl: K,
3564
+ fromEl: J,
3504
3565
  originalEvent: e
3505
- }), U({
3566
+ }), W({
3506
3567
  sortable: this,
3507
3568
  name: "remove",
3508
- toEl: G,
3569
+ toEl: K,
3509
3570
  originalEvent: e
3510
- }), U({
3511
- rootEl: G,
3571
+ }), W({
3572
+ rootEl: K,
3512
3573
  name: "sort",
3513
- toEl: G,
3514
- fromEl: q,
3574
+ toEl: K,
3575
+ fromEl: J,
3515
3576
  originalEvent: e
3516
- }), U({
3577
+ }), W({
3517
3578
  sortable: this,
3518
3579
  name: "sort",
3519
- toEl: G,
3580
+ toEl: K,
3520
3581
  originalEvent: e
3521
- })), X && X.save()), Q.active && ((Y == null || Y === -1) && (Y = uo, po = fo), U({
3582
+ })), X && X.save()), Q.active && ((_o == null || _o === -1) && (_o = go, yo = vo), W({
3522
3583
  sortable: this,
3523
3584
  name: "end",
3524
- toEl: G,
3585
+ toEl: K,
3525
3586
  originalEvent: e
3526
3587
  }), this.save()))), this._nulling();
3527
3588
  },
3528
3589
  _nulling: function() {
3529
- H("nulling", this), q = W = G = K = so = J = co = lo = vo = yo = wo = Y = po = uo = fo = To = Eo = X = mo = Q.dragged = Q.ghost = Q.clone = Q.active = null, Mo.forEach(function(e) {
3590
+ U("nulling", this), J = G = K = q = po = Y = mo = ho = wo = To = Ao = _o = yo = go = vo = jo = Mo = X = bo = Q.dragged = Q.ghost = Q.clone = Q.active = null, Ro.forEach(function(e) {
3530
3591
  e.checked = !0;
3531
- }), Mo.length = bo = xo = 0;
3592
+ }), Ro.length = Eo = Do = 0;
3532
3593
  },
3533
3594
  handleEvent: function(e) {
3534
3595
  switch (e.type) {
@@ -3538,20 +3599,20 @@ Q.prototype = {
3538
3599
  break;
3539
3600
  case "dragenter":
3540
3601
  case "dragover":
3541
- W && (this._onDragOver(e), Ko(e));
3602
+ G && (this._onDragOver(e), Qo(e));
3542
3603
  break;
3543
3604
  case "selectstart": e.preventDefault();
3544
3605
  }
3545
3606
  },
3546
3607
  toArray: function() {
3547
- for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Ma(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || es(t));
3608
+ for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Ra(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || os(t));
3548
3609
  return e;
3549
3610
  },
3550
3611
  sort: function(e, t) {
3551
3612
  var n = {}, r = this.el;
3552
3613
  this.toArray().forEach(function(e, t) {
3553
3614
  var i = r.children[t];
3554
- Ma(i, this.options.draggable, r, !1) && (n[e] = i);
3615
+ Ra(i, this.options.draggable, r, !1) && (n[e] = i);
3555
3616
  }, this), t && this.captureAnimationState(), e.forEach(function(e) {
3556
3617
  n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
3557
3618
  }), t && this.animateAll();
@@ -3561,25 +3622,25 @@ Q.prototype = {
3561
3622
  e && e.set && e.set(this);
3562
3623
  },
3563
3624
  closest: function(e, t) {
3564
- return Ma(e, t || this.options.draggable, this.el, !1);
3625
+ return Ra(e, t || this.options.draggable, this.el, !1);
3565
3626
  },
3566
3627
  option: function(e, t) {
3567
3628
  var n = this.options;
3568
3629
  if (t === void 0) return n[e];
3569
- var r = io.modifyOption(this, e, t);
3570
- n[e] = r === void 0 ? t : r, e === "group" && Vo(n);
3630
+ var r = lo.modifyOption(this, e, t);
3631
+ n[e] = r === void 0 ? t : r, e === "group" && qo(n);
3571
3632
  },
3572
3633
  destroy: function() {
3573
- H("destroy", this);
3634
+ U("destroy", this);
3574
3635
  var e = this.el;
3575
- e[Qa] = 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) {
3636
+ 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) {
3576
3637
  e.removeAttribute("draggable");
3577
- }), this._onDrop(), this._disableDelayedDragEvents(), _o.splice(_o.indexOf(this.el), 1), this.el = e = null;
3638
+ }), this._onDrop(), this._disableDelayedDragEvents(), Co.splice(Co.indexOf(this.el), 1), this.el = e = null;
3578
3639
  },
3579
3640
  _hideClone: function() {
3580
- if (!lo) {
3581
- if (H("hideClone", this), Q.eventCanceled) return;
3582
- B(J, "display", "none"), this.options.removeCloneOnHide && J.parentNode && J.parentNode.removeChild(J), lo = !0;
3641
+ if (!ho) {
3642
+ if (U("hideClone", this), Q.eventCanceled) return;
3643
+ B(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), ho = !0;
3583
3644
  }
3584
3645
  },
3585
3646
  _showClone: function(e) {
@@ -3587,99 +3648,99 @@ Q.prototype = {
3587
3648
  this._hideClone();
3588
3649
  return;
3589
3650
  }
3590
- if (lo) {
3591
- if (H("showClone", this), Q.eventCanceled) return;
3592
- W.parentNode == q && !this.options.group.revertClone ? q.insertBefore(J, W) : so ? q.insertBefore(J, so) : q.appendChild(J), this.options.group.revertClone && this.animate(W, J), B(J, "display", ""), lo = !1;
3651
+ if (ho) {
3652
+ if (U("showClone", this), Q.eventCanceled) return;
3653
+ G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) : po ? J.insertBefore(Y, po) : J.appendChild(Y), this.options.group.revertClone && this.animate(G, Y), B(Y, "display", ""), ho = !1;
3593
3654
  }
3594
3655
  }
3595
3656
  };
3596
- function Ko(e) {
3657
+ function Qo(e) {
3597
3658
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
3598
3659
  }
3599
- function qo(e, t, n, r, i, a, o, s) {
3600
- var c, l = e[Qa], u = l.options.onMove, d;
3601
- return window.CustomEvent && !Ca && !wa ? c = new CustomEvent("move", {
3660
+ function $o(e, t, n, r, i, a, o, s) {
3661
+ var c, l = e[H], u = l.options.onMove, d;
3662
+ return window.CustomEvent && !ka && !Aa ? c = new CustomEvent("move", {
3602
3663
  bubbles: !0,
3603
3664
  cancelable: !0
3604
3665
  }) : (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;
3605
3666
  }
3606
- function Jo(e) {
3667
+ function es(e) {
3607
3668
  e.draggable = !1;
3608
3669
  }
3609
- function Yo() {
3610
- jo = !1;
3670
+ function ts() {
3671
+ Lo = !1;
3611
3672
  }
3612
- function Xo(e, t, n) {
3613
- var r = V(Ra(n.el, 0, n.options, !0)), i = Za(n.el, n.options, K), a = 10;
3673
+ function ns(e, t, n) {
3674
+ var r = V(Wa(n.el, 0, n.options, !0)), i = ro(n.el, n.options, q), a = 10;
3614
3675
  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;
3615
3676
  }
3616
- function Zo(e, t, n) {
3617
- var r = V(za(n.el, n.options.draggable)), i = Za(n.el, n.options, K), a = 10;
3677
+ function rs(e, t, n) {
3678
+ var r = V(Ga(n.el, n.options.draggable)), i = ro(n.el, n.options, q), a = 10;
3618
3679
  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;
3619
3680
  }
3620
- function Qo(e, t, n, r, i, a, o, s) {
3681
+ function is(e, t, n, r, i, a, o, s) {
3621
3682
  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;
3622
3683
  if (!o) {
3623
- if (s && ko < l * i) {
3624
- if (!Do && (Eo === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Do = !0), Do) f = !0;
3625
- else if (Eo === 1 ? c < u + ko : c > d - ko) return -Eo;
3626
- } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return $o(t);
3684
+ if (s && Fo < l * i) {
3685
+ if (!No && (Mo === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (No = !0), No) f = !0;
3686
+ else if (Mo === 1 ? c < u + Fo : c > d - Fo) return -Mo;
3687
+ } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return as(t);
3627
3688
  }
3628
3689
  return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
3629
3690
  }
3630
- function $o(e) {
3631
- return Ba(W) < Ba(e) ? 1 : -1;
3691
+ function as(e) {
3692
+ return Ka(G) < Ka(e) ? 1 : -1;
3632
3693
  }
3633
- function es(e) {
3694
+ function os(e) {
3634
3695
  for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
3635
3696
  return r.toString(36);
3636
3697
  }
3637
- function ts(e) {
3638
- Mo.length = 0;
3698
+ function ss(e) {
3699
+ Ro.length = 0;
3639
3700
  for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
3640
3701
  var r = t[n];
3641
- r.checked && Mo.push(r);
3702
+ r.checked && Ro.push(r);
3642
3703
  }
3643
3704
  }
3644
- function ns(e) {
3705
+ function cs(e) {
3645
3706
  return setTimeout(e, 0);
3646
3707
  }
3647
- function rs(e) {
3708
+ function ls(e) {
3648
3709
  return clearTimeout(e);
3649
3710
  }
3650
- No && L(document, "touchmove", function(e) {
3651
- (Q.active || ho) && e.cancelable && e.preventDefault();
3711
+ zo && L(document, "touchmove", function(e) {
3712
+ (Q.active || xo) && e.cancelable && e.preventDefault();
3652
3713
  }), Q.utils = {
3653
3714
  on: L,
3654
3715
  off: R,
3655
3716
  css: B,
3656
- find: Fa,
3717
+ find: Va,
3657
3718
  is: function(e, t) {
3658
- return !!Ma(e, t, e, !1);
3719
+ return !!Ra(e, t, e, !1);
3659
3720
  },
3660
- extend: Wa,
3661
- throttle: qa,
3662
- closest: Ma,
3721
+ extend: Xa,
3722
+ throttle: $a,
3723
+ closest: Ra,
3663
3724
  toggleClass: z,
3664
- clone: Xa,
3665
- index: Ba,
3666
- nextTick: ns,
3667
- cancelNextTick: rs,
3668
- detectDirection: Ro,
3669
- getChild: Ra
3725
+ clone: no,
3726
+ index: Ka,
3727
+ nextTick: cs,
3728
+ cancelNextTick: ls,
3729
+ detectDirection: Wo,
3730
+ getChild: Wa
3670
3731
  }, Q.get = function(e) {
3671
- return e[Qa];
3732
+ return e[H];
3672
3733
  }, Q.mount = function() {
3673
3734
  var e = [...arguments];
3674
3735
  e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
3675
3736
  if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
3676
- e.utils && (Q.utils = ha(ha({}, Q.utils), e.utils)), io.mount(e);
3737
+ e.utils && (Q.utils = xa(xa({}, Q.utils), e.utils)), lo.mount(e);
3677
3738
  });
3678
3739
  }, Q.create = function(e, t) {
3679
3740
  return new Q(e, t);
3680
- }, Q.version = xa;
3681
- var $ = [], is, as, os = !1, ss, cs, ls, us;
3682
- function ds() {
3741
+ }, Q.version = Da;
3742
+ var $ = [], us, ds, fs = !1, ps, ms, hs, gs;
3743
+ function _s() {
3683
3744
  function e() {
3684
3745
  for (var e in this.defaults = {
3685
3746
  scroll: !0,
@@ -3699,63 +3760,63 @@ function ds() {
3699
3760
  !this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
3700
3761
  },
3701
3762
  drop: function() {
3702
- this.sortable.nativeDraggable ? R(document, "dragover", this._handleAutoScroll) : (R(document, "pointermove", this._handleFallbackAutoScroll), R(document, "touchmove", this._handleFallbackAutoScroll), R(document, "mousemove", this._handleFallbackAutoScroll)), ps(), fs(), Ja();
3763
+ this.sortable.nativeDraggable ? R(document, "dragover", this._handleAutoScroll) : (R(document, "pointermove", this._handleFallbackAutoScroll), R(document, "touchmove", this._handleFallbackAutoScroll), R(document, "mousemove", this._handleFallbackAutoScroll)), ys(), vs(), eo();
3703
3764
  },
3704
3765
  nulling: function() {
3705
- ls = as = is = os = us = ss = cs = null, $.length = 0;
3766
+ hs = ds = us = fs = gs = ps = ms = null, $.length = 0;
3706
3767
  },
3707
3768
  _handleFallbackAutoScroll: function(e) {
3708
3769
  this._handleAutoScroll(e, !0);
3709
3770
  },
3710
3771
  _handleAutoScroll: function(e, t) {
3711
3772
  var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
3712
- if (ls = e, t || this.options.forceAutoScrollFallback || wa || Ca || Ea) {
3713
- ms(e, this.options, a, t);
3714
- var o = Ua(a, !0);
3715
- os && (!us || r !== ss || i !== cs) && (us && ps(), us = setInterval(function() {
3716
- var a = Ua(document.elementFromPoint(r, i), !0);
3717
- a !== o && (o = a, fs()), ms(e, n.options, a, t);
3718
- }, 10), ss = r, cs = i);
3773
+ if (hs = e, t || this.options.forceAutoScrollFallback || Aa || ka || Ma) {
3774
+ bs(e, this.options, a, t);
3775
+ var o = Ya(a, !0);
3776
+ fs && (!gs || r !== ps || i !== ms) && (gs && ys(), gs = setInterval(function() {
3777
+ var a = Ya(document.elementFromPoint(r, i), !0);
3778
+ a !== o && (o = a, vs()), bs(e, n.options, a, t);
3779
+ }, 10), ps = r, ms = i);
3719
3780
  } else {
3720
- if (!this.options.bubbleScroll || Ua(a, !0) === Ia()) {
3721
- fs();
3781
+ if (!this.options.bubbleScroll || Ya(a, !0) === Ha()) {
3782
+ vs();
3722
3783
  return;
3723
3784
  }
3724
- ms(e, this.options, Ua(a, !1), !1);
3785
+ bs(e, this.options, Ya(a, !1), !1);
3725
3786
  }
3726
3787
  }
3727
- }, va(e, {
3788
+ }, wa(e, {
3728
3789
  pluginName: "scroll",
3729
3790
  initializeByDefault: !0
3730
3791
  });
3731
3792
  }
3732
- function fs() {
3793
+ function vs() {
3733
3794
  $.forEach(function(e) {
3734
3795
  clearInterval(e.pid);
3735
3796
  }), $ = [];
3736
3797
  }
3737
- function ps() {
3738
- clearInterval(us);
3798
+ function ys() {
3799
+ clearInterval(gs);
3739
3800
  }
3740
- var ms = qa(function(e, t, n, r) {
3801
+ var bs = $a(function(e, t, n, r) {
3741
3802
  if (t.scroll) {
3742
- var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = Ia(), l = !1, u;
3743
- as !== n && (as = n, fs(), is = t.scroll, u = t.scrollFn, is === !0 && (is = Ua(n, !0)));
3744
- var d = 0, f = is;
3803
+ var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = Ha(), l = !1, u;
3804
+ ds !== n && (ds = n, vs(), us = t.scroll, u = t.scrollFn, us === !0 && (us = Ya(n, !0)));
3805
+ var d = 0, f = us;
3745
3806
  do {
3746
3807
  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;
3747
3808
  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"));
3748
3809
  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);
3749
3810
  if (!$[d]) for (var A = 0; A <= d; A++) $[A] || ($[A] = {});
3750
3811
  ($[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() {
3751
- r && this.layer === 0 && Q.active._onTouchMove(ls);
3812
+ r && this.layer === 0 && Q.active._onTouchMove(hs);
3752
3813
  var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
3753
- typeof u == "function" && u.call(Q.dragged.parentNode[Qa], n, t, e, ls, $[this.layer].el) !== "continue" || Ya($[this.layer].el, n, t);
3814
+ typeof u == "function" && u.call(Q.dragged.parentNode[H], n, t, e, hs, $[this.layer].el) !== "continue" || to($[this.layer].el, n, t);
3754
3815
  }.bind({ layer: d }), 24))), d++;
3755
- } while (t.bubbleScroll && f !== c && (f = Ua(f, !1)));
3756
- os = l;
3816
+ } while (t.bubbleScroll && f !== c && (f = Ya(f, !1)));
3817
+ fs = l;
3757
3818
  }
3758
- }, 30), hs = function(e) {
3819
+ }, 30), xs = function(e) {
3759
3820
  var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
3760
3821
  if (t) {
3761
3822
  var c = n || i;
@@ -3767,8 +3828,8 @@ var ms = qa(function(e, t, n, r) {
3767
3828
  }));
3768
3829
  }
3769
3830
  };
3770
- function gs() {}
3771
- gs.prototype = {
3831
+ function Ss() {}
3832
+ Ss.prototype = {
3772
3833
  startIndex: null,
3773
3834
  dragStart: function(e) {
3774
3835
  var t = e.oldDraggableIndex;
@@ -3777,72 +3838,72 @@ gs.prototype = {
3777
3838
  onSpill: function(e) {
3778
3839
  var t = e.dragEl, n = e.putSortable;
3779
3840
  this.sortable.captureAnimationState(), n && n.captureAnimationState();
3780
- var r = Ra(this.sortable.el, this.startIndex, this.options);
3841
+ var r = Wa(this.sortable.el, this.startIndex, this.options);
3781
3842
  r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
3782
3843
  },
3783
- drop: hs
3784
- }, va(gs, { pluginName: "revertOnSpill" });
3785
- function _s() {}
3786
- _s.prototype = {
3844
+ drop: xs
3845
+ }, wa(Ss, { pluginName: "revertOnSpill" });
3846
+ function Cs() {}
3847
+ Cs.prototype = {
3787
3848
  onSpill: function(e) {
3788
3849
  var t = e.dragEl, n = e.putSortable || this.sortable;
3789
3850
  n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
3790
3851
  },
3791
- drop: hs
3792
- }, va(_s, { pluginName: "removeOnSpill" }), Q.mount(new ds()), Q.mount(_s, gs);
3793
- function vs(e) {
3852
+ drop: xs
3853
+ }, wa(Cs, { pluginName: "removeOnSpill" }), Q.mount(new _s()), Q.mount(Cs, Ss);
3854
+ function ws(e) {
3794
3855
  return e == null ? e : JSON.parse(JSON.stringify(e));
3795
3856
  }
3796
- function ys(e) {
3857
+ function Ts(e) {
3797
3858
  ne() && r(e);
3798
3859
  }
3799
- function bs(e) {
3860
+ function Es(e) {
3800
3861
  ne() ? a(e) : re(e);
3801
3862
  }
3802
- var xs = null, Ss = null;
3803
- function Cs(e = null, t = null) {
3804
- xs = e, Ss = t;
3863
+ var Ds = null, Os = null;
3864
+ function ks(e = null, t = null) {
3865
+ Ds = e, Os = t;
3805
3866
  }
3806
- function ws() {
3867
+ function As() {
3807
3868
  return {
3808
- data: xs,
3809
- clonedData: Ss
3869
+ data: Ds,
3870
+ clonedData: Os
3810
3871
  };
3811
3872
  }
3812
- var Ts = Symbol("cloneElement");
3813
- function Es(...e) {
3873
+ var js = Symbol("cloneElement");
3874
+ function Ms(...e) {
3814
3875
  let t = ne()?.proxy, n = null, r = e[0], [, i, a] = e;
3815
3876
  Array.isArray(k(i)) || (a = i, i = null);
3816
- let o = null, { immediate: s = !0, clone: l = vs, forceFallback: u, fallbackOnBody: d, customUpdate: f } = k(a) ?? {};
3877
+ let o = null, { immediate: s = !0, clone: l = ws, forceFallback: u, fallbackOnBody: d, customUpdate: f } = k(a) ?? {};
3817
3878
  function p(e) {
3818
3879
  let { from: t, oldIndex: r, item: a } = e, o = Array.from(t.childNodes);
3819
3880
  n = u && !d ? o.slice(0, -1) : o;
3820
3881
  let s = k(k(i)?.[r]), c = l(s);
3821
- Cs(s, c), a[Ts] = c;
3882
+ ks(s, c), a[js] = c;
3822
3883
  }
3823
3884
  function m(e) {
3824
- let t = e.item[Ts];
3825
- if (!ra(t)) {
3826
- if (oa(e.item), g(i)) {
3885
+ let t = e.item[js];
3886
+ if (!la(t)) {
3887
+ if (fa(e.item), g(i)) {
3827
3888
  let n = [...k(i)];
3828
- i.value = na(n, e.newDraggableIndex, t);
3889
+ i.value = ca(n, e.newDraggableIndex, t);
3829
3890
  return;
3830
3891
  }
3831
- na(k(i), e.newDraggableIndex, t);
3892
+ ca(k(i), e.newDraggableIndex, t);
3832
3893
  }
3833
3894
  }
3834
3895
  function h(e) {
3835
3896
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, pullMode: o, clone: s } = e;
3836
- if (aa(t, n, r), o === "clone") {
3837
- oa(s);
3897
+ if (da(t, n, r), o === "clone") {
3898
+ fa(s);
3838
3899
  return;
3839
3900
  }
3840
3901
  if (g(i)) {
3841
3902
  let e = [...k(i)];
3842
- i.value = ta(e, a);
3903
+ i.value = sa(e, a);
3843
3904
  return;
3844
3905
  }
3845
- ta(k(i), a);
3906
+ sa(k(i), a);
3846
3907
  }
3847
3908
  function _(e) {
3848
3909
  if (f) {
@@ -3850,12 +3911,12 @@ function Es(...e) {
3850
3911
  return;
3851
3912
  }
3852
3913
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, newDraggableIndex: o } = e;
3853
- if (oa(n), aa(t, n, r), g(i)) {
3914
+ if (fa(n), da(t, n, r), g(i)) {
3854
3915
  let e = [...k(i)];
3855
- i.value = Qi(e, a, o);
3916
+ i.value = ia(e, a, o);
3856
3917
  return;
3857
3918
  }
3858
- Qi(k(i), a, o);
3919
+ ia(k(i), a, o);
3859
3920
  }
3860
3921
  function v(e) {
3861
3922
  let { newIndex: t, oldIndex: r, from: i, to: a } = e, o = null, s = t === r && i === a;
@@ -3874,7 +3935,7 @@ function Es(...e) {
3874
3935
  n = null;
3875
3936
  }
3876
3937
  re(() => {
3877
- if (Cs(), o) throw o;
3938
+ if (ks(), o) throw o;
3878
3939
  });
3879
3940
  }
3880
3941
  let y = {
@@ -3886,19 +3947,19 @@ function Es(...e) {
3886
3947
  };
3887
3948
  function b(e) {
3888
3949
  let n = k(r);
3889
- return e ||= ia(n) ? sa(n, t?.$el) : n, e && !ua(e) && (e = e.$el), e || Zi("Root element not found"), e;
3950
+ return e ||= ua(n) ? pa(n, t?.$el) : n, e && !ga(e) && (e = e.$el), e || ra("Root element not found"), e;
3890
3951
  }
3891
3952
  function x() {
3892
- let e = k(a) ?? {}, { immediate: t, clone: n } = e, r = Ji(e, ["immediate", "clone"]);
3893
- return da(r, (e, t) => {
3894
- fa(e) && (r[e] = (e, ...n) => (pa(e, ws()), t(e, ...n)));
3895
- }), la(i === null ? {} : y, r);
3953
+ let e = k(a) ?? {}, { immediate: t, clone: n } = e, r = ea(e, ["immediate", "clone"]);
3954
+ return _a(r, (e, t) => {
3955
+ va(e) && (r[e] = (e, ...n) => (ya(e, As()), t(e, ...n)));
3956
+ }), ha(i === null ? {} : y, r);
3896
3957
  }
3897
3958
  let S = (e) => {
3898
3959
  e = b(e), o && C.destroy(), o = new Q(e, x());
3899
3960
  };
3900
3961
  c(() => a, () => {
3901
- o && da(x(), (e, t) => {
3962
+ o && _a(x(), (e, t) => {
3902
3963
  o?.option(e, t);
3903
3964
  });
3904
3965
  }, { deep: !0 });
@@ -3911,15 +3972,15 @@ function Es(...e) {
3911
3972
  toArray: () => o?.toArray(),
3912
3973
  closest: (...e) => o?.closest(...e)
3913
3974
  };
3914
- return bs(() => {
3975
+ return Es(() => {
3915
3976
  s && S();
3916
- }), ys(C.destroy), qi({
3977
+ }), Ts(C.destroy), $i({
3917
3978
  start: S,
3918
3979
  pause: () => C?.option("disabled", !0),
3919
3980
  resume: () => C?.option("disabled", !1)
3920
3981
  }, C);
3921
3982
  }
3922
- var Ds = [
3983
+ var Ns = [
3923
3984
  "update",
3924
3985
  "start",
3925
3986
  "add",
@@ -3932,7 +3993,7 @@ var Ds = [
3932
3993
  "clone",
3933
3994
  "move",
3934
3995
  "change"
3935
- ], Os = [
3996
+ ], Ps = [
3936
3997
  "clone",
3937
3998
  "animation",
3938
3999
  "ghostClass",
@@ -3976,43 +4037,43 @@ var Ds = [
3976
4037
  "tag",
3977
4038
  "target",
3978
4039
  "customUpdate",
3979
- ...Ds.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
3980
- ], ks = y({
4040
+ ...Ns.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
4041
+ ], Fs = y({
3981
4042
  name: "VueDraggable",
3982
4043
  model: {
3983
4044
  prop: "modelValue",
3984
4045
  event: "update:modelValue"
3985
4046
  },
3986
- props: Os,
3987
- emits: ["update:modelValue", ...Ds],
4047
+ props: Ps,
4048
+ emits: ["update:modelValue", ...Ns],
3988
4049
  setup(t, { slots: n, emit: r, expose: i, attrs: a }) {
3989
- let o = Ds.reduce((e, t) => {
4050
+ let o = Ns.reduce((e, t) => {
3990
4051
  let n = `on${t.replace(/^\S/, (e) => e.toUpperCase())}`;
3991
4052
  return e[n] = (...e) => r(t, ...e), e;
3992
4053
  }, {}), s = M(() => {
3993
- let n = e(t), { modelValue: r } = n, i = Ji(n, ["modelValue"]), s = Object.entries(i).reduce((e, [t, n]) => {
4054
+ let n = e(t), { modelValue: r } = n, i = ea(n, ["modelValue"]), s = Object.entries(i).reduce((e, [t, n]) => {
3994
4055
  let r = k(n);
3995
4056
  return r !== void 0 && (e[t] = r), e;
3996
4057
  }, {});
3997
- return qi(qi({}, o), ea(qi(qi({}, a), s)));
4058
+ return $i($i({}, o), oa($i($i({}, a), s)));
3998
4059
  }), c = M({
3999
4060
  get: () => t.modelValue,
4000
4061
  set: (e) => r("update:modelValue", e)
4001
- }), l = _(), u = A(Es(t.target || l, c, s));
4062
+ }), l = _(), u = A(Ms(t.target || l, c, s));
4002
4063
  return i(u), () => ie(t.tag || "div", { ref: l }, (n?.default)?.call(n, u));
4003
4064
  }
4004
- }), As = {
4065
+ }), Is = {
4005
4066
  mounted: "mounted",
4006
4067
  unmounted: "unmounted"
4007
4068
  };
4008
- As.mounted, As.unmounted;
4069
+ Is.mounted, Is.unmounted;
4009
4070
  //#endregion
4010
4071
  //#region src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
4011
- var js = { class: "tpl:w-full" }, Ms = {
4072
+ var Ls = { class: "tpl:w-full" }, Rs = {
4012
4073
  key: 0,
4013
4074
  "data-testid": "section-drop-hint",
4014
4075
  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)]"
4015
- }, Ns = /* @__PURE__ */ y({
4076
+ }, zs = /* @__PURE__ */ y({
4016
4077
  __name: "SectionBlock",
4017
4078
  props: {
4018
4079
  block: {},
@@ -4020,14 +4081,14 @@ var js = { class: "tpl:w-full" }, Ms = {
4020
4081
  },
4021
4082
  setup(e) {
4022
4083
  let n = {
4023
- title: Bi,
4024
- paragraph: xi,
4025
- image: ci,
4026
- button: Yn,
4027
- divider: Hr,
4028
- custom: Br
4029
- }, r = e, { t: a } = Ht(), s = dt(Dt, "SectionBlock"), c = P(wt, null), l = P(Pt, null), u = P(It, {});
4030
- function h(e) {
4084
+ title: Ki,
4085
+ paragraph: Di,
4086
+ image: mi,
4087
+ button: tr,
4088
+ divider: Jr,
4089
+ custom: Kr
4090
+ }, r = e, { t: a } = Kt(), s = pt(jt, "SectionBlock"), c = P(At, null), l = P(Bt, null), u = P(kt, {}), h = P(zt, null);
4091
+ function g(e) {
4031
4092
  let t = u.savedBlocks;
4032
4093
  if (t?.isPicking.value) {
4033
4094
  t.togglePick(r.block.id);
@@ -4035,7 +4096,7 @@ var js = { class: "tpl:w-full" }, Ms = {
4035
4096
  }
4036
4097
  s.selectBlock(e);
4037
4098
  }
4038
- let g = M(() => {
4099
+ let _ = M(() => {
4039
4100
  switch (r.block.columns) {
4040
4101
  case "2": return ["50%", "50%"];
4041
4102
  case "3": return [
@@ -4047,38 +4108,38 @@ var js = { class: "tpl:w-full" }, Ms = {
4047
4108
  case "2-1": return ["66.67%", "33.33%"];
4048
4109
  default: return ["100%"];
4049
4110
  }
4050
- }), _ = M(() => {
4051
- let e = g.value.length, t = [...r.block.children];
4111
+ }), v = M(() => {
4112
+ let e = _.value.length, t = [...r.block.children];
4052
4113
  for (; t.length < e;) t.push([]);
4053
4114
  return t.slice(0, e);
4054
- }), v = M(() => r.viewport === "mobile" && r.block.stackOnMobile !== !1);
4055
- function y(e) {
4056
- return _.value[e] || [];
4115
+ }), y = M(() => r.viewport === "mobile" && r.block.stackOnMobile !== !1);
4116
+ function S(e) {
4117
+ return v.value[e] || [];
4057
4118
  }
4058
- function S(e, t) {
4119
+ function C(e, t) {
4059
4120
  let n = t.map((e) => JSON.parse(JSON.stringify(e))), i = [...r.block.children];
4060
4121
  for (; i.length <= e;) i.push([]);
4061
4122
  i[e] = n, s.updateBlock(r.block.id, { children: i });
4062
4123
  }
4063
- function C(e) {
4064
- return Ci(e, l, n);
4124
+ function T(e) {
4125
+ return ki(e, l, n);
4065
4126
  }
4066
- function T(e, t) {
4127
+ function E(e, t) {
4067
4128
  e.type === "custom" && s.updateBlock(e.id, {
4068
4129
  fieldValues: t.fieldValues,
4069
4130
  dataSourceFetched: t.dataSourceFetched
4070
4131
  });
4071
4132
  }
4072
- return (n, r) => (f(), x("div", js, [b("div", { class: o(["tpl:flex tpl:gap-0", { "tpl:flex-col": v.value }]) }, [(f(!0), x(j, null, t(_.value, (n, r) => (f(), x("div", {
4133
+ return (n, r) => (f(), x("div", Ls, [b("div", { class: o(["tpl:flex tpl:gap-0", { "tpl:flex-col": y.value }]) }, [(f(!0), x(j, null, t(v.value, (n, r) => (f(), x("div", {
4073
4134
  key: r,
4074
- class: o(["tpl:relative tpl:min-h-[60px] tpl:rounded", y(r).length === 0 ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
4075
- style: i({ width: v.value ? "100%" : g.value[r] })
4076
- }, [w(k(ks), {
4077
- "model-value": y(r),
4135
+ class: o(["tpl:relative tpl:min-h-[60px] tpl:rounded", S(r).length === 0 ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
4136
+ style: i({ width: y.value ? "100%" : _.value[r] })
4137
+ }, [w(k(Fs), {
4138
+ "model-value": S(r),
4078
4139
  group: {
4079
4140
  name: "blocks",
4080
4141
  pull: !0,
4081
- put: (e, t, n) => k(Vi)(n)
4142
+ put: (e, t, n) => k(qi)(n)
4082
4143
  },
4083
4144
  animation: 150,
4084
4145
  "ghost-class": "tpl-ghost",
@@ -4089,20 +4150,20 @@ var js = { class: "tpl:w-full" }, Ms = {
4089
4150
  "empty-insert-threshold": 20,
4090
4151
  "force-fallback": !0,
4091
4152
  class: "tpl:min-h-[60px]",
4092
- "onUpdate:modelValue": (e) => S(r, e)
4153
+ "onUpdate:modelValue": (e) => C(r, e)
4093
4154
  }, {
4094
- default: m(() => [(f(!0), x(j, null, t(y(r), (t) => ae((f(), x("div", { key: t.id }, [w(Ri, {
4155
+ default: m(() => [(f(!0), x(j, null, t(S(r), (t) => ae((f(), x("div", { key: t.id }, [w(Wi, {
4095
4156
  block: t,
4096
4157
  "is-selected": k(s).state.selectedBlockId === t.id,
4097
4158
  viewport: e.viewport,
4098
4159
  "preview-mode": k(s).state.previewMode,
4099
4160
  nested: "",
4100
- onSelect: (e) => h(t.id)
4161
+ onSelect: (e) => g(t.id)
4101
4162
  }, {
4102
- default: m(() => [(f(), D(d(C(t)), {
4163
+ default: m(() => [(f(), D(d(T(t)), {
4103
4164
  block: t,
4104
4165
  viewport: e.viewport,
4105
- onFetchData: (e) => T(t, e),
4166
+ onFetchData: (e) => E(t, e),
4106
4167
  onUpdate: (e) => k(s).updateBlock(t.id, e)
4107
4168
  }, null, 40, [
4108
4169
  "block",
@@ -4117,19 +4178,19 @@ var js = { class: "tpl:w-full" }, Ms = {
4117
4178
  "viewport",
4118
4179
  "preview-mode",
4119
4180
  "onSelect"
4120
- ])])), [[oe, !k(c)?.isHidden(t.id)]])), 128))]),
4181
+ ])])), [[oe, k(h) === !1 || !k(c)?.isHidden(t.id)]])), 128))]),
4121
4182
  _: 2
4122
4183
  }, 1032, [
4123
4184
  "model-value",
4124
4185
  "group",
4125
4186
  "onUpdate:modelValue"
4126
- ]), y(r).length === 0 ? (f(), x("div", Ms, [b("span", null, p(k(a).section.dropHere), 1)])) : N("", !0)], 6))), 128))], 2)]));
4187
+ ]), S(r).length === 0 ? (f(), x("div", Rs, [b("span", null, p(k(a).section.dropHere), 1)])) : N("", !0)], 6))), 128))], 2)]));
4127
4188
  }
4128
- }), Ps = Me, Fs = {
4189
+ }), Bs = Ne, Vs = {
4129
4190
  small: 24,
4130
4191
  medium: 32,
4131
4192
  large: 48
4132
- }, Is = [
4193
+ }, Hs = [
4133
4194
  "facebook",
4134
4195
  "twitter",
4135
4196
  "instagram",
@@ -4147,11 +4208,11 @@ var js = { class: "tpl:w-full" }, Ms = {
4147
4208
  "github",
4148
4209
  "dribbble",
4149
4210
  "behance"
4150
- ], Ls = [
4211
+ ], Us = [
4151
4212
  "width",
4152
4213
  "height",
4153
4214
  "fill"
4154
- ], Rs = ["d"], zs = /* @__PURE__ */ y({
4215
+ ], Ws = ["d"], Gs = /* @__PURE__ */ y({
4155
4216
  __name: "SocialIconSvg",
4156
4217
  props: {
4157
4218
  platform: {},
@@ -4159,7 +4220,7 @@ var js = { class: "tpl:w-full" }, Ms = {
4159
4220
  iconSize: {}
4160
4221
  },
4161
4222
  setup(e) {
4162
- let t = e, n = M(() => Ps[t.platform]), r = M(() => Fs[t.iconSize]), a = M(() => {
4223
+ let t = e, n = M(() => Bs[t.platform]), r = M(() => Vs[t.iconSize]), a = M(() => {
4163
4224
  let e = {
4164
4225
  display: "inline-flex",
4165
4226
  alignItems: "center",
@@ -4203,25 +4264,25 @@ var js = { class: "tpl:w-full" }, Ms = {
4203
4264
  viewBox: "0 0 24 24",
4204
4265
  fill: s.value,
4205
4266
  xmlns: "http://www.w3.org/2000/svg"
4206
- }, [b("path", { d: n.value.path }, null, 8, Rs)], 8, Ls))], 4));
4267
+ }, [b("path", { d: n.value.path }, null, 8, Ws)], 8, Us))], 4));
4207
4268
  }
4208
- }), Bs = { class: "tpl:w-full" }, Vs = ["href"], Hs = {
4269
+ }), Ks = { class: "tpl:w-full" }, qs = ["href"], Js = {
4209
4270
  key: 1,
4210
4271
  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)]"
4211
- }, Us = /* @__PURE__ */ y({
4272
+ }, Ys = /* @__PURE__ */ y({
4212
4273
  __name: "SocialIconsBlock",
4213
4274
  props: {
4214
4275
  block: {},
4215
4276
  viewport: {}
4216
4277
  },
4217
4278
  setup(e) {
4218
- let n = e, { t: r } = Ht(), a = M(() => ({
4279
+ let n = e, { t: r } = Kt(), a = M(() => ({
4219
4280
  display: "flex",
4220
4281
  flexWrap: "wrap",
4221
4282
  gap: `${n.block.spacing}px`,
4222
4283
  justifyContent: n.block.align === "left" ? "flex-start" : n.block.align === "right" ? "flex-end" : "center"
4223
4284
  })), o = M(() => n.block.icons.length > 0);
4224
- return (n, s) => (f(), x("div", Bs, [o.value ? (f(), x("div", {
4285
+ return (n, s) => (f(), x("div", Ks, [o.value ? (f(), x("div", {
4225
4286
  key: 0,
4226
4287
  style: i(a.value)
4227
4288
  }, [(f(!0), x(j, null, t(e.block.icons, (t) => (f(), x("a", {
@@ -4229,7 +4290,7 @@ var js = { class: "tpl:w-full" }, Ms = {
4229
4290
  href: t.url || "#",
4230
4291
  class: "tpl:cursor-default",
4231
4292
  onClick: s[0] ||= F(() => {}, ["prevent"])
4232
- }, [w(zs, {
4293
+ }, [w(Gs, {
4233
4294
  platform: t.platform,
4234
4295
  "icon-style": e.block.iconStyle,
4235
4296
  "icon-size": e.block.iconSize
@@ -4237,44 +4298,44 @@ var js = { class: "tpl:w-full" }, Ms = {
4237
4298
  "platform",
4238
4299
  "icon-style",
4239
4300
  "icon-size"
4240
- ])], 8, Vs))), 128))], 4)) : (f(), x("div", Hs, [w(k(or), { size: 16 }), b("span", null, p(k(r).social.addIcons), 1)]))]));
4301
+ ])], 8, qs))), 128))], 4)) : (f(), x("div", Js, [w(k(fr), { size: 16 }), b("span", null, p(k(r).social.addIcons), 1)]))]));
4241
4302
  }
4242
- }), Ws = { class: "tpl:w-full" }, Gs = {
4303
+ }), Xs = { class: "tpl:w-full" }, Zs = {
4243
4304
  key: 0,
4244
4305
  class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
4245
4306
  style: {
4246
4307
  "background-color": "var(--tpl-bg-hover)",
4247
4308
  color: "var(--tpl-text-dim)"
4248
4309
  }
4249
- }, Ks = /* @__PURE__ */ y({
4310
+ }, Qs = /* @__PURE__ */ y({
4250
4311
  __name: "SpacerBlock",
4251
4312
  props: {
4252
4313
  block: {},
4253
4314
  viewport: {}
4254
4315
  },
4255
4316
  setup(e) {
4256
- let t = e, n = dt(Dt, "SpacerBlock"), r = M(() => ({
4317
+ let t = e, n = pt(jt, "SpacerBlock"), r = M(() => ({
4257
4318
  height: `${t.block.height}px`,
4258
4319
  minHeight: `${t.block.height}px`,
4259
4320
  ...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
4260
4321
  }));
4261
- return (t, a) => (f(), x("div", Ws, [b("div", {
4322
+ return (t, a) => (f(), x("div", Xs, [b("div", {
4262
4323
  style: i(r.value),
4263
4324
  class: o(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:border-y tpl:border-dashed": !k(n).state.previewMode }])
4264
- }, [k(n).state.previewMode ? N("", !0) : (f(), x("span", Gs, p(e.block.height) + "px ", 1))], 6)]));
4325
+ }, [k(n).state.previewMode ? N("", !0) : (f(), x("span", Zs, p(e.block.height) + "px ", 1))], 6)]));
4265
4326
  }
4266
- }), qs = { class: "tpl:w-full" }, Js = { key: 0 }, Ys = [
4327
+ }), $s = { class: "tpl:w-full" }, ec = { key: 0 }, tc = [
4267
4328
  "aria-label",
4268
4329
  "data-placeholder",
4269
4330
  "onBlur"
4270
- ], Xs = [
4331
+ ], nc = [
4271
4332
  "aria-label",
4272
4333
  "data-placeholder",
4273
4334
  "onBlur"
4274
- ], Zs = {
4335
+ ], rc = {
4275
4336
  key: 1,
4276
4337
  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)]"
4277
- }, Qs = /*#__PURE__*/ Jt(/* @__PURE__ */ y({
4338
+ }, ic = /*#__PURE__*/ Qt(/* @__PURE__ */ y({
4278
4339
  __name: "TableBlock",
4279
4340
  props: {
4280
4341
  block: {},
@@ -4288,7 +4349,7 @@ var js = { class: "tpl:w-full" }, Ms = {
4288
4349
  updated(e, t) {
4289
4350
  t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
4290
4351
  }
4291
- }, r = e, { t: a } = Ht(), o = dt(Dt, "TableBlock"), s = M(() => r.block.rows.length > 0), c = M(() => {
4352
+ }, r = e, { t: a } = Kt(), o = pt(jt, "TableBlock"), s = M(() => r.block.rows.length > 0), c = M(() => {
4292
4353
  let e = {
4293
4354
  width: "100%",
4294
4355
  borderCollapse: "collapse",
@@ -4319,11 +4380,11 @@ var js = { class: "tpl:w-full" }, Ms = {
4319
4380
  } : n);
4320
4381
  o.updateBlock(r.block.id, { rows: a });
4321
4382
  }
4322
- return (e, r) => (f(), x("div", qs, [s.value ? (f(), x("table", {
4383
+ return (e, r) => (f(), x("div", $s, [s.value ? (f(), x("table", {
4323
4384
  key: 0,
4324
4385
  style: i(c.value),
4325
4386
  class: "tpl-table-editable"
4326
- }, [d.value ? (f(), x("thead", Js, [b("tr", null, [(f(!0), x(j, null, t(d.value.cells, (e) => ae((f(), x("th", {
4387
+ }, [d.value ? (f(), x("thead", ec, [b("tr", null, [(f(!0), x(j, null, t(d.value.cells, (e) => ae((f(), x("th", {
4327
4388
  key: e.id,
4328
4389
  style: i(u.value),
4329
4390
  "aria-label": k(a).table.cellPlaceholder,
@@ -4332,7 +4393,7 @@ var js = { class: "tpl:w-full" }, Ms = {
4332
4393
  onBlur: (t) => g(d.value.id, e.id, t),
4333
4394
  onKeydown: r[0] ||= se(F((e) => e.target.blur(), ["prevent"]), ["enter"]),
4334
4395
  onClick: F(h, ["stop"])
4335
- }, null, 44, Ys)), [[n, e.content]])), 128))])])) : N("", !0), b("tbody", null, [(f(!0), x(j, null, t(m.value, (e) => (f(), x("tr", { key: e.id }, [(f(!0), x(j, null, t(e.cells, (t) => ae((f(), x("td", {
4396
+ }, null, 44, tc)), [[n, e.content]])), 128))])])) : N("", !0), b("tbody", null, [(f(!0), x(j, null, t(m.value, (e) => (f(), x("tr", { key: e.id }, [(f(!0), x(j, null, t(e.cells, (t) => ae((f(), x("td", {
4336
4397
  key: t.id,
4337
4398
  style: i(l.value),
4338
4399
  "aria-label": k(a).table.cellPlaceholder,
@@ -4341,9 +4402,9 @@ var js = { class: "tpl:w-full" }, Ms = {
4341
4402
  onBlur: (n) => g(e.id, t.id, n),
4342
4403
  onKeydown: r[1] ||= se(F((e) => e.target.blur(), ["prevent"]), ["enter"]),
4343
4404
  onClick: F(h, ["stop"])
4344
- }, null, 44, Xs)), [[n, t.content]])), 128))]))), 128))])], 4)) : (f(), x("div", Zs, [w(k(sr), { size: 16 }), b("span", null, p(k(a).table.empty), 1)]))]));
4405
+ }, null, 44, nc)), [[n, t.content]])), 128))]))), 128))])], 4)) : (f(), x("div", rc, [w(k(pr), { size: 16 }), b("span", null, p(k(a).table.empty), 1)]))]));
4345
4406
  }
4346
- }), [["__scopeId", "data-v-963ac422"]]), $s = /* @__PURE__ */ y({
4407
+ }), [["__scopeId", "data-v-963ac422"]]), ac = /* @__PURE__ */ y({
4347
4408
  __name: "VideoPlayButton",
4348
4409
  props: { hoverEffect: {
4349
4410
  type: Boolean,
@@ -4361,7 +4422,7 @@ var js = { class: "tpl:w-full" }, Ms = {
4361
4422
  });
4362
4423
  //#endregion
4363
4424
  //#region src/utils/videoThumbnail.ts
4364
- function ec(e) {
4425
+ function oc(e) {
4365
4426
  if (!e) return {
4366
4427
  platform: "unknown",
4367
4428
  videoId: null,
@@ -4393,25 +4454,25 @@ function ec(e) {
4393
4454
  thumbnailUrl: null
4394
4455
  };
4395
4456
  }
4396
- function tc(e, t) {
4397
- return t || ec(e).thumbnailUrl;
4457
+ function sc(e, t) {
4458
+ return t || oc(e).thumbnailUrl;
4398
4459
  }
4399
4460
  //#endregion
4400
4461
  //#region src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
4401
- var nc = ["src", "alt"], rc = {
4462
+ var cc = ["src", "alt"], lc = {
4402
4463
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
4403
4464
  style: { opacity: "0.7" }
4404
- }, ic = ["href"], ac = ["src", "alt"], oc = ["src", "alt"], sc = {
4465
+ }, uc = ["href"], dc = ["src", "alt"], fc = ["src", "alt"], pc = {
4405
4466
  key: 3,
4406
4467
  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)]"
4407
- }, cc = /* @__PURE__ */ y({
4468
+ }, mc = /* @__PURE__ */ y({
4408
4469
  __name: "VideoBlock",
4409
4470
  props: {
4410
4471
  block: {},
4411
4472
  viewport: {}
4412
4473
  },
4413
4474
  setup(e) {
4414
- let t = e, { t: n } = Ht(), { syntax: r } = Yt(), a = M(() => De(t.block.url, r) || De(t.block.thumbnailUrl, r)), o = vn(() => a.value ? void 0 : t.block.thumbnailUrl || void 0), s = vn(() => a.value ? t.block.placeholderUrl : void 0), c = M(() => a.value ? null : t.block.thumbnailUrl ? o.value ?? null : tc(t.block.url)), l = M(() => ({ textAlign: t.block.align })), u = M(() => {
4475
+ let t = e, { t: n } = Kt(), { syntax: r } = $t(), a = M(() => Oe(t.block.url, r) || Oe(t.block.thumbnailUrl, r)), o = wn(() => a.value ? void 0 : t.block.thumbnailUrl || void 0), s = wn(() => a.value ? t.block.placeholderUrl : void 0), c = M(() => a.value ? null : t.block.thumbnailUrl ? o.value ?? null : sc(t.block.url)), l = M(() => ({ textAlign: t.block.align })), u = M(() => {
4415
4476
  let e = t.block.align;
4416
4477
  return {
4417
4478
  maxWidth: "100%",
@@ -4420,7 +4481,7 @@ var nc = ["src", "alt"], rc = {
4420
4481
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
4421
4482
  marginRight: e === "center" ? "auto" : void 0
4422
4483
  };
4423
- }), d = M(() => De(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
4484
+ }), d = M(() => Oe(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
4424
4485
  return (t, r) => (f(), x("div", {
4425
4486
  class: "tpl:w-full",
4426
4487
  style: i(l.value)
@@ -4432,16 +4493,16 @@ var nc = ["src", "alt"], rc = {
4432
4493
  class: "tpl:w-full tpl:border-0",
4433
4494
  src: k(s),
4434
4495
  alt: e.block.alt
4435
- }, null, 8, nc), w($s)], 4)) : a.value ? (f(), x("div", {
4496
+ }, null, 8, cc), w(ac)], 4)) : a.value ? (f(), x("div", {
4436
4497
  key: 1,
4437
4498
  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)]",
4438
4499
  style: i([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, u.value])
4439
- }, [w(k(cr), {
4500
+ }, [w(k(mr), {
4440
4501
  size: 36,
4441
4502
  "stroke-width": 1.5,
4442
4503
  class: "tpl:text-[var(--tpl-primary)]",
4443
4504
  style: { opacity: "0.5" }
4444
- }), b("span", rc, [w(Kn, { text: d.value }, null, 8, ["text"])])], 4)) : c.value ? (f(), x(j, { key: 2 }, [e.block.url ? (f(), x("a", {
4505
+ }), b("span", lc, [w(Qn, { text: d.value }, null, 8, ["text"])])], 4)) : c.value ? (f(), x(j, { key: 2 }, [e.block.url ? (f(), x("a", {
4445
4506
  key: 0,
4446
4507
  href: e.block.url,
4447
4508
  target: "_blank",
@@ -4453,7 +4514,7 @@ var nc = ["src", "alt"], rc = {
4453
4514
  class: "tpl:w-full tpl:border-0",
4454
4515
  src: c.value,
4455
4516
  alt: e.block.alt
4456
- }, null, 8, ac), w($s, { "hover-effect": "" })], 12, ic)) : (f(), x("div", {
4517
+ }, null, 8, dc), w(ac, { "hover-effect": "" })], 12, uc)) : (f(), x("div", {
4457
4518
  key: 1,
4458
4519
  class: "tpl:relative tpl:inline-block",
4459
4520
  style: i(u.value)
@@ -4461,48 +4522,48 @@ var nc = ["src", "alt"], rc = {
4461
4522
  class: "tpl:w-full tpl:border-0",
4462
4523
  src: c.value,
4463
4524
  alt: e.block.alt
4464
- }, null, 8, oc), w($s)], 4))], 64)) : (f(), x("div", sc, [w(k(cr), {
4525
+ }, null, 8, fc), w(ac)], 4))], 64)) : (f(), x("div", pc, [w(k(mr), {
4465
4526
  size: 40,
4466
4527
  "stroke-width": 1.5,
4467
4528
  class: "tpl:text-[var(--tpl-border-light)]"
4468
4529
  }), b("span", null, p(k(n).video.addVideo), 1)]))], 4));
4469
4530
  }
4470
- }), lc = {
4471
- section: Ns,
4472
- title: Bi,
4473
- paragraph: xi,
4474
- image: ci,
4475
- button: Yn,
4476
- divider: Hr,
4477
- video: cc,
4478
- social: Us,
4479
- menu: fi,
4480
- table: Qs,
4481
- spacer: Ks,
4482
- html: Jr,
4483
- countdown: C(() => import("./CountdownBlock-aZIKfBWY.js"))
4531
+ }), hc = {
4532
+ section: zs,
4533
+ title: Ki,
4534
+ paragraph: Di,
4535
+ image: mi,
4536
+ button: tr,
4537
+ divider: Jr,
4538
+ video: mc,
4539
+ social: Ys,
4540
+ menu: vi,
4541
+ table: ic,
4542
+ spacer: Qs,
4543
+ html: ei,
4544
+ countdown: C(() => import("./CountdownBlock-CIVAQDVu.js"))
4484
4545
  };
4485
- function uc(e) {
4486
- let { editor: t, config: n, translations: r, fontsManager: i } = e, { t: a, format: o } = Ht(r);
4546
+ function gc(e) {
4547
+ let { editor: t, config: n, translations: r, fontsManager: i } = e, { t: a, format: o } = Kt(r);
4487
4548
  t.setUiTheme(n.uiTheme ?? "auto");
4488
- let { resolvedTheme: l } = En(M(() => t.state.uiTheme)), d = _(n.theme ?? {}), { themeStyles: f } = On({
4549
+ let { resolvedTheme: l } = Mn(M(() => t.state.uiTheme)), d = _(n.theme ?? {}), { themeStyles: f } = Pn({
4489
4550
  themeOverrides: d,
4490
4551
  resolvedTheme: l,
4491
4552
  extraStyles: e.themeExtraStyles
4492
- }), p = nn({
4553
+ }), p = sn({
4493
4554
  content: t.content,
4494
4555
  setContent: (e, n) => t.setContent(e, n),
4495
4556
  ...e.historyOptions
4496
4557
  });
4497
- ln(t, p);
4498
- let m = an({
4558
+ pn(t, p);
4559
+ let m = ln({
4499
4560
  addBlock: t.addBlock,
4500
4561
  removeBlock: t.removeBlock,
4501
4562
  updateBlock: t.updateBlock,
4502
4563
  selectBlock: t.selectBlock,
4503
4564
  findBlockLocation: t.findBlockLocation,
4504
4565
  blockDefaults: n.blockDefaults
4505
- }), h = sn(t), g = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? on({
4566
+ }), h = dn(t), g = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? un({
4506
4567
  content: t.content,
4507
4568
  isDirty: () => t.state.isDirty,
4508
4569
  ...e.autoSaveOptions
@@ -4510,34 +4571,34 @@ function uc(e) {
4510
4571
  g && (v = c(p.isNavigating, (e) => {
4511
4572
  e ? g.pause() : g.resume();
4512
4573
  }));
4513
- let y = Tn(t, {
4574
+ let y = jn(t, {
4514
4575
  t: a,
4515
4576
  format: o
4516
- }, n.customBlocks ?? []), b = nt(n.colors);
4517
- if (b.allowCustomIgnored && jn.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), b.invalidPresets.length > 0 && jn.warn(`config.colors.presets skipped invalid entries: ${b.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), b.allowCustom === !1) {
4518
- let e = Bn(b.presets, n.blockDefaults, n.templateDefaults);
4519
- e.length > 0 && jn.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.`);
4577
+ }, n.customBlocks ?? []), b = rt(n.colors);
4578
+ if (b.allowCustomIgnored && Ln.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), b.invalidPresets.length > 0 && Ln.warn(`config.colors.presets skipped invalid entries: ${b.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), b.allowCustom === !1) {
4579
+ let e = Kn(b.presets, n.blockDefaults, n.templateDefaults);
4580
+ e.length > 0 && Ln.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.`);
4520
4581
  }
4521
- let x = Mn();
4522
- Ln(x, lc);
4582
+ let x = Rn();
4583
+ Un(x, hc);
4523
4584
  let S = /* @__PURE__ */ new Set();
4524
4585
  function C(e) {
4525
4586
  for (let t of e) {
4526
- x.registerCustom(t, Br);
4527
- for (let e of Hn(t, b)) S.has(e.id) || (S.add(e.id), jn.warn(e.message));
4587
+ x.registerCustom(t, Kr);
4588
+ for (let e of Jn(t, b)) S.has(e.id) || (S.add(e.id), Ln.warn(e.message));
4528
4589
  }
4529
4590
  }
4530
4591
  n.customBlocks?.length && C(n.customBlocks);
4531
- let w = gn();
4592
+ let w = bn();
4532
4593
  if (s() && u(w.dispose), e.containerEl) {
4533
4594
  let t = e.containerEl;
4534
- at(document, "pointerdown", (e) => {
4595
+ ot(document, "pointerdown", (e) => {
4535
4596
  let n = t.value;
4536
4597
  n && (e.composedPath?.() ?? []).includes(n) && w.claim();
4537
4598
  }, { capture: !0 });
4538
4599
  }
4539
4600
  function T(r) {
4540
- w.isActive() && Wn(r, {
4601
+ w.isActive() && Xn(r, {
4541
4602
  history: p,
4542
4603
  selectBlock: (e) => t.selectBlock(e),
4543
4604
  getSelectedBlockId: () => t.state.selectedBlockId,
@@ -4549,25 +4610,33 @@ function uc(e) {
4549
4610
  onCancelPick: () => e.capabilities?.savedBlocks?.cancelPicking()
4550
4611
  });
4551
4612
  }
4552
- at(document, "keydown", T);
4613
+ ot(document, "keydown", T);
4553
4614
  let D = _(null);
4554
- E(Et, e.editorRoot ?? document), E(gt, D), E(Vt, r), E(Dt, t), E(Lt, p), E(Ot, m), E(wt, h), E(xt, i), E(_t, f), E(st, l), E(St, n.blockDefaults), E(Pt, x), E(Tt, n.customBlocks ?? []), E(mt, n.paletteBlocks), E(Bt, Rn(n.htmlBlockPreview)), E(jt, b), E(Ft, Nn(t.content, x));
4555
- let O = ge(n.mergeTags?.syntax);
4556
- E(yt, n.mergeTags?.tags ?? []), E(At, O), E(pt, n.mergeTags?.onRequest ?? null), E(ut, n.mergeTags?.autocomplete !== !1);
4557
- let k = _(Ne(n.mergeTags?.tags ?? []));
4558
- E(ht, k);
4559
- let A = yn();
4560
- E(lt, A), E(ct, n.logicTags?.tags ?? []), E(vt, n.logicTags?.pairs ?? []), E(ot, n.logicTags?.onRequest ?? null), E(Rt, bn()), E(kt, n.onRequestMedia ?? null), E(Ct, n.resolveImageUrl ? _n(n.resolveImageUrl) : null), E(Mt, n.displayConditions?.conditions ?? []), E(Nt, n.displayConditions?.allowCustom ?? !1), E(It, e.capabilities ?? {}), E(zt, y);
4561
- let j = xn(n.lint) ? null : Sn({
4615
+ E(Et, e.editorRoot ?? document), E(ft, D), E(mt, r), E(jt, t), E(Gt, p), E(Dt, m), E(At, h), E(Ht, i), E(wt, f), E(Ct, l), E(Lt, n.blockDefaults), E(Bt, x), E(Rt, n.customBlocks ?? []), E(bt, n.paletteBlocks), E(Ot, Wn(n.htmlBlockPreview)), E(Vt, b), E(Ft, zn(t.content, x));
4616
+ let O = xe(n.mergeTags?.syntax);
4617
+ E(dt, n.mergeTags?.tags ?? []), E(st, O), E(vt, n.mergeTags?.onRequest ?? null), E(ut, n.mergeTags?.autocomplete !== !1);
4618
+ let k = _(Pe(n.mergeTags?.tags ?? []));
4619
+ E(Pt, k);
4620
+ let A = Sn({
4621
+ resolvePreview: n.resolvePreview,
4622
+ getContent: () => t.content.value,
4623
+ isActive: () => t.state.previewMode
4624
+ });
4625
+ E(ht, A), E(gt, n.resolvePreview);
4626
+ let j = M(() => !(t.state.previewMode && A.isConfigured));
4627
+ E(zt, j);
4628
+ let ee = Tn();
4629
+ E(yt, ee), E(Ut, n.logicTags?.tags ?? []), E(lt, n.logicTags?.pairs ?? []), E(Nt, n.logicTags?.onRequest ?? null), E(St, En()), E(_t, n.onRequestMedia ?? null), E(Wt, n.resolveImageUrl ? Cn(n.resolveImageUrl) : null), E(Mt, n.displayConditions?.conditions ?? []), E(It, n.displayConditions?.allowCustom ?? !1), E(kt, e.capabilities ?? {}), E(xt, y);
4630
+ let te = Dn(n.lint) ? null : On({
4562
4631
  content: t.content,
4563
4632
  options: n.lint ?? {},
4564
4633
  updateBlock: t.updateBlock,
4565
4634
  updateSettings: t.updateSettings,
4566
4635
  removeBlock: t.removeBlock
4567
4636
  });
4568
- E(ft, j);
4569
- function ee() {
4570
- v?.(), j?.destroy(), g?.destroy(), p.destroy();
4637
+ E(ct, te);
4638
+ function N() {
4639
+ v?.(), te?.destroy(), g?.destroy(), p.destroy();
4571
4640
  }
4572
4641
  return {
4573
4642
  t: a,
@@ -4581,12 +4650,14 @@ function uc(e) {
4581
4650
  themeOverrides: d,
4582
4651
  registry: x,
4583
4652
  keyboardReorder: y,
4584
- templateLint: j,
4653
+ templateLint: te,
4585
4654
  popoverRoot: D,
4586
4655
  mergeTagSampleMode: k,
4656
+ previewResolution: A,
4657
+ appliesConditionFilter: j,
4587
4658
  registerCustomBlocks: C,
4588
- destroy: ee
4659
+ destroy: N
4589
4660
  };
4590
4661
  }
4591
4662
  //#endregion
4592
- export { sr as A, Vn as B, Dr as C, hr as D, gr as E, er as F, cn as G, wn as H, $n as I, Qt as K, Qn as L, ir as M, rr as N, mr as O, nr as P, Xn as R, kr as S, xr as T, Cn as U, jn as V, fn as W, Xr as _, Us as a, Br as b, ks as c, wi as d, Si as f, ci as g, fi as h, Ks as i, or as j, dr as k, Bi as l, xi as m, cc as n, Is as o, Ci as p, un as q, Qs as r, Ns as s, uc as t, Ri as u, Jr as v, Sr as w, jr as x, Hr as y, Yn as z };
4663
+ export { pr as A, qn as B, Nr as C, xr as D, Sr as E, or as F, gn as G, An as H, ar as I, mn as J, fn as K, ir as L, ur as M, lr as N, br as O, cr as P, nr as R, Fr as S, Dr as T, kn as U, Ln as V, Sn as W, ni as _, Ys as a, Kr as b, Fs as c, Ai as d, Oi as f, mi as g, vi as h, Qs as i, fr as j, _r as k, Ki as l, Di as m, mc as n, Hs as o, ki as p, nn as q, ic as r, zs as s, gc as t, Wi as u, ei as v, Or as w, Lr as x, Jr as y, tr as z };