@ckeditor/ckeditor5-line-height 48.2.0-alpha.3 → 48.2.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. 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 _0x54aaee,Plugin as _0xcaeb72}from'@ckeditor/ckeditor5-core/dist/index.js';import{first as _0x5f282d,CKEditorError as _0x136c51,uid as _0x354c58,Collection as _0x8cd3a4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{Matcher as _0x34af10,isPercentageStyleValue as _0x1b2cd1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{UIModel as _0x38f43c,createDropdown as _0x5000f8,addListToDropdown as _0x19f7a7,MenuBarMenuView as _0x1deff8,MenuBarMenuListView as _0x510a81,MenuBarMenuListItemView as _0x53eed7,MenuBarMenuListItemButtonView as _0x5a0de3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconLineHeight as _0x54c404}from'@ckeditor/ckeditor5-icons/dist/index.js';class LineHeightCommand extends _0x54aaee{['refresh'](){const _0x40f842=this['editor']['model']['document'],_0x37eac8=_0x5f282d(_0x40f842['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x37eac8)&&this['_canHaveLineHeight'](_0x37eac8),this['value']=this['isEnabled']&&_0x37eac8['getAttribute']('lineHeight');}['execute'](_0x1dcc6a={}){const _0x2d5b75=this['editor']['model'],_0x567fde=_0x2d5b75['document']['selection'],_0x1d3561=_0x1dcc6a['value'];_0x2d5b75['change'](_0x4b0917=>{const _0x48af21=Array['from'](_0x567fde['getSelectedBlocks']())['filter'](_0x5020e4=>this['_canHaveLineHeight'](_0x5020e4));for(const _0x22d639 of _0x48af21)_0x1d3561?_0x4b0917['setAttribute']('lineHeight',_0x1d3561,_0x22d639):_0x4b0917['removeAttribute']('lineHeight',_0x22d639);});}['_canHaveLineHeight'](_0x497af1){return this['editor']['model']['schema']['checkAttribute'](_0x497af1,'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(_0x1b79b0){return'string'==typeof _0x1b79b0&&'default'===_0x1b79b0['toLowerCase']();}function L(_0x48429f){return _0x48429f['options']['map'](_0x22e468=>{return H(_0x22e468)?{'title':String(_0x48429f['defaultValue']),'model':'default'}:('number'==typeof _0x22e468&&(_0x22e468=String(_0x22e468)),'string'!=typeof _0x22e468?_0x22e468:parseFloat(_0x22e468)?{'title':_0x22e468,'model':_0x22e468,'view':{'name':'span','styles':{'line-height':_0x22e468}}}:'string'==typeof(_0x4584a0=_0x22e468)?p[_0x4584a0]:p[_0x4584a0['model']]);var _0x4584a0;})['filter'](_0x1b53d3=>void 0x0!==_0x1b53d3);}class LineHeightTodoListIntegration extends _0xcaeb72{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x489ab3,conversion:_0x2929bf}=this['editor'];if(!_0x489ab3['has']('ListEditing')||!_0x489ab3['has']('TodoListEditing'))return;_0x489ab3['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x53bb8f,_0x474cc9,_0x5a6216,_0x499e27,_0x15bdcb){'todo'==_0x15bdcb['getAttribute']('listType')&&_0x474cc9&&(_0x53bb8f['addClass']('ck-list-marker-line-height',_0x5a6216),_0x53bb8f['setStyle']('--ck-content-list-marker-line-height',_0x474cc9,_0x5a6216));}}),_0x2929bf['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x2929bf['for']('upcast')['add'](_0x17f7e0=>{_0x17f7e0['on']('element:li',function(_0x34b213){const _0x2b49b9=new _0x34af10(_0x34b213);return(_0x564d21,_0x415fba,_0x2b01d)=>{const _0x6790fa=_0x2b49b9['match'](_0x415fba['viewItem']);if(!_0x6790fa)return;const _0x1913fc=_0x6790fa['match'];_0x1913fc['name']=!0x1,_0x2b01d['consumable']['consume'](_0x415fba['viewItem'],_0x1913fc);};}({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));});}}class LineHeightEditing extends _0xcaeb72{static get['pluginName'](){return'LineHeightEditing';}static get['requires'](){return[LineHeightTodoListIntegration];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xa153c7){super(_0xa153c7),_0xa153c7['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x35aa9a=this['editor'];this['_validateConfig'](),_0x35aa9a['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x35aa9a['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x35aa9a['commands']['add']('lineHeight',new LineHeightCommand(_0x35aa9a)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){!async function(_0x42fe20){const _0xcdc921=_0x598d3d([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]),_0x34b8af=0x45ddd215,_0xee117a=0x45da59b5^_0x34b8af,_0x467b60=window[_0x598d3d([0x44,0x61,0x74,0x65])][_0x598d3d([0x6e,0x6f,0x77])](),_0x3347a1=_0x42fe20[_0x598d3d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x300222=new window[(_0x598d3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21bfdb=>{_0x3347a1[_0x598d3d([0x6f,0x6e,0x63,0x65])](_0x598d3d([0x72,0x65,0x61,0x64,0x79]),_0x21bfdb);}),_0x2c49f1={[_0x598d3d([0x6b,0x74,0x79])]:_0x598d3d([0x45,0x43]),[_0x598d3d([0x75,0x73,0x65])]:_0x598d3d([0x73,0x69,0x67]),[_0x598d3d([0x63,0x72,0x76])]:_0x598d3d([0x50,0x2d,0x32,0x35,0x36]),[_0x598d3d([0x78])]:_0x598d3d([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]),[_0x598d3d([0x79])]:_0x598d3d([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]),[_0x598d3d([0x61,0x6c,0x67])]:_0x598d3d([0x45,0x53,0x32,0x35,0x36])},_0x56433a=_0x3347a1[_0x598d3d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x598d3d([0x67,0x65,0x74])](_0x598d3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4edccd(){let _0xee9152,_0xeb5a6=null,_0x2365a8=null;try{if(_0x56433a==_0x598d3d([0x47,0x50,0x4c]))return _0x598d3d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xee9152=_0x583752(),!_0xee9152)return _0x598d3d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xee9152[_0x598d3d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2365a8=_0x18c51d(_0xee9152[_0x598d3d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xee9152[_0x598d3d([0x6a,0x74,0x69])])),await _0x5d9a69()?_0x53d1d1()?_0x15ff7c()?_0x598d3d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x47e64a()?(_0xee9152[_0x598d3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x598d3d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xeb5a6=_0x10c6ad(_0x598d3d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x331e9d()):_0x598d3d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x598d3d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x598d3d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x598d3d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x15ff7c(){const _0x1f1895=[_0x598d3d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x598d3d([0x74,0x72,0x69,0x61,0x6c])][_0x598d3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xee9152[_0x598d3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x467b60/0x3e8:0xe10*_0xee117a;return _0xee9152[_0x598d3d([0x65,0x78,0x70])]<_0x1f1895;}function _0x53d1d1(){const _0x265a5b=_0xee9152[_0x598d3d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x265a5b&&(!!_0x265a5b[_0x598d3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x598d3d([0x2a]))||!!_0x265a5b[_0x598d3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x598d3d([0x4c,0x48])));}function _0x47e64a(){const _0x56e077=_0xee9152[_0x598d3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x56e077||0x0==_0x56e077[_0x598d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x597840}=new URL(window[_0x598d3d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x56e077[_0x598d3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x597840))return!0x0;const _0x25fa83=_0x597840[_0x598d3d([0x73,0x70,0x6c,0x69,0x74])](_0x598d3d([0x2e]));return _0x56e077[_0x598d3d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x35d329=>_0x35d329[_0x598d3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x598d3d([0x2a])))[_0x598d3d([0x6d,0x61,0x70])](_0x22a144=>_0x22a144[_0x598d3d([0x73,0x70,0x6c,0x69,0x74])](_0x598d3d([0x2e])))[_0x598d3d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x127ca8=>_0x127ca8[_0x598d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x25fa83[_0x598d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x598d3d([0x6d,0x61,0x70])](_0x5be9aa=>Array(_0x25fa83[_0x598d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5be9aa[_0x598d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x598d3d([0x66,0x69,0x6c,0x6c])](_0x5be9aa[0x0]===_0x598d3d([0x2a])?_0x598d3d([0x2a]):'')[_0x598d3d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5be9aa))[_0x598d3d([0x73,0x6f,0x6d,0x65])](_0x496203=>_0x25fa83[_0x598d3d([0x65,0x76,0x65,0x72,0x79])]((_0x301f8e,_0xacb545)=>_0x496203[_0xacb545]===_0x301f8e||_0x496203[_0xacb545]===_0x598d3d([0x2a])));}function _0x331e9d(){return _0xeb5a6&&_0x2365a8?new window[(_0x598d3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x164c74,_0x470cb7)=>{_0xeb5a6[_0x598d3d([0x74,0x68,0x65,0x6e])](_0x164c74,_0x470cb7),_0x2365a8[_0x598d3d([0x74,0x68,0x65,0x6e])](_0x30023c=>{_0x30023c!=_0x598d3d([0x56,0x61,0x6c,0x69,0x64])&&_0x164c74(_0x30023c);},_0x470cb7);}):_0xeb5a6||_0x2365a8||_0x598d3d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x18c51d(_0x42b431,_0x3bdf12){return new window[(_0x598d3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11af9b=>{if(_0x5c9d80())return _0x11af9b(_0x598d3d([0x56,0x61,0x6c,0x69,0x64]));_0x4c8a19(),_0x3347a1[_0x598d3d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x598d3d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5ab6fd=!0x1;const _0x33be3f=_0x354c58();function _0x2d2516(_0x4b4067){return!!_0x4b4067&&(typeof _0x4b4067===_0x598d3d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4b4067===_0x598d3d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4b4067[_0x598d3d([0x74,0x68,0x65,0x6e])]===_0x598d3d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4b4067[_0x598d3d([0x63,0x61,0x74,0x63,0x68])]===_0x598d3d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5c1283(_0x5e90e2){_0x4c88cc(_0x5e90e2)[_0x598d3d([0x74,0x68,0x65,0x6e])](_0x33eef7=>{if(!_0x33eef7||_0x33eef7[_0x598d3d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x598d3d([0x6f,0x6b]))return _0x598d3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4c4b01(_0x1e0997(_0x33be3f+_0x3bdf12))!=_0x33eef7[_0x598d3d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x598d3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x598d3d([0x56,0x61,0x6c,0x69,0x64]);})[_0x598d3d([0x74,0x68,0x65,0x6e])](_0x328e28=>(_0x26b50e(),_0x328e28),()=>{const _0x1ee7fc=_0x1a6ac7();return null==_0x1ee7fc?(_0x26b50e(),_0x598d3d([0x56,0x61,0x6c,0x69,0x64])):_0x598d3d(_0x467b60-_0x1ee7fc>(0x61d15615^_0x34b8af)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x598d3d([0x74,0x68,0x65,0x6e])](_0x11af9b)[_0x598d3d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x11af9b(_0x598d3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x533f=0x45eb3c95^_0x34b8af;function _0x26b50e(){const _0x45913c=_0x598d3d([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c4b01(_0x1e0997(_0x42b431)),_0x1ed917=_0x1ac631(_0x4c4b01(window[_0x598d3d([0x4d,0x61,0x74,0x68])][_0x598d3d([0x63,0x65,0x69,0x6c])](_0x467b60/_0x533f)));window[_0x598d3d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x598d3d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x45913c,_0x1ed917);}function _0x1a6ac7(){const _0x707cee=_0x598d3d([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c4b01(_0x1e0997(_0x42b431)),_0x16138a=window[_0x598d3d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x598d3d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x707cee);return _0x16138a?window[_0x598d3d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ac631(_0x16138a),0x10)*_0x533f:null;}function _0x4c88cc(_0x20211c){return new window[(_0x598d3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2179e7,_0x5174c1)=>{_0x20211c[_0x598d3d([0x74,0x68,0x65,0x6e])](_0x2179e7,_0x5174c1),window[_0x598d3d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5174c1,0x45dc06d5^_0x34b8af);});}}_0x3347a1[_0x598d3d([0x6f,0x6e])](_0x598d3d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2b062a,_0x52e16d)=>{if(_0x52e16d[0x0]!=_0x42b431)return _0x11af9b(_0x598d3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x52e16d[0x1]={..._0x52e16d[0x1],[_0x598d3d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x33be3f};},{[_0x598d3d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x598d3d([0x68,0x69,0x67,0x68])}),_0x3347a1[_0x598d3d([0x6f,0x6e])](_0x598d3d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x533a0b=>{_0x2d2516(_0x533a0b[_0x598d3d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5ab6fd=!0x0,_0x5c1283(_0x533a0b[_0x598d3d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x598d3d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x598d3d([0x6c,0x6f,0x77])}),_0x300222[_0x598d3d([0x74,0x68,0x65,0x6e])](()=>{_0x5ab6fd||_0x11af9b(_0x598d3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5c9d80(){return _0x3347a1[_0x598d3d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x598d3d([0x76,0x69,0x65,0x77])][_0x598d3d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x598d3d([0x61,0x75,0x74,0x6f]);}function _0x4c8a19(){_0x3347a1[_0x598d3d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x598d3d([0x76,0x69,0x65,0x77])][_0x598d3d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x598d3d([0x61,0x75,0x74,0x6f]);}}function _0x10c6ad(_0x1640ee){const _0x1bebeb=[new window[(_0x598d3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11bf79=>setTimeout(_0x11bf79,0x45d4ecd9^_0x34b8af)),_0x300222[_0x598d3d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x598d3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b4897=>{let _0x4f9c88=0x0;_0x3347a1[_0x598d3d([0x6d,0x6f,0x64,0x65,0x6c])][_0x598d3d([0x6f,0x6e])](_0x598d3d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x445aba,_0x3567f1)=>{_0x3567f1[0x0][_0x598d3d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4f9c88++,_0x4f9c88==(0x45ddd7fd^_0x34b8af)&&(_0x1b4897(),_0x445aba[_0x598d3d([0x6f,0x66,0x66])]());});}))];return window[_0x598d3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x598d3d([0x72,0x61,0x63,0x65])](_0x1bebeb)[_0x598d3d([0x74,0x68,0x65,0x6e])](()=>_0x1640ee);}async function _0x375a2f(){await _0x300222,_0x3347a1[_0x598d3d([0x6d,0x6f,0x64,0x65,0x6c])][_0x598d3d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x111d7a,_0x3347a1[_0x598d3d([0x6d,0x6f,0x64,0x65,0x6c])][_0x598d3d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x111d7a,_0x3347a1[_0x598d3d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x598d3d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x370ba3(_0x3fe62a){const _0x2862be=_0x432790();_0x3347a1[_0x2862be]=_0x598d3d([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3fe62a,_0x3fe62a!=_0x598d3d([0x56,0x61,0x6c,0x69,0x64])&&_0x375a2f();}function _0x432790(){const _0x19f5f6=window[_0x598d3d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x598d3d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x598d3d([0x6e,0x6f,0x77])]())[_0x598d3d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x598d3d([0x2e]),'');let _0x4b3eec=_0x598d3d([0x50]);for(let _0x329dd1=0x0;_0x329dd1<_0x19f5f6[_0x598d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x329dd1+=0x2){let _0x18273c=window[_0x598d3d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19f5f6[_0x598d3d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x329dd1,_0x329dd1+0x2));_0x18273c>=_0xcdc921[_0x598d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x18273c-=_0xcdc921[_0x598d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4b3eec+=_0xcdc921[_0x18273c];}return _0x4b3eec;}function _0x583752(){const _0x5651f1=_0x56433a[_0x598d3d([0x73,0x70,0x6c,0x69,0x74])](_0x598d3d([0x2e]));if(0x3!=_0x5651f1[_0x598d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x32ea13(_0x5651f1[0x1]);function _0x32ea13(_0x4dce72){const _0x41e1d6=_0x57d6ad(_0x4dce72);return _0x41e1d6&&_0x16e9e1()?_0x41e1d6:null;function _0x16e9e1(){const _0x3c56da=_0x41e1d6[_0x598d3d([0x6a,0x74,0x69])],_0x7fce88=window[_0x598d3d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c56da[_0x598d3d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c56da[_0x598d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1665fd={..._0x41e1d6,[_0x598d3d([0x6a,0x74,0x69])]:_0x3c56da[_0x598d3d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3c56da[_0x598d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1665fd[_0x598d3d([0x76,0x63])],_0x1e0997(_0x1665fd)==_0x7fce88;}}}async function _0x5d9a69(){let _0x3ab71d=!0x0;try{const _0x51c9f4=_0x56433a[_0x598d3d([0x73,0x70,0x6c,0x69,0x74])](_0x598d3d([0x2e])),[_0x4da00b,_0x441af7,_0x2b674d]=_0x51c9f4;return _0x104725(_0x4da00b),await _0x1ee256(_0x4da00b,_0x441af7,_0x2b674d),_0x3ab71d;}catch{return!0x1;}function _0x104725(_0x467b37){const _0x4a7b7d=_0x57d6ad(_0x467b37);_0x4a7b7d&&_0x4a7b7d[_0x598d3d([0x61,0x6c,0x67])]==_0x598d3d([0x45,0x53,0x32,0x35,0x36])||(_0x3ab71d=!0x1);}async function _0x1ee256(_0x54a2de,_0x57d9c4,_0x335907){const _0x1c7c34=window[_0x598d3d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x598d3d([0x66,0x72,0x6f,0x6d])](_0x3c39e8(_0x335907),_0xaa6074=>_0xaa6074[_0x598d3d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x449690=new window[(_0x598d3d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x598d3d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x54a2de+_0x598d3d([0x2e])+_0x57d9c4),_0x313e7c=window[_0x598d3d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x598d3d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x313e7c)return;const _0x25eebb=await _0x313e7c[_0x598d3d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x598d3d([0x6a,0x77,0x6b]),_0x2c49f1,{[_0x598d3d([0x6e,0x61,0x6d,0x65])]:_0x598d3d([0x45,0x43,0x44,0x53,0x41]),[_0x598d3d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x598d3d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x598d3d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x313e7c[_0x598d3d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x598d3d([0x6e,0x61,0x6d,0x65])]:_0x598d3d([0x45,0x43,0x44,0x53,0x41]),[_0x598d3d([0x68,0x61,0x73,0x68])]:{[_0x598d3d([0x6e,0x61,0x6d,0x65])]:_0x598d3d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x25eebb,_0x1c7c34,_0x449690)||(_0x3ab71d=!0x1);}}function _0x57d6ad(_0x3384f0){return _0x3384f0[_0x598d3d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x598d3d([0x65,0x79]))?JSON[_0x598d3d([0x70,0x61,0x72,0x73,0x65])](_0x3c39e8(_0x3384f0)):null;}function _0x3c39e8(_0x5a8670){return window[_0x598d3d([0x61,0x74,0x6f,0x62])](_0x5a8670[_0x598d3d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x598d3d([0x2b]))[_0x598d3d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x598d3d([0x2f])));}function _0x1e0997(_0x302c8e){let _0x228194=0x1505;function _0x5daff6(_0xa97f6a){for(let _0x456ad2=0x0;_0x456ad2<_0xa97f6a[_0x598d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x456ad2++){const _0x1080d1=_0xa97f6a[_0x598d3d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x456ad2);_0x228194=(_0x228194<<0x5)+_0x228194+_0x1080d1,_0x228194&=_0x228194;}}function _0x28ce44(_0x2b188c){Array[_0x598d3d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b188c)?_0x2b188c[_0x598d3d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x28ce44):_0x2b188c&&typeof _0x2b188c==_0x598d3d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x598d3d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b188c)[_0x598d3d([0x73,0x6f,0x72,0x74])]()[_0x598d3d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x236c72,_0x1fad7d])=>{_0x5daff6(_0x236c72),_0x28ce44(_0x1fad7d);}):_0x5daff6(window[_0x598d3d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b188c));}return _0x28ce44(_0x302c8e),_0x228194>>>0x0;}function _0x4c4b01(_0x388e80){return _0x388e80[_0x598d3d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x598d3d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x598d3d([0x30]));}function _0x1ac631(_0x46ee33){return _0x46ee33[_0x598d3d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x598d3d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x598d3d([0x6a,0x6f,0x69,0x6e])]('');}function _0x111d7a(){}function _0x598d3d(_0x1733e4){return _0x1733e4['map'](_0x563eb2=>String['fromCharCode'](_0x563eb2))['join']('');}_0x370ba3(await _0x4edccd());}(this);}['_validateConfig'](){const _0x1675f1=this['editor'];if(!_0x1675f1['config']['get']('lineHeight.supportAllValues'))return;const _0x190377=_0x1675f1['config']['get']('lineHeight.options')['filter'](_0x31a0f4=>'string'==typeof _0x31a0f4&&(!H(_0x31a0f4)&&isNaN(Number(_0x31a0f4))));if(_0x190377['length'])throw new _0x136c51('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x190377});}['_prepareAnyValueConverters'](){const _0x43b23e=this['editor'],_0x66fef6=this['editor']['config']['get']('lineHeight.defaultValue');_0x43b23e['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x9d6f06=>String(_0x9d6f06)===String(_0x66fef6)?null:{'key':'style','value':{'line-height':_0x9d6f06}}}),_0x43b23e['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x4792e4=>{let _0x38bccd=_0x4792e4['getStyle']('line-height');return _0x1b2cd1(_0x38bccd)&&(_0x38bccd=String(Number(_0x38bccd['slice'](0x0,-0x1))/0x64)),String(_0x38bccd)===String(_0x66fef6)?null:_0x38bccd;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x33866c=this['editor'],_0x3898af=this['editor']['config']['get']('lineHeight.defaultValue'),_0x571f17=function(_0x4affb2,_0x22a46e){const _0x4fc5b7={'model':{'key':_0x4affb2,'values':[]},'view':{}};for(const _0x2faa89 of _0x22a46e)'class'===_0x2faa89['view']?.['key']?(_0x4fc5b7['model']['values']['push'](_0x2faa89['model']),_0x4fc5b7['view'][_0x2faa89['model']]={'key':'class','value':_0x2faa89['view']['value']}):(_0x4fc5b7['model']['values']['push'](_0x2faa89['model']),_0x4fc5b7['view'][_0x2faa89['model']]={'key':'style','value':'line-height:'+_0x2faa89['model']+';'});return _0x4fc5b7;}('lineHeight',L(this['editor']['config']['get']('lineHeight'))['filter'](_0x27053d=>_0x27053d['model']));_0x33866c['conversion']['attributeToAttribute'](_0x571f17),_0x33866c['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0xfb5deb=>{let _0x481e73=_0xfb5deb['getStyle']('line-height');return _0x1b2cd1(_0x481e73)&&(_0x481e73=String(Number(_0x481e73['slice'](0x0,-0x1))/0x64)),_0x481e73===String(_0x3898af)?null:_0x571f17['model']['values']['includes'](_0x481e73)?_0x481e73:null;}}});}}class LineHeightUI extends _0xcaeb72{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x8509f3={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x8509f3),this['_registerMenuBarComponent'](_0x8509f3),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5101f5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x39ca5;for(const _0x39d97f in _0x5101f5){const _0x17fb71=_0x39d97f,_0x370416=_0x5101f5[_0x17fb71];if('lineHeightLicenseKeyValid'==_0x370416||'lineHeightLicenseKeyInvalid'==_0x370416||'lineHeightLicenseKeyExpired'==_0x370416||'lineHeightLicenseKeyDomainLimit'==_0x370416||'lineHeightLicenseKeyNotAllowed'==_0x370416||'lineHeightLicenseKeyEvaluationLimit'==_0x370416||'lineHeightLicenseKeyUsageLimit'==_0x370416){delete _0x5101f5[_0x17fb71],_0x39ca5=_0x370416,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x39ca5&&_0x5101f5['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x39ca5&&_0x5101f5['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x39ca5&&_0x5101f5['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x39ca5&&_0x5101f5['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x39ca5&&_0x5101f5['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x39ca5&&_0x5101f5['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x63f03d=this['editor'],t=_0x63f03d['t'],_0x5bea54=_0x63f03d['config']['get']('lineHeight'),_0xa79897={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return L(_0x5bea54)['map'](_0x4496ab=>{const _0x36ac0d=_0xa79897[_0x4496ab['title']];return _0x36ac0d&&_0x36ac0d!=_0x4496ab['title']&&(_0x4496ab=Object['assign']({},_0x4496ab,{'title':_0x36ac0d})),_0x4496ab;});}['_prepareListOptions'](){const _0x2c0676=this['editor']['commands']['get']('lineHeight'),_0x421b20=this['editor']['config']['get']('lineHeight.defaultValue'),_0x4f9881=this['_getLocalizedLineHeightOptions'](),_0x4a8ebb=new _0x8cd3a4(),_0x4686c9=_0x4f130a=>'default'===_0x4f130a||String(_0x421b20)===_0x4f130a;for(const _0xa772e6 of _0x4f9881){const _0x5be5a3={'type':'button','model':new _0x38f43c({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0xa772e6['title'],'withText':!0x0})};_0x4686c9(_0xa772e6['model'])?(_0x5be5a3['model']['bind']('isOn')['to'](_0x2c0676,'value',_0x5ae84c=>!_0x5ae84c),_0x5be5a3['model']['commandParam']=void 0x0):(_0x5be5a3['model']['bind']('isOn')['to'](_0x2c0676,'value',_0x23287e=>_0x23287e===_0xa772e6['model']),_0x5be5a3['model']['commandParam']=_0xa772e6['model']),_0x4a8ebb['add'](_0x5be5a3);}if(this['_shouldRenderCustomValueOption']()){const _0x5ea84e=this['_getCustomValueOptionDefinition'](_0x4f9881);_0x4a8ebb['add'](_0x5ea84e);}return _0x4a8ebb;}['_getCustomValueOptionDefinition'](_0x423f88){const _0x1fcc2f=this['editor'],t=_0x1fcc2f['t'],_0x3efaeb=_0x1fcc2f['commands']['get']('lineHeight'),_0x5d440b=_0x423f88['map'](_0x539072=>_0x539072['model']),_0xf11270={'type':'button','model':new _0x38f43c({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0xf11270['model']['bind']('commandParam')['to'](_0x3efaeb,'value'),_0xf11270['model']['bind']('isOn')['to'](_0x3efaeb,'value',_0x1e2d52=>!!_0x1e2d52&&!_0x5d440b['includes'](String(_0x1e2d52))),_0xf11270['model']['bind']('label')['to'](_0x3efaeb,'value',_0x43471b=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x43471b))),_0xf11270;}['_registerToolbarComponent']({accessibleLabel:_0x52b82f,options:_0x246a8e}){const _0x2d399b=this['editor'],_0x124ed6=_0x2d399b['commands']['get']('lineHeight');_0x2d399b['ui']['componentFactory']['add']('lineHeight',_0x250409=>{const _0x3993ec=_0x5000f8(_0x250409);return _0x19f7a7(_0x3993ec,_0x246a8e,{'role':'menu','ariaLabel':_0x52b82f}),_0x3993ec['buttonView']['set']({'label':_0x52b82f,'tooltip':!0x0,'icon':_0x54c404}),_0x3993ec['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x3993ec['bind']('isEnabled')['to'](_0x124ed6),this['listenTo'](_0x3993ec,'execute',_0x4afa0d=>{_0x2d399b['execute'](_0x4afa0d['source']['commandName'],{'value':_0x4afa0d['source']['commandParam']}),_0x2d399b['editing']['view']['focus']();}),_0x3993ec['once']('change:isOpen',()=>{const _0x4d8b66=_0x3993ec['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x3993ec,_0x246a8e,_0x4d8b66);}),_0x3993ec;});}['_registerMenuBarComponent']({accessibleLabel:_0x246550,options:_0x176a79}){const _0x3d3de4=this['editor'],_0x351a51=_0x3d3de4['commands']['get']('lineHeight');_0x3d3de4['ui']['componentFactory']['add']('menuBar:lineHeight',_0x3d7084=>{const _0x11294b=new _0x1deff8(_0x3d7084);_0x11294b['buttonView']['set']({'label':_0x246550,'icon':_0x54c404}),_0x11294b['bind']('isEnabled')['to'](_0x351a51);const _0x3f45bb=new _0x510a81(_0x3d7084);for(const _0x582312 of _0x176a79){const _0x46d876=new _0x53eed7(_0x3d7084,_0x11294b),_0x2d0a25=new _0x5a0de3(_0x3d7084);_0x2d0a25['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x2d0a25['bind'](...Object['keys'](_0x582312['model']))['to'](_0x582312['model']),_0x2d0a25['delegate']('execute')['to'](_0x11294b),_0x2d0a25['on']('execute',()=>{_0x3d3de4['execute'](_0x582312['model']['commandName'],{'value':_0x582312['model']['commandParam']}),_0x3d3de4['editing']['view']['focus']();}),_0x46d876['children']['add'](_0x2d0a25),_0x3f45bb['items']['add'](_0x46d876);}return _0x11294b['panelView']['children']['add'](_0x3f45bb),this['_attachCustomOptionVisibilityHandler'](_0x11294b,_0x176a79,_0x3f45bb),_0x11294b;});}['_attachCustomOptionVisibilityHandler'](_0x2529db,_0x458a1f,_0x352bef){if(!this['_shouldRenderCustomValueOption']())return;const _0x529f2d=()=>{if(!_0x2529db['isOpen'])return;_0x352bef['items']['last']['isVisible']=Boolean(_0x458a1f['last']['model']['isOn']);};_0x529f2d(),_0x2529db['on']('change:isOpen',()=>{_0x529f2d();});}}class LineHeight extends _0xcaeb72{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",
3
+ "version": "48.2.0-alpha.4",
4
4
  "description": "Line height feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (https://cksource.com/)",
@@ -25,12 +25,12 @@
25
25
  "dist/translations/*.umd.js"
26
26
  ],
27
27
  "dependencies": {
28
- "@ckeditor/ckeditor5-core": "48.2.0-alpha.3",
29
- "@ckeditor/ckeditor5-engine": "48.2.0-alpha.3",
30
- "@ckeditor/ckeditor5-icons": "48.2.0-alpha.3",
31
- "@ckeditor/ckeditor5-list": "48.2.0-alpha.3",
32
- "@ckeditor/ckeditor5-ui": "48.2.0-alpha.3",
33
- "@ckeditor/ckeditor5-utils": "48.2.0-alpha.3"
28
+ "@ckeditor/ckeditor5-core": "48.2.0-alpha.4",
29
+ "@ckeditor/ckeditor5-engine": "48.2.0-alpha.4",
30
+ "@ckeditor/ckeditor5-icons": "48.2.0-alpha.4",
31
+ "@ckeditor/ckeditor5-list": "48.2.0-alpha.4",
32
+ "@ckeditor/ckeditor5-ui": "48.2.0-alpha.4",
33
+ "@ckeditor/ckeditor5-utils": "48.2.0-alpha.4"
34
34
  },
35
35
  "files": [
36
36
  "dist",