@templatical/editor 0.49.0 → 0.50.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 (378) hide show
  1. package/README.md +4 -2
  2. package/dist/AiAltTextPopover-BZQ95GXL.js +106 -0
  3. package/dist/AiAltTextReview-DoBEudnE.js +206 -0
  4. package/dist/AiChatPanel-Bs6sES3b.js +550 -0
  5. package/dist/AiHeaderMenu-BEaTazx4.js +36 -0
  6. package/dist/AiPanels-CfN7A-ZA.js +33 -0
  7. package/dist/AiRewriteMenu-C3ZfDDYy.js +276 -0
  8. package/dist/{BlockIssueBadge-BdpJwim0.js → BlockIssueBadge-CKwZ1Vgn.js} +11 -11
  9. package/dist/{BlockPreviewCanvas-D_sowkf0.js → BlockPreviewCanvas-BXNLLLYi.js} +33 -33
  10. package/dist/CloudHeaderExtras-CsJMEiyN.js +23 -0
  11. package/dist/{CloudPanels-1hwFiJ0G.js → CloudPanels-B4F5m7vy.js} +66 -85
  12. package/dist/{CollaborationNotices-BWpKzueF.js → CollaborationNotices-CNuDp7Y2.js} +19 -16
  13. package/dist/{CollaboratorBar-D87phJsw.js → CollaboratorBar-BtHPiuHq.js} +22 -22
  14. package/dist/{CommentsPanel-BUvUzO3T.js → CommentsPanel-CyCM-BvT.js} +4 -4
  15. package/dist/CommentsSidebar-Ca3DyFOX.js +500 -0
  16. package/dist/{cdn/chunks/CountdownBlock-DB4JNdqh.js → CountdownBlock-DR4Xm2-T.js} +24 -26
  17. package/dist/{CountdownToolbar-CLMIwfK7.js → CountdownToolbar-CEIMPojJ.js} +55 -55
  18. package/dist/IssuesPanel-C8nMUccy.js +360 -0
  19. package/dist/{LoadingTrack-BXOptf5g.js → LoadingTrack-B0RKQWq3.js} +2 -2
  20. package/dist/{LogicTagInsertButton-CR5E4jSG.js → LogicTagInsertButton-CqfU52CO.js} +273 -268
  21. package/dist/{cdn/chunks/MediaEditModal-DD0SZ-S3.js → MediaEditModal-DHtkZ4OU.js} +202 -186
  22. package/dist/{MediaPanels-BVXDkqtH.js → MediaPanels-CGcOB2pR.js} +4 -4
  23. package/dist/{MergeTagInput-BEw_r0PJ.js → MergeTagInput-YnEkorTZ.js} +25 -25
  24. package/dist/{MergeTagModeToggle-CJTpFmVd.js → MergeTagModeToggle-Dhb1DAcQ.js} +40 -40
  25. package/dist/MergeTagTextarea-e4lnwtqZ.js +70 -0
  26. package/dist/ParagraphEditor-B6NK0ytw.js +799 -0
  27. package/dist/{RestoreVersionDialog-BaDpy3cL.js → RestoreVersionDialog-Bq_IGOLJ.js} +21 -21
  28. package/dist/{RichTextEditorContent-CsvniFlI.js → RichTextEditorContent-AOM6fylS.js} +48 -48
  29. package/dist/{SaveBlockDialog-DzWURF_e.js → SaveBlockDialog-C8GngfQx.js} +87 -87
  30. package/dist/{cdn/chunks/SavedBlocksBrowserModal-BMtyUrUP.js → SavedBlocksBrowserModal-wnkvxpm_.js} +102 -99
  31. package/dist/{SavedBlocksPanels-B3Af8ns2.js → SavedBlocksPanels-C2s3q0pJ.js} +9 -9
  32. package/dist/{SavedBlocksPickBar-Dj11-Lqp.js → SavedBlocksPickBar-BjcTiV87.js} +13 -13
  33. package/dist/TemplateSettings-BVBWpiDU.js +237 -0
  34. package/dist/{TestEmailModal-BeRYV3eg.js → TestEmailModal-SyhO9bn3.js} +57 -57
  35. package/dist/{TestEmailPanel-B8c3fQi2.js → TestEmailPanel-BDd2Rtav.js} +4 -4
  36. package/dist/{TitleEditor-CvpNUoAp.js → TitleEditor-pxD53y_l.js} +75 -75
  37. package/dist/ToggleSwitch-D51U9cmR.js +37 -0
  38. package/dist/{Toolbar-BadDSkkF.js → Toolbar-CZSPZYbj.js} +1138 -1138
  39. package/dist/{TplModal-BZgi9Tes.js → TplModal-DCzBzicE.js} +19 -19
  40. package/dist/{VersionHistoryMenu-BRlcQ8wX.js → VersionHistoryMenu-BQeWPT85.js} +35 -35
  41. package/dist/{VersionHistoryPanels-DGkllN3a.js → VersionHistoryPanels-BBm7YbRQ.js} +5 -5
  42. package/dist/{VersionPreviewBanner-F-811aps.js → VersionPreviewBanner-DUGF0tUJ.js} +9 -9
  43. package/dist/WrapperBlock-BO619LAb.js +45 -0
  44. package/dist/aiErrors-D5UOoYOt.js +41 -0
  45. package/dist/aiImageContext-BH4Ss1h3.js +48 -0
  46. package/dist/aiRewritePreview-DLGM05Ge.js +44 -0
  47. package/dist/{blockTypeIcons-CayLluou.js → blockTypeIcons-NzaYvAI4.js} +15 -14
  48. package/dist/bundle-stats.json +8 -8
  49. package/dist/{cdn/chunks/ca-DSJwJ5ov.js → ca-C7mTzW1r.js} +130 -13
  50. package/dist/cdn/chunks/AiAltTextPopover-CQu0Q_ZX.js +107 -0
  51. package/dist/cdn/chunks/AiAltTextPopover-CQu0Q_ZX.js.map +1 -0
  52. package/dist/cdn/chunks/AiAltTextReview-CI2HbWfn.js +207 -0
  53. package/dist/cdn/chunks/AiAltTextReview-CI2HbWfn.js.map +1 -0
  54. package/dist/cdn/chunks/AiChatPanel-BYqn1bKu.js +476 -0
  55. package/dist/cdn/chunks/AiChatPanel-BYqn1bKu.js.map +1 -0
  56. package/dist/cdn/chunks/AiHeaderMenu-oldAAFyL.js +37 -0
  57. package/dist/cdn/chunks/AiHeaderMenu-oldAAFyL.js.map +1 -0
  58. package/dist/cdn/chunks/AiPanels-CIFKQv8Y.js +34 -0
  59. package/dist/cdn/chunks/AiPanels-CIFKQv8Y.js.map +1 -0
  60. package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js +208 -0
  61. package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js.map +1 -0
  62. package/dist/cdn/chunks/{BlockIssueBadge-D1VBS_6x.js → BlockIssueBadge-DAn2vsMJ.js} +13 -13
  63. package/dist/cdn/chunks/{BlockIssueBadge-D1VBS_6x.js.map → BlockIssueBadge-DAn2vsMJ.js.map} +1 -1
  64. package/dist/cdn/chunks/{BlockPreviewCanvas-m2tWRyWv.js → BlockPreviewCanvas-D0--EQkP.js} +38 -38
  65. package/dist/cdn/chunks/{BlockPreviewCanvas-m2tWRyWv.js.map → BlockPreviewCanvas-D0--EQkP.js.map} +1 -1
  66. package/dist/cdn/chunks/CloudHeaderExtras-DaUU8P8R.js +25 -0
  67. package/dist/cdn/chunks/CloudHeaderExtras-DaUU8P8R.js.map +1 -0
  68. package/dist/cdn/chunks/{CloudPanels-XufhBZYF.js → CloudPanels-C3jsxo_f.js} +52 -71
  69. package/dist/cdn/chunks/CloudPanels-C3jsxo_f.js.map +1 -0
  70. package/dist/cdn/chunks/{CollaborationNotices-CBvKEj1Q.js → CollaborationNotices-DjRI8gvs.js} +23 -20
  71. package/dist/cdn/chunks/CollaborationNotices-DjRI8gvs.js.map +1 -0
  72. package/dist/cdn/chunks/{CollaboratorBar-DWW54Bn_.js → CollaboratorBar-Dfzm6A9A.js} +20 -20
  73. package/dist/cdn/chunks/{CollaboratorBar-DWW54Bn_.js.map → CollaboratorBar-Dfzm6A9A.js.map} +1 -1
  74. package/dist/cdn/chunks/CommentsPanel-CSO79OeX.js +20 -0
  75. package/dist/cdn/chunks/{CommentsPanel-R8YLLO3v.js.map → CommentsPanel-CSO79OeX.js.map} +1 -1
  76. package/dist/cdn/chunks/CommentsSidebar-CCvplq1Z.js +470 -0
  77. package/dist/cdn/chunks/{CommentsSidebar-96NZHVq3.js.map → CommentsSidebar-CCvplq1Z.js.map} +1 -1
  78. package/dist/{CountdownBlock-DPQXWRvU.js → cdn/chunks/CountdownBlock-C6USdwk3.js} +19 -17
  79. package/dist/cdn/chunks/{CountdownBlock-DB4JNdqh.js.map → CountdownBlock-C6USdwk3.js.map} +1 -1
  80. package/dist/cdn/chunks/{CountdownToolbar-tmiTPEXm.js → CountdownToolbar-Cjud2Tos.js} +70 -70
  81. package/dist/cdn/chunks/{CountdownToolbar-tmiTPEXm.js.map → CountdownToolbar-Cjud2Tos.js.map} +1 -1
  82. package/dist/cdn/chunks/IssuesPanel-BaWHPDxZ.js +340 -0
  83. package/dist/cdn/chunks/IssuesPanel-BaWHPDxZ.js.map +1 -0
  84. package/dist/cdn/chunks/{LoadingTrack-YU44CM8X.js → LoadingTrack-BIcL4NiY.js} +2 -2
  85. package/dist/cdn/chunks/{LoadingTrack-YU44CM8X.js.map → LoadingTrack-BIcL4NiY.js.map} +1 -1
  86. package/dist/cdn/chunks/{LogicTagInsertButton-BJ2t2vxC.js → LogicTagInsertButton-CsL2JDOG.js} +367 -362
  87. package/dist/cdn/chunks/LogicTagInsertButton-CsL2JDOG.js.map +1 -0
  88. package/dist/{MediaEditModal-C_wxoUMG.js → cdn/chunks/MediaEditModal-BuHCiyMu.js} +544 -560
  89. package/dist/cdn/chunks/MediaEditModal-BuHCiyMu.js.map +1 -0
  90. package/dist/cdn/chunks/MediaPanels-DAgUf_T1.js +45 -0
  91. package/dist/cdn/chunks/{MediaPanels-CkdJ_kGp.js.map → MediaPanels-DAgUf_T1.js.map} +1 -1
  92. package/dist/cdn/chunks/{MergeTagInput-7wXX71DH.js → MergeTagInput-C8U-7LxL.js} +33 -33
  93. package/dist/cdn/chunks/{MergeTagInput-7wXX71DH.js.map → MergeTagInput-C8U-7LxL.js.map} +1 -1
  94. package/dist/cdn/chunks/{MergeTagModeToggle-r9vHH4u_.js → MergeTagModeToggle-Mm-p0A52.js} +41 -41
  95. package/dist/cdn/chunks/{MergeTagModeToggle-r9vHH4u_.js.map → MergeTagModeToggle-Mm-p0A52.js.map} +1 -1
  96. package/dist/cdn/chunks/MergeTagTextarea-DuLScsWM.js +72 -0
  97. package/dist/cdn/chunks/MergeTagTextarea-DuLScsWM.js.map +1 -0
  98. package/dist/cdn/chunks/ParagraphEditor-CqSj6Ayz.js +634 -0
  99. package/dist/cdn/chunks/ParagraphEditor-CqSj6Ayz.js.map +1 -0
  100. package/dist/cdn/chunks/{RestoreVersionDialog-C5cxBRKi.js → RestoreVersionDialog-CdA5osuA.js} +25 -25
  101. package/dist/cdn/chunks/{RestoreVersionDialog-C5cxBRKi.js.map → RestoreVersionDialog-CdA5osuA.js.map} +1 -1
  102. package/dist/cdn/chunks/{RichTextEditorContent-BfE7Bkge.js → RichTextEditorContent-Q1d2xqBT.js} +46 -46
  103. package/dist/cdn/chunks/{RichTextEditorContent-BfE7Bkge.js.map → RichTextEditorContent-Q1d2xqBT.js.map} +1 -1
  104. package/dist/cdn/chunks/{SaveBlockDialog-BKbjUnPM.js → SaveBlockDialog-CijargAy.js} +77 -77
  105. package/dist/cdn/chunks/{SaveBlockDialog-BKbjUnPM.js.map → SaveBlockDialog-CijargAy.js.map} +1 -1
  106. package/dist/cdn/chunks/SavedBlocksBrowserModal-DtOz_X5S.js +357 -0
  107. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BMtyUrUP.js.map → SavedBlocksBrowserModal-DtOz_X5S.js.map} +1 -1
  108. package/dist/cdn/chunks/SavedBlocksPanels-BowyED5h.js +38 -0
  109. package/dist/cdn/chunks/{SavedBlocksPanels-s_gxi1im.js.map → SavedBlocksPanels-BowyED5h.js.map} +1 -1
  110. package/dist/cdn/chunks/{SavedBlocksPickBar-B8WHk5mI.js → SavedBlocksPickBar-BPRaJBv3.js} +18 -18
  111. package/dist/cdn/chunks/{SavedBlocksPickBar-B8WHk5mI.js.map → SavedBlocksPickBar-BPRaJBv3.js.map} +1 -1
  112. package/dist/cdn/chunks/TemplateSettings-ByZeBO34.js +209 -0
  113. package/dist/cdn/chunks/{TemplateSettings-CtrzzQWl.js.map → TemplateSettings-ByZeBO34.js.map} +1 -1
  114. package/dist/cdn/chunks/{TestEmailModal-DuZKYMWD.js → TestEmailModal-BUVTj3Ic.js} +54 -54
  115. package/dist/cdn/chunks/{TestEmailModal-DuZKYMWD.js.map → TestEmailModal-BUVTj3Ic.js.map} +1 -1
  116. package/dist/cdn/chunks/TestEmailPanel-BxutYoWg.js +35 -0
  117. package/dist/cdn/chunks/{TestEmailPanel-DERaCdpG.js.map → TestEmailPanel-BxutYoWg.js.map} +1 -1
  118. package/dist/cdn/chunks/TitleEditor-Ccv6uoTz.js +199 -0
  119. package/dist/cdn/chunks/{TitleEditor-CEgxjtUX.js.map → TitleEditor-Ccv6uoTz.js.map} +1 -1
  120. package/dist/cdn/chunks/ToggleSwitch-Ctdmj621.js +39 -0
  121. package/dist/cdn/chunks/ToggleSwitch-Ctdmj621.js.map +1 -0
  122. package/dist/cdn/chunks/{Toolbar-GFIZQHzw.js → Toolbar-DoprRgTn.js} +986 -987
  123. package/dist/cdn/chunks/{Toolbar-GFIZQHzw.js.map → Toolbar-DoprRgTn.js.map} +1 -1
  124. package/dist/cdn/chunks/{TplModal-DDrbWJcE.js → TplModal-BXQzmsJX.js} +21 -21
  125. package/dist/cdn/chunks/{TplModal-DDrbWJcE.js.map → TplModal-BXQzmsJX.js.map} +1 -1
  126. package/dist/cdn/chunks/{VersionHistoryMenu-MlxsUmuT.js → VersionHistoryMenu-BF2fNCvq.js} +41 -41
  127. package/dist/cdn/chunks/{VersionHistoryMenu-MlxsUmuT.js.map → VersionHistoryMenu-BF2fNCvq.js.map} +1 -1
  128. package/dist/cdn/chunks/VersionHistoryPanels-Dal0Uk69.js +48 -0
  129. package/dist/cdn/chunks/{VersionHistoryPanels-DVOV8QLv.js.map → VersionHistoryPanels-Dal0Uk69.js.map} +1 -1
  130. package/dist/cdn/chunks/{VersionPreviewBanner-BQwRKc6S.js → VersionPreviewBanner-BaGcn-b1.js} +12 -12
  131. package/dist/cdn/chunks/{VersionPreviewBanner-BQwRKc6S.js.map → VersionPreviewBanner-BaGcn-b1.js.map} +1 -1
  132. package/dist/cdn/chunks/WrapperBlock-DkQJtLz0.js +47 -0
  133. package/dist/cdn/chunks/{WrapperBlock-CFuP4R0c.js.map → WrapperBlock-DkQJtLz0.js.map} +1 -1
  134. package/dist/cdn/chunks/aiErrors-D5UOoYOt.js +43 -0
  135. package/dist/cdn/chunks/aiErrors-D5UOoYOt.js.map +1 -0
  136. package/dist/cdn/chunks/aiImageContext-BH4Ss1h3.js +50 -0
  137. package/dist/cdn/chunks/aiImageContext-BH4Ss1h3.js.map +1 -0
  138. package/dist/cdn/chunks/aiRewritePreview-DLGM05Ge.js +46 -0
  139. package/dist/cdn/chunks/aiRewritePreview-DLGM05Ge.js.map +1 -0
  140. package/dist/cdn/chunks/blockTypeIcons-ikZAmd6U.js +22 -0
  141. package/dist/cdn/chunks/{blockTypeIcons-BnAd8qsP.js.map → blockTypeIcons-ikZAmd6U.js.map} +1 -1
  142. package/dist/{ca-DSJwJ5ov.js → cdn/chunks/ca-C7mTzW1r.js} +132 -11
  143. package/dist/cdn/chunks/ca-C7mTzW1r.js.map +1 -0
  144. package/dist/cdn/chunks/{cloud-CI_fgDyy.js → createCloudRuntime-DpBWhrv3.js} +489 -593
  145. package/dist/cdn/chunks/createCloudRuntime-DpBWhrv3.js.map +1 -0
  146. package/dist/cdn/chunks/de-DBOTcDj2.js +22 -0
  147. package/dist/cdn/chunks/de-DBOTcDj2.js.map +1 -0
  148. package/dist/{de-CBE6O79z.js → cdn/chunks/de-DNuYQTmS.js} +132 -11
  149. package/dist/cdn/chunks/de-DNuYQTmS.js.map +1 -0
  150. package/dist/{dist-Bv_GBr2l.js → cdn/chunks/dist-Bo8Thh8v.js} +60 -58
  151. package/dist/cdn/chunks/{dist-Doy3r07H.js.map → dist-Bo8Thh8v.js.map} +1 -1
  152. package/dist/cdn/chunks/dist-S-rLGqax.js +406 -0
  153. package/dist/cdn/chunks/{dist-DdwjXLme.js.map → dist-S-rLGqax.js.map} +1 -1
  154. package/dist/cdn/chunks/{draggable-akeQH_JP.js → draggable-DZ0gwUJ6.js} +1822 -1728
  155. package/dist/cdn/chunks/draggable-DZ0gwUJ6.js.map +1 -0
  156. package/dist/cdn/chunks/{editor-modal-HJBy9kLj.js → editor-modal-CI6EfeMd.js} +884 -884
  157. package/dist/cdn/chunks/{editor-modal-HJBy9kLj.js.map → editor-modal-CI6EfeMd.js.map} +1 -1
  158. package/dist/cdn/chunks/en-CDhWRrF_.js +22 -0
  159. package/dist/cdn/chunks/en-CDhWRrF_.js.map +1 -0
  160. package/dist/{en-CDexnk0p.js → cdn/chunks/en-CW71OK66.js} +132 -11
  161. package/dist/cdn/chunks/en-CW71OK66.js.map +1 -0
  162. package/dist/cdn/chunks/en-ifvu6oPv.js +1 -0
  163. package/dist/{es-BE42B6uN.js → cdn/chunks/es-DdK7zQfi.js} +132 -11
  164. package/dist/cdn/chunks/es-DdK7zQfi.js.map +1 -0
  165. package/dist/cdn/chunks/{extensions-koOuDeZS.js → extensions-taJTZlLK.js} +59 -59
  166. package/dist/cdn/chunks/{extensions-koOuDeZS.js.map → extensions-taJTZlLK.js.map} +1 -1
  167. package/dist/{fr-DlJFPDQR.js → cdn/chunks/fr-Dz5Bgb7-.js} +132 -11
  168. package/dist/cdn/chunks/fr-Dz5Bgb7-.js.map +1 -0
  169. package/dist/cdn/chunks/{icons-CjlNV8xD.js → icons-DNX6StSs.js} +178 -145
  170. package/dist/cdn/chunks/icons-DNX6StSs.js.map +1 -0
  171. package/dist/{ja-CUT8gkNI.js → cdn/chunks/ja-Di-zJiT8.js} +132 -11
  172. package/dist/cdn/chunks/ja-Di-zJiT8.js.map +1 -0
  173. package/dist/cdn/chunks/keys-BTpmg2Tt.js +12 -0
  174. package/dist/cdn/chunks/keys-BTpmg2Tt.js.map +1 -0
  175. package/dist/{logger-BBlvSn6q.js → cdn/chunks/logger-Tj0RPskW.js} +7 -1
  176. package/dist/cdn/chunks/logger-Tj0RPskW.js.map +1 -0
  177. package/dist/{nl-bXWqqRyS.js → cdn/chunks/nl-CvVuHYFL.js} +132 -11
  178. package/dist/cdn/chunks/{nl-bXWqqRyS.js.map → nl-CvVuHYFL.js.map} +1 -1
  179. package/dist/cdn/chunks/normalizeMergeTagMarkup-DyePIGqu.js +199 -0
  180. package/dist/cdn/chunks/normalizeMergeTagMarkup-DyePIGqu.js.map +1 -0
  181. package/dist/cdn/chunks/{preRenderCustomBlocks-DqKbdTJ8.js → preRenderCustomBlocks-Dc-QLntG.js} +4 -4
  182. package/dist/cdn/chunks/{preRenderCustomBlocks-DqKbdTJ8.js.map → preRenderCustomBlocks-Dc-QLntG.js.map} +1 -1
  183. package/dist/cdn/chunks/pt-BR-CHM-ZKvE.js +22 -0
  184. package/dist/cdn/chunks/pt-BR-CHM-ZKvE.js.map +1 -0
  185. package/dist/{pt-BR-2_H4-wlb.js → cdn/chunks/pt-BR-ZhO4vgyq.js} +132 -11
  186. package/dist/cdn/chunks/pt-BR-ZhO4vgyq.js.map +1 -0
  187. package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js +62 -0
  188. package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js.map +1 -0
  189. package/dist/cdn/chunks/socialIcons-BBvsTwCV.js +2032 -0
  190. package/dist/cdn/chunks/socialIcons-BBvsTwCV.js.map +1 -0
  191. package/dist/{dist-DBG3nh3k.js → cdn/chunks/src-BNFnxfrA.js} +552 -350
  192. package/dist/cdn/chunks/src-BNFnxfrA.js.map +1 -0
  193. package/dist/cdn/chunks/{src-B77z1iw4.js → src-BcTUmgLe.js} +113 -113
  194. package/dist/cdn/chunks/{src-B77z1iw4.js.map → src-BcTUmgLe.js.map} +1 -1
  195. package/dist/cdn/chunks/src-Bs_yxk3h.js +4392 -0
  196. package/dist/cdn/chunks/src-Bs_yxk3h.js.map +1 -0
  197. package/dist/cdn/chunks/{tiptap-B1RfWFzB.js → tiptap-CtVrAViq.js} +43 -43
  198. package/dist/cdn/chunks/{tiptap-B1RfWFzB.js.map → tiptap-CtVrAViq.js.map} +1 -1
  199. package/dist/cdn/chunks/{useCloudI18n-kp07GQmk.js → useCloudI18n-AVXhzbhQ.js} +4 -4
  200. package/dist/cdn/chunks/{useCloudI18n-kp07GQmk.js.map → useCloudI18n-AVXhzbhQ.js.map} +1 -1
  201. package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js +2586 -0
  202. package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js.map +1 -0
  203. package/dist/cdn/chunks/useEditorRoot-CR5GjJD6.js +10 -0
  204. package/dist/cdn/chunks/{useEditorRoot-5SBqm90x.js.map → useEditorRoot-CR5GjJD6.js.map} +1 -1
  205. package/dist/cdn/chunks/{useI18n-DEqtEgOs.js → useI18n-CbVubQhM.js} +3 -3
  206. package/dist/cdn/chunks/{useI18n-DEqtEgOs.js.map → useI18n-CbVubQhM.js.map} +1 -1
  207. package/dist/cdn/chunks/{useLogicTag-X8bc5qNl.js → useLogicTag-B49Nc53Y.js} +5 -5
  208. package/dist/cdn/chunks/{useLogicTag-X8bc5qNl.js.map → useLogicTag-B49Nc53Y.js.map} +1 -1
  209. package/dist/cdn/chunks/{useMergeTag-DFoOexIQ.js → useMergeTag-B0KryMj8.js} +5 -5
  210. package/dist/cdn/chunks/{useMergeTag-DFoOexIQ.js.map → useMergeTag-B0KryMj8.js.map} +1 -1
  211. package/dist/cdn/chunks/{usePopoverPosition-Cz9-XiXR.js → usePopoverPosition-C829ps5i.js} +4 -4
  212. package/dist/cdn/chunks/{usePopoverPosition-Cz9-XiXR.js.map → usePopoverPosition-C829ps5i.js.map} +1 -1
  213. package/dist/cdn/chunks/useScrollToBlock-CAwvulog.js +51 -0
  214. package/dist/cdn/chunks/useScrollToBlock-CAwvulog.js.map +1 -0
  215. package/dist/cdn/chunks/{withCurrentFont-D-f61ghC.js → withCurrentFont-DFPXeVfG.js} +2 -2
  216. package/dist/cdn/chunks/{withCurrentFont-D-f61ghC.js.map → withCurrentFont-DFPXeVfG.js.map} +1 -1
  217. package/dist/cdn/editor.css +1 -1
  218. package/dist/cdn/editor.js +2151 -1480
  219. package/dist/cdn/editor.js.map +1 -1
  220. package/dist/{check-DQQzkmIC.js → check-yYsp5Xpk.js} +1 -1
  221. package/dist/{chevron-down-CIF4bdon.js → chevron-down-DTmD06_j.js} +1 -1
  222. package/dist/{chevron-right-Cg7Xu-ev.js → chevron-right-BSeYZOxc.js} +1 -1
  223. package/dist/{chevron-up-Csu7ISD-.js → chevron-up-BOApwrxi.js} +1 -1
  224. package/dist/{circle-alert-YUvIJAgY.js → circle-alert-BMszY8im.js} +1 -1
  225. package/dist/{clock-CnSIGKQW.js → clock-HADxnl6-.js} +1 -1
  226. package/dist/{cloud-YUYDtdHt.js → createCloudRuntime-DVQI_ReU.js} +474 -570
  227. package/dist/{createLucideIcon-BcP1sjdp.js → createLucideIcon-0lYYH3EW.js} +6 -6
  228. package/dist/de-DBOTcDj2.js +20 -0
  229. package/dist/{cdn/chunks/de-CBE6O79z.js → de-DNuYQTmS.js} +130 -13
  230. package/dist/{cdn/chunks/dist-Doy3r07H.js → dist-C7EtxNCb.js} +49 -51
  231. package/dist/{dist-CNqjHA8e.js → dist-C_dV9QAx.js} +130 -130
  232. package/dist/{cdn/chunks/dist-DdwjXLme.js → dist-DI4_YSnG.js} +111 -110
  233. package/dist/{cdn/chunks/src-CvLTYGdO.js → dist-DtOF3bDW.js} +446 -393
  234. package/dist/{editor-modal--7_9A6j-.js → editor-modal-Bzhl-PgI.js} +832 -834
  235. package/dist/en-CDhWRrF_.js +20 -0
  236. package/dist/{cdn/chunks/en-CDexnk0p.js → en-CW71OK66.js} +130 -13
  237. package/dist/en-DwV15ltA.js +1 -0
  238. package/dist/{cdn/chunks/es-BE42B6uN.js → es-DdK7zQfi.js} +130 -13
  239. package/dist/{extensions-zwsZlWjH.js → extensions-CdyweA50.js} +57 -57
  240. package/dist/{eye-B1bua-ck.js → eye-DWkSvYpj.js} +1 -1
  241. package/dist/{cdn/chunks/fr-DlJFPDQR.js → fr-Dz5Bgb7-.js} +130 -13
  242. package/dist/image-DesWjcZ4.js +28 -0
  243. package/dist/index.d.ts +361 -24
  244. package/dist/{info-x26nGOo2.js → info-ClWJGoZy.js} +1 -1
  245. package/dist/{cdn/chunks/ja-CUT8gkNI.js → ja-Di-zJiT8.js} +130 -13
  246. package/dist/keys-Zd9KWRD1.js +10 -0
  247. package/dist/{link-CezhndyR.js → link-BqRicFTA.js} +1 -1
  248. package/dist/{list-DQqdptI0.js → list-bojQr9bn.js} +1 -1
  249. package/dist/{loader-circle-DCEeoYoi.js → loader-circle-B2B8LbUu.js} +1 -1
  250. package/dist/{cdn/chunks/logger-ByvdoAwq.js → logger-k9Nbj3Cp.js} +5 -3
  251. package/dist/{message-circle-BLGzfv_7.js → message-circle-BEuiNsyZ.js} +1 -1
  252. package/dist/{cdn/chunks/nl-bXWqqRyS.js → nl-CvVuHYFL.js} +130 -13
  253. package/dist/normalizeMergeTagMarkup-P6SUBuPv.js +197 -0
  254. package/dist/{package-D_kEQCMU.js → package-DCROB4aM.js} +1 -1
  255. package/dist/{pencil-Dct8zGLy.js → pencil-CEotCKbf.js} +1 -1
  256. package/dist/{preRenderCustomBlocks-CtKJecE-.js → preRenderCustomBlocks-D8rr61_z.js} +4 -4
  257. package/dist/pt-BR-CHM-ZKvE.js +20 -0
  258. package/dist/{cdn/chunks/pt-BR-2_H4-wlb.js → pt-BR-ZhO4vgyq.js} +130 -13
  259. package/dist/{refresh-cw-tGMRDxr8.js → refresh-cw-C6M2mHNC.js} +12 -2
  260. package/dist/{runtime-dom.esm-bundler-DYn1z2Xf.js → runtime-dom.esm-bundler-B8WCZWUm.js} +134 -134
  261. package/dist/sanitizeRichTextHtml-DeISfLFr.js +60 -0
  262. package/dist/{search-Bm2cCQpe.js → search-Cy99zPYf.js} +1 -1
  263. package/dist/{send-sVLaKZ7f.js → send-BDLJFsf3.js} +1 -1
  264. package/dist/{smartphone-B2W81p02.js → smartphone-CVvQaNA4.js} +1 -1
  265. package/dist/{cdn/chunks/socialIcons-CkZSYpoG.js → socialIcons-Dd-jRiVe.js} +688 -693
  266. package/dist/{sparkles-a1qkBZ8X.js → sparkles-Ce0Qz0ox.js} +1 -1
  267. package/dist/square-BWlolnXe.js +15 -0
  268. package/dist/style.css +1 -1
  269. package/dist/templatical-editor.js +2114 -1422
  270. package/dist/{text-align-start-CTuwQ5YW.js → text-align-start-D1V5gPTy.js} +1 -1
  271. package/dist/{trash-I3D2peFQ.js → trash-CZfiUFmw.js} +1 -1
  272. package/dist/{triangle-alert-CenxmLRE.js → triangle-alert-CFDzyFC7.js} +1 -1
  273. package/dist/upload-BJfvdIrD.js +36 -0
  274. package/dist/{useCloudI18n-CGVEZV3o.js → useCloudI18n-Dcjua65H.js} +5 -5
  275. package/dist/{useEditorCore-DRbMRe8F.js → useEditorCore-BTLeAVlM.js} +1463 -1499
  276. package/dist/{useEditorRoot-BVm2-1N8.js → useEditorRoot-DUy67lJu.js} +2 -2
  277. package/dist/{useI18n-CSh4gO5c.js → useI18n-BdoY7xDE.js} +4 -4
  278. package/dist/{useLogicTag-zcI6BWIf.js → useLogicTag-DKLZ1T9H.js} +3 -3
  279. package/dist/{useMergeTag-C-iBLlp0.js → useMergeTag-Bhdx7AKk.js} +3 -3
  280. package/dist/{usePopoverPosition-CMcsMBtK.js → usePopoverPosition-BZea45XK.js} +2 -2
  281. package/dist/useScrollToBlock-FmNMALM_.js +74 -0
  282. package/dist/{vue.runtime.esm-bundler-DV0Wx4r_.js → vue.runtime.esm-bundler-DgFJ6GPG.js} +1428 -1332
  283. package/dist/{withCurrentFont-D62njRLu.js → withCurrentFont-BATJHNve.js} +1 -1
  284. package/dist/{x-KFQ4S-Kz.js → x-CZ0Js0hA.js} +1 -1
  285. package/package.json +14 -12
  286. package/dist/AiChatSidebar-CdjTb9ej.js +0 -230
  287. package/dist/AiFeatureMenu-DKm7VYCs.js +0 -57
  288. package/dist/CloudHeaderExtras-CI8RR9hG.js +0 -55
  289. package/dist/CommentsSidebar-J65znlrH.js +0 -500
  290. package/dist/DesignReferenceSidebar-BTwCFgz8.js +0 -279
  291. package/dist/IssuesPanel-DeeVsfG7.js +0 -117
  292. package/dist/ParagraphEditor-zLV44z-R.js +0 -797
  293. package/dist/SavedBlocksBrowserModal-B8DCFW7t.js +0 -360
  294. package/dist/TemplateScoringPanel-Ba9sgvjS.js +0 -273
  295. package/dist/TemplateSettings-Cu5X9DgA.js +0 -246
  296. package/dist/ToggleSwitch-DHweVJOr.js +0 -102
  297. package/dist/WrapperBlock-DiiaxpMb.js +0 -45
  298. package/dist/cdn/chunks/AiChatSidebar-yXJ85Zcg.js +0 -205
  299. package/dist/cdn/chunks/AiChatSidebar-yXJ85Zcg.js.map +0 -1
  300. package/dist/cdn/chunks/AiFeatureMenu-4ydjrhsQ.js +0 -57
  301. package/dist/cdn/chunks/AiFeatureMenu-4ydjrhsQ.js.map +0 -1
  302. package/dist/cdn/chunks/CloudHeaderExtras-DEkRww7n.js +0 -56
  303. package/dist/cdn/chunks/CloudHeaderExtras-DEkRww7n.js.map +0 -1
  304. package/dist/cdn/chunks/CloudPanels-XufhBZYF.js.map +0 -1
  305. package/dist/cdn/chunks/CollaborationNotices-CBvKEj1Q.js.map +0 -1
  306. package/dist/cdn/chunks/CommentsPanel-R8YLLO3v.js +0 -20
  307. package/dist/cdn/chunks/CommentsSidebar-96NZHVq3.js +0 -470
  308. package/dist/cdn/chunks/DesignReferenceSidebar-D14IIu_P.js +0 -229
  309. package/dist/cdn/chunks/DesignReferenceSidebar-D14IIu_P.js.map +0 -1
  310. package/dist/cdn/chunks/IssuesPanel-BoPiCLGc.js +0 -100
  311. package/dist/cdn/chunks/IssuesPanel-BoPiCLGc.js.map +0 -1
  312. package/dist/cdn/chunks/LogicTagInsertButton-BJ2t2vxC.js.map +0 -1
  313. package/dist/cdn/chunks/MediaEditModal-DD0SZ-S3.js.map +0 -1
  314. package/dist/cdn/chunks/MediaPanels-CkdJ_kGp.js +0 -45
  315. package/dist/cdn/chunks/ParagraphEditor-CJQjRHXV.js +0 -632
  316. package/dist/cdn/chunks/ParagraphEditor-CJQjRHXV.js.map +0 -1
  317. package/dist/cdn/chunks/SavedBlocksPanels-s_gxi1im.js +0 -38
  318. package/dist/cdn/chunks/TemplateScoringPanel-BBPnHILC.js +0 -237
  319. package/dist/cdn/chunks/TemplateScoringPanel-BBPnHILC.js.map +0 -1
  320. package/dist/cdn/chunks/TemplateSettings-CtrzzQWl.js +0 -208
  321. package/dist/cdn/chunks/TestEmailPanel-DERaCdpG.js +0 -35
  322. package/dist/cdn/chunks/TitleEditor-CEgxjtUX.js +0 -199
  323. package/dist/cdn/chunks/ToggleSwitch-DGQ7iRc-.js +0 -104
  324. package/dist/cdn/chunks/ToggleSwitch-DGQ7iRc-.js.map +0 -1
  325. package/dist/cdn/chunks/VersionHistoryPanels-DVOV8QLv.js +0 -48
  326. package/dist/cdn/chunks/WrapperBlock-CFuP4R0c.js +0 -47
  327. package/dist/cdn/chunks/blockTypeIcons-BnAd8qsP.js +0 -22
  328. package/dist/cdn/chunks/ca-DSJwJ5ov.js.map +0 -1
  329. package/dist/cdn/chunks/cloud-CI_fgDyy.js.map +0 -1
  330. package/dist/cdn/chunks/createCloudRuntime-DiYCJ21w.js +0 -358
  331. package/dist/cdn/chunks/createCloudRuntime-DiYCJ21w.js.map +0 -1
  332. package/dist/cdn/chunks/de-CBE6O79z.js.map +0 -1
  333. package/dist/cdn/chunks/de-D_atmUVB.js +0 -89
  334. package/dist/cdn/chunks/de-D_atmUVB.js.map +0 -1
  335. package/dist/cdn/chunks/draggable-akeQH_JP.js.map +0 -1
  336. package/dist/cdn/chunks/en-CDexnk0p.js.map +0 -1
  337. package/dist/cdn/chunks/en-DhJLnaBx.js +0 -89
  338. package/dist/cdn/chunks/en-DhJLnaBx.js.map +0 -1
  339. package/dist/cdn/chunks/en-Ve-PWSXu.js +0 -1
  340. package/dist/cdn/chunks/es-BE42B6uN.js.map +0 -1
  341. package/dist/cdn/chunks/fr-DlJFPDQR.js.map +0 -1
  342. package/dist/cdn/chunks/icons-CjlNV8xD.js.map +0 -1
  343. package/dist/cdn/chunks/ja-CUT8gkNI.js.map +0 -1
  344. package/dist/cdn/chunks/keys-UAWhQ3zW.js +0 -12
  345. package/dist/cdn/chunks/keys-UAWhQ3zW.js.map +0 -1
  346. package/dist/cdn/chunks/logger-ByvdoAwq.js.map +0 -1
  347. package/dist/cdn/chunks/pt-BR-2_H4-wlb.js.map +0 -1
  348. package/dist/cdn/chunks/pt-BR-BphMoUTw.js +0 -89
  349. package/dist/cdn/chunks/pt-BR-BphMoUTw.js.map +0 -1
  350. package/dist/cdn/chunks/socialIcons-CkZSYpoG.js.map +0 -1
  351. package/dist/cdn/chunks/src-B1e5SSYP.js +0 -1272
  352. package/dist/cdn/chunks/src-B1e5SSYP.js.map +0 -1
  353. package/dist/cdn/chunks/src-CvLTYGdO.js.map +0 -1
  354. package/dist/cdn/chunks/timeouts-o5Y9BuqI.js +0 -6
  355. package/dist/cdn/chunks/timeouts-o5Y9BuqI.js.map +0 -1
  356. package/dist/cdn/chunks/useAliveFlag-PuXh83UK.js +0 -12
  357. package/dist/cdn/chunks/useAliveFlag-PuXh83UK.js.map +0 -1
  358. package/dist/cdn/chunks/useEditorCore-DpCFvHg_.js +0 -2623
  359. package/dist/cdn/chunks/useEditorCore-DpCFvHg_.js.map +0 -1
  360. package/dist/cdn/chunks/useEditorRoot-5SBqm90x.js +0 -10
  361. package/dist/cdn/chunks/useScrollToBlock-MNzurEZV.js +0 -21
  362. package/dist/cdn/chunks/useScrollToBlock-MNzurEZV.js.map +0 -1
  363. package/dist/copy-CUC43md_.js +0 -19
  364. package/dist/createCloudRuntime-BMDRjL0k.js +0 -356
  365. package/dist/de-D_atmUVB.js +0 -87
  366. package/dist/dist-CCqn-RqE.js +0 -407
  367. package/dist/en-BHCMzqib.js +0 -1
  368. package/dist/en-DhJLnaBx.js +0 -87
  369. package/dist/image-up-BqiO7KCO.js +0 -27
  370. package/dist/keys-BymCnLHD.js +0 -10
  371. package/dist/plus-BDd0gTEm.js +0 -14
  372. package/dist/pt-BR-BphMoUTw.js +0 -87
  373. package/dist/shield-check-YhsbXfQc.js +0 -14
  374. package/dist/socialIcons-Bwv-49EB.js +0 -2167
  375. package/dist/timeouts-o5Y9BuqI.js +0 -4
  376. package/dist/upload-uU2cK0Ce.js +0 -21
  377. package/dist/useAliveFlag-BjP0Gxza.js +0 -10
  378. package/dist/useScrollToBlock-CdCQK9QQ.js +0 -47
@@ -0,0 +1,550 @@
1
+ import { At as e, C as t, D as n, H as r, Mt as i, N as a, P as o, Q as s, V as c, _ as l, c as u, d, f, g as p, j as m, l as h, ot as g, r as _, u as v, y, z as b } from "./vue.runtime.esm-bundler-DgFJ6GPG.js";
2
+ import { a as ee } from "./runtime-dom.esm-bundler-B8WCZWUm.js";
3
+ import { _ as te, g as ne } from "./dist-C7EtxNCb.js";
4
+ import { X as re } from "./keys-Zd9KWRD1.js";
5
+ import { t as x } from "./useI18n-BdoY7xDE.js";
6
+ import { t as S } from "./createLucideIcon-0lYYH3EW.js";
7
+ import { t as ie } from "./circle-alert-BMszY8im.js";
8
+ import { t as C } from "./image-DesWjcZ4.js";
9
+ import { t as ae } from "./loader-circle-B2B8LbUu.js";
10
+ import { t as oe } from "./send-BDLJFsf3.js";
11
+ import { t as w } from "./sparkles-Ce0Qz0ox.js";
12
+ import { t as se } from "./square-BWlolnXe.js";
13
+ import { t as T } from "./x-CZ0Js0hA.js";
14
+ import { t as ce } from "./LoadingTrack-B0RKQWq3.js";
15
+ import { t as E } from "./_plugin-vue_export-helper-B3ysoDQm.js";
16
+ import { n as D } from "./aiErrors-D5UOoYOt.js";
17
+ import { S as O } from "./styleConstants-v1dNKgJf.js";
18
+ var k = S({
19
+ name: "file-text",
20
+ size: 24,
21
+ node: [
22
+ ["path", {
23
+ d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
24
+ key: "1oefj6"
25
+ }],
26
+ ["path", {
27
+ d: "M14 2v5a1 1 0 0 0 1 1h5",
28
+ key: "wfsgrz"
29
+ }],
30
+ ["path", {
31
+ d: "M10 9H8",
32
+ key: "b1mrlr"
33
+ }],
34
+ ["path", {
35
+ d: "M16 13H8",
36
+ key: "t4e002"
37
+ }],
38
+ ["path", {
39
+ d: "M16 17H8",
40
+ key: "z1uh3a"
41
+ }]
42
+ ]
43
+ }), le = S({
44
+ name: "message-square-plus",
45
+ size: 24,
46
+ node: [
47
+ ["path", {
48
+ d: "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",
49
+ key: "18887p"
50
+ }],
51
+ ["path", {
52
+ d: "M12 8v6",
53
+ key: "1ib9pf"
54
+ }],
55
+ ["path", {
56
+ d: "M9 11h6",
57
+ key: "1fldmi"
58
+ }]
59
+ ]
60
+ }), ue = S({
61
+ name: "paperclip",
62
+ size: 24,
63
+ node: [["path", {
64
+ d: "m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",
65
+ key: "1miecu"
66
+ }]]
67
+ }), de = S({
68
+ name: "redo-2",
69
+ size: 24,
70
+ node: [["path", {
71
+ d: "m15 14 5-5-5-5",
72
+ key: "12vg1m"
73
+ }], ["path", {
74
+ d: "M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",
75
+ key: "6uklza"
76
+ }]]
77
+ }), fe = S({
78
+ name: "undo-2",
79
+ size: 24,
80
+ node: [["path", {
81
+ d: "M9 14 4 9l5-5",
82
+ key: "102s5s"
83
+ }], ["path", {
84
+ d: "M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",
85
+ key: "f3b9sd"
86
+ }]]
87
+ }), A = ["aria-label", "data-testid"], j = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, M = { class: "tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5" }, N = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-primary)]" }, P = { "data-testid": "ai-panel-title" }, F = {
88
+ key: 0,
89
+ "data-testid": "ai-panel-subtitle",
90
+ class: "tpl:m-0 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
91
+ }, I = { class: "tpl:flex tpl:items-center tpl:gap-1" }, L = ["aria-label", "title"], R = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col" }, z = /* @__PURE__ */ y({
92
+ __name: "AiPanelShell",
93
+ props: {
94
+ title: {},
95
+ subtitle: {},
96
+ testid: {},
97
+ closeLabel: {}
98
+ },
99
+ emits: ["close"],
100
+ setup(e, { emit: t }) {
101
+ let n = t;
102
+ return (t, r) => (m(), f("div", {
103
+ role: "complementary",
104
+ "aria-label": e.title,
105
+ "data-testid": e.testid,
106
+ class: "tpl-ai-sidebar tpl:absolute tpl:top-14 tpl:right-0 tpl:bottom-0 tpl:flex tpl:w-[360px] tpl:flex-col tpl:border-l tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)]"
107
+ }, [
108
+ h("div", j, [h("div", M, [h("div", N, [l(g(w), {
109
+ size: 13,
110
+ "stroke-width": 2,
111
+ "aria-hidden": "true"
112
+ }), h("span", P, i(e.title), 1)]), e.subtitle ? (m(), f("p", F, i(e.subtitle), 1)) : d("", !0)]), h("div", I, [o(t.$slots, "actions"), h("button", {
113
+ type: "button",
114
+ "data-testid": "ai-panel-close",
115
+ class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
116
+ "aria-label": e.closeLabel,
117
+ title: e.closeLabel,
118
+ onClick: r[0] ||= (e) => n("close")
119
+ }, [l(g(T), {
120
+ size: 14,
121
+ "stroke-width": 2,
122
+ "aria-hidden": "true"
123
+ })], 8, L)])]),
124
+ h("div", R, [o(t.$slots, "default")]),
125
+ o(t.$slots, "footer")
126
+ ], 8, A));
127
+ }
128
+ }), B = /* @__PURE__ */ new Set([
129
+ "image/png",
130
+ "image/jpeg",
131
+ "image/webp",
132
+ "image/gif",
133
+ "application/pdf"
134
+ ]);
135
+ function V(e, t) {
136
+ let n = [...e], r = [], i = e.reduce((e, t) => e + t.size, 0);
137
+ for (let e of t) {
138
+ let t = n.length >= 4 ? "tooMany" : B.has(e.type) ? e.size > 5242880 ? "tooLarge" : i + e.size > 10485760 ? "totalTooLarge" : null : "wrongType";
139
+ t ? r.push({
140
+ name: e.name,
141
+ reason: t
142
+ }) : (n.push(e), i += e.size);
143
+ }
144
+ return {
145
+ accepted: n,
146
+ errors: r
147
+ };
148
+ }
149
+ //#endregion
150
+ //#region src/components/ai/AiChatPanel.vue?vue&type=script&setup=true&lang.ts
151
+ var pe = [
152
+ "aria-label",
153
+ "title",
154
+ "disabled"
155
+ ], me = {
156
+ key: 0,
157
+ "data-testid": "ai-chat-drop-hint",
158
+ class: "tpl:absolute tpl:inset-0 tpl:z-20 tpl:flex tpl:items-center tpl:justify-center tpl:border-2 tpl:border-dashed tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg-elevated)] tpl:p-4 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-primary)] tpl:pointer-events-none"
159
+ }, he = {
160
+ key: 0,
161
+ class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
162
+ }, ge = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, _e = {
163
+ key: 1,
164
+ class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
165
+ }, ve = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ye = {
166
+ key: 2,
167
+ class: "tpl:flex tpl:flex-col tpl:gap-4"
168
+ }, be = {
169
+ key: 0,
170
+ "data-testid": "ai-chat-prompt",
171
+ class: "tpl:self-end tpl:rounded-[var(--tpl-radius-sm)] tpl:px-3.5 tpl:py-2.5 tpl:text-sm tpl:whitespace-pre-wrap",
172
+ style: {
173
+ "background-color": "var(--tpl-primary-light)",
174
+ color: "var(--tpl-text)",
175
+ "max-width": "85%",
176
+ "box-shadow": "var(--tpl-shadow)"
177
+ }
178
+ }, xe = {
179
+ key: 1,
180
+ class: "tpl:flex tpl:flex-col tpl:gap-2"
181
+ }, Se = {
182
+ key: 1,
183
+ "data-testid": "ai-chat-reply",
184
+ class: "tpl:rounded-[var(--tpl-radius-sm)] tpl:px-3.5 tpl:py-2.5 tpl:text-sm tpl:whitespace-pre-wrap",
185
+ style: {
186
+ "max-width": "85%",
187
+ "background-color": "var(--tpl-bg)",
188
+ color: "var(--tpl-text)",
189
+ "box-shadow": "var(--tpl-shadow)"
190
+ }
191
+ }, Ce = {
192
+ key: 2,
193
+ "data-testid": "ai-chat-applied",
194
+ class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
195
+ }, we = ["disabled", "onClick"], Te = {
196
+ key: 3,
197
+ role: "alert",
198
+ "data-testid": "ai-chat-item-error",
199
+ class: "tpl:m-0 tpl:text-xs tpl:text-[var(--tpl-danger)]"
200
+ }, Ee = {
201
+ key: 1,
202
+ class: "tpl:absolute tpl:right-0 tpl:bottom-0 tpl:left-0 tpl:z-10 tpl:px-3 tpl:pb-3",
203
+ style: {
204
+ "background-color": "color-mix(in srgb, var(--tpl-bg) 50%, transparent)",
205
+ "backdrop-filter": "blur(2px)"
206
+ }
207
+ }, De = { class: "tpl:flex tpl:flex-col tpl:gap-1.5" }, Oe = ["onClick"], ke = { class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]" }, Ae = ["disabled"], je = {
208
+ key: 0,
209
+ class: "tpl:mb-2 tpl:flex tpl:flex-wrap tpl:gap-1"
210
+ }, H = { class: "tpl:truncate" }, Me = [
211
+ "aria-label",
212
+ "disabled",
213
+ "onClick"
214
+ ], Ne = {
215
+ key: 1,
216
+ class: "tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
217
+ }, Pe = {
218
+ "aria-live": "polite",
219
+ class: "tpl:text-xs tpl:text-[var(--tpl-danger)]"
220
+ }, Fe = {
221
+ key: 1,
222
+ role: "status",
223
+ class: "tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
224
+ }, Ie = ["disabled"], Le = {
225
+ key: 2,
226
+ role: "alert",
227
+ "data-testid": "ai-chat-error",
228
+ class: "tpl:mx-3 tpl:mb-2 tpl:flex tpl:items-start tpl:gap-2 tpl:rounded-lg tpl:px-3 tpl:py-2 tpl:text-xs",
229
+ style: {
230
+ "background-color": "var(--tpl-danger-light)",
231
+ color: "var(--tpl-danger)"
232
+ }
233
+ }, Re = { class: "tpl-ai-input-wrapper tpl-focus-ring-host tpl:flex tpl:flex-col tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, ze = [
234
+ "placeholder",
235
+ "aria-label",
236
+ "disabled"
237
+ ], Be = { class: "tpl:flex tpl:items-center tpl:justify-between" }, Ve = [
238
+ "aria-label",
239
+ "title",
240
+ "disabled"
241
+ ], He = ["aria-label", "title"], Ue = [
242
+ "aria-label",
243
+ "title",
244
+ "disabled"
245
+ ], We = { class: "tpl:m-0 tpl:px-1 tpl:pt-2 tpl:text-center tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, U = /*#__PURE__*/ E(/* @__PURE__ */ y({
246
+ __name: "AiChatPanel",
247
+ props: { feature: {} },
248
+ emits: ["close"],
249
+ setup(o, { emit: y }) {
250
+ let S = o, E = y, { t: A, format: j } = x(), M = t(re, void 0), N = s(""), P = s(null), F = s(null), I = s([]), L = s([]), R = s(0);
251
+ b(() => S.feature.templateSession.value, () => {
252
+ N.value = "", I.value = [], L.value = [], R.value = 0;
253
+ }, { flush: "sync" });
254
+ let B = u(() => S.feature.has("chatAttachments"));
255
+ function U(e) {
256
+ let t = V(I.value, e);
257
+ I.value = t.accepted;
258
+ let n = {
259
+ tooMany: "attachTooMany",
260
+ tooLarge: "attachTooLarge",
261
+ totalTooLarge: "attachTotalTooLarge",
262
+ wrongType: "attachWrongType"
263
+ };
264
+ L.value = t.errors.map((e) => j(A.ai.chat[n[e.reason]], { name: e.name }));
265
+ }
266
+ function Ge(e) {
267
+ let t = e.target;
268
+ !Y.value && B.value && U(Array.from(t.files ?? [])), t.value = "";
269
+ }
270
+ function Ke(e) {
271
+ Y.value || (I.value.splice(e, 1), L.value = []);
272
+ }
273
+ function W(e) {
274
+ return Array.from(e.dataTransfer?.types ?? []).includes("Files");
275
+ }
276
+ function qe(e) {
277
+ B.value && !Y.value && W(e) && (e.preventDefault(), R.value++);
278
+ }
279
+ function Je(e) {
280
+ W(e) && (R.value = Math.max(0, R.value - 1));
281
+ }
282
+ function Ye(e) {
283
+ B.value && W(e) && e.preventDefault();
284
+ }
285
+ function Xe(e) {
286
+ R.value = 0, B.value && W(e) && (e.preventDefault(), Y.value || U(Array.from(e.dataTransfer?.files ?? [])));
287
+ }
288
+ b(() => S.feature.importQueue.value, (e) => {
289
+ B.value && e.length && (U(e), N.value.trim() || (N.value = A.ai.import.prompt), S.feature.importQueue.value = [], n(() => P.value?.focus()));
290
+ }, { immediate: !0 });
291
+ let G = s(null), K = s(0), q = u(() => S.feature.isTemplateEmpty.value ? [
292
+ A.ai.starters.emptyWelcome,
293
+ A.ai.starters.emptyLaunch,
294
+ A.ai.starters.emptyNewsletter
295
+ ] : [
296
+ A.ai.starters.filledShorten,
297
+ A.ai.starters.filledFriendlier,
298
+ A.ai.starters.filledDates,
299
+ A.ai.starters.filledCta
300
+ ]), J = u(() => S.feature.messages.value), Y = u(() => S.feature.isRunning.value), X = u(() => {
301
+ let e = S.feature.failure.value;
302
+ return e ? D(e.error, A.ai.errors, j, M, e.context) : "";
303
+ }), { pause: Z, resume: Ze } = ne(() => {
304
+ K.value < q.value.length ? K.value++ : Z();
305
+ }, 150, { immediate: !1 }), { start: Qe } = te(() => Ze(), 100, { immediate: !1 });
306
+ b(() => q.value.length, (e) => {
307
+ Z(), K.value = 0, e > 0 && Qe();
308
+ }, { immediate: !0 });
309
+ function Q() {
310
+ n(() => {
311
+ G.value && (G.value.scrollTop = G.value.scrollHeight);
312
+ });
313
+ }
314
+ b(() => J.value.length, Q), b(() => [S.feature.failedPrompt.value, S.feature.failedAttachments.value], ([e, t]) => {
315
+ e && (N.value = e, I.value = [...t]);
316
+ }, { immediate: !0 });
317
+ async function $() {
318
+ let e = N.value.trim();
319
+ if (!e || Y.value) return;
320
+ let t = [...I.value];
321
+ N.value = "", I.value = [], L.value = [], Q(), await S.feature.send(e, t), Q();
322
+ }
323
+ function $e(e) {
324
+ return e.undone ? A.ai.chat.undone : e.operationCount === 1 ? A.ai.chat.appliedChange : j(A.ai.chat.appliedChanges, { count: e.operationCount });
325
+ }
326
+ function et(e) {
327
+ return e.failure ? D(e.failure.error, A.ai.errors, j, M, e.failure.context) : "";
328
+ }
329
+ function tt(e) {
330
+ e.undone ? S.feature.redoMessage(e.id) : S.feature.undoMessage(e.id);
331
+ }
332
+ function nt(e) {
333
+ Z(), N.value = e, $();
334
+ }
335
+ function rt(e) {
336
+ e.isComposing || e.keyCode === 229 || e.key === "Enter" && !e.shiftKey && (e.preventDefault(), $());
337
+ }
338
+ return (t, n) => (m(), f("div", {
339
+ class: "tpl:contents",
340
+ "data-testid": "ai-chat-dropzone",
341
+ onDragenter: qe,
342
+ onDragleave: Je,
343
+ onDragover: Ye,
344
+ onDrop: Xe
345
+ }, [l(z, {
346
+ title: g(A).ai.chat.title,
347
+ subtitle: g(A).ai.chat.notice,
348
+ testid: "ai-panel-chat",
349
+ "close-label": g(A).ai.chat.close,
350
+ onClose: n[5] ||= (e) => E("close")
351
+ }, {
352
+ actions: c(() => [o.feature.canClear && J.value.length > 0 ? (m(), f("button", {
353
+ key: 0,
354
+ type: "button",
355
+ "data-testid": "ai-chat-new",
356
+ class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)] tpl:disabled:opacity-40",
357
+ "aria-label": g(A).ai.chat.newChat,
358
+ title: g(A).ai.chat.newChat,
359
+ disabled: Y.value,
360
+ onClick: n[0] ||= (e) => o.feature.newChat()
361
+ }, [l(g(le), {
362
+ size: 14,
363
+ "stroke-width": 2,
364
+ "aria-hidden": "true"
365
+ })], 8, pe)) : d("", !0)]),
366
+ footer: c(() => [h("div", ke, [
367
+ B.value ? (m(), f(_, { key: 0 }, [
368
+ h("input", {
369
+ ref_key: "fileInput",
370
+ ref: F,
371
+ "data-testid": "ai-chat-files",
372
+ type: "file",
373
+ multiple: "",
374
+ accept: "image/png,image/jpeg,image/webp,image/gif,application/pdf",
375
+ hidden: "",
376
+ disabled: Y.value,
377
+ onChange: Ge
378
+ }, null, 40, Ae),
379
+ I.value.length ? (m(), f("div", je, [(m(!0), f(_, null, a(I.value, (e, t) => (m(), f("span", {
380
+ key: t,
381
+ "data-testid": "ai-chat-attachment",
382
+ class: "tpl:flex tpl:max-w-full tpl:items-center tpl:gap-1 tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text)]"
383
+ }, [
384
+ e.type === "application/pdf" ? (m(), v(g(k), {
385
+ key: 0,
386
+ size: 12,
387
+ "aria-hidden": "true"
388
+ })) : (m(), v(g(C), {
389
+ key: 1,
390
+ size: 12,
391
+ "aria-hidden": "true"
392
+ })),
393
+ h("span", H, i(e.name), 1),
394
+ h("button", {
395
+ type: "button",
396
+ "aria-label": g(j)(g(A).ai.chat.removeAttachment, { name: e.name }),
397
+ disabled: Y.value,
398
+ class: "tpl:shrink-0 tpl:rounded tpl:p-0.5 tpl:disabled:opacity-40",
399
+ onClick: (e) => Ke(t)
400
+ }, [l(g(T), {
401
+ size: 12,
402
+ "aria-hidden": "true"
403
+ })], 8, Me)
404
+ ]))), 128))])) : d("", !0),
405
+ I.value.length ? (m(), f("p", Ne, i(g(A).ai.import.placeholderNote), 1)) : d("", !0),
406
+ h("div", Pe, [(m(!0), f(_, null, a(L.value, (e, t) => (m(), f("p", {
407
+ key: t,
408
+ class: "tpl:mb-2"
409
+ }, i(e), 1))), 128))])
410
+ ], 64)) : d("", !0),
411
+ o.feature.keptYourVersion.value ? (m(), f("div", Fe, [h("p", null, i(g(A).ai.chat.keptYourVersion), 1), h("button", {
412
+ type: "button",
413
+ disabled: Y.value,
414
+ class: e(g(O)),
415
+ onClick: n[1] ||= (e) => o.feature.reloadTemplate()
416
+ }, i(g(A).ai.chat.reload), 11, Ie)])) : d("", !0),
417
+ X.value ? (m(), f("div", Le, [l(g(ie), {
418
+ size: 14,
419
+ "stroke-width": 2,
420
+ class: "tpl:mt-0.5 tpl:shrink-0",
421
+ "aria-hidden": "true"
422
+ }), h("span", null, i(X.value), 1)])) : d("", !0),
423
+ h("div", Re, [r(h("textarea", {
424
+ ref_key: "composer",
425
+ ref: P,
426
+ "onUpdate:modelValue": n[2] ||= (e) => N.value = e,
427
+ "data-testid": "ai-chat-input",
428
+ class: "tpl:max-h-32 tpl:min-h-[44px] tpl:w-full tpl:resize-none tpl:border-none tpl:bg-transparent tpl:font-sans tpl:text-sm tpl:outline-none tpl:text-[var(--tpl-text)]",
429
+ placeholder: g(A).ai.chat.inputPlaceholder,
430
+ "aria-label": g(A).ai.chat.inputPlaceholder,
431
+ disabled: Y.value,
432
+ maxlength: "4000",
433
+ rows: "3",
434
+ onKeydown: rt
435
+ }, null, 40, ze), [[ee, N.value]]), h("div", Be, [B.value ? (m(), f("button", {
436
+ key: 0,
437
+ type: "button",
438
+ "aria-label": g(A).ai.chat.attach,
439
+ title: g(A).ai.chat.attach,
440
+ disabled: Y.value,
441
+ class: "tpl:-ml-1.5 tpl:shrink-0 tpl:rounded-md tpl:p-1.5 tpl:text-[var(--tpl-text-muted)] tpl:disabled:opacity-40",
442
+ onClick: n[3] ||= (e) => F.value?.click()
443
+ }, [l(g(ue), {
444
+ size: 16,
445
+ "aria-hidden": "true"
446
+ })], 8, Ve)) : d("", !0), Y.value ? (m(), f("button", {
447
+ key: 1,
448
+ type: "button",
449
+ "data-testid": "ai-chat-stop",
450
+ class: "tpl-ai-send-btn tpl:ml-auto tpl:-mr-1.5 tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-all tpl:text-[var(--tpl-primary)]",
451
+ "aria-label": g(A).ai.chat.stop,
452
+ title: g(A).ai.chat.stop,
453
+ onClick: n[4] ||= (e) => o.feature.stop()
454
+ }, [l(g(se), {
455
+ size: 16,
456
+ "stroke-width": 2,
457
+ "aria-hidden": "true"
458
+ })], 8, He)) : (m(), f("button", {
459
+ key: 2,
460
+ type: "button",
461
+ "data-testid": "ai-chat-send",
462
+ class: "tpl-ai-send-btn tpl:ml-auto tpl:-mr-1.5 tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-all tpl:disabled:opacity-40 tpl:text-[var(--tpl-primary)]",
463
+ "aria-label": g(A).ai.chat.send,
464
+ title: g(A).ai.chat.send,
465
+ disabled: !N.value.trim(),
466
+ onClick: $
467
+ }, [l(g(oe), {
468
+ size: 16,
469
+ "stroke-width": 2,
470
+ "aria-hidden": "true"
471
+ })], 8, Ue))])]),
472
+ h("p", We, i(g(A).ai.chat.disclaimer), 1)
473
+ ])]),
474
+ default: c(() => [
475
+ B.value && R.value > 0 && !Y.value ? (m(), f("div", me, i(g(A).ai.chat.dropHint), 1)) : d("", !0),
476
+ h("div", {
477
+ ref_key: "messagesContainer",
478
+ ref: G,
479
+ class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4"
480
+ }, [o.feature.isLoadingHistory.value ? (m(), f("div", he, [l(g(ae), {
481
+ class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
482
+ size: 24,
483
+ "stroke-width": 2,
484
+ "aria-hidden": "true"
485
+ }), h("p", ge, i(g(A).ai.chat.loadingHistory), 1)])) : J.value.length === 0 ? (m(), f("div", _e, [l(g(w), {
486
+ size: 32,
487
+ "stroke-width": 1.5,
488
+ class: "tpl:text-[var(--tpl-text-dim)]",
489
+ "aria-hidden": "true"
490
+ }), h("p", ve, i(g(A).ai.chat.placeholder), 1)])) : (m(), f("div", ye, [(m(!0), f(_, null, a(J.value, (t) => (m(), f("div", {
491
+ key: t.id,
492
+ class: "tpl:flex tpl:flex-col tpl:gap-2"
493
+ }, [t.role === "user" ? (m(), f("div", be, [p(i(t.text) + " ", 1), (m(!0), f(_, null, a(t.attachments, (e, t) => (m(), f("span", {
494
+ key: t,
495
+ "data-testid": "ai-chat-history-attachment",
496
+ class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:px-2 tpl:py-1 tpl:text-xs"
497
+ }, [e.kind === "pdf" ? (m(), v(g(k), {
498
+ key: 0,
499
+ size: 12,
500
+ "aria-hidden": "true"
501
+ })) : (m(), v(g(C), {
502
+ key: 1,
503
+ size: 12,
504
+ "aria-hidden": "true"
505
+ })), p(i(e.name), 1)]))), 128))])) : (m(), f("div", xe, [
506
+ t.text === "" && t.status === "streaming" ? (m(), v(ce, { key: 0 })) : t.text === "" ? d("", !0) : (m(), f("div", Se, i(t.text), 1)),
507
+ t.operationCount > 0 ? (m(), f("div", Ce, [h("span", null, i($e(t)), 1), (t.undone ? t.canRedo : t.canUndo) ? (m(), f("button", {
508
+ key: 0,
509
+ type: "button",
510
+ "data-testid": "ai-chat-undo",
511
+ class: e(g(O)),
512
+ disabled: Y.value,
513
+ onClick: (e) => tt(t)
514
+ }, [t.undone ? (m(), v(g(de), {
515
+ key: 0,
516
+ size: 12,
517
+ "stroke-width": 2,
518
+ "aria-hidden": "true"
519
+ })) : (m(), v(g(fe), {
520
+ key: 1,
521
+ size: 12,
522
+ "stroke-width": 2,
523
+ "aria-hidden": "true"
524
+ })), p(" " + i(t.undone ? g(A).ai.chat.redo : g(A).ai.chat.undo), 1)], 10, we)) : d("", !0)])) : d("", !0),
525
+ t.failure ? (m(), f("p", Te, i(et(t)), 1)) : d("", !0)
526
+ ]))]))), 128))]))], 512),
527
+ J.value.length === 0 && q.value.length > 0 ? (m(), f("div", Ee, [h("div", De, [(m(!0), f(_, null, a(q.value, (t, n) => (m(), f("button", {
528
+ key: n,
529
+ type: "button",
530
+ "data-testid": "ai-chat-starter",
531
+ class: e(["tpl-starter-btn tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3 tpl:py-2 tpl:text-left tpl:text-xs tpl:leading-snug tpl:transition-all tpl:duration-300 tpl:ease-out", q.value.length - 1 - n < K.value ? "tpl:translate-y-0 tpl:opacity-100" : "tpl:pointer-events-none tpl:-translate-y-2 tpl:opacity-0"]),
532
+ style: {
533
+ "border-color": "var(--tpl-border)",
534
+ color: "var(--tpl-primary)",
535
+ "background-color": "var(--tpl-bg)",
536
+ "box-shadow": "var(--tpl-shadow)"
537
+ },
538
+ onClick: (e) => nt(t)
539
+ }, i(t), 11, Oe))), 128))])])) : d("", !0)
540
+ ]),
541
+ _: 1
542
+ }, 8, [
543
+ "title",
544
+ "subtitle",
545
+ "close-label"
546
+ ])], 32));
547
+ }
548
+ }), [["__scopeId", "data-v-e0f79f23"]]);
549
+ //#endregion
550
+ export { U as default };
@@ -0,0 +1,36 @@
1
+ import { At as e, Mt as t, _ as n, c as r, d as i, f as a, g as o, j as s, ot as c, y as l } from "./vue.runtime.esm-bundler-DgFJ6GPG.js";
2
+ import { c as u } from "./runtime-dom.esm-bundler-B8WCZWUm.js";
3
+ import { t as d } from "./useI18n-BdoY7xDE.js";
4
+ import { t as f } from "./sparkles-Ce0Qz0ox.js";
5
+ //#region src/components/ai/AiHeaderMenu.vue?vue&type=script&setup=true&lang.ts
6
+ var p = [
7
+ "aria-pressed",
8
+ "aria-label",
9
+ "title"
10
+ ], m = /* @__PURE__ */ l({
11
+ __name: "AiHeaderMenu",
12
+ props: { feature: {} },
13
+ setup(l) {
14
+ let m = l, { t: h } = d(), g = r(() => m.feature.panel.value === "chat");
15
+ function _() {
16
+ g.value ? m.feature.close() : m.feature.open("chat");
17
+ }
18
+ return (r, d) => l.feature.isAvailable.value && l.feature.has("chat") ? (s(), a("button", {
19
+ key: 0,
20
+ type: "button",
21
+ "data-testid": "ai-menu-trigger",
22
+ "aria-pressed": g.value,
23
+ "aria-label": c(h).ai.menu.chat,
24
+ title: c(h).ai.menu.chat,
25
+ class: e(["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", g.value ? "tpl-ai-btn--active" : "tpl-ai-btn--idle"]),
26
+ onClick: u(_, ["stop"])
27
+ }, [n(c(f), {
28
+ size: 16,
29
+ "stroke-width": 2,
30
+ class: "tpl-ai-btn-icon",
31
+ "aria-hidden": "true"
32
+ }), o(" " + t(c(h).ai.menu.button), 1)], 10, p)) : i("", !0);
33
+ }
34
+ });
35
+ //#endregion
36
+ export { m as default };
@@ -0,0 +1,33 @@
1
+ import { I as e, V as t, c as n, d as r, i, j as a, u as o, v as s, y as c } from "./vue.runtime.esm-bundler-DgFJ6GPG.js";
2
+ import { t as l } from "./runtime-dom.esm-bundler-B8WCZWUm.js";
3
+ import { t as u } from "./_plugin-vue_export-helper-B3ysoDQm.js";
4
+ //#endregion
5
+ //#region src/components/ai/AiPanels.vue
6
+ var d = /*#__PURE__*/ u(/* @__PURE__ */ c({
7
+ __name: "AiPanels",
8
+ props: { feature: {} },
9
+ setup(c) {
10
+ let u = s(() => import("./AiChatPanel-Bs6sES3b.js")), d = c, f = { chat: u }, p = n(() => {
11
+ let e = d.feature.panel.value;
12
+ return e !== null && e in f ? f[e] : null;
13
+ });
14
+ return (n, s) => (a(), o(l, {
15
+ "enter-active-class": "tpl-ai-slide-enter-active",
16
+ "enter-from-class": "tpl:translate-x-full",
17
+ "enter-to-class": "tpl:translate-x-0",
18
+ "leave-active-class": "tpl-ai-slide-leave-active",
19
+ "leave-from-class": "tpl:translate-x-0",
20
+ "leave-to-class": "tpl:translate-x-full",
21
+ mode: "out-in"
22
+ }, {
23
+ default: t(() => [(a(), o(i, null, [p.value ? (a(), o(e(p.value), {
24
+ key: c.feature.panel.value ?? "none",
25
+ feature: c.feature,
26
+ onClose: s[0] ||= (e) => c.feature.close()
27
+ }, null, 40, ["feature"])) : r("", !0)], 1024))]),
28
+ _: 1
29
+ }));
30
+ }
31
+ }), [["__scopeId", "data-v-3d8e197c"]]);
32
+ //#endregion
33
+ export { d as default };