/*!
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 e,unref as t}from"vue";import r from"./basic/ColorPicker.vue.js";import{textColorIcon as i}from"./icons.js";import{TEXT_COLORS as s}from"../constant/index.js";import './TextColorPopover.css';/* empty css                     */import l from"../../../_virtual/_plugin-vue_export-helper.js";const c=/* @__PURE__ */l({__name:"TextColorPopover",props:{editor:{type:Object,required:!0},disabled:{type:Boolean,default:!1}},setup(l){const c=l,d=()=>c.editor?.isActive("textStyle"),n=o=>{if(!o)return!c.editor?.getAttributes("textStyle")?.color;const e=c.editor?.getAttributes("textStyle");return e?.color===o},u=o=>{o?c.editor?.chain().focus().setColor(o).run():c.editor?.chain().focus().unsetColor().run()};return(c,a)=>(o(),e(r,{editor:l.editor,disabled:l.disabled,title:"Text Color",icon:t(i),colors:t(s),"is-active":d,"is-active-color":n,"on-select-color":u},null,8,["editor","disabled","icon","colors"]))}},[["__scopeId","data-v-718c67e8"]]);export{c as default};