@templatical/editor 0.10.4 → 0.11.1

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 (134) hide show
  1. package/dist/{AiChatSidebar-Djjqrmoh.js → AiChatSidebar-Cm5RM5Qh.js} +8 -8
  2. package/dist/{AiFeatureMenu-DR56EYbL.js → AiFeatureMenu-DBWcfcWl.js} +6 -6
  3. package/dist/{BlockIssueBadge-ySMhwDRR.js → BlockIssueBadge-BF4sdsr4.js} +4 -4
  4. package/dist/{CloudEditor-BLlRKq5D.js → CloudEditor-C6cSXtcP.js} +162 -160
  5. package/dist/{CollaboratorBar-BlXmZrIj.js → CollaboratorBar-B8-AQfG2.js} +3 -3
  6. package/dist/{CommentsSidebar-XcYtqAn8.js → CommentsSidebar-BQJzyCc6.js} +11 -11
  7. package/dist/{CountdownBlock-sAAv3BHE.js → CountdownBlock-D_AsF4F3.js} +1 -1
  8. package/dist/{CountdownToolbar-CUvqPILZ.js → CountdownToolbar-BGTkFky9.js} +2 -2
  9. package/dist/{DesignReferenceSidebar-B0Upq2MY.js → DesignReferenceSidebar-O3epZMXD.js} +6 -6
  10. package/dist/{IssuesPanel-BvcqQ0ec.js → IssuesPanel-CPBbR8yp.js} +7 -7
  11. package/dist/{ModuleBrowserModal-BdOB1Lbt.js → ModuleBrowserModal-B_tLzFAk.js} +9 -9
  12. package/dist/{ModulePreviewCanvas-BeglLfBF.js → ModulePreviewCanvas-B7pNpAHM.js} +2 -2
  13. package/dist/{NumberWithSuffix-Cb7HI_yW.js → NumberWithSuffix-eI9pPDWT.js} +1 -1
  14. package/dist/{ParagraphEditor-4Wrd3nnB.js → ParagraphEditor-DmA9K7dx.js} +27 -27
  15. package/dist/{RichTextEditorContent-D-uKzBDa.js → RichTextEditorContent-Dvn4woIt.js} +6 -6
  16. package/dist/{SaveModuleDialog-ueFhCVWN.js → SaveModuleDialog-B8ypoxdj.js} +6 -6
  17. package/dist/{SnapshotHistory-DNuw_gCY.js → SnapshotHistory-BTHd7CVP.js} +7 -7
  18. package/dist/{TemplateScoringPanel-bkIhEokb.js → TemplateScoringPanel-Bt5Rsgen.js} +12 -12
  19. package/dist/{TestEmailModal-Tg30-itu.js → TestEmailModal-CBIFMzK6.js} +4 -4
  20. package/dist/{TitleEditor-CY8QWbEw.js → TitleEditor-C9jDA5lI.js} +12 -12
  21. package/dist/{TplModal-D338Vv9U.js → TplModal-ND4fiqOS.js} +3 -3
  22. package/dist/{blockTypeIcons-CYoPwoH9.js → blockTypeIcons-Bn-_Smlm.js} +5 -5
  23. package/dist/bundle-stats.json +6 -6
  24. package/dist/cdn/chunks/{AiFeatureMenu-DRWRoPdh.js → AiFeatureMenu-BuSO0dXP.js} +8 -8
  25. package/dist/cdn/chunks/{AiFeatureMenu-DRWRoPdh.js.map → AiFeatureMenu-BuSO0dXP.js.map} +1 -1
  26. package/dist/cdn/chunks/{BlockIssueBadge-D2ApLp61.js → BlockIssueBadge-sv3IZ1Pb.js} +4 -4
  27. package/dist/cdn/chunks/{BlockIssueBadge-D2ApLp61.js.map → BlockIssueBadge-sv3IZ1Pb.js.map} +1 -1
  28. package/dist/cdn/chunks/{CloudEditor-gvOOuXac.js → CloudEditor-hxoqsTsq.js} +242 -240
  29. package/dist/cdn/chunks/CloudEditor-hxoqsTsq.js.map +1 -0
  30. package/dist/cdn/chunks/{CollaboratorBar-BZK3R383.js → CollaboratorBar-DFqsaNX0.js} +3 -3
  31. package/dist/cdn/chunks/{CollaboratorBar-BZK3R383.js.map → CollaboratorBar-DFqsaNX0.js.map} +1 -1
  32. package/dist/cdn/chunks/{CountdownBlock-DU5YmjFP.js → CountdownBlock-PpH3fxAX.js} +2 -2
  33. package/dist/cdn/chunks/{CountdownBlock-DU5YmjFP.js.map → CountdownBlock-PpH3fxAX.js.map} +1 -1
  34. package/dist/cdn/chunks/{CountdownToolbar-C1nlFm4e.js → CountdownToolbar-CZN92Bhz.js} +3 -3
  35. package/dist/cdn/chunks/{CountdownToolbar-C1nlFm4e.js.map → CountdownToolbar-CZN92Bhz.js.map} +1 -1
  36. package/dist/cdn/chunks/{IssuesPanel-R3M60NTk.js → IssuesPanel-wQjrnuyc.js} +7 -7
  37. package/dist/cdn/chunks/{IssuesPanel-R3M60NTk.js.map → IssuesPanel-wQjrnuyc.js.map} +1 -1
  38. package/dist/cdn/chunks/{ModuleBrowserModal-DMithQu8.js → ModuleBrowserModal-348wCgft.js} +8 -8
  39. package/dist/cdn/chunks/{ModuleBrowserModal-DMithQu8.js.map → ModuleBrowserModal-348wCgft.js.map} +1 -1
  40. package/dist/cdn/chunks/{ModulePreviewCanvas-BNKbV_c2.js → ModulePreviewCanvas-Cf6DUHml.js} +22 -22
  41. package/dist/cdn/chunks/{ModulePreviewCanvas-BNKbV_c2.js.map → ModulePreviewCanvas-Cf6DUHml.js.map} +1 -1
  42. package/dist/cdn/chunks/{NumberWithSuffix-C5zNn3Oc.js → NumberWithSuffix-Deo8EOSz.js} +2 -2
  43. package/dist/cdn/chunks/{NumberWithSuffix-C5zNn3Oc.js.map → NumberWithSuffix-Deo8EOSz.js.map} +1 -1
  44. package/dist/cdn/chunks/{ParagraphEditor-H136qVNI.js → ParagraphEditor-Cbl_gBYM.js} +53 -53
  45. package/dist/cdn/chunks/{ParagraphEditor-H136qVNI.js.map → ParagraphEditor-Cbl_gBYM.js.map} +1 -1
  46. package/dist/cdn/chunks/{RichTextEditorContent-BxW6vSck.js → RichTextEditorContent-TBPzn3RC.js} +4 -4
  47. package/dist/cdn/chunks/{RichTextEditorContent-BxW6vSck.js.map → RichTextEditorContent-TBPzn3RC.js.map} +1 -1
  48. package/dist/cdn/chunks/{SaveModuleDialog-BaiynUWb.js → SaveModuleDialog-CxdYMutK.js} +4 -4
  49. package/dist/cdn/chunks/{SaveModuleDialog-BaiynUWb.js.map → SaveModuleDialog-CxdYMutK.js.map} +1 -1
  50. package/dist/cdn/chunks/{TitleEditor-BBsR46vE.js → TitleEditor--XulEf7R.js} +9 -9
  51. package/dist/cdn/chunks/{TitleEditor-BBsR46vE.js.map → TitleEditor--XulEf7R.js.map} +1 -1
  52. package/dist/cdn/chunks/{blockTypeIcons-CX05RINM.js → blockTypeIcons-BJND4L-A.js} +6 -6
  53. package/dist/cdn/chunks/{blockTypeIcons-CX05RINM.js.map → blockTypeIcons-BJND4L-A.js.map} +1 -1
  54. package/dist/{de-DIAGP7yH.js → cdn/chunks/de-BJMLpg_p.js} +6 -0
  55. package/dist/cdn/chunks/{de-DIAGP7yH.js.map → de-BJMLpg_p.js.map} +1 -1
  56. package/dist/{en-nqIW8Q9W.js → cdn/chunks/en-DFMMw7SL.js} +6 -0
  57. package/dist/cdn/chunks/{en-nqIW8Q9W.js.map → en-DFMMw7SL.js.map} +1 -1
  58. package/dist/cdn/chunks/{extensions-2LuW8PHB.js → extensions-BtWoLy6E.js} +28 -28
  59. package/dist/cdn/chunks/{extensions-2LuW8PHB.js.map → extensions-BtWoLy6E.js.map} +1 -1
  60. package/dist/cdn/chunks/{features-CxHQG9xr.js → features-mO5NzwnN.js} +657 -678
  61. package/dist/cdn/chunks/features-mO5NzwnN.js.map +1 -0
  62. package/dist/cdn/chunks/{icons-DrsFvnNP.js → icons-CuXm6XAT.js} +2 -2
  63. package/dist/cdn/chunks/{icons-DrsFvnNP.js.map → icons-CuXm6XAT.js.map} +1 -1
  64. package/dist/cdn/chunks/{media-library-CDXkfBa7.js → media-library-BtNzYUTi.js} +524 -524
  65. package/dist/cdn/chunks/{media-library-CDXkfBa7.js.map → media-library-BtNzYUTi.js.map} +1 -1
  66. package/dist/cdn/chunks/{pt-BR-DCNnLLx9.js → pt-BR-C-9aWLlR.js} +5 -1
  67. package/dist/cdn/chunks/{pt-BR-DCNnLLx9.js.map → pt-BR-C-9aWLlR.js.map} +1 -1
  68. package/dist/cdn/chunks/{quality-HR87TCZc.js → quality-YKe19zp8.js} +481 -481
  69. package/dist/cdn/chunks/{quality-HR87TCZc.js.map → quality-YKe19zp8.js.map} +1 -1
  70. package/dist/cdn/chunks/{renderer-Dh5WdraW.js → renderer-BcOaxCs6.js} +9 -9
  71. package/dist/cdn/chunks/{renderer-Dh5WdraW.js.map → renderer-BcOaxCs6.js.map} +1 -1
  72. package/dist/cdn/chunks/{src-fyYLC_tY.js → src-B_ZRmuit.js} +63 -63
  73. package/dist/cdn/chunks/{src-fyYLC_tY.js.map → src-B_ZRmuit.js.map} +1 -1
  74. package/dist/cdn/chunks/{styles-NhU45rEI.js → styles-DDBCCJ-l.js} +675 -626
  75. package/dist/cdn/chunks/styles-DDBCCJ-l.js.map +1 -0
  76. package/dist/cdn/chunks/{tiptap-CfnwT9a8.js → tiptap-BAwu9VcJ.js} +4454 -3328
  77. package/dist/cdn/chunks/tiptap-BAwu9VcJ.js.map +1 -0
  78. package/dist/cdn/editor.css +1 -1
  79. package/dist/cdn/editor.js +104 -102
  80. package/dist/cdn/editor.js.map +1 -1
  81. package/dist/{check-B4oiQEsJ.js → check-BsNM6BDs.js} +1 -1
  82. package/dist/{chevron-down-BrL7CDST.js → chevron-down-fcsZ5DU7.js} +1 -1
  83. package/dist/{circle-alert-Ddf06I0D.js → circle-alert-BZTbwc-B.js} +1 -1
  84. package/dist/{clock-CbIkIHL5.js → clock-B7iQRubC.js} +1 -1
  85. package/dist/{createLucideIcon-Bn5l6hkC.js → createLucideIcon-C_fetdGM.js} +2 -2
  86. package/dist/{cdn/chunks/de-DIAGP7yH.js → de-BJMLpg_p.js} +4 -2
  87. package/dist/{dist-BRvZBY6r.js → dist-B4NkMBYc.js} +2 -2
  88. package/dist/{dist-DDB4TfTY.js → dist-BLcYl_de.js} +2 -2
  89. package/dist/{dist-DS9NXb20.js → dist-BOHAk4zI.js} +2 -2
  90. package/dist/dist-BsB4nPJD.js +5 -0
  91. package/dist/{dist-B6B8IO1W.js → dist-ByBVNmRN.js} +2 -2
  92. package/dist/dist-CD3wbUoR.js +5 -0
  93. package/dist/{dist-DbGsZrPu.js → dist-Cwl7XXr4.js} +806 -601
  94. package/dist/{dist-BShwEwPy.js → dist-Dem8ODLh.js} +1512 -1501
  95. package/dist/{dist-BdIM5Jt8.js → dist-Dhs3W2WW.js} +2 -2
  96. package/dist/{dist-ZiEahccA.js → dist-XdF11ZkX.js} +2 -2
  97. package/dist/{dist-BhZo8-eC.js → dist-c2sj5PQ5.js} +2 -2
  98. package/dist/{dist-Ctv43HTN.js → dist-eVlXvuKI.js} +3 -3
  99. package/dist/{cdn/chunks/en-nqIW8Q9W.js → en-DFMMw7SL.js} +4 -2
  100. package/dist/extensions-B2lSGCA8.js +1720 -0
  101. package/dist/{image-up-D3KvvHLf.js → image-up-1xrPPJYH.js} +1 -1
  102. package/dist/index.d.ts +61 -0
  103. package/dist/{info-RwcI2EUD.js → info-ByAFxArD.js} +1 -1
  104. package/dist/keys-DsRdOmg3.js +10 -0
  105. package/dist/{list-checks-ruqK9lCo.js → list-checks-CKUP4UZU.js} +1 -1
  106. package/dist/{loader-circle-D4SXJ8eQ.js → loader-circle-BuxX338d.js} +1 -1
  107. package/dist/{message-circle-p9UiFyS7.js → message-circle-nLwqegRi.js} +1 -1
  108. package/dist/{pt-BR-DCNnLLx9.js → pt-BR-C-9aWLlR.js} +4 -0
  109. package/dist/{refresh-cw-C8HbO4hg.js → refresh-cw-DAkD6iDI.js} +1 -1
  110. package/dist/{scan-line-CmPIMm63.js → scan-line-DEELRJJ5.js} +1 -1
  111. package/dist/{send-DacXlri3.js → send-DCMgrNT4.js} +1 -1
  112. package/dist/{shield-check-BdrHnTnJ.js → shield-check-BFtVr_ov.js} +1 -1
  113. package/dist/{sparkles-tT7wcus5.js → sparkles-CeYIQ5RJ.js} +1 -1
  114. package/dist/style.css +1 -1
  115. package/dist/{styles-BmZWc8sc.js → styles-DZcQGzsN.js} +735 -686
  116. package/dist/templatical-editor.js +118 -116
  117. package/dist/{text-align-start-DaSSBZVi.js → text-align-start-BsmIoqLS.js} +1 -1
  118. package/dist/{trash-2-B0uIJOwX.js → trash-2-C2S4-CIH.js} +1 -1
  119. package/dist/{triangle-alert-FLQWRf-c.js → triangle-alert-DMdedF6W.js} +1 -1
  120. package/dist/{useCloudI18n-Lh0xWlQ4.js → useCloudI18n-BEuiZdzs.js} +1 -1
  121. package/dist/{useEditorCore-CMukR8kX.js → useEditorCore-D00QzW07.js} +742 -763
  122. package/dist/{useI18n-CNEz8RK7.js → useI18n-DNspT6uw.js} +1 -1
  123. package/dist/{useMergeTag-C54tabTK.js → useMergeTag-abutjUud.js} +1 -1
  124. package/dist/{usePopoverRoot-dvg2XFmj.js → usePopoverRoot-DG3mlvd1.js} +1 -1
  125. package/dist/{x-BROzFhGs.js → x-_9jw816B.js} +1 -1
  126. package/package.json +25 -25
  127. package/dist/cdn/chunks/CloudEditor-gvOOuXac.js.map +0 -1
  128. package/dist/cdn/chunks/features-CxHQG9xr.js.map +0 -1
  129. package/dist/cdn/chunks/styles-NhU45rEI.js.map +0 -1
  130. package/dist/cdn/chunks/tiptap-CfnwT9a8.js.map +0 -1
  131. package/dist/dist-BVKpiz3S.js +0 -5
  132. package/dist/dist-BzeOnbU8.js +0 -5
  133. package/dist/extensions-CqrSpX_i.js +0 -806
  134. package/dist/keys-DSm2p8zn.js +0 -10
@@ -1,24 +1,24 @@
1
- import { A as e, B as t, D as n, E as r, F as i, G as a, J as o, L as s, M as c, N as l, O as u, Q as d, S as f, U as p, V as m, X as h, Y as g, _, at as v, b as y, c as b, d as x, et as S, f as C, h as w, it as T, j as E, k as ee, l as D, m as O, nt as k, o as te, ot as A, p as ne, q as re, rt as j, s as ie, st as M, v as N, w as P, x as ae, y as oe, z as se } from "./vue.runtime.esm-bundler-mPytWZFh.js";
2
- import { A as ce, E as le, M as ue, S as de, T as fe, _ as pe, a as me, b as he, c as ge, d as _e, f as ve, g as ye, h as be, j as xe, k as Se, l as Ce, m as we, o as Te, p as Ee, s as De, t as Oe, u as ke, v as Ae, x as je, y as Me } from "./dist-D6L_WdRL.js";
3
- import { c as Ne, i as Pe, l as Fe, n as Ie, o as Le, r as Re, u as ze } from "./dist-cT52Hh9L.js";
4
- import { A as Be, C as Ve, M as He, O as Ue, S as We, T as Ge, _ as Ke, a as qe, b as Je, d as Ye, f as Xe, g as Ze, h as Qe, i as $e, j as et, k as tt, m as nt, n as rt, o as it, p as at, s as ot, u as st, v as ct, w as lt, x as ut, y as dt } from "./keys-DSm2p8zn.js";
5
- import { t as ft } from "./useI18n-CNEz8RK7.js";
6
- import { t as F } from "./createLucideIcon-Bn5l6hkC.js";
7
- import { t as pt } from "./message-circle-p9UiFyS7.js";
8
- import { t as mt } from "./trash-2-B0uIJOwX.js";
9
- import { t as ht } from "./triangle-alert-FLQWRf-c.js";
10
- import { t as gt } from "./LoadingTrack-e67FA0NP.js";
11
- import { t as _t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
- import "./useCloudI18n-Lh0xWlQ4.js";
13
- import { t as vt } from "./useMergeTag-C54tabTK.js";
14
- import { t as yt } from "./useAliveFlag-DlVvpZxc.js";
1
+ import { A as e, B as t, D as n, E as r, F as i, G as a, J as o, L as s, M as c, N as l, O as u, Q as d, S as f, U as p, V as m, X as h, Y as g, _, at as v, b as y, c as b, d as x, et as S, f as C, h as w, it as T, j as E, k as ee, l as D, m as O, nt as k, o as te, ot as A, p as ne, q as re, rt as j, s as ie, st as M, tt as ae, v as N, w as oe, x as se, y as ce, z as le } from "./vue.runtime.esm-bundler-mPytWZFh.js";
2
+ import { A as ue, E as de, M as fe, S as pe, T as me, _ as he, a as ge, b as _e, c as ve, d as ye, f as be, g as xe, h as Se, j as Ce, k as we, l as Te, m as Ee, o as De, p as Oe, s as ke, t as Ae, u as je, v as Me, x as Ne, y as Pe } from "./dist-D6L_WdRL.js";
3
+ import { c as Fe, i as Ie, l as Le, n as Re, o as ze, r as Be, u as Ve } from "./dist-cT52Hh9L.js";
4
+ import { A as He, C as Ue, E as We, M as Ge, N as Ke, S as qe, T as Je, _ as Ye, a as Xe, b as Ze, d as Qe, f as $e, g as et, h as tt, i as nt, j as rt, k as it, m as at, n as ot, o as st, p as ct, s as lt, u as ut, v as dt, w as ft, x as pt, y as mt } from "./keys-DsRdOmg3.js";
5
+ import { t as ht } from "./useI18n-DNspT6uw.js";
6
+ import { t as P } from "./createLucideIcon-C_fetdGM.js";
7
+ import { t as gt } from "./message-circle-nLwqegRi.js";
8
+ import { t as _t } from "./trash-2-C2S4-CIH.js";
9
+ import { t as vt } from "./triangle-alert-DMdedF6W.js";
10
+ import { t as yt } from "./LoadingTrack-e67FA0NP.js";
11
+ import { t as bt } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
+ import "./useCloudI18n-BEuiZdzs.js";
13
+ import { t as xt } from "./useMergeTag-abutjUud.js";
14
+ import { t as St } from "./useAliveFlag-DlVvpZxc.js";
15
15
  //#region ../core/dist/index.js
16
- function bt(e) {
16
+ function Ct(e) {
17
17
  return e === "1" ? 1 : e === "3" ? 3 : 2;
18
18
  }
19
- function xt(e) {
19
+ function wt(e) {
20
20
  let t = o({
21
- content: e.content ?? ke(e.defaultFontFamily, e.templateDefaults),
21
+ content: e.content ?? je(e.defaultFontFamily, e.templateDefaults),
22
22
  selectedBlockId: null,
23
23
  viewport: "desktop",
24
24
  darkMode: !1,
@@ -106,7 +106,7 @@ function xt(e) {
106
106
  if (c(n)) return;
107
107
  let o = i(t.content.blocks, n);
108
108
  if (o && o.type === "section") {
109
- if (r < 0 || r >= bt(o.columns)) return;
109
+ if (r < 0 || r >= Ct(o.columns)) return;
110
110
  o.children[r] = o.children[r] || [];
111
111
  let t = o.children[r];
112
112
  a !== void 0 && a < t.length ? t.splice(a, 0, e) : t.push(e);
@@ -138,7 +138,7 @@ function xt(e) {
138
138
  let u;
139
139
  if (r) {
140
140
  let e = i(t.content.blocks, r);
141
- if (!e || e.type !== "section" || a < 0 || a >= bt(e.columns)) return;
141
+ if (!e || e.type !== "section" || a < 0 || a >= Ct(e.columns)) return;
142
142
  e.children[a] = e.children[a] || [], u = e.children[a];
143
143
  } else u = t.content.blocks;
144
144
  let [d] = o.blocks.splice(l, 1);
@@ -167,11 +167,11 @@ function xt(e) {
167
167
  findBlockLocation: l
168
168
  };
169
169
  }
170
- var St = 50, Ct = 300, wt = 1500;
171
- function Tt(e) {
172
- let { content: t, setContent: n, isRemoteOperation: r, maxSize: i = St } = e, a = h([]), o = h([]), s = h(!1), c = null, l = null, u = m(() => a.value.length > 0), d = m(() => o.value.length > 0);
170
+ var Tt = 50, Et = 300, Dt = 1500;
171
+ function Ot(e) {
172
+ let { content: t, setContent: n, isRemoteOperation: r, maxSize: i = Tt } = e, a = h([]), o = h([]), s = h(!1), c = null, l = null, u = m(() => a.value.length > 0), d = m(() => o.value.length > 0);
173
173
  function f() {
174
- return ue(t.value);
174
+ return fe(t.value);
175
175
  }
176
176
  function p(e) {
177
177
  a.value.push(e), a.value.length > i && a.value.splice(0, a.value.length - i);
@@ -187,21 +187,21 @@ function Tt(e) {
187
187
  if (l && l.blockId === e) {
188
188
  clearTimeout(l.timeoutId), l.timeoutId = setTimeout(() => {
189
189
  l = null;
190
- }, Ct);
190
+ }, Et);
191
191
  return;
192
192
  }
193
193
  g(), p(f()), o.value = [], l = {
194
194
  blockId: e,
195
195
  timeoutId: setTimeout(() => {
196
196
  l = null;
197
- }, Ct)
197
+ }, Et)
198
198
  };
199
199
  }
200
200
  }
201
201
  function y() {
202
202
  s.value = !0, c && clearTimeout(c), c = setTimeout(() => {
203
203
  s.value = !1, c = null;
204
- }, wt);
204
+ }, Dt);
205
205
  }
206
206
  function b() {
207
207
  if (a.value.length === 0) return;
@@ -233,33 +233,33 @@ function Tt(e) {
233
233
  destroy: C
234
234
  };
235
235
  }
236
- function Et(e) {
236
+ function kt(e) {
237
237
  e.type === "table" ? e.rows = e.rows.map((e) => ({
238
238
  ...e,
239
- id: de(),
239
+ id: pe(),
240
240
  cells: e.cells.map((e) => ({
241
241
  ...e,
242
- id: de()
242
+ id: pe()
243
243
  }))
244
244
  })) : e.type === "social" ? e.icons = e.icons.map((e) => ({
245
245
  ...e,
246
- id: de()
246
+ id: pe()
247
247
  })) : e.type === "menu" && (e.items = e.items.map((e) => ({
248
248
  ...e,
249
- id: de()
249
+ id: pe()
250
250
  })));
251
251
  }
252
- function Dt(e) {
252
+ function At(e) {
253
253
  let { addBlock: t, removeBlock: n, updateBlock: r, selectBlock: i, findBlockLocation: a } = e;
254
254
  function o(n, r, a) {
255
- let o = Te(n, e.blockDefaults);
255
+ let o = De(n, e.blockDefaults);
256
256
  return t(o, r, a), i(o.id), o;
257
257
  }
258
258
  function s(e, n, r) {
259
259
  let o = JSON.parse(JSON.stringify(e));
260
- if (o.id = de(), Et(o), o.type === "section" && (o.children = o.children.map((e) => e.map((e) => {
260
+ if (o.id = pe(), kt(o), o.type === "section" && (o.children = o.children.map((e) => e.map((e) => {
261
261
  let t = JSON.parse(JSON.stringify(e));
262
- return t.id = de(), Et(t), t;
262
+ return t.id = pe(), kt(t), t;
263
263
  }))), n !== void 0 || r !== void 0) t(o, n, r);
264
264
  else {
265
265
  let i = a?.(e.id) ?? null;
@@ -280,7 +280,7 @@ function Dt(e) {
280
280
  updateBlockProperty: l
281
281
  };
282
282
  }
283
- function Ot(e) {
283
+ function jt(e) {
284
284
  let { content: t, isDirty: n, onChange: r, debounce: i = 1e3, enabled: a = !0 } = e, o = null, s = !1;
285
285
  function c() {
286
286
  return typeof a == "function" ? a() : a;
@@ -316,7 +316,7 @@ function Ot(e) {
316
316
  destroy: h
317
317
  };
318
318
  }
319
- function kt(e) {
319
+ function Mt(e) {
320
320
  let t = o(/* @__PURE__ */ new Set()), n = m(() => t.size > 0);
321
321
  function r(e) {
322
322
  return t.has(e);
@@ -334,7 +334,7 @@ function kt(e) {
334
334
  hasHiddenBlocks: n
335
335
  };
336
336
  }
337
- function At(e) {
337
+ function Nt(e) {
338
338
  let t = h(!1), n = h(!1), r = m(() => !!e.definition.value?.dataSource), i = m(() => r.value && !e.block.value.dataSourceFetched);
339
339
  async function a() {
340
340
  let r = e.definition.value;
@@ -364,7 +364,7 @@ function At(e) {
364
364
  needsFetch: i
365
365
  };
366
366
  }
367
- function jt(e, t) {
367
+ function Pt(e, t) {
368
368
  let n = e.addBlock, r = e.removeBlock, i = e.moveBlock, a = e.updateBlock, o = e.updateSettings;
369
369
  e.addBlock = (r, i, a, o) => {
370
370
  i && e.isBlockLocked(i) || (t.record(), n(r, i, a, o));
@@ -380,26 +380,26 @@ function jt(e, t) {
380
380
  }
381
381
  //#endregion
382
382
  //#region src/utils/activeEditorTracker.ts
383
- var Mt = /* @__PURE__ */ new Set(), Nt = 0, Pt = 0;
384
- function Ft() {
385
- let e = ++Pt;
386
- return Mt.add(e), Nt === 0 && (Nt = e), {
383
+ var Ft = /* @__PURE__ */ new Set(), It = 0, Lt = 0;
384
+ function Rt() {
385
+ let e = ++Lt;
386
+ return Ft.add(e), It === 0 && (It = e), {
387
387
  id: e,
388
- isActive: () => Mt.size <= 1 || Nt === e,
388
+ isActive: () => Ft.size <= 1 || It === e,
389
389
  claim: () => {
390
- Nt = e;
390
+ It = e;
391
391
  },
392
392
  dispose: () => {
393
- if (Mt.delete(e), Nt === e) {
394
- let e = Array.from(Mt);
395
- Nt = e[e.length - 1] ?? 0;
393
+ if (Ft.delete(e), It === e) {
394
+ let e = Array.from(Ft);
395
+ It = e[e.length - 1] ?? 0;
396
396
  }
397
397
  }
398
398
  };
399
399
  }
400
400
  //#endregion
401
401
  //#region src/composables/useMergeTagPicker.ts
402
- function It() {
402
+ function zt() {
403
403
  let e = h(!1), t = h([]), n = null;
404
404
  function r(r) {
405
405
  if (n) {
@@ -429,17 +429,17 @@ function It() {
429
429
  }
430
430
  //#endregion
431
431
  //#region src/composables/useTemplateLint.ts
432
- function Lt(e) {
432
+ function Bt(e) {
433
433
  return e ? e.disabled === !0 ? !0 : e.accessibility === !1 && e.structure === !1 && e.links === !1 : !1;
434
434
  }
435
- function Rt(e) {
436
- let t = h([]), n = h(!1), r = h(!1), i = d(null), a = Lt(e.options), o = null, c = !1;
435
+ function Vt(e) {
436
+ let t = h([]), n = h(!1), r = h(!1), i = d(null), a = Bt(e.options), o = null, c = !1;
437
437
  a || l();
438
438
  async function l() {
439
439
  try {
440
440
  let t = await import("@templatical/quality");
441
441
  if (c) return;
442
- i.value = { lintTemplate: t.lintTemplate }, n.value = !0, u(), o = ze(e.content, u, {
442
+ i.value = { lintTemplate: t.lintTemplate }, n.value = !0, u(), o = Ve(e.content, u, {
443
443
  debounce: e.debounce ?? 500,
444
444
  deep: !0
445
445
  });
@@ -474,12 +474,12 @@ function Rt(e) {
474
474
  }
475
475
  //#endregion
476
476
  //#region src/utils/blockTypeLabels.ts
477
- function zt(e, t) {
477
+ function Ht(e, t) {
478
478
  return t.blocks[e] ?? e;
479
479
  }
480
480
  //#endregion
481
481
  //#region src/composables/useKeyboardReorder.ts
482
- function Bt(e, t) {
482
+ function Ut(e, t) {
483
483
  let n = h(null), r = h(""), i = null;
484
484
  function a(t) {
485
485
  let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
@@ -506,7 +506,7 @@ function Bt(e, t) {
506
506
  let r = a(n);
507
507
  if (!r) return "";
508
508
  let i = (r.sectionId ? s(r.sectionId, r.columnIndex ?? 0) : e.content.value.blocks)?.[r.index];
509
- return i ? zt(i.type, t.t) : "";
509
+ return i ? Ht(i.type, t.t) : "";
510
510
  }
511
511
  function s(t, n) {
512
512
  return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
@@ -575,13 +575,13 @@ function Bt(e, t) {
575
575
  }
576
576
  //#endregion
577
577
  //#region src/composables/useUiTheme.ts
578
- function Vt(e) {
579
- let t = Pe("(prefers-color-scheme: dark)");
578
+ function Wt(e) {
579
+ let t = Ie("(prefers-color-scheme: dark)");
580
580
  return { resolvedTheme: x(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
581
581
  }
582
582
  //#endregion
583
583
  //#region src/composables/useThemeStyles.ts
584
- var Ht = {
584
+ var Gt = {
585
585
  bg: "--tpl-bg",
586
586
  bgElevated: "--tpl-bg-elevated",
587
587
  bgHover: "--tpl-bg-hover",
@@ -605,10 +605,10 @@ var Ht = {
605
605
  dangerLight: "--tpl-danger-light",
606
606
  canvasBg: "--tpl-canvas-bg"
607
607
  };
608
- function Ut({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
608
+ function Kt({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
609
609
  return { themeStyles: x(() => {
610
610
  let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
611
- if (a) for (let [e, t] of Object.entries(Ht)) {
611
+ if (a) for (let [e, t] of Object.entries(Gt)) {
612
612
  let n = a[e];
613
613
  n && (r[t] = n);
614
614
  }
@@ -617,27 +617,27 @@ function Ut({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
617
617
  }
618
618
  //#endregion
619
619
  //#region src/utils/logger.ts
620
- var Wt = "[Templatical]";
621
- function Gt() {
620
+ var qt = "[Templatical]";
621
+ function Jt() {
622
622
  return typeof process < "u" && process.env.NODE_ENV === "production";
623
623
  }
624
- var Kt = {
624
+ var Yt = {
625
625
  warn(...e) {
626
- console.warn(Wt, ...e);
626
+ console.warn(qt, ...e);
627
627
  },
628
628
  error(...e) {
629
- console.error(Wt, ...e);
629
+ console.error(qt, ...e);
630
630
  },
631
631
  debug(...e) {
632
- Gt() || console.debug(Wt, ...e);
632
+ Jt() || console.debug(qt, ...e);
633
633
  },
634
634
  info(...e) {
635
- Gt() || console.info(Wt, ...e);
635
+ Jt() || console.info(qt, ...e);
636
636
  }
637
637
  };
638
638
  //#endregion
639
639
  //#region src/composables/useBlockRegistry.ts
640
- function qt() {
640
+ function Xt() {
641
641
  let e = d(/* @__PURE__ */ new Map());
642
642
  function t(t, n) {
643
643
  e.value.set(t, n), k(e);
@@ -645,14 +645,7 @@ function qt() {
645
645
  function n(t, n) {
646
646
  let r = `custom:${t.type}`, i = {
647
647
  component: n,
648
- createBlock: () => Ce(t),
649
- sidebarItem: {
650
- type: r,
651
- label: t.name,
652
- icon: t.icon,
653
- description: t.description,
654
- isCustom: !0
655
- },
648
+ createBlock: () => Te(t),
656
649
  definition: t
657
650
  };
658
651
  e.value.set(r, i), k(e);
@@ -667,21 +660,16 @@ function qt() {
667
660
  function i(t) {
668
661
  return e.value.get(t)?.createBlock();
669
662
  }
670
- function a() {
671
- let t = [], n = [];
672
- for (let r of e.value.values()) r.sidebarItem.isCustom ? n.push(r.sidebarItem) : t.push(r.sidebarItem);
673
- return [...t, ...n];
674
- }
675
- function o(t) {
663
+ function a(t) {
676
664
  let n = `custom:${t}`;
677
665
  return e.value.get(n)?.definition;
678
666
  }
679
- function s(e) {
667
+ function o(e) {
680
668
  return `<div style="color: var(--tpl-text-muted); padding: 16px; text-align: center; border: 1px dashed var(--tpl-border); border-radius: var(--tpl-radius-sm); font-family: var(--tpl-font-family); font-size: 14px;">${e}</div>`;
681
669
  }
682
- async function c(e) {
683
- let t = o(e.customType);
684
- if (!t) return s("Block definition not found");
670
+ async function s(e) {
671
+ let t = a(e.customType);
672
+ if (!t) return o("Block definition not found");
685
673
  try {
686
674
  let { Liquid: n } = await import("./liquid.browser--qtl1Fqy.js");
687
675
  return await new n({
@@ -689,10 +677,10 @@ function qt() {
689
677
  strictFilters: !1
690
678
  }).parseAndRender(t.template, e.fieldValues);
691
679
  } catch (t) {
692
- return Kt.error(`Failed to render custom block "${e.customType}":`, t), s(`Render error: ${e.customType}`);
680
+ return Yt.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
693
681
  }
694
682
  }
695
- function l(t) {
683
+ function c(t) {
696
684
  return e.value.has(t);
697
685
  }
698
686
  return {
@@ -700,17 +688,16 @@ function qt() {
700
688
  registerCustom: n,
701
689
  getComponent: r,
702
690
  createBlock: i,
703
- getSidebarItems: a,
704
- getDefinition: o,
705
- renderCustomBlock: c,
706
- isRegistered: l
691
+ getDefinition: a,
692
+ renderCustomBlock: s,
693
+ isRegistered: c
707
694
  };
708
695
  }
709
696
  //#endregion
710
697
  //#region src/composables/useCustomBlockStylesheets.ts
711
- function Jt(e, t) {
698
+ function Zt(e, t) {
712
699
  return x(() => {
713
- let n = Yt(e.value.blocks);
700
+ let n = Qt(e.value.blocks);
714
701
  if (n.size === 0) return [];
715
702
  let r = /* @__PURE__ */ new Set(), i = [];
716
703
  for (let e of n) {
@@ -722,109 +709,91 @@ function Jt(e, t) {
722
709
  return i;
723
710
  });
724
711
  }
725
- function Yt(e) {
712
+ function Qt(e) {
726
713
  let t = /* @__PURE__ */ new Set();
727
- return Xt(e, t), t;
714
+ return $t(e, t), t;
728
715
  }
729
- function Xt(e, t) {
716
+ function $t(e, t) {
730
717
  for (let n of e) {
731
- if (le(n)) {
718
+ if (de(n)) {
732
719
  t.add(n.customType);
733
720
  continue;
734
721
  }
735
722
  if (n.type === "section") {
736
723
  let e = n.children;
737
724
  if (!e) continue;
738
- for (let n of e) Xt(n, t);
725
+ for (let n of e) $t(n, t);
739
726
  }
740
727
  }
741
728
  }
742
729
  //#endregion
743
730
  //#region src/utils/registerBuiltInBlocks.ts
744
- var Zt = [
731
+ var en = [
745
732
  {
746
733
  type: "section",
747
- label: "Section",
748
- createBlock: ye
734
+ createBlock: xe
749
735
  },
750
736
  {
751
737
  type: "title",
752
- label: "Title",
753
- createBlock: he
738
+ createBlock: _e
754
739
  },
755
740
  {
756
741
  type: "paragraph",
757
- label: "Paragraph",
758
- createBlock: be
742
+ createBlock: Se
759
743
  },
760
744
  {
761
745
  type: "image",
762
- label: "Image",
763
- createBlock: Ee
746
+ createBlock: Oe
764
747
  },
765
748
  {
766
749
  type: "button",
767
- label: "Button",
768
- createBlock: De
750
+ createBlock: ke
769
751
  },
770
752
  {
771
753
  type: "divider",
772
- label: "Divider",
773
- createBlock: _e
754
+ createBlock: ye
774
755
  },
775
756
  {
776
757
  type: "video",
777
- label: "Video",
778
- createBlock: je
758
+ createBlock: Ne
779
759
  },
780
760
  {
781
761
  type: "social",
782
- label: "Social",
783
- createBlock: pe
762
+ createBlock: he
784
763
  },
785
764
  {
786
765
  type: "menu",
787
- label: "Menu",
788
- createBlock: we
766
+ createBlock: Ee
789
767
  },
790
768
  {
791
769
  type: "table",
792
- label: "Table",
793
- createBlock: Me
770
+ createBlock: Pe
794
771
  },
795
772
  {
796
773
  type: "spacer",
797
- label: "Spacer",
798
- createBlock: Ae
774
+ createBlock: Me
799
775
  },
800
776
  {
801
777
  type: "html",
802
- label: "HTML",
803
- createBlock: ve
778
+ createBlock: be
804
779
  },
805
780
  {
806
781
  type: "countdown",
807
- label: "Countdown",
808
- createBlock: ge
782
+ createBlock: ve
809
783
  }
810
784
  ];
811
- function Qt(e, t) {
812
- for (let n of Zt) {
785
+ function tn(e, t) {
786
+ for (let n of en) {
813
787
  let r = t[n.type];
814
788
  r && e.registerBuiltIn(n.type, {
815
789
  component: r,
816
- createBlock: n.createBlock,
817
- sidebarItem: {
818
- type: n.type,
819
- label: n.label,
820
- isCustom: !1
821
- }
790
+ createBlock: n.createBlock
822
791
  });
823
792
  }
824
793
  }
825
794
  //#endregion
826
795
  //#region src/utils/keyboardShortcuts.ts
827
- function $t(e) {
796
+ function nn(e) {
828
797
  for (let t of e.composedPath()) {
829
798
  if (!(t instanceof HTMLElement)) continue;
830
799
  if (t.isContentEditable) return !0;
@@ -833,14 +802,14 @@ function $t(e) {
833
802
  }
834
803
  return !1;
835
804
  }
836
- function en(e, t) {
805
+ function rn(e, t) {
837
806
  let n = e.metaKey || e.ctrlKey;
838
807
  if (n && e.key.toLowerCase() === "s") {
839
808
  e.preventDefault(), t.onSave?.();
840
809
  return;
841
810
  }
842
811
  if (n && e.key.toLowerCase() === "z") {
843
- if ($t(e)) return;
812
+ if (nn(e)) return;
844
813
  e.preventDefault(), e.shiftKey ? t.history.redo() : (t.onBeforeUndo?.(), t.history.undo());
845
814
  return;
846
815
  }
@@ -848,11 +817,11 @@ function en(e, t) {
848
817
  t.selectBlock(null);
849
818
  return;
850
819
  }
851
- (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !$t(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
820
+ (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !nn(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
852
821
  }
853
822
  //#endregion
854
823
  //#region src/components/blocks/ButtonBlock.vue?vue&type=script&setup=true&lang.ts
855
- var tn = { class: "tpl:text-center" }, nn = ["href"], rn = /* @__PURE__ */ y({
824
+ var an = { class: "tpl:text-center" }, on = ["href"], sn = /* @__PURE__ */ y({
856
825
  __name: "ButtonBlock",
857
826
  props: {
858
827
  block: {},
@@ -873,17 +842,17 @@ var tn = { class: "tpl:text-center" }, nn = ["href"], rn = /* @__PURE__ */ y({
873
842
  };
874
843
  return n.block.fontFamily && (e.fontFamily = n.block.fontFamily), e;
875
844
  });
876
- return (n, i) => (e(), w("div", tn, [C("a", {
845
+ return (n, i) => (e(), w("div", an, [C("a", {
877
846
  href: t.block.url || "#",
878
847
  style: A(r.value),
879
848
  class: "tpl:cursor-default",
880
849
  onClick: i[0] ||= b(() => {}, ["prevent"])
881
- }, M(t.block.text), 13, nn)]));
850
+ }, M(t.block.text), 13, on)]));
882
851
  }
883
- }), an = F("bookmark", [["path", {
852
+ }), cn = P("bookmark", [["path", {
884
853
  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",
885
854
  key: "oz39mx"
886
- }]]), on = F("box", [
855
+ }]]), ln = P("box", [
887
856
  ["path", {
888
857
  d: "M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",
889
858
  key: "hh9hay"
@@ -896,13 +865,13 @@ var tn = { class: "tpl:text-center" }, nn = ["href"], rn = /* @__PURE__ */ y({
896
865
  d: "M12 22V12",
897
866
  key: "d0xqtd"
898
867
  }]
899
- ]), sn = F("code", [["path", {
868
+ ]), un = P("code", [["path", {
900
869
  d: "m16 18 6-6-6-6",
901
870
  key: "eg8j8"
902
871
  }], ["path", {
903
872
  d: "m8 6-6 6 6 6",
904
873
  key: "ppft3o"
905
- }]]), cn = F("copy", [["rect", {
874
+ }]]), dn = P("copy", [["rect", {
906
875
  width: "14",
907
876
  height: "14",
908
877
  x: "8",
@@ -913,7 +882,7 @@ var tn = { class: "tpl:text-center" }, nn = ["href"], rn = /* @__PURE__ */ y({
913
882
  }], ["path", {
914
883
  d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
915
884
  key: "zix9uf"
916
- }]]), ln = F("eye-off", [
885
+ }]]), fn = P("eye-off", [
917
886
  ["path", {
918
887
  d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",
919
888
  key: "ct8e1f"
@@ -930,10 +899,10 @@ var tn = { class: "tpl:text-center" }, nn = ["href"], rn = /* @__PURE__ */ y({
930
899
  d: "m2 2 20 20",
931
900
  key: "1ooewy"
932
901
  }]
933
- ]), un = F("funnel", [["path", {
902
+ ]), pn = P("funnel", [["path", {
934
903
  d: "M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",
935
904
  key: "sc7q7i"
936
- }]]), dn = F("grip-vertical", [
905
+ }]]), mn = P("grip-vertical", [
937
906
  ["circle", {
938
907
  cx: "9",
939
908
  cy: "12",
@@ -970,7 +939,7 @@ var tn = { class: "tpl:text-center" }, nn = ["href"], rn = /* @__PURE__ */ y({
970
939
  r: "1",
971
940
  key: "f4zoj3"
972
941
  }]
973
- ]), fn = F("image", [
942
+ ]), hn = P("image", [
974
943
  ["rect", {
975
944
  width: "18",
976
945
  height: "18",
@@ -990,13 +959,13 @@ var tn = { class: "tpl:text-center" }, nn = ["href"], rn = /* @__PURE__ */ y({
990
959
  d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",
991
960
  key: "1xmnt7"
992
961
  }]
993
- ]), pn = F("navigation", [["polygon", {
962
+ ]), gn = P("navigation", [["polygon", {
994
963
  points: "3 11 22 2 13 21 11 13 3 11",
995
964
  key: "1ltx0t"
996
- }]]), mn = F("puzzle", [["path", {
965
+ }]]), _n = P("puzzle", [["path", {
997
966
  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",
998
967
  key: "w46dr5"
999
- }]]), hn = F("share-2", [
968
+ }]]), vn = P("share-2", [
1000
969
  ["circle", {
1001
970
  cx: "18",
1002
971
  cy: "5",
@@ -1029,7 +998,7 @@ var tn = { class: "tpl:text-center" }, nn = ["href"], rn = /* @__PURE__ */ y({
1029
998
  y2: "10.49",
1030
999
  key: "1n3mei"
1031
1000
  }]
1032
- ]), gn = F("table", [
1001
+ ]), yn = P("table", [
1033
1002
  ["path", {
1034
1003
  d: "M12 3v18",
1035
1004
  key: "108xh3"
@@ -1050,7 +1019,7 @@ var tn = { class: "tpl:text-center" }, nn = ["href"], rn = /* @__PURE__ */ y({
1050
1019
  d: "M3 15h18",
1051
1020
  key: "5xshup"
1052
1021
  }]
1053
- ]), _n = F("video", [["path", {
1022
+ ]), bn = P("video", [["path", {
1054
1023
  d: "m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",
1055
1024
  key: "ftymec"
1056
1025
  }], ["rect", {
@@ -1060,11 +1029,11 @@ var tn = { class: "tpl:text-center" }, nn = ["href"], rn = /* @__PURE__ */ y({
1060
1029
  height: "12",
1061
1030
  rx: "2",
1062
1031
  key: "158x01"
1063
- }]]), vn = ["innerHTML"], yn = [
1032
+ }]]), xn = ["innerHTML"], Sn = [
1064
1033
  "src",
1065
1034
  "width",
1066
1035
  "height"
1067
- ], bn = /* @__PURE__ */ y({
1036
+ ], Cn = /* @__PURE__ */ y({
1068
1037
  __name: "CustomBlockIcon",
1069
1038
  props: {
1070
1039
  icon: {},
@@ -1080,14 +1049,14 @@ var tn = { class: "tpl:text-center" }, nn = ["href"], rn = /* @__PURE__ */ y({
1080
1049
  height: `${r.value}px`
1081
1050
  }),
1082
1051
  innerHTML: t.icon
1083
- }, null, 12, vn)) : a.value ? (e(), w("img", {
1052
+ }, null, 12, xn)) : a.value ? (e(), w("img", {
1084
1053
  key: 1,
1085
1054
  src: t.icon,
1086
1055
  width: r.value,
1087
1056
  height: r.value,
1088
1057
  class: "tpl:inline-block",
1089
1058
  alt: ""
1090
- }, null, 8, yn)) : (e(), ne(j(on), {
1059
+ }, null, 8, Sn)) : (e(), ne(j(ln), {
1091
1060
  key: 2,
1092
1061
  size: r.value,
1093
1062
  "stroke-width": 1.5
@@ -1096,16 +1065,16 @@ var tn = { class: "tpl:text-center" }, nn = ["href"], rn = /* @__PURE__ */ y({
1096
1065
  });
1097
1066
  //#endregion
1098
1067
  //#region src/composables/useEditorRoot.ts
1099
- function xn() {
1100
- return P(Qe, document) ?? document;
1068
+ function wn() {
1069
+ return oe(tt, document) ?? document;
1101
1070
  }
1102
1071
  //#endregion
1103
1072
  //#region src/composables/useFocusTrap.ts
1104
- var Sn = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
1105
- function Cn(e, t) {
1106
- let n = xn(), r = null, i = null, a = null;
1073
+ var Tn = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
1074
+ function En(e, t) {
1075
+ let n = wn(), r = null, i = null, a = null;
1107
1076
  function o() {
1108
- return e.value ? Array.from(e.value.querySelectorAll(Sn)).filter((e) => e.offsetParent !== null) : [];
1077
+ return e.value ? Array.from(e.value.querySelectorAll(Tn)).filter((e) => e.offsetParent !== null) : [];
1109
1078
  }
1110
1079
  function c(e) {
1111
1080
  if (e.key !== "Tab") return;
@@ -1120,7 +1089,7 @@ function Cn(e, t) {
1120
1089
  a = null;
1121
1090
  let t = o();
1122
1091
  t.length > 0 && (e.value?.querySelector("[autofocus], input:not([disabled])") ?? t[0]).focus();
1123
- }), i = Re(e, "keydown", c);
1092
+ }), i = Be(e, "keydown", c);
1124
1093
  }
1125
1094
  function u(e = {}) {
1126
1095
  let t = e.restoreFocus !== !1;
@@ -1135,8 +1104,8 @@ function Cn(e, t) {
1135
1104
  }
1136
1105
  //#endregion
1137
1106
  //#region src/composables/useEmoji.ts
1138
- function wn() {
1139
- let [e, t] = Fe(!1), n = d([]), r = !1;
1107
+ function Dn() {
1108
+ let [e, t] = Le(!1), n = d([]), r = !1;
1140
1109
  re(() => {
1141
1110
  r = !0;
1142
1111
  }), s(e, async (e) => {
@@ -1161,7 +1130,7 @@ function wn() {
1161
1130
  }
1162
1131
  //#endregion
1163
1132
  //#region src/composables/useDragDrop.ts
1164
- function Tn(e) {
1133
+ function On(e) {
1165
1134
  let { onBlockMove: t, onBlockAdd: n } = e, r = h(!1), i = h(null), a = h(null);
1166
1135
  function o(e) {
1167
1136
  r.value = !0, i.value = e;
@@ -1211,7 +1180,7 @@ function Tn(e) {
1211
1180
  }
1212
1181
  //#endregion
1213
1182
  //#region src/composables/useFonts.ts
1214
- var En = [
1183
+ var kn = [
1215
1184
  {
1216
1185
  value: "Arial",
1217
1186
  label: "Arial"
@@ -1240,7 +1209,7 @@ var En = [
1240
1209
  value: "Courier New",
1241
1210
  label: "Courier New"
1242
1211
  }
1243
- ], Dn = {
1212
+ ], An = {
1244
1213
  arial: "Arial, sans-serif",
1245
1214
  helvetica: "Helvetica, sans-serif",
1246
1215
  georgia: "Georgia, serif",
@@ -1248,14 +1217,14 @@ var En = [
1248
1217
  verdana: "Verdana, sans-serif",
1249
1218
  "trebuchet ms": "'Trebuchet MS', sans-serif",
1250
1219
  "courier new": "'Courier New', monospace"
1251
- }, On = "Arial, sans-serif";
1252
- function kn(e) {
1253
- let t = h(e?.customFonts ?? []), n = h(!0), r = h(!1), i = x(() => e?.defaultFallback ?? On);
1220
+ }, jn = "Arial, sans-serif";
1221
+ function Mn(e) {
1222
+ let t = h(e?.customFonts ?? []), n = h(!0), r = h(!1), i = x(() => e?.defaultFallback ?? jn);
1254
1223
  function a(e) {
1255
1224
  n.value = e;
1256
1225
  }
1257
1226
  let o = x(() => {
1258
- let e = [...En];
1227
+ let e = [...kn];
1259
1228
  if (!n.value) return e.sort((e, t) => e.label.localeCompare(t.label));
1260
1229
  let r = t.value.map((e) => ({
1261
1230
  value: e.name,
@@ -1268,17 +1237,17 @@ function kn(e) {
1268
1237
  return o.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
1269
1238
  }
1270
1239
  function c(e) {
1271
- return En.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
1240
+ return kn.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
1272
1241
  }
1273
1242
  function l() {
1274
1243
  if (e?.defaultFont) {
1275
- if (!n.value && !c(e.defaultFont)) return On;
1244
+ if (!n.value && !c(e.defaultFont)) return jn;
1276
1245
  if (s(e.defaultFont)) {
1277
1246
  let t = o.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
1278
1247
  if (t) return t.value;
1279
1248
  }
1280
1249
  }
1281
- return On;
1250
+ return jn;
1282
1251
  }
1283
1252
  let u = x(() => l());
1284
1253
  function d(e) {
@@ -1288,7 +1257,7 @@ function kn(e) {
1288
1257
  let e = n.fallback ?? i.value;
1289
1258
  return `'${n.name}', ${e}`;
1290
1259
  }
1291
- return Dn[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${i.value}`);
1260
+ return An[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${i.value}`);
1292
1261
  }
1293
1262
  let f = [], m = !1;
1294
1263
  async function g() {
@@ -1304,7 +1273,7 @@ function kn(e) {
1304
1273
  t.onload = () => n(), t.onerror = () => r(/* @__PURE__ */ Error(`Failed to load font: ${e.name}`)), document.head.appendChild(t);
1305
1274
  });
1306
1275
  } catch (t) {
1307
- Kt.warn(`Failed to load custom font "${e.name}":`, t);
1276
+ Yt.warn(`Failed to load custom font "${e.name}":`, t);
1308
1277
  }
1309
1278
  });
1310
1279
  await Promise.allSettled(e), !m && (r.value = !0);
@@ -1331,9 +1300,9 @@ function kn(e) {
1331
1300
  }
1332
1301
  //#endregion
1333
1302
  //#region src/composables/useRichTextLinkDialog.ts
1334
- function An(e) {
1303
+ function Nn(e) {
1335
1304
  let t = h(!1), n = h(""), r = h(null);
1336
- Cn(r, t);
1305
+ En(r, t);
1337
1306
  function i() {
1338
1307
  n.value = e.value?.getAttributes("link").href || "", t.value = !0;
1339
1308
  }
@@ -1384,8 +1353,8 @@ function An(e) {
1384
1353
  }
1385
1354
  //#endregion
1386
1355
  //#region src/composables/useRichTextEditor.ts
1387
- function jn(e) {
1388
- let t = P(nt, null), { mergeTags: r, canRequestMergeTag: i, isRequesting: o, requestMergeTag: c, syntax: l, autocomplete: u } = vt(), f = P(Be, null), p = (a(f) ? f.value : f)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", m = fe(l), g = d(null), { showLinkDialog: _, linkUrl: v, linkDialogRef: y, openLinkDialog: b, insertLink: x, removeLink: S, closeLinkDialog: C, handleLinkKeydown: w } = An(g), { start: T, stop: E } = Ne(() => g.value?.commands.focus("end"), 0, { immediate: !1 }), ee = d(null), D = h(!0), O = h(null), k = !1;
1356
+ function Pn(e) {
1357
+ let t = oe(at, null), { mergeTags: r, canRequestMergeTag: i, isRequesting: o, requestMergeTag: c, syntax: l, autocomplete: u } = xt(), f = oe(rt, null), p = (a(f) ? f.value : f)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", m = me(l), g = d(null), { showLinkDialog: _, linkUrl: v, linkDialogRef: y, openLinkDialog: b, insertLink: x, removeLink: S, closeLinkDialog: C, handleLinkKeydown: w } = Nn(g), { start: T, stop: E } = Fe(() => g.value?.commands.focus("end"), 0, { immediate: !1 }), ee = d(null), D = h(!0), O = h(null), k = !1;
1389
1358
  async function te() {
1390
1359
  O.value = null, D.value = !0;
1391
1360
  try {
@@ -1415,7 +1384,7 @@ function jn(e) {
1415
1384
  g.value = s, D.value = !1, T();
1416
1385
  } catch (t) {
1417
1386
  if (k) return;
1418
- Kt.error(`[${e.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, t), O.value = t instanceof Error ? t.message : "Failed to load editor", D.value = !1;
1387
+ Yt.error(`[${e.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, t), O.value = t instanceof Error ? t.message : "Failed to load editor", D.value = !1;
1419
1388
  }
1420
1389
  }
1421
1390
  function A() {
@@ -1430,7 +1399,7 @@ function jn(e) {
1430
1399
  let n = t.composedPath().find((e) => e instanceof HTMLElement);
1431
1400
  n && (e.onClickOutsideSideEffect?.(n), !(n.closest(".tpl-text-editor-wrapper") || n.closest(".tpl-text-toolbar") || n.closest(".tpl-link-dialog")) && e.onDone());
1432
1401
  }
1433
- Re(document, "mousedown", re), n(() => {
1402
+ Be(document, "mousedown", re), n(() => {
1434
1403
  k = !0, ne(), E(), g.value?.destroy();
1435
1404
  });
1436
1405
  async function j() {
@@ -1462,21 +1431,31 @@ function jn(e) {
1462
1431
  };
1463
1432
  }
1464
1433
  //#endregion
1434
+ //#region src/composables/useSmallScreenNotice.ts
1435
+ var Fn = "(max-width: 767px)";
1436
+ function In(e) {
1437
+ let t = Ie(Fn);
1438
+ return {
1439
+ isSmallScreen: t,
1440
+ showNotice: x(() => (ae(e) ?? !0) && t.value)
1441
+ };
1442
+ }
1443
+ //#endregion
1465
1444
  //#region src/components/blocks/CustomBlock.vue?vue&type=script&setup=true&lang.ts
1466
- var Mn = { class: "tpl:w-full" }, Nn = {
1445
+ var Ln = { class: "tpl:w-full" }, Rn = {
1467
1446
  key: 0,
1468
1447
  class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-warning)] tpl:bg-[var(--tpl-warning-light)]"
1469
- }, Pn = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Fn = {
1448
+ }, zn = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Bn = {
1470
1449
  key: 1,
1471
1450
  class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-danger)] tpl:bg-[var(--tpl-danger-light)]"
1472
- }, In = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ln = {
1451
+ }, Vn = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Hn = {
1473
1452
  key: 2,
1474
1453
  class: "tpl:relative"
1475
- }, Rn = ["innerHTML"], zn = {
1454
+ }, Un = ["innerHTML"], Wn = {
1476
1455
  key: 0,
1477
1456
  class: "tpl:absolute tpl:inset-0 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:rounded tpl:backdrop-blur-[2px]",
1478
1457
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
1479
- }, Bn = /* @__PURE__ */ y({
1458
+ }, Gn = /* @__PURE__ */ y({
1480
1459
  __name: "CustomBlock",
1481
1460
  props: {
1482
1461
  block: {},
@@ -1484,7 +1463,7 @@ var Mn = { class: "tpl:w-full" }, Nn = {
1484
1463
  },
1485
1464
  emits: ["fetchData"],
1486
1465
  setup(t, { emit: n }) {
1487
- let r = t, i = n, { t: a } = ft(), o = P(it, null), c = h(""), l = h(!1), d = x(() => o?.getDefinition(r.block.customType)), f = x(() => !!d.value), { isFetching: p, fetch: m, needsFetch: g, hasDataSource: v } = At({
1466
+ let r = t, i = n, { t: a } = ht(), o = oe(st, null), c = h(""), l = h(!1), d = x(() => o?.getDefinition(r.block.customType)), f = x(() => !!d.value), { isFetching: p, fetch: m, needsFetch: g, hasDataSource: v } = Nt({
1488
1467
  definition: d,
1489
1468
  block: x(() => r.block),
1490
1469
  onUpdate: (e, t) => {
@@ -1505,15 +1484,15 @@ var Mn = { class: "tpl:w-full" }, Nn = {
1505
1484
  }
1506
1485
  }
1507
1486
  }
1508
- let S = Le(y, 150);
1487
+ let S = ze(y, 150);
1509
1488
  return u(() => {
1510
1489
  y();
1511
1490
  }), s(() => r.block.fieldValues, () => {
1512
1491
  S();
1513
- }, { deep: !0 }), (t, n) => (e(), w("div", Mn, [f.value ? l.value ? (e(), w("div", Fn, [N(j(ht), {
1492
+ }, { deep: !0 }), (t, n) => (e(), w("div", Ln, [f.value ? l.value ? (e(), w("div", Bn, [N(j(vt), {
1514
1493
  size: 24,
1515
1494
  class: "tpl:text-[var(--tpl-danger)]"
1516
- }), C("span", In, M(j(a).customBlocks.renderError), 1)])) : (e(), w("div", Ln, [C("div", { innerHTML: c.value }, null, 8, Rn), j(v) && j(g) ? (e(), w("div", zn, [j(p) ? (e(), ne(gt, {
1495
+ }), C("span", Vn, M(j(a).customBlocks.renderError), 1)])) : (e(), w("div", Hn, [C("div", { innerHTML: c.value }, null, 8, Un), j(v) && j(g) ? (e(), w("div", Wn, [j(p) ? (e(), ne(yt, {
1517
1496
  key: 1,
1518
1497
  class: "tpl:w-48"
1519
1498
  })) : (e(), w("button", {
@@ -1521,16 +1500,16 @@ var Mn = { class: "tpl:w-full" }, Nn = {
1521
1500
  type: "button",
1522
1501
  class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2 tpl:text-sm tpl:font-semibold tpl:shadow-sm tpl:transition-all tpl:duration-150 hover:tpl:border-[var(--tpl-primary)] hover:tpl:shadow-md tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
1523
1502
  onClick: n[0] ||= b((...e) => j(m) && j(m)(...e), ["stop"])
1524
- }, [d.value?.icon ? (e(), ne(bn, {
1503
+ }, [d.value?.icon ? (e(), ne(Cn, {
1525
1504
  key: 0,
1526
1505
  icon: d.value.icon,
1527
1506
  size: 16
1528
- }, null, 8, ["icon"])) : O("", !0), _(" " + M(d.value?.dataSource?.label || j(a).customBlocks.dataSource.fetchButton), 1)]))])) : O("", !0)])) : (e(), w("div", Nn, [N(j(mn), {
1507
+ }, null, 8, ["icon"])) : O("", !0), _(" " + M(d.value?.dataSource?.label || j(a).customBlocks.dataSource.fetchButton), 1)]))])) : O("", !0)])) : (e(), w("div", Rn, [N(j(_n), {
1529
1508
  size: 24,
1530
1509
  class: "tpl:text-[var(--tpl-warning)]"
1531
- }), C("span", Pn, M(j(a).customBlocks.definitionNotFound), 1)]))]));
1510
+ }), C("span", zn, M(j(a).customBlocks.definitionNotFound), 1)]))]));
1532
1511
  }
1533
- }), Vn = { class: "tpl:w-full" }, Hn = /* @__PURE__ */ y({
1512
+ }), Kn = { class: "tpl:w-full" }, qn = /* @__PURE__ */ y({
1534
1513
  __name: "DividerBlock",
1535
1514
  props: {
1536
1515
  block: {},
@@ -1542,37 +1521,37 @@ var Mn = { class: "tpl:w-full" }, Nn = {
1542
1521
  width: n.block.width === "full" ? "100%" : `${n.block.width}px`,
1543
1522
  margin: n.block.width === "full" ? "0" : "0 auto"
1544
1523
  }));
1545
- return (t, n) => (e(), w("div", Vn, [C("hr", {
1524
+ return (t, n) => (e(), w("div", Kn, [C("hr", {
1546
1525
  class: "tpl:m-0 tpl:border-none",
1547
1526
  style: A(r.value)
1548
1527
  }, null, 4)]));
1549
1528
  }
1550
- }), Un = { class: "tpl:w-full" }, Wn = { class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)]" }, Gn = {
1529
+ }), Jn = { class: "tpl:w-full" }, Yn = { class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)]" }, Xn = {
1551
1530
  key: 0,
1552
1531
  class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
1553
- }, Kn = {
1532
+ }, Zn = {
1554
1533
  key: 1,
1555
1534
  class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
1556
- }, qn = /* @__PURE__ */ y({
1535
+ }, Qn = /* @__PURE__ */ y({
1557
1536
  __name: "HtmlBlock",
1558
1537
  props: {
1559
1538
  block: {},
1560
1539
  viewport: {}
1561
1540
  },
1562
1541
  setup(t) {
1563
- let n = t, { t: r } = ft(), i = x(() => n.block.content.trim().length > 0);
1564
- return (t, n) => (e(), w("div", Un, [C("div", Wn, [N(j(sn), {
1542
+ let n = t, { t: r } = ht(), i = x(() => n.block.content.trim().length > 0);
1543
+ return (t, n) => (e(), w("div", Jn, [C("div", Yn, [N(j(un), {
1565
1544
  size: 24,
1566
1545
  class: "tpl:text-[var(--tpl-text-dim)]"
1567
- }), i.value ? (e(), w("span", Gn, M(j(r).html.preview), 1)) : (e(), w("span", Kn, M(j(r).html.empty), 1))])]));
1546
+ }), i.value ? (e(), w("span", Xn, M(j(r).html.preview), 1)) : (e(), w("span", Zn, M(j(r).html.empty), 1))])]));
1568
1547
  }
1569
- }), Jn = ["href"], Yn = ["src", "alt"], Xn = ["src", "alt"], Zn = {
1548
+ }), $n = ["href"], er = ["src", "alt"], tr = ["src", "alt"], nr = {
1570
1549
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
1571
1550
  style: { opacity: "0.7" }
1572
- }, Qn = ["href"], $n = ["src", "alt"], er = ["src", "alt"], tr = {
1551
+ }, rr = ["href"], ir = ["src", "alt"], ar = ["src", "alt"], or = {
1573
1552
  key: 3,
1574
1553
  class: "tpl:flex tpl:min-h-[100px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
1575
- }, nr = ["aria-label"], rr = { key: 1 }, ir = /* @__PURE__ */ y({
1554
+ }, sr = ["aria-label"], cr = { key: 1 }, lr = /* @__PURE__ */ y({
1576
1555
  __name: "ImageBlock",
1577
1556
  props: {
1578
1557
  block: {},
@@ -1580,7 +1559,7 @@ var Mn = { class: "tpl:w-full" }, Nn = {
1580
1559
  },
1581
1560
  emits: ["update"],
1582
1561
  setup(t, { emit: n }) {
1583
- let r = t, i = n, { t: a } = ft(), { syntax: o } = vt(), s = P(Ve, null), c = x(() => !!s), l = yt();
1562
+ let r = t, i = n, { t: a } = ht(), { syntax: o } = xt(), s = oe(Ue, null), c = x(() => !!s), l = St();
1584
1563
  async function u() {
1585
1564
  let e = await s?.({ accept: ["images"] });
1586
1565
  if (l.alive && e) {
@@ -1597,7 +1576,7 @@ var Mn = { class: "tpl:w-full" }, Nn = {
1597
1576
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
1598
1577
  marginRight: e === "center" ? "auto" : void 0
1599
1578
  };
1600
- }), p = x(() => me(r.block.src, o));
1579
+ }), p = x(() => ge(r.block.src, o));
1601
1580
  return (n, r) => (e(), w("div", {
1602
1581
  class: "tpl:w-full",
1603
1582
  style: A(d.value)
@@ -1613,22 +1592,22 @@ var Mn = { class: "tpl:w-full" }, Nn = {
1613
1592
  src: t.block.placeholderUrl,
1614
1593
  alt: t.block.alt || j(a).image.altTextPlaceholder,
1615
1594
  style: A(f.value)
1616
- }, null, 12, Yn)], 8, Jn)) : (e(), w("img", {
1595
+ }, null, 12, er)], 8, $n)) : (e(), w("img", {
1617
1596
  key: 1,
1618
1597
  class: "tpl:border-0",
1619
1598
  src: t.block.placeholderUrl,
1620
1599
  alt: t.block.alt,
1621
1600
  style: A(f.value)
1622
- }, null, 12, Xn))], 64)) : t.block.src && p.value ? (e(), w("div", {
1601
+ }, null, 12, tr))], 64)) : t.block.src && p.value ? (e(), w("div", {
1623
1602
  key: 1,
1624
1603
  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)]",
1625
1604
  style: A([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, f.value])
1626
- }, [N(j(fn), {
1605
+ }, [N(j(hn), {
1627
1606
  size: 32,
1628
1607
  "stroke-width": 1.5,
1629
1608
  class: "tpl:text-[var(--tpl-primary)]",
1630
1609
  style: { opacity: "0.5" }
1631
- }), C("span", Zn, M(t.block.src), 1)], 4)) : t.block.src ? (e(), w(D, { key: 2 }, [t.block.linkUrl ? (e(), w("a", {
1610
+ }), C("span", nr, M(t.block.src), 1)], 4)) : t.block.src ? (e(), w(D, { key: 2 }, [t.block.linkUrl ? (e(), w("a", {
1632
1611
  key: 0,
1633
1612
  href: t.block.linkUrl,
1634
1613
  target: "_blank",
@@ -1640,33 +1619,33 @@ var Mn = { class: "tpl:w-full" }, Nn = {
1640
1619
  src: t.block.src,
1641
1620
  alt: t.block.alt || j(a).image.altTextPlaceholder,
1642
1621
  style: A(f.value)
1643
- }, null, 12, $n)], 8, Qn)) : (e(), w("img", {
1622
+ }, null, 12, ir)], 8, rr)) : (e(), w("img", {
1644
1623
  key: 1,
1645
1624
  class: "tpl:border-0",
1646
1625
  src: t.block.src,
1647
1626
  alt: t.block.alt,
1648
1627
  style: A(f.value)
1649
- }, null, 12, er))], 64)) : (e(), w("div", tr, [c.value ? (e(), w("button", {
1628
+ }, null, 12, ar))], 64)) : (e(), w("div", or, [c.value ? (e(), w("button", {
1650
1629
  key: 0,
1651
1630
  "aria-label": j(a).image.browseMedia,
1652
1631
  class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:cursor-pointer tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
1653
1632
  onClick: b(u, ["stop"])
1654
- }, [N(j(fn), {
1633
+ }, [N(j(hn), {
1655
1634
  size: 14,
1656
1635
  "stroke-width": 1.5
1657
- }), _(" " + M(j(a).image.browseMedia), 1)], 8, nr)) : (e(), w("span", rr, M(j(a).image.clickToAdd), 1))]))], 4));
1636
+ }), _(" " + M(j(a).image.browseMedia), 1)], 8, sr)) : (e(), w("span", cr, M(j(a).image.clickToAdd), 1))]))], 4));
1658
1637
  }
1659
- }), ar = { class: "tpl:w-full" }, or = ["href"], sr = {
1638
+ }), ur = { class: "tpl:w-full" }, dr = ["href"], fr = {
1660
1639
  key: 1,
1661
1640
  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)]"
1662
- }, cr = /* @__PURE__ */ y({
1641
+ }, pr = /* @__PURE__ */ y({
1663
1642
  __name: "MenuBlock",
1664
1643
  props: {
1665
1644
  block: {},
1666
1645
  viewport: {}
1667
1646
  },
1668
1647
  setup(t) {
1669
- let n = t, { t: r } = ft(), i = x(() => ({
1648
+ let n = t, { t: r } = ht(), i = x(() => ({
1670
1649
  display: "flex",
1671
1650
  flexWrap: "wrap",
1672
1651
  gap: `0 ${n.block.spacing}px`,
@@ -1678,7 +1657,7 @@ var Mn = { class: "tpl:w-full" }, Nn = {
1678
1657
  function o(e) {
1679
1658
  return e || n.block.linkColor || n.block.color;
1680
1659
  }
1681
- return (n, s) => (e(), w("div", ar, [a.value ? (e(), w("div", {
1660
+ return (n, s) => (e(), w("div", ur, [a.value ? (e(), w("div", {
1682
1661
  key: 0,
1683
1662
  style: A(i.value)
1684
1663
  }, [(e(!0), w(D, null, c(t.block.items, (n, r) => (e(), w(D, { key: n.id }, [C("a", {
@@ -1690,15 +1669,15 @@ var Mn = { class: "tpl:w-full" }, Nn = {
1690
1669
  textDecoration: n.underline ? "underline" : "none"
1691
1670
  }),
1692
1671
  onClick: s[0] ||= b(() => {}, ["prevent"])
1693
- }, M(n.text || "..."), 13, or), r < t.block.items.length - 1 ? (e(), w("span", {
1672
+ }, M(n.text || "..."), 13, dr), r < t.block.items.length - 1 ? (e(), w("span", {
1694
1673
  key: 0,
1695
1674
  style: A({
1696
1675
  color: t.block.separatorColor,
1697
1676
  padding: `0 ${t.block.spacing}px`
1698
1677
  })
1699
- }, M(t.block.separator), 5)) : O("", !0)], 64))), 128))], 4)) : (e(), w("div", sr, [N(j(pn), { size: 16 }), C("span", null, M(j(r).menu.addLinks), 1)]))]));
1678
+ }, M(t.block.separator), 5)) : O("", !0)], 64))), 128))], 4)) : (e(), w("div", fr, [N(j(gn), { size: 16 }), C("span", null, M(j(r).menu.addLinks), 1)]))]));
1700
1679
  }
1701
- }), lr = new Set([
1680
+ }), mr = new Set([
1702
1681
  "http",
1703
1682
  "https",
1704
1683
  "mailto",
@@ -1708,7 +1687,7 @@ var Mn = { class: "tpl:w-full" }, Nn = {
1708
1687
  "sms",
1709
1688
  "xmpp",
1710
1689
  "cid"
1711
- ]), ur = new Set([
1690
+ ]), hr = new Set([
1712
1691
  "SCRIPT",
1713
1692
  "STYLE",
1714
1693
  "IFRAME",
@@ -1718,7 +1697,7 @@ var Mn = { class: "tpl:w-full" }, Nn = {
1718
1697
  "META",
1719
1698
  "BASE",
1720
1699
  "FORM"
1721
- ]), dr = new Set([
1700
+ ]), gr = new Set([
1722
1701
  "href",
1723
1702
  "xlink:href",
1724
1703
  "formaction",
@@ -1727,16 +1706,16 @@ var Mn = { class: "tpl:w-full" }, Nn = {
1727
1706
  "background",
1728
1707
  "poster"
1729
1708
  ]);
1730
- function fr(e, t) {
1709
+ function _r(e, t) {
1731
1710
  let n = e.replace(/[\t\n\r]/g, "").replace(/^[\u0000-\u0020]+/, "").trimEnd();
1732
1711
  if (!n || n.startsWith("#")) return !0;
1733
1712
  let r = /^([a-z][a-z0-9+.-]*):/i.exec(n);
1734
1713
  if (!r) return !0;
1735
1714
  let i = r[1].toLowerCase();
1736
- return lr.has(i) ? !0 : t && i === "data" ? /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i.test(n) : !1;
1715
+ return mr.has(i) ? !0 : t && i === "data" ? /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i.test(n) : !1;
1737
1716
  }
1738
- function pr(e) {
1739
- if (ur.has(e.tagName)) {
1717
+ function vr(e) {
1718
+ if (hr.has(e.tagName)) {
1740
1719
  e.remove();
1741
1720
  return;
1742
1721
  }
@@ -1748,29 +1727,29 @@ function pr(e) {
1748
1727
  e.removeAttribute(n);
1749
1728
  continue;
1750
1729
  }
1751
- if (dr.has(t)) {
1752
- fr(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n);
1730
+ if (gr.has(t)) {
1731
+ _r(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n);
1753
1732
  continue;
1754
1733
  }
1755
1734
  if (t === "src") {
1756
- fr(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n);
1735
+ _r(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n);
1757
1736
  continue;
1758
1737
  }
1759
1738
  t === "srcdoc" && e.removeAttribute(n);
1760
1739
  }
1761
1740
  let n = Array.from(e.children);
1762
- for (let e of n) pr(e);
1741
+ for (let e of n) vr(e);
1763
1742
  }
1764
- function mr(e) {
1743
+ function yr(e) {
1765
1744
  if (typeof DOMParser > "u") return e;
1766
1745
  let t = new DOMParser().parseFromString(`<!doctype html><body>${e}</body>`, "text/html").body, n = Array.from(t.children);
1767
- for (let e of n) pr(e);
1746
+ for (let e of n) vr(e);
1768
1747
  return t.innerHTML;
1769
1748
  }
1770
1749
  //#endregion
1771
1750
  //#region src/composables/useEditableTextBlock.ts
1772
- function hr(e) {
1773
- let t = P(dt, []), { syntax: n } = vt(), r = x(() => mr(Se(ce(e(), t), n))), i = h(!1), a = h(null), { top: o, left: s } = Ie(a), c = x(() => ({
1751
+ function br(e) {
1752
+ let t = oe(mt, []), { syntax: n } = xt(), r = x(() => yr(we(ue(e(), t), n))), i = h(!1), a = h(null), { top: o, left: s } = Re(a), c = x(() => ({
1774
1753
  top: o.value - 8,
1775
1754
  left: s.value
1776
1755
  }));
@@ -1791,14 +1770,14 @@ function hr(e) {
1791
1770
  }
1792
1771
  //#endregion
1793
1772
  //#region src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
1794
- var gr = ["innerHTML"], _r = /* @__PURE__ */ y({
1773
+ var xr = ["innerHTML"], Sr = /* @__PURE__ */ y({
1795
1774
  __name: "ParagraphBlock",
1796
1775
  props: {
1797
1776
  block: {},
1798
1777
  viewport: {}
1799
1778
  },
1800
1779
  setup(t) {
1801
- let n = t, r = oe(() => import("./ParagraphEditor-4Wrd3nnB.js")), { isEditing: i, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = hr(() => n.block.content);
1780
+ let n = t, r = ce(() => import("./ParagraphEditor-DmA9K7dx.js")), { isEditing: i, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = br(() => n.block.content);
1802
1781
  return (n, u) => (e(), w("div", {
1803
1782
  ref_key: "blockRef",
1804
1783
  ref: a,
@@ -1817,19 +1796,19 @@ var gr = ["innerHTML"], _r = /* @__PURE__ */ y({
1817
1796
  key: 1,
1818
1797
  class: "tpl-text-content tpl:outline-none [&_a]:tpl:underline [&_li]:tpl:my-1 [&_ol]:tpl:my-2 [&_ol]:tpl:pl-6 [&_p]:tpl:m-0 [&_p]:tpl:mb-2 [&_p:last-child]:tpl:mb-0 [&_s]:tpl:line-through [&_sub]:tpl:align-sub [&_sub]:tpl:text-[0.75em] [&_sup]:tpl:align-super [&_sup]:tpl:text-[0.75em] [&_ul]:tpl:my-2 [&_ul]:tpl:pl-6",
1819
1798
  innerHTML: j(s)
1820
- }, null, 8, gr))], 544));
1799
+ }, null, 8, xr))], 544));
1821
1800
  }
1822
1801
  });
1823
1802
  //#endregion
1824
1803
  //#region src/utils/blockComponentResolver.ts
1825
- function vr(e, t, n) {
1804
+ function Cr(e, t, n) {
1826
1805
  if (t) {
1827
1806
  let n = t.getComponent(e);
1828
1807
  if (n) return n;
1829
1808
  }
1830
1809
  return n[e.type] ?? null;
1831
1810
  }
1832
- function yr(e) {
1811
+ function wr(e) {
1833
1812
  let { padding: t, backgroundColor: n } = e.styles;
1834
1813
  return {
1835
1814
  padding: `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`,
@@ -1838,20 +1817,20 @@ function yr(e) {
1838
1817
  }
1839
1818
  //#endregion
1840
1819
  //#region src/components/blocks/BlockWrapper.vue?vue&type=script&setup=true&lang.ts
1841
- var br = ["data-block-id", "data-block-type"], xr = ["aria-label"], Sr = [
1820
+ var Tr = ["data-block-id", "data-block-type"], Er = ["aria-label"], Dr = [
1842
1821
  "aria-label",
1843
1822
  "aria-pressed",
1844
1823
  "title"
1845
- ], Cr = ["aria-label", "title"], wr = ["aria-label", "title"], Tr = ["aria-label", "title"], Er = {
1824
+ ], Or = ["aria-label", "title"], kr = ["aria-label", "title"], Ar = ["aria-label", "title"], jr = {
1846
1825
  key: 1,
1847
1826
  class: "tpl-block-hidden-overlay tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[5] tpl:flex tpl:items-center tpl:justify-center tpl:rounded-sm"
1848
- }, Dr = { class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-2 tpl:py-1 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-bg-elevated)] tpl:text-[var(--tpl-text-muted)] tpl:shadow-[var(--tpl-shadow-sm)]" }, Or = {
1827
+ }, Mr = { class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-2 tpl:py-1 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-bg-elevated)] tpl:text-[var(--tpl-text-muted)] tpl:shadow-[var(--tpl-shadow-sm)]" }, Nr = {
1849
1828
  key: 2,
1850
1829
  class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
1851
- }, kr = ["aria-label", "title"], Ar = {
1830
+ }, Pr = ["aria-label", "title"], Fr = {
1852
1831
  key: 3,
1853
1832
  class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
1854
- }, jr = ["aria-label"], Mr = /*#__PURE__*/ _t(/* @__PURE__ */ y({
1833
+ }, Ir = ["aria-label"], Lr = /*#__PURE__*/ bt(/* @__PURE__ */ y({
1855
1834
  __name: "BlockWrapper",
1856
1835
  props: {
1857
1836
  block: {},
@@ -1861,7 +1840,7 @@ var br = ["data-block-id", "data-block-type"], xr = ["aria-label"], Sr = [
1861
1840
  },
1862
1841
  emits: ["select"],
1863
1842
  setup(t, { emit: n }) {
1864
- let i = oe(() => import("./BlockIssueBadge-ySMhwDRR.js")), a = t, o = n, { t: s, format: c } = ft(), u = P(ct, null), d = h(null), f = x(() => u?.liftedBlockId.value === a.block.id), p = x(() => f.value ? c(s.blockActions.dragLifted, { block: a.block.type }) : s.blockActions.drag);
1843
+ let i = ce(() => import("./BlockIssueBadge-BF4sdsr4.js")), a = t, o = n, { t: s, format: c } = ht(), u = oe(dt, null), d = h(null), f = x(() => u?.liftedBlockId.value === a.block.id), p = x(() => f.value ? c(s.blockActions.dragLifted, { block: a.block.type }) : s.blockActions.drag);
1865
1844
  async function m() {
1866
1845
  await r(), d.value?.focus();
1867
1846
  }
@@ -1887,8 +1866,8 @@ var br = ["data-block-id", "data-block-type"], xr = ["aria-label"], Sr = [
1887
1866
  let y = x(() => !a.viewport || !a.block.visibility ? !1 : a.block.visibility[a.viewport] === !1), S = x(() => a.previewMode === !0 && y.value), T = x(() => a.viewport ? {
1888
1867
  desktop: s.viewport.desktop,
1889
1868
  mobile: s.viewport.mobile
1890
- }[a.viewport] ?? a.viewport : ""), E = x(() => !!a.block.displayCondition), ee = P($e, null), D = P(st, null), k = P(ot, {}), te = x(() => !!k.savedModules), ne = x(() => k.comments?.getBlockCount(a.block.id) ?? 0), re = x(() => {
1891
- let e = yr(a.block);
1869
+ }[a.viewport] ?? a.viewport : ""), E = x(() => !!a.block.displayCondition), ee = oe(nt, null), D = oe(ut, null), k = oe(lt, {}), te = x(() => !!k.savedModules), ne = x(() => k.comments?.getBlockCount(a.block.id) ?? 0), re = x(() => {
1870
+ let e = wr(a.block);
1892
1871
  return {
1893
1872
  padding: e.padding,
1894
1873
  backgroundColor: e.backgroundColor
@@ -1903,10 +1882,10 @@ var br = ["data-block-id", "data-block-type"], xr = ["aria-label"], Sr = [
1903
1882
  function se() {
1904
1883
  ee?.duplicateBlock(a.block);
1905
1884
  }
1906
- function ce() {
1885
+ function le() {
1907
1886
  k.savedModules?.openSaveDialog(a.block.id);
1908
1887
  }
1909
- function le() {
1888
+ function ue() {
1910
1889
  D?.toggleBlock(a.block.id);
1911
1890
  }
1912
1891
  return (n, r) => S.value ? O("", !0) : (e(), w("div", {
@@ -1936,90 +1915,90 @@ var br = ["data-block-id", "data-block-type"], xr = ["aria-label"], Sr = [
1936
1915
  "aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
1937
1916
  title: j(s).blockActions.drag,
1938
1917
  onKeydown: g
1939
- }, [N(j(dn), {
1918
+ }, [N(j(mn), {
1940
1919
  size: 14,
1941
1920
  "stroke-width": 1.5
1942
- })], 40, Sr),
1921
+ })], 40, Dr),
1943
1922
  C("button", {
1944
1923
  class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors tpl:duration-150",
1945
1924
  "aria-label": j(s).blockActions.duplicate,
1946
1925
  title: j(s).blockActions.duplicate,
1947
1926
  onClick: b(se, ["stop"])
1948
- }, [N(j(cn), {
1927
+ }, [N(j(dn), {
1949
1928
  size: 14,
1950
1929
  "stroke-width": 1.5
1951
- })], 8, Cr),
1930
+ })], 8, Or),
1952
1931
  te.value ? (e(), w("button", {
1953
1932
  key: 0,
1954
1933
  class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors tpl:duration-150",
1955
1934
  "aria-label": j(s).blockActions.saveAsModule,
1956
1935
  title: j(s).blockActions.saveAsModule,
1957
- onClick: b(ce, ["stop"])
1958
- }, [N(j(an), {
1936
+ onClick: b(le, ["stop"])
1937
+ }, [N(j(cn), {
1959
1938
  size: 14,
1960
1939
  "stroke-width": 1.5
1961
- })], 8, wr)) : O("", !0),
1940
+ })], 8, kr)) : O("", !0),
1962
1941
  C("button", {
1963
1942
  class: "tpl-block-action-btn tpl-block-delete-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors tpl:duration-150",
1964
1943
  "aria-label": j(s).blockActions.delete,
1965
1944
  title: j(s).blockActions.delete,
1966
1945
  onClick: b(ae, ["stop"])
1967
- }, [N(j(mt), {
1946
+ }, [N(j(_t), {
1968
1947
  size: 14,
1969
1948
  "stroke-width": 1.5
1970
- })], 8, Tr)
1971
- ], 8, xr)) : O("", !0),
1972
- y.value ? (e(), w("div", Er, [C("span", Dr, [N(j(ln), {
1949
+ })], 8, Ar)
1950
+ ], 8, Er)) : O("", !0),
1951
+ y.value ? (e(), w("div", jr, [C("span", Mr, [N(j(fn), {
1973
1952
  size: 12,
1974
1953
  "stroke-width": 1.5
1975
1954
  }), _(" " + M(j(c)(j(s).blockActions.hiddenOnViewport, { viewport: T.value })), 1)])])) : O("", !0),
1976
- E.value && !y.value ? (e(), w("div", Or, [C("button", {
1955
+ E.value && !y.value ? (e(), w("div", Nr, [C("button", {
1977
1956
  class: "tpl-condition-toggle tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1 tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-bg-elevated)] tpl:text-[var(--tpl-primary)] tpl:border tpl:border-[var(--tpl-border)]",
1978
1957
  "aria-label": j(s).blockActions.conditionToggle,
1979
1958
  title: t.block.displayCondition?.label,
1980
- onClick: b(le, ["stop"])
1981
- }, [N(j(un), {
1959
+ onClick: b(ue, ["stop"])
1960
+ }, [N(j(pn), {
1982
1961
  size: 12,
1983
1962
  "stroke-width": 2
1984
- })], 8, kr)])) : O("", !0),
1985
- ne.value > 0 && !y.value ? (e(), w("div", Ar, [C("button", {
1963
+ })], 8, Pr)])) : O("", !0),
1964
+ ne.value > 0 && !y.value ? (e(), w("div", Fr, [C("button", {
1986
1965
  class: "tpl-comment-indicator tpl:flex tpl:min-h-6 tpl:min-w-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-0.5 tpl:rounded-full tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-semibold tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]",
1987
1966
  "aria-label": j(c)(j(s).blockActions.comments, { count: String(ne.value) }),
1988
1967
  onClick: r[0] ||= b((e) => j(k).comments?.openForBlock(t.block.id), ["stop"])
1989
- }, [N(j(pt), {
1968
+ }, [N(j(gt), {
1990
1969
  size: 12,
1991
1970
  "stroke-width": 2.5
1992
- }), _(" " + M(ne.value), 1)], 8, jr)])) : O("", !0),
1971
+ }), _(" " + M(ne.value), 1)], 8, Ir)])) : O("", !0),
1993
1972
  C("div", {
1994
1973
  class: "tpl-block-content",
1995
1974
  style: A(re.value)
1996
1975
  }, [l(n.$slots, "default", {}, void 0, !0)], 4)
1997
- ], 10, br));
1976
+ ], 10, Tr));
1998
1977
  }
1999
1978
  }), [["__scopeId", "data-v-4a48371d"]]);
2000
1979
  //#endregion
2001
1980
  //#region src/utils/unwrapParagraph.ts
2002
- function Nr(e) {
1981
+ function Rr(e) {
2003
1982
  let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
2004
1983
  return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
2005
1984
  }
2006
1985
  //#endregion
2007
1986
  //#region src/components/blocks/TitleBlock.vue
2008
- var Pr = /* @__PURE__ */ y({
1987
+ var zr = /* @__PURE__ */ y({
2009
1988
  __name: "TitleBlock",
2010
1989
  props: {
2011
1990
  block: {},
2012
1991
  viewport: {}
2013
1992
  },
2014
1993
  setup(t) {
2015
- let n = t, r = oe(() => import("./TitleEditor-CY8QWbEw.js")), { isEditing: a, blockRef: o, toolbarPosition: s, resolvedContent: c, handleDoubleClick: l, handleEditorDone: u } = hr(() => n.block.content), d = x(() => {
1994
+ let n = t, r = ce(() => import("./TitleEditor-C9jDA5lI.js")), { isEditing: a, blockRef: o, toolbarPosition: s, resolvedContent: c, handleDoubleClick: l, handleEditorDone: u } = br(() => n.block.content), d = x(() => {
2016
1995
  let e = {
2017
- fontSize: `${Oe[n.block.level]}px`,
1996
+ fontSize: `${Ae[n.block.level]}px`,
2018
1997
  color: n.block.color,
2019
1998
  textAlign: n.block.textAlign
2020
1999
  };
2021
2000
  return n.block.fontFamily && (e.fontFamily = n.block.fontFamily), e;
2022
- }), f = x(() => `h${n.block.level}`), p = x(() => Nr(c.value));
2001
+ }), f = x(() => `h${n.block.level}`), p = x(() => Rr(c.value));
2023
2002
  return (n, c) => (e(), w("div", {
2024
2003
  ref_key: "blockRef",
2025
2004
  ref: o,
@@ -2042,83 +2021,83 @@ var Pr = /* @__PURE__ */ y({
2042
2021
  innerHTML: p.value
2043
2022
  }, null, 8, ["innerHTML"]))], 36));
2044
2023
  }
2045
- }), Fr = Object.defineProperty, Ir = Object.getOwnPropertySymbols, Lr = Object.prototype.hasOwnProperty, Rr = Object.prototype.propertyIsEnumerable, zr = (e, t, n) => t in e ? Fr(e, t, {
2024
+ }), Br = Object.defineProperty, Vr = Object.getOwnPropertySymbols, Hr = Object.prototype.hasOwnProperty, Ur = Object.prototype.propertyIsEnumerable, Wr = (e, t, n) => t in e ? Br(e, t, {
2046
2025
  enumerable: !0,
2047
2026
  configurable: !0,
2048
2027
  writable: !0,
2049
2028
  value: n
2050
- }) : e[t] = n, Br = (e, t) => {
2051
- for (var n in t ||= {}) Lr.call(t, n) && zr(e, n, t[n]);
2052
- if (Ir) for (var n of Ir(t)) Rr.call(t, n) && zr(e, n, t[n]);
2029
+ }) : e[t] = n, Gr = (e, t) => {
2030
+ for (var n in t ||= {}) Hr.call(t, n) && Wr(e, n, t[n]);
2031
+ if (Vr) for (var n of Vr(t)) Ur.call(t, n) && Wr(e, n, t[n]);
2053
2032
  return e;
2054
- }, Vr = (e, t) => {
2033
+ }, Kr = (e, t) => {
2055
2034
  var n = {};
2056
- for (var r in e) Lr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
2057
- if (e != null && Ir) for (var r of Ir(e)) t.indexOf(r) < 0 && Rr.call(e, r) && (n[r] = e[r]);
2035
+ for (var r in e) Hr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
2036
+ if (e != null && Vr) for (var r of Vr(e)) t.indexOf(r) < 0 && Ur.call(e, r) && (n[r] = e[r]);
2058
2037
  return n;
2059
- }, Hr = "[vue-draggable-plus]: ";
2060
- function Ur(e) {
2061
- console.warn(Hr + e);
2038
+ }, qr = "[vue-draggable-plus]: ";
2039
+ function Jr(e) {
2040
+ console.warn(qr + e);
2062
2041
  }
2063
- function Wr(e) {
2064
- console.error(Hr + e);
2042
+ function Yr(e) {
2043
+ console.error(qr + e);
2065
2044
  }
2066
- function Gr(e, t, n) {
2045
+ function Xr(e, t, n) {
2067
2046
  return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
2068
2047
  }
2069
- function Kr(e) {
2048
+ function Zr(e) {
2070
2049
  return e.replace(/-(\w)/g, (e, t) => t ? t.toUpperCase() : "");
2071
2050
  }
2072
- function qr(e) {
2073
- return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[Kr(n)] = e[n]), t), {});
2051
+ function Qr(e) {
2052
+ return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[Zr(n)] = e[n]), t), {});
2074
2053
  }
2075
- function Jr(e, t) {
2054
+ function $r(e, t) {
2076
2055
  return Array.isArray(e) && e.splice(t, 1), e;
2077
2056
  }
2078
- function Yr(e, t, n) {
2057
+ function ei(e, t, n) {
2079
2058
  return Array.isArray(e) && e.splice(t, 0, n), e;
2080
2059
  }
2081
- function Xr(e) {
2060
+ function ti(e) {
2082
2061
  return e === void 0;
2083
2062
  }
2084
- function Zr(e) {
2063
+ function ni(e) {
2085
2064
  return typeof e == "string";
2086
2065
  }
2087
- function Qr(e, t, n) {
2066
+ function ri(e, t, n) {
2088
2067
  let r = e.children[n];
2089
2068
  e.insertBefore(t, r);
2090
2069
  }
2091
- function $r(e) {
2070
+ function ii(e) {
2092
2071
  e.parentNode && e.parentNode.removeChild(e);
2093
2072
  }
2094
- function ei(e, t = document) {
2073
+ function ai(e, t = document) {
2095
2074
  let n = null;
2096
- return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || Ur(`Element not found: ${e}`), n;
2075
+ return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || Jr(`Element not found: ${e}`), n;
2097
2076
  }
2098
- function ti(e, t, n = null) {
2077
+ function oi(e, t, n = null) {
2099
2078
  return function(...r) {
2100
2079
  return e.apply(n, r), t.apply(n, r);
2101
2080
  };
2102
2081
  }
2103
- function ni(e, t) {
2104
- let n = Br({}, e);
2082
+ function si(e, t) {
2083
+ let n = Gr({}, e);
2105
2084
  return Object.keys(t).forEach((r) => {
2106
- n[r] ? n[r] = ti(e[r], t[r]) : n[r] = t[r];
2085
+ n[r] ? n[r] = oi(e[r], t[r]) : n[r] = t[r];
2107
2086
  }), n;
2108
2087
  }
2109
- function ri(e) {
2088
+ function ci(e) {
2110
2089
  return e instanceof HTMLElement;
2111
2090
  }
2112
- function ii(e, t) {
2091
+ function li(e, t) {
2113
2092
  Object.keys(e).forEach((n) => {
2114
2093
  t(n, e[n]);
2115
2094
  });
2116
2095
  }
2117
- function ai(e) {
2096
+ function ui(e) {
2118
2097
  return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
2119
2098
  }
2120
- var oi = Object.assign;
2121
- function si(e, t) {
2099
+ var di = Object.assign;
2100
+ function fi(e, t) {
2122
2101
  var n = Object.keys(e);
2123
2102
  if (Object.getOwnPropertySymbols) {
2124
2103
  var r = Object.getOwnPropertySymbols(e);
@@ -2128,26 +2107,26 @@ function si(e, t) {
2128
2107
  }
2129
2108
  return n;
2130
2109
  }
2131
- function ci(e) {
2110
+ function pi(e) {
2132
2111
  for (var t = 1; t < arguments.length; t++) {
2133
2112
  var n = arguments[t] == null ? {} : arguments[t];
2134
- t % 2 ? si(Object(n), !0).forEach(function(t) {
2135
- ui(e, t, n[t]);
2136
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : si(Object(n)).forEach(function(t) {
2113
+ t % 2 ? fi(Object(n), !0).forEach(function(t) {
2114
+ hi(e, t, n[t]);
2115
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fi(Object(n)).forEach(function(t) {
2137
2116
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
2138
2117
  });
2139
2118
  }
2140
2119
  return e;
2141
2120
  }
2142
- function li(e) {
2121
+ function mi(e) {
2143
2122
  "@babel/helpers - typeof";
2144
- return li = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2123
+ return mi = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2145
2124
  return typeof e;
2146
2125
  } : function(e) {
2147
2126
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2148
- }, li(e);
2127
+ }, mi(e);
2149
2128
  }
2150
- function ui(e, t, n) {
2129
+ function hi(e, t, n) {
2151
2130
  return t in e ? Object.defineProperty(e, t, {
2152
2131
  value: n,
2153
2132
  enumerable: !0,
@@ -2155,45 +2134,45 @@ function ui(e, t, n) {
2155
2134
  writable: !0
2156
2135
  }) : e[t] = n, e;
2157
2136
  }
2158
- function di() {
2159
- return di = Object.assign || function(e) {
2137
+ function gi() {
2138
+ return gi = Object.assign || function(e) {
2160
2139
  for (var t = 1; t < arguments.length; t++) {
2161
2140
  var n = arguments[t];
2162
2141
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
2163
2142
  }
2164
2143
  return e;
2165
- }, di.apply(this, arguments);
2144
+ }, gi.apply(this, arguments);
2166
2145
  }
2167
- function fi(e, t) {
2146
+ function _i(e, t) {
2168
2147
  if (e == null) return {};
2169
2148
  var n = {}, r = Object.keys(e), i, a;
2170
2149
  for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
2171
2150
  return n;
2172
2151
  }
2173
- function pi(e, t) {
2152
+ function vi(e, t) {
2174
2153
  if (e == null) return {};
2175
- var n = fi(e, t), r, i;
2154
+ var n = _i(e, t), r, i;
2176
2155
  if (Object.getOwnPropertySymbols) {
2177
2156
  var a = Object.getOwnPropertySymbols(e);
2178
2157
  for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
2179
2158
  }
2180
2159
  return n;
2181
2160
  }
2182
- var mi = "1.15.2";
2183
- function hi(e) {
2161
+ var yi = "1.15.2";
2162
+ function bi(e) {
2184
2163
  if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
2185
2164
  }
2186
- var gi = hi(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), _i = hi(/Edge/i), vi = hi(/firefox/i), yi = hi(/safari/i) && !hi(/chrome/i) && !hi(/android/i), bi = hi(/iP(ad|od|hone)/i), xi = hi(/chrome/i) && hi(/android/i), Si = {
2165
+ var xi = bi(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Si = bi(/Edge/i), Ci = bi(/firefox/i), wi = bi(/safari/i) && !bi(/chrome/i) && !bi(/android/i), Ti = bi(/iP(ad|od|hone)/i), Ei = bi(/chrome/i) && bi(/android/i), Di = {
2187
2166
  capture: !1,
2188
2167
  passive: !1
2189
2168
  };
2190
- function I(e, t, n) {
2191
- e.addEventListener(t, n, !gi && Si);
2169
+ function F(e, t, n) {
2170
+ e.addEventListener(t, n, !xi && Di);
2192
2171
  }
2193
- function L(e, t, n) {
2194
- e.removeEventListener(t, n, !gi && Si);
2172
+ function I(e, t, n) {
2173
+ e.removeEventListener(t, n, !xi && Di);
2195
2174
  }
2196
- function Ci(e, t) {
2175
+ function Oi(e, t) {
2197
2176
  if (t) {
2198
2177
  if (t[0] === ">" && (t = t.substring(1)), e) try {
2199
2178
  if (e.matches) return e.matches(t);
@@ -2205,41 +2184,41 @@ function Ci(e, t) {
2205
2184
  return !1;
2206
2185
  }
2207
2186
  }
2208
- function wi(e) {
2187
+ function ki(e) {
2209
2188
  return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
2210
2189
  }
2211
- function Ti(e, t, n, r) {
2190
+ function Ai(e, t, n, r) {
2212
2191
  if (e) {
2213
2192
  n ||= document;
2214
2193
  do {
2215
- if (t != null && (t[0] === ">" ? e.parentNode === n && Ci(e, t) : Ci(e, t)) || r && e === n) return e;
2194
+ if (t != null && (t[0] === ">" ? e.parentNode === n && Oi(e, t) : Oi(e, t)) || r && e === n) return e;
2216
2195
  if (e === n) break;
2217
- } while (e = wi(e));
2196
+ } while (e = ki(e));
2218
2197
  }
2219
2198
  return null;
2220
2199
  }
2221
- var Ei = /\s+/g;
2222
- function R(e, t, n) {
2223
- e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(Ei, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(Ei, " "));
2200
+ var ji = /\s+/g;
2201
+ function L(e, t, n) {
2202
+ e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(ji, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(ji, " "));
2224
2203
  }
2225
- function z(e, t, n) {
2204
+ function R(e, t, n) {
2226
2205
  var r = e && e.style;
2227
2206
  if (r) {
2228
2207
  if (n === void 0) return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (n = e.currentStyle), t === void 0 ? n : n[t];
2229
2208
  !(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
2230
2209
  }
2231
2210
  }
2232
- function Di(e, t) {
2211
+ function Mi(e, t) {
2233
2212
  var n = "";
2234
2213
  if (typeof e == "string") n = e;
2235
2214
  else do {
2236
- var r = z(e, "transform");
2215
+ var r = R(e, "transform");
2237
2216
  r && r !== "none" && (n = r + " " + n);
2238
2217
  } while (!t && (e = e.parentNode));
2239
2218
  var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
2240
2219
  return i && new i(n);
2241
2220
  }
2242
- function Oi(e, t, n) {
2221
+ function Ni(e, t, n) {
2243
2222
  if (e) {
2244
2223
  var r = e.getElementsByTagName(t), i = 0, a = r.length;
2245
2224
  if (n) for (; i < a; i++) n(r[i], i);
@@ -2247,21 +2226,21 @@ function Oi(e, t, n) {
2247
2226
  }
2248
2227
  return [];
2249
2228
  }
2250
- function ki() {
2229
+ function Pi() {
2251
2230
  return document.scrollingElement || document.documentElement;
2252
2231
  }
2253
- function B(e, t, n, r, i) {
2232
+ function z(e, t, n, r, i) {
2254
2233
  if (!(!e.getBoundingClientRect && e !== window)) {
2255
2234
  var a, o, s, c, l, u, d;
2256
- if (e !== window && e.parentNode && e !== ki() ? (a = e.getBoundingClientRect(), o = a.top, s = a.left, c = a.bottom, l = a.right, u = a.height, d = a.width) : (o = 0, s = 0, c = window.innerHeight, l = window.innerWidth, u = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (i ||= e.parentNode, !gi)) do
2257
- if (i && i.getBoundingClientRect && (z(i, "transform") !== "none" || n && z(i, "position") !== "static")) {
2235
+ if (e !== window && e.parentNode && e !== Pi() ? (a = e.getBoundingClientRect(), o = a.top, s = a.left, c = a.bottom, l = a.right, u = a.height, d = a.width) : (o = 0, s = 0, c = window.innerHeight, l = window.innerWidth, u = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (i ||= e.parentNode, !xi)) do
2236
+ if (i && i.getBoundingClientRect && (R(i, "transform") !== "none" || n && R(i, "position") !== "static")) {
2258
2237
  var f = i.getBoundingClientRect();
2259
- o -= f.top + parseInt(z(i, "border-top-width")), s -= f.left + parseInt(z(i, "border-left-width")), c = o + a.height, l = s + a.width;
2238
+ o -= f.top + parseInt(R(i, "border-top-width")), s -= f.left + parseInt(R(i, "border-left-width")), c = o + a.height, l = s + a.width;
2260
2239
  break;
2261
2240
  }
2262
2241
  while (i = i.parentNode);
2263
2242
  if (r && e !== window) {
2264
- var p = Di(i || e), m = p && p.a, h = p && p.d;
2243
+ var p = Mi(i || e), m = p && p.a, h = p && p.d;
2265
2244
  p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
2266
2245
  }
2267
2246
  return {
@@ -2274,18 +2253,18 @@ function B(e, t, n, r, i) {
2274
2253
  };
2275
2254
  }
2276
2255
  }
2277
- function Ai(e, t, n) {
2278
- for (var r = Ii(e, !0), i = B(e)[t]; r;) {
2279
- var a = B(r)[n], o = void 0;
2256
+ function Fi(e, t, n) {
2257
+ for (var r = Bi(e, !0), i = z(e)[t]; r;) {
2258
+ var a = z(r)[n], o = void 0;
2280
2259
  if (o = i >= a, !o) return r;
2281
- if (r === ki()) break;
2282
- r = Ii(r, !1);
2260
+ if (r === Pi()) break;
2261
+ r = Bi(r, !1);
2283
2262
  }
2284
2263
  return !1;
2285
2264
  }
2286
- function ji(e, t, n, r) {
2265
+ function Ii(e, t, n, r) {
2287
2266
  for (var i = 0, a = 0, o = e.children; a < o.length;) {
2288
- if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && Ti(o[a], n.draggable, e, !1)) {
2267
+ if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && Ai(o[a], n.draggable, e, !1)) {
2289
2268
  if (i === t) return o[a];
2290
2269
  i++;
2291
2270
  }
@@ -2293,96 +2272,96 @@ function ji(e, t, n, r) {
2293
2272
  }
2294
2273
  return null;
2295
2274
  }
2296
- function Mi(e, t) {
2297
- for (var n = e.lastElementChild; n && (n === Q.ghost || z(n, "display") === "none" || t && !Ci(n, t));) n = n.previousElementSibling;
2275
+ function Li(e, t) {
2276
+ for (var n = e.lastElementChild; n && (n === Q.ghost || R(n, "display") === "none" || t && !Oi(n, t));) n = n.previousElementSibling;
2298
2277
  return n || null;
2299
2278
  }
2300
- function Ni(e, t) {
2279
+ function B(e, t) {
2301
2280
  var n = 0;
2302
2281
  if (!e || !e.parentNode) return -1;
2303
- for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || Ci(e, t)) && n++;
2282
+ for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || Oi(e, t)) && n++;
2304
2283
  return n;
2305
2284
  }
2306
- function Pi(e) {
2307
- var t = 0, n = 0, r = ki();
2285
+ function Ri(e) {
2286
+ var t = 0, n = 0, r = Pi();
2308
2287
  if (e) do {
2309
- var i = Di(e), a = i.a, o = i.d;
2288
+ var i = Mi(e), a = i.a, o = i.d;
2310
2289
  t += e.scrollLeft * a, n += e.scrollTop * o;
2311
2290
  } while (e !== r && (e = e.parentNode));
2312
2291
  return [t, n];
2313
2292
  }
2314
- function Fi(e, t) {
2293
+ function zi(e, t) {
2315
2294
  for (var n in e) if (e.hasOwnProperty(n)) {
2316
2295
  for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
2317
2296
  }
2318
2297
  return -1;
2319
2298
  }
2320
- function Ii(e, t) {
2321
- if (!e || !e.getBoundingClientRect) return ki();
2299
+ function Bi(e, t) {
2300
+ if (!e || !e.getBoundingClientRect) return Pi();
2322
2301
  var n = e, r = !1;
2323
2302
  do
2324
2303
  if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
2325
- var i = z(n);
2304
+ var i = R(n);
2326
2305
  if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
2327
- if (!n.getBoundingClientRect || n === document.body) return ki();
2306
+ if (!n.getBoundingClientRect || n === document.body) return Pi();
2328
2307
  if (r || t) return n;
2329
2308
  r = !0;
2330
2309
  }
2331
2310
  }
2332
2311
  while (n = n.parentNode);
2333
- return ki();
2312
+ return Pi();
2334
2313
  }
2335
- function Li(e, t) {
2314
+ function Vi(e, t) {
2336
2315
  if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
2337
2316
  return e;
2338
2317
  }
2339
- function Ri(e, t) {
2318
+ function Hi(e, t) {
2340
2319
  return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
2341
2320
  }
2342
- var zi;
2343
- function Bi(e, t) {
2321
+ var Ui;
2322
+ function Wi(e, t) {
2344
2323
  return function() {
2345
- if (!zi) {
2324
+ if (!Ui) {
2346
2325
  var n = arguments, r = this;
2347
- n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), zi = setTimeout(function() {
2348
- zi = void 0;
2326
+ n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), Ui = setTimeout(function() {
2327
+ Ui = void 0;
2349
2328
  }, t);
2350
2329
  }
2351
2330
  };
2352
2331
  }
2353
- function Vi() {
2354
- clearTimeout(zi), zi = void 0;
2332
+ function Gi() {
2333
+ clearTimeout(Ui), Ui = void 0;
2355
2334
  }
2356
- function Hi(e, t, n) {
2335
+ function Ki(e, t, n) {
2357
2336
  e.scrollLeft += t, e.scrollTop += n;
2358
2337
  }
2359
- function Ui(e) {
2338
+ function qi(e) {
2360
2339
  var t = window.Polymer, n = window.jQuery || window.Zepto;
2361
2340
  return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
2362
2341
  }
2363
- function Wi(e, t, n) {
2342
+ function Ji(e, t, n) {
2364
2343
  var r = {};
2365
2344
  return Array.from(e.children).forEach(function(i) {
2366
- if (!(!Ti(i, t.draggable, e, !1) || i.animated || i === n)) {
2367
- var a = B(i);
2345
+ if (!(!Ai(i, t.draggable, e, !1) || i.animated || i === n)) {
2346
+ var a = z(i);
2368
2347
  r.left = Math.min(r.left ?? Infinity, a.left), r.top = Math.min(r.top ?? Infinity, a.top), r.right = Math.max(r.right ?? -Infinity, a.right), r.bottom = Math.max(r.bottom ?? -Infinity, a.bottom);
2369
2348
  }
2370
2349
  }), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
2371
2350
  }
2372
2351
  var V = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
2373
- function Gi() {
2352
+ function Yi() {
2374
2353
  var e = [], t;
2375
2354
  return {
2376
2355
  captureAnimationState: function() {
2377
2356
  e = [], this.options.animation && [].slice.call(this.el.children).forEach(function(t) {
2378
- if (!(z(t, "display") === "none" || t === Q.ghost)) {
2357
+ if (!(R(t, "display") === "none" || t === Q.ghost)) {
2379
2358
  e.push({
2380
2359
  target: t,
2381
- rect: B(t)
2360
+ rect: z(t)
2382
2361
  });
2383
- var n = ci({}, e[e.length - 1].rect);
2362
+ var n = pi({}, e[e.length - 1].rect);
2384
2363
  if (t.thisAnimationDuration) {
2385
- var r = Di(t, !0);
2364
+ var r = Mi(t, !0);
2386
2365
  r && (n.top -= r.f, n.left -= r.e);
2387
2366
  }
2388
2367
  t.fromRect = n;
@@ -2393,7 +2372,7 @@ function Gi() {
2393
2372
  e.push(t);
2394
2373
  },
2395
2374
  removeAnimationState: function(t) {
2396
- e.splice(Fi(e, { target: t }), 1);
2375
+ e.splice(zi(e, { target: t }), 1);
2397
2376
  },
2398
2377
  animateAll: function(n) {
2399
2378
  var r = this;
@@ -2403,8 +2382,8 @@ function Gi() {
2403
2382
  }
2404
2383
  var i = !1, a = 0;
2405
2384
  e.forEach(function(e) {
2406
- var t = 0, n = e.target, o = n.fromRect, s = B(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = Di(n, !0);
2407
- d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Ri(c, s) && !Ri(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = qi(u, c, l, r.options)), Ri(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() {
2385
+ var t = 0, n = e.target, o = n.fromRect, s = z(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = Mi(n, !0);
2386
+ d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Hi(c, s) && !Hi(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = Zi(u, c, l, r.options)), Hi(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() {
2408
2387
  n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
2409
2388
  }, t), n.thisAnimationDuration = t);
2410
2389
  }), clearTimeout(t), i ? t = setTimeout(function() {
@@ -2413,27 +2392,27 @@ function Gi() {
2413
2392
  },
2414
2393
  animate: function(e, t, n, r) {
2415
2394
  if (r) {
2416
- z(e, "transition", ""), z(e, "transform", "");
2417
- var i = Di(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
2418
- e.animatingX = !!s, e.animatingY = !!c, z(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = Ki(e), z(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), z(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
2419
- z(e, "transition", ""), z(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
2395
+ R(e, "transition", ""), R(e, "transform", "");
2396
+ var i = Mi(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
2397
+ e.animatingX = !!s, e.animatingY = !!c, R(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = Xi(e), R(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), R(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
2398
+ R(e, "transition", ""), R(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
2420
2399
  }, r);
2421
2400
  }
2422
2401
  }
2423
2402
  };
2424
2403
  }
2425
- function Ki(e) {
2404
+ function Xi(e) {
2426
2405
  return e.offsetWidth;
2427
2406
  }
2428
- function qi(e, t, n, r) {
2407
+ function Zi(e, t, n, r) {
2429
2408
  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;
2430
2409
  }
2431
- var Ji = [], Yi = { initializeByDefault: !0 }, Xi = {
2410
+ var Qi = [], $i = { initializeByDefault: !0 }, ea = {
2432
2411
  mount: function(e) {
2433
- for (var t in Yi) Yi.hasOwnProperty(t) && !(t in e) && (e[t] = Yi[t]);
2434
- Ji.forEach(function(t) {
2412
+ for (var t in $i) $i.hasOwnProperty(t) && !(t in e) && (e[t] = $i[t]);
2413
+ Qi.forEach(function(t) {
2435
2414
  if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
2436
- }), Ji.push(e);
2415
+ }), Qi.push(e);
2437
2416
  },
2438
2417
  pluginEvent: function(e, t, n) {
2439
2418
  var r = this;
@@ -2441,16 +2420,16 @@ var Ji = [], Yi = { initializeByDefault: !0 }, Xi = {
2441
2420
  r.eventCanceled = !0;
2442
2421
  };
2443
2422
  var i = e + "Global";
2444
- Ji.forEach(function(r) {
2445
- t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](ci({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](ci({ sortable: t }, n)));
2423
+ Qi.forEach(function(r) {
2424
+ t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](pi({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](pi({ sortable: t }, n)));
2446
2425
  });
2447
2426
  },
2448
2427
  initializePlugins: function(e, t, n, r) {
2449
- for (var i in Ji.forEach(function(r) {
2428
+ for (var i in Qi.forEach(function(r) {
2450
2429
  var i = r.pluginName;
2451
2430
  if (!(!e.options[i] && !r.initializeByDefault)) {
2452
2431
  var a = new r(e, t, e.options);
2453
- a.sortable = e, a.options = e.options, e[i] = a, di(n, a.defaults);
2432
+ a.sortable = e, a.options = e.options, e[i] = a, gi(n, a.defaults);
2454
2433
  }
2455
2434
  }), e.options) if (e.options.hasOwnProperty(i)) {
2456
2435
  var a = this.modifyOption(e, i, e.options[i]);
@@ -2459,56 +2438,56 @@ var Ji = [], Yi = { initializeByDefault: !0 }, Xi = {
2459
2438
  },
2460
2439
  getEventProperties: function(e, t) {
2461
2440
  var n = {};
2462
- return Ji.forEach(function(r) {
2463
- typeof r.eventProperties == "function" && di(n, r.eventProperties.call(t[r.pluginName], e));
2441
+ return Qi.forEach(function(r) {
2442
+ typeof r.eventProperties == "function" && gi(n, r.eventProperties.call(t[r.pluginName], e));
2464
2443
  }), n;
2465
2444
  },
2466
2445
  modifyOption: function(e, t, n) {
2467
2446
  var r;
2468
- return Ji.forEach(function(i) {
2447
+ return Qi.forEach(function(i) {
2469
2448
  e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
2470
2449
  }), r;
2471
2450
  }
2472
2451
  };
2473
- function Zi(e) {
2452
+ function ta(e) {
2474
2453
  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;
2475
2454
  if (t ||= n && n[V], t) {
2476
2455
  var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
2477
- window.CustomEvent && !gi && !_i ? h = new CustomEvent(r, {
2456
+ window.CustomEvent && !xi && !Si ? h = new CustomEvent(r, {
2478
2457
  bubbles: !0,
2479
2458
  cancelable: !0
2480
2459
  }) : (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;
2481
- var v = ci(ci({}, m), Xi.getEventProperties(r, t));
2460
+ var v = pi(pi({}, m), ea.getEventProperties(r, t));
2482
2461
  for (var y in v) h[y] = v[y];
2483
2462
  n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
2484
2463
  }
2485
2464
  }
2486
- var Qi = ["evt"], H = function(e, t) {
2487
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = pi(n, Qi);
2488
- Xi.pluginEvent.bind(Q)(e, t, ci({
2465
+ var na = ["evt"], H = function(e, t) {
2466
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = vi(n, na);
2467
+ ea.pluginEvent.bind(Q)(e, t, pi({
2489
2468
  dragEl: W,
2490
2469
  parentEl: G,
2491
2470
  ghostEl: K,
2492
2471
  rootEl: q,
2493
- nextEl: $i,
2494
- lastDownEl: ea,
2472
+ nextEl: ra,
2473
+ lastDownEl: ia,
2495
2474
  cloneEl: J,
2496
- cloneHidden: ta,
2497
- dragStarted: ha,
2475
+ cloneHidden: aa,
2476
+ dragStarted: ya,
2498
2477
  putSortable: X,
2499
2478
  activeSortable: Q.active,
2500
2479
  originalEvent: r,
2501
- oldIndex: na,
2502
- oldDraggableIndex: ra,
2480
+ oldIndex: oa,
2481
+ oldDraggableIndex: sa,
2503
2482
  newIndex: Y,
2504
- newDraggableIndex: ia,
2505
- hideGhostForTarget: Na,
2506
- unhideGhostForTarget: Pa,
2483
+ newDraggableIndex: ca,
2484
+ hideGhostForTarget: La,
2485
+ unhideGhostForTarget: Ra,
2507
2486
  cloneNowHidden: function() {
2508
- ta = !0;
2487
+ aa = !0;
2509
2488
  },
2510
2489
  cloneNowShown: function() {
2511
- ta = !1;
2490
+ aa = !1;
2512
2491
  },
2513
2492
  dispatchSortableEvent: function(e) {
2514
2493
  U({
@@ -2520,45 +2499,45 @@ var Qi = ["evt"], H = function(e, t) {
2520
2499
  }, i));
2521
2500
  };
2522
2501
  function U(e) {
2523
- Zi(ci({
2502
+ ta(pi({
2524
2503
  putSortable: X,
2525
2504
  cloneEl: J,
2526
2505
  targetEl: W,
2527
2506
  rootEl: q,
2528
- oldIndex: na,
2529
- oldDraggableIndex: ra,
2507
+ oldIndex: oa,
2508
+ oldDraggableIndex: sa,
2530
2509
  newIndex: Y,
2531
- newDraggableIndex: ia
2510
+ newDraggableIndex: ca
2532
2511
  }, e));
2533
2512
  }
2534
- var W, G, K, q, $i, ea, J, ta, na, Y, ra, ia, aa, X, oa = !1, sa = !1, ca = [], la, ua, da, fa, pa, ma, ha, ga, _a, va = !1, ya = !1, ba, Z, xa = [], Sa = !1, Ca = [], wa = typeof document < "u", Ta = bi, Ea = _i || gi ? "cssFloat" : "float", Da = wa && !xi && !bi && "draggable" in document.createElement("div"), Oa = function() {
2535
- if (wa) {
2536
- if (gi) return !1;
2513
+ var W, G, K, q, ra, ia, J, aa, oa, Y, sa, ca, la, X, ua = !1, da = !1, fa = [], pa, ma, ha, ga, _a, va, ya, ba, xa, Sa = !1, Ca = !1, wa, Z, Ta = [], Ea = !1, Da = [], Oa = typeof document < "u", ka = Ti, Aa = Si || xi ? "cssFloat" : "float", ja = Oa && !Ei && !Ti && "draggable" in document.createElement("div"), Ma = function() {
2514
+ if (Oa) {
2515
+ if (xi) return !1;
2537
2516
  var e = document.createElement("x");
2538
2517
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
2539
2518
  }
2540
- }(), ka = function(e, t) {
2541
- var n = z(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = ji(e, 0, t), a = ji(e, 1, t), o = i && z(i), s = a && z(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + B(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + B(a).width;
2519
+ }(), Na = function(e, t) {
2520
+ var n = R(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = Ii(e, 0, t), a = Ii(e, 1, t), o = i && R(i), s = a && R(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + z(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + z(a).width;
2542
2521
  if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
2543
2522
  if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
2544
2523
  if (i && o.float && o.float !== "none") {
2545
2524
  var u = o.float === "left" ? "left" : "right";
2546
2525
  return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
2547
2526
  }
2548
- return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Ea] === "none" || a && n[Ea] === "none" && c + l > r) ? "vertical" : "horizontal";
2549
- }, Aa = function(e, t, n) {
2527
+ return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Aa] === "none" || a && n[Aa] === "none" && c + l > r) ? "vertical" : "horizontal";
2528
+ }, Pa = function(e, t, n) {
2550
2529
  var r = n ? e.left : e.top, i = n ? e.right : e.bottom, a = n ? e.width : e.height, o = n ? t.left : t.top, s = n ? t.right : t.bottom, c = n ? t.width : t.height;
2551
2530
  return r === o || i === s || r + a / 2 === o + c / 2;
2552
- }, ja = function(e, t) {
2531
+ }, Fa = function(e, t) {
2553
2532
  var n;
2554
- return ca.some(function(r) {
2533
+ return fa.some(function(r) {
2555
2534
  var i = r[V].options.emptyInsertThreshold;
2556
- if (!(!i || Mi(r))) {
2557
- var a = B(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
2535
+ if (!(!i || Li(r))) {
2536
+ var a = z(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
2558
2537
  if (o && s) return n = r;
2559
2538
  }
2560
2539
  }), n;
2561
- }, Ma = function(e) {
2540
+ }, Ia = function(e) {
2562
2541
  function t(e, n) {
2563
2542
  return function(r, i, a, o) {
2564
2543
  var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
@@ -2571,31 +2550,31 @@ var W, G, K, q, $i, ea, J, ta, na, Y, ra, ia, aa, X, oa = !1, sa = !1, ca = [],
2571
2550
  };
2572
2551
  }
2573
2552
  var n = {}, r = e.group;
2574
- (!r || li(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;
2575
- }, Na = function() {
2576
- !Oa && K && z(K, "display", "none");
2577
- }, Pa = function() {
2578
- !Oa && K && z(K, "display", "");
2553
+ (!r || mi(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;
2554
+ }, La = function() {
2555
+ !Ma && K && R(K, "display", "none");
2556
+ }, Ra = function() {
2557
+ !Ma && K && R(K, "display", "");
2579
2558
  };
2580
- wa && !xi && document.addEventListener("click", function(e) {
2581
- if (sa) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), sa = !1, !1;
2559
+ Oa && !Ei && document.addEventListener("click", function(e) {
2560
+ if (da) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), da = !1, !1;
2582
2561
  }, !0);
2583
- var Fa = function(e) {
2562
+ var za = function(e) {
2584
2563
  if (W) {
2585
2564
  e = e.touches ? e.touches[0] : e;
2586
- var t = ja(e.clientX, e.clientY);
2565
+ var t = Fa(e.clientX, e.clientY);
2587
2566
  if (t) {
2588
2567
  var n = {};
2589
2568
  for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
2590
2569
  n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[V]._onDragOver(n);
2591
2570
  }
2592
2571
  }
2593
- }, Ia = function(e) {
2572
+ }, Ba = function(e) {
2594
2573
  W && W.parentNode[V]._isOutsideThisEl(e.target);
2595
2574
  };
2596
2575
  function Q(e, t) {
2597
2576
  if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
2598
- this.el = e, this.options = t = di({}, t), e[V] = this;
2577
+ this.el = e, this.options = t = gi({}, t), e[V] = this;
2599
2578
  var n = {
2600
2579
  group: null,
2601
2580
  sort: !0,
@@ -2608,7 +2587,7 @@ function Q(e, t) {
2608
2587
  invertedSwapThreshold: null,
2609
2588
  removeCloneOnHide: !0,
2610
2589
  direction: function() {
2611
- return ka(e, this.options);
2590
+ return Na(e, this.options);
2612
2591
  },
2613
2592
  ghostClass: "sortable-ghost",
2614
2593
  chosenClass: "sortable-chosen",
@@ -2635,17 +2614,17 @@ function Q(e, t) {
2635
2614
  x: 0,
2636
2615
  y: 0
2637
2616
  },
2638
- supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !yi,
2617
+ supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !wi,
2639
2618
  emptyInsertThreshold: 5
2640
2619
  };
2641
- for (var r in Xi.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
2642
- for (var i in Ma(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
2643
- this.nativeDraggable = t.forceFallback ? !1 : Da, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? I(e, "pointerdown", this._onTapStart) : (I(e, "mousedown", this._onTapStart), I(e, "touchstart", this._onTapStart)), this.nativeDraggable && (I(e, "dragover", this), I(e, "dragenter", this)), ca.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), di(this, Gi());
2620
+ for (var r in ea.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
2621
+ for (var i in Ia(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
2622
+ this.nativeDraggable = t.forceFallback ? !1 : ja, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? F(e, "pointerdown", this._onTapStart) : (F(e, "mousedown", this._onTapStart), F(e, "touchstart", this._onTapStart)), this.nativeDraggable && (F(e, "dragover", this), F(e, "dragenter", this)), fa.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), gi(this, Yi());
2644
2623
  }
2645
2624
  Q.prototype = {
2646
2625
  constructor: Q,
2647
2626
  _isOutsideThisEl: function(e) {
2648
- !this.el.contains(e) && e !== this.el && (ga = null);
2627
+ !this.el.contains(e) && e !== this.el && (ba = null);
2649
2628
  },
2650
2629
  _getDirection: function(e, t) {
2651
2630
  return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, W) : this.options.direction;
@@ -2653,8 +2632,8 @@ Q.prototype = {
2653
2632
  _onTapStart: function(e) {
2654
2633
  if (e.cancelable) {
2655
2634
  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;
2656
- if (Ka(n), !W && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && yi && s && s.tagName.toUpperCase() === "SELECT") && (s = Ti(s, r.draggable, n, !1), !(s && s.animated) && ea !== s)) {
2657
- if (na = Ni(s), ra = Ni(s, r.draggable), typeof l == "function") {
2635
+ if (Xa(n), !W && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && wi && s && s.tagName.toUpperCase() === "SELECT") && (s = Ai(s, r.draggable, n, !1), !(s && s.animated) && ia !== s)) {
2636
+ if (oa = B(s), sa = B(s, r.draggable), typeof l == "function") {
2658
2637
  if (l.call(this, e, s, this)) {
2659
2638
  U({
2660
2639
  sortable: t,
@@ -2667,7 +2646,7 @@ Q.prototype = {
2667
2646
  return;
2668
2647
  }
2669
2648
  } else if (l && (l = l.split(",").some(function(r) {
2670
- if (r = Ti(c, r.trim(), n, !1), r) return U({
2649
+ if (r = Ai(c, r.trim(), n, !1), r) return U({
2671
2650
  sortable: t,
2672
2651
  rootEl: r,
2673
2652
  name: "filter",
@@ -2679,36 +2658,36 @@ Q.prototype = {
2679
2658
  i && e.cancelable && e.preventDefault();
2680
2659
  return;
2681
2660
  }
2682
- r.handle && !Ti(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
2661
+ r.handle && !Ai(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
2683
2662
  }
2684
2663
  }
2685
2664
  },
2686
2665
  _prepareDragStart: function(e, t, n) {
2687
2666
  var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
2688
2667
  if (n && !W && n.parentNode === i) {
2689
- var c = B(n);
2690
- if (q = i, W = n, G = W.parentNode, $i = W.nextSibling, ea = n, aa = a.group, Q.dragged = W, la = {
2668
+ var c = z(n);
2669
+ if (q = i, W = n, G = W.parentNode, ra = W.nextSibling, ia = n, la = a.group, Q.dragged = W, pa = {
2691
2670
  target: W,
2692
2671
  clientX: (t || e).clientX,
2693
2672
  clientY: (t || e).clientY
2694
- }, pa = la.clientX - c.left, ma = la.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, W.style["will-change"] = "all", s = function() {
2673
+ }, _a = pa.clientX - c.left, va = pa.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, W.style["will-change"] = "all", s = function() {
2695
2674
  if (H("delayEnded", r, { evt: e }), Q.eventCanceled) {
2696
2675
  r._onDrop();
2697
2676
  return;
2698
2677
  }
2699
- r._disableDelayedDragEvents(), !vi && r.nativeDraggable && (W.draggable = !0), r._triggerDragStart(e, t), U({
2678
+ r._disableDelayedDragEvents(), !Ci && r.nativeDraggable && (W.draggable = !0), r._triggerDragStart(e, t), U({
2700
2679
  sortable: r,
2701
2680
  name: "choose",
2702
2681
  originalEvent: e
2703
- }), R(W, a.chosenClass, !0);
2682
+ }), L(W, a.chosenClass, !0);
2704
2683
  }, a.ignore.split(",").forEach(function(e) {
2705
- Oi(W, e.trim(), za);
2706
- }), I(o, "dragover", Fa), I(o, "mousemove", Fa), I(o, "touchmove", Fa), I(o, "mouseup", r._onDrop), I(o, "touchend", r._onDrop), I(o, "touchcancel", r._onDrop), vi && this.nativeDraggable && (this.options.touchStartThreshold = 4, W.draggable = !0), H("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(_i || gi))) {
2684
+ Ni(W, e.trim(), Ua);
2685
+ }), F(o, "dragover", za), F(o, "mousemove", za), F(o, "touchmove", za), F(o, "mouseup", r._onDrop), F(o, "touchend", r._onDrop), F(o, "touchcancel", r._onDrop), Ci && this.nativeDraggable && (this.options.touchStartThreshold = 4, W.draggable = !0), H("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Si || xi))) {
2707
2686
  if (Q.eventCanceled) {
2708
2687
  this._onDrop();
2709
2688
  return;
2710
2689
  }
2711
- I(o, "mouseup", r._disableDelayedDrag), I(o, "touchend", r._disableDelayedDrag), I(o, "touchcancel", r._disableDelayedDrag), I(o, "mousemove", r._delayedDragTouchMoveHandler), I(o, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && I(o, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
2690
+ F(o, "mouseup", r._disableDelayedDrag), F(o, "touchend", r._disableDelayedDrag), F(o, "touchcancel", r._disableDelayedDrag), F(o, "mousemove", r._delayedDragTouchMoveHandler), F(o, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && F(o, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
2712
2691
  } else s();
2713
2692
  }
2714
2693
  },
@@ -2717,25 +2696,25 @@ Q.prototype = {
2717
2696
  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();
2718
2697
  },
2719
2698
  _disableDelayedDrag: function() {
2720
- W && za(W), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2699
+ W && Ua(W), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2721
2700
  },
2722
2701
  _disableDelayedDragEvents: function() {
2723
2702
  var e = this.el.ownerDocument;
2724
- L(e, "mouseup", this._disableDelayedDrag), L(e, "touchend", this._disableDelayedDrag), L(e, "touchcancel", this._disableDelayedDrag), L(e, "mousemove", this._delayedDragTouchMoveHandler), L(e, "touchmove", this._delayedDragTouchMoveHandler), L(e, "pointermove", this._delayedDragTouchMoveHandler);
2703
+ I(e, "mouseup", this._disableDelayedDrag), I(e, "touchend", this._disableDelayedDrag), I(e, "touchcancel", this._disableDelayedDrag), I(e, "mousemove", this._delayedDragTouchMoveHandler), I(e, "touchmove", this._delayedDragTouchMoveHandler), I(e, "pointermove", this._delayedDragTouchMoveHandler);
2725
2704
  },
2726
2705
  _triggerDragStart: function(e, t) {
2727
- t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? I(document, "pointermove", this._onTouchMove) : t ? I(document, "touchmove", this._onTouchMove) : I(document, "mousemove", this._onTouchMove) : (I(W, "dragend", this), I(q, "dragstart", this._onDragStart));
2706
+ t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? F(document, "pointermove", this._onTouchMove) : t ? F(document, "touchmove", this._onTouchMove) : F(document, "mousemove", this._onTouchMove) : (F(W, "dragend", this), F(q, "dragstart", this._onDragStart));
2728
2707
  try {
2729
- document.selection ? qa(function() {
2708
+ document.selection ? Za(function() {
2730
2709
  document.selection.empty();
2731
2710
  }) : window.getSelection().removeAllRanges();
2732
2711
  } catch {}
2733
2712
  },
2734
2713
  _dragStarted: function(e, t) {
2735
- if (oa = !1, q && W) {
2736
- H("dragStarted", this, { evt: t }), this.nativeDraggable && I(document, "dragover", Ia);
2714
+ if (ua = !1, q && W) {
2715
+ H("dragStarted", this, { evt: t }), this.nativeDraggable && F(document, "dragover", Ba);
2737
2716
  var n = this.options;
2738
- !e && R(W, n.dragClass, !1), R(W, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), U({
2717
+ !e && L(W, n.dragClass, !1), L(W, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), U({
2739
2718
  sortable: this,
2740
2719
  name: "start",
2741
2720
  originalEvent: t
@@ -2743,33 +2722,33 @@ Q.prototype = {
2743
2722
  } else this._nulling();
2744
2723
  },
2745
2724
  _emulateDragOver: function() {
2746
- if (ua) {
2747
- this._lastX = ua.clientX, this._lastY = ua.clientY, Na();
2748
- for (var e = document.elementFromPoint(ua.clientX, ua.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(ua.clientX, ua.clientY), e !== t);) t = e;
2725
+ if (ma) {
2726
+ this._lastX = ma.clientX, this._lastY = ma.clientY, La();
2727
+ for (var e = document.elementFromPoint(ma.clientX, ma.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(ma.clientX, ma.clientY), e !== t);) t = e;
2749
2728
  if (W.parentNode[V]._isOutsideThisEl(e), t) do {
2750
2729
  if (t[V]) {
2751
2730
  var n = void 0;
2752
2731
  if (n = t[V]._onDragOver({
2753
- clientX: ua.clientX,
2754
- clientY: ua.clientY,
2732
+ clientX: ma.clientX,
2733
+ clientY: ma.clientY,
2755
2734
  target: e,
2756
2735
  rootEl: t
2757
2736
  }), n && !this.options.dragoverBubble) break;
2758
2737
  }
2759
2738
  e = t;
2760
2739
  } while (t = t.parentNode);
2761
- Pa();
2740
+ Ra();
2762
2741
  }
2763
2742
  },
2764
2743
  _onTouchMove: function(e) {
2765
- if (la) {
2766
- var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = K && Di(K, !0), o = K && a && a.a, s = K && a && a.d, c = Ta && Z && Pi(Z), l = (i.clientX - la.clientX + r.x) / (o || 1) + (c ? c[0] - xa[0] : 0) / (o || 1), u = (i.clientY - la.clientY + r.y) / (s || 1) + (c ? c[1] - xa[1] : 0) / (s || 1);
2767
- if (!Q.active && !oa) {
2744
+ if (pa) {
2745
+ var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = K && Mi(K, !0), o = K && a && a.a, s = K && a && a.d, c = ka && Z && Ri(Z), l = (i.clientX - pa.clientX + r.x) / (o || 1) + (c ? c[0] - Ta[0] : 0) / (o || 1), u = (i.clientY - pa.clientY + r.y) / (s || 1) + (c ? c[1] - Ta[1] : 0) / (s || 1);
2746
+ if (!Q.active && !ua) {
2768
2747
  if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
2769
2748
  this._onDragStart(e, !0);
2770
2749
  }
2771
2750
  if (K) {
2772
- a ? (a.e += l - (da || 0), a.f += u - (fa || 0)) : a = {
2751
+ a ? (a.e += l - (ha || 0), a.f += u - (ga || 0)) : a = {
2773
2752
  a: 1,
2774
2753
  b: 0,
2775
2754
  c: 0,
@@ -2778,19 +2757,19 @@ Q.prototype = {
2778
2757
  f: u
2779
2758
  };
2780
2759
  var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
2781
- z(K, "webkitTransform", d), z(K, "mozTransform", d), z(K, "msTransform", d), z(K, "transform", d), da = l, fa = u, ua = i;
2760
+ R(K, "webkitTransform", d), R(K, "mozTransform", d), R(K, "msTransform", d), R(K, "transform", d), ha = l, ga = u, ma = i;
2782
2761
  }
2783
2762
  e.cancelable && e.preventDefault();
2784
2763
  }
2785
2764
  },
2786
2765
  _appendGhost: function() {
2787
2766
  if (!K) {
2788
- var e = this.options.fallbackOnBody ? document.body : q, t = B(W, !0, Ta, !0, e), n = this.options;
2789
- if (Ta) {
2790
- for (Z = e; z(Z, "position") === "static" && z(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
2791
- Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = ki()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = ki(), xa = Pi(Z);
2767
+ var e = this.options.fallbackOnBody ? document.body : q, t = z(W, !0, ka, !0, e), n = this.options;
2768
+ if (ka) {
2769
+ for (Z = e; R(Z, "position") === "static" && R(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
2770
+ Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = Pi()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = Pi(), Ta = Ri(Z);
2792
2771
  }
2793
- K = W.cloneNode(!0), R(K, n.ghostClass, !1), R(K, n.fallbackClass, !0), R(K, n.dragClass, !0), z(K, "transition", ""), z(K, "transform", ""), z(K, "box-sizing", "border-box"), z(K, "margin", 0), z(K, "top", t.top), z(K, "left", t.left), z(K, "width", t.width), z(K, "height", t.height), z(K, "opacity", "0.8"), z(K, "position", Ta ? "absolute" : "fixed"), z(K, "zIndex", "100000"), z(K, "pointerEvents", "none"), Q.ghost = K, e.appendChild(K), z(K, "transform-origin", pa / parseInt(K.style.width) * 100 + "% " + ma / parseInt(K.style.height) * 100 + "%");
2772
+ K = W.cloneNode(!0), L(K, n.ghostClass, !1), L(K, n.fallbackClass, !0), L(K, n.dragClass, !0), R(K, "transition", ""), R(K, "transform", ""), R(K, "box-sizing", "border-box"), R(K, "margin", 0), R(K, "top", t.top), R(K, "left", t.left), R(K, "width", t.width), R(K, "height", t.height), R(K, "opacity", "0.8"), R(K, "position", ka ? "absolute" : "fixed"), R(K, "zIndex", "100000"), R(K, "pointerEvents", "none"), Q.ghost = K, e.appendChild(K), R(K, "transform-origin", _a / parseInt(K.style.width) * 100 + "% " + va / parseInt(K.style.height) * 100 + "%");
2794
2773
  }
2795
2774
  },
2796
2775
  _onDragStart: function(e, t) {
@@ -2799,18 +2778,18 @@ Q.prototype = {
2799
2778
  this._onDrop();
2800
2779
  return;
2801
2780
  }
2802
- H("setupClone", this), Q.eventCanceled || (J = Ui(W), J.removeAttribute("id"), J.draggable = !1, J.style["will-change"] = "", this._hideClone(), R(J, this.options.chosenClass, !1), Q.clone = J), n.cloneId = qa(function() {
2781
+ H("setupClone", this), Q.eventCanceled || (J = qi(W), J.removeAttribute("id"), J.draggable = !1, J.style["will-change"] = "", this._hideClone(), L(J, this.options.chosenClass, !1), Q.clone = J), n.cloneId = Za(function() {
2803
2782
  H("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || q.insertBefore(J, W), n._hideClone(), U({
2804
2783
  sortable: n,
2805
2784
  name: "clone"
2806
2785
  }));
2807
- }), !t && R(W, i.dragClass, !0), t ? (sa = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (L(document, "mouseup", n._onDrop), L(document, "touchend", n._onDrop), L(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, W)), I(document, "drop", n), z(W, "transform", "translateZ(0)")), oa = !0, n._dragStartId = qa(n._dragStarted.bind(n, t, e)), I(document, "selectstart", n), ha = !0, yi && z(document.body, "user-select", "none");
2786
+ }), !t && L(W, i.dragClass, !0), t ? (da = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (I(document, "mouseup", n._onDrop), I(document, "touchend", n._onDrop), I(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, W)), F(document, "drop", n), R(W, "transform", "translateZ(0)")), ua = !0, n._dragStartId = Za(n._dragStarted.bind(n, t, e)), F(document, "selectstart", n), ya = !0, wi && R(document.body, "user-select", "none");
2808
2787
  },
2809
2788
  _onDragOver: function(e) {
2810
- var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = aa === s, u = o.sort, d = X || c, f, p = this, m = !1;
2811
- if (Sa) return;
2789
+ var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = la === s, u = o.sort, d = X || c, f, p = this, m = !1;
2790
+ if (Ea) return;
2812
2791
  function h(o, s) {
2813
- H(o, p, ci({
2792
+ H(o, p, pi({
2814
2793
  evt: e,
2815
2794
  isOwner: l,
2816
2795
  axis: f ? "vertical" : "horizontal",
@@ -2822,7 +2801,7 @@ Q.prototype = {
2822
2801
  target: n,
2823
2802
  completed: _,
2824
2803
  onMove: function(n, i) {
2825
- return Ra(q, t, W, r, n, B(n), e, i);
2804
+ return Ha(q, t, W, r, n, z(n), e, i);
2826
2805
  },
2827
2806
  changed: v
2828
2807
  }, s));
@@ -2831,50 +2810,50 @@ Q.prototype = {
2831
2810
  h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
2832
2811
  }
2833
2812
  function _(r) {
2834
- return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (R(W, X ? X.options.ghostClass : c.options.ghostClass, !1), R(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() {
2813
+ return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (L(W, X ? X.options.ghostClass : c.options.ghostClass, !1), L(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() {
2835
2814
  h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
2836
- }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === W && !W.animated || n === t && !n.animated) && (ga = null), !o.dragoverBubble && !e.rootEl && n !== document && (W.parentNode[V]._isOutsideThisEl(e.target), !r && Fa(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
2815
+ }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === W && !W.animated || n === t && !n.animated) && (ba = null), !o.dragoverBubble && !e.rootEl && n !== document && (W.parentNode[V]._isOutsideThisEl(e.target), !r && za(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
2837
2816
  }
2838
2817
  function v() {
2839
- Y = Ni(W), ia = Ni(W, o.draggable), U({
2818
+ Y = B(W), ca = B(W, o.draggable), U({
2840
2819
  sortable: p,
2841
2820
  name: "change",
2842
2821
  toEl: t,
2843
2822
  newIndex: Y,
2844
- newDraggableIndex: ia,
2823
+ newDraggableIndex: ca,
2845
2824
  originalEvent: e
2846
2825
  });
2847
2826
  }
2848
- if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Ti(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
2827
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Ai(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
2849
2828
  if (W.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
2850
- if (sa = !1, c && !o.disabled && (l ? u || (a = G !== q) : X === this || (this.lastPutMode = aa.checkPull(this, c, W, e)) && s.checkPut(this, c, W, e))) {
2851
- if (f = this._getDirection(e, n) === "vertical", r = B(W), h("dragOverValid"), Q.eventCanceled) return m;
2852
- if (a) return G = q, g(), this._hideClone(), h("revert"), Q.eventCanceled || ($i ? q.insertBefore(W, $i) : q.appendChild(W)), _(!0);
2853
- var y = Mi(t, o.draggable);
2854
- if (!y || Ha(e, f, this) && !y.animated) {
2829
+ if (da = !1, c && !o.disabled && (l ? u || (a = G !== q) : X === this || (this.lastPutMode = la.checkPull(this, c, W, e)) && s.checkPut(this, c, W, e))) {
2830
+ if (f = this._getDirection(e, n) === "vertical", r = z(W), h("dragOverValid"), Q.eventCanceled) return m;
2831
+ if (a) return G = q, g(), this._hideClone(), h("revert"), Q.eventCanceled || (ra ? q.insertBefore(W, ra) : q.appendChild(W)), _(!0);
2832
+ var y = Li(t, o.draggable);
2833
+ if (!y || Ka(e, f, this) && !y.animated) {
2855
2834
  if (y === W) return _(!1);
2856
- if (y && t === e.target && (n = y), n && (i = B(n)), Ra(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);
2857
- } else if (y && Va(e, f, this)) {
2858
- var b = ji(t, 0, o, !0);
2835
+ if (y && t === e.target && (n = y), n && (i = z(n)), Ha(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);
2836
+ } else if (y && Ga(e, f, this)) {
2837
+ var b = Ii(t, 0, o, !0);
2859
2838
  if (b === W) return _(!1);
2860
- if (n = b, i = B(n), Ra(q, t, W, r, n, i, e, !1) !== !1) return g(), t.insertBefore(W, b), G = t, v(), _(!0);
2839
+ if (n = b, i = z(n), Ha(q, t, W, r, n, i, e, !1) !== !1) return g(), t.insertBefore(W, b), G = t, v(), _(!0);
2861
2840
  } else if (n.parentNode === t) {
2862
- i = B(n);
2863
- var x = 0, S, C = W.parentNode !== t, w = !Aa(W.animated && W.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = Ai(n, "top", "top") || Ai(W, "top", "top"), ee = E ? E.scrollTop : void 0;
2864
- ga !== n && (S = i[T], va = !1, ya = !w && o.invertSwap || C), x = Ua(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, ya, ga === n);
2841
+ i = z(n);
2842
+ var x = 0, S, C = W.parentNode !== t, w = !Pa(W.animated && W.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = Fi(n, "top", "top") || Fi(W, "top", "top"), ee = E ? E.scrollTop : void 0;
2843
+ ba !== n && (S = i[T], Sa = !1, Ca = !w && o.invertSwap || C), x = qa(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Ca, ba === n);
2865
2844
  var D;
2866
2845
  if (x !== 0) {
2867
- var O = Ni(W);
2846
+ var O = B(W);
2868
2847
  do
2869
2848
  O -= x, D = G.children[O];
2870
- while (D && (z(D, "display") === "none" || D === K));
2849
+ while (D && (R(D, "display") === "none" || D === K));
2871
2850
  }
2872
2851
  if (x === 0 || D === n) return _(!1);
2873
- ga = n, _a = x;
2852
+ ba = n, xa = x;
2874
2853
  var k = n.nextElementSibling, te = !1;
2875
2854
  te = x === 1;
2876
- var A = Ra(q, t, W, r, n, i, e, te);
2877
- if (A !== !1) return (A === 1 || A === -1) && (te = A === 1), Sa = !0, setTimeout(Ba, 30), g(), te && !k ? t.appendChild(W) : n.parentNode.insertBefore(W, te ? k : n), E && Hi(E, 0, ee - E.scrollTop), G = W.parentNode, S !== void 0 && !ya && (ba = Math.abs(S - B(n)[T])), v(), _(!0);
2855
+ var A = Ha(q, t, W, r, n, i, e, te);
2856
+ if (A !== !1) return (A === 1 || A === -1) && (te = A === 1), Ea = !0, setTimeout(Wa, 30), g(), te && !k ? t.appendChild(W) : n.parentNode.insertBefore(W, te ? k : n), E && Ki(E, 0, ee - E.scrollTop), G = W.parentNode, S !== void 0 && !Ca && (wa = Math.abs(S - z(n)[T])), v(), _(!0);
2878
2857
  }
2879
2858
  if (t.contains(W)) return _(!1);
2880
2859
  }
@@ -2882,26 +2861,26 @@ Q.prototype = {
2882
2861
  },
2883
2862
  _ignoreWhileAnimating: null,
2884
2863
  _offMoveEvents: function() {
2885
- L(document, "mousemove", this._onTouchMove), L(document, "touchmove", this._onTouchMove), L(document, "pointermove", this._onTouchMove), L(document, "dragover", Fa), L(document, "mousemove", Fa), L(document, "touchmove", Fa);
2864
+ I(document, "mousemove", this._onTouchMove), I(document, "touchmove", this._onTouchMove), I(document, "pointermove", this._onTouchMove), I(document, "dragover", za), I(document, "mousemove", za), I(document, "touchmove", za);
2886
2865
  },
2887
2866
  _offUpEvents: function() {
2888
2867
  var e = this.el.ownerDocument;
2889
- L(e, "mouseup", this._onDrop), L(e, "touchend", this._onDrop), L(e, "pointerup", this._onDrop), L(e, "touchcancel", this._onDrop), L(document, "selectstart", this);
2868
+ I(e, "mouseup", this._onDrop), I(e, "touchend", this._onDrop), I(e, "pointerup", this._onDrop), I(e, "touchcancel", this._onDrop), I(document, "selectstart", this);
2890
2869
  },
2891
2870
  _onDrop: function(e) {
2892
2871
  var t = this.el, n = this.options;
2893
- if (Y = Ni(W), ia = Ni(W, n.draggable), H("drop", this, { evt: e }), G = W && W.parentNode, Y = Ni(W), ia = Ni(W, n.draggable), Q.eventCanceled) {
2872
+ if (Y = B(W), ca = B(W, n.draggable), H("drop", this, { evt: e }), G = W && W.parentNode, Y = B(W), ca = B(W, n.draggable), Q.eventCanceled) {
2894
2873
  this._nulling();
2895
2874
  return;
2896
2875
  }
2897
- oa = !1, ya = !1, va = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Ja(this.cloneId), Ja(this._dragStartId), this.nativeDraggable && (L(document, "drop", this), L(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), yi && z(document.body, "user-select", ""), z(W, "transform", ""), e && (ha && (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 && L(W, "dragend", this), za(W), W.style["will-change"] = "", ha && !oa && R(W, X ? X.options.ghostClass : this.options.ghostClass, !1), R(W, this.options.chosenClass, !1), U({
2876
+ ua = !1, Ca = !1, Sa = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Qa(this.cloneId), Qa(this._dragStartId), this.nativeDraggable && (I(document, "drop", this), I(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), wi && R(document.body, "user-select", ""), R(W, "transform", ""), e && (ya && (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 && I(W, "dragend", this), Ua(W), W.style["will-change"] = "", ya && !ua && L(W, X ? X.options.ghostClass : this.options.ghostClass, !1), L(W, this.options.chosenClass, !1), U({
2898
2877
  sortable: this,
2899
2878
  name: "unchoose",
2900
2879
  toEl: G,
2901
2880
  newIndex: null,
2902
2881
  newDraggableIndex: null,
2903
2882
  originalEvent: e
2904
- }), q === G ? Y !== na && Y >= 0 && (U({
2883
+ }), q === G ? Y !== oa && Y >= 0 && (U({
2905
2884
  sortable: this,
2906
2885
  name: "update",
2907
2886
  toEl: G,
@@ -2933,7 +2912,7 @@ Q.prototype = {
2933
2912
  name: "sort",
2934
2913
  toEl: G,
2935
2914
  originalEvent: e
2936
- })), X && X.save()), Q.active && ((Y == null || Y === -1) && (Y = na, ia = ra), U({
2915
+ })), X && X.save()), Q.active && ((Y == null || Y === -1) && (Y = oa, ca = sa), U({
2937
2916
  sortable: this,
2938
2917
  name: "end",
2939
2918
  toEl: G,
@@ -2941,9 +2920,9 @@ Q.prototype = {
2941
2920
  }), this.save()))), this._nulling();
2942
2921
  },
2943
2922
  _nulling: function() {
2944
- H("nulling", this), q = W = G = K = $i = J = ea = ta = la = ua = ha = Y = ia = na = ra = ga = _a = X = aa = Q.dragged = Q.ghost = Q.clone = Q.active = null, Ca.forEach(function(e) {
2923
+ H("nulling", this), q = W = G = K = ra = J = ia = aa = pa = ma = ya = Y = ca = oa = sa = ba = xa = X = la = Q.dragged = Q.ghost = Q.clone = Q.active = null, Da.forEach(function(e) {
2945
2924
  e.checked = !0;
2946
- }), Ca.length = da = fa = 0;
2925
+ }), Da.length = ha = ga = 0;
2947
2926
  },
2948
2927
  handleEvent: function(e) {
2949
2928
  switch (e.type) {
@@ -2953,7 +2932,7 @@ Q.prototype = {
2953
2932
  break;
2954
2933
  case "dragenter":
2955
2934
  case "dragover":
2956
- W && (this._onDragOver(e), La(e));
2935
+ W && (this._onDragOver(e), Va(e));
2957
2936
  break;
2958
2937
  case "selectstart":
2959
2938
  e.preventDefault();
@@ -2961,14 +2940,14 @@ Q.prototype = {
2961
2940
  }
2962
2941
  },
2963
2942
  toArray: function() {
2964
- for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Ti(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || Ga(t));
2943
+ for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Ai(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || Ya(t));
2965
2944
  return e;
2966
2945
  },
2967
2946
  sort: function(e, t) {
2968
2947
  var n = {}, r = this.el;
2969
2948
  this.toArray().forEach(function(e, t) {
2970
2949
  var i = r.children[t];
2971
- Ti(i, this.options.draggable, r, !1) && (n[e] = i);
2950
+ Ai(i, this.options.draggable, r, !1) && (n[e] = i);
2972
2951
  }, this), t && this.captureAnimationState(), e.forEach(function(e) {
2973
2952
  n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
2974
2953
  }), t && this.animateAll();
@@ -2978,25 +2957,25 @@ Q.prototype = {
2978
2957
  e && e.set && e.set(this);
2979
2958
  },
2980
2959
  closest: function(e, t) {
2981
- return Ti(e, t || this.options.draggable, this.el, !1);
2960
+ return Ai(e, t || this.options.draggable, this.el, !1);
2982
2961
  },
2983
2962
  option: function(e, t) {
2984
2963
  var n = this.options;
2985
2964
  if (t === void 0) return n[e];
2986
- var r = Xi.modifyOption(this, e, t);
2987
- r === void 0 ? n[e] = t : n[e] = r, e === "group" && Ma(n);
2965
+ var r = ea.modifyOption(this, e, t);
2966
+ r === void 0 ? n[e] = t : n[e] = r, e === "group" && Ia(n);
2988
2967
  },
2989
2968
  destroy: function() {
2990
2969
  H("destroy", this);
2991
2970
  var e = this.el;
2992
- e[V] = null, L(e, "mousedown", this._onTapStart), L(e, "touchstart", this._onTapStart), L(e, "pointerdown", this._onTapStart), this.nativeDraggable && (L(e, "dragover", this), L(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
2971
+ e[V] = null, I(e, "mousedown", this._onTapStart), I(e, "touchstart", this._onTapStart), I(e, "pointerdown", this._onTapStart), this.nativeDraggable && (I(e, "dragover", this), I(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
2993
2972
  e.removeAttribute("draggable");
2994
- }), this._onDrop(), this._disableDelayedDragEvents(), ca.splice(ca.indexOf(this.el), 1), this.el = e = null;
2973
+ }), this._onDrop(), this._disableDelayedDragEvents(), fa.splice(fa.indexOf(this.el), 1), this.el = e = null;
2995
2974
  },
2996
2975
  _hideClone: function() {
2997
- if (!ta) {
2976
+ if (!aa) {
2998
2977
  if (H("hideClone", this), Q.eventCanceled) return;
2999
- z(J, "display", "none"), this.options.removeCloneOnHide && J.parentNode && J.parentNode.removeChild(J), ta = !0;
2978
+ R(J, "display", "none"), this.options.removeCloneOnHide && J.parentNode && J.parentNode.removeChild(J), aa = !0;
3000
2979
  }
3001
2980
  },
3002
2981
  _showClone: function(e) {
@@ -3004,99 +2983,99 @@ Q.prototype = {
3004
2983
  this._hideClone();
3005
2984
  return;
3006
2985
  }
3007
- if (ta) {
2986
+ if (aa) {
3008
2987
  if (H("showClone", this), Q.eventCanceled) return;
3009
- W.parentNode == q && !this.options.group.revertClone ? q.insertBefore(J, W) : $i ? q.insertBefore(J, $i) : q.appendChild(J), this.options.group.revertClone && this.animate(W, J), z(J, "display", ""), ta = !1;
2988
+ W.parentNode == q && !this.options.group.revertClone ? q.insertBefore(J, W) : ra ? q.insertBefore(J, ra) : q.appendChild(J), this.options.group.revertClone && this.animate(W, J), R(J, "display", ""), aa = !1;
3010
2989
  }
3011
2990
  }
3012
2991
  };
3013
- function La(e) {
2992
+ function Va(e) {
3014
2993
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
3015
2994
  }
3016
- function Ra(e, t, n, r, i, a, o, s) {
2995
+ function Ha(e, t, n, r, i, a, o, s) {
3017
2996
  var c, l = e[V], u = l.options.onMove, d;
3018
- return window.CustomEvent && !gi && !_i ? c = new CustomEvent("move", {
2997
+ return window.CustomEvent && !xi && !Si ? c = new CustomEvent("move", {
3019
2998
  bubbles: !0,
3020
2999
  cancelable: !0
3021
- }) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || B(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
3000
+ }) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || z(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
3022
3001
  }
3023
- function za(e) {
3002
+ function Ua(e) {
3024
3003
  e.draggable = !1;
3025
3004
  }
3026
- function Ba() {
3027
- Sa = !1;
3005
+ function Wa() {
3006
+ Ea = !1;
3028
3007
  }
3029
- function Va(e, t, n) {
3030
- var r = B(ji(n.el, 0, n.options, !0)), i = Wi(n.el, n.options, K), a = 10;
3008
+ function Ga(e, t, n) {
3009
+ var r = z(Ii(n.el, 0, n.options, !0)), i = Ji(n.el, n.options, K), a = 10;
3031
3010
  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;
3032
3011
  }
3033
- function Ha(e, t, n) {
3034
- var r = B(Mi(n.el, n.options.draggable)), i = Wi(n.el, n.options, K), a = 10;
3012
+ function Ka(e, t, n) {
3013
+ var r = z(Li(n.el, n.options.draggable)), i = Ji(n.el, n.options, K), a = 10;
3035
3014
  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;
3036
3015
  }
3037
- function Ua(e, t, n, r, i, a, o, s) {
3016
+ function qa(e, t, n, r, i, a, o, s) {
3038
3017
  var c = r ? e.clientY : e.clientX, l = r ? n.height : n.width, u = r ? n.top : n.left, d = r ? n.bottom : n.right, f = !1;
3039
3018
  if (!o) {
3040
- if (s && ba < l * i) {
3041
- if (!va && (_a === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (va = !0), va) f = !0;
3042
- else if (_a === 1 ? c < u + ba : c > d - ba) return -_a;
3043
- } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return Wa(t);
3019
+ if (s && wa < l * i) {
3020
+ if (!Sa && (xa === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Sa = !0), Sa) f = !0;
3021
+ else if (xa === 1 ? c < u + wa : c > d - wa) return -xa;
3022
+ } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return Ja(t);
3044
3023
  }
3045
3024
  return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
3046
3025
  }
3047
- function Wa(e) {
3048
- return Ni(W) < Ni(e) ? 1 : -1;
3026
+ function Ja(e) {
3027
+ return B(W) < B(e) ? 1 : -1;
3049
3028
  }
3050
- function Ga(e) {
3029
+ function Ya(e) {
3051
3030
  for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
3052
3031
  return r.toString(36);
3053
3032
  }
3054
- function Ka(e) {
3055
- Ca.length = 0;
3033
+ function Xa(e) {
3034
+ Da.length = 0;
3056
3035
  for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
3057
3036
  var r = t[n];
3058
- r.checked && Ca.push(r);
3037
+ r.checked && Da.push(r);
3059
3038
  }
3060
3039
  }
3061
- function qa(e) {
3040
+ function Za(e) {
3062
3041
  return setTimeout(e, 0);
3063
3042
  }
3064
- function Ja(e) {
3043
+ function Qa(e) {
3065
3044
  return clearTimeout(e);
3066
3045
  }
3067
- wa && I(document, "touchmove", function(e) {
3068
- (Q.active || oa) && e.cancelable && e.preventDefault();
3046
+ Oa && F(document, "touchmove", function(e) {
3047
+ (Q.active || ua) && e.cancelable && e.preventDefault();
3069
3048
  }), Q.utils = {
3070
- on: I,
3071
- off: L,
3072
- css: z,
3073
- find: Oi,
3049
+ on: F,
3050
+ off: I,
3051
+ css: R,
3052
+ find: Ni,
3074
3053
  is: function(e, t) {
3075
- return !!Ti(e, t, e, !1);
3076
- },
3077
- extend: Li,
3078
- throttle: Bi,
3079
- closest: Ti,
3080
- toggleClass: R,
3081
- clone: Ui,
3082
- index: Ni,
3083
- nextTick: qa,
3084
- cancelNextTick: Ja,
3085
- detectDirection: ka,
3086
- getChild: ji
3054
+ return !!Ai(e, t, e, !1);
3055
+ },
3056
+ extend: Vi,
3057
+ throttle: Wi,
3058
+ closest: Ai,
3059
+ toggleClass: L,
3060
+ clone: qi,
3061
+ index: B,
3062
+ nextTick: Za,
3063
+ cancelNextTick: Qa,
3064
+ detectDirection: Na,
3065
+ getChild: Ii
3087
3066
  }, Q.get = function(e) {
3088
3067
  return e[V];
3089
3068
  }, Q.mount = function() {
3090
3069
  var e = [...arguments];
3091
3070
  e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
3092
3071
  if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
3093
- e.utils && (Q.utils = ci(ci({}, Q.utils), e.utils)), Xi.mount(e);
3072
+ e.utils && (Q.utils = pi(pi({}, Q.utils), e.utils)), ea.mount(e);
3094
3073
  });
3095
3074
  }, Q.create = function(e, t) {
3096
3075
  return new Q(e, t);
3097
- }, Q.version = mi;
3098
- var $ = [], Ya, Xa, Za = !1, Qa, $a, eo, to;
3099
- function no() {
3076
+ }, Q.version = yi;
3077
+ var $ = [], $a, eo, to = !1, no, ro, io, ao;
3078
+ function oo() {
3100
3079
  function e() {
3101
3080
  for (var e in this.defaults = {
3102
3081
  scroll: !0,
@@ -3109,70 +3088,70 @@ function no() {
3109
3088
  return e.prototype = {
3110
3089
  dragStarted: function(e) {
3111
3090
  var t = e.originalEvent;
3112
- this.sortable.nativeDraggable ? I(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? I(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? I(document, "touchmove", this._handleFallbackAutoScroll) : I(document, "mousemove", this._handleFallbackAutoScroll);
3091
+ this.sortable.nativeDraggable ? F(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? F(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? F(document, "touchmove", this._handleFallbackAutoScroll) : F(document, "mousemove", this._handleFallbackAutoScroll);
3113
3092
  },
3114
3093
  dragOverCompleted: function(e) {
3115
3094
  var t = e.originalEvent;
3116
3095
  !this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
3117
3096
  },
3118
3097
  drop: function() {
3119
- this.sortable.nativeDraggable ? L(document, "dragover", this._handleAutoScroll) : (L(document, "pointermove", this._handleFallbackAutoScroll), L(document, "touchmove", this._handleFallbackAutoScroll), L(document, "mousemove", this._handleFallbackAutoScroll)), io(), ro(), Vi();
3098
+ this.sortable.nativeDraggable ? I(document, "dragover", this._handleAutoScroll) : (I(document, "pointermove", this._handleFallbackAutoScroll), I(document, "touchmove", this._handleFallbackAutoScroll), I(document, "mousemove", this._handleFallbackAutoScroll)), co(), so(), Gi();
3120
3099
  },
3121
3100
  nulling: function() {
3122
- eo = Xa = Ya = Za = to = Qa = $a = null, $.length = 0;
3101
+ io = eo = $a = to = ao = no = ro = null, $.length = 0;
3123
3102
  },
3124
3103
  _handleFallbackAutoScroll: function(e) {
3125
3104
  this._handleAutoScroll(e, !0);
3126
3105
  },
3127
3106
  _handleAutoScroll: function(e, t) {
3128
3107
  var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
3129
- if (eo = e, t || this.options.forceAutoScrollFallback || _i || gi || yi) {
3130
- ao(e, this.options, a, t);
3131
- var o = Ii(a, !0);
3132
- Za && (!to || r !== Qa || i !== $a) && (to && io(), to = setInterval(function() {
3133
- var a = Ii(document.elementFromPoint(r, i), !0);
3134
- a !== o && (o = a, ro()), ao(e, n.options, a, t);
3135
- }, 10), Qa = r, $a = i);
3108
+ if (io = e, t || this.options.forceAutoScrollFallback || Si || xi || wi) {
3109
+ lo(e, this.options, a, t);
3110
+ var o = Bi(a, !0);
3111
+ to && (!ao || r !== no || i !== ro) && (ao && co(), ao = setInterval(function() {
3112
+ var a = Bi(document.elementFromPoint(r, i), !0);
3113
+ a !== o && (o = a, so()), lo(e, n.options, a, t);
3114
+ }, 10), no = r, ro = i);
3136
3115
  } else {
3137
- if (!this.options.bubbleScroll || Ii(a, !0) === ki()) {
3138
- ro();
3116
+ if (!this.options.bubbleScroll || Bi(a, !0) === Pi()) {
3117
+ so();
3139
3118
  return;
3140
3119
  }
3141
- ao(e, this.options, Ii(a, !1), !1);
3120
+ lo(e, this.options, Bi(a, !1), !1);
3142
3121
  }
3143
3122
  }
3144
- }, di(e, {
3123
+ }, gi(e, {
3145
3124
  pluginName: "scroll",
3146
3125
  initializeByDefault: !0
3147
3126
  });
3148
3127
  }
3149
- function ro() {
3128
+ function so() {
3150
3129
  $.forEach(function(e) {
3151
3130
  clearInterval(e.pid);
3152
3131
  }), $ = [];
3153
3132
  }
3154
- function io() {
3155
- clearInterval(to);
3133
+ function co() {
3134
+ clearInterval(ao);
3156
3135
  }
3157
- var ao = Bi(function(e, t, n, r) {
3136
+ var lo = Wi(function(e, t, n, r) {
3158
3137
  if (t.scroll) {
3159
- var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = ki(), l = !1, u;
3160
- Xa !== n && (Xa = n, ro(), Ya = t.scroll, u = t.scrollFn, Ya === !0 && (Ya = Ii(n, !0)));
3161
- var d = 0, f = Ya;
3138
+ var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = Pi(), l = !1, u;
3139
+ eo !== n && (eo = n, so(), $a = t.scroll, u = t.scrollFn, $a === !0 && ($a = Bi(n, !0)));
3140
+ var d = 0, f = $a;
3162
3141
  do {
3163
- var p = f, m = B(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, w = p.scrollHeight, T = z(p), E = p.scrollLeft, ee = p.scrollTop;
3142
+ var p = f, m = z(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, w = p.scrollHeight, T = R(p), E = p.scrollLeft, ee = p.scrollTop;
3164
3143
  p === c ? (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll" || T.overflowX === "visible"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll" || T.overflowY === "visible")) : (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll"));
3165
3144
  var D = x && (Math.abs(v - i) <= o && E + y < C) - (Math.abs(_ - i) <= o && !!E), O = S && (Math.abs(g - a) <= o && ee + b < w) - (Math.abs(h - a) <= o && !!ee);
3166
3145
  if (!$[d]) for (var k = 0; k <= d; k++) $[k] || ($[k] = {});
3167
3146
  ($[d].vx != D || $[d].vy != O || $[d].el !== p) && ($[d].el = p, $[d].vx = D, $[d].vy = O, clearInterval($[d].pid), (D != 0 || O != 0) && (l = !0, $[d].pid = setInterval(function() {
3168
- r && this.layer === 0 && Q.active._onTouchMove(eo);
3147
+ r && this.layer === 0 && Q.active._onTouchMove(io);
3169
3148
  var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
3170
- typeof u == "function" && u.call(Q.dragged.parentNode[V], n, t, e, eo, $[this.layer].el) !== "continue" || Hi($[this.layer].el, n, t);
3149
+ typeof u == "function" && u.call(Q.dragged.parentNode[V], n, t, e, io, $[this.layer].el) !== "continue" || Ki($[this.layer].el, n, t);
3171
3150
  }.bind({ layer: d }), 24))), d++;
3172
- } while (t.bubbleScroll && f !== c && (f = Ii(f, !1)));
3173
- Za = l;
3151
+ } while (t.bubbleScroll && f !== c && (f = Bi(f, !1)));
3152
+ to = l;
3174
3153
  }
3175
- }, 30), oo = function(e) {
3154
+ }, 30), uo = function(e) {
3176
3155
  var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
3177
3156
  if (t) {
3178
3157
  var c = n || i;
@@ -3184,8 +3163,8 @@ var ao = Bi(function(e, t, n, r) {
3184
3163
  }));
3185
3164
  }
3186
3165
  };
3187
- function so() {}
3188
- so.prototype = {
3166
+ function fo() {}
3167
+ fo.prototype = {
3189
3168
  startIndex: null,
3190
3169
  dragStart: function(e) {
3191
3170
  var t = e.oldDraggableIndex;
@@ -3194,72 +3173,72 @@ so.prototype = {
3194
3173
  onSpill: function(e) {
3195
3174
  var t = e.dragEl, n = e.putSortable;
3196
3175
  this.sortable.captureAnimationState(), n && n.captureAnimationState();
3197
- var r = ji(this.sortable.el, this.startIndex, this.options);
3176
+ var r = Ii(this.sortable.el, this.startIndex, this.options);
3198
3177
  r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
3199
3178
  },
3200
- drop: oo
3201
- }, di(so, { pluginName: "revertOnSpill" });
3202
- function co() {}
3203
- co.prototype = {
3179
+ drop: uo
3180
+ }, gi(fo, { pluginName: "revertOnSpill" });
3181
+ function po() {}
3182
+ po.prototype = {
3204
3183
  onSpill: function(e) {
3205
3184
  var t = e.dragEl, n = e.putSortable || this.sortable;
3206
3185
  n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
3207
3186
  },
3208
- drop: oo
3209
- }, di(co, { pluginName: "removeOnSpill" }), Q.mount(new no()), Q.mount(co, so);
3210
- function lo(e) {
3187
+ drop: uo
3188
+ }, gi(po, { pluginName: "removeOnSpill" }), Q.mount(new oo()), Q.mount(po, fo);
3189
+ function mo(e) {
3211
3190
  return e == null ? e : JSON.parse(JSON.stringify(e));
3212
3191
  }
3213
- function uo(e) {
3214
- ae() && ee(e);
3192
+ function ho(e) {
3193
+ se() && ee(e);
3215
3194
  }
3216
- function fo(e) {
3217
- ae() ? u(e) : r(e);
3195
+ function go(e) {
3196
+ se() ? u(e) : r(e);
3218
3197
  }
3219
- var po = null, mo = null;
3220
- function ho(e = null, t = null) {
3221
- po = e, mo = t;
3198
+ var _o = null, vo = null;
3199
+ function yo(e = null, t = null) {
3200
+ _o = e, vo = t;
3222
3201
  }
3223
- function go() {
3202
+ function bo() {
3224
3203
  return {
3225
- data: po,
3226
- clonedData: mo
3204
+ data: _o,
3205
+ clonedData: vo
3227
3206
  };
3228
3207
  }
3229
- var _o = Symbol("cloneElement");
3230
- function vo(...e) {
3231
- let t = ae()?.proxy, n = null, i = e[0], [, o, c] = e;
3208
+ var xo = Symbol("cloneElement");
3209
+ function So(...e) {
3210
+ let t = se()?.proxy, n = null, i = e[0], [, o, c] = e;
3232
3211
  Array.isArray(j(o)) || (c = o, o = null);
3233
- let l = null, { immediate: u = !0, clone: d = lo, forceFallback: f, fallbackOnBody: p, customUpdate: m } = j(c) ?? {};
3212
+ let l = null, { immediate: u = !0, clone: d = mo, forceFallback: f, fallbackOnBody: p, customUpdate: m } = j(c) ?? {};
3234
3213
  function h(e) {
3235
3214
  let { from: t, oldIndex: r, item: i } = e, a = Array.from(t.childNodes);
3236
3215
  n = f && !p ? a.slice(0, -1) : a;
3237
3216
  let s = j(j(o)?.[r]), c = d(s);
3238
- ho(s, c), i[_o] = c;
3217
+ yo(s, c), i[xo] = c;
3239
3218
  }
3240
3219
  function g(e) {
3241
- let t = e.item[_o];
3242
- if (!Xr(t)) {
3243
- if ($r(e.item), a(o)) {
3220
+ let t = e.item[xo];
3221
+ if (!ti(t)) {
3222
+ if (ii(e.item), a(o)) {
3244
3223
  let n = [...j(o)];
3245
- o.value = Yr(n, e.newDraggableIndex, t);
3224
+ o.value = ei(n, e.newDraggableIndex, t);
3246
3225
  return;
3247
3226
  }
3248
- Yr(j(o), e.newDraggableIndex, t);
3227
+ ei(j(o), e.newDraggableIndex, t);
3249
3228
  }
3250
3229
  }
3251
3230
  function _(e) {
3252
3231
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: i, pullMode: s, clone: c } = e;
3253
- if (Qr(t, n, r), s === "clone") {
3254
- $r(c);
3232
+ if (ri(t, n, r), s === "clone") {
3233
+ ii(c);
3255
3234
  return;
3256
3235
  }
3257
3236
  if (a(o)) {
3258
3237
  let e = [...j(o)];
3259
- o.value = Jr(e, i);
3238
+ o.value = $r(e, i);
3260
3239
  return;
3261
3240
  }
3262
- Jr(j(o), i);
3241
+ $r(j(o), i);
3263
3242
  }
3264
3243
  function v(e) {
3265
3244
  if (m) {
@@ -3267,12 +3246,12 @@ function vo(...e) {
3267
3246
  return;
3268
3247
  }
3269
3248
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: i, newDraggableIndex: s } = e;
3270
- if ($r(n), Qr(t, n, r), a(o)) {
3249
+ if (ii(n), ri(t, n, r), a(o)) {
3271
3250
  let e = [...j(o)];
3272
- o.value = Gr(e, i, s);
3251
+ o.value = Xr(e, i, s);
3273
3252
  return;
3274
3253
  }
3275
- Gr(j(o), i, s);
3254
+ Xr(j(o), i, s);
3276
3255
  }
3277
3256
  function y(e) {
3278
3257
  let { newIndex: t, oldIndex: i, from: a, to: o } = e, s = null, c = t === i && a === o;
@@ -3291,7 +3270,7 @@ function vo(...e) {
3291
3270
  n = null;
3292
3271
  }
3293
3272
  r(() => {
3294
- if (ho(), s) throw s;
3273
+ if (yo(), s) throw s;
3295
3274
  });
3296
3275
  }
3297
3276
  let b = {
@@ -3303,19 +3282,19 @@ function vo(...e) {
3303
3282
  };
3304
3283
  function x(e) {
3305
3284
  let n = j(i);
3306
- return e ||= Zr(n) ? ei(n, t?.$el) : n, e && !ri(e) && (e = e.$el), e || Wr("Root element not found"), e;
3285
+ return e ||= ni(n) ? ai(n, t?.$el) : n, e && !ci(e) && (e = e.$el), e || Yr("Root element not found"), e;
3307
3286
  }
3308
3287
  function S() {
3309
- let e = j(c) ?? {}, { immediate: t, clone: n } = e, r = Vr(e, ["immediate", "clone"]);
3310
- return ii(r, (e, t) => {
3311
- ai(e) && (r[e] = (e, ...n) => (oi(e, go()), t(e, ...n)));
3312
- }), ni(o === null ? {} : b, r);
3288
+ let e = j(c) ?? {}, { immediate: t, clone: n } = e, r = Kr(e, ["immediate", "clone"]);
3289
+ return li(r, (e, t) => {
3290
+ ui(e) && (r[e] = (e, ...n) => (di(e, bo()), t(e, ...n)));
3291
+ }), si(o === null ? {} : b, r);
3313
3292
  }
3314
3293
  let C = (e) => {
3315
3294
  e = x(e), l && w.destroy(), l = new Q(e, S());
3316
3295
  };
3317
3296
  s(() => c, () => {
3318
- l && ii(S(), (e, t) => {
3297
+ l && li(S(), (e, t) => {
3319
3298
  l?.option(e, t);
3320
3299
  });
3321
3300
  }, { deep: !0 });
@@ -3328,15 +3307,15 @@ function vo(...e) {
3328
3307
  toArray: () => l?.toArray(),
3329
3308
  closest: (...e) => l?.closest(...e)
3330
3309
  };
3331
- return fo(() => {
3310
+ return go(() => {
3332
3311
  u && C();
3333
- }), uo(w.destroy), Br({
3312
+ }), ho(w.destroy), Gr({
3334
3313
  start: C,
3335
3314
  pause: () => w?.option("disabled", !0),
3336
3315
  resume: () => w?.option("disabled", !1)
3337
3316
  }, w);
3338
3317
  }
3339
- var yo = [
3318
+ var Co = [
3340
3319
  "update",
3341
3320
  "start",
3342
3321
  "add",
@@ -3349,7 +3328,7 @@ var yo = [
3349
3328
  "clone",
3350
3329
  "move",
3351
3330
  "change"
3352
- ], bo = y({
3331
+ ], wo = y({
3353
3332
  name: "VueDraggable",
3354
3333
  model: {
3355
3334
  prop: "modelValue",
@@ -3399,37 +3378,37 @@ var yo = [
3399
3378
  "tag",
3400
3379
  "target",
3401
3380
  "customUpdate",
3402
- ...yo.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
3381
+ ...Co.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
3403
3382
  ],
3404
- emits: ["update:modelValue", ...yo],
3383
+ emits: ["update:modelValue", ...Co],
3405
3384
  setup(e, { slots: t, emit: n, expose: r, attrs: i }) {
3406
- let a = yo.reduce((e, t) => {
3385
+ let a = Co.reduce((e, t) => {
3407
3386
  let r = `on${t.replace(/^\S/, (e) => e.toUpperCase())}`;
3408
3387
  return e[r] = (...e) => n(t, ...e), e;
3409
3388
  }, {}), s = x(() => {
3410
- let t = S(e), { modelValue: n } = t, r = Vr(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
3389
+ let t = S(e), { modelValue: n } = t, r = Kr(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
3411
3390
  let r = j(n);
3412
3391
  return r !== void 0 && (e[t] = r), e;
3413
3392
  }, {});
3414
- return Br(Br({}, a), qr(Br(Br({}, i), o)));
3393
+ return Gr(Gr({}, a), Qr(Gr(Gr({}, i), o)));
3415
3394
  }), c = x({
3416
3395
  get: () => e.modelValue,
3417
3396
  set: (e) => n("update:modelValue", e)
3418
- }), l = h(), u = o(vo(e.target || l, c, s));
3397
+ }), l = h(), u = o(So(e.target || l, c, s));
3419
3398
  return r(u), () => f(e.tag || "div", { ref: l }, (t?.default)?.call(t, u));
3420
3399
  }
3421
- }), xo = {
3400
+ }), To = {
3422
3401
  mounted: "mounted",
3423
3402
  unmounted: "unmounted"
3424
3403
  };
3425
- xo.mounted, xo.unmounted;
3404
+ To.mounted, To.unmounted;
3426
3405
  //#endregion
3427
3406
  //#region src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
3428
- var So = { class: "tpl:w-full" }, Co = { class: "tpl:flex tpl:gap-0" }, wo = {
3407
+ var Eo = { class: "tpl:w-full" }, Do = { class: "tpl:flex tpl:gap-0" }, Oo = {
3429
3408
  key: 0,
3430
3409
  "data-testid": "section-drop-hint",
3431
3410
  class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:flex tpl:items-center tpl:justify-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
3432
- }, To = /* @__PURE__ */ y({
3411
+ }, ko = /* @__PURE__ */ y({
3433
3412
  __name: "SectionBlock",
3434
3413
  props: {
3435
3414
  block: {},
@@ -3437,13 +3416,13 @@ var So = { class: "tpl:w-full" }, Co = { class: "tpl:flex tpl:gap-0" }, wo = {
3437
3416
  },
3438
3417
  setup(n) {
3439
3418
  let r = {
3440
- title: Pr,
3441
- paragraph: _r,
3442
- image: ir,
3443
- button: rn,
3444
- divider: Hn,
3445
- custom: Bn
3446
- }, a = n, { t: o } = ft(), s = He(nt, "SectionBlock"), l = P(st, null), u = P(it, null), d = x(() => {
3419
+ title: zr,
3420
+ paragraph: Sr,
3421
+ image: lr,
3422
+ button: sn,
3423
+ divider: qn,
3424
+ custom: Gn
3425
+ }, a = n, { t: o } = ht(), s = Ke(at, "SectionBlock"), l = oe(ut, null), u = oe(st, null), d = x(() => {
3447
3426
  switch (a.block.columns) {
3448
3427
  case "2": return ["50%", "50%"];
3449
3428
  case "3": return [
@@ -3469,7 +3448,7 @@ var So = { class: "tpl:w-full" }, Co = { class: "tpl:flex tpl:gap-0" }, wo = {
3469
3448
  r[e] = n, s.updateBlock(a.block.id, { children: r });
3470
3449
  }
3471
3450
  function h(e) {
3472
- return vr(e, u, r);
3451
+ return Cr(e, u, r);
3473
3452
  }
3474
3453
  function g(e, t) {
3475
3454
  e.type === "custom" && s.updateBlock(e.id, {
@@ -3477,11 +3456,11 @@ var So = { class: "tpl:w-full" }, Co = { class: "tpl:flex tpl:gap-0" }, wo = {
3477
3456
  dataSourceFetched: t.dataSourceFetched
3478
3457
  });
3479
3458
  }
3480
- return (r, a) => (e(), w("div", So, [C("div", Co, [(e(!0), w(D, null, c(f.value, (r, a) => (e(), w("div", {
3459
+ return (r, a) => (e(), w("div", Eo, [C("div", Do, [(e(!0), w(D, null, c(f.value, (r, a) => (e(), w("div", {
3481
3460
  key: a,
3482
3461
  class: v(["tpl:relative tpl:min-h-[60px] tpl:rounded", p(a).length === 0 ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
3483
3462
  style: A({ width: d.value[a] })
3484
- }, [N(j(bo), {
3463
+ }, [N(j(wo), {
3485
3464
  "model-value": p(a),
3486
3465
  group: {
3487
3466
  name: "blocks",
@@ -3499,14 +3478,14 @@ var So = { class: "tpl:w-full" }, Co = { class: "tpl:flex tpl:gap-0" }, wo = {
3499
3478
  class: "tpl:min-h-[60px]",
3500
3479
  "onUpdate:modelValue": (e) => m(a, e)
3501
3480
  }, {
3502
- default: se(() => [(e(!0), w(D, null, c(p(a), (r) => t((e(), w("div", { key: r.id }, [N(Mr, {
3481
+ default: le(() => [(e(!0), w(D, null, c(p(a), (r) => t((e(), w("div", { key: r.id }, [N(Lr, {
3503
3482
  block: r,
3504
3483
  "is-selected": j(s).state.selectedBlockId === r.id,
3505
3484
  viewport: n.viewport,
3506
3485
  "preview-mode": j(s).state.previewMode,
3507
3486
  onSelect: (e) => j(s).selectBlock(r.id)
3508
3487
  }, {
3509
- default: se(() => [(e(), ne(i(h(r)), {
3488
+ default: le(() => [(e(), ne(i(h(r)), {
3510
3489
  block: r,
3511
3490
  viewport: n.viewport,
3512
3491
  onFetchData: (e) => g(r, e),
@@ -3530,9 +3509,9 @@ var So = { class: "tpl:w-full" }, Co = { class: "tpl:flex tpl:gap-0" }, wo = {
3530
3509
  "model-value",
3531
3510
  "group",
3532
3511
  "onUpdate:modelValue"
3533
- ]), p(a).length === 0 ? (e(), w("div", wo, [C("span", null, M(j(o).section.dropHere), 1)])) : O("", !0)], 6))), 128))])]));
3512
+ ]), p(a).length === 0 ? (e(), w("div", Oo, [C("span", null, M(j(o).section.dropHere), 1)])) : O("", !0)], 6))), 128))])]));
3534
3513
  }
3535
- }), Eo = {
3514
+ }), Ao = {
3536
3515
  facebook: {
3537
3516
  name: "Facebook",
3538
3517
  color: "#1877F2",
@@ -3613,11 +3592,11 @@ var So = { class: "tpl:w-full" }, Co = { class: "tpl:flex tpl:gap-0" }, wo = {
3613
3592
  color: "#1769FF",
3614
3593
  path: "M22 7h-7V5h7v2zm1.726 10c-.442 1.297-2.029 3-5.101 3-3.074 0-5.564-1.729-5.564-5.675 0-3.91 2.325-5.92 5.466-5.92 3.082 0 4.964 1.782 5.375 4.426.078.506.109 1.188.095 2.14H15.97c.13 3.211 3.483 3.312 4.588 2.029h3.168zm-7.686-4h4.965c-.105-1.547-1.136-2.219-2.477-2.219-1.466 0-2.277.768-2.488 2.219zm-9.574 6.988H0V5.021h6.953c5.476.081 5.58 5.444 2.72 6.906 3.461 1.26 3.577 8.061-3.207 8.061zM3 11h3.584c2.508 0 2.906-3-.312-3H3v3zm3.391 3H3v3.016h3.341c3.055 0 2.868-3.016.05-3.016z"
3615
3594
  }
3616
- }, Do = {
3595
+ }, jo = {
3617
3596
  small: 24,
3618
3597
  medium: 32,
3619
3598
  large: 48
3620
- }, Oo = [
3599
+ }, Mo = [
3621
3600
  "facebook",
3622
3601
  "twitter",
3623
3602
  "instagram",
@@ -3634,11 +3613,11 @@ var So = { class: "tpl:w-full" }, Co = { class: "tpl:flex tpl:gap-0" }, wo = {
3634
3613
  "github",
3635
3614
  "dribbble",
3636
3615
  "behance"
3637
- ], ko = [
3616
+ ], No = [
3638
3617
  "width",
3639
3618
  "height",
3640
3619
  "fill"
3641
- ], Ao = ["d"], jo = /* @__PURE__ */ y({
3620
+ ], Po = ["d"], Fo = /* @__PURE__ */ y({
3642
3621
  __name: "SocialIconSvg",
3643
3622
  props: {
3644
3623
  platform: {},
@@ -3646,7 +3625,7 @@ var So = { class: "tpl:w-full" }, Co = { class: "tpl:flex tpl:gap-0" }, wo = {
3646
3625
  iconSize: {}
3647
3626
  },
3648
3627
  setup(t) {
3649
- let n = t, r = x(() => Eo[n.platform]), i = x(() => Do[n.iconSize]), a = x(() => {
3628
+ let n = t, r = x(() => Ao[n.platform]), i = x(() => jo[n.iconSize]), a = x(() => {
3650
3629
  let e = {
3651
3630
  display: "inline-flex",
3652
3631
  alignItems: "center",
@@ -3690,25 +3669,25 @@ var So = { class: "tpl:w-full" }, Co = { class: "tpl:flex tpl:gap-0" }, wo = {
3690
3669
  viewBox: "0 0 24 24",
3691
3670
  fill: s.value,
3692
3671
  xmlns: "http://www.w3.org/2000/svg"
3693
- }, [C("path", { d: r.value.path }, null, 8, Ao)], 8, ko))], 4));
3672
+ }, [C("path", { d: r.value.path }, null, 8, Po)], 8, No))], 4));
3694
3673
  }
3695
- }), Mo = { class: "tpl:w-full" }, No = ["href"], Po = {
3674
+ }), Io = { class: "tpl:w-full" }, Lo = ["href"], Ro = {
3696
3675
  key: 1,
3697
3676
  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)]"
3698
- }, Fo = /* @__PURE__ */ y({
3677
+ }, zo = /* @__PURE__ */ y({
3699
3678
  __name: "SocialIconsBlock",
3700
3679
  props: {
3701
3680
  block: {},
3702
3681
  viewport: {}
3703
3682
  },
3704
3683
  setup(t) {
3705
- let n = t, { t: r } = ft(), i = x(() => ({
3684
+ let n = t, { t: r } = ht(), i = x(() => ({
3706
3685
  display: "flex",
3707
3686
  flexWrap: "wrap",
3708
3687
  gap: `${n.block.spacing}px`,
3709
3688
  justifyContent: n.block.align === "left" ? "flex-start" : n.block.align === "right" ? "flex-end" : "center"
3710
3689
  })), a = x(() => n.block.icons.length > 0);
3711
- return (n, o) => (e(), w("div", Mo, [a.value ? (e(), w("div", {
3690
+ return (n, o) => (e(), w("div", Io, [a.value ? (e(), w("div", {
3712
3691
  key: 0,
3713
3692
  style: A(i.value)
3714
3693
  }, [(e(!0), w(D, null, c(t.block.icons, (n) => (e(), w("a", {
@@ -3716,7 +3695,7 @@ var So = { class: "tpl:w-full" }, Co = { class: "tpl:flex tpl:gap-0" }, wo = {
3716
3695
  href: n.url || "#",
3717
3696
  class: "tpl:cursor-default",
3718
3697
  onClick: o[0] ||= b(() => {}, ["prevent"])
3719
- }, [N(jo, {
3698
+ }, [N(Fo, {
3720
3699
  platform: n.platform,
3721
3700
  "icon-style": t.block.iconStyle,
3722
3701
  "icon-size": t.block.iconSize
@@ -3724,44 +3703,44 @@ var So = { class: "tpl:w-full" }, Co = { class: "tpl:flex tpl:gap-0" }, wo = {
3724
3703
  "platform",
3725
3704
  "icon-style",
3726
3705
  "icon-size"
3727
- ])], 8, No))), 128))], 4)) : (e(), w("div", Po, [N(j(hn), { size: 16 }), C("span", null, M(j(r).social.addIcons), 1)]))]));
3706
+ ])], 8, Lo))), 128))], 4)) : (e(), w("div", Ro, [N(j(vn), { size: 16 }), C("span", null, M(j(r).social.addIcons), 1)]))]));
3728
3707
  }
3729
- }), Io = { class: "tpl:w-full" }, Lo = {
3708
+ }), Bo = { class: "tpl:w-full" }, Vo = {
3730
3709
  key: 0,
3731
3710
  class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
3732
3711
  style: {
3733
3712
  "background-color": "var(--tpl-bg-hover)",
3734
3713
  color: "var(--tpl-text-dim)"
3735
3714
  }
3736
- }, Ro = /* @__PURE__ */ y({
3715
+ }, Ho = /* @__PURE__ */ y({
3737
3716
  __name: "SpacerBlock",
3738
3717
  props: {
3739
3718
  block: {},
3740
3719
  viewport: {}
3741
3720
  },
3742
3721
  setup(t) {
3743
- let n = t, r = He(nt, "SpacerBlock"), i = x(() => ({
3722
+ let n = t, r = Ke(at, "SpacerBlock"), i = x(() => ({
3744
3723
  height: `${n.block.height}px`,
3745
3724
  minHeight: `${n.block.height}px`,
3746
3725
  ...r.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
3747
3726
  }));
3748
- return (n, a) => (e(), w("div", Io, [C("div", {
3727
+ return (n, a) => (e(), w("div", Bo, [C("div", {
3749
3728
  style: A(i.value),
3750
3729
  class: v(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:border-y tpl:border-dashed": !j(r).state.previewMode }])
3751
- }, [j(r).state.previewMode ? O("", !0) : (e(), w("span", Lo, M(t.block.height) + "px ", 1))], 6)]));
3730
+ }, [j(r).state.previewMode ? O("", !0) : (e(), w("span", Vo, M(t.block.height) + "px ", 1))], 6)]));
3752
3731
  }
3753
- }), zo = { class: "tpl:w-full" }, Bo = { key: 0 }, Vo = [
3732
+ }), Uo = { class: "tpl:w-full" }, Wo = { key: 0 }, Go = [
3754
3733
  "aria-label",
3755
3734
  "data-placeholder",
3756
3735
  "onBlur"
3757
- ], Ho = [
3736
+ ], Ko = [
3758
3737
  "aria-label",
3759
3738
  "data-placeholder",
3760
3739
  "onBlur"
3761
- ], Uo = {
3740
+ ], qo = {
3762
3741
  key: 1,
3763
3742
  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)]"
3764
- }, Wo = /*#__PURE__*/ _t(/* @__PURE__ */ y({
3743
+ }, Jo = /*#__PURE__*/ bt(/* @__PURE__ */ y({
3765
3744
  __name: "TableBlock",
3766
3745
  props: {
3767
3746
  block: {},
@@ -3775,7 +3754,7 @@ var So = { class: "tpl:w-full" }, Co = { class: "tpl:flex tpl:gap-0" }, wo = {
3775
3754
  updated(e, t) {
3776
3755
  t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
3777
3756
  }
3778
- }, i = n, { t: a } = ft(), o = He(nt, "TableBlock"), s = x(() => i.block.rows.length > 0), l = x(() => ({
3757
+ }, i = n, { t: a } = ht(), o = Ke(at, "TableBlock"), s = x(() => i.block.rows.length > 0), l = x(() => ({
3779
3758
  width: "100%",
3780
3759
  borderCollapse: "collapse",
3781
3760
  fontSize: `${i.block.fontSize}px`,
@@ -3804,11 +3783,11 @@ var So = { class: "tpl:w-full" }, Co = { class: "tpl:flex tpl:gap-0" }, wo = {
3804
3783
  } : n);
3805
3784
  o.updateBlock(i.block.id, { rows: a });
3806
3785
  }
3807
- return (n, i) => (e(), w("div", zo, [s.value ? (e(), w("table", {
3786
+ return (n, i) => (e(), w("div", Uo, [s.value ? (e(), w("table", {
3808
3787
  key: 0,
3809
3788
  style: A(l.value),
3810
3789
  class: "tpl-table-editable"
3811
- }, [f.value ? (e(), w("thead", Bo, [C("tr", null, [(e(!0), w(D, null, c(f.value.cells, (n) => t((e(), w("th", {
3790
+ }, [f.value ? (e(), w("thead", Wo, [C("tr", null, [(e(!0), w(D, null, c(f.value.cells, (n) => t((e(), w("th", {
3812
3791
  key: n.id,
3813
3792
  style: A(d.value),
3814
3793
  "aria-label": j(a).table.cellPlaceholder,
@@ -3817,7 +3796,7 @@ var So = { class: "tpl:w-full" }, Co = { class: "tpl:flex tpl:gap-0" }, wo = {
3817
3796
  onBlur: (e) => h(f.value.id, n.id, e),
3818
3797
  onKeydown: i[0] ||= ie(b((e) => e.target.blur(), ["prevent"]), ["enter"]),
3819
3798
  onClick: b(m, ["stop"])
3820
- }, null, 44, Vo)), [[r, n.content]])), 128))])])) : O("", !0), C("tbody", null, [(e(!0), w(D, null, c(p.value, (n) => (e(), w("tr", { key: n.id }, [(e(!0), w(D, null, c(n.cells, (o) => t((e(), w("td", {
3799
+ }, null, 44, Go)), [[r, n.content]])), 128))])])) : O("", !0), C("tbody", null, [(e(!0), w(D, null, c(p.value, (n) => (e(), w("tr", { key: n.id }, [(e(!0), w(D, null, c(n.cells, (o) => t((e(), w("td", {
3821
3800
  key: o.id,
3822
3801
  style: A(u.value),
3823
3802
  "aria-label": j(a).table.cellPlaceholder,
@@ -3826,9 +3805,9 @@ var So = { class: "tpl:w-full" }, Co = { class: "tpl:flex tpl:gap-0" }, wo = {
3826
3805
  onBlur: (e) => h(n.id, o.id, e),
3827
3806
  onKeydown: i[1] ||= ie(b((e) => e.target.blur(), ["prevent"]), ["enter"]),
3828
3807
  onClick: b(m, ["stop"])
3829
- }, null, 44, Ho)), [[r, o.content]])), 128))]))), 128))])], 4)) : (e(), w("div", Uo, [N(j(gn), { size: 16 }), C("span", null, M(j(a).table.empty), 1)]))]));
3808
+ }, null, 44, Ko)), [[r, o.content]])), 128))]))), 128))])], 4)) : (e(), w("div", qo, [N(j(yn), { size: 16 }), C("span", null, M(j(a).table.empty), 1)]))]));
3830
3809
  }
3831
- }), [["__scopeId", "data-v-de1a7c76"]]), Go = /* @__PURE__ */ y({
3810
+ }), [["__scopeId", "data-v-de1a7c76"]]), Yo = /* @__PURE__ */ y({
3832
3811
  __name: "VideoPlayButton",
3833
3812
  props: { hoverEffect: {
3834
3813
  type: Boolean,
@@ -3846,7 +3825,7 @@ var So = { class: "tpl:w-full" }, Co = { class: "tpl:flex tpl:gap-0" }, wo = {
3846
3825
  });
3847
3826
  //#endregion
3848
3827
  //#region src/utils/videoThumbnail.ts
3849
- function Ko(e) {
3828
+ function Xo(e) {
3850
3829
  if (!e) return {
3851
3830
  platform: "unknown",
3852
3831
  videoId: null,
@@ -3878,25 +3857,25 @@ function Ko(e) {
3878
3857
  thumbnailUrl: null
3879
3858
  };
3880
3859
  }
3881
- function qo(e, t) {
3882
- return t || Ko(e).thumbnailUrl;
3860
+ function Zo(e, t) {
3861
+ return t || Xo(e).thumbnailUrl;
3883
3862
  }
3884
3863
  //#endregion
3885
3864
  //#region src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
3886
- var Jo = ["src", "alt"], Yo = {
3865
+ var Qo = ["src", "alt"], $o = {
3887
3866
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
3888
3867
  style: { opacity: "0.7" }
3889
- }, Xo = ["href"], Zo = ["src", "alt"], Qo = ["src", "alt"], $o = {
3868
+ }, es = ["href"], ts = ["src", "alt"], ns = ["src", "alt"], rs = {
3890
3869
  key: 3,
3891
3870
  class: "tpl:flex tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
3892
- }, es = /* @__PURE__ */ y({
3871
+ }, is = /* @__PURE__ */ y({
3893
3872
  __name: "VideoBlock",
3894
3873
  props: {
3895
3874
  block: {},
3896
3875
  viewport: {}
3897
3876
  },
3898
3877
  setup(t) {
3899
- let n = t, { t: r } = ft(), { syntax: i } = vt(), a = x(() => me(n.block.url, i) || me(n.block.thumbnailUrl, i)), o = x(() => a.value ? null : qo(n.block.url, n.block.thumbnailUrl)), s = x(() => ({ textAlign: n.block.align })), c = x(() => {
3878
+ let n = t, { t: r } = ht(), { syntax: i } = xt(), a = x(() => ge(n.block.url, i) || ge(n.block.thumbnailUrl, i)), o = x(() => a.value ? null : Zo(n.block.url, n.block.thumbnailUrl)), s = x(() => ({ textAlign: n.block.align })), c = x(() => {
3900
3879
  let e = n.block.align;
3901
3880
  return {
3902
3881
  maxWidth: "100%",
@@ -3905,7 +3884,7 @@ var Jo = ["src", "alt"], Yo = {
3905
3884
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
3906
3885
  marginRight: e === "center" ? "auto" : void 0
3907
3886
  };
3908
- }), l = x(() => me(n.block.url, i) ? n.block.url : n.block.thumbnailUrl);
3887
+ }), l = x(() => ge(n.block.url, i) ? n.block.url : n.block.thumbnailUrl);
3909
3888
  return (n, i) => (e(), w("div", {
3910
3889
  class: "tpl:w-full",
3911
3890
  style: A(s.value)
@@ -3917,16 +3896,16 @@ var Jo = ["src", "alt"], Yo = {
3917
3896
  class: "tpl:w-full tpl:border-0",
3918
3897
  src: t.block.placeholderUrl,
3919
3898
  alt: t.block.alt
3920
- }, null, 8, Jo), N(Go)], 4)) : a.value ? (e(), w("div", {
3899
+ }, null, 8, Qo), N(Yo)], 4)) : a.value ? (e(), w("div", {
3921
3900
  key: 1,
3922
3901
  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)]",
3923
3902
  style: A([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, c.value])
3924
- }, [N(j(_n), {
3903
+ }, [N(j(bn), {
3925
3904
  size: 36,
3926
3905
  "stroke-width": 1.5,
3927
3906
  class: "tpl:text-[var(--tpl-primary)]",
3928
3907
  style: { opacity: "0.5" }
3929
- }), C("span", Yo, M(l.value), 1)], 4)) : o.value ? (e(), w(D, { key: 2 }, [t.block.url ? (e(), w("a", {
3908
+ }), C("span", $o, M(l.value), 1)], 4)) : o.value ? (e(), w(D, { key: 2 }, [t.block.url ? (e(), w("a", {
3930
3909
  key: 0,
3931
3910
  href: t.block.url,
3932
3911
  target: "_blank",
@@ -3938,7 +3917,7 @@ var Jo = ["src", "alt"], Yo = {
3938
3917
  class: "tpl:w-full tpl:border-0",
3939
3918
  src: o.value,
3940
3919
  alt: t.block.alt
3941
- }, null, 8, Zo), N(Go, { "hover-effect": "" })], 12, Xo)) : (e(), w("div", {
3920
+ }, null, 8, ts), N(Yo, { "hover-effect": "" })], 12, es)) : (e(), w("div", {
3942
3921
  key: 1,
3943
3922
  class: "tpl:relative tpl:inline-block",
3944
3923
  style: A(c.value)
@@ -3946,48 +3925,48 @@ var Jo = ["src", "alt"], Yo = {
3946
3925
  class: "tpl:w-full tpl:border-0",
3947
3926
  src: o.value,
3948
3927
  alt: t.block.alt
3949
- }, null, 8, Qo), N(Go)], 4))], 64)) : (e(), w("div", $o, [N(j(_n), {
3928
+ }, null, 8, ns), N(Yo)], 4))], 64)) : (e(), w("div", rs, [N(j(bn), {
3950
3929
  size: 40,
3951
3930
  "stroke-width": 1.5,
3952
3931
  class: "tpl:text-[var(--tpl-border-light)]"
3953
3932
  }), C("span", null, M(j(r).video.addVideo), 1)]))], 4));
3954
3933
  }
3955
- }), ts = {
3956
- section: To,
3957
- title: Pr,
3958
- paragraph: _r,
3959
- image: ir,
3960
- button: rn,
3961
- divider: Hn,
3962
- video: es,
3963
- social: Fo,
3964
- menu: cr,
3965
- table: Wo,
3966
- spacer: Ro,
3967
- html: qn,
3968
- countdown: oe(() => import("./CountdownBlock-sAAv3BHE.js").then((e) => e.n))
3934
+ }), as = {
3935
+ section: ko,
3936
+ title: zr,
3937
+ paragraph: Sr,
3938
+ image: lr,
3939
+ button: sn,
3940
+ divider: qn,
3941
+ video: is,
3942
+ social: zo,
3943
+ menu: pr,
3944
+ table: Jo,
3945
+ spacer: Ho,
3946
+ html: Qn,
3947
+ countdown: ce(() => import("./CountdownBlock-D_AsF4F3.js").then((e) => e.n))
3969
3948
  };
3970
- function ns(e) {
3971
- let { editor: t, config: n, translations: r, fontsManager: i } = e, { t: a, format: o } = ft(r);
3949
+ function os(e) {
3950
+ let { editor: t, config: n, translations: r, fontsManager: i } = e, { t: a, format: o } = ht(r);
3972
3951
  t.setUiTheme(n.uiTheme ?? "auto");
3973
- let { resolvedTheme: c } = Vt(x(() => t.state.uiTheme)), l = h(n.theme ?? {}), { themeStyles: u } = Ut({
3952
+ let { resolvedTheme: c } = Wt(x(() => t.state.uiTheme)), l = h(n.theme ?? {}), { themeStyles: u } = Kt({
3974
3953
  themeOverrides: l,
3975
3954
  resolvedTheme: c,
3976
3955
  extraStyles: e.themeExtraStyles
3977
- }), d = Tt({
3956
+ }), d = Ot({
3978
3957
  content: t.content,
3979
3958
  setContent: (e, n) => t.setContent(e, n),
3980
3959
  ...e.historyOptions
3981
3960
  });
3982
- jt(t, d);
3983
- let f = Dt({
3961
+ Pt(t, d);
3962
+ let f = At({
3984
3963
  addBlock: t.addBlock,
3985
3964
  removeBlock: t.removeBlock,
3986
3965
  updateBlock: t.updateBlock,
3987
3966
  selectBlock: t.selectBlock,
3988
3967
  findBlockLocation: t.findBlockLocation,
3989
3968
  blockDefaults: n.blockDefaults
3990
- }), m = kt(t), g = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? Ot({
3969
+ }), m = Mt(t), g = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? jt({
3991
3970
  content: t.content,
3992
3971
  isDirty: () => t.state.isDirty,
3993
3972
  ...e.autoSaveOptions
@@ -3995,24 +3974,24 @@ function ns(e) {
3995
3974
  g && (_ = s(d.isNavigating, (e) => {
3996
3975
  e ? g.pause() : g.resume();
3997
3976
  }));
3998
- let v = Bt(t, {
3977
+ let v = Ut(t, {
3999
3978
  t: a,
4000
3979
  format: o
4001
- }), y = qt();
4002
- if (Qt(y, ts), n.customBlocks?.length) for (let e of n.customBlocks) y.registerCustom(e, Bn);
3980
+ }), y = Xt();
3981
+ if (tn(y, as), n.customBlocks?.length) for (let e of n.customBlocks) y.registerCustom(e, Gn);
4003
3982
  function b(e) {
4004
- for (let t of e) y.registerCustom(t, Bn);
3983
+ for (let t of e) y.registerCustom(t, Gn);
4005
3984
  }
4006
- let S = Ft();
3985
+ let S = Rt();
4007
3986
  if (p() && re(S.dispose), e.containerEl) {
4008
3987
  let t = e.containerEl;
4009
- Re(document, "pointerdown", (e) => {
3988
+ Be(document, "pointerdown", (e) => {
4010
3989
  let n = t.value;
4011
3990
  n && (e.composedPath?.() ?? []).includes(n) && S.claim();
4012
3991
  }, { capture: !0 });
4013
3992
  }
4014
3993
  function C(r) {
4015
- S.isActive() && en(r, {
3994
+ S.isActive() && rn(r, {
4016
3995
  history: d,
4017
3996
  selectBlock: (e) => t.selectBlock(e),
4018
3997
  getSelectedBlockId: () => t.state.selectedBlockId,
@@ -4021,19 +4000,19 @@ function ns(e) {
4021
4000
  onBeforeUndo: e.keyboardOptions?.onBeforeUndo
4022
4001
  });
4023
4002
  }
4024
- Re(document, "keydown", C);
4003
+ Be(document, "keydown", C);
4025
4004
  let w = h(null);
4026
- E(Qe, e.editorRoot ?? document), E(Ge, w), E(Be, r), E(nt, t), E(Ke, d), E($e, f), E(st, m), E(Ze, i), E(tt, u), E(et, c), E(qe, n.blockDefaults), E(it, y), E(Ye, n.customBlocks ?? []), E(Xe, Jt(t.content, y));
4027
- let T = xe(n.mergeTags?.syntax);
4028
- E(dt, n.mergeTags?.tags ?? []), E(We, T), E(lt, n.mergeTags?.onRequest ?? null), E(Je, n.mergeTags?.autocomplete !== !1), E(ut, It()), E(Ve, n.onRequestMedia ?? null), E(at, n.displayConditions?.conditions ?? []), E(rt, n.displayConditions?.allowCustom ?? !1), E(ot, e.capabilities ?? {}), E(ct, v);
4029
- let ee = Lt(n.lint) ? null : Rt({
4005
+ E(tt, e.editorRoot ?? document), E(We, w), E(rt, r), E(at, t), E(Ye, d), E(nt, f), E(ut, m), E(et, i), E(He, u), E(Ge, c), E(Xe, n.blockDefaults), E(st, y), E(Qe, n.customBlocks ?? []), E(Je, n.paletteBlocks), E($e, Zt(t.content, y));
4006
+ let T = Ce(n.mergeTags?.syntax);
4007
+ E(mt, n.mergeTags?.tags ?? []), E(qe, T), E(ft, n.mergeTags?.onRequest ?? null), E(Ze, n.mergeTags?.autocomplete !== !1), E(pt, zt()), E(Ue, n.onRequestMedia ?? null), E(ct, n.displayConditions?.conditions ?? []), E(ot, n.displayConditions?.allowCustom ?? !1), E(lt, e.capabilities ?? {}), E(dt, v);
4008
+ let ee = Bt(n.lint) ? null : Vt({
4030
4009
  content: t.content,
4031
4010
  options: n.lint ?? {},
4032
4011
  updateBlock: t.updateBlock,
4033
4012
  updateSettings: t.updateSettings,
4034
4013
  removeBlock: t.removeBlock
4035
4014
  });
4036
- E(Ue, ee);
4015
+ E(it, ee);
4037
4016
  function D() {
4038
4017
  _?.(), ee?.destroy(), g?.destroy(), d.destroy();
4039
4018
  }
@@ -4056,4 +4035,4 @@ function ns(e) {
4056
4035
  };
4057
4036
  }
4058
4037
  //#endregion
4059
- export { ln as A, wn as C, hn as D, gn as E, zt as F, At as I, xt as L, sn as M, rn as N, pn as O, Kt as P, Tn as S, bn as T, qn as _, Fo as a, jn as b, To as c, Mr as d, yr as f, ir as g, cr as h, Ro as i, cn as j, fn as k, bo as l, _r as m, es as n, Eo as o, vr as p, Wo as r, Oo as s, ns as t, Pr as u, Hn as v, Cn as w, kn as x, Bn as y };
4038
+ export { hn as A, On as C, yn as D, Cn as E, Yt as F, Ht as I, Nt as L, dn as M, un as N, vn as O, sn as P, wt as R, Mn as S, En as T, Qn as _, zo as a, In as b, ko as c, Lr as d, wr as f, lr as g, pr as h, Ho as i, fn as j, gn as k, wo as l, Sr as m, is as n, Ao as o, Cr as p, Jo as r, Mo as s, os as t, zr as u, qn as v, Dn as w, Pn as x, Gn as y };