/*!
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{computed as e,openBlock as o,createElementBlock as t,normalizeClass as i,createElementVNode as d,unref as l}from"vue";import{codeBlockIcon as s}from"./icons.js";import './CodeBlockButton.css';/* empty css                    */import r from"../../../_virtual/_plugin-vue_export-helper.js";const a=["disabled"],n=["innerHTML"],c=/* @__PURE__ */r({__name:"CodeBlockButton",props:{editor:{type:Object,required:!0},disabled:{type:Boolean,default:!1}},setup(r){const c=r,u=e(()=>c.editor?.isActive("codeBlock")),p=()=>{c.editor?.chain().focus().toggleCodeBlock().run()};return(e,c)=>(o(),t("button",{title:"Code Block",class:i([{"is-active":u.value,"is-disabled":r.disabled}]),disabled:r.disabled,onClick:p},[d("span",{innerHTML:l(s)},null,8,n)],10,a))}},[["__scopeId","data-v-fea26f1f"]]);export{c as default};