/*!
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 o,createElementVNode as n,toDisplayString as r}from"vue";import l from"./basic/SelectMenu.vue.js";import{HEADING_SIZES as s,FONT_SIZES as a}from"../constant/index.js";import './FontSizeDropdownMenu.css';/* empty css                         */import d from"../../../_virtual/_plugin-vue_export-helper.js";const u=/* @__PURE__ */d({__name:"FontSizeDropdownMenu",props:{editor:{type:Object,required:!0},disabled:{type:Boolean,default:!1}},setup(d){const u=d,p=e(()=>{const e=u.editor?.getAttributes("textStyle").fontSize;if(e)return e;for(let t=1;t<=6;t++)if(u.editor?.isActive("heading",{level:t}))return s[t];return"16px"}),m=e(()=>a.map(e=>({name:e,title:e,command:()=>{u.editor?.chain().focus().setFontSize(e).run()},isActive:()=>p.value===e}))),c=e=>{e?.command?.()};return(e,s)=>(t(),i(l,{items:m.value,disabled:d.disabled,"selected-label":p.value,"min-width":80,onSelect:c},{option:o(({item:e})=>[n("span",null,r(e.title),1)]),_:1},8,["items","disabled","selected-label"]))}},[["__scopeId","data-v-b86f0791"]]);export{u as default};