@ckeditor/ckeditor5-line-height 0.0.0-nightly-next-20260117.0 → 0.0.0-nightly-next-20260118.0
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 _0x41069d,Plugin as _0x124202}from'@ckeditor/ckeditor5-core/dist/index.js';import{first as _0x402437,CKEditorError as _0x56d602,uid as _0x37d7c9,Collection as _0x4ef8e0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{Matcher as _0x3b1620,isPercentageStyleValue as _0x2a8884}from'@ckeditor/ckeditor5-engine/dist/index.js';import{UIModel as _0x932f3f,createDropdown as _0x381647,addListToDropdown as _0x3e9022,MenuBarMenuView as _0x5de5e4,MenuBarMenuListView as _0x1b7257,MenuBarMenuListItemView as _0x2d32b5,MenuBarMenuListItemButtonView as _0x1a0fb3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconLineHeight as _0x3a5634}from'@ckeditor/ckeditor5-icons/dist/index.js';class p extends _0x41069d{['refresh'](){const _0x52d057=this['editor']['model']['document'],_0x5b0542=_0x402437(_0x52d057['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x5b0542)&&this['_canHaveLineHeight'](_0x5b0542),this['value']=this['isEnabled']&&_0x5b0542['getAttribute']('lineHeight');}['execute'](_0x1e0280={}){const _0x50f018=this['editor']['model'],_0xd97c14=_0x50f018['document']['selection'],_0x14284e=_0x1e0280['value'];_0x50f018['change'](_0x4593d0=>{const _0x17baa7=Array['from'](_0xd97c14['getSelectedBlocks']())['filter'](_0x16f9d6=>this['_canHaveLineHeight'](_0x16f9d6));for(const _0x4c4d13 of _0x17baa7)_0x14284e?_0x4593d0['setAttribute']('lineHeight',_0x14284e,_0x4c4d13):_0x4593d0['removeAttribute']('lineHeight',_0x4c4d13);});}['_canHaveLineHeight'](_0x520a84){return this['editor']['model']['schema']['checkAttribute'](_0x520a84,'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(_0x4a37a1){return'string'==typeof _0x4a37a1&&'default'===_0x4a37a1['toLowerCase']();}function L(_0x15342b){return _0x15342b['options']['map'](_0x2cba6d=>{return H(_0x2cba6d)?{'title':String(_0x15342b['defaultValue']),'model':'default'}:('number'==typeof _0x2cba6d&&(_0x2cba6d=String(_0x2cba6d)),'string'!=typeof _0x2cba6d?_0x2cba6d:parseFloat(_0x2cba6d)?{'title':_0x2cba6d,'model':_0x2cba6d,'view':{'name':'span','styles':{'line-height':_0x2cba6d}}}:'string'==typeof(_0x4e746a=_0x2cba6d)?y[_0x4e746a]:y[_0x4e746a['model']]);var _0x4e746a;})['filter'](_0xedd56=>void 0x0!==_0xedd56);}class v extends _0x124202{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x4f78ed,conversion:_0x56778d}=this['editor'];if(!_0x4f78ed['has']('ListEditing')||!_0x4f78ed['has']('TodoListEditing'))return;_0x4f78ed['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x2b218b,_0x3553b7,_0x140996,_0x14d1f6,_0x1c6cfb){'todo'==_0x1c6cfb['getAttribute']('listType')&&_0x3553b7&&(_0x2b218b['addClass']('ck-list-marker-line-height',_0x140996),_0x2b218b['setStyle']('--ck-content-list-marker-line-height',_0x3553b7,_0x140996));}}),_0x56778d['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x56778d['for']('upcast')['add'](_0x1c4068=>{_0x1c4068['on']('element:li',function(_0x1741b0){const _0x3e9760=new _0x3b1620(_0x1741b0);return(_0x12379b,_0x36f362,_0x180afe)=>{const _0x3f45df=_0x3e9760['match'](_0x36f362['viewItem']);if(!_0x3f45df)return;const _0x1c547a=_0x3f45df['match'];_0x1c547a['name']=!0x1,_0x180afe['consumable']['consume'](_0x36f362['viewItem'],_0x1c547a);};}({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));});}}class b extends _0x124202{static get['pluginName'](){return'LineHeightEditing';}static get['requires'](){return[v];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1904f1){super(_0x1904f1),_0x1904f1['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x47f7a7=this['editor'];this['_validateConfig'](),_0x47f7a7['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x47f7a7['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x47f7a7['commands']['add']('lineHeight',new p(_0x47f7a7)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){!async function(_0x5bdbfb){const _0x568c22=_0x401c0c([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]),_0x59c4f5=0x45ddd215,_0x4c63ef=0x45daad05^_0x59c4f5,_0x1f8cb6=window[_0x401c0c([0x44,0x61,0x74,0x65])][_0x401c0c([0x6e,0x6f,0x77])](),_0x4ec5ba=_0x5bdbfb[_0x401c0c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4b896b=new window[(_0x401c0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d9ece=>{_0x4ec5ba[_0x401c0c([0x6f,0x6e,0x63,0x65])](_0x401c0c([0x72,0x65,0x61,0x64,0x79]),_0x3d9ece);}),_0x3e069f={[_0x401c0c([0x6b,0x74,0x79])]:_0x401c0c([0x45,0x43]),[_0x401c0c([0x75,0x73,0x65])]:_0x401c0c([0x73,0x69,0x67]),[_0x401c0c([0x63,0x72,0x76])]:_0x401c0c([0x50,0x2d,0x32,0x35,0x36]),[_0x401c0c([0x78])]:_0x401c0c([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]),[_0x401c0c([0x79])]:_0x401c0c([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]),[_0x401c0c([0x61,0x6c,0x67])]:_0x401c0c([0x45,0x53,0x32,0x35,0x36])},_0x538909=_0x4ec5ba[_0x401c0c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x401c0c([0x67,0x65,0x74])](_0x401c0c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x389d0c(){let _0x719508,_0x4263d3=null,_0x41324e=null;try{if(_0x538909==_0x401c0c([0x47,0x50,0x4c]))return _0x401c0c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x719508=_0x50c564(),!_0x719508)return _0x401c0c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x719508[_0x401c0c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x41324e=_0x3d58e8(_0x719508[_0x401c0c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x719508[_0x401c0c([0x6a,0x74,0x69])])),await _0x103b08()?_0x38db60()?_0x2fd06b()?_0x401c0c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4a5892()?(_0x719508[_0x401c0c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x401c0c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4263d3=_0x569e24(_0x401c0c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5343b2()):_0x401c0c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x401c0c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x401c0c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x401c0c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2fd06b(){const _0x10e1f8=[_0x401c0c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x401c0c([0x74,0x72,0x69,0x61,0x6c])][_0x401c0c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x719508[_0x401c0c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1f8cb6/0x3e8:0xe10*_0x4c63ef;return _0x719508[_0x401c0c([0x65,0x78,0x70])]<_0x10e1f8;}function _0x38db60(){const _0x150db4=_0x719508[_0x401c0c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x150db4&&(!!_0x150db4[_0x401c0c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x401c0c([0x2a]))||!!_0x150db4[_0x401c0c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x401c0c([0x4c,0x48])));}function _0x4a5892(){const _0x47e0ad=_0x719508[_0x401c0c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x47e0ad||0x0==_0x47e0ad[_0x401c0c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xd76bca}=new URL(window[_0x401c0c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x47e0ad[_0x401c0c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd76bca))return!0x0;const _0x29a73a=_0xd76bca[_0x401c0c([0x73,0x70,0x6c,0x69,0x74])](_0x401c0c([0x2e]));return _0x47e0ad[_0x401c0c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4d605b=>_0x4d605b[_0x401c0c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x401c0c([0x2a])))[_0x401c0c([0x6d,0x61,0x70])](_0x10c3a1=>_0x10c3a1[_0x401c0c([0x73,0x70,0x6c,0x69,0x74])](_0x401c0c([0x2e])))[_0x401c0c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a067e=>_0x5a067e[_0x401c0c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x29a73a[_0x401c0c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x401c0c([0x6d,0x61,0x70])](_0x4289bd=>Array(_0x29a73a[_0x401c0c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4289bd[_0x401c0c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x401c0c([0x66,0x69,0x6c,0x6c])](_0x4289bd[0x0]===_0x401c0c([0x2a])?_0x401c0c([0x2a]):'')[_0x401c0c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4289bd))[_0x401c0c([0x73,0x6f,0x6d,0x65])](_0x42618e=>_0x29a73a[_0x401c0c([0x65,0x76,0x65,0x72,0x79])]((_0x405f52,_0x42f05d)=>_0x42618e[_0x42f05d]===_0x405f52||_0x42618e[_0x42f05d]===_0x401c0c([0x2a])));}function _0x5343b2(){return _0x4263d3&&_0x41324e?new window[(_0x401c0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5bb8bf,_0x526a96)=>{_0x4263d3[_0x401c0c([0x74,0x68,0x65,0x6e])](_0x5bb8bf,_0x526a96),_0x41324e[_0x401c0c([0x74,0x68,0x65,0x6e])](_0x2f7427=>{_0x2f7427!=_0x401c0c([0x56,0x61,0x6c,0x69,0x64])&&_0x5bb8bf(_0x2f7427);},_0x526a96);}):_0x4263d3||_0x41324e||_0x401c0c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3d58e8(_0x58f1c2,_0x421334){return new window[(_0x401c0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfb0363=>{if(_0x54bdba())return _0xfb0363(_0x401c0c([0x56,0x61,0x6c,0x69,0x64]));_0x10b5fa(),_0x4ec5ba[_0x401c0c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x401c0c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3fbddb=!0x1;const _0xd7fd06=_0x37d7c9();function _0x3c471a(_0x252a37){return!!_0x252a37&&(typeof _0x252a37===_0x401c0c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x252a37===_0x401c0c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x252a37[_0x401c0c([0x74,0x68,0x65,0x6e])]===_0x401c0c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x252a37[_0x401c0c([0x63,0x61,0x74,0x63,0x68])]===_0x401c0c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x250b7d(_0x431b99){_0x3cd706(_0x431b99)[_0x401c0c([0x74,0x68,0x65,0x6e])](_0x4395f1=>{if(!_0x4395f1||_0x4395f1[_0x401c0c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x401c0c([0x6f,0x6b]))return _0x401c0c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xf0b4b6(_0x281545(_0xd7fd06+_0x421334))!=_0x4395f1[_0x401c0c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x401c0c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x401c0c([0x56,0x61,0x6c,0x69,0x64]);})[_0x401c0c([0x74,0x68,0x65,0x6e])](_0x48a55c=>(_0x49d602(),_0x48a55c),()=>{const _0x296ee6=_0x4d0aa1();return null==_0x296ee6?(_0x49d602(),_0x401c0c([0x56,0x61,0x6c,0x69,0x64])):_0x401c0c(_0x1f8cb6-_0x296ee6>(0x61d15615^_0x59c4f5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x401c0c([0x74,0x68,0x65,0x6e])](_0xfb0363)[_0x401c0c([0x63,0x61,0x74,0x63,0x68])](()=>{_0xfb0363(_0x401c0c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x29c46b=0x45eb3c95^_0x59c4f5;function _0x49d602(){const _0x57ce17=_0x401c0c([0x6c,0x6c,0x63,0x74,0x2d])+_0xf0b4b6(_0x281545(_0x58f1c2)),_0x24c4b3=_0x45424c(_0xf0b4b6(window[_0x401c0c([0x4d,0x61,0x74,0x68])][_0x401c0c([0x63,0x65,0x69,0x6c])](_0x1f8cb6/_0x29c46b)));window[_0x401c0c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x401c0c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57ce17,_0x24c4b3);}function _0x4d0aa1(){const _0x19daa7=_0x401c0c([0x6c,0x6c,0x63,0x74,0x2d])+_0xf0b4b6(_0x281545(_0x58f1c2)),_0x2b7780=window[_0x401c0c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x401c0c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x19daa7);return _0x2b7780?window[_0x401c0c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45424c(_0x2b7780),0x10)*_0x29c46b:null;}function _0x3cd706(_0x110a86){return new window[(_0x401c0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3f1711,_0x545360)=>{_0x110a86[_0x401c0c([0x74,0x68,0x65,0x6e])](_0x3f1711,_0x545360),window[_0x401c0c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x545360,0x45dc06d5^_0x59c4f5);});}}_0x4ec5ba[_0x401c0c([0x6f,0x6e])](_0x401c0c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x551dc9,_0x589135)=>{if(_0x589135[0x0]!=_0x58f1c2)return _0xfb0363(_0x401c0c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x589135[0x1]={..._0x589135[0x1],[_0x401c0c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xd7fd06};},{[_0x401c0c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x401c0c([0x68,0x69,0x67,0x68])}),_0x4ec5ba[_0x401c0c([0x6f,0x6e])](_0x401c0c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4b678f=>{_0x3c471a(_0x4b678f[_0x401c0c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3fbddb=!0x0,_0x250b7d(_0x4b678f[_0x401c0c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x401c0c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x401c0c([0x6c,0x6f,0x77])}),_0x4b896b[_0x401c0c([0x74,0x68,0x65,0x6e])](()=>{_0x3fbddb||_0xfb0363(_0x401c0c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x54bdba(){return _0x4ec5ba[_0x401c0c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x401c0c([0x76,0x69,0x65,0x77])][_0x401c0c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x401c0c([0x61,0x75,0x74,0x6f]);}function _0x10b5fa(){_0x4ec5ba[_0x401c0c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x401c0c([0x76,0x69,0x65,0x77])][_0x401c0c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x401c0c([0x61,0x75,0x74,0x6f]);}}function _0x569e24(_0x5d4505){const _0x324401=[new window[(_0x401c0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47c7aa=>setTimeout(_0x47c7aa,0x45d4ecd9^_0x59c4f5)),_0x4b896b[_0x401c0c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x401c0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f46c4=>{let _0x5347b6=0x0;_0x4ec5ba[_0x401c0c([0x6d,0x6f,0x64,0x65,0x6c])][_0x401c0c([0x6f,0x6e])](_0x401c0c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xf15a2f,_0xcdde04)=>{_0xcdde04[0x0][_0x401c0c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5347b6++,_0x5347b6==(0x45ddd7fd^_0x59c4f5)&&(_0x4f46c4(),_0xf15a2f[_0x401c0c([0x6f,0x66,0x66])]());});}))];return window[_0x401c0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x401c0c([0x72,0x61,0x63,0x65])](_0x324401)[_0x401c0c([0x74,0x68,0x65,0x6e])](()=>_0x5d4505);}async function _0x542ee1(){await _0x4b896b,_0x4ec5ba[_0x401c0c([0x6d,0x6f,0x64,0x65,0x6c])][_0x401c0c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xa828cd,_0x4ec5ba[_0x401c0c([0x6d,0x6f,0x64,0x65,0x6c])][_0x401c0c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xa828cd,_0x4ec5ba[_0x401c0c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x401c0c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x334552(_0x1cd02d){const _0x50b42a=_0x57a8f5();_0x4ec5ba[_0x50b42a]=_0x401c0c([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1cd02d,_0x1cd02d!=_0x401c0c([0x56,0x61,0x6c,0x69,0x64])&&_0x542ee1();}function _0x57a8f5(){const _0x18be64=window[_0x401c0c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x401c0c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x401c0c([0x6e,0x6f,0x77])]())[_0x401c0c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x401c0c([0x2e]),'');let _0x311bbc=_0x401c0c([0x50]);for(let _0x28cf54=0x0;_0x28cf54<_0x18be64[_0x401c0c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x28cf54+=0x2){let _0x58761a=window[_0x401c0c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18be64[_0x401c0c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x28cf54,_0x28cf54+0x2));_0x58761a>=_0x568c22[_0x401c0c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x58761a-=_0x568c22[_0x401c0c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x311bbc+=_0x568c22[_0x58761a];}return _0x311bbc;}function _0x50c564(){const _0x2a71b6=_0x538909[_0x401c0c([0x73,0x70,0x6c,0x69,0x74])](_0x401c0c([0x2e]));if(0x3!=_0x2a71b6[_0x401c0c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x37b12d(_0x2a71b6[0x1]);function _0x37b12d(_0x2ebef3){const _0x1bb90e=_0x394372(_0x2ebef3);return _0x1bb90e&&_0x53c013()?_0x1bb90e:null;function _0x53c013(){const _0x428ba1=_0x1bb90e[_0x401c0c([0x6a,0x74,0x69])],_0xf827f1=window[_0x401c0c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x428ba1[_0x401c0c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x428ba1[_0x401c0c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x45d87e={..._0x1bb90e,[_0x401c0c([0x6a,0x74,0x69])]:_0x428ba1[_0x401c0c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x428ba1[_0x401c0c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x45d87e[_0x401c0c([0x76,0x63])],_0x281545(_0x45d87e)==_0xf827f1;}}}async function _0x103b08(){let _0x3ee428=!0x0;try{const _0x534132=_0x538909[_0x401c0c([0x73,0x70,0x6c,0x69,0x74])](_0x401c0c([0x2e])),[_0x2f20b0,_0x6155ed,_0x4f8b64]=_0x534132;return _0x4d6a3f(_0x2f20b0),await _0x40643b(_0x2f20b0,_0x6155ed,_0x4f8b64),_0x3ee428;}catch{return!0x1;}function _0x4d6a3f(_0x81ce74){const _0x121862=_0x394372(_0x81ce74);_0x121862&&_0x121862[_0x401c0c([0x61,0x6c,0x67])]==_0x401c0c([0x45,0x53,0x32,0x35,0x36])||(_0x3ee428=!0x1);}async function _0x40643b(_0x48fdac,_0x172d3f,_0x1006d4){const _0x6bdb9e=window[_0x401c0c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x401c0c([0x66,0x72,0x6f,0x6d])](_0x31a273(_0x1006d4),_0x1562ba=>_0x1562ba[_0x401c0c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x6cc6c5=new window[(_0x401c0c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x401c0c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x48fdac+_0x401c0c([0x2e])+_0x172d3f),_0x5bcf4e=window[_0x401c0c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x401c0c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5bcf4e)return;const _0xda8957=await _0x5bcf4e[_0x401c0c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x401c0c([0x6a,0x77,0x6b]),_0x3e069f,{[_0x401c0c([0x6e,0x61,0x6d,0x65])]:_0x401c0c([0x45,0x43,0x44,0x53,0x41]),[_0x401c0c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x401c0c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x401c0c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5bcf4e[_0x401c0c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x401c0c([0x6e,0x61,0x6d,0x65])]:_0x401c0c([0x45,0x43,0x44,0x53,0x41]),[_0x401c0c([0x68,0x61,0x73,0x68])]:{[_0x401c0c([0x6e,0x61,0x6d,0x65])]:_0x401c0c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xda8957,_0x6bdb9e,_0x6cc6c5)||(_0x3ee428=!0x1);}}function _0x394372(_0x497531){return _0x497531[_0x401c0c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x401c0c([0x65,0x79]))?JSON[_0x401c0c([0x70,0x61,0x72,0x73,0x65])](_0x31a273(_0x497531)):null;}function _0x31a273(_0x26e758){return window[_0x401c0c([0x61,0x74,0x6f,0x62])](_0x26e758[_0x401c0c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x401c0c([0x2b]))[_0x401c0c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x401c0c([0x2f])));}function _0x281545(_0x59695a){let _0x331c1d=0x1505;function _0x2da37f(_0x1e1eef){for(let _0xe20276=0x0;_0xe20276<_0x1e1eef[_0x401c0c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe20276++){const _0x3d6d45=_0x1e1eef[_0x401c0c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xe20276);_0x331c1d=(_0x331c1d<<0x5)+_0x331c1d+_0x3d6d45,_0x331c1d&=_0x331c1d;}}function _0x1d900a(_0x3eb503){Array[_0x401c0c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3eb503)?_0x3eb503[_0x401c0c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1d900a):_0x3eb503&&typeof _0x3eb503==_0x401c0c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x401c0c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3eb503)[_0x401c0c([0x73,0x6f,0x72,0x74])]()[_0x401c0c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x336c77,_0x1be3b3])=>{_0x2da37f(_0x336c77),_0x1d900a(_0x1be3b3);}):_0x2da37f(window[_0x401c0c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3eb503));}return _0x1d900a(_0x59695a),_0x331c1d>>>0x0;}function _0xf0b4b6(_0x58bd77){return _0x58bd77[_0x401c0c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x401c0c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x401c0c([0x30]));}function _0x45424c(_0x1ec635){return _0x1ec635[_0x401c0c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x401c0c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x401c0c([0x6a,0x6f,0x69,0x6e])]('');}function _0xa828cd(){}function _0x401c0c(_0x141f11){return _0x141f11['map'](_0x1b08c6=>String['fromCharCode'](_0x1b08c6))['join']('');}_0x334552(await _0x389d0c());}(this);}['_validateConfig'](){const _0xe61df1=this['editor'];if(!_0xe61df1['config']['get']('lineHeight.supportAllValues'))return;const _0x1d981a=_0xe61df1['config']['get']('lineHeight.options')['filter'](_0x3db05f=>'string'==typeof _0x3db05f&&(!H(_0x3db05f)&&isNaN(Number(_0x3db05f))));if(_0x1d981a['length'])throw new _0x56d602('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x1d981a});}['_prepareAnyValueConverters'](){const _0x4708cf=this['editor'],_0x43a6b0=this['editor']['config']['get']('lineHeight.defaultValue');_0x4708cf['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x2b89de=>String(_0x2b89de)===String(_0x43a6b0)?null:{'key':'style','value':{'line-height':_0x2b89de}}}),_0x4708cf['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x1b5198=>{let _0x30435a=_0x1b5198['getStyle']('line-height');return _0x2a8884(_0x30435a)&&(_0x30435a=String(Number(_0x30435a['slice'](0x0,-0x1))/0x64)),String(_0x30435a)===String(_0x43a6b0)?null:_0x30435a;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x2e8cca=this['editor'],_0x48442e=this['editor']['config']['get']('lineHeight.defaultValue'),_0x36f898=function(_0x5d750a,_0x175daf){const _0x7d7538={'model':{'key':_0x5d750a,'values':[]},'view':{}};for(const _0x339c6b of _0x175daf)'class'===_0x339c6b['view']?.['key']?(_0x7d7538['model']['values']['push'](_0x339c6b['model']),_0x7d7538['view'][_0x339c6b['model']]={'key':'class','value':_0x339c6b['view']['value']}):(_0x7d7538['model']['values']['push'](_0x339c6b['model']),_0x7d7538['view'][_0x339c6b['model']]={'key':'style','value':'line-height:'+_0x339c6b['model']+';'});return _0x7d7538;}('lineHeight',L(this['editor']['config']['get']('lineHeight'))['filter'](_0x2e41cc=>_0x2e41cc['model']));_0x2e8cca['conversion']['attributeToAttribute'](_0x36f898),_0x2e8cca['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0xc360d3=>{let _0x1ae3d2=_0xc360d3['getStyle']('line-height');return _0x2a8884(_0x1ae3d2)&&(_0x1ae3d2=String(Number(_0x1ae3d2['slice'](0x0,-0x1))/0x64)),_0x1ae3d2===String(_0x48442e)?null:_0x36f898['model']['values']['includes'](_0x1ae3d2)?_0x1ae3d2:null;}}});}}class k extends _0x124202{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4cd828={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x4cd828),this['_registerMenuBarComponent'](_0x4cd828),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4da3a1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x12ec10;for(const _0x5451f8 in _0x4da3a1){const _0x2c5b74=_0x5451f8,_0x37ae71=_0x4da3a1[_0x2c5b74];if('lineHeightLicenseKeyValid'==_0x37ae71||'lineHeightLicenseKeyInvalid'==_0x37ae71||'lineHeightLicenseKeyExpired'==_0x37ae71||'lineHeightLicenseKeyDomainLimit'==_0x37ae71||'lineHeightLicenseKeyNotAllowed'==_0x37ae71||'lineHeightLicenseKeyEvaluationLimit'==_0x37ae71||'lineHeightLicenseKeyUsageLimit'==_0x37ae71){delete _0x4da3a1[_0x2c5b74],_0x12ec10=_0x37ae71,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x12ec10&&_0x4da3a1['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x12ec10&&_0x4da3a1['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x12ec10&&_0x4da3a1['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x12ec10&&_0x4da3a1['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x12ec10&&_0x4da3a1['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x12ec10&&_0x4da3a1['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x5b69f7=this['editor'],t=_0x5b69f7['t'],_0x38d2d4=_0x5b69f7['config']['get']('lineHeight'),_0xc73155={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return L(_0x38d2d4)['map'](_0x46d26e=>{const _0x3fa4dc=_0xc73155[_0x46d26e['title']];return _0x3fa4dc&&_0x3fa4dc!=_0x46d26e['title']&&(_0x46d26e=Object['assign']({},_0x46d26e,{'title':_0x3fa4dc})),_0x46d26e;});}['_prepareListOptions'](){const _0x1cc1e1=this['editor']['commands']['get']('lineHeight'),_0x5133cf=this['editor']['config']['get']('lineHeight.defaultValue'),_0x33963c=this['_getLocalizedLineHeightOptions'](),_0x2ddd29=new _0x4ef8e0(),_0x1fa986=_0x220e92=>'default'===_0x220e92||String(_0x5133cf)===_0x220e92;for(const _0x3cf2cb of _0x33963c){const _0x2cff71={'type':'button','model':new _0x932f3f({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x3cf2cb['title'],'withText':!0x0})};_0x1fa986(_0x3cf2cb['model'])?(_0x2cff71['model']['bind']('isOn')['to'](_0x1cc1e1,'value',_0x5e815d=>!_0x5e815d),_0x2cff71['model']['commandParam']=void 0x0):(_0x2cff71['model']['bind']('isOn')['to'](_0x1cc1e1,'value',_0x556841=>_0x556841===_0x3cf2cb['model']),_0x2cff71['model']['commandParam']=_0x3cf2cb['model']),_0x2ddd29['add'](_0x2cff71);}if(this['_shouldRenderCustomValueOption']()){const _0x20d5d0=this['_getCustomValueOptionDefinition'](_0x33963c);_0x2ddd29['add'](_0x20d5d0);}return _0x2ddd29;}['_getCustomValueOptionDefinition'](_0x311e2f){const _0x21028b=this['editor'],t=_0x21028b['t'],_0x10d802=_0x21028b['commands']['get']('lineHeight'),_0x537d23=_0x311e2f['map'](_0x3840ec=>_0x3840ec['model']),_0x33ffd5={'type':'button','model':new _0x932f3f({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x33ffd5['model']['bind']('commandParam')['to'](_0x10d802,'value'),_0x33ffd5['model']['bind']('isOn')['to'](_0x10d802,'value',_0x46ce1d=>!!_0x46ce1d&&!_0x537d23['includes'](String(_0x46ce1d))),_0x33ffd5['model']['bind']('label')['to'](_0x10d802,'value',_0x4fbfac=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x4fbfac))),_0x33ffd5;}['_registerToolbarComponent']({accessibleLabel:_0x4672da,options:_0x4ccf8b}){const _0x26077a=this['editor'],_0x58df61=_0x26077a['commands']['get']('lineHeight');_0x26077a['ui']['componentFactory']['add']('lineHeight',_0x377db6=>{const _0x2e67c2=_0x381647(_0x377db6);return _0x3e9022(_0x2e67c2,_0x4ccf8b,{'role':'menu','ariaLabel':_0x4672da}),_0x2e67c2['buttonView']['set']({'label':_0x4672da,'tooltip':!0x0,'icon':_0x3a5634}),_0x2e67c2['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x2e67c2['bind']('isEnabled')['to'](_0x58df61),this['listenTo'](_0x2e67c2,'execute',_0x1d4f88=>{_0x26077a['execute'](_0x1d4f88['source']['commandName'],{'value':_0x1d4f88['source']['commandParam']}),_0x26077a['editing']['view']['focus']();}),_0x2e67c2['once']('change:isOpen',()=>{const _0x633375=_0x2e67c2['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x2e67c2,_0x4ccf8b,_0x633375);}),_0x2e67c2;});}['_registerMenuBarComponent']({accessibleLabel:_0x2495cb,options:_0x122427}){const _0x481bf7=this['editor'],_0x1148aa=_0x481bf7['commands']['get']('lineHeight');_0x481bf7['ui']['componentFactory']['add']('menuBar:lineHeight',_0xb1378=>{const _0x4c66ad=new _0x5de5e4(_0xb1378);_0x4c66ad['buttonView']['set']({'label':_0x2495cb,'icon':_0x3a5634}),_0x4c66ad['bind']('isEnabled')['to'](_0x1148aa);const _0x43e3cf=new _0x1b7257(_0xb1378);for(const _0x19526b of _0x122427){const _0x5e6368=new _0x2d32b5(_0xb1378,_0x4c66ad),_0x3f6abb=new _0x1a0fb3(_0xb1378);_0x3f6abb['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x3f6abb['bind'](...Object['keys'](_0x19526b['model']))['to'](_0x19526b['model']),_0x3f6abb['delegate']('execute')['to'](_0x4c66ad),_0x3f6abb['on']('execute',()=>{_0x481bf7['execute'](_0x19526b['model']['commandName'],{'value':_0x19526b['model']['commandParam']}),_0x481bf7['editing']['view']['focus']();}),_0x5e6368['children']['add'](_0x3f6abb),_0x43e3cf['items']['add'](_0x5e6368);}return _0x4c66ad['panelView']['children']['add'](_0x43e3cf),this['_attachCustomOptionVisibilityHandler'](_0x4c66ad,_0x122427,_0x43e3cf),_0x4c66ad;});}['_attachCustomOptionVisibilityHandler'](_0x351d2a,_0x23a7c9,_0x283e48){if(!this['_shouldRenderCustomValueOption']())return;const _0x5d6436=()=>{if(!_0x351d2a['isOpen'])return;_0x283e48['items']['last']['isVisible']=Boolean(_0x23a7c9['last']['model']['isOn']);};_0x5d6436(),_0x351d2a['on']('change:isOpen',()=>{_0x5d6436();});}}class _ extends _0x124202{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 _0x829186,Plugin as _0x5ac17f}from'@ckeditor/ckeditor5-core/dist/index.js';import{first as _0xdd0d90,CKEditorError as _0x47f679,uid as _0x4f551e,Collection as _0x4d56c5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{Matcher as _0xb06b35,isPercentageStyleValue as _0x44e12a}from'@ckeditor/ckeditor5-engine/dist/index.js';import{UIModel as _0x20a8f8,createDropdown as _0x78184b,addListToDropdown as _0x9fa36a,MenuBarMenuView as _0x16409e,MenuBarMenuListView as _0x52f883,MenuBarMenuListItemView as _0x1764e7,MenuBarMenuListItemButtonView as _0x30e9e5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconLineHeight as _0x180648}from'@ckeditor/ckeditor5-icons/dist/index.js';class p extends _0x829186{['refresh'](){const _0x2578f4=this['editor']['model']['document'],_0x907936=_0xdd0d90(_0x2578f4['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x907936)&&this['_canHaveLineHeight'](_0x907936),this['value']=this['isEnabled']&&_0x907936['getAttribute']('lineHeight');}['execute'](_0x65c401={}){const _0x25b8fd=this['editor']['model'],_0x28ebc5=_0x25b8fd['document']['selection'],_0x375328=_0x65c401['value'];_0x25b8fd['change'](_0x491965=>{const _0x16752b=Array['from'](_0x28ebc5['getSelectedBlocks']())['filter'](_0x188990=>this['_canHaveLineHeight'](_0x188990));for(const _0x3e4258 of _0x16752b)_0x375328?_0x491965['setAttribute']('lineHeight',_0x375328,_0x3e4258):_0x491965['removeAttribute']('lineHeight',_0x3e4258);});}['_canHaveLineHeight'](_0x4b2592){return this['editor']['model']['schema']['checkAttribute'](_0x4b2592,'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(_0x4b6436){return'string'==typeof _0x4b6436&&'default'===_0x4b6436['toLowerCase']();}function L(_0x337921){return _0x337921['options']['map'](_0x489f5b=>{return H(_0x489f5b)?{'title':String(_0x337921['defaultValue']),'model':'default'}:('number'==typeof _0x489f5b&&(_0x489f5b=String(_0x489f5b)),'string'!=typeof _0x489f5b?_0x489f5b:parseFloat(_0x489f5b)?{'title':_0x489f5b,'model':_0x489f5b,'view':{'name':'span','styles':{'line-height':_0x489f5b}}}:'string'==typeof(_0x4aaf8e=_0x489f5b)?y[_0x4aaf8e]:y[_0x4aaf8e['model']]);var _0x4aaf8e;})['filter'](_0x5342dd=>void 0x0!==_0x5342dd);}class v extends _0x5ac17f{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x5e3523,conversion:_0x2528fd}=this['editor'];if(!_0x5e3523['has']('ListEditing')||!_0x5e3523['has']('TodoListEditing'))return;_0x5e3523['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x53800e,_0x414ae2,_0x16e57b,_0x324447,_0x584962){'todo'==_0x584962['getAttribute']('listType')&&_0x414ae2&&(_0x53800e['addClass']('ck-list-marker-line-height',_0x16e57b),_0x53800e['setStyle']('--ck-content-list-marker-line-height',_0x414ae2,_0x16e57b));}}),_0x2528fd['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x2528fd['for']('upcast')['add'](_0x255ff8=>{_0x255ff8['on']('element:li',function(_0x12da70){const _0x2a43d6=new _0xb06b35(_0x12da70);return(_0x36285b,_0x1b61cb,_0x1ffbe4)=>{const _0x1e6bc1=_0x2a43d6['match'](_0x1b61cb['viewItem']);if(!_0x1e6bc1)return;const _0x267bd5=_0x1e6bc1['match'];_0x267bd5['name']=!0x1,_0x1ffbe4['consumable']['consume'](_0x1b61cb['viewItem'],_0x267bd5);};}({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));});}}class b extends _0x5ac17f{static get['pluginName'](){return'LineHeightEditing';}static get['requires'](){return[v];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x12c089){super(_0x12c089),_0x12c089['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x4c1268=this['editor'];this['_validateConfig'](),_0x4c1268['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x4c1268['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x4c1268['commands']['add']('lineHeight',new p(_0x4c1268)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){!async function(_0x3a3603){const _0x59962f=_0x341235([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]),_0x167132=0x45ddd215,_0x23e13f=0x45daad3d^_0x167132,_0x25d498=window[_0x341235([0x44,0x61,0x74,0x65])][_0x341235([0x6e,0x6f,0x77])](),_0x2a85e1=_0x3a3603[_0x341235([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xa0f163=new window[(_0x341235([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x523798=>{_0x2a85e1[_0x341235([0x6f,0x6e,0x63,0x65])](_0x341235([0x72,0x65,0x61,0x64,0x79]),_0x523798);}),_0x10a0fa={[_0x341235([0x6b,0x74,0x79])]:_0x341235([0x45,0x43]),[_0x341235([0x75,0x73,0x65])]:_0x341235([0x73,0x69,0x67]),[_0x341235([0x63,0x72,0x76])]:_0x341235([0x50,0x2d,0x32,0x35,0x36]),[_0x341235([0x78])]:_0x341235([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]),[_0x341235([0x79])]:_0x341235([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]),[_0x341235([0x61,0x6c,0x67])]:_0x341235([0x45,0x53,0x32,0x35,0x36])},_0x4857f1=_0x2a85e1[_0x341235([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x341235([0x67,0x65,0x74])](_0x341235([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x125d84(){let _0x1803bf,_0x22c173=null,_0x4259a9=null;try{if(_0x4857f1==_0x341235([0x47,0x50,0x4c]))return _0x341235([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1803bf=_0x434929(),!_0x1803bf)return _0x341235([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1803bf[_0x341235([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4259a9=_0x4e4379(_0x1803bf[_0x341235([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1803bf[_0x341235([0x6a,0x74,0x69])])),await _0x369e78()?_0x67c1d1()?_0x10b518()?_0x341235([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1f80be()?(_0x1803bf[_0x341235([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x341235([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x22c173=_0x5a027e(_0x341235([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x47d26a()):_0x341235([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x341235([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x341235([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x341235([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x10b518(){const _0x5443cd=[_0x341235([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x341235([0x74,0x72,0x69,0x61,0x6c])][_0x341235([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1803bf[_0x341235([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x25d498/0x3e8:0xe10*_0x23e13f;return _0x1803bf[_0x341235([0x65,0x78,0x70])]<_0x5443cd;}function _0x67c1d1(){const _0x538170=_0x1803bf[_0x341235([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x538170&&(!!_0x538170[_0x341235([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x341235([0x2a]))||!!_0x538170[_0x341235([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x341235([0x4c,0x48])));}function _0x1f80be(){const _0x5ed94b=_0x1803bf[_0x341235([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5ed94b||0x0==_0x5ed94b[_0x341235([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x368cf7}=new URL(window[_0x341235([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5ed94b[_0x341235([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x368cf7))return!0x0;const _0x23df6e=_0x368cf7[_0x341235([0x73,0x70,0x6c,0x69,0x74])](_0x341235([0x2e]));return _0x5ed94b[_0x341235([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x28aefa=>_0x28aefa[_0x341235([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x341235([0x2a])))[_0x341235([0x6d,0x61,0x70])](_0x3375ce=>_0x3375ce[_0x341235([0x73,0x70,0x6c,0x69,0x74])](_0x341235([0x2e])))[_0x341235([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb461f5=>_0xb461f5[_0x341235([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x23df6e[_0x341235([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x341235([0x6d,0x61,0x70])](_0x143d19=>Array(_0x23df6e[_0x341235([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x143d19[_0x341235([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x341235([0x66,0x69,0x6c,0x6c])](_0x143d19[0x0]===_0x341235([0x2a])?_0x341235([0x2a]):'')[_0x341235([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x143d19))[_0x341235([0x73,0x6f,0x6d,0x65])](_0x19c5e1=>_0x23df6e[_0x341235([0x65,0x76,0x65,0x72,0x79])]((_0x2e552a,_0x10b890)=>_0x19c5e1[_0x10b890]===_0x2e552a||_0x19c5e1[_0x10b890]===_0x341235([0x2a])));}function _0x47d26a(){return _0x22c173&&_0x4259a9?new window[(_0x341235([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26eb6d,_0x55aac9)=>{_0x22c173[_0x341235([0x74,0x68,0x65,0x6e])](_0x26eb6d,_0x55aac9),_0x4259a9[_0x341235([0x74,0x68,0x65,0x6e])](_0x241b74=>{_0x241b74!=_0x341235([0x56,0x61,0x6c,0x69,0x64])&&_0x26eb6d(_0x241b74);},_0x55aac9);}):_0x22c173||_0x4259a9||_0x341235([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4e4379(_0xb96df4,_0xd02546){return new window[(_0x341235([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4295cb=>{if(_0x5645f3())return _0x4295cb(_0x341235([0x56,0x61,0x6c,0x69,0x64]));_0x138b9b(),_0x2a85e1[_0x341235([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x341235([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3a234a=!0x1;const _0x1d0f55=_0x4f551e();function _0xea8f0b(_0x58d60d){return!!_0x58d60d&&(typeof _0x58d60d===_0x341235([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x58d60d===_0x341235([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x58d60d[_0x341235([0x74,0x68,0x65,0x6e])]===_0x341235([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x58d60d[_0x341235([0x63,0x61,0x74,0x63,0x68])]===_0x341235([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2ec087(_0x41a440){_0x3e2617(_0x41a440)[_0x341235([0x74,0x68,0x65,0x6e])](_0x453eeb=>{if(!_0x453eeb||_0x453eeb[_0x341235([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x341235([0x6f,0x6b]))return _0x341235([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x535676(_0x85e044(_0x1d0f55+_0xd02546))!=_0x453eeb[_0x341235([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x341235([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x341235([0x56,0x61,0x6c,0x69,0x64]);})[_0x341235([0x74,0x68,0x65,0x6e])](_0x1e3764=>(_0x44ac9b(),_0x1e3764),()=>{const _0x49cd67=_0x297fde();return null==_0x49cd67?(_0x44ac9b(),_0x341235([0x56,0x61,0x6c,0x69,0x64])):_0x341235(_0x25d498-_0x49cd67>(0x61d15615^_0x167132)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x341235([0x74,0x68,0x65,0x6e])](_0x4295cb)[_0x341235([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4295cb(_0x341235([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xcc1ec5=0x45eb3c95^_0x167132;function _0x44ac9b(){const _0x29bdad=_0x341235([0x6c,0x6c,0x63,0x74,0x2d])+_0x535676(_0x85e044(_0xb96df4)),_0x465676=_0x39df3b(_0x535676(window[_0x341235([0x4d,0x61,0x74,0x68])][_0x341235([0x63,0x65,0x69,0x6c])](_0x25d498/_0xcc1ec5)));window[_0x341235([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x341235([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29bdad,_0x465676);}function _0x297fde(){const _0x2288bc=_0x341235([0x6c,0x6c,0x63,0x74,0x2d])+_0x535676(_0x85e044(_0xb96df4)),_0x4eed8f=window[_0x341235([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x341235([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2288bc);return _0x4eed8f?window[_0x341235([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39df3b(_0x4eed8f),0x10)*_0xcc1ec5:null;}function _0x3e2617(_0x4780ad){return new window[(_0x341235([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5cb181,_0x2cc87e)=>{_0x4780ad[_0x341235([0x74,0x68,0x65,0x6e])](_0x5cb181,_0x2cc87e),window[_0x341235([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2cc87e,0x45dc06d5^_0x167132);});}}_0x2a85e1[_0x341235([0x6f,0x6e])](_0x341235([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5489bb,_0x53d4c1)=>{if(_0x53d4c1[0x0]!=_0xb96df4)return _0x4295cb(_0x341235([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x53d4c1[0x1]={..._0x53d4c1[0x1],[_0x341235([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1d0f55};},{[_0x341235([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x341235([0x68,0x69,0x67,0x68])}),_0x2a85e1[_0x341235([0x6f,0x6e])](_0x341235([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x49291c=>{_0xea8f0b(_0x49291c[_0x341235([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3a234a=!0x0,_0x2ec087(_0x49291c[_0x341235([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x341235([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x341235([0x6c,0x6f,0x77])}),_0xa0f163[_0x341235([0x74,0x68,0x65,0x6e])](()=>{_0x3a234a||_0x4295cb(_0x341235([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5645f3(){return _0x2a85e1[_0x341235([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x341235([0x76,0x69,0x65,0x77])][_0x341235([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x341235([0x61,0x75,0x74,0x6f]);}function _0x138b9b(){_0x2a85e1[_0x341235([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x341235([0x76,0x69,0x65,0x77])][_0x341235([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x341235([0x61,0x75,0x74,0x6f]);}}function _0x5a027e(_0x1ac777){const _0x3fd4a8=[new window[(_0x341235([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35d5af=>setTimeout(_0x35d5af,0x45d4ecd9^_0x167132)),_0xa0f163[_0x341235([0x74,0x68,0x65,0x6e])](()=>new window[(_0x341235([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x162f0a=>{let _0x422799=0x0;_0x2a85e1[_0x341235([0x6d,0x6f,0x64,0x65,0x6c])][_0x341235([0x6f,0x6e])](_0x341235([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x47f2b0,_0x144dfc)=>{_0x144dfc[0x0][_0x341235([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x422799++,_0x422799==(0x45ddd7fd^_0x167132)&&(_0x162f0a(),_0x47f2b0[_0x341235([0x6f,0x66,0x66])]());});}))];return window[_0x341235([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x341235([0x72,0x61,0x63,0x65])](_0x3fd4a8)[_0x341235([0x74,0x68,0x65,0x6e])](()=>_0x1ac777);}async function _0x200bab(){await _0xa0f163,_0x2a85e1[_0x341235([0x6d,0x6f,0x64,0x65,0x6c])][_0x341235([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x26793d,_0x2a85e1[_0x341235([0x6d,0x6f,0x64,0x65,0x6c])][_0x341235([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x26793d,_0x2a85e1[_0x341235([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x341235([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4a184d(_0x2b05e8){const _0x1d47ce=_0x9bcf5a();_0x2a85e1[_0x1d47ce]=_0x341235([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2b05e8,_0x2b05e8!=_0x341235([0x56,0x61,0x6c,0x69,0x64])&&_0x200bab();}function _0x9bcf5a(){const _0x3f8915=window[_0x341235([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x341235([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x341235([0x6e,0x6f,0x77])]())[_0x341235([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x341235([0x2e]),'');let _0xd75007=_0x341235([0x50]);for(let _0x556c9a=0x0;_0x556c9a<_0x3f8915[_0x341235([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x556c9a+=0x2){let _0x3b6139=window[_0x341235([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f8915[_0x341235([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x556c9a,_0x556c9a+0x2));_0x3b6139>=_0x59962f[_0x341235([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3b6139-=_0x59962f[_0x341235([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xd75007+=_0x59962f[_0x3b6139];}return _0xd75007;}function _0x434929(){const _0x43645a=_0x4857f1[_0x341235([0x73,0x70,0x6c,0x69,0x74])](_0x341235([0x2e]));if(0x3!=_0x43645a[_0x341235([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2cf580(_0x43645a[0x1]);function _0x2cf580(_0x30c424){const _0x19b9b4=_0x400c4e(_0x30c424);return _0x19b9b4&&_0x21f0d0()?_0x19b9b4:null;function _0x21f0d0(){const _0x1919a0=_0x19b9b4[_0x341235([0x6a,0x74,0x69])],_0x4e896e=window[_0x341235([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1919a0[_0x341235([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1919a0[_0x341235([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1cb908={..._0x19b9b4,[_0x341235([0x6a,0x74,0x69])]:_0x1919a0[_0x341235([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1919a0[_0x341235([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1cb908[_0x341235([0x76,0x63])],_0x85e044(_0x1cb908)==_0x4e896e;}}}async function _0x369e78(){let _0x469072=!0x0;try{const _0x5f4724=_0x4857f1[_0x341235([0x73,0x70,0x6c,0x69,0x74])](_0x341235([0x2e])),[_0x13c937,_0x2348f6,_0x4bc557]=_0x5f4724;return _0x8694e0(_0x13c937),await _0x3efb28(_0x13c937,_0x2348f6,_0x4bc557),_0x469072;}catch{return!0x1;}function _0x8694e0(_0x3c3d9a){const _0xd0226c=_0x400c4e(_0x3c3d9a);_0xd0226c&&_0xd0226c[_0x341235([0x61,0x6c,0x67])]==_0x341235([0x45,0x53,0x32,0x35,0x36])||(_0x469072=!0x1);}async function _0x3efb28(_0xf71f68,_0x393c95,_0x247c9e){const _0x1abf55=window[_0x341235([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x341235([0x66,0x72,0x6f,0x6d])](_0x3adda5(_0x247c9e),_0x198a94=>_0x198a94[_0x341235([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x447d10=new window[(_0x341235([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x341235([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xf71f68+_0x341235([0x2e])+_0x393c95),_0x2d6c12=window[_0x341235([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x341235([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2d6c12)return;const _0x327254=await _0x2d6c12[_0x341235([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x341235([0x6a,0x77,0x6b]),_0x10a0fa,{[_0x341235([0x6e,0x61,0x6d,0x65])]:_0x341235([0x45,0x43,0x44,0x53,0x41]),[_0x341235([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x341235([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x341235([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2d6c12[_0x341235([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x341235([0x6e,0x61,0x6d,0x65])]:_0x341235([0x45,0x43,0x44,0x53,0x41]),[_0x341235([0x68,0x61,0x73,0x68])]:{[_0x341235([0x6e,0x61,0x6d,0x65])]:_0x341235([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x327254,_0x1abf55,_0x447d10)||(_0x469072=!0x1);}}function _0x400c4e(_0xbca264){return _0xbca264[_0x341235([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x341235([0x65,0x79]))?JSON[_0x341235([0x70,0x61,0x72,0x73,0x65])](_0x3adda5(_0xbca264)):null;}function _0x3adda5(_0x539f76){return window[_0x341235([0x61,0x74,0x6f,0x62])](_0x539f76[_0x341235([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x341235([0x2b]))[_0x341235([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x341235([0x2f])));}function _0x85e044(_0x20d0b3){let _0x532d7d=0x1505;function _0x3e1753(_0x586ffb){for(let _0x175b24=0x0;_0x175b24<_0x586ffb[_0x341235([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x175b24++){const _0x4a50a3=_0x586ffb[_0x341235([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x175b24);_0x532d7d=(_0x532d7d<<0x5)+_0x532d7d+_0x4a50a3,_0x532d7d&=_0x532d7d;}}function _0x3d6723(_0x323c97){Array[_0x341235([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x323c97)?_0x323c97[_0x341235([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3d6723):_0x323c97&&typeof _0x323c97==_0x341235([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x341235([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x323c97)[_0x341235([0x73,0x6f,0x72,0x74])]()[_0x341235([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x553e70,_0x932b32])=>{_0x3e1753(_0x553e70),_0x3d6723(_0x932b32);}):_0x3e1753(window[_0x341235([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x323c97));}return _0x3d6723(_0x20d0b3),_0x532d7d>>>0x0;}function _0x535676(_0x335e72){return _0x335e72[_0x341235([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x341235([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x341235([0x30]));}function _0x39df3b(_0x422247){return _0x422247[_0x341235([0x73,0x70,0x6c,0x69,0x74])]('')[_0x341235([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x341235([0x6a,0x6f,0x69,0x6e])]('');}function _0x26793d(){}function _0x341235(_0x2051c7){return _0x2051c7['map'](_0x2eb036=>String['fromCharCode'](_0x2eb036))['join']('');}_0x4a184d(await _0x125d84());}(this);}['_validateConfig'](){const _0x4c963c=this['editor'];if(!_0x4c963c['config']['get']('lineHeight.supportAllValues'))return;const _0x190415=_0x4c963c['config']['get']('lineHeight.options')['filter'](_0x4df6f2=>'string'==typeof _0x4df6f2&&(!H(_0x4df6f2)&&isNaN(Number(_0x4df6f2))));if(_0x190415['length'])throw new _0x47f679('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x190415});}['_prepareAnyValueConverters'](){const _0x1b91fc=this['editor'],_0x503cdc=this['editor']['config']['get']('lineHeight.defaultValue');_0x1b91fc['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x29ff14=>String(_0x29ff14)===String(_0x503cdc)?null:{'key':'style','value':{'line-height':_0x29ff14}}}),_0x1b91fc['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0xba30ae=>{let _0x3bd9e9=_0xba30ae['getStyle']('line-height');return _0x44e12a(_0x3bd9e9)&&(_0x3bd9e9=String(Number(_0x3bd9e9['slice'](0x0,-0x1))/0x64)),String(_0x3bd9e9)===String(_0x503cdc)?null:_0x3bd9e9;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x16bc71=this['editor'],_0x4d3557=this['editor']['config']['get']('lineHeight.defaultValue'),_0x19184f=function(_0x5cd9ad,_0x37a10b){const _0x49e00b={'model':{'key':_0x5cd9ad,'values':[]},'view':{}};for(const _0x5d7e5d of _0x37a10b)'class'===_0x5d7e5d['view']?.['key']?(_0x49e00b['model']['values']['push'](_0x5d7e5d['model']),_0x49e00b['view'][_0x5d7e5d['model']]={'key':'class','value':_0x5d7e5d['view']['value']}):(_0x49e00b['model']['values']['push'](_0x5d7e5d['model']),_0x49e00b['view'][_0x5d7e5d['model']]={'key':'style','value':'line-height:'+_0x5d7e5d['model']+';'});return _0x49e00b;}('lineHeight',L(this['editor']['config']['get']('lineHeight'))['filter'](_0x17b05d=>_0x17b05d['model']));_0x16bc71['conversion']['attributeToAttribute'](_0x19184f),_0x16bc71['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x1931b5=>{let _0x1a96ad=_0x1931b5['getStyle']('line-height');return _0x44e12a(_0x1a96ad)&&(_0x1a96ad=String(Number(_0x1a96ad['slice'](0x0,-0x1))/0x64)),_0x1a96ad===String(_0x4d3557)?null:_0x19184f['model']['values']['includes'](_0x1a96ad)?_0x1a96ad:null;}}});}}class k extends _0x5ac17f{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x176849={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x176849),this['_registerMenuBarComponent'](_0x176849),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x11b581=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x47faa7;for(const _0xf7f2a7 in _0x11b581){const _0xc6e48=_0xf7f2a7,_0x3d967f=_0x11b581[_0xc6e48];if('lineHeightLicenseKeyValid'==_0x3d967f||'lineHeightLicenseKeyInvalid'==_0x3d967f||'lineHeightLicenseKeyExpired'==_0x3d967f||'lineHeightLicenseKeyDomainLimit'==_0x3d967f||'lineHeightLicenseKeyNotAllowed'==_0x3d967f||'lineHeightLicenseKeyEvaluationLimit'==_0x3d967f||'lineHeightLicenseKeyUsageLimit'==_0x3d967f){delete _0x11b581[_0xc6e48],_0x47faa7=_0x3d967f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x47faa7&&_0x11b581['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x47faa7&&_0x11b581['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x47faa7&&_0x11b581['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x47faa7&&_0x11b581['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x47faa7&&_0x11b581['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x47faa7&&_0x11b581['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x49bbe7=this['editor'],t=_0x49bbe7['t'],_0x354278=_0x49bbe7['config']['get']('lineHeight'),_0x11a370={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return L(_0x354278)['map'](_0x9b0157=>{const _0x58c0ca=_0x11a370[_0x9b0157['title']];return _0x58c0ca&&_0x58c0ca!=_0x9b0157['title']&&(_0x9b0157=Object['assign']({},_0x9b0157,{'title':_0x58c0ca})),_0x9b0157;});}['_prepareListOptions'](){const _0x5b7a13=this['editor']['commands']['get']('lineHeight'),_0x3805d3=this['editor']['config']['get']('lineHeight.defaultValue'),_0x4a0008=this['_getLocalizedLineHeightOptions'](),_0x362700=new _0x4d56c5(),_0x4d875e=_0x5ae8f5=>'default'===_0x5ae8f5||String(_0x3805d3)===_0x5ae8f5;for(const _0x4c6b56 of _0x4a0008){const _0x20e96a={'type':'button','model':new _0x20a8f8({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x4c6b56['title'],'withText':!0x0})};_0x4d875e(_0x4c6b56['model'])?(_0x20e96a['model']['bind']('isOn')['to'](_0x5b7a13,'value',_0x1e1302=>!_0x1e1302),_0x20e96a['model']['commandParam']=void 0x0):(_0x20e96a['model']['bind']('isOn')['to'](_0x5b7a13,'value',_0x526c1b=>_0x526c1b===_0x4c6b56['model']),_0x20e96a['model']['commandParam']=_0x4c6b56['model']),_0x362700['add'](_0x20e96a);}if(this['_shouldRenderCustomValueOption']()){const _0x53d90f=this['_getCustomValueOptionDefinition'](_0x4a0008);_0x362700['add'](_0x53d90f);}return _0x362700;}['_getCustomValueOptionDefinition'](_0x56f70c){const _0x1ec4ac=this['editor'],t=_0x1ec4ac['t'],_0x470960=_0x1ec4ac['commands']['get']('lineHeight'),_0x3e81f8=_0x56f70c['map'](_0x44f243=>_0x44f243['model']),_0x38cb53={'type':'button','model':new _0x20a8f8({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x38cb53['model']['bind']('commandParam')['to'](_0x470960,'value'),_0x38cb53['model']['bind']('isOn')['to'](_0x470960,'value',_0x13057a=>!!_0x13057a&&!_0x3e81f8['includes'](String(_0x13057a))),_0x38cb53['model']['bind']('label')['to'](_0x470960,'value',_0x285f83=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x285f83))),_0x38cb53;}['_registerToolbarComponent']({accessibleLabel:_0x54dd55,options:_0x3fba0}){const _0x3277a3=this['editor'],_0x14083a=_0x3277a3['commands']['get']('lineHeight');_0x3277a3['ui']['componentFactory']['add']('lineHeight',_0x21a8c9=>{const _0x4fb3a5=_0x78184b(_0x21a8c9);return _0x9fa36a(_0x4fb3a5,_0x3fba0,{'role':'menu','ariaLabel':_0x54dd55}),_0x4fb3a5['buttonView']['set']({'label':_0x54dd55,'tooltip':!0x0,'icon':_0x180648}),_0x4fb3a5['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x4fb3a5['bind']('isEnabled')['to'](_0x14083a),this['listenTo'](_0x4fb3a5,'execute',_0x57b3cf=>{_0x3277a3['execute'](_0x57b3cf['source']['commandName'],{'value':_0x57b3cf['source']['commandParam']}),_0x3277a3['editing']['view']['focus']();}),_0x4fb3a5['once']('change:isOpen',()=>{const _0x752e7e=_0x4fb3a5['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x4fb3a5,_0x3fba0,_0x752e7e);}),_0x4fb3a5;});}['_registerMenuBarComponent']({accessibleLabel:_0x5f29a6,options:_0x40e94f}){const _0x45cc90=this['editor'],_0x115e36=_0x45cc90['commands']['get']('lineHeight');_0x45cc90['ui']['componentFactory']['add']('menuBar:lineHeight',_0x57f15e=>{const _0x3f659e=new _0x16409e(_0x57f15e);_0x3f659e['buttonView']['set']({'label':_0x5f29a6,'icon':_0x180648}),_0x3f659e['bind']('isEnabled')['to'](_0x115e36);const _0x3c8398=new _0x52f883(_0x57f15e);for(const _0x5267e6 of _0x40e94f){const _0x5259b0=new _0x1764e7(_0x57f15e,_0x3f659e),_0x30fa4c=new _0x30e9e5(_0x57f15e);_0x30fa4c['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x30fa4c['bind'](...Object['keys'](_0x5267e6['model']))['to'](_0x5267e6['model']),_0x30fa4c['delegate']('execute')['to'](_0x3f659e),_0x30fa4c['on']('execute',()=>{_0x45cc90['execute'](_0x5267e6['model']['commandName'],{'value':_0x5267e6['model']['commandParam']}),_0x45cc90['editing']['view']['focus']();}),_0x5259b0['children']['add'](_0x30fa4c),_0x3c8398['items']['add'](_0x5259b0);}return _0x3f659e['panelView']['children']['add'](_0x3c8398),this['_attachCustomOptionVisibilityHandler'](_0x3f659e,_0x40e94f,_0x3c8398),_0x3f659e;});}['_attachCustomOptionVisibilityHandler'](_0x3077d5,_0x9af4db,_0x189db9){if(!this['_shouldRenderCustomValueOption']())return;const _0xc5b6f8=()=>{if(!_0x3077d5['isOpen'])return;_0x189db9['items']['last']['isVisible']=Boolean(_0x9af4db['last']['model']['isOn']);};_0xc5b6f8(),_0x3077d5['on']('change:isOpen',()=>{_0xc5b6f8();});}}class _ extends _0x5ac17f{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": "0.0.0-nightly-next-
|
|
3
|
+
"version": "0.0.0-nightly-next-20260118.0",
|
|
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": "0.0.0-nightly-next-
|
|
29
|
-
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-next-
|
|
30
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-
|
|
31
|
-
"@ckeditor/ckeditor5-list": "0.0.0-nightly-next-
|
|
32
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-
|
|
33
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-
|
|
28
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20260118.0",
|
|
29
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-next-20260118.0",
|
|
30
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20260118.0",
|
|
31
|
+
"@ckeditor/ckeditor5-list": "0.0.0-nightly-next-20260118.0",
|
|
32
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20260118.0",
|
|
33
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20260118.0"
|
|
34
34
|
},
|
|
35
35
|
"files": [
|
|
36
36
|
"dist",
|