@templatical/editor 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/dist/{AiChatSidebar-Cm5RM5Qh.js → AiChatSidebar-CXH7l1Ar.js} +13 -13
  2. package/dist/{AiFeatureMenu-D4D2Sqfk.js → AiFeatureMenu-BKbUUc1D.js} +10 -10
  3. package/dist/{BlockIssueBadge-BF4sdsr4.js → BlockIssueBadge-C-EPqWsh.js} +5 -5
  4. package/dist/{CloudEditor-CLwyq3kf.js → CloudEditor-F5YV5hE3.js} +166 -165
  5. package/dist/{CollaboratorBar-DjX-o5Pi.js → CollaboratorBar-ACUA7lBJ.js} +4 -4
  6. package/dist/{CommentsSidebar-BQJzyCc6.js → CommentsSidebar-CpRLN40c.js} +19 -19
  7. package/dist/{CountdownBlock-D_AsF4F3.js → CountdownBlock-C-6o19qS.js} +3 -3
  8. package/dist/{CountdownToolbar-BGTkFky9.js → CountdownToolbar-CDy9_2Yj.js} +3 -3
  9. package/dist/{DesignReferenceSidebar-O3epZMXD.js → DesignReferenceSidebar-0dTsBW08.js} +9 -9
  10. package/dist/{IssuesPanel-CPBbR8yp.js → IssuesPanel-I0z6k6-H.js} +11 -11
  11. package/dist/{LoadingTrack-e67FA0NP.js → LoadingTrack-C7mGWPHS.js} +1 -1
  12. package/dist/{ModuleBrowserModal-CVS4Sf7H.js → ModuleBrowserModal-Bz9hSjMS.js} +10 -10
  13. package/dist/{ModulePreviewCanvas-C10YXsL_.js → ModulePreviewCanvas-CpaumPMS.js} +23 -23
  14. package/dist/{NumberWithSuffix-eI9pPDWT.js → NumberWithSuffix-Cd7bz1Wk.js} +3 -3
  15. package/dist/{ParagraphEditor-BKoqcKIt.js → ParagraphEditor-BqRFV_Y-.js} +43 -43
  16. package/dist/{RichTextEditorContent-Dvn4woIt.js → RichTextEditorContent-Q5altsx1.js} +6 -6
  17. package/dist/{SaveModuleDialog-BMuIjxVn.js → SaveModuleDialog-DmfvH5D0.js} +7 -7
  18. package/dist/{SnapshotHistory-DZ5_W7e4.js → SnapshotHistory-C052o-8U.js} +13 -13
  19. package/dist/{TemplateScoringPanel-Bt5Rsgen.js → TemplateScoringPanel-CUs8XmIi.js} +24 -24
  20. package/dist/{TestEmailModal-EjpH-F-W.js → TestEmailModal-BIIxRWUt.js} +5 -5
  21. package/dist/{TitleEditor-Rv1deuV7.js → TitleEditor-FMh54Cx5.js} +18 -18
  22. package/dist/{TplModal-DSmCQIm4.js → TplModal-utMtXzSO.js} +4 -4
  23. package/dist/{blockTypeIcons-OhEkQhYj.js → blockTypeIcons-C6UGDmrC.js} +2 -2
  24. package/dist/bundle-stats.json +6 -6
  25. package/dist/cdn/chunks/{AiFeatureMenu-Dm9CL3u0.js → AiFeatureMenu-4NhCFeTh.js} +8 -8
  26. package/dist/cdn/chunks/{AiFeatureMenu-Dm9CL3u0.js.map → AiFeatureMenu-4NhCFeTh.js.map} +1 -1
  27. package/dist/cdn/chunks/{BlockIssueBadge-DjnFAeWq.js → BlockIssueBadge-BYKThwhE.js} +5 -5
  28. package/dist/cdn/chunks/{BlockIssueBadge-DjnFAeWq.js.map → BlockIssueBadge-BYKThwhE.js.map} +1 -1
  29. package/dist/cdn/chunks/{CloudEditor-XSmLmdgp.js → CloudEditor-OO8hWAVp.js} +177 -176
  30. package/dist/cdn/chunks/{CloudEditor-XSmLmdgp.js.map → CloudEditor-OO8hWAVp.js.map} +1 -1
  31. package/dist/cdn/chunks/{CollaboratorBar-BfoGJhns.js → CollaboratorBar-Dn5gXNDt.js} +4 -4
  32. package/dist/cdn/chunks/{CollaboratorBar-BfoGJhns.js.map → CollaboratorBar-Dn5gXNDt.js.map} +1 -1
  33. package/dist/cdn/chunks/{CountdownBlock-GRio55a1.js → CountdownBlock-hYoJdVOt.js} +3 -3
  34. package/dist/cdn/chunks/{CountdownBlock-GRio55a1.js.map → CountdownBlock-hYoJdVOt.js.map} +1 -1
  35. package/dist/cdn/chunks/{CountdownToolbar-Cd1oEopw.js → CountdownToolbar-BXjDFRHI.js} +4 -4
  36. package/dist/cdn/chunks/{CountdownToolbar-Cd1oEopw.js.map → CountdownToolbar-BXjDFRHI.js.map} +1 -1
  37. package/dist/cdn/chunks/{IssuesPanel-C-BiFQDQ.js → IssuesPanel-_5fEnivU.js} +10 -10
  38. package/dist/cdn/chunks/{IssuesPanel-C-BiFQDQ.js.map → IssuesPanel-_5fEnivU.js.map} +1 -1
  39. package/dist/cdn/chunks/{ModuleBrowserModal-Dj7gRT4Q.js → ModuleBrowserModal-DtCksAeW.js} +7 -7
  40. package/dist/cdn/chunks/{ModuleBrowserModal-Dj7gRT4Q.js.map → ModuleBrowserModal-DtCksAeW.js.map} +1 -1
  41. package/dist/cdn/chunks/{ModulePreviewCanvas-hwdveKb0.js → ModulePreviewCanvas-CCOvabZd.js} +31 -31
  42. package/dist/cdn/chunks/{ModulePreviewCanvas-hwdveKb0.js.map → ModulePreviewCanvas-CCOvabZd.js.map} +1 -1
  43. package/dist/cdn/chunks/{NumberWithSuffix-bE_6cfiA.js → NumberWithSuffix-ZuJ2ePB0.js} +3 -3
  44. package/dist/cdn/chunks/{NumberWithSuffix-bE_6cfiA.js.map → NumberWithSuffix-ZuJ2ePB0.js.map} +1 -1
  45. package/dist/cdn/chunks/{ParagraphEditor-y1kGJRBX.js → ParagraphEditor-BnhnFOW1.js} +34 -34
  46. package/dist/cdn/chunks/{ParagraphEditor-y1kGJRBX.js.map → ParagraphEditor-BnhnFOW1.js.map} +1 -1
  47. package/dist/cdn/chunks/{RichTextEditorContent-DPy9D4hc.js → RichTextEditorContent-DV2yknp8.js} +3 -3
  48. package/dist/cdn/chunks/{RichTextEditorContent-DPy9D4hc.js.map → RichTextEditorContent-DV2yknp8.js.map} +1 -1
  49. package/dist/cdn/chunks/{SaveModuleDialog-CPu5e2VG.js → SaveModuleDialog-CCX5U7VA.js} +5 -5
  50. package/dist/cdn/chunks/{SaveModuleDialog-CPu5e2VG.js.map → SaveModuleDialog-CCX5U7VA.js.map} +1 -1
  51. package/dist/cdn/chunks/{TitleEditor-CMzzOPye.js → TitleEditor-CQqklX0D.js} +13 -13
  52. package/dist/cdn/chunks/{TitleEditor-CMzzOPye.js.map → TitleEditor-CQqklX0D.js.map} +1 -1
  53. package/dist/cdn/chunks/blockTypeIcons-CpGPHppB.js +22 -0
  54. package/dist/cdn/chunks/{blockTypeIcons-BC5qpvuV.js.map → blockTypeIcons-CpGPHppB.js.map} +1 -1
  55. package/dist/{de-DIAGP7yH.js → cdn/chunks/de-DpBN9H7-.js} +13 -1
  56. package/dist/cdn/chunks/de-DpBN9H7-.js.map +1 -0
  57. package/dist/cdn/chunks/{draggable-iAb7QVJo.js → draggable-Bci-fq8y.js} +473 -465
  58. package/dist/cdn/chunks/draggable-Bci-fq8y.js.map +1 -0
  59. package/dist/{en-nqIW8Q9W.js → cdn/chunks/en-BhHtdIiU.js} +13 -1
  60. package/dist/cdn/chunks/en-BhHtdIiU.js.map +1 -0
  61. package/dist/cdn/chunks/{extensions-DH7ESsaz.js → extensions-Ds9GnMcd.js} +4 -4
  62. package/dist/cdn/chunks/{extensions-DH7ESsaz.js.map → extensions-Ds9GnMcd.js.map} +1 -1
  63. package/dist/cdn/chunks/{features-DmUOSthI.js → features-DxWz_Enw.js} +1055 -1056
  64. package/dist/cdn/chunks/features-DxWz_Enw.js.map +1 -0
  65. package/dist/cdn/chunks/{icons-DguD4x_X.js → icons-BflGUmFY.js} +146 -146
  66. package/dist/cdn/chunks/icons-BflGUmFY.js.map +1 -0
  67. package/dist/cdn/chunks/{liquid.browser-DUDc3U21.js → liquid.browser-DKKBzRQu.js} +502 -497
  68. package/dist/cdn/chunks/liquid.browser-DKKBzRQu.js.map +1 -0
  69. package/dist/cdn/chunks/{media-library-ClQUPxRM.js → media-library-C479-QcE.js} +364 -364
  70. package/dist/cdn/chunks/{media-library-ClQUPxRM.js.map → media-library-C479-QcE.js.map} +1 -1
  71. package/dist/cdn/chunks/{pt-BR-DCNnLLx9.js → pt-BR-Bth5a93y.js} +12 -2
  72. package/dist/cdn/chunks/pt-BR-Bth5a93y.js.map +1 -0
  73. package/dist/cdn/chunks/{pusher-CHo5Cua0.js → pusher-BICWUP2j.js} +3 -3
  74. package/dist/cdn/chunks/{pusher-CHo5Cua0.js.map → pusher-BICWUP2j.js.map} +1 -1
  75. package/dist/cdn/chunks/{quality-CIw_7cXv.js → quality-BL_pEvFP.js} +20 -20
  76. package/dist/cdn/chunks/{quality-CIw_7cXv.js.map → quality-BL_pEvFP.js.map} +1 -1
  77. package/dist/cdn/chunks/readableTextColor-f8Kykfnh.js.map +1 -1
  78. package/dist/cdn/chunks/{renderer-Bx8I7_Rb.js → renderer-DwPomkBw.js} +42 -39
  79. package/dist/cdn/chunks/renderer-DwPomkBw.js.map +1 -0
  80. package/dist/cdn/chunks/{src-C-GlM149.js → src-DzvOWQ9S.js} +62 -62
  81. package/dist/cdn/chunks/{src-C-GlM149.js.map → src-DzvOWQ9S.js.map} +1 -1
  82. package/dist/cdn/chunks/{styles-CfqCvq0Z.js → styles-D45rgVq8.js} +712 -624
  83. package/dist/cdn/chunks/styles-D45rgVq8.js.map +1 -0
  84. package/dist/cdn/chunks/{tiptap-BAwu9VcJ.js → tiptap-CwScfbsM.js} +5 -4
  85. package/dist/cdn/chunks/tiptap-CwScfbsM.js.map +1 -0
  86. package/dist/cdn/editor.css +1 -1
  87. package/dist/cdn/editor.js +105 -104
  88. package/dist/cdn/editor.js.map +1 -1
  89. package/dist/{check-BsNM6BDs.js → check-BRzXxFHr.js} +1 -1
  90. package/dist/{chevron-down-fcsZ5DU7.js → chevron-down-DmEgzmYT.js} +1 -1
  91. package/dist/{circle-alert-BZTbwc-B.js → circle-alert-BStvZr3O.js} +1 -1
  92. package/dist/{clock-B7iQRubC.js → clock-Blwp_1R6.js} +1 -1
  93. package/dist/{cloud-Dom4EH5Z.js → cloud-_olro76D.js} +6 -6
  94. package/dist/{createLucideIcon-C_fetdGM.js → createLucideIcon-CmPAC-gt.js} +3 -3
  95. package/dist/{cdn/chunks/de-DIAGP7yH.js → de-DpBN9H7-.js} +11 -3
  96. package/dist/{dist-ByBVNmRN.js → dist-412xXefB.js} +1 -1
  97. package/dist/{dist-XdF11ZkX.js → dist-BCQZZUE9.js} +1 -1
  98. package/dist/{dist-CD3wbUoR.js → dist-BNEdeWub.js} +1 -1
  99. package/dist/dist-BctFrpeA.js +472 -0
  100. package/dist/{dist-eVlXvuKI.js → dist-BlG7k25W.js} +1 -1
  101. package/dist/{dist-BLcYl_de.js → dist-BwgjpLfr.js} +1 -1
  102. package/dist/{dist-Dhs3W2WW.js → dist-Cz79qrLL.js} +1 -1
  103. package/dist/{dist-c2sj5PQ5.js → dist-D6x1cQeh.js} +3 -3
  104. package/dist/{dist-cT52Hh9L.js → dist-DJ9aD8yA.js} +3 -3
  105. package/dist/{dist-Cwl7XXr4.js → dist-DULfKmTh.js} +3 -3
  106. package/dist/{dist-Dem8ODLh.js → dist-DhKTdU52.js} +3 -2
  107. package/dist/{dist-BOHAk4zI.js → dist-b7Ak-CuM.js} +1 -1
  108. package/dist/{dist-B4NkMBYc.js → dist-o73iaGqy.js} +1 -1
  109. package/dist/{dist-BsB4nPJD.js → dist-u0iIJH3V.js} +1 -1
  110. package/dist/{cdn/chunks/en-nqIW8Q9W.js → en-BhHtdIiU.js} +11 -3
  111. package/dist/{extensions-B2lSGCA8.js → extensions-XPlNAKIL.js} +23 -23
  112. package/dist/formatRelativeTime-CtUU-QZ8.js +10 -0
  113. package/dist/{image-up-1xrPPJYH.js → image-up-BFPbw_Zq.js} +1 -1
  114. package/dist/index.d.ts +32 -0
  115. package/dist/{info-ByAFxArD.js → info-B_qLEBN2.js} +1 -1
  116. package/dist/{keys-DsRdOmg3.js → keys-mFiJ5N0_.js} +1 -1
  117. package/dist/{liquid.browser--qtl1Fqy.js → liquid.browser-CVjP5Mex.js} +501 -496
  118. package/dist/{list-checks-CKUP4UZU.js → list-checks-CGg7JxPm.js} +1 -1
  119. package/dist/{loader-circle-BuxX338d.js → loader-circle-CDF8eR_Q.js} +1 -1
  120. package/dist/{message-circle-nLwqegRi.js → message-circle-C3cHsCJl.js} +1 -1
  121. package/dist/{pt-BR-DCNnLLx9.js → pt-BR-Bth5a93y.js} +11 -1
  122. package/dist/{refresh-cw-DAkD6iDI.js → refresh-cw-Butml7Q4.js} +1 -1
  123. package/dist/{scan-line-DEELRJJ5.js → scan-line-XYEqim_E.js} +1 -1
  124. package/dist/{send-DCMgrNT4.js → send-k7npFJNO.js} +1 -1
  125. package/dist/{shield-check-BFtVr_ov.js → shield-check-CV6GbmCu.js} +1 -1
  126. package/dist/{sparkles-CeYIQ5RJ.js → sparkles-C965Xop4.js} +1 -1
  127. package/dist/style.css +1 -1
  128. package/dist/{styles-D_ztiOsh.js → styles-Dp4mJuCM.js} +817 -729
  129. package/dist/templatical-editor.js +117 -116
  130. package/dist/{text-align-start-BsmIoqLS.js → text-align-start-Bxnps8fH.js} +1 -1
  131. package/dist/{trash-2-C2S4-CIH.js → trash-2-DpGb7fIt.js} +1 -1
  132. package/dist/{triangle-alert-DMdedF6W.js → triangle-alert-BKYElAwz.js} +1 -1
  133. package/dist/{useAliveFlag-DlVvpZxc.js → useAliveFlag-BinvbqQR.js} +1 -1
  134. package/dist/{useCloudI18n-BEuiZdzs.js → useCloudI18n-L3H2XvdW.js} +2 -2
  135. package/dist/{useEditorCore-tZGAVvNz.js → useEditorCore-D7dQFRkw.js} +699 -769
  136. package/dist/{useI18n-DNspT6uw.js → useI18n-CTs_bP9d.js} +2 -2
  137. package/dist/{useMergeTag-abutjUud.js → useMergeTag-e3RSY-s3.js} +6 -6
  138. package/dist/usePopoverRoot-DVh7NY1q.js +8 -0
  139. package/dist/{vue.runtime.esm-bundler-mPytWZFh.js → vue.runtime.esm-bundler-B2k01iQh.js} +345 -337
  140. package/dist/{x-_9jw816B.js → x-CGjkjdKK.js} +1 -1
  141. package/package.json +11 -11
  142. package/dist/cdn/chunks/blockTypeIcons-BC5qpvuV.js +0 -22
  143. package/dist/cdn/chunks/de-DIAGP7yH.js.map +0 -1
  144. package/dist/cdn/chunks/draggable-iAb7QVJo.js.map +0 -1
  145. package/dist/cdn/chunks/en-nqIW8Q9W.js.map +0 -1
  146. package/dist/cdn/chunks/features-DmUOSthI.js.map +0 -1
  147. package/dist/cdn/chunks/icons-DguD4x_X.js.map +0 -1
  148. package/dist/cdn/chunks/liquid.browser-DUDc3U21.js.map +0 -1
  149. package/dist/cdn/chunks/pt-BR-DCNnLLx9.js.map +0 -1
  150. package/dist/cdn/chunks/renderer-Bx8I7_Rb.js.map +0 -1
  151. package/dist/cdn/chunks/styles-CfqCvq0Z.js.map +0 -1
  152. package/dist/cdn/chunks/tiptap-BAwu9VcJ.js.map +0 -1
  153. package/dist/dist-D6L_WdRL.js +0 -403
  154. package/dist/formatRelativeTime-CyDg5cDD.js +0 -12
  155. package/dist/usePopoverRoot-DG3mlvd1.js +0 -8
@@ -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, E as He, M as Ue, N as We, S as Ge, T as Ke, _ as qe, a as Je, b as Ye, d as Xe, f as Ze, g as Qe, h as $e, i as et, j as tt, k as nt, m as rt, n as it, o as at, p as ot, s as st, u as ct, v as lt, w as ut, x as dt, y as ft } from "./keys-DsRdOmg3.js";
5
- import { t as pt } from "./useI18n-DNspT6uw.js";
6
- import { t as F } from "./createLucideIcon-C_fetdGM.js";
7
- import { t as mt } from "./message-circle-nLwqegRi.js";
8
- import { t as ht } from "./trash-2-C2S4-CIH.js";
9
- import { t as gt } from "./triangle-alert-DMdedF6W.js";
10
- import { t as _t } from "./LoadingTrack-e67FA0NP.js";
11
- import { t as vt } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
- import "./useCloudI18n-BEuiZdzs.js";
13
- import { t as yt } from "./useMergeTag-abutjUud.js";
14
- import { t as bt } 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 P, x as oe, y as se, z as ce } from "./vue.runtime.esm-bundler-B2k01iQh.js";
2
+ import { A as le, C as ue, D as de, E as fe, M as pe, N as me, S as he, _ as ge, b as _e, c as ve, d as ye, f as be, g as xe, h as Se, j as Ce, l as we, m as Te, n 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-BctFrpeA.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-DJ9aD8yA.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-mFiJ5N0_.js";
5
+ import { t as ht } from "./useI18n-CTs_bP9d.js";
6
+ import { t as F } from "./createLucideIcon-CmPAC-gt.js";
7
+ import { t as gt } from "./triangle-alert-BKYElAwz.js";
8
+ import { t as _t } from "./message-circle-C3cHsCJl.js";
9
+ import { t as vt } from "./trash-2-DpGb7fIt.js";
10
+ import { t as yt } from "./LoadingTrack-C7mGWPHS.js";
11
+ import { t as bt } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
+ import "./useCloudI18n-L3H2XvdW.js";
13
+ import { t as xt } from "./useMergeTag-e3RSY-s3.js";
14
+ import { t as St } from "./useAliveFlag-BinvbqQR.js";
15
15
  //#region ../core/dist/index.js
16
- function xt(e) {
16
+ function Ct(e) {
17
17
  return e === "1" ? 1 : e === "3" ? 3 : 2;
18
18
  }
19
- function St(e) {
19
+ function wt(e) {
20
20
  let t = o({
21
- content: e.content ?? ke(e.defaultFontFamily, e.templateDefaults),
21
+ content: e.content ?? ye(e.defaultFontFamily, e.templateDefaults),
22
22
  selectedBlockId: null,
23
23
  viewport: "desktop",
24
24
  darkMode: !1,
@@ -106,7 +106,7 @@ function St(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 >= xt(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 St(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 >= xt(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 St(e) {
167
167
  findBlockLocation: l
168
168
  };
169
169
  }
170
- var Ct = 50, wt = 300, Tt = 1500;
171
- function Et(e) {
172
- let { content: t, setContent: n, isRemoteOperation: r, maxSize: i = Ct } = 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 me(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 Et(e) {
187
187
  if (l && l.blockId === e) {
188
188
  clearTimeout(l.timeoutId), l.timeoutId = setTimeout(() => {
189
189
  l = null;
190
- }, wt);
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
- }, wt)
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
- }, Tt);
204
+ }, Dt);
205
205
  }
206
206
  function b() {
207
207
  if (a.value.length === 0) return;
@@ -233,33 +233,33 @@ function Et(e) {
233
233
  destroy: C
234
234
  };
235
235
  }
236
- function Dt(e) {
236
+ function kt(e) {
237
237
  e.type === "table" ? e.rows = e.rows.map((e) => ({
238
238
  ...e,
239
- id: de(),
239
+ id: ue(),
240
240
  cells: e.cells.map((e) => ({
241
241
  ...e,
242
- id: de()
242
+ id: ue()
243
243
  }))
244
244
  })) : e.type === "social" ? e.icons = e.icons.map((e) => ({
245
245
  ...e,
246
- id: de()
246
+ id: ue()
247
247
  })) : e.type === "menu" && (e.items = e.items.map((e) => ({
248
248
  ...e,
249
- id: de()
249
+ id: ue()
250
250
  })));
251
251
  }
252
- function Ot(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 = ke(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(), Dt(o), o.type === "section" && (o.children = o.children.map((e) => e.map((e) => {
260
+ if (o.id = ue(), 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(), Dt(t), t;
262
+ return t.id = ue(), 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 Ot(e) {
280
280
  updateBlockProperty: l
281
281
  };
282
282
  }
283
- function kt(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 kt(e) {
316
316
  destroy: h
317
317
  };
318
318
  }
319
- function At(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 At(e) {
334
334
  hasHiddenBlocks: n
335
335
  };
336
336
  }
337
- function jt(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 jt(e) {
364
364
  needsFetch: i
365
365
  };
366
366
  }
367
- function Mt(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 Mt(e, t) {
380
380
  }
381
381
  //#endregion
382
382
  //#region src/utils/activeEditorTracker.ts
383
- var Nt = /* @__PURE__ */ new Set(), Pt = 0, Ft = 0;
384
- function It() {
385
- let e = ++Ft;
386
- return Nt.add(e), Pt === 0 && (Pt = 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: () => Nt.size <= 1 || Pt === e,
388
+ isActive: () => Ft.size <= 1 || It === e,
389
389
  claim: () => {
390
- Pt = e;
390
+ It = e;
391
391
  },
392
392
  dispose: () => {
393
- if (Nt.delete(e), Pt === e) {
394
- let e = Array.from(Nt);
395
- Pt = 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 Lt() {
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 Lt() {
429
429
  }
430
430
  //#endregion
431
431
  //#region src/composables/useTemplateLint.ts
432
- function Rt(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 zt(e) {
436
- let t = h([]), n = h(!1), r = h(!1), i = d(null), a = Rt(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 zt(e) {
474
474
  }
475
475
  //#endregion
476
476
  //#region src/utils/blockTypeLabels.ts
477
- function Bt(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 Vt(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 Vt(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 ? Bt(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 Vt(e, t) {
575
575
  }
576
576
  //#endregion
577
577
  //#region src/composables/useUiTheme.ts
578
- function Ht(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 Ut = {
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 Ut = {
605
605
  dangerLight: "--tpl-danger-light",
606
606
  canvasBg: "--tpl-canvas-bg"
607
607
  };
608
- function Wt({ 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(Ut)) {
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 Wt({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
617
617
  }
618
618
  //#endregion
619
619
  //#region src/utils/logger.ts
620
- var Gt = "[Templatical]";
621
- function Kt() {
620
+ var qt = "[Templatical]";
621
+ function Jt() {
622
622
  return typeof process < "u" && process.env.NODE_ENV === "production";
623
623
  }
624
- var qt = {
624
+ var Yt = {
625
625
  warn(...e) {
626
- console.warn(Gt, ...e);
626
+ console.warn(qt, ...e);
627
627
  },
628
628
  error(...e) {
629
- console.error(Gt, ...e);
629
+ console.error(qt, ...e);
630
630
  },
631
631
  debug(...e) {
632
- Kt() || console.debug(Gt, ...e);
632
+ Jt() || console.debug(qt, ...e);
633
633
  },
634
634
  info(...e) {
635
- Kt() || console.info(Gt, ...e);
635
+ Jt() || console.info(qt, ...e);
636
636
  }
637
637
  };
638
638
  //#endregion
639
639
  //#region src/composables/useBlockRegistry.ts
640
- function Jt() {
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,7 +645,7 @@ function Jt() {
645
645
  function n(t, n) {
646
646
  let r = `custom:${t.type}`, i = {
647
647
  component: n,
648
- createBlock: () => Ce(t),
648
+ createBlock: () => je(t),
649
649
  definition: t
650
650
  };
651
651
  e.value.set(r, i), k(e);
@@ -671,13 +671,13 @@ function Jt() {
671
671
  let t = a(e.customType);
672
672
  if (!t) return o("Block definition not found");
673
673
  try {
674
- let { Liquid: n } = await import("./liquid.browser--qtl1Fqy.js");
674
+ let { Liquid: n } = await import("./liquid.browser-CVjP5Mex.js");
675
675
  return await new n({
676
676
  strictVariables: !1,
677
677
  strictFilters: !1
678
678
  }).parseAndRender(t.template, e.fieldValues);
679
679
  } catch (t) {
680
- return qt.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
680
+ return Yt.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
681
681
  }
682
682
  }
683
683
  function c(t) {
@@ -695,9 +695,9 @@ function Jt() {
695
695
  }
696
696
  //#endregion
697
697
  //#region src/composables/useCustomBlockStylesheets.ts
698
- function Yt(e, t) {
698
+ function Zt(e, t) {
699
699
  return x(() => {
700
- let n = Xt(e.value.blocks);
700
+ let n = Qt(e.value.blocks);
701
701
  if (n.size === 0) return [];
702
702
  let r = /* @__PURE__ */ new Set(), i = [];
703
703
  for (let e of n) {
@@ -709,81 +709,81 @@ function Yt(e, t) {
709
709
  return i;
710
710
  });
711
711
  }
712
- function Xt(e) {
712
+ function Qt(e) {
713
713
  let t = /* @__PURE__ */ new Set();
714
- return Zt(e, t), t;
714
+ return $t(e, t), t;
715
715
  }
716
- function Zt(e, t) {
716
+ function $t(e, t) {
717
717
  for (let n of e) {
718
- if (le(n)) {
718
+ if (de(n)) {
719
719
  t.add(n.customType);
720
720
  continue;
721
721
  }
722
722
  if (n.type === "section") {
723
723
  let e = n.children;
724
724
  if (!e) continue;
725
- for (let n of e) Zt(n, t);
725
+ for (let n of e) $t(n, t);
726
726
  }
727
727
  }
728
728
  }
729
729
  //#endregion
730
730
  //#region src/utils/registerBuiltInBlocks.ts
731
- var Qt = [
731
+ var en = [
732
732
  {
733
733
  type: "section",
734
- createBlock: ye
734
+ createBlock: ge
735
735
  },
736
736
  {
737
737
  type: "title",
738
- createBlock: he
738
+ createBlock: Ne
739
739
  },
740
740
  {
741
741
  type: "paragraph",
742
- createBlock: be
742
+ createBlock: xe
743
743
  },
744
744
  {
745
745
  type: "image",
746
- createBlock: Ee
746
+ createBlock: Te
747
747
  },
748
748
  {
749
749
  type: "button",
750
- createBlock: De
750
+ createBlock: ve
751
751
  },
752
752
  {
753
753
  type: "divider",
754
- createBlock: _e
754
+ createBlock: be
755
755
  },
756
756
  {
757
757
  type: "video",
758
- createBlock: je
758
+ createBlock: he
759
759
  },
760
760
  {
761
761
  type: "social",
762
- createBlock: pe
762
+ createBlock: Me
763
763
  },
764
764
  {
765
765
  type: "menu",
766
- createBlock: we
766
+ createBlock: Se
767
767
  },
768
768
  {
769
769
  type: "table",
770
- createBlock: Me
770
+ createBlock: _e
771
771
  },
772
772
  {
773
773
  type: "spacer",
774
- createBlock: Ae
774
+ createBlock: Pe
775
775
  },
776
776
  {
777
777
  type: "html",
778
- createBlock: ve
778
+ createBlock: Oe
779
779
  },
780
780
  {
781
781
  type: "countdown",
782
- createBlock: ge
782
+ createBlock: we
783
783
  }
784
784
  ];
785
- function $t(e, t) {
786
- for (let n of Qt) {
785
+ function tn(e, t) {
786
+ for (let n of en) {
787
787
  let r = t[n.type];
788
788
  r && e.registerBuiltIn(n.type, {
789
789
  component: r,
@@ -793,7 +793,7 @@ function $t(e, t) {
793
793
  }
794
794
  //#endregion
795
795
  //#region src/utils/keyboardShortcuts.ts
796
- function en(e) {
796
+ function nn(e) {
797
797
  for (let t of e.composedPath()) {
798
798
  if (!(t instanceof HTMLElement)) continue;
799
799
  if (t.isContentEditable) return !0;
@@ -802,14 +802,14 @@ function en(e) {
802
802
  }
803
803
  return !1;
804
804
  }
805
- function tn(e, t) {
805
+ function rn(e, t) {
806
806
  let n = e.metaKey || e.ctrlKey;
807
807
  if (n && e.key.toLowerCase() === "s") {
808
808
  e.preventDefault(), t.onSave?.();
809
809
  return;
810
810
  }
811
811
  if (n && e.key.toLowerCase() === "z") {
812
- if (en(e)) return;
812
+ if (nn(e)) return;
813
813
  e.preventDefault(), e.shiftKey ? t.history.redo() : (t.onBeforeUndo?.(), t.history.undo());
814
814
  return;
815
815
  }
@@ -817,11 +817,11 @@ function tn(e, t) {
817
817
  t.selectBlock(null);
818
818
  return;
819
819
  }
820
- (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !en(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()));
821
821
  }
822
822
  //#endregion
823
823
  //#region src/components/blocks/ButtonBlock.vue?vue&type=script&setup=true&lang.ts
824
- var nn = { class: "tpl:text-center" }, rn = ["href"], an = /* @__PURE__ */ y({
824
+ var an = { class: "tpl:text-center" }, on = ["href"], sn = /* @__PURE__ */ y({
825
825
  __name: "ButtonBlock",
826
826
  props: {
827
827
  block: {},
@@ -840,19 +840,22 @@ var nn = { class: "tpl:text-center" }, rn = ["href"], an = /* @__PURE__ */ y({
840
840
  borderRadius: `${n.block.borderRadius}px`,
841
841
  textAlign: "center"
842
842
  };
843
- return n.block.fontFamily && (e.fontFamily = n.block.fontFamily), e;
843
+ return n.block.fontFamily && (e.fontFamily = n.block.fontFamily), n.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof n.block.width == "number" && (e.width = `${n.block.width}px`, e.boxSizing = "border-box"), e;
844
844
  });
845
- return (n, i) => (e(), w("div", nn, [C("a", {
845
+ return (n, i) => (e(), w("div", an, [C("a", {
846
846
  href: t.block.url || "#",
847
847
  style: A(r.value),
848
848
  class: "tpl:cursor-default",
849
849
  onClick: i[0] ||= b(() => {}, ["prevent"])
850
- }, M(t.block.text), 13, rn)]));
850
+ }, M(t.block.text), 13, on)]));
851
851
  }
852
- }), on = F("bookmark", [["path", {
852
+ }), cn = F("funnel", [["path", {
853
+ 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",
854
+ key: "sc7q7i"
855
+ }]]), ln = F("bookmark", [["path", {
853
856
  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",
854
857
  key: "oz39mx"
855
- }]]), sn = F("box", [
858
+ }]]), un = F("box", [
856
859
  ["path", {
857
860
  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",
858
861
  key: "hh9hay"
@@ -865,13 +868,13 @@ var nn = { class: "tpl:text-center" }, rn = ["href"], an = /* @__PURE__ */ y({
865
868
  d: "M12 22V12",
866
869
  key: "d0xqtd"
867
870
  }]
868
- ]), cn = F("code", [["path", {
871
+ ]), dn = F("code", [["path", {
869
872
  d: "m16 18 6-6-6-6",
870
873
  key: "eg8j8"
871
874
  }], ["path", {
872
875
  d: "m8 6-6 6 6 6",
873
876
  key: "ppft3o"
874
- }]]), ln = F("copy", [["rect", {
877
+ }]]), fn = F("copy", [["rect", {
875
878
  width: "14",
876
879
  height: "14",
877
880
  x: "8",
@@ -882,7 +885,7 @@ var nn = { class: "tpl:text-center" }, rn = ["href"], an = /* @__PURE__ */ y({
882
885
  }], ["path", {
883
886
  d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
884
887
  key: "zix9uf"
885
- }]]), un = F("eye-off", [
888
+ }]]), pn = F("eye-off", [
886
889
  ["path", {
887
890
  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",
888
891
  key: "ct8e1f"
@@ -899,10 +902,7 @@ var nn = { class: "tpl:text-center" }, rn = ["href"], an = /* @__PURE__ */ y({
899
902
  d: "m2 2 20 20",
900
903
  key: "1ooewy"
901
904
  }]
902
- ]), dn = F("funnel", [["path", {
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",
904
- key: "sc7q7i"
905
- }]]), fn = F("grip-vertical", [
905
+ ]), mn = F("grip-vertical", [
906
906
  ["circle", {
907
907
  cx: "9",
908
908
  cy: "12",
@@ -939,7 +939,7 @@ var nn = { class: "tpl:text-center" }, rn = ["href"], an = /* @__PURE__ */ y({
939
939
  r: "1",
940
940
  key: "f4zoj3"
941
941
  }]
942
- ]), pn = F("image", [
942
+ ]), hn = F("image", [
943
943
  ["rect", {
944
944
  width: "18",
945
945
  height: "18",
@@ -959,13 +959,13 @@ var nn = { class: "tpl:text-center" }, rn = ["href"], an = /* @__PURE__ */ y({
959
959
  d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",
960
960
  key: "1xmnt7"
961
961
  }]
962
- ]), mn = F("navigation", [["polygon", {
962
+ ]), gn = F("navigation", [["polygon", {
963
963
  points: "3 11 22 2 13 21 11 13 3 11",
964
964
  key: "1ltx0t"
965
- }]]), hn = F("puzzle", [["path", {
965
+ }]]), _n = F("puzzle", [["path", {
966
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",
967
967
  key: "w46dr5"
968
- }]]), gn = F("share-2", [
968
+ }]]), vn = F("share-2", [
969
969
  ["circle", {
970
970
  cx: "18",
971
971
  cy: "5",
@@ -998,7 +998,7 @@ var nn = { class: "tpl:text-center" }, rn = ["href"], an = /* @__PURE__ */ y({
998
998
  y2: "10.49",
999
999
  key: "1n3mei"
1000
1000
  }]
1001
- ]), _n = F("table", [
1001
+ ]), yn = F("table", [
1002
1002
  ["path", {
1003
1003
  d: "M12 3v18",
1004
1004
  key: "108xh3"
@@ -1019,7 +1019,7 @@ var nn = { class: "tpl:text-center" }, rn = ["href"], an = /* @__PURE__ */ y({
1019
1019
  d: "M3 15h18",
1020
1020
  key: "5xshup"
1021
1021
  }]
1022
- ]), vn = F("video", [["path", {
1022
+ ]), bn = F("video", [["path", {
1023
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",
1024
1024
  key: "ftymec"
1025
1025
  }], ["rect", {
@@ -1029,11 +1029,11 @@ var nn = { class: "tpl:text-center" }, rn = ["href"], an = /* @__PURE__ */ y({
1029
1029
  height: "12",
1030
1030
  rx: "2",
1031
1031
  key: "158x01"
1032
- }]]), yn = ["innerHTML"], bn = [
1032
+ }]]), xn = ["innerHTML"], Sn = [
1033
1033
  "src",
1034
1034
  "width",
1035
1035
  "height"
1036
- ], xn = /* @__PURE__ */ y({
1036
+ ], Cn = /* @__PURE__ */ y({
1037
1037
  __name: "CustomBlockIcon",
1038
1038
  props: {
1039
1039
  icon: {},
@@ -1049,14 +1049,14 @@ var nn = { class: "tpl:text-center" }, rn = ["href"], an = /* @__PURE__ */ y({
1049
1049
  height: `${r.value}px`
1050
1050
  }),
1051
1051
  innerHTML: t.icon
1052
- }, null, 12, yn)) : a.value ? (e(), w("img", {
1052
+ }, null, 12, xn)) : a.value ? (e(), w("img", {
1053
1053
  key: 1,
1054
1054
  src: t.icon,
1055
1055
  width: r.value,
1056
1056
  height: r.value,
1057
1057
  class: "tpl:inline-block",
1058
1058
  alt: ""
1059
- }, null, 8, bn)) : (e(), ne(j(sn), {
1059
+ }, null, 8, Sn)) : (e(), ne(j(un), {
1060
1060
  key: 2,
1061
1061
  size: r.value,
1062
1062
  "stroke-width": 1.5
@@ -1065,16 +1065,16 @@ var nn = { class: "tpl:text-center" }, rn = ["href"], an = /* @__PURE__ */ y({
1065
1065
  });
1066
1066
  //#endregion
1067
1067
  //#region src/composables/useEditorRoot.ts
1068
- function Sn() {
1069
- return P($e, document) ?? document;
1068
+ function wn() {
1069
+ return P(tt, document) ?? document;
1070
1070
  }
1071
1071
  //#endregion
1072
1072
  //#region src/composables/useFocusTrap.ts
1073
- var Cn = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
1074
- function wn(e, t) {
1075
- let n = Sn(), 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;
1076
1076
  function o() {
1077
- return e.value ? Array.from(e.value.querySelectorAll(Cn)).filter((e) => e.offsetParent !== null) : [];
1077
+ return e.value ? Array.from(e.value.querySelectorAll(Tn)).filter((e) => e.offsetParent !== null) : [];
1078
1078
  }
1079
1079
  function c(e) {
1080
1080
  if (e.key !== "Tab") return;
@@ -1089,7 +1089,7 @@ function wn(e, t) {
1089
1089
  a = null;
1090
1090
  let t = o();
1091
1091
  t.length > 0 && (e.value?.querySelector("[autofocus], input:not([disabled])") ?? t[0]).focus();
1092
- }), i = Re(e, "keydown", c);
1092
+ }), i = Be(e, "keydown", c);
1093
1093
  }
1094
1094
  function u(e = {}) {
1095
1095
  let t = e.restoreFocus !== !1;
@@ -1104,8 +1104,8 @@ function wn(e, t) {
1104
1104
  }
1105
1105
  //#endregion
1106
1106
  //#region src/composables/useEmoji.ts
1107
- function Tn() {
1108
- let [e, t] = Fe(!1), n = d([]), r = !1;
1107
+ function Dn() {
1108
+ let [e, t] = Le(!1), n = d([]), r = !1;
1109
1109
  re(() => {
1110
1110
  r = !0;
1111
1111
  }), s(e, async (e) => {
@@ -1130,7 +1130,7 @@ function Tn() {
1130
1130
  }
1131
1131
  //#endregion
1132
1132
  //#region src/composables/useDragDrop.ts
1133
- function En(e) {
1133
+ function On(e) {
1134
1134
  let { onBlockMove: t, onBlockAdd: n } = e, r = h(!1), i = h(null), a = h(null);
1135
1135
  function o(e) {
1136
1136
  r.value = !0, i.value = e;
@@ -1180,7 +1180,7 @@ function En(e) {
1180
1180
  }
1181
1181
  //#endregion
1182
1182
  //#region src/composables/useFonts.ts
1183
- var Dn = [
1183
+ var kn = [
1184
1184
  {
1185
1185
  value: "Arial",
1186
1186
  label: "Arial"
@@ -1209,7 +1209,7 @@ var Dn = [
1209
1209
  value: "Courier New",
1210
1210
  label: "Courier New"
1211
1211
  }
1212
- ], On = {
1212
+ ], An = {
1213
1213
  arial: "Arial, sans-serif",
1214
1214
  helvetica: "Helvetica, sans-serif",
1215
1215
  georgia: "Georgia, serif",
@@ -1217,14 +1217,14 @@ var Dn = [
1217
1217
  verdana: "Verdana, sans-serif",
1218
1218
  "trebuchet ms": "'Trebuchet MS', sans-serif",
1219
1219
  "courier new": "'Courier New', monospace"
1220
- }, kn = "Arial, sans-serif";
1221
- function An(e) {
1222
- let t = h(e?.customFonts ?? []), n = h(!0), r = h(!1), i = x(() => e?.defaultFallback ?? kn);
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);
1223
1223
  function a(e) {
1224
1224
  n.value = e;
1225
1225
  }
1226
1226
  let o = x(() => {
1227
- let e = [...Dn];
1227
+ let e = [...kn];
1228
1228
  if (!n.value) return e.sort((e, t) => e.label.localeCompare(t.label));
1229
1229
  let r = t.value.map((e) => ({
1230
1230
  value: e.name,
@@ -1237,17 +1237,17 @@ function An(e) {
1237
1237
  return o.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
1238
1238
  }
1239
1239
  function c(e) {
1240
- return Dn.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()));
1241
1241
  }
1242
1242
  function l() {
1243
1243
  if (e?.defaultFont) {
1244
- if (!n.value && !c(e.defaultFont)) return kn;
1244
+ if (!n.value && !c(e.defaultFont)) return jn;
1245
1245
  if (s(e.defaultFont)) {
1246
1246
  let t = o.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
1247
1247
  if (t) return t.value;
1248
1248
  }
1249
1249
  }
1250
- return kn;
1250
+ return jn;
1251
1251
  }
1252
1252
  let u = x(() => l());
1253
1253
  function d(e) {
@@ -1257,7 +1257,7 @@ function An(e) {
1257
1257
  let e = n.fallback ?? i.value;
1258
1258
  return `'${n.name}', ${e}`;
1259
1259
  }
1260
- return On[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${i.value}`);
1260
+ return An[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${i.value}`);
1261
1261
  }
1262
1262
  let f = [], m = !1;
1263
1263
  async function g() {
@@ -1273,7 +1273,7 @@ function An(e) {
1273
1273
  t.onload = () => n(), t.onerror = () => r(/* @__PURE__ */ Error(`Failed to load font: ${e.name}`)), document.head.appendChild(t);
1274
1274
  });
1275
1275
  } catch (t) {
1276
- qt.warn(`Failed to load custom font "${e.name}":`, t);
1276
+ Yt.warn(`Failed to load custom font "${e.name}":`, t);
1277
1277
  }
1278
1278
  });
1279
1279
  await Promise.allSettled(e), !m && (r.value = !0);
@@ -1300,9 +1300,9 @@ function An(e) {
1300
1300
  }
1301
1301
  //#endregion
1302
1302
  //#region src/composables/useRichTextLinkDialog.ts
1303
- function jn(e) {
1303
+ function Nn(e) {
1304
1304
  let t = h(!1), n = h(""), r = h(null);
1305
- wn(r, t);
1305
+ En(r, t);
1306
1306
  function i() {
1307
1307
  n.value = e.value?.getAttributes("link").href || "", t.value = !0;
1308
1308
  }
@@ -1313,7 +1313,7 @@ function jn(e) {
1313
1313
  }
1314
1314
  l();
1315
1315
  }
1316
- let o = new Set([
1316
+ let o = /* @__PURE__ */ new Set([
1317
1317
  "http",
1318
1318
  "https",
1319
1319
  "mailto",
@@ -1353,8 +1353,8 @@ function jn(e) {
1353
1353
  }
1354
1354
  //#endregion
1355
1355
  //#region src/composables/useRichTextEditor.ts
1356
- function Mn(e) {
1357
- let t = P(rt, null), { mergeTags: r, canRequestMergeTag: i, isRequesting: o, requestMergeTag: c, syntax: l, autocomplete: u } = yt(), f = P(tt, 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 } = jn(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 = P(at, null), { mergeTags: r, canRequestMergeTag: i, isRequesting: o, requestMergeTag: c, syntax: l, autocomplete: u } = xt(), f = P(rt, 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 } = 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;
1358
1358
  async function te() {
1359
1359
  O.value = null, D.value = !0;
1360
1360
  try {
@@ -1384,7 +1384,7 @@ function Mn(e) {
1384
1384
  g.value = s, D.value = !1, T();
1385
1385
  } catch (t) {
1386
1386
  if (k) return;
1387
- qt.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;
1388
1388
  }
1389
1389
  }
1390
1390
  function A() {
@@ -1399,7 +1399,7 @@ function Mn(e) {
1399
1399
  let n = t.composedPath().find((e) => e instanceof HTMLElement);
1400
1400
  n && (e.onClickOutsideSideEffect?.(n), !(n.closest(".tpl-text-editor-wrapper") || n.closest(".tpl-text-toolbar") || n.closest(".tpl-link-dialog")) && e.onDone());
1401
1401
  }
1402
- Re(document, "mousedown", re), n(() => {
1402
+ Be(document, "mousedown", re), n(() => {
1403
1403
  k = !0, ne(), E(), g.value?.destroy();
1404
1404
  });
1405
1405
  async function j() {
@@ -1431,21 +1431,31 @@ function Mn(e) {
1431
1431
  };
1432
1432
  }
1433
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
1434
1444
  //#region src/components/blocks/CustomBlock.vue?vue&type=script&setup=true&lang.ts
1435
- var Nn = { class: "tpl:w-full" }, Pn = {
1445
+ var Ln = { class: "tpl:w-full" }, Rn = {
1436
1446
  key: 0,
1437
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)]"
1438
- }, Fn = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, In = {
1448
+ }, zn = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Bn = {
1439
1449
  key: 1,
1440
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)]"
1441
- }, Ln = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Rn = {
1451
+ }, Vn = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Hn = {
1442
1452
  key: 2,
1443
1453
  class: "tpl:relative"
1444
- }, zn = ["innerHTML"], Bn = {
1454
+ }, Un = ["innerHTML"], Wn = {
1445
1455
  key: 0,
1446
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]",
1447
1457
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
1448
- }, Vn = /* @__PURE__ */ y({
1458
+ }, Gn = /* @__PURE__ */ y({
1449
1459
  __name: "CustomBlock",
1450
1460
  props: {
1451
1461
  block: {},
@@ -1453,7 +1463,7 @@ var Nn = { class: "tpl:w-full" }, Pn = {
1453
1463
  },
1454
1464
  emits: ["fetchData"],
1455
1465
  setup(t, { emit: n }) {
1456
- let r = t, i = n, { t: a } = pt(), o = P(at, 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 } = jt({
1466
+ let r = t, i = n, { t: a } = ht(), o = P(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({
1457
1467
  definition: d,
1458
1468
  block: x(() => r.block),
1459
1469
  onUpdate: (e, t) => {
@@ -1474,15 +1484,15 @@ var Nn = { class: "tpl:w-full" }, Pn = {
1474
1484
  }
1475
1485
  }
1476
1486
  }
1477
- let S = Le(y, 150);
1487
+ let S = ze(y, 150);
1478
1488
  return u(() => {
1479
1489
  y();
1480
1490
  }), s(() => r.block.fieldValues, () => {
1481
1491
  S();
1482
- }, { deep: !0 }), (t, n) => (e(), w("div", Nn, [f.value ? l.value ? (e(), w("div", In, [N(j(gt), {
1492
+ }, { deep: !0 }), (t, n) => (e(), w("div", Ln, [f.value ? l.value ? (e(), w("div", Bn, [N(j(gt), {
1483
1493
  size: 24,
1484
1494
  class: "tpl:text-[var(--tpl-danger)]"
1485
- }), C("span", Ln, M(j(a).customBlocks.renderError), 1)])) : (e(), w("div", Rn, [C("div", { innerHTML: c.value }, null, 8, zn), j(v) && j(g) ? (e(), w("div", Bn, [j(p) ? (e(), ne(_t, {
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, {
1486
1496
  key: 1,
1487
1497
  class: "tpl:w-48"
1488
1498
  })) : (e(), w("button", {
@@ -1490,16 +1500,16 @@ var Nn = { class: "tpl:w-full" }, Pn = {
1490
1500
  type: "button",
1491
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)]",
1492
1502
  onClick: n[0] ||= b((...e) => j(m) && j(m)(...e), ["stop"])
1493
- }, [d.value?.icon ? (e(), ne(xn, {
1503
+ }, [d.value?.icon ? (e(), ne(Cn, {
1494
1504
  key: 0,
1495
1505
  icon: d.value.icon,
1496
1506
  size: 16
1497
- }, null, 8, ["icon"])) : O("", !0), _(" " + M(d.value?.dataSource?.label || j(a).customBlocks.dataSource.fetchButton), 1)]))])) : O("", !0)])) : (e(), w("div", Pn, [N(j(hn), {
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), {
1498
1508
  size: 24,
1499
1509
  class: "tpl:text-[var(--tpl-warning)]"
1500
- }), C("span", Fn, M(j(a).customBlocks.definitionNotFound), 1)]))]));
1510
+ }), C("span", zn, M(j(a).customBlocks.definitionNotFound), 1)]))]));
1501
1511
  }
1502
- }), Hn = { class: "tpl:w-full" }, Un = /* @__PURE__ */ y({
1512
+ }), Kn = { class: "tpl:w-full" }, qn = /* @__PURE__ */ y({
1503
1513
  __name: "DividerBlock",
1504
1514
  props: {
1505
1515
  block: {},
@@ -1511,37 +1521,37 @@ var Nn = { class: "tpl:w-full" }, Pn = {
1511
1521
  width: n.block.width === "full" ? "100%" : `${n.block.width}px`,
1512
1522
  margin: n.block.width === "full" ? "0" : "0 auto"
1513
1523
  }));
1514
- return (t, n) => (e(), w("div", Hn, [C("hr", {
1524
+ return (t, n) => (e(), w("div", Kn, [C("hr", {
1515
1525
  class: "tpl:m-0 tpl:border-none",
1516
1526
  style: A(r.value)
1517
1527
  }, null, 4)]));
1518
1528
  }
1519
- }), Wn = { class: "tpl:w-full" }, Gn = { 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)]" }, Kn = {
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 = {
1520
1530
  key: 0,
1521
1531
  class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
1522
- }, qn = {
1532
+ }, Zn = {
1523
1533
  key: 1,
1524
1534
  class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
1525
- }, Jn = /* @__PURE__ */ y({
1535
+ }, Qn = /* @__PURE__ */ y({
1526
1536
  __name: "HtmlBlock",
1527
1537
  props: {
1528
1538
  block: {},
1529
1539
  viewport: {}
1530
1540
  },
1531
1541
  setup(t) {
1532
- let n = t, { t: r } = pt(), i = x(() => n.block.content.trim().length > 0);
1533
- return (t, n) => (e(), w("div", Wn, [C("div", Gn, [N(j(cn), {
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(dn), {
1534
1544
  size: 24,
1535
1545
  class: "tpl:text-[var(--tpl-text-dim)]"
1536
- }), i.value ? (e(), w("span", Kn, M(j(r).html.preview), 1)) : (e(), w("span", qn, 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))])]));
1537
1547
  }
1538
- }), Yn = ["href"], Xn = ["src", "alt"], Zn = ["src", "alt"], Qn = {
1548
+ }), $n = ["href"], er = ["src", "alt"], tr = ["src", "alt"], nr = {
1539
1549
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
1540
1550
  style: { opacity: "0.7" }
1541
- }, $n = ["href"], er = ["src", "alt"], tr = ["src", "alt"], nr = {
1551
+ }, rr = ["href"], ir = ["src", "alt"], ar = ["src", "alt"], or = {
1542
1552
  key: 3,
1543
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)]"
1544
- }, rr = ["aria-label"], ir = { key: 1 }, ar = /* @__PURE__ */ y({
1554
+ }, sr = ["aria-label"], cr = { key: 1 }, lr = /* @__PURE__ */ y({
1545
1555
  __name: "ImageBlock",
1546
1556
  props: {
1547
1557
  block: {},
@@ -1549,7 +1559,7 @@ var Nn = { class: "tpl:w-full" }, Pn = {
1549
1559
  },
1550
1560
  emits: ["update"],
1551
1561
  setup(t, { emit: n }) {
1552
- let r = t, i = n, { t: a } = pt(), { syntax: o } = yt(), s = P(Ve, null), c = x(() => !!s), l = bt();
1562
+ let r = t, i = n, { t: a } = ht(), { syntax: o } = xt(), s = P(Ue, null), c = x(() => !!s), l = St();
1553
1563
  async function u() {
1554
1564
  let e = await s?.({ accept: ["images"] });
1555
1565
  if (l.alive && e) {
@@ -1566,7 +1576,7 @@ var Nn = { class: "tpl:w-full" }, Pn = {
1566
1576
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
1567
1577
  marginRight: e === "center" ? "auto" : void 0
1568
1578
  };
1569
- }), p = x(() => me(r.block.src, o));
1579
+ }), p = x(() => De(r.block.src, o));
1570
1580
  return (n, r) => (e(), w("div", {
1571
1581
  class: "tpl:w-full",
1572
1582
  style: A(d.value)
@@ -1582,22 +1592,22 @@ var Nn = { class: "tpl:w-full" }, Pn = {
1582
1592
  src: t.block.placeholderUrl,
1583
1593
  alt: t.block.alt || j(a).image.altTextPlaceholder,
1584
1594
  style: A(f.value)
1585
- }, null, 12, Xn)], 8, Yn)) : (e(), w("img", {
1595
+ }, null, 12, er)], 8, $n)) : (e(), w("img", {
1586
1596
  key: 1,
1587
1597
  class: "tpl:border-0",
1588
1598
  src: t.block.placeholderUrl,
1589
1599
  alt: t.block.alt,
1590
1600
  style: A(f.value)
1591
- }, null, 12, Zn))], 64)) : t.block.src && p.value ? (e(), w("div", {
1601
+ }, null, 12, tr))], 64)) : t.block.src && p.value ? (e(), w("div", {
1592
1602
  key: 1,
1593
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)]",
1594
1604
  style: A([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, f.value])
1595
- }, [N(j(pn), {
1605
+ }, [N(j(hn), {
1596
1606
  size: 32,
1597
1607
  "stroke-width": 1.5,
1598
1608
  class: "tpl:text-[var(--tpl-primary)]",
1599
1609
  style: { opacity: "0.5" }
1600
- }), C("span", Qn, 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", {
1601
1611
  key: 0,
1602
1612
  href: t.block.linkUrl,
1603
1613
  target: "_blank",
@@ -1609,33 +1619,33 @@ var Nn = { class: "tpl:w-full" }, Pn = {
1609
1619
  src: t.block.src,
1610
1620
  alt: t.block.alt || j(a).image.altTextPlaceholder,
1611
1621
  style: A(f.value)
1612
- }, null, 12, er)], 8, $n)) : (e(), w("img", {
1622
+ }, null, 12, ir)], 8, rr)) : (e(), w("img", {
1613
1623
  key: 1,
1614
1624
  class: "tpl:border-0",
1615
1625
  src: t.block.src,
1616
1626
  alt: t.block.alt,
1617
1627
  style: A(f.value)
1618
- }, null, 12, tr))], 64)) : (e(), w("div", nr, [c.value ? (e(), w("button", {
1628
+ }, null, 12, ar))], 64)) : (e(), w("div", or, [c.value ? (e(), w("button", {
1619
1629
  key: 0,
1620
1630
  "aria-label": j(a).image.browseMedia,
1621
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)]",
1622
1632
  onClick: b(u, ["stop"])
1623
- }, [N(j(pn), {
1633
+ }, [N(j(hn), {
1624
1634
  size: 14,
1625
1635
  "stroke-width": 1.5
1626
- }), _(" " + M(j(a).image.browseMedia), 1)], 8, rr)) : (e(), w("span", ir, 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));
1627
1637
  }
1628
- }), or = { class: "tpl:w-full" }, sr = ["href"], cr = {
1638
+ }), ur = { class: "tpl:w-full" }, dr = ["href"], fr = {
1629
1639
  key: 1,
1630
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)]"
1631
- }, lr = /* @__PURE__ */ y({
1641
+ }, pr = /* @__PURE__ */ y({
1632
1642
  __name: "MenuBlock",
1633
1643
  props: {
1634
1644
  block: {},
1635
1645
  viewport: {}
1636
1646
  },
1637
1647
  setup(t) {
1638
- let n = t, { t: r } = pt(), i = x(() => ({
1648
+ let n = t, { t: r } = ht(), i = x(() => ({
1639
1649
  display: "flex",
1640
1650
  flexWrap: "wrap",
1641
1651
  gap: `0 ${n.block.spacing}px`,
@@ -1647,7 +1657,7 @@ var Nn = { class: "tpl:w-full" }, Pn = {
1647
1657
  function o(e) {
1648
1658
  return e || n.block.linkColor || n.block.color;
1649
1659
  }
1650
- return (n, s) => (e(), w("div", or, [a.value ? (e(), w("div", {
1660
+ return (n, s) => (e(), w("div", ur, [a.value ? (e(), w("div", {
1651
1661
  key: 0,
1652
1662
  style: A(i.value)
1653
1663
  }, [(e(!0), w(D, null, c(t.block.items, (n, r) => (e(), w(D, { key: n.id }, [C("a", {
@@ -1659,15 +1669,15 @@ var Nn = { class: "tpl:w-full" }, Pn = {
1659
1669
  textDecoration: n.underline ? "underline" : "none"
1660
1670
  }),
1661
1671
  onClick: s[0] ||= b(() => {}, ["prevent"])
1662
- }, M(n.text || "..."), 13, sr), r < t.block.items.length - 1 ? (e(), w("span", {
1672
+ }, M(n.text || "..."), 13, dr), r < t.block.items.length - 1 ? (e(), w("span", {
1663
1673
  key: 0,
1664
1674
  style: A({
1665
1675
  color: t.block.separatorColor,
1666
1676
  padding: `0 ${t.block.spacing}px`
1667
1677
  })
1668
- }, M(t.block.separator), 5)) : O("", !0)], 64))), 128))], 4)) : (e(), w("div", cr, [N(j(mn), { 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)]))]));
1669
1679
  }
1670
- }), ur = new Set([
1680
+ }), mr = /* @__PURE__ */ new Set([
1671
1681
  "http",
1672
1682
  "https",
1673
1683
  "mailto",
@@ -1677,7 +1687,7 @@ var Nn = { class: "tpl:w-full" }, Pn = {
1677
1687
  "sms",
1678
1688
  "xmpp",
1679
1689
  "cid"
1680
- ]), dr = new Set([
1690
+ ]), hr = /* @__PURE__ */ new Set([
1681
1691
  "SCRIPT",
1682
1692
  "STYLE",
1683
1693
  "IFRAME",
@@ -1687,7 +1697,7 @@ var Nn = { class: "tpl:w-full" }, Pn = {
1687
1697
  "META",
1688
1698
  "BASE",
1689
1699
  "FORM"
1690
- ]), fr = new Set([
1700
+ ]), gr = /* @__PURE__ */ new Set([
1691
1701
  "href",
1692
1702
  "xlink:href",
1693
1703
  "formaction",
@@ -1696,16 +1706,16 @@ var Nn = { class: "tpl:w-full" }, Pn = {
1696
1706
  "background",
1697
1707
  "poster"
1698
1708
  ]);
1699
- function pr(e, t) {
1709
+ function _r(e, t) {
1700
1710
  let n = e.replace(/[\t\n\r]/g, "").replace(/^[\u0000-\u0020]+/, "").trimEnd();
1701
1711
  if (!n || n.startsWith("#")) return !0;
1702
1712
  let r = /^([a-z][a-z0-9+.-]*):/i.exec(n);
1703
1713
  if (!r) return !0;
1704
1714
  let i = r[1].toLowerCase();
1705
- return ur.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;
1706
1716
  }
1707
- function mr(e) {
1708
- if (dr.has(e.tagName)) {
1717
+ function vr(e) {
1718
+ if (hr.has(e.tagName)) {
1709
1719
  e.remove();
1710
1720
  return;
1711
1721
  }
@@ -1717,29 +1727,29 @@ function mr(e) {
1717
1727
  e.removeAttribute(n);
1718
1728
  continue;
1719
1729
  }
1720
- if (fr.has(t)) {
1721
- pr(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n);
1730
+ if (gr.has(t)) {
1731
+ _r(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n);
1722
1732
  continue;
1723
1733
  }
1724
1734
  if (t === "src") {
1725
- pr(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n);
1735
+ _r(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n);
1726
1736
  continue;
1727
1737
  }
1728
1738
  t === "srcdoc" && e.removeAttribute(n);
1729
1739
  }
1730
1740
  let n = Array.from(e.children);
1731
- for (let e of n) mr(e);
1741
+ for (let e of n) vr(e);
1732
1742
  }
1733
- function hr(e) {
1743
+ function yr(e) {
1734
1744
  if (typeof DOMParser > "u") return e;
1735
1745
  let t = new DOMParser().parseFromString(`<!doctype html><body>${e}</body>`, "text/html").body, n = Array.from(t.children);
1736
- for (let e of n) mr(e);
1746
+ for (let e of n) vr(e);
1737
1747
  return t.innerHTML;
1738
1748
  }
1739
1749
  //#endregion
1740
1750
  //#region src/composables/useEditableTextBlock.ts
1741
- function gr(e) {
1742
- let t = P(ft, []), { syntax: n } = yt(), r = x(() => hr(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 = P(mt, []), { syntax: n } = xt(), r = x(() => yr(le(Ce(e(), t), n))), i = h(!1), a = h(null), { top: o, left: s } = Re(a), c = x(() => ({
1743
1753
  top: o.value - 8,
1744
1754
  left: s.value
1745
1755
  }));
@@ -1760,14 +1770,14 @@ function gr(e) {
1760
1770
  }
1761
1771
  //#endregion
1762
1772
  //#region src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
1763
- var _r = ["innerHTML"], vr = /* @__PURE__ */ y({
1773
+ var xr = ["innerHTML"], Sr = /* @__PURE__ */ y({
1764
1774
  __name: "ParagraphBlock",
1765
1775
  props: {
1766
1776
  block: {},
1767
1777
  viewport: {}
1768
1778
  },
1769
1779
  setup(t) {
1770
- let n = t, r = oe(() => import("./ParagraphEditor-BKoqcKIt.js")), { isEditing: i, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = gr(() => n.block.content);
1780
+ let n = t, r = se(() => import("./ParagraphEditor-BqRFV_Y-.js")), { isEditing: i, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = br(() => n.block.content);
1771
1781
  return (n, u) => (e(), w("div", {
1772
1782
  ref_key: "blockRef",
1773
1783
  ref: a,
@@ -1786,19 +1796,19 @@ var _r = ["innerHTML"], vr = /* @__PURE__ */ y({
1786
1796
  key: 1,
1787
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",
1788
1798
  innerHTML: j(s)
1789
- }, null, 8, _r))], 544));
1799
+ }, null, 8, xr))], 544));
1790
1800
  }
1791
1801
  });
1792
1802
  //#endregion
1793
1803
  //#region src/utils/blockComponentResolver.ts
1794
- function yr(e, t, n) {
1804
+ function Cr(e, t, n) {
1795
1805
  if (t) {
1796
1806
  let n = t.getComponent(e);
1797
1807
  if (n) return n;
1798
1808
  }
1799
1809
  return n[e.type] ?? null;
1800
1810
  }
1801
- function br(e) {
1811
+ function wr(e) {
1802
1812
  let { padding: t, backgroundColor: n } = e.styles;
1803
1813
  return {
1804
1814
  padding: `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`,
@@ -1807,20 +1817,20 @@ function br(e) {
1807
1817
  }
1808
1818
  //#endregion
1809
1819
  //#region src/components/blocks/BlockWrapper.vue?vue&type=script&setup=true&lang.ts
1810
- var xr = ["data-block-id", "data-block-type"], Sr = ["aria-label"], Cr = [
1820
+ var Tr = ["data-block-id", "data-block-type"], Er = ["aria-label"], Dr = [
1811
1821
  "aria-label",
1812
1822
  "aria-pressed",
1813
1823
  "title"
1814
- ], wr = ["aria-label", "title"], Tr = ["aria-label", "title"], Er = ["aria-label", "title"], Dr = {
1824
+ ], Or = ["aria-label", "title"], kr = ["aria-label", "title"], Ar = ["aria-label", "title"], jr = {
1815
1825
  key: 1,
1816
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"
1817
- }, Or = { 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)]" }, kr = {
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 = {
1818
1828
  key: 2,
1819
1829
  class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
1820
- }, Ar = ["aria-label", "title"], jr = {
1830
+ }, Pr = ["aria-label", "title"], Fr = {
1821
1831
  key: 3,
1822
1832
  class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
1823
- }, Mr = ["aria-label"], Nr = /*#__PURE__*/ vt(/* @__PURE__ */ y({
1833
+ }, Ir = ["aria-label"], Lr = /*#__PURE__*/ bt(/* @__PURE__ */ y({
1824
1834
  __name: "BlockWrapper",
1825
1835
  props: {
1826
1836
  block: {},
@@ -1830,7 +1840,7 @@ var xr = ["data-block-id", "data-block-type"], Sr = ["aria-label"], Cr = [
1830
1840
  },
1831
1841
  emits: ["select"],
1832
1842
  setup(t, { emit: n }) {
1833
- let i = oe(() => import("./BlockIssueBadge-BF4sdsr4.js")), a = t, o = n, { t: s, format: c } = pt(), u = P(lt, 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 = se(() => import("./BlockIssueBadge-C-EPqWsh.js")), a = t, o = n, { t: s, format: c } = ht(), u = P(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);
1834
1844
  async function m() {
1835
1845
  await r(), d.value?.focus();
1836
1846
  }
@@ -1856,8 +1866,8 @@ var xr = ["data-block-id", "data-block-type"], Sr = ["aria-label"], Cr = [
1856
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 ? {
1857
1867
  desktop: s.viewport.desktop,
1858
1868
  mobile: s.viewport.mobile
1859
- }[a.viewport] ?? a.viewport : ""), E = x(() => !!a.block.displayCondition), ee = P(et, null), D = P(ct, null), k = P(st, {}), te = x(() => !!k.savedModules), ne = x(() => k.comments?.getBlockCount(a.block.id) ?? 0), re = x(() => {
1860
- let e = br(a.block);
1869
+ }[a.viewport] ?? a.viewport : ""), E = x(() => !!a.block.displayCondition), ee = P(nt, null), D = P(ut, null), k = P(lt, {}), te = x(() => !!k.savedModules), ne = x(() => k.comments?.getBlockCount(a.block.id) ?? 0), re = x(() => {
1870
+ let e = wr(a.block);
1861
1871
  return {
1862
1872
  padding: e.padding,
1863
1873
  backgroundColor: e.backgroundColor
@@ -1869,7 +1879,7 @@ var xr = ["data-block-id", "data-block-type"], Sr = ["aria-label"], Cr = [
1869
1879
  function ae() {
1870
1880
  ee?.deleteBlock(a.block.id);
1871
1881
  }
1872
- function se() {
1882
+ function oe() {
1873
1883
  ee?.duplicateBlock(a.block);
1874
1884
  }
1875
1885
  function ce() {
@@ -1905,90 +1915,90 @@ var xr = ["data-block-id", "data-block-type"], Sr = ["aria-label"], Cr = [
1905
1915
  "aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
1906
1916
  title: j(s).blockActions.drag,
1907
1917
  onKeydown: g
1908
- }, [N(j(fn), {
1918
+ }, [N(j(mn), {
1909
1919
  size: 14,
1910
1920
  "stroke-width": 1.5
1911
- })], 40, Cr),
1921
+ })], 40, Dr),
1912
1922
  C("button", {
1913
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",
1914
1924
  "aria-label": j(s).blockActions.duplicate,
1915
1925
  title: j(s).blockActions.duplicate,
1916
- onClick: b(se, ["stop"])
1917
- }, [N(j(ln), {
1926
+ onClick: b(oe, ["stop"])
1927
+ }, [N(j(fn), {
1918
1928
  size: 14,
1919
1929
  "stroke-width": 1.5
1920
- })], 8, wr),
1930
+ })], 8, Or),
1921
1931
  te.value ? (e(), w("button", {
1922
1932
  key: 0,
1923
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",
1924
1934
  "aria-label": j(s).blockActions.saveAsModule,
1925
1935
  title: j(s).blockActions.saveAsModule,
1926
1936
  onClick: b(ce, ["stop"])
1927
- }, [N(j(on), {
1937
+ }, [N(j(ln), {
1928
1938
  size: 14,
1929
1939
  "stroke-width": 1.5
1930
- })], 8, Tr)) : O("", !0),
1940
+ })], 8, kr)) : O("", !0),
1931
1941
  C("button", {
1932
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",
1933
1943
  "aria-label": j(s).blockActions.delete,
1934
1944
  title: j(s).blockActions.delete,
1935
1945
  onClick: b(ae, ["stop"])
1936
- }, [N(j(ht), {
1946
+ }, [N(j(vt), {
1937
1947
  size: 14,
1938
1948
  "stroke-width": 1.5
1939
- })], 8, Er)
1940
- ], 8, Sr)) : O("", !0),
1941
- y.value ? (e(), w("div", Dr, [C("span", Or, [N(j(un), {
1949
+ })], 8, Ar)
1950
+ ], 8, Er)) : O("", !0),
1951
+ y.value ? (e(), w("div", jr, [C("span", Mr, [N(j(pn), {
1942
1952
  size: 12,
1943
1953
  "stroke-width": 1.5
1944
1954
  }), _(" " + M(j(c)(j(s).blockActions.hiddenOnViewport, { viewport: T.value })), 1)])])) : O("", !0),
1945
- E.value && !y.value ? (e(), w("div", kr, [C("button", {
1955
+ E.value && !y.value ? (e(), w("div", Nr, [C("button", {
1946
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)]",
1947
1957
  "aria-label": j(s).blockActions.conditionToggle,
1948
1958
  title: t.block.displayCondition?.label,
1949
1959
  onClick: b(le, ["stop"])
1950
- }, [N(j(dn), {
1960
+ }, [N(j(cn), {
1951
1961
  size: 12,
1952
1962
  "stroke-width": 2
1953
- })], 8, Ar)])) : O("", !0),
1954
- ne.value > 0 && !y.value ? (e(), w("div", jr, [C("button", {
1963
+ })], 8, Pr)])) : O("", !0),
1964
+ ne.value > 0 && !y.value ? (e(), w("div", Fr, [C("button", {
1955
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)]",
1956
1966
  "aria-label": j(c)(j(s).blockActions.comments, { count: String(ne.value) }),
1957
1967
  onClick: r[0] ||= b((e) => j(k).comments?.openForBlock(t.block.id), ["stop"])
1958
- }, [N(j(mt), {
1968
+ }, [N(j(_t), {
1959
1969
  size: 12,
1960
1970
  "stroke-width": 2.5
1961
- }), _(" " + M(ne.value), 1)], 8, Mr)])) : O("", !0),
1971
+ }), _(" " + M(ne.value), 1)], 8, Ir)])) : O("", !0),
1962
1972
  C("div", {
1963
1973
  class: "tpl-block-content",
1964
1974
  style: A(re.value)
1965
1975
  }, [l(n.$slots, "default", {}, void 0, !0)], 4)
1966
- ], 10, xr));
1976
+ ], 10, Tr));
1967
1977
  }
1968
1978
  }), [["__scopeId", "data-v-4a48371d"]]);
1969
1979
  //#endregion
1970
1980
  //#region src/utils/unwrapParagraph.ts
1971
- function Pr(e) {
1981
+ function Rr(e) {
1972
1982
  let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
1973
1983
  return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
1974
1984
  }
1975
1985
  //#endregion
1976
1986
  //#region src/components/blocks/TitleBlock.vue
1977
- var Fr = /* @__PURE__ */ y({
1987
+ var zr = /* @__PURE__ */ y({
1978
1988
  __name: "TitleBlock",
1979
1989
  props: {
1980
1990
  block: {},
1981
1991
  viewport: {}
1982
1992
  },
1983
1993
  setup(t) {
1984
- let n = t, r = oe(() => import("./TitleEditor-Rv1deuV7.js")), { isEditing: a, blockRef: o, toolbarPosition: s, resolvedContent: c, handleDoubleClick: l, handleEditorDone: u } = gr(() => n.block.content), d = x(() => {
1994
+ let n = t, r = se(() => import("./TitleEditor-FMh54Cx5.js")), { isEditing: a, blockRef: o, toolbarPosition: s, resolvedContent: c, handleDoubleClick: l, handleEditorDone: u } = br(() => n.block.content), d = x(() => {
1985
1995
  let e = {
1986
- fontSize: `${Oe[n.block.level]}px`,
1996
+ fontSize: `${Ae[n.block.level]}px`,
1987
1997
  color: n.block.color,
1988
1998
  textAlign: n.block.textAlign
1989
1999
  };
1990
2000
  return n.block.fontFamily && (e.fontFamily = n.block.fontFamily), e;
1991
- }), f = x(() => `h${n.block.level}`), p = x(() => Pr(c.value));
2001
+ }), f = x(() => `h${n.block.level}`), p = x(() => Rr(c.value));
1992
2002
  return (n, c) => (e(), w("div", {
1993
2003
  ref_key: "blockRef",
1994
2004
  ref: o,
@@ -2011,83 +2021,83 @@ var Fr = /* @__PURE__ */ y({
2011
2021
  innerHTML: p.value
2012
2022
  }, null, 8, ["innerHTML"]))], 36));
2013
2023
  }
2014
- }), Ir = Object.defineProperty, Lr = Object.getOwnPropertySymbols, Rr = Object.prototype.hasOwnProperty, zr = Object.prototype.propertyIsEnumerable, Br = (e, t, n) => t in e ? Ir(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, {
2015
2025
  enumerable: !0,
2016
2026
  configurable: !0,
2017
2027
  writable: !0,
2018
2028
  value: n
2019
- }) : e[t] = n, Vr = (e, t) => {
2020
- for (var n in t ||= {}) Rr.call(t, n) && Br(e, n, t[n]);
2021
- if (Lr) for (var n of Lr(t)) zr.call(t, n) && Br(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]);
2022
2032
  return e;
2023
- }, Hr = (e, t) => {
2033
+ }, Kr = (e, t) => {
2024
2034
  var n = {};
2025
- for (var r in e) Rr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
2026
- if (e != null && Lr) for (var r of Lr(e)) t.indexOf(r) < 0 && zr.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]);
2027
2037
  return n;
2028
- }, Ur = "[vue-draggable-plus]: ";
2029
- function Wr(e) {
2030
- console.warn(Ur + e);
2038
+ }, qr = "[vue-draggable-plus]: ";
2039
+ function Jr(e) {
2040
+ console.warn(qr + e);
2031
2041
  }
2032
- function Gr(e) {
2033
- console.error(Ur + e);
2042
+ function Yr(e) {
2043
+ console.error(qr + e);
2034
2044
  }
2035
- function Kr(e, t, n) {
2045
+ function Xr(e, t, n) {
2036
2046
  return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
2037
2047
  }
2038
- function qr(e) {
2048
+ function Zr(e) {
2039
2049
  return e.replace(/-(\w)/g, (e, t) => t ? t.toUpperCase() : "");
2040
2050
  }
2041
- function Jr(e) {
2042
- return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[qr(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), {});
2043
2053
  }
2044
- function Yr(e, t) {
2054
+ function $r(e, t) {
2045
2055
  return Array.isArray(e) && e.splice(t, 1), e;
2046
2056
  }
2047
- function Xr(e, t, n) {
2057
+ function ei(e, t, n) {
2048
2058
  return Array.isArray(e) && e.splice(t, 0, n), e;
2049
2059
  }
2050
- function Zr(e) {
2060
+ function ti(e) {
2051
2061
  return e === void 0;
2052
2062
  }
2053
- function Qr(e) {
2063
+ function ni(e) {
2054
2064
  return typeof e == "string";
2055
2065
  }
2056
- function $r(e, t, n) {
2066
+ function ri(e, t, n) {
2057
2067
  let r = e.children[n];
2058
2068
  e.insertBefore(t, r);
2059
2069
  }
2060
- function ei(e) {
2070
+ function ii(e) {
2061
2071
  e.parentNode && e.parentNode.removeChild(e);
2062
2072
  }
2063
- function ti(e, t = document) {
2073
+ function ai(e, t = document) {
2064
2074
  let n = null;
2065
- return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || Wr(`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;
2066
2076
  }
2067
- function ni(e, t, n = null) {
2077
+ function oi(e, t, n = null) {
2068
2078
  return function(...r) {
2069
2079
  return e.apply(n, r), t.apply(n, r);
2070
2080
  };
2071
2081
  }
2072
- function ri(e, t) {
2073
- let n = Vr({}, e);
2082
+ function si(e, t) {
2083
+ let n = Gr({}, e);
2074
2084
  return Object.keys(t).forEach((r) => {
2075
- n[r] ? n[r] = ni(e[r], t[r]) : n[r] = t[r];
2085
+ n[r] ? n[r] = oi(e[r], t[r]) : n[r] = t[r];
2076
2086
  }), n;
2077
2087
  }
2078
- function ii(e) {
2088
+ function ci(e) {
2079
2089
  return e instanceof HTMLElement;
2080
2090
  }
2081
- function ai(e, t) {
2091
+ function li(e, t) {
2082
2092
  Object.keys(e).forEach((n) => {
2083
2093
  t(n, e[n]);
2084
2094
  });
2085
2095
  }
2086
- function oi(e) {
2096
+ function ui(e) {
2087
2097
  return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
2088
2098
  }
2089
- var si = Object.assign;
2090
- function ci(e, t) {
2099
+ var di = Object.assign;
2100
+ function fi(e, t) {
2091
2101
  var n = Object.keys(e);
2092
2102
  if (Object.getOwnPropertySymbols) {
2093
2103
  var r = Object.getOwnPropertySymbols(e);
@@ -2097,26 +2107,26 @@ function ci(e, t) {
2097
2107
  }
2098
2108
  return n;
2099
2109
  }
2100
- function li(e) {
2110
+ function pi(e) {
2101
2111
  for (var t = 1; t < arguments.length; t++) {
2102
2112
  var n = arguments[t] == null ? {} : arguments[t];
2103
- t % 2 ? ci(Object(n), !0).forEach(function(t) {
2104
- di(e, t, n[t]);
2105
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ci(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) {
2106
2116
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
2107
2117
  });
2108
2118
  }
2109
2119
  return e;
2110
2120
  }
2111
- function ui(e) {
2121
+ function mi(e) {
2112
2122
  "@babel/helpers - typeof";
2113
- return ui = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2123
+ return mi = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2114
2124
  return typeof e;
2115
2125
  } : function(e) {
2116
2126
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2117
- }, ui(e);
2127
+ }, mi(e);
2118
2128
  }
2119
- function di(e, t, n) {
2129
+ function hi(e, t, n) {
2120
2130
  return t in e ? Object.defineProperty(e, t, {
2121
2131
  value: n,
2122
2132
  enumerable: !0,
@@ -2124,45 +2134,45 @@ function di(e, t, n) {
2124
2134
  writable: !0
2125
2135
  }) : e[t] = n, e;
2126
2136
  }
2127
- function fi() {
2128
- return fi = Object.assign || function(e) {
2137
+ function gi() {
2138
+ return gi = Object.assign || function(e) {
2129
2139
  for (var t = 1; t < arguments.length; t++) {
2130
2140
  var n = arguments[t];
2131
2141
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
2132
2142
  }
2133
2143
  return e;
2134
- }, fi.apply(this, arguments);
2144
+ }, gi.apply(this, arguments);
2135
2145
  }
2136
- function pi(e, t) {
2146
+ function _i(e, t) {
2137
2147
  if (e == null) return {};
2138
2148
  var n = {}, r = Object.keys(e), i, a;
2139
2149
  for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
2140
2150
  return n;
2141
2151
  }
2142
- function mi(e, t) {
2152
+ function vi(e, t) {
2143
2153
  if (e == null) return {};
2144
- var n = pi(e, t), r, i;
2154
+ var n = _i(e, t), r, i;
2145
2155
  if (Object.getOwnPropertySymbols) {
2146
2156
  var a = Object.getOwnPropertySymbols(e);
2147
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]);
2148
2158
  }
2149
2159
  return n;
2150
2160
  }
2151
- var hi = "1.15.2";
2152
- function gi(e) {
2161
+ var yi = "1.15.2";
2162
+ function bi(e) {
2153
2163
  if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
2154
2164
  }
2155
- var _i = gi(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), vi = gi(/Edge/i), yi = gi(/firefox/i), bi = gi(/safari/i) && !gi(/chrome/i) && !gi(/android/i), xi = gi(/iP(ad|od|hone)/i), Si = gi(/chrome/i) && gi(/android/i), Ci = {
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 = {
2156
2166
  capture: !1,
2157
2167
  passive: !1
2158
2168
  };
2159
2169
  function I(e, t, n) {
2160
- e.addEventListener(t, n, !_i && Ci);
2170
+ e.addEventListener(t, n, !xi && Di);
2161
2171
  }
2162
2172
  function L(e, t, n) {
2163
- e.removeEventListener(t, n, !_i && Ci);
2173
+ e.removeEventListener(t, n, !xi && Di);
2164
2174
  }
2165
- function wi(e, t) {
2175
+ function Oi(e, t) {
2166
2176
  if (t) {
2167
2177
  if (t[0] === ">" && (t = t.substring(1)), e) try {
2168
2178
  if (e.matches) return e.matches(t);
@@ -2174,22 +2184,22 @@ function wi(e, t) {
2174
2184
  return !1;
2175
2185
  }
2176
2186
  }
2177
- function Ti(e) {
2187
+ function ki(e) {
2178
2188
  return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
2179
2189
  }
2180
- function Ei(e, t, n, r) {
2190
+ function Ai(e, t, n, r) {
2181
2191
  if (e) {
2182
2192
  n ||= document;
2183
2193
  do {
2184
- if (t != null && (t[0] === ">" ? e.parentNode === n && wi(e, t) : wi(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;
2185
2195
  if (e === n) break;
2186
- } while (e = Ti(e));
2196
+ } while (e = ki(e));
2187
2197
  }
2188
2198
  return null;
2189
2199
  }
2190
- var Di = /\s+/g;
2200
+ var ji = /\s+/g;
2191
2201
  function R(e, t, n) {
2192
- e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(Di, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(Di, " "));
2202
+ e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(ji, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(ji, " "));
2193
2203
  }
2194
2204
  function z(e, t, n) {
2195
2205
  var r = e && e.style;
@@ -2198,7 +2208,7 @@ function z(e, t, n) {
2198
2208
  !(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
2199
2209
  }
2200
2210
  }
2201
- function Oi(e, t) {
2211
+ function Mi(e, t) {
2202
2212
  var n = "";
2203
2213
  if (typeof e == "string") n = e;
2204
2214
  else do {
@@ -2208,7 +2218,7 @@ function Oi(e, t) {
2208
2218
  var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
2209
2219
  return i && new i(n);
2210
2220
  }
2211
- function ki(e, t, n) {
2221
+ function Ni(e, t, n) {
2212
2222
  if (e) {
2213
2223
  var r = e.getElementsByTagName(t), i = 0, a = r.length;
2214
2224
  if (n) for (; i < a; i++) n(r[i], i);
@@ -2216,13 +2226,13 @@ function ki(e, t, n) {
2216
2226
  }
2217
2227
  return [];
2218
2228
  }
2219
- function Ai() {
2229
+ function Pi() {
2220
2230
  return document.scrollingElement || document.documentElement;
2221
2231
  }
2222
2232
  function B(e, t, n, r, i) {
2223
2233
  if (!(!e.getBoundingClientRect && e !== window)) {
2224
2234
  var a, o, s, c, l, u, d;
2225
- if (e !== window && e.parentNode && e !== Ai() ? (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, !_i)) do
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
2226
2236
  if (i && i.getBoundingClientRect && (z(i, "transform") !== "none" || n && z(i, "position") !== "static")) {
2227
2237
  var f = i.getBoundingClientRect();
2228
2238
  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;
@@ -2230,7 +2240,7 @@ function B(e, t, n, r, i) {
2230
2240
  }
2231
2241
  while (i = i.parentNode);
2232
2242
  if (r && e !== window) {
2233
- var p = Oi(i || e), m = p && p.a, h = p && p.d;
2243
+ var p = Mi(i || e), m = p && p.a, h = p && p.d;
2234
2244
  p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
2235
2245
  }
2236
2246
  return {
@@ -2243,18 +2253,18 @@ function B(e, t, n, r, i) {
2243
2253
  };
2244
2254
  }
2245
2255
  }
2246
- function ji(e, t, n) {
2247
- for (var r = Li(e, !0), i = B(e)[t]; r;) {
2256
+ function Fi(e, t, n) {
2257
+ for (var r = Vi(e, !0), i = B(e)[t]; r;) {
2248
2258
  var a = B(r)[n], o = void 0;
2249
2259
  if (o = i >= a, !o) return r;
2250
- if (r === Ai()) break;
2251
- r = Li(r, !1);
2260
+ if (r === Pi()) break;
2261
+ r = Vi(r, !1);
2252
2262
  }
2253
2263
  return !1;
2254
2264
  }
2255
- function Mi(e, t, n, r) {
2265
+ function Ii(e, t, n, r) {
2256
2266
  for (var i = 0, a = 0, o = e.children; a < o.length;) {
2257
- if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && Ei(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)) {
2258
2268
  if (i === t) return o[a];
2259
2269
  i++;
2260
2270
  }
@@ -2262,84 +2272,84 @@ function Mi(e, t, n, r) {
2262
2272
  }
2263
2273
  return null;
2264
2274
  }
2265
- function Ni(e, t) {
2266
- for (var n = e.lastElementChild; n && (n === Q.ghost || z(n, "display") === "none" || t && !wi(n, t));) n = n.previousElementSibling;
2275
+ function Li(e, t) {
2276
+ for (var n = e.lastElementChild; n && (n === Q.ghost || z(n, "display") === "none" || t && !Oi(n, t));) n = n.previousElementSibling;
2267
2277
  return n || null;
2268
2278
  }
2269
- function Pi(e, t) {
2279
+ function Ri(e, t) {
2270
2280
  var n = 0;
2271
2281
  if (!e || !e.parentNode) return -1;
2272
- for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || wi(e, t)) && n++;
2282
+ for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || Oi(e, t)) && n++;
2273
2283
  return n;
2274
2284
  }
2275
- function Fi(e) {
2276
- var t = 0, n = 0, r = Ai();
2285
+ function zi(e) {
2286
+ var t = 0, n = 0, r = Pi();
2277
2287
  if (e) do {
2278
- var i = Oi(e), a = i.a, o = i.d;
2288
+ var i = Mi(e), a = i.a, o = i.d;
2279
2289
  t += e.scrollLeft * a, n += e.scrollTop * o;
2280
2290
  } while (e !== r && (e = e.parentNode));
2281
2291
  return [t, n];
2282
2292
  }
2283
- function Ii(e, t) {
2293
+ function Bi(e, t) {
2284
2294
  for (var n in e) if (e.hasOwnProperty(n)) {
2285
2295
  for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
2286
2296
  }
2287
2297
  return -1;
2288
2298
  }
2289
- function Li(e, t) {
2290
- if (!e || !e.getBoundingClientRect) return Ai();
2299
+ function Vi(e, t) {
2300
+ if (!e || !e.getBoundingClientRect) return Pi();
2291
2301
  var n = e, r = !1;
2292
2302
  do
2293
2303
  if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
2294
2304
  var i = z(n);
2295
2305
  if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
2296
- if (!n.getBoundingClientRect || n === document.body) return Ai();
2306
+ if (!n.getBoundingClientRect || n === document.body) return Pi();
2297
2307
  if (r || t) return n;
2298
2308
  r = !0;
2299
2309
  }
2300
2310
  }
2301
2311
  while (n = n.parentNode);
2302
- return Ai();
2312
+ return Pi();
2303
2313
  }
2304
- function Ri(e, t) {
2314
+ function Hi(e, t) {
2305
2315
  if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
2306
2316
  return e;
2307
2317
  }
2308
- function zi(e, t) {
2318
+ function Ui(e, t) {
2309
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);
2310
2320
  }
2311
- var Bi;
2312
- function Vi(e, t) {
2321
+ var Wi;
2322
+ function Gi(e, t) {
2313
2323
  return function() {
2314
- if (!Bi) {
2324
+ if (!Wi) {
2315
2325
  var n = arguments, r = this;
2316
- n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), Bi = setTimeout(function() {
2317
- Bi = void 0;
2326
+ n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), Wi = setTimeout(function() {
2327
+ Wi = void 0;
2318
2328
  }, t);
2319
2329
  }
2320
2330
  };
2321
2331
  }
2322
- function Hi() {
2323
- clearTimeout(Bi), Bi = void 0;
2332
+ function Ki() {
2333
+ clearTimeout(Wi), Wi = void 0;
2324
2334
  }
2325
- function Ui(e, t, n) {
2335
+ function qi(e, t, n) {
2326
2336
  e.scrollLeft += t, e.scrollTop += n;
2327
2337
  }
2328
- function Wi(e) {
2338
+ function Ji(e) {
2329
2339
  var t = window.Polymer, n = window.jQuery || window.Zepto;
2330
2340
  return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
2331
2341
  }
2332
- function Gi(e, t, n) {
2342
+ function Yi(e, t, n) {
2333
2343
  var r = {};
2334
2344
  return Array.from(e.children).forEach(function(i) {
2335
- if (!(!Ei(i, t.draggable, e, !1) || i.animated || i === n)) {
2345
+ if (!(!Ai(i, t.draggable, e, !1) || i.animated || i === n)) {
2336
2346
  var a = B(i);
2337
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);
2338
2348
  }
2339
2349
  }), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
2340
2350
  }
2341
2351
  var V = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
2342
- function Ki() {
2352
+ function Xi() {
2343
2353
  var e = [], t;
2344
2354
  return {
2345
2355
  captureAnimationState: function() {
@@ -2349,9 +2359,9 @@ function Ki() {
2349
2359
  target: t,
2350
2360
  rect: B(t)
2351
2361
  });
2352
- var n = li({}, e[e.length - 1].rect);
2362
+ var n = pi({}, e[e.length - 1].rect);
2353
2363
  if (t.thisAnimationDuration) {
2354
- var r = Oi(t, !0);
2364
+ var r = Mi(t, !0);
2355
2365
  r && (n.top -= r.f, n.left -= r.e);
2356
2366
  }
2357
2367
  t.fromRect = n;
@@ -2362,7 +2372,7 @@ function Ki() {
2362
2372
  e.push(t);
2363
2373
  },
2364
2374
  removeAnimationState: function(t) {
2365
- e.splice(Ii(e, { target: t }), 1);
2375
+ e.splice(Bi(e, { target: t }), 1);
2366
2376
  },
2367
2377
  animateAll: function(n) {
2368
2378
  var r = this;
@@ -2372,8 +2382,8 @@ function Ki() {
2372
2382
  }
2373
2383
  var i = !1, a = 0;
2374
2384
  e.forEach(function(e) {
2375
- var t = 0, n = e.target, o = n.fromRect, s = B(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = Oi(n, !0);
2376
- d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && zi(c, s) && !zi(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = Ji(u, c, l, r.options)), zi(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 = B(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 && Ui(c, s) && !Ui(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)), Ui(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() {
2377
2387
  n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
2378
2388
  }, t), n.thisAnimationDuration = t);
2379
2389
  }), clearTimeout(t), i ? t = setTimeout(function() {
@@ -2383,26 +2393,26 @@ function Ki() {
2383
2393
  animate: function(e, t, n, r) {
2384
2394
  if (r) {
2385
2395
  z(e, "transition", ""), z(e, "transform", "");
2386
- var i = Oi(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
2387
- e.animatingX = !!s, e.animatingY = !!c, z(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = qi(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() {
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, z(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = Zi(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() {
2388
2398
  z(e, "transition", ""), z(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
2389
2399
  }, r);
2390
2400
  }
2391
2401
  }
2392
2402
  };
2393
2403
  }
2394
- function qi(e) {
2404
+ function Zi(e) {
2395
2405
  return e.offsetWidth;
2396
2406
  }
2397
- function Ji(e, t, n, r) {
2407
+ function Qi(e, t, n, r) {
2398
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;
2399
2409
  }
2400
- var Yi = [], Xi = { initializeByDefault: !0 }, Zi = {
2410
+ var $i = [], ea = { initializeByDefault: !0 }, ta = {
2401
2411
  mount: function(e) {
2402
- for (var t in Xi) Xi.hasOwnProperty(t) && !(t in e) && (e[t] = Xi[t]);
2403
- Yi.forEach(function(t) {
2412
+ for (var t in ea) ea.hasOwnProperty(t) && !(t in e) && (e[t] = ea[t]);
2413
+ $i.forEach(function(t) {
2404
2414
  if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
2405
- }), Yi.push(e);
2415
+ }), $i.push(e);
2406
2416
  },
2407
2417
  pluginEvent: function(e, t, n) {
2408
2418
  var r = this;
@@ -2410,16 +2420,16 @@ var Yi = [], Xi = { initializeByDefault: !0 }, Zi = {
2410
2420
  r.eventCanceled = !0;
2411
2421
  };
2412
2422
  var i = e + "Global";
2413
- Yi.forEach(function(r) {
2414
- t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](li({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](li({ sortable: t }, n)));
2423
+ $i.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)));
2415
2425
  });
2416
2426
  },
2417
2427
  initializePlugins: function(e, t, n, r) {
2418
- for (var i in Yi.forEach(function(r) {
2428
+ for (var i in $i.forEach(function(r) {
2419
2429
  var i = r.pluginName;
2420
2430
  if (!(!e.options[i] && !r.initializeByDefault)) {
2421
2431
  var a = new r(e, t, e.options);
2422
- a.sortable = e, a.options = e.options, e[i] = a, fi(n, a.defaults);
2432
+ a.sortable = e, a.options = e.options, e[i] = a, gi(n, a.defaults);
2423
2433
  }
2424
2434
  }), e.options) if (e.options.hasOwnProperty(i)) {
2425
2435
  var a = this.modifyOption(e, i, e.options[i]);
@@ -2428,56 +2438,56 @@ var Yi = [], Xi = { initializeByDefault: !0 }, Zi = {
2428
2438
  },
2429
2439
  getEventProperties: function(e, t) {
2430
2440
  var n = {};
2431
- return Yi.forEach(function(r) {
2432
- typeof r.eventProperties == "function" && fi(n, r.eventProperties.call(t[r.pluginName], e));
2441
+ return $i.forEach(function(r) {
2442
+ typeof r.eventProperties == "function" && gi(n, r.eventProperties.call(t[r.pluginName], e));
2433
2443
  }), n;
2434
2444
  },
2435
2445
  modifyOption: function(e, t, n) {
2436
2446
  var r;
2437
- return Yi.forEach(function(i) {
2447
+ return $i.forEach(function(i) {
2438
2448
  e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
2439
2449
  }), r;
2440
2450
  }
2441
2451
  };
2442
- function Qi(e) {
2452
+ function na(e) {
2443
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;
2444
2454
  if (t ||= n && n[V], t) {
2445
2455
  var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
2446
- window.CustomEvent && !_i && !vi ? h = new CustomEvent(r, {
2456
+ window.CustomEvent && !xi && !Si ? h = new CustomEvent(r, {
2447
2457
  bubbles: !0,
2448
2458
  cancelable: !0
2449
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;
2450
- var v = li(li({}, m), Zi.getEventProperties(r, t));
2460
+ var v = pi(pi({}, m), ta.getEventProperties(r, t));
2451
2461
  for (var y in v) h[y] = v[y];
2452
2462
  n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
2453
2463
  }
2454
2464
  }
2455
- var $i = ["evt"], H = function(e, t) {
2456
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = mi(n, $i);
2457
- Zi.pluginEvent.bind(Q)(e, t, li({
2465
+ var ra = ["evt"], H = function(e, t) {
2466
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = vi(n, ra);
2467
+ ta.pluginEvent.bind(Q)(e, t, pi({
2458
2468
  dragEl: W,
2459
2469
  parentEl: G,
2460
2470
  ghostEl: K,
2461
2471
  rootEl: q,
2462
- nextEl: ea,
2463
- lastDownEl: ta,
2472
+ nextEl: ia,
2473
+ lastDownEl: aa,
2464
2474
  cloneEl: J,
2465
- cloneHidden: na,
2466
- dragStarted: ga,
2475
+ cloneHidden: oa,
2476
+ dragStarted: ba,
2467
2477
  putSortable: X,
2468
2478
  activeSortable: Q.active,
2469
2479
  originalEvent: r,
2470
- oldIndex: ra,
2471
- oldDraggableIndex: ia,
2480
+ oldIndex: sa,
2481
+ oldDraggableIndex: ca,
2472
2482
  newIndex: Y,
2473
- newDraggableIndex: aa,
2474
- hideGhostForTarget: Pa,
2475
- unhideGhostForTarget: Fa,
2483
+ newDraggableIndex: la,
2484
+ hideGhostForTarget: Ra,
2485
+ unhideGhostForTarget: za,
2476
2486
  cloneNowHidden: function() {
2477
- na = !0;
2487
+ oa = !0;
2478
2488
  },
2479
2489
  cloneNowShown: function() {
2480
- na = !1;
2490
+ oa = !1;
2481
2491
  },
2482
2492
  dispatchSortableEvent: function(e) {
2483
2493
  U({
@@ -2489,45 +2499,45 @@ var $i = ["evt"], H = function(e, t) {
2489
2499
  }, i));
2490
2500
  };
2491
2501
  function U(e) {
2492
- Qi(li({
2502
+ na(pi({
2493
2503
  putSortable: X,
2494
2504
  cloneEl: J,
2495
2505
  targetEl: W,
2496
2506
  rootEl: q,
2497
- oldIndex: ra,
2498
- oldDraggableIndex: ia,
2507
+ oldIndex: sa,
2508
+ oldDraggableIndex: ca,
2499
2509
  newIndex: Y,
2500
- newDraggableIndex: aa
2510
+ newDraggableIndex: la
2501
2511
  }, e));
2502
2512
  }
2503
- var W, G, K, q, ea, ta, J, na, ra, Y, ia, aa, oa, X, sa = !1, ca = !1, la = [], ua, da, fa, pa, ma, ha, ga, _a, va, ya = !1, ba = !1, xa, Z, Sa = [], Ca = !1, wa = [], Ta = typeof document < "u", Ea = xi, Da = vi || _i ? "cssFloat" : "float", Oa = Ta && !Si && !xi && "draggable" in document.createElement("div"), ka = function() {
2504
- if (Ta) {
2505
- if (_i) return !1;
2513
+ var W, G, K, q, ia, aa, J, oa, sa, Y, ca, la, ua, X, da = !1, fa = !1, pa = [], ma, ha, ga, _a, va, ya, ba, xa, Sa, Ca = !1, wa = !1, Ta, Z, Ea = [], Da = !1, Oa = [], ka = typeof document < "u", Aa = Ti, ja = Si || xi ? "cssFloat" : "float", Ma = ka && !Ei && !Ti && "draggable" in document.createElement("div"), Na = function() {
2514
+ if (ka) {
2515
+ if (xi) return !1;
2506
2516
  var e = document.createElement("x");
2507
2517
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
2508
2518
  }
2509
- }(), Aa = function(e, t) {
2510
- var n = z(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = Mi(e, 0, t), a = Mi(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
+ }(), Pa = function(e, t) {
2520
+ var n = z(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 && 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;
2511
2521
  if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
2512
2522
  if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
2513
2523
  if (i && o.float && o.float !== "none") {
2514
2524
  var u = o.float === "left" ? "left" : "right";
2515
2525
  return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
2516
2526
  }
2517
- return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Da] === "none" || a && n[Da] === "none" && c + l > r) ? "vertical" : "horizontal";
2518
- }, ja = function(e, t, n) {
2527
+ return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[ja] === "none" || a && n[ja] === "none" && c + l > r) ? "vertical" : "horizontal";
2528
+ }, Fa = function(e, t, n) {
2519
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;
2520
2530
  return r === o || i === s || r + a / 2 === o + c / 2;
2521
- }, Ma = function(e, t) {
2531
+ }, Ia = function(e, t) {
2522
2532
  var n;
2523
- return la.some(function(r) {
2533
+ return pa.some(function(r) {
2524
2534
  var i = r[V].options.emptyInsertThreshold;
2525
- if (!(!i || Ni(r))) {
2535
+ if (!(!i || Li(r))) {
2526
2536
  var a = B(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
2527
2537
  if (o && s) return n = r;
2528
2538
  }
2529
2539
  }), n;
2530
- }, Na = function(e) {
2540
+ }, La = function(e) {
2531
2541
  function t(e, n) {
2532
2542
  return function(r, i, a, o) {
2533
2543
  var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
@@ -2540,31 +2550,31 @@ var W, G, K, q, ea, ta, J, na, ra, Y, ia, aa, oa, X, sa = !1, ca = !1, la = [],
2540
2550
  };
2541
2551
  }
2542
2552
  var n = {}, r = e.group;
2543
- (!r || ui(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;
2544
- }, Pa = function() {
2545
- !ka && K && z(K, "display", "none");
2546
- }, Fa = function() {
2547
- !ka && 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
+ }, Ra = function() {
2555
+ !Na && K && z(K, "display", "none");
2556
+ }, za = function() {
2557
+ !Na && K && z(K, "display", "");
2548
2558
  };
2549
- Ta && !Si && document.addEventListener("click", function(e) {
2550
- if (ca) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), ca = !1, !1;
2559
+ ka && !Ei && document.addEventListener("click", function(e) {
2560
+ if (fa) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), fa = !1, !1;
2551
2561
  }, !0);
2552
- var Ia = function(e) {
2562
+ var Ba = function(e) {
2553
2563
  if (W) {
2554
2564
  e = e.touches ? e.touches[0] : e;
2555
- var t = Ma(e.clientX, e.clientY);
2565
+ var t = Ia(e.clientX, e.clientY);
2556
2566
  if (t) {
2557
2567
  var n = {};
2558
2568
  for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
2559
2569
  n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[V]._onDragOver(n);
2560
2570
  }
2561
2571
  }
2562
- }, La = function(e) {
2572
+ }, Va = function(e) {
2563
2573
  W && W.parentNode[V]._isOutsideThisEl(e.target);
2564
2574
  };
2565
2575
  function Q(e, t) {
2566
2576
  if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
2567
- this.el = e, this.options = t = fi({}, t), e[V] = this;
2577
+ this.el = e, this.options = t = gi({}, t), e[V] = this;
2568
2578
  var n = {
2569
2579
  group: null,
2570
2580
  sort: !0,
@@ -2577,7 +2587,7 @@ function Q(e, t) {
2577
2587
  invertedSwapThreshold: null,
2578
2588
  removeCloneOnHide: !0,
2579
2589
  direction: function() {
2580
- return Aa(e, this.options);
2590
+ return Pa(e, this.options);
2581
2591
  },
2582
2592
  ghostClass: "sortable-ghost",
2583
2593
  chosenClass: "sortable-chosen",
@@ -2604,17 +2614,17 @@ function Q(e, t) {
2604
2614
  x: 0,
2605
2615
  y: 0
2606
2616
  },
2607
- supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !bi,
2617
+ supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !wi,
2608
2618
  emptyInsertThreshold: 5
2609
2619
  };
2610
- for (var r in Zi.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
2611
- for (var i in Na(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
2612
- this.nativeDraggable = t.forceFallback ? !1 : Oa, 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)), la.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), fi(this, Ki());
2620
+ for (var r in ta.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
2621
+ for (var i in La(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
2622
+ this.nativeDraggable = t.forceFallback ? !1 : Ma, 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)), pa.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), gi(this, Xi());
2613
2623
  }
2614
2624
  Q.prototype = {
2615
2625
  constructor: Q,
2616
2626
  _isOutsideThisEl: function(e) {
2617
- !this.el.contains(e) && e !== this.el && (_a = null);
2627
+ !this.el.contains(e) && e !== this.el && (xa = null);
2618
2628
  },
2619
2629
  _getDirection: function(e, t) {
2620
2630
  return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, W) : this.options.direction;
@@ -2622,8 +2632,8 @@ Q.prototype = {
2622
2632
  _onTapStart: function(e) {
2623
2633
  if (e.cancelable) {
2624
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;
2625
- if (qa(n), !W && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && bi && s && s.tagName.toUpperCase() === "SELECT") && (s = Ei(s, r.draggable, n, !1), !(s && s.animated) && ta !== s)) {
2626
- if (ra = Pi(s), ia = Pi(s, r.draggable), typeof l == "function") {
2635
+ if (Za(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) && aa !== s)) {
2636
+ if (sa = Ri(s), ca = Ri(s, r.draggable), typeof l == "function") {
2627
2637
  if (l.call(this, e, s, this)) {
2628
2638
  U({
2629
2639
  sortable: t,
@@ -2636,7 +2646,7 @@ Q.prototype = {
2636
2646
  return;
2637
2647
  }
2638
2648
  } else if (l && (l = l.split(",").some(function(r) {
2639
- if (r = Ei(c, r.trim(), n, !1), r) return U({
2649
+ if (r = Ai(c, r.trim(), n, !1), r) return U({
2640
2650
  sortable: t,
2641
2651
  rootEl: r,
2642
2652
  name: "filter",
@@ -2648,7 +2658,7 @@ Q.prototype = {
2648
2658
  i && e.cancelable && e.preventDefault();
2649
2659
  return;
2650
2660
  }
2651
- r.handle && !Ei(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
2661
+ r.handle && !Ai(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
2652
2662
  }
2653
2663
  }
2654
2664
  },
@@ -2656,23 +2666,23 @@ Q.prototype = {
2656
2666
  var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
2657
2667
  if (n && !W && n.parentNode === i) {
2658
2668
  var c = B(n);
2659
- if (q = i, W = n, G = W.parentNode, ea = W.nextSibling, ta = n, oa = a.group, Q.dragged = W, ua = {
2669
+ if (q = i, W = n, G = W.parentNode, ia = W.nextSibling, aa = n, ua = a.group, Q.dragged = W, ma = {
2660
2670
  target: W,
2661
2671
  clientX: (t || e).clientX,
2662
2672
  clientY: (t || e).clientY
2663
- }, ma = ua.clientX - c.left, ha = ua.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, W.style["will-change"] = "all", s = function() {
2673
+ }, va = ma.clientX - c.left, ya = ma.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, W.style["will-change"] = "all", s = function() {
2664
2674
  if (H("delayEnded", r, { evt: e }), Q.eventCanceled) {
2665
2675
  r._onDrop();
2666
2676
  return;
2667
2677
  }
2668
- r._disableDelayedDragEvents(), !yi && r.nativeDraggable && (W.draggable = !0), r._triggerDragStart(e, t), U({
2678
+ r._disableDelayedDragEvents(), !Ci && r.nativeDraggable && (W.draggable = !0), r._triggerDragStart(e, t), U({
2669
2679
  sortable: r,
2670
2680
  name: "choose",
2671
2681
  originalEvent: e
2672
2682
  }), R(W, a.chosenClass, !0);
2673
2683
  }, a.ignore.split(",").forEach(function(e) {
2674
- ki(W, e.trim(), Ba);
2675
- }), I(o, "dragover", Ia), I(o, "mousemove", Ia), I(o, "touchmove", Ia), I(o, "mouseup", r._onDrop), I(o, "touchend", r._onDrop), I(o, "touchcancel", r._onDrop), yi && this.nativeDraggable && (this.options.touchStartThreshold = 4, W.draggable = !0), H("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(vi || _i))) {
2684
+ Ni(W, e.trim(), Wa);
2685
+ }), I(o, "dragover", Ba), I(o, "mousemove", Ba), I(o, "touchmove", Ba), I(o, "mouseup", r._onDrop), I(o, "touchend", r._onDrop), I(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))) {
2676
2686
  if (Q.eventCanceled) {
2677
2687
  this._onDrop();
2678
2688
  return;
@@ -2686,7 +2696,7 @@ Q.prototype = {
2686
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();
2687
2697
  },
2688
2698
  _disableDelayedDrag: function() {
2689
- W && Ba(W), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2699
+ W && Wa(W), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2690
2700
  },
2691
2701
  _disableDelayedDragEvents: function() {
2692
2702
  var e = this.el.ownerDocument;
@@ -2695,14 +2705,14 @@ Q.prototype = {
2695
2705
  _triggerDragStart: function(e, t) {
2696
2706
  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));
2697
2707
  try {
2698
- document.selection ? Ja(function() {
2708
+ document.selection ? Qa(function() {
2699
2709
  document.selection.empty();
2700
2710
  }) : window.getSelection().removeAllRanges();
2701
2711
  } catch {}
2702
2712
  },
2703
2713
  _dragStarted: function(e, t) {
2704
- if (sa = !1, q && W) {
2705
- H("dragStarted", this, { evt: t }), this.nativeDraggable && I(document, "dragover", La);
2714
+ if (da = !1, q && W) {
2715
+ H("dragStarted", this, { evt: t }), this.nativeDraggable && I(document, "dragover", Va);
2706
2716
  var n = this.options;
2707
2717
  !e && R(W, n.dragClass, !1), R(W, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), U({
2708
2718
  sortable: this,
@@ -2712,33 +2722,33 @@ Q.prototype = {
2712
2722
  } else this._nulling();
2713
2723
  },
2714
2724
  _emulateDragOver: function() {
2715
- if (da) {
2716
- this._lastX = da.clientX, this._lastY = da.clientY, Pa();
2717
- for (var e = document.elementFromPoint(da.clientX, da.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(da.clientX, da.clientY), e !== t);) t = e;
2725
+ if (ha) {
2726
+ this._lastX = ha.clientX, this._lastY = ha.clientY, Ra();
2727
+ for (var e = document.elementFromPoint(ha.clientX, ha.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(ha.clientX, ha.clientY), e !== t);) t = e;
2718
2728
  if (W.parentNode[V]._isOutsideThisEl(e), t) do {
2719
2729
  if (t[V]) {
2720
2730
  var n = void 0;
2721
2731
  if (n = t[V]._onDragOver({
2722
- clientX: da.clientX,
2723
- clientY: da.clientY,
2732
+ clientX: ha.clientX,
2733
+ clientY: ha.clientY,
2724
2734
  target: e,
2725
2735
  rootEl: t
2726
2736
  }), n && !this.options.dragoverBubble) break;
2727
2737
  }
2728
2738
  e = t;
2729
2739
  } while (t = t.parentNode);
2730
- Fa();
2740
+ za();
2731
2741
  }
2732
2742
  },
2733
2743
  _onTouchMove: function(e) {
2734
- if (ua) {
2735
- var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = K && Oi(K, !0), o = K && a && a.a, s = K && a && a.d, c = Ea && Z && Fi(Z), l = (i.clientX - ua.clientX + r.x) / (o || 1) + (c ? c[0] - Sa[0] : 0) / (o || 1), u = (i.clientY - ua.clientY + r.y) / (s || 1) + (c ? c[1] - Sa[1] : 0) / (s || 1);
2736
- if (!Q.active && !sa) {
2744
+ if (ma) {
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 = Aa && Z && zi(Z), l = (i.clientX - ma.clientX + r.x) / (o || 1) + (c ? c[0] - Ea[0] : 0) / (o || 1), u = (i.clientY - ma.clientY + r.y) / (s || 1) + (c ? c[1] - Ea[1] : 0) / (s || 1);
2746
+ if (!Q.active && !da) {
2737
2747
  if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
2738
2748
  this._onDragStart(e, !0);
2739
2749
  }
2740
2750
  if (K) {
2741
- a ? (a.e += l - (fa || 0), a.f += u - (pa || 0)) : a = {
2751
+ a ? (a.e += l - (ga || 0), a.f += u - (_a || 0)) : a = {
2742
2752
  a: 1,
2743
2753
  b: 0,
2744
2754
  c: 0,
@@ -2747,19 +2757,19 @@ Q.prototype = {
2747
2757
  f: u
2748
2758
  };
2749
2759
  var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
2750
- z(K, "webkitTransform", d), z(K, "mozTransform", d), z(K, "msTransform", d), z(K, "transform", d), fa = l, pa = u, da = i;
2760
+ z(K, "webkitTransform", d), z(K, "mozTransform", d), z(K, "msTransform", d), z(K, "transform", d), ga = l, _a = u, ha = i;
2751
2761
  }
2752
2762
  e.cancelable && e.preventDefault();
2753
2763
  }
2754
2764
  },
2755
2765
  _appendGhost: function() {
2756
2766
  if (!K) {
2757
- var e = this.options.fallbackOnBody ? document.body : q, t = B(W, !0, Ea, !0, e), n = this.options;
2758
- if (Ea) {
2767
+ var e = this.options.fallbackOnBody ? document.body : q, t = B(W, !0, Aa, !0, e), n = this.options;
2768
+ if (Aa) {
2759
2769
  for (Z = e; z(Z, "position") === "static" && z(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
2760
- Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = Ai()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = Ai(), Sa = Fi(Z);
2770
+ Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = Pi()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = Pi(), Ea = zi(Z);
2761
2771
  }
2762
- 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", Ea ? "absolute" : "fixed"), z(K, "zIndex", "100000"), z(K, "pointerEvents", "none"), Q.ghost = K, e.appendChild(K), z(K, "transform-origin", ma / parseInt(K.style.width) * 100 + "% " + ha / parseInt(K.style.height) * 100 + "%");
2772
+ 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", Aa ? "absolute" : "fixed"), z(K, "zIndex", "100000"), z(K, "pointerEvents", "none"), Q.ghost = K, e.appendChild(K), z(K, "transform-origin", va / parseInt(K.style.width) * 100 + "% " + ya / parseInt(K.style.height) * 100 + "%");
2763
2773
  }
2764
2774
  },
2765
2775
  _onDragStart: function(e, t) {
@@ -2768,18 +2778,18 @@ Q.prototype = {
2768
2778
  this._onDrop();
2769
2779
  return;
2770
2780
  }
2771
- H("setupClone", this), Q.eventCanceled || (J = Wi(W), J.removeAttribute("id"), J.draggable = !1, J.style["will-change"] = "", this._hideClone(), R(J, this.options.chosenClass, !1), Q.clone = J), n.cloneId = Ja(function() {
2781
+ H("setupClone", this), Q.eventCanceled || (J = Ji(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() {
2772
2782
  H("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || q.insertBefore(J, W), n._hideClone(), U({
2773
2783
  sortable: n,
2774
2784
  name: "clone"
2775
2785
  }));
2776
- }), !t && R(W, i.dragClass, !0), t ? (ca = !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)")), sa = !0, n._dragStartId = Ja(n._dragStarted.bind(n, t, e)), I(document, "selectstart", n), ga = !0, bi && z(document.body, "user-select", "none");
2786
+ }), !t && R(W, i.dragClass, !0), t ? (fa = !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)")), da = !0, n._dragStartId = Qa(n._dragStarted.bind(n, t, e)), I(document, "selectstart", n), ba = !0, wi && z(document.body, "user-select", "none");
2777
2787
  },
2778
2788
  _onDragOver: function(e) {
2779
- var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = oa === s, u = o.sort, d = X || c, f, p = this, m = !1;
2780
- if (Ca) return;
2789
+ var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = ua === s, u = o.sort, d = X || c, f, p = this, m = !1;
2790
+ if (Da) return;
2781
2791
  function h(o, s) {
2782
- H(o, p, li({
2792
+ H(o, p, pi({
2783
2793
  evt: e,
2784
2794
  isOwner: l,
2785
2795
  axis: f ? "vertical" : "horizontal",
@@ -2791,7 +2801,7 @@ Q.prototype = {
2791
2801
  target: n,
2792
2802
  completed: _,
2793
2803
  onMove: function(n, i) {
2794
- return za(q, t, W, r, n, B(n), e, i);
2804
+ return Ua(q, t, W, r, n, B(n), e, i);
2795
2805
  },
2796
2806
  changed: v
2797
2807
  }, s));
@@ -2802,48 +2812,48 @@ Q.prototype = {
2802
2812
  function _(r) {
2803
2813
  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() {
2804
2814
  h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
2805
- }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === W && !W.animated || n === t && !n.animated) && (_a = null), !o.dragoverBubble && !e.rootEl && n !== document && (W.parentNode[V]._isOutsideThisEl(e.target), !r && Ia(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) && (xa = null), !o.dragoverBubble && !e.rootEl && n !== document && (W.parentNode[V]._isOutsideThisEl(e.target), !r && Ba(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
2806
2816
  }
2807
2817
  function v() {
2808
- Y = Pi(W), aa = Pi(W, o.draggable), U({
2818
+ Y = Ri(W), la = Ri(W, o.draggable), U({
2809
2819
  sortable: p,
2810
2820
  name: "change",
2811
2821
  toEl: t,
2812
2822
  newIndex: Y,
2813
- newDraggableIndex: aa,
2823
+ newDraggableIndex: la,
2814
2824
  originalEvent: e
2815
2825
  });
2816
2826
  }
2817
- if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Ei(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;
2818
2828
  if (W.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
2819
- if (ca = !1, c && !o.disabled && (l ? u || (a = G !== q) : X === this || (this.lastPutMode = oa.checkPull(this, c, W, e)) && s.checkPut(this, c, W, e))) {
2829
+ if (fa = !1, c && !o.disabled && (l ? u || (a = G !== q) : X === this || (this.lastPutMode = ua.checkPull(this, c, W, e)) && s.checkPut(this, c, W, e))) {
2820
2830
  if (f = this._getDirection(e, n) === "vertical", r = B(W), h("dragOverValid"), Q.eventCanceled) return m;
2821
- if (a) return G = q, g(), this._hideClone(), h("revert"), Q.eventCanceled || (ea ? q.insertBefore(W, ea) : q.appendChild(W)), _(!0);
2822
- var y = Ni(t, o.draggable);
2823
- if (!y || Ua(e, f, this) && !y.animated) {
2831
+ if (a) return G = q, g(), this._hideClone(), h("revert"), Q.eventCanceled || (ia ? q.insertBefore(W, ia) : q.appendChild(W)), _(!0);
2832
+ var y = Li(t, o.draggable);
2833
+ if (!y || qa(e, f, this) && !y.animated) {
2824
2834
  if (y === W) return _(!1);
2825
- if (y && t === e.target && (n = y), n && (i = B(n)), za(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);
2826
- } else if (y && Ha(e, f, this)) {
2827
- var b = Mi(t, 0, o, !0);
2835
+ if (y && t === e.target && (n = y), n && (i = B(n)), Ua(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 && Ka(e, f, this)) {
2837
+ var b = Ii(t, 0, o, !0);
2828
2838
  if (b === W) return _(!1);
2829
- if (n = b, i = B(n), za(q, t, W, r, n, i, e, !1) !== !1) return g(), t.insertBefore(W, b), G = t, v(), _(!0);
2839
+ if (n = b, i = B(n), Ua(q, t, W, r, n, i, e, !1) !== !1) return g(), t.insertBefore(W, b), G = t, v(), _(!0);
2830
2840
  } else if (n.parentNode === t) {
2831
2841
  i = B(n);
2832
- var x = 0, S, C = W.parentNode !== t, w = !ja(W.animated && W.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = ji(n, "top", "top") || ji(W, "top", "top"), ee = E ? E.scrollTop : void 0;
2833
- _a !== n && (S = i[T], ya = !1, ba = !w && o.invertSwap || C), x = Wa(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, ba, _a === n);
2842
+ var x = 0, S, C = W.parentNode !== t, w = !Fa(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
+ xa !== n && (S = i[T], Ca = !1, wa = !w && o.invertSwap || C), x = Ja(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, wa, xa === n);
2834
2844
  var D;
2835
2845
  if (x !== 0) {
2836
- var O = Pi(W);
2846
+ var O = Ri(W);
2837
2847
  do
2838
2848
  O -= x, D = G.children[O];
2839
2849
  while (D && (z(D, "display") === "none" || D === K));
2840
2850
  }
2841
2851
  if (x === 0 || D === n) return _(!1);
2842
- _a = n, va = x;
2852
+ xa = n, Sa = x;
2843
2853
  var k = n.nextElementSibling, te = !1;
2844
2854
  te = x === 1;
2845
- var A = za(q, t, W, r, n, i, e, te);
2846
- if (A !== !1) return (A === 1 || A === -1) && (te = A === 1), Ca = !0, setTimeout(Va, 30), g(), te && !k ? t.appendChild(W) : n.parentNode.insertBefore(W, te ? k : n), E && Ui(E, 0, ee - E.scrollTop), G = W.parentNode, S !== void 0 && !ba && (xa = Math.abs(S - B(n)[T])), v(), _(!0);
2855
+ var A = Ua(q, t, W, r, n, i, e, te);
2856
+ if (A !== !1) return (A === 1 || A === -1) && (te = A === 1), Da = !0, setTimeout(Ga, 30), g(), te && !k ? t.appendChild(W) : n.parentNode.insertBefore(W, te ? k : n), E && qi(E, 0, ee - E.scrollTop), G = W.parentNode, S !== void 0 && !wa && (Ta = Math.abs(S - B(n)[T])), v(), _(!0);
2847
2857
  }
2848
2858
  if (t.contains(W)) return _(!1);
2849
2859
  }
@@ -2851,7 +2861,7 @@ Q.prototype = {
2851
2861
  },
2852
2862
  _ignoreWhileAnimating: null,
2853
2863
  _offMoveEvents: function() {
2854
- L(document, "mousemove", this._onTouchMove), L(document, "touchmove", this._onTouchMove), L(document, "pointermove", this._onTouchMove), L(document, "dragover", Ia), L(document, "mousemove", Ia), L(document, "touchmove", Ia);
2864
+ L(document, "mousemove", this._onTouchMove), L(document, "touchmove", this._onTouchMove), L(document, "pointermove", this._onTouchMove), L(document, "dragover", Ba), L(document, "mousemove", Ba), L(document, "touchmove", Ba);
2855
2865
  },
2856
2866
  _offUpEvents: function() {
2857
2867
  var e = this.el.ownerDocument;
@@ -2859,18 +2869,18 @@ Q.prototype = {
2859
2869
  },
2860
2870
  _onDrop: function(e) {
2861
2871
  var t = this.el, n = this.options;
2862
- if (Y = Pi(W), aa = Pi(W, n.draggable), H("drop", this, { evt: e }), G = W && W.parentNode, Y = Pi(W), aa = Pi(W, n.draggable), Q.eventCanceled) {
2872
+ if (Y = Ri(W), la = Ri(W, n.draggable), H("drop", this, { evt: e }), G = W && W.parentNode, Y = Ri(W), la = Ri(W, n.draggable), Q.eventCanceled) {
2863
2873
  this._nulling();
2864
2874
  return;
2865
2875
  }
2866
- sa = !1, ba = !1, ya = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Ya(this.cloneId), Ya(this._dragStartId), this.nativeDraggable && (L(document, "drop", this), L(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), bi && z(document.body, "user-select", ""), z(W, "transform", ""), e && (ga && (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), Ba(W), W.style["will-change"] = "", ga && !sa && R(W, X ? X.options.ghostClass : this.options.ghostClass, !1), R(W, this.options.chosenClass, !1), U({
2876
+ da = !1, wa = !1, Ca = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), $a(this.cloneId), $a(this._dragStartId), this.nativeDraggable && (L(document, "drop", this), L(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), wi && z(document.body, "user-select", ""), z(W, "transform", ""), e && (ba && (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), Wa(W), W.style["will-change"] = "", ba && !da && R(W, X ? X.options.ghostClass : this.options.ghostClass, !1), R(W, this.options.chosenClass, !1), U({
2867
2877
  sortable: this,
2868
2878
  name: "unchoose",
2869
2879
  toEl: G,
2870
2880
  newIndex: null,
2871
2881
  newDraggableIndex: null,
2872
2882
  originalEvent: e
2873
- }), q === G ? Y !== ra && Y >= 0 && (U({
2883
+ }), q === G ? Y !== sa && Y >= 0 && (U({
2874
2884
  sortable: this,
2875
2885
  name: "update",
2876
2886
  toEl: G,
@@ -2902,7 +2912,7 @@ Q.prototype = {
2902
2912
  name: "sort",
2903
2913
  toEl: G,
2904
2914
  originalEvent: e
2905
- })), X && X.save()), Q.active && ((Y == null || Y === -1) && (Y = ra, aa = ia), U({
2915
+ })), X && X.save()), Q.active && ((Y == null || Y === -1) && (Y = sa, la = ca), U({
2906
2916
  sortable: this,
2907
2917
  name: "end",
2908
2918
  toEl: G,
@@ -2910,9 +2920,9 @@ Q.prototype = {
2910
2920
  }), this.save()))), this._nulling();
2911
2921
  },
2912
2922
  _nulling: function() {
2913
- H("nulling", this), q = W = G = K = ea = J = ta = na = ua = da = ga = Y = aa = ra = ia = _a = va = X = oa = Q.dragged = Q.ghost = Q.clone = Q.active = null, wa.forEach(function(e) {
2923
+ H("nulling", this), q = W = G = K = ia = J = aa = oa = ma = ha = ba = Y = la = sa = ca = xa = Sa = X = ua = Q.dragged = Q.ghost = Q.clone = Q.active = null, Oa.forEach(function(e) {
2914
2924
  e.checked = !0;
2915
- }), wa.length = fa = pa = 0;
2925
+ }), Oa.length = ga = _a = 0;
2916
2926
  },
2917
2927
  handleEvent: function(e) {
2918
2928
  switch (e.type) {
@@ -2922,7 +2932,7 @@ Q.prototype = {
2922
2932
  break;
2923
2933
  case "dragenter":
2924
2934
  case "dragover":
2925
- W && (this._onDragOver(e), Ra(e));
2935
+ W && (this._onDragOver(e), Ha(e));
2926
2936
  break;
2927
2937
  case "selectstart":
2928
2938
  e.preventDefault();
@@ -2930,14 +2940,14 @@ Q.prototype = {
2930
2940
  }
2931
2941
  },
2932
2942
  toArray: function() {
2933
- for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Ei(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || Ka(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) || Xa(t));
2934
2944
  return e;
2935
2945
  },
2936
2946
  sort: function(e, t) {
2937
2947
  var n = {}, r = this.el;
2938
2948
  this.toArray().forEach(function(e, t) {
2939
2949
  var i = r.children[t];
2940
- Ei(i, this.options.draggable, r, !1) && (n[e] = i);
2950
+ Ai(i, this.options.draggable, r, !1) && (n[e] = i);
2941
2951
  }, this), t && this.captureAnimationState(), e.forEach(function(e) {
2942
2952
  n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
2943
2953
  }), t && this.animateAll();
@@ -2947,25 +2957,25 @@ Q.prototype = {
2947
2957
  e && e.set && e.set(this);
2948
2958
  },
2949
2959
  closest: function(e, t) {
2950
- return Ei(e, t || this.options.draggable, this.el, !1);
2960
+ return Ai(e, t || this.options.draggable, this.el, !1);
2951
2961
  },
2952
2962
  option: function(e, t) {
2953
2963
  var n = this.options;
2954
2964
  if (t === void 0) return n[e];
2955
- var r = Zi.modifyOption(this, e, t);
2956
- r === void 0 ? n[e] = t : n[e] = r, e === "group" && Na(n);
2965
+ var r = ta.modifyOption(this, e, t);
2966
+ r === void 0 ? n[e] = t : n[e] = r, e === "group" && La(n);
2957
2967
  },
2958
2968
  destroy: function() {
2959
2969
  H("destroy", this);
2960
2970
  var e = this.el;
2961
2971
  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) {
2962
2972
  e.removeAttribute("draggable");
2963
- }), this._onDrop(), this._disableDelayedDragEvents(), la.splice(la.indexOf(this.el), 1), this.el = e = null;
2973
+ }), this._onDrop(), this._disableDelayedDragEvents(), pa.splice(pa.indexOf(this.el), 1), this.el = e = null;
2964
2974
  },
2965
2975
  _hideClone: function() {
2966
- if (!na) {
2976
+ if (!oa) {
2967
2977
  if (H("hideClone", this), Q.eventCanceled) return;
2968
- z(J, "display", "none"), this.options.removeCloneOnHide && J.parentNode && J.parentNode.removeChild(J), na = !0;
2978
+ z(J, "display", "none"), this.options.removeCloneOnHide && J.parentNode && J.parentNode.removeChild(J), oa = !0;
2969
2979
  }
2970
2980
  },
2971
2981
  _showClone: function(e) {
@@ -2973,99 +2983,99 @@ Q.prototype = {
2973
2983
  this._hideClone();
2974
2984
  return;
2975
2985
  }
2976
- if (na) {
2986
+ if (oa) {
2977
2987
  if (H("showClone", this), Q.eventCanceled) return;
2978
- W.parentNode == q && !this.options.group.revertClone ? q.insertBefore(J, W) : ea ? q.insertBefore(J, ea) : q.appendChild(J), this.options.group.revertClone && this.animate(W, J), z(J, "display", ""), na = !1;
2988
+ W.parentNode == q && !this.options.group.revertClone ? q.insertBefore(J, W) : ia ? q.insertBefore(J, ia) : q.appendChild(J), this.options.group.revertClone && this.animate(W, J), z(J, "display", ""), oa = !1;
2979
2989
  }
2980
2990
  }
2981
2991
  };
2982
- function Ra(e) {
2992
+ function Ha(e) {
2983
2993
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
2984
2994
  }
2985
- function za(e, t, n, r, i, a, o, s) {
2995
+ function Ua(e, t, n, r, i, a, o, s) {
2986
2996
  var c, l = e[V], u = l.options.onMove, d;
2987
- return window.CustomEvent && !_i && !vi ? c = new CustomEvent("move", {
2997
+ return window.CustomEvent && !xi && !Si ? c = new CustomEvent("move", {
2988
2998
  bubbles: !0,
2989
2999
  cancelable: !0
2990
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 || B(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
2991
3001
  }
2992
- function Ba(e) {
3002
+ function Wa(e) {
2993
3003
  e.draggable = !1;
2994
3004
  }
2995
- function Va() {
2996
- Ca = !1;
3005
+ function Ga() {
3006
+ Da = !1;
2997
3007
  }
2998
- function Ha(e, t, n) {
2999
- var r = B(Mi(n.el, 0, n.options, !0)), i = Gi(n.el, n.options, K), a = 10;
3008
+ function Ka(e, t, n) {
3009
+ var r = B(Ii(n.el, 0, n.options, !0)), i = Yi(n.el, n.options, K), a = 10;
3000
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;
3001
3011
  }
3002
- function Ua(e, t, n) {
3003
- var r = B(Ni(n.el, n.options.draggable)), i = Gi(n.el, n.options, K), a = 10;
3012
+ function qa(e, t, n) {
3013
+ var r = B(Li(n.el, n.options.draggable)), i = Yi(n.el, n.options, K), a = 10;
3004
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;
3005
3015
  }
3006
- function Wa(e, t, n, r, i, a, o, s) {
3016
+ function Ja(e, t, n, r, i, a, o, s) {
3007
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;
3008
3018
  if (!o) {
3009
- if (s && xa < l * i) {
3010
- if (!ya && (va === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (ya = !0), ya) f = !0;
3011
- else if (va === 1 ? c < u + xa : c > d - xa) return -va;
3012
- } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return Ga(t);
3019
+ if (s && Ta < l * i) {
3020
+ if (!Ca && (Sa === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Ca = !0), Ca) f = !0;
3021
+ else if (Sa === 1 ? c < u + Ta : c > d - Ta) return -Sa;
3022
+ } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return Ya(t);
3013
3023
  }
3014
3024
  return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
3015
3025
  }
3016
- function Ga(e) {
3017
- return Pi(W) < Pi(e) ? 1 : -1;
3026
+ function Ya(e) {
3027
+ return Ri(W) < Ri(e) ? 1 : -1;
3018
3028
  }
3019
- function Ka(e) {
3029
+ function Xa(e) {
3020
3030
  for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
3021
3031
  return r.toString(36);
3022
3032
  }
3023
- function qa(e) {
3024
- wa.length = 0;
3033
+ function Za(e) {
3034
+ Oa.length = 0;
3025
3035
  for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
3026
3036
  var r = t[n];
3027
- r.checked && wa.push(r);
3037
+ r.checked && Oa.push(r);
3028
3038
  }
3029
3039
  }
3030
- function Ja(e) {
3040
+ function Qa(e) {
3031
3041
  return setTimeout(e, 0);
3032
3042
  }
3033
- function Ya(e) {
3043
+ function $a(e) {
3034
3044
  return clearTimeout(e);
3035
3045
  }
3036
- Ta && I(document, "touchmove", function(e) {
3037
- (Q.active || sa) && e.cancelable && e.preventDefault();
3046
+ ka && I(document, "touchmove", function(e) {
3047
+ (Q.active || da) && e.cancelable && e.preventDefault();
3038
3048
  }), Q.utils = {
3039
3049
  on: I,
3040
3050
  off: L,
3041
3051
  css: z,
3042
- find: ki,
3052
+ find: Ni,
3043
3053
  is: function(e, t) {
3044
- return !!Ei(e, t, e, !1);
3054
+ return !!Ai(e, t, e, !1);
3045
3055
  },
3046
- extend: Ri,
3047
- throttle: Vi,
3048
- closest: Ei,
3056
+ extend: Hi,
3057
+ throttle: Gi,
3058
+ closest: Ai,
3049
3059
  toggleClass: R,
3050
- clone: Wi,
3051
- index: Pi,
3052
- nextTick: Ja,
3053
- cancelNextTick: Ya,
3054
- detectDirection: Aa,
3055
- getChild: Mi
3060
+ clone: Ji,
3061
+ index: Ri,
3062
+ nextTick: Qa,
3063
+ cancelNextTick: $a,
3064
+ detectDirection: Pa,
3065
+ getChild: Ii
3056
3066
  }, Q.get = function(e) {
3057
3067
  return e[V];
3058
3068
  }, Q.mount = function() {
3059
3069
  var e = [...arguments];
3060
3070
  e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
3061
3071
  if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
3062
- e.utils && (Q.utils = li(li({}, Q.utils), e.utils)), Zi.mount(e);
3072
+ e.utils && (Q.utils = pi(pi({}, Q.utils), e.utils)), ta.mount(e);
3063
3073
  });
3064
3074
  }, Q.create = function(e, t) {
3065
3075
  return new Q(e, t);
3066
- }, Q.version = hi;
3067
- var $ = [], Xa, Za, Qa = !1, $a, eo, to, no;
3068
- function ro() {
3076
+ }, Q.version = yi;
3077
+ var $ = [], eo, to, no = !1, ro, io, ao, oo;
3078
+ function so() {
3069
3079
  function e() {
3070
3080
  for (var e in this.defaults = {
3071
3081
  scroll: !0,
@@ -3085,63 +3095,63 @@ function ro() {
3085
3095
  !this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
3086
3096
  },
3087
3097
  drop: function() {
3088
- this.sortable.nativeDraggable ? L(document, "dragover", this._handleAutoScroll) : (L(document, "pointermove", this._handleFallbackAutoScroll), L(document, "touchmove", this._handleFallbackAutoScroll), L(document, "mousemove", this._handleFallbackAutoScroll)), ao(), io(), Hi();
3098
+ this.sortable.nativeDraggable ? L(document, "dragover", this._handleAutoScroll) : (L(document, "pointermove", this._handleFallbackAutoScroll), L(document, "touchmove", this._handleFallbackAutoScroll), L(document, "mousemove", this._handleFallbackAutoScroll)), lo(), co(), Ki();
3089
3099
  },
3090
3100
  nulling: function() {
3091
- to = Za = Xa = Qa = no = $a = eo = null, $.length = 0;
3101
+ ao = to = eo = no = oo = ro = io = null, $.length = 0;
3092
3102
  },
3093
3103
  _handleFallbackAutoScroll: function(e) {
3094
3104
  this._handleAutoScroll(e, !0);
3095
3105
  },
3096
3106
  _handleAutoScroll: function(e, t) {
3097
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);
3098
- if (to = e, t || this.options.forceAutoScrollFallback || vi || _i || bi) {
3099
- oo(e, this.options, a, t);
3100
- var o = Li(a, !0);
3101
- Qa && (!no || r !== $a || i !== eo) && (no && ao(), no = setInterval(function() {
3102
- var a = Li(document.elementFromPoint(r, i), !0);
3103
- a !== o && (o = a, io()), oo(e, n.options, a, t);
3104
- }, 10), $a = r, eo = i);
3108
+ if (ao = e, t || this.options.forceAutoScrollFallback || Si || xi || wi) {
3109
+ uo(e, this.options, a, t);
3110
+ var o = Vi(a, !0);
3111
+ no && (!oo || r !== ro || i !== io) && (oo && lo(), oo = setInterval(function() {
3112
+ var a = Vi(document.elementFromPoint(r, i), !0);
3113
+ a !== o && (o = a, co()), uo(e, n.options, a, t);
3114
+ }, 10), ro = r, io = i);
3105
3115
  } else {
3106
- if (!this.options.bubbleScroll || Li(a, !0) === Ai()) {
3107
- io();
3116
+ if (!this.options.bubbleScroll || Vi(a, !0) === Pi()) {
3117
+ co();
3108
3118
  return;
3109
3119
  }
3110
- oo(e, this.options, Li(a, !1), !1);
3120
+ uo(e, this.options, Vi(a, !1), !1);
3111
3121
  }
3112
3122
  }
3113
- }, fi(e, {
3123
+ }, gi(e, {
3114
3124
  pluginName: "scroll",
3115
3125
  initializeByDefault: !0
3116
3126
  });
3117
3127
  }
3118
- function io() {
3128
+ function co() {
3119
3129
  $.forEach(function(e) {
3120
3130
  clearInterval(e.pid);
3121
3131
  }), $ = [];
3122
3132
  }
3123
- function ao() {
3124
- clearInterval(no);
3133
+ function lo() {
3134
+ clearInterval(oo);
3125
3135
  }
3126
- var oo = Vi(function(e, t, n, r) {
3136
+ var uo = Gi(function(e, t, n, r) {
3127
3137
  if (t.scroll) {
3128
- var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = Ai(), l = !1, u;
3129
- Za !== n && (Za = n, io(), Xa = t.scroll, u = t.scrollFn, Xa === !0 && (Xa = Li(n, !0)));
3130
- var d = 0, f = Xa;
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
+ to !== n && (to = n, co(), eo = t.scroll, u = t.scrollFn, eo === !0 && (eo = Vi(n, !0)));
3140
+ var d = 0, f = eo;
3131
3141
  do {
3132
3142
  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;
3133
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"));
3134
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);
3135
3145
  if (!$[d]) for (var k = 0; k <= d; k++) $[k] || ($[k] = {});
3136
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() {
3137
- r && this.layer === 0 && Q.active._onTouchMove(to);
3147
+ r && this.layer === 0 && Q.active._onTouchMove(ao);
3138
3148
  var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
3139
- typeof u == "function" && u.call(Q.dragged.parentNode[V], n, t, e, to, $[this.layer].el) !== "continue" || Ui($[this.layer].el, n, t);
3149
+ typeof u == "function" && u.call(Q.dragged.parentNode[V], n, t, e, ao, $[this.layer].el) !== "continue" || qi($[this.layer].el, n, t);
3140
3150
  }.bind({ layer: d }), 24))), d++;
3141
- } while (t.bubbleScroll && f !== c && (f = Li(f, !1)));
3142
- Qa = l;
3151
+ } while (t.bubbleScroll && f !== c && (f = Vi(f, !1)));
3152
+ no = l;
3143
3153
  }
3144
- }, 30), so = function(e) {
3154
+ }, 30), fo = function(e) {
3145
3155
  var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
3146
3156
  if (t) {
3147
3157
  var c = n || i;
@@ -3153,8 +3163,8 @@ var oo = Vi(function(e, t, n, r) {
3153
3163
  }));
3154
3164
  }
3155
3165
  };
3156
- function co() {}
3157
- co.prototype = {
3166
+ function po() {}
3167
+ po.prototype = {
3158
3168
  startIndex: null,
3159
3169
  dragStart: function(e) {
3160
3170
  var t = e.oldDraggableIndex;
@@ -3163,72 +3173,72 @@ co.prototype = {
3163
3173
  onSpill: function(e) {
3164
3174
  var t = e.dragEl, n = e.putSortable;
3165
3175
  this.sortable.captureAnimationState(), n && n.captureAnimationState();
3166
- var r = Mi(this.sortable.el, this.startIndex, this.options);
3176
+ var r = Ii(this.sortable.el, this.startIndex, this.options);
3167
3177
  r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
3168
3178
  },
3169
- drop: so
3170
- }, fi(co, { pluginName: "revertOnSpill" });
3171
- function lo() {}
3172
- lo.prototype = {
3179
+ drop: fo
3180
+ }, gi(po, { pluginName: "revertOnSpill" });
3181
+ function mo() {}
3182
+ mo.prototype = {
3173
3183
  onSpill: function(e) {
3174
3184
  var t = e.dragEl, n = e.putSortable || this.sortable;
3175
3185
  n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
3176
3186
  },
3177
- drop: so
3178
- }, fi(lo, { pluginName: "removeOnSpill" }), Q.mount(new ro()), Q.mount(lo, co);
3179
- function uo(e) {
3187
+ drop: fo
3188
+ }, gi(mo, { pluginName: "removeOnSpill" }), Q.mount(new so()), Q.mount(mo, po);
3189
+ function ho(e) {
3180
3190
  return e == null ? e : JSON.parse(JSON.stringify(e));
3181
3191
  }
3182
- function fo(e) {
3183
- ae() && ee(e);
3192
+ function go(e) {
3193
+ oe() && ee(e);
3184
3194
  }
3185
- function po(e) {
3186
- ae() ? u(e) : r(e);
3195
+ function _o(e) {
3196
+ oe() ? u(e) : r(e);
3187
3197
  }
3188
- var mo = null, ho = null;
3189
- function go(e = null, t = null) {
3190
- mo = e, ho = t;
3198
+ var vo = null, yo = null;
3199
+ function bo(e = null, t = null) {
3200
+ vo = e, yo = t;
3191
3201
  }
3192
- function _o() {
3202
+ function xo() {
3193
3203
  return {
3194
- data: mo,
3195
- clonedData: ho
3204
+ data: vo,
3205
+ clonedData: yo
3196
3206
  };
3197
3207
  }
3198
- var vo = Symbol("cloneElement");
3199
- function yo(...e) {
3200
- let t = ae()?.proxy, n = null, i = e[0], [, o, c] = e;
3208
+ var So = Symbol("cloneElement");
3209
+ function Co(...e) {
3210
+ let t = oe()?.proxy, n = null, i = e[0], [, o, c] = e;
3201
3211
  Array.isArray(j(o)) || (c = o, o = null);
3202
- let l = null, { immediate: u = !0, clone: d = uo, forceFallback: f, fallbackOnBody: p, customUpdate: m } = j(c) ?? {};
3212
+ let l = null, { immediate: u = !0, clone: d = ho, forceFallback: f, fallbackOnBody: p, customUpdate: m } = j(c) ?? {};
3203
3213
  function h(e) {
3204
3214
  let { from: t, oldIndex: r, item: i } = e, a = Array.from(t.childNodes);
3205
3215
  n = f && !p ? a.slice(0, -1) : a;
3206
3216
  let s = j(j(o)?.[r]), c = d(s);
3207
- go(s, c), i[vo] = c;
3217
+ bo(s, c), i[So] = c;
3208
3218
  }
3209
3219
  function g(e) {
3210
- let t = e.item[vo];
3211
- if (!Zr(t)) {
3212
- if (ei(e.item), a(o)) {
3220
+ let t = e.item[So];
3221
+ if (!ti(t)) {
3222
+ if (ii(e.item), a(o)) {
3213
3223
  let n = [...j(o)];
3214
- o.value = Xr(n, e.newDraggableIndex, t);
3224
+ o.value = ei(n, e.newDraggableIndex, t);
3215
3225
  return;
3216
3226
  }
3217
- Xr(j(o), e.newDraggableIndex, t);
3227
+ ei(j(o), e.newDraggableIndex, t);
3218
3228
  }
3219
3229
  }
3220
3230
  function _(e) {
3221
3231
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: i, pullMode: s, clone: c } = e;
3222
- if ($r(t, n, r), s === "clone") {
3223
- ei(c);
3232
+ if (ri(t, n, r), s === "clone") {
3233
+ ii(c);
3224
3234
  return;
3225
3235
  }
3226
3236
  if (a(o)) {
3227
3237
  let e = [...j(o)];
3228
- o.value = Yr(e, i);
3238
+ o.value = $r(e, i);
3229
3239
  return;
3230
3240
  }
3231
- Yr(j(o), i);
3241
+ $r(j(o), i);
3232
3242
  }
3233
3243
  function v(e) {
3234
3244
  if (m) {
@@ -3236,12 +3246,12 @@ function yo(...e) {
3236
3246
  return;
3237
3247
  }
3238
3248
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: i, newDraggableIndex: s } = e;
3239
- if (ei(n), $r(t, n, r), a(o)) {
3249
+ if (ii(n), ri(t, n, r), a(o)) {
3240
3250
  let e = [...j(o)];
3241
- o.value = Kr(e, i, s);
3251
+ o.value = Xr(e, i, s);
3242
3252
  return;
3243
3253
  }
3244
- Kr(j(o), i, s);
3254
+ Xr(j(o), i, s);
3245
3255
  }
3246
3256
  function y(e) {
3247
3257
  let { newIndex: t, oldIndex: i, from: a, to: o } = e, s = null, c = t === i && a === o;
@@ -3260,7 +3270,7 @@ function yo(...e) {
3260
3270
  n = null;
3261
3271
  }
3262
3272
  r(() => {
3263
- if (go(), s) throw s;
3273
+ if (bo(), s) throw s;
3264
3274
  });
3265
3275
  }
3266
3276
  let b = {
@@ -3272,19 +3282,19 @@ function yo(...e) {
3272
3282
  };
3273
3283
  function x(e) {
3274
3284
  let n = j(i);
3275
- return e ||= Qr(n) ? ti(n, t?.$el) : n, e && !ii(e) && (e = e.$el), e || Gr("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;
3276
3286
  }
3277
3287
  function S() {
3278
- let e = j(c) ?? {}, { immediate: t, clone: n } = e, r = Hr(e, ["immediate", "clone"]);
3279
- return ai(r, (e, t) => {
3280
- oi(e) && (r[e] = (e, ...n) => (si(e, _o()), t(e, ...n)));
3281
- }), ri(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, xo()), t(e, ...n)));
3291
+ }), si(o === null ? {} : b, r);
3282
3292
  }
3283
3293
  let C = (e) => {
3284
3294
  e = x(e), l && w.destroy(), l = new Q(e, S());
3285
3295
  };
3286
3296
  s(() => c, () => {
3287
- l && ai(S(), (e, t) => {
3297
+ l && li(S(), (e, t) => {
3288
3298
  l?.option(e, t);
3289
3299
  });
3290
3300
  }, { deep: !0 });
@@ -3297,15 +3307,15 @@ function yo(...e) {
3297
3307
  toArray: () => l?.toArray(),
3298
3308
  closest: (...e) => l?.closest(...e)
3299
3309
  };
3300
- return po(() => {
3310
+ return _o(() => {
3301
3311
  u && C();
3302
- }), fo(w.destroy), Vr({
3312
+ }), go(w.destroy), Gr({
3303
3313
  start: C,
3304
3314
  pause: () => w?.option("disabled", !0),
3305
3315
  resume: () => w?.option("disabled", !1)
3306
3316
  }, w);
3307
3317
  }
3308
- var bo = [
3318
+ var wo = [
3309
3319
  "update",
3310
3320
  "start",
3311
3321
  "add",
@@ -3318,7 +3328,7 @@ var bo = [
3318
3328
  "clone",
3319
3329
  "move",
3320
3330
  "change"
3321
- ], xo = y({
3331
+ ], To = y({
3322
3332
  name: "VueDraggable",
3323
3333
  model: {
3324
3334
  prop: "modelValue",
@@ -3368,37 +3378,37 @@ var bo = [
3368
3378
  "tag",
3369
3379
  "target",
3370
3380
  "customUpdate",
3371
- ...bo.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
3381
+ ...wo.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
3372
3382
  ],
3373
- emits: ["update:modelValue", ...bo],
3383
+ emits: ["update:modelValue", ...wo],
3374
3384
  setup(e, { slots: t, emit: n, expose: r, attrs: i }) {
3375
- let a = bo.reduce((e, t) => {
3385
+ let a = wo.reduce((e, t) => {
3376
3386
  let r = `on${t.replace(/^\S/, (e) => e.toUpperCase())}`;
3377
3387
  return e[r] = (...e) => n(t, ...e), e;
3378
3388
  }, {}), s = x(() => {
3379
- let t = S(e), { modelValue: n } = t, r = Hr(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]) => {
3380
3390
  let r = j(n);
3381
3391
  return r !== void 0 && (e[t] = r), e;
3382
3392
  }, {});
3383
- return Vr(Vr({}, a), Jr(Vr(Vr({}, i), o)));
3393
+ return Gr(Gr({}, a), Qr(Gr(Gr({}, i), o)));
3384
3394
  }), c = x({
3385
3395
  get: () => e.modelValue,
3386
3396
  set: (e) => n("update:modelValue", e)
3387
- }), l = h(), u = o(yo(e.target || l, c, s));
3397
+ }), l = h(), u = o(Co(e.target || l, c, s));
3388
3398
  return r(u), () => f(e.tag || "div", { ref: l }, (t?.default)?.call(t, u));
3389
3399
  }
3390
- }), So = {
3400
+ }), Eo = {
3391
3401
  mounted: "mounted",
3392
3402
  unmounted: "unmounted"
3393
3403
  };
3394
- So.mounted, So.unmounted;
3404
+ Eo.mounted, Eo.unmounted;
3395
3405
  //#endregion
3396
3406
  //#region src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
3397
- var Co = { class: "tpl:w-full" }, wo = { class: "tpl:flex tpl:gap-0" }, To = {
3407
+ var Do = { class: "tpl:w-full" }, Oo = { class: "tpl:flex tpl:gap-0" }, ko = {
3398
3408
  key: 0,
3399
3409
  "data-testid": "section-drop-hint",
3400
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)]"
3401
- }, Eo = /* @__PURE__ */ y({
3411
+ }, Ao = /* @__PURE__ */ y({
3402
3412
  __name: "SectionBlock",
3403
3413
  props: {
3404
3414
  block: {},
@@ -3406,13 +3416,13 @@ var Co = { class: "tpl:w-full" }, wo = { class: "tpl:flex tpl:gap-0" }, To = {
3406
3416
  },
3407
3417
  setup(n) {
3408
3418
  let r = {
3409
- title: Fr,
3410
- paragraph: vr,
3411
- image: ar,
3412
- button: an,
3413
- divider: Un,
3414
- custom: Vn
3415
- }, a = n, { t: o } = pt(), s = We(rt, "SectionBlock"), l = P(ct, null), u = P(at, 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 = P(ut, null), u = P(st, null), d = x(() => {
3416
3426
  switch (a.block.columns) {
3417
3427
  case "2": return ["50%", "50%"];
3418
3428
  case "3": return [
@@ -3438,7 +3448,7 @@ var Co = { class: "tpl:w-full" }, wo = { class: "tpl:flex tpl:gap-0" }, To = {
3438
3448
  r[e] = n, s.updateBlock(a.block.id, { children: r });
3439
3449
  }
3440
3450
  function h(e) {
3441
- return yr(e, u, r);
3451
+ return Cr(e, u, r);
3442
3452
  }
3443
3453
  function g(e, t) {
3444
3454
  e.type === "custom" && s.updateBlock(e.id, {
@@ -3446,11 +3456,11 @@ var Co = { class: "tpl:w-full" }, wo = { class: "tpl:flex tpl:gap-0" }, To = {
3446
3456
  dataSourceFetched: t.dataSourceFetched
3447
3457
  });
3448
3458
  }
3449
- return (r, a) => (e(), w("div", Co, [C("div", wo, [(e(!0), w(D, null, c(f.value, (r, a) => (e(), w("div", {
3459
+ return (r, a) => (e(), w("div", Do, [C("div", Oo, [(e(!0), w(D, null, c(f.value, (r, a) => (e(), w("div", {
3450
3460
  key: a,
3451
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)]" : ""]),
3452
3462
  style: A({ width: d.value[a] })
3453
- }, [N(j(xo), {
3463
+ }, [N(j(To), {
3454
3464
  "model-value": p(a),
3455
3465
  group: {
3456
3466
  name: "blocks",
@@ -3468,14 +3478,14 @@ var Co = { class: "tpl:w-full" }, wo = { class: "tpl:flex tpl:gap-0" }, To = {
3468
3478
  class: "tpl:min-h-[60px]",
3469
3479
  "onUpdate:modelValue": (e) => m(a, e)
3470
3480
  }, {
3471
- default: se(() => [(e(!0), w(D, null, c(p(a), (r) => t((e(), w("div", { key: r.id }, [N(Nr, {
3481
+ default: ce(() => [(e(!0), w(D, null, c(p(a), (r) => t((e(), w("div", { key: r.id }, [N(Lr, {
3472
3482
  block: r,
3473
3483
  "is-selected": j(s).state.selectedBlockId === r.id,
3474
3484
  viewport: n.viewport,
3475
3485
  "preview-mode": j(s).state.previewMode,
3476
3486
  onSelect: (e) => j(s).selectBlock(r.id)
3477
3487
  }, {
3478
- default: se(() => [(e(), ne(i(h(r)), {
3488
+ default: ce(() => [(e(), ne(i(h(r)), {
3479
3489
  block: r,
3480
3490
  viewport: n.viewport,
3481
3491
  onFetchData: (e) => g(r, e),
@@ -3499,94 +3509,13 @@ var Co = { class: "tpl:w-full" }, wo = { class: "tpl:flex tpl:gap-0" }, To = {
3499
3509
  "model-value",
3500
3510
  "group",
3501
3511
  "onUpdate:modelValue"
3502
- ]), p(a).length === 0 ? (e(), w("div", To, [C("span", null, M(j(o).section.dropHere), 1)])) : O("", !0)], 6))), 128))])]));
3503
- }
3504
- }), Do = {
3505
- facebook: {
3506
- name: "Facebook",
3507
- color: "#1877F2",
3508
- path: "M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"
3509
- },
3510
- twitter: {
3511
- name: "X",
3512
- color: "#000000",
3513
- path: "M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"
3514
- },
3515
- instagram: {
3516
- name: "Instagram",
3517
- color: "#E4405F",
3518
- path: "M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z"
3519
- },
3520
- linkedin: {
3521
- name: "LinkedIn",
3522
- color: "#0A66C2",
3523
- path: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"
3524
- },
3525
- youtube: {
3526
- name: "YouTube",
3527
- color: "#FF0000",
3528
- path: "M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"
3529
- },
3530
- tiktok: {
3531
- name: "TikTok",
3532
- color: "#000000",
3533
- path: "M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"
3534
- },
3535
- pinterest: {
3536
- name: "Pinterest",
3537
- color: "#BD081C",
3538
- path: "M12 0C5.373 0 0 5.372 0 12c0 5.084 3.163 9.426 7.627 11.174-.105-.949-.2-2.405.042-3.441.218-.937 1.407-5.965 1.407-5.965s-.359-.719-.359-1.782c0-1.668.967-2.914 2.171-2.914 1.023 0 1.518.769 1.518 1.69 0 1.029-.655 2.568-.994 3.995-.283 1.194.599 2.169 1.777 2.169 2.133 0 3.772-2.249 3.772-5.495 0-2.873-2.064-4.882-5.012-4.882-3.414 0-5.418 2.561-5.418 5.207 0 1.031.397 2.138.893 2.738.098.119.112.224.083.345l-.333 1.36c-.053.22-.174.267-.402.161-1.499-.698-2.436-2.889-2.436-4.649 0-3.785 2.75-7.262 7.929-7.262 4.163 0 7.398 2.967 7.398 6.931 0 4.136-2.607 7.464-6.227 7.464-1.216 0-2.359-.631-2.75-1.378l-.748 2.853c-.271 1.043-1.002 2.35-1.492 3.146C9.57 23.812 10.763 24 12 24c6.627 0 12-5.373 12-12 0-6.628-5.373-12-12-12z"
3539
- },
3540
- email: {
3541
- name: "Email",
3542
- color: "#6B7280",
3543
- path: "M1.5 8.67v8.58a3 3 0 003 3h15a3 3 0 003-3V8.67l-8.928 5.493a3 3 0 01-3.144 0L1.5 8.67z M22.5 6.908V6.75a3 3 0 00-3-3h-15a3 3 0 00-3 3v.158l9.714 5.978a1.5 1.5 0 001.572 0L22.5 6.908z"
3544
- },
3545
- whatsapp: {
3546
- name: "WhatsApp",
3547
- color: "#25D366",
3548
- path: "M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"
3549
- },
3550
- telegram: {
3551
- name: "Telegram",
3552
- color: "#26A5E4",
3553
- path: "M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"
3554
- },
3555
- discord: {
3556
- name: "Discord",
3557
- color: "#5865F2",
3558
- path: "M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189z"
3559
- },
3560
- snapchat: {
3561
- name: "Snapchat",
3562
- color: "#FFFC00",
3563
- path: "M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.668.967-2.914 2.171-2.914 1.023 0 1.518.769 1.518 1.69 0 1.029-.655 2.568-.994 3.995-.283 1.194.599 2.169 1.777 2.169 2.133 0 3.772-2.249 3.772-5.495 0-2.873-2.064-4.882-5.012-4.882-3.414 0-5.418 2.561-5.418 5.207 0 1.031.397 2.138.893 2.738a.36.36 0 01.083.345l-.333 1.36c-.053.22-.174.267-.402.161-1.499-.698-2.436-2.889-2.436-4.649 0-3.785 2.75-7.262 7.929-7.262 4.163 0 7.398 2.967 7.398 6.931 0 4.136-2.607 7.464-6.227 7.464-1.216 0-2.359-.631-2.75-1.378l-.748 2.853c-.271 1.043-1.002 2.35-1.492 3.146 1.124.347 2.317.535 3.554.535 6.627 0 12.017-5.373 12.017-12.001C24.034 5.367 18.644 0 12.017 0z"
3564
- },
3565
- reddit: {
3566
- name: "Reddit",
3567
- color: "#FF4500",
3568
- path: "M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm5.01 4.744c.688 0 1.25.561 1.25 1.249a1.25 1.25 0 0 1-2.498.056l-2.597-.547-.8 3.747c1.824.07 3.48.632 4.674 1.488.308-.309.73-.491 1.207-.491.968 0 1.754.786 1.754 1.754 0 .716-.435 1.333-1.01 1.614a3.111 3.111 0 0 1 .042.52c0 2.694-3.13 4.87-7.004 4.87-3.874 0-7.004-2.176-7.004-4.87 0-.183.015-.366.043-.534A1.748 1.748 0 0 1 4.028 12c0-.968.786-1.754 1.754-1.754.463 0 .898.196 1.207.49 1.207-.883 2.878-1.43 4.744-1.487l.885-4.182a.342.342 0 0 1 .14-.197.35.35 0 0 1 .238-.042l2.906.617a1.214 1.214 0 0 1 1.108-.701zM9.25 12C8.561 12 8 12.562 8 13.25c0 .687.561 1.248 1.25 1.248.687 0 1.248-.561 1.248-1.249 0-.688-.561-1.249-1.249-1.249zm5.5 0c-.687 0-1.248.561-1.248 1.25 0 .687.561 1.248 1.249 1.248.688 0 1.249-.561 1.249-1.249 0-.687-.562-1.249-1.25-1.249zm-5.466 3.99a.327.327 0 0 0-.231.094.33.33 0 0 0 0 .463c.842.842 2.484.913 2.961.913.477 0 2.105-.056 2.961-.913a.361.361 0 0 0 .029-.463.33.33 0 0 0-.464 0c-.547.533-1.684.73-2.512.73-.828 0-1.979-.196-2.512-.73a.326.326 0 0 0-.232-.095z"
3569
- },
3570
- github: {
3571
- name: "GitHub",
3572
- color: "#181717",
3573
- path: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"
3574
- },
3575
- dribbble: {
3576
- name: "Dribbble",
3577
- color: "#EA4C89",
3578
- path: "M12 24C5.385 24 0 18.615 0 12S5.385 0 12 0s12 5.385 12 12-5.385 12-12 12zm10.12-10.358c-.35-.11-3.17-.953-6.384-.438 1.34 3.684 1.887 6.684 1.992 7.308 2.3-1.555 3.936-4.02 4.392-6.87zm-6.115 7.808c-.153-.9-.75-4.032-2.19-7.77l-.066.02c-5.79 2.015-7.86 6.025-8.04 6.4 1.73 1.358 3.92 2.166 6.29 2.166 1.42 0 2.77-.29 4-.814zm-11.62-2.58c.232-.4 3.045-5.055 8.332-6.765.135-.045.27-.084.405-.12-.26-.585-.54-1.167-.832-1.74C7.17 11.775 2.206 11.71 1.756 11.7l-.004.312c0 2.633.998 5.037 2.634 6.855zm-2.42-8.955c.46.008 4.683.026 9.477-1.248-1.698-3.018-3.53-5.558-3.8-5.928-2.868 1.35-5.01 3.99-5.676 7.17zM9.6 2.052c.282.38 2.145 2.914 3.822 6 3.645-1.365 5.19-3.44 5.373-3.702-1.81-1.61-4.19-2.586-6.795-2.586-.825 0-1.63.1-2.4.285zm10.335 3.483c-.218.29-1.935 2.493-5.724 4.04.24.49.47.985.68 1.486.08.18.15.36.22.53 3.41-.43 6.8.26 7.14.33-.02-2.42-.88-4.64-2.31-6.38z"
3579
- },
3580
- behance: {
3581
- name: "Behance",
3582
- color: "#1769FF",
3583
- 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"
3584
- }
3585
- }, Oo = {
3512
+ ]), p(a).length === 0 ? (e(), w("div", ko, [C("span", null, M(j(o).section.dropHere), 1)])) : O("", !0)], 6))), 128))])]));
3513
+ }
3514
+ }), jo = Ee, Mo = {
3586
3515
  small: 24,
3587
3516
  medium: 32,
3588
3517
  large: 48
3589
- }, ko = [
3518
+ }, No = [
3590
3519
  "facebook",
3591
3520
  "twitter",
3592
3521
  "instagram",
@@ -3595,6 +3524,7 @@ var Co = { class: "tpl:w-full" }, wo = { class: "tpl:flex tpl:gap-0" }, To = {
3595
3524
  "tiktok",
3596
3525
  "pinterest",
3597
3526
  "email",
3527
+ "website",
3598
3528
  "whatsapp",
3599
3529
  "telegram",
3600
3530
  "discord",
@@ -3603,11 +3533,11 @@ var Co = { class: "tpl:w-full" }, wo = { class: "tpl:flex tpl:gap-0" }, To = {
3603
3533
  "github",
3604
3534
  "dribbble",
3605
3535
  "behance"
3606
- ], Ao = [
3536
+ ], Po = [
3607
3537
  "width",
3608
3538
  "height",
3609
3539
  "fill"
3610
- ], jo = ["d"], Mo = /* @__PURE__ */ y({
3540
+ ], Fo = ["d"], Io = /* @__PURE__ */ y({
3611
3541
  __name: "SocialIconSvg",
3612
3542
  props: {
3613
3543
  platform: {},
@@ -3615,7 +3545,7 @@ var Co = { class: "tpl:w-full" }, wo = { class: "tpl:flex tpl:gap-0" }, To = {
3615
3545
  iconSize: {}
3616
3546
  },
3617
3547
  setup(t) {
3618
- let n = t, r = x(() => Do[n.platform]), i = x(() => Oo[n.iconSize]), a = x(() => {
3548
+ let n = t, r = x(() => jo[n.platform]), i = x(() => Mo[n.iconSize]), a = x(() => {
3619
3549
  let e = {
3620
3550
  display: "inline-flex",
3621
3551
  alignItems: "center",
@@ -3659,25 +3589,25 @@ var Co = { class: "tpl:w-full" }, wo = { class: "tpl:flex tpl:gap-0" }, To = {
3659
3589
  viewBox: "0 0 24 24",
3660
3590
  fill: s.value,
3661
3591
  xmlns: "http://www.w3.org/2000/svg"
3662
- }, [C("path", { d: r.value.path }, null, 8, jo)], 8, Ao))], 4));
3592
+ }, [C("path", { d: r.value.path }, null, 8, Fo)], 8, Po))], 4));
3663
3593
  }
3664
- }), No = { class: "tpl:w-full" }, Po = ["href"], Fo = {
3594
+ }), Lo = { class: "tpl:w-full" }, Ro = ["href"], zo = {
3665
3595
  key: 1,
3666
3596
  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)]"
3667
- }, Io = /* @__PURE__ */ y({
3597
+ }, Bo = /* @__PURE__ */ y({
3668
3598
  __name: "SocialIconsBlock",
3669
3599
  props: {
3670
3600
  block: {},
3671
3601
  viewport: {}
3672
3602
  },
3673
3603
  setup(t) {
3674
- let n = t, { t: r } = pt(), i = x(() => ({
3604
+ let n = t, { t: r } = ht(), i = x(() => ({
3675
3605
  display: "flex",
3676
3606
  flexWrap: "wrap",
3677
3607
  gap: `${n.block.spacing}px`,
3678
3608
  justifyContent: n.block.align === "left" ? "flex-start" : n.block.align === "right" ? "flex-end" : "center"
3679
3609
  })), a = x(() => n.block.icons.length > 0);
3680
- return (n, o) => (e(), w("div", No, [a.value ? (e(), w("div", {
3610
+ return (n, o) => (e(), w("div", Lo, [a.value ? (e(), w("div", {
3681
3611
  key: 0,
3682
3612
  style: A(i.value)
3683
3613
  }, [(e(!0), w(D, null, c(t.block.icons, (n) => (e(), w("a", {
@@ -3685,7 +3615,7 @@ var Co = { class: "tpl:w-full" }, wo = { class: "tpl:flex tpl:gap-0" }, To = {
3685
3615
  href: n.url || "#",
3686
3616
  class: "tpl:cursor-default",
3687
3617
  onClick: o[0] ||= b(() => {}, ["prevent"])
3688
- }, [N(Mo, {
3618
+ }, [N(Io, {
3689
3619
  platform: n.platform,
3690
3620
  "icon-style": t.block.iconStyle,
3691
3621
  "icon-size": t.block.iconSize
@@ -3693,44 +3623,44 @@ var Co = { class: "tpl:w-full" }, wo = { class: "tpl:flex tpl:gap-0" }, To = {
3693
3623
  "platform",
3694
3624
  "icon-style",
3695
3625
  "icon-size"
3696
- ])], 8, Po))), 128))], 4)) : (e(), w("div", Fo, [N(j(gn), { size: 16 }), C("span", null, M(j(r).social.addIcons), 1)]))]));
3626
+ ])], 8, Ro))), 128))], 4)) : (e(), w("div", zo, [N(j(vn), { size: 16 }), C("span", null, M(j(r).social.addIcons), 1)]))]));
3697
3627
  }
3698
- }), Lo = { class: "tpl:w-full" }, Ro = {
3628
+ }), Vo = { class: "tpl:w-full" }, Ho = {
3699
3629
  key: 0,
3700
3630
  class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
3701
3631
  style: {
3702
3632
  "background-color": "var(--tpl-bg-hover)",
3703
3633
  color: "var(--tpl-text-dim)"
3704
3634
  }
3705
- }, zo = /* @__PURE__ */ y({
3635
+ }, Uo = /* @__PURE__ */ y({
3706
3636
  __name: "SpacerBlock",
3707
3637
  props: {
3708
3638
  block: {},
3709
3639
  viewport: {}
3710
3640
  },
3711
3641
  setup(t) {
3712
- let n = t, r = We(rt, "SpacerBlock"), i = x(() => ({
3642
+ let n = t, r = Ke(at, "SpacerBlock"), i = x(() => ({
3713
3643
  height: `${n.block.height}px`,
3714
3644
  minHeight: `${n.block.height}px`,
3715
3645
  ...r.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
3716
3646
  }));
3717
- return (n, a) => (e(), w("div", Lo, [C("div", {
3647
+ return (n, a) => (e(), w("div", Vo, [C("div", {
3718
3648
  style: A(i.value),
3719
3649
  class: v(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:border-y tpl:border-dashed": !j(r).state.previewMode }])
3720
- }, [j(r).state.previewMode ? O("", !0) : (e(), w("span", Ro, M(t.block.height) + "px ", 1))], 6)]));
3650
+ }, [j(r).state.previewMode ? O("", !0) : (e(), w("span", Ho, M(t.block.height) + "px ", 1))], 6)]));
3721
3651
  }
3722
- }), Bo = { class: "tpl:w-full" }, Vo = { key: 0 }, Ho = [
3652
+ }), Wo = { class: "tpl:w-full" }, Go = { key: 0 }, Ko = [
3723
3653
  "aria-label",
3724
3654
  "data-placeholder",
3725
3655
  "onBlur"
3726
- ], Uo = [
3656
+ ], qo = [
3727
3657
  "aria-label",
3728
3658
  "data-placeholder",
3729
3659
  "onBlur"
3730
- ], Wo = {
3660
+ ], Jo = {
3731
3661
  key: 1,
3732
3662
  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)]"
3733
- }, Go = /*#__PURE__*/ vt(/* @__PURE__ */ y({
3663
+ }, Yo = /*#__PURE__*/ bt(/* @__PURE__ */ y({
3734
3664
  __name: "TableBlock",
3735
3665
  props: {
3736
3666
  block: {},
@@ -3744,7 +3674,7 @@ var Co = { class: "tpl:w-full" }, wo = { class: "tpl:flex tpl:gap-0" }, To = {
3744
3674
  updated(e, t) {
3745
3675
  t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
3746
3676
  }
3747
- }, i = n, { t: a } = pt(), o = We(rt, "TableBlock"), s = x(() => i.block.rows.length > 0), l = x(() => ({
3677
+ }, i = n, { t: a } = ht(), o = Ke(at, "TableBlock"), s = x(() => i.block.rows.length > 0), l = x(() => ({
3748
3678
  width: "100%",
3749
3679
  borderCollapse: "collapse",
3750
3680
  fontSize: `${i.block.fontSize}px`,
@@ -3773,11 +3703,11 @@ var Co = { class: "tpl:w-full" }, wo = { class: "tpl:flex tpl:gap-0" }, To = {
3773
3703
  } : n);
3774
3704
  o.updateBlock(i.block.id, { rows: a });
3775
3705
  }
3776
- return (n, i) => (e(), w("div", Bo, [s.value ? (e(), w("table", {
3706
+ return (n, i) => (e(), w("div", Wo, [s.value ? (e(), w("table", {
3777
3707
  key: 0,
3778
3708
  style: A(l.value),
3779
3709
  class: "tpl-table-editable"
3780
- }, [f.value ? (e(), w("thead", Vo, [C("tr", null, [(e(!0), w(D, null, c(f.value.cells, (n) => t((e(), w("th", {
3710
+ }, [f.value ? (e(), w("thead", Go, [C("tr", null, [(e(!0), w(D, null, c(f.value.cells, (n) => t((e(), w("th", {
3781
3711
  key: n.id,
3782
3712
  style: A(d.value),
3783
3713
  "aria-label": j(a).table.cellPlaceholder,
@@ -3786,7 +3716,7 @@ var Co = { class: "tpl:w-full" }, wo = { class: "tpl:flex tpl:gap-0" }, To = {
3786
3716
  onBlur: (e) => h(f.value.id, n.id, e),
3787
3717
  onKeydown: i[0] ||= ie(b((e) => e.target.blur(), ["prevent"]), ["enter"]),
3788
3718
  onClick: b(m, ["stop"])
3789
- }, null, 44, Ho)), [[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", {
3719
+ }, null, 44, Ko)), [[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", {
3790
3720
  key: o.id,
3791
3721
  style: A(u.value),
3792
3722
  "aria-label": j(a).table.cellPlaceholder,
@@ -3795,9 +3725,9 @@ var Co = { class: "tpl:w-full" }, wo = { class: "tpl:flex tpl:gap-0" }, To = {
3795
3725
  onBlur: (e) => h(n.id, o.id, e),
3796
3726
  onKeydown: i[1] ||= ie(b((e) => e.target.blur(), ["prevent"]), ["enter"]),
3797
3727
  onClick: b(m, ["stop"])
3798
- }, null, 44, Uo)), [[r, o.content]])), 128))]))), 128))])], 4)) : (e(), w("div", Wo, [N(j(_n), { size: 16 }), C("span", null, M(j(a).table.empty), 1)]))]));
3728
+ }, null, 44, qo)), [[r, o.content]])), 128))]))), 128))])], 4)) : (e(), w("div", Jo, [N(j(yn), { size: 16 }), C("span", null, M(j(a).table.empty), 1)]))]));
3799
3729
  }
3800
- }), [["__scopeId", "data-v-de1a7c76"]]), Ko = /* @__PURE__ */ y({
3730
+ }), [["__scopeId", "data-v-de1a7c76"]]), Xo = /* @__PURE__ */ y({
3801
3731
  __name: "VideoPlayButton",
3802
3732
  props: { hoverEffect: {
3803
3733
  type: Boolean,
@@ -3815,7 +3745,7 @@ var Co = { class: "tpl:w-full" }, wo = { class: "tpl:flex tpl:gap-0" }, To = {
3815
3745
  });
3816
3746
  //#endregion
3817
3747
  //#region src/utils/videoThumbnail.ts
3818
- function qo(e) {
3748
+ function Zo(e) {
3819
3749
  if (!e) return {
3820
3750
  platform: "unknown",
3821
3751
  videoId: null,
@@ -3847,25 +3777,25 @@ function qo(e) {
3847
3777
  thumbnailUrl: null
3848
3778
  };
3849
3779
  }
3850
- function Jo(e, t) {
3851
- return t || qo(e).thumbnailUrl;
3780
+ function Qo(e, t) {
3781
+ return t || Zo(e).thumbnailUrl;
3852
3782
  }
3853
3783
  //#endregion
3854
3784
  //#region src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
3855
- var Yo = ["src", "alt"], Xo = {
3785
+ var $o = ["src", "alt"], es = {
3856
3786
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
3857
3787
  style: { opacity: "0.7" }
3858
- }, Zo = ["href"], Qo = ["src", "alt"], $o = ["src", "alt"], es = {
3788
+ }, ts = ["href"], ns = ["src", "alt"], rs = ["src", "alt"], is = {
3859
3789
  key: 3,
3860
3790
  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)]"
3861
- }, ts = /* @__PURE__ */ y({
3791
+ }, as = /* @__PURE__ */ y({
3862
3792
  __name: "VideoBlock",
3863
3793
  props: {
3864
3794
  block: {},
3865
3795
  viewport: {}
3866
3796
  },
3867
3797
  setup(t) {
3868
- let n = t, { t: r } = pt(), { syntax: i } = yt(), a = x(() => me(n.block.url, i) || me(n.block.thumbnailUrl, i)), o = x(() => a.value ? null : Jo(n.block.url, n.block.thumbnailUrl)), s = x(() => ({ textAlign: n.block.align })), c = x(() => {
3798
+ let n = t, { t: r } = ht(), { syntax: i } = xt(), a = x(() => De(n.block.url, i) || De(n.block.thumbnailUrl, i)), o = x(() => a.value ? null : Qo(n.block.url, n.block.thumbnailUrl)), s = x(() => ({ textAlign: n.block.align })), c = x(() => {
3869
3799
  let e = n.block.align;
3870
3800
  return {
3871
3801
  maxWidth: "100%",
@@ -3874,7 +3804,7 @@ var Yo = ["src", "alt"], Xo = {
3874
3804
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
3875
3805
  marginRight: e === "center" ? "auto" : void 0
3876
3806
  };
3877
- }), l = x(() => me(n.block.url, i) ? n.block.url : n.block.thumbnailUrl);
3807
+ }), l = x(() => De(n.block.url, i) ? n.block.url : n.block.thumbnailUrl);
3878
3808
  return (n, i) => (e(), w("div", {
3879
3809
  class: "tpl:w-full",
3880
3810
  style: A(s.value)
@@ -3886,16 +3816,16 @@ var Yo = ["src", "alt"], Xo = {
3886
3816
  class: "tpl:w-full tpl:border-0",
3887
3817
  src: t.block.placeholderUrl,
3888
3818
  alt: t.block.alt
3889
- }, null, 8, Yo), N(Ko)], 4)) : a.value ? (e(), w("div", {
3819
+ }, null, 8, $o), N(Xo)], 4)) : a.value ? (e(), w("div", {
3890
3820
  key: 1,
3891
3821
  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)]",
3892
3822
  style: A([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, c.value])
3893
- }, [N(j(vn), {
3823
+ }, [N(j(bn), {
3894
3824
  size: 36,
3895
3825
  "stroke-width": 1.5,
3896
3826
  class: "tpl:text-[var(--tpl-primary)]",
3897
3827
  style: { opacity: "0.5" }
3898
- }), C("span", Xo, M(l.value), 1)], 4)) : o.value ? (e(), w(D, { key: 2 }, [t.block.url ? (e(), w("a", {
3828
+ }), C("span", es, M(l.value), 1)], 4)) : o.value ? (e(), w(D, { key: 2 }, [t.block.url ? (e(), w("a", {
3899
3829
  key: 0,
3900
3830
  href: t.block.url,
3901
3831
  target: "_blank",
@@ -3907,7 +3837,7 @@ var Yo = ["src", "alt"], Xo = {
3907
3837
  class: "tpl:w-full tpl:border-0",
3908
3838
  src: o.value,
3909
3839
  alt: t.block.alt
3910
- }, null, 8, Qo), N(Ko, { "hover-effect": "" })], 12, Zo)) : (e(), w("div", {
3840
+ }, null, 8, ns), N(Xo, { "hover-effect": "" })], 12, ts)) : (e(), w("div", {
3911
3841
  key: 1,
3912
3842
  class: "tpl:relative tpl:inline-block",
3913
3843
  style: A(c.value)
@@ -3915,48 +3845,48 @@ var Yo = ["src", "alt"], Xo = {
3915
3845
  class: "tpl:w-full tpl:border-0",
3916
3846
  src: o.value,
3917
3847
  alt: t.block.alt
3918
- }, null, 8, $o), N(Ko)], 4))], 64)) : (e(), w("div", es, [N(j(vn), {
3848
+ }, null, 8, rs), N(Xo)], 4))], 64)) : (e(), w("div", is, [N(j(bn), {
3919
3849
  size: 40,
3920
3850
  "stroke-width": 1.5,
3921
3851
  class: "tpl:text-[var(--tpl-border-light)]"
3922
3852
  }), C("span", null, M(j(r).video.addVideo), 1)]))], 4));
3923
3853
  }
3924
- }), ns = {
3925
- section: Eo,
3926
- title: Fr,
3927
- paragraph: vr,
3928
- image: ar,
3929
- button: an,
3930
- divider: Un,
3931
- video: ts,
3932
- social: Io,
3933
- menu: lr,
3934
- table: Go,
3935
- spacer: zo,
3936
- html: Jn,
3937
- countdown: oe(() => import("./CountdownBlock-D_AsF4F3.js").then((e) => e.n))
3854
+ }), os = {
3855
+ section: Ao,
3856
+ title: zr,
3857
+ paragraph: Sr,
3858
+ image: lr,
3859
+ button: sn,
3860
+ divider: qn,
3861
+ video: as,
3862
+ social: Bo,
3863
+ menu: pr,
3864
+ table: Yo,
3865
+ spacer: Uo,
3866
+ html: Qn,
3867
+ countdown: se(() => import("./CountdownBlock-C-6o19qS.js").then((e) => e.n))
3938
3868
  };
3939
- function rs(e) {
3940
- let { editor: t, config: n, translations: r, fontsManager: i } = e, { t: a, format: o } = pt(r);
3869
+ function ss(e) {
3870
+ let { editor: t, config: n, translations: r, fontsManager: i } = e, { t: a, format: o } = ht(r);
3941
3871
  t.setUiTheme(n.uiTheme ?? "auto");
3942
- let { resolvedTheme: c } = Ht(x(() => t.state.uiTheme)), l = h(n.theme ?? {}), { themeStyles: u } = Wt({
3872
+ let { resolvedTheme: c } = Wt(x(() => t.state.uiTheme)), l = h(n.theme ?? {}), { themeStyles: u } = Kt({
3943
3873
  themeOverrides: l,
3944
3874
  resolvedTheme: c,
3945
3875
  extraStyles: e.themeExtraStyles
3946
- }), d = Et({
3876
+ }), d = Ot({
3947
3877
  content: t.content,
3948
3878
  setContent: (e, n) => t.setContent(e, n),
3949
3879
  ...e.historyOptions
3950
3880
  });
3951
- Mt(t, d);
3952
- let f = Ot({
3881
+ Pt(t, d);
3882
+ let f = At({
3953
3883
  addBlock: t.addBlock,
3954
3884
  removeBlock: t.removeBlock,
3955
3885
  updateBlock: t.updateBlock,
3956
3886
  selectBlock: t.selectBlock,
3957
3887
  findBlockLocation: t.findBlockLocation,
3958
3888
  blockDefaults: n.blockDefaults
3959
- }), m = At(t), g = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? kt({
3889
+ }), m = Mt(t), g = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? jt({
3960
3890
  content: t.content,
3961
3891
  isDirty: () => t.state.isDirty,
3962
3892
  ...e.autoSaveOptions
@@ -3964,24 +3894,24 @@ function rs(e) {
3964
3894
  g && (_ = s(d.isNavigating, (e) => {
3965
3895
  e ? g.pause() : g.resume();
3966
3896
  }));
3967
- let v = Vt(t, {
3897
+ let v = Ut(t, {
3968
3898
  t: a,
3969
3899
  format: o
3970
- }), y = Jt();
3971
- if ($t(y, ns), n.customBlocks?.length) for (let e of n.customBlocks) y.registerCustom(e, Vn);
3900
+ }), y = Xt();
3901
+ if (tn(y, os), n.customBlocks?.length) for (let e of n.customBlocks) y.registerCustom(e, Gn);
3972
3902
  function b(e) {
3973
- for (let t of e) y.registerCustom(t, Vn);
3903
+ for (let t of e) y.registerCustom(t, Gn);
3974
3904
  }
3975
- let S = It();
3905
+ let S = Rt();
3976
3906
  if (p() && re(S.dispose), e.containerEl) {
3977
3907
  let t = e.containerEl;
3978
- Re(document, "pointerdown", (e) => {
3908
+ Be(document, "pointerdown", (e) => {
3979
3909
  let n = t.value;
3980
3910
  n && (e.composedPath?.() ?? []).includes(n) && S.claim();
3981
3911
  }, { capture: !0 });
3982
3912
  }
3983
3913
  function C(r) {
3984
- S.isActive() && tn(r, {
3914
+ S.isActive() && rn(r, {
3985
3915
  history: d,
3986
3916
  selectBlock: (e) => t.selectBlock(e),
3987
3917
  getSelectedBlockId: () => t.state.selectedBlockId,
@@ -3990,19 +3920,19 @@ function rs(e) {
3990
3920
  onBeforeUndo: e.keyboardOptions?.onBeforeUndo
3991
3921
  });
3992
3922
  }
3993
- Re(document, "keydown", C);
3923
+ Be(document, "keydown", C);
3994
3924
  let w = h(null);
3995
- E($e, e.editorRoot ?? document), E(He, w), E(tt, r), E(rt, t), E(qe, d), E(et, f), E(ct, m), E(Qe, i), E(Be, u), E(Ue, c), E(Je, n.blockDefaults), E(at, y), E(Xe, n.customBlocks ?? []), E(Ke, n.paletteBlocks), E(Ze, Yt(t.content, y));
3996
- let T = xe(n.mergeTags?.syntax);
3997
- E(ft, n.mergeTags?.tags ?? []), E(Ge, T), E(ut, n.mergeTags?.onRequest ?? null), E(Ye, n.mergeTags?.autocomplete !== !1), E(dt, Lt()), E(Ve, n.onRequestMedia ?? null), E(ot, n.displayConditions?.conditions ?? []), E(it, n.displayConditions?.allowCustom ?? !1), E(st, e.capabilities ?? {}), E(lt, v);
3998
- let ee = Rt(n.lint) ? null : zt({
3925
+ 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));
3926
+ let T = pe(n.mergeTags?.syntax);
3927
+ 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);
3928
+ let ee = Bt(n.lint) ? null : Vt({
3999
3929
  content: t.content,
4000
3930
  options: n.lint ?? {},
4001
3931
  updateBlock: t.updateBlock,
4002
3932
  updateSettings: t.updateSettings,
4003
3933
  removeBlock: t.removeBlock
4004
3934
  });
4005
- E(nt, ee);
3935
+ E(it, ee);
4006
3936
  function D() {
4007
3937
  _?.(), ee?.destroy(), g?.destroy(), d.destroy();
4008
3938
  }
@@ -4025,4 +3955,4 @@ function rs(e) {
4025
3955
  };
4026
3956
  }
4027
3957
  //#endregion
4028
- export { un as A, Tn as C, gn as D, _n as E, Bt as F, jt as I, St as L, cn as M, an as N, mn as O, qt as P, En as S, xn as T, Jn as _, Io as a, Mn as b, Eo as c, Nr as d, br as f, ar as g, lr as h, zo as i, ln as j, pn as k, xo as l, vr as m, ts as n, Do as o, yr as p, Go as r, ko as s, rs as t, Fr as u, Un as v, wn as w, An as x, Vn as y };
3958
+ export { pn as A, Dn as C, vn as D, yn as E, Ht as F, Nt as I, wt as L, dn as M, sn as N, gn as O, Yt as P, On as S, Cn as T, qn as _, Bo as a, Pn as b, To as c, wr as d, Cr as f, Qn as g, lr as h, Uo as i, fn as j, hn as k, zr as l, pr as m, as as n, No as o, Sr as p, Yo as r, Ao as s, ss as t, Lr as u, Gn as v, En as w, Mn as x, In as y };