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