@templatical/editor 0.52.0 → 0.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (400) hide show
  1. package/README.md +1 -1
  2. package/dist/AiAltTextPopover-NMJqQKvD.js +106 -0
  3. package/dist/{AiAltTextReview-DE8t8Rud.js → AiAltTextReview-Ci4zHwRc.js} +68 -66
  4. package/dist/{AiChatPanel-7ftS7d40.js → AiChatPanel-DdhtfsmO.js} +223 -210
  5. package/dist/{AiPanels-CxGp6klr.js → AiPanels-HBx7xoJR.js} +6 -6
  6. package/dist/{AiRewriteMenu-DNI-5CUj.js → AiRewriteMenu-DPzSekZt.js} +78 -107
  7. package/dist/BlockIssueBadge-eIXZJ9M3.js +33 -0
  8. package/dist/BlockPreviewCanvas-DO-2TP_6.js +140 -0
  9. package/dist/{CloudHeaderExtras-CsgyNNV1.js → CloudHeaderExtras-XpjJjn3o.js} +4 -4
  10. package/dist/{CloudPanels-BDV4XQ_l.js → CloudPanels-i2kZdrdP.js} +44 -44
  11. package/dist/CollaborationNotices-DANsjl7c.js +65 -0
  12. package/dist/{CollaboratorBar-EeqqWcX6.js → CollaboratorBar-CbbAA0m1.js} +24 -24
  13. package/dist/CommentsPanel-CYW3LWis.js +16 -0
  14. package/dist/CommentsSidebar-CcF4ISMi.js +526 -0
  15. package/dist/{CountdownBlock-BT3ZTH1F.js → CountdownBlock-BMezkFbJ.js} +21 -21
  16. package/dist/CountdownToolbar-D3Lv74kU.js +258 -0
  17. package/dist/{IssuesPanel-BHFQ3wrP.js → IssuesPanel-BMAG9042.js} +141 -129
  18. package/dist/LanguageMenu-FlP_Jbup.js +403 -0
  19. package/dist/{LoadingTrack-DZA5AoP9.js → LoadingTrack-BG8cg9xi.js} +2 -2
  20. package/dist/LocaleNotices-DAnVszWu.js +46 -0
  21. package/dist/{LogicTagInsertButton-CSD9cfJB.js → LogicTagInsertButton-BjYs-UQX.js} +439 -430
  22. package/dist/{MediaEditModal-DQl5w44r.js → MediaEditModal-LnG-cF_S.js} +160 -160
  23. package/dist/{MediaPanels-BFWYuJot.js → MediaPanels-C2r5fiFo.js} +4 -4
  24. package/dist/{cdn/chunks/MergeTagInput-CFu9VXPS.js → MergeTagInput-BsnogCeY.js} +32 -34
  25. package/dist/{MergeTagModeToggle-DvD0ne7N.js → MergeTagModeToggle-DiufIQ-_.js} +49 -49
  26. package/dist/MergeTagTextarea-BweI-Xsi.js +126 -0
  27. package/dist/{ParagraphEditor-D-nqs82g.js → ParagraphEditor-qgBp5yIB.js} +286 -257
  28. package/dist/{RestoreVersionDialog-DqUPsLB9.js → RestoreVersionDialog-DdYUrFiK.js} +23 -23
  29. package/dist/{RichTextEditorContent-Xq9D0Zs3.js → RichTextEditorContent-C5MAzx3E.js} +54 -53
  30. package/dist/{SaveBlockDialog-DAPv70p4.js → SaveBlockDialog-eK6fjtTy.js} +86 -86
  31. package/dist/SavedBlocksBrowserModal-D2QHd2Yp.js +359 -0
  32. package/dist/{SavedBlocksPanels-ChbL9v9x.js → SavedBlocksPanels-Cl61f4Mf.js} +9 -9
  33. package/dist/{SavedBlocksPickBar-hRaiLNdu.js → SavedBlocksPickBar-CXP2dkeB.js} +15 -15
  34. package/dist/TemplateSettings-BKJrdZcH.js +294 -0
  35. package/dist/TestEmailModal-DQotJg6g.js +212 -0
  36. package/dist/{TestEmailPanel-COJQa2A9.js → TestEmailPanel-CwiTzJsh.js} +4 -4
  37. package/dist/TitleEditor-CzSvsPAn.js +202 -0
  38. package/dist/ToggleSwitch-R3wCCYE6.js +43 -0
  39. package/dist/Toolbar-Cd75ci5W.js +3711 -0
  40. package/dist/{TplModal-9IndEYk5.js → TplModal-ZoXu40T9.js} +17 -17
  41. package/dist/{VersionHistoryMenu-BG5qayvg.js → VersionHistoryMenu-BvhN-Ofk.js} +39 -39
  42. package/dist/{VersionHistoryPanels-hPg7Q5-f.js → VersionHistoryPanels-DPWMnYbd.js} +5 -5
  43. package/dist/VersionPreviewBanner-CuJnasxH.js +37 -0
  44. package/dist/WrapperBlock-D4fPwO0t.js +44 -0
  45. package/dist/{blockTypeIcons-yt7SLzub.js → blockTypeIcons-BXMxu86H.js} +27 -26
  46. package/dist/bundle-stats.json +8 -8
  47. package/dist/{cdn/chunks/ca-CD-Kt1qz.js → ca-DOuIxWRv.js} +114 -2
  48. package/dist/cdn/chunks/AiAltTextPopover-ByZ0FEqI.js +107 -0
  49. package/dist/cdn/chunks/AiAltTextPopover-ByZ0FEqI.js.map +1 -0
  50. package/dist/cdn/chunks/{AiAltTextReview-BafAtBoA.js → AiAltTextReview-Dtm3A2cD.js} +71 -69
  51. package/dist/cdn/chunks/AiAltTextReview-Dtm3A2cD.js.map +1 -0
  52. package/dist/cdn/chunks/AiChatPanel-DciEt27y.js +487 -0
  53. package/dist/cdn/chunks/AiChatPanel-DciEt27y.js.map +1 -0
  54. package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js → AiPanels-BV5D1itk.js} +11 -11
  55. package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js.map → AiPanels-BV5D1itk.js.map} +1 -1
  56. package/dist/cdn/chunks/{AiRewriteMenu-4F6vwhJ5.js → AiRewriteMenu-D3jkh6Xb.js} +80 -80
  57. package/dist/cdn/chunks/AiRewriteMenu-D3jkh6Xb.js.map +1 -0
  58. package/dist/cdn/chunks/BlockIssueBadge-DyEgBZtR.js +34 -0
  59. package/dist/cdn/chunks/BlockIssueBadge-DyEgBZtR.js.map +1 -0
  60. package/dist/cdn/chunks/BlockPreviewCanvas-RQFilqXC.js +142 -0
  61. package/dist/cdn/chunks/{BlockPreviewCanvas-Ny1X_mee.js.map → BlockPreviewCanvas-RQFilqXC.js.map} +1 -1
  62. package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js → CloudHeaderExtras-BtqdN777.js} +4 -4
  63. package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js.map → CloudHeaderExtras-BtqdN777.js.map} +1 -1
  64. package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js → CloudPanels-BSJ-Z5Hw.js} +43 -43
  65. package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js.map → CloudPanels-BSJ-Z5Hw.js.map} +1 -1
  66. package/dist/cdn/chunks/CollaborationNotices-BS7xrlPE.js +67 -0
  67. package/dist/cdn/chunks/CollaborationNotices-BS7xrlPE.js.map +1 -0
  68. package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js → CollaboratorBar-Bc9914Az.js} +16 -16
  69. package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js.map → CollaboratorBar-Bc9914Az.js.map} +1 -1
  70. package/dist/cdn/chunks/CommentsPanel-DbR9phAk.js +18 -0
  71. package/dist/cdn/chunks/{CommentsPanel-CAiwilM2.js.map → CommentsPanel-DbR9phAk.js.map} +1 -1
  72. package/dist/cdn/chunks/CommentsSidebar-BD4--XP2.js +496 -0
  73. package/dist/cdn/chunks/CommentsSidebar-BD4--XP2.js.map +1 -0
  74. package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js → CountdownBlock-CjMhMhnv.js} +26 -26
  75. package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js.map → CountdownBlock-CjMhMhnv.js.map} +1 -1
  76. package/dist/cdn/chunks/CountdownToolbar-DxwYBw-d.js +260 -0
  77. package/dist/cdn/chunks/CountdownToolbar-DxwYBw-d.js.map +1 -0
  78. package/dist/cdn/chunks/{IssuesPanel-pr7_nuLI.js → IssuesPanel-CUmI4HMm.js} +132 -120
  79. package/dist/cdn/chunks/IssuesPanel-CUmI4HMm.js.map +1 -0
  80. package/dist/cdn/chunks/LanguageMenu-3ydCozQJ.js +359 -0
  81. package/dist/cdn/chunks/LanguageMenu-3ydCozQJ.js.map +1 -0
  82. package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js → LoadingTrack-DUYcDHOV.js} +2 -2
  83. package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js.map → LoadingTrack-DUYcDHOV.js.map} +1 -1
  84. package/dist/cdn/chunks/LocaleNotices-BfoH6gST.js +47 -0
  85. package/dist/cdn/chunks/LocaleNotices-BfoH6gST.js.map +1 -0
  86. package/dist/cdn/chunks/{LogicTagInsertButton-B_ldj3TO.js → LogicTagInsertButton-5Z3fFzjc.js} +465 -456
  87. package/dist/cdn/chunks/LogicTagInsertButton-5Z3fFzjc.js.map +1 -0
  88. package/dist/cdn/chunks/{MediaEditModal-CGfzcHwP.js → MediaEditModal-DDCIwr9U.js} +439 -439
  89. package/dist/cdn/chunks/MediaEditModal-DDCIwr9U.js.map +1 -0
  90. package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js → MediaPanels-Dz79oy8P.js} +5 -5
  91. package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js.map → MediaPanels-Dz79oy8P.js.map} +1 -1
  92. package/dist/cdn/chunks/MergeTagInput-CIWy-cXf.js +82 -0
  93. package/dist/cdn/chunks/{MergeTagInput-CFu9VXPS.js.map → MergeTagInput-CIWy-cXf.js.map} +1 -1
  94. package/dist/cdn/chunks/{MergeTagModeToggle-BFpK5dxg.js → MergeTagModeToggle-BrP5GR-x.js} +50 -50
  95. package/dist/cdn/chunks/MergeTagModeToggle-BrP5GR-x.js.map +1 -0
  96. package/dist/cdn/chunks/MergeTagTextarea-D3nNDlhV.js +128 -0
  97. package/dist/cdn/chunks/MergeTagTextarea-D3nNDlhV.js.map +1 -0
  98. package/dist/cdn/chunks/ParagraphEditor-DDolH_Pf.js +660 -0
  99. package/dist/cdn/chunks/ParagraphEditor-DDolH_Pf.js.map +1 -0
  100. package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js → RestoreVersionDialog-Crj1DBqC.js} +18 -18
  101. package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js.map → RestoreVersionDialog-Crj1DBqC.js.map} +1 -1
  102. package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js → RichTextEditorContent-rCCqFlwJ.js} +43 -43
  103. package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js.map → RichTextEditorContent-rCCqFlwJ.js.map} +1 -1
  104. package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js → SaveBlockDialog-C34RW1aM.js} +71 -71
  105. package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js.map → SaveBlockDialog-C34RW1aM.js.map} +1 -1
  106. package/dist/cdn/chunks/SavedBlocksBrowserModal-CJnwWPT-.js +356 -0
  107. package/dist/cdn/chunks/{SavedBlocksBrowserModal-B9XCjDfm.js.map → SavedBlocksBrowserModal-CJnwWPT-.js.map} +1 -1
  108. package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js → SavedBlocksPanels-CA2PqXIH.js} +9 -9
  109. package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js.map → SavedBlocksPanels-CA2PqXIH.js.map} +1 -1
  110. package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js → SavedBlocksPickBar-Dj3ortee.js} +16 -16
  111. package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js.map → SavedBlocksPickBar-Dj3ortee.js.map} +1 -1
  112. package/dist/cdn/chunks/TemplateSettings-sW0ZlDl1.js +266 -0
  113. package/dist/cdn/chunks/TemplateSettings-sW0ZlDl1.js.map +1 -0
  114. package/dist/cdn/chunks/{TestEmailModal-DcwKhFnI.js → TestEmailModal-BXeCtTjU.js} +81 -78
  115. package/dist/cdn/chunks/TestEmailModal-BXeCtTjU.js.map +1 -0
  116. package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js → TestEmailPanel-CpZcpB9D.js} +5 -5
  117. package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js.map → TestEmailPanel-CpZcpB9D.js.map} +1 -1
  118. package/dist/cdn/chunks/TitleEditor-Bv3SmSO6.js +202 -0
  119. package/dist/cdn/chunks/TitleEditor-Bv3SmSO6.js.map +1 -0
  120. package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js +45 -0
  121. package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js.map +1 -0
  122. package/dist/cdn/chunks/Toolbar-BJKpJ2Mg.js +3626 -0
  123. package/dist/cdn/chunks/Toolbar-BJKpJ2Mg.js.map +1 -0
  124. package/dist/cdn/chunks/{TplModal-BDyeS69p.js → TplModal-DDDUDMYC.js} +19 -19
  125. package/dist/cdn/chunks/{TplModal-BDyeS69p.js.map → TplModal-DDDUDMYC.js.map} +1 -1
  126. package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js → VersionHistoryMenu-DSElv3Sv.js} +36 -36
  127. package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js.map → VersionHistoryMenu-DSElv3Sv.js.map} +1 -1
  128. package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js → VersionHistoryPanels-H2nuik1l.js} +6 -6
  129. package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js.map → VersionHistoryPanels-H2nuik1l.js.map} +1 -1
  130. package/dist/cdn/chunks/VersionPreviewBanner-Whwxh55w.js +39 -0
  131. package/dist/cdn/chunks/VersionPreviewBanner-Whwxh55w.js.map +1 -0
  132. package/dist/cdn/chunks/WrapperBlock-jTqsuLnS.js +46 -0
  133. package/dist/cdn/chunks/WrapperBlock-jTqsuLnS.js.map +1 -0
  134. package/dist/cdn/chunks/blockTypeIcons-DMgLcuI8.js +21 -0
  135. package/dist/cdn/chunks/blockTypeIcons-DMgLcuI8.js.map +1 -0
  136. package/dist/{ca-CD-Kt1qz.js → cdn/chunks/ca-DOuIxWRv.js} +116 -0
  137. package/dist/cdn/chunks/ca-DOuIxWRv.js.map +1 -0
  138. package/dist/cdn/chunks/composables-D0UYam2P.js +3039 -0
  139. package/dist/cdn/chunks/composables-D0UYam2P.js.map +1 -0
  140. package/dist/cdn/chunks/{createCloudRuntime-D6niZ2Rc.js → createCloudRuntime-BdsclY8_.js} +85 -83
  141. package/dist/cdn/chunks/createCloudRuntime-BdsclY8_.js.map +1 -0
  142. package/dist/{de-CeFJ6wbM.js → cdn/chunks/de-DaOUfYBX.js} +116 -0
  143. package/dist/cdn/chunks/de-DaOUfYBX.js.map +1 -0
  144. package/dist/{dist-CEdyyDn7.js → cdn/chunks/dist-BzXULHvI.js} +63 -61
  145. package/dist/cdn/chunks/{dist-C2epoAwW.js.map → dist-BzXULHvI.js.map} +1 -1
  146. package/dist/{dist-BA-jTQgw.js → cdn/chunks/dist-DqGgijFI.js} +108 -109
  147. package/dist/cdn/chunks/{dist-CONcGNwy.js.map → dist-DqGgijFI.js.map} +1 -1
  148. package/dist/cdn/chunks/{draggable-B8hTTYFO.js → draggable-DepKdldn.js} +1384 -1376
  149. package/dist/cdn/chunks/draggable-DepKdldn.js.map +1 -0
  150. package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js → editor-modal-CPbgthOv.js} +986 -986
  151. package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js.map → editor-modal-CPbgthOv.js.map} +1 -1
  152. package/dist/{en-D14i5nFh.js → cdn/chunks/en-C0pHHMiR.js} +116 -0
  153. package/dist/cdn/chunks/en-C0pHHMiR.js.map +1 -0
  154. package/dist/cdn/chunks/en-IYVryJRl.js +1 -0
  155. package/dist/{es-zDacbMhs.js → cdn/chunks/es-CxyEKr6n.js} +116 -0
  156. package/dist/cdn/chunks/es-CxyEKr6n.js.map +1 -0
  157. package/dist/cdn/chunks/{extensions-ClDhn88e.js → extensions-Uh9vuFfK.js} +57 -57
  158. package/dist/cdn/chunks/{extensions-ClDhn88e.js.map → extensions-Uh9vuFfK.js.map} +1 -1
  159. package/dist/{fr-CSgYtjOd.js → cdn/chunks/fr-CYbamiI6.js} +116 -0
  160. package/dist/cdn/chunks/fr-CYbamiI6.js.map +1 -0
  161. package/dist/cdn/chunks/{icons-HCBP93Ch.js → icons-CSSMtbGK.js} +187 -144
  162. package/dist/cdn/chunks/icons-CSSMtbGK.js.map +1 -0
  163. package/dist/{ja-B7H3ID8O.js → cdn/chunks/ja-DfaIAoGI.js} +116 -0
  164. package/dist/cdn/chunks/ja-DfaIAoGI.js.map +1 -0
  165. package/dist/cdn/chunks/keys-CoQtCqNv.js +11 -0
  166. package/dist/cdn/chunks/keys-CoQtCqNv.js.map +1 -0
  167. package/dist/cdn/chunks/languageName-DEEOhDWI.js +12 -0
  168. package/dist/cdn/chunks/languageName-DEEOhDWI.js.map +1 -0
  169. package/dist/cdn/chunks/{liquid.browser-DkLBNrft.js → liquid.browser-rubac0VA.js} +782 -746
  170. package/dist/cdn/chunks/liquid.browser-rubac0VA.js.map +1 -0
  171. package/dist/{nl-176ySmc5.js → cdn/chunks/nl-DkrB-VKZ.js} +116 -0
  172. package/dist/cdn/chunks/nl-DkrB-VKZ.js.map +1 -0
  173. package/dist/cdn/chunks/normalizeMergeTagMarkup-oGhwVscw.js +290 -0
  174. package/dist/cdn/chunks/normalizeMergeTagMarkup-oGhwVscw.js.map +1 -0
  175. package/dist/cdn/chunks/noticeTones-D7BPu-Le.js +16 -0
  176. package/dist/cdn/chunks/noticeTones-D7BPu-Le.js.map +1 -0
  177. package/dist/cdn/chunks/plural-CyxrJXL1.js +17 -0
  178. package/dist/cdn/chunks/plural-CyxrJXL1.js.map +1 -0
  179. package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js → preRenderCustomBlocks-C8k7tw98.js} +5 -5
  180. package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js.map → preRenderCustomBlocks-C8k7tw98.js.map} +1 -1
  181. package/dist/cdn/chunks/{pt-BR-dDlTwX18.js → pt-BR-CY5Ye7eP.js} +115 -1
  182. package/dist/cdn/chunks/pt-BR-CY5Ye7eP.js.map +1 -0
  183. package/dist/cdn/chunks/sanitizeHtml-DYklmvgX.js +61 -0
  184. package/dist/cdn/chunks/sanitizeHtml-DYklmvgX.js.map +1 -0
  185. package/dist/cdn/chunks/socialIcons-BAiuHyJs.js +2638 -0
  186. package/dist/cdn/chunks/socialIcons-BAiuHyJs.js.map +1 -0
  187. package/dist/cdn/chunks/src-CACM3o--.js +2606 -0
  188. package/dist/cdn/chunks/src-CACM3o--.js.map +1 -0
  189. package/dist/cdn/chunks/{src-CUH_EI7k.js → src-Ddpm4HsS.js} +225 -259
  190. package/dist/cdn/chunks/src-Ddpm4HsS.js.map +1 -0
  191. package/dist/cdn/chunks/{src-BKpAis_q.js → src-DheBmnvF.js} +635 -478
  192. package/dist/cdn/chunks/src-DheBmnvF.js.map +1 -0
  193. package/dist/{styleConstants-B8xVRiwX.js → cdn/chunks/styleConstants-CgiNKdnc.js} +7 -5
  194. package/dist/cdn/chunks/styleConstants-CgiNKdnc.js.map +1 -0
  195. package/dist/cdn/chunks/templateSettingsFields-cjlP-jdw.js.map +1 -1
  196. package/dist/cdn/chunks/{tiptap-ChSZybTi.js → tiptap-Dipw_zOQ.js} +48 -48
  197. package/dist/cdn/chunks/{tiptap-ChSZybTi.js.map → tiptap-Dipw_zOQ.js.map} +1 -1
  198. package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js → useCloudI18n-Cc5NZqiI.js} +3 -3
  199. package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js.map → useCloudI18n-Cc5NZqiI.js.map} +1 -1
  200. package/dist/cdn/chunks/useEditorRoot-D_LuZ_hE.js +9 -0
  201. package/dist/cdn/chunks/{useEditorRoot-BT3c9CXj.js.map → useEditorRoot-D_LuZ_hE.js.map} +1 -1
  202. package/dist/cdn/chunks/{useI18n-11iqzC6m.js → useI18n-BnJYydPv.js} +3 -3
  203. package/dist/cdn/chunks/{useI18n-11iqzC6m.js.map → useI18n-BnJYydPv.js.map} +1 -1
  204. package/dist/cdn/chunks/useLocalizedDisplay-yXbRKNrs.js +33 -0
  205. package/dist/cdn/chunks/useLocalizedDisplay-yXbRKNrs.js.map +1 -0
  206. package/dist/cdn/chunks/{useLogicTag-vy5KGg5D.js → useLogicTag-B7RpqVFQ.js} +5 -5
  207. package/dist/cdn/chunks/{useLogicTag-vy5KGg5D.js.map → useLogicTag-B7RpqVFQ.js.map} +1 -1
  208. package/dist/cdn/chunks/{useMergeTag-BFBBjnwh.js → useMergeTag-C-32ETjj.js} +6 -6
  209. package/dist/cdn/chunks/{useMergeTag-BFBBjnwh.js.map → useMergeTag-C-32ETjj.js.map} +1 -1
  210. package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js +78 -0
  211. package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js.map +1 -0
  212. package/dist/cdn/chunks/{useScrollToBlock-C0dawxGr.js → useScrollToBlock-Ct1AwLD-.js} +5 -5
  213. package/dist/cdn/chunks/useScrollToBlock-Ct1AwLD-.js.map +1 -0
  214. package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js → withCurrentFont-D33ZXoWp.js} +2 -2
  215. package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js.map → withCurrentFont-D33ZXoWp.js.map} +1 -1
  216. package/dist/cdn/editor.css +1 -1
  217. package/dist/cdn/editor.js +2503 -1809
  218. package/dist/cdn/editor.js.map +1 -1
  219. package/dist/{check-N3x4z_rH.js → check-ChQ0l8EQ.js} +1 -1
  220. package/dist/{chevron-down-gXu9qNwO.js → chevron-down-Bh6cp6PI.js} +1 -1
  221. package/dist/{chevron-right-rL0ayGk5.js → chevron-right-LUgdqdoW.js} +1 -1
  222. package/dist/{chevron-up-0ugh8HnW.js → chevron-up-XsDeJxQN.js} +1 -1
  223. package/dist/{circle-alert-B9Ls75B5.js → circle-alert-lODfDsrj.js} +1 -1
  224. package/dist/{clock-BqHBaCLm.js → clock-DrqFEZkT.js} +1 -1
  225. package/dist/composables-BOP3ERRP.js +4517 -0
  226. package/dist/{createCloudRuntime-B5VIdnwz.js → createCloudRuntime-DGV5a5Af.js} +47 -45
  227. package/dist/{createLucideIcon-BV7Gwz_Z.js → createLucideIcon-Dw5e5gVE.js} +16 -16
  228. package/dist/{cdn/chunks/de-CeFJ6wbM.js → de-DaOUfYBX.js} +114 -2
  229. package/dist/{cdn/chunks/dist-CONcGNwy.js → dist-0alKVRc_.js} +100 -99
  230. package/dist/{dist-Cy8I5scI.js → dist-54VCNoC0.js} +2 -2
  231. package/dist/dist-6DU0me3E.js +4 -0
  232. package/dist/{dist-p3wymUDt.js → dist-B8dY8drK.js} +2 -2
  233. package/dist/{dist-Dd5MU2Ev.js → dist-B9a7iVye.js} +2 -2
  234. package/dist/{dist-V7W1UhVr.js → dist-BWflWcpW.js} +2 -2
  235. package/dist/{dist-D6fZec6r.js → dist-C3hu_C3w.js} +2 -2
  236. package/dist/{cdn/chunks/dist-C2epoAwW.js → dist-CX7skkvG.js} +29 -31
  237. package/dist/dist-CcOn7WCo.js +4 -0
  238. package/dist/dist-Cdkm20M6.js +2542 -0
  239. package/dist/{dist-BS5uKktL.js → dist-ChOb5XHW.js} +2 -2
  240. package/dist/{dist-BF5zEHop.js → dist-DZ3X-uB8.js} +2 -2
  241. package/dist/{dist-CWSG7Kj0.js → dist-D_XrUEET.js} +5 -5
  242. package/dist/{dist-txQLT2sF.js → dist-TAv500j6.js} +2 -2
  243. package/dist/{dist-DDN7yR-w.js → dist-fqSers8_.js} +131 -131
  244. package/dist/{editor-modal-Du9VI9q4.js → editor-modal-B_2EAOjN.js} +907 -906
  245. package/dist/{cdn/chunks/en-D14i5nFh.js → en-C0pHHMiR.js} +114 -2
  246. package/dist/en-DTtwco2Q.js +1 -0
  247. package/dist/{cdn/chunks/es-zDacbMhs.js → es-CxyEKr6n.js} +114 -2
  248. package/dist/{extensions-FRYhx7qa.js → extensions-DOLZkLzV.js} +173 -173
  249. package/dist/{eye-BKj9Tfnc.js → eye-DChfk0gi.js} +1 -1
  250. package/dist/{cdn/chunks/fr-CSgYtjOd.js → fr-CYbamiI6.js} +114 -2
  251. package/dist/{image-DNdvdTla.js → image--Hj2by1G.js} +1 -1
  252. package/dist/index.d.ts +182 -14
  253. package/dist/{info-Bx-kBkbH.js → info-BbXgy82f.js} +1 -1
  254. package/dist/{cdn/chunks/ja-B7H3ID8O.js → ja-DfaIAoGI.js} +114 -2
  255. package/dist/keys-BCqskl51.js +9 -0
  256. package/dist/languageName-DEEOhDWI.js +10 -0
  257. package/dist/{link-D8-rYdIQ.js → link-C2_8yJno.js} +1 -1
  258. package/dist/{liquid.browser-D1RxawkY.js → liquid.browser-DUXEekoN.js} +781 -745
  259. package/dist/{list-BneisA27.js → list-DLGs2n0V.js} +1 -1
  260. package/dist/{loader-circle-DBEXphyx.js → loader-circle-BbDItE_O.js} +1 -1
  261. package/dist/{message-circle-Bg4xInCM.js → message-circle-NAModq0p.js} +1 -1
  262. package/dist/{cdn/chunks/nl-176ySmc5.js → nl-DkrB-VKZ.js} +114 -2
  263. package/dist/normalizeMergeTagMarkup-CUCo7B5X.js +288 -0
  264. package/dist/noticeTones-D7BPu-Le.js +14 -0
  265. package/dist/{package-B40Vkfsp.js → package-BuzsfRyH.js} +1 -1
  266. package/dist/{pencil-CYdAHTds.js → pencil-BTUUECH4.js} +1 -1
  267. package/dist/plural-CyxrJXL1.js +15 -0
  268. package/dist/plus-Dm7DN65T.js +13 -0
  269. package/dist/{preRenderCustomBlocks-AbZArwkR.js → preRenderCustomBlocks-Bs3N9no-.js} +4 -4
  270. package/dist/{pt-BR-dDlTwX18.js → pt-BR-CY5Ye7eP.js} +114 -0
  271. package/dist/{refresh-cw-Bb1FWrU0.js → refresh-cw-xMURqGWi.js} +2 -12
  272. package/dist/rotate-ccw-DqVcEIn5.js +13 -0
  273. package/dist/{runtime-dom.esm-bundler-CLGymEyk.js → runtime-dom.esm-bundler-DlHp8xgy.js} +167 -167
  274. package/dist/sanitizeHtml-mKgNUdME.js +962 -0
  275. package/dist/{search-BZEo08gi.js → search-Cfr3W44N.js} +1 -1
  276. package/dist/{send-DHtrnXQs.js → send-CH1SrvyB.js} +1 -1
  277. package/dist/{smartphone-dlN3vpA3.js → smartphone-pAkvzjdI.js} +1 -1
  278. package/dist/socialIcons-Dqr4DJOz.js +2705 -0
  279. package/dist/{sparkles-NOttoDnJ.js → sparkles-CRO0cCnp.js} +1 -1
  280. package/dist/{square-B1CJgdt2.js → square-CaQWMntx.js} +1 -1
  281. package/dist/style.css +1 -1
  282. package/dist/{cdn/chunks/styleConstants-B8xVRiwX.js → styleConstants-CgiNKdnc.js} +5 -7
  283. package/dist/templatical-editor.js +2294 -1608
  284. package/dist/{text-align-start-zpoXmb-Z.js → text-align-start-BQ39AaRK.js} +1 -1
  285. package/dist/{trash-CGbk4Sgt.js → trash-BL5gEFHN.js} +1 -1
  286. package/dist/{triangle-alert-CKLMyGVp.js → triangle-alert-BYbKu7zZ.js} +1 -1
  287. package/dist/{upload-DQoackAn.js → upload-BhmL4Vqx.js} +1 -1
  288. package/dist/{useCloudI18n-DcLtxOQZ.js → useCloudI18n-Dh2iydo1.js} +4 -4
  289. package/dist/useEditorRoot-DY3mgcHm.js +7 -0
  290. package/dist/{useI18n-CeTm777E.js → useI18n-CgtvtF4C.js} +4 -4
  291. package/dist/useLocalizedDisplay-DNNwDRxL.js +31 -0
  292. package/dist/{useLogicTag-DFDYJeMN.js → useLogicTag-BXXXQQmi.js} +4 -4
  293. package/dist/{useMergeTag-B46vACAG.js → useMergeTag-C9Okr87y.js} +5 -5
  294. package/dist/usePopoverPosition-VDQjyX_A.js +76 -0
  295. package/dist/{useScrollToBlock-C-NzvjeO.js → useScrollToBlock-C0Kapxdh.js} +5 -5
  296. package/dist/{vue.runtime.esm-bundler-CrlI8j5R.js → vue.runtime.esm-bundler-BJXc_Mri.js} +1247 -1239
  297. package/dist/withCurrentFont-DJiQqZzL.js +18 -0
  298. package/dist/{x-zcrnmcmU.js → x-B7NZYzhx.js} +1 -1
  299. package/package.json +23 -23
  300. package/dist/AiAltTextPopover-Cm11CsKH.js +0 -105
  301. package/dist/BlockIssueBadge-6Ri2FfX-.js +0 -33
  302. package/dist/BlockPreviewCanvas-Df9iz7sK.js +0 -140
  303. package/dist/CollaborationNotices-JQ3vQoqO.js +0 -75
  304. package/dist/CommentsPanel-BuftXc0U.js +0 -16
  305. package/dist/CommentsSidebar-Co3x4uH0.js +0 -499
  306. package/dist/CountdownToolbar-CrL4WKy9.js +0 -197
  307. package/dist/MergeTagInput-DE7kWwXx.js +0 -80
  308. package/dist/MergeTagTextarea-DVPQkiYY.js +0 -69
  309. package/dist/SavedBlocksBrowserModal-SRtN5h9q.js +0 -359
  310. package/dist/TemplateSettings-D0XcH32O.js +0 -236
  311. package/dist/TestEmailModal-Cb5t0yB2.js +0 -209
  312. package/dist/TitleEditor-BYk_9SpQ.js +0 -198
  313. package/dist/ToggleSwitch-poGWbduy.js +0 -36
  314. package/dist/Toolbar-Dku_pZni.js +0 -3145
  315. package/dist/VersionPreviewBanner-CSs7zum_.js +0 -37
  316. package/dist/WrapperBlock-DwjK_IdJ.js +0 -44
  317. package/dist/cdn/chunks/AiAltTextPopover-DjMoJCgU.js +0 -106
  318. package/dist/cdn/chunks/AiAltTextPopover-DjMoJCgU.js.map +0 -1
  319. package/dist/cdn/chunks/AiAltTextReview-BafAtBoA.js.map +0 -1
  320. package/dist/cdn/chunks/AiChatPanel-DXeZgc7D.js +0 -474
  321. package/dist/cdn/chunks/AiChatPanel-DXeZgc7D.js.map +0 -1
  322. package/dist/cdn/chunks/AiRewriteMenu-4F6vwhJ5.js.map +0 -1
  323. package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js +0 -34
  324. package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js.map +0 -1
  325. package/dist/cdn/chunks/BlockPreviewCanvas-Ny1X_mee.js +0 -142
  326. package/dist/cdn/chunks/CollaborationNotices-Hf8r08Sw.js +0 -77
  327. package/dist/cdn/chunks/CollaborationNotices-Hf8r08Sw.js.map +0 -1
  328. package/dist/cdn/chunks/CommentsPanel-CAiwilM2.js +0 -18
  329. package/dist/cdn/chunks/CommentsSidebar-Dj8sDiLN.js +0 -469
  330. package/dist/cdn/chunks/CommentsSidebar-Dj8sDiLN.js.map +0 -1
  331. package/dist/cdn/chunks/CountdownToolbar-CguFJdqn.js +0 -199
  332. package/dist/cdn/chunks/CountdownToolbar-CguFJdqn.js.map +0 -1
  333. package/dist/cdn/chunks/IssuesPanel-pr7_nuLI.js.map +0 -1
  334. package/dist/cdn/chunks/LogicTagInsertButton-B_ldj3TO.js.map +0 -1
  335. package/dist/cdn/chunks/MediaEditModal-CGfzcHwP.js.map +0 -1
  336. package/dist/cdn/chunks/MergeTagModeToggle-BFpK5dxg.js.map +0 -1
  337. package/dist/cdn/chunks/MergeTagTextarea-Zo0mYWbf.js +0 -71
  338. package/dist/cdn/chunks/MergeTagTextarea-Zo0mYWbf.js.map +0 -1
  339. package/dist/cdn/chunks/ParagraphEditor-DsPLVAgm.js +0 -631
  340. package/dist/cdn/chunks/ParagraphEditor-DsPLVAgm.js.map +0 -1
  341. package/dist/cdn/chunks/SavedBlocksBrowserModal-B9XCjDfm.js +0 -356
  342. package/dist/cdn/chunks/TemplateSettings-jWpmuWDR.js +0 -208
  343. package/dist/cdn/chunks/TemplateSettings-jWpmuWDR.js.map +0 -1
  344. package/dist/cdn/chunks/TestEmailModal-DcwKhFnI.js.map +0 -1
  345. package/dist/cdn/chunks/TitleEditor-R2lQw6WA.js +0 -198
  346. package/dist/cdn/chunks/TitleEditor-R2lQw6WA.js.map +0 -1
  347. package/dist/cdn/chunks/ToggleSwitch-BDMugNES.js +0 -38
  348. package/dist/cdn/chunks/ToggleSwitch-BDMugNES.js.map +0 -1
  349. package/dist/cdn/chunks/Toolbar-CnvfW72e.js +0 -3061
  350. package/dist/cdn/chunks/Toolbar-CnvfW72e.js.map +0 -1
  351. package/dist/cdn/chunks/VersionPreviewBanner-CZ--HOoa.js +0 -39
  352. package/dist/cdn/chunks/VersionPreviewBanner-CZ--HOoa.js.map +0 -1
  353. package/dist/cdn/chunks/WrapperBlock-D3obNGab.js +0 -46
  354. package/dist/cdn/chunks/WrapperBlock-D3obNGab.js.map +0 -1
  355. package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js +0 -21
  356. package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js.map +0 -1
  357. package/dist/cdn/chunks/ca-CD-Kt1qz.js.map +0 -1
  358. package/dist/cdn/chunks/createCloudRuntime-D6niZ2Rc.js.map +0 -1
  359. package/dist/cdn/chunks/de-CeFJ6wbM.js.map +0 -1
  360. package/dist/cdn/chunks/draggable-B8hTTYFO.js.map +0 -1
  361. package/dist/cdn/chunks/en-CKAXAo3Z.js +0 -1
  362. package/dist/cdn/chunks/en-D14i5nFh.js.map +0 -1
  363. package/dist/cdn/chunks/es-zDacbMhs.js.map +0 -1
  364. package/dist/cdn/chunks/fr-CSgYtjOd.js.map +0 -1
  365. package/dist/cdn/chunks/icons-HCBP93Ch.js.map +0 -1
  366. package/dist/cdn/chunks/ja-B7H3ID8O.js.map +0 -1
  367. package/dist/cdn/chunks/keys-BF9gazbd.js +0 -11
  368. package/dist/cdn/chunks/keys-BF9gazbd.js.map +0 -1
  369. package/dist/cdn/chunks/liquid.browser-DkLBNrft.js.map +0 -1
  370. package/dist/cdn/chunks/nl-176ySmc5.js.map +0 -1
  371. package/dist/cdn/chunks/normalizeMergeTagMarkup-DpHCSESZ.js +0 -198
  372. package/dist/cdn/chunks/normalizeMergeTagMarkup-DpHCSESZ.js.map +0 -1
  373. package/dist/cdn/chunks/pt-BR-dDlTwX18.js.map +0 -1
  374. package/dist/cdn/chunks/sanitizeHtml-B2h15u0_.js +0 -72
  375. package/dist/cdn/chunks/sanitizeHtml-B2h15u0_.js.map +0 -1
  376. package/dist/cdn/chunks/socialIcons-rJoqO1TJ.js +0 -2008
  377. package/dist/cdn/chunks/socialIcons-rJoqO1TJ.js.map +0 -1
  378. package/dist/cdn/chunks/src-BKpAis_q.js.map +0 -1
  379. package/dist/cdn/chunks/src-C9DTvn1H.js +0 -1423
  380. package/dist/cdn/chunks/src-C9DTvn1H.js.map +0 -1
  381. package/dist/cdn/chunks/src-CUH_EI7k.js.map +0 -1
  382. package/dist/cdn/chunks/styleConstants-B8xVRiwX.js.map +0 -1
  383. package/dist/cdn/chunks/useEditorCore-CjaEV_01.js +0 -2534
  384. package/dist/cdn/chunks/useEditorCore-CjaEV_01.js.map +0 -1
  385. package/dist/cdn/chunks/useEditorRoot-BT3c9CXj.js +0 -9
  386. package/dist/cdn/chunks/usePopoverPosition-AnVIwiVv.js +0 -70
  387. package/dist/cdn/chunks/usePopoverPosition-AnVIwiVv.js.map +0 -1
  388. package/dist/cdn/chunks/useScrollToBlock-C0dawxGr.js.map +0 -1
  389. package/dist/dist-CzrLYq2s.js +0 -1363
  390. package/dist/dist-DyFArF_G.js +0 -4
  391. package/dist/dist-pA3ooG6N.js +0 -4
  392. package/dist/en-CyEE7FPY.js +0 -1
  393. package/dist/keys-DBjrQkYH.js +0 -9
  394. package/dist/normalizeMergeTagMarkup-IH8COHzd.js +0 -196
  395. package/dist/sanitizeHtml-CnOA1efV.js +0 -942
  396. package/dist/socialIcons-B_d52_eS.js +0 -2075
  397. package/dist/useEditorCore-DG9UvWUm.js +0 -4011
  398. package/dist/useEditorRoot-BKr6nNkC.js +0 -7
  399. package/dist/usePopoverPosition-C42kD7zt.js +0 -68
  400. package/dist/withCurrentFont-v_a4Oso8.js +0 -18
@@ -1,40 +1,40 @@
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-B8hTTYFO.js";
2
- import { c as O, i as k, s as A, u as j } from "./src-C9DTvn1H.js";
3
- import { t as ee } from "./dist-CONcGNwy.js";
4
- import { J as te, Y as M, Z as ne, d as re } from "./keys-BF9gazbd.js";
5
- import { t as N } from "./useI18n-11iqzC6m.js";
6
- import { a as P, i as ie, n as ae, o as oe, r as se, t as ce } from "./usePopoverPosition-AnVIwiVv.js";
7
- import { Bt as le, G as F, N as I, t as L } from "./icons-HCBP93Ch.js";
8
- import { t as R } from "./useMergeTag-BFBBjnwh.js";
9
- import { t as ue } from "./useLogicTag-vy5KGg5D.js";
10
- import { u as de } from "./styleConstants-B8xVRiwX.js";
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-CACM3o--.js";
3
+ import { G as N, Ht as P, N as F, t as I } from "./icons-CSSMtbGK.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-C-32ETjj.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-B7RpqVFQ.js";
11
11
  // ../../node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/math.js
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 ? {
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 ? {
13
13
  r: parseInt(e[0] + e[0], 16),
14
14
  g: parseInt(e[1] + e[1], 16),
15
15
  b: parseInt(e[2] + e[2], 16),
16
- a: e.length === 4 ? B(parseInt(e[3] + e[3], 16) / 255, 2) : 1
16
+ a: e.length === 4 ? V(parseInt(e[3] + e[3], 16) / 255, 2) : 1
17
17
  } : {
18
18
  r: parseInt(e.substring(0, 2), 16),
19
19
  g: parseInt(e.substring(2, 4), 16),
20
20
  b: parseInt(e.substring(4, 6), 16),
21
- a: e.length === 8 ? B(parseInt(e.substring(6, 8), 16) / 255, 2) : 1
22
- }), fe = (e) => pe(G(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 }) => {
23
23
  let i = (200 - t) * n / 100;
24
24
  return {
25
- h: B(e),
26
- s: B(i > 0 && i < 200 ? t * n / 100 / (i <= 100 ? i : 200 - i) * 100 : 0),
27
- l: B(i / 2),
28
- a: B(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)
29
29
  };
30
- }, W = (e) => {
31
- let { h: t, s: n, l: r } = U(e);
30
+ }, G = (e) => {
31
+ let { h: t, s: n, l: r } = W(e);
32
32
  return `hsl(${t}, ${n}%, ${r}%)`;
33
- }, G = ({ h: e, s: t, v: n, a: r }) => {
33
+ }, K = ({ h: e, s: t, v: n, a: r }) => {
34
34
  e = e / 360 * 6, t /= 100, n /= 100;
35
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;
36
36
  return {
37
- r: B([
37
+ r: V([
38
38
  n,
39
39
  o,
40
40
  a,
@@ -42,7 +42,7 @@ var z = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, B = (e, t = 0, n = 10 **
42
42
  s,
43
43
  n
44
44
  ][c] * 255),
45
- g: B([
45
+ g: V([
46
46
  s,
47
47
  n,
48
48
  n,
@@ -50,7 +50,7 @@ var z = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, B = (e, t = 0, n = 10 **
50
50
  a,
51
51
  a
52
52
  ][c] * 255),
53
- b: B([
53
+ b: V([
54
54
  a,
55
55
  a,
56
56
  s,
@@ -58,73 +58,73 @@ var z = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, B = (e, t = 0, n = 10 **
58
58
  n,
59
59
  o
60
60
  ][c] * 255),
61
- a: B(r, 2)
61
+ a: V(r, 2)
62
62
  };
63
- }, K = (e) => {
63
+ }, q = (e) => {
64
64
  let t = e.toString(16);
65
65
  return t.length < 2 ? "0" + t : t;
66
- }, pe = ({ r: e, g: t, b: n, a: r }) => {
67
- let i = r < 1 ? K(B(r * 255)) : "";
68
- return "#" + K(e) + K(t) + K(n) + i;
69
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;
69
+ }, he = ({ r: e, g: t, b: n, a: r }) => {
70
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;
71
71
  return {
72
- h: B(60 * (o < 0 ? o + 6 : o)),
73
- s: B(i ? a / i * 100 : 0),
74
- v: B(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),
75
75
  a: r
76
76
  };
77
- }, q = (e, t) => {
77
+ }, ge = (e, t) => {
78
78
  if (e === t) return !0;
79
79
  for (let n in e) if (e[n] !== t[n]) return !1;
80
80
  return !0;
81
- }, he = (e, t) => e.toLowerCase() === t.toLowerCase() || q(H(e), H(t)), ge = {}, J = (e) => {
82
- let t = ge[e];
83
- return t || (t = document.createElement("template"), t.innerHTML = e, ge[e] = t), t;
84
- }, Y = (e, t, n) => {
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;
84
+ }, J = (e, t, n) => {
85
85
  e.dispatchEvent(new CustomEvent(t, {
86
86
  bubbles: !0,
87
87
  detail: n
88
88
  }));
89
- }, X = !1, Z = (e) => "touches" in e, _e = (e) => X && !Z(e) ? !1 : (X ||= Z(e), !0), ve = (e, t) => {
90
- let n = Z(t) ? t.touches[0] : t, r = e.el.getBoundingClientRect();
91
- Y(e.el, "move", e.getMove({
92
- x: z((n.pageX - (r.left + window.pageXOffset)) / r.width),
93
- y: z((n.pageY - (r.top + window.pageYOffset)) / r.height)
89
+ }, Y = !1, X = (e) => "touches" in e, be = (e) => Y && !X(e) ? !1 : (Y ||= X(e), !0), Z = (e, t) => {
90
+ let n = X(t) ? t.touches[0] : t, r = e.el.getBoundingClientRect();
91
+ J(e.el, "move", e.getMove({
92
+ x: B((n.pageX - (r.left + window.pageXOffset)) / r.width),
93
+ y: B((n.pageY - (r.top + window.pageYOffset)) / r.height)
94
94
  }));
95
- }, ye = (e, t) => {
95
+ }, xe = (e, t) => {
96
96
  let n = t.keyCode;
97
- n > 40 || e.xy && n < 37 || n < 33 || (t.preventDefault(), Y(e.el, "move", e.getMove({
97
+ n > 40 || e.xy && n < 37 || n < 33 || (t.preventDefault(), J(e.el, "move", e.getMove({
98
98
  x: n === 39 ? .01 : n === 37 ? -.01 : n === 34 ? .05 : n === 33 ? -.05 : n === 35 ? 1 : n === 36 ? -1 : 0,
99
99
  y: n === 40 ? .01 : n === 38 ? -.01 : 0
100
100
  }, !0)));
101
- }, Q = class {
101
+ }, Se = class {
102
102
  constructor(e, t, n, r) {
103
- let i = J(`<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>`);
104
104
  e.appendChild(i.content.cloneNode(!0));
105
105
  let a = e.querySelector(`[part=${t}]`);
106
106
  a.addEventListener("mousedown", this), a.addEventListener("touchstart", this), a.addEventListener("keydown", this), this.el = a, this.xy = r, this.nodes = [a.firstChild, a];
107
107
  }
108
108
  set dragging(e) {
109
109
  let t = e ? document.addEventListener : document.removeEventListener;
110
- t(X ? "touchmove" : "mousemove", this), t(X ? "touchend" : "mouseup", this);
110
+ t(Y ? "touchmove" : "mousemove", this), t(Y ? "touchend" : "mouseup", this);
111
111
  }
112
112
  handleEvent(e) {
113
113
  switch (e.type) {
114
114
  case "mousedown":
115
115
  case "touchstart":
116
- if (e.preventDefault(), !_e(e) || !X && e.button != 0) return;
117
- this.el.focus(), ve(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;
118
118
  break;
119
119
  case "mousemove":
120
120
  case "touchmove":
121
- e.preventDefault(), ve(this, e);
121
+ e.preventDefault(), Z(this, e);
122
122
  break;
123
123
  case "mouseup":
124
124
  case "touchend":
125
125
  this.dragging = !1;
126
126
  break;
127
- case "keydown": ye(this, e);
127
+ case "keydown": xe(this, e);
128
128
  }
129
129
  }
130
130
  style(e) {
@@ -132,25 +132,25 @@ var z = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, B = (e, t = 0, n = 10 **
132
132
  for (let n in e) this.nodes[t].style.setProperty(n, e[n]);
133
133
  });
134
134
  }
135
- }, be = class extends Q {
135
+ }, Ce = class extends Se {
136
136
  constructor(e) {
137
137
  super(e, "hue", "aria-label=\"Hue\" aria-valuemin=\"0\" aria-valuemax=\"360\"", !1);
138
138
  }
139
139
  update({ h: e }) {
140
140
  this.h = e, this.style([{
141
141
  left: `${e / 360 * 100}%`,
142
- color: W({
142
+ color: G({
143
143
  h: e,
144
144
  s: 100,
145
145
  v: 100,
146
146
  a: 1
147
147
  })
148
- }]), this.el.setAttribute("aria-valuenow", `${B(e)}`);
148
+ }]), this.el.setAttribute("aria-valuenow", `${V(e)}`);
149
149
  }
150
150
  getMove(e, t) {
151
- return { h: t ? z(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 };
152
152
  }
153
- }, xe = class extends Q {
153
+ }, Q = class extends Se {
154
154
  constructor(e) {
155
155
  super(e, "saturation", "aria-label=\"Color\"", !0);
156
156
  }
@@ -158,47 +158,47 @@ var z = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, B = (e, t = 0, n = 10 **
158
158
  this.hsva = e, this.style([{
159
159
  top: `${100 - e.v}%`,
160
160
  left: `${e.s}%`,
161
- color: W(e)
162
- }, { "background-color": W({
161
+ color: G(e)
162
+ }, { "background-color": G({
163
163
  h: e.h,
164
164
  s: 100,
165
165
  v: 100,
166
166
  a: 1
167
- }) }]), this.el.setAttribute("aria-valuetext", `Saturation ${B(e.s)}%, Brightness ${B(e.v)}%`);
167
+ }) }]), this.el.setAttribute("aria-valuetext", `Saturation ${V(e.s)}%, Brightness ${V(e.v)}%`);
168
168
  }
169
169
  getMove(e, t) {
170
170
  return {
171
- s: t ? z(this.hsva.s + e.x * 100, 0, 100) : e.x * 100,
172
- v: t ? z(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)
173
173
  };
174
174
  }
175
- }, Se = ":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)}", Ce = "[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}", we = "[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"), Te = Symbol("color"), Ee = Symbol("hsva"), De = Symbol("update"), Oe = Symbol("parts"), ke = Symbol("css"), Ae = Symbol("sliders"), je = 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 {
176
176
  static get observedAttributes() {
177
177
  return ["color"];
178
178
  }
179
- get [ke]() {
179
+ get [je]() {
180
180
  return [
181
- Se,
182
- Ce,
183
- we
181
+ we,
182
+ Te,
183
+ Ee
184
184
  ];
185
185
  }
186
- get [Ae]() {
187
- return [xe, be];
186
+ get [Me]() {
187
+ return [Q, Ce];
188
188
  }
189
189
  get color() {
190
- return this[Te];
190
+ return this[De];
191
191
  }
192
192
  set color(e) {
193
193
  if (!this[$](e)) {
194
194
  let t = this.colorModel.toHsva(e);
195
- this[De](t), this[Te] = e;
195
+ this[ke](t), this[De] = e;
196
196
  }
197
197
  }
198
198
  constructor() {
199
199
  super();
200
- let e = J(`<style>${this[ke].join("")}</style>`), t = this.attachShadow({ mode: "open" });
201
- t.appendChild(e.content.cloneNode(!0)), t.addEventListener("move", this), this[Oe] = this[Ae].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));
202
202
  }
203
203
  connectedCallback() {
204
204
  if (this.hasOwnProperty("color")) {
@@ -211,75 +211,75 @@ var z = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, B = (e, t = 0, n = 10 **
211
211
  this[$](r) || (this.color = r);
212
212
  }
213
213
  handleEvent(e) {
214
- let t = this[Ee], n = {
214
+ let t = this[Oe], n = {
215
215
  ...t,
216
216
  ...e.detail
217
217
  };
218
- this[De](n);
218
+ this[ke](n);
219
219
  let r;
220
- !q(n, t) && !this[$](r = this.colorModel.fromHsva(n)) && (this[Te] = r, Y(this, "color-changed", { value: r }));
220
+ !ge(n, t) && !this[$](r = this.colorModel.fromHsva(n)) && (this[De] = r, J(this, "color-changed", { value: r }));
221
221
  }
222
222
  [$](e) {
223
223
  return this.color && this.colorModel.equal(e, this.color);
224
224
  }
225
- [De](e) {
226
- this[Ee] = e, this[Oe].forEach((t) => t.update(e));
225
+ [ke](e) {
226
+ this[Oe] = e, this[Ae].forEach((t) => t.update(e));
227
227
  }
228
- }, Me = {
228
+ }, Pe = {
229
229
  defaultColor: "#000",
230
- toHsva: V,
231
- fromHsva: ({ h: e, s: t, v: n }) => fe({
230
+ toHsva: H,
231
+ fromHsva: ({ h: e, s: t, v: n }) => pe({
232
232
  h: e,
233
233
  s: t,
234
234
  v: n,
235
235
  a: 1
236
236
  }),
237
- equal: he,
237
+ equal: _e,
238
238
  fromAttr: (e) => e
239
- }, Ne = class extends je {
239
+ }, Fe = class extends Ne {
240
240
  get colorModel() {
241
- return Me;
241
+ return Pe;
242
242
  }
243
243
  };
244
- customElements.define("hex-color-picker", class extends Ne {});
244
+ customElements.define("hex-color-picker", class extends Fe {});
245
245
  // src/components/ColorPicker.vue?vue&type=script&setup=true&lang.ts
246
- var Pe = [
246
+ var Ie = [
247
247
  "disabled",
248
248
  "aria-label",
249
249
  "title",
250
250
  "aria-expanded"
251
- ], Fe = {
251
+ ], Le = {
252
252
  key: 0,
253
253
  class: "tpl:relative tpl:flex-1"
254
- }, Ie = [
254
+ }, Re = [
255
255
  "value",
256
256
  "placeholder",
257
257
  "disabled",
258
258
  "aria-label"
259
- ], Le = ["aria-label", "title"], Re = ["data-tpl-theme"], ze = [
259
+ ], ze = ["aria-label", "title"], Be = ["data-tpl-theme"], Ve = [
260
260
  "aria-pressed",
261
261
  "aria-label",
262
262
  "title"
263
- ], Be = ["aria-label"], Ve = [
263
+ ], He = ["aria-label"], Ue = [
264
264
  "aria-label",
265
265
  "title",
266
266
  "aria-checked",
267
267
  "tabindex"
268
- ], He = [
268
+ ], We = [
269
269
  "aria-label",
270
270
  "title",
271
271
  "aria-checked",
272
272
  "tabindex",
273
273
  "onClick"
274
- ], Ue = ["color", "aria-label"], We = {
274
+ ], Ge = ["color", "aria-label"], Ke = {
275
275
  key: 3,
276
276
  class: "tpl:relative tpl:mt-2"
277
- }, Ge = [
277
+ }, qe = [
278
278
  "value",
279
279
  "placeholder",
280
280
  "disabled",
281
281
  "aria-label"
282
- ], Ke = ["aria-label", "title"], qe = /* @__PURE__ */ n({
282
+ ], Je = ["aria-label", "title"], Ye = /* @__PURE__ */ e({
283
283
  __name: "ColorPicker",
284
284
  props: {
285
285
  modelValue: {},
@@ -306,34 +306,38 @@ var Pe = [
306
306
  }
307
307
  },
308
308
  emits: ["update:modelValue"],
309
- setup(t, { emit: n }) {
310
- let a = t, s = n, { t: l } = N(), C = e(!1), w = e(), O = e(), k = e(!1);
311
- ee(w, () => {
312
- C.value = !1;
313
- }, { ignore: [O] });
314
- 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));
315
- function H(e) {
316
- return V.value !== "" && se(e) === V.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;
317
321
  }
318
- function fe(e) {
319
- s("update:modelValue", e);
322
+ function G(e) {
323
+ l.value || v("update:modelValue", e);
320
324
  }
321
- let U = S(() => z.value && !B.value);
322
- function W(e) {
323
- return U.value ? e + 1 : e;
325
+ let K = C(() => H.value && !U.value);
326
+ function q(e) {
327
+ return K.value ? e + 1 : e;
324
328
  }
325
- let G = S(() => {
326
- if (U.value && A.value) return 0;
327
- let e = R.value.findIndex((e) => H(e));
328
- return e === -1 ? 0 : W(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);
329
333
  });
330
- function K() {
331
- return G.value === 0 ? 0 : -1;
334
+ function he() {
335
+ return me.value === 0 ? 0 : -1;
332
336
  }
333
- function pe(e) {
334
- return W(e) === G.value ? 0 : -1;
337
+ function ge(e) {
338
+ return q(e) === me.value ? 0 : -1;
335
339
  }
336
- function me(e) {
340
+ function _e(e) {
337
341
  if (![
338
342
  "ArrowRight",
339
343
  "ArrowDown",
@@ -343,90 +347,90 @@ var Pe = [
343
347
  let t = Array.from(e.currentTarget.querySelectorAll("[role=\"radio\"]")), n = e.target.closest("[role=\"radio\"]"), r = n ? t.indexOf(n) : -1;
344
348
  r !== -1 && (t[(r + (e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : -1) + t.length) % t.length]?.focus(), e.preventDefault());
345
349
  }
346
- function q(e) {
347
- k.value = !0, s("update:modelValue", e.detail.value);
350
+ function ve(e) {
351
+ l.value || (M.value = !0, v("update:modelValue", e.detail.value));
348
352
  }
349
- function he() {
350
- k.value = !1;
351
- }
352
- function ge() {
353
- !k.value && A.value && s("update:modelValue", le.value);
353
+ function ye() {
354
+ l.value || (M.value = !1);
354
355
  }
355
- function J(e) {
356
- s("update:modelValue", e.target.value);
356
+ function J() {
357
+ l.value || !M.value && N.value && v("update:modelValue", re.value);
357
358
  }
358
- function Y() {
359
- s("update:modelValue", "");
359
+ function Y(e) {
360
+ l.value || v("update:modelValue", e.target.value);
360
361
  }
361
362
  function X() {
362
- s("update:modelValue", "transparent");
363
+ l.value || v("update:modelValue", "");
363
364
  }
364
- let Z = ae(), { toLocal: _e } = ce(), ve = r(te, null), ye = r(ne, null), Q = e({
365
+ function be() {
366
+ l.value || v("update:modelValue", "transparent");
367
+ }
368
+ let Z = ce(), { toLocal: xe } = fe(), Se = o(ee, null), Ce = o(te, null), Q = E({
365
369
  top: 0,
366
370
  left: 0
367
371
  });
368
- function be() {
369
- if (!a.disabled) {
370
- if (!C.value) {
371
- let e = O.value?.getBoundingClientRect();
372
+ function we() {
373
+ if (!l.value) {
374
+ if (!k.value) {
375
+ let e = j.value?.getBoundingClientRect();
372
376
  if (e) {
373
377
  let t = e.bottom + 8 + 240 <= window.innerHeight ? e.bottom + 8 : Math.max(8, e.top - 240 - 8);
374
- Q.value = _e({
378
+ Q.value = xe({
375
379
  top: t,
376
380
  left: e.left
377
381
  });
378
382
  }
379
383
  }
380
- C.value = !C.value;
384
+ k.value = !k.value;
381
385
  }
382
386
  }
383
- 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"]) }, [
384
- y("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", {
385
389
  ref_key: "swatchRef",
386
- ref: O,
390
+ ref: j,
387
391
  type: "button",
388
- disabled: t.disabled,
389
- "aria-label": t.ariaLabel || x(l).colorPicker.pickColor,
390
- title: t.ariaLabel || void 0,
391
- "aria-expanded": C.value,
392
- class: v([
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([
393
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)]",
394
- t.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer",
395
- C.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !t.disabled && "tpl:hover:border-[var(--tpl-text-dim)]",
396
- t.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"
397
401
  ]),
398
- onClick: be
399
- }, [y("span", {
400
- class: v(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", {
401
- "tpl-color-swatch-empty": A.value,
402
- "tpl-color-swatch-transparent": j.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
403
407
  }]),
404
- style: E(A.value || j.value ? void 0 : { backgroundColor: M.value })
405
- }, null, 6)], 10, Pe),
406
- !t.swatchOnly && B.value ? (o(), u("div", Fe, [y("input", {
408
+ style: w(N.value || P.value ? void 0 : { backgroundColor: F.value })
409
+ }, null, 6)], 10, Ie),
410
+ !e.swatchOnly && U.value ? (n(), u("div", Le, [b("input", {
407
411
  type: "text",
408
- class: v([x(de), "tpl:w-full"]),
409
- style: E(F.value ? { paddingRight: "2.25rem" } : void 0),
410
- value: M.value,
411
- placeholder: t.placeholder || x(l).colorPicker.notSet,
412
- disabled: t.disabled,
413
- "aria-label": x(l).colorPicker.hexValue,
414
- onInput: J
415
- }, null, 46, Ie), F.value ? (o(), u("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", {
416
420
  key: 0,
417
421
  type: "button",
418
- "aria-label": x(l).colorPicker.clear,
419
- title: x(l).colorPicker.clear,
422
+ "aria-label": p(T).colorPicker.clear,
423
+ title: p(T).colorPicker.clear,
420
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)]",
421
- onClick: Y
422
- }, [D(x(L), {
425
+ onClick: X
426
+ }, [O(p(I), {
423
427
  size: 14,
424
428
  "stroke-width": 1.5
425
- })], 8, Le)) : h("", !0)])) : h("", !0),
426
- (o(), g(m, {
427
- to: x(Z),
428
- disabled: !x(Z)
429
- }, [D(b, {
429
+ })], 8, ze)) : g("", !0)])) : g("", !0),
430
+ (n(), _(h, {
431
+ to: p(Z),
432
+ disabled: !p(Z)
433
+ }, [O(S, {
430
434
  "enter-active-class": "tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
431
435
  "enter-from-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1",
432
436
  "enter-to-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
@@ -434,103 +438,103 @@ var Pe = [
434
438
  "leave-from-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
435
439
  "leave-to-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1"
436
440
  }, {
437
- default: c(() => [C.value ? (o(), u("div", {
441
+ default: r(() => [k.value ? (n(), u("div", {
438
442
  key: 0,
439
443
  ref_key: "popoverRef",
440
- ref: w,
441
- "data-tpl-theme": x(ye),
444
+ ref: A,
445
+ "data-tpl-theme": p(Ce),
442
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)]",
443
- style: E({
447
+ style: w({
444
448
  top: `${Q.value.top}px`,
445
449
  left: `${Q.value.left}px`,
446
- ...x(ve)
450
+ ...p(Se)
447
451
  })
448
452
  }, [
449
- t.allowTransparent ? (o(), u("button", {
453
+ e.allowTransparent ? (n(), u("button", {
450
454
  key: 0,
451
455
  type: "button",
452
456
  "data-testid": "color-picker-transparent",
453
- "aria-pressed": j.value,
454
- "aria-label": x(l).colorPicker.transparent,
455
- title: x(l).colorPicker.transparent,
456
- 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)]"]),
457
- onClick: X
458
- }, [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),
459
- z.value ? (o(), u("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", {
460
464
  key: 1,
461
465
  role: "radiogroup",
462
- "aria-label": x(l).colorPicker.presetColors,
463
- class: v(["tpl:flex tpl:flex-wrap tpl:gap-1.5", B.value && "tpl:mb-2"]),
464
- onKeydown: me
465
- }, [U.value ? (o(), u("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", {
466
470
  key: 0,
467
471
  type: "button",
468
472
  role: "radio",
469
- "aria-label": x(l).colorPicker.clear,
470
- title: x(l).colorPicker.clear,
471
- "aria-checked": A.value,
472
- tabindex: K(),
473
- 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)]"]),
474
- onClick: Y
475
- }, null, 10, Ve)) : h("", !0), (o(!0), u(T, null, i(R.value, (e, t) => (o(), u("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", {
476
480
  key: e,
477
481
  type: "button",
478
482
  role: "radio",
479
483
  "aria-label": e,
480
484
  title: e,
481
- "aria-checked": H(e),
482
- tabindex: pe(t),
483
- style: E({ backgroundColor: e }),
484
- 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)]"]),
485
- onClick: (t) => fe(e)
486
- }, null, 14, He))), 128))], 42, Be)) : h("", !0),
487
- B.value ? (o(), u("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", {
488
492
  key: 2,
489
- color: le.value,
490
- "aria-label": x(l).colorPicker.pickColor,
491
- onColorChanged: q,
492
- onPointerdown: he,
493
- onPointerup: ge,
494
- onKeydown: n[0] ||= f((e) => C.value = !1, ["escape"])
495
- }, null, 40, Ue)) : h("", !0),
496
- t.swatchOnly && B.value ? (o(), u("div", We, [y("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", {
497
501
  type: "text",
498
- class: v([x(de), "tpl:w-full"]),
499
- style: E(F.value ? { paddingRight: "2.25rem" } : void 0),
500
- value: M.value,
501
- placeholder: t.placeholder || x(l).colorPicker.notSet,
502
- disabled: t.disabled,
503
- "aria-label": x(l).colorPicker.hexValue,
504
- onChange: J,
505
- onKeydown: n[1] ||= f(_((e) => e.target.blur(), ["prevent"]), ["enter"])
506
- }, null, 46, Ge), F.value ? (o(), u("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", {
507
511
  key: 0,
508
512
  type: "button",
509
- "aria-label": x(l).colorPicker.clear,
510
- title: x(l).colorPicker.clear,
513
+ "aria-label": p(T).colorPicker.clear,
514
+ title: p(T).colorPicker.clear,
511
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)]",
512
- onClick: Y
513
- }, [D(x(L), {
516
+ onClick: X
517
+ }, [O(p(I), {
514
518
  size: 14,
515
519
  "stroke-width": 1.5
516
- })], 8, Ke)) : h("", !0)])) : h("", !0)
517
- ], 12, Re)) : h("", !0)]),
520
+ })], 8, Je)) : g("", !0)])) : g("", !0)
521
+ ], 12, Be)) : g("", !0)]),
518
522
  _: 1
519
523
  })], 8, ["to", "disabled"]))
520
524
  ], 2));
521
525
  }
522
- }), Je = ["id"], Ye = {
526
+ }), Xe = ["id"], Ze = {
523
527
  key: 0,
524
528
  class: "tpl:px-3 tpl:py-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
525
529
  "data-testid": "merge-tag-suggestion-empty"
526
- }, Xe = [
530
+ }, Qe = [
527
531
  "id",
528
532
  "aria-selected",
529
533
  "data-selected",
530
534
  "data-merge-tag-value",
531
535
  "onMousedown",
532
536
  "onMousemove"
533
- ], Ze = { class: "tpl:font-medium" }, Qe = { class: "tpl:text-[var(--tpl-text-dim)] tpl:font-mono" }, $e = /* @__PURE__ */ n({
537
+ ], $e = { class: "tpl:font-medium" }, et = { class: "tpl:text-[var(--tpl-text-dim)] tpl:font-mono" }, tt = /* @__PURE__ */ e({
534
538
  __name: "MergeTagSuggestionList",
535
539
  props: {
536
540
  items: {},
@@ -541,49 +545,49 @@ var Pe = [
541
545
  emits: ["select", "hover"],
542
546
  setup(e) {
543
547
  let t = e;
544
- function n(e) {
548
+ function r(e) {
545
549
  return t.listId ? `${t.listId}-opt-${e}` : void 0;
546
550
  }
547
- return (t, r) => (o(), u("div", {
551
+ return (t, i) => (n(), u("div", {
548
552
  id: e.listId,
549
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)]",
550
554
  role: "listbox",
551
555
  "data-testid": "merge-tag-suggestion-list"
552
- }, [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", {
553
- key: r.value,
554
- 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),
555
559
  type: "button",
556
560
  role: "option",
557
- "aria-selected": i === e.selectedIndex,
558
- "data-selected": i === e.selectedIndex ? "true" : "false",
559
- "data-merge-tag-value": r.value,
560
- 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)]"]),
561
- onMousedown: _((e) => t.$emit("select", r), ["prevent", "stop"]),
562
- onMousemove: (n) => i !== e.selectedIndex && t.$emit("hover", i)
563
- }, [y("span", Ze, p(r.label), 1), y("span", Qe, p(r.value), 1)], 42, Xe))), 128))], 8, Je));
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));
564
568
  }
565
- }), et = 10, tt = 0;
566
- function nt(e, t) {
569
+ }), nt = 10, rt = 0;
570
+ function it(e, t) {
567
571
  let n = t.trim().toLowerCase();
568
- return n === "" ? e.slice(0, et) : e.filter((e) => {
572
+ return n === "" ? e.slice(0, nt) : e.filter((e) => {
569
573
  let t = e.label.toLowerCase(), r = e.value.toLowerCase();
570
574
  return t.includes(n) || r.includes(n);
571
- }).slice(0, et);
575
+ }).slice(0, nt);
572
576
  }
573
- function rt(e, t, n, r) {
577
+ function at(e, t, n, r) {
574
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;
575
579
  }
576
- function it(t, n) {
577
- 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;
578
- function m() {
579
- y(d?.() ?? 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;
582
+ function p() {
583
+ v(u?.() ?? null);
580
584
  }
581
- function h() {
582
- m(), p !== null && cancelAnimationFrame(p), p = requestAnimationFrame(() => {
583
- p = null, m();
585
+ function m() {
586
+ p(), f !== null && cancelAnimationFrame(f), f = requestAnimationFrame(() => {
587
+ f = null, p();
584
588
  });
585
589
  }
586
- function g(e) {
590
+ function h(e) {
587
591
  let t = [], n = e?.parentElement ?? null;
588
592
  for (; n && n !== document.body && n !== document.documentElement;) {
589
593
  let e = window.getComputedStyle(n), r = e.overflow + e.overflowX + e.overflowY;
@@ -591,19 +595,19 @@ function it(t, n) {
591
595
  }
592
596
  return t;
593
597
  }
594
- function _(e) {
595
- f = [window, ...g(e)];
596
- for (let e of f) e.addEventListener("scroll", m, {
598
+ function g(e) {
599
+ d = [window, ...h(e)];
600
+ for (let e of d) e.addEventListener("scroll", p, {
597
601
  passive: !0,
598
602
  capture: !0
599
603
  });
600
- window.addEventListener("resize", m, { passive: !0 });
604
+ window.addEventListener("resize", p, { passive: !0 });
601
605
  }
602
- function v() {
603
- for (let e of f) e.removeEventListener("scroll", m, { capture: !0 });
604
- window.removeEventListener("resize", m), f = [];
606
+ function _() {
607
+ for (let e of d) e.removeEventListener("scroll", p, { capture: !0 });
608
+ window.removeEventListener("resize", p), d = [];
605
609
  }
606
- function y(e) {
610
+ function v(e) {
607
611
  if (!i || !e || e.bottom < 0 || e.top > window.innerHeight) return;
608
612
  i.style.position = "absolute", i.style.zIndex = "9999";
609
613
  let t = i.offsetParent?.getBoundingClientRect(), n = t?.top ?? 0;
@@ -614,7 +618,7 @@ function it(t, n) {
614
618
  i.style.top = `${t - n}px`;
615
619
  }
616
620
  }
617
- function b(e, t) {
621
+ function y(e, t) {
618
622
  let n = t?.closest("[data-tpl-theme]");
619
623
  if (!n) return;
620
624
  let r = n.getAttribute("data-tpl-theme");
@@ -626,48 +630,48 @@ function it(t, n) {
626
630
  }
627
631
  e.style.fontFamily = i.fontFamily, e.style.fontSize = i.fontSize, e.style.lineHeight = i.lineHeight;
628
632
  }
629
- function x(e) {
630
- 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")));
633
+ function b(e) {
634
+ a && (e ? (a.setAttribute("role", "combobox"), a.setAttribute("aria-haspopup", "listbox"), a.setAttribute("aria-expanded", "true"), a.setAttribute("aria-controls", l)) : (a.removeAttribute("aria-expanded"), a.removeAttribute("aria-controls"), a.removeAttribute("aria-activedescendant"), a.removeAttribute("aria-haspopup"), a.removeAttribute("role")));
631
635
  }
632
- function S() {
633
- a && (o.value.length === 0 ? a.removeAttribute("aria-activedescendant") : a.setAttribute("aria-activedescendant", `${u}-opt-${c.value}`));
636
+ function x() {
637
+ a && (o.value.length === 0 ? a.removeAttribute("aria-activedescendant") : a.setAttribute("aria-activedescendant", `${l}-opt-${s.value}`));
634
638
  }
635
- function C(e) {
636
- l?.(e);
639
+ function S(e) {
640
+ c?.(e);
637
641
  }
638
642
  return {
639
- open: ({ items: e, getRect: f, anchorEl: p, onCommand: m }) => {
640
- 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() {
641
- return s($e, {
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, {
642
646
  items: o.value,
643
- selectedIndex: c.value,
644
- emptyText: t,
645
- listId: u,
646
- onSelect: (e) => C(e),
647
+ selectedIndex: s.value,
648
+ emptyText: e,
649
+ listId: l,
650
+ onSelect: (e) => S(e),
647
651
  onHover: (e) => {
648
- c.value = e, S();
652
+ s.value = e, x();
649
653
  }
650
654
  });
651
- } }), r.mount(i), x(!0), S(), d = f, h(), _(p);
655
+ } }), r.mount(i), b(!0), x(), u = f, m(), g(p);
652
656
  },
653
657
  update: ({ items: e, getRect: t, onCommand: n }) => {
654
- o.value = e, c.value >= e.length && (c.value = 0), l = n, S(), d = t, h();
658
+ o.value = e, s.value >= e.length && (s.value = 0), c = n, x(), u = t, m();
655
659
  },
656
660
  handleKeyDown: (e) => {
657
- let t = rt(e, o.value, c, C);
658
- return t && S(), t;
661
+ let t = at(e, o.value, s, S);
662
+ return t && x(), t;
659
663
  },
660
664
  close: () => {
661
- 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);
665
+ i !== null && (f !== null && (cancelAnimationFrame(f), f = null), _(), b(!1), r?.unmount(), i.remove(), r = null, i = null, a = null, c = null, u = null);
662
666
  },
663
667
  isOpen: () => i !== null
664
668
  };
665
669
  }
666
670
  // src/utils/mergeTagTrigger.ts
667
- function at(e, t, n, r, i) {
671
+ function st(e, t, n, r, i) {
668
672
  if (!n) return null;
669
673
  let a = e.slice(0, t), o = a.lastIndexOf(n);
670
- if (o === -1 || i && o < ot(a, i)) return null;
674
+ if (o === -1 || i && o < ct(a, i)) return null;
671
675
  let s = a.slice(o + n.length);
672
676
  return /\s/.test(s) || r && s.includes(r) ? null : {
673
677
  triggerStart: o,
@@ -675,14 +679,14 @@ function at(e, t, n, r, i) {
675
679
  query: s
676
680
  };
677
681
  }
678
- function ot(e, t) {
682
+ function ct(e, t) {
679
683
  let n = new RegExp(t.source, `${t.flags.replace(/[gy]/g, "")}g`), r = 0;
680
684
  for (let t of e.matchAll(n)) r = t.index + t[0].length;
681
685
  return r;
682
686
  }
683
687
  // src/utils/textFieldCaret.ts
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(".");
685
- function ct(e, t, n) {
688
+ var lt = /* @__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(".");
689
+ function ut(e, t, n) {
686
690
  return {
687
691
  left: e,
688
692
  top: t,
@@ -695,7 +699,7 @@ function ct(e, t, n) {
695
699
  toJSON: () => ({})
696
700
  };
697
701
  }
698
- function lt(e, t) {
702
+ function dt(e, t) {
699
703
  let n = e.ownerDocument, r = n.defaultView;
700
704
  if (!r) return null;
701
705
  let i = e.tagName === "INPUT", a = r.getComputedStyle(e), o = n.createElement("div");
@@ -703,7 +707,7 @@ function lt(e, t) {
703
707
  let s = o.style;
704
708
  s.position = "absolute", s.visibility = "hidden", s.top = "0", s.left = "0", s.overflow = "hidden", s.whiteSpace = i ? "pre" : "pre-wrap", s.wordWrap = i ? "normal" : "break-word";
705
709
  let c = s, l = a;
706
- for (let e of st) c[e] = l[e];
710
+ for (let e of lt) c[e] = l[e];
707
711
  i && (s.width = "auto", s.whiteSpace = "pre");
708
712
  let u = e.value, d = u.slice(0, t);
709
713
  i && (d = d.replace(/\s/g, "\xA0")), o.textContent = d;
@@ -712,216 +716,221 @@ function lt(e, t) {
712
716
  let p = f.offsetTop, m = f.offsetLeft;
713
717
  n.body.removeChild(o);
714
718
  let h = e.getBoundingClientRect(), g = parseFloat(a.borderTopWidth) || 0, _ = parseFloat(a.borderLeftWidth) || 0, v = parseFloat(a.lineHeight) || parseFloat(a.fontSize) || 0, y = h.left + m + _ - e.scrollLeft;
715
- if (i) return ct(y, h.top, h.bottom);
719
+ if (i) return ut(y, h.top, h.bottom);
716
720
  let b = h.top + p + g - e.scrollTop;
717
- return ct(y, b, b + v);
721
+ return ut(y, b, b + v);
718
722
  }
719
723
  // src/composables/useMergeTagAutocomplete.ts
720
- var ut = /* @__PURE__ */ new Set([
724
+ var ft = /* @__PURE__ */ new Set([
721
725
  "ArrowLeft",
722
726
  "ArrowRight",
723
727
  "Home",
724
728
  "End"
725
729
  ]);
726
- function dt(e) {
727
- 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;
728
- C() && l(() => {
729
- _ = !0, g.close();
730
+ function pt(e) {
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();
730
738
  });
731
- function v(e) {
739
+ function x(e) {
732
740
  let t = e.value ?? "";
733
- return at(t, e.selectionStart ?? t.length, f, p, c.value);
741
+ return st(t, e.selectionStart ?? t.length, m, h, u.value);
734
742
  }
735
- function y(e, r, a) {
736
- 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;
737
- d?.(), o(m), g.close(), t(() => {
738
- if (_) return;
739
- let e = n.value;
740
- e?.focus(), e?.setSelectionRange(h, h);
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;
749
+ e?.focus(), e?.setSelectionRange(m, m);
741
750
  });
742
751
  }
743
- function b() {
744
- if (!m.value || _) return;
745
- let e = n.value;
752
+ function w() {
753
+ if (!g.value || b) return;
754
+ let e = t.value;
746
755
  if (!e) {
747
- g.close();
756
+ y.close();
748
757
  return;
749
758
  }
750
- let t = v(e);
751
- if (!t) {
752
- g.close();
759
+ let n = x(e);
760
+ if (!n) {
761
+ y.close();
753
762
  return;
754
763
  }
755
- let r = nt(s.value, t.query), i = () => lt(e, t.triggerStart), a = (n) => y(e, t, n);
756
- g.isOpen() ? g.update({
764
+ let r = it(a.value, n.query), i = () => dt(e, n.triggerStart), o = (t) => S(e, n, t);
765
+ y.isOpen() ? y.update({
757
766
  items: r,
758
767
  getRect: i,
759
- onCommand: a
760
- }) : g.open({
768
+ onCommand: o
769
+ }) : y.open({
761
770
  items: r,
762
771
  getRect: i,
763
772
  anchorEl: e,
764
- onCommand: a
773
+ onCommand: o
765
774
  });
766
775
  }
767
- function x(e) {
768
- return g.isOpen() ? e.key === "Escape" ? (g.close(), !0) : ut.has(e.key) ? (g.close(), !1) : g.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;
769
778
  }
770
779
  return {
771
- available: m,
772
- refresh: b,
773
- handleKeydown: x,
774
- close: () => g.close(),
775
- isOpen: () => g.isOpen()
780
+ available: g,
781
+ refresh: w,
782
+ handleKeydown: T,
783
+ close: () => y.close(),
784
+ isOpen: () => y.isOpen()
776
785
  };
777
786
  }
778
787
  // src/composables/useMergeTagField.ts
779
- function ft(n) {
780
- 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;
781
- C() && l(() => {
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(() => {
782
791
  x = !0;
783
792
  });
784
- let w = dt({
785
- elementRef: a,
786
- modelValue: r,
787
- emit: i,
788
- mergeTags: o,
789
- syntax: m,
790
- enabled: h,
793
+ let S = pt({
794
+ elementRef: r,
795
+ modelValue: t,
796
+ emit: n,
797
+ mergeTags: i,
798
+ syntax: p,
799
+ enabled: m,
791
800
  onInsert: () => {
792
801
  y.value = !0;
793
802
  }
794
- }), T = S(() => {
795
- let e = r();
803
+ }), w = C(() => {
804
+ let e = t();
796
805
  if (!e) return [];
797
- let t = [], n = `(${m.value.source}|${m.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;
798
807
  for (; (o = i.exec(e)) !== null;) {
799
- o.index > a && t.push({
808
+ o.index > a && n.push({
800
809
  type: "text",
801
810
  value: e.slice(a, o.index)
802
811
  });
803
- let n = o[0];
804
- u(n) ? t.push({
812
+ let t = o[0];
813
+ c(t) ? n.push({
805
814
  type: "mergeTag",
806
- value: n,
807
- label: d(n)
808
- }) : j(n, m) ? t.push({
815
+ value: t,
816
+ label: u(t)
817
+ }) : M(t, p) ? n.push({
809
818
  type: "logicMergeTag",
810
- value: n,
811
- keyword: k(n, m)
812
- }) : t.push({
819
+ value: t,
820
+ keyword: A(t, p)
821
+ }) : n.push({
813
822
  type: "text",
814
- value: n
815
- }), a = o.index + n.length;
823
+ value: t
824
+ }), a = o.index + t.length;
816
825
  }
817
- return a < e.length && t.push({
826
+ return a < e.length && n.push({
818
827
  type: "text",
819
828
  value: e.slice(a)
820
- }), t;
821
- }), E = S(() => T.value.some((e) => e.type === "mergeTag" || e.type === "logicMergeTag"));
829
+ }), n;
830
+ }), T = C(() => w.value.some((e) => e.type === "mergeTag" || e.type === "logicMergeTag"));
822
831
  function D() {
823
- y.value = !0, t(() => {
824
- a.value?.focus();
825
- let e = r()?.length || 0;
826
- a.value?.setSelectionRange(e, e);
832
+ y.value = !0, v(() => {
833
+ r.value?.focus();
834
+ let e = t()?.length || 0;
835
+ r.value?.setSelectionRange(e, e);
827
836
  });
828
837
  }
829
838
  function O() {
830
839
  b || (y.value = !1);
831
840
  }
832
- function A(e) {
833
- i(e.target.value), w.refresh();
841
+ function k(e) {
842
+ n(e.target.value), S.refresh();
834
843
  }
835
- function ee(e) {
836
- return w.handleKeydown(e) ? (e.preventDefault(), !0) : (e.key === "Escape" && O(), !1);
844
+ function j(e) {
845
+ return S.handleKeydown(e) ? (e.preventDefault(), !0) : (e.key === "Escape" && O(), !1);
837
846
  }
838
- function te() {
839
- w.refresh();
847
+ function N() {
848
+ S.refresh();
840
849
  }
841
- function M() {
842
- w.close(), O();
850
+ function P() {
851
+ S.close(), O();
843
852
  }
844
- function ne() {
845
- i("");
853
+ function F() {
854
+ n("");
846
855
  }
847
- async function re() {
848
- let e = y.value && a.value ? a.value.selectionStart ?? r().length : r().length;
856
+ async function I() {
857
+ let e = y.value && r.value ? r.value.selectionStart ?? t().length : t().length;
849
858
  b = !0;
850
- let n;
859
+ let i;
851
860
  try {
852
- n = await p();
861
+ i = await f();
853
862
  } finally {
854
863
  b = !1;
855
864
  }
856
- if (!x && n) {
857
- let o = r().slice(0, e), s = r().slice(e), c = o + n.value + s;
858
- i(c), y.value = !0, t(() => {
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(() => {
859
868
  if (x) return;
860
- let t = e + n.value.length;
861
- a.value?.focus(), a.value?.setSelectionRange(t, t);
869
+ let t = e + i.value.length;
870
+ r.value?.focus(), r.value?.setSelectionRange(t, t);
862
871
  });
863
872
  }
864
873
  }
865
- async function N(e) {
866
- let t = T.value, n = t[e];
867
- if (n?.type !== "mergeTag") return;
874
+ async function ee(e) {
875
+ let t = w.value, r = t[e];
876
+ if (r?.type !== "mergeTag") return;
868
877
  b = !0;
869
- let r;
878
+ let i;
870
879
  try {
871
- r = await p({
880
+ i = await f({
872
881
  reason: "edit",
873
- current: f(n.value)
882
+ current: d(r.value)
874
883
  });
875
884
  } finally {
876
885
  b = !1;
877
886
  }
878
- !x && 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(""));
879
888
  }
880
- async function P() {
881
- let e = a.value, n = e?.selectionStart ?? r().length, o = e?.selectionEnd ?? n;
889
+ async function te() {
890
+ let e = r.value, i = e?.selectionStart ?? t().length, a = e?.selectionEnd ?? i;
882
891
  b = !0;
883
- let s;
892
+ let o;
884
893
  try {
885
- s = await v();
894
+ o = await _();
886
895
  } finally {
887
896
  b = !1;
888
897
  }
889
- if (x || !s) return;
890
- let c = r(), l, u;
891
- "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(() => {
892
- x || (a.value?.focus(), a.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));
893
902
  });
894
903
  }
895
904
  return {
896
- segments: T,
897
- hasMergeTags: E,
898
- canRequestMergeTag: s,
899
- isRequestingMergeTag: c,
900
- canInsertLogicTag: g,
901
- isRequestingLogicTag: _,
905
+ segments: w,
906
+ hasMergeTags: T,
907
+ canRequestMergeTag: a,
908
+ isRequestingMergeTag: o,
909
+ canInsertLogicTag: h,
910
+ isRequestingLogicTag: g,
902
911
  isEditing: y,
903
912
  startEditing: D,
904
913
  stopEditing: O,
905
- handleInput: A,
906
- handleKeydown: ee,
907
- handleClick: te,
908
- handleBlur: M,
909
- clearValue: ne,
910
- insertMergeTag: re,
911
- replaceMergeTagAt: N,
912
- insertLogicTag: P,
913
- autocompleteAvailable: w.available
914
+ handleInput: k,
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
914
923
  };
915
924
  }
916
925
  // src/components/MergeTagSegments.vue?vue&type=script&setup=true&lang.ts
917
- var pt = ["aria-label"], mt = [
926
+ var ht = ["aria-label"], gt = [
918
927
  "data-tooltip",
919
928
  "aria-label",
920
929
  "onClick"
921
- ], ht = ["data-tooltip"], gt = ["data-tooltip"], _t = {
930
+ ], _t = ["data-tooltip"], vt = ["data-tooltip"], yt = {
922
931
  key: 3,
923
932
  class: "tpl:text-sm tpl:text-[var(--tpl-text)]"
924
- }, vt = ["aria-label", "title"], yt = ["aria-label", "title"], bt = /* @__PURE__ */ n({
933
+ }, bt = ["aria-label", "title"], xt = ["aria-label", "title"], St = /* @__PURE__ */ e({
925
934
  __name: "MergeTagSegments",
926
935
  props: {
927
936
  segments: {},
@@ -934,37 +943,37 @@ var pt = ["aria-label"], mt = [
934
943
  "repick"
935
944
  ],
936
945
  setup(e, { emit: t }) {
937
- let n = t, { t: r, format: a } = N(), { canRepickMergeTag: s, showRawValue: c } = R();
946
+ let r = t, { t: i, format: o } = L(), { canRepickMergeTag: s, showRawValue: c } = R();
938
947
  function l() {
939
- n("edit");
948
+ r("edit");
940
949
  }
941
- return (t, d) => (o(), u("div", {
950
+ return (t, d) => (n(), u("div", {
942
951
  role: "group",
943
- "aria-label": x(r).mergeTag.fieldGroup,
944
- class: v([e.displayClass, { "tpl-pulse-fill": e.pulse }]),
952
+ "aria-label": p(i).mergeTag.fieldGroup,
953
+ class: m([e.displayClass, { "tpl-pulse-fill": e.pulse }]),
945
954
  onClick: l
946
955
  }, [
947
- (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", {
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", {
948
957
  key: 0,
949
958
  type: "button",
950
- 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" : ""]),
951
- "data-tooltip": x(c) ? e.value : void 0,
952
- "aria-label": x(a)(x(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 }),
953
962
  "data-testid": "merge-tag-field-chip",
954
963
  style: {
955
964
  "background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
956
965
  color: "var(--tpl-primary)"
957
966
  },
958
- onClick: _((e) => n("repick", t), ["stop"])
959
- }, p(e.label), 11, mt)) : e.type === "mergeTag" ? (o(), u("span", {
967
+ onClick: y((e) => r("repick", t), ["stop"])
968
+ }, x(e.label), 11, gt)) : e.type === "mergeTag" ? (n(), u("span", {
960
969
  key: 1,
961
- 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" : ""]),
962
- "data-tooltip": x(c) ? 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,
963
972
  style: {
964
973
  "background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
965
974
  color: "var(--tpl-primary)"
966
975
  }
967
- }, p(e.label), 11, ht)) : e.type === "logicMergeTag" ? (o(), u("span", {
976
+ }, x(e.label), 11, _t)) : e.type === "logicMergeTag" ? (n(), u("span", {
968
977
  key: 2,
969
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",
970
979
  "data-tooltip": e.value,
@@ -973,79 +982,79 @@ var pt = ["aria-label"], mt = [
973
982
  border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
974
983
  color: "var(--tpl-primary)"
975
984
  }
976
- }, p(e.keyword), 9, gt)) : (o(), u("span", _t, p(e.value), 1))], 64))), 128)),
977
- y("button", {
985
+ }, x(e.keyword), 9, vt)) : (n(), u("span", yt, x(e.value), 1))], 64))), 128)),
986
+ b("button", {
978
987
  type: "button",
979
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",
980
- "aria-label": x(r).mergeTag.editAsText,
981
- title: x(r).mergeTag.editAsText,
989
+ "aria-label": p(i).mergeTag.editAsText,
990
+ title: p(i).mergeTag.editAsText,
982
991
  "data-testid": "merge-tag-field-edit",
983
- onClick: _(l, ["stop"])
984
- }, [D(x(F), {
992
+ onClick: y(l, ["stop"])
993
+ }, [O(p(N), {
985
994
  size: 12,
986
995
  "stroke-width": 2
987
- })], 8, vt),
988
- y("button", {
996
+ })], 8, bt),
997
+ b("button", {
989
998
  type: "button",
990
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",
991
- "aria-label": x(r).mergeTag.remove,
992
- title: x(r).mergeTag.remove,
1000
+ "aria-label": p(i).mergeTag.remove,
1001
+ title: p(i).mergeTag.remove,
993
1002
  "data-testid": "merge-tag-field-clear",
994
- onClick: d[0] ||= _((e) => n("clear"), ["stop"])
995
- }, [D(x(L), {
1003
+ onClick: d[0] ||= y((e) => r("clear"), ["stop"])
1004
+ }, [O(p(I), {
996
1005
  size: 12,
997
1006
  "stroke-width": 2.5
998
- })], 8, yt)
999
- ], 10, pt));
1007
+ })], 8, xt)
1008
+ ], 10, ht));
1000
1009
  }
1001
- }), xt = [
1010
+ }), Ct = [
1002
1011
  "aria-label",
1003
1012
  "title",
1004
1013
  "disabled"
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__ */ n({
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({
1006
1015
  __name: "MergeTagInsertButton",
1007
1016
  props: { disabled: { type: Boolean } },
1008
1017
  emits: ["insert"],
1009
1018
  setup(e) {
1010
- let { t } = N();
1011
- return (n, r) => (o(), u("button", {
1019
+ let { t } = L();
1020
+ return (r, i) => (n(), u("button", {
1012
1021
  type: "button",
1013
- class: v([St, "tpl:mt-1.5"]),
1014
- "aria-label": x(t).mergeTag.insert,
1015
- title: x(t).mergeTag.insert,
1022
+ class: m([wt, "tpl:mt-1.5"]),
1023
+ "aria-label": p(t).mergeTag.insert,
1024
+ title: p(t).mergeTag.insert,
1016
1025
  disabled: e.disabled,
1017
- onMousedown: r[0] ||= _(() => {}, ["prevent"]),
1018
- onClick: r[1] ||= (e) => n.$emit("insert")
1019
- }, [D(x(I), {
1026
+ onMousedown: i[0] ||= y(() => {}, ["prevent"]),
1027
+ onClick: i[1] ||= (e) => r.$emit("insert")
1028
+ }, [O(p(F), {
1020
1029
  size: 12,
1021
1030
  "stroke-width": 2
1022
- }), d(" " + p(x(t).mergeTag.insertShort), 1)], 42, xt));
1031
+ }), d(" " + x(p(t).mergeTag.insertShort), 1)], 42, Ct));
1023
1032
  }
1024
- }), wt = [
1033
+ }), Et = [
1025
1034
  "aria-label",
1026
1035
  "title",
1027
1036
  "disabled"
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__ */ n({
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({
1029
1038
  __name: "LogicTagInsertButton",
1030
1039
  props: { disabled: { type: Boolean } },
1031
1040
  emits: ["insert"],
1032
1041
  setup(e) {
1033
- let { t } = N();
1034
- return (n, r) => (o(), u("button", {
1042
+ let { t } = L();
1043
+ return (r, i) => (n(), u("button", {
1035
1044
  type: "button",
1036
- class: v([Tt, "tpl:mt-1.5"]),
1037
- "aria-label": x(t).logicTag.insert,
1038
- title: x(t).logicTag.insert,
1045
+ class: m([Dt, "tpl:mt-1.5"]),
1046
+ "aria-label": p(t).logicTag.insert,
1047
+ title: p(t).logicTag.insert,
1039
1048
  disabled: e.disabled,
1040
1049
  "data-testid": "field-insert-logic-button",
1041
- onMousedown: r[0] ||= _(() => {}, ["prevent"]),
1042
- onClick: r[1] ||= (e) => n.$emit("insert")
1043
- }, [D(x(le), {
1050
+ onMousedown: i[0] ||= y(() => {}, ["prevent"]),
1051
+ onClick: i[1] ||= (e) => r.$emit("insert")
1052
+ }, [O(p(P), {
1044
1053
  size: 12,
1045
1054
  "stroke-width": 2
1046
- }), d(" " + p(x(t).logicTag.insertShort), 1)], 42, wt));
1055
+ }), d(" " + x(p(t).logicTag.insertShort), 1)], 42, Et));
1047
1056
  }
1048
1057
  });
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 };
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 };
1050
1059
 
1051
- //# sourceMappingURL=LogicTagInsertButton-B_ldj3TO.js.map
1060
+ //# sourceMappingURL=LogicTagInsertButton-5Z3fFzjc.js.map