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