@templatical/editor 0.12.1 → 0.14.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 (155) hide show
  1. package/dist/{AiChatSidebar-CXH7l1Ar.js → AiChatSidebar-J8iO_sX7.js} +16 -16
  2. package/dist/{AiFeatureMenu-BKbUUc1D.js → AiFeatureMenu-F2diEDgV.js} +10 -10
  3. package/dist/{BlockIssueBadge-C-EPqWsh.js → BlockIssueBadge-a-qlByxF.js} +5 -5
  4. package/dist/{CloudEditor-CB16QzKM.js → CloudEditor-CDjtwb4i.js} +284 -250
  5. package/dist/{CollaboratorBar-ACUA7lBJ.js → CollaboratorBar-B_EnJLtW.js} +4 -4
  6. package/dist/{CommentsSidebar-CpRLN40c.js → CommentsSidebar-DaP9BA_r.js} +18 -18
  7. package/dist/{CountdownBlock-C-6o19qS.js → CountdownBlock-DtAokAVw.js} +3 -3
  8. package/dist/{CountdownToolbar-Dol7Q0Pv.js → CountdownToolbar-Dtqgwy0g.js} +3 -3
  9. package/dist/{DesignReferenceSidebar-0dTsBW08.js → DesignReferenceSidebar-BHRlTqlT.js} +21 -33
  10. package/dist/{IssuesPanel-I0z6k6-H.js → IssuesPanel-u7ee3Wrl.js} +11 -11
  11. package/dist/{LoadingTrack-C7mGWPHS.js → LoadingTrack-CV3ID80N.js} +1 -1
  12. package/dist/ModuleBrowserModal-DOsdaS6s.js +201 -0
  13. package/dist/{ModulePreviewCanvas-CpaumPMS.js → ModulePreviewCanvas-Cx4MOJ0X.js} +21 -21
  14. package/dist/{NumberWithSuffix-Bp40ik4l.js → NumberWithSuffix-D2mW_DhT.js} +4 -4
  15. package/dist/{ParagraphEditor-BqRFV_Y-.js → ParagraphEditor-DMzkVnST.js} +156 -136
  16. package/dist/{RichTextEditorContent-Q5altsx1.js → RichTextEditorContent-CRCxCwKf.js} +7 -7
  17. package/dist/{SaveModuleDialog-DmfvH5D0.js → SaveModuleDialog-DuEKgumL.js} +8 -8
  18. package/dist/{SnapshotHistory-C052o-8U.js → SnapshotHistory-CVgiNJtE.js} +12 -12
  19. package/dist/{TemplateScoringPanel-CUs8XmIi.js → TemplateScoringPanel-lm0_9nYi.js} +26 -26
  20. package/dist/{TestEmailModal-BIIxRWUt.js → TestEmailModal-WBMdiW5S.js} +5 -5
  21. package/dist/{TitleEditor-FMh54Cx5.js → TitleEditor-eyT0h-Sa.js} +71 -55
  22. package/dist/{TplModal-utMtXzSO.js → TplModal-tjQ7OB0g.js} +4 -4
  23. package/dist/{blockTypeIcons-C6UGDmrC.js → blockTypeIcons-DdB3uTKD.js} +5 -5
  24. package/dist/bundle-stats.json +8 -8
  25. package/dist/cdn/chunks/{AiFeatureMenu-4NhCFeTh.js → AiFeatureMenu-D7rB2SBs.js} +9 -9
  26. package/dist/cdn/chunks/{AiFeatureMenu-4NhCFeTh.js.map → AiFeatureMenu-D7rB2SBs.js.map} +1 -1
  27. package/dist/cdn/chunks/{BlockIssueBadge-BYKThwhE.js → BlockIssueBadge-DHOe0pgx.js} +6 -6
  28. package/dist/cdn/chunks/{BlockIssueBadge-BYKThwhE.js.map → BlockIssueBadge-DHOe0pgx.js.map} +1 -1
  29. package/dist/cdn/chunks/{CloudEditor-DSeihOan.js → CloudEditor-DNed_Ym0.js} +273 -239
  30. package/dist/cdn/chunks/CloudEditor-DNed_Ym0.js.map +1 -0
  31. package/dist/cdn/chunks/{CollaboratorBar-Dn5gXNDt.js → CollaboratorBar-sj_9Lee3.js} +4 -4
  32. package/dist/cdn/chunks/{CollaboratorBar-Dn5gXNDt.js.map → CollaboratorBar-sj_9Lee3.js.map} +1 -1
  33. package/dist/cdn/chunks/{CountdownBlock-hYoJdVOt.js → CountdownBlock-C1Ikjpn4.js} +3 -3
  34. package/dist/cdn/chunks/{CountdownBlock-hYoJdVOt.js.map → CountdownBlock-C1Ikjpn4.js.map} +1 -1
  35. package/dist/cdn/chunks/{CountdownToolbar-BQn0Kj0X.js → CountdownToolbar-j1G_X8rB.js} +4 -4
  36. package/dist/cdn/chunks/CountdownToolbar-j1G_X8rB.js.map +1 -0
  37. package/dist/cdn/chunks/{IssuesPanel-_5fEnivU.js → IssuesPanel-CTOf3PsH.js} +11 -11
  38. package/dist/cdn/chunks/{IssuesPanel-_5fEnivU.js.map → IssuesPanel-CTOf3PsH.js.map} +1 -1
  39. package/dist/cdn/chunks/{ModuleBrowserModal-DtCksAeW.js → ModuleBrowserModal-DCh88-rr.js} +13 -10
  40. package/dist/cdn/chunks/{ModuleBrowserModal-DtCksAeW.js.map → ModuleBrowserModal-DCh88-rr.js.map} +1 -1
  41. package/dist/cdn/chunks/{ModulePreviewCanvas-CCOvabZd.js → ModulePreviewCanvas-DJqvTKmg.js} +19 -19
  42. package/dist/cdn/chunks/{ModulePreviewCanvas-CCOvabZd.js.map → ModulePreviewCanvas-DJqvTKmg.js.map} +1 -1
  43. package/dist/cdn/chunks/{NumberWithSuffix-cdWjAK6y.js → NumberWithSuffix-Bu45XWSl.js} +5 -5
  44. package/dist/cdn/chunks/{NumberWithSuffix-cdWjAK6y.js.map → NumberWithSuffix-Bu45XWSl.js.map} +1 -1
  45. package/dist/cdn/chunks/{ParagraphEditor-BnhnFOW1.js → ParagraphEditor-DwZqLJp2.js} +131 -111
  46. package/dist/cdn/chunks/ParagraphEditor-DwZqLJp2.js.map +1 -0
  47. package/dist/cdn/chunks/{RichTextEditorContent-DV2yknp8.js → RichTextEditorContent-CIuZ-2DV.js} +5 -5
  48. package/dist/cdn/chunks/{RichTextEditorContent-DV2yknp8.js.map → RichTextEditorContent-CIuZ-2DV.js.map} +1 -1
  49. package/dist/cdn/chunks/{SaveModuleDialog-CCX5U7VA.js → SaveModuleDialog-Bep0X2s_.js} +6 -6
  50. package/dist/cdn/chunks/{SaveModuleDialog-CCX5U7VA.js.map → SaveModuleDialog-Bep0X2s_.js.map} +1 -1
  51. package/dist/cdn/chunks/{TitleEditor-CQqklX0D.js → TitleEditor-DO1-h3RY.js} +62 -46
  52. package/dist/cdn/chunks/TitleEditor-DO1-h3RY.js.map +1 -0
  53. package/dist/cdn/chunks/blockTypeIcons-8o24HVJu.js +22 -0
  54. package/dist/cdn/chunks/{blockTypeIcons-CpGPHppB.js.map → blockTypeIcons-8o24HVJu.js.map} +1 -1
  55. package/dist/cdn/chunks/{de-BpseTWOA.js → de-LsV0u1tP.js} +20 -2
  56. package/dist/cdn/chunks/de-LsV0u1tP.js.map +1 -0
  57. package/dist/cdn/chunks/{draggable-Bci-fq8y.js → draggable-kPCz_3zM.js} +14 -5
  58. package/dist/cdn/chunks/{draggable-Bci-fq8y.js.map → draggable-kPCz_3zM.js.map} +1 -1
  59. package/dist/cdn/chunks/{en-VGIQ0WNq.js → en-Bb8X1bOs.js} +20 -2
  60. package/dist/cdn/chunks/en-Bb8X1bOs.js.map +1 -0
  61. package/dist/cdn/chunks/{extensions-Ds9GnMcd.js → extensions-iwBXnEwq.js} +21 -21
  62. package/dist/cdn/chunks/{extensions-Ds9GnMcd.js.map → extensions-iwBXnEwq.js.map} +1 -1
  63. package/dist/cdn/chunks/{features-DxWz_Enw.js → features-CkTMVylx.js} +996 -817
  64. package/dist/cdn/chunks/features-CkTMVylx.js.map +1 -0
  65. package/dist/cdn/chunks/{icons-BflGUmFY.js → icons-9zjCuoJx.js} +158 -152
  66. package/dist/cdn/chunks/icons-9zjCuoJx.js.map +1 -0
  67. package/dist/cdn/chunks/liquid.browser-DKKBzRQu.js.map +1 -1
  68. package/dist/cdn/chunks/{media-library-C479-QcE.js → media-library-DMRIPx4g.js} +373 -371
  69. package/dist/cdn/chunks/media-library-DMRIPx4g.js.map +1 -0
  70. package/dist/cdn/chunks/{pt-BR-zAqpLQbW.js → pt-BR-BwJY_cvb.js} +20 -2
  71. package/dist/cdn/chunks/pt-BR-BwJY_cvb.js.map +1 -0
  72. package/dist/cdn/chunks/{pusher-BICWUP2j.js → pusher-CdEqyLwF.js} +6 -3
  73. package/dist/cdn/chunks/{pusher-BICWUP2j.js.map → pusher-CdEqyLwF.js.map} +1 -1
  74. package/dist/cdn/chunks/quality-CyeUgs_c.js +2176 -0
  75. package/dist/cdn/chunks/{quality-BL_pEvFP.js.map → quality-CyeUgs_c.js.map} +1 -1
  76. package/dist/cdn/chunks/{renderer-C0vdAODQ.js → renderer-BIKUEKDD.js} +38 -29
  77. package/dist/cdn/chunks/{renderer-C0vdAODQ.js.map → renderer-BIKUEKDD.js.map} +1 -1
  78. package/dist/cdn/chunks/{src-DzvOWQ9S.js → src-pDy_imWG.js} +56 -56
  79. package/dist/cdn/chunks/{src-DzvOWQ9S.js.map → src-pDy_imWG.js.map} +1 -1
  80. package/dist/cdn/chunks/{styles-LfeoSNRA.js → styles-D4Bd3SCx.js} +1356 -905
  81. package/dist/cdn/chunks/styles-D4Bd3SCx.js.map +1 -0
  82. package/dist/cdn/chunks/{tiptap-CwScfbsM.js → tiptap-BlLFFU3M.js} +2233 -2213
  83. package/dist/cdn/chunks/tiptap-BlLFFU3M.js.map +1 -0
  84. package/dist/cdn/editor.css +1 -1
  85. package/dist/cdn/editor.js +101 -97
  86. package/dist/cdn/editor.js.map +1 -1
  87. package/dist/{check-BRzXxFHr.js → check-CYJwFmjy.js} +1 -1
  88. package/dist/{chevron-down-DmEgzmYT.js → chevron-down-C5l-DzAA.js} +1 -1
  89. package/dist/{circle-alert-BStvZr3O.js → circle-alert-wf5HUFZY.js} +1 -1
  90. package/dist/{clock-Blwp_1R6.js → clock-Bj0bQw-K.js} +1 -1
  91. package/dist/{cloud-_olro76D.js → cloud-CoFDm9YA.js} +1 -1
  92. package/dist/{createLucideIcon-CmPAC-gt.js → createLucideIcon-Bad2kKE0.js} +4 -4
  93. package/dist/{de-BpseTWOA.js → de-LsV0u1tP.js} +19 -1
  94. package/dist/{dist-BwgjpLfr.js → dist-34OcyoK1.js} +1 -1
  95. package/dist/{dist-Cz79qrLL.js → dist-B7w6xTU6.js} +1 -1
  96. package/dist/{dist-DULfKmTh.js → dist-BX3gGwL8.js} +5 -5
  97. package/dist/{dist-412xXefB.js → dist-Bn703mnA.js} +1 -1
  98. package/dist/{dist-u0iIJH3V.js → dist-CADDCv0o.js} +1 -1
  99. package/dist/{dist-BNEdeWub.js → dist-CGvz7vkq.js} +1 -1
  100. package/dist/{dist-BlG7k25W.js → dist-CLpPNKy9.js} +1 -1
  101. package/dist/{dist-BCQZZUE9.js → dist-ChMninLH.js} +1 -1
  102. package/dist/{dist-b7Ak-CuM.js → dist-CrQZ_af9.js} +1 -1
  103. package/dist/{dist-DhKTdU52.js → dist-CyjyYg52.js} +1426 -1406
  104. package/dist/{dist-D6x1cQeh.js → dist-Dd3ibRZm.js} +2 -2
  105. package/dist/{dist-DJ9aD8yA.js → dist-DuCzdgDA.js} +54 -5
  106. package/dist/{dist-o73iaGqy.js → dist-U5vfDdYI.js} +1 -1
  107. package/dist/{en-VGIQ0WNq.js → en-Bb8X1bOs.js} +19 -1
  108. package/dist/{extensions-XPlNAKIL.js → extensions-J439b7y7.js} +5 -5
  109. package/dist/{image-up-BFPbw_Zq.js → image-up-x8-WXfsx.js} +1 -1
  110. package/dist/index.d.ts +17 -0
  111. package/dist/{info-B_qLEBN2.js → info-RS_fGcGi.js} +1 -1
  112. package/dist/keys-DgYXDafq.js +10 -0
  113. package/dist/{list-checks-CGg7JxPm.js → list-checks-Bf7XdDyv.js} +1 -1
  114. package/dist/{loader-circle-CDF8eR_Q.js → loader-circle-CLZ0_FvW.js} +1 -1
  115. package/dist/{message-circle-C3cHsCJl.js → message-circle-B-1bN9ab.js} +1 -1
  116. package/dist/{pt-BR-zAqpLQbW.js → pt-BR-BwJY_cvb.js} +19 -1
  117. package/dist/{refresh-cw-Butml7Q4.js → refresh-cw-CWKWqJYG.js} +1 -1
  118. package/dist/scan-line-BtK5dEai.js +31 -0
  119. package/dist/{send-k7npFJNO.js → send-Cn1IUdzh.js} +1 -1
  120. package/dist/{shield-check-CV6GbmCu.js → shield-check-CrvMk4Ea.js} +1 -1
  121. package/dist/{sparkles-C965Xop4.js → sparkles-CgfjwvnG.js} +1 -1
  122. package/dist/style.css +1 -1
  123. package/dist/{styles-DSm9Ijxt.js → styles-BUwDOWd3.js} +1335 -882
  124. package/dist/templatical-editor.js +143 -139
  125. package/dist/{text-align-start-Bxnps8fH.js → text-align-start-C3r_Rnvy.js} +1 -1
  126. package/dist/{trash-2-DpGb7fIt.js → trash-2-CjERg4x9.js} +1 -1
  127. package/dist/{triangle-alert-BKYElAwz.js → triangle-alert-Chkny574.js} +1 -1
  128. package/dist/upload-e5kDRkPb.js +17 -0
  129. package/dist/{useAliveFlag-BinvbqQR.js → useAliveFlag-cUQj9rmB.js} +1 -1
  130. package/dist/{useCloudI18n-L3H2XvdW.js → useCloudI18n-CYJKqXtI.js} +2 -2
  131. package/dist/{useEditorCore-D7dQFRkw.js → useEditorCore-8JxXDOA4.js} +1075 -894
  132. package/dist/{useI18n-CTs_bP9d.js → useI18n-BWqM8i78.js} +2 -2
  133. package/dist/{useMergeTag-e3RSY-s3.js → useMergeTag-NHC4ylza.js} +3 -3
  134. package/dist/usePopoverRoot-B1sdY4es.js +8 -0
  135. package/dist/{vue.runtime.esm-bundler-B2k01iQh.js → vue.runtime.esm-bundler-BPa483TZ.js} +13 -4
  136. package/dist/{x-CGjkjdKK.js → x-DiPIbccg.js} +1 -1
  137. package/package.json +12 -12
  138. package/dist/ModuleBrowserModal-Bz9hSjMS.js +0 -198
  139. package/dist/cdn/chunks/CloudEditor-DSeihOan.js.map +0 -1
  140. package/dist/cdn/chunks/CountdownToolbar-BQn0Kj0X.js.map +0 -1
  141. package/dist/cdn/chunks/ParagraphEditor-BnhnFOW1.js.map +0 -1
  142. package/dist/cdn/chunks/TitleEditor-CQqklX0D.js.map +0 -1
  143. package/dist/cdn/chunks/blockTypeIcons-CpGPHppB.js +0 -22
  144. package/dist/cdn/chunks/de-BpseTWOA.js.map +0 -1
  145. package/dist/cdn/chunks/en-VGIQ0WNq.js.map +0 -1
  146. package/dist/cdn/chunks/features-DxWz_Enw.js.map +0 -1
  147. package/dist/cdn/chunks/icons-BflGUmFY.js.map +0 -1
  148. package/dist/cdn/chunks/media-library-C479-QcE.js.map +0 -1
  149. package/dist/cdn/chunks/pt-BR-zAqpLQbW.js.map +0 -1
  150. package/dist/cdn/chunks/quality-BL_pEvFP.js +0 -2176
  151. package/dist/cdn/chunks/styles-LfeoSNRA.js.map +0 -1
  152. package/dist/cdn/chunks/tiptap-CwScfbsM.js.map +0 -1
  153. package/dist/keys-mFiJ5N0_.js +0 -10
  154. package/dist/scan-line-XYEqim_E.js +0 -25
  155. package/dist/usePopoverRoot-DVh7NY1q.js +0 -8
@@ -1,10 +1,10 @@
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-B2k01iQh.js";
2
- import "./useEditorCore-D7dQFRkw.js";
3
- import { D as y, N as b, m as x } from "./keys-mFiJ5N0_.js";
4
- import { t as S } from "./useI18n-CTs_bP9d.js";
5
- import { t as te } from "./loader-circle-CDF8eR_Q.js";
6
- import { n as ne } from "./useCloudI18n-L3H2XvdW.js";
7
- import { t as C } from "./TplModal-utMtXzSO.js";
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";
8
8
  //#region src/cloud/components/SaveModuleDialog.vue?vue&type=script&setup=true&lang.ts
9
9
  var w = ["aria-busy"], T = {
10
10
  id: "tpl-save-module-title",
@@ -28,7 +28,7 @@ var w = ["aria-busy"], T = {
28
28
  },
29
29
  emits: ["close", "saved"],
30
30
  setup(c, { emit: R }) {
31
- let z = c, B = R, { t: V } = S(), { t: H } = ne(), U = b(x, "SaveModuleDialog"), W = b(y, "SaveModuleDialog"), G = i(""), K = i(/* @__PURE__ */ new Set()), q = i(!1), J = i(null), Y = l(() => U.content.value.blocks);
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
32
  function X(e, t) {
33
33
  let n = e.type;
34
34
  return `${V.blocks[n] ?? e.type} ${t + 1}`;
@@ -1,12 +1,12 @@
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-B2k01iQh.js";
2
- import "./useEditorCore-D7dQFRkw.js";
3
- import { t as _ } from "./dist-DJ9aD8yA.js";
4
- import { t as v } from "./useI18n-CTs_bP9d.js";
5
- import { t as y } from "./createLucideIcon-CmPAC-gt.js";
6
- import { t as b } from "./loader-circle-CDF8eR_Q.js";
7
- import { t as x } from "./chevron-down-DmEgzmYT.js";
8
- import { t as S } from "./clock-Blwp_1R6.js";
9
- import { n as C } from "./useCloudI18n-L3H2XvdW.js";
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";
10
10
  import { t as w } from "./formatRelativeTime-CtUU-QZ8.js";
11
11
  var T = y("chevron-left", [["path", {
12
12
  d: "m15 18-6-6 6-6",
@@ -89,16 +89,16 @@ var T = y("chevron-left", [["path", {
89
89
  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
90
  title: f(H).snapshotHistory.tooltip,
91
91
  onClick: o(X, ["stop"])
92
- }, [h(f(S), {
92
+ }, [h(f(x), {
93
93
  size: 16,
94
94
  "stroke-width": 1.5
95
- }), h(f(x), {
95
+ }), h(f(b), {
96
96
  class: i(["tpl:transition-transform tpl:duration-150", { "tpl:rotate-180": U.value }]),
97
97
  size: 10,
98
98
  "stroke-width": 2
99
99
  }, null, 8, ["class"])], 8, O),
100
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(b), {
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), {
102
102
  class: "tpl:animate-spin tpl:text-[var(--tpl-primary)]",
103
103
  size: 20,
104
104
  "stroke-width": 2
@@ -1,18 +1,18 @@
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-B2k01iQh.js";
2
- import { N as _, O as re, m as ie, y as v } from "./keys-mFiJ5N0_.js";
3
- import { t as y } from "./createLucideIcon-CmPAC-gt.js";
4
- import { t as b } from "./circle-alert-BStvZr3O.js";
5
- import { t as x } from "./loader-circle-CDF8eR_Q.js";
6
- import { t as S } from "./sparkles-C965Xop4.js";
7
- import { t as ae } from "./triangle-alert-BKYElAwz.js";
8
- import { t as oe } from "./chevron-down-DmEgzmYT.js";
9
- import { n as C, t as w } from "./refresh-cw-Butml7Q4.js";
10
- import { t as se } from "./info-B_qLEBN2.js";
11
- import { t as T } from "./shield-check-CV6GbmCu.js";
12
- import { t as ce } from "./x-CGjkjdKK.js";
13
- import { t as le } from "./LoadingTrack-C7mGWPHS.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-BPa483TZ.js";
2
+ import { L as _, M as re, S as ie, m as v } from "./keys-DgYXDafq.js";
3
+ import { t as y } from "./createLucideIcon-Bad2kKE0.js";
4
+ import { t as ae } from "./chevron-down-C5l-DzAA.js";
5
+ import { t as b } from "./circle-alert-wf5HUFZY.js";
6
+ import { n as x, t as S } from "./refresh-cw-CWKWqJYG.js";
7
+ import { t as oe } from "./info-RS_fGcGi.js";
8
+ import { t as C } from "./loader-circle-CLZ0_FvW.js";
9
+ import { t as w } from "./shield-check-CrvMk4Ea.js";
10
+ import { t as T } from "./sparkles-CgfjwvnG.js";
11
+ import { t as se } from "./triangle-alert-Chkny574.js";
12
+ import { t as ce } from "./x-DiPIbccg.js";
13
+ import { t as le } from "./LoadingTrack-CV3ID80N.js";
14
14
  import { t as E } from "./_plugin-vue_export-helper-B3ysoDQm.js";
15
- import { n as D } from "./useCloudI18n-L3H2XvdW.js";
15
+ import { n as D } from "./useCloudI18n-CYJKqXtI.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",
@@ -90,7 +90,7 @@ var P = {
90
90
  props: { visible: { type: Boolean } },
91
91
  emits: ["close"],
92
92
  setup(o, { emit: y }) {
93
- let E = o, G = y, { t: K } = D(), q = _(ie, "TemplateScoringPanel"), J = _(re, "TemplateScoringPanel"), Y = te(v, []), X = i({
93
+ let E = o, G = y, { t: K } = D(), q = _(v, "TemplateScoringPanel"), J = _(re, "TemplateScoringPanel"), Y = te(ie, []), X = i({
94
94
  spam: !0,
95
95
  readability: !0,
96
96
  accessibility: !0,
@@ -106,8 +106,8 @@ var P = {
106
106
  "bestPractices"
107
107
  ], Ae = {
108
108
  spam: O,
109
- readability: C,
110
- accessibility: S,
109
+ readability: x,
110
+ accessibility: T,
111
111
  bestPractices: k
112
112
  };
113
113
  function Q() {
@@ -136,7 +136,7 @@ var P = {
136
136
  "leave-from-class": "tpl:translate-x-0",
137
137
  "leave-to-class": "tpl:translate-x-full"
138
138
  }, {
139
- default: ne(() => [o.visible ? (e(), c("div", P, [s("div", F, [s("div", I, [g(p(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
142
  }), s("span", null, m(p(K).scoring.title), 1)]), s("div", L, [p(J).scoringResult.value && !p(J).isScoring.value ? (e(), c("button", {
@@ -144,7 +144,7 @@ var P = {
144
144
  class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
145
145
  title: p(K).scoring.rescore,
146
146
  onClick: i[0] ||= (e) => Q()
147
- }, [g(p(w), {
147
+ }, [g(p(S), {
148
148
  size: 14,
149
149
  "stroke-width": 2
150
150
  })], 8, R)) : u("", !0), s("button", {
@@ -163,7 +163,7 @@ var P = {
163
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
165
  onClick: i[2] ||= (e) => Q()
166
- }, [g(p(w), {
166
+ }, [g(p(S), {
167
167
  size: 12,
168
168
  "stroke-width": 2
169
169
  }), a(" " + m(p(K).scoring.rescore), 1)])
@@ -205,7 +205,7 @@ var P = {
205
205
  })
206
206
  }, m(p(J).scoringResult.value.categories[n].score), 5),
207
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(oe), {
208
+ g(p(ae), {
209
209
  size: 12,
210
210
  "stroke-width": 2,
211
211
  class: ee(["tpl:transition-transform tpl:duration-200 tpl:text-[var(--tpl-text-dim)]", X.value[n] ? "tpl:rotate-0" : "tpl:-rotate-90"])
@@ -213,7 +213,7 @@ var P = {
213
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
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
- }, [s("div", ve, [(e(), f(t(n.severity === "high" ? p(b) : n.severity === "medium" ? p(ae) : p(se)), {
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",
@@ -232,18 +232,18 @@ var P = {
232
232
  style: { "background-color": "transparent" },
233
233
  disabled: p(J).fixingFindingId.value !== null,
234
234
  onClick: (e) => je(n)
235
- }, [p(J).fixingFindingId.value === n.id ? (e(), f(p(x), {
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
- })) : (e(), f(p(S), {
240
+ })) : (e(), f(p(T), {
241
241
  key: 1,
242
242
  size: 11,
243
243
  "stroke-width": 2
244
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
245
  ])])]))), 128))])) : u("", !0)])), 64))
246
- ])) : (e(), c("div", Ee, [g(p(T), {
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)]"
@@ -251,6 +251,6 @@ var P = {
251
251
  _: 1
252
252
  }));
253
253
  }
254
- }), [["__scopeId", "data-v-3a059e8d"]]);
254
+ }), [["__scopeId", "data-v-c23c73d4"]]);
255
255
  //#endregion
256
256
  export { G as default };
@@ -1,8 +1,8 @@
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-B2k01iQh.js";
2
- import "./useEditorCore-D7dQFRkw.js";
3
- import { t as v } from "./loader-circle-CDF8eR_Q.js";
4
- import { n as y } from "./useCloudI18n-L3H2XvdW.js";
5
- import { t as b } from "./TplModal-utMtXzSO.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-BPa483TZ.js";
2
+ import "./useEditorCore-8JxXDOA4.js";
3
+ import { t as v } from "./loader-circle-CLZ0_FvW.js";
4
+ import { n as y } from "./useCloudI18n-CYJKqXtI.js";
5
+ import { t as b } from "./TplModal-tjQ7OB0g.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",
@@ -1,37 +1,40 @@
1
- import { A as e, G as t, _ as n, at as r, b as i, d as a, f as o, h as s, l as c, m as l, ot as u, p as d, rt as f, st as p, u as m, v as h, w as g } from "./vue.runtime.esm-bundler-B2k01iQh.js";
2
- import { b as _ } from "./useEditorCore-D7dQFRkw.js";
3
- import { A as v, M as y, x as b } from "./keys-mFiJ5N0_.js";
4
- import { t as x } from "./useI18n-CTs_bP9d.js";
5
- import { t as S } from "./loader-circle-CDF8eR_Q.js";
6
- import { a as C, i as w, n as T, r as ee, t as te } from "./RichTextEditorContent-Q5altsx1.js";
7
- import { t as ne } from "./scan-line-XYEqim_E.js";
8
- import { t as E } from "./usePopoverRoot-DVh7NY1q.js";
1
+ import { A as e, G as t, _ as n, at as r, b as i, d as a, f as o, h as s, l as c, m as l, ot as u, p as d, rt as f, st as p, u as m, v as h, w as g } from "./vue.runtime.esm-bundler-BPa483TZ.js";
2
+ import { x as _ } from "./useEditorCore-8JxXDOA4.js";
3
+ import { I as v, P as y, w as b, x } from "./keys-DgYXDafq.js";
4
+ import { t as ee } from "./useI18n-BWqM8i78.js";
5
+ import { a as te, i as ne, n as re, r as ie, t as ae } from "./RichTextEditorContent-CRCxCwKf.js";
6
+ import { n as oe, t as se } from "./scan-line-BtK5dEai.js";
7
+ import { t as S } from "./loader-circle-CLZ0_FvW.js";
8
+ import { t as C } from "./usePopoverRoot-B1sdY4es.js";
9
9
  //#region src/components/blocks/TitleEditor.vue?vue&type=script&setup=true&lang.ts
10
- var D = { class: "tpl-text-editor-wrapper tpl:relative" }, O = ["data-tpl-theme", "aria-label"], k = ["aria-label", "title"], A = ["aria-label", "title"], j = ["aria-label", "title"], M = {
10
+ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme", "aria-label"], E = ["aria-label", "title"], D = ["aria-label", "title"], O = ["aria-label", "title"], k = {
11
11
  key: 0,
12
12
  class: "tpl:mx-1.5 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]"
13
- }, N = ["aria-label", "title"], P = {
13
+ }, A = ["aria-label", "title"], j = {
14
+ key: 2,
15
+ class: "tpl:mx-1.5 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]"
16
+ }, M = ["aria-label", "title"], N = {
14
17
  key: 1,
15
18
  class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
16
- }, F = /* @__PURE__ */ i({
19
+ }, P = /* @__PURE__ */ i({
17
20
  __name: "TitleEditor",
18
21
  props: {
19
22
  block: {},
20
23
  toolbarPosition: {}
21
24
  },
22
25
  emits: ["done"],
23
- setup(i, { emit: F }) {
24
- let I = i, L = F, R = g(v, null), z = g(y, null), B = E(), re = g(b, null), V = a(() => re?.isOpen.value ?? !1), { t: H } = x(), { editor: U, EditorContent: W, isLoading: G, initError: K, retry: q, showLinkDialog: J, linkUrl: Y, linkDialogRef: X, canRequestMergeTag: Z, openLinkDialog: Q, insertLink: ie, removeLink: ae, closeLinkDialog: oe, handleLinkKeydown: se, handleAddMergeTag: $ } = _({
25
- blockId: () => I.block.id,
26
- blockContent: () => I.block.content,
27
- onDone: () => L("done"),
26
+ setup(i, { emit: P }) {
27
+ let F = i, I = P, L = g(y, null), ce = g(v, null), R = C(), z = g(b, null), B = g(x, null), V = a(() => (z?.isOpen.value ?? !1) || (B?.isOpen.value ?? !1)), { t: H } = ee(), { editor: U, EditorContent: W, isLoading: G, initError: le, retry: ue, showLinkDialog: de, linkUrl: K, linkDialogRef: q, canRequestMergeTag: J, canInsertLogicTag: Y, openLinkDialog: X, insertLink: Z, removeLink: fe, closeLinkDialog: pe, handleLinkKeydown: me, handleAddMergeTag: Q, handleAddLogicTag: $ } = _({
28
+ blockId: () => F.block.id,
29
+ blockContent: () => F.block.content,
30
+ onDone: () => I("done"),
28
31
  editorName: "TitleEditor",
29
32
  async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
30
33
  let [{ Editor: a, EditorContent: o }, { default: s }, { default: c }, { MergeTagNode: l, MergeTagSuggestion: u, LogicMergeTagNode: d }] = await Promise.all([
31
- import("./dist-D6x1cQeh.js").then((e) => e.r),
32
- import("./dist-DULfKmTh.js"),
33
- import("./dist-BlG7k25W.js"),
34
- import("./extensions-XPlNAKIL.js")
34
+ import("./dist-Dd3ibRZm.js").then((e) => e.r),
35
+ import("./dist-BX3gGwL8.js"),
36
+ import("./dist-CLpPNKy9.js"),
37
+ import("./extensions-J439b7y7.js")
35
38
  ]);
36
39
  return {
37
40
  TiptapEditor: a,
@@ -63,23 +66,23 @@ var D = { class: "tpl-text-editor-wrapper tpl:relative" }, O = ["data-tpl-theme"
63
66
  mergeTags: e,
64
67
  char: n,
65
68
  emptyText: i,
66
- popoverRoot: B
69
+ popoverRoot: R
67
70
  })] : []
68
71
  ]
69
72
  };
70
73
  }
71
74
  });
72
- return (a, g) => (e(), s("div", D, [
73
- f(B) && !V.value ? (e(), d(m, {
75
+ return (a, g) => (e(), s("div", w, [
76
+ f(R) && !V.value ? (e(), d(m, {
74
77
  key: 0,
75
- to: f(B)
78
+ to: f(R)
76
79
  }, [o("div", {
77
- "data-tpl-theme": f(z),
80
+ "data-tpl-theme": f(ce),
78
81
  role: "toolbar",
79
82
  "aria-label": f(H).titleEditor.toolbar,
80
83
  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",
81
84
  style: u({
82
- ...f(R),
85
+ ...f(L),
83
86
  top: `${i.toolbarPosition.top}px`,
84
87
  left: `${i.toolbarPosition.left}px`,
85
88
  transform: "translateY(-100%)"
@@ -91,21 +94,21 @@ var D = { class: "tpl-text-editor-wrapper tpl:relative" }, O = ["data-tpl-theme"
91
94
  "aria-label": f(H).titleEditor.bold,
92
95
  title: f(H).titleEditor.bold,
93
96
  onClick: g[0] ||= (e) => f(U)?.chain().focus().toggleBold().run()
94
- }, [h(f(C), {
97
+ }, [h(f(te), {
95
98
  size: 16,
96
99
  "stroke-width": 2.5
97
- })], 10, k),
100
+ })], 10, E),
98
101
  o("button", {
99
102
  type: "button",
100
103
  class: r(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": f(U)?.isActive("italic") }]),
101
104
  "aria-label": f(H).titleEditor.italic,
102
105
  title: f(H).titleEditor.italic,
103
106
  onClick: g[1] ||= (e) => f(U)?.chain().focus().toggleItalic().run()
104
- }, [h(f(w), {
107
+ }, [h(f(ne), {
105
108
  size: 16,
106
109
  "stroke-width": 2
107
- })], 10, A),
108
- g[6] ||= o("span", {
110
+ })], 10, D),
111
+ g[7] ||= o("span", {
109
112
  class: "tpl:mx-1.5 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
110
113
  "aria-hidden": "true"
111
114
  }, null, -1),
@@ -114,34 +117,47 @@ var D = { class: "tpl-text-editor-wrapper tpl:relative" }, O = ["data-tpl-theme"
114
117
  class: r(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": f(U)?.isActive("link") }]),
115
118
  "aria-label": f(H).titleEditor.addLink,
116
119
  title: f(H).titleEditor.addLink,
117
- onClick: g[2] ||= (...e) => f(Q) && f(Q)(...e)
118
- }, [h(f(ee), {
120
+ onClick: g[2] ||= (...e) => f(X) && f(X)(...e)
121
+ }, [h(f(ie), {
119
122
  size: 16,
120
123
  "stroke-width": 2
121
- })], 10, j),
122
- f(Z) ? (e(), s("span", M)) : l("", !0),
123
- f(Z) ? (e(), s("button", {
124
+ })], 10, O),
125
+ f(J) ? (e(), s("span", k)) : l("", !0),
126
+ f(J) ? (e(), s("button", {
124
127
  key: 1,
125
128
  type: "button",
126
129
  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)]",
127
130
  "aria-label": f(H).mergeTag.insert,
128
131
  title: f(H).mergeTag.insert,
129
- onClick: g[3] ||= (...e) => f($) && f($)(...e)
130
- }, [h(f(ne), {
132
+ onClick: g[3] ||= (...e) => f(Q) && f(Q)(...e)
133
+ }, [h(f(se), {
134
+ size: 16,
135
+ "stroke-width": 2
136
+ }), n(" " + p(f(H).mergeTag.insertShort), 1)], 8, A)) : l("", !0),
137
+ f(Y) ? (e(), s("span", j)) : l("", !0),
138
+ f(Y) ? (e(), s("button", {
139
+ key: 3,
140
+ type: "button",
141
+ 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)]",
142
+ "aria-label": f(H).logicTag.insert,
143
+ title: f(H).logicTag.insert,
144
+ "data-testid": "insert-logic-button",
145
+ onClick: g[4] ||= (...e) => f($) && f($)(...e)
146
+ }, [h(f(oe), {
131
147
  size: 16,
132
148
  "stroke-width": 2
133
- }), n(" " + p(f(H).mergeTag.insert), 1)], 8, N)) : l("", !0)
134
- ], 64)) : (e(), s("div", P, [h(f(S), {
149
+ }), n(" " + p(f(H).logicTag.insertShort), 1)], 8, M)) : l("", !0)
150
+ ], 64)) : (e(), s("div", N, [h(f(S), {
135
151
  class: "tpl-spinner",
136
152
  size: 14,
137
153
  "stroke-width": 2
138
- }), n(" " + p(f(H).errors.editorLoading), 1)]))], 12, O)], 8, ["to"])) : l("", !0),
139
- h(te, {
154
+ }), n(" " + p(f(H).errors.editorLoading), 1)]))], 12, T)], 8, ["to"])) : l("", !0),
155
+ h(ae, {
140
156
  editor: f(U),
141
157
  "editor-content": f(W),
142
158
  "is-loading": f(G),
143
- "init-error": f(K),
144
- onRetry: f(q)
159
+ "init-error": f(le),
160
+ onRetry: f(ue)
145
161
  }, null, 8, [
146
162
  "editor",
147
163
  "editor-content",
@@ -149,17 +165,17 @@ var D = { class: "tpl-text-editor-wrapper tpl:relative" }, O = ["data-tpl-theme"
149
165
  "init-error",
150
166
  "onRetry"
151
167
  ]),
152
- h(T, {
153
- visible: f(J),
168
+ h(re, {
169
+ visible: f(de),
154
170
  "is-editing-link": f(U)?.isActive("link") ?? !1,
155
- "dialog-ref": f(X),
156
- "onUpdate:dialogRef": g[4] ||= (e) => t(X) ? X.value = e : null,
157
- "link-url": f(Y),
158
- "onUpdate:linkUrl": g[5] ||= (e) => t(Y) ? Y.value = e : null,
159
- onClose: f(oe),
160
- onInsert: f(ie),
161
- onRemove: f(ae),
162
- onKeydown: f(se)
171
+ "dialog-ref": f(q),
172
+ "onUpdate:dialogRef": g[5] ||= (e) => t(q) ? q.value = e : null,
173
+ "link-url": f(K),
174
+ "onUpdate:linkUrl": g[6] ||= (e) => t(K) ? K.value = e : null,
175
+ onClose: f(pe),
176
+ onInsert: f(Z),
177
+ onRemove: f(fe),
178
+ onKeydown: f(me)
163
179
  }, null, 8, [
164
180
  "visible",
165
181
  "is-editing-link",
@@ -174,4 +190,4 @@ var D = { class: "tpl-text-editor-wrapper tpl:relative" }, O = ["data-tpl-theme"
174
190
  }
175
191
  });
176
192
  //#endregion
177
- export { F as default };
193
+ export { P as default };
@@ -1,7 +1,7 @@
1
- import { A as e, N as t, X as n, b as r, c as i, d as a, f as o, h as s, m as c, p as l, rt as u, t as d, u as f, v as p, w as m, z as h } from "./vue.runtime.esm-bundler-B2k01iQh.js";
2
- import { w as g } from "./useEditorCore-D7dQFRkw.js";
3
- import { M as _ } from "./keys-mFiJ5N0_.js";
4
- import { t as v } from "./usePopoverRoot-DVh7NY1q.js";
1
+ import { A as e, N as t, X as n, b as r, c as i, d as a, f as o, h as s, m as c, p as l, rt as u, t as d, u as f, v as p, w as m, z as h } from "./vue.runtime.esm-bundler-BPa483TZ.js";
2
+ import { E as g } from "./useEditorCore-8JxXDOA4.js";
3
+ import { I as _ } from "./keys-DgYXDafq.js";
4
+ import { t as v } from "./usePopoverRoot-B1sdY4es.js";
5
5
  //#region src/components/TplModal.vue?vue&type=script&setup=true&lang.ts
6
6
  var y = ["data-tpl-theme"], b = /* @__PURE__ */ r({
7
7
  __name: "TplModal",
@@ -1,5 +1,5 @@
1
- import { D as e, E as t, M as n, O as r, k as i } from "./useEditorCore-D7dQFRkw.js";
2
- import { t as a } from "./createLucideIcon-CmPAC-gt.js";
1
+ import { A as e, O as t, P as n, j as r, k as i } from "./useEditorCore-8JxXDOA4.js";
2
+ import { t as a } from "./createLucideIcon-Bad2kKE0.js";
3
3
  var o = a("columns-3", [
4
4
  ["rect", {
5
5
  width: "18",
@@ -98,12 +98,12 @@ var o = a("columns-3", [
98
98
  section: o,
99
99
  title: s,
100
100
  paragraph: d,
101
- image: i,
101
+ image: r,
102
102
  button: p,
103
103
  divider: c,
104
104
  video: f,
105
- social: e,
106
- menu: r,
105
+ social: i,
106
+ menu: e,
107
107
  table: t,
108
108
  spacer: l,
109
109
  countdown: a("timer", [
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.12.1",
3
- "initialGzipBytes": 159839,
4
- "initialRawBytes": 565430,
5
- "initialFileCount": 36,
6
- "lazyGzipBytes": 290268,
7
- "lazyRawBytes": 1010405,
8
- "lazyFileCount": 46,
9
- "generatedAt": "2026-06-29T12:59:43.364Z"
2
+ "version": "0.14.0",
3
+ "initialGzipBytes": 165139,
4
+ "initialRawBytes": 591287,
5
+ "initialFileCount": 38,
6
+ "lazyGzipBytes": 291174,
7
+ "lazyRawBytes": 1015355,
8
+ "lazyFileCount": 45,
9
+ "generatedAt": "2026-07-07T14:46:53.726Z"
10
10
  }
@@ -1,5 +1,5 @@
1
- import { L as e, M as t, P as n, ct as r, f as i, g as a, m as o, p as s, st as c, u as l, x as u } from "./draggable-Bci-fq8y.js";
2
- import { It as d, Ot as f, an as p, lt as m, rt as h, tt as g, vt as _ } from "./features-DxWz_Enw.js";
1
+ import { L as e, M as t, P as n, ct as r, f as i, g as a, m as o, p as s, st as c, u as l, x as u } from "./draggable-kPCz_3zM.js";
2
+ import { Ct as d, Rt as f, at as p, cn as m, ft as h, pt as g, rt as _ } from "./features-CkTMVylx.js";
3
3
  //#region src/cloud/components/AiFeatureMenu.vue?vue&type=script&setup=true&lang.ts
4
4
  var v = {
5
5
  class: "tpl-ai-feature-menu tpl:w-[280px] tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:py-1 tpl:bg-[var(--tpl-bg-elevated)] tpl:border tpl:border-[var(--tpl-border)] tpl:shadow-[var(--tpl-shadow-lg)]",
@@ -7,27 +7,27 @@ var v = {
7
7
  "backdrop-filter": "blur(8px)",
8
8
  "-webkit-backdrop-filter": "blur(8px)"
9
9
  }
10
- }, y = ["onClick"], b = { class: "tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5" }, x = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]" }, S = { class: "tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text-muted)]" }, C = /*#__PURE__*/ h(/* @__PURE__ */ u({
10
+ }, y = ["onClick"], b = { class: "tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5" }, x = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]" }, S = { class: "tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text-muted)]" }, C = /*#__PURE__*/ p(/* @__PURE__ */ u({
11
11
  __name: "AiFeatureMenu",
12
12
  props: { activeFeature: {} },
13
13
  emits: ["select"],
14
- setup(u, { emit: h }) {
15
- let C = h, { t: w } = g(), T = p(d, "AiFeatureMenu"), E = {
14
+ setup(u, { emit: p }) {
15
+ let C = p, { t: w } = _(), T = m(f, "AiFeatureMenu"), E = {
16
16
  "ai-chat": "chat",
17
17
  "design-reference": "designToTemplate",
18
18
  scoring: "scoring"
19
19
  }, D = [
20
20
  {
21
21
  key: "ai-chat",
22
- icon: f
22
+ icon: h
23
23
  },
24
24
  {
25
25
  key: "design-reference",
26
- icon: _
26
+ icon: d
27
27
  },
28
28
  {
29
29
  key: "scoring",
30
- icon: m
30
+ icon: g
31
31
  }
32
32
  ], O = i(() => D.filter((e) => T.isFeatureEnabled(E[e.key])));
33
33
  function k(e) {
@@ -56,4 +56,4 @@ var v = {
56
56
  //#endregion
57
57
  export { C as default };
58
58
 
59
- //# sourceMappingURL=AiFeatureMenu-4NhCFeTh.js.map
59
+ //# sourceMappingURL=AiFeatureMenu-D7rB2SBs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AiFeatureMenu-4NhCFeTh.js","names":[],"sources":["../../../src/cloud/components/AiFeatureMenu.vue","../../../src/cloud/components/AiFeatureMenu.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { useCloudI18nStrict } from \"../../composables\";\nimport { AI_CONFIG_KEY, requireInject } from \"../../keys\";\nimport type { AiConfig } from \"@templatical/types\";\nimport { ImageUp, ShieldCheck, Sparkles } from \"@lucide/vue\";\nimport { computed } from \"vue\";\n\nexport type AiFeature = \"ai-chat\" | \"design-reference\" | \"scoring\";\n\ndefineProps<{\n activeFeature: AiFeature | null;\n}>();\n\nconst emit = defineEmits<{\n (e: \"select\", feature: AiFeature): void;\n}>();\n\nconst { t: cloudT } = useCloudI18nStrict();\n\nconst aiConfig = requireInject(AI_CONFIG_KEY, \"AiFeatureMenu\");\n\nconst configKeyMap: Record<AiFeature, keyof AiConfig> = {\n \"ai-chat\": \"chat\",\n \"design-reference\": \"designToTemplate\",\n scoring: \"scoring\",\n};\n\nconst allFeatures: { key: AiFeature; icon: typeof Sparkles }[] = [\n { key: \"ai-chat\", icon: Sparkles },\n { key: \"design-reference\", icon: ImageUp },\n { key: \"scoring\", icon: ShieldCheck },\n];\n\nconst features = computed(() =>\n allFeatures.filter((f) => aiConfig.isFeatureEnabled(configKeyMap[f.key])),\n);\n\nfunction getTitle(key: AiFeature): string {\n if (key === \"ai-chat\") return cloudT.aiMenu.aiAssistant;\n if (key === \"design-reference\") return cloudT.aiMenu.designToTemplate;\n return cloudT.aiMenu.templateScore;\n}\n\nfunction getDescription(key: AiFeature): string {\n if (key === \"ai-chat\") return cloudT.aiMenu.aiAssistantDesc;\n if (key === \"design-reference\") return cloudT.aiMenu.designToTemplateDesc;\n return cloudT.aiMenu.templateScoreDesc;\n}\n</script>\n\n<template>\n <div\n class=\"tpl-ai-feature-menu tpl:w-[280px] tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:py-1 tpl:bg-[var(--tpl-bg-elevated)] tpl:border tpl:border-[var(--tpl-border)] tpl:shadow-[var(--tpl-shadow-lg)]\"\n style=\"backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px)\"\n >\n <button\n v-for=\"feature in features\"\n :key=\"feature.key\"\n class=\"tpl-ai-feature-menu-item tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-start tpl:gap-3 tpl:border-none tpl:px-3 tpl:py-2.5 tpl:text-left tpl:transition-colors tpl:duration-100\"\n :style=\"{\n backgroundColor:\n activeFeature === feature.key\n ? 'var(--tpl-primary-light)'\n : 'transparent',\n }\"\n @click=\"emit('select', feature.key)\"\n >\n <div\n class=\"tpl:mt-0.5 tpl:flex tpl:size-7 tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)]\"\n :style=\"{\n backgroundColor:\n activeFeature === feature.key\n ? 'var(--tpl-primary)'\n : 'var(--tpl-bg-active)',\n color:\n activeFeature === feature.key\n ? 'var(--tpl-bg)'\n : 'var(--tpl-text-muted)',\n }\"\n >\n <component :is=\"feature.icon\" :size=\"15\" :stroke-width=\"2\" />\n </div>\n <div class=\"tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5\">\n <span class=\"tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]\">\n {{ getTitle(feature.key) }}\n </span>\n <span\n class=\"tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text-muted)]\"\n >\n {{ getDescription(feature.key) }}\n </span>\n </div>\n </button>\n </div>\n</template>\n\n<style scoped>\n.tpl-ai-feature-menu-item:hover {\n background-color: var(--tpl-bg-hover) !important;\n}\n</style>\n","<script setup lang=\"ts\">\nimport { useCloudI18nStrict } from \"../../composables\";\nimport { AI_CONFIG_KEY, requireInject } from \"../../keys\";\nimport type { AiConfig } from \"@templatical/types\";\nimport { ImageUp, ShieldCheck, Sparkles } from \"@lucide/vue\";\nimport { computed } from \"vue\";\n\nexport type AiFeature = \"ai-chat\" | \"design-reference\" | \"scoring\";\n\ndefineProps<{\n activeFeature: AiFeature | null;\n}>();\n\nconst emit = defineEmits<{\n (e: \"select\", feature: AiFeature): void;\n}>();\n\nconst { t: cloudT } = useCloudI18nStrict();\n\nconst aiConfig = requireInject(AI_CONFIG_KEY, \"AiFeatureMenu\");\n\nconst configKeyMap: Record<AiFeature, keyof AiConfig> = {\n \"ai-chat\": \"chat\",\n \"design-reference\": \"designToTemplate\",\n scoring: \"scoring\",\n};\n\nconst allFeatures: { key: AiFeature; icon: typeof Sparkles }[] = [\n { key: \"ai-chat\", icon: Sparkles },\n { key: \"design-reference\", icon: ImageUp },\n { key: \"scoring\", icon: ShieldCheck },\n];\n\nconst features = computed(() =>\n allFeatures.filter((f) => aiConfig.isFeatureEnabled(configKeyMap[f.key])),\n);\n\nfunction getTitle(key: AiFeature): string {\n if (key === \"ai-chat\") return cloudT.aiMenu.aiAssistant;\n if (key === \"design-reference\") return cloudT.aiMenu.designToTemplate;\n return cloudT.aiMenu.templateScore;\n}\n\nfunction getDescription(key: AiFeature): string {\n if (key === \"ai-chat\") return cloudT.aiMenu.aiAssistantDesc;\n if (key === \"design-reference\") return cloudT.aiMenu.designToTemplateDesc;\n return cloudT.aiMenu.templateScoreDesc;\n}\n</script>\n\n<template>\n <div\n class=\"tpl-ai-feature-menu tpl:w-[280px] tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:py-1 tpl:bg-[var(--tpl-bg-elevated)] tpl:border tpl:border-[var(--tpl-border)] tpl:shadow-[var(--tpl-shadow-lg)]\"\n style=\"backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px)\"\n >\n <button\n v-for=\"feature in features\"\n :key=\"feature.key\"\n class=\"tpl-ai-feature-menu-item tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-start tpl:gap-3 tpl:border-none tpl:px-3 tpl:py-2.5 tpl:text-left tpl:transition-colors tpl:duration-100\"\n :style=\"{\n backgroundColor:\n activeFeature === feature.key\n ? 'var(--tpl-primary-light)'\n : 'transparent',\n }\"\n @click=\"emit('select', feature.key)\"\n >\n <div\n class=\"tpl:mt-0.5 tpl:flex tpl:size-7 tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)]\"\n :style=\"{\n backgroundColor:\n activeFeature === feature.key\n ? 'var(--tpl-primary)'\n : 'var(--tpl-bg-active)',\n color:\n activeFeature === feature.key\n ? 'var(--tpl-bg)'\n : 'var(--tpl-text-muted)',\n }\"\n >\n <component :is=\"feature.icon\" :size=\"15\" :stroke-width=\"2\" />\n </div>\n <div class=\"tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5\">\n <span class=\"tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]\">\n {{ getTitle(feature.key) }}\n </span>\n <span\n class=\"tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text-muted)]\"\n >\n {{ getDescription(feature.key) }}\n </span>\n </div>\n </button>\n </div>\n</template>\n\n<style scoped>\n.tpl-ai-feature-menu-item:hover {\n background-color: var(--tpl-bg-hover) !important;\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;EAaA,IAAM,IAAO,GAIP,EAAE,GAAG,MAAW,EAAmB,GAEnC,IAAW,EAAc,GAAe,eAAe,GAEvD,IAAkD;GACtD,WAAW;GACX,oBAAoB;GACpB,SAAS;EACX,GAEM,IAA2D;GAC/D;IAAE,KAAK;IAAW,MAAM;GAAS;GACjC;IAAE,KAAK;IAAoB,MAAM;GAAQ;GACzC;IAAE,KAAK;IAAW,MAAM;GAAY;EACtC,GAEM,IAAW,QACf,EAAY,QAAQ,MAAM,EAAS,iBAAiB,EAAa,EAAE,IAAI,CAAC,CAC1E;EAEA,SAAS,EAAS,GAAwB;GAGxC,OAFI,MAAQ,YAAkB,EAAO,OAAO,cACxC,MAAQ,qBAA2B,EAAO,OAAO,mBAC9C,EAAO,OAAO;EACvB;EAEA,SAAS,EAAe,GAAwB;GAG9C,OAFI,MAAQ,YAAkB,EAAO,OAAO,kBACxC,MAAQ,qBAA2B,EAAO,OAAO,uBAC9C,EAAO,OAAO;EACvB;yBAIE,EA0CM,OA1CN,GA0CM,EAAA,EAAA,EAAA,GAtCJ,EAqCS,GAAA,MAAA,EApCW,EAAA,QAAX,YADT,EAqCS,UAAA;GAnCN,KAAK,EAAQ;GACd,OAAM;GACL,OAAK,EAAA,EAAA,iBAAuC,EAAA,kBAAkB,EAAQ,MAAA,6BAAA,cAAA,CAAA;GAMtE,UAAK,MAAE,EAAI,UAAW,EAAQ,GAAG;MAElC,EAcM,OAAA;GAbJ,OAAM;GACL,OAAK,EAAA;qBAA2C,EAAA,kBAAkB,EAAQ,MAAA,uBAAA;WAA8G,EAAA,kBAAkB,EAAQ,MAAA,kBAAA;;YAWnN,EAA6D,EAA7C,EAAQ,IAAI,GAAA;GAAG,MAAM;GAAK,gBAAc;YAE1D,EASM,OATN,GASM,CARJ,EAEO,QAFP,GAEO,EADF,EAAS,EAAQ,GAAG,CAAA,GAAA,CAAA,GAEzB,EAIO,QAJP,GAIO,EADF,EAAe,EAAQ,GAAG,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,GAAA,IAAA,CAAA"}
1
+ {"version":3,"file":"AiFeatureMenu-D7rB2SBs.js","names":[],"sources":["../../../src/cloud/components/AiFeatureMenu.vue","../../../src/cloud/components/AiFeatureMenu.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { useCloudI18nStrict } from \"../../composables\";\nimport { AI_CONFIG_KEY, requireInject } from \"../../keys\";\nimport type { AiConfig } from \"@templatical/types\";\nimport { ImageUp, ShieldCheck, Sparkles } from \"@lucide/vue\";\nimport { computed } from \"vue\";\n\nexport type AiFeature = \"ai-chat\" | \"design-reference\" | \"scoring\";\n\ndefineProps<{\n activeFeature: AiFeature | null;\n}>();\n\nconst emit = defineEmits<{\n (e: \"select\", feature: AiFeature): void;\n}>();\n\nconst { t: cloudT } = useCloudI18nStrict();\n\nconst aiConfig = requireInject(AI_CONFIG_KEY, \"AiFeatureMenu\");\n\nconst configKeyMap: Record<AiFeature, keyof AiConfig> = {\n \"ai-chat\": \"chat\",\n \"design-reference\": \"designToTemplate\",\n scoring: \"scoring\",\n};\n\nconst allFeatures: { key: AiFeature; icon: typeof Sparkles }[] = [\n { key: \"ai-chat\", icon: Sparkles },\n { key: \"design-reference\", icon: ImageUp },\n { key: \"scoring\", icon: ShieldCheck },\n];\n\nconst features = computed(() =>\n allFeatures.filter((f) => aiConfig.isFeatureEnabled(configKeyMap[f.key])),\n);\n\nfunction getTitle(key: AiFeature): string {\n if (key === \"ai-chat\") return cloudT.aiMenu.aiAssistant;\n if (key === \"design-reference\") return cloudT.aiMenu.designToTemplate;\n return cloudT.aiMenu.templateScore;\n}\n\nfunction getDescription(key: AiFeature): string {\n if (key === \"ai-chat\") return cloudT.aiMenu.aiAssistantDesc;\n if (key === \"design-reference\") return cloudT.aiMenu.designToTemplateDesc;\n return cloudT.aiMenu.templateScoreDesc;\n}\n</script>\n\n<template>\n <div\n class=\"tpl-ai-feature-menu tpl:w-[280px] tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:py-1 tpl:bg-[var(--tpl-bg-elevated)] tpl:border tpl:border-[var(--tpl-border)] tpl:shadow-[var(--tpl-shadow-lg)]\"\n style=\"backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px)\"\n >\n <button\n v-for=\"feature in features\"\n :key=\"feature.key\"\n class=\"tpl-ai-feature-menu-item tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-start tpl:gap-3 tpl:border-none tpl:px-3 tpl:py-2.5 tpl:text-left tpl:transition-colors tpl:duration-100\"\n :style=\"{\n backgroundColor:\n activeFeature === feature.key\n ? 'var(--tpl-primary-light)'\n : 'transparent',\n }\"\n @click=\"emit('select', feature.key)\"\n >\n <div\n class=\"tpl:mt-0.5 tpl:flex tpl:size-7 tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)]\"\n :style=\"{\n backgroundColor:\n activeFeature === feature.key\n ? 'var(--tpl-primary)'\n : 'var(--tpl-bg-active)',\n color:\n activeFeature === feature.key\n ? 'var(--tpl-bg)'\n : 'var(--tpl-text-muted)',\n }\"\n >\n <component :is=\"feature.icon\" :size=\"15\" :stroke-width=\"2\" />\n </div>\n <div class=\"tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5\">\n <span class=\"tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]\">\n {{ getTitle(feature.key) }}\n </span>\n <span\n class=\"tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text-muted)]\"\n >\n {{ getDescription(feature.key) }}\n </span>\n </div>\n </button>\n </div>\n</template>\n\n<style scoped>\n.tpl-ai-feature-menu-item:hover {\n background-color: var(--tpl-bg-hover) !important;\n}\n</style>\n","<script setup lang=\"ts\">\nimport { useCloudI18nStrict } from \"../../composables\";\nimport { AI_CONFIG_KEY, requireInject } from \"../../keys\";\nimport type { AiConfig } from \"@templatical/types\";\nimport { ImageUp, ShieldCheck, Sparkles } from \"@lucide/vue\";\nimport { computed } from \"vue\";\n\nexport type AiFeature = \"ai-chat\" | \"design-reference\" | \"scoring\";\n\ndefineProps<{\n activeFeature: AiFeature | null;\n}>();\n\nconst emit = defineEmits<{\n (e: \"select\", feature: AiFeature): void;\n}>();\n\nconst { t: cloudT } = useCloudI18nStrict();\n\nconst aiConfig = requireInject(AI_CONFIG_KEY, \"AiFeatureMenu\");\n\nconst configKeyMap: Record<AiFeature, keyof AiConfig> = {\n \"ai-chat\": \"chat\",\n \"design-reference\": \"designToTemplate\",\n scoring: \"scoring\",\n};\n\nconst allFeatures: { key: AiFeature; icon: typeof Sparkles }[] = [\n { key: \"ai-chat\", icon: Sparkles },\n { key: \"design-reference\", icon: ImageUp },\n { key: \"scoring\", icon: ShieldCheck },\n];\n\nconst features = computed(() =>\n allFeatures.filter((f) => aiConfig.isFeatureEnabled(configKeyMap[f.key])),\n);\n\nfunction getTitle(key: AiFeature): string {\n if (key === \"ai-chat\") return cloudT.aiMenu.aiAssistant;\n if (key === \"design-reference\") return cloudT.aiMenu.designToTemplate;\n return cloudT.aiMenu.templateScore;\n}\n\nfunction getDescription(key: AiFeature): string {\n if (key === \"ai-chat\") return cloudT.aiMenu.aiAssistantDesc;\n if (key === \"design-reference\") return cloudT.aiMenu.designToTemplateDesc;\n return cloudT.aiMenu.templateScoreDesc;\n}\n</script>\n\n<template>\n <div\n class=\"tpl-ai-feature-menu tpl:w-[280px] tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:py-1 tpl:bg-[var(--tpl-bg-elevated)] tpl:border tpl:border-[var(--tpl-border)] tpl:shadow-[var(--tpl-shadow-lg)]\"\n style=\"backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px)\"\n >\n <button\n v-for=\"feature in features\"\n :key=\"feature.key\"\n class=\"tpl-ai-feature-menu-item tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-start tpl:gap-3 tpl:border-none tpl:px-3 tpl:py-2.5 tpl:text-left tpl:transition-colors tpl:duration-100\"\n :style=\"{\n backgroundColor:\n activeFeature === feature.key\n ? 'var(--tpl-primary-light)'\n : 'transparent',\n }\"\n @click=\"emit('select', feature.key)\"\n >\n <div\n class=\"tpl:mt-0.5 tpl:flex tpl:size-7 tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)]\"\n :style=\"{\n backgroundColor:\n activeFeature === feature.key\n ? 'var(--tpl-primary)'\n : 'var(--tpl-bg-active)',\n color:\n activeFeature === feature.key\n ? 'var(--tpl-bg)'\n : 'var(--tpl-text-muted)',\n }\"\n >\n <component :is=\"feature.icon\" :size=\"15\" :stroke-width=\"2\" />\n </div>\n <div class=\"tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5\">\n <span class=\"tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]\">\n {{ getTitle(feature.key) }}\n </span>\n <span\n class=\"tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text-muted)]\"\n >\n {{ getDescription(feature.key) }}\n </span>\n </div>\n </button>\n </div>\n</template>\n\n<style scoped>\n.tpl-ai-feature-menu-item:hover {\n background-color: var(--tpl-bg-hover) !important;\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;EAaA,IAAM,IAAO,GAIP,EAAE,GAAG,MAAW,EAAmB,GAEnC,IAAW,EAAc,GAAe,eAAe,GAEvD,IAAkD;GACtD,WAAW;GACX,oBAAoB;GACpB,SAAS;EACX,GAEM,IAA2D;GAC/D;IAAE,KAAK;IAAW,MAAM;GAAS;GACjC;IAAE,KAAK;IAAoB,MAAM;GAAQ;GACzC;IAAE,KAAK;IAAW,MAAM;GAAY;EACtC,GAEM,IAAW,QACf,EAAY,QAAQ,MAAM,EAAS,iBAAiB,EAAa,EAAE,IAAI,CAAC,CAC1E;EAEA,SAAS,EAAS,GAAwB;GAGxC,OAFI,MAAQ,YAAkB,EAAO,OAAO,cACxC,MAAQ,qBAA2B,EAAO,OAAO,mBAC9C,EAAO,OAAO;EACvB;EAEA,SAAS,EAAe,GAAwB;GAG9C,OAFI,MAAQ,YAAkB,EAAO,OAAO,kBACxC,MAAQ,qBAA2B,EAAO,OAAO,uBAC9C,EAAO,OAAO;EACvB;yBAIE,EA0CM,OA1CN,GA0CM,EAAA,EAAA,EAAA,GAtCJ,EAqCS,GAAA,MAAA,EApCW,EAAA,QAAX,YADT,EAqCS,UAAA;GAnCN,KAAK,EAAQ;GACd,OAAM;GACL,OAAK,EAAA,EAAA,iBAAuC,EAAA,kBAAkB,EAAQ,MAAA,6BAAA,cAAA,CAAA;GAMtE,UAAK,MAAE,EAAI,UAAW,EAAQ,GAAG;MAElC,EAcM,OAAA;GAbJ,OAAM;GACL,OAAK,EAAA;qBAA2C,EAAA,kBAAkB,EAAQ,MAAA,uBAAA;WAA8G,EAAA,kBAAkB,EAAQ,MAAA,kBAAA;;YAWnN,EAA6D,EAA7C,EAAQ,IAAI,GAAA;GAAG,MAAM;GAAK,gBAAc;YAE1D,EASM,OATN,GASM,CARJ,EAEO,QAFP,GAEO,EADF,EAAS,EAAQ,GAAG,CAAA,GAAA,CAAA,GAEzB,EAIO,QAJP,GAIO,EADF,EAAe,EAAQ,GAAG,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,GAAA,IAAA,CAAA"}
@@ -1,24 +1,24 @@
1
- import { M as e, T as t, f as n, g as r, h as i, it as a, m as o, ot as s, x as c } from "./draggable-Bci-fq8y.js";
2
- import { At as l, Dt as u, Ft as d, nn as f } from "./features-DxWz_Enw.js";
1
+ import { M as e, T as t, f as n, g as r, h as i, it as a, m as o, ot as s, x as c } from "./draggable-kPCz_3zM.js";
2
+ import { Lt as l, an as u, kt as d, lt as f } from "./features-CkTMVylx.js";
3
3
  //#region src/components/canvas/BlockIssueBadge.vue?vue&type=script&setup=true&lang.ts
4
4
  var p = ["title", "aria-label"], m = /* @__PURE__ */ c({
5
5
  __name: "BlockIssueBadge",
6
6
  props: { blockId: {} },
7
7
  setup(c) {
8
- let m = c, { t: h } = d(), g = t(f, null), _ = n(() => (g?.issues.value ?? []).filter((e) => e.blockId === m.blockId)), v = n(() => _.value.some((e) => e.severity === "error") ? "error" : _.value.some((e) => e.severity === "warning") ? "warning" : null), y = n(() => v.value === "error" ? h.issues.badgeError : h.issues.badgeWarning);
8
+ let m = c, { t: h } = l(), g = t(u, null), _ = n(() => (g?.issues.value ?? []).filter((e) => e.blockId === m.blockId)), v = n(() => _.value.some((e) => e.severity === "error") ? "error" : _.value.some((e) => e.severity === "warning") ? "warning" : null), y = n(() => v.value === "error" ? h.issues.badgeError : h.issues.badgeWarning);
9
9
  return (t, n) => v.value ? (e(), r("span", {
10
10
  key: 0,
11
11
  class: s(["tpl:absolute tpl:top-1 tpl:right-1 tpl:z-10 tpl:flex tpl:size-5 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-sm)] tpl:ring-1 tpl:ring-[var(--tpl-border)]", v.value === "error" ? "tpl:text-[var(--tpl-danger)]" : "tpl:text-[var(--tpl-warning)]"]),
12
12
  title: y.value,
13
13
  "aria-label": y.value,
14
14
  role: "img"
15
- }, [v.value === "error" ? (e(), o(a(l), {
15
+ }, [v.value === "error" ? (e(), o(a(d), {
16
16
  key: 0,
17
17
  size: 14,
18
18
  "stroke-width": 2.25,
19
19
  fill: "currentColor",
20
20
  stroke: "var(--tpl-bg)"
21
- })) : (e(), o(a(u), {
21
+ })) : (e(), o(a(f), {
22
22
  key: 1,
23
23
  size: 14,
24
24
  "stroke-width": 2.25,
@@ -30,4 +30,4 @@ var p = ["title", "aria-label"], m = /* @__PURE__ */ c({
30
30
  //#endregion
31
31
  export { m as default };
32
32
 
33
- //# sourceMappingURL=BlockIssueBadge-BYKThwhE.js.map
33
+ //# sourceMappingURL=BlockIssueBadge-DHOe0pgx.js.map