@templatical/editor 0.51.1 → 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 (380) hide show
  1. package/THIRD_PARTY_NOTICES.md +208 -0
  2. package/dist/{AiAltTextPopover-BZQ95GXL.js → AiAltTextPopover-DawbUywc.js} +16 -17
  3. package/dist/{AiAltTextReview-DoBEudnE.js → AiAltTextReview-9ySsXOTU.js} +25 -26
  4. package/dist/{AiChatPanel-Bs6sES3b.js → AiChatPanel-CupPhmsN.js} +141 -143
  5. package/dist/{AiPanels-CfN7A-ZA.js → AiPanels-DqT4PgQ0.js} +6 -8
  6. package/dist/{AiRewriteMenu-C3ZfDDYy.js → AiRewriteMenu-28agTycW.js} +66 -67
  7. package/dist/BlockIssueBadge-BxpDy3u-.js +33 -0
  8. package/dist/{BlockPreviewCanvas-BXNLLLYi.js → BlockPreviewCanvas-B-4bmJ3t.js} +26 -27
  9. package/dist/{CloudHeaderExtras-CsJMEiyN.js → CloudHeaderExtras-QI82yF54.js} +4 -5
  10. package/dist/{CloudPanels-B4F5m7vy.js → CloudPanels-BKJaLkUN.js} +52 -53
  11. package/dist/{CollaborationNotices-CNuDp7Y2.js → CollaborationNotices-CTw4JThq.js} +12 -13
  12. package/dist/{CollaboratorBar-BtHPiuHq.js → CollaboratorBar-CXQqN3VP.js} +16 -17
  13. package/dist/{CommentsPanel-CyCM-BvT.js → CommentsPanel-DwwFuh1h.js} +3 -5
  14. package/dist/CommentsSidebar-9ZfiC2DO.js +500 -0
  15. package/dist/{CountdownBlock-DR4Xm2-T.js → CountdownBlock-CU2yTWtF.js} +21 -22
  16. package/dist/{CountdownToolbar-CEIMPojJ.js → CountdownToolbar-BqoYzf_6.js} +55 -56
  17. package/dist/IssuesPanel-4ykrf1ax.js +359 -0
  18. package/dist/{LoadingTrack-B0RKQWq3.js → LoadingTrack-DM4g6j7b.js} +3 -4
  19. package/dist/{LogicTagInsertButton-CqfU52CO.js → LogicTagInsertButton-CfscnwCn.js} +243 -250
  20. package/dist/{MediaEditModal-DHtkZ4OU.js → MediaEditModal-Dy08GEwE.js} +449 -452
  21. package/dist/{MediaPanels-CGcOB2pR.js → MediaPanels-BgEp7iCp.js} +3 -5
  22. package/dist/{MergeTagInput-YnEkorTZ.js → MergeTagInput-B9dtUthD.js} +14 -15
  23. package/dist/{MergeTagModeToggle-Dhb1DAcQ.js → MergeTagModeToggle-DxujhYJ4.js} +30 -31
  24. package/dist/{MergeTagTextarea-e4lnwtqZ.js → MergeTagTextarea-CPFEjJZd.js} +12 -13
  25. package/dist/{ParagraphEditor-B6NK0ytw.js → ParagraphEditor-CWXfurGh.js} +233 -236
  26. package/dist/{RestoreVersionDialog-Bq_IGOLJ.js → RestoreVersionDialog-C4s_JYCx.js} +16 -17
  27. package/dist/{RichTextEditorContent-AOM6fylS.js → RichTextEditorContent-o6HmE8GR.js} +40 -40
  28. package/dist/{SaveBlockDialog-C8GngfQx.js → SaveBlockDialog-CWLrly6l.js} +58 -59
  29. package/dist/SavedBlocksBrowserModal-CE8n4EBS.js +359 -0
  30. package/dist/{SavedBlocksPanels-C2s3q0pJ.js → SavedBlocksPanels-BE1N9rNZ.js} +7 -9
  31. package/dist/{SavedBlocksPickBar-BjcTiV87.js → SavedBlocksPickBar-Dwl94xhP.js} +14 -15
  32. package/dist/{TemplateSettings-BVBWpiDU.js → TemplateSettings-CS0f1Ues.js} +75 -76
  33. package/dist/{TestEmailModal-SyhO9bn3.js → TestEmailModal-DBD0X5nV.js} +54 -56
  34. package/dist/{TestEmailPanel-BDd2Rtav.js → TestEmailPanel-DaFjP9QK.js} +3 -5
  35. package/dist/{TitleEditor-pxD53y_l.js → TitleEditor-DSqtle77.js} +78 -79
  36. package/dist/{ToggleSwitch-D51U9cmR.js → ToggleSwitch-JykPyD_8.js} +5 -6
  37. package/dist/{Toolbar-CZSPZYbj.js → Toolbar-BZPFfKrf.js} +977 -985
  38. package/dist/{TplModal-DCzBzicE.js → TplModal-DLMssVlt.js} +16 -17
  39. package/dist/{VersionHistoryMenu-BQeWPT85.js → VersionHistoryMenu-BkbYUs0Q.js} +37 -38
  40. package/dist/{VersionHistoryPanels-BBm7YbRQ.js → VersionHistoryPanels-DP7HaYWv.js} +5 -7
  41. package/dist/{VersionPreviewBanner-DUGF0tUJ.js → VersionPreviewBanner-DECaBwLq.js} +11 -12
  42. package/dist/WrapperBlock-BsJv_Fiw.js +44 -0
  43. package/dist/{_plugin-vue_export-helper-B3ysoDQm.js → _plugin-vue_export-helper-Djzt4Yr7.js} +1 -2
  44. package/dist/{aiErrors-D5UOoYOt.js → aiErrors-C3QEMB0x.js} +3 -5
  45. package/dist/{aiImageContext-BH4Ss1h3.js → aiImageContext-BQ5mQ6B5.js} +2 -3
  46. package/dist/{aiRewritePreview-DLGM05Ge.js → aiRewritePreview-DlMyx6Si.js} +1 -2
  47. package/dist/{blockTypeIcons-NzaYvAI4.js → blockTypeIcons-BHjlPnPf.js} +23 -23
  48. package/dist/bundle-stats.json +6 -6
  49. package/dist/{ca-C7mTzW1r.js → ca-CD-Kt1qz.js} +1 -2
  50. package/dist/{ca-CYQH3J0b.js → ca-Cc6eL0ZS.js} +1 -2
  51. package/dist/cdn/chunks/{AiAltTextPopover-CQu0Q_ZX.js → AiAltTextPopover-SEEjkd-I.js} +24 -25
  52. package/dist/cdn/chunks/{AiAltTextPopover-CQu0Q_ZX.js.map → AiAltTextPopover-SEEjkd-I.js.map} +1 -1
  53. package/dist/cdn/chunks/{AiAltTextReview-CI2HbWfn.js → AiAltTextReview-BGLLSKLm.js} +43 -44
  54. package/dist/cdn/chunks/{AiAltTextReview-CI2HbWfn.js.map → AiAltTextReview-BGLLSKLm.js.map} +1 -1
  55. package/dist/cdn/chunks/{AiChatPanel-BYqn1bKu.js → AiChatPanel-DKDAaBNi.js} +129 -131
  56. package/dist/cdn/chunks/{AiChatPanel-BYqn1bKu.js.map → AiChatPanel-DKDAaBNi.js.map} +1 -1
  57. package/dist/cdn/chunks/{AiPanels-CIFKQv8Y.js → AiPanels-0wBarZSH.js} +5 -7
  58. package/dist/cdn/chunks/{AiPanels-CIFKQv8Y.js.map → AiPanels-0wBarZSH.js.map} +1 -1
  59. package/dist/cdn/chunks/{AiRewriteMenu-Bhh71zcc.js → AiRewriteMenu-qf-cfEpy.js} +52 -53
  60. package/dist/cdn/chunks/AiRewriteMenu-qf-cfEpy.js.map +1 -0
  61. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +34 -0
  62. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +1 -0
  63. package/dist/cdn/chunks/{BlockPreviewCanvas-D0--EQkP.js → BlockPreviewCanvas-DGBh6mqe.js} +22 -23
  64. package/dist/cdn/chunks/{BlockPreviewCanvas-D0--EQkP.js.map → BlockPreviewCanvas-DGBh6mqe.js.map} +1 -1
  65. package/dist/cdn/chunks/{CloudHeaderExtras-DaUU8P8R.js → CloudHeaderExtras-BMNK_F9p.js} +4 -5
  66. package/dist/cdn/chunks/{CloudHeaderExtras-DaUU8P8R.js.map → CloudHeaderExtras-BMNK_F9p.js.map} +1 -1
  67. package/dist/cdn/chunks/{CloudPanels-C3jsxo_f.js → CloudPanels-JMWIoVWh.js} +34 -35
  68. package/dist/cdn/chunks/{CloudPanels-C3jsxo_f.js.map → CloudPanels-JMWIoVWh.js.map} +1 -1
  69. package/dist/cdn/chunks/{CollaborationNotices-DjRI8gvs.js → CollaborationNotices-Bsf1rGW9.js} +13 -14
  70. package/dist/cdn/chunks/{CollaborationNotices-DjRI8gvs.js.map → CollaborationNotices-Bsf1rGW9.js.map} +1 -1
  71. package/dist/cdn/chunks/{CollaboratorBar-Dfzm6A9A.js → CollaboratorBar-CXByAoUz.js} +16 -17
  72. package/dist/cdn/chunks/{CollaboratorBar-Dfzm6A9A.js.map → CollaboratorBar-CXByAoUz.js.map} +1 -1
  73. package/dist/cdn/chunks/{CommentsPanel-CSO79OeX.js → CommentsPanel-DoJnKLXI.js} +4 -6
  74. package/dist/cdn/chunks/{CommentsPanel-CSO79OeX.js.map → CommentsPanel-DoJnKLXI.js.map} +1 -1
  75. package/dist/cdn/chunks/{CommentsSidebar-CCvplq1Z.js → CommentsSidebar-CUtgvdBC.js} +110 -110
  76. package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +1 -0
  77. package/dist/cdn/chunks/{CountdownBlock-C6USdwk3.js → CountdownBlock-BqRw147R.js} +19 -20
  78. package/dist/cdn/chunks/{CountdownBlock-C6USdwk3.js.map → CountdownBlock-BqRw147R.js.map} +1 -1
  79. package/dist/cdn/chunks/{CountdownToolbar-Cjud2Tos.js → CountdownToolbar-xobieKoU.js} +28 -29
  80. package/dist/cdn/chunks/{CountdownToolbar-Cjud2Tos.js.map → CountdownToolbar-xobieKoU.js.map} +1 -1
  81. package/dist/cdn/chunks/{IssuesPanel-BaWHPDxZ.js → IssuesPanel-C7LfxaAY.js} +76 -77
  82. package/dist/cdn/chunks/{IssuesPanel-BaWHPDxZ.js.map → IssuesPanel-C7LfxaAY.js.map} +1 -1
  83. package/dist/cdn/chunks/LoadingTrack-CZuLTazv.js +11 -0
  84. package/dist/cdn/chunks/{LoadingTrack-BIcL4NiY.js.map → LoadingTrack-CZuLTazv.js.map} +1 -1
  85. package/dist/cdn/chunks/{LogicTagInsertButton-CsL2JDOG.js → LogicTagInsertButton-BIi05UQu.js} +258 -265
  86. package/dist/cdn/chunks/{LogicTagInsertButton-CsL2JDOG.js.map → LogicTagInsertButton-BIi05UQu.js.map} +1 -1
  87. package/dist/cdn/chunks/{MediaEditModal-BuHCiyMu.js → MediaEditModal-Cpcod6_U.js} +152 -155
  88. package/dist/cdn/chunks/{MediaEditModal-BuHCiyMu.js.map → MediaEditModal-Cpcod6_U.js.map} +1 -1
  89. package/dist/cdn/chunks/{MediaPanels-DAgUf_T1.js → MediaPanels-BIdcW_1f.js} +4 -6
  90. package/dist/cdn/chunks/{MediaPanels-DAgUf_T1.js.map → MediaPanels-BIdcW_1f.js.map} +1 -1
  91. package/dist/cdn/chunks/{MergeTagInput-C8U-7LxL.js → MergeTagInput-BvWg8o5E.js} +35 -36
  92. package/dist/cdn/chunks/{MergeTagInput-C8U-7LxL.js.map → MergeTagInput-BvWg8o5E.js.map} +1 -1
  93. package/dist/cdn/chunks/{MergeTagModeToggle-Mm-p0A52.js → MergeTagModeToggle-BgKEVUtV.js} +28 -29
  94. package/dist/cdn/chunks/{MergeTagModeToggle-Mm-p0A52.js.map → MergeTagModeToggle-BgKEVUtV.js.map} +1 -1
  95. package/dist/cdn/chunks/{MergeTagTextarea-DuLScsWM.js → MergeTagTextarea-tBz8McZf.js} +33 -34
  96. package/dist/cdn/chunks/{MergeTagTextarea-DuLScsWM.js.map → MergeTagTextarea-tBz8McZf.js.map} +1 -1
  97. package/dist/cdn/chunks/{ParagraphEditor-CqSj6Ayz.js → ParagraphEditor-B3Rj_cWF.js} +197 -200
  98. package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +1 -0
  99. package/dist/cdn/chunks/{RestoreVersionDialog-CdA5osuA.js → RestoreVersionDialog-CjOdD2xj.js} +21 -22
  100. package/dist/cdn/chunks/{RestoreVersionDialog-CdA5osuA.js.map → RestoreVersionDialog-CjOdD2xj.js.map} +1 -1
  101. package/dist/cdn/chunks/{RichTextEditorContent-Q1d2xqBT.js → RichTextEditorContent-DNjR_sNN.js} +30 -31
  102. package/dist/cdn/chunks/{RichTextEditorContent-Q1d2xqBT.js.map → RichTextEditorContent-DNjR_sNN.js.map} +1 -1
  103. package/dist/cdn/chunks/{SaveBlockDialog-CijargAy.js → SaveBlockDialog-CUhpawq0.js} +77 -78
  104. package/dist/cdn/chunks/{SaveBlockDialog-CijargAy.js.map → SaveBlockDialog-CUhpawq0.js.map} +1 -1
  105. package/dist/cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js +356 -0
  106. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DtOz_X5S.js.map → SavedBlocksBrowserModal-BPYcRoGa.js.map} +1 -1
  107. package/dist/cdn/chunks/{SavedBlocksPanels-BowyED5h.js → SavedBlocksPanels-C6--Bc81.js} +4 -6
  108. package/dist/cdn/chunks/{SavedBlocksPanels-BowyED5h.js.map → SavedBlocksPanels-C6--Bc81.js.map} +1 -1
  109. package/dist/cdn/chunks/{SavedBlocksPickBar-BPRaJBv3.js → SavedBlocksPickBar-DUavxpbU.js} +16 -17
  110. package/dist/cdn/chunks/{SavedBlocksPickBar-BPRaJBv3.js.map → SavedBlocksPickBar-DUavxpbU.js.map} +1 -1
  111. package/dist/cdn/chunks/{TemplateSettings-ByZeBO34.js → TemplateSettings-CKtI-dof.js} +72 -73
  112. package/dist/cdn/chunks/{TemplateSettings-ByZeBO34.js.map → TemplateSettings-CKtI-dof.js.map} +1 -1
  113. package/dist/cdn/chunks/{TestEmailModal-BUVTj3Ic.js → TestEmailModal-CDQTgESD.js} +68 -70
  114. package/dist/cdn/chunks/{TestEmailModal-BUVTj3Ic.js.map → TestEmailModal-CDQTgESD.js.map} +1 -1
  115. package/dist/cdn/chunks/{TestEmailPanel-BxutYoWg.js → TestEmailPanel-CcUpEpAn.js} +4 -6
  116. package/dist/cdn/chunks/{TestEmailPanel-BxutYoWg.js.map → TestEmailPanel-CcUpEpAn.js.map} +1 -1
  117. package/dist/cdn/chunks/{TitleEditor-Ccv6uoTz.js → TitleEditor-Cob7RLyK.js} +71 -72
  118. package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +1 -0
  119. package/dist/cdn/chunks/{ToggleSwitch-Ctdmj621.js → ToggleSwitch-J7Vwhvha.js} +6 -7
  120. package/dist/cdn/chunks/{ToggleSwitch-Ctdmj621.js.map → ToggleSwitch-J7Vwhvha.js.map} +1 -1
  121. package/dist/cdn/chunks/{Toolbar-DoprRgTn.js → Toolbar-CdpsvNOR.js} +977 -985
  122. package/dist/cdn/chunks/{Toolbar-DoprRgTn.js.map → Toolbar-CdpsvNOR.js.map} +1 -1
  123. package/dist/cdn/chunks/TplModal-CFPDgbwQ.js +51 -0
  124. package/dist/cdn/chunks/{TplModal-BXQzmsJX.js.map → TplModal-CFPDgbwQ.js.map} +1 -1
  125. package/dist/cdn/chunks/{VersionHistoryMenu-BF2fNCvq.js → VersionHistoryMenu-BYlLRvRJ.js} +34 -35
  126. package/dist/cdn/chunks/{VersionHistoryMenu-BF2fNCvq.js.map → VersionHistoryMenu-BYlLRvRJ.js.map} +1 -1
  127. package/dist/cdn/chunks/{VersionHistoryPanels-Dal0Uk69.js → VersionHistoryPanels-C6SOVoiT.js} +4 -6
  128. package/dist/cdn/chunks/{VersionHistoryPanels-Dal0Uk69.js.map → VersionHistoryPanels-C6SOVoiT.js.map} +1 -1
  129. package/dist/cdn/chunks/{VersionPreviewBanner-BaGcn-b1.js → VersionPreviewBanner-Dvg0ZfAW.js} +12 -13
  130. package/dist/cdn/chunks/{VersionPreviewBanner-BaGcn-b1.js.map → VersionPreviewBanner-Dvg0ZfAW.js.map} +1 -1
  131. package/dist/cdn/chunks/{WrapperBlock-DkQJtLz0.js → WrapperBlock-C7Md56IT.js} +14 -15
  132. package/dist/cdn/chunks/{WrapperBlock-DkQJtLz0.js.map → WrapperBlock-C7Md56IT.js.map} +1 -1
  133. package/dist/cdn/chunks/{_plugin-vue_export-helper-B3ysoDQm.js → _plugin-vue_export-helper-Djzt4Yr7.js} +1 -2
  134. package/dist/cdn/chunks/{aiErrors-D5UOoYOt.js → aiErrors-C3QEMB0x.js} +4 -6
  135. package/dist/cdn/chunks/{aiErrors-D5UOoYOt.js.map → aiErrors-C3QEMB0x.js.map} +1 -1
  136. package/dist/cdn/chunks/{aiImageContext-BH4Ss1h3.js → aiImageContext-BQ5mQ6B5.js} +3 -4
  137. package/dist/cdn/chunks/{aiImageContext-BH4Ss1h3.js.map → aiImageContext-BQ5mQ6B5.js.map} +1 -1
  138. package/dist/cdn/chunks/{aiRewritePreview-DLGM05Ge.js → aiRewritePreview-DlMyx6Si.js} +2 -3
  139. package/dist/cdn/chunks/{aiRewritePreview-DLGM05Ge.js.map → aiRewritePreview-DlMyx6Si.js.map} +1 -1
  140. package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js +21 -0
  141. package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js.map +1 -0
  142. package/dist/cdn/chunks/{ca-C7mTzW1r.js → ca-CD-Kt1qz.js} +2 -3
  143. package/dist/cdn/chunks/{ca-C7mTzW1r.js.map → ca-CD-Kt1qz.js.map} +1 -1
  144. package/dist/cdn/chunks/{ca-CYQH3J0b.js → ca-Cc6eL0ZS.js} +2 -3
  145. package/dist/cdn/chunks/{ca-CYQH3J0b.js.map → ca-Cc6eL0ZS.js.map} +1 -1
  146. package/dist/cdn/chunks/{createCloudRuntime-DpBWhrv3.js → createCloudRuntime-Cth2JCEh.js} +58 -77
  147. package/dist/cdn/chunks/{createCloudRuntime-DpBWhrv3.js.map → createCloudRuntime-Cth2JCEh.js.map} +1 -1
  148. package/dist/cdn/chunks/{de-DBOTcDj2.js → de-6M4JoHoD.js} +2 -3
  149. package/dist/cdn/chunks/{de-DBOTcDj2.js.map → de-6M4JoHoD.js.map} +1 -1
  150. package/dist/cdn/chunks/{de-DNuYQTmS.js → de-CeFJ6wbM.js} +2 -3
  151. package/dist/cdn/chunks/{de-DNuYQTmS.js.map → de-CeFJ6wbM.js.map} +1 -1
  152. package/dist/cdn/chunks/{de-JvCTMJPy.js → de-DtrXVcuY.js} +2 -3
  153. package/dist/cdn/chunks/{de-JvCTMJPy.js.map → de-DtrXVcuY.js.map} +1 -1
  154. package/dist/cdn/chunks/{dist-Bo8Thh8v.js → dist-8ym3y-pH.js} +44 -45
  155. package/dist/cdn/chunks/{dist-Bo8Thh8v.js.map → dist-8ym3y-pH.js.map} +1 -1
  156. package/dist/{dist-DI4_YSnG.js → cdn/chunks/dist-BMzNabtD.js} +107 -109
  157. package/dist/cdn/chunks/{dist-S-rLGqax.js.map → dist-BMzNabtD.js.map} +1 -1
  158. package/dist/cdn/chunks/dompurify-JVtr5-B1.js +872 -0
  159. package/dist/cdn/chunks/dompurify-JVtr5-B1.js.map +1 -0
  160. package/dist/cdn/chunks/{draggable-DZ0gwUJ6.js → draggable-Du8AUMFT.js} +654 -654
  161. package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +1 -0
  162. package/dist/{editor-modal-Bzhl-PgI.js → cdn/chunks/editor-modal-CyCe560f.js} +893 -979
  163. package/dist/cdn/chunks/{editor-modal-CI6EfeMd.js.map → editor-modal-CyCe560f.js.map} +1 -1
  164. package/dist/cdn/chunks/{emojiData-6m0DBh7O.js → emojiData-CBNuCfum.js} +2 -3
  165. package/dist/cdn/chunks/{emojiData-6m0DBh7O.js.map → emojiData-CBNuCfum.js.map} +1 -1
  166. package/dist/cdn/chunks/{en-CW71OK66.js → en-D14i5nFh.js} +2 -3
  167. package/dist/cdn/chunks/{en-CW71OK66.js.map → en-D14i5nFh.js.map} +1 -1
  168. package/dist/cdn/chunks/{en-CDhWRrF_.js → en-FzUuJ8HW.js} +2 -3
  169. package/dist/cdn/chunks/{en-CDhWRrF_.js.map → en-FzUuJ8HW.js.map} +1 -1
  170. package/dist/cdn/chunks/en-TIqv4ag3.js +1 -0
  171. package/dist/cdn/chunks/{es-CAv-Vldw.js → es-Dw_h7Oll.js} +2 -3
  172. package/dist/cdn/chunks/{es-CAv-Vldw.js.map → es-Dw_h7Oll.js.map} +1 -1
  173. package/dist/cdn/chunks/{es-DdK7zQfi.js → es-zDacbMhs.js} +2 -3
  174. package/dist/cdn/chunks/{es-DdK7zQfi.js.map → es-zDacbMhs.js.map} +1 -1
  175. package/dist/cdn/chunks/{extensions-taJTZlLK.js → extensions-CFF2KWy-.js} +60 -65
  176. package/dist/cdn/chunks/{extensions-taJTZlLK.js.map → extensions-CFF2KWy-.js.map} +1 -1
  177. package/dist/cdn/chunks/{formatAbsoluteDateTime-DMmop3C-.js → formatAbsoluteDateTime-Ck2_zXra.js} +2 -3
  178. package/dist/cdn/chunks/{formatAbsoluteDateTime-DMmop3C-.js.map → formatAbsoluteDateTime-Ck2_zXra.js.map} +1 -1
  179. package/dist/cdn/chunks/{formatRelativeTime-CtUU-QZ8.js → formatRelativeTime-BTD8Ktt-.js} +1 -2
  180. package/dist/cdn/chunks/{formatRelativeTime-CtUU-QZ8.js.map → formatRelativeTime-BTD8Ktt-.js.map} +1 -1
  181. package/dist/cdn/chunks/{fr-DVPtxpR6.js → fr-BJaeKu_8.js} +2 -3
  182. package/dist/cdn/chunks/{fr-DVPtxpR6.js.map → fr-BJaeKu_8.js.map} +1 -1
  183. package/dist/cdn/chunks/{fr-Dz5Bgb7-.js → fr-CSgYtjOd.js} +2 -3
  184. package/dist/cdn/chunks/{fr-Dz5Bgb7-.js.map → fr-CSgYtjOd.js.map} +1 -1
  185. package/dist/cdn/chunks/{htmlparser-CDRsn-gn.js → htmlparser-hu3YnNQU.js} +6 -11
  186. package/dist/cdn/chunks/{htmlparser-CDRsn-gn.js.map → htmlparser-hu3YnNQU.js.map} +1 -1
  187. package/dist/cdn/chunks/{icons-DNX6StSs.js → icons-okSPsLOa.js} +111 -114
  188. package/dist/cdn/chunks/icons-okSPsLOa.js.map +1 -0
  189. package/dist/cdn/chunks/{ja-Di-zJiT8.js → ja-B7H3ID8O.js} +2 -3
  190. package/dist/cdn/chunks/{ja-Di-zJiT8.js.map → ja-B7H3ID8O.js.map} +1 -1
  191. package/dist/cdn/chunks/{ja-dcWzjStz.js → ja-Cu2HdYaK.js} +2 -3
  192. package/dist/cdn/chunks/{ja-dcWzjStz.js.map → ja-Cu2HdYaK.js.map} +1 -1
  193. package/dist/cdn/chunks/{keys-BTpmg2Tt.js → keys-CUj6UA38.js} +3 -4
  194. package/dist/cdn/chunks/{keys-BTpmg2Tt.js.map → keys-CUj6UA38.js.map} +1 -1
  195. package/dist/{liquid.browser-Ct2-EezB.js → cdn/chunks/liquid.browser-rubac0VA.js} +993 -937
  196. package/dist/cdn/chunks/liquid.browser-rubac0VA.js.map +1 -0
  197. package/dist/cdn/chunks/{logger-Tj0RPskW.js → logger-CqQTfJGx.js} +2 -3
  198. package/dist/cdn/chunks/{logger-Tj0RPskW.js.map → logger-CqQTfJGx.js.map} +1 -1
  199. package/dist/cdn/chunks/{nl-CvVuHYFL.js → nl-176ySmc5.js} +2 -3
  200. package/dist/cdn/chunks/{nl-CvVuHYFL.js.map → nl-176ySmc5.js.map} +1 -1
  201. package/dist/cdn/chunks/{nl-LZNqQgE4.js → nl-1Ai2NykB.js} +2 -3
  202. package/dist/cdn/chunks/{nl-LZNqQgE4.js.map → nl-1Ai2NykB.js.map} +1 -1
  203. package/dist/cdn/chunks/{normalizeMergeTagMarkup-DyePIGqu.js → normalizeMergeTagMarkup-C_KlfSW4.js} +3 -4
  204. package/dist/cdn/chunks/{normalizeMergeTagMarkup-DyePIGqu.js.map → normalizeMergeTagMarkup-C_KlfSW4.js.map} +1 -1
  205. package/dist/cdn/chunks/{preRenderCustomBlocks-Dc-QLntG.js → preRenderCustomBlocks-BcXIz7oJ.js} +6 -7
  206. package/dist/cdn/chunks/{preRenderCustomBlocks-Dc-QLntG.js.map → preRenderCustomBlocks-BcXIz7oJ.js.map} +1 -1
  207. package/dist/cdn/chunks/{pt-BR-CHM-ZKvE.js → pt-BR-Bp92Fc6J.js} +2 -3
  208. package/dist/cdn/chunks/{pt-BR-CHM-ZKvE.js.map → pt-BR-Bp92Fc6J.js.map} +1 -1
  209. package/dist/cdn/chunks/{pt-BR-D6P_mNwA.js → pt-BR-CIbp__Z7.js} +2 -3
  210. package/dist/cdn/chunks/{pt-BR-D6P_mNwA.js.map → pt-BR-CIbp__Z7.js.map} +1 -1
  211. package/dist/cdn/chunks/{pt-BR-ZhO4vgyq.js → pt-BR-dDlTwX18.js} +2 -3
  212. package/dist/cdn/chunks/{pt-BR-ZhO4vgyq.js.map → pt-BR-dDlTwX18.js.map} +1 -1
  213. package/dist/cdn/chunks/{pusher-Cs4GGEtd.js → pusher-x9rNqzon.js} +3 -4
  214. package/dist/cdn/chunks/{pusher-Cs4GGEtd.js.map → pusher-x9rNqzon.js.map} +1 -1
  215. package/dist/cdn/chunks/{readableTextColor-f8Kykfnh.js → readableTextColor-BfZUGnVj.js} +2 -3
  216. package/dist/cdn/chunks/{readableTextColor-f8Kykfnh.js.map → readableTextColor-BfZUGnVj.js.map} +1 -1
  217. package/dist/cdn/chunks/{rolldown-runtime-Y_bBpyJl.js → rolldown-runtime-QGRDbDUS.js} +1 -2
  218. package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js +72 -0
  219. package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js.map +1 -0
  220. package/dist/cdn/chunks/{socialIcons-BBvsTwCV.js → socialIcons-jsTDmkbb.js} +608 -632
  221. package/dist/cdn/chunks/{socialIcons-BBvsTwCV.js.map → socialIcons-jsTDmkbb.js.map} +1 -1
  222. package/dist/cdn/chunks/src-C7bkofBL.js +647 -0
  223. package/dist/cdn/chunks/src-C7bkofBL.js.map +1 -0
  224. package/dist/cdn/chunks/{src-Bs_yxk3h.js → src-DEd87i_U.js} +502 -537
  225. package/dist/cdn/chunks/src-DEd87i_U.js.map +1 -0
  226. package/dist/cdn/chunks/{src-BNFnxfrA.js → src-DwWrYnUj.js} +188 -171
  227. package/dist/cdn/chunks/src-DwWrYnUj.js.map +1 -0
  228. package/dist/cdn/chunks/{styleConstants-v1dNKgJf.js → styleConstants-B8xVRiwX.js} +2 -3
  229. package/dist/cdn/chunks/{styleConstants-v1dNKgJf.js.map → styleConstants-B8xVRiwX.js.map} +1 -1
  230. package/dist/cdn/chunks/{templateSettingsFields-YCFVBVYh.js → templateSettingsFields-cjlP-jdw.js} +2 -3
  231. package/dist/cdn/chunks/{templateSettingsFields-YCFVBVYh.js.map → templateSettingsFields-cjlP-jdw.js.map} +1 -1
  232. package/dist/cdn/chunks/{tiptap-CtVrAViq.js → tiptap-CbiTlECY.js} +3402 -3278
  233. package/dist/cdn/chunks/tiptap-CbiTlECY.js.map +1 -0
  234. package/dist/cdn/chunks/{useCloudI18n-AVXhzbhQ.js → useCloudI18n-DY8_-ETE.js} +4 -5
  235. package/dist/cdn/chunks/{useCloudI18n-AVXhzbhQ.js.map → useCloudI18n-DY8_-ETE.js.map} +1 -1
  236. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +2582 -0
  237. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +1 -0
  238. package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +9 -0
  239. package/dist/cdn/chunks/{useEditorRoot-CR5GjJD6.js.map → useEditorRoot-vjZJwKrV.js.map} +1 -1
  240. package/dist/cdn/chunks/{useI18n-CbVubQhM.js → useI18n-D8pY4LTq.js} +4 -5
  241. package/dist/cdn/chunks/{useI18n-CbVubQhM.js.map → useI18n-D8pY4LTq.js.map} +1 -1
  242. package/dist/{useLogicTag-DKLZ1T9H.js → cdn/chunks/useLogicTag-DBJDtpKA.js} +6 -5
  243. package/dist/cdn/chunks/{useLogicTag-B49Nc53Y.js.map → useLogicTag-DBJDtpKA.js.map} +1 -1
  244. package/dist/{useMergeTag-Bhdx7AKk.js → cdn/chunks/useMergeTag-B-aG--s1.js} +8 -7
  245. package/dist/cdn/chunks/{useMergeTag-B0KryMj8.js.map → useMergeTag-B-aG--s1.js.map} +1 -1
  246. package/dist/{usePopoverPosition-BZea45XK.js → cdn/chunks/usePopoverPosition-DSMtmu2W.js} +8 -10
  247. package/dist/cdn/chunks/{usePopoverPosition-C829ps5i.js.map → usePopoverPosition-DSMtmu2W.js.map} +1 -1
  248. package/dist/cdn/chunks/{useScrollToBlock-CAwvulog.js → useScrollToBlock-vjQ0fe-L.js} +5 -7
  249. package/dist/cdn/chunks/{useScrollToBlock-CAwvulog.js.map → useScrollToBlock-vjQ0fe-L.js.map} +1 -1
  250. package/dist/cdn/chunks/{withCurrentFont-DFPXeVfG.js → withCurrentFont-hZTvYBHO.js} +3 -4
  251. package/dist/cdn/chunks/{withCurrentFont-DFPXeVfG.js.map → withCurrentFont-hZTvYBHO.js.map} +1 -1
  252. package/dist/cdn/editor.css +1 -1
  253. package/dist/cdn/editor.js +1433 -1454
  254. package/dist/cdn/editor.js.map +1 -1
  255. package/dist/{check-yYsp5Xpk.js → check-BZ8o0eet.js} +1 -2
  256. package/dist/{chevron-down-DTmD06_j.js → chevron-down-DfAAfILv.js} +1 -2
  257. package/dist/{chevron-right-BSeYZOxc.js → chevron-right-Bk4mGdr7.js} +1 -2
  258. package/dist/{chevron-up-BOApwrxi.js → chevron-up-MhUf_azW.js} +1 -2
  259. package/dist/{circle-alert-BMszY8im.js → circle-alert-CShJwVFv.js} +1 -2
  260. package/dist/{clock-HADxnl6-.js → clock-CTfD6OCt.js} +1 -2
  261. package/dist/{createCloudRuntime-DVQI_ReU.js → createCloudRuntime-DCgO4A1r.js} +31 -37
  262. package/dist/{createLucideIcon-0lYYH3EW.js → createLucideIcon-CvhTA2KG.js} +6 -11
  263. package/dist/{de-DBOTcDj2.js → de-6M4JoHoD.js} +1 -2
  264. package/dist/{de-DNuYQTmS.js → de-CeFJ6wbM.js} +1 -2
  265. package/dist/{de-JvCTMJPy.js → de-DtrXVcuY.js} +1 -2
  266. package/dist/{dist-BC-ZEYLd.js → dist-BF5zEHop.js} +2 -3
  267. package/dist/{dist-CyBwSiAa.js → dist-BS5uKktL.js} +2 -3
  268. package/dist/{cdn/chunks/dist-S-rLGqax.js → dist-ByCWA2Tv.js} +101 -101
  269. package/dist/{dist-DtOF3bDW.js → dist-CKi_npZM.js} +378 -343
  270. package/dist/{dist-C7EtxNCb.js → dist-CVy-7PHQ.js} +55 -56
  271. package/dist/{dist-Cr7RPxI9.js → dist-CWSG7Kj0.js} +478 -461
  272. package/dist/{dist-DXyGqIDE.js → dist-Cy8I5scI.js} +2 -3
  273. package/dist/{dist-C_dV9QAx.js → dist-D6cMdrfG.js} +133 -133
  274. package/dist/{dist-DVNjPKsH.js → dist-D6fZec6r.js} +3 -4
  275. package/dist/{dist-CuLwJF7H.js → dist-Dd5MU2Ev.js} +23 -14
  276. package/dist/dist-DyFArF_G.js +4 -0
  277. package/dist/{dist-DBxgrOeo.js → dist-V7W1UhVr.js} +1882 -1792
  278. package/dist/{dist-DPcf6XZ8.js → dist-p3wymUDt.js} +2 -3
  279. package/dist/dist-pA3ooG6N.js +4 -0
  280. package/dist/{dist-3HpYixwF.js → dist-txQLT2sF.js} +173 -161
  281. package/dist/{cdn/chunks/editor-modal-CI6EfeMd.js → editor-modal-zaZHcmlO.js} +915 -859
  282. package/dist/{emojiData-6m0DBh7O.js → emojiData-CBNuCfum.js} +1 -2
  283. package/dist/{en-CW71OK66.js → en-D14i5nFh.js} +1 -2
  284. package/dist/en-Db76vJbY.js +1 -0
  285. package/dist/{en-CDhWRrF_.js → en-FzUuJ8HW.js} +1 -2
  286. package/dist/{es-CAv-Vldw.js → es-Dw_h7Oll.js} +1 -2
  287. package/dist/{es-DdK7zQfi.js → es-zDacbMhs.js} +1 -2
  288. package/dist/{extensions-CdyweA50.js → extensions-fo_c-vqf.js} +82 -91
  289. package/dist/{eye-DWkSvYpj.js → eye-7W4t5e0Q.js} +1 -2
  290. package/dist/{formatAbsoluteDateTime-DMmop3C-.js → formatAbsoluteDateTime-Ck2_zXra.js} +1 -2
  291. package/dist/{formatRelativeTime-CtUU-QZ8.js → formatRelativeTime-BTD8Ktt-.js} +0 -1
  292. package/dist/{fr-DVPtxpR6.js → fr-BJaeKu_8.js} +1 -2
  293. package/dist/{fr-Dz5Bgb7-.js → fr-CSgYtjOd.js} +1 -2
  294. package/dist/{image-DesWjcZ4.js → image-BDiRFzSd.js} +1 -2
  295. package/dist/index.d.ts +6 -6
  296. package/dist/{info-ClWJGoZy.js → info-Cxi3-Kh9.js} +1 -2
  297. package/dist/{ja-Di-zJiT8.js → ja-B7H3ID8O.js} +1 -2
  298. package/dist/{ja-dcWzjStz.js → ja-Cu2HdYaK.js} +1 -2
  299. package/dist/{keys-Zd9KWRD1.js → keys-BgRERHzu.js} +2 -3
  300. package/dist/{link-BqRicFTA.js → link-ju_2Cmir.js} +1 -2
  301. package/dist/{cdn/chunks/liquid.browser-Bbt17cVz.js → liquid.browser-DUXEekoN.js} +991 -939
  302. package/dist/{list-bojQr9bn.js → list-DYZJf0aZ.js} +1 -2
  303. package/dist/{loader-circle-B2B8LbUu.js → loader-circle-BZRD0a4I.js} +1 -2
  304. package/dist/{logger-k9Nbj3Cp.js → logger-BOu7oEtk.js} +1 -2
  305. package/dist/{message-circle-BEuiNsyZ.js → message-circle-DuEw4Zfx.js} +1 -2
  306. package/dist/{nl-CvVuHYFL.js → nl-176ySmc5.js} +1 -2
  307. package/dist/{nl-LZNqQgE4.js → nl-1Ai2NykB.js} +1 -2
  308. package/dist/{normalizeMergeTagMarkup-P6SUBuPv.js → normalizeMergeTagMarkup-CELnOlgK.js} +30 -31
  309. package/dist/{package-DCROB4aM.js → package-CePMr2kK.js} +1 -2
  310. package/dist/{pencil-CEotCKbf.js → pencil-D3aFCL7c.js} +1 -2
  311. package/dist/{preRenderCustomBlocks-D8rr61_z.js → preRenderCustomBlocks--_xc0XK3.js} +4 -5
  312. package/dist/{pt-BR-CHM-ZKvE.js → pt-BR-Bp92Fc6J.js} +1 -2
  313. package/dist/{pt-BR-D6P_mNwA.js → pt-BR-CIbp__Z7.js} +1 -2
  314. package/dist/{pt-BR-ZhO4vgyq.js → pt-BR-dDlTwX18.js} +1 -2
  315. package/dist/{readableTextColor-f8Kykfnh.js → readableTextColor-BfZUGnVj.js} +1 -2
  316. package/dist/{refresh-cw-C6M2mHNC.js → refresh-cw-xnro7_Sk.js} +1 -2
  317. package/dist/{rolldown-runtime-Dy4uBu1J.js → rolldown-runtime-CGnMp29N.js} +1 -2
  318. package/dist/{runtime-dom.esm-bundler-B8WCZWUm.js → runtime-dom.esm-bundler-BURR-bj5.js} +121 -122
  319. package/dist/sanitizeHtml-BzfzpYJY.js +942 -0
  320. package/dist/{search-Cy99zPYf.js → search-CDrstRBv.js} +1 -2
  321. package/dist/{send-BDLJFsf3.js → send-DROkPOaX.js} +1 -2
  322. package/dist/{smartphone-CVvQaNA4.js → smartphone-Bx6u_tjn.js} +1 -2
  323. package/dist/{socialIcons-Dd-jRiVe.js → socialIcons-D7MGsg0d.js} +553 -564
  324. package/dist/{sparkles-Ce0Qz0ox.js → sparkles-CdaTtvoz.js} +1 -2
  325. package/dist/{square-BWlolnXe.js → square-BbCROH_f.js} +1 -2
  326. package/dist/style.css +1 -1
  327. package/dist/{styleConstants-v1dNKgJf.js → styleConstants-B8xVRiwX.js} +1 -2
  328. package/dist/{templateSettingsFields-YCFVBVYh.js → templateSettingsFields-cjlP-jdw.js} +1 -2
  329. package/dist/templatical-editor.js +1231 -1251
  330. package/dist/{text-align-start-D1V5gPTy.js → text-align-start-CGacJ9Vw.js} +1 -2
  331. package/dist/{trash-CZfiUFmw.js → trash-DxCd7zIy.js} +1 -2
  332. package/dist/{triangle-alert-CFDzyFC7.js → triangle-alert-7_oaitpf.js} +1 -2
  333. package/dist/{upload-BJfvdIrD.js → upload-DuFEOi_0.js} +1 -2
  334. package/dist/{useCloudI18n-Dcjua65H.js → useCloudI18n-DEMmUKuO.js} +3 -4
  335. package/dist/{useEditorCore-BTLeAVlM.js → useEditorCore-BSo2sSID.js} +1568 -1573
  336. package/dist/useEditorRoot-BMcoCLBx.js +7 -0
  337. package/dist/{useI18n-BdoY7xDE.js → useI18n-BBrHTdu8.js} +3 -4
  338. package/dist/{cdn/chunks/useLogicTag-B49Nc53Y.js → useLogicTag-ZPC39rfH.js} +4 -7
  339. package/dist/{cdn/chunks/useMergeTag-B0KryMj8.js → useMergeTag-BQ4qqWpQ.js} +6 -9
  340. package/dist/{cdn/chunks/usePopoverPosition-C829ps5i.js → usePopoverPosition-DV1PxL66.js} +6 -12
  341. package/dist/{useScrollToBlock-FmNMALM_.js → useScrollToBlock-BSyAV4pk.js} +4 -6
  342. package/dist/{vue.runtime.esm-bundler-DgFJ6GPG.js → vue.runtime.esm-bundler-CnEeTfhs.js} +1001 -1002
  343. package/dist/{withCurrentFont-BATJHNve.js → withCurrentFont-B22FXAF5.js} +2 -3
  344. package/dist/{x-CZ0Js0hA.js → x-BpfG7v9g.js} +1 -2
  345. package/package.json +26 -24
  346. package/dist/BlockIssueBadge-CKwZ1Vgn.js +0 -34
  347. package/dist/CommentsSidebar-Ca3DyFOX.js +0 -500
  348. package/dist/IssuesPanel-C8nMUccy.js +0 -360
  349. package/dist/SavedBlocksBrowserModal-wnkvxpm_.js +0 -360
  350. package/dist/WrapperBlock-BO619LAb.js +0 -45
  351. package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js.map +0 -1
  352. package/dist/cdn/chunks/BlockIssueBadge-DAn2vsMJ.js +0 -35
  353. package/dist/cdn/chunks/BlockIssueBadge-DAn2vsMJ.js.map +0 -1
  354. package/dist/cdn/chunks/CommentsSidebar-CCvplq1Z.js.map +0 -1
  355. package/dist/cdn/chunks/LoadingTrack-BIcL4NiY.js +0 -12
  356. package/dist/cdn/chunks/ParagraphEditor-CqSj6Ayz.js.map +0 -1
  357. package/dist/cdn/chunks/SavedBlocksBrowserModal-DtOz_X5S.js +0 -357
  358. package/dist/cdn/chunks/TitleEditor-Ccv6uoTz.js.map +0 -1
  359. package/dist/cdn/chunks/TplModal-BXQzmsJX.js +0 -52
  360. package/dist/cdn/chunks/blockTypeIcons-ikZAmd6U.js +0 -22
  361. package/dist/cdn/chunks/blockTypeIcons-ikZAmd6U.js.map +0 -1
  362. package/dist/cdn/chunks/draggable-DZ0gwUJ6.js.map +0 -1
  363. package/dist/cdn/chunks/en-ifvu6oPv.js +0 -1
  364. package/dist/cdn/chunks/icons-DNX6StSs.js.map +0 -1
  365. package/dist/cdn/chunks/liquid.browser-Bbt17cVz.js.map +0 -1
  366. package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js +0 -62
  367. package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js.map +0 -1
  368. package/dist/cdn/chunks/src-BNFnxfrA.js.map +0 -1
  369. package/dist/cdn/chunks/src-Bs_yxk3h.js.map +0 -1
  370. package/dist/cdn/chunks/src-YGkzYyu0.js +0 -649
  371. package/dist/cdn/chunks/src-YGkzYyu0.js.map +0 -1
  372. package/dist/cdn/chunks/tiptap-CtVrAViq.js.map +0 -1
  373. package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js +0 -2586
  374. package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js.map +0 -1
  375. package/dist/cdn/chunks/useEditorRoot-CR5GjJD6.js +0 -10
  376. package/dist/dist-BPFcLKTw.js +0 -5
  377. package/dist/dist-D7Yj7E-F.js +0 -5
  378. package/dist/en-DwV15ltA.js +0 -1
  379. package/dist/sanitizeRichTextHtml-DeISfLFr.js +0 -60
  380. package/dist/useEditorRoot-DUy67lJu.js +0 -8
@@ -1,14 +1,14 @@
1
- import { $ as e, A as t, C as n, D as r, I as i, J as a, P as o, T as s, U as c, X as l, _ as u, b as d, c as f, dt as p, f as m, g as h, h as g, l as _, lt as v, m as y, n as b, ot as x, p as S, q as C, r as w, u as T, ut as E, x as D } from "./draggable-DZ0gwUJ6.js";
2
- import { c as O, i as k, s as A, u as j } from "./src-BNFnxfrA.js";
3
- import { t as ee } from "./dist-S-rLGqax.js";
4
- import { J as te, Y as M, Z as ne, d as re } from "./keys-BTpmg2Tt.js";
5
- import { t as N } from "./useI18n-CbVubQhM.js";
6
- import { a as P, i as ie, n as ae, o as oe, r as se, t as ce } from "./usePopoverPosition-C829ps5i.js";
7
- import { Bt as le, G as F, N as I, t as L } from "./icons-DNX6StSs.js";
8
- import { t as R } from "./useMergeTag-B0KryMj8.js";
9
- import { t as ue } from "./useLogicTag-B49Nc53Y.js";
10
- import { u as de } from "./styleConstants-v1dNKgJf.js";
11
- //#region ../../node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/math.js
1
+ import { A as e, C as t, D as n, I as r, J as i, P as a, T as o, W as s, Y as c, Z as l, _ as u, b as d, c as f, dt as p, et as m, f as h, ft as g, g as _, h as v, l as y, m as b, n as x, p as S, r as C, st as w, u as T, ut as E, x as D } from "./draggable-Du8AUMFT.js";
2
+ import { c as O, i as k, s as A, u as j } from "./src-DwWrYnUj.js";
3
+ import { t as ee } from "./dist-BMzNabtD.js";
4
+ import { J as te, Y as M, Z as ne, d as re } from "./keys-CUj6UA38.js";
5
+ import { t as N } from "./useI18n-D8pY4LTq.js";
6
+ import { a as P, i as ie, n as ae, o as oe, r as se, t as ce } from "./usePopoverPosition-DSMtmu2W.js";
7
+ import { G as le, N as F, Vt as I, t as L } from "./icons-okSPsLOa.js";
8
+ import { t as R } from "./useMergeTag-B-aG--s1.js";
9
+ import { t as ue } from "./useLogicTag-DBJDtpKA.js";
10
+ import { u as de } from "./styleConstants-B8xVRiwX.js";
11
+ // ../../node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/math.js
12
12
  var z = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, B = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n, V = (e) => me(H(e)), H = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
13
13
  r: parseInt(e[0] + e[0], 16),
14
14
  g: parseInt(e[1] + e[1], 16),
@@ -242,8 +242,7 @@ var z = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, B = (e, t = 0, n = 10 **
242
242
  }
243
243
  };
244
244
  customElements.define("hex-color-picker", class extends Ne {});
245
- //#endregion
246
- //#region src/components/ColorPicker.vue?vue&type=script&setup=true&lang.ts
245
+ // src/components/ColorPicker.vue?vue&type=script&setup=true&lang.ts
247
246
  var Pe = [
248
247
  "disabled",
249
248
  "aria-label",
@@ -280,7 +279,7 @@ var Pe = [
280
279
  "placeholder",
281
280
  "disabled",
282
281
  "aria-label"
283
- ], Ke = ["aria-label", "title"], qe = /* @__PURE__ */ n({
282
+ ], Ke = ["aria-label", "title"], qe = /* @__PURE__ */ t({
284
283
  __name: "ColorPicker",
285
284
  props: {
286
285
  modelValue: {},
@@ -307,17 +306,17 @@ var Pe = [
307
306
  }
308
307
  },
309
308
  emits: ["update:modelValue"],
310
- setup(t, { emit: n }) {
311
- let a = t, s = n, { t: l } = N(), C = e(!1), w = e(), O = e(), k = e(!1);
312
- ee(w, () => {
313
- C.value = !1;
309
+ setup(e, { emit: t }) {
310
+ let i = e, o = t, { t: c } = N(), l = m(!1), C = m(), O = m(), k = m(!1);
311
+ ee(C, () => {
312
+ l.value = !1;
314
313
  }, { ignore: [O] });
315
- let A = S(() => !a.modelValue), j = S(() => a.modelValue.trim().toLowerCase() === "transparent"), M = S(() => ie(a.modelValue)), le = S(() => (a.modelValue ? P(a.modelValue) : null) || (P(a.seedColor) ?? "#ffffff")), F = S(() => !a.disabled && !A.value), I = r(re, oe), R = S(() => [...new Set(a.presets ?? I.presets)]), ue = S(() => a.allowCustom ?? I.allowCustom), z = S(() => R.value.length > 0), B = S(() => ue.value || !z.value), V = S(() => se(a.modelValue));
314
+ let A = S(() => !i.modelValue), j = S(() => i.modelValue.trim().toLowerCase() === "transparent"), M = S(() => ie(i.modelValue)), le = S(() => (i.modelValue ? P(i.modelValue) : null) || (P(i.seedColor) ?? "#ffffff")), F = S(() => !i.disabled && !A.value), I = n(re, oe), R = S(() => [...new Set(i.presets ?? I.presets)]), ue = S(() => i.allowCustom ?? I.allowCustom), z = S(() => R.value.length > 0), B = S(() => ue.value || !z.value), V = S(() => se(i.modelValue));
316
315
  function H(e) {
317
316
  return V.value !== "" && se(e) === V.value;
318
317
  }
319
318
  function fe(e) {
320
- s("update:modelValue", e);
319
+ o("update:modelValue", e);
321
320
  }
322
321
  let U = S(() => z.value && !B.value);
323
322
  function W(e) {
@@ -345,30 +344,30 @@ var Pe = [
345
344
  r !== -1 && (t[(r + (e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : -1) + t.length) % t.length]?.focus(), e.preventDefault());
346
345
  }
347
346
  function q(e) {
348
- k.value = !0, s("update:modelValue", e.detail.value);
347
+ k.value = !0, o("update:modelValue", e.detail.value);
349
348
  }
350
349
  function he() {
351
350
  k.value = !1;
352
351
  }
353
352
  function ge() {
354
- !k.value && A.value && s("update:modelValue", le.value);
353
+ !k.value && A.value && o("update:modelValue", le.value);
355
354
  }
356
355
  function J(e) {
357
- s("update:modelValue", e.target.value);
356
+ o("update:modelValue", e.target.value);
358
357
  }
359
358
  function Y() {
360
- s("update:modelValue", "");
359
+ o("update:modelValue", "");
361
360
  }
362
361
  function X() {
363
- s("update:modelValue", "transparent");
362
+ o("update:modelValue", "transparent");
364
363
  }
365
- let Z = ae(), { toLocal: _e } = ce(), ve = r(te, null), ye = r(ne, null), Q = e({
364
+ let Z = ae(), { toLocal: _e } = ce(), ve = n(te, null), ye = n(ne, null), Q = m({
366
365
  top: 0,
367
366
  left: 0
368
367
  });
369
368
  function be() {
370
- if (!a.disabled) {
371
- if (!C.value) {
369
+ if (!i.disabled) {
370
+ if (!l.value) {
372
371
  let e = O.value?.getBoundingClientRect();
373
372
  if (e) {
374
373
  let t = e.bottom + 8 + 240 <= window.innerHeight ? e.bottom + 8 : Math.max(8, e.top - 240 - 8);
@@ -378,56 +377,56 @@ var Pe = [
378
377
  });
379
378
  }
380
379
  }
381
- C.value = !C.value;
380
+ l.value = !l.value;
382
381
  }
383
382
  }
384
- return (e, n) => (o(), u("div", { class: v(["tpl:flex tpl:items-center tpl:gap-2 tpl:relative", t.disabled && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
385
- y("button", {
383
+ return (t, n) => (a(), u("div", { class: E(["tpl:flex tpl:items-center tpl:gap-2 tpl:relative", e.disabled && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
384
+ b("button", {
386
385
  ref_key: "swatchRef",
387
386
  ref: O,
388
387
  type: "button",
389
- disabled: t.disabled,
390
- "aria-label": t.ariaLabel || x(l).colorPicker.pickColor,
391
- title: t.ariaLabel || void 0,
392
- "aria-expanded": C.value,
393
- class: v([
388
+ disabled: e.disabled,
389
+ "aria-label": e.ariaLabel || w(c).colorPicker.pickColor,
390
+ title: e.ariaLabel || void 0,
391
+ "aria-expanded": l.value,
392
+ class: E([
394
393
  "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)]",
395
- t.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer",
396
- C.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !t.disabled && "tpl:hover:border-[var(--tpl-text-dim)]",
397
- t.size === "sm" ? "tpl:size-8" : "tpl:size-10"
394
+ e.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer",
395
+ l.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !e.disabled && "tpl:hover:border-[var(--tpl-text-dim)]",
396
+ e.size === "sm" ? "tpl:size-8" : "tpl:size-10"
398
397
  ]),
399
398
  onClick: be
400
- }, [y("span", {
401
- class: v(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", {
399
+ }, [b("span", {
400
+ class: E(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", {
402
401
  "tpl-color-swatch-empty": A.value,
403
402
  "tpl-color-swatch-transparent": j.value
404
403
  }]),
405
- style: E(A.value || j.value ? void 0 : { backgroundColor: M.value })
404
+ style: p(A.value || j.value ? void 0 : { backgroundColor: M.value })
406
405
  }, null, 6)], 10, Pe),
407
- !t.swatchOnly && B.value ? (o(), u("div", Fe, [y("input", {
406
+ !e.swatchOnly && B.value ? (a(), u("div", Fe, [b("input", {
408
407
  type: "text",
409
- class: v([x(de), "tpl:w-full"]),
410
- style: E(F.value ? { paddingRight: "2.25rem" } : void 0),
408
+ class: E([w(de), "tpl:w-full"]),
409
+ style: p(F.value ? { paddingRight: "2.25rem" } : void 0),
411
410
  value: M.value,
412
- placeholder: t.placeholder || x(l).colorPicker.notSet,
413
- disabled: t.disabled,
414
- "aria-label": x(l).colorPicker.hexValue,
411
+ placeholder: e.placeholder || w(c).colorPicker.notSet,
412
+ disabled: e.disabled,
413
+ "aria-label": w(c).colorPicker.hexValue,
415
414
  onInput: J
416
- }, null, 46, Ie), F.value ? (o(), u("button", {
415
+ }, null, 46, Ie), F.value ? (a(), u("button", {
417
416
  key: 0,
418
417
  type: "button",
419
- "aria-label": x(l).colorPicker.clear,
420
- title: x(l).colorPicker.clear,
418
+ "aria-label": w(c).colorPicker.clear,
419
+ title: w(c).colorPicker.clear,
421
420
  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)]",
422
421
  onClick: Y
423
- }, [D(x(L), {
422
+ }, [D(w(L), {
424
423
  size: 14,
425
424
  "stroke-width": 1.5
426
- })], 8, Le)) : h("", !0)])) : h("", !0),
427
- (o(), g(m, {
428
- to: x(Z),
429
- disabled: !x(Z)
430
- }, [D(b, {
425
+ })], 8, Le)) : _("", !0)])) : _("", !0),
426
+ (a(), v(h, {
427
+ to: w(Z),
428
+ disabled: !w(Z)
429
+ }, [D(x, {
431
430
  "enter-active-class": "tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
432
431
  "enter-from-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1",
433
432
  "enter-to-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
@@ -435,45 +434,45 @@ var Pe = [
435
434
  "leave-from-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
436
435
  "leave-to-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1"
437
436
  }, {
438
- default: c(() => [C.value ? (o(), u("div", {
437
+ default: s(() => [l.value ? (a(), u("div", {
439
438
  key: 0,
440
439
  ref_key: "popoverRef",
441
- ref: w,
442
- "data-tpl-theme": x(ye),
440
+ ref: C,
441
+ "data-tpl-theme": w(ye),
443
442
  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)]",
444
- style: E({
443
+ style: p({
445
444
  top: `${Q.value.top}px`,
446
445
  left: `${Q.value.left}px`,
447
- ...x(ve)
446
+ ...w(ve)
448
447
  })
449
448
  }, [
450
- t.allowTransparent ? (o(), u("button", {
449
+ e.allowTransparent ? (a(), u("button", {
451
450
  key: 0,
452
451
  type: "button",
453
452
  "data-testid": "color-picker-transparent",
454
453
  "aria-pressed": j.value,
455
- "aria-label": x(l).colorPicker.transparent,
456
- title: x(l).colorPicker.transparent,
457
- class: v(["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)]", j.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)]"]),
454
+ "aria-label": w(c).colorPicker.transparent,
455
+ title: w(c).colorPicker.transparent,
456
+ 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)]", j.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)]"]),
458
457
  onClick: X
459
- }, [n[2] ||= y("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), d(" " + p(x(l).colorPicker.transparent), 1)], 10, ze)) : h("", !0),
460
- z.value ? (o(), u("div", {
458
+ }, [n[2] ||= b("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), d(" " + g(w(c).colorPicker.transparent), 1)], 10, ze)) : _("", !0),
459
+ z.value ? (a(), u("div", {
461
460
  key: 1,
462
461
  role: "radiogroup",
463
- "aria-label": x(l).colorPicker.presetColors,
464
- class: v(["tpl:flex tpl:flex-wrap tpl:gap-1.5", B.value && "tpl:mb-2"]),
462
+ "aria-label": w(c).colorPicker.presetColors,
463
+ class: E(["tpl:flex tpl:flex-wrap tpl:gap-1.5", B.value && "tpl:mb-2"]),
465
464
  onKeydown: me
466
- }, [U.value ? (o(), u("button", {
465
+ }, [U.value ? (a(), u("button", {
467
466
  key: 0,
468
467
  type: "button",
469
468
  role: "radio",
470
- "aria-label": x(l).colorPicker.clear,
471
- title: x(l).colorPicker.clear,
469
+ "aria-label": w(c).colorPicker.clear,
470
+ title: w(c).colorPicker.clear,
472
471
  "aria-checked": A.value,
473
472
  tabindex: K(),
474
- class: v(["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)]", A.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)]"]),
473
+ 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)]", A.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)]"]),
475
474
  onClick: Y
476
- }, null, 10, Ve)) : h("", !0), (o(!0), u(T, null, i(R.value, (e, t) => (o(), u("button", {
475
+ }, null, 10, Ve)) : _("", !0), (a(!0), u(T, null, r(R.value, (e, t) => (a(), u("button", {
477
476
  key: e,
478
477
  type: "button",
479
478
  role: "radio",
@@ -481,41 +480,41 @@ var Pe = [
481
480
  title: e,
482
481
  "aria-checked": H(e),
483
482
  tabindex: pe(t),
484
- style: E({ backgroundColor: e }),
485
- class: v(["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)]", H(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)]"]),
483
+ style: p({ backgroundColor: e }),
484
+ 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)]", H(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)]"]),
486
485
  onClick: (t) => fe(e)
487
- }, null, 14, He))), 128))], 42, Be)) : h("", !0),
488
- B.value ? (o(), u("hex-color-picker", {
486
+ }, null, 14, He))), 128))], 42, Be)) : _("", !0),
487
+ B.value ? (a(), u("hex-color-picker", {
489
488
  key: 2,
490
489
  color: le.value,
491
- "aria-label": x(l).colorPicker.pickColor,
490
+ "aria-label": w(c).colorPicker.pickColor,
492
491
  onColorChanged: q,
493
492
  onPointerdown: he,
494
493
  onPointerup: ge,
495
- onKeydown: n[0] ||= f((e) => C.value = !1, ["escape"])
496
- }, null, 40, Ue)) : h("", !0),
497
- t.swatchOnly && B.value ? (o(), u("div", We, [y("input", {
494
+ onKeydown: n[0] ||= f((e) => l.value = !1, ["escape"])
495
+ }, null, 40, Ue)) : _("", !0),
496
+ e.swatchOnly && B.value ? (a(), u("div", We, [b("input", {
498
497
  type: "text",
499
- class: v([x(de), "tpl:w-full"]),
500
- style: E(F.value ? { paddingRight: "2.25rem" } : void 0),
498
+ class: E([w(de), "tpl:w-full"]),
499
+ style: p(F.value ? { paddingRight: "2.25rem" } : void 0),
501
500
  value: M.value,
502
- placeholder: t.placeholder || x(l).colorPicker.notSet,
503
- disabled: t.disabled,
504
- "aria-label": x(l).colorPicker.hexValue,
501
+ placeholder: e.placeholder || w(c).colorPicker.notSet,
502
+ disabled: e.disabled,
503
+ "aria-label": w(c).colorPicker.hexValue,
505
504
  onChange: J,
506
- onKeydown: n[1] ||= f(_((e) => e.target.blur(), ["prevent"]), ["enter"])
507
- }, null, 46, Ge), F.value ? (o(), u("button", {
505
+ onKeydown: n[1] ||= f(y((e) => e.target.blur(), ["prevent"]), ["enter"])
506
+ }, null, 46, Ge), F.value ? (a(), u("button", {
508
507
  key: 0,
509
508
  type: "button",
510
- "aria-label": x(l).colorPicker.clear,
511
- title: x(l).colorPicker.clear,
509
+ "aria-label": w(c).colorPicker.clear,
510
+ title: w(c).colorPicker.clear,
512
511
  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)]",
513
512
  onClick: Y
514
- }, [D(x(L), {
513
+ }, [D(w(L), {
515
514
  size: 14,
516
515
  "stroke-width": 1.5
517
- })], 8, Ke)) : h("", !0)])) : h("", !0)
518
- ], 12, Re)) : h("", !0)]),
516
+ })], 8, Ke)) : _("", !0)])) : _("", !0)
517
+ ], 12, Re)) : _("", !0)]),
519
518
  _: 1
520
519
  })], 8, ["to", "disabled"]))
521
520
  ], 2));
@@ -531,7 +530,7 @@ var Pe = [
531
530
  "data-merge-tag-value",
532
531
  "onMousedown",
533
532
  "onMousemove"
534
- ], Ze = { class: "tpl:font-medium" }, Qe = { class: "tpl:text-[var(--tpl-text-dim)] tpl:font-mono" }, $e = /* @__PURE__ */ n({
533
+ ], Ze = { class: "tpl:font-medium" }, Qe = { class: "tpl:text-[var(--tpl-text-dim)] tpl:font-mono" }, $e = /* @__PURE__ */ t({
535
534
  __name: "MergeTagSuggestionList",
536
535
  props: {
537
536
  items: {},
@@ -545,12 +544,12 @@ var Pe = [
545
544
  function n(e) {
546
545
  return t.listId ? `${t.listId}-opt-${e}` : void 0;
547
546
  }
548
- return (t, r) => (o(), u("div", {
547
+ return (t, i) => (a(), u("div", {
549
548
  id: e.listId,
550
549
  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)]",
551
550
  role: "listbox",
552
551
  "data-testid": "merge-tag-suggestion-list"
553
- }, [e.items.length === 0 ? (o(), u("div", Ye, p(e.emptyText), 1)) : h("", !0), (o(!0), u(T, null, i(e.items, (r, i) => (o(), u("button", {
552
+ }, [e.items.length === 0 ? (a(), u("div", Ye, g(e.emptyText), 1)) : _("", !0), (a(!0), u(T, null, r(e.items, (r, i) => (a(), u("button", {
554
553
  key: r.value,
555
554
  id: n(i),
556
555
  type: "button",
@@ -558,10 +557,10 @@ var Pe = [
558
557
  "aria-selected": i === e.selectedIndex,
559
558
  "data-selected": i === e.selectedIndex ? "true" : "false",
560
559
  "data-merge-tag-value": r.value,
561
- class: v(["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)]"]),
562
- onMousedown: _((e) => t.$emit("select", r), ["prevent", "stop"]),
560
+ 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", 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)]"]),
561
+ onMousedown: y((e) => t.$emit("select", r), ["prevent", "stop"]),
563
562
  onMousemove: (n) => i !== e.selectedIndex && t.$emit("hover", i)
564
- }, [y("span", Ze, p(r.label), 1), y("span", Qe, p(r.value), 1)], 42, Xe))), 128))], 8, Je));
563
+ }, [b("span", Ze, g(r.label), 1), b("span", Qe, g(r.value), 1)], 42, Xe))), 128))], 8, Je));
565
564
  }
566
565
  }), et = 10, tt = 0;
567
566
  function nt(e, t) {
@@ -574,14 +573,14 @@ function nt(e, t) {
574
573
  function rt(e, t, n, r) {
575
574
  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;
576
575
  }
577
- function it(t, n) {
578
- let r = null, i = null, a = null, o = e([]), c = e(0), l = null, u = `tpl-merge-tag-suggestion-${++tt}`, d = null, f = [], p = null;
579
- function m() {
580
- y(d?.() ?? null);
576
+ function it(e, t) {
577
+ let n = null, r = null, i = null, a = m([]), s = m(0), c = null, l = `tpl-merge-tag-suggestion-${++tt}`, u = null, d = [], f = null;
578
+ function p() {
579
+ y(u?.() ?? null);
581
580
  }
582
581
  function h() {
583
- m(), p !== null && cancelAnimationFrame(p), p = requestAnimationFrame(() => {
584
- p = null, m();
582
+ p(), f !== null && cancelAnimationFrame(f), f = requestAnimationFrame(() => {
583
+ f = null, p();
585
584
  });
586
585
  }
587
586
  function g(e) {
@@ -593,26 +592,26 @@ function it(t, n) {
593
592
  return t;
594
593
  }
595
594
  function _(e) {
596
- f = [window, ...g(e)];
597
- for (let e of f) e.addEventListener("scroll", m, {
595
+ d = [window, ...g(e)];
596
+ for (let e of d) e.addEventListener("scroll", p, {
598
597
  passive: !0,
599
598
  capture: !0
600
599
  });
601
- window.addEventListener("resize", m, { passive: !0 });
600
+ window.addEventListener("resize", p, { passive: !0 });
602
601
  }
603
602
  function v() {
604
- for (let e of f) e.removeEventListener("scroll", m, { capture: !0 });
605
- window.removeEventListener("resize", m), f = [];
603
+ for (let e of d) e.removeEventListener("scroll", p, { capture: !0 });
604
+ window.removeEventListener("resize", p), d = [];
606
605
  }
607
606
  function y(e) {
608
- if (!i || !e || e.bottom < 0 || e.top > window.innerHeight) return;
609
- i.style.position = "absolute", i.style.zIndex = "9999";
610
- let t = i.offsetParent?.getBoundingClientRect(), n = t?.top ?? 0;
611
- i.style.left = `${e.left - (t?.left ?? 0)}px`, i.style.top = `${e.bottom - n}px`;
612
- let r = i.offsetHeight;
613
- if (r !== 0 && window.innerHeight - e.bottom < r) {
614
- let t = Math.max(0, e.top - r);
615
- i.style.top = `${t - n}px`;
607
+ if (!r || !e || e.bottom < 0 || e.top > window.innerHeight) return;
608
+ r.style.position = "absolute", r.style.zIndex = "9999";
609
+ let t = r.offsetParent?.getBoundingClientRect(), n = t?.top ?? 0;
610
+ r.style.left = `${e.left - (t?.left ?? 0)}px`, r.style.top = `${e.bottom - n}px`;
611
+ let i = r.offsetHeight;
612
+ if (i !== 0 && window.innerHeight - e.bottom < i) {
613
+ let t = Math.max(0, e.top - i);
614
+ r.style.top = `${t - n}px`;
616
615
  }
617
616
  }
618
617
  function b(e, t) {
@@ -628,44 +627,43 @@ function it(t, n) {
628
627
  e.style.fontFamily = i.fontFamily, e.style.fontSize = i.fontSize, e.style.lineHeight = i.lineHeight;
629
628
  }
630
629
  function x(e) {
631
- a && (e ? (a.setAttribute("role", "combobox"), a.setAttribute("aria-haspopup", "listbox"), a.setAttribute("aria-expanded", "true"), a.setAttribute("aria-controls", u)) : (a.removeAttribute("aria-expanded"), a.removeAttribute("aria-controls"), a.removeAttribute("aria-activedescendant"), a.removeAttribute("aria-haspopup"), a.removeAttribute("role")));
630
+ 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")));
632
631
  }
633
632
  function S() {
634
- a && (o.value.length === 0 ? a.removeAttribute("aria-activedescendant") : a.setAttribute("aria-activedescendant", `${u}-opt-${c.value}`));
633
+ i && (a.value.length === 0 ? i.removeAttribute("aria-activedescendant") : i.setAttribute("aria-activedescendant", `${l}-opt-${s.value}`));
635
634
  }
636
- function C(e) {
637
- l?.(e);
635
+ function w(e) {
636
+ c?.(e);
638
637
  }
639
638
  return {
640
- open: ({ items: e, getRect: f, anchorEl: p, onCommand: m }) => {
641
- o.value = e, c.value = 0, l = m, i = document.createElement("div"), i.setAttribute("data-testid", "merge-tag-suggestion-popup"), a = p, b(i, p), (n?.value ?? document.body).appendChild(i), r = w({ render() {
642
- return s($e, {
643
- items: o.value,
644
- selectedIndex: c.value,
645
- emptyText: t,
646
- listId: u,
647
- onSelect: (e) => C(e),
639
+ open: ({ items: d, getRect: f, anchorEl: p, onCommand: m }) => {
640
+ a.value = d, s.value = 0, c = m, r = document.createElement("div"), r.setAttribute("data-testid", "merge-tag-suggestion-popup"), i = p, b(r, p), (t?.value ?? document.body).appendChild(r), n = C({ render() {
641
+ return o($e, {
642
+ items: a.value,
643
+ selectedIndex: s.value,
644
+ emptyText: e,
645
+ listId: l,
646
+ onSelect: (e) => w(e),
648
647
  onHover: (e) => {
649
- c.value = e, S();
648
+ s.value = e, S();
650
649
  }
651
650
  });
652
- } }), r.mount(i), x(!0), S(), d = f, h(), _(p);
651
+ } }), n.mount(r), x(!0), S(), u = f, h(), _(p);
653
652
  },
654
653
  update: ({ items: e, getRect: t, onCommand: n }) => {
655
- o.value = e, c.value >= e.length && (c.value = 0), l = n, S(), d = t, h();
654
+ a.value = e, s.value >= e.length && (s.value = 0), c = n, S(), u = t, h();
656
655
  },
657
656
  handleKeyDown: (e) => {
658
- let t = rt(e, o.value, c, C);
657
+ let t = rt(e, a.value, s, w);
659
658
  return t && S(), t;
660
659
  },
661
660
  close: () => {
662
- i !== null && (p !== null && (cancelAnimationFrame(p), p = null), v(), x(!1), r?.unmount(), i.remove(), r = null, i = null, a = null, l = null, d = null);
661
+ r !== null && (f !== null && (cancelAnimationFrame(f), f = null), v(), x(!1), n?.unmount(), r.remove(), n = null, r = null, i = null, c = null, u = null);
663
662
  },
664
- isOpen: () => i !== null
663
+ isOpen: () => r !== null
665
664
  };
666
665
  }
667
- //#endregion
668
- //#region src/utils/mergeTagTrigger.ts
666
+ // src/utils/mergeTagTrigger.ts
669
667
  function at(e, t, n, r, i) {
670
668
  if (!n) return null;
671
669
  let a = e.slice(0, t), o = a.lastIndexOf(n);
@@ -682,8 +680,7 @@ function ot(e, t) {
682
680
  for (let t of e.matchAll(n)) r = t.index + t[0].length;
683
681
  return r;
684
682
  }
685
- //#endregion
686
- //#region src/utils/textFieldCaret.ts
683
+ // src/utils/textFieldCaret.ts
687
684
  var st = /* @__PURE__ */ "boxSizing.width.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.borderStyle.paddingTop.paddingRight.paddingBottom.paddingLeft.fontStyle.fontVariant.fontWeight.fontStretch.fontSize.lineHeight.fontFamily.textAlign.textTransform.textIndent.letterSpacing.wordSpacing.tabSize.whiteSpace.wordWrap.wordBreak".split(".");
688
685
  function ct(e, t, n) {
689
686
  return {
@@ -719,87 +716,85 @@ function lt(e, t) {
719
716
  let b = h.top + p + g - e.scrollTop;
720
717
  return ct(y, b, b + v);
721
718
  }
722
- //#endregion
723
- //#region src/composables/useMergeTagAutocomplete.ts
719
+ // src/composables/useMergeTagAutocomplete.ts
724
720
  var ut = /* @__PURE__ */ new Set([
725
721
  "ArrowLeft",
726
722
  "ArrowRight",
727
723
  "Home",
728
724
  "End"
729
725
  ]);
730
- function dt(e) {
731
- let { elementRef: n, modelValue: i, emit: o, mergeTags: s, syntax: c, enabled: u, onInsert: d } = e, f = O(c), p = A(c), m = S(() => u && f !== null && s.value.length > 0), h = r(M, null), g = it((a(h) ? h.value : h)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", ae()), _ = !1;
732
- C() && l(() => {
733
- _ = !0, g.close();
726
+ function dt(t) {
727
+ let { elementRef: r, modelValue: a, emit: o, mergeTags: s, syntax: u, enabled: d, onInsert: f } = t, p = O(u), m = A(u), h = S(() => d && p !== null && s.value.length > 0), g = n(M, null), _ = it((c(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", ae()), v = !1;
728
+ i() && l(() => {
729
+ v = !0, _.close();
734
730
  });
735
- function v(e) {
731
+ function y(e) {
736
732
  let t = e.value ?? "";
737
- return at(t, e.selectionStart ?? t.length, f, p, c.value);
733
+ return at(t, e.selectionStart ?? t.length, p, m, u.value);
738
734
  }
739
- function y(e, r, a) {
740
- let s = e.value ?? i(), c = s.slice(r.caret), l = p && c.startsWith(p) ? p.length : 0, u = s.slice(0, r.triggerStart), f = s.slice(r.caret + l), m = u + a.value + f, h = u.length + a.value.length;
741
- d?.(), o(m), g.close(), t(() => {
742
- if (_) return;
743
- let e = n.value;
735
+ function b(t, n, i) {
736
+ let s = t.value ?? a(), c = s.slice(n.caret), l = m && c.startsWith(m) ? m.length : 0, u = s.slice(0, n.triggerStart), d = s.slice(n.caret + l), p = u + i.value + d, h = u.length + i.value.length;
737
+ f?.(), o(p), _.close(), e(() => {
738
+ if (v) return;
739
+ let e = r.value;
744
740
  e?.focus(), e?.setSelectionRange(h, h);
745
741
  });
746
742
  }
747
- function b() {
748
- if (!m.value || _) return;
749
- let e = n.value;
743
+ function x() {
744
+ if (!h.value || v) return;
745
+ let e = r.value;
750
746
  if (!e) {
751
- g.close();
747
+ _.close();
752
748
  return;
753
749
  }
754
- let t = v(e);
750
+ let t = y(e);
755
751
  if (!t) {
756
- g.close();
752
+ _.close();
757
753
  return;
758
754
  }
759
- let r = nt(s.value, t.query), i = () => lt(e, t.triggerStart), a = (n) => y(e, t, n);
760
- g.isOpen() ? g.update({
761
- items: r,
755
+ let n = nt(s.value, t.query), i = () => lt(e, t.triggerStart), a = (n) => b(e, t, n);
756
+ _.isOpen() ? _.update({
757
+ items: n,
762
758
  getRect: i,
763
759
  onCommand: a
764
- }) : g.open({
765
- items: r,
760
+ }) : _.open({
761
+ items: n,
766
762
  getRect: i,
767
763
  anchorEl: e,
768
764
  onCommand: a
769
765
  });
770
766
  }
771
- function x(e) {
772
- return g.isOpen() ? e.key === "Escape" ? (g.close(), !0) : ut.has(e.key) ? (g.close(), !1) : g.handleKeyDown(e) : !1;
767
+ function C(e) {
768
+ return _.isOpen() ? e.key === "Escape" ? (_.close(), !0) : ut.has(e.key) ? (_.close(), !1) : _.handleKeyDown(e) : !1;
773
769
  }
774
770
  return {
775
- available: m,
776
- refresh: b,
777
- handleKeydown: x,
778
- close: () => g.close(),
779
- isOpen: () => g.isOpen()
771
+ available: h,
772
+ refresh: x,
773
+ handleKeydown: C,
774
+ close: () => _.close(),
775
+ isOpen: () => _.isOpen()
780
776
  };
781
777
  }
782
- //#endregion
783
- //#region src/composables/useMergeTagField.ts
784
- function ft(n) {
785
- let { modelValue: r, emit: i, elementRef: a } = n, { mergeTags: o, canRequestMergeTag: s, isRequesting: c, isMergeTagValue: u, getMergeTagDisplayLabel: d, findMergeTag: f, requestMergeTag: p, syntax: m, autocomplete: h } = R(), { canInsertLogicTag: g, isRequesting: _, requestLogicTag: v } = ue(), y = e(!1), b = !1, x = !1;
786
- C() && l(() => {
787
- x = !0;
778
+ // src/composables/useMergeTagField.ts
779
+ function ft(t) {
780
+ let { modelValue: n, emit: r, elementRef: a } = t, { mergeTags: o, canRequestMergeTag: s, isRequesting: c, isMergeTagValue: u, getMergeTagDisplayLabel: d, findMergeTag: f, requestMergeTag: p, syntax: h, autocomplete: g } = R(), { canInsertLogicTag: _, isRequesting: v, requestLogicTag: y } = ue(), b = m(!1), x = !1, C = !1;
781
+ i() && l(() => {
782
+ C = !0;
788
783
  });
789
784
  let w = dt({
790
785
  elementRef: a,
791
- modelValue: r,
792
- emit: i,
786
+ modelValue: n,
787
+ emit: r,
793
788
  mergeTags: o,
794
- syntax: m,
795
- enabled: h,
789
+ syntax: h,
790
+ enabled: g,
796
791
  onInsert: () => {
797
- y.value = !0;
792
+ b.value = !0;
798
793
  }
799
794
  }), T = S(() => {
800
- let e = r();
795
+ let e = n();
801
796
  if (!e) return [];
802
- let t = [], n = `(${m.value.source}|${m.logic.source})`, i = new RegExp(n, "g"), a = 0, o;
797
+ let t = [], r = `(${h.value.source}|${h.logic.source})`, i = new RegExp(r, "g"), a = 0, o;
803
798
  for (; (o = i.exec(e)) !== null;) {
804
799
  o.index > a && t.push({
805
800
  type: "text",
@@ -810,10 +805,10 @@ function ft(n) {
810
805
  type: "mergeTag",
811
806
  value: n,
812
807
  label: d(n)
813
- }) : j(n, m) ? t.push({
808
+ }) : j(n, h) ? t.push({
814
809
  type: "logicMergeTag",
815
810
  value: n,
816
- keyword: k(n, m)
811
+ keyword: k(n, h)
817
812
  }) : t.push({
818
813
  type: "text",
819
814
  value: n
@@ -825,17 +820,17 @@ function ft(n) {
825
820
  }), t;
826
821
  }), E = S(() => T.value.some((e) => e.type === "mergeTag" || e.type === "logicMergeTag"));
827
822
  function D() {
828
- y.value = !0, t(() => {
823
+ b.value = !0, e(() => {
829
824
  a.value?.focus();
830
- let e = r()?.length || 0;
825
+ let e = n()?.length || 0;
831
826
  a.value?.setSelectionRange(e, e);
832
827
  });
833
828
  }
834
829
  function O() {
835
- b || (y.value = !1);
830
+ x || (b.value = !1);
836
831
  }
837
832
  function A(e) {
838
- i(e.target.value), w.refresh();
833
+ r(e.target.value), w.refresh();
839
834
  }
840
835
  function ee(e) {
841
836
  return w.handleKeydown(e) ? (e.preventDefault(), !0) : (e.key === "Escape" && O(), !1);
@@ -847,54 +842,54 @@ function ft(n) {
847
842
  w.close(), O();
848
843
  }
849
844
  function ne() {
850
- i("");
845
+ r("");
851
846
  }
852
847
  async function re() {
853
- let e = y.value && a.value ? a.value.selectionStart ?? r().length : r().length;
854
- b = !0;
855
- let n;
848
+ let t = b.value && a.value ? a.value.selectionStart ?? n().length : n().length;
849
+ x = !0;
850
+ let i;
856
851
  try {
857
- n = await p();
852
+ i = await p();
858
853
  } finally {
859
- b = !1;
854
+ x = !1;
860
855
  }
861
- if (!x && n) {
862
- let o = r().slice(0, e), s = r().slice(e), c = o + n.value + s;
863
- i(c), y.value = !0, t(() => {
864
- if (x) return;
865
- let t = e + n.value.length;
866
- a.value?.focus(), a.value?.setSelectionRange(t, t);
856
+ if (!C && i) {
857
+ let o = n().slice(0, t), s = n().slice(t), c = o + i.value + s;
858
+ r(c), b.value = !0, e(() => {
859
+ if (C) return;
860
+ let e = t + i.value.length;
861
+ a.value?.focus(), a.value?.setSelectionRange(e, e);
867
862
  });
868
863
  }
869
864
  }
870
865
  async function N(e) {
871
866
  let t = T.value, n = t[e];
872
867
  if (n?.type !== "mergeTag") return;
873
- b = !0;
874
- let r;
868
+ x = !0;
869
+ let i;
875
870
  try {
876
- r = await p({
871
+ i = await p({
877
872
  reason: "edit",
878
873
  current: f(n.value)
879
874
  });
880
875
  } finally {
881
- b = !1;
876
+ x = !1;
882
877
  }
883
- !x && r && i(t.map((t, n) => n === e ? r.value : t.value).join(""));
878
+ !C && i && r(t.map((t, n) => n === e ? i.value : t.value).join(""));
884
879
  }
885
880
  async function P() {
886
- let e = a.value, n = e?.selectionStart ?? r().length, o = e?.selectionEnd ?? n;
887
- b = !0;
881
+ let t = a.value, i = t?.selectionStart ?? n().length, o = t?.selectionEnd ?? i;
882
+ x = !0;
888
883
  let s;
889
884
  try {
890
- s = await v();
885
+ s = await y();
891
886
  } finally {
892
- b = !1;
887
+ x = !1;
893
888
  }
894
- if (x || !s) return;
895
- let c = r(), l, u;
896
- "before" in s ? (l = c.slice(0, n) + s.before + c.slice(n, o) + s.after + c.slice(o), u = n + s.before.length + (o - n)) : (l = c.slice(0, n) + s.value + c.slice(n), u = n + s.value.length), i(l), y.value = !0, t(() => {
897
- x || (a.value?.focus(), a.value?.setSelectionRange(u, u));
889
+ if (C || !s) return;
890
+ let c = n(), l, u;
891
+ "before" in s ? (l = c.slice(0, i) + s.before + c.slice(i, o) + s.after + c.slice(o), u = i + s.before.length + (o - i)) : (l = c.slice(0, i) + s.value + c.slice(i), u = i + s.value.length), r(l), b.value = !0, e(() => {
892
+ C || (a.value?.focus(), a.value?.setSelectionRange(u, u));
898
893
  });
899
894
  }
900
895
  return {
@@ -902,9 +897,9 @@ function ft(n) {
902
897
  hasMergeTags: E,
903
898
  canRequestMergeTag: s,
904
899
  isRequestingMergeTag: c,
905
- canInsertLogicTag: g,
906
- isRequestingLogicTag: _,
907
- isEditing: y,
900
+ canInsertLogicTag: _,
901
+ isRequestingLogicTag: v,
902
+ isEditing: b,
908
903
  startEditing: D,
909
904
  stopEditing: O,
910
905
  handleInput: A,
@@ -918,8 +913,7 @@ function ft(n) {
918
913
  autocompleteAvailable: w.available
919
914
  };
920
915
  }
921
- //#endregion
922
- //#region src/components/MergeTagSegments.vue?vue&type=script&setup=true&lang.ts
916
+ // src/components/MergeTagSegments.vue?vue&type=script&setup=true&lang.ts
923
917
  var pt = ["aria-label"], mt = [
924
918
  "data-tooltip",
925
919
  "aria-label",
@@ -927,7 +921,7 @@ var pt = ["aria-label"], mt = [
927
921
  ], ht = ["data-tooltip"], gt = ["data-tooltip"], _t = {
928
922
  key: 3,
929
923
  class: "tpl:text-sm tpl:text-[var(--tpl-text)]"
930
- }, vt = ["aria-label", "title"], yt = ["aria-label", "title"], bt = /* @__PURE__ */ n({
924
+ }, vt = ["aria-label", "title"], yt = ["aria-label", "title"], bt = /* @__PURE__ */ t({
931
925
  __name: "MergeTagSegments",
932
926
  props: {
933
927
  segments: {},
@@ -940,37 +934,37 @@ var pt = ["aria-label"], mt = [
940
934
  "repick"
941
935
  ],
942
936
  setup(e, { emit: t }) {
943
- let n = t, { t: r, format: a } = N(), { canRepickMergeTag: s, showRawValue: c } = R();
937
+ let n = t, { t: i, format: o } = N(), { canRepickMergeTag: s, showRawValue: c } = R();
944
938
  function l() {
945
939
  n("edit");
946
940
  }
947
- return (t, d) => (o(), u("div", {
941
+ return (t, d) => (a(), u("div", {
948
942
  role: "group",
949
- "aria-label": x(r).mergeTag.fieldGroup,
950
- class: v([e.displayClass, { "tpl-pulse-fill": e.pulse }]),
943
+ "aria-label": w(i).mergeTag.fieldGroup,
944
+ class: E([e.displayClass, { "tpl-pulse-fill": e.pulse }]),
951
945
  onClick: l
952
946
  }, [
953
- (o(!0), u(T, null, i(e.segments, (e, t) => (o(), u(T, { key: `${e.type}-${t}-${e.value}` }, [e.type === "mergeTag" && x(s)(e.value) ? (o(), u("button", {
947
+ (a(!0), u(T, null, r(e.segments, (e, t) => (a(), u(T, { key: `${e.type}-${t}-${e.value}` }, [e.type === "mergeTag" && w(s)(e.value) ? (a(), u("button", {
954
948
  key: 0,
955
949
  type: "button",
956
- class: v(["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", x(c) ? "tpl-tooltip" : ""]),
957
- "data-tooltip": x(c) ? e.value : void 0,
958
- "aria-label": x(a)(x(r).mergeTag.changeTag, { label: e.label }),
950
+ 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", w(c) ? "tpl-tooltip" : ""]),
951
+ "data-tooltip": w(c) ? e.value : void 0,
952
+ "aria-label": w(o)(w(i).mergeTag.changeTag, { label: e.label }),
959
953
  "data-testid": "merge-tag-field-chip",
960
954
  style: {
961
955
  "background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
962
956
  color: "var(--tpl-primary)"
963
957
  },
964
- onClick: _((e) => n("repick", t), ["stop"])
965
- }, p(e.label), 11, mt)) : e.type === "mergeTag" ? (o(), u("span", {
958
+ onClick: y((e) => n("repick", t), ["stop"])
959
+ }, g(e.label), 11, mt)) : e.type === "mergeTag" ? (a(), u("span", {
966
960
  key: 1,
967
- class: v(["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", x(c) ? "tpl-tooltip" : ""]),
968
- "data-tooltip": x(c) ? e.value : void 0,
961
+ 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", w(c) ? "tpl-tooltip" : ""]),
962
+ "data-tooltip": w(c) ? e.value : void 0,
969
963
  style: {
970
964
  "background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
971
965
  color: "var(--tpl-primary)"
972
966
  }
973
- }, p(e.label), 11, ht)) : e.type === "logicMergeTag" ? (o(), u("span", {
967
+ }, g(e.label), 11, ht)) : e.type === "logicMergeTag" ? (a(), u("span", {
974
968
  key: 2,
975
969
  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",
976
970
  "data-tooltip": e.value,
@@ -979,26 +973,26 @@ var pt = ["aria-label"], mt = [
979
973
  border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
980
974
  color: "var(--tpl-primary)"
981
975
  }
982
- }, p(e.keyword), 9, gt)) : (o(), u("span", _t, p(e.value), 1))], 64))), 128)),
983
- y("button", {
976
+ }, g(e.keyword), 9, gt)) : (a(), u("span", _t, g(e.value), 1))], 64))), 128)),
977
+ b("button", {
984
978
  type: "button",
985
979
  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",
986
- "aria-label": x(r).mergeTag.editAsText,
987
- title: x(r).mergeTag.editAsText,
980
+ "aria-label": w(i).mergeTag.editAsText,
981
+ title: w(i).mergeTag.editAsText,
988
982
  "data-testid": "merge-tag-field-edit",
989
- onClick: _(l, ["stop"])
990
- }, [D(x(F), {
983
+ onClick: y(l, ["stop"])
984
+ }, [D(w(le), {
991
985
  size: 12,
992
986
  "stroke-width": 2
993
987
  })], 8, vt),
994
- y("button", {
988
+ b("button", {
995
989
  type: "button",
996
990
  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",
997
- "aria-label": x(r).mergeTag.remove,
998
- title: x(r).mergeTag.remove,
991
+ "aria-label": w(i).mergeTag.remove,
992
+ title: w(i).mergeTag.remove,
999
993
  "data-testid": "merge-tag-field-clear",
1000
- onClick: d[0] ||= _((e) => n("clear"), ["stop"])
1001
- }, [D(x(L), {
994
+ onClick: d[0] ||= y((e) => n("clear"), ["stop"])
995
+ }, [D(w(L), {
1002
996
  size: 12,
1003
997
  "stroke-width": 2.5
1004
998
  })], 8, yt)
@@ -1008,51 +1002,50 @@ var pt = ["aria-label"], mt = [
1008
1002
  "aria-label",
1009
1003
  "title",
1010
1004
  "disabled"
1011
- ], St = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)] tpl:hover:border-[var(--tpl-primary)]", Ct = /* @__PURE__ */ n({
1005
+ ], St = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)] tpl:hover:border-[var(--tpl-primary)]", Ct = /* @__PURE__ */ t({
1012
1006
  __name: "MergeTagInsertButton",
1013
1007
  props: { disabled: { type: Boolean } },
1014
1008
  emits: ["insert"],
1015
1009
  setup(e) {
1016
1010
  let { t } = N();
1017
- return (n, r) => (o(), u("button", {
1011
+ return (n, r) => (a(), u("button", {
1018
1012
  type: "button",
1019
- class: v([St, "tpl:mt-1.5"]),
1020
- "aria-label": x(t).mergeTag.insert,
1021
- title: x(t).mergeTag.insert,
1013
+ class: E([St, "tpl:mt-1.5"]),
1014
+ "aria-label": w(t).mergeTag.insert,
1015
+ title: w(t).mergeTag.insert,
1022
1016
  disabled: e.disabled,
1023
- onMousedown: r[0] ||= _(() => {}, ["prevent"]),
1017
+ onMousedown: r[0] ||= y(() => {}, ["prevent"]),
1024
1018
  onClick: r[1] ||= (e) => n.$emit("insert")
1025
- }, [D(x(I), {
1019
+ }, [D(w(F), {
1026
1020
  size: 12,
1027
1021
  "stroke-width": 2
1028
- }), d(" " + p(x(t).mergeTag.insertShort), 1)], 42, xt));
1022
+ }), d(" " + g(w(t).mergeTag.insertShort), 1)], 42, xt));
1029
1023
  }
1030
1024
  }), wt = [
1031
1025
  "aria-label",
1032
1026
  "title",
1033
1027
  "disabled"
1034
- ], Tt = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)] tpl:hover:border-[var(--tpl-primary)]", Et = /* @__PURE__ */ n({
1028
+ ], Tt = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)] tpl:hover:border-[var(--tpl-primary)]", Et = /* @__PURE__ */ t({
1035
1029
  __name: "LogicTagInsertButton",
1036
1030
  props: { disabled: { type: Boolean } },
1037
1031
  emits: ["insert"],
1038
1032
  setup(e) {
1039
1033
  let { t } = N();
1040
- return (n, r) => (o(), u("button", {
1034
+ return (n, r) => (a(), u("button", {
1041
1035
  type: "button",
1042
- class: v([Tt, "tpl:mt-1.5"]),
1043
- "aria-label": x(t).logicTag.insert,
1044
- title: x(t).logicTag.insert,
1036
+ class: E([Tt, "tpl:mt-1.5"]),
1037
+ "aria-label": w(t).logicTag.insert,
1038
+ title: w(t).logicTag.insert,
1045
1039
  disabled: e.disabled,
1046
1040
  "data-testid": "field-insert-logic-button",
1047
- onMousedown: r[0] ||= _(() => {}, ["prevent"]),
1041
+ onMousedown: r[0] ||= y(() => {}, ["prevent"]),
1048
1042
  onClick: r[1] ||= (e) => n.$emit("insert")
1049
- }, [D(x(le), {
1043
+ }, [D(w(I), {
1050
1044
  size: 12,
1051
1045
  "stroke-width": 2
1052
- }), d(" " + p(x(t).logicTag.insertShort), 1)], 42, wt));
1046
+ }), d(" " + g(w(t).logicTag.insertShort), 1)], 42, wt));
1053
1047
  }
1054
1048
  });
1055
- //#endregion
1056
1049
  export { it as a, qe as c, ft as i, Ct as n, nt as o, bt as r, rt as s, Et as t };
1057
1050
 
1058
- //# sourceMappingURL=LogicTagInsertButton-CsL2JDOG.js.map
1051
+ //# sourceMappingURL=LogicTagInsertButton-BIi05UQu.js.map