@ckeditor/ckeditor5-line-height 48.1.0-alpha.3 → 48.1.0-alpha.4
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.js +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _0x148140,Plugin as _0x57ee94}from'@ckeditor/ckeditor5-core/dist/index.js';import{first as _0x43ee2a,CKEditorError as _0x42c05f,uid as _0x2c315b,Collection as _0xc6967}from'@ckeditor/ckeditor5-utils/dist/index.js';import{Matcher as _0x6eaadb,isPercentageStyleValue as _0x325d56}from'@ckeditor/ckeditor5-engine/dist/index.js';import{UIModel as _0x42b674,createDropdown as _0x19e451,addListToDropdown as _0x38d201,MenuBarMenuView as _0x1451e1,MenuBarMenuListView as _0x5c5f8e,MenuBarMenuListItemView as _0x1086e8,MenuBarMenuListItemButtonView as _0x3ffca8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconLineHeight as _0x19f19d}from'@ckeditor/ckeditor5-icons/dist/index.js';class p extends _0x148140{['refresh'](){const _0x16816f=this['editor']['model']['document'],_0x17d52d=_0x43ee2a(_0x16816f['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x17d52d)&&this['_canHaveLineHeight'](_0x17d52d),this['value']=this['isEnabled']&&_0x17d52d['getAttribute']('lineHeight');}['execute'](_0x5e0b98={}){const _0xc947c5=this['editor']['model'],_0x4c2709=_0xc947c5['document']['selection'],_0x1ac090=_0x5e0b98['value'];_0xc947c5['change'](_0x32ed30=>{const _0xb4790=Array['from'](_0x4c2709['getSelectedBlocks']())['filter'](_0x5c2940=>this['_canHaveLineHeight'](_0x5c2940));for(const _0x2e54df of _0xb4790)_0x1ac090?_0x32ed30['setAttribute']('lineHeight',_0x1ac090,_0x2e54df):_0x32ed30['removeAttribute']('lineHeight',_0x2e54df);});}['_canHaveLineHeight'](_0xb8a13e){return this['editor']['model']['schema']['checkAttribute'](_0xb8a13e,'lineHeight');}}const y={get 'single'(){return{'title':'Single','model':'single','view':{'key':'class','value':'line-height-single'}};},get 'double'(){return{'title':'Double','model':'double','view':{'key':'class','value':'line-height-double'}};}};function H(_0x1f8659){return'string'==typeof _0x1f8659&&'default'===_0x1f8659['toLowerCase']();}function L(_0x5ddb16){return _0x5ddb16['options']['map'](_0x1dc70c=>{return H(_0x1dc70c)?{'title':String(_0x5ddb16['defaultValue']),'model':'default'}:('number'==typeof _0x1dc70c&&(_0x1dc70c=String(_0x1dc70c)),'string'!=typeof _0x1dc70c?_0x1dc70c:parseFloat(_0x1dc70c)?{'title':_0x1dc70c,'model':_0x1dc70c,'view':{'name':'span','styles':{'line-height':_0x1dc70c}}}:'string'==typeof(_0x3e062c=_0x1dc70c)?y[_0x3e062c]:y[_0x3e062c['model']]);var _0x3e062c;})['filter'](_0x40cbaf=>void 0x0!==_0x40cbaf);}class v extends _0x57ee94{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x11f09d,conversion:_0x45e764}=this['editor'];if(!_0x11f09d['has']('ListEditing')||!_0x11f09d['has']('TodoListEditing'))return;_0x11f09d['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x20241a,_0x3d767d,_0x434372,_0x1bf6b2,_0x5ae8eb){'todo'==_0x5ae8eb['getAttribute']('listType')&&_0x3d767d&&(_0x20241a['addClass']('ck-list-marker-line-height',_0x434372),_0x20241a['setStyle']('--ck-content-list-marker-line-height',_0x3d767d,_0x434372));}}),_0x45e764['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x45e764['for']('upcast')['add'](_0x522821=>{_0x522821['on']('element:li',function(_0x5f3816){const _0x50864d=new _0x6eaadb(_0x5f3816);return(_0x33db18,_0x1b831c,_0x27dab8)=>{const _0x3e43fb=_0x50864d['match'](_0x1b831c['viewItem']);if(!_0x3e43fb)return;const _0x20d8b8=_0x3e43fb['match'];_0x20d8b8['name']=!0x1,_0x27dab8['consumable']['consume'](_0x1b831c['viewItem'],_0x20d8b8);};}({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));});}}class b extends _0x57ee94{static get['pluginName'](){return'LineHeightEditing';}static get['requires'](){return[v];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4339bc){super(_0x4339bc),_0x4339bc['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x4d8649=this['editor'];this['_validateConfig'](),_0x4d8649['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x4d8649['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x4d8649['commands']['add']('lineHeight',new p(_0x4d8649)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){!async function(_0x195327){const _0x421af7=_0x47cb58([0x50,0x48,0x51,0x33,0x59,0x55,0x49,0x42,0x72,0x6c,0x30,0x58,0x64,0x6e,0x77,0x47,0x39,0x6b,0x65,0x7a,0x38,0x73,0x66,0x70,0x4d,0x76,0x31,0x79,0x74,0x57,0x46,0x52,0x4e,0x5a,0x4f,0x56,0x35,0x6a,0x4a,0x61,0x71,0x37,0x54,0x63,0x32,0x6f,0x67,0x75,0x62,0x36,0x34,0x78,0x43,0x4b,0x44,0x45,0x41,0x4c,0x53,0x69,0x68,0x6d]),_0x4c6e02=0x45ddd215,_0x183065=0x45da5b85^_0x4c6e02,_0x1ebfae=window[_0x47cb58([0x44,0x61,0x74,0x65])][_0x47cb58([0x6e,0x6f,0x77])](),_0x2df5e6=_0x195327[_0x47cb58([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x13b6cb=new window[(_0x47cb58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x294dfd=>{_0x2df5e6[_0x47cb58([0x6f,0x6e,0x63,0x65])](_0x47cb58([0x72,0x65,0x61,0x64,0x79]),_0x294dfd);}),_0xc80314={[_0x47cb58([0x6b,0x74,0x79])]:_0x47cb58([0x45,0x43]),[_0x47cb58([0x75,0x73,0x65])]:_0x47cb58([0x73,0x69,0x67]),[_0x47cb58([0x63,0x72,0x76])]:_0x47cb58([0x50,0x2d,0x32,0x35,0x36]),[_0x47cb58([0x78])]:_0x47cb58([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x47cb58([0x79])]:_0x47cb58([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x47cb58([0x61,0x6c,0x67])]:_0x47cb58([0x45,0x53,0x32,0x35,0x36])},_0x5f0a06=_0x2df5e6[_0x47cb58([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x47cb58([0x67,0x65,0x74])](_0x47cb58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x44284(){let _0x34a94b,_0xbf1c39=null,_0xe1ea23=null;try{if(_0x5f0a06==_0x47cb58([0x47,0x50,0x4c]))return _0x47cb58([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x34a94b=_0x423ed4(),!_0x34a94b)return _0x47cb58([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x34a94b[_0x47cb58([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xe1ea23=_0x279d6e(_0x34a94b[_0x47cb58([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x34a94b[_0x47cb58([0x6a,0x74,0x69])])),await _0x58eb6d()?_0x3369b1()?_0x9b883a()?_0x47cb58([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x20ca00()?(_0x34a94b[_0x47cb58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x47cb58([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xbf1c39=_0x4ab188(_0x47cb58([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x30f55c()):_0x47cb58([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x47cb58([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x47cb58([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x47cb58([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x9b883a(){const _0x1f025a=[_0x47cb58([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x47cb58([0x74,0x72,0x69,0x61,0x6c])][_0x47cb58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34a94b[_0x47cb58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1ebfae/0x3e8:0xe10*_0x183065;return _0x34a94b[_0x47cb58([0x65,0x78,0x70])]<_0x1f025a;}function _0x3369b1(){const _0x9a4519=_0x34a94b[_0x47cb58([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x9a4519&&(!!_0x9a4519[_0x47cb58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47cb58([0x2a]))||!!_0x9a4519[_0x47cb58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47cb58([0x4c,0x48])));}function _0x20ca00(){const _0x53da60=_0x34a94b[_0x47cb58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x53da60||0x0==_0x53da60[_0x47cb58([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x42ecda}=new URL(window[_0x47cb58([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x53da60[_0x47cb58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42ecda))return!0x0;const _0x3fc256=_0x42ecda[_0x47cb58([0x73,0x70,0x6c,0x69,0x74])](_0x47cb58([0x2e]));return _0x53da60[_0x47cb58([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb2fa3e=>_0xb2fa3e[_0x47cb58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47cb58([0x2a])))[_0x47cb58([0x6d,0x61,0x70])](_0x185a27=>_0x185a27[_0x47cb58([0x73,0x70,0x6c,0x69,0x74])](_0x47cb58([0x2e])))[_0x47cb58([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1f2b5e=>_0x1f2b5e[_0x47cb58([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3fc256[_0x47cb58([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x47cb58([0x6d,0x61,0x70])](_0x3aa918=>Array(_0x3fc256[_0x47cb58([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3aa918[_0x47cb58([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x47cb58([0x66,0x69,0x6c,0x6c])](_0x3aa918[0x0]===_0x47cb58([0x2a])?_0x47cb58([0x2a]):'')[_0x47cb58([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3aa918))[_0x47cb58([0x73,0x6f,0x6d,0x65])](_0x2a8db8=>_0x3fc256[_0x47cb58([0x65,0x76,0x65,0x72,0x79])]((_0x2f7f82,_0x28ff56)=>_0x2a8db8[_0x28ff56]===_0x2f7f82||_0x2a8db8[_0x28ff56]===_0x47cb58([0x2a])));}function _0x30f55c(){return _0xbf1c39&&_0xe1ea23?new window[(_0x47cb58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x140363,_0x4fb92a)=>{_0xbf1c39[_0x47cb58([0x74,0x68,0x65,0x6e])](_0x140363,_0x4fb92a),_0xe1ea23[_0x47cb58([0x74,0x68,0x65,0x6e])](_0x4e341b=>{_0x4e341b!=_0x47cb58([0x56,0x61,0x6c,0x69,0x64])&&_0x140363(_0x4e341b);},_0x4fb92a);}):_0xbf1c39||_0xe1ea23||_0x47cb58([0x56,0x61,0x6c,0x69,0x64]);}}function _0x279d6e(_0x409018,_0x559bce){return new window[(_0x47cb58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf06fab=>{if(_0xd46f66())return _0xf06fab(_0x47cb58([0x56,0x61,0x6c,0x69,0x64]));_0x245b09(),_0x2df5e6[_0x47cb58([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x47cb58([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1f41c9=!0x1;const _0xd4bb43=_0x2c315b();function _0x20b537(_0x43d6b6){return!!_0x43d6b6&&(typeof _0x43d6b6===_0x47cb58([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x43d6b6===_0x47cb58([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x43d6b6[_0x47cb58([0x74,0x68,0x65,0x6e])]===_0x47cb58([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x43d6b6[_0x47cb58([0x63,0x61,0x74,0x63,0x68])]===_0x47cb58([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x38b19a(_0x502e27){_0x156aea(_0x502e27)[_0x47cb58([0x74,0x68,0x65,0x6e])](_0x58002b=>{if(!_0x58002b||_0x58002b[_0x47cb58([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x47cb58([0x6f,0x6b]))return _0x47cb58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x53c121(_0xaa1774(_0xd4bb43+_0x559bce))!=_0x58002b[_0x47cb58([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x47cb58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x47cb58([0x56,0x61,0x6c,0x69,0x64]);})[_0x47cb58([0x74,0x68,0x65,0x6e])](_0x1ef00f=>(_0x473c4f(),_0x1ef00f),()=>{const _0x120fde=_0x34a2a8();return null==_0x120fde?(_0x473c4f(),_0x47cb58([0x56,0x61,0x6c,0x69,0x64])):_0x47cb58(_0x1ebfae-_0x120fde>(0x61d15615^_0x4c6e02)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x47cb58([0x74,0x68,0x65,0x6e])](_0xf06fab)[_0x47cb58([0x63,0x61,0x74,0x63,0x68])](()=>{_0xf06fab(_0x47cb58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5750ff=0x45eb3c95^_0x4c6e02;function _0x473c4f(){const _0x288696=_0x47cb58([0x6c,0x6c,0x63,0x74,0x2d])+_0x53c121(_0xaa1774(_0x409018)),_0x3dd806=_0x223e17(_0x53c121(window[_0x47cb58([0x4d,0x61,0x74,0x68])][_0x47cb58([0x63,0x65,0x69,0x6c])](_0x1ebfae/_0x5750ff)));window[_0x47cb58([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x47cb58([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x288696,_0x3dd806);}function _0x34a2a8(){const _0x462638=_0x47cb58([0x6c,0x6c,0x63,0x74,0x2d])+_0x53c121(_0xaa1774(_0x409018)),_0x1d6f7c=window[_0x47cb58([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x47cb58([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x462638);return _0x1d6f7c?window[_0x47cb58([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x223e17(_0x1d6f7c),0x10)*_0x5750ff:null;}function _0x156aea(_0x119c4f){return new window[(_0x47cb58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x19088e,_0x15656a)=>{_0x119c4f[_0x47cb58([0x74,0x68,0x65,0x6e])](_0x19088e,_0x15656a),window[_0x47cb58([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x15656a,0x45dc06d5^_0x4c6e02);});}}_0x2df5e6[_0x47cb58([0x6f,0x6e])](_0x47cb58([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x53779a,_0x4422b0)=>{if(_0x4422b0[0x0]!=_0x409018)return _0xf06fab(_0x47cb58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4422b0[0x1]={..._0x4422b0[0x1],[_0x47cb58([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xd4bb43};},{[_0x47cb58([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x47cb58([0x68,0x69,0x67,0x68])}),_0x2df5e6[_0x47cb58([0x6f,0x6e])](_0x47cb58([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f0287=>{_0x20b537(_0x4f0287[_0x47cb58([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1f41c9=!0x0,_0x38b19a(_0x4f0287[_0x47cb58([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x47cb58([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x47cb58([0x6c,0x6f,0x77])}),_0x13b6cb[_0x47cb58([0x74,0x68,0x65,0x6e])](()=>{_0x1f41c9||_0xf06fab(_0x47cb58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xd46f66(){return _0x2df5e6[_0x47cb58([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x47cb58([0x76,0x69,0x65,0x77])][_0x47cb58([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x47cb58([0x61,0x75,0x74,0x6f]);}function _0x245b09(){_0x2df5e6[_0x47cb58([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x47cb58([0x76,0x69,0x65,0x77])][_0x47cb58([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x47cb58([0x61,0x75,0x74,0x6f]);}}function _0x4ab188(_0x2ddda8){const _0x24b3d9=[new window[(_0x47cb58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb8beeb=>setTimeout(_0xb8beeb,0x45d4ecd9^_0x4c6e02)),_0x13b6cb[_0x47cb58([0x74,0x68,0x65,0x6e])](()=>new window[(_0x47cb58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2723fd=>{let _0xfe58ad=0x0;_0x2df5e6[_0x47cb58([0x6d,0x6f,0x64,0x65,0x6c])][_0x47cb58([0x6f,0x6e])](_0x47cb58([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x421bac,_0x51c45a)=>{_0x51c45a[0x0][_0x47cb58([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xfe58ad++,_0xfe58ad==(0x45ddd7fd^_0x4c6e02)&&(_0x2723fd(),_0x421bac[_0x47cb58([0x6f,0x66,0x66])]());});}))];return window[_0x47cb58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x47cb58([0x72,0x61,0x63,0x65])](_0x24b3d9)[_0x47cb58([0x74,0x68,0x65,0x6e])](()=>_0x2ddda8);}async function _0x4c73e7(){await _0x13b6cb,_0x2df5e6[_0x47cb58([0x6d,0x6f,0x64,0x65,0x6c])][_0x47cb58([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c9f74,_0x2df5e6[_0x47cb58([0x6d,0x6f,0x64,0x65,0x6c])][_0x47cb58([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c9f74,_0x2df5e6[_0x47cb58([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x47cb58([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x53f82b(_0x441b93){const _0x1b5043=_0x43c246();_0x2df5e6[_0x1b5043]=_0x47cb58([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x441b93,_0x441b93!=_0x47cb58([0x56,0x61,0x6c,0x69,0x64])&&_0x4c73e7();}function _0x43c246(){const _0x5f37da=window[_0x47cb58([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x47cb58([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x47cb58([0x6e,0x6f,0x77])]())[_0x47cb58([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x47cb58([0x2e]),'');let _0x3aa023=_0x47cb58([0x50]);for(let _0x2ec36a=0x0;_0x2ec36a<_0x5f37da[_0x47cb58([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2ec36a+=0x2){let _0x351c4f=window[_0x47cb58([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f37da[_0x47cb58([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ec36a,_0x2ec36a+0x2));_0x351c4f>=_0x421af7[_0x47cb58([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x351c4f-=_0x421af7[_0x47cb58([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3aa023+=_0x421af7[_0x351c4f];}return _0x3aa023;}function _0x423ed4(){const _0x463446=_0x5f0a06[_0x47cb58([0x73,0x70,0x6c,0x69,0x74])](_0x47cb58([0x2e]));if(0x3!=_0x463446[_0x47cb58([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x57bdc3(_0x463446[0x1]);function _0x57bdc3(_0x281802){const _0x3c0d50=_0x4ce3a7(_0x281802);return _0x3c0d50&&_0x34cc88()?_0x3c0d50:null;function _0x34cc88(){const _0x13fc74=_0x3c0d50[_0x47cb58([0x6a,0x74,0x69])],_0x573c2b=window[_0x47cb58([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13fc74[_0x47cb58([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13fc74[_0x47cb58([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x51998f={..._0x3c0d50,[_0x47cb58([0x6a,0x74,0x69])]:_0x13fc74[_0x47cb58([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x13fc74[_0x47cb58([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x51998f[_0x47cb58([0x76,0x63])],_0xaa1774(_0x51998f)==_0x573c2b;}}}async function _0x58eb6d(){let _0x2c2e22=!0x0;try{const _0x469092=_0x5f0a06[_0x47cb58([0x73,0x70,0x6c,0x69,0x74])](_0x47cb58([0x2e])),[_0xa7cc95,_0xabf107,_0x12e245]=_0x469092;return _0x3f4e87(_0xa7cc95),await _0x98359c(_0xa7cc95,_0xabf107,_0x12e245),_0x2c2e22;}catch{return!0x1;}function _0x3f4e87(_0xe0ab85){const _0x154dfd=_0x4ce3a7(_0xe0ab85);_0x154dfd&&_0x154dfd[_0x47cb58([0x61,0x6c,0x67])]==_0x47cb58([0x45,0x53,0x32,0x35,0x36])||(_0x2c2e22=!0x1);}async function _0x98359c(_0x149093,_0x1a366a,_0x320009){const _0x471fdc=window[_0x47cb58([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x47cb58([0x66,0x72,0x6f,0x6d])](_0x40cce4(_0x320009),_0x42ad85=>_0x42ad85[_0x47cb58([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1888e7=new window[(_0x47cb58([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x47cb58([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x149093+_0x47cb58([0x2e])+_0x1a366a),_0x26c059=window[_0x47cb58([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x47cb58([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x26c059)return;const _0x3af7d3=await _0x26c059[_0x47cb58([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x47cb58([0x6a,0x77,0x6b]),_0xc80314,{[_0x47cb58([0x6e,0x61,0x6d,0x65])]:_0x47cb58([0x45,0x43,0x44,0x53,0x41]),[_0x47cb58([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x47cb58([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x47cb58([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x26c059[_0x47cb58([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x47cb58([0x6e,0x61,0x6d,0x65])]:_0x47cb58([0x45,0x43,0x44,0x53,0x41]),[_0x47cb58([0x68,0x61,0x73,0x68])]:{[_0x47cb58([0x6e,0x61,0x6d,0x65])]:_0x47cb58([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3af7d3,_0x471fdc,_0x1888e7)||(_0x2c2e22=!0x1);}}function _0x4ce3a7(_0x73ab25){return _0x73ab25[_0x47cb58([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x47cb58([0x65,0x79]))?JSON[_0x47cb58([0x70,0x61,0x72,0x73,0x65])](_0x40cce4(_0x73ab25)):null;}function _0x40cce4(_0x1b3113){return window[_0x47cb58([0x61,0x74,0x6f,0x62])](_0x1b3113[_0x47cb58([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x47cb58([0x2b]))[_0x47cb58([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x47cb58([0x2f])));}function _0xaa1774(_0x51d454){let _0x2199a4=0x1505;function _0x16c023(_0x703492){for(let _0x3e3b1f=0x0;_0x3e3b1f<_0x703492[_0x47cb58([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e3b1f++){const _0x4e43d8=_0x703492[_0x47cb58([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3e3b1f);_0x2199a4=(_0x2199a4<<0x5)+_0x2199a4+_0x4e43d8,_0x2199a4&=_0x2199a4;}}function _0x99469e(_0x2a169b){Array[_0x47cb58([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2a169b)?_0x2a169b[_0x47cb58([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x99469e):_0x2a169b&&typeof _0x2a169b==_0x47cb58([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x47cb58([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2a169b)[_0x47cb58([0x73,0x6f,0x72,0x74])]()[_0x47cb58([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x27ebe7,_0x3f933e])=>{_0x16c023(_0x27ebe7),_0x99469e(_0x3f933e);}):_0x16c023(window[_0x47cb58([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2a169b));}return _0x99469e(_0x51d454),_0x2199a4>>>0x0;}function _0x53c121(_0x506f88){return _0x506f88[_0x47cb58([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x47cb58([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x47cb58([0x30]));}function _0x223e17(_0x35d49f){return _0x35d49f[_0x47cb58([0x73,0x70,0x6c,0x69,0x74])]('')[_0x47cb58([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x47cb58([0x6a,0x6f,0x69,0x6e])]('');}function _0x3c9f74(){}function _0x47cb58(_0x5efce1){return _0x5efce1['map'](_0x101015=>String['fromCharCode'](_0x101015))['join']('');}_0x53f82b(await _0x44284());}(this);}['_validateConfig'](){const _0x3d2e3f=this['editor'];if(!_0x3d2e3f['config']['get']('lineHeight.supportAllValues'))return;const _0x2f0c6a=_0x3d2e3f['config']['get']('lineHeight.options')['filter'](_0x6a1038=>'string'==typeof _0x6a1038&&(!H(_0x6a1038)&&isNaN(Number(_0x6a1038))));if(_0x2f0c6a['length'])throw new _0x42c05f('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x2f0c6a});}['_prepareAnyValueConverters'](){const _0x137c04=this['editor'],_0x2eb107=this['editor']['config']['get']('lineHeight.defaultValue');_0x137c04['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x476232=>String(_0x476232)===String(_0x2eb107)?null:{'key':'style','value':{'line-height':_0x476232}}}),_0x137c04['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x2ce4d8=>{let _0x2d38ee=_0x2ce4d8['getStyle']('line-height');return _0x325d56(_0x2d38ee)&&(_0x2d38ee=String(Number(_0x2d38ee['slice'](0x0,-0x1))/0x64)),String(_0x2d38ee)===String(_0x2eb107)?null:_0x2d38ee;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x21157a=this['editor'],_0x59af14=this['editor']['config']['get']('lineHeight.defaultValue'),_0x535e92=function(_0x47b016,_0x2e4695){const _0x4264c6={'model':{'key':_0x47b016,'values':[]},'view':{}};for(const _0x45d8a6 of _0x2e4695)'class'===_0x45d8a6['view']?.['key']?(_0x4264c6['model']['values']['push'](_0x45d8a6['model']),_0x4264c6['view'][_0x45d8a6['model']]={'key':'class','value':_0x45d8a6['view']['value']}):(_0x4264c6['model']['values']['push'](_0x45d8a6['model']),_0x4264c6['view'][_0x45d8a6['model']]={'key':'style','value':'line-height:'+_0x45d8a6['model']+';'});return _0x4264c6;}('lineHeight',L(this['editor']['config']['get']('lineHeight'))['filter'](_0x5dd891=>_0x5dd891['model']));_0x21157a['conversion']['attributeToAttribute'](_0x535e92),_0x21157a['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x759949=>{let _0x1fa3f5=_0x759949['getStyle']('line-height');return _0x325d56(_0x1fa3f5)&&(_0x1fa3f5=String(Number(_0x1fa3f5['slice'](0x0,-0x1))/0x64)),_0x1fa3f5===String(_0x59af14)?null:_0x535e92['model']['values']['includes'](_0x1fa3f5)?_0x1fa3f5:null;}}});}}class k extends _0x57ee94{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x15e8d6={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x15e8d6),this['_registerMenuBarComponent'](_0x15e8d6),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x57d7c1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xfb20df;for(const _0x34db77 in _0x57d7c1){const _0x2da1c7=_0x34db77,_0x55d856=_0x57d7c1[_0x2da1c7];if('lineHeightLicenseKeyValid'==_0x55d856||'lineHeightLicenseKeyInvalid'==_0x55d856||'lineHeightLicenseKeyExpired'==_0x55d856||'lineHeightLicenseKeyDomainLimit'==_0x55d856||'lineHeightLicenseKeyNotAllowed'==_0x55d856||'lineHeightLicenseKeyEvaluationLimit'==_0x55d856||'lineHeightLicenseKeyUsageLimit'==_0x55d856){delete _0x57d7c1[_0x2da1c7],_0xfb20df=_0x55d856,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0xfb20df&&_0x57d7c1['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0xfb20df&&_0x57d7c1['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0xfb20df&&_0x57d7c1['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0xfb20df&&_0x57d7c1['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0xfb20df&&_0x57d7c1['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0xfb20df&&_0x57d7c1['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x527b85=this['editor'],t=_0x527b85['t'],_0x45d2f8=_0x527b85['config']['get']('lineHeight'),_0x3e43fa={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return L(_0x45d2f8)['map'](_0x22973f=>{const _0x240b7b=_0x3e43fa[_0x22973f['title']];return _0x240b7b&&_0x240b7b!=_0x22973f['title']&&(_0x22973f=Object['assign']({},_0x22973f,{'title':_0x240b7b})),_0x22973f;});}['_prepareListOptions'](){const _0x369c65=this['editor']['commands']['get']('lineHeight'),_0x4d7524=this['editor']['config']['get']('lineHeight.defaultValue'),_0x305877=this['_getLocalizedLineHeightOptions'](),_0x3aac0c=new _0xc6967(),_0x28934f=_0xd8190d=>'default'===_0xd8190d||String(_0x4d7524)===_0xd8190d;for(const _0x440ff9 of _0x305877){const _0x2cc2b5={'type':'button','model':new _0x42b674({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x440ff9['title'],'withText':!0x0})};_0x28934f(_0x440ff9['model'])?(_0x2cc2b5['model']['bind']('isOn')['to'](_0x369c65,'value',_0x4dea5f=>!_0x4dea5f),_0x2cc2b5['model']['commandParam']=void 0x0):(_0x2cc2b5['model']['bind']('isOn')['to'](_0x369c65,'value',_0xcc9337=>_0xcc9337===_0x440ff9['model']),_0x2cc2b5['model']['commandParam']=_0x440ff9['model']),_0x3aac0c['add'](_0x2cc2b5);}if(this['_shouldRenderCustomValueOption']()){const _0xcea2d7=this['_getCustomValueOptionDefinition'](_0x305877);_0x3aac0c['add'](_0xcea2d7);}return _0x3aac0c;}['_getCustomValueOptionDefinition'](_0x1da5b1){const _0x3a6623=this['editor'],t=_0x3a6623['t'],_0x2ec965=_0x3a6623['commands']['get']('lineHeight'),_0x2134d3=_0x1da5b1['map'](_0x460084=>_0x460084['model']),_0x1b7f39={'type':'button','model':new _0x42b674({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x1b7f39['model']['bind']('commandParam')['to'](_0x2ec965,'value'),_0x1b7f39['model']['bind']('isOn')['to'](_0x2ec965,'value',_0x4f697f=>!!_0x4f697f&&!_0x2134d3['includes'](String(_0x4f697f))),_0x1b7f39['model']['bind']('label')['to'](_0x2ec965,'value',_0xbd3ab3=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0xbd3ab3))),_0x1b7f39;}['_registerToolbarComponent']({accessibleLabel:_0x5bdc75,options:_0x57db14}){const _0x269bf1=this['editor'],_0x568c02=_0x269bf1['commands']['get']('lineHeight');_0x269bf1['ui']['componentFactory']['add']('lineHeight',_0x3ef921=>{const _0x521c1a=_0x19e451(_0x3ef921);return _0x38d201(_0x521c1a,_0x57db14,{'role':'menu','ariaLabel':_0x5bdc75}),_0x521c1a['buttonView']['set']({'label':_0x5bdc75,'tooltip':!0x0,'icon':_0x19f19d}),_0x521c1a['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x521c1a['bind']('isEnabled')['to'](_0x568c02),this['listenTo'](_0x521c1a,'execute',_0x2cdfdf=>{_0x269bf1['execute'](_0x2cdfdf['source']['commandName'],{'value':_0x2cdfdf['source']['commandParam']}),_0x269bf1['editing']['view']['focus']();}),_0x521c1a['once']('change:isOpen',()=>{const _0x412f35=_0x521c1a['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x521c1a,_0x57db14,_0x412f35);}),_0x521c1a;});}['_registerMenuBarComponent']({accessibleLabel:_0x42c9e4,options:_0x506425}){const _0x342b47=this['editor'],_0x29720d=_0x342b47['commands']['get']('lineHeight');_0x342b47['ui']['componentFactory']['add']('menuBar:lineHeight',_0x4a0fcf=>{const _0x42c813=new _0x1451e1(_0x4a0fcf);_0x42c813['buttonView']['set']({'label':_0x42c9e4,'icon':_0x19f19d}),_0x42c813['bind']('isEnabled')['to'](_0x29720d);const _0x53a131=new _0x5c5f8e(_0x4a0fcf);for(const _0x53e47a of _0x506425){const _0x5b53f5=new _0x1086e8(_0x4a0fcf,_0x42c813),_0x19851c=new _0x3ffca8(_0x4a0fcf);_0x19851c['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x19851c['bind'](...Object['keys'](_0x53e47a['model']))['to'](_0x53e47a['model']),_0x19851c['delegate']('execute')['to'](_0x42c813),_0x19851c['on']('execute',()=>{_0x342b47['execute'](_0x53e47a['model']['commandName'],{'value':_0x53e47a['model']['commandParam']}),_0x342b47['editing']['view']['focus']();}),_0x5b53f5['children']['add'](_0x19851c),_0x53a131['items']['add'](_0x5b53f5);}return _0x42c813['panelView']['children']['add'](_0x53a131),this['_attachCustomOptionVisibilityHandler'](_0x42c813,_0x506425,_0x53a131),_0x42c813;});}['_attachCustomOptionVisibilityHandler'](_0xcce0cc,_0x4e24ce,_0x5b4641){if(!this['_shouldRenderCustomValueOption']())return;const _0x20c7cb=()=>{if(!_0xcce0cc['isOpen'])return;_0x5b4641['items']['last']['isVisible']=Boolean(_0x4e24ce['last']['model']['isOn']);};_0x20c7cb(),_0xcce0cc['on']('change:isOpen',()=>{_0x20c7cb();});}}class _ extends _0x57ee94{static get['requires'](){return[b,k];}static get['pluginName'](){return'LineHeight';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{_ as LineHeight,p as LineHeightCommand,b as LineHeightEditing,v as LineHeightTodoListIntegration,k as LineHeightUI};
|
|
23
|
+
import{Command as _0x3516f0,Plugin as _0x2b5cc9}from'@ckeditor/ckeditor5-core/dist/index.js';import{first as _0x277b52,CKEditorError as _0x444b32,uid as _0x46bf72,Collection as _0x58e4df}from'@ckeditor/ckeditor5-utils/dist/index.js';import{Matcher as _0x272754,isPercentageStyleValue as _0x1cbc7a}from'@ckeditor/ckeditor5-engine/dist/index.js';import{UIModel as _0x57443a,createDropdown as _0xe3726a,addListToDropdown as _0x597993,MenuBarMenuView as _0x296cd9,MenuBarMenuListView as _0x588a11,MenuBarMenuListItemView as _0x3ac8a0,MenuBarMenuListItemButtonView as _0xda8690}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconLineHeight as _0x48a11c}from'@ckeditor/ckeditor5-icons/dist/index.js';class p extends _0x3516f0{['refresh'](){const _0x3794be=this['editor']['model']['document'],_0x57f2f7=_0x277b52(_0x3794be['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x57f2f7)&&this['_canHaveLineHeight'](_0x57f2f7),this['value']=this['isEnabled']&&_0x57f2f7['getAttribute']('lineHeight');}['execute'](_0x18478d={}){const _0xb6ccd7=this['editor']['model'],_0x46579a=_0xb6ccd7['document']['selection'],_0x1fa986=_0x18478d['value'];_0xb6ccd7['change'](_0x4be8bc=>{const _0x4c0509=Array['from'](_0x46579a['getSelectedBlocks']())['filter'](_0x155c6d=>this['_canHaveLineHeight'](_0x155c6d));for(const _0x3cb926 of _0x4c0509)_0x1fa986?_0x4be8bc['setAttribute']('lineHeight',_0x1fa986,_0x3cb926):_0x4be8bc['removeAttribute']('lineHeight',_0x3cb926);});}['_canHaveLineHeight'](_0x3ba851){return this['editor']['model']['schema']['checkAttribute'](_0x3ba851,'lineHeight');}}const y={get 'single'(){return{'title':'Single','model':'single','view':{'key':'class','value':'line-height-single'}};},get 'double'(){return{'title':'Double','model':'double','view':{'key':'class','value':'line-height-double'}};}};function H(_0x342a02){return'string'==typeof _0x342a02&&'default'===_0x342a02['toLowerCase']();}function L(_0x53852e){return _0x53852e['options']['map'](_0x5ec648=>{return H(_0x5ec648)?{'title':String(_0x53852e['defaultValue']),'model':'default'}:('number'==typeof _0x5ec648&&(_0x5ec648=String(_0x5ec648)),'string'!=typeof _0x5ec648?_0x5ec648:parseFloat(_0x5ec648)?{'title':_0x5ec648,'model':_0x5ec648,'view':{'name':'span','styles':{'line-height':_0x5ec648}}}:'string'==typeof(_0x18da43=_0x5ec648)?y[_0x18da43]:y[_0x18da43['model']]);var _0x18da43;})['filter'](_0x30e7e7=>void 0x0!==_0x30e7e7);}class v extends _0x2b5cc9{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x35c8e6,conversion:_0x4261c0}=this['editor'];if(!_0x35c8e6['has']('ListEditing')||!_0x35c8e6['has']('TodoListEditing'))return;_0x35c8e6['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x32ce41,_0x1504af,_0x3d490d,_0x3925a5,_0xbe22e){'todo'==_0xbe22e['getAttribute']('listType')&&_0x1504af&&(_0x32ce41['addClass']('ck-list-marker-line-height',_0x3d490d),_0x32ce41['setStyle']('--ck-content-list-marker-line-height',_0x1504af,_0x3d490d));}}),_0x4261c0['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x4261c0['for']('upcast')['add'](_0x379ec6=>{_0x379ec6['on']('element:li',function(_0xfdb7e){const _0x191b1e=new _0x272754(_0xfdb7e);return(_0x1cb345,_0x591342,_0x516c9d)=>{const _0x32d28c=_0x191b1e['match'](_0x591342['viewItem']);if(!_0x32d28c)return;const _0x77ce18=_0x32d28c['match'];_0x77ce18['name']=!0x1,_0x516c9d['consumable']['consume'](_0x591342['viewItem'],_0x77ce18);};}({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));});}}class b extends _0x2b5cc9{static get['pluginName'](){return'LineHeightEditing';}static get['requires'](){return[v];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd2f1e9){super(_0xd2f1e9),_0xd2f1e9['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x426feb=this['editor'];this['_validateConfig'](),_0x426feb['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x426feb['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x426feb['commands']['add']('lineHeight',new p(_0x426feb)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){!async function(_0x22bf06){const _0x1e2e2a=_0x522482([0x50,0x48,0x51,0x33,0x59,0x55,0x49,0x42,0x72,0x6c,0x30,0x58,0x64,0x6e,0x77,0x47,0x39,0x6b,0x65,0x7a,0x38,0x73,0x66,0x70,0x4d,0x76,0x31,0x79,0x74,0x57,0x46,0x52,0x4e,0x5a,0x4f,0x56,0x35,0x6a,0x4a,0x61,0x71,0x37,0x54,0x63,0x32,0x6f,0x67,0x75,0x62,0x36,0x34,0x78,0x43,0x4b,0x44,0x45,0x41,0x4c,0x53,0x69,0x68,0x6d]),_0xccfad3=0x45ddd215,_0x22036f=0x45da5bbd^_0xccfad3,_0x59be3a=window[_0x522482([0x44,0x61,0x74,0x65])][_0x522482([0x6e,0x6f,0x77])](),_0xaee4f0=_0x22bf06[_0x522482([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x6e52c7=new window[(_0x522482([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x227c01=>{_0xaee4f0[_0x522482([0x6f,0x6e,0x63,0x65])](_0x522482([0x72,0x65,0x61,0x64,0x79]),_0x227c01);}),_0x26d177={[_0x522482([0x6b,0x74,0x79])]:_0x522482([0x45,0x43]),[_0x522482([0x75,0x73,0x65])]:_0x522482([0x73,0x69,0x67]),[_0x522482([0x63,0x72,0x76])]:_0x522482([0x50,0x2d,0x32,0x35,0x36]),[_0x522482([0x78])]:_0x522482([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x522482([0x79])]:_0x522482([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x522482([0x61,0x6c,0x67])]:_0x522482([0x45,0x53,0x32,0x35,0x36])},_0x267181=_0xaee4f0[_0x522482([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x522482([0x67,0x65,0x74])](_0x522482([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x256486(){let _0x58110a,_0x41ba98=null,_0x3f222c=null;try{if(_0x267181==_0x522482([0x47,0x50,0x4c]))return _0x522482([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x58110a=_0x47192d(),!_0x58110a)return _0x522482([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x58110a[_0x522482([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3f222c=_0x306298(_0x58110a[_0x522482([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x58110a[_0x522482([0x6a,0x74,0x69])])),await _0x229e28()?_0x5122f3()?_0x26c4b4()?_0x522482([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x292ef8()?(_0x58110a[_0x522482([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x522482([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x41ba98=_0xe117a1(_0x522482([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x361afe()):_0x522482([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x522482([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x522482([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x522482([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x26c4b4(){const _0x5a82ad=[_0x522482([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x522482([0x74,0x72,0x69,0x61,0x6c])][_0x522482([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58110a[_0x522482([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x59be3a/0x3e8:0xe10*_0x22036f;return _0x58110a[_0x522482([0x65,0x78,0x70])]<_0x5a82ad;}function _0x5122f3(){const _0x86a936=_0x58110a[_0x522482([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x86a936&&(!!_0x86a936[_0x522482([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x522482([0x2a]))||!!_0x86a936[_0x522482([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x522482([0x4c,0x48])));}function _0x292ef8(){const _0x37a801=_0x58110a[_0x522482([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x37a801||0x0==_0x37a801[_0x522482([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x30f82f}=new URL(window[_0x522482([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x37a801[_0x522482([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30f82f))return!0x0;const _0x5b4596=_0x30f82f[_0x522482([0x73,0x70,0x6c,0x69,0x74])](_0x522482([0x2e]));return _0x37a801[_0x522482([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xa5598f=>_0xa5598f[_0x522482([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x522482([0x2a])))[_0x522482([0x6d,0x61,0x70])](_0x23fa26=>_0x23fa26[_0x522482([0x73,0x70,0x6c,0x69,0x74])](_0x522482([0x2e])))[_0x522482([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x82789a=>_0x82789a[_0x522482([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5b4596[_0x522482([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x522482([0x6d,0x61,0x70])](_0xe0a7bf=>Array(_0x5b4596[_0x522482([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xe0a7bf[_0x522482([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x522482([0x66,0x69,0x6c,0x6c])](_0xe0a7bf[0x0]===_0x522482([0x2a])?_0x522482([0x2a]):'')[_0x522482([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xe0a7bf))[_0x522482([0x73,0x6f,0x6d,0x65])](_0x3863fd=>_0x5b4596[_0x522482([0x65,0x76,0x65,0x72,0x79])]((_0x3cb962,_0x638daa)=>_0x3863fd[_0x638daa]===_0x3cb962||_0x3863fd[_0x638daa]===_0x522482([0x2a])));}function _0x361afe(){return _0x41ba98&&_0x3f222c?new window[(_0x522482([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xea8d63,_0x8a4560)=>{_0x41ba98[_0x522482([0x74,0x68,0x65,0x6e])](_0xea8d63,_0x8a4560),_0x3f222c[_0x522482([0x74,0x68,0x65,0x6e])](_0x5268de=>{_0x5268de!=_0x522482([0x56,0x61,0x6c,0x69,0x64])&&_0xea8d63(_0x5268de);},_0x8a4560);}):_0x41ba98||_0x3f222c||_0x522482([0x56,0x61,0x6c,0x69,0x64]);}}function _0x306298(_0x314950,_0xecaae7){return new window[(_0x522482([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x554d2f=>{if(_0xca4814())return _0x554d2f(_0x522482([0x56,0x61,0x6c,0x69,0x64]));_0x379ce9(),_0xaee4f0[_0x522482([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x522482([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x18f3f2=!0x1;const _0x262479=_0x46bf72();function _0x1ebd9d(_0x310a8c){return!!_0x310a8c&&(typeof _0x310a8c===_0x522482([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x310a8c===_0x522482([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x310a8c[_0x522482([0x74,0x68,0x65,0x6e])]===_0x522482([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x310a8c[_0x522482([0x63,0x61,0x74,0x63,0x68])]===_0x522482([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xb7b5a6(_0x5615e8){_0x45a31e(_0x5615e8)[_0x522482([0x74,0x68,0x65,0x6e])](_0x5e577f=>{if(!_0x5e577f||_0x5e577f[_0x522482([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x522482([0x6f,0x6b]))return _0x522482([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x204df6(_0x1ea370(_0x262479+_0xecaae7))!=_0x5e577f[_0x522482([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x522482([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x522482([0x56,0x61,0x6c,0x69,0x64]);})[_0x522482([0x74,0x68,0x65,0x6e])](_0x251c6b=>(_0x4a345e(),_0x251c6b),()=>{const _0x2c9930=_0x2e1dcb();return null==_0x2c9930?(_0x4a345e(),_0x522482([0x56,0x61,0x6c,0x69,0x64])):_0x522482(_0x59be3a-_0x2c9930>(0x61d15615^_0xccfad3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x522482([0x74,0x68,0x65,0x6e])](_0x554d2f)[_0x522482([0x63,0x61,0x74,0x63,0x68])](()=>{_0x554d2f(_0x522482([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x313efd=0x45eb3c95^_0xccfad3;function _0x4a345e(){const _0x5795bc=_0x522482([0x6c,0x6c,0x63,0x74,0x2d])+_0x204df6(_0x1ea370(_0x314950)),_0x47a075=_0x20fb54(_0x204df6(window[_0x522482([0x4d,0x61,0x74,0x68])][_0x522482([0x63,0x65,0x69,0x6c])](_0x59be3a/_0x313efd)));window[_0x522482([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x522482([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5795bc,_0x47a075);}function _0x2e1dcb(){const _0x51d5f7=_0x522482([0x6c,0x6c,0x63,0x74,0x2d])+_0x204df6(_0x1ea370(_0x314950)),_0x490dc7=window[_0x522482([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x522482([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51d5f7);return _0x490dc7?window[_0x522482([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20fb54(_0x490dc7),0x10)*_0x313efd:null;}function _0x45a31e(_0x2f6eed){return new window[(_0x522482([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x525391,_0x164877)=>{_0x2f6eed[_0x522482([0x74,0x68,0x65,0x6e])](_0x525391,_0x164877),window[_0x522482([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x164877,0x45dc06d5^_0xccfad3);});}}_0xaee4f0[_0x522482([0x6f,0x6e])](_0x522482([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x316728,_0x1bef70)=>{if(_0x1bef70[0x0]!=_0x314950)return _0x554d2f(_0x522482([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1bef70[0x1]={..._0x1bef70[0x1],[_0x522482([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x262479};},{[_0x522482([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x522482([0x68,0x69,0x67,0x68])}),_0xaee4f0[_0x522482([0x6f,0x6e])](_0x522482([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3c460a=>{_0x1ebd9d(_0x3c460a[_0x522482([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x18f3f2=!0x0,_0xb7b5a6(_0x3c460a[_0x522482([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x522482([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x522482([0x6c,0x6f,0x77])}),_0x6e52c7[_0x522482([0x74,0x68,0x65,0x6e])](()=>{_0x18f3f2||_0x554d2f(_0x522482([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xca4814(){return _0xaee4f0[_0x522482([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x522482([0x76,0x69,0x65,0x77])][_0x522482([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x522482([0x61,0x75,0x74,0x6f]);}function _0x379ce9(){_0xaee4f0[_0x522482([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x522482([0x76,0x69,0x65,0x77])][_0x522482([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x522482([0x61,0x75,0x74,0x6f]);}}function _0xe117a1(_0x430401){const _0x45b7b6=[new window[(_0x522482([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x341ef5=>setTimeout(_0x341ef5,0x45d4ecd9^_0xccfad3)),_0x6e52c7[_0x522482([0x74,0x68,0x65,0x6e])](()=>new window[(_0x522482([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f38e1=>{let _0x210878=0x0;_0xaee4f0[_0x522482([0x6d,0x6f,0x64,0x65,0x6c])][_0x522482([0x6f,0x6e])](_0x522482([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1e68db,_0x2055ee)=>{_0x2055ee[0x0][_0x522482([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x210878++,_0x210878==(0x45ddd7fd^_0xccfad3)&&(_0x3f38e1(),_0x1e68db[_0x522482([0x6f,0x66,0x66])]());});}))];return window[_0x522482([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x522482([0x72,0x61,0x63,0x65])](_0x45b7b6)[_0x522482([0x74,0x68,0x65,0x6e])](()=>_0x430401);}async function _0x571daa(){await _0x6e52c7,_0xaee4f0[_0x522482([0x6d,0x6f,0x64,0x65,0x6c])][_0x522482([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x514cdf,_0xaee4f0[_0x522482([0x6d,0x6f,0x64,0x65,0x6c])][_0x522482([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x514cdf,_0xaee4f0[_0x522482([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x522482([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1dbde8(_0x44ceb5){const _0xf128d1=_0x4c2d9b();_0xaee4f0[_0xf128d1]=_0x522482([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x44ceb5,_0x44ceb5!=_0x522482([0x56,0x61,0x6c,0x69,0x64])&&_0x571daa();}function _0x4c2d9b(){const _0x2491d7=window[_0x522482([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x522482([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x522482([0x6e,0x6f,0x77])]())[_0x522482([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x522482([0x2e]),'');let _0x2d202c=_0x522482([0x50]);for(let _0x164b80=0x0;_0x164b80<_0x2491d7[_0x522482([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x164b80+=0x2){let _0x432604=window[_0x522482([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2491d7[_0x522482([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x164b80,_0x164b80+0x2));_0x432604>=_0x1e2e2a[_0x522482([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x432604-=_0x1e2e2a[_0x522482([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2d202c+=_0x1e2e2a[_0x432604];}return _0x2d202c;}function _0x47192d(){const _0x9654c7=_0x267181[_0x522482([0x73,0x70,0x6c,0x69,0x74])](_0x522482([0x2e]));if(0x3!=_0x9654c7[_0x522482([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2c880e(_0x9654c7[0x1]);function _0x2c880e(_0x192d44){const _0x584ee8=_0x55f495(_0x192d44);return _0x584ee8&&_0x47a1a2()?_0x584ee8:null;function _0x47a1a2(){const _0x107a0e=_0x584ee8[_0x522482([0x6a,0x74,0x69])],_0x49354a=window[_0x522482([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x107a0e[_0x522482([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x107a0e[_0x522482([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xa974b9={..._0x584ee8,[_0x522482([0x6a,0x74,0x69])]:_0x107a0e[_0x522482([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x107a0e[_0x522482([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xa974b9[_0x522482([0x76,0x63])],_0x1ea370(_0xa974b9)==_0x49354a;}}}async function _0x229e28(){let _0x57ae21=!0x0;try{const _0x32235a=_0x267181[_0x522482([0x73,0x70,0x6c,0x69,0x74])](_0x522482([0x2e])),[_0x49e839,_0x14c450,_0x52ef6c]=_0x32235a;return _0x461560(_0x49e839),await _0x4ce11c(_0x49e839,_0x14c450,_0x52ef6c),_0x57ae21;}catch{return!0x1;}function _0x461560(_0x1f5ff8){const _0x2cf50c=_0x55f495(_0x1f5ff8);_0x2cf50c&&_0x2cf50c[_0x522482([0x61,0x6c,0x67])]==_0x522482([0x45,0x53,0x32,0x35,0x36])||(_0x57ae21=!0x1);}async function _0x4ce11c(_0xd410e3,_0x3a3ed5,_0x249e03){const _0x1b17ba=window[_0x522482([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x522482([0x66,0x72,0x6f,0x6d])](_0x353960(_0x249e03),_0x497070=>_0x497070[_0x522482([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x588b50=new window[(_0x522482([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x522482([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xd410e3+_0x522482([0x2e])+_0x3a3ed5),_0x55ed5c=window[_0x522482([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x522482([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x55ed5c)return;const _0x2f7bfa=await _0x55ed5c[_0x522482([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x522482([0x6a,0x77,0x6b]),_0x26d177,{[_0x522482([0x6e,0x61,0x6d,0x65])]:_0x522482([0x45,0x43,0x44,0x53,0x41]),[_0x522482([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x522482([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x522482([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x55ed5c[_0x522482([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x522482([0x6e,0x61,0x6d,0x65])]:_0x522482([0x45,0x43,0x44,0x53,0x41]),[_0x522482([0x68,0x61,0x73,0x68])]:{[_0x522482([0x6e,0x61,0x6d,0x65])]:_0x522482([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2f7bfa,_0x1b17ba,_0x588b50)||(_0x57ae21=!0x1);}}function _0x55f495(_0x118c54){return _0x118c54[_0x522482([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x522482([0x65,0x79]))?JSON[_0x522482([0x70,0x61,0x72,0x73,0x65])](_0x353960(_0x118c54)):null;}function _0x353960(_0x2982f5){return window[_0x522482([0x61,0x74,0x6f,0x62])](_0x2982f5[_0x522482([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x522482([0x2b]))[_0x522482([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x522482([0x2f])));}function _0x1ea370(_0xe3afa7){let _0x43030e=0x1505;function _0x53c051(_0x863758){for(let _0x363924=0x0;_0x363924<_0x863758[_0x522482([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x363924++){const _0x462618=_0x863758[_0x522482([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x363924);_0x43030e=(_0x43030e<<0x5)+_0x43030e+_0x462618,_0x43030e&=_0x43030e;}}function _0x3f78cd(_0x263872){Array[_0x522482([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x263872)?_0x263872[_0x522482([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3f78cd):_0x263872&&typeof _0x263872==_0x522482([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x522482([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x263872)[_0x522482([0x73,0x6f,0x72,0x74])]()[_0x522482([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x226b08,_0x1c95a3])=>{_0x53c051(_0x226b08),_0x3f78cd(_0x1c95a3);}):_0x53c051(window[_0x522482([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x263872));}return _0x3f78cd(_0xe3afa7),_0x43030e>>>0x0;}function _0x204df6(_0x2b53d6){return _0x2b53d6[_0x522482([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x522482([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x522482([0x30]));}function _0x20fb54(_0x32feca){return _0x32feca[_0x522482([0x73,0x70,0x6c,0x69,0x74])]('')[_0x522482([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x522482([0x6a,0x6f,0x69,0x6e])]('');}function _0x514cdf(){}function _0x522482(_0x40a78d){return _0x40a78d['map'](_0x8ff43c=>String['fromCharCode'](_0x8ff43c))['join']('');}_0x1dbde8(await _0x256486());}(this);}['_validateConfig'](){const _0x27191c=this['editor'];if(!_0x27191c['config']['get']('lineHeight.supportAllValues'))return;const _0x39b7a1=_0x27191c['config']['get']('lineHeight.options')['filter'](_0x4d07eb=>'string'==typeof _0x4d07eb&&(!H(_0x4d07eb)&&isNaN(Number(_0x4d07eb))));if(_0x39b7a1['length'])throw new _0x444b32('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x39b7a1});}['_prepareAnyValueConverters'](){const _0x46c91a=this['editor'],_0x13b425=this['editor']['config']['get']('lineHeight.defaultValue');_0x46c91a['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x31c088=>String(_0x31c088)===String(_0x13b425)?null:{'key':'style','value':{'line-height':_0x31c088}}}),_0x46c91a['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x399765=>{let _0x37a92c=_0x399765['getStyle']('line-height');return _0x1cbc7a(_0x37a92c)&&(_0x37a92c=String(Number(_0x37a92c['slice'](0x0,-0x1))/0x64)),String(_0x37a92c)===String(_0x13b425)?null:_0x37a92c;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x305c3b=this['editor'],_0x1880dd=this['editor']['config']['get']('lineHeight.defaultValue'),_0x2882fb=function(_0x94fd53,_0x589e07){const _0x4fd7a7={'model':{'key':_0x94fd53,'values':[]},'view':{}};for(const _0x4db841 of _0x589e07)'class'===_0x4db841['view']?.['key']?(_0x4fd7a7['model']['values']['push'](_0x4db841['model']),_0x4fd7a7['view'][_0x4db841['model']]={'key':'class','value':_0x4db841['view']['value']}):(_0x4fd7a7['model']['values']['push'](_0x4db841['model']),_0x4fd7a7['view'][_0x4db841['model']]={'key':'style','value':'line-height:'+_0x4db841['model']+';'});return _0x4fd7a7;}('lineHeight',L(this['editor']['config']['get']('lineHeight'))['filter'](_0x3a943f=>_0x3a943f['model']));_0x305c3b['conversion']['attributeToAttribute'](_0x2882fb),_0x305c3b['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x460256=>{let _0x5eb459=_0x460256['getStyle']('line-height');return _0x1cbc7a(_0x5eb459)&&(_0x5eb459=String(Number(_0x5eb459['slice'](0x0,-0x1))/0x64)),_0x5eb459===String(_0x1880dd)?null:_0x2882fb['model']['values']['includes'](_0x5eb459)?_0x5eb459:null;}}});}}class k extends _0x2b5cc9{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x22bb83={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x22bb83),this['_registerMenuBarComponent'](_0x22bb83),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x36a903=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2df3e0;for(const _0x307534 in _0x36a903){const _0x4eb334=_0x307534,_0x12df91=_0x36a903[_0x4eb334];if('lineHeightLicenseKeyValid'==_0x12df91||'lineHeightLicenseKeyInvalid'==_0x12df91||'lineHeightLicenseKeyExpired'==_0x12df91||'lineHeightLicenseKeyDomainLimit'==_0x12df91||'lineHeightLicenseKeyNotAllowed'==_0x12df91||'lineHeightLicenseKeyEvaluationLimit'==_0x12df91||'lineHeightLicenseKeyUsageLimit'==_0x12df91){delete _0x36a903[_0x4eb334],_0x2df3e0=_0x12df91,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x2df3e0&&_0x36a903['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x2df3e0&&_0x36a903['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x2df3e0&&_0x36a903['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x2df3e0&&_0x36a903['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x2df3e0&&_0x36a903['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x2df3e0&&_0x36a903['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x53260c=this['editor'],t=_0x53260c['t'],_0x443fcf=_0x53260c['config']['get']('lineHeight'),_0x15a981={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return L(_0x443fcf)['map'](_0x3be486=>{const _0x236f56=_0x15a981[_0x3be486['title']];return _0x236f56&&_0x236f56!=_0x3be486['title']&&(_0x3be486=Object['assign']({},_0x3be486,{'title':_0x236f56})),_0x3be486;});}['_prepareListOptions'](){const _0x35d81f=this['editor']['commands']['get']('lineHeight'),_0x257db5=this['editor']['config']['get']('lineHeight.defaultValue'),_0xeedf8e=this['_getLocalizedLineHeightOptions'](),_0x298258=new _0x58e4df(),_0x91096f=_0x520252=>'default'===_0x520252||String(_0x257db5)===_0x520252;for(const _0xf72f42 of _0xeedf8e){const _0x4a38e2={'type':'button','model':new _0x57443a({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0xf72f42['title'],'withText':!0x0})};_0x91096f(_0xf72f42['model'])?(_0x4a38e2['model']['bind']('isOn')['to'](_0x35d81f,'value',_0x418b9c=>!_0x418b9c),_0x4a38e2['model']['commandParam']=void 0x0):(_0x4a38e2['model']['bind']('isOn')['to'](_0x35d81f,'value',_0x1d14b0=>_0x1d14b0===_0xf72f42['model']),_0x4a38e2['model']['commandParam']=_0xf72f42['model']),_0x298258['add'](_0x4a38e2);}if(this['_shouldRenderCustomValueOption']()){const _0x442b5=this['_getCustomValueOptionDefinition'](_0xeedf8e);_0x298258['add'](_0x442b5);}return _0x298258;}['_getCustomValueOptionDefinition'](_0x962ce3){const _0x1577ce=this['editor'],t=_0x1577ce['t'],_0x3eecdd=_0x1577ce['commands']['get']('lineHeight'),_0x4b5f65=_0x962ce3['map'](_0x54119e=>_0x54119e['model']),_0x576433={'type':'button','model':new _0x57443a({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x576433['model']['bind']('commandParam')['to'](_0x3eecdd,'value'),_0x576433['model']['bind']('isOn')['to'](_0x3eecdd,'value',_0x5cb2f2=>!!_0x5cb2f2&&!_0x4b5f65['includes'](String(_0x5cb2f2))),_0x576433['model']['bind']('label')['to'](_0x3eecdd,'value',_0x384957=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x384957))),_0x576433;}['_registerToolbarComponent']({accessibleLabel:_0xcf2f36,options:_0x122d65}){const _0xe82f46=this['editor'],_0x41bcc0=_0xe82f46['commands']['get']('lineHeight');_0xe82f46['ui']['componentFactory']['add']('lineHeight',_0x159df2=>{const _0x3d0611=_0xe3726a(_0x159df2);return _0x597993(_0x3d0611,_0x122d65,{'role':'menu','ariaLabel':_0xcf2f36}),_0x3d0611['buttonView']['set']({'label':_0xcf2f36,'tooltip':!0x0,'icon':_0x48a11c}),_0x3d0611['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x3d0611['bind']('isEnabled')['to'](_0x41bcc0),this['listenTo'](_0x3d0611,'execute',_0x36ef17=>{_0xe82f46['execute'](_0x36ef17['source']['commandName'],{'value':_0x36ef17['source']['commandParam']}),_0xe82f46['editing']['view']['focus']();}),_0x3d0611['once']('change:isOpen',()=>{const _0x5e2828=_0x3d0611['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x3d0611,_0x122d65,_0x5e2828);}),_0x3d0611;});}['_registerMenuBarComponent']({accessibleLabel:_0x24d6e1,options:_0x4cea18}){const _0x1195fa=this['editor'],_0x5d248b=_0x1195fa['commands']['get']('lineHeight');_0x1195fa['ui']['componentFactory']['add']('menuBar:lineHeight',_0x430850=>{const _0x65da93=new _0x296cd9(_0x430850);_0x65da93['buttonView']['set']({'label':_0x24d6e1,'icon':_0x48a11c}),_0x65da93['bind']('isEnabled')['to'](_0x5d248b);const _0x34b3ee=new _0x588a11(_0x430850);for(const _0x5b58a of _0x4cea18){const _0x15fdc1=new _0x3ac8a0(_0x430850,_0x65da93),_0x4b6b71=new _0xda8690(_0x430850);_0x4b6b71['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x4b6b71['bind'](...Object['keys'](_0x5b58a['model']))['to'](_0x5b58a['model']),_0x4b6b71['delegate']('execute')['to'](_0x65da93),_0x4b6b71['on']('execute',()=>{_0x1195fa['execute'](_0x5b58a['model']['commandName'],{'value':_0x5b58a['model']['commandParam']}),_0x1195fa['editing']['view']['focus']();}),_0x15fdc1['children']['add'](_0x4b6b71),_0x34b3ee['items']['add'](_0x15fdc1);}return _0x65da93['panelView']['children']['add'](_0x34b3ee),this['_attachCustomOptionVisibilityHandler'](_0x65da93,_0x4cea18,_0x34b3ee),_0x65da93;});}['_attachCustomOptionVisibilityHandler'](_0x5b9828,_0x520681,_0x3e0b56){if(!this['_shouldRenderCustomValueOption']())return;const _0x3256df=()=>{if(!_0x5b9828['isOpen'])return;_0x3e0b56['items']['last']['isVisible']=Boolean(_0x520681['last']['model']['isOn']);};_0x3256df(),_0x5b9828['on']('change:isOpen',()=>{_0x3256df();});}}class _ extends _0x2b5cc9{static get['requires'](){return[b,k];}static get['pluginName'](){return'LineHeight';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{_ as LineHeight,p as LineHeightCommand,b as LineHeightEditing,v as LineHeightTodoListIntegration,k as LineHeightUI};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-line-height",
|
|
3
|
-
"version": "48.1.0-alpha.
|
|
3
|
+
"version": "48.1.0-alpha.4",
|
|
4
4
|
"description": "Line height feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (https://cksource.com/)",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"dist/translations/*.umd.js"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@ckeditor/ckeditor5-core": "48.1.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-engine": "48.1.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-icons": "48.1.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-list": "48.1.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-ui": "48.1.0-alpha.
|
|
33
|
-
"@ckeditor/ckeditor5-utils": "48.1.0-alpha.
|
|
28
|
+
"@ckeditor/ckeditor5-core": "48.1.0-alpha.4",
|
|
29
|
+
"@ckeditor/ckeditor5-engine": "48.1.0-alpha.4",
|
|
30
|
+
"@ckeditor/ckeditor5-icons": "48.1.0-alpha.4",
|
|
31
|
+
"@ckeditor/ckeditor5-list": "48.1.0-alpha.4",
|
|
32
|
+
"@ckeditor/ckeditor5-ui": "48.1.0-alpha.4",
|
|
33
|
+
"@ckeditor/ckeditor5-utils": "48.1.0-alpha.4"
|
|
34
34
|
},
|
|
35
35
|
"files": [
|
|
36
36
|
"dist",
|