@templatical/editor 0.6.4 → 0.6.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 (128) hide show
  1. package/dist/{AccessibilityPanel-CvQGLdu6.js → AccessibilityPanel-B2MT0M58.js} +34 -34
  2. package/dist/{AiChatSidebar-B3SJIKG_.js → AiChatSidebar-w5ek3Z76.js} +62 -62
  3. package/dist/{AiFeatureMenu-BLLKoOos.js → AiFeatureMenu-ChlAWywJ.js} +20 -20
  4. package/dist/{BlockA11yBadge-CXDLqkcJ.js → BlockA11yBadge-C0S6kPC4.js} +12 -12
  5. package/dist/{CloudEditor-nzrRhHIi.js → CloudEditor-DYYaScFe.js} +441 -441
  6. package/dist/{CollaboratorBar-DuPYW5iF.js → CollaboratorBar-Bo8vtPId.js} +20 -20
  7. package/dist/CommentsSidebar-BQROg36f.js +441 -0
  8. package/dist/{cdn/chunks/CountdownBlock-5YdT1uUu.js → CountdownBlock-Bxqe7zwL.js} +21 -22
  9. package/dist/CountdownToolbar-CpFAnjSo.js +210 -0
  10. package/dist/{DesignReferenceSidebar-B8V_F2yF.js → DesignReferenceSidebar-CfqpcWX6.js} +52 -52
  11. package/dist/{LoadingTrack-B0CWFHXQ.js → LoadingTrack-CFkDkjBb.js} +1 -1
  12. package/dist/{ModuleBrowserModal-DrUFMTDx.js → ModuleBrowserModal-CKhsaPnA.js} +79 -79
  13. package/dist/{ModulePreviewCanvas-CHdOwV_4.js → ModulePreviewCanvas-Cw9GeGus.js} +29 -29
  14. package/dist/{NumberWithSuffix-DkXUez9t.js → NumberWithSuffix-Dw8dN1Pt.js} +88 -88
  15. package/dist/{ParagraphEditor-D75wl3BX.js → ParagraphEditor-DjDiUzmv.js} +218 -218
  16. package/dist/{RichTextEditorContent-DYkIauIk.js → RichTextEditorContent-CK3Om7ES.js} +38 -38
  17. package/dist/{SaveModuleDialog-FZ9lxY7_.js → SaveModuleDialog-CSUPmfRP.js} +34 -34
  18. package/dist/{SnapshotHistory-BR3eV120.js → SnapshotHistory-DwX2fj6N.js} +33 -33
  19. package/dist/{TemplateScoringPanel-4GTNHej5.js → TemplateScoringPanel-BIAeCAEP.js} +82 -82
  20. package/dist/{TestEmailModal--ue5w9fT.js → TestEmailModal-CIlBvWWn.js} +30 -30
  21. package/dist/{TitleEditor-fStSADI-.js → TitleEditor-BCV5k6wj.js} +67 -67
  22. package/dist/{TplModal-BwSfxIHf.js → TplModal-C3Hq9b58.js} +14 -14
  23. package/dist/{accessibility-e8JYu_zd.js → accessibility-BgUEA-Ai.js} +1 -1
  24. package/dist/{blockTypeIcons-BcTrDjmH.js → blockTypeIcons-iUurP50H.js} +2 -2
  25. package/dist/bundle-stats.json +6 -6
  26. package/dist/cdn/chunks/{AccessibilityPanel-B6DOjojm.js → AccessibilityPanel-AQD2ygU6.js} +34 -34
  27. package/dist/cdn/chunks/{AccessibilityPanel-B6DOjojm.js.map → AccessibilityPanel-AQD2ygU6.js.map} +1 -1
  28. package/dist/cdn/chunks/{AiFeatureMenu-qEdB2fZJ.js → AiFeatureMenu-CDh9ifC8.js} +16 -16
  29. package/dist/cdn/chunks/{AiFeatureMenu-qEdB2fZJ.js.map → AiFeatureMenu-CDh9ifC8.js.map} +1 -1
  30. package/dist/cdn/chunks/{BlockA11yBadge-DcEZftf6.js → BlockA11yBadge-BxZr3s7T.js} +10 -10
  31. package/dist/cdn/chunks/{BlockA11yBadge-DcEZftf6.js.map → BlockA11yBadge-BxZr3s7T.js.map} +1 -1
  32. package/dist/cdn/chunks/{CloudEditor-dwzWDF_n.js → CloudEditor-Fg7pQ9IQ.js} +425 -425
  33. package/dist/cdn/chunks/{CloudEditor-dwzWDF_n.js.map → CloudEditor-Fg7pQ9IQ.js.map} +1 -1
  34. package/dist/cdn/chunks/{CollaboratorBar--nO7TX6b.js → CollaboratorBar-B5a8eBXN.js} +20 -20
  35. package/dist/cdn/chunks/{CollaboratorBar--nO7TX6b.js.map → CollaboratorBar-B5a8eBXN.js.map} +1 -1
  36. package/dist/cdn/chunks/CountdownBlock-BeHkO19t.js +93 -0
  37. package/dist/cdn/chunks/{CountdownBlock-5YdT1uUu.js.map → CountdownBlock-BeHkO19t.js.map} +1 -1
  38. package/dist/cdn/chunks/CountdownToolbar-8UfW0jb1.js +212 -0
  39. package/dist/cdn/chunks/{CountdownToolbar-DXPXrbAA.js.map → CountdownToolbar-8UfW0jb1.js.map} +1 -1
  40. package/dist/cdn/chunks/{ModuleBrowserModal-DxoPp81s.js → ModuleBrowserModal-BMUyAmmj.js} +43 -43
  41. package/dist/cdn/chunks/{ModuleBrowserModal-DxoPp81s.js.map → ModuleBrowserModal-BMUyAmmj.js.map} +1 -1
  42. package/dist/cdn/chunks/{ModulePreviewCanvas-CoLdb4ar.js → ModulePreviewCanvas-CxSc7Pvd.js} +23 -23
  43. package/dist/cdn/chunks/{ModulePreviewCanvas-CoLdb4ar.js.map → ModulePreviewCanvas-CxSc7Pvd.js.map} +1 -1
  44. package/dist/cdn/chunks/{NumberWithSuffix-CE3NrZhH.js → NumberWithSuffix-BSOUOUCL.js} +108 -108
  45. package/dist/cdn/chunks/{NumberWithSuffix-CE3NrZhH.js.map → NumberWithSuffix-BSOUOUCL.js.map} +1 -1
  46. package/dist/cdn/chunks/{ParagraphEditor-B6Ygu-Mq.js → ParagraphEditor-S1bpgxe5.js} +187 -187
  47. package/dist/cdn/chunks/{ParagraphEditor-B6Ygu-Mq.js.map → ParagraphEditor-S1bpgxe5.js.map} +1 -1
  48. package/dist/cdn/chunks/{RichTextEditorContent-DL_y2SrR.js → RichTextEditorContent-ByehRfEA.js} +33 -33
  49. package/dist/cdn/chunks/{RichTextEditorContent-DL_y2SrR.js.map → RichTextEditorContent-ByehRfEA.js.map} +1 -1
  50. package/dist/cdn/chunks/{SaveModuleDialog-B0TnO_o9.js → SaveModuleDialog-5CNMvgYL.js} +27 -27
  51. package/dist/cdn/chunks/{SaveModuleDialog-B0TnO_o9.js.map → SaveModuleDialog-5CNMvgYL.js.map} +1 -1
  52. package/dist/cdn/chunks/{TitleEditor-BHpfxvwy.js → TitleEditor-BASWPsCM.js} +66 -66
  53. package/dist/cdn/chunks/{TitleEditor-BHpfxvwy.js.map → TitleEditor-BASWPsCM.js.map} +1 -1
  54. package/dist/cdn/chunks/{blockTypeIcons-BzzY9_kA.js → blockTypeIcons-DfOffaYP.js} +3 -3
  55. package/dist/cdn/chunks/{blockTypeIcons-BzzY9_kA.js.map → blockTypeIcons-DfOffaYP.js.map} +1 -1
  56. package/dist/cdn/chunks/draggable-CNhyCGIO.js +4804 -0
  57. package/dist/cdn/chunks/draggable-CNhyCGIO.js.map +1 -0
  58. package/dist/cdn/chunks/{extensions-DIxF31tA.js → extensions-BJOV1jre.js} +95 -95
  59. package/dist/cdn/chunks/{extensions-DIxF31tA.js.map → extensions-BJOV1jre.js.map} +1 -1
  60. package/dist/cdn/chunks/{features-DEMb13KS.js → features-D6FoOm8v.js} +2272 -2269
  61. package/dist/cdn/chunks/features-D6FoOm8v.js.map +1 -0
  62. package/dist/cdn/chunks/{icons-CsLTcirh.js → icons-CpsjWPU-.js} +2 -2
  63. package/dist/cdn/chunks/{icons-CsLTcirh.js.map → icons-CpsjWPU-.js.map} +1 -1
  64. package/dist/cdn/chunks/{media-library-CVaNvhpM.js → media-library-CEd7Lqxk.js} +1397 -1397
  65. package/dist/cdn/chunks/{media-library-CVaNvhpM.js.map → media-library-CEd7Lqxk.js.map} +1 -1
  66. package/dist/cdn/chunks/{pusher-CDbNlZBE.js → pusher-bjpcqCZG.js} +2 -2
  67. package/dist/cdn/chunks/{pusher-CDbNlZBE.js.map → pusher-bjpcqCZG.js.map} +1 -1
  68. package/dist/cdn/chunks/{quality-BaBfc54_.js → quality-Bx1oORXQ.js} +3 -3
  69. package/dist/cdn/chunks/{quality-BaBfc54_.js.map → quality-Bx1oORXQ.js.map} +1 -1
  70. package/dist/cdn/chunks/{renderer-CUxvx7ro.js → renderer-CwxCisa-.js} +3 -3
  71. package/dist/cdn/chunks/{renderer-CUxvx7ro.js.map → renderer-CwxCisa-.js.map} +1 -1
  72. package/dist/{rolldown-runtime-BZGGJVDF.js → cdn/chunks/rolldown-runtime-C266TIVP.js} +5 -5
  73. package/dist/cdn/chunks/{src-CRaqN-p8.js → src-DDSInEkE.js} +171 -171
  74. package/dist/cdn/chunks/{src-CRaqN-p8.js.map → src-DDSInEkE.js.map} +1 -1
  75. package/dist/cdn/chunks/styles-B1uu-Cc9.js +2944 -0
  76. package/dist/cdn/chunks/styles-B1uu-Cc9.js.map +1 -0
  77. package/dist/cdn/chunks/{tiptap-ZhwKyFp7.js → tiptap-IyIsncxY.js} +45 -46
  78. package/dist/cdn/chunks/{tiptap-ZhwKyFp7.js.map → tiptap-IyIsncxY.js.map} +1 -1
  79. package/dist/cdn/editor.css +1 -1
  80. package/dist/cdn/editor.js +122 -122
  81. package/dist/cdn/editor.js.map +1 -1
  82. package/dist/{check-Da05j8yl.js → check-Bg5yrRmX.js} +1 -1
  83. package/dist/{chevron-down-R2uY34iD.js → chevron-down-tee-ghFi.js} +1 -1
  84. package/dist/{circle-alert-DZuGWPX-.js → circle-alert-C0L9pUQ4.js} +1 -1
  85. package/dist/{clock-CRp2sIub.js → clock-CDlEdqiP.js} +1 -1
  86. package/dist/{cloud-DEk_b4CR.js → cloud-a3VovHva.js} +145 -145
  87. package/dist/{createLucideIcon-C3pa2siy.js → createLucideIcon-Di4mqmGn.js} +9 -9
  88. package/dist/{dist-B1IR0bpH.js → dist-BzRLLpfq.js} +107 -107
  89. package/dist/{dist-BFawx6IS.js → dist-Pk4MhWMP.js} +35 -35
  90. package/dist/{extensions-CUcl9Ok4.js → extensions-BF39Siqk.js} +103 -103
  91. package/dist/{image-up-MBZKKg9p.js → image-up-1D_3XDdO.js} +1 -1
  92. package/dist/index.d.ts +8 -8
  93. package/dist/{info-CJEC7piy.js → info-DTGrc0Bx.js} +1 -1
  94. package/dist/{keys-ciNfSSGj.js → keys-Bqs_0du9.js} +1 -1
  95. package/dist/{loader-circle-DsY5Yg33.js → loader-circle-_9bP23op.js} +1 -1
  96. package/dist/{message-circle-yElBbR2C.js → message-circle-gzy2ZGJ3.js} +1 -1
  97. package/dist/{refresh-cw-CE_AGtn8.js → refresh-cw-BNAhAmtL.js} +1 -1
  98. package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
  99. package/dist/{scan-line-D0vcUekt.js → scan-line-DUEg6DoT.js} +1 -1
  100. package/dist/{send-DH4oDQqC.js → send-BatIZC9a.js} +1 -1
  101. package/dist/{shield-check-CfJgs2Hd.js → shield-check-C5Gv2cM1.js} +1 -1
  102. package/dist/{sparkles-CvRXGqFs.js → sparkles-D1IGi_cC.js} +1 -1
  103. package/dist/style.css +1 -1
  104. package/dist/styles-BgmKdc2x.js +3173 -0
  105. package/dist/templatical-editor.js +99 -99
  106. package/dist/{text-align-start-BT9VUDxK.js → text-align-start-DG3aAH7Y.js} +1 -1
  107. package/dist/{trash-2-DbP2Y6t2.js → trash-2-424iqbpN.js} +1 -1
  108. package/dist/{triangle-alert-aOXceTSe.js → triangle-alert-DWQySIE2.js} +1 -1
  109. package/dist/{useCloudI18n-BuIwR6OE.js → useCloudI18n-CL_AwWwi.js} +4 -4
  110. package/dist/useEditorCore-CnXrv71D.js +3794 -0
  111. package/dist/{useI18n-lb2DHDiu.js → useI18n-CgmQftNf.js} +4 -4
  112. package/dist/{useMergeTag-CBwKnnNB.js → useMergeTag-vpwrZ9eQ.js} +3 -3
  113. package/dist/vue.runtime.esm-bundler-Bxqkjqhc.js +4300 -0
  114. package/dist/{x-u2oVmjN_.js → x-Dlaenqta.js} +1 -1
  115. package/package.json +8 -8
  116. package/dist/CommentsSidebar-B1pvJdqF.js +0 -441
  117. package/dist/CountdownBlock-BNSj1jvJ.js +0 -92
  118. package/dist/CountdownToolbar-ClJr2GzL.js +0 -210
  119. package/dist/cdn/chunks/CountdownToolbar-DXPXrbAA.js +0 -212
  120. package/dist/cdn/chunks/draggable-Bcb86AsV.js +0 -11572
  121. package/dist/cdn/chunks/draggable-Bcb86AsV.js.map +0 -1
  122. package/dist/cdn/chunks/features-DEMb13KS.js.map +0 -1
  123. package/dist/cdn/chunks/rolldown-runtime-BNuo_Jkg.js +0 -20
  124. package/dist/cdn/chunks/styles-BHJULjNR.js +0 -2947
  125. package/dist/cdn/chunks/styles-BHJULjNR.js.map +0 -1
  126. package/dist/styles-DEXEkBvg.js +0 -3176
  127. package/dist/useEditorCore-C6ost42Q.js +0 -9342
  128. package/dist/vue.runtime.esm-bundler-DpvJL-nX.js +0 -5775
@@ -1,18 +1,18 @@
1
- import { Dt as e, E as t, L as n, M as r, Mt as i, Ot as a, P as o, Q as s, S as c, V as ee, _ as l, b as u, d, g as f, h as p, it as m, m as h, t as te, y as g, z as ne } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
2
- import { O as _, m as re, v as ie, w as v } from "./keys-ciNfSSGj.js";
3
- import { t as y } from "./createLucideIcon-C3pa2siy.js";
4
- import { t as b } from "./chevron-down-R2uY34iD.js";
5
- import { t as x } from "./circle-alert-DZuGWPX-.js";
6
- import { n as S, t as C } from "./refresh-cw-CE_AGtn8.js";
7
- import { t as ae } from "./info-CJEC7piy.js";
8
- import { t as w } from "./loader-circle-DsY5Yg33.js";
9
- import { t as T } from "./shield-check-CfJgs2Hd.js";
10
- import { t as E } from "./sparkles-CvRXGqFs.js";
11
- import { t as oe } from "./triangle-alert-aOXceTSe.js";
12
- import { t as se } from "./x-u2oVmjN_.js";
13
- import { t as ce } from "./LoadingTrack-B0CWFHXQ.js";
14
- import { t as D } from "./_plugin-vue_export-helper-B0hnzhyu.js";
15
- import { n as le } from "./useCloudI18n-BuIwR6OE.js";
1
+ import { A as e, F as t, L as n, M as r, X as i, _ as a, at as ee, b as o, f as s, h as c, l, m as u, ot as d, p as f, rt as p, st as m, t as h, v as g, w as te, z as ne } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
2
+ import { O as _, m as re, v as ie, w as v } from "./keys-Bqs_0du9.js";
3
+ import { t as y } from "./createLucideIcon-Di4mqmGn.js";
4
+ import { t as ae } from "./chevron-down-tee-ghFi.js";
5
+ import { t as b } from "./circle-alert-C0L9pUQ4.js";
6
+ import { n as x, t as S } from "./refresh-cw-BNAhAmtL.js";
7
+ import { t as oe } from "./info-DTGrc0Bx.js";
8
+ import { t as C } from "./loader-circle-_9bP23op.js";
9
+ import { t as w } from "./shield-check-C5Gv2cM1.js";
10
+ import { t as T } from "./sparkles-D1IGi_cC.js";
11
+ import { t as se } from "./triangle-alert-DWQySIE2.js";
12
+ import { t as ce } from "./x-Dlaenqta.js";
13
+ import { t as le } from "./LoadingTrack-CFkDkjBb.js";
14
+ import { t as E } from "./_plugin-vue_export-helper-B0hnzhyu.js";
15
+ import { n as D } from "./useCloudI18n-CL_AwWwi.js";
16
16
  var O = y("shield-x", [
17
17
  ["path", {
18
18
  d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
@@ -85,12 +85,12 @@ var P = {
85
85
  }, Ee = {
86
86
  key: 3,
87
87
  class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
88
- }, De = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Oe = { class: "tpl:m-0 tpl:px-4 tpl:pb-2 tpl:pt-2 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, G = /* @__PURE__ */ D(/* @__PURE__ */ c({
88
+ }, De = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Oe = { class: "tpl:m-0 tpl:px-4 tpl:pb-2 tpl:pt-2 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, G = /* @__PURE__ */ E(/* @__PURE__ */ o({
89
89
  __name: "TemplateScoringPanel",
90
90
  props: { visible: { type: Boolean } },
91
91
  emits: ["close"],
92
- setup(c, { emit: y }) {
93
- let D = c, G = y, { t: K } = le(), q = _(re, "TemplateScoringPanel"), J = _(v, "TemplateScoringPanel"), Y = t(ie, []), X = s({
92
+ setup(o, { emit: y }) {
93
+ let E = o, G = y, { t: K } = D(), q = _(re, "TemplateScoringPanel"), J = _(v, "TemplateScoringPanel"), Y = te(ie, []), X = i({
94
94
  spam: !0,
95
95
  readability: !0,
96
96
  accessibility: !0,
@@ -106,14 +106,14 @@ var P = {
106
106
  "bestPractices"
107
107
  ], Ae = {
108
108
  spam: O,
109
- readability: S,
110
- accessibility: E,
109
+ readability: x,
110
+ accessibility: T,
111
111
  bestPractices: k
112
112
  };
113
113
  function Q() {
114
114
  J.score(q.content.value, Y);
115
115
  }
116
- ne(() => D.visible, (e) => {
116
+ n(() => E.visible, (e) => {
117
117
  e && !J.scoringResult.value && !J.isScoring.value && Q();
118
118
  });
119
119
  async function je(e) {
@@ -128,7 +128,7 @@ var P = {
128
128
  function $() {
129
129
  return J.scoringResult.value ? Z.reduce((e, t) => e + (J.scoringResult.value?.categories[t]?.findings.length ?? 0), 0) : 0;
130
130
  }
131
- return (t, s) => (r(), p(te, {
131
+ return (n, i) => (e(), f(h, {
132
132
  "enter-active-class": "tpl-scoring-slide-enter-active",
133
133
  "enter-from-class": "tpl:translate-x-full",
134
134
  "enter-to-class": "tpl:translate-x-0",
@@ -136,118 +136,118 @@ var P = {
136
136
  "leave-from-class": "tpl:translate-x-0",
137
137
  "leave-to-class": "tpl:translate-x-full"
138
138
  }, {
139
- default: ee(() => [c.visible ? (r(), l("div", P, [h("div", F, [h("div", I, [u(m(T), {
139
+ default: ne(() => [o.visible ? (e(), c("div", P, [s("div", F, [s("div", I, [g(p(w), {
140
140
  size: 13,
141
141
  "stroke-width": 2
142
- }), h("span", null, i(m(K).scoring.title), 1)]), h("div", L, [m(J).scoringResult.value && !m(J).isScoring.value ? (r(), l("button", {
142
+ }), s("span", null, m(p(K).scoring.title), 1)]), s("div", L, [p(J).scoringResult.value && !p(J).isScoring.value ? (e(), c("button", {
143
143
  key: 0,
144
144
  class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
145
- title: m(K).scoring.rescore,
146
- onClick: s[0] ||= (e) => Q()
147
- }, [u(m(C), {
145
+ title: p(K).scoring.rescore,
146
+ onClick: i[0] ||= (e) => Q()
147
+ }, [g(p(S), {
148
148
  size: 14,
149
149
  "stroke-width": 2
150
- })], 8, R)) : f("", !0), h("button", {
150
+ })], 8, R)) : u("", !0), s("button", {
151
151
  class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
152
- onClick: s[1] ||= (e) => G("close")
153
- }, [u(m(se), {
152
+ onClick: i[1] ||= (e) => G("close")
153
+ }, [g(p(ce), {
154
154
  size: 14,
155
155
  "stroke-width": 2
156
- })])])]), h("div", z, [m(J).isScoring.value ? (r(), l("div", B, [h("p", V, i(m(K).scoring.scoring), 1), u(ce, { class: "tpl:w-3/4" })])) : m(J).error.value && !m(J).scoringResult.value ? (r(), l("div", H, [
157
- u(m(x), {
156
+ })])])]), s("div", z, [p(J).isScoring.value ? (e(), c("div", B, [s("p", V, m(p(K).scoring.scoring), 1), g(le, { class: "tpl:w-3/4" })])) : p(J).error.value && !p(J).scoringResult.value ? (e(), c("div", H, [
157
+ g(p(b), {
158
158
  size: 32,
159
159
  "stroke-width": 1.5,
160
160
  class: "tpl:text-[var(--tpl-danger)]"
161
161
  }),
162
- h("p", U, i(m(K).scoring.error), 1),
163
- h("button", {
162
+ s("p", U, m(p(K).scoring.error), 1),
163
+ s("button", {
164
164
  class: "tpl:mt-2 tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-muted)]",
165
- onClick: s[2] ||= (e) => Q()
166
- }, [u(m(C), {
165
+ onClick: i[2] ||= (e) => Q()
166
+ }, [g(p(S), {
167
167
  size: 12,
168
168
  "stroke-width": 2
169
- }), g(" " + i(m(K).scoring.rescore), 1)])
170
- ])) : m(J).scoringResult.value ? (r(), l("div", W, [
171
- h("div", {
169
+ }), a(" " + m(p(K).scoring.rescore), 1)])
170
+ ])) : p(J).scoringResult.value ? (e(), c("div", W, [
171
+ s("div", {
172
172
  class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:p-5",
173
- style: a({ backgroundColor: m(j)(m(J).scoringResult.value.score) })
173
+ style: d({ backgroundColor: p(j)(p(J).scoringResult.value.score) })
174
174
  }, [
175
- h("span", {
175
+ s("span", {
176
176
  class: "tpl:text-4xl tpl:font-bold tpl:tabular-nums",
177
- style: a({ color: m(A)(m(J).scoringResult.value.score) })
178
- }, i(m(J).scoringResult.value.score), 5),
179
- h("span", ue, i(m(K).scoring.overallScore), 1),
180
- $() > 0 ? (r(), l("span", de, i($()) + " " + i(m(K).scoring.findings), 1)) : f("", !0)
177
+ style: d({ color: p(A)(p(J).scoringResult.value.score) })
178
+ }, m(p(J).scoringResult.value.score), 5),
179
+ s("span", ue, m(p(K).scoring.overallScore), 1),
180
+ $() > 0 ? (e(), c("span", de, m($()) + " " + m(p(K).scoring.findings), 1)) : u("", !0)
181
181
  ], 4),
182
- m(J).fixError.value ? (r(), l("div", fe, [u(m(x), {
182
+ p(J).fixError.value ? (e(), c("div", fe, [g(p(b), {
183
183
  size: 14,
184
184
  "stroke-width": 2,
185
185
  class: "tpl:mt-0.5 tpl:shrink-0"
186
- }), h("span", null, i(m(K).scoring.fixError), 1)])) : f("", !0),
187
- (r(), l(d, null, o(Z, (t) => h("div", {
188
- key: t,
186
+ }), s("span", null, m(p(K).scoring.fixError), 1)])) : u("", !0),
187
+ (e(), c(l, null, r(Z, (n) => s("div", {
188
+ key: n,
189
189
  class: "tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)]"
190
- }, [h("button", {
190
+ }, [s("button", {
191
191
  class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-2.5 tpl:px-3 tpl:py-2.5 tpl:text-left tpl:transition-colors tpl:duration-100 tpl:bg-[var(--tpl-bg)]",
192
- onClick: (e) => ke(t)
192
+ onClick: (e) => ke(n)
193
193
  }, [
194
- (r(), p(n(Ae[t]), {
194
+ (e(), f(t(Ae[n]), {
195
195
  size: 14,
196
196
  "stroke-width": 2,
197
- style: a({ color: m(A)(m(J).scoringResult.value.categories[t].score) })
197
+ style: d({ color: p(A)(p(J).scoringResult.value.categories[n].score) })
198
198
  }, null, 8, ["style"])),
199
- h("span", me, i(m(K).scoring.categories[t]), 1),
200
- h("span", {
199
+ s("span", me, m(p(K).scoring.categories[n]), 1),
200
+ s("span", {
201
201
  class: "tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-xs tpl:font-semibold tpl:tabular-nums",
202
- style: a({
203
- color: m(A)(m(J).scoringResult.value.categories[t].score),
204
- backgroundColor: m(j)(m(J).scoringResult.value.categories[t].score)
202
+ style: d({
203
+ color: p(A)(p(J).scoringResult.value.categories[n].score),
204
+ backgroundColor: p(j)(p(J).scoringResult.value.categories[n].score)
205
205
  })
206
- }, i(m(J).scoringResult.value.categories[t].score), 5),
207
- m(J).scoringResult.value.categories[t].findings.length > 0 ? (r(), l("span", he, i(m(J).scoringResult.value.categories[t].findings.length), 1)) : f("", !0),
208
- u(m(b), {
206
+ }, m(p(J).scoringResult.value.categories[n].score), 5),
207
+ p(J).scoringResult.value.categories[n].findings.length > 0 ? (e(), c("span", he, m(p(J).scoringResult.value.categories[n].findings.length), 1)) : u("", !0),
208
+ g(p(ae), {
209
209
  size: 12,
210
210
  "stroke-width": 2,
211
- class: e(["tpl:transition-transform tpl:duration-200 tpl:text-[var(--tpl-text-dim)]", X.value[t] ? "tpl:rotate-0" : "tpl:-rotate-90"])
211
+ class: ee(["tpl:transition-transform tpl:duration-200 tpl:text-[var(--tpl-text-dim)]", X.value[n] ? "tpl:rotate-0" : "tpl:-rotate-90"])
212
212
  }, null, 8, ["class"])
213
- ], 8, pe), X.value[t] ? (r(), l("div", ge, [m(J).scoringResult.value.categories[t].findings.length === 0 ? (r(), l("div", _e, i(m(K).scoring.noFindings), 1)) : f("", !0), (r(!0), l(d, null, o(m(J).scoringResult.value.categories[t].findings, (e) => (r(), l("div", {
214
- key: e.id,
213
+ ], 8, pe), X.value[n] ? (e(), c("div", ge, [p(J).scoringResult.value.categories[n].findings.length === 0 ? (e(), c("div", _e, m(p(K).scoring.noFindings), 1)) : u("", !0), (e(!0), c(l, null, r(p(J).scoringResult.value.categories[n].findings, (n) => (e(), c("div", {
214
+ key: n.id,
215
215
  class: "tpl:border-t tpl:px-3 tpl:py-2.5 first:tpl:border-t-0 tpl:border-[var(--tpl-border-light)]"
216
- }, [h("div", ve, [(r(), p(n(e.severity === "high" ? m(x) : e.severity === "medium" ? m(oe) : m(ae)), {
216
+ }, [s("div", ve, [(e(), f(t(n.severity === "high" ? p(b) : n.severity === "medium" ? p(se) : p(oe)), {
217
217
  size: 13,
218
218
  "stroke-width": 2,
219
219
  class: "tpl:mt-0.5 tpl:shrink-0",
220
- style: a({ color: m(M)(e.severity) })
221
- }, null, 8, ["style"])), h("div", ye, [
222
- h("div", be, [h("span", {
220
+ style: d({ color: p(M)(n.severity) })
221
+ }, null, 8, ["style"])), s("div", ye, [
222
+ s("div", be, [s("span", {
223
223
  class: "tpl:mt-0.5 tpl:shrink-0 tpl:rounded tpl:px-1 tpl:py-px tpl:text-[10px] tpl:font-medium tpl:leading-tight",
224
- style: a({
225
- color: m(M)(e.severity),
226
- backgroundColor: m(N)(e.severity)
224
+ style: d({
225
+ color: p(M)(n.severity),
226
+ backgroundColor: p(N)(n.severity)
227
227
  })
228
- }, i(m(K).scoring.severity[e.severity]), 5), h("span", xe, i(e.message), 1)]),
229
- e.suggestion ? (r(), l("p", Se, i(e.suggestion), 1)) : f("", !0),
230
- e.blockId ? (r(), l("div", Ce, [h("button", {
228
+ }, m(p(K).scoring.severity[n.severity]), 5), s("span", xe, m(n.message), 1)]),
229
+ n.suggestion ? (e(), c("p", Se, m(n.suggestion), 1)) : u("", !0),
230
+ n.blockId ? (e(), c("div", Ce, [s("button", {
231
231
  class: "tpl-scoring-fix-btn tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded tpl:border tpl:px-3 tpl:py-1.5 tpl:text-[11px] tpl:font-medium tpl:transition-all tpl:duration-150 tpl:disabled:opacity-50 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)]",
232
232
  style: { "background-color": "transparent" },
233
- disabled: m(J).fixingFindingId.value !== null,
234
- onClick: (t) => je(e)
235
- }, [m(J).fixingFindingId.value === e.id ? (r(), p(m(w), {
233
+ disabled: p(J).fixingFindingId.value !== null,
234
+ onClick: (e) => je(n)
235
+ }, [p(J).fixingFindingId.value === n.id ? (e(), f(p(C), {
236
236
  key: 0,
237
237
  class: "tpl-spinner",
238
238
  size: 11,
239
239
  "stroke-width": 2
240
- })) : (r(), p(m(E), {
240
+ })) : (e(), f(p(T), {
241
241
  key: 1,
242
242
  size: 11,
243
243
  "stroke-width": 2
244
- })), g(" " + i(m(J).fixingFindingId.value === e.id ? m(K).scoring.fixing : m(K).scoring.fix), 1)], 8, we), m(J).fixError.value ? (r(), l("p", Te, i(m(J).fixError.value), 1)) : f("", !0)])) : f("", !0)
245
- ])])]))), 128))])) : f("", !0)])), 64))
246
- ])) : (r(), l("div", Ee, [u(m(T), {
244
+ })), a(" " + m(p(J).fixingFindingId.value === n.id ? p(K).scoring.fixing : p(K).scoring.fix), 1)], 8, we), p(J).fixError.value ? (e(), c("p", Te, m(p(J).fixError.value), 1)) : u("", !0)])) : u("", !0)
245
+ ])])]))), 128))])) : u("", !0)])), 64))
246
+ ])) : (e(), c("div", Ee, [g(p(w), {
247
247
  size: 32,
248
248
  "stroke-width": 1.5,
249
249
  class: "tpl:text-[var(--tpl-text-dim)]"
250
- }), h("p", De, i(m(K).scoring.emptyState), 1)])), h("p", Oe, i(m(K).aiMenu.disclaimer), 1)])])) : f("", !0)]),
250
+ }), s("p", De, m(p(K).scoring.emptyState), 1)])), s("p", Oe, m(p(K).aiMenu.disclaimer), 1)])])) : u("", !0)]),
251
251
  _: 1
252
252
  }));
253
253
  }
@@ -1,8 +1,8 @@
1
- import { Dt as e, H as t, M as n, Mt as r, P as i, Q as a, S as o, V as s, _ as c, b as l, d as u, g as d, h as f, it as p, m, o as h, y as g, z as _ } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
2
- import "./useEditorCore-C6ost42Q.js";
3
- import { t as v } from "./loader-circle-DsY5Yg33.js";
4
- import { n as y } from "./useCloudI18n-BuIwR6OE.js";
5
- import { t as b } from "./TplModal-BwSfxIHf.js";
1
+ import { A as e, B as t, L as n, M as r, X as i, _ as a, at as o, b as s, f as c, h as l, i as u, l as d, m as f, p, rt as m, st as h, v as g, z as _ } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
2
+ import "./useEditorCore-CnXrv71D.js";
3
+ import { t as v } from "./loader-circle-_9bP23op.js";
4
+ import { n as y } from "./useCloudI18n-CL_AwWwi.js";
5
+ import { t as b } from "./TplModal-C3Hq9b58.js";
6
6
  //#region src/cloud/components/TestEmailModal.vue?vue&type=script&setup=true&lang.ts
7
7
  var x = ["aria-busy"], S = {
8
8
  id: "tpl-test-email-title",
@@ -14,7 +14,7 @@ var x = ["aria-busy"], S = {
14
14
  }, k = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, A = ["disabled"], j = ["disabled"], M = {
15
15
  key: 0,
16
16
  class: "tpl:flex tpl:items-center tpl:gap-1.5"
17
- }, N = { key: 1 }, P = /* @__PURE__ */ o({
17
+ }, N = { key: 1 }, P = /* @__PURE__ */ s({
18
18
  __name: "TestEmailModal",
19
19
  props: {
20
20
  visible: { type: Boolean },
@@ -23,9 +23,9 @@ var x = ["aria-busy"], S = {
23
23
  error: {}
24
24
  },
25
25
  emits: ["send", "close"],
26
- setup(o, { emit: P }) {
27
- let F = o, I = P, { t: L } = y(), R = a("");
28
- _(() => F.visible, (e) => {
26
+ setup(s, { emit: P }) {
27
+ let F = s, I = P, { t: L } = y(), R = i("");
28
+ n(() => F.visible, (e) => {
29
29
  e && (R.value = F.allowedEmails[0] ?? "");
30
30
  });
31
31
  function z() {
@@ -37,15 +37,15 @@ var x = ["aria-busy"], S = {
37
37
  function V(e) {
38
38
  e.key === "Enter" && !e.shiftKey && (e.preventDefault(), z()), e.key === "Escape" && B();
39
39
  }
40
- return (a, _) => (n(), f(b, {
41
- visible: o.visible,
40
+ return (n, i) => (e(), p(b, {
41
+ visible: s.visible,
42
42
  onClose: B,
43
43
  onKeydown: V
44
44
  }, {
45
- default: s(() => [m("div", {
45
+ default: _(() => [c("div", {
46
46
  role: "dialog",
47
47
  "aria-modal": "true",
48
- "aria-busy": o.isSending,
48
+ "aria-busy": s.isSending,
49
49
  "aria-labelledby": "tpl-test-email-title",
50
50
  class: "tpl-scale-in tpl:mx-4 tpl:w-full tpl:max-w-sm tpl:rounded-[var(--tpl-radius-lg)] tpl:p-5",
51
51
  style: {
@@ -53,38 +53,38 @@ var x = ["aria-busy"], S = {
53
53
  "box-shadow": "var(--tpl-shadow-xl)"
54
54
  }
55
55
  }, [
56
- m("h3", S, r(p(L).testEmail.title), 1),
57
- m("div", C, [m("label", w, r(p(L).testEmail.recipientLabel), 1), o.allowedEmails.length === 1 ? (n(), c("input", {
56
+ c("h3", S, h(m(L).testEmail.title), 1),
57
+ c("div", C, [c("label", w, h(m(L).testEmail.recipientLabel), 1), s.allowedEmails.length === 1 ? (e(), l("input", {
58
58
  key: 0,
59
59
  type: "text",
60
60
  value: R.value,
61
61
  disabled: "",
62
62
  class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:opacity-70 tpl:shadow-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
63
- }, null, 8, T)) : t((n(), c("select", {
63
+ }, null, 8, T)) : t((e(), l("select", {
64
64
  key: 1,
65
- "onUpdate:modelValue": _[0] ||= (e) => R.value = e,
65
+ "onUpdate:modelValue": i[0] ||= (e) => R.value = e,
66
66
  class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:shadow-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
67
- disabled: o.isSending
68
- }, [(n(!0), c(u, null, i(o.allowedEmails, (e) => (n(), c("option", {
69
- key: e,
70
- value: e
71
- }, r(e), 9, D))), 128))], 8, E)), [[h, R.value]])]),
72
- o.error ? (n(), c("p", O, r(o.error), 1)) : d("", !0),
73
- m("div", k, [m("button", {
67
+ disabled: s.isSending
68
+ }, [(e(!0), l(d, null, r(s.allowedEmails, (t) => (e(), l("option", {
69
+ key: t,
70
+ value: t
71
+ }, h(t), 9, D))), 128))], 8, E)), [[u, R.value]])]),
72
+ s.error ? (e(), l("p", O, h(s.error), 1)) : f("", !0),
73
+ c("div", k, [c("button", {
74
74
  type: "button",
75
- class: e(["tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)]", { "tpl:cursor-not-allowed tpl:opacity-50": o.isSending }]),
76
- disabled: o.isSending,
75
+ class: o(["tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)]", { "tpl:cursor-not-allowed tpl:opacity-50": s.isSending }]),
76
+ disabled: s.isSending,
77
77
  onClick: B
78
- }, r(p(L).testEmail.cancel), 11, A), m("button", {
78
+ }, h(m(L).testEmail.cancel), 11, A), c("button", {
79
79
  type: "button",
80
80
  class: "tpl:cursor-pointer tpl:rounded-md tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
81
- disabled: !R.value || o.isSending,
81
+ disabled: !R.value || s.isSending,
82
82
  onClick: z
83
- }, [o.isSending ? (n(), c("span", M, [l(p(v), {
83
+ }, [s.isSending ? (e(), l("span", M, [g(m(v), {
84
84
  class: "tpl:animate-spin",
85
85
  size: 12,
86
86
  "stroke-width": 2
87
- }), g(" " + r(p(L).testEmail.sending), 1)])) : (n(), c("span", N, r(p(L).testEmail.send), 1))], 8, j)])
87
+ }), a(" " + h(m(L).testEmail.sending), 1)])) : (e(), l("span", N, h(m(L).testEmail.send), 1))], 8, j)])
88
88
  ], 8, x)]),
89
89
  _: 1
90
90
  }, 8, ["visible"]));
@@ -1,36 +1,36 @@
1
- import { Dt as e, E as t, M as n, Mt as r, Ot as i, S as a, _ as o, b as s, d as c, f as l, g as u, h as d, it as f, m as p, q as m, y as h } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
2
- import { b as g } from "./useEditorCore-C6ost42Q.js";
3
- import { D as _, T as v } from "./keys-ciNfSSGj.js";
4
- import { t as y } from "./useI18n-lb2DHDiu.js";
5
- import { a as b, i as x, n as S, r as C, t as w } from "./RichTextEditorContent-DYkIauIk.js";
6
- import { t as T } from "./loader-circle-DsY5Yg33.js";
7
- import { t as E } from "./scan-line-D0vcUekt.js";
1
+ import { A as e, G as t, _ as n, at as r, b as i, f as a, h as o, l as s, m as c, ot as l, p as u, rt as d, st as f, u as p, v as m, w as h } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
2
+ import { b as g } from "./useEditorCore-CnXrv71D.js";
3
+ import { D as _, T as v } from "./keys-Bqs_0du9.js";
4
+ import { t as y } from "./useI18n-CgmQftNf.js";
5
+ import { a as b, i as x, n as S, r as C, t as w } from "./RichTextEditorContent-CK3Om7ES.js";
6
+ import { t as T } from "./loader-circle-_9bP23op.js";
7
+ import { t as ee } from "./scan-line-DUEg6DoT.js";
8
8
  //#region src/components/blocks/TitleEditor.vue?vue&type=script&setup=true&lang.ts
9
- var ee = { class: "tpl-text-editor-wrapper tpl:relative" }, D = ["data-tpl-theme", "aria-label"], O = ["aria-label", "title"], k = ["aria-label", "title"], A = ["aria-label", "title"], j = {
9
+ var E = { class: "tpl-text-editor-wrapper tpl:relative" }, D = ["data-tpl-theme", "aria-label"], O = ["aria-label", "title"], k = ["aria-label", "title"], A = ["aria-label", "title"], j = {
10
10
  key: 0,
11
11
  class: "tpl:mx-1.5 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]"
12
12
  }, M = ["aria-label", "title"], N = {
13
13
  key: 1,
14
14
  class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
15
- }, P = /* @__PURE__ */ a({
15
+ }, P = /* @__PURE__ */ i({
16
16
  __name: "TitleEditor",
17
17
  props: {
18
18
  block: {},
19
19
  toolbarPosition: {}
20
20
  },
21
21
  emits: ["done"],
22
- setup(a, { emit: P }) {
23
- let F = a, I = P, L = t(v, null), R = t(_, null), { t: z } = y(), { editor: B, EditorContent: V, isLoading: H, initError: U, retry: W, showLinkDialog: G, linkUrl: K, linkDialogRef: q, canRequestMergeTag: J, openLinkDialog: Y, insertLink: X, removeLink: Z, closeLinkDialog: Q, handleLinkKeydown: te, handleAddMergeTag: $ } = g({
22
+ setup(i, { emit: P }) {
23
+ let F = i, I = P, L = h(v, null), R = h(_, null), { t: z } = y(), { editor: B, EditorContent: V, isLoading: H, initError: U, retry: W, showLinkDialog: G, linkUrl: K, linkDialogRef: q, canRequestMergeTag: J, openLinkDialog: Y, insertLink: X, removeLink: Z, closeLinkDialog: Q, handleLinkKeydown: te, handleAddMergeTag: $ } = g({
24
24
  blockId: () => F.block.id,
25
25
  blockContent: () => F.block.content,
26
26
  onDone: () => I("done"),
27
27
  editorName: "TitleEditor",
28
28
  async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
29
29
  let [{ Editor: a, EditorContent: o }, { default: s }, { default: c }, { MergeTagNode: l, MergeTagSuggestion: u, LogicMergeTagNode: d }] = await Promise.all([
30
- import("./dist-BFawx6IS.js").then((e) => e.r),
30
+ import("./dist-Pk4MhWMP.js").then((e) => e.r),
31
31
  import("./dist-D90y8dvT.js"),
32
32
  import("./dist-DDJIWTRY.js"),
33
- import("./extensions-CUcl9Ok4.js")
33
+ import("./extensions-BF39Siqk.js")
34
34
  ]);
35
35
  return {
36
36
  TiptapEditor: a,
@@ -67,76 +67,76 @@ var ee = { class: "tpl-text-editor-wrapper tpl:relative" }, D = ["data-tpl-theme
67
67
  };
68
68
  }
69
69
  });
70
- return (t, g) => (n(), o("div", ee, [
71
- (n(), d(l, { to: "body" }, [p("div", {
72
- "data-tpl-theme": f(R),
70
+ return (h, g) => (e(), o("div", E, [
71
+ (e(), u(p, { to: "body" }, [a("div", {
72
+ "data-tpl-theme": d(R),
73
73
  role: "toolbar",
74
- "aria-label": f(z).titleEditor.toolbar,
74
+ "aria-label": d(z).titleEditor.toolbar,
75
75
  class: "tpl tpl-text-toolbar tpl:fixed tpl:z-popover tpl:flex tpl:items-center tpl:gap-1 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:shadow-lg",
76
- style: i({
77
- ...f(L),
78
- top: `${a.toolbarPosition.top}px`,
79
- left: `${a.toolbarPosition.left}px`,
76
+ style: l({
77
+ ...d(L),
78
+ top: `${i.toolbarPosition.top}px`,
79
+ left: `${i.toolbarPosition.left}px`,
80
80
  transform: "translateY(-100%)"
81
81
  })
82
- }, [!f(H) && f(B) ? (n(), o(c, { key: 0 }, [
83
- p("button", {
82
+ }, [!d(H) && d(B) ? (e(), o(s, { key: 0 }, [
83
+ a("button", {
84
84
  type: "button",
85
- class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": f(B)?.isActive("bold") }]),
86
- "aria-label": f(z).titleEditor.bold,
87
- title: f(z).titleEditor.bold,
88
- onClick: g[0] ||= (e) => f(B)?.chain().focus().toggleBold().run()
89
- }, [s(f(b), {
85
+ class: r(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": d(B)?.isActive("bold") }]),
86
+ "aria-label": d(z).titleEditor.bold,
87
+ title: d(z).titleEditor.bold,
88
+ onClick: g[0] ||= (e) => d(B)?.chain().focus().toggleBold().run()
89
+ }, [m(d(b), {
90
90
  size: 16,
91
91
  "stroke-width": 2.5
92
92
  })], 10, O),
93
- p("button", {
93
+ a("button", {
94
94
  type: "button",
95
- class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": f(B)?.isActive("italic") }]),
96
- "aria-label": f(z).titleEditor.italic,
97
- title: f(z).titleEditor.italic,
98
- onClick: g[1] ||= (e) => f(B)?.chain().focus().toggleItalic().run()
99
- }, [s(f(x), {
95
+ class: r(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": d(B)?.isActive("italic") }]),
96
+ "aria-label": d(z).titleEditor.italic,
97
+ title: d(z).titleEditor.italic,
98
+ onClick: g[1] ||= (e) => d(B)?.chain().focus().toggleItalic().run()
99
+ }, [m(d(x), {
100
100
  size: 16,
101
101
  "stroke-width": 2
102
102
  })], 10, k),
103
- g[6] ||= p("span", {
103
+ g[6] ||= a("span", {
104
104
  class: "tpl:mx-1.5 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
105
105
  "aria-hidden": "true"
106
106
  }, null, -1),
107
- p("button", {
107
+ a("button", {
108
108
  type: "button",
109
- class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": f(B)?.isActive("link") }]),
110
- "aria-label": f(z).titleEditor.addLink,
111
- title: f(z).titleEditor.addLink,
112
- onClick: g[2] ||= (...e) => f(Y) && f(Y)(...e)
113
- }, [s(f(C), {
109
+ class: r(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": d(B)?.isActive("link") }]),
110
+ "aria-label": d(z).titleEditor.addLink,
111
+ title: d(z).titleEditor.addLink,
112
+ onClick: g[2] ||= (...e) => d(Y) && d(Y)(...e)
113
+ }, [m(d(C), {
114
114
  size: 16,
115
115
  "stroke-width": 2
116
116
  })], 10, A),
117
- f(J) ? (n(), o("span", j)) : u("", !0),
118
- f(J) ? (n(), o("button", {
117
+ d(J) ? (e(), o("span", j)) : c("", !0),
118
+ d(J) ? (e(), o("button", {
119
119
  key: 1,
120
120
  type: "button",
121
121
  class: "tpl:flex tpl:h-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-bg-active)]",
122
- "aria-label": f(z).mergeTag.add,
123
- title: f(z).mergeTag.add,
124
- onClick: g[3] ||= (...e) => f($) && f($)(...e)
125
- }, [s(f(E), {
122
+ "aria-label": d(z).mergeTag.add,
123
+ title: d(z).mergeTag.add,
124
+ onClick: g[3] ||= (...e) => d($) && d($)(...e)
125
+ }, [m(d(ee), {
126
126
  size: 16,
127
127
  "stroke-width": 2
128
- }), h(" " + r(f(z).mergeTag.add), 1)], 8, M)) : u("", !0)
129
- ], 64)) : (n(), o("div", N, [s(f(T), {
128
+ }), n(" " + f(d(z).mergeTag.add), 1)], 8, M)) : c("", !0)
129
+ ], 64)) : (e(), o("div", N, [m(d(T), {
130
130
  class: "tpl-spinner",
131
131
  size: 14,
132
132
  "stroke-width": 2
133
- }), h(" " + r(f(z).errors.editorLoading), 1)]))], 12, D)])),
134
- s(w, {
135
- editor: f(B),
136
- "editor-content": f(V),
137
- "is-loading": f(H),
138
- "init-error": f(U),
139
- onRetry: f(W)
133
+ }), n(" " + f(d(z).errors.editorLoading), 1)]))], 12, D)])),
134
+ m(w, {
135
+ editor: d(B),
136
+ "editor-content": d(V),
137
+ "is-loading": d(H),
138
+ "init-error": d(U),
139
+ onRetry: d(W)
140
140
  }, null, 8, [
141
141
  "editor",
142
142
  "editor-content",
@@ -144,17 +144,17 @@ var ee = { class: "tpl-text-editor-wrapper tpl:relative" }, D = ["data-tpl-theme
144
144
  "init-error",
145
145
  "onRetry"
146
146
  ]),
147
- s(S, {
148
- visible: f(G),
149
- "is-editing-link": f(B)?.isActive("link") ?? !1,
150
- "dialog-ref": f(q),
151
- "onUpdate:dialogRef": g[4] ||= (e) => m(q) ? q.value = e : null,
152
- "link-url": f(K),
153
- "onUpdate:linkUrl": g[5] ||= (e) => m(K) ? K.value = e : null,
154
- onClose: f(Q),
155
- onInsert: f(X),
156
- onRemove: f(Z),
157
- onKeydown: f(te)
147
+ m(S, {
148
+ visible: d(G),
149
+ "is-editing-link": d(B)?.isActive("link") ?? !1,
150
+ "dialog-ref": d(q),
151
+ "onUpdate:dialogRef": g[4] ||= (e) => t(q) ? q.value = e : null,
152
+ "link-url": d(K),
153
+ "onUpdate:linkUrl": g[5] ||= (e) => t(K) ? K.value = e : null,
154
+ onClose: d(Q),
155
+ onInsert: d(X),
156
+ onRemove: d(Z),
157
+ onKeydown: d(te)
158
158
  }, null, 8, [
159
159
  "visible",
160
160
  "is-editing-link",