/*!
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('./TextAlignDropdownMenu.css');const e=require("vue"),t=require("./basic/SelectMenu.vue.js"),i=require("./icons.js");;/* empty css                            */const n=require("../../../_virtual/_plugin-vue_export-helper.js"),l={class:"flex items-center gap-2"},o=["innerHTML"],c={__name:"TextAlignDropdownMenu",props:{editor:{type:Object,required:!0},disabled:{type:Boolean,default:!1}},setup(n){const c=n,r=e.computed(()=>[{name:"left",title:"Align Left",icon:i.textAlignLeftIcon,command:()=>{c.editor?.chain().focus().setTextAlign("left").run()},isActive:()=>c.editor?.isActive({textAlign:"left"})},{name:"center",title:"Align Center",icon:i.textAlignCenterIcon,command:()=>{c.editor?.chain().focus().setTextAlign("center").run()},isActive:()=>c.editor?.isActive({textAlign:"center"})},{name:"right",title:"Align Right",icon:i.textAlignRightIcon,command:()=>{c.editor?.chain().focus().setTextAlign("right").run()},isActive:()=>c.editor?.isActive({textAlign:"right"})},{name:"justify",title:"Align Justify",icon:i.textAlignJustifyIcon,command:()=>{c.editor?.chain().focus().setTextAlign("justify").run()},isActive:()=>c.editor?.isActive({textAlign:"justify"})}]),s=e.computed(()=>{const e=r.value.find(e=>e.isActive?.());return e?e.title:"Align Left"}),u=e=>{e?.command?.()};return(i,c)=>(e.openBlock(),e.createBlock(t.default,{items:r.value,disabled:n.disabled,"selected-label":s.value,onSelect:u},{option:e.withCtx(({item:t})=>[e.createElementVNode("span",l,[e.createElementVNode("span",{innerHTML:t.icon},null,8,o),e.createElementVNode("span",null,e.toDisplayString(t.title),1)])]),_:1},8,["items","disabled","selected-label"]))}},r=n.default(c,[["__scopeId","data-v-7bead60d"]]);exports.default=r;