@templatical/editor 0.10.1 → 0.10.2

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 (132) hide show
  1. package/dist/{AiChatSidebar-Dz5bH1z3.js → AiChatSidebar-BMwpZx-6.js} +14 -14
  2. package/dist/{AiFeatureMenu-D2Xn0jFx.js → AiFeatureMenu-xgaIGUCo.js} +8 -8
  3. package/dist/{BlockIssueBadge-CnqD1cGo.js → BlockIssueBadge-3kNs6WoD.js} +5 -5
  4. package/dist/{CloudEditor-BizZwsfD.js → CloudEditor-Dm9hiaui.js} +21 -21
  5. package/dist/{CollaboratorBar-Bn2JDu6l.js → CollaboratorBar-Cz_evoU4.js} +4 -4
  6. package/dist/{CommentsSidebar-BAG6rdVC.js → CommentsSidebar-jFZj_CTo.js} +13 -13
  7. package/dist/{CountdownBlock-B_Hr9Bm9.js → CountdownBlock-S-SCyVye.js} +4 -4
  8. package/dist/{CountdownToolbar-DaqDLKLk.js → CountdownToolbar-Ckdo-3P-.js} +3 -3
  9. package/dist/{DesignReferenceSidebar-I9LWjvrj.js → DesignReferenceSidebar-B9QNPZNV.js} +10 -10
  10. package/dist/{IssuesPanel-B32Ifp4x.js → IssuesPanel-_E_fbSM8.js} +8 -8
  11. package/dist/{LoadingTrack-UTqOUN4O.js → LoadingTrack-BZ5KJyZ_.js} +2 -2
  12. package/dist/{ModuleBrowserModal-DodRped1.js → ModuleBrowserModal-BB22urqi.js} +10 -10
  13. package/dist/{ModulePreviewCanvas-DhcnddJF.js → ModulePreviewCanvas-CH5OdXv8.js} +3 -3
  14. package/dist/{NumberWithSuffix-DB7GyyCI.js → NumberWithSuffix-BHDXHMpo.js} +3 -3
  15. package/dist/{ParagraphEditor-pJA9BHAL.js → ParagraphEditor-BmY7LLgN.js} +24 -24
  16. package/dist/{RichTextEditorContent-dTGSUff_.js → RichTextEditorContent-COijbaWp.js} +8 -8
  17. package/dist/{SaveModuleDialog-D634e99d.js → SaveModuleDialog-D5WN-je_.js} +7 -7
  18. package/dist/{SnapshotHistory-m_nGAHlb.js → SnapshotHistory-BQ55Rhri.js} +9 -9
  19. package/dist/{TemplateScoringPanel-BOQh9neV.js → TemplateScoringPanel-Dhf_Qgr7.js} +15 -15
  20. package/dist/{TestEmailModal-DOcwoKkc.js → TestEmailModal-DH_Viz_m.js} +5 -5
  21. package/dist/{TitleEditor-t6JMWamY.js → TitleEditor-Dn613K8o.js} +12 -12
  22. package/dist/{TplModal-BAtbfDB0.js → TplModal-Dxa3rhHI.js} +4 -4
  23. package/dist/{blockTypeIcons-C4lXx3Au.js → blockTypeIcons-CrcSCTD6.js} +2 -2
  24. package/dist/bundle-stats.json +6 -6
  25. package/dist/cdn/chunks/{AiFeatureMenu-BeOyHAoZ.js → AiFeatureMenu-CCsgxyN9.js} +4 -4
  26. package/dist/cdn/chunks/{AiFeatureMenu-BeOyHAoZ.js.map → AiFeatureMenu-CCsgxyN9.js.map} +1 -1
  27. package/dist/cdn/chunks/{BlockIssueBadge-C6YilQdl.js → BlockIssueBadge-Lc3NWFV8.js} +3 -3
  28. package/dist/cdn/chunks/{BlockIssueBadge-C6YilQdl.js.map → BlockIssueBadge-Lc3NWFV8.js.map} +1 -1
  29. package/dist/cdn/chunks/{CloudEditor-DEA37rdW.js → CloudEditor-KkwvBhyt.js} +123 -123
  30. package/dist/cdn/chunks/{CloudEditor-DEA37rdW.js.map → CloudEditor-KkwvBhyt.js.map} +1 -1
  31. package/dist/cdn/chunks/{CollaboratorBar-CKW7jOW4.js → CollaboratorBar-BGIGiFSm.js} +4 -4
  32. package/dist/cdn/chunks/{CollaboratorBar-CKW7jOW4.js.map → CollaboratorBar-BGIGiFSm.js.map} +1 -1
  33. package/dist/cdn/chunks/{CountdownBlock-DU9ga9Ki.js → CountdownBlock-gqnpxKp_.js} +4 -4
  34. package/dist/cdn/chunks/{CountdownBlock-DU9ga9Ki.js.map → CountdownBlock-gqnpxKp_.js.map} +1 -1
  35. package/dist/cdn/chunks/{CountdownToolbar-BHWsxth7.js → CountdownToolbar-xHpaWQE2.js} +4 -4
  36. package/dist/cdn/chunks/{CountdownToolbar-BHWsxth7.js.map → CountdownToolbar-xHpaWQE2.js.map} +1 -1
  37. package/dist/cdn/chunks/{IssuesPanel-BkYhij39.js → IssuesPanel-DHTTHu65.js} +4 -4
  38. package/dist/cdn/chunks/{IssuesPanel-BkYhij39.js.map → IssuesPanel-DHTTHu65.js.map} +1 -1
  39. package/dist/cdn/chunks/{ModuleBrowserModal-D51w942J.js → ModuleBrowserModal-DDTjrKph.js} +6 -6
  40. package/dist/cdn/chunks/{ModuleBrowserModal-D51w942J.js.map → ModuleBrowserModal-DDTjrKph.js.map} +1 -1
  41. package/dist/cdn/chunks/{ModulePreviewCanvas-BqTqcKHS.js → ModulePreviewCanvas-DeFq0hVi.js} +3 -3
  42. package/dist/cdn/chunks/{ModulePreviewCanvas-BqTqcKHS.js.map → ModulePreviewCanvas-DeFq0hVi.js.map} +1 -1
  43. package/dist/cdn/chunks/{NumberWithSuffix-DuUcF2zG.js → NumberWithSuffix-D4wtmU9O.js} +3 -3
  44. package/dist/cdn/chunks/{NumberWithSuffix-DuUcF2zG.js.map → NumberWithSuffix-D4wtmU9O.js.map} +1 -1
  45. package/dist/cdn/chunks/{ParagraphEditor-Bqjn3ZNm.js → ParagraphEditor-CwY8GeWa.js} +18 -18
  46. package/dist/cdn/chunks/{ParagraphEditor-Bqjn3ZNm.js.map → ParagraphEditor-CwY8GeWa.js.map} +1 -1
  47. package/dist/cdn/chunks/{RichTextEditorContent-mIkkb5EK.js → RichTextEditorContent-C_bMURGF.js} +5 -5
  48. package/dist/cdn/chunks/{RichTextEditorContent-mIkkb5EK.js.map → RichTextEditorContent-C_bMURGF.js.map} +1 -1
  49. package/dist/cdn/chunks/{SaveModuleDialog-Felfmkcj.js → SaveModuleDialog-DEi8PSP6.js} +3 -3
  50. package/dist/cdn/chunks/{SaveModuleDialog-Felfmkcj.js.map → SaveModuleDialog-DEi8PSP6.js.map} +1 -1
  51. package/dist/cdn/chunks/{TitleEditor-Dcldr8D6.js → TitleEditor-Betpo8AZ.js} +9 -9
  52. package/dist/cdn/chunks/{TitleEditor-Dcldr8D6.js.map → TitleEditor-Betpo8AZ.js.map} +1 -1
  53. package/dist/cdn/chunks/{blockTypeIcons-D05Wqf5u.js → blockTypeIcons-Xz6OBq3U.js} +3 -3
  54. package/dist/cdn/chunks/{blockTypeIcons-D05Wqf5u.js.map → blockTypeIcons-Xz6OBq3U.js.map} +1 -1
  55. package/dist/cdn/chunks/{draggable-J_1CPXYc.js → draggable-BTGr7_-X.js} +19 -19
  56. package/dist/cdn/chunks/{draggable-J_1CPXYc.js.map → draggable-BTGr7_-X.js.map} +1 -1
  57. package/dist/cdn/chunks/{extensions-CNmpC18A.js → extensions-D_j4UWxi.js} +4 -4
  58. package/dist/cdn/chunks/{extensions-CNmpC18A.js.map → extensions-D_j4UWxi.js.map} +1 -1
  59. package/dist/cdn/chunks/{features-_ar9QbVv.js → features-A28DQtjE.js} +815 -810
  60. package/dist/cdn/chunks/features-A28DQtjE.js.map +1 -0
  61. package/dist/cdn/chunks/{icons-CnwCLJX-.js → icons-C9D3N0-J.js} +2 -2
  62. package/dist/cdn/chunks/{icons-CnwCLJX-.js.map → icons-C9D3N0-J.js.map} +1 -1
  63. package/dist/cdn/chunks/{liquid.browser-rMoPo2t_.js → liquid.browser-DUDc3U21.js} +10 -10
  64. package/dist/cdn/chunks/{liquid.browser-rMoPo2t_.js.map → liquid.browser-DUDc3U21.js.map} +1 -1
  65. package/dist/cdn/chunks/{media-library-9jyt7Bf9.js → media-library-CH1Wx5wP.js} +7 -7
  66. package/dist/cdn/chunks/{media-library-9jyt7Bf9.js.map → media-library-CH1Wx5wP.js.map} +1 -1
  67. package/dist/cdn/chunks/pusher-CHo5Cua0.js.map +1 -1
  68. package/dist/cdn/chunks/{quality-CO9mj_RH.js → quality-D4NeyFej.js} +530 -530
  69. package/dist/cdn/chunks/{quality-CO9mj_RH.js.map → quality-D4NeyFej.js.map} +1 -1
  70. package/dist/cdn/chunks/{renderer-m6XTCWCL.js → renderer-BQnGfLhL.js} +16 -16
  71. package/dist/cdn/chunks/{renderer-m6XTCWCL.js.map → renderer-BQnGfLhL.js.map} +1 -1
  72. package/dist/cdn/chunks/{src-DfMSYqvE.js → src-BkKEyLw1.js} +6 -6
  73. package/dist/cdn/chunks/{src-DfMSYqvE.js.map → src-BkKEyLw1.js.map} +1 -1
  74. package/dist/cdn/chunks/{styles-1uFWdD5T.js → styles-BDVaiw3K.js} +142 -142
  75. package/dist/cdn/chunks/{styles-1uFWdD5T.js.map → styles-BDVaiw3K.js.map} +1 -1
  76. package/dist/cdn/chunks/{tiptap-CJbIm_hE.js → tiptap-P5abGB13.js} +4434 -2577
  77. package/dist/cdn/chunks/tiptap-P5abGB13.js.map +1 -0
  78. package/dist/cdn/editor.js +100 -100
  79. package/dist/cdn/editor.js.map +1 -1
  80. package/dist/{check-Bs6_uQpm.js → check-KooI2jyS.js} +1 -1
  81. package/dist/{chevron-down-so1rnGwF.js → chevron-down-mnlFgueW.js} +1 -1
  82. package/dist/{circle-alert-CrKv0AuW.js → circle-alert-D89_hB8j.js} +1 -1
  83. package/dist/{clock-Cpx6GYpa.js → clock-BaadyUrg.js} +1 -1
  84. package/dist/{cloud-bHhCNRZa.js → cloud-D-FScaHx.js} +2 -2
  85. package/dist/{createLucideIcon-DFBxEm5K.js → createLucideIcon-D-6fpD2L.js} +1 -1
  86. package/dist/{dist-DwEpKyry.js → dist-BttO3Zdx.js} +44 -44
  87. package/dist/{dist-CMkZaqX1.js → dist-C1WcikEF.js} +5 -5
  88. package/dist/dist-CjULgTep.js +4072 -0
  89. package/dist/{dist-BufRk8ZY.js → dist-D6L_WdRL.js} +95 -85
  90. package/dist/{dist-DJ5YJLXn.js → dist-DaajG7Fo.js} +5 -5
  91. package/dist/dist-Df4eV6Zi.js +5 -0
  92. package/dist/{dist-BejBMbBX.js → dist-Dnqx5UF3.js} +171 -158
  93. package/dist/{dist-CIK3BYgh.js → dist-Drp5bNAu.js} +5 -5
  94. package/dist/dist-WJ1fVd5b.js +5 -0
  95. package/dist/{dist-CoaWXQ7N.js → dist-XA2i70J5.js} +8 -8
  96. package/dist/{dist-74n2Mqc6.js → dist-b52vYHb5.js} +2 -2
  97. package/dist/{dist-2-A7SaKm.js → dist-cl33Ip6W.js} +1 -1
  98. package/dist/{dist-0RguD1vS.js → dist-sqf7pq5q.js} +16 -16
  99. package/dist/{dist-B3CcePtK.js → dist-zInT3Lf6.js} +75 -57
  100. package/dist/{extensions-C810eSzv.js → extensions-DA-w1gVg.js} +29 -29
  101. package/dist/{image-up-kMLE5GsI.js → image-up-DjwfAom6.js} +1 -1
  102. package/dist/{info-xqRxLfNz.js → info-Db3HlTr8.js} +1 -1
  103. package/dist/{keys-BoYBr3PU.js → keys-BjmL5YCT.js} +1 -1
  104. package/dist/{liquid.browser-IgQrXHPQ.js → liquid.browser--qtl1Fqy.js} +9 -9
  105. package/dist/{list-checks-C81htkBJ.js → list-checks-BlAB0X8a.js} +1 -1
  106. package/dist/{loader-circle-C6cZPIum.js → loader-circle-EVqyIxjU.js} +1 -1
  107. package/dist/{message-circle-dqOBRe07.js → message-circle-BuI5pBVG.js} +1 -1
  108. package/dist/{refresh-cw-DCjNd6o0.js → refresh-cw-C2vM_6zQ.js} +1 -1
  109. package/dist/{scan-line-DXz0nZVJ.js → scan-line-AUIh_SHI.js} +1 -1
  110. package/dist/{send-C4uH_WaI.js → send-nrbwF7xg.js} +1 -1
  111. package/dist/{shield-check-B3U68ssA.js → shield-check-B55Ozmva.js} +1 -1
  112. package/dist/{sparkles-CsDweGUy.js → sparkles-oh1NUSFq.js} +1 -1
  113. package/dist/{styles-CBlNpqL9.js → styles-Byhh107n.js} +33 -33
  114. package/dist/templatical-editor.js +81 -80
  115. package/dist/{text-align-start-BkKQePFp.js → text-align-start-B2MqzZwU.js} +1 -1
  116. package/dist/{trash-2-BIOkaEz1.js → trash-2-DH8RBwAx.js} +1 -1
  117. package/dist/{triangle-alert-Bbgu6uUG.js → triangle-alert-BQHjCt3B.js} +1 -1
  118. package/dist/{useAliveFlag-Bc99FWyR.js → useAliveFlag-B_b9ubwD.js} +1 -1
  119. package/dist/{useCloudI18n-DiwsLi6z.js → useCloudI18n-BHCrmQgj.js} +2 -2
  120. package/dist/{useEditorCore-7c1QpPlw.js → useEditorCore-BEgc3KFu.js} +368 -375
  121. package/dist/{useI18n-DskZMfRJ.js → useI18n-Bb9-ha9X.js} +2 -2
  122. package/dist/{useMergeTag-Co4xYwG6.js → useMergeTag-HykzEtBn.js} +3 -3
  123. package/dist/usePopoverRoot-BZDkRRry.js +8 -0
  124. package/dist/{vue.runtime.esm-bundler-D0Hg03Ub.js → vue.runtime.esm-bundler-MzYCkFSH.js} +18 -18
  125. package/dist/{x-DWU6NCuE.js → x-DgCCENgP.js} +1 -1
  126. package/package.json +25 -25
  127. package/dist/cdn/chunks/features-_ar9QbVv.js.map +0 -1
  128. package/dist/cdn/chunks/tiptap-CJbIm_hE.js.map +0 -1
  129. package/dist/dist-Bvje_Tqb.js +0 -5
  130. package/dist/dist-BxHa6kIT.js +0 -2243
  131. package/dist/dist-D1YvgM6p.js +0 -5
  132. package/dist/usePopoverRoot-DYH_gX8o.js +0 -8
@@ -1,11 +1,11 @@
1
- import { C as e, F as t, G as n, H as r, J as i, L as a, M as o, O as s, P as c, T as l, V as u, Y as d, Z as f, b as p, c as m, ct as h, f as g, g as _, h as v, it as y, l as b, m as x, n as S, o as C, ot as w, p as T, s as E, st as D, t as ee, u as O, v as k, x as A, y as j, z as M } from "./draggable-J_1CPXYc.js";
2
- import { $ as N, Bt as P, Cn as te, Ct as F, Dn as I, Dt as L, F as R, Ft as z, G as B, Gt as ne, H as re, I as ie, J as ae, Jt as oe, K as se, Kt as ce, L as le, Lt as ue, M as de, Mt as fe, N as pe, O as V, P as me, Pt as he, Qt as ge, R as _e, St as ve, Tn as ye, Tt as be, U as xe, V as Se, Vt as Ce, W as we, Wt as Te, Xt as Ee, Yt as De, Zt as Oe, _n as ke, at as Ae, bt as je, ct as Me, dn as Ne, et as Pe, hn as Fe, in as Ie, it as Le, j as Re, kt as ze, mn as Be, mt as Ve, nn as He, q as Ue, qt as We, rn as Ge, rt as Ke, tn as qe, ut as Je, vn as Ye, wn as Xe, wt as Ze, xn as Qe, xt as $e, yn as et, yt as tt, z as nt, zt as rt } from "./features-_ar9QbVv.js";
3
- import { A as it, F as at, G as ot, I as st, M as ct, N as lt, O as ut, P as dt, T as H, V as ft, Y as pt, _ as mt, b as ht, c as gt, h as _t, m as vt, o as yt, s as bt, u as xt, v as St, y as Ct, z as wt } from "./icons-CnwCLJX-.js";
1
+ import { C as e, F as t, G as n, H as r, J as i, L as a, M as o, O as s, P as c, T as l, V as u, Y as d, Z as f, b as p, c as m, ct as h, f as g, g as _, h as v, it as y, l as b, m as x, n as S, o as C, ot as w, p as T, s as E, st as D, t as ee, u as O, v as k, x as A, y as j, z as M } from "./draggable-BTGr7_-X.js";
2
+ import { $ as N, Bt as P, Ct as te, Dt as ne, En as F, F as I, Ft as L, G as R, Gt as z, H as re, I as ie, J as ae, Jt as oe, K as se, Kt as ce, L as le, Lt as ue, M as de, Mt as fe, N as pe, O as me, P as he, Pt as B, Qt as ge, R as _e, St as ve, Tn as ye, Tt as be, U as xe, V as Se, Vt as Ce, W as we, Wt as Te, Xt as Ee, Yt as De, Zt as Oe, _n as ke, at as Ae, bt as je, ct as Me, dn as Ne, et as Pe, hn as Fe, in as Ie, it as Le, j as Re, kn as ze, kt as Be, mn as Ve, mt as He, nn as Ue, q as We, qt as Ge, rn as Ke, rt as V, tn as qe, ut as Je, vn as Ye, wn as Xe, wt as Ze, xn as Qe, xt as $e, yn as et, yt as tt, z as nt, zt as rt } from "./features-A28DQtjE.js";
3
+ import { A as it, F as at, G as ot, I as st, M as ct, N as lt, O as ut, P as dt, T as H, V as ft, Y as pt, _ as mt, b as ht, c as gt, h as _t, m as vt, o as yt, s as bt, u as xt, v as St, y as Ct, z as wt } from "./icons-C9D3N0-J.js";
4
4
  import { t as Tt } from "./readableTextColor-f8Kykfnh.js";
5
- import { t as Et } from "./CountdownBlock-DU9ga9Ki.js";
6
- import { t as Dt } from "./blockTypeIcons-D05Wqf5u.js";
5
+ import { t as Et } from "./CountdownBlock-gqnpxKp_.js";
6
+ import { t as Dt } from "./blockTypeIcons-Xz6OBq3U.js";
7
7
  import { _ as Ot, c as kt, f as U, g as At, h as W, l as jt, m as G, p as K, t as Mt } from "./styleConstants-lGobwiLH.js";
8
- import { i as q, n as J, r as Y, t as Nt } from "./NumberWithSuffix-DuUcF2zG.js";
8
+ import { i as q, n as J, r as Y, t as Nt } from "./NumberWithSuffix-D4wtmU9O.js";
9
9
  //#region src/utils/resolveLintOptions.ts
10
10
  function Pt(e) {
11
11
  return {
@@ -27,7 +27,7 @@ var Ft = ["aria-label"], It = {
27
27
  }, Ht = { class: "tpl:relative" }, Ut = {
28
28
  class: "tpl:inline-flex tpl:size-3 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[8px] tpl:font-bold",
29
29
  style: { "background-color": "color-mix(\n in srgb,\n var(--tpl-bg) 30%,\n transparent\n )" }
30
- }, Wt = /* @__PURE__ */ Ke(/* @__PURE__ */ A({
30
+ }, Wt = /*#__PURE__*/ V(/* @__PURE__ */ A({
31
31
  __name: "Canvas",
32
32
  props: {
33
33
  viewport: {},
@@ -49,16 +49,16 @@ var Ft = ["aria-label"], It = {
49
49
  paragraph: re,
50
50
  image: we,
51
51
  button: fe,
52
- divider: Ue,
52
+ divider: We,
53
53
  spacer: pe,
54
54
  html: se,
55
- social: me,
55
+ social: he,
56
56
  menu: xe,
57
57
  table: de,
58
58
  video: Re,
59
59
  countdown: Et,
60
60
  custom: ae
61
- }, i = e, s = t, { t: d } = z(), { t: p } = Pe(), m = Ie(oe, "Canvas"), b = l(Te, null), S = l(P, null), C = l(Ce, {}), A = g(() => (C.plan?.hasFeature("ai_generation") ?? !1) && (C.ai?.isFeatureEnabled("chat") ?? !1)), M = g(() => (C.plan?.hasFeature("ai_generation") ?? !1) && (C.ai?.isFeatureEnabled("designToTemplate") ?? !1)), N = g({
61
+ }, i = e, s = t, { t: d } = L(), { t: p } = Pe(), m = Ie(oe, "Canvas"), b = l(Te, null), S = l(P, null), C = l(Ce, {}), A = g(() => (C.plan?.hasFeature("ai_generation") ?? !1) && (C.ai?.isFeatureEnabled("chat") ?? !1)), M = g(() => (C.plan?.hasFeature("ai_generation") ?? !1) && (C.ai?.isFeatureEnabled("designToTemplate") ?? !1)), N = g({
62
62
  get: () => i.content.blocks,
63
63
  set: (e) => {
64
64
  m.setContent({
@@ -71,26 +71,26 @@ var Ft = ["aria-label"], It = {
71
71
  case "mobile": return 375;
72
72
  default: return i.content.settings.width;
73
73
  }
74
- }), F = g(() => ({ fontFamily: i.content.settings.fontFamily })), I = g(() => N.value.length === 0 && !i.previewMode), L = f(0), R = g(() => I.value && L.value > 0);
75
- function B() {
76
- I.value && (L.value += 1);
77
- }
78
- function ne() {
79
- I.value && (L.value = Math.max(0, L.value - 1));
74
+ }), ne = g(() => ({ fontFamily: i.content.settings.fontFamily })), F = g(() => N.value.length === 0 && !i.previewMode), I = f(0), R = g(() => F.value && I.value > 0);
75
+ function z() {
76
+ F.value && (I.value += 1);
80
77
  }
81
78
  function ie() {
82
- L.value = 0;
79
+ F.value && (I.value = Math.max(0, I.value - 1));
83
80
  }
84
- function ce(e) {
85
- i.previewMode || e.target === e.currentTarget && s("select-block", null);
81
+ function ce() {
82
+ I.value = 0;
86
83
  }
87
84
  function ue(e) {
85
+ i.previewMode || e.target === e.currentTarget && s("select-block", null);
86
+ }
87
+ function me(e) {
88
88
  return Se(e, S, n);
89
89
  }
90
- function V(e) {
90
+ function B(e) {
91
91
  return i.lockedBlocks?.get(e) ?? null;
92
92
  }
93
- function he(e, t) {
93
+ function ge(e, t) {
94
94
  e.type === "custom" && m.updateBlock(e.id, {
95
95
  fieldValues: t.fieldValues,
96
96
  dataSourceFetched: t.dataSourceFetched
@@ -118,8 +118,8 @@ var Ft = ["aria-label"], It = {
118
118
  "tpl-canvas--dark-mode": e.darkMode,
119
119
  "tpl-preview-mode": e.previewMode
120
120
  }]),
121
- style: D(F.value),
122
- onClick: ce
121
+ style: D(ne.value),
122
+ onClick: ue
123
123
  }, [j(y(ee), {
124
124
  modelValue: N.value,
125
125
  "onUpdate:modelValue": n[2] ||= (e) => N.value = e,
@@ -135,15 +135,15 @@ var Ft = ["aria-label"], It = {
135
135
  "force-fallback": !0,
136
136
  class: w([
137
137
  "tpl-canvas-blocks",
138
- I.value ? "tpl-canvas-empty tpl:m-6 tpl:flex tpl:min-h-[400px] tpl:flex-col tpl:items-center tpl:justify-center tpl:rounded-xl tpl:border-2 tpl:border-dashed tpl:px-10 tpl:py-12 tpl:text-center tpl:bg-[var(--tpl-bg-elevated)] tpl:font-[var(--tpl-font-family)] tpl:transition-colors tpl:duration-150" : "",
139
- I.value && R.value ? "tpl-canvas-empty--drag-over tpl:border-[var(--tpl-primary-hover)] tpl:bg-[var(--tpl-primary-light)]" : "",
140
- I.value && !R.value ? "tpl:border-[var(--tpl-primary)]" : ""
138
+ F.value ? "tpl-canvas-empty tpl:m-6 tpl:flex tpl:min-h-[400px] tpl:flex-col tpl:items-center tpl:justify-center tpl:rounded-xl tpl:border-2 tpl:border-dashed tpl:px-10 tpl:py-12 tpl:text-center tpl:bg-[var(--tpl-bg-elevated)] tpl:font-[var(--tpl-font-family)] tpl:transition-colors tpl:duration-150" : "",
139
+ F.value && R.value ? "tpl-canvas-empty--drag-over tpl:border-[var(--tpl-primary-hover)] tpl:bg-[var(--tpl-primary-light)]" : "",
140
+ F.value && !R.value ? "tpl:border-[var(--tpl-primary)]" : ""
141
141
  ]),
142
- onDragenter: B,
143
- onDragleave: ne,
144
- onDrop: ie
142
+ onDragenter: z,
143
+ onDragleave: ie,
144
+ onDrop: ce
145
145
  }, {
146
- default: u(() => [I.value ? (o(), _("div", It, [
146
+ default: u(() => [F.value ? (o(), _("div", It, [
147
147
  T("div", Lt, [j(y(_t), {
148
148
  size: 48,
149
149
  "stroke-width": 1
@@ -175,30 +175,30 @@ var Ft = ["aria-label"], It = {
175
175
  ])) : v("", !0), (o(!0), _(O, null, c(N.value, (t) => r((o(), _("div", {
176
176
  key: t.id,
177
177
  class: "tpl-block-item"
178
- }, [T("div", Ht, [V(t.id) ? (o(), _("div", {
178
+ }, [T("div", Ht, [B(t.id) ? (o(), _("div", {
179
179
  key: 0,
180
180
  class: "tpl-collab-lock tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm",
181
181
  style: D({
182
- outline: `2px solid ${V(t.id).color}`,
182
+ outline: `2px solid ${B(t.id).color}`,
183
183
  outlineOffset: "-1px"
184
184
  })
185
185
  }, [T("span", {
186
186
  class: "tpl:absolute tpl:-top-0.5 tpl:left-1/2 tpl:z-[5] tpl:flex tpl:-translate-x-1/2 tpl:-translate-y-full tpl:items-center tpl:gap-1 tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:whitespace-nowrap",
187
187
  style: D({
188
- backgroundColor: V(t.id).color,
189
- color: y(Tt)(V(t.id).color)
188
+ backgroundColor: B(t.id).color,
189
+ color: y(Tt)(B(t.id).color)
190
190
  })
191
- }, [T("span", Ut, h(V(t.id).name.charAt(0)), 1), k(" " + h(V(t.id).name), 1)], 4)], 4)) : v("", !0), j(nt, {
191
+ }, [T("span", Ut, h(B(t.id).name.charAt(0)), 1), k(" " + h(B(t.id).name), 1)], 4)], 4)) : v("", !0), j(nt, {
192
192
  block: t,
193
- "is-selected": !e.previewMode && e.selectedBlockId === t.id && !V(t.id),
193
+ "is-selected": !e.previewMode && e.selectedBlockId === t.id && !B(t.id),
194
194
  viewport: e.viewport,
195
195
  "preview-mode": e.previewMode,
196
- onSelect: (n) => e.previewMode || V(t.id) ? void 0 : s("select-block", t.id)
196
+ onSelect: (n) => e.previewMode || B(t.id) ? void 0 : s("select-block", t.id)
197
197
  }, {
198
- default: u(() => [(o(), x(a(ue(t)), {
198
+ default: u(() => [(o(), x(a(me(t)), {
199
199
  block: t,
200
200
  viewport: e.viewport,
201
- onFetchData: (e) => he(t, e),
201
+ onFetchData: (e) => ge(t, e),
202
202
  onUpdate: (e) => y(m).updateBlock(t.id, e)
203
203
  }, null, 40, [
204
204
  "block",
@@ -251,7 +251,7 @@ var Ft = ["aria-label"], It = {
251
251
  }, en = /* @__PURE__ */ A({
252
252
  __name: "Sidebar",
253
253
  setup(e) {
254
- let { t, format: n } = z(), { t: r } = Pe(), i = l(ne, []), s = l(rt, void 0), d = l(oe, null), p = l(Ce, {}), m = g(() => (p.savedModules?.moduleCount.value ?? 0) > 0), b = f(!1), S = f(!1);
254
+ let { t, format: n } = L(), { t: r } = Pe(), i = l(z, []), s = l(rt, void 0), d = l(oe, null), p = l(Ce, {}), m = g(() => (p.savedModules?.moduleCount.value ?? 0) > 0), b = f(!1), S = f(!1);
255
255
  function C() {
256
256
  S.value || (b.value = !1);
257
257
  }
@@ -277,11 +277,11 @@ var Ft = ["aria-label"], It = {
277
277
  ], A = g(() => {
278
278
  let e = k.map((e) => ({
279
279
  type: e,
280
- label: he(e, t)
280
+ label: B(e, t)
281
281
  }));
282
282
  return p.plan && e.splice(-1, 0, {
283
283
  type: "countdown",
284
- label: he("countdown", t)
284
+ label: B("countdown", t)
285
285
  }), e;
286
286
  }), M = g(() => i.map((e) => ({
287
287
  type: `custom:${e.type}`,
@@ -292,17 +292,17 @@ var Ft = ["aria-label"], It = {
292
292
  function P(e) {
293
293
  if (e.isCustom) {
294
294
  let t = e.type.replace("custom:", ""), n = i.find((e) => e.type === t);
295
- if (n) return Xe(n);
295
+ if (n) return ye(n);
296
296
  }
297
- return te(e.type, s);
297
+ return Xe(e.type, s);
298
298
  }
299
- function F(e) {
299
+ function te(e) {
300
300
  if (!d) return;
301
301
  let t = P(e);
302
302
  d.addBlock(t), d.selectBlock(t.id);
303
303
  }
304
- function I(e, t) {
305
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), F(t));
304
+ function ne(e, t) {
305
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), te(t));
306
306
  }
307
307
  return (e, i) => (o(), _("aside", {
308
308
  "aria-label": y(t).sidebarNav.palette,
@@ -355,8 +355,8 @@ var Ft = ["aria-label"], It = {
355
355
  "aria-label": y(n)(y(t).sidebarNav.insertBlock, { block: e.label }),
356
356
  class: "tpl:flex tpl:h-10 tpl:w-full tpl:cursor-grab tpl:items-center tpl:gap-3 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-3 tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)] active:tpl:cursor-grabbing",
357
357
  style: D({ justifyContent: b.value ? "flex-start" : "center" }),
358
- onClick: (t) => F(e),
359
- onKeydown: (t) => I(t, e)
358
+ onClick: (t) => te(e),
359
+ onKeydown: (t) => ne(t, e)
360
360
  }, [T("div", Qt, [y(Dt)[e.type] ? (o(), x(a(y(Dt)[e.type]), {
361
361
  key: 0,
362
362
  size: 20,
@@ -466,7 +466,7 @@ var nn = ["aria-label", "onKeydown"], rn = ["data-tooltip"], an = ["data-tooltip
466
466
  },
467
467
  emits: ["edit", "clear"],
468
468
  setup(e, { emit: t }) {
469
- let n = t, { t: r } = z();
469
+ let n = t, { t: r } = L();
470
470
  function i() {
471
471
  n("edit");
472
472
  }
@@ -514,7 +514,7 @@ var nn = ["aria-label", "onKeydown"], rn = ["data-tooltip"], an = ["data-tooltip
514
514
  props: { disabled: { type: Boolean } },
515
515
  emits: ["insert"],
516
516
  setup(e) {
517
- let { t } = z();
517
+ let { t } = L();
518
518
  return (n, r) => (o(), _("button", {
519
519
  type: "button",
520
520
  class: w([un, "tpl:mt-1.5"]),
@@ -579,7 +579,7 @@ var nn = ["aria-label", "onKeydown"], rn = ["data-tooltip"], an = ["data-tooltip
579
579
  props: { settings: {} },
580
580
  emits: ["update"],
581
581
  setup(e, { emit: t }) {
582
- let n = e, r = t, { t: i } = z(), a = Ie(De, "TemplateSettings"), s = g(() => a.fonts.value), l = g(() => s.value.some((e) => e.value === n.settings.fontFamily) ? n.settings.fontFamily : a.defaultFont.value), u = [
582
+ let n = e, r = t, { t: i } = L(), a = Ie(De, "TemplateSettings"), s = g(() => a.fonts.value), l = g(() => s.value.some((e) => e.value === n.settings.fontFamily) ? n.settings.fontFamily : a.defaultFont.value), u = [
583
583
  {
584
584
  value: 480,
585
585
  label: "480px"
@@ -685,7 +685,7 @@ var nn = ["aria-label", "onKeydown"], rn = ["data-tooltip"], an = ["data-tooltip
685
685
  "type",
686
686
  "value",
687
687
  "placeholder"
688
- ], Jn = "tpl:flex tpl:w-full tpl:min-h-10 tpl:cursor-pointer tpl:items-center tpl:flex-wrap tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-xs tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:px-3.5 tpl:py-1.5 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", X = /* @__PURE__ */ Ke(/* @__PURE__ */ A({
688
+ ], Jn = "tpl:flex tpl:w-full tpl:min-h-10 tpl:cursor-pointer tpl:items-center tpl:flex-wrap tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-xs tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:px-3.5 tpl:py-1.5 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", X = /*#__PURE__*/ V(/* @__PURE__ */ A({
689
689
  __name: "MergeTagInput",
690
690
  props: {
691
691
  modelValue: {},
@@ -745,7 +745,7 @@ var nn = ["aria-label", "onKeydown"], rn = ["data-tooltip"], an = ["data-tooltip
745
745
  },
746
746
  emits: ["update"],
747
747
  setup(e, { emit: t }) {
748
- let n = t, { t: r } = z();
748
+ let n = t, { t: r } = L();
749
749
  function i(e, t) {
750
750
  n("update", { [e]: t });
751
751
  }
@@ -802,7 +802,7 @@ var nn = ["aria-label", "onKeydown"], rn = ["data-tooltip"], an = ["data-tooltip
802
802
  }, null, 42, fr), T("span", { class: w(y(G)) }, "px", 2)])])])
803
803
  ], 64));
804
804
  }
805
- }), mr = { class: "spacing-control" }, hr = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, gr = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, _r = { class: "tpl:flex tpl:items-center" }, vr = ["aria-label"], yr = ["value", "aria-label"], br = ["aria-label"], xr = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Sr = { class: "tpl:flex tpl:items-center" }, Cr = ["aria-label"], wr = ["value", "aria-label"], Tr = ["aria-label"], Er = ["aria-label", "title"], Dr = { class: "tpl:flex tpl:items-center" }, Or = ["aria-label"], kr = ["value", "aria-label"], Ar = ["aria-label"], jr = { class: "tpl:flex tpl:items-center" }, Mr = ["aria-label"], Nr = ["value", "aria-label"], Pr = ["aria-label"], Z = "tpl:flex tpl:items-center tpl:justify-center tpl:w-8 tpl:h-8 tpl:text-[var(--tpl-text-muted)] tpl:bg-[var(--tpl-bg)] tpl:border tpl:border-[var(--tpl-border)] tpl:cursor-pointer tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-bg-hover)] hover:tpl:text-[var(--tpl-text)] active:tpl:bg-[var(--tpl-bg-active)]", Fr = "tpl:w-10 tpl:h-8 tpl:text-center tpl:text-xs tpl:font-medium tpl:border-y tpl:border-x-0 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)]", Ir = /* @__PURE__ */ Ke(/* @__PURE__ */ A({
805
+ }), mr = { class: "spacing-control" }, hr = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, gr = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, _r = { class: "tpl:flex tpl:items-center" }, vr = ["aria-label"], yr = ["value", "aria-label"], br = ["aria-label"], xr = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Sr = { class: "tpl:flex tpl:items-center" }, Cr = ["aria-label"], wr = ["value", "aria-label"], Tr = ["aria-label"], Er = ["aria-label", "title"], Dr = { class: "tpl:flex tpl:items-center" }, Or = ["aria-label"], kr = ["value", "aria-label"], Ar = ["aria-label"], jr = { class: "tpl:flex tpl:items-center" }, Mr = ["aria-label"], Nr = ["value", "aria-label"], Pr = ["aria-label"], Z = "tpl:flex tpl:items-center tpl:justify-center tpl:w-8 tpl:h-8 tpl:text-[var(--tpl-text-muted)] tpl:bg-[var(--tpl-bg)] tpl:border tpl:border-[var(--tpl-border)] tpl:cursor-pointer tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-bg-hover)] hover:tpl:text-[var(--tpl-text)] active:tpl:bg-[var(--tpl-bg-active)]", Fr = "tpl:w-10 tpl:h-8 tpl:text-center tpl:text-xs tpl:font-medium tpl:border-y tpl:border-x-0 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)]", Ir = /*#__PURE__*/ V(/* @__PURE__ */ A({
806
806
  __name: "SpacingControl",
807
807
  props: {
808
808
  modelValue: {},
@@ -810,7 +810,7 @@ var nn = ["aria-label", "onKeydown"], rn = ["data-tooltip"], an = ["data-tooltip
810
810
  },
811
811
  emits: ["update:modelValue"],
812
812
  setup(e, { emit: t }) {
813
- let n = e, r = t, { t: i } = z(), a = g(() => n.modelValue.top === n.modelValue.right && n.modelValue.right === n.modelValue.bottom && n.modelValue.bottom === n.modelValue.left), s = f(a.value);
813
+ let n = e, r = t, { t: i } = L(), a = g(() => n.modelValue.top === n.modelValue.right && n.modelValue.right === n.modelValue.bottom && n.modelValue.bottom === n.modelValue.left), s = f(a.value);
814
814
  M(a, (e) => {
815
815
  !e && s.value && (s.value = !1);
816
816
  });
@@ -985,7 +985,7 @@ var nn = ["aria-label", "onKeydown"], rn = ["data-tooltip"], an = ["data-tooltip
985
985
  type: "button",
986
986
  class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-1.5 tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
987
987
  onClick: i[0] ||= (e) => n.$emit("toggle")
988
- }, [j(y(ze), {
988
+ }, [j(y(Be), {
989
989
  class: w(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
990
990
  size: 12,
991
991
  "stroke-width": 2
@@ -1011,7 +1011,7 @@ var nn = ["aria-label", "onKeydown"], rn = ["data-tooltip"], an = ["data-tooltip
1011
1011
  },
1012
1012
  emits: ["update"],
1013
1013
  setup(e, { emit: t }) {
1014
- let n = e, i = t, { t: s } = z(), p = l(We, []), m = l(ue, !1), b = d(/* @__PURE__ */ new Set()), S = f(!1), E = f(""), D = f(""), ee = [{
1014
+ let n = e, i = t, { t: s } = L(), p = l(Ge, []), m = l(ue, !1), b = d(/* @__PURE__ */ new Set()), S = f(!1), E = f(""), D = f(""), ee = [{
1015
1015
  key: "desktop",
1016
1016
  icon: lt,
1017
1017
  labelKey: "showOnDesktop"
@@ -1027,7 +1027,7 @@ var nn = ["aria-label", "onKeydown"], rn = ["data-tooltip"], an = ["data-tooltip
1027
1027
  function te() {
1028
1028
  S.value = !0, P.value && n.block.displayCondition ? (E.value = n.block.displayCondition.before, D.value = n.block.displayCondition.after ?? "") : (E.value = "", D.value = "");
1029
1029
  }
1030
- function F() {
1030
+ function ne() {
1031
1031
  E.value.trim() && (i("update", { displayCondition: {
1032
1032
  label: s.blockSettings.customCondition,
1033
1033
  before: E.value.trim(),
@@ -1041,7 +1041,7 @@ var nn = ["aria-label", "onKeydown"], rn = ["data-tooltip"], an = ["data-tooltip
1041
1041
  }
1042
1042
  P.value && (E.value = e.before, D.value = e.after ?? "");
1043
1043
  }, { immediate: !0 });
1044
- let I = g(() => {
1044
+ let F = g(() => {
1045
1045
  let e = {};
1046
1046
  for (let t of p) {
1047
1047
  let n = t.group ?? "";
@@ -1049,7 +1049,7 @@ var nn = ["aria-label", "onKeydown"], rn = ["data-tooltip"], an = ["data-tooltip
1049
1049
  }
1050
1050
  return e;
1051
1051
  });
1052
- function L(e, t) {
1052
+ function I(e, t) {
1053
1053
  i("update", { styles: {
1054
1054
  ...n.block.styles,
1055
1055
  [e]: t
@@ -1058,7 +1058,7 @@ var nn = ["aria-label", "onKeydown"], rn = ["data-tooltip"], an = ["data-tooltip
1058
1058
  function R(e) {
1059
1059
  return n.block.visibility?.[e] !== !1;
1060
1060
  }
1061
- function B(e) {
1061
+ function z(e) {
1062
1062
  let t = {
1063
1063
  desktop: R("desktop"),
1064
1064
  mobile: R("mobile")
@@ -1075,7 +1075,7 @@ var nn = ["aria-label", "onKeydown"], rn = ["data-tooltip"], an = ["data-tooltip
1075
1075
  default: u(() => [j(Ir, {
1076
1076
  label: y(s).blockSettings.padding,
1077
1077
  "model-value": e.block.styles.padding,
1078
- "onUpdate:modelValue": n[0] ||= (e) => L("padding", e)
1078
+ "onUpdate:modelValue": n[0] ||= (e) => I("padding", e)
1079
1079
  }, null, 8, ["label", "model-value"])]),
1080
1080
  _: 1
1081
1081
  }, 8, [
@@ -1091,7 +1091,7 @@ var nn = ["aria-label", "onKeydown"], rn = ["data-tooltip"], an = ["data-tooltip
1091
1091
  default: u(() => [T("label", { class: w(y(W)) }, h(y(s).blockSettings.color), 3), j(q, {
1092
1092
  size: "large",
1093
1093
  "model-value": e.block.styles.backgroundColor || y("#ffffff"),
1094
- "onUpdate:modelValue": n[2] ||= (e) => L("backgroundColor", e)
1094
+ "onUpdate:modelValue": n[2] ||= (e) => I("backgroundColor", e)
1095
1095
  }, null, 8, ["model-value"])]),
1096
1096
  _: 1
1097
1097
  }, 8, ["title", "open"]),
@@ -1108,7 +1108,7 @@ var nn = ["aria-label", "onKeydown"], rn = ["data-tooltip"], an = ["data-tooltip
1108
1108
  type: "checkbox",
1109
1109
  class: "tpl:accent-[var(--tpl-primary)]",
1110
1110
  checked: R(e.key),
1111
- onChange: (t) => B(e.key)
1111
+ onChange: (t) => z(e.key)
1112
1112
  }, null, 40, Br),
1113
1113
  (o(), x(a(e.icon), {
1114
1114
  size: 14,
@@ -1142,7 +1142,7 @@ var nn = ["aria-label", "onKeydown"], rn = ["data-tooltip"], an = ["data-tooltip
1142
1142
  }
1143
1143
  }, [
1144
1144
  T("option", Ur, h(y(s).blockSettings.noCondition), 1),
1145
- (o(!0), _(O, null, c(I.value, (e, t) => (o(), _(O, { key: t }, [t ? (o(), _("optgroup", {
1145
+ (o(!0), _(O, null, c(F.value, (e, t) => (o(), _(O, { key: t }, [t ? (o(), _("optgroup", {
1146
1146
  key: 0,
1147
1147
  label: String(t)
1148
1148
  }, [(o(!0), _(O, null, c(e, (e) => (o(), _("option", {
@@ -1168,7 +1168,7 @@ var nn = ["aria-label", "onKeydown"], rn = ["data-tooltip"], an = ["data-tooltip
1168
1168
  type: "button",
1169
1169
  class: "tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-[var(--tpl-primary)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-bg)] tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:disabled:opacity-50",
1170
1170
  disabled: !E.value.trim(),
1171
- onClick: F
1171
+ onClick: ne
1172
1172
  }, h(y(s).blockSettings.applyCondition), 9, Qr)])
1173
1173
  ])) : e.block.displayCondition && !P.value ? (o(), _(O, { key: 1 }, [e.block.displayCondition.description ? (o(), _("p", $r, h(e.block.displayCondition.description), 1)) : v("", !0), T("div", ei, [T("pre", ti, h(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (o(), _("pre", ni, h(e.block.displayCondition.after), 1)) : v("", !0)])], 64)) : v("", !0)])]),
1174
1174
  _: 1
@@ -1191,7 +1191,7 @@ var nn = ["aria-label", "onKeydown"], rn = ["data-tooltip"], an = ["data-tooltip
1191
1191
  },
1192
1192
  emits: ["update:modelValue"],
1193
1193
  setup(e, { emit: t }) {
1194
- let n = t, { t: r } = z();
1194
+ let n = t, { t: r } = L();
1195
1195
  return (t, i) => (o(), _("div", {
1196
1196
  class: "tpl:mb-3.5",
1197
1197
  title: e.readOnly ? y(r).customBlocks.dataSource.readOnlyTooltip : void 0
@@ -1247,7 +1247,7 @@ var nn = ["aria-label", "onKeydown"], rn = ["data-tooltip"], an = ["data-tooltip
1247
1247
  },
1248
1248
  emits: ["update:modelValue"],
1249
1249
  setup(e, { emit: t }) {
1250
- let n = t, { t: r } = z();
1250
+ let n = t, { t: r } = L();
1251
1251
  return (t, i) => (o(), x(Q, {
1252
1252
  label: e.field.label,
1253
1253
  required: e.field.required,
@@ -1285,7 +1285,7 @@ var nn = ["aria-label", "onKeydown"], rn = ["data-tooltip"], an = ["data-tooltip
1285
1285
  },
1286
1286
  emits: ["update:modelValue"],
1287
1287
  setup(e, { emit: t }) {
1288
- let n = t, { t: r } = z(), i = l(ge, null), a = B(), s = g(() => !!i);
1288
+ let n = t, { t: r } = L(), i = l(ge, null), a = R(), s = g(() => !!i);
1289
1289
  async function c() {
1290
1290
  let e = await i?.({ accept: ["images"] });
1291
1291
  a.alive && e && n("update:modelValue", e.url);
@@ -1342,7 +1342,7 @@ var nn = ["aria-label", "onKeydown"], rn = ["data-tooltip"], an = ["data-tooltip
1342
1342
  },
1343
1343
  emits: ["update:modelValue"],
1344
1344
  setup(e, { emit: t }) {
1345
- let n = t, { t: r } = z();
1345
+ let n = t, { t: r } = L();
1346
1346
  return (t, i) => (o(), x(Q, {
1347
1347
  label: e.field.label,
1348
1348
  required: e.field.required,
@@ -1379,7 +1379,7 @@ var nn = ["aria-label", "onKeydown"], rn = ["data-tooltip"], an = ["data-tooltip
1379
1379
  },
1380
1380
  emits: ["update:modelValue"],
1381
1381
  setup(e, { emit: t }) {
1382
- let n = e, r = t, { t: i } = z(), s = g(() => n.modelValue || []), l = g(() => !n.field.maxItems || s.value.length < n.field.maxItems), d = g(() => !n.field.minItems || s.value.length > n.field.minItems);
1382
+ let n = e, r = t, { t: i } = L(), s = g(() => n.modelValue || []), l = g(() => !n.field.maxItems || s.value.length < n.field.maxItems), d = g(() => !n.field.minItems || s.value.length > n.field.minItems);
1383
1383
  function f() {
1384
1384
  if (!l.value || n.readOnly) return;
1385
1385
  let e = {};
@@ -1458,7 +1458,7 @@ var nn = ["aria-label", "onKeydown"], rn = ["data-tooltip"], an = ["data-tooltip
1458
1458
  },
1459
1459
  emits: ["update:modelValue"],
1460
1460
  setup(e, { emit: t }) {
1461
- let n = t, { t: r } = z();
1461
+ let n = t, { t: r } = L();
1462
1462
  return (t, i) => (o(), x(Q, {
1463
1463
  label: e.field.label,
1464
1464
  required: e.field.required,
@@ -1494,7 +1494,7 @@ var nn = ["aria-label", "onKeydown"], rn = ["data-tooltip"], an = ["data-tooltip
1494
1494
  },
1495
1495
  emits: ["update:modelValue"],
1496
1496
  setup(e, { emit: t }) {
1497
- let n = t, { t: r } = z();
1497
+ let n = t, { t: r } = L();
1498
1498
  return (t, i) => (o(), x(Q, {
1499
1499
  label: e.field.label,
1500
1500
  required: e.field.required,
@@ -1536,7 +1536,7 @@ var nn = ["aria-label", "onKeydown"], rn = ["data-tooltip"], an = ["data-tooltip
1536
1536
  },
1537
1537
  emits: ["update:modelValue"],
1538
1538
  setup(e, { emit: t }) {
1539
- let n = t, { t: r } = z();
1539
+ let n = t, { t: r } = L();
1540
1540
  return (t, i) => (o(), x(Q, {
1541
1541
  label: e.field.label,
1542
1542
  required: e.field.required,
@@ -1599,7 +1599,7 @@ var Mi = {
1599
1599
  props: { block: {} },
1600
1600
  emits: ["updateFieldValues", "updateDataSourceFetched"],
1601
1601
  setup(e, { emit: t }) {
1602
- let n = e, r = t, { t: i } = z(), s = l(ne, []), u = g(() => s.find((e) => e.type === n.block.customType)), { isFetching: d, fetchError: f, fetch: p, hasDataSource: m, needsFetch: b } = Fe({
1602
+ let n = e, r = t, { t: i } = L(), s = l(z, []), u = g(() => s.find((e) => e.type === n.block.customType)), { isFetching: d, fetchError: f, fetch: p, hasDataSource: m, needsFetch: b } = Fe({
1603
1603
  definition: u,
1604
1604
  block: g(() => n.block),
1605
1605
  onUpdate: (e, t) => {
@@ -1627,7 +1627,7 @@ var Mi = {
1627
1627
  type: "button",
1628
1628
  class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-primary)] tpl:hover:text-[var(--tpl-primary)]",
1629
1629
  onClick: n[1] ||= (...e) => y(p) && y(p)(...e)
1630
- }, [j(y(Ve), { size: 12 }), k(" " + h(y(i).customBlocks.dataSource.changeButton), 1)]))])), y(f) ? (o(), _("p", zi, [j(y(L), {
1630
+ }, [j(y(He), { size: 12 }), k(" " + h(y(i).customBlocks.dataSource.changeButton), 1)]))])), y(f) ? (o(), _("p", zi, [j(y(ne), {
1631
1631
  size: 14,
1632
1632
  class: "tpl:shrink-0"
1633
1633
  }), k(" " + h(y(i).customBlocks.dataSource.fetchError), 1)])) : v("", !0)])) : v("", !0),
@@ -1650,7 +1650,7 @@ var Mi = {
1650
1650
  props: { block: {} },
1651
1651
  emits: ["update"],
1652
1652
  setup(e, { emit: t }) {
1653
- let n = t, { t: r } = z();
1653
+ let n = t, { t: r } = L();
1654
1654
  function i(e, t) {
1655
1655
  n("update", { [e]: t });
1656
1656
  }
@@ -1692,7 +1692,7 @@ var Mi = {
1692
1692
  props: { block: {} },
1693
1693
  emits: ["update"],
1694
1694
  setup(e, { emit: t }) {
1695
- let n = t, { t: r } = z();
1695
+ let n = t, { t: r } = L();
1696
1696
  return (t, i) => (o(), _("div", qi, [
1697
1697
  T("label", { class: w(y(W)) }, h(y(r).html.content), 3),
1698
1698
  T("textarea", {
@@ -1719,7 +1719,7 @@ var Mi = {
1719
1719
  props: { block: {} },
1720
1720
  emits: ["update"],
1721
1721
  setup(e, { emit: t }) {
1722
- let n = t, { t: r } = z(), i = l(ge, null), a = l(Oe, ke.liquid), s = B(), c = g(() => !!i), u = f(!1), d = f(!1), { start: p } = Be(() => {
1722
+ let n = t, { t: r } = L(), i = l(ge, null), a = l(Oe, ke.liquid), s = R(), c = g(() => !!i), u = f(!1), d = f(!1), { start: p } = Ve(() => {
1723
1723
  u.value = !1;
1724
1724
  }, 1e3, { immediate: !1 });
1725
1725
  function m(e, t) {
@@ -1843,7 +1843,7 @@ var Mi = {
1843
1843
  },
1844
1844
  emits: ["update"],
1845
1845
  setup(e, { emit: t }) {
1846
- let n = e, r = t, { t: i } = z(), a = g(() => [
1846
+ let n = e, r = t, { t: i } = L(), a = g(() => [
1847
1847
  {
1848
1848
  key: "openInNewTab",
1849
1849
  label: i.menu.openInNewTab
@@ -1878,7 +1878,7 @@ var Mi = {
1878
1878
  }
1879
1879
  function d() {
1880
1880
  let e = {
1881
- id: ye(),
1881
+ id: F(),
1882
1882
  text: "",
1883
1883
  url: "",
1884
1884
  openInNewTab: !1,
@@ -2043,7 +2043,7 @@ var Ea = { class: "tpl:mb-3.5" }, Da = ["value"], Oa = ["value"], ka = /* @__PUR
2043
2043
  props: { block: {} },
2044
2044
  emits: ["update"],
2045
2045
  setup(e, { emit: t }) {
2046
- let n = e, r = t, { t: i } = z(), a = g(() => [
2046
+ let n = e, r = t, { t: i } = L(), a = g(() => [
2047
2047
  {
2048
2048
  value: "1",
2049
2049
  label: i.section.column1
@@ -2086,13 +2086,13 @@ var Ea = { class: "tpl:mb-3.5" }, Da = ["value"], Oa = ["value"], ka = /* @__PUR
2086
2086
  props: { block: {} },
2087
2087
  emits: ["update"],
2088
2088
  setup(e, { emit: t }) {
2089
- let n = e, r = t, { t: i } = z();
2089
+ let n = e, r = t, { t: i } = L();
2090
2090
  function a(e, t) {
2091
2091
  r("update", { [e]: t });
2092
2092
  }
2093
2093
  function s() {
2094
2094
  let e = {
2095
- id: ye(),
2095
+ id: F(),
2096
2096
  platform: "facebook",
2097
2097
  url: ""
2098
2098
  };
@@ -2119,7 +2119,7 @@ var Ea = { class: "tpl:mb-3.5" }, Da = ["value"], Oa = ["value"], ka = /* @__PUR
2119
2119
  }, [(o(!0), _(O, null, c(y(ie), (e) => (o(), _("option", {
2120
2120
  key: e,
2121
2121
  value: e
2122
- }, h(y(R)[e].name), 9, Pa))), 128))], 42, Na), T("button", {
2122
+ }, h(y(I)[e].name), 9, Pa))), 128))], 42, Na), T("button", {
2123
2123
  class: w(y(Ot)),
2124
2124
  title: y(i).social.removeIcon,
2125
2125
  onClick: (t) => u(e.id)
@@ -2207,7 +2207,7 @@ var Ea = { class: "tpl:mb-3.5" }, Da = ["value"], Oa = ["value"], ka = /* @__PUR
2207
2207
  props: { block: {} },
2208
2208
  emits: ["update"],
2209
2209
  setup(e, { emit: t }) {
2210
- let n = t, { t: r } = z();
2210
+ let n = t, { t: r } = L();
2211
2211
  return (t, i) => (o(), _("div", Ya, [
2212
2212
  T("label", { class: w(y(W)) }, h(y(r).spacer.height), 3),
2213
2213
  T("div", Xa, [T("input", {
@@ -2239,15 +2239,15 @@ var Ea = { class: "tpl:mb-3.5" }, Da = ["value"], Oa = ["value"], ka = /* @__PUR
2239
2239
  },
2240
2240
  emits: ["update"],
2241
2241
  setup(e, { emit: t }) {
2242
- let n = e, r = t, { t: i } = z(), a = g(() => n.block.rows.length > 0 ? n.block.rows[0].cells.length : 0);
2242
+ let n = e, r = t, { t: i } = L(), a = g(() => n.block.rows.length > 0 ? n.block.rows[0].cells.length : 0);
2243
2243
  function s(e, t) {
2244
2244
  r("update", { [e]: t });
2245
2245
  }
2246
2246
  function l() {
2247
2247
  let e = n.block.rows.length > 0 ? n.block.rows[0].cells.length : 3, t = {
2248
- id: ye(),
2248
+ id: F(),
2249
2249
  cells: Array.from({ length: e }, () => ({
2250
- id: ye(),
2250
+ id: F(),
2251
2251
  content: ""
2252
2252
  }))
2253
2253
  };
@@ -2260,7 +2260,7 @@ var Ea = { class: "tpl:mb-3.5" }, Da = ["value"], Oa = ["value"], ka = /* @__PUR
2260
2260
  r("update", { rows: n.block.rows.map((e) => ({
2261
2261
  ...e,
2262
2262
  cells: [...e.cells, {
2263
- id: ye(),
2263
+ id: F(),
2264
2264
  content: ""
2265
2265
  }]
2266
2266
  })) });
@@ -2389,7 +2389,7 @@ var Ea = { class: "tpl:mb-3.5" }, Da = ["value"], Oa = ["value"], ka = /* @__PUR
2389
2389
  },
2390
2390
  emits: ["update"],
2391
2391
  setup(e, { emit: t }) {
2392
- let n = t, { t: r } = z();
2392
+ let n = t, { t: r } = L();
2393
2393
  function i(e, t) {
2394
2394
  n("update", { [e]: t });
2395
2395
  }
@@ -2454,7 +2454,7 @@ var Ea = { class: "tpl:mb-3.5" }, Da = ["value"], Oa = ["value"], ka = /* @__PUR
2454
2454
  props: { block: {} },
2455
2455
  emits: ["update"],
2456
2456
  setup(e, { emit: t }) {
2457
- let n = e, r = t, { t: i } = z(), a = l(ge, null), s = l(Oe, ke.liquid), c = B(), u = g(() => !!a), d = g(() => Ye(n.block.url, s)), p = f(!1), { start: m } = Be(() => {
2457
+ let n = e, r = t, { t: i } = L(), a = l(ge, null), s = l(Oe, ke.liquid), c = R(), u = g(() => !!a), d = g(() => Ye(n.block.url, s)), p = f(!1), { start: m } = Ve(() => {
2458
2458
  p.value = !1;
2459
2459
  }, 1e3, { immediate: !1 });
2460
2460
  function b(e, t) {
@@ -2551,7 +2551,7 @@ var Ea = { class: "tpl:mb-3.5" }, Da = ["value"], Oa = ["value"], ka = /* @__PUR
2551
2551
  }, null, 8, ["options", "model-value"])])
2552
2552
  ], 64));
2553
2553
  }
2554
- }), ss = ["aria-label"], cs = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, ls = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, us = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, ds = { class: "tpl:flex tpl:gap-1" }, fs = ["title"], ps = ["title"], ms = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, hs = /* @__PURE__ */ Ke(/* @__PURE__ */ A({
2554
+ }), ss = ["aria-label"], cs = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, ls = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, us = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, ds = { class: "tpl:flex tpl:gap-1" }, fs = ["title"], ps = ["title"], ms = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, hs = /*#__PURE__*/ V(/* @__PURE__ */ A({
2555
2555
  __name: "Toolbar",
2556
2556
  props: { block: {} },
2557
2557
  emits: [
@@ -2560,9 +2560,9 @@ var Ea = { class: "tpl:mb-3.5" }, Da = ["value"], Oa = ["value"], ka = /* @__PUR
2560
2560
  "duplicate"
2561
2561
  ],
2562
2562
  setup(e, { emit: t }) {
2563
- let n = p(() => import("./CountdownToolbar-BHWsxth7.js")), r = e, i = t, { t: s } = z(), c = Ie(De, "Toolbar"), u = l(ne, []), d = g(() => r.block.type), f = g(() => I(r.block)), m = g(() => {
2563
+ let n = p(() => import("./CountdownToolbar-xHpaWQE2.js")), r = e, i = t, { t: s } = L(), c = Ie(De, "Toolbar"), u = l(z, []), d = g(() => r.block.type), f = g(() => ze(r.block)), m = g(() => {
2564
2564
  if (f.value) return u.find((e) => e.type === r.block.customType);
2565
- }), b = g(() => f.value ? m.value?.name ?? r.block.customType : he(d.value, s)), S = c.fonts;
2565
+ }), b = g(() => f.value ? m.value?.name ?? r.block.customType : B(d.value, s)), S = c.fonts;
2566
2566
  function C(e) {
2567
2567
  i("update", e);
2568
2568
  }
@@ -2708,7 +2708,7 @@ var Ea = { class: "tpl:mb-3.5" }, Da = ["value"], Oa = ["value"], ka = /* @__PUR
2708
2708
  "update-settings"
2709
2709
  ],
2710
2710
  setup(e, { emit: t }) {
2711
- let n = p(() => import("./IssuesPanel-BkYhij39.js")), r = e, i = t, { t: a } = z(), s = f("content"), c = l(qe, null), u = g(() => c !== null), d = g(() => c?.issues.value.length ?? 0);
2711
+ let n = p(() => import("./IssuesPanel-DHTTHu65.js")), r = e, i = t, { t: a } = L(), s = f("content"), c = l(qe, null), u = g(() => c !== null), d = g(() => c?.issues.value.length ?? 0);
2712
2712
  function m(e) {
2713
2713
  return s.value === e ? "tpl:flex-1 tpl:text-[var(--tpl-primary)]" : "tpl:shrink-0 tpl:text-[var(--tpl-text-muted)] hover:tpl:text-[var(--tpl-text)]";
2714
2714
  }
@@ -2804,7 +2804,7 @@ var Ea = { class: "tpl:mb-3.5" }, Da = ["value"], Oa = ["value"], ka = /* @__PUR
2804
2804
  props: { viewport: {} },
2805
2805
  emits: ["change"],
2806
2806
  setup(e, { emit: t }) {
2807
- let n = e, r = t, { t: i } = z(), a = g(() => [{
2807
+ let n = e, r = t, { t: i } = L(), a = g(() => [{
2808
2808
  value: "desktop",
2809
2809
  label: i.viewport.desktop
2810
2810
  }, {
@@ -2855,12 +2855,12 @@ var Ea = { class: "tpl:mb-3.5" }, Da = ["value"], Oa = ["value"], ka = /* @__PUR
2855
2855
  "aria-label",
2856
2856
  "title",
2857
2857
  "aria-pressed"
2858
- ], Ls = /* @__PURE__ */ Ke(/* @__PURE__ */ A({
2858
+ ], Ls = /*#__PURE__*/ V(/* @__PURE__ */ A({
2859
2859
  __name: "PreviewToggle",
2860
2860
  props: { previewMode: { type: Boolean } },
2861
2861
  emits: ["change"],
2862
2862
  setup(e, { emit: t }) {
2863
- let n = t, { t: r } = z();
2863
+ let n = t, { t: r } = L();
2864
2864
  return (t, i) => (o(), _("button", {
2865
2865
  class: "tpl-preview-toggle tpl:relative tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:p-2 tpl:transition-all tpl:duration-150",
2866
2866
  style: D({
@@ -2882,7 +2882,7 @@ var Ea = { class: "tpl:mb-3.5" }, Da = ["value"], Oa = ["value"], ka = /* @__PUR
2882
2882
  key: "eye",
2883
2883
  size: 18,
2884
2884
  "stroke-width": 1.5
2885
- })) : (o(), x(y(F), {
2885
+ })) : (o(), x(y(te), {
2886
2886
  key: "eye-off",
2887
2887
  size: 18,
2888
2888
  "stroke-width": 1.5
@@ -2894,12 +2894,12 @@ var Ea = { class: "tpl:mb-3.5" }, Da = ["value"], Oa = ["value"], ka = /* @__PUR
2894
2894
  "aria-label",
2895
2895
  "title",
2896
2896
  "aria-pressed"
2897
- ], zs = /* @__PURE__ */ Ke(/* @__PURE__ */ A({
2897
+ ], zs = /*#__PURE__*/ V(/* @__PURE__ */ A({
2898
2898
  __name: "DarkModeToggle",
2899
2899
  props: { darkMode: { type: Boolean } },
2900
2900
  emits: ["change"],
2901
2901
  setup(e, { emit: t }) {
2902
- let n = t, { t: r } = z();
2902
+ let n = t, { t: r } = L();
2903
2903
  return (t, i) => (o(), _("button", {
2904
2904
  class: "tpl-dark-mode-toggle tpl:relative tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:p-2 tpl:transition-all tpl:duration-150",
2905
2905
  style: D({
@@ -2946,7 +2946,7 @@ var Ea = { class: "tpl:mb-3.5" }, Da = ["value"], Oa = ["value"], ka = /* @__PUR
2946
2946
  __name: "EditorFooter",
2947
2947
  props: { positionClass: {} },
2948
2948
  setup(e) {
2949
- let { t } = z();
2949
+ let { t } = L();
2950
2950
  return (n, r) => (o(), _("footer", { class: w(["tpl:pointer-events-none tpl:absolute tpl:bottom-0 tpl:z-50 tpl:flex tpl:h-8 tpl:items-center tpl:justify-end tpl:pr-4 tpl:text-[9px] tpl:opacity-90 tpl:transition-all tpl:duration-300 tpl:text-[var(--tpl-text-dim)]", e.positionClass]) }, [T("div", Bs, [
2951
2951
  T("span", null, h(y(t).footer.poweredBy), 1),
2952
2952
  r[0] ||= T("a", {
@@ -3002,7 +3002,7 @@ var Ea = { class: "tpl:mb-3.5" }, Da = ["value"], Oa = ["value"], ka = /* @__PUR
3002
3002
  }, $ = "tpl-merge-tag-picker-list", oc = /* @__PURE__ */ A({
3003
3003
  __name: "MergeTagPickerModal",
3004
3004
  setup(e) {
3005
- let t = Ie(Ee, "MergeTagPickerModal"), { t: n, format: i } = z(), a = l(He, null), d = l(Ge, null), p = f(""), S = Ne(p, 200), E = f(null), ee = g(() => S.value.trim().length > 0), k = f(0), A = g(() => t.tags.value.some((e) => !!e.group)), N = f(/* @__PURE__ */ new Set());
3005
+ let t = Ie(Ee, "MergeTagPickerModal"), { t: n, format: i } = L(), a = l(Ue, null), d = l(Ke, null), p = f(""), S = Ne(p, 200), E = f(null), ee = g(() => S.value.trim().length > 0), k = f(0), A = g(() => t.tags.value.some((e) => !!e.group)), N = f(/* @__PURE__ */ new Set());
3006
3006
  function P(e) {
3007
3007
  return N.value.has(e);
3008
3008
  }
@@ -3010,14 +3010,14 @@ var Ea = { class: "tpl:mb-3.5" }, Da = ["value"], Oa = ["value"], ka = /* @__PUR
3010
3010
  let t = new Set(N.value);
3011
3011
  t.has(e) ? t.delete(e) : t.add(e), N.value = t, k.value = 0;
3012
3012
  }
3013
- let F = g(() => {
3013
+ let ne = g(() => {
3014
3014
  let e = S.value.trim().toLowerCase();
3015
3015
  return e ? t.tags.value.filter((t) => [
3016
3016
  t.label,
3017
3017
  t.value,
3018
3018
  t.description ?? ""
3019
3019
  ].join(" ").toLowerCase().includes(e)) : t.tags.value;
3020
- }), I = g(() => {
3020
+ }), F = g(() => {
3021
3021
  if (!A.value) return [];
3022
3022
  let e = n.mergeTag.picker.otherGroup, r = /* @__PURE__ */ new Set(), i = [];
3023
3023
  for (let n of t.tags.value) {
@@ -3025,8 +3025,8 @@ var Ea = { class: "tpl:mb-3.5" }, Da = ["value"], Oa = ["value"], ka = /* @__PUR
3025
3025
  r.has(t) || (r.add(t), i.push(t));
3026
3026
  }
3027
3027
  return i;
3028
- }), L = g(() => {
3029
- let e = F.value;
3028
+ }), I = g(() => {
3029
+ let e = ne.value;
3030
3030
  if (!A.value || ee.value) return e.map((e, t) => ({
3031
3031
  kind: "tag",
3032
3032
  tag: e,
@@ -3051,7 +3051,7 @@ var Ea = { class: "tpl:mb-3.5" }, Da = ["value"], Oa = ["value"], ka = /* @__PUR
3051
3051
  }), o++;
3052
3052
  }
3053
3053
  return a;
3054
- }), R = g(() => L.value.flatMap((e) => e.kind === "tag" ? [e.tag] : []));
3054
+ }), R = g(() => I.value.flatMap((e) => e.kind === "tag" ? [e.tag] : []));
3055
3055
  M(() => t.isOpen.value, (e) => {
3056
3056
  e && (p.value = "", k.value = 0, N.value = /* @__PURE__ */ new Set(), s(() => {
3057
3057
  E.value?.focus();
@@ -3059,34 +3059,34 @@ var Ea = { class: "tpl:mb-3.5" }, Da = ["value"], Oa = ["value"], ka = /* @__PUR
3059
3059
  }), M(R, (e) => {
3060
3060
  k.value >= e.length && (k.value = Math.max(0, e.length - 1));
3061
3061
  });
3062
- function B(e) {
3062
+ function z(e) {
3063
3063
  t.resolve(e);
3064
3064
  }
3065
- function ne() {
3065
+ function re() {
3066
3066
  t.resolve(null);
3067
3067
  }
3068
- function re(e) {
3068
+ function ie(e) {
3069
3069
  if (R.value.length === 0) return;
3070
3070
  let t = k.value + e;
3071
- k.value = Math.max(0, Math.min(R.value.length - 1, t)), se();
3071
+ k.value = Math.max(0, Math.min(R.value.length - 1, t)), ce();
3072
3072
  }
3073
- let ie = f(null), ae = f({});
3074
- function oe(e, t) {
3075
- ae.value[e] = t ?? null;
3073
+ let ae = f(null), oe = f({});
3074
+ function se(e, t) {
3075
+ oe.value[e] = t ?? null;
3076
3076
  }
3077
- function se() {
3077
+ function ce() {
3078
3078
  s(() => {
3079
- let e = ie.value;
3079
+ let e = ae.value;
3080
3080
  e && e.querySelector(`[data-merge-tag-index="${k.value}"]`)?.scrollIntoView({ block: "nearest" });
3081
3081
  });
3082
3082
  }
3083
- function ce(e) {
3083
+ function le(e) {
3084
3084
  if (N.value.has(e)) {
3085
3085
  let t = new Set(N.value);
3086
3086
  t.delete(e), N.value = t;
3087
3087
  }
3088
3088
  s(() => {
3089
- let t = ie.value;
3089
+ let t = ae.value;
3090
3090
  if (!t) return;
3091
3091
  let n = 0, r = !1;
3092
3092
  for (let i of Array.from(t.children)) {
@@ -3102,26 +3102,26 @@ var Ea = { class: "tpl:mb-3.5" }, Da = ["value"], Oa = ["value"], ka = /* @__PUR
3102
3102
  });
3103
3103
  });
3104
3104
  }
3105
- function le(e) {
3106
- if (e.key === "ArrowDown") e.preventDefault(), re(1);
3107
- else if (e.key === "ArrowUp") e.preventDefault(), re(-1);
3105
+ function ue(e) {
3106
+ if (e.key === "ArrowDown") e.preventDefault(), ie(1);
3107
+ else if (e.key === "ArrowUp") e.preventDefault(), ie(-1);
3108
3108
  else if (e.key === "Enter") {
3109
3109
  e.preventDefault();
3110
3110
  let t = R.value[k.value];
3111
- t && B(t);
3111
+ t && z(t);
3112
3112
  }
3113
3113
  }
3114
- function ue() {
3114
+ function de() {
3115
3115
  if (R.value.length !== 0) return `${$}-opt-${k.value}`;
3116
3116
  }
3117
- function de(e) {
3117
+ function fe(e) {
3118
3118
  return `${$}-opt-${e}`;
3119
3119
  }
3120
- let fe = g(() => t.tags.value.length === 0), pe = g(() => !fe.value && F.value.length === 0), me = g(() => A.value && I.value.length > 1 && !ee.value);
3121
- return (e, s) => (o(), x(V, {
3120
+ let pe = g(() => t.tags.value.length === 0), he = g(() => !pe.value && ne.value.length === 0), B = g(() => A.value && F.value.length > 1 && !ee.value);
3121
+ return (e, s) => (o(), x(me, {
3122
3122
  visible: y(t).isOpen.value,
3123
- onClose: ne,
3124
- onKeydown: le
3123
+ onClose: re,
3124
+ onKeydown: ue
3125
3125
  }, {
3126
3126
  default: u(() => [T("div", {
3127
3127
  role: "dialog",
@@ -3140,7 +3140,7 @@ var Ea = { class: "tpl:mb-3.5" }, Da = ["value"], Oa = ["value"], ka = /* @__PUR
3140
3140
  class: "tpl:flex tpl:h-7 tpl:w-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
3141
3141
  "aria-label": y(n).mergeTag.picker.close,
3142
3142
  "data-testid": "merge-tag-picker-close",
3143
- onClick: ne
3143
+ onClick: re
3144
3144
  }, [j(y(Ae), {
3145
3145
  size: 16,
3146
3146
  "stroke-width": 2
@@ -3159,30 +3159,30 @@ var Ea = { class: "tpl:mb-3.5" }, Da = ["value"], Oa = ["value"], ka = /* @__PUR
3159
3159
  placeholder: y(n).mergeTag.picker.searchPlaceholder,
3160
3160
  "aria-label": y(n).mergeTag.picker.searchAriaLabel,
3161
3161
  "aria-controls": $,
3162
- "aria-activedescendant": ue(),
3162
+ "aria-activedescendant": de(),
3163
3163
  "data-testid": "merge-tag-picker-search",
3164
3164
  onKeydown: s[1] ||= m(b(() => {}, ["prevent"]), ["enter"])
3165
3165
  }, null, 40, Js), [[C, p.value]])]),
3166
- me.value ? (o(), _("div", Ys, [(o(!0), _(O, null, c(I.value, (e) => (o(), _("button", {
3166
+ B.value ? (o(), _("div", Ys, [(o(!0), _(O, null, c(F.value, (e) => (o(), _("button", {
3167
3167
  key: e,
3168
3168
  type: "button",
3169
3169
  class: "tpl:flex tpl:flex-shrink-0 tpl:cursor-pointer tpl:items-center tpl:rounded-full tpl:border tpl:border-[var(--tpl-border)] tpl:bg-transparent tpl:px-2.5 tpl:py-0.5 tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
3170
3170
  "data-testid": "merge-tag-picker-group-pill",
3171
3171
  "data-group-name": e,
3172
- onClick: (t) => ce(e)
3172
+ onClick: (t) => le(e)
3173
3173
  }, h(e), 9, Xs))), 128))])) : v("", !0),
3174
3174
  T("div", {
3175
3175
  id: $,
3176
3176
  ref_key: "listRef",
3177
- ref: ie,
3177
+ ref: ae,
3178
3178
  class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
3179
3179
  role: "listbox",
3180
3180
  "aria-label": y(n).mergeTag.picker.title,
3181
3181
  "data-testid": "merge-tag-picker-list"
3182
- }, [fe.value ? (o(), _("div", Qs, h(y(n).mergeTag.picker.empty), 1)) : pe.value ? (o(), _("div", $s, h(y(n).mergeTag.picker.noResults), 1)) : (o(!0), _(O, { key: 2 }, c(L.value, (e, t) => (o(), _(O, { key: t }, [e.kind === "header" ? (o(), _("button", {
3182
+ }, [pe.value ? (o(), _("div", Qs, h(y(n).mergeTag.picker.empty), 1)) : he.value ? (o(), _("div", $s, h(y(n).mergeTag.picker.noResults), 1)) : (o(!0), _(O, { key: 2 }, c(I.value, (e, t) => (o(), _(O, { key: t }, [e.kind === "header" ? (o(), _("button", {
3183
3183
  key: 0,
3184
3184
  ref_for: !0,
3185
- ref: (t) => oe(e.group, t),
3185
+ ref: (t) => se(e.group, t),
3186
3186
  type: "button",
3187
3187
  "aria-expanded": !P(e.group),
3188
3188
  "aria-controls": $,
@@ -3192,7 +3192,7 @@ var Ea = { class: "tpl:mb-3.5" }, Da = ["value"], Oa = ["value"], ka = /* @__PUR
3192
3192
  "data-group-collapsed": P(e.group) ? "true" : "false",
3193
3193
  onClick: (t) => te(e.group)
3194
3194
  }, [
3195
- j(y(ze), {
3195
+ j(y(Be), {
3196
3196
  size: 12,
3197
3197
  "stroke-width": 2,
3198
3198
  class: w(["tpl:transition-transform", P(e.group) ? "tpl:-rotate-90" : ""])
@@ -3201,7 +3201,7 @@ var Ea = { class: "tpl:mb-3.5" }, Da = ["value"], Oa = ["value"], ka = /* @__PUR
3201
3201
  T("span", tc, " (" + h(y(i)(y(n).mergeTag.picker.groupCount, { count: e.count })) + ") ", 1)
3202
3202
  ], 8, ec)) : (o(), _("button", {
3203
3203
  key: 1,
3204
- id: de(e.index),
3204
+ id: fe(e.index),
3205
3205
  type: "button",
3206
3206
  role: "option",
3207
3207
  "aria-selected": e.index === k.value,
@@ -3212,7 +3212,7 @@ var Ea = { class: "tpl:mb-3.5" }, Da = ["value"], Oa = ["value"], ka = /* @__PUR
3212
3212
  class: w(["tpl:flex tpl:w-full tpl:cursor-pointer tpl:flex-col tpl:items-start tpl:gap-0.5 tpl:border-none tpl:px-3 tpl:py-1.5 tpl:text-left tpl:transition-colors", e.index === k.value ? "tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:bg-transparent tpl:text-[var(--tpl-text)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
3213
3213
  "data-testid": "merge-tag-picker-item",
3214
3214
  onMousemove: (t) => k.value = e.index,
3215
- onClick: (t) => B(e.tag)
3215
+ onClick: (t) => z(e.tag)
3216
3216
  }, [
3217
3217
  T("span", rc, h(e.tag.label), 1),
3218
3218
  T("span", ic, h(e.tag.value), 1),
@@ -3226,4 +3226,4 @@ var Ea = { class: "tpl:mb-3.5" }, Da = ["value"], Oa = ["value"], ka = /* @__PUR
3226
3226
  //#endregion
3227
3227
  export { Fs as a, Gt as c, Ls as i, Wt as l, Hs as n, Ms as o, zs as r, en as s, oc as t, Pt as u };
3228
3228
 
3229
- //# sourceMappingURL=styles-1uFWdD5T.js.map
3229
+ //# sourceMappingURL=styles-BDVaiw3K.js.map