@ebl-vue/editor-render 2.31.64 → 2.31.66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,180 +1,199 @@
1
1
  (function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode('.cdx-alert{position:relative;padding:10px;border-radius:5px;margin-bottom:10px;margin-top:10px}.cdx-alert-primary{background-color:#ebf8ff;border:1px solid #4299e1;color:#2b6cb0}.cdx-alert-secondary{background-color:#f7fafc;border:1px solid #cbd5e0;color:#222731}.cdx-alert-info{background-color:#e6fdff;border:1px solid #4cd4ce;color:#00727c}.cdx-alert-success{background-color:#f0fff4;border:1px solid #68d391;color:#2f855a}.cdx-alert-warning{background-color:#fffaf0;border:1px solid #ed8936;color:#c05621}.cdx-alert-danger{background-color:#fff5f5;border:1px solid #fc8181;color:#c53030}.cdx-alert-light{background-color:#fff;border:1px solid #edf2f7;color:#1a202c}.cdx-alert-dark{background-color:#2d3748;border:1px solid #1a202c;color:#d3d3d3}.cdx-alert-align-left{text-align:left}.cdx-alert-align-center{text-align:center}.cdx-alert-align-right{text-align:right}.cdx-alert__message{outline:none}.cdx-alert [contentEditable=true][data-placeholder]:before{position:absolute;content:attr(data-placeholder);color:#707684;font-weight:400;opacity:0}.cdx-alert [contentEditable=true][data-placeholder]:empty:before{opacity:1}.cdx-alert [contentEditable=true][data-placeholder]:empty:focus:before{opacity:0}.ce-popover__item[data-item-name=alert-primary] .ce-popover__item-icon svg #background{fill:#ebf8ff;stroke:#4299e1}.ce-popover__item[data-item-name=alert-primary] .ce-popover__item-icon svg #content{fill:#2b6cb0}.ce-popover__item[data-item-name=alert-secondary] .ce-popover__item-icon svg #background{fill:#f7fafc;stroke:#cbd5e0}.ce-popover__item[data-item-name=alert-secondary] .ce-popover__item-icon svg #content{fill:#222731}.ce-popover__item[data-item-name=alert-info] .ce-popover__item-icon svg #background{fill:#e6fdff;stroke:#4cd4ce}.ce-popover__item[data-item-name=alert-info] .ce-popover__item-icon svg #content{fill:#00727c}.ce-popover__item[data-item-name=alert-success] .ce-popover__item-icon svg #background{fill:#f0fff4;stroke:#68d391}.ce-popover__item[data-item-name=alert-success] .ce-popover__item-icon svg #content{fill:#2f855a}.ce-popover__item[data-item-name=alert-warning] .ce-popover__item-icon svg #background{fill:#fffaf0;stroke:#ed8936}.ce-popover__item[data-item-name=alert-warning] .ce-popover__item-icon svg #content{fill:#c05621}.ce-popover__item[data-item-name=alert-danger] .ce-popover__item-icon svg #background{fill:#fff5f5;stroke:#fc8181}.ce-popover__item[data-item-name=alert-danger] .ce-popover__item-icon svg #content{fill:#c53030}.ce-popover__item[data-item-name=alert-light] .ce-popover__item-icon svg #background{fill:#fff;stroke:#edf2f7}.ce-popover__item[data-item-name=alert-light] .ce-popover__item-icon svg #content{fill:#1a202c}.ce-popover__item[data-item-name=alert-dark] .ce-popover__item-icon svg #background{fill:#2d3748;stroke:#1a202c}.ce-popover__item[data-item-name=alert-dark] .ce-popover__item-icon svg #content{fill:#d3d3d3}.cdx-alert_setting__icon_wrapper{display:flex;flex-direction:row;flex-wrap:wrap;gap:10px}.cdx-alert_setting__icon_wrapper_align{margin-top:10px}.cdx-alert_setting__icon{display:inline-block;width:24px;height:24px;text-align:center;line-height:24px;cursor:pointer}.cdx-alert_setting__icon_active{opacity:.3}.ce-block--selected .cdx-alert{outline:2px solid #4299e1}.ce-tune-alignment--right{text-align:right}.ce-tune-alignment--center{text-align:center}.ce-tune-alignment--left{text-align:left}.ce-editorjs-x-shiki{border-radius:10px;display:flex;flex-direction:column;margin:10px 0;border:2px solid transparent;position:relative}.ce-editorjs-x-shiki.editable:hover{border:2px solid #C0C0C0}.ce-editorjs-x-shiki__lang{display:flex;justify-content:space-between;padding:8px}.ce-editorjs-x-shiki__code{position:relative;float:left;min-width:100%;overflow:hidden;height:auto;min-height:60px}.ce-editorjs-x-shiki__code__dragHandler{position:absolute;left:50%;transform:translate(-50%);bottom:-5px;cursor:ns-resize;user-select:none;height:8px;width:60px;background-color:silver;border-radius:5px;display:none}.ce-editorjs-x-shiki:hover .ce-editorjs-x-shiki__code__dragHandler{display:block}.ce-editorjs-x-shiki__selector{display:flex;gap:15px;justify-content:space-between;border-bottom-style:solid;border-color:#9ca3af0d;border-bottom-width:1px;padding:0 8px 8px}.ce-editorjs-x-shiki__selector-language,.ce-editorjs-x-shiki__selector-theme{font-size:13px;font-family:inherit}.ce-editorjs-x-shiki__selector-language{width:90px}.ce-editorjs-x-shiki__selector select{border:none;outline:none}.ce-editorjs-x-shiki__span{position:relative;z-index:0;padding:20px 20px 20px 55px;margin:0;white-space:pre;font-size:13px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.ce-editorjs-x-shiki__span code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.ce-editorjs-x-shiki__textarea{all:unset;white-space:pre;background-color:transparent;position:absolute;padding:20px 20px 20px 55px;inset:0;color:transparent;z-index:0;font-size:13px;caret-color:#999;resize:none;border:none;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.ce-editorjs-x-shiki__textarea::selection{background-color:#083ca9;color:#fff}.ce-editorjs-x-shiki__copy{width:24px;height:24px;cursor:pointer;position:relative;margin-right:0}.ce-editorjs-x-shiki__copy_tip{font-size:12px;width:60px;margin-left:-20px;background-color:#0c0c0c;color:#ececec;text-align:center;border-radius:6px;padding:5px 10px;position:absolute;z-index:1;top:125%;transition:opacity .3s;visibility:hidden;opacity:0}.ce-editorjs-x-shiki__copy_tip:after{content:"";position:absolute;bottom:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:transparent transparent #0c0c0c transparent}.ce-editorjs-x-shiki__copy_tip.visible{visibility:visible;opacity:1}.ce-editorjs-x-shiki__span.shiki .line:before{content:attr(data-line);width:40px;display:inline-block;text-align:right;color:#888;position:absolute;left:0}.ce-editorjs-x-shiki__code ::-webkit-scrollbar{width:8px;height:8px}.ce-editorjs-x-shiki__code ::-webkit-scrollbar-track{background:#22272e;border-radius:1px}.ce-editorjs-x-shiki__code ::-webkit-scrollbar-thumb{background:silver;border-radius:10px;border:2px solid #22272e}.ce-editorjs-x-shiki__code ::-webkit-scrollbar-thumb:hover{background:#555}.ce-block--selected .ce-editorjs-x-shiki{outline:2px solid #4299e1}.ce-block--selected .ce-editorjs-x-shiki,.ce-block--selected .ce-editorjs-x-shiki__selector-language,.ce-block--selected .ce-editorjs-x-shiki__span{background-color:#e1f2ff!important}.ce-delimiter__line__wrapper{height:24px;display:flex;align-items:center;justify-content:center}.ce-delimiter__line{flex:1;height:2px;background-color:#eff0f1}.ce-header{padding:15px 0 3px;margin:0;line-height:1.25;outline:none}.ce-header p,.ce-header div{padding:0!important;margin:0!important}.image-tool{--bg-color: #cdd1e0;--front-color: #388ae5;--border-color: #e8e8eb;display:inline-block}.image-tool__image{border-radius:3px;overflow:hidden;margin-bottom:10px;padding-bottom:0;user-select:none;pointer-events:none}.image-tool__image-picture{max-width:100%;vertical-align:bottom;display:inline-block;user-select:none;pointer-events:none}.image-tool__image-preloader{width:150px;height:150px;border-radius:50%;background-size:cover;margin:auto;position:relative;background-color:var(--bg-color);background-position:center center}.image-tool__image-preloader:after{content:"";position:absolute;z-index:3;width:60px;height:60px;border-radius:50%;border:2px solid var(--bg-color);border-top-color:var(--front-color);left:50%;top:50%;margin-top:-30px;margin-left:-30px;animation:image-preloader-spin 2s infinite linear;box-sizing:border-box}.image-tool__caption{visibility:hidden;position:absolute;bottom:0;left:0;margin-bottom:10px}.image-tool__caption[contentEditable=true][data-placeholder]:before{position:absolute!important;content:attr(data-placeholder);color:#707684;font-weight:400;display:none}.image-tool__caption[contentEditable=true][data-placeholder]:empty:before{display:block}.image-tool__caption[contentEditable=true][data-placeholder]:empty:focus:before{display:none}.image-tool--empty .image-tool__image,.image-tool--empty .image-tool__image-preloader{display:none}.image-tool--empty .image-tool__caption,.image-tool--uploading .image-tool__caption{visibility:hidden!important}.image-tool .cdx-button{display:none;align-items:center;justify-content:center}.image-tool .cdx-button svg{height:auto;margin:0 6px 0 0}.image-tool--filled .cdx-button,.image-tool--filled .image-tool__image-preloader{display:none}.image-tool--uploading{width:100%}.image-tool--uploading .resizable{display:none!important}.image-tool--uploading .image-tool__image{min-height:200px;display:flex;background-color:#fff}.image-tool--uploading .image-tool__image-picture,.image-tool--uploading .cdx-button{display:none}.image-tool--withBorder .image-tool__image{border:1px solid var(--border-color)}.image-tool--withBackground .image-tool__image{padding:15px;background:var(--bg-color)}.image-tool--withBackground .image-tool__image-picture{max-width:60%;margin:0 auto}.image-tool--stretched .image-tool__image-picture{width:100%}.image-tool--caption .image-tool__caption{visibility:visible}.image-tool--caption{padding-bottom:50px}@keyframes image-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ce-popover-indent-item{cursor:default!important;display:flex;align-items:center;padding:3px}.ce-popover-indent-item[version^="2.26"]{gap:10px}.ce-popover-indent-item:hover{background-color:transparent!important}.ce-popover-indent-item .ce-popover-item__icon{width:26px;height:26px;cursor:pointer;will-change:background-color,color;transition:.3s background-color,.3s color;padding-block:0px;padding-inline:0px;border-width:0px;color:var(--color-text-primary, black);background-color:#fff;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;-webkit-transition:.3s background-color,.3s color;-moz-transition:.3s background-color,.3s color;-ms-transition:.3s background-color,.3s color;-o-transition:.3s background-color,.3s color}.ce-popover-indent-item .ce-popover-item--disabled{color:var(--color-text-secondary, #707684);opacity:.3;cursor:default}.ce-popover-indent-item .ce-popover-item__icon:focus{outline:none}.ce-popover-indent-item:is([version^="2.26"],[version^="2.27"],[version^="2.28"],[version^="2.29"]):hover .ce-popover-item__icon{box-shadow:0 0 0 1px var(--color-border-icon, rgba(201, 201, 204, .48))!important;-webkit-box-shadow:0 0 0 1px var(--color-border-icon, rgba(201, 201, 204, .48))!important}.ce-popover-indent-item:is([version^="2.26"],[version^="2.27"],[version^="2.28"],[version^="2.29"]) .ce-popover-item__icon{box-shadow:0 0 0 1px var(--color-border-icon, rgba(201, 201, 204, .48))!important;-webkit-box-shadow:0 0 0 1px var(--color-border-icon, rgba(201, 201, 204, .48))!important}.ce-popover-indent-item:is([version^="2.26"],[version^="2.27"],[version^="2.28"],[version^="2.29"]) .ce-popover-item__icon:hover{background-color:var(--color-background-item-hover, #eff2f5)}.ce-highlight-indent{display:inline-block;height:1.6em;top:50%;position:absolute;transform:translateY(-50%);-webkit-transform:translate(0px,-50%);-moz-transform:translate(0px,-50%);-ms-transform:translate(0px,-50%);-o-transform:translate(0px,-50%)}.ce-popover-indent-item[version^="2.3"] .ce-popover-item__title{margin-left:4px}.cdx-list{margin:0;padding:0;outline:none;display:grid;counter-reset:item;gap:var(--spacing-s);padding:var(--spacing-xs);--spacing-s: 8px;--spacing-xs: 6px;--list-counter-type: numeric;--radius-border: 5px;--checkbox-background: #fff;--color-border: #C9C9C9;--color-bg-checked: #369FFF;--line-height: 1.45em;--color-bg-checked-hover: #0059AB;--color-tick: #fff;--size-checkbox: 1.2em}.cdx-list ol{padding-inline-start:0}.cdx-list__item{line-height:var(--line-height);display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;grid-template-areas:"checkbox content" ". child"}.cdx-list__item-children{display:grid;grid-area:child;gap:var(--spacing-s);padding-top:var(--spacing-s)}.cdx-list__item [contenteditable]{outline:none}.cdx-list__item-content{word-break:break-word;white-space:pre-wrap;grid-area:content;padding-left:var(--spacing-s)}.cdx-list__item:before{counter-increment:item;white-space:nowrap}.cdx-list-ordered .cdx-list__item:before{content:counters(item,".",var(--list-counter-type)) "."}.cdx-list-ordered{counter-reset:item}.cdx-list-unordered{padding-inline-start:0}.cdx-list-unordered .cdx-list__item:before{content:"•"}.cdx-list-checklist .cdx-list__item:before{content:""}.cdx-list__settings .cdx-settings-button{width:50%}.cdx-list__checkbox{padding-top:calc((var(--line-height) - var(--size-checkbox)) / 2);grid-area:checkbox;width:var(--size-checkbox);height:var(--size-checkbox);display:flex;cursor:pointer}.cdx-list__checkbox svg{opacity:0;height:var(--size-checkbox);width:var(--size-checkbox);left:-1px;top:-1px;position:absolute}@media (hover: hover){.cdx-list__checkbox:not(.cdx-list__checkbox--no-hover):hover .cdx-list__checkbox-check svg{opacity:1}}.cdx-list__checkbox--checked{line-height:var(--line-height)}@media (hover: hover){.cdx-list__checkbox--checked:not(.cdx-list__checkbox--checked--no-hover):hover .cdx-checklist__checkbox-check{background:var(--color-bg-checked-hover);border-color:var(--color-bg-checked-hover)}}.cdx-list__checkbox--checked .cdx-list__checkbox-check{background:var(--color-bg-checked);border-color:var(--color-bg-checked)}.cdx-list__checkbox--checked .cdx-list__checkbox-check svg{opacity:1}.cdx-list__checkbox--checked .cdx-list__checkbox-check svg path{stroke:var(--color-tick)}.cdx-list__checkbox--checked .cdx-list__checkbox-check:before{opacity:0;visibility:visible;transform:scale(2.5)}.cdx-list__checkbox-check{cursor:pointer;display:inline-block;position:relative;margin:0 auto;width:var(--size-checkbox);height:var(--size-checkbox);box-sizing:border-box;border-radius:var(--radius-border);border:1px solid var(--color-border);background:var(--checkbox-background)}.cdx-list__checkbox-check:before{content:"";position:absolute;inset:0;border-radius:100%;background-color:var(--color-bg-checked);visibility:hidden;pointer-events:none;transform:scale(1);transition:transform .4s ease-out,opacity .4s}.cdx-list__checkbox-check--disabled{pointer-events:none}.cdx-list-start-with-field{display:flex;flex-direction:row;overflow:hidden;align-items:center}.cdx-list-start-with-field--invalid{background:#ffeced;border:1px solid #E13F3F}.cdx-list-start-with-field:hover{background-color:#f8f8f8}.cdx-list-start-with-field--invalid .cdx-list-start-with-field__input{color:#e13f3f}.cdx-list-start-with-field__startlabel{width:70px;font-size:14px}.cdx-list-start-with-field__input-wrapper{flex:1;overflow:hidden}.cdx-list-start-with-field__input{font-size:14px;outline:none;font-weight:500;font-family:inherit;border:0;background:transparent;margin:0;line-height:22px;flex:1;border:1px solid rgba(226,226,229,1);border-radius:6px;padding:0 10px;width:50px;text-align:center}.cdx-list-start-with-field__input::placeholder{color:var(--grayText);font-weight:500}.ce-paragraph{line-height:2!important;outline:none}.ce-block:only-of-type .ce-paragraph[data-placeholder-active]:empty:before,.ce-block:only-of-type .ce-paragraph[data-placeholder-active][data-empty=true]:before{content:attr(data-placeholder-active)}.ce-paragraph p:first-of-type{margin-top:0}.ce-paragraph p:last-of-type{margin-bottom:0}.cdx-quote{overflow:hidden;overflow-wrap:break-word;margin:0;box-sizing:border-box;word-wrap:break-word;word-break:break-all}.cdx-quote blockquote{margin:0}.cdx-block-quote{border:solid #acacac;border-width:0 0 0 3px;box-shadow:none;color:#666;line-height:1.6em;padding:1px 0 0 12px}.tc-wrap{--color-background: #f9f9fb;--color-text-secondary: #7b7e89;--color-border: #e8e8eb;--cell-size: 34px;--toolbox-icon-size: 18px;--toolbox-padding: 6px;--toolbox-aiming-field-size: calc(var(--toolbox-icon-size) + var(--toolbox-padding)*2);--col-width: 100px 100px 100px;position:relative;height:100%;margin-top:var(--toolbox-icon-size);box-sizing:border-box;display:inline-grid;z-index:0}.tc-wrap svg{vertical-align:top}@media print{.tc-wrap{border-left-color:var(--color-border);border-left-style:solid;border-left-width:1px}}@media print{.tc-wrap .tc-row:after{display:none}}.tc-table{position:relative;width:100%;height:100%;display:grid;font-size:14px;border-top:1px solid var(--color-border);border-left:1px solid var(--color-border);line-height:1.4;overflow-x:auto}.tc-table:after{width:calc(var(--cell-size));height:100%;left:calc(var(--cell-size)*-1);top:0}.tc-table:after,.tc-table:before{position:absolute;content:""}.tc-table:before{width:100%;height:var(--toolbox-aiming-field-size);top:calc(var(--toolbox-aiming-field-size)*-1);left:0}.tc-table--heading .tc-row:first-child{font-weight:600;border-bottom:2px solid var(--color-border);position:sticky;top:0;z-index:2;background:var(--color-background)}.tc-table--heading .tc-row:first-child [contenteditable]:empty:before{content:attr(heading);color:var(--color-text-secondary)}.tc-table--heading .tc-row:first-child:after{bottom:-2px;border-bottom:2px solid var(--color-border)}.tc-add-column,.tc-add-row{display:flex;color:var(--color-text-secondary)}@media print{.tc-add{display:none}}.tc-add-column{display:grid;border-top:1px solid var(--color-border);grid-auto-rows:var(--cell-size);place-items:center}.tc-add-column svg{padding:5px;position:sticky;top:0;background-color:var(--color-background)}.tc-add-column--disabled{visibility:hidden}@media print{.tc-add-column{display:none}}.tc-add-row{height:var(--cell-size);align-items:center;padding-left:4px;position:relative}.tc-add-row--disabled{display:none}.tc-add-row:before{content:"";position:absolute;right:calc(var(--cell-size)*-1);width:var(--cell-size);height:100%}@media print{.tc-add-row{display:none}}.tc-add-column,.tc-add-row{transition:0s;cursor:pointer;will-change:background-color}.tc-add-column:hover,.tc-add-row:hover{transition:background-color .1s ease;background-color:var(--color-background)}.tc-add-row{margin-top:1px}.tc-add-row:hover:before{transition:.1s;background-color:var(--color-background)}.tc-row{display:grid;grid-template-columns:var(--col-width);position:relative;border-bottom:1px solid var(--color-border)}.tc-row--selected{background:var(--color-background)}.tc-row--selected:after{background:var(--color-background)}.tc-cell{border-right:1px solid var(--color-border);padding:6px 12px;overflow:hidden;outline:none;line-break:normal}.tc-cell--selected{background:var(--color-background)}.tc-wrap--readonly .tc-row:after{display:none}.tc-toolbox{--toolbox-padding: 6px;--popover-margin: 30px;--toggler-click-zone-size: 30px;--toggler-dots-color: #7b7e89;--toggler-dots-color-hovered: #1d202b;position:absolute;cursor:pointer;z-index:1;opacity:0;transition:opacity .1s;will-change:left,opacity}.tc-toolbox--column{top:calc(var(--toggler-click-zone-size)*-1);transform:translate(calc(var(--toggler-click-zone-size)*-1/2));will-change:left,opacity}.tc-toolbox--row{left:calc(var(--popover-margin)*-1);transform:translateY(calc(var(--toggler-click-zone-size)*-1/2));margin-top:-1px;will-change:top,opacity}.tc-toolbox--showed{opacity:1}.tc-toolbox .tc-popover{position:absolute;top:0;left:var(--popover-margin)}.tc-toolbox__toggler{display:flex;align-items:center;justify-content:center;width:var(--toggler-click-zone-size);height:var(--toggler-click-zone-size);color:var(--toggler-dots-color);opacity:0;transition:opacity .15s ease;will-change:opacity}.tc-toolbox__toggler:hover{color:var(--toggler-dots-color-hovered)}.tc-toolbox__toggler svg{fill:currentColor}.tc-wrap:hover .tc-toolbox__toggler{opacity:1}.tc-settings .cdx-settings-button{width:50%;margin:0}.tc-popover{--color-border: #eaeaea;--color-background: #fff;--color-background-hover: rgba(232, 232, 235, .49);--color-background-confirm: #e24a4a;--color-background-confirm-hover: #d54040;--color-text-confirm: #fff;background:var(--color-background);border:1px solid var(--color-border);box-shadow:0 3px 15px -3px #0d142121;border-radius:6px;padding:6px;display:none;will-change:opacity,transform}.tc-popover--opened{display:flex;animation:menuShowing .1s cubic-bezier(.215,.61,.355,1) forwards}.tc-popover__item{display:flex;align-items:center;padding:2px 14px 2px 2px;border-radius:5px;cursor:pointer;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tc-popover__item:hover{background:var(--color-background-hover)}.tc-popover__item:not(:last-of-type){margin-bottom:2px}.tc-popover__item-icon{display:inline-flex;width:26px;height:26px;align-items:center;justify-content:center;background:var(--color-background);border-radius:5px;border:1px solid var(--color-border);margin-right:8px}.tc-popover__item-label{line-height:22px;font-size:14px;font-weight:500}.tc-popover__item--confirm{background:var(--color-background-confirm);color:var(--color-text-confirm)}.tc-popover__item--confirm:hover{background-color:var(--color-background-confirm-hover)}.tc-popover__item--confirm .tc-popover__item-icon{background:var(--color-background-confirm);border-color:#0000001a}.tc-popover__item--confirm .tc-popover__item-icon svg{transition:transform .2s ease-in;transform:rotate(90deg) scale(1.2)}.tc-popover__item--hidden{display:none}@keyframes menuShowing{0%{opacity:0;transform:translateY(-8px) scale(.9)}70%{opacity:1;transform:translateY(2px)}to{transform:translateY(0)}}.cell-resizable{cursor:col-resize}.ce-popover--inline .ce-popover--nested .ce-popover__container{width:min-content!important;min-width:unset!important}.ce-popover--inline .ce-popover--nested .ce-popover__items{width:max-content}.editorjs__color-selector-container{display:grid;gap:10px;padding:4px}.editorjs__color-selector__container-item{width:30px;height:30px;display:block;cursor:pointer;border-radius:100%;transition:transform .2s ease}.editorjs__color-selector__container-item:hover{transform:scale(1.1)}.cel-inline-bold{font-weight:700}.cel-inline-strikethrough{text-decoration:line-through}.cel-inline-italic{font-style:italic}.cel-inline-code{margin-left:2px;margin-right:2px;background-color:#f5f6f7;border:1px solid #dee0e3;border-color:#dee0e3;border-width:1px 0;border-radius:4px;padding:1px 5px 1px 4px}.cel-inline-underline{text-decoration:underline}.cel-inline-underline.cel-inline-strikethrough{text-decoration:underline line-through}.cel-inline-mark{background-color:#ff0;padding:2px}.cel-inline-link.cel-inline-strikethrough{text-decoration:line-through underline}.cel-inline-link-input-wrap{display:flex;flex-direction:row;gap:5px}.cel-inline-link-input{flex:1;background:#f8f8f8;border:1px solid rgba(226,226,229,.2);border-radius:6px;padding:4px 8px;font-size:14px;line-height:22px;outline:none;margin:0;width:100%;box-sizing:border-box;font-weight:500;font-family:inherit}.cel-inline-link-input-btn{width:50px;border-radius:5px;background-color:#161c27;color:#fff;border:none;cursor:pointer}.cel-inline-link-input-btn.disabled{opacity:.4;cursor:not-allowed}.cel-fake-background{background-color:#a8d6ff}.editorjs__color-selector__input{width:1px;height:1px;opacity:0}.editorjs__color-selector__container-item-none{background-color:transparent;border:1px solid #e6e6e6;position:relative}.editorjs__color-selector__container-item-none:before{content:"";position:absolute;top:50%;left:50%;width:1px;height:35px;background-color:#e6e6e6;transform:translate(-50%,-50%) rotate(45deg)}.cel-inline-gray-text{color:#646a73}.cel-inline-pink-text{color:#d83931}.cel-inline-orange-text{color:#de7802}.cel-inline-yellow-text{color:#dc9b04}.cel-inline-green-text{color:#2ea121}.cel-inline-blue-text{color:#245bdb}.cel-inline-purple-text{color:#6425d0}.ebl-er-doc{font-family:var(--font-family);font-size:16px;font-weight:400;box-sizing:border-box}.ebl-er-header{height:var(--ebl-er-header-height);box-sizing:border-box;position:sticky;top:0;z-index:10}.ebl-er-footer{height:var(--ebl-er-footer-height);box-sizing:border-box}.ebl-er-container{display:flex;flex-direction:row;min-height:calc(100vh - var(--ebl-er-header-height))}.ebl-er-doc-menu{width:var(--ebl-er-doc-menu-width);box-sizing:border-box;flex-shrink:0;height:calc(100vh - var(--ebl-er-header-height));position:sticky;top:var(--ebl-er-header-height)}.ebl-er-doc-menu-content{box-sizing:border-box}.ebl-er-doc-content{box-sizing:border-box;display:flex;flex-direction:row;max-width:calc(100% - var(--ebl-er-doc-menu-width));flex-grow:1}.ebl-er-doc-content-container{box-sizing:border-box;flex:1;padding:0 50px 50px;width:100%;overflow-x:hidden;white-space:normal;word-wrap:break-word}.ebl-er-doc-content-inner-wrap{margin:0 auto}.ebl-er-doc-content-inner .ce-block{width:100%}.ebl-er-doc-outline{width:280px;box-sizing:border-box;height:calc(100vh - var(--ebl-er-header-height));position:sticky;top:var(--ebl-er-header-height);overflow:auto;padding:12px}.ebl-er-doc-pre-next{display:flex;justify-content:space-between;align-items:center;padding:33px 0}@media (max-width:960px){.ebl-er-doc-outline{display:none}}.ebl-er-doc ::-webkit-scrollbar{width:6px;height:6px}.ebl-er-doc ::-webkit-scrollbar-track{background:#f1f1f1;border-radius:1px}.ebl-er-doc ::-webkit-scrollbar-thumb{background:silver;border-radius:10px;border:1px solid #fff}.ebl-er-doc ::-webkit-scrollbar-thumb:hover{background:#555}.ce-editorjs-x-shiki__code[data-v-f867b955]{overflow:auto}.ce-editorjs-x-shiki__selector[data-v-f867b955]{padding:0 8px;align-items:center}.ce-editorjs-x-shiki__copy_tip[data-v-f867b955]{visibility:visible;opacity:.9;width:40px;padding:5px;margin-left:-15px}.tc-wrap--readonly[data-v-0627102b]{margin-bottom:var(--toolbox-icon-size)}.image-tool__image[data-v-ff96876e]{margin-top:15px}.ebl-er-doc-outline-item{padding:7px 24px;cursor:pointer;white-space:normal;word-wrap:break-word}.ebl-er-doc-outline-item:hover{background-color:#f6f6f6}.ebl-er-doc-outline-item.selected{background-color:#ebebeb}.ebl-outline .level_1{padding-left:24px}.ebl-outline .level_2{padding-left:42px}.ebl-outline .level_3{padding-left:60px}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
- import { defineComponent as h, computed as C, resolveComponent as P, createElementBlock as o, openBlock as s, normalizeStyle as M, createCommentVNode as _, createElementVNode as n, renderSlot as x, Fragment as g, renderList as w, normalizeClass as H, createBlock as Z, resolveDynamicComponent as J, createVNode as Q, useModel as m, isRef as U, shallowRef as W, ref as T, watchEffect as X, unref as D, toDisplayString as O, createStaticVNode as ee, watch as te } from "vue";
3
- import { codeToHtml as le } from "shiki";
4
- const I = Symbol("INSTALLED_KEY"), ae = (a, e) => (a.install = (l) => {
2
+ import { defineComponent as v, computed as C, resolveComponent as P, createElementBlock as s, openBlock as o, normalizeStyle as M, createCommentVNode as y, createElementVNode as i, renderSlot as x, Fragment as g, renderList as w, normalizeClass as H, createBlock as U, resolveDynamicComponent as Z, createVNode as J, useModel as m, isRef as Q, shallowRef as W, ref as T, watchEffect as X, unref as V, toDisplayString as O, createStaticVNode as ee, watch as te, onMounted as le, nextTick as ae, onUnmounted as oe } from "vue";
3
+ import { codeToHtml as se } from "shiki";
4
+ const D = Symbol("INSTALLED_KEY"), ne = (a, e) => (a.install = (l) => {
5
5
  for (const c of [a, ...Object.values({})]) l.component(c.name, c);
6
- }, a), se = { key: 0, class: "ebl-er-header" }, oe = { class: "ebl-er-container" }, ne = { key: 0, class: "ebl-er-doc-menu" }, ie = { class: "ebl-er-doc-content" }, ce = { class: "ebl-er-doc-content-container" }, re = { class: "ebl-er-doc-content-inner-wrap" }, de = { class: "ebl-er-doc-title" }, ue = { class: "ebl-er-doc-content-inner" }, pe = ["data-id", "data-type"], he = { class: "ebl-er-doc-pre-next" }, ve = { key: 0, class: "ebl-er-doc-outline" }, me = { key: 1, class: "ebl-er-footer" }, ke = h({ name: "EblEditorRender", inheritAttrs: !1, __name: "EditorRender", props: { data: { default: () => ({ blocks: [] }) }, showHeader: { type: Boolean, default: !0 }, showFooter: { type: Boolean, default: !0 }, showDocMenu: { type: Boolean, default: !0 }, showOutline: { type: Boolean, default: !0 }, headerHeight: { default: 84 }, docMenuWidth: { default: 280 } }, setup(a) {
6
+ }, a), ie = { key: 0, class: "ebl-er-header" }, ce = { class: "ebl-er-container" }, re = { key: 0, class: "ebl-er-doc-menu" }, de = { class: "ebl-er-doc-content" }, ue = { class: "ebl-er-doc-content-container" }, pe = { class: "ebl-er-doc-content-inner-wrap" }, he = { class: "ebl-er-doc-title" }, ve = { class: "ebl-er-doc-content-inner" }, be = ["data-id", "data-type"], me = { class: "ebl-er-doc-pre-next" }, ke = { key: 0, class: "ebl-er-doc-outline" }, fe = { key: 1, class: "ebl-er-footer" }, _e = v({ name: "EblEditorRender", inheritAttrs: !1, __name: "EditorRender", props: { data: { default: () => ({ blocks: [] }) }, showHeader: { type: Boolean, default: !0 }, showFooter: { type: Boolean, default: !0 }, showDocMenu: { type: Boolean, default: !0 }, showOutline: { type: Boolean, default: !0 }, headerHeight: { default: 84 }, docMenuWidth: { default: 280 } }, setup(a) {
7
7
  const e = a, l = C(() => ({ "--ebl-er-header-height": `${e.headerHeight}px`, "--ebl-er-doc-menu-width": `${e.docMenuWidth}px` }));
8
8
  function c(t) {
9
9
  return t.tunes && t.tunes.blockAlignment && t.tunes.blockAlignment.alignment ? t.tunes.blockAlignment.alignment : "";
10
10
  }
11
11
  function r(t) {
12
- let k = {};
13
- return t.tunes && t.tunes.indent && t.tunes.indent.indentLevel && (k = { "padding-left": 48 * t.tunes.indent.indentLevel + "px" }), k;
12
+ let b = {};
13
+ return t.tunes && t.tunes.indent && t.tunes.indent.indentLevel && (b = { "padding-left": 48 * t.tunes.indent.indentLevel + "px" }), b;
14
14
  }
15
- return (t, k) => {
16
- const u = P("ebloutline");
17
- return s(), o("div", { class: "ebl-er-doc", style: M(l.value) }, [t.showHeader ? (s(), o("div", se, [x(t.$slots, "header")])) : _("", !0), n("div", oe, [t.showDocMenu ? (s(), o("div", ne, [x(t.$slots, "docMenu")])) : _("", !0), n("div", ie, [n("div", ce, [n("div", re, [n("div", de, [x(t.$slots, "docTitle")]), n("article", ue, [(s(!0), o(g, null, w(t.data.blocks, (b) => (s(), o("section", { class: "ce-block", "data-id": b.id, "data-type": b.type }, [n("div", { class: H(`ce-tune-alignment--${c(b)}`) }, [n("div", { style: M(r(b)) }, [(s(), Z(J("ebl" + b.type), { block: b }, null, 8, ["block"]))], 4)], 2)], 8, pe))), 256)), !t.data || !t.data.blocks || t.data.blocks.length <= 0 ? x(t.$slots, "noDoc", { key: 0 }) : _("", !0)]), n("div", he, [n("div", null, [x(t.$slots, "previous")]), n("div", null, [x(t.$slots, "next")])]), x(t.$slots, "doContentBottom")])]), t.showOutline ? (s(), o("aside", ve, [Q(u, { blocks: t.data.blocks, headerHeight: t.headerHeight }, null, 8, ["blocks", "headerHeight"])])) : _("", !0)])]), t.showFooter ? (s(), o("div", me, [x(t.$slots, "footer")])) : _("", !0)], 4);
15
+ return (t, b) => {
16
+ const d = P("ebloutline");
17
+ return o(), s("div", { class: "ebl-er-doc", style: M(l.value) }, [t.showHeader ? (o(), s("div", ie, [x(t.$slots, "header")])) : y("", !0), i("div", ce, [t.showDocMenu ? (o(), s("div", re, [x(t.$slots, "docMenu")])) : y("", !0), i("div", de, [i("div", ue, [i("div", pe, [i("div", he, [x(t.$slots, "docTitle")]), i("article", ve, [(o(!0), s(g, null, w(t.data.blocks, (k) => (o(), s("section", { class: "ce-block", "data-id": k.id, "data-type": k.type }, [i("div", { class: H(`ce-tune-alignment--${c(k)}`) }, [i("div", { style: M(r(k)) }, [(o(), U(Z("ebl" + k.type), { block: k }, null, 8, ["block"]))], 4)], 2)], 8, be))), 256)), !t.data || !t.data.blocks || t.data.blocks.length <= 0 ? x(t.$slots, "noDoc", { key: 0 }) : y("", !0)]), i("div", me, [i("div", null, [x(t.$slots, "previous")]), i("div", null, [x(t.$slots, "next")])]), x(t.$slots, "doContentBottom")])]), t.showOutline ? (o(), s("aside", ke, [J(d, { blocks: t.data.blocks, headerHeight: t.headerHeight }, null, 8, ["blocks", "headerHeight"])])) : y("", !0)])]), t.showFooter ? (o(), s("div", fe, [x(t.$slots, "footer")])) : y("", !0)], 4);
18
18
  };
19
- } }), be = ["innerHTML"], fe = h({ name: "eblparagraph", inheritAttrs: !1, __name: "paragraph", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
19
+ } }), ye = ["innerHTML"], xe = v({ name: "eblparagraph", inheritAttrs: !1, __name: "paragraph", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
20
20
  const e = m(a, "block");
21
- return (l, c) => (s(), o("div", { class: "ce-paragraph cdx-block", innerHTML: e.value.data.text }, null, 8, be));
22
- } }), _e = ["innerHTML"], ye = h({ name: "eblh1", inheritAttrs: !1, __name: "h1", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
21
+ return (l, c) => (o(), s("div", { class: "ce-paragraph cdx-block", innerHTML: e.value.data.text }, null, 8, ye));
22
+ } }), ge = ["innerHTML"], we = v({ name: "eblh1", inheritAttrs: !1, __name: "h1", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
23
23
  const e = m(a, "block");
24
- return (l, c) => (s(), o("h1", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, _e));
25
- } }), xe = ["innerHTML"], ge = h({ name: "eblh2", inheritAttrs: !1, __name: "h2", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
24
+ return (l, c) => (o(), s("h1", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, ge));
25
+ } }), Me = ["innerHTML"], Le = v({ name: "eblh2", inheritAttrs: !1, __name: "h2", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
26
26
  const e = m(a, "block");
27
- return (l, c) => (s(), o("h2", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, xe));
28
- } }), we = ["innerHTML"], Me = h({ name: "eblh3", inheritAttrs: !1, __name: "h3", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
27
+ return (l, c) => (o(), s("h2", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, Me));
28
+ } }), He = ["innerHTML"], Te = v({ name: "eblh3", inheritAttrs: !1, __name: "h3", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
29
29
  const e = m(a, "block");
30
- return (l, c) => (s(), o("h3", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, we));
31
- } }), Le = ["innerHTML"], He = h({ name: "eblh4", inheritAttrs: !1, __name: "h4", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
30
+ return (l, c) => (o(), s("h3", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, He));
31
+ } }), Ce = ["innerHTML"], Ae = v({ name: "eblh4", inheritAttrs: !1, __name: "h4", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
32
32
  const e = m(a, "block");
33
- return (l, c) => (s(), o("h4", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, Le));
34
- } }), Te = ["innerHTML"], Ce = h({ name: "eblh5", inheritAttrs: !1, __name: "h5", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
33
+ return (l, c) => (o(), s("h4", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, Ce));
34
+ } }), Ee = ["innerHTML"], Se = v({ name: "eblh5", inheritAttrs: !1, __name: "h5", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
35
35
  const e = m(a, "block");
36
- return (l, c) => (s(), o("h5", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, Te));
37
- } }), Ae = ["innerHTML"], Se = h({ name: "eblh6", inheritAttrs: !1, __name: "h6", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
36
+ return (l, c) => (o(), s("h5", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, Ee));
37
+ } }), ze = ["innerHTML"], $e = v({ name: "eblh6", inheritAttrs: !1, __name: "h6", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
38
38
  const e = m(a, "block");
39
- return (l, c) => (s(), o("h6", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, Ae));
40
- } }), ze = ["innerHTML"], Ee = h({ name: "eblalert", inheritAttrs: !1, __name: "alert", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
39
+ return (l, c) => (o(), s("h6", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, ze));
40
+ } }), je = ["innerHTML"], Be = v({ name: "eblalert", inheritAttrs: !1, __name: "alert", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
41
41
  const e = m(a, "block");
42
- return (l, c) => (s(), o("div", { class: H(`cdx-alert cdx-alert-${e.value.data.type} cdx-alert-align-${e.value.data.align}`) }, [n("div", { class: "cdx-alert__message", innerHTML: e.value.data.message }, null, 8, ze)], 2));
42
+ return (l, c) => (o(), s("div", { class: H(`cdx-alert cdx-alert-${e.value.data.type} cdx-alert-align-${e.value.data.align}`) }, [i("div", { class: "cdx-alert__message", innerHTML: e.value.data.message }, null, 8, je)], 2));
43
43
  } });
44
- const $e = () => {
45
- }, je = { class: "ce-editorjs-x-shiki__selector" }, Be = { class: "ce-editorjs-x-shiki__lang" }, Re = { key: 0, class: "ce-editorjs-x-shiki__copy_tip" }, qe = { key: 0, width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, Ve = { key: 1, width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, We = ["innerHTML"], De = h({ name: "eblcode", inheritAttrs: !1, __name: "code", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
46
- const e = T(null), l = m(a, "block"), c = C(() => l.value.data.resizeSize ? { height: l.value.data.resizeSize + "px" } : {}), r = function(v, i, d) {
47
- let p;
48
- p = U(d) ? { evaluating: d } : {};
49
- const { lazy: A = !1, flush: S = "pre", evaluating: f, shallow: E = !0, onError: $ = $e } = p, L = W(!A), j = E ? W(i) : T(i);
50
- let z = 0;
44
+ const qe = () => {
45
+ }, Ie = { class: "ce-editorjs-x-shiki__selector" }, Re = { class: "ce-editorjs-x-shiki__lang" }, We = { key: 0, class: "ce-editorjs-x-shiki__copy_tip" }, Ve = { key: 0, width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, De = { key: 1, width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, Ne = ["innerHTML"], Oe = v({ name: "eblcode", inheritAttrs: !1, __name: "code", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
46
+ const e = T(null), l = m(a, "block"), c = C(() => l.value.data.resizeSize ? { height: l.value.data.resizeSize + "px" } : {}), r = function(p, n, u) {
47
+ let h;
48
+ h = Q(u) ? { evaluating: u } : {};
49
+ const { lazy: A = !1, flush: E = "pre", evaluating: _, shallow: z = !0, onError: $ = qe } = h, L = W(!A), j = z ? W(n) : T(n);
50
+ let S = 0;
51
51
  return X(async (G) => {
52
52
  if (!L.value) return;
53
- z++;
54
- const q = z;
55
- let V = !1;
56
- f && Promise.resolve().then(() => {
57
- f.value = !0;
53
+ S++;
54
+ const I = S;
55
+ let R = !1;
56
+ _ && Promise.resolve().then(() => {
57
+ _.value = !0;
58
58
  });
59
59
  try {
60
- const B = await v((K) => {
60
+ const B = await p((K) => {
61
61
  G(() => {
62
- f && (f.value = !1), V || K();
62
+ _ && (_.value = !1), R || K();
63
63
  });
64
64
  });
65
- q === z && (j.value = B);
65
+ I === S && (j.value = B);
66
66
  } catch (B) {
67
67
  $(B);
68
68
  } finally {
69
- f && q === z && (f.value = !1), V = !0;
69
+ _ && I === S && (_.value = !1), R = !0;
70
70
  }
71
- }, { flush: S }), A ? C(() => (L.value = !0, j.value)) : j;
71
+ }, { flush: E }), A ? C(() => (L.value = !0, j.value)) : j;
72
72
  }(async () => {
73
- let v = "";
74
- return { html: await le(l.value.data.code, { lang: l.value.data.lang, theme: l.value.data.theme || "github-dark-dimmed", transformers: [{ preprocess: (d) => `${d}
75
- `, pre(d) {
76
- var p;
77
- this.addClassToHast(d, "ce-editorjs-x-shiki__span"), v = ((p = d.properties) == null ? void 0 : p.style) || "";
78
- }, line(d, p) {
79
- d.properties = d.properties || {}, d.properties["data-line"] = p;
80
- } }] }), preStyle: v };
73
+ let p = "";
74
+ return { html: await se(l.value.data.code, { lang: l.value.data.lang, theme: l.value.data.theme || "github-dark-dimmed", transformers: [{ preprocess: (u) => `${u}
75
+ `, pre(u) {
76
+ var h;
77
+ this.addClassToHast(u, "ce-editorjs-x-shiki__span"), p = ((h = u.properties) == null ? void 0 : h.style) || "";
78
+ }, line(u, h) {
79
+ u.properties = u.properties || {}, u.properties["data-line"] = h;
80
+ } }] }), preStyle: p };
81
81
  });
82
- function t(v) {
83
- e.value && function(i, d) {
84
- let p = d.clientY, A = parseInt(window.getComputedStyle(i).height, 10);
85
- const S = (E) => {
86
- const $ = E.clientY - p;
82
+ function t(p) {
83
+ e.value && function(n, u) {
84
+ let h = u.clientY, A = parseInt(window.getComputedStyle(n).height, 10);
85
+ const E = (z) => {
86
+ const $ = z.clientY - h;
87
87
  let L = A + $;
88
- L < 100 && (L = 100), i.style.height = L + "px";
89
- }, f = () => {
90
- document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", f);
88
+ L < 100 && (L = 100), n.style.height = L + "px";
89
+ }, _ = () => {
90
+ document.removeEventListener("mousemove", E), document.removeEventListener("mouseup", _);
91
91
  };
92
- document.addEventListener("mousemove", S), document.addEventListener("mouseup", f);
93
- }(e.value, v);
92
+ document.addEventListener("mousemove", E), document.addEventListener("mouseup", _);
93
+ }(e.value, p);
94
94
  }
95
- function k() {
95
+ function b() {
96
96
  if (l.value.data.code) {
97
- const v = l.value.data.code;
97
+ const p = l.value.data.code;
98
98
  if (navigator.clipboard && window.isSecureContext) try {
99
- navigator.clipboard.writeText(v).then(() => {
100
- y(!0);
101
- }).catch((i) => {
102
- y(!1);
99
+ navigator.clipboard.writeText(p).then(() => {
100
+ f(!0);
101
+ }).catch((n) => {
102
+ f(!1);
103
103
  });
104
- } catch (i) {
105
- y(!1);
104
+ } catch (n) {
105
+ f(!1);
106
106
  }
107
107
  else {
108
- const i = document.createElement("textarea");
109
- i.value = v, i.style.top = "0", i.style.left = "0", i.style.position = "fixed", i.style.opacity = "0", i.style.pointerEvents = "none", i.style.zIndex = "-1000", document.body.appendChild(i), i.focus(), i.select();
108
+ const n = document.createElement("textarea");
109
+ n.value = p, n.style.top = "0", n.style.left = "0", n.style.position = "fixed", n.style.opacity = "0", n.style.pointerEvents = "none", n.style.zIndex = "-1000", document.body.appendChild(n), n.focus(), n.select();
110
110
  try {
111
- document.execCommand("copy"), document.body.removeChild(i), y(!0);
112
- } catch (d) {
113
- y(!1), document.body.removeChild(i);
111
+ document.execCommand("copy"), document.body.removeChild(n), f(!0);
112
+ } catch (u) {
113
+ f(!1), document.body.removeChild(n);
114
114
  }
115
115
  }
116
116
  }
117
117
  }
118
- const u = T(!1), b = T(!1);
119
- function y(v) {
120
- u.value = !0, b.value = v, setTimeout(() => {
121
- u.value = !1;
118
+ const d = T(!1), k = T(!1);
119
+ function f(p) {
120
+ d.value = !0, k.value = p, setTimeout(() => {
121
+ d.value = !1;
122
122
  }, 2e3);
123
123
  }
124
- return (v, i) => {
125
- var d, p;
126
- return s(), o("div", { class: H("cdx-block ce-editorjs-x-shiki"), style: M(`${(d = D(r)) == null ? void 0 : d.preStyle}`) }, [n("div", je, [n("div", Be, O(l.value.data.lang), 1), n("div", { class: "ce-editorjs-x-shiki__copy", ref: "copyRef", onClick: k }, [i[2] || (i[2] = ee('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" data-v-f867b955><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.25 8.5H10.25C9.2835 8.5 8.5 9.2835 8.5 10.25V17.25C8.5 18.2165 9.2835 19 10.25 19H17.25C18.2165 19 19 18.2165 19 17.25V10.25C19 9.2835 18.2165 8.5 17.25 8.5Z" data-v-f867b955></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.5 8.5V6.75C15.5 6.28587 15.3156 5.84075 14.9874 5.51256C14.6592 5.18437 14.2141 5 13.75 5H6.75C6.28587 5 5.84075 5.18437 5.51256 5.51256C5.18437 5.84075 5 6.28587 5 6.75V13.75C5 14.2141 5.18437 14.6592 5.51256 14.9874C5.84075 15.3156 6.28587 15.5 6.75 15.5H8.5" data-v-f867b955></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 12L15.5 12" data-v-f867b955></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15.5L15.5 15.5" data-v-f867b955></path></svg>', 1)), u.value ? (s(), o("div", Re, [b.value ? (s(), o("svg", qe, [...i[0] || (i[0] = [n("path", { d: "M7 12L10.4884 15.8372C10.5677 15.9245 10.705 15.9245 10.7844 15.8372L17 9", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round" }, null, -1)])])) : (s(), o("svg", Ve, [...i[1] || (i[1] = [n("path", { d: "M8 8L12 12M12 12L16 16M12 12L16 8M12 12L8 16", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round" }, null, -1)])]))])) : _("", !0)], 512)]), n("div", { ref_key: "codeRef", ref: e, class: "ce-editorjs-x-shiki__code", style: M(c.value) }, [n("span", { innerHTML: (p = D(r)) == null ? void 0 : p.html }, null, 8, We)], 4), n("div", { class: "ce-editorjs-x-shiki__code__dragHandler", onMousedown: t }, null, 32)], 4);
124
+ return (p, n) => {
125
+ var u, h;
126
+ return o(), s("div", { class: H("cdx-block ce-editorjs-x-shiki"), style: M(`${(u = V(r)) == null ? void 0 : u.preStyle}`) }, [i("div", Ie, [i("div", Re, O(l.value.data.lang), 1), i("div", { class: "ce-editorjs-x-shiki__copy", ref: "copyRef", onClick: b }, [n[2] || (n[2] = ee('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" data-v-f867b955><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.25 8.5H10.25C9.2835 8.5 8.5 9.2835 8.5 10.25V17.25C8.5 18.2165 9.2835 19 10.25 19H17.25C18.2165 19 19 18.2165 19 17.25V10.25C19 9.2835 18.2165 8.5 17.25 8.5Z" data-v-f867b955></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.5 8.5V6.75C15.5 6.28587 15.3156 5.84075 14.9874 5.51256C14.6592 5.18437 14.2141 5 13.75 5H6.75C6.28587 5 5.84075 5.18437 5.51256 5.51256C5.18437 5.84075 5 6.28587 5 6.75V13.75C5 14.2141 5.18437 14.6592 5.51256 14.9874C5.84075 15.3156 6.28587 15.5 6.75 15.5H8.5" data-v-f867b955></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 12L15.5 12" data-v-f867b955></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15.5L15.5 15.5" data-v-f867b955></path></svg>', 1)), d.value ? (o(), s("div", We, [k.value ? (o(), s("svg", Ve, [...n[0] || (n[0] = [i("path", { d: "M7 12L10.4884 15.8372C10.5677 15.9245 10.705 15.9245 10.7844 15.8372L17 9", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round" }, null, -1)])])) : (o(), s("svg", De, [...n[1] || (n[1] = [i("path", { d: "M8 8L12 12M12 12L16 16M12 12L16 8M12 12L8 16", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round" }, null, -1)])]))])) : y("", !0)], 512)]), i("div", { ref_key: "codeRef", ref: e, class: "ce-editorjs-x-shiki__code", style: M(c.value) }, [i("span", { innerHTML: (h = V(r)) == null ? void 0 : h.html }, null, 8, Ne)], 4), i("div", { class: "ce-editorjs-x-shiki__code__dragHandler", onMousedown: t }, null, 32)], 4);
127
127
  };
128
- } }), R = (a, e) => {
128
+ } }), q = (a, e) => {
129
129
  const l = a.__vccOpts || a;
130
130
  for (const [c, r] of e) l[c] = r;
131
131
  return l;
132
- }, Ie = R(De, [["__scopeId", "data-v-f867b955"]]), Ne = { class: "ce-delimiter cdx-block" }, Oe = h({ name: "ebldelimiter", inheritAttrs: !1, __name: "delimiter", setup: (a) => (e, l) => (s(), o("div", Ne, [...l[0] || (l[0] = [n("div", { class: "ce-delimiter__line__wrapper" }, [n("div", { class: "ce-delimiter__line" })], -1)])])) }), Fe = { key: 0, class: "cdx-list cdx-list-unordered" }, Ye = ["innerHTML"], Ge = ["innerHTML"], Ke = { key: 2, class: "cdx-list cdx-list-checklist" }, Pe = ["innerHTML"], Ze = h({ name: "eblList", inheritAttrs: !1, __name: "List", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
132
+ }, Fe = q(Oe, [["__scopeId", "data-v-f867b955"]]), Ye = { class: "ce-delimiter cdx-block" }, Ge = v({ name: "ebldelimiter", inheritAttrs: !1, __name: "delimiter", setup: (a) => (e, l) => (o(), s("div", Ye, [...l[0] || (l[0] = [i("div", { class: "ce-delimiter__line__wrapper" }, [i("div", { class: "ce-delimiter__line" })], -1)])])) }), Ke = { key: 0, class: "cdx-list cdx-list-unordered" }, Pe = ["innerHTML"], Ue = ["innerHTML"], Ze = { key: 2, class: "cdx-list cdx-list-checklist" }, Je = ["innerHTML"], Qe = v({ name: "eblList", inheritAttrs: !1, __name: "List", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
133
133
  const e = m(a, "block");
134
- return (l, c) => (s(), o(g, null, [e.value.data.style === "unordered" ? (s(), o("ul", Fe, [(s(!0), o(g, null, w(e.value.data.items, (r, t) => (s(), o("li", { class: "cdx-list__item", key: t }, [n("div", { class: "cdx-list__item-content", innerHTML: r.content }, null, 8, Ye)]))), 128))])) : _("", !0), e.value.data.style === "ordered" ? (s(), o("ol", { key: 1, class: "cdx-list cdx-list-ordered", style: M(`--list-counter-type: ${e.value.data.meta.counterType};`) }, [(s(!0), o(g, null, w(e.value.data.items, (r, t) => (s(), o("li", { class: "cdx-list__item", key: t }, [n("div", { class: "cdx-list__item-content", innerHTML: r.content }, null, 8, Ge)]))), 128))], 4)) : _("", !0), e.value.data.style === "checklist" ? (s(), o("ul", Ke, [(s(!0), o(g, null, w(e.value.data.items, (r, t) => (s(), o("li", { class: "cdx-list__item", key: t }, [n("div", { class: H(["cdx-list__checkbox cdx-list__checkbox-check--disabled", { "cdx-list__checkbox--checked": r.meta.checked }]) }, [...c[0] || (c[0] = [n("span", { class: "cdx-list__checkbox-check" }, [n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24" }, [n("path", { stroke: "currentColor", "stroke-linecap": "round", "stroke-width": "2", d: "M7 12L10.4884 15.8372C10.5677 15.9245 10.705 15.9245 10.7844 15.8372L17 9" })])], -1)])], 2), n("div", { class: "cdx-list__item-content", innerHTML: r.content }, null, 8, Pe)]))), 128))])) : _("", !0)], 64));
135
- } }), Je = { class: "cdx-block cdx-quote" }, Qe = ["innerHTML"], Ue = h({ name: "eblquote", inheritAttrs: !1, __name: "quote", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
134
+ return (l, c) => (o(), s(g, null, [e.value.data.style === "unordered" ? (o(), s("ul", Ke, [(o(!0), s(g, null, w(e.value.data.items, (r, t) => (o(), s("li", { class: "cdx-list__item", key: t }, [i("div", { class: "cdx-list__item-content", innerHTML: r.content }, null, 8, Pe)]))), 128))])) : y("", !0), e.value.data.style === "ordered" ? (o(), s("ol", { key: 1, class: "cdx-list cdx-list-ordered", style: M(`--list-counter-type: ${e.value.data.meta.counterType};`) }, [(o(!0), s(g, null, w(e.value.data.items, (r, t) => (o(), s("li", { class: "cdx-list__item", key: t }, [i("div", { class: "cdx-list__item-content", innerHTML: r.content }, null, 8, Ue)]))), 128))], 4)) : y("", !0), e.value.data.style === "checklist" ? (o(), s("ul", Ze, [(o(!0), s(g, null, w(e.value.data.items, (r, t) => (o(), s("li", { class: "cdx-list__item", key: t }, [i("div", { class: H(["cdx-list__checkbox cdx-list__checkbox-check--disabled", { "cdx-list__checkbox--checked": r.meta.checked }]) }, [...c[0] || (c[0] = [i("span", { class: "cdx-list__checkbox-check" }, [i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24" }, [i("path", { stroke: "currentColor", "stroke-linecap": "round", "stroke-width": "2", d: "M7 12L10.4884 15.8372C10.5677 15.9245 10.705 15.9245 10.7844 15.8372L17 9" })])], -1)])], 2), i("div", { class: "cdx-list__item-content", innerHTML: r.content }, null, 8, Je)]))), 128))])) : y("", !0)], 64));
135
+ } }), Xe = { class: "cdx-block cdx-quote" }, et = ["innerHTML"], tt = v({ name: "eblquote", inheritAttrs: !1, __name: "quote", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
136
136
  const e = m(a, "block");
137
- return (l, c) => (s(), o("div", Je, [n("blockquote", { class: "cdx-input cdx-quote__text cdx-block-quote", innerHTML: e.value.data.text }, null, 8, Qe)]));
138
- } }), Xe = { class: "tc-row" }, et = ["innerHTML"], tt = R(h({ name: "ebltable", inheritAttrs: !1, __name: "table", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
137
+ return (l, c) => (o(), s("div", Xe, [i("blockquote", { class: "cdx-input cdx-quote__text cdx-block-quote", innerHTML: e.value.data.text }, null, 8, et)]));
138
+ } }), lt = { class: "tc-row" }, at = ["innerHTML"], ot = q(v({ name: "ebltable", inheritAttrs: !1, __name: "table", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
139
139
  const e = m(a, "block"), l = C(() => {
140
140
  let c = "";
141
141
  if (e.value.data.colWidth && e.value.data.colWidth.length > 0) for (let r = 0; r < e.value.data.colWidth.length; r++) c += " " + e.value.data.colWidth[r] + "px";
142
142
  return c ? { "--col-width": c } : {};
143
143
  });
144
- return (c, r) => (s(), o("div", { class: "tc-wrap tc-wrap--readonly", style: M(l.value) }, [n("div", { class: H(["tc-table", { "tc-table--heading": e.value.data.withHeadings }]) }, [(s(!0), o(g, null, w(e.value.data.content, (t) => (s(), o("div", Xe, [(s(!0), o(g, null, w(t, (k) => (s(), o("div", { class: "tc-cell", innerHTML: k }, null, 8, et))), 256))]))), 256))], 2)], 4));
145
- } }), [["__scopeId", "data-v-0627102b"]]), lt = { class: "image-tool__image" }, at = ["src"], st = R(h({ name: "eblimage", inheritAttrs: !1, __name: "image", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
144
+ return (c, r) => (o(), s("div", { class: "tc-wrap tc-wrap--readonly", style: M(l.value) }, [i("div", { class: H(["tc-table", { "tc-table--heading": e.value.data.withHeadings }]) }, [(o(!0), s(g, null, w(e.value.data.content, (t) => (o(), s("div", lt, [(o(!0), s(g, null, w(t, (b) => (o(), s("div", { class: "tc-cell", innerHTML: b }, null, 8, at))), 256))]))), 256))], 2)], 4));
145
+ } }), [["__scopeId", "data-v-0627102b"]]), st = { class: "image-tool__image" }, nt = ["src"], it = q(v({ name: "eblimage", inheritAttrs: !1, __name: "image", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(a) {
146
146
  const e = m(a, "block"), l = C(() => e.value.tunes.imageResize.resizeSize && e.value.tunes.imageResize.resizeSize > 0 ? e.value.tunes.imageResize.resizeSize || 300 : {});
147
- return (c, r) => (s(), o("div", { class: "cdx-block image-tool image-tool--filled", style: M(l.value) }, [n("div", lt, [n("img", { class: "image-tool__image-picture", src: e.value.data.file.url }, null, 8, at)]), r[0] || (r[0] = n("div", { class: "cdx-input image-tool__caption", contenteditable: "true", "data-placeholder": "Caption", "data-empty": "true" }, null, -1))], 4));
148
- } }), [["__scopeId", "data-v-ff96876e"]]), ot = ["onClick"], nt = h({ name: "ebloutline", inheritAttrs: !1, __name: "outline", props: { blocks: { default: [] }, blocksModifiers: {} }, emits: ["update:blocks"], setup(a) {
147
+ return (c, r) => (o(), s("div", { class: "cdx-block image-tool image-tool--filled", style: M(l.value) }, [i("div", st, [i("img", { class: "image-tool__image-picture", src: e.value.data.file.url }, null, 8, nt)]), r[0] || (r[0] = i("div", { class: "cdx-input image-tool__caption", contenteditable: "true", "data-placeholder": "Caption", "data-empty": "true" }, null, -1))], 4));
148
+ } }), [["__scopeId", "data-v-ff96876e"]]), ct = ["onClick"], rt = v({ name: "ebloutline", inheritAttrs: !1, __name: "outline", props: { blocks: { default: [] }, blocksModifiers: {} }, emits: ["update:blocks"], setup(a) {
149
149
  const e = m(a, "blocks"), l = T([]);
150
150
  function c(t) {
151
151
  return t.data.text.replace(/<[^>]+>/g, "").replace(/&nbsp;/g, "");
152
152
  }
153
153
  function r(t) {
154
- let k = `level_${t.level}`;
155
- return t.selected && (k += " selected"), k;
154
+ let b = `level_${t.level}`;
155
+ return t.selected && (b += " selected"), b;
156
156
  }
157
- return l.value = e.value.filter((t) => t.type == "h1" || t.type == "h2" || t.type == "h3").map((t) => ({ id: t.id, level: t.data.level, text: c(t), selected: !1 })), l.value && l.value.length > 0 && (l.value[0].selected = !0), te(() => e, (t, k) => {
158
- t && (l.value = t.value.filter((u) => u.type == "h1" || u.type == "h2" || u.type == "h3").map((u) => ({ id: u.id, level: u.data.level, text: c(u), selected: !1 })));
159
- }, { deep: !0 }), (t, k) => (s(!0), o(g, null, w(l.value, (u) => (s(), o("div", { key: u.id, class: H(["ebl-er-doc-outline-item", r(u)]), onClick: (b) => function(y) {
160
- l.value.forEach((p) => p.selected = !1), y.selected = !0;
161
- const v = document.querySelector('.ebl-er-doc .ce-block[data-id="' + y.id + '"]'), i = document.querySelector(".ebl-er-header"), d = (i == null ? void 0 : i.offsetHeight) || 0;
162
- if (v) {
163
- const p = v.offsetTop;
164
- window.scrollTo({ top: p - d, behavior: "smooth" });
157
+ return l.value = e.value.filter((t) => t.type == "h1" || t.type == "h2" || t.type == "h3").map((t) => ({ id: t.id, level: t.data.level, text: c(t), selected: !1 })), l.value && l.value.length > 0 && (l.value[0].selected = !0), te(() => e, (t, b) => {
158
+ t && (l.value = t.value.filter((d) => d.type == "h1" || d.type == "h2" || d.type == "h3").map((d) => ({ id: d.id, level: d.data.level, text: c(d), selected: !1 })));
159
+ }, { deep: !0 }), le(() => {
160
+ ae(() => {
161
+ (function() {
162
+ const t = document.querySelectorAll('.ebl-er-doc .ce-block[data-type="h1"],.ebl-er-doc .ce-block[data-type="h2"],.ebl-er-doc .ce-block[data-type="h3"]'), b = new IntersectionObserver((d) => {
163
+ d.forEach((k) => {
164
+ if (k.isIntersecting) {
165
+ const f = k.target;
166
+ l.value.forEach((n) => n.selected = !1);
167
+ const p = l.value.find((n) => n.id == f.dataset.id);
168
+ p && (p.selected = !0);
169
+ }
170
+ });
171
+ }, { rootMargin: "-84px 0px -75% 0px", threshold: 1, root: null });
172
+ t.forEach((d) => {
173
+ b.observe(d);
174
+ });
175
+ })();
176
+ });
177
+ }), oe(() => {
178
+ }), (t, b) => (o(!0), s(g, null, w(l.value, (d) => (o(), s("div", { key: d.id, class: H(["ebl-er-doc-outline-item", r(d)]), onClick: (k) => function(f) {
179
+ l.value.forEach((h) => h.selected = !1), f.selected = !0;
180
+ const p = document.querySelector('.ebl-er-doc .ce-block[data-id="' + f.id + '"]'), n = document.querySelector(".ebl-er-header"), u = (n == null ? void 0 : n.offsetHeight) || 0;
181
+ if (p) {
182
+ const h = p.offsetTop;
183
+ window.scrollTo({ top: h - u, behavior: "smooth" });
165
184
  }
166
- }(u) }, [n("span", null, O(u.text), 1)], 10, ot))), 128));
167
- } }), N = [ke, fe, ye, ge, Me, He, Ce, Se, Ee, Ie, Oe, Ze, Ue, tt, st, nt];
185
+ }(d) }, [i("span", null, O(d.text), 1)], 10, ct))), 128));
186
+ } }), N = [_e, xe, we, Le, Te, Ae, Se, $e, Be, Fe, Ge, Qe, tt, ot, it, rt];
168
187
  let F = [];
169
188
  for (let a in N) {
170
- const e = ae(N[a]);
189
+ const e = ne(N[a]);
171
190
  F.push(e);
172
191
  }
173
- const Y = /* @__PURE__ */ ((a = []) => ({ version: "2.31.63", install: (e) => {
174
- e[I] || (e[I] = !0, a.forEach((l) => e.use(l)));
175
- } }))(F), rt = Y.install, dt = Y.version;
192
+ const Y = /* @__PURE__ */ ((a = []) => ({ version: "2.31.65", install: (e) => {
193
+ e[D] || (e[D] = !0, a.forEach((l) => e.use(l)));
194
+ } }))(F), pt = Y.install, ht = Y.version;
176
195
  export {
177
196
  Y as default,
178
- rt as install,
179
- dt as version
197
+ pt as install,
198
+ ht as version
180
199
  };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Plugin styles
3
+ */
4
+ .ce-header {
5
+ padding: 15px 0 3px;
6
+ margin: 0;
7
+ line-height: 1.25;
8
+ outline: none;
9
+ }
10
+
11
+ .ce-header p,
12
+ .ce-header div{
13
+ padding: 0 !important;
14
+ margin: 0 !important;
15
+ }
16
+
17
+ /**
18
+ * Styles for Plugin icon in Toolbar
19
+ */
20
+ .ce-header__icon {}
@@ -0,0 +1,156 @@
1
+ .image-tool {
2
+ --bg-color: #cdd1e0;
3
+ --front-color: #388ae5;
4
+ --border-color: #e8e8eb;
5
+ display: inline-block;
6
+
7
+ }
8
+
9
+
10
+ .image-tool__image {
11
+ border-radius: 3px;
12
+ overflow: hidden;
13
+ margin-bottom: 10px;
14
+ padding-bottom: 0;
15
+ user-select:none;
16
+ pointer-events:none;
17
+ }
18
+
19
+ .image-tool__image-picture {
20
+ max-width: 100%;
21
+ vertical-align: bottom;
22
+ display: inline-block;
23
+ user-select:none;
24
+ pointer-events:none;
25
+ }
26
+
27
+ .image-tool__image-preloader {
28
+ width: 150px;
29
+ height: 150px;
30
+ border-radius: 50%;
31
+ background-size: cover;
32
+ margin: auto;
33
+ position: relative;
34
+ background-color: var(--bg-color);
35
+ background-position: center center
36
+ }
37
+
38
+ .image-tool__image-preloader:after {
39
+ content: "";
40
+ position: absolute;
41
+ z-index: 3;
42
+ width: 60px;
43
+ height: 60px;
44
+ border-radius: 50%;
45
+ border: 2px solid var(--bg-color);
46
+ border-top-color: var(--front-color);
47
+ left: 50%;
48
+ top: 50%;
49
+ margin-top: -30px;
50
+ margin-left: -30px;
51
+ animation: image-preloader-spin 2s infinite linear;
52
+ box-sizing: border-box
53
+ }
54
+
55
+ .image-tool__caption {
56
+ visibility: hidden;
57
+ position: absolute;
58
+ bottom: 0;
59
+ left: 0;
60
+ margin-bottom: 10px
61
+ }
62
+
63
+ .image-tool__caption[contentEditable=true][data-placeholder]:before {
64
+ position: absolute !important;
65
+ content: attr(data-placeholder);
66
+ color: #707684;
67
+ font-weight: 400;
68
+ display: none
69
+ }
70
+
71
+ .image-tool__caption[contentEditable=true][data-placeholder]:empty:before {
72
+ display: block
73
+ }
74
+
75
+ .image-tool__caption[contentEditable=true][data-placeholder]:empty:focus:before {
76
+ display: none
77
+ }
78
+
79
+ .image-tool--empty .image-tool__image,
80
+ .image-tool--empty .image-tool__image-preloader {
81
+ display: none
82
+ }
83
+
84
+ .image-tool--empty .image-tool__caption,
85
+ .image-tool--uploading .image-tool__caption {
86
+ visibility: hidden !important
87
+ }
88
+
89
+ .image-tool .cdx-button {
90
+ display: none;
91
+ align-items: center;
92
+ justify-content: center
93
+ }
94
+
95
+ .image-tool .cdx-button svg {
96
+ height: auto;
97
+ margin: 0 6px 0 0
98
+ }
99
+
100
+ .image-tool--filled .cdx-button,
101
+ .image-tool--filled .image-tool__image-preloader {
102
+ display: none
103
+ }
104
+ .image-tool--uploading {
105
+ width: 100%;
106
+ }
107
+ .image-tool--uploading .resizable{
108
+ display: none!important;
109
+ }
110
+ .image-tool--uploading .image-tool__image {
111
+ min-height: 200px;
112
+ display: flex;
113
+ /* border: 1px solid var(--border-color); */
114
+ background-color: #fff
115
+ }
116
+
117
+ .image-tool--uploading .image-tool__image-picture,
118
+ .image-tool--uploading .cdx-button {
119
+ display: none
120
+ }
121
+
122
+ .image-tool--withBorder .image-tool__image {
123
+ border: 1px solid var(--border-color)
124
+ }
125
+
126
+ .image-tool--withBackground .image-tool__image {
127
+ padding: 15px;
128
+ background: var(--bg-color)
129
+ }
130
+
131
+ .image-tool--withBackground .image-tool__image-picture {
132
+ max-width: 60%;
133
+ margin: 0 auto
134
+ }
135
+
136
+ .image-tool--stretched .image-tool__image-picture {
137
+ width: 100%
138
+ }
139
+
140
+ .image-tool--caption .image-tool__caption {
141
+ visibility: visible
142
+ }
143
+
144
+ .image-tool--caption {
145
+ padding-bottom: 50px
146
+ }
147
+
148
+ @keyframes image-preloader-spin {
149
+ 0% {
150
+ transform: rotate(0)
151
+ }
152
+
153
+ to {
154
+ transform: rotate(360deg)
155
+ }
156
+ }