@templatical/editor 0.54.2 → 0.56.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 (281) hide show
  1. package/dist/{AiAltTextPopover-BBKVJ6HA.js → AiAltTextPopover-DdsvhE78.js} +4 -4
  2. package/dist/{AiAltTextReview-BuVbeQh-.js → AiAltTextReview-P6to1_0t.js} +3 -3
  3. package/dist/{AiChatPanel-C8SeEJRP.js → AiChatPanel-BSlmzMRC.js} +10 -10
  4. package/dist/{AiPanels-CR6zphjP.js → AiPanels-DAsnX-a3.js} +1 -1
  5. package/dist/{AiRewriteMenu-ZpYJfm-O.js → AiRewriteMenu-DIISOR6U.js} +11 -11
  6. package/dist/{BlockIssueBadge-DaPTq1RE.js → BlockIssueBadge-Bmtc50BQ.js} +4 -4
  7. package/dist/BlockPreviewCanvas-BYIzNn-9.js +154 -0
  8. package/dist/{CloudHeaderExtras-XpjJjn3o.js → CloudHeaderExtras-Cqhw-jMz.js} +1 -1
  9. package/dist/{CloudPanels-DQRWMc59.js → CloudPanels-w34W8_BP.js} +4 -4
  10. package/dist/{CollaborationNotices-Cnx0XHzZ.js → CollaborationNotices-HTbCebjV.js} +2 -2
  11. package/dist/{CollaboratorBar-BaBoNhwB.js → CollaboratorBar-CLQjksX-.js} +2 -2
  12. package/dist/{CommentsPanel-Ck3QmqiC.js → CommentsPanel-C5qG17Ki.js} +1 -1
  13. package/dist/{CommentsSidebar-CHknhOar.js → CommentsSidebar-C7CWcUYZ.js} +12 -12
  14. package/dist/{CountdownBlock-BMezkFbJ.js → CountdownBlock-BTXcCvjZ.js} +2 -2
  15. package/dist/{CountdownToolbar-DTpMEDyh.js → CountdownToolbar-CP-pkntQ.js} +5 -5
  16. package/dist/{IssuesPanel-BZn7-p9e.js → IssuesPanel-CiiNBzH0.js} +12 -12
  17. package/dist/{LanguageMenu-OOmQWVzO.js → LanguageMenu-B981Av-6.js} +15 -15
  18. package/dist/{LocaleNotices-WzsYtBRs.js → LocaleNotices-CTCZ7BYv.js} +4 -4
  19. package/dist/{LogicTagInsertButton-XESwnJia.js → LogicTagInsertButton-DEOPc4RC.js} +284 -279
  20. package/dist/{MediaEditModal-C3U9Mi31.js → MediaEditModal-DJsPLTwP.js} +1 -1
  21. package/dist/{MediaPanels-CGmk9ufe.js → MediaPanels-D2WD2aE2.js} +1 -1
  22. package/dist/{MergeTagInput-CAsBRoSm.js → MergeTagInput-C9icdxw7.js} +1 -1
  23. package/dist/{MergeTagModeToggle-bOf27Hg1.js → MergeTagModeToggle-DXvb80OE.js} +6 -6
  24. package/dist/{MergeTagTextarea-DH_6JFui.js → MergeTagTextarea-CrAcmT3A.js} +5 -5
  25. package/dist/{ParagraphEditor-XGUkV5Uw.js → ParagraphEditor-BWBQ3jKz.js} +55 -55
  26. package/dist/{RestoreVersionDialog-C72kWccI.js → RestoreVersionDialog-CqAp16yQ.js} +4 -4
  27. package/dist/{RichTextEditorContent-BZN8KRvR.js → RichTextEditorContent-xbBjVPVQ.js} +8 -8
  28. package/dist/{SaveBlockDialog-CKOnTMTU.js → SaveBlockDialog-pebNJBTc.js} +9 -9
  29. package/dist/{SavedBlocksBrowserModal-BrlNxqDH.js → SavedBlocksBrowserModal-CvagMcv7.js} +11 -11
  30. package/dist/{SavedBlocksPanels--lPR6gdh.js → SavedBlocksPanels-B9AAVBDm.js} +1 -1
  31. package/dist/{SavedBlocksPickBar-4ON4_KKl.js → SavedBlocksPickBar-BIANWe3i.js} +3 -3
  32. package/dist/{TemplateSettings-BE0jZmRJ.js → TemplateSettings-ORq4PbCN.js} +12 -12
  33. package/dist/{TestEmailModal-BKmNGrZN.js → TestEmailModal-DRjCpcPl.js} +11 -11
  34. package/dist/{TestEmailPanel-DT1wllX3.js → TestEmailPanel-H0v8El__.js} +1 -1
  35. package/dist/{TitleEditor-HjVZuUTB.js → TitleEditor-CEGbJXeU.js} +11 -11
  36. package/dist/{Toolbar-BppchV2k.js → Toolbar-XT-uGA9J.js} +1134 -852
  37. package/dist/{TplModal-BFWOoK8l.js → TplModal-7NQq5-VW.js} +4 -4
  38. package/dist/{VersionHistoryMenu-BnP0EyLl.js → VersionHistoryMenu-C8BE3Pr-.js} +7 -7
  39. package/dist/{VersionHistoryPanels-D4yNVLvq.js → VersionHistoryPanels-CuKuOSJG.js} +1 -1
  40. package/dist/{VersionPreviewBanner-BPP939cD.js → VersionPreviewBanner-BVFBkveR.js} +2 -2
  41. package/dist/WrapperBlock-Bdw-072t.js +56 -0
  42. package/dist/{blockTypeIcons-D91v9k0x.js → blockTypeIcons-CGplGmmr.js} +3 -3
  43. package/dist/bundle-stats.json +6 -6
  44. package/dist/{ca-DOuIxWRv.js → ca-BJn8lcJx.js} +18 -1
  45. package/dist/cdn/chunks/{AiAltTextPopover-CAI18sdv.js → AiAltTextPopover-x999Gimz.js} +5 -5
  46. package/dist/cdn/chunks/{AiAltTextPopover-CAI18sdv.js.map → AiAltTextPopover-x999Gimz.js.map} +1 -1
  47. package/dist/cdn/chunks/{AiAltTextReview-CWEyMOF-.js → AiAltTextReview-DjnFz1wO.js} +4 -4
  48. package/dist/cdn/chunks/{AiAltTextReview-CWEyMOF-.js.map → AiAltTextReview-DjnFz1wO.js.map} +1 -1
  49. package/dist/cdn/chunks/{AiChatPanel-By8Uo1nH.js → AiChatPanel-DKDu9cs7.js} +4 -4
  50. package/dist/cdn/chunks/{AiChatPanel-By8Uo1nH.js.map → AiChatPanel-DKDu9cs7.js.map} +1 -1
  51. package/dist/cdn/chunks/{AiPanels-BblCSkQy.js → AiPanels-jMLVaiKx.js} +2 -2
  52. package/dist/cdn/chunks/{AiPanels-BblCSkQy.js.map → AiPanels-jMLVaiKx.js.map} +1 -1
  53. package/dist/cdn/chunks/{AiRewriteMenu-BEepu1vo.js → AiRewriteMenu-s79rmHFy.js} +10 -10
  54. package/dist/cdn/chunks/{AiRewriteMenu-BEepu1vo.js.map → AiRewriteMenu-s79rmHFy.js.map} +1 -1
  55. package/dist/cdn/chunks/{BlockIssueBadge-D3Plo_wt.js → BlockIssueBadge-Bnmq_M4G.js} +4 -4
  56. package/dist/cdn/chunks/{BlockIssueBadge-D3Plo_wt.js.map → BlockIssueBadge-Bnmq_M4G.js.map} +1 -1
  57. package/dist/cdn/chunks/{BlockPreviewCanvas-B6ndvof2.js → BlockPreviewCanvas-B3HkuENF.js} +46 -32
  58. package/dist/cdn/chunks/BlockPreviewCanvas-B3HkuENF.js.map +1 -0
  59. package/dist/cdn/chunks/{CloudHeaderExtras-BtqdN777.js → CloudHeaderExtras-uUJYJFJ6.js} +2 -2
  60. package/dist/cdn/chunks/{CloudHeaderExtras-BtqdN777.js.map → CloudHeaderExtras-uUJYJFJ6.js.map} +1 -1
  61. package/dist/cdn/chunks/{CloudPanels-BGwDb0jB.js → CloudPanels-DQnlH_YJ.js} +4 -4
  62. package/dist/cdn/chunks/{CloudPanels-BGwDb0jB.js.map → CloudPanels-DQnlH_YJ.js.map} +1 -1
  63. package/dist/cdn/chunks/{CollaborationNotices-DraFUhyo.js → CollaborationNotices-CHqUGhOZ.js} +3 -3
  64. package/dist/cdn/chunks/{CollaborationNotices-DraFUhyo.js.map → CollaborationNotices-CHqUGhOZ.js.map} +1 -1
  65. package/dist/cdn/chunks/{CollaboratorBar-0OEH3hrj.js → CollaboratorBar-C1ZI2xwa.js} +3 -3
  66. package/dist/cdn/chunks/{CollaboratorBar-0OEH3hrj.js.map → CollaboratorBar-C1ZI2xwa.js.map} +1 -1
  67. package/dist/cdn/chunks/{CommentsPanel-tZZswofV.js → CommentsPanel-EtdTzTmq.js} +2 -2
  68. package/dist/cdn/chunks/{CommentsPanel-tZZswofV.js.map → CommentsPanel-EtdTzTmq.js.map} +1 -1
  69. package/dist/cdn/chunks/{CommentsSidebar-7Hfl3Hdj.js → CommentsSidebar-Qmj049QX.js} +4 -4
  70. package/dist/cdn/chunks/{CommentsSidebar-7Hfl3Hdj.js.map → CommentsSidebar-Qmj049QX.js.map} +1 -1
  71. package/dist/cdn/chunks/{CountdownBlock-CjMhMhnv.js → CountdownBlock-DyGsh92b.js} +3 -3
  72. package/dist/cdn/chunks/{CountdownBlock-CjMhMhnv.js.map → CountdownBlock-DyGsh92b.js.map} +1 -1
  73. package/dist/cdn/chunks/{CountdownToolbar-B-0FsTj-.js → CountdownToolbar-Ddj2erNm.js} +6 -6
  74. package/dist/cdn/chunks/{CountdownToolbar-B-0FsTj-.js.map → CountdownToolbar-Ddj2erNm.js.map} +1 -1
  75. package/dist/cdn/chunks/{IssuesPanel-LyjMBDok.js → IssuesPanel-DnSnEh1X.js} +8 -8
  76. package/dist/cdn/chunks/{IssuesPanel-LyjMBDok.js.map → IssuesPanel-DnSnEh1X.js.map} +1 -1
  77. package/dist/cdn/chunks/{LanguageMenu-CGwMCOQ5.js → LanguageMenu-C2I_yTL5.js} +110 -110
  78. package/dist/cdn/chunks/{LanguageMenu-CGwMCOQ5.js.map → LanguageMenu-C2I_yTL5.js.map} +1 -1
  79. package/dist/cdn/chunks/{LocaleNotices-8J2DRWeg.js → LocaleNotices-Dr9LRCAg.js} +4 -4
  80. package/dist/cdn/chunks/{LocaleNotices-8J2DRWeg.js.map → LocaleNotices-Dr9LRCAg.js.map} +1 -1
  81. package/dist/cdn/chunks/{LogicTagInsertButton-PDKuo2J3.js → LogicTagInsertButton-BdzE9-l7.js} +260 -255
  82. package/dist/cdn/chunks/LogicTagInsertButton-BdzE9-l7.js.map +1 -0
  83. package/dist/cdn/chunks/{MediaEditModal-Dz972UFx.js → MediaEditModal-CMJFXu_o.js} +2 -2
  84. package/dist/cdn/chunks/{MediaEditModal-Dz972UFx.js.map → MediaEditModal-CMJFXu_o.js.map} +1 -1
  85. package/dist/cdn/chunks/{MediaPanels-C6Hqtp1H.js → MediaPanels-C790ZXuY.js} +2 -2
  86. package/dist/cdn/chunks/{MediaPanels-C6Hqtp1H.js.map → MediaPanels-C790ZXuY.js.map} +1 -1
  87. package/dist/cdn/chunks/{MergeTagInput-DoQHBJk2.js → MergeTagInput-CmrX8Md6.js} +2 -2
  88. package/dist/cdn/chunks/{MergeTagInput-DoQHBJk2.js.map → MergeTagInput-CmrX8Md6.js.map} +1 -1
  89. package/dist/cdn/chunks/{MergeTagModeToggle-Ct5IG4VW.js → MergeTagModeToggle-D7maMGIM.js} +5 -5
  90. package/dist/cdn/chunks/{MergeTagModeToggle-Ct5IG4VW.js.map → MergeTagModeToggle-D7maMGIM.js.map} +1 -1
  91. package/dist/cdn/chunks/{MergeTagTextarea-BMsnjphR.js → MergeTagTextarea-KOnd2teB.js} +8 -8
  92. package/dist/cdn/chunks/{MergeTagTextarea-BMsnjphR.js.map → MergeTagTextarea-KOnd2teB.js.map} +1 -1
  93. package/dist/cdn/chunks/{ParagraphEditor-CVW-kuHW.js → ParagraphEditor-I9lbKaPk.js} +19 -19
  94. package/dist/cdn/chunks/{ParagraphEditor-CVW-kuHW.js.map → ParagraphEditor-I9lbKaPk.js.map} +1 -1
  95. package/dist/cdn/chunks/{RestoreVersionDialog-7MFZz-Sb.js → RestoreVersionDialog-DqbULAbc.js} +4 -4
  96. package/dist/cdn/chunks/{RestoreVersionDialog-7MFZz-Sb.js.map → RestoreVersionDialog-DqbULAbc.js.map} +1 -1
  97. package/dist/cdn/chunks/{RichTextEditorContent-CiL-SkZg.js → RichTextEditorContent-_O22z0pn.js} +8 -8
  98. package/dist/cdn/chunks/{RichTextEditorContent-CiL-SkZg.js.map → RichTextEditorContent-_O22z0pn.js.map} +1 -1
  99. package/dist/cdn/chunks/{SaveBlockDialog-CxdekCYy.js → SaveBlockDialog-CClRLXgF.js} +8 -8
  100. package/dist/cdn/chunks/{SaveBlockDialog-CxdekCYy.js.map → SaveBlockDialog-CClRLXgF.js.map} +1 -1
  101. package/dist/cdn/chunks/{SavedBlocksBrowserModal-D9CAa2U3.js → SavedBlocksBrowserModal-BIaxaxw9.js} +8 -8
  102. package/dist/cdn/chunks/{SavedBlocksBrowserModal-D9CAa2U3.js.map → SavedBlocksBrowserModal-BIaxaxw9.js.map} +1 -1
  103. package/dist/cdn/chunks/{SavedBlocksPanels-jfkYWtss.js → SavedBlocksPanels-Dfu9N6YW.js} +2 -2
  104. package/dist/cdn/chunks/{SavedBlocksPanels-jfkYWtss.js.map → SavedBlocksPanels-Dfu9N6YW.js.map} +1 -1
  105. package/dist/cdn/chunks/{SavedBlocksPickBar-yaCumC4j.js → SavedBlocksPickBar-DiMW_dbJ.js} +4 -4
  106. package/dist/cdn/chunks/{SavedBlocksPickBar-yaCumC4j.js.map → SavedBlocksPickBar-DiMW_dbJ.js.map} +1 -1
  107. package/dist/cdn/chunks/{TemplateSettings-SaV2UVh_.js → TemplateSettings-JMUo0LIV.js} +10 -10
  108. package/dist/cdn/chunks/{TemplateSettings-SaV2UVh_.js.map → TemplateSettings-JMUo0LIV.js.map} +1 -1
  109. package/dist/cdn/chunks/{TestEmailModal-ByfhP_sm.js → TestEmailModal-D52VtwBZ.js} +12 -12
  110. package/dist/cdn/chunks/{TestEmailModal-ByfhP_sm.js.map → TestEmailModal-D52VtwBZ.js.map} +1 -1
  111. package/dist/cdn/chunks/{TestEmailPanel-CfzpqpDs.js → TestEmailPanel-D9ezVDHd.js} +2 -2
  112. package/dist/cdn/chunks/{TestEmailPanel-CfzpqpDs.js.map → TestEmailPanel-D9ezVDHd.js.map} +1 -1
  113. package/dist/cdn/chunks/{TitleEditor-Ceb0YfWv.js → TitleEditor-D04vvbUc.js} +9 -9
  114. package/dist/cdn/chunks/{TitleEditor-Ceb0YfWv.js.map → TitleEditor-D04vvbUc.js.map} +1 -1
  115. package/dist/cdn/chunks/{Toolbar-Cv6Rv1S-.js → Toolbar-C_Hfsher.js} +1196 -914
  116. package/dist/cdn/chunks/Toolbar-C_Hfsher.js.map +1 -0
  117. package/dist/cdn/chunks/{TplModal-DGpGdwgf.js → TplModal-d6fEZGJ5.js} +5 -5
  118. package/dist/cdn/chunks/{TplModal-DGpGdwgf.js.map → TplModal-d6fEZGJ5.js.map} +1 -1
  119. package/dist/cdn/chunks/{VersionHistoryMenu-CZury5gU.js → VersionHistoryMenu-C8ucm43v.js} +7 -7
  120. package/dist/cdn/chunks/{VersionHistoryMenu-CZury5gU.js.map → VersionHistoryMenu-C8ucm43v.js.map} +1 -1
  121. package/dist/cdn/chunks/{VersionHistoryPanels-BJnHCMAH.js → VersionHistoryPanels-BAdzmhvH.js} +2 -2
  122. package/dist/cdn/chunks/{VersionHistoryPanels-BJnHCMAH.js.map → VersionHistoryPanels-BAdzmhvH.js.map} +1 -1
  123. package/dist/cdn/chunks/{VersionPreviewBanner-C4Ji8nu4.js → VersionPreviewBanner-BWuovbFc.js} +3 -3
  124. package/dist/cdn/chunks/{VersionPreviewBanner-C4Ji8nu4.js.map → VersionPreviewBanner-BWuovbFc.js.map} +1 -1
  125. package/dist/cdn/chunks/WrapperBlock-TXDSDXUP.js +58 -0
  126. package/dist/cdn/chunks/WrapperBlock-TXDSDXUP.js.map +1 -0
  127. package/dist/cdn/chunks/{blockTypeIcons-Cc6RJ27V.js → blockTypeIcons-CzYA5DF9.js} +2 -2
  128. package/dist/cdn/chunks/{blockTypeIcons-Cc6RJ27V.js.map → blockTypeIcons-CzYA5DF9.js.map} +1 -1
  129. package/dist/cdn/chunks/{ca-DOuIxWRv.js → ca-BJn8lcJx.js} +19 -2
  130. package/dist/cdn/chunks/ca-BJn8lcJx.js.map +1 -0
  131. package/dist/cdn/chunks/{composables-BxikPuC1.js → composables-CsfQlmcf.js} +676 -620
  132. package/dist/cdn/chunks/composables-CsfQlmcf.js.map +1 -0
  133. package/dist/cdn/chunks/{createCloudRuntime-D2DUaudp.js → createCloudRuntime-PpIFCDfj.js} +4 -4
  134. package/dist/cdn/chunks/{createCloudRuntime-D2DUaudp.js.map → createCloudRuntime-PpIFCDfj.js.map} +1 -1
  135. package/dist/{de-DaOUfYBX.js → cdn/chunks/de-BLFp3nWx.js} +20 -1
  136. package/dist/cdn/chunks/de-BLFp3nWx.js.map +1 -0
  137. package/dist/cdn/chunks/{editor-modal-erQEOHZN.js → editor-modal-B8UE9V8B.js} +90 -90
  138. package/dist/cdn/chunks/{editor-modal-erQEOHZN.js.map → editor-modal-B8UE9V8B.js.map} +1 -1
  139. package/dist/cdn/chunks/en-CVxNoHww.js +1 -0
  140. package/dist/cdn/chunks/{en-C0pHHMiR.js → en-DGGQJGbm.js} +19 -2
  141. package/dist/cdn/chunks/en-DGGQJGbm.js.map +1 -0
  142. package/dist/{es-CxyEKr6n.js → cdn/chunks/es-DTY9qgLv.js} +20 -1
  143. package/dist/cdn/chunks/es-DTY9qgLv.js.map +1 -0
  144. package/dist/cdn/chunks/{extensions-DuDWpKo7.js → extensions-BM6ZSnsQ.js} +82 -76
  145. package/dist/cdn/chunks/extensions-BM6ZSnsQ.js.map +1 -0
  146. package/dist/{fr-CYbamiI6.js → cdn/chunks/fr-L4FqO9Gp.js} +20 -1
  147. package/dist/cdn/chunks/fr-L4FqO9Gp.js.map +1 -0
  148. package/dist/cdn/chunks/{icons-Da9GKjPx.js → icons-DHExFLlT.js} +43 -43
  149. package/dist/cdn/chunks/{icons-Da9GKjPx.js.map → icons-DHExFLlT.js.map} +1 -1
  150. package/dist/cdn/chunks/{ja-DfaIAoGI.js → ja-6uOXkh4v.js} +19 -2
  151. package/dist/cdn/chunks/ja-6uOXkh4v.js.map +1 -0
  152. package/dist/cdn/chunks/{keys-CoQtCqNv.js → keys-BUmIvYy3.js} +4 -4
  153. package/dist/cdn/chunks/keys-BUmIvYy3.js.map +1 -0
  154. package/dist/cdn/chunks/{nl-DkrB-VKZ.js → nl-DCxuxwNq.js} +19 -2
  155. package/dist/cdn/chunks/nl-DCxuxwNq.js.map +1 -0
  156. package/dist/cdn/chunks/normalizeMergeTagMarkup-aWjkotui.js +300 -0
  157. package/dist/cdn/chunks/normalizeMergeTagMarkup-aWjkotui.js.map +1 -0
  158. package/dist/cdn/chunks/{preRenderCustomBlocks-C9oavydG.js → preRenderCustomBlocks-Dn6dFUwx.js} +2 -2
  159. package/dist/cdn/chunks/{preRenderCustomBlocks-C9oavydG.js.map → preRenderCustomBlocks-Dn6dFUwx.js.map} +1 -1
  160. package/dist/cdn/chunks/{pt-BR-CY5Ye7eP.js → pt-BR-CBkcrebr.js} +19 -2
  161. package/dist/cdn/chunks/pt-BR-CBkcrebr.js.map +1 -0
  162. package/dist/cdn/chunks/{sanitizeHtml-DfXoetOm.js → sanitizeHtml-DJI7vvET.js} +3 -3
  163. package/dist/cdn/chunks/{sanitizeHtml-DfXoetOm.js.map → sanitizeHtml-DJI7vvET.js.map} +1 -1
  164. package/dist/cdn/chunks/{socialIcons-DPwkrn5v.js → socialIcons-Qw9rHc8C.js} +420 -406
  165. package/dist/cdn/chunks/{socialIcons-DPwkrn5v.js.map → socialIcons-Qw9rHc8C.js.map} +1 -1
  166. package/dist/cdn/chunks/src-Bfj1jHnn.js +710 -0
  167. package/dist/cdn/chunks/src-Bfj1jHnn.js.map +1 -0
  168. package/dist/cdn/chunks/{src-712f3ofG.js → src-C9JWWxAk.js} +683 -568
  169. package/dist/cdn/chunks/src-C9JWWxAk.js.map +1 -0
  170. package/dist/cdn/chunks/{src-ZFw5fg_z.js → src-mXG-Of9A.js} +892 -735
  171. package/dist/cdn/chunks/src-mXG-Of9A.js.map +1 -0
  172. package/dist/cdn/chunks/{useCloudI18n-Cc5NZqiI.js → useCloudI18n-Xsih9yRH.js} +2 -2
  173. package/dist/cdn/chunks/{useCloudI18n-Cc5NZqiI.js.map → useCloudI18n-Xsih9yRH.js.map} +1 -1
  174. package/dist/cdn/chunks/{useEditorRoot-D_LuZ_hE.js → useEditorRoot-Beau2Z_T.js} +2 -2
  175. package/dist/cdn/chunks/{useEditorRoot-D_LuZ_hE.js.map → useEditorRoot-Beau2Z_T.js.map} +1 -1
  176. package/dist/cdn/chunks/{useI18n-BnJYydPv.js → useI18n-D8s7HtTn.js} +2 -2
  177. package/dist/cdn/chunks/{useI18n-BnJYydPv.js.map → useI18n-D8s7HtTn.js.map} +1 -1
  178. package/dist/cdn/chunks/useLocalizedDisplay-Bgg4qpev.js +33 -0
  179. package/dist/cdn/chunks/{useLocalizedDisplay-DiNjT22M.js.map → useLocalizedDisplay-Bgg4qpev.js.map} +1 -1
  180. package/dist/cdn/chunks/{useLogicTag-SvMW4g00.js → useLogicTag-DLvWzWsp.js} +4 -4
  181. package/dist/cdn/chunks/{useLogicTag-SvMW4g00.js.map → useLogicTag-DLvWzWsp.js.map} +1 -1
  182. package/dist/cdn/chunks/{useMergeTag-JLz3Pqcw.js → useMergeTag-B4FHCGGm.js} +6 -6
  183. package/dist/cdn/chunks/{useMergeTag-JLz3Pqcw.js.map → useMergeTag-B4FHCGGm.js.map} +1 -1
  184. package/dist/cdn/chunks/{usePopoverPosition-BWAXWeBv.js → usePopoverPosition-esO6wjvU.js} +5 -5
  185. package/dist/cdn/chunks/{usePopoverPosition-BWAXWeBv.js.map → usePopoverPosition-esO6wjvU.js.map} +1 -1
  186. package/dist/cdn/chunks/{useScrollToBlock-Ct1AwLD-.js → useScrollToBlock-CJuUu7Xj.js} +2 -2
  187. package/dist/cdn/chunks/{useScrollToBlock-Ct1AwLD-.js.map → useScrollToBlock-CJuUu7Xj.js.map} +1 -1
  188. package/dist/cdn/chunks/{withCurrentFont-BcoPpkDS.js → withCurrentFont-QqBilClC.js} +2 -2
  189. package/dist/cdn/chunks/{withCurrentFont-BcoPpkDS.js.map → withCurrentFont-QqBilClC.js.map} +1 -1
  190. package/dist/cdn/editor.css +1 -1
  191. package/dist/cdn/editor.js +761 -764
  192. package/dist/cdn/editor.js.map +1 -1
  193. package/dist/{check-XMnOOIEC.js → check-CcuCoJDh.js} +1 -1
  194. package/dist/{chevron-down-DmamTEWQ.js → chevron-down-BfYIbFbC.js} +1 -1
  195. package/dist/{chevron-right-BEFXOH27.js → chevron-right-DyjFqY35.js} +1 -1
  196. package/dist/{chevron-up-Dw7woXj8.js → chevron-up-BHEIxuS-.js} +1 -1
  197. package/dist/{circle-alert-BTKC9vkq.js → circle-alert-Tq7kAh9S.js} +1 -1
  198. package/dist/{clock-BVT5u2uG.js → clock-Df0ZiXwQ.js} +1 -1
  199. package/dist/{composables-BbPFRlBf.js → composables-CRX6rncm.js} +1044 -988
  200. package/dist/{createCloudRuntime-Dlrg88gS.js → createCloudRuntime-DplyIlsy.js} +3 -3
  201. package/dist/{createLucideIcon-CgDE3xAR.js → createLucideIcon-CfBdtoUw.js} +5 -5
  202. package/dist/{cdn/chunks/de-DaOUfYBX.js → de-BLFp3nWx.js} +18 -3
  203. package/dist/{dist-C34cYI5S.js → dist-BMUUt3zJ.js} +964 -807
  204. package/dist/{editor-modal-BeX6otLk.js → editor-modal-D9HT9bD6.js} +15 -15
  205. package/dist/{en-C0pHHMiR.js → en-DGGQJGbm.js} +18 -1
  206. package/dist/en-De3uAutQ.js +1 -0
  207. package/dist/{cdn/chunks/es-CxyEKr6n.js → es-DTY9qgLv.js} +18 -3
  208. package/dist/{extensions-xCiyqSg7.js → extensions-Cm6K4SRX.js} +344 -338
  209. package/dist/{eye-ByMgHeA_.js → eye-B3psrAqd.js} +1 -1
  210. package/dist/{cdn/chunks/fr-CYbamiI6.js → fr-L4FqO9Gp.js} +18 -3
  211. package/dist/{image-Ch8tR35K.js → image-C3yuPDxx.js} +1 -1
  212. package/dist/index.d.ts +74 -13
  213. package/dist/{info-DzSD-Wpk.js → info-DKja7A68.js} +1 -1
  214. package/dist/{ja-DfaIAoGI.js → ja-6uOXkh4v.js} +18 -1
  215. package/dist/{keys-BCqskl51.js → keys-w_VRjoMu.js} +3 -3
  216. package/dist/{link-oDn9AR2w.js → link-DhzPI4Hn.js} +1 -1
  217. package/dist/{list-C5t07dp8.js → list-DVGn7Ik2.js} +1 -1
  218. package/dist/{loader-circle-k6xvKgUB.js → loader-circle-DqKWsMHO.js} +1 -1
  219. package/dist/{message-circle-C23R6OJR.js → message-circle-C4TonoBs.js} +1 -1
  220. package/dist/{nl-DkrB-VKZ.js → nl-DCxuxwNq.js} +18 -1
  221. package/dist/normalizeMergeTagMarkup-Da9JAgx7.js +298 -0
  222. package/dist/{package-C90eQ7NU.js → package-9OkiEO4S.js} +1 -1
  223. package/dist/{pencil-BK7GrQuA.js → pencil-M9vkOB7C.js} +1 -1
  224. package/dist/{plus-Cr0Mis63.js → plus-DxZiv9YC.js} +1 -1
  225. package/dist/{preRenderCustomBlocks-DvbRa3L3.js → preRenderCustomBlocks-CdqSp2P7.js} +4 -4
  226. package/dist/{pt-BR-CY5Ye7eP.js → pt-BR-CBkcrebr.js} +18 -1
  227. package/dist/{refresh-cw-_ZLOIEvA.js → refresh-cw-UY8_sdFG.js} +1 -1
  228. package/dist/{rotate-ccw-CB5wsHwv.js → rotate-ccw-BFTGCpHn.js} +1 -1
  229. package/dist/{sanitizeHtml-D_ab7dD6.js → sanitizeHtml-wBibnBF4.js} +6 -6
  230. package/dist/{search-BmrQNox8.js → search-RuGJnMEn.js} +1 -1
  231. package/dist/{send-blAsIBBg.js → send-DGB1ar02.js} +1 -1
  232. package/dist/{smartphone-BPpWYrwV.js → smartphone-CVA29CU_.js} +1 -1
  233. package/dist/{socialIcons-DhAolBjt.js → socialIcons-CJD6OsI7.js} +283 -269
  234. package/dist/{sparkles-OqIxrNp-.js → sparkles-IHfEwEcd.js} +1 -1
  235. package/dist/{square-BP-V7iT-.js → square-_Cl44UU6.js} +1 -1
  236. package/dist/style.css +1 -1
  237. package/dist/templatical-editor.js +851 -854
  238. package/dist/{text-align-start-4mwX2o-F.js → text-align-start-Dqk2Xt_Q.js} +13 -13
  239. package/dist/{trash-B99WixTA.js → trash-Cr7rD5Hh.js} +1 -1
  240. package/dist/{triangle-alert-CHMiDkHa.js → triangle-alert-CKcpwtUj.js} +1 -1
  241. package/dist/{upload-Cp8o-hrN.js → upload-DR9pqVON.js} +1 -1
  242. package/dist/{useCloudI18n-Dh2iydo1.js → useCloudI18n-BczJoFf4.js} +1 -1
  243. package/dist/{useEditorRoot-DY3mgcHm.js → useEditorRoot-BcXKhM_8.js} +1 -1
  244. package/dist/{useI18n-CgtvtF4C.js → useI18n-zeWYtWSv.js} +1 -1
  245. package/dist/useLocalizedDisplay-Cbhx208c.js +31 -0
  246. package/dist/{useLogicTag-BmuakZBd.js → useLogicTag-DLkYos2Q.js} +3 -3
  247. package/dist/{useMergeTag-DC4a8b_v.js → useMergeTag-IoWOO679.js} +5 -5
  248. package/dist/{usePopoverPosition-VDQjyX_A.js → usePopoverPosition-Br3zt_MQ.js} +4 -4
  249. package/dist/{useScrollToBlock-B35ObCGK.js → useScrollToBlock-BfOzc1Z6.js} +2 -2
  250. package/dist/{withCurrentFont-BSxJai99.js → withCurrentFont-m_PHcOD0.js} +1 -1
  251. package/dist/{x-BIBStNMS.js → x-DZSFHafL.js} +1 -1
  252. package/package.json +10 -10
  253. package/dist/BlockPreviewCanvas-DtOo5y3U.js +0 -140
  254. package/dist/WrapperBlock-BUzQTZuu.js +0 -44
  255. package/dist/cdn/chunks/BlockPreviewCanvas-B6ndvof2.js.map +0 -1
  256. package/dist/cdn/chunks/LogicTagInsertButton-PDKuo2J3.js.map +0 -1
  257. package/dist/cdn/chunks/Toolbar-Cv6Rv1S-.js.map +0 -1
  258. package/dist/cdn/chunks/WrapperBlock-C_uE5rPJ.js +0 -46
  259. package/dist/cdn/chunks/WrapperBlock-C_uE5rPJ.js.map +0 -1
  260. package/dist/cdn/chunks/ca-DOuIxWRv.js.map +0 -1
  261. package/dist/cdn/chunks/composables-BxikPuC1.js.map +0 -1
  262. package/dist/cdn/chunks/de-DaOUfYBX.js.map +0 -1
  263. package/dist/cdn/chunks/en-B6tLGRHq.js +0 -1
  264. package/dist/cdn/chunks/en-C0pHHMiR.js.map +0 -1
  265. package/dist/cdn/chunks/es-CxyEKr6n.js.map +0 -1
  266. package/dist/cdn/chunks/extensions-DuDWpKo7.js.map +0 -1
  267. package/dist/cdn/chunks/fr-CYbamiI6.js.map +0 -1
  268. package/dist/cdn/chunks/ja-DfaIAoGI.js.map +0 -1
  269. package/dist/cdn/chunks/keys-CoQtCqNv.js.map +0 -1
  270. package/dist/cdn/chunks/nl-DkrB-VKZ.js.map +0 -1
  271. package/dist/cdn/chunks/normalizeMergeTagMarkup-Bn_hl4jd.js +0 -290
  272. package/dist/cdn/chunks/normalizeMergeTagMarkup-Bn_hl4jd.js.map +0 -1
  273. package/dist/cdn/chunks/pt-BR-CY5Ye7eP.js.map +0 -1
  274. package/dist/cdn/chunks/src-712f3ofG.js.map +0 -1
  275. package/dist/cdn/chunks/src-B2tQbzf6.js +0 -677
  276. package/dist/cdn/chunks/src-B2tQbzf6.js.map +0 -1
  277. package/dist/cdn/chunks/src-ZFw5fg_z.js.map +0 -1
  278. package/dist/cdn/chunks/useLocalizedDisplay-DiNjT22M.js +0 -33
  279. package/dist/en-Do0SU6tR.js +0 -1
  280. package/dist/normalizeMergeTagMarkup-C7FGNURu.js +0 -288
  281. package/dist/useLocalizedDisplay-C9MBFUr4.js +0 -31
@@ -1,40 +1,40 @@
1
1
  import { C as e, E as t, F as n, G as r, H as i, L as a, O as o, Q as s, X as c, Y as l, _ as u, b as d, c as f, ct as p, dt as m, f as h, g, h as _, j as v, l as y, m as b, mt as x, n as S, p as C, pt as w, r as T, tt as E, u as D, x as O } from "./draggable-DepKdldn.js";
2
- import { c as k, i as A, s as j, u as M } from "./src-ZFw5fg_z.js";
3
- import { G as N, Ht as P, N as F, t as I } from "./icons-Da9GKjPx.js";
4
- import { et as ee, it as te, p as ne, tt as re } from "./keys-CoQtCqNv.js";
5
- import { t as L } from "./useI18n-BnJYydPv.js";
6
- import { d as ie } from "./styleConstants-CgiNKdnc.js";
7
- import { t as ae } from "./dist-DqGgijFI.js";
8
- import { t as R } from "./useMergeTag-JLz3Pqcw.js";
9
- import { a as oe, c as se, n as ce, o as le, r as ue, s as de, t as fe } from "./usePopoverPosition-BWAXWeBv.js";
10
- import { t as z } from "./useLogicTag-SvMW4g00.js";
2
+ import { G as k, J as A, U as j, Y as M, Z as N, nt as P, rt as F } from "./src-mXG-Of9A.js";
3
+ import { G as I, Ht as L, N as R, t as z } from "./icons-DHExFLlT.js";
4
+ import { at as ee, nt as B, p as te, tt as ne } from "./keys-BUmIvYy3.js";
5
+ import { t as V } from "./useI18n-D8s7HtTn.js";
6
+ import { d as re } from "./styleConstants-CgiNKdnc.js";
7
+ import { t as ie } from "./dist-DqGgijFI.js";
8
+ import { t as ae } from "./useMergeTag-B4FHCGGm.js";
9
+ import { a as oe, c as se, n as ce, o as le, r as ue, s as de, t as fe } from "./usePopoverPosition-esO6wjvU.js";
10
+ import { t as H } from "./useLogicTag-DLvWzWsp.js";
11
11
  // ../../node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/math.js
12
- var B = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, V = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n, H = (e) => he(U(e)), U = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
12
+ var U = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, W = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n, G = (e) => ge(K(e)), K = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
13
13
  r: parseInt(e[0] + e[0], 16),
14
14
  g: parseInt(e[1] + e[1], 16),
15
15
  b: parseInt(e[2] + e[2], 16),
16
- a: e.length === 4 ? V(parseInt(e[3] + e[3], 16) / 255, 2) : 1
16
+ a: e.length === 4 ? W(parseInt(e[3] + e[3], 16) / 255, 2) : 1
17
17
  } : {
18
18
  r: parseInt(e.substring(0, 2), 16),
19
19
  g: parseInt(e.substring(2, 4), 16),
20
20
  b: parseInt(e.substring(4, 6), 16),
21
- a: e.length === 8 ? V(parseInt(e.substring(6, 8), 16) / 255, 2) : 1
22
- }), pe = (e) => me(K(e)), W = ({ h: e, s: t, v: n, a: r }) => {
21
+ a: e.length === 8 ? W(parseInt(e.substring(6, 8), 16) / 255, 2) : 1
22
+ }), q = (e) => he(me(e)), pe = ({ h: e, s: t, v: n, a: r }) => {
23
23
  let i = (200 - t) * n / 100;
24
24
  return {
25
- h: V(e),
26
- s: V(i > 0 && i < 200 ? t * n / 100 / (i <= 100 ? i : 200 - i) * 100 : 0),
27
- l: V(i / 2),
28
- a: V(r, 2)
25
+ h: W(e),
26
+ s: W(i > 0 && i < 200 ? t * n / 100 / (i <= 100 ? i : 200 - i) * 100 : 0),
27
+ l: W(i / 2),
28
+ a: W(r, 2)
29
29
  };
30
- }, G = (e) => {
31
- let { h: t, s: n, l: r } = W(e);
30
+ }, J = (e) => {
31
+ let { h: t, s: n, l: r } = pe(e);
32
32
  return `hsl(${t}, ${n}%, ${r}%)`;
33
- }, K = ({ h: e, s: t, v: n, a: r }) => {
33
+ }, me = ({ h: e, s: t, v: n, a: r }) => {
34
34
  e = e / 360 * 6, t /= 100, n /= 100;
35
35
  let i = Math.floor(e), a = n * (1 - t), o = n * (1 - (e - i) * t), s = n * (1 - (1 - e + i) * t), c = i % 6;
36
36
  return {
37
- r: V([
37
+ r: W([
38
38
  n,
39
39
  o,
40
40
  a,
@@ -42,7 +42,7 @@ var B = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, V = (e, t = 0, n = 10 **
42
42
  s,
43
43
  n
44
44
  ][c] * 255),
45
- g: V([
45
+ g: W([
46
46
  s,
47
47
  n,
48
48
  n,
@@ -50,7 +50,7 @@ var B = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, V = (e, t = 0, n = 10 **
50
50
  a,
51
51
  a
52
52
  ][c] * 255),
53
- b: V([
53
+ b: W([
54
54
  a,
55
55
  a,
56
56
  s,
@@ -58,73 +58,73 @@ var B = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, V = (e, t = 0, n = 10 **
58
58
  n,
59
59
  o
60
60
  ][c] * 255),
61
- a: V(r, 2)
61
+ a: W(r, 2)
62
62
  };
63
- }, q = (e) => {
63
+ }, Y = (e) => {
64
64
  let t = e.toString(16);
65
65
  return t.length < 2 ? "0" + t : t;
66
- }, me = ({ r: e, g: t, b: n, a: r }) => {
67
- let i = r < 1 ? q(V(r * 255)) : "";
68
- return "#" + q(e) + q(t) + q(n) + i;
69
66
  }, he = ({ r: e, g: t, b: n, a: r }) => {
67
+ let i = r < 1 ? Y(W(r * 255)) : "";
68
+ return "#" + Y(e) + Y(t) + Y(n) + i;
69
+ }, ge = ({ r: e, g: t, b: n, a: r }) => {
70
70
  let i = Math.max(e, t, n), a = i - Math.min(e, t, n), o = a ? i === e ? (t - n) / a : i === t ? 2 + (n - e) / a : 4 + (e - t) / a : 0;
71
71
  return {
72
- h: V(60 * (o < 0 ? o + 6 : o)),
73
- s: V(i ? a / i * 100 : 0),
74
- v: V(i / 255 * 100),
72
+ h: W(60 * (o < 0 ? o + 6 : o)),
73
+ s: W(i ? a / i * 100 : 0),
74
+ v: W(i / 255 * 100),
75
75
  a: r
76
76
  };
77
- }, ge = (e, t) => {
77
+ }, _e = (e, t) => {
78
78
  if (e === t) return !0;
79
79
  for (let n in e) if (e[n] !== t[n]) return !1;
80
80
  return !0;
81
- }, _e = (e, t) => e.toLowerCase() === t.toLowerCase() || ge(U(e), U(t)), ve = {}, ye = (e) => {
82
- let t = ve[e];
83
- return t || (t = document.createElement("template"), t.innerHTML = e, ve[e] = t), t;
84
- }, J = (e, t, n) => {
81
+ }, ve = (e, t) => e.toLowerCase() === t.toLowerCase() || _e(K(e), K(t)), X = {}, Z = (e) => {
82
+ let t = X[e];
83
+ return t || (t = document.createElement("template"), t.innerHTML = e, X[e] = t), t;
84
+ }, Q = (e, t, n) => {
85
85
  e.dispatchEvent(new CustomEvent(t, {
86
86
  bubbles: !0,
87
87
  detail: n
88
88
  }));
89
- }, Y = !1, X = (e) => "touches" in e, be = (e) => Y && !X(e) ? !1 : (Y ||= X(e), !0), Z = (e, t) => {
90
- let n = X(t) ? t.touches[0] : t, r = e.el.getBoundingClientRect();
91
- J(e.el, "move", e.getMove({
92
- x: B((n.pageX - (r.left + window.pageXOffset)) / r.width),
93
- y: B((n.pageY - (r.top + window.pageYOffset)) / r.height)
89
+ }, $ = !1, ye = (e) => "touches" in e, be = (e) => $ && !ye(e) ? !1 : ($ ||= ye(e), !0), xe = (e, t) => {
90
+ let n = ye(t) ? t.touches[0] : t, r = e.el.getBoundingClientRect();
91
+ Q(e.el, "move", e.getMove({
92
+ x: U((n.pageX - (r.left + window.pageXOffset)) / r.width),
93
+ y: U((n.pageY - (r.top + window.pageYOffset)) / r.height)
94
94
  }));
95
- }, xe = (e, t) => {
95
+ }, Se = (e, t) => {
96
96
  let n = t.keyCode;
97
- n > 40 || e.xy && n < 37 || n < 33 || (t.preventDefault(), J(e.el, "move", e.getMove({
97
+ n > 40 || e.xy && n < 37 || n < 33 || (t.preventDefault(), Q(e.el, "move", e.getMove({
98
98
  x: n === 39 ? .01 : n === 37 ? -.01 : n === 34 ? .05 : n === 33 ? -.05 : n === 35 ? 1 : n === 36 ? -1 : 0,
99
99
  y: n === 40 ? .01 : n === 38 ? -.01 : 0
100
100
  }, !0)));
101
- }, Se = class {
101
+ }, Ce = class {
102
102
  constructor(e, t, n, r) {
103
- let i = ye(`<div role="slider" tabindex="0" part="${t}" ${n}><div part="${t}-pointer"></div></div>`);
103
+ let i = Z(`<div role="slider" tabindex="0" part="${t}" ${n}><div part="${t}-pointer"></div></div>`);
104
104
  e.appendChild(i.content.cloneNode(!0));
105
105
  let a = e.querySelector(`[part=${t}]`);
106
106
  a.addEventListener("mousedown", this), a.addEventListener("touchstart", this), a.addEventListener("keydown", this), this.el = a, this.xy = r, this.nodes = [a.firstChild, a];
107
107
  }
108
108
  set dragging(e) {
109
109
  let t = e ? document.addEventListener : document.removeEventListener;
110
- t(Y ? "touchmove" : "mousemove", this), t(Y ? "touchend" : "mouseup", this);
110
+ t($ ? "touchmove" : "mousemove", this), t($ ? "touchend" : "mouseup", this);
111
111
  }
112
112
  handleEvent(e) {
113
113
  switch (e.type) {
114
114
  case "mousedown":
115
115
  case "touchstart":
116
- if (e.preventDefault(), !be(e) || !Y && e.button != 0) return;
117
- this.el.focus(), Z(this, e), this.dragging = !0;
116
+ if (e.preventDefault(), !be(e) || !$ && e.button != 0) return;
117
+ this.el.focus(), xe(this, e), this.dragging = !0;
118
118
  break;
119
119
  case "mousemove":
120
120
  case "touchmove":
121
- e.preventDefault(), Z(this, e);
121
+ e.preventDefault(), xe(this, e);
122
122
  break;
123
123
  case "mouseup":
124
124
  case "touchend":
125
125
  this.dragging = !1;
126
126
  break;
127
- case "keydown": xe(this, e);
127
+ case "keydown": Se(this, e);
128
128
  }
129
129
  }
130
130
  style(e) {
@@ -132,25 +132,25 @@ var B = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, V = (e, t = 0, n = 10 **
132
132
  for (let n in e) this.nodes[t].style.setProperty(n, e[n]);
133
133
  });
134
134
  }
135
- }, Ce = class extends Se {
135
+ }, we = class extends Ce {
136
136
  constructor(e) {
137
137
  super(e, "hue", "aria-label=\"Hue\" aria-valuemin=\"0\" aria-valuemax=\"360\"", !1);
138
138
  }
139
139
  update({ h: e }) {
140
140
  this.h = e, this.style([{
141
141
  left: `${e / 360 * 100}%`,
142
- color: G({
142
+ color: J({
143
143
  h: e,
144
144
  s: 100,
145
145
  v: 100,
146
146
  a: 1
147
147
  })
148
- }]), this.el.setAttribute("aria-valuenow", `${V(e)}`);
148
+ }]), this.el.setAttribute("aria-valuenow", `${W(e)}`);
149
149
  }
150
150
  getMove(e, t) {
151
- return { h: t ? B(this.h + e.x * 360, 0, 360) : 360 * e.x };
151
+ return { h: t ? U(this.h + e.x * 360, 0, 360) : 360 * e.x };
152
152
  }
153
- }, Q = class extends Se {
153
+ }, Te = class extends Ce {
154
154
  constructor(e) {
155
155
  super(e, "saturation", "aria-label=\"Color\"", !0);
156
156
  }
@@ -158,47 +158,47 @@ var B = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, V = (e, t = 0, n = 10 **
158
158
  this.hsva = e, this.style([{
159
159
  top: `${100 - e.v}%`,
160
160
  left: `${e.s}%`,
161
- color: G(e)
162
- }, { "background-color": G({
161
+ color: J(e)
162
+ }, { "background-color": J({
163
163
  h: e.h,
164
164
  s: 100,
165
165
  v: 100,
166
166
  a: 1
167
- }) }]), this.el.setAttribute("aria-valuetext", `Saturation ${V(e.s)}%, Brightness ${V(e.v)}%`);
167
+ }) }]), this.el.setAttribute("aria-valuetext", `Saturation ${W(e.s)}%, Brightness ${W(e.v)}%`);
168
168
  }
169
169
  getMove(e, t) {
170
170
  return {
171
- s: t ? B(this.hsva.s + e.x * 100, 0, 100) : e.x * 100,
172
- v: t ? B(this.hsva.v - e.y * 100, 0, 100) : Math.round(100 - e.y * 100)
171
+ s: t ? U(this.hsva.s + e.x * 100, 0, 100) : e.x * 100,
172
+ v: t ? U(this.hsva.v - e.y * 100, 0, 100) : Math.round(100 - e.y * 100)
173
173
  };
174
174
  }
175
- }, we = ":host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:\"\";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}", Te = "[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}", Ee = "[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}", $ = Symbol("same"), De = Symbol("color"), Oe = Symbol("hsva"), ke = Symbol("update"), Ae = Symbol("parts"), je = Symbol("css"), Me = Symbol("sliders"), Ne = class extends HTMLElement {
175
+ }, 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}", ke = Symbol("same"), Ae = Symbol("color"), je = Symbol("hsva"), Me = Symbol("update"), Ne = Symbol("parts"), Pe = Symbol("css"), Fe = Symbol("sliders"), Ie = class extends HTMLElement {
176
176
  static get observedAttributes() {
177
177
  return ["color"];
178
178
  }
179
- get [je]() {
179
+ get [Pe]() {
180
180
  return [
181
- we,
182
- Te,
183
- Ee
181
+ Ee,
182
+ De,
183
+ Oe
184
184
  ];
185
185
  }
186
- get [Me]() {
187
- return [Q, Ce];
186
+ get [Fe]() {
187
+ return [Te, we];
188
188
  }
189
189
  get color() {
190
- return this[De];
190
+ return this[Ae];
191
191
  }
192
192
  set color(e) {
193
- if (!this[$](e)) {
193
+ if (!this[ke](e)) {
194
194
  let t = this.colorModel.toHsva(e);
195
- this[ke](t), this[De] = e;
195
+ this[Me](t), this[Ae] = e;
196
196
  }
197
197
  }
198
198
  constructor() {
199
199
  super();
200
- let e = ye(`<style>${this[je].join("")}</style>`), t = this.attachShadow({ mode: "open" });
201
- t.appendChild(e.content.cloneNode(!0)), t.addEventListener("move", this), this[Ae] = this[Me].map((e) => new e(t));
200
+ let e = Z(`<style>${this[Pe].join("")}</style>`), t = this.attachShadow({ mode: "open" });
201
+ t.appendChild(e.content.cloneNode(!0)), t.addEventListener("move", this), this[Ne] = this[Fe].map((e) => new e(t));
202
202
  }
203
203
  connectedCallback() {
204
204
  if (this.hasOwnProperty("color")) {
@@ -208,78 +208,78 @@ var B = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, V = (e, t = 0, n = 10 **
208
208
  }
209
209
  attributeChangedCallback(e, t, n) {
210
210
  let r = this.colorModel.fromAttr(n);
211
- this[$](r) || (this.color = r);
211
+ this[ke](r) || (this.color = r);
212
212
  }
213
213
  handleEvent(e) {
214
- let t = this[Oe], n = {
214
+ let t = this[je], n = {
215
215
  ...t,
216
216
  ...e.detail
217
217
  };
218
- this[ke](n);
218
+ this[Me](n);
219
219
  let r;
220
- !ge(n, t) && !this[$](r = this.colorModel.fromHsva(n)) && (this[De] = r, J(this, "color-changed", { value: r }));
220
+ !_e(n, t) && !this[ke](r = this.colorModel.fromHsva(n)) && (this[Ae] = r, Q(this, "color-changed", { value: r }));
221
221
  }
222
- [$](e) {
222
+ [ke](e) {
223
223
  return this.color && this.colorModel.equal(e, this.color);
224
224
  }
225
- [ke](e) {
226
- this[Oe] = e, this[Ae].forEach((t) => t.update(e));
225
+ [Me](e) {
226
+ this[je] = e, this[Ne].forEach((t) => t.update(e));
227
227
  }
228
- }, Pe = {
228
+ }, Le = {
229
229
  defaultColor: "#000",
230
- toHsva: H,
231
- fromHsva: ({ h: e, s: t, v: n }) => pe({
230
+ toHsva: G,
231
+ fromHsva: ({ h: e, s: t, v: n }) => q({
232
232
  h: e,
233
233
  s: t,
234
234
  v: n,
235
235
  a: 1
236
236
  }),
237
- equal: _e,
237
+ equal: ve,
238
238
  fromAttr: (e) => e
239
- }, Fe = class extends Ne {
239
+ }, Re = class extends Ie {
240
240
  get colorModel() {
241
- return Pe;
241
+ return Le;
242
242
  }
243
243
  };
244
- customElements.define("hex-color-picker", class extends Fe {});
244
+ customElements.define("hex-color-picker", class extends Re {});
245
245
  // src/components/ColorPicker.vue?vue&type=script&setup=true&lang.ts
246
- var Ie = [
246
+ var ze = [
247
247
  "disabled",
248
248
  "aria-label",
249
249
  "title",
250
250
  "aria-expanded"
251
- ], Le = {
251
+ ], Be = {
252
252
  key: 0,
253
253
  class: "tpl:relative tpl:flex-1"
254
- }, Re = [
254
+ }, Ve = [
255
255
  "value",
256
256
  "placeholder",
257
257
  "disabled",
258
258
  "aria-label"
259
- ], ze = ["aria-label", "title"], Be = ["data-tpl-theme"], Ve = [
259
+ ], He = ["aria-label", "title"], Ue = ["data-tpl-theme"], We = [
260
260
  "aria-pressed",
261
261
  "aria-label",
262
262
  "title"
263
- ], He = ["aria-label"], Ue = [
263
+ ], Ge = ["aria-label"], Ke = [
264
264
  "aria-label",
265
265
  "title",
266
266
  "aria-checked",
267
267
  "tabindex"
268
- ], We = [
268
+ ], qe = [
269
269
  "aria-label",
270
270
  "title",
271
271
  "aria-checked",
272
272
  "tabindex",
273
273
  "onClick"
274
- ], Ge = ["color", "aria-label"], Ke = {
274
+ ], Je = ["color", "aria-label"], Ye = {
275
275
  key: 3,
276
276
  class: "tpl:relative tpl:mt-2"
277
- }, qe = [
277
+ }, Xe = [
278
278
  "value",
279
279
  "placeholder",
280
280
  "disabled",
281
281
  "aria-label"
282
- ], Je = ["aria-label", "title"], Ye = /* @__PURE__ */ e({
282
+ ], Ze = ["aria-label", "title"], Qe = /* @__PURE__ */ e({
283
283
  __name: "ColorPicker",
284
284
  props: {
285
285
  modelValue: {},
@@ -307,37 +307,37 @@ var Ie = [
307
307
  },
308
308
  emits: ["update:modelValue"],
309
309
  setup(e, { emit: t }) {
310
- let s = e, c = se(), l = C(() => s.disabled || !c.value), v = t, { t: T } = L(), k = E(!1);
310
+ let s = e, c = se(), l = C(() => s.disabled || !c.value), v = t, { t: T } = V(), k = E(!1);
311
311
  i(l, (e) => {
312
312
  e && (k.value = !1);
313
313
  }, { flush: "sync" });
314
314
  let A = E(), j = E(), M = E(!1);
315
- ae(A, () => {
315
+ ie(A, () => {
316
316
  k.value = !1;
317
317
  }, { ignore: [j] });
318
- let N = C(() => !s.modelValue), P = C(() => s.modelValue.trim().toLowerCase() === "transparent"), F = C(() => le(s.modelValue)), re = C(() => (s.modelValue ? de(s.modelValue) : null) || (de(s.seedColor) ?? "#ffffff")), R = C(() => !l.value && !N.value), z = o(ne, ue), B = C(() => [...new Set(s.presets ?? z.presets)]), V = C(() => s.allowCustom ?? z.allowCustom), H = C(() => B.value.length > 0), U = C(() => V.value || !H.value), pe = C(() => oe(s.modelValue));
319
- function W(e) {
320
- return pe.value !== "" && oe(e) === pe.value;
321
- }
318
+ let N = C(() => !s.modelValue), P = C(() => s.modelValue.trim().toLowerCase() === "transparent"), F = C(() => le(s.modelValue)), I = C(() => (s.modelValue ? de(s.modelValue) : null) || (de(s.seedColor) ?? "#ffffff")), L = C(() => !l.value && !N.value), R = o(te, ue), B = C(() => [...new Set(s.presets ?? R.presets)]), ae = C(() => s.allowCustom ?? R.allowCustom), H = C(() => B.value.length > 0), U = C(() => ae.value || !H.value), W = C(() => oe(s.modelValue));
322
319
  function G(e) {
320
+ return W.value !== "" && oe(e) === W.value;
321
+ }
322
+ function K(e) {
323
323
  l.value || v("update:modelValue", e);
324
324
  }
325
- let K = C(() => H.value && !U.value);
326
- function q(e) {
327
- return K.value ? e + 1 : e;
325
+ let q = C(() => H.value && !U.value);
326
+ function pe(e) {
327
+ return q.value ? e + 1 : e;
328
328
  }
329
- let me = C(() => {
330
- if (K.value && N.value) return 0;
331
- let e = B.value.findIndex((e) => W(e));
332
- return e === -1 ? 0 : q(e);
329
+ let J = C(() => {
330
+ if (q.value && N.value) return 0;
331
+ let e = B.value.findIndex((e) => G(e));
332
+ return e === -1 ? 0 : pe(e);
333
333
  });
334
- function he() {
335
- return me.value === 0 ? 0 : -1;
334
+ function me() {
335
+ return J.value === 0 ? 0 : -1;
336
336
  }
337
- function ge(e) {
338
- return q(e) === me.value ? 0 : -1;
337
+ function Y(e) {
338
+ return pe(e) === J.value ? 0 : -1;
339
339
  }
340
- function _e(e) {
340
+ function he(e) {
341
341
  if (![
342
342
  "ArrowRight",
343
343
  "ArrowDown",
@@ -347,35 +347,35 @@ var Ie = [
347
347
  let t = Array.from(e.currentTarget.querySelectorAll("[role=\"radio\"]")), n = e.target.closest("[role=\"radio\"]"), r = n ? t.indexOf(n) : -1;
348
348
  r !== -1 && (t[(r + (e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : -1) + t.length) % t.length]?.focus(), e.preventDefault());
349
349
  }
350
- function ve(e) {
350
+ function ge(e) {
351
351
  l.value || (M.value = !0, v("update:modelValue", e.detail.value));
352
352
  }
353
- function ye() {
353
+ function _e() {
354
354
  l.value || (M.value = !1);
355
355
  }
356
- function J() {
357
- l.value || !M.value && N.value && v("update:modelValue", re.value);
356
+ function ve() {
357
+ l.value || !M.value && N.value && v("update:modelValue", I.value);
358
358
  }
359
- function Y(e) {
359
+ function X(e) {
360
360
  l.value || v("update:modelValue", e.target.value);
361
361
  }
362
- function X() {
362
+ function Z() {
363
363
  l.value || v("update:modelValue", "");
364
364
  }
365
- function be() {
365
+ function Q() {
366
366
  l.value || v("update:modelValue", "transparent");
367
367
  }
368
- let Z = ce(), { toLocal: xe } = fe(), Se = o(ee, null), Ce = o(te, null), Q = E({
368
+ let $ = ce(), { toLocal: ye } = fe(), be = o(ne, null), xe = o(ee, null), Se = E({
369
369
  top: 0,
370
370
  left: 0
371
371
  });
372
- function we() {
372
+ function Ce() {
373
373
  if (!l.value) {
374
374
  if (!k.value) {
375
375
  let e = j.value?.getBoundingClientRect();
376
376
  if (e) {
377
377
  let t = e.bottom + 8 + 240 <= window.innerHeight ? e.bottom + 8 : Math.max(8, e.top - 240 - 8);
378
- Q.value = xe({
378
+ Se.value = ye({
379
379
  top: t,
380
380
  left: e.left
381
381
  });
@@ -399,37 +399,37 @@ var Ie = [
399
399
  k.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !l.value && "tpl:hover:border-[var(--tpl-text-dim)]",
400
400
  e.size === "sm" ? "tpl:size-8" : "tpl:size-10"
401
401
  ]),
402
- onClick: we
402
+ onClick: Ce
403
403
  }, [b("span", {
404
404
  class: m(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", {
405
405
  "tpl-color-swatch-empty": N.value,
406
406
  "tpl-color-swatch-transparent": P.value
407
407
  }]),
408
408
  style: w(N.value || P.value ? void 0 : { backgroundColor: F.value })
409
- }, null, 6)], 10, Ie),
410
- !e.swatchOnly && U.value ? (n(), u("div", Le, [b("input", {
409
+ }, null, 6)], 10, ze),
410
+ !e.swatchOnly && U.value ? (n(), u("div", Be, [b("input", {
411
411
  type: "text",
412
- class: m([p(ie), "tpl:w-full"]),
413
- style: w(R.value ? { paddingRight: "2.25rem" } : void 0),
412
+ class: m([p(re), "tpl:w-full"]),
413
+ style: w(L.value ? { paddingRight: "2.25rem" } : void 0),
414
414
  value: F.value,
415
415
  placeholder: e.placeholder || p(T).colorPicker.notSet,
416
416
  disabled: l.value,
417
417
  "aria-label": p(T).colorPicker.hexValue,
418
- onInput: Y
419
- }, null, 46, Re), R.value ? (n(), u("button", {
418
+ onInput: X
419
+ }, null, 46, Ve), L.value ? (n(), u("button", {
420
420
  key: 0,
421
421
  type: "button",
422
422
  "aria-label": p(T).colorPicker.clear,
423
423
  title: p(T).colorPicker.clear,
424
424
  class: "tpl:absolute tpl:right-2 tpl:top-1/2 tpl:flex tpl:size-6 tpl:-translate-y-1/2 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
425
- onClick: X
426
- }, [O(p(I), {
425
+ onClick: Z
426
+ }, [O(p(z), {
427
427
  size: 14,
428
428
  "stroke-width": 1.5
429
- })], 8, ze)) : g("", !0)])) : g("", !0),
429
+ })], 8, He)) : g("", !0)])) : g("", !0),
430
430
  (n(), _(h, {
431
- to: p(Z),
432
- disabled: !p(Z)
431
+ to: p($),
432
+ disabled: !p($)
433
433
  }, [O(S, {
434
434
  "enter-active-class": "tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
435
435
  "enter-from-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1",
@@ -442,12 +442,12 @@ var Ie = [
442
442
  key: 0,
443
443
  ref_key: "popoverRef",
444
444
  ref: A,
445
- "data-tpl-theme": p(Ce),
445
+ "data-tpl-theme": p(xe),
446
446
  class: "tpl-color-popover tpl:absolute tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3 tpl:shadow-[var(--tpl-shadow-lg)]",
447
447
  style: w({
448
- top: `${Q.value.top}px`,
449
- left: `${Q.value.left}px`,
450
- ...p(Se)
448
+ top: `${Se.value.top}px`,
449
+ left: `${Se.value.left}px`,
450
+ ...p(be)
451
451
  })
452
452
  }, [
453
453
  e.allowTransparent ? (n(), u("button", {
@@ -458,83 +458,83 @@ var Ie = [
458
458
  "aria-label": p(T).colorPicker.transparent,
459
459
  title: p(T).colorPicker.transparent,
460
460
  class: m(["tpl:mb-2 tpl:flex tpl:w-full tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2 tpl:py-1 tpl:text-left tpl:text-xs tpl:text-[var(--tpl-text)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)]", P.value ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
461
- onClick: be
462
- }, [i[2] ||= b("span", { class: "tpl-color-swatch-transparent tpl:size-4 tpl:shrink-0 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)]" }, null, -1), d(" " + x(p(T).colorPicker.transparent), 1)], 10, Ve)) : g("", !0),
461
+ onClick: Q
462
+ }, [i[2] ||= b("span", { class: "tpl-color-swatch-transparent tpl:size-4 tpl:shrink-0 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)]" }, null, -1), d(" " + x(p(T).colorPicker.transparent), 1)], 10, We)) : g("", !0),
463
463
  H.value ? (n(), u("div", {
464
464
  key: 1,
465
465
  role: "radiogroup",
466
466
  "aria-label": p(T).colorPicker.presetColors,
467
467
  class: m(["tpl:flex tpl:flex-wrap tpl:gap-1.5", U.value && "tpl:mb-2"]),
468
- onKeydown: _e
469
- }, [K.value ? (n(), u("button", {
468
+ onKeydown: he
469
+ }, [q.value ? (n(), u("button", {
470
470
  key: 0,
471
471
  type: "button",
472
472
  role: "radio",
473
473
  "aria-label": p(T).colorPicker.clear,
474
474
  title: p(T).colorPicker.clear,
475
475
  "aria-checked": N.value,
476
- tabindex: he(),
476
+ tabindex: me(),
477
477
  class: m(["tpl-color-swatch-empty tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", N.value ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
478
- onClick: X
479
- }, null, 10, Ue)) : g("", !0), (n(!0), u(D, null, a(B.value, (e, t) => (n(), u("button", {
478
+ onClick: Z
479
+ }, null, 10, Ke)) : g("", !0), (n(!0), u(D, null, a(B.value, (e, t) => (n(), u("button", {
480
480
  key: e,
481
481
  type: "button",
482
482
  role: "radio",
483
483
  "aria-label": e,
484
484
  title: e,
485
- "aria-checked": W(e),
486
- tabindex: ge(t),
485
+ "aria-checked": G(e),
486
+ tabindex: Y(t),
487
487
  style: w({ backgroundColor: e }),
488
- class: m(["tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", W(e) ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
489
- onClick: (t) => G(e)
490
- }, null, 14, We))), 128))], 42, He)) : g("", !0),
488
+ class: m(["tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", 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)]"]),
489
+ onClick: (t) => K(e)
490
+ }, null, 14, qe))), 128))], 42, Ge)) : g("", !0),
491
491
  U.value ? (n(), u("hex-color-picker", {
492
492
  key: 2,
493
- color: re.value,
493
+ color: I.value,
494
494
  "aria-label": p(T).colorPicker.pickColor,
495
- onColorChanged: ve,
496
- onPointerdown: ye,
497
- onPointerup: J,
495
+ onColorChanged: ge,
496
+ onPointerdown: _e,
497
+ onPointerup: ve,
498
498
  onKeydown: i[0] ||= f((e) => k.value = !1, ["escape"])
499
- }, null, 40, Ge)) : g("", !0),
500
- e.swatchOnly && U.value ? (n(), u("div", Ke, [b("input", {
499
+ }, null, 40, Je)) : g("", !0),
500
+ e.swatchOnly && U.value ? (n(), u("div", Ye, [b("input", {
501
501
  type: "text",
502
- class: m([p(ie), "tpl:w-full"]),
503
- style: w(R.value ? { paddingRight: "2.25rem" } : void 0),
502
+ class: m([p(re), "tpl:w-full"]),
503
+ style: w(L.value ? { paddingRight: "2.25rem" } : void 0),
504
504
  value: F.value,
505
505
  placeholder: e.placeholder || p(T).colorPicker.notSet,
506
506
  disabled: l.value,
507
507
  "aria-label": p(T).colorPicker.hexValue,
508
- onChange: Y,
508
+ onChange: X,
509
509
  onKeydown: i[1] ||= f(y((e) => e.target.blur(), ["prevent"]), ["enter"])
510
- }, null, 46, qe), R.value ? (n(), u("button", {
510
+ }, null, 46, Xe), L.value ? (n(), u("button", {
511
511
  key: 0,
512
512
  type: "button",
513
513
  "aria-label": p(T).colorPicker.clear,
514
514
  title: p(T).colorPicker.clear,
515
515
  class: "tpl:absolute tpl:right-2 tpl:top-1/2 tpl:flex tpl:size-6 tpl:-translate-y-1/2 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
516
- onClick: X
517
- }, [O(p(I), {
516
+ onClick: Z
517
+ }, [O(p(z), {
518
518
  size: 14,
519
519
  "stroke-width": 1.5
520
- })], 8, Je)) : g("", !0)])) : g("", !0)
521
- ], 12, Be)) : g("", !0)]),
520
+ })], 8, Ze)) : g("", !0)])) : g("", !0)
521
+ ], 12, Ue)) : g("", !0)]),
522
522
  _: 1
523
523
  })], 8, ["to", "disabled"]))
524
524
  ], 2));
525
525
  }
526
- }), Xe = ["id"], Ze = {
526
+ }), $e = ["id"], et = {
527
527
  key: 0,
528
528
  class: "tpl:px-3 tpl:py-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
529
529
  "data-testid": "merge-tag-suggestion-empty"
530
- }, Qe = [
530
+ }, tt = [
531
531
  "id",
532
532
  "aria-selected",
533
533
  "data-selected",
534
534
  "data-merge-tag-value",
535
535
  "onMousedown",
536
536
  "onMousemove"
537
- ], $e = { class: "tpl:font-medium" }, et = { class: "tpl:text-[var(--tpl-text-dim)] tpl:font-mono" }, tt = /* @__PURE__ */ e({
537
+ ], nt = { class: "tpl:font-medium" }, rt = { class: "tpl:text-[var(--tpl-text-dim)] tpl:font-mono" }, it = /* @__PURE__ */ e({
538
538
  __name: "MergeTagSuggestionList",
539
539
  props: {
540
540
  items: {},
@@ -553,7 +553,7 @@ var Ie = [
553
553
  class: "tpl:min-w-[200px] tpl:max-w-[320px] tpl:max-h-[50vh] tpl:overflow-y-auto tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:py-1 tpl:shadow-[var(--tpl-shadow-lg)]",
554
554
  role: "listbox",
555
555
  "data-testid": "merge-tag-suggestion-list"
556
- }, [e.items.length === 0 ? (n(), u("div", Ze, x(e.emptyText), 1)) : g("", !0), (n(!0), u(D, null, a(e.items, (i, a) => (n(), u("button", {
556
+ }, [e.items.length === 0 ? (n(), u("div", et, x(e.emptyText), 1)) : g("", !0), (n(!0), u(D, null, a(e.items, (i, a) => (n(), u("button", {
557
557
  key: i.value,
558
558
  id: r(a),
559
559
  type: "button",
@@ -564,21 +564,21 @@ var Ie = [
564
564
  class: m(["tpl:flex tpl:w-full tpl:flex-col tpl:items-start tpl:gap-0.5 tpl:px-3 tpl:py-1.5 tpl:text-left tpl:text-xs tpl:transition-colors", a === e.selectedIndex ? "tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:text-[var(--tpl-text)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
565
565
  onMousedown: y((e) => t.$emit("select", i), ["prevent", "stop"]),
566
566
  onMousemove: (n) => a !== e.selectedIndex && t.$emit("hover", a)
567
- }, [b("span", $e, x(i.label), 1), b("span", et, x(i.value), 1)], 42, Qe))), 128))], 8, Xe));
567
+ }, [b("span", nt, x(i.label), 1), b("span", rt, x(i.value), 1)], 42, tt))), 128))], 8, $e));
568
568
  }
569
- }), nt = 10, rt = 0;
570
- function it(e, t) {
569
+ }), at = 10, ot = 0;
570
+ function st(e, t) {
571
571
  let n = t.trim().toLowerCase();
572
- return n === "" ? e.slice(0, nt) : e.filter((e) => {
572
+ return n === "" ? e.slice(0, at) : e.filter((e) => {
573
573
  let t = e.label.toLowerCase(), r = e.value.toLowerCase();
574
574
  return t.includes(n) || r.includes(n);
575
- }).slice(0, nt);
575
+ }).slice(0, at);
576
576
  }
577
- function at(e, t, n, r) {
577
+ function ct(e, t, n, r) {
578
578
  return t.length === 0 ? e.key === "Enter" || e.key === "Tab" : e.key === "ArrowDown" ? (n.value = (n.value + 1) % t.length, !0) : e.key === "ArrowUp" ? (n.value = (n.value - 1 + t.length) % t.length, !0) : e.key === "Enter" || e.key === "Tab" ? (r(t[n.value]), !0) : !1;
579
579
  }
580
- function ot(e, n) {
581
- let r = null, i = null, a = null, o = E([]), s = E(0), c = null, l = `tpl-merge-tag-suggestion-${++rt}`, u = null, d = [], f = null;
580
+ function lt(e, n) {
581
+ let r = null, i = null, a = null, o = E([]), s = E(0), c = null, l = `tpl-merge-tag-suggestion-${++ot}`, u = null, d = [], f = null;
582
582
  function p() {
583
583
  v(u?.() ?? null);
584
584
  }
@@ -642,7 +642,7 @@ function ot(e, n) {
642
642
  return {
643
643
  open: ({ items: d, getRect: f, anchorEl: p, onCommand: h }) => {
644
644
  o.value = d, s.value = 0, c = h, i = document.createElement("div"), i.setAttribute("data-testid", "merge-tag-suggestion-popup"), a = p, y(i, p), (n?.value ?? document.body).appendChild(i), r = T({ render() {
645
- return t(tt, {
645
+ return t(it, {
646
646
  items: o.value,
647
647
  selectedIndex: s.value,
648
648
  emptyText: e,
@@ -658,7 +658,7 @@ function ot(e, n) {
658
658
  o.value = e, s.value >= e.length && (s.value = 0), c = n, x(), u = t, m();
659
659
  },
660
660
  handleKeyDown: (e) => {
661
- let t = at(e, o.value, s, S);
661
+ let t = ct(e, o.value, s, S);
662
662
  return t && x(), t;
663
663
  },
664
664
  close: () => {
@@ -668,10 +668,10 @@ function ot(e, n) {
668
668
  };
669
669
  }
670
670
  // src/utils/mergeTagTrigger.ts
671
- function st(e, t, n, r, i) {
671
+ function ut(e, t, n, r, i) {
672
672
  if (!n) return null;
673
673
  let a = e.slice(0, t), o = a.lastIndexOf(n);
674
- if (o === -1 || i && o < ct(a, i)) return null;
674
+ if (o === -1 || i && o < dt(a, i)) return null;
675
675
  let s = a.slice(o + n.length);
676
676
  return /\s/.test(s) || r && s.includes(r) ? null : {
677
677
  triggerStart: o,
@@ -679,14 +679,19 @@ function st(e, t, n, r, i) {
679
679
  query: s
680
680
  };
681
681
  }
682
- function ct(e, t) {
683
- let n = new RegExp(t.source, `${t.flags.replace(/[gy]/g, "")}g`), r = 0;
684
- for (let t of e.matchAll(n)) r = t.index + t[0].length;
685
- return r;
682
+ function dt(e, t) {
683
+ let n = t instanceof RegExp ? void 0 : t;
684
+ if (n && j(n)) {
685
+ let t = F(e, n, "value"), r = t[t.length - 1];
686
+ return r ? r.index + r.value.length : 0;
687
+ }
688
+ let r = n?.value ?? t, i = new RegExp(r.source, `${r.flags.replace(/[gy]/g, "")}g`), a = 0;
689
+ for (let t of e.matchAll(i)) a = t.index + t[0].length;
690
+ return a;
686
691
  }
687
692
  // src/utils/textFieldCaret.ts
688
- var lt = /* @__PURE__ */ "boxSizing.width.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.borderStyle.paddingTop.paddingRight.paddingBottom.paddingLeft.fontStyle.fontVariant.fontWeight.fontStretch.fontSize.lineHeight.fontFamily.textAlign.textTransform.textIndent.letterSpacing.wordSpacing.tabSize.whiteSpace.wordWrap.wordBreak".split(".");
689
- function ut(e, t, n) {
693
+ var ft = /* @__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(".");
694
+ function pt(e, t, n) {
690
695
  return {
691
696
  left: e,
692
697
  top: t,
@@ -699,7 +704,7 @@ function ut(e, t, n) {
699
704
  toJSON: () => ({})
700
705
  };
701
706
  }
702
- function dt(e, t) {
707
+ function mt(e, t) {
703
708
  let n = e.ownerDocument, r = n.defaultView;
704
709
  if (!r) return null;
705
710
  let i = e.tagName === "INPUT", a = r.getComputedStyle(e), o = n.createElement("div");
@@ -707,7 +712,7 @@ function dt(e, t) {
707
712
  let s = o.style;
708
713
  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";
709
714
  let c = s, l = a;
710
- for (let e of lt) c[e] = l[e];
715
+ for (let e of ft) c[e] = l[e];
711
716
  i && (s.width = "auto", s.whiteSpace = "pre");
712
717
  let u = e.value, d = u.slice(0, t);
713
718
  i && (d = d.replace(/\s/g, "\xA0")), o.textContent = d;
@@ -716,19 +721,19 @@ function dt(e, t) {
716
721
  let p = f.offsetTop, m = f.offsetLeft;
717
722
  n.body.removeChild(o);
718
723
  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;
719
- if (i) return ut(y, h.top, h.bottom);
724
+ if (i) return pt(y, h.top, h.bottom);
720
725
  let b = h.top + p + g - e.scrollTop;
721
- return ut(y, b, b + v);
726
+ return pt(y, b, b + v);
722
727
  }
723
728
  // src/composables/useMergeTagAutocomplete.ts
724
- var ft = /* @__PURE__ */ new Set([
729
+ var ht = /* @__PURE__ */ new Set([
725
730
  "ArrowLeft",
726
731
  "ArrowRight",
727
732
  "Home",
728
733
  "End"
729
734
  ]);
730
- function pt(e) {
731
- let { elementRef: t, modelValue: n, emit: r, mergeTags: a, syntax: u, enabled: d, onInsert: f } = e, p = se(), m = k(u), h = j(u), g = C(() => p.value && d && m !== null && a.value.length > 0), _ = o(re, null), y = ot((c(_) ? _.value : _)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", ce());
735
+ function gt(e) {
736
+ let { elementRef: t, modelValue: n, emit: r, mergeTags: a, syntax: u, enabled: d, onInsert: f } = e, p = se(), m = M(u), h = A(u), g = C(() => p.value && d && m !== null && a.value.length > 0), _ = o(B, null), y = lt((c(_) ? _.value : _)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", ce());
732
737
  i(p, (e) => {
733
738
  e || y.close();
734
739
  }, { flush: "sync" });
@@ -738,7 +743,7 @@ function pt(e) {
738
743
  });
739
744
  function x(e) {
740
745
  let t = e.value ?? "";
741
- return st(t, e.selectionStart ?? t.length, m, h, u.value);
746
+ return ut(t, e.selectionStart ?? t.length, m, h, u);
742
747
  }
743
748
  function S(e, i, a) {
744
749
  if (!p.value) return;
@@ -761,7 +766,7 @@ function pt(e) {
761
766
  y.close();
762
767
  return;
763
768
  }
764
- let r = it(a.value, n.query), i = () => dt(e, n.triggerStart), o = (t) => S(e, n, t);
769
+ let r = st(a.value, n.query), i = () => mt(e, n.triggerStart), o = (t) => S(e, n, t);
765
770
  y.isOpen() ? y.update({
766
771
  items: r,
767
772
  getRect: i,
@@ -774,7 +779,7 @@ function pt(e) {
774
779
  });
775
780
  }
776
781
  function T(e) {
777
- return y.isOpen() ? e.key === "Escape" ? (y.close(), !0) : ft.has(e.key) ? (y.close(), !1) : y.handleKeyDown(e) : !1;
782
+ return y.isOpen() ? e.key === "Escape" ? (y.close(), !0) : ht.has(e.key) ? (y.close(), !1) : y.handleKeyDown(e) : !1;
778
783
  }
779
784
  return {
780
785
  available: g,
@@ -785,12 +790,12 @@ function pt(e) {
785
790
  };
786
791
  }
787
792
  // src/composables/useMergeTagField.ts
788
- function mt(e) {
789
- let { modelValue: t, emit: n, elementRef: r } = e, { mergeTags: i, canRequestMergeTag: a, isRequesting: o, isMergeTagValue: c, getMergeTagDisplayLabel: u, findMergeTag: d, requestMergeTag: f, syntax: p, autocomplete: m } = R(), { canInsertLogicTag: h, isRequesting: g, requestLogicTag: _ } = z(), y = E(!1), b = !1, x = !1;
793
+ function _t(e) {
794
+ let { modelValue: t, emit: n, elementRef: r } = e, { mergeTags: i, canRequestMergeTag: a, isRequesting: o, isMergeTagValue: c, getMergeTagDisplayLabel: u, findMergeTag: d, requestMergeTag: f, syntax: p, autocomplete: m } = ae(), { canInsertLogicTag: h, isRequesting: g, requestLogicTag: _ } = H(), y = E(!1), b = !1, x = !1;
790
795
  l() && s(() => {
791
796
  x = !0;
792
797
  });
793
- let S = pt({
798
+ let S = gt({
794
799
  elementRef: r,
795
800
  modelValue: t,
796
801
  emit: n,
@@ -803,29 +808,29 @@ function mt(e) {
803
808
  }), w = C(() => {
804
809
  let e = t();
805
810
  if (!e) return [];
806
- let n = [], r = `(${p.value.source}|${p.logic.source})`, i = new RegExp(r, "g"), a = 0, o;
807
- for (; (o = i.exec(e)) !== null;) {
808
- o.index > a && n.push({
811
+ let n = [], r = 0;
812
+ for (let t of P(e, p)) {
813
+ t.index > r && n.push({
809
814
  type: "text",
810
- value: e.slice(a, o.index)
815
+ value: e.slice(r, t.index)
811
816
  });
812
- let t = o[0];
813
- c(t) ? n.push({
817
+ let i = t.value;
818
+ c(i) ? n.push({
814
819
  type: "mergeTag",
815
- value: t,
816
- label: u(t)
817
- }) : M(t, p) ? n.push({
820
+ value: i,
821
+ label: u(i)
822
+ }) : N(i, p) ? n.push({
818
823
  type: "logicMergeTag",
819
- value: t,
820
- keyword: A(t, p)
824
+ value: i,
825
+ keyword: k(i, p)
821
826
  }) : n.push({
822
827
  type: "text",
823
- value: t
824
- }), a = o.index + t.length;
828
+ value: i
829
+ }), r = t.index + i.length;
825
830
  }
826
- return a < e.length && n.push({
831
+ return r < e.length && n.push({
827
832
  type: "text",
828
- value: e.slice(a)
833
+ value: e.slice(r)
829
834
  }), n;
830
835
  }), T = C(() => w.value.some((e) => e.type === "mergeTag" || e.type === "logicMergeTag"));
831
836
  function D() {
@@ -838,22 +843,22 @@ function mt(e) {
838
843
  function O() {
839
844
  b || (y.value = !1);
840
845
  }
841
- function k(e) {
846
+ function A(e) {
842
847
  n(e.target.value), S.refresh();
843
848
  }
844
849
  function j(e) {
845
850
  return S.handleKeydown(e) ? (e.preventDefault(), !0) : (e.key === "Escape" && O(), !1);
846
851
  }
847
- function N() {
852
+ function M() {
848
853
  S.refresh();
849
854
  }
850
- function P() {
855
+ function F() {
851
856
  S.close(), O();
852
857
  }
853
- function F() {
858
+ function I() {
854
859
  n("");
855
860
  }
856
- async function I() {
861
+ async function L() {
857
862
  let e = y.value && r.value ? r.value.selectionStart ?? t().length : t().length;
858
863
  b = !0;
859
864
  let i;
@@ -871,7 +876,7 @@ function mt(e) {
871
876
  });
872
877
  }
873
878
  }
874
- async function ee(e) {
879
+ async function R(e) {
875
880
  let t = w.value, r = t[e];
876
881
  if (r?.type !== "mergeTag") return;
877
882
  b = !0;
@@ -886,7 +891,7 @@ function mt(e) {
886
891
  }
887
892
  !x && i && n(t.map((t, n) => n === e ? i.value : t.value).join(""));
888
893
  }
889
- async function te() {
894
+ async function z() {
890
895
  let e = r.value, i = e?.selectionStart ?? t().length, a = e?.selectionEnd ?? i;
891
896
  b = !0;
892
897
  let o;
@@ -911,26 +916,26 @@ function mt(e) {
911
916
  isEditing: y,
912
917
  startEditing: D,
913
918
  stopEditing: O,
914
- handleInput: k,
919
+ handleInput: A,
915
920
  handleKeydown: j,
916
- handleClick: N,
917
- handleBlur: P,
918
- clearValue: F,
919
- insertMergeTag: I,
920
- replaceMergeTagAt: ee,
921
- insertLogicTag: te,
921
+ handleClick: M,
922
+ handleBlur: F,
923
+ clearValue: I,
924
+ insertMergeTag: L,
925
+ replaceMergeTagAt: R,
926
+ insertLogicTag: z,
922
927
  autocompleteAvailable: S.available
923
928
  };
924
929
  }
925
930
  // src/components/MergeTagSegments.vue?vue&type=script&setup=true&lang.ts
926
- var ht = ["aria-label"], gt = [
931
+ var vt = ["aria-label"], yt = [
927
932
  "data-tooltip",
928
933
  "aria-label",
929
934
  "onClick"
930
- ], _t = ["data-tooltip"], vt = ["data-tooltip"], yt = {
935
+ ], bt = ["data-tooltip"], xt = ["data-tooltip"], St = {
931
936
  key: 3,
932
937
  class: "tpl:text-sm tpl:text-[var(--tpl-text)]"
933
- }, bt = ["aria-label", "title"], xt = ["aria-label", "title"], St = /* @__PURE__ */ e({
938
+ }, Ct = ["aria-label", "title"], wt = ["aria-label", "title"], Tt = /* @__PURE__ */ e({
934
939
  __name: "MergeTagSegments",
935
940
  props: {
936
941
  segments: {},
@@ -943,7 +948,7 @@ var ht = ["aria-label"], gt = [
943
948
  "repick"
944
949
  ],
945
950
  setup(e, { emit: t }) {
946
- let r = t, { t: i, format: o } = L(), { canRepickMergeTag: s, showRawValue: c } = R();
951
+ let r = t, { t: i, format: o } = V(), { canRepickMergeTag: s, showRawValue: c } = ae();
947
952
  function l() {
948
953
  r("edit");
949
954
  }
@@ -965,7 +970,7 @@ var ht = ["aria-label"], gt = [
965
970
  color: "var(--tpl-primary)"
966
971
  },
967
972
  onClick: y((e) => r("repick", t), ["stop"])
968
- }, x(e.label), 11, gt)) : e.type === "mergeTag" ? (n(), u("span", {
973
+ }, x(e.label), 11, yt)) : e.type === "mergeTag" ? (n(), u("span", {
969
974
  key: 1,
970
975
  class: m(["tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.9em] tpl:font-medium", p(c) ? "tpl-tooltip" : ""]),
971
976
  "data-tooltip": p(c) ? e.value : void 0,
@@ -973,7 +978,7 @@ var ht = ["aria-label"], gt = [
973
978
  "background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
974
979
  color: "var(--tpl-primary)"
975
980
  }
976
- }, x(e.label), 11, _t)) : e.type === "logicMergeTag" ? (n(), u("span", {
981
+ }, x(e.label), 11, bt)) : e.type === "logicMergeTag" ? (n(), u("span", {
977
982
  key: 2,
978
983
  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",
979
984
  "data-tooltip": e.value,
@@ -982,7 +987,7 @@ var ht = ["aria-label"], gt = [
982
987
  border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
983
988
  color: "var(--tpl-primary)"
984
989
  }
985
- }, x(e.keyword), 9, vt)) : (n(), u("span", yt, x(e.value), 1))], 64))), 128)),
990
+ }, x(e.keyword), 9, xt)) : (n(), u("span", St, x(e.value), 1))], 64))), 128)),
986
991
  b("button", {
987
992
  type: "button",
988
993
  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",
@@ -990,10 +995,10 @@ var ht = ["aria-label"], gt = [
990
995
  title: p(i).mergeTag.editAsText,
991
996
  "data-testid": "merge-tag-field-edit",
992
997
  onClick: y(l, ["stop"])
993
- }, [O(p(N), {
998
+ }, [O(p(I), {
994
999
  size: 12,
995
1000
  "stroke-width": 2
996
- })], 8, bt),
1001
+ })], 8, Ct),
997
1002
  b("button", {
998
1003
  type: "button",
999
1004
  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",
@@ -1001,60 +1006,60 @@ var ht = ["aria-label"], gt = [
1001
1006
  title: p(i).mergeTag.remove,
1002
1007
  "data-testid": "merge-tag-field-clear",
1003
1008
  onClick: d[0] ||= y((e) => r("clear"), ["stop"])
1004
- }, [O(p(I), {
1009
+ }, [O(p(z), {
1005
1010
  size: 12,
1006
1011
  "stroke-width": 2.5
1007
- })], 8, xt)
1008
- ], 10, ht));
1012
+ })], 8, wt)
1013
+ ], 10, vt));
1009
1014
  }
1010
- }), Ct = [
1015
+ }), Et = [
1011
1016
  "aria-label",
1012
1017
  "title",
1013
1018
  "disabled"
1014
- ], wt = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)] tpl:hover:border-[var(--tpl-primary)]", Tt = /* @__PURE__ */ e({
1019
+ ], Dt = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)] tpl:hover:border-[var(--tpl-primary)]", Ot = /* @__PURE__ */ e({
1015
1020
  __name: "MergeTagInsertButton",
1016
1021
  props: { disabled: { type: Boolean } },
1017
1022
  emits: ["insert"],
1018
1023
  setup(e) {
1019
- let { t } = L();
1024
+ let { t } = V();
1020
1025
  return (r, i) => (n(), u("button", {
1021
1026
  type: "button",
1022
- class: m([wt, "tpl:mt-1.5"]),
1027
+ class: m([Dt, "tpl:mt-1.5"]),
1023
1028
  "aria-label": p(t).mergeTag.insert,
1024
1029
  title: p(t).mergeTag.insert,
1025
1030
  disabled: e.disabled,
1026
1031
  onMousedown: i[0] ||= y(() => {}, ["prevent"]),
1027
1032
  onClick: i[1] ||= (e) => r.$emit("insert")
1028
- }, [O(p(F), {
1033
+ }, [O(p(R), {
1029
1034
  size: 12,
1030
1035
  "stroke-width": 2
1031
- }), d(" " + x(p(t).mergeTag.insertShort), 1)], 42, Ct));
1036
+ }), d(" " + x(p(t).mergeTag.insertShort), 1)], 42, Et));
1032
1037
  }
1033
- }), Et = [
1038
+ }), kt = [
1034
1039
  "aria-label",
1035
1040
  "title",
1036
1041
  "disabled"
1037
- ], Dt = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)] tpl:hover:border-[var(--tpl-primary)]", Ot = /* @__PURE__ */ e({
1042
+ ], At = "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)]", jt = /* @__PURE__ */ e({
1038
1043
  __name: "LogicTagInsertButton",
1039
1044
  props: { disabled: { type: Boolean } },
1040
1045
  emits: ["insert"],
1041
1046
  setup(e) {
1042
- let { t } = L();
1047
+ let { t } = V();
1043
1048
  return (r, i) => (n(), u("button", {
1044
1049
  type: "button",
1045
- class: m([Dt, "tpl:mt-1.5"]),
1050
+ class: m([At, "tpl:mt-1.5"]),
1046
1051
  "aria-label": p(t).logicTag.insert,
1047
1052
  title: p(t).logicTag.insert,
1048
1053
  disabled: e.disabled,
1049
1054
  "data-testid": "field-insert-logic-button",
1050
1055
  onMousedown: i[0] ||= y(() => {}, ["prevent"]),
1051
1056
  onClick: i[1] ||= (e) => r.$emit("insert")
1052
- }, [O(p(P), {
1057
+ }, [O(p(L), {
1053
1058
  size: 12,
1054
1059
  "stroke-width": 2
1055
- }), d(" " + x(p(t).logicTag.insertShort), 1)], 42, Et));
1060
+ }), d(" " + x(p(t).logicTag.insertShort), 1)], 42, kt));
1056
1061
  }
1057
1062
  });
1058
- export { ot as a, Ye as c, mt as i, Tt as n, it as o, St as r, at as s, Ot as t };
1063
+ export { lt as a, Qe as c, _t as i, Ot as n, st as o, Tt as r, ct as s, jt as t };
1059
1064
 
1060
- //# sourceMappingURL=LogicTagInsertButton-PDKuo2J3.js.map
1065
+ //# sourceMappingURL=LogicTagInsertButton-BdzE9-l7.js.map