/*!
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('./ListDropdownMenu.css');const e=require("vue"),t=require("./basic/SelectMenu.vue.js"),i=require("./icons.js"),s=require("../constant/index.js");;/* empty css                       */const l=require("../../../_virtual/_plugin-vue_export-helper.js"),o={class:"flex items-center gap-2"},r=["innerHTML"],n={__name:"ListDropdownMenu",props:{types:{type:Array,default:()=>s.LIST_TYPES,validator:e=>e.every(e=>s.LIST_TYPES.includes(e))},editor:{type:Object,required:!0},disabled:{type:Boolean,default:!1}},setup(s){const l=s,n={bulletList:{title:"Bullet List",icon:i.bulletListIcon,command:()=>l.editor?.chain().focus().toggleBulletList().run(),isActive:()=>l.editor?.isActive("bulletList")},orderedList:{title:"Ordered List",icon:i.orderedListIcon,command:()=>l.editor?.chain().focus().toggleOrderedList().run(),isActive:()=>l.editor?.isActive("orderedList")},taskList:{title:"Task List",icon:i.taskListIcon,command:()=>l.editor?.chain().focus().toggleTaskList().run(),isActive:()=>l.editor?.isActive("taskList")}},d=e.computed(()=>l.types.map(e=>({name:e,...n[e]}))),a=e.computed(()=>{const e=d.value.find(e=>e.isActive?.());return e?e.title:"Bullet List"}),c=e=>{e?.command?.()};return(i,l)=>(e.openBlock(),e.createBlock(t.default,{items:d.value,disabled:s.disabled,"selected-label":a.value,onSelect:c},{option:e.withCtx(({item:t})=>[e.createElementVNode("span",o,[e.createElementVNode("span",{innerHTML:t.icon},null,8,r),e.createElementVNode("span",null,e.toDisplayString(t.title),1)])]),_:1},8,["items","disabled","selected-label"]))}},d=l.default(n,[["__scopeId","data-v-3fbb28bf"]]);exports.default=d;