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