@templatical/editor 0.60.4 → 0.61.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 (102) hide show
  1. package/dist/{AiChatPanel-CjUnhJGB.js → AiChatPanel-DF5TvO9H.js} +166 -166
  2. package/dist/{AiPanels-DwI9KjjI.js → AiPanels-zRqC5DIP.js} +1 -1
  3. package/dist/{AiRewriteMenu-Bh1cIX8F.js → AiRewriteMenu-CmZKTO-O.js} +1 -1
  4. package/dist/{BlockPreviewCanvas-C_N6f_FS.js → BlockPreviewCanvas-knSyWaCP.js} +2 -2
  5. package/dist/{CloudPanels-BS49EsuN.js → CloudPanels-BbHJHZri.js} +1 -1
  6. package/dist/{CommentsPanel-BSLk23YP.js → CommentsPanel-BMYvXRKK.js} +1 -1
  7. package/dist/{CommentsSidebar-L-DgP_kM.js → CommentsSidebar-_8at1Rug.js} +139 -139
  8. package/dist/{CountdownToolbar-B6erqTbz.js → CountdownToolbar-BprSuPJk.js} +2 -2
  9. package/dist/{LanguageMenu-DsfCHdVi.js → LanguageMenu-CkGqLYjf.js} +122 -122
  10. package/dist/{LocaleNotices-BxR3xcLl.js → LocaleNotices-D0be8ovO.js} +8 -8
  11. package/dist/{MergeTagTextarea-q6eeDD2l.js → MergeTagTextarea-BjHlamJv.js} +12 -12
  12. package/dist/{ParagraphEditor-25SNi_8O.js → ParagraphEditor-Ctu4fSsl.js} +2 -2
  13. package/dist/{RestoreVersionDialog-BXtCxJF1.js → RestoreVersionDialog-DvZoTJVa.js} +1 -1
  14. package/dist/{SaveBlockDialog-k1lxEBVW.js → SaveBlockDialog-DHfT-Tpx.js} +3 -3
  15. package/dist/{SavedBlocksBrowserModal-CV-8mDPj.js → SavedBlocksBrowserModal-BjJuuXQv.js} +3 -3
  16. package/dist/{SavedBlocksPanels-9nZj1jG_.js → SavedBlocksPanels-D6eiMQZ3.js} +1 -1
  17. package/dist/{SavedBlocksPickBar-Dy6NN9tm.js → SavedBlocksPickBar-BkgCDSXe.js} +1 -1
  18. package/dist/{TemplateSettings-DWxdUdM5.js → TemplateSettings-DQAbNsiS.js} +1 -1
  19. package/dist/{TestEmailModal-BAkkZTaZ.js → TestEmailModal-m_AEa36T.js} +3 -3
  20. package/dist/{TestEmailPanel-ccT2E3em.js → TestEmailPanel-OApkuaVd.js} +1 -1
  21. package/dist/{TitleEditor-B19dYnER.js → TitleEditor-Cwdtfk15.js} +1 -1
  22. package/dist/{Toolbar-DxlZq_36.js → Toolbar-D_T55elL.js} +359 -359
  23. package/dist/{TplModal-Bp2qPmQw.js → TplModal-2MKm5y6r.js} +1 -1
  24. package/dist/{VersionHistoryPanels-wAVDmhnP.js → VersionHistoryPanels-CCM0IQBg.js} +1 -1
  25. package/dist/{WrapperBlock-DHnD6Exl.js → WrapperBlock-BZl10HLy.js} +1 -1
  26. package/dist/bundle-stats.json +6 -6
  27. package/dist/cdn/chunks/{AiChatPanel-DTYmFRwb.js → AiChatPanel-BYAsgmoC.js} +146 -146
  28. package/dist/cdn/chunks/AiChatPanel-BYAsgmoC.js.map +1 -0
  29. package/dist/cdn/chunks/{AiPanels-BW9ze-6O.js → AiPanels-MY_YPls8.js} +2 -2
  30. package/dist/cdn/chunks/{AiPanels-BW9ze-6O.js.map → AiPanels-MY_YPls8.js.map} +1 -1
  31. package/dist/cdn/chunks/{AiRewriteMenu-B9b92d0R.js → AiRewriteMenu-BSePiXe_.js} +2 -2
  32. package/dist/cdn/chunks/{AiRewriteMenu-B9b92d0R.js.map → AiRewriteMenu-BSePiXe_.js.map} +1 -1
  33. package/dist/cdn/chunks/{BlockPreviewCanvas-CLid1x0c.js → BlockPreviewCanvas-B153A3hu.js} +3 -3
  34. package/dist/cdn/chunks/{BlockPreviewCanvas-CLid1x0c.js.map → BlockPreviewCanvas-B153A3hu.js.map} +1 -1
  35. package/dist/cdn/chunks/{CloudPanels-D4dslsyk.js → CloudPanels-Bv26_Sd8.js} +2 -2
  36. package/dist/cdn/chunks/{CloudPanels-D4dslsyk.js.map → CloudPanels-Bv26_Sd8.js.map} +1 -1
  37. package/dist/cdn/chunks/{CommentsPanel-BynxXJ-F.js → CommentsPanel-R27fqh9O.js} +2 -2
  38. package/dist/cdn/chunks/{CommentsPanel-BynxXJ-F.js.map → CommentsPanel-R27fqh9O.js.map} +1 -1
  39. package/dist/cdn/chunks/{CommentsSidebar-C81N5Hwr.js → CommentsSidebar-BEiOQ_zT.js} +133 -133
  40. package/dist/cdn/chunks/CommentsSidebar-BEiOQ_zT.js.map +1 -0
  41. package/dist/cdn/chunks/{CountdownToolbar-f1aqEba0.js → CountdownToolbar-DOhXnbsq.js} +3 -3
  42. package/dist/cdn/chunks/{CountdownToolbar-f1aqEba0.js.map → CountdownToolbar-DOhXnbsq.js.map} +1 -1
  43. package/dist/cdn/chunks/{LanguageMenu-CJp7XdfG.js → LanguageMenu-B6kt8SgX.js} +104 -104
  44. package/dist/cdn/chunks/LanguageMenu-B6kt8SgX.js.map +1 -0
  45. package/dist/cdn/chunks/{LocaleNotices-D5vZzcUj.js → LocaleNotices-Bleg4gTu.js} +9 -9
  46. package/dist/cdn/chunks/LocaleNotices-Bleg4gTu.js.map +1 -0
  47. package/dist/cdn/chunks/{MergeTagTextarea-DMXZgGUF.js → MergeTagTextarea-DGDv-pdn.js} +13 -13
  48. package/dist/cdn/chunks/MergeTagTextarea-DGDv-pdn.js.map +1 -0
  49. package/dist/cdn/chunks/{ParagraphEditor-Ce7_Ix0K.js → ParagraphEditor-D0q36Myd.js} +3 -3
  50. package/dist/cdn/chunks/{ParagraphEditor-Ce7_Ix0K.js.map → ParagraphEditor-D0q36Myd.js.map} +1 -1
  51. package/dist/cdn/chunks/{RestoreVersionDialog-JmMLhN6G.js → RestoreVersionDialog-CJggFdbi.js} +2 -2
  52. package/dist/cdn/chunks/{RestoreVersionDialog-JmMLhN6G.js.map → RestoreVersionDialog-CJggFdbi.js.map} +1 -1
  53. package/dist/cdn/chunks/{SaveBlockDialog-B-2amBN5.js → SaveBlockDialog-BzES5tqd.js} +4 -4
  54. package/dist/cdn/chunks/{SaveBlockDialog-B-2amBN5.js.map → SaveBlockDialog-BzES5tqd.js.map} +1 -1
  55. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BR6fQ222.js → SavedBlocksBrowserModal-CLNcZcLd.js} +4 -4
  56. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BR6fQ222.js.map → SavedBlocksBrowserModal-CLNcZcLd.js.map} +1 -1
  57. package/dist/cdn/chunks/{SavedBlocksPanels-DVNNshfr.js → SavedBlocksPanels-R0W9LElD.js} +2 -2
  58. package/dist/cdn/chunks/{SavedBlocksPanels-DVNNshfr.js.map → SavedBlocksPanels-R0W9LElD.js.map} +1 -1
  59. package/dist/cdn/chunks/{SavedBlocksPickBar-BfxLHLQV.js → SavedBlocksPickBar-JNi5Rx4V.js} +2 -2
  60. package/dist/cdn/chunks/{SavedBlocksPickBar-BfxLHLQV.js.map → SavedBlocksPickBar-JNi5Rx4V.js.map} +1 -1
  61. package/dist/cdn/chunks/{TemplateSettings-TMFrRV2c.js → TemplateSettings-C5wsNcgX.js} +2 -2
  62. package/dist/cdn/chunks/{TemplateSettings-TMFrRV2c.js.map → TemplateSettings-C5wsNcgX.js.map} +1 -1
  63. package/dist/cdn/chunks/{TestEmailModal-tTU35BKZ.js → TestEmailModal-BxIAwjww.js} +4 -4
  64. package/dist/cdn/chunks/{TestEmailModal-tTU35BKZ.js.map → TestEmailModal-BxIAwjww.js.map} +1 -1
  65. package/dist/cdn/chunks/{TestEmailPanel-BNJBVwx0.js → TestEmailPanel-B8BsWXjE.js} +2 -2
  66. package/dist/cdn/chunks/{TestEmailPanel-BNJBVwx0.js.map → TestEmailPanel-B8BsWXjE.js.map} +1 -1
  67. package/dist/cdn/chunks/{TitleEditor-BbscL_C1.js → TitleEditor-DhcI1aRS.js} +2 -2
  68. package/dist/cdn/chunks/{TitleEditor-BbscL_C1.js.map → TitleEditor-DhcI1aRS.js.map} +1 -1
  69. package/dist/cdn/chunks/{Toolbar-BxzyS69X.js → Toolbar-Ch3h2BUs.js} +194 -194
  70. package/dist/cdn/chunks/Toolbar-Ch3h2BUs.js.map +1 -0
  71. package/dist/cdn/chunks/{TplModal-Bzhc_l8y.js → TplModal-CPOqOxVf.js} +2 -2
  72. package/dist/cdn/chunks/{TplModal-Bzhc_l8y.js.map → TplModal-CPOqOxVf.js.map} +1 -1
  73. package/dist/cdn/chunks/{VersionHistoryPanels-Bbb1xUJs.js → VersionHistoryPanels-CVrXHYxT.js} +2 -2
  74. package/dist/cdn/chunks/{VersionHistoryPanels-Bbb1xUJs.js.map → VersionHistoryPanels-CVrXHYxT.js.map} +1 -1
  75. package/dist/cdn/chunks/{WrapperBlock-BboijK5T.js → WrapperBlock-B8SJ7Q4w.js} +2 -2
  76. package/dist/cdn/chunks/{WrapperBlock-BboijK5T.js.map → WrapperBlock-B8SJ7Q4w.js.map} +1 -1
  77. package/dist/cdn/chunks/{composables-C77dGo-I.js → composables-CKXPwWo9.js} +148 -148
  78. package/dist/cdn/chunks/composables-CKXPwWo9.js.map +1 -0
  79. package/dist/cdn/chunks/keys-ywH4jHJ2.js.map +1 -1
  80. package/dist/cdn/chunks/{src-1MSPRtI8.js → src-Bk1LF1np.js} +2 -2
  81. package/dist/cdn/chunks/{src-1MSPRtI8.js.map → src-Bk1LF1np.js.map} +1 -1
  82. package/dist/cdn/chunks/useLanguageName-DDhdVpqh.js +41 -0
  83. package/dist/cdn/chunks/useLanguageName-DDhdVpqh.js.map +1 -0
  84. package/dist/cdn/editor.css +1 -1
  85. package/dist/cdn/editor.js +58 -56
  86. package/dist/cdn/editor.js.map +1 -1
  87. package/dist/{composables-Bu_OmyjT.js → composables-26aR45W3.js} +1222 -1222
  88. package/dist/index.d.ts +5 -1
  89. package/dist/style.css +1 -1
  90. package/dist/templatical-editor.js +57 -55
  91. package/dist/useLanguageName-CEFzafHB.js +39 -0
  92. package/package.json +8 -8
  93. package/dist/cdn/chunks/AiChatPanel-DTYmFRwb.js.map +0 -1
  94. package/dist/cdn/chunks/CommentsSidebar-C81N5Hwr.js.map +0 -1
  95. package/dist/cdn/chunks/LanguageMenu-CJp7XdfG.js.map +0 -1
  96. package/dist/cdn/chunks/LocaleNotices-D5vZzcUj.js.map +0 -1
  97. package/dist/cdn/chunks/MergeTagTextarea-DMXZgGUF.js.map +0 -1
  98. package/dist/cdn/chunks/Toolbar-BxzyS69X.js.map +0 -1
  99. package/dist/cdn/chunks/composables-C77dGo-I.js.map +0 -1
  100. package/dist/cdn/chunks/languageName-DEEOhDWI.js +0 -12
  101. package/dist/cdn/chunks/languageName-DEEOhDWI.js.map +0 -1
  102. package/dist/languageName-DEEOhDWI.js +0 -10
@@ -5,7 +5,7 @@ var u = /* @__PURE__ */ c({
5
5
  __name: "AiPanels",
6
6
  props: { feature: {} },
7
7
  setup(c) {
8
- let u = s(() => import("./AiChatPanel-CjUnhJGB.js")), d = c, f = { chat: u }, p = r(() => {
8
+ let u = s(() => import("./AiChatPanel-DF5TvO9H.js")), d = c, f = { chat: u }, p = r(() => {
9
9
  let e = d.feature.panel.value;
10
10
  return e !== null && e in f ? f[e] : null;
11
11
  });
@@ -6,7 +6,7 @@ import { t as se } from "./sparkles-zWGR8hrs.js";
6
6
  import { t as ce } from "./square--3H462TJ.js";
7
7
  import { t as _ } from "./createLucideIcon-BKeRiObH.js";
8
8
  import { t as le } from "./x-CuyPLm0U.js";
9
- import { n as ue } from "./ParagraphEditor-25SNi_8O.js";
9
+ import { n as ue } from "./ParagraphEditor-Ctu4fSsl.js";
10
10
  import { t as de } from "./useI18n-Cx9W7OWb.js";
11
11
  import { w as v, x as y } from "./styleConstants-Br6CIRoS.js";
12
12
  import { B as fe, P as pe, V as me, n as he, st as ge, ut as _e, v as ve } from "./keys-B4DimcgX.js";
@@ -1,9 +1,9 @@
1
1
  import { t as e } from "./rolldown-runtime-CGnMp29N.js";
2
2
  import { I as t, L as n, M as r, N as i, P as a, Pt as o, c as s, ct as c, f as l, l as u, r as d, u as f, w as p, y as m } from "./vue.runtime.esm-bundler-BE5V8ADU.js";
3
- import { D as h, E as g, S as _, T as v, _ as y, a as b, d as x, g as S, h as C, i as w, k as T, m as E, o as D, r as O, v as k, x as A, y as j } from "./composables-Bu_OmyjT.js";
3
+ import { D as h, E as g, S as _, T as v, _ as y, a as b, d as x, g as S, h as C, i as w, k as T, m as E, o as D, r as O, v as k, x as A, y as j } from "./composables-26aR45W3.js";
4
4
  import { Kt as M, rn as N, v as P } from "./dist-DX_IQgcU.js";
5
5
  import { B as ee, C as F, R as I, Y as te, b as ne, et as re, l as L, lt as ie, m as ae, ut as R, v as z } from "./keys-B4DimcgX.js";
6
- import { t as B } from "./WrapperBlock-DHnD6Exl.js";
6
+ import { t as B } from "./WrapperBlock-BZl10HLy.js";
7
7
  import { c as V, l as H, o as U } from "./socialIcons-mWE33bOn.js";
8
8
  // src/components/blocks/PreviewSectionBlock.vue?vue&type=script&setup=true&lang.ts
9
9
  var W = { class: "tpl:w-full" }, G = { class: "tpl:flex tpl:gap-0" }, K = /* @__PURE__ */ m({
@@ -4,7 +4,7 @@ import { t as h } from "./circle-exclamation-point-BCx1tR91.js";
4
4
  import { C as g, b as _, f as v } from "./styleConstants-Br6CIRoS.js";
5
5
  import { t as y } from "./useCloudI18n-BnuOL1YS.js";
6
6
  import { t as b } from "./triangle-exclamation-point-Bi7ZKTZU.js";
7
- import { t as x } from "./TplModal-Bp2qPmQw.js";
7
+ import { t as x } from "./TplModal-2MKm5y6r.js";
8
8
  // src/cloud/components/CloudErrorOverlay.vue?vue&type=script&setup=true&lang.ts
9
9
  var S = {
10
10
  key: 0,
@@ -5,7 +5,7 @@ var c = /* @__PURE__ */ o({
5
5
  __name: "CommentsPanel",
6
6
  props: { feature: {} },
7
7
  setup(o) {
8
- let c = a(() => import("./CommentsSidebar-L-DgP_kM.js"));
8
+ let c = a(() => import("./CommentsSidebar-_8at1Rug.js"));
9
9
  return (a, l) => (e(), i(s, {
10
10
  "enter-active-class": "tpl-panel-enter-active",
11
11
  "leave-active-class": "tpl-panel-leave-active"
@@ -1,22 +1,22 @@
1
1
  import { B as e, Ft as t, M as n, Mt as r, O as i, P as a, Pt as o, U as s, W as c, _ as l, c as u, ct as d, d as f, et as p, f as m, g as ee, l as h, r as g, u as _, w as te, y as v } from "./vue.runtime.esm-bundler-BE5V8ADU.js";
2
2
  import { a as y, t as b } from "./runtime-dom.esm-bundler-nN-jsqr1.js";
3
3
  import { u as x } from "./styleConstants-Br6CIRoS.js";
4
- import { t as S } from "./languageName-DEEOhDWI.js";
5
- import { t as ne } from "./formatRelativeTime-BTD8Ktt-.js";
6
- import { O as re, ut as ie, v as ae } from "./keys-B4DimcgX.js";
7
- import { t as oe } from "./useI18n-Cx9W7OWb.js";
8
- import { t as se } from "./check-8ZykoWzl.js";
9
- import { t as C } from "./createLucideIcon-BKeRiObH.js";
10
- import { t as ce } from "./chevron-down-D_CUJHwi.js";
11
- import { t as le } from "./chevron-up-L-H27use.js";
12
- import { t as w } from "./loader-circle-uLY01591.js";
13
- import { t as T } from "./message-circle-amY03UMa.js";
14
- import { t as E } from "./pencil-D1HBG4pb.js";
15
- import { t as D } from "./send-BJEuoIc2.js";
16
- import { t as O } from "./trash-CJsobpw0.js";
17
- import { t as ue } from "./x-CuyPLm0U.js";
4
+ import { t as ne } from "./useLanguageName-CEFzafHB.js";
5
+ import { t as re } from "./formatRelativeTime-BTD8Ktt-.js";
6
+ import { O as ie, ut as ae, v as oe } from "./keys-B4DimcgX.js";
7
+ import { t as se } from "./useI18n-Cx9W7OWb.js";
8
+ import { t as ce } from "./check-8ZykoWzl.js";
9
+ import { t as S } from "./createLucideIcon-BKeRiObH.js";
10
+ import { t as le } from "./chevron-down-D_CUJHwi.js";
11
+ import { t as ue } from "./chevron-up-L-H27use.js";
12
+ import { t as C } from "./loader-circle-uLY01591.js";
13
+ import { t as w } from "./message-circle-amY03UMa.js";
14
+ import { t as T } from "./pencil-D1HBG4pb.js";
15
+ import { t as E } from "./send-BJEuoIc2.js";
16
+ import { t as D } from "./trash-CJsobpw0.js";
17
+ import { t as O } from "./x-CuyPLm0U.js";
18
18
  import { t as de } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
19
- var fe = C({
19
+ var fe = S({
20
20
  name: "circle-check",
21
21
  size: 24,
22
22
  node: [["circle", {
@@ -29,7 +29,7 @@ var fe = C({
29
29
  key: "xofnsj"
30
30
  }]],
31
31
  aliases: ["check-circle-2"]
32
- }), pe = C({
32
+ }), pe = S({
33
33
  name: "reply",
34
34
  size: 24,
35
35
  node: [["path", {
@@ -106,16 +106,16 @@ var fe = C({
106
106
  feature: {}
107
107
  },
108
108
  emits: ["close"],
109
- setup(v, { expose: C, emit: de }) {
110
- let k = v, Tt = de, { t: A, format: j } = oe(), M = ie(ae, "CommentsSidebar"), N = u(() => k.feature.headless), P = p("unresolved"), F = te(re, void 0), I = p(!1), Et = u(() => M.activeLocale?.value ?? M.content.value.settings.locale);
111
- function L(e) {
109
+ setup(v, { expose: S, emit: de }) {
110
+ let k = v, Tt = de, { t: A, format: j } = se(), M = ae(oe, "CommentsSidebar"), N = ne(M), P = u(() => k.feature.headless), F = p("unresolved"), I = te(ie, void 0), L = p(!1), Et = u(() => M.activeLocale?.value ?? M.content.value.settings.locale);
111
+ function R(e) {
112
112
  return e.locale ?? M.content.value.settings.locale;
113
113
  }
114
- let R = p(""), z = p(null), B = p(""), V = p(null), H = p(""), U = p(/* @__PURE__ */ new Set()), W = p(null), G = p(null), K = u(() => k.feature.filterBlockId.value);
115
- e(K, (e) => {
116
- e && (P.value = "block");
114
+ let z = p(""), B = p(null), V = p(""), H = p(null), U = p(""), W = p(/* @__PURE__ */ new Set()), G = p(null), K = p(null), q = u(() => k.feature.filterBlockId.value);
115
+ e(q, (e) => {
116
+ e && (F.value = "block");
117
117
  }, { immediate: !0 });
118
- let Dt = u(() => N.value.isLoading.value && N.value.comments.value.length === 0), Ot = u(() => {
118
+ let Dt = u(() => P.value.isLoading.value && P.value.comments.value.length === 0), Ot = u(() => {
119
119
  let e = /* @__PURE__ */ new Set();
120
120
  for (let t of M.content.value.blocks) if (e.add(t.id), t.type === "section") for (let n of t.children) for (let t of n) e.add(t.id);
121
121
  return e;
@@ -123,108 +123,108 @@ var fe = C({
123
123
  function kt(e) {
124
124
  return e ? !Ot.value.has(e) : !1;
125
125
  }
126
- let At = u(() => P.value !== "block" || !K.value ? !1 : k.feature.capability.isBlockSaved(K.value) === !1), q = u(() => {
127
- let e = N.value.comments.value;
128
- return P.value === "unresolved" ? e = e.filter((e) => !e.resolvedAt) : P.value === "block" && K.value && (e = e.filter((e) => e.blockId === K.value)), I.value && (e = e.filter((e) => [e, ...e.replies ?? []].some((e) => L(e) === Et.value))), e;
126
+ let At = u(() => F.value !== "block" || !q.value ? !1 : k.feature.capability.isBlockSaved(q.value) === !1), J = u(() => {
127
+ let e = P.value.comments.value;
128
+ return F.value === "unresolved" ? e = e.filter((e) => !e.resolvedAt) : F.value === "block" && q.value && (e = e.filter((e) => e.blockId === q.value)), L.value && (e = e.filter((e) => [e, ...e.replies ?? []].some((e) => R(e) === Et.value))), e;
129
129
  });
130
130
  e(() => M.state.selectedBlockId, (e) => {
131
- P.value === "block" && e && (k.feature.filterBlockId.value = e);
131
+ F.value === "block" && e && (k.feature.filterBlockId.value = e);
132
132
  });
133
- function J(e, t) {
134
- P.value = e, k.feature.filterBlockId.value = e === "block" ? t ?? null : null;
133
+ function Y(e, t) {
134
+ F.value = e, k.feature.filterBlockId.value = e === "block" ? t ?? null : null;
135
135
  }
136
136
  function jt(e) {
137
- J("block", e);
137
+ Y("block", e);
138
138
  }
139
139
  function Mt(e) {
140
- U.value.has(e) ? U.value.delete(e) : U.value.add(e);
140
+ W.value.has(e) ? W.value.delete(e) : W.value.add(e);
141
141
  }
142
142
  function Nt(e) {
143
- z.value = e, B.value = "", V.value = null, U.value.has(e) || U.value.add(e);
143
+ B.value = e, V.value = "", H.value = null, W.value.has(e) || W.value.add(e);
144
144
  }
145
145
  function Pt() {
146
- z.value = null, B.value = "";
146
+ B.value = null, V.value = "";
147
147
  }
148
- function Y(e) {
149
- V.value = e.id, H.value = e.body, z.value = null;
148
+ function X(e) {
149
+ H.value = e.id, U.value = e.body, B.value = null;
150
150
  }
151
- function X() {
152
- V.value = null, H.value = "";
151
+ function Z() {
152
+ H.value = null, U.value = "";
153
153
  }
154
154
  function Ft(e) {
155
- W.value = e;
155
+ G.value = e;
156
156
  }
157
157
  function It() {
158
- W.value = null;
158
+ G.value = null;
159
159
  }
160
160
  async function Lt() {
161
- let e = R.value.trim();
162
- if (!e || !N.value.canCreate.value) return;
163
- let t = P.value === "block" ? K.value : void 0;
161
+ let e = z.value.trim();
162
+ if (!e || !P.value.canCreate.value) return;
163
+ let t = F.value === "block" ? q.value : void 0;
164
164
  try {
165
- await N.value.create({
165
+ await P.value.create({
166
166
  body: e,
167
167
  blockId: t ?? void 0,
168
168
  locale: M.activeLocale?.value ?? M.content.value.settings.locale
169
- }), R.value = "";
169
+ }), z.value = "";
170
170
  } catch {}
171
171
  }
172
172
  async function Rt(e) {
173
- let t = B.value.trim();
174
- if (!t || !N.value.canCreate.value) return;
175
- let n = N.value.find(e);
173
+ let t = V.value.trim();
174
+ if (!t || !P.value.canCreate.value) return;
175
+ let n = P.value.find(e);
176
176
  try {
177
- await N.value.create({
177
+ await P.value.create({
178
178
  body: t,
179
179
  blockId: n?.blockId ?? void 0,
180
180
  parentId: e,
181
181
  locale: M.activeLocale?.value ?? M.content.value.settings.locale
182
- }), z.value = null, B.value = "";
182
+ }), B.value = null, V.value = "";
183
183
  } catch {}
184
184
  }
185
- async function Z(e) {
186
- let t = H.value.trim();
185
+ async function Q(e) {
186
+ let t = U.value.trim();
187
187
  if (t) try {
188
- await N.value.update(e, { body: t }), V.value = null, H.value = "";
188
+ await P.value.update(e, { body: t }), H.value = null, U.value = "";
189
189
  } catch {}
190
190
  }
191
191
  async function zt(e) {
192
192
  try {
193
- await N.value.remove(e);
193
+ await P.value.remove(e);
194
194
  } catch {}
195
- W.value = null;
195
+ G.value = null;
196
196
  }
197
197
  async function Bt(e) {
198
198
  try {
199
- await N.value.setResolved(e.id, !e.resolvedAt);
199
+ await P.value.setResolved(e.id, !e.resolvedAt);
200
200
  } catch {}
201
201
  }
202
- function Q(e) {
203
- return N.value.canUpdate.value && N.value.isOwn(e);
204
- }
205
202
  function Vt(e) {
206
- return N.value.canDelete.value && N.value.isOwn(e);
203
+ return P.value.canUpdate.value && P.value.isOwn(e);
207
204
  }
208
205
  function Ht(e) {
209
- return ne(e, A.time) ?? e;
206
+ return P.value.canDelete.value && P.value.isOwn(e);
210
207
  }
211
208
  function Ut(e) {
209
+ return re(e, A.time) ?? e;
210
+ }
211
+ function Wt(e) {
212
212
  e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Lt());
213
213
  }
214
- function Wt(e, t) {
214
+ function Gt(e, t) {
215
215
  e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Rt(t));
216
216
  }
217
217
  function $(e, t) {
218
- e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Z(t)), e.key === "Escape" && X();
218
+ e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Q(t)), e.key === "Escape" && Z();
219
219
  }
220
- function Gt() {
220
+ function Kt() {
221
221
  i(() => {
222
- G.value?.focus();
222
+ K.value?.focus();
223
223
  });
224
224
  }
225
- return C({
225
+ return S({
226
226
  filterByBlock: jt,
227
- focusNewComment: Gt
227
+ focusNewComment: Kt
228
228
  }), (e, i) => v.visible ? (n(), m("div", {
229
229
  key: 0,
230
230
  role: "complementary",
@@ -233,7 +233,7 @@ var fe = C({
233
233
  class: "tpl-comments-sidebar tpl:absolute tpl:top-14 tpl:right-0 tpl:bottom-0 tpl:flex tpl:w-[360px] tpl:flex-col tpl:border-l tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)]"
234
234
  }, [
235
235
  h("div", he, [h("div", ge, [
236
- l(d(T), {
236
+ l(d(w), {
237
237
  size: 13,
238
238
  "stroke-width": 2
239
239
  }),
@@ -244,67 +244,67 @@ var fe = C({
244
244
  class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
245
245
  "aria-label": d(A).comments.close,
246
246
  onClick: i[0] ||= (e) => Tt("close")
247
- }, [l(d(ue), {
247
+ }, [l(d(O), {
248
248
  size: 14,
249
249
  "stroke-width": 2
250
250
  })], 8, ve)]),
251
251
  h("div", ye, [
252
252
  h("button", {
253
253
  type: "button",
254
- class: r(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", P.value === "unresolved" ? "tpl-comment-filter--active" : ""]),
255
- "aria-pressed": P.value === "unresolved",
254
+ class: r(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", F.value === "unresolved" ? "tpl-comment-filter--active" : ""]),
255
+ "aria-pressed": F.value === "unresolved",
256
256
  "data-testid": "comments-filter-unresolved",
257
- onClick: i[1] ||= (e) => J("unresolved")
257
+ onClick: i[1] ||= (e) => Y("unresolved")
258
258
  }, t(d(A).comments.filterUnresolved), 11, be),
259
259
  h("button", {
260
260
  type: "button",
261
- class: r(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", P.value === "all" ? "tpl-comment-filter--active" : ""]),
262
- "aria-pressed": P.value === "all",
261
+ class: r(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", F.value === "all" ? "tpl-comment-filter--active" : ""]),
262
+ "aria-pressed": F.value === "all",
263
263
  "data-testid": "comments-filter-all",
264
- onClick: i[2] ||= (e) => J("all")
264
+ onClick: i[2] ||= (e) => Y("all")
265
265
  }, t(d(A).comments.filterAll), 11, xe),
266
266
  d(M).state.selectedBlockId ? (n(), m("button", {
267
267
  key: 0,
268
268
  type: "button",
269
- class: r(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", P.value === "block" ? "tpl-comment-filter--active" : ""]),
270
- "aria-pressed": P.value === "block",
269
+ class: r(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors", F.value === "block" ? "tpl-comment-filter--active" : ""]),
270
+ "aria-pressed": F.value === "block",
271
271
  "data-testid": "comments-filter-block",
272
- onClick: i[3] ||= (e) => J("block", d(M).state.selectedBlockId ?? void 0)
272
+ onClick: i[3] ||= (e) => Y("block", d(M).state.selectedBlockId ?? void 0)
273
273
  }, t(d(A).comments.filterBlock), 11, Se)) : f("", !0),
274
- d(F) ? (n(), m("button", {
274
+ d(I) ? (n(), m("button", {
275
275
  key: 1,
276
276
  type: "button",
277
277
  "data-testid": "comments-filter-language",
278
- class: r(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:focus-visible:outline-none tpl:focus-visible:shadow-[var(--tpl-ring)]", I.value ? "tpl-comment-filter--active" : ""]),
279
- "aria-pressed": I.value,
280
- onClick: i[4] ||= (e) => I.value = !I.value
278
+ class: r(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:focus-visible:outline-none tpl:focus-visible:shadow-[var(--tpl-ring)]", L.value ? "tpl-comment-filter--active" : ""]),
279
+ "aria-pressed": L.value,
280
+ onClick: i[4] ||= (e) => L.value = !L.value
281
281
  }, t(d(A).comments.filterLanguage), 11, Ce)) : f("", !0)
282
282
  ]),
283
- h("div", we, [Dt.value ? (n(), m("div", Te, [l(d(w), {
283
+ h("div", we, [Dt.value ? (n(), m("div", Te, [l(d(C), {
284
284
  class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
285
285
  size: 24,
286
286
  "stroke-width": 2
287
- })])) : q.value.length === 0 ? (n(), m("div", Ee, [l(d(T), {
287
+ })])) : J.value.length === 0 ? (n(), m("div", Ee, [l(d(w), {
288
288
  size: 32,
289
289
  "stroke-width": 1.5,
290
290
  class: "tpl:text-[var(--tpl-text-dim)]"
291
- }), h("p", De, t(P.value === "all" ? d(A).comments.noCommentsHint : d(A).comments.noComments), 1)])) : (n(), m("div", Oe, [(n(!0), m(g, null, a(q.value, (e) => (n(), m("div", {
291
+ }), h("p", De, t(F.value === "all" ? d(A).comments.noCommentsHint : d(A).comments.noComments), 1)])) : (n(), m("div", Oe, [(n(!0), m(g, null, a(J.value, (e) => (n(), m("div", {
292
292
  key: e.id,
293
293
  class: "tpl-comment-thread",
294
294
  "data-testid": "comment-thread"
295
295
  }, [
296
296
  h("div", ke, [
297
297
  h("div", Ae, [h("div", je, [
298
- h("span", Me, t(N.value.isOwn(e) ? d(A).comments.ownedByYou : e.author.name), 1),
299
- h("span", Ne, t(Ht(e.createdAt)), 1),
300
- d(F) ? (n(), m("span", {
298
+ h("span", Me, t(P.value.isOwn(e) ? d(A).comments.ownedByYou : e.author.name), 1),
299
+ h("span", Ne, t(Ut(e.createdAt)), 1),
300
+ d(I) ? (n(), m("span", {
301
301
  key: 0,
302
302
  "data-testid": "comment-locale-badge",
303
303
  class: r(d(x))
304
- }, t(d(S)(L(e))), 3)) : f("", !0),
304
+ }, t(d(N)(R(e))), 3)) : f("", !0),
305
305
  e.updatedAt ? (n(), m("span", Pe, " (" + t(d(A).comments.edited) + ") ", 1)) : f("", !0)
306
306
  ]), h("div", Fe, [
307
- N.value.canResolve.value ? (n(), m("button", {
307
+ P.value.canResolve.value ? (n(), m("button", {
308
308
  key: 0,
309
309
  "data-testid": "comment-resolve",
310
310
  class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
@@ -316,29 +316,29 @@ var fe = C({
316
316
  class: "tpl-resolve-icon",
317
317
  style: o({ color: e.resolvedAt ? "var(--tpl-primary)" : void 0 })
318
318
  }, null, 8, ["style"])], 8, Ie)) : f("", !0),
319
- Q(e) ? (n(), m("button", {
319
+ Vt(e) ? (n(), m("button", {
320
320
  key: 1,
321
321
  "data-testid": "comment-edit",
322
322
  class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
323
323
  title: d(A).comments.edit,
324
- onClick: (t) => Y(e)
325
- }, [l(d(E), {
324
+ onClick: (t) => X(e)
325
+ }, [l(d(T), {
326
326
  size: 12,
327
327
  "stroke-width": 2
328
328
  })], 8, Le)) : f("", !0),
329
- Vt(e) ? (n(), m("button", {
329
+ Ht(e) ? (n(), m("button", {
330
330
  key: 2,
331
331
  "data-testid": "comment-delete",
332
332
  class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
333
333
  title: d(A).comments.delete,
334
334
  onClick: (t) => Ft(e.id)
335
- }, [l(d(O), {
335
+ }, [l(d(D), {
336
336
  size: 12,
337
337
  "stroke-width": 2
338
338
  })], 8, Re)) : f("", !0)
339
339
  ])]),
340
340
  l(b, { name: "tpl-resolve" }, {
341
- default: s(() => [e.resolvedAt ? (n(), m("div", ze, [l(d(se), {
341
+ default: s(() => [e.resolvedAt ? (n(), m("div", ze, [l(d(ce), {
342
342
  size: 10,
343
343
  "stroke-width": 2.5
344
344
  }), h("span", null, t(d(j)(d(A).comments.resolvedBy, { name: e.resolvedBy?.name ?? "" })), 1)])) : f("", !0)]),
@@ -349,20 +349,20 @@ var fe = C({
349
349
  class: "tpl:mt-1 tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:transition-colors tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]",
350
350
  onClick: (t) => d(M).selectBlock(e.blockId ?? "")
351
351
  }, t(d(A).comments.jumpToBlock), 9, Ve)) : f("", !0),
352
- V.value === e.id ? (n(), m("div", He, [c(h("textarea", {
353
- "onUpdate:modelValue": i[5] ||= (e) => H.value = e,
352
+ H.value === e.id ? (n(), m("div", He, [c(h("textarea", {
353
+ "onUpdate:modelValue": i[5] ||= (e) => U.value = e,
354
354
  class: "tpl:w-full tpl:resize-none tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:font-sans tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]",
355
355
  rows: "3",
356
356
  onKeydown: (t) => $(t, e.id)
357
- }, null, 40, Ue), [[y, H.value]]), h("div", We, [h("button", {
357
+ }, null, 40, Ue), [[y, U.value]]), h("div", We, [h("button", {
358
358
  class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-on-primary)]",
359
- disabled: !H.value.trim() || N.value.isSubmitting.value,
360
- onClick: (t) => Z(e.id)
359
+ disabled: !U.value.trim() || P.value.isSubmitting.value,
360
+ onClick: (t) => Q(e.id)
361
361
  }, t(d(A).comments.save), 9, Ge), h("button", {
362
362
  class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
363
- onClick: i[6] ||= (e) => X()
363
+ onClick: i[6] ||= (e) => Z()
364
364
  }, t(d(A).comments.cancel), 1)])])) : (n(), m("p", Ke, t(e.body), 1)),
365
- W.value === e.id ? (n(), m("div", qe, [
365
+ G.value === e.id ? (n(), m("div", qe, [
366
366
  h("span", Je, t(d(A).comments.deleteConfirm), 1),
367
367
  h("button", {
368
368
  class: "tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-xs tpl:font-medium tpl:bg-[var(--tpl-danger)] tpl:text-[var(--tpl-bg)]",
@@ -374,7 +374,7 @@ var fe = C({
374
374
  onClick: i[7] ||= (e) => It()
375
375
  }, t(d(A).comments.cancel), 1)
376
376
  ])) : f("", !0),
377
- V.value !== e.id && W.value !== e.id ? (n(), m("div", Xe, [N.value.canCreate.value ? (n(), m("button", {
377
+ H.value !== e.id && G.value !== e.id ? (n(), m("div", Xe, [P.value.canCreate.value ? (n(), m("button", {
378
378
  key: 0,
379
379
  "data-testid": "comment-reply",
380
380
  class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
@@ -388,61 +388,61 @@ var fe = C({
388
388
  key: 1,
389
389
  class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
390
390
  onClick: (t) => Mt(e.id)
391
- }, [U.value.has(e.id) ? (n(), _(d(le), {
391
+ }, [W.value.has(e.id) ? (n(), _(d(ue), {
392
392
  key: 0,
393
393
  size: 11,
394
394
  "stroke-width": 2
395
- })) : (n(), _(d(ce), {
395
+ })) : (n(), _(d(le), {
396
396
  key: 1,
397
397
  size: 11,
398
398
  "stroke-width": 2
399
399
  })), ee(" " + t((e.replies?.length ?? 0) === 1 ? d(j)(d(A).comments.replyOne, { count: String(e.replies?.length ?? 0) }) : d(j)(d(A).comments.replyMany, { count: String(e.replies?.length ?? 0) })), 1)], 8, Qe)) : f("", !0)])) : f("", !0)
400
400
  ]),
401
401
  l(b, { name: "tpl-replies" }, {
402
- default: s(() => [U.value.has(e.id) && (e.replies?.length ?? 0) > 0 ? (n(), m("div", $e, [(n(!0), m(g, null, a(e.replies, (a, o) => (n(), m("div", {
402
+ default: s(() => [W.value.has(e.id) && (e.replies?.length ?? 0) > 0 ? (n(), m("div", $e, [(n(!0), m(g, null, a(e.replies, (a, o) => (n(), m("div", {
403
403
  key: a.id,
404
404
  class: r(["tpl-comment-reply-card tpl:relative tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-2.5", o < (e.replies?.length ?? 0) - 1 ? "tpl:mb-2" : ""])
405
405
  }, [
406
406
  h("div", et, [h("div", tt, [
407
- h("span", nt, t(N.value.isOwn(a) ? d(A).comments.ownedByYou : a.author.name), 1),
408
- h("span", rt, t(Ht(a.createdAt)), 1),
409
- d(F) ? (n(), m("span", {
407
+ h("span", nt, t(P.value.isOwn(a) ? d(A).comments.ownedByYou : a.author.name), 1),
408
+ h("span", rt, t(Ut(a.createdAt)), 1),
409
+ d(I) ? (n(), m("span", {
410
410
  key: 0,
411
411
  "data-testid": "comment-locale-badge",
412
412
  class: r(d(x))
413
- }, t(d(S)(L(a))), 3)) : f("", !0),
413
+ }, t(d(N)(R(a))), 3)) : f("", !0),
414
414
  a.updatedAt ? (n(), m("span", it, " (" + t(d(A).comments.edited) + ") ", 1)) : f("", !0)
415
- ]), h("div", at, [Q(a) ? (n(), m("button", {
415
+ ]), h("div", at, [Vt(a) ? (n(), m("button", {
416
416
  key: 0,
417
417
  class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors",
418
418
  title: d(A).comments.edit,
419
- onClick: (e) => Y(a)
420
- }, [l(d(E), {
419
+ onClick: (e) => X(a)
420
+ }, [l(d(T), {
421
421
  size: 11,
422
422
  "stroke-width": 2
423
- })], 8, ot)) : f("", !0), Vt(a) ? (n(), m("button", {
423
+ })], 8, ot)) : f("", !0), Ht(a) ? (n(), m("button", {
424
424
  key: 1,
425
425
  class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors",
426
426
  title: d(A).comments.delete,
427
427
  onClick: (e) => Ft(a.id)
428
- }, [l(d(O), {
428
+ }, [l(d(D), {
429
429
  size: 11,
430
430
  "stroke-width": 2
431
431
  })], 8, st)) : f("", !0)])]),
432
- V.value === a.id ? (n(), m("div", ct, [c(h("textarea", {
433
- "onUpdate:modelValue": i[8] ||= (e) => H.value = e,
432
+ H.value === a.id ? (n(), m("div", ct, [c(h("textarea", {
433
+ "onUpdate:modelValue": i[8] ||= (e) => U.value = e,
434
434
  class: "tpl:w-full tpl:resize-none tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:font-sans tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]",
435
435
  rows: "2",
436
436
  onKeydown: (e) => $(e, a.id)
437
- }, null, 40, lt), [[y, H.value]]), h("div", ut, [h("button", {
437
+ }, null, 40, lt), [[y, U.value]]), h("div", ut, [h("button", {
438
438
  class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-on-primary)]",
439
- disabled: !H.value.trim() || N.value.isSubmitting.value,
440
- onClick: (e) => Z(a.id)
439
+ disabled: !U.value.trim() || P.value.isSubmitting.value,
440
+ onClick: (e) => Q(a.id)
441
441
  }, t(d(A).comments.save), 9, dt), h("button", {
442
442
  class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
443
- onClick: i[9] ||= (e) => X()
443
+ onClick: i[9] ||= (e) => Z()
444
444
  }, t(d(A).comments.cancel), 1)])])) : (n(), m("p", ft, t(a.body), 1)),
445
- W.value === a.id ? (n(), m("div", pt, [
445
+ G.value === a.id ? (n(), m("div", pt, [
446
446
  h("span", mt, t(d(A).comments.deleteConfirm), 1),
447
447
  h("button", {
448
448
  class: "tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-xs tpl:font-medium tpl:bg-[var(--tpl-danger)] tpl:text-[var(--tpl-bg)]",
@@ -458,26 +458,26 @@ var fe = C({
458
458
  _: 2
459
459
  }, 1024),
460
460
  l(b, { name: "tpl-replies" }, {
461
- default: s(() => [z.value === e.id ? (n(), m("div", gt, [h("div", _t, [
461
+ default: s(() => [B.value === e.id ? (n(), m("div", gt, [h("div", _t, [
462
462
  c(h("textarea", {
463
- "onUpdate:modelValue": i[11] ||= (e) => B.value = e,
463
+ "onUpdate:modelValue": i[11] ||= (e) => V.value = e,
464
464
  class: "tpl:max-h-24 tpl:flex-1 tpl:resize-none tpl:border-none tpl:bg-transparent tpl:font-sans tpl:text-xs tpl:outline-none tpl:text-[var(--tpl-text)]",
465
465
  placeholder: d(A).comments.replyPlaceholder,
466
466
  rows: "2",
467
- onKeydown: (t) => Wt(t, e.id)
468
- }, null, 40, vt), [[y, B.value]]),
467
+ onKeydown: (t) => Gt(t, e.id)
468
+ }, null, 40, vt), [[y, V.value]]),
469
469
  h("button", {
470
470
  class: "tpl-comments-send-btn tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-all tpl:disabled:opacity-40 tpl:text-[var(--tpl-primary)]",
471
- disabled: !B.value.trim() || N.value.isSubmitting.value,
471
+ disabled: !V.value.trim() || P.value.isSubmitting.value,
472
472
  onClick: (t) => Rt(e.id)
473
- }, [l(d(D), {
473
+ }, [l(d(E), {
474
474
  size: 14,
475
475
  "stroke-width": 2
476
476
  })], 8, yt),
477
477
  h("button", {
478
478
  class: "tpl-comments-send-btn tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-all tpl:text-[var(--tpl-text-muted)]",
479
479
  onClick: i[12] ||= (e) => Pt()
480
- }, [l(d(ue), {
480
+ }, [l(d(O), {
481
481
  size: 14,
482
482
  "stroke-width": 2
483
483
  })])
@@ -485,32 +485,32 @@ var fe = C({
485
485
  _: 2
486
486
  }, 1024)
487
487
  ]))), 128))]))]),
488
- N.value.canCreate.value ? (n(), m("div", bt, [At.value ? (n(), m("div", xt, t(d(A).comments.saveTemplateFirst), 1)) : (n(), m("div", St, [c(h("textarea", {
488
+ P.value.canCreate.value ? (n(), m("div", bt, [At.value ? (n(), m("div", xt, t(d(A).comments.saveTemplateFirst), 1)) : (n(), m("div", St, [c(h("textarea", {
489
489
  ref_key: "newCommentInput",
490
- ref: G,
491
- "onUpdate:modelValue": i[13] ||= (e) => R.value = e,
490
+ ref: K,
491
+ "onUpdate:modelValue": i[13] ||= (e) => z.value = e,
492
492
  class: "tpl:max-h-24 tpl:min-h-[48px] tpl:flex-1 tpl:resize-none tpl:border-none tpl:bg-transparent tpl:font-sans tpl:text-xs tpl:outline-none tpl:text-[var(--tpl-text)]",
493
493
  "data-testid": "comments-input",
494
494
  placeholder: d(A).comments.placeholder,
495
- disabled: N.value.isSubmitting.value,
495
+ disabled: P.value.isSubmitting.value,
496
496
  rows: "2",
497
- onKeydown: Ut
498
- }, null, 40, Ct), [[y, R.value]]), h("button", {
497
+ onKeydown: Wt
498
+ }, null, 40, Ct), [[y, z.value]]), h("button", {
499
499
  class: "tpl-comments-send-btn tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-all tpl:disabled:opacity-40 tpl:text-[var(--tpl-primary)]",
500
500
  "data-testid": "comments-send",
501
- disabled: !R.value.trim() || N.value.isSubmitting.value,
501
+ disabled: !z.value.trim() || P.value.isSubmitting.value,
502
502
  onClick: Lt
503
- }, [N.value.isSubmitting.value ? (n(), _(d(w), {
503
+ }, [P.value.isSubmitting.value ? (n(), _(d(C), {
504
504
  key: 0,
505
505
  class: "tpl-spinner",
506
506
  size: 16,
507
507
  "stroke-width": 2
508
- })) : (n(), _(d(D), {
508
+ })) : (n(), _(d(E), {
509
509
  key: 1,
510
510
  size: 16,
511
511
  "stroke-width": 2
512
512
  }))], 8, wt)]))])) : f("", !0)
513
513
  ], 8, me)) : f("", !0);
514
514
  }
515
- }), [["__scopeId", "data-v-75eacb94"]]);
515
+ }), [["__scopeId", "data-v-2aee0b06"]]);
516
516
  export { k as default };
@@ -1,7 +1,7 @@
1
1
  import { Ft as e, M as t, Mt as n, P as r, U as i, _ as a, c as o, ct as s, f as c, l, r as u, u as d, y as f } from "./vue.runtime.esm-bundler-BE5V8ADU.js";
2
2
  import { c as p } from "./LogicTagInsertButton-BzEZUTRZ.js";
3
- import { n as m, r as h } from "./Toolbar-DxlZq_36.js";
4
- import { n as g } from "./MergeTagTextarea-q6eeDD2l.js";
3
+ import { n as m, r as h } from "./Toolbar-D_T55elL.js";
4
+ import { n as g } from "./MergeTagTextarea-BjHlamJv.js";
5
5
  import { t as _ } from "./ToggleSwitch-BIPdFWUr.js";
6
6
  import { t as v } from "./useI18n-Cx9W7OWb.js";
7
7
  import { h as y } from "./styleConstants-Br6CIRoS.js";