@templatical/editor 0.19.0 → 0.21.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 (189) hide show
  1. package/README.md +1 -0
  2. package/dist/{AiChatSidebar-DAQTFuvi.js → AiChatSidebar-K_AehWc-.js} +9 -9
  3. package/dist/{AiFeatureMenu-aFSO20PR.js → AiFeatureMenu-CPdNpHpZ.js} +6 -6
  4. package/dist/{BlockIssueBadge-BQmq1bxn.js → BlockIssueBadge-Dmj9rVra.js} +4 -4
  5. package/dist/{CloudEditor-D0K-m1GA.js → CloudEditor-3a7mqMhe.js} +263 -315
  6. package/dist/{CollaboratorBar-CJO3l6Dt.js → CollaboratorBar-Ds0YZWzV.js} +3 -3
  7. package/dist/{ColorPicker-BsgpTJqK.js → ColorPicker-s9GHXjZs.js} +4 -4
  8. package/dist/CommentsSidebar-DvNEdugN.js +435 -0
  9. package/dist/{CountdownBlock-Bn5w7C-p.js → CountdownBlock-BUHYIAe9.js} +1 -1
  10. package/dist/{CountdownToolbar-PJI3ffi1.js → CountdownToolbar-DPRcv3Fu.js} +3 -4
  11. package/dist/{DesignReferenceSidebar-QfAV8XT9.js → DesignReferenceSidebar-DNmK3dxp.js} +8 -8
  12. package/dist/{IssuesPanel-CTjRgz8w.js → IssuesPanel-CEnEGFtd.js} +7 -7
  13. package/dist/{MergeTagSuggestion-DCuaSOPQ.js → MergeTagSuggestion-DMe4rqn0.js} +2 -2
  14. package/dist/NumberWithSuffix-CCPN_oCh.js +121 -0
  15. package/dist/{ParagraphEditor-Cf75UfSo.js → ParagraphEditor-CkwBirNl.js} +47 -47
  16. package/dist/{RichTextEditorContent-MdaLz6Q3.js → RichTextEditorContent-FbnWsh46.js} +6 -6
  17. package/dist/SaveBlockDialog-Cc5BSUBx.js +264 -0
  18. package/dist/SavedBlockPreviewCanvas-ubttfmKr.js +109 -0
  19. package/dist/SavedBlocksBrowserModal-LkY_U3lY.js +323 -0
  20. package/dist/SavedBlocksPanels-CET0zvH6.js +36 -0
  21. package/dist/SavedBlocksPickBar-poGS4PoI.js +52 -0
  22. package/dist/{SnapshotHistory-C_Y1LzAY.js → SnapshotHistory-BvF5IXn1.js} +8 -8
  23. package/dist/{TemplateScoringPanel-DikuKc6i.js → TemplateScoringPanel-ifGGGWs5.js} +14 -14
  24. package/dist/{TestEmailModal-BW8aTtzf.js → TestEmailModal-BRaM_eko.js} +4 -4
  25. package/dist/{TitleEditor-CCUkbRN0.js → TitleEditor-Bhgzh-iQ.js} +11 -11
  26. package/dist/{TplModal-DoOwUKlT.js → TplModal-BA-Zsg0O.js} +3 -3
  27. package/dist/{blockTypeIcons-BlPKjD7M.js → blockTypeIcons-B1-Yzp-a.js} +6 -6
  28. package/dist/bundle-stats.json +8 -8
  29. package/dist/{ca-DbWoy4rG.js → ca-BBgad6y5.js} +50 -3
  30. package/dist/cdn/chunks/{AiFeatureMenu-RwJiaPXZ.js → AiFeatureMenu--PdArSnv.js} +7 -7
  31. package/dist/cdn/chunks/{AiFeatureMenu-RwJiaPXZ.js.map → AiFeatureMenu--PdArSnv.js.map} +1 -1
  32. package/dist/cdn/chunks/{BlockIssueBadge-DM-TDKbr.js → BlockIssueBadge-DMSd0SIl.js} +4 -4
  33. package/dist/cdn/chunks/{BlockIssueBadge-DM-TDKbr.js.map → BlockIssueBadge-DMSd0SIl.js.map} +1 -1
  34. package/dist/cdn/chunks/{CloudEditor-Dufl354p.js → CloudEditor-DnTfI5GU.js} +273 -325
  35. package/dist/cdn/chunks/CloudEditor-DnTfI5GU.js.map +1 -0
  36. package/dist/cdn/chunks/{CollaboratorBar-xsU20iPl.js → CollaboratorBar-CBqd7ldq.js} +3 -3
  37. package/dist/cdn/chunks/{CollaboratorBar-xsU20iPl.js.map → CollaboratorBar-CBqd7ldq.js.map} +1 -1
  38. package/dist/cdn/chunks/{ColorPicker-y_obnw4o.js → ColorPicker-DCdWP8YB.js} +99 -99
  39. package/dist/cdn/chunks/ColorPicker-DCdWP8YB.js.map +1 -0
  40. package/dist/cdn/chunks/{CountdownBlock-sHsRMe1q.js → CountdownBlock-BDnWMAME.js} +2 -2
  41. package/dist/cdn/chunks/{CountdownBlock-sHsRMe1q.js.map → CountdownBlock-BDnWMAME.js.map} +1 -1
  42. package/dist/cdn/chunks/{CountdownToolbar-Ckc_jEi-.js → CountdownToolbar-BbLoo22S.js} +4 -5
  43. package/dist/cdn/chunks/{CountdownToolbar-Ckc_jEi-.js.map → CountdownToolbar-BbLoo22S.js.map} +1 -1
  44. package/dist/cdn/chunks/{IssuesPanel-DF5Ajuna.js → IssuesPanel-CfudrI3T.js} +7 -7
  45. package/dist/cdn/chunks/{IssuesPanel-DF5Ajuna.js.map → IssuesPanel-CfudrI3T.js.map} +1 -1
  46. package/dist/cdn/chunks/{MergeTagSuggestion-BmMmdcRg.js → MergeTagSuggestion-D7TsECll.js} +2 -2
  47. package/dist/cdn/chunks/{MergeTagSuggestion-BmMmdcRg.js.map → MergeTagSuggestion-D7TsECll.js.map} +1 -1
  48. package/dist/cdn/chunks/NumberWithSuffix-BmMx9_n_.js +123 -0
  49. package/dist/cdn/chunks/NumberWithSuffix-BmMx9_n_.js.map +1 -0
  50. package/dist/cdn/chunks/{ParagraphEditor-BkafKSju.js → ParagraphEditor-DPCUSXpx.js} +82 -82
  51. package/dist/cdn/chunks/{ParagraphEditor-BkafKSju.js.map → ParagraphEditor-DPCUSXpx.js.map} +1 -1
  52. package/dist/cdn/chunks/{RichTextEditorContent-BthhzOZS.js → RichTextEditorContent-B8dOiv_D.js} +5 -5
  53. package/dist/cdn/chunks/{RichTextEditorContent-BthhzOZS.js.map → RichTextEditorContent-B8dOiv_D.js.map} +1 -1
  54. package/dist/cdn/chunks/SaveBlockDialog-BY3SMnNV.js +259 -0
  55. package/dist/cdn/chunks/SaveBlockDialog-BY3SMnNV.js.map +1 -0
  56. package/dist/cdn/chunks/SavedBlockPreviewCanvas-LpaOcusq.js +110 -0
  57. package/dist/cdn/chunks/SavedBlockPreviewCanvas-LpaOcusq.js.map +1 -0
  58. package/dist/cdn/chunks/SavedBlocksBrowserModal-CfIcmyzF.js +318 -0
  59. package/dist/cdn/chunks/SavedBlocksBrowserModal-CfIcmyzF.js.map +1 -0
  60. package/dist/cdn/chunks/SavedBlocksPanels-kIowCfh_.js +38 -0
  61. package/dist/cdn/chunks/SavedBlocksPanels-kIowCfh_.js.map +1 -0
  62. package/dist/cdn/chunks/SavedBlocksPickBar-WSGe1GiZ.js +52 -0
  63. package/dist/cdn/chunks/SavedBlocksPickBar-WSGe1GiZ.js.map +1 -0
  64. package/dist/cdn/chunks/{TitleEditor-DLv9cXba.js → TitleEditor-iwd-O9sO.js} +11 -11
  65. package/dist/cdn/chunks/{TitleEditor-DLv9cXba.js.map → TitleEditor-iwd-O9sO.js.map} +1 -1
  66. package/dist/cdn/chunks/{blockTypeIcons-B0uibGX7.js → blockTypeIcons-BYz0fgLz.js} +7 -7
  67. package/dist/cdn/chunks/{blockTypeIcons-B0uibGX7.js.map → blockTypeIcons-BYz0fgLz.js.map} +1 -1
  68. package/dist/cdn/chunks/{ca-DbWoy4rG.js → ca-BBgad6y5.js} +51 -4
  69. package/dist/cdn/chunks/ca-BBgad6y5.js.map +1 -0
  70. package/dist/{de-CTYXVU9v.js → cdn/chunks/de-Bw6fB5JU.js} +2 -24
  71. package/dist/cdn/chunks/{de-CTYXVU9v.js.map → de-Bw6fB5JU.js.map} +1 -1
  72. package/dist/cdn/chunks/{de-CgGOnerg.js → de-D7WbpFBR.js} +50 -3
  73. package/dist/cdn/chunks/de-D7WbpFBR.js.map +1 -0
  74. package/dist/{en-DrUV9xth.js → cdn/chunks/en-BrZ0uGK2.js} +51 -2
  75. package/dist/cdn/chunks/en-BrZ0uGK2.js.map +1 -0
  76. package/dist/{en-BtmIaJeb.js → cdn/chunks/en-DAdHJz7h.js} +2 -24
  77. package/dist/cdn/chunks/{en-BtmIaJeb.js.map → en-DAdHJz7h.js.map} +1 -1
  78. package/dist/{es-DwbKjU7q.js → cdn/chunks/es-tLSLysPs.js} +51 -2
  79. package/dist/cdn/chunks/es-tLSLysPs.js.map +1 -0
  80. package/dist/cdn/chunks/{extensions-DLHvZ0UH.js → extensions-DeJh3E9b.js} +29 -29
  81. package/dist/cdn/chunks/{extensions-DLHvZ0UH.js.map → extensions-DeJh3E9b.js.map} +1 -1
  82. package/dist/cdn/chunks/{features-Cnfv4QAY.js → features-pLfGJWIB.js} +1802 -1603
  83. package/dist/cdn/chunks/features-pLfGJWIB.js.map +1 -0
  84. package/dist/cdn/chunks/{icons-DbcM69bb.js → icons-FLemooQz.js} +16 -16
  85. package/dist/cdn/chunks/{icons-DbcM69bb.js.map → icons-FLemooQz.js.map} +1 -1
  86. package/dist/cdn/chunks/{media-library-DpSMwHd4.js → media-library-mCCZieYO.js} +163 -163
  87. package/dist/cdn/chunks/{media-library-DpSMwHd4.js.map → media-library-mCCZieYO.js.map} +1 -1
  88. package/dist/cdn/chunks/{pt-BR-Bcc5Tjed.js → pt-BR-BWFokdTU.js} +50 -3
  89. package/dist/cdn/chunks/pt-BR-BWFokdTU.js.map +1 -0
  90. package/dist/{pt-BR-B2ZvFlRL.js → cdn/chunks/pt-BR-w2sGzHNX.js} +2 -24
  91. package/dist/cdn/chunks/{pt-BR-B2ZvFlRL.js.map → pt-BR-w2sGzHNX.js.map} +1 -1
  92. package/dist/cdn/chunks/{pusher-CIwiKF8H.js → pusher-R0v5p99W.js} +27 -22
  93. package/dist/cdn/chunks/pusher-R0v5p99W.js.map +1 -0
  94. package/dist/cdn/chunks/{quality-D9QqkRcU.js → quality-BRbHtAk1.js} +460 -460
  95. package/dist/cdn/chunks/{quality-D9QqkRcU.js.map → quality-BRbHtAk1.js.map} +1 -1
  96. package/dist/cdn/chunks/{renderer-BsLQZNXU.js → renderer-Yg1XhsBN.js} +18 -18
  97. package/dist/cdn/chunks/{renderer-BsLQZNXU.js.map → renderer-Yg1XhsBN.js.map} +1 -1
  98. package/dist/cdn/chunks/{src-zu1ehVNN.js → src-BDJeYiVE.js} +33 -33
  99. package/dist/cdn/chunks/{src-zu1ehVNN.js.map → src-BDJeYiVE.js.map} +1 -1
  100. package/dist/cdn/chunks/{styles-Dx-jXeCd.js → styles-Bp5Jsu9J.js} +1422 -1332
  101. package/dist/cdn/chunks/styles-Bp5Jsu9J.js.map +1 -0
  102. package/dist/cdn/chunks/{tiptap-C2indasq.js → tiptap-BMZ-OENR.js} +2012 -1863
  103. package/dist/cdn/chunks/tiptap-BMZ-OENR.js.map +1 -0
  104. package/dist/cdn/editor.css +1 -1
  105. package/dist/cdn/editor.js +123 -114
  106. package/dist/cdn/editor.js.map +1 -1
  107. package/dist/{check-Cg6Mc2pP.js → check-BpQDKiPz.js} +1 -1
  108. package/dist/{chevron-down-dClfxKrJ.js → chevron-down-j8GrdTyz.js} +1 -1
  109. package/dist/chevron-up-BACyVhyC.js +7 -0
  110. package/dist/{circle-alert-Bhzm-fNA.js → circle-alert-CgtE46ND.js} +1 -1
  111. package/dist/{clock-m7TwQw4b.js → clock-BzKLLW5L.js} +1 -1
  112. package/dist/{cloud-B-RebwxI.js → cloud-Du7mnkz2.js} +19 -47
  113. package/dist/{createLucideIcon-FSF4peHQ.js → createLucideIcon-JWHwTI6N.js} +2 -2
  114. package/dist/{cdn/chunks/de-CTYXVU9v.js → de-Bw6fB5JU.js} +0 -26
  115. package/dist/{de-CgGOnerg.js → de-D7WbpFBR.js} +49 -2
  116. package/dist/{dist-CgTKuIUN.js → dist-BEpCh2mG.js} +1158 -1125
  117. package/dist/{dist-Cx7IUM7J.js → dist-BgPYC_8-.js} +14 -6
  118. package/dist/{dist-BKKo5wPC.js → dist-BkM8A17N.js} +2 -2
  119. package/dist/{dist-CcX5sLpz.js → dist-BuNDAAVp.js} +361 -256
  120. package/dist/{dist-COSN3oDJ.js → dist-CBzCU-a-.js} +2 -2
  121. package/dist/{dist-YSCPD13F.js → dist-CDO52Rxy.js} +2 -2
  122. package/dist/{dist-Dk5AdwoQ.js → dist-CrjzhIxB.js} +2 -2
  123. package/dist/{dist-DXAZUjj3.js → dist-CtcgoC_R.js} +2 -2
  124. package/dist/{dist-D6M5FAY7.js → dist-CuXha2_7.js} +2 -2
  125. package/dist/dist-CweLDZrs.js +5 -0
  126. package/dist/dist-DOsdqAEZ.js +5 -0
  127. package/dist/{dist-8TKf-Jpg.js → dist-DYClLqy8.js} +6 -3
  128. package/dist/{cdn/chunks/en-DrUV9xth.js → en-BrZ0uGK2.js} +49 -4
  129. package/dist/{cdn/chunks/en-BtmIaJeb.js → en-DAdHJz7h.js} +0 -26
  130. package/dist/{cdn/chunks/es-DwbKjU7q.js → es-tLSLysPs.js} +49 -4
  131. package/dist/{extensions-BCA9pyer.js → extensions-ClY5Sh7S.js} +5 -5
  132. package/dist/{image-up-CDEgJqwA.js → image-up-CQdtq8ge.js} +1 -1
  133. package/dist/index.d.ts +81 -4
  134. package/dist/{info-BNP8yGsK.js → info-BUJBXoE6.js} +1 -1
  135. package/dist/{keys-DFaIbGR8.js → keys-CHPcp-Nz.js} +2 -2
  136. package/dist/{list-checks-jepi4iYr.js → list-checks-BGHaCSD5.js} +1 -1
  137. package/dist/{loader-circle-BT38qSm3.js → loader-circle-C-Z6kgI6.js} +1 -1
  138. package/dist/{message-circle-BAHcL9S-.js → message-circle-CEm5qckV.js} +1 -1
  139. package/dist/pencil-DdwmkKLb.js +10 -0
  140. package/dist/{pt-BR-Bcc5Tjed.js → pt-BR-BWFokdTU.js} +49 -2
  141. package/dist/{cdn/chunks/pt-BR-B2ZvFlRL.js → pt-BR-w2sGzHNX.js} +0 -26
  142. package/dist/{refresh-cw-as5Bmg4X.js → refresh-cw-maKlg0dl.js} +1 -1
  143. package/dist/{scan-line-IAMjPtRw.js → scan-line-BFgesTOY.js} +1 -1
  144. package/dist/{send-DvMay6bt.js → send-B70aQDrA.js} +1 -1
  145. package/dist/{shield-check-YYDhGroE.js → shield-check-B7x5OKt5.js} +1 -1
  146. package/dist/{sparkles-CCwQMMMZ.js → sparkles-DVlm1Ipp.js} +1 -1
  147. package/dist/style.css +1 -1
  148. package/dist/{styles-64uLkPJV.js → styles-DIDAJdkj.js} +1241 -1151
  149. package/dist/templatical-editor.js +134 -125
  150. package/dist/{text-align-start-BwsA6QzC.js → text-align-start-Vay3Kvo2.js} +1 -1
  151. package/dist/{trash-2-CRBDolnR.js → trash-2-DE8CmxAG.js} +1 -1
  152. package/dist/{triangle-alert-B2g0ALvq.js → triangle-alert-Djg6IG8N.js} +1 -1
  153. package/dist/{upload-y4gxiFp5.js → upload-BwwE0U6G.js} +1 -1
  154. package/dist/{useCloudI18n-PCDOC2kz.js → useCloudI18n-BmiygEM4.js} +1 -1
  155. package/dist/{useEditorCore-ea9OrrH3.js → useEditorCore-Bd9CA4L_.js} +1236 -1013
  156. package/dist/{useI18n-BNMzZTM5.js → useI18n-D2L9Mkik.js} +1 -1
  157. package/dist/{useMergeTag-DfEY0eK5.js → useMergeTag-BTdDq5DC.js} +1 -1
  158. package/dist/{usePopoverPosition-F9STHRIr.js → usePopoverPosition-BO2LNy5n.js} +1 -1
  159. package/dist/{x-Ctg_250T.js → x-CkD6A1iB.js} +1 -1
  160. package/package.json +23 -23
  161. package/dist/CommentsSidebar-BYMVucZh.js +0 -442
  162. package/dist/ModuleBrowserModal-BNalLx0k.js +0 -202
  163. package/dist/ModulePreviewCanvas-BwObwisa.js +0 -106
  164. package/dist/NumberWithSuffix-D3BKz66W.js +0 -89
  165. package/dist/SaveModuleDialog-MTjwiF9D.js +0 -125
  166. package/dist/ToggleSwitch-DUNuUPsZ.js +0 -37
  167. package/dist/cdn/chunks/CloudEditor-Dufl354p.js.map +0 -1
  168. package/dist/cdn/chunks/ColorPicker-y_obnw4o.js.map +0 -1
  169. package/dist/cdn/chunks/ModuleBrowserModal-DG4AVFjH.js +0 -198
  170. package/dist/cdn/chunks/ModuleBrowserModal-DG4AVFjH.js.map +0 -1
  171. package/dist/cdn/chunks/ModulePreviewCanvas-Bc_PcJuc.js +0 -107
  172. package/dist/cdn/chunks/ModulePreviewCanvas-Bc_PcJuc.js.map +0 -1
  173. package/dist/cdn/chunks/NumberWithSuffix-8fOO-LC_.js +0 -91
  174. package/dist/cdn/chunks/NumberWithSuffix-8fOO-LC_.js.map +0 -1
  175. package/dist/cdn/chunks/SaveModuleDialog-DhsfYf2n.js +0 -120
  176. package/dist/cdn/chunks/SaveModuleDialog-DhsfYf2n.js.map +0 -1
  177. package/dist/cdn/chunks/ToggleSwitch-OrmX_w18.js +0 -39
  178. package/dist/cdn/chunks/ToggleSwitch-OrmX_w18.js.map +0 -1
  179. package/dist/cdn/chunks/ca-DbWoy4rG.js.map +0 -1
  180. package/dist/cdn/chunks/de-CgGOnerg.js.map +0 -1
  181. package/dist/cdn/chunks/en-DrUV9xth.js.map +0 -1
  182. package/dist/cdn/chunks/es-DwbKjU7q.js.map +0 -1
  183. package/dist/cdn/chunks/features-Cnfv4QAY.js.map +0 -1
  184. package/dist/cdn/chunks/pt-BR-Bcc5Tjed.js.map +0 -1
  185. package/dist/cdn/chunks/pusher-CIwiKF8H.js.map +0 -1
  186. package/dist/cdn/chunks/styles-Dx-jXeCd.js.map +0 -1
  187. package/dist/cdn/chunks/tiptap-C2indasq.js.map +0 -1
  188. package/dist/dist-BDVm2MrW.js +0 -5
  189. package/dist/dist-DbekZDmJ.js +0 -5
@@ -1,27 +1,27 @@
1
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
2
  import { c as E, o as D, t as O } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
- import { n as k } from "./upload-y4gxiFp5.js";
4
- import { A, s as j } from "./dist-BJbqgyPn.js";
5
- import { L as M, T as N, b as ee, t as P } from "./useEditorCore-ea9OrrH3.js";
3
+ import { n as k } from "./upload-BwwE0U6G.js";
4
+ import { A } from "./dist-BJbqgyPn.js";
5
+ import { E as j, V as M, t as N, x as P } from "./useEditorCore-Bd9CA4L_.js";
6
6
  import { m as F } from "./dist-DYv_Pttj.js";
7
- import { s as I } from "./usePopoverPosition-F9STHRIr.js";
8
- import { A as L, F as R, P as te, c as z, r as ne, s as B, t as re, u as ie } from "./keys-DFaIbGR8.js";
9
- import { t as V } from "./useI18n-BNMzZTM5.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-64uLkPJV.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
- import { t as Z } from "./_plugin-vue_export-helper-B3ysoDQm.js";
21
- import { n as Q } from "./useCloudI18n-PCDOC2kz.js";
22
- import { d as $ } from "./ColorPicker-BsgpTJqK.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-B-RebwxI.js";
24
- var Fe = H("save", [
7
+ import { s as I } from "./usePopoverPosition-BO2LNy5n.js";
8
+ import { A as L, F as R, c as z, r as B, s as V, t as H, u as ee } from "./keys-CHPcp-Nz.js";
9
+ import { t as U } from "./useI18n-D2L9Mkik.js";
10
+ import { t as W } from "./createLucideIcon-JWHwTI6N.js";
11
+ import { t as G } from "./check-BpQDKiPz.js";
12
+ import { t as K } from "./circle-alert-CgtE46ND.js";
13
+ import { a as q, c as te, d as ne, f as re, i as ie, l as ae, m as oe, n as se, o as ce, p as le, r as ue, s as de, t as fe, u as pe } from "./styles-DIDAJdkj.js";
14
+ import { t as me } from "./clock-BzKLLW5L.js";
15
+ import { t as J } from "./loader-circle-C-Z6kgI6.js";
16
+ import { t as Y } from "./message-circle-CEm5qckV.js";
17
+ import { t as X } from "./send-B70aQDrA.js";
18
+ import { t as Z } from "./sparkles-DVlm1Ipp.js";
19
+ import { t as he } from "./triangle-alert-Djg6IG8N.js";
20
+ import { t as ge } from "./_plugin-vue_export-helper-B3ysoDQm.js";
21
+ import { n as Q } from "./useCloudI18n-BmiygEM4.js";
22
+ import { d as $ } from "./ColorPicker-s9GHXjZs.js";
23
+ import { _ as _e, c as ve, f as ye, g as be, h as xe, i as Se, l as Ce, m as we, n as Te, o as Ee, p as De, r as Oe, s as ke, t as Ae, u as je, v as Me, y as Ne } from "./cloud-Du7mnkz2.js";
24
+ var Pe = W("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",
27
27
  key: "1c8476"
@@ -37,14 +37,14 @@ var Fe = H("save", [
37
37
  ]);
38
38
  //#endregion
39
39
  //#region src/cloud/composables/useSnapshotPreview.ts
40
- function Ie(e) {
40
+ function Fe(e) {
41
41
  let { authManager: t, editor: n, history: r, conditionPreview: i, autoSave: a, onError: s } = e, c = d(null), l = u(null), f = u(null), p = !1;
42
42
  o(() => {
43
43
  p = !0;
44
44
  });
45
45
  let m = C(() => l.value !== null), h = C(() => c.value?.snapshots.value ?? []), g = C(() => c.value?.isLoading.value ?? !1), _ = C(() => c.value?.isRestoring.value ?? !1);
46
46
  function v() {
47
- n.state.template?.id && !c.value && (c.value = Ce({
47
+ n.state.template?.id && !c.value && (c.value = be({
48
48
  authManager: t,
49
49
  templateId: n.state.template.id,
50
50
  onRestore: y,
@@ -96,7 +96,7 @@ function Ie(e) {
96
96
  }
97
97
  //#endregion
98
98
  //#region src/cloud/composables/useCloudPanelState.ts
99
- function Le() {
99
+ function Ie() {
100
100
  let e = u(null), t = C({
101
101
  get: () => e.value === "ai-chat",
102
102
  set: (t) => e.value = t ? "ai-chat" : null
@@ -141,7 +141,7 @@ function Le() {
141
141
  }
142
142
  //#endregion
143
143
  //#region src/cloud/composables/useCollabUndoWarning.ts
144
- function Re(e) {
144
+ function Le(e) {
145
145
  let { isCollaborationEnabled: t, getCollaboratorCount: n, canUndo: r } = e, i = u(!1), a = u(!1), { start: o } = F(() => {
146
146
  a.value = !1;
147
147
  }, k, { immediate: !1 });
@@ -155,7 +155,7 @@ function Re(e) {
155
155
  }
156
156
  //#endregion
157
157
  //#region src/cloud/composables/useCloudFeatureFlags.ts
158
- function ze(e) {
158
+ function Re(e) {
159
159
  let { planConfigInstance: t, aiConfig: n, editor: r } = e, i = C(() => t.hasFeature("ai_generation") && n.hasAnyMenuFeature.value), a = C(() => t.hasFeature("test_email")), o = C(() => !!r.state.template?.id), s = C(() => t.hasFeature("white_label")), c = C(() => t.config.value?.limits.max_templates ?? null), l = C(() => t.config.value?.template_count ?? 0), d = u(!1), f = u("idle"), p = u(""), { start: m } = F(() => {
160
160
  f.value = "idle";
161
161
  }, 3e3, { immediate: !1 });
@@ -174,7 +174,7 @@ function ze(e) {
174
174
  }
175
175
  //#endregion
176
176
  //#region src/cloud/composables/useCloudMediaLibrary.ts
177
- function Be(e) {
177
+ function ze(e) {
178
178
  let { onRequestMedia: t, mediaLibraryOpen: n, mediaLibraryAccept: r, authManager: i, getMediaConfig: a, onError: s } = e, c = null;
179
179
  function l(e) {
180
180
  return {
@@ -236,30 +236,30 @@ function Be(e) {
236
236
  }
237
237
  //#endregion
238
238
  //#region src/cloud/composables/useCloudInitialization.ts
239
- function Ve(e) {
240
- let { config: t, translations: n, fontsManager: r, emit: i, getCommentsSidebar: o } = e, s = u(!0), c = u(!1), l = u(null), d = !1, f = { value: null }, p = null, m = null, h = new Me({
239
+ function Be(e) {
240
+ let { config: t, translations: n, fontsManager: r, emit: i, getCommentsSidebar: o } = e, s = u(!0), c = u(!1), l = u(null), d = !1, f = { value: null }, p = null, m = null, h = new Ae({
241
241
  ...t.auth,
242
242
  onError: t.onError
243
- }), g = Ee({
243
+ }), g = xe({
244
244
  authManager: h,
245
245
  onError: t.onError
246
- }), v = u(/* @__PURE__ */ new Map()), y = xe({
246
+ }), v = u(/* @__PURE__ */ new Map()), y = ye({
247
247
  authManager: h,
248
248
  defaultFontFamily: t.fonts?.defaultFont,
249
249
  templateDefaults: t.templateDefaults,
250
250
  onError: t.onError,
251
251
  lockedBlocks: v
252
- }), b = Pe({
252
+ }), b = Ne({
253
253
  authManager: h,
254
254
  onError: t.onError
255
255
  });
256
- t.mcp?.enabled && ke({
256
+ t.mcp?.enabled && we({
257
257
  editor: y,
258
258
  channel: b.channel,
259
259
  onOperation: t.mcp.onOperation
260
260
  });
261
261
  let x = null;
262
- t.collaboration?.enabled && (x = Oe({
262
+ t.collaboration?.enabled && (x = ke({
263
263
  authManager: h,
264
264
  editor: y,
265
265
  channel: b.channel,
@@ -270,8 +270,8 @@ function Ve(e) {
270
270
  onBlockUnlocked: t.collaboration.onBlockUnlocked
271
271
  }), a(() => x.lockedBlocks.value, (e) => {
272
272
  v.value = e;
273
- }, { immediate: !0 }), je(y, x));
274
- let S = C(() => !!t.collaboration?.enabled && g.hasFeature("collaboration")), w = P({
273
+ }, { immediate: !0 }), ve(y, x));
274
+ let S = C(() => !!t.collaboration?.enabled && g.hasFeature("collaboration")), w = N({
275
275
  editor: y,
276
276
  config: {
277
277
  uiTheme: t.uiTheme,
@@ -286,7 +286,7 @@ function Ve(e) {
286
286
  logicTags: t.logicTags,
287
287
  displayConditions: t.displayConditions,
288
288
  onRequestMedia: null,
289
- lint: K(t),
289
+ lint: re(t),
290
290
  onSave: () => {
291
291
  f.value?.().catch((e) => {
292
292
  t.onError?.(e);
@@ -307,13 +307,13 @@ function Ve(e) {
307
307
  keyboardOptions: { onBeforeUndo: () => m?.showCollabUndoWarning() },
308
308
  editorRoot: e.editorRoot,
309
309
  containerEl: e.containerEl
310
- }), T = Re({
310
+ }), T = Le({
311
311
  isCollaborationEnabled: S,
312
312
  getCollaboratorCount: () => x?.collaborators.value.length ?? 0,
313
313
  canUndo: w.history.canUndo
314
314
  });
315
315
  m = T;
316
- let E = Ie({
316
+ let E = Fe({
317
317
  authManager: h,
318
318
  editor: y,
319
319
  history: w.history,
@@ -322,11 +322,11 @@ function Ve(e) {
322
322
  onError: t.onError
323
323
  });
324
324
  p = E;
325
- let D = Le(), O = ye(t.ai), k = ze({
325
+ let D = Ie(), O = Ee(t.ai), k = Re({
326
326
  planConfigInstance: g,
327
327
  aiConfig: O,
328
328
  editor: y
329
- }), A = Be({
329
+ }), A = ze({
330
330
  onRequestMedia: t.onRequestMedia,
331
331
  mediaLibraryOpen: D.mediaLibraryOpen,
332
332
  mediaLibraryAccept: D.mediaLibraryAccept,
@@ -334,23 +334,23 @@ function Ve(e) {
334
334
  getMediaConfig: () => g.config.value?.media ?? null,
335
335
  onError: t.onError
336
336
  });
337
- N({
337
+ j({
338
338
  onBlockMove: y.moveBlock,
339
339
  onBlockAdd: y.addBlock
340
340
  });
341
- let j = Se({
341
+ let P = De({
342
342
  authManager: h,
343
343
  getFontsConfig: () => t.fonts,
344
344
  canUseCustomFonts: () => g.hasFeature("custom_fonts")
345
- }), ee = Ne({
345
+ }), F = Me({
346
346
  authManager: h,
347
347
  getTemplateId: () => y.state.template?.id ?? null,
348
348
  save: () => y.save(),
349
- exportHtml: (e) => j.exportHtml(e),
349
+ exportHtml: (e) => P.exportHtml(e),
350
350
  onError: t.onError,
351
351
  isAuthReady: c,
352
352
  onBeforeTestEmail: t.onBeforeTestEmail
353
- }), F = Te({
353
+ }), I = je({
354
354
  authManager: h,
355
355
  getTemplateId: () => y.state.template?.id ?? null,
356
356
  getSocketId: () => b.getSocketId(),
@@ -359,14 +359,16 @@ function Ve(e) {
359
359
  isAuthReady: c,
360
360
  hasCommentingFeature: () => t.commenting !== !1 && g.hasFeature("commenting")
361
361
  });
362
- be({
363
- comments: F,
362
+ Ce({
363
+ comments: I,
364
364
  channel: b.channel
365
365
  });
366
- let I = we({
367
- authManager: h,
368
- onError: t.onError
369
- }), z = u(!1), V = u(null), H = u(!1), U = ve({
366
+ let z = le({
367
+ provider: Te(h),
368
+ editor: y,
369
+ onError: t.onError,
370
+ isAvailable: () => t.savedBlocks !== !1 && g.hasFeature("saved_modules")
371
+ }), U = _e({
370
372
  authManager: h,
371
373
  getTemplateId: () => y.state.template?.id ?? null
372
374
  });
@@ -375,40 +377,32 @@ function Ve(e) {
375
377
  o()?.filterByBlock(e);
376
378
  });
377
379
  }
378
- _(L, A.handleRequestMedia), _(ne, h), _(re, O), _(ie, F), _(te, I), _(R, U), _(B, {
380
+ _(L, A.handleRequestMedia), _(B, h), _(H, O), _(ee, I), _(R, U), _(V, {
379
381
  plan: g,
380
382
  ai: O,
381
383
  comments: {
382
- getBlockCount: (e) => F.commentCountByBlock.value.get(e) ?? 0,
384
+ getBlockCount: (e) => I.commentCountByBlock.value.get(e) ?? 0,
383
385
  openForBlock: W
384
386
  },
385
- savedModules: {
386
- openSaveDialog: (e) => {
387
- V.value = e ?? null, z.value = !0;
388
- },
389
- openBrowser: () => {
390
- H.value = !0;
391
- },
392
- moduleCount: C(() => I.modules.value.length)
393
- }
387
+ savedBlocks: z.capability
394
388
  });
395
389
  function G(e) {
396
390
  g.hasFeature("theme_customization") && (w.themeOverrides.value = e);
397
391
  }
398
- function ae(e) {
392
+ function K(e) {
399
393
  y.setUiTheme(e);
400
394
  }
401
- async function oe() {
395
+ async function q() {
402
396
  s.value = !0, l.value = null;
403
397
  try {
404
398
  if (await h.initialize(), d) return;
405
399
  c.value = !0;
406
- let e = await De({ authManager: h });
400
+ let e = await Oe({ authManager: h });
407
401
  if (d) return;
408
402
  if (!e.api.ok) throw Error("Health check failed: API is not reachable");
409
403
  if (!e.auth.ok) throw Error(`Health check failed: authentication error${e.auth.error ? ` - ${e.auth.error}` : ""}`);
410
404
  if (e.websocket.ok || M.warn("WebSocket health check failed:", e.websocket.error ?? "unknown error", "-- real-time features will be disabled."), await g.fetchConfig(), d) return;
411
- r.setCustomFontsEnabled(g.hasFeature("custom_fonts")), t.customBlocks?.length && g.hasFeature("custom_blocks") && w.registerCustomBlocks(t.customBlocks), t.theme && g.hasFeature("theme_customization") && (w.themeOverrides.value = t.theme), t.modules !== !1 && g.hasFeature("saved_modules") && I.loadModules(), i("ready");
405
+ r.setCustomFontsEnabled(g.hasFeature("custom_fonts")), t.customBlocks?.length && g.hasFeature("custom_blocks") && w.registerCustomBlocks(t.customBlocks), t.theme && g.hasFeature("theme_customization") && (w.themeOverrides.value = t.theme), i("ready");
412
406
  } catch (e) {
413
407
  if (d) return;
414
408
  let n = e instanceof Error ? e : Error("Initialization failed", { cause: e });
@@ -417,7 +411,7 @@ function Ve(e) {
417
411
  d || (s.value = !1);
418
412
  }
419
413
  }
420
- function q() {
414
+ function te() {
421
415
  d = !0, r.cleanupFontLinks(), b.disconnect(), w.destroy(), t.onUnmount?.();
422
416
  }
423
417
  return {
@@ -435,28 +429,25 @@ function Ve(e) {
435
429
  aiConfig: O,
436
430
  featureFlags: k,
437
431
  mediaLib: A,
438
- exporter: j,
439
- testEmail: ee,
440
- commentsInstance: F,
441
- savedModulesHeadless: I,
432
+ exporter: P,
433
+ testEmail: F,
434
+ commentsInstance: I,
435
+ savedBlocks: z,
442
436
  scoringInstance: U,
443
437
  panelState: D,
444
438
  snapshotPreview: E,
445
439
  collabWarning: T,
446
- showSaveModuleDialog: z,
447
- showModuleBrowserModal: H,
448
- saveModulePreSelectedBlockId: V,
449
440
  onSaveHook: f,
450
- initialize: oe,
451
- destroy: q,
441
+ initialize: q,
442
+ destroy: te,
452
443
  setThemeOverrides: G,
453
- setUiTheme: ae,
444
+ setUiTheme: K,
454
445
  openCommentsForBlock: W
455
446
  };
456
447
  }
457
448
  //#endregion
458
449
  //#region src/utils/preRenderCustomBlocks.ts
459
- async function He(e, t) {
450
+ async function Ve(e, t) {
460
451
  let n = async (e) => {
461
452
  if (A(e)) {
462
453
  let n = e;
@@ -475,10 +466,10 @@ async function He(e, t) {
475
466
  }
476
467
  //#endregion
477
468
  //#region src/cloud/composables/useCloudLifecycle.ts
478
- function Ue(e) {
469
+ function He(e) {
479
470
  let { config: t, editor: n, websocket: r, planConfigInstance: i, snapshotPreview: a, core: o, exporter: s, featureFlags: c, isDestroyed: l } = e;
480
471
  function u() {
481
- return Ae(i.config.value.websocket);
472
+ return Se(i.config.value.websocket);
482
473
  }
483
474
  async function d(e) {
484
475
  let i = await n.create(e);
@@ -491,7 +482,7 @@ function Ue(e) {
491
482
  async function p() {
492
483
  c.isSaveExporting.value = !0, c.saveStatus.value = "idle";
493
484
  try {
494
- if (await He(n.content.value, o.registry), l()) throw Error("Component unmounted during save");
485
+ if (await Ve(n.content.value, o.registry), l()) throw Error("Component unmounted during save");
495
486
  let e = await n.save();
496
487
  if (l()) throw Error("Component unmounted during save");
497
488
  a.initSnapshotHistory(), a.snapshotHistoryInstance.value?.loadSnapshots();
@@ -518,7 +509,7 @@ function Ue(e) {
518
509
  }
519
510
  //#endregion
520
511
  //#region src/cloud/composables/useCloudSaveGate.ts
521
- function We(e) {
512
+ function Ue(e) {
522
513
  let t = u(!1), n = null, r = C(() => e.planConfig.value?.accessibility?.blockOnError === !0), i = C(() => r.value ? e.issues.value.filter((e) => e.severity === "error") : []), a = C(() => i.value.length > 0);
523
514
  async function o(e) {
524
515
  return a.value ? (n = e, t.value = !0, !1) : (await e(), !0);
@@ -541,7 +532,7 @@ function We(e) {
541
532
  }
542
533
  //#endregion
543
534
  //#region src/cloud/components/CloudSaveGateModal.vue?vue&type=script&setup=true&lang.ts
544
- var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl:max-w-md tpl:flex-col tpl:gap-4 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:p-5 tpl:shadow-[var(--tpl-shadow-md)]" }, qe = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Je = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Ye = { class: "tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Xe = { class: "tpl:m-0 tpl:flex tpl:max-h-64 tpl:list-none tpl:flex-col tpl:gap-1.5 tpl:overflow-y-auto tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-2" }, Ze = { class: "tpl:text-xs tpl:text-[var(--tpl-text)]" }, Qe = { class: "tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, $e = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, et = /* @__PURE__ */ f({
535
+ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl:max-w-md tpl:flex-col tpl:gap-4 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:p-5 tpl:shadow-[var(--tpl-shadow-md)]" }, Ke = { class: "tpl:flex tpl:items-center tpl:gap-2" }, qe = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Je = { class: "tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ye = { class: "tpl:m-0 tpl:flex tpl:max-h-64 tpl:list-none tpl:flex-col tpl:gap-1.5 tpl:overflow-y-auto tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-2" }, Xe = { class: "tpl:text-xs tpl:text-[var(--tpl-text)]" }, Ze = { class: "tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, Qe = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, $e = /* @__PURE__ */ f({
545
536
  __name: "CloudSaveGateModal",
546
537
  props: {
547
538
  open: { type: Boolean },
@@ -563,18 +554,18 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
563
554
  "aria-label": b(i).saveGate.title,
564
555
  class: "tpl:fixed tpl:inset-0 tpl:z-50 tpl:flex tpl:items-center tpl:justify-center tpl:bg-black/40 tpl:p-6",
565
556
  onClick: a[2] ||= E((e) => r("cancel"), ["self"])
566
- }, [p("div", Ke, [
567
- p("header", qe, [g(b(X), {
557
+ }, [p("div", Ge, [
558
+ p("header", Ke, [g(b(he), {
568
559
  size: 18,
569
560
  "stroke-width": 2,
570
561
  class: "tpl:text-[var(--tpl-warning)]"
571
- }), p("h2", Je, c(b(i).saveGate.title), 1)]),
572
- p("p", Ye, c(b(i).saveGate.body), 1),
573
- p("ul", Xe, [(s(!0), m(S, null, e(t.issues, (e) => (s(), m("li", {
562
+ }), p("h2", qe, c(b(i).saveGate.title), 1)]),
563
+ p("p", Je, c(b(i).saveGate.body), 1),
564
+ p("ul", Ye, [(s(!0), m(S, null, e(t.issues, (e) => (s(), m("li", {
574
565
  key: `${e.ruleId}-${e.blockId ?? "template"}`,
575
566
  class: "tpl:flex tpl:flex-col tpl:gap-0.5 tpl:rounded tpl:px-2 tpl:py-1.5"
576
- }, [p("span", Ze, c(e.message), 1), p("span", Qe, c(e.ruleId), 1)]))), 128))]),
577
- p("footer", $e, [p("button", {
567
+ }, [p("span", Xe, c(e.message), 1), p("span", Ze, c(e.ruleId), 1)]))), 128))]),
568
+ p("footer", Qe, [p("button", {
578
569
  type: "button",
579
570
  class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]",
580
571
  onClick: a[0] ||= (e) => r("cancel")
@@ -583,11 +574,11 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
583
574
  class: "tpl:rounded-md tpl:bg-[var(--tpl-danger)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-white",
584
575
  onClick: a[1] ||= (e) => r("confirm")
585
576
  }, c(b(i).saveGate.confirm), 1)])
586
- ])], 8, Ge)) : w("", !0)]),
577
+ ])], 8, We)) : w("", !0)]),
587
578
  _: 1
588
579
  }));
589
580
  }
590
- }), tt = {
581
+ }), et = {
591
582
  class: "tpl-header tpl:absolute tpl:top-0 tpl:right-0 tpl:left-0 tpl:z-50 tpl:grid tpl:h-14 tpl:grid-cols-[1fr_auto_1fr] tpl:items-center tpl:px-4",
592
583
  style: {
593
584
  "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)",
@@ -596,24 +587,24 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
596
587
  "box-shadow": "var(--tpl-shadow-md)",
597
588
  "border-bottom": "1px solid var(--tpl-border)"
598
589
  }
599
- }, nt = { class: "tpl-header-left tpl:flex tpl:min-w-[200px] tpl:items-center tpl:gap-3" }, rt = {
590
+ }, tt = { class: "tpl-header-left tpl:flex tpl:min-w-[200px] tpl:items-center tpl:gap-3" }, nt = {
600
591
  key: 0,
601
592
  class: "tpl:text-xs tpl:opacity-60 tpl:text-[var(--tpl-text-muted)]"
602
- }, it = { class: "tpl-header-center tpl:flex tpl:items-center tpl:justify-center tpl:gap-10" }, at = { class: "tpl-header-right tpl:flex tpl:min-w-[200px] tpl:items-center tpl:justify-end tpl:gap-3" }, ot = ["data-tooltip"], st = {
593
+ }, rt = { class: "tpl-header-center tpl:flex tpl:items-center tpl:justify-center tpl:gap-10" }, it = { class: "tpl-header-right tpl:flex tpl:min-w-[200px] tpl:items-center tpl:justify-end tpl:gap-3" }, at = ["data-tooltip"], ot = {
603
594
  key: 1,
604
595
  "aria-live": "polite",
605
596
  class: "tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-success)]"
606
- }, ct = {
597
+ }, st = {
607
598
  key: 2,
608
599
  "aria-live": "polite",
609
600
  class: "tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
610
- }, lt = ["aria-label", "aria-expanded"], ut = {
601
+ }, ct = ["aria-label", "aria-expanded"], lt = {
611
602
  key: 0,
612
603
  class: "tpl:inline-flex tpl:size-4.5 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[10px] tpl:font-semibold tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]"
613
- }, dt = ["aria-expanded"], ft = {
604
+ }, ut = ["aria-expanded"], dt = {
614
605
  key: 0,
615
606
  class: "tpl:absolute tpl:right-0 tpl:top-full tpl:z-50 tpl:mt-1 tpl:origin-top-right"
616
- }, pt = ["disabled"], mt = ["disabled"], ht = /* @__PURE__ */ f({
607
+ }, ft = ["disabled"], pt = ["disabled"], mt = /* @__PURE__ */ f({
617
608
  __name: "CloudHeader",
618
609
  props: {
619
610
  editor: {},
@@ -631,22 +622,22 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
631
622
  },
632
623
  emits: ["save"],
633
624
  setup(e) {
634
- let t = h(() => import("./CollaboratorBar-CJO3l6Dt.js")), r = h(() => import("./SnapshotHistory-C_Y1LzAY.js")), a = h(() => import("./AiFeatureMenu-aFSO20PR.js")), { t: o, format: u } = Q();
635
- return (d, f) => (s(), m("header", tt, [
636
- p("div", nt, [e.featureFlags.templateLimit.value === null ? w("", !0) : (s(), m("span", rt, c(b(u)(b(o).header.templatesUsed, {
625
+ let t = h(() => import("./CollaboratorBar-Ds0YZWzV.js")), r = h(() => import("./SnapshotHistory-BvF5IXn1.js")), a = h(() => import("./AiFeatureMenu-CPdNpHpZ.js")), { t: o, format: u } = Q();
626
+ return (d, f) => (s(), m("header", et, [
627
+ p("div", tt, [e.featureFlags.templateLimit.value === null ? w("", !0) : (s(), m("span", nt, c(b(u)(b(o).header.templatesUsed, {
637
628
  used: e.featureFlags.templateCount.value,
638
629
  max: e.featureFlags.templateLimit.value
639
630
  })), 1))]),
640
- p("div", it, [
641
- g(le, {
631
+ p("div", rt, [
632
+ g(ce, {
642
633
  viewport: e.editor.state.viewport,
643
634
  onChange: e.editor.setViewport
644
635
  }, null, 8, ["viewport", "onChange"]),
645
- g(q, {
636
+ g(ie, {
646
637
  "dark-mode": e.editor.state.darkMode,
647
638
  onChange: e.editor.setDarkMode
648
639
  }, null, 8, ["dark-mode", "onChange"]),
649
- g(G, {
640
+ g(q, {
650
641
  "preview-mode": e.editor.state.previewMode,
651
642
  onChange: e.editor.setPreviewMode
652
643
  }, null, 8, ["preview-mode", "onChange"]),
@@ -670,19 +661,19 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
670
661
  "onNavigate"
671
662
  ])) : w("", !0)
672
663
  ]),
673
- p("div", at, [
664
+ p("div", it, [
674
665
  e.featureFlags.saveStatus.value === "error" ? (s(), m("div", {
675
666
  key: 0,
676
667
  "aria-live": "assertive",
677
668
  class: "tpl-tooltip tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]",
678
669
  "data-tooltip": e.featureFlags.saveErrorMessage.value
679
- }, [g(b(W), {
670
+ }, [g(b(K), {
680
671
  size: 12,
681
672
  "stroke-width": 2.5
682
- }), y(" " + c(b(o).header.saveFailed), 1)], 8, ot)) : e.featureFlags.saveStatus.value === "saved" ? (s(), m("div", st, [g(b(U), {
673
+ }), y(" " + c(b(o).header.saveFailed), 1)], 8, at)) : e.featureFlags.saveStatus.value === "saved" ? (s(), m("div", ot, [g(b(G), {
683
674
  size: 12,
684
675
  "stroke-width": 2.5
685
- }), y(" " + c(b(o).header.saved), 1)])) : e.editor.state.isDirty ? (s(), m("div", ct, [f[4] ||= p("span", { class: "tpl-pulse tpl:size-1.5 tpl:rounded-full tpl:bg-[var(--tpl-primary)]" }, null, -1), y(" " + c(b(o).header.unsaved), 1)])) : w("", !0),
676
+ }), y(" " + c(b(o).header.saved), 1)])) : e.editor.state.isDirty ? (s(), m("div", st, [f[4] ||= p("span", { class: "tpl-pulse tpl:size-1.5 tpl:rounded-full tpl:bg-[var(--tpl-primary)]" }, null, -1), y(" " + c(b(o).header.unsaved), 1)])) : w("", !0),
686
677
  e.commentsInstance.isEnabled.value && e.featureFlags.hasTemplateSaved.value ? (s(), m("button", {
687
678
  key: 3,
688
679
  "aria-label": e.commentsInstance.unresolvedCount.value > 0 ? `${b(o).comments.button} (${e.commentsInstance.unresolvedCount.value})` : b(o).comments.button,
@@ -695,13 +686,13 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
695
686
  }),
696
687
  onClick: f[0] ||= (t) => e.panelState.commentsOpen.value = !e.panelState.commentsOpen.value
697
688
  }, [
698
- g(b(ge), {
689
+ g(b(Y), {
699
690
  size: 16,
700
691
  "stroke-width": 2
701
692
  }),
702
693
  y(" " + c(b(o).comments.button) + " ", 1),
703
- e.commentsInstance.unresolvedCount.value > 0 && !e.panelState.commentsOpen.value ? (s(), m("span", ut, c(e.commentsInstance.unresolvedCount.value), 1)) : w("", !0)
704
- ], 14, lt)) : w("", !0),
694
+ e.commentsInstance.unresolvedCount.value > 0 && !e.panelState.commentsOpen.value ? (s(), m("span", lt, c(e.commentsInstance.unresolvedCount.value), 1)) : w("", !0)
695
+ ], 14, ct)) : w("", !0),
705
696
  e.featureFlags.canUseAiGeneration.value && e.featureFlags.hasTemplateSaved.value ? (s(), m("div", {
706
697
  key: 4,
707
698
  ref: (t) => e.panelState.aiMenuRef.value = t,
@@ -710,11 +701,11 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
710
701
  "aria-expanded": e.panelState.aiMenuOpen.value,
711
702
  class: i(["tpl-ai-btn tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-4 tpl:py-2 tpl:text-sm tpl:font-semibold tpl:whitespace-nowrap tpl:transition-all tpl:duration-200", e.panelState.aiButtonActive.value ? "tpl-ai-btn--active" : "tpl-ai-btn--idle"]),
712
703
  onClick: f[1] ||= E((...t) => e.panelState.toggleAiMenu && e.panelState.toggleAiMenu(...t), ["stop"])
713
- }, [g(b(Y), {
704
+ }, [g(b(Z), {
714
705
  size: 16,
715
706
  "stroke-width": 2,
716
707
  class: "tpl-ai-btn-icon"
717
- }), y(" " + c(b(o).aiChat.button), 1)], 10, dt), g(O, {
708
+ }), y(" " + c(b(o).aiChat.button), 1)], 10, ut), g(O, {
718
709
  "enter-active-class": "tpl:transition-all tpl:duration-150 tpl:ease-out",
719
710
  "enter-from-class": "tpl:scale-95 tpl:opacity-0",
720
711
  "enter-to-class": "tpl:scale-100 tpl:opacity-100",
@@ -722,7 +713,7 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
722
713
  "leave-from-class": "tpl:scale-100 tpl:opacity-100",
723
714
  "leave-to-class": "tpl:scale-95 tpl:opacity-0"
724
715
  }, {
725
- default: l(() => [e.panelState.aiMenuOpen.value ? (s(), m("div", ft, [g(b(a), {
716
+ default: l(() => [e.panelState.aiMenuOpen.value ? (s(), m("div", dt, [g(b(a), {
726
717
  "active-feature": e.panelState.activeAiFeature.value,
727
718
  onSelect: e.panelState.handleAiFeatureSelect
728
719
  }, null, 8, ["active-feature", "onSelect"])])) : w("", !0)]),
@@ -743,11 +734,11 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
743
734
  class: "tpl-spinner",
744
735
  size: 16,
745
736
  "stroke-width": 2
746
- })) : (s(), v(b(_e), {
737
+ })) : (s(), v(b(X), {
747
738
  key: 0,
748
739
  size: 16,
749
740
  "stroke-width": 2
750
- })), y(" " + c(b(o).testEmail.button), 1)], 10, pt)) : w("", !0),
741
+ })), y(" " + c(b(o).testEmail.button), 1)], 10, ft)) : w("", !0),
751
742
  p("button", {
752
743
  class: i(b($)),
753
744
  style: {
@@ -762,15 +753,15 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
762
753
  class: "tpl-spinner",
763
754
  size: 16,
764
755
  "stroke-width": 2
765
- })) : (s(), v(b(Fe), {
756
+ })) : (s(), v(b(Pe), {
766
757
  key: 0,
767
758
  size: 16,
768
759
  "stroke-width": 2
769
- })), y(" " + c(e.isSaving ? b(o).header.saving : b(o).header.save), 1)], 10, mt)
760
+ })), y(" " + c(e.isSaving ? b(o).header.saving : b(o).header.save), 1)], 10, pt)
770
761
  ])
771
762
  ]));
772
763
  }
773
- }), gt = /* @__PURE__ */ f({
764
+ }), ht = /* @__PURE__ */ f({
774
765
  __name: "CloudPanels",
775
766
  props: {
776
767
  config: {},
@@ -779,41 +770,28 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
779
770
  panelState: {},
780
771
  planConfigInstance: {},
781
772
  testEmail: {},
782
- mediaLib: {},
783
- savedModulesHeadless: {},
784
- showSaveModuleDialog: { type: Boolean },
785
- saveModulePreSelectedBlockId: {},
786
- showModuleBrowserModal: { type: Boolean }
773
+ mediaLib: {}
787
774
  },
788
- emits: [
789
- "update:showSaveModuleDialog",
790
- "update:saveModulePreSelectedBlockId",
791
- "update:showModuleBrowserModal",
792
- "send-test-email",
793
- "module-insert"
794
- ],
775
+ emits: ["send-test-email"],
795
776
  setup(e, { expose: t, emit: n }) {
796
- let r = h(() => import("./AiChatSidebar-DAQTFuvi.js")), i = h(() => import("./CommentsSidebar-BYMVucZh.js")), a = h(() => import("./DesignReferenceSidebar-QfAV8XT9.js")), o = h(() => import("./TemplateScoringPanel-DikuKc6i.js")), c = h(() => import("./TestEmailModal-BW8aTtzf.js")), l = h(() => import("./SaveModuleDialog-MTjwiF9D.js")), d = h(() => import("./ModuleBrowserModal-BNalLx0k.js")), f = h(async () => {
777
+ let r = h(() => import("./AiChatSidebar-K_AehWc-.js")), i = h(() => import("./CommentsSidebar-DvNEdugN.js")), a = h(() => import("./DesignReferenceSidebar-DNmK3dxp.js")), o = h(() => import("./TemplateScoringPanel-ifGGGWs5.js")), c = h(() => import("./TestEmailModal-BRaM_eko.js")), l = h(async () => {
797
778
  try {
798
779
  return (await import("@templatical/media-library")).MediaLibraryModal;
799
780
  } catch {
800
781
  throw Error("[Templatical] Cloud media library requires the optional peer dependency '@templatical/media-library'. Please install it.");
801
782
  }
802
- }), p = n;
803
- function _(e, t, n) {
783
+ }), d = n;
784
+ function f(e, t, n) {
804
785
  t.history.record(), n.setContent(e), t.conditionPreview.reset();
805
786
  }
806
- function y(e, t) {
807
- p("module-insert", e, t);
808
- }
809
- let x = u(null);
810
- function C(e) {
811
- x.value?.filterByBlock(e);
787
+ let p = u(null);
788
+ function _(e) {
789
+ p.value?.filterByBlock(e);
812
790
  }
813
- return t({ filterCommentsByBlock: C }), (t, n) => (s(), m(S, null, [
791
+ return t({ filterCommentsByBlock: _ }), (t, n) => (s(), m(S, null, [
814
792
  g(b(r), {
815
793
  visible: e.panelState.aiChatOpen.value,
816
- "on-apply": (t) => _(t, e.core, e.editor),
794
+ "on-apply": (t) => f(t, e.core, e.editor),
817
795
  onClose: n[0] ||= (t) => e.panelState.aiChatOpen.value = !1
818
796
  }, null, 8, ["visible", "on-apply"]),
819
797
  g(b(o), {
@@ -824,11 +802,11 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
824
802
  visible: e.panelState.designReferenceOpen.value,
825
803
  "has-existing-blocks": e.editor.content.value.blocks.length > 0,
826
804
  onClose: n[2] ||= (t) => e.panelState.designReferenceOpen.value = !1,
827
- onApply: n[3] ||= (t) => _(t, e.core, e.editor)
805
+ onApply: n[3] ||= (t) => f(t, e.core, e.editor)
828
806
  }, null, 8, ["visible", "has-existing-blocks"]),
829
807
  g(b(i), {
830
808
  ref_key: "commentsSidebar",
831
- ref: x,
809
+ ref: p,
832
810
  visible: e.panelState.commentsOpen.value,
833
811
  onClose: n[4] ||= (t) => e.panelState.commentsOpen.value = !1
834
812
  }, null, 8, ["visible"]),
@@ -837,7 +815,7 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
837
815
  "allowed-emails": e.testEmail.allowedEmails.value,
838
816
  "is-sending": e.testEmail.isSending.value,
839
817
  error: e.testEmail.error.value,
840
- onSend: n[5] ||= (e) => p("send-test-email", e),
818
+ onSend: n[5] ||= (e) => d("send-test-email", e),
841
819
  onClose: n[6] ||= (t) => e.panelState.testEmailModalOpen.value = !1
842
820
  }, null, 8, [
843
821
  "visible",
@@ -845,22 +823,7 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
845
823
  "is-sending",
846
824
  "error"
847
825
  ]),
848
- e.planConfigInstance.hasFeature("saved_modules") && e.config.modules !== !1 ? (s(), v(b(l), {
849
- key: 0,
850
- visible: e.showSaveModuleDialog,
851
- "pre-selected-block-id": e.saveModulePreSelectedBlockId,
852
- onClose: n[7] ||= (e) => {
853
- p("update:showSaveModuleDialog", !1), p("update:saveModulePreSelectedBlockId", null);
854
- },
855
- onSaved: n[8] ||= (t) => e.savedModulesHeadless.loadModules()
856
- }, null, 8, ["visible", "pre-selected-block-id"])) : w("", !0),
857
- e.planConfigInstance.hasFeature("saved_modules") && e.config.modules !== !1 ? (s(), v(b(d), {
858
- key: 1,
859
- visible: e.showModuleBrowserModal,
860
- onClose: n[9] ||= (e) => p("update:showModuleBrowserModal", !1),
861
- onInsert: y
862
- }, null, 8, ["visible"])) : w("", !0),
863
- g(b(f), {
826
+ g(b(l), {
864
827
  visible: e.panelState.mediaLibraryOpen.value,
865
828
  accept: e.panelState.mediaLibraryAccept.value,
866
829
  "popover-target": e.core.popoverRoot.value,
@@ -875,23 +838,23 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
875
838
  ])
876
839
  ], 64));
877
840
  }
878
- }), _t = {
841
+ }), gt = {
879
842
  key: 0,
880
843
  class: "tpl-loading tpl:absolute tpl:inset-0 tpl:z-overlay tpl:flex tpl:flex-col tpl:bg-[var(--tpl-bg)]"
881
- }, vt = { class: "tpl:flex tpl:flex-1 tpl:overflow-hidden" }, yt = { class: "tpl:flex tpl:w-12 tpl:shrink-0 tpl:flex-col tpl:items-center tpl:gap-4 tpl:py-5 tpl:border-r tpl:border-[var(--tpl-border)]" }, bt = /* @__PURE__ */ f({
844
+ }, _t = { class: "tpl:flex tpl:flex-1 tpl:overflow-hidden" }, vt = { class: "tpl:flex tpl:w-12 tpl:shrink-0 tpl:flex-col tpl:items-center tpl:gap-4 tpl:py-5 tpl:border-r tpl:border-[var(--tpl-border)]" }, yt = /* @__PURE__ */ f({
882
845
  __name: "CloudLoadingOverlay",
883
846
  props: { visible: { type: Boolean } },
884
847
  setup(t) {
885
- return (n, r) => t.visible ? (s(), m("div", _t, [r[1] ||= x("<div class=\"tpl:flex tpl:h-14 tpl:shrink-0 tpl:items-center tpl:justify-between tpl:px-4 tpl:border-b tpl:border-[var(--tpl-border)]\"><div class=\"tpl-shimmer tpl:h-5 tpl:w-28 tpl:rounded-[var(--tpl-radius-sm)]\"></div><div class=\"tpl:flex tpl:gap-3\"><div class=\"tpl-shimmer tpl:h-8 tpl:w-20 tpl:rounded-[var(--tpl-radius-sm)]\"></div><div class=\"tpl-shimmer tpl:h-8 tpl:w-20 tpl:rounded-[var(--tpl-radius-sm)]\"></div></div></div>", 1), p("div", vt, [p("div", yt, [(s(), m(S, null, e(5, (e) => p("div", {
848
+ return (n, r) => t.visible ? (s(), m("div", gt, [r[1] ||= x("<div class=\"tpl:flex tpl:h-14 tpl:shrink-0 tpl:items-center tpl:justify-between tpl:px-4 tpl:border-b tpl:border-[var(--tpl-border)]\"><div class=\"tpl-shimmer tpl:h-5 tpl:w-28 tpl:rounded-[var(--tpl-radius-sm)]\"></div><div class=\"tpl:flex tpl:gap-3\"><div class=\"tpl-shimmer tpl:h-8 tpl:w-20 tpl:rounded-[var(--tpl-radius-sm)]\"></div><div class=\"tpl-shimmer tpl:h-8 tpl:w-20 tpl:rounded-[var(--tpl-radius-sm)]\"></div></div></div>", 1), p("div", _t, [p("div", vt, [(s(), m(S, null, e(5, (e) => p("div", {
886
849
  key: e,
887
850
  class: "tpl-shimmer tpl:size-7 tpl:rounded-[var(--tpl-radius-sm)]"
888
851
  })), 64))]), r[0] ||= x("<div class=\"tpl:flex tpl:flex-1 tpl:items-start tpl:justify-center tpl:overflow-auto tpl:p-8 tpl:bg-[var(--tpl-canvas-bg)]\"><div class=\"tpl:w-full tpl:max-w-[600px] tpl:rounded-[var(--tpl-radius)] tpl:p-6 tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-sm)]\"><div class=\"tpl:space-y-2 tpl:py-4\"><div class=\"tpl-shimmer tpl:h-3 tpl:w-3/4 tpl:rounded\"></div><div class=\"tpl-shimmer tpl:h-3 tpl:w-full tpl:rounded\"></div><div class=\"tpl-shimmer tpl:h-3 tpl:w-5/6 tpl:rounded\"></div></div><div class=\"tpl:py-4\"><div class=\"tpl-shimmer tpl:h-44 tpl:w-full tpl:rounded-[var(--tpl-radius-sm)]\"></div></div><div class=\"tpl:space-y-2 tpl:py-4\"><div class=\"tpl-shimmer tpl:h-3 tpl:w-full tpl:rounded\"></div><div class=\"tpl-shimmer tpl:h-3 tpl:w-2/3 tpl:rounded\"></div></div><div class=\"tpl:flex tpl:justify-center tpl:py-4\"><div class=\"tpl-shimmer tpl:h-10 tpl:w-36 tpl:rounded-[var(--tpl-radius-sm)]\"></div></div><div class=\"tpl:space-y-2 tpl:py-4\"><div class=\"tpl-shimmer tpl:mx-auto tpl:h-2.5 tpl:w-1/2 tpl:rounded\"></div><div class=\"tpl-shimmer tpl:mx-auto tpl:h-2.5 tpl:w-1/3 tpl:rounded\"></div></div></div></div><div class=\"tpl:flex tpl:w-[320px] tpl:shrink-0 tpl:flex-col tpl:gap-4 tpl:p-4 tpl:border-l tpl:border-[var(--tpl-border)]\"><div class=\"tpl-shimmer tpl:h-8 tpl:rounded-[var(--tpl-radius-sm)]\"></div><div class=\"tpl-shimmer tpl:h-32 tpl:rounded-[var(--tpl-radius)]\"></div><div class=\"tpl-shimmer tpl:h-32 tpl:rounded-[var(--tpl-radius)]\"></div></div>", 2)])])) : w("", !0);
889
852
  }
890
- }), xt = {
853
+ }), bt = {
891
854
  key: 0,
892
855
  role: "alert",
893
856
  class: "tpl-error tpl:absolute tpl:inset-0 tpl:z-overlay tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-6 tpl:px-8 tpl:bg-[var(--tpl-bg)]"
894
- }, St = { class: "tpl:flex tpl:size-16 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-danger-light)]" }, Ct = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:text-center" }, wt = { class: "tpl:text-lg tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Tt = { class: "tpl:max-w-md tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Et = /* @__PURE__ */ f({
857
+ }, xt = { class: "tpl:flex tpl:size-16 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-danger-light)]" }, St = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:text-center" }, Ct = { class: "tpl:text-lg tpl:font-semibold tpl:text-[var(--tpl-text)]" }, wt = { class: "tpl:max-w-md tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Tt = /* @__PURE__ */ f({
895
858
  __name: "CloudErrorOverlay",
896
859
  props: {
897
860
  error: {},
@@ -906,13 +869,13 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
906
869
  function a(e) {
907
870
  return "isNotFound" in e && !!e.isNotFound;
908
871
  }
909
- return (t, o) => e.visible && e.error ? (s(), m("div", xt, [
910
- p("div", St, [g(b(W), {
872
+ return (t, o) => e.visible && e.error ? (s(), m("div", bt, [
873
+ p("div", xt, [g(b(K), {
911
874
  size: 32,
912
875
  "stroke-width": 1.5,
913
876
  class: "tpl:text-[var(--tpl-danger)]"
914
877
  })]),
915
- p("div", Ct, [p("h2", wt, c(b(r).error.title), 1), p("p", Tt, c(i(e.error)), 1)]),
878
+ p("div", St, [p("h2", Ct, c(b(r).error.title), 1), p("p", wt, c(i(e.error)), 1)]),
916
879
  a(e.error) ? w("", !0) : (s(), m("button", {
917
880
  key: 0,
918
881
  class: "tpl-btn tpl-btn-primary tpl:inline-flex tpl:items-center tpl:gap-2 tpl:rounded-md tpl:px-4 tpl:py-2.5 tpl:text-sm tpl:font-medium tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
@@ -920,20 +883,20 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
920
883
  }, c(b(r).error.retry), 1))
921
884
  ])) : w("", !0);
922
885
  }
923
- }), Dt = {
886
+ }), Et = {
924
887
  key: 0,
925
888
  class: "tpl-preview-banner tpl:absolute tpl:top-14 tpl:right-0 tpl:left-0 tpl:z-40 tpl:flex tpl:items-center tpl:justify-center tpl:gap-4 tpl:px-4 tpl:py-3 tpl:bg-[var(--tpl-primary-light)] tpl:border-b tpl:border-[var(--tpl-primary)]"
926
- }, Ot = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:text-[var(--tpl-text)]" }, kt = { class: "tpl:flex tpl:items-center tpl:gap-2" }, At = /* @__PURE__ */ f({
889
+ }, Dt = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:text-[var(--tpl-text)]" }, Ot = { class: "tpl:flex tpl:items-center tpl:gap-2" }, kt = /* @__PURE__ */ f({
927
890
  __name: "SnapshotPreviewBanner",
928
891
  props: { visible: { type: Boolean } },
929
892
  emits: ["cancel", "confirm"],
930
893
  setup(e, { emit: t }) {
931
894
  let n = t, { t: r } = Q();
932
- return (t, i) => e.visible ? (s(), m("div", Dt, [p("div", Ot, [g(b(he), {
895
+ return (t, i) => e.visible ? (s(), m("div", Et, [p("div", Dt, [g(b(me), {
933
896
  size: 18,
934
897
  "stroke-width": 2,
935
898
  class: "tpl:text-[var(--tpl-primary)]"
936
- }), p("span", null, c(b(r).snapshotPreview.message), 1)]), p("div", kt, [p("button", {
899
+ }), p("span", null, c(b(r).snapshotPreview.message), 1)]), p("div", Ot, [p("button", {
937
900
  class: "tpl:rounded-md tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:transition-all tpl:duration-150 tpl:text-[var(--tpl-text-muted)] tpl:border tpl:border-[var(--tpl-border)]",
938
901
  style: { "background-color": "transparent" },
939
902
  onClick: i[0] ||= (e) => n("cancel")
@@ -942,7 +905,7 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
942
905
  onClick: i[1] ||= (e) => n("confirm")
943
906
  }, c(b(r).snapshotPreview.restore), 1)])])) : w("", !0);
944
907
  }
945
- }), jt = {
908
+ }), At = {
946
909
  key: 0,
947
910
  role: "status",
948
911
  "aria-live": "polite",
@@ -952,14 +915,14 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
952
915
  color: "var(--tpl-text)",
953
916
  border: "1px solid var(--tpl-warning)"
954
917
  }
955
- }, Mt = /* @__PURE__ */ f({
918
+ }, jt = /* @__PURE__ */ f({
956
919
  __name: "CollabUndoToast",
957
920
  props: { visible: { type: Boolean } },
958
921
  setup(e) {
959
- let { t } = V();
960
- return (n, r) => e.visible ? (s(), m("div", jt, c(b(t).history.collabWarning), 1)) : w("", !0);
922
+ let { t } = U();
923
+ return (n, r) => e.visible ? (s(), m("div", At, c(b(t).history.collabWarning), 1)) : w("", !0);
961
924
  }
962
- }), Nt = ["data-tpl-theme"], Pt = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, Ft = { class: "tpl-main tpl:flex tpl:justify-center tpl:p-8" }, It = ["aria-label"], Lt = /*#__PURE__*/ Z(/* @__PURE__ */ f({
925
+ }), Mt = ["data-tpl-theme"], Nt = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, Pt = { class: "tpl-main tpl:flex tpl:justify-center tpl:p-8" }, Ft = ["aria-label"], It = /*#__PURE__*/ ge(/* @__PURE__ */ f({
963
926
  __name: "CloudEditor",
964
927
  props: {
965
928
  config: {},
@@ -970,74 +933,67 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
970
933
  },
971
934
  emits: ["ready"],
972
935
  setup(e, { expose: a, emit: o }) {
973
- let d = e;
974
- _(z, d.cloudTranslations);
975
- let f = o, h = u(null), x = u(null), S = Ve({
976
- config: d.config,
977
- translations: d.translations,
978
- fontsManager: d.fontsManager,
979
- emit: f,
980
- getCommentsSidebar: () => h.value ? { filterByBlock: h.value.filterCommentsByBlock } : null,
981
- editorRoot: d.shadowRoot,
982
- containerEl: x
983
- }), { isInitializing: C, isAuthReady: k, initError: A, planConfigInstance: M, websocket: N, collaboration: P, isCollaborationEnabled: F, editor: I, core: L, featureFlags: R, mediaLib: te, exporter: ne, testEmail: B, commentsInstance: re, savedModulesHeadless: ie, panelState: V, snapshotPreview: H, collabWarning: U, showSaveModuleDialog: W, showModuleBrowserModal: G, saveModulePreSelectedBlockId: K, setThemeOverrides: q, setUiTheme: le } = S, { showNotice: he } = ee(() => d.config.smallScreenNotice);
984
- async function J(e) {
936
+ let d = h(() => import("./SavedBlocksPanels-CET0zvH6.js")), f = e;
937
+ _(z, f.cloudTranslations);
938
+ let x = o, S = u(null), C = u(null), k = Be({
939
+ config: f.config,
940
+ translations: f.translations,
941
+ fontsManager: f.fontsManager,
942
+ emit: x,
943
+ getCommentsSidebar: () => S.value ? { filterByBlock: S.value.filterCommentsByBlock } : null,
944
+ editorRoot: f.shadowRoot,
945
+ containerEl: C
946
+ }), { isInitializing: A, isAuthReady: j, initError: M, planConfigInstance: N, websocket: F, collaboration: I, isCollaborationEnabled: L, editor: R, core: B, featureFlags: V, mediaLib: H, exporter: ee, testEmail: U, commentsInstance: W, savedBlocks: G, panelState: K, snapshotPreview: q, collabWarning: re, setThemeOverrides: ie, setUiTheme: ce } = k, { showNotice: le } = P(() => f.config.smallScreenNotice);
947
+ async function me(e) {
985
948
  try {
986
- await B.sendTestEmail(e), V.testEmailModalOpen.value = !1;
949
+ await U.sendTestEmail(e), K.testEmailModalOpen.value = !1;
987
950
  } catch {}
988
951
  }
989
- async function ge() {
952
+ async function J() {
990
953
  try {
991
- await H.confirmRestoreSnapshot();
954
+ await q.confirmRestoreSnapshot();
992
955
  } catch {}
993
956
  }
994
- function _e(e, t) {
995
- for (let n = 0; n < e.content.length; n++) {
996
- let r = j(e.content[n]), i = t === void 0 ? void 0 : t + n;
997
- I.addBlock(r, void 0, void 0, i);
998
- }
999
- G.value = !1;
1000
- }
1001
- let Y = Ue({
1002
- config: d.config,
1003
- editor: I,
1004
- websocket: N,
1005
- planConfigInstance: M,
1006
- snapshotPreview: H,
1007
- core: L,
1008
- exporter: ne,
1009
- featureFlags: R,
1010
- isDestroyed: S.isDestroyed
1011
- }), X = We({
1012
- issues: L.templateLint ? L.templateLint.issues : u([]),
1013
- planConfig: M.config
957
+ let Y = He({
958
+ config: f.config,
959
+ editor: R,
960
+ websocket: F,
961
+ planConfigInstance: N,
962
+ snapshotPreview: q,
963
+ core: B,
964
+ exporter: ee,
965
+ featureFlags: V,
966
+ isDestroyed: k.isDestroyed
967
+ }), X = Ue({
968
+ issues: B.templateLint ? B.templateLint.issues : u([]),
969
+ planConfig: N.config
1014
970
  });
1015
971
  async function Z() {
1016
- await X.tryRunSave(() => Y.saveTemplate().catch((e) => d.config.onError?.(e)));
972
+ await X.tryRunSave(() => Y.saveTemplate().catch((e) => f.config.onError?.(e)));
1017
973
  }
1018
- return S.onSaveHook.value = Z, r(() => {
1019
- S.initialize();
974
+ return k.onSaveHook.value = Z, r(() => {
975
+ k.initialize();
1020
976
  }), t(() => {
1021
- S.destroy();
977
+ k.destroy();
1022
978
  }), a({
1023
- getContent: () => I.content.value,
1024
- setContent: (e) => I.setContent(e),
1025
- setTheme: le,
1026
- setThemeOverrides: q,
979
+ getContent: () => R.content.value,
980
+ setContent: (e) => R.setContent(e),
981
+ setTheme: ce,
982
+ setThemeOverrides: ie,
1027
983
  create: Y.createTemplate,
1028
984
  load: Y.loadTemplate,
1029
985
  save: Y.saveTemplate,
1030
- sendTestEmail: B.sendTestEmail
986
+ sendTestEmail: U.sendTestEmail
1031
987
  }), (t, r) => (s(), m("div", {
1032
988
  ref_key: "rootEl",
1033
- ref: x,
1034
- class: i(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": b(I).state.darkMode }]),
1035
- "data-tpl-theme": b(L).resolvedTheme.value,
1036
- style: n(b(L).themeStyles.value),
1037
- onDragover: r[9] ||= E(() => {}, ["prevent"]),
1038
- onDrop: r[10] ||= E(() => {}, ["prevent"])
989
+ ref: C,
990
+ class: i(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": b(R).state.darkMode }]),
991
+ "data-tpl-theme": b(B).resolvedTheme.value,
992
+ style: n(b(B).themeStyles.value),
993
+ onDragover: r[6] ||= E(() => {}, ["prevent"]),
994
+ onDrop: r[7] ||= E(() => {}, ["prevent"])
1039
995
  }, [
1040
- g(me),
996
+ g(pe),
1041
997
  g(O, {
1042
998
  "enter-active-class": "tpl:transition-opacity tpl:duration-200",
1043
999
  "enter-from-class": "tpl:opacity-100",
@@ -1046,7 +1002,7 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1046
1002
  "leave-from-class": "tpl:opacity-100",
1047
1003
  "leave-to-class": "tpl:opacity-0"
1048
1004
  }, {
1049
- default: l(() => [g(bt, { visible: b(C) || b(I).state.isLoading }, null, 8, ["visible"])]),
1005
+ default: l(() => [g(yt, { visible: b(A) || b(R).state.isLoading }, null, 8, ["visible"])]),
1050
1006
  _: 1
1051
1007
  }),
1052
1008
  g(O, {
@@ -1057,10 +1013,10 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1057
1013
  "leave-from-class": "tpl:opacity-100",
1058
1014
  "leave-to-class": "tpl:opacity-0"
1059
1015
  }, {
1060
- default: l(() => [g(Et, {
1061
- error: b(A),
1062
- visible: !!b(A) && !b(C),
1063
- onRetry: b(S).initialize
1016
+ default: l(() => [g(Tt, {
1017
+ error: b(M),
1018
+ visible: !!b(M) && !b(A),
1019
+ onRetry: b(k).initialize
1064
1020
  }, null, 8, [
1065
1021
  "error",
1066
1022
  "visible",
@@ -1068,19 +1024,19 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1068
1024
  ])]),
1069
1025
  _: 1
1070
1026
  }),
1071
- g(ht, {
1072
- editor: b(I),
1073
- core: b(L),
1074
- "feature-flags": b(R),
1075
- "panel-state": b(V),
1076
- "snapshot-preview": b(H),
1077
- "comments-instance": b(re),
1078
- "test-email": b(B),
1079
- websocket: b(N),
1080
- collaboration: b(P),
1081
- "is-collaboration-enabled": b(F),
1082
- "is-saving": b(I).state.isSaving || b(R).isSaveExporting.value,
1083
- "is-save-disabled": b(I).state.isSaving || b(R).isSaveExporting.value || !b(I).state.isDirty,
1027
+ g(mt, {
1028
+ editor: b(R),
1029
+ core: b(B),
1030
+ "feature-flags": b(V),
1031
+ "panel-state": b(K),
1032
+ "snapshot-preview": b(q),
1033
+ "comments-instance": b(W),
1034
+ "test-email": b(U),
1035
+ websocket: b(F),
1036
+ collaboration: b(I),
1037
+ "is-collaboration-enabled": b(L),
1038
+ "is-saving": b(R).state.isSaving || b(V).isSaveExporting.value,
1039
+ "is-save-disabled": b(R).state.isSaving || b(V).isSaveExporting.value || !b(R).state.isDirty,
1084
1040
  onSave: Z
1085
1041
  }, null, 8, [
1086
1042
  "editor",
@@ -1096,7 +1052,7 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1096
1052
  "is-saving",
1097
1053
  "is-save-disabled"
1098
1054
  ]),
1099
- g(et, {
1055
+ g($e, {
1100
1056
  open: b(X).modalOpen.value,
1101
1057
  issues: b(X).blockingIssues.value,
1102
1058
  onCancel: b(X).cancel,
@@ -1107,10 +1063,10 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1107
1063
  "onCancel",
1108
1064
  "onConfirm"
1109
1065
  ]),
1110
- g(At, {
1111
- visible: b(H).isPreviewingSnapshot.value,
1112
- onCancel: b(H).cancelPreview,
1113
- onConfirm: ge
1066
+ g(kt, {
1067
+ visible: b(q).isPreviewingSnapshot.value,
1068
+ onCancel: b(q).cancelPreview,
1069
+ onConfirm: J
1114
1070
  }, null, 8, ["visible", "onCancel"]),
1115
1071
  g(O, {
1116
1072
  "enter-active-class": "tpl:transition-all tpl:duration-200 tpl:ease-out",
@@ -1120,18 +1076,18 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1120
1076
  "leave-from-class": "tpl:translate-y-0 tpl:opacity-100",
1121
1077
  "leave-to-class": "tpl:translate-y-[-8px] tpl:opacity-0"
1122
1078
  }, {
1123
- default: l(() => [g(Mt, { visible: b(U).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
1079
+ default: l(() => [g(jt, { visible: b(re).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
1124
1080
  _: 1
1125
1081
  }),
1126
- T(g(se, null, null, 512), [[D, !b(I).state.previewMode]]),
1082
+ T(g(ae, null, null, 512), [[D, !b(R).state.previewMode]]),
1127
1083
  p("div", {
1128
- class: i(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [b(I).state.previewMode ? "tpl:left-0 tpl:right-0" : b(V).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]", b(H).isPreviewingSnapshot.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
1084
+ class: i(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [b(R).state.previewMode ? "tpl:left-0 tpl:right-0" : b(K).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]", b(q).isPreviewingSnapshot.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
1129
1085
  style: {
1130
1086
  transition: "all 300ms cubic-bezier(0.34, 1.56, 0.64, 1)",
1131
1087
  "background-color": "var(--tpl-canvas-bg)"
1132
1088
  }
1133
- }, [p("div", Pt, [g(O, { name: "tpl-restore-btn" }, {
1134
- default: l(() => [b(L).conditionPreview.hasHiddenBlocks.value ? (s(), m("button", {
1089
+ }, [p("div", Nt, [g(O, { name: "tpl-restore-btn" }, {
1090
+ default: l(() => [b(B).conditionPreview.hasHiddenBlocks.value ? (s(), m("button", {
1135
1091
  key: 0,
1136
1092
  class: "tpl:absolute tpl:left-1/2 tpl:top-2 tpl:-translate-x-1/2 tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-full tpl:border tpl:px-3.5 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:whitespace-nowrap tpl:shadow-md tpl:hover:opacity-80",
1137
1093
  style: {
@@ -1140,22 +1096,22 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1140
1096
  "border-color": "var(--tpl-warning)",
1141
1097
  "backdrop-filter": "blur(8px)"
1142
1098
  },
1143
- onClick: r[0] ||= (e) => b(L).conditionPreview.reset()
1144
- }, [g(b(ue), {
1099
+ onClick: r[0] ||= (e) => b(B).conditionPreview.reset()
1100
+ }, [g(b(oe), {
1145
1101
  size: 13,
1146
1102
  "stroke-width": 2
1147
- }), y(" " + c(b(L).t.blockSettings.restoreHiddenBlocks), 1)])) : w("", !0)]),
1103
+ }), y(" " + c(b(B).t.blockSettings.restoreHiddenBlocks), 1)])) : w("", !0)]),
1148
1104
  _: 1
1149
- })]), p("main", Ft, [g(oe, {
1150
- viewport: b(I).state.viewport,
1151
- content: b(I).content.value,
1152
- "selected-block-id": b(I).state.selectedBlockId,
1153
- "dark-mode": b(I).state.darkMode,
1154
- "preview-mode": b(I).state.previewMode,
1155
- "locked-blocks": b(P)?.lockedBlocks.value ?? void 0,
1156
- onSelectBlock: b(I).selectBlock,
1157
- onOpenAiChat: r[1] ||= (e) => b(V).aiChatOpen.value = !0,
1158
- onOpenDesignReference: r[2] ||= (e) => b(V).designReferenceOpen.value = !0
1105
+ })]), p("main", Pt, [g(ne, {
1106
+ viewport: b(R).state.viewport,
1107
+ content: b(R).content.value,
1108
+ "selected-block-id": b(R).state.selectedBlockId,
1109
+ "dark-mode": b(R).state.darkMode,
1110
+ "preview-mode": b(R).state.previewMode,
1111
+ "locked-blocks": b(I)?.lockedBlocks.value ?? void 0,
1112
+ onSelectBlock: b(R).selectBlock,
1113
+ onOpenAiChat: r[1] ||= (e) => b(K).aiChatOpen.value = !0,
1114
+ onOpenDesignReference: r[2] ||= (e) => b(K).designReferenceOpen.value = !0
1159
1115
  }, null, 8, [
1160
1116
  "viewport",
1161
1117
  "content",
@@ -1165,51 +1121,43 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1165
1121
  "locked-blocks",
1166
1122
  "onSelectBlock"
1167
1123
  ])])], 2),
1168
- e.config.branding !== !1 && !b(R).isWhiteLabeled.value ? (s(), v(de, {
1124
+ e.config.branding !== !1 && !b(V).isWhiteLabeled.value ? (s(), v(ue, {
1169
1125
  key: 0,
1170
- "position-class": [b(I).state.previewMode ? "tpl:left-0 tpl:right-0" : b(V).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"]
1126
+ "position-class": [b(R).state.previewMode ? "tpl:left-0 tpl:right-0" : b(K).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"]
1171
1127
  }, null, 8, ["position-class"])) : w("", !0),
1172
1128
  p("div", {
1173
1129
  class: "tpl-sr-only",
1174
1130
  role: "status",
1175
1131
  "aria-live": "polite",
1176
1132
  "aria-atomic": "true",
1177
- "aria-label": b(L).t.landmarks.reorderAnnouncements
1178
- }, c(b(L).keyboardReorder.announcement.value), 9, It),
1179
- T(g(ae, {
1180
- "selected-block": b(I).selectedBlock.value,
1181
- settings: b(I).content.value.settings,
1182
- "shifted-left": b(V).rightPanelOpen.value,
1183
- onUpdateBlock: r[3] ||= (e) => b(I).updateBlock(b(I).selectedBlock.value.id, e),
1184
- onDeleteBlock: r[4] ||= (e) => b(L).blockActions.deleteBlock(b(I).selectedBlock.value.id),
1185
- onDuplicateBlock: r[5] ||= (e) => b(L).blockActions.duplicateBlock(b(I).selectedBlock.value),
1186
- onUpdateSettings: b(I).updateSettings
1133
+ "aria-label": b(B).t.landmarks.reorderAnnouncements
1134
+ }, c(b(B).keyboardReorder.announcement.value), 9, Ft),
1135
+ T(g(te, {
1136
+ "selected-block": b(R).selectedBlock.value,
1137
+ settings: b(R).content.value.settings,
1138
+ "shifted-left": b(K).rightPanelOpen.value,
1139
+ onUpdateBlock: r[3] ||= (e) => b(R).updateBlock(b(R).selectedBlock.value.id, e),
1140
+ onDeleteBlock: r[4] ||= (e) => b(B).blockActions.deleteBlock(b(R).selectedBlock.value.id),
1141
+ onDuplicateBlock: r[5] ||= (e) => b(B).blockActions.duplicateBlock(b(R).selectedBlock.value),
1142
+ onUpdateSettings: b(R).updateSettings
1187
1143
  }, null, 8, [
1188
1144
  "selected-block",
1189
1145
  "settings",
1190
1146
  "shifted-left",
1191
1147
  "onUpdateSettings"
1192
- ]), [[D, !b(I).state.previewMode]]),
1193
- !b(C) && b(k) ? (s(), v(gt, {
1148
+ ]), [[D, !b(R).state.previewMode]]),
1149
+ !b(A) && b(j) ? (s(), v(ht, {
1194
1150
  key: 1,
1195
1151
  ref_key: "cloudPanelsRef",
1196
- ref: h,
1197
- config: d.config,
1198
- editor: b(I),
1199
- core: b(L),
1200
- "panel-state": b(V),
1201
- "plan-config-instance": b(M),
1202
- "test-email": b(B),
1203
- "media-lib": b(te),
1204
- "saved-modules-headless": b(ie),
1205
- "show-save-module-dialog": b(W),
1206
- "save-module-pre-selected-block-id": b(K),
1207
- "show-module-browser-modal": b(G),
1208
- "onUpdate:showSaveModuleDialog": r[6] ||= (e) => W.value = e,
1209
- "onUpdate:saveModulePreSelectedBlockId": r[7] ||= (e) => K.value = e,
1210
- "onUpdate:showModuleBrowserModal": r[8] ||= (e) => G.value = e,
1211
- onSendTestEmail: J,
1212
- onModuleInsert: _e
1152
+ ref: S,
1153
+ config: f.config,
1154
+ editor: b(R),
1155
+ core: b(B),
1156
+ "panel-state": b(K),
1157
+ "plan-config-instance": b(N),
1158
+ "test-email": b(U),
1159
+ "media-lib": b(H),
1160
+ onSendTestEmail: me
1213
1161
  }, null, 8, [
1214
1162
  "config",
1215
1163
  "editor",
@@ -1217,21 +1165,21 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1217
1165
  "panel-state",
1218
1166
  "plan-config-instance",
1219
1167
  "test-email",
1220
- "media-lib",
1221
- "saved-modules-headless",
1222
- "show-save-module-dialog",
1223
- "save-module-pre-selected-block-id",
1224
- "show-module-browser-modal"
1168
+ "media-lib"
1225
1169
  ])) : w("", !0),
1170
+ b(G).isAvailable.value ? (s(), v(b(d), {
1171
+ key: 2,
1172
+ feature: b(G)
1173
+ }, null, 8, ["feature"])) : w("", !0),
1226
1174
  p("div", {
1227
- ref: (e) => b(L).popoverRoot.value = e,
1175
+ ref: (e) => b(B).popoverRoot.value = e,
1228
1176
  class: "tpl-popover-root"
1229
1177
  }, null, 512),
1230
- g(ce),
1231
- g(pe),
1232
- b(he) ? (s(), v(fe, { key: 2 })) : w("", !0)
1233
- ], 46, Nt));
1178
+ g(se),
1179
+ g(fe),
1180
+ b(le) ? (s(), v(de, { key: 3 })) : w("", !0)
1181
+ ], 46, Mt));
1234
1182
  }
1235
- }), [["__scopeId", "data-v-3fc6c906"]]);
1183
+ }), [["__scopeId", "data-v-04940787"]]);
1236
1184
  //#endregion
1237
- export { Lt as default };
1185
+ export { It as default };