/*!
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{Node as t,wrappingInputRule as e,mergeAttributes as o}from"../../core/dist/index.js";import{createElement as n}from"../../core/dist/jsx-runtime/jsx-runtime.js";var r=/^\s*>\s$/,s=t.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:t}){/* @__PURE__ */
return n("blockquote",{...o(this.options.HTMLAttributes,t),children:/* @__PURE__ */n("slot",{})})},parseMarkdown:(t,e)=>e.createNode("blockquote",void 0,e.parseChildren(t.tokens||[])),renderMarkdown:(t,e)=>{if(!t.content)return"";const o=[];return t.content.forEach(t=>{const n=e.renderChildren([t]).split("\n").map(t=>""===t.trim()?">":`> ${t}`);o.push(n.join("\n"))}),o.join("\n>\n")},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[e({find:r,type:this.type})]}});export{s as Blockquote,r as inputRegex};