@templatical/editor 0.20.0 → 0.21.1

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 (238) hide show
  1. package/README.md +1 -0
  2. package/dist/{AiChatSidebar-ChrE6pUq.js → AiChatSidebar-K_AehWc-.js} +9 -9
  3. package/dist/{AiFeatureMenu-DkQ9HhQ6.js → AiFeatureMenu-CcqQDHzJ.js} +6 -6
  4. package/dist/{BlockIssueBadge-B4QjePax.js → BlockIssueBadge-Dmj9rVra.js} +4 -4
  5. package/dist/{CloudEditor-CfX-aMiV.js → CloudEditor-Dnww6og-.js} +263 -315
  6. package/dist/{CollaboratorBar-DTibhQ1j.js → CollaboratorBar-Bj4NZiie.js} +3 -3
  7. package/dist/{ColorPicker-4vDYhdGe.js → ColorPicker-s9GHXjZs.js} +4 -4
  8. package/dist/CommentsSidebar-DvNEdugN.js +435 -0
  9. package/dist/CountdownBlock-J_Q9JRQM.js +91 -0
  10. package/dist/{CountdownToolbar-D7yQqnA2.js → CountdownToolbar-DPRcv3Fu.js} +3 -4
  11. package/dist/{DesignReferenceSidebar-DnO6ZdwS.js → DesignReferenceSidebar-DNmK3dxp.js} +8 -8
  12. package/dist/{IssuesPanel-X_vkNGrs.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-C5ixOIYb.js → ParagraphEditor--_zWfxps.js} +47 -47
  16. package/dist/{RichTextEditorContent-DwhDnMsG.js → RichTextEditorContent-FbnWsh46.js} +6 -6
  17. package/dist/SaveBlockDialog-CYIEHABH.js +264 -0
  18. package/dist/SavedBlockPreviewCanvas-2-mzAnZE.js +109 -0
  19. package/dist/SavedBlocksBrowserModal-D5V5yF_3.js +323 -0
  20. package/dist/SavedBlocksPanels-Dff38YXu.js +36 -0
  21. package/dist/SavedBlocksPickBar-rB6iyji6.js +52 -0
  22. package/dist/{SnapshotHistory-DaVueFv6.js → SnapshotHistory-FtzDq8f0.js} +8 -8
  23. package/dist/{TemplateScoringPanel-B0UHoTLx.js → TemplateScoringPanel-ifGGGWs5.js} +14 -14
  24. package/dist/{TestEmailModal-BkauxF7j.js → TestEmailModal-DL2O1H8M.js} +4 -4
  25. package/dist/{TitleEditor-n6WDVDjW.js → TitleEditor-CPda5lh-.js} +11 -11
  26. package/dist/{TplModal-BDDyvT-C.js → TplModal-C7Koj5gM.js} +3 -3
  27. package/dist/{blockTypeIcons-4D0aFXNg.js → blockTypeIcons-CgwECCut.js} +6 -6
  28. package/dist/bundle-stats.json +8 -8
  29. package/dist/{cdn/chunks/ca-DbWoy4rG.js → ca-BBgad6y5.js} +50 -5
  30. package/dist/cdn/chunks/AiChatSidebar-A1CuWGY0.js +203 -0
  31. package/dist/cdn/chunks/AiChatSidebar-A1CuWGY0.js.map +1 -0
  32. package/dist/cdn/chunks/{AiFeatureMenu-CIBHAGSz.js → AiFeatureMenu-Duwg413F.js} +12 -8
  33. package/dist/cdn/chunks/{AiFeatureMenu-CIBHAGSz.js.map → AiFeatureMenu-Duwg413F.js.map} +1 -1
  34. package/dist/cdn/chunks/{BlockIssueBadge-CxMiLo3p.js → BlockIssueBadge-Da4yR-mh.js} +7 -5
  35. package/dist/cdn/chunks/{BlockIssueBadge-CxMiLo3p.js.map → BlockIssueBadge-Da4yR-mh.js.map} +1 -1
  36. package/dist/cdn/chunks/{CloudEditor-CEa3Xgqh.js → CloudEditor-B3hqbwfP.js} +275 -318
  37. package/dist/cdn/chunks/CloudEditor-B3hqbwfP.js.map +1 -0
  38. package/dist/cdn/chunks/{CollaboratorBar-Bk1gD02G.js → CollaboratorBar-BS3rJy6-.js} +7 -6
  39. package/dist/cdn/chunks/{CollaboratorBar-Bk1gD02G.js.map → CollaboratorBar-BS3rJy6-.js.map} +1 -1
  40. package/dist/cdn/chunks/{ColorPicker-ll8pynws.js → ColorPicker-DZSzZ5ZP.js} +168 -164
  41. package/dist/cdn/chunks/{ColorPicker-ll8pynws.js.map → ColorPicker-DZSzZ5ZP.js.map} +1 -1
  42. package/dist/cdn/chunks/CommentsSidebar-DHdRiGPX.js +412 -0
  43. package/dist/cdn/chunks/CommentsSidebar-DHdRiGPX.js.map +1 -0
  44. package/dist/cdn/chunks/CountdownBlock-Bffpoppw.js +93 -0
  45. package/dist/cdn/chunks/{CountdownBlock-eGUE7hhw.js.map → CountdownBlock-Bffpoppw.js.map} +1 -1
  46. package/dist/cdn/chunks/{CountdownToolbar-C1bkSjUR.js → CountdownToolbar-DAnmIZjq.js} +4 -5
  47. package/dist/cdn/chunks/{CountdownToolbar-C1bkSjUR.js.map → CountdownToolbar-DAnmIZjq.js.map} +1 -1
  48. package/dist/cdn/chunks/DesignReferenceSidebar-Dre99DTH.js +223 -0
  49. package/dist/cdn/chunks/DesignReferenceSidebar-Dre99DTH.js.map +1 -0
  50. package/dist/cdn/chunks/{IssuesPanel-Csasylf_.js → IssuesPanel-D80JedOj.js} +11 -10
  51. package/dist/cdn/chunks/{IssuesPanel-Csasylf_.js.map → IssuesPanel-D80JedOj.js.map} +1 -1
  52. package/dist/cdn/chunks/LoadingTrack-D-CW2tUa.js +12 -0
  53. package/dist/cdn/chunks/LoadingTrack-D-CW2tUa.js.map +1 -0
  54. package/dist/cdn/chunks/{MergeTagSuggestion-BmMmdcRg.js → MergeTagSuggestion-D7TsECll.js} +2 -2
  55. package/dist/cdn/chunks/{MergeTagSuggestion-BmMmdcRg.js.map → MergeTagSuggestion-D7TsECll.js.map} +1 -1
  56. package/dist/cdn/chunks/NumberWithSuffix-CjlVNIEe.js +123 -0
  57. package/dist/cdn/chunks/NumberWithSuffix-CjlVNIEe.js.map +1 -0
  58. package/dist/cdn/chunks/{ParagraphEditor-v0_XEL-v.js → ParagraphEditor-CtaRa1vr.js} +90 -85
  59. package/dist/cdn/chunks/{ParagraphEditor-v0_XEL-v.js.map → ParagraphEditor-CtaRa1vr.js.map} +1 -1
  60. package/dist/cdn/chunks/{RichTextEditorContent-NQExNsaV.js → RichTextEditorContent-BbdgJqWM.js} +9 -6
  61. package/dist/cdn/chunks/{RichTextEditorContent-NQExNsaV.js.map → RichTextEditorContent-BbdgJqWM.js.map} +1 -1
  62. package/dist/cdn/chunks/SaveBlockDialog-Bb3fdUEZ.js +263 -0
  63. package/dist/cdn/chunks/SaveBlockDialog-Bb3fdUEZ.js.map +1 -0
  64. package/dist/cdn/chunks/SavedBlockPreviewCanvas-DZOMgNsz.js +111 -0
  65. package/dist/cdn/chunks/SavedBlockPreviewCanvas-DZOMgNsz.js.map +1 -0
  66. package/dist/cdn/chunks/SavedBlocksBrowserModal-CeUWcPv0.js +322 -0
  67. package/dist/cdn/chunks/SavedBlocksBrowserModal-CeUWcPv0.js.map +1 -0
  68. package/dist/cdn/chunks/SavedBlocksPanels-D-pA_wfk.js +38 -0
  69. package/dist/cdn/chunks/SavedBlocksPanels-D-pA_wfk.js.map +1 -0
  70. package/dist/cdn/chunks/SavedBlocksPickBar-1rf1KpqS.js +54 -0
  71. package/dist/cdn/chunks/SavedBlocksPickBar-1rf1KpqS.js.map +1 -0
  72. package/dist/cdn/chunks/SnapshotHistory-Bf1uovti.js +121 -0
  73. package/dist/cdn/chunks/SnapshotHistory-Bf1uovti.js.map +1 -0
  74. package/dist/cdn/chunks/TemplateScoringPanel-CTk8WwxU.js +231 -0
  75. package/dist/cdn/chunks/TemplateScoringPanel-CTk8WwxU.js.map +1 -0
  76. package/dist/cdn/chunks/TestEmailModal-BJTDxFHh.js +96 -0
  77. package/dist/cdn/chunks/TestEmailModal-BJTDxFHh.js.map +1 -0
  78. package/dist/cdn/chunks/{TitleEditor-CS-_MzYs.js → TitleEditor-BJ7LFykI.js} +18 -15
  79. package/dist/cdn/chunks/{TitleEditor-CS-_MzYs.js.map → TitleEditor-BJ7LFykI.js.map} +1 -1
  80. package/dist/cdn/chunks/TplModal-CH9RzKF7.js +50 -0
  81. package/dist/cdn/chunks/TplModal-CH9RzKF7.js.map +1 -0
  82. package/dist/cdn/chunks/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
  83. package/dist/cdn/chunks/blockTypeIcons-etMMQoVv.js +21 -0
  84. package/dist/cdn/chunks/{blockTypeIcons-B0Hjh42a.js.map → blockTypeIcons-etMMQoVv.js.map} +1 -1
  85. package/dist/{ca-DbWoy4rG.js → cdn/chunks/ca-BBgad6y5.js} +52 -3
  86. package/dist/cdn/chunks/ca-BBgad6y5.js.map +1 -0
  87. package/dist/cdn/chunks/cloud-BJlbXGTJ.js +1787 -0
  88. package/dist/cdn/chunks/cloud-BJlbXGTJ.js.map +1 -0
  89. package/dist/{de-CTYXVU9v.js → cdn/chunks/de-Bw6fB5JU.js} +2 -24
  90. package/dist/cdn/chunks/{de-CTYXVU9v.js.map → de-Bw6fB5JU.js.map} +1 -1
  91. package/dist/cdn/chunks/{de-CgGOnerg.js → de-D7WbpFBR.js} +50 -3
  92. package/dist/cdn/chunks/de-D7WbpFBR.js.map +1 -0
  93. package/dist/cdn/chunks/dist-CiBEt0VR.js +163 -0
  94. package/dist/cdn/chunks/dist-CiBEt0VR.js.map +1 -0
  95. package/dist/cdn/chunks/dist-CxTt8FRE.js +403 -0
  96. package/dist/cdn/chunks/dist-CxTt8FRE.js.map +1 -0
  97. package/dist/{en-DrUV9xth.js → cdn/chunks/en-BrZ0uGK2.js} +51 -2
  98. package/dist/cdn/chunks/en-BrZ0uGK2.js.map +1 -0
  99. package/dist/{en-BtmIaJeb.js → cdn/chunks/en-DAdHJz7h.js} +2 -24
  100. package/dist/cdn/chunks/{en-BtmIaJeb.js.map → en-DAdHJz7h.js.map} +1 -1
  101. package/dist/{es-DwbKjU7q.js → cdn/chunks/es-tLSLysPs.js} +51 -2
  102. package/dist/cdn/chunks/es-tLSLysPs.js.map +1 -0
  103. package/dist/cdn/chunks/{extensions-Di3hdIRT.js → extensions-ZX2oarW6.js} +28 -26
  104. package/dist/cdn/chunks/{extensions-Di3hdIRT.js.map → extensions-ZX2oarW6.js.map} +1 -1
  105. package/dist/cdn/chunks/formatRelativeTime-CtUU-QZ8.js +12 -0
  106. package/dist/cdn/chunks/formatRelativeTime-CtUU-QZ8.js.map +1 -0
  107. package/dist/cdn/chunks/htmlparser-CZa2V5cF.js +1008 -0
  108. package/dist/cdn/chunks/htmlparser-CZa2V5cF.js.map +1 -0
  109. package/dist/cdn/chunks/icons-CYWw8Xfp.js +1190 -0
  110. package/dist/cdn/chunks/icons-CYWw8Xfp.js.map +1 -0
  111. package/dist/cdn/chunks/keys-D7kUmfpE.js +12 -0
  112. package/dist/cdn/chunks/keys-D7kUmfpE.js.map +1 -0
  113. package/dist/cdn/chunks/{pt-BR-Bcc5Tjed.js → pt-BR-BWFokdTU.js} +50 -3
  114. package/dist/cdn/chunks/pt-BR-BWFokdTU.js.map +1 -0
  115. package/dist/{pt-BR-B2ZvFlRL.js → cdn/chunks/pt-BR-w2sGzHNX.js} +2 -24
  116. package/dist/cdn/chunks/{pt-BR-B2ZvFlRL.js.map → pt-BR-w2sGzHNX.js.map} +1 -1
  117. package/dist/cdn/chunks/src-BKI1x1k7.js +546 -0
  118. package/dist/cdn/chunks/src-BKI1x1k7.js.map +1 -0
  119. package/dist/cdn/chunks/src-CM0gCvAS.js +1176 -0
  120. package/dist/cdn/chunks/src-CM0gCvAS.js.map +1 -0
  121. package/dist/cdn/chunks/{media-library-yYAkAagU.js → src-D6F_3XkE.js} +1754 -1252
  122. package/dist/cdn/chunks/src-D6F_3XkE.js.map +1 -0
  123. package/dist/cdn/chunks/{renderer-DpBGiXOg.js → src-DYji-wXB.js} +117 -133
  124. package/dist/cdn/chunks/src-DYji-wXB.js.map +1 -0
  125. package/dist/cdn/chunks/{styles-DHSmjlpX.js → styles-DMOEiSX9.js} +1448 -1354
  126. package/dist/cdn/chunks/styles-DMOEiSX9.js.map +1 -0
  127. package/dist/cdn/chunks/timeouts-Bmi_yePw.js +6 -0
  128. package/dist/cdn/chunks/timeouts-Bmi_yePw.js.map +1 -0
  129. package/dist/cdn/chunks/{tiptap-C2indasq.js → tiptap-BMZ-OENR.js} +2012 -1863
  130. package/dist/cdn/chunks/tiptap-BMZ-OENR.js.map +1 -0
  131. package/dist/cdn/chunks/useAliveFlag-aanU8uqB.js +12 -0
  132. package/dist/cdn/chunks/useAliveFlag-aanU8uqB.js.map +1 -0
  133. package/dist/cdn/chunks/useCloudI18n-BjNENqkM.js +25 -0
  134. package/dist/cdn/chunks/useCloudI18n-BjNENqkM.js.map +1 -0
  135. package/dist/cdn/chunks/useEditorCore-BA6mspzD.js +3019 -0
  136. package/dist/cdn/chunks/useEditorCore-BA6mspzD.js.map +1 -0
  137. package/dist/cdn/chunks/useI18n-8Wd7G-cq.js +19 -0
  138. package/dist/cdn/chunks/useI18n-8Wd7G-cq.js.map +1 -0
  139. package/dist/cdn/chunks/useMergeTag-C7G31KV-.js +46 -0
  140. package/dist/cdn/chunks/useMergeTag-C7G31KV-.js.map +1 -0
  141. package/dist/cdn/chunks/usePopoverPosition-Bx0QewTv.js +61 -0
  142. package/dist/cdn/chunks/usePopoverPosition-Bx0QewTv.js.map +1 -0
  143. package/dist/cdn/editor.css +1 -1
  144. package/dist/cdn/editor.js +132 -120
  145. package/dist/cdn/editor.js.map +1 -1
  146. package/dist/{check-Bl4J_tYV.js → check-BpQDKiPz.js} +1 -1
  147. package/dist/{chevron-down-COEcl2iP.js → chevron-down-j8GrdTyz.js} +1 -1
  148. package/dist/chevron-up-BACyVhyC.js +7 -0
  149. package/dist/{circle-alert-CvHi5etc.js → circle-alert-CgtE46ND.js} +1 -1
  150. package/dist/{clock-CZZw62e8.js → clock-BzKLLW5L.js} +1 -1
  151. package/dist/{cloud-B-RebwxI.js → cloud-Du7mnkz2.js} +19 -47
  152. package/dist/{createLucideIcon-_peTZQtY.js → createLucideIcon-JWHwTI6N.js} +2 -2
  153. package/dist/{cdn/chunks/de-CTYXVU9v.js → de-Bw6fB5JU.js} +0 -26
  154. package/dist/{de-CgGOnerg.js → de-D7WbpFBR.js} +49 -2
  155. package/dist/{dist-CgTKuIUN.js → dist-BEpCh2mG.js} +1158 -1125
  156. package/dist/{dist-Cx7IUM7J.js → dist-BgPYC_8-.js} +14 -6
  157. package/dist/{dist-BKKo5wPC.js → dist-BkM8A17N.js} +2 -2
  158. package/dist/{dist-CcX5sLpz.js → dist-BuNDAAVp.js} +361 -256
  159. package/dist/{dist-COSN3oDJ.js → dist-CBzCU-a-.js} +2 -2
  160. package/dist/{dist-YSCPD13F.js → dist-CDO52Rxy.js} +2 -2
  161. package/dist/{dist-Dk5AdwoQ.js → dist-CrjzhIxB.js} +2 -2
  162. package/dist/{dist-DXAZUjj3.js → dist-CtcgoC_R.js} +2 -2
  163. package/dist/{dist-D6M5FAY7.js → dist-CuXha2_7.js} +2 -2
  164. package/dist/dist-CweLDZrs.js +5 -0
  165. package/dist/dist-DOsdqAEZ.js +5 -0
  166. package/dist/{dist-8TKf-Jpg.js → dist-DYClLqy8.js} +6 -3
  167. package/dist/{cdn/chunks/en-DrUV9xth.js → en-BrZ0uGK2.js} +49 -4
  168. package/dist/{cdn/chunks/en-BtmIaJeb.js → en-DAdHJz7h.js} +0 -26
  169. package/dist/{cdn/chunks/es-DwbKjU7q.js → es-tLSLysPs.js} +49 -4
  170. package/dist/{extensions-BCA9pyer.js → extensions-ClY5Sh7S.js} +5 -5
  171. package/dist/{image-up-D26rNdfX.js → image-up-CQdtq8ge.js} +1 -1
  172. package/dist/index.d.ts +81 -4
  173. package/dist/{info-CE3JSTqk.js → info-BUJBXoE6.js} +1 -1
  174. package/dist/{keys-DFaIbGR8.js → keys-CHPcp-Nz.js} +2 -2
  175. package/dist/{list-checks-BQsLrtBB.js → list-checks-BGHaCSD5.js} +1 -1
  176. package/dist/{loader-circle-s9Rh5lLd.js → loader-circle-C-Z6kgI6.js} +1 -1
  177. package/dist/{message-circle-CI62d690.js → message-circle-CEm5qckV.js} +1 -1
  178. package/dist/pencil-DdwmkKLb.js +10 -0
  179. package/dist/{pt-BR-Bcc5Tjed.js → pt-BR-BWFokdTU.js} +49 -2
  180. package/dist/{cdn/chunks/pt-BR-B2ZvFlRL.js → pt-BR-w2sGzHNX.js} +0 -26
  181. package/dist/{refresh-cw-DlYfl65Y.js → refresh-cw-maKlg0dl.js} +1 -1
  182. package/dist/{scan-line-CHadrYVb.js → scan-line-BFgesTOY.js} +1 -1
  183. package/dist/{send-CbP40otC.js → send-B70aQDrA.js} +1 -1
  184. package/dist/{shield-check-Bnj9aRoJ.js → shield-check-B7x5OKt5.js} +1 -1
  185. package/dist/{sparkles-CncWT57a.js → sparkles-DVlm1Ipp.js} +1 -1
  186. package/dist/style.css +1 -1
  187. package/dist/{styles-DkF_-uX8.js → styles-PcOPXvLO.js} +1235 -1151
  188. package/dist/templatical-editor.js +134 -125
  189. package/dist/{text-align-start-B458vzYw.js → text-align-start-Vay3Kvo2.js} +1 -1
  190. package/dist/{trash-2-DO0yjSU1.js → trash-2-DE8CmxAG.js} +1 -1
  191. package/dist/{triangle-alert-C18_ima6.js → triangle-alert-Djg6IG8N.js} +1 -1
  192. package/dist/{upload-DsCd2zTR.js → upload-BwwE0U6G.js} +1 -1
  193. package/dist/{useCloudI18n-PCDOC2kz.js → useCloudI18n-BmiygEM4.js} +1 -1
  194. package/dist/{useEditorCore-kKUemYY6.js → useEditorCore-CT1slufs.js} +997 -817
  195. package/dist/{useI18n-BNMzZTM5.js → useI18n-D2L9Mkik.js} +1 -1
  196. package/dist/{useMergeTag-DfEY0eK5.js → useMergeTag-BTdDq5DC.js} +1 -1
  197. package/dist/{usePopoverPosition-F9STHRIr.js → usePopoverPosition-BO2LNy5n.js} +1 -1
  198. package/dist/{x-BCFQuE_q.js → x-CkD6A1iB.js} +1 -1
  199. package/package.json +21 -21
  200. package/dist/CommentsSidebar-D-o5Stlg.js +0 -442
  201. package/dist/CountdownBlock-Bn5w7C-p.js +0 -92
  202. package/dist/ModuleBrowserModal-AJt--JPh.js +0 -202
  203. package/dist/ModulePreviewCanvas-BKYOcVCh.js +0 -106
  204. package/dist/NumberWithSuffix-Bf3rNxza.js +0 -89
  205. package/dist/SaveModuleDialog-B4QX9eiv.js +0 -125
  206. package/dist/ToggleSwitch-DUNuUPsZ.js +0 -37
  207. package/dist/cdn/chunks/CloudEditor-CEa3Xgqh.js.map +0 -1
  208. package/dist/cdn/chunks/CountdownBlock-eGUE7hhw.js +0 -93
  209. package/dist/cdn/chunks/ModuleBrowserModal-DznWWtBI.js +0 -198
  210. package/dist/cdn/chunks/ModuleBrowserModal-DznWWtBI.js.map +0 -1
  211. package/dist/cdn/chunks/ModulePreviewCanvas-D-h7fr87.js +0 -107
  212. package/dist/cdn/chunks/ModulePreviewCanvas-D-h7fr87.js.map +0 -1
  213. package/dist/cdn/chunks/NumberWithSuffix-Dt-0odUN.js +0 -91
  214. package/dist/cdn/chunks/NumberWithSuffix-Dt-0odUN.js.map +0 -1
  215. package/dist/cdn/chunks/SaveModuleDialog-BpFhTi-k.js +0 -120
  216. package/dist/cdn/chunks/SaveModuleDialog-BpFhTi-k.js.map +0 -1
  217. package/dist/cdn/chunks/ToggleSwitch-OrmX_w18.js +0 -39
  218. package/dist/cdn/chunks/ToggleSwitch-OrmX_w18.js.map +0 -1
  219. package/dist/cdn/chunks/blockTypeIcons-B0Hjh42a.js +0 -22
  220. package/dist/cdn/chunks/ca-DbWoy4rG.js.map +0 -1
  221. package/dist/cdn/chunks/de-CgGOnerg.js.map +0 -1
  222. package/dist/cdn/chunks/en-DrUV9xth.js.map +0 -1
  223. package/dist/cdn/chunks/es-DwbKjU7q.js.map +0 -1
  224. package/dist/cdn/chunks/features-CLIZ7Q-Y.js +0 -7657
  225. package/dist/cdn/chunks/features-CLIZ7Q-Y.js.map +0 -1
  226. package/dist/cdn/chunks/icons-GX40Qm2W.js +0 -690
  227. package/dist/cdn/chunks/icons-GX40Qm2W.js.map +0 -1
  228. package/dist/cdn/chunks/media-library-yYAkAagU.js.map +0 -1
  229. package/dist/cdn/chunks/pt-BR-Bcc5Tjed.js.map +0 -1
  230. package/dist/cdn/chunks/quality-DffYv9j5.js +0 -2180
  231. package/dist/cdn/chunks/quality-DffYv9j5.js.map +0 -1
  232. package/dist/cdn/chunks/renderer-DpBGiXOg.js.map +0 -1
  233. package/dist/cdn/chunks/src-9K6uFiuK.js +0 -509
  234. package/dist/cdn/chunks/src-9K6uFiuK.js.map +0 -1
  235. package/dist/cdn/chunks/styles-DHSmjlpX.js.map +0 -1
  236. package/dist/cdn/chunks/tiptap-C2indasq.js.map +0 -1
  237. package/dist/dist-BDVm2MrW.js +0 -5
  238. package/dist/dist-DbekZDmJ.js +0 -5
@@ -1,17 +1,26 @@
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
- import { At as k, E as A, En as j, Kt as M, Ln as N, Pt as P, Qt as ee, S as F, St as I, Un as L, Ut as R, Vt as te, Wt as z, X as B, Xt as V, Yt as ne, _ as re, _n as H, _t as U, at as W, b as G, c as K, cn as q, d as ie, dn as ae, dt as J, f as Y, g as oe, h as se, jt as X, k as Z, l as Q, m as ce, mt as le, nr as ue, p as de, s as fe, st as pe, tt as me, u as he, un as ge, v as _e, x as ve, xt as ye, y as be } from "./features-CLIZ7Q-Y.js";
3
- import { S as xe, x as Se } from "./icons-GX40Qm2W.js";
4
- import { a as Ce, c as we, d as Te, f as Ee, i as De, l as Oe, n as ke, o as Ae, r as je, s as Me, t as Ne, u as Pe } from "./styles-DHSmjlpX.js";
5
- import { d as $ } from "./ColorPicker-ll8pynws.js";
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 N, t as P } from "./useEditorCore-BA6mspzD.js";
5
+ import { _ as F } from "./dist-CiBEt0VR.js";
6
+ import { t as I } from "./dist-CxTt8FRE.js";
7
+ import { A as L, F as R, c as z, r as B, s as V, t as H, u as U } from "./keys-D7kUmfpE.js";
8
+ import { t as W } from "./useI18n-8Wd7G-cq.js";
9
+ import { At as G, Dt as K, F as ee, Ft as q, P as J, et as te, j as ne, rt as Y, u as re, w as ie } from "./icons-CYWw8Xfp.js";
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 se, f as Q, i as ce, l as le, n as ue, o as de, p as fe, r as pe, s as me, t as he, u as ge } from "./styles-DMOEiSX9.js";
13
+ import { d as $ } from "./ColorPicker-DZSzZ5ZP.js";
14
+ import { S as _e, _ as ve, a as ye, c as be, d as xe, f as Se, h as Ce, i as we, l as Te, m as Ee, n as De, o as Oe, r as ke, s as Ae, t as je, u as Me, v as Ne } from "./cloud-BJlbXGTJ.js";
6
15
  //#region src/cloud/composables/useSnapshotPreview.ts
7
- function Fe(t) {
16
+ function Pe(t) {
8
17
  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;
9
18
  r(() => {
10
19
  m = !0;
11
20
  });
12
21
  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);
13
22
  function y() {
14
- i.state.template?.id && !u.value && (u.value = Y({
23
+ i.state.template?.id && !u.value && (u.value = Oe({
15
24
  authManager: n,
16
25
  templateId: i.state.template.id,
17
26
  onRestore: b,
@@ -63,7 +72,7 @@ function Fe(t) {
63
72
  }
64
73
  //#endregion
65
74
  //#region src/cloud/composables/useCloudPanelState.ts
66
- function Ie() {
75
+ function Fe() {
67
76
  let e = c(null), t = f({
68
77
  get: () => e.value === "ai-chat",
69
78
  set: (t) => e.value = t ? "ai-chat" : null
@@ -86,7 +95,7 @@ function Ie() {
86
95
  function g(t) {
87
96
  l.value = !1, e.value = e.value === t ? null : t;
88
97
  }
89
- return H(u, () => {
98
+ return I(u, () => {
90
99
  l.value = !1;
91
100
  }), {
92
101
  activePanel: e,
@@ -108,10 +117,10 @@ function Ie() {
108
117
  }
109
118
  //#endregion
110
119
  //#region src/cloud/composables/useCollabUndoWarning.ts
111
- function Le(e) {
112
- let { isCollaborationEnabled: t, getCollaboratorCount: n, canUndo: r } = e, i = c(!1), a = c(!1), { start: o } = j(() => {
120
+ function Ie(e) {
121
+ let { isCollaborationEnabled: t, getCollaboratorCount: n, canUndo: r } = e, i = c(!1), a = c(!1), { start: o } = F(() => {
113
122
  a.value = !1;
114
- }, ue, { immediate: !1 });
123
+ }, k, { immediate: !1 });
115
124
  function s() {
116
125
  i.value || !t.value || n() === 0 || !r.value || (i.value = !0, a.value = !0, o());
117
126
  }
@@ -122,8 +131,8 @@ function Le(e) {
122
131
  }
123
132
  //#endregion
124
133
  //#region src/cloud/composables/useCloudFeatureFlags.ts
125
- function Re(e) {
126
- 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 } = j(() => {
134
+ function Le(e) {
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 } = F(() => {
127
136
  p.value = "idle";
128
137
  }, 3e3, { immediate: !1 });
129
138
  return {
@@ -141,7 +150,7 @@ function Re(e) {
141
150
  }
142
151
  //#endregion
143
152
  //#region src/cloud/composables/useCloudMediaLibrary.ts
144
- function ze(e) {
153
+ function Re(e) {
145
154
  let { onRequestMedia: t, mediaLibraryOpen: n, mediaLibraryAccept: i, authManager: a, getMediaConfig: o, onError: s } = e, c = null;
146
155
  function l(e) {
147
156
  return {
@@ -175,7 +184,7 @@ function ze(e) {
175
184
  let t = f(e);
176
185
  if (t) return s?.(t), null;
177
186
  try {
178
- let { MediaApiClient: t } = await import("./src-9K6uFiuK.js");
187
+ let { MediaApiClient: t } = await import("./src-D6F_3XkE.js");
179
188
  return l(await new t(a).uploadMedia(e));
180
189
  } catch (e) {
181
190
  return s?.(e), null;
@@ -203,11 +212,11 @@ function ze(e) {
203
212
  }
204
213
  //#endregion
205
214
  //#region src/cloud/composables/useCloudInitialization.ts
206
- function Be(e) {
207
- 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 A({
215
+ function ze(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 _e({
208
217
  ...t.auth,
209
218
  onError: t.onError
210
- }), _ = Q({
219
+ }), _ = ke({
211
220
  authManager: g,
212
221
  onError: t.onError
213
222
  }), v = c(/* @__PURE__ */ new Map()), y = ve({
@@ -216,17 +225,17 @@ function Be(e) {
216
225
  templateDefaults: t.templateDefaults,
217
226
  onError: t.onError,
218
227
  lockedBlocks: v
219
- }), b = ce({
228
+ }), b = be({
220
229
  authManager: g,
221
230
  onError: t.onError
222
231
  });
223
- t.mcp?.enabled && fe({
232
+ t.mcp?.enabled && je({
224
233
  editor: y,
225
234
  channel: b.channel,
226
235
  onOperation: t.mcp.onOperation
227
236
  });
228
237
  let x = null;
229
- t.collaboration?.enabled && (x = oe({
238
+ t.collaboration?.enabled && (x = Me({
230
239
  authManager: g,
231
240
  editor: y,
232
241
  channel: b.channel,
@@ -237,8 +246,8 @@ function Be(e) {
237
246
  onBlockUnlocked: t.collaboration.onBlockUnlocked
238
247
  }), O(() => x.lockedBlocks.value, (e) => {
239
248
  v.value = e;
240
- }, { immediate: !0 }), se(y, x));
241
- let S = f(() => !!t.collaboration?.enabled && _.hasFeature("collaboration")), C = Z({
249
+ }, { immediate: !0 }), Te(y, x));
250
+ let S = f(() => !!t.collaboration?.enabled && _.hasFeature("collaboration")), C = P({
242
251
  editor: y,
243
252
  config: {
244
253
  uiTheme: t.uiTheme,
@@ -253,7 +262,7 @@ function Be(e) {
253
262
  logicTags: t.logicTags,
254
263
  displayConditions: t.displayConditions,
255
264
  onRequestMedia: null,
256
- lint: Ee(t),
265
+ lint: Q(t),
257
266
  onSave: () => {
258
267
  p.value?.().catch((e) => {
259
268
  t.onError?.(e);
@@ -274,13 +283,13 @@ function Be(e) {
274
283
  keyboardOptions: { onBeforeUndo: () => h?.showCollabUndoWarning() },
275
284
  editorRoot: e.editorRoot,
276
285
  containerEl: e.containerEl
277
- }), w = Le({
286
+ }), w = Ie({
278
287
  isCollaborationEnabled: S,
279
288
  getCollaboratorCount: () => x?.collaborators.value.length ?? 0,
280
289
  canUndo: C.history.canUndo
281
290
  });
282
291
  h = w;
283
- let T = Fe({
292
+ let T = Pe({
284
293
  authManager: g,
285
294
  editor: y,
286
295
  history: C.history,
@@ -289,11 +298,11 @@ function Be(e) {
289
298
  onError: t.onError
290
299
  });
291
300
  m = T;
292
- let E = Ie(), D = G(t.ai), k = Re({
301
+ let E = Fe(), D = Ce(t.ai), k = Le({
293
302
  planConfigInstance: _,
294
303
  aiConfig: D,
295
304
  editor: y
296
- }), j = ze({
305
+ }), A = Re({
297
306
  onRequestMedia: t.onRequestMedia,
298
307
  mediaLibraryOpen: E.mediaLibraryOpen,
299
308
  mediaLibraryAccept: E.mediaLibraryAccept,
@@ -301,23 +310,23 @@ function Be(e) {
301
310
  getMediaConfig: () => _.config.value?.media ?? null,
302
311
  onError: t.onError
303
312
  });
304
- me({
313
+ j({
305
314
  onBlockMove: y.moveBlock,
306
315
  onBlockAdd: y.addBlock
307
316
  });
308
- let N = he({
317
+ let M = we({
309
318
  authManager: g,
310
319
  getFontsConfig: () => t.fonts,
311
320
  canUseCustomFonts: () => _.hasFeature("custom_fonts")
312
- }), P = ie({
321
+ }), F = ye({
313
322
  authManager: g,
314
323
  getTemplateId: () => y.state.template?.id ?? null,
315
324
  save: () => y.save(),
316
- exportHtml: (e) => N.exportHtml(e),
325
+ exportHtml: (e) => M.exportHtml(e),
317
326
  onError: t.onError,
318
327
  isAuthReady: l,
319
328
  onBeforeTestEmail: t.onBeforeTestEmail
320
- }), F = _e({
329
+ }), I = Se({
321
330
  authManager: g,
322
331
  getTemplateId: () => y.state.template?.id ?? null,
323
332
  getSocketId: () => b.getSocketId(),
@@ -326,56 +335,50 @@ function Be(e) {
326
335
  isAuthReady: l,
327
336
  hasCommentingFeature: () => t.commenting !== !1 && _.hasFeature("commenting")
328
337
  });
329
- re({
330
- comments: F,
338
+ xe({
339
+ comments: I,
331
340
  channel: b.channel
332
341
  });
333
- let I = de({
334
- authManager: g,
335
- onError: t.onError
336
- }), L = c(!1), R = c(null), B = c(!1), V = be({
342
+ let z = fe({
343
+ provider: Ae(g),
344
+ editor: y,
345
+ onError: t.onError,
346
+ isAvailable: () => t.savedBlocks !== !1 && _.hasFeature("saved_modules")
347
+ }), W = Ee({
337
348
  authManager: g,
338
349
  getTemplateId: () => y.state.template?.id ?? null
339
350
  });
340
- function H(e) {
351
+ function G(e) {
341
352
  E.commentsOpen.value = !0, queueMicrotask(() => {
342
353
  o()?.filterByBlock(e);
343
354
  });
344
355
  }
345
- a(q, j.handleRequestMedia), a(M, g), a(z, D), a(ee, F), a(ge, I), a(ae, V), a(ne, {
356
+ a(L, A.handleRequestMedia), a(B, g), a(H, D), a(U, I), a(R, W), a(V, {
346
357
  plan: _,
347
358
  ai: D,
348
359
  comments: {
349
- getBlockCount: (e) => F.commentCountByBlock.value.get(e) ?? 0,
350
- openForBlock: H
360
+ getBlockCount: (e) => I.commentCountByBlock.value.get(e) ?? 0,
361
+ openForBlock: G
351
362
  },
352
- savedModules: {
353
- openSaveDialog: (e) => {
354
- R.value = e ?? null, L.value = !0;
355
- },
356
- openBrowser: () => {
357
- B.value = !0;
358
- },
359
- moduleCount: f(() => I.modules.value.length)
360
- }
363
+ savedBlocks: z.capability
361
364
  });
362
- function U(e) {
365
+ function K(e) {
363
366
  _.hasFeature("theme_customization") && (C.themeOverrides.value = e);
364
367
  }
365
- function W(e) {
368
+ function ee(e) {
366
369
  y.setUiTheme(e);
367
370
  }
368
- async function J() {
371
+ async function q() {
369
372
  s.value = !0, u.value = null;
370
373
  try {
371
374
  if (await g.initialize(), d) return;
372
375
  l.value = !0;
373
- let e = await K({ authManager: g });
376
+ let e = await De({ authManager: g });
374
377
  if (d) return;
375
378
  if (!e.api.ok) throw Error("Health check failed: API is not reachable");
376
379
  if (!e.auth.ok) throw Error(`Health check failed: authentication error${e.auth.error ? ` - ${e.auth.error}` : ""}`);
377
- if (e.websocket.ok || te.warn("WebSocket health check failed:", e.websocket.error ?? "unknown error", "-- real-time features will be disabled."), await _.fetchConfig(), d) return;
378
- r.setCustomFontsEnabled(_.hasFeature("custom_fonts")), t.customBlocks?.length && _.hasFeature("custom_blocks") && C.registerCustomBlocks(t.customBlocks), t.theme && _.hasFeature("theme_customization") && (C.themeOverrides.value = t.theme), t.modules !== !1 && _.hasFeature("saved_modules") && I.loadModules(), i("ready");
380
+ if (e.websocket.ok || N.warn("WebSocket health check failed:", e.websocket.error ?? "unknown error", "-- real-time features will be disabled."), await _.fetchConfig(), d) return;
381
+ r.setCustomFontsEnabled(_.hasFeature("custom_fonts")), t.customBlocks?.length && _.hasFeature("custom_blocks") && C.registerCustomBlocks(t.customBlocks), t.theme && _.hasFeature("theme_customization") && (C.themeOverrides.value = t.theme), i("ready");
379
382
  } catch (e) {
380
383
  if (d) return;
381
384
  let n = e instanceof Error ? e : Error("Initialization failed", { cause: e });
@@ -384,7 +387,7 @@ function Be(e) {
384
387
  d || (s.value = !1);
385
388
  }
386
389
  }
387
- function Y() {
390
+ function J() {
388
391
  d = !0, r.cleanupFontLinks(), b.disconnect(), C.destroy(), t.onUnmount?.();
389
392
  }
390
393
  return {
@@ -401,31 +404,28 @@ function Be(e) {
401
404
  core: C,
402
405
  aiConfig: D,
403
406
  featureFlags: k,
404
- mediaLib: j,
405
- exporter: N,
406
- testEmail: P,
407
- commentsInstance: F,
408
- savedModulesHeadless: I,
409
- scoringInstance: V,
407
+ mediaLib: A,
408
+ exporter: M,
409
+ testEmail: F,
410
+ commentsInstance: I,
411
+ savedBlocks: z,
412
+ scoringInstance: W,
410
413
  panelState: E,
411
414
  snapshotPreview: T,
412
415
  collabWarning: w,
413
- showSaveModuleDialog: L,
414
- showModuleBrowserModal: B,
415
- saveModulePreSelectedBlockId: R,
416
416
  onSaveHook: p,
417
- initialize: J,
418
- destroy: Y,
419
- setThemeOverrides: U,
420
- setUiTheme: W,
421
- openCommentsForBlock: H
417
+ initialize: q,
418
+ destroy: J,
419
+ setThemeOverrides: K,
420
+ setUiTheme: ee,
421
+ openCommentsForBlock: G
422
422
  };
423
423
  }
424
424
  //#endregion
425
425
  //#region src/utils/preRenderCustomBlocks.ts
426
- async function Ve(e, t) {
426
+ async function Be(e, t) {
427
427
  let n = async (e) => {
428
- if (L(e)) {
428
+ if (A(e)) {
429
429
  let n = e;
430
430
  try {
431
431
  n.renderedHtml = await t.renderCustomBlock(n);
@@ -442,10 +442,10 @@ async function Ve(e, t) {
442
442
  }
443
443
  //#endregion
444
444
  //#region src/cloud/composables/useCloudLifecycle.ts
445
- function He(e) {
445
+ function Ve(e) {
446
446
  let { config: t, editor: n, websocket: r, planConfigInstance: i, snapshotPreview: a, core: o, exporter: s, featureFlags: c, isDestroyed: l } = e;
447
447
  function u() {
448
- return F(i.config.value.websocket);
448
+ return Ne(i.config.value.websocket);
449
449
  }
450
450
  async function d(e) {
451
451
  let i = await n.create(e);
@@ -458,7 +458,7 @@ function He(e) {
458
458
  async function p() {
459
459
  c.isSaveExporting.value = !0, c.saveStatus.value = "idle";
460
460
  try {
461
- if (await Ve(n.content.value, o.registry), l()) throw Error("Component unmounted during save");
461
+ if (await Be(n.content.value, o.registry), l()) throw Error("Component unmounted during save");
462
462
  let e = await n.save();
463
463
  if (l()) throw Error("Component unmounted during save");
464
464
  a.initSnapshotHistory(), a.snapshotHistoryInstance.value?.loadSnapshots();
@@ -485,7 +485,7 @@ function He(e) {
485
485
  }
486
486
  //#endregion
487
487
  //#region src/cloud/composables/useCloudSaveGate.ts
488
- function Ue(e) {
488
+ function He(e) {
489
489
  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);
490
490
  async function o(e) {
491
491
  return a.value ? (n = e, t.value = !0, !1) : (await e(), !0);
@@ -508,7 +508,7 @@ function Ue(e) {
508
508
  }
509
509
  //#endregion
510
510
  //#region src/cloud/components/CloudSaveGateModal.vue?vue&type=script&setup=true&lang.ts
511
- 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__ */ E({
511
+ var Ue = ["aria-label"], We = { 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)]" }, Ge = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ke = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, qe = { class: "tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Je = { 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" }, Ye = { class: "tpl:text-xs tpl:text-[var(--tpl-text)]" }, Xe = { class: "tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, Ze = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, Qe = /* @__PURE__ */ E({
512
512
  __name: "CloudSaveGateModal",
513
513
  props: {
514
514
  open: { type: Boolean },
@@ -516,7 +516,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
516
516
  },
517
517
  emits: ["cancel", "confirm"],
518
518
  setup(e, { emit: t }) {
519
- let n = t, { t: r } = W();
519
+ let n = t, { t: r } = X();
520
520
  return (t, a) => (i(), v(y, {
521
521
  "enter-active-class": "tpl:transition-opacity tpl:duration-150",
522
522
  "leave-active-class": "tpl:transition-opacity tpl:duration-150",
@@ -530,18 +530,18 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
530
530
  "aria-label": h(r).saveGate.title,
531
531
  class: "tpl:fixed tpl:inset-0 tpl:z-50 tpl:flex tpl:items-center tpl:justify-center tpl:bg-black/40 tpl:p-6",
532
532
  onClick: a[2] ||= _((e) => n("cancel"), ["self"])
533
- }, [x("div", Ge, [
534
- x("header", Ke, [D(h(J), {
533
+ }, [x("div", We, [
534
+ x("header", Ge, [D(h(re), {
535
535
  size: 18,
536
536
  "stroke-width": 2,
537
537
  class: "tpl:text-[var(--tpl-warning)]"
538
- }), x("h2", qe, d(h(r).saveGate.title), 1)]),
539
- x("p", Je, d(h(r).saveGate.body), 1),
540
- x("ul", Ye, [(i(!0), p(w, null, o(e.issues, (e) => (i(), p("li", {
538
+ }), x("h2", Ke, d(h(r).saveGate.title), 1)]),
539
+ x("p", qe, d(h(r).saveGate.body), 1),
540
+ x("ul", Je, [(i(!0), p(w, null, o(e.issues, (e) => (i(), p("li", {
541
541
  key: `${e.ruleId}-${e.blockId ?? "template"}`,
542
542
  class: "tpl:flex tpl:flex-col tpl:gap-0.5 tpl:rounded tpl:px-2 tpl:py-1.5"
543
- }, [x("span", Xe, d(e.message), 1), x("span", Ze, d(e.ruleId), 1)]))), 128))]),
544
- x("footer", Qe, [x("button", {
543
+ }, [x("span", Ye, d(e.message), 1), x("span", Xe, d(e.ruleId), 1)]))), 128))]),
544
+ x("footer", Ze, [x("button", {
545
545
  type: "button",
546
546
  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)]",
547
547
  onClick: a[0] ||= (e) => n("cancel")
@@ -550,11 +550,11 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
550
550
  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",
551
551
  onClick: a[1] ||= (e) => n("confirm")
552
552
  }, d(h(r).saveGate.confirm), 1)])
553
- ])], 8, We)) : m("", !0)]),
553
+ ])], 8, Ue)) : m("", !0)]),
554
554
  _: 1
555
555
  }));
556
556
  }
557
- }), et = {
557
+ }), $e = {
558
558
  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",
559
559
  style: {
560
560
  "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)",
@@ -563,24 +563,24 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
563
563
  "box-shadow": "var(--tpl-shadow-md)",
564
564
  "border-bottom": "1px solid var(--tpl-border)"
565
565
  }
566
- }, tt = { class: "tpl-header-left tpl:flex tpl:min-w-[200px] tpl:items-center tpl:gap-3" }, nt = {
566
+ }, et = { class: "tpl-header-left tpl:flex tpl:min-w-[200px] tpl:items-center tpl:gap-3" }, tt = {
567
567
  key: 0,
568
568
  class: "tpl:text-xs tpl:opacity-60 tpl:text-[var(--tpl-text-muted)]"
569
- }, 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 = {
569
+ }, nt = { class: "tpl-header-center tpl:flex tpl:items-center tpl:justify-center tpl:gap-10" }, rt = { class: "tpl-header-right tpl:flex tpl:min-w-[200px] tpl:items-center tpl:justify-end tpl:gap-3" }, it = ["data-tooltip"], at = {
570
570
  key: 1,
571
571
  "aria-live": "polite",
572
572
  class: "tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-success)]"
573
- }, st = {
573
+ }, ot = {
574
574
  key: 2,
575
575
  "aria-live": "polite",
576
576
  class: "tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
577
- }, ct = ["aria-label", "aria-expanded"], lt = {
577
+ }, st = ["aria-label", "aria-expanded"], ct = {
578
578
  key: 0,
579
579
  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)]"
580
- }, ut = ["aria-expanded"], dt = {
580
+ }, lt = ["aria-expanded"], ut = {
581
581
  key: 0,
582
582
  class: "tpl:absolute tpl:right-0 tpl:top-full tpl:z-50 tpl:mt-1 tpl:origin-top-right"
583
- }, ft = ["disabled"], pt = ["disabled"], mt = /* @__PURE__ */ E({
583
+ }, dt = ["disabled"], ft = ["disabled"], pt = /* @__PURE__ */ E({
584
584
  __name: "CloudHeader",
585
585
  props: {
586
586
  editor: {},
@@ -598,22 +598,22 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
598
598
  },
599
599
  emits: ["save"],
600
600
  setup(e) {
601
- let t = u(() => import("./CollaboratorBar-Bk1gD02G.js")), n = u(() => import("./features-CLIZ7Q-Y.js").then((e) => e.r)), r = u(() => import("./AiFeatureMenu-CIBHAGSz.js")), { t: a, format: o } = W();
602
- return (c, l) => (i(), p("header", et, [
603
- x("div", tt, [e.featureFlags.templateLimit.value === null ? m("", !0) : (i(), p("span", nt, d(h(o)(h(a).header.templatesUsed, {
601
+ let t = u(() => import("./CollaboratorBar-BS3rJy6-.js")), n = u(() => import("./SnapshotHistory-Bf1uovti.js")), r = u(() => import("./AiFeatureMenu-Duwg413F.js")), { t: a, format: o } = X();
602
+ return (c, l) => (i(), p("header", $e, [
603
+ x("div", et, [e.featureFlags.templateLimit.value === null ? m("", !0) : (i(), p("span", tt, d(h(o)(h(a).header.templatesUsed, {
604
604
  used: e.featureFlags.templateCount.value,
605
605
  max: e.featureFlags.templateLimit.value
606
606
  })), 1))]),
607
- x("div", rt, [
608
- D(Ae, {
607
+ x("div", nt, [
608
+ D(de, {
609
609
  viewport: e.editor.state.viewport,
610
610
  onChange: e.editor.setViewport
611
611
  }, null, 8, ["viewport", "onChange"]),
612
- D(De, {
612
+ D(ce, {
613
613
  "dark-mode": e.editor.state.darkMode,
614
614
  onChange: e.editor.setDarkMode
615
615
  }, null, 8, ["dark-mode", "onChange"]),
616
- D(Ce, {
616
+ D(Z, {
617
617
  "preview-mode": e.editor.state.previewMode,
618
618
  onChange: e.editor.setPreviewMode
619
619
  }, null, 8, ["preview-mode", "onChange"]),
@@ -637,19 +637,19 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
637
637
  "onNavigate"
638
638
  ])) : m("", !0)
639
639
  ]),
640
- x("div", it, [
640
+ x("div", rt, [
641
641
  e.featureFlags.saveStatus.value === "error" ? (i(), p("div", {
642
642
  key: 0,
643
643
  "aria-live": "assertive",
644
644
  class: "tpl-tooltip tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]",
645
645
  "data-tooltip": e.featureFlags.saveErrorMessage.value
646
- }, [D(h(X), {
646
+ }, [D(h(G), {
647
647
  size: 12,
648
648
  "stroke-width": 2.5
649
- }), T(" " + d(h(a).header.saveFailed), 1)], 8, at)) : e.featureFlags.saveStatus.value === "saved" ? (i(), p("div", ot, [D(h(P), {
649
+ }), T(" " + d(h(a).header.saveFailed), 1)], 8, it)) : e.featureFlags.saveStatus.value === "saved" ? (i(), p("div", at, [D(h(q), {
650
650
  size: 12,
651
651
  "stroke-width": 2.5
652
- }), T(" " + d(h(a).header.saved), 1)])) : e.editor.state.isDirty ? (i(), p("div", st, [l[4] ||= x("span", { class: "tpl-pulse tpl:size-1.5 tpl:rounded-full tpl:bg-[var(--tpl-primary)]" }, null, -1), T(" " + d(h(a).header.unsaved), 1)])) : m("", !0),
652
+ }), T(" " + d(h(a).header.saved), 1)])) : e.editor.state.isDirty ? (i(), p("div", ot, [l[4] ||= x("span", { class: "tpl-pulse tpl:size-1.5 tpl:rounded-full tpl:bg-[var(--tpl-primary)]" }, null, -1), T(" " + d(h(a).header.unsaved), 1)])) : m("", !0),
653
653
  e.commentsInstance.isEnabled.value && e.featureFlags.hasTemplateSaved.value ? (i(), p("button", {
654
654
  key: 3,
655
655
  "aria-label": e.commentsInstance.unresolvedCount.value > 0 ? `${h(a).comments.button} (${e.commentsInstance.unresolvedCount.value})` : h(a).comments.button,
@@ -662,13 +662,13 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
662
662
  }),
663
663
  onClick: l[0] ||= (t) => e.panelState.commentsOpen.value = !e.panelState.commentsOpen.value
664
664
  }, [
665
- D(h(ye), {
665
+ D(h(te), {
666
666
  size: 16,
667
667
  "stroke-width": 2
668
668
  }),
669
669
  T(" " + d(h(a).comments.button) + " ", 1),
670
- e.commentsInstance.unresolvedCount.value > 0 && !e.panelState.commentsOpen.value ? (i(), p("span", lt, d(e.commentsInstance.unresolvedCount.value), 1)) : m("", !0)
671
- ], 14, ct)) : m("", !0),
670
+ e.commentsInstance.unresolvedCount.value > 0 && !e.panelState.commentsOpen.value ? (i(), p("span", ct, d(e.commentsInstance.unresolvedCount.value), 1)) : m("", !0)
671
+ ], 14, st)) : m("", !0),
672
672
  e.featureFlags.canUseAiGeneration.value && e.featureFlags.hasTemplateSaved.value ? (i(), p("div", {
673
673
  key: 4,
674
674
  ref: (t) => e.panelState.aiMenuRef.value = t,
@@ -677,11 +677,11 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
677
677
  "aria-expanded": e.panelState.aiMenuOpen.value,
678
678
  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"]),
679
679
  onClick: l[1] ||= _((...t) => e.panelState.toggleAiMenu && e.panelState.toggleAiMenu(...t), ["stop"])
680
- }, [D(h(le), {
680
+ }, [D(h(ie), {
681
681
  size: 16,
682
682
  "stroke-width": 2,
683
683
  class: "tpl-ai-btn-icon"
684
- }), T(" " + d(h(a).aiChat.button), 1)], 10, ut), D(y, {
684
+ }), T(" " + d(h(a).aiChat.button), 1)], 10, lt), D(y, {
685
685
  "enter-active-class": "tpl:transition-all tpl:duration-150 tpl:ease-out",
686
686
  "enter-from-class": "tpl:scale-95 tpl:opacity-0",
687
687
  "enter-to-class": "tpl:scale-100 tpl:opacity-100",
@@ -689,7 +689,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
689
689
  "leave-from-class": "tpl:scale-100 tpl:opacity-100",
690
690
  "leave-to-class": "tpl:scale-95 tpl:opacity-0"
691
691
  }, {
692
- default: s(() => [e.panelState.aiMenuOpen.value ? (i(), p("div", dt, [D(h(r), {
692
+ default: s(() => [e.panelState.aiMenuOpen.value ? (i(), p("div", ut, [D(h(r), {
693
693
  "active-feature": e.panelState.activeAiFeature.value,
694
694
  onSelect: e.panelState.handleAiFeatureSelect
695
695
  }, null, 8, ["active-feature", "onSelect"])])) : m("", !0)]),
@@ -705,16 +705,16 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
705
705
  },
706
706
  disabled: e.testEmail.isSending.value || !e.featureFlags.hasTemplateSaved.value,
707
707
  onClick: l[2] ||= (t) => e.panelState.testEmailModalOpen.value = !0
708
- }, [e.testEmail.isSending.value ? (i(), v(h(I), {
708
+ }, [e.testEmail.isSending.value ? (i(), v(h(Y), {
709
709
  key: 1,
710
710
  class: "tpl-spinner",
711
711
  size: 16,
712
712
  "stroke-width": 2
713
- })) : (i(), v(h(U), {
713
+ })) : (i(), v(h(ne), {
714
714
  key: 0,
715
715
  size: 16,
716
716
  "stroke-width": 2
717
- })), T(" " + d(h(a).testEmail.button), 1)], 10, ft)) : m("", !0),
717
+ })), T(" " + d(h(a).testEmail.button), 1)], 10, dt)) : m("", !0),
718
718
  x("button", {
719
719
  class: b(h($)),
720
720
  style: {
@@ -724,20 +724,20 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
724
724
  },
725
725
  disabled: e.isSaveDisabled,
726
726
  onClick: l[3] ||= (e) => c.$emit("save")
727
- }, [e.isSaving ? (i(), v(h(I), {
727
+ }, [e.isSaving ? (i(), v(h(Y), {
728
728
  key: 1,
729
729
  class: "tpl-spinner",
730
730
  size: 16,
731
731
  "stroke-width": 2
732
- })) : (i(), v(h(Se), {
732
+ })) : (i(), v(h(J), {
733
733
  key: 0,
734
734
  size: 16,
735
735
  "stroke-width": 2
736
- })), T(" " + d(e.isSaving ? h(a).header.saving : h(a).header.save), 1)], 10, pt)
736
+ })), T(" " + d(e.isSaving ? h(a).header.saving : h(a).header.save), 1)], 10, ft)
737
737
  ])
738
738
  ]));
739
739
  }
740
- }), ht = /* @__PURE__ */ E({
740
+ }), mt = /* @__PURE__ */ E({
741
741
  __name: "CloudPanels",
742
742
  props: {
743
743
  config: {},
@@ -746,41 +746,28 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
746
746
  panelState: {},
747
747
  planConfigInstance: {},
748
748
  testEmail: {},
749
- mediaLib: {},
750
- savedModulesHeadless: {},
751
- showSaveModuleDialog: { type: Boolean },
752
- saveModulePreSelectedBlockId: {},
753
- showModuleBrowserModal: { type: Boolean }
749
+ mediaLib: {}
754
750
  },
755
- emits: [
756
- "update:showSaveModuleDialog",
757
- "update:saveModulePreSelectedBlockId",
758
- "update:showModuleBrowserModal",
759
- "send-test-email",
760
- "module-insert"
761
- ],
751
+ emits: ["send-test-email"],
762
752
  setup(e, { expose: t, emit: n }) {
763
- let r = u(() => import("./features-CLIZ7Q-Y.js").then((e) => e.o)), a = u(() => import("./features-CLIZ7Q-Y.js").then((e) => e.a)), o = u(() => import("./features-CLIZ7Q-Y.js").then((e) => e.i)), s = u(() => import("./features-CLIZ7Q-Y.js").then((e) => e.n)), l = u(() => import("./features-CLIZ7Q-Y.js").then((e) => e.t)), d = u(() => import("./SaveModuleDialog-BpFhTi-k.js")), f = u(() => import("./ModuleBrowserModal-DznWWtBI.js")), g = u(async () => {
753
+ let r = u(() => import("./AiChatSidebar-A1CuWGY0.js")), a = u(() => import("./CommentsSidebar-DHdRiGPX.js")), o = u(() => import("./DesignReferenceSidebar-Dre99DTH.js")), s = u(() => import("./TemplateScoringPanel-CTk8WwxU.js")), l = u(() => import("./TestEmailModal-BJTDxFHh.js")), d = u(async () => {
764
754
  try {
765
- return (await import("./src-9K6uFiuK.js")).MediaLibraryModal;
755
+ return (await import("./src-D6F_3XkE.js")).MediaLibraryModal;
766
756
  } catch {
767
757
  throw Error("[Templatical] Cloud media library requires the optional peer dependency '@templatical/media-library'. Please install it.");
768
758
  }
769
- }), _ = n;
770
- function y(e, t, n) {
759
+ }), f = n;
760
+ function m(e, t, n) {
771
761
  t.history.record(), n.setContent(e), t.conditionPreview.reset();
772
762
  }
773
- function b(e, t) {
774
- _("module-insert", e, t);
763
+ let g = c(null);
764
+ function _(e) {
765
+ g.value?.filterByBlock(e);
775
766
  }
776
- let x = c(null);
777
- function S(e) {
778
- x.value?.filterByBlock(e);
779
- }
780
- return t({ filterCommentsByBlock: S }), (t, n) => (i(), p(w, null, [
767
+ return t({ filterCommentsByBlock: _ }), (t, n) => (i(), p(w, null, [
781
768
  D(h(r), {
782
769
  visible: e.panelState.aiChatOpen.value,
783
- "on-apply": (t) => y(t, e.core, e.editor),
770
+ "on-apply": (t) => m(t, e.core, e.editor),
784
771
  onClose: n[0] ||= (t) => e.panelState.aiChatOpen.value = !1
785
772
  }, null, 8, ["visible", "on-apply"]),
786
773
  D(h(s), {
@@ -791,11 +778,11 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
791
778
  visible: e.panelState.designReferenceOpen.value,
792
779
  "has-existing-blocks": e.editor.content.value.blocks.length > 0,
793
780
  onClose: n[2] ||= (t) => e.panelState.designReferenceOpen.value = !1,
794
- onApply: n[3] ||= (t) => y(t, e.core, e.editor)
781
+ onApply: n[3] ||= (t) => m(t, e.core, e.editor)
795
782
  }, null, 8, ["visible", "has-existing-blocks"]),
796
783
  D(h(a), {
797
784
  ref_key: "commentsSidebar",
798
- ref: x,
785
+ ref: g,
799
786
  visible: e.panelState.commentsOpen.value,
800
787
  onClose: n[4] ||= (t) => e.panelState.commentsOpen.value = !1
801
788
  }, null, 8, ["visible"]),
@@ -804,7 +791,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
804
791
  "allowed-emails": e.testEmail.allowedEmails.value,
805
792
  "is-sending": e.testEmail.isSending.value,
806
793
  error: e.testEmail.error.value,
807
- onSend: n[5] ||= (e) => _("send-test-email", e),
794
+ onSend: n[5] ||= (e) => f("send-test-email", e),
808
795
  onClose: n[6] ||= (t) => e.panelState.testEmailModalOpen.value = !1
809
796
  }, null, 8, [
810
797
  "visible",
@@ -812,22 +799,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
812
799
  "is-sending",
813
800
  "error"
814
801
  ]),
815
- e.planConfigInstance.hasFeature("saved_modules") && e.config.modules !== !1 ? (i(), v(h(d), {
816
- key: 0,
817
- visible: e.showSaveModuleDialog,
818
- "pre-selected-block-id": e.saveModulePreSelectedBlockId,
819
- onClose: n[7] ||= (e) => {
820
- _("update:showSaveModuleDialog", !1), _("update:saveModulePreSelectedBlockId", null);
821
- },
822
- onSaved: n[8] ||= (t) => e.savedModulesHeadless.loadModules()
823
- }, null, 8, ["visible", "pre-selected-block-id"])) : m("", !0),
824
- e.planConfigInstance.hasFeature("saved_modules") && e.config.modules !== !1 ? (i(), v(h(f), {
825
- key: 1,
826
- visible: e.showModuleBrowserModal,
827
- onClose: n[9] ||= (e) => _("update:showModuleBrowserModal", !1),
828
- onInsert: b
829
- }, null, 8, ["visible"])) : m("", !0),
830
- D(h(g), {
802
+ D(h(d), {
831
803
  visible: e.panelState.mediaLibraryOpen.value,
832
804
  accept: e.panelState.mediaLibraryAccept.value,
833
805
  "popover-target": e.core.popoverRoot.value,
@@ -842,23 +814,23 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
842
814
  ])
843
815
  ], 64));
844
816
  }
845
- }), gt = {
817
+ }), ht = {
846
818
  key: 0,
847
819
  class: "tpl-loading tpl:absolute tpl:inset-0 tpl:z-overlay tpl:flex tpl:flex-col tpl:bg-[var(--tpl-bg)]"
848
- }, _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__ */ E({
820
+ }, gt = { class: "tpl:flex tpl:flex-1 tpl:overflow-hidden" }, _t = { 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)]" }, vt = /* @__PURE__ */ E({
849
821
  __name: "CloudLoadingOverlay",
850
822
  props: { visible: { type: Boolean } },
851
823
  setup(e) {
852
- return (t, n) => e.visible ? (i(), p("div", gt, [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", _t, [x("div", vt, [(i(), p(w, null, o(5, (e) => x("div", {
824
+ return (t, n) => e.visible ? (i(), p("div", ht, [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", gt, [x("div", _t, [(i(), p(w, null, o(5, (e) => x("div", {
853
825
  key: e,
854
826
  class: "tpl-shimmer tpl:size-7 tpl:rounded-[var(--tpl-radius-sm)]"
855
827
  })), 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);
856
828
  }
857
- }), bt = {
829
+ }), yt = {
858
830
  key: 0,
859
831
  role: "alert",
860
832
  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)]"
861
- }, 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__ */ E({
833
+ }, bt = { class: "tpl:flex tpl:size-16 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-danger-light)]" }, xt = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:text-center" }, St = { class: "tpl:text-lg tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Ct = { class: "tpl:max-w-md tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, wt = /* @__PURE__ */ E({
862
834
  __name: "CloudErrorOverlay",
863
835
  props: {
864
836
  error: {},
@@ -866,20 +838,20 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
866
838
  },
867
839
  emits: ["retry"],
868
840
  setup(e, { emit: t }) {
869
- let n = t, { t: r } = W();
841
+ let n = t, { t: r } = X();
870
842
  function a(e) {
871
843
  return "isUnauthorized" in e && e.isUnauthorized ? r.error.authFailed : "isNotFound" in e && e.isNotFound ? r.error.templateNotFound : r.error.defaultMessage;
872
844
  }
873
845
  function o(e) {
874
846
  return "isNotFound" in e && !!e.isNotFound;
875
847
  }
876
- return (t, s) => e.visible && e.error ? (i(), p("div", bt, [
877
- x("div", xt, [D(h(X), {
848
+ return (t, s) => e.visible && e.error ? (i(), p("div", yt, [
849
+ x("div", bt, [D(h(G), {
878
850
  size: 32,
879
851
  "stroke-width": 1.5,
880
852
  class: "tpl:text-[var(--tpl-danger)]"
881
853
  })]),
882
- x("div", St, [x("h2", Ct, d(h(r).error.title), 1), x("p", wt, d(a(e.error)), 1)]),
854
+ x("div", xt, [x("h2", St, d(h(r).error.title), 1), x("p", Ct, d(a(e.error)), 1)]),
883
855
  o(e.error) ? m("", !0) : (i(), p("button", {
884
856
  key: 0,
885
857
  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)]",
@@ -887,20 +859,20 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
887
859
  }, d(h(r).error.retry), 1))
888
860
  ])) : m("", !0);
889
861
  }
890
- }), Et = {
862
+ }), Tt = {
891
863
  key: 0,
892
864
  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)]"
893
- }, 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__ */ E({
865
+ }, Et = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:text-[var(--tpl-text)]" }, Dt = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ot = /* @__PURE__ */ E({
894
866
  __name: "SnapshotPreviewBanner",
895
867
  props: { visible: { type: Boolean } },
896
868
  emits: ["cancel", "confirm"],
897
869
  setup(e, { emit: t }) {
898
- let n = t, { t: r } = W();
899
- return (t, a) => e.visible ? (i(), p("div", Et, [x("div", Dt, [D(h(k), {
870
+ let n = t, { t: r } = X();
871
+ return (t, a) => e.visible ? (i(), p("div", Tt, [x("div", Et, [D(h(K), {
900
872
  size: 18,
901
873
  "stroke-width": 2,
902
874
  class: "tpl:text-[var(--tpl-primary)]"
903
- }), x("span", null, d(h(r).snapshotPreview.message), 1)]), x("div", Ot, [x("button", {
875
+ }), x("span", null, d(h(r).snapshotPreview.message), 1)]), x("div", Dt, [x("button", {
904
876
  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)]",
905
877
  style: { "background-color": "transparent" },
906
878
  onClick: a[0] ||= (e) => n("cancel")
@@ -909,7 +881,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
909
881
  onClick: a[1] ||= (e) => n("confirm")
910
882
  }, d(h(r).snapshotPreview.restore), 1)])])) : m("", !0);
911
883
  }
912
- }), At = {
884
+ }), kt = {
913
885
  key: 0,
914
886
  role: "status",
915
887
  "aria-live": "polite",
@@ -919,14 +891,14 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
919
891
  color: "var(--tpl-text)",
920
892
  border: "1px solid var(--tpl-warning)"
921
893
  }
922
- }, jt = /* @__PURE__ */ E({
894
+ }, At = /* @__PURE__ */ E({
923
895
  __name: "CollabUndoToast",
924
896
  props: { visible: { type: Boolean } },
925
897
  setup(e) {
926
- let { t } = R();
927
- return (n, r) => e.visible ? (i(), p("div", At, d(h(t).history.collabWarning), 1)) : m("", !0);
898
+ let { t } = W();
899
+ return (n, r) => e.visible ? (i(), p("div", kt, d(h(t).history.collabWarning), 1)) : m("", !0);
928
900
  }
929
- }), 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__*/ pe(/* @__PURE__ */ E({
901
+ }), jt = ["data-tpl-theme"], Mt = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, Nt = { class: "tpl-main tpl:flex tpl:justify-center tpl:p-8" }, Pt = ["aria-label"], Ft = /*#__PURE__*/ ae(/* @__PURE__ */ E({
930
902
  __name: "CloudEditor",
931
903
  props: {
932
904
  config: {},
@@ -937,74 +909,67 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
937
909
  },
938
910
  emits: ["ready"],
939
911
  setup(e, { expose: r, emit: o }) {
940
- let l = e;
941
- a(V, l.cloudTranslations);
942
- let u = o, f = c(null), w = c(null), E = Be({
943
- config: l.config,
944
- translations: l.translations,
945
- fontsManager: l.fontsManager,
946
- emit: u,
947
- getCommentsSidebar: () => f.value ? { filterByBlock: f.value.filterCommentsByBlock } : null,
948
- editorRoot: l.shadowRoot,
949
- containerEl: w
950
- }), { isInitializing: O, isAuthReady: k, initError: A, planConfigInstance: j, websocket: M, collaboration: P, isCollaborationEnabled: ee, editor: F, core: I, featureFlags: L, mediaLib: R, exporter: te, testEmail: z, commentsInstance: ne, savedModulesHeadless: re, panelState: H, snapshotPreview: U, collabWarning: W, showSaveModuleDialog: G, showModuleBrowserModal: K, saveModulePreSelectedBlockId: q, setThemeOverrides: ie, setUiTheme: ae } = E, { showNotice: J } = B(() => l.config.smallScreenNotice);
951
- async function Y(e) {
912
+ let l = u(() => import("./SavedBlocksPanels-D-pA_wfk.js")), f = e;
913
+ a(z, f.cloudTranslations);
914
+ let w = o, E = c(null), O = c(null), k = ze({
915
+ config: f.config,
916
+ translations: f.translations,
917
+ fontsManager: f.fontsManager,
918
+ emit: w,
919
+ getCommentsSidebar: () => E.value ? { filterByBlock: E.value.filterCommentsByBlock } : null,
920
+ editorRoot: f.shadowRoot,
921
+ containerEl: O
922
+ }), { isInitializing: A, isAuthReady: j, initError: N, planConfigInstance: P, websocket: F, collaboration: I, isCollaborationEnabled: L, editor: R, core: B, featureFlags: V, mediaLib: H, exporter: U, testEmail: W, commentsInstance: G, savedBlocks: K, panelState: q, snapshotPreview: J, collabWarning: te, setThemeOverrides: ne, setUiTheme: Y } = k, { showNotice: re } = M(() => f.config.smallScreenNotice);
923
+ async function ie(e) {
952
924
  try {
953
- await z.sendTestEmail(e), H.testEmailModalOpen.value = !1;
925
+ await W.sendTestEmail(e), q.testEmailModalOpen.value = !1;
954
926
  } catch {}
955
927
  }
956
- async function oe() {
928
+ async function ae() {
957
929
  try {
958
- await U.confirmRestoreSnapshot();
930
+ await J.confirmRestoreSnapshot();
959
931
  } catch {}
960
932
  }
961
- function se(e, t) {
962
- for (let n = 0; n < e.content.length; n++) {
963
- let r = N(e.content[n]), i = t === void 0 ? void 0 : t + n;
964
- F.addBlock(r, void 0, void 0, i);
965
- }
966
- K.value = !1;
967
- }
968
- let X = He({
969
- config: l.config,
970
- editor: F,
971
- websocket: M,
972
- planConfigInstance: j,
973
- snapshotPreview: U,
974
- core: I,
975
- exporter: te,
976
- featureFlags: L,
977
- isDestroyed: E.isDestroyed
978
- }), Z = Ue({
979
- issues: I.templateLint ? I.templateLint.issues : c([]),
980
- planConfig: j.config
933
+ let X = Ve({
934
+ config: f.config,
935
+ editor: R,
936
+ websocket: F,
937
+ planConfigInstance: P,
938
+ snapshotPreview: J,
939
+ core: B,
940
+ exporter: U,
941
+ featureFlags: V,
942
+ isDestroyed: k.isDestroyed
943
+ }), Z = He({
944
+ issues: B.templateLint ? B.templateLint.issues : c([]),
945
+ planConfig: P.config
981
946
  });
982
947
  async function Q() {
983
- await Z.tryRunSave(() => X.saveTemplate().catch((e) => l.config.onError?.(e)));
948
+ await Z.tryRunSave(() => X.saveTemplate().catch((e) => f.config.onError?.(e)));
984
949
  }
985
- return E.onSaveHook.value = Q, t(() => {
986
- E.initialize();
950
+ return k.onSaveHook.value = Q, t(() => {
951
+ k.initialize();
987
952
  }), g(() => {
988
- E.destroy();
953
+ k.destroy();
989
954
  }), r({
990
- getContent: () => F.content.value,
991
- setContent: (e) => F.setContent(e),
992
- setTheme: ae,
993
- setThemeOverrides: ie,
955
+ getContent: () => R.content.value,
956
+ setContent: (e) => R.setContent(e),
957
+ setTheme: Y,
958
+ setThemeOverrides: ne,
994
959
  create: X.createTemplate,
995
960
  load: X.loadTemplate,
996
961
  save: X.saveTemplate,
997
- sendTestEmail: z.sendTestEmail
962
+ sendTestEmail: W.sendTestEmail
998
963
  }), (t, r) => (i(), p("div", {
999
964
  ref_key: "rootEl",
1000
- ref: w,
1001
- class: b(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": h(F).state.darkMode }]),
1002
- "data-tpl-theme": h(I).resolvedTheme.value,
1003
- style: C(h(I).themeStyles.value),
1004
- onDragover: r[9] ||= _(() => {}, ["prevent"]),
1005
- onDrop: r[10] ||= _(() => {}, ["prevent"])
965
+ ref: O,
966
+ class: b(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": h(R).state.darkMode }]),
967
+ "data-tpl-theme": h(B).resolvedTheme.value,
968
+ style: C(h(B).themeStyles.value),
969
+ onDragover: r[6] ||= _(() => {}, ["prevent"]),
970
+ onDrop: r[7] ||= _(() => {}, ["prevent"])
1006
971
  }, [
1007
- D(Pe),
972
+ D(ge),
1008
973
  D(y, {
1009
974
  "enter-active-class": "tpl:transition-opacity tpl:duration-200",
1010
975
  "enter-from-class": "tpl:opacity-100",
@@ -1013,7 +978,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1013
978
  "leave-from-class": "tpl:opacity-100",
1014
979
  "leave-to-class": "tpl:opacity-0"
1015
980
  }, {
1016
- default: s(() => [D(yt, { visible: h(O) || h(F).state.isLoading }, null, 8, ["visible"])]),
981
+ default: s(() => [D(vt, { visible: h(A) || h(R).state.isLoading }, null, 8, ["visible"])]),
1017
982
  _: 1
1018
983
  }),
1019
984
  D(y, {
@@ -1024,10 +989,10 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1024
989
  "leave-from-class": "tpl:opacity-100",
1025
990
  "leave-to-class": "tpl:opacity-0"
1026
991
  }, {
1027
- default: s(() => [D(Tt, {
1028
- error: h(A),
1029
- visible: !!h(A) && !h(O),
1030
- onRetry: h(E).initialize
992
+ default: s(() => [D(wt, {
993
+ error: h(N),
994
+ visible: !!h(N) && !h(A),
995
+ onRetry: h(k).initialize
1031
996
  }, null, 8, [
1032
997
  "error",
1033
998
  "visible",
@@ -1035,19 +1000,19 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1035
1000
  ])]),
1036
1001
  _: 1
1037
1002
  }),
1038
- D(mt, {
1039
- editor: h(F),
1040
- core: h(I),
1041
- "feature-flags": h(L),
1042
- "panel-state": h(H),
1043
- "snapshot-preview": h(U),
1044
- "comments-instance": h(ne),
1045
- "test-email": h(z),
1046
- websocket: h(M),
1047
- collaboration: h(P),
1048
- "is-collaboration-enabled": h(ee),
1049
- "is-saving": h(F).state.isSaving || h(L).isSaveExporting.value,
1050
- "is-save-disabled": h(F).state.isSaving || h(L).isSaveExporting.value || !h(F).state.isDirty,
1003
+ D(pt, {
1004
+ editor: h(R),
1005
+ core: h(B),
1006
+ "feature-flags": h(V),
1007
+ "panel-state": h(q),
1008
+ "snapshot-preview": h(J),
1009
+ "comments-instance": h(G),
1010
+ "test-email": h(W),
1011
+ websocket: h(F),
1012
+ collaboration: h(I),
1013
+ "is-collaboration-enabled": h(L),
1014
+ "is-saving": h(R).state.isSaving || h(V).isSaveExporting.value,
1015
+ "is-save-disabled": h(R).state.isSaving || h(V).isSaveExporting.value || !h(R).state.isDirty,
1051
1016
  onSave: Q
1052
1017
  }, null, 8, [
1053
1018
  "editor",
@@ -1063,7 +1028,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1063
1028
  "is-saving",
1064
1029
  "is-save-disabled"
1065
1030
  ]),
1066
- D($e, {
1031
+ D(Qe, {
1067
1032
  open: h(Z).modalOpen.value,
1068
1033
  issues: h(Z).blockingIssues.value,
1069
1034
  onCancel: h(Z).cancel,
@@ -1074,10 +1039,10 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1074
1039
  "onCancel",
1075
1040
  "onConfirm"
1076
1041
  ]),
1077
- D(kt, {
1078
- visible: h(U).isPreviewingSnapshot.value,
1079
- onCancel: h(U).cancelPreview,
1080
- onConfirm: oe
1042
+ D(Ot, {
1043
+ visible: h(J).isPreviewingSnapshot.value,
1044
+ onCancel: h(J).cancelPreview,
1045
+ onConfirm: ae
1081
1046
  }, null, 8, ["visible", "onCancel"]),
1082
1047
  D(y, {
1083
1048
  "enter-active-class": "tpl:transition-all tpl:duration-200 tpl:ease-out",
@@ -1087,18 +1052,18 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1087
1052
  "leave-from-class": "tpl:translate-y-0 tpl:opacity-100",
1088
1053
  "leave-to-class": "tpl:translate-y-[-8px] tpl:opacity-0"
1089
1054
  }, {
1090
- default: s(() => [D(jt, { visible: h(W).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
1055
+ default: s(() => [D(At, { visible: h(te).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
1091
1056
  _: 1
1092
1057
  }),
1093
- n(D(Oe, null, null, 512), [[S, !h(F).state.previewMode]]),
1058
+ n(D(le, null, null, 512), [[S, !h(R).state.previewMode]]),
1094
1059
  x("div", {
1095
- class: b(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [h(F).state.previewMode ? "tpl:left-0 tpl:right-0" : h(H).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]", h(U).isPreviewingSnapshot.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
1060
+ class: b(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [h(R).state.previewMode ? "tpl:left-0 tpl:right-0" : h(q).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]", h(J).isPreviewingSnapshot.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
1096
1061
  style: {
1097
1062
  transition: "all 300ms cubic-bezier(0.34, 1.56, 0.64, 1)",
1098
1063
  "background-color": "var(--tpl-canvas-bg)"
1099
1064
  }
1100
- }, [x("div", Nt, [D(y, { name: "tpl-restore-btn" }, {
1101
- default: s(() => [h(I).conditionPreview.hasHiddenBlocks.value ? (i(), p("button", {
1065
+ }, [x("div", Mt, [D(y, { name: "tpl-restore-btn" }, {
1066
+ default: s(() => [h(B).conditionPreview.hasHiddenBlocks.value ? (i(), p("button", {
1102
1067
  key: 0,
1103
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",
1104
1069
  style: {
@@ -1107,22 +1072,22 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1107
1072
  "border-color": "var(--tpl-warning)",
1108
1073
  "backdrop-filter": "blur(8px)"
1109
1074
  },
1110
- onClick: r[0] ||= (e) => h(I).conditionPreview.reset()
1111
- }, [D(h(xe), {
1075
+ onClick: r[0] ||= (e) => h(B).conditionPreview.reset()
1076
+ }, [D(h(ee), {
1112
1077
  size: 13,
1113
1078
  "stroke-width": 2
1114
- }), T(" " + d(h(I).t.blockSettings.restoreHiddenBlocks), 1)])) : m("", !0)]),
1079
+ }), T(" " + d(h(B).t.blockSettings.restoreHiddenBlocks), 1)])) : m("", !0)]),
1115
1080
  _: 1
1116
- })]), x("main", Pt, [D(Te, {
1117
- viewport: h(F).state.viewport,
1118
- content: h(F).content.value,
1119
- "selected-block-id": h(F).state.selectedBlockId,
1120
- "dark-mode": h(F).state.darkMode,
1121
- "preview-mode": h(F).state.previewMode,
1122
- "locked-blocks": h(P)?.lockedBlocks.value ?? void 0,
1123
- onSelectBlock: h(F).selectBlock,
1124
- onOpenAiChat: r[1] ||= (e) => h(H).aiChatOpen.value = !0,
1125
- onOpenDesignReference: r[2] ||= (e) => h(H).designReferenceOpen.value = !0
1081
+ })]), x("main", Nt, [D(se, {
1082
+ viewport: h(R).state.viewport,
1083
+ content: h(R).content.value,
1084
+ "selected-block-id": h(R).state.selectedBlockId,
1085
+ "dark-mode": h(R).state.darkMode,
1086
+ "preview-mode": h(R).state.previewMode,
1087
+ "locked-blocks": h(I)?.lockedBlocks.value ?? void 0,
1088
+ onSelectBlock: h(R).selectBlock,
1089
+ onOpenAiChat: r[1] ||= (e) => h(q).aiChatOpen.value = !0,
1090
+ onOpenDesignReference: r[2] ||= (e) => h(q).designReferenceOpen.value = !0
1126
1091
  }, null, 8, [
1127
1092
  "viewport",
1128
1093
  "content",
@@ -1132,51 +1097,43 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1132
1097
  "locked-blocks",
1133
1098
  "onSelectBlock"
1134
1099
  ])])], 2),
1135
- e.config.branding !== !1 && !h(L).isWhiteLabeled.value ? (i(), v(je, {
1100
+ e.config.branding !== !1 && !h(V).isWhiteLabeled.value ? (i(), v(pe, {
1136
1101
  key: 0,
1137
- "position-class": [h(F).state.previewMode ? "tpl:left-0 tpl:right-0" : h(H).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"]
1102
+ "position-class": [h(R).state.previewMode ? "tpl:left-0 tpl:right-0" : h(q).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"]
1138
1103
  }, null, 8, ["position-class"])) : m("", !0),
1139
1104
  x("div", {
1140
1105
  class: "tpl-sr-only",
1141
1106
  role: "status",
1142
1107
  "aria-live": "polite",
1143
1108
  "aria-atomic": "true",
1144
- "aria-label": h(I).t.landmarks.reorderAnnouncements
1145
- }, d(h(I).keyboardReorder.announcement.value), 9, Ft),
1146
- n(D(we, {
1147
- "selected-block": h(F).selectedBlock.value,
1148
- settings: h(F).content.value.settings,
1149
- "shifted-left": h(H).rightPanelOpen.value,
1150
- onUpdateBlock: r[3] ||= (e) => h(F).updateBlock(h(F).selectedBlock.value.id, e),
1151
- onDeleteBlock: r[4] ||= (e) => h(I).blockActions.deleteBlock(h(F).selectedBlock.value.id),
1152
- onDuplicateBlock: r[5] ||= (e) => h(I).blockActions.duplicateBlock(h(F).selectedBlock.value),
1153
- onUpdateSettings: h(F).updateSettings
1109
+ "aria-label": h(B).t.landmarks.reorderAnnouncements
1110
+ }, d(h(B).keyboardReorder.announcement.value), 9, Pt),
1111
+ n(D(oe, {
1112
+ "selected-block": h(R).selectedBlock.value,
1113
+ settings: h(R).content.value.settings,
1114
+ "shifted-left": h(q).rightPanelOpen.value,
1115
+ onUpdateBlock: r[3] ||= (e) => h(R).updateBlock(h(R).selectedBlock.value.id, e),
1116
+ onDeleteBlock: r[4] ||= (e) => h(B).blockActions.deleteBlock(h(R).selectedBlock.value.id),
1117
+ onDuplicateBlock: r[5] ||= (e) => h(B).blockActions.duplicateBlock(h(R).selectedBlock.value),
1118
+ onUpdateSettings: h(R).updateSettings
1154
1119
  }, null, 8, [
1155
1120
  "selected-block",
1156
1121
  "settings",
1157
1122
  "shifted-left",
1158
1123
  "onUpdateSettings"
1159
- ]), [[S, !h(F).state.previewMode]]),
1160
- !h(O) && h(k) ? (i(), v(ht, {
1124
+ ]), [[S, !h(R).state.previewMode]]),
1125
+ !h(A) && h(j) ? (i(), v(mt, {
1161
1126
  key: 1,
1162
1127
  ref_key: "cloudPanelsRef",
1163
- ref: f,
1164
- config: l.config,
1165
- editor: h(F),
1166
- core: h(I),
1167
- "panel-state": h(H),
1168
- "plan-config-instance": h(j),
1169
- "test-email": h(z),
1170
- "media-lib": h(R),
1171
- "saved-modules-headless": h(re),
1172
- "show-save-module-dialog": h(G),
1173
- "save-module-pre-selected-block-id": h(q),
1174
- "show-module-browser-modal": h(K),
1175
- "onUpdate:showSaveModuleDialog": r[6] ||= (e) => G.value = e,
1176
- "onUpdate:saveModulePreSelectedBlockId": r[7] ||= (e) => q.value = e,
1177
- "onUpdate:showModuleBrowserModal": r[8] ||= (e) => K.value = e,
1178
- onSendTestEmail: Y,
1179
- onModuleInsert: se
1128
+ ref: E,
1129
+ config: f.config,
1130
+ editor: h(R),
1131
+ core: h(B),
1132
+ "panel-state": h(q),
1133
+ "plan-config-instance": h(P),
1134
+ "test-email": h(W),
1135
+ "media-lib": h(H),
1136
+ onSendTestEmail: ie
1180
1137
  }, null, 8, [
1181
1138
  "config",
1182
1139
  "editor",
@@ -1184,23 +1141,23 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1184
1141
  "panel-state",
1185
1142
  "plan-config-instance",
1186
1143
  "test-email",
1187
- "media-lib",
1188
- "saved-modules-headless",
1189
- "show-save-module-dialog",
1190
- "save-module-pre-selected-block-id",
1191
- "show-module-browser-modal"
1144
+ "media-lib"
1192
1145
  ])) : m("", !0),
1146
+ h(K).isAvailable.value ? (i(), v(h(l), {
1147
+ key: 2,
1148
+ feature: h(K)
1149
+ }, null, 8, ["feature"])) : m("", !0),
1193
1150
  x("div", {
1194
- ref: (e) => h(I).popoverRoot.value = e,
1151
+ ref: (e) => h(B).popoverRoot.value = e,
1195
1152
  class: "tpl-popover-root"
1196
1153
  }, null, 512),
1197
- D(ke),
1198
- D(Ne),
1199
- h(J) ? (i(), v(Me, { key: 2 })) : m("", !0)
1200
- ], 46, Mt));
1154
+ D(ue),
1155
+ D(he),
1156
+ h(re) ? (i(), v(me, { key: 3 })) : m("", !0)
1157
+ ], 46, jt));
1201
1158
  }
1202
- }), [["__scopeId", "data-v-3fc6c906"]]);
1159
+ }), [["__scopeId", "data-v-04940787"]]);
1203
1160
  //#endregion
1204
- export { It as default };
1161
+ export { Ft as default };
1205
1162
 
1206
- //# sourceMappingURL=CloudEditor-CEa3Xgqh.js.map
1163
+ //# sourceMappingURL=CloudEditor-B3hqbwfP.js.map