@templatical/editor 0.45.0 → 0.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/dist/{AiChatSidebar-BlFWWhBv.js → AiChatSidebar-DGcH4Lyo.js} +1 -1
  2. package/dist/{AiFeatureMenu-CvWygUmC.js → AiFeatureMenu-B4q-0g1S.js} +1 -1
  3. package/dist/{BlockPreviewCanvas-DwxJOTzH.js → BlockPreviewCanvas-DIZ0KgUD.js} +3 -3
  4. package/dist/{CloudHeaderExtras-BzM1QU1r.js → CloudHeaderExtras-ehMYJP68.js} +1 -1
  5. package/dist/{CloudPanels-d36YXXyn.js → CloudPanels-BwOaAlKz.js} +2 -2
  6. package/dist/{CollaboratorBar-rwXe_Qd2.js → CollaboratorBar-qOZFRNPx.js} +1 -1
  7. package/dist/{CountdownToolbar-lbjCc8ik.js → CountdownToolbar-BeF21SeB.js} +4 -4
  8. package/dist/{DesignReferenceSidebar-zlJQsP0X.js → DesignReferenceSidebar-zH93uB15.js} +1 -1
  9. package/dist/{IssuesPanel-CHx3m8SP.js → IssuesPanel-Dltw9haP.js} +1 -1
  10. package/dist/{LogicTagInsertButton-BvftbkL4.js → LogicTagInsertButton-CHa-UD76.js} +12 -12
  11. package/dist/{MergeTagInput-CR1kcj8X.js → MergeTagInput-B3ntd4dN.js} +1 -1
  12. package/dist/{MergeTagModeToggle-DssKrVYb.js → MergeTagModeToggle-C_06ZL0Q.js} +1 -1
  13. package/dist/{ParagraphEditor-DFizsZRc.js → ParagraphEditor-CxuW3TV0.js} +6 -6
  14. package/dist/{RestoreVersionDialog-Cp3q2mU4.js → RestoreVersionDialog-B1n37M1Z.js} +1 -1
  15. package/dist/{RichTextEditorContent-Cj3oaPMk.js → RichTextEditorContent-CP_uULWB.js} +2 -2
  16. package/dist/{SaveBlockDialog-BR8vW_XF.js → SaveBlockDialog-BSKX_7_v.js} +5 -5
  17. package/dist/{SavedBlocksBrowserModal-DmwbmKxI.js → SavedBlocksBrowserModal-CHKrH1gO.js} +4 -4
  18. package/dist/{SavedBlocksPanels-D4XKrs-a.js → SavedBlocksPanels-B-xDqBcz.js} +1 -1
  19. package/dist/{SavedBlocksPickBar-gfc-o5sR.js → SavedBlocksPickBar-D2J-g82g.js} +1 -1
  20. package/dist/{TemplateSettings-D7aNrd0d.js → TemplateSettings-D07K_Y4m.js} +4 -4
  21. package/dist/{TestEmailModal-DUmtcSm-.js → TestEmailModal-BNPw_lID.js} +5 -5
  22. package/dist/{TestEmailPanel-s9gISTI8.js → TestEmailPanel-8klWo8hE.js} +1 -1
  23. package/dist/{TitleEditor-C-uHqtml.js → TitleEditor-CmC9OuhA.js} +4 -4
  24. package/dist/{ToggleSwitch-CTwwCIVA.js → ToggleSwitch-COeyWGfT.js} +1 -1
  25. package/dist/{Toolbar-CLpA36RO.js → Toolbar-CqhRb6EM.js} +36 -36
  26. package/dist/{TplModal-D6XtxusQ.js → TplModal-BGFawHY9.js} +1 -1
  27. package/dist/{VersionHistoryPanels-Dvowtt7V.js → VersionHistoryPanels-DdbGjEOR.js} +1 -1
  28. package/dist/{WrapperBlock-CzJa2Mxw.js → WrapperBlock-CTkmA887.js} +1 -1
  29. package/dist/{blockTypeIcons-D3aj5u_5.js → blockTypeIcons-CVKo6V_v.js} +1 -1
  30. package/dist/bundle-stats.json +6 -6
  31. package/dist/cdn/chunks/{AiChatSidebar-SRGBP-SL.js → AiChatSidebar-kCK4NZM9.js} +2 -2
  32. package/dist/cdn/chunks/{AiChatSidebar-SRGBP-SL.js.map → AiChatSidebar-kCK4NZM9.js.map} +1 -1
  33. package/dist/cdn/chunks/{AiFeatureMenu-oZhlgsGh.js → AiFeatureMenu-K1dLeDft.js} +2 -2
  34. package/dist/cdn/chunks/{AiFeatureMenu-oZhlgsGh.js.map → AiFeatureMenu-K1dLeDft.js.map} +1 -1
  35. package/dist/cdn/chunks/{BlockPreviewCanvas-hKxE6f-k.js → BlockPreviewCanvas-Djz9YAFx.js} +4 -4
  36. package/dist/cdn/chunks/{BlockPreviewCanvas-hKxE6f-k.js.map → BlockPreviewCanvas-Djz9YAFx.js.map} +1 -1
  37. package/dist/cdn/chunks/{CloudHeaderExtras-t-_ZlHwn.js → CloudHeaderExtras-5ONQ1RCa.js} +2 -2
  38. package/dist/cdn/chunks/{CloudHeaderExtras-t-_ZlHwn.js.map → CloudHeaderExtras-5ONQ1RCa.js.map} +1 -1
  39. package/dist/cdn/chunks/{CloudPanels-DR2eEcpX.js → CloudPanels-_irSdWbi.js} +3 -3
  40. package/dist/cdn/chunks/{CloudPanels-DR2eEcpX.js.map → CloudPanels-_irSdWbi.js.map} +1 -1
  41. package/dist/cdn/chunks/{CollaboratorBar-w8_2WPE0.js → CollaboratorBar-CZufI1On.js} +2 -2
  42. package/dist/cdn/chunks/{CollaboratorBar-w8_2WPE0.js.map → CollaboratorBar-CZufI1On.js.map} +1 -1
  43. package/dist/cdn/chunks/{CountdownToolbar-CvNuDR5Z.js → CountdownToolbar-BaXCefQM.js} +5 -5
  44. package/dist/cdn/chunks/{CountdownToolbar-CvNuDR5Z.js.map → CountdownToolbar-BaXCefQM.js.map} +1 -1
  45. package/dist/cdn/chunks/{DesignReferenceSidebar-CJg_5GXU.js → DesignReferenceSidebar-GjkpHylX.js} +2 -2
  46. package/dist/cdn/chunks/{DesignReferenceSidebar-CJg_5GXU.js.map → DesignReferenceSidebar-GjkpHylX.js.map} +1 -1
  47. package/dist/cdn/chunks/{IssuesPanel-DXqlRk19.js → IssuesPanel-C1Lv2y_O.js} +2 -2
  48. package/dist/cdn/chunks/{IssuesPanel-DXqlRk19.js.map → IssuesPanel-C1Lv2y_O.js.map} +1 -1
  49. package/dist/cdn/chunks/{LogicTagInsertButton-DnHghQHb.js → LogicTagInsertButton-BYjdrDnQ.js} +4 -4
  50. package/dist/cdn/chunks/{LogicTagInsertButton-DnHghQHb.js.map → LogicTagInsertButton-BYjdrDnQ.js.map} +1 -1
  51. package/dist/cdn/chunks/{MergeTagInput-heTX9P_k.js → MergeTagInput-Cx67J_vg.js} +2 -2
  52. package/dist/cdn/chunks/{MergeTagInput-heTX9P_k.js.map → MergeTagInput-Cx67J_vg.js.map} +1 -1
  53. package/dist/cdn/chunks/{MergeTagModeToggle-C9EfuZIP.js → MergeTagModeToggle-DZ4EuXVp.js} +2 -2
  54. package/dist/cdn/chunks/{MergeTagModeToggle-C9EfuZIP.js.map → MergeTagModeToggle-DZ4EuXVp.js.map} +1 -1
  55. package/dist/cdn/chunks/{ParagraphEditor-B5DN4Sy4.js → ParagraphEditor-DndEFXmR.js} +7 -7
  56. package/dist/cdn/chunks/{ParagraphEditor-B5DN4Sy4.js.map → ParagraphEditor-DndEFXmR.js.map} +1 -1
  57. package/dist/cdn/chunks/{RestoreVersionDialog-DBgJ-Nui.js → RestoreVersionDialog-CFYs13a4.js} +2 -2
  58. package/dist/cdn/chunks/{RestoreVersionDialog-DBgJ-Nui.js.map → RestoreVersionDialog-CFYs13a4.js.map} +1 -1
  59. package/dist/cdn/chunks/{RichTextEditorContent-LOas4rfU.js → RichTextEditorContent-DKkDQ0dc.js} +3 -3
  60. package/dist/cdn/chunks/{RichTextEditorContent-LOas4rfU.js.map → RichTextEditorContent-DKkDQ0dc.js.map} +1 -1
  61. package/dist/cdn/chunks/{SaveBlockDialog-Dx-QVQCX.js → SaveBlockDialog-BOA2RaC_.js} +6 -6
  62. package/dist/cdn/chunks/{SaveBlockDialog-Dx-QVQCX.js.map → SaveBlockDialog-BOA2RaC_.js.map} +1 -1
  63. package/dist/cdn/chunks/{SavedBlocksBrowserModal-C2RQ-JCc.js → SavedBlocksBrowserModal-DQDVek3K.js} +4 -4
  64. package/dist/cdn/chunks/{SavedBlocksBrowserModal-C2RQ-JCc.js.map → SavedBlocksBrowserModal-DQDVek3K.js.map} +1 -1
  65. package/dist/cdn/chunks/{SavedBlocksPanels-BmRbvqqL.js → SavedBlocksPanels-Lu3tJ3QA.js} +2 -2
  66. package/dist/cdn/chunks/{SavedBlocksPanels-BmRbvqqL.js.map → SavedBlocksPanels-Lu3tJ3QA.js.map} +1 -1
  67. package/dist/cdn/chunks/{SavedBlocksPickBar-BzwKojoJ.js → SavedBlocksPickBar-D7MtqG6r.js} +2 -2
  68. package/dist/cdn/chunks/{SavedBlocksPickBar-BzwKojoJ.js.map → SavedBlocksPickBar-D7MtqG6r.js.map} +1 -1
  69. package/dist/cdn/chunks/{TemplateSettings-G-yV7C1C.js → TemplateSettings-rZiHmq24.js} +5 -5
  70. package/dist/cdn/chunks/{TemplateSettings-G-yV7C1C.js.map → TemplateSettings-rZiHmq24.js.map} +1 -1
  71. package/dist/cdn/chunks/{TestEmailModal-lOeztfTN.js → TestEmailModal-DWEyHXH2.js} +6 -6
  72. package/dist/cdn/chunks/{TestEmailModal-lOeztfTN.js.map → TestEmailModal-DWEyHXH2.js.map} +1 -1
  73. package/dist/cdn/chunks/{TestEmailPanel-CZswVkk_.js → TestEmailPanel-XXMD-Lnr.js} +2 -2
  74. package/dist/cdn/chunks/{TestEmailPanel-CZswVkk_.js.map → TestEmailPanel-XXMD-Lnr.js.map} +1 -1
  75. package/dist/cdn/chunks/{TitleEditor-CnTT2Y3H.js → TitleEditor-D1F0YoE-.js} +4 -4
  76. package/dist/cdn/chunks/{TitleEditor-CnTT2Y3H.js.map → TitleEditor-D1F0YoE-.js.map} +1 -1
  77. package/dist/cdn/chunks/{ToggleSwitch-CLHteVMO.js → ToggleSwitch-B5U9cqhi.js} +2 -2
  78. package/dist/cdn/chunks/{ToggleSwitch-CLHteVMO.js.map → ToggleSwitch-B5U9cqhi.js.map} +1 -1
  79. package/dist/cdn/chunks/{Toolbar-K4tIkpG1.js → Toolbar-C_5HfUQq.js} +55 -55
  80. package/dist/cdn/chunks/{Toolbar-K4tIkpG1.js.map → Toolbar-C_5HfUQq.js.map} +1 -1
  81. package/dist/cdn/chunks/{TplModal-OOT36AjS.js → TplModal-CYBbPCHL.js} +2 -2
  82. package/dist/cdn/chunks/{TplModal-OOT36AjS.js.map → TplModal-CYBbPCHL.js.map} +1 -1
  83. package/dist/cdn/chunks/{VersionHistoryPanels-BrpYRSfW.js → VersionHistoryPanels-Dq12VsTX.js} +2 -2
  84. package/dist/cdn/chunks/{VersionHistoryPanels-BrpYRSfW.js.map → VersionHistoryPanels-Dq12VsTX.js.map} +1 -1
  85. package/dist/cdn/chunks/{WrapperBlock-DdrnwH80.js → WrapperBlock-CJ0CLqi2.js} +2 -2
  86. package/dist/cdn/chunks/{WrapperBlock-DdrnwH80.js.map → WrapperBlock-CJ0CLqi2.js.map} +1 -1
  87. package/dist/cdn/chunks/{cloud-bhW8qTnh.js → cloud-h1vaHp2p.js} +2 -2
  88. package/dist/cdn/chunks/{cloud-bhW8qTnh.js.map → cloud-h1vaHp2p.js.map} +1 -1
  89. package/dist/cdn/chunks/{createCloudRuntime-CeRJkLR2.js → createCloudRuntime-bJN9EM1H.js} +3 -3
  90. package/dist/cdn/chunks/{createCloudRuntime-CeRJkLR2.js.map → createCloudRuntime-bJN9EM1H.js.map} +1 -1
  91. package/dist/cdn/chunks/{extensions-xjRsIjMP.js → extensions-CrmXF4MW.js} +6 -6
  92. package/dist/cdn/chunks/extensions-CrmXF4MW.js.map +1 -0
  93. package/dist/{preRenderCustomBlocks-DAS48ZCp.js → cdn/chunks/preRenderCustomBlocks-CyGB3lZr.js} +5 -3
  94. package/dist/cdn/chunks/{preRenderCustomBlocks-CFwa7nP9.js.map → preRenderCustomBlocks-CyGB3lZr.js.map} +1 -1
  95. package/dist/cdn/chunks/{socialIcons-CsYnPPll.js → socialIcons-ClJVDZwt.js} +82 -101
  96. package/dist/cdn/chunks/socialIcons-ClJVDZwt.js.map +1 -0
  97. package/dist/cdn/chunks/{src-HA9F2kvk.js → src-B0pZeTYO.js} +200 -183
  98. package/dist/cdn/chunks/src-B0pZeTYO.js.map +1 -0
  99. package/dist/cdn/chunks/{src-CkXmV2I2.js → src-BMw3u-iV.js} +213 -215
  100. package/dist/cdn/chunks/src-BMw3u-iV.js.map +1 -0
  101. package/dist/cdn/chunks/{src-BcqNlDMe.js → src-Bh0MoJ67.js} +280 -187
  102. package/dist/cdn/chunks/src-Bh0MoJ67.js.map +1 -0
  103. package/dist/cdn/chunks/{useEditorCore-BF1ZhcGu.js → useEditorCore-DuC7kVti.js} +323 -319
  104. package/dist/cdn/chunks/useEditorCore-DuC7kVti.js.map +1 -0
  105. package/dist/cdn/chunks/{useLogicTag-91bO_SOi.js → useLogicTag-B3uV3XHG.js} +2 -2
  106. package/dist/cdn/chunks/{useLogicTag-91bO_SOi.js.map → useLogicTag-B3uV3XHG.js.map} +1 -1
  107. package/dist/cdn/chunks/{useMergeTag-hwifK582.js → useMergeTag-DJLM-7WQ.js} +2 -2
  108. package/dist/cdn/chunks/{useMergeTag-hwifK582.js.map → useMergeTag-DJLM-7WQ.js.map} +1 -1
  109. package/dist/cdn/chunks/{useScrollToBlock-BDNJ25X1.js → useScrollToBlock-CpmB5KxW.js} +2 -3
  110. package/dist/cdn/chunks/useScrollToBlock-CpmB5KxW.js.map +1 -0
  111. package/dist/cdn/chunks/withCurrentFont-isIyuezD.js +21 -0
  112. package/dist/cdn/chunks/withCurrentFont-isIyuezD.js.map +1 -0
  113. package/dist/cdn/editor.css +1 -1
  114. package/dist/cdn/editor.js +435 -417
  115. package/dist/cdn/editor.js.map +1 -1
  116. package/dist/{cloud-CVfwPu19.js → cloud-DPGjMGfv.js} +1 -1
  117. package/dist/{createCloudRuntime-GRv_TDb2.js → createCloudRuntime-D0RRgWab.js} +2 -2
  118. package/dist/{dist-CSaWqmWM.js → dist-BI_LeQGl.js} +271 -200
  119. package/dist/{extensions-B65sfZRk.js → extensions-CYigjb1g.js} +13 -13
  120. package/dist/index.d.ts +34 -12
  121. package/dist/{cdn/chunks/preRenderCustomBlocks-CFwa7nP9.js → preRenderCustomBlocks-DokBGA_M.js} +3 -5
  122. package/dist/{socialIcons-CvAixjj8.js → socialIcons-Ct_IoqPQ.js} +107 -126
  123. package/dist/style.css +1 -1
  124. package/dist/templatical-editor.js +456 -438
  125. package/dist/{useEditorCore-DQSeKPE9.js → useEditorCore-BJAQMvNW.js} +482 -478
  126. package/dist/{useLogicTag-BH87j1vZ.js → useLogicTag-B5gjcMzn.js} +1 -1
  127. package/dist/{useMergeTag-DfPKX2Tk.js → useMergeTag-BwsBIDzR.js} +3 -3
  128. package/dist/{useScrollToBlock-Dr7Sb6Tr.js → useScrollToBlock-JRxhT1u_.js} +1 -2
  129. package/dist/withCurrentFont-C9vqrduu.js +19 -0
  130. package/package.json +8 -8
  131. package/dist/cdn/chunks/extensions-xjRsIjMP.js.map +0 -1
  132. package/dist/cdn/chunks/socialIcons-CsYnPPll.js.map +0 -1
  133. package/dist/cdn/chunks/src-BcqNlDMe.js.map +0 -1
  134. package/dist/cdn/chunks/src-CkXmV2I2.js.map +0 -1
  135. package/dist/cdn/chunks/src-HA9F2kvk.js.map +0 -1
  136. package/dist/cdn/chunks/useEditorCore-BF1ZhcGu.js.map +0 -1
  137. package/dist/cdn/chunks/useScrollToBlock-BDNJ25X1.js.map +0 -1
  138. package/dist/cdn/chunks/withCurrentFont-DeCbPVaE.js +0 -32
  139. package/dist/cdn/chunks/withCurrentFont-DeCbPVaE.js.map +0 -1
  140. package/dist/withCurrentFont-DeCbPVaE.js +0 -30
@@ -1,50 +1,50 @@
1
1
  import { $ as e, A as t, At as n, B as r, D as i, E as a, F as o, J as s, K as c, M as l, N as u, O as d, R as f, S as p, V as m, W as h, Y as g, Z as _, _ as v, at as y, b, c as x, d as S, g as C, h as w, it as T, j as E, jt as D, k as O, kt as k, l as A, nt as j, r as M, rt as ee, s as N, u as P, v as F, y as te } from "./vue.runtime.esm-bundler-CctRY8kr.js";
2
2
  import { c as I, o as ne, s as re } from "./runtime-dom.esm-bundler-CO67ema2.js";
3
- import { $ as ie, A as ae, B as oe, C as se, D as ce, F as le, H as ue, I as de, L as fe, N as pe, O as me, Q as he, S as ge, T as _e, U as ve, V as ye, W as be, X as xe, Y as Se, Z as Ce, _ as we, a as Te, at as Ee, b as De, c as Oe, et as ke, g as Ae, i as je, it as Me, j as Ne, k as Pe, m as Fe, nt as Ie, o as Le, ot as Re, q as ze, r as Be, rt as Ve, st as He, tt as Ue, u as We, v as Ge, w as Ke, x as qe, z as Je } from "./dist-CSaWqmWM.js";
4
- import { C as Ye, _ as Xe, a as Ze, b as Qe, c as $e, d as et, g as tt, i as nt, l as rt, n as it, o as at, s as ot, t as st, u as ct, w as lt, x as ut } from "./socialIcons-CvAixjj8.js";
5
- import { _ as dt, h as ft, v as pt, y as mt } from "./dist-C-VFTX82.js";
6
- import { a as ht, c as gt, i as _t } from "./dist-B_vYjCsk.js";
7
- import { $ as vt, A as yt, B as bt, C as xt, D as St, E as Ct, F as wt, G as Tt, H as Et, I as Dt, J as Ot, K as kt, L as At, M as jt, N as Mt, O as Nt, P as Pt, Q as Ft, R as It, S as Lt, T as Rt, V as zt, X as Bt, Y as Vt, Z as Ht, _ as Ut, a as Wt, b as Gt, c as Kt, d as qt, f as Jt, g as Yt, h as Xt, j as Zt, k as Qt, l as $t, m as en, n as tn, o as nn, p as rn, q as an, r as on, s as sn, v as cn, w as ln, x as un, y as dn, z as fn } from "./keys-injl74ob.js";
8
- import { t as pn } from "./useI18n-uF11q85g.js";
9
- import { t as mn } from "./logger-BBlvSn6q.js";
10
- import { i as hn, r as gn, s as _n, t as vn } from "./usePopoverPosition-DkBrHfCo.js";
11
- import { r as yn, t as bn } from "./templateSettingsFields-YCFVBVYh.js";
12
- import { t as xn } from "./createLucideIcon-BAPyioGd.js";
13
- import { t as Sn } from "./copy-D6DNoSq1.js";
14
- import { t as Cn } from "./loader-circle-D8Qqs0MG.js";
15
- import { t as wn } from "./message-circle-D78ELX6I.js";
16
- import { t as Tn } from "./trash-CKEQH4vH.js";
17
- import { t as En } from "./triangle-alert-BHnfd3fV.js";
18
- import { t as Dn } from "./upload-C8uO7KsR.js";
19
- import { t as On } from "./LoadingTrack-DROqNuuD.js";
20
- import { t as kn } from "./_plugin-vue_export-helper-B3ysoDQm.js";
21
- import { t as An } from "./useEditorRoot-OWzNpDdT.js";
3
+ import { $ as ie, A as ae, C as oe, E as se, G as ce, H as le, K as ue, L as de, M as fe, O as pe, P as me, Q as he, R as ge, S as _e, T as ve, U as ye, V as be, W as xe, Y as Se, _ as Ce, a as we, at as Te, ct as Ee, d as De, et as Oe, h as ke, i as Ae, it as je, j as Me, k as Ne, l as Pe, lt as Fe, nt as Ie, o as Le, ot as Re, r as ze, rt as Be, s as Ve, st as He, tt as Ue, ut as We, v as Ge, w as Ke, x as qe, y as Je, z as Ye } from "./dist-BI_LeQGl.js";
4
+ import { C as Xe, _ as Ze, a as Qe, b as $e, c as et, d as tt, g as nt, i as rt, l as it, n as at, o as ot, s as st, t as ct, u as lt, w as ut, x as dt } from "./socialIcons-Ct_IoqPQ.js";
5
+ import { _ as ft, h as pt, v as mt, y as ht } from "./dist-C-VFTX82.js";
6
+ import { a as gt, c as _t, i as vt } from "./dist-B_vYjCsk.js";
7
+ import { $ as yt, A as bt, B as xt, C as St, D as Ct, E as wt, F as Tt, G as Et, H as Dt, I as Ot, J as kt, K as At, L as jt, M as Mt, N as Nt, O as Pt, P as Ft, Q as It, R as Lt, S as Rt, T as zt, V as Bt, X as Vt, Y as Ht, Z as Ut, _ as Wt, a as Gt, b as Kt, c as qt, d as Jt, f as Yt, g as Xt, h as Zt, j as Qt, k as $t, l as en, m as tn, n as nn, o as rn, p as an, q as on, r as sn, s as cn, v as ln, w as un, x as dn, y as fn, z as pn } from "./keys-injl74ob.js";
8
+ import { t as mn } from "./useI18n-uF11q85g.js";
9
+ import { t as hn } from "./logger-BBlvSn6q.js";
10
+ import { i as gn, r as _n, s as vn, t as yn } from "./usePopoverPosition-DkBrHfCo.js";
11
+ import { r as bn, t as xn } from "./templateSettingsFields-YCFVBVYh.js";
12
+ import { t as Sn } from "./createLucideIcon-BAPyioGd.js";
13
+ import { t as Cn } from "./copy-D6DNoSq1.js";
14
+ import { t as wn } from "./loader-circle-D8Qqs0MG.js";
15
+ import { t as Tn } from "./message-circle-D78ELX6I.js";
16
+ import { t as En } from "./trash-CKEQH4vH.js";
17
+ import { t as Dn } from "./triangle-alert-BHnfd3fV.js";
18
+ import { t as On } from "./upload-C8uO7KsR.js";
19
+ import { t as kn } from "./LoadingTrack-DROqNuuD.js";
20
+ import { t as An } from "./_plugin-vue_export-helper-B3ysoDQm.js";
21
+ import { t as jn } from "./useEditorRoot-OWzNpDdT.js";
22
22
  import "./useCloudI18n-GvIOLziA.js";
23
- import { t as jn } from "./useMergeTag-DfPKX2Tk.js";
24
- import { t as Mn } from "./useLogicTag-BH87j1vZ.js";
25
- import { t as Nn } from "./useAliveFlag-6PtarpNZ.js";
23
+ import { t as Mn } from "./useMergeTag-BwsBIDzR.js";
24
+ import { t as Nn } from "./useLogicTag-B5gjcMzn.js";
25
+ import { t as Pn } from "./useAliveFlag-6PtarpNZ.js";
26
26
  //#region src/utils/activeEditorTracker.ts
27
- var Pn = /* @__PURE__ */ new Set(), Fn = 0, In = 0;
28
- function Ln() {
29
- let e = ++In;
30
- return Pn.add(e), Fn === 0 && (Fn = e), {
27
+ var Fn = /* @__PURE__ */ new Set(), In = 0, Ln = 0;
28
+ function Rn() {
29
+ let e = ++Ln;
30
+ return Fn.add(e), In === 0 && (In = e), {
31
31
  id: e,
32
- isActive: () => Pn.size <= 1 || Fn === e,
32
+ isActive: () => Fn.size <= 1 || In === e,
33
33
  claim: () => {
34
- Fn = e;
34
+ In = e;
35
35
  },
36
36
  dispose: () => {
37
- if (Pn.delete(e), Fn === e) {
38
- let e = Array.from(Pn);
39
- Fn = e[e.length - 1] ?? 0;
37
+ if (Fn.delete(e), In === e) {
38
+ let e = Array.from(Fn);
39
+ In = e[e.length - 1] ?? 0;
40
40
  }
41
41
  }
42
42
  };
43
43
  }
44
44
  //#endregion
45
45
  //#region src/composables/usePreviewResolution.ts
46
- var Rn = 500;
47
- function zn(e) {
46
+ var zn = 500;
47
+ function Bn(e) {
48
48
  let t = typeof e.resolvePreview == "function", n = _(null), r = _(!1), i = _(!1), a = 0, o = null;
49
49
  function c() {
50
50
  o !== null && (clearTimeout(o), o = null);
@@ -55,13 +55,13 @@ function zn(e) {
55
55
  let o = ++a;
56
56
  r.value = !0;
57
57
  let s = {
58
- content: ie(e.getContent()),
58
+ content: Ie(e.getContent()),
59
59
  ...e.getRecipient?.() === void 0 ? {} : { recipient: e.getRecipient() }
60
60
  };
61
61
  try {
62
62
  let e = await t(s);
63
63
  if (o !== a) return;
64
- if (!be(e)) {
64
+ if (!ue(e)) {
65
65
  i.value = !0;
66
66
  return;
67
67
  }
@@ -76,7 +76,7 @@ function zn(e) {
76
76
  function u() {
77
77
  t && (c(), n.value === null ? l() : o = setTimeout(() => {
78
78
  o = null, l();
79
- }, Rn));
79
+ }, zn));
80
80
  }
81
81
  return f(() => [e.isActive(), e.getRecipient?.()], ([e]) => {
82
82
  e ? u() : (c(), a++, r.value = !1, n.value = null, i.value = !1);
@@ -93,7 +93,7 @@ function zn(e) {
93
93
  }
94
94
  //#endregion
95
95
  //#region src/composables/useImageUrlResolver.ts
96
- function Bn(e) {
96
+ function Vn(e) {
97
97
  let t = g(/* @__PURE__ */ new Map()), n = /* @__PURE__ */ new Set();
98
98
  function r(e) {
99
99
  return t.get(e);
@@ -122,8 +122,8 @@ function Bn(e) {
122
122
  lookup: a
123
123
  };
124
124
  }
125
- function Vn(e) {
126
- let t = p(un, null), n = N(e);
125
+ function Hn(e) {
126
+ let t = p(dn, null), n = N(e);
127
127
  if (!t) return n;
128
128
  let r;
129
129
  function i() {
@@ -146,7 +146,7 @@ function Vn(e) {
146
146
  }
147
147
  //#endregion
148
148
  //#region src/composables/useMergeTagPicker.ts
149
- function Hn() {
149
+ function Un() {
150
150
  let e = _(!1), t = _([]), n = _(null), r = null;
151
151
  function i(i, a) {
152
152
  if (r) {
@@ -177,7 +177,7 @@ function Hn() {
177
177
  }
178
178
  //#endregion
179
179
  //#region src/composables/useLogicTagPicker.ts
180
- function Un() {
180
+ function Wn() {
181
181
  let e = _(!1), t = _([]), n = _([]), r = null;
182
182
  function i(i, a) {
183
183
  if (r) {
@@ -208,17 +208,17 @@ function Un() {
208
208
  }
209
209
  //#endregion
210
210
  //#region src/composables/useTemplateLint.ts
211
- function Wn(e) {
211
+ function Gn(e) {
212
212
  return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 : !1;
213
213
  }
214
- function Gn(t) {
215
- let n = _([]), r = _(!1), i = _(!1), a = e(null), o = Wn(t.options), s = null, c = !1;
214
+ function Kn(t) {
215
+ let n = _([]), r = _(!1), i = _(!1), a = e(null), o = Gn(t.options), s = null, c = !1;
216
216
  o || l();
217
217
  async function l() {
218
218
  try {
219
219
  let e = await import("@templatical/quality");
220
220
  if (c) return;
221
- a.value = { lintTemplate: e.lintTemplate }, r.value = !0, u(), s = mt(t.content, u, {
221
+ a.value = { lintTemplate: e.lintTemplate }, r.value = !0, u(), s = ht(t.content, u, {
222
222
  debounce: t.debounce ?? 500,
223
223
  deep: !0
224
224
  });
@@ -253,7 +253,7 @@ function Gn(t) {
253
253
  }
254
254
  //#endregion
255
255
  //#region src/composables/useKeyboardReorder.ts
256
- function Kn(e, t, n = []) {
256
+ function qn(e, t, n = []) {
257
257
  let r = _(null), i = _(""), a = null;
258
258
  function o(t) {
259
259
  let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
@@ -280,7 +280,7 @@ function Kn(e, t, n = []) {
280
280
  let i = o(r);
281
281
  if (!i) return "";
282
282
  let a = (i.sectionId ? c(i.sectionId, i.columnIndex ?? 0) : e.content.value.blocks)?.[i.index];
283
- return a ? et(a, t.t, n) : "";
283
+ return a ? tt(a, t.t, n) : "";
284
284
  }
285
285
  function c(t, n) {
286
286
  return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
@@ -349,13 +349,13 @@ function Kn(e, t, n = []) {
349
349
  }
350
350
  //#endregion
351
351
  //#region src/composables/useUiTheme.ts
352
- function qn(e) {
353
- let t = gt("(prefers-color-scheme: dark)");
352
+ function Jn(e) {
353
+ let t = _t("(prefers-color-scheme: dark)");
354
354
  return { resolvedTheme: N(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
355
355
  }
356
356
  //#endregion
357
357
  //#region src/composables/useThemeStyles.ts
358
- var Jn = {
358
+ var Yn = {
359
359
  bg: "--tpl-bg",
360
360
  bgElevated: "--tpl-bg-elevated",
361
361
  bgHover: "--tpl-bg-hover",
@@ -379,10 +379,10 @@ var Jn = {
379
379
  dangerLight: "--tpl-danger-light",
380
380
  canvasBg: "--tpl-canvas-bg"
381
381
  };
382
- function Yn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
382
+ function Xn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
383
383
  return { themeStyles: N(() => {
384
384
  let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
385
- if (a) for (let [e, t] of Object.entries(Jn)) {
385
+ if (a) for (let [e, t] of Object.entries(Yn)) {
386
386
  let n = a[e];
387
387
  n && (r[t] = n);
388
388
  }
@@ -391,7 +391,7 @@ function Yn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
391
391
  }
392
392
  //#endregion
393
393
  //#region src/composables/useBlockRegistry.ts
394
- function Xn() {
394
+ function Zn() {
395
395
  let t = e(/* @__PURE__ */ new Map());
396
396
  function n(e, n) {
397
397
  t.value.set(e, n), T(t);
@@ -399,7 +399,7 @@ function Xn() {
399
399
  function r(e, n) {
400
400
  let r = `custom:${e.type}`, i = {
401
401
  component: n,
402
- createBlock: () => Ge(e),
402
+ createBlock: () => Je(e),
403
403
  definition: e
404
404
  };
405
405
  t.value.set(r, i), T(t);
@@ -431,7 +431,7 @@ function Xn() {
431
431
  strictFilters: !1
432
432
  }).parseAndRender(t.template, e.fieldValues);
433
433
  } catch (t) {
434
- return mn.error(`Failed to render custom block "${e.customType}":`, t), s(`Render error: ${e.customType}`);
434
+ return hn.error(`Failed to render custom block "${e.customType}":`, t), s(`Render error: ${e.customType}`);
435
435
  }
436
436
  }
437
437
  function l(e) {
@@ -449,9 +449,9 @@ function Xn() {
449
449
  }
450
450
  //#endregion
451
451
  //#region src/composables/useCustomBlockStylesheets.ts
452
- function Zn(e, t) {
452
+ function Qn(e, t) {
453
453
  return N(() => {
454
- let n = Qn(e.value.blocks);
454
+ let n = $n(e.value.blocks);
455
455
  if (n.size === 0) return [];
456
456
  let r = /* @__PURE__ */ new Set(), i = [];
457
457
  for (let e of n) {
@@ -463,76 +463,76 @@ function Zn(e, t) {
463
463
  return i;
464
464
  });
465
465
  }
466
- function Qn(e) {
466
+ function $n(e) {
467
467
  let t = /* @__PURE__ */ new Set();
468
- return $n(e, t), t;
468
+ return er(e, t), t;
469
469
  }
470
- function $n(e, t) {
470
+ function er(e, t) {
471
471
  for (let n of e) if (ye(n)) t.add(n.customType);
472
472
  else if (n.type === "section") {
473
473
  let e = n.children;
474
474
  if (!e) continue;
475
- for (let n of e) $n(n, t);
476
- } else ze(n) && $n(n.children, t);
475
+ for (let n of e) er(n, t);
476
+ } else Se(n) && er(n.children, t);
477
477
  }
478
478
  //#endregion
479
479
  //#region src/utils/registerBuiltInBlocks.ts
480
- var er = [
480
+ var tr = [
481
481
  {
482
482
  type: "section",
483
- createBlock: _e
483
+ createBlock: se
484
484
  },
485
485
  {
486
486
  type: "title",
487
- createBlock: ae
487
+ createBlock: Me
488
488
  },
489
489
  {
490
490
  type: "paragraph",
491
- createBlock: Ke
491
+ createBlock: ve
492
492
  },
493
493
  {
494
494
  type: "image",
495
- createBlock: ge
495
+ createBlock: oe
496
496
  },
497
497
  {
498
498
  type: "button",
499
- createBlock: Ae
499
+ createBlock: Ce
500
500
  },
501
501
  {
502
502
  type: "divider",
503
- createBlock: De
503
+ createBlock: qe
504
504
  },
505
505
  {
506
506
  type: "video",
507
- createBlock: Ne
507
+ createBlock: fe
508
508
  },
509
509
  {
510
510
  type: "social",
511
- createBlock: ce
511
+ createBlock: pe
512
512
  },
513
513
  {
514
514
  type: "menu",
515
- createBlock: se
515
+ createBlock: Ke
516
516
  },
517
517
  {
518
518
  type: "table",
519
- createBlock: Pe
519
+ createBlock: ae
520
520
  },
521
521
  {
522
522
  type: "spacer",
523
- createBlock: me
523
+ createBlock: Ne
524
524
  },
525
525
  {
526
526
  type: "html",
527
- createBlock: qe
527
+ createBlock: _e
528
528
  },
529
529
  {
530
530
  type: "countdown",
531
- createBlock: we
531
+ createBlock: Ge
532
532
  }
533
533
  ];
534
- function tr(e, t) {
535
- for (let n of er) {
534
+ function nr(e, t) {
535
+ for (let n of tr) {
536
536
  let r = t[n.type];
537
537
  r && e.registerBuiltIn(n.type, {
538
538
  component: r,
@@ -542,33 +542,33 @@ function tr(e, t) {
542
542
  }
543
543
  //#endregion
544
544
  //#region src/utils/resolveHtmlBlockPreview.ts
545
- function nr(e) {
545
+ function rr(e) {
546
546
  return typeof e == "boolean" ? e : e?.enabled ?? !1;
547
547
  }
548
548
  //#endregion
549
549
  //#region src/utils/collectOffPaletteDefaults.ts
550
- function rr(e) {
550
+ function ir(e) {
551
551
  return typeof e == "object" && !!e && !Array.isArray(e);
552
552
  }
553
- function ir(e, t, n) {
554
- let r = new Set(e.map((e) => gn(e))), i = [], a = (e, t) => {
555
- for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(gn(o)) && i.push(`${t}.${n}: ${o}`) : rr(o) && a(o, `${t}.${n}`);
553
+ function ar(e, t, n) {
554
+ let r = new Set(e.map((e) => _n(e))), i = [], a = (e, t) => {
555
+ for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(_n(o)) && i.push(`${t}.${n}: ${o}`) : ir(o) && a(o, `${t}.${n}`);
556
556
  }, o = t;
557
- for (let [e, t] of Object.entries(Be)) {
557
+ for (let [e, t] of Object.entries(Ae)) {
558
558
  let n = o?.[e];
559
559
  a({
560
560
  ...t,
561
- ...rr(n) ? n : {}
561
+ ...ir(n) ? n : {}
562
562
  }, e);
563
563
  }
564
564
  return a({
565
- ...je,
565
+ ...we,
566
566
  ...n ?? {}
567
567
  }, "template"), i;
568
568
  }
569
569
  //#endregion
570
570
  //#region src/utils/localizedBlockDefaults.ts
571
- function ar(e) {
571
+ function or(e) {
572
572
  return {
573
573
  title: { content: `<p>${e.blockDefaults.title}</p>` },
574
574
  paragraph: { content: `<p>${e.blockDefaults.paragraph}</p>` },
@@ -577,7 +577,7 @@ function ar(e) {
577
577
  }
578
578
  //#endregion
579
579
  //#region src/i18n/index.ts
580
- var or = /* #__PURE__ */ Object.assign({
580
+ var sr = /* #__PURE__ */ Object.assign({
581
581
  "./locales/ca.ts": () => import("./ca-C__Dzq--.js"),
582
582
  "./locales/de.ts": () => import("./de-CGjbQ2mt.js"),
583
583
  "./locales/en.ts": () => import("./en-BTiiAC-B.js"),
@@ -586,54 +586,54 @@ var or = /* #__PURE__ */ Object.assign({
586
586
  "./locales/ja.ts": () => import("./ja-BhdkqENz.js"),
587
587
  "./locales/nl.ts": () => import("./nl-CE3YItYg.js"),
588
588
  "./locales/pt-BR.ts": () => import("./pt-BR-CUIT4rq4.js")
589
- }), sr = /* #__PURE__ */ Object.assign({
589
+ }), cr = /* #__PURE__ */ Object.assign({
590
590
  "./locales/cloud/de.ts": () => import("./de-mMY5yQJu.js"),
591
591
  "./locales/cloud/en.ts": () => import("./en-ChVeGQBY.js"),
592
592
  "./locales/cloud/pt-BR.ts": () => import("./pt-BR-CoCwRUi0.js")
593
593
  });
594
- function cr(e) {
594
+ function lr(e) {
595
595
  return Object.keys(e).map((e) => e.match(/\/([^/]+)\.ts$/)?.[1]).filter((e) => !!e);
596
596
  }
597
- var lr = cr(or), ur = cr(sr);
598
- function dr(e) {
597
+ var ur = lr(sr), dr = lr(cr);
598
+ function fr(e) {
599
599
  return e.trim().replace(/_/g, "-").toLowerCase();
600
600
  }
601
- function fr(e, t) {
602
- let n = dr(e);
603
- return t.find((e) => dr(e) === n);
604
- }
605
- function pr(e) {
606
- return dr(e).split("-")[0];
601
+ function pr(e, t) {
602
+ let n = fr(e);
603
+ return t.find((e) => fr(e) === n);
607
604
  }
608
- function mr(e, t) {
609
- return fr(e, t) ?? fr(pr(e), t);
605
+ function mr(e) {
606
+ return fr(e).split("-")[0];
610
607
  }
611
608
  function hr(e, t) {
612
- return mr(e, t) ?? "en";
609
+ return pr(e, t) ?? pr(mr(e), t);
613
610
  }
614
- async function gr(e) {
615
- let t = or[`./locales/${hr(e, lr)}.ts`];
616
- return (await t()).default;
611
+ function gr(e, t) {
612
+ return hr(e, t) ?? "en";
617
613
  }
618
614
  async function _r(e) {
619
- let t = sr[`./locales/cloud/${hr(e, ur)}.ts`];
615
+ let t = sr[`./locales/${gr(e, ur)}.ts`];
620
616
  return (await t()).default;
621
617
  }
622
- function vr(e) {
623
- return mr(e, lr) !== void 0;
618
+ async function vr(e) {
619
+ let t = cr[`./locales/cloud/${gr(e, dr)}.ts`];
620
+ return (await t()).default;
624
621
  }
625
622
  function yr(e) {
626
- return mr(e, ur) !== void 0;
623
+ return hr(e, ur) !== void 0;
627
624
  }
628
- function br() {
629
- return [...lr];
625
+ function br(e) {
626
+ return hr(e, dr) !== void 0;
630
627
  }
631
628
  function xr() {
632
629
  return [...ur];
633
630
  }
631
+ function Sr() {
632
+ return [...dr];
633
+ }
634
634
  //#endregion
635
635
  //#region src/i18n/contentDefaults.ts
636
- var Sr = {
636
+ var Cr = {
637
637
  en: {
638
638
  video: "Video",
639
639
  days: "Days",
@@ -699,17 +699,17 @@ var Sr = {
699
699
  expired: "このオファーは終了しました"
700
700
  }
701
701
  };
702
- Object.keys(Sr);
703
- var Cr = new Map(Object.keys(Sr).map((e) => [e.toLowerCase(), e]));
704
- function wr(e) {
705
- if (!e) return Sr.en;
706
- let t = e.trim().replace(/_/g, "-").toLowerCase(), n = Cr.get(t);
707
- if (n) return Sr[n];
708
- let r = Cr.get(pr(t));
709
- return r ? Sr[r] : Sr.en;
710
- }
702
+ Object.keys(Cr);
703
+ var wr = new Map(Object.keys(Cr).map((e) => [e.toLowerCase(), e]));
711
704
  function Tr(e) {
712
- let t = wr(e);
705
+ if (!e) return Cr.en;
706
+ let t = e.trim().replace(/_/g, "-").toLowerCase(), n = wr.get(t);
707
+ if (n) return Cr[n];
708
+ let r = wr.get(mr(t));
709
+ return r ? Cr[r] : Cr.en;
710
+ }
711
+ function Er(e) {
712
+ let t = Tr(e);
713
713
  return {
714
714
  video: { alt: t.video },
715
715
  countdown: {
@@ -723,9 +723,9 @@ function Tr(e) {
723
723
  }
724
724
  //#endregion
725
725
  //#region src/utils/collectColorFieldIssues.ts
726
- function Er(e, t) {
726
+ function Dr(e, t) {
727
727
  let n = [], r = (r, i) => {
728
- let a = ct(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
728
+ let a = lt(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
729
729
  if (a.invalidPresets.length > 0 && n.push({
730
730
  id: s("invalid-presets"),
731
731
  message: `${o}: presets skipped invalid entries: ${a.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).` + (a.presetsInherited ? " No valid entries are left, so the field inherits colors.presets." : "")
@@ -736,8 +736,8 @@ function Er(e, t) {
736
736
  id: s("allow-custom-ignored"),
737
737
  message: `${o}: allowCustom: true is ignored because colors.allowCustom is false — a field can narrow the editor-wide palette, never unlock it.`
738
738
  }), !a.allowCustom && a.presets.length > 0) {
739
- let e = r.default ?? "", t = new Set(a.presets.map((e) => gn(e)));
740
- e !== "" && !t.has(gn(e)) && n.push({
739
+ let e = r.default ?? "", t = new Set(a.presets.map((e) => _n(e)));
740
+ e !== "" && !t.has(_n(e)) && n.push({
741
741
  id: s("off-palette-default"),
742
742
  message: `${o} locks custom colours, but its default ${e} falls outside the field's presets: ${a.presets.join(", ")}. New blocks start on a colour the picker can't reselect — set the default from the same palette.`
743
743
  });
@@ -749,7 +749,7 @@ function Er(e, t) {
749
749
  }
750
750
  //#endregion
751
751
  //#region src/utils/keyboardShortcuts.ts
752
- function Dr(e) {
752
+ function Or(e) {
753
753
  for (let t of e.composedPath()) {
754
754
  if (!(t instanceof HTMLElement)) continue;
755
755
  if (t.isContentEditable) return !0;
@@ -758,14 +758,14 @@ function Dr(e) {
758
758
  }
759
759
  return !1;
760
760
  }
761
- function Or(e, t) {
761
+ function kr(e, t) {
762
762
  let n = e.metaKey || e.ctrlKey;
763
763
  if (n && e.key.toLowerCase() === "s") e.preventDefault(), t.onSave?.();
764
764
  else if (n && e.key.toLowerCase() === "z") {
765
- if (Dr(e)) return;
765
+ if (Or(e)) return;
766
766
  e.preventDefault(), e.shiftKey ? t.history.redo() : (t.onBeforeUndo?.(), t.history.undo());
767
767
  } else {
768
- if (t.isPicking?.() && !Dr(e)) {
768
+ if (t.isPicking?.() && !Or(e)) {
769
769
  if (e.key === "Escape") {
770
770
  e.preventDefault(), t.onCancelPick?.();
771
771
  return;
@@ -779,47 +779,47 @@ function Or(e, t) {
779
779
  return;
780
780
  }
781
781
  }
782
- e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Dr(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
782
+ e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Or(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
783
783
  }
784
784
  }
785
785
  //#endregion
786
786
  //#region src/utils/blockComponentResolver.ts
787
- function kr(e) {
787
+ function Ar(e) {
788
788
  let t = { fontFamily: e.fontFamily };
789
789
  return e.textColor && (t.color = e.textColor), e.linkColor && (t["--tpl-doc-link-color"] = e.linkColor), e.linkUnderline && (t["--tpl-doc-link-underline"] = "underline"), t;
790
790
  }
791
- function Ar(e, t, n) {
791
+ function jr(e, t, n) {
792
792
  if (t) {
793
793
  let n = t.getComponent(e);
794
794
  if (n) return n;
795
795
  }
796
796
  return n[e.type] ?? null;
797
797
  }
798
- function jr(e) {
798
+ function Mr(e) {
799
799
  if (e.type === "wrapper") return {};
800
800
  let { padding: t, backgroundColor: n } = e.styles, r = {
801
801
  padding: `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`,
802
802
  backgroundColor: n || "transparent"
803
803
  };
804
- if ((e.type === "paragraph" || e.type === "title") && (r["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? Le.paragraphGap : Le.paragraphGap}px`), e.type === "section") {
805
- let t = He(e.borderRadius);
806
- t !== null && (r.borderRadius = t), Object.assign(r, Mr(e.border));
804
+ if ((e.type === "paragraph" || e.type === "title") && (r["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? Ve.paragraphGap : Ve.paragraphGap}px`), e.type === "section") {
805
+ let t = We(e.borderRadius);
806
+ t !== null && (r.borderRadius = t), Object.assign(r, Nr(e.border));
807
807
  }
808
808
  return r;
809
809
  }
810
- function Mr(e) {
810
+ function Nr(e) {
811
811
  let t = {};
812
- for (let [n, r] of Object.entries(Re(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
812
+ for (let [n, r] of Object.entries(Fe(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
813
813
  return t;
814
814
  }
815
- function Nr(e) {
815
+ function Pr(e) {
816
816
  if (e.type !== "section" || !e.wrapper) return null;
817
817
  let t = e.wrapper, n = {};
818
818
  t.backgroundColor && (n.backgroundColor = t.backgroundColor), t.padding && (n.padding = `${t.padding.top}px ${t.padding.right}px ${t.padding.bottom}px ${t.padding.left}px`);
819
- let r = He(t.borderRadius);
819
+ let r = We(t.borderRadius);
820
820
  return r !== null && (n.borderRadius = r), n;
821
821
  }
822
- function Pr(e) {
822
+ function Fr(e) {
823
823
  if (e.type !== "wrapper") return null;
824
824
  let t = {};
825
825
  if (e.styles.backgroundColor && (t.backgroundColor = e.styles.backgroundColor), e.styles.padding) {
@@ -830,7 +830,7 @@ function Pr(e) {
830
830
  }
831
831
  //#endregion
832
832
  //#region src/utils/mergeTagLabelSegments.ts
833
- function Fr(e, t, n, r = !1) {
833
+ function Ir(e, t, n, r = !1) {
834
834
  if (!e) return [];
835
835
  let i = RegExp(`(${n.value.source}|${n.logic.source})`, "g"), a = [], o = 0, s;
836
836
  for (; (s = i.exec(e)) !== null;) {
@@ -839,18 +839,18 @@ function Fr(e, t, n, r = !1) {
839
839
  value: e.slice(o, s.index)
840
840
  });
841
841
  let i = s[0];
842
- if (ve(i, n)) {
843
- let e = r ? fe(i, t) : void 0;
842
+ if (ce(i, n)) {
843
+ let e = r ? Ye(i, t) : void 0;
844
844
  a.push(e === void 0 ? {
845
845
  type: "tag",
846
- value: de(i, t)
846
+ value: ge(i, t)
847
847
  } : {
848
848
  type: "text",
849
849
  value: e
850
850
  });
851
- } else ue(i, n) ? a.push({
851
+ } else xe(i, n) ? a.push({
852
852
  type: "tag",
853
- value: le(i, n)
853
+ value: de(i, n)
854
854
  }) : a.push({
855
855
  type: "text",
856
856
  value: i
@@ -864,20 +864,20 @@ function Fr(e, t, n, r = !1) {
864
864
  }
865
865
  //#endregion
866
866
  //#region src/components/MergeTagPreviewText.vue
867
- var Ir = F({
867
+ var Lr = F({
868
868
  name: "MergeTagPreviewText",
869
869
  props: { text: {
870
870
  type: String,
871
871
  required: !0
872
872
  } },
873
873
  setup(e) {
874
- let t = p(Nt, wt), n = p(Pt, Oe.liquid), r = p(Ft, null), i = N(() => Fr(e.text, t.value, n, r?.value ?? !1));
874
+ let t = p(Pt, Tt), n = p(Ft, Pe.liquid), r = p(It, null), i = N(() => Ir(e.text, t.value, n, r?.value ?? !1));
875
875
  return () => i.value.map((e, t) => e.type === "tag" ? b("span", {
876
876
  key: t,
877
877
  class: "tpl-merge-tag-label"
878
878
  }, e.value) : e.value);
879
879
  }
880
- }), Lr = ["href"], Rr = /* @__PURE__ */ F({
880
+ }), Rr = ["href"], zr = /* @__PURE__ */ F({
881
881
  __name: "ButtonBlock",
882
882
  props: {
883
883
  block: {},
@@ -893,26 +893,26 @@ var Ir = F({
893
893
  fontSize: `${r.block.fontSize}px`,
894
894
  fontWeight: "bold",
895
895
  textDecoration: "none",
896
- borderRadius: typeof r.block.borderRadius == "number" ? `${r.block.borderRadius}px` : He(r.block.borderRadius) ?? "0px",
896
+ borderRadius: typeof r.block.borderRadius == "number" ? `${r.block.borderRadius}px` : We(r.block.borderRadius) ?? "0px",
897
897
  textAlign: "center"
898
898
  };
899
- return Object.assign(e, Mr(r.block.border)), r.block.fontFamily && (e.fontFamily = r.block.fontFamily), r.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof r.block.width == "number" && (e.width = `${r.block.width}px`, e.boxSizing = "border-box"), e;
899
+ return Object.assign(e, Nr(r.block.border)), r.block.fontFamily && (e.fontFamily = r.block.fontFamily), r.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof r.block.width == "number" && (e.width = `${r.block.width}px`, e.boxSizing = "border-box"), e;
900
900
  }), a = N(() => ({ textAlign: r.block.align ?? "center" }));
901
901
  return (r, o) => (t(), S("div", { style: n(a.value) }, [x("a", {
902
902
  href: e.block.url || "#",
903
903
  style: n(i.value),
904
904
  class: "tpl:cursor-default",
905
905
  onClick: o[0] ||= I(() => {}, ["prevent"])
906
- }, [C(Ir, { text: e.block.text }, null, 8, ["text"])], 12, Lr)], 4));
906
+ }, [C(Lr, { text: e.block.text }, null, 8, ["text"])], 12, Rr)], 4));
907
907
  }
908
- }), zr = xn({
908
+ }), Br = Sn({
909
909
  name: "bookmark",
910
910
  size: 24,
911
911
  node: [["path", {
912
912
  d: "M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",
913
913
  key: "oz39mx"
914
914
  }]]
915
- }), Br = xn({
915
+ }), Vr = Sn({
916
916
  name: "box",
917
917
  size: 24,
918
918
  node: [
@@ -929,7 +929,7 @@ var Ir = F({
929
929
  key: "d0xqtd"
930
930
  }]
931
931
  ]
932
- }), Vr = xn({
932
+ }), Hr = Sn({
933
933
  name: "eye-off",
934
934
  size: 24,
935
935
  node: [
@@ -950,7 +950,7 @@ var Ir = F({
950
950
  key: "1ooewy"
951
951
  }]
952
952
  ]
953
- }), Hr = xn({
953
+ }), Ur = Sn({
954
954
  name: "funnel",
955
955
  size: 24,
956
956
  node: [["path", {
@@ -958,7 +958,7 @@ var Ir = F({
958
958
  key: "sc7q7i"
959
959
  }]],
960
960
  aliases: ["filter"]
961
- }), Ur = xn({
961
+ }), Wr = Sn({
962
962
  name: "grip-vertical",
963
963
  size: 24,
964
964
  node: [
@@ -999,14 +999,14 @@ var Ir = F({
999
999
  key: "f4zoj3"
1000
1000
  }]
1001
1001
  ]
1002
- }), Wr = xn({
1002
+ }), Gr = Sn({
1003
1003
  name: "puzzle",
1004
1004
  size: 24,
1005
1005
  node: [["path", {
1006
1006
  d: "M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",
1007
1007
  key: "w46dr5"
1008
1008
  }]]
1009
- }), Gr = xn({
1009
+ }), Kr = Sn({
1010
1010
  name: "video",
1011
1011
  size: 24,
1012
1012
  node: [["path", {
@@ -1020,11 +1020,11 @@ var Ir = F({
1020
1020
  rx: "2",
1021
1021
  key: "158x01"
1022
1022
  }]]
1023
- }), Kr = ["innerHTML"], qr = [
1023
+ }), qr = ["innerHTML"], Jr = [
1024
1024
  "src",
1025
1025
  "width",
1026
1026
  "height"
1027
- ], Jr = /* @__PURE__ */ F({
1027
+ ], Yr = /* @__PURE__ */ F({
1028
1028
  __name: "CustomBlockIcon",
1029
1029
  props: {
1030
1030
  icon: {},
@@ -1040,24 +1040,24 @@ var Ir = F({
1040
1040
  height: `${i.value}px`
1041
1041
  }),
1042
1042
  innerHTML: e.icon
1043
- }, null, 12, Kr)) : o.value ? (t(), S("img", {
1043
+ }, null, 12, qr)) : o.value ? (t(), S("img", {
1044
1044
  key: 1,
1045
1045
  src: e.icon,
1046
1046
  width: i.value,
1047
1047
  height: i.value,
1048
1048
  class: "tpl:inline-block",
1049
1049
  alt: ""
1050
- }, null, 8, qr)) : (t(), A(y(Br), {
1050
+ }, null, 8, Jr)) : (t(), A(y(Vr), {
1051
1051
  key: 2,
1052
1052
  size: i.value,
1053
1053
  "stroke-width": 1.5
1054
1054
  }, null, 8, ["size"]));
1055
1055
  }
1056
- }), Yr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
1057
- function Xr(e, t) {
1058
- let n = An(), r = null, i = null, a = null;
1056
+ }), Xr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
1057
+ function Zr(e, t) {
1058
+ let n = jn(), r = null, i = null, a = null;
1059
1059
  function o() {
1060
- return e.value ? Array.from(e.value.querySelectorAll(Yr)).filter((e) => e.offsetParent !== null) : [];
1060
+ return e.value ? Array.from(e.value.querySelectorAll(Xr)).filter((e) => e.offsetParent !== null) : [];
1061
1061
  }
1062
1062
  function c(e) {
1063
1063
  if (e.key !== "Tab") return;
@@ -1072,7 +1072,7 @@ function Xr(e, t) {
1072
1072
  a = null;
1073
1073
  let t = o();
1074
1074
  t.length > 0 && (e.value?.querySelector("[autofocus], input:not([disabled])") ?? t[0]).focus();
1075
- }), i = ht(e, "keydown", c);
1075
+ }), i = gt(e, "keydown", c);
1076
1076
  }
1077
1077
  function u(e = {}) {
1078
1078
  let t = e.restoreFocus !== !1;
@@ -1087,8 +1087,8 @@ function Xr(e, t) {
1087
1087
  }
1088
1088
  //#endregion
1089
1089
  //#region src/composables/useEmoji.ts
1090
- function Zr() {
1091
- let [t, n] = pt(!1), r = e([]), i = !1;
1090
+ function Qr() {
1091
+ let [t, n] = mt(!1), r = e([]), i = !1;
1092
1092
  s(() => {
1093
1093
  i = !0;
1094
1094
  }), f(t, async (e) => {
@@ -1113,7 +1113,7 @@ function Zr() {
1113
1113
  }
1114
1114
  //#endregion
1115
1115
  //#region src/composables/useFonts.ts
1116
- var Qr = [
1116
+ var $r = [
1117
1117
  {
1118
1118
  value: "Arial",
1119
1119
  label: "Arial"
@@ -1142,22 +1142,14 @@ var Qr = [
1142
1142
  value: "Courier New",
1143
1143
  label: "Courier New"
1144
1144
  }
1145
- ], $r = {
1146
- arial: "Arial, sans-serif",
1147
- helvetica: "Helvetica, sans-serif",
1148
- georgia: "Georgia, serif",
1149
- "times new roman": "'Times New Roman', serif",
1150
- verdana: "Verdana, sans-serif",
1151
- "trebuchet ms": "'Trebuchet MS', sans-serif",
1152
- "courier new": "'Courier New', monospace"
1153
- }, ei = "Arial, sans-serif";
1145
+ ], ei = "Arial, sans-serif";
1154
1146
  function ti(e) {
1155
- if (e === void 0 || e === !0) return [...Qr];
1147
+ if (e === void 0 || e === !0) return [...$r];
1156
1148
  if (e === !1) return [];
1157
1149
  let t = [], n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
1158
1150
  for (let i of e) {
1159
- let e = i.toLowerCase(), a = Qr.find((t) => t.value.toLowerCase() === e);
1160
- a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), mn.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${Qr.map((e) => e.value).join(", ")}.`));
1151
+ let e = i.toLowerCase(), a = $r.find((t) => t.value.toLowerCase() === e);
1152
+ a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), hn.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${$r.map((e) => e.value).join(", ")}.`));
1161
1153
  }
1162
1154
  return t;
1163
1155
  }
@@ -1174,7 +1166,7 @@ function ni(e) {
1174
1166
  return a.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
1175
1167
  }
1176
1168
  let c = e?.defaultFont ?? ei.split(",")[0].trim();
1177
- o(c) || mn.warn(`config.fonts: new templates seed "${c}", which the font picker doesn't offer — authors can't reselect it. Either add it to fonts.builtIns, or set fonts.defaultFont to an offered font.`);
1169
+ o(c) || hn.warn(`config.fonts: new templates seed "${c}", which the font picker doesn't offer — authors can't reselect it. Either add it to fonts.builtIns, or set fonts.defaultFont to an offered font.`);
1178
1170
  function l() {
1179
1171
  if (e?.defaultFont && o(e.defaultFont)) {
1180
1172
  let t = a.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
@@ -1190,7 +1182,7 @@ function ni(e) {
1190
1182
  let e = n.fallback ?? i.value;
1191
1183
  return `'${n.name}', ${e}`;
1192
1184
  }
1193
- return $r[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${i.value}`);
1185
+ return ze[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${i.value}`);
1194
1186
  }
1195
1187
  let f = [], p = !1;
1196
1188
  async function m() {
@@ -1206,7 +1198,7 @@ function ni(e) {
1206
1198
  t.onload = () => n(), t.onerror = () => r(/* @__PURE__ */ Error(`Failed to load font: ${e.name}`)), document.head.appendChild(t);
1207
1199
  });
1208
1200
  } catch (t) {
1209
- mn.warn(`Failed to load custom font "${e.name}":`, t);
1201
+ hn.warn(`Failed to load custom font "${e.name}":`, t);
1210
1202
  }
1211
1203
  });
1212
1204
  await Promise.allSettled(e), !p && (n.value = !0);
@@ -1232,11 +1224,11 @@ function ni(e) {
1232
1224
  //#endregion
1233
1225
  //#region src/utils/mergeTagNodeSpec.ts
1234
1226
  function ri(e, t, n) {
1235
- return ue(e, n) ? {
1227
+ return xe(e, n) ? {
1236
1228
  type: "logicMergeTagNode",
1237
1229
  attrs: {
1238
1230
  value: e,
1239
- keyword: le(e, n)
1231
+ keyword: de(e, n)
1240
1232
  }
1241
1233
  } : {
1242
1234
  type: "mergeTagNode",
@@ -1272,7 +1264,7 @@ function si(e) {
1272
1264
  ...this.parent?.(),
1273
1265
  color: {
1274
1266
  default: null,
1275
- parseHTML: (e) => oi(hn(e.style.color)),
1267
+ parseHTML: (e) => oi(gn(e.style.color)),
1276
1268
  renderHTML: (e) => {
1277
1269
  let t = oi(e.color);
1278
1270
  return t ? { style: `color: ${t}` } : {};
@@ -1283,22 +1275,22 @@ function si(e) {
1283
1275
  }
1284
1276
  //#endregion
1285
1277
  //#region src/composables/useRichTextLinkDialog.ts
1286
- function ci(e, t = Oe.liquid) {
1278
+ function ci(e, t = Pe.liquid) {
1287
1279
  let n = _(!1), r = _(""), i = _(""), a = _(null);
1288
- Xr(a, n);
1280
+ Zr(a, n);
1289
1281
  function o() {
1290
1282
  let t = e.value?.getAttributes("link") ?? {};
1291
1283
  r.value = t.href || "", i.value = t.color || "", n.value = !0;
1292
1284
  }
1293
1285
  function s() {
1294
1286
  if (r.value) {
1295
- let t = u(r.value);
1287
+ let t = d(r.value);
1296
1288
  if (t !== null) {
1297
1289
  let n = oi(i.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
1298
1290
  n && typeof e.value?.commands.unsetColor == "function" && r?.unsetColor(), r?.run();
1299
1291
  }
1300
1292
  }
1301
- f();
1293
+ p();
1302
1294
  }
1303
1295
  let c = /* @__PURE__ */ new Set([
1304
1296
  "http",
@@ -1310,25 +1302,27 @@ function ci(e, t = Oe.liquid) {
1310
1302
  "sms",
1311
1303
  "xmpp",
1312
1304
  "cid"
1313
- ]);
1314
- function l(e) {
1305
+ ]), l = /^(?:\/|\.{1,2}\/|\?)/;
1306
+ function u(e) {
1315
1307
  return RegExp(`^(?:${t.value.source})`).test(e);
1316
1308
  }
1317
- function u(e) {
1309
+ function d(e) {
1318
1310
  let t = e.trim();
1319
1311
  if (!t) return null;
1320
1312
  if (t.startsWith("#")) return t;
1313
+ if (t.startsWith("//")) return `https:${t}`;
1314
+ if (l.test(t)) return t;
1321
1315
  let n = /^([a-z][a-z0-9+.-]*):/i.exec(t);
1322
- return n ? c.has(n[1].toLowerCase()) ? t : null : l(t) ? t : `https://${t}`;
1323
- }
1324
- function d() {
1325
- e.value?.chain().focus().extendMarkRange("link").unsetLink().run(), f();
1316
+ return n ? c.has(n[1].toLowerCase()) ? t : null : u(t) ? t : `https://${t}`;
1326
1317
  }
1327
1318
  function f() {
1319
+ e.value?.chain().focus().extendMarkRange("link").unsetLink().run(), p();
1320
+ }
1321
+ function p() {
1328
1322
  n.value = !1, r.value = "", i.value = "";
1329
1323
  }
1330
- function p(e) {
1331
- e.key === "Enter" ? (e.preventDefault(), s()) : e.key === "Escape" && f();
1324
+ function m(e) {
1325
+ e.key === "Enter" ? (e.preventDefault(), s()) : e.key === "Escape" && p();
1332
1326
  }
1333
1327
  return {
1334
1328
  showLinkDialog: n,
@@ -1337,21 +1331,21 @@ function ci(e, t = Oe.liquid) {
1337
1331
  linkDialogRef: a,
1338
1332
  openLinkDialog: o,
1339
1333
  insertLink: s,
1340
- removeLink: d,
1341
- closeLinkDialog: f,
1342
- handleLinkKeydown: p
1334
+ removeLink: f,
1335
+ closeLinkDialog: p,
1336
+ handleLinkKeydown: m
1343
1337
  };
1344
1338
  }
1345
1339
  //#endregion
1346
1340
  //#region src/composables/useRichTextEditor.ts
1347
1341
  function li(t) {
1348
- let n = p(Yt, null), { mergeTags: r, canRequestMergeTag: a, isRequesting: o, requestMergeTag: s, syntax: l, autocomplete: u } = jn(), { canInsertLogicTag: d, isRequesting: m, requestLogicTag: h } = Mn(), g = p(Vt, null), v = (c(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", y = Je(l), b = e(null), x = () => Se(n?.content?.value?.settings ?? { locale: "en" });
1342
+ let n = p(Xt, null), { mergeTags: r, canRequestMergeTag: a, isRequesting: o, requestMergeTag: s, syntax: l, autocomplete: u } = Mn(), { canInsertLogicTag: d, isRequesting: m, requestLogicTag: h } = Nn(), g = p(Ht, null), v = (c(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", y = be(l), b = e(null), x = () => he(n?.content?.value?.settings ?? { locale: "en" });
1349
1343
  f(x, (e) => {
1350
1344
  let t = b.value?.view.dom;
1351
1345
  t && t.setAttribute("dir", e);
1352
1346
  });
1353
- let { showLinkDialog: S, linkUrl: C, linkColor: w, linkDialogRef: T, openLinkDialog: E, insertLink: D, removeLink: O, closeLinkDialog: k, handleLinkKeydown: A } = ci(b, l), { start: j, stop: M } = dt(() => b.value?.commands.focus("end"), 0, { immediate: !1 }), ee = e(null), N = _(!0), P = _(null), F = !1;
1354
- async function te() {
1347
+ let { showLinkDialog: S, linkUrl: C, linkColor: w, linkDialogRef: T, openLinkDialog: E, insertLink: D, removeLink: O, closeLinkDialog: k, handleLinkKeydown: A } = ci(b, l), { start: j, stop: M } = ft(() => b.value?.commands.focus("end"), 0, { immediate: !1 }), ee = e(null), N = _(!0), P = _(null), F = !1, te = null;
1348
+ async function I() {
1355
1349
  P.value = null, N.value = !0;
1356
1350
  try {
1357
1351
  let { TiptapEditor: e, EC: i, extensions: a } = await t.loadExtensions({
@@ -1371,7 +1365,7 @@ function li(t) {
1371
1365
  editable: !0,
1372
1366
  editorProps: { attributes: { dir: x() } },
1373
1367
  onUpdate: ({ editor: e }) => {
1374
- F || n && n.updateBlock(t.blockId(), { content: e.getHTML() });
1368
+ F || n && (te = e.getHTML(), n.updateBlock(t.blockId(), { content: te }));
1375
1369
  }
1376
1370
  });
1377
1371
  if (F) {
@@ -1381,17 +1375,17 @@ function li(t) {
1381
1375
  b.value = s, N.value = !1, j();
1382
1376
  } catch (e) {
1383
1377
  if (F) return;
1384
- mn.error(`[${t.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, e), P.value = e instanceof Error ? e.message : "Failed to load editor", N.value = !1;
1378
+ hn.error(`[${t.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, e), P.value = e instanceof Error ? e.message : "Failed to load editor", N.value = !1;
1385
1379
  }
1386
1380
  }
1387
- function I() {
1388
- b.value?.destroy(), b.value = null, te();
1381
+ function ne() {
1382
+ b.value?.destroy(), b.value = null, I();
1389
1383
  }
1390
- te();
1391
- let ne = f(() => t.blockContent(), (e) => {
1392
- b.value && b.value.getHTML() !== e && b.value.commands.setContent(e, { emitUpdate: !1 });
1384
+ I();
1385
+ let re = f(() => t.blockContent(), (e) => {
1386
+ b.value && e !== te && (te = e, b.value.getHTML() !== e && b.value.commands.setContent(e, { emitUpdate: !1 }));
1393
1387
  });
1394
- function re(e) {
1388
+ function ie(e) {
1395
1389
  if (o.value || m.value) return;
1396
1390
  let n = e.composedPath(), r = n.find((e) => e instanceof HTMLElement);
1397
1391
  if (!r) return;
@@ -1399,17 +1393,17 @@ function li(t) {
1399
1393
  let i = n.some((e) => e instanceof HTMLElement && e.classList.contains("tpl-color-popover"));
1400
1394
  r.closest(".tpl-text-editor-wrapper") || r.closest(".tpl-text-toolbar") || r.closest(".tpl-link-dialog") || i || t.onDone();
1401
1395
  }
1402
- ht(document, "mousedown", re), i(() => {
1403
- F = !0, ne(), M(), b.value?.destroy();
1396
+ gt(document, "mousedown", ie), i(() => {
1397
+ F = !0, re(), M(), b.value?.destroy();
1404
1398
  });
1405
- async function ie() {
1399
+ async function ae() {
1406
1400
  let e = await s();
1407
1401
  F || (e && b.value ? b.value.chain().focus().insertMergeTag({
1408
1402
  label: e.label,
1409
1403
  value: e.value
1410
1404
  }).run() : b.value?.commands.focus());
1411
1405
  }
1412
- async function ae() {
1406
+ async function oe() {
1413
1407
  let e = await h();
1414
1408
  F || (e && b.value ? ai(b.value, e, l) : b.value?.commands.focus());
1415
1409
  }
@@ -1418,7 +1412,7 @@ function li(t) {
1418
1412
  EditorContent: ee,
1419
1413
  isLoading: N,
1420
1414
  initError: P,
1421
- retry: I,
1415
+ retry: ne,
1422
1416
  showLinkDialog: S,
1423
1417
  linkUrl: C,
1424
1418
  linkColor: w,
@@ -1434,15 +1428,15 @@ function li(t) {
1434
1428
  removeLink: O,
1435
1429
  closeLinkDialog: k,
1436
1430
  handleLinkKeydown: A,
1437
- handleAddMergeTag: ie,
1438
- handleAddLogicTag: ae
1431
+ handleAddMergeTag: ae,
1432
+ handleAddLogicTag: oe
1439
1433
  };
1440
1434
  }
1441
1435
  //#endregion
1442
1436
  //#region src/composables/useSmallScreenNotice.ts
1443
1437
  var ui = "(max-width: 767px)";
1444
1438
  function di(e) {
1445
- let t = gt(ui);
1439
+ let t = _t(ui);
1446
1440
  return {
1447
1441
  isSmallScreen: t,
1448
1442
  showNotice: N(() => (ee(e) ?? !0) && t.value)
@@ -1471,7 +1465,7 @@ var fi = { class: "tpl:w-full" }, pi = {
1471
1465
  },
1472
1466
  emits: ["fetchData"],
1473
1467
  setup(e, { emit: n }) {
1474
- let r = e, i = n, { t: a } = pn(), o = p(sn, null), s = _(""), c = _(!1), l = N(() => o?.getDefinition(r.block.customType)), u = N(() => !!l.value), m = N(() => r.block), { isFetching: h, fetch: g, needsFetch: v, hasDataSource: b } = ut({
1468
+ let r = e, i = n, { t: a } = mn(), o = p(cn, null), s = _(""), c = _(!1), l = N(() => o?.getDefinition(r.block.customType)), u = N(() => !!l.value), m = N(() => r.block), { isFetching: h, fetch: g, needsFetch: v, hasDataSource: b } = dt({
1475
1469
  definition: l,
1476
1470
  block: m,
1477
1471
  onUpdate: (e, t) => {
@@ -1480,10 +1474,10 @@ var fi = { class: "tpl:w-full" }, pi = {
1480
1474
  dataSourceFetched: t
1481
1475
  });
1482
1476
  }
1483
- }), T = p(Nt, wt), E = p(Ft, null), O = N(() => {
1477
+ }), T = p(Pt, Tt), E = p(It, null), O = N(() => {
1484
1478
  if (!E?.value) return r.block;
1485
1479
  let e = {};
1486
- for (let [t, n] of Object.entries(r.block.fieldValues)) e[t] = typeof n == "string" ? Me(n, T.value) : n;
1480
+ for (let [t, n] of Object.entries(r.block.fieldValues)) e[t] = typeof n == "string" ? He(n, T.value) : n;
1487
1481
  return {
1488
1482
  ...r.block,
1489
1483
  fieldValues: e
@@ -1500,17 +1494,17 @@ var fi = { class: "tpl:w-full" }, pi = {
1500
1494
  }
1501
1495
  }
1502
1496
  }
1503
- let j = ft(k, 150);
1497
+ let j = pt(k, 150);
1504
1498
  return d(() => {
1505
1499
  k();
1506
1500
  }), f(() => r.block.fieldValues, () => {
1507
1501
  j();
1508
1502
  }, { deep: !0 }), f(() => E?.value, () => {
1509
1503
  j();
1510
- }), (e, n) => (t(), S("div", fi, [u.value ? c.value ? (t(), S("div", hi, [C(y(En), {
1504
+ }), (e, n) => (t(), S("div", fi, [u.value ? c.value ? (t(), S("div", hi, [C(y(Dn), {
1511
1505
  size: 24,
1512
1506
  class: "tpl:text-[var(--tpl-danger)]"
1513
- }), x("span", gi, D(y(a).customBlocks.renderError), 1)])) : (t(), S("div", _i, [x("div", { innerHTML: s.value }, null, 8, vi), y(b) && y(v) ? (t(), S("div", yi, [y(h) ? (t(), A(On, {
1507
+ }), x("span", gi, D(y(a).customBlocks.renderError), 1)])) : (t(), S("div", _i, [x("div", { innerHTML: s.value }, null, 8, vi), y(b) && y(v) ? (t(), S("div", yi, [y(h) ? (t(), A(kn, {
1514
1508
  key: 1,
1515
1509
  class: "tpl:w-48"
1516
1510
  })) : (t(), S("button", {
@@ -1518,11 +1512,11 @@ var fi = { class: "tpl:w-full" }, pi = {
1518
1512
  type: "button",
1519
1513
  class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2 tpl:text-sm tpl:font-semibold tpl:shadow-[var(--tpl-shadow)] tpl:transition-all tpl:hover:border-[var(--tpl-primary)] tpl:hover:shadow-[var(--tpl-shadow-md)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
1520
1514
  onClick: n[0] ||= I((...e) => y(g) && y(g)(...e), ["stop"])
1521
- }, [l.value?.icon ? (t(), A(Jr, {
1515
+ }, [l.value?.icon ? (t(), A(Yr, {
1522
1516
  key: 0,
1523
1517
  icon: l.value.icon,
1524
1518
  size: 16
1525
- }, null, 8, ["icon"])) : P("", !0), w(" " + D(l.value?.dataSource?.label || y(a).customBlocks.dataSource.fetchButton), 1)]))])) : P("", !0)])) : (t(), S("div", pi, [C(y(Wr), {
1519
+ }, null, 8, ["icon"])) : P("", !0), w(" " + D(l.value?.dataSource?.label || y(a).customBlocks.dataSource.fetchButton), 1)]))])) : P("", !0)])) : (t(), S("div", pi, [C(y(Gr), {
1526
1520
  size: 24,
1527
1521
  class: "tpl:text-[var(--tpl-warning)]"
1528
1522
  }), x("span", mi, D(y(a).customBlocks.definitionNotFound), 1)]))]));
@@ -1560,7 +1554,7 @@ var fi = { class: "tpl:w-full" }, pi = {
1560
1554
  viewport: {}
1561
1555
  },
1562
1556
  setup(e) {
1563
- let r = e, { t: a } = pn(), o = p(Gt, !1), s = N(() => r.block.content.trim().length > 0), c = N(() => o && s.value), l = p(Nt, wt), u = p(Ft, null), d = N(() => u?.value ? Me(r.block.content, l.value) : r.block.content), m = _(null), h = _(60), g = null;
1557
+ let r = e, { t: a } = mn(), o = p(Kt, !1), s = N(() => r.block.content.trim().length > 0), c = N(() => o && s.value), l = p(Pt, Tt), u = p(It, null), d = N(() => u?.value ? He(r.block.content, l.value) : r.block.content), m = _(null), h = _(60), g = null;
1564
1558
  function v() {
1565
1559
  let e = m.value?.contentDocument;
1566
1560
  e && (h.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
@@ -1584,7 +1578,7 @@ var fi = { class: "tpl:w-full" }, pi = {
1584
1578
  class: "tpl:block tpl:w-full tpl:border-0",
1585
1579
  style: n({ height: `${h.value}px` }),
1586
1580
  onLoad: b
1587
- }, null, 44, wi)) : (t(), S("div", Ti, [C(y(rt), {
1581
+ }, null, 44, wi)) : (t(), S("div", Ti, [C(y(it), {
1588
1582
  size: 24,
1589
1583
  class: "tpl:text-[var(--tpl-text-dim)]"
1590
1584
  }), s.value ? (t(), S("span", Ei, D(y(a).html.preview), 1)) : (t(), S("span", Di, D(y(a).html.empty), 1))]))]));
@@ -1607,7 +1601,7 @@ var fi = { class: "tpl:w-full" }, pi = {
1607
1601
  },
1608
1602
  emits: ["update"],
1609
1603
  setup(e, { emit: r }) {
1610
- let i = e, a = r, { t: o } = pn(), { syntax: s } = jn(), c = p(At, null), l = p(Kt, null), u = N(() => !!c), d = Nn();
1604
+ let i = e, a = r, { t: o } = mn(), { syntax: s } = Mn(), c = p(jt, null), l = p(qt, null), u = N(() => !!c), d = Pn();
1611
1605
  async function f() {
1612
1606
  let e = await c?.({ accept: ["images"] });
1613
1607
  if (d.alive && e) {
@@ -1634,7 +1628,7 @@ var fi = { class: "tpl:w-full" }, pi = {
1634
1628
  }
1635
1629
  }
1636
1630
  }
1637
- let { isOver: b } = nt({
1631
+ let { isOver: b } = rt({
1638
1632
  target: m,
1639
1633
  enabled: g,
1640
1634
  onFiles: v
@@ -1647,13 +1641,13 @@ var fi = { class: "tpl:w-full" }, pi = {
1647
1641
  maxWidth: "100%",
1648
1642
  width: i.block.width === "full" ? E.value : `${i.block.width}px`,
1649
1643
  height: i.block.height ? `${i.block.height}px` : void 0,
1650
- borderRadius: He(i.block.borderRadius) ?? void 0,
1651
- ...Mr(i.block.border),
1644
+ borderRadius: We(i.block.borderRadius) ?? void 0,
1645
+ ...Nr(i.block.border),
1652
1646
  display: "block",
1653
1647
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
1654
1648
  marginRight: e === "center" ? "auto" : void 0
1655
1649
  };
1656
- }), k = N(() => Fe(i.block.src, s)), A = Vn(() => k.value ? void 0 : i.block.src), j = Vn(() => k.value ? i.block.placeholderUrl : void 0);
1650
+ }), k = N(() => ke(i.block.src, s)), A = Hn(() => k.value ? void 0 : i.block.src), j = Hn(() => k.value ? i.block.placeholderUrl : void 0);
1657
1651
  return (r, i) => (t(), S("div", {
1658
1652
  ref_key: "dropZoneRef",
1659
1653
  ref: m,
@@ -1661,11 +1655,11 @@ var fi = { class: "tpl:w-full" }, pi = {
1661
1655
  "data-drop-enabled": g.value,
1662
1656
  class: "tpl:relative tpl:w-full",
1663
1657
  style: n(T.value)
1664
- }, [g.value && (y(b) || h.value) ? (t(), S("div", Ai, [h.value ? (t(), S(M, { key: 0 }, [C(y(Cn), {
1658
+ }, [g.value && (y(b) || h.value) ? (t(), S("div", Ai, [h.value ? (t(), S(M, { key: 0 }, [C(y(wn), {
1665
1659
  class: "tpl-spinner",
1666
1660
  size: 20,
1667
1661
  "stroke-width": 2
1668
- }), w(" " + D(y(o).image.uploading), 1)], 64)) : (t(), S(M, { key: 1 }, [C(y(Dn), {
1662
+ }), w(" " + D(y(o).image.uploading), 1)], 64)) : (t(), S(M, { key: 1 }, [C(y(On), {
1669
1663
  size: 20,
1670
1664
  "stroke-width": 1.5
1671
1665
  }), w(" " + D(y(o).image.dropToUpload), 1)], 64))])) : P("", !0), e.block.src && k.value && e.block.placeholderUrl ? (t(), S(M, { key: 1 }, [e.block.linkUrl ? (t(), S("a", {
@@ -1690,12 +1684,12 @@ var fi = { class: "tpl:w-full" }, pi = {
1690
1684
  key: 2,
1691
1685
  class: "tpl:!flex tpl:min-h-[120px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
1692
1686
  style: n([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, O.value])
1693
- }, [C(y($e), {
1687
+ }, [C(y(et), {
1694
1688
  size: 32,
1695
1689
  "stroke-width": 1.5,
1696
1690
  class: "tpl:text-[var(--tpl-primary)]",
1697
1691
  style: { opacity: "0.5" }
1698
- }), x("span", Pi, [C(Ir, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (t(), S(M, { key: 3 }, [e.block.linkUrl ? (t(), S("a", {
1692
+ }), x("span", Pi, [C(Lr, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (t(), S(M, { key: 3 }, [e.block.linkUrl ? (t(), S("a", {
1699
1693
  key: 0,
1700
1694
  href: e.block.linkUrl,
1701
1695
  target: "_blank",
@@ -1718,7 +1712,7 @@ var fi = { class: "tpl:w-full" }, pi = {
1718
1712
  "aria-label": y(o).image.browseMedia,
1719
1713
  class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:cursor-pointer tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
1720
1714
  onClick: I(f, ["stop"])
1721
- }, [C(y($e), {
1715
+ }, [C(y(et), {
1722
1716
  size: 14,
1723
1717
  "stroke-width": 1.5
1724
1718
  }), w(" " + D(y(o).image.browseMedia), 1)], 8, zi)) : (t(), S("span", Bi, D(y(o).image.clickToAdd), 1))]))], 12, ki));
@@ -1733,7 +1727,7 @@ var fi = { class: "tpl:w-full" }, pi = {
1733
1727
  viewport: {}
1734
1728
  },
1735
1729
  setup(e) {
1736
- let r = e, { t: i } = pn(), a = N(() => ({
1730
+ let r = e, { t: i } = mn(), a = N(() => ({
1737
1731
  display: "flex",
1738
1732
  flexWrap: "wrap",
1739
1733
  gap: `0 ${r.block.spacing}px`,
@@ -1757,13 +1751,13 @@ var fi = { class: "tpl:w-full" }, pi = {
1757
1751
  textDecoration: r.underline ? "underline" : "none"
1758
1752
  }),
1759
1753
  onClick: c[0] ||= I(() => {}, ["prevent"])
1760
- }, [C(Ir, { text: r.text || "..." }, null, 8, ["text"])], 12, Ui), i < e.block.items.length - 1 ? (t(), S("span", {
1754
+ }, [C(Lr, { text: r.text || "..." }, null, 8, ["text"])], 12, Ui), i < e.block.items.length - 1 ? (t(), S("span", {
1761
1755
  key: 0,
1762
1756
  style: n({
1763
1757
  color: e.block.separatorColor,
1764
1758
  padding: `0 ${e.block.spacing}px`
1765
1759
  })
1766
- }, D(e.block.separator), 5)) : P("", !0)], 64))), 128))], 4)) : (t(), S("div", Wi, [C(y(ot), { size: 16 }), x("span", null, D(y(i).menu.addLinks), 1)]))]));
1760
+ }, D(e.block.separator), 5)) : P("", !0)], 64))), 128))], 4)) : (t(), S("div", Wi, [C(y(st), { size: 16 }), x("span", null, D(y(i).menu.addLinks), 1)]))]));
1767
1761
  }
1768
1762
  }), Ki = /* @__PURE__ */ new Set([
1769
1763
  "http",
@@ -1825,7 +1819,7 @@ function Zi(e) {
1825
1819
  //#endregion
1826
1820
  //#region src/composables/useEditableTextBlock.ts
1827
1821
  function Qi(e) {
1828
- let t = p(Nt, wt), n = p(Ft, null), { syntax: r } = jn(), i = N(() => n?.value ? Ve(e(), t.value) : Ce(e(), t.value)), a = N(() => Zi(xe(i.value, r))), o = _(!1), s = _(null), { top: c, left: l } = _t(s), { toLocal: u } = vn(), d = N(() => u({
1822
+ let t = p(Pt, Tt), n = p(It, null), { syntax: r } = Mn(), i = N(() => n?.value ? Re(e(), t.value) : Oe(e(), t.value)), a = N(() => Zi(ie(i.value, r))), o = _(!1), s = _(null), { top: c, left: l } = vt(s), { toLocal: u } = yn(), d = N(() => u({
1829
1823
  top: c.value - 8,
1830
1824
  left: l.value
1831
1825
  }));
@@ -1853,7 +1847,7 @@ var $i = ["innerHTML"], ea = /* @__PURE__ */ F({
1853
1847
  viewport: {}
1854
1848
  },
1855
1849
  setup(e) {
1856
- let n = e, r = v(() => import("./ParagraphEditor-DFizsZRc.js")), { isEditing: i, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = Qi(() => n.block.content);
1850
+ let n = e, r = v(() => import("./ParagraphEditor-CxuW3TV0.js")), { isEditing: i, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = Qi(() => n.block.content);
1857
1851
  return (n, u) => (t(), S("div", {
1858
1852
  ref_key: "blockRef",
1859
1853
  ref: a,
@@ -1891,7 +1885,7 @@ var $i = ["innerHTML"], ea = /* @__PURE__ */ F({
1891
1885
  }, ua = ["aria-label", "title"], da = {
1892
1886
  key: 3,
1893
1887
  class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
1894
- }, fa = ["aria-label"], pa = /*#__PURE__*/ kn(/* @__PURE__ */ F({
1888
+ }, fa = ["aria-label"], pa = /*#__PURE__*/ An(/* @__PURE__ */ F({
1895
1889
  __name: "BlockWrapper",
1896
1890
  props: {
1897
1891
  block: {},
@@ -1903,7 +1897,7 @@ var $i = ["innerHTML"], ea = /* @__PURE__ */ F({
1903
1897
  },
1904
1898
  emits: ["select"],
1905
1899
  setup(e, { emit: r }) {
1906
- let i = v(() => import("./BlockIssueBadge-CZA1XvAh.js")), o = e, s = r, { t: c, format: l } = pn(), d = p(Lt, null), f = _(null), m = N(() => d?.liftedBlockId.value === o.block.id), h = N(() => m.value ? l(c.blockActions.dragLifted, { block: o.block.type }) : c.blockActions.drag);
1900
+ let i = v(() => import("./BlockIssueBadge-CZA1XvAh.js")), o = e, s = r, { t: c, format: l } = mn(), d = p(Rt, null), f = _(null), m = N(() => d?.liftedBlockId.value === o.block.id), h = N(() => m.value ? l(c.blockActions.dragLifted, { block: o.block.type }) : c.blockActions.drag);
1907
1901
  async function g() {
1908
1902
  await a(), f.value?.focus();
1909
1903
  }
@@ -1913,7 +1907,7 @@ var $i = ["innerHTML"], ea = /* @__PURE__ */ F({
1913
1907
  let T = N(() => !o.viewport || !o.block.visibility ? !1 : o.block.visibility[o.viewport] === !1), E = N(() => o.previewMode === !0 && T.value), O = N(() => o.viewport ? {
1914
1908
  desktop: c.viewport.desktop,
1915
1909
  mobile: c.viewport.mobile
1916
- }[o.viewport] ?? o.viewport : ""), A = N(() => !!o.block.displayCondition), j = p(Wt, null), M = p(Jt, null), ee = p($t, {}), F = N(() => ee.savedBlocks?.isPicking.value === !0), te = N(() => !o.nested && ee.savedBlocks?.isAvailable.value === !0 && ee.savedBlocks?.canCreate.value === !0), ne = N(() => o.isSelected && !F.value), re = N(() => ee.comments?.getBlockCount(o.block.id) ?? 0), ie = N(() => jr(o.block)), ae = N(() => Nr(o.block));
1910
+ }[o.viewport] ?? o.viewport : ""), A = N(() => !!o.block.displayCondition), j = p(Gt, null), M = p(Yt, null), ee = p(en, {}), F = N(() => ee.savedBlocks?.isPicking.value === !0), te = N(() => !o.nested && ee.savedBlocks?.isAvailable.value === !0 && ee.savedBlocks?.canCreate.value === !0), ne = N(() => o.isSelected && !F.value), re = N(() => ee.comments?.getBlockCount(o.block.id) ?? 0), ie = N(() => Mr(o.block)), ae = N(() => Pr(o.block));
1917
1911
  function oe(e) {
1918
1912
  o.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), s("select"));
1919
1913
  }
@@ -1958,7 +1952,7 @@ var $i = ["innerHTML"], ea = /* @__PURE__ */ F({
1958
1952
  "aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
1959
1953
  title: y(c).blockActions.drag,
1960
1954
  onKeydown: b
1961
- }, [C(y(Ur), {
1955
+ }, [C(y(Wr), {
1962
1956
  size: 14,
1963
1957
  "stroke-width": 1.5
1964
1958
  })], 40, ra),
@@ -1967,7 +1961,7 @@ var $i = ["innerHTML"], ea = /* @__PURE__ */ F({
1967
1961
  "aria-label": y(c).blockActions.duplicate,
1968
1962
  title: y(c).blockActions.duplicate,
1969
1963
  onClick: I(ce, ["stop"])
1970
- }, [C(y(Sn), {
1964
+ }, [C(y(Cn), {
1971
1965
  size: 14,
1972
1966
  "stroke-width": 1.5
1973
1967
  })], 8, ia),
@@ -1977,7 +1971,7 @@ var $i = ["innerHTML"], ea = /* @__PURE__ */ F({
1977
1971
  "aria-label": y(c).blockActions.saveAsBlock,
1978
1972
  title: y(c).blockActions.saveAsBlock,
1979
1973
  onClick: I(le, ["stop"])
1980
- }, [C(y(zr), {
1974
+ }, [C(y(Br), {
1981
1975
  size: 14,
1982
1976
  "stroke-width": 1.5
1983
1977
  })], 8, aa)) : P("", !0),
@@ -1986,12 +1980,12 @@ var $i = ["innerHTML"], ea = /* @__PURE__ */ F({
1986
1980
  "aria-label": y(c).blockActions.delete,
1987
1981
  title: y(c).blockActions.delete,
1988
1982
  onClick: I(se, ["stop"])
1989
- }, [C(y(Tn), {
1983
+ }, [C(y(En), {
1990
1984
  size: 14,
1991
1985
  "stroke-width": 1.5
1992
1986
  })], 8, oa)
1993
1987
  ], 8, na)) : P("", !0),
1994
- T.value ? (t(), S("div", sa, [x("span", ca, [C(y(Vr), {
1988
+ T.value ? (t(), S("div", sa, [x("span", ca, [C(y(Hr), {
1995
1989
  size: 12,
1996
1990
  "stroke-width": 1.5
1997
1991
  }), w(" " + D(y(l)(y(c).blockActions.hiddenOnViewport, { viewport: O.value })), 1)])])) : P("", !0),
@@ -2001,7 +1995,7 @@ var $i = ["innerHTML"], ea = /* @__PURE__ */ F({
2001
1995
  "aria-label": y(c).blockActions.conditionToggle,
2002
1996
  title: e.block.displayCondition?.label,
2003
1997
  onClick: I(ue, ["stop"])
2004
- }, [C(y(Hr), {
1998
+ }, [C(y(Ur), {
2005
1999
  size: 12,
2006
2000
  "stroke-width": 2
2007
2001
  })], 8, ua)])) : P("", !0),
@@ -2009,7 +2003,7 @@ var $i = ["innerHTML"], ea = /* @__PURE__ */ F({
2009
2003
  class: "tpl-comment-indicator tpl:flex tpl:min-h-6 tpl:min-w-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-0.5 tpl:rounded-full tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-semibold tpl:transition-colors tpl:bg-[var(--tpl-chrome-primary-light)] tpl:text-[var(--tpl-primary)]",
2010
2004
  "aria-label": y(l)(y(c).blockActions.comments, { count: String(re.value) }),
2011
2005
  onClick: a[0] ||= I((t) => y(ee).comments?.openForBlock(e.block.id), ["stop"])
2012
- }, [C(y(wn), {
2006
+ }, [C(y(Tn), {
2013
2007
  size: 12,
2014
2008
  "stroke-width": 2.5
2015
2009
  }), w(" " + D(re.value), 1)], 8, fa)])) : P("", !0),
@@ -2043,9 +2037,9 @@ var ha = /* @__PURE__ */ F({
2043
2037
  viewport: {}
2044
2038
  },
2045
2039
  setup(e) {
2046
- let r = e, i = v(() => import("./TitleEditor-C-uHqtml.js")), { isEditing: a, blockRef: s, toolbarPosition: c, resolvedContent: l, handleDoubleClick: u, handleEditorDone: d } = Qi(() => r.block.content), f = N(() => {
2040
+ let r = e, i = v(() => import("./TitleEditor-CmC9OuhA.js")), { isEditing: a, blockRef: s, toolbarPosition: c, resolvedContent: l, handleDoubleClick: u, handleEditorDone: d } = Qi(() => r.block.content), f = N(() => {
2047
2041
  let e = {
2048
- fontSize: `${Te[r.block.level]}px`,
2042
+ fontSize: `${Le[r.block.level]}px`,
2049
2043
  textAlign: r.block.textAlign
2050
2044
  };
2051
2045
  return r.block.color && (e.color = r.block.color), r.block.fontFamily && (e.fontFamily = r.block.fontFamily), e;
@@ -2406,8 +2400,8 @@ function Do(e, t, n) {
2406
2400
  }
2407
2401
  }), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
2408
2402
  }
2409
- var Oo = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
2410
- function ko() {
2403
+ var H = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
2404
+ function Oo() {
2411
2405
  var e = [], t;
2412
2406
  return {
2413
2407
  captureAnimationState: function() {
@@ -2439,7 +2433,7 @@ function ko() {
2439
2433
  var i = !1, a = 0;
2440
2434
  e.forEach(function(e) {
2441
2435
  var t = 0, n = e.target, o = n.fromRect, s = V(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = lo(n, !0);
2442
- d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && xo(c, s) && !xo(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = jo(u, c, l, r.options)), xo(s, o) || (n.prevFromRect = o, n.prevToRect = s, t ||= r.options.animation, r.animate(n, u, s, t)), t && (i = !0, a = Math.max(a, t), clearTimeout(n.animationResetTimer), n.animationResetTimer = setTimeout(function() {
2436
+ d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && xo(c, s) && !xo(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = Ao(u, c, l, r.options)), xo(s, o) || (n.prevFromRect = o, n.prevToRect = s, t ||= r.options.animation, r.animate(n, u, s, t)), t && (i = !0, a = Math.max(a, t), clearTimeout(n.animationResetTimer), n.animationResetTimer = setTimeout(function() {
2443
2437
  n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
2444
2438
  }, t), n.thisAnimationDuration = t);
2445
2439
  }), clearTimeout(t), i ? t = setTimeout(function() {
@@ -2451,25 +2445,25 @@ function ko() {
2451
2445
  if (r) {
2452
2446
  B(e, "transition", ""), B(e, "transform", "");
2453
2447
  var i = lo(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
2454
- 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() {
2448
+ e.animatingX = !!s, e.animatingY = !!c, B(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = ko(e), B(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), B(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
2455
2449
  B(e, "transition", ""), B(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
2456
2450
  }, r);
2457
2451
  }
2458
2452
  }
2459
2453
  };
2460
2454
  }
2461
- function Ao(e) {
2455
+ function ko(e) {
2462
2456
  return e.offsetWidth;
2463
2457
  }
2464
- function jo(e, t, n, r) {
2458
+ function Ao(e, t, n, r) {
2465
2459
  return Math.sqrt((t.top - e.top) ** 2 + (t.left - e.left) ** 2) / Math.sqrt((t.top - n.top) ** 2 + (t.left - n.left) ** 2) * r.animation;
2466
2460
  }
2467
- var Mo = [], No = { initializeByDefault: !0 }, Po = {
2461
+ var jo = [], Mo = { initializeByDefault: !0 }, No = {
2468
2462
  mount: function(e) {
2469
- for (var t in No) No.hasOwnProperty(t) && !(t in e) && (e[t] = No[t]);
2470
- Mo.forEach(function(t) {
2463
+ for (var t in Mo) Mo.hasOwnProperty(t) && !(t in e) && (e[t] = Mo[t]);
2464
+ jo.forEach(function(t) {
2471
2465
  if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
2472
- }), Mo.push(e);
2466
+ }), jo.push(e);
2473
2467
  },
2474
2468
  pluginEvent: function(e, t, n) {
2475
2469
  var r = this;
@@ -2477,12 +2471,12 @@ var Mo = [], No = { initializeByDefault: !0 }, Po = {
2477
2471
  r.eventCanceled = !0;
2478
2472
  };
2479
2473
  var i = e + "Global";
2480
- Mo.forEach(function(r) {
2474
+ jo.forEach(function(r) {
2481
2475
  t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](Wa({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](Wa({ sortable: t }, n)));
2482
2476
  });
2483
2477
  },
2484
2478
  initializePlugins: function(e, t, n, r) {
2485
- for (var i in Mo.forEach(function(r) {
2479
+ for (var i in jo.forEach(function(r) {
2486
2480
  var i = r.pluginName;
2487
2481
  if (e.options[i] || r.initializeByDefault) {
2488
2482
  var a = new r(e, t, e.options);
@@ -2495,59 +2489,59 @@ var Mo = [], No = { initializeByDefault: !0 }, Po = {
2495
2489
  },
2496
2490
  getEventProperties: function(e, t) {
2497
2491
  var n = {};
2498
- return Mo.forEach(function(r) {
2492
+ return jo.forEach(function(r) {
2499
2493
  typeof r.eventProperties == "function" && qa(n, r.eventProperties.call(t[r.pluginName], e));
2500
2494
  }), n;
2501
2495
  },
2502
2496
  modifyOption: function(e, t, n) {
2503
2497
  var r;
2504
- return Mo.forEach(function(i) {
2498
+ return jo.forEach(function(i) {
2505
2499
  e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
2506
2500
  }), r;
2507
2501
  }
2508
2502
  };
2509
- function Fo(e) {
2503
+ function Po(e) {
2510
2504
  var t = e.sortable, n = e.rootEl, r = e.name, i = e.targetEl, a = e.cloneEl, o = e.toEl, s = e.fromEl, c = e.oldIndex, l = e.newIndex, u = e.oldDraggableIndex, d = e.newDraggableIndex, f = e.originalEvent, p = e.putSortable, m = e.extraEventProperties;
2511
- if (t ||= n && n[Oo], t) {
2505
+ if (t ||= n && n[H], t) {
2512
2506
  var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
2513
2507
  window.CustomEvent && !Qa && !$a ? h = new CustomEvent(r, {
2514
2508
  bubbles: !0,
2515
2509
  cancelable: !0
2516
2510
  }) : (h = document.createEvent("Event"), h.initEvent(r, !0, !0)), h.to = o || n, h.from = s || n, h.item = i || n, h.clone = a, h.oldIndex = c, h.newIndex = l, h.oldDraggableIndex = u, h.newDraggableIndex = d, h.originalEvent = f, h.pullMode = p ? p.lastPutMode : void 0;
2517
- var v = Wa(Wa({}, m), Po.getEventProperties(r, t));
2511
+ var v = Wa(Wa({}, m), No.getEventProperties(r, t));
2518
2512
  for (var y in v) h[y] = v[y];
2519
2513
  n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
2520
2514
  }
2521
2515
  }
2522
- var Io = ["evt"], H = function(e, t) {
2523
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = Ya(n, Io);
2524
- Po.pluginEvent.bind(Q)(e, t, Wa({
2525
- dragEl: W,
2526
- parentEl: G,
2527
- ghostEl: K,
2528
- rootEl: q,
2529
- nextEl: Lo,
2530
- lastDownEl: Ro,
2531
- cloneEl: J,
2532
- cloneHidden: zo,
2516
+ var Fo = ["evt"], U = function(e, t) {
2517
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = Ya(n, Fo);
2518
+ No.pluginEvent.bind(Q)(e, t, Wa({
2519
+ dragEl: G,
2520
+ parentEl: K,
2521
+ ghostEl: q,
2522
+ rootEl: J,
2523
+ nextEl: Io,
2524
+ lastDownEl: Lo,
2525
+ cloneEl: Y,
2526
+ cloneHidden: Ro,
2533
2527
  dragStarted: $o,
2534
2528
  putSortable: X,
2535
2529
  activeSortable: Q.active,
2536
2530
  originalEvent: r,
2537
- oldIndex: Bo,
2531
+ oldIndex: zo,
2538
2532
  oldDraggableIndex: Vo,
2539
- newIndex: Y,
2533
+ newIndex: Bo,
2540
2534
  newDraggableIndex: Ho,
2541
2535
  hideGhostForTarget: _s,
2542
2536
  unhideGhostForTarget: vs,
2543
2537
  cloneNowHidden: function() {
2544
- zo = !0;
2538
+ Ro = !0;
2545
2539
  },
2546
2540
  cloneNowShown: function() {
2547
- zo = !1;
2541
+ Ro = !1;
2548
2542
  },
2549
2543
  dispatchSortableEvent: function(e) {
2550
- U({
2544
+ W({
2551
2545
  sortable: t,
2552
2546
  name: e,
2553
2547
  originalEvent: r
@@ -2555,19 +2549,19 @@ var Io = ["evt"], H = function(e, t) {
2555
2549
  }
2556
2550
  }, i));
2557
2551
  };
2558
- function U(e) {
2559
- Fo(Wa({
2552
+ function W(e) {
2553
+ Po(Wa({
2560
2554
  putSortable: X,
2561
- cloneEl: J,
2562
- targetEl: W,
2563
- rootEl: q,
2564
- oldIndex: Bo,
2555
+ cloneEl: Y,
2556
+ targetEl: G,
2557
+ rootEl: J,
2558
+ oldIndex: zo,
2565
2559
  oldDraggableIndex: Vo,
2566
- newIndex: Y,
2560
+ newIndex: Bo,
2567
2561
  newDraggableIndex: Ho
2568
2562
  }, e));
2569
2563
  }
2570
- var W, G, K, q, Lo, Ro, J, zo, Bo, Y, Vo, Ho, Uo, X, Wo = !1, Go = !1, Ko = [], qo, Jo, Yo, Xo, Zo, Qo, $o, es, ts, ns = !1, rs = !1, is, Z, as = [], os = !1, ss = [], cs = typeof document < "u", ls = no, us = $a || Qa ? "cssFloat" : "float", ds = cs && !ro && !no && "draggable" in document.createElement("div"), fs = function() {
2564
+ var G, K, q, J, Io, Lo, Y, Ro, zo, Bo, Vo, Ho, Uo, X, Wo = !1, Go = !1, Ko = [], qo, Jo, Yo, Xo, Zo, Qo, $o, es, ts, ns = !1, rs = !1, is, Z, as = [], os = !1, ss = [], cs = typeof document < "u", ls = no, us = $a || Qa ? "cssFloat" : "float", ds = cs && !ro && !no && "draggable" in document.createElement("div"), fs = function() {
2571
2565
  if (cs) {
2572
2566
  if (Qa) return !1;
2573
2567
  var e = document.createElement("x");
@@ -2588,7 +2582,7 @@ var W, G, K, q, Lo, Ro, J, zo, Bo, Y, Vo, Ho, Uo, X, Wo = !1, Go = !1, Ko = [],
2588
2582
  }, hs = function(e, t) {
2589
2583
  var n;
2590
2584
  return Ko.some(function(r) {
2591
- var i = r[Oo].options.emptyInsertThreshold;
2585
+ var i = r[H].options.emptyInsertThreshold;
2592
2586
  if (i && !ho(r)) {
2593
2587
  var a = V(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
2594
2588
  if (o && s) return n = r;
@@ -2609,29 +2603,29 @@ var W, G, K, q, Lo, Ro, J, zo, Bo, Y, Vo, Ho, Uo, X, Wo = !1, Go = !1, Ko = [],
2609
2603
  var n = {}, r = e.group;
2610
2604
  (!r || Ga(r) != "object") && (r = { name: r }), n.name = r.name, n.checkPull = t(r.pull, !0), n.checkPut = t(r.put), n.revertClone = r.revertClone, e.group = n;
2611
2605
  }, _s = function() {
2612
- !fs && K && B(K, "display", "none");
2606
+ !fs && q && B(q, "display", "none");
2613
2607
  }, vs = function() {
2614
- !fs && K && B(K, "display", "");
2608
+ !fs && q && B(q, "display", "");
2615
2609
  };
2616
2610
  cs && !ro && document.addEventListener("click", function(e) {
2617
2611
  if (Go) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Go = !1, !1;
2618
2612
  }, !0);
2619
2613
  var ys = function(e) {
2620
- if (W) {
2614
+ if (G) {
2621
2615
  e = e.touches ? e.touches[0] : e;
2622
2616
  var t = hs(e.clientX, e.clientY);
2623
2617
  if (t) {
2624
2618
  var n = {};
2625
2619
  for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
2626
- n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[Oo]._onDragOver(n);
2620
+ n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[H]._onDragOver(n);
2627
2621
  }
2628
2622
  }
2629
2623
  }, bs = function(e) {
2630
- W && W.parentNode[Oo]._isOutsideThisEl(e.target);
2624
+ G && G.parentNode[H]._isOutsideThisEl(e.target);
2631
2625
  };
2632
2626
  function Q(e, t) {
2633
2627
  if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
2634
- this.el = e, this.options = t = qa({}, t), e[Oo] = this;
2628
+ this.el = e, this.options = t = qa({}, t), e[H] = this;
2635
2629
  var n = {
2636
2630
  group: null,
2637
2631
  sort: !0,
@@ -2674,9 +2668,9 @@ function Q(e, t) {
2674
2668
  supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !to,
2675
2669
  emptyInsertThreshold: 5
2676
2670
  };
2677
- for (var r in Po.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
2671
+ for (var r in No.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
2678
2672
  for (var i in gs(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
2679
- this.nativeDraggable = !t.forceFallback && ds, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? L(e, "pointerdown", this._onTapStart) : (L(e, "mousedown", this._onTapStart), L(e, "touchstart", this._onTapStart)), this.nativeDraggable && (L(e, "dragover", this), L(e, "dragenter", this)), Ko.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), qa(this, ko());
2673
+ this.nativeDraggable = !t.forceFallback && ds, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? L(e, "pointerdown", this._onTapStart) : (L(e, "mousedown", this._onTapStart), L(e, "touchstart", this._onTapStart)), this.nativeDraggable && (L(e, "dragover", this), L(e, "dragenter", this)), Ko.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), qa(this, Oo());
2680
2674
  }
2681
2675
  Q.prototype = {
2682
2676
  constructor: Q,
@@ -2684,33 +2678,33 @@ Q.prototype = {
2684
2678
  !this.el.contains(e) && e !== this.el && (es = null);
2685
2679
  },
2686
2680
  _getDirection: function(e, t) {
2687
- return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, W) : this.options.direction;
2681
+ return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, G) : this.options.direction;
2688
2682
  },
2689
2683
  _onTapStart: function(e) {
2690
2684
  if (e.cancelable) {
2691
2685
  var t = this, n = this.el, r = this.options, i = r.preventOnFilter, a = e.type, o = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (o || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, l = r.filter;
2692
- if (As(n), !W && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && to && s && s.tagName.toUpperCase() === "SELECT") && (s = so(s, r.draggable, n, !1), !(s && s.animated) && Ro !== s)) {
2693
- if (Bo = go(s), Vo = go(s, r.draggable), typeof l == "function") {
2686
+ if (As(n), !G && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && to && s && s.tagName.toUpperCase() === "SELECT") && (s = so(s, r.draggable, n, !1), !(s && s.animated) && Lo !== s)) {
2687
+ if (zo = go(s), Vo = go(s, r.draggable), typeof l == "function") {
2694
2688
  if (l.call(this, e, s, this)) {
2695
- U({
2689
+ W({
2696
2690
  sortable: t,
2697
2691
  rootEl: c,
2698
2692
  name: "filter",
2699
2693
  targetEl: s,
2700
2694
  toEl: n,
2701
2695
  fromEl: n
2702
- }), H("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
2696
+ }), U("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
2703
2697
  return;
2704
2698
  }
2705
2699
  } else if (l && (l = l.split(",").some(function(r) {
2706
- if (r = so(c, r.trim(), n, !1), r) return U({
2700
+ if (r = so(c, r.trim(), n, !1), r) return W({
2707
2701
  sortable: t,
2708
2702
  rootEl: r,
2709
2703
  name: "filter",
2710
2704
  targetEl: s,
2711
2705
  fromEl: n,
2712
2706
  toEl: n
2713
- }), H("filter", t, { evt: e }), !0;
2707
+ }), U("filter", t, { evt: e }), !0;
2714
2708
  }), l)) {
2715
2709
  i && e.cancelable && e.preventDefault();
2716
2710
  return;
@@ -2721,21 +2715,21 @@ Q.prototype = {
2721
2715
  },
2722
2716
  _prepareDragStart: function(e, t, n) {
2723
2717
  var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
2724
- if (n && !W && n.parentNode === i) {
2718
+ if (n && !G && n.parentNode === i) {
2725
2719
  var c = V(n);
2726
- if (q = i, W = n, G = W.parentNode, Lo = W.nextSibling, Ro = n, Uo = a.group, Q.dragged = W, qo = {
2727
- target: W,
2720
+ if (J = i, G = n, K = G.parentNode, Io = G.nextSibling, Lo = n, Uo = a.group, Q.dragged = G, qo = {
2721
+ target: G,
2728
2722
  clientX: (t || e).clientX,
2729
2723
  clientY: (t || e).clientY
2730
- }, Zo = qo.clientX - c.left, Qo = qo.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, W.style["will-change"] = "all", s = function() {
2731
- H("delayEnded", r, { evt: e }), Q.eventCanceled ? r._onDrop() : (r._disableDelayedDragEvents(), !eo && r.nativeDraggable && (W.draggable = !0), r._triggerDragStart(e, t), U({
2724
+ }, Zo = qo.clientX - c.left, Qo = qo.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, G.style["will-change"] = "all", s = function() {
2725
+ U("delayEnded", r, { evt: e }), Q.eventCanceled ? r._onDrop() : (r._disableDelayedDragEvents(), !eo && r.nativeDraggable && (G.draggable = !0), r._triggerDragStart(e, t), W({
2732
2726
  sortable: r,
2733
2727
  name: "choose",
2734
2728
  originalEvent: e
2735
- }), z(W, a.chosenClass, !0));
2729
+ }), z(G, a.chosenClass, !0));
2736
2730
  }, a.ignore.split(",").forEach(function(e) {
2737
- uo(W, e.trim(), Cs);
2738
- }), L(o, "dragover", ys), L(o, "mousemove", ys), L(o, "touchmove", ys), L(o, "mouseup", r._onDrop), L(o, "touchend", r._onDrop), L(o, "touchcancel", r._onDrop), eo && this.nativeDraggable && (this.options.touchStartThreshold = 4, W.draggable = !0), H("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !($a || Qa))) {
2731
+ uo(G, e.trim(), Cs);
2732
+ }), L(o, "dragover", ys), L(o, "mousemove", ys), L(o, "touchmove", ys), L(o, "mouseup", r._onDrop), L(o, "touchend", r._onDrop), L(o, "touchcancel", r._onDrop), eo && this.nativeDraggable && (this.options.touchStartThreshold = 4, G.draggable = !0), U("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !($a || Qa))) {
2739
2733
  if (Q.eventCanceled) {
2740
2734
  this._onDrop();
2741
2735
  return;
@@ -2749,14 +2743,14 @@ Q.prototype = {
2749
2743
  Math.max(Math.abs(t.clientX - this._lastX), Math.abs(t.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
2750
2744
  },
2751
2745
  _disableDelayedDrag: function() {
2752
- W && Cs(W), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2746
+ G && Cs(G), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2753
2747
  },
2754
2748
  _disableDelayedDragEvents: function() {
2755
2749
  var e = this.el.ownerDocument;
2756
2750
  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);
2757
2751
  },
2758
2752
  _triggerDragStart: function(e, t) {
2759
- 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));
2753
+ t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? L(document, "pointermove", this._onTouchMove) : t ? L(document, "touchmove", this._onTouchMove) : L(document, "mousemove", this._onTouchMove) : (L(G, "dragend", this), L(J, "dragstart", this._onDragStart));
2760
2754
  try {
2761
2755
  document.selection ? js(function() {
2762
2756
  document.selection.empty();
@@ -2764,10 +2758,10 @@ Q.prototype = {
2764
2758
  } catch {}
2765
2759
  },
2766
2760
  _dragStarted: function(e, t) {
2767
- if (Wo = !1, q && W) {
2768
- H("dragStarted", this, { evt: t }), this.nativeDraggable && L(document, "dragover", bs);
2761
+ if (Wo = !1, J && G) {
2762
+ U("dragStarted", this, { evt: t }), this.nativeDraggable && L(document, "dragover", bs);
2769
2763
  var n = this.options;
2770
- !e && z(W, n.dragClass, !1), z(W, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), U({
2764
+ !e && z(G, n.dragClass, !1), z(G, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), W({
2771
2765
  sortable: this,
2772
2766
  name: "start",
2773
2767
  originalEvent: t
@@ -2778,10 +2772,10 @@ Q.prototype = {
2778
2772
  if (Jo) {
2779
2773
  this._lastX = Jo.clientX, this._lastY = Jo.clientY, _s();
2780
2774
  for (var e = document.elementFromPoint(Jo.clientX, Jo.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Jo.clientX, Jo.clientY), e !== t);) t = e;
2781
- if (W.parentNode[Oo]._isOutsideThisEl(e), t) do {
2782
- if (t[Oo]) {
2775
+ if (G.parentNode[H]._isOutsideThisEl(e), t) do {
2776
+ if (t[H]) {
2783
2777
  var n = void 0;
2784
- if (n = t[Oo]._onDragOver({
2778
+ if (n = t[H]._onDragOver({
2785
2779
  clientX: Jo.clientX,
2786
2780
  clientY: Jo.clientY,
2787
2781
  target: e,
@@ -2795,12 +2789,12 @@ Q.prototype = {
2795
2789
  },
2796
2790
  _onTouchMove: function(e) {
2797
2791
  if (qo) {
2798
- var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = K && lo(K, !0), o = K && a && a.a, s = K && a && a.d, c = ls && Z && _o(Z), l = (i.clientX - qo.clientX + r.x) / (o || 1) + (c ? c[0] - as[0] : 0) / (o || 1), u = (i.clientY - qo.clientY + r.y) / (s || 1) + (c ? c[1] - as[1] : 0) / (s || 1);
2792
+ var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q && lo(q, !0), o = q && a && a.a, s = q && a && a.d, c = ls && Z && _o(Z), l = (i.clientX - qo.clientX + r.x) / (o || 1) + (c ? c[0] - as[0] : 0) / (o || 1), u = (i.clientY - qo.clientY + r.y) / (s || 1) + (c ? c[1] - as[1] : 0) / (s || 1);
2799
2793
  if (!Q.active && !Wo) {
2800
2794
  if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
2801
2795
  this._onDragStart(e, !0);
2802
2796
  }
2803
- if (K) {
2797
+ if (q) {
2804
2798
  a ? (a.e += l - (Yo || 0), a.f += u - (Xo || 0)) : a = {
2805
2799
  a: 1,
2806
2800
  b: 0,
@@ -2810,35 +2804,35 @@ Q.prototype = {
2810
2804
  f: u
2811
2805
  };
2812
2806
  var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
2813
- B(K, "webkitTransform", d), B(K, "mozTransform", d), B(K, "msTransform", d), B(K, "transform", d), Yo = l, Xo = u, Jo = i;
2807
+ B(q, "webkitTransform", d), B(q, "mozTransform", d), B(q, "msTransform", d), B(q, "transform", d), Yo = l, Xo = u, Jo = i;
2814
2808
  }
2815
2809
  e.cancelable && e.preventDefault();
2816
2810
  }
2817
2811
  },
2818
2812
  _appendGhost: function() {
2819
- if (!K) {
2820
- var e = this.options.fallbackOnBody ? document.body : q, t = V(W, !0, ls, !0, e), n = this.options;
2813
+ if (!q) {
2814
+ var e = this.options.fallbackOnBody ? document.body : J, t = V(G, !0, ls, !0, e), n = this.options;
2821
2815
  if (ls) {
2822
2816
  for (Z = e; B(Z, "position") === "static" && B(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
2823
2817
  Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = fo()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = fo(), as = _o(Z);
2824
2818
  }
2825
- 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", ls ? "absolute" : "fixed"), B(K, "zIndex", "100000"), B(K, "pointerEvents", "none"), Q.ghost = K, e.appendChild(K), B(K, "transform-origin", Zo / parseInt(K.style.width) * 100 + "% " + Qo / parseInt(K.style.height) * 100 + "%");
2819
+ q = G.cloneNode(!0), z(q, n.ghostClass, !1), z(q, n.fallbackClass, !0), z(q, n.dragClass, !0), B(q, "transition", ""), B(q, "transform", ""), B(q, "box-sizing", "border-box"), B(q, "margin", 0), B(q, "top", t.top), B(q, "left", t.left), B(q, "width", t.width), B(q, "height", t.height), B(q, "opacity", "0.8"), B(q, "position", ls ? "absolute" : "fixed"), B(q, "zIndex", "100000"), B(q, "pointerEvents", "none"), Q.ghost = q, e.appendChild(q), B(q, "transform-origin", Zo / parseInt(q.style.width) * 100 + "% " + Qo / parseInt(q.style.height) * 100 + "%");
2826
2820
  }
2827
2821
  },
2828
2822
  _onDragStart: function(e, t) {
2829
2823
  var n = this, r = e.dataTransfer, i = n.options;
2830
- H("dragStart", this, { evt: e }), Q.eventCanceled ? this._onDrop() : (H("setupClone", this), Q.eventCanceled || (J = Eo(W), J.removeAttribute("id"), J.draggable = !1, J.style["will-change"] = "", this._hideClone(), z(J, this.options.chosenClass, !1), Q.clone = J), n.cloneId = js(function() {
2831
- H("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || q.insertBefore(J, W), n._hideClone(), U({
2824
+ U("dragStart", this, { evt: e }), Q.eventCanceled ? this._onDrop() : (U("setupClone", this), Q.eventCanceled || (Y = Eo(G), Y.removeAttribute("id"), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), z(Y, this.options.chosenClass, !1), Q.clone = Y), n.cloneId = js(function() {
2825
+ U("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || J.insertBefore(Y, G), n._hideClone(), W({
2832
2826
  sortable: n,
2833
2827
  name: "clone"
2834
2828
  }));
2835
- }), !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)")), Wo = !0, n._dragStartId = js(n._dragStarted.bind(n, t, e)), L(document, "selectstart", n), $o = !0, to && B(document.body, "user-select", "none"));
2829
+ }), !t && z(G, i.dragClass, !0), t ? (Go = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (R(document, "mouseup", n._onDrop), R(document, "touchend", n._onDrop), R(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, G)), L(document, "drop", n), B(G, "transform", "translateZ(0)")), Wo = !0, n._dragStartId = js(n._dragStarted.bind(n, t, e)), L(document, "selectstart", n), $o = !0, to && B(document.body, "user-select", "none"));
2836
2830
  },
2837
2831
  _onDragOver: function(e) {
2838
2832
  var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = Uo === s, u = o.sort, d = X || c, f, p = this, m = !1;
2839
2833
  if (os) return;
2840
2834
  function h(o, s) {
2841
- H(o, p, Wa({
2835
+ U(o, p, Wa({
2842
2836
  evt: e,
2843
2837
  isOwner: l,
2844
2838
  axis: f ? "vertical" : "horizontal",
@@ -2850,7 +2844,7 @@ Q.prototype = {
2850
2844
  target: n,
2851
2845
  completed: _,
2852
2846
  onMove: function(n, i) {
2853
- return Ss(q, t, W, r, n, V(n), e, i);
2847
+ return Ss(J, t, G, r, n, V(n), e, i);
2854
2848
  },
2855
2849
  changed: v
2856
2850
  }, s));
@@ -2859,52 +2853,52 @@ Q.prototype = {
2859
2853
  h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
2860
2854
  }
2861
2855
  function _(r) {
2862
- 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() {
2856
+ return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (z(G, X ? X.options.ghostClass : c.options.ghostClass, !1), z(G, o.ghostClass, !0)), X !== p && p !== Q.active ? X = p : p === Q.active && X && (X = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
2863
2857
  h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
2864
- }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === W && !W.animated || n === t && !n.animated) && (es = null), !o.dragoverBubble && !e.rootEl && n !== document && (W.parentNode[Oo]._isOutsideThisEl(e.target), !r && ys(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
2858
+ }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (es = null), !o.dragoverBubble && !e.rootEl && n !== document && (G.parentNode[H]._isOutsideThisEl(e.target), !r && ys(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
2865
2859
  }
2866
2860
  function v() {
2867
- Y = go(W), Ho = go(W, o.draggable), U({
2861
+ Bo = go(G), Ho = go(G, o.draggable), W({
2868
2862
  sortable: p,
2869
2863
  name: "change",
2870
2864
  toEl: t,
2871
- newIndex: Y,
2865
+ newIndex: Bo,
2872
2866
  newDraggableIndex: Ho,
2873
2867
  originalEvent: e
2874
2868
  });
2875
2869
  }
2876
2870
  if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = so(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
2877
- if (W.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
2878
- if (Go = !1, c && !o.disabled && (l ? u || (a = G !== q) : X === this || (this.lastPutMode = Uo.checkPull(this, c, W, e)) && s.checkPut(this, c, W, e))) {
2879
- if (f = this._getDirection(e, n) === "vertical", r = V(W), h("dragOverValid"), Q.eventCanceled) return m;
2880
- if (a) return G = q, g(), this._hideClone(), h("revert"), Q.eventCanceled || (Lo ? q.insertBefore(W, Lo) : q.appendChild(W)), _(!0);
2871
+ if (G.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
2872
+ if (Go = !1, c && !o.disabled && (l ? u || (a = K !== J) : X === this || (this.lastPutMode = Uo.checkPull(this, c, G, e)) && s.checkPut(this, c, G, e))) {
2873
+ if (f = this._getDirection(e, n) === "vertical", r = V(G), h("dragOverValid"), Q.eventCanceled) return m;
2874
+ if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (Io ? J.insertBefore(G, Io) : J.appendChild(G)), _(!0);
2881
2875
  var y = ho(t, o.draggable);
2882
2876
  if (!y || Es(e, f, this) && !y.animated) {
2883
- if (y === W) return _(!1);
2884
- if (y && t === e.target && (n = y), n && (i = V(n)), Ss(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);
2877
+ if (y === G) return _(!1);
2878
+ if (y && t === e.target && (n = y), n && (i = V(n)), Ss(J, t, G, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(G, y.nextSibling) : t.appendChild(G), K = t, v(), _(!0);
2885
2879
  } else if (y && Ts(e, f, this)) {
2886
2880
  var b = mo(t, 0, o, !0);
2887
- if (b === W) return _(!1);
2888
- if (n = b, i = V(n), Ss(q, t, W, r, n, i, e, !1) !== !1) return g(), t.insertBefore(W, b), G = t, v(), _(!0);
2881
+ if (b === G) return _(!1);
2882
+ if (n = b, i = V(n), Ss(J, t, G, r, n, i, e, !1) !== !1) return g(), t.insertBefore(G, b), K = t, v(), _(!0);
2889
2883
  } else if (n.parentNode === t) {
2890
2884
  i = V(n);
2891
- var x = 0, S, C = W.parentNode !== t, w = !ms(W.animated && W.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = po(n, "top", "top") || po(W, "top", "top"), D = E ? E.scrollTop : void 0;
2885
+ var x = 0, S, C = G.parentNode !== t, w = !ms(G.animated && G.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = po(n, "top", "top") || po(G, "top", "top"), D = E ? E.scrollTop : void 0;
2892
2886
  es !== n && (S = i[T], ns = !1, rs = !w && o.invertSwap || C), x = Ds(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, rs, es === n);
2893
2887
  var O;
2894
2888
  if (x !== 0) {
2895
- var k = go(W);
2889
+ var k = go(G);
2896
2890
  do
2897
- k -= x, O = G.children[k];
2898
- while (O && (B(O, "display") === "none" || O === K));
2891
+ k -= x, O = K.children[k];
2892
+ while (O && (B(O, "display") === "none" || O === q));
2899
2893
  }
2900
2894
  if (x === 0 || O === n) return _(!1);
2901
2895
  es = n, ts = x;
2902
2896
  var A = n.nextElementSibling, j = !1;
2903
2897
  j = x === 1;
2904
- var M = Ss(q, t, W, r, n, i, e, j);
2905
- if (M !== !1) return (M === 1 || M === -1) && (j = M === 1), os = !0, setTimeout(ws, 30), g(), j && !A ? t.appendChild(W) : n.parentNode.insertBefore(W, j ? A : n), E && To(E, 0, D - E.scrollTop), G = W.parentNode, S !== void 0 && !rs && (is = Math.abs(S - V(n)[T])), v(), _(!0);
2898
+ var M = Ss(J, t, G, r, n, i, e, j);
2899
+ if (M !== !1) return (M === 1 || M === -1) && (j = M === 1), os = !0, setTimeout(ws, 30), g(), j && !A ? t.appendChild(G) : n.parentNode.insertBefore(G, j ? A : n), E && To(E, 0, D - E.scrollTop), K = G.parentNode, S !== void 0 && !rs && (is = Math.abs(S - V(n)[T])), v(), _(!0);
2906
2900
  }
2907
- if (t.contains(W)) return _(!1);
2901
+ if (t.contains(G)) return _(!1);
2908
2902
  }
2909
2903
  return !1;
2910
2904
  },
@@ -2918,54 +2912,54 @@ Q.prototype = {
2918
2912
  },
2919
2913
  _onDrop: function(e) {
2920
2914
  var t = this.el, n = this.options;
2921
- Y = go(W), Ho = go(W, n.draggable), H("drop", this, { evt: e }), G = W && W.parentNode, Y = go(W), Ho = go(W, n.draggable), Q.eventCanceled || (Wo = !1, rs = !1, ns = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Ms(this.cloneId), Ms(this._dragStartId), this.nativeDraggable && (R(document, "drop", this), R(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), to && B(document.body, "user-select", ""), B(W, "transform", ""), e && ($o && (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), Cs(W), W.style["will-change"] = "", $o && !Wo && z(W, X ? X.options.ghostClass : this.options.ghostClass, !1), z(W, this.options.chosenClass, !1), U({
2915
+ Bo = go(G), Ho = go(G, n.draggable), U("drop", this, { evt: e }), K = G && G.parentNode, Bo = go(G), Ho = go(G, n.draggable), Q.eventCanceled || (Wo = !1, rs = !1, ns = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Ms(this.cloneId), Ms(this._dragStartId), this.nativeDraggable && (R(document, "drop", this), R(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), to && B(document.body, "user-select", ""), B(G, "transform", ""), e && ($o && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), q && q.parentNode && q.parentNode.removeChild(q), (J === K || X && X.lastPutMode !== "clone") && Y && Y.parentNode && Y.parentNode.removeChild(Y), G && (this.nativeDraggable && R(G, "dragend", this), Cs(G), G.style["will-change"] = "", $o && !Wo && z(G, X ? X.options.ghostClass : this.options.ghostClass, !1), z(G, this.options.chosenClass, !1), W({
2922
2916
  sortable: this,
2923
2917
  name: "unchoose",
2924
- toEl: G,
2918
+ toEl: K,
2925
2919
  newIndex: null,
2926
2920
  newDraggableIndex: null,
2927
2921
  originalEvent: e
2928
- }), q === G ? Y !== Bo && Y >= 0 && (U({
2922
+ }), J === K ? Bo !== zo && Bo >= 0 && (W({
2929
2923
  sortable: this,
2930
2924
  name: "update",
2931
- toEl: G,
2925
+ toEl: K,
2932
2926
  originalEvent: e
2933
- }), U({
2927
+ }), W({
2934
2928
  sortable: this,
2935
2929
  name: "sort",
2936
- toEl: G,
2930
+ toEl: K,
2937
2931
  originalEvent: e
2938
- })) : (Y >= 0 && (U({
2939
- rootEl: G,
2932
+ })) : (Bo >= 0 && (W({
2933
+ rootEl: K,
2940
2934
  name: "add",
2941
- toEl: G,
2942
- fromEl: q,
2935
+ toEl: K,
2936
+ fromEl: J,
2943
2937
  originalEvent: e
2944
- }), U({
2938
+ }), W({
2945
2939
  sortable: this,
2946
2940
  name: "remove",
2947
- toEl: G,
2941
+ toEl: K,
2948
2942
  originalEvent: e
2949
- }), U({
2950
- rootEl: G,
2943
+ }), W({
2944
+ rootEl: K,
2951
2945
  name: "sort",
2952
- toEl: G,
2953
- fromEl: q,
2946
+ toEl: K,
2947
+ fromEl: J,
2954
2948
  originalEvent: e
2955
- }), U({
2949
+ }), W({
2956
2950
  sortable: this,
2957
2951
  name: "sort",
2958
- toEl: G,
2952
+ toEl: K,
2959
2953
  originalEvent: e
2960
- })), X && X.save()), Q.active && ((Y == null || Y === -1) && (Y = Bo, Ho = Vo), U({
2954
+ })), X && X.save()), Q.active && ((Bo == null || Bo === -1) && (Bo = zo, Ho = Vo), W({
2961
2955
  sortable: this,
2962
2956
  name: "end",
2963
- toEl: G,
2957
+ toEl: K,
2964
2958
  originalEvent: e
2965
2959
  }), this.save())))), this._nulling();
2966
2960
  },
2967
2961
  _nulling: function() {
2968
- H("nulling", this), q = W = G = K = Lo = J = Ro = zo = qo = Jo = $o = Y = Ho = Bo = Vo = es = ts = X = Uo = Q.dragged = Q.ghost = Q.clone = Q.active = null, ss.forEach(function(e) {
2962
+ U("nulling", this), J = G = K = q = Io = Y = Lo = Ro = qo = Jo = $o = Bo = Ho = zo = Vo = es = ts = X = Uo = Q.dragged = Q.ghost = Q.clone = Q.active = null, ss.forEach(function(e) {
2969
2963
  e.checked = !0;
2970
2964
  }), ss.length = Yo = Xo = 0;
2971
2965
  },
@@ -2977,7 +2971,7 @@ Q.prototype = {
2977
2971
  break;
2978
2972
  case "dragenter":
2979
2973
  case "dragover":
2980
- W && (this._onDragOver(e), xs(e));
2974
+ G && (this._onDragOver(e), xs(e));
2981
2975
  break;
2982
2976
  case "selectstart": e.preventDefault();
2983
2977
  }
@@ -3005,27 +2999,27 @@ Q.prototype = {
3005
2999
  option: function(e, t) {
3006
3000
  var n = this.options;
3007
3001
  if (t === void 0) return n[e];
3008
- var r = Po.modifyOption(this, e, t);
3002
+ var r = No.modifyOption(this, e, t);
3009
3003
  n[e] = r === void 0 ? t : r, e === "group" && gs(n);
3010
3004
  },
3011
3005
  destroy: function() {
3012
- H("destroy", this);
3006
+ U("destroy", this);
3013
3007
  var e = this.el;
3014
- e[Oo] = 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) {
3008
+ e[H] = null, R(e, "mousedown", this._onTapStart), R(e, "touchstart", this._onTapStart), R(e, "pointerdown", this._onTapStart), this.nativeDraggable && (R(e, "dragover", this), R(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
3015
3009
  e.removeAttribute("draggable");
3016
3010
  }), this._onDrop(), this._disableDelayedDragEvents(), Ko.splice(Ko.indexOf(this.el), 1), this.el = e = null;
3017
3011
  },
3018
3012
  _hideClone: function() {
3019
- if (!zo) {
3020
- if (H("hideClone", this), Q.eventCanceled) return;
3021
- B(J, "display", "none"), this.options.removeCloneOnHide && J.parentNode && J.parentNode.removeChild(J), zo = !0;
3013
+ if (!Ro) {
3014
+ if (U("hideClone", this), Q.eventCanceled) return;
3015
+ B(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), Ro = !0;
3022
3016
  }
3023
3017
  },
3024
3018
  _showClone: function(e) {
3025
3019
  if (e.lastPutMode !== "clone") this._hideClone();
3026
- else if (zo) {
3027
- if (H("showClone", this), Q.eventCanceled) return;
3028
- W.parentNode == q && !this.options.group.revertClone ? q.insertBefore(J, W) : Lo ? q.insertBefore(J, Lo) : q.appendChild(J), this.options.group.revertClone && this.animate(W, J), B(J, "display", ""), zo = !1;
3020
+ else if (Ro) {
3021
+ if (U("showClone", this), Q.eventCanceled) return;
3022
+ G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) : Io ? J.insertBefore(Y, Io) : J.appendChild(Y), this.options.group.revertClone && this.animate(G, Y), B(Y, "display", ""), Ro = !1;
3029
3023
  }
3030
3024
  }
3031
3025
  };
@@ -3033,7 +3027,7 @@ function xs(e) {
3033
3027
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
3034
3028
  }
3035
3029
  function Ss(e, t, n, r, i, a, o, s) {
3036
- var c, l = e[Oo], u = l.options.onMove, d;
3030
+ var c, l = e[H], u = l.options.onMove, d;
3037
3031
  return window.CustomEvent && !Qa && !$a ? c = new CustomEvent("move", {
3038
3032
  bubbles: !0,
3039
3033
  cancelable: !0
@@ -3046,11 +3040,11 @@ function ws() {
3046
3040
  os = !1;
3047
3041
  }
3048
3042
  function Ts(e, t, n) {
3049
- var r = V(mo(n.el, 0, n.options, !0)), i = Do(n.el, n.options, K), a = 10;
3043
+ var r = V(mo(n.el, 0, n.options, !0)), i = Do(n.el, n.options, q), a = 10;
3050
3044
  return t ? e.clientX < i.left - a || e.clientY < r.top && e.clientX < r.right : e.clientY < i.top - a || e.clientY < r.bottom && e.clientX < r.left;
3051
3045
  }
3052
3046
  function Es(e, t, n) {
3053
- var r = V(ho(n.el, n.options.draggable)), i = Do(n.el, n.options, K), a = 10;
3047
+ var r = V(ho(n.el, n.options.draggable)), i = Do(n.el, n.options, q), a = 10;
3054
3048
  return t ? e.clientX > i.right + a || e.clientY > r.bottom && e.clientX > r.left : e.clientY > i.bottom + a || e.clientX > r.right && e.clientY > r.top;
3055
3049
  }
3056
3050
  function Ds(e, t, n, r, i, a, o, s) {
@@ -3064,7 +3058,7 @@ function Ds(e, t, n, r, i, a, o, s) {
3064
3058
  return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
3065
3059
  }
3066
3060
  function Os(e) {
3067
- return go(W) < go(e) ? 1 : -1;
3061
+ return go(G) < go(e) ? 1 : -1;
3068
3062
  }
3069
3063
  function ks(e) {
3070
3064
  for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
@@ -3104,12 +3098,12 @@ cs && L(document, "touchmove", function(e) {
3104
3098
  detectDirection: ps,
3105
3099
  getChild: mo
3106
3100
  }, Q.get = function(e) {
3107
- return e[Oo];
3101
+ return e[H];
3108
3102
  }, Q.mount = function() {
3109
3103
  var e = [...arguments];
3110
3104
  e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
3111
3105
  if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
3112
- e.utils && (Q.utils = Wa(Wa({}, Q.utils), e.utils)), Po.mount(e);
3106
+ e.utils && (Q.utils = Wa(Wa({}, Q.utils), e.utils)), No.mount(e);
3113
3107
  });
3114
3108
  }, Q.create = function(e, t) {
3115
3109
  return new Q(e, t);
@@ -3186,7 +3180,7 @@ var Us = Co(function(e, t, n, r) {
3186
3180
  ($[d].vx != O || $[d].vy != k || $[d].el !== p) && ($[d].el = p, $[d].vx = O, $[d].vy = k, clearInterval($[d].pid), (O != 0 || k != 0) && (l = !0, $[d].pid = setInterval(function() {
3187
3181
  r && this.layer === 0 && Q.active._onTouchMove(Rs);
3188
3182
  var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
3189
- typeof u == "function" && u.call(Q.dragged.parentNode[Oo], n, t, e, Rs, $[this.layer].el) !== "continue" || To($[this.layer].el, n, t);
3183
+ typeof u == "function" && u.call(Q.dragged.parentNode[H], n, t, e, Rs, $[this.layer].el) !== "continue" || To($[this.layer].el, n, t);
3190
3184
  }.bind({ layer: d }), 24))), d++;
3191
3185
  } while (t.bubbleScroll && f !== c && (f = yo(f, !1)));
3192
3186
  Fs = l;
@@ -3452,10 +3446,10 @@ var oc = { class: "tpl:w-full" }, sc = {
3452
3446
  title: ha,
3453
3447
  paragraph: ea,
3454
3448
  image: Vi,
3455
- button: Rr,
3449
+ button: zr,
3456
3450
  divider: Si,
3457
3451
  custom: bi
3458
- }, a = e, { t: s } = pn(), c = vt(Yt, "SectionBlock"), u = p(Jt, null), d = p(sn, null), f = p($t, {}), h = p(on, null);
3452
+ }, a = e, { t: s } = mn(), c = yt(Xt, "SectionBlock"), u = p(Yt, null), d = p(cn, null), f = p(en, {}), h = p(sn, null);
3459
3453
  function g(e) {
3460
3454
  let t = f.savedBlocks;
3461
3455
  t?.isPicking.value ? t.togglePick(a.block.id) : c.selectBlock(e);
@@ -3488,17 +3482,23 @@ var oc = { class: "tpl:w-full" }, sc = {
3488
3482
  }
3489
3483
  let j = _(null);
3490
3484
  function ee(e) {
3491
- return O(e) ? !0 : j.value === e && T(e).filter((e) => E(e.id)).length <= 1;
3485
+ return c.state.previewMode ? !1 : O(e) ? !0 : j.value === e && T(e).filter((e) => E(e.id)).length <= 1;
3486
+ }
3487
+ function F(e) {
3488
+ return T(e).length === 0 && !c.state.previewMode;
3492
3489
  }
3493
- function F(e, t) {
3490
+ function te(e) {
3491
+ return T(e).length === 0 && c.state.previewMode;
3492
+ }
3493
+ function I(e, t) {
3494
3494
  let n = t.map((e) => JSON.parse(JSON.stringify(e))), r = [...a.block.children];
3495
3495
  for (; r.length <= e;) r.push([]);
3496
3496
  r[e] = n, c.updateBlock(a.block.id, { children: r });
3497
3497
  }
3498
- function te(e) {
3499
- return Ar(e, d, i);
3498
+ function re(e) {
3499
+ return jr(e, d, i);
3500
3500
  }
3501
- function I(e, t) {
3501
+ function ie(e, t) {
3502
3502
  e.type === "custom" && c.updateBlock(e.id, {
3503
3503
  fieldValues: t.fieldValues,
3504
3504
  dataSourceFetched: t.dataSourceFetched
@@ -3506,7 +3506,7 @@ var oc = { class: "tpl:w-full" }, sc = {
3506
3506
  }
3507
3507
  return (i, a) => (t(), S("div", oc, [x("div", { class: k(["tpl:flex tpl:gap-0", { "tpl:flex-col": w.value }]) }, [(t(!0), S(M, null, l(b.value, (i, u) => (t(), S("div", {
3508
3508
  key: u,
3509
- class: k(["tpl:relative tpl:flex tpl:flex-col tpl:rounded", T(u).length === 0 ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
3509
+ class: k(["tpl:relative tpl:flex tpl:flex-col tpl:rounded", F(u) ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
3510
3510
  style: n({ width: w.value ? "100%" : v.value[u] })
3511
3511
  }, [C(y(ic), {
3512
3512
  "model-value": T(u),
@@ -3523,10 +3523,13 @@ var oc = { class: "tpl:w-full" }, sc = {
3523
3523
  "inverted-swap-threshold": .65,
3524
3524
  "empty-insert-threshold": 20,
3525
3525
  "force-fallback": !0,
3526
- class: k(["tpl:grow", { "tpl:min-h-[60px]": ee(u) }]),
3526
+ class: k(["tpl:grow", {
3527
+ "tpl:min-h-[60px]": ee(u),
3528
+ "tpl:min-h-[34px]": te(u)
3529
+ }]),
3527
3530
  onStart: (e) => j.value = u,
3528
3531
  onEnd: a[0] ||= (e) => j.value = null,
3529
- "onUpdate:modelValue": (e) => F(u, e)
3532
+ "onUpdate:modelValue": (e) => I(u, e)
3530
3533
  }, {
3531
3534
  default: r(() => [(t(!0), S(M, null, l(T(u), (n) => m((t(), S("div", { key: n.id }, [C(pa, {
3532
3535
  block: n,
@@ -3536,10 +3539,10 @@ var oc = { class: "tpl:w-full" }, sc = {
3536
3539
  nested: "",
3537
3540
  onSelect: (e) => g(n.id)
3538
3541
  }, {
3539
- default: r(() => [(t(), A(o(te(n)), {
3542
+ default: r(() => [(t(), A(o(re(n)), {
3540
3543
  block: n,
3541
3544
  viewport: e.viewport,
3542
- onFetchData: (e) => I(n, e),
3545
+ onFetchData: (e) => ie(n, e),
3543
3546
  onUpdate: (e) => y(c).updateBlock(n.id, e)
3544
3547
  }, null, 40, [
3545
3548
  "block",
@@ -3562,7 +3565,7 @@ var oc = { class: "tpl:w-full" }, sc = {
3562
3565
  "class",
3563
3566
  "onStart",
3564
3567
  "onUpdate:modelValue"
3565
- ]), T(u).length === 0 ? (t(), S("div", sc, [x("span", null, D(y(s).section.dropHere), 1)])) : P("", !0)], 6))), 128))], 2)]));
3568
+ ]), F(u) ? (t(), S("div", sc, [x("span", null, D(y(s).section.dropHere), 1)])) : P("", !0)], 6))), 128))], 2)]));
3566
3569
  }
3567
3570
  }), lc = ["width", "height"], uc = [
3568
3571
  "d",
@@ -3578,7 +3581,7 @@ var oc = { class: "tpl:w-full" }, sc = {
3578
3581
  iconSize: {}
3579
3582
  },
3580
3583
  setup(e) {
3581
- let r = e, i = N(() => it[r.platform]), a = N(() => st[r.iconSize]), o = N(() => ke(r.platform, r.iconTone)), s = N(() => Ie(r.iconStyle, r.iconTone)), c = N(() => {
3584
+ let r = e, i = N(() => at[r.platform]), a = N(() => ct[r.iconSize]), o = N(() => Be(r.platform, r.iconTone)), s = N(() => Te(r.iconStyle, r.iconTone)), c = N(() => {
3582
3585
  let e = {
3583
3586
  display: "inline-flex",
3584
3587
  alignItems: "center",
@@ -3616,7 +3619,7 @@ var oc = { class: "tpl:w-full" }, sc = {
3616
3619
  };
3617
3620
  default: return e;
3618
3621
  }
3619
- }), l = N(() => Ue(r.iconStyle)), u = N(() => Math.floor(a.value * l.value));
3622
+ }), l = N(() => je(r.iconStyle)), u = N(() => Math.floor(a.value * l.value));
3620
3623
  function d(e) {
3621
3624
  let t = `${e.width / 2 * a.value / 24}px`, n = Math.round(e.opacity * 255).toString(16).padStart(2, "0"), r = `${e.color}${n}`;
3622
3625
  return `0 0 0 ${t} ${r}, inset 0 0 0 ${t} ${r}`;
@@ -3652,7 +3655,7 @@ var oc = { class: "tpl:w-full" }, sc = {
3652
3655
  viewport: {}
3653
3656
  },
3654
3657
  setup(e) {
3655
- let r = e, { t: i } = pn(), a = N(() => ({
3658
+ let r = e, { t: i } = mn(), a = N(() => ({
3656
3659
  display: "flex",
3657
3660
  flexWrap: "wrap",
3658
3661
  gap: `${r.block.spacing}px`,
@@ -3676,7 +3679,7 @@ var oc = { class: "tpl:w-full" }, sc = {
3676
3679
  "icon-style",
3677
3680
  "icon-tone",
3678
3681
  "icon-size"
3679
- ])], 8, mc))), 128))], 4)) : (t(), S("div", hc, [C(y(at), { size: 16 }), x("span", null, D(y(i).social.addIcons), 1)]))]));
3682
+ ])], 8, mc))), 128))], 4)) : (t(), S("div", hc, [C(y(ot), { size: 16 }), x("span", null, D(y(i).social.addIcons), 1)]))]));
3680
3683
  }
3681
3684
  }), _c = { class: "tpl:w-full" }, vc = {
3682
3685
  key: 0,
@@ -3692,7 +3695,7 @@ var oc = { class: "tpl:w-full" }, sc = {
3692
3695
  viewport: {}
3693
3696
  },
3694
3697
  setup(e) {
3695
- let r = e, i = vt(Yt, "SpacerBlock"), a = N(() => ({
3698
+ let r = e, i = yt(Xt, "SpacerBlock"), a = N(() => ({
3696
3699
  height: `${r.block.height}px`,
3697
3700
  minHeight: `${r.block.height}px`,
3698
3701
  ...i.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
@@ -3713,7 +3716,7 @@ var oc = { class: "tpl:w-full" }, sc = {
3713
3716
  ], wc = {
3714
3717
  key: 1,
3715
3718
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
3716
- }, Tc = /*#__PURE__*/ kn(/* @__PURE__ */ F({
3719
+ }, Tc = /*#__PURE__*/ An(/* @__PURE__ */ F({
3717
3720
  __name: "TableBlock",
3718
3721
  props: {
3719
3722
  block: {},
@@ -3727,7 +3730,7 @@ var oc = { class: "tpl:w-full" }, sc = {
3727
3730
  updated(e, t) {
3728
3731
  t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
3729
3732
  }
3730
- }, i = e, { t: a } = pn(), o = vt(Yt, "TableBlock"), s = N(() => i.block.rows.length > 0), c = N(() => {
3733
+ }, i = e, { t: a } = mn(), o = yt(Xt, "TableBlock"), s = N(() => i.block.rows.length > 0), c = N(() => {
3731
3734
  let e = {
3732
3735
  width: "100%",
3733
3736
  borderCollapse: "collapse",
@@ -3780,7 +3783,7 @@ var oc = { class: "tpl:w-full" }, sc = {
3780
3783
  onBlur: (t) => g(e.id, o.id, t),
3781
3784
  onKeydown: i[1] ||= re(I((e) => e.target.blur(), ["prevent"]), ["enter"]),
3782
3785
  onClick: I(h, ["stop"])
3783
- }, null, 44, Cc)), [[r, o.content]])), 128))]))), 128))])], 4)) : (t(), S("div", wc, [C(y(Ze), { size: 16 }), x("span", null, D(y(a).table.empty), 1)]))]));
3786
+ }, null, 44, Cc)), [[r, o.content]])), 128))]))), 128))])], 4)) : (t(), S("div", wc, [C(y(Qe), { size: 16 }), x("span", null, D(y(a).table.empty), 1)]))]));
3784
3787
  }
3785
3788
  }), [["__scopeId", "data-v-963ac422"]]), Ec = /* @__PURE__ */ F({
3786
3789
  __name: "VideoPlayButton",
@@ -3850,7 +3853,7 @@ var kc = ["src", "alt"], Ac = {
3850
3853
  viewport: {}
3851
3854
  },
3852
3855
  setup(e) {
3853
- let r = e, { t: i } = pn(), { syntax: a } = jn(), o = N(() => Fe(r.block.url, a) || Fe(r.block.thumbnailUrl, a)), s = Vn(() => o.value ? void 0 : r.block.thumbnailUrl || void 0), c = Vn(() => o.value ? r.block.placeholderUrl : void 0), l = N(() => o.value ? null : r.block.thumbnailUrl ? s.value ?? null : Oc(r.block.url)), u = N(() => ({ textAlign: r.block.align })), d = N(() => {
3856
+ let r = e, { t: i } = mn(), { syntax: a } = Mn(), o = N(() => ke(r.block.url, a) || ke(r.block.thumbnailUrl, a)), s = Hn(() => o.value ? void 0 : r.block.thumbnailUrl || void 0), c = Hn(() => o.value ? r.block.placeholderUrl : void 0), l = N(() => o.value ? null : r.block.thumbnailUrl ? s.value ?? null : Oc(r.block.url)), u = N(() => ({ textAlign: r.block.align })), d = N(() => {
3854
3857
  let e = r.block.align;
3855
3858
  return {
3856
3859
  maxWidth: "100%",
@@ -3860,7 +3863,7 @@ var kc = ["src", "alt"], Ac = {
3860
3863
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
3861
3864
  marginRight: e === "center" ? "auto" : void 0
3862
3865
  };
3863
- }), f = N(() => ({ height: r.block.height ? `${r.block.height}px` : void 0 })), p = N(() => Fe(r.block.url, a) ? r.block.url : r.block.thumbnailUrl);
3866
+ }), f = N(() => ({ height: r.block.height ? `${r.block.height}px` : void 0 })), p = N(() => ke(r.block.url, a) ? r.block.url : r.block.thumbnailUrl);
3864
3867
  return (r, a) => (t(), S("div", {
3865
3868
  class: "tpl:w-full",
3866
3869
  style: n(u.value)
@@ -3877,12 +3880,12 @@ var kc = ["src", "alt"], Ac = {
3877
3880
  key: 1,
3878
3881
  class: "tpl:relative tpl:!flex tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
3879
3882
  style: n([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, d.value])
3880
- }, [C(y(Gr), {
3883
+ }, [C(y(Kr), {
3881
3884
  size: 36,
3882
3885
  "stroke-width": 1.5,
3883
3886
  class: "tpl:text-[var(--tpl-primary)]",
3884
3887
  style: { opacity: "0.5" }
3885
- }), x("span", Ac, [C(Ir, { text: p.value }, null, 8, ["text"])])], 4)) : l.value ? (t(), S(M, { key: 2 }, [e.block.url ? (t(), S("a", {
3888
+ }), x("span", Ac, [C(Lr, { text: p.value }, null, 8, ["text"])])], 4)) : l.value ? (t(), S(M, { key: 2 }, [e.block.url ? (t(), S("a", {
3886
3889
  key: 0,
3887
3890
  href: e.block.url,
3888
3891
  target: "_blank",
@@ -3904,7 +3907,7 @@ var kc = ["src", "alt"], Ac = {
3904
3907
  src: l.value,
3905
3908
  alt: e.block.alt,
3906
3909
  style: n(f.value)
3907
- }, null, 12, Nc), C(Ec)], 4))], 64)) : (t(), S("div", Pc, [C(y(Gr), {
3910
+ }, null, 12, Nc), C(Ec)], 4))], 64)) : (t(), S("div", Pc, [C(y(Kr), {
3908
3911
  size: 40,
3909
3912
  "stroke-width": 1.5,
3910
3913
  class: "tpl:text-[var(--tpl-border-light)]"
@@ -3915,7 +3918,7 @@ var kc = ["src", "alt"], Ac = {
3915
3918
  title: ha,
3916
3919
  paragraph: ea,
3917
3920
  image: Vi,
3918
- button: Rr,
3921
+ button: zr,
3919
3922
  divider: Si,
3920
3923
  video: Fc,
3921
3924
  social: gc,
@@ -3926,32 +3929,32 @@ var kc = ["src", "alt"], Ac = {
3926
3929
  countdown: v(() => import("./CountdownBlock-RNx3hIu0.js"))
3927
3930
  };
3928
3931
  function Lc(t) {
3929
- let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: c } = pn(i), l = N(() => pe(pe(pe(ar(i), Tr(n.content.value.settings?.locale)), Se(n.content.value.settings) === "rtl" ? {
3932
+ let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: c } = mn(i), l = N(() => me(me(me(or(i), Er(n.content.value.settings?.locale)), he(n.content.value.settings) === "rtl" ? {
3930
3933
  title: { textAlign: "right" },
3931
3934
  table: { textAlign: "right" }
3932
3935
  } : {}), r.blockDefaults ?? {}));
3933
3936
  n.setUiTheme(r.uiTheme ?? "auto");
3934
- let { resolvedTheme: u } = qn(N(() => n.state.uiTheme)), d = _(r.theme ?? {}), { themeStyles: p } = Yn({
3937
+ let { resolvedTheme: u } = Jn(N(() => n.state.uiTheme)), d = _(r.theme ?? {}), { themeStyles: p } = Xn({
3935
3938
  themeOverrides: d,
3936
3939
  resolvedTheme: u,
3937
3940
  extraStyles: () => ({
3938
3941
  "--tpl-drop-text": `"${i.canvas.dropHere}"`,
3939
3942
  ...t.themeExtraStyles?.()
3940
3943
  })
3941
- }), m = Ye({
3944
+ }), m = Xe({
3942
3945
  content: n.content,
3943
3946
  setContent: (e, t) => n.setContent(e, t),
3944
3947
  ...t.historyOptions
3945
3948
  });
3946
- lt(n, m);
3947
- let g = Xe({
3949
+ ut(n, m);
3950
+ let g = Ze({
3948
3951
  addBlock: n.addBlock,
3949
3952
  removeBlock: n.removeBlock,
3950
3953
  updateBlock: n.updateBlock,
3951
3954
  selectBlock: n.selectBlock,
3952
3955
  findBlockLocation: n.findBlockLocation,
3953
3956
  blockDefaults: () => l.value
3954
- }), v = Qe(n), y = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? tt({
3957
+ }), v = $e(n), y = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? nt({
3955
3958
  content: n.content,
3956
3959
  isDirty: () => n.state.isDirty,
3957
3960
  ...t.autoSaveOptions
@@ -3959,30 +3962,30 @@ function Lc(t) {
3959
3962
  y && (b = f(m.isNavigating, (e) => {
3960
3963
  e ? y.pause() : y.resume();
3961
3964
  }));
3962
- let x = Kn(n, {
3965
+ let x = qn(n, {
3963
3966
  t: o,
3964
3967
  format: c
3965
- }, r.customBlocks ?? []), S = _n(r.colors);
3966
- if (S.allowCustomIgnored && mn.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), S.invalidPresets.length > 0 && mn.warn(`config.colors.presets skipped invalid entries: ${S.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), S.allowCustom === !1) {
3967
- let e = ir(S.presets, r.blockDefaults, r.templateDefaults);
3968
- e.length > 0 && mn.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.`);
3969
- }
3970
- let C = yn(r.templateSettings);
3971
- for (let e of C.unknown) mn.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${bn.join(", ")}) — skipping it.`);
3972
- let w = Xn();
3973
- tr(w, Ic);
3968
+ }, r.customBlocks ?? []), S = vn(r.colors);
3969
+ if (S.allowCustomIgnored && hn.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), S.invalidPresets.length > 0 && hn.warn(`config.colors.presets skipped invalid entries: ${S.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), S.allowCustom === !1) {
3970
+ let e = ar(S.presets, r.blockDefaults, r.templateDefaults);
3971
+ e.length > 0 && hn.warn(`config.colors locks custom colours, but these block/template default colours fall outside colors.presets: ${e.join(", ")}. New blocks start on a colour the palette can't reselect — set blockDefaults / templateDefaults from the same palette.`);
3972
+ }
3973
+ let C = bn(r.templateSettings);
3974
+ for (let e of C.unknown) hn.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${xn.join(", ")}) — skipping it.`);
3975
+ let w = Zn();
3976
+ nr(w, Ic);
3974
3977
  let T = /* @__PURE__ */ new Set();
3975
3978
  function D(e) {
3976
3979
  for (let t of e) {
3977
3980
  w.registerCustom(t, bi);
3978
- for (let e of Er(t, S)) T.has(e.id) || (T.add(e.id), mn.warn(e.message));
3981
+ for (let e of Dr(t, S)) T.has(e.id) || (T.add(e.id), hn.warn(e.message));
3979
3982
  }
3980
3983
  }
3981
3984
  r.customBlocks?.length && D(r.customBlocks);
3982
- let O = Ln();
3985
+ let O = Rn();
3983
3986
  if (h() && s(O.dispose), t.containerEl) {
3984
3987
  let e = t.containerEl;
3985
- ht(document, "pointerdown", (t) => {
3988
+ gt(document, "pointerdown", (t) => {
3986
3989
  let n = e.value;
3987
3990
  n && (t.composedPath?.() ?? []).includes(n) && O.claim();
3988
3991
  }, { capture: !0 });
@@ -3992,7 +3995,7 @@ function Lc(t) {
3992
3995
  e ? e.save() : y?.flush();
3993
3996
  }
3994
3997
  function A(e) {
3995
- O.isActive() && Or(e, {
3998
+ O.isActive() && kr(e, {
3996
3999
  history: m,
3997
4000
  selectBlock: (e) => n.selectBlock(e),
3998
4001
  getSelectedBlockId: () => n.state.selectedBlockId,
@@ -4004,43 +4007,44 @@ function Lc(t) {
4004
4007
  onCancelPick: () => t.capabilities?.savedBlocks?.cancelPicking()
4005
4008
  });
4006
4009
  }
4007
- ht(document, "keydown", A);
4008
- let j = _(null);
4009
- E(Ut, t.editorRoot ?? document), E(bt, j), E(Vt, i), E(Yt, n), E(dn, m), E(Wt, g), E(Jt, v), E(cn, a), E(Ot, p), E(Ht, u), E(nn, l), E(Bt, r.locale), E(sn, w), E(rn, r.customBlocks ?? []), E(fn, r.paletteBlocks), E(Gt, nr(r.htmlBlockPreview)), E(xt, r.layout), E(Tt, r.sectionWrapper), E(qt, S), E(an, C.fields), E(en, Zn(n.content, w));
4010
- let M = he(r.mergeTags?.syntax), ee = e(r.mergeTags?.tags ?? []);
4011
- function P(e) {
4012
- Array.isArray(e) ? ee.value = e : mn.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
4013
- }
4014
- E(Nt, ee), E(Pt, M), E(It, r.mergeTags?.onRequest ?? null), E(Qt, r.mergeTags?.autocomplete !== !1), E(Mt, r.mergeTags?.showRawValue !== !1);
4015
- let F = _(oe(r.mergeTags?.tags ?? []));
4016
- E(jt, F);
4017
- let te = zn({
4010
+ gt(document, "keydown", A);
4011
+ let j = _(null), M = t.editorRoot ?? document;
4012
+ E(Wt, M), E(xt, j), E(Ht, i), E(Xt, n), E(fn, m), E(Gt, g), E(Yt, v), E(ln, a), E(kt, p), E(Ut, u), E(rn, l), E(Vt, r.locale), E(cn, w), E(an, r.customBlocks ?? []), E(pn, r.paletteBlocks), E(Kt, rr(r.htmlBlockPreview)), E(St, r.layout), E(Et, r.sectionWrapper), E(Jt, S), E(on, C.fields), E(tn, Qn(n.content, w));
4013
+ let ee = Ue(r.mergeTags?.syntax), P = e(r.mergeTags?.tags ?? []);
4014
+ function F(e) {
4015
+ Array.isArray(e) ? P.value = e : hn.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
4016
+ }
4017
+ E(Pt, P), E(Ft, ee), E(Lt, r.mergeTags?.onRequest ?? null), E($t, r.mergeTags?.autocomplete !== !1), E(Nt, r.mergeTags?.showRawValue !== !1);
4018
+ let te = _(le(r.mergeTags?.tags ?? []));
4019
+ E(Mt, te);
4020
+ let I = Bn({
4018
4021
  resolvePreview: r.resolvePreview,
4019
4022
  getContent: () => {
4020
4023
  let e = n.content.value;
4021
- return r.layout && n.state.previewMode ? We(r.layout, e) : e;
4024
+ return r.layout && n.state.previewMode ? De(r.layout, e) : e;
4022
4025
  },
4023
4026
  isActive: () => n.state.previewMode
4024
4027
  });
4025
- E(zt, te), E(Et, r.resolvePreview);
4026
- let I = N(() => !(n.state.previewMode && te.isConfigured));
4027
- E(on, I);
4028
- let ne = Hn();
4029
- E(yt, ne), E(Zt, _(!1)), E(St, _(!1)), E(Rt, r.logicTags?.tags ?? []), E(ln, r.logicTags?.pairs ?? []), E(Dt, r.logicTags?.onRequest ?? null), E(Ct, Un()), E(At, r.onRequestMedia ?? null), E(Kt, r.canDropMedia ?? null), E(un, r.resolveImageUrl ? Bn(r.resolveImageUrl) : null), E(Xt, r.displayConditions?.conditions ?? []), E(tn, r.displayConditions?.allowCustom ?? !1), E($t, t.capabilities ?? {}), E(Lt, x);
4030
- let re = Wn(r.lint) ? null : Gn({
4028
+ E(Bt, I), E(Dt, r.resolvePreview);
4029
+ let ne = N(() => !(n.state.previewMode && I.isConfigured));
4030
+ E(sn, ne);
4031
+ let re = Un();
4032
+ E(bt, re), E(Qt, _(!1)), E(Ct, _(!1)), E(zt, r.logicTags?.tags ?? []), E(un, r.logicTags?.pairs ?? []), E(Ot, r.logicTags?.onRequest ?? null), E(wt, Wn()), E(jt, r.onRequestMedia ?? null), E(qt, r.canDropMedia ?? null), E(dn, r.resolveImageUrl ? Vn(r.resolveImageUrl) : null), E(Zt, r.displayConditions?.conditions ?? []), E(nn, r.displayConditions?.allowCustom ?? !1), E(en, t.capabilities ?? {}), E(Rt, x);
4033
+ let ie = Gn(r.lint) ? null : Kn({
4031
4034
  content: n.content,
4032
4035
  options: r.lint ?? {},
4033
4036
  updateBlock: n.updateBlock,
4034
4037
  updateSettings: n.updateSettings,
4035
4038
  removeBlock: n.removeBlock
4036
4039
  });
4037
- E(kt, re);
4038
- function ie() {
4039
- b?.(), re?.destroy(), y?.destroy(), m.destroy();
4040
+ E(At, ie);
4041
+ function ae() {
4042
+ b?.(), ie?.destroy(), y?.destroy(), m.destroy();
4040
4043
  }
4041
4044
  return {
4042
4045
  t: o,
4043
4046
  format: c,
4047
+ editorRoot: M,
4044
4048
  history: m,
4045
4049
  blockActions: g,
4046
4050
  conditionPreview: v,
@@ -4050,15 +4054,15 @@ function Lc(t) {
4050
4054
  themeOverrides: d,
4051
4055
  registry: w,
4052
4056
  keyboardReorder: x,
4053
- templateLint: re,
4057
+ templateLint: ie,
4054
4058
  popoverRoot: j,
4055
- mergeTagSampleMode: F,
4056
- previewResolution: te,
4057
- appliesConditionFilter: I,
4059
+ mergeTagSampleMode: te,
4060
+ previewResolution: I,
4061
+ appliesConditionFilter: ne,
4058
4062
  registerCustomBlocks: D,
4059
- setMergeTags: P,
4060
- destroy: ie
4063
+ setMergeTags: F,
4064
+ destroy: ae
4061
4065
  };
4062
4066
  }
4063
4067
  //#endregion
4064
- export { Ar as A, Ur as C, jr as D, Rr as E, vr as F, _r as I, gr as L, xr as M, br as N, kr as O, yr as P, zn as R, Jr as S, zr as T, li as _, gc as a, Zr as b, ha as c, Gi as d, Vi as f, di as g, bi as h, yc as i, pr as j, Pr as k, pa as l, Si as m, Fc as n, cc as o, Oi as p, Tc as r, ic as s, Lc as t, ea as u, si as v, Vr as w, Xr as x, ni as y };
4068
+ export { jr as A, Wr as C, Mr as D, zr as E, yr as F, vr as I, _r as L, Sr as M, xr as N, Ar as O, br as P, Bn as R, Yr as S, Br as T, li as _, gc as a, Qr as b, ha as c, Gi as d, Vi as f, di as g, bi as h, yc as i, mr as j, Fr as k, pa as l, Si as m, Fc as n, cc as o, Oi as p, Tc as r, ic as s, Lc as t, ea as u, si as v, Hr as w, Zr as x, ni as y };