@templatical/editor 0.5.0 → 0.6.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 (156) hide show
  1. package/dist/AccessibilityPanel-CvQGLdu6.js +108 -0
  2. package/dist/{AiChatSidebar-Cg206ewI.js → AiChatSidebar-Br9dhkIB.js} +17 -16
  3. package/dist/{AiFeatureMenu-vatvCD-m.js → AiFeatureMenu-Ceewb3uB.js} +13 -13
  4. package/dist/BlockA11yBadge-CXDLqkcJ.js +34 -0
  5. package/dist/{CloudEditor-Bxe8Jt9u.js → CloudEditor-D_flODpm.js} +306 -217
  6. package/dist/{CollaboratorBar-Dv7VT09N.js → CollaboratorBar-BcSxXVY-.js} +4 -4
  7. package/dist/{CommentsSidebar-BAma2apG.js → CommentsSidebar-DceMRyIS.js} +26 -25
  8. package/dist/{CountdownBlock-Ce3RFNpM.js → CountdownBlock-BNSj1jvJ.js} +2 -2
  9. package/dist/{CountdownToolbar-Bo3Jaiky.js → CountdownToolbar-ClJr2GzL.js} +3 -3
  10. package/dist/{DesignReferenceSidebar-B8DDnLHQ.js → DesignReferenceSidebar-50qFipmW.js} +30 -29
  11. package/dist/{LoadingTrack-DhxulLPM.js → LoadingTrack-B0CWFHXQ.js} +1 -1
  12. package/dist/{ModuleBrowserModal-DAnqdlyq.js → ModuleBrowserModal-BnSdG4DE.js} +10 -10
  13. package/dist/{ModulePreviewCanvas-CXApEVEG.js → ModulePreviewCanvas-B78PuZdk.js} +2 -2
  14. package/dist/{NumberWithSuffix-BysfchFp.js → NumberWithSuffix-DkXUez9t.js} +3 -3
  15. package/dist/{ParagraphEditor-Bjdakcoz.js → ParagraphEditor-CPBYk2m3.js} +44 -43
  16. package/dist/{RichTextEditorContent-jxPxfbfZ.js → RichTextEditorContent-DYkIauIk.js} +4 -4
  17. package/dist/{SaveModuleDialog-CZXltahx.js → SaveModuleDialog-Df__VToK.js} +7 -7
  18. package/dist/{SnapshotHistory-OqEkaA0W.js → SnapshotHistory-QBTbVrEK.js} +9 -9
  19. package/dist/{TemplateScoringPanel-BmAHdgLF.js → TemplateScoringPanel-4GTNHej5.js} +29 -27
  20. package/dist/{TestEmailModal-CvEK6MTy.js → TestEmailModal-DaDMACHY.js} +4 -4
  21. package/dist/{TitleEditor-CxCD70Bs.js → TitleEditor-PHShl4tS.js} +11 -11
  22. package/dist/{TplModal-C2Hoz1it.js → TplModal-DzlNkBYQ.js} +2 -2
  23. package/dist/_plugin-vue_export-helper-B0hnzhyu.js +8 -0
  24. package/dist/accessibility-e8JYu_zd.js +27 -0
  25. package/dist/{blockTypeIcons-DpJa9awv.js → blockTypeIcons-D0wkSpP9.js} +2 -2
  26. package/dist/bundle-stats.json +8 -8
  27. package/dist/cdn/chunks/AccessibilityPanel-DmQIqpp1.js +97 -0
  28. package/dist/cdn/chunks/AccessibilityPanel-DmQIqpp1.js.map +1 -0
  29. package/dist/cdn/chunks/{AiFeatureMenu-BggCm6wN.js → AiFeatureMenu-D0kJ0FMv.js} +5 -5
  30. package/dist/cdn/chunks/{AiFeatureMenu-BggCm6wN.js.map → AiFeatureMenu-D0kJ0FMv.js.map} +1 -1
  31. package/dist/cdn/chunks/BlockA11yBadge-DWi7e6UQ.js +33 -0
  32. package/dist/cdn/chunks/BlockA11yBadge-DWi7e6UQ.js.map +1 -0
  33. package/dist/cdn/chunks/{CloudEditor-CTNhzoZ1.js → CloudEditor-ulKjC0Ag.js} +253 -166
  34. package/dist/cdn/chunks/CloudEditor-ulKjC0Ag.js.map +1 -0
  35. package/dist/cdn/chunks/{CollaboratorBar-De-3lvDy.js → CollaboratorBar-Bp9LwcWB.js} +6 -6
  36. package/dist/cdn/chunks/{CollaboratorBar-De-3lvDy.js.map → CollaboratorBar-Bp9LwcWB.js.map} +1 -1
  37. package/dist/cdn/chunks/{CountdownBlock-CUAl8R-c.js → CountdownBlock-XFPbUKXw.js} +2 -2
  38. package/dist/cdn/chunks/{CountdownBlock-CUAl8R-c.js.map → CountdownBlock-XFPbUKXw.js.map} +1 -1
  39. package/dist/cdn/chunks/{CountdownToolbar-3zLcGAcb.js → CountdownToolbar-DndLWUgz.js} +3 -3
  40. package/dist/cdn/chunks/{CountdownToolbar-3zLcGAcb.js.map → CountdownToolbar-DndLWUgz.js.map} +1 -1
  41. package/dist/cdn/chunks/{ModuleBrowserModal-CxICY31A.js → ModuleBrowserModal-ClY6A8bi.js} +7 -7
  42. package/dist/cdn/chunks/{ModuleBrowserModal-CxICY31A.js.map → ModuleBrowserModal-ClY6A8bi.js.map} +1 -1
  43. package/dist/cdn/chunks/{ModulePreviewCanvas-Cv0zciNS.js → ModulePreviewCanvas-eQExlHRD.js} +18 -18
  44. package/dist/cdn/chunks/{ModulePreviewCanvas-Cv0zciNS.js.map → ModulePreviewCanvas-eQExlHRD.js.map} +1 -1
  45. package/dist/cdn/chunks/{NumberWithSuffix-BaVxnNI4.js → NumberWithSuffix-Cf5C9rpj.js} +4 -4
  46. package/dist/cdn/chunks/{NumberWithSuffix-BaVxnNI4.js.map → NumberWithSuffix-Cf5C9rpj.js.map} +1 -1
  47. package/dist/cdn/chunks/{ParagraphEditor-BrzlI8vp.js → ParagraphEditor-B5AvuetS.js} +57 -57
  48. package/dist/cdn/chunks/ParagraphEditor-B5AvuetS.js.map +1 -0
  49. package/dist/cdn/chunks/{RichTextEditorContent-9vq4MRDp.js → RichTextEditorContent-hCk4SA8U.js} +4 -4
  50. package/dist/cdn/chunks/{RichTextEditorContent-9vq4MRDp.js.map → RichTextEditorContent-hCk4SA8U.js.map} +1 -1
  51. package/dist/cdn/chunks/{SaveModuleDialog-Lco3k1xX.js → SaveModuleDialog-Borv00Kh.js} +3 -3
  52. package/dist/cdn/chunks/{SaveModuleDialog-Lco3k1xX.js.map → SaveModuleDialog-Borv00Kh.js.map} +1 -1
  53. package/dist/cdn/chunks/{TitleEditor-BiiEtH7x.js → TitleEditor-BkzRNsEg.js} +12 -12
  54. package/dist/cdn/chunks/TitleEditor-BkzRNsEg.js.map +1 -0
  55. package/dist/cdn/chunks/blockTypeIcons-Dlw0LR_y.js +22 -0
  56. package/dist/cdn/chunks/{blockTypeIcons-DWhn7E7O.js.map → blockTypeIcons-Dlw0LR_y.js.map} +1 -1
  57. package/dist/cdn/chunks/{de-CGu9U1iv.js → de-Ce-LbJ2J.js} +1 -1
  58. package/dist/cdn/chunks/{de-CGu9U1iv.js.map → de-Ce-LbJ2J.js.map} +1 -1
  59. package/dist/{de-tDioEErp.js → cdn/chunks/de-D8CnZxV9.js} +24 -4
  60. package/dist/cdn/chunks/de-D8CnZxV9.js.map +1 -0
  61. package/dist/{de-CbSb23fl.js → cdn/chunks/de-RQrZR56a.js} +8 -0
  62. package/dist/cdn/chunks/{de-Db6I9YdS.js.map → de-RQrZR56a.js.map} +1 -1
  63. package/dist/cdn/chunks/{emojiData-Vv_m5TSB.js → emojiData-EMFlj6FJ.js} +1 -1
  64. package/dist/cdn/chunks/{emojiData-Vv_m5TSB.js.map → emojiData-EMFlj6FJ.js.map} +1 -1
  65. package/dist/{en-W2p7oPaa.js → cdn/chunks/en-8FHaQv4V.js} +24 -4
  66. package/dist/cdn/chunks/en-8FHaQv4V.js.map +1 -0
  67. package/dist/{en-2fvenFu0.js → cdn/chunks/en-Bl1ecfRF.js} +8 -0
  68. package/dist/cdn/chunks/{en-BbqBJ2Q3.js.map → en-Bl1ecfRF.js.map} +1 -1
  69. package/dist/cdn/chunks/{en-C3WMCISl.js → en-DiCWK5fG.js} +1 -1
  70. package/dist/cdn/chunks/{en-C3WMCISl.js.map → en-DiCWK5fG.js.map} +1 -1
  71. package/dist/cdn/chunks/{extensions-C6oPJqKD.js → extensions-Bseybosy.js} +48 -36
  72. package/dist/cdn/chunks/{extensions-C6oPJqKD.js.map → extensions-Bseybosy.js.map} +1 -1
  73. package/dist/cdn/chunks/{features-DV4PhoBs.js → features-C256qERn.js} +828 -765
  74. package/dist/cdn/chunks/features-C256qERn.js.map +1 -0
  75. package/dist/cdn/chunks/{icons-LJ8U8lWI.js → icons-BfGy6HC_.js} +99 -52
  76. package/dist/cdn/chunks/icons-BfGy6HC_.js.map +1 -0
  77. package/dist/cdn/chunks/{media-library-CWQAvfov.js → media-library-hjXJlR6s.js} +217 -217
  78. package/dist/cdn/chunks/{media-library-CWQAvfov.js.map → media-library-hjXJlR6s.js.map} +1 -1
  79. package/dist/cdn/chunks/quality-CqLOOUnE.js +1404 -0
  80. package/dist/cdn/chunks/quality-CqLOOUnE.js.map +1 -0
  81. package/dist/cdn/chunks/{readableTextColor-Cd_cgWO_.js → readableTextColor-DhoK4XiZ.js} +1 -1
  82. package/dist/cdn/chunks/{readableTextColor-Cd_cgWO_.js.map → readableTextColor-DhoK4XiZ.js.map} +1 -1
  83. package/dist/cdn/chunks/{dist-DFfcnJJB.js → renderer-Dbtez0lY.js} +178 -126
  84. package/dist/cdn/chunks/renderer-Dbtez0lY.js.map +1 -0
  85. package/dist/cdn/chunks/{src-CVBDXDBH.js → src-MOXq0pRK.js} +11 -11
  86. package/dist/cdn/chunks/{src-CVBDXDBH.js.map → src-MOXq0pRK.js.map} +1 -1
  87. package/dist/cdn/chunks/{styles-CFnn-xE6.js → styles-COCYlkQY.js} +577 -485
  88. package/dist/cdn/chunks/styles-COCYlkQY.js.map +1 -0
  89. package/dist/cdn/chunks/{tiptap-kGWe8qnA.js → tiptap-CX3vCeHQ.js} +2 -2
  90. package/dist/cdn/chunks/{tiptap-kGWe8qnA.js.map → tiptap-CX3vCeHQ.js.map} +1 -1
  91. package/dist/cdn/editor.css +1 -1
  92. package/dist/cdn/editor.js +87 -86
  93. package/dist/cdn/editor.js.map +1 -1
  94. package/dist/{check-Om8IxvJb.js → check-Da05j8yl.js} +1 -1
  95. package/dist/{chevron-down-SG7QNtDl.js → chevron-down-R2uY34iD.js} +1 -1
  96. package/dist/{circle-alert-De74azaX.js → circle-alert-DZuGWPX-.js} +1 -1
  97. package/dist/{clock-Dr7rX_PG.js → clock-CRp2sIub.js} +1 -1
  98. package/dist/{cloud-B1NAFg44.js → cloud-WfWdqZVK.js} +1 -1
  99. package/dist/{_plugin-vue_export-helper-GRmvIR5A.js → createLucideIcon-C3pa2siy.js} +2 -6
  100. package/dist/{cdn/chunks/de-DEg-6TsA.js → de-Brqvgr43.js} +22 -6
  101. package/dist/{cdn/chunks/de-Db6I9YdS.js → de-DCaaCE5s.js} +6 -2
  102. package/dist/{dist-CuyhAnuE.js → dist-B1IR0bpH.js} +65 -53
  103. package/dist/{dist-QoJxR1uP.js → dist-BFawx6IS.js} +1 -1
  104. package/dist/{dist-H7npgW0s.js → dist-BaQIYPsn.js} +1 -1
  105. package/dist/{dist-C4m7p7Wb.js → dist-Cp0zXPAD.js} +1 -1
  106. package/dist/{dist--8ZUsIQD.js → dist-D6uC2xhi.js} +1 -1
  107. package/dist/{dist-BMMiVjHs.js → dist-D90y8dvT.js} +3 -3
  108. package/dist/{dist--e2w6FN-.js → dist-DDJIWTRY.js} +1 -1
  109. package/dist/{dist-e0ylhlSV.js → dist-DJmnUmW9.js} +2 -1
  110. package/dist/{dist-BOSn1353.js → dist-DjviJBCi.js} +1 -1
  111. package/dist/{dist-BsiDC2rP.js → dist-KoBJjK1G.js} +1 -1
  112. package/dist/{dist-BNZS_qhu.js → dist-aRzjfSRN.js} +1 -1
  113. package/dist/{dist-3AzSJz2x.js → dist-us-RpCWN.js} +1 -1
  114. package/dist/{dist-DPsMHsAW.js → dist-wzMIGj-D.js} +1 -1
  115. package/dist/{cdn/chunks/en-BbqBJ2Q3.js → en-DXCyK4-X.js} +6 -2
  116. package/dist/{cdn/chunks/en-DpHxxBnH.js → en-WDVp87TE.js} +22 -6
  117. package/dist/{extensions-BQjnrlGT.js → extensions-CUcl9Ok4.js} +37 -25
  118. package/dist/{image-up-10kxuulB.js → image-up-MBZKKg9p.js} +1 -1
  119. package/dist/index.d.ts +25 -8
  120. package/dist/info-CJEC7piy.js +19 -0
  121. package/dist/{keys-BeW4IrXP.js → keys-ciNfSSGj.js} +3 -3
  122. package/dist/{loader-circle-IS16T05j.js → loader-circle-DsY5Yg33.js} +1 -1
  123. package/dist/{message-circle-3R472hDc.js → message-circle-yElBbR2C.js} +1 -1
  124. package/dist/{refresh-cw-CpmOfpPK.js → refresh-cw-CE_AGtn8.js} +3 -18
  125. package/dist/{scan-line-J_fzG2Wo.js → scan-line-D0vcUekt.js} +1 -1
  126. package/dist/{send-DRkFf4hP.js → send-DH4oDQqC.js} +1 -1
  127. package/dist/{shield-check-DtXk7JKN.js → shield-check-CfJgs2Hd.js} +1 -1
  128. package/dist/{sparkles-CD7TiNiC.js → sparkles-CvRXGqFs.js} +1 -1
  129. package/dist/style.css +1 -1
  130. package/dist/{styles-CdrFC7-K.js → styles-B58wYIn4.js} +590 -477
  131. package/dist/templatical-editor.js +90 -89
  132. package/dist/{text-align-start-B8M9hruh.js → text-align-start-BT9VUDxK.js} +1 -1
  133. package/dist/{trash-2-cEVwp-r_.js → trash-2-DbP2Y6t2.js} +1 -1
  134. package/dist/{triangle-alert-8CkexIzx.js → triangle-alert-aOXceTSe.js} +1 -1
  135. package/dist/{useCloudI18n-D0Fi0hBU.js → useCloudI18n-BuIwR6OE.js} +1 -1
  136. package/dist/{useEditorCore-JdLcaPeJ.js → useEditorCore-Dz-qbVXX.js} +2100 -2049
  137. package/dist/{useI18n-Jp3X6Q0t.js → useI18n-lb2DHDiu.js} +1 -1
  138. package/dist/{useMergeTag-BfFykpYl.js → useMergeTag-CBwKnnNB.js} +4 -4
  139. package/dist/{x-BNc1bVzp.js → x-u2oVmjN_.js} +1 -1
  140. package/package.json +10 -5
  141. package/dist/cdn/chunks/CloudEditor-CTNhzoZ1.js.map +0 -1
  142. package/dist/cdn/chunks/ParagraphEditor-BrzlI8vp.js.map +0 -1
  143. package/dist/cdn/chunks/TitleEditor-BiiEtH7x.js.map +0 -1
  144. package/dist/cdn/chunks/blockTypeIcons-DWhn7E7O.js +0 -22
  145. package/dist/cdn/chunks/de-DEg-6TsA.js.map +0 -1
  146. package/dist/cdn/chunks/dist-DFfcnJJB.js.map +0 -1
  147. package/dist/cdn/chunks/en-DpHxxBnH.js.map +0 -1
  148. package/dist/cdn/chunks/features-DV4PhoBs.js.map +0 -1
  149. package/dist/cdn/chunks/icons-LJ8U8lWI.js.map +0 -1
  150. package/dist/cdn/chunks/styles-CFnn-xE6.js.map +0 -1
  151. /package/dist/{dist-CmrXHeJS.js → dist-iLBdeBDR.js} +0 -0
  152. /package/dist/{emojiData-DcYt1YZ3.js → emojiData-PQyVa4bU.js} +0 -0
  153. /package/dist/{formatRelativeTime-MungD2xr.js → formatRelativeTime-WvH3Au71.js} +0 -0
  154. /package/dist/{liquid.browser-BohVA1YU.js → liquid.browser-CdMv1BTn.js} +0 -0
  155. /package/dist/{readableTextColor-Uc7ntzXo.js → readableTextColor-CY3SiRnt.js} +0 -0
  156. /package/dist/{styleConstants-Beu6EmBc.js → styleConstants-fWzlIIwN.js} +0 -0
@@ -1,8 +1,8 @@
1
1
  import { M as e, Mt as t, Ot as n, P as r, S as i, _ as a, d as o, g as s, h as c, it as l, m as u, p as d } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
2
- import "./useEditorCore-JdLcaPeJ.js";
3
- import { n as f } from "./_plugin-vue_export-helper-GRmvIR5A.js";
4
- import { n as p } from "./useCloudI18n-D0Fi0hBU.js";
5
- import { t as m } from "./readableTextColor-Uc7ntzXo.js";
2
+ import "./useEditorCore-Dz-qbVXX.js";
3
+ import { t as f } from "./createLucideIcon-C3pa2siy.js";
4
+ import { n as p } from "./useCloudI18n-BuIwR6OE.js";
5
+ import { t as m } from "./readableTextColor-CY3SiRnt.js";
6
6
  var h = f("wifi-off", [
7
7
  ["path", {
8
8
  d: "M12 20h.01",
@@ -1,16 +1,17 @@
1
1
  import { Dt as e, H as t, M as n, Mt as r, O as i, Ot as a, P as o, Q as s, S as c, V as l, _ as u, b as d, d as f, g as p, h as m, it as h, m as g, p as _, s as v, t as y, y as ee, z as b } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
2
- import { D as x, l as te, p as ne, r as re } from "./keys-BeW4IrXP.js";
3
- import { t as ie } from "./useI18n-Jp3X6Q0t.js";
4
- import { n as S, t as C } from "./_plugin-vue_export-helper-GRmvIR5A.js";
5
- import { t as ae } from "./check-Om8IxvJb.js";
6
- import { t as oe } from "./chevron-down-SG7QNtDl.js";
7
- import { t as w } from "./loader-circle-IS16T05j.js";
8
- import { t as T } from "./message-circle-3R472hDc.js";
9
- import { t as E } from "./send-DRkFf4hP.js";
10
- import { t as D } from "./trash-2-cEVwp-r_.js";
11
- import { t as O } from "./x-BNc1bVzp.js";
12
- import { n as se } from "./useCloudI18n-D0Fi0hBU.js";
13
- import { t as ce } from "./formatRelativeTime-MungD2xr.js";
2
+ import { O as x, i as te, m as ne, u as re } from "./keys-ciNfSSGj.js";
3
+ import { t as ie } from "./useI18n-lb2DHDiu.js";
4
+ import { t as S } from "./createLucideIcon-C3pa2siy.js";
5
+ import { t as ae } from "./check-Da05j8yl.js";
6
+ import { t as oe } from "./chevron-down-R2uY34iD.js";
7
+ import { t as C } from "./loader-circle-DsY5Yg33.js";
8
+ import { t as w } from "./message-circle-yElBbR2C.js";
9
+ import { t as T } from "./send-DH4oDQqC.js";
10
+ import { t as E } from "./trash-2-DbP2Y6t2.js";
11
+ import { t as D } from "./x-u2oVmjN_.js";
12
+ import { t as O } from "./_plugin-vue_export-helper-B0hnzhyu.js";
13
+ import { n as se } from "./useCloudI18n-BuIwR6OE.js";
14
+ import { t as ce } from "./formatRelativeTime-WvH3Au71.js";
14
15
  var le = S("chevron-up", [["path", {
15
16
  d: "m18 15-6-6-6 6",
16
17
  key: "153udz"
@@ -94,12 +95,12 @@ var le = S("chevron-up", [["path", {
94
95
  }, gt = {
95
96
  key: 1,
96
97
  class: "tpl-comments-input-wrapper tpl:flex tpl:min-h-[68px] tpl:items-end tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]"
97
- }, _t = ["placeholder", "disabled"], vt = ["disabled"], A = /* @__PURE__ */ C(/* @__PURE__ */ c({
98
+ }, _t = ["placeholder", "disabled"], vt = ["disabled"], A = /* @__PURE__ */ O(/* @__PURE__ */ c({
98
99
  __name: "CommentsSidebar",
99
100
  props: { visible: { type: Boolean } },
100
101
  emits: ["close", "filterBlock"],
101
- setup(c, { expose: S, emit: C }) {
102
- let A = c, j = C, { format: M } = ie(), { t: N } = se(), P = x(ne, "CommentsSidebar"), yt = x(re, "CommentsSidebar"), F = x(te, "CommentsSidebar"), I = s("unresolved"), L = s(null), R = s(""), z = s(null), B = s(""), V = s(null), H = s(""), U = s(/* @__PURE__ */ new Set()), W = s(null), G = s(null), bt = _(() => yt.userConfig?.id ?? null), xt = _(() => {
102
+ setup(c, { expose: S, emit: O }) {
103
+ let A = c, j = O, { format: M } = ie(), { t: N } = se(), P = x(ne, "CommentsSidebar"), yt = x(te, "CommentsSidebar"), F = x(re, "CommentsSidebar"), I = s("unresolved"), L = s(null), R = s(""), z = s(null), B = s(""), V = s(null), H = s(""), U = s(/* @__PURE__ */ new Set()), W = s(null), G = s(null), bt = _(() => yt.userConfig?.id ?? null), xt = _(() => {
103
104
  let e = /* @__PURE__ */ new Set();
104
105
  for (let t of P.content.value.blocks) if (e.add(t.id), t.type === "section") for (let n of t.children) for (let t of n) e.add(t.id);
105
106
  return e;
@@ -198,7 +199,7 @@ var le = S("chevron-up", [["path", {
198
199
  }, {
199
200
  default: l(() => [c.visible ? (n(), u("div", fe, [
200
201
  g("div", pe, [g("div", me, [
201
- d(h(T), {
202
+ d(h(w), {
202
203
  size: 13,
203
204
  "stroke-width": 2
204
205
  }),
@@ -207,7 +208,7 @@ var le = S("chevron-up", [["path", {
207
208
  ]), g("button", {
208
209
  class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
209
210
  onClick: s[0] ||= (e) => j("close")
210
- }, [d(h(O), {
211
+ }, [d(h(D), {
211
212
  size: 14,
212
213
  "stroke-width": 2
213
214
  })])]),
@@ -226,11 +227,11 @@ var le = S("chevron-up", [["path", {
226
227
  onClick: s[3] ||= (e) => q("block", h(P).state.selectedBlockId ?? void 0)
227
228
  }, r(h(N).comments.filterBlock), 3)) : p("", !0)
228
229
  ]),
229
- g("div", _e, [h(F).isLoading.value ? (n(), u("div", ve, [d(h(w), {
230
+ g("div", _e, [h(F).isLoading.value ? (n(), u("div", ve, [d(h(C), {
230
231
  class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
231
232
  size: 24,
232
233
  "stroke-width": 2
233
- })])) : K.value.length === 0 ? (n(), u("div", ye, [d(h(T), {
234
+ })])) : K.value.length === 0 ? (n(), u("div", ye, [d(h(w), {
234
235
  size: 32,
235
236
  "stroke-width": 1.5,
236
237
  class: "tpl:text-[var(--tpl-text-dim)]"
@@ -268,7 +269,7 @@ var le = S("chevron-up", [["path", {
268
269
  class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
269
270
  title: h(N).comments.delete,
270
271
  onClick: (e) => X(i.id)
271
- }, [d(h(D), {
272
+ }, [d(h(E), {
272
273
  size: 12,
273
274
  "stroke-width": 2
274
275
  })], 8, je)) : p("", !0)
@@ -353,7 +354,7 @@ var le = S("chevron-up", [["path", {
353
354
  class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
354
355
  title: h(N).comments.delete,
355
356
  onClick: (e) => X(a.id)
356
- }, [d(h(D), {
357
+ }, [d(h(E), {
357
358
  size: 11,
358
359
  "stroke-width": 2
359
360
  })], 8, et)) : p("", !0)])]),
@@ -395,13 +396,13 @@ var le = S("chevron-up", [["path", {
395
396
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-colors tpl:duration-150 tpl:disabled:opacity-40 tpl:text-[var(--tpl-primary)]",
396
397
  disabled: !B.value.trim() || h(F).isSubmitting.value,
397
398
  onClick: (e) => kt(i.id)
398
- }, [d(h(E), {
399
+ }, [d(h(T), {
399
400
  size: 14,
400
401
  "stroke-width": 2
401
402
  })], 8, pt), g("button", {
402
403
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
403
404
  onClick: s[11] ||= (e) => Dt()
404
- }, [d(h(O), {
405
+ }, [d(h(D), {
405
406
  size: 14,
406
407
  "stroke-width": 2
407
408
  })])])])])) : p("", !0)]),
@@ -421,12 +422,12 @@ var le = S("chevron-up", [["path", {
421
422
  class: "tpl-comments-send-btn tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-all tpl:duration-150 tpl:disabled:opacity-40 tpl:text-[var(--tpl-primary)]",
422
423
  disabled: !R.value.trim() || h(F).isSubmitting.value,
423
424
  onClick: Z
424
- }, [h(F).isSubmitting.value ? (n(), m(h(w), {
425
+ }, [h(F).isSubmitting.value ? (n(), m(h(C), {
425
426
  key: 0,
426
427
  class: "tpl-spinner",
427
428
  size: 16,
428
429
  "stroke-width": 2
429
- })) : (n(), m(h(E), {
430
+ })) : (n(), m(h(T), {
430
431
  key: 1,
431
432
  size: 16,
432
433
  "stroke-width": 2
@@ -1,7 +1,7 @@
1
1
  import { r as e } from "./rolldown-runtime-BZGGJVDF.js";
2
2
  import { M as t, Mt as n, Ot as r, P as i, Q as a, S as o, _ as s, d as c, g as l, it as u, m as d, p as f } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
3
- import { o as p } from "./dist-CuyhAnuE.js";
4
- import { t as m } from "./useI18n-Jp3X6Q0t.js";
3
+ import { o as p } from "./dist-B1IR0bpH.js";
4
+ import { t as m } from "./useI18n-lb2DHDiu.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,7 +1,7 @@
1
1
  import { Dt as e, M as t, Mt as n, P as r, S as i, V as a, _ as o, b as s, d as c, h as l, it as u, m as d, p as f, y as p } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
2
- import { t as m } from "./useI18n-Jp3X6Q0t.js";
3
- import { f as h } from "./styleConstants-Beu6EmBc.js";
4
- import { i as g, n as _, r as v, t as y } from "./NumberWithSuffix-BysfchFp.js";
2
+ import { t as m } from "./useI18n-lb2DHDiu.js";
3
+ import { f as h } from "./styleConstants-fWzlIIwN.js";
4
+ import { i as g, n as _, r as v, t as y } from "./NumberWithSuffix-DkXUez9t.js";
5
5
  //#region src/components/toolbar/CheckboxItem.vue?vue&type=script&setup=true&lang.ts
6
6
  var b = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text)]" }, x = ["checked"], S = /* @__PURE__ */ i({
7
7
  __name: "CheckboxItem",
@@ -1,14 +1,15 @@
1
- import { Dt as e, H as t, M as n, Mt as r, Ot as i, Q as a, S as o, V as ee, _ as s, b as c, g as l, h as te, it as u, m as d, p as f, s as p, t as ne, y as m, z as re } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
1
+ import { Dt as e, H as t, M as n, Mt as r, Ot as i, Q as a, S as o, V as ee, _ as s, b as c, g as l, h as te, it as u, m as d, p as f, s as ne, t as re, y as p, z as ie } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
2
2
  import "./timeouts-BSGxjuUF.js";
3
- import { D as h, p as ie, r as ae } from "./keys-BeW4IrXP.js";
4
- import { n as g, t as _ } from "./_plugin-vue_export-helper-GRmvIR5A.js";
5
- import { t as oe } from "./circle-alert-De74azaX.js";
6
- import { t as v } from "./image-up-10kxuulB.js";
7
- import { t as y } from "./x-BNc1bVzp.js";
8
- import { t as se } from "./LoadingTrack-DhxulLPM.js";
9
- import { n as ce } from "./useCloudI18n-D0Fi0hBU.js";
10
- import { u as le } from "./cloud-B1NAFg44.js";
11
- var ue = g("file-image", [
3
+ import { O as m, i as ae, m as oe } from "./keys-ciNfSSGj.js";
4
+ import { t as h } from "./createLucideIcon-C3pa2siy.js";
5
+ import { t as se } from "./circle-alert-DZuGWPX-.js";
6
+ import { t as g } from "./image-up-MBZKKg9p.js";
7
+ import { t as _ } from "./x-u2oVmjN_.js";
8
+ import { t as v } from "./LoadingTrack-B0CWFHXQ.js";
9
+ import { t as y } from "./_plugin-vue_export-helper-B0hnzhyu.js";
10
+ import { n as ce } from "./useCloudI18n-BuIwR6OE.js";
11
+ import { u as le } from "./cloud-WfWdqZVK.js";
12
+ var ue = h("file-image", [
12
13
  ["path", {
13
14
  d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
14
15
  key: "1oefj6"
@@ -27,7 +28,7 @@ var ue = g("file-image", [
27
28
  d: "m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",
28
29
  key: "wt3hpn"
29
30
  }]
30
- ]), b = g("file-text", [
31
+ ]), b = h("file-text", [
31
32
  ["path", {
32
33
  d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
33
34
  key: "1oefj6"
@@ -48,7 +49,7 @@ var ue = g("file-image", [
48
49
  d: "M16 17H8",
49
50
  key: "z1uh3a"
50
51
  }]
51
- ]), de = g("upload", [
52
+ ]), de = h("upload", [
52
53
  ["path", {
53
54
  d: "M12 3v12",
54
55
  key: "1x0j5s"
@@ -82,16 +83,16 @@ var ue = g("file-image", [
82
83
  }, R = { class: "tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text)]" }, ge = { class: "tpl:flex tpl:gap-2" }, _e = {
83
84
  key: 1,
84
85
  class: "tpl:flex tpl:items-start tpl:gap-2 tpl:rounded-lg tpl:px-3 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-danger-light)] tpl:text-[var(--tpl-danger)]"
85
- }, ve = ["disabled"], ye = { class: "tpl:m-0 tpl:pt-1 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, z = /* @__PURE__ */ _(/* @__PURE__ */ o({
86
+ }, ve = ["disabled"], ye = { class: "tpl:m-0 tpl:pt-1 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, z = /* @__PURE__ */ y(/* @__PURE__ */ o({
86
87
  __name: "DesignReferenceSidebar",
87
88
  props: {
88
89
  visible: { type: Boolean },
89
90
  hasExistingBlocks: { type: Boolean }
90
91
  },
91
92
  emits: ["close", "apply"],
92
- setup(o, { emit: g }) {
93
- let _ = o, z = g, { t: B } = ce(), be = h(ie, "DesignReferenceSidebar"), V = le({
94
- authManager: h(ae, "DesignReferenceSidebar"),
93
+ setup(o, { emit: h }) {
94
+ let y = o, z = h, { t: B } = ce(), be = m(oe, "DesignReferenceSidebar"), V = le({
95
+ authManager: m(ae, "DesignReferenceSidebar"),
95
96
  getTemplateId: () => be.state.template?.id ?? null,
96
97
  onApply: (e) => z("apply", e)
97
98
  }), H = a(null), U = a("image"), W = a(null), G = a(""), K = a(null), q = a(!1), J = a(!1), Y = f(() => V.isGenerating.value ? !1 : W.value !== null);
@@ -139,7 +140,7 @@ var ue = g("file-image", [
139
140
  }
140
141
  function $() {
141
142
  if (!Y.value) return;
142
- if (_.hasExistingBlocks && !q.value) {
143
+ if (y.hasExistingBlocks && !q.value) {
143
144
  q.value = !0;
144
145
  return;
145
146
  }
@@ -150,9 +151,9 @@ var ue = g("file-image", [
150
151
  function Te() {
151
152
  q.value = !1;
152
153
  }
153
- return re(() => _.visible, (e) => {
154
+ return ie(() => y.visible, (e) => {
154
155
  e || (q.value = !1);
155
- }), (a, f) => (n(), te(ne, {
156
+ }), (a, f) => (n(), te(re, {
156
157
  "enter-active-class": "tpl-design-slide-enter-active",
157
158
  "enter-from-class": "tpl:translate-x-full",
158
159
  "enter-to-class": "tpl:translate-x-0",
@@ -160,16 +161,16 @@ var ue = g("file-image", [
160
161
  "leave-from-class": "tpl:translate-x-0",
161
162
  "leave-to-class": "tpl:translate-x-full"
162
163
  }, {
163
- default: ee(() => [o.visible ? (n(), s("div", fe, [d("div", pe, [d("div", me, [c(u(v), {
164
+ default: ee(() => [o.visible ? (n(), s("div", fe, [d("div", pe, [d("div", me, [c(u(g), {
164
165
  size: 13,
165
166
  "stroke-width": 2
166
167
  }), d("span", null, r(u(B).designReference.title), 1)]), d("button", {
167
168
  class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
168
169
  onClick: f[0] ||= (e) => z("close")
169
- }, [c(u(y), {
170
+ }, [c(u(_), {
170
171
  size: 14,
171
172
  "stroke-width": 2
172
- })])]), d("div", he, [u(V).isGenerating.value ? (n(), s("div", x, [d("div", S, [c(se), d("p", C, r(u(B).designReference.generating), 1)])])) : (n(), s("div", w, [
173
+ })])]), d("div", he, [u(V).isGenerating.value ? (n(), s("div", x, [d("div", S, [c(v), d("p", C, r(u(B).designReference.generating), 1)])])) : (n(), s("div", w, [
173
174
  d("div", T, [d("button", {
174
175
  class: "tpl:flex tpl:flex-1 tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:px-2 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
175
176
  style: i({
@@ -181,7 +182,7 @@ var ue = g("file-image", [
181
182
  }, [c(u(ue), {
182
183
  size: 12,
183
184
  "stroke-width": 2
184
- }), m(" " + r(u(B).designReference.uploadImage), 1)], 4), d("button", {
185
+ }), p(" " + r(u(B).designReference.uploadImage), 1)], 4), d("button", {
185
186
  class: "tpl:flex tpl:flex-1 tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:px-2 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
186
187
  style: i({
187
188
  backgroundColor: U.value === "pdf" ? "var(--tpl-bg)" : "transparent",
@@ -192,7 +193,7 @@ var ue = g("file-image", [
192
193
  }, [c(u(b), {
193
194
  size: 12,
194
195
  "stroke-width": 2
195
- }), m(" " + r(u(B).designReference.uploadPdf), 1)], 4)]),
196
+ }), p(" " + r(u(B).designReference.uploadPdf), 1)], 4)]),
196
197
  d("div", null, [W.value ? (n(), s("div", E, [d("div", D, [K.value ? (n(), s("img", {
197
198
  key: 0,
198
199
  src: K.value,
@@ -205,7 +206,7 @@ var ue = g("file-image", [
205
206
  }), d("span", A, r(W.value.name), 1)])), d("button", {
206
207
  class: "tpl:absolute tpl:top-2 tpl:right-2 tpl:rounded-full tpl:p-1 tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:shadow-[var(--tpl-shadow)]",
207
208
  onClick: Q
208
- }, [c(u(y), {
209
+ }, [c(u(_), {
209
210
  size: 12,
210
211
  "stroke-width": 2
211
212
  })])])])) : (n(), s("div", {
@@ -240,7 +241,7 @@ var ue = g("file-image", [
240
241
  class: e(["tpl:min-h-[72px] tpl:w-full tpl:resize-none tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3 tpl:py-2 tpl:font-sans tpl:text-sm tpl:outline-none tpl:transition-colors tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)]", ["tpl-design-prompt-input"]]),
241
242
  placeholder: u(B).designReference.promptPlaceholder,
242
243
  rows: "3"
243
- }, null, 8, I), [[p, G.value]])]),
244
+ }, null, 8, I), [[ne, G.value]])]),
244
245
  q.value ? (n(), s("div", L, [d("p", R, r(u(B).designReference.replaceWarning), 1), d("div", ge, [d("button", {
245
246
  class: "tpl:flex-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:text-[var(--tpl-text-muted)] tpl:border tpl:border-[var(--tpl-border)]",
246
247
  style: { "background-color": "transparent" },
@@ -249,7 +250,7 @@ var ue = g("file-image", [
249
250
  class: "tpl:flex-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
250
251
  onClick: $
251
252
  }, r(u(B).designReference.replaceConfirm), 1)])])) : l("", !0),
252
- u(V).error.value ? (n(), s("div", _e, [c(u(oe), {
253
+ u(V).error.value ? (n(), s("div", _e, [c(u(se), {
253
254
  size: 14,
254
255
  "stroke-width": 2,
255
256
  class: "tpl:mt-0.5 tpl:shrink-0"
@@ -259,10 +260,10 @@ var ue = g("file-image", [
259
260
  class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:px-4 tpl:py-2.5 tpl:text-sm tpl:font-medium tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
260
261
  disabled: !Y.value,
261
262
  onClick: $
262
- }, [c(u(v), {
263
+ }, [c(u(g), {
263
264
  size: 16,
264
265
  "stroke-width": 2
265
- }), m(" " + r(u(B).designReference.generate), 1)], 8, ve)),
266
+ }), p(" " + r(u(B).designReference.generate), 1)], 8, ve)),
266
267
  d("p", ye, r(u(B).aiMenu.disclaimer), 1)
267
268
  ]))])])) : l("", !0)]),
268
269
  _: 1
@@ -1,5 +1,5 @@
1
1
  import { M as e, _ as t } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
2
- import { t as n } from "./_plugin-vue_export-helper-GRmvIR5A.js";
2
+ import { t as n } from "./_plugin-vue_export-helper-B0hnzhyu.js";
3
3
  //#region src/components/LoadingTrack.vue
4
4
  var r = {}, i = { class: "tpl-loading-track" };
5
5
  function a(n, r) {
@@ -1,13 +1,13 @@
1
1
  import { H as e, L as t, M as n, Mt as r, Ot as i, P as a, Q as o, S as s, V as ee, _ as c, b as l, d as u, g as te, h as d, it as f, m as p, o as ne, p as m, s as re, u as h, x as ie, z as ae } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
2
- import "./useEditorCore-JdLcaPeJ.js";
3
- import { D as g, S as oe, p as se } from "./keys-BeW4IrXP.js";
4
- import { t as ce } from "./useI18n-Jp3X6Q0t.js";
5
- import { n as _ } from "./_plugin-vue_export-helper-GRmvIR5A.js";
6
- import { n as v, t as y } from "./blockTypeIcons-DpJa9awv.js";
7
- import { t as le } from "./trash-2-cEVwp-r_.js";
8
- import { t as ue } from "./x-BNc1bVzp.js";
9
- import { n as de } from "./useCloudI18n-D0Fi0hBU.js";
10
- import { t as fe } from "./TplModal-C2Hoz1it.js";
2
+ import "./useEditorCore-Dz-qbVXX.js";
3
+ import { C as oe, O as g, m as se } from "./keys-ciNfSSGj.js";
4
+ import { t as ce } from "./useI18n-lb2DHDiu.js";
5
+ import { t as _ } from "./createLucideIcon-C3pa2siy.js";
6
+ import { n as v, t as y } from "./blockTypeIcons-D0wkSpP9.js";
7
+ import { t as le } from "./trash-2-DbP2Y6t2.js";
8
+ import { t as ue } from "./x-u2oVmjN_.js";
9
+ import { n as de } from "./useCloudI18n-BuIwR6OE.js";
10
+ import { t as fe } from "./TplModal-DzlNkBYQ.js";
11
11
  var pe = _("search", [["path", {
12
12
  d: "m21 21-4.34-4.34",
13
13
  key: "14j7rj"
@@ -53,7 +53,7 @@ var pe = _("search", [["path", {
53
53
  props: { visible: { type: Boolean } },
54
54
  emits: ["close", "insert"],
55
55
  setup(s, { emit: _ }) {
56
- let B = s, V = _, Ee = ie(() => import("./ModulePreviewCanvas-CXApEVEG.js")), { t: De } = ce(), { t: H } = de(), U = g(oe, "ModuleBrowserModal"), W = g(se, "ModuleBrowserModal"), G = o(""), K = o(null), q = o(null), J = o("end"), Y = m(() => {
56
+ let B = s, V = _, Ee = ie(() => import("./ModulePreviewCanvas-B78PuZdk.js")), { t: De } = ce(), { t: H } = de(), U = g(oe, "ModuleBrowserModal"), W = g(se, "ModuleBrowserModal"), G = o(""), K = o(null), q = o(null), J = o("end"), Y = m(() => {
57
57
  let e = U.modules.value;
58
58
  if (!G.value) return e;
59
59
  let t = G.value.toLowerCase();
@@ -1,6 +1,6 @@
1
1
  import { E as e, I as t, L as n, M as r, Ot as i, P as a, S as o, _ as s, d as c, h as l, it as u, m as d, p as f } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
2
- import { N as p, _ as m, a as h, f as g, g as _, h as v, i as y, m as b, n as x, p as S, r as C, u as w, v as T, y as E } from "./useEditorCore-JdLcaPeJ.js";
3
- import { o as D } from "./keys-BeW4IrXP.js";
2
+ import { N as p, _ as m, a as h, f as g, g as _, h as v, i as y, m as b, n as x, p as S, r as C, u as w, v as T, y as E } from "./useEditorCore-Dz-qbVXX.js";
3
+ import { s as D } from "./keys-ciNfSSGj.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__ */ o({
6
6
  name: "PreviewSectionBlock",
@@ -1,7 +1,7 @@
1
1
  import { Dt as e, F as t, L as n, M as r, Mt as i, Ot as a, P as o, Q as s, S as c, V as l, _ as u, b as d, d as f, g as p, h as m, it as h, l as ee, m as g, p as _, t as v } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
2
- import { t as y } from "./dist-CuyhAnuE.js";
3
- import { t as te } from "./useI18n-Jp3X6Q0t.js";
4
- import { h as b, i as x, m as S, p as C, u as ne } from "./styleConstants-Beu6EmBc.js";
2
+ import { t as y } from "./dist-B1IR0bpH.js";
3
+ import { t as te } from "./useI18n-lb2DHDiu.js";
4
+ import { h as b, i as x, m as S, p as C, u as ne } from "./styleConstants-fWzlIIwN.js";
5
5
  //#region ../../node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/math.js
6
6
  var w = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, T = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n;
7
7
  360 / (Math.PI * 2);
@@ -1,14 +1,15 @@
1
1
  import { Dt as e, E as t, L as n, M as r, Mt as i, Ot as a, P as o, Q as s, S as c, _ as l, b as u, d, f, g as p, h as m, it as h, l as g, m as _, p as v, q as y, u as b, y as x } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
2
- import { C as S, b as C, w } from "./useEditorCore-JdLcaPeJ.js";
3
- import { t as T } from "./dist-CuyhAnuE.js";
4
- import { D as E, E as D, m as O, w as k } from "./keys-BeW4IrXP.js";
5
- import { t as A } from "./useI18n-Jp3X6Q0t.js";
6
- import { n as j, t as M } from "./_plugin-vue_export-helper-GRmvIR5A.js";
7
- import { a as ee, i as N, n as P, r as te, t as F } from "./RichTextEditorContent-jxPxfbfZ.js";
8
- import { t as ne } from "./loader-circle-IS16T05j.js";
9
- import { t as re } from "./scan-line-J_fzG2Wo.js";
10
- import { n as ie, r as I, t as L } from "./text-align-start-B8M9hruh.js";
11
- import { a as R, o as z, s as B } from "./styleConstants-Beu6EmBc.js";
2
+ import { C as S, b as C, w } from "./useEditorCore-Dz-qbVXX.js";
3
+ import { t as T } from "./dist-B1IR0bpH.js";
4
+ import { D as E, O as D, T as O, h as k } from "./keys-ciNfSSGj.js";
5
+ import { t as A } from "./useI18n-lb2DHDiu.js";
6
+ import { t as j } from "./createLucideIcon-C3pa2siy.js";
7
+ import { a as ee, i as M, n as N, r as P, t as F } from "./RichTextEditorContent-DYkIauIk.js";
8
+ import { t as te } from "./loader-circle-DsY5Yg33.js";
9
+ import { t as ne } from "./scan-line-D0vcUekt.js";
10
+ import { n as re, r as ie, t as I } from "./text-align-start-BT9VUDxK.js";
11
+ import { t as L } from "./_plugin-vue_export-helper-B0hnzhyu.js";
12
+ import { a as R, o as z, s as B } from "./styleConstants-fWzlIIwN.js";
12
13
  var V = j("list-ordered", [
13
14
  ["path", {
14
15
  d: "M11 5h10",
@@ -241,7 +242,7 @@ var V = j("list-ordered", [
241
242
  function pe(e, t) {
242
243
  return r(), l("span", fe);
243
244
  }
244
- var Z = /* @__PURE__ */ M(de, [["render", pe]]), me = [
245
+ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
245
246
  "value",
246
247
  "aria-label",
247
248
  "title"
@@ -294,11 +295,11 @@ var Z = /* @__PURE__ */ M(de, [["render", pe]]), me = [
294
295
  editor: {},
295
296
  toolbarPosition: {},
296
297
  isLoading: { type: Boolean },
297
- mergeTagEnabled: { type: Boolean }
298
+ canRequestMergeTag: { type: Boolean }
298
299
  },
299
300
  emits: ["open-link-dialog", "add-merge-tag"],
300
301
  setup(e, { emit: n }) {
301
- let o = e, s = n, c = t(k, null), g = t(D, null), v = E(O, "ParagraphToolbar"), { t: y } = A(), b = v.fonts;
302
+ let o = e, s = n, c = t(O, null), g = t(E, null), v = D(k, "ParagraphToolbar"), { t: y } = A(), b = v.fonts;
302
303
  function S(e) {
303
304
  o.editor?.chain().focus().insertContent(e).run();
304
305
  }
@@ -317,14 +318,14 @@ var Z = /* @__PURE__ */ M(de, [["render", pe]]), me = [
317
318
  let t = o.editor?.chain().focus();
318
319
  e ? t?.setColor(e).run() : t?.unsetColor().run();
319
320
  }
320
- function M() {
321
+ function N() {
321
322
  return o.editor?.getAttributes("paragraph").lineHeight || "";
322
323
  }
323
- function P(e) {
324
+ function F(e) {
324
325
  let t = o.editor?.chain().focus();
325
326
  e ? t?.setLineHeight(e).run() : t?.unsetLineHeight().run();
326
327
  }
327
- function F(e) {
328
+ function L(e) {
328
329
  let t = o.editor?.chain().focus();
329
330
  e && e !== "normal" ? t?.setLetterSpacing(e).run() : t?.unsetLetterSpacing().run();
330
331
  }
@@ -405,7 +406,7 @@ var Z = /* @__PURE__ */ M(de, [["render", pe]]), me = [
405
406
  "active"
406
407
  ]),
407
408
  u(X, {
408
- icon: h(N),
409
+ icon: h(M),
409
410
  label: h(y).paragraphEditor.italic,
410
411
  active: e.editor.isActive("italic"),
411
412
  onClick: n[3] ||= (t) => e.editor.chain().focus().toggleItalic().run()
@@ -457,7 +458,7 @@ var Z = /* @__PURE__ */ M(de, [["render", pe]]), me = [
457
458
  ]),
458
459
  u(Z),
459
460
  u(X, {
460
- icon: h(te),
461
+ icon: h(P),
461
462
  label: h(y).paragraphEditor.addLink,
462
463
  active: e.editor.isActive("link"),
463
464
  onClick: n[8] ||= (e) => s("open-link-dialog")
@@ -489,7 +490,7 @@ var Z = /* @__PURE__ */ M(de, [["render", pe]]), me = [
489
490
  ]),
490
491
  u(Z),
491
492
  u(X, {
492
- icon: h(L),
493
+ icon: h(I),
493
494
  label: h(y).paragraphEditor.alignLeft,
494
495
  active: e.editor.isActive({ textAlign: "left" }),
495
496
  onClick: n[11] ||= (t) => e.editor.chain().focus().setTextAlign("left").run()
@@ -499,7 +500,7 @@ var Z = /* @__PURE__ */ M(de, [["render", pe]]), me = [
499
500
  "active"
500
501
  ]),
501
502
  u(X, {
502
- icon: h(I),
503
+ icon: h(ie),
503
504
  label: h(y).paragraphEditor.alignCenter,
504
505
  active: e.editor.isActive({ textAlign: "center" }),
505
506
  onClick: n[12] ||= (t) => e.editor.chain().focus().setTextAlign("center").run()
@@ -509,7 +510,7 @@ var Z = /* @__PURE__ */ M(de, [["render", pe]]), me = [
509
510
  "active"
510
511
  ]),
511
512
  u(X, {
512
- icon: h(ie),
513
+ icon: h(re),
513
514
  label: h(y).paragraphEditor.alignRight,
514
515
  active: e.editor.isActive({ textAlign: "right" }),
515
516
  onClick: n[13] ||= (t) => e.editor.chain().focus().setTextAlign("right").run()
@@ -520,12 +521,12 @@ var Z = /* @__PURE__ */ M(de, [["render", pe]]), me = [
520
521
  ]),
521
522
  u(Z),
522
523
  u(Q, {
523
- "model-value": M(),
524
+ "model-value": N(),
524
525
  options: h(B),
525
526
  label: h(y).paragraphEditor.lineHeight,
526
527
  placeholder: "LH",
527
528
  "width-class": "tpl:w-16",
528
- "onUpdate:modelValue": P
529
+ "onUpdate:modelValue": F
529
530
  }, null, 8, [
530
531
  "model-value",
531
532
  "options",
@@ -537,7 +538,7 @@ var Z = /* @__PURE__ */ M(de, [["render", pe]]), me = [
537
538
  label: h(y).paragraphEditor.letterSpacing,
538
539
  placeholder: "LS",
539
540
  "width-class": "tpl:w-20",
540
- "onUpdate:modelValue": F
541
+ "onUpdate:modelValue": L
541
542
  }, null, 8, [
542
543
  "model-value",
543
544
  "options",
@@ -551,17 +552,17 @@ var Z = /* @__PURE__ */ M(de, [["render", pe]]), me = [
551
552
  }, null, 8, ["icon", "label"]),
552
553
  u(Z),
553
554
  u(le, { onInsert: S }),
554
- e.mergeTagEnabled ? (r(), l(d, { key: 0 }, [u(Z), _("button", {
555
+ e.canRequestMergeTag ? (r(), l(d, { key: 0 }, [u(Z), _("button", {
555
556
  type: "button",
556
557
  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)]",
557
558
  "aria-label": h(y).mergeTag.add,
558
559
  title: h(y).mergeTag.add,
559
560
  onClick: n[15] ||= (e) => s("add-merge-tag")
560
- }, [u(h(re), {
561
+ }, [u(h(ne), {
561
562
  size: 16,
562
563
  "stroke-width": 2
563
564
  }), x(" " + i(h(y).mergeTag.add), 1)], 8, Ce)], 64)) : p("", !0)
564
- ])], 64)) : (r(), l("div", we, [u(h(ne), {
565
+ ])], 64)) : (r(), l("div", we, [u(h(te), {
565
566
  class: "tpl-spinner",
566
567
  size: 14,
567
568
  "stroke-width": 2
@@ -575,25 +576,25 @@ var Z = /* @__PURE__ */ M(de, [["render", pe]]), me = [
575
576
  },
576
577
  emits: ["done"],
577
578
  setup(e, { emit: t }) {
578
- let n = e, i = t, { editor: a, EditorContent: o, isLoading: s, initError: c, retry: d, showLinkDialog: f, linkUrl: p, linkDialogRef: m, mergeTagEnabled: g, openLinkDialog: _, insertLink: v, removeLink: b, closeLinkDialog: x, handleLinkKeydown: S, handleAddMergeTag: w } = C({
579
+ let n = e, i = t, { editor: a, EditorContent: o, isLoading: s, initError: c, retry: d, showLinkDialog: f, linkUrl: p, linkDialogRef: m, canRequestMergeTag: g, openLinkDialog: _, insertLink: v, removeLink: b, closeLinkDialog: x, handleLinkKeydown: S, handleAddMergeTag: w } = C({
579
580
  blockId: () => n.block.id,
580
581
  blockContent: () => n.block.content,
581
582
  onDone: () => i("done"),
582
583
  editorName: "ParagraphEditor",
583
584
  async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
584
585
  let [{ Editor: a, EditorContent: o }, { default: s }, { default: c }, { default: l }, { default: u }, { default: d }, { default: f }, { TextStyle: p }, { default: m }, { default: h }, { default: g }, { MergeTagNode: _, MergeTagSuggestion: v, LogicMergeTagNode: y, FontSize: b, LineHeight: x, LetterSpacing: S }] = await Promise.all([
585
- import("./dist-QoJxR1uP.js").then((e) => e.r),
586
- import("./dist-BMMiVjHs.js"),
587
- import("./dist--e2w6FN-.js"),
588
- import("./dist-BsiDC2rP.js"),
589
- import("./dist-H7npgW0s.js"),
590
- import("./dist-BNZS_qhu.js"),
591
- import("./dist-3AzSJz2x.js"),
592
- import("./dist-C4m7p7Wb.js"),
593
- import("./dist--8ZUsIQD.js"),
594
- import("./dist-DPsMHsAW.js"),
595
- import("./dist-BOSn1353.js"),
596
- import("./extensions-BQjnrlGT.js")
586
+ import("./dist-BFawx6IS.js").then((e) => e.r),
587
+ import("./dist-D90y8dvT.js"),
588
+ import("./dist-DDJIWTRY.js"),
589
+ import("./dist-KoBJjK1G.js"),
590
+ import("./dist-BaQIYPsn.js"),
591
+ import("./dist-aRzjfSRN.js"),
592
+ import("./dist-us-RpCWN.js"),
593
+ import("./dist-Cp0zXPAD.js"),
594
+ import("./dist-D6uC2xhi.js"),
595
+ import("./dist-wzMIGj-D.js"),
596
+ import("./dist-DjviJBCi.js"),
597
+ import("./extensions-CUcl9Ok4.js")
597
598
  ]);
598
599
  return {
599
600
  TiptapEditor: a,
@@ -642,14 +643,14 @@ var Z = /* @__PURE__ */ M(de, [["render", pe]]), me = [
642
643
  editor: h(a),
643
644
  "toolbar-position": e.toolbarPosition,
644
645
  "is-loading": h(s),
645
- "merge-tag-enabled": h(g),
646
+ "can-request-merge-tag": h(g),
646
647
  onOpenLinkDialog: h(_),
647
648
  onAddMergeTag: h(w)
648
649
  }, null, 8, [
649
650
  "editor",
650
651
  "toolbar-position",
651
652
  "is-loading",
652
- "merge-tag-enabled",
653
+ "can-request-merge-tag",
653
654
  "onOpenLinkDialog",
654
655
  "onAddMergeTag"
655
656
  ]),
@@ -666,7 +667,7 @@ var Z = /* @__PURE__ */ M(de, [["render", pe]]), me = [
666
667
  "init-error",
667
668
  "onRetry"
668
669
  ]),
669
- u(P, {
670
+ u(N, {
670
671
  visible: h(f),
671
672
  "is-editing-link": h(a)?.isActive("link") ?? !1,
672
673
  "dialog-ref": h(m),
@@ -1,8 +1,8 @@
1
1
  import { D as e, E as t, H as n, L as r, M as i, Mt as a, Ot as o, R as s, S as c, _ as l, b as u, f as d, g as f, h as p, it as m, m as h, s as g, u as _, y as v } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
2
- import { E as y, w as b } from "./keys-BeW4IrXP.js";
3
- import { t as x } from "./useI18n-Jp3X6Q0t.js";
4
- import { n as S } from "./_plugin-vue_export-helper-GRmvIR5A.js";
5
- import { t as C } from "./x-BNc1bVzp.js";
2
+ import { D as y, T as b } from "./keys-ciNfSSGj.js";
3
+ import { t as x } from "./useI18n-lb2DHDiu.js";
4
+ import { t as S } from "./createLucideIcon-C3pa2siy.js";
5
+ import { t as C } from "./x-u2oVmjN_.js";
6
6
  var w = S("bold", [["path", {
7
7
  d: "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",
8
8
  key: "mg9rjx"