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