"use strict";var d=Object.defineProperty;var i=(r,e,t)=>e in r?d(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var n=(r,e,t)=>(i(r,typeof e!="symbol"?e+"":e,t),t);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("../blots/block.js"),m=require("../blots/break.js"),b=require("../blots/cursor.js"),q=require("../blots/inline.js"),s=require("../blots/text.js"),f=require("../blots/container.js"),C=require("../core/quill.js");class l extends f.default{static create(e){const t=super.create(e);return t.setAttribute("spellcheck","false"),t}code(e,t){return this.children.map(c=>c.length()<=1?"":c.domNode.innerText).join(`
`).slice(e,e+t)}html(e,t){return`<pre>
${s.escapeText(this.code(e,t))}
</pre>`}}class o extends u.default{static register(){C.default.register(l)}}n(o,"TAB","  ");class a extends q.default{}a.blotName="code";a.tagName="CODE";o.blotName="code-block";o.className="ql-code-block";o.tagName="DIV";l.blotName="code-block-container";l.className="ql-code-block-container";l.tagName="DIV";l.allowedChildren=[o];o.allowedChildren=[s.default,m.default,b.default];o.requiredContainer=l;exports.Code=a;exports.CodeBlockContainer=l;exports.default=o;
