@templatical/editor 0.0.4 → 0.0.6

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 (163) hide show
  1. package/dist/AiChatSidebar-CNhSl_ty.js +228 -0
  2. package/dist/{AiFeatureMenu-K44aZa_P.js → AiFeatureMenu-BFVsjUJY.js} +23 -23
  3. package/dist/CloudEditor-Bz5Xkxej.js +1082 -0
  4. package/dist/{CollaboratorBar-BuCEcdbB.js → CollaboratorBar-D2Gu5Xj2.js} +3 -3
  5. package/dist/{CommentsSidebar-2lcqMfIP.js → CommentsSidebar-CTeEAZTj.js} +131 -131
  6. package/dist/{DesignReferenceSidebar-CNMu4Zrx.js → DesignReferenceSidebar-u2tKSQK0.js} +52 -52
  7. package/dist/{LoadingTrack-vK8W2PJf.js → LoadingTrack--aUassFH.js} +1 -1
  8. package/dist/{ModuleBrowserModal-CvQ0xyQf.js → ModuleBrowserModal-DNxODPlX.js} +58 -58
  9. package/dist/{ModulePreviewCanvas-Be2B3Y07.js → ModulePreviewCanvas-DnGe1Y-2.js} +32 -32
  10. package/dist/ParagraphEditor-CYrzYJO5.js +688 -0
  11. package/dist/{RichTextEditorContent-CHJlh7HJ.js → RichTextEditorContent-BeqlWlWB.js} +2 -2
  12. package/dist/{SaveModuleDialog-BaaeH5Xm.js → SaveModuleDialog-Kde6X13X.js} +25 -25
  13. package/dist/{SnapshotHistory-BPfjiuu1.js → SnapshotHistory-B3EfIcLW.js} +7 -7
  14. package/dist/TemplateScoringPanel-D2vCRGgx.js +254 -0
  15. package/dist/{TestEmailModal-DIAlB3e_.js → TestEmailModal-Egk0DFDf.js} +3 -3
  16. package/dist/{TitleEditor-D9DPjQkX.js → TitleEditor-DwUpo4gF.js} +11 -11
  17. package/dist/{TplModal-CmTSvCY-.js → TplModal-BCruYWks.js} +4 -4
  18. package/dist/{_plugin-vue_export-helper-B1-bu7yR.js → _plugin-vue_export-helper-5TQrnOhO.js} +2 -2
  19. package/dist/{blockTypeIcons-D1RTWOkx.js → blockTypeIcons-rW4BUUNC.js} +2 -2
  20. package/dist/cdn/chunks/{AiFeatureMenu-lxVm1RjH.js → AiFeatureMenu-Dcbshcfu.js} +16 -16
  21. package/dist/cdn/chunks/AiFeatureMenu-Dcbshcfu.js.map +1 -0
  22. package/dist/cdn/chunks/CloudEditor-Bca3RyBW.js +1056 -0
  23. package/dist/cdn/chunks/CloudEditor-Bca3RyBW.js.map +1 -0
  24. package/dist/cdn/chunks/{CollaboratorBar-D2PKtlOw.js → CollaboratorBar-sToKJfHi.js} +4 -4
  25. package/dist/cdn/chunks/{CollaboratorBar-D2PKtlOw.js.map → CollaboratorBar-sToKJfHi.js.map} +1 -1
  26. package/dist/cdn/chunks/{ModuleBrowserModal-CxDXzkKS.js → ModuleBrowserModal-BNhwXbWw.js} +52 -52
  27. package/dist/cdn/chunks/ModuleBrowserModal-BNhwXbWw.js.map +1 -0
  28. package/dist/cdn/chunks/{ModulePreviewCanvas-DEfHampA.js → ModulePreviewCanvas-DylUylPU.js} +3 -3
  29. package/dist/cdn/chunks/{ModulePreviewCanvas-DEfHampA.js.map → ModulePreviewCanvas-DylUylPU.js.map} +1 -1
  30. package/dist/cdn/chunks/ParagraphEditor-BBw90y_p.js +539 -0
  31. package/dist/cdn/chunks/ParagraphEditor-BBw90y_p.js.map +1 -0
  32. package/dist/cdn/chunks/{RichTextEditorContent-DWUzizsC.js → RichTextEditorContent-DvyIO3nR.js} +5 -5
  33. package/dist/cdn/chunks/{RichTextEditorContent-DWUzizsC.js.map → RichTextEditorContent-DvyIO3nR.js.map} +1 -1
  34. package/dist/cdn/chunks/{SaveModuleDialog-DVna2xUl.js → SaveModuleDialog-DvbSHvhF.js} +24 -24
  35. package/dist/cdn/chunks/SaveModuleDialog-DvbSHvhF.js.map +1 -0
  36. package/dist/cdn/chunks/{TitleEditor-DDf_OcHS.js → TitleEditor-tS3mgoVr.js} +10 -10
  37. package/dist/cdn/chunks/{TitleEditor-DDf_OcHS.js.map → TitleEditor-tS3mgoVr.js.map} +1 -1
  38. package/dist/cdn/chunks/{blockTypeIcons-BnobReQm.js → blockTypeIcons-DbnbyEQE.js} +3 -3
  39. package/dist/cdn/chunks/{blockTypeIcons-BnobReQm.js.map → blockTypeIcons-DbnbyEQE.js.map} +1 -1
  40. package/dist/cdn/chunks/{de-BvYD17KT.js → de-CgUR_S5I.js} +1 -1
  41. package/dist/cdn/chunks/{de-BvYD17KT.js.map → de-CgUR_S5I.js.map} +1 -1
  42. package/dist/cdn/chunks/{de-BB3dgVOc.js → de-D8oDPhBD.js} +1 -1
  43. package/dist/cdn/chunks/de-D8oDPhBD.js.map +1 -0
  44. package/dist/cdn/chunks/{dist-B878xb_62.js → dist-BUmN5e4r.js} +15 -12
  45. package/dist/cdn/chunks/dist-BUmN5e4r.js.map +1 -0
  46. package/dist/cdn/chunks/{draggable-BQNU47zu.js → draggable-m78lz0gI.js} +1591 -1563
  47. package/dist/cdn/chunks/draggable-m78lz0gI.js.map +1 -0
  48. package/dist/cdn/chunks/{emojiData-BVEJHcNH.js → emojiData-CNNgvDqx.js} +1 -1
  49. package/dist/cdn/chunks/{emojiData-BVEJHcNH.js.map → emojiData-CNNgvDqx.js.map} +1 -1
  50. package/dist/cdn/chunks/{en-CpotcOPr.js → en-BBmfBDqY.js} +1 -1
  51. package/dist/cdn/chunks/{en-CpotcOPr.js.map → en-BBmfBDqY.js.map} +1 -1
  52. package/dist/cdn/chunks/{en-DeDcpnoS.js → en-HseRPPeK.js} +1 -1
  53. package/dist/cdn/chunks/en-HseRPPeK.js.map +1 -0
  54. package/dist/cdn/chunks/{extensions-B_kcV0tK.js → extensions-ClpY3m0W.js} +31 -31
  55. package/dist/cdn/chunks/{extensions-B_kcV0tK.js.map → extensions-ClpY3m0W.js.map} +1 -1
  56. package/dist/cdn/chunks/{features-ofOGnSC0.js → features-B5dGxWLi.js} +1645 -1608
  57. package/dist/cdn/chunks/features-B5dGxWLi.js.map +1 -0
  58. package/dist/cdn/chunks/{icons-bIb7PBOE.js → icons-hflTyPmb.js} +8 -8
  59. package/dist/cdn/chunks/icons-hflTyPmb.js.map +1 -0
  60. package/dist/cdn/chunks/{liquid.browser-C1VIYISn.js → liquid.browser-BxyRVCKv.js} +24 -17
  61. package/dist/cdn/chunks/liquid.browser-BxyRVCKv.js.map +1 -0
  62. package/dist/cdn/chunks/{media-library-BIYzV2Y2.js → media-library-Dgy-V-JA.js} +547 -543
  63. package/dist/cdn/chunks/{media-library-BIYzV2Y2.js.map → media-library-Dgy-V-JA.js.map} +1 -1
  64. package/dist/cdn/chunks/{pusher-DJPhQnE8.js → pusher-D-m2WSdL.js} +10 -7
  65. package/dist/cdn/chunks/pusher-D-m2WSdL.js.map +1 -0
  66. package/dist/cdn/chunks/readableTextColor-Cd_cgWO_.js.map +1 -1
  67. package/dist/cdn/chunks/{rolldown-runtime-DPITmOBR.js → rolldown-runtime-BNuo_Jkg.js} +1 -1
  68. package/dist/cdn/chunks/{src-BuW9oYtm.js → src-TDwMmqm0.js} +7 -7
  69. package/dist/cdn/chunks/{src-BuW9oYtm.js.map → src-TDwMmqm0.js.map} +1 -1
  70. package/dist/cdn/chunks/{styleConstants-1KwsBMxJ.js → styleConstants-DFe3I4Op.js} +6 -6
  71. package/dist/cdn/chunks/{styleConstants-1KwsBMxJ.js.map → styleConstants-DFe3I4Op.js.map} +1 -1
  72. package/dist/cdn/chunks/{styles-DQFExz-T.js → styles-hCOCOR6K.js} +1229 -1101
  73. package/dist/cdn/chunks/styles-hCOCOR6K.js.map +1 -0
  74. package/dist/cdn/chunks/{tiptap-DplY-S-k.js → tiptap-C28NLMX8.js} +1531 -1309
  75. package/dist/cdn/chunks/tiptap-C28NLMX8.js.map +1 -0
  76. package/dist/cdn/editor.css +1 -1
  77. package/dist/cdn/editor.js +112 -141
  78. package/dist/cdn/editor.js.map +1 -1
  79. package/dist/{check-B7kDuZmP.js → check-B5S-C0bz.js} +1 -1
  80. package/dist/{chevron-down-DJLW2Q9Z.js → chevron-down-CjsV1T0W.js} +1 -1
  81. package/dist/{circle-alert-E2vYPs5r.js → circle-alert-CVTmJHKW.js} +1 -1
  82. package/dist/{clock-lWIIQA3C.js → clock-CAjdSHBy.js} +1 -1
  83. package/dist/{dist-CG-vEqSU.js → dist-Ac4o1O4a.js} +2 -2
  84. package/dist/{dist-BkIys9zn.js → dist-B4LTlrAn.js} +6 -6
  85. package/dist/{dist-ChAGLpWo.js → dist-BTtKPcd2.js} +2 -2
  86. package/dist/{dist-C1BIRHCQ.js → dist-CBr-qhie.js} +2 -2
  87. package/dist/{dist-DmOE-Ubp.js → dist-COOFiBFV.js} +2 -2
  88. package/dist/{dist-4LiM9FDd.js → dist-COguaIvm.js} +2 -2
  89. package/dist/{dist-Bu7veieH.js → dist-Crqkuf-w.js} +2 -2
  90. package/dist/{dist-DkypH7qG.js → dist-DEJZ9iAU.js} +2 -2
  91. package/dist/{dist-D_HQYSY-.js → dist-DHYuVJ_7.js} +2 -2
  92. package/dist/{dist-C_ymrGFi.js → dist-DJrDTuRr.js} +973 -958
  93. package/dist/{dist-DysAFIPy.js → dist-DPM-DFvh.js} +142 -114
  94. package/dist/{dist-DrvKRSU6.js → dist-DfqLGwSF.js} +2 -2
  95. package/dist/dist-DmVOCJjI.js +5 -0
  96. package/dist/{extensions-DEjfEFhD.js → extensions-C6xp_B7K.js} +3 -3
  97. package/dist/{image-up-X4xIq4ea.js → image-up-vZa1Txr-.js} +1 -1
  98. package/dist/index.d.ts +223 -0
  99. package/dist/{liquid.browser-BemTg3sZ.js → liquid.browser-C02owkex.js} +20 -15
  100. package/dist/{loader-circle-BTQQxC3l.js → loader-circle-DilFjHSk.js} +1 -1
  101. package/dist/{message-circle-Blgm6V_h.js → message-circle-Dpcnc2oa.js} +1 -1
  102. package/dist/{refresh-cw-Bb4PEeW1.js → refresh-cw-4r7rkHHX.js} +1 -1
  103. package/dist/rolldown-runtime-gEudmnaM.js +23 -0
  104. package/dist/{scan-line-7lZPfOdm.js → scan-line-684IxPQ0.js} +1 -1
  105. package/dist/{send-C0ltAQrv.js → send-ChDw64yL.js} +1 -1
  106. package/dist/{shield-check-f-qv4RKs.js → shield-check-9dhLdyST.js} +1 -1
  107. package/dist/{sparkles-KhBCGlqB.js → sparkles-Co9fkDcv.js} +1 -1
  108. package/dist/{styleConstants-D4SOZGBV.js → styleConstants-RV3eYwkD.js} +6 -6
  109. package/dist/styles-nvxFh6L6.js +3557 -0
  110. package/dist/templatical-editor.css +1 -1
  111. package/dist/templatical-editor.js +111 -141
  112. package/dist/templatical-editor.umd.cjs +63 -73
  113. package/dist/{trash-2-OwjZ-guZ.js → trash-2-CZkMtjeC.js} +1 -1
  114. package/dist/{triangle-alert-DOSRIUYZ.js → triangle-alert-Dvt51agD.js} +1 -1
  115. package/dist/{useEditorCore-CjwRMl7K.js → useEditorCore-ColJh1ST.js} +1183 -1182
  116. package/dist/{x-CGlq2XQe.js → x-CU2XZOkQ.js} +1 -1
  117. package/package.json +52 -49
  118. package/dist/AiChatSidebar-CjfhTZwo.js +0 -214
  119. package/dist/CloudEditor-DFyuRxUV.js +0 -926
  120. package/dist/ParagraphEditor-CcMPnbDr.js +0 -652
  121. package/dist/TemplateScoringPanel-D58A23Vq.js +0 -249
  122. package/dist/cdn/chunks/AiChatSidebar-CmPTbTFG.js +0 -2
  123. package/dist/cdn/chunks/AiFeatureMenu-lxVm1RjH.js.map +0 -1
  124. package/dist/cdn/chunks/CloudEditor-Bmp5IlWi.js +0 -900
  125. package/dist/cdn/chunks/CloudEditor-Bmp5IlWi.js.map +0 -1
  126. package/dist/cdn/chunks/CommentsSidebar-BOelj4Ca.js +0 -2
  127. package/dist/cdn/chunks/DesignReferenceSidebar-Bf6rg0A7.js +0 -2
  128. package/dist/cdn/chunks/ModuleBrowserModal-CxDXzkKS.js.map +0 -1
  129. package/dist/cdn/chunks/ParagraphEditor-DHdu6lb3.js +0 -503
  130. package/dist/cdn/chunks/ParagraphEditor-DHdu6lb3.js.map +0 -1
  131. package/dist/cdn/chunks/SaveModuleDialog-DVna2xUl.js.map +0 -1
  132. package/dist/cdn/chunks/SnapshotHistory-BFF2SsTN.js +0 -2
  133. package/dist/cdn/chunks/TemplateScoringPanel-gi8wc_m7.js +0 -2
  134. package/dist/cdn/chunks/TestEmailModal-Qtd6aC-6.js +0 -2
  135. package/dist/cdn/chunks/de-BB3dgVOc.js.map +0 -1
  136. package/dist/cdn/chunks/dist-B6AUkMyh.js +0 -2
  137. package/dist/cdn/chunks/dist-B878xb_62.js.map +0 -1
  138. package/dist/cdn/chunks/dist-Bf1Op9A1.js +0 -2
  139. package/dist/cdn/chunks/dist-BkETaOfw.js +0 -2
  140. package/dist/cdn/chunks/dist-CJcMnY7o.js +0 -2
  141. package/dist/cdn/chunks/dist-CWsl6S1K.js +0 -2
  142. package/dist/cdn/chunks/dist-CllLxIMQ.js +0 -2
  143. package/dist/cdn/chunks/dist-Cs0wFwdw.js +0 -2
  144. package/dist/cdn/chunks/dist-DLWHlekl.js +0 -2
  145. package/dist/cdn/chunks/dist-DS3_HVpX.js +0 -2
  146. package/dist/cdn/chunks/dist-DTXopj1a.js +0 -2
  147. package/dist/cdn/chunks/dist-DnwLoNLm.js +0 -2
  148. package/dist/cdn/chunks/draggable-BQNU47zu.js.map +0 -1
  149. package/dist/cdn/chunks/en-DeDcpnoS.js.map +0 -1
  150. package/dist/cdn/chunks/features-ofOGnSC0.js.map +0 -1
  151. package/dist/cdn/chunks/icons-bIb7PBOE.js.map +0 -1
  152. package/dist/cdn/chunks/liquid.browser-C1VIYISn.js.map +0 -1
  153. package/dist/cdn/chunks/pusher-DJPhQnE8.js.map +0 -1
  154. package/dist/cdn/chunks/styles-DQFExz-T.js.map +0 -1
  155. package/dist/cdn/chunks/tiptap-DplY-S-k.js.map +0 -1
  156. package/dist/dist-Dxnd0GRf.js +0 -5
  157. package/dist/styles-CgLaxDfu.js +0 -3428
  158. /package/dist/{de-D7TLGIPA.js → de-Dh8ON-dm.js} +0 -0
  159. /package/dist/{emojiData-BfWQS72m.js → emojiData-Qc8mH_zW.js} +0 -0
  160. /package/dist/{en-DvtiEMwP.js → en-C7IShRSD.js} +0 -0
  161. /package/dist/{formatRelativeTime-DX3FgqN9.js → formatRelativeTime-D8f6NR7i.js} +0 -0
  162. /package/dist/{readableTextColor-LDlmVEUv.js → readableTextColor-B809bF5J.js} +0 -0
  163. /package/dist/{useMergeTag-BZ3X0bNr.js → useMergeTag-CSXcnFBc.js} +0 -0
@@ -1,7 +1,7 @@
1
- import "./useEditorCore-CjwRMl7K.js";
2
1
  import { t as e } from "./useI18n-D6m7ZUgY.js";
3
- import { n as t } from "./_plugin-vue_export-helper-B1-bu7yR.js";
4
- import { t as n } from "./readableTextColor-LDlmVEUv.js";
2
+ import "./useEditorCore-ColJh1ST.js";
3
+ import { n as t } from "./_plugin-vue_export-helper-5TQrnOhO.js";
4
+ import { t as n } from "./readableTextColor-B809bF5J.js";
5
5
  import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, defineComponent as l, normalizeStyle as u, openBlock as d, renderList as f, toDisplayString as p, unref as m } from "vue";
6
6
  var h = t("wifi-off", [
7
7
  ["path", {
@@ -1,15 +1,15 @@
1
- import { c as e, f as t, r as n } from "./keys-C0MQRs8d.js";
2
- import { t as r } from "./useI18n-D6m7ZUgY.js";
3
- import { n as i, t as ee } from "./_plugin-vue_export-helper-B1-bu7yR.js";
4
- import { t as te } from "./check-B7kDuZmP.js";
5
- import { t as ne } from "./chevron-down-DJLW2Q9Z.js";
6
- import { t as re } from "./loader-circle-BTQQxC3l.js";
7
- import { t as ie } from "./message-circle-Blgm6V_h.js";
8
- import { t as a } from "./send-C0ltAQrv.js";
9
- import { t as o } from "./trash-2-OwjZ-guZ.js";
10
- import { t as s } from "./x-CGlq2XQe.js";
11
- import { t as ae } from "./formatRelativeTime-DX3FgqN9.js";
12
- import { Fragment as c, Transition as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as oe, createVNode as h, defineComponent as g, inject as _, nextTick as se, normalizeClass as v, normalizeStyle as ce, openBlock as y, ref as b, renderList as x, toDisplayString as S, unref as C, vModelText as w, watch as T, withCtx as E, withDirectives as D } from "vue";
1
+ import { T as e, c as t, f as n, r } from "./keys-C0MQRs8d.js";
2
+ import { t as ee } from "./useI18n-D6m7ZUgY.js";
3
+ import { n as i, t as te } from "./_plugin-vue_export-helper-5TQrnOhO.js";
4
+ import { t as ne } from "./check-B5S-C0bz.js";
5
+ import { t as re } from "./chevron-down-CjsV1T0W.js";
6
+ import { t as a } from "./loader-circle-DilFjHSk.js";
7
+ import { t as o } from "./message-circle-Dpcnc2oa.js";
8
+ import { t as s } from "./send-ChDw64yL.js";
9
+ import { t as c } from "./trash-2-CZkMtjeC.js";
10
+ import { t as l } from "./x-CU2XZOkQ.js";
11
+ import { t as ie } from "./formatRelativeTime-D8f6NR7i.js";
12
+ import { Fragment as u, Transition as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as ae, createVNode as _, defineComponent as v, nextTick as oe, normalizeClass as y, normalizeStyle as se, openBlock as b, ref as x, renderList as S, toDisplayString as C, unref as w, vModelText as T, watch as ce, withCtx as E, withDirectives as D } from "vue";
13
13
  var le = i("chevron-up", [["path", {
14
14
  d: "m18 15-6-6-6 6",
15
15
  key: "153udz"
@@ -93,12 +93,12 @@ var le = i("chevron-up", [["path", {
93
93
  }, gt = {
94
94
  key: 1,
95
95
  class: "tpl-comments-input-wrapper tpl:flex tpl:min-h-[68px] tpl:items-end tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]"
96
- }, _t = ["placeholder", "disabled"], vt = ["disabled"], k = /* @__PURE__ */ ee(/* @__PURE__ */ g({
96
+ }, _t = ["placeholder", "disabled"], vt = ["disabled"], k = /* @__PURE__ */ te(/* @__PURE__ */ v({
97
97
  __name: "CommentsSidebar",
98
98
  props: { visible: { type: Boolean } },
99
99
  emits: ["close", "filterBlock"],
100
- setup(i, { expose: ee, emit: g }) {
101
- let k = i, A = g, { t: j, format: M } = r(), N = _(t), yt = _(n), P = _(e), F = b("unresolved"), I = b(null), L = b(""), R = b(null), z = b(""), B = b(null), V = b(""), H = b(/* @__PURE__ */ new Set()), U = b(null), W = b(null), bt = u(() => yt.userConfig?.id ?? null), xt = u(() => {
100
+ setup(i, { expose: te, emit: v }) {
101
+ let k = i, A = v, { t: j, format: M } = ee(), N = e(n, "CommentsSidebar"), yt = e(r, "CommentsSidebar"), P = e(t, "CommentsSidebar"), F = x("unresolved"), I = x(null), L = x(""), R = x(null), z = x(""), B = x(null), V = x(""), H = x(/* @__PURE__ */ new Set()), U = x(null), W = x(null), bt = f(() => yt.userConfig?.id ?? null), xt = f(() => {
102
102
  let e = /* @__PURE__ */ new Set();
103
103
  for (let t of N.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);
104
104
  return e;
@@ -106,13 +106,13 @@ var le = i("chevron-up", [["path", {
106
106
  function St(e) {
107
107
  return e ? !xt.value.has(e) : !1;
108
108
  }
109
- let Ct = u(() => F.value !== "block" || !I.value ? !1 : !(N.savedBlockIds?.value.has(I.value) ?? !0)), G = u(() => {
109
+ let Ct = f(() => F.value !== "block" || !I.value ? !1 : !(N.savedBlockIds?.value.has(I.value) ?? !0)), G = f(() => {
110
110
  let e = P.comments.value;
111
111
  return F.value === "unresolved" ? e = e.filter((e) => !e.resolved_at) : F.value === "block" && I.value && (e = e.filter((e) => e.block_id === I.value)), e;
112
112
  });
113
- T(() => k.visible, (e) => {
113
+ ce(() => k.visible, (e) => {
114
114
  e && P.loadComments();
115
- }), T(() => N.state.selectedBlockId, (e) => {
115
+ }), ce(() => N.state.selectedBlockId, (e) => {
116
116
  F.value === "block" && e && (I.value = e);
117
117
  });
118
118
  function K(e, t) {
@@ -168,7 +168,7 @@ var le = i("chevron-up", [["path", {
168
168
  return e.author_identifier === bt.value;
169
169
  }
170
170
  function jt(e) {
171
- return ae(e, j.snapshotHistory) ?? e;
171
+ return ie(e, j.snapshotHistory) ?? e;
172
172
  }
173
173
  function Mt(e) {
174
174
  e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Z());
@@ -180,14 +180,14 @@ var le = i("chevron-up", [["path", {
180
180
  e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Q(t)), e.key === "Escape" && J();
181
181
  }
182
182
  function Ft() {
183
- se(() => {
183
+ oe(() => {
184
184
  W.value?.focus();
185
185
  });
186
186
  }
187
- return ee({
187
+ return te({
188
188
  filterByBlock: wt,
189
189
  focusNewComment: Ft
190
- }), (e, t) => (y(), d(l, {
190
+ }), (e, t) => (b(), p(d, {
191
191
  "enter-active-class": "tpl-comments-slide-enter-active",
192
192
  "enter-from-class": "tpl:translate-x-full",
193
193
  "enter-to-class": "tpl:translate-x-0",
@@ -195,245 +195,245 @@ var le = i("chevron-up", [["path", {
195
195
  "leave-from-class": "tpl:translate-x-0",
196
196
  "leave-to-class": "tpl:translate-x-full"
197
197
  }, {
198
- default: E(() => [i.visible ? (y(), p("div", fe, [
199
- m("div", pe, [m("div", me, [
200
- h(C(ie), {
198
+ default: E(() => [i.visible ? (b(), h("div", fe, [
199
+ g("div", pe, [g("div", me, [
200
+ _(w(o), {
201
201
  size: 13,
202
202
  "stroke-width": 2
203
203
  }),
204
- m("span", null, S(C(j).comments.title), 1),
205
- C(P).unresolvedCount.value > 0 ? (y(), p("span", he, S(C(P).unresolvedCount.value), 1)) : f("", !0)
206
- ]), m("button", {
204
+ g("span", null, C(w(j).comments.title), 1),
205
+ w(P).unresolvedCount.value > 0 ? (b(), h("span", he, C(w(P).unresolvedCount.value), 1)) : m("", !0)
206
+ ]), g("button", {
207
207
  class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
208
208
  onClick: t[0] ||= (e) => A("close")
209
- }, [h(C(s), {
209
+ }, [_(w(l), {
210
210
  size: 14,
211
211
  "stroke-width": 2
212
212
  })])]),
213
- m("div", ge, [
214
- m("button", {
215
- class: v(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:duration-150", F.value === "unresolved" ? "tpl-comment-filter--active" : ""]),
213
+ g("div", ge, [
214
+ g("button", {
215
+ class: y(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:duration-150", F.value === "unresolved" ? "tpl-comment-filter--active" : ""]),
216
216
  onClick: t[1] ||= (e) => K("unresolved")
217
- }, S(C(j).comments.filterUnresolved), 3),
218
- m("button", {
219
- class: v(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:duration-150", F.value === "all" ? "tpl-comment-filter--active" : ""]),
217
+ }, C(w(j).comments.filterUnresolved), 3),
218
+ g("button", {
219
+ class: y(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:duration-150", F.value === "all" ? "tpl-comment-filter--active" : ""]),
220
220
  onClick: t[2] ||= (e) => K("all")
221
- }, S(C(j).comments.filterAll), 3),
222
- C(N).state.selectedBlockId ? (y(), p("button", {
221
+ }, C(w(j).comments.filterAll), 3),
222
+ w(N).state.selectedBlockId ? (b(), h("button", {
223
223
  key: 0,
224
- class: v(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:duration-150", F.value === "block" ? "tpl-comment-filter--active" : ""]),
225
- onClick: t[3] ||= (e) => K("block", C(N).state.selectedBlockId ?? void 0)
226
- }, S(C(j).comments.filterBlock), 3)) : f("", !0)
224
+ class: y(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:duration-150", F.value === "block" ? "tpl-comment-filter--active" : ""]),
225
+ onClick: t[3] ||= (e) => K("block", w(N).state.selectedBlockId ?? void 0)
226
+ }, C(w(j).comments.filterBlock), 3)) : m("", !0)
227
227
  ]),
228
- m("div", _e, [C(P).isLoading.value ? (y(), p("div", ve, [h(C(re), {
228
+ g("div", _e, [w(P).isLoading.value ? (b(), h("div", ve, [_(w(a), {
229
229
  class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
230
230
  size: 24,
231
231
  "stroke-width": 2
232
- })])) : G.value.length === 0 ? (y(), p("div", ye, [h(C(ie), {
232
+ })])) : G.value.length === 0 ? (b(), h("div", ye, [_(w(o), {
233
233
  size: 32,
234
234
  "stroke-width": 1.5,
235
235
  class: "tpl:text-[var(--tpl-text-dim)]"
236
- }), m("p", be, S(F.value === "all" ? C(j).comments.noCommentsHint : C(j).comments.noComments), 1)])) : (y(), p("div", xe, [(y(!0), p(c, null, x(G.value, (e) => (y(), p("div", {
236
+ }), g("p", be, C(F.value === "all" ? w(j).comments.noCommentsHint : w(j).comments.noComments), 1)])) : (b(), h("div", xe, [(b(!0), h(u, null, S(G.value, (e) => (b(), h("div", {
237
237
  key: e.id,
238
238
  class: "tpl-comment-thread"
239
239
  }, [
240
- m("div", Se, [
241
- m("div", Ce, [m("div", we, [
242
- m("span", Te, S($(e) ? C(j).comments.ownedByYou : e.author_name), 1),
243
- m("span", Ee, S(jt(e.created_at)), 1),
244
- e.updated_at === e.created_at ? f("", !0) : (y(), p("span", De, " (" + S(C(j).comments.edited) + ") ", 1))
245
- ]), m("div", Oe, [
246
- m("button", {
240
+ g("div", Se, [
241
+ g("div", Ce, [g("div", we, [
242
+ g("span", Te, C($(e) ? w(j).comments.ownedByYou : e.author_name), 1),
243
+ g("span", Ee, C(jt(e.created_at)), 1),
244
+ e.updated_at === e.created_at ? m("", !0) : (b(), h("span", De, " (" + C(w(j).comments.edited) + ") ", 1))
245
+ ]), g("div", Oe, [
246
+ g("button", {
247
247
  class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
248
- title: e.resolved_at ? C(j).comments.unresolve : C(j).comments.resolve,
248
+ title: e.resolved_at ? w(j).comments.unresolve : w(j).comments.resolve,
249
249
  onClick: (t) => At(e.id)
250
- }, [h(C(ue), {
250
+ }, [_(w(ue), {
251
251
  size: 13,
252
252
  "stroke-width": 2,
253
253
  class: "tpl-resolve-icon",
254
- style: ce({ color: e.resolved_at ? "var(--tpl-primary)" : void 0 })
254
+ style: se({ color: e.resolved_at ? "var(--tpl-primary)" : void 0 })
255
255
  }, null, 8, ["style"])], 8, ke),
256
- $(e) ? (y(), p("button", {
256
+ $(e) ? (b(), h("button", {
257
257
  key: 0,
258
258
  class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
259
- title: C(j).comments.edit,
259
+ title: w(j).comments.edit,
260
260
  onClick: (t) => q(e)
261
- }, [h(C(O), {
261
+ }, [_(w(O), {
262
262
  size: 12,
263
263
  "stroke-width": 2
264
- })], 8, Ae)) : f("", !0),
265
- $(e) ? (y(), p("button", {
264
+ })], 8, Ae)) : m("", !0),
265
+ $(e) ? (b(), h("button", {
266
266
  key: 1,
267
267
  class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
268
- title: C(j).comments.delete,
268
+ title: w(j).comments.delete,
269
269
  onClick: (t) => Y(e.id)
270
- }, [h(C(o), {
270
+ }, [_(w(c), {
271
271
  size: 12,
272
272
  "stroke-width": 2
273
- })], 8, je)) : f("", !0)
273
+ })], 8, je)) : m("", !0)
274
274
  ])]),
275
- h(l, { name: "tpl-resolve" }, {
276
- default: E(() => [e.resolved_at ? (y(), p("div", Me, [h(C(te), {
275
+ _(d, { name: "tpl-resolve" }, {
276
+ default: E(() => [e.resolved_at ? (b(), h("div", Me, [_(w(ne), {
277
277
  size: 10,
278
278
  "stroke-width": 2.5
279
- }), m("span", null, S(C(M)(C(j).comments.resolvedBy, { name: e.resolved_by_name ?? "" })), 1)])) : f("", !0)]),
279
+ }), g("span", null, C(w(M)(w(j).comments.resolvedBy, { name: e.resolved_by_name ?? "" })), 1)])) : m("", !0)]),
280
280
  _: 2
281
281
  }, 1024),
282
- e.block_id && St(e.block_id) ? (y(), p("span", Ne, S(C(j).comments.missingBlock), 1)) : e.block_id ? (y(), p("button", {
282
+ e.block_id && St(e.block_id) ? (b(), h("span", Ne, C(w(j).comments.missingBlock), 1)) : e.block_id ? (b(), h("button", {
283
283
  key: 1,
284
284
  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:duration-150 tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]",
285
- onClick: (t) => C(N).selectBlock(e.block_id ?? "")
286
- }, " Block ", 8, Pe)) : f("", !0),
287
- B.value === e.id ? (y(), p("div", Fe, [D(m("textarea", {
285
+ onClick: (t) => w(N).selectBlock(e.block_id ?? "")
286
+ }, " Block ", 8, Pe)) : m("", !0),
287
+ B.value === e.id ? (b(), h("div", Fe, [D(g("textarea", {
288
288
  "onUpdate:modelValue": t[4] ||= (e) => V.value = e,
289
289
  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)]",
290
290
  rows: "3",
291
291
  onKeydown: (t) => Pt(t, e.id)
292
- }, null, 40, Ie), [[w, V.value]]), m("div", Le, [m("button", {
292
+ }, null, 40, Ie), [[T, V.value]]), g("div", Le, [g("button", {
293
293
  class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
294
- disabled: !V.value.trim() || C(P).isSubmitting.value,
294
+ disabled: !V.value.trim() || w(P).isSubmitting.value,
295
295
  onClick: (t) => Q(e.id)
296
- }, S(C(j).comments.save), 9, Re), m("button", {
296
+ }, C(w(j).comments.save), 9, Re), g("button", {
297
297
  class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
298
298
  onClick: t[5] ||= (e) => J()
299
- }, S(C(j).comments.cancel), 1)])])) : (y(), p("p", ze, S(e.body), 1)),
300
- U.value === e.id ? (y(), p("div", Be, [
301
- m("span", Ve, S(C(j).comments.deleteConfirm), 1),
302
- m("button", {
299
+ }, C(w(j).comments.cancel), 1)])])) : (b(), h("p", ze, C(e.body), 1)),
300
+ U.value === e.id ? (b(), h("div", Be, [
301
+ g("span", Ve, C(w(j).comments.deleteConfirm), 1),
302
+ g("button", {
303
303
  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)]",
304
304
  onClick: (t) => kt(e.id)
305
- }, S(C(j).comments.delete), 9, He),
306
- m("button", {
305
+ }, C(w(j).comments.delete), 9, He),
306
+ g("button", {
307
307
  class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
308
308
  onClick: t[6] ||= (e) => X()
309
- }, S(C(j).comments.cancel), 1)
310
- ])) : f("", !0),
311
- B.value !== e.id && U.value !== e.id ? (y(), p("div", Ue, [m("button", {
309
+ }, C(w(j).comments.cancel), 1)
310
+ ])) : m("", !0),
311
+ B.value !== e.id && U.value !== e.id ? (b(), h("div", Ue, [g("button", {
312
312
  class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
313
- title: C(j).comments.reply,
313
+ title: w(j).comments.reply,
314
314
  onClick: (t) => Et(e.id)
315
- }, [h(C(de), {
315
+ }, [_(w(de), {
316
316
  size: 13,
317
317
  "stroke-width": 2,
318
318
  class: "tpl:text-[var(--tpl-primary)]"
319
- })], 8, We), (e.replies?.length ?? 0) > 0 ? (y(), p("button", {
319
+ })], 8, We), (e.replies?.length ?? 0) > 0 ? (b(), h("button", {
320
320
  key: 0,
321
321
  class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:text-[11px] tpl:font-medium tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
322
322
  onClick: (t) => Tt(e.id)
323
- }, [H.value.has(e.id) ? (y(), d(C(le), {
323
+ }, [H.value.has(e.id) ? (b(), p(w(le), {
324
324
  key: 0,
325
325
  size: 11,
326
326
  "stroke-width": 2
327
- })) : (y(), d(C(ne), {
327
+ })) : (b(), p(w(re), {
328
328
  key: 1,
329
329
  size: 11,
330
330
  "stroke-width": 2
331
- })), oe(" " + S((e.replies?.length ?? 0) === 1 ? C(M)(C(j).comments.replyOne, { count: String(e.replies?.length ?? 0) }) : C(M)(C(j).comments.replyMany, { count: String(e.replies?.length ?? 0) })), 1)], 8, Ge)) : f("", !0)])) : f("", !0)
331
+ })), ae(" " + C((e.replies?.length ?? 0) === 1 ? w(M)(w(j).comments.replyOne, { count: String(e.replies?.length ?? 0) }) : w(M)(w(j).comments.replyMany, { count: String(e.replies?.length ?? 0) })), 1)], 8, Ge)) : m("", !0)])) : m("", !0)
332
332
  ]),
333
- h(l, { name: "tpl-replies" }, {
334
- default: E(() => [H.value.has(e.id) && (e.replies?.length ?? 0) > 0 ? (y(), p("div", Ke, [(y(!0), p(c, null, x(e.replies, (n, r) => (y(), p("div", {
333
+ _(d, { name: "tpl-replies" }, {
334
+ default: E(() => [H.value.has(e.id) && (e.replies?.length ?? 0) > 0 ? (b(), h("div", Ke, [(b(!0), h(u, null, S(e.replies, (n, r) => (b(), h("div", {
335
335
  key: n.id,
336
- class: v(["tpl-comment-reply-card tpl:relative tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-2.5", r < (e.replies?.length ?? 0) - 1 ? "tpl:mb-2" : ""])
336
+ class: y(["tpl-comment-reply-card tpl:relative tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-2.5", r < (e.replies?.length ?? 0) - 1 ? "tpl:mb-2" : ""])
337
337
  }, [
338
- m("div", qe, [m("div", Je, [
339
- m("span", Ye, S($(n) ? C(j).comments.ownedByYou : n.author_name), 1),
340
- m("span", Xe, S(jt(n.created_at)), 1),
341
- n.updated_at === n.created_at ? f("", !0) : (y(), p("span", Ze, " (" + S(C(j).comments.edited) + ") ", 1))
342
- ]), m("div", Qe, [$(n) ? (y(), p("button", {
338
+ g("div", qe, [g("div", Je, [
339
+ g("span", Ye, C($(n) ? w(j).comments.ownedByYou : n.author_name), 1),
340
+ g("span", Xe, C(jt(n.created_at)), 1),
341
+ n.updated_at === n.created_at ? m("", !0) : (b(), h("span", Ze, " (" + C(w(j).comments.edited) + ") ", 1))
342
+ ]), g("div", Qe, [$(n) ? (b(), h("button", {
343
343
  key: 0,
344
344
  class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
345
- title: C(j).comments.edit,
345
+ title: w(j).comments.edit,
346
346
  onClick: (e) => q(n)
347
- }, [h(C(O), {
347
+ }, [_(w(O), {
348
348
  size: 11,
349
349
  "stroke-width": 2
350
- })], 8, $e)) : f("", !0), $(n) ? (y(), p("button", {
350
+ })], 8, $e)) : m("", !0), $(n) ? (b(), h("button", {
351
351
  key: 1,
352
352
  class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
353
- title: C(j).comments.delete,
353
+ title: w(j).comments.delete,
354
354
  onClick: (e) => Y(n.id)
355
- }, [h(C(o), {
355
+ }, [_(w(c), {
356
356
  size: 11,
357
357
  "stroke-width": 2
358
- })], 8, et)) : f("", !0)])]),
359
- B.value === n.id ? (y(), p("div", tt, [D(m("textarea", {
358
+ })], 8, et)) : m("", !0)])]),
359
+ B.value === n.id ? (b(), h("div", tt, [D(g("textarea", {
360
360
  "onUpdate:modelValue": t[7] ||= (e) => V.value = e,
361
361
  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)]",
362
362
  rows: "2",
363
363
  onKeydown: (e) => Pt(e, n.id)
364
- }, null, 40, nt), [[w, V.value]]), m("div", rt, [m("button", {
364
+ }, null, 40, nt), [[T, V.value]]), g("div", rt, [g("button", {
365
365
  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-bg)]",
366
- disabled: !V.value.trim() || C(P).isSubmitting.value,
366
+ disabled: !V.value.trim() || w(P).isSubmitting.value,
367
367
  onClick: (e) => Q(n.id)
368
- }, S(C(j).comments.save), 9, it), m("button", {
368
+ }, C(w(j).comments.save), 9, it), g("button", {
369
369
  class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
370
370
  onClick: t[8] ||= (e) => J()
371
- }, S(C(j).comments.cancel), 1)])])) : (y(), p("p", at, S(n.body), 1)),
372
- U.value === n.id ? (y(), p("div", ot, [
373
- m("span", st, S(C(j).comments.deleteConfirm), 1),
374
- m("button", {
371
+ }, C(w(j).comments.cancel), 1)])])) : (b(), h("p", at, C(n.body), 1)),
372
+ U.value === n.id ? (b(), h("div", ot, [
373
+ g("span", st, C(w(j).comments.deleteConfirm), 1),
374
+ g("button", {
375
375
  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)]",
376
376
  onClick: (e) => kt(n.id)
377
- }, S(C(j).comments.delete), 9, ct),
378
- m("button", {
377
+ }, C(w(j).comments.delete), 9, ct),
378
+ g("button", {
379
379
  class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
380
380
  onClick: t[9] ||= (e) => X()
381
- }, S(C(j).comments.cancel), 1)
382
- ])) : f("", !0)
383
- ], 2))), 128))])) : f("", !0)]),
381
+ }, C(w(j).comments.cancel), 1)
382
+ ])) : m("", !0)
383
+ ], 2))), 128))])) : m("", !0)]),
384
384
  _: 2
385
385
  }, 1024),
386
- h(l, { name: "tpl-replies" }, {
387
- default: E(() => [R.value === e.id ? (y(), p("div", lt, [m("div", ut, [D(m("textarea", {
386
+ _(d, { name: "tpl-replies" }, {
387
+ default: E(() => [R.value === e.id ? (b(), h("div", lt, [g("div", ut, [D(g("textarea", {
388
388
  "onUpdate:modelValue": t[10] ||= (e) => z.value = e,
389
389
  class: "tpl:flex-1 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)]",
390
- placeholder: C(j).comments.replyPlaceholder,
390
+ placeholder: w(j).comments.replyPlaceholder,
391
391
  rows: "2",
392
392
  onKeydown: (t) => Nt(t, e.id)
393
- }, null, 40, dt), [[w, z.value]]), m("div", ft, [m("button", {
393
+ }, null, 40, dt), [[T, z.value]]), g("div", ft, [g("button", {
394
394
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-colors tpl:duration-150 tpl:disabled:opacity-40 tpl:text-[var(--tpl-primary)]",
395
- disabled: !z.value.trim() || C(P).isSubmitting.value,
395
+ disabled: !z.value.trim() || w(P).isSubmitting.value,
396
396
  onClick: (t) => Ot(e.id)
397
- }, [h(C(a), {
397
+ }, [_(w(s), {
398
398
  size: 14,
399
399
  "stroke-width": 2
400
- })], 8, pt), m("button", {
400
+ })], 8, pt), g("button", {
401
401
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
402
402
  onClick: t[11] ||= (e) => Dt()
403
- }, [h(C(s), {
403
+ }, [_(w(l), {
404
404
  size: 14,
405
405
  "stroke-width": 2
406
- })])])])])) : f("", !0)]),
406
+ })])])])])) : m("", !0)]),
407
407
  _: 2
408
408
  }, 1024)
409
409
  ]))), 128))]))]),
410
- m("div", mt, [Ct.value ? (y(), p("div", ht, S(C(j).comments.saveTemplateFirst), 1)) : (y(), p("div", gt, [D(m("textarea", {
410
+ g("div", mt, [Ct.value ? (b(), h("div", ht, C(w(j).comments.saveTemplateFirst), 1)) : (b(), h("div", gt, [D(g("textarea", {
411
411
  ref_key: "newCommentInput",
412
412
  ref: W,
413
413
  "onUpdate:modelValue": t[12] ||= (e) => L.value = e,
414
414
  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)]",
415
- placeholder: C(j).comments.placeholder,
416
- disabled: C(P).isSubmitting.value,
415
+ placeholder: w(j).comments.placeholder,
416
+ disabled: w(P).isSubmitting.value,
417
417
  rows: "2",
418
418
  onKeydown: Mt
419
- }, null, 40, _t), [[w, L.value]]), m("button", {
419
+ }, null, 40, _t), [[T, L.value]]), g("button", {
420
420
  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:duration-150 tpl:disabled:opacity-40 tpl:text-[var(--tpl-primary)]",
421
- disabled: !L.value.trim() || C(P).isSubmitting.value,
421
+ disabled: !L.value.trim() || w(P).isSubmitting.value,
422
422
  onClick: Z
423
- }, [C(P).isSubmitting.value ? (y(), d(C(re), {
423
+ }, [w(P).isSubmitting.value ? (b(), p(w(a), {
424
424
  key: 0,
425
425
  class: "tpl-spinner",
426
426
  size: 16,
427
427
  "stroke-width": 2
428
- })) : (y(), d(C(a), {
428
+ })) : (b(), p(w(s), {
429
429
  key: 1,
430
430
  size: 16,
431
431
  "stroke-width": 2
432
432
  }))], 8, vt)]))])
433
- ])) : f("", !0)]),
433
+ ])) : m("", !0)]),
434
434
  _: 1
435
435
  }));
436
436
  }
437
- }), [["__scopeId", "data-v-36508fac"]]);
437
+ }), [["__scopeId", "data-v-5e7fbab3"]]);
438
438
  //#endregion
439
439
  export { k as default };