@templatical/editor 0.18.0 → 0.19.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 (109) hide show
  1. package/dist/{AiChatSidebar-BWIzNePR.js → AiChatSidebar-DAQTFuvi.js} +3 -3
  2. package/dist/{AiFeatureMenu-IoLW8c6m.js → AiFeatureMenu-aFSO20PR.js} +4 -4
  3. package/dist/{BlockIssueBadge-FbyZBJlf.js → BlockIssueBadge-BQmq1bxn.js} +2 -2
  4. package/dist/{CloudEditor-txLsdvcR.js → CloudEditor-D0K-m1GA.js} +14 -12
  5. package/dist/{CollaboratorBar-CpLOFt43.js → CollaboratorBar-CJO3l6Dt.js} +2 -2
  6. package/dist/ColorPicker-BsgpTJqK.js +552 -0
  7. package/dist/{CommentsSidebar-C8xFu9qy.js → CommentsSidebar-BYMVucZh.js} +4 -4
  8. package/dist/{CountdownBlock-CaU40Htk.js → CountdownBlock-Bn5w7C-p.js} +1 -1
  9. package/dist/{CountdownToolbar-CBbGAxmF.js → CountdownToolbar-PJI3ffi1.js} +3 -3
  10. package/dist/{DesignReferenceSidebar-BWZgqmT-.js → DesignReferenceSidebar-QfAV8XT9.js} +5 -5
  11. package/dist/{IssuesPanel-CBzfmzRM.js → IssuesPanel-CTjRgz8w.js} +2 -2
  12. package/dist/{ModuleBrowserModal-C9qHpjaS.js → ModuleBrowserModal-BNalLx0k.js} +7 -7
  13. package/dist/{ModulePreviewCanvas-xEMWMJwf.js → ModulePreviewCanvas-BwObwisa.js} +2 -2
  14. package/dist/{NumberWithSuffix-BreqtON_.js → NumberWithSuffix-D3BKz66W.js} +1 -1
  15. package/dist/{ParagraphEditor-iRJI_YbA.js → ParagraphEditor-Cf75UfSo.js} +42 -42
  16. package/dist/{RichTextEditorContent-DkXai9qP.js → RichTextEditorContent-MdaLz6Q3.js} +5 -5
  17. package/dist/{SaveModuleDialog-DqDmk0rO.js → SaveModuleDialog-MTjwiF9D.js} +6 -6
  18. package/dist/{SnapshotHistory-BVe5aCHi.js → SnapshotHistory-C_Y1LzAY.js} +4 -4
  19. package/dist/{TemplateScoringPanel-CRqt9-T5.js → TemplateScoringPanel-DikuKc6i.js} +77 -77
  20. package/dist/{TestEmailModal-jpy4hnYZ.js → TestEmailModal-BW8aTtzf.js} +3 -3
  21. package/dist/{TitleEditor-Bf6Jv2qI.js → TitleEditor-CCUkbRN0.js} +7 -7
  22. package/dist/{TplModal-DAtccv6o.js → TplModal-DoOwUKlT.js} +3 -3
  23. package/dist/{blockTypeIcons-CnlwyvkL.js → blockTypeIcons-BlPKjD7M.js} +1 -1
  24. package/dist/bundle-stats.json +6 -6
  25. package/dist/{ca-CSl--oWR.js → ca-DbWoy4rG.js} +2 -1
  26. package/dist/cdn/chunks/{AiFeatureMenu-B4oJlFQI.js → AiFeatureMenu-RwJiaPXZ.js} +5 -5
  27. package/dist/cdn/chunks/{AiFeatureMenu-B4oJlFQI.js.map → AiFeatureMenu-RwJiaPXZ.js.map} +1 -1
  28. package/dist/cdn/chunks/{BlockIssueBadge-C7Ts7bT7.js → BlockIssueBadge-DM-TDKbr.js} +5 -5
  29. package/dist/cdn/chunks/{BlockIssueBadge-C7Ts7bT7.js.map → BlockIssueBadge-DM-TDKbr.js.map} +1 -1
  30. package/dist/cdn/chunks/{CloudEditor-BRO-2CcF.js → CloudEditor-Dufl354p.js} +132 -130
  31. package/dist/cdn/chunks/CloudEditor-Dufl354p.js.map +1 -0
  32. package/dist/cdn/chunks/{CollaboratorBar-BsWOjOCS.js → CollaboratorBar-xsU20iPl.js} +3 -3
  33. package/dist/cdn/chunks/{CollaboratorBar-BsWOjOCS.js.map → CollaboratorBar-xsU20iPl.js.map} +1 -1
  34. package/dist/{ColorPicker-BXCcUYsZ.js → cdn/chunks/ColorPicker-y_obnw4o.js} +234 -157
  35. package/dist/cdn/chunks/ColorPicker-y_obnw4o.js.map +1 -0
  36. package/dist/cdn/chunks/{CountdownBlock-BUGxk8GI.js → CountdownBlock-sHsRMe1q.js} +2 -2
  37. package/dist/cdn/chunks/{CountdownBlock-BUGxk8GI.js.map → CountdownBlock-sHsRMe1q.js.map} +1 -1
  38. package/dist/cdn/chunks/{CountdownToolbar-C8tWWfGw.js → CountdownToolbar-Ckc_jEi-.js} +4 -4
  39. package/dist/cdn/chunks/{CountdownToolbar-C8tWWfGw.js.map → CountdownToolbar-Ckc_jEi-.js.map} +1 -1
  40. package/dist/cdn/chunks/{IssuesPanel-C5izyrbm.js → IssuesPanel-DF5Ajuna.js} +7 -7
  41. package/dist/cdn/chunks/{IssuesPanel-C5izyrbm.js.map → IssuesPanel-DF5Ajuna.js.map} +1 -1
  42. package/dist/cdn/chunks/{ModuleBrowserModal-DySKXKFF.js → ModuleBrowserModal-DG4AVFjH.js} +8 -8
  43. package/dist/cdn/chunks/{ModuleBrowserModal-DySKXKFF.js.map → ModuleBrowserModal-DG4AVFjH.js.map} +1 -1
  44. package/dist/cdn/chunks/{ModulePreviewCanvas-qqEvLBp2.js → ModulePreviewCanvas-Bc_PcJuc.js} +24 -24
  45. package/dist/cdn/chunks/{ModulePreviewCanvas-qqEvLBp2.js.map → ModulePreviewCanvas-Bc_PcJuc.js.map} +1 -1
  46. package/dist/cdn/chunks/{NumberWithSuffix-DttdbXsh.js → NumberWithSuffix-8fOO-LC_.js} +2 -2
  47. package/dist/cdn/chunks/{NumberWithSuffix-DttdbXsh.js.map → NumberWithSuffix-8fOO-LC_.js.map} +1 -1
  48. package/dist/cdn/chunks/{ParagraphEditor-CQJ23PXU.js → ParagraphEditor-BkafKSju.js} +107 -107
  49. package/dist/cdn/chunks/{ParagraphEditor-CQJ23PXU.js.map → ParagraphEditor-BkafKSju.js.map} +1 -1
  50. package/dist/cdn/chunks/{RichTextEditorContent-C4vxiXng.js → RichTextEditorContent-BthhzOZS.js} +5 -5
  51. package/dist/cdn/chunks/{RichTextEditorContent-C4vxiXng.js.map → RichTextEditorContent-BthhzOZS.js.map} +1 -1
  52. package/dist/cdn/chunks/{SaveModuleDialog-D5eddgzd.js → SaveModuleDialog-DhsfYf2n.js} +4 -4
  53. package/dist/cdn/chunks/{SaveModuleDialog-D5eddgzd.js.map → SaveModuleDialog-DhsfYf2n.js.map} +1 -1
  54. package/dist/cdn/chunks/{TitleEditor-5TkwDrPL.js → TitleEditor-DLv9cXba.js} +8 -8
  55. package/dist/cdn/chunks/{TitleEditor-5TkwDrPL.js.map → TitleEditor-DLv9cXba.js.map} +1 -1
  56. package/dist/cdn/chunks/{blockTypeIcons-CbmN4aSw.js → blockTypeIcons-B0uibGX7.js} +7 -7
  57. package/dist/cdn/chunks/{blockTypeIcons-CbmN4aSw.js.map → blockTypeIcons-B0uibGX7.js.map} +1 -1
  58. package/dist/cdn/chunks/{ca-CSl--oWR.js → ca-DbWoy4rG.js} +3 -2
  59. package/dist/cdn/chunks/{ca-CSl--oWR.js.map → ca-DbWoy4rG.js.map} +1 -1
  60. package/dist/{de-ZaffrKDP.js → cdn/chunks/de-CgGOnerg.js} +4 -1
  61. package/dist/cdn/chunks/{de-ZaffrKDP.js.map → de-CgGOnerg.js.map} +1 -1
  62. package/dist/cdn/chunks/{en-CHuXeJDt.js → en-DrUV9xth.js} +3 -2
  63. package/dist/cdn/chunks/{en-CHuXeJDt.js.map → en-DrUV9xth.js.map} +1 -1
  64. package/dist/{es-CaC8VQjO.js → cdn/chunks/es-DwbKjU7q.js} +4 -1
  65. package/dist/cdn/chunks/{es-CaC8VQjO.js.map → es-DwbKjU7q.js.map} +1 -1
  66. package/dist/cdn/chunks/{extensions-B3M4IqhZ.js → extensions-DLHvZ0UH.js} +19 -19
  67. package/dist/cdn/chunks/{extensions-B3M4IqhZ.js.map → extensions-DLHvZ0UH.js.map} +1 -1
  68. package/dist/cdn/chunks/{features-HBwOEo4D.js → features-Cnfv4QAY.js} +1382 -1298
  69. package/dist/cdn/chunks/features-Cnfv4QAY.js.map +1 -0
  70. package/dist/cdn/chunks/{icons-D4vTsN4p.js → icons-DbcM69bb.js} +2 -2
  71. package/dist/cdn/chunks/{icons-D4vTsN4p.js.map → icons-DbcM69bb.js.map} +1 -1
  72. package/dist/cdn/chunks/{media-library-CfExuiSG.js → media-library-DpSMwHd4.js} +524 -524
  73. package/dist/cdn/chunks/{media-library-CfExuiSG.js.map → media-library-DpSMwHd4.js.map} +1 -1
  74. package/dist/cdn/chunks/{pt-BR-C74zfEWH.js → pt-BR-Bcc5Tjed.js} +3 -2
  75. package/dist/cdn/chunks/{pt-BR-C74zfEWH.js.map → pt-BR-Bcc5Tjed.js.map} +1 -1
  76. package/dist/cdn/chunks/{quality-nh1R42eb.js → quality-D9QqkRcU.js} +77 -77
  77. package/dist/cdn/chunks/{quality-nh1R42eb.js.map → quality-D9QqkRcU.js.map} +1 -1
  78. package/dist/cdn/chunks/{renderer-BLvlUayY.js → renderer-BsLQZNXU.js} +14 -14
  79. package/dist/cdn/chunks/{renderer-BLvlUayY.js.map → renderer-BsLQZNXU.js.map} +1 -1
  80. package/dist/cdn/chunks/{src-Cks4RrLL.js → src-zu1ehVNN.js} +6 -6
  81. package/dist/cdn/chunks/{src-Cks4RrLL.js.map → src-zu1ehVNN.js.map} +1 -1
  82. package/dist/cdn/chunks/{styles-CPCN13az.js → styles-Dx-jXeCd.js} +184 -184
  83. package/dist/cdn/chunks/{styles-CPCN13az.js.map → styles-Dx-jXeCd.js.map} +1 -1
  84. package/dist/cdn/editor.css +1 -1
  85. package/dist/cdn/editor.js +54 -52
  86. package/dist/cdn/editor.js.map +1 -1
  87. package/dist/{cloud-BogxOeZu.js → cloud-B-RebwxI.js} +5 -5
  88. package/dist/{cdn/chunks/de-ZaffrKDP.js → de-CgGOnerg.js} +2 -3
  89. package/dist/{dist-DoRIUsfz.js → dist-BJbqgyPn.js} +108 -94
  90. package/dist/{en-CHuXeJDt.js → en-DrUV9xth.js} +2 -1
  91. package/dist/{cdn/chunks/es-CaC8VQjO.js → es-DwbKjU7q.js} +2 -3
  92. package/dist/{extensions-gpFdCinj.js → extensions-BCA9pyer.js} +11 -11
  93. package/dist/index.d.ts +31 -0
  94. package/dist/keys-DFaIbGR8.js +10 -0
  95. package/dist/{pt-BR-C74zfEWH.js → pt-BR-Bcc5Tjed.js} +2 -1
  96. package/dist/style.css +1 -1
  97. package/dist/{styles-CJ6WmkYL.js → styles-64uLkPJV.js} +47 -47
  98. package/dist/templatical-editor.js +13 -11
  99. package/dist/{useCloudI18n-DIn74fK2.js → useCloudI18n-PCDOC2kz.js} +1 -1
  100. package/dist/{useEditorCore-LJJNXXqC.js → useEditorCore-ea9OrrH3.js} +798 -755
  101. package/dist/{useI18n-OaMLWqhY.js → useI18n-BNMzZTM5.js} +1 -1
  102. package/dist/{useMergeTag-CZMgwVvr.js → useMergeTag-DfEY0eK5.js} +5 -5
  103. package/dist/{usePopoverPosition-QDY09q9H.js → usePopoverPosition-F9STHRIr.js} +33 -6
  104. package/package.json +7 -7
  105. package/dist/cdn/chunks/CloudEditor-BRO-2CcF.js.map +0 -1
  106. package/dist/cdn/chunks/ColorPicker-DEtVX4gN.js +0 -471
  107. package/dist/cdn/chunks/ColorPicker-DEtVX4gN.js.map +0 -1
  108. package/dist/cdn/chunks/features-HBwOEo4D.js.map +0 -1
  109. package/dist/keys-DAxnnmXs.js +0 -10
@@ -0,0 +1,552 @@
1
+ import { A as e, Dt as t, Et as n, O as r, R as i, Y as a, _ as o, c as s, d as c, h as l, i as ee, l as te, nt as u, r as ne, s as d, u as f, x as p } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
+ import { c as re, s as m, t as ie } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
+ import { a as ae, i as oe, n as se, r as h, s as ce, t as le } from "./usePopoverPosition-F9STHRIr.js";
4
+ import { L as ue, l as de, z as fe } from "./keys-DFaIbGR8.js";
5
+ import { t as pe } from "./useI18n-BNMzZTM5.js";
6
+ import { t as g } from "./x-Ctg_250T.js";
7
+ //#region src/constants/styleConstants.ts
8
+ var me = "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 = [
9
+ "10px",
10
+ "12px",
11
+ "14px",
12
+ "16px",
13
+ "18px",
14
+ "20px",
15
+ "24px",
16
+ "28px",
17
+ "32px",
18
+ "36px",
19
+ "48px",
20
+ "64px"
21
+ ], D = [
22
+ "1",
23
+ "1.2",
24
+ "1.4",
25
+ "1.5",
26
+ "1.6",
27
+ "1.8",
28
+ "2",
29
+ "2.5"
30
+ ], O = [
31
+ {
32
+ label: "Normal",
33
+ value: "normal"
34
+ },
35
+ {
36
+ label: "-0.5px",
37
+ value: "-0.5px"
38
+ },
39
+ {
40
+ label: "0.5px",
41
+ value: "0.5px"
42
+ },
43
+ {
44
+ label: "1px",
45
+ value: "1px"
46
+ },
47
+ {
48
+ label: "1.5px",
49
+ value: "1.5px"
50
+ },
51
+ {
52
+ label: "2px",
53
+ value: "2px"
54
+ },
55
+ {
56
+ label: "3px",
57
+ value: "3px"
58
+ }
59
+ ], k = "#000000", A = "#ffffff", he = "#ffff00", j = "#f2f2f2", M = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, N = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n;
60
+ 360 / (Math.PI * 2);
61
+ var P = (e) => V(F(e)), F = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
62
+ r: parseInt(e[0] + e[0], 16),
63
+ g: parseInt(e[1] + e[1], 16),
64
+ b: parseInt(e[2] + e[2], 16),
65
+ a: e.length === 4 ? N(parseInt(e[3] + e[3], 16) / 255, 2) : 1
66
+ } : {
67
+ r: parseInt(e.substring(0, 2), 16),
68
+ g: parseInt(e.substring(2, 4), 16),
69
+ b: parseInt(e.substring(4, 6), 16),
70
+ a: e.length === 8 ? N(parseInt(e.substring(6, 8), 16) / 255, 2) : 1
71
+ }), I = (e) => B(ge(e)), L = ({ h: e, s: t, v: n, a: r }) => {
72
+ let i = (200 - t) * n / 100;
73
+ return {
74
+ h: N(e),
75
+ s: N(i > 0 && i < 200 ? t * n / 100 / (i <= 100 ? i : 200 - i) * 100 : 0),
76
+ l: N(i / 2),
77
+ a: N(r, 2)
78
+ };
79
+ }, R = (e) => {
80
+ let { h: t, s: n, l: r } = L(e);
81
+ return `hsl(${t}, ${n}%, ${r}%)`;
82
+ }, ge = ({ h: e, s: t, v: n, a: r }) => {
83
+ e = e / 360 * 6, t /= 100, n /= 100;
84
+ let i = Math.floor(e), a = n * (1 - t), o = n * (1 - (e - i) * t), s = n * (1 - (1 - e + i) * t), c = i % 6;
85
+ return {
86
+ r: N([
87
+ n,
88
+ o,
89
+ a,
90
+ a,
91
+ s,
92
+ n
93
+ ][c] * 255),
94
+ g: N([
95
+ s,
96
+ n,
97
+ n,
98
+ o,
99
+ a,
100
+ a
101
+ ][c] * 255),
102
+ b: N([
103
+ a,
104
+ a,
105
+ s,
106
+ n,
107
+ n,
108
+ o
109
+ ][c] * 255),
110
+ a: N(r, 2)
111
+ };
112
+ }, z = (e) => {
113
+ let t = e.toString(16);
114
+ return t.length < 2 ? "0" + t : t;
115
+ }, B = ({ r: e, g: t, b: n, a: r }) => {
116
+ let i = r < 1 ? z(N(r * 255)) : "";
117
+ return "#" + z(e) + z(t) + z(n) + i;
118
+ }, V = ({ r: e, g: t, b: n, a: r }) => {
119
+ let i = Math.max(e, t, n), a = i - Math.min(e, t, n), o = a ? i === e ? (t - n) / a : i === t ? 2 + (n - e) / a : 4 + (e - t) / a : 0;
120
+ return {
121
+ h: N(60 * (o < 0 ? o + 6 : o)),
122
+ s: N(i ? a / i * 100 : 0),
123
+ v: N(i / 255 * 100),
124
+ a: r
125
+ };
126
+ }, H = (e, t) => {
127
+ if (e === t) return !0;
128
+ for (let n in e) if (e[n] !== t[n]) return !1;
129
+ return !0;
130
+ }, U = (e, t) => e.toLowerCase() === t.toLowerCase() || H(F(e), F(t)), W = {}, G = (e) => {
131
+ let t = W[e];
132
+ return t || (t = document.createElement("template"), t.innerHTML = e, W[e] = t), t;
133
+ }, K = (e, t, n) => {
134
+ e.dispatchEvent(new CustomEvent(t, {
135
+ bubbles: !0,
136
+ detail: n
137
+ }));
138
+ }, q = !1, J = (e) => "touches" in e, Y = (e) => q && !J(e) ? !1 : (q ||= J(e), !0), X = (e, t) => {
139
+ let n = J(t) ? t.touches[0] : t, r = e.el.getBoundingClientRect();
140
+ K(e.el, "move", e.getMove({
141
+ x: M((n.pageX - (r.left + window.pageXOffset)) / r.width),
142
+ y: M((n.pageY - (r.top + window.pageYOffset)) / r.height)
143
+ }));
144
+ }, _e = (e, t) => {
145
+ let n = t.keyCode;
146
+ n > 40 || e.xy && n < 37 || n < 33 || (t.preventDefault(), K(e.el, "move", e.getMove({
147
+ x: n === 39 ? .01 : n === 37 ? -.01 : n === 34 ? .05 : n === 33 ? -.05 : n === 35 ? 1 : n === 36 ? -1 : 0,
148
+ y: n === 40 ? .01 : n === 38 ? -.01 : 0
149
+ }, !0)));
150
+ }, ve = class {
151
+ constructor(e, t, n, r) {
152
+ let i = G(`<div role="slider" tabindex="0" part="${t}" ${n}><div part="${t}-pointer"></div></div>`);
153
+ e.appendChild(i.content.cloneNode(!0));
154
+ let a = e.querySelector(`[part=${t}]`);
155
+ a.addEventListener("mousedown", this), a.addEventListener("touchstart", this), a.addEventListener("keydown", this), this.el = a, this.xy = r, this.nodes = [a.firstChild, a];
156
+ }
157
+ set dragging(e) {
158
+ let t = e ? document.addEventListener : document.removeEventListener;
159
+ t(q ? "touchmove" : "mousemove", this), t(q ? "touchend" : "mouseup", this);
160
+ }
161
+ handleEvent(e) {
162
+ switch (e.type) {
163
+ case "mousedown":
164
+ case "touchstart":
165
+ if (e.preventDefault(), !Y(e) || !q && e.button != 0) return;
166
+ this.el.focus(), X(this, e), this.dragging = !0;
167
+ break;
168
+ case "mousemove":
169
+ case "touchmove":
170
+ e.preventDefault(), X(this, e);
171
+ break;
172
+ case "mouseup":
173
+ case "touchend":
174
+ this.dragging = !1;
175
+ break;
176
+ case "keydown":
177
+ _e(this, e);
178
+ break;
179
+ }
180
+ }
181
+ style(e) {
182
+ e.forEach((e, t) => {
183
+ for (let n in e) this.nodes[t].style.setProperty(n, e[n]);
184
+ });
185
+ }
186
+ }, ye = class extends ve {
187
+ constructor(e) {
188
+ super(e, "hue", "aria-label=\"Hue\" aria-valuemin=\"0\" aria-valuemax=\"360\"", !1);
189
+ }
190
+ update({ h: e }) {
191
+ this.h = e, this.style([{
192
+ left: `${e / 360 * 100}%`,
193
+ color: R({
194
+ h: e,
195
+ s: 100,
196
+ v: 100,
197
+ a: 1
198
+ })
199
+ }]), this.el.setAttribute("aria-valuenow", `${N(e)}`);
200
+ }
201
+ getMove(e, t) {
202
+ return { h: t ? M(this.h + e.x * 360, 0, 360) : 360 * e.x };
203
+ }
204
+ }, be = class extends ve {
205
+ constructor(e) {
206
+ super(e, "saturation", "aria-label=\"Color\"", !0);
207
+ }
208
+ update(e) {
209
+ this.hsva = e, this.style([{
210
+ top: `${100 - e.v}%`,
211
+ left: `${e.s}%`,
212
+ color: R(e)
213
+ }, { "background-color": R({
214
+ h: e.h,
215
+ s: 100,
216
+ v: 100,
217
+ a: 1
218
+ }) }]), this.el.setAttribute("aria-valuetext", `Saturation ${N(e.s)}%, Brightness ${N(e.v)}%`);
219
+ }
220
+ getMove(e, t) {
221
+ return {
222
+ s: t ? M(this.hsva.s + e.x * 100, 0, 100) : e.x * 100,
223
+ v: t ? M(this.hsva.v - e.y * 100, 0, 100) : Math.round(100 - e.y * 100)
224
+ };
225
+ }
226
+ }, xe = ":host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:\"\";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}", Se = "[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}", Ce = "[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}", Z = Symbol("same"), Q = Symbol("color"), we = Symbol("hsva"), $ = Symbol("update"), Te = Symbol("parts"), Ee = Symbol("css"), De = Symbol("sliders"), Oe = class extends HTMLElement {
227
+ static get observedAttributes() {
228
+ return ["color"];
229
+ }
230
+ get [Ee]() {
231
+ return [
232
+ xe,
233
+ Se,
234
+ Ce
235
+ ];
236
+ }
237
+ get [De]() {
238
+ return [be, ye];
239
+ }
240
+ get color() {
241
+ return this[Q];
242
+ }
243
+ set color(e) {
244
+ if (!this[Z](e)) {
245
+ let t = this.colorModel.toHsva(e);
246
+ this[$](t), this[Q] = e;
247
+ }
248
+ }
249
+ constructor() {
250
+ super();
251
+ let e = G(`<style>${this[Ee].join("")}</style>`), t = this.attachShadow({ mode: "open" });
252
+ t.appendChild(e.content.cloneNode(!0)), t.addEventListener("move", this), this[Te] = this[De].map((e) => new e(t));
253
+ }
254
+ connectedCallback() {
255
+ if (this.hasOwnProperty("color")) {
256
+ let e = this.color;
257
+ delete this.color, this.color = e;
258
+ } else this.color ||= this.colorModel.defaultColor;
259
+ }
260
+ attributeChangedCallback(e, t, n) {
261
+ let r = this.colorModel.fromAttr(n);
262
+ this[Z](r) || (this.color = r);
263
+ }
264
+ handleEvent(e) {
265
+ let t = this[we], n = {
266
+ ...t,
267
+ ...e.detail
268
+ };
269
+ this[$](n);
270
+ let r;
271
+ !H(n, t) && !this[Z](r = this.colorModel.fromHsva(n)) && (this[Q] = r, K(this, "color-changed", { value: r }));
272
+ }
273
+ [Z](e) {
274
+ return this.color && this.colorModel.equal(e, this.color);
275
+ }
276
+ [$](e) {
277
+ this[we] = e, this[Te].forEach((t) => t.update(e));
278
+ }
279
+ }, ke = {
280
+ defaultColor: "#000",
281
+ toHsva: P,
282
+ fromHsva: ({ h: e, s: t, v: n }) => I({
283
+ h: e,
284
+ s: t,
285
+ v: n,
286
+ a: 1
287
+ }),
288
+ equal: U,
289
+ fromAttr: (e) => e
290
+ }, Ae = class extends Oe {
291
+ get colorModel() {
292
+ return ke;
293
+ }
294
+ }, je = class extends Ae {};
295
+ customElements.define("hex-color-picker", je);
296
+ //#endregion
297
+ //#region src/components/ColorPicker.vue?vue&type=script&setup=true&lang.ts
298
+ var Me = [
299
+ "disabled",
300
+ "aria-label",
301
+ "title",
302
+ "aria-expanded"
303
+ ], Ne = {
304
+ key: 0,
305
+ class: "tpl:relative tpl:flex-1"
306
+ }, Pe = [
307
+ "value",
308
+ "placeholder",
309
+ "disabled",
310
+ "aria-label"
311
+ ], Fe = ["aria-label", "title"], Ie = ["data-tpl-theme"], Le = ["aria-label"], Re = [
312
+ "aria-label",
313
+ "title",
314
+ "aria-checked",
315
+ "tabindex"
316
+ ], ze = [
317
+ "aria-label",
318
+ "title",
319
+ "aria-checked",
320
+ "tabindex",
321
+ "onClick"
322
+ ], Be = ["color", "aria-label"], Ve = {
323
+ key: 2,
324
+ class: "tpl:relative tpl:mt-2"
325
+ }, He = [
326
+ "value",
327
+ "placeholder",
328
+ "disabled",
329
+ "aria-label"
330
+ ], Ue = ["aria-label", "title"], We = /* @__PURE__ */ o({
331
+ __name: "ColorPicker",
332
+ props: {
333
+ modelValue: {},
334
+ placeholder: { default: "" },
335
+ seedColor: { default: "#ffffff" },
336
+ swatchOnly: {
337
+ type: Boolean,
338
+ default: !1
339
+ },
340
+ disabled: {
341
+ type: Boolean,
342
+ default: !1
343
+ },
344
+ size: { default: "md" },
345
+ ariaLabel: { default: "" },
346
+ presets: { default: void 0 },
347
+ allowCustom: {
348
+ type: Boolean,
349
+ default: void 0
350
+ }
351
+ },
352
+ emits: ["update:modelValue"],
353
+ setup(o, { emit: me }) {
354
+ let _ = o, v = me, { t: y } = pe(), x = a(!1), S = a(), C = a(), w = a(!1);
355
+ ce(S, () => {
356
+ x.value = !1;
357
+ }, { ignore: [C] });
358
+ let T = d(() => !_.modelValue), E = d(() => oe(_.modelValue)), D = d(() => oe(_.modelValue || _.seedColor)), O = d(() => !_.disabled && !T.value), k = p(de, ae), A = d(() => [...new Set(_.presets ?? k.presets)]), he = d(() => _.allowCustom ?? k.allowCustom), j = d(() => A.value.length > 0), M = d(() => he.value || !j.value), N = d(() => h(_.modelValue));
359
+ function P(e) {
360
+ return N.value !== "" && h(e) === N.value;
361
+ }
362
+ function F(e) {
363
+ v("update:modelValue", e);
364
+ }
365
+ let I = d(() => j.value && !M.value);
366
+ function L(e) {
367
+ return I.value ? e + 1 : e;
368
+ }
369
+ let R = d(() => {
370
+ if (I.value && T.value) return 0;
371
+ let e = A.value.findIndex((e) => P(e));
372
+ return e === -1 ? 0 : L(e);
373
+ });
374
+ function ge() {
375
+ return R.value === 0 ? 0 : -1;
376
+ }
377
+ function z(e) {
378
+ return L(e) === R.value ? 0 : -1;
379
+ }
380
+ function B(e) {
381
+ if (![
382
+ "ArrowRight",
383
+ "ArrowDown",
384
+ "ArrowLeft",
385
+ "ArrowUp"
386
+ ].includes(e.key)) return;
387
+ let t = e.currentTarget, n = Array.from(t.querySelectorAll("[role=\"radio\"]")), r = e.target.closest("[role=\"radio\"]"), i = r ? n.indexOf(r) : -1;
388
+ i !== -1 && (n[(i + (e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : -1) + n.length) % n.length]?.focus(), e.preventDefault());
389
+ }
390
+ function V(e) {
391
+ w.value = !0, v("update:modelValue", e.detail.value);
392
+ }
393
+ function H() {
394
+ w.value = !1;
395
+ }
396
+ function U() {
397
+ !w.value && T.value && v("update:modelValue", D.value);
398
+ }
399
+ function W(e) {
400
+ v("update:modelValue", e.target.value);
401
+ }
402
+ function G() {
403
+ v("update:modelValue", "");
404
+ }
405
+ let K = se(), { toLocal: q } = le(), J = p(ue, null), Y = p(fe, null), X = a({
406
+ top: 0,
407
+ left: 0
408
+ });
409
+ function _e() {
410
+ if (!_.disabled) {
411
+ if (!x.value) {
412
+ let e = C.value?.getBoundingClientRect();
413
+ if (e) {
414
+ let t = e.bottom + 8 + 240 <= window.innerHeight ? e.bottom + 8 : Math.max(8, e.top - 240 - 8);
415
+ X.value = q({
416
+ top: t,
417
+ left: e.left
418
+ });
419
+ }
420
+ }
421
+ x.value = !x.value;
422
+ }
423
+ }
424
+ return (a, d) => (r(), c("div", { class: n(["tpl:flex tpl:items-center tpl:gap-2 tpl:relative", o.disabled && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
425
+ s("button", {
426
+ ref_key: "swatchRef",
427
+ ref: C,
428
+ type: "button",
429
+ disabled: o.disabled,
430
+ "aria-label": o.ariaLabel || u(y).colorPicker.pickColor,
431
+ title: o.ariaLabel || void 0,
432
+ "aria-expanded": x.value,
433
+ class: n([
434
+ "tpl:shrink-0 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-0.5 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
435
+ o.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer",
436
+ x.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !o.disabled && "hover:tpl:border-[var(--tpl-text-dim)]",
437
+ o.size === "sm" ? "tpl:size-8" : "tpl:size-10"
438
+ ]),
439
+ onClick: _e
440
+ }, [s("span", {
441
+ class: n(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", { "tpl-color-swatch-empty": T.value }]),
442
+ style: t(T.value ? void 0 : { backgroundColor: E.value })
443
+ }, null, 6)], 10, Me),
444
+ !o.swatchOnly && M.value ? (r(), c("div", Ne, [s("input", {
445
+ type: "text",
446
+ class: n([u(b), "tpl:w-full"]),
447
+ style: t(O.value ? { paddingRight: "2.25rem" } : void 0),
448
+ value: E.value,
449
+ placeholder: o.placeholder || u(y).colorPicker.notSet,
450
+ disabled: o.disabled,
451
+ "aria-label": u(y).colorPicker.hexValue,
452
+ onInput: W
453
+ }, null, 46, Pe), O.value ? (r(), c("button", {
454
+ key: 0,
455
+ type: "button",
456
+ "aria-label": u(y).colorPicker.clear,
457
+ title: u(y).colorPicker.clear,
458
+ class: "tpl:absolute tpl:right-2 tpl:top-1/2 tpl:flex tpl:size-6 tpl:-translate-y-1/2 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-bg-hover)] hover:tpl:text-[var(--tpl-text)]",
459
+ onClick: G
460
+ }, [l(u(g), {
461
+ size: 14,
462
+ "stroke-width": 1.5
463
+ })], 8, Fe)) : f("", !0)])) : f("", !0),
464
+ (r(), te(ee, {
465
+ to: u(K),
466
+ disabled: !u(K)
467
+ }, [l(ie, {
468
+ "enter-active-class": "tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
469
+ "enter-from-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1",
470
+ "enter-to-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
471
+ "leave-active-class": "tpl:transition-all tpl:duration-[80ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
472
+ "leave-from-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
473
+ "leave-to-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1"
474
+ }, {
475
+ default: i(() => [x.value ? (r(), c("div", {
476
+ key: 0,
477
+ ref_key: "popoverRef",
478
+ ref: S,
479
+ "data-tpl-theme": u(Y),
480
+ class: "tpl-color-popover tpl:absolute tpl:z-modal tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:p-3 tpl:shadow-lg",
481
+ style: t({
482
+ top: `${X.value.top}px`,
483
+ left: `${X.value.left}px`,
484
+ ...u(J)
485
+ })
486
+ }, [
487
+ j.value ? (r(), c("div", {
488
+ key: 0,
489
+ role: "radiogroup",
490
+ "aria-label": u(y).colorPicker.presetColors,
491
+ class: n(["tpl:flex tpl:flex-wrap tpl:gap-1.5", M.value && "tpl:mb-2"]),
492
+ onKeydown: B
493
+ }, [I.value ? (r(), c("button", {
494
+ key: 0,
495
+ type: "button",
496
+ role: "radio",
497
+ "aria-label": u(y).colorPicker.clear,
498
+ title: u(y).colorPicker.clear,
499
+ "aria-checked": T.value,
500
+ tabindex: ge(),
501
+ class: n(["tpl-color-swatch-empty tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", T.value ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "hover:tpl:border-[var(--tpl-text-dim)]"]),
502
+ onClick: G
503
+ }, null, 10, Re)) : f("", !0), (r(!0), c(ne, null, e(A.value, (e, i) => (r(), c("button", {
504
+ key: e,
505
+ type: "button",
506
+ role: "radio",
507
+ "aria-label": e,
508
+ title: e,
509
+ "aria-checked": P(e),
510
+ tabindex: z(i),
511
+ style: t({ backgroundColor: e }),
512
+ class: n(["tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", P(e) ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "hover:tpl:border-[var(--tpl-text-dim)]"]),
513
+ onClick: (t) => F(e)
514
+ }, null, 14, ze))), 128))], 42, Le)) : f("", !0),
515
+ M.value ? (r(), c("hex-color-picker", {
516
+ key: 1,
517
+ color: D.value,
518
+ "aria-label": u(y).colorPicker.pickColor,
519
+ onColorChanged: V,
520
+ onPointerdown: H,
521
+ onPointerup: U,
522
+ onKeydown: d[0] ||= m((e) => x.value = !1, ["escape"])
523
+ }, null, 40, Be)) : f("", !0),
524
+ o.swatchOnly && M.value ? (r(), c("div", Ve, [s("input", {
525
+ type: "text",
526
+ class: n([u(b), "tpl:w-full"]),
527
+ style: t(O.value ? { paddingRight: "2.25rem" } : void 0),
528
+ value: E.value,
529
+ placeholder: o.placeholder || u(y).colorPicker.notSet,
530
+ disabled: o.disabled,
531
+ "aria-label": u(y).colorPicker.hexValue,
532
+ onChange: W,
533
+ onKeydown: d[1] ||= m(re((e) => e.target.blur(), ["prevent"]), ["enter"])
534
+ }, null, 46, He), O.value ? (r(), c("button", {
535
+ key: 0,
536
+ type: "button",
537
+ "aria-label": u(y).colorPicker.clear,
538
+ title: u(y).colorPicker.clear,
539
+ class: "tpl:absolute tpl:right-2 tpl:top-1/2 tpl:flex tpl:size-6 tpl:-translate-y-1/2 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-bg-hover)] hover:tpl:text-[var(--tpl-text)]",
540
+ onClick: G
541
+ }, [l(u(g), {
542
+ size: 14,
543
+ "stroke-width": 1.5
544
+ })], 8, Ue)) : f("", !0)])) : f("", !0)
545
+ ], 12, Ie)) : f("", !0)]),
546
+ _: 1
547
+ })], 8, ["to", "disabled"]))
548
+ ], 2));
549
+ }
550
+ });
551
+ //#endregion
552
+ export { S as _, k as a, D as c, T as d, _ as f, w as g, me as h, j as i, C as l, y as m, A as n, E as o, v as p, he as r, O as s, We as t, x as u };
@@ -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 ne, m as re, r as ie, z as b } from "./keys-DAxnnmXs.js";
4
- import { t as ae } from "./useI18n-OaMLWqhY.js";
3
+ import { B as b, h as ne, r as re, u as ie } from "./keys-DFaIbGR8.js";
4
+ import { t as ae } from "./useI18n-BNMzZTM5.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-DIn74fK2.js";
14
+ import { n as ce } from "./useCloudI18n-PCDOC2kz.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",
@@ -101,7 +101,7 @@ var ue = x("chevron-up", [["path", {
101
101
  props: { visible: { type: Boolean } },
102
102
  emits: ["close", "filterBlock"],
103
103
  setup(c, { expose: x, emit: D }) {
104
- let k = c, A = D, { format: j } = ae(), { t: M } = ce(), N = b(re, "CommentsSidebar"), bt = b(ie, "CommentsSidebar"), P = b(ne, "CommentsSidebar"), F = s("unresolved"), I = s(null), L = s(""), R = s(null), z = s(""), B = s(null), V = s(""), H = s(/* @__PURE__ */ new Set()), U = s(null), W = s(null), xt = h(() => bt.userConfig?.id ?? null), St = h(() => {
104
+ let k = c, A = D, { format: j } = ae(), { t: M } = ce(), N = b(ne, "CommentsSidebar"), bt = b(re, "CommentsSidebar"), P = b(ie, "CommentsSidebar"), F = s("unresolved"), I = s(null), L = s(""), R = s(null), z = s(""), B = s(null), V = s(""), H = s(/* @__PURE__ */ new Set()), U = s(null), W = s(null), xt = h(() => bt.userConfig?.id ?? null), St = h(() => {
105
105
  let e = /* @__PURE__ */ new Set();
106
106
  for (let t of N.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);
107
107
  return e;
@@ -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-OaMLWqhY.js";
4
+ import { t as m } from "./useI18n-BNMzZTM5.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-OaMLWqhY.js";
3
- import { f as m, t as h } from "./ColorPicker-BXCcUYsZ.js";
2
+ import { t as p } from "./useI18n-BNMzZTM5.js";
3
+ import { f as m, t as h } from "./ColorPicker-BsgpTJqK.js";
4
4
  import { t as g } from "./ToggleSwitch-DUNuUPsZ.js";
5
- import { n as _, r as v, t as y } from "./NumberWithSuffix-BreqtON_.js";
5
+ import { n as _, r as v, t as y } from "./NumberWithSuffix-D3BKz66W.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,15 +1,15 @@
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 { t as oe } from "./upload-y4gxiFp5.js";
4
- import { m as se, r as m, z as h } from "./keys-DAxnnmXs.js";
4
+ import { B as m, h, r as se } from "./keys-DFaIbGR8.js";
5
5
  import { t as g } from "./createLucideIcon-FSF4peHQ.js";
6
6
  import { t as ce } from "./circle-alert-Bhzm-fNA.js";
7
7
  import { t as _ } from "./image-up-CDEgJqwA.js";
8
8
  import { t as v } from "./x-Ctg_250T.js";
9
9
  import { t as le } from "./LoadingTrack-KIcREPlS.js";
10
10
  import { t as y } from "./_plugin-vue_export-helper-B3ysoDQm.js";
11
- import { n as ue } from "./useCloudI18n-DIn74fK2.js";
12
- import { u as de } from "./cloud-BogxOeZu.js";
11
+ import { n as ue } from "./useCloudI18n-PCDOC2kz.js";
12
+ import { u as de } from "./cloud-B-RebwxI.js";
13
13
  var fe = g("file-image", [
14
14
  ["path", {
15
15
  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",
@@ -79,8 +79,8 @@ var fe = g("file-image", [
79
79
  },
80
80
  emits: ["close", "apply"],
81
81
  setup(s, { emit: g }) {
82
- let y = s, z = g, { t: B } = ue(), xe = h(se, "DesignReferenceSidebar"), V = de({
83
- authManager: h(m, "DesignReferenceSidebar"),
82
+ let y = s, z = g, { t: B } = ue(), xe = m(h, "DesignReferenceSidebar"), V = de({
83
+ authManager: m(se, "DesignReferenceSidebar"),
84
84
  getTemplateId: () => xe.state.template?.id ?? null,
85
85
  onApply: (e) => z("apply", e)
86
86
  }), H = o(null), U = o("image"), W = o(null), G = o(""), K = o(null), q = o(!1), J = o(!1), Y = ne(() => !V.isGenerating.value && W.value !== null);
@@ -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 { F as g, m as _ } from "./keys-DAxnnmXs.js";
3
- import { t as v } from "./useI18n-OaMLWqhY.js";
2
+ import { I as g, h as _ } from "./keys-DFaIbGR8.js";
3
+ import { t as v } from "./useI18n-BNMzZTM5.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-LJJNXXqC.js";
4
- import { N as ie, m as ae, z as v } from "./keys-DAxnnmXs.js";
5
- import { t as oe } from "./useI18n-OaMLWqhY.js";
6
- import { n as se, r as y, t as b } from "./blockTypeIcons-CnlwyvkL.js";
3
+ import "./useEditorCore-ea9OrrH3.js";
4
+ import { B as v, P as ie, h as ae } from "./keys-DFaIbGR8.js";
5
+ import { t as oe } from "./useI18n-BNMzZTM5.js";
6
+ import { n as se, r as y, t as b } from "./blockTypeIcons-BlPKjD7M.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-DIn74fK2.js";
10
- import { t as de } from "./TplModal-DAtccv6o.js";
9
+ import { n as ue } from "./useCloudI18n-PCDOC2kz.js";
10
+ import { t as de } from "./TplModal-DoOwUKlT.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-xEMWMJwf.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-BwObwisa.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();