@templatical/editor 0.23.0 → 0.24.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 (184) hide show
  1. package/dist/{AiChatSidebar-Bru6-ziQ.js → AiChatSidebar-Nq-jrGaf.js} +2 -2
  2. package/dist/{AiFeatureMenu-CcqjRMFW.js → AiFeatureMenu-tg_zMKMK.js} +3 -3
  3. package/dist/{BlockIssueBadge-Dmj9rVra.js → BlockIssueBadge-Bd94kIiw.js} +2 -2
  4. package/dist/BlockPreviewCanvas-B34aMhHe.js +117 -0
  5. package/dist/{CloudEditor-iK4vkpNm.js → CloudEditor-DjN_9Yso.js} +124 -119
  6. package/dist/{CollaboratorBar-C_1SF7Xf.js → CollaboratorBar-Bhazzcg-.js} +2 -2
  7. package/dist/{ColorPicker-s9GHXjZs.js → ColorPicker-DXGrcJxJ.js} +5 -5
  8. package/dist/{CommentsSidebar-DvNEdugN.js → CommentsSidebar-ku1kt10u.js} +3 -3
  9. package/dist/{CountdownBlock-J_Q9JRQM.js → CountdownBlock-CN9Lc23W.js} +1 -1
  10. package/dist/{CountdownToolbar-DPRcv3Fu.js → CountdownToolbar-VEsIyKV6.js} +3 -3
  11. package/dist/{DesignReferenceSidebar-BxPo0zyx.js → DesignReferenceSidebar-C4pTMzQE.js} +3 -3
  12. package/dist/{IssuesPanel-CEnEGFtd.js → IssuesPanel-CEfzOpS_.js} +2 -2
  13. package/dist/MergeTagModeToggle-C3V2xGAg.js +180 -0
  14. package/dist/{MergeTagSuggestion-D9eCryMC.js → MergeTagSuggestion-Dn8ww9nV.js} +2 -2
  15. package/dist/{NumberWithSuffix-CCPN_oCh.js → NumberWithSuffix-BGocZkj9.js} +1 -1
  16. package/dist/{ParagraphEditor-MKJYyWN9.js → ParagraphEditor-D-fz0kUb.js} +19 -19
  17. package/dist/{RichTextEditorContent-FbnWsh46.js → RichTextEditorContent-DydrqFts.js} +5 -5
  18. package/dist/{SaveBlockDialog-CFAJHP3v.js → SaveBlockDialog-BDDFbAWF.js} +6 -6
  19. package/dist/{SavedBlocksBrowserModal-C_-Xcm0Q.js → SavedBlocksBrowserModal-Djik_fJh.js} +6 -6
  20. package/dist/{SavedBlocksPanels-CRf7zzFn.js → SavedBlocksPanels-CxemyPxL.js} +1 -1
  21. package/dist/{SavedBlocksPickBar-C1FTJP-I.js → SavedBlocksPickBar-Dlhipmob.js} +2 -2
  22. package/dist/{SnapshotHistory-DWlQ3Eh0.js → SnapshotHistory-DPbM4ons.js} +4 -4
  23. package/dist/{TemplateScoringPanel-ifGGGWs5.js → TemplateScoringPanel-BFYgweDX.js} +2 -2
  24. package/dist/{TestEmailModal-D90-3Yex.js → TestEmailModal-IZfwgya-.js} +71 -59
  25. package/dist/{TestEmailPanel-B0u_Yd3X.js → TestEmailPanel-QEEx_PkN.js} +1 -1
  26. package/dist/{TitleEditor-DzsPxKv4.js → TitleEditor-BB4YlIBF.js} +10 -10
  27. package/dist/{TplModal-CykwWFhF.js → TplModal-DPH4vV8M.js} +3 -3
  28. package/dist/{blockTypeIcons-CpKkI47V.js → blockTypeIcons-Wzd7W_2x.js} +1 -1
  29. package/dist/bundle-stats.json +6 -6
  30. package/dist/{ca-D47BxSGu.js → ca-CO4nq6TX.js} +8 -1
  31. package/dist/cdn/chunks/{AiChatSidebar-BMnsF8G6.js → AiChatSidebar-CN-0DIuA.js} +11 -11
  32. package/dist/cdn/chunks/{AiChatSidebar-BMnsF8G6.js.map → AiChatSidebar-CN-0DIuA.js.map} +1 -1
  33. package/dist/cdn/chunks/{AiFeatureMenu-hWgWQg11.js → AiFeatureMenu-B5pV6Iux.js} +8 -8
  34. package/dist/cdn/chunks/{AiFeatureMenu-hWgWQg11.js.map → AiFeatureMenu-B5pV6Iux.js.map} +1 -1
  35. package/dist/cdn/chunks/{BlockIssueBadge-Da4yR-mh.js → BlockIssueBadge-aanOjeyi.js} +4 -4
  36. package/dist/cdn/chunks/{BlockIssueBadge-Da4yR-mh.js.map → BlockIssueBadge-aanOjeyi.js.map} +1 -1
  37. package/dist/cdn/chunks/BlockPreviewCanvas-Dc4F4HzY.js +119 -0
  38. package/dist/cdn/chunks/BlockPreviewCanvas-Dc4F4HzY.js.map +1 -0
  39. package/dist/cdn/chunks/{CloudEditor-S8zLHtKb.js → CloudEditor-CeKaWWO5.js} +129 -124
  40. package/dist/cdn/chunks/CloudEditor-CeKaWWO5.js.map +1 -0
  41. package/dist/cdn/chunks/{CollaboratorBar-mkJVAkSh.js → CollaboratorBar-CEdKr0A2.js} +4 -4
  42. package/dist/cdn/chunks/{CollaboratorBar-mkJVAkSh.js.map → CollaboratorBar-CEdKr0A2.js.map} +1 -1
  43. package/dist/cdn/chunks/{ColorPicker-DZSzZ5ZP.js → ColorPicker-BckwEfcN.js} +7 -7
  44. package/dist/cdn/chunks/{ColorPicker-DZSzZ5ZP.js.map → ColorPicker-BckwEfcN.js.map} +1 -1
  45. package/dist/cdn/chunks/{CommentsSidebar-DHdRiGPX.js → CommentsSidebar-6PfpJKh-.js} +18 -18
  46. package/dist/cdn/chunks/{CommentsSidebar-DHdRiGPX.js.map → CommentsSidebar-6PfpJKh-.js.map} +1 -1
  47. package/dist/cdn/chunks/{CountdownBlock-Bffpoppw.js → CountdownBlock-CoBmvQKv.js} +2 -2
  48. package/dist/cdn/chunks/{CountdownBlock-Bffpoppw.js.map → CountdownBlock-CoBmvQKv.js.map} +1 -1
  49. package/dist/cdn/chunks/{CountdownToolbar-DAnmIZjq.js → CountdownToolbar-CdV8RTQu.js} +4 -4
  50. package/dist/cdn/chunks/{CountdownToolbar-DAnmIZjq.js.map → CountdownToolbar-CdV8RTQu.js.map} +1 -1
  51. package/dist/cdn/chunks/{DesignReferenceSidebar-CM-k15pd.js → DesignReferenceSidebar-BjlaP69l.js} +90 -90
  52. package/dist/cdn/chunks/{DesignReferenceSidebar-CM-k15pd.js.map → DesignReferenceSidebar-BjlaP69l.js.map} +1 -1
  53. package/dist/cdn/chunks/{IssuesPanel-D80JedOj.js → IssuesPanel-CkkEnhxZ.js} +9 -9
  54. package/dist/cdn/chunks/{IssuesPanel-D80JedOj.js.map → IssuesPanel-CkkEnhxZ.js.map} +1 -1
  55. package/dist/cdn/chunks/MergeTagModeToggle-DmtR300G.js +127 -0
  56. package/dist/cdn/chunks/MergeTagModeToggle-DmtR300G.js.map +1 -0
  57. package/dist/cdn/chunks/{MergeTagSuggestion-BM349_QH.js → MergeTagSuggestion-Cvlkw_PM.js} +2 -2
  58. package/dist/cdn/chunks/{MergeTagSuggestion-BM349_QH.js.map → MergeTagSuggestion-Cvlkw_PM.js.map} +1 -1
  59. package/dist/cdn/chunks/{NumberWithSuffix-CjlVNIEe.js → NumberWithSuffix-BOcMN26z.js} +2 -2
  60. package/dist/cdn/chunks/{NumberWithSuffix-CjlVNIEe.js.map → NumberWithSuffix-BOcMN26z.js.map} +1 -1
  61. package/dist/cdn/chunks/{ParagraphEditor-J-1RLyi7.js → ParagraphEditor-CX1yks4N.js} +35 -35
  62. package/dist/cdn/chunks/{ParagraphEditor-J-1RLyi7.js.map → ParagraphEditor-CX1yks4N.js.map} +1 -1
  63. package/dist/cdn/chunks/{RichTextEditorContent-BbdgJqWM.js → RichTextEditorContent-z9s7qxs3.js} +7 -7
  64. package/dist/cdn/chunks/{RichTextEditorContent-BbdgJqWM.js.map → RichTextEditorContent-z9s7qxs3.js.map} +1 -1
  65. package/dist/cdn/chunks/{SaveBlockDialog-Bi_Z3kuA.js → SaveBlockDialog-D2CtW4lC.js} +8 -8
  66. package/dist/cdn/chunks/{SaveBlockDialog-Bi_Z3kuA.js.map → SaveBlockDialog-D2CtW4lC.js.map} +1 -1
  67. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CesYxFsH.js → SavedBlocksBrowserModal-DdUKJzzF.js} +8 -8
  68. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CesYxFsH.js.map → SavedBlocksBrowserModal-DdUKJzzF.js.map} +1 -1
  69. package/dist/cdn/chunks/{SavedBlocksPanels-BsSpJwrW.js → SavedBlocksPanels-1kVbqdpc.js} +2 -2
  70. package/dist/cdn/chunks/{SavedBlocksPanels-BsSpJwrW.js.map → SavedBlocksPanels-1kVbqdpc.js.map} +1 -1
  71. package/dist/cdn/chunks/{SavedBlocksPickBar-CduR1Cpb.js → SavedBlocksPickBar--noDJIyN.js} +6 -6
  72. package/dist/cdn/chunks/{SavedBlocksPickBar-CduR1Cpb.js.map → SavedBlocksPickBar--noDJIyN.js.map} +1 -1
  73. package/dist/cdn/chunks/{SnapshotHistory-DO-gzr3i.js → SnapshotHistory-DFuNJRc9.js} +8 -8
  74. package/dist/cdn/chunks/{SnapshotHistory-DO-gzr3i.js.map → SnapshotHistory-DFuNJRc9.js.map} +1 -1
  75. package/dist/cdn/chunks/{TemplateScoringPanel-CTk8WwxU.js → TemplateScoringPanel-DG1dAjQk.js} +52 -52
  76. package/dist/cdn/chunks/{TemplateScoringPanel-CTk8WwxU.js.map → TemplateScoringPanel-DG1dAjQk.js.map} +1 -1
  77. package/dist/cdn/chunks/TestEmailModal-CiPfOn2v.js +174 -0
  78. package/dist/cdn/chunks/TestEmailModal-CiPfOn2v.js.map +1 -0
  79. package/dist/cdn/chunks/{TestEmailPanel-048m0kxX.js → TestEmailPanel-saOfnpjz.js} +2 -2
  80. package/dist/cdn/chunks/{TestEmailPanel-048m0kxX.js.map → TestEmailPanel-saOfnpjz.js.map} +1 -1
  81. package/dist/cdn/chunks/{TitleEditor-J1vgU_J6.js → TitleEditor-08KM_VzZ.js} +18 -18
  82. package/dist/cdn/chunks/{TitleEditor-J1vgU_J6.js.map → TitleEditor-08KM_VzZ.js.map} +1 -1
  83. package/dist/cdn/chunks/{TplModal-BN53d9Se.js → TplModal-Cu4tBBnF.js} +4 -4
  84. package/dist/cdn/chunks/{TplModal-BN53d9Se.js.map → TplModal-Cu4tBBnF.js.map} +1 -1
  85. package/dist/cdn/chunks/blockTypeIcons-DvohkXqi.js +21 -0
  86. package/dist/cdn/chunks/{blockTypeIcons-etMMQoVv.js.map → blockTypeIcons-DvohkXqi.js.map} +1 -1
  87. package/dist/cdn/chunks/{ca-D47BxSGu.js → ca-CO4nq6TX.js} +9 -2
  88. package/dist/cdn/chunks/{ca-D47BxSGu.js.map → ca-CO4nq6TX.js.map} +1 -1
  89. package/dist/cdn/chunks/{cloud-F-aVi9hj.js → cloud-C2I0P9qj.js} +2 -2
  90. package/dist/cdn/chunks/{cloud-F-aVi9hj.js.map → cloud-C2I0P9qj.js.map} +1 -1
  91. package/dist/{de-CnnxBwh7.js → cdn/chunks/de-CUeaFJph.js} +10 -1
  92. package/dist/cdn/chunks/{de-CnnxBwh7.js.map → de-CUeaFJph.js.map} +1 -1
  93. package/dist/{en-5gW-bYy2.js → cdn/chunks/en-zCYIPAL5.js} +10 -1
  94. package/dist/cdn/chunks/{en-5gW-bYy2.js.map → en-zCYIPAL5.js.map} +1 -1
  95. package/dist/cdn/chunks/{es-sQ9SdI0l.js → es-BSiH7YkP.js} +9 -2
  96. package/dist/cdn/chunks/{es-sQ9SdI0l.js.map → es-BSiH7YkP.js.map} +1 -1
  97. package/dist/cdn/chunks/{extensions-C49c51P1.js → extensions-DBWF_lxx.js} +16 -16
  98. package/dist/cdn/chunks/{extensions-C49c51P1.js.map → extensions-DBWF_lxx.js.map} +1 -1
  99. package/dist/{fr-DBZ5w21C.js → cdn/chunks/fr-DTVJ3det.js} +10 -1
  100. package/dist/cdn/chunks/fr-DTVJ3det.js.map +1 -0
  101. package/dist/cdn/chunks/{icons-CYWw8Xfp.js → icons-Cqxvwgz7.js} +35 -14
  102. package/dist/cdn/chunks/icons-Cqxvwgz7.js.map +1 -0
  103. package/dist/cdn/chunks/keys-B5uoP9P7.js +12 -0
  104. package/dist/cdn/chunks/keys-B5uoP9P7.js.map +1 -0
  105. package/dist/cdn/chunks/{nl-DOL7Fnfo.js → nl-BqSquFS3.js} +9 -2
  106. package/dist/cdn/chunks/nl-BqSquFS3.js.map +1 -0
  107. package/dist/{pt-BR-DRCdHX1d.js → cdn/chunks/pt-BR-CMljK37h.js} +10 -1
  108. package/dist/cdn/chunks/{pt-BR-DRCdHX1d.js.map → pt-BR-CMljK37h.js.map} +1 -1
  109. package/dist/cdn/chunks/{src-BKI1x1k7.js → src-BCJna-6p.js} +183 -165
  110. package/dist/cdn/chunks/{src-BKI1x1k7.js.map → src-BCJna-6p.js.map} +1 -1
  111. package/dist/cdn/chunks/{src-SluTVSz_.js → src-C45kfA2t.js} +17 -17
  112. package/dist/cdn/chunks/{src-SluTVSz_.js.map → src-C45kfA2t.js.map} +1 -1
  113. package/dist/cdn/chunks/{src-CzoMNRq4.js → src-XQmI_Xs1.js} +33 -33
  114. package/dist/cdn/chunks/{src-CzoMNRq4.js.map → src-XQmI_Xs1.js.map} +1 -1
  115. package/dist/cdn/chunks/{src-CM0gCvAS.js → src-YVsPFLNJ.js} +251 -251
  116. package/dist/cdn/chunks/{src-CM0gCvAS.js.map → src-YVsPFLNJ.js.map} +1 -1
  117. package/dist/cdn/chunks/{styles-BbfU2w9R.js → styles-BohMfIBd.js} +700 -693
  118. package/dist/cdn/chunks/styles-BohMfIBd.js.map +1 -0
  119. package/dist/cdn/chunks/{tiptap-DUTbZTeR.js → tiptap-DRKu__AX.js} +5 -5
  120. package/dist/cdn/chunks/{tiptap-DUTbZTeR.js.map → tiptap-DRKu__AX.js.map} +1 -1
  121. package/dist/cdn/chunks/{useCloudI18n-BjNENqkM.js → useCloudI18n-Bem8DUjH.js} +2 -2
  122. package/dist/cdn/chunks/{useCloudI18n-BjNENqkM.js.map → useCloudI18n-Bem8DUjH.js.map} +1 -1
  123. package/dist/cdn/chunks/{useEditorCore-CzMhD6Gd.js → useEditorCore-B_vwuKdI.js} +434 -414
  124. package/dist/cdn/chunks/useEditorCore-B_vwuKdI.js.map +1 -0
  125. package/dist/cdn/chunks/{useI18n-8Wd7G-cq.js → useI18n-graz19nI.js} +2 -2
  126. package/dist/cdn/chunks/{useI18n-8Wd7G-cq.js.map → useI18n-graz19nI.js.map} +1 -1
  127. package/dist/cdn/chunks/{useMergeTag-C7G31KV-.js → useMergeTag-rTzAFMlr.js} +4 -4
  128. package/dist/cdn/chunks/{useMergeTag-C7G31KV-.js.map → useMergeTag-rTzAFMlr.js.map} +1 -1
  129. package/dist/cdn/chunks/{usePopoverPosition-Bx0QewTv.js → usePopoverPosition-BaFxLP3w.js} +2 -2
  130. package/dist/cdn/chunks/{usePopoverPosition-Bx0QewTv.js.map → usePopoverPosition-BaFxLP3w.js.map} +1 -1
  131. package/dist/cdn/editor.css +1 -1
  132. package/dist/cdn/editor.js +144 -139
  133. package/dist/cdn/editor.js.map +1 -1
  134. package/dist/{cloud-CeZPgo1V.js → cloud-DsUct4Zq.js} +1 -1
  135. package/dist/{cdn/chunks/de-CnnxBwh7.js → de-CUeaFJph.js} +8 -3
  136. package/dist/{dist-CL_CfQ3Q.js → dist-9uhI32Q4.js} +2 -2
  137. package/dist/{dist-3DHaYEiT.js → dist-BAkGuPYm.js} +2 -2
  138. package/dist/dist-BIYm-U9x.js +5 -0
  139. package/dist/{dist-3HenmYIg.js → dist-ByJVlKWy.js} +1 -1
  140. package/dist/{dist-DKWoZJAV.js → dist-C5tigvDF.js} +2 -2
  141. package/dist/{dist-bivrM-nS.js → dist-CQiAZlTt.js} +2 -2
  142. package/dist/{dist-Ih7ejWzn.js → dist-C_kAE1sC.js} +2 -2
  143. package/dist/{dist-CclnU_v0.js → dist-CkCVlKj_.js} +2 -2
  144. package/dist/{dist-B_etKYyh.js → dist-DFO896yT.js} +5 -5
  145. package/dist/{dist-BJbqgyPn.js → dist-DPHqs0Yh.js} +105 -87
  146. package/dist/{dist-DOtLGnLr.js → dist-DWu9QWFl.js} +2 -2
  147. package/dist/{dist-BCnJcAQc.js → dist-IGetXrbO.js} +2 -2
  148. package/dist/dist-JXOq1hib.js +5 -0
  149. package/dist/{cdn/chunks/en-5gW-bYy2.js → en-zCYIPAL5.js} +8 -3
  150. package/dist/{es-sQ9SdI0l.js → es-BSiH7YkP.js} +8 -1
  151. package/dist/{extensions-3870a_3R.js → extensions-C0DXnYdA.js} +13 -13
  152. package/dist/{cdn/chunks/fr-DBZ5w21C.js → fr-DTVJ3det.js} +8 -3
  153. package/dist/keys-BVlG5Ozc.js +10 -0
  154. package/dist/{nl-DOL7Fnfo.js → nl-BqSquFS3.js} +8 -1
  155. package/dist/{cdn/chunks/pt-BR-DRCdHX1d.js → pt-BR-CMljK37h.js} +8 -3
  156. package/dist/style.css +1 -1
  157. package/dist/{styles-BWTIgN5L.js → styles-BTTD0Je4.js} +856 -849
  158. package/dist/templatical-editor.js +92 -87
  159. package/dist/{useCloudI18n-BmiygEM4.js → useCloudI18n-DGr3b2SX.js} +1 -1
  160. package/dist/{useEditorCore-CuMMIfiS.js → useEditorCore-DOrGex_t.js} +917 -897
  161. package/dist/{useI18n-D2L9Mkik.js → useI18n-BhAejA-x.js} +1 -1
  162. package/dist/{useMergeTag-BTdDq5DC.js → useMergeTag-Ce95YIOO.js} +3 -3
  163. package/dist/{usePopoverPosition-BO2LNy5n.js → usePopoverPosition-vjKJaqJf.js} +1 -1
  164. package/package.json +20 -20
  165. package/dist/BlockPreviewCanvas-MD9BGuXV.js +0 -115
  166. package/dist/ViewportToggle-BjmbNoao.js +0 -97
  167. package/dist/cdn/chunks/BlockPreviewCanvas-eASrdFSN.js +0 -117
  168. package/dist/cdn/chunks/BlockPreviewCanvas-eASrdFSN.js.map +0 -1
  169. package/dist/cdn/chunks/CloudEditor-S8zLHtKb.js.map +0 -1
  170. package/dist/cdn/chunks/TestEmailModal-CCWEVrE2.js +0 -162
  171. package/dist/cdn/chunks/TestEmailModal-CCWEVrE2.js.map +0 -1
  172. package/dist/cdn/chunks/ViewportToggle-CFmF-N4i.js +0 -66
  173. package/dist/cdn/chunks/ViewportToggle-CFmF-N4i.js.map +0 -1
  174. package/dist/cdn/chunks/blockTypeIcons-etMMQoVv.js +0 -21
  175. package/dist/cdn/chunks/fr-DBZ5w21C.js.map +0 -1
  176. package/dist/cdn/chunks/icons-CYWw8Xfp.js.map +0 -1
  177. package/dist/cdn/chunks/keys-D7kUmfpE.js +0 -12
  178. package/dist/cdn/chunks/keys-D7kUmfpE.js.map +0 -1
  179. package/dist/cdn/chunks/nl-DOL7Fnfo.js.map +0 -1
  180. package/dist/cdn/chunks/styles-BbfU2w9R.js.map +0 -1
  181. package/dist/cdn/chunks/useEditorCore-CzMhD6Gd.js.map +0 -1
  182. package/dist/dist-CcQLJeWV.js +0 -5
  183. package/dist/dist-DerdmERj.js +0 -5
  184. package/dist/keys-CHPcp-Nz.js +0 -10
@@ -1,27 +1,27 @@
1
1
  import { $ as e, A as t, H as n, J as r, M as i, N as a, P as o, V as s, Z as c, _ as l, b as u, ct as d, f, g as p, h as m, it as h, j as g, l as _, m as v, n as y, ot as b, p as x, s as S, st as C, u as w, v as T, x as E, y as D, z as O } from "./draggable-D840DIZB.js";
2
2
  import { t as k } from "./timeouts-Bmi_yePw.js";
3
- import { F as A } from "./src-BKI1x1k7.js";
4
- import { T as j, b as M, j as ee, t as N } from "./useEditorCore-CzMhD6Gd.js";
3
+ import { z as A } from "./src-BCJna-6p.js";
4
+ import { T as j, b as M, j as ee, t as N } from "./useEditorCore-B_vwuKdI.js";
5
5
  import { _ as P } from "./dist-CiBEt0VR.js";
6
6
  import { t as F } from "./dist-CxTt8FRE.js";
7
- import { A as I, F as te, c as L, r as R, s as z, t as B, u as ne } from "./keys-D7kUmfpE.js";
8
- import { t as V } from "./useI18n-8Wd7G-cq.js";
9
- import { At as H, Dt as U, F as W, Ft as G, P as K, et as q, j as J, rt as Y, u as re, w as ie } from "./icons-CYWw8Xfp.js";
7
+ import { I, c as L, j as te, r as R, s as z, t as B, u as ne } from "./keys-B5uoP9P7.js";
8
+ import { t as V } from "./useI18n-graz19nI.js";
9
+ import { F as H, I as U, It as W, M as G, Ot as K, T as q, it as J, jt as Y, tt as re, u as ie } from "./icons-Cqxvwgz7.js";
10
10
  import { t as ae } from "./_plugin-vue_export-helper-B3ysoDQm.js";
11
- import { n as X } from "./useCloudI18n-BjNENqkM.js";
12
- import { a as Z, c as oe, d as Q, f as se, i as ce, l as le, m as ue, n as de, o as fe, p as pe, r as me, s as he, t as ge, u as _e } from "./styles-BbfU2w9R.js";
13
- import { d as $ } from "./ColorPicker-DZSzZ5ZP.js";
14
- import { t as ve } from "./ViewportToggle-CFmF-N4i.js";
15
- import { C as ye, a as be, c as xe, d as Se, f as Ce, g as we, h as Te, i as Ee, l as De, n as Oe, o as ke, p as Ae, r as je, s as Me, t as Ne, u as Pe, v as Fe, y as Ie } from "./cloud-F-aVi9hj.js";
11
+ import { n as X } from "./useCloudI18n-Bem8DUjH.js";
12
+ import { a as Z, c as oe, d as Q, f as se, i as ce, l as le, m as ue, n as de, o as fe, p as pe, r as me, s as he, t as ge, u as _e } from "./styles-BohMfIBd.js";
13
+ import { d as $ } from "./ColorPicker-BckwEfcN.js";
14
+ import { n as ve, t as ye } from "./MergeTagModeToggle-DmtR300G.js";
15
+ import { C as be, a as xe, c as Se, d as Ce, f as we, g as Te, h as Ee, i as De, l as Oe, n as ke, o as Ae, p as je, r as Me, s as Ne, t as Pe, u as Fe, v as Ie, y as Le } from "./cloud-C2I0P9qj.js";
16
16
  //#region src/cloud/composables/useSnapshotPreview.ts
17
- function Le(t) {
17
+ function Re(t) {
18
18
  let { authManager: n, editor: i, history: a, conditionPreview: o, autoSave: s, onError: l } = t, u = e(null), d = c(null), p = c(null), m = !1;
19
19
  r(() => {
20
20
  m = !0;
21
21
  });
22
22
  let h = f(() => d.value !== null), g = f(() => u.value?.snapshots.value ?? []), _ = f(() => u.value?.isLoading.value ?? !1), v = f(() => u.value?.isRestoring.value ?? !1);
23
23
  function y() {
24
- i.state.template?.id && !u.value && (u.value = Me({
24
+ i.state.template?.id && !u.value && (u.value = Ne({
25
25
  authManager: n,
26
26
  templateId: i.state.template.id,
27
27
  onRestore: b,
@@ -73,7 +73,7 @@ function Le(t) {
73
73
  }
74
74
  //#endregion
75
75
  //#region src/cloud/composables/useCloudPanelState.ts
76
- function Re() {
76
+ function ze() {
77
77
  let e = c(null), t = f({
78
78
  get: () => e.value === "ai-chat",
79
79
  set: (t) => e.value = t ? "ai-chat" : null
@@ -117,7 +117,7 @@ function Re() {
117
117
  }
118
118
  //#endregion
119
119
  //#region src/cloud/composables/useCollabUndoWarning.ts
120
- function ze(e) {
120
+ function Be(e) {
121
121
  let { isCollaborationEnabled: t, getCollaboratorCount: n, canUndo: r } = e, i = c(!1), a = c(!1), { start: o } = P(() => {
122
122
  a.value = !1;
123
123
  }, k, { immediate: !1 });
@@ -131,7 +131,7 @@ function ze(e) {
131
131
  }
132
132
  //#endregion
133
133
  //#region src/cloud/composables/useCloudFeatureFlags.ts
134
- function Be(e) {
134
+ function Ve(e) {
135
135
  let { planConfigInstance: t, aiConfig: n, editor: r } = e, i = f(() => t.hasFeature("ai_generation") && n.hasAnyMenuFeature.value), a = f(() => t.hasFeature("test_email")), o = f(() => !!r.state.template?.id), s = f(() => t.hasFeature("white_label")), l = f(() => t.config.value?.limits.max_templates ?? null), u = f(() => t.config.value?.template_count ?? 0), d = c(!1), p = c("idle"), m = c(""), { start: h } = P(() => {
136
136
  p.value = "idle";
137
137
  }, 3e3, { immediate: !1 });
@@ -150,7 +150,7 @@ function Be(e) {
150
150
  }
151
151
  //#endregion
152
152
  //#region src/cloud/composables/useCloudMediaLibrary.ts
153
- function Ve(e) {
153
+ function He(e) {
154
154
  let { onRequestMedia: t, mediaLibraryOpen: n, mediaLibraryAccept: i, authManager: a, getMediaConfig: o, onError: s } = e, c = null;
155
155
  function l(e) {
156
156
  return {
@@ -184,7 +184,7 @@ function Ve(e) {
184
184
  let t = f(e);
185
185
  if (t) return s?.(t), null;
186
186
  try {
187
- let { MediaApiClient: t } = await import("./src-CzoMNRq4.js");
187
+ let { MediaApiClient: t } = await import("./src-XQmI_Xs1.js");
188
188
  return l(await new t(a).uploadMedia(e));
189
189
  } catch (e) {
190
190
  return s?.(e), null;
@@ -212,30 +212,30 @@ function Ve(e) {
212
212
  }
213
213
  //#endregion
214
214
  //#region src/cloud/composables/useCloudInitialization.ts
215
- function He(e) {
216
- let { config: t, translations: n, fontsManager: r, emit: i, getCommentsSidebar: o } = e, s = c(!0), l = c(!1), u = c(null), d = !1, p = { value: null }, m = null, h = null, g = new ye({
215
+ function Ue(e) {
216
+ let { config: t, translations: n, fontsManager: r, emit: i, getCommentsSidebar: o } = e, s = c(!0), l = c(!1), u = c(null), d = !1, p = { value: null }, m = null, h = null, g = new be({
217
217
  ...t.auth,
218
218
  onError: t.onError
219
- }), _ = je({
219
+ }), _ = Me({
220
220
  authManager: g,
221
221
  onError: t.onError
222
- }), v = c(/* @__PURE__ */ new Map()), y = Fe({
222
+ }), v = c(/* @__PURE__ */ new Map()), y = Ie({
223
223
  authManager: g,
224
224
  defaultFontFamily: t.fonts?.defaultFont,
225
225
  templateDefaults: t.templateDefaults,
226
226
  onError: t.onError,
227
227
  lockedBlocks: v
228
- }), b = De({
228
+ }), b = Oe({
229
229
  authManager: g,
230
230
  onError: t.onError
231
231
  });
232
- t.mcp?.enabled && Ne({
232
+ t.mcp?.enabled && Pe({
233
233
  editor: y,
234
234
  channel: b.channel,
235
235
  onOperation: t.mcp.onOperation
236
236
  });
237
237
  let x = null;
238
- t.collaboration?.enabled && (x = Se({
238
+ t.collaboration?.enabled && (x = Ce({
239
239
  authManager: g,
240
240
  editor: y,
241
241
  channel: b.channel,
@@ -246,7 +246,7 @@ function He(e) {
246
246
  onBlockUnlocked: t.collaboration.onBlockUnlocked
247
247
  }), O(() => x.lockedBlocks.value, (e) => {
248
248
  v.value = e;
249
- }, { immediate: !0 }), Pe(y, x));
249
+ }, { immediate: !0 }), Fe(y, x));
250
250
  let S = f(() => !!t.collaboration?.enabled && _.hasFeature("collaboration")), C = N({
251
251
  editor: y,
252
252
  config: {
@@ -283,13 +283,13 @@ function He(e) {
283
283
  keyboardOptions: { onBeforeUndo: () => h?.showCollabUndoWarning() },
284
284
  editorRoot: e.editorRoot,
285
285
  containerEl: e.containerEl
286
- }), w = ze({
286
+ }), w = Be({
287
287
  isCollaborationEnabled: S,
288
288
  getCollaboratorCount: () => x?.collaborators.value.length ?? 0,
289
289
  canUndo: C.history.canUndo
290
290
  });
291
291
  h = w;
292
- let T = Le({
292
+ let T = Re({
293
293
  authManager: g,
294
294
  editor: y,
295
295
  history: C.history,
@@ -298,11 +298,11 @@ function He(e) {
298
298
  onError: t.onError
299
299
  });
300
300
  m = T;
301
- let E = Re(), D = we(t.ai), k = Be({
301
+ let E = ze(), D = Te(t.ai), k = Ve({
302
302
  planConfigInstance: _,
303
303
  aiConfig: D,
304
304
  editor: y
305
- }), A = Ve({
305
+ }), A = He({
306
306
  onRequestMedia: t.onRequestMedia,
307
307
  mediaLibraryOpen: E.mediaLibraryOpen,
308
308
  mediaLibraryAccept: E.mediaLibraryAccept,
@@ -314,15 +314,15 @@ function He(e) {
314
314
  onBlockMove: y.moveBlock,
315
315
  onBlockAdd: y.addBlock
316
316
  });
317
- let M = Ee({
317
+ let M = De({
318
318
  authManager: g,
319
319
  getFontsConfig: () => t.fonts,
320
320
  canUseCustomFonts: () => _.hasFeature("custom_fonts")
321
- }), P = ke({
321
+ }), P = Ae({
322
322
  authManager: g,
323
323
  isAuthReady: l
324
324
  }), F = t.testEmail ?? null, L = se({
325
- provider: F ?? be({
325
+ provider: F ?? xe({
326
326
  authManager: g,
327
327
  getTemplateId: () => y.state.template?.id ?? null,
328
328
  save: () => y.save(),
@@ -339,7 +339,7 @@ function He(e) {
339
339
  }),
340
340
  onError: t.onError,
341
341
  isAvailable: F ? () => !0 : () => P.isEnabled.value && k.canSendTestEmail.value && k.hasTemplateSaved.value
342
- }), V = Ae({
342
+ }), V = je({
343
343
  authManager: g,
344
344
  getTemplateId: () => y.state.template?.id ?? null,
345
345
  getSocketId: () => b.getSocketId(),
@@ -348,16 +348,16 @@ function He(e) {
348
348
  isAuthReady: l,
349
349
  hasCommentingFeature: () => t.commenting !== !1 && _.hasFeature("commenting")
350
350
  });
351
- Ce({
351
+ we({
352
352
  comments: V,
353
353
  channel: b.channel
354
354
  });
355
355
  let H = typeof t.savedBlocks == "object" && t.savedBlocks !== null ? t.savedBlocks : null, U = ue({
356
- provider: H ?? xe(g),
356
+ provider: H ?? Se(g),
357
357
  editor: y,
358
358
  onError: t.onError,
359
359
  isAvailable: H ? () => !0 : () => t.savedBlocks !== !1 && _.hasFeature("saved_modules")
360
- }), W = Te({
360
+ }), W = Ee({
361
361
  authManager: g,
362
362
  getTemplateId: () => y.state.template?.id ?? null
363
363
  });
@@ -366,7 +366,7 @@ function He(e) {
366
366
  o()?.filterByBlock(e);
367
367
  });
368
368
  }
369
- a(I, A.handleRequestMedia), a(R, g), a(B, D), a(ne, V), a(te, W), a(z, {
369
+ a(te, A.handleRequestMedia), a(R, g), a(B, D), a(ne, V), a(I, W), a(z, {
370
370
  plan: _,
371
371
  ai: D,
372
372
  comments: {
@@ -387,7 +387,7 @@ function He(e) {
387
387
  try {
388
388
  if (await g.initialize(), d) return;
389
389
  l.value = !0;
390
- let e = await Oe({ authManager: g });
390
+ let e = await ke({ authManager: g });
391
391
  if (d) return;
392
392
  if (!e.api.ok) throw Error("Health check failed: API is not reachable");
393
393
  if (!e.auth.ok) throw Error(`Health check failed: authentication error${e.auth.error ? ` - ${e.auth.error}` : ""}`);
@@ -437,7 +437,7 @@ function He(e) {
437
437
  }
438
438
  //#endregion
439
439
  //#region src/utils/preRenderCustomBlocks.ts
440
- async function Ue(e, t) {
440
+ async function We(e, t) {
441
441
  let n = async (e) => {
442
442
  if (A(e)) {
443
443
  let n = e;
@@ -456,10 +456,10 @@ async function Ue(e, t) {
456
456
  }
457
457
  //#endregion
458
458
  //#region src/cloud/composables/useCloudLifecycle.ts
459
- function We(e) {
459
+ function Ge(e) {
460
460
  let { config: t, editor: n, websocket: r, planConfigInstance: i, snapshotPreview: a, core: o, exporter: s, featureFlags: c, isDestroyed: l } = e;
461
461
  function u() {
462
- return Ie(i.config.value.websocket);
462
+ return Le(i.config.value.websocket);
463
463
  }
464
464
  async function d(e) {
465
465
  let i = await n.create(e);
@@ -472,7 +472,7 @@ function We(e) {
472
472
  async function p() {
473
473
  c.isSaveExporting.value = !0, c.saveStatus.value = "idle";
474
474
  try {
475
- if (await Ue(n.content.value, o.registry), l()) throw Error("Component unmounted during save");
475
+ if (await We(n.content.value, o.registry), l()) throw Error("Component unmounted during save");
476
476
  let e = await n.save();
477
477
  if (l()) throw Error("Component unmounted during save");
478
478
  a.initSnapshotHistory(), a.snapshotHistoryInstance.value?.loadSnapshots();
@@ -499,7 +499,7 @@ function We(e) {
499
499
  }
500
500
  //#endregion
501
501
  //#region src/cloud/composables/useCloudSaveGate.ts
502
- function Ge(e) {
502
+ function Ke(e) {
503
503
  let t = c(!1), n = null, r = f(() => e.planConfig.value?.accessibility?.blockOnError === !0), i = f(() => r.value ? e.issues.value.filter((e) => e.severity === "error") : []), a = f(() => i.value.length > 0);
504
504
  async function o(e) {
505
505
  return a.value ? (n = e, t.value = !0, !1) : (await e(), !0);
@@ -522,7 +522,7 @@ function Ge(e) {
522
522
  }
523
523
  //#endregion
524
524
  //#region src/cloud/components/CloudSaveGateModal.vue?vue&type=script&setup=true&lang.ts
525
- var Ke = ["aria-label"], qe = { 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)]" }, Je = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ye = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Xe = { class: "tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ze = { 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" }, Qe = { class: "tpl:text-xs tpl:text-[var(--tpl-text)]" }, $e = { class: "tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, et = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, tt = /* @__PURE__ */ E({
525
+ var qe = ["aria-label"], Je = { 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)]" }, Ye = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Xe = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Ze = { class: "tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Qe = { 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" }, $e = { class: "tpl:text-xs tpl:text-[var(--tpl-text)]" }, et = { class: "tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, tt = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, nt = /* @__PURE__ */ E({
526
526
  __name: "CloudSaveGateModal",
527
527
  props: {
528
528
  open: { type: Boolean },
@@ -544,18 +544,18 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
544
544
  "aria-label": h(r).saveGate.title,
545
545
  class: "tpl:fixed tpl:inset-0 tpl:z-50 tpl:flex tpl:items-center tpl:justify-center tpl:bg-black/40 tpl:p-6",
546
546
  onClick: a[2] ||= _((e) => n("cancel"), ["self"])
547
- }, [x("div", qe, [
548
- x("header", Je, [D(h(re), {
547
+ }, [x("div", Je, [
548
+ x("header", Ye, [D(h(ie), {
549
549
  size: 18,
550
550
  "stroke-width": 2,
551
551
  class: "tpl:text-[var(--tpl-warning)]"
552
- }), x("h2", Ye, d(h(r).saveGate.title), 1)]),
553
- x("p", Xe, d(h(r).saveGate.body), 1),
554
- x("ul", Ze, [(i(!0), p(w, null, o(e.issues, (e) => (i(), p("li", {
552
+ }), x("h2", Xe, d(h(r).saveGate.title), 1)]),
553
+ x("p", Ze, d(h(r).saveGate.body), 1),
554
+ x("ul", Qe, [(i(!0), p(w, null, o(e.issues, (e) => (i(), p("li", {
555
555
  key: `${e.ruleId}-${e.blockId ?? "template"}`,
556
556
  class: "tpl:flex tpl:flex-col tpl:gap-0.5 tpl:rounded tpl:px-2 tpl:py-1.5"
557
- }, [x("span", Qe, d(e.message), 1), x("span", $e, d(e.ruleId), 1)]))), 128))]),
558
- x("footer", et, [x("button", {
557
+ }, [x("span", $e, d(e.message), 1), x("span", et, d(e.ruleId), 1)]))), 128))]),
558
+ x("footer", tt, [x("button", {
559
559
  type: "button",
560
560
  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)]",
561
561
  onClick: a[0] ||= (e) => n("cancel")
@@ -564,11 +564,11 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
564
564
  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",
565
565
  onClick: a[1] ||= (e) => n("confirm")
566
566
  }, d(h(r).saveGate.confirm), 1)])
567
- ])], 8, Ke)) : m("", !0)]),
567
+ ])], 8, qe)) : m("", !0)]),
568
568
  _: 1
569
569
  }));
570
570
  }
571
- }), nt = {
571
+ }), rt = {
572
572
  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",
573
573
  style: {
574
574
  "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)",
@@ -577,24 +577,24 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
577
577
  "box-shadow": "var(--tpl-shadow-md)",
578
578
  "border-bottom": "1px solid var(--tpl-border)"
579
579
  }
580
- }, rt = { class: "tpl-header-left tpl:flex tpl:min-w-[200px] tpl:items-center tpl:gap-3" }, it = {
580
+ }, it = { class: "tpl-header-left tpl:flex tpl:min-w-[200px] tpl:items-center tpl:gap-3" }, at = {
581
581
  key: 0,
582
582
  class: "tpl:text-xs tpl:opacity-60 tpl:text-[var(--tpl-text-muted)]"
583
- }, at = { class: "tpl-header-center tpl:flex tpl:items-center tpl:justify-center tpl:gap-10" }, ot = { class: "tpl-header-right tpl:flex tpl:min-w-[200px] tpl:items-center tpl:justify-end tpl:gap-3" }, st = ["data-tooltip"], ct = {
583
+ }, ot = { class: "tpl-header-center tpl:flex tpl:items-center tpl:justify-center tpl:gap-10" }, st = { class: "tpl-header-right tpl:flex tpl:min-w-[200px] tpl:items-center tpl:justify-end tpl:gap-3" }, ct = ["data-tooltip"], lt = {
584
584
  key: 1,
585
585
  "aria-live": "polite",
586
586
  class: "tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-success)]"
587
- }, lt = {
587
+ }, ut = {
588
588
  key: 2,
589
589
  "aria-live": "polite",
590
590
  class: "tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
591
- }, ut = ["aria-label", "aria-expanded"], dt = {
591
+ }, dt = ["aria-label", "aria-expanded"], ft = {
592
592
  key: 0,
593
593
  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)]"
594
- }, ft = ["aria-expanded"], pt = {
594
+ }, pt = ["aria-expanded"], mt = {
595
595
  key: 0,
596
596
  class: "tpl:absolute tpl:right-0 tpl:top-full tpl:z-50 tpl:mt-1 tpl:origin-top-right"
597
- }, mt = ["disabled"], ht = ["disabled"], gt = /* @__PURE__ */ E({
597
+ }, ht = ["disabled"], gt = ["disabled"], _t = /* @__PURE__ */ E({
598
598
  __name: "CloudHeader",
599
599
  props: {
600
600
  editor: {},
@@ -612,13 +612,13 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
612
612
  },
613
613
  emits: ["save"],
614
614
  setup(e) {
615
- let t = u(() => import("./CollaboratorBar-mkJVAkSh.js")), n = u(() => import("./SnapshotHistory-DO-gzr3i.js")), r = u(() => import("./AiFeatureMenu-hWgWQg11.js")), { t: a } = V(), { t: o, format: c } = X();
616
- return (l, u) => (i(), p("header", nt, [
617
- x("div", rt, [e.featureFlags.templateLimit.value === null ? m("", !0) : (i(), p("span", it, d(h(c)(h(o).header.templatesUsed, {
615
+ let t = u(() => import("./CollaboratorBar-CEdKr0A2.js")), n = u(() => import("./SnapshotHistory-DFuNJRc9.js")), r = u(() => import("./AiFeatureMenu-B5pV6Iux.js")), { t: a } = V(), { t: o, format: c } = X();
616
+ return (l, u) => (i(), p("header", rt, [
617
+ x("div", it, [e.featureFlags.templateLimit.value === null ? m("", !0) : (i(), p("span", at, d(h(c)(h(o).header.templatesUsed, {
618
618
  used: e.featureFlags.templateCount.value,
619
619
  max: e.featureFlags.templateLimit.value
620
620
  })), 1))]),
621
- x("div", at, [
621
+ x("div", ot, [
622
622
  D(ve, {
623
623
  viewport: e.editor.state.viewport,
624
624
  onChange: e.editor.setViewport
@@ -631,13 +631,18 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
631
631
  "preview-mode": e.editor.state.previewMode,
632
632
  onChange: e.editor.setPreviewMode
633
633
  }, null, 8, ["preview-mode", "onChange"]),
634
- e.collaboration && e.isCollaborationEnabled ? (i(), v(h(t), {
634
+ e.editor.state.previewMode ? (i(), v(ye, {
635
635
  key: 0,
636
+ "sample-mode": e.core.mergeTagSampleMode.value,
637
+ onChange: u[0] ||= (t) => e.core.mergeTagSampleMode.value = t
638
+ }, null, 8, ["sample-mode"])) : m("", !0),
639
+ e.collaboration && e.isCollaborationEnabled ? (i(), v(h(t), {
640
+ key: 1,
636
641
  collaborators: e.collaboration.collaborators.value,
637
642
  "is-connected": e.websocket.isConnected.value
638
643
  }, null, 8, ["collaborators", "is-connected"])) : m("", !0),
639
644
  e.snapshotPreview.snapshotHistoryInstance.value ? (i(), v(h(n), {
640
- key: 1,
645
+ key: 2,
641
646
  snapshots: e.snapshotPreview.snapshotHistorySnapshots.value,
642
647
  "is-loading": e.snapshotPreview.snapshotHistoryIsLoading.value,
643
648
  "is-restoring": e.snapshotPreview.snapshotHistoryIsRestoring.value,
@@ -651,19 +656,19 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
651
656
  "onNavigate"
652
657
  ])) : m("", !0)
653
658
  ]),
654
- x("div", ot, [
659
+ x("div", st, [
655
660
  e.featureFlags.saveStatus.value === "error" ? (i(), p("div", {
656
661
  key: 0,
657
662
  "aria-live": "assertive",
658
663
  class: "tpl-tooltip tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]",
659
664
  "data-tooltip": e.featureFlags.saveErrorMessage.value
660
- }, [D(h(H), {
665
+ }, [D(h(Y), {
661
666
  size: 12,
662
667
  "stroke-width": 2.5
663
- }), T(" " + d(h(o).header.saveFailed), 1)], 8, st)) : e.featureFlags.saveStatus.value === "saved" ? (i(), p("div", ct, [D(h(G), {
668
+ }), T(" " + d(h(o).header.saveFailed), 1)], 8, ct)) : e.featureFlags.saveStatus.value === "saved" ? (i(), p("div", lt, [D(h(W), {
664
669
  size: 12,
665
670
  "stroke-width": 2.5
666
- }), T(" " + d(h(o).header.saved), 1)])) : e.editor.state.isDirty ? (i(), p("div", lt, [u[4] ||= x("span", { class: "tpl-pulse tpl:size-1.5 tpl:rounded-full tpl:bg-[var(--tpl-primary)]" }, null, -1), T(" " + d(h(o).header.unsaved), 1)])) : m("", !0),
671
+ }), T(" " + d(h(o).header.saved), 1)])) : e.editor.state.isDirty ? (i(), p("div", ut, [u[5] ||= x("span", { class: "tpl-pulse tpl:size-1.5 tpl:rounded-full tpl:bg-[var(--tpl-primary)]" }, null, -1), T(" " + d(h(o).header.unsaved), 1)])) : m("", !0),
667
672
  e.commentsInstance.isEnabled.value && e.featureFlags.hasTemplateSaved.value ? (i(), p("button", {
668
673
  key: 3,
669
674
  "aria-label": e.commentsInstance.unresolvedCount.value > 0 ? `${h(o).comments.button} (${e.commentsInstance.unresolvedCount.value})` : h(o).comments.button,
@@ -674,15 +679,15 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
674
679
  color: e.panelState.commentsOpen.value ? "var(--tpl-bg)" : "var(--tpl-primary)",
675
680
  borderColor: "var(--tpl-primary)"
676
681
  }),
677
- onClick: u[0] ||= (t) => e.panelState.commentsOpen.value = !e.panelState.commentsOpen.value
682
+ onClick: u[1] ||= (t) => e.panelState.commentsOpen.value = !e.panelState.commentsOpen.value
678
683
  }, [
679
- D(h(q), {
684
+ D(h(re), {
680
685
  size: 16,
681
686
  "stroke-width": 2
682
687
  }),
683
688
  T(" " + d(h(o).comments.button) + " ", 1),
684
- e.commentsInstance.unresolvedCount.value > 0 && !e.panelState.commentsOpen.value ? (i(), p("span", dt, d(e.commentsInstance.unresolvedCount.value), 1)) : m("", !0)
685
- ], 14, ut)) : m("", !0),
689
+ e.commentsInstance.unresolvedCount.value > 0 && !e.panelState.commentsOpen.value ? (i(), p("span", ft, d(e.commentsInstance.unresolvedCount.value), 1)) : m("", !0)
690
+ ], 14, dt)) : m("", !0),
686
691
  e.featureFlags.canUseAiGeneration.value && e.featureFlags.hasTemplateSaved.value ? (i(), p("div", {
687
692
  key: 4,
688
693
  ref: (t) => e.panelState.aiMenuRef.value = t,
@@ -690,12 +695,12 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
690
695
  }, [x("button", {
691
696
  "aria-expanded": e.panelState.aiMenuOpen.value,
692
697
  class: b(["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"]),
693
- onClick: u[1] ||= _((...t) => e.panelState.toggleAiMenu && e.panelState.toggleAiMenu(...t), ["stop"])
694
- }, [D(h(ie), {
698
+ onClick: u[2] ||= _((...t) => e.panelState.toggleAiMenu && e.panelState.toggleAiMenu(...t), ["stop"])
699
+ }, [D(h(q), {
695
700
  size: 16,
696
701
  "stroke-width": 2,
697
702
  class: "tpl-ai-btn-icon"
698
- }), T(" " + d(h(o).aiChat.button), 1)], 10, ft), D(y, {
703
+ }), T(" " + d(h(o).aiChat.button), 1)], 10, pt), D(y, {
699
704
  "enter-active-class": "tpl:transition-all tpl:duration-150 tpl:ease-out",
700
705
  "enter-from-class": "tpl:scale-95 tpl:opacity-0",
701
706
  "enter-to-class": "tpl:scale-100 tpl:opacity-100",
@@ -703,7 +708,7 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
703
708
  "leave-from-class": "tpl:scale-100 tpl:opacity-100",
704
709
  "leave-to-class": "tpl:scale-95 tpl:opacity-0"
705
710
  }, {
706
- default: s(() => [e.panelState.aiMenuOpen.value ? (i(), p("div", pt, [D(h(r), {
711
+ default: s(() => [e.panelState.aiMenuOpen.value ? (i(), p("div", mt, [D(h(r), {
707
712
  "active-feature": e.panelState.activeAiFeature.value,
708
713
  onSelect: e.panelState.handleAiFeatureSelect
709
714
  }, null, 8, ["active-feature", "onSelect"])])) : m("", !0)]),
@@ -719,17 +724,17 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
719
724
  "border-color": "var(--tpl-primary)"
720
725
  },
721
726
  disabled: e.testEmail.isSending.value,
722
- onClick: u[2] ||= (t) => e.testEmail.open()
723
- }, [e.testEmail.isSending.value ? (i(), v(h(Y), {
727
+ onClick: u[3] ||= (t) => e.testEmail.open()
728
+ }, [e.testEmail.isSending.value ? (i(), v(h(J), {
724
729
  key: 1,
725
730
  class: "tpl-spinner",
726
731
  size: 16,
727
732
  "stroke-width": 2
728
- })) : (i(), v(h(J), {
733
+ })) : (i(), v(h(G), {
729
734
  key: 0,
730
735
  size: 16,
731
736
  "stroke-width": 2
732
- })), T(" " + d(h(a).testEmail.button), 1)], 10, mt)) : m("", !0),
737
+ })), T(" " + d(h(a).testEmail.button), 1)], 10, ht)) : m("", !0),
733
738
  x("button", {
734
739
  class: b(h($)),
735
740
  style: {
@@ -738,21 +743,21 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
738
743
  "border-color": "var(--tpl-primary)"
739
744
  },
740
745
  disabled: e.isSaveDisabled,
741
- onClick: u[3] ||= (e) => l.$emit("save")
742
- }, [e.isSaving ? (i(), v(h(Y), {
746
+ onClick: u[4] ||= (e) => l.$emit("save")
747
+ }, [e.isSaving ? (i(), v(h(J), {
743
748
  key: 1,
744
749
  class: "tpl-spinner",
745
750
  size: 16,
746
751
  "stroke-width": 2
747
- })) : (i(), v(h(K), {
752
+ })) : (i(), v(h(H), {
748
753
  key: 0,
749
754
  size: 16,
750
755
  "stroke-width": 2
751
- })), T(" " + d(e.isSaving ? h(o).header.saving : h(o).header.save), 1)], 10, ht)
756
+ })), T(" " + d(e.isSaving ? h(o).header.saving : h(o).header.save), 1)], 10, gt)
752
757
  ])
753
758
  ]));
754
759
  }
755
- }), _t = /* @__PURE__ */ E({
760
+ }), vt = /* @__PURE__ */ E({
756
761
  __name: "CloudPanels",
757
762
  props: {
758
763
  config: {},
@@ -763,9 +768,9 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
763
768
  mediaLib: {}
764
769
  },
765
770
  setup(e, { expose: t }) {
766
- let n = u(() => import("./AiChatSidebar-BMnsF8G6.js")), r = u(() => import("./CommentsSidebar-DHdRiGPX.js")), a = u(() => import("./DesignReferenceSidebar-CM-k15pd.js")), o = u(() => import("./TemplateScoringPanel-CTk8WwxU.js")), s = u(async () => {
771
+ let n = u(() => import("./AiChatSidebar-CN-0DIuA.js")), r = u(() => import("./CommentsSidebar-6PfpJKh-.js")), a = u(() => import("./DesignReferenceSidebar-BjlaP69l.js")), o = u(() => import("./TemplateScoringPanel-DG1dAjQk.js")), s = u(async () => {
767
772
  try {
768
- return (await import("./src-CzoMNRq4.js")).MediaLibraryModal;
773
+ return (await import("./src-XQmI_Xs1.js")).MediaLibraryModal;
769
774
  } catch {
770
775
  throw Error("[Templatical] Cloud media library requires the optional peer dependency '@templatical/media-library'. Please install it.");
771
776
  }
@@ -814,23 +819,23 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
814
819
  ])
815
820
  ], 64));
816
821
  }
817
- }), vt = {
822
+ }), yt = {
818
823
  key: 0,
819
824
  class: "tpl-loading tpl:absolute tpl:inset-0 tpl:z-overlay tpl:flex tpl:flex-col tpl:bg-[var(--tpl-bg)]"
820
- }, yt = { class: "tpl:flex tpl:flex-1 tpl:overflow-hidden" }, bt = { 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)]" }, xt = /* @__PURE__ */ E({
825
+ }, bt = { class: "tpl:flex tpl:flex-1 tpl:overflow-hidden" }, xt = { 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)]" }, St = /* @__PURE__ */ E({
821
826
  __name: "CloudLoadingOverlay",
822
827
  props: { visible: { type: Boolean } },
823
828
  setup(e) {
824
- return (t, n) => e.visible ? (i(), p("div", vt, [n[1] ||= l("<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), x("div", yt, [x("div", bt, [(i(), p(w, null, o(5, (e) => x("div", {
829
+ return (t, n) => e.visible ? (i(), p("div", yt, [n[1] ||= l("<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), x("div", bt, [x("div", xt, [(i(), p(w, null, o(5, (e) => x("div", {
825
830
  key: e,
826
831
  class: "tpl-shimmer tpl:size-7 tpl:rounded-[var(--tpl-radius-sm)]"
827
832
  })), 64))]), n[0] ||= l("<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)])])) : m("", !0);
828
833
  }
829
- }), St = {
834
+ }), Ct = {
830
835
  key: 0,
831
836
  role: "alert",
832
837
  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)]"
833
- }, Ct = { class: "tpl:flex tpl:size-16 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-danger-light)]" }, wt = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:text-center" }, Tt = { class: "tpl:text-lg tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Et = { class: "tpl:max-w-md tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Dt = /* @__PURE__ */ E({
838
+ }, wt = { class: "tpl:flex tpl:size-16 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-danger-light)]" }, Tt = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:text-center" }, Et = { class: "tpl:text-lg tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Dt = { class: "tpl:max-w-md tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ot = /* @__PURE__ */ E({
834
839
  __name: "CloudErrorOverlay",
835
840
  props: {
836
841
  error: {},
@@ -845,13 +850,13 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
845
850
  function o(e) {
846
851
  return "isNotFound" in e && !!e.isNotFound;
847
852
  }
848
- return (t, s) => e.visible && e.error ? (i(), p("div", St, [
849
- x("div", Ct, [D(h(H), {
853
+ return (t, s) => e.visible && e.error ? (i(), p("div", Ct, [
854
+ x("div", wt, [D(h(Y), {
850
855
  size: 32,
851
856
  "stroke-width": 1.5,
852
857
  class: "tpl:text-[var(--tpl-danger)]"
853
858
  })]),
854
- x("div", wt, [x("h2", Tt, d(h(r).error.title), 1), x("p", Et, d(a(e.error)), 1)]),
859
+ x("div", Tt, [x("h2", Et, d(h(r).error.title), 1), x("p", Dt, d(a(e.error)), 1)]),
855
860
  o(e.error) ? m("", !0) : (i(), p("button", {
856
861
  key: 0,
857
862
  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)]",
@@ -859,20 +864,20 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
859
864
  }, d(h(r).error.retry), 1))
860
865
  ])) : m("", !0);
861
866
  }
862
- }), Ot = {
867
+ }), kt = {
863
868
  key: 0,
864
869
  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)]"
865
- }, kt = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:text-[var(--tpl-text)]" }, At = { class: "tpl:flex tpl:items-center tpl:gap-2" }, jt = /* @__PURE__ */ E({
870
+ }, At = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:text-[var(--tpl-text)]" }, jt = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Mt = /* @__PURE__ */ E({
866
871
  __name: "SnapshotPreviewBanner",
867
872
  props: { visible: { type: Boolean } },
868
873
  emits: ["cancel", "confirm"],
869
874
  setup(e, { emit: t }) {
870
875
  let n = t, { t: r } = X();
871
- return (t, a) => e.visible ? (i(), p("div", Ot, [x("div", kt, [D(h(U), {
876
+ return (t, a) => e.visible ? (i(), p("div", kt, [x("div", At, [D(h(K), {
872
877
  size: 18,
873
878
  "stroke-width": 2,
874
879
  class: "tpl:text-[var(--tpl-primary)]"
875
- }), x("span", null, d(h(r).snapshotPreview.message), 1)]), x("div", At, [x("button", {
880
+ }), x("span", null, d(h(r).snapshotPreview.message), 1)]), x("div", jt, [x("button", {
876
881
  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)]",
877
882
  style: { "background-color": "transparent" },
878
883
  onClick: a[0] ||= (e) => n("cancel")
@@ -881,7 +886,7 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
881
886
  onClick: a[1] ||= (e) => n("confirm")
882
887
  }, d(h(r).snapshotPreview.restore), 1)])])) : m("", !0);
883
888
  }
884
- }), Mt = {
889
+ }), Nt = {
885
890
  key: 0,
886
891
  role: "status",
887
892
  "aria-live": "polite",
@@ -891,14 +896,14 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
891
896
  color: "var(--tpl-text)",
892
897
  border: "1px solid var(--tpl-warning)"
893
898
  }
894
- }, Nt = /* @__PURE__ */ E({
899
+ }, Pt = /* @__PURE__ */ E({
895
900
  __name: "CollabUndoToast",
896
901
  props: { visible: { type: Boolean } },
897
902
  setup(e) {
898
903
  let { t } = V();
899
- return (n, r) => e.visible ? (i(), p("div", Mt, d(h(t).history.collabWarning), 1)) : m("", !0);
904
+ return (n, r) => e.visible ? (i(), p("div", Nt, d(h(t).history.collabWarning), 1)) : m("", !0);
900
905
  }
901
- }), Pt = ["data-tpl-theme"], Ft = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, It = { class: "tpl-main tpl:flex tpl:justify-center tpl:p-8" }, Lt = ["aria-label"], Rt = /*#__PURE__*/ ae(/* @__PURE__ */ E({
906
+ }), Ft = ["data-tpl-theme"], It = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, Lt = { class: "tpl-main tpl:flex tpl:justify-center tpl:p-8" }, Rt = ["aria-label"], zt = /*#__PURE__*/ ae(/* @__PURE__ */ E({
902
907
  __name: "CloudEditor",
903
908
  props: {
904
909
  config: {},
@@ -909,9 +914,9 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
909
914
  },
910
915
  emits: ["ready"],
911
916
  setup(e, { expose: r, emit: o }) {
912
- let l = u(() => import("./SavedBlocksPanels-BsSpJwrW.js")), f = u(() => import("./TestEmailPanel-048m0kxX.js")), w = e;
917
+ let l = u(() => import("./SavedBlocksPanels-1kVbqdpc.js")), f = u(() => import("./TestEmailPanel-saOfnpjz.js")), w = e;
913
918
  a(L, w.cloudTranslations);
914
- let E = o, O = c(null), k = c(null), A = He({
919
+ let E = o, O = c(null), k = c(null), A = Ue({
915
920
  config: w.config,
916
921
  translations: w.translations,
917
922
  fontsManager: w.fontsManager,
@@ -919,13 +924,13 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
919
924
  getCommentsSidebar: () => O.value ? { filterByBlock: O.value.filterCommentsByBlock } : null,
920
925
  editorRoot: w.shadowRoot,
921
926
  containerEl: k
922
- }), { isInitializing: j, isAuthReady: ee, initError: N, planConfigInstance: P, websocket: F, collaboration: I, isCollaborationEnabled: te, editor: R, core: z, featureFlags: B, mediaLib: ne, exporter: V, testEmail: H, commentsInstance: U, savedBlocks: G, panelState: K, snapshotPreview: q, collabWarning: J, setThemeOverrides: Y, setUiTheme: re } = A, { showNotice: ie } = M(() => w.config.smallScreenNotice);
927
+ }), { isInitializing: j, isAuthReady: ee, initError: N, planConfigInstance: P, websocket: F, collaboration: I, isCollaborationEnabled: te, editor: R, core: z, featureFlags: B, mediaLib: ne, exporter: V, testEmail: H, commentsInstance: W, savedBlocks: G, panelState: K, snapshotPreview: q, collabWarning: J, setThemeOverrides: Y, setUiTheme: re } = A, { showNotice: ie } = M(() => w.config.smallScreenNotice);
923
928
  async function ae() {
924
929
  try {
925
930
  await q.confirmRestoreSnapshot();
926
931
  } catch {}
927
932
  }
928
- let X = We({
933
+ let X = Ge({
929
934
  config: w.config,
930
935
  editor: R,
931
936
  websocket: F,
@@ -935,7 +940,7 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
935
940
  exporter: V,
936
941
  featureFlags: B,
937
942
  isDestroyed: A.isDestroyed
938
- }), Z = Ge({
943
+ }), Z = Ke({
939
944
  issues: z.templateLint ? z.templateLint.issues : c([]),
940
945
  planConfig: P.config
941
946
  });
@@ -973,7 +978,7 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
973
978
  "leave-from-class": "tpl:opacity-100",
974
979
  "leave-to-class": "tpl:opacity-0"
975
980
  }, {
976
- default: s(() => [D(xt, { visible: h(j) || h(R).state.isLoading }, null, 8, ["visible"])]),
981
+ default: s(() => [D(St, { visible: h(j) || h(R).state.isLoading }, null, 8, ["visible"])]),
977
982
  _: 1
978
983
  }),
979
984
  D(y, {
@@ -984,7 +989,7 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
984
989
  "leave-from-class": "tpl:opacity-100",
985
990
  "leave-to-class": "tpl:opacity-0"
986
991
  }, {
987
- default: s(() => [D(Dt, {
992
+ default: s(() => [D(Ot, {
988
993
  error: h(N),
989
994
  visible: !!h(N) && !h(j),
990
995
  onRetry: h(A).initialize
@@ -995,13 +1000,13 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
995
1000
  ])]),
996
1001
  _: 1
997
1002
  }),
998
- D(gt, {
1003
+ D(_t, {
999
1004
  editor: h(R),
1000
1005
  core: h(z),
1001
1006
  "feature-flags": h(B),
1002
1007
  "panel-state": h(K),
1003
1008
  "snapshot-preview": h(q),
1004
- "comments-instance": h(U),
1009
+ "comments-instance": h(W),
1005
1010
  "test-email": h(H),
1006
1011
  websocket: h(F),
1007
1012
  collaboration: h(I),
@@ -1023,7 +1028,7 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1023
1028
  "is-saving",
1024
1029
  "is-save-disabled"
1025
1030
  ]),
1026
- D(tt, {
1031
+ D(nt, {
1027
1032
  open: h(Z).modalOpen.value,
1028
1033
  issues: h(Z).blockingIssues.value,
1029
1034
  onCancel: h(Z).cancel,
@@ -1034,7 +1039,7 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1034
1039
  "onCancel",
1035
1040
  "onConfirm"
1036
1041
  ]),
1037
- D(jt, {
1042
+ D(Mt, {
1038
1043
  visible: h(q).isPreviewingSnapshot.value,
1039
1044
  onCancel: h(q).cancelPreview,
1040
1045
  onConfirm: ae
@@ -1047,7 +1052,7 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1047
1052
  "leave-from-class": "tpl:translate-y-0 tpl:opacity-100",
1048
1053
  "leave-to-class": "tpl:translate-y-[-8px] tpl:opacity-0"
1049
1054
  }, {
1050
- default: s(() => [D(Nt, { visible: h(J).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
1055
+ default: s(() => [D(Pt, { visible: h(J).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
1051
1056
  _: 1
1052
1057
  }),
1053
1058
  n(D(oe, null, null, 512), [[S, !h(R).state.previewMode]]),
@@ -1057,7 +1062,7 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1057
1062
  transition: "all 300ms cubic-bezier(0.34, 1.56, 0.64, 1)",
1058
1063
  "background-color": "var(--tpl-canvas-bg)"
1059
1064
  }
1060
- }, [x("div", Ft, [D(y, { name: "tpl-restore-btn" }, {
1065
+ }, [x("div", It, [D(y, { name: "tpl-restore-btn" }, {
1061
1066
  default: s(() => [h(z).conditionPreview.hasHiddenBlocks.value ? (i(), p("button", {
1062
1067
  key: 0,
1063
1068
  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",
@@ -1068,12 +1073,12 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1068
1073
  "backdrop-filter": "blur(8px)"
1069
1074
  },
1070
1075
  onClick: r[0] ||= (e) => h(z).conditionPreview.reset()
1071
- }, [D(h(W), {
1076
+ }, [D(h(U), {
1072
1077
  size: 13,
1073
1078
  "stroke-width": 2
1074
1079
  }), T(" " + d(h(z).t.blockSettings.restoreHiddenBlocks), 1)])) : m("", !0)]),
1075
1080
  _: 1
1076
- })]), x("main", It, [D(_e, {
1081
+ })]), x("main", Lt, [D(_e, {
1077
1082
  viewport: h(R).state.viewport,
1078
1083
  content: h(R).content.value,
1079
1084
  "selected-block-id": h(R).state.selectedBlockId,
@@ -1102,7 +1107,7 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1102
1107
  "aria-live": "polite",
1103
1108
  "aria-atomic": "true",
1104
1109
  "aria-label": h(z).t.landmarks.reorderAnnouncements
1105
- }, d(h(z).keyboardReorder.announcement.value), 9, Lt),
1110
+ }, d(h(z).keyboardReorder.announcement.value), 9, Rt),
1106
1111
  n(D(he, {
1107
1112
  "selected-block": h(R).selectedBlock.value,
1108
1113
  settings: h(R).content.value.settings,
@@ -1117,7 +1122,7 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1117
1122
  "shifted-left",
1118
1123
  "onUpdateSettings"
1119
1124
  ]), [[S, !h(R).state.previewMode]]),
1120
- !h(j) && h(ee) ? (i(), v(_t, {
1125
+ !h(j) && h(ee) ? (i(), v(vt, {
1121
1126
  key: 1,
1122
1127
  ref_key: "cloudPanelsRef",
1123
1128
  ref: O,
@@ -1150,10 +1155,10 @@ var Ke = ["aria-label"], qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1150
1155
  D(de),
1151
1156
  D(ge),
1152
1157
  h(ie) ? (i(), v(fe, { key: 4 })) : m("", !0)
1153
- ], 46, Pt));
1158
+ ], 46, Ft));
1154
1159
  }
1155
1160
  }), [["__scopeId", "data-v-d606cf3a"]]);
1156
1161
  //#endregion
1157
- export { Rt as default };
1162
+ export { zt as default };
1158
1163
 
1159
- //# sourceMappingURL=CloudEditor-S8zLHtKb.js.map
1164
+ //# sourceMappingURL=CloudEditor-CeKaWWO5.js.map