@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,17 +1,17 @@
1
- import { At as e, C as t, D as n, G as r, Mt as i, N as a, Q as o, V as s, Y as c, _ as l, a as u, c as d, d as f, f as p, g as m, j as h, jt as g, l as _, ot as v, q as y, r as b, u as x, x as S, y as C } from "./vue.runtime.esm-bundler-CrlI8j5R.js";
2
- import { c as w, n as T, s as ee, t as te } from "./runtime-dom.esm-bundler-CLGymEyk.js";
3
- import { Z as E, et as D, ot as O, tt as k } from "./dist-CzrLYq2s.js";
4
- import { t as ne } from "./dist-BA-jTQgw.js";
5
- import { J as re, Y as A, Z as ie, d as ae } from "./keys-DBjrQkYH.js";
6
- import { t as j } from "./useI18n-CeTm777E.js";
7
- import { a as M, i as oe, n as se, o as ce, r as le, t as ue } from "./usePopoverPosition-C42kD7zt.js";
8
- import { t as N } from "./createLucideIcon-BV7Gwz_Z.js";
9
- import { t as P } from "./pencil-CYdAHTds.js";
10
- import { t as de } from "./x-zcrnmcmU.js";
11
- import { t as F } from "./useMergeTag-B46vACAG.js";
12
- import { t as I } from "./useLogicTag-DFDYJeMN.js";
13
- import { u as fe } from "./styleConstants-B8xVRiwX.js";
14
- var pe = N({
1
+ import { B as e, Ft as t, M as n, Mt as r, O as i, P as a, Pt as o, S as s, U as c, Y as l, Z as u, _ as d, a as f, c as p, ct as m, d as h, et as g, f as _, g as v, l as y, q as b, r as x, u as S, w as C, y as w } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
2
+ import { c as T, n as E, s as ee, t as D } from "./runtime-dom.esm-bundler-DlHp8xgy.js";
3
+ import { _t as O, dt as k, st as A, ut as j } from "./dist-Cdkm20M6.js";
4
+ import { t as M } from "./createLucideIcon-Dw5e5gVE.js";
5
+ import { t as N } from "./pencil-BTUUECH4.js";
6
+ import { t as P } from "./x-B7NZYzhx.js";
7
+ import { et as te, it as ne, p as re, tt as F } from "./keys-BCqskl51.js";
8
+ import { t as I } from "./useI18n-CgtvtF4C.js";
9
+ import { d as ie } from "./styleConstants-CgiNKdnc.js";
10
+ import { t as ae } from "./dist-0alKVRc_.js";
11
+ import { t as L } from "./useMergeTag-C9Okr87y.js";
12
+ import { a as oe, c as se, n as ce, o as le, r as ue, s as de, t as fe } from "./usePopoverPosition-VDQjyX_A.js";
13
+ import { t as R } from "./useLogicTag-BXXXQQmi.js";
14
+ var z = M({
15
15
  name: "braces",
16
16
  size: 24,
17
17
  node: [["path", {
@@ -22,7 +22,7 @@ var pe = N({
22
22
  key: "e1hn23"
23
23
  }]],
24
24
  aliases: ["curly-braces"]
25
- }), L = N({
25
+ }), B = M({
26
26
  name: "scan-line",
27
27
  size: 24,
28
28
  node: [
@@ -47,32 +47,32 @@ var pe = N({
47
47
  key: "b7w52i"
48
48
  }]
49
49
  ]
50
- }), R = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, z = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n, B = (e) => ge(V(e)), V = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
50
+ }), V = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, H = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n, U = (e) => ge(W(e)), W = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
51
51
  r: parseInt(e[0] + e[0], 16),
52
52
  g: parseInt(e[1] + e[1], 16),
53
53
  b: parseInt(e[2] + e[2], 16),
54
- a: e.length === 4 ? z(parseInt(e[3] + e[3], 16) / 255, 2) : 1
54
+ a: e.length === 4 ? H(parseInt(e[3] + e[3], 16) / 255, 2) : 1
55
55
  } : {
56
56
  r: parseInt(e.substring(0, 2), 16),
57
57
  g: parseInt(e.substring(2, 4), 16),
58
58
  b: parseInt(e.substring(4, 6), 16),
59
- a: e.length === 8 ? z(parseInt(e.substring(6, 8), 16) / 255, 2) : 1
60
- }), H = (e) => he(me(e)), U = ({ h: e, s: t, v: n, a: r }) => {
59
+ a: e.length === 8 ? H(parseInt(e.substring(6, 8), 16) / 255, 2) : 1
60
+ }), G = (e) => he(me(e)), pe = ({ h: e, s: t, v: n, a: r }) => {
61
61
  let i = (200 - t) * n / 100;
62
62
  return {
63
- h: z(e),
64
- s: z(i > 0 && i < 200 ? t * n / 100 / (i <= 100 ? i : 200 - i) * 100 : 0),
65
- l: z(i / 2),
66
- a: z(r, 2)
63
+ h: H(e),
64
+ s: H(i > 0 && i < 200 ? t * n / 100 / (i <= 100 ? i : 200 - i) * 100 : 0),
65
+ l: H(i / 2),
66
+ a: H(r, 2)
67
67
  };
68
- }, W = (e) => {
69
- let { h: t, s: n, l: r } = U(e);
68
+ }, K = (e) => {
69
+ let { h: t, s: n, l: r } = pe(e);
70
70
  return `hsl(${t}, ${n}%, ${r}%)`;
71
71
  }, me = ({ h: e, s: t, v: n, a: r }) => {
72
72
  e = e / 360 * 6, t /= 100, n /= 100;
73
73
  let i = Math.floor(e), a = n * (1 - t), o = n * (1 - (e - i) * t), s = n * (1 - (1 - e + i) * t), c = i % 6;
74
74
  return {
75
- r: z([
75
+ r: H([
76
76
  n,
77
77
  o,
78
78
  a,
@@ -80,7 +80,7 @@ var pe = N({
80
80
  s,
81
81
  n
82
82
  ][c] * 255),
83
- g: z([
83
+ g: H([
84
84
  s,
85
85
  n,
86
86
  n,
@@ -88,7 +88,7 @@ var pe = N({
88
88
  a,
89
89
  a
90
90
  ][c] * 255),
91
- b: z([
91
+ b: H([
92
92
  a,
93
93
  a,
94
94
  s,
@@ -96,49 +96,49 @@ var pe = N({
96
96
  n,
97
97
  o
98
98
  ][c] * 255),
99
- a: z(r, 2)
99
+ a: H(r, 2)
100
100
  };
101
- }, G = (e) => {
101
+ }, q = (e) => {
102
102
  let t = e.toString(16);
103
103
  return t.length < 2 ? "0" + t : t;
104
104
  }, he = ({ r: e, g: t, b: n, a: r }) => {
105
- let i = r < 1 ? G(z(r * 255)) : "";
106
- return "#" + G(e) + G(t) + G(n) + i;
105
+ let i = r < 1 ? q(H(r * 255)) : "";
106
+ return "#" + q(e) + q(t) + q(n) + i;
107
107
  }, ge = ({ r: e, g: t, b: n, a: r }) => {
108
108
  let i = Math.max(e, t, n), a = i - Math.min(e, t, n), o = a ? i === e ? (t - n) / a : i === t ? 2 + (n - e) / a : 4 + (e - t) / a : 0;
109
109
  return {
110
- h: z(60 * (o < 0 ? o + 6 : o)),
111
- s: z(i ? a / i * 100 : 0),
112
- v: z(i / 255 * 100),
110
+ h: H(60 * (o < 0 ? o + 6 : o)),
111
+ s: H(i ? a / i * 100 : 0),
112
+ v: H(i / 255 * 100),
113
113
  a: r
114
114
  };
115
115
  }, _e = (e, t) => {
116
116
  if (e === t) return !0;
117
117
  for (let n in e) if (e[n] !== t[n]) return !1;
118
118
  return !0;
119
- }, ve = (e, t) => e.toLowerCase() === t.toLowerCase() || _e(V(e), V(t)), K = {}, q = (e) => {
120
- let t = K[e];
121
- return t || (t = document.createElement("template"), t.innerHTML = e, K[e] = t), t;
119
+ }, ve = (e, t) => e.toLowerCase() === t.toLowerCase() || _e(W(e), W(t)), ye = {}, be = (e) => {
120
+ let t = ye[e];
121
+ return t || (t = document.createElement("template"), t.innerHTML = e, ye[e] = t), t;
122
122
  }, J = (e, t, n) => {
123
123
  e.dispatchEvent(new CustomEvent(t, {
124
124
  bubbles: !0,
125
125
  detail: n
126
126
  }));
127
- }, Y = !1, X = (e) => "touches" in e, ye = (e) => Y && !X(e) ? !1 : (Y ||= X(e), !0), be = (e, t) => {
127
+ }, Y = !1, X = (e) => "touches" in e, xe = (e) => Y && !X(e) ? !1 : (Y ||= X(e), !0), Se = (e, t) => {
128
128
  let n = X(t) ? t.touches[0] : t, r = e.el.getBoundingClientRect();
129
129
  J(e.el, "move", e.getMove({
130
- x: R((n.pageX - (r.left + window.pageXOffset)) / r.width),
131
- y: R((n.pageY - (r.top + window.pageYOffset)) / r.height)
130
+ x: V((n.pageX - (r.left + window.pageXOffset)) / r.width),
131
+ y: V((n.pageY - (r.top + window.pageYOffset)) / r.height)
132
132
  }));
133
- }, Z = (e, t) => {
133
+ }, Ce = (e, t) => {
134
134
  let n = t.keyCode;
135
135
  n > 40 || e.xy && n < 37 || n < 33 || (t.preventDefault(), J(e.el, "move", e.getMove({
136
136
  x: n === 39 ? .01 : n === 37 ? -.01 : n === 34 ? .05 : n === 33 ? -.05 : n === 35 ? 1 : n === 36 ? -1 : 0,
137
137
  y: n === 40 ? .01 : n === 38 ? -.01 : 0
138
138
  }, !0)));
139
- }, xe = class {
139
+ }, we = class {
140
140
  constructor(e, t, n, r) {
141
- let i = q(`<div role="slider" tabindex="0" part="${t}" ${n}><div part="${t}-pointer"></div></div>`);
141
+ let i = be(`<div role="slider" tabindex="0" part="${t}" ${n}><div part="${t}-pointer"></div></div>`);
142
142
  e.appendChild(i.content.cloneNode(!0));
143
143
  let a = e.querySelector(`[part=${t}]`);
144
144
  a.addEventListener("mousedown", this), a.addEventListener("touchstart", this), a.addEventListener("keydown", this), this.el = a, this.xy = r, this.nodes = [a.firstChild, a];
@@ -151,18 +151,18 @@ var pe = N({
151
151
  switch (e.type) {
152
152
  case "mousedown":
153
153
  case "touchstart":
154
- if (e.preventDefault(), !ye(e) || !Y && e.button != 0) return;
155
- this.el.focus(), be(this, e), this.dragging = !0;
154
+ if (e.preventDefault(), !xe(e) || !Y && e.button != 0) return;
155
+ this.el.focus(), Se(this, e), this.dragging = !0;
156
156
  break;
157
157
  case "mousemove":
158
158
  case "touchmove":
159
- e.preventDefault(), be(this, e);
159
+ e.preventDefault(), Se(this, e);
160
160
  break;
161
161
  case "mouseup":
162
162
  case "touchend":
163
163
  this.dragging = !1;
164
164
  break;
165
- case "keydown": Z(this, e);
165
+ case "keydown": Ce(this, e);
166
166
  }
167
167
  }
168
168
  style(e) {
@@ -170,25 +170,25 @@ var pe = N({
170
170
  for (let n in e) this.nodes[t].style.setProperty(n, e[n]);
171
171
  });
172
172
  }
173
- }, Se = class extends xe {
173
+ }, Z = class extends we {
174
174
  constructor(e) {
175
175
  super(e, "hue", "aria-label=\"Hue\" aria-valuemin=\"0\" aria-valuemax=\"360\"", !1);
176
176
  }
177
177
  update({ h: e }) {
178
178
  this.h = e, this.style([{
179
179
  left: `${e / 360 * 100}%`,
180
- color: W({
180
+ color: K({
181
181
  h: e,
182
182
  s: 100,
183
183
  v: 100,
184
184
  a: 1
185
185
  })
186
- }]), this.el.setAttribute("aria-valuenow", `${z(e)}`);
186
+ }]), this.el.setAttribute("aria-valuenow", `${H(e)}`);
187
187
  }
188
188
  getMove(e, t) {
189
- return { h: t ? R(this.h + e.x * 360, 0, 360) : 360 * e.x };
189
+ return { h: t ? V(this.h + e.x * 360, 0, 360) : 360 * e.x };
190
190
  }
191
- }, Ce = class extends xe {
191
+ }, Te = class extends we {
192
192
  constructor(e) {
193
193
  super(e, "saturation", "aria-label=\"Color\"", !0);
194
194
  }
@@ -196,47 +196,47 @@ var pe = N({
196
196
  this.hsva = e, this.style([{
197
197
  top: `${100 - e.v}%`,
198
198
  left: `${e.s}%`,
199
- color: W(e)
200
- }, { "background-color": W({
199
+ color: K(e)
200
+ }, { "background-color": K({
201
201
  h: e.h,
202
202
  s: 100,
203
203
  v: 100,
204
204
  a: 1
205
- }) }]), this.el.setAttribute("aria-valuetext", `Saturation ${z(e.s)}%, Brightness ${z(e.v)}%`);
205
+ }) }]), this.el.setAttribute("aria-valuetext", `Saturation ${H(e.s)}%, Brightness ${H(e.v)}%`);
206
206
  }
207
207
  getMove(e, t) {
208
208
  return {
209
- s: t ? R(this.hsva.s + e.x * 100, 0, 100) : e.x * 100,
210
- v: t ? R(this.hsva.v - e.y * 100, 0, 100) : Math.round(100 - e.y * 100)
209
+ s: t ? V(this.hsva.s + e.x * 100, 0, 100) : e.x * 100,
210
+ v: t ? V(this.hsva.v - e.y * 100, 0, 100) : Math.round(100 - e.y * 100)
211
211
  };
212
212
  }
213
- }, we = ":host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:\"\";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}", Te = "[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}", Ee = "[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}", Q = Symbol("same"), De = Symbol("color"), Oe = Symbol("hsva"), $ = Symbol("update"), ke = Symbol("parts"), Ae = Symbol("css"), je = Symbol("sliders"), Me = class extends HTMLElement {
213
+ }, Ee = ":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)}", De = "[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}", Oe = "[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}", Q = Symbol("same"), $ = Symbol("color"), ke = Symbol("hsva"), Ae = Symbol("update"), je = Symbol("parts"), Me = Symbol("css"), Ne = Symbol("sliders"), Pe = class extends HTMLElement {
214
214
  static get observedAttributes() {
215
215
  return ["color"];
216
216
  }
217
- get [Ae]() {
217
+ get [Me]() {
218
218
  return [
219
- we,
220
- Te,
221
- Ee
219
+ Ee,
220
+ De,
221
+ Oe
222
222
  ];
223
223
  }
224
- get [je]() {
225
- return [Ce, Se];
224
+ get [Ne]() {
225
+ return [Te, Z];
226
226
  }
227
227
  get color() {
228
- return this[De];
228
+ return this[$];
229
229
  }
230
230
  set color(e) {
231
231
  if (!this[Q](e)) {
232
232
  let t = this.colorModel.toHsva(e);
233
- this[$](t), this[De] = e;
233
+ this[Ae](t), this[$] = e;
234
234
  }
235
235
  }
236
236
  constructor() {
237
237
  super();
238
- let e = q(`<style>${this[Ae].join("")}</style>`), t = this.attachShadow({ mode: "open" });
239
- t.appendChild(e.content.cloneNode(!0)), t.addEventListener("move", this), this[ke] = this[je].map((e) => new e(t));
238
+ let e = be(`<style>${this[Me].join("")}</style>`), t = this.attachShadow({ mode: "open" });
239
+ t.appendChild(e.content.cloneNode(!0)), t.addEventListener("move", this), this[je] = this[Ne].map((e) => new e(t));
240
240
  }
241
241
  connectedCallback() {
242
242
  if (this.hasOwnProperty("color")) {
@@ -249,24 +249,24 @@ var pe = N({
249
249
  this[Q](r) || (this.color = r);
250
250
  }
251
251
  handleEvent(e) {
252
- let t = this[Oe], n = {
252
+ let t = this[ke], n = {
253
253
  ...t,
254
254
  ...e.detail
255
255
  };
256
- this[$](n);
256
+ this[Ae](n);
257
257
  let r;
258
- !_e(n, t) && !this[Q](r = this.colorModel.fromHsva(n)) && (this[De] = r, J(this, "color-changed", { value: r }));
258
+ !_e(n, t) && !this[Q](r = this.colorModel.fromHsva(n)) && (this[$] = r, J(this, "color-changed", { value: r }));
259
259
  }
260
260
  [Q](e) {
261
261
  return this.color && this.colorModel.equal(e, this.color);
262
262
  }
263
- [$](e) {
264
- this[Oe] = e, this[ke].forEach((t) => t.update(e));
263
+ [Ae](e) {
264
+ this[ke] = e, this[je].forEach((t) => t.update(e));
265
265
  }
266
- }, Ne = {
266
+ }, Fe = {
267
267
  defaultColor: "#000",
268
- toHsva: B,
269
- fromHsva: ({ h: e, s: t, v: n }) => H({
268
+ toHsva: U,
269
+ fromHsva: ({ h: e, s: t, v: n }) => G({
270
270
  h: e,
271
271
  s: t,
272
272
  v: n,
@@ -274,50 +274,50 @@ var pe = N({
274
274
  }),
275
275
  equal: ve,
276
276
  fromAttr: (e) => e
277
- }, Pe = class extends Me {
277
+ }, Ie = class extends Pe {
278
278
  get colorModel() {
279
- return Ne;
279
+ return Fe;
280
280
  }
281
- }, Fe = class extends Pe {};
282
- customElements.define("hex-color-picker", Fe);
281
+ }, Le = class extends Ie {};
282
+ customElements.define("hex-color-picker", Le);
283
283
  // src/components/ColorPicker.vue?vue&type=script&setup=true&lang.ts
284
- var Ie = [
284
+ var Re = [
285
285
  "disabled",
286
286
  "aria-label",
287
287
  "title",
288
288
  "aria-expanded"
289
- ], Le = {
289
+ ], ze = {
290
290
  key: 0,
291
291
  class: "tpl:relative tpl:flex-1"
292
- }, Re = [
292
+ }, Be = [
293
293
  "value",
294
294
  "placeholder",
295
295
  "disabled",
296
296
  "aria-label"
297
- ], ze = ["aria-label", "title"], Be = ["data-tpl-theme"], Ve = [
297
+ ], Ve = ["aria-label", "title"], He = ["data-tpl-theme"], Ue = [
298
298
  "aria-pressed",
299
299
  "aria-label",
300
300
  "title"
301
- ], He = ["aria-label"], Ue = [
301
+ ], We = ["aria-label"], Ge = [
302
302
  "aria-label",
303
303
  "title",
304
304
  "aria-checked",
305
305
  "tabindex"
306
- ], We = [
306
+ ], Ke = [
307
307
  "aria-label",
308
308
  "title",
309
309
  "aria-checked",
310
310
  "tabindex",
311
311
  "onClick"
312
- ], Ge = ["color", "aria-label"], Ke = {
312
+ ], qe = ["color", "aria-label"], Je = {
313
313
  key: 3,
314
314
  class: "tpl:relative tpl:mt-2"
315
- }, qe = [
315
+ }, Ye = [
316
316
  "value",
317
317
  "placeholder",
318
318
  "disabled",
319
319
  "aria-label"
320
- ], Je = ["aria-label", "title"], Ye = /* @__PURE__ */ C({
320
+ ], Xe = ["aria-label", "title"], Ze = /* @__PURE__ */ w({
321
321
  __name: "ColorPicker",
322
322
  props: {
323
323
  modelValue: {},
@@ -344,34 +344,38 @@ var Ie = [
344
344
  }
345
345
  },
346
346
  emits: ["update:modelValue"],
347
- setup(n, { emit: r }) {
348
- let c = n, y = r, { t: S } = j(), C = o(!1), T = o(), E = o(), D = o(!1);
349
- ne(T, () => {
350
- C.value = !1;
351
- }, { ignore: [E] });
352
- let O = d(() => !c.modelValue), k = d(() => c.modelValue.trim().toLowerCase() === "transparent"), A = d(() => oe(c.modelValue)), N = d(() => (c.modelValue ? M(c.modelValue) : null) || (M(c.seedColor) ?? "#ffffff")), P = d(() => !c.disabled && !O.value), F = t(ae, ce), I = d(() => [...new Set(c.presets ?? F.presets)]), pe = d(() => c.allowCustom ?? F.allowCustom), L = d(() => I.value.length > 0), R = d(() => pe.value || !L.value), z = d(() => le(c.modelValue));
353
- function B(e) {
354
- return z.value !== "" && le(e) === z.value;
347
+ setup(i, { emit: s }) {
348
+ let l = i, u = se(), b = p(() => l.disabled || !u.value), w = s, { t: E } = I(), O = g(!1);
349
+ e(b, (e) => {
350
+ e && (O.value = !1);
351
+ }, { flush: "sync" });
352
+ let k = g(), A = g(), j = g(!1);
353
+ ae(k, () => {
354
+ O.value = !1;
355
+ }, { ignore: [A] });
356
+ let M = p(() => !l.modelValue), N = p(() => l.modelValue.trim().toLowerCase() === "transparent"), F = p(() => le(l.modelValue)), L = p(() => (l.modelValue ? de(l.modelValue) : null) || (de(l.seedColor) ?? "#ffffff")), R = p(() => !b.value && !M.value), z = C(re, ue), B = p(() => [...new Set(l.presets ?? z.presets)]), V = p(() => l.allowCustom ?? z.allowCustom), H = p(() => B.value.length > 0), U = p(() => V.value || !H.value), W = p(() => oe(l.modelValue));
357
+ function G(e) {
358
+ return W.value !== "" && oe(e) === W.value;
355
359
  }
356
- function V(e) {
357
- y("update:modelValue", e);
360
+ function pe(e) {
361
+ b.value || w("update:modelValue", e);
358
362
  }
359
- let H = d(() => L.value && !R.value);
360
- function U(e) {
361
- return H.value ? e + 1 : e;
363
+ let K = p(() => H.value && !U.value);
364
+ function me(e) {
365
+ return K.value ? e + 1 : e;
362
366
  }
363
- let W = d(() => {
364
- if (H.value && O.value) return 0;
365
- let e = I.value.findIndex((e) => B(e));
366
- return e === -1 ? 0 : U(e);
367
+ let q = p(() => {
368
+ if (K.value && M.value) return 0;
369
+ let e = B.value.findIndex((e) => G(e));
370
+ return e === -1 ? 0 : me(e);
367
371
  });
368
- function me() {
369
- return W.value === 0 ? 0 : -1;
372
+ function he() {
373
+ return q.value === 0 ? 0 : -1;
370
374
  }
371
- function G(e) {
372
- return U(e) === W.value ? 0 : -1;
375
+ function ge(e) {
376
+ return me(e) === q.value ? 0 : -1;
373
377
  }
374
- function he(e) {
378
+ function _e(e) {
375
379
  if (![
376
380
  "ArrowRight",
377
381
  "ArrowDown",
@@ -381,90 +385,90 @@ var Ie = [
381
385
  let t = e.currentTarget, n = Array.from(t.querySelectorAll("[role=\"radio\"]")), r = e.target.closest("[role=\"radio\"]"), i = r ? n.indexOf(r) : -1;
382
386
  i !== -1 && (n[(i + (e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : -1) + n.length) % n.length]?.focus(), e.preventDefault());
383
387
  }
384
- function ge(e) {
385
- D.value = !0, y("update:modelValue", e.detail.value);
388
+ function ve(e) {
389
+ b.value || (j.value = !0, w("update:modelValue", e.detail.value));
386
390
  }
387
- function _e() {
388
- D.value = !1;
391
+ function ye() {
392
+ b.value || (j.value = !1);
389
393
  }
390
- function ve() {
391
- !D.value && O.value && y("update:modelValue", N.value);
394
+ function be() {
395
+ b.value || !j.value && M.value && w("update:modelValue", L.value);
392
396
  }
393
- function K(e) {
394
- y("update:modelValue", e.target.value);
397
+ function J(e) {
398
+ b.value || w("update:modelValue", e.target.value);
395
399
  }
396
- function q() {
397
- y("update:modelValue", "");
400
+ function Y() {
401
+ b.value || w("update:modelValue", "");
398
402
  }
399
- function J() {
400
- y("update:modelValue", "transparent");
403
+ function X() {
404
+ b.value || w("update:modelValue", "transparent");
401
405
  }
402
- let Y = se(), { toLocal: X } = ue(), ye = t(re, null), be = t(ie, null), Z = o({
406
+ let xe = ce(), { toLocal: Se } = fe(), Ce = C(te, null), we = C(ne, null), Z = g({
403
407
  top: 0,
404
408
  left: 0
405
409
  });
406
- function xe() {
407
- if (!c.disabled) {
408
- if (!C.value) {
409
- let e = E.value?.getBoundingClientRect();
410
+ function Te() {
411
+ if (!b.value) {
412
+ if (!O.value) {
413
+ let e = A.value?.getBoundingClientRect();
410
414
  if (e) {
411
415
  let t = e.bottom + 8 + 240 <= window.innerHeight ? e.bottom + 8 : Math.max(8, e.top - 240 - 8);
412
- Z.value = X({
416
+ Z.value = Se({
413
417
  top: t,
414
418
  left: e.left
415
419
  });
416
420
  }
417
421
  }
418
- C.value = !C.value;
422
+ O.value = !O.value;
419
423
  }
420
424
  }
421
- return (t, r) => (h(), p("div", { class: e(["tpl:flex tpl:items-center tpl:gap-2 tpl:relative", n.disabled && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
422
- _("button", {
425
+ return (e, s) => (n(), _("div", { class: r(["tpl:flex tpl:items-center tpl:gap-2 tpl:relative", b.value && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
426
+ y("button", {
423
427
  ref_key: "swatchRef",
424
- ref: E,
428
+ ref: A,
425
429
  type: "button",
426
- disabled: n.disabled,
427
- "aria-label": n.ariaLabel || v(S).colorPicker.pickColor,
428
- title: n.ariaLabel || void 0,
429
- "aria-expanded": C.value,
430
- class: e([
430
+ disabled: b.value,
431
+ "aria-label": i.ariaLabel || m(E).colorPicker.pickColor,
432
+ title: i.ariaLabel || void 0,
433
+ "aria-expanded": O.value,
434
+ class: r([
431
435
  "tpl:shrink-0 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-0.5 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
432
- n.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer",
433
- C.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !n.disabled && "tpl:hover:border-[var(--tpl-text-dim)]",
434
- n.size === "sm" ? "tpl:size-8" : "tpl:size-10"
436
+ b.value ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer",
437
+ O.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !b.value && "tpl:hover:border-[var(--tpl-text-dim)]",
438
+ i.size === "sm" ? "tpl:size-8" : "tpl:size-10"
435
439
  ]),
436
- onClick: xe
437
- }, [_("span", {
438
- class: e(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", {
439
- "tpl-color-swatch-empty": O.value,
440
- "tpl-color-swatch-transparent": k.value
440
+ onClick: Te
441
+ }, [y("span", {
442
+ class: r(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", {
443
+ "tpl-color-swatch-empty": M.value,
444
+ "tpl-color-swatch-transparent": N.value
441
445
  }]),
442
- style: g(O.value || k.value ? void 0 : { backgroundColor: A.value })
443
- }, null, 6)], 10, Ie),
444
- !n.swatchOnly && R.value ? (h(), p("div", Le, [_("input", {
446
+ style: o(M.value || N.value ? void 0 : { backgroundColor: F.value })
447
+ }, null, 6)], 10, Re),
448
+ !i.swatchOnly && U.value ? (n(), _("div", ze, [y("input", {
445
449
  type: "text",
446
- class: e([v(fe), "tpl:w-full"]),
447
- style: g(P.value ? { paddingRight: "2.25rem" } : void 0),
448
- value: A.value,
449
- placeholder: n.placeholder || v(S).colorPicker.notSet,
450
- disabled: n.disabled,
451
- "aria-label": v(S).colorPicker.hexValue,
452
- onInput: K
453
- }, null, 46, Re), P.value ? (h(), p("button", {
450
+ class: r([m(ie), "tpl:w-full"]),
451
+ style: o(R.value ? { paddingRight: "2.25rem" } : void 0),
452
+ value: F.value,
453
+ placeholder: i.placeholder || m(E).colorPicker.notSet,
454
+ disabled: b.value,
455
+ "aria-label": m(E).colorPicker.hexValue,
456
+ onInput: J
457
+ }, null, 46, Be), R.value ? (n(), _("button", {
454
458
  key: 0,
455
459
  type: "button",
456
- "aria-label": v(S).colorPicker.clear,
457
- title: v(S).colorPicker.clear,
460
+ "aria-label": m(E).colorPicker.clear,
461
+ title: m(E).colorPicker.clear,
458
462
  class: "tpl:absolute tpl:right-2 tpl:top-1/2 tpl:flex tpl:size-6 tpl:-translate-y-1/2 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
459
- onClick: q
460
- }, [l(v(de), {
463
+ onClick: Y
464
+ }, [d(m(P), {
461
465
  size: 14,
462
466
  "stroke-width": 1.5
463
- })], 8, ze)) : f("", !0)])) : f("", !0),
464
- (h(), x(u, {
465
- to: v(Y),
466
- disabled: !v(Y)
467
- }, [l(te, {
467
+ })], 8, Ve)) : h("", !0)])) : h("", !0),
468
+ (n(), S(f, {
469
+ to: m(xe),
470
+ disabled: !m(xe)
471
+ }, [d(D, {
468
472
  "enter-active-class": "tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
469
473
  "enter-from-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1",
470
474
  "enter-to-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
@@ -472,103 +476,103 @@ var Ie = [
472
476
  "leave-from-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
473
477
  "leave-to-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1"
474
478
  }, {
475
- default: s(() => [C.value ? (h(), p("div", {
479
+ default: c(() => [O.value ? (n(), _("div", {
476
480
  key: 0,
477
481
  ref_key: "popoverRef",
478
- ref: T,
479
- "data-tpl-theme": v(be),
482
+ ref: k,
483
+ "data-tpl-theme": m(we),
480
484
  class: "tpl-color-popover tpl:absolute tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3 tpl:shadow-[var(--tpl-shadow-lg)]",
481
- style: g({
485
+ style: o({
482
486
  top: `${Z.value.top}px`,
483
487
  left: `${Z.value.left}px`,
484
- ...v(ye)
488
+ ...m(Ce)
485
489
  })
486
490
  }, [
487
- n.allowTransparent ? (h(), p("button", {
491
+ i.allowTransparent ? (n(), _("button", {
488
492
  key: 0,
489
493
  type: "button",
490
494
  "data-testid": "color-picker-transparent",
491
- "aria-pressed": k.value,
492
- "aria-label": v(S).colorPicker.transparent,
493
- title: v(S).colorPicker.transparent,
494
- class: e(["tpl:mb-2 tpl:flex tpl:w-full tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2 tpl:py-1 tpl:text-left tpl:text-xs tpl:text-[var(--tpl-text)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)]", k.value ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
495
- onClick: J
496
- }, [r[2] ||= _("span", { class: "tpl-color-swatch-transparent tpl:size-4 tpl:shrink-0 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)]" }, null, -1), m(" " + i(v(S).colorPicker.transparent), 1)], 10, Ve)) : f("", !0),
497
- L.value ? (h(), p("div", {
495
+ "aria-pressed": N.value,
496
+ "aria-label": m(E).colorPicker.transparent,
497
+ title: m(E).colorPicker.transparent,
498
+ class: r(["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)]", 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)]"]),
499
+ onClick: X
500
+ }, [s[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), v(" " + t(m(E).colorPicker.transparent), 1)], 10, Ue)) : h("", !0),
501
+ H.value ? (n(), _("div", {
498
502
  key: 1,
499
503
  role: "radiogroup",
500
- "aria-label": v(S).colorPicker.presetColors,
501
- class: e(["tpl:flex tpl:flex-wrap tpl:gap-1.5", R.value && "tpl:mb-2"]),
502
- onKeydown: he
503
- }, [H.value ? (h(), p("button", {
504
+ "aria-label": m(E).colorPicker.presetColors,
505
+ class: r(["tpl:flex tpl:flex-wrap tpl:gap-1.5", U.value && "tpl:mb-2"]),
506
+ onKeydown: _e
507
+ }, [K.value ? (n(), _("button", {
504
508
  key: 0,
505
509
  type: "button",
506
510
  role: "radio",
507
- "aria-label": v(S).colorPicker.clear,
508
- title: v(S).colorPicker.clear,
509
- "aria-checked": O.value,
510
- tabindex: me(),
511
- class: e(["tpl-color-swatch-empty tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", O.value ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
512
- onClick: q
513
- }, null, 10, Ue)) : f("", !0), (h(!0), p(b, null, a(I.value, (t, n) => (h(), p("button", {
514
- key: t,
511
+ "aria-label": m(E).colorPicker.clear,
512
+ title: m(E).colorPicker.clear,
513
+ "aria-checked": M.value,
514
+ tabindex: he(),
515
+ class: r(["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)]", M.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)]"]),
516
+ onClick: Y
517
+ }, null, 10, Ge)) : h("", !0), (n(!0), _(x, null, a(B.value, (e, t) => (n(), _("button", {
518
+ key: e,
515
519
  type: "button",
516
520
  role: "radio",
517
- "aria-label": t,
518
- title: t,
519
- "aria-checked": B(t),
520
- tabindex: G(n),
521
- style: g({ backgroundColor: t }),
522
- class: e(["tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", B(t) ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
523
- onClick: (e) => V(t)
524
- }, null, 14, We))), 128))], 42, He)) : f("", !0),
525
- R.value ? (h(), p("hex-color-picker", {
521
+ "aria-label": e,
522
+ title: e,
523
+ "aria-checked": G(e),
524
+ tabindex: ge(t),
525
+ style: o({ backgroundColor: e }),
526
+ class: r(["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)]", G(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)]"]),
527
+ onClick: (t) => pe(e)
528
+ }, null, 14, Ke))), 128))], 42, We)) : h("", !0),
529
+ U.value ? (n(), _("hex-color-picker", {
526
530
  key: 2,
527
- color: N.value,
528
- "aria-label": v(S).colorPicker.pickColor,
529
- onColorChanged: ge,
530
- onPointerdown: _e,
531
- onPointerup: ve,
532
- onKeydown: r[0] ||= ee((e) => C.value = !1, ["escape"])
533
- }, null, 40, Ge)) : f("", !0),
534
- n.swatchOnly && R.value ? (h(), p("div", Ke, [_("input", {
531
+ color: L.value,
532
+ "aria-label": m(E).colorPicker.pickColor,
533
+ onColorChanged: ve,
534
+ onPointerdown: ye,
535
+ onPointerup: be,
536
+ onKeydown: s[0] ||= ee((e) => O.value = !1, ["escape"])
537
+ }, null, 40, qe)) : h("", !0),
538
+ i.swatchOnly && U.value ? (n(), _("div", Je, [y("input", {
535
539
  type: "text",
536
- class: e([v(fe), "tpl:w-full"]),
537
- style: g(P.value ? { paddingRight: "2.25rem" } : void 0),
538
- value: A.value,
539
- placeholder: n.placeholder || v(S).colorPicker.notSet,
540
- disabled: n.disabled,
541
- "aria-label": v(S).colorPicker.hexValue,
542
- onChange: K,
543
- onKeydown: r[1] ||= ee(w((e) => e.target.blur(), ["prevent"]), ["enter"])
544
- }, null, 46, qe), P.value ? (h(), p("button", {
540
+ class: r([m(ie), "tpl:w-full"]),
541
+ style: o(R.value ? { paddingRight: "2.25rem" } : void 0),
542
+ value: F.value,
543
+ placeholder: i.placeholder || m(E).colorPicker.notSet,
544
+ disabled: b.value,
545
+ "aria-label": m(E).colorPicker.hexValue,
546
+ onChange: J,
547
+ onKeydown: s[1] ||= ee(T((e) => e.target.blur(), ["prevent"]), ["enter"])
548
+ }, null, 46, Ye), R.value ? (n(), _("button", {
545
549
  key: 0,
546
550
  type: "button",
547
- "aria-label": v(S).colorPicker.clear,
548
- title: v(S).colorPicker.clear,
551
+ "aria-label": m(E).colorPicker.clear,
552
+ title: m(E).colorPicker.clear,
549
553
  class: "tpl:absolute tpl:right-2 tpl:top-1/2 tpl:flex tpl:size-6 tpl:-translate-y-1/2 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
550
- onClick: q
551
- }, [l(v(de), {
554
+ onClick: Y
555
+ }, [d(m(P), {
552
556
  size: 14,
553
557
  "stroke-width": 1.5
554
- })], 8, Je)) : f("", !0)])) : f("", !0)
555
- ], 12, Be)) : f("", !0)]),
558
+ })], 8, Xe)) : h("", !0)])) : h("", !0)
559
+ ], 12, He)) : h("", !0)]),
556
560
  _: 1
557
561
  })], 8, ["to", "disabled"]))
558
562
  ], 2));
559
563
  }
560
- }), Xe = ["id"], Ze = {
564
+ }), Qe = ["id"], $e = {
561
565
  key: 0,
562
566
  class: "tpl:px-3 tpl:py-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
563
567
  "data-testid": "merge-tag-suggestion-empty"
564
- }, Qe = [
568
+ }, et = [
565
569
  "id",
566
570
  "aria-selected",
567
571
  "data-selected",
568
572
  "data-merge-tag-value",
569
573
  "onMousedown",
570
574
  "onMousemove"
571
- ], $e = { class: "tpl:font-medium" }, et = { class: "tpl:text-[var(--tpl-text-dim)] tpl:font-mono" }, tt = /* @__PURE__ */ C({
575
+ ], tt = { class: "tpl:font-medium" }, nt = { class: "tpl:text-[var(--tpl-text-dim)] tpl:font-mono" }, rt = /* @__PURE__ */ w({
572
576
  __name: "MergeTagSuggestionList",
573
577
  props: {
574
578
  items: {},
@@ -577,44 +581,44 @@ var Ie = [
577
581
  listId: {}
578
582
  },
579
583
  emits: ["select", "hover"],
580
- setup(t) {
581
- let n = t;
582
- function r(e) {
583
- return n.listId ? `${n.listId}-opt-${e}` : void 0;
584
+ setup(e) {
585
+ let i = e;
586
+ function o(e) {
587
+ return i.listId ? `${i.listId}-opt-${e}` : void 0;
584
588
  }
585
- return (n, o) => (h(), p("div", {
586
- id: t.listId,
589
+ return (i, s) => (n(), _("div", {
590
+ id: e.listId,
587
591
  class: "tpl:min-w-[200px] tpl:max-w-[320px] tpl:max-h-[50vh] tpl:overflow-y-auto tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:py-1 tpl:shadow-[var(--tpl-shadow-lg)]",
588
592
  role: "listbox",
589
593
  "data-testid": "merge-tag-suggestion-list"
590
- }, [t.items.length === 0 ? (h(), p("div", Ze, i(t.emptyText), 1)) : f("", !0), (h(!0), p(b, null, a(t.items, (a, o) => (h(), p("button", {
594
+ }, [e.items.length === 0 ? (n(), _("div", $e, t(e.emptyText), 1)) : h("", !0), (n(!0), _(x, null, a(e.items, (a, s) => (n(), _("button", {
591
595
  key: a.value,
592
- id: r(o),
596
+ id: o(s),
593
597
  type: "button",
594
598
  role: "option",
595
- "aria-selected": o === t.selectedIndex,
596
- "data-selected": o === t.selectedIndex ? "true" : "false",
599
+ "aria-selected": s === e.selectedIndex,
600
+ "data-selected": s === e.selectedIndex ? "true" : "false",
597
601
  "data-merge-tag-value": a.value,
598
- class: e(["tpl:flex tpl:w-full tpl:flex-col tpl:items-start tpl:gap-0.5 tpl:px-3 tpl:py-1.5 tpl:text-left tpl:text-xs tpl:transition-colors", o === t.selectedIndex ? "tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:text-[var(--tpl-text)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
599
- onMousedown: w((e) => n.$emit("select", a), ["prevent", "stop"]),
600
- onMousemove: (e) => o !== t.selectedIndex && n.$emit("hover", o)
601
- }, [_("span", $e, i(a.label), 1), _("span", et, i(a.value), 1)], 42, Qe))), 128))], 8, Xe));
602
+ class: r(["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", s === 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)]"]),
603
+ onMousedown: T((e) => i.$emit("select", a), ["prevent", "stop"]),
604
+ onMousemove: (t) => s !== e.selectedIndex && i.$emit("hover", s)
605
+ }, [y("span", tt, t(a.label), 1), y("span", nt, t(a.value), 1)], 42, et))), 128))], 8, Qe));
602
606
  }
603
- }), nt = 10, rt = 0;
604
- function it(e, t) {
607
+ }), it = 10, at = 0;
608
+ function ot(e, t) {
605
609
  let n = t.trim().toLowerCase();
606
- return n === "" ? e.slice(0, nt) : e.filter((e) => {
610
+ return n === "" ? e.slice(0, it) : e.filter((e) => {
607
611
  let t = e.label.toLowerCase(), r = e.value.toLowerCase();
608
612
  return t.includes(n) || r.includes(n);
609
- }).slice(0, nt);
613
+ }).slice(0, it);
610
614
  }
611
- function at(e, t, n, r) {
615
+ function st(e, t, n, r) {
612
616
  return t.length === 0 ? e.key === "Enter" || e.key === "Tab" : e.key === "ArrowDown" ? (n.value = (n.value + 1) % t.length, !0) : e.key === "ArrowUp" ? (n.value = (n.value - 1 + t.length) % t.length, !0) : e.key === "Enter" || e.key === "Tab" ? (r(t[n.value]), !0) : !1;
613
617
  }
614
- function ot(e, t) {
615
- let n = null, r = null, i = null, a = o([]), s = o(0), c = null, l = `tpl-merge-tag-suggestion-${++rt}`, u = null, d = [], f = null;
618
+ function ct(e, t) {
619
+ let n = null, r = null, i = null, a = g([]), o = g(0), c = null, l = `tpl-merge-tag-suggestion-${++at}`, u = null, d = [], f = null;
616
620
  function p() {
617
- v(u?.() ?? null);
621
+ y(u?.() ?? null);
618
622
  }
619
623
  function m() {
620
624
  p(), f !== null && cancelAnimationFrame(f), f = requestAnimationFrame(() => {
@@ -629,7 +633,7 @@ function ot(e, t) {
629
633
  }
630
634
  return t;
631
635
  }
632
- function g(e) {
636
+ function _(e) {
633
637
  d = [window, ...h(e)];
634
638
  for (let e of d) e.addEventListener("scroll", p, {
635
639
  passive: !0,
@@ -637,11 +641,11 @@ function ot(e, t) {
637
641
  });
638
642
  window.addEventListener("resize", p, { passive: !0 });
639
643
  }
640
- function _() {
644
+ function v() {
641
645
  for (let e of d) e.removeEventListener("scroll", p, { capture: !0 });
642
646
  window.removeEventListener("resize", p), d = [];
643
647
  }
644
- function v(e) {
648
+ function y(e) {
645
649
  if (!r || !e || e.bottom < 0 || e.top > window.innerHeight) return;
646
650
  r.style.position = "absolute", r.style.zIndex = "9999";
647
651
  let t = r.offsetParent?.getBoundingClientRect(), n = t?.top ?? 0, i = t?.left ?? 0;
@@ -652,7 +656,7 @@ function ot(e, t) {
652
656
  r.style.top = `${t - n}px`;
653
657
  }
654
658
  }
655
- function y(e, t) {
659
+ function b(e, t) {
656
660
  let n = t?.closest("[data-tpl-theme]");
657
661
  if (!n) return;
658
662
  let r = n.getAttribute("data-tpl-theme");
@@ -664,48 +668,48 @@ function ot(e, t) {
664
668
  }
665
669
  e.style.fontFamily = i.fontFamily, e.style.fontSize = i.fontSize, e.style.lineHeight = i.lineHeight;
666
670
  }
667
- function b(e) {
671
+ function x(e) {
668
672
  i && (e ? (i.setAttribute("role", "combobox"), i.setAttribute("aria-haspopup", "listbox"), i.setAttribute("aria-expanded", "true"), i.setAttribute("aria-controls", l)) : (i.removeAttribute("aria-expanded"), i.removeAttribute("aria-controls"), i.removeAttribute("aria-activedescendant"), i.removeAttribute("aria-haspopup"), i.removeAttribute("role")));
669
673
  }
670
- function x() {
671
- i && (a.value.length === 0 ? i.removeAttribute("aria-activedescendant") : i.setAttribute("aria-activedescendant", `${l}-opt-${s.value}`));
674
+ function S() {
675
+ i && (a.value.length === 0 ? i.removeAttribute("aria-activedescendant") : i.setAttribute("aria-activedescendant", `${l}-opt-${o.value}`));
672
676
  }
673
677
  function C(e) {
674
678
  c?.(e);
675
679
  }
676
680
  return {
677
- open: ({ items: o, getRect: d, anchorEl: f, onCommand: p }) => {
678
- a.value = o, s.value = 0, c = p, r = document.createElement("div"), r.setAttribute("data-testid", "merge-tag-suggestion-popup"), i = f, y(r, f), (t?.value ?? document.body).appendChild(r), n = T({ render() {
679
- return S(tt, {
681
+ open: ({ items: d, getRect: f, anchorEl: p, onCommand: h }) => {
682
+ a.value = d, o.value = 0, c = h, r = document.createElement("div"), r.setAttribute("data-testid", "merge-tag-suggestion-popup"), i = p, b(r, p), (t?.value ?? document.body).appendChild(r), n = E({ render() {
683
+ return s(rt, {
680
684
  items: a.value,
681
- selectedIndex: s.value,
685
+ selectedIndex: o.value,
682
686
  emptyText: e,
683
687
  listId: l,
684
688
  onSelect: (e) => C(e),
685
689
  onHover: (e) => {
686
- s.value = e, x();
690
+ o.value = e, S();
687
691
  }
688
692
  });
689
- } }), n.mount(r), b(!0), x(), u = d, m(), g(f);
693
+ } }), n.mount(r), x(!0), S(), u = f, m(), _(p);
690
694
  },
691
695
  update: ({ items: e, getRect: t, onCommand: n }) => {
692
- a.value = e, s.value >= e.length && (s.value = 0), c = n, x(), u = t, m();
696
+ a.value = e, o.value >= e.length && (o.value = 0), c = n, S(), u = t, m();
693
697
  },
694
698
  handleKeyDown: (e) => {
695
- let t = at(e, a.value, s, C);
696
- return t && x(), t;
699
+ let t = st(e, a.value, o, C);
700
+ return t && S(), t;
697
701
  },
698
702
  close: () => {
699
- r !== null && (f !== null && (cancelAnimationFrame(f), f = null), _(), b(!1), n?.unmount(), r.remove(), n = null, r = null, i = null, c = null, u = null);
703
+ r !== null && (f !== null && (cancelAnimationFrame(f), f = null), v(), x(!1), n?.unmount(), r.remove(), n = null, r = null, i = null, c = null, u = null);
700
704
  },
701
705
  isOpen: () => r !== null
702
706
  };
703
707
  }
704
708
  // src/utils/mergeTagTrigger.ts
705
- function st(e, t, n, r, i) {
709
+ function lt(e, t, n, r, i) {
706
710
  if (!n) return null;
707
711
  let a = e.slice(0, t), o = a.lastIndexOf(n);
708
- if (o === -1 || i && o < ct(a, i)) return null;
712
+ if (o === -1 || i && o < ut(a, i)) return null;
709
713
  let s = a.slice(o + n.length);
710
714
  return /\s/.test(s) || r && s.includes(r) ? null : {
711
715
  triggerStart: o,
@@ -713,14 +717,14 @@ function st(e, t, n, r, i) {
713
717
  query: s
714
718
  };
715
719
  }
716
- function ct(e, t) {
720
+ function ut(e, t) {
717
721
  let n = new RegExp(t.source, `${t.flags.replace(/[gy]/g, "")}g`), r = 0;
718
722
  for (let t of e.matchAll(n)) r = t.index + t[0].length;
719
723
  return r;
720
724
  }
721
725
  // src/utils/textFieldCaret.ts
722
- 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(".");
723
- function ut(e, t, n) {
726
+ var dt = /* @__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(".");
727
+ function ft(e, t, n) {
724
728
  return {
725
729
  left: e,
726
730
  top: t,
@@ -733,7 +737,7 @@ function ut(e, t, n) {
733
737
  toJSON: () => ({})
734
738
  };
735
739
  }
736
- function dt(e, t) {
740
+ function pt(e, t) {
737
741
  let n = e.ownerDocument, r = n.defaultView;
738
742
  if (!r) return null;
739
743
  let i = e.tagName === "INPUT", a = r.getComputedStyle(e), o = n.createElement("div");
@@ -741,7 +745,7 @@ function dt(e, t) {
741
745
  let s = o.style;
742
746
  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";
743
747
  let c = s, l = a;
744
- for (let e of lt) c[e] = l[e];
748
+ for (let e of dt) c[e] = l[e];
745
749
  i && (s.width = "auto", s.whiteSpace = "pre");
746
750
  let u = e.value, d = u.slice(0, t);
747
751
  i && (d = d.replace(/\s/g, "\xA0")), o.textContent = d;
@@ -750,103 +754,108 @@ function dt(e, t) {
750
754
  let p = f.offsetTop, m = f.offsetLeft;
751
755
  n.body.removeChild(o);
752
756
  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;
753
- if (i) return ut(y, h.top, h.bottom);
757
+ if (i) return ft(y, h.top, h.bottom);
754
758
  let b = h.top + p + g - e.scrollTop;
755
- return ut(y, b, b + v);
759
+ return ft(y, b, b + v);
756
760
  }
757
761
  // src/composables/useMergeTagAutocomplete.ts
758
- var ft = /* @__PURE__ */ new Set([
762
+ var mt = /* @__PURE__ */ new Set([
759
763
  "ArrowLeft",
760
764
  "ArrowRight",
761
765
  "Home",
762
766
  "End"
763
767
  ]);
764
- function pt(e) {
765
- let { elementRef: i, modelValue: a, emit: o, mergeTags: s, syntax: l, enabled: u, onInsert: f } = e, p = k(l), m = D(l), h = d(() => u && p !== null && s.value.length > 0), g = t(A, null), _ = ot((y(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", se()), v = !1;
766
- r() && c(() => {
767
- v = !0, _.close();
768
+ function ht(t) {
769
+ let { elementRef: n, modelValue: r, emit: a, mergeTags: o, syntax: s, enabled: c, onInsert: d } = t, f = se(), m = k(s), h = j(s), g = p(() => f.value && c && m !== null && o.value.length > 0), _ = C(F, null), v = ct((l(_) ? _.value : _)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", ce());
770
+ e(f, (e) => {
771
+ e || v.close();
772
+ }, { flush: "sync" });
773
+ let y = !1;
774
+ b() && u(() => {
775
+ y = !0, v.close();
768
776
  });
769
- function b(e) {
777
+ function x(e) {
770
778
  let t = e.value ?? "";
771
- return st(t, e.selectionStart ?? t.length, p, m, l.value);
779
+ return lt(t, e.selectionStart ?? t.length, m, h, s.value);
772
780
  }
773
- function x(e, t, r) {
774
- let s = e.value ?? a(), c = s.slice(t.caret), l = m && c.startsWith(m) ? m.length : 0, u = s.slice(0, t.triggerStart), d = s.slice(t.caret + l), p = u + r.value + d, h = u.length + r.value.length;
775
- f?.(), o(p), _.close(), n(() => {
776
- if (v) return;
777
- let e = i.value;
778
- e?.focus(), e?.setSelectionRange(h, h);
781
+ function S(e, t, o) {
782
+ if (!f.value) return;
783
+ let s = e.value ?? r(), c = s.slice(t.caret), l = h && c.startsWith(h) ? h.length : 0, u = s.slice(0, t.triggerStart), p = s.slice(t.caret + l), m = u + o.value + p, g = u.length + o.value.length;
784
+ d?.(), a(m), v.close(), i(() => {
785
+ if (y) return;
786
+ let e = n.value;
787
+ e?.focus(), e?.setSelectionRange(g, g);
779
788
  });
780
789
  }
781
- function S() {
782
- if (!h.value || v) return;
783
- let e = i.value;
790
+ function w() {
791
+ if (!g.value || y) return;
792
+ let e = n.value;
784
793
  if (!e) {
785
- _.close();
794
+ v.close();
786
795
  return;
787
796
  }
788
- let t = b(e);
797
+ let t = x(e);
789
798
  if (!t) {
790
- _.close();
799
+ v.close();
791
800
  return;
792
801
  }
793
- let n = it(s.value, t.query), r = () => dt(e, t.triggerStart), a = (n) => x(e, t, n);
794
- _.isOpen() ? _.update({
795
- items: n,
796
- getRect: r,
802
+ let r = ot(o.value, t.query), i = () => pt(e, t.triggerStart), a = (n) => S(e, t, n);
803
+ v.isOpen() ? v.update({
804
+ items: r,
805
+ getRect: i,
797
806
  onCommand: a
798
- }) : _.open({
799
- items: n,
800
- getRect: r,
807
+ }) : v.open({
808
+ items: r,
809
+ getRect: i,
801
810
  anchorEl: e,
802
811
  onCommand: a
803
812
  });
804
813
  }
805
- function C(e) {
806
- return _.isOpen() ? e.key === "Escape" ? (_.close(), !0) : ft.has(e.key) ? (_.close(), !1) : _.handleKeyDown(e) : !1;
814
+ function T(e) {
815
+ return v.isOpen() ? e.key === "Escape" ? (v.close(), !0) : mt.has(e.key) ? (v.close(), !1) : v.handleKeyDown(e) : !1;
807
816
  }
808
817
  return {
809
- available: h,
810
- refresh: S,
811
- handleKeydown: C,
812
- close: () => _.close(),
813
- isOpen: () => _.isOpen()
818
+ available: g,
819
+ refresh: w,
820
+ handleKeydown: T,
821
+ close: () => v.close(),
822
+ isOpen: () => v.isOpen()
814
823
  };
815
824
  }
816
825
  // src/composables/useMergeTagField.ts
817
- function mt(e) {
818
- let { modelValue: t, emit: i, elementRef: a } = e, { mergeTags: s, canRequestMergeTag: l, isRequesting: u, isMergeTagValue: f, getMergeTagDisplayLabel: p, findMergeTag: m, requestMergeTag: h, syntax: g, autocomplete: _ } = F(), { canInsertLogicTag: v, isRequesting: y, requestLogicTag: b } = I(), x = o(!1), S = !1, C = !1;
819
- r() && c(() => {
826
+ function gt(e) {
827
+ let { modelValue: t, emit: n, elementRef: r } = e, { mergeTags: a, canRequestMergeTag: o, isRequesting: s, isMergeTagValue: c, getMergeTagDisplayLabel: l, findMergeTag: d, requestMergeTag: f, syntax: m, autocomplete: h } = L(), { canInsertLogicTag: _, isRequesting: v, requestLogicTag: y } = R(), x = g(!1), S = !1, C = !1;
828
+ b() && u(() => {
820
829
  C = !0;
821
830
  });
822
- let w = pt({
823
- elementRef: a,
831
+ let w = ht({
832
+ elementRef: r,
824
833
  modelValue: t,
825
- emit: i,
826
- mergeTags: s,
827
- syntax: g,
828
- enabled: _,
834
+ emit: n,
835
+ mergeTags: a,
836
+ syntax: m,
837
+ enabled: h,
829
838
  onInsert: () => {
830
839
  x.value = !0;
831
840
  }
832
- }), T = d(() => {
841
+ }), T = p(() => {
833
842
  let e = t();
834
843
  if (!e) return [];
835
- let n = [], r = `(${g.value.source}|${g.logic.source})`, i = new RegExp(r, "g"), a = 0, o;
844
+ let n = [], r = `(${m.value.source}|${m.logic.source})`, i = new RegExp(r, "g"), a = 0, o;
836
845
  for (; (o = i.exec(e)) !== null;) {
837
846
  o.index > a && n.push({
838
847
  type: "text",
839
848
  value: e.slice(a, o.index)
840
849
  });
841
850
  let t = o[0];
842
- f(t) ? n.push({
851
+ c(t) ? n.push({
843
852
  type: "mergeTag",
844
853
  value: t,
845
- label: p(t)
846
- }) : O(t, g) ? n.push({
854
+ label: l(t)
855
+ }) : O(t, m) ? n.push({
847
856
  type: "logicMergeTag",
848
857
  value: t,
849
- keyword: E(t, g)
858
+ keyword: A(t, m)
850
859
  }) : n.push({
851
860
  type: "text",
852
861
  value: t
@@ -856,110 +865,110 @@ function mt(e) {
856
865
  type: "text",
857
866
  value: e.slice(a)
858
867
  }), n;
859
- }), ee = d(() => T.value.some((e) => e.type === "mergeTag" || e.type === "logicMergeTag"));
860
- function te() {
861
- x.value = !0, n(() => {
862
- a.value?.focus();
868
+ }), E = p(() => T.value.some((e) => e.type === "mergeTag" || e.type === "logicMergeTag"));
869
+ function ee() {
870
+ x.value = !0, i(() => {
871
+ r.value?.focus();
863
872
  let e = t()?.length || 0;
864
- a.value?.setSelectionRange(e, e);
873
+ r.value?.setSelectionRange(e, e);
865
874
  });
866
875
  }
867
876
  function D() {
868
877
  S || (x.value = !1);
869
878
  }
870
879
  function k(e) {
871
- i(e.target.value), w.refresh();
880
+ n(e.target.value), w.refresh();
872
881
  }
873
- function ne(e) {
882
+ function j(e) {
874
883
  return w.handleKeydown(e) ? (e.preventDefault(), !0) : (e.key === "Escape" && D(), !1);
875
884
  }
876
- function re() {
885
+ function M() {
877
886
  w.refresh();
878
887
  }
879
- function A() {
888
+ function N() {
880
889
  w.close(), D();
881
890
  }
882
- function ie() {
883
- i("");
891
+ function P() {
892
+ n("");
884
893
  }
885
- async function ae() {
886
- let e = x.value && a.value ? a.value.selectionStart ?? t().length : t().length;
894
+ async function te() {
895
+ let e = x.value && r.value ? r.value.selectionStart ?? t().length : t().length;
887
896
  S = !0;
888
- let r;
897
+ let a;
889
898
  try {
890
- r = await h();
899
+ a = await f();
891
900
  } finally {
892
901
  S = !1;
893
902
  }
894
- if (!C && r) {
895
- let o = t().slice(0, e), s = t().slice(e), c = o + r.value + s;
896
- i(c), x.value = !0, n(() => {
903
+ if (!C && a) {
904
+ let o = t().slice(0, e), s = t().slice(e), c = o + a.value + s;
905
+ n(c), x.value = !0, i(() => {
897
906
  if (C) return;
898
- let t = e + r.value.length;
899
- a.value?.focus(), a.value?.setSelectionRange(t, t);
907
+ let t = e + a.value.length;
908
+ r.value?.focus(), r.value?.setSelectionRange(t, t);
900
909
  });
901
910
  }
902
911
  }
903
- async function j(e) {
904
- let t = T.value, n = t[e];
905
- if (n?.type !== "mergeTag") return;
912
+ async function ne(e) {
913
+ let t = T.value, r = t[e];
914
+ if (r?.type !== "mergeTag") return;
906
915
  S = !0;
907
- let r;
916
+ let i;
908
917
  try {
909
- r = await h({
918
+ i = await f({
910
919
  reason: "edit",
911
- current: m(n.value)
920
+ current: d(r.value)
912
921
  });
913
922
  } finally {
914
923
  S = !1;
915
924
  }
916
- !C && r && i(t.map((t, n) => n === e ? r.value : t.value).join(""));
925
+ !C && i && n(t.map((t, n) => n === e ? i.value : t.value).join(""));
917
926
  }
918
- async function M() {
919
- let e = a.value, r = e?.selectionStart ?? t().length, o = e?.selectionEnd ?? r;
927
+ async function re() {
928
+ let e = r.value, a = e?.selectionStart ?? t().length, o = e?.selectionEnd ?? a;
920
929
  S = !0;
921
930
  let s;
922
931
  try {
923
- s = await b();
932
+ s = await y();
924
933
  } finally {
925
934
  S = !1;
926
935
  }
927
936
  if (C || !s) return;
928
937
  let c = t(), l, u;
929
- "before" in s ? (l = c.slice(0, r) + s.before + c.slice(r, o) + s.after + c.slice(o), u = r + s.before.length + (o - r)) : (l = c.slice(0, r) + s.value + c.slice(r), u = r + s.value.length), i(l), x.value = !0, n(() => {
930
- C || (a.value?.focus(), a.value?.setSelectionRange(u, u));
938
+ "before" in s ? (l = c.slice(0, a) + s.before + c.slice(a, o) + s.after + c.slice(o), u = a + s.before.length + (o - a)) : (l = c.slice(0, a) + s.value + c.slice(a), u = a + s.value.length), n(l), x.value = !0, i(() => {
939
+ C || (r.value?.focus(), r.value?.setSelectionRange(u, u));
931
940
  });
932
941
  }
933
942
  return {
934
943
  segments: T,
935
- hasMergeTags: ee,
936
- canRequestMergeTag: l,
937
- isRequestingMergeTag: u,
938
- canInsertLogicTag: v,
939
- isRequestingLogicTag: y,
944
+ hasMergeTags: E,
945
+ canRequestMergeTag: o,
946
+ isRequestingMergeTag: s,
947
+ canInsertLogicTag: _,
948
+ isRequestingLogicTag: v,
940
949
  isEditing: x,
941
- startEditing: te,
950
+ startEditing: ee,
942
951
  stopEditing: D,
943
952
  handleInput: k,
944
- handleKeydown: ne,
945
- handleClick: re,
946
- handleBlur: A,
947
- clearValue: ie,
948
- insertMergeTag: ae,
949
- replaceMergeTagAt: j,
950
- insertLogicTag: M,
953
+ handleKeydown: j,
954
+ handleClick: M,
955
+ handleBlur: N,
956
+ clearValue: P,
957
+ insertMergeTag: te,
958
+ replaceMergeTagAt: ne,
959
+ insertLogicTag: re,
951
960
  autocompleteAvailable: w.available
952
961
  };
953
962
  }
954
963
  // src/components/MergeTagSegments.vue?vue&type=script&setup=true&lang.ts
955
- var ht = ["aria-label"], gt = [
964
+ var _t = ["aria-label"], vt = [
956
965
  "data-tooltip",
957
966
  "aria-label",
958
967
  "onClick"
959
- ], _t = ["data-tooltip"], vt = ["data-tooltip"], yt = {
968
+ ], yt = ["data-tooltip"], bt = ["data-tooltip"], xt = {
960
969
  key: 3,
961
970
  class: "tpl:text-sm tpl:text-[var(--tpl-text)]"
962
- }, bt = ["aria-label", "title"], xt = ["aria-label", "title"], St = /* @__PURE__ */ C({
971
+ }, St = ["aria-label", "title"], Ct = ["aria-label", "title"], wt = /* @__PURE__ */ w({
963
972
  __name: "MergeTagSegments",
964
973
  props: {
965
974
  segments: {},
@@ -971,117 +980,117 @@ var ht = ["aria-label"], gt = [
971
980
  "clear",
972
981
  "repick"
973
982
  ],
974
- setup(t, { emit: n }) {
975
- let r = n, { t: o, format: s } = j(), { canRepickMergeTag: c, showRawValue: u } = F();
976
- function d() {
977
- r("edit");
983
+ setup(e, { emit: i }) {
984
+ let o = i, { t: s, format: c } = I(), { canRepickMergeTag: l, showRawValue: u } = L();
985
+ function f() {
986
+ o("edit");
978
987
  }
979
- return (n, f) => (h(), p("div", {
988
+ return (i, p) => (n(), _("div", {
980
989
  role: "group",
981
- "aria-label": v(o).mergeTag.fieldGroup,
982
- class: e([t.displayClass, { "tpl-pulse-fill": t.pulse }]),
983
- onClick: d
990
+ "aria-label": m(s).mergeTag.fieldGroup,
991
+ class: r([e.displayClass, { "tpl-pulse-fill": e.pulse }]),
992
+ onClick: f
984
993
  }, [
985
- (h(!0), p(b, null, a(t.segments, (t, n) => (h(), p(b, { key: `${t.type}-${n}-${t.value}` }, [t.type === "mergeTag" && v(c)(t.value) ? (h(), p("button", {
994
+ (n(!0), _(x, null, a(e.segments, (e, i) => (n(), _(x, { key: `${e.type}-${i}-${e.value}` }, [e.type === "mergeTag" && m(l)(e.value) ? (n(), _("button", {
986
995
  key: 0,
987
996
  type: "button",
988
- class: e(["tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:rounded tpl:border-none tpl:px-1.5 tpl:py-0.5 tpl:text-[0.9em] tpl:font-medium", v(u) ? "tpl-tooltip" : ""]),
989
- "data-tooltip": v(u) ? t.value : void 0,
990
- "aria-label": v(s)(v(o).mergeTag.changeTag, { label: t.label }),
997
+ class: r(["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", m(u) ? "tpl-tooltip" : ""]),
998
+ "data-tooltip": m(u) ? e.value : void 0,
999
+ "aria-label": m(c)(m(s).mergeTag.changeTag, { label: e.label }),
991
1000
  "data-testid": "merge-tag-field-chip",
992
1001
  style: {
993
1002
  "background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
994
1003
  color: "var(--tpl-primary)"
995
1004
  },
996
- onClick: w((e) => r("repick", n), ["stop"])
997
- }, i(t.label), 11, gt)) : t.type === "mergeTag" ? (h(), p("span", {
1005
+ onClick: T((e) => o("repick", i), ["stop"])
1006
+ }, t(e.label), 11, vt)) : e.type === "mergeTag" ? (n(), _("span", {
998
1007
  key: 1,
999
- class: e(["tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.9em] tpl:font-medium", v(u) ? "tpl-tooltip" : ""]),
1000
- "data-tooltip": v(u) ? t.value : void 0,
1008
+ class: r(["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", m(u) ? "tpl-tooltip" : ""]),
1009
+ "data-tooltip": m(u) ? e.value : void 0,
1001
1010
  style: {
1002
1011
  "background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
1003
1012
  color: "var(--tpl-primary)"
1004
1013
  }
1005
- }, i(t.label), 11, _t)) : t.type === "logicMergeTag" ? (h(), p("span", {
1014
+ }, t(e.label), 11, yt)) : e.type === "logicMergeTag" ? (n(), _("span", {
1006
1015
  key: 2,
1007
1016
  class: "tpl-tooltip tpl:inline-flex tpl:items-center tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.8em] tpl:font-bold tpl:tracking-wide tpl:uppercase",
1008
- "data-tooltip": t.value,
1017
+ "data-tooltip": e.value,
1009
1018
  style: {
1010
1019
  "background-color": "transparent",
1011
1020
  border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
1012
1021
  color: "var(--tpl-primary)"
1013
1022
  }
1014
- }, i(t.keyword), 9, vt)) : (h(), p("span", yt, i(t.value), 1))], 64))), 128)),
1015
- _("button", {
1023
+ }, t(e.keyword), 9, bt)) : (n(), _("span", xt, t(e.value), 1))], 64))), 128)),
1024
+ y("button", {
1016
1025
  type: "button",
1017
1026
  class: "tpl:ml-auto tpl:flex tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-[var(--tpl-text-dim)] tpl:opacity-60 tpl:transition-all tpl:hover:text-[var(--tpl-primary)] tpl:hover:opacity-100",
1018
- "aria-label": v(o).mergeTag.editAsText,
1019
- title: v(o).mergeTag.editAsText,
1027
+ "aria-label": m(s).mergeTag.editAsText,
1028
+ title: m(s).mergeTag.editAsText,
1020
1029
  "data-testid": "merge-tag-field-edit",
1021
- onClick: w(d, ["stop"])
1022
- }, [l(v(P), {
1030
+ onClick: T(f, ["stop"])
1031
+ }, [d(m(N), {
1023
1032
  size: 12,
1024
1033
  "stroke-width": 2
1025
- })], 8, bt),
1026
- _("button", {
1034
+ })], 8, St),
1035
+ y("button", {
1027
1036
  type: "button",
1028
1037
  class: "tpl:flex tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-[var(--tpl-text-dim)] tpl:opacity-60 tpl:transition-all tpl:hover:text-[var(--tpl-danger)] tpl:hover:opacity-100",
1029
- "aria-label": v(o).mergeTag.remove,
1030
- title: v(o).mergeTag.remove,
1038
+ "aria-label": m(s).mergeTag.remove,
1039
+ title: m(s).mergeTag.remove,
1031
1040
  "data-testid": "merge-tag-field-clear",
1032
- onClick: f[0] ||= w((e) => r("clear"), ["stop"])
1033
- }, [l(v(de), {
1041
+ onClick: p[0] ||= T((e) => o("clear"), ["stop"])
1042
+ }, [d(m(P), {
1034
1043
  size: 12,
1035
1044
  "stroke-width": 2.5
1036
- })], 8, xt)
1037
- ], 10, ht));
1045
+ })], 8, Ct)
1046
+ ], 10, _t));
1038
1047
  }
1039
- }), Ct = [
1048
+ }), Tt = [
1040
1049
  "aria-label",
1041
1050
  "title",
1042
1051
  "disabled"
1043
- ], wt = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)] tpl:hover:border-[var(--tpl-primary)]", Tt = /* @__PURE__ */ C({
1052
+ ], Et = "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)]", Dt = /* @__PURE__ */ w({
1044
1053
  __name: "MergeTagInsertButton",
1045
1054
  props: { disabled: { type: Boolean } },
1046
1055
  emits: ["insert"],
1047
- setup(t) {
1048
- let { t: n } = j();
1049
- return (r, a) => (h(), p("button", {
1056
+ setup(e) {
1057
+ let { t: i } = I();
1058
+ return (a, o) => (n(), _("button", {
1050
1059
  type: "button",
1051
- class: e([wt, "tpl:mt-1.5"]),
1052
- "aria-label": v(n).mergeTag.insert,
1053
- title: v(n).mergeTag.insert,
1054
- disabled: t.disabled,
1055
- onMousedown: a[0] ||= w(() => {}, ["prevent"]),
1056
- onClick: a[1] ||= (e) => r.$emit("insert")
1057
- }, [l(v(L), {
1060
+ class: r([Et, "tpl:mt-1.5"]),
1061
+ "aria-label": m(i).mergeTag.insert,
1062
+ title: m(i).mergeTag.insert,
1063
+ disabled: e.disabled,
1064
+ onMousedown: o[0] ||= T(() => {}, ["prevent"]),
1065
+ onClick: o[1] ||= (e) => a.$emit("insert")
1066
+ }, [d(m(B), {
1058
1067
  size: 12,
1059
1068
  "stroke-width": 2
1060
- }), m(" " + i(v(n).mergeTag.insertShort), 1)], 42, Ct));
1069
+ }), v(" " + t(m(i).mergeTag.insertShort), 1)], 42, Tt));
1061
1070
  }
1062
- }), Et = [
1071
+ }), Ot = [
1063
1072
  "aria-label",
1064
1073
  "title",
1065
1074
  "disabled"
1066
- ], Dt = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)] tpl:hover:border-[var(--tpl-primary)]", Ot = /* @__PURE__ */ C({
1075
+ ], kt = "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)]", At = /* @__PURE__ */ w({
1067
1076
  __name: "LogicTagInsertButton",
1068
1077
  props: { disabled: { type: Boolean } },
1069
1078
  emits: ["insert"],
1070
- setup(t) {
1071
- let { t: n } = j();
1072
- return (r, a) => (h(), p("button", {
1079
+ setup(e) {
1080
+ let { t: i } = I();
1081
+ return (a, o) => (n(), _("button", {
1073
1082
  type: "button",
1074
- class: e([Dt, "tpl:mt-1.5"]),
1075
- "aria-label": v(n).logicTag.insert,
1076
- title: v(n).logicTag.insert,
1077
- disabled: t.disabled,
1083
+ class: r([kt, "tpl:mt-1.5"]),
1084
+ "aria-label": m(i).logicTag.insert,
1085
+ title: m(i).logicTag.insert,
1086
+ disabled: e.disabled,
1078
1087
  "data-testid": "field-insert-logic-button",
1079
- onMousedown: a[0] ||= w(() => {}, ["prevent"]),
1080
- onClick: a[1] ||= (e) => r.$emit("insert")
1081
- }, [l(v(pe), {
1088
+ onMousedown: o[0] ||= T(() => {}, ["prevent"]),
1089
+ onClick: o[1] ||= (e) => a.$emit("insert")
1090
+ }, [d(m(z), {
1082
1091
  size: 12,
1083
1092
  "stroke-width": 2
1084
- }), m(" " + i(v(n).logicTag.insertShort), 1)], 42, Et));
1093
+ }), v(" " + t(m(i).logicTag.insertShort), 1)], 42, Ot));
1085
1094
  }
1086
1095
  });
1087
- export { ot as a, Ye as c, mt as i, L as l, Tt as n, it as o, St as r, at as s, Ot as t, pe as u };
1096
+ export { ct as a, Ze as c, gt as i, B as l, Dt as n, ot as o, wt as r, st as s, At as t, z as u };