@templatical/editor 0.14.0 → 0.15.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 (152) hide show
  1. package/dist/{AiChatSidebar-J8iO_sX7.js → AiChatSidebar-BIKvYREk.js} +57 -56
  2. package/dist/{AiFeatureMenu-F2diEDgV.js → AiFeatureMenu-QbD82crt.js} +20 -20
  3. package/dist/{BlockIssueBadge-a-qlByxF.js → BlockIssueBadge-B3xVgMTh.js} +11 -11
  4. package/dist/{CloudEditor-CDjtwb4i.js → CloudEditor-DptuSf7A.js} +470 -468
  5. package/dist/{CollaboratorBar-B_EnJLtW.js → CollaboratorBar-DrA_K69w.js} +20 -20
  6. package/dist/{CommentsSidebar-DaP9BA_r.js → CommentsSidebar-D_tSGvTX.js} +154 -153
  7. package/dist/CountdownBlock-apiYUhkQ.js +92 -0
  8. package/dist/CountdownToolbar-CS0axcjz.js +210 -0
  9. package/dist/{DesignReferenceSidebar-BHRlTqlT.js → DesignReferenceSidebar-DWYK9nTk.js} +58 -57
  10. package/dist/{IssuesPanel-u7ee3Wrl.js → IssuesPanel-CR1MPaDE.js} +40 -40
  11. package/dist/{LoadingTrack-CV3ID80N.js → LoadingTrack-DsecR8Rw.js} +1 -1
  12. package/dist/MergeTagSuggestion-CH2SUxBo.js +1327 -0
  13. package/dist/{ModuleBrowserModal-DOsdaS6s.js → ModuleBrowserModal-D45rBj5C.js} +60 -59
  14. package/dist/{ModulePreviewCanvas-Cx4MOJ0X.js → ModulePreviewCanvas-BiQ6B2-l.js} +29 -29
  15. package/dist/{NumberWithSuffix-D2mW_DhT.js → NumberWithSuffix-CrA6quxx.js} +143 -142
  16. package/dist/{ParagraphEditor-DMzkVnST.js → ParagraphEditor-1NaUJpZO.js} +247 -246
  17. package/dist/{RichTextEditorContent-CRCxCwKf.js → RichTextEditorContent-BqLHIZY7.js} +45 -44
  18. package/dist/{SaveModuleDialog-DuEKgumL.js → SaveModuleDialog-B0sPOTgO.js} +38 -37
  19. package/dist/{SnapshotHistory-CVgiNJtE.js → SnapshotHistory-DslVzmSb.js} +34 -33
  20. package/dist/{TemplateScoringPanel-lm0_9nYi.js → TemplateScoringPanel-CZ62rGHz.js} +83 -82
  21. package/dist/{TestEmailModal-WBMdiW5S.js → TestEmailModal-DWGniJVu.js} +22 -21
  22. package/dist/{TitleEditor-eyT0h-Sa.js → TitleEditor-D4t_gZZJ.js} +44 -44
  23. package/dist/{TplModal-tjQ7OB0g.js → TplModal-Br2VG6cn.js} +14 -13
  24. package/dist/{blockTypeIcons-DdB3uTKD.js → blockTypeIcons-CXhCS5WV.js} +2 -2
  25. package/dist/bundle-stats.json +8 -8
  26. package/dist/cdn/chunks/{AiFeatureMenu-D7rB2SBs.js → AiFeatureMenu-3Slo_LGA.js} +5 -5
  27. package/dist/cdn/chunks/{AiFeatureMenu-D7rB2SBs.js.map → AiFeatureMenu-3Slo_LGA.js.map} +1 -1
  28. package/dist/cdn/chunks/{BlockIssueBadge-DHOe0pgx.js → BlockIssueBadge-BxwEiiF3.js} +3 -3
  29. package/dist/cdn/chunks/{BlockIssueBadge-DHOe0pgx.js.map → BlockIssueBadge-BxwEiiF3.js.map} +1 -1
  30. package/dist/cdn/chunks/{CloudEditor-DNed_Ym0.js → CloudEditor-DFIFWD9G.js} +89 -89
  31. package/dist/cdn/chunks/{CloudEditor-DNed_Ym0.js.map → CloudEditor-DFIFWD9G.js.map} +1 -1
  32. package/dist/cdn/chunks/{CollaboratorBar-sj_9Lee3.js → CollaboratorBar-Cu3vuN66.js} +4 -4
  33. package/dist/cdn/chunks/{CollaboratorBar-sj_9Lee3.js.map → CollaboratorBar-Cu3vuN66.js.map} +1 -1
  34. package/dist/cdn/chunks/{CountdownBlock-C1Ikjpn4.js → CountdownBlock-BEVAJQtQ.js} +3 -3
  35. package/dist/cdn/chunks/{CountdownBlock-C1Ikjpn4.js.map → CountdownBlock-BEVAJQtQ.js.map} +1 -1
  36. package/dist/cdn/chunks/{CountdownToolbar-j1G_X8rB.js → CountdownToolbar-CI2sQZv5.js} +4 -4
  37. package/dist/cdn/chunks/{CountdownToolbar-j1G_X8rB.js.map → CountdownToolbar-CI2sQZv5.js.map} +1 -1
  38. package/dist/cdn/chunks/{IssuesPanel-CTOf3PsH.js → IssuesPanel-BdeDoTcn.js} +4 -4
  39. package/dist/cdn/chunks/{IssuesPanel-CTOf3PsH.js.map → IssuesPanel-BdeDoTcn.js.map} +1 -1
  40. package/dist/cdn/chunks/MergeTagSuggestion-BsCAo4Co.js +213 -0
  41. package/dist/cdn/chunks/MergeTagSuggestion-BsCAo4Co.js.map +1 -0
  42. package/dist/cdn/chunks/{ModuleBrowserModal-DCh88-rr.js → ModuleBrowserModal-Dz-I5zfj.js} +6 -6
  43. package/dist/cdn/chunks/{ModuleBrowserModal-DCh88-rr.js.map → ModuleBrowserModal-Dz-I5zfj.js.map} +1 -1
  44. package/dist/cdn/chunks/{ModulePreviewCanvas-DJqvTKmg.js → ModulePreviewCanvas-BfinyuAN.js} +3 -3
  45. package/dist/cdn/chunks/{ModulePreviewCanvas-DJqvTKmg.js.map → ModulePreviewCanvas-BfinyuAN.js.map} +1 -1
  46. package/dist/cdn/chunks/{NumberWithSuffix-Bu45XWSl.js → NumberWithSuffix-CDjEa08X.js} +6 -6
  47. package/dist/cdn/chunks/{NumberWithSuffix-Bu45XWSl.js.map → NumberWithSuffix-CDjEa08X.js.map} +1 -1
  48. package/dist/cdn/chunks/{ParagraphEditor-DwZqLJp2.js → ParagraphEditor-B3fG0vge.js} +22 -22
  49. package/dist/cdn/chunks/{ParagraphEditor-DwZqLJp2.js.map → ParagraphEditor-B3fG0vge.js.map} +1 -1
  50. package/dist/cdn/chunks/{RichTextEditorContent-CIuZ-2DV.js → RichTextEditorContent-C6YPCp9j.js} +4 -4
  51. package/dist/cdn/chunks/{RichTextEditorContent-CIuZ-2DV.js.map → RichTextEditorContent-C6YPCp9j.js.map} +1 -1
  52. package/dist/cdn/chunks/{SaveModuleDialog-Bep0X2s_.js → SaveModuleDialog-C6UIIVAM.js} +3 -3
  53. package/dist/cdn/chunks/{SaveModuleDialog-Bep0X2s_.js.map → SaveModuleDialog-C6UIIVAM.js.map} +1 -1
  54. package/dist/cdn/chunks/{TitleEditor-DO1-h3RY.js → TitleEditor-BiZbLYF1.js} +10 -10
  55. package/dist/cdn/chunks/{TitleEditor-DO1-h3RY.js.map → TitleEditor-BiZbLYF1.js.map} +1 -1
  56. package/dist/cdn/chunks/{blockTypeIcons-8o24HVJu.js → blockTypeIcons-BernVG06.js} +3 -3
  57. package/dist/cdn/chunks/{blockTypeIcons-8o24HVJu.js.map → blockTypeIcons-BernVG06.js.map} +1 -1
  58. package/dist/cdn/chunks/{draggable-kPCz_3zM.js → draggable-kG-D5Xsm.js} +6 -6
  59. package/dist/cdn/chunks/draggable-kG-D5Xsm.js.map +1 -0
  60. package/dist/cdn/chunks/extensions-Drp8UDc6.js +421 -0
  61. package/dist/cdn/chunks/extensions-Drp8UDc6.js.map +1 -0
  62. package/dist/cdn/chunks/{features-CkTMVylx.js → features-Dpczf9Su.js} +884 -835
  63. package/dist/cdn/chunks/features-Dpczf9Su.js.map +1 -0
  64. package/dist/cdn/chunks/{icons-9zjCuoJx.js → icons-CuxnJiGQ.js} +26 -26
  65. package/dist/cdn/chunks/{icons-9zjCuoJx.js.map → icons-CuxnJiGQ.js.map} +1 -1
  66. package/dist/cdn/chunks/{liquid.browser-DKKBzRQu.js → liquid.browser-BJOEu6Cg.js} +693 -678
  67. package/dist/cdn/chunks/liquid.browser-BJOEu6Cg.js.map +1 -0
  68. package/dist/cdn/chunks/{media-library-DMRIPx4g.js → media-library-CiYl_BO7.js} +33 -33
  69. package/dist/cdn/chunks/{media-library-DMRIPx4g.js.map → media-library-CiYl_BO7.js.map} +1 -1
  70. package/dist/cdn/chunks/{pusher-CdEqyLwF.js → pusher-CIwiKF8H.js} +4 -4
  71. package/dist/cdn/chunks/{pusher-CdEqyLwF.js.map → pusher-CIwiKF8H.js.map} +1 -1
  72. package/dist/cdn/chunks/{quality-CyeUgs_c.js → quality-CNjGxBG0.js} +112 -112
  73. package/dist/cdn/chunks/{quality-CyeUgs_c.js.map → quality-CNjGxBG0.js.map} +1 -1
  74. package/dist/cdn/chunks/{renderer-BIKUEKDD.js → renderer-CFkg8h-K.js} +20 -20
  75. package/dist/cdn/chunks/renderer-CFkg8h-K.js.map +1 -0
  76. package/dist/cdn/chunks/{src-pDy_imWG.js → src-DRpKu4Dy.js} +5 -5
  77. package/dist/cdn/chunks/{src-pDy_imWG.js.map → src-DRpKu4Dy.js.map} +1 -1
  78. package/dist/cdn/chunks/{styles-D4Bd3SCx.js → styles-B7wryV0l.js} +1484 -1344
  79. package/dist/cdn/chunks/styles-B7wryV0l.js.map +1 -0
  80. package/dist/cdn/chunks/{tiptap-BlLFFU3M.js → tiptap-DF9PEiqH.js} +6859 -6823
  81. package/dist/cdn/chunks/tiptap-DF9PEiqH.js.map +1 -0
  82. package/dist/cdn/editor.css +1 -1
  83. package/dist/cdn/editor.js +35 -35
  84. package/dist/cdn/editor.js.map +1 -1
  85. package/dist/{check-CYJwFmjy.js → check-rl7ok6uJ.js} +1 -1
  86. package/dist/{chevron-down-C5l-DzAA.js → chevron-down-BKe__NOD.js} +1 -1
  87. package/dist/{circle-alert-wf5HUFZY.js → circle-alert-C8xmpMsK.js} +1 -1
  88. package/dist/{clock-Bj0bQw-K.js → clock-BW4JuDCN.js} +1 -1
  89. package/dist/{cloud-CoFDm9YA.js → cloud-BQusL53H.js} +208 -208
  90. package/dist/createLucideIcon-Dx-EjR9r.js +43 -0
  91. package/dist/{dist-CLpPNKy9.js → dist-B5Sov3sS.js} +7 -7
  92. package/dist/dist-BEWiuOMi.js +251 -0
  93. package/dist/{dist-CrQZ_af9.js → dist-BFmE-7hB.js} +2 -2
  94. package/dist/{dist-U5vfDdYI.js → dist-BMoa33wT.js} +2 -2
  95. package/dist/{dist-BctFrpeA.js → dist-BibU4HNl.js} +74 -65
  96. package/dist/{dist-Dd3ibRZm.js → dist-BsCGIDSt.js} +103 -102
  97. package/dist/dist-CNLKj9wa.js +5 -0
  98. package/dist/{dist-BX3gGwL8.js → dist-CNXDNYQn.js} +728 -694
  99. package/dist/{dist-Bn703mnA.js → dist-COG3IdPK.js} +3 -3
  100. package/dist/{dist-B7w6xTU6.js → dist-CQZxDvFw.js} +3 -3
  101. package/dist/{dist-34OcyoK1.js → dist-CRsjOQM-.js} +2 -2
  102. package/dist/dist-CTT6WYJ6.js +134 -0
  103. package/dist/dist-Cqa6aeAJ.js +5 -0
  104. package/dist/{dist-ChMninLH.js → dist-SXJJ2v41.js} +2 -2
  105. package/dist/{dist-CyjyYg52.js → dist-itdjZraK.js} +28 -23
  106. package/dist/extensions-DwaZAqm6.js +423 -0
  107. package/dist/{image-up-x8-WXfsx.js → image-up-BwBCmQ4P.js} +1 -1
  108. package/dist/{info-RS_fGcGi.js → info-TCn7uWR5.js} +1 -1
  109. package/dist/{keys-DgYXDafq.js → keys-Cv8-8GsD.js} +1 -1
  110. package/dist/{liquid.browser-CVjP5Mex.js → liquid.browser-DZLtv26k.js} +692 -677
  111. package/dist/{list-checks-Bf7XdDyv.js → list-checks-CSrOWNgq.js} +1 -1
  112. package/dist/{loader-circle-CLZ0_FvW.js → loader-circle-BLmicnPG.js} +1 -1
  113. package/dist/{message-circle-B-1bN9ab.js → message-circle-C9hHMQCI.js} +1 -1
  114. package/dist/{refresh-cw-CWKWqJYG.js → refresh-cw-D1JQ1LNa.js} +1 -1
  115. package/dist/runtime-dom.esm-bundler-BzuoCyNp.js +523 -0
  116. package/dist/{scan-line-BtK5dEai.js → scan-line-DgijVq9y.js} +1 -1
  117. package/dist/{send-Cn1IUdzh.js → send-DjPdq69F.js} +1 -1
  118. package/dist/{shield-check-CrvMk4Ea.js → shield-check-Bqluu8FS.js} +1 -1
  119. package/dist/{sparkles-CgfjwvnG.js → sparkles-M4azPVSP.js} +1 -1
  120. package/dist/style.css +1 -1
  121. package/dist/styles-D7fQ7f_1.js +4164 -0
  122. package/dist/templatical-editor.js +127 -126
  123. package/dist/{text-align-start-C3r_Rnvy.js → text-align-start-CMya5pCQ.js} +11 -11
  124. package/dist/{trash-2-CjERg4x9.js → trash-2-C-81rkLS.js} +1 -1
  125. package/dist/{triangle-alert-Chkny574.js → triangle-alert-BuRWnynk.js} +1 -1
  126. package/dist/{upload-e5kDRkPb.js → upload-CWBIoLd4.js} +1 -1
  127. package/dist/{useAliveFlag-cUQj9rmB.js → useAliveFlag-CECL_OUb.js} +1 -1
  128. package/dist/{useCloudI18n-CYJKqXtI.js → useCloudI18n-AKCy98qD.js} +2 -2
  129. package/dist/{useEditorCore-8JxXDOA4.js → useEditorCore-vcWLdnjN.js} +1406 -1364
  130. package/dist/{useI18n-BWqM8i78.js → useI18n-C-TDeJBt.js} +2 -2
  131. package/dist/{useMergeTag-NHC4ylza.js → useMergeTag-DSrBY0-2.js} +5 -5
  132. package/dist/usePopoverRoot-DKUDnr55.js +8 -0
  133. package/dist/{vue.runtime.esm-bundler-BPa483TZ.js → vue.runtime.esm-bundler-l0XAqiyv.js} +626 -1147
  134. package/dist/{x-DiPIbccg.js → x-CQSvXnGR.js} +1 -1
  135. package/package.json +26 -26
  136. package/dist/CountdownBlock-DtAokAVw.js +0 -92
  137. package/dist/CountdownToolbar-Dtqgwy0g.js +0 -210
  138. package/dist/cdn/chunks/draggable-kPCz_3zM.js.map +0 -1
  139. package/dist/cdn/chunks/extensions-iwBXnEwq.js +0 -605
  140. package/dist/cdn/chunks/extensions-iwBXnEwq.js.map +0 -1
  141. package/dist/cdn/chunks/features-CkTMVylx.js.map +0 -1
  142. package/dist/cdn/chunks/liquid.browser-DKKBzRQu.js.map +0 -1
  143. package/dist/cdn/chunks/renderer-BIKUEKDD.js.map +0 -1
  144. package/dist/cdn/chunks/styles-D4Bd3SCx.js.map +0 -1
  145. package/dist/cdn/chunks/tiptap-BlLFFU3M.js.map +0 -1
  146. package/dist/createLucideIcon-Bad2kKE0.js +0 -43
  147. package/dist/dist-CADDCv0o.js +0 -5
  148. package/dist/dist-CGvz7vkq.js +0 -5
  149. package/dist/dist-DuCzdgDA.js +0 -382
  150. package/dist/extensions-J439b7y7.js +0 -1720
  151. package/dist/styles-BUwDOWd3.js +0 -4022
  152. package/dist/usePopoverRoot-B1sdY4es.js +0 -8
@@ -1,9 +1,10 @@
1
- import { A as e, B as t, F as n, I as r, T as i, _ as a, a as o, b as s, c, f as l, h as u, m as d, ot as f, p, rt as m, st as h, u as g, v as _, w as v } from "./vue.runtime.esm-bundler-BPa483TZ.js";
2
- import { I as y, P as b } from "./keys-DgYXDafq.js";
3
- import { t as x } from "./useI18n-BWqM8i78.js";
4
- import { t as S } from "./createLucideIcon-Bad2kKE0.js";
5
- import { t as C } from "./x-DiPIbccg.js";
6
- import { t as w } from "./usePopoverRoot-B1sdY4es.js";
1
+ import { C as e, Dt as t, N as n, O as r, Ot as i, P as a, _ as o, c as s, d as c, h as l, i as u, l as d, m as f, nt as p, u as m, x as h, z as g } from "./vue.runtime.esm-bundler-l0XAqiyv.js";
2
+ import { a as _, c as v } from "./runtime-dom.esm-bundler-BzuoCyNp.js";
3
+ import { I as y, P as b } from "./keys-Cv8-8GsD.js";
4
+ import { t as x } from "./useI18n-C-TDeJBt.js";
5
+ import { t as S } from "./createLucideIcon-Dx-EjR9r.js";
6
+ import { t as C } from "./x-CQSvXnGR.js";
7
+ import { t as w } from "./usePopoverRoot-DKUDnr55.js";
7
8
  var T = S("bold", [["path", {
8
9
  d: "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",
9
10
  key: "mg9rjx"
@@ -41,9 +42,9 @@ var T = S("bold", [["path", {
41
42
  }, j = ["aria-label"], M = { class: "tpl:p-5" }, N = { class: "tpl:mb-4 tpl:last:mb-0" }, P = {
42
43
  for: "tpl-link-dialog-url",
43
44
  class: "tpl:mb-1.5 tpl:block tpl:text-xs tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase"
44
- }, F = ["placeholder"], I = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-t tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:px-5 tpl:py-4" }, L = { class: "tpl:ml-auto tpl:flex tpl:gap-2" }, R = /* @__PURE__ */ s({
45
+ }, F = ["placeholder"], I = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-t tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:px-5 tpl:py-4" }, L = { class: "tpl:ml-auto tpl:flex tpl:gap-2" }, R = /* @__PURE__ */ o({
45
46
  __name: "RichTextLinkDialog",
46
- props: /*@__PURE__*/ i({
47
+ props: /*@__PURE__*/ e({
47
48
  visible: { type: Boolean },
48
49
  isEditingLink: { type: Boolean }
49
50
  }, {
@@ -52,63 +53,63 @@ var T = S("bold", [["path", {
52
53
  dialogRef: { required: !0 },
53
54
  dialogRefModifiers: {}
54
55
  }),
55
- emits: /*@__PURE__*/ i([
56
+ emits: /*@__PURE__*/ e([
56
57
  "close",
57
58
  "insert",
58
59
  "remove",
59
60
  "keydown"
60
61
  ], ["update:linkUrl", "update:dialogRef"]),
61
- setup(n, { emit: i }) {
62
- let a = r(n, "linkUrl"), s = r(n, "dialogRef"), S = i, T = v(b, null), E = v(y, null), D = w(), { t: R } = x();
63
- return (r, i) => m(D) ? (e(), p(g, {
62
+ setup(e, { emit: n }) {
63
+ let o = a(e, "linkUrl"), f = a(e, "dialogRef"), S = n, T = h(b, null), E = h(y, null), D = w(), { t: R } = x();
64
+ return (n, a) => p(D) ? (r(), d(u, {
64
65
  key: 0,
65
- to: m(D)
66
- }, [n.visible ? (e(), u("div", {
66
+ to: p(D)
67
+ }, [e.visible ? (r(), c("div", {
67
68
  key: 0,
68
- "data-tpl-theme": m(E),
69
+ "data-tpl-theme": p(E),
69
70
  class: "tpl tpl-link-dialog tpl:fixed tpl:inset-0 tpl:z-modal tpl:flex tpl:items-center tpl:justify-center",
70
- style: f(m(T)),
71
- onClick: i[6] ||= c((e) => S("close"), ["self"])
72
- }, [l("div", {
73
- ref: (e) => s.value = e,
71
+ style: t(p(T)),
72
+ onClick: a[6] ||= v((e) => S("close"), ["self"])
73
+ }, [s("div", {
74
+ ref: (e) => f.value = e,
74
75
  role: "dialog",
75
76
  "aria-modal": "true",
76
77
  "aria-labelledby": "tpl-link-dialog-title",
77
78
  class: "tpl:w-[400px] tpl:overflow-hidden tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:shadow-lg"
78
79
  }, [
79
- l("div", k, [l("h4", A, h(n.isEditingLink ? m(R).linkDialog.editLink : m(R).linkDialog.insertLink), 1), l("button", {
80
+ s("div", k, [s("h4", A, i(e.isEditingLink ? p(R).linkDialog.editLink : p(R).linkDialog.insertLink), 1), s("button", {
80
81
  type: "button",
81
- "aria-label": m(R).linkDialog.cancel,
82
+ "aria-label": p(R).linkDialog.cancel,
82
83
  class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-[var(--tpl-text-muted)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
83
- onClick: i[0] ||= (e) => S("close")
84
- }, [_(m(C), {
84
+ onClick: a[0] ||= (e) => S("close")
85
+ }, [l(p(C), {
85
86
  size: 16,
86
87
  "stroke-width": 2
87
88
  })], 8, j)]),
88
- l("div", M, [l("div", N, [l("label", P, h(m(R).linkDialog.urlLabel), 1), t(l("input", {
89
+ s("div", M, [s("div", N, [s("label", P, i(p(R).linkDialog.urlLabel), 1), g(s("input", {
89
90
  id: "tpl-link-dialog-url",
90
- "onUpdate:modelValue": i[1] ||= (e) => a.value = e,
91
+ "onUpdate:modelValue": a[1] ||= (e) => o.value = e,
91
92
  type: "url",
92
93
  class: "tpl:w-full tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2.5 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:transition-all tpl:duration-150 tpl:outline-none tpl:placeholder:text-[var(--tpl-text-dim)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]",
93
- placeholder: m(R).linkDialog.urlPlaceholder,
94
+ placeholder: p(R).linkDialog.urlPlaceholder,
94
95
  autofocus: "",
95
- onKeydown: i[2] ||= (e) => S("keydown", e)
96
- }, null, 40, F), [[o, a.value]])])]),
97
- l("div", I, [n.isEditingLink ? (e(), u("button", {
96
+ onKeydown: a[2] ||= (e) => S("keydown", e)
97
+ }, null, 40, F), [[_, o.value]])])]),
98
+ s("div", I, [e.isEditingLink ? (r(), c("button", {
98
99
  key: 0,
99
100
  type: "button",
100
101
  class: "tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-danger)] tpl:bg-transparent tpl:px-4 tpl:py-2 tpl:text-[13px] tpl:font-medium tpl:text-[var(--tpl-danger)] tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-danger-light)]",
101
- onClick: i[3] ||= (e) => S("remove")
102
- }, h(m(R).linkDialog.removeLink), 1)) : d("", !0), l("div", L, [l("button", {
102
+ onClick: a[3] ||= (e) => S("remove")
103
+ }, i(p(R).linkDialog.removeLink), 1)) : m("", !0), s("div", L, [s("button", {
103
104
  type: "button",
104
105
  class: "tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-transparent tpl:px-4 tpl:py-2 tpl:text-[13px] tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
105
- onClick: i[4] ||= (e) => S("close")
106
- }, h(m(R).linkDialog.cancel), 1), l("button", {
106
+ onClick: a[4] ||= (e) => S("close")
107
+ }, i(p(R).linkDialog.cancel), 1), s("button", {
107
108
  type: "button",
108
109
  class: "tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:rounded-md tpl:border-none tpl:bg-[var(--tpl-primary)] tpl:px-4 tpl:py-2 tpl:text-[13px] tpl:font-medium tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-primary-hover)] tpl:text-[var(--tpl-bg)]",
109
- onClick: i[5] ||= (e) => S("insert")
110
- }, h(n.isEditingLink ? m(R).linkDialog.updateLink : m(R).linkDialog.insertLink), 1)])])
111
- ], 512)], 12, O)) : d("", !0)], 8, ["to"])) : d("", !0);
110
+ onClick: a[5] ||= (e) => S("insert")
111
+ }, i(e.isEditingLink ? p(R).linkDialog.updateLink : p(R).linkDialog.insertLink), 1)])])
112
+ ], 512)], 12, O)) : m("", !0)], 8, ["to"])) : m("", !0);
112
113
  }
113
114
  }), z = {
114
115
  key: 0,
@@ -116,7 +117,7 @@ var T = S("bold", [["path", {
116
117
  }, B = { class: "tpl:animate-pulse tpl:text-[var(--tpl-text-dim)]" }, V = {
117
118
  key: 1,
118
119
  class: "tpl-text-editable tpl:min-h-[1.5em] tpl:rounded tpl:border tpl:border-dashed tpl:p-2 tpl:text-center tpl:text-xs tpl:border-[var(--tpl-danger)] tpl:text-[var(--tpl-text-muted)]"
119
- }, H = /* @__PURE__ */ s({
120
+ }, H = /* @__PURE__ */ o({
120
121
  __name: "RichTextEditorContent",
121
122
  props: {
122
123
  editor: {},
@@ -125,16 +126,16 @@ var T = S("bold", [["path", {
125
126
  initError: {}
126
127
  },
127
128
  emits: ["retry"],
128
- setup(t, { emit: r }) {
129
- let i = r, { t: o } = x();
130
- return (r, s) => t.isLoading ? (e(), u("div", z, [l("div", B, h(m(o).errors.editorLoading), 1)])) : t.initError ? (e(), u("div", V, [a(h(m(o).errors.editorLoadFailed) + " ", 1), l("button", {
129
+ setup(e, { emit: t }) {
130
+ let a = t, { t: o } = x();
131
+ return (t, l) => e.isLoading ? (r(), c("div", z, [s("div", B, i(p(o).errors.editorLoading), 1)])) : e.initError ? (r(), c("div", V, [f(i(p(o).errors.editorLoadFailed) + " ", 1), s("button", {
131
132
  class: "tpl:ml-1 tpl:cursor-pointer tpl:border-none tpl:bg-transparent tpl:p-0 tpl:underline tpl:text-[var(--tpl-primary)]",
132
- onClick: s[0] ||= (e) => i("retry")
133
- }, h(m(o).errors.retry), 1)])) : t.editorContent && t.editor ? (e(), p(n(t.editorContent), {
133
+ onClick: l[0] ||= (e) => a("retry")
134
+ }, i(p(o).errors.retry), 1)])) : e.editorContent && e.editor ? (r(), d(n(e.editorContent), {
134
135
  key: 2,
135
- editor: t.editor,
136
+ editor: e.editor,
136
137
  class: "tpl-text-editable tpl:min-h-[1.5em] tpl:rounded tpl:border tpl:border-dashed tpl:border-[var(--tpl-primary)] tpl:p-2"
137
- }, null, 8, ["editor"])) : d("", !0);
138
+ }, null, 8, ["editor"])) : m("", !0);
138
139
  }
139
140
  });
140
141
  //#endregion
@@ -1,26 +1,27 @@
1
- import { A as e, B as t, L as n, M as r, X as i, _ as a, a as o, at as s, b as c, d as l, f as u, h as d, l as ee, m as f, ot as p, p as m, rt as h, st as g, v as _, z as v } from "./vue.runtime.esm-bundler-BPa483TZ.js";
2
- import "./useEditorCore-8JxXDOA4.js";
3
- import { L as y, j as b, m as x } from "./keys-DgYXDafq.js";
4
- import { t as S } from "./useI18n-BWqM8i78.js";
5
- import { t as te } from "./loader-circle-CLZ0_FvW.js";
6
- import { n as ne } from "./useCloudI18n-CYJKqXtI.js";
7
- import { t as C } from "./TplModal-tjQ7OB0g.js";
1
+ import { A as e, Dt as t, Et as n, I as r, O as i, Ot as a, R as o, Y as s, _ as c, c as l, d as u, h as d, l as f, m as p, nt as m, r as h, s as g, u as ee, z as _ } from "./vue.runtime.esm-bundler-l0XAqiyv.js";
2
+ import { a as v } from "./runtime-dom.esm-bundler-BzuoCyNp.js";
3
+ import "./useEditorCore-vcWLdnjN.js";
4
+ import { L as y, j as b, m as x } from "./keys-Cv8-8GsD.js";
5
+ import { t as S } from "./useI18n-C-TDeJBt.js";
6
+ import { t as te } from "./loader-circle-BLmicnPG.js";
7
+ import { n as ne } from "./useCloudI18n-AKCy98qD.js";
8
+ import { t as re } from "./TplModal-Br2VG6cn.js";
8
9
  //#region src/cloud/components/SaveModuleDialog.vue?vue&type=script&setup=true&lang.ts
9
- var w = ["aria-busy"], T = {
10
+ var C = ["aria-busy"], w = {
10
11
  id: "tpl-save-module-title",
11
12
  class: "tpl:mb-4 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
12
- }, E = { class: "tpl:mb-3" }, D = { class: "tpl:mb-1.5 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, O = ["placeholder", "disabled"], k = { class: "tpl:mb-3" }, A = { class: "tpl:mb-1.5 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, j = { class: "tpl:max-h-40 tpl:space-y-1 tpl:overflow-y-auto tpl:rounded-md tpl:border tpl:p-2 tpl:border-[var(--tpl-border)]" }, M = [
13
+ }, T = { class: "tpl:mb-3" }, E = { class: "tpl:mb-1.5 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, D = ["placeholder", "disabled"], O = { class: "tpl:mb-3" }, k = { class: "tpl:mb-1.5 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, A = { class: "tpl:max-h-40 tpl:space-y-1 tpl:overflow-y-auto tpl:rounded-md tpl:border tpl:p-2 tpl:border-[var(--tpl-border)]" }, j = [
13
14
  "checked",
14
15
  "disabled",
15
16
  "onChange"
16
- ], N = {
17
+ ], M = {
17
18
  key: 0,
18
19
  role: "alert",
19
20
  class: "tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-danger)]"
20
- }, P = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, F = ["disabled"], I = ["disabled"], L = {
21
+ }, N = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, P = ["disabled"], F = ["disabled"], I = {
21
22
  key: 0,
22
23
  class: "tpl:flex tpl:items-center tpl:gap-1.5"
23
- }, re = { key: 1 }, R = /* @__PURE__ */ c({
24
+ }, L = { key: 1 }, R = /* @__PURE__ */ c({
24
25
  __name: "SaveModuleDialog",
25
26
  props: {
26
27
  visible: { type: Boolean },
@@ -28,19 +29,19 @@ var w = ["aria-busy"], T = {
28
29
  },
29
30
  emits: ["close", "saved"],
30
31
  setup(c, { emit: R }) {
31
- let z = c, B = R, { t: V } = S(), { t: H } = ne(), U = y(x, "SaveModuleDialog"), W = y(b, "SaveModuleDialog"), G = i(""), K = i(/* @__PURE__ */ new Set()), q = i(!1), J = i(null), Y = l(() => U.content.value.blocks);
32
+ let z = c, B = R, { t: V } = S(), { t: H } = ne(), U = y(x, "SaveModuleDialog"), W = y(b, "SaveModuleDialog"), G = s(""), K = s(/* @__PURE__ */ new Set()), q = s(!1), J = s(null), Y = g(() => U.content.value.blocks);
32
33
  function X(e, t) {
33
34
  let n = e.type;
34
35
  return `${V.blocks[n] ?? e.type} ${t + 1}`;
35
36
  }
36
- n(() => z.visible, (e) => {
37
+ r(() => z.visible, (e) => {
37
38
  e && (G.value = "", J.value = null, K.value = new Set(z.preSelectedBlockId ? [z.preSelectedBlockId] : []));
38
39
  });
39
40
  function ie(e) {
40
41
  let t = new Set(K.value);
41
42
  t.has(e) ? t.delete(e) : t.add(e), K.value = t;
42
43
  }
43
- let Z = l(() => G.value.trim().length > 0 && K.value.size > 0 && !q.value);
44
+ let Z = g(() => G.value.trim().length > 0 && K.value.size > 0 && !q.value);
44
45
  async function Q() {
45
46
  if (Z.value) {
46
47
  q.value = !0, J.value = null;
@@ -60,12 +61,12 @@ var w = ["aria-busy"], T = {
60
61
  function ae(e) {
61
62
  e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Q()), e.key === "Escape" && $();
62
63
  }
63
- return (n, i) => (e(), m(C, {
64
+ return (r, s) => (i(), f(re, {
64
65
  visible: c.visible,
65
66
  onClose: $,
66
67
  onKeydown: ae
67
68
  }, {
68
- default: v(() => [u("div", {
69
+ default: o(() => [l("div", {
69
70
  role: "dialog",
70
71
  "aria-modal": "true",
71
72
  "aria-busy": q.value,
@@ -76,45 +77,45 @@ var w = ["aria-busy"], T = {
76
77
  "box-shadow": "var(--tpl-shadow-xl)"
77
78
  }
78
79
  }, [
79
- u("h3", T, g(h(H).modules.saveAsModule), 1),
80
- u("div", E, [u("label", D, g(h(H).modules.moduleName), 1), t(u("input", {
81
- "onUpdate:modelValue": i[0] ||= (e) => G.value = e,
80
+ l("h3", w, a(m(H).modules.saveAsModule), 1),
81
+ l("div", T, [l("label", E, a(m(H).modules.moduleName), 1), _(l("input", {
82
+ "onUpdate:modelValue": s[0] ||= (e) => G.value = e,
82
83
  type: "text",
83
- placeholder: h(H).modules.moduleNamePlaceholder,
84
+ placeholder: m(H).modules.moduleNamePlaceholder,
84
85
  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)]",
85
86
  disabled: q.value
86
- }, null, 8, O), [[o, G.value]])]),
87
- u("div", k, [u("label", A, g(h(H).modules.selectBlocks), 1), u("div", j, [(e(!0), d(ee, null, r(Y.value, (t, n) => (e(), d("label", {
88
- key: t.id,
87
+ }, null, 8, D), [[v, G.value]])]),
88
+ l("div", O, [l("label", k, a(m(H).modules.selectBlocks), 1), l("div", A, [(i(!0), u(h, null, e(Y.value, (e, n) => (i(), u("label", {
89
+ key: e.id,
89
90
  class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:rounded-sm tpl:px-2 tpl:py-1.5 tpl:text-sm tpl:transition-colors tpl:duration-100",
90
- style: p({
91
+ style: t({
91
92
  color: "var(--tpl-text)",
92
- backgroundColor: K.value.has(t.id) ? "var(--tpl-primary-light)" : "transparent"
93
+ backgroundColor: K.value.has(e.id) ? "var(--tpl-primary-light)" : "transparent"
93
94
  })
94
- }, [u("input", {
95
+ }, [l("input", {
95
96
  type: "checkbox",
96
- checked: K.value.has(t.id),
97
+ checked: K.value.has(e.id),
97
98
  class: "tpl:accent-[var(--tpl-primary)]",
98
99
  disabled: q.value,
99
- onChange: (e) => ie(t.id)
100
- }, null, 40, M), a(" " + g(X(t, n)), 1)], 4))), 128))])]),
101
- J.value ? (e(), d("p", N, g(J.value), 1)) : f("", !0),
102
- u("div", P, [u("button", {
100
+ onChange: (t) => ie(e.id)
101
+ }, null, 40, j), p(" " + a(X(e, n)), 1)], 4))), 128))])]),
102
+ J.value ? (i(), u("p", M, a(J.value), 1)) : ee("", !0),
103
+ l("div", N, [l("button", {
103
104
  type: "button",
104
- class: s(["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": q.value }]),
105
+ class: n(["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": q.value }]),
105
106
  disabled: q.value,
106
107
  onClick: $
107
- }, g(h(H).modules.cancel), 11, F), u("button", {
108
+ }, a(m(H).modules.cancel), 11, P), l("button", {
108
109
  type: "button",
109
110
  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)]",
110
111
  disabled: !Z.value,
111
112
  onClick: Q
112
- }, [q.value ? (e(), d("span", L, [_(h(te), {
113
+ }, [q.value ? (i(), u("span", I, [d(m(te), {
113
114
  class: "tpl:animate-spin",
114
115
  size: 12,
115
116
  "stroke-width": 2
116
- }), a(" " + g(h(H).modules.saving), 1)])) : (e(), d("span", re, g(h(H).modules.save), 1))], 8, I)])
117
- ], 8, w)]),
117
+ }), p(" " + a(m(H).modules.saving), 1)])) : (i(), u("span", L, a(m(H).modules.save), 1))], 8, F)])
118
+ ], 8, C)]),
118
119
  _: 1
119
120
  }, 8, ["visible"]));
120
121
  }
@@ -1,12 +1,13 @@
1
- import { A as e, L as t, M as n, X as r, at as i, b as a, c as o, d as s, f as c, h as l, l as u, m as d, rt as f, st as p, t as m, v as h, z as g } from "./vue.runtime.esm-bundler-BPa483TZ.js";
2
- import "./useEditorCore-8JxXDOA4.js";
3
- import { t as _ } from "./dist-DuCzdgDA.js";
4
- import { t as v } from "./useI18n-BWqM8i78.js";
5
- import { t as y } from "./createLucideIcon-Bad2kKE0.js";
6
- import { t as b } from "./chevron-down-C5l-DzAA.js";
7
- import { t as x } from "./clock-Bj0bQw-K.js";
8
- import { t as S } from "./loader-circle-CLZ0_FvW.js";
9
- import { n as C } from "./useCloudI18n-CYJKqXtI.js";
1
+ import { A as e, Et as t, I as n, O as r, Ot as i, R as a, Y as o, _ as s, c, d as l, h as u, nt as d, r as f, s as p, u as m } from "./vue.runtime.esm-bundler-l0XAqiyv.js";
2
+ import { c as h, t as g } from "./runtime-dom.esm-bundler-BzuoCyNp.js";
3
+ import "./useEditorCore-vcWLdnjN.js";
4
+ import { t as _ } from "./dist-BEWiuOMi.js";
5
+ import { t as v } from "./useI18n-C-TDeJBt.js";
6
+ import { t as y } from "./createLucideIcon-Dx-EjR9r.js";
7
+ import { t as b } from "./chevron-down-BKe__NOD.js";
8
+ import { t as x } from "./clock-BW4JuDCN.js";
9
+ import { t as S } from "./loader-circle-BLmicnPG.js";
10
+ import { n as C } from "./useCloudI18n-AKCy98qD.js";
10
11
  import { t as w } from "./formatRelativeTime-CtUU-QZ8.js";
11
12
  var T = y("chevron-left", [["path", {
12
13
  d: "m15 18-6-6 6-6",
@@ -33,7 +34,7 @@ var T = y("chevron-left", [["path", {
33
34
  }, P = ["disabled", "onClick"], F = { class: "tpl:flex tpl:flex-col tpl:gap-0.5" }, I = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, L = {
34
35
  key: 0,
35
36
  class: "tpl:rounded tpl:px-1 tpl:py-0.5 tpl:text-[10px] tpl:font-normal tpl:bg-[var(--tpl-bg-active)] tpl:text-[var(--tpl-text-muted)]"
36
- }, R = ["disabled", "title"], z = /* @__PURE__ */ a({
37
+ }, R = ["disabled", "title"], z = /* @__PURE__ */ s({
37
38
  __name: "SnapshotHistory",
38
39
  props: {
39
40
  snapshots: {},
@@ -41,12 +42,12 @@ var T = y("chevron-left", [["path", {
41
42
  isRestoring: { type: Boolean }
42
43
  },
43
44
  emits: ["load", "navigate"],
44
- setup(a, { emit: y }) {
45
- let z = a, B = y, { format: V } = v(), { t: H } = C(), U = r(!1), W = r(null), G = r(-1);
46
- t(() => z.snapshots.length, () => {
45
+ setup(s, { emit: y }) {
46
+ let z = s, B = y, { format: V } = v(), { t: H } = C(), U = o(!1), W = o(null), G = o(-1);
47
+ n(() => z.snapshots.length, () => {
47
48
  G.value = -1;
48
49
  });
49
- let K = s(() => G.value > 0 && z.snapshots.length > 0 && !z.isRestoring), q = s(() => G.value < z.snapshots.length - 1 && z.snapshots.length > 0 && !z.isRestoring);
50
+ let K = p(() => G.value > 0 && z.snapshots.length > 0 && !z.isRestoring), q = p(() => G.value < z.snapshots.length - 1 && z.snapshots.length > 0 && !z.isRestoring);
50
51
  function J() {
51
52
  K.value && (G.value--, B("navigate", z.snapshots[G.value]));
52
53
  }
@@ -71,7 +72,7 @@ var T = y("chevron-left", [["path", {
71
72
  }
72
73
  return _(W, () => {
73
74
  U.value = !1;
74
- }), (t, r) => (e(), l("div", {
75
+ }), (n, o) => (r(), l("div", {
75
76
  ref_key: "dropdownRef",
76
77
  ref: W,
77
78
  class: "tpl:relative tpl:flex tpl:items-center tpl:gap-0.5"
@@ -79,44 +80,44 @@ var T = y("chevron-left", [["path", {
79
80
  c("button", {
80
81
  class: "tpl:flex tpl:size-7 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:transition-colors tpl:duration-150 hover:tpl:bg-[var(--tpl-bg-hover)] disabled:tpl:cursor-not-allowed disabled:tpl:opacity-30 disabled:hover:tpl:bg-transparent tpl:text-[var(--tpl-text-muted)]",
81
82
  disabled: !q.value,
82
- title: f(H).snapshotHistory.olderSnapshot,
83
- onClick: o(Y, ["stop"])
84
- }, [h(f(T), {
83
+ title: d(H).snapshotHistory.olderSnapshot,
84
+ onClick: h(Y, ["stop"])
85
+ }, [u(d(T), {
85
86
  size: 14,
86
87
  "stroke-width": 2
87
88
  })], 8, D),
88
89
  c("button", {
89
90
  class: "tpl:flex tpl:h-7 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:gap-0.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-1.5 tpl:transition-colors tpl:duration-150 hover:tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]",
90
- title: f(H).snapshotHistory.tooltip,
91
- onClick: o(X, ["stop"])
92
- }, [h(f(x), {
91
+ title: d(H).snapshotHistory.tooltip,
92
+ onClick: h(X, ["stop"])
93
+ }, [u(d(x), {
93
94
  size: 16,
94
95
  "stroke-width": 1.5
95
- }), h(f(b), {
96
- class: i(["tpl:transition-transform tpl:duration-150", { "tpl:rotate-180": U.value }]),
96
+ }), u(d(b), {
97
+ class: t(["tpl:transition-transform tpl:duration-150", { "tpl:rotate-180": U.value }]),
97
98
  size: 10,
98
99
  "stroke-width": 2
99
100
  }, null, 8, ["class"])], 8, O),
100
- h(m, { name: "tpl-dropdown" }, {
101
- default: g(() => [U.value ? (e(), l("div", k, [c("div", A, p(f(H).snapshotHistory.dropdownTitle), 1), a.isLoading ? (e(), l("div", j, [h(f(S), {
101
+ u(g, { name: "tpl-dropdown" }, {
102
+ default: a(() => [U.value ? (r(), l("div", k, [c("div", A, i(d(H).snapshotHistory.dropdownTitle), 1), s.isLoading ? (r(), l("div", j, [u(d(S), {
102
103
  class: "tpl:animate-spin tpl:text-[var(--tpl-primary)]",
103
104
  size: 20,
104
105
  "stroke-width": 2
105
- })])) : a.snapshots.length === 0 ? (e(), l("div", M, p(f(H).snapshotHistory.noSnapshots), 1)) : (e(), l("div", N, [(e(!0), l(u, null, n(a.snapshots, (t) => (e(), l("button", {
106
- key: t.id,
106
+ })])) : s.snapshots.length === 0 ? (r(), l("div", M, i(d(H).snapshotHistory.noSnapshots), 1)) : (r(), l("div", N, [(r(!0), l(f, null, e(s.snapshots, (e) => (r(), l("button", {
107
+ key: e.id,
107
108
  class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:border-b tpl:border-b-[var(--tpl-border-light)] tpl:border-l-2 tpl:border-l-transparent tpl:px-3 tpl:py-2.5 tpl:text-left tpl:transition-all tpl:duration-150 last:tpl:border-b-0 hover:tpl:border-l-[var(--tpl-primary)] hover:tpl:bg-[var(--tpl-bg-hover)]",
108
109
  style: { "background-color": "transparent" },
109
- disabled: a.isRestoring,
110
- onClick: (e) => Z(t.id)
111
- }, [c("div", F, [c("div", I, [c("span", null, p(Q(t.created_at)), 1), t.is_autosave ? (e(), l("span", L, p(f(H).snapshotHistory.auto), 1)) : d("", !0)])])], 8, P))), 128))]))])) : d("", !0)]),
110
+ disabled: s.isRestoring,
111
+ onClick: (t) => Z(e.id)
112
+ }, [c("div", F, [c("div", I, [c("span", null, i(Q(e.created_at)), 1), e.is_autosave ? (r(), l("span", L, i(d(H).snapshotHistory.auto), 1)) : m("", !0)])])], 8, P))), 128))]))])) : m("", !0)]),
112
113
  _: 1
113
114
  }),
114
115
  c("button", {
115
116
  class: "tpl:flex tpl:size-7 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:transition-colors tpl:duration-150 hover:tpl:bg-[var(--tpl-bg-hover)] disabled:tpl:cursor-not-allowed disabled:tpl:opacity-30 disabled:hover:tpl:bg-transparent tpl:text-[var(--tpl-text-muted)]",
116
117
  disabled: !K.value,
117
- title: f(H).snapshotHistory.newerSnapshot,
118
- onClick: o(J, ["stop"])
119
- }, [h(f(E), {
118
+ title: d(H).snapshotHistory.newerSnapshot,
119
+ onClick: h(J, ["stop"])
120
+ }, [u(d(E), {
120
121
  size: 14,
121
122
  "stroke-width": 2
122
123
  })], 8, R)