@templatical/editor 0.16.0 → 0.16.2

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 (168) hide show
  1. package/dist/{AiChatSidebar-B-k_Sdas.js → AiChatSidebar-EaPCeDXr.js} +14 -14
  2. package/dist/{AiFeatureMenu-B5_IKOlI.js → AiFeatureMenu-DfTYyExg.js} +7 -7
  3. package/dist/{BlockIssueBadge-B3xVgMTh.js → BlockIssueBadge-CZYgn-qg.js} +5 -5
  4. package/dist/{CloudEditor-BUJk4vXS.js → CloudEditor-BQyZ_nFg.js} +24 -24
  5. package/dist/{CollaboratorBar-BAUQfXUk.js → CollaboratorBar-DeP7K-zk.js} +4 -4
  6. package/dist/ColorPicker-CXAbjTaG.js +446 -0
  7. package/dist/{CommentsSidebar-D_tSGvTX.js → CommentsSidebar-DDKiFsSq.js} +13 -13
  8. package/dist/{CountdownBlock-apiYUhkQ.js → CountdownBlock-173fiO5Z.js} +3 -3
  9. package/dist/{CountdownToolbar-CS0axcjz.js → CountdownToolbar-nY9H0BKd.js} +4 -4
  10. package/dist/{DesignReferenceSidebar-BYQcuaL4.js → DesignReferenceSidebar-D6TfC176.js} +11 -11
  11. package/dist/{IssuesPanel-CR1MPaDE.js → IssuesPanel-CQQipLQP.js} +8 -8
  12. package/dist/{LoadingTrack-DsecR8Rw.js → LoadingTrack-KIcREPlS.js} +1 -1
  13. package/dist/{MergeTagSuggestion-DLVykS0K.js → MergeTagSuggestion-DrT3LiZ4.js} +4 -4
  14. package/dist/{ModuleBrowserModal-BzDuagt5.js → ModuleBrowserModal-CkeYw1e3.js} +11 -11
  15. package/dist/{ModulePreviewCanvas-CK11BX4i.js → ModulePreviewCanvas-BIMFyYaa.js} +3 -3
  16. package/dist/NumberWithSuffix-BoZyUoNz.js +89 -0
  17. package/dist/{ParagraphEditor-fg9Ljy_Z.js → ParagraphEditor-DGsTFMxg.js} +232 -207
  18. package/dist/{RichTextEditorContent-BqLHIZY7.js → RichTextEditorContent-BB_n8vgB.js} +56 -45
  19. package/dist/{SaveModuleDialog-D27ufH5q.js → SaveModuleDialog-Cypt_qOB.js} +8 -8
  20. package/dist/{SnapshotHistory-Cymqkk9_.js → SnapshotHistory-DQTH8TCS.js} +10 -10
  21. package/dist/{TemplateScoringPanel-CZ62rGHz.js → TemplateScoringPanel-C8VOC6gn.js} +15 -15
  22. package/dist/{TestEmailModal-BIvdHidU.js → TestEmailModal-DqxrL-U9.js} +6 -6
  23. package/dist/{TitleEditor-D0a4NdOn.js → TitleEditor-DoGgnrcb.js} +38 -35
  24. package/dist/{TplModal-dYXt3vyd.js → TplModal-Ca-29YDD.js} +5 -5
  25. package/dist/{blockTypeIcons-JSBvsa0M.js → blockTypeIcons-DVJXg5si.js} +7 -7
  26. package/dist/bundle-stats.json +6 -6
  27. package/dist/{ca-C58VqAgo.js → ca-B3eR47lE.js} +2 -1
  28. package/dist/cdn/chunks/{AiFeatureMenu-B6V5CzCc.js → AiFeatureMenu-roPglhox.js} +6 -6
  29. package/dist/cdn/chunks/{AiFeatureMenu-B6V5CzCc.js.map → AiFeatureMenu-roPglhox.js.map} +1 -1
  30. package/dist/cdn/chunks/{BlockIssueBadge-C6Xpl1KK.js → BlockIssueBadge-DW_Tt7Wg.js} +5 -5
  31. package/dist/cdn/chunks/{BlockIssueBadge-C6Xpl1KK.js.map → BlockIssueBadge-DW_Tt7Wg.js.map} +1 -1
  32. package/dist/cdn/chunks/{CloudEditor-C-npgK-l.js → CloudEditor-CX6y1k3C.js} +161 -161
  33. package/dist/cdn/chunks/{CloudEditor-C-npgK-l.js.map → CloudEditor-CX6y1k3C.js.map} +1 -1
  34. package/dist/cdn/chunks/{CollaboratorBar-BSKXgw9D.js → CollaboratorBar-Dyrab63H.js} +4 -4
  35. package/dist/cdn/chunks/{CollaboratorBar-BSKXgw9D.js.map → CollaboratorBar-Dyrab63H.js.map} +1 -1
  36. package/dist/cdn/chunks/ColorPicker-BggAWrc9.js +443 -0
  37. package/dist/cdn/chunks/ColorPicker-BggAWrc9.js.map +1 -0
  38. package/dist/cdn/chunks/{CountdownBlock-Y-nycxv2.js → CountdownBlock-Bul4tczj.js} +3 -3
  39. package/dist/cdn/chunks/{CountdownBlock-Y-nycxv2.js.map → CountdownBlock-Bul4tczj.js.map} +1 -1
  40. package/dist/cdn/chunks/{CountdownToolbar-9LqnhGyh.js → CountdownToolbar-DYvATR0J.js} +5 -5
  41. package/dist/cdn/chunks/{CountdownToolbar-9LqnhGyh.js.map → CountdownToolbar-DYvATR0J.js.map} +1 -1
  42. package/dist/cdn/chunks/{IssuesPanel-BYfGf1rC.js → IssuesPanel-BhHU-hq3.js} +8 -8
  43. package/dist/cdn/chunks/{IssuesPanel-BYfGf1rC.js.map → IssuesPanel-BhHU-hq3.js.map} +1 -1
  44. package/dist/cdn/chunks/{MergeTagSuggestion-DQzKlLH7.js → MergeTagSuggestion-jesxS7An.js} +3 -3
  45. package/dist/cdn/chunks/{MergeTagSuggestion-DQzKlLH7.js.map → MergeTagSuggestion-jesxS7An.js.map} +1 -1
  46. package/dist/cdn/chunks/{ModuleBrowserModal-EzKgW5TG.js → ModuleBrowserModal-BGd5Ryyx.js} +9 -9
  47. package/dist/cdn/chunks/{ModuleBrowserModal-EzKgW5TG.js.map → ModuleBrowserModal-BGd5Ryyx.js.map} +1 -1
  48. package/dist/cdn/chunks/{ModulePreviewCanvas-DxbSzXm8.js → ModulePreviewCanvas-Hx6SCCjB.js} +11 -11
  49. package/dist/cdn/chunks/{ModulePreviewCanvas-DxbSzXm8.js.map → ModulePreviewCanvas-Hx6SCCjB.js.map} +1 -1
  50. package/dist/cdn/chunks/NumberWithSuffix-BImuhc9K.js +91 -0
  51. package/dist/cdn/chunks/NumberWithSuffix-BImuhc9K.js.map +1 -0
  52. package/dist/cdn/chunks/{ParagraphEditor-CJNgRMhw.js → ParagraphEditor-K2vENidm.js} +209 -184
  53. package/dist/cdn/chunks/ParagraphEditor-K2vENidm.js.map +1 -0
  54. package/dist/cdn/chunks/{RichTextEditorContent-Cebdzomd.js → RichTextEditorContent-B_w3u5lN.js} +53 -42
  55. package/dist/cdn/chunks/RichTextEditorContent-B_w3u5lN.js.map +1 -0
  56. package/dist/cdn/chunks/{SaveModuleDialog-Cufwqoln.js → SaveModuleDialog-Cw-182CB.js} +6 -6
  57. package/dist/cdn/chunks/{SaveModuleDialog-Cufwqoln.js.map → SaveModuleDialog-Cw-182CB.js.map} +1 -1
  58. package/dist/cdn/chunks/{TitleEditor-7BhmKL-_.js → TitleEditor-CUKlo_Zj.js} +46 -43
  59. package/dist/cdn/chunks/TitleEditor-CUKlo_Zj.js.map +1 -0
  60. package/dist/cdn/chunks/{blockTypeIcons-d4Sb61H-.js → blockTypeIcons-Cx1FAqL6.js} +5 -5
  61. package/dist/cdn/chunks/{blockTypeIcons-d4Sb61H-.js.map → blockTypeIcons-Cx1FAqL6.js.map} +1 -1
  62. package/dist/cdn/chunks/{ca-C58VqAgo.js → ca-B3eR47lE.js} +3 -2
  63. package/dist/cdn/chunks/ca-B3eR47lE.js.map +1 -0
  64. package/dist/cdn/chunks/{de-C0sMmfic.js → de-Cy8FB-Ii.js} +3 -2
  65. package/dist/cdn/chunks/de-Cy8FB-Ii.js.map +1 -0
  66. package/dist/cdn/chunks/{draggable-kG-D5Xsm.js → draggable-D840DIZB.js} +52 -39
  67. package/dist/cdn/chunks/draggable-D840DIZB.js.map +1 -0
  68. package/dist/cdn/chunks/{en-CsGBTBOf.js → en-Bu-zS_5o.js} +3 -2
  69. package/dist/cdn/chunks/en-Bu-zS_5o.js.map +1 -0
  70. package/dist/cdn/chunks/{es-DgjbcPIu.js → es-CD3ZD6hK.js} +3 -2
  71. package/dist/cdn/chunks/es-CD3ZD6hK.js.map +1 -0
  72. package/dist/cdn/chunks/{extensions-BeAsz_mp.js → extensions-DSxG2wYf.js} +28 -28
  73. package/dist/cdn/chunks/{extensions-BeAsz_mp.js.map → extensions-DSxG2wYf.js.map} +1 -1
  74. package/dist/cdn/chunks/{features-DO71hPJr.js → features-C-cjT_8L.js} +589 -553
  75. package/dist/cdn/chunks/features-C-cjT_8L.js.map +1 -0
  76. package/dist/cdn/chunks/{icons-BfP1cRNb.js → icons-ay0_fN-T.js} +2 -2
  77. package/dist/cdn/chunks/{icons-BfP1cRNb.js.map → icons-ay0_fN-T.js.map} +1 -1
  78. package/dist/cdn/chunks/{media-library-0S3e0i8G.js → media-library-CkmqPdO4.js} +104 -104
  79. package/dist/cdn/chunks/{media-library-0S3e0i8G.js.map → media-library-CkmqPdO4.js.map} +1 -1
  80. package/dist/cdn/chunks/{pt-BR-DXaP5lMJ.js → pt-BR-CgICL-CQ.js} +3 -2
  81. package/dist/cdn/chunks/pt-BR-CgICL-CQ.js.map +1 -0
  82. package/dist/cdn/chunks/quality-CDNrMw2A.js +2180 -0
  83. package/dist/cdn/chunks/{quality-B6V4R_df.js.map → quality-CDNrMw2A.js.map} +1 -1
  84. package/dist/cdn/chunks/{renderer-Dhn1J4H4.js → renderer-JQ91A09w.js} +18 -18
  85. package/dist/cdn/chunks/renderer-JQ91A09w.js.map +1 -0
  86. package/dist/cdn/chunks/{src-DoKjbqU2.js → src-Cehu7Hqx.js} +5 -5
  87. package/dist/cdn/chunks/{src-DoKjbqU2.js.map → src-Cehu7Hqx.js.map} +1 -1
  88. package/dist/cdn/chunks/{styles-CSqligXJ.js → styles-DBjy3lz9.js} +820 -820
  89. package/dist/cdn/chunks/{styles-CSqligXJ.js.map → styles-DBjy3lz9.js.map} +1 -1
  90. package/dist/cdn/chunks/{tiptap-DVHUKGZf.js → tiptap-zpXk5mN4.js} +1131 -1134
  91. package/dist/cdn/chunks/{tiptap-DVHUKGZf.js.map → tiptap-zpXk5mN4.js.map} +1 -1
  92. package/dist/cdn/editor.css +1 -1
  93. package/dist/cdn/editor.js +75 -75
  94. package/dist/cdn/editor.js.map +1 -1
  95. package/dist/{check-rl7ok6uJ.js → check-D1zYtCPK.js} +1 -1
  96. package/dist/{chevron-down-BKe__NOD.js → chevron-down-ByXpufZD.js} +1 -1
  97. package/dist/{circle-alert-C8xmpMsK.js → circle-alert-CjcAORUw.js} +1 -1
  98. package/dist/{clock-BW4JuDCN.js → clock-5lWLadUn.js} +1 -1
  99. package/dist/{cloud-CFpaFRCV.js → cloud-BogxOeZu.js} +1 -1
  100. package/dist/{createLucideIcon-Dx-EjR9r.js → createLucideIcon-Bh9xOmlW.js} +3 -3
  101. package/dist/{de-C0sMmfic.js → de-Cy8FB-Ii.js} +2 -1
  102. package/dist/dist-BE9m_i60.js +5 -0
  103. package/dist/{dist-C5-0GG3g.js → dist-BPPeDw62.js} +2 -2
  104. package/dist/{dist-DEcNpSJi.js → dist-BReUTadj.js} +4 -4
  105. package/dist/dist-BXR1aBJV.js +5 -0
  106. package/dist/{dist-r_2rJCMg.js → dist-Bm07Z3Es.js} +2 -2
  107. package/dist/{dist-BEWiuOMi.js → dist-CFOQvhSC.js} +3 -3
  108. package/dist/{dist-Ci5GHd96.js → dist-CHLoeloJ.js} +2 -2
  109. package/dist/{dist-0VHbLR6h.js → dist-D1WmF8BF.js} +2 -2
  110. package/dist/{dist-DrlHbc8g.js → dist-D9g4CSnm.js} +1 -1
  111. package/dist/{dist-Drm7i-yw.js → dist-DGEaAAIb.js} +2 -2
  112. package/dist/{dist-CTT6WYJ6.js → dist-DYv_Pttj.js} +2 -2
  113. package/dist/{dist-Dsoq4knU.js → dist-DcKlLQ8d.js} +2 -2
  114. package/dist/{dist-D_-AsMP4.js → dist-DhY2di4U.js} +2 -2
  115. package/dist/{dist-FVawx7ou.js → dist-i_Z7t67A.js} +260 -263
  116. package/dist/{en-CsGBTBOf.js → en-Bu-zS_5o.js} +2 -1
  117. package/dist/{es-DgjbcPIu.js → es-CD3ZD6hK.js} +2 -1
  118. package/dist/{extensions-3jhgwhV-.js → extensions-B2poxDIo.js} +7 -7
  119. package/dist/{image-up-BwBCmQ4P.js → image-up-Bj_nes3f.js} +1 -1
  120. package/dist/{info-TCn7uWR5.js → info-BhSQCxBV.js} +1 -1
  121. package/dist/{keys-Cv8-8GsD.js → keys-BbDgCU6K.js} +1 -1
  122. package/dist/{list-checks-CSrOWNgq.js → list-checks-CgxyUg7i.js} +1 -1
  123. package/dist/{loader-circle-BLmicnPG.js → loader-circle-DFU0HPAa.js} +1 -1
  124. package/dist/{message-circle-C9hHMQCI.js → message-circle-BEBsCHnk.js} +1 -1
  125. package/dist/{pt-BR-DXaP5lMJ.js → pt-BR-CgICL-CQ.js} +2 -1
  126. package/dist/{refresh-cw-D1JQ1LNa.js → refresh-cw--lvWGy0_.js} +1 -1
  127. package/dist/{runtime-dom.esm-bundler-BzuoCyNp.js → runtime-dom.esm-bundler-GdMI8WqG.js} +6 -7
  128. package/dist/{scan-line-DgijVq9y.js → scan-line-QgyDIgn_.js} +1 -1
  129. package/dist/{send-DjPdq69F.js → send-BMyisUim.js} +1 -1
  130. package/dist/{shield-check-Bqluu8FS.js → shield-check-C49M20le.js} +1 -1
  131. package/dist/{sparkles-M4azPVSP.js → sparkles-DV7Dman6.js} +1 -1
  132. package/dist/style.css +1 -1
  133. package/dist/{styles-5sGbDIA2.js → styles-mvx3k1hf.js} +78 -78
  134. package/dist/templatical-editor.js +62 -62
  135. package/dist/{text-align-start-CMya5pCQ.js → text-align-start-BMU70uAm.js} +1 -1
  136. package/dist/{trash-2-C-81rkLS.js → trash-2-B6M659Ey.js} +1 -1
  137. package/dist/{triangle-alert-BuRWnynk.js → triangle-alert-D1lzx6ds.js} +1 -1
  138. package/dist/{upload-CWBIoLd4.js → upload-3A1oZtOR.js} +1 -1
  139. package/dist/{useAliveFlag-CECL_OUb.js → useAliveFlag-C43EhZFY.js} +1 -1
  140. package/dist/{useCloudI18n-AKCy98qD.js → useCloudI18n-WbfVWq5k.js} +2 -2
  141. package/dist/{useEditorCore-AQ0BN1ug.js → useEditorCore-DtZkR7Vk.js} +616 -580
  142. package/dist/{useI18n-C-TDeJBt.js → useI18n-eR1yVW0v.js} +2 -2
  143. package/dist/{useMergeTag-D0aZw7Q5.js → useMergeTag-C3GfSktg.js} +2 -2
  144. package/dist/usePopoverRoot-C1j0D7cc.js +8 -0
  145. package/dist/{vue.runtime.esm-bundler-l0XAqiyv.js → vue.runtime.esm-bundler-B0xoGkDv.js} +84 -70
  146. package/dist/{x-CQSvXnGR.js → x-CG_NV3nP.js} +1 -1
  147. package/package.json +23 -23
  148. package/dist/NumberWithSuffix-CrA6quxx.js +0 -445
  149. package/dist/cdn/chunks/NumberWithSuffix-Conp_Pki.js +0 -444
  150. package/dist/cdn/chunks/NumberWithSuffix-Conp_Pki.js.map +0 -1
  151. package/dist/cdn/chunks/ParagraphEditor-CJNgRMhw.js.map +0 -1
  152. package/dist/cdn/chunks/RichTextEditorContent-Cebdzomd.js.map +0 -1
  153. package/dist/cdn/chunks/TitleEditor-7BhmKL-_.js.map +0 -1
  154. package/dist/cdn/chunks/ca-C58VqAgo.js.map +0 -1
  155. package/dist/cdn/chunks/de-C0sMmfic.js.map +0 -1
  156. package/dist/cdn/chunks/draggable-kG-D5Xsm.js.map +0 -1
  157. package/dist/cdn/chunks/en-CsGBTBOf.js.map +0 -1
  158. package/dist/cdn/chunks/es-DgjbcPIu.js.map +0 -1
  159. package/dist/cdn/chunks/features-DO71hPJr.js.map +0 -1
  160. package/dist/cdn/chunks/pt-BR-DXaP5lMJ.js.map +0 -1
  161. package/dist/cdn/chunks/quality-B6V4R_df.js +0 -2180
  162. package/dist/cdn/chunks/renderer-Dhn1J4H4.js.map +0 -1
  163. package/dist/cdn/chunks/styleConstants-lGobwiLH.js +0 -57
  164. package/dist/cdn/chunks/styleConstants-lGobwiLH.js.map +0 -1
  165. package/dist/dist-DR-6IpV6.js +0 -5
  166. package/dist/dist-DW8b0TO6.js +0 -5
  167. package/dist/styleConstants-lGobwiLH.js +0 -55
  168. package/dist/usePopoverRoot-DKUDnr55.js +0 -8
@@ -1,18 +1,18 @@
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-l0XAqiyv.js";
2
- import { a as h, t as g } from "./runtime-dom.esm-bundler-BzuoCyNp.js";
3
- import { m as ie, p as ae } from "./dist-CTT6WYJ6.js";
4
- import { L as _, S as oe, c as se, m as ce, r as le } from "./keys-Cv8-8GsD.js";
5
- import { t as v } from "./createLucideIcon-Dx-EjR9r.js";
6
- import { t as ue } from "./circle-alert-C8xmpMsK.js";
7
- import { t as de } from "./loader-circle-BLmicnPG.js";
8
- import { t as fe } from "./send-DjPdq69F.js";
9
- import { t as y } from "./sparkles-M4azPVSP.js";
10
- import { t as pe } from "./trash-2-C-81rkLS.js";
11
- import { t as me } from "./x-CQSvXnGR.js";
12
- import { t as b } from "./LoadingTrack-DsecR8Rw.js";
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
+ import { a as h, t as g } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
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";
5
+ import { t as v } from "./createLucideIcon-Bh9xOmlW.js";
6
+ import { t as ue } from "./circle-alert-CjcAORUw.js";
7
+ import { t as de } from "./loader-circle-DFU0HPAa.js";
8
+ import { t as fe } from "./send-BMyisUim.js";
9
+ import { t as y } from "./sparkles-DV7Dman6.js";
10
+ import { t as pe } from "./trash-2-B6M659Ey.js";
11
+ import { t as me } from "./x-CG_NV3nP.js";
12
+ import { t as b } from "./LoadingTrack-KIcREPlS.js";
13
13
  import { t as x } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
- import { t as S } from "./useAliveFlag-CECL_OUb.js";
15
- import { i as C } from "./cloud-CFpaFRCV.js";
14
+ import { t as S } from "./useAliveFlag-C43EhZFY.js";
15
+ import { i as C } from "./cloud-BogxOeZu.js";
16
16
  var w = v("redo-2", [["path", {
17
17
  d: "m15 14 5-5-5-5",
18
18
  key: "12vg1m"
@@ -1,11 +1,11 @@
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-l0XAqiyv.js";
2
- import "./useEditorCore-AQ0BN1ug.js";
3
- import { L as d, t as f } from "./keys-Cv8-8GsD.js";
4
- import { t as p } from "./image-up-BwBCmQ4P.js";
5
- import { t as m } from "./shield-check-Bqluu8FS.js";
6
- import { t as h } from "./sparkles-M4azPVSP.js";
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-DtZkR7Vk.js";
3
+ import { L as d, t as f } from "./keys-BbDgCU6K.js";
4
+ import { t as p } from "./image-up-Bj_nes3f.js";
5
+ import { t as m } from "./shield-check-C49M20le.js";
6
+ import { t as h } from "./sparkles-DV7Dman6.js";
7
7
  import { t as g } from "./_plugin-vue_export-helper-B3ysoDQm.js";
8
- import { n as _ } from "./useCloudI18n-AKCy98qD.js";
8
+ import { n as _ } from "./useCloudI18n-WbfVWq5k.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,8 +1,8 @@
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-l0XAqiyv.js";
2
- import { N as l } from "./keys-Cv8-8GsD.js";
3
- import { t as u } from "./useI18n-C-TDeJBt.js";
4
- import { t as d } from "./circle-alert-C8xmpMsK.js";
5
- import { t as f } from "./triangle-alert-BuRWnynk.js";
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";
4
+ import { t as d } from "./circle-alert-CjcAORUw.js";
5
+ import { t as f } from "./triangle-alert-D1lzx6ds.js";
6
6
  //#region src/components/canvas/BlockIssueBadge.vue?vue&type=script&setup=true&lang.ts
7
7
  var p = ["title", "aria-label"], m = /* @__PURE__ */ n({
8
8
  __name: "BlockIssueBadge",
@@ -1,26 +1,26 @@
1
- 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 c, R as l, Y as u, Z as d, _ as f, c as p, d as m, g as h, h as g, k as _, l as v, m as y, nt as b, p as x, r as S, s as C, u as w, z as T } from "./vue.runtime.esm-bundler-l0XAqiyv.js";
2
- import { c as E, o as D, t as O } from "./runtime-dom.esm-bundler-BzuoCyNp.js";
1
+ 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 c, R as l, Y as u, Z as d, _ as f, c as p, d as m, g as h, h as g, k as _, l as v, m as y, nt as b, p as x, r as S, s as C, u as w, z as T } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
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 { I as M, b as ee, t as N, w as P } from "./useEditorCore-AQ0BN1ug.js";
6
- import { m as F } from "./dist-CTT6WYJ6.js";
7
- import { t as I } from "./dist-BEWiuOMi.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-Cv8-8GsD.js";
9
- import { t as V } from "./useI18n-C-TDeJBt.js";
10
- import { t as H } from "./createLucideIcon-Dx-EjR9r.js";
11
- import { t as U } from "./check-rl7ok6uJ.js";
12
- import { t as W } from "./circle-alert-C8xmpMsK.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-5sGbDIA2.js";
14
- import { t as he } from "./clock-BW4JuDCN.js";
15
- import { t as J } from "./loader-circle-BLmicnPG.js";
16
- import { t as ge } from "./message-circle-C9hHMQCI.js";
17
- import { t as _e } from "./send-DjPdq69F.js";
18
- import { t as Y } from "./sparkles-M4azPVSP.js";
19
- import { t as X } from "./triangle-alert-BuRWnynk.js";
5
+ import { L as M, T as N, b as ee, t as P } from "./useEditorCore-DtZkR7Vk.js";
6
+ import { m as F } from "./dist-DYv_Pttj.js";
7
+ import { t as I } from "./dist-CFOQvhSC.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";
10
+ import { t as H } from "./createLucideIcon-Bh9xOmlW.js";
11
+ import { t as U } from "./check-D1zYtCPK.js";
12
+ import { t as W } from "./circle-alert-CjcAORUw.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-mvx3k1hf.js";
14
+ import { t as he } from "./clock-5lWLadUn.js";
15
+ import { t as J } from "./loader-circle-DFU0HPAa.js";
16
+ import { t as ge } from "./message-circle-BEBsCHnk.js";
17
+ import { t as _e } from "./send-BMyisUim.js";
18
+ import { t as Y } from "./sparkles-DV7Dman6.js";
19
+ import { t as X } from "./triangle-alert-D1lzx6ds.js";
20
20
  import { t as Z } from "./_plugin-vue_export-helper-B3ysoDQm.js";
21
- import { n as Q } from "./useCloudI18n-AKCy98qD.js";
22
- import { d as $ } from "./styleConstants-lGobwiLH.js";
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-CFpaFRCV.js";
21
+ import { n as Q } from "./useCloudI18n-WbfVWq5k.js";
22
+ import { d as $ } from "./ColorPicker-CXAbjTaG.js";
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", {
26
26
  d: "M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",
@@ -271,7 +271,7 @@ function Ve(e) {
271
271
  }), a(() => x.lockedBlocks.value, (e) => {
272
272
  v.value = e;
273
273
  }, { immediate: !0 }), je(y, x));
274
- let S = C(() => !!t.collaboration?.enabled && g.hasFeature("collaboration")), w = N({
274
+ let S = C(() => !!t.collaboration?.enabled && g.hasFeature("collaboration")), w = P({
275
275
  editor: y,
276
276
  config: {
277
277
  uiTheme: t.uiTheme,
@@ -331,7 +331,7 @@ function Ve(e) {
331
331
  getMediaConfig: () => g.config.value?.media ?? null,
332
332
  onError: t.onError
333
333
  });
334
- P({
334
+ N({
335
335
  onBlockMove: y.moveBlock,
336
336
  onBlockAdd: y.addBlock
337
337
  });
@@ -628,7 +628,7 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
628
628
  },
629
629
  emits: ["save"],
630
630
  setup(e) {
631
- let t = h(() => import("./CollaboratorBar-BAUQfXUk.js")), r = h(() => import("./SnapshotHistory-Cymqkk9_.js")), a = h(() => import("./AiFeatureMenu-B5_IKOlI.js")), { t: o, format: u } = Q();
631
+ let t = h(() => import("./CollaboratorBar-DeP7K-zk.js")), r = h(() => import("./SnapshotHistory-DQTH8TCS.js")), a = h(() => import("./AiFeatureMenu-DfTYyExg.js")), { t: o, format: u } = Q();
632
632
  return (d, f) => (s(), m("header", tt, [
633
633
  p("div", nt, [e.featureFlags.templateLimit.value === null ? w("", !0) : (s(), m("span", rt, c(b(u)(b(o).header.templatesUsed, {
634
634
  used: e.featureFlags.templateCount.value,
@@ -790,7 +790,7 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
790
790
  "module-insert"
791
791
  ],
792
792
  setup(e, { expose: t, emit: n }) {
793
- let r = h(() => import("./AiChatSidebar-B-k_Sdas.js")), i = h(() => import("./CommentsSidebar-D_tSGvTX.js")), a = h(() => import("./DesignReferenceSidebar-BYQcuaL4.js")), o = h(() => import("./TemplateScoringPanel-CZ62rGHz.js")), c = h(() => import("./TestEmailModal-BIvdHidU.js")), l = h(() => import("./SaveModuleDialog-D27ufH5q.js")), d = h(() => import("./ModuleBrowserModal-BzDuagt5.js")), f = h(async () => {
793
+ let r = h(() => import("./AiChatSidebar-EaPCeDXr.js")), i = h(() => import("./CommentsSidebar-DDKiFsSq.js")), a = h(() => import("./DesignReferenceSidebar-D6TfC176.js")), o = h(() => import("./TemplateScoringPanel-C8VOC6gn.js")), c = h(() => import("./TestEmailModal-DqxrL-U9.js")), l = h(() => import("./SaveModuleDialog-Cypt_qOB.js")), d = h(() => import("./ModuleBrowserModal-CkeYw1e3.js")), f = h(async () => {
794
794
  try {
795
795
  return (await import("@templatical/media-library")).MediaLibraryModal;
796
796
  } catch {
@@ -1,7 +1,7 @@
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-l0XAqiyv.js";
2
- import "./useEditorCore-AQ0BN1ug.js";
3
- import { t as f } from "./createLucideIcon-Dx-EjR9r.js";
4
- import { n as p } from "./useCloudI18n-AKCy98qD.js";
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-DtZkR7Vk.js";
3
+ import { t as f } from "./createLucideIcon-Bh9xOmlW.js";
4
+ import { n as p } from "./useCloudI18n-WbfVWq5k.js";
5
5
  import { t as m } from "./readableTextColor-f8Kykfnh.js";
6
6
  var h = f("wifi-off", [
7
7
  ["path", {
@@ -0,0 +1,446 @@
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 l, l as ee, nt as u, s as d, u as f, x as p } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
+ import { s as te, t as ne } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
+ import { t as re } from "./dist-CFOQvhSC.js";
4
+ import { I as ie, P as ae } from "./keys-BbDgCU6K.js";
5
+ import { t as oe } from "./useI18n-eR1yVW0v.js";
6
+ import { t as se } from "./x-CG_NV3nP.js";
7
+ import { t as ce } from "./usePopoverRoot-C1j0D7cc.js";
8
+ //#region src/constants/styleConstants.ts
9
+ var m = "tpl:block tpl:mb-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]", h = "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)]", g = "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)]", _ = "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)]", le = "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)]", v = "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)]", y = "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)]", b = "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)]", x = "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)]", S = "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", C = [
10
+ "10px",
11
+ "12px",
12
+ "14px",
13
+ "16px",
14
+ "18px",
15
+ "20px",
16
+ "24px",
17
+ "28px",
18
+ "32px",
19
+ "36px",
20
+ "48px",
21
+ "64px"
22
+ ], w = [
23
+ "1",
24
+ "1.2",
25
+ "1.4",
26
+ "1.5",
27
+ "1.6",
28
+ "1.8",
29
+ "2",
30
+ "2.5"
31
+ ], T = [
32
+ {
33
+ label: "Normal",
34
+ value: "normal"
35
+ },
36
+ {
37
+ label: "-0.5px",
38
+ value: "-0.5px"
39
+ },
40
+ {
41
+ label: "0.5px",
42
+ value: "0.5px"
43
+ },
44
+ {
45
+ label: "1px",
46
+ value: "1px"
47
+ },
48
+ {
49
+ label: "1.5px",
50
+ value: "1.5px"
51
+ },
52
+ {
53
+ label: "2px",
54
+ value: "2px"
55
+ },
56
+ {
57
+ label: "3px",
58
+ value: "3px"
59
+ }
60
+ ], E = "#000000", D = "#ffffff", O = "#ffff00", k = "#f2f2f2", A = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, j = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n;
61
+ 360 / (Math.PI * 2);
62
+ var M = (e) => fe(N(e)), N = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
63
+ r: parseInt(e[0] + e[0], 16),
64
+ g: parseInt(e[1] + e[1], 16),
65
+ b: parseInt(e[2] + e[2], 16),
66
+ a: e.length === 4 ? j(parseInt(e[3] + e[3], 16) / 255, 2) : 1
67
+ } : {
68
+ r: parseInt(e.substring(0, 2), 16),
69
+ g: parseInt(e.substring(2, 4), 16),
70
+ b: parseInt(e.substring(4, 6), 16),
71
+ a: e.length === 8 ? j(parseInt(e.substring(6, 8), 16) / 255, 2) : 1
72
+ }), P = (e) => de(ue(e)), F = ({ h: e, s: t, v: n, a: r }) => {
73
+ let i = (200 - t) * n / 100;
74
+ return {
75
+ h: j(e),
76
+ s: j(i > 0 && i < 200 ? t * n / 100 / (i <= 100 ? i : 200 - i) * 100 : 0),
77
+ l: j(i / 2),
78
+ a: j(r, 2)
79
+ };
80
+ }, I = (e) => {
81
+ let { h: t, s: n, l: r } = F(e);
82
+ return `hsl(${t}, ${n}%, ${r}%)`;
83
+ }, ue = ({ h: e, s: t, v: n, a: r }) => {
84
+ e = e / 360 * 6, t /= 100, n /= 100;
85
+ 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;
86
+ return {
87
+ r: j([
88
+ n,
89
+ o,
90
+ a,
91
+ a,
92
+ s,
93
+ n
94
+ ][c] * 255),
95
+ g: j([
96
+ s,
97
+ n,
98
+ n,
99
+ o,
100
+ a,
101
+ a
102
+ ][c] * 255),
103
+ b: j([
104
+ a,
105
+ a,
106
+ s,
107
+ n,
108
+ n,
109
+ o
110
+ ][c] * 255),
111
+ a: j(r, 2)
112
+ };
113
+ }, L = (e) => {
114
+ let t = e.toString(16);
115
+ return t.length < 2 ? "0" + t : t;
116
+ }, de = ({ r: e, g: t, b: n, a: r }) => {
117
+ let i = r < 1 ? L(j(r * 255)) : "";
118
+ return "#" + L(e) + L(t) + L(n) + i;
119
+ }, fe = ({ r: e, g: t, b: n, a: r }) => {
120
+ 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;
121
+ return {
122
+ h: j(60 * (o < 0 ? o + 6 : o)),
123
+ s: j(i ? a / i * 100 : 0),
124
+ v: j(i / 255 * 100),
125
+ a: r
126
+ };
127
+ }, R = (e, t) => {
128
+ if (e === t) return !0;
129
+ for (let n in e) if (e[n] !== t[n]) return !1;
130
+ return !0;
131
+ }, pe = (e, t) => e.toLowerCase() === t.toLowerCase() || R(N(e), N(t)), z = {}, B = (e) => {
132
+ let t = z[e];
133
+ return t || (t = document.createElement("template"), t.innerHTML = e, z[e] = t), t;
134
+ }, V = (e, t, n) => {
135
+ e.dispatchEvent(new CustomEvent(t, {
136
+ bubbles: !0,
137
+ detail: n
138
+ }));
139
+ }, H = !1, U = (e) => "touches" in e, W = (e) => H && !U(e) ? !1 : (H ||= U(e), !0), G = (e, t) => {
140
+ let n = U(t) ? t.touches[0] : t, r = e.el.getBoundingClientRect();
141
+ V(e.el, "move", e.getMove({
142
+ x: A((n.pageX - (r.left + window.pageXOffset)) / r.width),
143
+ y: A((n.pageY - (r.top + window.pageYOffset)) / r.height)
144
+ }));
145
+ }, me = (e, t) => {
146
+ let n = t.keyCode;
147
+ n > 40 || e.xy && n < 37 || n < 33 || (t.preventDefault(), V(e.el, "move", e.getMove({
148
+ x: n === 39 ? .01 : n === 37 ? -.01 : n === 34 ? .05 : n === 33 ? -.05 : n === 35 ? 1 : n === 36 ? -1 : 0,
149
+ y: n === 40 ? .01 : n === 38 ? -.01 : 0
150
+ }, !0)));
151
+ }, K = class {
152
+ constructor(e, t, n, r) {
153
+ let i = B(`<div role="slider" tabindex="0" part="${t}" ${n}><div part="${t}-pointer"></div></div>`);
154
+ e.appendChild(i.content.cloneNode(!0));
155
+ let a = e.querySelector(`[part=${t}]`);
156
+ a.addEventListener("mousedown", this), a.addEventListener("touchstart", this), a.addEventListener("keydown", this), this.el = a, this.xy = r, this.nodes = [a.firstChild, a];
157
+ }
158
+ set dragging(e) {
159
+ let t = e ? document.addEventListener : document.removeEventListener;
160
+ t(H ? "touchmove" : "mousemove", this), t(H ? "touchend" : "mouseup", this);
161
+ }
162
+ handleEvent(e) {
163
+ switch (e.type) {
164
+ case "mousedown":
165
+ case "touchstart":
166
+ if (e.preventDefault(), !W(e) || !H && e.button != 0) return;
167
+ this.el.focus(), G(this, e), this.dragging = !0;
168
+ break;
169
+ case "mousemove":
170
+ case "touchmove":
171
+ e.preventDefault(), G(this, e);
172
+ break;
173
+ case "mouseup":
174
+ case "touchend":
175
+ this.dragging = !1;
176
+ break;
177
+ case "keydown":
178
+ me(this, e);
179
+ break;
180
+ }
181
+ }
182
+ style(e) {
183
+ e.forEach((e, t) => {
184
+ for (let n in e) this.nodes[t].style.setProperty(n, e[n]);
185
+ });
186
+ }
187
+ }, he = class extends K {
188
+ constructor(e) {
189
+ super(e, "hue", "aria-label=\"Hue\" aria-valuemin=\"0\" aria-valuemax=\"360\"", !1);
190
+ }
191
+ update({ h: e }) {
192
+ this.h = e, this.style([{
193
+ left: `${e / 360 * 100}%`,
194
+ color: I({
195
+ h: e,
196
+ s: 100,
197
+ v: 100,
198
+ a: 1
199
+ })
200
+ }]), this.el.setAttribute("aria-valuenow", `${j(e)}`);
201
+ }
202
+ getMove(e, t) {
203
+ return { h: t ? A(this.h + e.x * 360, 0, 360) : 360 * e.x };
204
+ }
205
+ }, ge = class extends K {
206
+ constructor(e) {
207
+ super(e, "saturation", "aria-label=\"Color\"", !0);
208
+ }
209
+ update(e) {
210
+ this.hsva = e, this.style([{
211
+ top: `${100 - e.v}%`,
212
+ left: `${e.s}%`,
213
+ color: I(e)
214
+ }, { "background-color": I({
215
+ h: e.h,
216
+ s: 100,
217
+ v: 100,
218
+ a: 1
219
+ }) }]), this.el.setAttribute("aria-valuetext", `Saturation ${j(e.s)}%, Brightness ${j(e.v)}%`);
220
+ }
221
+ getMove(e, t) {
222
+ return {
223
+ s: t ? A(this.hsva.s + e.x * 100, 0, 100) : e.x * 100,
224
+ v: t ? A(this.hsva.v - e.y * 100, 0, 100) : Math.round(100 - e.y * 100)
225
+ };
226
+ }
227
+ }, _e = ":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)}", ve = "[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}", ye = "[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}", q = Symbol("same"), J = Symbol("color"), Y = Symbol("hsva"), X = Symbol("update"), Z = Symbol("parts"), Q = Symbol("css"), $ = Symbol("sliders"), be = class extends HTMLElement {
228
+ static get observedAttributes() {
229
+ return ["color"];
230
+ }
231
+ get [Q]() {
232
+ return [
233
+ _e,
234
+ ve,
235
+ ye
236
+ ];
237
+ }
238
+ get [$]() {
239
+ return [ge, he];
240
+ }
241
+ get color() {
242
+ return this[J];
243
+ }
244
+ set color(e) {
245
+ if (!this[q](e)) {
246
+ let t = this.colorModel.toHsva(e);
247
+ this[X](t), this[J] = e;
248
+ }
249
+ }
250
+ constructor() {
251
+ super();
252
+ let e = B(`<style>${this[Q].join("")}</style>`), t = this.attachShadow({ mode: "open" });
253
+ t.appendChild(e.content.cloneNode(!0)), t.addEventListener("move", this), this[Z] = this[$].map((e) => new e(t));
254
+ }
255
+ connectedCallback() {
256
+ if (this.hasOwnProperty("color")) {
257
+ let e = this.color;
258
+ delete this.color, this.color = e;
259
+ } else this.color ||= this.colorModel.defaultColor;
260
+ }
261
+ attributeChangedCallback(e, t, n) {
262
+ let r = this.colorModel.fromAttr(n);
263
+ this[q](r) || (this.color = r);
264
+ }
265
+ handleEvent(e) {
266
+ let t = this[Y], n = {
267
+ ...t,
268
+ ...e.detail
269
+ };
270
+ this[X](n);
271
+ let r;
272
+ !R(n, t) && !this[q](r = this.colorModel.fromHsva(n)) && (this[J] = r, V(this, "color-changed", { value: r }));
273
+ }
274
+ [q](e) {
275
+ return this.color && this.colorModel.equal(e, this.color);
276
+ }
277
+ [X](e) {
278
+ this[Y] = e, this[Z].forEach((t) => t.update(e));
279
+ }
280
+ }, xe = {
281
+ defaultColor: "#000",
282
+ toHsva: M,
283
+ fromHsva: ({ h: e, s: t, v: n }) => P({
284
+ h: e,
285
+ s: t,
286
+ v: n,
287
+ a: 1
288
+ }),
289
+ equal: pe,
290
+ fromAttr: (e) => e
291
+ }, Se = class extends be {
292
+ get colorModel() {
293
+ return xe;
294
+ }
295
+ }, Ce = class extends Se {};
296
+ customElements.define("hex-color-picker", Ce);
297
+ //#endregion
298
+ //#region src/components/ColorPicker.vue?vue&type=script&setup=true&lang.ts
299
+ var we = [
300
+ "disabled",
301
+ "aria-label",
302
+ "title",
303
+ "aria-expanded"
304
+ ], Te = {
305
+ key: 0,
306
+ class: "tpl:relative tpl:flex-1"
307
+ }, Ee = [
308
+ "value",
309
+ "placeholder",
310
+ "disabled",
311
+ "aria-label"
312
+ ], De = ["aria-label", "title"], Oe = ["data-tpl-theme"], ke = ["color", "aria-label"], Ae = /* @__PURE__ */ a({
313
+ __name: "ColorPicker",
314
+ props: {
315
+ modelValue: {},
316
+ placeholder: { default: "" },
317
+ seedColor: { default: "#ffffff" },
318
+ swatchOnly: {
319
+ type: Boolean,
320
+ default: !1
321
+ },
322
+ disabled: {
323
+ type: Boolean,
324
+ default: !1
325
+ },
326
+ size: { default: "md" },
327
+ ariaLabel: { default: "" }
328
+ },
329
+ emits: ["update:modelValue"],
330
+ setup(a, { emit: m }) {
331
+ let h = a, g = m, { t: _ } = oe(), v = i(!1), y = i(), b = i(), x = i(!1);
332
+ re(y, () => {
333
+ v.value = !1;
334
+ }, { ignore: [b] });
335
+ let S = d(() => !h.modelValue), C = d(() => h.modelValue || h.seedColor), w = d(() => !h.swatchOnly && !h.disabled && !S.value);
336
+ function T(e) {
337
+ x.value = !0, g("update:modelValue", e.detail.value);
338
+ }
339
+ function E() {
340
+ x.value = !1;
341
+ }
342
+ function D() {
343
+ !x.value && S.value && g("update:modelValue", C.value);
344
+ }
345
+ function O(e) {
346
+ g("update:modelValue", e.target.value);
347
+ }
348
+ function k() {
349
+ g("update:modelValue", "");
350
+ }
351
+ let A = ce(), j = p(ae, null), M = p(ie, null), N = i({
352
+ top: 0,
353
+ left: 0
354
+ });
355
+ function P() {
356
+ if (!h.disabled) {
357
+ if (!v.value) {
358
+ let e = b.value?.getBoundingClientRect();
359
+ if (e) {
360
+ let t = e.bottom + 8 + 240 <= window.innerHeight;
361
+ N.value = {
362
+ top: t ? e.bottom + 8 : Math.max(8, e.top - 240 - 8),
363
+ left: e.left
364
+ };
365
+ }
366
+ }
367
+ v.value = !v.value;
368
+ }
369
+ }
370
+ return (i, d) => (n(), s("div", { class: t(["tpl:flex tpl:items-center tpl:gap-2 tpl:relative", a.disabled && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
371
+ o("button", {
372
+ ref_key: "swatchRef",
373
+ ref: b,
374
+ type: "button",
375
+ disabled: a.disabled,
376
+ "aria-label": a.ariaLabel || u(_).colorPicker.pickColor,
377
+ title: a.ariaLabel || void 0,
378
+ "aria-expanded": v.value,
379
+ class: t([
380
+ "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)]",
381
+ a.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer",
382
+ v.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !a.disabled && "hover:tpl:border-[var(--tpl-text-dim)]",
383
+ a.size === "sm" ? "tpl:size-8" : "tpl:size-10"
384
+ ]),
385
+ onClick: P
386
+ }, [o("span", {
387
+ class: t(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", { "tpl-color-swatch-empty": S.value }]),
388
+ style: e(S.value ? void 0 : { backgroundColor: a.modelValue })
389
+ }, null, 6)], 10, we),
390
+ a.swatchOnly ? f("", !0) : (n(), s("div", Te, [o("input", {
391
+ type: "text",
392
+ class: t([u(le), "tpl:w-full"]),
393
+ style: e(w.value ? { paddingRight: "2.25rem" } : void 0),
394
+ value: a.modelValue,
395
+ placeholder: a.placeholder || u(_).colorPicker.notSet,
396
+ disabled: a.disabled,
397
+ "aria-label": u(_).colorPicker.hexValue,
398
+ onInput: O
399
+ }, null, 46, Ee), w.value ? (n(), s("button", {
400
+ key: 0,
401
+ type: "button",
402
+ "aria-label": u(_).colorPicker.clear,
403
+ title: u(_).colorPicker.clear,
404
+ 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)]",
405
+ onClick: k
406
+ }, [c(u(se), {
407
+ size: 14,
408
+ "stroke-width": 1.5
409
+ })], 8, De)) : f("", !0)])),
410
+ (n(), ee(l, {
411
+ to: u(A),
412
+ disabled: !u(A)
413
+ }, [c(ne, {
414
+ "enter-active-class": "tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
415
+ "enter-from-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1",
416
+ "enter-to-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
417
+ "leave-active-class": "tpl:transition-all tpl:duration-[80ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
418
+ "leave-from-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
419
+ "leave-to-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1"
420
+ }, {
421
+ default: r(() => [v.value ? (n(), s("div", {
422
+ key: 0,
423
+ ref_key: "popoverRef",
424
+ ref: y,
425
+ "data-tpl-theme": u(M),
426
+ class: "tpl-color-popover tpl:fixed 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",
427
+ style: e({
428
+ top: `${N.value.top}px`,
429
+ left: `${N.value.left}px`,
430
+ ...u(j)
431
+ })
432
+ }, [o("hex-color-picker", {
433
+ color: C.value,
434
+ "aria-label": u(_).colorPicker.pickColor,
435
+ onColorChanged: T,
436
+ onPointerdown: E,
437
+ onPointerup: D,
438
+ onKeydown: d[0] ||= te((e) => v.value = !1, ["escape"])
439
+ }, null, 40, ke)], 12, Oe)) : f("", !0)]),
440
+ _: 1
441
+ })], 8, ["to", "disabled"]))
442
+ ], 2));
443
+ }
444
+ });
445
+ //#endregion
446
+ export { y as _, E as a, w as c, S as d, h as f, x as g, m as h, k as i, b as l, _ as m, D as n, C as o, g as p, O as r, T as s, Ae as t, v as u };
@@ -1,17 +1,17 @@
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-l0XAqiyv.js";
2
- import { a as v, t as y } from "./runtime-dom.esm-bundler-BzuoCyNp.js";
3
- import { L as b, l as ne, m as re, r as ie } from "./keys-Cv8-8GsD.js";
4
- import { t as ae } from "./useI18n-C-TDeJBt.js";
5
- import { t as x } from "./createLucideIcon-Dx-EjR9r.js";
6
- import { t as oe } from "./check-rl7ok6uJ.js";
7
- import { t as se } from "./chevron-down-BKe__NOD.js";
8
- import { t as S } from "./loader-circle-BLmicnPG.js";
9
- import { t as C } from "./message-circle-C9hHMQCI.js";
10
- import { t as w } from "./send-DjPdq69F.js";
11
- import { t as T } from "./trash-2-C-81rkLS.js";
12
- import { t as E } from "./x-CQSvXnGR.js";
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
+ 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";
5
+ import { t as x } from "./createLucideIcon-Bh9xOmlW.js";
6
+ import { t as oe } from "./check-D1zYtCPK.js";
7
+ import { t as se } from "./chevron-down-ByXpufZD.js";
8
+ import { t as S } from "./loader-circle-DFU0HPAa.js";
9
+ import { t as C } from "./message-circle-BEBsCHnk.js";
10
+ import { t as w } from "./send-BMyisUim.js";
11
+ import { t as T } from "./trash-2-B6M659Ey.js";
12
+ import { t as E } from "./x-CG_NV3nP.js";
13
13
  import { t as D } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
- import { n as ce } from "./useCloudI18n-AKCy98qD.js";
14
+ import { n as ce } from "./useCloudI18n-WbfVWq5k.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
- 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-l0XAqiyv.js";
3
- import { p } from "./dist-CTT6WYJ6.js";
4
- import { t as m } from "./useI18n-C-TDeJBt.js";
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
+ import { p } from "./dist-DYv_Pttj.js";
4
+ import { t as m } from "./useI18n-eR1yVW0v.js";
5
5
  //#region src/components/blocks/CountdownBlock.vue?vue&type=script&setup=true&lang.ts
6
6
  var h = {
7
7
  key: 0,