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