@ckeditor/ckeditor5-line-height 48.2.0-alpha.3 → 48.2.0-alpha.5
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 _0x32605b,Plugin as _0x284283}from'@ckeditor/ckeditor5-core/dist/index.js';import{first as _0x44fe0f,CKEditorError as _0x55620f,uid as _0x488764,Collection as _0x3bcf0f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{Matcher as _0x3f3170,isPercentageStyleValue as _0x4c6c47}from'@ckeditor/ckeditor5-engine/dist/index.js';import{UIModel as _0x45d7a7,createDropdown as _0x1dd603,addListToDropdown as _0x15992b,MenuBarMenuView as _0x47c680,MenuBarMenuListView as _0x2bb89a,MenuBarMenuListItemView as _0x121ad8,MenuBarMenuListItemButtonView as _0x18aac6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconLineHeight as _0x12dba7}from'@ckeditor/ckeditor5-icons/dist/index.js';class LineHeightCommand extends _0x32605b{['refresh'](){const _0x478e77=this['editor']['model']['document'],_0x35749a=_0x44fe0f(_0x478e77['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x35749a)&&this['_canHaveLineHeight'](_0x35749a),this['value']=this['isEnabled']&&_0x35749a['getAttribute']('lineHeight');}['execute'](_0x32c2cf={}){const _0x1fe962=this['editor']['model'],_0x578c56=_0x1fe962['document']['selection'],_0x45aeef=_0x32c2cf['value'];_0x1fe962['change'](_0x51bddb=>{const _0x36b313=Array['from'](_0x578c56['getSelectedBlocks']())['filter'](_0x22dc23=>this['_canHaveLineHeight'](_0x22dc23));for(const _0x3d6448 of _0x36b313)_0x45aeef?_0x51bddb['setAttribute']('lineHeight',_0x45aeef,_0x3d6448):_0x51bddb['removeAttribute']('lineHeight',_0x3d6448);});}['_canHaveLineHeight'](_0x313702){return this['editor']['model']['schema']['checkAttribute'](_0x313702,'lineHeight');}}const p={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(_0x45be6e){return'string'==typeof _0x45be6e&&'default'===_0x45be6e['toLowerCase']();}function L(_0x451e52){return _0x451e52['options']['map'](_0x4a7306=>{return H(_0x4a7306)?{'title':String(_0x451e52['defaultValue']),'model':'default'}:('number'==typeof _0x4a7306&&(_0x4a7306=String(_0x4a7306)),'string'!=typeof _0x4a7306?_0x4a7306:parseFloat(_0x4a7306)?{'title':_0x4a7306,'model':_0x4a7306,'view':{'name':'span','styles':{'line-height':_0x4a7306}}}:'string'==typeof(_0x5a15c0=_0x4a7306)?p[_0x5a15c0]:p[_0x5a15c0['model']]);var _0x5a15c0;})['filter'](_0x2e4287=>void 0x0!==_0x2e4287);}class LineHeightTodoListIntegration extends _0x284283{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x5665e7,conversion:_0x237c7e}=this['editor'];if(!_0x5665e7['has']('ListEditing')||!_0x5665e7['has']('TodoListEditing'))return;_0x5665e7['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x1ec268,_0x25431f,_0x3e3e22,_0x55582b,_0x541b95){'todo'==_0x541b95['getAttribute']('listType')&&_0x25431f&&(_0x1ec268['addClass']('ck-list-marker-line-height',_0x3e3e22),_0x1ec268['setStyle']('--ck-content-list-marker-line-height',_0x25431f,_0x3e3e22));}}),_0x237c7e['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x237c7e['for']('upcast')['add'](_0x3f9dcd=>{_0x3f9dcd['on']('element:li',function(_0x3d92aa){const _0x3cb606=new _0x3f3170(_0x3d92aa);return(_0x3b80ac,_0x2c5899,_0x1ae55b)=>{const _0x1523b6=_0x3cb606['match'](_0x2c5899['viewItem']);if(!_0x1523b6)return;const _0x4752c3=_0x1523b6['match'];_0x4752c3['name']=!0x1,_0x1ae55b['consumable']['consume'](_0x2c5899['viewItem'],_0x4752c3);};}({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));});}}class LineHeightEditing extends _0x284283{static get['pluginName'](){return'LineHeightEditing';}static get['requires'](){return[LineHeightTodoListIntegration];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c8fe4){super(_0x5c8fe4),_0x5c8fe4['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x29bd8c=this['editor'];this['_validateConfig'](),_0x29bd8c['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x29bd8c['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x29bd8c['commands']['add']('lineHeight',new LineHeightCommand(_0x29bd8c)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){!async function(_0x33c216){const _0x3a4788=_0x56e256([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]),_0x278846=0x45ddd215,_0x48646a=0x45da599d^_0x278846,_0x2cc8b3=window[_0x56e256([0x44,0x61,0x74,0x65])][_0x56e256([0x6e,0x6f,0x77])](),_0x1e6abc=_0x33c216[_0x56e256([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x18b805=new window[(_0x56e256([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x499439=>{_0x1e6abc[_0x56e256([0x6f,0x6e,0x63,0x65])](_0x56e256([0x72,0x65,0x61,0x64,0x79]),_0x499439);}),_0x25ace7={[_0x56e256([0x6b,0x74,0x79])]:_0x56e256([0x45,0x43]),[_0x56e256([0x75,0x73,0x65])]:_0x56e256([0x73,0x69,0x67]),[_0x56e256([0x63,0x72,0x76])]:_0x56e256([0x50,0x2d,0x32,0x35,0x36]),[_0x56e256([0x78])]:_0x56e256([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]),[_0x56e256([0x79])]:_0x56e256([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]),[_0x56e256([0x61,0x6c,0x67])]:_0x56e256([0x45,0x53,0x32,0x35,0x36])},_0x444577=_0x1e6abc[_0x56e256([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x56e256([0x67,0x65,0x74])](_0x56e256([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c15cc(){let _0x1bea0a,_0x7d8f53=null,_0x55bfd6=null;try{if(_0x444577==_0x56e256([0x47,0x50,0x4c]))return _0x56e256([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1bea0a=_0x7aa358(),!_0x1bea0a)return _0x56e256([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1bea0a[_0x56e256([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x55bfd6=_0x59f909(_0x1bea0a[_0x56e256([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1bea0a[_0x56e256([0x6a,0x74,0x69])])),await _0x92e797()?_0x2807ac()?_0x5d253a()?_0x56e256([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x12a4e1()?(_0x1bea0a[_0x56e256([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x56e256([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x7d8f53=_0x54b31f(_0x56e256([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2b6692()):_0x56e256([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x56e256([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x56e256([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x56e256([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5d253a(){const _0x42fc79=[_0x56e256([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x56e256([0x74,0x72,0x69,0x61,0x6c])][_0x56e256([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bea0a[_0x56e256([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2cc8b3/0x3e8:0xe10*_0x48646a;return _0x1bea0a[_0x56e256([0x65,0x78,0x70])]<_0x42fc79;}function _0x2807ac(){const _0x15a07c=_0x1bea0a[_0x56e256([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x15a07c&&(!!_0x15a07c[_0x56e256([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56e256([0x2a]))||!!_0x15a07c[_0x56e256([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56e256([0x4c,0x48])));}function _0x12a4e1(){const _0x1f0275=_0x1bea0a[_0x56e256([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1f0275||0x0==_0x1f0275[_0x56e256([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5dfb88}=new URL(window[_0x56e256([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1f0275[_0x56e256([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5dfb88))return!0x0;const _0x11a28d=_0x5dfb88[_0x56e256([0x73,0x70,0x6c,0x69,0x74])](_0x56e256([0x2e]));return _0x1f0275[_0x56e256([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a2d58=>_0x4a2d58[_0x56e256([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56e256([0x2a])))[_0x56e256([0x6d,0x61,0x70])](_0x1219ed=>_0x1219ed[_0x56e256([0x73,0x70,0x6c,0x69,0x74])](_0x56e256([0x2e])))[_0x56e256([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x146196=>_0x146196[_0x56e256([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x11a28d[_0x56e256([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x56e256([0x6d,0x61,0x70])](_0x54debe=>Array(_0x11a28d[_0x56e256([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x54debe[_0x56e256([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x56e256([0x66,0x69,0x6c,0x6c])](_0x54debe[0x0]===_0x56e256([0x2a])?_0x56e256([0x2a]):'')[_0x56e256([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x54debe))[_0x56e256([0x73,0x6f,0x6d,0x65])](_0x5226eb=>_0x11a28d[_0x56e256([0x65,0x76,0x65,0x72,0x79])]((_0xa9187e,_0x18697e)=>_0x5226eb[_0x18697e]===_0xa9187e||_0x5226eb[_0x18697e]===_0x56e256([0x2a])));}function _0x2b6692(){return _0x7d8f53&&_0x55bfd6?new window[(_0x56e256([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a9bbb,_0x5ef68e)=>{_0x7d8f53[_0x56e256([0x74,0x68,0x65,0x6e])](_0x4a9bbb,_0x5ef68e),_0x55bfd6[_0x56e256([0x74,0x68,0x65,0x6e])](_0x3cb544=>{_0x3cb544!=_0x56e256([0x56,0x61,0x6c,0x69,0x64])&&_0x4a9bbb(_0x3cb544);},_0x5ef68e);}):_0x7d8f53||_0x55bfd6||_0x56e256([0x56,0x61,0x6c,0x69,0x64]);}}function _0x59f909(_0x3737a8,_0x15e7ac){return new window[(_0x56e256([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ab68e=>{if(_0x46e779())return _0x5ab68e(_0x56e256([0x56,0x61,0x6c,0x69,0x64]));_0x58568b(),_0x1e6abc[_0x56e256([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x56e256([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x32857d=!0x1;const _0x560988=_0x488764();function _0x58e33(_0x5cdf52){return!!_0x5cdf52&&(typeof _0x5cdf52===_0x56e256([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5cdf52===_0x56e256([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5cdf52[_0x56e256([0x74,0x68,0x65,0x6e])]===_0x56e256([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5cdf52[_0x56e256([0x63,0x61,0x74,0x63,0x68])]===_0x56e256([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x590355(_0x31279b){_0x5a0248(_0x31279b)[_0x56e256([0x74,0x68,0x65,0x6e])](_0x313e37=>{if(!_0x313e37||_0x313e37[_0x56e256([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x56e256([0x6f,0x6b]))return _0x56e256([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x469f8d(_0x20cec0(_0x560988+_0x15e7ac))!=_0x313e37[_0x56e256([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x56e256([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x56e256([0x56,0x61,0x6c,0x69,0x64]);})[_0x56e256([0x74,0x68,0x65,0x6e])](_0x42e5c5=>(_0xb2add5(),_0x42e5c5),()=>{const _0x14b6f5=_0x2a2d79();return null==_0x14b6f5?(_0xb2add5(),_0x56e256([0x56,0x61,0x6c,0x69,0x64])):_0x56e256(_0x2cc8b3-_0x14b6f5>(0x61d15615^_0x278846)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x56e256([0x74,0x68,0x65,0x6e])](_0x5ab68e)[_0x56e256([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5ab68e(_0x56e256([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4332f8=0x45eb3c95^_0x278846;function _0xb2add5(){const _0x4ca952=_0x56e256([0x6c,0x6c,0x63,0x74,0x2d])+_0x469f8d(_0x20cec0(_0x3737a8)),_0x2b1d5c=_0x3cc62d(_0x469f8d(window[_0x56e256([0x4d,0x61,0x74,0x68])][_0x56e256([0x63,0x65,0x69,0x6c])](_0x2cc8b3/_0x4332f8)));window[_0x56e256([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x56e256([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ca952,_0x2b1d5c);}function _0x2a2d79(){const _0x11a499=_0x56e256([0x6c,0x6c,0x63,0x74,0x2d])+_0x469f8d(_0x20cec0(_0x3737a8)),_0xb0fac0=window[_0x56e256([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x56e256([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11a499);return _0xb0fac0?window[_0x56e256([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3cc62d(_0xb0fac0),0x10)*_0x4332f8:null;}function _0x5a0248(_0x289aa1){return new window[(_0x56e256([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x351d84,_0x3be0ba)=>{_0x289aa1[_0x56e256([0x74,0x68,0x65,0x6e])](_0x351d84,_0x3be0ba),window[_0x56e256([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3be0ba,0x45dc06d5^_0x278846);});}}_0x1e6abc[_0x56e256([0x6f,0x6e])](_0x56e256([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x201f6f,_0x3e0ee7)=>{if(_0x3e0ee7[0x0]!=_0x3737a8)return _0x5ab68e(_0x56e256([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3e0ee7[0x1]={..._0x3e0ee7[0x1],[_0x56e256([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x560988};},{[_0x56e256([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x56e256([0x68,0x69,0x67,0x68])}),_0x1e6abc[_0x56e256([0x6f,0x6e])](_0x56e256([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x9b5479=>{_0x58e33(_0x9b5479[_0x56e256([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x32857d=!0x0,_0x590355(_0x9b5479[_0x56e256([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x56e256([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x56e256([0x6c,0x6f,0x77])}),_0x18b805[_0x56e256([0x74,0x68,0x65,0x6e])](()=>{_0x32857d||_0x5ab68e(_0x56e256([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x46e779(){return _0x1e6abc[_0x56e256([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56e256([0x76,0x69,0x65,0x77])][_0x56e256([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x56e256([0x61,0x75,0x74,0x6f]);}function _0x58568b(){_0x1e6abc[_0x56e256([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56e256([0x76,0x69,0x65,0x77])][_0x56e256([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x56e256([0x61,0x75,0x74,0x6f]);}}function _0x54b31f(_0x3762c1){const _0x4bc0b8=[new window[(_0x56e256([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa278ae=>setTimeout(_0xa278ae,0x45d4ecd9^_0x278846)),_0x18b805[_0x56e256([0x74,0x68,0x65,0x6e])](()=>new window[(_0x56e256([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f223e=>{let _0x3e1fc3=0x0;_0x1e6abc[_0x56e256([0x6d,0x6f,0x64,0x65,0x6c])][_0x56e256([0x6f,0x6e])](_0x56e256([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x59933f,_0x35e8b4)=>{_0x35e8b4[0x0][_0x56e256([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3e1fc3++,_0x3e1fc3==(0x45ddd7fd^_0x278846)&&(_0x1f223e(),_0x59933f[_0x56e256([0x6f,0x66,0x66])]());});}))];return window[_0x56e256([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x56e256([0x72,0x61,0x63,0x65])](_0x4bc0b8)[_0x56e256([0x74,0x68,0x65,0x6e])](()=>_0x3762c1);}async function _0x529e69(){await _0x18b805,_0x1e6abc[_0x56e256([0x6d,0x6f,0x64,0x65,0x6c])][_0x56e256([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5b2047,_0x1e6abc[_0x56e256([0x6d,0x6f,0x64,0x65,0x6c])][_0x56e256([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5b2047,_0x1e6abc[_0x56e256([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x56e256([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x27c8be(_0x2896e4){const _0x56dc39=_0x4fdc9c();_0x1e6abc[_0x56dc39]=_0x56e256([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2896e4,_0x2896e4!=_0x56e256([0x56,0x61,0x6c,0x69,0x64])&&_0x529e69();}function _0x4fdc9c(){const _0x49200d=window[_0x56e256([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x56e256([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x56e256([0x6e,0x6f,0x77])]())[_0x56e256([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x56e256([0x2e]),'');let _0x5566d9=_0x56e256([0x50]);for(let _0x207ef8=0x0;_0x207ef8<_0x49200d[_0x56e256([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x207ef8+=0x2){let _0x9770c9=window[_0x56e256([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49200d[_0x56e256([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x207ef8,_0x207ef8+0x2));_0x9770c9>=_0x3a4788[_0x56e256([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x9770c9-=_0x3a4788[_0x56e256([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5566d9+=_0x3a4788[_0x9770c9];}return _0x5566d9;}function _0x7aa358(){const _0xeda8d2=_0x444577[_0x56e256([0x73,0x70,0x6c,0x69,0x74])](_0x56e256([0x2e]));if(0x3!=_0xeda8d2[_0x56e256([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x40350e(_0xeda8d2[0x1]);function _0x40350e(_0x366a7a){const _0x1a619f=_0x266a2b(_0x366a7a);return _0x1a619f&&_0xd7a72d()?_0x1a619f:null;function _0xd7a72d(){const _0x4da5d3=_0x1a619f[_0x56e256([0x6a,0x74,0x69])],_0x20859e=window[_0x56e256([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4da5d3[_0x56e256([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4da5d3[_0x56e256([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x468c34={..._0x1a619f,[_0x56e256([0x6a,0x74,0x69])]:_0x4da5d3[_0x56e256([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4da5d3[_0x56e256([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x468c34[_0x56e256([0x76,0x63])],_0x20cec0(_0x468c34)==_0x20859e;}}}async function _0x92e797(){let _0x1df9e0=!0x0;try{const _0x15ed47=_0x444577[_0x56e256([0x73,0x70,0x6c,0x69,0x74])](_0x56e256([0x2e])),[_0xfe7518,_0x5cd0bf,_0x2f6b6b]=_0x15ed47;return _0x475b15(_0xfe7518),await _0x1d942b(_0xfe7518,_0x5cd0bf,_0x2f6b6b),_0x1df9e0;}catch{return!0x1;}function _0x475b15(_0x13428b){const _0x571e6e=_0x266a2b(_0x13428b);_0x571e6e&&_0x571e6e[_0x56e256([0x61,0x6c,0x67])]==_0x56e256([0x45,0x53,0x32,0x35,0x36])||(_0x1df9e0=!0x1);}async function _0x1d942b(_0x1f0fe9,_0x4778da,_0x6fca8f){const _0x53caf8=window[_0x56e256([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x56e256([0x66,0x72,0x6f,0x6d])](_0x57f6fb(_0x6fca8f),_0x16f74d=>_0x16f74d[_0x56e256([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xa8fb15=new window[(_0x56e256([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x56e256([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1f0fe9+_0x56e256([0x2e])+_0x4778da),_0x35a197=window[_0x56e256([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x56e256([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x35a197)return;const _0x3be3c7=await _0x35a197[_0x56e256([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x56e256([0x6a,0x77,0x6b]),_0x25ace7,{[_0x56e256([0x6e,0x61,0x6d,0x65])]:_0x56e256([0x45,0x43,0x44,0x53,0x41]),[_0x56e256([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x56e256([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x56e256([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x35a197[_0x56e256([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x56e256([0x6e,0x61,0x6d,0x65])]:_0x56e256([0x45,0x43,0x44,0x53,0x41]),[_0x56e256([0x68,0x61,0x73,0x68])]:{[_0x56e256([0x6e,0x61,0x6d,0x65])]:_0x56e256([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3be3c7,_0x53caf8,_0xa8fb15)||(_0x1df9e0=!0x1);}}function _0x266a2b(_0x2e1ea0){return _0x2e1ea0[_0x56e256([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x56e256([0x65,0x79]))?JSON[_0x56e256([0x70,0x61,0x72,0x73,0x65])](_0x57f6fb(_0x2e1ea0)):null;}function _0x57f6fb(_0x4ae88e){return window[_0x56e256([0x61,0x74,0x6f,0x62])](_0x4ae88e[_0x56e256([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x56e256([0x2b]))[_0x56e256([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x56e256([0x2f])));}function _0x20cec0(_0x354f7c){let _0x48c487=0x1505;function _0x38c401(_0x6cd31f){for(let _0x130241=0x0;_0x130241<_0x6cd31f[_0x56e256([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x130241++){const _0x3b22bc=_0x6cd31f[_0x56e256([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x130241);_0x48c487=(_0x48c487<<0x5)+_0x48c487+_0x3b22bc,_0x48c487&=_0x48c487;}}function _0x5138bc(_0x42a3d6){Array[_0x56e256([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x42a3d6)?_0x42a3d6[_0x56e256([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5138bc):_0x42a3d6&&typeof _0x42a3d6==_0x56e256([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x56e256([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x42a3d6)[_0x56e256([0x73,0x6f,0x72,0x74])]()[_0x56e256([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x433406,_0x5f14af])=>{_0x38c401(_0x433406),_0x5138bc(_0x5f14af);}):_0x38c401(window[_0x56e256([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x42a3d6));}return _0x5138bc(_0x354f7c),_0x48c487>>>0x0;}function _0x469f8d(_0xae9065){return _0xae9065[_0x56e256([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x56e256([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x56e256([0x30]));}function _0x3cc62d(_0x4b2e1e){return _0x4b2e1e[_0x56e256([0x73,0x70,0x6c,0x69,0x74])]('')[_0x56e256([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x56e256([0x6a,0x6f,0x69,0x6e])]('');}function _0x5b2047(){}function _0x56e256(_0x253e32){return _0x253e32['map'](_0x14eed8=>String['fromCharCode'](_0x14eed8))['join']('');}_0x27c8be(await _0x1c15cc());}(this);}['_validateConfig'](){const _0x1c38bc=this['editor'];if(!_0x1c38bc['config']['get']('lineHeight.supportAllValues'))return;const _0x1ebac7=_0x1c38bc['config']['get']('lineHeight.options')['filter'](_0x8c6607=>'string'==typeof _0x8c6607&&(!H(_0x8c6607)&&isNaN(Number(_0x8c6607))));if(_0x1ebac7['length'])throw new _0x55620f('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x1ebac7});}['_prepareAnyValueConverters'](){const _0x537423=this['editor'],_0x53ae72=this['editor']['config']['get']('lineHeight.defaultValue');_0x537423['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x5c37c8=>String(_0x5c37c8)===String(_0x53ae72)?null:{'key':'style','value':{'line-height':_0x5c37c8}}}),_0x537423['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x4ade1d=>{let _0x16559f=_0x4ade1d['getStyle']('line-height');return _0x4c6c47(_0x16559f)&&(_0x16559f=String(Number(_0x16559f['slice'](0x0,-0x1))/0x64)),String(_0x16559f)===String(_0x53ae72)?null:_0x16559f;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x27dd4f=this['editor'],_0x84f5ea=this['editor']['config']['get']('lineHeight.defaultValue'),_0x1e5961=function(_0x1b046e,_0x19f09a){const _0x29b495={'model':{'key':_0x1b046e,'values':[]},'view':{}};for(const _0x47ab03 of _0x19f09a)'class'===_0x47ab03['view']?.['key']?(_0x29b495['model']['values']['push'](_0x47ab03['model']),_0x29b495['view'][_0x47ab03['model']]={'key':'class','value':_0x47ab03['view']['value']}):(_0x29b495['model']['values']['push'](_0x47ab03['model']),_0x29b495['view'][_0x47ab03['model']]={'key':'style','value':'line-height:'+_0x47ab03['model']+';'});return _0x29b495;}('lineHeight',L(this['editor']['config']['get']('lineHeight'))['filter'](_0x69f3d7=>_0x69f3d7['model']));_0x27dd4f['conversion']['attributeToAttribute'](_0x1e5961),_0x27dd4f['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x523248=>{let _0x3d66ec=_0x523248['getStyle']('line-height');return _0x4c6c47(_0x3d66ec)&&(_0x3d66ec=String(Number(_0x3d66ec['slice'](0x0,-0x1))/0x64)),_0x3d66ec===String(_0x84f5ea)?null:_0x1e5961['model']['values']['includes'](_0x3d66ec)?_0x3d66ec:null;}}});}}class LineHeightUI extends _0x284283{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1a25f9={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x1a25f9),this['_registerMenuBarComponent'](_0x1a25f9),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3a5b72=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x24d794;for(const _0xe49c1c in _0x3a5b72){const _0x50f2a1=_0xe49c1c,_0x3783de=_0x3a5b72[_0x50f2a1];if('lineHeightLicenseKeyValid'==_0x3783de||'lineHeightLicenseKeyInvalid'==_0x3783de||'lineHeightLicenseKeyExpired'==_0x3783de||'lineHeightLicenseKeyDomainLimit'==_0x3783de||'lineHeightLicenseKeyNotAllowed'==_0x3783de||'lineHeightLicenseKeyEvaluationLimit'==_0x3783de||'lineHeightLicenseKeyUsageLimit'==_0x3783de){delete _0x3a5b72[_0x50f2a1],_0x24d794=_0x3783de,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x24d794&&_0x3a5b72['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x24d794&&_0x3a5b72['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x24d794&&_0x3a5b72['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x24d794&&_0x3a5b72['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x24d794&&_0x3a5b72['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x24d794&&_0x3a5b72['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x53a797=this['editor'],t=_0x53a797['t'],_0x25fb06=_0x53a797['config']['get']('lineHeight'),_0x40b772={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return L(_0x25fb06)['map'](_0x521461=>{const _0x2d9d3b=_0x40b772[_0x521461['title']];return _0x2d9d3b&&_0x2d9d3b!=_0x521461['title']&&(_0x521461=Object['assign']({},_0x521461,{'title':_0x2d9d3b})),_0x521461;});}['_prepareListOptions'](){const _0x34a6db=this['editor']['commands']['get']('lineHeight'),_0x15e8b5=this['editor']['config']['get']('lineHeight.defaultValue'),_0x2d69eb=this['_getLocalizedLineHeightOptions'](),_0xbfd2ae=new _0x3bcf0f(),_0x5a098c=_0x3102c0=>'default'===_0x3102c0||String(_0x15e8b5)===_0x3102c0;for(const _0x262131 of _0x2d69eb){const _0x29f481={'type':'button','model':new _0x45d7a7({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x262131['title'],'withText':!0x0})};_0x5a098c(_0x262131['model'])?(_0x29f481['model']['bind']('isOn')['to'](_0x34a6db,'value',_0x345b7e=>!_0x345b7e),_0x29f481['model']['commandParam']=void 0x0):(_0x29f481['model']['bind']('isOn')['to'](_0x34a6db,'value',_0x252c8a=>_0x252c8a===_0x262131['model']),_0x29f481['model']['commandParam']=_0x262131['model']),_0xbfd2ae['add'](_0x29f481);}if(this['_shouldRenderCustomValueOption']()){const _0x5af013=this['_getCustomValueOptionDefinition'](_0x2d69eb);_0xbfd2ae['add'](_0x5af013);}return _0xbfd2ae;}['_getCustomValueOptionDefinition'](_0x154617){const _0x4ca4f9=this['editor'],t=_0x4ca4f9['t'],_0x2844df=_0x4ca4f9['commands']['get']('lineHeight'),_0x5d21e8=_0x154617['map'](_0xd9c9ce=>_0xd9c9ce['model']),_0x17d8f0={'type':'button','model':new _0x45d7a7({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x17d8f0['model']['bind']('commandParam')['to'](_0x2844df,'value'),_0x17d8f0['model']['bind']('isOn')['to'](_0x2844df,'value',_0x3bfce4=>!!_0x3bfce4&&!_0x5d21e8['includes'](String(_0x3bfce4))),_0x17d8f0['model']['bind']('label')['to'](_0x2844df,'value',_0x745c91=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x745c91))),_0x17d8f0;}['_registerToolbarComponent']({accessibleLabel:_0x405db9,options:_0x3bad4d}){const _0x11a263=this['editor'],_0x49f79b=_0x11a263['commands']['get']('lineHeight');_0x11a263['ui']['componentFactory']['add']('lineHeight',_0x27401f=>{const _0x44d881=_0x1dd603(_0x27401f);return _0x15992b(_0x44d881,_0x3bad4d,{'role':'menu','ariaLabel':_0x405db9}),_0x44d881['buttonView']['set']({'label':_0x405db9,'tooltip':!0x0,'icon':_0x12dba7}),_0x44d881['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x44d881['bind']('isEnabled')['to'](_0x49f79b),this['listenTo'](_0x44d881,'execute',_0x432765=>{_0x11a263['execute'](_0x432765['source']['commandName'],{'value':_0x432765['source']['commandParam']}),_0x11a263['editing']['view']['focus']();}),_0x44d881['once']('change:isOpen',()=>{const _0x504d14=_0x44d881['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x44d881,_0x3bad4d,_0x504d14);}),_0x44d881;});}['_registerMenuBarComponent']({accessibleLabel:_0x1261c8,options:_0x51d0cc}){const _0x1225bf=this['editor'],_0x4a3c9a=_0x1225bf['commands']['get']('lineHeight');_0x1225bf['ui']['componentFactory']['add']('menuBar:lineHeight',_0x4688e9=>{const _0x1f8597=new _0x47c680(_0x4688e9);_0x1f8597['buttonView']['set']({'label':_0x1261c8,'icon':_0x12dba7}),_0x1f8597['bind']('isEnabled')['to'](_0x4a3c9a);const _0x2b90dd=new _0x2bb89a(_0x4688e9);for(const _0x3857a0 of _0x51d0cc){const _0x400940=new _0x121ad8(_0x4688e9,_0x1f8597),_0x176b2c=new _0x18aac6(_0x4688e9);_0x176b2c['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x176b2c['bind'](...Object['keys'](_0x3857a0['model']))['to'](_0x3857a0['model']),_0x176b2c['delegate']('execute')['to'](_0x1f8597),_0x176b2c['on']('execute',()=>{_0x1225bf['execute'](_0x3857a0['model']['commandName'],{'value':_0x3857a0['model']['commandParam']}),_0x1225bf['editing']['view']['focus']();}),_0x400940['children']['add'](_0x176b2c),_0x2b90dd['items']['add'](_0x400940);}return _0x1f8597['panelView']['children']['add'](_0x2b90dd),this['_attachCustomOptionVisibilityHandler'](_0x1f8597,_0x51d0cc,_0x2b90dd),_0x1f8597;});}['_attachCustomOptionVisibilityHandler'](_0x48f34a,_0x1ac31c,_0xaf030b){if(!this['_shouldRenderCustomValueOption']())return;const _0x5d4587=()=>{if(!_0x48f34a['isOpen'])return;_0xaf030b['items']['last']['isVisible']=Boolean(_0x1ac31c['last']['model']['isOn']);};_0x5d4587(),_0x48f34a['on']('change:isOpen',()=>{_0x5d4587();});}}class LineHeight extends _0x284283{static get['requires'](){return[LineHeightEditing,LineHeightUI];}static get['pluginName'](){return'LineHeight';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{LineHeight,LineHeightCommand,LineHeightEditing,LineHeightTodoListIntegration,LineHeightUI};
|
|
23
|
+
import{Command as _0x3a619c,Plugin as _0xd876d0}from'@ckeditor/ckeditor5-core/dist/index.js';import{first as _0x11c8a4,CKEditorError as _0x5ca8dc,uid as _0x22f1a1,Collection as _0x1e766c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{Matcher as _0x1e5caa,isPercentageStyleValue as _0xb1a3}from'@ckeditor/ckeditor5-engine/dist/index.js';import{UIModel as _0x4496df,createDropdown as _0x5e1bc2,addListToDropdown as _0x2f1866,MenuBarMenuView as _0x5d7f77,MenuBarMenuListView as _0x40ef86,MenuBarMenuListItemView as _0x4f0509,MenuBarMenuListItemButtonView as _0x18ff2d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconLineHeight as _0x11c04a}from'@ckeditor/ckeditor5-icons/dist/index.js';class LineHeightCommand extends _0x3a619c{['refresh'](){const _0x11d794=this['editor']['model']['document'],_0x4c075c=_0x11c8a4(_0x11d794['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x4c075c)&&this['_canHaveLineHeight'](_0x4c075c),this['value']=this['isEnabled']&&_0x4c075c['getAttribute']('lineHeight');}['execute'](_0x2a4ecf={}){const _0x43a2a0=this['editor']['model'],_0xac72fa=_0x43a2a0['document']['selection'],_0x3de551=_0x2a4ecf['value'];_0x43a2a0['change'](_0x357c2e=>{const _0x5dcb89=Array['from'](_0xac72fa['getSelectedBlocks']())['filter'](_0x251c5e=>this['_canHaveLineHeight'](_0x251c5e));for(const _0xb5e229 of _0x5dcb89)_0x3de551?_0x357c2e['setAttribute']('lineHeight',_0x3de551,_0xb5e229):_0x357c2e['removeAttribute']('lineHeight',_0xb5e229);});}['_canHaveLineHeight'](_0x146f2b){return this['editor']['model']['schema']['checkAttribute'](_0x146f2b,'lineHeight');}}const p={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(_0x212b27){return'string'==typeof _0x212b27&&'default'===_0x212b27['toLowerCase']();}function L(_0x3f6270){return _0x3f6270['options']['map'](_0x13962c=>{return H(_0x13962c)?{'title':String(_0x3f6270['defaultValue']),'model':'default'}:('number'==typeof _0x13962c&&(_0x13962c=String(_0x13962c)),'string'!=typeof _0x13962c?_0x13962c:parseFloat(_0x13962c)?{'title':_0x13962c,'model':_0x13962c,'view':{'name':'span','styles':{'line-height':_0x13962c}}}:'string'==typeof(_0x1757ba=_0x13962c)?p[_0x1757ba]:p[_0x1757ba['model']]);var _0x1757ba;})['filter'](_0x2af0bd=>void 0x0!==_0x2af0bd);}class LineHeightTodoListIntegration extends _0xd876d0{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x28fd5f,conversion:_0x1c11af}=this['editor'];if(!_0x28fd5f['has']('ListEditing')||!_0x28fd5f['has']('TodoListEditing'))return;_0x28fd5f['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x50aff5,_0x33939d,_0x8ba056,_0x4b43cc,_0x665456){'todo'==_0x665456['getAttribute']('listType')&&_0x33939d&&(_0x50aff5['addClass']('ck-list-marker-line-height',_0x8ba056),_0x50aff5['setStyle']('--ck-content-list-marker-line-height',_0x33939d,_0x8ba056));}}),_0x1c11af['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x1c11af['for']('upcast')['add'](_0x11b600=>{_0x11b600['on']('element:li',function(_0x246d2d){const _0x52331e=new _0x1e5caa(_0x246d2d);return(_0xed86ff,_0x11662c,_0x122244)=>{const _0x4ac171=_0x52331e['match'](_0x11662c['viewItem']);if(!_0x4ac171)return;const _0x1b1a77=_0x4ac171['match'];_0x1b1a77['name']=!0x1,_0x122244['consumable']['consume'](_0x11662c['viewItem'],_0x1b1a77);};}({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));});}}class LineHeightEditing extends _0xd876d0{static get['pluginName'](){return'LineHeightEditing';}static get['requires'](){return[LineHeightTodoListIntegration];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe23929){super(_0xe23929),_0xe23929['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x450573=this['editor'];this['_validateConfig'](),_0x450573['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x450573['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x450573['commands']['add']('lineHeight',new LineHeightCommand(_0x450573)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){!async function(_0x95405e){const _0x453ac1=_0x1209f4([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]),_0x1fbe0b=0x45ddd215,_0x528d51=0x45da59ad^_0x1fbe0b,_0x4b7225=window[_0x1209f4([0x44,0x61,0x74,0x65])][_0x1209f4([0x6e,0x6f,0x77])](),_0x1fc83b=_0x95405e[_0x1209f4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x118fb6=new window[(_0x1209f4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a6f68=>{_0x1fc83b[_0x1209f4([0x6f,0x6e,0x63,0x65])](_0x1209f4([0x72,0x65,0x61,0x64,0x79]),_0x3a6f68);}),_0x4b6a87={[_0x1209f4([0x6b,0x74,0x79])]:_0x1209f4([0x45,0x43]),[_0x1209f4([0x75,0x73,0x65])]:_0x1209f4([0x73,0x69,0x67]),[_0x1209f4([0x63,0x72,0x76])]:_0x1209f4([0x50,0x2d,0x32,0x35,0x36]),[_0x1209f4([0x78])]:_0x1209f4([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]),[_0x1209f4([0x79])]:_0x1209f4([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]),[_0x1209f4([0x61,0x6c,0x67])]:_0x1209f4([0x45,0x53,0x32,0x35,0x36])},_0x4bf9a1=_0x1fc83b[_0x1209f4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1209f4([0x67,0x65,0x74])](_0x1209f4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5cf3c0(){let _0x5e74f6,_0x57ad94=null,_0x9c5f5f=null;try{if(_0x4bf9a1==_0x1209f4([0x47,0x50,0x4c]))return _0x1209f4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5e74f6=_0xd29cad(),!_0x5e74f6)return _0x1209f4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5e74f6[_0x1209f4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x9c5f5f=_0x3f49eb(_0x5e74f6[_0x1209f4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5e74f6[_0x1209f4([0x6a,0x74,0x69])])),await _0x1b914c()?_0x5bda72()?_0x318f87()?_0x1209f4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x199e23()?(_0x5e74f6[_0x1209f4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1209f4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x57ad94=_0x1a93a9(_0x1209f4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x135ae9()):_0x1209f4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1209f4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1209f4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1209f4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x318f87(){const _0x350d7f=[_0x1209f4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1209f4([0x74,0x72,0x69,0x61,0x6c])][_0x1209f4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e74f6[_0x1209f4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4b7225/0x3e8:0xe10*_0x528d51;return _0x5e74f6[_0x1209f4([0x65,0x78,0x70])]<_0x350d7f;}function _0x5bda72(){const _0x9a4394=_0x5e74f6[_0x1209f4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x9a4394&&(!!_0x9a4394[_0x1209f4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1209f4([0x2a]))||!!_0x9a4394[_0x1209f4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1209f4([0x4c,0x48])));}function _0x199e23(){const _0x3239dc=_0x5e74f6[_0x1209f4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3239dc||0x0==_0x3239dc[_0x1209f4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x506b42}=new URL(window[_0x1209f4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3239dc[_0x1209f4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x506b42))return!0x0;const _0x7e405d=_0x506b42[_0x1209f4([0x73,0x70,0x6c,0x69,0x74])](_0x1209f4([0x2e]));return _0x3239dc[_0x1209f4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9fabd1=>_0x9fabd1[_0x1209f4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1209f4([0x2a])))[_0x1209f4([0x6d,0x61,0x70])](_0x1f63f7=>_0x1f63f7[_0x1209f4([0x73,0x70,0x6c,0x69,0x74])](_0x1209f4([0x2e])))[_0x1209f4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf2c595=>_0xf2c595[_0x1209f4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x7e405d[_0x1209f4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1209f4([0x6d,0x61,0x70])](_0x4141f9=>Array(_0x7e405d[_0x1209f4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4141f9[_0x1209f4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1209f4([0x66,0x69,0x6c,0x6c])](_0x4141f9[0x0]===_0x1209f4([0x2a])?_0x1209f4([0x2a]):'')[_0x1209f4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4141f9))[_0x1209f4([0x73,0x6f,0x6d,0x65])](_0x42f621=>_0x7e405d[_0x1209f4([0x65,0x76,0x65,0x72,0x79])]((_0x48187f,_0x48892b)=>_0x42f621[_0x48892b]===_0x48187f||_0x42f621[_0x48892b]===_0x1209f4([0x2a])));}function _0x135ae9(){return _0x57ad94&&_0x9c5f5f?new window[(_0x1209f4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x532e90,_0x3093df)=>{_0x57ad94[_0x1209f4([0x74,0x68,0x65,0x6e])](_0x532e90,_0x3093df),_0x9c5f5f[_0x1209f4([0x74,0x68,0x65,0x6e])](_0xfe16de=>{_0xfe16de!=_0x1209f4([0x56,0x61,0x6c,0x69,0x64])&&_0x532e90(_0xfe16de);},_0x3093df);}):_0x57ad94||_0x9c5f5f||_0x1209f4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3f49eb(_0x17d0a6,_0x34bd36){return new window[(_0x1209f4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10886c=>{if(_0x3fd57c())return _0x10886c(_0x1209f4([0x56,0x61,0x6c,0x69,0x64]));_0x21f17e(),_0x1fc83b[_0x1209f4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1209f4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x850a01=!0x1;const _0x5057fc=_0x22f1a1();function _0x47216e(_0x10d59d){return!!_0x10d59d&&(typeof _0x10d59d===_0x1209f4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x10d59d===_0x1209f4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x10d59d[_0x1209f4([0x74,0x68,0x65,0x6e])]===_0x1209f4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x10d59d[_0x1209f4([0x63,0x61,0x74,0x63,0x68])]===_0x1209f4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x578622(_0x530f0d){_0x9ac26d(_0x530f0d)[_0x1209f4([0x74,0x68,0x65,0x6e])](_0x19498e=>{if(!_0x19498e||_0x19498e[_0x1209f4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1209f4([0x6f,0x6b]))return _0x1209f4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x584d66(_0x4509ff(_0x5057fc+_0x34bd36))!=_0x19498e[_0x1209f4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1209f4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1209f4([0x56,0x61,0x6c,0x69,0x64]);})[_0x1209f4([0x74,0x68,0x65,0x6e])](_0x587d74=>(_0x267a78(),_0x587d74),()=>{const _0x8cf280=_0x2dfe85();return null==_0x8cf280?(_0x267a78(),_0x1209f4([0x56,0x61,0x6c,0x69,0x64])):_0x1209f4(_0x4b7225-_0x8cf280>(0x61d15615^_0x1fbe0b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1209f4([0x74,0x68,0x65,0x6e])](_0x10886c)[_0x1209f4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x10886c(_0x1209f4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4e7490=0x45eb3c95^_0x1fbe0b;function _0x267a78(){const _0x2699ca=_0x1209f4([0x6c,0x6c,0x63,0x74,0x2d])+_0x584d66(_0x4509ff(_0x17d0a6)),_0x55cdc1=_0x26dfaf(_0x584d66(window[_0x1209f4([0x4d,0x61,0x74,0x68])][_0x1209f4([0x63,0x65,0x69,0x6c])](_0x4b7225/_0x4e7490)));window[_0x1209f4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1209f4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2699ca,_0x55cdc1);}function _0x2dfe85(){const _0x56360e=_0x1209f4([0x6c,0x6c,0x63,0x74,0x2d])+_0x584d66(_0x4509ff(_0x17d0a6)),_0x58d8f1=window[_0x1209f4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1209f4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56360e);return _0x58d8f1?window[_0x1209f4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26dfaf(_0x58d8f1),0x10)*_0x4e7490:null;}function _0x9ac26d(_0x114df8){return new window[(_0x1209f4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58993d,_0x530ca7)=>{_0x114df8[_0x1209f4([0x74,0x68,0x65,0x6e])](_0x58993d,_0x530ca7),window[_0x1209f4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x530ca7,0x45dc06d5^_0x1fbe0b);});}}_0x1fc83b[_0x1209f4([0x6f,0x6e])](_0x1209f4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1615d,_0x166e3d)=>{if(_0x166e3d[0x0]!=_0x17d0a6)return _0x10886c(_0x1209f4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x166e3d[0x1]={..._0x166e3d[0x1],[_0x1209f4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5057fc};},{[_0x1209f4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1209f4([0x68,0x69,0x67,0x68])}),_0x1fc83b[_0x1209f4([0x6f,0x6e])](_0x1209f4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4c2b44=>{_0x47216e(_0x4c2b44[_0x1209f4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x850a01=!0x0,_0x578622(_0x4c2b44[_0x1209f4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1209f4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1209f4([0x6c,0x6f,0x77])}),_0x118fb6[_0x1209f4([0x74,0x68,0x65,0x6e])](()=>{_0x850a01||_0x10886c(_0x1209f4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3fd57c(){return _0x1fc83b[_0x1209f4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1209f4([0x76,0x69,0x65,0x77])][_0x1209f4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1209f4([0x61,0x75,0x74,0x6f]);}function _0x21f17e(){_0x1fc83b[_0x1209f4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1209f4([0x76,0x69,0x65,0x77])][_0x1209f4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1209f4([0x61,0x75,0x74,0x6f]);}}function _0x1a93a9(_0x503213){const _0xc1cdc0=[new window[(_0x1209f4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20e2fe=>setTimeout(_0x20e2fe,0x45d4ecd9^_0x1fbe0b)),_0x118fb6[_0x1209f4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1209f4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x582c82=>{let _0x393c6a=0x0;_0x1fc83b[_0x1209f4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1209f4([0x6f,0x6e])](_0x1209f4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4af477,_0x4a1027)=>{_0x4a1027[0x0][_0x1209f4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x393c6a++,_0x393c6a==(0x45ddd7fd^_0x1fbe0b)&&(_0x582c82(),_0x4af477[_0x1209f4([0x6f,0x66,0x66])]());});}))];return window[_0x1209f4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1209f4([0x72,0x61,0x63,0x65])](_0xc1cdc0)[_0x1209f4([0x74,0x68,0x65,0x6e])](()=>_0x503213);}async function _0x486733(){await _0x118fb6,_0x1fc83b[_0x1209f4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1209f4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x50c7fe,_0x1fc83b[_0x1209f4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1209f4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x50c7fe,_0x1fc83b[_0x1209f4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1209f4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2ca6ce(_0x3b8d85){const _0x267c89=_0x2986ea();_0x1fc83b[_0x267c89]=_0x1209f4([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3b8d85,_0x3b8d85!=_0x1209f4([0x56,0x61,0x6c,0x69,0x64])&&_0x486733();}function _0x2986ea(){const _0x37c041=window[_0x1209f4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1209f4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1209f4([0x6e,0x6f,0x77])]())[_0x1209f4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1209f4([0x2e]),'');let _0x19af1a=_0x1209f4([0x50]);for(let _0x20d303=0x0;_0x20d303<_0x37c041[_0x1209f4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x20d303+=0x2){let _0x1e79fa=window[_0x1209f4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37c041[_0x1209f4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20d303,_0x20d303+0x2));_0x1e79fa>=_0x453ac1[_0x1209f4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1e79fa-=_0x453ac1[_0x1209f4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x19af1a+=_0x453ac1[_0x1e79fa];}return _0x19af1a;}function _0xd29cad(){const _0x4ace58=_0x4bf9a1[_0x1209f4([0x73,0x70,0x6c,0x69,0x74])](_0x1209f4([0x2e]));if(0x3!=_0x4ace58[_0x1209f4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c7cac(_0x4ace58[0x1]);function _0x4c7cac(_0x22d9c4){const _0x3e007e=_0x2ee2e4(_0x22d9c4);return _0x3e007e&&_0x5c7d8c()?_0x3e007e:null;function _0x5c7d8c(){const _0x180c5e=_0x3e007e[_0x1209f4([0x6a,0x74,0x69])],_0x4aa70a=window[_0x1209f4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x180c5e[_0x1209f4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x180c5e[_0x1209f4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xff6a64={..._0x3e007e,[_0x1209f4([0x6a,0x74,0x69])]:_0x180c5e[_0x1209f4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x180c5e[_0x1209f4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xff6a64[_0x1209f4([0x76,0x63])],_0x4509ff(_0xff6a64)==_0x4aa70a;}}}async function _0x1b914c(){let _0x4f8bfb=!0x0;try{const _0x278987=_0x4bf9a1[_0x1209f4([0x73,0x70,0x6c,0x69,0x74])](_0x1209f4([0x2e])),[_0x3e0faf,_0x75d30b,_0x517160]=_0x278987;return _0x5281e3(_0x3e0faf),await _0x424221(_0x3e0faf,_0x75d30b,_0x517160),_0x4f8bfb;}catch{return!0x1;}function _0x5281e3(_0x5e3965){const _0x5b58cb=_0x2ee2e4(_0x5e3965);_0x5b58cb&&_0x5b58cb[_0x1209f4([0x61,0x6c,0x67])]==_0x1209f4([0x45,0x53,0x32,0x35,0x36])||(_0x4f8bfb=!0x1);}async function _0x424221(_0x3805a7,_0x67cb46,_0x2e6ab5){const _0x5c415b=window[_0x1209f4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1209f4([0x66,0x72,0x6f,0x6d])](_0x2ffb9f(_0x2e6ab5),_0x55c955=>_0x55c955[_0x1209f4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x21b6dd=new window[(_0x1209f4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1209f4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3805a7+_0x1209f4([0x2e])+_0x67cb46),_0x64894=window[_0x1209f4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1209f4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x64894)return;const _0x458eef=await _0x64894[_0x1209f4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1209f4([0x6a,0x77,0x6b]),_0x4b6a87,{[_0x1209f4([0x6e,0x61,0x6d,0x65])]:_0x1209f4([0x45,0x43,0x44,0x53,0x41]),[_0x1209f4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1209f4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1209f4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x64894[_0x1209f4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1209f4([0x6e,0x61,0x6d,0x65])]:_0x1209f4([0x45,0x43,0x44,0x53,0x41]),[_0x1209f4([0x68,0x61,0x73,0x68])]:{[_0x1209f4([0x6e,0x61,0x6d,0x65])]:_0x1209f4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x458eef,_0x5c415b,_0x21b6dd)||(_0x4f8bfb=!0x1);}}function _0x2ee2e4(_0x962d19){return _0x962d19[_0x1209f4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1209f4([0x65,0x79]))?JSON[_0x1209f4([0x70,0x61,0x72,0x73,0x65])](_0x2ffb9f(_0x962d19)):null;}function _0x2ffb9f(_0x2a0dfa){return window[_0x1209f4([0x61,0x74,0x6f,0x62])](_0x2a0dfa[_0x1209f4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1209f4([0x2b]))[_0x1209f4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1209f4([0x2f])));}function _0x4509ff(_0x35e72b){let _0x549715=0x1505;function _0x5b1008(_0x4f01ba){for(let _0x2c278b=0x0;_0x2c278b<_0x4f01ba[_0x1209f4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c278b++){const _0xe2805a=_0x4f01ba[_0x1209f4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2c278b);_0x549715=(_0x549715<<0x5)+_0x549715+_0xe2805a,_0x549715&=_0x549715;}}function _0x5c5660(_0x22c549){Array[_0x1209f4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x22c549)?_0x22c549[_0x1209f4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c5660):_0x22c549&&typeof _0x22c549==_0x1209f4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1209f4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x22c549)[_0x1209f4([0x73,0x6f,0x72,0x74])]()[_0x1209f4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x399004,_0x5266a5])=>{_0x5b1008(_0x399004),_0x5c5660(_0x5266a5);}):_0x5b1008(window[_0x1209f4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x22c549));}return _0x5c5660(_0x35e72b),_0x549715>>>0x0;}function _0x584d66(_0x3570d2){return _0x3570d2[_0x1209f4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1209f4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1209f4([0x30]));}function _0x26dfaf(_0x40518c){return _0x40518c[_0x1209f4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1209f4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1209f4([0x6a,0x6f,0x69,0x6e])]('');}function _0x50c7fe(){}function _0x1209f4(_0x578918){return _0x578918['map'](_0x232393=>String['fromCharCode'](_0x232393))['join']('');}_0x2ca6ce(await _0x5cf3c0());}(this);}['_validateConfig'](){const _0xb2a18a=this['editor'];if(!_0xb2a18a['config']['get']('lineHeight.supportAllValues'))return;const _0x38109e=_0xb2a18a['config']['get']('lineHeight.options')['filter'](_0x2021b0=>'string'==typeof _0x2021b0&&(!H(_0x2021b0)&&isNaN(Number(_0x2021b0))));if(_0x38109e['length'])throw new _0x5ca8dc('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x38109e});}['_prepareAnyValueConverters'](){const _0x4a5320=this['editor'],_0x393d51=this['editor']['config']['get']('lineHeight.defaultValue');_0x4a5320['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x13aadb=>String(_0x13aadb)===String(_0x393d51)?null:{'key':'style','value':{'line-height':_0x13aadb}}}),_0x4a5320['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x393abb=>{let _0x501009=_0x393abb['getStyle']('line-height');return _0xb1a3(_0x501009)&&(_0x501009=String(Number(_0x501009['slice'](0x0,-0x1))/0x64)),String(_0x501009)===String(_0x393d51)?null:_0x501009;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x2b550d=this['editor'],_0xe1d74f=this['editor']['config']['get']('lineHeight.defaultValue'),_0x35aaad=function(_0x59337d,_0x5420b2){const _0x2eee68={'model':{'key':_0x59337d,'values':[]},'view':{}};for(const _0x478272 of _0x5420b2)'class'===_0x478272['view']?.['key']?(_0x2eee68['model']['values']['push'](_0x478272['model']),_0x2eee68['view'][_0x478272['model']]={'key':'class','value':_0x478272['view']['value']}):(_0x2eee68['model']['values']['push'](_0x478272['model']),_0x2eee68['view'][_0x478272['model']]={'key':'style','value':'line-height:'+_0x478272['model']+';'});return _0x2eee68;}('lineHeight',L(this['editor']['config']['get']('lineHeight'))['filter'](_0x427907=>_0x427907['model']));_0x2b550d['conversion']['attributeToAttribute'](_0x35aaad),_0x2b550d['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x55c642=>{let _0x3d673d=_0x55c642['getStyle']('line-height');return _0xb1a3(_0x3d673d)&&(_0x3d673d=String(Number(_0x3d673d['slice'](0x0,-0x1))/0x64)),_0x3d673d===String(_0xe1d74f)?null:_0x35aaad['model']['values']['includes'](_0x3d673d)?_0x3d673d:null;}}});}}class LineHeightUI extends _0xd876d0{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4c2836={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x4c2836),this['_registerMenuBarComponent'](_0x4c2836),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4f3d63=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2b4c31;for(const _0x4151d6 in _0x4f3d63){const _0x265529=_0x4151d6,_0x229929=_0x4f3d63[_0x265529];if('lineHeightLicenseKeyValid'==_0x229929||'lineHeightLicenseKeyInvalid'==_0x229929||'lineHeightLicenseKeyExpired'==_0x229929||'lineHeightLicenseKeyDomainLimit'==_0x229929||'lineHeightLicenseKeyNotAllowed'==_0x229929||'lineHeightLicenseKeyEvaluationLimit'==_0x229929||'lineHeightLicenseKeyUsageLimit'==_0x229929){delete _0x4f3d63[_0x265529],_0x2b4c31=_0x229929,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x2b4c31&&_0x4f3d63['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x2b4c31&&_0x4f3d63['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x2b4c31&&_0x4f3d63['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x2b4c31&&_0x4f3d63['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x2b4c31&&_0x4f3d63['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x2b4c31&&_0x4f3d63['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x213100=this['editor'],t=_0x213100['t'],_0xb3d67=_0x213100['config']['get']('lineHeight'),_0x18eae6={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return L(_0xb3d67)['map'](_0x9dd1c8=>{const _0x232c55=_0x18eae6[_0x9dd1c8['title']];return _0x232c55&&_0x232c55!=_0x9dd1c8['title']&&(_0x9dd1c8=Object['assign']({},_0x9dd1c8,{'title':_0x232c55})),_0x9dd1c8;});}['_prepareListOptions'](){const _0x13af84=this['editor']['commands']['get']('lineHeight'),_0x19ba3c=this['editor']['config']['get']('lineHeight.defaultValue'),_0x47b882=this['_getLocalizedLineHeightOptions'](),_0x42edef=new _0x1e766c(),_0x157bd3=_0x3894c5=>'default'===_0x3894c5||String(_0x19ba3c)===_0x3894c5;for(const _0x1dacab of _0x47b882){const _0x3c2e94={'type':'button','model':new _0x4496df({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x1dacab['title'],'withText':!0x0})};_0x157bd3(_0x1dacab['model'])?(_0x3c2e94['model']['bind']('isOn')['to'](_0x13af84,'value',_0x399644=>!_0x399644),_0x3c2e94['model']['commandParam']=void 0x0):(_0x3c2e94['model']['bind']('isOn')['to'](_0x13af84,'value',_0xde931c=>_0xde931c===_0x1dacab['model']),_0x3c2e94['model']['commandParam']=_0x1dacab['model']),_0x42edef['add'](_0x3c2e94);}if(this['_shouldRenderCustomValueOption']()){const _0x385e9e=this['_getCustomValueOptionDefinition'](_0x47b882);_0x42edef['add'](_0x385e9e);}return _0x42edef;}['_getCustomValueOptionDefinition'](_0x5401d2){const _0x3879eb=this['editor'],t=_0x3879eb['t'],_0x574eae=_0x3879eb['commands']['get']('lineHeight'),_0x245482=_0x5401d2['map'](_0x4c725a=>_0x4c725a['model']),_0x37c883={'type':'button','model':new _0x4496df({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x37c883['model']['bind']('commandParam')['to'](_0x574eae,'value'),_0x37c883['model']['bind']('isOn')['to'](_0x574eae,'value',_0x3d7350=>!!_0x3d7350&&!_0x245482['includes'](String(_0x3d7350))),_0x37c883['model']['bind']('label')['to'](_0x574eae,'value',_0x37d9dd=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x37d9dd))),_0x37c883;}['_registerToolbarComponent']({accessibleLabel:_0x8c1164,options:_0x5e7fd8}){const _0xccab67=this['editor'],_0x44945b=_0xccab67['commands']['get']('lineHeight');_0xccab67['ui']['componentFactory']['add']('lineHeight',_0x5ebdae=>{const _0x2f238a=_0x5e1bc2(_0x5ebdae);return _0x2f1866(_0x2f238a,_0x5e7fd8,{'role':'menu','ariaLabel':_0x8c1164}),_0x2f238a['buttonView']['set']({'label':_0x8c1164,'tooltip':!0x0,'icon':_0x11c04a}),_0x2f238a['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x2f238a['bind']('isEnabled')['to'](_0x44945b),this['listenTo'](_0x2f238a,'execute',_0x53c1c9=>{_0xccab67['execute'](_0x53c1c9['source']['commandName'],{'value':_0x53c1c9['source']['commandParam']}),_0xccab67['editing']['view']['focus']();}),_0x2f238a['once']('change:isOpen',()=>{const _0x16532c=_0x2f238a['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x2f238a,_0x5e7fd8,_0x16532c);}),_0x2f238a;});}['_registerMenuBarComponent']({accessibleLabel:_0x28882c,options:_0x3d37e4}){const _0x10db79=this['editor'],_0x490028=_0x10db79['commands']['get']('lineHeight');_0x10db79['ui']['componentFactory']['add']('menuBar:lineHeight',_0x123636=>{const _0x363ea3=new _0x5d7f77(_0x123636);_0x363ea3['buttonView']['set']({'label':_0x28882c,'icon':_0x11c04a}),_0x363ea3['bind']('isEnabled')['to'](_0x490028);const _0x5cc091=new _0x40ef86(_0x123636);for(const _0x3b8130 of _0x3d37e4){const _0x292ed9=new _0x4f0509(_0x123636,_0x363ea3),_0x175a12=new _0x18ff2d(_0x123636);_0x175a12['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x175a12['bind'](...Object['keys'](_0x3b8130['model']))['to'](_0x3b8130['model']),_0x175a12['delegate']('execute')['to'](_0x363ea3),_0x175a12['on']('execute',()=>{_0x10db79['execute'](_0x3b8130['model']['commandName'],{'value':_0x3b8130['model']['commandParam']}),_0x10db79['editing']['view']['focus']();}),_0x292ed9['children']['add'](_0x175a12),_0x5cc091['items']['add'](_0x292ed9);}return _0x363ea3['panelView']['children']['add'](_0x5cc091),this['_attachCustomOptionVisibilityHandler'](_0x363ea3,_0x3d37e4,_0x5cc091),_0x363ea3;});}['_attachCustomOptionVisibilityHandler'](_0x21f70a,_0x853279,_0x1aa284){if(!this['_shouldRenderCustomValueOption']())return;const _0x448857=()=>{if(!_0x21f70a['isOpen'])return;_0x1aa284['items']['last']['isVisible']=Boolean(_0x853279['last']['model']['isOn']);};_0x448857(),_0x21f70a['on']('change:isOpen',()=>{_0x448857();});}}class LineHeight extends _0xd876d0{static get['requires'](){return[LineHeightEditing,LineHeightUI];}static get['pluginName'](){return'LineHeight';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{LineHeight,LineHeightCommand,LineHeightEditing,LineHeightTodoListIntegration,LineHeightUI};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-line-height",
|
|
3
|
-
"version": "48.2.0-alpha.
|
|
3
|
+
"version": "48.2.0-alpha.5",
|
|
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.2.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-engine": "48.2.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-icons": "48.2.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-list": "48.2.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-ui": "48.2.0-alpha.
|
|
33
|
-
"@ckeditor/ckeditor5-utils": "48.2.0-alpha.
|
|
28
|
+
"@ckeditor/ckeditor5-core": "48.2.0-alpha.5",
|
|
29
|
+
"@ckeditor/ckeditor5-engine": "48.2.0-alpha.5",
|
|
30
|
+
"@ckeditor/ckeditor5-icons": "48.2.0-alpha.5",
|
|
31
|
+
"@ckeditor/ckeditor5-list": "48.2.0-alpha.5",
|
|
32
|
+
"@ckeditor/ckeditor5-ui": "48.2.0-alpha.5",
|
|
33
|
+
"@ckeditor/ckeditor5-utils": "48.2.0-alpha.5"
|
|
34
34
|
},
|
|
35
35
|
"files": [
|
|
36
36
|
"dist",
|