1// @calumk/[email protected] downloaded from https://ga.jspm.io/npm:@calumk/[email protected]/dist/editorjs-columns.bundle.js 2 3var e=typeof globalThis<`u`?globalThis:typeof self<`u`?self:global,t={}; 4/*! For license information please see editorjs-columns.bundle.js.LICENSE.txt */ 5(function(e,n){t=n()})(self,()=>(()=>{var t={745:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(81),i=n.n(r),a=n(645),o=n.n(a)()(i());o.push([e.id,`.modal{display:none}.modal.is-open{display:block}.modal__overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;justify-content:center;align-items:center;z-index:9999}.modal__container{background-color:#fff;padding:24px;max-width:420px;width:100%;border-radius:8px;box-shadow:0 4px 20px rgba(0,0,0,.15)}.modal__header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.modal__title{margin:0;font-size:1.2rem;font-weight:600;color:#333}.modal__close{background:rgba(0,0,0,0);border:0;cursor:pointer;font-size:1.4rem;padding:4px}.modal__close::before{content:"â"}.modal__content{margin-bottom:20px;color:#555;line-height:1.5}.modal__footer{display:flex;gap:8px;justify-content:flex-end}.modal__btn{padding:8px 16px;border-radius:4px;border:1px solid #ddd;background:#fff;cursor:pointer;font-size:.9rem}.modal__btn:hover{background:#f5f5f5}.modal__btn--primary{background:#3085d6;color:#fff;border-color:#3085d6}.modal__btn--primary:hover{background:#2070c0}.ce-editorjsColumns_col{flex:50%}.ce-editorjsColumns_wrapper{display:flex;width:100%;gap:10px;margin-bottom:10px;flex-direction:row}.ce-editorjsColumns_wrapper .ce-toolbar__actions{z-index:0}.ce-editorjsColumns_wrapper .ce-toolbar{z-index:4}.ce-editorjsColumns_wrapper .ce-popover{z-index:4000}@media(max-width: 800px){.ce-editorjsColumns_wrapper{flex-direction:column;padding:10px;border:1px solid #ccc;border-radius:4px}}.ce-inline-toolbar{z-index:1000}.ce-block__content,.ce-toolbar__content{max-width:calc(100% - 50px)}.ce-toolbar__actions{right:calc(100% + 30px);background-color:rgba(255,255,255,.5);border-radius:4px}.codex-editor--narrow .codex-editor__redactor{margin:0}.ce-toolbar{z-index:4}.codex-editor{z-index:auto !important}`,``]);let s=o},645:t=>{t.exports=function(t){var n=[];return n.toString=function(){return this.map(function(e){var n=``,r=e[5]!==void 0;return e[4]&&(n+=`@supports (${e[4]}) {`),e[2]&&(n+=`@media ${e[2]} {`),r&&(n+=`@layer${e[5].length>0?` ${e[5]}`:``} {`),n+=t(e),r&&(n+=`}`),e[2]&&(n+=`}`),e[4]&&(n+=`}`),n}).join(``)},n.i=function(t,r,i,a,o){typeof t==`string`&&(t=[[null,t,void 0]]);var s={};if(i)for(var c=0;c<(this||e).length;c++){var l=(this||e)[c][0];l!=null&&(s[l]=!0)}for(var u=0;u<t.length;u++){var d=[].concat(t[u]);i&&s[d[0]]||(o!==void 0&&(d[5]===void 0||(d[1]=`@layer${d[5].length>0?` ${d[5]}`:``} {${d[1]}}`),d[5]=o),r&&(d[2]&&(d[1]=`@media ${d[2]} {${d[1]}}`),d[2]=r),a&&(d[4]?(d[1]=`@supports (${d[4]}) {${d[1]}}`,d[4]=a):d[4]=`${a}`),n.push(d))}},n}},81:e=>{e.exports=function(e){return e[1]}},379:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},o=[],s=0;s<e.length;s++){var c=e[s],l=r.base?c[0]+r.base:c[0],u=a[l]||0,d=`${l} ${u}`;a[l]=u+1;var f=n(d),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(f!==-1)t[f].references++,t[f].updater(p);else{var m=i(p,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:m,references:1})}o.push(d)}return o}function i(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var a=r(e||=[],i||={});return function(e){e||=[];for(var o=0;o<a.length;o++){var s=n(a[o]);t[s].references--}for(var c=r(e,i),l=0;l<a.length;l++){var u=n(a[l]);t[u].references===0&&(t[u].updater(),t.splice(u,1))}a=c}}},569:e=>{var t={};e.exports=function(e,n){var r=function(e){if(t[e]===void 0){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch{n=null}t[e]=n}return t[e]}(e);if(!r)throw Error(`Couldn't find a style target. This probably means that the value for the 'insert' parameter is invali
5d.`);r.appendChild(n)}},216:e=>{e.exports=function(e){var t=document.createElement(`style`);return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute(`nonce`,t)}},795:e=>{e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){(function(e,t,n){var r=``;n.supports&&(r+=`@supports (${n.supports}) {`),n.media&&(r+=`@media ${n.media} {`);var i=n.layer!==void 0;i&&(r+=`@layer${n.layer.length>0?` ${n.layer}`:``} {`),r+=n.css,i&&(r+=`}`),n.media&&(r+=`}`),n.supports&&(r+=`}`);var a=n.sourceMap;a&&typeof btoa<`u`&&(r+=` 6/*# sourceMappingURL=data:application/json;base64,${btoa(unescape(encodeURIComponent(JSON.stringify(a))))} */`),t.styleTagTransform(r,e,t.options)})(t,e,n)},remove:function(){(function(e){if(e.parentNode===null)return!1;e.parentNode.removeChild(e)})(t)}}}},589:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},40:e=>{e.exports=`<svg width="14" height="14" viewBox="0 -1 14 14" xmlns="http://www.w3.org/2000/svg"><defs></defs><rect x="1.194" y="-0.041" width="11.601" height="12.11" rx="1" ry="1" style="fill: rgb(255, 255, 255); stroke: rgb(0, 0, 0); stroke-width: 1.5px;"></rect><path style="stroke: rgb(0, 0, 0); stroke-width:1.5px" d="M 7.032 -0.034 L 6.948 11.842"></path></svg>`}},n={};function r(e){var i=n[e];if(i!==void 0)return i.exports;var a=n[e]={id:e,exports:{}};return t[e](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.nc=void 0;var i={};return(()=>{var t;r.d(i,{default:()=>I});var n=new Uint8Array(16);function a(){if(!t&&!(t=typeof crypto<`u`&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<`u`&&typeof msCrypto.getRandomValues==`function`&&msCrypto.getRandomValues.bind(msCrypto)))throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);return t(n)}let o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,s=function(e){return typeof e==`string`&&o.test(e)};for(var c=[],l=0;l<256;++l)c.push((l+256).toString(16).substr(1));let u=function(e,t,n){var r=(e||={}).random||(e.rng||a)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n||=0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+`-`+c[e[t+4]]+c[e[t+5]]+`-`+c[e[t+6]]+c[e[t+7]]+`-`+c[e[t+8]]+c[e[t+9]]+`-`+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();if(!s(n))throw TypeError(`Stringified UUID is invalid`);return n}(r)};function d(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if(typeof e==`string`)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e)||function(){throw TypeError(`Invalid attempt to spread non-iterable instance. 7In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function f(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var p,m,h,g,_,v=(p=[`a[href]`,`area[href]`,`input:not([disabled]):not([type="hidden"]):not([aria-hidden])`,`select:not([disabled]):not([aria-hidden])`,`textarea:not([disabled]):not([aria-hidden])`,`button:not([disabled]):not([aria-hidden])`,`iframe`,`object`,`embed`,`[contenteditable]`,`[tabindex]:not([tabindex^="-"])`],m=function(){function t(n){var r=n.targetModal,i=n.triggers,a=i===void 0?[]:i,o=n.onShow,s=o===void 0?function(){}:o,c=n.onClose,l=c===void 0?function(){}:c,u=n.openTrigger,f=u===void 0?`data-micromodal-trigger`:u,p=n.closeTrigger,m=p===void 0?`data-micromodal-close`:p,h=n.openClass,g=h===void 0?`is-open`:h,_=n.disableScroll,v=_!==void 0&&_,y=n.disableFocus,b=y!==void 0&&y,x=n.awaitCloseAnimation,S=x!==void 0&&x,C=n.awaitOpenAnimation,w=C!==void 0&&C,T=n.debugMode,E=T!==void 0&&T;(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this||e,t),(this||e).modal=document.getElementById(r),(this||e).config={debugMode:E,disableScroll:v,openTrigger:f,closeTrigger:m,openClass:g,onShow:s,onClose:l,awaitCloseAnimation:S,awaitOpenAnimation:w,disableFocus:b},a.length>0&&(this||e).registerTriggers.apply(this||e,d(a)),(this||e).onClick=(this||e).onClick.bind(this||e),(this||e).onKeydown=(this||e).onKeydown.bind(this||e)}var n;return(n=[{key:`registerTriggers`,value:function(){for(var t=this||e,
7n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];r.filter(Boolean).forEach(function(e){e.addEventListener(`click`,function(e){return t.showModal(e)})})}},{key:`showModal`,value:function(){var t=this||e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;(this||e).activeElement=document.activeElement,(this||e).modal.setAttribute(`aria-hidden`,`false`),(this||e).modal.classList.add((this||e).config.openClass),this.scrollBehaviour(`disable`),this.addEventListeners(),(this||e).config.awaitOpenAnimation?(this||e).modal.addEventListener(`animationend`,function e(){t.modal.removeEventListener(`animationend`,e,!1),t.setFocusToFirstNode()},!1):this.setFocusToFirstNode(),(this||e).config.onShow((this||e).modal,(this||e).activeElement,n)}},{key:`closeModal`,value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=(this||e).modal;if((this||e).modal.setAttribute(`aria-hidden`,`true`),this.removeEventListeners(),this.scrollBehaviour(`enable`),(this||e).activeElement&&(this||e).activeElement.focus&&(this||e).activeElement.focus(),(this||e).config.onClose((this||e).modal,(this||e).activeElement,t),(this||e).config.awaitCloseAnimation){var r=(this||e).config.openClass;(this||e).modal.addEventListener(`animationend`,function e(){n.classList.remove(r),n.removeEventListener(`animationend`,e,!1)},!1)}else n.classList.remove((this||e).config.openClass)}},{key:`closeModalById`,value:function(t){(this||e).modal=document.getElementById(t),(this||e).modal&&this.closeModal()}},{key:`scrollBehaviour`,value:function(t){if((this||e).config.disableScroll){var n=document.querySelector(`body`);switch(t){case`enable`:Object.assign(n.style,{overflow:``});break;case`disable`:Object.assign(n.style,{overflow:`hidden`})}}}},{key:`addEventListeners`,value:function(){(this||e).modal.addEventListener(`touchstart`,(this||e).onClick),(this||e).modal.addEventListener(`click`,(this||e).onClick),document.addEventListener(`keydown`,(this||e).onKeydown)}},{key:`removeEventListeners`,value:function(){(this||e).modal.removeEventListener(`touchstart`,(this||e).onClick),(this||e).modal.removeEventListener(`click`,(this||e).onClick),document.removeEventListener(`keydown`,(this||e).onKeydown)}},{key:`onClick`,value:function(t){(t.target.hasAttribute((this||e).config.closeTrigger)||t.target.parentNode.hasAttribute((this||e).config.closeTrigger))&&(t.preventDefault(),t.stopPropagation(),this.closeModal(t))}},{key:`onKeydown`,value:function(e){e.keyCode===27&&this.closeModal(e),e.keyCode===9&&this.retainFocus(e)}},{key:`getFocusableNodes`,value:function(){var t=(this||e).modal.querySelectorAll(p);return Array.apply(void 0,d(t))}},{key:`setFocusToFirstNode`,value:function(){var t=this||e;if(!(this||e).config.disableFocus){var n=this.getFocusableNodes();if(n.length!==0){var r=n.filter(function(e){return!e.hasAttribute(t.config.closeTrigger)});r.length>0&&r[0].focus(),r.length===0&&n[0].focus()}}}},{key:`retainFocus`,value:function(t){var n=this.getFocusableNodes();if(n.length!==0)if(n=n.filter(function(e){return e.offsetParent!==null}),(this||e).modal.contains(document.activeElement)){var r=n.indexOf(document.activeElement);t.shiftKey&&r===0&&(n[n.length-1].focus(),t.preventDefault()),!t.shiftKey&&n.length>0&&r===n.length-1&&(n[0].focus(),t.preventDefault())}else n[0].focus()}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(),h=null,g=function(e){if(!document.getElementById(e))return console.warn(`MicroModal: âSeems like you have missed %c'${e}'`,`background-color: #f8f9fa;color: #50596c;font-weight: bold;`,`ID somewhere in your code. Refer example below to resolve it.`),console.warn(`%cExample:`,`background-color: #f8f9fa;color: #50596c;font-weight: bold;`,`<div class="modal" id="${e}"></div>`),!1},_=function(e,t){if(function(e){e.length<=0&&(console.warn(`MicroModal: âPlease specify at least one %c'micromodal-trigger'`,`background-color: #f8f9fa;color: #50596c;font-weight: bold;`,`data attribute.`),console.warn(`%cExample:`,`background-color: #f8f9fa;color: #50596c;font-weight: bold;`,`<a href="#" data-micromodal-trigger="my-modal"></a>`))}(e),!t)return!0;for(var n in t)g(n);return!0},{init:function(e){var t=Object.assign({},{openTrigger:`data-micromodal-trigger`},e),n=d(document.querySelectorAll(`[${t.openTrigger}]`)),r=function(e,t){var n=[];return e.forEach(function(e){var r=e.attributes[t].value;n[r]===void 0&&(n[r]=[]),n[r].push(e)}),n}(n,t.openTrigger);if(!0!==t.debugMode||!1!==_(n,r))for(var i in r){var a=r[i];t.targetModal=i,t.triggers=d(a),h=new m(t)}},show:function(e,t){var n=t||{};n.targetModal=e,!0===n.debugMode&&!1===g(e)||(h&&h.removeEventListeners(),(h=new m(n)).showModal())},close:function(e){e?h.closeModalById(e):h.closeModal()}});typeof window<`u`&&(window.MicroModal=v);let y=v;var b=r(40),x=r.n(b),S=r(379),C=r.n(S),w=r(795),T=r.n(w),E=r(569),D=r.
7n(E),O=r(565),k=r.n(O),A=r(216),j=r.n(A),M=r(589),N=r.n(M),P=r(745),F={};F.styleTagTransform=N(),F.setAttributes=k(),F.insert=D().bind(null,`head`),F.domAPI=T(),F.insertStyleElement=j(),C()(P.Z,F),P.Z&&P.Z.locals&&P.Z.locals;class I{static get enableLineBreaks(){return!0}constructor({data:e,config:t,api:n,readOnly:r,block:i}){this.api=n,this.readOnly=r,this.config=t||{},this.block=i,this._CSS={block:this.api.styles.block,wrapper:`ce-EditorJsColumns`},this.readOnly||(this.onKeyUp=this.onKeyUp.bind(this)),this._data={},this.editors={},this.colWrapper=void 0,this.editors.cols=[],this._dispatchTimer=null,this.data=e,Array.isArray(this.data.cols)?this.editors.numberOfColumns=this.data.cols.length:(this.data.cols=[],this.editors.numberOfColumns=2)}static get isReadOnlySupported(){return!0}static get TOOLBAR_SELECTOR(){return`.ce-inline-toolbar, .ce-toolbar, .ce-toolbox, .ce-popover, .ce-conversion-toolbar, .ce-settings`}_notifyParentChanged(){this.block&&(clearTimeout(this._dispatchTimer),this._dispatchTimer=setTimeout(()=>{let e=document.activeElement;e&&this.colWrapper&&this.colWrapper.contains(e)&&e.closest(I.TOOLBAR_SELECTOR)||this.block.dispatchChange()},300))}onKeyUp(e){e.code===`Backspace`||e.code}get CSS(){return{settingsButton:this.api.styles.settingsButton,settingsButtonActive:this.api.styles.settingsButtonActive}}renderSettings(){return[{icon:`2`,label:this.api.i18n.t(`2 Columns`),onActivate:()=>{this._updateCols(2)}},{icon:`3`,label:this.api.i18n.t(`3 Columns`),onActivate:()=>{this._updateCols(3)}},{icon:`R`,label:this.api.i18n.t(`Roll Columns`),onActivate:()=>{this._rollColumns()}}]}_rollColumns(){this.data.cols.unshift(this.data.cols.pop()),this.editors.cols.unshift(this.editors.cols.pop()),this._rerender()}_createConfirmModal(){let e=`editorjs-columns-confirm-modal`,t=document.getElementById(e);return t&&t.remove(),t=document.createElement(`div`),t.id=e,t.classList.add(`modal`,`micromodal-slide`),t.setAttribute(`aria-hidden`,`true`),t.innerHTML=`\n\t\t\t<div class="modal__overlay" tabindex="-1" data-micromodal-close>\n\t\t\t\t<div class="modal__container" role="dialog" aria-modal="true" aria-labelledby="${e}-title">\n\t\t\t\t\t<header class="modal__header">\n\t\t\t\t\t\t<h2 id="${e}-title" class="modal__title">${this.api.i18n.t(`Are you sure?`)}</h2>\n\t\t\t\t\t\t<button class="modal__close" aria-label="Close modal" data-micromodal-close></button>\n\t\t\t\t\t</header>\n\t\t\t\t\t<div class="modal__content" id="${e}-content">\n\t\t\t\t\t\t<p>${this.api.i18n.t(`This will delete Column 3!`)}</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<footer class="modal__footer">\n\t\t\t\t\t\t<button class="modal__btn modal__btn--primary" data-micromodal-confirm>${this.api.i18n.t(`Yes, delete it!`)}</button>\n\t\t\t\t\t\t<button class="modal__btn" data-micromodal-close>${this.api.i18n.t(`Cancel`)}</button>\n\t\t\t\t\t</footer>\n\t\t\t\t</div>\n\t\t\t</div>`,document.body.appendChild(t),{modal:t,modalId:e}}_showConfirmModal(){return new Promise(e=>{let{modal:t,modalId:n}=this._createConfirmModal(),r=!1;t.querySelector(`[data-micromodal-confirm]`).addEventListener(`click`,()=>{r=!0,y.close(n)}),y.show(n,{onClose:()=>{t.remove(),e(r)}})})}async _updateCols(e){e==2&&this.editors.numberOfColumns==3&&await this._showConfirmModal()&&(this.editors.numberOfColumns=2,this.data.cols.pop(),this.editors.cols.pop(),this._rerender()),e==3&&(this.editors.numberOfColumns=3,this._rerender())}async _rerender(){await this.save();for(let e=0;e<this.editors.cols.length;e++)this.editors.cols[e].destroy();this.editors.cols=[],this.colWrapper.innerHTML=``;for(let e=0;e<this.editors.numberOfColumns;e++){let t=document.createElement(`div`);t.classList.add(`ce-editorjsColumns_col`),t.classList.add(`editorjs_col_`+e);let n=u();t.id=n,this.colWrapper.appendChild(t);let r=new this.config.EditorJsLibrary({defaultBlock:`paragraph`,holder:n,tools:this.config.tools,data:this.data.cols[e],readOnly:this.readOnly,minHeight:50});this.editors.cols.push(r)}}render(){if(this.colWrapper=document.createElement(`div`),this.colWrapper.classList.add(`ce-editorjsColumns_wrapper`),!this.readOnly){let e=e=>e.stopPropagation();
7this.colWrapper.addEventListener(`keydown`,e),this.colWrapper.addEventListener(`keyup`,e),this.colWrapper.addEventListener(`keypress`,e),this.colWrapper.addEventListener(`paste`,e),this.colWrapper.addEventListener(`copy`,e),this.colWrapper.addEventListener(`cut`,e),this.colWrapper.setAttribute(`tabindex`,`-1`),this.colWrapper.style.outline=`none`,this.colWrapper.addEventListener(`click`,e=>{e.target.closest(I.TOOLBAR_SELECTOR)||setTimeout(()=>{let e=window.getSelection();e&&!e.isCollapsed||this.colWrapper.contains(document.activeElement)||this.colWrapper.focus()},20)}),this._selectionChangeHandler=e=>{if(!this.colWrapper)return;let t=document.activeElement;t&&this.colWrapper.contains(t)&&t.closest(`.ce-inline-toolbar`)&&(t.tagName===`INPUT`||t.tagName===`TEXTAREA`)&&e.stopImmediatePropagation()},document.addEventListener(`selectionchange`,this._selectionChangeHandler,!0)}for(let e=0;e<this.editors.cols.length;e++)this.editors.cols[e].destroy();this.editors.cols=[];for(let e=0;e<this.editors.numberOfColumns;e++){let t=document.createElement(`div`);t.classList.add(`ce-editorjsColumns_col`),t.classList.add(`editorjs_col_`+e);let n=u();t.id=n,this.colWrapper.appendChild(t);let r=new this.config.EditorJsLibrary({defaultBlock:`paragraph`,holder:n,tools:this.config.tools,data:this.data.cols[e],readOnly:this.readOnly,minHeight:50,onChange:()=>this._notifyParentChanged()});this.editors.cols.push(r)}return this.colWrapper}async save(){if(!this.readOnly){let e=this.colWrapper&&this.colWrapper.contains(document.activeElement)?document.activeElement:null;e&&typeof e.blur==`function`&&(e.closest(I.TOOLBAR_SELECTOR)||e.blur());for(let e=0;e<this.editors.cols.length;e++){let t=await this.editors.cols[e].save();this.data.cols[e]=t}}return this.data}destroy(){this._selectionChangeHandler&&=(document.removeEventListener(`selectionchange`,this._selectionChangeHandler,!0),null),clearTimeout(this._dispatchTimer)}static get toolbox(){return{icon:x(),title:`Columns`}}}})(),i.default})());var n=t;const r=t.editorjsColumns;export{n as default,r as editorjsColumns}; 8
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.