@templatical/editor 0.52.1 → 0.53.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 (396) hide show
  1. package/README.md +1 -1
  2. package/dist/AiAltTextPopover-NMJqQKvD.js +106 -0
  3. package/dist/{AiAltTextReview-9ySsXOTU.js → AiAltTextReview-Ci4zHwRc.js} +68 -66
  4. package/dist/AiChatPanel-DdhtfsmO.js +561 -0
  5. package/dist/{AiPanels-DqT4PgQ0.js → AiPanels-HBx7xoJR.js} +6 -6
  6. package/dist/{AiRewriteMenu-28agTycW.js → AiRewriteMenu-DPzSekZt.js} +76 -105
  7. package/dist/BlockIssueBadge-eIXZJ9M3.js +33 -0
  8. package/dist/BlockPreviewCanvas-DO-2TP_6.js +140 -0
  9. package/dist/{CloudHeaderExtras-QI82yF54.js → CloudHeaderExtras-XpjJjn3o.js} +4 -4
  10. package/dist/{CloudPanels-BKJaLkUN.js → CloudPanels-i2kZdrdP.js} +53 -53
  11. package/dist/CollaborationNotices-DANsjl7c.js +65 -0
  12. package/dist/{CollaboratorBar-CXQqN3VP.js → CollaboratorBar-CbbAA0m1.js} +24 -24
  13. package/dist/CommentsPanel-CYW3LWis.js +16 -0
  14. package/dist/CommentsSidebar-CcF4ISMi.js +526 -0
  15. package/dist/{CountdownBlock-CU2yTWtF.js → CountdownBlock-BMezkFbJ.js} +15 -15
  16. package/dist/CountdownToolbar-D3Lv74kU.js +258 -0
  17. package/dist/IssuesPanel-BMAG9042.js +371 -0
  18. package/dist/LanguageMenu-FlP_Jbup.js +403 -0
  19. package/dist/{LoadingTrack-DM4g6j7b.js → LoadingTrack-BG8cg9xi.js} +2 -2
  20. package/dist/LocaleNotices-DAnVszWu.js +46 -0
  21. package/dist/LogicTagInsertButton-BjYs-UQX.js +1096 -0
  22. package/dist/{MediaEditModal-Dy08GEwE.js → MediaEditModal-LnG-cF_S.js} +451 -451
  23. package/dist/{MediaPanels-BgEp7iCp.js → MediaPanels-C2r5fiFo.js} +4 -4
  24. package/dist/{MergeTagInput-B9dtUthD.js → MergeTagInput-BsnogCeY.js} +30 -30
  25. package/dist/{MergeTagModeToggle-DxujhYJ4.js → MergeTagModeToggle-DiufIQ-_.js} +49 -49
  26. package/dist/MergeTagTextarea-BweI-Xsi.js +126 -0
  27. package/dist/ParagraphEditor-qgBp5yIB.js +825 -0
  28. package/dist/{RestoreVersionDialog-C4s_JYCx.js → RestoreVersionDialog-DdYUrFiK.js} +23 -23
  29. package/dist/{RichTextEditorContent-o6HmE8GR.js → RichTextEditorContent-C5MAzx3E.js} +47 -47
  30. package/dist/{SaveBlockDialog-CWLrly6l.js → SaveBlockDialog-eK6fjtTy.js} +86 -86
  31. package/dist/{cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js → SavedBlocksBrowserModal-D2QHd2Yp.js} +135 -132
  32. package/dist/{SavedBlocksPanels-BE1N9rNZ.js → SavedBlocksPanels-Cl61f4Mf.js} +9 -9
  33. package/dist/{SavedBlocksPickBar-Dwl94xhP.js → SavedBlocksPickBar-CXP2dkeB.js} +15 -15
  34. package/dist/TemplateSettings-BKJrdZcH.js +294 -0
  35. package/dist/TestEmailModal-DQotJg6g.js +212 -0
  36. package/dist/{TestEmailPanel-DaFjP9QK.js → TestEmailPanel-CwiTzJsh.js} +4 -4
  37. package/dist/TitleEditor-CzSvsPAn.js +202 -0
  38. package/dist/ToggleSwitch-R3wCCYE6.js +43 -0
  39. package/dist/Toolbar-Cd75ci5W.js +3711 -0
  40. package/dist/{TplModal-DLMssVlt.js → TplModal-ZoXu40T9.js} +17 -17
  41. package/dist/{VersionHistoryMenu-BkbYUs0Q.js → VersionHistoryMenu-BvhN-Ofk.js} +39 -39
  42. package/dist/{VersionHistoryPanels-DP7HaYWv.js → VersionHistoryPanels-DPWMnYbd.js} +5 -5
  43. package/dist/VersionPreviewBanner-CuJnasxH.js +37 -0
  44. package/dist/WrapperBlock-D4fPwO0t.js +44 -0
  45. package/dist/{blockTypeIcons-BHjlPnPf.js → blockTypeIcons-BXMxu86H.js} +7 -7
  46. package/dist/bundle-stats.json +8 -8
  47. package/dist/{cdn/chunks/ca-CD-Kt1qz.js → ca-DOuIxWRv.js} +114 -2
  48. package/dist/cdn/chunks/AiAltTextPopover-ByZ0FEqI.js +107 -0
  49. package/dist/cdn/chunks/AiAltTextPopover-ByZ0FEqI.js.map +1 -0
  50. package/dist/cdn/chunks/{AiAltTextReview-BGLLSKLm.js → AiAltTextReview-Dtm3A2cD.js} +70 -68
  51. package/dist/cdn/chunks/AiAltTextReview-Dtm3A2cD.js.map +1 -0
  52. package/dist/cdn/chunks/AiChatPanel-DciEt27y.js +487 -0
  53. package/dist/cdn/chunks/AiChatPanel-DciEt27y.js.map +1 -0
  54. package/dist/cdn/chunks/{AiPanels-0wBarZSH.js → AiPanels-BV5D1itk.js} +11 -11
  55. package/dist/cdn/chunks/{AiPanels-0wBarZSH.js.map → AiPanels-BV5D1itk.js.map} +1 -1
  56. package/dist/cdn/chunks/{AiRewriteMenu-qf-cfEpy.js → AiRewriteMenu-D3jkh6Xb.js} +79 -79
  57. package/dist/cdn/chunks/AiRewriteMenu-D3jkh6Xb.js.map +1 -0
  58. package/dist/cdn/chunks/BlockIssueBadge-DyEgBZtR.js +34 -0
  59. package/dist/cdn/chunks/BlockIssueBadge-DyEgBZtR.js.map +1 -0
  60. package/dist/cdn/chunks/BlockPreviewCanvas-RQFilqXC.js +142 -0
  61. package/dist/cdn/chunks/{BlockPreviewCanvas-DGBh6mqe.js.map → BlockPreviewCanvas-RQFilqXC.js.map} +1 -1
  62. package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js → CloudHeaderExtras-BtqdN777.js} +4 -4
  63. package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js.map → CloudHeaderExtras-BtqdN777.js.map} +1 -1
  64. package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js → CloudPanels-BSJ-Z5Hw.js} +45 -45
  65. package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js.map → CloudPanels-BSJ-Z5Hw.js.map} +1 -1
  66. package/dist/cdn/chunks/CollaborationNotices-BS7xrlPE.js +67 -0
  67. package/dist/cdn/chunks/CollaborationNotices-BS7xrlPE.js.map +1 -0
  68. package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js → CollaboratorBar-Bc9914Az.js} +17 -17
  69. package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js.map → CollaboratorBar-Bc9914Az.js.map} +1 -1
  70. package/dist/cdn/chunks/CommentsPanel-DbR9phAk.js +18 -0
  71. package/dist/cdn/chunks/{CommentsPanel-DoJnKLXI.js.map → CommentsPanel-DbR9phAk.js.map} +1 -1
  72. package/dist/cdn/chunks/CommentsSidebar-BD4--XP2.js +496 -0
  73. package/dist/cdn/chunks/CommentsSidebar-BD4--XP2.js.map +1 -0
  74. package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js → CountdownBlock-CjMhMhnv.js} +22 -22
  75. package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js.map → CountdownBlock-CjMhMhnv.js.map} +1 -1
  76. package/dist/cdn/chunks/CountdownToolbar-DxwYBw-d.js +260 -0
  77. package/dist/cdn/chunks/CountdownToolbar-DxwYBw-d.js.map +1 -0
  78. package/dist/cdn/chunks/{IssuesPanel-C7LfxaAY.js → IssuesPanel-CUmI4HMm.js} +133 -121
  79. package/dist/cdn/chunks/IssuesPanel-CUmI4HMm.js.map +1 -0
  80. package/dist/cdn/chunks/LanguageMenu-3ydCozQJ.js +359 -0
  81. package/dist/cdn/chunks/LanguageMenu-3ydCozQJ.js.map +1 -0
  82. package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js → LoadingTrack-DUYcDHOV.js} +2 -2
  83. package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js.map → LoadingTrack-DUYcDHOV.js.map} +1 -1
  84. package/dist/cdn/chunks/LocaleNotices-BfoH6gST.js +47 -0
  85. package/dist/cdn/chunks/LocaleNotices-BfoH6gST.js.map +1 -0
  86. package/dist/{LogicTagInsertButton-CfscnwCn.js → cdn/chunks/LogicTagInsertButton-5Z3fFzjc.js} +422 -449
  87. package/dist/cdn/chunks/LogicTagInsertButton-5Z3fFzjc.js.map +1 -0
  88. package/dist/cdn/chunks/{MediaEditModal-Cpcod6_U.js → MediaEditModal-DDCIwr9U.js} +421 -421
  89. package/dist/cdn/chunks/MediaEditModal-DDCIwr9U.js.map +1 -0
  90. package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js → MediaPanels-Dz79oy8P.js} +5 -5
  91. package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js.map → MediaPanels-Dz79oy8P.js.map} +1 -1
  92. package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js → MergeTagInput-CIWy-cXf.js} +28 -28
  93. package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js.map → MergeTagInput-CIWy-cXf.js.map} +1 -1
  94. package/dist/cdn/chunks/{MergeTagModeToggle-BgKEVUtV.js → MergeTagModeToggle-BrP5GR-x.js} +52 -52
  95. package/dist/cdn/chunks/MergeTagModeToggle-BrP5GR-x.js.map +1 -0
  96. package/dist/cdn/chunks/MergeTagTextarea-D3nNDlhV.js +128 -0
  97. package/dist/cdn/chunks/MergeTagTextarea-D3nNDlhV.js.map +1 -0
  98. package/dist/cdn/chunks/ParagraphEditor-DDolH_Pf.js +660 -0
  99. package/dist/cdn/chunks/ParagraphEditor-DDolH_Pf.js.map +1 -0
  100. package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js → RestoreVersionDialog-Crj1DBqC.js} +22 -22
  101. package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js.map → RestoreVersionDialog-Crj1DBqC.js.map} +1 -1
  102. package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js → RichTextEditorContent-rCCqFlwJ.js} +44 -44
  103. package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js.map → RichTextEditorContent-rCCqFlwJ.js.map} +1 -1
  104. package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js → SaveBlockDialog-C34RW1aM.js} +77 -77
  105. package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js.map → SaveBlockDialog-C34RW1aM.js.map} +1 -1
  106. package/dist/{SavedBlocksBrowserModal-CE8n4EBS.js → cdn/chunks/SavedBlocksBrowserModal-CJnwWPT-.js} +103 -106
  107. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BPYcRoGa.js.map → SavedBlocksBrowserModal-CJnwWPT-.js.map} +1 -1
  108. package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js → SavedBlocksPanels-CA2PqXIH.js} +9 -9
  109. package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js.map → SavedBlocksPanels-CA2PqXIH.js.map} +1 -1
  110. package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js → SavedBlocksPickBar-Dj3ortee.js} +16 -16
  111. package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js.map → SavedBlocksPickBar-Dj3ortee.js.map} +1 -1
  112. package/dist/cdn/chunks/TemplateSettings-sW0ZlDl1.js +266 -0
  113. package/dist/cdn/chunks/TemplateSettings-sW0ZlDl1.js.map +1 -0
  114. package/dist/cdn/chunks/TestEmailModal-BXeCtTjU.js +212 -0
  115. package/dist/cdn/chunks/TestEmailModal-BXeCtTjU.js.map +1 -0
  116. package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js → TestEmailPanel-CpZcpB9D.js} +5 -5
  117. package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js.map → TestEmailPanel-CpZcpB9D.js.map} +1 -1
  118. package/dist/cdn/chunks/TitleEditor-Bv3SmSO6.js +202 -0
  119. package/dist/cdn/chunks/TitleEditor-Bv3SmSO6.js.map +1 -0
  120. package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js +45 -0
  121. package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js.map +1 -0
  122. package/dist/cdn/chunks/Toolbar-BJKpJ2Mg.js +3626 -0
  123. package/dist/cdn/chunks/Toolbar-BJKpJ2Mg.js.map +1 -0
  124. package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js → TplModal-DDDUDMYC.js} +20 -20
  125. package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js.map → TplModal-DDDUDMYC.js.map} +1 -1
  126. package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js → VersionHistoryMenu-DSElv3Sv.js} +33 -33
  127. package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js.map → VersionHistoryMenu-DSElv3Sv.js.map} +1 -1
  128. package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js → VersionHistoryPanels-H2nuik1l.js} +6 -6
  129. package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js.map → VersionHistoryPanels-H2nuik1l.js.map} +1 -1
  130. package/dist/cdn/chunks/VersionPreviewBanner-Whwxh55w.js +39 -0
  131. package/dist/cdn/chunks/VersionPreviewBanner-Whwxh55w.js.map +1 -0
  132. package/dist/cdn/chunks/WrapperBlock-jTqsuLnS.js +46 -0
  133. package/dist/cdn/chunks/WrapperBlock-jTqsuLnS.js.map +1 -0
  134. package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js → blockTypeIcons-DMgLcuI8.js} +5 -5
  135. package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js.map → blockTypeIcons-DMgLcuI8.js.map} +1 -1
  136. package/dist/{ca-CD-Kt1qz.js → cdn/chunks/ca-DOuIxWRv.js} +116 -0
  137. package/dist/cdn/chunks/ca-DOuIxWRv.js.map +1 -0
  138. package/dist/cdn/chunks/composables-D0UYam2P.js +3039 -0
  139. package/dist/cdn/chunks/composables-D0UYam2P.js.map +1 -0
  140. package/dist/cdn/chunks/{createCloudRuntime-Cth2JCEh.js → createCloudRuntime-BdsclY8_.js} +75 -73
  141. package/dist/cdn/chunks/createCloudRuntime-BdsclY8_.js.map +1 -0
  142. package/dist/{de-CeFJ6wbM.js → cdn/chunks/de-DaOUfYBX.js} +116 -0
  143. package/dist/cdn/chunks/de-DaOUfYBX.js.map +1 -0
  144. package/dist/cdn/chunks/{dist-8ym3y-pH.js → dist-BzXULHvI.js} +48 -48
  145. package/dist/cdn/chunks/{dist-8ym3y-pH.js.map → dist-BzXULHvI.js.map} +1 -1
  146. package/dist/cdn/chunks/{dist-BMzNabtD.js → dist-DqGgijFI.js} +114 -114
  147. package/dist/cdn/chunks/{dist-BMzNabtD.js.map → dist-DqGgijFI.js.map} +1 -1
  148. package/dist/cdn/chunks/{draggable-Du8AUMFT.js → draggable-DepKdldn.js} +1491 -1486
  149. package/dist/cdn/chunks/draggable-DepKdldn.js.map +1 -0
  150. package/dist/cdn/chunks/{editor-modal-CyCe560f.js → editor-modal-CPbgthOv.js} +781 -781
  151. package/dist/cdn/chunks/{editor-modal-CyCe560f.js.map → editor-modal-CPbgthOv.js.map} +1 -1
  152. package/dist/{en-D14i5nFh.js → cdn/chunks/en-C0pHHMiR.js} +116 -0
  153. package/dist/cdn/chunks/en-C0pHHMiR.js.map +1 -0
  154. package/dist/cdn/chunks/en-IYVryJRl.js +1 -0
  155. package/dist/{es-zDacbMhs.js → cdn/chunks/es-CxyEKr6n.js} +116 -0
  156. package/dist/cdn/chunks/es-CxyEKr6n.js.map +1 -0
  157. package/dist/cdn/chunks/{extensions-CFF2KWy-.js → extensions-Uh9vuFfK.js} +59 -59
  158. package/dist/cdn/chunks/{extensions-CFF2KWy-.js.map → extensions-Uh9vuFfK.js.map} +1 -1
  159. package/dist/{fr-CSgYtjOd.js → cdn/chunks/fr-CYbamiI6.js} +116 -0
  160. package/dist/cdn/chunks/fr-CYbamiI6.js.map +1 -0
  161. package/dist/cdn/chunks/{icons-okSPsLOa.js → icons-CSSMtbGK.js} +150 -109
  162. package/dist/cdn/chunks/icons-CSSMtbGK.js.map +1 -0
  163. package/dist/{ja-B7H3ID8O.js → cdn/chunks/ja-DfaIAoGI.js} +116 -0
  164. package/dist/cdn/chunks/ja-DfaIAoGI.js.map +1 -0
  165. package/dist/cdn/chunks/keys-CoQtCqNv.js +11 -0
  166. package/dist/cdn/chunks/keys-CoQtCqNv.js.map +1 -0
  167. package/dist/cdn/chunks/languageName-DEEOhDWI.js +12 -0
  168. package/dist/cdn/chunks/languageName-DEEOhDWI.js.map +1 -0
  169. package/dist/{nl-176ySmc5.js → cdn/chunks/nl-DkrB-VKZ.js} +116 -0
  170. package/dist/cdn/chunks/nl-DkrB-VKZ.js.map +1 -0
  171. package/dist/cdn/chunks/normalizeMergeTagMarkup-oGhwVscw.js +290 -0
  172. package/dist/cdn/chunks/normalizeMergeTagMarkup-oGhwVscw.js.map +1 -0
  173. package/dist/cdn/chunks/noticeTones-D7BPu-Le.js +16 -0
  174. package/dist/cdn/chunks/noticeTones-D7BPu-Le.js.map +1 -0
  175. package/dist/cdn/chunks/plural-CyxrJXL1.js +17 -0
  176. package/dist/cdn/chunks/plural-CyxrJXL1.js.map +1 -0
  177. package/dist/cdn/chunks/{preRenderCustomBlocks-BcXIz7oJ.js → preRenderCustomBlocks-C8k7tw98.js} +5 -5
  178. package/dist/cdn/chunks/{preRenderCustomBlocks-BcXIz7oJ.js.map → preRenderCustomBlocks-C8k7tw98.js.map} +1 -1
  179. package/dist/{pt-BR-dDlTwX18.js → cdn/chunks/pt-BR-CY5Ye7eP.js} +116 -0
  180. package/dist/cdn/chunks/pt-BR-CY5Ye7eP.js.map +1 -0
  181. package/dist/cdn/chunks/sanitizeHtml-DYklmvgX.js +61 -0
  182. package/dist/cdn/chunks/sanitizeHtml-DYklmvgX.js.map +1 -0
  183. package/dist/cdn/chunks/socialIcons-BAiuHyJs.js +2638 -0
  184. package/dist/cdn/chunks/socialIcons-BAiuHyJs.js.map +1 -0
  185. package/dist/cdn/chunks/src-CACM3o--.js +2606 -0
  186. package/dist/cdn/chunks/src-CACM3o--.js.map +1 -0
  187. package/dist/cdn/chunks/{src-C7bkofBL.js → src-Ddpm4HsS.js} +222 -256
  188. package/dist/cdn/chunks/src-Ddpm4HsS.js.map +1 -0
  189. package/dist/cdn/chunks/{src-DEd87i_U.js → src-DheBmnvF.js} +635 -478
  190. package/dist/cdn/chunks/src-DheBmnvF.js.map +1 -0
  191. package/dist/{styleConstants-B8xVRiwX.js → cdn/chunks/styleConstants-CgiNKdnc.js} +7 -5
  192. package/dist/cdn/chunks/styleConstants-CgiNKdnc.js.map +1 -0
  193. package/dist/cdn/chunks/templateSettingsFields-cjlP-jdw.js.map +1 -1
  194. package/dist/cdn/chunks/{tiptap-CbiTlECY.js → tiptap-Dipw_zOQ.js} +40 -40
  195. package/dist/cdn/chunks/{tiptap-CbiTlECY.js.map → tiptap-Dipw_zOQ.js.map} +1 -1
  196. package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js → useCloudI18n-Cc5NZqiI.js} +3 -3
  197. package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js.map → useCloudI18n-Cc5NZqiI.js.map} +1 -1
  198. package/dist/cdn/chunks/useEditorRoot-D_LuZ_hE.js +9 -0
  199. package/dist/cdn/chunks/{useEditorRoot-vjZJwKrV.js.map → useEditorRoot-D_LuZ_hE.js.map} +1 -1
  200. package/dist/cdn/chunks/{useI18n-D8pY4LTq.js → useI18n-BnJYydPv.js} +3 -3
  201. package/dist/cdn/chunks/{useI18n-D8pY4LTq.js.map → useI18n-BnJYydPv.js.map} +1 -1
  202. package/dist/cdn/chunks/useLocalizedDisplay-yXbRKNrs.js +33 -0
  203. package/dist/cdn/chunks/useLocalizedDisplay-yXbRKNrs.js.map +1 -0
  204. package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js → useLogicTag-B7RpqVFQ.js} +5 -5
  205. package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js.map → useLogicTag-B7RpqVFQ.js.map} +1 -1
  206. package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js → useMergeTag-C-32ETjj.js} +6 -6
  207. package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js.map → useMergeTag-C-32ETjj.js.map} +1 -1
  208. package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js +78 -0
  209. package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js.map +1 -0
  210. package/dist/cdn/chunks/{useScrollToBlock-vjQ0fe-L.js → useScrollToBlock-Ct1AwLD-.js} +5 -5
  211. package/dist/cdn/chunks/useScrollToBlock-Ct1AwLD-.js.map +1 -0
  212. package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js → withCurrentFont-D33ZXoWp.js} +2 -2
  213. package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js.map → withCurrentFont-D33ZXoWp.js.map} +1 -1
  214. package/dist/cdn/editor.css +1 -1
  215. package/dist/cdn/editor.js +2190 -1496
  216. package/dist/cdn/editor.js.map +1 -1
  217. package/dist/{check-BZ8o0eet.js → check-ChQ0l8EQ.js} +1 -1
  218. package/dist/{chevron-down-DfAAfILv.js → chevron-down-Bh6cp6PI.js} +1 -1
  219. package/dist/{chevron-right-Bk4mGdr7.js → chevron-right-LUgdqdoW.js} +1 -1
  220. package/dist/{chevron-up-MhUf_azW.js → chevron-up-XsDeJxQN.js} +1 -1
  221. package/dist/{circle-alert-CShJwVFv.js → circle-alert-lODfDsrj.js} +1 -1
  222. package/dist/{clock-CTfD6OCt.js → clock-DrqFEZkT.js} +1 -1
  223. package/dist/composables-BOP3ERRP.js +4517 -0
  224. package/dist/{createCloudRuntime-DCgO4A1r.js → createCloudRuntime-DGV5a5Af.js} +54 -52
  225. package/dist/{createLucideIcon-CvhTA2KG.js → createLucideIcon-Dw5e5gVE.js} +11 -11
  226. package/dist/{cdn/chunks/de-CeFJ6wbM.js → de-DaOUfYBX.js} +114 -2
  227. package/dist/{dist-ByCWA2Tv.js → dist-0alKVRc_.js} +101 -101
  228. package/dist/{dist-Cy8I5scI.js → dist-54VCNoC0.js} +2 -2
  229. package/dist/dist-6DU0me3E.js +4 -0
  230. package/dist/{dist-p3wymUDt.js → dist-B8dY8drK.js} +2 -2
  231. package/dist/{dist-Dd5MU2Ev.js → dist-B9a7iVye.js} +2 -2
  232. package/dist/{dist-V7W1UhVr.js → dist-BWflWcpW.js} +2 -2
  233. package/dist/{dist-D6fZec6r.js → dist-C3hu_C3w.js} +2 -2
  234. package/dist/{dist-CVy-7PHQ.js → dist-CX7skkvG.js} +48 -48
  235. package/dist/dist-CcOn7WCo.js +4 -0
  236. package/dist/dist-Cdkm20M6.js +2542 -0
  237. package/dist/{dist-BS5uKktL.js → dist-ChOb5XHW.js} +2 -2
  238. package/dist/{dist-BF5zEHop.js → dist-DZ3X-uB8.js} +2 -2
  239. package/dist/{dist-CWSG7Kj0.js → dist-D_XrUEET.js} +5 -5
  240. package/dist/{dist-txQLT2sF.js → dist-TAv500j6.js} +2 -2
  241. package/dist/{dist-D6cMdrfG.js → dist-fqSers8_.js} +55 -55
  242. package/dist/{editor-modal-zaZHcmlO.js → editor-modal-B_2EAOjN.js} +953 -952
  243. package/dist/{cdn/chunks/en-D14i5nFh.js → en-C0pHHMiR.js} +114 -2
  244. package/dist/en-DTtwco2Q.js +1 -0
  245. package/dist/{cdn/chunks/es-zDacbMhs.js → es-CxyEKr6n.js} +114 -2
  246. package/dist/{extensions-fo_c-vqf.js → extensions-DOLZkLzV.js} +173 -173
  247. package/dist/{eye-7W4t5e0Q.js → eye-DChfk0gi.js} +1 -1
  248. package/dist/{cdn/chunks/fr-CSgYtjOd.js → fr-CYbamiI6.js} +114 -2
  249. package/dist/{image-BDiRFzSd.js → image--Hj2by1G.js} +1 -1
  250. package/dist/index.d.ts +182 -14
  251. package/dist/{info-Cxi3-Kh9.js → info-BbXgy82f.js} +1 -1
  252. package/dist/{cdn/chunks/ja-B7H3ID8O.js → ja-DfaIAoGI.js} +114 -2
  253. package/dist/keys-BCqskl51.js +9 -0
  254. package/dist/languageName-DEEOhDWI.js +10 -0
  255. package/dist/{link-ju_2Cmir.js → link-C2_8yJno.js} +1 -1
  256. package/dist/{list-DYZJf0aZ.js → list-DLGs2n0V.js} +1 -1
  257. package/dist/{loader-circle-BZRD0a4I.js → loader-circle-BbDItE_O.js} +1 -1
  258. package/dist/{message-circle-DuEw4Zfx.js → message-circle-NAModq0p.js} +1 -1
  259. package/dist/{cdn/chunks/nl-176ySmc5.js → nl-DkrB-VKZ.js} +114 -2
  260. package/dist/normalizeMergeTagMarkup-CUCo7B5X.js +288 -0
  261. package/dist/noticeTones-D7BPu-Le.js +14 -0
  262. package/dist/{package-CePMr2kK.js → package-BuzsfRyH.js} +1 -1
  263. package/dist/{pencil-D3aFCL7c.js → pencil-BTUUECH4.js} +1 -1
  264. package/dist/plural-CyxrJXL1.js +15 -0
  265. package/dist/plus-Dm7DN65T.js +13 -0
  266. package/dist/{preRenderCustomBlocks--_xc0XK3.js → preRenderCustomBlocks-Bs3N9no-.js} +4 -4
  267. package/dist/{cdn/chunks/pt-BR-dDlTwX18.js → pt-BR-CY5Ye7eP.js} +114 -2
  268. package/dist/{refresh-cw-xnro7_Sk.js → refresh-cw-xMURqGWi.js} +2 -12
  269. package/dist/rotate-ccw-DqVcEIn5.js +13 -0
  270. package/dist/{runtime-dom.esm-bundler-BURR-bj5.js → runtime-dom.esm-bundler-DlHp8xgy.js} +154 -154
  271. package/dist/sanitizeHtml-mKgNUdME.js +962 -0
  272. package/dist/{search-CDrstRBv.js → search-Cfr3W44N.js} +1 -1
  273. package/dist/{send-DROkPOaX.js → send-CH1SrvyB.js} +1 -1
  274. package/dist/{smartphone-Bx6u_tjn.js → smartphone-pAkvzjdI.js} +1 -1
  275. package/dist/socialIcons-Dqr4DJOz.js +2705 -0
  276. package/dist/{sparkles-CdaTtvoz.js → sparkles-CRO0cCnp.js} +1 -1
  277. package/dist/{square-BbCROH_f.js → square-CaQWMntx.js} +1 -1
  278. package/dist/style.css +1 -1
  279. package/dist/{cdn/chunks/styleConstants-B8xVRiwX.js → styleConstants-CgiNKdnc.js} +5 -7
  280. package/dist/templatical-editor.js +2438 -1752
  281. package/dist/{text-align-start-CGacJ9Vw.js → text-align-start-BQ39AaRK.js} +1 -1
  282. package/dist/{trash-DxCd7zIy.js → trash-BL5gEFHN.js} +1 -1
  283. package/dist/{triangle-alert-7_oaitpf.js → triangle-alert-BYbKu7zZ.js} +1 -1
  284. package/dist/{upload-DuFEOi_0.js → upload-BhmL4Vqx.js} +1 -1
  285. package/dist/{useCloudI18n-DEMmUKuO.js → useCloudI18n-Dh2iydo1.js} +4 -4
  286. package/dist/useEditorRoot-DY3mgcHm.js +7 -0
  287. package/dist/{useI18n-BBrHTdu8.js → useI18n-CgtvtF4C.js} +4 -4
  288. package/dist/useLocalizedDisplay-DNNwDRxL.js +31 -0
  289. package/dist/{useLogicTag-ZPC39rfH.js → useLogicTag-BXXXQQmi.js} +4 -4
  290. package/dist/{useMergeTag-BQ4qqWpQ.js → useMergeTag-C9Okr87y.js} +5 -5
  291. package/dist/usePopoverPosition-VDQjyX_A.js +76 -0
  292. package/dist/{useScrollToBlock-BSyAV4pk.js → useScrollToBlock-C0Kapxdh.js} +5 -5
  293. package/dist/{vue.runtime.esm-bundler-CnEeTfhs.js → vue.runtime.esm-bundler-BJXc_Mri.js} +1373 -1368
  294. package/dist/withCurrentFont-DJiQqZzL.js +18 -0
  295. package/dist/{x-BpfG7v9g.js → x-B7NZYzhx.js} +1 -1
  296. package/package.json +20 -20
  297. package/dist/AiAltTextPopover-DawbUywc.js +0 -105
  298. package/dist/AiChatPanel-CupPhmsN.js +0 -548
  299. package/dist/BlockIssueBadge-BxpDy3u-.js +0 -33
  300. package/dist/BlockPreviewCanvas-B-4bmJ3t.js +0 -140
  301. package/dist/CollaborationNotices-CTw4JThq.js +0 -75
  302. package/dist/CommentsPanel-DwwFuh1h.js +0 -16
  303. package/dist/CommentsSidebar-9ZfiC2DO.js +0 -500
  304. package/dist/CountdownToolbar-BqoYzf_6.js +0 -197
  305. package/dist/IssuesPanel-4ykrf1ax.js +0 -359
  306. package/dist/MergeTagTextarea-CPFEjJZd.js +0 -69
  307. package/dist/ParagraphEditor-CWXfurGh.js +0 -796
  308. package/dist/TemplateSettings-CS0f1Ues.js +0 -236
  309. package/dist/TestEmailModal-DBD0X5nV.js +0 -209
  310. package/dist/TitleEditor-DSqtle77.js +0 -198
  311. package/dist/ToggleSwitch-JykPyD_8.js +0 -36
  312. package/dist/Toolbar-BZPFfKrf.js +0 -3145
  313. package/dist/VersionPreviewBanner-DECaBwLq.js +0 -37
  314. package/dist/WrapperBlock-BsJv_Fiw.js +0 -44
  315. package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js +0 -106
  316. package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js.map +0 -1
  317. package/dist/cdn/chunks/AiAltTextReview-BGLLSKLm.js.map +0 -1
  318. package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js +0 -474
  319. package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js.map +0 -1
  320. package/dist/cdn/chunks/AiRewriteMenu-qf-cfEpy.js.map +0 -1
  321. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +0 -34
  322. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +0 -1
  323. package/dist/cdn/chunks/BlockPreviewCanvas-DGBh6mqe.js +0 -142
  324. package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js +0 -77
  325. package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js.map +0 -1
  326. package/dist/cdn/chunks/CommentsPanel-DoJnKLXI.js +0 -18
  327. package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js +0 -470
  328. package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +0 -1
  329. package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js +0 -199
  330. package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js.map +0 -1
  331. package/dist/cdn/chunks/IssuesPanel-C7LfxaAY.js.map +0 -1
  332. package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js +0 -1051
  333. package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js.map +0 -1
  334. package/dist/cdn/chunks/MediaEditModal-Cpcod6_U.js.map +0 -1
  335. package/dist/cdn/chunks/MergeTagModeToggle-BgKEVUtV.js.map +0 -1
  336. package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js +0 -71
  337. package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js.map +0 -1
  338. package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js +0 -631
  339. package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +0 -1
  340. package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js +0 -208
  341. package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js.map +0 -1
  342. package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js +0 -209
  343. package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js.map +0 -1
  344. package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js +0 -198
  345. package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +0 -1
  346. package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js +0 -38
  347. package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js.map +0 -1
  348. package/dist/cdn/chunks/Toolbar-CdpsvNOR.js +0 -3061
  349. package/dist/cdn/chunks/Toolbar-CdpsvNOR.js.map +0 -1
  350. package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js +0 -39
  351. package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js.map +0 -1
  352. package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js +0 -46
  353. package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js.map +0 -1
  354. package/dist/cdn/chunks/ca-CD-Kt1qz.js.map +0 -1
  355. package/dist/cdn/chunks/createCloudRuntime-Cth2JCEh.js.map +0 -1
  356. package/dist/cdn/chunks/de-CeFJ6wbM.js.map +0 -1
  357. package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +0 -1
  358. package/dist/cdn/chunks/en-D14i5nFh.js.map +0 -1
  359. package/dist/cdn/chunks/en-TIqv4ag3.js +0 -1
  360. package/dist/cdn/chunks/es-zDacbMhs.js.map +0 -1
  361. package/dist/cdn/chunks/fr-CSgYtjOd.js.map +0 -1
  362. package/dist/cdn/chunks/icons-okSPsLOa.js.map +0 -1
  363. package/dist/cdn/chunks/ja-B7H3ID8O.js.map +0 -1
  364. package/dist/cdn/chunks/keys-CUj6UA38.js +0 -11
  365. package/dist/cdn/chunks/keys-CUj6UA38.js.map +0 -1
  366. package/dist/cdn/chunks/nl-176ySmc5.js.map +0 -1
  367. package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js +0 -198
  368. package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js.map +0 -1
  369. package/dist/cdn/chunks/pt-BR-dDlTwX18.js.map +0 -1
  370. package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js +0 -72
  371. package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js.map +0 -1
  372. package/dist/cdn/chunks/socialIcons-jsTDmkbb.js +0 -2008
  373. package/dist/cdn/chunks/socialIcons-jsTDmkbb.js.map +0 -1
  374. package/dist/cdn/chunks/src-C7bkofBL.js.map +0 -1
  375. package/dist/cdn/chunks/src-DEd87i_U.js.map +0 -1
  376. package/dist/cdn/chunks/src-DwWrYnUj.js +0 -1404
  377. package/dist/cdn/chunks/src-DwWrYnUj.js.map +0 -1
  378. package/dist/cdn/chunks/styleConstants-B8xVRiwX.js.map +0 -1
  379. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +0 -2582
  380. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +0 -1
  381. package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +0 -9
  382. package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js +0 -70
  383. package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js.map +0 -1
  384. package/dist/cdn/chunks/useScrollToBlock-vjQ0fe-L.js.map +0 -1
  385. package/dist/dist-CKi_npZM.js +0 -1344
  386. package/dist/dist-DyFArF_G.js +0 -4
  387. package/dist/dist-pA3ooG6N.js +0 -4
  388. package/dist/en-Db76vJbY.js +0 -1
  389. package/dist/keys-BgRERHzu.js +0 -9
  390. package/dist/normalizeMergeTagMarkup-CELnOlgK.js +0 -196
  391. package/dist/sanitizeHtml-BzfzpYJY.js +0 -942
  392. package/dist/socialIcons-D7MGsg0d.js +0 -2075
  393. package/dist/useEditorCore-BSo2sSID.js +0 -4059
  394. package/dist/useEditorRoot-BMcoCLBx.js +0 -7
  395. package/dist/usePopoverPosition-DV1PxL66.js +0 -68
  396. package/dist/withCurrentFont-B22FXAF5.js +0 -18
@@ -1,197 +0,0 @@
1
- import { H as e, N as t, Nt as n, _ as r, c as i, f as a, j as o, jt as s, l as c, r as l, st as u, u as d, y as f } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
2
- import { t as p } from "./useI18n-BBrHTdu8.js";
3
- import { c as m } from "./LogicTagInsertButton-CfscnwCn.js";
4
- import { p as h } from "./styleConstants-B8xVRiwX.js";
5
- import { t as g } from "./ToggleSwitch-JykPyD_8.js";
6
- import { t as _ } from "./withCurrentFont-B22FXAF5.js";
7
- import { i as v, n as y, r as b } from "./Toolbar-BZPFfKrf.js";
8
- // src/components/toolbar/CountdownToolbar.vue?vue&type=script&setup=true&lang.ts
9
- var x = ["value"], S = ["value"], C = ["value"], w = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-2" }, T = ["value"], E = { value: "" }, D = ["value"], O = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, k = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, A = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-2" }, j = [
10
- "value",
11
- "placeholder",
12
- "onInput"
13
- ], M = ["value", "placeholder"], N = ["value"], P = /* @__PURE__ */ f({
14
- __name: "CountdownToolbar",
15
- props: {
16
- block: {},
17
- fontFamilies: {}
18
- },
19
- emits: ["update"],
20
- setup(f, { emit: P }) {
21
- let F = P, { t: I } = p(), L = [
22
- "UTC",
23
- "America/New_York",
24
- "America/Chicago",
25
- "America/Denver",
26
- "America/Los_Angeles",
27
- "Europe/London",
28
- "Europe/Berlin",
29
- "Europe/Paris",
30
- "Europe/Moscow",
31
- "Asia/Dubai",
32
- "Asia/Kolkata",
33
- "Asia/Shanghai",
34
- "Asia/Tokyo",
35
- "Australia/Sydney",
36
- "Pacific/Auckland"
37
- ], R = [
38
- {
39
- value: ":",
40
- label: ":"
41
- },
42
- {
43
- value: "-",
44
- label: "-"
45
- },
46
- {
47
- value: " ",
48
- label: "␣"
49
- }
50
- ], z = [
51
- "Days",
52
- "Hours",
53
- "Minutes",
54
- "Seconds"
55
- ], B = i(() => z.map((e) => ({
56
- unit: e,
57
- showKey: `show${e}`,
58
- labelKey: `label${e}`,
59
- translationKey: e.toLowerCase()
60
- })));
61
- function V(e, t) {
62
- F("update", { [e]: t });
63
- }
64
- return (i, p) => (o(), a(l, null, [
65
- r(y, { label: u(I).countdown.targetDate }, {
66
- default: e(() => [c("input", {
67
- type: "datetime-local",
68
- class: s(u(h)),
69
- value: f.block.targetDate,
70
- onInput: p[0] ||= (e) => V("targetDate", e.target.value)
71
- }, null, 42, x)]),
72
- _: 1
73
- }, 8, ["label"]),
74
- r(y, { label: u(I).countdown.timezone }, {
75
- default: e(() => [c("select", {
76
- class: s(u(h)),
77
- value: f.block.timezone,
78
- onChange: p[1] ||= (e) => V("timezone", e.target.value)
79
- }, [(o(), a(l, null, t(L, (e) => c("option", {
80
- key: e,
81
- value: e
82
- }, n(e), 9, C)), 64))], 42, S)]),
83
- _: 1
84
- }, 8, ["label"]),
85
- r(y, { label: u(I).countdown.display }, {
86
- default: e(() => [c("div", w, [(o(!0), a(l, null, t(B.value, (e) => (o(), d(g, {
87
- key: e.unit,
88
- class: "tpl:text-[12px] tpl:text-[var(--tpl-text)]",
89
- "model-value": f.block[e.showKey],
90
- label: u(I).countdown[e.translationKey],
91
- "onUpdate:modelValue": (t) => V(e.showKey, t)
92
- }, null, 8, [
93
- "model-value",
94
- "label",
95
- "onUpdate:modelValue"
96
- ]))), 128))])]),
97
- _: 1
98
- }, 8, ["label"]),
99
- r(y, { label: u(I).countdown.separator }, {
100
- default: e(() => [r(v, {
101
- options: R,
102
- "model-value": f.block.separator,
103
- "onUpdate:modelValue": p[2] ||= (e) => V("separator", e)
104
- }, null, 8, ["model-value"])]),
105
- _: 1
106
- }, 8, ["label"]),
107
- r(y, { label: u(I).countdown.fontFamily }, {
108
- default: e(() => [c("select", {
109
- class: s(u(h)),
110
- value: u(_)(f.block.fontFamily),
111
- onChange: p[3] ||= (e) => V("fontFamily", e.target.value || void 0)
112
- }, [c("option", E, n(u(I).countdown.inheritFont), 1), (o(!0), a(l, null, t(f.fontFamilies, (e) => (o(), a("option", {
113
- key: e.value,
114
- value: e.value
115
- }, n(e.label), 9, D))), 128))], 42, T)]),
116
- _: 1
117
- }, 8, ["label"]),
118
- c("div", O, [r(y, { label: u(I).countdown.digitFontSize }, {
119
- default: e(() => [r(b, {
120
- "model-value": f.block.digitFontSize,
121
- min: 12,
122
- max: 72,
123
- suffix: "px",
124
- "onUpdate:modelValue": p[4] ||= (e) => V("digitFontSize", e)
125
- }, null, 8, ["model-value"])]),
126
- _: 1
127
- }, 8, ["label"]), r(y, { label: u(I).countdown.labelFontSize }, {
128
- default: e(() => [r(b, {
129
- "model-value": f.block.labelFontSize,
130
- min: 8,
131
- max: 24,
132
- suffix: "px",
133
- "onUpdate:modelValue": p[5] ||= (e) => V("labelFontSize", e)
134
- }, null, 8, ["model-value"])]),
135
- _: 1
136
- }, 8, ["label"])]),
137
- c("div", k, [r(y, { label: u(I).countdown.digitColor }, {
138
- default: e(() => [r(m, {
139
- "model-value": f.block.digitColor,
140
- "onUpdate:modelValue": p[6] ||= (e) => V("digitColor", e)
141
- }, null, 8, ["model-value"])]),
142
- _: 1
143
- }, 8, ["label"]), r(y, { label: u(I).countdown.labelColor }, {
144
- default: e(() => [r(m, {
145
- "model-value": f.block.labelColor,
146
- "onUpdate:modelValue": p[7] ||= (e) => V("labelColor", e)
147
- }, null, 8, ["model-value"])]),
148
- _: 1
149
- }, 8, ["label"])]),
150
- r(y, { label: u(I).countdown.background }, {
151
- default: e(() => [r(m, {
152
- "model-value": f.block.backgroundColor,
153
- "onUpdate:modelValue": p[8] ||= (e) => V("backgroundColor", e)
154
- }, null, 8, ["model-value"])]),
155
- _: 1
156
- }, 8, ["label"]),
157
- r(y, { label: u(I).countdown.labels }, {
158
- default: e(() => [c("div", A, [(o(!0), a(l, null, t(B.value, (e) => (o(), a("input", {
159
- key: e.unit,
160
- type: "text",
161
- class: s(u(h)),
162
- value: f.block[e.labelKey],
163
- placeholder: u(I).countdown[e.translationKey],
164
- onInput: (t) => V(e.labelKey, t.target.value)
165
- }, null, 42, j))), 128))])]),
166
- _: 1
167
- }, 8, ["label"]),
168
- r(y, { label: u(I).countdown.expiry }, {
169
- default: e(() => [c("input", {
170
- type: "text",
171
- class: s(u(h)),
172
- value: f.block.expiredMessage,
173
- placeholder: u(I).countdown.expiredMessagePlaceholder,
174
- onInput: p[9] ||= (e) => V("expiredMessage", e.target.value)
175
- }, null, 42, M)]),
176
- _: 1
177
- }, 8, ["label"]),
178
- r(y, { label: u(I).countdown.expiredImageUrl }, {
179
- default: e(() => [c("input", {
180
- type: "url",
181
- class: s(u(h)),
182
- value: f.block.expiredImageUrl,
183
- placeholder: "https://...",
184
- onInput: p[10] ||= (e) => V("expiredImageUrl", e.target.value)
185
- }, null, 42, N)]),
186
- _: 1
187
- }, 8, ["label"]),
188
- r(g, {
189
- class: "tpl:mb-3.5 tpl:text-[12px] tpl:text-[var(--tpl-text)]",
190
- "model-value": f.block.hideOnExpiry,
191
- label: u(I).countdown.hideOnExpiry,
192
- "onUpdate:modelValue": p[11] ||= (e) => V("hideOnExpiry", e)
193
- }, null, 8, ["model-value", "label"])
194
- ], 64));
195
- }
196
- });
197
- export { P as default };
@@ -1,359 +0,0 @@
1
- import { $ as e, A as t, C as n, D as r, I as ee, N as te, Nt as i, _ as a, c as o, d as s, f as c, g as l, j as u, jt as ne, l as d, r as f, st as p, u as m, v as re, y as ie, z as h } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
2
- import { G as ae, K as oe, X as se, g as ce, t as le } from "./keys-BgRERHzu.js";
3
- import { t as ue } from "./useI18n-BBrHTdu8.js";
4
- import { t as g } from "./createLucideIcon-CvhTA2KG.js";
5
- import { t as de } from "./check-BZ8o0eet.js";
6
- import { t as fe } from "./circle-alert-CShJwVFv.js";
7
- import { t as pe } from "./info-Cxi3-Kh9.js";
8
- import { a as me, n as he, o as ge, r as _e, t as ve } from "./useScrollToBlock-BSyAV4pk.js";
9
- import { t as _ } from "./sparkles-CdaTtvoz.js";
10
- import { t as ye } from "./square-BbCROH_f.js";
11
- import { t as be } from "./triangle-alert-7_oaitpf.js";
12
- var xe = g({
13
- name: "arrow-right",
14
- size: 24,
15
- node: [["path", {
16
- d: "M5 12h14",
17
- key: "1ays0h"
18
- }], ["path", {
19
- d: "m12 5 7 7-7 7",
20
- key: "xquz4c"
21
- }]]
22
- }), Se = g({
23
- name: "wrench",
24
- size: 24,
25
- node: [["path", {
26
- d: "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",
27
- key: "1ngwbx"
28
- }]]
29
- }), Ce = { class: "tpl:flex tpl:flex-col tpl:gap-4 tpl:p-4" }, we = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Te = ["title"], Ee = {
30
- key: 0,
31
- class: "tpl:flex tpl:flex-col tpl:gap-2 tpl:text-xs"
32
- }, De = { class: "tpl:m-0 tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Oe = { class: "tpl:m-0 tpl:text-[var(--tpl-text-muted)]" }, ke = ["disabled"], Ae = {
33
- key: 0,
34
- "data-testid": "issue-size-result",
35
- class: "tpl:m-0 tpl:flex tpl:items-center tpl:gap-1 tpl:text-[var(--tpl-text-muted)]"
36
- }, je = {
37
- key: 1,
38
- role: "status",
39
- class: "tpl:m-0 tpl:text-[var(--tpl-text-muted)]"
40
- }, Me = {
41
- key: 2,
42
- role: "alert",
43
- class: "tpl:m-0 tpl:text-[var(--tpl-danger)]"
44
- }, Ne = {
45
- key: 1,
46
- role: "status",
47
- "data-testid": "issue-ai-status",
48
- class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
49
- }, Pe = ["disabled"], Fe = {
50
- key: 4,
51
- class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
52
- }, Ie = {
53
- key: 5,
54
- class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
55
- }, Le = { class: "tpl:ml-auto tpl:font-normal tpl:opacity-70" }, Re = {
56
- key: 1,
57
- class: "tpl:m-0 tpl:mb-3 tpl:flex tpl:list-none tpl:flex-col tpl:gap-2 tpl:p-0"
58
- }, ze = { class: "tpl:m-0 tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text)]" }, Be = { class: "tpl:m-0 tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Ve = { class: "tpl:m-0 tpl:mb-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, He = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-1.5" }, Ue = ["href"], We = ["onClick"], Ge = ["title", "onClick"], Ke = ["disabled", "onClick"], qe = ["disabled", "onClick"], Je = {
59
- key: 1,
60
- role: "status",
61
- class: "tpl:m-0 tpl:mt-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
62
- }, v = /* @__PURE__ */ ie({
63
- __name: "IssuesPanel",
64
- setup(ie) {
65
- let g = re(() => import("./AiAltTextPopover-DawbUywc.js")), v = re(() => import("./AiAltTextReview-9ySsXOTU.js")), y = e(null), b = e(null);
66
- function Ye() {
67
- A && !A.busy.value && (D(), y.value = [...Q.value]);
68
- }
69
- async function x() {
70
- y.value = null, await r(), !B && S.value === null && (b.value ?? w.value)?.focus();
71
- }
72
- let S = e(null), Xe = o(() => S.value?.blockId ?? null), C = e(null), w = e(null), T = null;
73
- function E(e) {
74
- let t = S.value;
75
- return t !== null && t.blockId === e.blockId && t.ruleId === e.ruleId && t.severity === e.severity;
76
- }
77
- function Ze(e, t) {
78
- e.blockId && !E(e) && (y.value = null, C.value?.abort(), C.value = null, T = t.currentTarget, S.value = {
79
- blockId: e.blockId,
80
- ruleId: e.ruleId,
81
- severity: e.severity
82
- });
83
- }
84
- async function D(e = "button") {
85
- if (S.value === null) return;
86
- S.value = null, C.value?.abort(), C.value = null;
87
- let t = T;
88
- T = null, await r(), !(B || S.value !== null || y.value !== null) && (e === "button" && t?.isConnected ? t : w.value)?.focus();
89
- }
90
- function Qe(e, t) {
91
- E(e) && (C.value = t);
92
- }
93
- let { t: O, format: k } = ue(), A = n(le, null), j = n(oe, null), M = n(ce, null), N = n(ae, null), $e = n(se, "en"), et = ve(), tt = o(() => !!N && !N.cloud && N.canRenderHtml() && N.options.disabled !== !0 && N.options.compatibility !== !1 && N.options.compatibility?.rules?.["compat.gmail-clipping"] !== "off"), P = e(!1), F = e(null), I = e(null), L = e(""), R = e(!1), z = 0, B = !1;
94
- M && h(M.content, () => {
95
- z++, F.value !== null && (R.value = !0);
96
- }, { deep: !0 }), t(() => {
97
- B = !0;
98
- });
99
- async function nt() {
100
- if (!N || !tt.value || P.value) return;
101
- let e = z;
102
- P.value = !0, L.value = "";
103
- try {
104
- let t = await N.renderHtml(), n = await import("@templatical/quality");
105
- if (B) return;
106
- F.value = new TextEncoder().encode(t).byteLength, I.value = n.lintCompiledHtml(t, {
107
- ...N.options,
108
- locale: N.options.locale ?? $e
109
- })[0] ?? null, R.value = e !== z;
110
- } catch (e) {
111
- B || (L.value = e instanceof Error ? e.message : String(e));
112
- } finally {
113
- B || (P.value = !1);
114
- }
115
- }
116
- let V = o(() => [...j?.issues.value ?? [], ...I.value && !R.value ? [I.value] : []]), H = o(() => V.value.filter((e) => e.severity === "error")), U = o(() => V.value.filter((e) => e.severity === "warning")), W = o(() => V.value.filter((e) => e.severity === "info")), G = o(() => H.value.length + U.value.length + W.value.length), K = /* @__PURE__ */ new Set(), q = e(/* @__PURE__ */ new Set()), J = e(null), Y = (e) => JSON.stringify([e.ruleId, e.blockId]);
117
- function X(e) {
118
- let t = new Set(e.map(Y));
119
- for (let e of q.value) t.has(e) || q.value.delete(e);
120
- for (let e of K) t.has(e) && q.value.add(e);
121
- K.clear();
122
- }
123
- j && h(j.issues, X, { flush: "sync" }), A && (h([
124
- A.templateId,
125
- A.isAvailable,
126
- () => M?.loadVersion?.value
127
- ], () => {
128
- y.value !== null && x();
129
- }, { flush: "sync" }), h(A.templateSession, () => {
130
- D();
131
- }, { flush: "sync" }), h(A.sessionIdentity, () => {
132
- K.clear(), q.value.clear();
133
- }, { flush: "sync" }));
134
- let Z = o(() => {
135
- let e = /* @__PURE__ */ new Set();
136
- return new Set([
137
- ...H.value,
138
- ...U.value,
139
- ...W.value
140
- ].filter((t) => {
141
- let n = Y(t);
142
- return !e.has(n) && (e.add(n), !0);
143
- }));
144
- }), rt = o(() => {
145
- let e = /* @__PURE__ */ new Set();
146
- return new Set([
147
- ...H.value,
148
- ...U.value,
149
- ...W.value
150
- ].filter((t) => !t.blockId || !he.includes(t.ruleId) || e.has(t.blockId) ? !1 : (e.add(t.blockId), !0)));
151
- }), Q = o(() => {
152
- if (!M) return [];
153
- let e = new Set(V.value.filter((e) => he.includes(e.ruleId)).map((e) => e.blockId).filter((e) => e !== null)), t = M.content.value.blocks;
154
- return [...e].flatMap((e) => {
155
- let n = M.findBlockLocation(e);
156
- return n ? [{
157
- id: e,
158
- root: n.targetSectionId ? t.findIndex((e) => e.id === n.targetSectionId) : n.index,
159
- column: n.columnIndex ?? -1,
160
- index: n.index
161
- }] : [];
162
- }).sort((e, t) => e.root - t.root || e.column - t.column || e.index - t.index).map(({ id: e }) => e);
163
- });
164
- h(() => S.value === null || V.value.some(E) && (!M || M.findBlockLocation(S.value.blockId) !== null), (e) => {
165
- e || D("panel");
166
- }, { flush: "sync" });
167
- function it(e) {
168
- return !!A && A.isAvailable.value && A.has("altText") && rt.value.has(e);
169
- }
170
- function $(e) {
171
- return !!A && A.isAvailable.value && A.has("fixFinding") && !e.fix && _e.includes(e.ruleId) && Z.value.has(e);
172
- }
173
- async function at(e) {
174
- if (!$(e) || !A || A.busy.value || J.value !== null) return;
175
- let t = Y(e), n = A.sessionIdentity.value;
176
- J.value = t, q.value.delete(t);
177
- try {
178
- let r = await A.fix(me(e));
179
- !B && A.sessionIdentity.value === n && !r.failed && (K.add(t), j?.contentVersion && j.lintVersion.value === j.contentVersion.value && X(j.issues.value));
180
- } finally {
181
- J.value = null;
182
- }
183
- }
184
- function ot(e) {
185
- M && e.blockId && (M.selectBlock(e.blockId), et(e.blockId));
186
- }
187
- function st(e) {
188
- j?.applyFix(e);
189
- }
190
- return (e, t) => (u(), c("div", Ce, [
191
- d("header", we, [
192
- a(p(ge), {
193
- size: 16,
194
- "stroke-width": 1.5
195
- }),
196
- d("h3", {
197
- ref_key: "panelHeading",
198
- ref: w,
199
- tabindex: "-1",
200
- class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
201
- }, i(p(O).issues.panelTitle), 513),
202
- G.value > 0 ? (u(), c("span", {
203
- key: 0,
204
- class: "tpl:ml-auto tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]",
205
- title: p(k)(p(O).issues.issueCountTooltip, { count: G.value })
206
- }, i(G.value), 9, Te)) : s("", !0)
207
- ]),
208
- tt.value ? (u(), c("section", Ee, [
209
- d("h4", De, i(p(O).issues.emailSize), 1),
210
- d("p", Oe, i(p(O).issues.sizeExplainer), 1),
211
- d("button", {
212
- type: "button",
213
- "data-testid": "issue-check-size",
214
- disabled: P.value,
215
- class: "tpl:w-full tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2.5 tpl:py-1.5 tpl:font-medium tpl:text-[var(--tpl-text)] tpl:hover:bg-[var(--tpl-bg-active)] tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)] tpl:disabled:opacity-60",
216
- onClick: nt
217
- }, i(P.value ? p(O).issues.checkingSize : R.value ? p(O).issues.checkSizeAgain : p(O).issues.checkSize), 9, ke),
218
- F.value === null ? s("", !0) : (u(), c("p", Ae, [!I.value && !R.value ? (u(), m(p(de), {
219
- key: 0,
220
- size: 14,
221
- "stroke-width": 2,
222
- "aria-hidden": "true"
223
- })) : s("", !0), l(" " + i(p(k)(!I.value && !R.value ? p(O).issues.sizePass : p(O).issues.sizeResult, { size: new Intl.NumberFormat(p($e), {
224
- minimumFractionDigits: 1,
225
- maximumFractionDigits: 1
226
- }).format(F.value / 1024) })), 1)])),
227
- R.value ? (u(), c("p", je, i(p(O).issues.sizeOutdated), 1)) : s("", !0),
228
- L.value ? (u(), c("p", Me, i(p(k)(p(O).issues.sizeError, { error: L.value })), 1)) : s("", !0)
229
- ])) : s("", !0),
230
- J.value !== null || C.value !== null ? (u(), c("div", Ne, [d("span", null, i(C.value ? p(O).ai.altText.drafting : p(O).ai.fix.fixing), 1), d("button", {
231
- type: "button",
232
- "data-testid": "issue-ai-stop",
233
- class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)]",
234
- onClick: t[0] ||= (e) => C.value ? C.value.abort() : p(A)?.stop()
235
- }, [a(p(ye), {
236
- size: 10,
237
- "stroke-width": 2
238
- }), l(" " + i(p(O).ai.chat.stop), 1)])])) : s("", !0),
239
- p(A)?.isAvailable.value && p(A).has("altText") && Q.value.length >= 2 ? (u(), c("button", {
240
- key: 2,
241
- ref_key: "bulkButton",
242
- ref: b,
243
- type: "button",
244
- "data-testid": "issue-ai-alt-text-bulk",
245
- disabled: p(A).busy.value,
246
- class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2.5 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)] tpl:disabled:opacity-60",
247
- onClick: Ye
248
- }, [a(p(_), {
249
- size: 12,
250
- "stroke-width": 2,
251
- "aria-hidden": "true"
252
- }), l(" " + i(p(k)(p(O).ai.altText.bulk, { count: Q.value.length })), 1)], 8, Pe)) : s("", !0),
253
- y.value !== null && p(A) ? (u(), m(p(v), {
254
- key: 3,
255
- "block-ids": y.value,
256
- feature: p(A),
257
- onClose: x
258
- }, null, 8, ["block-ids", "feature"])) : s("", !0),
259
- !p(j) || p(j).unavailable.value ? (u(), c("div", Fe)) : G.value === 0 ? (u(), c("div", Ie, i(p(O).issues.emptyState), 1)) : (u(!0), c(f, { key: 6 }, te([
260
- {
261
- key: "errors",
262
- title: p(O).issues.groupErrors,
263
- icon: p(fe),
264
- items: H.value,
265
- tone: "tpl:text-[var(--tpl-danger)]"
266
- },
267
- {
268
- key: "warnings",
269
- title: p(O).issues.groupWarnings,
270
- icon: p(be),
271
- items: U.value,
272
- tone: "tpl:text-[var(--tpl-warning)]"
273
- },
274
- {
275
- key: "info",
276
- title: p(O).issues.groupInfo,
277
- icon: p(pe),
278
- items: W.value,
279
- tone: "tpl:text-[var(--tpl-text-muted)]"
280
- }
281
- ], (e) => (u(), c("section", { key: e.key }, [e.items.length > 0 ? (u(), c("header", {
282
- key: 0,
283
- class: ne(["tpl:mb-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:font-semibold tpl:uppercase tpl:tracking-wide", e.tone])
284
- }, [
285
- (u(), m(ee(e.icon), {
286
- size: 12,
287
- "stroke-width": 2
288
- })),
289
- l(" " + i(e.title) + " ", 1),
290
- d("span", Le, i(e.items.length), 1)
291
- ], 2)) : s("", !0), e.items.length > 0 ? (u(), c("ul", Re, [(u(!0), c(f, null, te(e.items, (e) => (u(), c("li", {
292
- key: `${e.ruleId}-${e.blockId ?? "template"}`,
293
- class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3"
294
- }, [
295
- d("p", ze, i(e.message), 1),
296
- d("p", Be, i(e.suggestion), 1),
297
- d("p", Ve, i(e.ruleId), 1),
298
- d("div", He, [
299
- d("a", {
300
- href: e.reference,
301
- target: "_blank",
302
- rel: "noopener",
303
- class: "tpl:inline-block tpl:text-xs tpl:text-[var(--tpl-primary)] tpl:underline tpl:underline-offset-2 tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)]"
304
- }, i(p(O).issues.learnMore), 9, Ue),
305
- e.blockId ? (u(), c("button", {
306
- key: 0,
307
- type: "button",
308
- "data-testid": "issue-jump",
309
- class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]",
310
- onClick: (t) => ot(e)
311
- }, [a(p(xe), {
312
- size: 10,
313
- "stroke-width": 2
314
- }), l(" " + i(p(O).issues.jump), 1)], 8, We)) : s("", !0),
315
- e.fix ? (u(), c("button", {
316
- key: 1,
317
- type: "button",
318
- class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded-md tpl:bg-[var(--tpl-primary)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-on-primary)]",
319
- title: e.fix.description,
320
- onClick: (t) => st(e)
321
- }, [a(p(Se), {
322
- size: 10,
323
- "stroke-width": 2
324
- }), l(" " + i(p(O).issues.fix), 1)], 8, Ge)) : s("", !0),
325
- it(e) ? (u(), c("button", {
326
- key: 2,
327
- type: "button",
328
- "data-testid": "issue-ai-alt-text",
329
- disabled: p(A).busy.value,
330
- class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)] tpl:disabled:opacity-60",
331
- onClick: (t) => Ze(e, t)
332
- }, [a(p(_), {
333
- size: 10,
334
- "stroke-width": 2
335
- }), l(" " + i(p(O).ai.altText.button), 1)], 8, Ke)) : s("", !0),
336
- $(e) ? (u(), c("button", {
337
- key: 3,
338
- type: "button",
339
- "data-testid": "issue-ai-fix",
340
- disabled: p(A).busy.value,
341
- class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:focus-visible:outline-2 tpl:focus-visible:outline-[var(--tpl-primary)] tpl:disabled:opacity-60",
342
- onClick: (t) => at(e)
343
- }, [a(p(_), {
344
- size: 10,
345
- "stroke-width": 2
346
- }), l(" " + i(p(O).ai.fix.button), 1)], 8, qe)) : s("", !0)
347
- ]),
348
- E(e) && Z.value.has(e) ? (u(), m(p(g), {
349
- key: JSON.stringify(S.value),
350
- "block-id": Xe.value,
351
- onClose: D,
352
- onDrafting: (t) => Qe(e, t)
353
- }, null, 8, ["block-id", "onDrafting"])) : s("", !0),
354
- q.value.has(Y(e)) && Z.value.has(e) ? (u(), c("p", Je, i(p(O).ai.fix.stillFlagged), 1)) : s("", !0)
355
- ]))), 128))])) : s("", !0)]))), 128))
356
- ]));
357
- }
358
- });
359
- export { v as default };
@@ -1,69 +0,0 @@
1
- import { $ as e, _ as t, d as n, f as r, j as i, jt as a, l as o, st as s, u as c, y as l } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
2
- import { i as u, n as d, r as f, t as p } from "./LogicTagInsertButton-CfscnwCn.js";
3
- // src/components/MergeTagTextarea.vue?vue&type=script&setup=true&lang.ts
4
- var m = { key: 0 }, h = {
5
- key: 0,
6
- class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
7
- }, g = { key: 1 }, _ = [
8
- "value",
9
- "placeholder",
10
- "rows"
11
- ], v = {
12
- key: 0,
13
- class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
14
- }, y = "tpl:w-full tpl:resize-y tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-[var(--tpl-shadow-sm)] tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:placeholder:text-[var(--tpl-text-dim)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]", b = "tpl:flex tpl:w-full tpl:min-h-20 tpl:cursor-pointer tpl:items-start tpl:flex-wrap tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-[var(--tpl-shadow-sm)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", x = /* @__PURE__ */ l({
15
- __name: "MergeTagTextarea",
16
- props: {
17
- modelValue: {},
18
- placeholder: { default: "" },
19
- rows: { default: 3 }
20
- },
21
- emits: ["update:modelValue"],
22
- setup(l, { emit: x }) {
23
- let S = l, C = x, w = e(null), { segments: T, hasMergeTags: E, canRequestMergeTag: D, isRequestingMergeTag: O, canInsertLogicTag: k, isRequestingLogicTag: A, isEditing: j, startEditing: M, handleInput: N, handleKeydown: P, handleClick: F, handleBlur: I, clearValue: L, insertMergeTag: R, insertLogicTag: z, replaceMergeTagAt: B } = u({
24
- modelValue: () => S.modelValue,
25
- emit: (e) => C("update:modelValue", e),
26
- elementRef: w
27
- });
28
- return (e, u) => s(E) && !s(j) ? (i(), r("div", m, [t(f, {
29
- segments: s(T),
30
- "display-class": b,
31
- onEdit: s(M),
32
- onClear: s(L),
33
- onRepick: s(B)
34
- }, null, 8, [
35
- "segments",
36
- "onEdit",
37
- "onClear",
38
- "onRepick"
39
- ]), s(D) || s(k) ? (i(), r("div", h, [s(D) ? (i(), c(d, {
40
- key: 0,
41
- disabled: s(O),
42
- onInsert: s(R)
43
- }, null, 8, ["disabled", "onInsert"])) : n("", !0), s(k) ? (i(), c(p, {
44
- key: 1,
45
- disabled: s(A),
46
- onInsert: s(z)
47
- }, null, 8, ["disabled", "onInsert"])) : n("", !0)])) : n("", !0)])) : (i(), r("div", g, [o("textarea", {
48
- ref_key: "textareaRef",
49
- ref: w,
50
- class: a(y),
51
- value: l.modelValue,
52
- placeholder: l.placeholder,
53
- rows: l.rows,
54
- onInput: u[0] ||= (...e) => s(N) && s(N)(...e),
55
- onKeydown: u[1] ||= (...e) => s(P) && s(P)(...e),
56
- onClick: u[2] ||= (...e) => s(F) && s(F)(...e),
57
- onBlur: u[3] ||= (...e) => s(I) && s(I)(...e)
58
- }, null, 40, _), s(D) || s(k) ? (i(), r("div", v, [s(D) ? (i(), c(d, {
59
- key: 0,
60
- disabled: s(O),
61
- onInsert: s(R)
62
- }, null, 8, ["disabled", "onInsert"])) : n("", !0), s(k) ? (i(), c(p, {
63
- key: 1,
64
- disabled: s(A),
65
- onInsert: s(z)
66
- }, null, 8, ["disabled", "onInsert"])) : n("", !0)])) : n("", !0)]));
67
- }
68
- });
69
- export { x as t };