@templatical/editor 0.16.5 → 0.17.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 (110) hide show
  1. package/dist/{AiChatSidebar-CYAbVB2G.js → AiChatSidebar-LxCHMdcj.js} +1 -1
  2. package/dist/{AiFeatureMenu-B1oEJebq.js → AiFeatureMenu-zwSmx9ZW.js} +3 -3
  3. package/dist/{BlockIssueBadge-BLytBabN.js → BlockIssueBadge-BQ1yB1me.js} +2 -2
  4. package/dist/{CloudEditor-D6KNL6VU.js → CloudEditor-5ahgKRX8.js} +11 -10
  5. package/dist/{CollaboratorBar-C_EhXQ5R.js → CollaboratorBar-6PtX-1AS.js} +2 -2
  6. package/dist/{ColorPicker-CppJgX_T.js → ColorPicker-DfzDyNKe.js} +4 -4
  7. package/dist/{CommentsSidebar-C_XLBbo3.js → CommentsSidebar-Cl93TN96.js} +3 -3
  8. package/dist/{CountdownBlock-173fiO5Z.js → CountdownBlock-DbXfzwae.js} +1 -1
  9. package/dist/{CountdownToolbar-D5GaA_lt.js → CountdownToolbar-BqaMWRyB.js} +3 -3
  10. package/dist/{DesignReferenceSidebar-Bh9uAZ4B.js → DesignReferenceSidebar-jVrdS8wW.js} +2 -2
  11. package/dist/{IssuesPanel-DltSuU6H.js → IssuesPanel-Bq3yXg6M.js} +2 -2
  12. package/dist/{ModuleBrowserModal-CXy8Bbv9.js → ModuleBrowserModal-B5IH3-1I.js} +7 -7
  13. package/dist/{ModulePreviewCanvas-CJC9kyZN.js → ModulePreviewCanvas-CYOLWoZ9.js} +2 -2
  14. package/dist/{NumberWithSuffix-DNi-v4l1.js → NumberWithSuffix-9FG7mNnn.js} +1 -1
  15. package/dist/{ParagraphEditor-nk5Vvr7M.js → ParagraphEditor-duWYA6Vv.js} +8 -8
  16. package/dist/{RichTextEditorContent-DBaCrvH0.js → RichTextEditorContent-DCzmVeyb.js} +5 -5
  17. package/dist/{SaveModuleDialog-CYu5PhBz.js → SaveModuleDialog-BPUly5h3.js} +6 -6
  18. package/dist/{SnapshotHistory-B38ImqMO.js → SnapshotHistory-CmwU3nlN.js} +4 -4
  19. package/dist/{TemplateScoringPanel-ZhObHWeb.js → TemplateScoringPanel-CMrfa9Rd.js} +3 -3
  20. package/dist/{TestEmailModal-DbstIzEf.js → TestEmailModal-zfomMz9i.js} +3 -3
  21. package/dist/{TitleEditor-CmfkOHJT.js → TitleEditor-v0gtezZE.js} +7 -7
  22. package/dist/{TplModal-BXnx3sLr.js → TplModal-eGFG7k-y.js} +3 -3
  23. package/dist/{blockTypeIcons-BVIEw0XJ.js → blockTypeIcons-Dd0w4T0I.js} +1 -1
  24. package/dist/bundle-stats.json +6 -6
  25. package/dist/{ca-DI1ViqMa.js → ca-CSl--oWR.js} +1 -1
  26. package/dist/cdn/chunks/{AiFeatureMenu-CuIg4yrB.js → AiFeatureMenu-CtXsam7G.js} +2 -2
  27. package/dist/cdn/chunks/{AiFeatureMenu-CuIg4yrB.js.map → AiFeatureMenu-CtXsam7G.js.map} +1 -1
  28. package/dist/cdn/chunks/{BlockIssueBadge-BHEl_Hs7.js → BlockIssueBadge-DR7cpDfQ.js} +2 -2
  29. package/dist/cdn/chunks/{BlockIssueBadge-BHEl_Hs7.js.map → BlockIssueBadge-DR7cpDfQ.js.map} +1 -1
  30. package/dist/cdn/chunks/{CloudEditor-1Ms0w691.js → CloudEditor-YC5y3AwC.js} +10 -9
  31. package/dist/cdn/chunks/CloudEditor-YC5y3AwC.js.map +1 -0
  32. package/dist/cdn/chunks/{CollaboratorBar-C0a5P64z.js → CollaboratorBar-BOD2j8Kl.js} +3 -3
  33. package/dist/cdn/chunks/{CollaboratorBar-C0a5P64z.js.map → CollaboratorBar-BOD2j8Kl.js.map} +1 -1
  34. package/dist/cdn/chunks/{ColorPicker-bsMmT-_B.js → ColorPicker-CPMWLHpa.js} +2 -2
  35. package/dist/cdn/chunks/{ColorPicker-bsMmT-_B.js.map → ColorPicker-CPMWLHpa.js.map} +1 -1
  36. package/dist/cdn/chunks/{CountdownBlock-8053oz4k.js → CountdownBlock-BmGqb7Zi.js} +2 -2
  37. package/dist/cdn/chunks/{CountdownBlock-8053oz4k.js.map → CountdownBlock-BmGqb7Zi.js.map} +1 -1
  38. package/dist/cdn/chunks/{CountdownToolbar-DQ_zrorh.js → CountdownToolbar-BBwsdGbV.js} +4 -4
  39. package/dist/cdn/chunks/{CountdownToolbar-DQ_zrorh.js.map → CountdownToolbar-BBwsdGbV.js.map} +1 -1
  40. package/dist/cdn/chunks/{IssuesPanel-CwQ376nf.js → IssuesPanel-G0z-j3JS.js} +3 -3
  41. package/dist/cdn/chunks/{IssuesPanel-CwQ376nf.js.map → IssuesPanel-G0z-j3JS.js.map} +1 -1
  42. package/dist/cdn/chunks/{ModuleBrowserModal-DUegB2Jk.js → ModuleBrowserModal-DiLTY0ec.js} +5 -5
  43. package/dist/cdn/chunks/{ModuleBrowserModal-DUegB2Jk.js.map → ModuleBrowserModal-DiLTY0ec.js.map} +1 -1
  44. package/dist/cdn/chunks/{ModulePreviewCanvas-f4h8r9Lh.js → ModulePreviewCanvas-CdV5mEQ6.js} +2 -2
  45. package/dist/cdn/chunks/{ModulePreviewCanvas-f4h8r9Lh.js.map → ModulePreviewCanvas-CdV5mEQ6.js.map} +1 -1
  46. package/dist/cdn/chunks/{NumberWithSuffix-Bu_nHJuD.js → NumberWithSuffix-lqQlf0Uk.js} +2 -2
  47. package/dist/cdn/chunks/{NumberWithSuffix-Bu_nHJuD.js.map → NumberWithSuffix-lqQlf0Uk.js.map} +1 -1
  48. package/dist/cdn/chunks/{ParagraphEditor-IpZsg8qo.js → ParagraphEditor-BYoZfURd.js} +6 -6
  49. package/dist/cdn/chunks/{ParagraphEditor-IpZsg8qo.js.map → ParagraphEditor-BYoZfURd.js.map} +1 -1
  50. package/dist/cdn/chunks/{RichTextEditorContent-DDnqZ9cB.js → RichTextEditorContent-BnPRnXxy.js} +3 -3
  51. package/dist/cdn/chunks/{RichTextEditorContent-DDnqZ9cB.js.map → RichTextEditorContent-BnPRnXxy.js.map} +1 -1
  52. package/dist/cdn/chunks/{SaveModuleDialog-CVA5HPCi.js → SaveModuleDialog-C9hUeWyG.js} +2 -2
  53. package/dist/cdn/chunks/{SaveModuleDialog-CVA5HPCi.js.map → SaveModuleDialog-C9hUeWyG.js.map} +1 -1
  54. package/dist/cdn/chunks/{TitleEditor-DU8wm0Rh.js → TitleEditor-wFvnU3Jr.js} +5 -5
  55. package/dist/cdn/chunks/{TitleEditor-DU8wm0Rh.js.map → TitleEditor-wFvnU3Jr.js.map} +1 -1
  56. package/dist/cdn/chunks/{blockTypeIcons-Dm5Oosjp.js → blockTypeIcons-DNMvDz5B.js} +3 -3
  57. package/dist/cdn/chunks/{blockTypeIcons-Dm5Oosjp.js.map → blockTypeIcons-DNMvDz5B.js.map} +1 -1
  58. package/dist/cdn/chunks/{ca-DI1ViqMa.js → ca-CSl--oWR.js} +2 -2
  59. package/dist/cdn/chunks/ca-CSl--oWR.js.map +1 -0
  60. package/dist/{de-q9lTCMre.js → cdn/chunks/de-ZaffrKDP.js} +3 -1
  61. package/dist/cdn/chunks/de-ZaffrKDP.js.map +1 -0
  62. package/dist/cdn/chunks/{en-CR4LItrX.js → en-CHuXeJDt.js} +2 -2
  63. package/dist/cdn/chunks/en-CHuXeJDt.js.map +1 -0
  64. package/dist/cdn/chunks/{es-CEt-lrGd.js → es-CaC8VQjO.js} +2 -2
  65. package/dist/cdn/chunks/es-CaC8VQjO.js.map +1 -0
  66. package/dist/cdn/chunks/{extensions-BGUoo2a5.js → extensions-DxcxIlwT.js} +2 -2
  67. package/dist/cdn/chunks/{extensions-BGUoo2a5.js.map → extensions-DxcxIlwT.js.map} +1 -1
  68. package/dist/cdn/chunks/{features-BSpDuFFR.js → features-B3qgDBHf.js} +702 -671
  69. package/dist/cdn/chunks/features-B3qgDBHf.js.map +1 -0
  70. package/dist/cdn/chunks/{icons-k3XVoRvc.js → icons-kiMqh99T.js} +2 -2
  71. package/dist/cdn/chunks/{icons-k3XVoRvc.js.map → icons-kiMqh99T.js.map} +1 -1
  72. package/dist/cdn/chunks/{media-library-iDq3otm6.js → media-library-C5ogiZ4f.js} +3 -3
  73. package/dist/cdn/chunks/{media-library-iDq3otm6.js.map → media-library-C5ogiZ4f.js.map} +1 -1
  74. package/dist/cdn/chunks/{pt-BR-DvBHY0AA.js → pt-BR-C74zfEWH.js} +2 -2
  75. package/dist/cdn/chunks/pt-BR-C74zfEWH.js.map +1 -0
  76. package/dist/cdn/chunks/{quality-Bb7vN32U.js → quality-BftAn_AJ.js} +2 -2
  77. package/dist/cdn/chunks/{quality-Bb7vN32U.js.map → quality-BftAn_AJ.js.map} +1 -1
  78. package/dist/cdn/chunks/{renderer-cOvtk8HM.js → renderer-Cdlo4MVX.js} +3 -3
  79. package/dist/cdn/chunks/{renderer-cOvtk8HM.js.map → renderer-Cdlo4MVX.js.map} +1 -1
  80. package/dist/cdn/chunks/{src-Ddp969zE.js → src-GBA8oUL2.js} +4 -4
  81. package/dist/cdn/chunks/{src-Ddp969zE.js.map → src-GBA8oUL2.js.map} +1 -1
  82. package/dist/cdn/chunks/{styles-CW_gRVVR.js → styles-B6rdq9JB.js} +9 -9
  83. package/dist/cdn/chunks/{styles-CW_gRVVR.js.map → styles-B6rdq9JB.js.map} +1 -1
  84. package/dist/cdn/editor.css +1 -1
  85. package/dist/cdn/editor.js +13 -12
  86. package/dist/cdn/editor.js.map +1 -1
  87. package/dist/{cdn/chunks/de-q9lTCMre.js → de-ZaffrKDP.js} +1 -3
  88. package/dist/{en-CR4LItrX.js → en-CHuXeJDt.js} +1 -1
  89. package/dist/{es-CEt-lrGd.js → es-CaC8VQjO.js} +1 -1
  90. package/dist/{extensions-Cjd-VAII.js → extensions-B4lu0KkE.js} +2 -2
  91. package/dist/index.d.ts +44 -0
  92. package/dist/keys-WVNarXg8.js +10 -0
  93. package/dist/{pt-BR-DvBHY0AA.js → pt-BR-C74zfEWH.js} +1 -1
  94. package/dist/style.css +1 -1
  95. package/dist/{styles-DJfTblY7.js → styles-mBSbDYeX.js} +25 -25
  96. package/dist/templatical-editor.js +11 -10
  97. package/dist/{useCloudI18n-WbfVWq5k.js → useCloudI18n-CIKI0hCd.js} +1 -1
  98. package/dist/{useEditorCore-DnOG2a_b.js → useEditorCore-CaaHPKjm.js} +703 -672
  99. package/dist/{useI18n-eR1yVW0v.js → useI18n-0EU_JVe7.js} +1 -1
  100. package/dist/{useMergeTag-C3GfSktg.js → useMergeTag-C7v6MVah.js} +2 -2
  101. package/dist/{usePopoverPosition-B3Byo68F.js → usePopoverPosition-BDqqnMeo.js} +1 -1
  102. package/package.json +7 -7
  103. package/dist/cdn/chunks/CloudEditor-1Ms0w691.js.map +0 -1
  104. package/dist/cdn/chunks/ca-DI1ViqMa.js.map +0 -1
  105. package/dist/cdn/chunks/de-q9lTCMre.js.map +0 -1
  106. package/dist/cdn/chunks/en-CR4LItrX.js.map +0 -1
  107. package/dist/cdn/chunks/es-CEt-lrGd.js.map +0 -1
  108. package/dist/cdn/chunks/features-BSpDuFFR.js.map +0 -1
  109. package/dist/cdn/chunks/pt-BR-DvBHY0AA.js.map +0 -1
  110. package/dist/keys-BbDgCU6K.js +0 -10
@@ -1,7 +1,7 @@
1
1
  import { A as e, Et as t, I as n, O as r, Ot as i, R as ee, Y as a, _ as o, c as s, d as c, h as l, l as u, m as d, nt as f, r as p, u as m, w as te, x as ne, z as re } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
2
  import { a as h, t as g } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
3
  import { m as ie, p as ae } from "./dist-DYv_Pttj.js";
4
- import { L as _, S as oe, c as se, m as ce, r as le } from "./keys-BbDgCU6K.js";
4
+ import { C as oe, R as _, c as se, m as ce, r as le } from "./keys-WVNarXg8.js";
5
5
  import { t as v } from "./createLucideIcon-FSF4peHQ.js";
6
6
  import { t as ue } from "./circle-alert-Bhzm-fNA.js";
7
7
  import { t as de } from "./loader-circle-BT38qSm3.js";
@@ -1,11 +1,11 @@
1
1
  import { A as e, Dt as t, N as n, O as r, Ot as i, _ as a, c as o, d as s, l as c, r as l, s as u } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
- import "./useEditorCore-DnOG2a_b.js";
3
- import { L as d, t as f } from "./keys-BbDgCU6K.js";
2
+ import "./useEditorCore-CaaHPKjm.js";
3
+ import { R as d, t as f } from "./keys-WVNarXg8.js";
4
4
  import { t as p } from "./image-up-CDEgJqwA.js";
5
5
  import { t as m } from "./shield-check-YYDhGroE.js";
6
6
  import { t as h } from "./sparkles-CCwQMMMZ.js";
7
7
  import { t as g } from "./_plugin-vue_export-helper-B3ysoDQm.js";
8
- import { n as _ } from "./useCloudI18n-WbfVWq5k.js";
8
+ import { n as _ } from "./useCloudI18n-CIKI0hCd.js";
9
9
  //#region src/cloud/components/AiFeatureMenu.vue?vue&type=script&setup=true&lang.ts
10
10
  var v = {
11
11
  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)]",
@@ -1,6 +1,6 @@
1
1
  import { Et as e, O as t, _ as n, d as r, l as i, nt as a, s as o, u as s, x as c } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
- import { N as l } from "./keys-BbDgCU6K.js";
3
- import { t as u } from "./useI18n-eR1yVW0v.js";
2
+ import { P as l } from "./keys-WVNarXg8.js";
3
+ import { t as u } from "./useI18n-0EU_JVe7.js";
4
4
  import { t as d } from "./circle-alert-Bhzm-fNA.js";
5
5
  import { t as f } from "./triangle-alert-B2g0ALvq.js";
6
6
  //#region src/components/canvas/BlockIssueBadge.vue?vue&type=script&setup=true&lang.ts
@@ -2,15 +2,15 @@ import { A as e, D as t, Dt as n, E as r, Et as i, I as a, K as o, O as s, Ot as
2
2
  import { c as E, o as D, t as O } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
3
  import { t as k } from "./timeouts-Bmi_yePw.js";
4
4
  import { O as A, a as j } from "./dist-DoRIUsfz.js";
5
- import { L as M, T as N, b as ee, t as P } from "./useEditorCore-DnOG2a_b.js";
5
+ import { L as M, T as N, b as ee, t as P } from "./useEditorCore-CaaHPKjm.js";
6
6
  import { m as F } from "./dist-DYv_Pttj.js";
7
- import { i as I } from "./usePopoverPosition-B3Byo68F.js";
8
- import { D as L, M as R, c as z, j as te, l as ne, r as B, s as re, t as ie } from "./keys-BbDgCU6K.js";
9
- import { t as V } from "./useI18n-eR1yVW0v.js";
7
+ import { i as I } from "./usePopoverPosition-BDqqnMeo.js";
8
+ import { M as L, N as R, O as te, c as z, l as ne, r as B, s as re, t as ie } from "./keys-WVNarXg8.js";
9
+ import { t as V } from "./useI18n-0EU_JVe7.js";
10
10
  import { t as H } from "./createLucideIcon-FSF4peHQ.js";
11
11
  import { t as U } from "./check-Cg6Mc2pP.js";
12
12
  import { t as W } from "./circle-alert-Bhzm-fNA.js";
13
- import { a as G, c as ae, d as oe, f as K, i as q, l as se, n as ce, o as le, p as ue, r as de, s as fe, t as pe, u as me } from "./styles-DJfTblY7.js";
13
+ import { a as G, c as ae, d as oe, f as K, i as q, l as se, n as ce, o as le, p as ue, r as de, s as fe, t as pe, u as me } from "./styles-mBSbDYeX.js";
14
14
  import { t as he } from "./clock-m7TwQw4b.js";
15
15
  import { t as J } from "./loader-circle-BT38qSm3.js";
16
16
  import { t as ge } from "./message-circle-BAHcL9S-.js";
@@ -18,8 +18,8 @@ import { t as _e } from "./send-DvMay6bt.js";
18
18
  import { t as Y } from "./sparkles-CCwQMMMZ.js";
19
19
  import { t as X } from "./triangle-alert-B2g0ALvq.js";
20
20
  import { t as Z } from "./_plugin-vue_export-helper-B3ysoDQm.js";
21
- import { n as Q } from "./useCloudI18n-WbfVWq5k.js";
22
- import { d as $ } from "./ColorPicker-CppJgX_T.js";
21
+ import { n as Q } from "./useCloudI18n-CIKI0hCd.js";
22
+ import { d as $ } from "./ColorPicker-DfzDyNKe.js";
23
23
  import { _ as ve, a as ye, c as be, d as xe, f as Se, g as Ce, h as we, l as Te, m as Ee, n as De, o as Oe, p as ke, r as Ae, s as je, t as Me, v as Ne, y as Pe } from "./cloud-BogxOeZu.js";
24
24
  var Fe = H("save", [
25
25
  ["path", {
@@ -279,6 +279,7 @@ function Ve(e) {
279
279
  blockDefaults: t.blockDefaults,
280
280
  customBlocks: [],
281
281
  paletteBlocks: t.paletteBlocks,
282
+ htmlBlockPreview: t.htmlBlockPreview,
282
283
  mergeTags: t.mergeTags,
283
284
  logicTags: t.logicTags,
284
285
  displayConditions: t.displayConditions,
@@ -372,7 +373,7 @@ function Ve(e) {
372
373
  o()?.filterByBlock(e);
373
374
  });
374
375
  }
375
- _(L, A.handleRequestMedia), _(B, h), _(ie, O), _(ne, F), _(te, I), _(R, U), _(re, {
376
+ _(te, A.handleRequestMedia), _(B, h), _(ie, O), _(ne, F), _(L, I), _(R, U), _(re, {
376
377
  plan: g,
377
378
  ai: O,
378
379
  comments: {
@@ -628,7 +629,7 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
628
629
  },
629
630
  emits: ["save"],
630
631
  setup(e) {
631
- let t = h(() => import("./CollaboratorBar-C_EhXQ5R.js")), r = h(() => import("./SnapshotHistory-B38ImqMO.js")), a = h(() => import("./AiFeatureMenu-B1oEJebq.js")), { t: o, format: u } = Q();
632
+ let t = h(() => import("./CollaboratorBar-6PtX-1AS.js")), r = h(() => import("./SnapshotHistory-CmwU3nlN.js")), a = h(() => import("./AiFeatureMenu-zwSmx9ZW.js")), { t: o, format: u } = Q();
632
633
  return (d, f) => (s(), m("header", tt, [
633
634
  p("div", nt, [e.featureFlags.templateLimit.value === null ? w("", !0) : (s(), m("span", rt, c(b(u)(b(o).header.templatesUsed, {
634
635
  used: e.featureFlags.templateCount.value,
@@ -790,7 +791,7 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
790
791
  "module-insert"
791
792
  ],
792
793
  setup(e, { expose: t, emit: n }) {
793
- let r = h(() => import("./AiChatSidebar-CYAbVB2G.js")), i = h(() => import("./CommentsSidebar-C_XLBbo3.js")), a = h(() => import("./DesignReferenceSidebar-Bh9uAZ4B.js")), o = h(() => import("./TemplateScoringPanel-ZhObHWeb.js")), c = h(() => import("./TestEmailModal-DbstIzEf.js")), l = h(() => import("./SaveModuleDialog-CYu5PhBz.js")), d = h(() => import("./ModuleBrowserModal-CXy8Bbv9.js")), f = h(async () => {
794
+ let r = h(() => import("./AiChatSidebar-LxCHMdcj.js")), i = h(() => import("./CommentsSidebar-Cl93TN96.js")), a = h(() => import("./DesignReferenceSidebar-jVrdS8wW.js")), o = h(() => import("./TemplateScoringPanel-CMrfa9Rd.js")), c = h(() => import("./TestEmailModal-zfomMz9i.js")), l = h(() => import("./SaveModuleDialog-BPUly5h3.js")), d = h(() => import("./ModuleBrowserModal-B5IH3-1I.js")), f = h(async () => {
794
795
  try {
795
796
  return (await import("@templatical/media-library")).MediaLibraryModal;
796
797
  } catch {
@@ -1,7 +1,7 @@
1
1
  import { A as e, Dt as t, O as n, Ot as r, _ as i, c as a, d as o, l as s, nt as c, r as l, s as u, u as d } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
- import "./useEditorCore-DnOG2a_b.js";
2
+ import "./useEditorCore-CaaHPKjm.js";
3
3
  import { t as f } from "./createLucideIcon-FSF4peHQ.js";
4
- import { n as p } from "./useCloudI18n-WbfVWq5k.js";
4
+ import { n as p } from "./useCloudI18n-CIKI0hCd.js";
5
5
  import { t as m } from "./readableTextColor-f8Kykfnh.js";
6
6
  var h = f("wifi-off", [
7
7
  ["path", {
@@ -1,8 +1,8 @@
1
1
  import { Dt as e, Et as t, O as n, R as r, Y as i, _ as a, c as o, d as s, h as c, i as ee, l as te, nt as l, s as u, u as d, x as f } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
2
  import { c as ne, s as p, t as re } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
- import { i as ie, n as ae, r as m, t as oe } from "./usePopoverPosition-B3Byo68F.js";
4
- import { I as se, P as ce } from "./keys-BbDgCU6K.js";
5
- import { t as le } from "./useI18n-eR1yVW0v.js";
3
+ import { i as ie, n as ae, r as m, t as oe } from "./usePopoverPosition-BDqqnMeo.js";
4
+ import { F as se, L as ce } from "./keys-WVNarXg8.js";
5
+ import { t as le } from "./useI18n-0EU_JVe7.js";
6
6
  import { t as h } from "./x-Ctg_250T.js";
7
7
  //#region src/constants/styleConstants.ts
8
8
  var g = "tpl:block tpl:mb-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]", _ = "tpl:w-full tpl:h-10 tpl:px-3.5 tpl:py-1.5 tpl:text-sm tpl:border tpl:rounded-[var(--tpl-radius-sm)] tpl:shadow-xs tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:outline-none focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)] placeholder:tpl:text-[var(--tpl-text-dim)]", v = "tpl:w-full tpl:h-10 tpl:px-3.5 tpl:py-1.5 tpl:text-sm tpl:border tpl:rounded-l-[var(--tpl-radius-sm)] tpl:rounded-r-none tpl:border-r-0 tpl:shadow-xs tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:outline-none focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)] placeholder:tpl:text-[var(--tpl-text-dim)]", y = "tpl:flex tpl:items-center tpl:px-2.5 tpl:text-xs tpl:border tpl:border-l-0 tpl:text-[var(--tpl-text-dim)] tpl:bg-[var(--tpl-bg-hover)] tpl:border-[var(--tpl-border)] tpl:rounded-r-[var(--tpl-radius-sm)]", b = "tpl:flex-1 tpl:h-10 tpl:px-3.5 tpl:py-1.5 tpl:text-xs tpl:font-mono tpl:border tpl:rounded-[var(--tpl-radius-sm)] tpl:shadow-xs tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:outline-none focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)]", x = "tpl:rounded-[var(--tpl-radius)] tpl:bg-[var(--tpl-bg-elevated)] tpl:p-4 tpl:border tpl:border-[var(--tpl-border)] tpl:transition-colors tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-bg-hover)]", S = "tpl:flex tpl:size-8 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]", C = "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-primary)] tpl:hover:text-[var(--tpl-primary)]", w = "tpl:w-full tpl:resize-y tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2.5 tpl:py-2 tpl:font-mono tpl:text-xs tpl:text-[var(--tpl-text)] tpl:outline-none tpl:transition-all tpl:duration-150 tpl:placeholder:text-[var(--tpl-text-dim)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]", T = "tpl-btn tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3.5 tpl:py-2 tpl:text-sm tpl:font-medium tpl:whitespace-nowrap tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-primary)] hover:tpl:text-[var(--tpl-bg)] tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50", E = [
@@ -355,7 +355,7 @@ var De = [
355
355
  function N() {
356
356
  v("update:modelValue", "");
357
357
  }
358
- let P = ae(), { toLocal: F } = oe(), I = f(ce, null), L = f(se, null), R = i({
358
+ let P = ae(), { toLocal: F } = oe(), I = f(se, null), L = f(ce, null), R = i({
359
359
  top: 0,
360
360
  left: 0
361
361
  });
@@ -1,7 +1,7 @@
1
1
  import { A as e, Dt as t, Et as n, I as r, O as i, Ot as a, R as o, Y as s, _ as c, c as l, d as u, h as d, l as f, m as ee, nt as p, r as m, s as h, u as g, w as te, z as _ } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
2
  import { a as v, t as y } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
- import { L as b, l as ne, m as re, r as ie } from "./keys-BbDgCU6K.js";
4
- import { t as ae } from "./useI18n-eR1yVW0v.js";
3
+ import { R as b, l as ne, m as re, r as ie } from "./keys-WVNarXg8.js";
4
+ import { t as ae } from "./useI18n-0EU_JVe7.js";
5
5
  import { t as x } from "./createLucideIcon-FSF4peHQ.js";
6
6
  import { t as oe } from "./check-Cg6Mc2pP.js";
7
7
  import { t as se } from "./chevron-down-dClfxKrJ.js";
@@ -11,7 +11,7 @@ import { t as w } from "./send-DvMay6bt.js";
11
11
  import { t as T } from "./trash-2-CRBDolnR.js";
12
12
  import { t as E } from "./x-Ctg_250T.js";
13
13
  import { t as D } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
- import { n as ce } from "./useCloudI18n-WbfVWq5k.js";
14
+ import { n as ce } from "./useCloudI18n-CIKI0hCd.js";
15
15
  import { t as le } from "./formatRelativeTime-CtUU-QZ8.js";
16
16
  var ue = x("chevron-up", [["path", {
17
17
  d: "m18 15-6-6-6 6",
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
2
  import { A as t, Dt as n, O as r, Ot as i, Y as a, _ as o, c as s, d as c, nt as l, r as u, s as d, u as f } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
3
3
  import { p } from "./dist-DYv_Pttj.js";
4
- import { t as m } from "./useI18n-eR1yVW0v.js";
4
+ import { t as m } from "./useI18n-0EU_JVe7.js";
5
5
  //#region src/components/blocks/CountdownBlock.vue?vue&type=script&setup=true&lang.ts
6
6
  var h = {
7
7
  key: 0,
@@ -1,8 +1,8 @@
1
1
  import { A as e, Et as t, O as n, Ot as r, R as i, _ as a, c as o, d as s, h as c, l, nt as u, r as d, s as f } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
- import { t as p } from "./useI18n-eR1yVW0v.js";
3
- import { f as m, t as h } from "./ColorPicker-CppJgX_T.js";
2
+ import { t as p } from "./useI18n-0EU_JVe7.js";
3
+ import { f as m, t as h } from "./ColorPicker-DfzDyNKe.js";
4
4
  import { t as g } from "./ToggleSwitch-DUNuUPsZ.js";
5
- import { n as _, r as v, t as y } from "./NumberWithSuffix-DNi-v4l1.js";
5
+ import { n as _, r as v, t as y } from "./NumberWithSuffix-9FG7mNnn.js";
6
6
  //#region src/components/toolbar/CountdownToolbar.vue?vue&type=script&setup=true&lang.ts
7
7
  var b = ["value"], x = ["value"], S = ["value"], C = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-2" }, w = ["value"], T = { value: "" }, E = ["value"], D = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, O = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, k = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-2" }, A = [
8
8
  "value",
@@ -1,7 +1,7 @@
1
1
  import { Dt as e, Et as t, I as n, O as r, Ot as i, R as ee, T as a, Y as o, _ as s, c, d as l, h as u, l as te, m as d, nt as f, s as ne, u as p, z as re } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
2
  import { a as ie, t as ae } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
3
  import "./timeouts-Bmi_yePw.js";
4
- import { L as m, m as oe, r as se } from "./keys-BbDgCU6K.js";
4
+ import { R as m, m as oe, r as se } from "./keys-WVNarXg8.js";
5
5
  import { t as h } from "./createLucideIcon-FSF4peHQ.js";
6
6
  import { t as ce } from "./circle-alert-Bhzm-fNA.js";
7
7
  import { t as g } from "./image-up-CDEgJqwA.js";
@@ -9,7 +9,7 @@ import { t as _ } from "./upload-BKg6hDRW.js";
9
9
  import { t as v } from "./x-Ctg_250T.js";
10
10
  import { t as le } from "./LoadingTrack-KIcREPlS.js";
11
11
  import { t as y } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
- import { n as ue } from "./useCloudI18n-WbfVWq5k.js";
12
+ import { n as ue } from "./useCloudI18n-CIKI0hCd.js";
13
13
  import { u as de } from "./cloud-BogxOeZu.js";
14
14
  var fe = h("file-image", [
15
15
  ["path", {
@@ -1,6 +1,6 @@
1
1
  import { A as e, Et as t, N as n, O as r, Ot as i, _ as a, c as o, d as s, h as c, l, m as u, nt as d, r as f, s as p, u as m, x as h } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
- import { N as g, m as _ } from "./keys-BbDgCU6K.js";
3
- import { t as v } from "./useI18n-eR1yVW0v.js";
2
+ import { P as g, m as _ } from "./keys-WVNarXg8.js";
3
+ import { t as v } from "./useI18n-0EU_JVe7.js";
4
4
  import { t as y } from "./createLucideIcon-FSF4peHQ.js";
5
5
  import { t as b } from "./circle-alert-Bhzm-fNA.js";
6
6
  import { t as x } from "./info-BNP8yGsK.js";
@@ -1,13 +1,13 @@
1
1
  import { A as e, Dt as t, I as n, N as r, O as i, Ot as a, R as o, Y as s, _ as c, c as l, d as u, g as ee, h as d, l as f, nt as p, r as m, s as h, u as te, z as g } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
2
  import { a as ne, c as _, i as re } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
- import "./useEditorCore-DnOG2a_b.js";
4
- import { L as v, j as ie, m as ae } from "./keys-BbDgCU6K.js";
5
- import { t as oe } from "./useI18n-eR1yVW0v.js";
6
- import { n as se, r as y, t as b } from "./blockTypeIcons-BVIEw0XJ.js";
3
+ import "./useEditorCore-CaaHPKjm.js";
4
+ import { M as ie, R as v, m as ae } from "./keys-WVNarXg8.js";
5
+ import { t as oe } from "./useI18n-0EU_JVe7.js";
6
+ import { n as se, r as y, t as b } from "./blockTypeIcons-Dd0w4T0I.js";
7
7
  import { t as ce } from "./trash-2-CRBDolnR.js";
8
8
  import { t as le } from "./x-Ctg_250T.js";
9
- import { n as ue } from "./useCloudI18n-WbfVWq5k.js";
10
- import { t as de } from "./TplModal-BXnx3sLr.js";
9
+ import { n as ue } from "./useCloudI18n-CIKI0hCd.js";
10
+ import { t as de } from "./TplModal-eGFG7k-y.js";
11
11
  //#region src/cloud/components/ModuleBrowserModal.vue?vue&type=script&setup=true&lang.ts
12
12
  var fe = {
13
13
  role: "dialog",
@@ -46,7 +46,7 @@ var fe = {
46
46
  props: { visible: { type: Boolean } },
47
47
  emits: ["close", "insert"],
48
48
  setup(c, { emit: B }) {
49
- let Te = c, V = B, Ee = ee(() => import("./ModulePreviewCanvas-CJC9kyZN.js")), { t: De } = oe(), { t: H } = ue(), U = v(ie, "ModuleBrowserModal"), W = v(ae, "ModuleBrowserModal"), G = s(""), K = s(null), q = s(null), J = s("end"), Y = h(() => {
49
+ let Te = c, V = B, Ee = ee(() => import("./ModulePreviewCanvas-CYOLWoZ9.js")), { t: De } = oe(), { t: H } = ue(), U = v(ie, "ModuleBrowserModal"), W = v(ae, "ModuleBrowserModal"), G = s(""), K = s(null), q = s(null), J = s("end"), Y = h(() => {
50
50
  let e = U.modules.value;
51
51
  if (!G.value) return e;
52
52
  let t = G.value.toLowerCase();
@@ -1,6 +1,6 @@
1
1
  import { A as e, Dt as t, M as n, N as r, O as i, _ as a, c as o, d as s, l as c, nt as l, r as u, s as d, x as f } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
- import { I as p, _ as m, a as h, d as g, f as _, h as v, i as y, l as b, m as x, n as S, p as C, r as w, v as T, y as E } from "./useEditorCore-DnOG2a_b.js";
3
- import { o as D } from "./keys-BbDgCU6K.js";
2
+ import { I as p, _ as m, a as h, d as g, f as _, h as v, i as y, l as b, m as x, n as S, p as C, r as w, v as T, y as E } from "./useEditorCore-CaaHPKjm.js";
3
+ import { o as D } from "./keys-WVNarXg8.js";
4
4
  //#region src/components/blocks/PreviewSectionBlock.vue?vue&type=script&setup=true&lang.ts
5
5
  var O = { class: "tpl:w-full" }, k = { class: "tpl:flex tpl:gap-0" }, A = /* @__PURE__ */ a({
6
6
  name: "PreviewSectionBlock",
@@ -1,5 +1,5 @@
1
1
  import { A as e, Dt as t, Et as n, N as r, O as i, Ot as a, _ as o, c as s, d as c, j as l, l as u, nt as d, r as f, s as p, u as m } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
- import { h, m as g, p as _ } from "./ColorPicker-CppJgX_T.js";
2
+ import { h, m as g, p as _ } from "./ColorPicker-DfzDyNKe.js";
3
3
  //#region src/components/SlidingPillSelect.vue?vue&type=script&setup=true&lang.ts
4
4
  var v = [
5
5
  "aria-checked",
@@ -1,16 +1,16 @@
1
1
  import { A as e, Dt as t, Et as n, N as r, O as i, Ot as a, W as o, Y as s, _ as c, c as l, d as u, h as d, i as f, l as p, m, nt as h, r as g, s as _, u as v, x as y } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
2
  import { c as b, s as x } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
- import { D as S, E as C, S as w, x as T } from "./useEditorCore-DnOG2a_b.js";
4
- import { i as E, n as D } from "./usePopoverPosition-B3Byo68F.js";
5
- import { I as O, L as k, P as A, g as ee, m as te, w as ne, x as re } from "./keys-BbDgCU6K.js";
6
- import { t as j } from "./useI18n-eR1yVW0v.js";
3
+ import { D as S, E as C, S as w, x as T } from "./useEditorCore-CaaHPKjm.js";
4
+ import { i as E, n as D } from "./usePopoverPosition-BDqqnMeo.js";
5
+ import { F as O, L as k, R as A, S as ee, T as te, g as ne, m as re } from "./keys-WVNarXg8.js";
6
+ import { t as j } from "./useI18n-0EU_JVe7.js";
7
7
  import { t as M } from "./createLucideIcon-FSF4peHQ.js";
8
- import { a as ie, i as ae, n as N, r as oe, t as P } from "./RichTextEditorContent-DBaCrvH0.js";
8
+ import { a as ie, i as ae, n as N, r as oe, t as P } from "./RichTextEditorContent-DCzmVeyb.js";
9
9
  import { n as se, t as ce } from "./scan-line-IAMjPtRw.js";
10
10
  import { t as le } from "./loader-circle-BT38qSm3.js";
11
11
  import { n as ue, r as de, t as fe } from "./text-align-start-BwsA6QzC.js";
12
12
  import { t as F } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
- import { c as pe, o as me, r as he, s as ge, t as I } from "./ColorPicker-CppJgX_T.js";
13
+ import { c as pe, o as me, r as he, s as ge, t as I } from "./ColorPicker-DfzDyNKe.js";
14
14
  var L = M("list-ordered", [
15
15
  ["path", {
16
16
  d: "M11 5h10",
@@ -305,7 +305,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
305
305
  "add-logic-tag"
306
306
  ],
307
307
  setup(e, { emit: n }) {
308
- let r = e, o = n, s = y(A, null), c = y(O, null), b = k(ee, "ParagraphToolbar"), x = D(), S = y(ne, null), C = y(re, null), w = y(te, null), T = _(() => (S?.isOpen.value ?? !1) || (C?.isOpen.value ?? !1)), { t: E } = j(), M = b.fonts;
308
+ let r = e, o = n, s = y(O, null), c = y(k, null), b = A(ne, "ParagraphToolbar"), x = D(), S = y(te, null), C = y(ee, null), w = y(re, null), T = _(() => (S?.isOpen.value ?? !1) || (C?.isOpen.value ?? !1)), { t: E } = j(), M = b.fonts;
309
309
  function N(e) {
310
310
  r.editor?.chain().focus().insertContent(e).run();
311
311
  }
@@ -636,7 +636,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
636
636
  import("./dist-BXR1aBJV.js"),
637
637
  import("./dist-BE9m_i60.js"),
638
638
  import("./dist-BPPeDw62.js"),
639
- import("./extensions-Cjd-VAII.js")
639
+ import("./extensions-B4lu0KkE.js")
640
640
  ]);
641
641
  return {
642
642
  TiptapEditor: o,
@@ -1,11 +1,11 @@
1
1
  import { C as e, Dt as t, N as n, O as r, Ot as i, P as a, _ as o, c as s, d as c, h as l, i as u, l as d, m as f, nt as p, s as m, u as h, x as g, z as _ } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
2
  import { a as v, c as y } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
- import { n as b } from "./usePopoverPosition-B3Byo68F.js";
4
- import { I as x, P as S, m as C } from "./keys-BbDgCU6K.js";
5
- import { t as w } from "./useI18n-eR1yVW0v.js";
3
+ import { n as b } from "./usePopoverPosition-BDqqnMeo.js";
4
+ import { F as x, L as S, m as C } from "./keys-WVNarXg8.js";
5
+ import { t as w } from "./useI18n-0EU_JVe7.js";
6
6
  import { t as T } from "./createLucideIcon-FSF4peHQ.js";
7
7
  import { t as E } from "./x-Ctg_250T.js";
8
- import { t as D } from "./ColorPicker-CppJgX_T.js";
8
+ import { t as D } from "./ColorPicker-DfzDyNKe.js";
9
9
  var O = T("bold", [["path", {
10
10
  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",
11
11
  key: "mg9rjx"
@@ -67,7 +67,7 @@ var O = T("bold", [["path", {
67
67
  "update:dialogRef"
68
68
  ]),
69
69
  setup(e, { emit: n }) {
70
- let o = a(e, "linkUrl"), f = a(e, "linkColor"), T = a(e, "dialogRef"), O = n, k = g(S, null), A = g(x, null), U = b(), W = g(C, null), G = m(() => W?.content.value.settings.linkColor || "#2c85de"), { t: K } = w();
70
+ let o = a(e, "linkUrl"), f = a(e, "linkColor"), T = a(e, "dialogRef"), O = n, k = g(x, null), A = g(S, null), U = b(), W = g(C, null), G = m(() => W?.content.value.settings.linkColor || "#2c85de"), { t: K } = w();
71
71
  return (n, a) => p(U) ? (r(), d(u, {
72
72
  key: 0,
73
73
  to: p(U)
@@ -1,12 +1,12 @@
1
1
  import { A as e, Dt as t, Et as n, I as r, O as i, Ot as a, R as o, Y as s, _ as c, c as l, d as u, h as d, l as f, m as p, nt as m, r as h, s as g, u as ee, z as _ } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
2
  import { a as v } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
- import "./useEditorCore-DnOG2a_b.js";
4
- import { L as y, j as b, m as x } from "./keys-BbDgCU6K.js";
5
- import { t as S } from "./useI18n-eR1yVW0v.js";
3
+ import "./useEditorCore-CaaHPKjm.js";
4
+ import { M as y, R as b, m as x } from "./keys-WVNarXg8.js";
5
+ import { t as S } from "./useI18n-0EU_JVe7.js";
6
6
  import { t as te } from "./loader-circle-BT38qSm3.js";
7
- import { n as ne } from "./useCloudI18n-WbfVWq5k.js";
7
+ import { n as ne } from "./useCloudI18n-CIKI0hCd.js";
8
8
  import { t as re } from "./ToggleSwitch-DUNuUPsZ.js";
9
- import { t as C } from "./TplModal-BXnx3sLr.js";
9
+ import { t as C } from "./TplModal-eGFG7k-y.js";
10
10
  //#region src/cloud/components/SaveModuleDialog.vue?vue&type=script&setup=true&lang.ts
11
11
  var w = ["aria-busy"], T = {
12
12
  id: "tpl-save-module-title",
@@ -26,7 +26,7 @@ var w = ["aria-busy"], T = {
26
26
  },
27
27
  emits: ["close", "saved"],
28
28
  setup(c, { emit: R }) {
29
- let z = c, B = R, { t: V } = S(), { t: H } = ne(), U = y(x, "SaveModuleDialog"), W = y(b, "SaveModuleDialog"), G = s(""), K = s(/* @__PURE__ */ new Set()), q = s(!1), J = s(null), Y = g(() => U.content.value.blocks);
29
+ let z = c, B = R, { t: V } = S(), { t: H } = ne(), U = b(x, "SaveModuleDialog"), W = b(y, "SaveModuleDialog"), G = s(""), K = s(/* @__PURE__ */ new Set()), q = s(!1), J = s(null), Y = g(() => U.content.value.blocks);
30
30
  function X(e, t) {
31
31
  let n = e.type;
32
32
  return `${V.blocks[n] ?? e.type} ${t + 1}`;
@@ -1,13 +1,13 @@
1
1
  import { A as e, Et as t, I as n, O as r, Ot as i, R as a, Y as o, _ as s, c, d as l, h as u, nt as d, r as f, s as p, u as m } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
2
  import { c as h, t as g } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
- import "./useEditorCore-DnOG2a_b.js";
4
- import { i as _ } from "./usePopoverPosition-B3Byo68F.js";
5
- import { t as v } from "./useI18n-eR1yVW0v.js";
3
+ import "./useEditorCore-CaaHPKjm.js";
4
+ import { i as _ } from "./usePopoverPosition-BDqqnMeo.js";
5
+ import { t as v } from "./useI18n-0EU_JVe7.js";
6
6
  import { t as y } from "./createLucideIcon-FSF4peHQ.js";
7
7
  import { t as b } from "./chevron-down-dClfxKrJ.js";
8
8
  import { t as x } from "./clock-m7TwQw4b.js";
9
9
  import { t as S } from "./loader-circle-BT38qSm3.js";
10
- import { n as C } from "./useCloudI18n-WbfVWq5k.js";
10
+ import { n as C } from "./useCloudI18n-CIKI0hCd.js";
11
11
  import { t as w } from "./formatRelativeTime-CtUU-QZ8.js";
12
12
  var T = y("chevron-left", [["path", {
13
13
  d: "m15 18-6-6 6-6",
@@ -1,6 +1,6 @@
1
1
  import { A as e, Dt as t, Et as n, I as r, N as i, O as a, Ot as o, R as ee, Y as s, _ as c, c as l, d as u, h as d, l as f, m as p, nt as m, r as h, u as g, x as te } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
2
  import { t as ne } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
- import { L as _, M as re, S as ie, m as v } from "./keys-BbDgCU6K.js";
3
+ import { C as re, N as ie, R as _, m as v } from "./keys-WVNarXg8.js";
4
4
  import { t as y } from "./createLucideIcon-FSF4peHQ.js";
5
5
  import { t as b } from "./chevron-down-dClfxKrJ.js";
6
6
  import { t as x } from "./circle-alert-Bhzm-fNA.js";
@@ -13,7 +13,7 @@ import { t as oe } from "./triangle-alert-B2g0ALvq.js";
13
13
  import { t as se } from "./x-Ctg_250T.js";
14
14
  import { t as ce } from "./LoadingTrack-KIcREPlS.js";
15
15
  import { t as D } from "./_plugin-vue_export-helper-B3ysoDQm.js";
16
- import { n as le } from "./useCloudI18n-WbfVWq5k.js";
16
+ import { n as le } from "./useCloudI18n-CIKI0hCd.js";
17
17
  var O = y("shield-x", [
18
18
  ["path", {
19
19
  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",
@@ -91,7 +91,7 @@ var P = {
91
91
  props: { visible: { type: Boolean } },
92
92
  emits: ["close"],
93
93
  setup(c, { emit: y }) {
94
- let D = c, G = y, { t: K } = le(), q = _(v, "TemplateScoringPanel"), J = _(re, "TemplateScoringPanel"), Y = te(ie, []), X = s({
94
+ let D = c, G = y, { t: K } = le(), q = _(v, "TemplateScoringPanel"), J = _(ie, "TemplateScoringPanel"), Y = te(re, []), X = s({
95
95
  spam: !0,
96
96
  readability: !0,
97
97
  accessibility: !0,
@@ -1,9 +1,9 @@
1
1
  import { A as e, Et as t, I as n, O as r, Ot as i, R as a, Y as o, _ as s, c, d as l, h as u, l as d, m as f, nt as p, r as m, u as h, z as g } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
2
  import { i as _ } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
- import "./useEditorCore-DnOG2a_b.js";
3
+ import "./useEditorCore-CaaHPKjm.js";
4
4
  import { t as v } from "./loader-circle-BT38qSm3.js";
5
- import { n as y } from "./useCloudI18n-WbfVWq5k.js";
6
- import { t as b } from "./TplModal-BXnx3sLr.js";
5
+ import { n as y } from "./useCloudI18n-CIKI0hCd.js";
6
+ import { t as b } from "./TplModal-eGFG7k-y.js";
7
7
  //#region src/cloud/components/TestEmailModal.vue?vue&type=script&setup=true&lang.ts
8
8
  var x = ["aria-busy"], S = {
9
9
  id: "tpl-test-email-title",
@@ -1,9 +1,9 @@
1
1
  import { Dt as e, Et as t, O as n, Ot as r, W as i, _ as a, c as o, d as s, h as c, i as l, l as u, m as d, nt as f, r as p, s as m, u as h, x as g } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
- import { S as ee, x as te } from "./useEditorCore-DnOG2a_b.js";
3
- import { n as ne } from "./usePopoverPosition-B3Byo68F.js";
4
- import { I as _, P as v, w as y, x as b } from "./keys-BbDgCU6K.js";
5
- import { t as re } from "./useI18n-eR1yVW0v.js";
6
- import { a as ie, i as ae, n as oe, r as se, t as ce } from "./RichTextEditorContent-DBaCrvH0.js";
2
+ import { S as ee, x as te } from "./useEditorCore-CaaHPKjm.js";
3
+ import { n as ne } from "./usePopoverPosition-BDqqnMeo.js";
4
+ import { F as _, L as v, S as y, T as b } from "./keys-WVNarXg8.js";
5
+ import { t as re } from "./useI18n-0EU_JVe7.js";
6
+ import { a as ie, i as ae, n as oe, r as se, t as ce } from "./RichTextEditorContent-DCzmVeyb.js";
7
7
  import { n as x, t as S } from "./scan-line-IAMjPtRw.js";
8
8
  import { t as C } from "./loader-circle-BT38qSm3.js";
9
9
  //#region src/components/blocks/TitleEditor.vue?vue&type=script&setup=true&lang.ts
@@ -24,7 +24,7 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
24
24
  },
25
25
  emits: ["done"],
26
26
  setup(a, { emit: P }) {
27
- let F = a, I = P, L = g(v, null), R = g(_, null), z = ne(), B = g(y, null), le = g(b, null), V = m(() => (B?.isOpen.value ?? !1) || (le?.isOpen.value ?? !1)), { t: H } = re(), { editor: U, EditorContent: W, isLoading: G, initError: ue, retry: de, showLinkDialog: fe, linkUrl: K, linkColor: q, linkDialogRef: J, canRequestMergeTag: Y, canInsertLogicTag: X, openLinkDialog: Z, insertLink: pe, removeLink: me, closeLinkDialog: he, handleLinkKeydown: ge, handleAddMergeTag: Q, handleAddLogicTag: $ } = te({
27
+ let F = a, I = P, L = g(_, null), R = g(v, null), z = ne(), B = g(b, null), le = g(y, null), V = m(() => (B?.isOpen.value ?? !1) || (le?.isOpen.value ?? !1)), { t: H } = re(), { editor: U, EditorContent: W, isLoading: G, initError: ue, retry: de, showLinkDialog: fe, linkUrl: K, linkColor: q, linkDialogRef: J, canRequestMergeTag: Y, canInsertLogicTag: X, openLinkDialog: Z, insertLink: pe, removeLink: me, closeLinkDialog: he, handleLinkKeydown: ge, handleAddMergeTag: Q, handleAddLogicTag: $ } = te({
28
28
  blockId: () => F.block.id,
29
29
  blockContent: () => F.block.content,
30
30
  onDone: () => I("done"),
@@ -34,7 +34,7 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
34
34
  import("./dist-BReUTadj.js").then((e) => e.r),
35
35
  import("./dist-i_Z7t67A.js"),
36
36
  import("./dist-CHLoeloJ.js"),
37
- import("./extensions-Cjd-VAII.js")
37
+ import("./extensions-B4lu0KkE.js")
38
38
  ]);
39
39
  return {
40
40
  TiptapEditor: a,
@@ -1,8 +1,8 @@
1
1
  import { O as e, R as t, Y as n, _ as r, c as i, d as a, h as o, i as s, j as c, l, nt as u, s as d, u as f, x as p } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
2
  import { c as m, t as h } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
- import { D as g } from "./useEditorCore-DnOG2a_b.js";
4
- import { n as _ } from "./usePopoverPosition-B3Byo68F.js";
5
- import { I as v } from "./keys-BbDgCU6K.js";
3
+ import { D as g } from "./useEditorCore-CaaHPKjm.js";
4
+ import { n as _ } from "./usePopoverPosition-BDqqnMeo.js";
5
+ import { L as v } from "./keys-WVNarXg8.js";
6
6
  //#region src/components/TplModal.vue?vue&type=script&setup=true&lang.ts
7
7
  var y = ["data-tpl-theme"], b = /* @__PURE__ */ r({
8
8
  __name: "TplModal",
@@ -1,4 +1,4 @@
1
- import { A as e, F as t, M as n, j as r, k as i } from "./useEditorCore-DnOG2a_b.js";
1
+ import { A as e, F as t, M as n, j as r, k as i } from "./useEditorCore-CaaHPKjm.js";
2
2
  import { t as a } from "./createLucideIcon-FSF4peHQ.js";
3
3
  var o = a("columns-3", [
4
4
  ["rect", {
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.16.5",
3
- "initialGzipBytes": 282785,
4
- "initialRawBytes": 1015111,
2
+ "version": "0.17.0",
3
+ "initialGzipBytes": 283153,
4
+ "initialRawBytes": 1016238,
5
5
  "initialFileCount": 42,
6
- "lazyGzipBytes": 181398,
7
- "lazyRawBytes": 595924,
6
+ "lazyGzipBytes": 181489,
7
+ "lazyRawBytes": 596120,
8
8
  "lazyFileCount": 46,
9
- "generatedAt": "2026-07-20T20:11:17.315Z"
9
+ "generatedAt": "2026-07-20T20:23:21.192Z"
10
10
  }
@@ -327,7 +327,7 @@ var e = {
327
327
  content: "Contingut HTML",
328
328
  preview: "Bloc HTML personalitzat",
329
329
  empty: "Afegeix contingut HTML al panell",
330
- sanitizationHint: "Els scripts i els elements no segurs s'eliminen en exportar."
330
+ sanitizationHint: "L'HTML s'exporta tal qual i no es depura — assegura't que el contingut sigui segur."
331
331
  },
332
332
  blockSettings: {
333
333
  spacing: "Espaiat",
@@ -1,5 +1,5 @@
1
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-D840DIZB.js";
2
- import { Et as d, Vt as f, ct as p, fn as m, gt as h, ht as g, ot as _ } from "./features-BSpDuFFR.js";
2
+ import { Et as d, Vt as f, ct as p, fn as m, gt as h, ht as g, ot as _ } from "./features-B3qgDBHf.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)]",
@@ -56,4 +56,4 @@ var v = {
56
56
  //#endregion
57
57
  export { C as default };
58
58
 
59
- //# sourceMappingURL=AiFeatureMenu-CuIg4yrB.js.map
59
+ //# sourceMappingURL=AiFeatureMenu-CtXsam7G.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AiFeatureMenu-CuIg4yrB.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-CtXsam7G.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,5 +1,5 @@
1
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-D840DIZB.js";
2
- import { Bt as l, Mt as u, cn as d, ft as f } from "./features-BSpDuFFR.js";
2
+ import { Bt as l, Mt as u, cn as d, ft as f } from "./features-B3qgDBHf.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",
@@ -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-BHEl_Hs7.js.map
33
+ //# sourceMappingURL=BlockIssueBadge-DR7cpDfQ.js.map