@templatical/editor 0.52.0 → 0.52.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (261) hide show
  1. package/dist/{AiAltTextPopover-Cm11CsKH.js → AiAltTextPopover-DawbUywc.js} +13 -13
  2. package/dist/{AiAltTextReview-DE8t8Rud.js → AiAltTextReview-9ySsXOTU.js} +22 -22
  3. package/dist/{AiChatPanel-7ftS7d40.js → AiChatPanel-CupPhmsN.js} +137 -137
  4. package/dist/{AiPanels-CxGp6klr.js → AiPanels-DqT4PgQ0.js} +4 -4
  5. package/dist/{AiRewriteMenu-DNI-5CUj.js → AiRewriteMenu-28agTycW.js} +62 -62
  6. package/dist/BlockIssueBadge-BxpDy3u-.js +33 -0
  7. package/dist/{BlockPreviewCanvas-Df9iz7sK.js → BlockPreviewCanvas-B-4bmJ3t.js} +23 -23
  8. package/dist/{CloudHeaderExtras-CsgyNNV1.js → CloudHeaderExtras-QI82yF54.js} +3 -3
  9. package/dist/{CloudPanels-BDV4XQ_l.js → CloudPanels-BKJaLkUN.js} +50 -50
  10. package/dist/{CollaborationNotices-JQ3vQoqO.js → CollaborationNotices-CTw4JThq.js} +11 -11
  11. package/dist/{CollaboratorBar-EeqqWcX6.js → CollaboratorBar-CXQqN3VP.js} +15 -15
  12. package/dist/{CommentsPanel-BuftXc0U.js → CommentsPanel-DwwFuh1h.js} +2 -2
  13. package/dist/CommentsSidebar-9ZfiC2DO.js +500 -0
  14. package/dist/{CountdownBlock-BT3ZTH1F.js → CountdownBlock-CU2yTWtF.js} +20 -20
  15. package/dist/{CountdownToolbar-CrL4WKy9.js → CountdownToolbar-BqoYzf_6.js} +53 -53
  16. package/dist/IssuesPanel-4ykrf1ax.js +359 -0
  17. package/dist/{LoadingTrack-DZA5AoP9.js → LoadingTrack-DM4g6j7b.js} +1 -1
  18. package/dist/{LogicTagInsertButton-CSD9cfJB.js → LogicTagInsertButton-CfscnwCn.js} +234 -234
  19. package/dist/{MediaEditModal-DQl5w44r.js → MediaEditModal-Dy08GEwE.js} +446 -446
  20. package/dist/{MediaPanels-BFWYuJot.js → MediaPanels-BgEp7iCp.js} +2 -2
  21. package/dist/{MergeTagInput-DE7kWwXx.js → MergeTagInput-B9dtUthD.js} +11 -11
  22. package/dist/{MergeTagModeToggle-DvD0ne7N.js → MergeTagModeToggle-DxujhYJ4.js} +30 -30
  23. package/dist/{MergeTagTextarea-DVPQkiYY.js → MergeTagTextarea-CPFEjJZd.js} +11 -11
  24. package/dist/{ParagraphEditor-D-nqs82g.js → ParagraphEditor-CWXfurGh.js} +201 -201
  25. package/dist/{RestoreVersionDialog-DqUPsLB9.js → RestoreVersionDialog-C4s_JYCx.js} +14 -14
  26. package/dist/{RichTextEditorContent-Xq9D0Zs3.js → RichTextEditorContent-o6HmE8GR.js} +40 -39
  27. package/dist/{SaveBlockDialog-DAPv70p4.js → SaveBlockDialog-CWLrly6l.js} +56 -56
  28. package/dist/SavedBlocksBrowserModal-CE8n4EBS.js +359 -0
  29. package/dist/{SavedBlocksPanels-ChbL9v9x.js → SavedBlocksPanels-BE1N9rNZ.js} +6 -6
  30. package/dist/{SavedBlocksPickBar-hRaiLNdu.js → SavedBlocksPickBar-Dwl94xhP.js} +12 -12
  31. package/dist/{TemplateSettings-D0XcH32O.js → TemplateSettings-CS0f1Ues.js} +74 -74
  32. package/dist/{TestEmailModal-Cb5t0yB2.js → TestEmailModal-DBD0X5nV.js} +52 -52
  33. package/dist/{TestEmailPanel-COJQa2A9.js → TestEmailPanel-DaFjP9QK.js} +2 -2
  34. package/dist/{TitleEditor-BYk_9SpQ.js → TitleEditor-DSqtle77.js} +75 -75
  35. package/dist/{ToggleSwitch-poGWbduy.js → ToggleSwitch-JykPyD_8.js} +4 -4
  36. package/dist/{Toolbar-Dku_pZni.js → Toolbar-BZPFfKrf.js} +913 -913
  37. package/dist/{TplModal-9IndEYk5.js → TplModal-DLMssVlt.js} +15 -15
  38. package/dist/{VersionHistoryMenu-BG5qayvg.js → VersionHistoryMenu-BkbYUs0Q.js} +35 -35
  39. package/dist/{VersionHistoryPanels-hPg7Q5-f.js → VersionHistoryPanels-DP7HaYWv.js} +4 -4
  40. package/dist/{VersionPreviewBanner-CSs7zum_.js → VersionPreviewBanner-DECaBwLq.js} +9 -9
  41. package/dist/{WrapperBlock-DwjK_IdJ.js → WrapperBlock-BsJv_Fiw.js} +16 -16
  42. package/dist/{blockTypeIcons-yt7SLzub.js → blockTypeIcons-BHjlPnPf.js} +23 -22
  43. package/dist/bundle-stats.json +6 -6
  44. package/dist/cdn/chunks/{AiAltTextPopover-DjMoJCgU.js → AiAltTextPopover-SEEjkd-I.js} +21 -21
  45. package/dist/cdn/chunks/{AiAltTextPopover-DjMoJCgU.js.map → AiAltTextPopover-SEEjkd-I.js.map} +1 -1
  46. package/dist/cdn/chunks/{AiAltTextReview-BafAtBoA.js → AiAltTextReview-BGLLSKLm.js} +41 -41
  47. package/dist/cdn/chunks/{AiAltTextReview-BafAtBoA.js.map → AiAltTextReview-BGLLSKLm.js.map} +1 -1
  48. package/dist/cdn/chunks/{AiChatPanel-DXeZgc7D.js → AiChatPanel-DKDAaBNi.js} +127 -127
  49. package/dist/cdn/chunks/{AiChatPanel-DXeZgc7D.js.map → AiChatPanel-DKDAaBNi.js.map} +1 -1
  50. package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js → AiPanels-0wBarZSH.js} +3 -3
  51. package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js.map → AiPanels-0wBarZSH.js.map} +1 -1
  52. package/dist/cdn/chunks/{AiRewriteMenu-4F6vwhJ5.js → AiRewriteMenu-qf-cfEpy.js} +43 -43
  53. package/dist/cdn/chunks/{AiRewriteMenu-4F6vwhJ5.js.map → AiRewriteMenu-qf-cfEpy.js.map} +1 -1
  54. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +34 -0
  55. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +1 -0
  56. package/dist/cdn/chunks/{BlockPreviewCanvas-Ny1X_mee.js → BlockPreviewCanvas-DGBh6mqe.js} +20 -20
  57. package/dist/cdn/chunks/{BlockPreviewCanvas-Ny1X_mee.js.map → BlockPreviewCanvas-DGBh6mqe.js.map} +1 -1
  58. package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js → CloudHeaderExtras-BMNK_F9p.js} +3 -3
  59. package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js.map → CloudHeaderExtras-BMNK_F9p.js.map} +1 -1
  60. package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js → CloudPanels-JMWIoVWh.js} +32 -32
  61. package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js.map → CloudPanels-JMWIoVWh.js.map} +1 -1
  62. package/dist/cdn/chunks/{CollaborationNotices-Hf8r08Sw.js → CollaborationNotices-Bsf1rGW9.js} +12 -12
  63. package/dist/cdn/chunks/{CollaborationNotices-Hf8r08Sw.js.map → CollaborationNotices-Bsf1rGW9.js.map} +1 -1
  64. package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js → CollaboratorBar-CXByAoUz.js} +14 -14
  65. package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js.map → CollaboratorBar-CXByAoUz.js.map} +1 -1
  66. package/dist/cdn/chunks/{CommentsPanel-CAiwilM2.js → CommentsPanel-DoJnKLXI.js} +3 -3
  67. package/dist/cdn/chunks/{CommentsPanel-CAiwilM2.js.map → CommentsPanel-DoJnKLXI.js.map} +1 -1
  68. package/dist/cdn/chunks/{CommentsSidebar-Dj8sDiLN.js → CommentsSidebar-CUtgvdBC.js} +100 -99
  69. package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +1 -0
  70. package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js → CountdownBlock-BqRw147R.js} +18 -18
  71. package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js.map → CountdownBlock-BqRw147R.js.map} +1 -1
  72. package/dist/cdn/chunks/{CountdownToolbar-CguFJdqn.js → CountdownToolbar-xobieKoU.js} +26 -26
  73. package/dist/cdn/chunks/{CountdownToolbar-CguFJdqn.js.map → CountdownToolbar-xobieKoU.js.map} +1 -1
  74. package/dist/cdn/chunks/{IssuesPanel-pr7_nuLI.js → IssuesPanel-C7LfxaAY.js} +75 -75
  75. package/dist/cdn/chunks/{IssuesPanel-pr7_nuLI.js.map → IssuesPanel-C7LfxaAY.js.map} +1 -1
  76. package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js → LoadingTrack-CZuLTazv.js} +2 -2
  77. package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js.map → LoadingTrack-CZuLTazv.js.map} +1 -1
  78. package/dist/cdn/chunks/{LogicTagInsertButton-B_ldj3TO.js → LogicTagInsertButton-BIi05UQu.js} +250 -250
  79. package/dist/cdn/chunks/{LogicTagInsertButton-B_ldj3TO.js.map → LogicTagInsertButton-BIi05UQu.js.map} +1 -1
  80. package/dist/cdn/chunks/{MediaEditModal-CGfzcHwP.js → MediaEditModal-Cpcod6_U.js} +148 -148
  81. package/dist/cdn/chunks/{MediaEditModal-CGfzcHwP.js.map → MediaEditModal-Cpcod6_U.js.map} +1 -1
  82. package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js → MediaPanels-BIdcW_1f.js} +3 -3
  83. package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js.map → MediaPanels-BIdcW_1f.js.map} +1 -1
  84. package/dist/cdn/chunks/{MergeTagInput-CFu9VXPS.js → MergeTagInput-BvWg8o5E.js} +32 -32
  85. package/dist/cdn/chunks/{MergeTagInput-CFu9VXPS.js.map → MergeTagInput-BvWg8o5E.js.map} +1 -1
  86. package/dist/cdn/chunks/{MergeTagModeToggle-BFpK5dxg.js → MergeTagModeToggle-BgKEVUtV.js} +27 -27
  87. package/dist/cdn/chunks/{MergeTagModeToggle-BFpK5dxg.js.map → MergeTagModeToggle-BgKEVUtV.js.map} +1 -1
  88. package/dist/cdn/chunks/{MergeTagTextarea-Zo0mYWbf.js → MergeTagTextarea-tBz8McZf.js} +32 -32
  89. package/dist/cdn/chunks/{MergeTagTextarea-Zo0mYWbf.js.map → MergeTagTextarea-tBz8McZf.js.map} +1 -1
  90. package/dist/cdn/chunks/{ParagraphEditor-DsPLVAgm.js → ParagraphEditor-B3Rj_cWF.js} +191 -191
  91. package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +1 -0
  92. package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js → RestoreVersionDialog-CjOdD2xj.js} +19 -19
  93. package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js.map → RestoreVersionDialog-CjOdD2xj.js.map} +1 -1
  94. package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js → RichTextEditorContent-DNjR_sNN.js} +29 -29
  95. package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js.map → RichTextEditorContent-DNjR_sNN.js.map} +1 -1
  96. package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js → SaveBlockDialog-CUhpawq0.js} +75 -75
  97. package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js.map → SaveBlockDialog-CUhpawq0.js.map} +1 -1
  98. package/dist/cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js +356 -0
  99. package/dist/cdn/chunks/{SavedBlocksBrowserModal-B9XCjDfm.js.map → SavedBlocksBrowserModal-BPYcRoGa.js.map} +1 -1
  100. package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js → SavedBlocksPanels-C6--Bc81.js} +3 -3
  101. package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js.map → SavedBlocksPanels-C6--Bc81.js.map} +1 -1
  102. package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js → SavedBlocksPickBar-DUavxpbU.js} +14 -14
  103. package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js.map → SavedBlocksPickBar-DUavxpbU.js.map} +1 -1
  104. package/dist/cdn/chunks/{TemplateSettings-jWpmuWDR.js → TemplateSettings-CKtI-dof.js} +69 -69
  105. package/dist/cdn/chunks/{TemplateSettings-jWpmuWDR.js.map → TemplateSettings-CKtI-dof.js.map} +1 -1
  106. package/dist/cdn/chunks/{TestEmailModal-DcwKhFnI.js → TestEmailModal-CDQTgESD.js} +65 -65
  107. package/dist/cdn/chunks/{TestEmailModal-DcwKhFnI.js.map → TestEmailModal-CDQTgESD.js.map} +1 -1
  108. package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js → TestEmailPanel-CcUpEpAn.js} +3 -3
  109. package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js.map → TestEmailPanel-CcUpEpAn.js.map} +1 -1
  110. package/dist/cdn/chunks/{TitleEditor-R2lQw6WA.js → TitleEditor-Cob7RLyK.js} +70 -70
  111. package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +1 -0
  112. package/dist/cdn/chunks/{ToggleSwitch-BDMugNES.js → ToggleSwitch-J7Vwhvha.js} +5 -5
  113. package/dist/cdn/chunks/{ToggleSwitch-BDMugNES.js.map → ToggleSwitch-J7Vwhvha.js.map} +1 -1
  114. package/dist/cdn/chunks/{Toolbar-CnvfW72e.js → Toolbar-CdpsvNOR.js} +893 -893
  115. package/dist/cdn/chunks/{Toolbar-CnvfW72e.js.map → Toolbar-CdpsvNOR.js.map} +1 -1
  116. package/dist/cdn/chunks/TplModal-CFPDgbwQ.js +51 -0
  117. package/dist/cdn/chunks/{TplModal-BDyeS69p.js.map → TplModal-CFPDgbwQ.js.map} +1 -1
  118. package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js → VersionHistoryMenu-BYlLRvRJ.js} +32 -32
  119. package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js.map → VersionHistoryMenu-BYlLRvRJ.js.map} +1 -1
  120. package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js → VersionHistoryPanels-C6SOVoiT.js} +3 -3
  121. package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js.map → VersionHistoryPanels-C6SOVoiT.js.map} +1 -1
  122. package/dist/cdn/chunks/{VersionPreviewBanner-CZ--HOoa.js → VersionPreviewBanner-Dvg0ZfAW.js} +10 -10
  123. package/dist/cdn/chunks/{VersionPreviewBanner-CZ--HOoa.js.map → VersionPreviewBanner-Dvg0ZfAW.js.map} +1 -1
  124. package/dist/cdn/chunks/{WrapperBlock-D3obNGab.js → WrapperBlock-C7Md56IT.js} +13 -13
  125. package/dist/cdn/chunks/{WrapperBlock-D3obNGab.js.map → WrapperBlock-C7Md56IT.js.map} +1 -1
  126. package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js +21 -0
  127. package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js.map +1 -0
  128. package/dist/cdn/chunks/{createCloudRuntime-D6niZ2Rc.js → createCloudRuntime-Cth2JCEh.js} +36 -36
  129. package/dist/cdn/chunks/{createCloudRuntime-D6niZ2Rc.js.map → createCloudRuntime-Cth2JCEh.js.map} +1 -1
  130. package/dist/cdn/chunks/{dist-C2epoAwW.js → dist-8ym3y-pH.js} +43 -43
  131. package/dist/cdn/chunks/{dist-C2epoAwW.js.map → dist-8ym3y-pH.js.map} +1 -1
  132. package/dist/{dist-BA-jTQgw.js → cdn/chunks/dist-BMzNabtD.js} +106 -107
  133. package/dist/cdn/chunks/{dist-CONcGNwy.js.map → dist-BMzNabtD.js.map} +1 -1
  134. package/dist/cdn/chunks/{draggable-B8hTTYFO.js → draggable-Du8AUMFT.js} +639 -636
  135. package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +1 -0
  136. package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js → editor-modal-CyCe560f.js} +891 -891
  137. package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js.map → editor-modal-CyCe560f.js.map} +1 -1
  138. package/dist/cdn/chunks/en-TIqv4ag3.js +1 -0
  139. package/dist/cdn/chunks/{extensions-ClDhn88e.js → extensions-CFF2KWy-.js} +55 -55
  140. package/dist/cdn/chunks/{extensions-ClDhn88e.js.map → extensions-CFF2KWy-.js.map} +1 -1
  141. package/dist/cdn/chunks/{icons-HCBP93Ch.js → icons-okSPsLOa.js} +99 -97
  142. package/dist/cdn/chunks/icons-okSPsLOa.js.map +1 -0
  143. package/dist/cdn/chunks/{keys-BF9gazbd.js → keys-CUj6UA38.js} +2 -2
  144. package/dist/cdn/chunks/{keys-BF9gazbd.js.map → keys-CUj6UA38.js.map} +1 -1
  145. package/dist/cdn/chunks/{liquid.browser-DkLBNrft.js → liquid.browser-rubac0VA.js} +782 -746
  146. package/dist/cdn/chunks/liquid.browser-rubac0VA.js.map +1 -0
  147. package/dist/cdn/chunks/{normalizeMergeTagMarkup-DpHCSESZ.js → normalizeMergeTagMarkup-C_KlfSW4.js} +2 -2
  148. package/dist/cdn/chunks/{normalizeMergeTagMarkup-DpHCSESZ.js.map → normalizeMergeTagMarkup-C_KlfSW4.js.map} +1 -1
  149. package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js → preRenderCustomBlocks-BcXIz7oJ.js} +2 -2
  150. package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js.map → preRenderCustomBlocks-BcXIz7oJ.js.map} +1 -1
  151. package/dist/cdn/chunks/{sanitizeHtml-B2h15u0_.js → sanitizeHtml-CN85EDrO.js} +2 -2
  152. package/dist/cdn/chunks/{sanitizeHtml-B2h15u0_.js.map → sanitizeHtml-CN85EDrO.js.map} +1 -1
  153. package/dist/cdn/chunks/{socialIcons-rJoqO1TJ.js → socialIcons-jsTDmkbb.js} +480 -480
  154. package/dist/cdn/chunks/{socialIcons-rJoqO1TJ.js.map → socialIcons-jsTDmkbb.js.map} +1 -1
  155. package/dist/cdn/chunks/{src-CUH_EI7k.js → src-C7bkofBL.js} +6 -6
  156. package/dist/cdn/chunks/{src-CUH_EI7k.js.map → src-C7bkofBL.js.map} +1 -1
  157. package/dist/cdn/chunks/{src-BKpAis_q.js → src-DEd87i_U.js} +2 -2
  158. package/dist/cdn/chunks/{src-BKpAis_q.js.map → src-DEd87i_U.js.map} +1 -1
  159. package/dist/cdn/chunks/{src-C9DTvn1H.js → src-DwWrYnUj.js} +3 -22
  160. package/dist/cdn/chunks/src-DwWrYnUj.js.map +1 -0
  161. package/dist/cdn/chunks/{tiptap-ChSZybTi.js → tiptap-CbiTlECY.js} +45 -45
  162. package/dist/cdn/chunks/{tiptap-ChSZybTi.js.map → tiptap-CbiTlECY.js.map} +1 -1
  163. package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js → useCloudI18n-DY8_-ETE.js} +3 -3
  164. package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js.map → useCloudI18n-DY8_-ETE.js.map} +1 -1
  165. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +2582 -0
  166. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +1 -0
  167. package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +9 -0
  168. package/dist/cdn/chunks/{useEditorRoot-BT3c9CXj.js.map → useEditorRoot-vjZJwKrV.js.map} +1 -1
  169. package/dist/cdn/chunks/{useI18n-11iqzC6m.js → useI18n-D8pY4LTq.js} +3 -3
  170. package/dist/cdn/chunks/{useI18n-11iqzC6m.js.map → useI18n-D8pY4LTq.js.map} +1 -1
  171. package/dist/{useLogicTag-DFDYJeMN.js → cdn/chunks/useLogicTag-DBJDtpKA.js} +5 -3
  172. package/dist/cdn/chunks/{useLogicTag-vy5KGg5D.js.map → useLogicTag-DBJDtpKA.js.map} +1 -1
  173. package/dist/{useMergeTag-B46vACAG.js → cdn/chunks/useMergeTag-B-aG--s1.js} +7 -5
  174. package/dist/cdn/chunks/{useMergeTag-BFBBjnwh.js.map → useMergeTag-B-aG--s1.js.map} +1 -1
  175. package/dist/cdn/chunks/{usePopoverPosition-AnVIwiVv.js → usePopoverPosition-DSMtmu2W.js} +4 -4
  176. package/dist/cdn/chunks/{usePopoverPosition-AnVIwiVv.js.map → usePopoverPosition-DSMtmu2W.js.map} +1 -1
  177. package/dist/cdn/chunks/{useScrollToBlock-C0dawxGr.js → useScrollToBlock-vjQ0fe-L.js} +3 -3
  178. package/dist/cdn/chunks/{useScrollToBlock-C0dawxGr.js.map → useScrollToBlock-vjQ0fe-L.js.map} +1 -1
  179. package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js → withCurrentFont-hZTvYBHO.js} +2 -2
  180. package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js.map → withCurrentFont-hZTvYBHO.js.map} +1 -1
  181. package/dist/cdn/editor.css +1 -1
  182. package/dist/cdn/editor.js +1422 -1422
  183. package/dist/cdn/editor.js.map +1 -1
  184. package/dist/{check-N3x4z_rH.js → check-BZ8o0eet.js} +1 -1
  185. package/dist/{chevron-down-gXu9qNwO.js → chevron-down-DfAAfILv.js} +1 -1
  186. package/dist/{chevron-right-rL0ayGk5.js → chevron-right-Bk4mGdr7.js} +1 -1
  187. package/dist/{chevron-up-0ugh8HnW.js → chevron-up-MhUf_azW.js} +1 -1
  188. package/dist/{circle-alert-B9Ls75B5.js → circle-alert-CShJwVFv.js} +1 -1
  189. package/dist/{clock-BqHBaCLm.js → clock-CTfD6OCt.js} +1 -1
  190. package/dist/{createCloudRuntime-B5VIdnwz.js → createCloudRuntime-DCgO4A1r.js} +24 -24
  191. package/dist/{createLucideIcon-BV7Gwz_Z.js → createLucideIcon-CvhTA2KG.js} +6 -6
  192. package/dist/{cdn/chunks/dist-CONcGNwy.js → dist-ByCWA2Tv.js} +100 -99
  193. package/dist/{dist-CzrLYq2s.js → dist-CKi_npZM.js} +2 -21
  194. package/dist/{dist-CEdyyDn7.js → dist-CVy-7PHQ.js} +54 -54
  195. package/dist/{dist-DDN7yR-w.js → dist-D6cMdrfG.js} +129 -129
  196. package/dist/{editor-modal-Du9VI9q4.js → editor-modal-zaZHcmlO.js} +812 -812
  197. package/dist/en-Db76vJbY.js +1 -0
  198. package/dist/{extensions-FRYhx7qa.js → extensions-fo_c-vqf.js} +32 -32
  199. package/dist/{eye-BKj9Tfnc.js → eye-7W4t5e0Q.js} +1 -1
  200. package/dist/{image-DNdvdTla.js → image-BDiRFzSd.js} +1 -1
  201. package/dist/{info-Bx-kBkbH.js → info-Cxi3-Kh9.js} +1 -1
  202. package/dist/{keys-DBjrQkYH.js → keys-BgRERHzu.js} +1 -1
  203. package/dist/{link-D8-rYdIQ.js → link-ju_2Cmir.js} +1 -1
  204. package/dist/{liquid.browser-D1RxawkY.js → liquid.browser-DUXEekoN.js} +781 -745
  205. package/dist/{list-BneisA27.js → list-DYZJf0aZ.js} +1 -1
  206. package/dist/{loader-circle-DBEXphyx.js → loader-circle-BZRD0a4I.js} +1 -1
  207. package/dist/{message-circle-Bg4xInCM.js → message-circle-DuEw4Zfx.js} +1 -1
  208. package/dist/{normalizeMergeTagMarkup-IH8COHzd.js → normalizeMergeTagMarkup-CELnOlgK.js} +1 -1
  209. package/dist/{package-B40Vkfsp.js → package-CePMr2kK.js} +1 -1
  210. package/dist/{pencil-CYdAHTds.js → pencil-D3aFCL7c.js} +1 -1
  211. package/dist/{preRenderCustomBlocks-AbZArwkR.js → preRenderCustomBlocks--_xc0XK3.js} +1 -1
  212. package/dist/{refresh-cw-Bb1FWrU0.js → refresh-cw-xnro7_Sk.js} +1 -1
  213. package/dist/{runtime-dom.esm-bundler-CLGymEyk.js → runtime-dom.esm-bundler-BURR-bj5.js} +118 -118
  214. package/dist/{sanitizeHtml-CnOA1efV.js → sanitizeHtml-BzfzpYJY.js} +1 -1
  215. package/dist/{search-BZEo08gi.js → search-CDrstRBv.js} +1 -1
  216. package/dist/{send-DHtrnXQs.js → send-DROkPOaX.js} +1 -1
  217. package/dist/{smartphone-dlN3vpA3.js → smartphone-Bx6u_tjn.js} +1 -1
  218. package/dist/{socialIcons-B_d52_eS.js → socialIcons-D7MGsg0d.js} +366 -366
  219. package/dist/{sparkles-NOttoDnJ.js → sparkles-CdaTtvoz.js} +1 -1
  220. package/dist/{square-B1CJgdt2.js → square-BbCROH_f.js} +1 -1
  221. package/dist/style.css +1 -1
  222. package/dist/templatical-editor.js +1096 -1096
  223. package/dist/{text-align-start-zpoXmb-Z.js → text-align-start-CGacJ9Vw.js} +1 -1
  224. package/dist/{trash-CGbk4Sgt.js → trash-DxCd7zIy.js} +1 -1
  225. package/dist/{triangle-alert-CKLMyGVp.js → triangle-alert-7_oaitpf.js} +1 -1
  226. package/dist/{upload-DQoackAn.js → upload-DuFEOi_0.js} +1 -1
  227. package/dist/{useCloudI18n-DcLtxOQZ.js → useCloudI18n-DEMmUKuO.js} +2 -2
  228. package/dist/{useEditorCore-DG9UvWUm.js → useEditorCore-BSo2sSID.js} +1518 -1470
  229. package/dist/useEditorRoot-BMcoCLBx.js +7 -0
  230. package/dist/{useI18n-CeTm777E.js → useI18n-BBrHTdu8.js} +2 -2
  231. package/dist/{cdn/chunks/useLogicTag-vy5KGg5D.js → useLogicTag-ZPC39rfH.js} +3 -5
  232. package/dist/{cdn/chunks/useMergeTag-BFBBjnwh.js → useMergeTag-BQ4qqWpQ.js} +5 -7
  233. package/dist/{usePopoverPosition-C42kD7zt.js → usePopoverPosition-DV1PxL66.js} +3 -3
  234. package/dist/{useScrollToBlock-C-NzvjeO.js → useScrollToBlock-BSyAV4pk.js} +3 -3
  235. package/dist/{vue.runtime.esm-bundler-CrlI8j5R.js → vue.runtime.esm-bundler-CnEeTfhs.js} +993 -990
  236. package/dist/{withCurrentFont-v_a4Oso8.js → withCurrentFont-B22FXAF5.js} +1 -1
  237. package/dist/{x-zcrnmcmU.js → x-BpfG7v9g.js} +1 -1
  238. package/package.json +10 -10
  239. package/dist/BlockIssueBadge-6Ri2FfX-.js +0 -33
  240. package/dist/CommentsSidebar-Co3x4uH0.js +0 -499
  241. package/dist/IssuesPanel-BHFQ3wrP.js +0 -359
  242. package/dist/SavedBlocksBrowserModal-SRtN5h9q.js +0 -359
  243. package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js +0 -34
  244. package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js.map +0 -1
  245. package/dist/cdn/chunks/CommentsSidebar-Dj8sDiLN.js.map +0 -1
  246. package/dist/cdn/chunks/ParagraphEditor-DsPLVAgm.js.map +0 -1
  247. package/dist/cdn/chunks/SavedBlocksBrowserModal-B9XCjDfm.js +0 -356
  248. package/dist/cdn/chunks/TitleEditor-R2lQw6WA.js.map +0 -1
  249. package/dist/cdn/chunks/TplModal-BDyeS69p.js +0 -51
  250. package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js +0 -21
  251. package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js.map +0 -1
  252. package/dist/cdn/chunks/draggable-B8hTTYFO.js.map +0 -1
  253. package/dist/cdn/chunks/en-CKAXAo3Z.js +0 -1
  254. package/dist/cdn/chunks/icons-HCBP93Ch.js.map +0 -1
  255. package/dist/cdn/chunks/liquid.browser-DkLBNrft.js.map +0 -1
  256. package/dist/cdn/chunks/src-C9DTvn1H.js.map +0 -1
  257. package/dist/cdn/chunks/useEditorCore-CjaEV_01.js +0 -2534
  258. package/dist/cdn/chunks/useEditorCore-CjaEV_01.js.map +0 -1
  259. package/dist/cdn/chunks/useEditorRoot-BT3c9CXj.js +0 -9
  260. package/dist/en-CyEE7FPY.js +0 -1
  261. package/dist/useEditorRoot-BKr6nNkC.js +0 -7
@@ -1,15 +1,15 @@
1
- import { At as e, C as t, D as n, G as r, Mt as i, N as a, Q as o, V as s, Y as c, _ as l, a as u, c as d, d as f, f as p, g as m, j as h, jt as g, l as _, ot as v, q as y, r as b, u as x, x as S, y as C } from "./vue.runtime.esm-bundler-CrlI8j5R.js";
2
- import { c as w, n as T, s as ee, t as te } from "./runtime-dom.esm-bundler-CLGymEyk.js";
3
- import { Z as E, et as D, ot as O, tt as k } from "./dist-CzrLYq2s.js";
4
- import { t as ne } from "./dist-BA-jTQgw.js";
5
- import { J as re, Y as A, Z as ie, d as ae } from "./keys-DBjrQkYH.js";
6
- import { t as j } from "./useI18n-CeTm777E.js";
7
- import { a as M, i as oe, n as se, o as ce, r as le, t as ue } from "./usePopoverPosition-C42kD7zt.js";
8
- import { t as N } from "./createLucideIcon-BV7Gwz_Z.js";
9
- import { t as P } from "./pencil-CYdAHTds.js";
10
- import { t as de } from "./x-zcrnmcmU.js";
11
- import { t as F } from "./useMergeTag-B46vACAG.js";
12
- import { t as I } from "./useLogicTag-DFDYJeMN.js";
1
+ import { $ as e, C as t, D as n, H as r, J as i, K as a, Mt as o, N as s, Nt as c, X as l, _ as u, a as d, c as f, d as p, f as m, g as h, j as g, jt as _, l as v, r as y, st as b, u as x, x as S, y as C } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
2
+ import { c as w, n as T, s as ee, t as te } from "./runtime-dom.esm-bundler-BURR-bj5.js";
3
+ import { Z as E, et as D, ot as O, tt as k } from "./dist-CKi_npZM.js";
4
+ import { t as ne } from "./dist-ByCWA2Tv.js";
5
+ import { J as re, Y as A, Z as ie, d as ae } from "./keys-BgRERHzu.js";
6
+ import { t as j } from "./useI18n-BBrHTdu8.js";
7
+ import { a as M, i as oe, n as se, o as ce, r as le, t as ue } from "./usePopoverPosition-DV1PxL66.js";
8
+ import { t as N } from "./createLucideIcon-CvhTA2KG.js";
9
+ import { t as P } from "./pencil-D3aFCL7c.js";
10
+ import { t as de } from "./x-BpfG7v9g.js";
11
+ import { t as F } from "./useMergeTag-BQ4qqWpQ.js";
12
+ import { t as I } from "./useLogicTag-ZPC39rfH.js";
13
13
  import { u as fe } from "./styleConstants-B8xVRiwX.js";
14
14
  var pe = N({
15
15
  name: "braces",
@@ -344,23 +344,23 @@ var Ie = [
344
344
  }
345
345
  },
346
346
  emits: ["update:modelValue"],
347
- setup(n, { emit: r }) {
348
- let c = n, y = r, { t: S } = j(), C = o(!1), T = o(), E = o(), D = o(!1);
347
+ setup(n, { emit: i }) {
348
+ let a = n, l = i, { t: S } = j(), C = e(!1), T = e(), E = e(), D = e(!1);
349
349
  ne(T, () => {
350
350
  C.value = !1;
351
351
  }, { ignore: [E] });
352
- let O = d(() => !c.modelValue), k = d(() => c.modelValue.trim().toLowerCase() === "transparent"), A = d(() => oe(c.modelValue)), N = d(() => (c.modelValue ? M(c.modelValue) : null) || (M(c.seedColor) ?? "#ffffff")), P = d(() => !c.disabled && !O.value), F = t(ae, ce), I = d(() => [...new Set(c.presets ?? F.presets)]), pe = d(() => c.allowCustom ?? F.allowCustom), L = d(() => I.value.length > 0), R = d(() => pe.value || !L.value), z = d(() => le(c.modelValue));
352
+ let O = f(() => !a.modelValue), k = f(() => a.modelValue.trim().toLowerCase() === "transparent"), A = f(() => oe(a.modelValue)), N = f(() => (a.modelValue ? M(a.modelValue) : null) || (M(a.seedColor) ?? "#ffffff")), P = f(() => !a.disabled && !O.value), F = t(ae, ce), I = f(() => [...new Set(a.presets ?? F.presets)]), pe = f(() => a.allowCustom ?? F.allowCustom), L = f(() => I.value.length > 0), R = f(() => pe.value || !L.value), z = f(() => le(a.modelValue));
353
353
  function B(e) {
354
354
  return z.value !== "" && le(e) === z.value;
355
355
  }
356
356
  function V(e) {
357
- y("update:modelValue", e);
357
+ l("update:modelValue", e);
358
358
  }
359
- let H = d(() => L.value && !R.value);
359
+ let H = f(() => L.value && !R.value);
360
360
  function U(e) {
361
361
  return H.value ? e + 1 : e;
362
362
  }
363
- let W = d(() => {
363
+ let W = f(() => {
364
364
  if (H.value && O.value) return 0;
365
365
  let e = I.value.findIndex((e) => B(e));
366
366
  return e === -1 ? 0 : U(e);
@@ -382,29 +382,29 @@ var Ie = [
382
382
  i !== -1 && (n[(i + (e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : -1) + n.length) % n.length]?.focus(), e.preventDefault());
383
383
  }
384
384
  function ge(e) {
385
- D.value = !0, y("update:modelValue", e.detail.value);
385
+ D.value = !0, l("update:modelValue", e.detail.value);
386
386
  }
387
387
  function _e() {
388
388
  D.value = !1;
389
389
  }
390
390
  function ve() {
391
- !D.value && O.value && y("update:modelValue", N.value);
391
+ !D.value && O.value && l("update:modelValue", N.value);
392
392
  }
393
393
  function K(e) {
394
- y("update:modelValue", e.target.value);
394
+ l("update:modelValue", e.target.value);
395
395
  }
396
396
  function q() {
397
- y("update:modelValue", "");
397
+ l("update:modelValue", "");
398
398
  }
399
399
  function J() {
400
- y("update:modelValue", "transparent");
400
+ l("update:modelValue", "transparent");
401
401
  }
402
- let Y = se(), { toLocal: X } = ue(), ye = t(re, null), be = t(ie, null), Z = o({
402
+ let Y = se(), { toLocal: X } = ue(), ye = t(re, null), be = t(ie, null), Z = e({
403
403
  top: 0,
404
404
  left: 0
405
405
  });
406
406
  function xe() {
407
- if (!c.disabled) {
407
+ if (!a.disabled) {
408
408
  if (!C.value) {
409
409
  let e = E.value?.getBoundingClientRect();
410
410
  if (e) {
@@ -418,53 +418,53 @@ var Ie = [
418
418
  C.value = !C.value;
419
419
  }
420
420
  }
421
- return (t, r) => (h(), p("div", { class: e(["tpl:flex tpl:items-center tpl:gap-2 tpl:relative", n.disabled && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
422
- _("button", {
421
+ return (e, t) => (g(), m("div", { class: _(["tpl:flex tpl:items-center tpl:gap-2 tpl:relative", n.disabled && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
422
+ v("button", {
423
423
  ref_key: "swatchRef",
424
424
  ref: E,
425
425
  type: "button",
426
426
  disabled: n.disabled,
427
- "aria-label": n.ariaLabel || v(S).colorPicker.pickColor,
427
+ "aria-label": n.ariaLabel || b(S).colorPicker.pickColor,
428
428
  title: n.ariaLabel || void 0,
429
429
  "aria-expanded": C.value,
430
- class: e([
430
+ class: _([
431
431
  "tpl:shrink-0 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-0.5 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
432
432
  n.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer",
433
433
  C.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !n.disabled && "tpl:hover:border-[var(--tpl-text-dim)]",
434
434
  n.size === "sm" ? "tpl:size-8" : "tpl:size-10"
435
435
  ]),
436
436
  onClick: xe
437
- }, [_("span", {
438
- class: e(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", {
437
+ }, [v("span", {
438
+ class: _(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", {
439
439
  "tpl-color-swatch-empty": O.value,
440
440
  "tpl-color-swatch-transparent": k.value
441
441
  }]),
442
- style: g(O.value || k.value ? void 0 : { backgroundColor: A.value })
442
+ style: o(O.value || k.value ? void 0 : { backgroundColor: A.value })
443
443
  }, null, 6)], 10, Ie),
444
- !n.swatchOnly && R.value ? (h(), p("div", Le, [_("input", {
444
+ !n.swatchOnly && R.value ? (g(), m("div", Le, [v("input", {
445
445
  type: "text",
446
- class: e([v(fe), "tpl:w-full"]),
447
- style: g(P.value ? { paddingRight: "2.25rem" } : void 0),
446
+ class: _([b(fe), "tpl:w-full"]),
447
+ style: o(P.value ? { paddingRight: "2.25rem" } : void 0),
448
448
  value: A.value,
449
- placeholder: n.placeholder || v(S).colorPicker.notSet,
449
+ placeholder: n.placeholder || b(S).colorPicker.notSet,
450
450
  disabled: n.disabled,
451
- "aria-label": v(S).colorPicker.hexValue,
451
+ "aria-label": b(S).colorPicker.hexValue,
452
452
  onInput: K
453
- }, null, 46, Re), P.value ? (h(), p("button", {
453
+ }, null, 46, Re), P.value ? (g(), m("button", {
454
454
  key: 0,
455
455
  type: "button",
456
- "aria-label": v(S).colorPicker.clear,
457
- title: v(S).colorPicker.clear,
456
+ "aria-label": b(S).colorPicker.clear,
457
+ title: b(S).colorPicker.clear,
458
458
  class: "tpl:absolute tpl:right-2 tpl:top-1/2 tpl:flex tpl:size-6 tpl:-translate-y-1/2 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
459
459
  onClick: q
460
- }, [l(v(de), {
460
+ }, [u(b(de), {
461
461
  size: 14,
462
462
  "stroke-width": 1.5
463
- })], 8, ze)) : f("", !0)])) : f("", !0),
464
- (h(), x(u, {
465
- to: v(Y),
466
- disabled: !v(Y)
467
- }, [l(te, {
463
+ })], 8, ze)) : p("", !0)])) : p("", !0),
464
+ (g(), x(d, {
465
+ to: b(Y),
466
+ disabled: !b(Y)
467
+ }, [u(te, {
468
468
  "enter-active-class": "tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
469
469
  "enter-from-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1",
470
470
  "enter-to-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
@@ -472,87 +472,87 @@ var Ie = [
472
472
  "leave-from-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
473
473
  "leave-to-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1"
474
474
  }, {
475
- default: s(() => [C.value ? (h(), p("div", {
475
+ default: r(() => [C.value ? (g(), m("div", {
476
476
  key: 0,
477
477
  ref_key: "popoverRef",
478
478
  ref: T,
479
- "data-tpl-theme": v(be),
479
+ "data-tpl-theme": b(be),
480
480
  class: "tpl-color-popover tpl:absolute tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3 tpl:shadow-[var(--tpl-shadow-lg)]",
481
- style: g({
481
+ style: o({
482
482
  top: `${Z.value.top}px`,
483
483
  left: `${Z.value.left}px`,
484
- ...v(ye)
484
+ ...b(ye)
485
485
  })
486
486
  }, [
487
- n.allowTransparent ? (h(), p("button", {
487
+ n.allowTransparent ? (g(), m("button", {
488
488
  key: 0,
489
489
  type: "button",
490
490
  "data-testid": "color-picker-transparent",
491
491
  "aria-pressed": k.value,
492
- "aria-label": v(S).colorPicker.transparent,
493
- title: v(S).colorPicker.transparent,
494
- class: e(["tpl:mb-2 tpl:flex tpl:w-full tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2 tpl:py-1 tpl:text-left tpl:text-xs 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:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)]", k.value ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
492
+ "aria-label": b(S).colorPicker.transparent,
493
+ title: b(S).colorPicker.transparent,
494
+ class: _(["tpl:mb-2 tpl:flex tpl:w-full tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2 tpl:py-1 tpl:text-left tpl:text-xs 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:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)]", k.value ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
495
495
  onClick: J
496
- }, [r[2] ||= _("span", { class: "tpl-color-swatch-transparent tpl:size-4 tpl:shrink-0 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)]" }, null, -1), m(" " + i(v(S).colorPicker.transparent), 1)], 10, Ve)) : f("", !0),
497
- L.value ? (h(), p("div", {
496
+ }, [t[2] ||= v("span", { class: "tpl-color-swatch-transparent tpl:size-4 tpl:shrink-0 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)]" }, null, -1), h(" " + c(b(S).colorPicker.transparent), 1)], 10, Ve)) : p("", !0),
497
+ L.value ? (g(), m("div", {
498
498
  key: 1,
499
499
  role: "radiogroup",
500
- "aria-label": v(S).colorPicker.presetColors,
501
- class: e(["tpl:flex tpl:flex-wrap tpl:gap-1.5", R.value && "tpl:mb-2"]),
500
+ "aria-label": b(S).colorPicker.presetColors,
501
+ class: _(["tpl:flex tpl:flex-wrap tpl:gap-1.5", R.value && "tpl:mb-2"]),
502
502
  onKeydown: he
503
- }, [H.value ? (h(), p("button", {
503
+ }, [H.value ? (g(), m("button", {
504
504
  key: 0,
505
505
  type: "button",
506
506
  role: "radio",
507
- "aria-label": v(S).colorPicker.clear,
508
- title: v(S).colorPicker.clear,
507
+ "aria-label": b(S).colorPicker.clear,
508
+ title: b(S).colorPicker.clear,
509
509
  "aria-checked": O.value,
510
510
  tabindex: me(),
511
- class: e(["tpl-color-swatch-empty tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", O.value ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
511
+ class: _(["tpl-color-swatch-empty tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", O.value ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
512
512
  onClick: q
513
- }, null, 10, Ue)) : f("", !0), (h(!0), p(b, null, a(I.value, (t, n) => (h(), p("button", {
514
- key: t,
513
+ }, null, 10, Ue)) : p("", !0), (g(!0), m(y, null, s(I.value, (e, t) => (g(), m("button", {
514
+ key: e,
515
515
  type: "button",
516
516
  role: "radio",
517
- "aria-label": t,
518
- title: t,
519
- "aria-checked": B(t),
520
- tabindex: G(n),
521
- style: g({ backgroundColor: t }),
522
- class: e(["tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", B(t) ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
523
- onClick: (e) => V(t)
524
- }, null, 14, We))), 128))], 42, He)) : f("", !0),
525
- R.value ? (h(), p("hex-color-picker", {
517
+ "aria-label": e,
518
+ title: e,
519
+ "aria-checked": B(e),
520
+ tabindex: G(t),
521
+ style: o({ backgroundColor: e }),
522
+ class: _(["tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", B(e) ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
523
+ onClick: (t) => V(e)
524
+ }, null, 14, We))), 128))], 42, He)) : p("", !0),
525
+ R.value ? (g(), m("hex-color-picker", {
526
526
  key: 2,
527
527
  color: N.value,
528
- "aria-label": v(S).colorPicker.pickColor,
528
+ "aria-label": b(S).colorPicker.pickColor,
529
529
  onColorChanged: ge,
530
530
  onPointerdown: _e,
531
531
  onPointerup: ve,
532
- onKeydown: r[0] ||= ee((e) => C.value = !1, ["escape"])
533
- }, null, 40, Ge)) : f("", !0),
534
- n.swatchOnly && R.value ? (h(), p("div", Ke, [_("input", {
532
+ onKeydown: t[0] ||= ee((e) => C.value = !1, ["escape"])
533
+ }, null, 40, Ge)) : p("", !0),
534
+ n.swatchOnly && R.value ? (g(), m("div", Ke, [v("input", {
535
535
  type: "text",
536
- class: e([v(fe), "tpl:w-full"]),
537
- style: g(P.value ? { paddingRight: "2.25rem" } : void 0),
536
+ class: _([b(fe), "tpl:w-full"]),
537
+ style: o(P.value ? { paddingRight: "2.25rem" } : void 0),
538
538
  value: A.value,
539
- placeholder: n.placeholder || v(S).colorPicker.notSet,
539
+ placeholder: n.placeholder || b(S).colorPicker.notSet,
540
540
  disabled: n.disabled,
541
- "aria-label": v(S).colorPicker.hexValue,
541
+ "aria-label": b(S).colorPicker.hexValue,
542
542
  onChange: K,
543
- onKeydown: r[1] ||= ee(w((e) => e.target.blur(), ["prevent"]), ["enter"])
544
- }, null, 46, qe), P.value ? (h(), p("button", {
543
+ onKeydown: t[1] ||= ee(w((e) => e.target.blur(), ["prevent"]), ["enter"])
544
+ }, null, 46, qe), P.value ? (g(), m("button", {
545
545
  key: 0,
546
546
  type: "button",
547
- "aria-label": v(S).colorPicker.clear,
548
- title: v(S).colorPicker.clear,
547
+ "aria-label": b(S).colorPicker.clear,
548
+ title: b(S).colorPicker.clear,
549
549
  class: "tpl:absolute tpl:right-2 tpl:top-1/2 tpl:flex tpl:size-6 tpl:-translate-y-1/2 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
550
550
  onClick: q
551
- }, [l(v(de), {
551
+ }, [u(b(de), {
552
552
  size: 14,
553
553
  "stroke-width": 1.5
554
- })], 8, Je)) : f("", !0)])) : f("", !0)
555
- ], 12, Be)) : f("", !0)]),
554
+ })], 8, Je)) : p("", !0)])) : p("", !0)
555
+ ], 12, Be)) : p("", !0)]),
556
556
  _: 1
557
557
  })], 8, ["to", "disabled"]))
558
558
  ], 2));
@@ -577,28 +577,28 @@ var Ie = [
577
577
  listId: {}
578
578
  },
579
579
  emits: ["select", "hover"],
580
- setup(t) {
581
- let n = t;
582
- function r(e) {
583
- return n.listId ? `${n.listId}-opt-${e}` : void 0;
580
+ setup(e) {
581
+ let t = e;
582
+ function n(e) {
583
+ return t.listId ? `${t.listId}-opt-${e}` : void 0;
584
584
  }
585
- return (n, o) => (h(), p("div", {
586
- id: t.listId,
585
+ return (t, r) => (g(), m("div", {
586
+ id: e.listId,
587
587
  class: "tpl:min-w-[200px] tpl:max-w-[320px] tpl:max-h-[50vh] tpl:overflow-y-auto tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:py-1 tpl:shadow-[var(--tpl-shadow-lg)]",
588
588
  role: "listbox",
589
589
  "data-testid": "merge-tag-suggestion-list"
590
- }, [t.items.length === 0 ? (h(), p("div", Ze, i(t.emptyText), 1)) : f("", !0), (h(!0), p(b, null, a(t.items, (a, o) => (h(), p("button", {
591
- key: a.value,
592
- id: r(o),
590
+ }, [e.items.length === 0 ? (g(), m("div", Ze, c(e.emptyText), 1)) : p("", !0), (g(!0), m(y, null, s(e.items, (r, i) => (g(), m("button", {
591
+ key: r.value,
592
+ id: n(i),
593
593
  type: "button",
594
594
  role: "option",
595
- "aria-selected": o === t.selectedIndex,
596
- "data-selected": o === t.selectedIndex ? "true" : "false",
597
- "data-merge-tag-value": a.value,
598
- class: e(["tpl:flex tpl:w-full tpl:flex-col tpl:items-start tpl:gap-0.5 tpl:px-3 tpl:py-1.5 tpl:text-left tpl:text-xs tpl:transition-colors", o === t.selectedIndex ? "tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:text-[var(--tpl-text)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
599
- onMousedown: w((e) => n.$emit("select", a), ["prevent", "stop"]),
600
- onMousemove: (e) => o !== t.selectedIndex && n.$emit("hover", o)
601
- }, [_("span", $e, i(a.label), 1), _("span", et, i(a.value), 1)], 42, Qe))), 128))], 8, Xe));
595
+ "aria-selected": i === e.selectedIndex,
596
+ "data-selected": i === e.selectedIndex ? "true" : "false",
597
+ "data-merge-tag-value": r.value,
598
+ class: _(["tpl:flex tpl:w-full tpl:flex-col tpl:items-start tpl:gap-0.5 tpl:px-3 tpl:py-1.5 tpl:text-left tpl:text-xs tpl:transition-colors", i === e.selectedIndex ? "tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:text-[var(--tpl-text)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
599
+ onMousedown: w((e) => t.$emit("select", r), ["prevent", "stop"]),
600
+ onMousemove: (n) => i !== e.selectedIndex && t.$emit("hover", i)
601
+ }, [v("span", $e, c(r.label), 1), v("span", et, c(r.value), 1)], 42, Qe))), 128))], 8, Xe));
602
602
  }
603
603
  }), nt = 10, rt = 0;
604
604
  function it(e, t) {
@@ -611,8 +611,8 @@ function it(e, t) {
611
611
  function at(e, t, n, r) {
612
612
  return t.length === 0 ? e.key === "Enter" || e.key === "Tab" : e.key === "ArrowDown" ? (n.value = (n.value + 1) % t.length, !0) : e.key === "ArrowUp" ? (n.value = (n.value - 1 + t.length) % t.length, !0) : e.key === "Enter" || e.key === "Tab" ? (r(t[n.value]), !0) : !1;
613
613
  }
614
- function ot(e, t) {
615
- let n = null, r = null, i = null, a = o([]), s = o(0), c = null, l = `tpl-merge-tag-suggestion-${++rt}`, u = null, d = [], f = null;
614
+ function ot(t, n) {
615
+ let r = null, i = null, a = null, o = e([]), s = e(0), c = null, l = `tpl-merge-tag-suggestion-${++rt}`, u = null, d = [], f = null;
616
616
  function p() {
617
617
  v(u?.() ?? null);
618
618
  }
@@ -642,14 +642,14 @@ function ot(e, t) {
642
642
  window.removeEventListener("resize", p), d = [];
643
643
  }
644
644
  function v(e) {
645
- if (!r || !e || e.bottom < 0 || e.top > window.innerHeight) return;
646
- r.style.position = "absolute", r.style.zIndex = "9999";
647
- let t = r.offsetParent?.getBoundingClientRect(), n = t?.top ?? 0, i = t?.left ?? 0;
648
- r.style.left = `${e.left - i}px`, r.style.top = `${e.bottom - n}px`;
649
- let a = r.offsetHeight;
645
+ if (!i || !e || e.bottom < 0 || e.top > window.innerHeight) return;
646
+ i.style.position = "absolute", i.style.zIndex = "9999";
647
+ let t = i.offsetParent?.getBoundingClientRect(), n = t?.top ?? 0, r = t?.left ?? 0;
648
+ i.style.left = `${e.left - r}px`, i.style.top = `${e.bottom - n}px`;
649
+ let a = i.offsetHeight;
650
650
  if (a !== 0 && window.innerHeight - e.bottom < a) {
651
651
  let t = Math.max(0, e.top - a);
652
- r.style.top = `${t - n}px`;
652
+ i.style.top = `${t - n}px`;
653
653
  }
654
654
  }
655
655
  function y(e, t) {
@@ -665,40 +665,40 @@ function ot(e, t) {
665
665
  e.style.fontFamily = i.fontFamily, e.style.fontSize = i.fontSize, e.style.lineHeight = i.lineHeight;
666
666
  }
667
667
  function b(e) {
668
- i && (e ? (i.setAttribute("role", "combobox"), i.setAttribute("aria-haspopup", "listbox"), i.setAttribute("aria-expanded", "true"), i.setAttribute("aria-controls", l)) : (i.removeAttribute("aria-expanded"), i.removeAttribute("aria-controls"), i.removeAttribute("aria-activedescendant"), i.removeAttribute("aria-haspopup"), i.removeAttribute("role")));
668
+ a && (e ? (a.setAttribute("role", "combobox"), a.setAttribute("aria-haspopup", "listbox"), a.setAttribute("aria-expanded", "true"), a.setAttribute("aria-controls", l)) : (a.removeAttribute("aria-expanded"), a.removeAttribute("aria-controls"), a.removeAttribute("aria-activedescendant"), a.removeAttribute("aria-haspopup"), a.removeAttribute("role")));
669
669
  }
670
670
  function x() {
671
- i && (a.value.length === 0 ? i.removeAttribute("aria-activedescendant") : i.setAttribute("aria-activedescendant", `${l}-opt-${s.value}`));
671
+ a && (o.value.length === 0 ? a.removeAttribute("aria-activedescendant") : a.setAttribute("aria-activedescendant", `${l}-opt-${s.value}`));
672
672
  }
673
673
  function C(e) {
674
674
  c?.(e);
675
675
  }
676
676
  return {
677
- open: ({ items: o, getRect: d, anchorEl: f, onCommand: p }) => {
678
- a.value = o, s.value = 0, c = p, r = document.createElement("div"), r.setAttribute("data-testid", "merge-tag-suggestion-popup"), i = f, y(r, f), (t?.value ?? document.body).appendChild(r), n = T({ render() {
677
+ open: ({ items: e, getRect: d, anchorEl: f, onCommand: p }) => {
678
+ o.value = e, s.value = 0, c = p, i = document.createElement("div"), i.setAttribute("data-testid", "merge-tag-suggestion-popup"), a = f, y(i, f), (n?.value ?? document.body).appendChild(i), r = T({ render() {
679
679
  return S(tt, {
680
- items: a.value,
680
+ items: o.value,
681
681
  selectedIndex: s.value,
682
- emptyText: e,
682
+ emptyText: t,
683
683
  listId: l,
684
684
  onSelect: (e) => C(e),
685
685
  onHover: (e) => {
686
686
  s.value = e, x();
687
687
  }
688
688
  });
689
- } }), n.mount(r), b(!0), x(), u = d, m(), g(f);
689
+ } }), r.mount(i), b(!0), x(), u = d, m(), g(f);
690
690
  },
691
691
  update: ({ items: e, getRect: t, onCommand: n }) => {
692
- a.value = e, s.value >= e.length && (s.value = 0), c = n, x(), u = t, m();
692
+ o.value = e, s.value >= e.length && (s.value = 0), c = n, x(), u = t, m();
693
693
  },
694
694
  handleKeyDown: (e) => {
695
- let t = at(e, a.value, s, C);
695
+ let t = at(e, o.value, s, C);
696
696
  return t && x(), t;
697
697
  },
698
698
  close: () => {
699
- r !== null && (f !== null && (cancelAnimationFrame(f), f = null), _(), b(!1), n?.unmount(), r.remove(), n = null, r = null, i = null, c = null, u = null);
699
+ i !== null && (f !== null && (cancelAnimationFrame(f), f = null), _(), b(!1), r?.unmount(), i.remove(), r = null, i = null, a = null, c = null, u = null);
700
700
  },
701
- isOpen: () => r !== null
701
+ isOpen: () => i !== null
702
702
  };
703
703
  }
704
704
  // src/utils/mergeTagTrigger.ts
@@ -762,66 +762,66 @@ var ft = /* @__PURE__ */ new Set([
762
762
  "End"
763
763
  ]);
764
764
  function pt(e) {
765
- let { elementRef: i, modelValue: a, emit: o, mergeTags: s, syntax: l, enabled: u, onInsert: f } = e, p = k(l), m = D(l), h = d(() => u && p !== null && s.value.length > 0), g = t(A, null), _ = ot((y(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", se()), v = !1;
766
- r() && c(() => {
767
- v = !0, _.close();
765
+ let { elementRef: r, modelValue: o, emit: s, mergeTags: c, syntax: u, enabled: d, onInsert: p } = e, m = k(u), h = D(u), g = f(() => d && m !== null && c.value.length > 0), _ = t(A, null), v = ot((i(_) ? _.value : _)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", se()), y = !1;
766
+ a() && l(() => {
767
+ y = !0, v.close();
768
768
  });
769
769
  function b(e) {
770
770
  let t = e.value ?? "";
771
- return st(t, e.selectionStart ?? t.length, p, m, l.value);
771
+ return st(t, e.selectionStart ?? t.length, m, h, u.value);
772
772
  }
773
- function x(e, t, r) {
774
- let s = e.value ?? a(), c = s.slice(t.caret), l = m && c.startsWith(m) ? m.length : 0, u = s.slice(0, t.triggerStart), d = s.slice(t.caret + l), p = u + r.value + d, h = u.length + r.value.length;
775
- f?.(), o(p), _.close(), n(() => {
776
- if (v) return;
777
- let e = i.value;
778
- e?.focus(), e?.setSelectionRange(h, h);
773
+ function x(e, t, i) {
774
+ let a = e.value ?? o(), c = a.slice(t.caret), l = h && c.startsWith(h) ? h.length : 0, u = a.slice(0, t.triggerStart), d = a.slice(t.caret + l), f = u + i.value + d, m = u.length + i.value.length;
775
+ p?.(), s(f), v.close(), n(() => {
776
+ if (y) return;
777
+ let e = r.value;
778
+ e?.focus(), e?.setSelectionRange(m, m);
779
779
  });
780
780
  }
781
781
  function S() {
782
- if (!h.value || v) return;
783
- let e = i.value;
782
+ if (!g.value || y) return;
783
+ let e = r.value;
784
784
  if (!e) {
785
- _.close();
785
+ v.close();
786
786
  return;
787
787
  }
788
788
  let t = b(e);
789
789
  if (!t) {
790
- _.close();
790
+ v.close();
791
791
  return;
792
792
  }
793
- let n = it(s.value, t.query), r = () => dt(e, t.triggerStart), a = (n) => x(e, t, n);
794
- _.isOpen() ? _.update({
793
+ let n = it(c.value, t.query), i = () => dt(e, t.triggerStart), a = (n) => x(e, t, n);
794
+ v.isOpen() ? v.update({
795
795
  items: n,
796
- getRect: r,
796
+ getRect: i,
797
797
  onCommand: a
798
- }) : _.open({
798
+ }) : v.open({
799
799
  items: n,
800
- getRect: r,
800
+ getRect: i,
801
801
  anchorEl: e,
802
802
  onCommand: a
803
803
  });
804
804
  }
805
805
  function C(e) {
806
- return _.isOpen() ? e.key === "Escape" ? (_.close(), !0) : ft.has(e.key) ? (_.close(), !1) : _.handleKeyDown(e) : !1;
806
+ return v.isOpen() ? e.key === "Escape" ? (v.close(), !0) : ft.has(e.key) ? (v.close(), !1) : v.handleKeyDown(e) : !1;
807
807
  }
808
808
  return {
809
- available: h,
809
+ available: g,
810
810
  refresh: S,
811
811
  handleKeydown: C,
812
- close: () => _.close(),
813
- isOpen: () => _.isOpen()
812
+ close: () => v.close(),
813
+ isOpen: () => v.isOpen()
814
814
  };
815
815
  }
816
816
  // src/composables/useMergeTagField.ts
817
- function mt(e) {
818
- let { modelValue: t, emit: i, elementRef: a } = e, { mergeTags: s, canRequestMergeTag: l, isRequesting: u, isMergeTagValue: f, getMergeTagDisplayLabel: p, findMergeTag: m, requestMergeTag: h, syntax: g, autocomplete: _ } = F(), { canInsertLogicTag: v, isRequesting: y, requestLogicTag: b } = I(), x = o(!1), S = !1, C = !1;
819
- r() && c(() => {
817
+ function mt(t) {
818
+ let { modelValue: r, emit: i, elementRef: o } = t, { mergeTags: s, canRequestMergeTag: c, isRequesting: u, isMergeTagValue: d, getMergeTagDisplayLabel: p, findMergeTag: m, requestMergeTag: h, syntax: g, autocomplete: _ } = F(), { canInsertLogicTag: v, isRequesting: y, requestLogicTag: b } = I(), x = e(!1), S = !1, C = !1;
819
+ a() && l(() => {
820
820
  C = !0;
821
821
  });
822
822
  let w = pt({
823
- elementRef: a,
824
- modelValue: t,
823
+ elementRef: o,
824
+ modelValue: r,
825
825
  emit: i,
826
826
  mergeTags: s,
827
827
  syntax: g,
@@ -829,39 +829,39 @@ function mt(e) {
829
829
  onInsert: () => {
830
830
  x.value = !0;
831
831
  }
832
- }), T = d(() => {
833
- let e = t();
832
+ }), T = f(() => {
833
+ let e = r();
834
834
  if (!e) return [];
835
- let n = [], r = `(${g.value.source}|${g.logic.source})`, i = new RegExp(r, "g"), a = 0, o;
835
+ let t = [], n = `(${g.value.source}|${g.logic.source})`, i = new RegExp(n, "g"), a = 0, o;
836
836
  for (; (o = i.exec(e)) !== null;) {
837
- o.index > a && n.push({
837
+ o.index > a && t.push({
838
838
  type: "text",
839
839
  value: e.slice(a, o.index)
840
840
  });
841
- let t = o[0];
842
- f(t) ? n.push({
841
+ let n = o[0];
842
+ d(n) ? t.push({
843
843
  type: "mergeTag",
844
- value: t,
845
- label: p(t)
846
- }) : O(t, g) ? n.push({
844
+ value: n,
845
+ label: p(n)
846
+ }) : O(n, g) ? t.push({
847
847
  type: "logicMergeTag",
848
- value: t,
849
- keyword: E(t, g)
850
- }) : n.push({
848
+ value: n,
849
+ keyword: E(n, g)
850
+ }) : t.push({
851
851
  type: "text",
852
- value: t
853
- }), a = o.index + t.length;
852
+ value: n
853
+ }), a = o.index + n.length;
854
854
  }
855
- return a < e.length && n.push({
855
+ return a < e.length && t.push({
856
856
  type: "text",
857
857
  value: e.slice(a)
858
- }), n;
859
- }), ee = d(() => T.value.some((e) => e.type === "mergeTag" || e.type === "logicMergeTag"));
858
+ }), t;
859
+ }), ee = f(() => T.value.some((e) => e.type === "mergeTag" || e.type === "logicMergeTag"));
860
860
  function te() {
861
861
  x.value = !0, n(() => {
862
- a.value?.focus();
863
- let e = t()?.length || 0;
864
- a.value?.setSelectionRange(e, e);
862
+ o.value?.focus();
863
+ let e = r()?.length || 0;
864
+ o.value?.setSelectionRange(e, e);
865
865
  });
866
866
  }
867
867
  function D() {
@@ -883,20 +883,20 @@ function mt(e) {
883
883
  i("");
884
884
  }
885
885
  async function ae() {
886
- let e = x.value && a.value ? a.value.selectionStart ?? t().length : t().length;
886
+ let e = x.value && o.value ? o.value.selectionStart ?? r().length : r().length;
887
887
  S = !0;
888
- let r;
888
+ let t;
889
889
  try {
890
- r = await h();
890
+ t = await h();
891
891
  } finally {
892
892
  S = !1;
893
893
  }
894
- if (!C && r) {
895
- let o = t().slice(0, e), s = t().slice(e), c = o + r.value + s;
894
+ if (!C && t) {
895
+ let a = r().slice(0, e), s = r().slice(e), c = a + t.value + s;
896
896
  i(c), x.value = !0, n(() => {
897
897
  if (C) return;
898
- let t = e + r.value.length;
899
- a.value?.focus(), a.value?.setSelectionRange(t, t);
898
+ let n = e + t.value.length;
899
+ o.value?.focus(), o.value?.setSelectionRange(n, n);
900
900
  });
901
901
  }
902
902
  }
@@ -916,7 +916,7 @@ function mt(e) {
916
916
  !C && r && i(t.map((t, n) => n === e ? r.value : t.value).join(""));
917
917
  }
918
918
  async function M() {
919
- let e = a.value, r = e?.selectionStart ?? t().length, o = e?.selectionEnd ?? r;
919
+ let e = o.value, t = e?.selectionStart ?? r().length, a = e?.selectionEnd ?? t;
920
920
  S = !0;
921
921
  let s;
922
922
  try {
@@ -925,15 +925,15 @@ function mt(e) {
925
925
  S = !1;
926
926
  }
927
927
  if (C || !s) return;
928
- let c = t(), l, u;
929
- "before" in s ? (l = c.slice(0, r) + s.before + c.slice(r, o) + s.after + c.slice(o), u = r + s.before.length + (o - r)) : (l = c.slice(0, r) + s.value + c.slice(r), u = r + s.value.length), i(l), x.value = !0, n(() => {
930
- C || (a.value?.focus(), a.value?.setSelectionRange(u, u));
928
+ let c = r(), l, u;
929
+ "before" in s ? (l = c.slice(0, t) + s.before + c.slice(t, a) + s.after + c.slice(a), u = t + s.before.length + (a - t)) : (l = c.slice(0, t) + s.value + c.slice(t), u = t + s.value.length), i(l), x.value = !0, n(() => {
930
+ C || (o.value?.focus(), o.value?.setSelectionRange(u, u));
931
931
  });
932
932
  }
933
933
  return {
934
934
  segments: T,
935
935
  hasMergeTags: ee,
936
- canRequestMergeTag: l,
936
+ canRequestMergeTag: c,
937
937
  isRequestingMergeTag: u,
938
938
  canInsertLogicTag: v,
939
939
  isRequestingLogicTag: y,
@@ -971,66 +971,66 @@ var ht = ["aria-label"], gt = [
971
971
  "clear",
972
972
  "repick"
973
973
  ],
974
- setup(t, { emit: n }) {
975
- let r = n, { t: o, format: s } = j(), { canRepickMergeTag: c, showRawValue: u } = F();
976
- function d() {
977
- r("edit");
974
+ setup(e, { emit: t }) {
975
+ let n = t, { t: r, format: i } = j(), { canRepickMergeTag: a, showRawValue: o } = F();
976
+ function l() {
977
+ n("edit");
978
978
  }
979
- return (n, f) => (h(), p("div", {
979
+ return (t, d) => (g(), m("div", {
980
980
  role: "group",
981
- "aria-label": v(o).mergeTag.fieldGroup,
982
- class: e([t.displayClass, { "tpl-pulse-fill": t.pulse }]),
983
- onClick: d
981
+ "aria-label": b(r).mergeTag.fieldGroup,
982
+ class: _([e.displayClass, { "tpl-pulse-fill": e.pulse }]),
983
+ onClick: l
984
984
  }, [
985
- (h(!0), p(b, null, a(t.segments, (t, n) => (h(), p(b, { key: `${t.type}-${n}-${t.value}` }, [t.type === "mergeTag" && v(c)(t.value) ? (h(), p("button", {
985
+ (g(!0), m(y, null, s(e.segments, (e, t) => (g(), m(y, { key: `${e.type}-${t}-${e.value}` }, [e.type === "mergeTag" && b(a)(e.value) ? (g(), m("button", {
986
986
  key: 0,
987
987
  type: "button",
988
- class: e(["tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:rounded tpl:border-none tpl:px-1.5 tpl:py-0.5 tpl:text-[0.9em] tpl:font-medium", v(u) ? "tpl-tooltip" : ""]),
989
- "data-tooltip": v(u) ? t.value : void 0,
990
- "aria-label": v(s)(v(o).mergeTag.changeTag, { label: t.label }),
988
+ class: _(["tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:rounded tpl:border-none tpl:px-1.5 tpl:py-0.5 tpl:text-[0.9em] tpl:font-medium", b(o) ? "tpl-tooltip" : ""]),
989
+ "data-tooltip": b(o) ? e.value : void 0,
990
+ "aria-label": b(i)(b(r).mergeTag.changeTag, { label: e.label }),
991
991
  "data-testid": "merge-tag-field-chip",
992
992
  style: {
993
993
  "background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
994
994
  color: "var(--tpl-primary)"
995
995
  },
996
- onClick: w((e) => r("repick", n), ["stop"])
997
- }, i(t.label), 11, gt)) : t.type === "mergeTag" ? (h(), p("span", {
996
+ onClick: w((e) => n("repick", t), ["stop"])
997
+ }, c(e.label), 11, gt)) : e.type === "mergeTag" ? (g(), m("span", {
998
998
  key: 1,
999
- class: e(["tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.9em] tpl:font-medium", v(u) ? "tpl-tooltip" : ""]),
1000
- "data-tooltip": v(u) ? t.value : void 0,
999
+ class: _(["tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.9em] tpl:font-medium", b(o) ? "tpl-tooltip" : ""]),
1000
+ "data-tooltip": b(o) ? e.value : void 0,
1001
1001
  style: {
1002
1002
  "background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
1003
1003
  color: "var(--tpl-primary)"
1004
1004
  }
1005
- }, i(t.label), 11, _t)) : t.type === "logicMergeTag" ? (h(), p("span", {
1005
+ }, c(e.label), 11, _t)) : e.type === "logicMergeTag" ? (g(), m("span", {
1006
1006
  key: 2,
1007
1007
  class: "tpl-tooltip tpl:inline-flex tpl:items-center tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.8em] tpl:font-bold tpl:tracking-wide tpl:uppercase",
1008
- "data-tooltip": t.value,
1008
+ "data-tooltip": e.value,
1009
1009
  style: {
1010
1010
  "background-color": "transparent",
1011
1011
  border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
1012
1012
  color: "var(--tpl-primary)"
1013
1013
  }
1014
- }, i(t.keyword), 9, vt)) : (h(), p("span", yt, i(t.value), 1))], 64))), 128)),
1015
- _("button", {
1014
+ }, c(e.keyword), 9, vt)) : (g(), m("span", yt, c(e.value), 1))], 64))), 128)),
1015
+ v("button", {
1016
1016
  type: "button",
1017
1017
  class: "tpl:ml-auto tpl:flex tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-[var(--tpl-text-dim)] tpl:opacity-60 tpl:transition-all tpl:hover:text-[var(--tpl-primary)] tpl:hover:opacity-100",
1018
- "aria-label": v(o).mergeTag.editAsText,
1019
- title: v(o).mergeTag.editAsText,
1018
+ "aria-label": b(r).mergeTag.editAsText,
1019
+ title: b(r).mergeTag.editAsText,
1020
1020
  "data-testid": "merge-tag-field-edit",
1021
- onClick: w(d, ["stop"])
1022
- }, [l(v(P), {
1021
+ onClick: w(l, ["stop"])
1022
+ }, [u(b(P), {
1023
1023
  size: 12,
1024
1024
  "stroke-width": 2
1025
1025
  })], 8, bt),
1026
- _("button", {
1026
+ v("button", {
1027
1027
  type: "button",
1028
1028
  class: "tpl:flex tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-[var(--tpl-text-dim)] tpl:opacity-60 tpl:transition-all tpl:hover:text-[var(--tpl-danger)] tpl:hover:opacity-100",
1029
- "aria-label": v(o).mergeTag.remove,
1030
- title: v(o).mergeTag.remove,
1029
+ "aria-label": b(r).mergeTag.remove,
1030
+ title: b(r).mergeTag.remove,
1031
1031
  "data-testid": "merge-tag-field-clear",
1032
- onClick: f[0] ||= w((e) => r("clear"), ["stop"])
1033
- }, [l(v(de), {
1032
+ onClick: d[0] ||= w((e) => n("clear"), ["stop"])
1033
+ }, [u(b(de), {
1034
1034
  size: 12,
1035
1035
  "stroke-width": 2.5
1036
1036
  })], 8, xt)
@@ -1044,20 +1044,20 @@ var ht = ["aria-label"], gt = [
1044
1044
  __name: "MergeTagInsertButton",
1045
1045
  props: { disabled: { type: Boolean } },
1046
1046
  emits: ["insert"],
1047
- setup(t) {
1048
- let { t: n } = j();
1049
- return (r, a) => (h(), p("button", {
1047
+ setup(e) {
1048
+ let { t } = j();
1049
+ return (n, r) => (g(), m("button", {
1050
1050
  type: "button",
1051
- class: e([wt, "tpl:mt-1.5"]),
1052
- "aria-label": v(n).mergeTag.insert,
1053
- title: v(n).mergeTag.insert,
1054
- disabled: t.disabled,
1055
- onMousedown: a[0] ||= w(() => {}, ["prevent"]),
1056
- onClick: a[1] ||= (e) => r.$emit("insert")
1057
- }, [l(v(L), {
1051
+ class: _([wt, "tpl:mt-1.5"]),
1052
+ "aria-label": b(t).mergeTag.insert,
1053
+ title: b(t).mergeTag.insert,
1054
+ disabled: e.disabled,
1055
+ onMousedown: r[0] ||= w(() => {}, ["prevent"]),
1056
+ onClick: r[1] ||= (e) => n.$emit("insert")
1057
+ }, [u(b(L), {
1058
1058
  size: 12,
1059
1059
  "stroke-width": 2
1060
- }), m(" " + i(v(n).mergeTag.insertShort), 1)], 42, Ct));
1060
+ }), h(" " + c(b(t).mergeTag.insertShort), 1)], 42, Ct));
1061
1061
  }
1062
1062
  }), Et = [
1063
1063
  "aria-label",
@@ -1067,21 +1067,21 @@ var ht = ["aria-label"], gt = [
1067
1067
  __name: "LogicTagInsertButton",
1068
1068
  props: { disabled: { type: Boolean } },
1069
1069
  emits: ["insert"],
1070
- setup(t) {
1071
- let { t: n } = j();
1072
- return (r, a) => (h(), p("button", {
1070
+ setup(e) {
1071
+ let { t } = j();
1072
+ return (n, r) => (g(), m("button", {
1073
1073
  type: "button",
1074
- class: e([Dt, "tpl:mt-1.5"]),
1075
- "aria-label": v(n).logicTag.insert,
1076
- title: v(n).logicTag.insert,
1077
- disabled: t.disabled,
1074
+ class: _([Dt, "tpl:mt-1.5"]),
1075
+ "aria-label": b(t).logicTag.insert,
1076
+ title: b(t).logicTag.insert,
1077
+ disabled: e.disabled,
1078
1078
  "data-testid": "field-insert-logic-button",
1079
- onMousedown: a[0] ||= w(() => {}, ["prevent"]),
1080
- onClick: a[1] ||= (e) => r.$emit("insert")
1081
- }, [l(v(pe), {
1079
+ onMousedown: r[0] ||= w(() => {}, ["prevent"]),
1080
+ onClick: r[1] ||= (e) => n.$emit("insert")
1081
+ }, [u(b(pe), {
1082
1082
  size: 12,
1083
1083
  "stroke-width": 2
1084
- }), m(" " + i(v(n).logicTag.insertShort), 1)], 42, Et));
1084
+ }), h(" " + c(b(t).logicTag.insertShort), 1)], 42, Et));
1085
1085
  }
1086
1086
  });
1087
1087
  export { ot as a, Ye as c, mt as i, L as l, Tt as n, it as o, St as r, at as s, Ot as t, pe as u };