@templatical/editor 0.49.0 → 0.51.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 (378) hide show
  1. package/README.md +4 -2
  2. package/dist/AiAltTextPopover-BZQ95GXL.js +106 -0
  3. package/dist/AiAltTextReview-DoBEudnE.js +206 -0
  4. package/dist/AiChatPanel-Bs6sES3b.js +550 -0
  5. package/dist/AiHeaderMenu-BEaTazx4.js +36 -0
  6. package/dist/AiPanels-CfN7A-ZA.js +33 -0
  7. package/dist/AiRewriteMenu-C3ZfDDYy.js +276 -0
  8. package/dist/{BlockIssueBadge-BdpJwim0.js → BlockIssueBadge-CKwZ1Vgn.js} +11 -11
  9. package/dist/{BlockPreviewCanvas-D_sowkf0.js → BlockPreviewCanvas-BXNLLLYi.js} +33 -33
  10. package/dist/CloudHeaderExtras-CsJMEiyN.js +23 -0
  11. package/dist/{CloudPanels-1hwFiJ0G.js → CloudPanels-B4F5m7vy.js} +66 -85
  12. package/dist/{CollaborationNotices-BWpKzueF.js → CollaborationNotices-CNuDp7Y2.js} +19 -16
  13. package/dist/{CollaboratorBar-D87phJsw.js → CollaboratorBar-BtHPiuHq.js} +22 -22
  14. package/dist/{CommentsPanel-BUvUzO3T.js → CommentsPanel-CyCM-BvT.js} +4 -4
  15. package/dist/CommentsSidebar-Ca3DyFOX.js +500 -0
  16. package/dist/{cdn/chunks/CountdownBlock-DB4JNdqh.js → CountdownBlock-DR4Xm2-T.js} +24 -26
  17. package/dist/{CountdownToolbar-CLMIwfK7.js → CountdownToolbar-CEIMPojJ.js} +55 -55
  18. package/dist/IssuesPanel-C8nMUccy.js +360 -0
  19. package/dist/{LoadingTrack-BXOptf5g.js → LoadingTrack-B0RKQWq3.js} +2 -2
  20. package/dist/{LogicTagInsertButton-CR5E4jSG.js → LogicTagInsertButton-CqfU52CO.js} +273 -268
  21. package/dist/{cdn/chunks/MediaEditModal-DD0SZ-S3.js → MediaEditModal-DHtkZ4OU.js} +202 -186
  22. package/dist/{MediaPanels-BVXDkqtH.js → MediaPanels-CGcOB2pR.js} +4 -4
  23. package/dist/{MergeTagInput-BEw_r0PJ.js → MergeTagInput-YnEkorTZ.js} +25 -25
  24. package/dist/{MergeTagModeToggle-CJTpFmVd.js → MergeTagModeToggle-Dhb1DAcQ.js} +40 -40
  25. package/dist/MergeTagTextarea-e4lnwtqZ.js +70 -0
  26. package/dist/ParagraphEditor-B6NK0ytw.js +799 -0
  27. package/dist/{RestoreVersionDialog-BaDpy3cL.js → RestoreVersionDialog-Bq_IGOLJ.js} +21 -21
  28. package/dist/{RichTextEditorContent-CsvniFlI.js → RichTextEditorContent-AOM6fylS.js} +48 -48
  29. package/dist/{SaveBlockDialog-DzWURF_e.js → SaveBlockDialog-C8GngfQx.js} +87 -87
  30. package/dist/{cdn/chunks/SavedBlocksBrowserModal-BMtyUrUP.js → SavedBlocksBrowserModal-wnkvxpm_.js} +102 -99
  31. package/dist/{SavedBlocksPanels-B3Af8ns2.js → SavedBlocksPanels-C2s3q0pJ.js} +9 -9
  32. package/dist/{SavedBlocksPickBar-Dj11-Lqp.js → SavedBlocksPickBar-BjcTiV87.js} +13 -13
  33. package/dist/TemplateSettings-BVBWpiDU.js +237 -0
  34. package/dist/{TestEmailModal-BeRYV3eg.js → TestEmailModal-SyhO9bn3.js} +57 -57
  35. package/dist/{TestEmailPanel-B8c3fQi2.js → TestEmailPanel-BDd2Rtav.js} +4 -4
  36. package/dist/{TitleEditor-CvpNUoAp.js → TitleEditor-pxD53y_l.js} +75 -75
  37. package/dist/ToggleSwitch-D51U9cmR.js +37 -0
  38. package/dist/{Toolbar-BadDSkkF.js → Toolbar-CZSPZYbj.js} +1138 -1138
  39. package/dist/{TplModal-BZgi9Tes.js → TplModal-DCzBzicE.js} +19 -19
  40. package/dist/{VersionHistoryMenu-BRlcQ8wX.js → VersionHistoryMenu-BQeWPT85.js} +35 -35
  41. package/dist/{VersionHistoryPanels-DGkllN3a.js → VersionHistoryPanels-BBm7YbRQ.js} +5 -5
  42. package/dist/{VersionPreviewBanner-F-811aps.js → VersionPreviewBanner-DUGF0tUJ.js} +9 -9
  43. package/dist/WrapperBlock-BO619LAb.js +45 -0
  44. package/dist/aiErrors-D5UOoYOt.js +41 -0
  45. package/dist/aiImageContext-BH4Ss1h3.js +48 -0
  46. package/dist/aiRewritePreview-DLGM05Ge.js +44 -0
  47. package/dist/{blockTypeIcons-CayLluou.js → blockTypeIcons-NzaYvAI4.js} +15 -14
  48. package/dist/bundle-stats.json +8 -8
  49. package/dist/{cdn/chunks/ca-DSJwJ5ov.js → ca-C7mTzW1r.js} +130 -13
  50. package/dist/cdn/chunks/AiAltTextPopover-CQu0Q_ZX.js +107 -0
  51. package/dist/cdn/chunks/AiAltTextPopover-CQu0Q_ZX.js.map +1 -0
  52. package/dist/cdn/chunks/AiAltTextReview-CI2HbWfn.js +207 -0
  53. package/dist/cdn/chunks/AiAltTextReview-CI2HbWfn.js.map +1 -0
  54. package/dist/cdn/chunks/AiChatPanel-BYqn1bKu.js +476 -0
  55. package/dist/cdn/chunks/AiChatPanel-BYqn1bKu.js.map +1 -0
  56. package/dist/cdn/chunks/AiHeaderMenu-oldAAFyL.js +37 -0
  57. package/dist/cdn/chunks/AiHeaderMenu-oldAAFyL.js.map +1 -0
  58. package/dist/cdn/chunks/AiPanels-CIFKQv8Y.js +34 -0
  59. package/dist/cdn/chunks/AiPanels-CIFKQv8Y.js.map +1 -0
  60. package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js +208 -0
  61. package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js.map +1 -0
  62. package/dist/cdn/chunks/{BlockIssueBadge-D1VBS_6x.js → BlockIssueBadge-DAn2vsMJ.js} +13 -13
  63. package/dist/cdn/chunks/{BlockIssueBadge-D1VBS_6x.js.map → BlockIssueBadge-DAn2vsMJ.js.map} +1 -1
  64. package/dist/cdn/chunks/{BlockPreviewCanvas-m2tWRyWv.js → BlockPreviewCanvas-D0--EQkP.js} +38 -38
  65. package/dist/cdn/chunks/{BlockPreviewCanvas-m2tWRyWv.js.map → BlockPreviewCanvas-D0--EQkP.js.map} +1 -1
  66. package/dist/cdn/chunks/CloudHeaderExtras-DaUU8P8R.js +25 -0
  67. package/dist/cdn/chunks/CloudHeaderExtras-DaUU8P8R.js.map +1 -0
  68. package/dist/cdn/chunks/{CloudPanels-XufhBZYF.js → CloudPanels-C3jsxo_f.js} +52 -71
  69. package/dist/cdn/chunks/CloudPanels-C3jsxo_f.js.map +1 -0
  70. package/dist/cdn/chunks/{CollaborationNotices-CBvKEj1Q.js → CollaborationNotices-DjRI8gvs.js} +23 -20
  71. package/dist/cdn/chunks/CollaborationNotices-DjRI8gvs.js.map +1 -0
  72. package/dist/cdn/chunks/{CollaboratorBar-DWW54Bn_.js → CollaboratorBar-Dfzm6A9A.js} +20 -20
  73. package/dist/cdn/chunks/{CollaboratorBar-DWW54Bn_.js.map → CollaboratorBar-Dfzm6A9A.js.map} +1 -1
  74. package/dist/cdn/chunks/CommentsPanel-CSO79OeX.js +20 -0
  75. package/dist/cdn/chunks/{CommentsPanel-R8YLLO3v.js.map → CommentsPanel-CSO79OeX.js.map} +1 -1
  76. package/dist/cdn/chunks/CommentsSidebar-CCvplq1Z.js +470 -0
  77. package/dist/cdn/chunks/{CommentsSidebar-96NZHVq3.js.map → CommentsSidebar-CCvplq1Z.js.map} +1 -1
  78. package/dist/{CountdownBlock-DPQXWRvU.js → cdn/chunks/CountdownBlock-C6USdwk3.js} +19 -17
  79. package/dist/cdn/chunks/{CountdownBlock-DB4JNdqh.js.map → CountdownBlock-C6USdwk3.js.map} +1 -1
  80. package/dist/cdn/chunks/{CountdownToolbar-tmiTPEXm.js → CountdownToolbar-Cjud2Tos.js} +70 -70
  81. package/dist/cdn/chunks/{CountdownToolbar-tmiTPEXm.js.map → CountdownToolbar-Cjud2Tos.js.map} +1 -1
  82. package/dist/cdn/chunks/IssuesPanel-BaWHPDxZ.js +340 -0
  83. package/dist/cdn/chunks/IssuesPanel-BaWHPDxZ.js.map +1 -0
  84. package/dist/cdn/chunks/{LoadingTrack-YU44CM8X.js → LoadingTrack-BIcL4NiY.js} +2 -2
  85. package/dist/cdn/chunks/{LoadingTrack-YU44CM8X.js.map → LoadingTrack-BIcL4NiY.js.map} +1 -1
  86. package/dist/cdn/chunks/{LogicTagInsertButton-BJ2t2vxC.js → LogicTagInsertButton-CsL2JDOG.js} +367 -362
  87. package/dist/cdn/chunks/LogicTagInsertButton-CsL2JDOG.js.map +1 -0
  88. package/dist/{MediaEditModal-C_wxoUMG.js → cdn/chunks/MediaEditModal-BuHCiyMu.js} +544 -560
  89. package/dist/cdn/chunks/MediaEditModal-BuHCiyMu.js.map +1 -0
  90. package/dist/cdn/chunks/MediaPanels-DAgUf_T1.js +45 -0
  91. package/dist/cdn/chunks/{MediaPanels-CkdJ_kGp.js.map → MediaPanels-DAgUf_T1.js.map} +1 -1
  92. package/dist/cdn/chunks/{MergeTagInput-7wXX71DH.js → MergeTagInput-C8U-7LxL.js} +33 -33
  93. package/dist/cdn/chunks/{MergeTagInput-7wXX71DH.js.map → MergeTagInput-C8U-7LxL.js.map} +1 -1
  94. package/dist/cdn/chunks/{MergeTagModeToggle-r9vHH4u_.js → MergeTagModeToggle-Mm-p0A52.js} +41 -41
  95. package/dist/cdn/chunks/{MergeTagModeToggle-r9vHH4u_.js.map → MergeTagModeToggle-Mm-p0A52.js.map} +1 -1
  96. package/dist/cdn/chunks/MergeTagTextarea-DuLScsWM.js +72 -0
  97. package/dist/cdn/chunks/MergeTagTextarea-DuLScsWM.js.map +1 -0
  98. package/dist/cdn/chunks/ParagraphEditor-CqSj6Ayz.js +634 -0
  99. package/dist/cdn/chunks/ParagraphEditor-CqSj6Ayz.js.map +1 -0
  100. package/dist/cdn/chunks/{RestoreVersionDialog-C5cxBRKi.js → RestoreVersionDialog-CdA5osuA.js} +25 -25
  101. package/dist/cdn/chunks/{RestoreVersionDialog-C5cxBRKi.js.map → RestoreVersionDialog-CdA5osuA.js.map} +1 -1
  102. package/dist/cdn/chunks/{RichTextEditorContent-BfE7Bkge.js → RichTextEditorContent-Q1d2xqBT.js} +46 -46
  103. package/dist/cdn/chunks/{RichTextEditorContent-BfE7Bkge.js.map → RichTextEditorContent-Q1d2xqBT.js.map} +1 -1
  104. package/dist/cdn/chunks/{SaveBlockDialog-BKbjUnPM.js → SaveBlockDialog-CijargAy.js} +77 -77
  105. package/dist/cdn/chunks/{SaveBlockDialog-BKbjUnPM.js.map → SaveBlockDialog-CijargAy.js.map} +1 -1
  106. package/dist/cdn/chunks/SavedBlocksBrowserModal-DtOz_X5S.js +357 -0
  107. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BMtyUrUP.js.map → SavedBlocksBrowserModal-DtOz_X5S.js.map} +1 -1
  108. package/dist/cdn/chunks/SavedBlocksPanels-BowyED5h.js +38 -0
  109. package/dist/cdn/chunks/{SavedBlocksPanels-s_gxi1im.js.map → SavedBlocksPanels-BowyED5h.js.map} +1 -1
  110. package/dist/cdn/chunks/{SavedBlocksPickBar-B8WHk5mI.js → SavedBlocksPickBar-BPRaJBv3.js} +18 -18
  111. package/dist/cdn/chunks/{SavedBlocksPickBar-B8WHk5mI.js.map → SavedBlocksPickBar-BPRaJBv3.js.map} +1 -1
  112. package/dist/cdn/chunks/TemplateSettings-ByZeBO34.js +209 -0
  113. package/dist/cdn/chunks/{TemplateSettings-CtrzzQWl.js.map → TemplateSettings-ByZeBO34.js.map} +1 -1
  114. package/dist/cdn/chunks/{TestEmailModal-DuZKYMWD.js → TestEmailModal-BUVTj3Ic.js} +54 -54
  115. package/dist/cdn/chunks/{TestEmailModal-DuZKYMWD.js.map → TestEmailModal-BUVTj3Ic.js.map} +1 -1
  116. package/dist/cdn/chunks/TestEmailPanel-BxutYoWg.js +35 -0
  117. package/dist/cdn/chunks/{TestEmailPanel-DERaCdpG.js.map → TestEmailPanel-BxutYoWg.js.map} +1 -1
  118. package/dist/cdn/chunks/TitleEditor-Ccv6uoTz.js +199 -0
  119. package/dist/cdn/chunks/{TitleEditor-CEgxjtUX.js.map → TitleEditor-Ccv6uoTz.js.map} +1 -1
  120. package/dist/cdn/chunks/ToggleSwitch-Ctdmj621.js +39 -0
  121. package/dist/cdn/chunks/ToggleSwitch-Ctdmj621.js.map +1 -0
  122. package/dist/cdn/chunks/{Toolbar-GFIZQHzw.js → Toolbar-DoprRgTn.js} +986 -987
  123. package/dist/cdn/chunks/{Toolbar-GFIZQHzw.js.map → Toolbar-DoprRgTn.js.map} +1 -1
  124. package/dist/cdn/chunks/{TplModal-DDrbWJcE.js → TplModal-BXQzmsJX.js} +21 -21
  125. package/dist/cdn/chunks/{TplModal-DDrbWJcE.js.map → TplModal-BXQzmsJX.js.map} +1 -1
  126. package/dist/cdn/chunks/{VersionHistoryMenu-MlxsUmuT.js → VersionHistoryMenu-BF2fNCvq.js} +41 -41
  127. package/dist/cdn/chunks/{VersionHistoryMenu-MlxsUmuT.js.map → VersionHistoryMenu-BF2fNCvq.js.map} +1 -1
  128. package/dist/cdn/chunks/VersionHistoryPanels-Dal0Uk69.js +48 -0
  129. package/dist/cdn/chunks/{VersionHistoryPanels-DVOV8QLv.js.map → VersionHistoryPanels-Dal0Uk69.js.map} +1 -1
  130. package/dist/cdn/chunks/{VersionPreviewBanner-BQwRKc6S.js → VersionPreviewBanner-BaGcn-b1.js} +12 -12
  131. package/dist/cdn/chunks/{VersionPreviewBanner-BQwRKc6S.js.map → VersionPreviewBanner-BaGcn-b1.js.map} +1 -1
  132. package/dist/cdn/chunks/WrapperBlock-DkQJtLz0.js +47 -0
  133. package/dist/cdn/chunks/{WrapperBlock-CFuP4R0c.js.map → WrapperBlock-DkQJtLz0.js.map} +1 -1
  134. package/dist/cdn/chunks/aiErrors-D5UOoYOt.js +43 -0
  135. package/dist/cdn/chunks/aiErrors-D5UOoYOt.js.map +1 -0
  136. package/dist/cdn/chunks/aiImageContext-BH4Ss1h3.js +50 -0
  137. package/dist/cdn/chunks/aiImageContext-BH4Ss1h3.js.map +1 -0
  138. package/dist/cdn/chunks/aiRewritePreview-DLGM05Ge.js +46 -0
  139. package/dist/cdn/chunks/aiRewritePreview-DLGM05Ge.js.map +1 -0
  140. package/dist/cdn/chunks/blockTypeIcons-ikZAmd6U.js +22 -0
  141. package/dist/cdn/chunks/{blockTypeIcons-BnAd8qsP.js.map → blockTypeIcons-ikZAmd6U.js.map} +1 -1
  142. package/dist/{ca-DSJwJ5ov.js → cdn/chunks/ca-C7mTzW1r.js} +132 -11
  143. package/dist/cdn/chunks/ca-C7mTzW1r.js.map +1 -0
  144. package/dist/cdn/chunks/{cloud-CI_fgDyy.js → createCloudRuntime-DpBWhrv3.js} +489 -593
  145. package/dist/cdn/chunks/createCloudRuntime-DpBWhrv3.js.map +1 -0
  146. package/dist/cdn/chunks/de-DBOTcDj2.js +22 -0
  147. package/dist/cdn/chunks/de-DBOTcDj2.js.map +1 -0
  148. package/dist/{de-CBE6O79z.js → cdn/chunks/de-DNuYQTmS.js} +132 -11
  149. package/dist/cdn/chunks/de-DNuYQTmS.js.map +1 -0
  150. package/dist/{dist-Bv_GBr2l.js → cdn/chunks/dist-Bo8Thh8v.js} +60 -58
  151. package/dist/cdn/chunks/{dist-Doy3r07H.js.map → dist-Bo8Thh8v.js.map} +1 -1
  152. package/dist/cdn/chunks/dist-S-rLGqax.js +406 -0
  153. package/dist/cdn/chunks/{dist-DdwjXLme.js.map → dist-S-rLGqax.js.map} +1 -1
  154. package/dist/cdn/chunks/{draggable-akeQH_JP.js → draggable-DZ0gwUJ6.js} +1822 -1728
  155. package/dist/cdn/chunks/draggable-DZ0gwUJ6.js.map +1 -0
  156. package/dist/cdn/chunks/{editor-modal-HJBy9kLj.js → editor-modal-CI6EfeMd.js} +884 -884
  157. package/dist/cdn/chunks/{editor-modal-HJBy9kLj.js.map → editor-modal-CI6EfeMd.js.map} +1 -1
  158. package/dist/cdn/chunks/en-CDhWRrF_.js +22 -0
  159. package/dist/cdn/chunks/en-CDhWRrF_.js.map +1 -0
  160. package/dist/{en-CDexnk0p.js → cdn/chunks/en-CW71OK66.js} +132 -11
  161. package/dist/cdn/chunks/en-CW71OK66.js.map +1 -0
  162. package/dist/cdn/chunks/en-ifvu6oPv.js +1 -0
  163. package/dist/{es-BE42B6uN.js → cdn/chunks/es-DdK7zQfi.js} +132 -11
  164. package/dist/cdn/chunks/es-DdK7zQfi.js.map +1 -0
  165. package/dist/cdn/chunks/{extensions-koOuDeZS.js → extensions-taJTZlLK.js} +59 -59
  166. package/dist/cdn/chunks/{extensions-koOuDeZS.js.map → extensions-taJTZlLK.js.map} +1 -1
  167. package/dist/{fr-DlJFPDQR.js → cdn/chunks/fr-Dz5Bgb7-.js} +132 -11
  168. package/dist/cdn/chunks/fr-Dz5Bgb7-.js.map +1 -0
  169. package/dist/cdn/chunks/{icons-CjlNV8xD.js → icons-DNX6StSs.js} +178 -145
  170. package/dist/cdn/chunks/icons-DNX6StSs.js.map +1 -0
  171. package/dist/{ja-CUT8gkNI.js → cdn/chunks/ja-Di-zJiT8.js} +132 -11
  172. package/dist/cdn/chunks/ja-Di-zJiT8.js.map +1 -0
  173. package/dist/cdn/chunks/keys-BTpmg2Tt.js +12 -0
  174. package/dist/cdn/chunks/keys-BTpmg2Tt.js.map +1 -0
  175. package/dist/{logger-BBlvSn6q.js → cdn/chunks/logger-Tj0RPskW.js} +7 -1
  176. package/dist/cdn/chunks/logger-Tj0RPskW.js.map +1 -0
  177. package/dist/{nl-bXWqqRyS.js → cdn/chunks/nl-CvVuHYFL.js} +132 -11
  178. package/dist/cdn/chunks/{nl-bXWqqRyS.js.map → nl-CvVuHYFL.js.map} +1 -1
  179. package/dist/cdn/chunks/normalizeMergeTagMarkup-DyePIGqu.js +199 -0
  180. package/dist/cdn/chunks/normalizeMergeTagMarkup-DyePIGqu.js.map +1 -0
  181. package/dist/cdn/chunks/{preRenderCustomBlocks-DqKbdTJ8.js → preRenderCustomBlocks-Dc-QLntG.js} +4 -4
  182. package/dist/cdn/chunks/{preRenderCustomBlocks-DqKbdTJ8.js.map → preRenderCustomBlocks-Dc-QLntG.js.map} +1 -1
  183. package/dist/cdn/chunks/pt-BR-CHM-ZKvE.js +22 -0
  184. package/dist/cdn/chunks/pt-BR-CHM-ZKvE.js.map +1 -0
  185. package/dist/{pt-BR-2_H4-wlb.js → cdn/chunks/pt-BR-ZhO4vgyq.js} +132 -11
  186. package/dist/cdn/chunks/pt-BR-ZhO4vgyq.js.map +1 -0
  187. package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js +62 -0
  188. package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js.map +1 -0
  189. package/dist/cdn/chunks/socialIcons-BBvsTwCV.js +2032 -0
  190. package/dist/cdn/chunks/socialIcons-BBvsTwCV.js.map +1 -0
  191. package/dist/{dist-DBG3nh3k.js → cdn/chunks/src-BNFnxfrA.js} +552 -350
  192. package/dist/cdn/chunks/src-BNFnxfrA.js.map +1 -0
  193. package/dist/cdn/chunks/src-Bs_yxk3h.js +4392 -0
  194. package/dist/cdn/chunks/src-Bs_yxk3h.js.map +1 -0
  195. package/dist/cdn/chunks/{src-B77z1iw4.js → src-K6fw_35b.js} +113 -113
  196. package/dist/cdn/chunks/{src-B77z1iw4.js.map → src-K6fw_35b.js.map} +1 -1
  197. package/dist/cdn/chunks/{tiptap-B1RfWFzB.js → tiptap-CtVrAViq.js} +43 -43
  198. package/dist/cdn/chunks/{tiptap-B1RfWFzB.js.map → tiptap-CtVrAViq.js.map} +1 -1
  199. package/dist/cdn/chunks/{useCloudI18n-kp07GQmk.js → useCloudI18n-AVXhzbhQ.js} +4 -4
  200. package/dist/cdn/chunks/{useCloudI18n-kp07GQmk.js.map → useCloudI18n-AVXhzbhQ.js.map} +1 -1
  201. package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js +2586 -0
  202. package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js.map +1 -0
  203. package/dist/cdn/chunks/useEditorRoot-CR5GjJD6.js +10 -0
  204. package/dist/cdn/chunks/{useEditorRoot-5SBqm90x.js.map → useEditorRoot-CR5GjJD6.js.map} +1 -1
  205. package/dist/cdn/chunks/{useI18n-DEqtEgOs.js → useI18n-CbVubQhM.js} +3 -3
  206. package/dist/cdn/chunks/{useI18n-DEqtEgOs.js.map → useI18n-CbVubQhM.js.map} +1 -1
  207. package/dist/cdn/chunks/{useLogicTag-X8bc5qNl.js → useLogicTag-B49Nc53Y.js} +5 -5
  208. package/dist/cdn/chunks/{useLogicTag-X8bc5qNl.js.map → useLogicTag-B49Nc53Y.js.map} +1 -1
  209. package/dist/cdn/chunks/{useMergeTag-DFoOexIQ.js → useMergeTag-B0KryMj8.js} +5 -5
  210. package/dist/cdn/chunks/{useMergeTag-DFoOexIQ.js.map → useMergeTag-B0KryMj8.js.map} +1 -1
  211. package/dist/cdn/chunks/{usePopoverPosition-Cz9-XiXR.js → usePopoverPosition-C829ps5i.js} +4 -4
  212. package/dist/cdn/chunks/{usePopoverPosition-Cz9-XiXR.js.map → usePopoverPosition-C829ps5i.js.map} +1 -1
  213. package/dist/cdn/chunks/useScrollToBlock-CAwvulog.js +51 -0
  214. package/dist/cdn/chunks/useScrollToBlock-CAwvulog.js.map +1 -0
  215. package/dist/cdn/chunks/{withCurrentFont-D-f61ghC.js → withCurrentFont-DFPXeVfG.js} +2 -2
  216. package/dist/cdn/chunks/{withCurrentFont-D-f61ghC.js.map → withCurrentFont-DFPXeVfG.js.map} +1 -1
  217. package/dist/cdn/editor.css +1 -1
  218. package/dist/cdn/editor.js +2151 -1480
  219. package/dist/cdn/editor.js.map +1 -1
  220. package/dist/{check-DQQzkmIC.js → check-yYsp5Xpk.js} +1 -1
  221. package/dist/{chevron-down-CIF4bdon.js → chevron-down-DTmD06_j.js} +1 -1
  222. package/dist/{chevron-right-Cg7Xu-ev.js → chevron-right-BSeYZOxc.js} +1 -1
  223. package/dist/{chevron-up-Csu7ISD-.js → chevron-up-BOApwrxi.js} +1 -1
  224. package/dist/{circle-alert-YUvIJAgY.js → circle-alert-BMszY8im.js} +1 -1
  225. package/dist/{clock-CnSIGKQW.js → clock-HADxnl6-.js} +1 -1
  226. package/dist/{cloud-YUYDtdHt.js → createCloudRuntime-DVQI_ReU.js} +474 -570
  227. package/dist/{createLucideIcon-BcP1sjdp.js → createLucideIcon-0lYYH3EW.js} +6 -6
  228. package/dist/de-DBOTcDj2.js +20 -0
  229. package/dist/{cdn/chunks/de-CBE6O79z.js → de-DNuYQTmS.js} +130 -13
  230. package/dist/{cdn/chunks/dist-Doy3r07H.js → dist-C7EtxNCb.js} +49 -51
  231. package/dist/{dist-CNqjHA8e.js → dist-C_dV9QAx.js} +130 -130
  232. package/dist/{cdn/chunks/dist-DdwjXLme.js → dist-DI4_YSnG.js} +111 -110
  233. package/dist/{cdn/chunks/src-CvLTYGdO.js → dist-DtOF3bDW.js} +446 -393
  234. package/dist/{editor-modal--7_9A6j-.js → editor-modal-Bzhl-PgI.js} +832 -834
  235. package/dist/en-CDhWRrF_.js +20 -0
  236. package/dist/{cdn/chunks/en-CDexnk0p.js → en-CW71OK66.js} +130 -13
  237. package/dist/en-DwV15ltA.js +1 -0
  238. package/dist/{cdn/chunks/es-BE42B6uN.js → es-DdK7zQfi.js} +130 -13
  239. package/dist/{extensions-zwsZlWjH.js → extensions-CdyweA50.js} +57 -57
  240. package/dist/{eye-B1bua-ck.js → eye-DWkSvYpj.js} +1 -1
  241. package/dist/{cdn/chunks/fr-DlJFPDQR.js → fr-Dz5Bgb7-.js} +130 -13
  242. package/dist/image-DesWjcZ4.js +28 -0
  243. package/dist/index.d.ts +361 -24
  244. package/dist/{info-x26nGOo2.js → info-ClWJGoZy.js} +1 -1
  245. package/dist/{cdn/chunks/ja-CUT8gkNI.js → ja-Di-zJiT8.js} +130 -13
  246. package/dist/keys-Zd9KWRD1.js +10 -0
  247. package/dist/{link-CezhndyR.js → link-BqRicFTA.js} +1 -1
  248. package/dist/{list-DQqdptI0.js → list-bojQr9bn.js} +1 -1
  249. package/dist/{loader-circle-DCEeoYoi.js → loader-circle-B2B8LbUu.js} +1 -1
  250. package/dist/{cdn/chunks/logger-ByvdoAwq.js → logger-k9Nbj3Cp.js} +5 -3
  251. package/dist/{message-circle-BLGzfv_7.js → message-circle-BEuiNsyZ.js} +1 -1
  252. package/dist/{cdn/chunks/nl-bXWqqRyS.js → nl-CvVuHYFL.js} +130 -13
  253. package/dist/normalizeMergeTagMarkup-P6SUBuPv.js +197 -0
  254. package/dist/{package-D_kEQCMU.js → package-DCROB4aM.js} +1 -1
  255. package/dist/{pencil-Dct8zGLy.js → pencil-CEotCKbf.js} +1 -1
  256. package/dist/{preRenderCustomBlocks-CtKJecE-.js → preRenderCustomBlocks-D8rr61_z.js} +4 -4
  257. package/dist/pt-BR-CHM-ZKvE.js +20 -0
  258. package/dist/{cdn/chunks/pt-BR-2_H4-wlb.js → pt-BR-ZhO4vgyq.js} +130 -13
  259. package/dist/{refresh-cw-tGMRDxr8.js → refresh-cw-C6M2mHNC.js} +12 -2
  260. package/dist/{runtime-dom.esm-bundler-DYn1z2Xf.js → runtime-dom.esm-bundler-B8WCZWUm.js} +134 -134
  261. package/dist/sanitizeRichTextHtml-DeISfLFr.js +60 -0
  262. package/dist/{search-Bm2cCQpe.js → search-Cy99zPYf.js} +1 -1
  263. package/dist/{send-sVLaKZ7f.js → send-BDLJFsf3.js} +1 -1
  264. package/dist/{smartphone-B2W81p02.js → smartphone-CVvQaNA4.js} +1 -1
  265. package/dist/{cdn/chunks/socialIcons-CkZSYpoG.js → socialIcons-Dd-jRiVe.js} +688 -693
  266. package/dist/{sparkles-a1qkBZ8X.js → sparkles-Ce0Qz0ox.js} +1 -1
  267. package/dist/square-BWlolnXe.js +15 -0
  268. package/dist/style.css +1 -1
  269. package/dist/templatical-editor.js +2114 -1422
  270. package/dist/{text-align-start-CTuwQ5YW.js → text-align-start-D1V5gPTy.js} +1 -1
  271. package/dist/{trash-I3D2peFQ.js → trash-CZfiUFmw.js} +1 -1
  272. package/dist/{triangle-alert-CenxmLRE.js → triangle-alert-CFDzyFC7.js} +1 -1
  273. package/dist/upload-BJfvdIrD.js +36 -0
  274. package/dist/{useCloudI18n-CGVEZV3o.js → useCloudI18n-Dcjua65H.js} +5 -5
  275. package/dist/{useEditorCore-DRbMRe8F.js → useEditorCore-BTLeAVlM.js} +1463 -1499
  276. package/dist/{useEditorRoot-BVm2-1N8.js → useEditorRoot-DUy67lJu.js} +2 -2
  277. package/dist/{useI18n-CSh4gO5c.js → useI18n-BdoY7xDE.js} +4 -4
  278. package/dist/{useLogicTag-zcI6BWIf.js → useLogicTag-DKLZ1T9H.js} +3 -3
  279. package/dist/{useMergeTag-C-iBLlp0.js → useMergeTag-Bhdx7AKk.js} +3 -3
  280. package/dist/{usePopoverPosition-CMcsMBtK.js → usePopoverPosition-BZea45XK.js} +2 -2
  281. package/dist/useScrollToBlock-FmNMALM_.js +74 -0
  282. package/dist/{vue.runtime.esm-bundler-DV0Wx4r_.js → vue.runtime.esm-bundler-DgFJ6GPG.js} +1428 -1332
  283. package/dist/{withCurrentFont-D62njRLu.js → withCurrentFont-BATJHNve.js} +1 -1
  284. package/dist/{x-KFQ4S-Kz.js → x-CZ0Js0hA.js} +1 -1
  285. package/package.json +14 -12
  286. package/dist/AiChatSidebar-CdjTb9ej.js +0 -230
  287. package/dist/AiFeatureMenu-DKm7VYCs.js +0 -57
  288. package/dist/CloudHeaderExtras-CI8RR9hG.js +0 -55
  289. package/dist/CommentsSidebar-J65znlrH.js +0 -500
  290. package/dist/DesignReferenceSidebar-BTwCFgz8.js +0 -279
  291. package/dist/IssuesPanel-DeeVsfG7.js +0 -117
  292. package/dist/ParagraphEditor-zLV44z-R.js +0 -797
  293. package/dist/SavedBlocksBrowserModal-B8DCFW7t.js +0 -360
  294. package/dist/TemplateScoringPanel-Ba9sgvjS.js +0 -273
  295. package/dist/TemplateSettings-Cu5X9DgA.js +0 -246
  296. package/dist/ToggleSwitch-DHweVJOr.js +0 -102
  297. package/dist/WrapperBlock-DiiaxpMb.js +0 -45
  298. package/dist/cdn/chunks/AiChatSidebar-yXJ85Zcg.js +0 -205
  299. package/dist/cdn/chunks/AiChatSidebar-yXJ85Zcg.js.map +0 -1
  300. package/dist/cdn/chunks/AiFeatureMenu-4ydjrhsQ.js +0 -57
  301. package/dist/cdn/chunks/AiFeatureMenu-4ydjrhsQ.js.map +0 -1
  302. package/dist/cdn/chunks/CloudHeaderExtras-DEkRww7n.js +0 -56
  303. package/dist/cdn/chunks/CloudHeaderExtras-DEkRww7n.js.map +0 -1
  304. package/dist/cdn/chunks/CloudPanels-XufhBZYF.js.map +0 -1
  305. package/dist/cdn/chunks/CollaborationNotices-CBvKEj1Q.js.map +0 -1
  306. package/dist/cdn/chunks/CommentsPanel-R8YLLO3v.js +0 -20
  307. package/dist/cdn/chunks/CommentsSidebar-96NZHVq3.js +0 -470
  308. package/dist/cdn/chunks/DesignReferenceSidebar-D14IIu_P.js +0 -229
  309. package/dist/cdn/chunks/DesignReferenceSidebar-D14IIu_P.js.map +0 -1
  310. package/dist/cdn/chunks/IssuesPanel-BoPiCLGc.js +0 -100
  311. package/dist/cdn/chunks/IssuesPanel-BoPiCLGc.js.map +0 -1
  312. package/dist/cdn/chunks/LogicTagInsertButton-BJ2t2vxC.js.map +0 -1
  313. package/dist/cdn/chunks/MediaEditModal-DD0SZ-S3.js.map +0 -1
  314. package/dist/cdn/chunks/MediaPanels-CkdJ_kGp.js +0 -45
  315. package/dist/cdn/chunks/ParagraphEditor-CJQjRHXV.js +0 -632
  316. package/dist/cdn/chunks/ParagraphEditor-CJQjRHXV.js.map +0 -1
  317. package/dist/cdn/chunks/SavedBlocksPanels-s_gxi1im.js +0 -38
  318. package/dist/cdn/chunks/TemplateScoringPanel-BBPnHILC.js +0 -237
  319. package/dist/cdn/chunks/TemplateScoringPanel-BBPnHILC.js.map +0 -1
  320. package/dist/cdn/chunks/TemplateSettings-CtrzzQWl.js +0 -208
  321. package/dist/cdn/chunks/TestEmailPanel-DERaCdpG.js +0 -35
  322. package/dist/cdn/chunks/TitleEditor-CEgxjtUX.js +0 -199
  323. package/dist/cdn/chunks/ToggleSwitch-DGQ7iRc-.js +0 -104
  324. package/dist/cdn/chunks/ToggleSwitch-DGQ7iRc-.js.map +0 -1
  325. package/dist/cdn/chunks/VersionHistoryPanels-DVOV8QLv.js +0 -48
  326. package/dist/cdn/chunks/WrapperBlock-CFuP4R0c.js +0 -47
  327. package/dist/cdn/chunks/blockTypeIcons-BnAd8qsP.js +0 -22
  328. package/dist/cdn/chunks/ca-DSJwJ5ov.js.map +0 -1
  329. package/dist/cdn/chunks/cloud-CI_fgDyy.js.map +0 -1
  330. package/dist/cdn/chunks/createCloudRuntime-DiYCJ21w.js +0 -358
  331. package/dist/cdn/chunks/createCloudRuntime-DiYCJ21w.js.map +0 -1
  332. package/dist/cdn/chunks/de-CBE6O79z.js.map +0 -1
  333. package/dist/cdn/chunks/de-D_atmUVB.js +0 -89
  334. package/dist/cdn/chunks/de-D_atmUVB.js.map +0 -1
  335. package/dist/cdn/chunks/draggable-akeQH_JP.js.map +0 -1
  336. package/dist/cdn/chunks/en-CDexnk0p.js.map +0 -1
  337. package/dist/cdn/chunks/en-DhJLnaBx.js +0 -89
  338. package/dist/cdn/chunks/en-DhJLnaBx.js.map +0 -1
  339. package/dist/cdn/chunks/en-Ve-PWSXu.js +0 -1
  340. package/dist/cdn/chunks/es-BE42B6uN.js.map +0 -1
  341. package/dist/cdn/chunks/fr-DlJFPDQR.js.map +0 -1
  342. package/dist/cdn/chunks/icons-CjlNV8xD.js.map +0 -1
  343. package/dist/cdn/chunks/ja-CUT8gkNI.js.map +0 -1
  344. package/dist/cdn/chunks/keys-UAWhQ3zW.js +0 -12
  345. package/dist/cdn/chunks/keys-UAWhQ3zW.js.map +0 -1
  346. package/dist/cdn/chunks/logger-ByvdoAwq.js.map +0 -1
  347. package/dist/cdn/chunks/pt-BR-2_H4-wlb.js.map +0 -1
  348. package/dist/cdn/chunks/pt-BR-BphMoUTw.js +0 -89
  349. package/dist/cdn/chunks/pt-BR-BphMoUTw.js.map +0 -1
  350. package/dist/cdn/chunks/socialIcons-CkZSYpoG.js.map +0 -1
  351. package/dist/cdn/chunks/src-B1e5SSYP.js +0 -1272
  352. package/dist/cdn/chunks/src-B1e5SSYP.js.map +0 -1
  353. package/dist/cdn/chunks/src-CvLTYGdO.js.map +0 -1
  354. package/dist/cdn/chunks/timeouts-o5Y9BuqI.js +0 -6
  355. package/dist/cdn/chunks/timeouts-o5Y9BuqI.js.map +0 -1
  356. package/dist/cdn/chunks/useAliveFlag-PuXh83UK.js +0 -12
  357. package/dist/cdn/chunks/useAliveFlag-PuXh83UK.js.map +0 -1
  358. package/dist/cdn/chunks/useEditorCore-DpCFvHg_.js +0 -2623
  359. package/dist/cdn/chunks/useEditorCore-DpCFvHg_.js.map +0 -1
  360. package/dist/cdn/chunks/useEditorRoot-5SBqm90x.js +0 -10
  361. package/dist/cdn/chunks/useScrollToBlock-MNzurEZV.js +0 -21
  362. package/dist/cdn/chunks/useScrollToBlock-MNzurEZV.js.map +0 -1
  363. package/dist/copy-CUC43md_.js +0 -19
  364. package/dist/createCloudRuntime-BMDRjL0k.js +0 -356
  365. package/dist/de-D_atmUVB.js +0 -87
  366. package/dist/dist-CCqn-RqE.js +0 -407
  367. package/dist/en-BHCMzqib.js +0 -1
  368. package/dist/en-DhJLnaBx.js +0 -87
  369. package/dist/image-up-BqiO7KCO.js +0 -27
  370. package/dist/keys-BymCnLHD.js +0 -10
  371. package/dist/plus-BDd0gTEm.js +0 -14
  372. package/dist/pt-BR-BphMoUTw.js +0 -87
  373. package/dist/shield-check-YhsbXfQc.js +0 -14
  374. package/dist/socialIcons-Bwv-49EB.js +0 -2167
  375. package/dist/timeouts-o5Y9BuqI.js +0 -4
  376. package/dist/upload-uU2cK0Ce.js +0 -21
  377. package/dist/useAliveFlag-BjP0Gxza.js +0 -10
  378. package/dist/useScrollToBlock-CdCQK9QQ.js +0 -47
@@ -1,15 +1,15 @@
1
- import { A as e, At as t, B as n, E as r, J as i, K as a, M as o, S as s, W as c, Z as l, at as u, b as d, c as f, d as p, g as m, h, i as g, jt as _, kt as v, l as y, r as b, s as x, u as S, v as C } from "./vue.runtime.esm-bundler-DV0Wx4r_.js";
2
- import { c as w, n as T, s as ee, t as te } from "./runtime-dom.esm-bundler-DYn1z2Xf.js";
3
- import { X as E, Z as D, q as O, tt as k } from "./dist-DBG3nh3k.js";
4
- import { t as ne } from "./dist-CCqn-RqE.js";
5
- import { J as re, Y as A, Z as ie, d as ae } from "./keys-BymCnLHD.js";
6
- import { t as j } from "./useI18n-CSh4gO5c.js";
7
- import { a as M, i as oe, n as se, o as ce, r as le, t as ue } from "./usePopoverPosition-CMcsMBtK.js";
8
- import { t as N } from "./createLucideIcon-BcP1sjdp.js";
9
- import { t as P } from "./pencil-Dct8zGLy.js";
10
- import { t as de } from "./x-KFQ4S-Kz.js";
11
- import { t as F } from "./useMergeTag-C-iBLlp0.js";
12
- import { t as I } from "./useLogicTag-zcI6BWIf.js";
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-DgFJ6GPG.js";
2
+ import { c as w, n as T, s as ee, t as te } from "./runtime-dom.esm-bundler-B8WCZWUm.js";
3
+ import { J as E, Q as D, Z as O, rt as k } from "./dist-DtOF3bDW.js";
4
+ import { t as ne } from "./dist-DI4_YSnG.js";
5
+ import { J as re, Y as A, Z as ie, d as ae } from "./keys-Zd9KWRD1.js";
6
+ import { t as j } from "./useI18n-BdoY7xDE.js";
7
+ import { a as M, i as oe, n as se, o as ce, r as le, t as ue } from "./usePopoverPosition-BZea45XK.js";
8
+ import { t as N } from "./createLucideIcon-0lYYH3EW.js";
9
+ import { t as P } from "./pencil-CEotCKbf.js";
10
+ import { t as de } from "./x-CZ0Js0hA.js";
11
+ import { t as F } from "./useMergeTag-Bhdx7AKk.js";
12
+ import { t as I } from "./useLogicTag-DKLZ1T9H.js";
13
13
  import { u as fe } from "./styleConstants-v1dNKgJf.js";
14
14
  var pe = N({
15
15
  name: "braces",
@@ -345,23 +345,23 @@ var Ie = [
345
345
  }
346
346
  },
347
347
  emits: ["update:modelValue"],
348
- setup(r, { emit: i }) {
349
- let a = r, c = i, { t: d } = j(), C = l(!1), T = l(), E = l(), D = l(!1);
348
+ setup(n, { emit: r }) {
349
+ let c = n, y = r, { t: S } = j(), C = o(!1), T = o(), E = o(), D = o(!1);
350
350
  ne(T, () => {
351
351
  C.value = !1;
352
352
  }, { ignore: [E] });
353
- let O = x(() => !a.modelValue), k = x(() => a.modelValue.trim().toLowerCase() === "transparent"), A = x(() => oe(a.modelValue)), N = x(() => (a.modelValue ? M(a.modelValue) : null) || (M(a.seedColor) ?? "#ffffff")), P = x(() => !a.disabled && !O.value), F = s(ae, ce), I = x(() => [...new Set(a.presets ?? F.presets)]), pe = x(() => a.allowCustom ?? F.allowCustom), L = x(() => I.value.length > 0), R = x(() => pe.value || !L.value), z = x(() => le(a.modelValue));
353
+ 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));
354
354
  function B(e) {
355
355
  return z.value !== "" && le(e) === z.value;
356
356
  }
357
357
  function V(e) {
358
- c("update:modelValue", e);
358
+ y("update:modelValue", e);
359
359
  }
360
- let H = x(() => L.value && !R.value);
360
+ let H = d(() => L.value && !R.value);
361
361
  function U(e) {
362
362
  return H.value ? e + 1 : e;
363
363
  }
364
- let W = x(() => {
364
+ let W = d(() => {
365
365
  if (H.value && O.value) return 0;
366
366
  let e = I.value.findIndex((e) => B(e));
367
367
  return e === -1 ? 0 : U(e);
@@ -383,29 +383,29 @@ var Ie = [
383
383
  i !== -1 && (n[(i + (e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : -1) + n.length) % n.length]?.focus(), e.preventDefault());
384
384
  }
385
385
  function ge(e) {
386
- D.value = !0, c("update:modelValue", e.detail.value);
386
+ D.value = !0, y("update:modelValue", e.detail.value);
387
387
  }
388
388
  function _e() {
389
389
  D.value = !1;
390
390
  }
391
391
  function ve() {
392
- !D.value && O.value && c("update:modelValue", N.value);
392
+ !D.value && O.value && y("update:modelValue", N.value);
393
393
  }
394
394
  function K(e) {
395
- c("update:modelValue", e.target.value);
395
+ y("update:modelValue", e.target.value);
396
396
  }
397
397
  function q() {
398
- c("update:modelValue", "");
398
+ y("update:modelValue", "");
399
399
  }
400
400
  function J() {
401
- c("update:modelValue", "transparent");
401
+ y("update:modelValue", "transparent");
402
402
  }
403
- let Y = se(), { toLocal: X } = ue(), ye = s(re, null), be = s(ie, null), Z = l({
403
+ let Y = se(), { toLocal: X } = ue(), ye = t(re, null), be = t(ie, null), Z = o({
404
404
  top: 0,
405
405
  left: 0
406
406
  });
407
407
  function xe() {
408
- if (!a.disabled) {
408
+ if (!c.disabled) {
409
409
  if (!C.value) {
410
410
  let e = E.value?.getBoundingClientRect();
411
411
  if (e) {
@@ -419,53 +419,53 @@ var Ie = [
419
419
  C.value = !C.value;
420
420
  }
421
421
  }
422
- return (i, a) => (e(), p("div", { class: v(["tpl:flex tpl:items-center tpl:gap-2 tpl:relative", r.disabled && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
423
- f("button", {
422
+ 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"]) }, [
423
+ _("button", {
424
424
  ref_key: "swatchRef",
425
425
  ref: E,
426
426
  type: "button",
427
- disabled: r.disabled,
428
- "aria-label": r.ariaLabel || u(d).colorPicker.pickColor,
429
- title: r.ariaLabel || void 0,
427
+ disabled: n.disabled,
428
+ "aria-label": n.ariaLabel || v(S).colorPicker.pickColor,
429
+ title: n.ariaLabel || void 0,
430
430
  "aria-expanded": C.value,
431
- class: v([
431
+ class: e([
432
432
  "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)]",
433
- r.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer",
434
- C.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !r.disabled && "tpl:hover:border-[var(--tpl-text-dim)]",
435
- r.size === "sm" ? "tpl:size-8" : "tpl:size-10"
433
+ n.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer",
434
+ C.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !n.disabled && "tpl:hover:border-[var(--tpl-text-dim)]",
435
+ n.size === "sm" ? "tpl:size-8" : "tpl:size-10"
436
436
  ]),
437
437
  onClick: xe
438
- }, [f("span", {
439
- class: v(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", {
438
+ }, [_("span", {
439
+ class: e(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", {
440
440
  "tpl-color-swatch-empty": O.value,
441
441
  "tpl-color-swatch-transparent": k.value
442
442
  }]),
443
- style: t(O.value || k.value ? void 0 : { backgroundColor: A.value })
443
+ style: g(O.value || k.value ? void 0 : { backgroundColor: A.value })
444
444
  }, null, 6)], 10, Ie),
445
- !r.swatchOnly && R.value ? (e(), p("div", Le, [f("input", {
445
+ !n.swatchOnly && R.value ? (h(), p("div", Le, [_("input", {
446
446
  type: "text",
447
- class: v([u(fe), "tpl:w-full"]),
448
- style: t(P.value ? { paddingRight: "2.25rem" } : void 0),
447
+ class: e([v(fe), "tpl:w-full"]),
448
+ style: g(P.value ? { paddingRight: "2.25rem" } : void 0),
449
449
  value: A.value,
450
- placeholder: r.placeholder || u(d).colorPicker.notSet,
451
- disabled: r.disabled,
452
- "aria-label": u(d).colorPicker.hexValue,
450
+ placeholder: n.placeholder || v(S).colorPicker.notSet,
451
+ disabled: n.disabled,
452
+ "aria-label": v(S).colorPicker.hexValue,
453
453
  onInput: K
454
- }, null, 46, Re), P.value ? (e(), p("button", {
454
+ }, null, 46, Re), P.value ? (h(), p("button", {
455
455
  key: 0,
456
456
  type: "button",
457
- "aria-label": u(d).colorPicker.clear,
458
- title: u(d).colorPicker.clear,
457
+ "aria-label": v(S).colorPicker.clear,
458
+ title: v(S).colorPicker.clear,
459
459
  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)]",
460
460
  onClick: q
461
- }, [m(u(de), {
461
+ }, [l(v(de), {
462
462
  size: 14,
463
463
  "stroke-width": 1.5
464
- })], 8, ze)) : S("", !0)])) : S("", !0),
465
- (e(), y(g, {
466
- to: u(Y),
467
- disabled: !u(Y)
468
- }, [m(te, {
464
+ })], 8, ze)) : f("", !0)])) : f("", !0),
465
+ (h(), x(u, {
466
+ to: v(Y),
467
+ disabled: !v(Y)
468
+ }, [l(te, {
469
469
  "enter-active-class": "tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
470
470
  "enter-from-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1",
471
471
  "enter-to-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
@@ -473,87 +473,87 @@ var Ie = [
473
473
  "leave-from-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
474
474
  "leave-to-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1"
475
475
  }, {
476
- default: n(() => [C.value ? (e(), p("div", {
476
+ default: s(() => [C.value ? (h(), p("div", {
477
477
  key: 0,
478
478
  ref_key: "popoverRef",
479
479
  ref: T,
480
- "data-tpl-theme": u(be),
480
+ "data-tpl-theme": v(be),
481
481
  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)]",
482
- style: t({
482
+ style: g({
483
483
  top: `${Z.value.top}px`,
484
484
  left: `${Z.value.left}px`,
485
- ...u(ye)
485
+ ...v(ye)
486
486
  })
487
487
  }, [
488
- r.allowTransparent ? (e(), p("button", {
488
+ n.allowTransparent ? (h(), p("button", {
489
489
  key: 0,
490
490
  type: "button",
491
491
  "data-testid": "color-picker-transparent",
492
492
  "aria-pressed": k.value,
493
- "aria-label": u(d).colorPicker.transparent,
494
- title: u(d).colorPicker.transparent,
495
- class: v(["tpl:mb-2 tpl:flex tpl:w-full tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2 tpl:py-1 tpl:text-left tpl:text-xs tpl:text-[var(--tpl-text)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)]", 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)]"]),
493
+ "aria-label": v(S).colorPicker.transparent,
494
+ title: v(S).colorPicker.transparent,
495
+ 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)]"]),
496
496
  onClick: J
497
- }, [a[2] ||= f("span", { class: "tpl-color-swatch-transparent tpl:size-4 tpl:shrink-0 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)]" }, null, -1), h(" " + _(u(d).colorPicker.transparent), 1)], 10, Ve)) : S("", !0),
498
- L.value ? (e(), p("div", {
497
+ }, [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),
498
+ L.value ? (h(), p("div", {
499
499
  key: 1,
500
500
  role: "radiogroup",
501
- "aria-label": u(d).colorPicker.presetColors,
502
- class: v(["tpl:flex tpl:flex-wrap tpl:gap-1.5", R.value && "tpl:mb-2"]),
501
+ "aria-label": v(S).colorPicker.presetColors,
502
+ class: e(["tpl:flex tpl:flex-wrap tpl:gap-1.5", R.value && "tpl:mb-2"]),
503
503
  onKeydown: he
504
- }, [H.value ? (e(), p("button", {
504
+ }, [H.value ? (h(), p("button", {
505
505
  key: 0,
506
506
  type: "button",
507
507
  role: "radio",
508
- "aria-label": u(d).colorPicker.clear,
509
- title: u(d).colorPicker.clear,
508
+ "aria-label": v(S).colorPicker.clear,
509
+ title: v(S).colorPicker.clear,
510
510
  "aria-checked": O.value,
511
511
  tabindex: me(),
512
- class: v(["tpl-color-swatch-empty tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", 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
+ 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)]"]),
513
513
  onClick: q
514
- }, null, 10, Ue)) : S("", !0), (e(!0), p(b, null, o(I.value, (n, r) => (e(), p("button", {
515
- key: n,
514
+ }, null, 10, Ue)) : f("", !0), (h(!0), p(b, null, a(I.value, (t, n) => (h(), p("button", {
515
+ key: t,
516
516
  type: "button",
517
517
  role: "radio",
518
- "aria-label": n,
519
- title: n,
520
- "aria-checked": B(n),
521
- tabindex: G(r),
522
- style: t({ backgroundColor: n }),
523
- class: v(["tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", B(n) ? "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)]"]),
524
- onClick: (e) => V(n)
525
- }, null, 14, We))), 128))], 42, He)) : S("", !0),
526
- R.value ? (e(), p("hex-color-picker", {
518
+ "aria-label": t,
519
+ title: t,
520
+ "aria-checked": B(t),
521
+ tabindex: G(n),
522
+ style: g({ backgroundColor: t }),
523
+ 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)]"]),
524
+ onClick: (e) => V(t)
525
+ }, null, 14, We))), 128))], 42, He)) : f("", !0),
526
+ R.value ? (h(), p("hex-color-picker", {
527
527
  key: 2,
528
528
  color: N.value,
529
- "aria-label": u(d).colorPicker.pickColor,
529
+ "aria-label": v(S).colorPicker.pickColor,
530
530
  onColorChanged: ge,
531
531
  onPointerdown: _e,
532
532
  onPointerup: ve,
533
- onKeydown: a[0] ||= ee((e) => C.value = !1, ["escape"])
534
- }, null, 40, Ge)) : S("", !0),
535
- r.swatchOnly && R.value ? (e(), p("div", Ke, [f("input", {
533
+ onKeydown: r[0] ||= ee((e) => C.value = !1, ["escape"])
534
+ }, null, 40, Ge)) : f("", !0),
535
+ n.swatchOnly && R.value ? (h(), p("div", Ke, [_("input", {
536
536
  type: "text",
537
- class: v([u(fe), "tpl:w-full"]),
538
- style: t(P.value ? { paddingRight: "2.25rem" } : void 0),
537
+ class: e([v(fe), "tpl:w-full"]),
538
+ style: g(P.value ? { paddingRight: "2.25rem" } : void 0),
539
539
  value: A.value,
540
- placeholder: r.placeholder || u(d).colorPicker.notSet,
541
- disabled: r.disabled,
542
- "aria-label": u(d).colorPicker.hexValue,
540
+ placeholder: n.placeholder || v(S).colorPicker.notSet,
541
+ disabled: n.disabled,
542
+ "aria-label": v(S).colorPicker.hexValue,
543
543
  onChange: K,
544
- onKeydown: a[1] ||= ee(w((e) => e.target.blur(), ["prevent"]), ["enter"])
545
- }, null, 46, qe), P.value ? (e(), p("button", {
544
+ onKeydown: r[1] ||= ee(w((e) => e.target.blur(), ["prevent"]), ["enter"])
545
+ }, null, 46, qe), P.value ? (h(), p("button", {
546
546
  key: 0,
547
547
  type: "button",
548
- "aria-label": u(d).colorPicker.clear,
549
- title: u(d).colorPicker.clear,
548
+ "aria-label": v(S).colorPicker.clear,
549
+ title: v(S).colorPicker.clear,
550
550
  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)]",
551
551
  onClick: q
552
- }, [m(u(de), {
552
+ }, [l(v(de), {
553
553
  size: 14,
554
554
  "stroke-width": 1.5
555
- })], 8, Je)) : S("", !0)])) : S("", !0)
556
- ], 12, Be)) : S("", !0)]),
555
+ })], 8, Je)) : f("", !0)])) : f("", !0)
556
+ ], 12, Be)) : f("", !0)]),
557
557
  _: 1
558
558
  })], 8, ["to", "disabled"]))
559
559
  ], 2));
@@ -583,23 +583,23 @@ var Ie = [
583
583
  function r(e) {
584
584
  return n.listId ? `${n.listId}-opt-${e}` : void 0;
585
585
  }
586
- return (n, i) => (e(), p("div", {
586
+ return (n, o) => (h(), p("div", {
587
587
  id: t.listId,
588
588
  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)]",
589
589
  role: "listbox",
590
590
  "data-testid": "merge-tag-suggestion-list"
591
- }, [t.items.length === 0 ? (e(), p("div", Ze, _(t.emptyText), 1)) : S("", !0), (e(!0), p(b, null, o(t.items, (i, a) => (e(), p("button", {
592
- key: i.value,
593
- id: r(a),
591
+ }, [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", {
592
+ key: a.value,
593
+ id: r(o),
594
594
  type: "button",
595
595
  role: "option",
596
- "aria-selected": a === t.selectedIndex,
597
- "data-selected": a === t.selectedIndex ? "true" : "false",
598
- "data-merge-tag-value": i.value,
599
- class: v(["tpl:flex tpl:w-full tpl:flex-col tpl:items-start tpl:gap-0.5 tpl:px-3 tpl:py-1.5 tpl:text-left tpl:text-xs tpl:transition-colors", a === 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)]"]),
600
- onMousedown: w((e) => n.$emit("select", i), ["prevent", "stop"]),
601
- onMousemove: (e) => a !== t.selectedIndex && n.$emit("hover", a)
602
- }, [f("span", $e, _(i.label), 1), f("span", et, _(i.value), 1)], 42, Qe))), 128))], 8, Xe));
596
+ "aria-selected": o === t.selectedIndex,
597
+ "data-selected": o === t.selectedIndex ? "true" : "false",
598
+ "data-merge-tag-value": a.value,
599
+ 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)]"]),
600
+ onMousedown: w((e) => n.$emit("select", a), ["prevent", "stop"]),
601
+ onMousemove: (e) => o !== t.selectedIndex && n.$emit("hover", o)
602
+ }, [_("span", $e, i(a.label), 1), _("span", et, i(a.value), 1)], 42, Qe))), 128))], 8, Xe));
603
603
  }
604
604
  }), nt = 10, rt = 0;
605
605
  function it(e, t) {
@@ -613,16 +613,16 @@ function at(e, t, n, r) {
613
613
  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;
614
614
  }
615
615
  function ot(e, t) {
616
- let n = null, r = null, i = null, a = l([]), o = l(0), s = null, c = `tpl-merge-tag-suggestion-${++rt}`, u = null, f = [], p = null;
617
- function m() {
618
- y(u?.() ?? null);
616
+ 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;
617
+ function p() {
618
+ v(u?.() ?? null);
619
619
  }
620
- function h() {
621
- m(), p !== null && cancelAnimationFrame(p), p = requestAnimationFrame(() => {
622
- p = null, m();
620
+ function m() {
621
+ p(), f !== null && cancelAnimationFrame(f), f = requestAnimationFrame(() => {
622
+ f = null, p();
623
623
  });
624
624
  }
625
- function g(e) {
625
+ function h(e) {
626
626
  let t = [], n = e?.parentElement ?? null;
627
627
  for (; n && n !== document.body && n !== document.documentElement;) {
628
628
  let e = window.getComputedStyle(n), r = e.overflow + e.overflowX + e.overflowY;
@@ -630,19 +630,19 @@ function ot(e, t) {
630
630
  }
631
631
  return t;
632
632
  }
633
- function _(e) {
634
- f = [window, ...g(e)];
635
- for (let e of f) e.addEventListener("scroll", m, {
633
+ function g(e) {
634
+ d = [window, ...h(e)];
635
+ for (let e of d) e.addEventListener("scroll", p, {
636
636
  passive: !0,
637
637
  capture: !0
638
638
  });
639
- window.addEventListener("resize", m, { passive: !0 });
639
+ window.addEventListener("resize", p, { passive: !0 });
640
640
  }
641
- function v() {
642
- for (let e of f) e.removeEventListener("scroll", m, { capture: !0 });
643
- window.removeEventListener("resize", m), f = [];
641
+ function _() {
642
+ for (let e of d) e.removeEventListener("scroll", p, { capture: !0 });
643
+ window.removeEventListener("resize", p), d = [];
644
644
  }
645
- function y(e) {
645
+ function v(e) {
646
646
  if (!r || !e || e.bottom < 0 || e.top > window.innerHeight) return;
647
647
  r.style.position = "absolute", r.style.zIndex = "9999";
648
648
  let t = r.offsetParent?.getBoundingClientRect(), n = t?.top ?? 0, i = t?.left ?? 0;
@@ -653,7 +653,7 @@ function ot(e, t) {
653
653
  r.style.top = `${t - n}px`;
654
654
  }
655
655
  }
656
- function b(e, t) {
656
+ function y(e, t) {
657
657
  let n = t?.closest("[data-tpl-theme]");
658
658
  if (!n) return;
659
659
  let r = n.getAttribute("data-tpl-theme");
@@ -665,60 +665,65 @@ function ot(e, t) {
665
665
  }
666
666
  e.style.fontFamily = i.fontFamily, e.style.fontSize = i.fontSize, e.style.lineHeight = i.lineHeight;
667
667
  }
668
- function x(e) {
669
- i && (e ? (i.setAttribute("role", "combobox"), i.setAttribute("aria-haspopup", "listbox"), i.setAttribute("aria-expanded", "true"), i.setAttribute("aria-controls", c)) : (i.removeAttribute("aria-expanded"), i.removeAttribute("aria-controls"), i.removeAttribute("aria-activedescendant"), i.removeAttribute("aria-haspopup"), i.removeAttribute("role")));
668
+ function b(e) {
669
+ 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")));
670
670
  }
671
- function S() {
672
- i && (a.value.length === 0 ? i.removeAttribute("aria-activedescendant") : i.setAttribute("aria-activedescendant", `${c}-opt-${o.value}`));
671
+ function x() {
672
+ i && (a.value.length === 0 ? i.removeAttribute("aria-activedescendant") : i.setAttribute("aria-activedescendant", `${l}-opt-${s.value}`));
673
673
  }
674
674
  function C(e) {
675
- s?.(e);
675
+ c?.(e);
676
676
  }
677
677
  return {
678
- open: ({ items: l, getRect: f, anchorEl: p, onCommand: m }) => {
679
- a.value = l, o.value = 0, s = m, r = document.createElement("div"), r.setAttribute("data-testid", "merge-tag-suggestion-popup"), i = p, b(r, p), (t?.value ?? document.body).appendChild(r), n = T({ render() {
680
- return d(tt, {
678
+ open: ({ items: o, getRect: d, anchorEl: f, onCommand: p }) => {
679
+ 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() {
680
+ return S(tt, {
681
681
  items: a.value,
682
- selectedIndex: o.value,
682
+ selectedIndex: s.value,
683
683
  emptyText: e,
684
- listId: c,
684
+ listId: l,
685
685
  onSelect: (e) => C(e),
686
686
  onHover: (e) => {
687
- o.value = e, S();
687
+ s.value = e, x();
688
688
  }
689
689
  });
690
- } }), n.mount(r), x(!0), S(), u = f, h(), _(p);
690
+ } }), n.mount(r), b(!0), x(), u = d, m(), g(f);
691
691
  },
692
692
  update: ({ items: e, getRect: t, onCommand: n }) => {
693
- a.value = e, o.value >= e.length && (o.value = 0), s = n, S(), u = t, h();
693
+ a.value = e, s.value >= e.length && (s.value = 0), c = n, x(), u = t, m();
694
694
  },
695
695
  handleKeyDown: (e) => {
696
- let t = at(e, a.value, o, C);
697
- return t && S(), t;
696
+ let t = at(e, a.value, s, C);
697
+ return t && x(), t;
698
698
  },
699
699
  close: () => {
700
- r !== null && (p !== null && (cancelAnimationFrame(p), p = null), v(), x(!1), n?.unmount(), r.remove(), n = null, r = null, i = null, s = null, u = null);
700
+ r !== null && (f !== null && (cancelAnimationFrame(f), f = null), _(), b(!1), n?.unmount(), r.remove(), n = null, r = null, i = null, c = null, u = null);
701
701
  },
702
702
  isOpen: () => r !== null
703
703
  };
704
704
  }
705
705
  //#endregion
706
706
  //#region src/utils/mergeTagTrigger.ts
707
- function st(e, t, n, r) {
707
+ function st(e, t, n, r, i) {
708
708
  if (!n) return null;
709
- let i = e.slice(0, t), a = i.lastIndexOf(n);
710
- if (a === -1) return null;
711
- let o = i.slice(a + n.length);
712
- return /\s/.test(o) || r && o.includes(r) ? null : {
713
- triggerStart: a,
709
+ let a = e.slice(0, t), o = a.lastIndexOf(n);
710
+ if (o === -1 || i && o < ct(a, i)) return null;
711
+ let s = a.slice(o + n.length);
712
+ return /\s/.test(s) || r && s.includes(r) ? null : {
713
+ triggerStart: o,
714
714
  caret: t,
715
- query: o
715
+ query: s
716
716
  };
717
717
  }
718
+ function ct(e, t) {
719
+ let n = new RegExp(t.source, `${t.flags.replace(/[gy]/g, "")}g`), r = 0;
720
+ for (let t of e.matchAll(n)) r = t.index + t[0].length;
721
+ return r;
722
+ }
718
723
  //#endregion
719
724
  //#region src/utils/textFieldCaret.ts
720
- var ct = /* @__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(".");
721
- function lt(e, t, n) {
725
+ 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(".");
726
+ function ut(e, t, n) {
722
727
  return {
723
728
  left: e,
724
729
  top: t,
@@ -731,7 +736,7 @@ function lt(e, t, n) {
731
736
  toJSON: () => ({})
732
737
  };
733
738
  }
734
- function ut(e, t) {
739
+ function dt(e, t) {
735
740
  let n = e.ownerDocument, r = n.defaultView;
736
741
  if (!r) return null;
737
742
  let i = e.tagName === "INPUT", a = r.getComputedStyle(e), o = n.createElement("div");
@@ -739,7 +744,7 @@ function ut(e, t) {
739
744
  let s = o.style;
740
745
  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";
741
746
  let c = s, l = a;
742
- for (let e of ct) c[e] = l[e];
747
+ for (let e of lt) c[e] = l[e];
743
748
  i && (s.width = "auto", s.whiteSpace = "pre");
744
749
  let u = e.value, d = u.slice(0, t);
745
750
  i && (d = d.replace(/\s/g, "\xA0")), o.textContent = d;
@@ -748,61 +753,61 @@ function ut(e, t) {
748
753
  let p = f.offsetTop, m = f.offsetLeft;
749
754
  n.body.removeChild(o);
750
755
  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;
751
- if (i) return lt(y, h.top, h.bottom);
756
+ if (i) return ut(y, h.top, h.bottom);
752
757
  let b = h.top + p + g - e.scrollTop;
753
- return lt(y, b, b + v);
758
+ return ut(y, b, b + v);
754
759
  }
755
760
  //#endregion
756
761
  //#region src/composables/useMergeTagAutocomplete.ts
757
- var dt = /* @__PURE__ */ new Set([
762
+ var ft = /* @__PURE__ */ new Set([
758
763
  "ArrowLeft",
759
764
  "ArrowRight",
760
765
  "Home",
761
766
  "End"
762
767
  ]);
763
- function ft(e) {
764
- let { elementRef: t, modelValue: n, emit: o, mergeTags: l, syntax: u, enabled: d, onInsert: f } = e, p = D(u), m = E(u), h = x(() => d && p !== null && l.value.length > 0), g = s(A, null), _ = ot((a(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", se()), v = !1;
765
- c() && i(() => {
768
+ function pt(e) {
769
+ let { elementRef: i, modelValue: a, emit: o, mergeTags: s, syntax: l, enabled: u, onInsert: f } = e, p = D(l), m = O(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;
770
+ r() && c(() => {
766
771
  v = !0, _.close();
767
772
  });
768
- function y(e) {
773
+ function b(e) {
769
774
  let t = e.value ?? "";
770
- return st(t, e.selectionStart ?? t.length, p, m);
775
+ return st(t, e.selectionStart ?? t.length, p, m, l.value);
771
776
  }
772
- function b(e, i, a) {
773
- let s = e.value ?? n(), c = s.slice(i.caret), l = m && c.startsWith(m) ? m.length : 0, u = s.slice(0, i.triggerStart), d = s.slice(i.caret + l), p = u + a.value + d, h = u.length + a.value.length;
774
- f?.(), o(p), _.close(), r(() => {
777
+ function x(e, t, r) {
778
+ 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;
779
+ f?.(), o(p), _.close(), n(() => {
775
780
  if (v) return;
776
- let e = t.value;
781
+ let e = i.value;
777
782
  e?.focus(), e?.setSelectionRange(h, h);
778
783
  });
779
784
  }
780
785
  function S() {
781
786
  if (!h.value || v) return;
782
- let e = t.value;
787
+ let e = i.value;
783
788
  if (!e) {
784
789
  _.close();
785
790
  return;
786
791
  }
787
- let n = y(e);
788
- if (!n) {
792
+ let t = b(e);
793
+ if (!t) {
789
794
  _.close();
790
795
  return;
791
796
  }
792
- let r = it(l.value, n.query), i = () => ut(e, n.triggerStart), a = (t) => b(e, n, t);
797
+ let n = it(s.value, t.query), r = () => dt(e, t.triggerStart), a = (n) => x(e, t, n);
793
798
  _.isOpen() ? _.update({
794
- items: r,
795
- getRect: i,
799
+ items: n,
800
+ getRect: r,
796
801
  onCommand: a
797
802
  }) : _.open({
798
- items: r,
799
- getRect: i,
803
+ items: n,
804
+ getRect: r,
800
805
  anchorEl: e,
801
806
  onCommand: a
802
807
  });
803
808
  }
804
809
  function C(e) {
805
- return _.isOpen() ? e.key === "Escape" ? (_.close(), !0) : dt.has(e.key) ? (_.close(), !1) : _.handleKeyDown(e) : !1;
810
+ return _.isOpen() ? e.key === "Escape" ? (_.close(), !0) : ft.has(e.key) ? (_.close(), !1) : _.handleKeyDown(e) : !1;
806
811
  }
807
812
  return {
808
813
  available: h,
@@ -814,39 +819,39 @@ function ft(e) {
814
819
  }
815
820
  //#endregion
816
821
  //#region src/composables/useMergeTagField.ts
817
- function pt(e) {
818
- let { modelValue: t, emit: n, elementRef: a } = e, { mergeTags: o, canRequestMergeTag: s, isRequesting: u, isMergeTagValue: d, getMergeTagDisplayLabel: f, findMergeTag: p, requestMergeTag: m, syntax: h, autocomplete: g } = F(), { canInsertLogicTag: _, isRequesting: v, requestLogicTag: y } = I(), b = l(!1), S = !1, C = !1;
819
- c() && i(() => {
822
+ function mt(e) {
823
+ 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;
824
+ r() && c(() => {
820
825
  C = !0;
821
826
  });
822
- let w = ft({
827
+ let w = pt({
823
828
  elementRef: a,
824
829
  modelValue: t,
825
- emit: n,
826
- mergeTags: o,
827
- syntax: h,
828
- enabled: g,
830
+ emit: i,
831
+ mergeTags: s,
832
+ syntax: g,
833
+ enabled: _,
829
834
  onInsert: () => {
830
- b.value = !0;
835
+ x.value = !0;
831
836
  }
832
- }), T = x(() => {
837
+ }), T = d(() => {
833
838
  let e = t();
834
839
  if (!e) return [];
835
- let n = [], r = `(${h.value.source}|${h.logic.source})`, i = new RegExp(r, "g"), a = 0, o;
840
+ let n = [], r = `(${g.value.source}|${g.logic.source})`, i = new RegExp(r, "g"), a = 0, o;
836
841
  for (; (o = i.exec(e)) !== null;) {
837
842
  o.index > a && n.push({
838
843
  type: "text",
839
844
  value: e.slice(a, o.index)
840
845
  });
841
846
  let t = o[0];
842
- d(t) ? n.push({
847
+ f(t) ? n.push({
843
848
  type: "mergeTag",
844
849
  value: t,
845
- label: f(t)
846
- }) : k(t, h) ? n.push({
850
+ label: p(t)
851
+ }) : k(t, g) ? n.push({
847
852
  type: "logicMergeTag",
848
853
  value: t,
849
- keyword: O(t, h)
854
+ keyword: E(t, g)
850
855
  }) : n.push({
851
856
  type: "text",
852
857
  value: t
@@ -856,91 +861,91 @@ function pt(e) {
856
861
  type: "text",
857
862
  value: e.slice(a)
858
863
  }), n;
859
- }), ee = x(() => T.value.some((e) => e.type === "mergeTag" || e.type === "logicMergeTag"));
864
+ }), ee = d(() => T.value.some((e) => e.type === "mergeTag" || e.type === "logicMergeTag"));
860
865
  function te() {
861
- b.value = !0, r(() => {
866
+ x.value = !0, n(() => {
862
867
  a.value?.focus();
863
868
  let e = t()?.length || 0;
864
869
  a.value?.setSelectionRange(e, e);
865
870
  });
866
871
  }
867
- function E() {
868
- S || (b.value = !1);
872
+ function D() {
873
+ S || (x.value = !1);
869
874
  }
870
- function D(e) {
871
- n(e.target.value), w.refresh();
875
+ function O(e) {
876
+ i(e.target.value), w.refresh();
872
877
  }
873
878
  function ne(e) {
874
- return w.handleKeydown(e) ? (e.preventDefault(), !0) : (e.key === "Escape" && E(), !1);
879
+ return w.handleKeydown(e) ? (e.preventDefault(), !0) : (e.key === "Escape" && D(), !1);
875
880
  }
876
881
  function re() {
877
882
  w.refresh();
878
883
  }
879
884
  function A() {
880
- w.close(), E();
885
+ w.close(), D();
881
886
  }
882
887
  function ie() {
883
- n("");
888
+ i("");
884
889
  }
885
890
  async function ae() {
886
- let e = b.value && a.value ? a.value.selectionStart ?? t().length : t().length;
891
+ let e = x.value && a.value ? a.value.selectionStart ?? t().length : t().length;
887
892
  S = !0;
888
- let i;
893
+ let r;
889
894
  try {
890
- i = await m();
895
+ r = await h();
891
896
  } finally {
892
897
  S = !1;
893
898
  }
894
- if (!C && i) {
895
- let o = t().slice(0, e), s = t().slice(e), c = o + i.value + s;
896
- n(c), b.value = !0, r(() => {
899
+ if (!C && r) {
900
+ let o = t().slice(0, e), s = t().slice(e), c = o + r.value + s;
901
+ i(c), x.value = !0, n(() => {
897
902
  if (C) return;
898
- let t = e + i.value.length;
903
+ let t = e + r.value.length;
899
904
  a.value?.focus(), a.value?.setSelectionRange(t, t);
900
905
  });
901
906
  }
902
907
  }
903
908
  async function j(e) {
904
- let t = T.value, r = t[e];
905
- if (r?.type !== "mergeTag") return;
909
+ let t = T.value, n = t[e];
910
+ if (n?.type !== "mergeTag") return;
906
911
  S = !0;
907
- let i;
912
+ let r;
908
913
  try {
909
- i = await m({
914
+ r = await h({
910
915
  reason: "edit",
911
- current: p(r.value)
916
+ current: m(n.value)
912
917
  });
913
918
  } finally {
914
919
  S = !1;
915
920
  }
916
- !C && i && n(t.map((t, n) => n === e ? i.value : t.value).join(""));
921
+ !C && r && i(t.map((t, n) => n === e ? r.value : t.value).join(""));
917
922
  }
918
923
  async function M() {
919
- let e = a.value, i = e?.selectionStart ?? t().length, o = e?.selectionEnd ?? i;
924
+ let e = a.value, r = e?.selectionStart ?? t().length, o = e?.selectionEnd ?? r;
920
925
  S = !0;
921
926
  let s;
922
927
  try {
923
- s = await y();
928
+ s = await b();
924
929
  } finally {
925
930
  S = !1;
926
931
  }
927
932
  if (C || !s) return;
928
933
  let c = t(), l, u;
929
- "before" in s ? (l = c.slice(0, i) + s.before + c.slice(i, o) + s.after + c.slice(o), u = i + s.before.length + (o - i)) : (l = c.slice(0, i) + s.value + c.slice(i), u = i + s.value.length), n(l), b.value = !0, r(() => {
934
+ "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
935
  C || (a.value?.focus(), a.value?.setSelectionRange(u, u));
931
936
  });
932
937
  }
933
938
  return {
934
939
  segments: T,
935
940
  hasMergeTags: ee,
936
- canRequestMergeTag: s,
941
+ canRequestMergeTag: l,
937
942
  isRequestingMergeTag: u,
938
- canInsertLogicTag: _,
939
- isRequestingLogicTag: v,
940
- isEditing: b,
943
+ canInsertLogicTag: v,
944
+ isRequestingLogicTag: y,
945
+ isEditing: x,
941
946
  startEditing: te,
942
- stopEditing: E,
943
- handleInput: D,
947
+ stopEditing: D,
948
+ handleInput: O,
944
949
  handleKeydown: ne,
945
950
  handleClick: re,
946
951
  handleBlur: A,
@@ -953,14 +958,14 @@ function pt(e) {
953
958
  }
954
959
  //#endregion
955
960
  //#region src/components/MergeTagSegments.vue?vue&type=script&setup=true&lang.ts
956
- var mt = ["aria-label"], ht = [
961
+ var ht = ["aria-label"], gt = [
957
962
  "data-tooltip",
958
963
  "aria-label",
959
964
  "onClick"
960
- ], gt = ["data-tooltip"], _t = ["data-tooltip"], vt = {
965
+ ], _t = ["data-tooltip"], vt = ["data-tooltip"], yt = {
961
966
  key: 3,
962
967
  class: "tpl:text-sm tpl:text-[var(--tpl-text)]"
963
- }, yt = ["aria-label", "title"], bt = ["aria-label", "title"], xt = /* @__PURE__ */ C({
968
+ }, bt = ["aria-label", "title"], xt = ["aria-label", "title"], St = /* @__PURE__ */ C({
964
969
  __name: "MergeTagSegments",
965
970
  props: {
966
971
  segments: {},
@@ -973,37 +978,37 @@ var mt = ["aria-label"], ht = [
973
978
  "repick"
974
979
  ],
975
980
  setup(t, { emit: n }) {
976
- let r = n, { t: i, format: a } = j(), { canRepickMergeTag: s, showRawValue: c } = F();
977
- function l() {
981
+ let r = n, { t: o, format: s } = j(), { canRepickMergeTag: c, showRawValue: u } = F();
982
+ function d() {
978
983
  r("edit");
979
984
  }
980
- return (n, d) => (e(), p("div", {
985
+ return (n, f) => (h(), p("div", {
981
986
  role: "group",
982
- "aria-label": u(i).mergeTag.fieldGroup,
983
- class: v([t.displayClass, { "tpl-pulse-fill": t.pulse }]),
984
- onClick: l
987
+ "aria-label": v(o).mergeTag.fieldGroup,
988
+ class: e([t.displayClass, { "tpl-pulse-fill": t.pulse }]),
989
+ onClick: d
985
990
  }, [
986
- (e(!0), p(b, null, o(t.segments, (t, n) => (e(), p(b, { key: `${t.type}-${n}-${t.value}` }, [t.type === "mergeTag" && u(s)(t.value) ? (e(), p("button", {
991
+ (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", {
987
992
  key: 0,
988
993
  type: "button",
989
- class: v(["tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:rounded tpl:border-none tpl:px-1.5 tpl:py-0.5 tpl:text-[0.9em] tpl:font-medium", u(c) ? "tpl-tooltip" : ""]),
990
- "data-tooltip": u(c) ? t.value : void 0,
991
- "aria-label": u(a)(u(i).mergeTag.changeTag, { label: t.label }),
994
+ 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" : ""]),
995
+ "data-tooltip": v(u) ? t.value : void 0,
996
+ "aria-label": v(s)(v(o).mergeTag.changeTag, { label: t.label }),
992
997
  "data-testid": "merge-tag-field-chip",
993
998
  style: {
994
999
  "background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
995
1000
  color: "var(--tpl-primary)"
996
1001
  },
997
1002
  onClick: w((e) => r("repick", n), ["stop"])
998
- }, _(t.label), 11, ht)) : t.type === "mergeTag" ? (e(), p("span", {
1003
+ }, i(t.label), 11, gt)) : t.type === "mergeTag" ? (h(), p("span", {
999
1004
  key: 1,
1000
- class: v(["tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.9em] tpl:font-medium", u(c) ? "tpl-tooltip" : ""]),
1001
- "data-tooltip": u(c) ? t.value : void 0,
1005
+ 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" : ""]),
1006
+ "data-tooltip": v(u) ? t.value : void 0,
1002
1007
  style: {
1003
1008
  "background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
1004
1009
  color: "var(--tpl-primary)"
1005
1010
  }
1006
- }, _(t.label), 11, gt)) : t.type === "logicMergeTag" ? (e(), p("span", {
1011
+ }, i(t.label), 11, _t)) : t.type === "logicMergeTag" ? (h(), p("span", {
1007
1012
  key: 2,
1008
1013
  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",
1009
1014
  "data-tooltip": t.value,
@@ -1012,78 +1017,78 @@ var mt = ["aria-label"], ht = [
1012
1017
  border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
1013
1018
  color: "var(--tpl-primary)"
1014
1019
  }
1015
- }, _(t.keyword), 9, _t)) : (e(), p("span", vt, _(t.value), 1))], 64))), 128)),
1016
- f("button", {
1020
+ }, i(t.keyword), 9, vt)) : (h(), p("span", yt, i(t.value), 1))], 64))), 128)),
1021
+ _("button", {
1017
1022
  type: "button",
1018
1023
  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",
1019
- "aria-label": u(i).mergeTag.editAsText,
1020
- title: u(i).mergeTag.editAsText,
1024
+ "aria-label": v(o).mergeTag.editAsText,
1025
+ title: v(o).mergeTag.editAsText,
1021
1026
  "data-testid": "merge-tag-field-edit",
1022
- onClick: w(l, ["stop"])
1023
- }, [m(u(P), {
1027
+ onClick: w(d, ["stop"])
1028
+ }, [l(v(P), {
1024
1029
  size: 12,
1025
1030
  "stroke-width": 2
1026
- })], 8, yt),
1027
- f("button", {
1031
+ })], 8, bt),
1032
+ _("button", {
1028
1033
  type: "button",
1029
1034
  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",
1030
- "aria-label": u(i).mergeTag.remove,
1031
- title: u(i).mergeTag.remove,
1035
+ "aria-label": v(o).mergeTag.remove,
1036
+ title: v(o).mergeTag.remove,
1032
1037
  "data-testid": "merge-tag-field-clear",
1033
- onClick: d[0] ||= w((e) => r("clear"), ["stop"])
1034
- }, [m(u(de), {
1038
+ onClick: f[0] ||= w((e) => r("clear"), ["stop"])
1039
+ }, [l(v(de), {
1035
1040
  size: 12,
1036
1041
  "stroke-width": 2.5
1037
- })], 8, bt)
1038
- ], 10, mt));
1042
+ })], 8, xt)
1043
+ ], 10, ht));
1039
1044
  }
1040
- }), St = [
1045
+ }), Ct = [
1041
1046
  "aria-label",
1042
1047
  "title",
1043
1048
  "disabled"
1044
- ], Ct = "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)]", wt = /* @__PURE__ */ C({
1049
+ ], 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({
1045
1050
  __name: "MergeTagInsertButton",
1046
1051
  props: { disabled: { type: Boolean } },
1047
1052
  emits: ["insert"],
1048
1053
  setup(t) {
1049
1054
  let { t: n } = j();
1050
- return (r, i) => (e(), p("button", {
1055
+ return (r, a) => (h(), p("button", {
1051
1056
  type: "button",
1052
- class: v([Ct, "tpl:mt-1.5"]),
1053
- "aria-label": u(n).mergeTag.insert,
1054
- title: u(n).mergeTag.insert,
1057
+ class: e([wt, "tpl:mt-1.5"]),
1058
+ "aria-label": v(n).mergeTag.insert,
1059
+ title: v(n).mergeTag.insert,
1055
1060
  disabled: t.disabled,
1056
- onMousedown: i[0] ||= w(() => {}, ["prevent"]),
1057
- onClick: i[1] ||= (e) => r.$emit("insert")
1058
- }, [m(u(L), {
1061
+ onMousedown: a[0] ||= w(() => {}, ["prevent"]),
1062
+ onClick: a[1] ||= (e) => r.$emit("insert")
1063
+ }, [l(v(L), {
1059
1064
  size: 12,
1060
1065
  "stroke-width": 2
1061
- }), h(" " + _(u(n).mergeTag.insertShort), 1)], 42, St));
1066
+ }), m(" " + i(v(n).mergeTag.insertShort), 1)], 42, Ct));
1062
1067
  }
1063
- }), Tt = [
1068
+ }), Et = [
1064
1069
  "aria-label",
1065
1070
  "title",
1066
1071
  "disabled"
1067
- ], 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__ */ C({
1072
+ ], 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({
1068
1073
  __name: "LogicTagInsertButton",
1069
1074
  props: { disabled: { type: Boolean } },
1070
1075
  emits: ["insert"],
1071
1076
  setup(t) {
1072
1077
  let { t: n } = j();
1073
- return (r, i) => (e(), p("button", {
1078
+ return (r, a) => (h(), p("button", {
1074
1079
  type: "button",
1075
- class: v([Et, "tpl:mt-1.5"]),
1076
- "aria-label": u(n).logicTag.insert,
1077
- title: u(n).logicTag.insert,
1080
+ class: e([Dt, "tpl:mt-1.5"]),
1081
+ "aria-label": v(n).logicTag.insert,
1082
+ title: v(n).logicTag.insert,
1078
1083
  disabled: t.disabled,
1079
1084
  "data-testid": "field-insert-logic-button",
1080
- onMousedown: i[0] ||= w(() => {}, ["prevent"]),
1081
- onClick: i[1] ||= (e) => r.$emit("insert")
1082
- }, [m(u(pe), {
1085
+ onMousedown: a[0] ||= w(() => {}, ["prevent"]),
1086
+ onClick: a[1] ||= (e) => r.$emit("insert")
1087
+ }, [l(v(pe), {
1083
1088
  size: 12,
1084
1089
  "stroke-width": 2
1085
- }), h(" " + _(u(n).logicTag.insertShort), 1)], 42, Tt));
1090
+ }), m(" " + i(v(n).logicTag.insertShort), 1)], 42, Et));
1086
1091
  }
1087
1092
  });
1088
1093
  //#endregion
1089
- export { ot as a, Ye as c, pt as i, L as l, wt as n, it as o, xt as r, at as s, Dt as t, pe as u };
1094
+ 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 };