@ckeditor/ckeditor5-line-height 48.1.0-alpha.4 → 48.1.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.
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 _0x3516f0,Plugin as _0x2b5cc9}from'@ckeditor/ckeditor5-core/dist/index.js';import{first as _0x277b52,CKEditorError as _0x444b32,uid as _0x46bf72,Collection as _0x58e4df}from'@ckeditor/ckeditor5-utils/dist/index.js';import{Matcher as _0x272754,isPercentageStyleValue as _0x1cbc7a}from'@ckeditor/ckeditor5-engine/dist/index.js';import{UIModel as _0x57443a,createDropdown as _0xe3726a,addListToDropdown as _0x597993,MenuBarMenuView as _0x296cd9,MenuBarMenuListView as _0x588a11,MenuBarMenuListItemView as _0x3ac8a0,MenuBarMenuListItemButtonView as _0xda8690}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconLineHeight as _0x48a11c}from'@ckeditor/ckeditor5-icons/dist/index.js';class p extends _0x3516f0{['refresh'](){const _0x3794be=this['editor']['model']['document'],_0x57f2f7=_0x277b52(_0x3794be['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x57f2f7)&&this['_canHaveLineHeight'](_0x57f2f7),this['value']=this['isEnabled']&&_0x57f2f7['getAttribute']('lineHeight');}['execute'](_0x18478d={}){const _0xb6ccd7=this['editor']['model'],_0x46579a=_0xb6ccd7['document']['selection'],_0x1fa986=_0x18478d['value'];_0xb6ccd7['change'](_0x4be8bc=>{const _0x4c0509=Array['from'](_0x46579a['getSelectedBlocks']())['filter'](_0x155c6d=>this['_canHaveLineHeight'](_0x155c6d));for(const _0x3cb926 of _0x4c0509)_0x1fa986?_0x4be8bc['setAttribute']('lineHeight',_0x1fa986,_0x3cb926):_0x4be8bc['removeAttribute']('lineHeight',_0x3cb926);});}['_canHaveLineHeight'](_0x3ba851){return this['editor']['model']['schema']['checkAttribute'](_0x3ba851,'lineHeight');}}const y={get 'single'(){return{'title':'Single','model':'single','view':{'key':'class','value':'line-height-single'}};},get 'double'(){return{'title':'Double','model':'double','view':{'key':'class','value':'line-height-double'}};}};function H(_0x342a02){return'string'==typeof _0x342a02&&'default'===_0x342a02['toLowerCase']();}function L(_0x53852e){return _0x53852e['options']['map'](_0x5ec648=>{return H(_0x5ec648)?{'title':String(_0x53852e['defaultValue']),'model':'default'}:('number'==typeof _0x5ec648&&(_0x5ec648=String(_0x5ec648)),'string'!=typeof _0x5ec648?_0x5ec648:parseFloat(_0x5ec648)?{'title':_0x5ec648,'model':_0x5ec648,'view':{'name':'span','styles':{'line-height':_0x5ec648}}}:'string'==typeof(_0x18da43=_0x5ec648)?y[_0x18da43]:y[_0x18da43['model']]);var _0x18da43;})['filter'](_0x30e7e7=>void 0x0!==_0x30e7e7);}class v extends _0x2b5cc9{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x35c8e6,conversion:_0x4261c0}=this['editor'];if(!_0x35c8e6['has']('ListEditing')||!_0x35c8e6['has']('TodoListEditing'))return;_0x35c8e6['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x32ce41,_0x1504af,_0x3d490d,_0x3925a5,_0xbe22e){'todo'==_0xbe22e['getAttribute']('listType')&&_0x1504af&&(_0x32ce41['addClass']('ck-list-marker-line-height',_0x3d490d),_0x32ce41['setStyle']('--ck-content-list-marker-line-height',_0x1504af,_0x3d490d));}}),_0x4261c0['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x4261c0['for']('upcast')['add'](_0x379ec6=>{_0x379ec6['on']('element:li',function(_0xfdb7e){const _0x191b1e=new _0x272754(_0xfdb7e);return(_0x1cb345,_0x591342,_0x516c9d)=>{const _0x32d28c=_0x191b1e['match'](_0x591342['viewItem']);if(!_0x32d28c)return;const _0x77ce18=_0x32d28c['match'];_0x77ce18['name']=!0x1,_0x516c9d['consumable']['consume'](_0x591342['viewItem'],_0x77ce18);};}({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));});}}class b extends _0x2b5cc9{static get['pluginName'](){return'LineHeightEditing';}static get['requires'](){return[v];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd2f1e9){super(_0xd2f1e9),_0xd2f1e9['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x426feb=this['editor'];this['_validateConfig'](),_0x426feb['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x426feb['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x426feb['commands']['add']('lineHeight',new p(_0x426feb)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){!async function(_0x22bf06){const _0x1e2e2a=_0x522482([0x50,0x48,0x51,0x33,0x59,0x55,0x49,0x42,0x72,0x6c,0x30,0x58,0x64,0x6e,0x77,0x47,0x39,0x6b,0x65,0x7a,0x38,0x73,0x66,0x70,0x4d,0x76,0x31,0x79,0x74,0x57,0x46,0x52,0x4e,0x5a,0x4f,0x56,0x35,0x6a,0x4a,0x61,0x71,0x37,0x54,0x63,0x32,0x6f,0x67,0x75,0x62,0x36,0x34,0x78,0x43,0x4b,0x44,0x45,0x41,0x4c,0x53,0x69,0x68,0x6d]),_0xccfad3=0x45ddd215,_0x22036f=0x45da5bbd^_0xccfad3,_0x59be3a=window[_0x522482([0x44,0x61,0x74,0x65])][_0x522482([0x6e,0x6f,0x77])](),_0xaee4f0=_0x22bf06[_0x522482([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x6e52c7=new window[(_0x522482([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x227c01=>{_0xaee4f0[_0x522482([0x6f,0x6e,0x63,0x65])](_0x522482([0x72,0x65,0x61,0x64,0x79]),_0x227c01);}),_0x26d177={[_0x522482([0x6b,0x74,0x79])]:_0x522482([0x45,0x43]),[_0x522482([0x75,0x73,0x65])]:_0x522482([0x73,0x69,0x67]),[_0x522482([0x63,0x72,0x76])]:_0x522482([0x50,0x2d,0x32,0x35,0x36]),[_0x522482([0x78])]:_0x522482([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x522482([0x79])]:_0x522482([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x522482([0x61,0x6c,0x67])]:_0x522482([0x45,0x53,0x32,0x35,0x36])},_0x267181=_0xaee4f0[_0x522482([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x522482([0x67,0x65,0x74])](_0x522482([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x256486(){let _0x58110a,_0x41ba98=null,_0x3f222c=null;try{if(_0x267181==_0x522482([0x47,0x50,0x4c]))return _0x522482([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x58110a=_0x47192d(),!_0x58110a)return _0x522482([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x58110a[_0x522482([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3f222c=_0x306298(_0x58110a[_0x522482([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x58110a[_0x522482([0x6a,0x74,0x69])])),await _0x229e28()?_0x5122f3()?_0x26c4b4()?_0x522482([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x292ef8()?(_0x58110a[_0x522482([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x522482([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x41ba98=_0xe117a1(_0x522482([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x361afe()):_0x522482([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x522482([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x522482([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x522482([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x26c4b4(){const _0x5a82ad=[_0x522482([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x522482([0x74,0x72,0x69,0x61,0x6c])][_0x522482([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58110a[_0x522482([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x59be3a/0x3e8:0xe10*_0x22036f;return _0x58110a[_0x522482([0x65,0x78,0x70])]<_0x5a82ad;}function _0x5122f3(){const _0x86a936=_0x58110a[_0x522482([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x86a936&&(!!_0x86a936[_0x522482([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x522482([0x2a]))||!!_0x86a936[_0x522482([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x522482([0x4c,0x48])));}function _0x292ef8(){const _0x37a801=_0x58110a[_0x522482([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x37a801||0x0==_0x37a801[_0x522482([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x30f82f}=new URL(window[_0x522482([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x37a801[_0x522482([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30f82f))return!0x0;const _0x5b4596=_0x30f82f[_0x522482([0x73,0x70,0x6c,0x69,0x74])](_0x522482([0x2e]));return _0x37a801[_0x522482([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xa5598f=>_0xa5598f[_0x522482([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x522482([0x2a])))[_0x522482([0x6d,0x61,0x70])](_0x23fa26=>_0x23fa26[_0x522482([0x73,0x70,0x6c,0x69,0x74])](_0x522482([0x2e])))[_0x522482([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x82789a=>_0x82789a[_0x522482([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5b4596[_0x522482([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x522482([0x6d,0x61,0x70])](_0xe0a7bf=>Array(_0x5b4596[_0x522482([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xe0a7bf[_0x522482([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x522482([0x66,0x69,0x6c,0x6c])](_0xe0a7bf[0x0]===_0x522482([0x2a])?_0x522482([0x2a]):'')[_0x522482([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xe0a7bf))[_0x522482([0x73,0x6f,0x6d,0x65])](_0x3863fd=>_0x5b4596[_0x522482([0x65,0x76,0x65,0x72,0x79])]((_0x3cb962,_0x638daa)=>_0x3863fd[_0x638daa]===_0x3cb962||_0x3863fd[_0x638daa]===_0x522482([0x2a])));}function _0x361afe(){return _0x41ba98&&_0x3f222c?new window[(_0x522482([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xea8d63,_0x8a4560)=>{_0x41ba98[_0x522482([0x74,0x68,0x65,0x6e])](_0xea8d63,_0x8a4560),_0x3f222c[_0x522482([0x74,0x68,0x65,0x6e])](_0x5268de=>{_0x5268de!=_0x522482([0x56,0x61,0x6c,0x69,0x64])&&_0xea8d63(_0x5268de);},_0x8a4560);}):_0x41ba98||_0x3f222c||_0x522482([0x56,0x61,0x6c,0x69,0x64]);}}function _0x306298(_0x314950,_0xecaae7){return new window[(_0x522482([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x554d2f=>{if(_0xca4814())return _0x554d2f(_0x522482([0x56,0x61,0x6c,0x69,0x64]));_0x379ce9(),_0xaee4f0[_0x522482([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x522482([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x18f3f2=!0x1;const _0x262479=_0x46bf72();function _0x1ebd9d(_0x310a8c){return!!_0x310a8c&&(typeof _0x310a8c===_0x522482([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x310a8c===_0x522482([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x310a8c[_0x522482([0x74,0x68,0x65,0x6e])]===_0x522482([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x310a8c[_0x522482([0x63,0x61,0x74,0x63,0x68])]===_0x522482([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xb7b5a6(_0x5615e8){_0x45a31e(_0x5615e8)[_0x522482([0x74,0x68,0x65,0x6e])](_0x5e577f=>{if(!_0x5e577f||_0x5e577f[_0x522482([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x522482([0x6f,0x6b]))return _0x522482([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x204df6(_0x1ea370(_0x262479+_0xecaae7))!=_0x5e577f[_0x522482([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x522482([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x522482([0x56,0x61,0x6c,0x69,0x64]);})[_0x522482([0x74,0x68,0x65,0x6e])](_0x251c6b=>(_0x4a345e(),_0x251c6b),()=>{const _0x2c9930=_0x2e1dcb();return null==_0x2c9930?(_0x4a345e(),_0x522482([0x56,0x61,0x6c,0x69,0x64])):_0x522482(_0x59be3a-_0x2c9930>(0x61d15615^_0xccfad3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x522482([0x74,0x68,0x65,0x6e])](_0x554d2f)[_0x522482([0x63,0x61,0x74,0x63,0x68])](()=>{_0x554d2f(_0x522482([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x313efd=0x45eb3c95^_0xccfad3;function _0x4a345e(){const _0x5795bc=_0x522482([0x6c,0x6c,0x63,0x74,0x2d])+_0x204df6(_0x1ea370(_0x314950)),_0x47a075=_0x20fb54(_0x204df6(window[_0x522482([0x4d,0x61,0x74,0x68])][_0x522482([0x63,0x65,0x69,0x6c])](_0x59be3a/_0x313efd)));window[_0x522482([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x522482([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5795bc,_0x47a075);}function _0x2e1dcb(){const _0x51d5f7=_0x522482([0x6c,0x6c,0x63,0x74,0x2d])+_0x204df6(_0x1ea370(_0x314950)),_0x490dc7=window[_0x522482([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x522482([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51d5f7);return _0x490dc7?window[_0x522482([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20fb54(_0x490dc7),0x10)*_0x313efd:null;}function _0x45a31e(_0x2f6eed){return new window[(_0x522482([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x525391,_0x164877)=>{_0x2f6eed[_0x522482([0x74,0x68,0x65,0x6e])](_0x525391,_0x164877),window[_0x522482([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x164877,0x45dc06d5^_0xccfad3);});}}_0xaee4f0[_0x522482([0x6f,0x6e])](_0x522482([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x316728,_0x1bef70)=>{if(_0x1bef70[0x0]!=_0x314950)return _0x554d2f(_0x522482([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1bef70[0x1]={..._0x1bef70[0x1],[_0x522482([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x262479};},{[_0x522482([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x522482([0x68,0x69,0x67,0x68])}),_0xaee4f0[_0x522482([0x6f,0x6e])](_0x522482([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3c460a=>{_0x1ebd9d(_0x3c460a[_0x522482([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x18f3f2=!0x0,_0xb7b5a6(_0x3c460a[_0x522482([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x522482([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x522482([0x6c,0x6f,0x77])}),_0x6e52c7[_0x522482([0x74,0x68,0x65,0x6e])](()=>{_0x18f3f2||_0x554d2f(_0x522482([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xca4814(){return _0xaee4f0[_0x522482([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x522482([0x76,0x69,0x65,0x77])][_0x522482([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x522482([0x61,0x75,0x74,0x6f]);}function _0x379ce9(){_0xaee4f0[_0x522482([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x522482([0x76,0x69,0x65,0x77])][_0x522482([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x522482([0x61,0x75,0x74,0x6f]);}}function _0xe117a1(_0x430401){const _0x45b7b6=[new window[(_0x522482([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x341ef5=>setTimeout(_0x341ef5,0x45d4ecd9^_0xccfad3)),_0x6e52c7[_0x522482([0x74,0x68,0x65,0x6e])](()=>new window[(_0x522482([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f38e1=>{let _0x210878=0x0;_0xaee4f0[_0x522482([0x6d,0x6f,0x64,0x65,0x6c])][_0x522482([0x6f,0x6e])](_0x522482([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1e68db,_0x2055ee)=>{_0x2055ee[0x0][_0x522482([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x210878++,_0x210878==(0x45ddd7fd^_0xccfad3)&&(_0x3f38e1(),_0x1e68db[_0x522482([0x6f,0x66,0x66])]());});}))];return window[_0x522482([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x522482([0x72,0x61,0x63,0x65])](_0x45b7b6)[_0x522482([0x74,0x68,0x65,0x6e])](()=>_0x430401);}async function _0x571daa(){await _0x6e52c7,_0xaee4f0[_0x522482([0x6d,0x6f,0x64,0x65,0x6c])][_0x522482([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x514cdf,_0xaee4f0[_0x522482([0x6d,0x6f,0x64,0x65,0x6c])][_0x522482([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x514cdf,_0xaee4f0[_0x522482([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x522482([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1dbde8(_0x44ceb5){const _0xf128d1=_0x4c2d9b();_0xaee4f0[_0xf128d1]=_0x522482([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x44ceb5,_0x44ceb5!=_0x522482([0x56,0x61,0x6c,0x69,0x64])&&_0x571daa();}function _0x4c2d9b(){const _0x2491d7=window[_0x522482([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x522482([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x522482([0x6e,0x6f,0x77])]())[_0x522482([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x522482([0x2e]),'');let _0x2d202c=_0x522482([0x50]);for(let _0x164b80=0x0;_0x164b80<_0x2491d7[_0x522482([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x164b80+=0x2){let _0x432604=window[_0x522482([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2491d7[_0x522482([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x164b80,_0x164b80+0x2));_0x432604>=_0x1e2e2a[_0x522482([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x432604-=_0x1e2e2a[_0x522482([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2d202c+=_0x1e2e2a[_0x432604];}return _0x2d202c;}function _0x47192d(){const _0x9654c7=_0x267181[_0x522482([0x73,0x70,0x6c,0x69,0x74])](_0x522482([0x2e]));if(0x3!=_0x9654c7[_0x522482([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2c880e(_0x9654c7[0x1]);function _0x2c880e(_0x192d44){const _0x584ee8=_0x55f495(_0x192d44);return _0x584ee8&&_0x47a1a2()?_0x584ee8:null;function _0x47a1a2(){const _0x107a0e=_0x584ee8[_0x522482([0x6a,0x74,0x69])],_0x49354a=window[_0x522482([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x107a0e[_0x522482([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x107a0e[_0x522482([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xa974b9={..._0x584ee8,[_0x522482([0x6a,0x74,0x69])]:_0x107a0e[_0x522482([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x107a0e[_0x522482([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xa974b9[_0x522482([0x76,0x63])],_0x1ea370(_0xa974b9)==_0x49354a;}}}async function _0x229e28(){let _0x57ae21=!0x0;try{const _0x32235a=_0x267181[_0x522482([0x73,0x70,0x6c,0x69,0x74])](_0x522482([0x2e])),[_0x49e839,_0x14c450,_0x52ef6c]=_0x32235a;return _0x461560(_0x49e839),await _0x4ce11c(_0x49e839,_0x14c450,_0x52ef6c),_0x57ae21;}catch{return!0x1;}function _0x461560(_0x1f5ff8){const _0x2cf50c=_0x55f495(_0x1f5ff8);_0x2cf50c&&_0x2cf50c[_0x522482([0x61,0x6c,0x67])]==_0x522482([0x45,0x53,0x32,0x35,0x36])||(_0x57ae21=!0x1);}async function _0x4ce11c(_0xd410e3,_0x3a3ed5,_0x249e03){const _0x1b17ba=window[_0x522482([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x522482([0x66,0x72,0x6f,0x6d])](_0x353960(_0x249e03),_0x497070=>_0x497070[_0x522482([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x588b50=new window[(_0x522482([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x522482([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xd410e3+_0x522482([0x2e])+_0x3a3ed5),_0x55ed5c=window[_0x522482([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x522482([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x55ed5c)return;const _0x2f7bfa=await _0x55ed5c[_0x522482([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x522482([0x6a,0x77,0x6b]),_0x26d177,{[_0x522482([0x6e,0x61,0x6d,0x65])]:_0x522482([0x45,0x43,0x44,0x53,0x41]),[_0x522482([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x522482([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x522482([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x55ed5c[_0x522482([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x522482([0x6e,0x61,0x6d,0x65])]:_0x522482([0x45,0x43,0x44,0x53,0x41]),[_0x522482([0x68,0x61,0x73,0x68])]:{[_0x522482([0x6e,0x61,0x6d,0x65])]:_0x522482([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2f7bfa,_0x1b17ba,_0x588b50)||(_0x57ae21=!0x1);}}function _0x55f495(_0x118c54){return _0x118c54[_0x522482([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x522482([0x65,0x79]))?JSON[_0x522482([0x70,0x61,0x72,0x73,0x65])](_0x353960(_0x118c54)):null;}function _0x353960(_0x2982f5){return window[_0x522482([0x61,0x74,0x6f,0x62])](_0x2982f5[_0x522482([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x522482([0x2b]))[_0x522482([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x522482([0x2f])));}function _0x1ea370(_0xe3afa7){let _0x43030e=0x1505;function _0x53c051(_0x863758){for(let _0x363924=0x0;_0x363924<_0x863758[_0x522482([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x363924++){const _0x462618=_0x863758[_0x522482([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x363924);_0x43030e=(_0x43030e<<0x5)+_0x43030e+_0x462618,_0x43030e&=_0x43030e;}}function _0x3f78cd(_0x263872){Array[_0x522482([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x263872)?_0x263872[_0x522482([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3f78cd):_0x263872&&typeof _0x263872==_0x522482([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x522482([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x263872)[_0x522482([0x73,0x6f,0x72,0x74])]()[_0x522482([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x226b08,_0x1c95a3])=>{_0x53c051(_0x226b08),_0x3f78cd(_0x1c95a3);}):_0x53c051(window[_0x522482([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x263872));}return _0x3f78cd(_0xe3afa7),_0x43030e>>>0x0;}function _0x204df6(_0x2b53d6){return _0x2b53d6[_0x522482([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x522482([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x522482([0x30]));}function _0x20fb54(_0x32feca){return _0x32feca[_0x522482([0x73,0x70,0x6c,0x69,0x74])]('')[_0x522482([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x522482([0x6a,0x6f,0x69,0x6e])]('');}function _0x514cdf(){}function _0x522482(_0x40a78d){return _0x40a78d['map'](_0x8ff43c=>String['fromCharCode'](_0x8ff43c))['join']('');}_0x1dbde8(await _0x256486());}(this);}['_validateConfig'](){const _0x27191c=this['editor'];if(!_0x27191c['config']['get']('lineHeight.supportAllValues'))return;const _0x39b7a1=_0x27191c['config']['get']('lineHeight.options')['filter'](_0x4d07eb=>'string'==typeof _0x4d07eb&&(!H(_0x4d07eb)&&isNaN(Number(_0x4d07eb))));if(_0x39b7a1['length'])throw new _0x444b32('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x39b7a1});}['_prepareAnyValueConverters'](){const _0x46c91a=this['editor'],_0x13b425=this['editor']['config']['get']('lineHeight.defaultValue');_0x46c91a['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x31c088=>String(_0x31c088)===String(_0x13b425)?null:{'key':'style','value':{'line-height':_0x31c088}}}),_0x46c91a['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x399765=>{let _0x37a92c=_0x399765['getStyle']('line-height');return _0x1cbc7a(_0x37a92c)&&(_0x37a92c=String(Number(_0x37a92c['slice'](0x0,-0x1))/0x64)),String(_0x37a92c)===String(_0x13b425)?null:_0x37a92c;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x305c3b=this['editor'],_0x1880dd=this['editor']['config']['get']('lineHeight.defaultValue'),_0x2882fb=function(_0x94fd53,_0x589e07){const _0x4fd7a7={'model':{'key':_0x94fd53,'values':[]},'view':{}};for(const _0x4db841 of _0x589e07)'class'===_0x4db841['view']?.['key']?(_0x4fd7a7['model']['values']['push'](_0x4db841['model']),_0x4fd7a7['view'][_0x4db841['model']]={'key':'class','value':_0x4db841['view']['value']}):(_0x4fd7a7['model']['values']['push'](_0x4db841['model']),_0x4fd7a7['view'][_0x4db841['model']]={'key':'style','value':'line-height:'+_0x4db841['model']+';'});return _0x4fd7a7;}('lineHeight',L(this['editor']['config']['get']('lineHeight'))['filter'](_0x3a943f=>_0x3a943f['model']));_0x305c3b['conversion']['attributeToAttribute'](_0x2882fb),_0x305c3b['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x460256=>{let _0x5eb459=_0x460256['getStyle']('line-height');return _0x1cbc7a(_0x5eb459)&&(_0x5eb459=String(Number(_0x5eb459['slice'](0x0,-0x1))/0x64)),_0x5eb459===String(_0x1880dd)?null:_0x2882fb['model']['values']['includes'](_0x5eb459)?_0x5eb459:null;}}});}}class k extends _0x2b5cc9{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x22bb83={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x22bb83),this['_registerMenuBarComponent'](_0x22bb83),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x36a903=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2df3e0;for(const _0x307534 in _0x36a903){const _0x4eb334=_0x307534,_0x12df91=_0x36a903[_0x4eb334];if('lineHeightLicenseKeyValid'==_0x12df91||'lineHeightLicenseKeyInvalid'==_0x12df91||'lineHeightLicenseKeyExpired'==_0x12df91||'lineHeightLicenseKeyDomainLimit'==_0x12df91||'lineHeightLicenseKeyNotAllowed'==_0x12df91||'lineHeightLicenseKeyEvaluationLimit'==_0x12df91||'lineHeightLicenseKeyUsageLimit'==_0x12df91){delete _0x36a903[_0x4eb334],_0x2df3e0=_0x12df91,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x2df3e0&&_0x36a903['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x2df3e0&&_0x36a903['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x2df3e0&&_0x36a903['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x2df3e0&&_0x36a903['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x2df3e0&&_0x36a903['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x2df3e0&&_0x36a903['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x53260c=this['editor'],t=_0x53260c['t'],_0x443fcf=_0x53260c['config']['get']('lineHeight'),_0x15a981={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return L(_0x443fcf)['map'](_0x3be486=>{const _0x236f56=_0x15a981[_0x3be486['title']];return _0x236f56&&_0x236f56!=_0x3be486['title']&&(_0x3be486=Object['assign']({},_0x3be486,{'title':_0x236f56})),_0x3be486;});}['_prepareListOptions'](){const _0x35d81f=this['editor']['commands']['get']('lineHeight'),_0x257db5=this['editor']['config']['get']('lineHeight.defaultValue'),_0xeedf8e=this['_getLocalizedLineHeightOptions'](),_0x298258=new _0x58e4df(),_0x91096f=_0x520252=>'default'===_0x520252||String(_0x257db5)===_0x520252;for(const _0xf72f42 of _0xeedf8e){const _0x4a38e2={'type':'button','model':new _0x57443a({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0xf72f42['title'],'withText':!0x0})};_0x91096f(_0xf72f42['model'])?(_0x4a38e2['model']['bind']('isOn')['to'](_0x35d81f,'value',_0x418b9c=>!_0x418b9c),_0x4a38e2['model']['commandParam']=void 0x0):(_0x4a38e2['model']['bind']('isOn')['to'](_0x35d81f,'value',_0x1d14b0=>_0x1d14b0===_0xf72f42['model']),_0x4a38e2['model']['commandParam']=_0xf72f42['model']),_0x298258['add'](_0x4a38e2);}if(this['_shouldRenderCustomValueOption']()){const _0x442b5=this['_getCustomValueOptionDefinition'](_0xeedf8e);_0x298258['add'](_0x442b5);}return _0x298258;}['_getCustomValueOptionDefinition'](_0x962ce3){const _0x1577ce=this['editor'],t=_0x1577ce['t'],_0x3eecdd=_0x1577ce['commands']['get']('lineHeight'),_0x4b5f65=_0x962ce3['map'](_0x54119e=>_0x54119e['model']),_0x576433={'type':'button','model':new _0x57443a({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x576433['model']['bind']('commandParam')['to'](_0x3eecdd,'value'),_0x576433['model']['bind']('isOn')['to'](_0x3eecdd,'value',_0x5cb2f2=>!!_0x5cb2f2&&!_0x4b5f65['includes'](String(_0x5cb2f2))),_0x576433['model']['bind']('label')['to'](_0x3eecdd,'value',_0x384957=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x384957))),_0x576433;}['_registerToolbarComponent']({accessibleLabel:_0xcf2f36,options:_0x122d65}){const _0xe82f46=this['editor'],_0x41bcc0=_0xe82f46['commands']['get']('lineHeight');_0xe82f46['ui']['componentFactory']['add']('lineHeight',_0x159df2=>{const _0x3d0611=_0xe3726a(_0x159df2);return _0x597993(_0x3d0611,_0x122d65,{'role':'menu','ariaLabel':_0xcf2f36}),_0x3d0611['buttonView']['set']({'label':_0xcf2f36,'tooltip':!0x0,'icon':_0x48a11c}),_0x3d0611['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x3d0611['bind']('isEnabled')['to'](_0x41bcc0),this['listenTo'](_0x3d0611,'execute',_0x36ef17=>{_0xe82f46['execute'](_0x36ef17['source']['commandName'],{'value':_0x36ef17['source']['commandParam']}),_0xe82f46['editing']['view']['focus']();}),_0x3d0611['once']('change:isOpen',()=>{const _0x5e2828=_0x3d0611['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x3d0611,_0x122d65,_0x5e2828);}),_0x3d0611;});}['_registerMenuBarComponent']({accessibleLabel:_0x24d6e1,options:_0x4cea18}){const _0x1195fa=this['editor'],_0x5d248b=_0x1195fa['commands']['get']('lineHeight');_0x1195fa['ui']['componentFactory']['add']('menuBar:lineHeight',_0x430850=>{const _0x65da93=new _0x296cd9(_0x430850);_0x65da93['buttonView']['set']({'label':_0x24d6e1,'icon':_0x48a11c}),_0x65da93['bind']('isEnabled')['to'](_0x5d248b);const _0x34b3ee=new _0x588a11(_0x430850);for(const _0x5b58a of _0x4cea18){const _0x15fdc1=new _0x3ac8a0(_0x430850,_0x65da93),_0x4b6b71=new _0xda8690(_0x430850);_0x4b6b71['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x4b6b71['bind'](...Object['keys'](_0x5b58a['model']))['to'](_0x5b58a['model']),_0x4b6b71['delegate']('execute')['to'](_0x65da93),_0x4b6b71['on']('execute',()=>{_0x1195fa['execute'](_0x5b58a['model']['commandName'],{'value':_0x5b58a['model']['commandParam']}),_0x1195fa['editing']['view']['focus']();}),_0x15fdc1['children']['add'](_0x4b6b71),_0x34b3ee['items']['add'](_0x15fdc1);}return _0x65da93['panelView']['children']['add'](_0x34b3ee),this['_attachCustomOptionVisibilityHandler'](_0x65da93,_0x4cea18,_0x34b3ee),_0x65da93;});}['_attachCustomOptionVisibilityHandler'](_0x5b9828,_0x520681,_0x3e0b56){if(!this['_shouldRenderCustomValueOption']())return;const _0x3256df=()=>{if(!_0x5b9828['isOpen'])return;_0x3e0b56['items']['last']['isVisible']=Boolean(_0x520681['last']['model']['isOn']);};_0x3256df(),_0x5b9828['on']('change:isOpen',()=>{_0x3256df();});}}class _ extends _0x2b5cc9{static get['requires'](){return[b,k];}static get['pluginName'](){return'LineHeight';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{_ as LineHeight,p as LineHeightCommand,b as LineHeightEditing,v as LineHeightTodoListIntegration,k as LineHeightUI};
23
+ import{Command as _0x421912,Plugin as _0x6e1094}from'@ckeditor/ckeditor5-core/dist/index.js';import{first as _0x2ef170,CKEditorError as _0x18394d,uid as _0x54473c,Collection as _0x3f5277}from'@ckeditor/ckeditor5-utils/dist/index.js';import{Matcher as _0xe89526,isPercentageStyleValue as _0x1e20e9}from'@ckeditor/ckeditor5-engine/dist/index.js';import{UIModel as _0x420c0c,createDropdown as _0x30a89f,addListToDropdown as _0x33ed67,MenuBarMenuView as _0x24c21e,MenuBarMenuListView as _0x152380,MenuBarMenuListItemView as _0x472ddc,MenuBarMenuListItemButtonView as _0x17ee5f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconLineHeight as _0x4e8835}from'@ckeditor/ckeditor5-icons/dist/index.js';class p extends _0x421912{['refresh'](){const _0x18c92d=this['editor']['model']['document'],_0x4caeec=_0x2ef170(_0x18c92d['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x4caeec)&&this['_canHaveLineHeight'](_0x4caeec),this['value']=this['isEnabled']&&_0x4caeec['getAttribute']('lineHeight');}['execute'](_0x42b7da={}){const _0x76ff4a=this['editor']['model'],_0x3d93dd=_0x76ff4a['document']['selection'],_0x4a5fce=_0x42b7da['value'];_0x76ff4a['change'](_0x3c9e7e=>{const _0x721fa2=Array['from'](_0x3d93dd['getSelectedBlocks']())['filter'](_0x4be146=>this['_canHaveLineHeight'](_0x4be146));for(const _0x35828d of _0x721fa2)_0x4a5fce?_0x3c9e7e['setAttribute']('lineHeight',_0x4a5fce,_0x35828d):_0x3c9e7e['removeAttribute']('lineHeight',_0x35828d);});}['_canHaveLineHeight'](_0x5ae0c4){return this['editor']['model']['schema']['checkAttribute'](_0x5ae0c4,'lineHeight');}}const y={get 'single'(){return{'title':'Single','model':'single','view':{'key':'class','value':'line-height-single'}};},get 'double'(){return{'title':'Double','model':'double','view':{'key':'class','value':'line-height-double'}};}};function H(_0x456a8e){return'string'==typeof _0x456a8e&&'default'===_0x456a8e['toLowerCase']();}function L(_0x2c4cf8){return _0x2c4cf8['options']['map'](_0x635847=>{return H(_0x635847)?{'title':String(_0x2c4cf8['defaultValue']),'model':'default'}:('number'==typeof _0x635847&&(_0x635847=String(_0x635847)),'string'!=typeof _0x635847?_0x635847:parseFloat(_0x635847)?{'title':_0x635847,'model':_0x635847,'view':{'name':'span','styles':{'line-height':_0x635847}}}:'string'==typeof(_0x5b7674=_0x635847)?y[_0x5b7674]:y[_0x5b7674['model']]);var _0x5b7674;})['filter'](_0x3bd4a9=>void 0x0!==_0x3bd4a9);}class v extends _0x6e1094{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x2ee05f,conversion:_0x37e26a}=this['editor'];if(!_0x2ee05f['has']('ListEditing')||!_0x2ee05f['has']('TodoListEditing'))return;_0x2ee05f['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x4a90b3,_0x3ede21,_0x46c50a,_0x5a0759,_0x1615bf){'todo'==_0x1615bf['getAttribute']('listType')&&_0x3ede21&&(_0x4a90b3['addClass']('ck-list-marker-line-height',_0x46c50a),_0x4a90b3['setStyle']('--ck-content-list-marker-line-height',_0x3ede21,_0x46c50a));}}),_0x37e26a['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x37e26a['for']('upcast')['add'](_0x15d1de=>{_0x15d1de['on']('element:li',function(_0x34ae4b){const _0xeaaff9=new _0xe89526(_0x34ae4b);return(_0x4bf9fa,_0x484a0c,_0x11cb68)=>{const _0x24c8dc=_0xeaaff9['match'](_0x484a0c['viewItem']);if(!_0x24c8dc)return;const _0x56f720=_0x24c8dc['match'];_0x56f720['name']=!0x1,_0x11cb68['consumable']['consume'](_0x484a0c['viewItem'],_0x56f720);};}({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));});}}class b extends _0x6e1094{static get['pluginName'](){return'LineHeightEditing';}static get['requires'](){return[v];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x542b5a){super(_0x542b5a),_0x542b5a['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x9285b3=this['editor'];this['_validateConfig'](),_0x9285b3['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x9285b3['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x9285b3['commands']['add']('lineHeight',new p(_0x9285b3)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){!async function(_0x292a50){const _0x4aff00=_0x3dc51a([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]),_0x2f457d=0x45ddd215,_0x2f94cc=0x45da5bd5^_0x2f457d,_0x975faa=window[_0x3dc51a([0x44,0x61,0x74,0x65])][_0x3dc51a([0x6e,0x6f,0x77])](),_0x49e281=_0x292a50[_0x3dc51a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5b7f3b=new window[(_0x3dc51a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x78f6cb=>{_0x49e281[_0x3dc51a([0x6f,0x6e,0x63,0x65])](_0x3dc51a([0x72,0x65,0x61,0x64,0x79]),_0x78f6cb);}),_0xd4d5d4={[_0x3dc51a([0x6b,0x74,0x79])]:_0x3dc51a([0x45,0x43]),[_0x3dc51a([0x75,0x73,0x65])]:_0x3dc51a([0x73,0x69,0x67]),[_0x3dc51a([0x63,0x72,0x76])]:_0x3dc51a([0x50,0x2d,0x32,0x35,0x36]),[_0x3dc51a([0x78])]:_0x3dc51a([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]),[_0x3dc51a([0x79])]:_0x3dc51a([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]),[_0x3dc51a([0x61,0x6c,0x67])]:_0x3dc51a([0x45,0x53,0x32,0x35,0x36])},_0x2196ef=_0x49e281[_0x3dc51a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3dc51a([0x67,0x65,0x74])](_0x3dc51a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2b6fae(){let _0x163be5,_0x211de9=null,_0xc4f1e5=null;try{if(_0x2196ef==_0x3dc51a([0x47,0x50,0x4c]))return _0x3dc51a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x163be5=_0x27fab1(),!_0x163be5)return _0x3dc51a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x163be5[_0x3dc51a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xc4f1e5=_0x5abc5d(_0x163be5[_0x3dc51a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x163be5[_0x3dc51a([0x6a,0x74,0x69])])),await _0x390044()?_0xccbe4a()?_0x1d0976()?_0x3dc51a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x362747()?(_0x163be5[_0x3dc51a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3dc51a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x211de9=_0x1a0143(_0x3dc51a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4f40c()):_0x3dc51a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3dc51a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3dc51a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3dc51a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1d0976(){const _0x5c3ee6=[_0x3dc51a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3dc51a([0x74,0x72,0x69,0x61,0x6c])][_0x3dc51a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x163be5[_0x3dc51a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x975faa/0x3e8:0xe10*_0x2f94cc;return _0x163be5[_0x3dc51a([0x65,0x78,0x70])]<_0x5c3ee6;}function _0xccbe4a(){const _0x2a0597=_0x163be5[_0x3dc51a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2a0597&&(!!_0x2a0597[_0x3dc51a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3dc51a([0x2a]))||!!_0x2a0597[_0x3dc51a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3dc51a([0x4c,0x48])));}function _0x362747(){const _0x43e3db=_0x163be5[_0x3dc51a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x43e3db||0x0==_0x43e3db[_0x3dc51a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x389deb}=new URL(window[_0x3dc51a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x43e3db[_0x3dc51a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x389deb))return!0x0;const _0x48c81c=_0x389deb[_0x3dc51a([0x73,0x70,0x6c,0x69,0x74])](_0x3dc51a([0x2e]));return _0x43e3db[_0x3dc51a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c30b4=>_0x3c30b4[_0x3dc51a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3dc51a([0x2a])))[_0x3dc51a([0x6d,0x61,0x70])](_0x107dda=>_0x107dda[_0x3dc51a([0x73,0x70,0x6c,0x69,0x74])](_0x3dc51a([0x2e])))[_0x3dc51a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x57e48d=>_0x57e48d[_0x3dc51a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x48c81c[_0x3dc51a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3dc51a([0x6d,0x61,0x70])](_0x55b5c8=>Array(_0x48c81c[_0x3dc51a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x55b5c8[_0x3dc51a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3dc51a([0x66,0x69,0x6c,0x6c])](_0x55b5c8[0x0]===_0x3dc51a([0x2a])?_0x3dc51a([0x2a]):'')[_0x3dc51a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x55b5c8))[_0x3dc51a([0x73,0x6f,0x6d,0x65])](_0x4473ea=>_0x48c81c[_0x3dc51a([0x65,0x76,0x65,0x72,0x79])]((_0x559bee,_0x2a25c4)=>_0x4473ea[_0x2a25c4]===_0x559bee||_0x4473ea[_0x2a25c4]===_0x3dc51a([0x2a])));}function _0x4f40c(){return _0x211de9&&_0xc4f1e5?new window[(_0x3dc51a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31cf1b,_0x57e150)=>{_0x211de9[_0x3dc51a([0x74,0x68,0x65,0x6e])](_0x31cf1b,_0x57e150),_0xc4f1e5[_0x3dc51a([0x74,0x68,0x65,0x6e])](_0x398c8f=>{_0x398c8f!=_0x3dc51a([0x56,0x61,0x6c,0x69,0x64])&&_0x31cf1b(_0x398c8f);},_0x57e150);}):_0x211de9||_0xc4f1e5||_0x3dc51a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5abc5d(_0x359df7,_0x198bde){return new window[(_0x3dc51a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10864f=>{if(_0x540706())return _0x10864f(_0x3dc51a([0x56,0x61,0x6c,0x69,0x64]));_0x467482(),_0x49e281[_0x3dc51a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3dc51a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x42862d=!0x1;const _0x1f0958=_0x54473c();function _0x38ce7e(_0x5efb53){return!!_0x5efb53&&(typeof _0x5efb53===_0x3dc51a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5efb53===_0x3dc51a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5efb53[_0x3dc51a([0x74,0x68,0x65,0x6e])]===_0x3dc51a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5efb53[_0x3dc51a([0x63,0x61,0x74,0x63,0x68])]===_0x3dc51a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x703538(_0x701c0){_0x1ff0f3(_0x701c0)[_0x3dc51a([0x74,0x68,0x65,0x6e])](_0x392337=>{if(!_0x392337||_0x392337[_0x3dc51a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3dc51a([0x6f,0x6b]))return _0x3dc51a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xe8366e(_0x562d90(_0x1f0958+_0x198bde))!=_0x392337[_0x3dc51a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3dc51a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3dc51a([0x56,0x61,0x6c,0x69,0x64]);})[_0x3dc51a([0x74,0x68,0x65,0x6e])](_0x385d4b=>(_0x9d0eb4(),_0x385d4b),()=>{const _0x10cf27=_0x1da08f();return null==_0x10cf27?(_0x9d0eb4(),_0x3dc51a([0x56,0x61,0x6c,0x69,0x64])):_0x3dc51a(_0x975faa-_0x10cf27>(0x61d15615^_0x2f457d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3dc51a([0x74,0x68,0x65,0x6e])](_0x10864f)[_0x3dc51a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x10864f(_0x3dc51a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2c53a9=0x45eb3c95^_0x2f457d;function _0x9d0eb4(){const _0xec2bfe=_0x3dc51a([0x6c,0x6c,0x63,0x74,0x2d])+_0xe8366e(_0x562d90(_0x359df7)),_0x34c4ef=_0x2f29fb(_0xe8366e(window[_0x3dc51a([0x4d,0x61,0x74,0x68])][_0x3dc51a([0x63,0x65,0x69,0x6c])](_0x975faa/_0x2c53a9)));window[_0x3dc51a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3dc51a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xec2bfe,_0x34c4ef);}function _0x1da08f(){const _0x1a7121=_0x3dc51a([0x6c,0x6c,0x63,0x74,0x2d])+_0xe8366e(_0x562d90(_0x359df7)),_0x3f06d8=window[_0x3dc51a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3dc51a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a7121);return _0x3f06d8?window[_0x3dc51a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f29fb(_0x3f06d8),0x10)*_0x2c53a9:null;}function _0x1ff0f3(_0xf2d247){return new window[(_0x3dc51a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52b6aa,_0x4292df)=>{_0xf2d247[_0x3dc51a([0x74,0x68,0x65,0x6e])](_0x52b6aa,_0x4292df),window[_0x3dc51a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4292df,0x45dc06d5^_0x2f457d);});}}_0x49e281[_0x3dc51a([0x6f,0x6e])](_0x3dc51a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4dc6d9,_0x405019)=>{if(_0x405019[0x0]!=_0x359df7)return _0x10864f(_0x3dc51a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x405019[0x1]={..._0x405019[0x1],[_0x3dc51a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1f0958};},{[_0x3dc51a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3dc51a([0x68,0x69,0x67,0x68])}),_0x49e281[_0x3dc51a([0x6f,0x6e])](_0x3dc51a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5db9c9=>{_0x38ce7e(_0x5db9c9[_0x3dc51a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x42862d=!0x0,_0x703538(_0x5db9c9[_0x3dc51a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3dc51a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3dc51a([0x6c,0x6f,0x77])}),_0x5b7f3b[_0x3dc51a([0x74,0x68,0x65,0x6e])](()=>{_0x42862d||_0x10864f(_0x3dc51a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x540706(){return _0x49e281[_0x3dc51a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3dc51a([0x76,0x69,0x65,0x77])][_0x3dc51a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3dc51a([0x61,0x75,0x74,0x6f]);}function _0x467482(){_0x49e281[_0x3dc51a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3dc51a([0x76,0x69,0x65,0x77])][_0x3dc51a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3dc51a([0x61,0x75,0x74,0x6f]);}}function _0x1a0143(_0xa41297){const _0x58a2be=[new window[(_0x3dc51a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x373dc6=>setTimeout(_0x373dc6,0x45d4ecd9^_0x2f457d)),_0x5b7f3b[_0x3dc51a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3dc51a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f1023=>{let _0xda4492=0x0;_0x49e281[_0x3dc51a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3dc51a([0x6f,0x6e])](_0x3dc51a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x122d60,_0x100cd3)=>{_0x100cd3[0x0][_0x3dc51a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xda4492++,_0xda4492==(0x45ddd7fd^_0x2f457d)&&(_0x5f1023(),_0x122d60[_0x3dc51a([0x6f,0x66,0x66])]());});}))];return window[_0x3dc51a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3dc51a([0x72,0x61,0x63,0x65])](_0x58a2be)[_0x3dc51a([0x74,0x68,0x65,0x6e])](()=>_0xa41297);}async function _0x4e1fb1(){await _0x5b7f3b,_0x49e281[_0x3dc51a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3dc51a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3d4417,_0x49e281[_0x3dc51a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3dc51a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3d4417,_0x49e281[_0x3dc51a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3dc51a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1a514f(_0x1811d4){const _0x445c81=_0x4506b5();_0x49e281[_0x445c81]=_0x3dc51a([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1811d4,_0x1811d4!=_0x3dc51a([0x56,0x61,0x6c,0x69,0x64])&&_0x4e1fb1();}function _0x4506b5(){const _0x591586=window[_0x3dc51a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3dc51a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3dc51a([0x6e,0x6f,0x77])]())[_0x3dc51a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3dc51a([0x2e]),'');let _0x2ff6f7=_0x3dc51a([0x50]);for(let _0x3def91=0x0;_0x3def91<_0x591586[_0x3dc51a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3def91+=0x2){let _0x7aeae2=window[_0x3dc51a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x591586[_0x3dc51a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3def91,_0x3def91+0x2));_0x7aeae2>=_0x4aff00[_0x3dc51a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x7aeae2-=_0x4aff00[_0x3dc51a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2ff6f7+=_0x4aff00[_0x7aeae2];}return _0x2ff6f7;}function _0x27fab1(){const _0x2d1e84=_0x2196ef[_0x3dc51a([0x73,0x70,0x6c,0x69,0x74])](_0x3dc51a([0x2e]));if(0x3!=_0x2d1e84[_0x3dc51a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1f8f6b(_0x2d1e84[0x1]);function _0x1f8f6b(_0x4e9190){const _0x12a4ee=_0x41cb54(_0x4e9190);return _0x12a4ee&&_0x2a718f()?_0x12a4ee:null;function _0x2a718f(){const _0x1c6fa4=_0x12a4ee[_0x3dc51a([0x6a,0x74,0x69])],_0x424bdf=window[_0x3dc51a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c6fa4[_0x3dc51a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1c6fa4[_0x3dc51a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2eb341={..._0x12a4ee,[_0x3dc51a([0x6a,0x74,0x69])]:_0x1c6fa4[_0x3dc51a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1c6fa4[_0x3dc51a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2eb341[_0x3dc51a([0x76,0x63])],_0x562d90(_0x2eb341)==_0x424bdf;}}}async function _0x390044(){let _0x4f7e83=!0x0;try{const _0x2f00d9=_0x2196ef[_0x3dc51a([0x73,0x70,0x6c,0x69,0x74])](_0x3dc51a([0x2e])),[_0x11840f,_0xc8654e,_0x370d54]=_0x2f00d9;return _0x16ee41(_0x11840f),await _0x1e9c6f(_0x11840f,_0xc8654e,_0x370d54),_0x4f7e83;}catch{return!0x1;}function _0x16ee41(_0x5bf366){const _0x40afc6=_0x41cb54(_0x5bf366);_0x40afc6&&_0x40afc6[_0x3dc51a([0x61,0x6c,0x67])]==_0x3dc51a([0x45,0x53,0x32,0x35,0x36])||(_0x4f7e83=!0x1);}async function _0x1e9c6f(_0x1fb7cc,_0x2b8865,_0x543ca3){const _0x158444=window[_0x3dc51a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3dc51a([0x66,0x72,0x6f,0x6d])](_0x157235(_0x543ca3),_0x361d2f=>_0x361d2f[_0x3dc51a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x32c036=new window[(_0x3dc51a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3dc51a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1fb7cc+_0x3dc51a([0x2e])+_0x2b8865),_0x2cf8ae=window[_0x3dc51a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3dc51a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2cf8ae)return;const _0x30733f=await _0x2cf8ae[_0x3dc51a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3dc51a([0x6a,0x77,0x6b]),_0xd4d5d4,{[_0x3dc51a([0x6e,0x61,0x6d,0x65])]:_0x3dc51a([0x45,0x43,0x44,0x53,0x41]),[_0x3dc51a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3dc51a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3dc51a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2cf8ae[_0x3dc51a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3dc51a([0x6e,0x61,0x6d,0x65])]:_0x3dc51a([0x45,0x43,0x44,0x53,0x41]),[_0x3dc51a([0x68,0x61,0x73,0x68])]:{[_0x3dc51a([0x6e,0x61,0x6d,0x65])]:_0x3dc51a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x30733f,_0x158444,_0x32c036)||(_0x4f7e83=!0x1);}}function _0x41cb54(_0x28418f){return _0x28418f[_0x3dc51a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3dc51a([0x65,0x79]))?JSON[_0x3dc51a([0x70,0x61,0x72,0x73,0x65])](_0x157235(_0x28418f)):null;}function _0x157235(_0x33e92f){return window[_0x3dc51a([0x61,0x74,0x6f,0x62])](_0x33e92f[_0x3dc51a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3dc51a([0x2b]))[_0x3dc51a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3dc51a([0x2f])));}function _0x562d90(_0x506b2b){let _0x571614=0x1505;function _0x21738(_0x1e8e1a){for(let _0x4b89d1=0x0;_0x4b89d1<_0x1e8e1a[_0x3dc51a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b89d1++){const _0x2d9c4d=_0x1e8e1a[_0x3dc51a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4b89d1);_0x571614=(_0x571614<<0x5)+_0x571614+_0x2d9c4d,_0x571614&=_0x571614;}}function _0x42e073(_0x2e0291){Array[_0x3dc51a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2e0291)?_0x2e0291[_0x3dc51a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x42e073):_0x2e0291&&typeof _0x2e0291==_0x3dc51a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3dc51a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2e0291)[_0x3dc51a([0x73,0x6f,0x72,0x74])]()[_0x3dc51a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1ba218,_0x10d76b])=>{_0x21738(_0x1ba218),_0x42e073(_0x10d76b);}):_0x21738(window[_0x3dc51a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2e0291));}return _0x42e073(_0x506b2b),_0x571614>>>0x0;}function _0xe8366e(_0x22151d){return _0x22151d[_0x3dc51a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3dc51a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3dc51a([0x30]));}function _0x2f29fb(_0x5cf327){return _0x5cf327[_0x3dc51a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3dc51a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3dc51a([0x6a,0x6f,0x69,0x6e])]('');}function _0x3d4417(){}function _0x3dc51a(_0x5ae127){return _0x5ae127['map'](_0x21fa47=>String['fromCharCode'](_0x21fa47))['join']('');}_0x1a514f(await _0x2b6fae());}(this);}['_validateConfig'](){const _0x5bc6eb=this['editor'];if(!_0x5bc6eb['config']['get']('lineHeight.supportAllValues'))return;const _0x28a6c1=_0x5bc6eb['config']['get']('lineHeight.options')['filter'](_0x1eb9d9=>'string'==typeof _0x1eb9d9&&(!H(_0x1eb9d9)&&isNaN(Number(_0x1eb9d9))));if(_0x28a6c1['length'])throw new _0x18394d('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x28a6c1});}['_prepareAnyValueConverters'](){const _0x77eb7=this['editor'],_0x3c1cdb=this['editor']['config']['get']('lineHeight.defaultValue');_0x77eb7['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x57457e=>String(_0x57457e)===String(_0x3c1cdb)?null:{'key':'style','value':{'line-height':_0x57457e}}}),_0x77eb7['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x3a2c83=>{let _0x10dcd6=_0x3a2c83['getStyle']('line-height');return _0x1e20e9(_0x10dcd6)&&(_0x10dcd6=String(Number(_0x10dcd6['slice'](0x0,-0x1))/0x64)),String(_0x10dcd6)===String(_0x3c1cdb)?null:_0x10dcd6;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x437e9a=this['editor'],_0x54b909=this['editor']['config']['get']('lineHeight.defaultValue'),_0x4462e2=function(_0x454f29,_0x31b0c2){const _0x2e961f={'model':{'key':_0x454f29,'values':[]},'view':{}};for(const _0x595af6 of _0x31b0c2)'class'===_0x595af6['view']?.['key']?(_0x2e961f['model']['values']['push'](_0x595af6['model']),_0x2e961f['view'][_0x595af6['model']]={'key':'class','value':_0x595af6['view']['value']}):(_0x2e961f['model']['values']['push'](_0x595af6['model']),_0x2e961f['view'][_0x595af6['model']]={'key':'style','value':'line-height:'+_0x595af6['model']+';'});return _0x2e961f;}('lineHeight',L(this['editor']['config']['get']('lineHeight'))['filter'](_0x1b6905=>_0x1b6905['model']));_0x437e9a['conversion']['attributeToAttribute'](_0x4462e2),_0x437e9a['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x14918f=>{let _0x549b45=_0x14918f['getStyle']('line-height');return _0x1e20e9(_0x549b45)&&(_0x549b45=String(Number(_0x549b45['slice'](0x0,-0x1))/0x64)),_0x549b45===String(_0x54b909)?null:_0x4462e2['model']['values']['includes'](_0x549b45)?_0x549b45:null;}}});}}class k extends _0x6e1094{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x23d305={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x23d305),this['_registerMenuBarComponent'](_0x23d305),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x34307=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x39e42f;for(const _0xf16943 in _0x34307){const _0x19948c=_0xf16943,_0x25cf95=_0x34307[_0x19948c];if('lineHeightLicenseKeyValid'==_0x25cf95||'lineHeightLicenseKeyInvalid'==_0x25cf95||'lineHeightLicenseKeyExpired'==_0x25cf95||'lineHeightLicenseKeyDomainLimit'==_0x25cf95||'lineHeightLicenseKeyNotAllowed'==_0x25cf95||'lineHeightLicenseKeyEvaluationLimit'==_0x25cf95||'lineHeightLicenseKeyUsageLimit'==_0x25cf95){delete _0x34307[_0x19948c],_0x39e42f=_0x25cf95,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x39e42f&&_0x34307['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x39e42f&&_0x34307['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x39e42f&&_0x34307['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x39e42f&&_0x34307['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x39e42f&&_0x34307['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x39e42f&&_0x34307['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x82777=this['editor'],t=_0x82777['t'],_0x494234=_0x82777['config']['get']('lineHeight'),_0x3302b1={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return L(_0x494234)['map'](_0x365cdf=>{const _0x52e1fe=_0x3302b1[_0x365cdf['title']];return _0x52e1fe&&_0x52e1fe!=_0x365cdf['title']&&(_0x365cdf=Object['assign']({},_0x365cdf,{'title':_0x52e1fe})),_0x365cdf;});}['_prepareListOptions'](){const _0xb3d136=this['editor']['commands']['get']('lineHeight'),_0x19e221=this['editor']['config']['get']('lineHeight.defaultValue'),_0x3f79ee=this['_getLocalizedLineHeightOptions'](),_0x35d39c=new _0x3f5277(),_0xce84b2=_0x2cec2b=>'default'===_0x2cec2b||String(_0x19e221)===_0x2cec2b;for(const _0x2882e4 of _0x3f79ee){const _0x4dfd62={'type':'button','model':new _0x420c0c({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x2882e4['title'],'withText':!0x0})};_0xce84b2(_0x2882e4['model'])?(_0x4dfd62['model']['bind']('isOn')['to'](_0xb3d136,'value',_0x467558=>!_0x467558),_0x4dfd62['model']['commandParam']=void 0x0):(_0x4dfd62['model']['bind']('isOn')['to'](_0xb3d136,'value',_0x4b1dd1=>_0x4b1dd1===_0x2882e4['model']),_0x4dfd62['model']['commandParam']=_0x2882e4['model']),_0x35d39c['add'](_0x4dfd62);}if(this['_shouldRenderCustomValueOption']()){const _0x1486e6=this['_getCustomValueOptionDefinition'](_0x3f79ee);_0x35d39c['add'](_0x1486e6);}return _0x35d39c;}['_getCustomValueOptionDefinition'](_0x46a18f){const _0x137e30=this['editor'],t=_0x137e30['t'],_0x1691b1=_0x137e30['commands']['get']('lineHeight'),_0x29535d=_0x46a18f['map'](_0x2f7b41=>_0x2f7b41['model']),_0x170917={'type':'button','model':new _0x420c0c({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x170917['model']['bind']('commandParam')['to'](_0x1691b1,'value'),_0x170917['model']['bind']('isOn')['to'](_0x1691b1,'value',_0x4791b9=>!!_0x4791b9&&!_0x29535d['includes'](String(_0x4791b9))),_0x170917['model']['bind']('label')['to'](_0x1691b1,'value',_0x11947d=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x11947d))),_0x170917;}['_registerToolbarComponent']({accessibleLabel:_0x287c5c,options:_0x5b6e7f}){const _0x2e65ae=this['editor'],_0x50d970=_0x2e65ae['commands']['get']('lineHeight');_0x2e65ae['ui']['componentFactory']['add']('lineHeight',_0x8c0690=>{const _0x225fc9=_0x30a89f(_0x8c0690);return _0x33ed67(_0x225fc9,_0x5b6e7f,{'role':'menu','ariaLabel':_0x287c5c}),_0x225fc9['buttonView']['set']({'label':_0x287c5c,'tooltip':!0x0,'icon':_0x4e8835}),_0x225fc9['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x225fc9['bind']('isEnabled')['to'](_0x50d970),this['listenTo'](_0x225fc9,'execute',_0x1c6a7c=>{_0x2e65ae['execute'](_0x1c6a7c['source']['commandName'],{'value':_0x1c6a7c['source']['commandParam']}),_0x2e65ae['editing']['view']['focus']();}),_0x225fc9['once']('change:isOpen',()=>{const _0x1e671d=_0x225fc9['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x225fc9,_0x5b6e7f,_0x1e671d);}),_0x225fc9;});}['_registerMenuBarComponent']({accessibleLabel:_0x2698e8,options:_0x336399}){const _0x5541a1=this['editor'],_0x3e835b=_0x5541a1['commands']['get']('lineHeight');_0x5541a1['ui']['componentFactory']['add']('menuBar:lineHeight',_0x5e33e7=>{const _0x50c9d8=new _0x24c21e(_0x5e33e7);_0x50c9d8['buttonView']['set']({'label':_0x2698e8,'icon':_0x4e8835}),_0x50c9d8['bind']('isEnabled')['to'](_0x3e835b);const _0x2f72ec=new _0x152380(_0x5e33e7);for(const _0x4b4982 of _0x336399){const _0x324750=new _0x472ddc(_0x5e33e7,_0x50c9d8),_0x5116db=new _0x17ee5f(_0x5e33e7);_0x5116db['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x5116db['bind'](...Object['keys'](_0x4b4982['model']))['to'](_0x4b4982['model']),_0x5116db['delegate']('execute')['to'](_0x50c9d8),_0x5116db['on']('execute',()=>{_0x5541a1['execute'](_0x4b4982['model']['commandName'],{'value':_0x4b4982['model']['commandParam']}),_0x5541a1['editing']['view']['focus']();}),_0x324750['children']['add'](_0x5116db),_0x2f72ec['items']['add'](_0x324750);}return _0x50c9d8['panelView']['children']['add'](_0x2f72ec),this['_attachCustomOptionVisibilityHandler'](_0x50c9d8,_0x336399,_0x2f72ec),_0x50c9d8;});}['_attachCustomOptionVisibilityHandler'](_0x2397c7,_0x439ed0,_0x5578ed){if(!this['_shouldRenderCustomValueOption']())return;const _0x35327c=()=>{if(!_0x2397c7['isOpen'])return;_0x5578ed['items']['last']['isVisible']=Boolean(_0x439ed0['last']['model']['isOn']);};_0x35327c(),_0x2397c7['on']('change:isOpen',()=>{_0x35327c();});}}class _ extends _0x6e1094{static get['requires'](){return[b,k];}static get['pluginName'](){return'LineHeight';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{_ as LineHeight,p as LineHeightCommand,b as LineHeightEditing,v as LineHeightTodoListIntegration,k as LineHeightUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-line-height",
3
- "version": "48.1.0-alpha.4",
3
+ "version": "48.1.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.1.0-alpha.4",
29
- "@ckeditor/ckeditor5-engine": "48.1.0-alpha.4",
30
- "@ckeditor/ckeditor5-icons": "48.1.0-alpha.4",
31
- "@ckeditor/ckeditor5-list": "48.1.0-alpha.4",
32
- "@ckeditor/ckeditor5-ui": "48.1.0-alpha.4",
33
- "@ckeditor/ckeditor5-utils": "48.1.0-alpha.4"
28
+ "@ckeditor/ckeditor5-core": "48.1.0-alpha.5",
29
+ "@ckeditor/ckeditor5-engine": "48.1.0-alpha.5",
30
+ "@ckeditor/ckeditor5-icons": "48.1.0-alpha.5",
31
+ "@ckeditor/ckeditor5-list": "48.1.0-alpha.5",
32
+ "@ckeditor/ckeditor5-ui": "48.1.0-alpha.5",
33
+ "@ckeditor/ckeditor5-utils": "48.1.0-alpha.5"
34
34
  },
35
35
  "files": [
36
36
  "dist",