/*!
Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
@license Proprietary

This software is the confidential and proprietary property of Lenovo SSG BASD.
You shall not disclose such Confidential Information and shall use it only in
accordance with the terms of the license agreement.

--- Build Info ---
Version: 1.1.1
Build Time: 2026/2/26 17:21:00
Build Commit: 81e556ed827e2f043668506dae6fae8dbb9ef395
*/
import{openBlock as o,createBlock as i,unref as t}from"vue";import e from"./basic/ColorPicker.vue.js";import{colorHighlightIcon as r}from"./icons.js";import{HIGHLIGHT_COLORS as l}from"../constant/index.js";import './ColorHighlightPopover.css';/* empty css                          */import s from"../../../_virtual/_plugin-vue_export-helper.js";const c=/* @__PURE__ */s({__name:"ColorHighlightPopover",props:{editor:{type:Object,required:!0},disabled:{type:Boolean,default:!1}},setup(s){const c=s,d=()=>c.editor?.isActive("highlight"),h=o=>{if(!o)return!c.editor?.isActive("highlight");const i=c.editor?.getAttributes("highlight");return i?.color===o},n=o=>{o?c.editor?.chain().focus().setHighlight({color:o}).run():c.editor?.chain().focus().unsetHighlight().run()};return(c,u)=>(o(),i(e,{editor:s.editor,disabled:s.disabled,title:"Highlight",icon:t(r),colors:t(l),"is-active":d,"is-active-color":h,"on-select-color":n},null,8,["editor","disabled","icon","colors"]))}},[["__scopeId","data-v-706af90d"]]);export{c as default};