@templatical/editor 0.16.2 → 0.16.4

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 (130) hide show
  1. package/dist/{AiChatSidebar-EaPCeDXr.js → AiChatSidebar-CYAbVB2G.js} +7 -7
  2. package/dist/{AiFeatureMenu-DfTYyExg.js → AiFeatureMenu-BPCkrHAS.js} +4 -4
  3. package/dist/{BlockIssueBadge-CZYgn-qg.js → BlockIssueBadge-BLytBabN.js} +2 -2
  4. package/dist/{CloudEditor-BQyZ_nFg.js → CloudEditor-v8ARYaFW.js} +15 -15
  5. package/dist/{CollaboratorBar-DeP7K-zk.js → CollaboratorBar-BQzKZ2zo.js} +2 -2
  6. package/dist/ColorPicker-Cab6U2sH.js +474 -0
  7. package/dist/{CommentsSidebar-DDKiFsSq.js → CommentsSidebar-C_XLBbo3.js} +8 -8
  8. package/dist/{CountdownToolbar-nY9H0BKd.js → CountdownToolbar-q3umZ7TZ.js} +53 -67
  9. package/dist/{DesignReferenceSidebar-D6TfC176.js → DesignReferenceSidebar-Bh9uAZ4B.js} +5 -5
  10. package/dist/{IssuesPanel-CQQipLQP.js → IssuesPanel-DltSuU6H.js} +5 -5
  11. package/dist/{ModuleBrowserModal-CkeYw1e3.js → ModuleBrowserModal-CzzChPmN.js} +6 -6
  12. package/dist/{ModulePreviewCanvas-BIMFyYaa.js → ModulePreviewCanvas-C0Q2n3FL.js} +1 -1
  13. package/dist/{NumberWithSuffix-BoZyUoNz.js → NumberWithSuffix-Bhm2ByHs.js} +1 -1
  14. package/dist/{ParagraphEditor-DGsTFMxg.js → ParagraphEditor-BhsBi8p8.js} +26 -26
  15. package/dist/{RichTextEditorContent-BB_n8vgB.js → RichTextEditorContent-ef0fdj6e.js} +3 -3
  16. package/dist/{SaveModuleDialog-Cypt_qOB.js → SaveModuleDialog-BNN3dcxD.js} +24 -23
  17. package/dist/{SnapshotHistory-DQTH8TCS.js → SnapshotHistory-tWvgMCe6.js} +6 -6
  18. package/dist/{TemplateScoringPanel-C8VOC6gn.js → TemplateScoringPanel-ZhObHWeb.js} +10 -10
  19. package/dist/{TestEmailModal-DqxrL-U9.js → TestEmailModal-EdwEcsrD.js} +3 -3
  20. package/dist/{TitleEditor-DoGgnrcb.js → TitleEditor-DdvRepBq.js} +4 -4
  21. package/dist/ToggleSwitch-DUNuUPsZ.js +37 -0
  22. package/dist/{TplModal-Ca-29YDD.js → TplModal-Niu4Y96-.js} +1 -1
  23. package/dist/{blockTypeIcons-DVJXg5si.js → blockTypeIcons-DHcYPMB8.js} +2 -2
  24. package/dist/bundle-stats.json +7 -7
  25. package/dist/{ca-B3eR47lE.js → ca-DI1ViqMa.js} +2 -1
  26. package/dist/cdn/chunks/{AiFeatureMenu-roPglhox.js → AiFeatureMenu-AoUwsqor.js} +8 -8
  27. package/dist/cdn/chunks/{AiFeatureMenu-roPglhox.js.map → AiFeatureMenu-AoUwsqor.js.map} +1 -1
  28. package/dist/cdn/chunks/{BlockIssueBadge-DW_Tt7Wg.js → BlockIssueBadge-DZU3CfEN.js} +5 -5
  29. package/dist/cdn/chunks/{BlockIssueBadge-DW_Tt7Wg.js.map → BlockIssueBadge-DZU3CfEN.js.map} +1 -1
  30. package/dist/cdn/chunks/{CloudEditor-CX6y1k3C.js → CloudEditor-BrZLF_m1.js} +159 -159
  31. package/dist/cdn/chunks/{CloudEditor-CX6y1k3C.js.map → CloudEditor-BrZLF_m1.js.map} +1 -1
  32. package/dist/cdn/chunks/{CollaboratorBar-Dyrab63H.js → CollaboratorBar-BAC56ez6.js} +3 -3
  33. package/dist/cdn/chunks/{CollaboratorBar-Dyrab63H.js.map → CollaboratorBar-BAC56ez6.js.map} +1 -1
  34. package/dist/cdn/chunks/ColorPicker-DLEoT419.js +471 -0
  35. package/dist/cdn/chunks/ColorPicker-DLEoT419.js.map +1 -0
  36. package/dist/cdn/chunks/{CountdownBlock-Bul4tczj.js → CountdownBlock-BOF9aTXF.js} +4 -4
  37. package/dist/cdn/chunks/{CountdownBlock-Bul4tczj.js.map → CountdownBlock-BOF9aTXF.js.map} +1 -1
  38. package/dist/cdn/chunks/CountdownToolbar-C9bQ5k4E.js +198 -0
  39. package/dist/cdn/chunks/CountdownToolbar-C9bQ5k4E.js.map +1 -0
  40. package/dist/cdn/chunks/{IssuesPanel-BhHU-hq3.js → IssuesPanel-CHwYahKK.js} +7 -7
  41. package/dist/cdn/chunks/{IssuesPanel-BhHU-hq3.js.map → IssuesPanel-CHwYahKK.js.map} +1 -1
  42. package/dist/cdn/chunks/{ModuleBrowserModal-BGd5Ryyx.js → ModuleBrowserModal-iSXXpAUk.js} +6 -6
  43. package/dist/cdn/chunks/{ModuleBrowserModal-BGd5Ryyx.js.map → ModuleBrowserModal-iSXXpAUk.js.map} +1 -1
  44. package/dist/cdn/chunks/{ModulePreviewCanvas-Hx6SCCjB.js → ModulePreviewCanvas-DIy0MZj2.js} +10 -10
  45. package/dist/cdn/chunks/{ModulePreviewCanvas-Hx6SCCjB.js.map → ModulePreviewCanvas-DIy0MZj2.js.map} +1 -1
  46. package/dist/cdn/chunks/{NumberWithSuffix-BImuhc9K.js → NumberWithSuffix-vPdOG2lO.js} +2 -2
  47. package/dist/cdn/chunks/{NumberWithSuffix-BImuhc9K.js.map → NumberWithSuffix-vPdOG2lO.js.map} +1 -1
  48. package/dist/cdn/chunks/{ParagraphEditor-K2vENidm.js → ParagraphEditor-D7znI_X1.js} +146 -146
  49. package/dist/cdn/chunks/{ParagraphEditor-K2vENidm.js.map → ParagraphEditor-D7znI_X1.js.map} +1 -1
  50. package/dist/cdn/chunks/{RichTextEditorContent-B_w3u5lN.js → RichTextEditorContent-DVwGHbO6.js} +6 -6
  51. package/dist/cdn/chunks/{RichTextEditorContent-B_w3u5lN.js.map → RichTextEditorContent-DVwGHbO6.js.map} +1 -1
  52. package/dist/cdn/chunks/{SaveModuleDialog-Cw-182CB.js → SaveModuleDialog-D2_qPtE9.js} +32 -31
  53. package/dist/cdn/chunks/SaveModuleDialog-D2_qPtE9.js.map +1 -0
  54. package/dist/cdn/chunks/{TitleEditor-CUKlo_Zj.js → TitleEditor-CKjZ6Cgp.js} +8 -8
  55. package/dist/cdn/chunks/{TitleEditor-CUKlo_Zj.js.map → TitleEditor-CKjZ6Cgp.js.map} +1 -1
  56. package/dist/cdn/chunks/ToggleSwitch-OrmX_w18.js +39 -0
  57. package/dist/cdn/chunks/ToggleSwitch-OrmX_w18.js.map +1 -0
  58. package/dist/cdn/chunks/{blockTypeIcons-Cx1FAqL6.js → blockTypeIcons-BKecgdgr.js} +8 -8
  59. package/dist/cdn/chunks/{blockTypeIcons-Cx1FAqL6.js.map → blockTypeIcons-BKecgdgr.js.map} +1 -1
  60. package/dist/cdn/chunks/{ca-B3eR47lE.js → ca-DI1ViqMa.js} +3 -2
  61. package/dist/cdn/chunks/ca-DI1ViqMa.js.map +1 -0
  62. package/dist/{de-Cy8FB-Ii.js → cdn/chunks/de-q9lTCMre.js} +4 -1
  63. package/dist/cdn/chunks/de-q9lTCMre.js.map +1 -0
  64. package/dist/cdn/chunks/{en-Bu-zS_5o.js → en-CR4LItrX.js} +3 -2
  65. package/dist/cdn/chunks/en-CR4LItrX.js.map +1 -0
  66. package/dist/cdn/chunks/{es-CD3ZD6hK.js → es-CEt-lrGd.js} +3 -2
  67. package/dist/cdn/chunks/es-CEt-lrGd.js.map +1 -0
  68. package/dist/cdn/chunks/{extensions-DSxG2wYf.js → extensions-OZTN_skA.js} +19 -19
  69. package/dist/cdn/chunks/{extensions-DSxG2wYf.js.map → extensions-OZTN_skA.js.map} +1 -1
  70. package/dist/cdn/chunks/{features-C-cjT_8L.js → features-Bo7H8WNI.js} +370 -368
  71. package/dist/cdn/chunks/features-Bo7H8WNI.js.map +1 -0
  72. package/dist/cdn/chunks/{icons-ay0_fN-T.js → icons-BrNSrnyT.js} +26 -26
  73. package/dist/cdn/chunks/{icons-ay0_fN-T.js.map → icons-BrNSrnyT.js.map} +1 -1
  74. package/dist/cdn/chunks/{media-library-CkmqPdO4.js → media-library-Cec5DMR3.js} +101 -101
  75. package/dist/cdn/chunks/{media-library-CkmqPdO4.js.map → media-library-Cec5DMR3.js.map} +1 -1
  76. package/dist/cdn/chunks/{pt-BR-CgICL-CQ.js → pt-BR-DvBHY0AA.js} +3 -2
  77. package/dist/cdn/chunks/pt-BR-DvBHY0AA.js.map +1 -0
  78. package/dist/cdn/chunks/{quality-CDNrMw2A.js → quality-Dd2iYgRf.js} +435 -435
  79. package/dist/cdn/chunks/{quality-CDNrMw2A.js.map → quality-Dd2iYgRf.js.map} +1 -1
  80. package/dist/cdn/chunks/{renderer-JQ91A09w.js → renderer-Br-qXdnQ.js} +15 -12
  81. package/dist/cdn/chunks/{renderer-JQ91A09w.js.map → renderer-Br-qXdnQ.js.map} +1 -1
  82. package/dist/cdn/chunks/{src-Cehu7Hqx.js → src-BH8PABpF.js} +4 -4
  83. package/dist/cdn/chunks/{src-Cehu7Hqx.js.map → src-BH8PABpF.js.map} +1 -1
  84. package/dist/cdn/chunks/{styles-DBjy3lz9.js → styles-nqo5BynI.js} +975 -973
  85. package/dist/cdn/chunks/styles-nqo5BynI.js.map +1 -0
  86. package/dist/cdn/editor.css +1 -1
  87. package/dist/cdn/editor.js +35 -35
  88. package/dist/{check-D1zYtCPK.js → check-Cg6Mc2pP.js} +1 -1
  89. package/dist/{chevron-down-ByXpufZD.js → chevron-down-dClfxKrJ.js} +1 -1
  90. package/dist/{circle-alert-CjcAORUw.js → circle-alert-Bhzm-fNA.js} +1 -1
  91. package/dist/{clock-5lWLadUn.js → clock-m7TwQw4b.js} +1 -1
  92. package/dist/{dist-CFOQvhSC.js → color-DhoxCSMv.js} +9 -1
  93. package/dist/{createLucideIcon-Bh9xOmlW.js → createLucideIcon-FSF4peHQ.js} +2 -2
  94. package/dist/{cdn/chunks/de-Cy8FB-Ii.js → de-q9lTCMre.js} +2 -3
  95. package/dist/{en-Bu-zS_5o.js → en-CR4LItrX.js} +2 -1
  96. package/dist/{es-CD3ZD6hK.js → es-CEt-lrGd.js} +2 -1
  97. package/dist/{image-up-Bj_nes3f.js → image-up-CDEgJqwA.js} +1 -1
  98. package/dist/{info-BhSQCxBV.js → info-BNP8yGsK.js} +1 -1
  99. package/dist/{list-checks-CgxyUg7i.js → list-checks-jepi4iYr.js} +1 -1
  100. package/dist/{loader-circle-DFU0HPAa.js → loader-circle-BT38qSm3.js} +1 -1
  101. package/dist/{message-circle-BEBsCHnk.js → message-circle-BAHcL9S-.js} +1 -1
  102. package/dist/{pt-BR-CgICL-CQ.js → pt-BR-DvBHY0AA.js} +2 -1
  103. package/dist/{refresh-cw--lvWGy0_.js → refresh-cw-as5Bmg4X.js} +1 -1
  104. package/dist/{scan-line-QgyDIgn_.js → scan-line-IAMjPtRw.js} +1 -1
  105. package/dist/{send-BMyisUim.js → send-DvMay6bt.js} +1 -1
  106. package/dist/{shield-check-C49M20le.js → shield-check-YYDhGroE.js} +1 -1
  107. package/dist/{sparkles-DV7Dman6.js → sparkles-CCwQMMMZ.js} +1 -1
  108. package/dist/style.css +1 -1
  109. package/dist/{styles-mvx3k1hf.js → styles-DN4J7w-C.js} +717 -715
  110. package/dist/templatical-editor.js +9 -9
  111. package/dist/{text-align-start-BMU70uAm.js → text-align-start-BwsA6QzC.js} +11 -11
  112. package/dist/{trash-2-B6M659Ey.js → trash-2-CRBDolnR.js} +1 -1
  113. package/dist/{triangle-alert-D1lzx6ds.js → triangle-alert-B2g0ALvq.js} +1 -1
  114. package/dist/{upload-3A1oZtOR.js → upload-BKg6hDRW.js} +1 -1
  115. package/dist/{useEditorCore-DtZkR7Vk.js → useEditorCore-DBq2689h.js} +249 -255
  116. package/dist/{x-CG_NV3nP.js → x-Ctg_250T.js} +1 -1
  117. package/package.json +8 -8
  118. package/dist/ColorPicker-CXAbjTaG.js +0 -446
  119. package/dist/cdn/chunks/ColorPicker-BggAWrc9.js +0 -443
  120. package/dist/cdn/chunks/ColorPicker-BggAWrc9.js.map +0 -1
  121. package/dist/cdn/chunks/CountdownToolbar-DYvATR0J.js +0 -212
  122. package/dist/cdn/chunks/CountdownToolbar-DYvATR0J.js.map +0 -1
  123. package/dist/cdn/chunks/SaveModuleDialog-Cw-182CB.js.map +0 -1
  124. package/dist/cdn/chunks/ca-B3eR47lE.js.map +0 -1
  125. package/dist/cdn/chunks/de-Cy8FB-Ii.js.map +0 -1
  126. package/dist/cdn/chunks/en-Bu-zS_5o.js.map +0 -1
  127. package/dist/cdn/chunks/es-CD3ZD6hK.js.map +0 -1
  128. package/dist/cdn/chunks/features-C-cjT_8L.js.map +0 -1
  129. package/dist/cdn/chunks/pt-BR-CgICL-CQ.js.map +0 -1
  130. package/dist/cdn/chunks/styles-DBjy3lz9.js.map +0 -1
@@ -2,13 +2,13 @@ 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
2
2
  import { a as h, t as g } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
3
  import { m as ie, p as ae } from "./dist-DYv_Pttj.js";
4
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";
5
+ import { t as v } from "./createLucideIcon-FSF4peHQ.js";
6
+ import { t as ue } from "./circle-alert-Bhzm-fNA.js";
7
+ import { t as de } from "./loader-circle-BT38qSm3.js";
8
+ import { t as fe } from "./send-DvMay6bt.js";
9
+ import { t as y } from "./sparkles-CCwQMMMZ.js";
10
+ import { t as pe } from "./trash-2-CRBDolnR.js";
11
+ import { t as me } from "./x-Ctg_250T.js";
12
12
  import { t as b } from "./LoadingTrack-KIcREPlS.js";
13
13
  import { t as x } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
14
  import { t as S } from "./useAliveFlag-C43EhZFY.js";
@@ -1,9 +1,9 @@
1
1
  import { A as e, Dt as t, N as n, O as r, Ot as i, _ as a, c as o, d as s, l as c, r as l, s as u } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
- import "./useEditorCore-DtZkR7Vk.js";
2
+ import "./useEditorCore-DBq2689h.js";
3
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";
4
+ import { t as p } from "./image-up-CDEgJqwA.js";
5
+ import { t as m } from "./shield-check-YYDhGroE.js";
6
+ import { t as h } from "./sparkles-CCwQMMMZ.js";
7
7
  import { t as g } from "./_plugin-vue_export-helper-B3ysoDQm.js";
8
8
  import { n as _ } from "./useCloudI18n-WbfVWq5k.js";
9
9
  //#region src/cloud/components/AiFeatureMenu.vue?vue&type=script&setup=true&lang.ts
@@ -1,8 +1,8 @@
1
1
  import { Et as e, O as t, _ as n, d as r, l as i, nt as a, s as o, u as s, x as c } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
2
  import { N as l } from "./keys-BbDgCU6K.js";
3
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";
4
+ import { t as d } from "./circle-alert-Bhzm-fNA.js";
5
+ import { t as f } from "./triangle-alert-B2g0ALvq.js";
6
6
  //#region src/components/canvas/BlockIssueBadge.vue?vue&type=script&setup=true&lang.ts
7
7
  var p = ["title", "aria-label"], m = /* @__PURE__ */ n({
8
8
  __name: "BlockIssueBadge",
@@ -2,24 +2,24 @@ import { A as e, D as t, Dt as n, E as r, Et as i, I as a, K as o, O as s, Ot as
2
2
  import { c as E, o as D, t as O } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
3
  import { t as k } from "./timeouts-Bmi_yePw.js";
4
4
  import { O as A, a as j } from "./dist-DoRIUsfz.js";
5
- import { L as M, T as N, b as ee, t as P } from "./useEditorCore-DtZkR7Vk.js";
5
+ import { L as M, T as N, b as ee, t as P } from "./useEditorCore-DBq2689h.js";
6
6
  import { m as F } from "./dist-DYv_Pttj.js";
7
- import { t as I } from "./dist-CFOQvhSC.js";
7
+ import { n as I } from "./color-DhoxCSMv.js";
8
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
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";
10
+ import { t as H } from "./createLucideIcon-FSF4peHQ.js";
11
+ import { t as U } from "./check-Cg6Mc2pP.js";
12
+ import { t as W } from "./circle-alert-Bhzm-fNA.js";
13
+ import { a as G, c as ae, d as oe, f as K, i as q, l as se, n as ce, o as le, p as ue, r as de, s as fe, t as pe, u as me } from "./styles-DN4J7w-C.js";
14
+ import { t as he } from "./clock-m7TwQw4b.js";
15
+ import { t as J } from "./loader-circle-BT38qSm3.js";
16
+ import { t as ge } from "./message-circle-BAHcL9S-.js";
17
+ import { t as _e } from "./send-DvMay6bt.js";
18
+ import { t as Y } from "./sparkles-CCwQMMMZ.js";
19
+ import { t as X } from "./triangle-alert-B2g0ALvq.js";
20
20
  import { t as Z } from "./_plugin-vue_export-helper-B3ysoDQm.js";
21
21
  import { n as Q } from "./useCloudI18n-WbfVWq5k.js";
22
- import { d as $ } from "./ColorPicker-CXAbjTaG.js";
22
+ import { d as $ } from "./ColorPicker-Cab6U2sH.js";
23
23
  import { _ as ve, a as ye, c as be, d as xe, f as Se, g as Ce, h as we, l as Te, m as Ee, n as De, o as Oe, p as ke, r as Ae, s as je, t as Me, v as Ne, y as Pe } from "./cloud-BogxOeZu.js";
24
24
  var Fe = H("save", [
25
25
  ["path", {
@@ -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-DeP7K-zk.js")), r = h(() => import("./SnapshotHistory-DQTH8TCS.js")), a = h(() => import("./AiFeatureMenu-DfTYyExg.js")), { t: o, format: u } = Q();
631
+ let t = h(() => import("./CollaboratorBar-BQzKZ2zo.js")), r = h(() => import("./SnapshotHistory-tWvgMCe6.js")), a = h(() => import("./AiFeatureMenu-BPCkrHAS.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-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 () => {
793
+ let r = h(() => import("./AiChatSidebar-CYAbVB2G.js")), i = h(() => import("./CommentsSidebar-C_XLBbo3.js")), a = h(() => import("./DesignReferenceSidebar-Bh9uAZ4B.js")), o = h(() => import("./TemplateScoringPanel-ZhObHWeb.js")), c = h(() => import("./TestEmailModal-EdwEcsrD.js")), l = h(() => import("./SaveModuleDialog-BNN3dcxD.js")), d = h(() => import("./ModuleBrowserModal-CzzChPmN.js")), f = h(async () => {
794
794
  try {
795
795
  return (await import("@templatical/media-library")).MediaLibraryModal;
796
796
  } catch {
@@ -1,6 +1,6 @@
1
1
  import { A as e, Dt as t, O as n, Ot as r, _ as i, c as a, d as o, l as s, nt as c, r as l, s as u, u as d } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
- import "./useEditorCore-DtZkR7Vk.js";
3
- import { t as f } from "./createLucideIcon-Bh9xOmlW.js";
2
+ import "./useEditorCore-DBq2689h.js";
3
+ import { t as f } from "./createLucideIcon-FSF4peHQ.js";
4
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", [
@@ -0,0 +1,474 @@
1
+ import { Dt as e, Et as t, O as n, R as r, Y as i, _ as a, c as o, d as s, h as c, i as ee, l as te, nt as l, s as u, u as d, x as f } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
+ import { c as ne, s as p, t as re } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
+ import { n as ie, t as m } from "./color-DhoxCSMv.js";
4
+ import { I as ae, P as oe } from "./keys-BbDgCU6K.js";
5
+ import { t as se } from "./useI18n-eR1yVW0v.js";
6
+ import { t as h } from "./x-Ctg_250T.js";
7
+ import { t as ce } from "./usePopoverRoot-C1j0D7cc.js";
8
+ //#region src/constants/styleConstants.ts
9
+ var g = "tpl:block tpl:mb-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]", _ = "tpl:w-full tpl:h-10 tpl:px-3.5 tpl:py-1.5 tpl:text-sm tpl:border tpl:rounded-[var(--tpl-radius-sm)] tpl:shadow-xs tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:outline-none focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)] placeholder:tpl:text-[var(--tpl-text-dim)]", v = "tpl:w-full tpl:h-10 tpl:px-3.5 tpl:py-1.5 tpl:text-sm tpl:border tpl:rounded-l-[var(--tpl-radius-sm)] tpl:rounded-r-none tpl:border-r-0 tpl:shadow-xs tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:outline-none focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)] placeholder:tpl:text-[var(--tpl-text-dim)]", y = "tpl:flex tpl:items-center tpl:px-2.5 tpl:text-xs tpl:border tpl:border-l-0 tpl:text-[var(--tpl-text-dim)] tpl:bg-[var(--tpl-bg-hover)] tpl:border-[var(--tpl-border)] tpl:rounded-r-[var(--tpl-radius-sm)]", b = "tpl:flex-1 tpl:h-10 tpl:px-3.5 tpl:py-1.5 tpl:text-xs tpl:font-mono tpl:border tpl:rounded-[var(--tpl-radius-sm)] tpl:shadow-xs tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:outline-none focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)]", x = "tpl:rounded-[var(--tpl-radius)] tpl:bg-[var(--tpl-bg-elevated)] tpl:p-4 tpl:border tpl:border-[var(--tpl-border)] tpl:transition-colors tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-bg-hover)]", S = "tpl:flex tpl:size-8 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]", C = "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-primary)] tpl:hover:text-[var(--tpl-primary)]", w = "tpl:w-full tpl:resize-y tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2.5 tpl:py-2 tpl:font-mono tpl:text-xs tpl:text-[var(--tpl-text)] tpl:outline-none tpl:transition-all tpl:duration-150 tpl:placeholder:text-[var(--tpl-text-dim)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]", T = "tpl-btn tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3.5 tpl:py-2 tpl:text-sm tpl:font-medium tpl:whitespace-nowrap tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-primary)] hover:tpl:text-[var(--tpl-bg)] tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50", E = [
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
+ ], D = [
23
+ "1",
24
+ "1.2",
25
+ "1.4",
26
+ "1.5",
27
+ "1.6",
28
+ "1.8",
29
+ "2",
30
+ "2.5"
31
+ ], O = [
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
+ ], k = "#000000", A = "#ffffff", j = "#ffff00", M = "#f2f2f2", N = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, P = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n;
61
+ 360 / (Math.PI * 2);
62
+ var F = (e) => de(I(e)), I = (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 ? P(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 ? P(parseInt(e.substring(6, 8), 16) / 255, 2) : 1
72
+ }), L = (e) => ue(le(e)), R = ({ h: e, s: t, v: n, a: r }) => {
73
+ let i = (200 - t) * n / 100;
74
+ return {
75
+ h: P(e),
76
+ s: P(i > 0 && i < 200 ? t * n / 100 / (i <= 100 ? i : 200 - i) * 100 : 0),
77
+ l: P(i / 2),
78
+ a: P(r, 2)
79
+ };
80
+ }, z = (e) => {
81
+ let { h: t, s: n, l: r } = R(e);
82
+ return `hsl(${t}, ${n}%, ${r}%)`;
83
+ }, le = ({ 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: P([
88
+ n,
89
+ o,
90
+ a,
91
+ a,
92
+ s,
93
+ n
94
+ ][c] * 255),
95
+ g: P([
96
+ s,
97
+ n,
98
+ n,
99
+ o,
100
+ a,
101
+ a
102
+ ][c] * 255),
103
+ b: P([
104
+ a,
105
+ a,
106
+ s,
107
+ n,
108
+ n,
109
+ o
110
+ ][c] * 255),
111
+ a: P(r, 2)
112
+ };
113
+ }, B = (e) => {
114
+ let t = e.toString(16);
115
+ return t.length < 2 ? "0" + t : t;
116
+ }, ue = ({ r: e, g: t, b: n, a: r }) => {
117
+ let i = r < 1 ? B(P(r * 255)) : "";
118
+ return "#" + B(e) + B(t) + B(n) + i;
119
+ }, de = ({ 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: P(60 * (o < 0 ? o + 6 : o)),
123
+ s: P(i ? a / i * 100 : 0),
124
+ v: P(i / 255 * 100),
125
+ a: r
126
+ };
127
+ }, V = (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
+ }, fe = (e, t) => e.toLowerCase() === t.toLowerCase() || V(I(e), I(t)), H = {}, U = (e) => {
132
+ let t = H[e];
133
+ return t || (t = document.createElement("template"), t.innerHTML = e, H[e] = t), t;
134
+ }, W = (e, t, n) => {
135
+ e.dispatchEvent(new CustomEvent(t, {
136
+ bubbles: !0,
137
+ detail: n
138
+ }));
139
+ }, G = !1, K = (e) => "touches" in e, pe = (e) => G && !K(e) ? !1 : (G ||= K(e), !0), q = (e, t) => {
140
+ let n = K(t) ? t.touches[0] : t, r = e.el.getBoundingClientRect();
141
+ W(e.el, "move", e.getMove({
142
+ x: N((n.pageX - (r.left + window.pageXOffset)) / r.width),
143
+ y: N((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(), W(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
+ }, J = class {
152
+ constructor(e, t, n, r) {
153
+ let i = U(`<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(G ? "touchmove" : "mousemove", this), t(G ? "touchend" : "mouseup", this);
161
+ }
162
+ handleEvent(e) {
163
+ switch (e.type) {
164
+ case "mousedown":
165
+ case "touchstart":
166
+ if (e.preventDefault(), !pe(e) || !G && e.button != 0) return;
167
+ this.el.focus(), q(this, e), this.dragging = !0;
168
+ break;
169
+ case "mousemove":
170
+ case "touchmove":
171
+ e.preventDefault(), q(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 J {
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: z({
195
+ h: e,
196
+ s: 100,
197
+ v: 100,
198
+ a: 1
199
+ })
200
+ }]), this.el.setAttribute("aria-valuenow", `${P(e)}`);
201
+ }
202
+ getMove(e, t) {
203
+ return { h: t ? N(this.h + e.x * 360, 0, 360) : 360 * e.x };
204
+ }
205
+ }, ge = class extends J {
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: z(e)
214
+ }, { "background-color": z({
215
+ h: e.h,
216
+ s: 100,
217
+ v: 100,
218
+ a: 1
219
+ }) }]), this.el.setAttribute("aria-valuetext", `Saturation ${P(e.s)}%, Brightness ${P(e.v)}%`);
220
+ }
221
+ getMove(e, t) {
222
+ return {
223
+ s: t ? N(this.hsva.s + e.x * 100, 0, 100) : e.x * 100,
224
+ v: t ? N(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}", Y = Symbol("same"), X = Symbol("color"), Z = Symbol("hsva"), Q = Symbol("update"), $ = Symbol("parts"), be = Symbol("css"), xe = Symbol("sliders"), Se = class extends HTMLElement {
228
+ static get observedAttributes() {
229
+ return ["color"];
230
+ }
231
+ get [be]() {
232
+ return [
233
+ _e,
234
+ ve,
235
+ ye
236
+ ];
237
+ }
238
+ get [xe]() {
239
+ return [ge, he];
240
+ }
241
+ get color() {
242
+ return this[X];
243
+ }
244
+ set color(e) {
245
+ if (!this[Y](e)) {
246
+ let t = this.colorModel.toHsva(e);
247
+ this[Q](t), this[X] = e;
248
+ }
249
+ }
250
+ constructor() {
251
+ super();
252
+ let e = U(`<style>${this[be].join("")}</style>`), t = this.attachShadow({ mode: "open" });
253
+ t.appendChild(e.content.cloneNode(!0)), t.addEventListener("move", this), this[$] = this[xe].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[Y](r) || (this.color = r);
264
+ }
265
+ handleEvent(e) {
266
+ let t = this[Z], n = {
267
+ ...t,
268
+ ...e.detail
269
+ };
270
+ this[Q](n);
271
+ let r;
272
+ !V(n, t) && !this[Y](r = this.colorModel.fromHsva(n)) && (this[X] = r, W(this, "color-changed", { value: r }));
273
+ }
274
+ [Y](e) {
275
+ return this.color && this.colorModel.equal(e, this.color);
276
+ }
277
+ [Q](e) {
278
+ this[Z] = e, this[$].forEach((t) => t.update(e));
279
+ }
280
+ }, Ce = {
281
+ defaultColor: "#000",
282
+ toHsva: F,
283
+ fromHsva: ({ h: e, s: t, v: n }) => L({
284
+ h: e,
285
+ s: t,
286
+ v: n,
287
+ a: 1
288
+ }),
289
+ equal: fe,
290
+ fromAttr: (e) => e
291
+ }, we = class extends Se {
292
+ get colorModel() {
293
+ return Ce;
294
+ }
295
+ }, Te = class extends we {};
296
+ customElements.define("hex-color-picker", Te);
297
+ //#endregion
298
+ //#region src/components/ColorPicker.vue?vue&type=script&setup=true&lang.ts
299
+ var Ee = [
300
+ "disabled",
301
+ "aria-label",
302
+ "title",
303
+ "aria-expanded"
304
+ ], De = {
305
+ key: 0,
306
+ class: "tpl:relative tpl:flex-1"
307
+ }, Oe = [
308
+ "value",
309
+ "placeholder",
310
+ "disabled",
311
+ "aria-label"
312
+ ], ke = ["aria-label", "title"], Ae = ["data-tpl-theme"], je = ["color", "aria-label"], Me = {
313
+ key: 0,
314
+ class: "tpl:relative tpl:mt-2"
315
+ }, Ne = [
316
+ "value",
317
+ "placeholder",
318
+ "disabled",
319
+ "aria-label"
320
+ ], Pe = ["aria-label", "title"], Fe = /* @__PURE__ */ a({
321
+ __name: "ColorPicker",
322
+ props: {
323
+ modelValue: {},
324
+ placeholder: { default: "" },
325
+ seedColor: { default: "#ffffff" },
326
+ swatchOnly: {
327
+ type: Boolean,
328
+ default: !1
329
+ },
330
+ disabled: {
331
+ type: Boolean,
332
+ default: !1
333
+ },
334
+ size: { default: "md" },
335
+ ariaLabel: { default: "" }
336
+ },
337
+ emits: ["update:modelValue"],
338
+ setup(a, { emit: g }) {
339
+ let _ = a, v = g, { t: y } = se(), x = i(!1), S = i(), C = i(), w = i(!1);
340
+ ie(S, () => {
341
+ x.value = !1;
342
+ }, { ignore: [C] });
343
+ let T = u(() => !_.modelValue), E = u(() => m(_.modelValue)), D = u(() => m(_.modelValue || _.seedColor)), O = u(() => !_.disabled && !T.value);
344
+ function k(e) {
345
+ w.value = !0, v("update:modelValue", e.detail.value);
346
+ }
347
+ function A() {
348
+ w.value = !1;
349
+ }
350
+ function j() {
351
+ !w.value && T.value && v("update:modelValue", D.value);
352
+ }
353
+ function M(e) {
354
+ v("update:modelValue", e.target.value);
355
+ }
356
+ function N() {
357
+ v("update:modelValue", "");
358
+ }
359
+ let P = ce(), F = f(oe, null), I = f(ae, null), L = i({
360
+ top: 0,
361
+ left: 0
362
+ });
363
+ function R() {
364
+ if (!_.disabled) {
365
+ if (!x.value) {
366
+ let e = C.value?.getBoundingClientRect();
367
+ if (e) {
368
+ let t = e.bottom + 8 + 240 <= window.innerHeight;
369
+ L.value = {
370
+ top: t ? e.bottom + 8 : Math.max(8, e.top - 240 - 8),
371
+ left: e.left
372
+ };
373
+ }
374
+ }
375
+ x.value = !x.value;
376
+ }
377
+ }
378
+ return (i, u) => (n(), s("div", { class: t(["tpl:flex tpl:items-center tpl:gap-2 tpl:relative", a.disabled && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
379
+ o("button", {
380
+ ref_key: "swatchRef",
381
+ ref: C,
382
+ type: "button",
383
+ disabled: a.disabled,
384
+ "aria-label": a.ariaLabel || l(y).colorPicker.pickColor,
385
+ title: a.ariaLabel || void 0,
386
+ "aria-expanded": x.value,
387
+ class: t([
388
+ "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)]",
389
+ a.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer",
390
+ x.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !a.disabled && "hover:tpl:border-[var(--tpl-text-dim)]",
391
+ a.size === "sm" ? "tpl:size-8" : "tpl:size-10"
392
+ ]),
393
+ onClick: R
394
+ }, [o("span", {
395
+ class: t(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", { "tpl-color-swatch-empty": T.value }]),
396
+ style: e(T.value ? void 0 : { backgroundColor: E.value })
397
+ }, null, 6)], 10, Ee),
398
+ a.swatchOnly ? d("", !0) : (n(), s("div", De, [o("input", {
399
+ type: "text",
400
+ class: t([l(b), "tpl:w-full"]),
401
+ style: e(O.value ? { paddingRight: "2.25rem" } : void 0),
402
+ value: E.value,
403
+ placeholder: a.placeholder || l(y).colorPicker.notSet,
404
+ disabled: a.disabled,
405
+ "aria-label": l(y).colorPicker.hexValue,
406
+ onInput: M
407
+ }, null, 46, Oe), O.value ? (n(), s("button", {
408
+ key: 0,
409
+ type: "button",
410
+ "aria-label": l(y).colorPicker.clear,
411
+ title: l(y).colorPicker.clear,
412
+ 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)]",
413
+ onClick: N
414
+ }, [c(l(h), {
415
+ size: 14,
416
+ "stroke-width": 1.5
417
+ })], 8, ke)) : d("", !0)])),
418
+ (n(), te(ee, {
419
+ to: l(P),
420
+ disabled: !l(P)
421
+ }, [c(re, {
422
+ "enter-active-class": "tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
423
+ "enter-from-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1",
424
+ "enter-to-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
425
+ "leave-active-class": "tpl:transition-all tpl:duration-[80ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
426
+ "leave-from-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
427
+ "leave-to-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1"
428
+ }, {
429
+ default: r(() => [x.value ? (n(), s("div", {
430
+ key: 0,
431
+ ref_key: "popoverRef",
432
+ ref: S,
433
+ "data-tpl-theme": l(I),
434
+ 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",
435
+ style: e({
436
+ top: `${L.value.top}px`,
437
+ left: `${L.value.left}px`,
438
+ ...l(F)
439
+ })
440
+ }, [o("hex-color-picker", {
441
+ color: D.value,
442
+ "aria-label": l(y).colorPicker.pickColor,
443
+ onColorChanged: k,
444
+ onPointerdown: A,
445
+ onPointerup: j,
446
+ onKeydown: u[0] ||= p((e) => x.value = !1, ["escape"])
447
+ }, null, 40, je), a.swatchOnly ? (n(), s("div", Me, [o("input", {
448
+ type: "text",
449
+ class: t([l(b), "tpl:w-full"]),
450
+ style: e(O.value ? { paddingRight: "2.25rem" } : void 0),
451
+ value: E.value,
452
+ placeholder: a.placeholder || l(y).colorPicker.notSet,
453
+ disabled: a.disabled,
454
+ "aria-label": l(y).colorPicker.hexValue,
455
+ onChange: M,
456
+ onKeydown: u[1] ||= p(ne((e) => e.target.blur(), ["prevent"]), ["enter"])
457
+ }, null, 46, Ne), O.value ? (n(), s("button", {
458
+ key: 0,
459
+ type: "button",
460
+ "aria-label": l(y).colorPicker.clear,
461
+ title: l(y).colorPicker.clear,
462
+ 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)]",
463
+ onClick: N
464
+ }, [c(l(h), {
465
+ size: 14,
466
+ "stroke-width": 1.5
467
+ })], 8, Pe)) : d("", !0)])) : d("", !0)], 12, Ae)) : d("", !0)]),
468
+ _: 1
469
+ })], 8, ["to", "disabled"]))
470
+ ], 2));
471
+ }
472
+ });
473
+ //#endregion
474
+ export { S as _, k as a, D as c, T as d, _ as f, w as g, g as h, M as i, C as l, y as m, A as n, E as o, v as p, j as r, O as s, Fe as t, x as u };
@@ -2,14 +2,14 @@ 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
2
2
  import { a as v, t as y } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
3
  import { L as b, l as ne, m as re, r as ie } from "./keys-BbDgCU6K.js";
4
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";
5
+ import { t as x } from "./createLucideIcon-FSF4peHQ.js";
6
+ import { t as oe } from "./check-Cg6Mc2pP.js";
7
+ import { t as se } from "./chevron-down-dClfxKrJ.js";
8
+ import { t as S } from "./loader-circle-BT38qSm3.js";
9
+ import { t as C } from "./message-circle-BAHcL9S-.js";
10
+ import { t as w } from "./send-DvMay6bt.js";
11
+ import { t as T } from "./trash-2-CRBDolnR.js";
12
+ import { t as E } from "./x-Ctg_250T.js";
13
13
  import { t as D } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
14
  import { n as ce } from "./useCloudI18n-WbfVWq5k.js";
15
15
  import { t as le } from "./formatRelativeTime-CtUU-QZ8.js";