@templatical/editor 0.0.6 → 0.1.1

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 (159) hide show
  1. package/LICENSE +56 -0
  2. package/README.md +69 -0
  3. package/dist/{AiChatSidebar-CNhSl_ty.js → AiChatSidebar-DgAjDWO1.js} +68 -68
  4. package/dist/{AiFeatureMenu-BFVsjUJY.js → AiFeatureMenu-j6oaiRVi.js} +25 -25
  5. package/dist/{CloudEditor-Bz5Xkxej.js → CloudEditor-yCOkIkZ-.js} +428 -437
  6. package/dist/{CollaboratorBar-D2Gu5Xj2.js → CollaboratorBar-CWVdp2Y6.js} +23 -23
  7. package/dist/CommentsSidebar-CSPHhbQH.js +439 -0
  8. package/dist/CountdownBlock-DK6P_RaQ.js +92 -0
  9. package/dist/CountdownToolbar-Dv-Sz4ui.js +210 -0
  10. package/dist/{DesignReferenceSidebar-u2tKSQK0.js → DesignReferenceSidebar-D7zfvux6.js} +58 -58
  11. package/dist/LoadingTrack-Cdz2SSq9.js +10 -0
  12. package/dist/ModuleBrowserModal-BLYuCZht.js +205 -0
  13. package/dist/ModulePreviewCanvas-CHYqP6K3.js +106 -0
  14. package/dist/NumberWithSuffix-D-5-AZc3.js +424 -0
  15. package/dist/{ParagraphEditor-CYrzYJO5.js → ParagraphEditor-DivLBNWv.js} +237 -236
  16. package/dist/{RichTextEditorContent-BeqlWlWB.js → RichTextEditorContent-G1lXgVJR.js} +42 -42
  17. package/dist/{SaveModuleDialog-Kde6X13X.js → SaveModuleDialog-DGVfiOmE.js} +29 -29
  18. package/dist/{SnapshotHistory-B3EfIcLW.js → SnapshotHistory-DM__MqSu.js} +38 -38
  19. package/dist/{TemplateScoringPanel-D2vCRGgx.js → TemplateScoringPanel-CW13Tlol.js} +80 -80
  20. package/dist/{TestEmailModal-Egk0DFDf.js → TestEmailModal-B8bYqWCY.js} +28 -28
  21. package/dist/TitleEditor-4Jrp3C4m.js +167 -0
  22. package/dist/{TplModal-BCruYWks.js → TplModal-BkoIz0oz.js} +14 -14
  23. package/dist/{_plugin-vue_export-helper-5TQrnOhO.js → _plugin-vue_export-helper-OO6pH1Dh.js} +11 -11
  24. package/dist/{blockTypeIcons-rW4BUUNC.js → blockTypeIcons-4AS3CvXn.js} +2 -2
  25. package/dist/cdn/chunks/{AiFeatureMenu-Dcbshcfu.js → AiFeatureMenu-BcHyzTQy.js} +4 -4
  26. package/dist/cdn/chunks/{AiFeatureMenu-Dcbshcfu.js.map → AiFeatureMenu-BcHyzTQy.js.map} +1 -1
  27. package/dist/cdn/chunks/{CloudEditor-Bca3RyBW.js → CloudEditor-TaEZq-YW.js} +179 -188
  28. package/dist/cdn/chunks/CloudEditor-TaEZq-YW.js.map +1 -0
  29. package/dist/cdn/chunks/{CollaboratorBar-sToKJfHi.js → CollaboratorBar-DbC5-3If.js} +4 -4
  30. package/dist/cdn/chunks/{CollaboratorBar-sToKJfHi.js.map → CollaboratorBar-DbC5-3If.js.map} +1 -1
  31. package/dist/cdn/chunks/CountdownBlock-CfPmCQ7j.js +93 -0
  32. package/dist/cdn/chunks/CountdownBlock-CfPmCQ7j.js.map +1 -0
  33. package/dist/cdn/chunks/CountdownToolbar-CB0EVxwN.js +212 -0
  34. package/dist/cdn/chunks/CountdownToolbar-CB0EVxwN.js.map +1 -0
  35. package/dist/cdn/chunks/{ModuleBrowserModal-BNhwXbWw.js → ModuleBrowserModal-Df2fp9dj.js} +7 -7
  36. package/dist/cdn/chunks/{ModuleBrowserModal-BNhwXbWw.js.map → ModuleBrowserModal-Df2fp9dj.js.map} +1 -1
  37. package/dist/cdn/chunks/{ModulePreviewCanvas-DylUylPU.js → ModulePreviewCanvas-Dw1OCpvV.js} +19 -19
  38. package/dist/cdn/chunks/{ModulePreviewCanvas-DylUylPU.js.map → ModulePreviewCanvas-Dw1OCpvV.js.map} +1 -1
  39. package/dist/cdn/chunks/NumberWithSuffix-BU6ycXyG.js +425 -0
  40. package/dist/cdn/chunks/NumberWithSuffix-BU6ycXyG.js.map +1 -0
  41. package/dist/cdn/chunks/{ParagraphEditor-BBw90y_p.js → ParagraphEditor-BMRNg_BX.js} +37 -37
  42. package/dist/cdn/chunks/{ParagraphEditor-BBw90y_p.js.map → ParagraphEditor-BMRNg_BX.js.map} +1 -1
  43. package/dist/cdn/chunks/{RichTextEditorContent-DvyIO3nR.js → RichTextEditorContent-BKYY1YMZ.js} +5 -5
  44. package/dist/cdn/chunks/{RichTextEditorContent-DvyIO3nR.js.map → RichTextEditorContent-BKYY1YMZ.js.map} +1 -1
  45. package/dist/cdn/chunks/{SaveModuleDialog-DvbSHvhF.js → SaveModuleDialog-D977Tg7t.js} +5 -5
  46. package/dist/cdn/chunks/{SaveModuleDialog-DvbSHvhF.js.map → SaveModuleDialog-D977Tg7t.js.map} +1 -1
  47. package/dist/cdn/chunks/{TitleEditor-tS3mgoVr.js → TitleEditor-q9IzNy38.js} +11 -11
  48. package/dist/cdn/chunks/{TitleEditor-tS3mgoVr.js.map → TitleEditor-q9IzNy38.js.map} +1 -1
  49. package/dist/cdn/chunks/{blockTypeIcons-DbnbyEQE.js → blockTypeIcons-L0fRc3qs.js} +3 -3
  50. package/dist/cdn/chunks/{blockTypeIcons-DbnbyEQE.js.map → blockTypeIcons-L0fRc3qs.js.map} +1 -1
  51. package/dist/cdn/chunks/{de-CgUR_S5I.js → de-3exf7MYE.js} +1 -1
  52. package/dist/cdn/chunks/{de-CgUR_S5I.js.map → de-3exf7MYE.js.map} +1 -1
  53. package/dist/cdn/chunks/{de-D8oDPhBD.js → de-C8LxVUsb.js} +1 -1
  54. package/dist/cdn/chunks/{de-D8oDPhBD.js.map → de-C8LxVUsb.js.map} +1 -1
  55. package/dist/cdn/chunks/{dist-BUmN5e4r.js → dist-D5g00M8N.js} +6 -2
  56. package/dist/cdn/chunks/dist-D5g00M8N.js.map +1 -0
  57. package/dist/cdn/chunks/{draggable-m78lz0gI.js → draggable-Bcb86AsV.js} +5 -5
  58. package/dist/cdn/chunks/draggable-Bcb86AsV.js.map +1 -0
  59. package/dist/cdn/chunks/{emojiData-CNNgvDqx.js → emojiData-DUHzsh4j.js} +1 -1
  60. package/dist/cdn/chunks/{emojiData-CNNgvDqx.js.map → emojiData-DUHzsh4j.js.map} +1 -1
  61. package/dist/cdn/chunks/{en-HseRPPeK.js → en-BoEycuqw.js} +1 -1
  62. package/dist/cdn/chunks/{en-HseRPPeK.js.map → en-BoEycuqw.js.map} +1 -1
  63. package/dist/cdn/chunks/{en-BBmfBDqY.js → en-KNPUKxYp.js} +1 -1
  64. package/dist/cdn/chunks/{en-BBmfBDqY.js.map → en-KNPUKxYp.js.map} +1 -1
  65. package/dist/cdn/chunks/{extensions-ClpY3m0W.js → extensions-BZ1POyiv.js} +11 -11
  66. package/dist/cdn/chunks/{extensions-ClpY3m0W.js.map → extensions-BZ1POyiv.js.map} +1 -1
  67. package/dist/cdn/chunks/{features-B5dGxWLi.js → features-Ccqmm6-M.js} +549 -627
  68. package/dist/cdn/chunks/features-Ccqmm6-M.js.map +1 -0
  69. package/dist/cdn/chunks/{icons-hflTyPmb.js → icons-x53__2GC.js} +8 -8
  70. package/dist/cdn/chunks/icons-x53__2GC.js.map +1 -0
  71. package/dist/cdn/chunks/{liquid.browser-BxyRVCKv.js → liquid.browser-CEMn-ZqL.js} +2 -2
  72. package/dist/cdn/chunks/liquid.browser-CEMn-ZqL.js.map +1 -0
  73. package/dist/cdn/chunks/{media-library-Dgy-V-JA.js → media-library-DUoQk-w7.js} +97 -97
  74. package/dist/cdn/chunks/media-library-DUoQk-w7.js.map +1 -0
  75. package/dist/cdn/chunks/{pusher-D-m2WSdL.js → pusher-DwSQn6BA.js} +2 -2
  76. package/dist/cdn/chunks/pusher-DwSQn6BA.js.map +1 -0
  77. package/dist/cdn/chunks/{src-TDwMmqm0.js → src-DskCIAr8.js} +8 -8
  78. package/dist/cdn/chunks/{src-TDwMmqm0.js.map → src-DskCIAr8.js.map} +1 -1
  79. package/dist/cdn/chunks/{styleConstants-DFe3I4Op.js → styleConstants-DP1VOca8.js} +1 -1
  80. package/dist/cdn/chunks/{styleConstants-DFe3I4Op.js.map → styleConstants-DP1VOca8.js.map} +1 -1
  81. package/dist/cdn/chunks/{styles-hCOCOR6K.js → styles-BIlpNe52.js} +622 -1238
  82. package/dist/cdn/chunks/styles-BIlpNe52.js.map +1 -0
  83. package/dist/cdn/chunks/{tiptap-C28NLMX8.js → tiptap-hPC_BgDO.js} +850 -826
  84. package/dist/cdn/chunks/tiptap-hPC_BgDO.js.map +1 -0
  85. package/dist/cdn/editor.css +1 -1
  86. package/dist/cdn/editor.js +92 -97
  87. package/dist/cdn/editor.js.map +1 -1
  88. package/dist/{check-B5S-C0bz.js → check-Bff5NzCh.js} +1 -1
  89. package/dist/{chevron-down-CjsV1T0W.js → chevron-down-Bbv4SJwx.js} +1 -1
  90. package/dist/{circle-alert-CVTmJHKW.js → circle-alert-Dpr8MgkR.js} +1 -1
  91. package/dist/{clock-CAjdSHBy.js → clock-raVPKfl4.js} +1 -1
  92. package/dist/{dist-DJrDTuRr.js → dist-BHgEdO-M.js} +1001 -983
  93. package/dist/dist-BibwE8Y0.js +5 -0
  94. package/dist/{dist-DPM-DFvh.js → dist-BnlZ_HwX.js} +340 -340
  95. package/dist/{dist-BTtKPcd2.js → dist-C9yhcxsf.js} +2 -2
  96. package/dist/{dist-COguaIvm.js → dist-CGffNO8z.js} +2 -2
  97. package/dist/dist-CfGpCUSx.js +5 -0
  98. package/dist/{dist-COOFiBFV.js → dist-Chd-H2S3.js} +5 -5
  99. package/dist/{dist-DfqLGwSF.js → dist-Cq0OFLMj.js} +2 -2
  100. package/dist/{dist-B4LTlrAn.js → dist-D42og5Sc.js} +191 -185
  101. package/dist/{dist-CBr-qhie.js → dist-Owxo48fF.js} +2 -2
  102. package/dist/{dist-Crqkuf-w.js → dist-UZ8UzVZ-.js} +15 -15
  103. package/dist/dist-n0PkFNGl.js +314 -0
  104. package/dist/{dist-DHYuVJ_7.js → dist-skgH9dyo.js} +2 -2
  105. package/dist/{extensions-C6xp_B7K.js → extensions-DQKaICBH.js} +81 -81
  106. package/dist/{image-up-vZa1Txr-.js → image-up-B1AEiHCh.js} +1 -1
  107. package/dist/index.d.ts +17 -6
  108. package/dist/{keys-C0MQRs8d.js → keys-CIw9mUI2.js} +1 -1
  109. package/dist/{liquid.browser-C02owkex.js → liquid.browser-Bm53dnK1.js} +1 -1
  110. package/dist/{loader-circle-DilFjHSk.js → loader-circle-BYeKJ3to.js} +1 -1
  111. package/dist/{message-circle-Dpcnc2oa.js → message-circle-PhNlI7e7.js} +1 -1
  112. package/dist/{refresh-cw-4r7rkHHX.js → refresh-cw-DhDYRBDd.js} +1 -1
  113. package/dist/{rolldown-runtime-gEudmnaM.js → rolldown-runtime-BZGGJVDF.js} +2 -5
  114. package/dist/{scan-line-684IxPQ0.js → scan-line-Bw8bauvt.js} +1 -1
  115. package/dist/{send-ChDw64yL.js → send-CJPSzbLO.js} +1 -1
  116. package/dist/{shield-check-9dhLdyST.js → shield-check-DdEvVYMH.js} +1 -1
  117. package/dist/{sparkles-Co9fkDcv.js → sparkles-DT_27AYs.js} +1 -1
  118. package/dist/style.css +2 -0
  119. package/dist/{styleConstants-RV3eYwkD.js → styleConstants-Dqz9z3aa.js} +6 -45
  120. package/dist/styles-tcwlvlEB.js +2942 -0
  121. package/dist/templatical-editor.js +114 -119
  122. package/dist/text-align-start-4Hx15GUf.js +43 -0
  123. package/dist/{trash-2-CZkMtjeC.js → trash-2-BY-xp5hg.js} +1 -1
  124. package/dist/{triangle-alert-Dvt51agD.js → triangle-alert-DG72vdb2.js} +1 -1
  125. package/dist/useEditorCore-DMH2QpUL.js +8946 -0
  126. package/dist/{useI18n-D6m7ZUgY.js → useI18n-B8CN2iWs.js} +4 -4
  127. package/dist/{useMergeTag-CSXcnFBc.js → useMergeTag-Dz_Dx2Jz.js} +3 -3
  128. package/dist/vue.runtime.esm-bundler-DryoQb-v.js +5775 -0
  129. package/dist/{x-CU2XZOkQ.js → x-D-7GkO6Z.js} +1 -1
  130. package/package.json +31 -15
  131. package/dist/CommentsSidebar-CTeEAZTj.js +0 -439
  132. package/dist/LoadingTrack--aUassFH.js +0 -10
  133. package/dist/ModuleBrowserModal-DNxODPlX.js +0 -205
  134. package/dist/ModulePreviewCanvas-DnGe1Y-2.js +0 -106
  135. package/dist/TitleEditor-DwUpo4gF.js +0 -167
  136. package/dist/cdn/chunks/CloudEditor-Bca3RyBW.js.map +0 -1
  137. package/dist/cdn/chunks/dist-BUmN5e4r.js.map +0 -1
  138. package/dist/cdn/chunks/draggable-m78lz0gI.js.map +0 -1
  139. package/dist/cdn/chunks/features-B5dGxWLi.js.map +0 -1
  140. package/dist/cdn/chunks/icons-hflTyPmb.js.map +0 -1
  141. package/dist/cdn/chunks/liquid.browser-BxyRVCKv.js.map +0 -1
  142. package/dist/cdn/chunks/media-library-Dgy-V-JA.js.map +0 -1
  143. package/dist/cdn/chunks/pusher-D-m2WSdL.js.map +0 -1
  144. package/dist/cdn/chunks/styles-hCOCOR6K.js.map +0 -1
  145. package/dist/cdn/chunks/tiptap-C28NLMX8.js.map +0 -1
  146. package/dist/dist-Ac4o1O4a.js +0 -314
  147. package/dist/dist-DEJZ9iAU.js +0 -5
  148. package/dist/dist-DmVOCJjI.js +0 -5
  149. package/dist/styles-nvxFh6L6.js +0 -3557
  150. package/dist/templatical-editor.css +0 -2
  151. package/dist/templatical-editor.umd.cjs +0 -178
  152. package/dist/useEditorCore-ColJh1ST.js +0 -5695
  153. /package/dist/cdn/chunks/{_rolldown_dynamic_import_helper-DMEI4TQ3.js → _rolldown_dynamic_import_helper-BRcA6nWq.js} +0 -0
  154. /package/dist/{de-Dh8ON-dm.js → de-CN0xu_Tp.js} +0 -0
  155. /package/dist/{emojiData-Qc8mH_zW.js → emojiData-CwKEDxVf.js} +0 -0
  156. /package/dist/{en-C7IShRSD.js → en-DXvHkaUF.js} +0 -0
  157. /package/dist/{formatRelativeTime-D8f6NR7i.js → formatRelativeTime-BSpx5DHC.js} +0 -0
  158. /package/dist/{readableTextColor-B809bF5J.js → readableTextColor-CYCxm1jQ.js} +0 -0
  159. /package/dist/{timeouts-CmBrLeZA.js → timeouts-BSGxjuUF.js} +0 -0
@@ -1,12 +1,12 @@
1
- import { S as e, w as t } from "./keys-C0MQRs8d.js";
2
- import { t as n } from "./useI18n-D6m7ZUgY.js";
3
- import { n as r } from "./_plugin-vue_export-helper-5TQrnOhO.js";
4
- import { t as i } from "./x-CU2XZOkQ.js";
5
- import { Teleport as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, inject as p, mergeModels as m, normalizeStyle as h, openBlock as g, resolveDynamicComponent as _, toDisplayString as v, unref as y, useModel as b, vModelText as x, withDirectives as S, withModifiers as C } from "vue";
6
- var w = r("bold", [["path", {
1
+ import { D as e, E as t, H as n, L as r, M as i, Ot as a, R as o, S as s, _ as c, b as l, f as u, g as d, h as f, m as p, s as m, tt as h, u as g, wt as _, y as v } from "./vue.runtime.esm-bundler-DryoQb-v.js";
2
+ import { S as y, w as b } from "./keys-CIw9mUI2.js";
3
+ import { t as x } from "./useI18n-B8CN2iWs.js";
4
+ import { n as S } from "./_plugin-vue_export-helper-OO6pH1Dh.js";
5
+ import { t as C } from "./x-D-7GkO6Z.js";
6
+ var w = S("bold", [["path", {
7
7
  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",
8
8
  key: "mg9rjx"
9
- }]]), T = r("italic", [
9
+ }]]), T = S("italic", [
10
10
  ["line", {
11
11
  x1: "19",
12
12
  x2: "10",
@@ -28,7 +28,7 @@ var w = r("bold", [["path", {
28
28
  y2: "20",
29
29
  key: "uljnxc"
30
30
  }]
31
- ]), E = r("link", [["path", {
31
+ ]), E = S("link", [["path", {
32
32
  d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",
33
33
  key: "1cjeqo"
34
34
  }], ["path", {
@@ -40,9 +40,9 @@ var w = r("bold", [["path", {
40
40
  }, A = ["aria-label"], j = { class: "tpl:p-5" }, M = { class: "tpl:mb-4 tpl:last:mb-0" }, N = {
41
41
  for: "tpl-link-dialog-url",
42
42
  class: "tpl:mb-1.5 tpl:block tpl:text-xs tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase"
43
- }, P = ["placeholder"], F = { 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" }, I = { class: "tpl:ml-auto tpl:flex tpl:gap-2" }, L = /* @__PURE__ */ f({
43
+ }, P = ["placeholder"], F = { 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" }, I = { class: "tpl:ml-auto tpl:flex tpl:gap-2" }, L = /* @__PURE__ */ s({
44
44
  __name: "RichTextLinkDialog",
45
- props: /* @__PURE__ */ m({
45
+ props: /* @__PURE__ */ e({
46
46
  visible: { type: Boolean },
47
47
  isEditingLink: { type: Boolean }
48
48
  }, {
@@ -51,60 +51,60 @@ var w = r("bold", [["path", {
51
51
  dialogRef: { required: !0 },
52
52
  dialogRefModifiers: {}
53
53
  }),
54
- emits: /* @__PURE__ */ m([
54
+ emits: /* @__PURE__ */ e([
55
55
  "close",
56
56
  "insert",
57
57
  "remove",
58
58
  "keydown"
59
59
  ], ["update:linkUrl", "update:dialogRef"]),
60
- setup(r, { emit: u }) {
61
- let f = b(r, "linkUrl"), m = b(r, "dialogRef"), _ = u, w = p(e, null), T = p(t, null), { t: E } = n();
62
- return (e, t) => (g(), o(a, { to: "body" }, [r.visible ? (g(), c("div", {
60
+ setup(e, { emit: r }) {
61
+ let s = o(e, "linkUrl"), v = o(e, "dialogRef"), S = r, w = t(y, null), T = t(b, null), { t: E } = x();
62
+ return (t, r) => (i(), f(u, { to: "body" }, [e.visible ? (i(), c("div", {
63
63
  key: 0,
64
- "data-tpl-theme": y(T),
64
+ "data-tpl-theme": h(T),
65
65
  class: "tpl tpl-link-dialog tpl:fixed tpl:inset-0 tpl:z-modal tpl:flex tpl:items-center tpl:justify-center",
66
- style: h(y(w)),
67
- onClick: t[6] ||= C((e) => _("close"), ["self"])
68
- }, [l("div", {
69
- ref: (e) => m.value = e,
66
+ style: _(h(w)),
67
+ onClick: r[6] ||= g((e) => S("close"), ["self"])
68
+ }, [p("div", {
69
+ ref: (e) => v.value = e,
70
70
  role: "dialog",
71
71
  "aria-modal": "true",
72
72
  "aria-labelledby": "tpl-link-dialog-title",
73
73
  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"
74
74
  }, [
75
- l("div", O, [l("h4", k, v(r.isEditingLink ? y(E).linkDialog.editLink : y(E).linkDialog.insertLink), 1), l("button", {
75
+ p("div", O, [p("h4", k, a(e.isEditingLink ? h(E).linkDialog.editLink : h(E).linkDialog.insertLink), 1), p("button", {
76
76
  type: "button",
77
- "aria-label": y(E).linkDialog.cancel,
77
+ "aria-label": h(E).linkDialog.cancel,
78
78
  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)]",
79
- onClick: t[0] ||= (e) => _("close")
80
- }, [d(y(i), {
79
+ onClick: r[0] ||= (e) => S("close")
80
+ }, [l(h(C), {
81
81
  size: 16,
82
82
  "stroke-width": 2
83
83
  })], 8, A)]),
84
- l("div", j, [l("div", M, [l("label", N, v(y(E).linkDialog.urlLabel), 1), S(l("input", {
84
+ p("div", j, [p("div", M, [p("label", N, a(h(E).linkDialog.urlLabel), 1), n(p("input", {
85
85
  id: "tpl-link-dialog-url",
86
- "onUpdate:modelValue": t[1] ||= (e) => f.value = e,
86
+ "onUpdate:modelValue": r[1] ||= (e) => s.value = e,
87
87
  type: "url",
88
88
  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)]",
89
- placeholder: y(E).linkDialog.urlPlaceholder,
89
+ placeholder: h(E).linkDialog.urlPlaceholder,
90
90
  autofocus: "",
91
- onKeydown: t[2] ||= (e) => _("keydown", e)
92
- }, null, 40, P), [[x, f.value]])])]),
93
- l("div", F, [r.isEditingLink ? (g(), c("button", {
91
+ onKeydown: r[2] ||= (e) => S("keydown", e)
92
+ }, null, 40, P), [[m, s.value]])])]),
93
+ p("div", F, [e.isEditingLink ? (i(), c("button", {
94
94
  key: 0,
95
95
  type: "button",
96
96
  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)]",
97
- onClick: t[3] ||= (e) => _("remove")
98
- }, v(y(E).linkDialog.removeLink), 1)) : s("", !0), l("div", I, [l("button", {
97
+ onClick: r[3] ||= (e) => S("remove")
98
+ }, a(h(E).linkDialog.removeLink), 1)) : d("", !0), p("div", I, [p("button", {
99
99
  type: "button",
100
100
  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)]",
101
- onClick: t[4] ||= (e) => _("close")
102
- }, v(y(E).linkDialog.cancel), 1), l("button", {
101
+ onClick: r[4] ||= (e) => S("close")
102
+ }, a(h(E).linkDialog.cancel), 1), p("button", {
103
103
  type: "button",
104
104
  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)]",
105
- onClick: t[5] ||= (e) => _("insert")
106
- }, v(r.isEditingLink ? y(E).linkDialog.updateLink : y(E).linkDialog.insertLink), 1)])])
107
- ], 512)], 12, D)) : s("", !0)]));
105
+ onClick: r[5] ||= (e) => S("insert")
106
+ }, a(e.isEditingLink ? h(E).linkDialog.updateLink : h(E).linkDialog.insertLink), 1)])])
107
+ ], 512)], 12, D)) : d("", !0)]));
108
108
  }
109
109
  }), R = {
110
110
  key: 0,
@@ -112,7 +112,7 @@ var w = r("bold", [["path", {
112
112
  }, z = { class: "tpl:animate-pulse tpl:text-[var(--tpl-text-dim)]" }, B = {
113
113
  key: 1,
114
114
  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)]"
115
- }, V = /* @__PURE__ */ f({
115
+ }, V = /* @__PURE__ */ s({
116
116
  __name: "RichTextEditorContent",
117
117
  props: {
118
118
  editor: {},
@@ -122,15 +122,15 @@ var w = r("bold", [["path", {
122
122
  },
123
123
  emits: ["retry"],
124
124
  setup(e, { emit: t }) {
125
- let r = t, { t: i } = n();
126
- return (t, n) => e.isLoading ? (g(), c("div", R, [l("div", z, v(y(i).errors.editorLoading), 1)])) : e.initError ? (g(), c("div", B, [u(v(y(i).errors.editorLoadFailed) + " ", 1), l("button", {
125
+ let n = t, { t: o } = x();
126
+ return (t, s) => e.isLoading ? (i(), c("div", R, [p("div", z, a(h(o).errors.editorLoading), 1)])) : e.initError ? (i(), c("div", B, [v(a(h(o).errors.editorLoadFailed) + " ", 1), p("button", {
127
127
  class: "tpl:ml-1 tpl:cursor-pointer tpl:border-none tpl:bg-transparent tpl:p-0 tpl:underline tpl:text-[var(--tpl-primary)]",
128
- onClick: n[0] ||= (e) => r("retry")
129
- }, v(y(i).errors.retry), 1)])) : e.editorContent && e.editor ? (g(), o(_(e.editorContent), {
128
+ onClick: s[0] ||= (e) => n("retry")
129
+ }, a(h(o).errors.retry), 1)])) : e.editorContent && e.editor ? (i(), f(r(e.editorContent), {
130
130
  key: 2,
131
131
  editor: e.editor,
132
132
  class: "tpl-text-editable tpl:min-h-[1.5em] tpl:rounded tpl:border tpl:border-dashed tpl:border-[var(--tpl-primary)] tpl:p-2"
133
- }, null, 8, ["editor"])) : s("", !0);
133
+ }, null, 8, ["editor"])) : d("", !0);
134
134
  }
135
135
  });
136
136
  //#endregion
@@ -1,9 +1,9 @@
1
- import { T as e, b as t, f as n } from "./keys-C0MQRs8d.js";
2
- import { t as r } from "./useI18n-D6m7ZUgY.js";
3
- import "./useEditorCore-ColJh1ST.js";
4
- import { t as i } from "./loader-circle-DilFjHSk.js";
5
- import { t as a } from "./TplModal-BCruYWks.js";
6
- import { Fragment as o, computed as s, createBlock as c, createCommentVNode as ee, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, normalizeClass as m, normalizeStyle as h, openBlock as g, ref as _, renderList as v, toDisplayString as y, unref as b, vModelText as x, watch as S, withCtx as te, withDirectives as ne } from "vue";
1
+ import { Ct as e, H as t, M as n, Ot as r, P as i, S as a, V as ee, Y as o, _ as s, b as c, d as l, g as u, h as d, m as f, p, s as m, tt as h, wt as g, y as _, z as v } from "./vue.runtime.esm-bundler-DryoQb-v.js";
2
+ import { T as y, b, f as x } from "./keys-CIw9mUI2.js";
3
+ import { t as S } from "./useI18n-B8CN2iWs.js";
4
+ import "./useEditorCore-DMH2QpUL.js";
5
+ import { t as te } from "./loader-circle-BYeKJ3to.js";
6
+ import { t as ne } from "./TplModal-BkoIz0oz.js";
7
7
  //#region src/cloud/components/SaveModuleDialog.vue?vue&type=script&setup=true&lang.ts
8
8
  var C = ["aria-busy"], w = {
9
9
  id: "tpl-save-module-title",
@@ -19,27 +19,27 @@ var C = ["aria-busy"], w = {
19
19
  }, N = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, P = ["disabled"], F = ["disabled"], I = {
20
20
  key: 0,
21
21
  class: "tpl:flex tpl:items-center tpl:gap-1.5"
22
- }, L = { key: 1 }, R = /* @__PURE__ */ p({
22
+ }, L = { key: 1 }, R = /* @__PURE__ */ a({
23
23
  __name: "SaveModuleDialog",
24
24
  props: {
25
25
  visible: { type: Boolean },
26
26
  preSelectedBlockId: {}
27
27
  },
28
28
  emits: ["close", "saved"],
29
- setup(p, { emit: R }) {
30
- let z = p, B = R, { t: V } = r(), H = e(n, "SaveModuleDialog"), U = e(t, "SaveModuleDialog"), W = _(""), G = _(/* @__PURE__ */ new Set()), K = _(!1), q = _(null), J = s(() => H.content.value.blocks);
29
+ setup(a, { emit: R }) {
30
+ let z = a, B = R, { t: V } = S(), H = y(x, "SaveModuleDialog"), U = y(b, "SaveModuleDialog"), W = o(""), G = o(/* @__PURE__ */ new Set()), K = o(!1), q = o(null), J = p(() => H.content.value.blocks);
31
31
  function Y(e, t) {
32
32
  let n = e.type;
33
33
  return `${V.blocks[n] ?? e.type} ${t + 1}`;
34
34
  }
35
- S(() => z.visible, (e) => {
35
+ v(() => z.visible, (e) => {
36
36
  e && (W.value = "", q.value = null, G.value = new Set(z.preSelectedBlockId ? [z.preSelectedBlockId] : []));
37
37
  });
38
38
  function X(e) {
39
39
  let t = new Set(G.value);
40
40
  t.has(e) ? t.delete(e) : t.add(e), G.value = t;
41
41
  }
42
- let Z = s(() => W.value.trim().length > 0 && G.value.size > 0 && !K.value);
42
+ let Z = p(() => W.value.trim().length > 0 && G.value.size > 0 && !K.value);
43
43
  async function Q() {
44
44
  if (Z.value) {
45
45
  K.value = !0, q.value = null;
@@ -59,12 +59,12 @@ var C = ["aria-busy"], w = {
59
59
  function re(e) {
60
60
  e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Q()), e.key === "Escape" && $();
61
61
  }
62
- return (e, t) => (g(), c(a, {
63
- visible: p.visible,
62
+ return (o, p) => (n(), d(ne, {
63
+ visible: a.visible,
64
64
  onClose: $,
65
65
  onKeydown: re
66
66
  }, {
67
- default: te(() => [u("div", {
67
+ default: ee(() => [f("div", {
68
68
  role: "dialog",
69
69
  "aria-modal": "true",
70
70
  "aria-busy": K.value,
@@ -75,44 +75,44 @@ var C = ["aria-busy"], w = {
75
75
  "box-shadow": "var(--tpl-shadow-xl)"
76
76
  }
77
77
  }, [
78
- u("h3", w, y(b(V).modules.saveAsModule), 1),
79
- u("div", T, [u("label", E, y(b(V).modules.moduleName), 1), ne(u("input", {
80
- "onUpdate:modelValue": t[0] ||= (e) => W.value = e,
78
+ f("h3", w, r(h(V).modules.saveAsModule), 1),
79
+ f("div", T, [f("label", E, r(h(V).modules.moduleName), 1), t(f("input", {
80
+ "onUpdate:modelValue": p[0] ||= (e) => W.value = e,
81
81
  type: "text",
82
- placeholder: b(V).modules.moduleNamePlaceholder,
82
+ placeholder: h(V).modules.moduleNamePlaceholder,
83
83
  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)]",
84
84
  disabled: K.value
85
- }, null, 8, D), [[x, W.value]])]),
86
- u("div", O, [u("label", k, y(b(V).modules.selectBlocks), 1), u("div", A, [(g(!0), l(o, null, v(J.value, (e, t) => (g(), l("label", {
85
+ }, null, 8, D), [[m, W.value]])]),
86
+ f("div", O, [f("label", k, r(h(V).modules.selectBlocks), 1), f("div", A, [(n(!0), s(l, null, i(J.value, (e, t) => (n(), s("label", {
87
87
  key: e.id,
88
88
  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",
89
- style: h({
89
+ style: g({
90
90
  color: "var(--tpl-text)",
91
91
  backgroundColor: G.value.has(e.id) ? "var(--tpl-primary-light)" : "transparent"
92
92
  })
93
- }, [u("input", {
93
+ }, [f("input", {
94
94
  type: "checkbox",
95
95
  checked: G.value.has(e.id),
96
96
  class: "tpl:accent-[var(--tpl-primary)]",
97
97
  disabled: K.value,
98
98
  onChange: (t) => X(e.id)
99
- }, null, 40, j), d(" " + y(Y(e, t)), 1)], 4))), 128))])]),
100
- q.value ? (g(), l("p", M, y(q.value), 1)) : ee("", !0),
101
- u("div", N, [u("button", {
99
+ }, null, 40, j), _(" " + r(Y(e, t)), 1)], 4))), 128))])]),
100
+ q.value ? (n(), s("p", M, r(q.value), 1)) : u("", !0),
101
+ f("div", N, [f("button", {
102
102
  type: "button",
103
- class: m(["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": K.value }]),
103
+ 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": K.value }]),
104
104
  disabled: K.value,
105
105
  onClick: $
106
- }, y(b(V).modules.cancel), 11, P), u("button", {
106
+ }, r(h(V).modules.cancel), 11, P), f("button", {
107
107
  type: "button",
108
108
  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)]",
109
109
  disabled: !Z.value,
110
110
  onClick: Q
111
- }, [K.value ? (g(), l("span", I, [f(b(i), {
111
+ }, [K.value ? (n(), s("span", I, [c(h(te), {
112
112
  class: "tpl:animate-spin",
113
113
  size: 12,
114
114
  "stroke-width": 2
115
- }), d(" " + y(b(V).modules.saving), 1)])) : (g(), l("span", L, y(b(V).modules.save), 1))], 8, F)])
115
+ }), _(" " + r(h(V).modules.saving), 1)])) : (n(), s("span", L, r(h(V).modules.save), 1))], 8, F)])
116
116
  ], 8, C)]),
117
117
  _: 1
118
118
  }, 8, ["visible"]));
@@ -1,16 +1,16 @@
1
- import { t as e } from "./dist-Ac4o1O4a.js";
2
- import { t } from "./useI18n-D6m7ZUgY.js";
3
- import "./useEditorCore-ColJh1ST.js";
4
- import { n } from "./_plugin-vue_export-helper-5TQrnOhO.js";
5
- import { t as r } from "./chevron-down-CjsV1T0W.js";
6
- import { t as i } from "./clock-CAjdSHBy.js";
7
- import { t as a } from "./loader-circle-DilFjHSk.js";
8
- import { t as o } from "./formatRelativeTime-D8f6NR7i.js";
9
- import { Fragment as s, Transition as c, computed as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, normalizeClass as h, openBlock as g, ref as _, renderList as v, toDisplayString as y, unref as b, watch as x, withCtx as S, withModifiers as C } from "vue";
10
- var w = n("chevron-left", [["path", {
1
+ import { Ct as e, M as t, Ot as n, P as r, S as i, V as a, Y as o, _ as s, b as c, d as l, g as u, m as d, p as f, t as p, tt as m, u as h, z as g } from "./vue.runtime.esm-bundler-DryoQb-v.js";
2
+ import { t as _ } from "./dist-n0PkFNGl.js";
3
+ import { t as v } from "./useI18n-B8CN2iWs.js";
4
+ import "./useEditorCore-DMH2QpUL.js";
5
+ import { n as y } from "./_plugin-vue_export-helper-OO6pH1Dh.js";
6
+ import { t as b } from "./chevron-down-Bbv4SJwx.js";
7
+ import { t as x } from "./clock-raVPKfl4.js";
8
+ import { t as S } from "./loader-circle-BYeKJ3to.js";
9
+ import { t as C } from "./formatRelativeTime-BSpx5DHC.js";
10
+ var w = y("chevron-left", [["path", {
11
11
  d: "m15 18-6-6 6-6",
12
12
  key: "1wnfg3"
13
- }]]), T = n("chevron-right", [["path", {
13
+ }]]), T = y("chevron-right", [["path", {
14
14
  d: "m9 18 6-6-6-6",
15
15
  key: "mthhwq"
16
16
  }]]), E = ["disabled", "title"], D = ["title"], O = {
@@ -32,7 +32,7 @@ var w = n("chevron-left", [["path", {
32
32
  }, N = ["disabled", "onClick"], P = { class: "tpl:flex tpl:flex-col tpl:gap-0.5" }, F = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, I = {
33
33
  key: 0,
34
34
  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)]"
35
- }, L = ["disabled", "title"], R = /* @__PURE__ */ m({
35
+ }, L = ["disabled", "title"], R = /* @__PURE__ */ i({
36
36
  __name: "SnapshotHistory",
37
37
  props: {
38
38
  snapshots: {},
@@ -40,12 +40,12 @@ var w = n("chevron-left", [["path", {
40
40
  isRestoring: { type: Boolean }
41
41
  },
42
42
  emits: ["load", "navigate"],
43
- setup(n, { emit: m }) {
44
- let R = n, z = m, { t: B, format: V } = t(), H = _(!1), U = _(null), W = _(-1);
45
- x(() => R.snapshots.length, () => {
43
+ setup(i, { emit: y }) {
44
+ let R = i, z = y, { t: B, format: V } = v(), H = o(!1), U = o(null), W = o(-1);
45
+ g(() => R.snapshots.length, () => {
46
46
  W.value = -1;
47
47
  });
48
- let G = l(() => W.value > 0 && R.snapshots.length > 0 && !R.isRestoring), K = l(() => W.value < R.snapshots.length - 1 && R.snapshots.length > 0 && !R.isRestoring);
48
+ let G = f(() => W.value > 0 && R.snapshots.length > 0 && !R.isRestoring), K = f(() => W.value < R.snapshots.length - 1 && R.snapshots.length > 0 && !R.isRestoring);
49
49
  function q() {
50
50
  G.value && (W.value--, z("navigate", R.snapshots[W.value]));
51
51
  }
@@ -60,7 +60,7 @@ var w = n("chevron-left", [["path", {
60
60
  t !== -1 && (W.value = t, z("navigate", R.snapshots[t])), H.value = !1;
61
61
  }
62
62
  function Z(e) {
63
- let t = o(e, B.snapshotHistory, V, 7);
63
+ let t = C(e, B.snapshotHistory, V, 7);
64
64
  return t === null ? new Date(e).toLocaleDateString(void 0, {
65
65
  month: "short",
66
66
  day: "numeric",
@@ -68,54 +68,54 @@ var w = n("chevron-left", [["path", {
68
68
  minute: "2-digit"
69
69
  }) : t;
70
70
  }
71
- return e(U, () => {
71
+ return _(U, () => {
72
72
  H.value = !1;
73
- }), (e, t) => (g(), d("div", {
73
+ }), (o, f) => (t(), s("div", {
74
74
  ref_key: "dropdownRef",
75
75
  ref: U,
76
76
  class: "tpl:relative tpl:flex tpl:items-center tpl:gap-0.5"
77
77
  }, [
78
- f("button", {
78
+ d("button", {
79
79
  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)]",
80
80
  disabled: !K.value,
81
- title: b(B).snapshotHistory.olderSnapshot,
82
- onClick: C(J, ["stop"])
83
- }, [p(b(w), {
81
+ title: m(B).snapshotHistory.olderSnapshot,
82
+ onClick: h(J, ["stop"])
83
+ }, [c(m(w), {
84
84
  size: 14,
85
85
  "stroke-width": 2
86
86
  })], 8, E),
87
- f("button", {
87
+ d("button", {
88
88
  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)]",
89
- title: b(B).snapshotHistory.tooltip,
90
- onClick: C(Y, ["stop"])
91
- }, [p(b(i), {
89
+ title: m(B).snapshotHistory.tooltip,
90
+ onClick: h(Y, ["stop"])
91
+ }, [c(m(x), {
92
92
  size: 16,
93
93
  "stroke-width": 1.5
94
- }), p(b(r), {
95
- class: h(["tpl:transition-transform tpl:duration-150", { "tpl:rotate-180": H.value }]),
94
+ }), c(m(b), {
95
+ class: e(["tpl:transition-transform tpl:duration-150", { "tpl:rotate-180": H.value }]),
96
96
  size: 10,
97
97
  "stroke-width": 2
98
98
  }, null, 8, ["class"])], 8, D),
99
- p(c, { name: "tpl-dropdown" }, {
100
- default: S(() => [H.value ? (g(), d("div", O, [f("div", k, y(b(B).snapshotHistory.dropdownTitle), 1), n.isLoading ? (g(), d("div", A, [p(b(a), {
99
+ c(p, { name: "tpl-dropdown" }, {
100
+ default: a(() => [H.value ? (t(), s("div", O, [d("div", k, n(m(B).snapshotHistory.dropdownTitle), 1), i.isLoading ? (t(), s("div", A, [c(m(S), {
101
101
  class: "tpl:animate-spin tpl:text-[var(--tpl-primary)]",
102
102
  size: 20,
103
103
  "stroke-width": 2
104
- })])) : n.snapshots.length === 0 ? (g(), d("div", j, y(b(B).snapshotHistory.noSnapshots), 1)) : (g(), d("div", M, [(g(!0), d(s, null, v(n.snapshots, (e) => (g(), d("button", {
104
+ })])) : i.snapshots.length === 0 ? (t(), s("div", j, n(m(B).snapshotHistory.noSnapshots), 1)) : (t(), s("div", M, [(t(!0), s(l, null, r(i.snapshots, (e) => (t(), s("button", {
105
105
  key: e.id,
106
106
  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)]",
107
107
  style: { "background-color": "transparent" },
108
- disabled: n.isRestoring,
108
+ disabled: i.isRestoring,
109
109
  onClick: (t) => X(e.id)
110
- }, [f("div", P, [f("div", F, [f("span", null, y(Z(e.created_at)), 1), e.is_autosave ? (g(), d("span", I, y(b(B).snapshotHistory.auto), 1)) : u("", !0)])])], 8, N))), 128))]))])) : u("", !0)]),
110
+ }, [d("div", P, [d("div", F, [d("span", null, n(Z(e.created_at)), 1), e.is_autosave ? (t(), s("span", I, n(m(B).snapshotHistory.auto), 1)) : u("", !0)])])], 8, N))), 128))]))])) : u("", !0)]),
111
111
  _: 1
112
112
  }),
113
- f("button", {
113
+ d("button", {
114
114
  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)]",
115
115
  disabled: !G.value,
116
- title: b(B).snapshotHistory.newerSnapshot,
117
- onClick: C(q, ["stop"])
118
- }, [p(b(T), {
116
+ title: m(B).snapshotHistory.newerSnapshot,
117
+ onClick: h(q, ["stop"])
118
+ }, [c(m(T), {
119
119
  size: 14,
120
120
  "stroke-width": 2
121
121
  })], 8, L)