@templatical/editor 0.12.1 → 0.14.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-CXH7l1Ar.js → AiChatSidebar-J8iO_sX7.js} +16 -16
  2. package/dist/{AiFeatureMenu-BKbUUc1D.js → AiFeatureMenu-F2diEDgV.js} +10 -10
  3. package/dist/{BlockIssueBadge-C-EPqWsh.js → BlockIssueBadge-a-qlByxF.js} +5 -5
  4. package/dist/{CloudEditor-CB16QzKM.js → CloudEditor-CDjtwb4i.js} +284 -250
  5. package/dist/{CollaboratorBar-ACUA7lBJ.js → CollaboratorBar-B_EnJLtW.js} +4 -4
  6. package/dist/{CommentsSidebar-CpRLN40c.js → CommentsSidebar-DaP9BA_r.js} +18 -18
  7. package/dist/{CountdownBlock-C-6o19qS.js → CountdownBlock-DtAokAVw.js} +3 -3
  8. package/dist/{CountdownToolbar-Dol7Q0Pv.js → CountdownToolbar-Dtqgwy0g.js} +3 -3
  9. package/dist/{DesignReferenceSidebar-0dTsBW08.js → DesignReferenceSidebar-BHRlTqlT.js} +21 -33
  10. package/dist/{IssuesPanel-I0z6k6-H.js → IssuesPanel-u7ee3Wrl.js} +11 -11
  11. package/dist/{LoadingTrack-C7mGWPHS.js → LoadingTrack-CV3ID80N.js} +1 -1
  12. package/dist/ModuleBrowserModal-DOsdaS6s.js +201 -0
  13. package/dist/{ModulePreviewCanvas-CpaumPMS.js → ModulePreviewCanvas-Cx4MOJ0X.js} +21 -21
  14. package/dist/{NumberWithSuffix-Bp40ik4l.js → NumberWithSuffix-D2mW_DhT.js} +4 -4
  15. package/dist/{ParagraphEditor-BqRFV_Y-.js → ParagraphEditor-DMzkVnST.js} +156 -136
  16. package/dist/{RichTextEditorContent-Q5altsx1.js → RichTextEditorContent-CRCxCwKf.js} +7 -7
  17. package/dist/{SaveModuleDialog-DmfvH5D0.js → SaveModuleDialog-DuEKgumL.js} +8 -8
  18. package/dist/{SnapshotHistory-C052o-8U.js → SnapshotHistory-CVgiNJtE.js} +12 -12
  19. package/dist/{TemplateScoringPanel-CUs8XmIi.js → TemplateScoringPanel-lm0_9nYi.js} +26 -26
  20. package/dist/{TestEmailModal-BIIxRWUt.js → TestEmailModal-WBMdiW5S.js} +5 -5
  21. package/dist/{TitleEditor-FMh54Cx5.js → TitleEditor-eyT0h-Sa.js} +71 -55
  22. package/dist/{TplModal-utMtXzSO.js → TplModal-tjQ7OB0g.js} +4 -4
  23. package/dist/{blockTypeIcons-C6UGDmrC.js → blockTypeIcons-DdB3uTKD.js} +5 -5
  24. package/dist/bundle-stats.json +8 -8
  25. package/dist/cdn/chunks/{AiFeatureMenu-4NhCFeTh.js → AiFeatureMenu-D7rB2SBs.js} +9 -9
  26. package/dist/cdn/chunks/{AiFeatureMenu-4NhCFeTh.js.map → AiFeatureMenu-D7rB2SBs.js.map} +1 -1
  27. package/dist/cdn/chunks/{BlockIssueBadge-BYKThwhE.js → BlockIssueBadge-DHOe0pgx.js} +6 -6
  28. package/dist/cdn/chunks/{BlockIssueBadge-BYKThwhE.js.map → BlockIssueBadge-DHOe0pgx.js.map} +1 -1
  29. package/dist/cdn/chunks/{CloudEditor-DSeihOan.js → CloudEditor-DNed_Ym0.js} +273 -239
  30. package/dist/cdn/chunks/CloudEditor-DNed_Ym0.js.map +1 -0
  31. package/dist/cdn/chunks/{CollaboratorBar-Dn5gXNDt.js → CollaboratorBar-sj_9Lee3.js} +4 -4
  32. package/dist/cdn/chunks/{CollaboratorBar-Dn5gXNDt.js.map → CollaboratorBar-sj_9Lee3.js.map} +1 -1
  33. package/dist/cdn/chunks/{CountdownBlock-hYoJdVOt.js → CountdownBlock-C1Ikjpn4.js} +3 -3
  34. package/dist/cdn/chunks/{CountdownBlock-hYoJdVOt.js.map → CountdownBlock-C1Ikjpn4.js.map} +1 -1
  35. package/dist/cdn/chunks/{CountdownToolbar-BQn0Kj0X.js → CountdownToolbar-j1G_X8rB.js} +4 -4
  36. package/dist/cdn/chunks/CountdownToolbar-j1G_X8rB.js.map +1 -0
  37. package/dist/cdn/chunks/{IssuesPanel-_5fEnivU.js → IssuesPanel-CTOf3PsH.js} +11 -11
  38. package/dist/cdn/chunks/{IssuesPanel-_5fEnivU.js.map → IssuesPanel-CTOf3PsH.js.map} +1 -1
  39. package/dist/cdn/chunks/{ModuleBrowserModal-DtCksAeW.js → ModuleBrowserModal-DCh88-rr.js} +13 -10
  40. package/dist/cdn/chunks/{ModuleBrowserModal-DtCksAeW.js.map → ModuleBrowserModal-DCh88-rr.js.map} +1 -1
  41. package/dist/cdn/chunks/{ModulePreviewCanvas-CCOvabZd.js → ModulePreviewCanvas-DJqvTKmg.js} +19 -19
  42. package/dist/cdn/chunks/{ModulePreviewCanvas-CCOvabZd.js.map → ModulePreviewCanvas-DJqvTKmg.js.map} +1 -1
  43. package/dist/cdn/chunks/{NumberWithSuffix-cdWjAK6y.js → NumberWithSuffix-Bu45XWSl.js} +5 -5
  44. package/dist/cdn/chunks/{NumberWithSuffix-cdWjAK6y.js.map → NumberWithSuffix-Bu45XWSl.js.map} +1 -1
  45. package/dist/cdn/chunks/{ParagraphEditor-BnhnFOW1.js → ParagraphEditor-DwZqLJp2.js} +131 -111
  46. package/dist/cdn/chunks/ParagraphEditor-DwZqLJp2.js.map +1 -0
  47. package/dist/cdn/chunks/{RichTextEditorContent-DV2yknp8.js → RichTextEditorContent-CIuZ-2DV.js} +5 -5
  48. package/dist/cdn/chunks/{RichTextEditorContent-DV2yknp8.js.map → RichTextEditorContent-CIuZ-2DV.js.map} +1 -1
  49. package/dist/cdn/chunks/{SaveModuleDialog-CCX5U7VA.js → SaveModuleDialog-Bep0X2s_.js} +6 -6
  50. package/dist/cdn/chunks/{SaveModuleDialog-CCX5U7VA.js.map → SaveModuleDialog-Bep0X2s_.js.map} +1 -1
  51. package/dist/cdn/chunks/{TitleEditor-CQqklX0D.js → TitleEditor-DO1-h3RY.js} +62 -46
  52. package/dist/cdn/chunks/TitleEditor-DO1-h3RY.js.map +1 -0
  53. package/dist/cdn/chunks/blockTypeIcons-8o24HVJu.js +22 -0
  54. package/dist/cdn/chunks/{blockTypeIcons-CpGPHppB.js.map → blockTypeIcons-8o24HVJu.js.map} +1 -1
  55. package/dist/cdn/chunks/{de-BpseTWOA.js → de-LsV0u1tP.js} +20 -2
  56. package/dist/cdn/chunks/de-LsV0u1tP.js.map +1 -0
  57. package/dist/cdn/chunks/{draggable-Bci-fq8y.js → draggable-kPCz_3zM.js} +14 -5
  58. package/dist/cdn/chunks/{draggable-Bci-fq8y.js.map → draggable-kPCz_3zM.js.map} +1 -1
  59. package/dist/cdn/chunks/{en-VGIQ0WNq.js → en-Bb8X1bOs.js} +20 -2
  60. package/dist/cdn/chunks/en-Bb8X1bOs.js.map +1 -0
  61. package/dist/cdn/chunks/{extensions-Ds9GnMcd.js → extensions-iwBXnEwq.js} +21 -21
  62. package/dist/cdn/chunks/{extensions-Ds9GnMcd.js.map → extensions-iwBXnEwq.js.map} +1 -1
  63. package/dist/cdn/chunks/{features-DxWz_Enw.js → features-CkTMVylx.js} +996 -817
  64. package/dist/cdn/chunks/features-CkTMVylx.js.map +1 -0
  65. package/dist/cdn/chunks/{icons-BflGUmFY.js → icons-9zjCuoJx.js} +158 -152
  66. package/dist/cdn/chunks/icons-9zjCuoJx.js.map +1 -0
  67. package/dist/cdn/chunks/liquid.browser-DKKBzRQu.js.map +1 -1
  68. package/dist/cdn/chunks/{media-library-C479-QcE.js → media-library-DMRIPx4g.js} +373 -371
  69. package/dist/cdn/chunks/media-library-DMRIPx4g.js.map +1 -0
  70. package/dist/cdn/chunks/{pt-BR-zAqpLQbW.js → pt-BR-BwJY_cvb.js} +20 -2
  71. package/dist/cdn/chunks/pt-BR-BwJY_cvb.js.map +1 -0
  72. package/dist/cdn/chunks/{pusher-BICWUP2j.js → pusher-CdEqyLwF.js} +6 -3
  73. package/dist/cdn/chunks/{pusher-BICWUP2j.js.map → pusher-CdEqyLwF.js.map} +1 -1
  74. package/dist/cdn/chunks/quality-CyeUgs_c.js +2176 -0
  75. package/dist/cdn/chunks/{quality-BL_pEvFP.js.map → quality-CyeUgs_c.js.map} +1 -1
  76. package/dist/cdn/chunks/{renderer-C0vdAODQ.js → renderer-BIKUEKDD.js} +38 -29
  77. package/dist/cdn/chunks/{renderer-C0vdAODQ.js.map → renderer-BIKUEKDD.js.map} +1 -1
  78. package/dist/cdn/chunks/{src-DzvOWQ9S.js → src-pDy_imWG.js} +56 -56
  79. package/dist/cdn/chunks/{src-DzvOWQ9S.js.map → src-pDy_imWG.js.map} +1 -1
  80. package/dist/cdn/chunks/{styles-LfeoSNRA.js → styles-D4Bd3SCx.js} +1356 -905
  81. package/dist/cdn/chunks/styles-D4Bd3SCx.js.map +1 -0
  82. package/dist/cdn/chunks/{tiptap-CwScfbsM.js → tiptap-BlLFFU3M.js} +2233 -2213
  83. package/dist/cdn/chunks/tiptap-BlLFFU3M.js.map +1 -0
  84. package/dist/cdn/editor.css +1 -1
  85. package/dist/cdn/editor.js +101 -97
  86. package/dist/cdn/editor.js.map +1 -1
  87. package/dist/{check-BRzXxFHr.js → check-CYJwFmjy.js} +1 -1
  88. package/dist/{chevron-down-DmEgzmYT.js → chevron-down-C5l-DzAA.js} +1 -1
  89. package/dist/{circle-alert-BStvZr3O.js → circle-alert-wf5HUFZY.js} +1 -1
  90. package/dist/{clock-Blwp_1R6.js → clock-Bj0bQw-K.js} +1 -1
  91. package/dist/{cloud-_olro76D.js → cloud-CoFDm9YA.js} +1 -1
  92. package/dist/{createLucideIcon-CmPAC-gt.js → createLucideIcon-Bad2kKE0.js} +4 -4
  93. package/dist/{de-BpseTWOA.js → de-LsV0u1tP.js} +19 -1
  94. package/dist/{dist-BwgjpLfr.js → dist-34OcyoK1.js} +1 -1
  95. package/dist/{dist-Cz79qrLL.js → dist-B7w6xTU6.js} +1 -1
  96. package/dist/{dist-DULfKmTh.js → dist-BX3gGwL8.js} +5 -5
  97. package/dist/{dist-412xXefB.js → dist-Bn703mnA.js} +1 -1
  98. package/dist/{dist-u0iIJH3V.js → dist-CADDCv0o.js} +1 -1
  99. package/dist/{dist-BNEdeWub.js → dist-CGvz7vkq.js} +1 -1
  100. package/dist/{dist-BlG7k25W.js → dist-CLpPNKy9.js} +1 -1
  101. package/dist/{dist-BCQZZUE9.js → dist-ChMninLH.js} +1 -1
  102. package/dist/{dist-b7Ak-CuM.js → dist-CrQZ_af9.js} +1 -1
  103. package/dist/{dist-DhKTdU52.js → dist-CyjyYg52.js} +1426 -1406
  104. package/dist/{dist-D6x1cQeh.js → dist-Dd3ibRZm.js} +2 -2
  105. package/dist/{dist-DJ9aD8yA.js → dist-DuCzdgDA.js} +54 -5
  106. package/dist/{dist-o73iaGqy.js → dist-U5vfDdYI.js} +1 -1
  107. package/dist/{en-VGIQ0WNq.js → en-Bb8X1bOs.js} +19 -1
  108. package/dist/{extensions-XPlNAKIL.js → extensions-J439b7y7.js} +5 -5
  109. package/dist/{image-up-BFPbw_Zq.js → image-up-x8-WXfsx.js} +1 -1
  110. package/dist/index.d.ts +17 -0
  111. package/dist/{info-B_qLEBN2.js → info-RS_fGcGi.js} +1 -1
  112. package/dist/keys-DgYXDafq.js +10 -0
  113. package/dist/{list-checks-CGg7JxPm.js → list-checks-Bf7XdDyv.js} +1 -1
  114. package/dist/{loader-circle-CDF8eR_Q.js → loader-circle-CLZ0_FvW.js} +1 -1
  115. package/dist/{message-circle-C3cHsCJl.js → message-circle-B-1bN9ab.js} +1 -1
  116. package/dist/{pt-BR-zAqpLQbW.js → pt-BR-BwJY_cvb.js} +19 -1
  117. package/dist/{refresh-cw-Butml7Q4.js → refresh-cw-CWKWqJYG.js} +1 -1
  118. package/dist/scan-line-BtK5dEai.js +31 -0
  119. package/dist/{send-k7npFJNO.js → send-Cn1IUdzh.js} +1 -1
  120. package/dist/{shield-check-CV6GbmCu.js → shield-check-CrvMk4Ea.js} +1 -1
  121. package/dist/{sparkles-C965Xop4.js → sparkles-CgfjwvnG.js} +1 -1
  122. package/dist/style.css +1 -1
  123. package/dist/{styles-DSm9Ijxt.js → styles-BUwDOWd3.js} +1335 -882
  124. package/dist/templatical-editor.js +143 -139
  125. package/dist/{text-align-start-Bxnps8fH.js → text-align-start-C3r_Rnvy.js} +1 -1
  126. package/dist/{trash-2-DpGb7fIt.js → trash-2-CjERg4x9.js} +1 -1
  127. package/dist/{triangle-alert-BKYElAwz.js → triangle-alert-Chkny574.js} +1 -1
  128. package/dist/upload-e5kDRkPb.js +17 -0
  129. package/dist/{useAliveFlag-BinvbqQR.js → useAliveFlag-cUQj9rmB.js} +1 -1
  130. package/dist/{useCloudI18n-L3H2XvdW.js → useCloudI18n-CYJKqXtI.js} +2 -2
  131. package/dist/{useEditorCore-D7dQFRkw.js → useEditorCore-8JxXDOA4.js} +1075 -894
  132. package/dist/{useI18n-CTs_bP9d.js → useI18n-BWqM8i78.js} +2 -2
  133. package/dist/{useMergeTag-e3RSY-s3.js → useMergeTag-NHC4ylza.js} +3 -3
  134. package/dist/usePopoverRoot-B1sdY4es.js +8 -0
  135. package/dist/{vue.runtime.esm-bundler-B2k01iQh.js → vue.runtime.esm-bundler-BPa483TZ.js} +13 -4
  136. package/dist/{x-CGjkjdKK.js → x-DiPIbccg.js} +1 -1
  137. package/package.json +12 -12
  138. package/dist/ModuleBrowserModal-Bz9hSjMS.js +0 -198
  139. package/dist/cdn/chunks/CloudEditor-DSeihOan.js.map +0 -1
  140. package/dist/cdn/chunks/CountdownToolbar-BQn0Kj0X.js.map +0 -1
  141. package/dist/cdn/chunks/ParagraphEditor-BnhnFOW1.js.map +0 -1
  142. package/dist/cdn/chunks/TitleEditor-CQqklX0D.js.map +0 -1
  143. package/dist/cdn/chunks/blockTypeIcons-CpGPHppB.js +0 -22
  144. package/dist/cdn/chunks/de-BpseTWOA.js.map +0 -1
  145. package/dist/cdn/chunks/en-VGIQ0WNq.js.map +0 -1
  146. package/dist/cdn/chunks/features-DxWz_Enw.js.map +0 -1
  147. package/dist/cdn/chunks/icons-BflGUmFY.js.map +0 -1
  148. package/dist/cdn/chunks/media-library-C479-QcE.js.map +0 -1
  149. package/dist/cdn/chunks/pt-BR-zAqpLQbW.js.map +0 -1
  150. package/dist/cdn/chunks/quality-BL_pEvFP.js +0 -2176
  151. package/dist/cdn/chunks/styles-LfeoSNRA.js.map +0 -1
  152. package/dist/cdn/chunks/tiptap-CwScfbsM.js.map +0 -1
  153. package/dist/keys-mFiJ5N0_.js +0 -10
  154. package/dist/scan-line-XYEqim_E.js +0 -25
  155. package/dist/usePopoverRoot-DVh7NY1q.js +0 -8
@@ -1,22 +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, 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";
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 j, q as ne, rt as M, s as re, st as N, tt as ie, v as P, w as F, x as ae, y as oe, z as se } from "./vue.runtime.esm-bundler-BPa483TZ.js";
2
+ import { A as ce, C as le, D as ue, E as de, M as fe, N as pe, O 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, r as ke, s as Ae, t as je, u as Me, v as Ne, w as Pe, x as Fe, y as Ie } from "./dist-BctFrpeA.js";
3
+ import { a as Le, d as Re, i as ze, l as Be, n as Ve, r as He, s as Ue, u as We } from "./dist-DuCzdgDA.js";
4
+ import { A as Ge, C as Ke, D as qe, E as Je, F as Ye, I as Xe, L as Ze, N as Qe, O as $e, P as et, S as tt, T as nt, _ as rt, a as it, b as at, d as ot, f as st, g as ct, h as lt, i as ut, k as dt, m as ft, n as pt, o as mt, p as ht, s as gt, u as _t, v as vt, w as yt, x as bt, y as xt } from "./keys-DgYXDafq.js";
5
+ import { t as St } from "./useI18n-BWqM8i78.js";
6
+ import { t as I } from "./createLucideIcon-Bad2kKE0.js";
7
+ import { t as Ct } from "./loader-circle-CLZ0_FvW.js";
8
+ import { t as wt } from "./message-circle-B-1bN9ab.js";
9
+ import { t as Tt } from "./trash-2-CjERg4x9.js";
10
+ import { t as Et } from "./triangle-alert-Chkny574.js";
11
+ import { t as Dt } from "./upload-e5kDRkPb.js";
12
+ import { t as Ot } from "./LoadingTrack-CV3ID80N.js";
13
+ import { t as kt } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
+ import "./useCloudI18n-CYJKqXtI.js";
15
+ import { t as At } from "./useMergeTag-NHC4ylza.js";
16
+ import { t as jt } from "./useAliveFlag-cUQj9rmB.js";
15
17
  //#region ../core/dist/index.js
16
- function Ct(e) {
18
+ function Mt(e) {
17
19
  return e === "1" ? 1 : e === "3" ? 3 : 2;
18
20
  }
19
- function wt(e) {
21
+ function Nt(e) {
20
22
  let t = o({
21
23
  content: e.content ?? ye(e.defaultFontFamily, e.templateDefaults),
22
24
  selectedBlockId: null,
@@ -102,17 +104,19 @@ function wt(e) {
102
104
  }, t.isDirty = !0;
103
105
  }
104
106
  function b(e, n, r = 0, a) {
105
- if (n) {
106
- if (c(n)) return;
107
- let o = i(t.content.blocks, n);
108
- if (o && o.type === "section") {
109
- if (r < 0 || r >= Ct(o.columns)) return;
110
- o.children[r] = o.children[r] || [];
111
- let t = o.children[r];
112
- a !== void 0 && a < t.length ? t.splice(a, 0, e) : t.push(e);
113
- }
114
- } else a !== void 0 && a < t.content.blocks.length ? t.content.blocks.splice(a, 0, e) : t.content.blocks.push(e);
115
- t.isDirty = !0;
107
+ if (!(n && e.type === "section")) {
108
+ if (n) {
109
+ if (c(n)) return;
110
+ let o = i(t.content.blocks, n);
111
+ if (o && o.type === "section") {
112
+ if (r < 0 || r >= Mt(o.columns)) return;
113
+ o.children[r] = o.children[r] || [];
114
+ let t = o.children[r];
115
+ a !== void 0 && a < t.length ? t.splice(a, 0, e) : t.push(e);
116
+ }
117
+ } else a !== void 0 && a < t.content.blocks.length ? t.content.blocks.splice(a, 0, e) : t.content.blocks.push(e);
118
+ t.isDirty = !0;
119
+ }
116
120
  }
117
121
  function x(e) {
118
122
  if (c(e)) return;
@@ -134,11 +138,11 @@ function wt(e) {
134
138
  let o = s(t.content.blocks, e);
135
139
  if (!o) return;
136
140
  let l = o.blocks.findIndex((t) => t.id === e);
137
- if (l === -1) return;
141
+ if (l === -1 || r && o.blocks[l].type === "section") return;
138
142
  let u;
139
143
  if (r) {
140
144
  let e = i(t.content.blocks, r);
141
- if (!e || e.type !== "section" || a < 0 || a >= Ct(e.columns)) return;
145
+ if (!e || e.type !== "section" || a < 0 || a >= Mt(e.columns)) return;
142
146
  e.children[a] = e.children[a] || [], u = e.children[a];
143
147
  } else u = t.content.blocks;
144
148
  let [d] = o.blocks.splice(l, 1);
@@ -167,11 +171,11 @@ function wt(e) {
167
171
  findBlockLocation: l
168
172
  };
169
173
  }
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);
174
+ var Pt = 50, Ft = 300, It = 1500;
175
+ function Lt(e) {
176
+ let { content: t, setContent: n, isRemoteOperation: r, maxSize: i = Pt } = 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
177
  function f() {
174
- return me(t.value);
178
+ return pe(t.value);
175
179
  }
176
180
  function p(e) {
177
181
  a.value.push(e), a.value.length > i && a.value.splice(0, a.value.length - i);
@@ -187,21 +191,21 @@ function Ot(e) {
187
191
  if (l && l.blockId === e) {
188
192
  clearTimeout(l.timeoutId), l.timeoutId = setTimeout(() => {
189
193
  l = null;
190
- }, Et);
194
+ }, Ft);
191
195
  return;
192
196
  }
193
197
  g(), p(f()), o.value = [], l = {
194
198
  blockId: e,
195
199
  timeoutId: setTimeout(() => {
196
200
  l = null;
197
- }, Et)
201
+ }, Ft)
198
202
  };
199
203
  }
200
204
  }
201
205
  function y() {
202
206
  s.value = !0, c && clearTimeout(c), c = setTimeout(() => {
203
207
  s.value = !1, c = null;
204
- }, Dt);
208
+ }, It);
205
209
  }
206
210
  function b() {
207
211
  if (a.value.length === 0) return;
@@ -233,33 +237,33 @@ function Ot(e) {
233
237
  destroy: C
234
238
  };
235
239
  }
236
- function kt(e) {
240
+ function Rt(e) {
237
241
  e.type === "table" ? e.rows = e.rows.map((e) => ({
238
242
  ...e,
239
- id: ue(),
243
+ id: le(),
240
244
  cells: e.cells.map((e) => ({
241
245
  ...e,
242
- id: ue()
246
+ id: le()
243
247
  }))
244
248
  })) : e.type === "social" ? e.icons = e.icons.map((e) => ({
245
249
  ...e,
246
- id: ue()
250
+ id: le()
247
251
  })) : e.type === "menu" && (e.items = e.items.map((e) => ({
248
252
  ...e,
249
- id: ue()
253
+ id: le()
250
254
  })));
251
255
  }
252
- function At(e) {
256
+ function zt(e) {
253
257
  let { addBlock: t, removeBlock: n, updateBlock: r, selectBlock: i, findBlockLocation: a } = e;
254
258
  function o(n, r, a) {
255
- let o = ke(n, e.blockDefaults);
259
+ let o = Ae(n, e.blockDefaults);
256
260
  return t(o, r, a), i(o.id), o;
257
261
  }
258
262
  function s(e, n, r) {
259
263
  let o = JSON.parse(JSON.stringify(e));
260
- if (o.id = ue(), kt(o), o.type === "section" && (o.children = o.children.map((e) => e.map((e) => {
264
+ if (o.id = le(), Rt(o), o.type === "section" && (o.children = o.children.map((e) => e.map((e) => {
261
265
  let t = JSON.parse(JSON.stringify(e));
262
- return t.id = ue(), kt(t), t;
266
+ return t.id = le(), Rt(t), t;
263
267
  }))), n !== void 0 || r !== void 0) t(o, n, r);
264
268
  else {
265
269
  let i = a?.(e.id) ?? null;
@@ -280,7 +284,7 @@ function At(e) {
280
284
  updateBlockProperty: l
281
285
  };
282
286
  }
283
- function jt(e) {
287
+ function Bt(e) {
284
288
  let { content: t, isDirty: n, onChange: r, debounce: i = 1e3, enabled: a = !0 } = e, o = null, s = !1;
285
289
  function c() {
286
290
  return typeof a == "function" ? a() : a;
@@ -316,7 +320,7 @@ function jt(e) {
316
320
  destroy: h
317
321
  };
318
322
  }
319
- function Mt(e) {
323
+ function Vt(e) {
320
324
  let t = o(/* @__PURE__ */ new Set()), n = m(() => t.size > 0);
321
325
  function r(e) {
322
326
  return t.has(e);
@@ -334,7 +338,7 @@ function Mt(e) {
334
338
  hasHiddenBlocks: n
335
339
  };
336
340
  }
337
- function Nt(e) {
341
+ function Ht(e) {
338
342
  let t = h(!1), n = h(!1), r = m(() => !!e.definition.value?.dataSource), i = m(() => r.value && !e.block.value.dataSourceFetched);
339
343
  async function a() {
340
344
  let r = e.definition.value;
@@ -364,7 +368,7 @@ function Nt(e) {
364
368
  needsFetch: i
365
369
  };
366
370
  }
367
- function Pt(e, t) {
371
+ function Ut(e, t) {
368
372
  let n = e.addBlock, r = e.removeBlock, i = e.moveBlock, a = e.updateBlock, o = e.updateSettings;
369
373
  e.addBlock = (r, i, a, o) => {
370
374
  i && e.isBlockLocked(i) || (t.record(), n(r, i, a, o));
@@ -380,26 +384,26 @@ function Pt(e, t) {
380
384
  }
381
385
  //#endregion
382
386
  //#region src/utils/activeEditorTracker.ts
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
+ var Wt = /* @__PURE__ */ new Set(), Gt = 0, Kt = 0;
388
+ function qt() {
389
+ let e = ++Kt;
390
+ return Wt.add(e), Gt === 0 && (Gt = e), {
387
391
  id: e,
388
- isActive: () => Ft.size <= 1 || It === e,
392
+ isActive: () => Wt.size <= 1 || Gt === e,
389
393
  claim: () => {
390
- It = e;
394
+ Gt = e;
391
395
  },
392
396
  dispose: () => {
393
- if (Ft.delete(e), It === e) {
394
- let e = Array.from(Ft);
395
- It = e[e.length - 1] ?? 0;
397
+ if (Wt.delete(e), Gt === e) {
398
+ let e = Array.from(Wt);
399
+ Gt = e[e.length - 1] ?? 0;
396
400
  }
397
401
  }
398
402
  };
399
403
  }
400
404
  //#endregion
401
405
  //#region src/composables/useMergeTagPicker.ts
402
- function zt() {
406
+ function Jt() {
403
407
  let e = h(!1), t = h([]), n = null;
404
408
  function r(r) {
405
409
  if (n) {
@@ -414,7 +418,7 @@ function zt() {
414
418
  let i = n;
415
419
  n = null, e.value = !1, t.value = [], i && i(r);
416
420
  }
417
- return p() && re(() => {
421
+ return p() && ne(() => {
418
422
  if (n) {
419
423
  let e = n;
420
424
  n = null, e(null);
@@ -428,18 +432,49 @@ function zt() {
428
432
  };
429
433
  }
430
434
  //#endregion
435
+ //#region src/composables/useLogicTagPicker.ts
436
+ function Yt() {
437
+ let e = h(!1), t = h([]), n = h([]), r = null;
438
+ function i(i, a) {
439
+ if (r) {
440
+ let e = r;
441
+ r = null, e(null);
442
+ }
443
+ return t.value = i, n.value = a, e.value = !0, new Promise((e) => {
444
+ r = e;
445
+ });
446
+ }
447
+ function a(i) {
448
+ let a = r;
449
+ r = null, e.value = !1, t.value = [], n.value = [], a && a(i);
450
+ }
451
+ return p() && ne(() => {
452
+ if (r) {
453
+ let e = r;
454
+ r = null, e(null);
455
+ }
456
+ e.value = !1, t.value = [], n.value = [];
457
+ }), {
458
+ isOpen: e,
459
+ tags: t,
460
+ pairs: n,
461
+ open: i,
462
+ resolve: a
463
+ };
464
+ }
465
+ //#endregion
431
466
  //#region src/composables/useTemplateLint.ts
432
- function Bt(e) {
467
+ function Xt(e) {
433
468
  return e ? e.disabled === !0 ? !0 : e.accessibility === !1 && e.structure === !1 && e.links === !1 : !1;
434
469
  }
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;
470
+ function Zt(e) {
471
+ let t = h([]), n = h(!1), r = h(!1), i = d(null), a = Xt(e.options), o = null, c = !1;
437
472
  a || l();
438
473
  async function l() {
439
474
  try {
440
475
  let t = await import("@templatical/quality");
441
476
  if (c) return;
442
- i.value = { lintTemplate: t.lintTemplate }, n.value = !0, u(), o = Ve(e.content, u, {
477
+ i.value = { lintTemplate: t.lintTemplate }, n.value = !0, u(), o = Re(e.content, u, {
443
478
  debounce: e.debounce ?? 500,
444
479
  deep: !0
445
480
  });
@@ -474,12 +509,12 @@ function Vt(e) {
474
509
  }
475
510
  //#endregion
476
511
  //#region src/utils/blockTypeLabels.ts
477
- function Ht(e, t) {
512
+ function Qt(e, t) {
478
513
  return t.blocks[e] ?? e;
479
514
  }
480
515
  //#endregion
481
516
  //#region src/composables/useKeyboardReorder.ts
482
- function Ut(e, t) {
517
+ function $t(e, t) {
483
518
  let n = h(null), r = h(""), i = null;
484
519
  function a(t) {
485
520
  let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
@@ -506,7 +541,7 @@ function Ut(e, t) {
506
541
  let r = a(n);
507
542
  if (!r) return "";
508
543
  let i = (r.sectionId ? s(r.sectionId, r.columnIndex ?? 0) : e.content.value.blocks)?.[r.index];
509
- return i ? Ht(i.type, t.t) : "";
544
+ return i ? Qt(i.type, t.t) : "";
510
545
  }
511
546
  function s(t, n) {
512
547
  return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
@@ -575,13 +610,13 @@ function Ut(e, t) {
575
610
  }
576
611
  //#endregion
577
612
  //#region src/composables/useUiTheme.ts
578
- function Wt(e) {
579
- let t = Ie("(prefers-color-scheme: dark)");
613
+ function en(e) {
614
+ let t = Le("(prefers-color-scheme: dark)");
580
615
  return { resolvedTheme: x(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
581
616
  }
582
617
  //#endregion
583
618
  //#region src/composables/useThemeStyles.ts
584
- var Gt = {
619
+ var tn = {
585
620
  bg: "--tpl-bg",
586
621
  bgElevated: "--tpl-bg-elevated",
587
622
  bgHover: "--tpl-bg-hover",
@@ -605,10 +640,10 @@ var Gt = {
605
640
  dangerLight: "--tpl-danger-light",
606
641
  canvasBg: "--tpl-canvas-bg"
607
642
  };
608
- function Kt({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
643
+ function nn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
609
644
  return { themeStyles: x(() => {
610
645
  let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
611
- if (a) for (let [e, t] of Object.entries(Gt)) {
646
+ if (a) for (let [e, t] of Object.entries(tn)) {
612
647
  let n = a[e];
613
648
  n && (r[t] = n);
614
649
  }
@@ -617,27 +652,27 @@ function Kt({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
617
652
  }
618
653
  //#endregion
619
654
  //#region src/utils/logger.ts
620
- var qt = "[Templatical]";
621
- function Jt() {
655
+ var rn = "[Templatical]";
656
+ function an() {
622
657
  return typeof process < "u" && process.env.NODE_ENV === "production";
623
658
  }
624
- var Yt = {
659
+ var on = {
625
660
  warn(...e) {
626
- console.warn(qt, ...e);
661
+ console.warn(rn, ...e);
627
662
  },
628
663
  error(...e) {
629
- console.error(qt, ...e);
664
+ console.error(rn, ...e);
630
665
  },
631
666
  debug(...e) {
632
- Jt() || console.debug(qt, ...e);
667
+ an() || console.debug(rn, ...e);
633
668
  },
634
669
  info(...e) {
635
- Jt() || console.info(qt, ...e);
670
+ an() || console.info(rn, ...e);
636
671
  }
637
672
  };
638
673
  //#endregion
639
674
  //#region src/composables/useBlockRegistry.ts
640
- function Xt() {
675
+ function sn() {
641
676
  let e = d(/* @__PURE__ */ new Map());
642
677
  function t(t, n) {
643
678
  e.value.set(t, n), k(e);
@@ -645,7 +680,7 @@ function Xt() {
645
680
  function n(t, n) {
646
681
  let r = `custom:${t.type}`, i = {
647
682
  component: n,
648
- createBlock: () => je(t),
683
+ createBlock: () => Me(t),
649
684
  definition: t
650
685
  };
651
686
  e.value.set(r, i), k(e);
@@ -677,7 +712,7 @@ function Xt() {
677
712
  strictFilters: !1
678
713
  }).parseAndRender(t.template, e.fieldValues);
679
714
  } catch (t) {
680
- return Yt.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
715
+ return on.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
681
716
  }
682
717
  }
683
718
  function c(t) {
@@ -695,9 +730,9 @@ function Xt() {
695
730
  }
696
731
  //#endregion
697
732
  //#region src/composables/useCustomBlockStylesheets.ts
698
- function Zt(e, t) {
733
+ function cn(e, t) {
699
734
  return x(() => {
700
- let n = Qt(e.value.blocks);
735
+ let n = ln(e.value.blocks);
701
736
  if (n.size === 0) return [];
702
737
  let r = /* @__PURE__ */ new Set(), i = [];
703
738
  for (let e of n) {
@@ -709,33 +744,33 @@ function Zt(e, t) {
709
744
  return i;
710
745
  });
711
746
  }
712
- function Qt(e) {
747
+ function ln(e) {
713
748
  let t = /* @__PURE__ */ new Set();
714
- return $t(e, t), t;
749
+ return un(e, t), t;
715
750
  }
716
- function $t(e, t) {
751
+ function un(e, t) {
717
752
  for (let n of e) {
718
- if (de(n)) {
753
+ if (ue(n)) {
719
754
  t.add(n.customType);
720
755
  continue;
721
756
  }
722
757
  if (n.type === "section") {
723
758
  let e = n.children;
724
759
  if (!e) continue;
725
- for (let n of e) $t(n, t);
760
+ for (let n of e) un(n, t);
726
761
  }
727
762
  }
728
763
  }
729
764
  //#endregion
730
765
  //#region src/utils/registerBuiltInBlocks.ts
731
- var en = [
766
+ var dn = [
732
767
  {
733
768
  type: "section",
734
769
  createBlock: ge
735
770
  },
736
771
  {
737
772
  type: "title",
738
- createBlock: Ne
773
+ createBlock: Fe
739
774
  },
740
775
  {
741
776
  type: "paragraph",
@@ -759,7 +794,7 @@ var en = [
759
794
  },
760
795
  {
761
796
  type: "social",
762
- createBlock: Me
797
+ createBlock: Ne
763
798
  },
764
799
  {
765
800
  type: "menu",
@@ -771,7 +806,7 @@ var en = [
771
806
  },
772
807
  {
773
808
  type: "spacer",
774
- createBlock: Pe
809
+ createBlock: Ie
775
810
  },
776
811
  {
777
812
  type: "html",
@@ -782,8 +817,8 @@ var en = [
782
817
  createBlock: we
783
818
  }
784
819
  ];
785
- function tn(e, t) {
786
- for (let n of en) {
820
+ function fn(e, t) {
821
+ for (let n of dn) {
787
822
  let r = t[n.type];
788
823
  r && e.registerBuiltIn(n.type, {
789
824
  component: r,
@@ -793,7 +828,7 @@ function tn(e, t) {
793
828
  }
794
829
  //#endregion
795
830
  //#region src/utils/keyboardShortcuts.ts
796
- function nn(e) {
831
+ function pn(e) {
797
832
  for (let t of e.composedPath()) {
798
833
  if (!(t instanceof HTMLElement)) continue;
799
834
  if (t.isContentEditable) return !0;
@@ -802,14 +837,14 @@ function nn(e) {
802
837
  }
803
838
  return !1;
804
839
  }
805
- function rn(e, t) {
840
+ function mn(e, t) {
806
841
  let n = e.metaKey || e.ctrlKey;
807
842
  if (n && e.key.toLowerCase() === "s") {
808
843
  e.preventDefault(), t.onSave?.();
809
844
  return;
810
845
  }
811
846
  if (n && e.key.toLowerCase() === "z") {
812
- if (nn(e)) return;
847
+ if (pn(e)) return;
813
848
  e.preventDefault(), e.shiftKey ? t.history.redo() : (t.onBeforeUndo?.(), t.history.undo());
814
849
  return;
815
850
  }
@@ -817,11 +852,11 @@ function rn(e, t) {
817
852
  t.selectBlock(null);
818
853
  return;
819
854
  }
820
- (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !nn(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
855
+ (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !pn(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
821
856
  }
822
857
  //#endregion
823
858
  //#region src/components/blocks/ButtonBlock.vue?vue&type=script&setup=true&lang.ts
824
- var an = { class: "tpl:text-center" }, on = ["href"], sn = /* @__PURE__ */ y({
859
+ var hn = { class: "tpl:text-center" }, gn = ["href"], _n = /* @__PURE__ */ y({
825
860
  __name: "ButtonBlock",
826
861
  props: {
827
862
  block: {},
@@ -842,20 +877,17 @@ var an = { class: "tpl:text-center" }, on = ["href"], sn = /* @__PURE__ */ y({
842
877
  };
843
878
  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
879
  });
845
- return (n, i) => (e(), w("div", an, [C("a", {
880
+ return (n, i) => (e(), w("div", hn, [C("a", {
846
881
  href: t.block.url || "#",
847
882
  style: A(r.value),
848
883
  class: "tpl:cursor-default",
849
884
  onClick: i[0] ||= b(() => {}, ["prevent"])
850
- }, M(t.block.text), 13, on)]));
885
+ }, N(t.block.text), 13, gn)]));
851
886
  }
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", {
887
+ }), vn = I("bookmark", [["path", {
856
888
  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",
857
889
  key: "oz39mx"
858
- }]]), un = F("box", [
890
+ }]]), yn = I("box", [
859
891
  ["path", {
860
892
  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",
861
893
  key: "hh9hay"
@@ -868,13 +900,13 @@ var an = { class: "tpl:text-center" }, on = ["href"], sn = /* @__PURE__ */ y({
868
900
  d: "M12 22V12",
869
901
  key: "d0xqtd"
870
902
  }]
871
- ]), dn = F("code", [["path", {
903
+ ]), bn = I("code", [["path", {
872
904
  d: "m16 18 6-6-6-6",
873
905
  key: "eg8j8"
874
906
  }], ["path", {
875
907
  d: "m8 6-6 6 6 6",
876
908
  key: "ppft3o"
877
- }]]), fn = F("copy", [["rect", {
909
+ }]]), xn = I("copy", [["rect", {
878
910
  width: "14",
879
911
  height: "14",
880
912
  x: "8",
@@ -885,7 +917,7 @@ var an = { class: "tpl:text-center" }, on = ["href"], sn = /* @__PURE__ */ y({
885
917
  }], ["path", {
886
918
  d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
887
919
  key: "zix9uf"
888
- }]]), pn = F("eye-off", [
920
+ }]]), Sn = I("eye-off", [
889
921
  ["path", {
890
922
  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",
891
923
  key: "ct8e1f"
@@ -902,7 +934,10 @@ var an = { class: "tpl:text-center" }, on = ["href"], sn = /* @__PURE__ */ y({
902
934
  d: "m2 2 20 20",
903
935
  key: "1ooewy"
904
936
  }]
905
- ]), mn = F("grip-vertical", [
937
+ ]), Cn = I("funnel", [["path", {
938
+ 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",
939
+ key: "sc7q7i"
940
+ }]]), wn = I("grip-vertical", [
906
941
  ["circle", {
907
942
  cx: "9",
908
943
  cy: "12",
@@ -939,7 +974,7 @@ var an = { class: "tpl:text-center" }, on = ["href"], sn = /* @__PURE__ */ y({
939
974
  r: "1",
940
975
  key: "f4zoj3"
941
976
  }]
942
- ]), hn = F("image", [
977
+ ]), Tn = I("image", [
943
978
  ["rect", {
944
979
  width: "18",
945
980
  height: "18",
@@ -959,13 +994,13 @@ var an = { class: "tpl:text-center" }, on = ["href"], sn = /* @__PURE__ */ y({
959
994
  d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",
960
995
  key: "1xmnt7"
961
996
  }]
962
- ]), gn = F("navigation", [["polygon", {
997
+ ]), En = I("navigation", [["polygon", {
963
998
  points: "3 11 22 2 13 21 11 13 3 11",
964
999
  key: "1ltx0t"
965
- }]]), _n = F("puzzle", [["path", {
1000
+ }]]), Dn = I("puzzle", [["path", {
966
1001
  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
1002
  key: "w46dr5"
968
- }]]), vn = F("share-2", [
1003
+ }]]), On = I("share-2", [
969
1004
  ["circle", {
970
1005
  cx: "18",
971
1006
  cy: "5",
@@ -998,7 +1033,7 @@ var an = { class: "tpl:text-center" }, on = ["href"], sn = /* @__PURE__ */ y({
998
1033
  y2: "10.49",
999
1034
  key: "1n3mei"
1000
1035
  }]
1001
- ]), yn = F("table", [
1036
+ ]), kn = I("table", [
1002
1037
  ["path", {
1003
1038
  d: "M12 3v18",
1004
1039
  key: "108xh3"
@@ -1019,7 +1054,7 @@ var an = { class: "tpl:text-center" }, on = ["href"], sn = /* @__PURE__ */ y({
1019
1054
  d: "M3 15h18",
1020
1055
  key: "5xshup"
1021
1056
  }]
1022
- ]), bn = F("video", [["path", {
1057
+ ]), An = I("video", [["path", {
1023
1058
  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
1059
  key: "ftymec"
1025
1060
  }], ["rect", {
@@ -1029,11 +1064,11 @@ var an = { class: "tpl:text-center" }, on = ["href"], sn = /* @__PURE__ */ y({
1029
1064
  height: "12",
1030
1065
  rx: "2",
1031
1066
  key: "158x01"
1032
- }]]), xn = ["innerHTML"], Sn = [
1067
+ }]]), jn = ["innerHTML"], Mn = [
1033
1068
  "src",
1034
1069
  "width",
1035
1070
  "height"
1036
- ], Cn = /* @__PURE__ */ y({
1071
+ ], Nn = /* @__PURE__ */ y({
1037
1072
  __name: "CustomBlockIcon",
1038
1073
  props: {
1039
1074
  icon: {},
@@ -1049,14 +1084,14 @@ var an = { class: "tpl:text-center" }, on = ["href"], sn = /* @__PURE__ */ y({
1049
1084
  height: `${r.value}px`
1050
1085
  }),
1051
1086
  innerHTML: t.icon
1052
- }, null, 12, xn)) : a.value ? (e(), w("img", {
1087
+ }, null, 12, jn)) : a.value ? (e(), w("img", {
1053
1088
  key: 1,
1054
1089
  src: t.icon,
1055
1090
  width: r.value,
1056
1091
  height: r.value,
1057
1092
  class: "tpl:inline-block",
1058
1093
  alt: ""
1059
- }, null, 8, Sn)) : (e(), ne(j(un), {
1094
+ }, null, 8, Mn)) : (e(), j(M(yn), {
1060
1095
  key: 2,
1061
1096
  size: r.value,
1062
1097
  "stroke-width": 1.5
@@ -1065,16 +1100,16 @@ var an = { class: "tpl:text-center" }, on = ["href"], sn = /* @__PURE__ */ y({
1065
1100
  });
1066
1101
  //#endregion
1067
1102
  //#region src/composables/useEditorRoot.ts
1068
- function wn() {
1069
- return P(tt, document) ?? document;
1103
+ function Pn() {
1104
+ return F(lt, document) ?? document;
1070
1105
  }
1071
1106
  //#endregion
1072
1107
  //#region src/composables/useFocusTrap.ts
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;
1108
+ var Fn = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
1109
+ function In(e, t) {
1110
+ let n = Pn(), r = null, i = null, a = null;
1076
1111
  function o() {
1077
- return e.value ? Array.from(e.value.querySelectorAll(Tn)).filter((e) => e.offsetParent !== null) : [];
1112
+ return e.value ? Array.from(e.value.querySelectorAll(Fn)).filter((e) => e.offsetParent !== null) : [];
1078
1113
  }
1079
1114
  function c(e) {
1080
1115
  if (e.key !== "Tab") return;
@@ -1089,7 +1124,7 @@ function En(e, t) {
1089
1124
  a = null;
1090
1125
  let t = o();
1091
1126
  t.length > 0 && (e.value?.querySelector("[autofocus], input:not([disabled])") ?? t[0]).focus();
1092
- }), i = Be(e, "keydown", c);
1127
+ }), i = ze(e, "keydown", c);
1093
1128
  }
1094
1129
  function u(e = {}) {
1095
1130
  let t = e.restoreFocus !== !1;
@@ -1098,15 +1133,15 @@ function En(e, t) {
1098
1133
  let d = s([t, e], ([e, t]) => {
1099
1134
  e && t ? l() : u();
1100
1135
  }, { flush: "post" });
1101
- re(() => {
1136
+ ne(() => {
1102
1137
  d(), u();
1103
1138
  });
1104
1139
  }
1105
1140
  //#endregion
1106
1141
  //#region src/composables/useEmoji.ts
1107
- function Dn() {
1108
- let [e, t] = Le(!1), n = d([]), r = !1;
1109
- re(() => {
1142
+ function Ln() {
1143
+ let [e, t] = We(!1), n = d([]), r = !1;
1144
+ ne(() => {
1110
1145
  r = !0;
1111
1146
  }), s(e, async (e) => {
1112
1147
  if (e && n.value.length === 0) {
@@ -1130,7 +1165,7 @@ function Dn() {
1130
1165
  }
1131
1166
  //#endregion
1132
1167
  //#region src/composables/useDragDrop.ts
1133
- function On(e) {
1168
+ function Rn(e) {
1134
1169
  let { onBlockMove: t, onBlockAdd: n } = e, r = h(!1), i = h(null), a = h(null);
1135
1170
  function o(e) {
1136
1171
  r.value = !0, i.value = e;
@@ -1180,7 +1215,7 @@ function On(e) {
1180
1215
  }
1181
1216
  //#endregion
1182
1217
  //#region src/composables/useFonts.ts
1183
- var kn = [
1218
+ var zn = [
1184
1219
  {
1185
1220
  value: "Arial",
1186
1221
  label: "Arial"
@@ -1209,7 +1244,7 @@ var kn = [
1209
1244
  value: "Courier New",
1210
1245
  label: "Courier New"
1211
1246
  }
1212
- ], An = {
1247
+ ], Bn = {
1213
1248
  arial: "Arial, sans-serif",
1214
1249
  helvetica: "Helvetica, sans-serif",
1215
1250
  georgia: "Georgia, serif",
@@ -1217,14 +1252,14 @@ var kn = [
1217
1252
  verdana: "Verdana, sans-serif",
1218
1253
  "trebuchet ms": "'Trebuchet MS', sans-serif",
1219
1254
  "courier new": "'Courier New', monospace"
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);
1255
+ }, Vn = "Arial, sans-serif";
1256
+ function Hn(e) {
1257
+ let t = h(e?.customFonts ?? []), n = h(!0), r = h(!1), i = x(() => e?.defaultFallback ?? Vn);
1223
1258
  function a(e) {
1224
1259
  n.value = e;
1225
1260
  }
1226
1261
  let o = x(() => {
1227
- let e = [...kn];
1262
+ let e = [...zn];
1228
1263
  if (!n.value) return e.sort((e, t) => e.label.localeCompare(t.label));
1229
1264
  let r = t.value.map((e) => ({
1230
1265
  value: e.name,
@@ -1237,17 +1272,17 @@ function Mn(e) {
1237
1272
  return o.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
1238
1273
  }
1239
1274
  function c(e) {
1240
- return kn.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
1275
+ return zn.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
1241
1276
  }
1242
1277
  function l() {
1243
1278
  if (e?.defaultFont) {
1244
- if (!n.value && !c(e.defaultFont)) return jn;
1279
+ if (!n.value && !c(e.defaultFont)) return Vn;
1245
1280
  if (s(e.defaultFont)) {
1246
1281
  let t = o.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
1247
1282
  if (t) return t.value;
1248
1283
  }
1249
1284
  }
1250
- return jn;
1285
+ return Vn;
1251
1286
  }
1252
1287
  let u = x(() => l());
1253
1288
  function d(e) {
@@ -1257,7 +1292,7 @@ function Mn(e) {
1257
1292
  let e = n.fallback ?? i.value;
1258
1293
  return `'${n.name}', ${e}`;
1259
1294
  }
1260
- return An[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${i.value}`);
1295
+ return Bn[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${i.value}`);
1261
1296
  }
1262
1297
  let f = [], m = !1;
1263
1298
  async function g() {
@@ -1273,7 +1308,7 @@ function Mn(e) {
1273
1308
  t.onload = () => n(), t.onerror = () => r(/* @__PURE__ */ Error(`Failed to load font: ${e.name}`)), document.head.appendChild(t);
1274
1309
  });
1275
1310
  } catch (t) {
1276
- Yt.warn(`Failed to load custom font "${e.name}":`, t);
1311
+ on.warn(`Failed to load custom font "${e.name}":`, t);
1277
1312
  }
1278
1313
  });
1279
1314
  await Promise.allSettled(e), !m && (r.value = !0);
@@ -1282,7 +1317,7 @@ function Mn(e) {
1282
1317
  for (let e of f) e.remove();
1283
1318
  f.length = 0;
1284
1319
  }
1285
- return p() && re(() => {
1320
+ return p() && ne(() => {
1286
1321
  m = !0, _();
1287
1322
  }), {
1288
1323
  fonts: o,
@@ -1299,12 +1334,79 @@ function Mn(e) {
1299
1334
  };
1300
1335
  }
1301
1336
  //#endregion
1337
+ //#region src/composables/useLogicTag.ts
1338
+ function Un() {
1339
+ let e = F(at, []), t = F(xt, []), n = F(nt, ke.liquid), r = F(Je, null), i = F(bt, null), a = h(!1), o = !!r || e.length > 0 || t.length > 0, s = e.length > 0 || t.length > 0;
1340
+ async function c() {
1341
+ if (r) {
1342
+ a.value = !0;
1343
+ try {
1344
+ return await r();
1345
+ } finally {
1346
+ a.value = !1;
1347
+ }
1348
+ }
1349
+ if (i && s) {
1350
+ a.value = !0;
1351
+ try {
1352
+ return await i.open(e, t);
1353
+ } finally {
1354
+ a.value = !1;
1355
+ }
1356
+ }
1357
+ return null;
1358
+ }
1359
+ return {
1360
+ logicTags: e,
1361
+ logicPairs: t,
1362
+ syntax: n,
1363
+ canInsertLogicTag: o,
1364
+ isRequesting: a,
1365
+ requestLogicTag: c
1366
+ };
1367
+ }
1368
+ //#endregion
1369
+ //#region src/utils/mergeTagNodeSpec.ts
1370
+ function Wn(e, t, n) {
1371
+ return me(e, n) ? {
1372
+ type: "logicMergeTagNode",
1373
+ attrs: {
1374
+ value: e,
1375
+ keyword: Pe(e, n)
1376
+ }
1377
+ } : {
1378
+ type: "mergeTagNode",
1379
+ attrs: {
1380
+ label: t,
1381
+ value: e
1382
+ }
1383
+ };
1384
+ }
1385
+ //#endregion
1386
+ //#region src/utils/insertLogicTag.ts
1387
+ function Gn(e) {
1388
+ return "before" in e && "after" in e;
1389
+ }
1390
+ function Kn(e, t, n) {
1391
+ if (!Gn(t)) {
1392
+ e.chain().focus().insertContent(Wn(t.value, t.label, n)).run();
1393
+ return;
1394
+ }
1395
+ let r = Wn(t.before, t.label, n), i = Wn(t.after, t.label, n), { from: a, to: o } = e.state.selection;
1396
+ if (a !== o) {
1397
+ e.chain().focus().insertContentAt(o, i).insertContentAt(a, r).run();
1398
+ return;
1399
+ }
1400
+ e.chain().focus().insertContentAt(a, [r, i]).setTextSelection(a + 1).run();
1401
+ }
1402
+ //#endregion
1302
1403
  //#region src/composables/useRichTextLinkDialog.ts
1303
- function Nn(e) {
1404
+ function qn(e) {
1304
1405
  let t = h(!1), n = h(""), r = h(null);
1305
- En(r, t);
1406
+ In(r, t);
1306
1407
  function i() {
1307
- n.value = e.value?.getAttributes("link").href || "", t.value = !0;
1408
+ let r = e.value?.getAttributes("link").href || "";
1409
+ n.value = r, t.value = !0;
1308
1410
  }
1309
1411
  function a() {
1310
1412
  if (n.value) {
@@ -1353,20 +1455,20 @@ function Nn(e) {
1353
1455
  }
1354
1456
  //#endregion
1355
1457
  //#region src/composables/useRichTextEditor.ts
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
- async function te() {
1359
- O.value = null, D.value = !0;
1458
+ function Jn(e) {
1459
+ let t = F(ft, null), { mergeTags: r, canRequestMergeTag: i, isRequesting: o, requestMergeTag: c, syntax: l, autocomplete: u } = At(), { canInsertLogicTag: f, isRequesting: p, requestLogicTag: m } = Un(), g = F(Ye, null), _ = (a(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", v = de(l), y = d(null), { showLinkDialog: b, linkUrl: x, linkDialogRef: S, openLinkDialog: C, insertLink: w, removeLink: T, closeLinkDialog: E, handleLinkKeydown: ee } = qn(y), { start: D, stop: O } = Be(() => y.value?.commands.focus("end"), 0, { immediate: !1 }), k = d(null), te = h(!0), A = h(null), j = !1;
1460
+ async function ne() {
1461
+ A.value = null, te.value = !0;
1360
1462
  try {
1361
1463
  let { TiptapEditor: n, EC: i, extensions: a } = await e.loadExtensions({
1362
1464
  mergeTags: r,
1363
1465
  syntax: l,
1364
- triggerChar: m,
1466
+ triggerChar: v,
1365
1467
  autocompleteEnabled: u,
1366
- suggestionEmptyText: p
1468
+ suggestionEmptyText: _
1367
1469
  });
1368
- if (k) return;
1369
- ee.value = i;
1470
+ if (j) return;
1471
+ k.value = i;
1370
1472
  let o = /* @__PURE__ */ new Map();
1371
1473
  a.forEach((e, t) => o.set(e.name, t));
1372
1474
  let s = new n({
@@ -1374,88 +1476,95 @@ function Pn(e) {
1374
1476
  content: e.blockContent(),
1375
1477
  editable: !0,
1376
1478
  onUpdate: ({ editor: n }) => {
1377
- k || t && t.updateBlock(e.blockId(), { content: n.getHTML() });
1479
+ j || t && t.updateBlock(e.blockId(), { content: n.getHTML() });
1378
1480
  }
1379
1481
  });
1380
- if (k) {
1482
+ if (j) {
1381
1483
  s.destroy();
1382
1484
  return;
1383
1485
  }
1384
- g.value = s, D.value = !1, T();
1486
+ y.value = s, te.value = !1, D();
1385
1487
  } catch (t) {
1386
- if (k) return;
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;
1488
+ if (j) return;
1489
+ on.error(`[${e.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, t), A.value = t instanceof Error ? t.message : "Failed to load editor", te.value = !1;
1388
1490
  }
1389
1491
  }
1390
- function A() {
1391
- g.value?.destroy(), g.value = null, te();
1492
+ function M() {
1493
+ y.value?.destroy(), y.value = null, ne();
1392
1494
  }
1393
- te();
1394
- let ne = s(() => e.blockContent(), (e) => {
1395
- g.value && g.value.getHTML() !== e && g.value.commands.setContent(e, { emitUpdate: !1 });
1495
+ ne();
1496
+ let re = s(() => e.blockContent(), (e) => {
1497
+ y.value && y.value.getHTML() !== e && y.value.commands.setContent(e, { emitUpdate: !1 });
1396
1498
  });
1397
- function re(t) {
1398
- if (o.value) return;
1499
+ function N(t) {
1500
+ if (o.value || p.value) return;
1399
1501
  let n = t.composedPath().find((e) => e instanceof HTMLElement);
1400
1502
  n && (e.onClickOutsideSideEffect?.(n), !(n.closest(".tpl-text-editor-wrapper") || n.closest(".tpl-text-toolbar") || n.closest(".tpl-link-dialog")) && e.onDone());
1401
1503
  }
1402
- Be(document, "mousedown", re), n(() => {
1403
- k = !0, ne(), E(), g.value?.destroy();
1504
+ ze(document, "mousedown", N), n(() => {
1505
+ j = !0, re(), O(), y.value?.destroy();
1404
1506
  });
1405
- async function j() {
1507
+ async function ie() {
1406
1508
  let e = await c();
1407
- k || (e && g.value ? g.value.chain().focus().insertMergeTag({
1509
+ j || (e && y.value ? y.value.chain().focus().insertMergeTag({
1408
1510
  label: e.label,
1409
1511
  value: e.value
1410
- }).run() : g.value?.commands.focus());
1512
+ }).run() : y.value?.commands.focus());
1513
+ }
1514
+ async function P() {
1515
+ let e = await m();
1516
+ j || (e && y.value ? Kn(y.value, e, l) : y.value?.commands.focus());
1411
1517
  }
1412
1518
  return {
1413
- editor: g,
1414
- EditorContent: ee,
1415
- isLoading: D,
1416
- initError: O,
1417
- retry: A,
1418
- showLinkDialog: _,
1419
- linkUrl: v,
1420
- linkDialogRef: y,
1519
+ editor: y,
1520
+ EditorContent: k,
1521
+ isLoading: te,
1522
+ initError: A,
1523
+ retry: M,
1524
+ showLinkDialog: b,
1525
+ linkUrl: x,
1526
+ linkDialogRef: S,
1421
1527
  mergeTags: r,
1422
1528
  canRequestMergeTag: i,
1423
1529
  isRequestingMergeTag: o,
1424
1530
  syntax: l,
1425
- openLinkDialog: b,
1426
- insertLink: x,
1427
- removeLink: S,
1428
- closeLinkDialog: C,
1429
- handleLinkKeydown: w,
1430
- handleAddMergeTag: j
1531
+ canInsertLogicTag: f,
1532
+ isRequestingLogicTag: p,
1533
+ openLinkDialog: C,
1534
+ insertLink: w,
1535
+ removeLink: T,
1536
+ closeLinkDialog: E,
1537
+ handleLinkKeydown: ee,
1538
+ handleAddMergeTag: ie,
1539
+ handleAddLogicTag: P
1431
1540
  };
1432
1541
  }
1433
1542
  //#endregion
1434
1543
  //#region src/composables/useSmallScreenNotice.ts
1435
- var Fn = "(max-width: 767px)";
1436
- function In(e) {
1437
- let t = Ie(Fn);
1544
+ var Yn = "(max-width: 767px)";
1545
+ function Xn(e) {
1546
+ let t = Le(Yn);
1438
1547
  return {
1439
1548
  isSmallScreen: t,
1440
- showNotice: x(() => (ae(e) ?? !0) && t.value)
1549
+ showNotice: x(() => (ie(e) ?? !0) && t.value)
1441
1550
  };
1442
1551
  }
1443
1552
  //#endregion
1444
1553
  //#region src/components/blocks/CustomBlock.vue?vue&type=script&setup=true&lang.ts
1445
- var Ln = { class: "tpl:w-full" }, Rn = {
1554
+ var Zn = { class: "tpl:w-full" }, Qn = {
1446
1555
  key: 0,
1447
1556
  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)]"
1448
- }, zn = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Bn = {
1557
+ }, $n = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, er = {
1449
1558
  key: 1,
1450
1559
  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)]"
1451
- }, Vn = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Hn = {
1560
+ }, tr = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, nr = {
1452
1561
  key: 2,
1453
1562
  class: "tpl:relative"
1454
- }, Un = ["innerHTML"], Wn = {
1563
+ }, rr = ["innerHTML"], ir = {
1455
1564
  key: 0,
1456
1565
  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]",
1457
1566
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
1458
- }, Gn = /* @__PURE__ */ y({
1567
+ }, ar = /* @__PURE__ */ y({
1459
1568
  __name: "CustomBlock",
1460
1569
  props: {
1461
1570
  block: {},
@@ -1463,7 +1572,7 @@ var Ln = { class: "tpl:w-full" }, Rn = {
1463
1572
  },
1464
1573
  emits: ["fetchData"],
1465
1574
  setup(t, { emit: n }) {
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({
1575
+ let r = t, i = n, { t: a } = St(), o = F(mt, 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 } = Ht({
1467
1576
  definition: d,
1468
1577
  block: x(() => r.block),
1469
1578
  onUpdate: (e, t) => {
@@ -1484,32 +1593,32 @@ var Ln = { class: "tpl:w-full" }, Rn = {
1484
1593
  }
1485
1594
  }
1486
1595
  }
1487
- let S = ze(y, 150);
1596
+ let S = Ue(y, 150);
1488
1597
  return u(() => {
1489
1598
  y();
1490
1599
  }), s(() => r.block.fieldValues, () => {
1491
1600
  S();
1492
- }, { deep: !0 }), (t, n) => (e(), w("div", Ln, [f.value ? l.value ? (e(), w("div", Bn, [N(j(gt), {
1601
+ }, { deep: !0 }), (t, n) => (e(), w("div", Zn, [f.value ? l.value ? (e(), w("div", er, [P(M(Et), {
1493
1602
  size: 24,
1494
1603
  class: "tpl:text-[var(--tpl-danger)]"
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, {
1604
+ }), C("span", tr, N(M(a).customBlocks.renderError), 1)])) : (e(), w("div", nr, [C("div", { innerHTML: c.value }, null, 8, rr), M(v) && M(g) ? (e(), w("div", ir, [M(p) ? (e(), j(Ot, {
1496
1605
  key: 1,
1497
1606
  class: "tpl:w-48"
1498
1607
  })) : (e(), w("button", {
1499
1608
  key: 0,
1500
1609
  type: "button",
1501
1610
  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)]",
1502
- onClick: n[0] ||= b((...e) => j(m) && j(m)(...e), ["stop"])
1503
- }, [d.value?.icon ? (e(), ne(Cn, {
1611
+ onClick: n[0] ||= b((...e) => M(m) && M(m)(...e), ["stop"])
1612
+ }, [d.value?.icon ? (e(), j(Nn, {
1504
1613
  key: 0,
1505
1614
  icon: d.value.icon,
1506
1615
  size: 16
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), {
1616
+ }, null, 8, ["icon"])) : O("", !0), _(" " + N(d.value?.dataSource?.label || M(a).customBlocks.dataSource.fetchButton), 1)]))])) : O("", !0)])) : (e(), w("div", Qn, [P(M(Dn), {
1508
1617
  size: 24,
1509
1618
  class: "tpl:text-[var(--tpl-warning)]"
1510
- }), C("span", zn, M(j(a).customBlocks.definitionNotFound), 1)]))]));
1619
+ }), C("span", $n, N(M(a).customBlocks.definitionNotFound), 1)]))]));
1511
1620
  }
1512
- }), Kn = { class: "tpl:w-full" }, qn = /* @__PURE__ */ y({
1621
+ }), or = { class: "tpl:w-full" }, sr = /* @__PURE__ */ y({
1513
1622
  __name: "DividerBlock",
1514
1623
  props: {
1515
1624
  block: {},
@@ -1521,37 +1630,55 @@ var Ln = { class: "tpl:w-full" }, Rn = {
1521
1630
  width: n.block.width === "full" ? "100%" : `${n.block.width}px`,
1522
1631
  margin: n.block.width === "full" ? "0" : "0 auto"
1523
1632
  }));
1524
- return (t, n) => (e(), w("div", Kn, [C("hr", {
1633
+ return (t, n) => (e(), w("div", or, [C("hr", {
1525
1634
  class: "tpl:m-0 tpl:border-none",
1526
1635
  style: A(r.value)
1527
1636
  }, null, 4)]));
1528
1637
  }
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 = {
1638
+ }), cr = { class: "tpl:w-full" }, lr = { 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)]" }, ur = {
1530
1639
  key: 0,
1531
1640
  class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
1532
- }, Zn = {
1641
+ }, dr = {
1533
1642
  key: 1,
1534
1643
  class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
1535
- }, Qn = /* @__PURE__ */ y({
1644
+ }, fr = /* @__PURE__ */ y({
1536
1645
  __name: "HtmlBlock",
1537
1646
  props: {
1538
1647
  block: {},
1539
1648
  viewport: {}
1540
1649
  },
1541
1650
  setup(t) {
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), {
1651
+ let n = t, { t: r } = St(), i = x(() => n.block.content.trim().length > 0);
1652
+ return (t, n) => (e(), w("div", cr, [C("div", lr, [P(M(bn), {
1544
1653
  size: 24,
1545
1654
  class: "tpl:text-[var(--tpl-text-dim)]"
1546
- }), i.value ? (e(), w("span", Xn, M(j(r).html.preview), 1)) : (e(), w("span", Zn, M(j(r).html.empty), 1))])]));
1547
- }
1548
- }), $n = ["href"], er = ["src", "alt"], tr = ["src", "alt"], nr = {
1655
+ }), i.value ? (e(), w("span", ur, N(M(r).html.preview), 1)) : (e(), w("span", dr, N(M(r).html.empty), 1))])]));
1656
+ }
1657
+ }), pr = "image/";
1658
+ function mr(e) {
1659
+ let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 ? !0 : ie(r), { isOverDropZone: a } = Ve(t, {
1660
+ preventDefaultForUnhandled: !0,
1661
+ onDrop: (e) => {
1662
+ if (!i()) return;
1663
+ let t = (e ?? []).filter((e) => e.type.startsWith(pr));
1664
+ t.length > 0 && n([t[0]]);
1665
+ }
1666
+ });
1667
+ return { isOver: x(() => i() && a.value) };
1668
+ }
1669
+ //#endregion
1670
+ //#region src/components/blocks/ImageBlock.vue?vue&type=script&setup=true&lang.ts
1671
+ var hr = {
1672
+ key: 0,
1673
+ class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-10 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-xs tpl:font-medium tpl:border-[var(--tpl-primary)] tpl:text-[var(--tpl-primary)]",
1674
+ style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 85%, transparent)" }
1675
+ }, gr = ["href"], _r = ["src", "alt"], vr = ["src", "alt"], yr = {
1549
1676
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
1550
1677
  style: { opacity: "0.7" }
1551
- }, rr = ["href"], ir = ["src", "alt"], ar = ["src", "alt"], or = {
1552
- key: 3,
1678
+ }, br = ["href"], xr = ["src", "alt"], Sr = ["src", "alt"], Cr = {
1679
+ key: 4,
1553
1680
  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)]"
1554
- }, sr = ["aria-label"], cr = { key: 1 }, lr = /* @__PURE__ */ y({
1681
+ }, wr = ["aria-label"], Tr = { key: 1 }, Er = /* @__PURE__ */ y({
1555
1682
  __name: "ImageBlock",
1556
1683
  props: {
1557
1684
  block: {},
@@ -1559,7 +1686,7 @@ var Ln = { class: "tpl:w-full" }, Rn = {
1559
1686
  },
1560
1687
  emits: ["update"],
1561
1688
  setup(t, { emit: n }) {
1562
- let r = t, i = n, { t: a } = ht(), { syntax: o } = xt(), s = P(Ue, null), c = x(() => !!s), l = St();
1689
+ let r = t, i = n, { t: a } = St(), { syntax: o } = At(), s = F(qe, null), c = x(() => !!s), l = jt();
1563
1690
  async function u() {
1564
1691
  let e = await s?.({ accept: ["images"] });
1565
1692
  if (l.alive && e) {
@@ -1567,7 +1694,30 @@ var Ln = { class: "tpl:w-full" }, Rn = {
1567
1694
  e.alt && (t.alt = e.alt), i("update", t);
1568
1695
  }
1569
1696
  }
1570
- let d = x(() => ({ textAlign: r.block.align })), f = x(() => {
1697
+ let d = h(), f = h(!1), p = x(() => c.value && !f.value && !S.value);
1698
+ async function m(e) {
1699
+ if (s) {
1700
+ f.value = !0;
1701
+ try {
1702
+ let t = await s({
1703
+ accept: ["images"],
1704
+ files: e
1705
+ });
1706
+ if (!l.alive) return;
1707
+ if (t) {
1708
+ let e = { src: t.url };
1709
+ t.alt && (e.alt = t.alt), i("update", e);
1710
+ }
1711
+ } finally {
1712
+ l.alive && (f.value = !1);
1713
+ }
1714
+ }
1715
+ }
1716
+ let { isOver: g } = mr({
1717
+ target: d,
1718
+ enabled: p,
1719
+ onFiles: m
1720
+ }), v = x(() => ({ textAlign: r.block.align })), y = x(() => {
1571
1721
  let e = r.block.align;
1572
1722
  return {
1573
1723
  maxWidth: "100%",
@@ -1576,11 +1726,21 @@ var Ln = { class: "tpl:w-full" }, Rn = {
1576
1726
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
1577
1727
  marginRight: e === "center" ? "auto" : void 0
1578
1728
  };
1579
- }), p = x(() => De(r.block.src, o));
1729
+ }), S = x(() => De(r.block.src, o));
1580
1730
  return (n, r) => (e(), w("div", {
1581
- class: "tpl:w-full",
1582
- style: A(d.value)
1583
- }, [t.block.src && p.value && t.block.placeholderUrl ? (e(), w(D, { key: 0 }, [t.block.linkUrl ? (e(), w("a", {
1731
+ ref_key: "dropZoneRef",
1732
+ ref: d,
1733
+ "data-testid": "image-drop-zone",
1734
+ class: "tpl:relative tpl:w-full",
1735
+ style: A(v.value)
1736
+ }, [p.value && (M(g) || f.value) ? (e(), w("div", hr, [f.value ? (e(), w(D, { key: 0 }, [P(M(Ct), {
1737
+ class: "tpl-spinner",
1738
+ size: 20,
1739
+ "stroke-width": 2
1740
+ }), _(" " + N(M(a).image.uploading), 1)], 64)) : (e(), w(D, { key: 1 }, [P(M(Dt), {
1741
+ size: 20,
1742
+ "stroke-width": 1.5
1743
+ }), _(" " + N(M(a).image.dropToUpload), 1)], 64))])) : O("", !0), t.block.src && S.value && t.block.placeholderUrl ? (e(), w(D, { key: 1 }, [t.block.linkUrl ? (e(), w("a", {
1584
1744
  key: 0,
1585
1745
  href: t.block.linkUrl,
1586
1746
  target: "_blank",
@@ -1590,24 +1750,24 @@ var Ln = { class: "tpl:w-full" }, Rn = {
1590
1750
  class: "tpl:border-0",
1591
1751
  loading: "lazy",
1592
1752
  src: t.block.placeholderUrl,
1593
- alt: t.block.alt || j(a).image.altTextPlaceholder,
1594
- style: A(f.value)
1595
- }, null, 12, er)], 8, $n)) : (e(), w("img", {
1753
+ alt: t.block.alt || M(a).image.altTextPlaceholder,
1754
+ style: A(y.value)
1755
+ }, null, 12, _r)], 8, gr)) : (e(), w("img", {
1596
1756
  key: 1,
1597
1757
  class: "tpl:border-0",
1598
1758
  src: t.block.placeholderUrl,
1599
1759
  alt: t.block.alt,
1600
- style: A(f.value)
1601
- }, null, 12, tr))], 64)) : t.block.src && p.value ? (e(), w("div", {
1602
- key: 1,
1760
+ style: A(y.value)
1761
+ }, null, 12, vr))], 64)) : t.block.src && S.value ? (e(), w("div", {
1762
+ key: 2,
1603
1763
  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)]",
1604
- style: A([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, f.value])
1605
- }, [N(j(hn), {
1764
+ style: A([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, y.value])
1765
+ }, [P(M(Tn), {
1606
1766
  size: 32,
1607
1767
  "stroke-width": 1.5,
1608
1768
  class: "tpl:text-[var(--tpl-primary)]",
1609
1769
  style: { opacity: "0.5" }
1610
- }), C("span", nr, M(t.block.src), 1)], 4)) : t.block.src ? (e(), w(D, { key: 2 }, [t.block.linkUrl ? (e(), w("a", {
1770
+ }), C("span", yr, N(t.block.src), 1)], 4)) : t.block.src ? (e(), w(D, { key: 3 }, [t.block.linkUrl ? (e(), w("a", {
1611
1771
  key: 0,
1612
1772
  href: t.block.linkUrl,
1613
1773
  target: "_blank",
@@ -1617,35 +1777,35 @@ var Ln = { class: "tpl:w-full" }, Rn = {
1617
1777
  class: "tpl:border-0",
1618
1778
  loading: "lazy",
1619
1779
  src: t.block.src,
1620
- alt: t.block.alt || j(a).image.altTextPlaceholder,
1621
- style: A(f.value)
1622
- }, null, 12, ir)], 8, rr)) : (e(), w("img", {
1780
+ alt: t.block.alt || M(a).image.altTextPlaceholder,
1781
+ style: A(y.value)
1782
+ }, null, 12, xr)], 8, br)) : (e(), w("img", {
1623
1783
  key: 1,
1624
1784
  class: "tpl:border-0",
1625
1785
  src: t.block.src,
1626
1786
  alt: t.block.alt,
1627
- style: A(f.value)
1628
- }, null, 12, ar))], 64)) : (e(), w("div", or, [c.value ? (e(), w("button", {
1787
+ style: A(y.value)
1788
+ }, null, 12, Sr))], 64)) : (e(), w("div", Cr, [c.value ? (e(), w("button", {
1629
1789
  key: 0,
1630
- "aria-label": j(a).image.browseMedia,
1790
+ "aria-label": M(a).image.browseMedia,
1631
1791
  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)]",
1632
1792
  onClick: b(u, ["stop"])
1633
- }, [N(j(hn), {
1793
+ }, [P(M(Tn), {
1634
1794
  size: 14,
1635
1795
  "stroke-width": 1.5
1636
- }), _(" " + M(j(a).image.browseMedia), 1)], 8, sr)) : (e(), w("span", cr, M(j(a).image.clickToAdd), 1))]))], 4));
1796
+ }), _(" " + N(M(a).image.browseMedia), 1)], 8, wr)) : (e(), w("span", Tr, N(M(a).image.clickToAdd), 1))]))], 4));
1637
1797
  }
1638
- }), ur = { class: "tpl:w-full" }, dr = ["href"], fr = {
1798
+ }), Dr = { class: "tpl:w-full" }, Or = ["href"], kr = {
1639
1799
  key: 1,
1640
1800
  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)]"
1641
- }, pr = /* @__PURE__ */ y({
1801
+ }, Ar = /* @__PURE__ */ y({
1642
1802
  __name: "MenuBlock",
1643
1803
  props: {
1644
1804
  block: {},
1645
1805
  viewport: {}
1646
1806
  },
1647
1807
  setup(t) {
1648
- let n = t, { t: r } = ht(), i = x(() => ({
1808
+ let n = t, { t: r } = St(), i = x(() => ({
1649
1809
  display: "flex",
1650
1810
  flexWrap: "wrap",
1651
1811
  gap: `0 ${n.block.spacing}px`,
@@ -1657,7 +1817,7 @@ var Ln = { class: "tpl:w-full" }, Rn = {
1657
1817
  function o(e) {
1658
1818
  return e || n.block.linkColor || n.block.color;
1659
1819
  }
1660
- return (n, s) => (e(), w("div", ur, [a.value ? (e(), w("div", {
1820
+ return (n, s) => (e(), w("div", Dr, [a.value ? (e(), w("div", {
1661
1821
  key: 0,
1662
1822
  style: A(i.value)
1663
1823
  }, [(e(!0), w(D, null, c(t.block.items, (n, r) => (e(), w(D, { key: n.id }, [C("a", {
@@ -1669,15 +1829,15 @@ var Ln = { class: "tpl:w-full" }, Rn = {
1669
1829
  textDecoration: n.underline ? "underline" : "none"
1670
1830
  }),
1671
1831
  onClick: s[0] ||= b(() => {}, ["prevent"])
1672
- }, M(n.text || "..."), 13, dr), r < t.block.items.length - 1 ? (e(), w("span", {
1832
+ }, N(n.text || "..."), 13, Or), r < t.block.items.length - 1 ? (e(), w("span", {
1673
1833
  key: 0,
1674
1834
  style: A({
1675
1835
  color: t.block.separatorColor,
1676
1836
  padding: `0 ${t.block.spacing}px`
1677
1837
  })
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)]))]));
1838
+ }, N(t.block.separator), 5)) : O("", !0)], 64))), 128))], 4)) : (e(), w("div", kr, [P(M(En), { size: 16 }), C("span", null, N(M(r).menu.addLinks), 1)]))]));
1679
1839
  }
1680
- }), mr = /* @__PURE__ */ new Set([
1840
+ }), jr = /* @__PURE__ */ new Set([
1681
1841
  "http",
1682
1842
  "https",
1683
1843
  "mailto",
@@ -1687,7 +1847,7 @@ var Ln = { class: "tpl:w-full" }, Rn = {
1687
1847
  "sms",
1688
1848
  "xmpp",
1689
1849
  "cid"
1690
- ]), hr = /* @__PURE__ */ new Set([
1850
+ ]), Mr = /* @__PURE__ */ new Set([
1691
1851
  "SCRIPT",
1692
1852
  "STYLE",
1693
1853
  "IFRAME",
@@ -1697,7 +1857,7 @@ var Ln = { class: "tpl:w-full" }, Rn = {
1697
1857
  "META",
1698
1858
  "BASE",
1699
1859
  "FORM"
1700
- ]), gr = /* @__PURE__ */ new Set([
1860
+ ]), Nr = /* @__PURE__ */ new Set([
1701
1861
  "href",
1702
1862
  "xlink:href",
1703
1863
  "formaction",
@@ -1706,16 +1866,16 @@ var Ln = { class: "tpl:w-full" }, Rn = {
1706
1866
  "background",
1707
1867
  "poster"
1708
1868
  ]);
1709
- function _r(e, t) {
1869
+ function Pr(e, t) {
1710
1870
  let n = e.replace(/[\t\n\r]/g, "").replace(/^[\u0000-\u0020]+/, "").trimEnd();
1711
1871
  if (!n || n.startsWith("#")) return !0;
1712
1872
  let r = /^([a-z][a-z0-9+.-]*):/i.exec(n);
1713
1873
  if (!r) return !0;
1714
1874
  let i = r[1].toLowerCase();
1715
- return mr.has(i) ? !0 : t && i === "data" ? /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i.test(n) : !1;
1875
+ return jr.has(i) ? !0 : t && i === "data" ? /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i.test(n) : !1;
1716
1876
  }
1717
- function vr(e) {
1718
- if (hr.has(e.tagName)) {
1877
+ function Fr(e) {
1878
+ if (Mr.has(e.tagName)) {
1719
1879
  e.remove();
1720
1880
  return;
1721
1881
  }
@@ -1727,29 +1887,29 @@ function vr(e) {
1727
1887
  e.removeAttribute(n);
1728
1888
  continue;
1729
1889
  }
1730
- if (gr.has(t)) {
1731
- _r(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n);
1890
+ if (Nr.has(t)) {
1891
+ Pr(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n);
1732
1892
  continue;
1733
1893
  }
1734
1894
  if (t === "src") {
1735
- _r(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n);
1895
+ Pr(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n);
1736
1896
  continue;
1737
1897
  }
1738
1898
  t === "srcdoc" && e.removeAttribute(n);
1739
1899
  }
1740
1900
  let n = Array.from(e.children);
1741
- for (let e of n) vr(e);
1901
+ for (let e of n) Fr(e);
1742
1902
  }
1743
- function yr(e) {
1903
+ function Ir(e) {
1744
1904
  if (typeof DOMParser > "u") return e;
1745
1905
  let t = new DOMParser().parseFromString(`<!doctype html><body>${e}</body>`, "text/html").body, n = Array.from(t.children);
1746
- for (let e of n) vr(e);
1906
+ for (let e of n) Fr(e);
1747
1907
  return t.innerHTML;
1748
1908
  }
1749
1909
  //#endregion
1750
1910
  //#region src/composables/useEditableTextBlock.ts
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(() => ({
1911
+ function Lr(e) {
1912
+ let t = F(tt, []), { syntax: n } = At(), r = x(() => Ir(ce(Ce(e(), t), n))), i = h(!1), a = h(null), { top: o, left: s } = He(a), c = x(() => ({
1753
1913
  top: o.value - 8,
1754
1914
  left: s.value
1755
1915
  }));
@@ -1770,24 +1930,24 @@ function br(e) {
1770
1930
  }
1771
1931
  //#endregion
1772
1932
  //#region src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
1773
- var xr = ["innerHTML"], Sr = /* @__PURE__ */ y({
1933
+ var Rr = ["innerHTML"], zr = /* @__PURE__ */ y({
1774
1934
  __name: "ParagraphBlock",
1775
1935
  props: {
1776
1936
  block: {},
1777
1937
  viewport: {}
1778
1938
  },
1779
1939
  setup(t) {
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);
1940
+ let n = t, r = oe(() => import("./ParagraphEditor-DMzkVnST.js")), { isEditing: i, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = Lr(() => n.block.content);
1781
1941
  return (n, u) => (e(), w("div", {
1782
1942
  ref_key: "blockRef",
1783
1943
  ref: a,
1784
1944
  class: "tpl:min-h-[1em] tpl:w-full",
1785
- onDblclick: u[0] ||= (...e) => j(c) && j(c)(...e)
1786
- }, [j(i) ? (e(), ne(j(r), {
1945
+ onDblclick: u[0] ||= (...e) => M(c) && M(c)(...e)
1946
+ }, [M(i) ? (e(), j(M(r), {
1787
1947
  key: 0,
1788
1948
  block: t.block,
1789
- "toolbar-position": j(o),
1790
- onDone: j(l)
1949
+ "toolbar-position": M(o),
1950
+ onDone: M(l)
1791
1951
  }, null, 8, [
1792
1952
  "block",
1793
1953
  "toolbar-position",
@@ -1795,42 +1955,47 @@ var xr = ["innerHTML"], Sr = /* @__PURE__ */ y({
1795
1955
  ])) : (e(), w("div", {
1796
1956
  key: 1,
1797
1957
  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",
1798
- innerHTML: j(s)
1799
- }, null, 8, xr))], 544));
1958
+ innerHTML: M(s)
1959
+ }, null, 8, Rr))], 544));
1800
1960
  }
1801
1961
  });
1802
1962
  //#endregion
1803
1963
  //#region src/utils/blockComponentResolver.ts
1804
- function Cr(e, t, n) {
1964
+ function Br(e, t, n) {
1805
1965
  if (t) {
1806
1966
  let n = t.getComponent(e);
1807
1967
  if (n) return n;
1808
1968
  }
1809
1969
  return n[e.type] ?? null;
1810
1970
  }
1811
- function wr(e) {
1812
- let { padding: t, backgroundColor: n } = e.styles;
1813
- return {
1971
+ function Vr(e) {
1972
+ let { padding: t, backgroundColor: n } = e.styles, r = {
1814
1973
  padding: `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`,
1815
1974
  backgroundColor: n || "transparent"
1816
1975
  };
1976
+ return e.type === "section" && e.borderRadius && e.borderRadius > 0 && (r.borderRadius = `${e.borderRadius}px`), r;
1977
+ }
1978
+ function Hr(e) {
1979
+ if (e.type !== "section" || !e.wrapper) return null;
1980
+ let t = e.wrapper, n = {};
1981
+ return t.backgroundColor && (n.backgroundColor = t.backgroundColor), t.padding && (n.padding = `${t.padding.top}px ${t.padding.right}px ${t.padding.bottom}px ${t.padding.left}px`), t.borderRadius && t.borderRadius > 0 && (n.borderRadius = `${t.borderRadius}px`), n;
1817
1982
  }
1818
1983
  //#endregion
1819
1984
  //#region src/components/blocks/BlockWrapper.vue?vue&type=script&setup=true&lang.ts
1820
- var Tr = ["data-block-id", "data-block-type"], Er = ["aria-label"], Dr = [
1985
+ var Ur = ["data-block-id", "data-block-type"], Wr = ["aria-label"], Gr = [
1821
1986
  "aria-label",
1822
1987
  "aria-pressed",
1823
1988
  "title"
1824
- ], Or = ["aria-label", "title"], kr = ["aria-label", "title"], Ar = ["aria-label", "title"], jr = {
1989
+ ], Kr = ["aria-label", "title"], qr = ["aria-label", "title"], Jr = ["aria-label", "title"], Yr = {
1825
1990
  key: 1,
1826
1991
  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"
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 = {
1992
+ }, Xr = { 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)]" }, Zr = {
1828
1993
  key: 2,
1829
1994
  class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
1830
- }, Pr = ["aria-label", "title"], Fr = {
1995
+ }, Qr = ["aria-label", "title"], $r = {
1831
1996
  key: 3,
1832
1997
  class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
1833
- }, Ir = ["aria-label"], Lr = /*#__PURE__*/ bt(/* @__PURE__ */ y({
1998
+ }, ei = ["aria-label"], ti = /*#__PURE__*/ kt(/* @__PURE__ */ y({
1834
1999
  __name: "BlockWrapper",
1835
2000
  props: {
1836
2001
  block: {},
@@ -1840,7 +2005,7 @@ var Tr = ["data-block-id", "data-block-type"], Er = ["aria-label"], Dr = [
1840
2005
  },
1841
2006
  emits: ["select"],
1842
2007
  setup(t, { emit: n }) {
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);
2008
+ let i = oe(() => import("./BlockIssueBadge-a-qlByxF.js")), a = t, o = n, { t: s, format: c } = St(), u = F(vt, 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);
1844
2009
  async function m() {
1845
2010
  await r(), d.value?.focus();
1846
2011
  }
@@ -1866,20 +2031,20 @@ var Tr = ["data-block-id", "data-block-type"], Er = ["aria-label"], Dr = [
1866
2031
  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 ? {
1867
2032
  desktop: s.viewport.desktop,
1868
2033
  mobile: s.viewport.mobile
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);
1871
- return {
2034
+ }[a.viewport] ?? a.viewport : ""), E = x(() => !!a.block.displayCondition), ee = F(ut, null), D = F(_t, null), k = F(gt, {}), te = x(() => !!k.savedModules), j = x(() => k.comments?.getBlockCount(a.block.id) ?? 0), ne = x(() => {
2035
+ let e = Vr(a.block), t = {
1872
2036
  padding: e.padding,
1873
2037
  backgroundColor: e.backgroundColor
1874
2038
  };
1875
- });
2039
+ return e.borderRadius && (t.borderRadius = e.borderRadius), t;
2040
+ }), re = x(() => Hr(a.block));
1876
2041
  function ie(e) {
1877
2042
  a.previewMode || (e.stopPropagation(), o("select"));
1878
2043
  }
1879
2044
  function ae() {
1880
2045
  ee?.deleteBlock(a.block.id);
1881
2046
  }
1882
- function oe() {
2047
+ function se() {
1883
2048
  ee?.duplicateBlock(a.block);
1884
2049
  }
1885
2050
  function ce() {
@@ -1899,11 +2064,11 @@ var Tr = ["data-block-id", "data-block-type"], Er = ["aria-label"], Dr = [
1899
2064
  "data-block-type": t.block.type,
1900
2065
  onClick: ie
1901
2066
  }, [
1902
- N(j(i), { "block-id": t.block.id }, null, 8, ["block-id"]),
2067
+ P(M(i), { "block-id": t.block.id }, null, 8, ["block-id"]),
1903
2068
  t.isSelected ? (e(), w("div", {
1904
2069
  key: 0,
1905
2070
  role: "toolbar",
1906
- "aria-label": j(s).blockActions.drag,
2071
+ "aria-label": M(s).blockActions.drag,
1907
2072
  class: "tpl-block-actions tpl-fade-in tpl:absolute tpl:-right-2 tpl:top-1/2 tpl:z-10 tpl:flex tpl:-translate-y-1/2 tpl:translate-x-full tpl:gap-0.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1 tpl:bg-[var(--tpl-bg-elevated)] tpl:shadow-[var(--tpl-shadow-md)] tpl:border tpl:border-[var(--tpl-border)]"
1908
2073
  }, [
1909
2074
  C("button", {
@@ -1913,191 +2078,207 @@ var Tr = ["data-block-id", "data-block-type"], Er = ["aria-label"], Dr = [
1913
2078
  "aria-label": p.value,
1914
2079
  "aria-pressed": f.value,
1915
2080
  "aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
1916
- title: j(s).blockActions.drag,
2081
+ title: M(s).blockActions.drag,
1917
2082
  onKeydown: g
1918
- }, [N(j(mn), {
2083
+ }, [P(M(wn), {
1919
2084
  size: 14,
1920
2085
  "stroke-width": 1.5
1921
- })], 40, Dr),
2086
+ })], 40, Gr),
1922
2087
  C("button", {
1923
2088
  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
- "aria-label": j(s).blockActions.duplicate,
1925
- title: j(s).blockActions.duplicate,
1926
- onClick: b(oe, ["stop"])
1927
- }, [N(j(fn), {
2089
+ "aria-label": M(s).blockActions.duplicate,
2090
+ title: M(s).blockActions.duplicate,
2091
+ onClick: b(se, ["stop"])
2092
+ }, [P(M(xn), {
1928
2093
  size: 14,
1929
2094
  "stroke-width": 1.5
1930
- })], 8, Or),
2095
+ })], 8, Kr),
1931
2096
  te.value ? (e(), w("button", {
1932
2097
  key: 0,
1933
2098
  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",
1934
- "aria-label": j(s).blockActions.saveAsModule,
1935
- title: j(s).blockActions.saveAsModule,
2099
+ "aria-label": M(s).blockActions.saveAsModule,
2100
+ title: M(s).blockActions.saveAsModule,
1936
2101
  onClick: b(ce, ["stop"])
1937
- }, [N(j(ln), {
2102
+ }, [P(M(vn), {
1938
2103
  size: 14,
1939
2104
  "stroke-width": 1.5
1940
- })], 8, kr)) : O("", !0),
2105
+ })], 8, qr)) : O("", !0),
1941
2106
  C("button", {
1942
2107
  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",
1943
- "aria-label": j(s).blockActions.delete,
1944
- title: j(s).blockActions.delete,
2108
+ "aria-label": M(s).blockActions.delete,
2109
+ title: M(s).blockActions.delete,
1945
2110
  onClick: b(ae, ["stop"])
1946
- }, [N(j(vt), {
2111
+ }, [P(M(Tt), {
1947
2112
  size: 14,
1948
2113
  "stroke-width": 1.5
1949
- })], 8, Ar)
1950
- ], 8, Er)) : O("", !0),
1951
- y.value ? (e(), w("div", jr, [C("span", Mr, [N(j(pn), {
2114
+ })], 8, Jr)
2115
+ ], 8, Wr)) : O("", !0),
2116
+ y.value ? (e(), w("div", Yr, [C("span", Xr, [P(M(Sn), {
1952
2117
  size: 12,
1953
2118
  "stroke-width": 1.5
1954
- }), _(" " + M(j(c)(j(s).blockActions.hiddenOnViewport, { viewport: T.value })), 1)])])) : O("", !0),
1955
- E.value && !y.value ? (e(), w("div", Nr, [C("button", {
2119
+ }), _(" " + N(M(c)(M(s).blockActions.hiddenOnViewport, { viewport: T.value })), 1)])])) : O("", !0),
2120
+ E.value && !y.value ? (e(), w("div", Zr, [C("button", {
1956
2121
  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)]",
1957
- "aria-label": j(s).blockActions.conditionToggle,
2122
+ "aria-label": M(s).blockActions.conditionToggle,
1958
2123
  title: t.block.displayCondition?.label,
1959
2124
  onClick: b(le, ["stop"])
1960
- }, [N(j(cn), {
2125
+ }, [P(M(Cn), {
1961
2126
  size: 12,
1962
2127
  "stroke-width": 2
1963
- })], 8, Pr)])) : O("", !0),
1964
- ne.value > 0 && !y.value ? (e(), w("div", Fr, [C("button", {
2128
+ })], 8, Qr)])) : O("", !0),
2129
+ j.value > 0 && !y.value ? (e(), w("div", $r, [C("button", {
1965
2130
  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)]",
1966
- "aria-label": j(c)(j(s).blockActions.comments, { count: String(ne.value) }),
1967
- onClick: r[0] ||= b((e) => j(k).comments?.openForBlock(t.block.id), ["stop"])
1968
- }, [N(j(_t), {
2131
+ "aria-label": M(c)(M(s).blockActions.comments, { count: String(j.value) }),
2132
+ onClick: r[0] ||= b((e) => M(k).comments?.openForBlock(t.block.id), ["stop"])
2133
+ }, [P(M(wt), {
1969
2134
  size: 12,
1970
2135
  "stroke-width": 2.5
1971
- }), _(" " + M(ne.value), 1)], 8, Ir)])) : O("", !0),
1972
- C("div", {
1973
- class: "tpl-block-content",
2136
+ }), _(" " + N(j.value), 1)], 8, ei)])) : O("", !0),
2137
+ re.value ? (e(), w("div", {
2138
+ key: 4,
2139
+ class: "tpl-section-wrapper",
1974
2140
  style: A(re.value)
1975
- }, [l(n.$slots, "default", {}, void 0, !0)], 4)
1976
- ], 10, Tr));
2141
+ }, [C("div", {
2142
+ class: "tpl-block-content",
2143
+ style: A(ne.value)
2144
+ }, [l(n.$slots, "default", {}, void 0, !0)], 4)], 4)) : (e(), w("div", {
2145
+ key: 5,
2146
+ class: "tpl-block-content",
2147
+ style: A(ne.value)
2148
+ }, [l(n.$slots, "default", {}, void 0, !0)], 4))
2149
+ ], 10, Ur));
1977
2150
  }
1978
- }), [["__scopeId", "data-v-4a48371d"]]);
2151
+ }), [["__scopeId", "data-v-7aeef19d"]]);
1979
2152
  //#endregion
1980
2153
  //#region src/utils/unwrapParagraph.ts
1981
- function Rr(e) {
2154
+ function ni(e) {
1982
2155
  let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
1983
2156
  return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
1984
2157
  }
1985
2158
  //#endregion
1986
2159
  //#region src/components/blocks/TitleBlock.vue
1987
- var zr = /* @__PURE__ */ y({
2160
+ var ri = /* @__PURE__ */ y({
1988
2161
  __name: "TitleBlock",
1989
2162
  props: {
1990
2163
  block: {},
1991
2164
  viewport: {}
1992
2165
  },
1993
2166
  setup(t) {
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(() => {
2167
+ let n = t, r = oe(() => import("./TitleEditor-eyT0h-Sa.js")), { isEditing: a, blockRef: o, toolbarPosition: s, resolvedContent: c, handleDoubleClick: l, handleEditorDone: u } = Lr(() => n.block.content), d = x(() => {
1995
2168
  let e = {
1996
- fontSize: `${Ae[n.block.level]}px`,
2169
+ fontSize: `${je[n.block.level]}px`,
1997
2170
  color: n.block.color,
1998
2171
  textAlign: n.block.textAlign
1999
2172
  };
2000
2173
  return n.block.fontFamily && (e.fontFamily = n.block.fontFamily), e;
2001
- }), f = x(() => `h${n.block.level}`), p = x(() => Rr(c.value));
2174
+ }), f = x(() => `h${n.block.level}`), p = x(() => ni(c.value));
2002
2175
  return (n, c) => (e(), w("div", {
2003
2176
  ref_key: "blockRef",
2004
2177
  ref: o,
2005
2178
  class: "tpl:min-h-[1em] tpl:w-full",
2006
2179
  style: A(d.value),
2007
- onDblclick: c[0] ||= (...e) => j(l) && j(l)(...e)
2008
- }, [j(a) ? (e(), ne(j(r), {
2180
+ onDblclick: c[0] ||= (...e) => M(l) && M(l)(...e)
2181
+ }, [M(a) ? (e(), j(M(r), {
2009
2182
  key: 0,
2010
2183
  block: t.block,
2011
- "toolbar-position": j(s),
2012
- onDone: j(u)
2184
+ "toolbar-position": M(s),
2185
+ onDone: M(u)
2013
2186
  }, null, 8, [
2014
2187
  "block",
2015
2188
  "toolbar-position",
2016
2189
  "onDone"
2017
- ])) : (e(), ne(i(f.value), {
2190
+ ])) : (e(), j(i(f.value), {
2018
2191
  key: 1,
2019
2192
  class: "tpl-text-content tpl:m-0 tpl:font-[inherit] tpl:text-[length:inherit] tpl:leading-tight tpl:outline-none [&_a]:tpl:underline [&_p]:tpl:m-0 [&_p]:tpl:mb-2 [&_p:last-child]:tpl:mb-0",
2020
2193
  style: { color: "inherit" },
2021
2194
  innerHTML: p.value
2022
2195
  }, null, 8, ["innerHTML"]))], 36));
2023
2196
  }
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, {
2197
+ });
2198
+ //#endregion
2199
+ //#region src/utils/sectionColumnDrop.ts
2200
+ function ii(e) {
2201
+ return e.dataset.blockType !== "section" && e.dataset.paletteType !== "section";
2202
+ }
2203
+ //#endregion
2204
+ //#region ../../node_modules/.pnpm/vue-draggable-plus@0.6.1_@types+sortablejs@1.15.9/node_modules/vue-draggable-plus/dist/vue-draggable-plus.js
2205
+ var ai = Object.defineProperty, oi = Object.getOwnPropertySymbols, si = Object.prototype.hasOwnProperty, ci = Object.prototype.propertyIsEnumerable, li = (e, t, n) => t in e ? ai(e, t, {
2025
2206
  enumerable: !0,
2026
2207
  configurable: !0,
2027
2208
  writable: !0,
2028
2209
  value: 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]);
2210
+ }) : e[t] = n, ui = (e, t) => {
2211
+ for (var n in t ||= {}) si.call(t, n) && li(e, n, t[n]);
2212
+ if (oi) for (var n of oi(t)) ci.call(t, n) && li(e, n, t[n]);
2032
2213
  return e;
2033
- }, Kr = (e, t) => {
2214
+ }, di = (e, t) => {
2034
2215
  var n = {};
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]);
2216
+ for (var r in e) si.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
2217
+ if (e != null && oi) for (var r of oi(e)) t.indexOf(r) < 0 && ci.call(e, r) && (n[r] = e[r]);
2037
2218
  return n;
2038
- }, qr = "[vue-draggable-plus]: ";
2039
- function Jr(e) {
2040
- console.warn(qr + e);
2219
+ }, fi = "[vue-draggable-plus]: ";
2220
+ function pi(e) {
2221
+ console.warn(fi + e);
2041
2222
  }
2042
- function Yr(e) {
2043
- console.error(qr + e);
2223
+ function mi(e) {
2224
+ console.error(fi + e);
2044
2225
  }
2045
- function Xr(e, t, n) {
2226
+ function hi(e, t, n) {
2046
2227
  return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
2047
2228
  }
2048
- function Zr(e) {
2229
+ function gi(e) {
2049
2230
  return e.replace(/-(\w)/g, (e, t) => t ? t.toUpperCase() : "");
2050
2231
  }
2051
- function Qr(e) {
2052
- return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[Zr(n)] = e[n]), t), {});
2232
+ function _i(e) {
2233
+ return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[gi(n)] = e[n]), t), {});
2053
2234
  }
2054
- function $r(e, t) {
2235
+ function vi(e, t) {
2055
2236
  return Array.isArray(e) && e.splice(t, 1), e;
2056
2237
  }
2057
- function ei(e, t, n) {
2238
+ function yi(e, t, n) {
2058
2239
  return Array.isArray(e) && e.splice(t, 0, n), e;
2059
2240
  }
2060
- function ti(e) {
2241
+ function bi(e) {
2061
2242
  return e === void 0;
2062
2243
  }
2063
- function ni(e) {
2244
+ function xi(e) {
2064
2245
  return typeof e == "string";
2065
2246
  }
2066
- function ri(e, t, n) {
2247
+ function Si(e, t, n) {
2067
2248
  let r = e.children[n];
2068
2249
  e.insertBefore(t, r);
2069
2250
  }
2070
- function ii(e) {
2251
+ function Ci(e) {
2071
2252
  e.parentNode && e.parentNode.removeChild(e);
2072
2253
  }
2073
- function ai(e, t = document) {
2254
+ function wi(e, t = document) {
2074
2255
  let n = null;
2075
- return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || Jr(`Element not found: ${e}`), n;
2256
+ return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || pi(`Element not found: ${e}`), n;
2076
2257
  }
2077
- function oi(e, t, n = null) {
2258
+ function Ti(e, t, n = null) {
2078
2259
  return function(...r) {
2079
2260
  return e.apply(n, r), t.apply(n, r);
2080
2261
  };
2081
2262
  }
2082
- function si(e, t) {
2083
- let n = Gr({}, e);
2263
+ function Ei(e, t) {
2264
+ let n = ui({}, e);
2084
2265
  return Object.keys(t).forEach((r) => {
2085
- n[r] ? n[r] = oi(e[r], t[r]) : n[r] = t[r];
2266
+ n[r] ? n[r] = Ti(e[r], t[r]) : n[r] = t[r];
2086
2267
  }), n;
2087
2268
  }
2088
- function ci(e) {
2269
+ function Di(e) {
2089
2270
  return e instanceof HTMLElement;
2090
2271
  }
2091
- function li(e, t) {
2272
+ function Oi(e, t) {
2092
2273
  Object.keys(e).forEach((n) => {
2093
2274
  t(n, e[n]);
2094
2275
  });
2095
2276
  }
2096
- function ui(e) {
2277
+ function ki(e) {
2097
2278
  return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
2098
2279
  }
2099
- var di = Object.assign;
2100
- function fi(e, t) {
2280
+ var Ai = Object.assign;
2281
+ function ji(e, t) {
2101
2282
  var n = Object.keys(e);
2102
2283
  if (Object.getOwnPropertySymbols) {
2103
2284
  var r = Object.getOwnPropertySymbols(e);
@@ -2107,26 +2288,26 @@ function fi(e, t) {
2107
2288
  }
2108
2289
  return n;
2109
2290
  }
2110
- function pi(e) {
2291
+ function Mi(e) {
2111
2292
  for (var t = 1; t < arguments.length; t++) {
2112
2293
  var n = arguments[t] == null ? {} : arguments[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) {
2294
+ t % 2 ? ji(Object(n), !0).forEach(function(t) {
2295
+ Pi(e, t, n[t]);
2296
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ji(Object(n)).forEach(function(t) {
2116
2297
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
2117
2298
  });
2118
2299
  }
2119
2300
  return e;
2120
2301
  }
2121
- function mi(e) {
2302
+ function Ni(e) {
2122
2303
  "@babel/helpers - typeof";
2123
- return mi = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2304
+ return Ni = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2124
2305
  return typeof e;
2125
2306
  } : function(e) {
2126
2307
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2127
- }, mi(e);
2308
+ }, Ni(e);
2128
2309
  }
2129
- function hi(e, t, n) {
2310
+ function Pi(e, t, n) {
2130
2311
  return t in e ? Object.defineProperty(e, t, {
2131
2312
  value: n,
2132
2313
  enumerable: !0,
@@ -2134,45 +2315,45 @@ function hi(e, t, n) {
2134
2315
  writable: !0
2135
2316
  }) : e[t] = n, e;
2136
2317
  }
2137
- function gi() {
2138
- return gi = Object.assign || function(e) {
2318
+ function Fi() {
2319
+ return Fi = Object.assign || function(e) {
2139
2320
  for (var t = 1; t < arguments.length; t++) {
2140
2321
  var n = arguments[t];
2141
2322
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
2142
2323
  }
2143
2324
  return e;
2144
- }, gi.apply(this, arguments);
2325
+ }, Fi.apply(this, arguments);
2145
2326
  }
2146
- function _i(e, t) {
2327
+ function Ii(e, t) {
2147
2328
  if (e == null) return {};
2148
2329
  var n = {}, r = Object.keys(e), i, a;
2149
2330
  for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
2150
2331
  return n;
2151
2332
  }
2152
- function vi(e, t) {
2333
+ function Li(e, t) {
2153
2334
  if (e == null) return {};
2154
- var n = _i(e, t), r, i;
2335
+ var n = Ii(e, t), r, i;
2155
2336
  if (Object.getOwnPropertySymbols) {
2156
2337
  var a = Object.getOwnPropertySymbols(e);
2157
2338
  for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
2158
2339
  }
2159
2340
  return n;
2160
2341
  }
2161
- var yi = "1.15.2";
2162
- function bi(e) {
2342
+ var Ri = "1.15.2";
2343
+ function zi(e) {
2163
2344
  if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
2164
2345
  }
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 = {
2346
+ var Bi = zi(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Vi = zi(/Edge/i), Hi = zi(/firefox/i), Ui = zi(/safari/i) && !zi(/chrome/i) && !zi(/android/i), Wi = zi(/iP(ad|od|hone)/i), Gi = zi(/chrome/i) && zi(/android/i), Ki = {
2166
2347
  capture: !1,
2167
2348
  passive: !1
2168
2349
  };
2169
- function I(e, t, n) {
2170
- e.addEventListener(t, n, !xi && Di);
2171
- }
2172
2350
  function L(e, t, n) {
2173
- e.removeEventListener(t, n, !xi && Di);
2351
+ e.addEventListener(t, n, !Bi && Ki);
2174
2352
  }
2175
- function Oi(e, t) {
2353
+ function R(e, t, n) {
2354
+ e.removeEventListener(t, n, !Bi && Ki);
2355
+ }
2356
+ function qi(e, t) {
2176
2357
  if (t) {
2177
2358
  if (t[0] === ">" && (t = t.substring(1)), e) try {
2178
2359
  if (e.matches) return e.matches(t);
@@ -2184,41 +2365,41 @@ function Oi(e, t) {
2184
2365
  return !1;
2185
2366
  }
2186
2367
  }
2187
- function ki(e) {
2368
+ function Ji(e) {
2188
2369
  return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
2189
2370
  }
2190
- function Ai(e, t, n, r) {
2371
+ function Yi(e, t, n, r) {
2191
2372
  if (e) {
2192
2373
  n ||= document;
2193
2374
  do {
2194
- if (t != null && (t[0] === ">" ? e.parentNode === n && Oi(e, t) : Oi(e, t)) || r && e === n) return e;
2375
+ if (t != null && (t[0] === ">" ? e.parentNode === n && qi(e, t) : qi(e, t)) || r && e === n) return e;
2195
2376
  if (e === n) break;
2196
- } while (e = ki(e));
2377
+ } while (e = Ji(e));
2197
2378
  }
2198
2379
  return null;
2199
2380
  }
2200
- var ji = /\s+/g;
2201
- function R(e, t, n) {
2202
- e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(ji, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(ji, " "));
2203
- }
2381
+ var Xi = /\s+/g;
2204
2382
  function z(e, t, n) {
2383
+ e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(Xi, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(Xi, " "));
2384
+ }
2385
+ function B(e, t, n) {
2205
2386
  var r = e && e.style;
2206
2387
  if (r) {
2207
2388
  if (n === void 0) return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (n = e.currentStyle), t === void 0 ? n : n[t];
2208
2389
  !(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
2209
2390
  }
2210
2391
  }
2211
- function Mi(e, t) {
2392
+ function Zi(e, t) {
2212
2393
  var n = "";
2213
2394
  if (typeof e == "string") n = e;
2214
2395
  else do {
2215
- var r = z(e, "transform");
2396
+ var r = B(e, "transform");
2216
2397
  r && r !== "none" && (n = r + " " + n);
2217
2398
  } while (!t && (e = e.parentNode));
2218
2399
  var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
2219
2400
  return i && new i(n);
2220
2401
  }
2221
- function Ni(e, t, n) {
2402
+ function Qi(e, t, n) {
2222
2403
  if (e) {
2223
2404
  var r = e.getElementsByTagName(t), i = 0, a = r.length;
2224
2405
  if (n) for (; i < a; i++) n(r[i], i);
@@ -2226,21 +2407,21 @@ function Ni(e, t, n) {
2226
2407
  }
2227
2408
  return [];
2228
2409
  }
2229
- function Pi() {
2410
+ function $i() {
2230
2411
  return document.scrollingElement || document.documentElement;
2231
2412
  }
2232
- function B(e, t, n, r, i) {
2413
+ function V(e, t, n, r, i) {
2233
2414
  if (!(!e.getBoundingClientRect && e !== window)) {
2234
2415
  var a, o, s, c, l, u, d;
2235
- if (e !== window && e.parentNode && e !== Pi() ? (a = e.getBoundingClientRect(), o = a.top, s = a.left, c = a.bottom, l = a.right, u = a.height, d = a.width) : (o = 0, s = 0, c = window.innerHeight, l = window.innerWidth, u = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (i ||= e.parentNode, !xi)) do
2236
- if (i && i.getBoundingClientRect && (z(i, "transform") !== "none" || n && z(i, "position") !== "static")) {
2416
+ if (e !== window && e.parentNode && e !== $i() ? (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, !Bi)) do
2417
+ if (i && i.getBoundingClientRect && (B(i, "transform") !== "none" || n && B(i, "position") !== "static")) {
2237
2418
  var f = i.getBoundingClientRect();
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;
2419
+ o -= f.top + parseInt(B(i, "border-top-width")), s -= f.left + parseInt(B(i, "border-left-width")), c = o + a.height, l = s + a.width;
2239
2420
  break;
2240
2421
  }
2241
2422
  while (i = i.parentNode);
2242
2423
  if (r && e !== window) {
2243
- var p = Mi(i || e), m = p && p.a, h = p && p.d;
2424
+ var p = Zi(i || e), m = p && p.a, h = p && p.d;
2244
2425
  p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
2245
2426
  }
2246
2427
  return {
@@ -2253,18 +2434,18 @@ function B(e, t, n, r, i) {
2253
2434
  };
2254
2435
  }
2255
2436
  }
2256
- function Fi(e, t, n) {
2257
- for (var r = Vi(e, !0), i = B(e)[t]; r;) {
2258
- var a = B(r)[n], o = void 0;
2437
+ function ea(e, t, n) {
2438
+ for (var r = oa(e, !0), i = V(e)[t]; r;) {
2439
+ var a = V(r)[n], o = void 0;
2259
2440
  if (o = i >= a, !o) return r;
2260
- if (r === Pi()) break;
2261
- r = Vi(r, !1);
2441
+ if (r === $i()) break;
2442
+ r = oa(r, !1);
2262
2443
  }
2263
2444
  return !1;
2264
2445
  }
2265
- function Ii(e, t, n, r) {
2446
+ function ta(e, t, n, r) {
2266
2447
  for (var i = 0, a = 0, o = e.children; a < o.length;) {
2267
- if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && Ai(o[a], n.draggable, e, !1)) {
2448
+ if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && Yi(o[a], n.draggable, e, !1)) {
2268
2449
  if (i === t) return o[a];
2269
2450
  i++;
2270
2451
  }
@@ -2272,96 +2453,96 @@ function Ii(e, t, n, r) {
2272
2453
  }
2273
2454
  return null;
2274
2455
  }
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;
2456
+ function na(e, t) {
2457
+ for (var n = e.lastElementChild; n && (n === Q.ghost || B(n, "display") === "none" || t && !qi(n, t));) n = n.previousElementSibling;
2277
2458
  return n || null;
2278
2459
  }
2279
- function Ri(e, t) {
2460
+ function ra(e, t) {
2280
2461
  var n = 0;
2281
2462
  if (!e || !e.parentNode) return -1;
2282
- for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || Oi(e, t)) && n++;
2463
+ for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || qi(e, t)) && n++;
2283
2464
  return n;
2284
2465
  }
2285
- function zi(e) {
2286
- var t = 0, n = 0, r = Pi();
2466
+ function ia(e) {
2467
+ var t = 0, n = 0, r = $i();
2287
2468
  if (e) do {
2288
- var i = Mi(e), a = i.a, o = i.d;
2469
+ var i = Zi(e), a = i.a, o = i.d;
2289
2470
  t += e.scrollLeft * a, n += e.scrollTop * o;
2290
2471
  } while (e !== r && (e = e.parentNode));
2291
2472
  return [t, n];
2292
2473
  }
2293
- function Bi(e, t) {
2474
+ function aa(e, t) {
2294
2475
  for (var n in e) if (e.hasOwnProperty(n)) {
2295
2476
  for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
2296
2477
  }
2297
2478
  return -1;
2298
2479
  }
2299
- function Vi(e, t) {
2300
- if (!e || !e.getBoundingClientRect) return Pi();
2480
+ function oa(e, t) {
2481
+ if (!e || !e.getBoundingClientRect) return $i();
2301
2482
  var n = e, r = !1;
2302
2483
  do
2303
2484
  if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
2304
- var i = z(n);
2485
+ var i = B(n);
2305
2486
  if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
2306
- if (!n.getBoundingClientRect || n === document.body) return Pi();
2487
+ if (!n.getBoundingClientRect || n === document.body) return $i();
2307
2488
  if (r || t) return n;
2308
2489
  r = !0;
2309
2490
  }
2310
2491
  }
2311
2492
  while (n = n.parentNode);
2312
- return Pi();
2493
+ return $i();
2313
2494
  }
2314
- function Hi(e, t) {
2495
+ function sa(e, t) {
2315
2496
  if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
2316
2497
  return e;
2317
2498
  }
2318
- function Ui(e, t) {
2499
+ function ca(e, t) {
2319
2500
  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);
2320
2501
  }
2321
- var Wi;
2322
- function Gi(e, t) {
2502
+ var la;
2503
+ function ua(e, t) {
2323
2504
  return function() {
2324
- if (!Wi) {
2505
+ if (!la) {
2325
2506
  var n = arguments, r = this;
2326
- n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), Wi = setTimeout(function() {
2327
- Wi = void 0;
2507
+ n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), la = setTimeout(function() {
2508
+ la = void 0;
2328
2509
  }, t);
2329
2510
  }
2330
2511
  };
2331
2512
  }
2332
- function Ki() {
2333
- clearTimeout(Wi), Wi = void 0;
2513
+ function da() {
2514
+ clearTimeout(la), la = void 0;
2334
2515
  }
2335
- function qi(e, t, n) {
2516
+ function fa(e, t, n) {
2336
2517
  e.scrollLeft += t, e.scrollTop += n;
2337
2518
  }
2338
- function Ji(e) {
2519
+ function pa(e) {
2339
2520
  var t = window.Polymer, n = window.jQuery || window.Zepto;
2340
2521
  return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
2341
2522
  }
2342
- function Yi(e, t, n) {
2523
+ function ma(e, t, n) {
2343
2524
  var r = {};
2344
2525
  return Array.from(e.children).forEach(function(i) {
2345
- if (!(!Ai(i, t.draggable, e, !1) || i.animated || i === n)) {
2346
- var a = B(i);
2526
+ if (!(!Yi(i, t.draggable, e, !1) || i.animated || i === n)) {
2527
+ var a = V(i);
2347
2528
  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);
2348
2529
  }
2349
2530
  }), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
2350
2531
  }
2351
- var V = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
2352
- function Xi() {
2532
+ var H = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
2533
+ function ha() {
2353
2534
  var e = [], t;
2354
2535
  return {
2355
2536
  captureAnimationState: function() {
2356
2537
  e = [], this.options.animation && [].slice.call(this.el.children).forEach(function(t) {
2357
- if (!(z(t, "display") === "none" || t === Q.ghost)) {
2538
+ if (!(B(t, "display") === "none" || t === Q.ghost)) {
2358
2539
  e.push({
2359
2540
  target: t,
2360
- rect: B(t)
2541
+ rect: V(t)
2361
2542
  });
2362
- var n = pi({}, e[e.length - 1].rect);
2543
+ var n = Mi({}, e[e.length - 1].rect);
2363
2544
  if (t.thisAnimationDuration) {
2364
- var r = Mi(t, !0);
2545
+ var r = Zi(t, !0);
2365
2546
  r && (n.top -= r.f, n.left -= r.e);
2366
2547
  }
2367
2548
  t.fromRect = n;
@@ -2372,7 +2553,7 @@ function Xi() {
2372
2553
  e.push(t);
2373
2554
  },
2374
2555
  removeAnimationState: function(t) {
2375
- e.splice(Bi(e, { target: t }), 1);
2556
+ e.splice(aa(e, { target: t }), 1);
2376
2557
  },
2377
2558
  animateAll: function(n) {
2378
2559
  var r = this;
@@ -2382,8 +2563,8 @@ function Xi() {
2382
2563
  }
2383
2564
  var i = !1, a = 0;
2384
2565
  e.forEach(function(e) {
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() {
2566
+ var t = 0, n = e.target, o = n.fromRect, s = V(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = Zi(n, !0);
2567
+ d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && ca(c, s) && !ca(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = _a(u, c, l, r.options)), ca(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() {
2387
2568
  n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
2388
2569
  }, t), n.thisAnimationDuration = t);
2389
2570
  }), clearTimeout(t), i ? t = setTimeout(function() {
@@ -2392,27 +2573,27 @@ function Xi() {
2392
2573
  },
2393
2574
  animate: function(e, t, n, r) {
2394
2575
  if (r) {
2395
- z(e, "transition", ""), z(e, "transform", "");
2396
- var i = Mi(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
2397
- e.animatingX = !!s, e.animatingY = !!c, 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() {
2398
- z(e, "transition", ""), z(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
2576
+ B(e, "transition", ""), B(e, "transform", "");
2577
+ var i = Zi(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
2578
+ e.animatingX = !!s, e.animatingY = !!c, B(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = ga(e), B(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), B(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
2579
+ B(e, "transition", ""), B(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
2399
2580
  }, r);
2400
2581
  }
2401
2582
  }
2402
2583
  };
2403
2584
  }
2404
- function Zi(e) {
2585
+ function ga(e) {
2405
2586
  return e.offsetWidth;
2406
2587
  }
2407
- function Qi(e, t, n, r) {
2588
+ function _a(e, t, n, r) {
2408
2589
  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;
2409
2590
  }
2410
- var $i = [], ea = { initializeByDefault: !0 }, ta = {
2591
+ var va = [], ya = { initializeByDefault: !0 }, ba = {
2411
2592
  mount: function(e) {
2412
- for (var t in ea) ea.hasOwnProperty(t) && !(t in e) && (e[t] = ea[t]);
2413
- $i.forEach(function(t) {
2593
+ for (var t in ya) ya.hasOwnProperty(t) && !(t in e) && (e[t] = ya[t]);
2594
+ va.forEach(function(t) {
2414
2595
  if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
2415
- }), $i.push(e);
2596
+ }), va.push(e);
2416
2597
  },
2417
2598
  pluginEvent: function(e, t, n) {
2418
2599
  var r = this;
@@ -2420,16 +2601,16 @@ var $i = [], ea = { initializeByDefault: !0 }, ta = {
2420
2601
  r.eventCanceled = !0;
2421
2602
  };
2422
2603
  var i = e + "Global";
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)));
2604
+ va.forEach(function(r) {
2605
+ t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](Mi({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](Mi({ sortable: t }, n)));
2425
2606
  });
2426
2607
  },
2427
2608
  initializePlugins: function(e, t, n, r) {
2428
- for (var i in $i.forEach(function(r) {
2609
+ for (var i in va.forEach(function(r) {
2429
2610
  var i = r.pluginName;
2430
2611
  if (!(!e.options[i] && !r.initializeByDefault)) {
2431
2612
  var a = new r(e, t, e.options);
2432
- a.sortable = e, a.options = e.options, e[i] = a, gi(n, a.defaults);
2613
+ a.sortable = e, a.options = e.options, e[i] = a, Fi(n, a.defaults);
2433
2614
  }
2434
2615
  }), e.options) if (e.options.hasOwnProperty(i)) {
2435
2616
  var a = this.modifyOption(e, i, e.options[i]);
@@ -2438,59 +2619,59 @@ var $i = [], ea = { initializeByDefault: !0 }, ta = {
2438
2619
  },
2439
2620
  getEventProperties: function(e, t) {
2440
2621
  var n = {};
2441
- return $i.forEach(function(r) {
2442
- typeof r.eventProperties == "function" && gi(n, r.eventProperties.call(t[r.pluginName], e));
2622
+ return va.forEach(function(r) {
2623
+ typeof r.eventProperties == "function" && Fi(n, r.eventProperties.call(t[r.pluginName], e));
2443
2624
  }), n;
2444
2625
  },
2445
2626
  modifyOption: function(e, t, n) {
2446
2627
  var r;
2447
- return $i.forEach(function(i) {
2628
+ return va.forEach(function(i) {
2448
2629
  e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
2449
2630
  }), r;
2450
2631
  }
2451
2632
  };
2452
- function na(e) {
2633
+ function xa(e) {
2453
2634
  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;
2454
- if (t ||= n && n[V], t) {
2635
+ if (t ||= n && n[H], t) {
2455
2636
  var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
2456
- window.CustomEvent && !xi && !Si ? h = new CustomEvent(r, {
2637
+ window.CustomEvent && !Bi && !Vi ? h = new CustomEvent(r, {
2457
2638
  bubbles: !0,
2458
2639
  cancelable: !0
2459
2640
  }) : (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;
2460
- var v = pi(pi({}, m), ta.getEventProperties(r, t));
2641
+ var v = Mi(Mi({}, m), ba.getEventProperties(r, t));
2461
2642
  for (var y in v) h[y] = v[y];
2462
2643
  n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
2463
2644
  }
2464
2645
  }
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({
2468
- dragEl: W,
2469
- parentEl: G,
2470
- ghostEl: K,
2471
- rootEl: q,
2472
- nextEl: ia,
2473
- lastDownEl: aa,
2474
- cloneEl: J,
2475
- cloneHidden: oa,
2476
- dragStarted: ba,
2646
+ var Sa = ["evt"], U = function(e, t) {
2647
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = Li(n, Sa);
2648
+ ba.pluginEvent.bind(Q)(e, t, Mi({
2649
+ dragEl: G,
2650
+ parentEl: K,
2651
+ ghostEl: q,
2652
+ rootEl: J,
2653
+ nextEl: Ca,
2654
+ lastDownEl: wa,
2655
+ cloneEl: Y,
2656
+ cloneHidden: Ta,
2657
+ dragStarted: Ba,
2477
2658
  putSortable: X,
2478
2659
  activeSortable: Q.active,
2479
2660
  originalEvent: r,
2480
- oldIndex: sa,
2481
- oldDraggableIndex: ca,
2482
- newIndex: Y,
2483
- newDraggableIndex: la,
2484
- hideGhostForTarget: Ra,
2485
- unhideGhostForTarget: za,
2661
+ oldIndex: Ea,
2662
+ oldDraggableIndex: Oa,
2663
+ newIndex: Da,
2664
+ newDraggableIndex: ka,
2665
+ hideGhostForTarget: io,
2666
+ unhideGhostForTarget: ao,
2486
2667
  cloneNowHidden: function() {
2487
- oa = !0;
2668
+ Ta = !0;
2488
2669
  },
2489
2670
  cloneNowShown: function() {
2490
- oa = !1;
2671
+ Ta = !1;
2491
2672
  },
2492
2673
  dispatchSortableEvent: function(e) {
2493
- U({
2674
+ W({
2494
2675
  sortable: t,
2495
2676
  name: e,
2496
2677
  originalEvent: r
@@ -2498,46 +2679,46 @@ var ra = ["evt"], H = function(e, t) {
2498
2679
  }
2499
2680
  }, i));
2500
2681
  };
2501
- function U(e) {
2502
- na(pi({
2682
+ function W(e) {
2683
+ xa(Mi({
2503
2684
  putSortable: X,
2504
- cloneEl: J,
2505
- targetEl: W,
2506
- rootEl: q,
2507
- oldIndex: sa,
2508
- oldDraggableIndex: ca,
2509
- newIndex: Y,
2510
- newDraggableIndex: la
2685
+ cloneEl: Y,
2686
+ targetEl: G,
2687
+ rootEl: J,
2688
+ oldIndex: Ea,
2689
+ oldDraggableIndex: Oa,
2690
+ newIndex: Da,
2691
+ newDraggableIndex: ka
2511
2692
  }, e));
2512
2693
  }
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;
2694
+ var G, K, q, J, Ca, wa, Y, Ta, Ea, Da, Oa, ka, Aa, X, ja = !1, Ma = !1, Na = [], Pa, Fa, Ia, La, Ra, za, Ba, Va, Ha, Ua = !1, Wa = !1, Ga, Z, Ka = [], qa = !1, Ja = [], Ya = typeof document < "u", Xa = Wi, Za = Vi || Bi ? "cssFloat" : "float", Qa = Ya && !Gi && !Wi && "draggable" in document.createElement("div"), $a = function() {
2695
+ if (Ya) {
2696
+ if (Bi) return !1;
2516
2697
  var e = document.createElement("x");
2517
2698
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
2518
2699
  }
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;
2700
+ }(), eo = function(e, t) {
2701
+ var n = B(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = ta(e, 0, t), a = ta(e, 1, t), o = i && B(i), s = a && B(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + V(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + V(a).width;
2521
2702
  if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
2522
2703
  if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
2523
2704
  if (i && o.float && o.float !== "none") {
2524
2705
  var u = o.float === "left" ? "left" : "right";
2525
2706
  return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
2526
2707
  }
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) {
2708
+ return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Za] === "none" || a && n[Za] === "none" && c + l > r) ? "vertical" : "horizontal";
2709
+ }, to = function(e, t, n) {
2529
2710
  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;
2530
2711
  return r === o || i === s || r + a / 2 === o + c / 2;
2531
- }, Ia = function(e, t) {
2712
+ }, no = function(e, t) {
2532
2713
  var n;
2533
- return pa.some(function(r) {
2534
- var i = r[V].options.emptyInsertThreshold;
2535
- if (!(!i || Li(r))) {
2536
- var a = B(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
2714
+ return Na.some(function(r) {
2715
+ var i = r[H].options.emptyInsertThreshold;
2716
+ if (!(!i || na(r))) {
2717
+ var a = V(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
2537
2718
  if (o && s) return n = r;
2538
2719
  }
2539
2720
  }), n;
2540
- }, La = function(e) {
2721
+ }, ro = function(e) {
2541
2722
  function t(e, n) {
2542
2723
  return function(r, i, a, o) {
2543
2724
  var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
@@ -2550,31 +2731,31 @@ var W, G, K, q, ia, aa, J, oa, sa, Y, ca, la, ua, X, da = !1, fa = !1, pa = [],
2550
2731
  };
2551
2732
  }
2552
2733
  var n = {}, r = e.group;
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", "");
2734
+ (!r || Ni(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;
2735
+ }, io = function() {
2736
+ !$a && q && B(q, "display", "none");
2737
+ }, ao = function() {
2738
+ !$a && q && B(q, "display", "");
2558
2739
  };
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;
2740
+ Ya && !Gi && document.addEventListener("click", function(e) {
2741
+ if (Ma) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Ma = !1, !1;
2561
2742
  }, !0);
2562
- var Ba = function(e) {
2563
- if (W) {
2743
+ var oo = function(e) {
2744
+ if (G) {
2564
2745
  e = e.touches ? e.touches[0] : e;
2565
- var t = Ia(e.clientX, e.clientY);
2746
+ var t = no(e.clientX, e.clientY);
2566
2747
  if (t) {
2567
2748
  var n = {};
2568
2749
  for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
2569
- n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[V]._onDragOver(n);
2750
+ n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[H]._onDragOver(n);
2570
2751
  }
2571
2752
  }
2572
- }, Va = function(e) {
2573
- W && W.parentNode[V]._isOutsideThisEl(e.target);
2753
+ }, so = function(e) {
2754
+ G && G.parentNode[H]._isOutsideThisEl(e.target);
2574
2755
  };
2575
2756
  function Q(e, t) {
2576
2757
  if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
2577
- this.el = e, this.options = t = gi({}, t), e[V] = this;
2758
+ this.el = e, this.options = t = Fi({}, t), e[H] = this;
2578
2759
  var n = {
2579
2760
  group: null,
2580
2761
  sort: !0,
@@ -2587,7 +2768,7 @@ function Q(e, t) {
2587
2768
  invertedSwapThreshold: null,
2588
2769
  removeCloneOnHide: !0,
2589
2770
  direction: function() {
2590
- return Pa(e, this.options);
2771
+ return eo(e, this.options);
2591
2772
  },
2592
2773
  ghostClass: "sortable-ghost",
2593
2774
  chosenClass: "sortable-chosen",
@@ -2614,80 +2795,80 @@ function Q(e, t) {
2614
2795
  x: 0,
2615
2796
  y: 0
2616
2797
  },
2617
- supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !wi,
2798
+ supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !Ui,
2618
2799
  emptyInsertThreshold: 5
2619
2800
  };
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());
2801
+ for (var r in ba.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
2802
+ for (var i in ro(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
2803
+ this.nativeDraggable = t.forceFallback ? !1 : Qa, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? L(e, "pointerdown", this._onTapStart) : (L(e, "mousedown", this._onTapStart), L(e, "touchstart", this._onTapStart)), this.nativeDraggable && (L(e, "dragover", this), L(e, "dragenter", this)), Na.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Fi(this, ha());
2623
2804
  }
2624
2805
  Q.prototype = {
2625
2806
  constructor: Q,
2626
2807
  _isOutsideThisEl: function(e) {
2627
- !this.el.contains(e) && e !== this.el && (xa = null);
2808
+ !this.el.contains(e) && e !== this.el && (Va = null);
2628
2809
  },
2629
2810
  _getDirection: function(e, t) {
2630
- return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, W) : this.options.direction;
2811
+ return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, G) : this.options.direction;
2631
2812
  },
2632
2813
  _onTapStart: function(e) {
2633
2814
  if (e.cancelable) {
2634
2815
  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;
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") {
2816
+ if (vo(n), !G && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && Ui && s && s.tagName.toUpperCase() === "SELECT") && (s = Yi(s, r.draggable, n, !1), !(s && s.animated) && wa !== s)) {
2817
+ if (Ea = ra(s), Oa = ra(s, r.draggable), typeof l == "function") {
2637
2818
  if (l.call(this, e, s, this)) {
2638
- U({
2819
+ W({
2639
2820
  sortable: t,
2640
2821
  rootEl: c,
2641
2822
  name: "filter",
2642
2823
  targetEl: s,
2643
2824
  toEl: n,
2644
2825
  fromEl: n
2645
- }), H("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
2826
+ }), U("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
2646
2827
  return;
2647
2828
  }
2648
2829
  } else if (l && (l = l.split(",").some(function(r) {
2649
- if (r = Ai(c, r.trim(), n, !1), r) return U({
2830
+ if (r = Yi(c, r.trim(), n, !1), r) return W({
2650
2831
  sortable: t,
2651
2832
  rootEl: r,
2652
2833
  name: "filter",
2653
2834
  targetEl: s,
2654
2835
  fromEl: n,
2655
2836
  toEl: n
2656
- }), H("filter", t, { evt: e }), !0;
2837
+ }), U("filter", t, { evt: e }), !0;
2657
2838
  }), l)) {
2658
2839
  i && e.cancelable && e.preventDefault();
2659
2840
  return;
2660
2841
  }
2661
- r.handle && !Ai(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
2842
+ r.handle && !Yi(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
2662
2843
  }
2663
2844
  }
2664
2845
  },
2665
2846
  _prepareDragStart: function(e, t, n) {
2666
2847
  var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
2667
- if (n && !W && n.parentNode === i) {
2668
- var c = B(n);
2669
- if (q = i, W = n, G = W.parentNode, ia = W.nextSibling, aa = n, ua = a.group, Q.dragged = W, ma = {
2670
- target: W,
2848
+ if (n && !G && n.parentNode === i) {
2849
+ var c = V(n);
2850
+ if (J = i, G = n, K = G.parentNode, Ca = G.nextSibling, wa = n, Aa = a.group, Q.dragged = G, Pa = {
2851
+ target: G,
2671
2852
  clientX: (t || e).clientX,
2672
2853
  clientY: (t || e).clientY
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() {
2674
- if (H("delayEnded", r, { evt: e }), Q.eventCanceled) {
2854
+ }, Ra = Pa.clientX - c.left, za = Pa.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, G.style["will-change"] = "all", s = function() {
2855
+ if (U("delayEnded", r, { evt: e }), Q.eventCanceled) {
2675
2856
  r._onDrop();
2676
2857
  return;
2677
2858
  }
2678
- r._disableDelayedDragEvents(), !Ci && r.nativeDraggable && (W.draggable = !0), r._triggerDragStart(e, t), U({
2859
+ r._disableDelayedDragEvents(), !Hi && r.nativeDraggable && (G.draggable = !0), r._triggerDragStart(e, t), W({
2679
2860
  sortable: r,
2680
2861
  name: "choose",
2681
2862
  originalEvent: e
2682
- }), R(W, a.chosenClass, !0);
2863
+ }), z(G, a.chosenClass, !0);
2683
2864
  }, a.ignore.split(",").forEach(function(e) {
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))) {
2865
+ Qi(G, e.trim(), uo);
2866
+ }), L(o, "dragover", oo), L(o, "mousemove", oo), L(o, "touchmove", oo), L(o, "mouseup", r._onDrop), L(o, "touchend", r._onDrop), L(o, "touchcancel", r._onDrop), Hi && this.nativeDraggable && (this.options.touchStartThreshold = 4, G.draggable = !0), U("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Vi || Bi))) {
2686
2867
  if (Q.eventCanceled) {
2687
2868
  this._onDrop();
2688
2869
  return;
2689
2870
  }
2690
- I(o, "mouseup", r._disableDelayedDrag), I(o, "touchend", r._disableDelayedDrag), I(o, "touchcancel", r._disableDelayedDrag), I(o, "mousemove", r._delayedDragTouchMoveHandler), I(o, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && I(o, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
2871
+ L(o, "mouseup", r._disableDelayedDrag), L(o, "touchend", r._disableDelayedDrag), L(o, "touchcancel", r._disableDelayedDrag), L(o, "mousemove", r._delayedDragTouchMoveHandler), L(o, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && L(o, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
2691
2872
  } else s();
2692
2873
  }
2693
2874
  },
@@ -2696,25 +2877,25 @@ Q.prototype = {
2696
2877
  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();
2697
2878
  },
2698
2879
  _disableDelayedDrag: function() {
2699
- W && Wa(W), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2880
+ G && uo(G), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2700
2881
  },
2701
2882
  _disableDelayedDragEvents: function() {
2702
2883
  var e = this.el.ownerDocument;
2703
- L(e, "mouseup", this._disableDelayedDrag), L(e, "touchend", this._disableDelayedDrag), L(e, "touchcancel", this._disableDelayedDrag), L(e, "mousemove", this._delayedDragTouchMoveHandler), L(e, "touchmove", this._delayedDragTouchMoveHandler), L(e, "pointermove", this._delayedDragTouchMoveHandler);
2884
+ R(e, "mouseup", this._disableDelayedDrag), R(e, "touchend", this._disableDelayedDrag), R(e, "touchcancel", this._disableDelayedDrag), R(e, "mousemove", this._delayedDragTouchMoveHandler), R(e, "touchmove", this._delayedDragTouchMoveHandler), R(e, "pointermove", this._delayedDragTouchMoveHandler);
2704
2885
  },
2705
2886
  _triggerDragStart: function(e, t) {
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));
2887
+ t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? L(document, "pointermove", this._onTouchMove) : t ? L(document, "touchmove", this._onTouchMove) : L(document, "mousemove", this._onTouchMove) : (L(G, "dragend", this), L(J, "dragstart", this._onDragStart));
2707
2888
  try {
2708
- document.selection ? Qa(function() {
2889
+ document.selection ? yo(function() {
2709
2890
  document.selection.empty();
2710
2891
  }) : window.getSelection().removeAllRanges();
2711
2892
  } catch {}
2712
2893
  },
2713
2894
  _dragStarted: function(e, t) {
2714
- if (da = !1, q && W) {
2715
- H("dragStarted", this, { evt: t }), this.nativeDraggable && I(document, "dragover", Va);
2895
+ if (ja = !1, J && G) {
2896
+ U("dragStarted", this, { evt: t }), this.nativeDraggable && L(document, "dragover", so);
2716
2897
  var n = this.options;
2717
- !e && R(W, n.dragClass, !1), R(W, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), U({
2898
+ !e && z(G, n.dragClass, !1), z(G, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), W({
2718
2899
  sortable: this,
2719
2900
  name: "start",
2720
2901
  originalEvent: t
@@ -2722,33 +2903,33 @@ Q.prototype = {
2722
2903
  } else this._nulling();
2723
2904
  },
2724
2905
  _emulateDragOver: function() {
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;
2728
- if (W.parentNode[V]._isOutsideThisEl(e), t) do {
2729
- if (t[V]) {
2906
+ if (Fa) {
2907
+ this._lastX = Fa.clientX, this._lastY = Fa.clientY, io();
2908
+ for (var e = document.elementFromPoint(Fa.clientX, Fa.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Fa.clientX, Fa.clientY), e !== t);) t = e;
2909
+ if (G.parentNode[H]._isOutsideThisEl(e), t) do {
2910
+ if (t[H]) {
2730
2911
  var n = void 0;
2731
- if (n = t[V]._onDragOver({
2732
- clientX: ha.clientX,
2733
- clientY: ha.clientY,
2912
+ if (n = t[H]._onDragOver({
2913
+ clientX: Fa.clientX,
2914
+ clientY: Fa.clientY,
2734
2915
  target: e,
2735
2916
  rootEl: t
2736
2917
  }), n && !this.options.dragoverBubble) break;
2737
2918
  }
2738
2919
  e = t;
2739
2920
  } while (t = t.parentNode);
2740
- za();
2921
+ ao();
2741
2922
  }
2742
2923
  },
2743
2924
  _onTouchMove: function(e) {
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) {
2925
+ if (Pa) {
2926
+ var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q && Zi(q, !0), o = q && a && a.a, s = q && a && a.d, c = Xa && Z && ia(Z), l = (i.clientX - Pa.clientX + r.x) / (o || 1) + (c ? c[0] - Ka[0] : 0) / (o || 1), u = (i.clientY - Pa.clientY + r.y) / (s || 1) + (c ? c[1] - Ka[1] : 0) / (s || 1);
2927
+ if (!Q.active && !ja) {
2747
2928
  if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
2748
2929
  this._onDragStart(e, !0);
2749
2930
  }
2750
- if (K) {
2751
- a ? (a.e += l - (ga || 0), a.f += u - (_a || 0)) : a = {
2931
+ if (q) {
2932
+ a ? (a.e += l - (Ia || 0), a.f += u - (La || 0)) : a = {
2752
2933
  a: 1,
2753
2934
  b: 0,
2754
2935
  c: 0,
@@ -2757,39 +2938,39 @@ Q.prototype = {
2757
2938
  f: u
2758
2939
  };
2759
2940
  var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
2760
- z(K, "webkitTransform", d), z(K, "mozTransform", d), z(K, "msTransform", d), z(K, "transform", d), ga = l, _a = u, ha = i;
2941
+ B(q, "webkitTransform", d), B(q, "mozTransform", d), B(q, "msTransform", d), B(q, "transform", d), Ia = l, La = u, Fa = i;
2761
2942
  }
2762
2943
  e.cancelable && e.preventDefault();
2763
2944
  }
2764
2945
  },
2765
2946
  _appendGhost: function() {
2766
- if (!K) {
2767
- var e = this.options.fallbackOnBody ? document.body : q, t = B(W, !0, Aa, !0, e), n = this.options;
2768
- if (Aa) {
2769
- for (Z = e; z(Z, "position") === "static" && z(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
2770
- Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = Pi()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = Pi(), Ea = zi(Z);
2947
+ if (!q) {
2948
+ var e = this.options.fallbackOnBody ? document.body : J, t = V(G, !0, Xa, !0, e), n = this.options;
2949
+ if (Xa) {
2950
+ for (Z = e; B(Z, "position") === "static" && B(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
2951
+ Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = $i()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = $i(), Ka = ia(Z);
2771
2952
  }
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 + "%");
2953
+ q = G.cloneNode(!0), z(q, n.ghostClass, !1), z(q, n.fallbackClass, !0), z(q, n.dragClass, !0), B(q, "transition", ""), B(q, "transform", ""), B(q, "box-sizing", "border-box"), B(q, "margin", 0), B(q, "top", t.top), B(q, "left", t.left), B(q, "width", t.width), B(q, "height", t.height), B(q, "opacity", "0.8"), B(q, "position", Xa ? "absolute" : "fixed"), B(q, "zIndex", "100000"), B(q, "pointerEvents", "none"), Q.ghost = q, e.appendChild(q), B(q, "transform-origin", Ra / parseInt(q.style.width) * 100 + "% " + za / parseInt(q.style.height) * 100 + "%");
2773
2954
  }
2774
2955
  },
2775
2956
  _onDragStart: function(e, t) {
2776
2957
  var n = this, r = e.dataTransfer, i = n.options;
2777
- if (H("dragStart", this, { evt: e }), Q.eventCanceled) {
2958
+ if (U("dragStart", this, { evt: e }), Q.eventCanceled) {
2778
2959
  this._onDrop();
2779
2960
  return;
2780
2961
  }
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() {
2782
- H("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || q.insertBefore(J, W), n._hideClone(), U({
2962
+ U("setupClone", this), Q.eventCanceled || (Y = pa(G), Y.removeAttribute("id"), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), z(Y, this.options.chosenClass, !1), Q.clone = Y), n.cloneId = yo(function() {
2963
+ U("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || J.insertBefore(Y, G), n._hideClone(), W({
2783
2964
  sortable: n,
2784
2965
  name: "clone"
2785
2966
  }));
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");
2967
+ }), !t && z(G, i.dragClass, !0), t ? (Ma = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (R(document, "mouseup", n._onDrop), R(document, "touchend", n._onDrop), R(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, G)), L(document, "drop", n), B(G, "transform", "translateZ(0)")), ja = !0, n._dragStartId = yo(n._dragStarted.bind(n, t, e)), L(document, "selectstart", n), Ba = !0, Ui && B(document.body, "user-select", "none");
2787
2968
  },
2788
2969
  _onDragOver: function(e) {
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;
2970
+ var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = Aa === s, u = o.sort, d = X || c, f, p = this, m = !1;
2971
+ if (qa) return;
2791
2972
  function h(o, s) {
2792
- H(o, p, pi({
2973
+ U(o, p, Mi({
2793
2974
  evt: e,
2794
2975
  isOwner: l,
2795
2976
  axis: f ? "vertical" : "horizontal",
@@ -2801,7 +2982,7 @@ Q.prototype = {
2801
2982
  target: n,
2802
2983
  completed: _,
2803
2984
  onMove: function(n, i) {
2804
- return Ua(q, t, W, r, n, B(n), e, i);
2985
+ return lo(J, t, G, r, n, V(n), e, i);
2805
2986
  },
2806
2987
  changed: v
2807
2988
  }, s));
@@ -2810,119 +2991,119 @@ Q.prototype = {
2810
2991
  h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
2811
2992
  }
2812
2993
  function _(r) {
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() {
2994
+ return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (z(G, X ? X.options.ghostClass : c.options.ghostClass, !1), z(G, o.ghostClass, !0)), X !== p && p !== Q.active ? X = p : p === Q.active && X && (X = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
2814
2995
  h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
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;
2996
+ }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (Va = null), !o.dragoverBubble && !e.rootEl && n !== document && (G.parentNode[H]._isOutsideThisEl(e.target), !r && oo(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
2816
2997
  }
2817
2998
  function v() {
2818
- Y = Ri(W), la = Ri(W, o.draggable), U({
2999
+ Da = ra(G), ka = ra(G, o.draggable), W({
2819
3000
  sortable: p,
2820
3001
  name: "change",
2821
3002
  toEl: t,
2822
- newIndex: Y,
2823
- newDraggableIndex: la,
3003
+ newIndex: Da,
3004
+ newDraggableIndex: ka,
2824
3005
  originalEvent: e
2825
3006
  });
2826
3007
  }
2827
- if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Ai(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
2828
- if (W.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
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))) {
2830
- if (f = this._getDirection(e, n) === "vertical", r = B(W), h("dragOverValid"), Q.eventCanceled) return m;
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) {
2834
- if (y === W) return _(!1);
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);
2838
- if (b === W) return _(!1);
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);
3008
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Yi(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
3009
+ if (G.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
3010
+ if (Ma = !1, c && !o.disabled && (l ? u || (a = K !== J) : X === this || (this.lastPutMode = Aa.checkPull(this, c, G, e)) && s.checkPut(this, c, G, e))) {
3011
+ if (f = this._getDirection(e, n) === "vertical", r = V(G), h("dragOverValid"), Q.eventCanceled) return m;
3012
+ if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (Ca ? J.insertBefore(G, Ca) : J.appendChild(G)), _(!0);
3013
+ var y = na(t, o.draggable);
3014
+ if (!y || mo(e, f, this) && !y.animated) {
3015
+ if (y === G) return _(!1);
3016
+ if (y && t === e.target && (n = y), n && (i = V(n)), lo(J, t, G, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(G, y.nextSibling) : t.appendChild(G), K = t, v(), _(!0);
3017
+ } else if (y && po(e, f, this)) {
3018
+ var b = ta(t, 0, o, !0);
3019
+ if (b === G) return _(!1);
3020
+ if (n = b, i = V(n), lo(J, t, G, r, n, i, e, !1) !== !1) return g(), t.insertBefore(G, b), K = t, v(), _(!0);
2840
3021
  } else if (n.parentNode === t) {
2841
- i = B(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);
3022
+ i = V(n);
3023
+ var x = 0, S, C = G.parentNode !== t, w = !to(G.animated && G.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = ea(n, "top", "top") || ea(G, "top", "top"), ee = E ? E.scrollTop : void 0;
3024
+ Va !== n && (S = i[T], Ua = !1, Wa = !w && o.invertSwap || C), x = ho(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Wa, Va === n);
2844
3025
  var D;
2845
3026
  if (x !== 0) {
2846
- var O = Ri(W);
3027
+ var O = ra(G);
2847
3028
  do
2848
- O -= x, D = G.children[O];
2849
- while (D && (z(D, "display") === "none" || D === K));
3029
+ O -= x, D = K.children[O];
3030
+ while (D && (B(D, "display") === "none" || D === q));
2850
3031
  }
2851
3032
  if (x === 0 || D === n) return _(!1);
2852
- xa = n, Sa = x;
3033
+ Va = n, Ha = x;
2853
3034
  var k = n.nextElementSibling, te = !1;
2854
3035
  te = x === 1;
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);
3036
+ var A = lo(J, t, G, r, n, i, e, te);
3037
+ if (A !== !1) return (A === 1 || A === -1) && (te = A === 1), qa = !0, setTimeout(fo, 30), g(), te && !k ? t.appendChild(G) : n.parentNode.insertBefore(G, te ? k : n), E && fa(E, 0, ee - E.scrollTop), K = G.parentNode, S !== void 0 && !Wa && (Ga = Math.abs(S - V(n)[T])), v(), _(!0);
2857
3038
  }
2858
- if (t.contains(W)) return _(!1);
3039
+ if (t.contains(G)) return _(!1);
2859
3040
  }
2860
3041
  return !1;
2861
3042
  },
2862
3043
  _ignoreWhileAnimating: null,
2863
3044
  _offMoveEvents: function() {
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);
3045
+ R(document, "mousemove", this._onTouchMove), R(document, "touchmove", this._onTouchMove), R(document, "pointermove", this._onTouchMove), R(document, "dragover", oo), R(document, "mousemove", oo), R(document, "touchmove", oo);
2865
3046
  },
2866
3047
  _offUpEvents: function() {
2867
3048
  var e = this.el.ownerDocument;
2868
- L(e, "mouseup", this._onDrop), L(e, "touchend", this._onDrop), L(e, "pointerup", this._onDrop), L(e, "touchcancel", this._onDrop), L(document, "selectstart", this);
3049
+ R(e, "mouseup", this._onDrop), R(e, "touchend", this._onDrop), R(e, "pointerup", this._onDrop), R(e, "touchcancel", this._onDrop), R(document, "selectstart", this);
2869
3050
  },
2870
3051
  _onDrop: function(e) {
2871
3052
  var t = this.el, n = this.options;
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) {
3053
+ if (Da = ra(G), ka = ra(G, n.draggable), U("drop", this, { evt: e }), K = G && G.parentNode, Da = ra(G), ka = ra(G, n.draggable), Q.eventCanceled) {
2873
3054
  this._nulling();
2874
3055
  return;
2875
3056
  }
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({
3057
+ ja = !1, Wa = !1, Ua = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), bo(this.cloneId), bo(this._dragStartId), this.nativeDraggable && (R(document, "drop", this), R(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ui && B(document.body, "user-select", ""), B(G, "transform", ""), e && (Ba && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), q && q.parentNode && q.parentNode.removeChild(q), (J === K || X && X.lastPutMode !== "clone") && Y && Y.parentNode && Y.parentNode.removeChild(Y), G && (this.nativeDraggable && R(G, "dragend", this), uo(G), G.style["will-change"] = "", Ba && !ja && z(G, X ? X.options.ghostClass : this.options.ghostClass, !1), z(G, this.options.chosenClass, !1), W({
2877
3058
  sortable: this,
2878
3059
  name: "unchoose",
2879
- toEl: G,
3060
+ toEl: K,
2880
3061
  newIndex: null,
2881
3062
  newDraggableIndex: null,
2882
3063
  originalEvent: e
2883
- }), q === G ? Y !== sa && Y >= 0 && (U({
3064
+ }), J === K ? Da !== Ea && Da >= 0 && (W({
2884
3065
  sortable: this,
2885
3066
  name: "update",
2886
- toEl: G,
3067
+ toEl: K,
2887
3068
  originalEvent: e
2888
- }), U({
3069
+ }), W({
2889
3070
  sortable: this,
2890
3071
  name: "sort",
2891
- toEl: G,
3072
+ toEl: K,
2892
3073
  originalEvent: e
2893
- })) : (Y >= 0 && (U({
2894
- rootEl: G,
3074
+ })) : (Da >= 0 && (W({
3075
+ rootEl: K,
2895
3076
  name: "add",
2896
- toEl: G,
2897
- fromEl: q,
3077
+ toEl: K,
3078
+ fromEl: J,
2898
3079
  originalEvent: e
2899
- }), U({
3080
+ }), W({
2900
3081
  sortable: this,
2901
3082
  name: "remove",
2902
- toEl: G,
3083
+ toEl: K,
2903
3084
  originalEvent: e
2904
- }), U({
2905
- rootEl: G,
3085
+ }), W({
3086
+ rootEl: K,
2906
3087
  name: "sort",
2907
- toEl: G,
2908
- fromEl: q,
3088
+ toEl: K,
3089
+ fromEl: J,
2909
3090
  originalEvent: e
2910
- }), U({
3091
+ }), W({
2911
3092
  sortable: this,
2912
3093
  name: "sort",
2913
- toEl: G,
3094
+ toEl: K,
2914
3095
  originalEvent: e
2915
- })), X && X.save()), Q.active && ((Y == null || Y === -1) && (Y = sa, la = ca), U({
3096
+ })), X && X.save()), Q.active && ((Da == null || Da === -1) && (Da = Ea, ka = Oa), W({
2916
3097
  sortable: this,
2917
3098
  name: "end",
2918
- toEl: G,
3099
+ toEl: K,
2919
3100
  originalEvent: e
2920
3101
  }), this.save()))), this._nulling();
2921
3102
  },
2922
3103
  _nulling: function() {
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) {
3104
+ U("nulling", this), J = G = K = q = Ca = Y = wa = Ta = Pa = Fa = Ba = Da = ka = Ea = Oa = Va = Ha = X = Aa = Q.dragged = Q.ghost = Q.clone = Q.active = null, Ja.forEach(function(e) {
2924
3105
  e.checked = !0;
2925
- }), Oa.length = ga = _a = 0;
3106
+ }), Ja.length = Ia = La = 0;
2926
3107
  },
2927
3108
  handleEvent: function(e) {
2928
3109
  switch (e.type) {
@@ -2932,7 +3113,7 @@ Q.prototype = {
2932
3113
  break;
2933
3114
  case "dragenter":
2934
3115
  case "dragover":
2935
- W && (this._onDragOver(e), Ha(e));
3116
+ G && (this._onDragOver(e), co(e));
2936
3117
  break;
2937
3118
  case "selectstart":
2938
3119
  e.preventDefault();
@@ -2940,14 +3121,14 @@ Q.prototype = {
2940
3121
  }
2941
3122
  },
2942
3123
  toArray: function() {
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));
3124
+ for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Yi(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || _o(t));
2944
3125
  return e;
2945
3126
  },
2946
3127
  sort: function(e, t) {
2947
3128
  var n = {}, r = this.el;
2948
3129
  this.toArray().forEach(function(e, t) {
2949
3130
  var i = r.children[t];
2950
- Ai(i, this.options.draggable, r, !1) && (n[e] = i);
3131
+ Yi(i, this.options.draggable, r, !1) && (n[e] = i);
2951
3132
  }, this), t && this.captureAnimationState(), e.forEach(function(e) {
2952
3133
  n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
2953
3134
  }), t && this.animateAll();
@@ -2957,25 +3138,25 @@ Q.prototype = {
2957
3138
  e && e.set && e.set(this);
2958
3139
  },
2959
3140
  closest: function(e, t) {
2960
- return Ai(e, t || this.options.draggable, this.el, !1);
3141
+ return Yi(e, t || this.options.draggable, this.el, !1);
2961
3142
  },
2962
3143
  option: function(e, t) {
2963
3144
  var n = this.options;
2964
3145
  if (t === void 0) return n[e];
2965
- var r = ta.modifyOption(this, e, t);
2966
- r === void 0 ? n[e] = t : n[e] = r, e === "group" && La(n);
3146
+ var r = ba.modifyOption(this, e, t);
3147
+ r === void 0 ? n[e] = t : n[e] = r, e === "group" && ro(n);
2967
3148
  },
2968
3149
  destroy: function() {
2969
- H("destroy", this);
3150
+ U("destroy", this);
2970
3151
  var e = this.el;
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) {
3152
+ e[H] = null, R(e, "mousedown", this._onTapStart), R(e, "touchstart", this._onTapStart), R(e, "pointerdown", this._onTapStart), this.nativeDraggable && (R(e, "dragover", this), R(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
2972
3153
  e.removeAttribute("draggable");
2973
- }), this._onDrop(), this._disableDelayedDragEvents(), pa.splice(pa.indexOf(this.el), 1), this.el = e = null;
3154
+ }), this._onDrop(), this._disableDelayedDragEvents(), Na.splice(Na.indexOf(this.el), 1), this.el = e = null;
2974
3155
  },
2975
3156
  _hideClone: function() {
2976
- if (!oa) {
2977
- if (H("hideClone", this), Q.eventCanceled) return;
2978
- z(J, "display", "none"), this.options.removeCloneOnHide && J.parentNode && J.parentNode.removeChild(J), oa = !0;
3157
+ if (!Ta) {
3158
+ if (U("hideClone", this), Q.eventCanceled) return;
3159
+ B(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), Ta = !0;
2979
3160
  }
2980
3161
  },
2981
3162
  _showClone: function(e) {
@@ -2983,99 +3164,99 @@ Q.prototype = {
2983
3164
  this._hideClone();
2984
3165
  return;
2985
3166
  }
2986
- if (oa) {
2987
- if (H("showClone", this), Q.eventCanceled) return;
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;
3167
+ if (Ta) {
3168
+ if (U("showClone", this), Q.eventCanceled) return;
3169
+ G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) : Ca ? J.insertBefore(Y, Ca) : J.appendChild(Y), this.options.group.revertClone && this.animate(G, Y), B(Y, "display", ""), Ta = !1;
2989
3170
  }
2990
3171
  }
2991
3172
  };
2992
- function Ha(e) {
3173
+ function co(e) {
2993
3174
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
2994
3175
  }
2995
- function Ua(e, t, n, r, i, a, o, s) {
2996
- var c, l = e[V], u = l.options.onMove, d;
2997
- return window.CustomEvent && !xi && !Si ? c = new CustomEvent("move", {
3176
+ function lo(e, t, n, r, i, a, o, s) {
3177
+ var c, l = e[H], u = l.options.onMove, d;
3178
+ return window.CustomEvent && !Bi && !Vi ? c = new CustomEvent("move", {
2998
3179
  bubbles: !0,
2999
3180
  cancelable: !0
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;
3181
+ }) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || V(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
3001
3182
  }
3002
- function Wa(e) {
3183
+ function uo(e) {
3003
3184
  e.draggable = !1;
3004
3185
  }
3005
- function Ga() {
3006
- Da = !1;
3186
+ function fo() {
3187
+ qa = !1;
3007
3188
  }
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;
3189
+ function po(e, t, n) {
3190
+ var r = V(ta(n.el, 0, n.options, !0)), i = ma(n.el, n.options, q), a = 10;
3010
3191
  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;
3011
3192
  }
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;
3193
+ function mo(e, t, n) {
3194
+ var r = V(na(n.el, n.options.draggable)), i = ma(n.el, n.options, q), a = 10;
3014
3195
  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;
3015
3196
  }
3016
- function Ja(e, t, n, r, i, a, o, s) {
3197
+ function ho(e, t, n, r, i, a, o, s) {
3017
3198
  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;
3018
3199
  if (!o) {
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);
3200
+ if (s && Ga < l * i) {
3201
+ if (!Ua && (Ha === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Ua = !0), Ua) f = !0;
3202
+ else if (Ha === 1 ? c < u + Ga : c > d - Ga) return -Ha;
3203
+ } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return go(t);
3023
3204
  }
3024
3205
  return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
3025
3206
  }
3026
- function Ya(e) {
3027
- return Ri(W) < Ri(e) ? 1 : -1;
3207
+ function go(e) {
3208
+ return ra(G) < ra(e) ? 1 : -1;
3028
3209
  }
3029
- function Xa(e) {
3210
+ function _o(e) {
3030
3211
  for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
3031
3212
  return r.toString(36);
3032
3213
  }
3033
- function Za(e) {
3034
- Oa.length = 0;
3214
+ function vo(e) {
3215
+ Ja.length = 0;
3035
3216
  for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
3036
3217
  var r = t[n];
3037
- r.checked && Oa.push(r);
3218
+ r.checked && Ja.push(r);
3038
3219
  }
3039
3220
  }
3040
- function Qa(e) {
3221
+ function yo(e) {
3041
3222
  return setTimeout(e, 0);
3042
3223
  }
3043
- function $a(e) {
3224
+ function bo(e) {
3044
3225
  return clearTimeout(e);
3045
3226
  }
3046
- ka && I(document, "touchmove", function(e) {
3047
- (Q.active || da) && e.cancelable && e.preventDefault();
3227
+ Ya && L(document, "touchmove", function(e) {
3228
+ (Q.active || ja) && e.cancelable && e.preventDefault();
3048
3229
  }), Q.utils = {
3049
- on: I,
3050
- off: L,
3051
- css: z,
3052
- find: Ni,
3230
+ on: L,
3231
+ off: R,
3232
+ css: B,
3233
+ find: Qi,
3053
3234
  is: function(e, t) {
3054
- return !!Ai(e, t, e, !1);
3055
- },
3056
- extend: Hi,
3057
- throttle: Gi,
3058
- closest: Ai,
3059
- toggleClass: R,
3060
- clone: Ji,
3061
- index: Ri,
3062
- nextTick: Qa,
3063
- cancelNextTick: $a,
3064
- detectDirection: Pa,
3065
- getChild: Ii
3235
+ return !!Yi(e, t, e, !1);
3236
+ },
3237
+ extend: sa,
3238
+ throttle: ua,
3239
+ closest: Yi,
3240
+ toggleClass: z,
3241
+ clone: pa,
3242
+ index: ra,
3243
+ nextTick: yo,
3244
+ cancelNextTick: bo,
3245
+ detectDirection: eo,
3246
+ getChild: ta
3066
3247
  }, Q.get = function(e) {
3067
- return e[V];
3248
+ return e[H];
3068
3249
  }, Q.mount = function() {
3069
3250
  var e = [...arguments];
3070
3251
  e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
3071
3252
  if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
3072
- e.utils && (Q.utils = pi(pi({}, Q.utils), e.utils)), ta.mount(e);
3253
+ e.utils && (Q.utils = Mi(Mi({}, Q.utils), e.utils)), ba.mount(e);
3073
3254
  });
3074
3255
  }, Q.create = function(e, t) {
3075
3256
  return new Q(e, t);
3076
- }, Q.version = yi;
3077
- var $ = [], eo, to, no = !1, ro, io, ao, oo;
3078
- function so() {
3257
+ }, Q.version = Ri;
3258
+ var $ = [], xo, So, Co = !1, wo, To, Eo, Do;
3259
+ function Oo() {
3079
3260
  function e() {
3080
3261
  for (var e in this.defaults = {
3081
3262
  scroll: !0,
@@ -3088,70 +3269,70 @@ function so() {
3088
3269
  return e.prototype = {
3089
3270
  dragStarted: function(e) {
3090
3271
  var t = e.originalEvent;
3091
- this.sortable.nativeDraggable ? I(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? I(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? I(document, "touchmove", this._handleFallbackAutoScroll) : I(document, "mousemove", this._handleFallbackAutoScroll);
3272
+ this.sortable.nativeDraggable ? L(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? L(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? L(document, "touchmove", this._handleFallbackAutoScroll) : L(document, "mousemove", this._handleFallbackAutoScroll);
3092
3273
  },
3093
3274
  dragOverCompleted: function(e) {
3094
3275
  var t = e.originalEvent;
3095
3276
  !this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
3096
3277
  },
3097
3278
  drop: function() {
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();
3279
+ this.sortable.nativeDraggable ? R(document, "dragover", this._handleAutoScroll) : (R(document, "pointermove", this._handleFallbackAutoScroll), R(document, "touchmove", this._handleFallbackAutoScroll), R(document, "mousemove", this._handleFallbackAutoScroll)), Ao(), ko(), da();
3099
3280
  },
3100
3281
  nulling: function() {
3101
- ao = to = eo = no = oo = ro = io = null, $.length = 0;
3282
+ Eo = So = xo = Co = Do = wo = To = null, $.length = 0;
3102
3283
  },
3103
3284
  _handleFallbackAutoScroll: function(e) {
3104
3285
  this._handleAutoScroll(e, !0);
3105
3286
  },
3106
3287
  _handleAutoScroll: function(e, t) {
3107
3288
  var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, 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);
3289
+ if (Eo = e, t || this.options.forceAutoScrollFallback || Vi || Bi || Ui) {
3290
+ jo(e, this.options, a, t);
3291
+ var o = oa(a, !0);
3292
+ Co && (!Do || r !== wo || i !== To) && (Do && Ao(), Do = setInterval(function() {
3293
+ var a = oa(document.elementFromPoint(r, i), !0);
3294
+ a !== o && (o = a, ko()), jo(e, n.options, a, t);
3295
+ }, 10), wo = r, To = i);
3115
3296
  } else {
3116
- if (!this.options.bubbleScroll || Vi(a, !0) === Pi()) {
3117
- co();
3297
+ if (!this.options.bubbleScroll || oa(a, !0) === $i()) {
3298
+ ko();
3118
3299
  return;
3119
3300
  }
3120
- uo(e, this.options, Vi(a, !1), !1);
3301
+ jo(e, this.options, oa(a, !1), !1);
3121
3302
  }
3122
3303
  }
3123
- }, gi(e, {
3304
+ }, Fi(e, {
3124
3305
  pluginName: "scroll",
3125
3306
  initializeByDefault: !0
3126
3307
  });
3127
3308
  }
3128
- function co() {
3309
+ function ko() {
3129
3310
  $.forEach(function(e) {
3130
3311
  clearInterval(e.pid);
3131
3312
  }), $ = [];
3132
3313
  }
3133
- function lo() {
3134
- clearInterval(oo);
3314
+ function Ao() {
3315
+ clearInterval(Do);
3135
3316
  }
3136
- var uo = Gi(function(e, t, n, r) {
3317
+ var jo = ua(function(e, t, n, r) {
3137
3318
  if (t.scroll) {
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;
3319
+ var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = $i(), l = !1, u;
3320
+ So !== n && (So = n, ko(), xo = t.scroll, u = t.scrollFn, xo === !0 && (xo = oa(n, !0)));
3321
+ var d = 0, f = xo;
3141
3322
  do {
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;
3323
+ var p = f, m = V(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, w = p.scrollHeight, T = B(p), E = p.scrollLeft, ee = p.scrollTop;
3143
3324
  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"));
3144
3325
  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);
3145
3326
  if (!$[d]) for (var k = 0; k <= d; k++) $[k] || ($[k] = {});
3146
3327
  ($[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() {
3147
- r && this.layer === 0 && Q.active._onTouchMove(ao);
3328
+ r && this.layer === 0 && Q.active._onTouchMove(Eo);
3148
3329
  var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
3149
- typeof u == "function" && u.call(Q.dragged.parentNode[V], n, t, e, ao, $[this.layer].el) !== "continue" || qi($[this.layer].el, n, t);
3330
+ typeof u == "function" && u.call(Q.dragged.parentNode[H], n, t, e, Eo, $[this.layer].el) !== "continue" || fa($[this.layer].el, n, t);
3150
3331
  }.bind({ layer: d }), 24))), d++;
3151
- } while (t.bubbleScroll && f !== c && (f = Vi(f, !1)));
3152
- no = l;
3332
+ } while (t.bubbleScroll && f !== c && (f = oa(f, !1)));
3333
+ Co = l;
3153
3334
  }
3154
- }, 30), fo = function(e) {
3335
+ }, 30), Mo = function(e) {
3155
3336
  var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
3156
3337
  if (t) {
3157
3338
  var c = n || i;
@@ -3163,8 +3344,8 @@ var uo = Gi(function(e, t, n, r) {
3163
3344
  }));
3164
3345
  }
3165
3346
  };
3166
- function po() {}
3167
- po.prototype = {
3347
+ function No() {}
3348
+ No.prototype = {
3168
3349
  startIndex: null,
3169
3350
  dragStart: function(e) {
3170
3351
  var t = e.oldDraggableIndex;
@@ -3173,72 +3354,72 @@ po.prototype = {
3173
3354
  onSpill: function(e) {
3174
3355
  var t = e.dragEl, n = e.putSortable;
3175
3356
  this.sortable.captureAnimationState(), n && n.captureAnimationState();
3176
- var r = Ii(this.sortable.el, this.startIndex, this.options);
3357
+ var r = ta(this.sortable.el, this.startIndex, this.options);
3177
3358
  r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
3178
3359
  },
3179
- drop: fo
3180
- }, gi(po, { pluginName: "revertOnSpill" });
3181
- function mo() {}
3182
- mo.prototype = {
3360
+ drop: Mo
3361
+ }, Fi(No, { pluginName: "revertOnSpill" });
3362
+ function Po() {}
3363
+ Po.prototype = {
3183
3364
  onSpill: function(e) {
3184
3365
  var t = e.dragEl, n = e.putSortable || this.sortable;
3185
3366
  n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
3186
3367
  },
3187
- drop: fo
3188
- }, gi(mo, { pluginName: "removeOnSpill" }), Q.mount(new so()), Q.mount(mo, po);
3189
- function ho(e) {
3368
+ drop: Mo
3369
+ }, Fi(Po, { pluginName: "removeOnSpill" }), Q.mount(new Oo()), Q.mount(Po, No);
3370
+ function Fo(e) {
3190
3371
  return e == null ? e : JSON.parse(JSON.stringify(e));
3191
3372
  }
3192
- function go(e) {
3193
- oe() && ee(e);
3373
+ function Io(e) {
3374
+ ae() && ee(e);
3194
3375
  }
3195
- function _o(e) {
3196
- oe() ? u(e) : r(e);
3376
+ function Lo(e) {
3377
+ ae() ? u(e) : r(e);
3197
3378
  }
3198
- var vo = null, yo = null;
3199
- function bo(e = null, t = null) {
3200
- vo = e, yo = t;
3379
+ var Ro = null, zo = null;
3380
+ function Bo(e = null, t = null) {
3381
+ Ro = e, zo = t;
3201
3382
  }
3202
- function xo() {
3383
+ function Vo() {
3203
3384
  return {
3204
- data: vo,
3205
- clonedData: yo
3385
+ data: Ro,
3386
+ clonedData: zo
3206
3387
  };
3207
3388
  }
3208
- var So = Symbol("cloneElement");
3209
- function Co(...e) {
3210
- let t = oe()?.proxy, n = null, i = e[0], [, o, c] = e;
3211
- Array.isArray(j(o)) || (c = o, o = null);
3212
- let l = null, { immediate: u = !0, clone: d = ho, forceFallback: f, fallbackOnBody: p, customUpdate: m } = j(c) ?? {};
3389
+ var Ho = Symbol("cloneElement");
3390
+ function Uo(...e) {
3391
+ let t = ae()?.proxy, n = null, i = e[0], [, o, c] = e;
3392
+ Array.isArray(M(o)) || (c = o, o = null);
3393
+ let l = null, { immediate: u = !0, clone: d = Fo, forceFallback: f, fallbackOnBody: p, customUpdate: m } = M(c) ?? {};
3213
3394
  function h(e) {
3214
3395
  let { from: t, oldIndex: r, item: i } = e, a = Array.from(t.childNodes);
3215
3396
  n = f && !p ? a.slice(0, -1) : a;
3216
- let s = j(j(o)?.[r]), c = d(s);
3217
- bo(s, c), i[So] = c;
3397
+ let s = M(M(o)?.[r]), c = d(s);
3398
+ Bo(s, c), i[Ho] = c;
3218
3399
  }
3219
3400
  function g(e) {
3220
- let t = e.item[So];
3221
- if (!ti(t)) {
3222
- if (ii(e.item), a(o)) {
3223
- let n = [...j(o)];
3224
- o.value = ei(n, e.newDraggableIndex, t);
3401
+ let t = e.item[Ho];
3402
+ if (!bi(t)) {
3403
+ if (Ci(e.item), a(o)) {
3404
+ let n = [...M(o)];
3405
+ o.value = yi(n, e.newDraggableIndex, t);
3225
3406
  return;
3226
3407
  }
3227
- ei(j(o), e.newDraggableIndex, t);
3408
+ yi(M(o), e.newDraggableIndex, t);
3228
3409
  }
3229
3410
  }
3230
3411
  function _(e) {
3231
3412
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: i, pullMode: s, clone: c } = e;
3232
- if (ri(t, n, r), s === "clone") {
3233
- ii(c);
3413
+ if (Si(t, n, r), s === "clone") {
3414
+ Ci(c);
3234
3415
  return;
3235
3416
  }
3236
3417
  if (a(o)) {
3237
- let e = [...j(o)];
3238
- o.value = $r(e, i);
3418
+ let e = [...M(o)];
3419
+ o.value = vi(e, i);
3239
3420
  return;
3240
3421
  }
3241
- $r(j(o), i);
3422
+ vi(M(o), i);
3242
3423
  }
3243
3424
  function v(e) {
3244
3425
  if (m) {
@@ -3246,12 +3427,12 @@ function Co(...e) {
3246
3427
  return;
3247
3428
  }
3248
3429
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: i, newDraggableIndex: s } = e;
3249
- if (ii(n), ri(t, n, r), a(o)) {
3250
- let e = [...j(o)];
3251
- o.value = Xr(e, i, s);
3430
+ if (Ci(n), Si(t, n, r), a(o)) {
3431
+ let e = [...M(o)];
3432
+ o.value = hi(e, i, s);
3252
3433
  return;
3253
3434
  }
3254
- Xr(j(o), i, s);
3435
+ hi(M(o), i, s);
3255
3436
  }
3256
3437
  function y(e) {
3257
3438
  let { newIndex: t, oldIndex: i, from: a, to: o } = e, s = null, c = t === i && a === o;
@@ -3270,7 +3451,7 @@ function Co(...e) {
3270
3451
  n = null;
3271
3452
  }
3272
3453
  r(() => {
3273
- if (bo(), s) throw s;
3454
+ if (Bo(), s) throw s;
3274
3455
  });
3275
3456
  }
3276
3457
  let b = {
@@ -3281,20 +3462,20 @@ function Co(...e) {
3281
3462
  onEnd: y
3282
3463
  };
3283
3464
  function x(e) {
3284
- let n = j(i);
3285
- return e ||= ni(n) ? ai(n, t?.$el) : n, e && !ci(e) && (e = e.$el), e || Yr("Root element not found"), e;
3465
+ let n = M(i);
3466
+ return e ||= xi(n) ? wi(n, t?.$el) : n, e && !Di(e) && (e = e.$el), e || mi("Root element not found"), e;
3286
3467
  }
3287
3468
  function S() {
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);
3469
+ let e = M(c) ?? {}, { immediate: t, clone: n } = e, r = di(e, ["immediate", "clone"]);
3470
+ return Oi(r, (e, t) => {
3471
+ ki(e) && (r[e] = (e, ...n) => (Ai(e, Vo()), t(e, ...n)));
3472
+ }), Ei(o === null ? {} : b, r);
3292
3473
  }
3293
3474
  let C = (e) => {
3294
3475
  e = x(e), l && w.destroy(), l = new Q(e, S());
3295
3476
  };
3296
3477
  s(() => c, () => {
3297
- l && li(S(), (e, t) => {
3478
+ l && Oi(S(), (e, t) => {
3298
3479
  l?.option(e, t);
3299
3480
  });
3300
3481
  }, { deep: !0 });
@@ -3307,15 +3488,15 @@ function Co(...e) {
3307
3488
  toArray: () => l?.toArray(),
3308
3489
  closest: (...e) => l?.closest(...e)
3309
3490
  };
3310
- return _o(() => {
3491
+ return Lo(() => {
3311
3492
  u && C();
3312
- }), go(w.destroy), Gr({
3493
+ }), Io(w.destroy), ui({
3313
3494
  start: C,
3314
3495
  pause: () => w?.option("disabled", !0),
3315
3496
  resume: () => w?.option("disabled", !1)
3316
3497
  }, w);
3317
3498
  }
3318
- var wo = [
3499
+ var Wo = [
3319
3500
  "update",
3320
3501
  "start",
3321
3502
  "add",
@@ -3328,7 +3509,7 @@ var wo = [
3328
3509
  "clone",
3329
3510
  "move",
3330
3511
  "change"
3331
- ], To = y({
3512
+ ], Go = y({
3332
3513
  name: "VueDraggable",
3333
3514
  model: {
3334
3515
  prop: "modelValue",
@@ -3378,37 +3559,37 @@ var wo = [
3378
3559
  "tag",
3379
3560
  "target",
3380
3561
  "customUpdate",
3381
- ...wo.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
3562
+ ...Wo.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
3382
3563
  ],
3383
- emits: ["update:modelValue", ...wo],
3564
+ emits: ["update:modelValue", ...Wo],
3384
3565
  setup(e, { slots: t, emit: n, expose: r, attrs: i }) {
3385
- let a = wo.reduce((e, t) => {
3566
+ let a = Wo.reduce((e, t) => {
3386
3567
  let r = `on${t.replace(/^\S/, (e) => e.toUpperCase())}`;
3387
3568
  return e[r] = (...e) => n(t, ...e), e;
3388
3569
  }, {}), s = x(() => {
3389
- let t = S(e), { modelValue: n } = t, r = Kr(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
3390
- let r = j(n);
3570
+ let t = S(e), { modelValue: n } = t, r = di(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
3571
+ let r = M(n);
3391
3572
  return r !== void 0 && (e[t] = r), e;
3392
3573
  }, {});
3393
- return Gr(Gr({}, a), Qr(Gr(Gr({}, i), o)));
3574
+ return ui(ui({}, a), _i(ui(ui({}, i), o)));
3394
3575
  }), c = x({
3395
3576
  get: () => e.modelValue,
3396
3577
  set: (e) => n("update:modelValue", e)
3397
- }), l = h(), u = o(Co(e.target || l, c, s));
3578
+ }), l = h(), u = o(Uo(e.target || l, c, s));
3398
3579
  return r(u), () => f(e.tag || "div", { ref: l }, (t?.default)?.call(t, u));
3399
3580
  }
3400
- }), Eo = {
3581
+ }), Ko = {
3401
3582
  mounted: "mounted",
3402
3583
  unmounted: "unmounted"
3403
3584
  };
3404
- Eo.mounted, Eo.unmounted;
3585
+ Ko.mounted, Ko.unmounted;
3405
3586
  //#endregion
3406
3587
  //#region src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
3407
- var Do = { class: "tpl:w-full" }, Oo = { class: "tpl:flex tpl:gap-0" }, ko = {
3588
+ var qo = { class: "tpl:w-full" }, Jo = { class: "tpl:flex tpl:gap-0" }, Yo = {
3408
3589
  key: 0,
3409
3590
  "data-testid": "section-drop-hint",
3410
3591
  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)]"
3411
- }, Ao = /* @__PURE__ */ y({
3592
+ }, Xo = /* @__PURE__ */ y({
3412
3593
  __name: "SectionBlock",
3413
3594
  props: {
3414
3595
  block: {},
@@ -3416,13 +3597,13 @@ var Do = { class: "tpl:w-full" }, Oo = { class: "tpl:flex tpl:gap-0" }, ko = {
3416
3597
  },
3417
3598
  setup(n) {
3418
3599
  let r = {
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(() => {
3600
+ title: ri,
3601
+ paragraph: zr,
3602
+ image: Er,
3603
+ button: _n,
3604
+ divider: sr,
3605
+ custom: ar
3606
+ }, a = n, { t: o } = St(), s = Ze(ft, "SectionBlock"), l = F(_t, null), u = F(mt, null), d = x(() => {
3426
3607
  switch (a.block.columns) {
3427
3608
  case "2": return ["50%", "50%"];
3428
3609
  case "3": return [
@@ -3448,7 +3629,7 @@ var Do = { class: "tpl:w-full" }, Oo = { class: "tpl:flex tpl:gap-0" }, ko = {
3448
3629
  r[e] = n, s.updateBlock(a.block.id, { children: r });
3449
3630
  }
3450
3631
  function h(e) {
3451
- return Cr(e, u, r);
3632
+ return Br(e, u, r);
3452
3633
  }
3453
3634
  function g(e, t) {
3454
3635
  e.type === "custom" && s.updateBlock(e.id, {
@@ -3456,16 +3637,16 @@ var Do = { class: "tpl:w-full" }, Oo = { class: "tpl:flex tpl:gap-0" }, ko = {
3456
3637
  dataSourceFetched: t.dataSourceFetched
3457
3638
  });
3458
3639
  }
3459
- return (r, a) => (e(), w("div", Do, [C("div", Oo, [(e(!0), w(D, null, c(f.value, (r, a) => (e(), w("div", {
3640
+ return (r, a) => (e(), w("div", qo, [C("div", Jo, [(e(!0), w(D, null, c(f.value, (r, a) => (e(), w("div", {
3460
3641
  key: a,
3461
3642
  class: v(["tpl:relative tpl:min-h-[60px] tpl:rounded", p(a).length === 0 ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
3462
3643
  style: A({ width: d.value[a] })
3463
- }, [N(j(To), {
3644
+ }, [P(M(Go), {
3464
3645
  "model-value": p(a),
3465
3646
  group: {
3466
3647
  name: "blocks",
3467
3648
  pull: !0,
3468
- put: (e, t, n) => n.dataset.blockType !== "section"
3649
+ put: (e, t, n) => M(ii)(n)
3469
3650
  },
3470
3651
  animation: 150,
3471
3652
  "ghost-class": "tpl-ghost",
@@ -3478,18 +3659,18 @@ var Do = { class: "tpl:w-full" }, Oo = { class: "tpl:flex tpl:gap-0" }, ko = {
3478
3659
  class: "tpl:min-h-[60px]",
3479
3660
  "onUpdate:modelValue": (e) => m(a, e)
3480
3661
  }, {
3481
- default: ce(() => [(e(!0), w(D, null, c(p(a), (r) => t((e(), w("div", { key: r.id }, [N(Lr, {
3662
+ default: se(() => [(e(!0), w(D, null, c(p(a), (r) => t((e(), w("div", { key: r.id }, [P(ti, {
3482
3663
  block: r,
3483
- "is-selected": j(s).state.selectedBlockId === r.id,
3664
+ "is-selected": M(s).state.selectedBlockId === r.id,
3484
3665
  viewport: n.viewport,
3485
- "preview-mode": j(s).state.previewMode,
3486
- onSelect: (e) => j(s).selectBlock(r.id)
3666
+ "preview-mode": M(s).state.previewMode,
3667
+ onSelect: (e) => M(s).selectBlock(r.id)
3487
3668
  }, {
3488
- default: ce(() => [(e(), ne(i(h(r)), {
3669
+ default: se(() => [(e(), j(i(h(r)), {
3489
3670
  block: r,
3490
3671
  viewport: n.viewport,
3491
3672
  onFetchData: (e) => g(r, e),
3492
- onUpdate: (e) => j(s).updateBlock(r.id, e)
3673
+ onUpdate: (e) => M(s).updateBlock(r.id, e)
3493
3674
  }, null, 40, [
3494
3675
  "block",
3495
3676
  "viewport",
@@ -3503,19 +3684,19 @@ var Do = { class: "tpl:w-full" }, Oo = { class: "tpl:flex tpl:gap-0" }, ko = {
3503
3684
  "viewport",
3504
3685
  "preview-mode",
3505
3686
  "onSelect"
3506
- ])])), [[te, !j(l)?.isHidden(r.id)]])), 128))]),
3687
+ ])])), [[te, !M(l)?.isHidden(r.id)]])), 128))]),
3507
3688
  _: 2
3508
3689
  }, 1032, [
3509
3690
  "model-value",
3510
3691
  "group",
3511
3692
  "onUpdate:modelValue"
3512
- ]), p(a).length === 0 ? (e(), w("div", ko, [C("span", null, M(j(o).section.dropHere), 1)])) : O("", !0)], 6))), 128))])]));
3693
+ ]), p(a).length === 0 ? (e(), w("div", Yo, [C("span", null, N(M(o).section.dropHere), 1)])) : O("", !0)], 6))), 128))])]));
3513
3694
  }
3514
- }), jo = Ee, Mo = {
3695
+ }), Zo = Ee, Qo = {
3515
3696
  small: 24,
3516
3697
  medium: 32,
3517
3698
  large: 48
3518
- }, No = [
3699
+ }, $o = [
3519
3700
  "facebook",
3520
3701
  "twitter",
3521
3702
  "instagram",
@@ -3533,11 +3714,11 @@ var Do = { class: "tpl:w-full" }, Oo = { class: "tpl:flex tpl:gap-0" }, ko = {
3533
3714
  "github",
3534
3715
  "dribbble",
3535
3716
  "behance"
3536
- ], Po = [
3717
+ ], es = [
3537
3718
  "width",
3538
3719
  "height",
3539
3720
  "fill"
3540
- ], Fo = ["d"], Io = /* @__PURE__ */ y({
3721
+ ], ts = ["d"], ns = /* @__PURE__ */ y({
3541
3722
  __name: "SocialIconSvg",
3542
3723
  props: {
3543
3724
  platform: {},
@@ -3545,7 +3726,7 @@ var Do = { class: "tpl:w-full" }, Oo = { class: "tpl:flex tpl:gap-0" }, ko = {
3545
3726
  iconSize: {}
3546
3727
  },
3547
3728
  setup(t) {
3548
- let n = t, r = x(() => jo[n.platform]), i = x(() => Mo[n.iconSize]), a = x(() => {
3729
+ let n = t, r = x(() => Zo[n.platform]), i = x(() => Qo[n.iconSize]), a = x(() => {
3549
3730
  let e = {
3550
3731
  display: "inline-flex",
3551
3732
  alignItems: "center",
@@ -3589,25 +3770,25 @@ var Do = { class: "tpl:w-full" }, Oo = { class: "tpl:flex tpl:gap-0" }, ko = {
3589
3770
  viewBox: "0 0 24 24",
3590
3771
  fill: s.value,
3591
3772
  xmlns: "http://www.w3.org/2000/svg"
3592
- }, [C("path", { d: r.value.path }, null, 8, Fo)], 8, Po))], 4));
3773
+ }, [C("path", { d: r.value.path }, null, 8, ts)], 8, es))], 4));
3593
3774
  }
3594
- }), Lo = { class: "tpl:w-full" }, Ro = ["href"], zo = {
3775
+ }), rs = { class: "tpl:w-full" }, is = ["href"], as = {
3595
3776
  key: 1,
3596
3777
  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)]"
3597
- }, Bo = /* @__PURE__ */ y({
3778
+ }, os = /* @__PURE__ */ y({
3598
3779
  __name: "SocialIconsBlock",
3599
3780
  props: {
3600
3781
  block: {},
3601
3782
  viewport: {}
3602
3783
  },
3603
3784
  setup(t) {
3604
- let n = t, { t: r } = ht(), i = x(() => ({
3785
+ let n = t, { t: r } = St(), i = x(() => ({
3605
3786
  display: "flex",
3606
3787
  flexWrap: "wrap",
3607
3788
  gap: `${n.block.spacing}px`,
3608
3789
  justifyContent: n.block.align === "left" ? "flex-start" : n.block.align === "right" ? "flex-end" : "center"
3609
3790
  })), a = x(() => n.block.icons.length > 0);
3610
- return (n, o) => (e(), w("div", Lo, [a.value ? (e(), w("div", {
3791
+ return (n, o) => (e(), w("div", rs, [a.value ? (e(), w("div", {
3611
3792
  key: 0,
3612
3793
  style: A(i.value)
3613
3794
  }, [(e(!0), w(D, null, c(t.block.icons, (n) => (e(), w("a", {
@@ -3615,7 +3796,7 @@ var Do = { class: "tpl:w-full" }, Oo = { class: "tpl:flex tpl:gap-0" }, ko = {
3615
3796
  href: n.url || "#",
3616
3797
  class: "tpl:cursor-default",
3617
3798
  onClick: o[0] ||= b(() => {}, ["prevent"])
3618
- }, [N(Io, {
3799
+ }, [P(ns, {
3619
3800
  platform: n.platform,
3620
3801
  "icon-style": t.block.iconStyle,
3621
3802
  "icon-size": t.block.iconSize
@@ -3623,44 +3804,44 @@ var Do = { class: "tpl:w-full" }, Oo = { class: "tpl:flex tpl:gap-0" }, ko = {
3623
3804
  "platform",
3624
3805
  "icon-style",
3625
3806
  "icon-size"
3626
- ])], 8, Ro))), 128))], 4)) : (e(), w("div", zo, [N(j(vn), { size: 16 }), C("span", null, M(j(r).social.addIcons), 1)]))]));
3807
+ ])], 8, is))), 128))], 4)) : (e(), w("div", as, [P(M(On), { size: 16 }), C("span", null, N(M(r).social.addIcons), 1)]))]));
3627
3808
  }
3628
- }), Vo = { class: "tpl:w-full" }, Ho = {
3809
+ }), ss = { class: "tpl:w-full" }, cs = {
3629
3810
  key: 0,
3630
3811
  class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
3631
3812
  style: {
3632
3813
  "background-color": "var(--tpl-bg-hover)",
3633
3814
  color: "var(--tpl-text-dim)"
3634
3815
  }
3635
- }, Uo = /* @__PURE__ */ y({
3816
+ }, ls = /* @__PURE__ */ y({
3636
3817
  __name: "SpacerBlock",
3637
3818
  props: {
3638
3819
  block: {},
3639
3820
  viewport: {}
3640
3821
  },
3641
3822
  setup(t) {
3642
- let n = t, r = Ke(at, "SpacerBlock"), i = x(() => ({
3823
+ let n = t, r = Ze(ft, "SpacerBlock"), i = x(() => ({
3643
3824
  height: `${n.block.height}px`,
3644
3825
  minHeight: `${n.block.height}px`,
3645
3826
  ...r.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
3646
3827
  }));
3647
- return (n, a) => (e(), w("div", Vo, [C("div", {
3828
+ return (n, a) => (e(), w("div", ss, [C("div", {
3648
3829
  style: A(i.value),
3649
- class: v(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:border-y tpl:border-dashed": !j(r).state.previewMode }])
3650
- }, [j(r).state.previewMode ? O("", !0) : (e(), w("span", Ho, M(t.block.height) + "px ", 1))], 6)]));
3830
+ class: v(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:border-y tpl:border-dashed": !M(r).state.previewMode }])
3831
+ }, [M(r).state.previewMode ? O("", !0) : (e(), w("span", cs, N(t.block.height) + "px ", 1))], 6)]));
3651
3832
  }
3652
- }), Wo = { class: "tpl:w-full" }, Go = { key: 0 }, Ko = [
3833
+ }), us = { class: "tpl:w-full" }, ds = { key: 0 }, fs = [
3653
3834
  "aria-label",
3654
3835
  "data-placeholder",
3655
3836
  "onBlur"
3656
- ], qo = [
3837
+ ], ps = [
3657
3838
  "aria-label",
3658
3839
  "data-placeholder",
3659
3840
  "onBlur"
3660
- ], Jo = {
3841
+ ], ms = {
3661
3842
  key: 1,
3662
3843
  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)]"
3663
- }, Yo = /*#__PURE__*/ bt(/* @__PURE__ */ y({
3844
+ }, hs = /*#__PURE__*/ kt(/* @__PURE__ */ y({
3664
3845
  __name: "TableBlock",
3665
3846
  props: {
3666
3847
  block: {},
@@ -3674,7 +3855,7 @@ var Do = { class: "tpl:w-full" }, Oo = { class: "tpl:flex tpl:gap-0" }, ko = {
3674
3855
  updated(e, t) {
3675
3856
  t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
3676
3857
  }
3677
- }, i = n, { t: a } = ht(), o = Ke(at, "TableBlock"), s = x(() => i.block.rows.length > 0), l = x(() => ({
3858
+ }, i = n, { t: a } = St(), o = Ze(ft, "TableBlock"), s = x(() => i.block.rows.length > 0), l = x(() => ({
3678
3859
  width: "100%",
3679
3860
  borderCollapse: "collapse",
3680
3861
  fontSize: `${i.block.fontSize}px`,
@@ -3703,31 +3884,31 @@ var Do = { class: "tpl:w-full" }, Oo = { class: "tpl:flex tpl:gap-0" }, ko = {
3703
3884
  } : n);
3704
3885
  o.updateBlock(i.block.id, { rows: a });
3705
3886
  }
3706
- return (n, i) => (e(), w("div", Wo, [s.value ? (e(), w("table", {
3887
+ return (n, i) => (e(), w("div", us, [s.value ? (e(), w("table", {
3707
3888
  key: 0,
3708
3889
  style: A(l.value),
3709
3890
  class: "tpl-table-editable"
3710
- }, [f.value ? (e(), w("thead", Go, [C("tr", null, [(e(!0), w(D, null, c(f.value.cells, (n) => t((e(), w("th", {
3891
+ }, [f.value ? (e(), w("thead", ds, [C("tr", null, [(e(!0), w(D, null, c(f.value.cells, (n) => t((e(), w("th", {
3711
3892
  key: n.id,
3712
3893
  style: A(d.value),
3713
- "aria-label": j(a).table.cellPlaceholder,
3894
+ "aria-label": M(a).table.cellPlaceholder,
3714
3895
  contenteditable: "true",
3715
- "data-placeholder": j(a).table.cellPlaceholder,
3896
+ "data-placeholder": M(a).table.cellPlaceholder,
3716
3897
  onBlur: (e) => h(f.value.id, n.id, e),
3717
- onKeydown: i[0] ||= ie(b((e) => e.target.blur(), ["prevent"]), ["enter"]),
3898
+ onKeydown: i[0] ||= re(b((e) => e.target.blur(), ["prevent"]), ["enter"]),
3718
3899
  onClick: b(m, ["stop"])
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", {
3900
+ }, null, 44, fs)), [[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", {
3720
3901
  key: o.id,
3721
3902
  style: A(u.value),
3722
- "aria-label": j(a).table.cellPlaceholder,
3903
+ "aria-label": M(a).table.cellPlaceholder,
3723
3904
  contenteditable: "true",
3724
- "data-placeholder": j(a).table.cellPlaceholder,
3905
+ "data-placeholder": M(a).table.cellPlaceholder,
3725
3906
  onBlur: (e) => h(n.id, o.id, e),
3726
- onKeydown: i[1] ||= ie(b((e) => e.target.blur(), ["prevent"]), ["enter"]),
3907
+ onKeydown: i[1] ||= re(b((e) => e.target.blur(), ["prevent"]), ["enter"]),
3727
3908
  onClick: b(m, ["stop"])
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)]))]));
3909
+ }, null, 44, ps)), [[r, o.content]])), 128))]))), 128))])], 4)) : (e(), w("div", ms, [P(M(kn), { size: 16 }), C("span", null, N(M(a).table.empty), 1)]))]));
3729
3910
  }
3730
- }), [["__scopeId", "data-v-de1a7c76"]]), Xo = /* @__PURE__ */ y({
3911
+ }), [["__scopeId", "data-v-f065872a"]]), gs = /* @__PURE__ */ y({
3731
3912
  __name: "VideoPlayButton",
3732
3913
  props: { hoverEffect: {
3733
3914
  type: Boolean,
@@ -3745,7 +3926,7 @@ var Do = { class: "tpl:w-full" }, Oo = { class: "tpl:flex tpl:gap-0" }, ko = {
3745
3926
  });
3746
3927
  //#endregion
3747
3928
  //#region src/utils/videoThumbnail.ts
3748
- function Zo(e) {
3929
+ function _s(e) {
3749
3930
  if (!e) return {
3750
3931
  platform: "unknown",
3751
3932
  videoId: null,
@@ -3777,25 +3958,25 @@ function Zo(e) {
3777
3958
  thumbnailUrl: null
3778
3959
  };
3779
3960
  }
3780
- function Qo(e, t) {
3781
- return t || Zo(e).thumbnailUrl;
3961
+ function vs(e, t) {
3962
+ return t || _s(e).thumbnailUrl;
3782
3963
  }
3783
3964
  //#endregion
3784
3965
  //#region src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
3785
- var $o = ["src", "alt"], es = {
3966
+ var ys = ["src", "alt"], bs = {
3786
3967
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
3787
3968
  style: { opacity: "0.7" }
3788
- }, ts = ["href"], ns = ["src", "alt"], rs = ["src", "alt"], is = {
3969
+ }, xs = ["href"], Ss = ["src", "alt"], Cs = ["src", "alt"], ws = {
3789
3970
  key: 3,
3790
3971
  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)]"
3791
- }, as = /* @__PURE__ */ y({
3972
+ }, Ts = /* @__PURE__ */ y({
3792
3973
  __name: "VideoBlock",
3793
3974
  props: {
3794
3975
  block: {},
3795
3976
  viewport: {}
3796
3977
  },
3797
3978
  setup(t) {
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(() => {
3979
+ let n = t, { t: r } = St(), { syntax: i } = At(), a = x(() => De(n.block.url, i) || De(n.block.thumbnailUrl, i)), o = x(() => a.value ? null : vs(n.block.url, n.block.thumbnailUrl)), s = x(() => ({ textAlign: n.block.align })), c = x(() => {
3799
3980
  let e = n.block.align;
3800
3981
  return {
3801
3982
  maxWidth: "100%",
@@ -3816,16 +3997,16 @@ var $o = ["src", "alt"], es = {
3816
3997
  class: "tpl:w-full tpl:border-0",
3817
3998
  src: t.block.placeholderUrl,
3818
3999
  alt: t.block.alt
3819
- }, null, 8, $o), N(Xo)], 4)) : a.value ? (e(), w("div", {
4000
+ }, null, 8, ys), P(gs)], 4)) : a.value ? (e(), w("div", {
3820
4001
  key: 1,
3821
4002
  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)]",
3822
4003
  style: A([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, c.value])
3823
- }, [N(j(bn), {
4004
+ }, [P(M(An), {
3824
4005
  size: 36,
3825
4006
  "stroke-width": 1.5,
3826
4007
  class: "tpl:text-[var(--tpl-primary)]",
3827
4008
  style: { opacity: "0.5" }
3828
- }), C("span", es, M(l.value), 1)], 4)) : o.value ? (e(), w(D, { key: 2 }, [t.block.url ? (e(), w("a", {
4009
+ }), C("span", bs, N(l.value), 1)], 4)) : o.value ? (e(), w(D, { key: 2 }, [t.block.url ? (e(), w("a", {
3829
4010
  key: 0,
3830
4011
  href: t.block.url,
3831
4012
  target: "_blank",
@@ -3837,7 +4018,7 @@ var $o = ["src", "alt"], es = {
3837
4018
  class: "tpl:w-full tpl:border-0",
3838
4019
  src: o.value,
3839
4020
  alt: t.block.alt
3840
- }, null, 8, ns), N(Xo, { "hover-effect": "" })], 12, ts)) : (e(), w("div", {
4021
+ }, null, 8, Ss), P(gs, { "hover-effect": "" })], 12, xs)) : (e(), w("div", {
3841
4022
  key: 1,
3842
4023
  class: "tpl:relative tpl:inline-block",
3843
4024
  style: A(c.value)
@@ -3845,48 +4026,48 @@ var $o = ["src", "alt"], es = {
3845
4026
  class: "tpl:w-full tpl:border-0",
3846
4027
  src: o.value,
3847
4028
  alt: t.block.alt
3848
- }, null, 8, rs), N(Xo)], 4))], 64)) : (e(), w("div", is, [N(j(bn), {
4029
+ }, null, 8, Cs), P(gs)], 4))], 64)) : (e(), w("div", ws, [P(M(An), {
3849
4030
  size: 40,
3850
4031
  "stroke-width": 1.5,
3851
4032
  class: "tpl:text-[var(--tpl-border-light)]"
3852
- }), C("span", null, M(j(r).video.addVideo), 1)]))], 4));
3853
- }
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))
4033
+ }), C("span", null, N(M(r).video.addVideo), 1)]))], 4));
4034
+ }
4035
+ }), Es = {
4036
+ section: Xo,
4037
+ title: ri,
4038
+ paragraph: zr,
4039
+ image: Er,
4040
+ button: _n,
4041
+ divider: sr,
4042
+ video: Ts,
4043
+ social: os,
4044
+ menu: Ar,
4045
+ table: hs,
4046
+ spacer: ls,
4047
+ html: fr,
4048
+ countdown: oe(() => import("./CountdownBlock-DtAokAVw.js").then((e) => e.n))
3868
4049
  };
3869
- function ss(e) {
3870
- let { editor: t, config: n, translations: r, fontsManager: i } = e, { t: a, format: o } = ht(r);
4050
+ function Ds(e) {
4051
+ let { editor: t, config: n, translations: r, fontsManager: i } = e, { t: a, format: o } = St(r);
3871
4052
  t.setUiTheme(n.uiTheme ?? "auto");
3872
- let { resolvedTheme: c } = Wt(x(() => t.state.uiTheme)), l = h(n.theme ?? {}), { themeStyles: u } = Kt({
4053
+ let { resolvedTheme: c } = en(x(() => t.state.uiTheme)), l = h(n.theme ?? {}), { themeStyles: u } = nn({
3873
4054
  themeOverrides: l,
3874
4055
  resolvedTheme: c,
3875
4056
  extraStyles: e.themeExtraStyles
3876
- }), d = Ot({
4057
+ }), d = Lt({
3877
4058
  content: t.content,
3878
4059
  setContent: (e, n) => t.setContent(e, n),
3879
4060
  ...e.historyOptions
3880
4061
  });
3881
- Pt(t, d);
3882
- let f = At({
4062
+ Ut(t, d);
4063
+ let f = zt({
3883
4064
  addBlock: t.addBlock,
3884
4065
  removeBlock: t.removeBlock,
3885
4066
  updateBlock: t.updateBlock,
3886
4067
  selectBlock: t.selectBlock,
3887
4068
  findBlockLocation: t.findBlockLocation,
3888
4069
  blockDefaults: n.blockDefaults
3889
- }), m = Mt(t), g = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? jt({
4070
+ }), m = Vt(t), g = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? Bt({
3890
4071
  content: t.content,
3891
4072
  isDirty: () => t.state.isDirty,
3892
4073
  ...e.autoSaveOptions
@@ -3894,24 +4075,24 @@ function ss(e) {
3894
4075
  g && (_ = s(d.isNavigating, (e) => {
3895
4076
  e ? g.pause() : g.resume();
3896
4077
  }));
3897
- let v = Ut(t, {
4078
+ let v = $t(t, {
3898
4079
  t: a,
3899
4080
  format: o
3900
- }), y = Xt();
3901
- if (tn(y, os), n.customBlocks?.length) for (let e of n.customBlocks) y.registerCustom(e, Gn);
4081
+ }), y = sn();
4082
+ if (fn(y, Es), n.customBlocks?.length) for (let e of n.customBlocks) y.registerCustom(e, ar);
3902
4083
  function b(e) {
3903
- for (let t of e) y.registerCustom(t, Gn);
4084
+ for (let t of e) y.registerCustom(t, ar);
3904
4085
  }
3905
- let S = Rt();
3906
- if (p() && re(S.dispose), e.containerEl) {
4086
+ let S = qt();
4087
+ if (p() && ne(S.dispose), e.containerEl) {
3907
4088
  let t = e.containerEl;
3908
- Be(document, "pointerdown", (e) => {
4089
+ ze(document, "pointerdown", (e) => {
3909
4090
  let n = t.value;
3910
4091
  n && (e.composedPath?.() ?? []).includes(n) && S.claim();
3911
4092
  }, { capture: !0 });
3912
4093
  }
3913
4094
  function C(r) {
3914
- S.isActive() && rn(r, {
4095
+ S.isActive() && mn(r, {
3915
4096
  history: d,
3916
4097
  selectBlock: (e) => t.selectBlock(e),
3917
4098
  getSelectedBlockId: () => t.state.selectedBlockId,
@@ -3920,19 +4101,19 @@ function ss(e) {
3920
4101
  onBeforeUndo: e.keyboardOptions?.onBeforeUndo
3921
4102
  });
3922
4103
  }
3923
- Be(document, "keydown", C);
4104
+ ze(document, "keydown", C);
3924
4105
  let w = h(null);
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({
4106
+ E(lt, e.editorRoot ?? document), E(Ge, w), E(Ye, r), E(ft, t), E(rt, d), E(ut, f), E(_t, m), E(ct, i), E(et, u), E(Xe, c), E(it, n.blockDefaults), E(mt, y), E(ot, n.customBlocks ?? []), E(dt, n.paletteBlocks), E(st, cn(t.content, y));
4107
+ let T = fe(n.mergeTags?.syntax);
4108
+ E(tt, n.mergeTags?.tags ?? []), E(nt, T), E($e, n.mergeTags?.onRequest ?? null), E(Ke, n.mergeTags?.autocomplete !== !1), E(yt, Jt()), E(at, n.logicTags?.tags ?? []), E(xt, n.logicTags?.pairs ?? []), E(Je, n.logicTags?.onRequest ?? null), E(bt, Yt()), E(qe, n.onRequestMedia ?? null), E(ht, n.displayConditions?.conditions ?? []), E(pt, n.displayConditions?.allowCustom ?? !1), E(gt, e.capabilities ?? {}), E(vt, v);
4109
+ let ee = Xt(n.lint) ? null : Zt({
3929
4110
  content: t.content,
3930
4111
  options: n.lint ?? {},
3931
4112
  updateBlock: t.updateBlock,
3932
4113
  updateSettings: t.updateSettings,
3933
4114
  removeBlock: t.removeBlock
3934
4115
  });
3935
- E(it, ee);
4116
+ E(Qe, ee);
3936
4117
  function D() {
3937
4118
  _?.(), ee?.destroy(), g?.destroy(), d.destroy();
3938
4119
  }
@@ -3955,4 +4136,4 @@ function ss(e) {
3955
4136
  };
3956
4137
  }
3957
4138
  //#endregion
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 };
4139
+ export { En as A, Hn as C, Nn as D, In as E, _n as F, on as I, Qt as L, Sn as M, xn as N, kn as O, bn as P, Ht as R, Un as S, Ln as T, fr as _, os as a, Xn as b, Go as c, Vr as d, Br as f, mr as g, Er as h, ls as i, Tn as j, On as k, ri as l, Ar as m, Ts as n, $o as o, zr as p, hs as r, Xo as s, Ds as t, ti as u, sr as v, Rn as w, Jn as x, ar as y, Nt as z };