/*!
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
*/
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./ColorHighlightPopover.css');const e=require("vue"),i=require("./basic/ColorPicker.vue.js"),o=require("./icons.js"),t=require("../constant/index.js");;/* empty css                            */const r=require("../../../_virtual/_plugin-vue_export-helper.js"),l={__name:"ColorHighlightPopover",props:{editor:{type:Object,required:!0},disabled:{type:Boolean,default:!1}},setup(r){const l=r,s=()=>l.editor?.isActive("highlight"),u=e=>{if(!e)return!l.editor?.isActive("highlight");const i=l.editor?.getAttributes("highlight");return i?.color===e},c=e=>{e?l.editor?.chain().focus().setHighlight({color:e}).run():l.editor?.chain().focus().unsetHighlight().run()};return(l,d)=>(e.openBlock(),e.createBlock(i.default,{editor:r.editor,disabled:r.disabled,title:"Highlight",icon:e.unref(o.colorHighlightIcon),colors:e.unref(t.HIGHLIGHT_COLORS),"is-active":s,"is-active-color":u,"on-select-color":c},null,8,["editor","disabled","icon","colors"]))}},s=r.default(l,[["__scopeId","data-v-706af90d"]]);exports.default=s;