@templatical/editor 0.52.1 → 0.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (397) hide show
  1. package/README.md +1 -1
  2. package/dist/AiAltTextPopover-NMJqQKvD.js +106 -0
  3. package/dist/{AiAltTextReview-9ySsXOTU.js → AiAltTextReview-Ci4zHwRc.js} +68 -66
  4. package/dist/AiChatPanel-C8SeEJRP.js +561 -0
  5. package/dist/{AiPanels-DqT4PgQ0.js → AiPanels-CR6zphjP.js} +6 -6
  6. package/dist/{AiRewriteMenu-28agTycW.js → AiRewriteMenu-CIHUnPud.js} +76 -105
  7. package/dist/BlockIssueBadge-DaPTq1RE.js +33 -0
  8. package/dist/BlockPreviewCanvas-B70RSavL.js +140 -0
  9. package/dist/{CloudHeaderExtras-QI82yF54.js → CloudHeaderExtras-XpjJjn3o.js} +4 -4
  10. package/dist/{CloudPanels-BKJaLkUN.js → CloudPanels-VpSQiLLL.js} +53 -53
  11. package/dist/CollaborationNotices-Cnx0XHzZ.js +65 -0
  12. package/dist/{CollaboratorBar-CXQqN3VP.js → CollaboratorBar-BaBoNhwB.js} +24 -24
  13. package/dist/CommentsPanel-Ck3QmqiC.js +16 -0
  14. package/dist/CommentsSidebar-CHknhOar.js +526 -0
  15. package/dist/{CountdownBlock-CU2yTWtF.js → CountdownBlock-BMezkFbJ.js} +15 -15
  16. package/dist/CountdownToolbar-CM4XNEuO.js +258 -0
  17. package/dist/IssuesPanel-1wGV0wiy.js +371 -0
  18. package/dist/LanguageMenu-d2GlX67r.js +403 -0
  19. package/dist/{LoadingTrack-DM4g6j7b.js → LoadingTrack-BG8cg9xi.js} +2 -2
  20. package/dist/LocaleNotices-WzsYtBRs.js +46 -0
  21. package/dist/LogicTagInsertButton-DgTJ6Lvx.js +1096 -0
  22. package/dist/{MediaEditModal-Dy08GEwE.js → MediaEditModal-C3U9Mi31.js} +451 -451
  23. package/dist/{MediaPanels-BgEp7iCp.js → MediaPanels-CGmk9ufe.js} +4 -4
  24. package/dist/{MergeTagInput-B9dtUthD.js → MergeTagInput-B_51YcQO.js} +30 -30
  25. package/dist/{MergeTagModeToggle-DxujhYJ4.js → MergeTagModeToggle-D3Q2z317.js} +49 -49
  26. package/dist/MergeTagTextarea-DZz1L9DE.js +126 -0
  27. package/dist/ParagraphEditor-CI68PYDL.js +825 -0
  28. package/dist/{RestoreVersionDialog-C4s_JYCx.js → RestoreVersionDialog-DcuhpOIz.js} +23 -23
  29. package/dist/{RichTextEditorContent-o6HmE8GR.js → RichTextEditorContent-Dstovi0m.js} +47 -47
  30. package/dist/{SaveBlockDialog-CWLrly6l.js → SaveBlockDialog-vuwvoi-d.js} +86 -86
  31. package/dist/{cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js → SavedBlocksBrowserModal-DUJm0dOv.js} +135 -132
  32. package/dist/{SavedBlocksPanels-BE1N9rNZ.js → SavedBlocksPanels-BiMXQ5lY.js} +9 -9
  33. package/dist/{SavedBlocksPickBar-Dwl94xhP.js → SavedBlocksPickBar-CAstZfG7.js} +15 -15
  34. package/dist/TemplateSettings-Baar78_s.js +294 -0
  35. package/dist/TestEmailModal-Bl_GHdrN.js +212 -0
  36. package/dist/{TestEmailPanel-DaFjP9QK.js → TestEmailPanel-CpTBF7B5.js} +4 -4
  37. package/dist/TitleEditor-DkbEDAZB.js +202 -0
  38. package/dist/ToggleSwitch-R3wCCYE6.js +43 -0
  39. package/dist/Toolbar-bOZ_eq7X.js +3711 -0
  40. package/dist/{TplModal-DLMssVlt.js → TplModal-wk2gLa7_.js} +17 -17
  41. package/dist/{VersionHistoryMenu-BkbYUs0Q.js → VersionHistoryMenu-BnP0EyLl.js} +39 -39
  42. package/dist/{VersionHistoryPanels-DP7HaYWv.js → VersionHistoryPanels-Cq2rFKIX.js} +5 -5
  43. package/dist/VersionPreviewBanner-BPP939cD.js +37 -0
  44. package/dist/WrapperBlock-cWT_nZgQ.js +44 -0
  45. package/dist/{blockTypeIcons-BHjlPnPf.js → blockTypeIcons-BUyPZ7Su.js} +7 -7
  46. package/dist/bundle-stats.json +8 -8
  47. package/dist/{cdn/chunks/ca-CD-Kt1qz.js → ca-DOuIxWRv.js} +114 -2
  48. package/dist/cdn/chunks/AiAltTextPopover-Cnc_kUmb.js +107 -0
  49. package/dist/cdn/chunks/AiAltTextPopover-Cnc_kUmb.js.map +1 -0
  50. package/dist/cdn/chunks/{AiAltTextReview-BGLLSKLm.js → AiAltTextReview-DPeSY-7r.js} +70 -68
  51. package/dist/cdn/chunks/AiAltTextReview-DPeSY-7r.js.map +1 -0
  52. package/dist/cdn/chunks/AiChatPanel-By8Uo1nH.js +487 -0
  53. package/dist/cdn/chunks/AiChatPanel-By8Uo1nH.js.map +1 -0
  54. package/dist/cdn/chunks/{AiPanels-0wBarZSH.js → AiPanels-BblCSkQy.js} +11 -11
  55. package/dist/cdn/chunks/{AiPanels-0wBarZSH.js.map → AiPanels-BblCSkQy.js.map} +1 -1
  56. package/dist/cdn/chunks/{AiRewriteMenu-qf-cfEpy.js → AiRewriteMenu-C4btyN4W.js} +79 -79
  57. package/dist/cdn/chunks/AiRewriteMenu-C4btyN4W.js.map +1 -0
  58. package/dist/cdn/chunks/BlockIssueBadge-D3Plo_wt.js +34 -0
  59. package/dist/cdn/chunks/BlockIssueBadge-D3Plo_wt.js.map +1 -0
  60. package/dist/cdn/chunks/BlockPreviewCanvas-CTKmBPsq.js +142 -0
  61. package/dist/cdn/chunks/{BlockPreviewCanvas-DGBh6mqe.js.map → BlockPreviewCanvas-CTKmBPsq.js.map} +1 -1
  62. package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js → CloudHeaderExtras-BtqdN777.js} +4 -4
  63. package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js.map → CloudHeaderExtras-BtqdN777.js.map} +1 -1
  64. package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js → CloudPanels-COU26R83.js} +45 -45
  65. package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js.map → CloudPanels-COU26R83.js.map} +1 -1
  66. package/dist/cdn/chunks/CollaborationNotices-DraFUhyo.js +67 -0
  67. package/dist/cdn/chunks/CollaborationNotices-DraFUhyo.js.map +1 -0
  68. package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js → CollaboratorBar-0OEH3hrj.js} +17 -17
  69. package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js.map → CollaboratorBar-0OEH3hrj.js.map} +1 -1
  70. package/dist/cdn/chunks/CommentsPanel-tZZswofV.js +18 -0
  71. package/dist/cdn/chunks/{CommentsPanel-DoJnKLXI.js.map → CommentsPanel-tZZswofV.js.map} +1 -1
  72. package/dist/cdn/chunks/CommentsSidebar-7Hfl3Hdj.js +496 -0
  73. package/dist/cdn/chunks/CommentsSidebar-7Hfl3Hdj.js.map +1 -0
  74. package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js → CountdownBlock-CjMhMhnv.js} +22 -22
  75. package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js.map → CountdownBlock-CjMhMhnv.js.map} +1 -1
  76. package/dist/cdn/chunks/CountdownToolbar-CNgsNL5-.js +260 -0
  77. package/dist/cdn/chunks/CountdownToolbar-CNgsNL5-.js.map +1 -0
  78. package/dist/cdn/chunks/{IssuesPanel-C7LfxaAY.js → IssuesPanel-Duic0mIs.js} +133 -121
  79. package/dist/cdn/chunks/IssuesPanel-Duic0mIs.js.map +1 -0
  80. package/dist/cdn/chunks/LanguageMenu-B1Aue_lf.js +359 -0
  81. package/dist/cdn/chunks/LanguageMenu-B1Aue_lf.js.map +1 -0
  82. package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js → LoadingTrack-DUYcDHOV.js} +2 -2
  83. package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js.map → LoadingTrack-DUYcDHOV.js.map} +1 -1
  84. package/dist/cdn/chunks/LocaleNotices-8J2DRWeg.js +47 -0
  85. package/dist/cdn/chunks/LocaleNotices-8J2DRWeg.js.map +1 -0
  86. package/dist/{LogicTagInsertButton-CfscnwCn.js → cdn/chunks/LogicTagInsertButton-Bhvi0nWz.js} +422 -449
  87. package/dist/cdn/chunks/LogicTagInsertButton-Bhvi0nWz.js.map +1 -0
  88. package/dist/cdn/chunks/{MediaEditModal-Cpcod6_U.js → MediaEditModal-Dz972UFx.js} +421 -421
  89. package/dist/cdn/chunks/MediaEditModal-Dz972UFx.js.map +1 -0
  90. package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js → MediaPanels-C6Hqtp1H.js} +5 -5
  91. package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js.map → MediaPanels-C6Hqtp1H.js.map} +1 -1
  92. package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js → MergeTagInput-CrhZm-AW.js} +28 -28
  93. package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js.map → MergeTagInput-CrhZm-AW.js.map} +1 -1
  94. package/dist/cdn/chunks/{MergeTagModeToggle-BgKEVUtV.js → MergeTagModeToggle-CWVtXLYa.js} +52 -52
  95. package/dist/cdn/chunks/MergeTagModeToggle-CWVtXLYa.js.map +1 -0
  96. package/dist/cdn/chunks/MergeTagTextarea-hTIBwX0F.js +128 -0
  97. package/dist/cdn/chunks/MergeTagTextarea-hTIBwX0F.js.map +1 -0
  98. package/dist/cdn/chunks/ParagraphEditor-B2UU1Q5I.js +660 -0
  99. package/dist/cdn/chunks/ParagraphEditor-B2UU1Q5I.js.map +1 -0
  100. package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js → RestoreVersionDialog-C1Y5Ewo_.js} +22 -22
  101. package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js.map → RestoreVersionDialog-C1Y5Ewo_.js.map} +1 -1
  102. package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js → RichTextEditorContent-up4AqL7D.js} +44 -44
  103. package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js.map → RichTextEditorContent-up4AqL7D.js.map} +1 -1
  104. package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js → SaveBlockDialog-B9lwEP_T.js} +77 -77
  105. package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js.map → SaveBlockDialog-B9lwEP_T.js.map} +1 -1
  106. package/dist/{SavedBlocksBrowserModal-CE8n4EBS.js → cdn/chunks/SavedBlocksBrowserModal-fAeHUyxb.js} +103 -106
  107. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BPYcRoGa.js.map → SavedBlocksBrowserModal-fAeHUyxb.js.map} +1 -1
  108. package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js → SavedBlocksPanels-DRDTLDyZ.js} +9 -9
  109. package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js.map → SavedBlocksPanels-DRDTLDyZ.js.map} +1 -1
  110. package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js → SavedBlocksPickBar-B6b5z-o3.js} +16 -16
  111. package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js.map → SavedBlocksPickBar-B6b5z-o3.js.map} +1 -1
  112. package/dist/cdn/chunks/TemplateSettings-CWUpUKJb.js +266 -0
  113. package/dist/cdn/chunks/TemplateSettings-CWUpUKJb.js.map +1 -0
  114. package/dist/cdn/chunks/TestEmailModal-DQxnW5Q5.js +212 -0
  115. package/dist/cdn/chunks/TestEmailModal-DQxnW5Q5.js.map +1 -0
  116. package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js → TestEmailPanel-BcO_-16H.js} +5 -5
  117. package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js.map → TestEmailPanel-BcO_-16H.js.map} +1 -1
  118. package/dist/cdn/chunks/TitleEditor-pmycpmTd.js +202 -0
  119. package/dist/cdn/chunks/TitleEditor-pmycpmTd.js.map +1 -0
  120. package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js +45 -0
  121. package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js.map +1 -0
  122. package/dist/cdn/chunks/Toolbar-BlWVQRcA.js +3626 -0
  123. package/dist/cdn/chunks/Toolbar-BlWVQRcA.js.map +1 -0
  124. package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js → TplModal-ClSSGX7a.js} +20 -20
  125. package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js.map → TplModal-ClSSGX7a.js.map} +1 -1
  126. package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js → VersionHistoryMenu-CZury5gU.js} +33 -33
  127. package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js.map → VersionHistoryMenu-CZury5gU.js.map} +1 -1
  128. package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js → VersionHistoryPanels-B8GPBKMq.js} +6 -6
  129. package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js.map → VersionHistoryPanels-B8GPBKMq.js.map} +1 -1
  130. package/dist/cdn/chunks/VersionPreviewBanner-C4Ji8nu4.js +39 -0
  131. package/dist/cdn/chunks/VersionPreviewBanner-C4Ji8nu4.js.map +1 -0
  132. package/dist/cdn/chunks/WrapperBlock-BoUflYwY.js +46 -0
  133. package/dist/cdn/chunks/WrapperBlock-BoUflYwY.js.map +1 -0
  134. package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js → blockTypeIcons-Cc6RJ27V.js} +5 -5
  135. package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js.map → blockTypeIcons-Cc6RJ27V.js.map} +1 -1
  136. package/dist/{ca-CD-Kt1qz.js → cdn/chunks/ca-DOuIxWRv.js} +116 -0
  137. package/dist/cdn/chunks/ca-DOuIxWRv.js.map +1 -0
  138. package/dist/cdn/chunks/composables-C1KU4ZHw.js +3039 -0
  139. package/dist/cdn/chunks/composables-C1KU4ZHw.js.map +1 -0
  140. package/dist/cdn/chunks/{createCloudRuntime-Cth2JCEh.js → createCloudRuntime-C2Zs5F1O.js} +75 -73
  141. package/dist/cdn/chunks/createCloudRuntime-C2Zs5F1O.js.map +1 -0
  142. package/dist/{de-CeFJ6wbM.js → cdn/chunks/de-DaOUfYBX.js} +116 -0
  143. package/dist/cdn/chunks/de-DaOUfYBX.js.map +1 -0
  144. package/dist/cdn/chunks/{dist-8ym3y-pH.js → dist-BzXULHvI.js} +48 -48
  145. package/dist/cdn/chunks/{dist-8ym3y-pH.js.map → dist-BzXULHvI.js.map} +1 -1
  146. package/dist/cdn/chunks/{dist-BMzNabtD.js → dist-DqGgijFI.js} +114 -114
  147. package/dist/cdn/chunks/{dist-BMzNabtD.js.map → dist-DqGgijFI.js.map} +1 -1
  148. package/dist/cdn/chunks/{draggable-Du8AUMFT.js → draggable-DepKdldn.js} +1491 -1486
  149. package/dist/cdn/chunks/draggable-DepKdldn.js.map +1 -0
  150. package/dist/cdn/chunks/{editor-modal-CyCe560f.js → editor-modal-erQEOHZN.js} +781 -781
  151. package/dist/cdn/chunks/{editor-modal-CyCe560f.js.map → editor-modal-erQEOHZN.js.map} +1 -1
  152. package/dist/cdn/chunks/en-B6tLGRHq.js +1 -0
  153. package/dist/{en-D14i5nFh.js → cdn/chunks/en-C0pHHMiR.js} +116 -0
  154. package/dist/cdn/chunks/en-C0pHHMiR.js.map +1 -0
  155. package/dist/{es-zDacbMhs.js → cdn/chunks/es-CxyEKr6n.js} +116 -0
  156. package/dist/cdn/chunks/es-CxyEKr6n.js.map +1 -0
  157. package/dist/cdn/chunks/{extensions-CFF2KWy-.js → extensions-DcMKZpzh.js} +59 -59
  158. package/dist/cdn/chunks/{extensions-CFF2KWy-.js.map → extensions-DcMKZpzh.js.map} +1 -1
  159. package/dist/{fr-CSgYtjOd.js → cdn/chunks/fr-CYbamiI6.js} +116 -0
  160. package/dist/cdn/chunks/fr-CYbamiI6.js.map +1 -0
  161. package/dist/cdn/chunks/{icons-okSPsLOa.js → icons-Da9GKjPx.js} +188 -147
  162. package/dist/cdn/chunks/icons-Da9GKjPx.js.map +1 -0
  163. package/dist/{ja-B7H3ID8O.js → cdn/chunks/ja-DfaIAoGI.js} +116 -0
  164. package/dist/cdn/chunks/ja-DfaIAoGI.js.map +1 -0
  165. package/dist/cdn/chunks/keys-CoQtCqNv.js +11 -0
  166. package/dist/cdn/chunks/keys-CoQtCqNv.js.map +1 -0
  167. package/dist/cdn/chunks/languageName-DEEOhDWI.js +12 -0
  168. package/dist/cdn/chunks/languageName-DEEOhDWI.js.map +1 -0
  169. package/dist/{nl-176ySmc5.js → cdn/chunks/nl-DkrB-VKZ.js} +116 -0
  170. package/dist/cdn/chunks/nl-DkrB-VKZ.js.map +1 -0
  171. package/dist/cdn/chunks/normalizeMergeTagMarkup-cC32Ox6A.js +290 -0
  172. package/dist/cdn/chunks/normalizeMergeTagMarkup-cC32Ox6A.js.map +1 -0
  173. package/dist/cdn/chunks/noticeTones-D7BPu-Le.js +16 -0
  174. package/dist/cdn/chunks/noticeTones-D7BPu-Le.js.map +1 -0
  175. package/dist/cdn/chunks/plural-CyxrJXL1.js +17 -0
  176. package/dist/cdn/chunks/plural-CyxrJXL1.js.map +1 -0
  177. package/dist/{preRenderCustomBlocks--_xc0XK3.js → cdn/chunks/preRenderCustomBlocks-f7GEKdvw.js} +5 -3
  178. package/dist/cdn/chunks/{preRenderCustomBlocks-BcXIz7oJ.js.map → preRenderCustomBlocks-f7GEKdvw.js.map} +1 -1
  179. package/dist/{pt-BR-dDlTwX18.js → cdn/chunks/pt-BR-CY5Ye7eP.js} +116 -0
  180. package/dist/cdn/chunks/pt-BR-CY5Ye7eP.js.map +1 -0
  181. package/dist/cdn/chunks/sanitizeHtml-WTfz9lZd.js +61 -0
  182. package/dist/cdn/chunks/sanitizeHtml-WTfz9lZd.js.map +1 -0
  183. package/dist/cdn/chunks/socialIcons-DeCYorUT.js +2638 -0
  184. package/dist/cdn/chunks/socialIcons-DeCYorUT.js.map +1 -0
  185. package/dist/cdn/chunks/{src-DEd87i_U.js → src-A_cKeTM_.js} +618 -461
  186. package/dist/cdn/chunks/src-A_cKeTM_.js.map +1 -0
  187. package/dist/cdn/chunks/src-BQUv2CYU.js +2606 -0
  188. package/dist/cdn/chunks/src-BQUv2CYU.js.map +1 -0
  189. package/dist/cdn/chunks/src-BWX_xVxO.js +671 -0
  190. package/dist/cdn/chunks/src-BWX_xVxO.js.map +1 -0
  191. package/dist/{styleConstants-B8xVRiwX.js → cdn/chunks/styleConstants-CgiNKdnc.js} +7 -5
  192. package/dist/cdn/chunks/styleConstants-CgiNKdnc.js.map +1 -0
  193. package/dist/cdn/chunks/templateSettingsFields-cjlP-jdw.js.map +1 -1
  194. package/dist/cdn/chunks/{tiptap-CbiTlECY.js → tiptap-Dipw_zOQ.js} +40 -40
  195. package/dist/cdn/chunks/{tiptap-CbiTlECY.js.map → tiptap-Dipw_zOQ.js.map} +1 -1
  196. package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js → useCloudI18n-Cc5NZqiI.js} +3 -3
  197. package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js.map → useCloudI18n-Cc5NZqiI.js.map} +1 -1
  198. package/dist/cdn/chunks/useEditorRoot-D_LuZ_hE.js +9 -0
  199. package/dist/cdn/chunks/{useEditorRoot-vjZJwKrV.js.map → useEditorRoot-D_LuZ_hE.js.map} +1 -1
  200. package/dist/cdn/chunks/{useI18n-D8pY4LTq.js → useI18n-BnJYydPv.js} +3 -3
  201. package/dist/cdn/chunks/{useI18n-D8pY4LTq.js.map → useI18n-BnJYydPv.js.map} +1 -1
  202. package/dist/cdn/chunks/useLocalizedDisplay-aGfnO90D.js +33 -0
  203. package/dist/cdn/chunks/useLocalizedDisplay-aGfnO90D.js.map +1 -0
  204. package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js → useLogicTag-DtYe8HIq.js} +5 -5
  205. package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js.map → useLogicTag-DtYe8HIq.js.map} +1 -1
  206. package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js → useMergeTag-B8ULmsnp.js} +6 -6
  207. package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js.map → useMergeTag-B8ULmsnp.js.map} +1 -1
  208. package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js +78 -0
  209. package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js.map +1 -0
  210. package/dist/cdn/chunks/{useScrollToBlock-vjQ0fe-L.js → useScrollToBlock-Ct1AwLD-.js} +5 -5
  211. package/dist/cdn/chunks/useScrollToBlock-Ct1AwLD-.js.map +1 -0
  212. package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js → withCurrentFont-MK8ga9q9.js} +2 -2
  213. package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js.map → withCurrentFont-MK8ga9q9.js.map} +1 -1
  214. package/dist/cdn/editor.css +1 -1
  215. package/dist/cdn/editor.js +2189 -1495
  216. package/dist/cdn/editor.js.map +1 -1
  217. package/dist/{check-BZ8o0eet.js → check-XMnOOIEC.js} +1 -1
  218. package/dist/{chevron-down-DfAAfILv.js → chevron-down-DmamTEWQ.js} +1 -1
  219. package/dist/{chevron-right-Bk4mGdr7.js → chevron-right-BEFXOH27.js} +1 -1
  220. package/dist/{chevron-up-MhUf_azW.js → chevron-up-Dw7woXj8.js} +1 -1
  221. package/dist/{circle-alert-CShJwVFv.js → circle-alert-BTKC9vkq.js} +1 -1
  222. package/dist/{clock-CTfD6OCt.js → clock-BVT5u2uG.js} +1 -1
  223. package/dist/composables-CMIrGXJ1.js +4517 -0
  224. package/dist/{createCloudRuntime-DCgO4A1r.js → createCloudRuntime-DGV5a5Af.js} +54 -52
  225. package/dist/{createLucideIcon-CvhTA2KG.js → createLucideIcon-CgDE3xAR.js} +16 -16
  226. package/dist/{cdn/chunks/de-CeFJ6wbM.js → de-DaOUfYBX.js} +114 -2
  227. package/dist/{dist-ByCWA2Tv.js → dist-0alKVRc_.js} +101 -101
  228. package/dist/{dist-Cy8I5scI.js → dist-54VCNoC0.js} +2 -2
  229. package/dist/dist-6DU0me3E.js +4 -0
  230. package/dist/{dist-p3wymUDt.js → dist-B8dY8drK.js} +2 -2
  231. package/dist/{dist-Dd5MU2Ev.js → dist-B9a7iVye.js} +2 -2
  232. package/dist/{dist-V7W1UhVr.js → dist-BWflWcpW.js} +2 -2
  233. package/dist/{dist-D6fZec6r.js → dist-C3hu_C3w.js} +2 -2
  234. package/dist/{dist-CVy-7PHQ.js → dist-CX7skkvG.js} +48 -48
  235. package/dist/dist-CcOn7WCo.js +4 -0
  236. package/dist/dist-Cdkm20M6.js +2542 -0
  237. package/dist/{dist-BS5uKktL.js → dist-ChOb5XHW.js} +2 -2
  238. package/dist/{dist-BF5zEHop.js → dist-DZ3X-uB8.js} +2 -2
  239. package/dist/{dist-CWSG7Kj0.js → dist-D_XrUEET.js} +5 -5
  240. package/dist/{dist-txQLT2sF.js → dist-TAv500j6.js} +2 -2
  241. package/dist/{dist-D6cMdrfG.js → dist-fqSers8_.js} +55 -55
  242. package/dist/{editor-modal-zaZHcmlO.js → editor-modal-BeX6otLk.js} +953 -952
  243. package/dist/{cdn/chunks/en-D14i5nFh.js → en-C0pHHMiR.js} +114 -2
  244. package/dist/en-Do0SU6tR.js +1 -0
  245. package/dist/{cdn/chunks/es-zDacbMhs.js → es-CxyEKr6n.js} +114 -2
  246. package/dist/{extensions-fo_c-vqf.js → extensions-BJ184osp.js} +173 -173
  247. package/dist/{eye-7W4t5e0Q.js → eye-ByMgHeA_.js} +1 -1
  248. package/dist/{cdn/chunks/fr-CSgYtjOd.js → fr-CYbamiI6.js} +114 -2
  249. package/dist/{image-BDiRFzSd.js → image-Ch8tR35K.js} +1 -1
  250. package/dist/index.d.ts +182 -14
  251. package/dist/{info-Cxi3-Kh9.js → info-DzSD-Wpk.js} +1 -1
  252. package/dist/{cdn/chunks/ja-B7H3ID8O.js → ja-DfaIAoGI.js} +114 -2
  253. package/dist/keys-BCqskl51.js +9 -0
  254. package/dist/languageName-DEEOhDWI.js +10 -0
  255. package/dist/{link-ju_2Cmir.js → link-oDn9AR2w.js} +1 -1
  256. package/dist/{list-DYZJf0aZ.js → list-C5t07dp8.js} +1 -1
  257. package/dist/{loader-circle-BZRD0a4I.js → loader-circle-k6xvKgUB.js} +1 -1
  258. package/dist/{message-circle-DuEw4Zfx.js → message-circle-C23R6OJR.js} +1 -1
  259. package/dist/{cdn/chunks/nl-176ySmc5.js → nl-DkrB-VKZ.js} +114 -2
  260. package/dist/normalizeMergeTagMarkup-CUCo7B5X.js +288 -0
  261. package/dist/noticeTones-D7BPu-Le.js +14 -0
  262. package/dist/{package-CePMr2kK.js → package-C90eQ7NU.js} +1 -1
  263. package/dist/{pencil-D3aFCL7c.js → pencil-BK7GrQuA.js} +1 -1
  264. package/dist/plural-CyxrJXL1.js +15 -0
  265. package/dist/plus-Cr0Mis63.js +13 -0
  266. package/dist/{cdn/chunks/preRenderCustomBlocks-BcXIz7oJ.js → preRenderCustomBlocks-Bs3N9no-.js} +4 -6
  267. package/dist/{cdn/chunks/pt-BR-dDlTwX18.js → pt-BR-CY5Ye7eP.js} +114 -2
  268. package/dist/{refresh-cw-xnro7_Sk.js → refresh-cw-_ZLOIEvA.js} +2 -12
  269. package/dist/rotate-ccw-CB5wsHwv.js +13 -0
  270. package/dist/{runtime-dom.esm-bundler-BURR-bj5.js → runtime-dom.esm-bundler-DlHp8xgy.js} +154 -154
  271. package/dist/sanitizeHtml-2rjV0r-6.js +962 -0
  272. package/dist/{search-CDrstRBv.js → search-BmrQNox8.js} +1 -1
  273. package/dist/{send-DROkPOaX.js → send-blAsIBBg.js} +1 -1
  274. package/dist/{smartphone-Bx6u_tjn.js → smartphone-BPpWYrwV.js} +1 -1
  275. package/dist/socialIcons-TFiOkpoU.js +2705 -0
  276. package/dist/{sparkles-CdaTtvoz.js → sparkles-OqIxrNp-.js} +1 -1
  277. package/dist/{square-BbCROH_f.js → square-BP-V7iT-.js} +1 -1
  278. package/dist/style.css +1 -1
  279. package/dist/{cdn/chunks/styleConstants-B8xVRiwX.js → styleConstants-CgiNKdnc.js} +5 -7
  280. package/dist/templatical-editor.js +2438 -1752
  281. package/dist/{text-align-start-CGacJ9Vw.js → text-align-start-4mwX2o-F.js} +13 -13
  282. package/dist/{trash-DxCd7zIy.js → trash-B99WixTA.js} +1 -1
  283. package/dist/{triangle-alert-7_oaitpf.js → triangle-alert-CHMiDkHa.js} +1 -1
  284. package/dist/{upload-DuFEOi_0.js → upload-Cp8o-hrN.js} +1 -1
  285. package/dist/{useCloudI18n-DEMmUKuO.js → useCloudI18n-Dh2iydo1.js} +4 -4
  286. package/dist/useEditorRoot-DY3mgcHm.js +7 -0
  287. package/dist/{useI18n-BBrHTdu8.js → useI18n-CgtvtF4C.js} +4 -4
  288. package/dist/useLocalizedDisplay-DNNwDRxL.js +31 -0
  289. package/dist/{useLogicTag-ZPC39rfH.js → useLogicTag-BXXXQQmi.js} +4 -4
  290. package/dist/{useMergeTag-BQ4qqWpQ.js → useMergeTag-C9Okr87y.js} +5 -5
  291. package/dist/usePopoverPosition-VDQjyX_A.js +76 -0
  292. package/dist/{useScrollToBlock-BSyAV4pk.js → useScrollToBlock-B35ObCGK.js} +5 -5
  293. package/dist/{vue.runtime.esm-bundler-CnEeTfhs.js → vue.runtime.esm-bundler-BJXc_Mri.js} +1373 -1368
  294. package/dist/withCurrentFont-DJiQqZzL.js +18 -0
  295. package/dist/{x-BpfG7v9g.js → x-BIBStNMS.js} +1 -1
  296. package/package.json +21 -21
  297. package/dist/AiAltTextPopover-DawbUywc.js +0 -105
  298. package/dist/AiChatPanel-CupPhmsN.js +0 -548
  299. package/dist/BlockIssueBadge-BxpDy3u-.js +0 -33
  300. package/dist/BlockPreviewCanvas-B-4bmJ3t.js +0 -140
  301. package/dist/CollaborationNotices-CTw4JThq.js +0 -75
  302. package/dist/CommentsPanel-DwwFuh1h.js +0 -16
  303. package/dist/CommentsSidebar-9ZfiC2DO.js +0 -500
  304. package/dist/CountdownToolbar-BqoYzf_6.js +0 -197
  305. package/dist/IssuesPanel-4ykrf1ax.js +0 -359
  306. package/dist/MergeTagTextarea-CPFEjJZd.js +0 -69
  307. package/dist/ParagraphEditor-CWXfurGh.js +0 -796
  308. package/dist/TemplateSettings-CS0f1Ues.js +0 -236
  309. package/dist/TestEmailModal-DBD0X5nV.js +0 -209
  310. package/dist/TitleEditor-DSqtle77.js +0 -198
  311. package/dist/ToggleSwitch-JykPyD_8.js +0 -36
  312. package/dist/Toolbar-BZPFfKrf.js +0 -3145
  313. package/dist/VersionPreviewBanner-DECaBwLq.js +0 -37
  314. package/dist/WrapperBlock-BsJv_Fiw.js +0 -44
  315. package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js +0 -106
  316. package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js.map +0 -1
  317. package/dist/cdn/chunks/AiAltTextReview-BGLLSKLm.js.map +0 -1
  318. package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js +0 -474
  319. package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js.map +0 -1
  320. package/dist/cdn/chunks/AiRewriteMenu-qf-cfEpy.js.map +0 -1
  321. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +0 -34
  322. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +0 -1
  323. package/dist/cdn/chunks/BlockPreviewCanvas-DGBh6mqe.js +0 -142
  324. package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js +0 -77
  325. package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js.map +0 -1
  326. package/dist/cdn/chunks/CommentsPanel-DoJnKLXI.js +0 -18
  327. package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js +0 -470
  328. package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +0 -1
  329. package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js +0 -199
  330. package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js.map +0 -1
  331. package/dist/cdn/chunks/IssuesPanel-C7LfxaAY.js.map +0 -1
  332. package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js +0 -1051
  333. package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js.map +0 -1
  334. package/dist/cdn/chunks/MediaEditModal-Cpcod6_U.js.map +0 -1
  335. package/dist/cdn/chunks/MergeTagModeToggle-BgKEVUtV.js.map +0 -1
  336. package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js +0 -71
  337. package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js.map +0 -1
  338. package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js +0 -631
  339. package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +0 -1
  340. package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js +0 -208
  341. package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js.map +0 -1
  342. package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js +0 -209
  343. package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js.map +0 -1
  344. package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js +0 -198
  345. package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +0 -1
  346. package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js +0 -38
  347. package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js.map +0 -1
  348. package/dist/cdn/chunks/Toolbar-CdpsvNOR.js +0 -3061
  349. package/dist/cdn/chunks/Toolbar-CdpsvNOR.js.map +0 -1
  350. package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js +0 -39
  351. package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js.map +0 -1
  352. package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js +0 -46
  353. package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js.map +0 -1
  354. package/dist/cdn/chunks/ca-CD-Kt1qz.js.map +0 -1
  355. package/dist/cdn/chunks/createCloudRuntime-Cth2JCEh.js.map +0 -1
  356. package/dist/cdn/chunks/de-CeFJ6wbM.js.map +0 -1
  357. package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +0 -1
  358. package/dist/cdn/chunks/en-D14i5nFh.js.map +0 -1
  359. package/dist/cdn/chunks/en-TIqv4ag3.js +0 -1
  360. package/dist/cdn/chunks/es-zDacbMhs.js.map +0 -1
  361. package/dist/cdn/chunks/fr-CSgYtjOd.js.map +0 -1
  362. package/dist/cdn/chunks/icons-okSPsLOa.js.map +0 -1
  363. package/dist/cdn/chunks/ja-B7H3ID8O.js.map +0 -1
  364. package/dist/cdn/chunks/keys-CUj6UA38.js +0 -11
  365. package/dist/cdn/chunks/keys-CUj6UA38.js.map +0 -1
  366. package/dist/cdn/chunks/nl-176ySmc5.js.map +0 -1
  367. package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js +0 -198
  368. package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js.map +0 -1
  369. package/dist/cdn/chunks/pt-BR-dDlTwX18.js.map +0 -1
  370. package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js +0 -72
  371. package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js.map +0 -1
  372. package/dist/cdn/chunks/socialIcons-jsTDmkbb.js +0 -2008
  373. package/dist/cdn/chunks/socialIcons-jsTDmkbb.js.map +0 -1
  374. package/dist/cdn/chunks/src-C7bkofBL.js +0 -647
  375. package/dist/cdn/chunks/src-C7bkofBL.js.map +0 -1
  376. package/dist/cdn/chunks/src-DEd87i_U.js.map +0 -1
  377. package/dist/cdn/chunks/src-DwWrYnUj.js +0 -1404
  378. package/dist/cdn/chunks/src-DwWrYnUj.js.map +0 -1
  379. package/dist/cdn/chunks/styleConstants-B8xVRiwX.js.map +0 -1
  380. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +0 -2582
  381. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +0 -1
  382. package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +0 -9
  383. package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js +0 -70
  384. package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js.map +0 -1
  385. package/dist/cdn/chunks/useScrollToBlock-vjQ0fe-L.js.map +0 -1
  386. package/dist/dist-CKi_npZM.js +0 -1344
  387. package/dist/dist-DyFArF_G.js +0 -4
  388. package/dist/dist-pA3ooG6N.js +0 -4
  389. package/dist/en-Db76vJbY.js +0 -1
  390. package/dist/keys-BgRERHzu.js +0 -9
  391. package/dist/normalizeMergeTagMarkup-CELnOlgK.js +0 -196
  392. package/dist/sanitizeHtml-BzfzpYJY.js +0 -942
  393. package/dist/socialIcons-D7MGsg0d.js +0 -2075
  394. package/dist/useEditorCore-BSo2sSID.js +0 -4059
  395. package/dist/useEditorRoot-BMcoCLBx.js +0 -7
  396. package/dist/usePopoverPosition-DV1PxL66.js +0 -68
  397. package/dist/withCurrentFont-B22FXAF5.js +0 -18
@@ -1,78 +1,40 @@
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
- import { u as fe } from "./styleConstants-B8xVRiwX.js";
14
- var pe = N({
15
- name: "braces",
16
- size: 24,
17
- node: [["path", {
18
- d: "M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",
19
- key: "ezmyqa"
20
- }], ["path", {
21
- d: "M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",
22
- key: "e1hn23"
23
- }]],
24
- aliases: ["curly-braces"]
25
- }), L = N({
26
- name: "scan-line",
27
- size: 24,
28
- node: [
29
- ["path", {
30
- d: "M3 7V5a2 2 0 0 1 2-2h2",
31
- key: "aa7l1z"
32
- }],
33
- ["path", {
34
- d: "M17 3h2a2 2 0 0 1 2 2v2",
35
- key: "4qcy5o"
36
- }],
37
- ["path", {
38
- d: "M21 17v2a2 2 0 0 1-2 2h-2",
39
- key: "6vwrx8"
40
- }],
41
- ["path", {
42
- d: "M7 21H5a2 2 0 0 1-2-2v-2",
43
- key: "ioqczr"
44
- }],
45
- ["path", {
46
- d: "M7 12h10",
47
- key: "b7w52i"
48
- }]
49
- ]
50
- }), R = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, z = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n, B = (e) => ge(V(e)), V = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
1
+ import { C as e, E as t, F as n, G as r, H as i, L as a, O as o, Q as s, X as c, Y as l, _ as u, b as d, c as f, ct as p, dt as m, f as h, g, h as _, j as v, l as y, m as b, mt as x, n as S, p as C, pt as w, r as T, tt as E, u as D, x as O } from "./draggable-DepKdldn.js";
2
+ import { c as k, i as A, s as j, u as M } from "./src-BQUv2CYU.js";
3
+ import { G as N, Ht as P, N as F, t as I } from "./icons-Da9GKjPx.js";
4
+ import { et as ee, it as te, p as ne, tt as re } from "./keys-CoQtCqNv.js";
5
+ import { t as L } from "./useI18n-BnJYydPv.js";
6
+ import { d as ie } from "./styleConstants-CgiNKdnc.js";
7
+ import { t as ae } from "./dist-DqGgijFI.js";
8
+ import { t as R } from "./useMergeTag-B8ULmsnp.js";
9
+ import { a as oe, c as se, n as ce, o as le, r as ue, s as de, t as fe } from "./usePopoverPosition-BWAXWeBv.js";
10
+ import { t as z } from "./useLogicTag-DtYe8HIq.js";
11
+ // ../../node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/math.js
12
+ var B = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, V = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n, H = (e) => he(U(e)), U = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
51
13
  r: parseInt(e[0] + e[0], 16),
52
14
  g: parseInt(e[1] + e[1], 16),
53
15
  b: parseInt(e[2] + e[2], 16),
54
- a: e.length === 4 ? z(parseInt(e[3] + e[3], 16) / 255, 2) : 1
16
+ a: e.length === 4 ? V(parseInt(e[3] + e[3], 16) / 255, 2) : 1
55
17
  } : {
56
18
  r: parseInt(e.substring(0, 2), 16),
57
19
  g: parseInt(e.substring(2, 4), 16),
58
20
  b: parseInt(e.substring(4, 6), 16),
59
- a: e.length === 8 ? z(parseInt(e.substring(6, 8), 16) / 255, 2) : 1
60
- }), H = (e) => he(me(e)), U = ({ h: e, s: t, v: n, a: r }) => {
21
+ a: e.length === 8 ? V(parseInt(e.substring(6, 8), 16) / 255, 2) : 1
22
+ }), pe = (e) => me(K(e)), W = ({ h: e, s: t, v: n, a: r }) => {
61
23
  let i = (200 - t) * n / 100;
62
24
  return {
63
- h: z(e),
64
- s: z(i > 0 && i < 200 ? t * n / 100 / (i <= 100 ? i : 200 - i) * 100 : 0),
65
- l: z(i / 2),
66
- a: z(r, 2)
25
+ h: V(e),
26
+ s: V(i > 0 && i < 200 ? t * n / 100 / (i <= 100 ? i : 200 - i) * 100 : 0),
27
+ l: V(i / 2),
28
+ a: V(r, 2)
67
29
  };
68
- }, W = (e) => {
69
- let { h: t, s: n, l: r } = U(e);
30
+ }, G = (e) => {
31
+ let { h: t, s: n, l: r } = W(e);
70
32
  return `hsl(${t}, ${n}%, ${r}%)`;
71
- }, me = ({ h: e, s: t, v: n, a: r }) => {
33
+ }, K = ({ h: e, s: t, v: n, a: r }) => {
72
34
  e = e / 360 * 6, t /= 100, n /= 100;
73
35
  let i = Math.floor(e), a = n * (1 - t), o = n * (1 - (e - i) * t), s = n * (1 - (1 - e + i) * t), c = i % 6;
74
36
  return {
75
- r: z([
37
+ r: V([
76
38
  n,
77
39
  o,
78
40
  a,
@@ -80,7 +42,7 @@ var pe = N({
80
42
  s,
81
43
  n
82
44
  ][c] * 255),
83
- g: z([
45
+ g: V([
84
46
  s,
85
47
  n,
86
48
  n,
@@ -88,7 +50,7 @@ var pe = N({
88
50
  a,
89
51
  a
90
52
  ][c] * 255),
91
- b: z([
53
+ b: V([
92
54
  a,
93
55
  a,
94
56
  s,
@@ -96,49 +58,49 @@ var pe = N({
96
58
  n,
97
59
  o
98
60
  ][c] * 255),
99
- a: z(r, 2)
61
+ a: V(r, 2)
100
62
  };
101
- }, G = (e) => {
63
+ }, q = (e) => {
102
64
  let t = e.toString(16);
103
65
  return t.length < 2 ? "0" + t : t;
66
+ }, me = ({ r: e, g: t, b: n, a: r }) => {
67
+ let i = r < 1 ? q(V(r * 255)) : "";
68
+ return "#" + q(e) + q(t) + q(n) + i;
104
69
  }, he = ({ r: e, g: t, b: n, a: r }) => {
105
- let i = r < 1 ? G(z(r * 255)) : "";
106
- return "#" + G(e) + G(t) + G(n) + i;
107
- }, ge = ({ r: e, g: t, b: n, a: r }) => {
108
70
  let i = Math.max(e, t, n), a = i - Math.min(e, t, n), o = a ? i === e ? (t - n) / a : i === t ? 2 + (n - e) / a : 4 + (e - t) / a : 0;
109
71
  return {
110
- h: z(60 * (o < 0 ? o + 6 : o)),
111
- s: z(i ? a / i * 100 : 0),
112
- v: z(i / 255 * 100),
72
+ h: V(60 * (o < 0 ? o + 6 : o)),
73
+ s: V(i ? a / i * 100 : 0),
74
+ v: V(i / 255 * 100),
113
75
  a: r
114
76
  };
115
- }, _e = (e, t) => {
77
+ }, ge = (e, t) => {
116
78
  if (e === t) return !0;
117
79
  for (let n in e) if (e[n] !== t[n]) return !1;
118
80
  return !0;
119
- }, ve = (e, t) => e.toLowerCase() === t.toLowerCase() || _e(V(e), V(t)), K = {}, q = (e) => {
120
- let t = K[e];
121
- return t || (t = document.createElement("template"), t.innerHTML = e, K[e] = t), t;
81
+ }, _e = (e, t) => e.toLowerCase() === t.toLowerCase() || ge(U(e), U(t)), ve = {}, ye = (e) => {
82
+ let t = ve[e];
83
+ return t || (t = document.createElement("template"), t.innerHTML = e, ve[e] = t), t;
122
84
  }, J = (e, t, n) => {
123
85
  e.dispatchEvent(new CustomEvent(t, {
124
86
  bubbles: !0,
125
87
  detail: n
126
88
  }));
127
- }, Y = !1, X = (e) => "touches" in e, ye = (e) => Y && !X(e) ? !1 : (Y ||= X(e), !0), be = (e, t) => {
89
+ }, Y = !1, X = (e) => "touches" in e, be = (e) => Y && !X(e) ? !1 : (Y ||= X(e), !0), Z = (e, t) => {
128
90
  let n = X(t) ? t.touches[0] : t, r = e.el.getBoundingClientRect();
129
91
  J(e.el, "move", e.getMove({
130
- x: R((n.pageX - (r.left + window.pageXOffset)) / r.width),
131
- y: R((n.pageY - (r.top + window.pageYOffset)) / r.height)
92
+ x: B((n.pageX - (r.left + window.pageXOffset)) / r.width),
93
+ y: B((n.pageY - (r.top + window.pageYOffset)) / r.height)
132
94
  }));
133
- }, Z = (e, t) => {
95
+ }, xe = (e, t) => {
134
96
  let n = t.keyCode;
135
97
  n > 40 || e.xy && n < 37 || n < 33 || (t.preventDefault(), J(e.el, "move", e.getMove({
136
98
  x: n === 39 ? .01 : n === 37 ? -.01 : n === 34 ? .05 : n === 33 ? -.05 : n === 35 ? 1 : n === 36 ? -1 : 0,
137
99
  y: n === 40 ? .01 : n === 38 ? -.01 : 0
138
100
  }, !0)));
139
- }, xe = class {
101
+ }, Se = class {
140
102
  constructor(e, t, n, r) {
141
- let i = q(`<div role="slider" tabindex="0" part="${t}" ${n}><div part="${t}-pointer"></div></div>`);
103
+ let i = ye(`<div role="slider" tabindex="0" part="${t}" ${n}><div part="${t}-pointer"></div></div>`);
142
104
  e.appendChild(i.content.cloneNode(!0));
143
105
  let a = e.querySelector(`[part=${t}]`);
144
106
  a.addEventListener("mousedown", this), a.addEventListener("touchstart", this), a.addEventListener("keydown", this), this.el = a, this.xy = r, this.nodes = [a.firstChild, a];
@@ -151,18 +113,18 @@ var pe = N({
151
113
  switch (e.type) {
152
114
  case "mousedown":
153
115
  case "touchstart":
154
- if (e.preventDefault(), !ye(e) || !Y && e.button != 0) return;
155
- this.el.focus(), be(this, e), this.dragging = !0;
116
+ if (e.preventDefault(), !be(e) || !Y && e.button != 0) return;
117
+ this.el.focus(), Z(this, e), this.dragging = !0;
156
118
  break;
157
119
  case "mousemove":
158
120
  case "touchmove":
159
- e.preventDefault(), be(this, e);
121
+ e.preventDefault(), Z(this, e);
160
122
  break;
161
123
  case "mouseup":
162
124
  case "touchend":
163
125
  this.dragging = !1;
164
126
  break;
165
- case "keydown": Z(this, e);
127
+ case "keydown": xe(this, e);
166
128
  }
167
129
  }
168
130
  style(e) {
@@ -170,25 +132,25 @@ var pe = N({
170
132
  for (let n in e) this.nodes[t].style.setProperty(n, e[n]);
171
133
  });
172
134
  }
173
- }, Se = class extends xe {
135
+ }, Ce = class extends Se {
174
136
  constructor(e) {
175
137
  super(e, "hue", "aria-label=\"Hue\" aria-valuemin=\"0\" aria-valuemax=\"360\"", !1);
176
138
  }
177
139
  update({ h: e }) {
178
140
  this.h = e, this.style([{
179
141
  left: `${e / 360 * 100}%`,
180
- color: W({
142
+ color: G({
181
143
  h: e,
182
144
  s: 100,
183
145
  v: 100,
184
146
  a: 1
185
147
  })
186
- }]), this.el.setAttribute("aria-valuenow", `${z(e)}`);
148
+ }]), this.el.setAttribute("aria-valuenow", `${V(e)}`);
187
149
  }
188
150
  getMove(e, t) {
189
- return { h: t ? R(this.h + e.x * 360, 0, 360) : 360 * e.x };
151
+ return { h: t ? B(this.h + e.x * 360, 0, 360) : 360 * e.x };
190
152
  }
191
- }, Ce = class extends xe {
153
+ }, Q = class extends Se {
192
154
  constructor(e) {
193
155
  super(e, "saturation", "aria-label=\"Color\"", !0);
194
156
  }
@@ -196,47 +158,47 @@ var pe = N({
196
158
  this.hsva = e, this.style([{
197
159
  top: `${100 - e.v}%`,
198
160
  left: `${e.s}%`,
199
- color: W(e)
200
- }, { "background-color": W({
161
+ color: G(e)
162
+ }, { "background-color": G({
201
163
  h: e.h,
202
164
  s: 100,
203
165
  v: 100,
204
166
  a: 1
205
- }) }]), this.el.setAttribute("aria-valuetext", `Saturation ${z(e.s)}%, Brightness ${z(e.v)}%`);
167
+ }) }]), this.el.setAttribute("aria-valuetext", `Saturation ${V(e.s)}%, Brightness ${V(e.v)}%`);
206
168
  }
207
169
  getMove(e, t) {
208
170
  return {
209
- s: t ? R(this.hsva.s + e.x * 100, 0, 100) : e.x * 100,
210
- v: t ? R(this.hsva.v - e.y * 100, 0, 100) : Math.round(100 - e.y * 100)
171
+ s: t ? B(this.hsva.s + e.x * 100, 0, 100) : e.x * 100,
172
+ v: t ? B(this.hsva.v - e.y * 100, 0, 100) : Math.round(100 - e.y * 100)
211
173
  };
212
174
  }
213
- }, we = ":host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:\"\";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}", Te = "[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}", Ee = "[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}", Q = Symbol("same"), De = Symbol("color"), Oe = Symbol("hsva"), $ = Symbol("update"), ke = Symbol("parts"), Ae = Symbol("css"), je = Symbol("sliders"), Me = class extends HTMLElement {
175
+ }, we = ":host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:\"\";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}", Te = "[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}", Ee = "[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}", $ = Symbol("same"), De = Symbol("color"), Oe = Symbol("hsva"), ke = Symbol("update"), Ae = Symbol("parts"), je = Symbol("css"), Me = Symbol("sliders"), Ne = class extends HTMLElement {
214
176
  static get observedAttributes() {
215
177
  return ["color"];
216
178
  }
217
- get [Ae]() {
179
+ get [je]() {
218
180
  return [
219
181
  we,
220
182
  Te,
221
183
  Ee
222
184
  ];
223
185
  }
224
- get [je]() {
225
- return [Ce, Se];
186
+ get [Me]() {
187
+ return [Q, Ce];
226
188
  }
227
189
  get color() {
228
190
  return this[De];
229
191
  }
230
192
  set color(e) {
231
- if (!this[Q](e)) {
193
+ if (!this[$](e)) {
232
194
  let t = this.colorModel.toHsva(e);
233
- this[$](t), this[De] = e;
195
+ this[ke](t), this[De] = e;
234
196
  }
235
197
  }
236
198
  constructor() {
237
199
  super();
238
- let e = q(`<style>${this[Ae].join("")}</style>`), t = this.attachShadow({ mode: "open" });
239
- t.appendChild(e.content.cloneNode(!0)), t.addEventListener("move", this), this[ke] = this[je].map((e) => new e(t));
200
+ let e = ye(`<style>${this[je].join("")}</style>`), t = this.attachShadow({ mode: "open" });
201
+ t.appendChild(e.content.cloneNode(!0)), t.addEventListener("move", this), this[Ae] = this[Me].map((e) => new e(t));
240
202
  }
241
203
  connectedCallback() {
242
204
  if (this.hasOwnProperty("color")) {
@@ -246,40 +208,40 @@ var pe = N({
246
208
  }
247
209
  attributeChangedCallback(e, t, n) {
248
210
  let r = this.colorModel.fromAttr(n);
249
- this[Q](r) || (this.color = r);
211
+ this[$](r) || (this.color = r);
250
212
  }
251
213
  handleEvent(e) {
252
214
  let t = this[Oe], n = {
253
215
  ...t,
254
216
  ...e.detail
255
217
  };
256
- this[$](n);
218
+ this[ke](n);
257
219
  let r;
258
- !_e(n, t) && !this[Q](r = this.colorModel.fromHsva(n)) && (this[De] = r, J(this, "color-changed", { value: r }));
220
+ !ge(n, t) && !this[$](r = this.colorModel.fromHsva(n)) && (this[De] = r, J(this, "color-changed", { value: r }));
259
221
  }
260
- [Q](e) {
222
+ [$](e) {
261
223
  return this.color && this.colorModel.equal(e, this.color);
262
224
  }
263
- [$](e) {
264
- this[Oe] = e, this[ke].forEach((t) => t.update(e));
225
+ [ke](e) {
226
+ this[Oe] = e, this[Ae].forEach((t) => t.update(e));
265
227
  }
266
- }, Ne = {
228
+ }, Pe = {
267
229
  defaultColor: "#000",
268
- toHsva: B,
269
- fromHsva: ({ h: e, s: t, v: n }) => H({
230
+ toHsva: H,
231
+ fromHsva: ({ h: e, s: t, v: n }) => pe({
270
232
  h: e,
271
233
  s: t,
272
234
  v: n,
273
235
  a: 1
274
236
  }),
275
- equal: ve,
237
+ equal: _e,
276
238
  fromAttr: (e) => e
277
- }, Pe = class extends Me {
239
+ }, Fe = class extends Ne {
278
240
  get colorModel() {
279
- return Ne;
241
+ return Pe;
280
242
  }
281
- }, Fe = class extends Pe {};
282
- customElements.define("hex-color-picker", Fe);
243
+ };
244
+ customElements.define("hex-color-picker", class extends Fe {});
283
245
  // src/components/ColorPicker.vue?vue&type=script&setup=true&lang.ts
284
246
  var Ie = [
285
247
  "disabled",
@@ -317,7 +279,7 @@ var Ie = [
317
279
  "placeholder",
318
280
  "disabled",
319
281
  "aria-label"
320
- ], Je = ["aria-label", "title"], Ye = /* @__PURE__ */ C({
282
+ ], Je = ["aria-label", "title"], Ye = /* @__PURE__ */ e({
321
283
  __name: "ColorPicker",
322
284
  props: {
323
285
  modelValue: {},
@@ -344,127 +306,131 @@ var Ie = [
344
306
  }
345
307
  },
346
308
  emits: ["update:modelValue"],
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
- ne(T, () => {
350
- C.value = !1;
351
- }, { ignore: [E] });
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
- function B(e) {
354
- return z.value !== "" && le(e) === z.value;
309
+ setup(e, { emit: t }) {
310
+ let s = e, c = se(), l = C(() => s.disabled || !c.value), v = t, { t: T } = L(), k = E(!1);
311
+ i(l, (e) => {
312
+ e && (k.value = !1);
313
+ }, { flush: "sync" });
314
+ let A = E(), j = E(), M = E(!1);
315
+ ae(A, () => {
316
+ k.value = !1;
317
+ }, { ignore: [j] });
318
+ let N = C(() => !s.modelValue), P = C(() => s.modelValue.trim().toLowerCase() === "transparent"), F = C(() => le(s.modelValue)), re = C(() => (s.modelValue ? de(s.modelValue) : null) || (de(s.seedColor) ?? "#ffffff")), R = C(() => !l.value && !N.value), z = o(ne, ue), B = C(() => [...new Set(s.presets ?? z.presets)]), V = C(() => s.allowCustom ?? z.allowCustom), H = C(() => B.value.length > 0), U = C(() => V.value || !H.value), pe = C(() => oe(s.modelValue));
319
+ function W(e) {
320
+ return pe.value !== "" && oe(e) === pe.value;
355
321
  }
356
- function V(e) {
357
- l("update:modelValue", e);
322
+ function G(e) {
323
+ l.value || v("update:modelValue", e);
358
324
  }
359
- let H = f(() => L.value && !R.value);
360
- function U(e) {
361
- return H.value ? e + 1 : e;
325
+ let K = C(() => H.value && !U.value);
326
+ function q(e) {
327
+ return K.value ? e + 1 : e;
362
328
  }
363
- let W = f(() => {
364
- if (H.value && O.value) return 0;
365
- let e = I.value.findIndex((e) => B(e));
366
- return e === -1 ? 0 : U(e);
329
+ let me = C(() => {
330
+ if (K.value && N.value) return 0;
331
+ let e = B.value.findIndex((e) => W(e));
332
+ return e === -1 ? 0 : q(e);
367
333
  });
368
- function me() {
369
- return W.value === 0 ? 0 : -1;
334
+ function he() {
335
+ return me.value === 0 ? 0 : -1;
370
336
  }
371
- function G(e) {
372
- return U(e) === W.value ? 0 : -1;
337
+ function ge(e) {
338
+ return q(e) === me.value ? 0 : -1;
373
339
  }
374
- function he(e) {
340
+ function _e(e) {
375
341
  if (![
376
342
  "ArrowRight",
377
343
  "ArrowDown",
378
344
  "ArrowLeft",
379
345
  "ArrowUp"
380
346
  ].includes(e.key)) return;
381
- let t = e.currentTarget, n = Array.from(t.querySelectorAll("[role=\"radio\"]")), r = e.target.closest("[role=\"radio\"]"), i = r ? n.indexOf(r) : -1;
382
- i !== -1 && (n[(i + (e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : -1) + n.length) % n.length]?.focus(), e.preventDefault());
347
+ let t = Array.from(e.currentTarget.querySelectorAll("[role=\"radio\"]")), n = e.target.closest("[role=\"radio\"]"), r = n ? t.indexOf(n) : -1;
348
+ r !== -1 && (t[(r + (e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : -1) + t.length) % t.length]?.focus(), e.preventDefault());
383
349
  }
384
- function ge(e) {
385
- D.value = !0, l("update:modelValue", e.detail.value);
350
+ function ve(e) {
351
+ l.value || (M.value = !0, v("update:modelValue", e.detail.value));
386
352
  }
387
- function _e() {
388
- D.value = !1;
353
+ function ye() {
354
+ l.value || (M.value = !1);
389
355
  }
390
- function ve() {
391
- !D.value && O.value && l("update:modelValue", N.value);
356
+ function J() {
357
+ l.value || !M.value && N.value && v("update:modelValue", re.value);
392
358
  }
393
- function K(e) {
394
- l("update:modelValue", e.target.value);
359
+ function Y(e) {
360
+ l.value || v("update:modelValue", e.target.value);
395
361
  }
396
- function q() {
397
- l("update:modelValue", "");
362
+ function X() {
363
+ l.value || v("update:modelValue", "");
398
364
  }
399
- function J() {
400
- l("update:modelValue", "transparent");
365
+ function be() {
366
+ l.value || v("update:modelValue", "transparent");
401
367
  }
402
- let Y = se(), { toLocal: X } = ue(), ye = t(re, null), be = t(ie, null), Z = e({
368
+ let Z = ce(), { toLocal: xe } = fe(), Se = o(ee, null), Ce = o(te, null), Q = E({
403
369
  top: 0,
404
370
  left: 0
405
371
  });
406
- function xe() {
407
- if (!a.disabled) {
408
- if (!C.value) {
409
- let e = E.value?.getBoundingClientRect();
372
+ function we() {
373
+ if (!l.value) {
374
+ if (!k.value) {
375
+ let e = j.value?.getBoundingClientRect();
410
376
  if (e) {
411
377
  let t = e.bottom + 8 + 240 <= window.innerHeight ? e.bottom + 8 : Math.max(8, e.top - 240 - 8);
412
- Z.value = X({
378
+ Q.value = xe({
413
379
  top: t,
414
380
  left: e.left
415
381
  });
416
382
  }
417
383
  }
418
- C.value = !C.value;
384
+ k.value = !k.value;
419
385
  }
420
386
  }
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", {
387
+ return (t, i) => (n(), u("div", { class: m(["tpl:flex tpl:items-center tpl:gap-2 tpl:relative", l.value && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
388
+ b("button", {
423
389
  ref_key: "swatchRef",
424
- ref: E,
390
+ ref: j,
425
391
  type: "button",
426
- disabled: n.disabled,
427
- "aria-label": n.ariaLabel || b(S).colorPicker.pickColor,
428
- title: n.ariaLabel || void 0,
429
- "aria-expanded": C.value,
430
- class: _([
392
+ disabled: l.value,
393
+ "aria-label": e.ariaLabel || p(T).colorPicker.pickColor,
394
+ title: e.ariaLabel || void 0,
395
+ "aria-expanded": k.value,
396
+ class: m([
431
397
  "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
- n.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer",
433
- C.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !n.disabled && "tpl:hover:border-[var(--tpl-text-dim)]",
434
- n.size === "sm" ? "tpl:size-8" : "tpl:size-10"
398
+ l.value ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer",
399
+ k.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !l.value && "tpl:hover:border-[var(--tpl-text-dim)]",
400
+ e.size === "sm" ? "tpl:size-8" : "tpl:size-10"
435
401
  ]),
436
- onClick: xe
437
- }, [v("span", {
438
- class: _(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", {
439
- "tpl-color-swatch-empty": O.value,
440
- "tpl-color-swatch-transparent": k.value
402
+ onClick: we
403
+ }, [b("span", {
404
+ class: m(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", {
405
+ "tpl-color-swatch-empty": N.value,
406
+ "tpl-color-swatch-transparent": P.value
441
407
  }]),
442
- style: o(O.value || k.value ? void 0 : { backgroundColor: A.value })
408
+ style: w(N.value || P.value ? void 0 : { backgroundColor: F.value })
443
409
  }, null, 6)], 10, Ie),
444
- !n.swatchOnly && R.value ? (g(), m("div", Le, [v("input", {
410
+ !e.swatchOnly && U.value ? (n(), u("div", Le, [b("input", {
445
411
  type: "text",
446
- class: _([b(fe), "tpl:w-full"]),
447
- style: o(P.value ? { paddingRight: "2.25rem" } : void 0),
448
- value: A.value,
449
- placeholder: n.placeholder || b(S).colorPicker.notSet,
450
- disabled: n.disabled,
451
- "aria-label": b(S).colorPicker.hexValue,
452
- onInput: K
453
- }, null, 46, Re), P.value ? (g(), m("button", {
412
+ class: m([p(ie), "tpl:w-full"]),
413
+ style: w(R.value ? { paddingRight: "2.25rem" } : void 0),
414
+ value: F.value,
415
+ placeholder: e.placeholder || p(T).colorPicker.notSet,
416
+ disabled: l.value,
417
+ "aria-label": p(T).colorPicker.hexValue,
418
+ onInput: Y
419
+ }, null, 46, Re), R.value ? (n(), u("button", {
454
420
  key: 0,
455
421
  type: "button",
456
- "aria-label": b(S).colorPicker.clear,
457
- title: b(S).colorPicker.clear,
422
+ "aria-label": p(T).colorPicker.clear,
423
+ title: p(T).colorPicker.clear,
458
424
  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
- onClick: q
460
- }, [u(b(de), {
425
+ onClick: X
426
+ }, [O(p(I), {
461
427
  size: 14,
462
428
  "stroke-width": 1.5
463
- })], 8, ze)) : p("", !0)])) : p("", !0),
464
- (g(), x(d, {
465
- to: b(Y),
466
- disabled: !b(Y)
467
- }, [u(te, {
429
+ })], 8, ze)) : g("", !0)])) : g("", !0),
430
+ (n(), _(h, {
431
+ to: p(Z),
432
+ disabled: !p(Z)
433
+ }, [O(S, {
468
434
  "enter-active-class": "tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
469
435
  "enter-from-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1",
470
436
  "enter-to-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
@@ -472,87 +438,87 @@ var Ie = [
472
438
  "leave-from-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
473
439
  "leave-to-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1"
474
440
  }, {
475
- default: r(() => [C.value ? (g(), m("div", {
441
+ default: r(() => [k.value ? (n(), u("div", {
476
442
  key: 0,
477
443
  ref_key: "popoverRef",
478
- ref: T,
479
- "data-tpl-theme": b(be),
444
+ ref: A,
445
+ "data-tpl-theme": p(Ce),
480
446
  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: o({
482
- top: `${Z.value.top}px`,
483
- left: `${Z.value.left}px`,
484
- ...b(ye)
447
+ style: w({
448
+ top: `${Q.value.top}px`,
449
+ left: `${Q.value.left}px`,
450
+ ...p(Se)
485
451
  })
486
452
  }, [
487
- n.allowTransparent ? (g(), m("button", {
453
+ e.allowTransparent ? (n(), u("button", {
488
454
  key: 0,
489
455
  type: "button",
490
456
  "data-testid": "color-picker-transparent",
491
- "aria-pressed": k.value,
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
- onClick: J
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", {
457
+ "aria-pressed": P.value,
458
+ "aria-label": p(T).colorPicker.transparent,
459
+ title: p(T).colorPicker.transparent,
460
+ class: m(["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)]", P.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)]"]),
461
+ onClick: be
462
+ }, [i[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(" " + x(p(T).colorPicker.transparent), 1)], 10, Ve)) : g("", !0),
463
+ H.value ? (n(), u("div", {
498
464
  key: 1,
499
465
  role: "radiogroup",
500
- "aria-label": b(S).colorPicker.presetColors,
501
- class: _(["tpl:flex tpl:flex-wrap tpl:gap-1.5", R.value && "tpl:mb-2"]),
502
- onKeydown: he
503
- }, [H.value ? (g(), m("button", {
466
+ "aria-label": p(T).colorPicker.presetColors,
467
+ class: m(["tpl:flex tpl:flex-wrap tpl:gap-1.5", U.value && "tpl:mb-2"]),
468
+ onKeydown: _e
469
+ }, [K.value ? (n(), u("button", {
504
470
  key: 0,
505
471
  type: "button",
506
472
  role: "radio",
507
- "aria-label": b(S).colorPicker.clear,
508
- title: b(S).colorPicker.clear,
509
- "aria-checked": O.value,
510
- tabindex: me(),
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
- onClick: q
513
- }, null, 10, Ue)) : p("", !0), (g(!0), m(y, null, s(I.value, (e, t) => (g(), m("button", {
473
+ "aria-label": p(T).colorPicker.clear,
474
+ title: p(T).colorPicker.clear,
475
+ "aria-checked": N.value,
476
+ tabindex: he(),
477
+ class: m(["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)]", N.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)]"]),
478
+ onClick: X
479
+ }, null, 10, Ue)) : g("", !0), (n(!0), u(D, null, a(B.value, (e, t) => (n(), u("button", {
514
480
  key: e,
515
481
  type: "button",
516
482
  role: "radio",
517
483
  "aria-label": e,
518
484
  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", {
485
+ "aria-checked": W(e),
486
+ tabindex: ge(t),
487
+ style: w({ backgroundColor: e }),
488
+ class: m(["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)]", W(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)]"]),
489
+ onClick: (t) => G(e)
490
+ }, null, 14, We))), 128))], 42, He)) : g("", !0),
491
+ U.value ? (n(), u("hex-color-picker", {
526
492
  key: 2,
527
- color: N.value,
528
- "aria-label": b(S).colorPicker.pickColor,
529
- onColorChanged: ge,
530
- onPointerdown: _e,
531
- onPointerup: ve,
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", {
493
+ color: re.value,
494
+ "aria-label": p(T).colorPicker.pickColor,
495
+ onColorChanged: ve,
496
+ onPointerdown: ye,
497
+ onPointerup: J,
498
+ onKeydown: i[0] ||= f((e) => k.value = !1, ["escape"])
499
+ }, null, 40, Ge)) : g("", !0),
500
+ e.swatchOnly && U.value ? (n(), u("div", Ke, [b("input", {
535
501
  type: "text",
536
- class: _([b(fe), "tpl:w-full"]),
537
- style: o(P.value ? { paddingRight: "2.25rem" } : void 0),
538
- value: A.value,
539
- placeholder: n.placeholder || b(S).colorPicker.notSet,
540
- disabled: n.disabled,
541
- "aria-label": b(S).colorPicker.hexValue,
542
- onChange: K,
543
- onKeydown: t[1] ||= ee(w((e) => e.target.blur(), ["prevent"]), ["enter"])
544
- }, null, 46, qe), P.value ? (g(), m("button", {
502
+ class: m([p(ie), "tpl:w-full"]),
503
+ style: w(R.value ? { paddingRight: "2.25rem" } : void 0),
504
+ value: F.value,
505
+ placeholder: e.placeholder || p(T).colorPicker.notSet,
506
+ disabled: l.value,
507
+ "aria-label": p(T).colorPicker.hexValue,
508
+ onChange: Y,
509
+ onKeydown: i[1] ||= f(y((e) => e.target.blur(), ["prevent"]), ["enter"])
510
+ }, null, 46, qe), R.value ? (n(), u("button", {
545
511
  key: 0,
546
512
  type: "button",
547
- "aria-label": b(S).colorPicker.clear,
548
- title: b(S).colorPicker.clear,
513
+ "aria-label": p(T).colorPicker.clear,
514
+ title: p(T).colorPicker.clear,
549
515
  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
- onClick: q
551
- }, [u(b(de), {
516
+ onClick: X
517
+ }, [O(p(I), {
552
518
  size: 14,
553
519
  "stroke-width": 1.5
554
- })], 8, Je)) : p("", !0)])) : p("", !0)
555
- ], 12, Be)) : p("", !0)]),
520
+ })], 8, Je)) : g("", !0)])) : g("", !0)
521
+ ], 12, Be)) : g("", !0)]),
556
522
  _: 1
557
523
  })], 8, ["to", "disabled"]))
558
524
  ], 2));
@@ -568,7 +534,7 @@ var Ie = [
568
534
  "data-merge-tag-value",
569
535
  "onMousedown",
570
536
  "onMousemove"
571
- ], $e = { class: "tpl:font-medium" }, et = { class: "tpl:text-[var(--tpl-text-dim)] tpl:font-mono" }, tt = /* @__PURE__ */ C({
537
+ ], $e = { class: "tpl:font-medium" }, et = { class: "tpl:text-[var(--tpl-text-dim)] tpl:font-mono" }, tt = /* @__PURE__ */ e({
572
538
  __name: "MergeTagSuggestionList",
573
539
  props: {
574
540
  items: {},
@@ -579,26 +545,26 @@ var Ie = [
579
545
  emits: ["select", "hover"],
580
546
  setup(e) {
581
547
  let t = e;
582
- function n(e) {
548
+ function r(e) {
583
549
  return t.listId ? `${t.listId}-opt-${e}` : void 0;
584
550
  }
585
- return (t, r) => (g(), m("div", {
551
+ return (t, i) => (n(), u("div", {
586
552
  id: e.listId,
587
553
  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
554
  role: "listbox",
589
555
  "data-testid": "merge-tag-suggestion-list"
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),
556
+ }, [e.items.length === 0 ? (n(), u("div", Ze, x(e.emptyText), 1)) : g("", !0), (n(!0), u(D, null, a(e.items, (i, a) => (n(), u("button", {
557
+ key: i.value,
558
+ id: r(a),
593
559
  type: "button",
594
560
  role: "option",
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));
561
+ "aria-selected": a === e.selectedIndex,
562
+ "data-selected": a === e.selectedIndex ? "true" : "false",
563
+ "data-merge-tag-value": i.value,
564
+ class: m(["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", a === 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)]"]),
565
+ onMousedown: y((e) => t.$emit("select", i), ["prevent", "stop"]),
566
+ onMousemove: (n) => a !== e.selectedIndex && t.$emit("hover", a)
567
+ }, [b("span", $e, x(i.label), 1), b("span", et, x(i.value), 1)], 42, Qe))), 128))], 8, Xe));
602
568
  }
603
569
  }), nt = 10, rt = 0;
604
570
  function it(e, t) {
@@ -611,8 +577,8 @@ function it(e, t) {
611
577
  function at(e, t, n, r) {
612
578
  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
579
  }
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;
580
+ function ot(e, n) {
581
+ 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
582
  function p() {
617
583
  v(u?.() ?? null);
618
584
  }
@@ -644,11 +610,11 @@ function ot(t, n) {
644
610
  function v(e) {
645
611
  if (!i || !e || e.bottom < 0 || e.top > window.innerHeight) return;
646
612
  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
- if (a !== 0 && window.innerHeight - e.bottom < a) {
651
- let t = Math.max(0, e.top - a);
613
+ let t = i.offsetParent?.getBoundingClientRect(), n = t?.top ?? 0;
614
+ i.style.left = `${e.left - (t?.left ?? 0)}px`, i.style.top = `${e.bottom - n}px`;
615
+ let r = i.offsetHeight;
616
+ if (r !== 0 && window.innerHeight - e.bottom < r) {
617
+ let t = Math.max(0, e.top - r);
652
618
  i.style.top = `${t - n}px`;
653
619
  }
654
620
  }
@@ -670,29 +636,29 @@ function ot(t, n) {
670
636
  function x() {
671
637
  a && (o.value.length === 0 ? a.removeAttribute("aria-activedescendant") : a.setAttribute("aria-activedescendant", `${l}-opt-${s.value}`));
672
638
  }
673
- function C(e) {
639
+ function S(e) {
674
640
  c?.(e);
675
641
  }
676
642
  return {
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
- return S(tt, {
643
+ open: ({ items: d, getRect: f, anchorEl: p, onCommand: h }) => {
644
+ o.value = d, s.value = 0, c = h, i = document.createElement("div"), i.setAttribute("data-testid", "merge-tag-suggestion-popup"), a = p, y(i, p), (n?.value ?? document.body).appendChild(i), r = T({ render() {
645
+ return t(tt, {
680
646
  items: o.value,
681
647
  selectedIndex: s.value,
682
- emptyText: t,
648
+ emptyText: e,
683
649
  listId: l,
684
- onSelect: (e) => C(e),
650
+ onSelect: (e) => S(e),
685
651
  onHover: (e) => {
686
652
  s.value = e, x();
687
653
  }
688
654
  });
689
- } }), r.mount(i), b(!0), x(), u = d, m(), g(f);
655
+ } }), r.mount(i), b(!0), x(), u = f, m(), g(p);
690
656
  },
691
657
  update: ({ items: e, getRect: t, onCommand: n }) => {
692
658
  o.value = e, s.value >= e.length && (s.value = 0), c = n, x(), u = t, m();
693
659
  },
694
660
  handleKeyDown: (e) => {
695
- let t = at(e, o.value, s, C);
661
+ let t = at(e, o.value, s, S);
696
662
  return t && x(), t;
697
663
  },
698
664
  close: () => {
@@ -762,193 +728,198 @@ var ft = /* @__PURE__ */ new Set([
762
728
  "End"
763
729
  ]);
764
730
  function pt(e) {
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();
731
+ let { elementRef: t, modelValue: n, emit: r, mergeTags: a, syntax: u, enabled: d, onInsert: f } = e, p = se(), m = k(u), h = j(u), g = C(() => p.value && d && m !== null && a.value.length > 0), _ = o(re, null), y = ot((c(_) ? _.value : _)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", ce());
732
+ i(p, (e) => {
733
+ e || y.close();
734
+ }, { flush: "sync" });
735
+ let b = !1;
736
+ l() && s(() => {
737
+ b = !0, y.close();
768
738
  });
769
- function b(e) {
739
+ function x(e) {
770
740
  let t = e.value ?? "";
771
741
  return st(t, e.selectionStart ?? t.length, m, h, u.value);
772
742
  }
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;
743
+ function S(e, i, a) {
744
+ if (!p.value) return;
745
+ let o = e.value ?? n(), s = o.slice(i.caret), c = h && s.startsWith(h) ? h.length : 0, l = o.slice(0, i.triggerStart), u = o.slice(i.caret + c), d = l + a.value + u, m = l.length + a.value.length;
746
+ f?.(), r(d), y.close(), v(() => {
747
+ if (b) return;
748
+ let e = t.value;
778
749
  e?.focus(), e?.setSelectionRange(m, m);
779
750
  });
780
751
  }
781
- function S() {
782
- if (!g.value || y) return;
783
- let e = r.value;
752
+ function w() {
753
+ if (!g.value || b) return;
754
+ let e = t.value;
784
755
  if (!e) {
785
- v.close();
756
+ y.close();
786
757
  return;
787
758
  }
788
- let t = b(e);
789
- if (!t) {
790
- v.close();
759
+ let n = x(e);
760
+ if (!n) {
761
+ y.close();
791
762
  return;
792
763
  }
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
- items: n,
764
+ let r = it(a.value, n.query), i = () => dt(e, n.triggerStart), o = (t) => S(e, n, t);
765
+ y.isOpen() ? y.update({
766
+ items: r,
796
767
  getRect: i,
797
- onCommand: a
798
- }) : v.open({
799
- items: n,
768
+ onCommand: o
769
+ }) : y.open({
770
+ items: r,
800
771
  getRect: i,
801
772
  anchorEl: e,
802
- onCommand: a
773
+ onCommand: o
803
774
  });
804
775
  }
805
- function C(e) {
806
- return v.isOpen() ? e.key === "Escape" ? (v.close(), !0) : ft.has(e.key) ? (v.close(), !1) : v.handleKeyDown(e) : !1;
776
+ function T(e) {
777
+ return y.isOpen() ? e.key === "Escape" ? (y.close(), !0) : ft.has(e.key) ? (y.close(), !1) : y.handleKeyDown(e) : !1;
807
778
  }
808
779
  return {
809
780
  available: g,
810
- refresh: S,
811
- handleKeydown: C,
812
- close: () => v.close(),
813
- isOpen: () => v.isOpen()
781
+ refresh: w,
782
+ handleKeydown: T,
783
+ close: () => y.close(),
784
+ isOpen: () => y.isOpen()
814
785
  };
815
786
  }
816
787
  // src/composables/useMergeTagField.ts
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
- C = !0;
788
+ function mt(e) {
789
+ let { modelValue: t, emit: n, elementRef: r } = e, { mergeTags: i, canRequestMergeTag: a, isRequesting: o, isMergeTagValue: c, getMergeTagDisplayLabel: u, findMergeTag: d, requestMergeTag: f, syntax: p, autocomplete: m } = R(), { canInsertLogicTag: h, isRequesting: g, requestLogicTag: _ } = z(), y = E(!1), b = !1, x = !1;
790
+ l() && s(() => {
791
+ x = !0;
821
792
  });
822
- let w = pt({
823
- elementRef: o,
824
- modelValue: r,
825
- emit: i,
826
- mergeTags: s,
827
- syntax: g,
828
- enabled: _,
793
+ let S = pt({
794
+ elementRef: r,
795
+ modelValue: t,
796
+ emit: n,
797
+ mergeTags: i,
798
+ syntax: p,
799
+ enabled: m,
829
800
  onInsert: () => {
830
- x.value = !0;
801
+ y.value = !0;
831
802
  }
832
- }), T = f(() => {
833
- let e = r();
803
+ }), w = C(() => {
804
+ let e = t();
834
805
  if (!e) return [];
835
- let t = [], n = `(${g.value.source}|${g.logic.source})`, i = new RegExp(n, "g"), a = 0, o;
806
+ let n = [], r = `(${p.value.source}|${p.logic.source})`, i = new RegExp(r, "g"), a = 0, o;
836
807
  for (; (o = i.exec(e)) !== null;) {
837
- o.index > a && t.push({
808
+ o.index > a && n.push({
838
809
  type: "text",
839
810
  value: e.slice(a, o.index)
840
811
  });
841
- let n = o[0];
842
- d(n) ? t.push({
812
+ let t = o[0];
813
+ c(t) ? n.push({
843
814
  type: "mergeTag",
844
- value: n,
845
- label: p(n)
846
- }) : O(n, g) ? t.push({
815
+ value: t,
816
+ label: u(t)
817
+ }) : M(t, p) ? n.push({
847
818
  type: "logicMergeTag",
848
- value: n,
849
- keyword: E(n, g)
850
- }) : t.push({
819
+ value: t,
820
+ keyword: A(t, p)
821
+ }) : n.push({
851
822
  type: "text",
852
- value: n
853
- }), a = o.index + n.length;
823
+ value: t
824
+ }), a = o.index + t.length;
854
825
  }
855
- return a < e.length && t.push({
826
+ return a < e.length && n.push({
856
827
  type: "text",
857
828
  value: e.slice(a)
858
- }), t;
859
- }), ee = f(() => T.value.some((e) => e.type === "mergeTag" || e.type === "logicMergeTag"));
860
- function te() {
861
- x.value = !0, n(() => {
862
- o.value?.focus();
863
- let e = r()?.length || 0;
864
- o.value?.setSelectionRange(e, e);
829
+ }), n;
830
+ }), T = C(() => w.value.some((e) => e.type === "mergeTag" || e.type === "logicMergeTag"));
831
+ function D() {
832
+ y.value = !0, v(() => {
833
+ r.value?.focus();
834
+ let e = t()?.length || 0;
835
+ r.value?.setSelectionRange(e, e);
865
836
  });
866
837
  }
867
- function D() {
868
- S || (x.value = !1);
838
+ function O() {
839
+ b || (y.value = !1);
869
840
  }
870
841
  function k(e) {
871
- i(e.target.value), w.refresh();
842
+ n(e.target.value), S.refresh();
872
843
  }
873
- function ne(e) {
874
- return w.handleKeydown(e) ? (e.preventDefault(), !0) : (e.key === "Escape" && D(), !1);
844
+ function j(e) {
845
+ return S.handleKeydown(e) ? (e.preventDefault(), !0) : (e.key === "Escape" && O(), !1);
875
846
  }
876
- function re() {
877
- w.refresh();
847
+ function N() {
848
+ S.refresh();
878
849
  }
879
- function A() {
880
- w.close(), D();
850
+ function P() {
851
+ S.close(), O();
881
852
  }
882
- function ie() {
883
- i("");
853
+ function F() {
854
+ n("");
884
855
  }
885
- async function ae() {
886
- let e = x.value && o.value ? o.value.selectionStart ?? r().length : r().length;
887
- S = !0;
888
- let t;
856
+ async function I() {
857
+ let e = y.value && r.value ? r.value.selectionStart ?? t().length : t().length;
858
+ b = !0;
859
+ let i;
889
860
  try {
890
- t = await h();
861
+ i = await f();
891
862
  } finally {
892
- S = !1;
863
+ b = !1;
893
864
  }
894
- if (!C && t) {
895
- let a = r().slice(0, e), s = r().slice(e), c = a + t.value + s;
896
- i(c), x.value = !0, n(() => {
897
- if (C) return;
898
- let n = e + t.value.length;
899
- o.value?.focus(), o.value?.setSelectionRange(n, n);
865
+ if (!x && i) {
866
+ let a = t().slice(0, e), o = t().slice(e), s = a + i.value + o;
867
+ n(s), y.value = !0, v(() => {
868
+ if (x) return;
869
+ let t = e + i.value.length;
870
+ r.value?.focus(), r.value?.setSelectionRange(t, t);
900
871
  });
901
872
  }
902
873
  }
903
- async function j(e) {
904
- let t = T.value, n = t[e];
905
- if (n?.type !== "mergeTag") return;
906
- S = !0;
907
- let r;
874
+ async function ee(e) {
875
+ let t = w.value, r = t[e];
876
+ if (r?.type !== "mergeTag") return;
877
+ b = !0;
878
+ let i;
908
879
  try {
909
- r = await h({
880
+ i = await f({
910
881
  reason: "edit",
911
- current: m(n.value)
882
+ current: d(r.value)
912
883
  });
913
884
  } finally {
914
- S = !1;
885
+ b = !1;
915
886
  }
916
- !C && r && i(t.map((t, n) => n === e ? r.value : t.value).join(""));
887
+ !x && i && n(t.map((t, n) => n === e ? i.value : t.value).join(""));
917
888
  }
918
- async function M() {
919
- let e = o.value, t = e?.selectionStart ?? r().length, a = e?.selectionEnd ?? t;
920
- S = !0;
921
- let s;
889
+ async function te() {
890
+ let e = r.value, i = e?.selectionStart ?? t().length, a = e?.selectionEnd ?? i;
891
+ b = !0;
892
+ let o;
922
893
  try {
923
- s = await b();
894
+ o = await _();
924
895
  } finally {
925
- S = !1;
896
+ b = !1;
926
897
  }
927
- if (C || !s) return;
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));
898
+ if (x || !o) return;
899
+ let s = t(), c, l;
900
+ "before" in o ? (c = s.slice(0, i) + o.before + s.slice(i, a) + o.after + s.slice(a), l = i + o.before.length + (a - i)) : (c = s.slice(0, i) + o.value + s.slice(i), l = i + o.value.length), n(c), y.value = !0, v(() => {
901
+ x || (r.value?.focus(), r.value?.setSelectionRange(l, l));
931
902
  });
932
903
  }
933
904
  return {
934
- segments: T,
935
- hasMergeTags: ee,
936
- canRequestMergeTag: c,
937
- isRequestingMergeTag: u,
938
- canInsertLogicTag: v,
939
- isRequestingLogicTag: y,
940
- isEditing: x,
941
- startEditing: te,
942
- stopEditing: D,
905
+ segments: w,
906
+ hasMergeTags: T,
907
+ canRequestMergeTag: a,
908
+ isRequestingMergeTag: o,
909
+ canInsertLogicTag: h,
910
+ isRequestingLogicTag: g,
911
+ isEditing: y,
912
+ startEditing: D,
913
+ stopEditing: O,
943
914
  handleInput: k,
944
- handleKeydown: ne,
945
- handleClick: re,
946
- handleBlur: A,
947
- clearValue: ie,
948
- insertMergeTag: ae,
949
- replaceMergeTagAt: j,
950
- insertLogicTag: M,
951
- autocompleteAvailable: w.available
915
+ handleKeydown: j,
916
+ handleClick: N,
917
+ handleBlur: P,
918
+ clearValue: F,
919
+ insertMergeTag: I,
920
+ replaceMergeTagAt: ee,
921
+ insertLogicTag: te,
922
+ autocompleteAvailable: S.available
952
923
  };
953
924
  }
954
925
  // src/components/MergeTagSegments.vue?vue&type=script&setup=true&lang.ts
@@ -959,7 +930,7 @@ var ht = ["aria-label"], gt = [
959
930
  ], _t = ["data-tooltip"], vt = ["data-tooltip"], yt = {
960
931
  key: 3,
961
932
  class: "tpl:text-sm tpl:text-[var(--tpl-text)]"
962
- }, bt = ["aria-label", "title"], xt = ["aria-label", "title"], St = /* @__PURE__ */ C({
933
+ }, bt = ["aria-label", "title"], xt = ["aria-label", "title"], St = /* @__PURE__ */ e({
963
934
  __name: "MergeTagSegments",
964
935
  props: {
965
936
  segments: {},
@@ -972,37 +943,37 @@ var ht = ["aria-label"], gt = [
972
943
  "repick"
973
944
  ],
974
945
  setup(e, { emit: t }) {
975
- let n = t, { t: r, format: i } = j(), { canRepickMergeTag: a, showRawValue: o } = F();
946
+ let r = t, { t: i, format: o } = L(), { canRepickMergeTag: s, showRawValue: c } = R();
976
947
  function l() {
977
- n("edit");
948
+ r("edit");
978
949
  }
979
- return (t, d) => (g(), m("div", {
950
+ return (t, d) => (n(), u("div", {
980
951
  role: "group",
981
- "aria-label": b(r).mergeTag.fieldGroup,
982
- class: _([e.displayClass, { "tpl-pulse-fill": e.pulse }]),
952
+ "aria-label": p(i).mergeTag.fieldGroup,
953
+ class: m([e.displayClass, { "tpl-pulse-fill": e.pulse }]),
983
954
  onClick: l
984
955
  }, [
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", {
956
+ (n(!0), u(D, null, a(e.segments, (e, t) => (n(), u(D, { key: `${e.type}-${t}-${e.value}` }, [e.type === "mergeTag" && p(s)(e.value) ? (n(), u("button", {
986
957
  key: 0,
987
958
  type: "button",
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 }),
959
+ class: m(["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", p(c) ? "tpl-tooltip" : ""]),
960
+ "data-tooltip": p(c) ? e.value : void 0,
961
+ "aria-label": p(o)(p(i).mergeTag.changeTag, { label: e.label }),
991
962
  "data-testid": "merge-tag-field-chip",
992
963
  style: {
993
964
  "background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
994
965
  color: "var(--tpl-primary)"
995
966
  },
996
- onClick: w((e) => n("repick", t), ["stop"])
997
- }, c(e.label), 11, gt)) : e.type === "mergeTag" ? (g(), m("span", {
967
+ onClick: y((e) => r("repick", t), ["stop"])
968
+ }, x(e.label), 11, gt)) : e.type === "mergeTag" ? (n(), u("span", {
998
969
  key: 1,
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,
970
+ class: m(["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", p(c) ? "tpl-tooltip" : ""]),
971
+ "data-tooltip": p(c) ? e.value : void 0,
1001
972
  style: {
1002
973
  "background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
1003
974
  color: "var(--tpl-primary)"
1004
975
  }
1005
- }, c(e.label), 11, _t)) : e.type === "logicMergeTag" ? (g(), m("span", {
976
+ }, x(e.label), 11, _t)) : e.type === "logicMergeTag" ? (n(), u("span", {
1006
977
  key: 2,
1007
978
  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
979
  "data-tooltip": e.value,
@@ -1011,26 +982,26 @@ var ht = ["aria-label"], gt = [
1011
982
  border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
1012
983
  color: "var(--tpl-primary)"
1013
984
  }
1014
- }, c(e.keyword), 9, vt)) : (g(), m("span", yt, c(e.value), 1))], 64))), 128)),
1015
- v("button", {
985
+ }, x(e.keyword), 9, vt)) : (n(), u("span", yt, x(e.value), 1))], 64))), 128)),
986
+ b("button", {
1016
987
  type: "button",
1017
988
  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": b(r).mergeTag.editAsText,
1019
- title: b(r).mergeTag.editAsText,
989
+ "aria-label": p(i).mergeTag.editAsText,
990
+ title: p(i).mergeTag.editAsText,
1020
991
  "data-testid": "merge-tag-field-edit",
1021
- onClick: w(l, ["stop"])
1022
- }, [u(b(P), {
992
+ onClick: y(l, ["stop"])
993
+ }, [O(p(N), {
1023
994
  size: 12,
1024
995
  "stroke-width": 2
1025
996
  })], 8, bt),
1026
- v("button", {
997
+ b("button", {
1027
998
  type: "button",
1028
999
  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": b(r).mergeTag.remove,
1030
- title: b(r).mergeTag.remove,
1000
+ "aria-label": p(i).mergeTag.remove,
1001
+ title: p(i).mergeTag.remove,
1031
1002
  "data-testid": "merge-tag-field-clear",
1032
- onClick: d[0] ||= w((e) => n("clear"), ["stop"])
1033
- }, [u(b(de), {
1003
+ onClick: d[0] ||= y((e) => r("clear"), ["stop"])
1004
+ }, [O(p(I), {
1034
1005
  size: 12,
1035
1006
  "stroke-width": 2.5
1036
1007
  })], 8, xt)
@@ -1040,48 +1011,50 @@ var ht = ["aria-label"], gt = [
1040
1011
  "aria-label",
1041
1012
  "title",
1042
1013
  "disabled"
1043
- ], wt = "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)]", Tt = /* @__PURE__ */ C({
1014
+ ], wt = "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)]", Tt = /* @__PURE__ */ e({
1044
1015
  __name: "MergeTagInsertButton",
1045
1016
  props: { disabled: { type: Boolean } },
1046
1017
  emits: ["insert"],
1047
1018
  setup(e) {
1048
- let { t } = j();
1049
- return (n, r) => (g(), m("button", {
1019
+ let { t } = L();
1020
+ return (r, i) => (n(), u("button", {
1050
1021
  type: "button",
1051
- class: _([wt, "tpl:mt-1.5"]),
1052
- "aria-label": b(t).mergeTag.insert,
1053
- title: b(t).mergeTag.insert,
1022
+ class: m([wt, "tpl:mt-1.5"]),
1023
+ "aria-label": p(t).mergeTag.insert,
1024
+ title: p(t).mergeTag.insert,
1054
1025
  disabled: e.disabled,
1055
- onMousedown: r[0] ||= w(() => {}, ["prevent"]),
1056
- onClick: r[1] ||= (e) => n.$emit("insert")
1057
- }, [u(b(L), {
1026
+ onMousedown: i[0] ||= y(() => {}, ["prevent"]),
1027
+ onClick: i[1] ||= (e) => r.$emit("insert")
1028
+ }, [O(p(F), {
1058
1029
  size: 12,
1059
1030
  "stroke-width": 2
1060
- }), h(" " + c(b(t).mergeTag.insertShort), 1)], 42, Ct));
1031
+ }), d(" " + x(p(t).mergeTag.insertShort), 1)], 42, Ct));
1061
1032
  }
1062
1033
  }), Et = [
1063
1034
  "aria-label",
1064
1035
  "title",
1065
1036
  "disabled"
1066
- ], Dt = "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)]", Ot = /* @__PURE__ */ C({
1037
+ ], Dt = "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)]", Ot = /* @__PURE__ */ e({
1067
1038
  __name: "LogicTagInsertButton",
1068
1039
  props: { disabled: { type: Boolean } },
1069
1040
  emits: ["insert"],
1070
1041
  setup(e) {
1071
- let { t } = j();
1072
- return (n, r) => (g(), m("button", {
1042
+ let { t } = L();
1043
+ return (r, i) => (n(), u("button", {
1073
1044
  type: "button",
1074
- class: _([Dt, "tpl:mt-1.5"]),
1075
- "aria-label": b(t).logicTag.insert,
1076
- title: b(t).logicTag.insert,
1045
+ class: m([Dt, "tpl:mt-1.5"]),
1046
+ "aria-label": p(t).logicTag.insert,
1047
+ title: p(t).logicTag.insert,
1077
1048
  disabled: e.disabled,
1078
1049
  "data-testid": "field-insert-logic-button",
1079
- onMousedown: r[0] ||= w(() => {}, ["prevent"]),
1080
- onClick: r[1] ||= (e) => n.$emit("insert")
1081
- }, [u(b(pe), {
1050
+ onMousedown: i[0] ||= y(() => {}, ["prevent"]),
1051
+ onClick: i[1] ||= (e) => r.$emit("insert")
1052
+ }, [O(p(P), {
1082
1053
  size: 12,
1083
1054
  "stroke-width": 2
1084
- }), h(" " + c(b(t).logicTag.insertShort), 1)], 42, Et));
1055
+ }), d(" " + x(p(t).logicTag.insertShort), 1)], 42, Et));
1085
1056
  }
1086
1057
  });
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 };
1058
+ export { ot as a, Ye as c, mt as i, Tt as n, it as o, St as r, at as s, Ot as t };
1059
+
1060
+ //# sourceMappingURL=LogicTagInsertButton-Bhvi0nWz.js.map