@ckeditor/ckeditor5-line-height 48.0.0-alpha.0 → 48.0.0-alpha.2

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 _0x4252f2,Plugin as _0x254f6a}from'@ckeditor/ckeditor5-core/dist/index.js';import{first as _0xe865a6,CKEditorError as _0x3b11b5,uid as _0x17306b,Collection as _0x52ab97}from'@ckeditor/ckeditor5-utils/dist/index.js';import{Matcher as _0x1143f8,isPercentageStyleValue as _0x29c384}from'@ckeditor/ckeditor5-engine/dist/index.js';import{UIModel as _0x2a7d5d,createDropdown as _0xe17275,addListToDropdown as _0x1a2513,MenuBarMenuView as _0x237cec,MenuBarMenuListView as _0x48380b,MenuBarMenuListItemView as _0x5f3701,MenuBarMenuListItemButtonView as _0x23e588}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconLineHeight as _0x2ba3b7}from'@ckeditor/ckeditor5-icons/dist/index.js';class p extends _0x4252f2{['refresh'](){const _0x1a7d98=this['editor']['model']['document'],_0x19bfe7=_0xe865a6(_0x1a7d98['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x19bfe7)&&this['_canHaveLineHeight'](_0x19bfe7),this['value']=this['isEnabled']&&_0x19bfe7['getAttribute']('lineHeight');}['execute'](_0x1e69f1={}){const _0x3a6034=this['editor']['model'],_0x2cf04a=_0x3a6034['document']['selection'],_0x235fc3=_0x1e69f1['value'];_0x3a6034['change'](_0x1a0fd7=>{const _0x92505b=Array['from'](_0x2cf04a['getSelectedBlocks']())['filter'](_0x517425=>this['_canHaveLineHeight'](_0x517425));for(const _0x4336ab of _0x92505b)_0x235fc3?_0x1a0fd7['setAttribute']('lineHeight',_0x235fc3,_0x4336ab):_0x1a0fd7['removeAttribute']('lineHeight',_0x4336ab);});}['_canHaveLineHeight'](_0x32d081){return this['editor']['model']['schema']['checkAttribute'](_0x32d081,'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(_0x2199fa){return'string'==typeof _0x2199fa&&'default'===_0x2199fa['toLowerCase']();}function L(_0x1c9043){return _0x1c9043['options']['map'](_0x291b33=>{return H(_0x291b33)?{'title':String(_0x1c9043['defaultValue']),'model':'default'}:('number'==typeof _0x291b33&&(_0x291b33=String(_0x291b33)),'string'!=typeof _0x291b33?_0x291b33:parseFloat(_0x291b33)?{'title':_0x291b33,'model':_0x291b33,'view':{'name':'span','styles':{'line-height':_0x291b33}}}:'string'==typeof(_0x315711=_0x291b33)?y[_0x315711]:y[_0x315711['model']]);var _0x315711;})['filter'](_0x16bd1e=>void 0x0!==_0x16bd1e);}class v extends _0x254f6a{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x440942,conversion:_0x2846b8}=this['editor'];if(!_0x440942['has']('ListEditing')||!_0x440942['has']('TodoListEditing'))return;_0x440942['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x429b01,_0x5a28be,_0x513e62,_0x15a8a5,_0x1076ef){'todo'==_0x1076ef['getAttribute']('listType')&&_0x5a28be&&(_0x429b01['addClass']('ck-list-marker-line-height',_0x513e62),_0x429b01['setStyle']('--ck-content-list-marker-line-height',_0x5a28be,_0x513e62));}}),_0x2846b8['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x2846b8['for']('upcast')['add'](_0x98d15a=>{_0x98d15a['on']('element:li',function(_0x938db6){const _0x3f8ab1=new _0x1143f8(_0x938db6);return(_0x3c02b6,_0x319212,_0x251bca)=>{const _0x1c3194=_0x3f8ab1['match'](_0x319212['viewItem']);if(!_0x1c3194)return;const _0x45790a=_0x1c3194['match'];_0x45790a['name']=!0x1,_0x251bca['consumable']['consume'](_0x319212['viewItem'],_0x45790a);};}({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));});}}class b extends _0x254f6a{static get['pluginName'](){return'LineHeightEditing';}static get['requires'](){return[v];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3a3701){super(_0x3a3701),_0x3a3701['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x52faa5=this['editor'];this['_validateConfig'](),_0x52faa5['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x52faa5['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x52faa5['commands']['add']('lineHeight',new p(_0x52faa5)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){!async function(_0x121aff){const _0x3d1c34=_0x4e0547([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]),_0x49c65a=0x45ddd215,_0x1d1751=0x45da56dd^_0x49c65a,_0x1a360a=window[_0x4e0547([0x44,0x61,0x74,0x65])][_0x4e0547([0x6e,0x6f,0x77])](),_0x4d0f4e=_0x121aff[_0x4e0547([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x33d07e=new window[(_0x4e0547([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5afa6f=>{_0x4d0f4e[_0x4e0547([0x6f,0x6e,0x63,0x65])](_0x4e0547([0x72,0x65,0x61,0x64,0x79]),_0x5afa6f);}),_0x46fdb0={[_0x4e0547([0x6b,0x74,0x79])]:_0x4e0547([0x45,0x43]),[_0x4e0547([0x75,0x73,0x65])]:_0x4e0547([0x73,0x69,0x67]),[_0x4e0547([0x63,0x72,0x76])]:_0x4e0547([0x50,0x2d,0x32,0x35,0x36]),[_0x4e0547([0x78])]:_0x4e0547([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]),[_0x4e0547([0x79])]:_0x4e0547([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]),[_0x4e0547([0x61,0x6c,0x67])]:_0x4e0547([0x45,0x53,0x32,0x35,0x36])},_0xa48b44=_0x4d0f4e[_0x4e0547([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4e0547([0x67,0x65,0x74])](_0x4e0547([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2c629e(){let _0x2a2d4a,_0xa7e245=null,_0x231637=null;try{if(_0xa48b44==_0x4e0547([0x47,0x50,0x4c]))return _0x4e0547([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2a2d4a=_0x112b81(),!_0x2a2d4a)return _0x4e0547([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2a2d4a[_0x4e0547([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x231637=_0x4658ea(_0x2a2d4a[_0x4e0547([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2a2d4a[_0x4e0547([0x6a,0x74,0x69])])),await _0xa29595()?_0x21de1c()?_0x75b7a4()?_0x4e0547([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x995d70()?(_0x2a2d4a[_0x4e0547([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e0547([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xa7e245=_0x20bff4(_0x4e0547([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x278a87()):_0x4e0547([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4e0547([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4e0547([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4e0547([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x75b7a4(){const _0x463d36=[_0x4e0547([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4e0547([0x74,0x72,0x69,0x61,0x6c])][_0x4e0547([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a2d4a[_0x4e0547([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1a360a/0x3e8:0xe10*_0x1d1751;return _0x2a2d4a[_0x4e0547([0x65,0x78,0x70])]<_0x463d36;}function _0x21de1c(){const _0x5b08e7=_0x2a2d4a[_0x4e0547([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5b08e7&&(!!_0x5b08e7[_0x4e0547([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e0547([0x2a]))||!!_0x5b08e7[_0x4e0547([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e0547([0x4c,0x48])));}function _0x995d70(){const _0x5b2e30=_0x2a2d4a[_0x4e0547([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5b2e30||0x0==_0x5b2e30[_0x4e0547([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4f4474}=new URL(window[_0x4e0547([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5b2e30[_0x4e0547([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f4474))return!0x0;const _0x521f2c=_0x4f4474[_0x4e0547([0x73,0x70,0x6c,0x69,0x74])](_0x4e0547([0x2e]));return _0x5b2e30[_0x4e0547([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b1de6=>_0x5b1de6[_0x4e0547([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e0547([0x2a])))[_0x4e0547([0x6d,0x61,0x70])](_0x4f698f=>_0x4f698f[_0x4e0547([0x73,0x70,0x6c,0x69,0x74])](_0x4e0547([0x2e])))[_0x4e0547([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x453115=>_0x453115[_0x4e0547([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x521f2c[_0x4e0547([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4e0547([0x6d,0x61,0x70])](_0x1997d3=>Array(_0x521f2c[_0x4e0547([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1997d3[_0x4e0547([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4e0547([0x66,0x69,0x6c,0x6c])](_0x1997d3[0x0]===_0x4e0547([0x2a])?_0x4e0547([0x2a]):'')[_0x4e0547([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1997d3))[_0x4e0547([0x73,0x6f,0x6d,0x65])](_0x59518c=>_0x521f2c[_0x4e0547([0x65,0x76,0x65,0x72,0x79])]((_0x5653b8,_0x261fa3)=>_0x59518c[_0x261fa3]===_0x5653b8||_0x59518c[_0x261fa3]===_0x4e0547([0x2a])));}function _0x278a87(){return _0xa7e245&&_0x231637?new window[(_0x4e0547([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x28e57b,_0x3809c5)=>{_0xa7e245[_0x4e0547([0x74,0x68,0x65,0x6e])](_0x28e57b,_0x3809c5),_0x231637[_0x4e0547([0x74,0x68,0x65,0x6e])](_0x25cbaf=>{_0x25cbaf!=_0x4e0547([0x56,0x61,0x6c,0x69,0x64])&&_0x28e57b(_0x25cbaf);},_0x3809c5);}):_0xa7e245||_0x231637||_0x4e0547([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4658ea(_0x1c2dc0,_0x1dada6){return new window[(_0x4e0547([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48d283=>{if(_0x5b8779())return _0x48d283(_0x4e0547([0x56,0x61,0x6c,0x69,0x64]));_0x105ae7(),_0x4d0f4e[_0x4e0547([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4e0547([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1868a7=!0x1;const _0x257de1=_0x17306b();function _0x8cae68(_0x4ebf7e){return!!_0x4ebf7e&&(typeof _0x4ebf7e===_0x4e0547([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4ebf7e===_0x4e0547([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4ebf7e[_0x4e0547([0x74,0x68,0x65,0x6e])]===_0x4e0547([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4ebf7e[_0x4e0547([0x63,0x61,0x74,0x63,0x68])]===_0x4e0547([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2b8660(_0x5df37d){_0xd81956(_0x5df37d)[_0x4e0547([0x74,0x68,0x65,0x6e])](_0x2a82a7=>{if(!_0x2a82a7||_0x2a82a7[_0x4e0547([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4e0547([0x6f,0x6b]))return _0x4e0547([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xc8f42e(_0x17557b(_0x257de1+_0x1dada6))!=_0x2a82a7[_0x4e0547([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4e0547([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4e0547([0x56,0x61,0x6c,0x69,0x64]);})[_0x4e0547([0x74,0x68,0x65,0x6e])](_0x48b987=>(_0x179501(),_0x48b987),()=>{const _0x1dcdce=_0x7c02f6();return null==_0x1dcdce?(_0x179501(),_0x4e0547([0x56,0x61,0x6c,0x69,0x64])):_0x4e0547(_0x1a360a-_0x1dcdce>(0x61d15615^_0x49c65a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4e0547([0x74,0x68,0x65,0x6e])](_0x48d283)[_0x4e0547([0x63,0x61,0x74,0x63,0x68])](()=>{_0x48d283(_0x4e0547([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3e98a9=0x45eb3c95^_0x49c65a;function _0x179501(){const _0x1baddb=_0x4e0547([0x6c,0x6c,0x63,0x74,0x2d])+_0xc8f42e(_0x17557b(_0x1c2dc0)),_0x457c58=_0x44c624(_0xc8f42e(window[_0x4e0547([0x4d,0x61,0x74,0x68])][_0x4e0547([0x63,0x65,0x69,0x6c])](_0x1a360a/_0x3e98a9)));window[_0x4e0547([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e0547([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1baddb,_0x457c58);}function _0x7c02f6(){const _0x55baa6=_0x4e0547([0x6c,0x6c,0x63,0x74,0x2d])+_0xc8f42e(_0x17557b(_0x1c2dc0)),_0x31f0c6=window[_0x4e0547([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e0547([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x55baa6);return _0x31f0c6?window[_0x4e0547([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44c624(_0x31f0c6),0x10)*_0x3e98a9:null;}function _0xd81956(_0xe77449){return new window[(_0x4e0547([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47ef7f,_0x551594)=>{_0xe77449[_0x4e0547([0x74,0x68,0x65,0x6e])](_0x47ef7f,_0x551594),window[_0x4e0547([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x551594,0x45dc06d5^_0x49c65a);});}}_0x4d0f4e[_0x4e0547([0x6f,0x6e])](_0x4e0547([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x14dc85,_0x5d763d)=>{if(_0x5d763d[0x0]!=_0x1c2dc0)return _0x48d283(_0x4e0547([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5d763d[0x1]={..._0x5d763d[0x1],[_0x4e0547([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x257de1};},{[_0x4e0547([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e0547([0x68,0x69,0x67,0x68])}),_0x4d0f4e[_0x4e0547([0x6f,0x6e])](_0x4e0547([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x36c5c8=>{_0x8cae68(_0x36c5c8[_0x4e0547([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1868a7=!0x0,_0x2b8660(_0x36c5c8[_0x4e0547([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4e0547([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e0547([0x6c,0x6f,0x77])}),_0x33d07e[_0x4e0547([0x74,0x68,0x65,0x6e])](()=>{_0x1868a7||_0x48d283(_0x4e0547([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b8779(){return _0x4d0f4e[_0x4e0547([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e0547([0x76,0x69,0x65,0x77])][_0x4e0547([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4e0547([0x61,0x75,0x74,0x6f]);}function _0x105ae7(){_0x4d0f4e[_0x4e0547([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e0547([0x76,0x69,0x65,0x77])][_0x4e0547([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4e0547([0x61,0x75,0x74,0x6f]);}}function _0x20bff4(_0x50ae89){const _0x4d1361=[new window[(_0x4e0547([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f43a3=>setTimeout(_0x5f43a3,0x45d4ecd9^_0x49c65a)),_0x33d07e[_0x4e0547([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4e0547([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a37f5=>{let _0x3942fc=0x0;_0x4d0f4e[_0x4e0547([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e0547([0x6f,0x6e])](_0x4e0547([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x6fa7f7,_0x207e5a)=>{_0x207e5a[0x0][_0x4e0547([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3942fc++,_0x3942fc==(0x45ddd7fd^_0x49c65a)&&(_0x3a37f5(),_0x6fa7f7[_0x4e0547([0x6f,0x66,0x66])]());});}))];return window[_0x4e0547([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4e0547([0x72,0x61,0x63,0x65])](_0x4d1361)[_0x4e0547([0x74,0x68,0x65,0x6e])](()=>_0x50ae89);}async function _0x49d717(){await _0x33d07e,_0x4d0f4e[_0x4e0547([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e0547([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x23cd39,_0x4d0f4e[_0x4e0547([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e0547([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x23cd39,_0x4d0f4e[_0x4e0547([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4e0547([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x238a81(_0x509418){const _0x1e83ee=_0x52910a();_0x4d0f4e[_0x1e83ee]=_0x4e0547([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x509418,_0x509418!=_0x4e0547([0x56,0x61,0x6c,0x69,0x64])&&_0x49d717();}function _0x52910a(){const _0x50e87e=window[_0x4e0547([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4e0547([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4e0547([0x6e,0x6f,0x77])]())[_0x4e0547([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4e0547([0x2e]),'');let _0xf7880c=_0x4e0547([0x50]);for(let _0x51f74e=0x0;_0x51f74e<_0x50e87e[_0x4e0547([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x51f74e+=0x2){let _0x43de3a=window[_0x4e0547([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50e87e[_0x4e0547([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51f74e,_0x51f74e+0x2));_0x43de3a>=_0x3d1c34[_0x4e0547([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x43de3a-=_0x3d1c34[_0x4e0547([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xf7880c+=_0x3d1c34[_0x43de3a];}return _0xf7880c;}function _0x112b81(){const _0x3eb661=_0xa48b44[_0x4e0547([0x73,0x70,0x6c,0x69,0x74])](_0x4e0547([0x2e]));if(0x3!=_0x3eb661[_0x4e0547([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5744c(_0x3eb661[0x1]);function _0x5744c(_0x28dfe1){const _0x3f9d74=_0x1d4ae6(_0x28dfe1);return _0x3f9d74&&_0x5e1700()?_0x3f9d74:null;function _0x5e1700(){const _0x1ed709=_0x3f9d74[_0x4e0547([0x6a,0x74,0x69])],_0x48267b=window[_0x4e0547([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ed709[_0x4e0547([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ed709[_0x4e0547([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x440ad0={..._0x3f9d74,[_0x4e0547([0x6a,0x74,0x69])]:_0x1ed709[_0x4e0547([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1ed709[_0x4e0547([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x440ad0[_0x4e0547([0x76,0x63])],_0x17557b(_0x440ad0)==_0x48267b;}}}async function _0xa29595(){let _0xb31570=!0x0;try{const _0x506fd5=_0xa48b44[_0x4e0547([0x73,0x70,0x6c,0x69,0x74])](_0x4e0547([0x2e])),[_0x482297,_0x2b7607,_0x1ea647]=_0x506fd5;return _0x143294(_0x482297),await _0x12f40f(_0x482297,_0x2b7607,_0x1ea647),_0xb31570;}catch{return!0x1;}function _0x143294(_0x2048b9){const _0x4849f3=_0x1d4ae6(_0x2048b9);_0x4849f3&&_0x4849f3[_0x4e0547([0x61,0x6c,0x67])]==_0x4e0547([0x45,0x53,0x32,0x35,0x36])||(_0xb31570=!0x1);}async function _0x12f40f(_0x15c0a1,_0x53b557,_0x51be24){const _0x3c4bc9=window[_0x4e0547([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4e0547([0x66,0x72,0x6f,0x6d])](_0x42f071(_0x51be24),_0x447e8c=>_0x447e8c[_0x4e0547([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x26762e=new window[(_0x4e0547([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4e0547([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x15c0a1+_0x4e0547([0x2e])+_0x53b557),_0x1baa72=window[_0x4e0547([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4e0547([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1baa72)return;const _0x489ca3=await _0x1baa72[_0x4e0547([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4e0547([0x6a,0x77,0x6b]),_0x46fdb0,{[_0x4e0547([0x6e,0x61,0x6d,0x65])]:_0x4e0547([0x45,0x43,0x44,0x53,0x41]),[_0x4e0547([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4e0547([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4e0547([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1baa72[_0x4e0547([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4e0547([0x6e,0x61,0x6d,0x65])]:_0x4e0547([0x45,0x43,0x44,0x53,0x41]),[_0x4e0547([0x68,0x61,0x73,0x68])]:{[_0x4e0547([0x6e,0x61,0x6d,0x65])]:_0x4e0547([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x489ca3,_0x3c4bc9,_0x26762e)||(_0xb31570=!0x1);}}function _0x1d4ae6(_0x423f14){return _0x423f14[_0x4e0547([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4e0547([0x65,0x79]))?JSON[_0x4e0547([0x70,0x61,0x72,0x73,0x65])](_0x42f071(_0x423f14)):null;}function _0x42f071(_0x4bcc44){return window[_0x4e0547([0x61,0x74,0x6f,0x62])](_0x4bcc44[_0x4e0547([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4e0547([0x2b]))[_0x4e0547([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4e0547([0x2f])));}function _0x17557b(_0x5bb690){let _0x2d1ba4=0x1505;function _0x4570f8(_0x3a8f69){for(let _0x4864cb=0x0;_0x4864cb<_0x3a8f69[_0x4e0547([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4864cb++){const _0x3da7fa=_0x3a8f69[_0x4e0547([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4864cb);_0x2d1ba4=(_0x2d1ba4<<0x5)+_0x2d1ba4+_0x3da7fa,_0x2d1ba4&=_0x2d1ba4;}}function _0x115e92(_0x51e89f){Array[_0x4e0547([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x51e89f)?_0x51e89f[_0x4e0547([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x115e92):_0x51e89f&&typeof _0x51e89f==_0x4e0547([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4e0547([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x51e89f)[_0x4e0547([0x73,0x6f,0x72,0x74])]()[_0x4e0547([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3f285d,_0x1e7a89])=>{_0x4570f8(_0x3f285d),_0x115e92(_0x1e7a89);}):_0x4570f8(window[_0x4e0547([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x51e89f));}return _0x115e92(_0x5bb690),_0x2d1ba4>>>0x0;}function _0xc8f42e(_0x3f5cfd){return _0x3f5cfd[_0x4e0547([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4e0547([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4e0547([0x30]));}function _0x44c624(_0x2a57ac){return _0x2a57ac[_0x4e0547([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4e0547([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4e0547([0x6a,0x6f,0x69,0x6e])]('');}function _0x23cd39(){}function _0x4e0547(_0x5bc555){return _0x5bc555['map'](_0x1612ec=>String['fromCharCode'](_0x1612ec))['join']('');}_0x238a81(await _0x2c629e());}(this);}['_validateConfig'](){const _0x23a99a=this['editor'];if(!_0x23a99a['config']['get']('lineHeight.supportAllValues'))return;const _0x13604c=_0x23a99a['config']['get']('lineHeight.options')['filter'](_0x106ad=>'string'==typeof _0x106ad&&(!H(_0x106ad)&&isNaN(Number(_0x106ad))));if(_0x13604c['length'])throw new _0x3b11b5('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x13604c});}['_prepareAnyValueConverters'](){const _0x4a4535=this['editor'],_0x3650af=this['editor']['config']['get']('lineHeight.defaultValue');_0x4a4535['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x2e2b35=>String(_0x2e2b35)===String(_0x3650af)?null:{'key':'style','value':{'line-height':_0x2e2b35}}}),_0x4a4535['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x2c3fd6=>{let _0x4f91df=_0x2c3fd6['getStyle']('line-height');return _0x29c384(_0x4f91df)&&(_0x4f91df=String(Number(_0x4f91df['slice'](0x0,-0x1))/0x64)),String(_0x4f91df)===String(_0x3650af)?null:_0x4f91df;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x1bee87=this['editor'],_0x39e092=this['editor']['config']['get']('lineHeight.defaultValue'),_0x122316=function(_0x4c6bc5,_0x5be6b9){const _0x599e48={'model':{'key':_0x4c6bc5,'values':[]},'view':{}};for(const _0x56f53b of _0x5be6b9)'class'===_0x56f53b['view']?.['key']?(_0x599e48['model']['values']['push'](_0x56f53b['model']),_0x599e48['view'][_0x56f53b['model']]={'key':'class','value':_0x56f53b['view']['value']}):(_0x599e48['model']['values']['push'](_0x56f53b['model']),_0x599e48['view'][_0x56f53b['model']]={'key':'style','value':'line-height:'+_0x56f53b['model']+';'});return _0x599e48;}('lineHeight',L(this['editor']['config']['get']('lineHeight'))['filter'](_0x2430bb=>_0x2430bb['model']));_0x1bee87['conversion']['attributeToAttribute'](_0x122316),_0x1bee87['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x388e21=>{let _0x387a96=_0x388e21['getStyle']('line-height');return _0x29c384(_0x387a96)&&(_0x387a96=String(Number(_0x387a96['slice'](0x0,-0x1))/0x64)),_0x387a96===String(_0x39e092)?null:_0x122316['model']['values']['includes'](_0x387a96)?_0x387a96:null;}}});}}class k extends _0x254f6a{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x41c7bf={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x41c7bf),this['_registerMenuBarComponent'](_0x41c7bf),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1d7cdc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x186c10;for(const _0x177a9d in _0x1d7cdc){const _0x2176ae=_0x177a9d,_0x27406c=_0x1d7cdc[_0x2176ae];if('lineHeightLicenseKeyValid'==_0x27406c||'lineHeightLicenseKeyInvalid'==_0x27406c||'lineHeightLicenseKeyExpired'==_0x27406c||'lineHeightLicenseKeyDomainLimit'==_0x27406c||'lineHeightLicenseKeyNotAllowed'==_0x27406c||'lineHeightLicenseKeyEvaluationLimit'==_0x27406c||'lineHeightLicenseKeyUsageLimit'==_0x27406c){delete _0x1d7cdc[_0x2176ae],_0x186c10=_0x27406c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x186c10&&_0x1d7cdc['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x186c10&&_0x1d7cdc['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x186c10&&_0x1d7cdc['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x186c10&&_0x1d7cdc['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x186c10&&_0x1d7cdc['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x186c10&&_0x1d7cdc['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x3246d4=this['editor'],t=_0x3246d4['t'],_0x1d4a55=_0x3246d4['config']['get']('lineHeight'),_0x46779e={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return L(_0x1d4a55)['map'](_0x264097=>{const _0xf0b333=_0x46779e[_0x264097['title']];return _0xf0b333&&_0xf0b333!=_0x264097['title']&&(_0x264097=Object['assign']({},_0x264097,{'title':_0xf0b333})),_0x264097;});}['_prepareListOptions'](){const _0x317711=this['editor']['commands']['get']('lineHeight'),_0x33669f=this['editor']['config']['get']('lineHeight.defaultValue'),_0x5efcbc=this['_getLocalizedLineHeightOptions'](),_0x363d94=new _0x52ab97(),_0x197a35=_0x4a139e=>'default'===_0x4a139e||String(_0x33669f)===_0x4a139e;for(const _0x257604 of _0x5efcbc){const _0x300b7f={'type':'button','model':new _0x2a7d5d({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x257604['title'],'withText':!0x0})};_0x197a35(_0x257604['model'])?(_0x300b7f['model']['bind']('isOn')['to'](_0x317711,'value',_0x1313b9=>!_0x1313b9),_0x300b7f['model']['commandParam']=void 0x0):(_0x300b7f['model']['bind']('isOn')['to'](_0x317711,'value',_0x252659=>_0x252659===_0x257604['model']),_0x300b7f['model']['commandParam']=_0x257604['model']),_0x363d94['add'](_0x300b7f);}if(this['_shouldRenderCustomValueOption']()){const _0x2b5eb1=this['_getCustomValueOptionDefinition'](_0x5efcbc);_0x363d94['add'](_0x2b5eb1);}return _0x363d94;}['_getCustomValueOptionDefinition'](_0x54133a){const _0x236198=this['editor'],t=_0x236198['t'],_0x226866=_0x236198['commands']['get']('lineHeight'),_0xb391c2=_0x54133a['map'](_0x48c9cd=>_0x48c9cd['model']),_0x491435={'type':'button','model':new _0x2a7d5d({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x491435['model']['bind']('commandParam')['to'](_0x226866,'value'),_0x491435['model']['bind']('isOn')['to'](_0x226866,'value',_0x284783=>!!_0x284783&&!_0xb391c2['includes'](String(_0x284783))),_0x491435['model']['bind']('label')['to'](_0x226866,'value',_0x4ae2ec=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x4ae2ec))),_0x491435;}['_registerToolbarComponent']({accessibleLabel:_0x31d206,options:_0x3163e9}){const _0xd7fb1b=this['editor'],_0x1afdcd=_0xd7fb1b['commands']['get']('lineHeight');_0xd7fb1b['ui']['componentFactory']['add']('lineHeight',_0x2d4052=>{const _0x103eca=_0xe17275(_0x2d4052);return _0x1a2513(_0x103eca,_0x3163e9,{'role':'menu','ariaLabel':_0x31d206}),_0x103eca['buttonView']['set']({'label':_0x31d206,'tooltip':!0x0,'icon':_0x2ba3b7}),_0x103eca['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x103eca['bind']('isEnabled')['to'](_0x1afdcd),this['listenTo'](_0x103eca,'execute',_0x54d790=>{_0xd7fb1b['execute'](_0x54d790['source']['commandName'],{'value':_0x54d790['source']['commandParam']}),_0xd7fb1b['editing']['view']['focus']();}),_0x103eca['once']('change:isOpen',()=>{const _0x562c70=_0x103eca['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x103eca,_0x3163e9,_0x562c70);}),_0x103eca;});}['_registerMenuBarComponent']({accessibleLabel:_0x2ebe16,options:_0x2cc31f}){const _0x4aba19=this['editor'],_0x485072=_0x4aba19['commands']['get']('lineHeight');_0x4aba19['ui']['componentFactory']['add']('menuBar:lineHeight',_0x17d165=>{const _0x2e2f75=new _0x237cec(_0x17d165);_0x2e2f75['buttonView']['set']({'label':_0x2ebe16,'icon':_0x2ba3b7}),_0x2e2f75['bind']('isEnabled')['to'](_0x485072);const _0x5aec70=new _0x48380b(_0x17d165);for(const _0xbafd82 of _0x2cc31f){const _0x428824=new _0x5f3701(_0x17d165,_0x2e2f75),_0x414bb7=new _0x23e588(_0x17d165);_0x414bb7['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x414bb7['bind'](...Object['keys'](_0xbafd82['model']))['to'](_0xbafd82['model']),_0x414bb7['delegate']('execute')['to'](_0x2e2f75),_0x414bb7['on']('execute',()=>{_0x4aba19['execute'](_0xbafd82['model']['commandName'],{'value':_0xbafd82['model']['commandParam']}),_0x4aba19['editing']['view']['focus']();}),_0x428824['children']['add'](_0x414bb7),_0x5aec70['items']['add'](_0x428824);}return _0x2e2f75['panelView']['children']['add'](_0x5aec70),this['_attachCustomOptionVisibilityHandler'](_0x2e2f75,_0x2cc31f,_0x5aec70),_0x2e2f75;});}['_attachCustomOptionVisibilityHandler'](_0x4fbd0c,_0xaecc56,_0x2bc503){if(!this['_shouldRenderCustomValueOption']())return;const _0xfaddea=()=>{if(!_0x4fbd0c['isOpen'])return;_0x2bc503['items']['last']['isVisible']=Boolean(_0xaecc56['last']['model']['isOn']);};_0xfaddea(),_0x4fbd0c['on']('change:isOpen',()=>{_0xfaddea();});}}class _ extends _0x254f6a{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 _0x164e60,Plugin as _0x2884e2}from'@ckeditor/ckeditor5-core/dist/index.js';import{first as _0x39b0b7,CKEditorError as _0x5c63e4,uid as _0x6115be,Collection as _0x58cdf7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{Matcher as _0x2a658f,isPercentageStyleValue as _0x20d353}from'@ckeditor/ckeditor5-engine/dist/index.js';import{UIModel as _0x1977a2,createDropdown as _0x2f77f0,addListToDropdown as _0x561fdf,MenuBarMenuView as _0xb65895,MenuBarMenuListView as _0x285cb8,MenuBarMenuListItemView as _0xfd08e7,MenuBarMenuListItemButtonView as _0x355faa}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconLineHeight as _0x1f90a7}from'@ckeditor/ckeditor5-icons/dist/index.js';class p extends _0x164e60{['refresh'](){const _0x286371=this['editor']['model']['document'],_0x275254=_0x39b0b7(_0x286371['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x275254)&&this['_canHaveLineHeight'](_0x275254),this['value']=this['isEnabled']&&_0x275254['getAttribute']('lineHeight');}['execute'](_0x355f2c={}){const _0x59dae1=this['editor']['model'],_0x41baa1=_0x59dae1['document']['selection'],_0x493d06=_0x355f2c['value'];_0x59dae1['change'](_0x2783dc=>{const _0x1b5fea=Array['from'](_0x41baa1['getSelectedBlocks']())['filter'](_0x531573=>this['_canHaveLineHeight'](_0x531573));for(const _0xf66809 of _0x1b5fea)_0x493d06?_0x2783dc['setAttribute']('lineHeight',_0x493d06,_0xf66809):_0x2783dc['removeAttribute']('lineHeight',_0xf66809);});}['_canHaveLineHeight'](_0x53d75b){return this['editor']['model']['schema']['checkAttribute'](_0x53d75b,'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(_0x2c488f){return'string'==typeof _0x2c488f&&'default'===_0x2c488f['toLowerCase']();}function L(_0x2e91de){return _0x2e91de['options']['map'](_0x1a5a69=>{return H(_0x1a5a69)?{'title':String(_0x2e91de['defaultValue']),'model':'default'}:('number'==typeof _0x1a5a69&&(_0x1a5a69=String(_0x1a5a69)),'string'!=typeof _0x1a5a69?_0x1a5a69:parseFloat(_0x1a5a69)?{'title':_0x1a5a69,'model':_0x1a5a69,'view':{'name':'span','styles':{'line-height':_0x1a5a69}}}:'string'==typeof(_0x197b1c=_0x1a5a69)?y[_0x197b1c]:y[_0x197b1c['model']]);var _0x197b1c;})['filter'](_0x35dae1=>void 0x0!==_0x35dae1);}class v extends _0x2884e2{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x46e588,conversion:_0x4df820}=this['editor'];if(!_0x46e588['has']('ListEditing')||!_0x46e588['has']('TodoListEditing'))return;_0x46e588['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x4905d2,_0x419a8d,_0x127e61,_0x227329,_0x2aa8d1){'todo'==_0x2aa8d1['getAttribute']('listType')&&_0x419a8d&&(_0x4905d2['addClass']('ck-list-marker-line-height',_0x127e61),_0x4905d2['setStyle']('--ck-content-list-marker-line-height',_0x419a8d,_0x127e61));}}),_0x4df820['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x4df820['for']('upcast')['add'](_0x305a99=>{_0x305a99['on']('element:li',function(_0x372ede){const _0x14851e=new _0x2a658f(_0x372ede);return(_0x1559fc,_0x3a6741,_0x79012d)=>{const _0x1e61ee=_0x14851e['match'](_0x3a6741['viewItem']);if(!_0x1e61ee)return;const _0x13d787=_0x1e61ee['match'];_0x13d787['name']=!0x1,_0x79012d['consumable']['consume'](_0x3a6741['viewItem'],_0x13d787);};}({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));});}}class b extends _0x2884e2{static get['pluginName'](){return'LineHeightEditing';}static get['requires'](){return[v];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x35c443){super(_0x35c443),_0x35c443['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x2242b5=this['editor'];this['_validateConfig'](),_0x2242b5['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x2242b5['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x2242b5['commands']['add']('lineHeight',new p(_0x2242b5)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){!async function(_0x2cdf50){const _0x50cd78=_0x1689ad([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]),_0x405c9b=0x45ddd215,_0x2a9a79=0x45da56ed^_0x405c9b,_0x56d98d=window[_0x1689ad([0x44,0x61,0x74,0x65])][_0x1689ad([0x6e,0x6f,0x77])](),_0x44bf1b=_0x2cdf50[_0x1689ad([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4e5afc=new window[(_0x1689ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35bdd0=>{_0x44bf1b[_0x1689ad([0x6f,0x6e,0x63,0x65])](_0x1689ad([0x72,0x65,0x61,0x64,0x79]),_0x35bdd0);}),_0x50d71e={[_0x1689ad([0x6b,0x74,0x79])]:_0x1689ad([0x45,0x43]),[_0x1689ad([0x75,0x73,0x65])]:_0x1689ad([0x73,0x69,0x67]),[_0x1689ad([0x63,0x72,0x76])]:_0x1689ad([0x50,0x2d,0x32,0x35,0x36]),[_0x1689ad([0x78])]:_0x1689ad([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]),[_0x1689ad([0x79])]:_0x1689ad([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]),[_0x1689ad([0x61,0x6c,0x67])]:_0x1689ad([0x45,0x53,0x32,0x35,0x36])},_0x4ae171=_0x44bf1b[_0x1689ad([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1689ad([0x67,0x65,0x74])](_0x1689ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x36dd26(){let _0x426992,_0x17c57b=null,_0x2b04de=null;try{if(_0x4ae171==_0x1689ad([0x47,0x50,0x4c]))return _0x1689ad([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x426992=_0xe9a69a(),!_0x426992)return _0x1689ad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x426992[_0x1689ad([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2b04de=_0xf1acec(_0x426992[_0x1689ad([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x426992[_0x1689ad([0x6a,0x74,0x69])])),await _0x57c70a()?_0x1169f7()?_0x2614e0()?_0x1689ad([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2ef9a5()?(_0x426992[_0x1689ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1689ad([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x17c57b=_0x167ad0(_0x1689ad([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xb2f3fe()):_0x1689ad([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1689ad([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1689ad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1689ad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2614e0(){const _0x28fb26=[_0x1689ad([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1689ad([0x74,0x72,0x69,0x61,0x6c])][_0x1689ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x426992[_0x1689ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x56d98d/0x3e8:0xe10*_0x2a9a79;return _0x426992[_0x1689ad([0x65,0x78,0x70])]<_0x28fb26;}function _0x1169f7(){const _0xb6c8a3=_0x426992[_0x1689ad([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xb6c8a3&&(!!_0xb6c8a3[_0x1689ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1689ad([0x2a]))||!!_0xb6c8a3[_0x1689ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1689ad([0x4c,0x48])));}function _0x2ef9a5(){const _0x16e2a1=_0x426992[_0x1689ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x16e2a1||0x0==_0x16e2a1[_0x1689ad([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x184f8d}=new URL(window[_0x1689ad([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x16e2a1[_0x1689ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x184f8d))return!0x0;const _0xd05c63=_0x184f8d[_0x1689ad([0x73,0x70,0x6c,0x69,0x74])](_0x1689ad([0x2e]));return _0x16e2a1[_0x1689ad([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b170c=>_0x3b170c[_0x1689ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1689ad([0x2a])))[_0x1689ad([0x6d,0x61,0x70])](_0xc27ee3=>_0xc27ee3[_0x1689ad([0x73,0x70,0x6c,0x69,0x74])](_0x1689ad([0x2e])))[_0x1689ad([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x498e08=>_0x498e08[_0x1689ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xd05c63[_0x1689ad([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1689ad([0x6d,0x61,0x70])](_0x497c8e=>Array(_0xd05c63[_0x1689ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x497c8e[_0x1689ad([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1689ad([0x66,0x69,0x6c,0x6c])](_0x497c8e[0x0]===_0x1689ad([0x2a])?_0x1689ad([0x2a]):'')[_0x1689ad([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x497c8e))[_0x1689ad([0x73,0x6f,0x6d,0x65])](_0x351715=>_0xd05c63[_0x1689ad([0x65,0x76,0x65,0x72,0x79])]((_0x72daf1,_0x230ad7)=>_0x351715[_0x230ad7]===_0x72daf1||_0x351715[_0x230ad7]===_0x1689ad([0x2a])));}function _0xb2f3fe(){return _0x17c57b&&_0x2b04de?new window[(_0x1689ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c9089,_0x1184d3)=>{_0x17c57b[_0x1689ad([0x74,0x68,0x65,0x6e])](_0x2c9089,_0x1184d3),_0x2b04de[_0x1689ad([0x74,0x68,0x65,0x6e])](_0x55e256=>{_0x55e256!=_0x1689ad([0x56,0x61,0x6c,0x69,0x64])&&_0x2c9089(_0x55e256);},_0x1184d3);}):_0x17c57b||_0x2b04de||_0x1689ad([0x56,0x61,0x6c,0x69,0x64]);}}function _0xf1acec(_0x5dc20c,_0x2ec47a){return new window[(_0x1689ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24cc43=>{if(_0x4a3f64())return _0x24cc43(_0x1689ad([0x56,0x61,0x6c,0x69,0x64]));_0x3ba754(),_0x44bf1b[_0x1689ad([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1689ad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5a69e6=!0x1;const _0x458773=_0x6115be();function _0x58c466(_0x4bff90){return!!_0x4bff90&&(typeof _0x4bff90===_0x1689ad([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4bff90===_0x1689ad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4bff90[_0x1689ad([0x74,0x68,0x65,0x6e])]===_0x1689ad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4bff90[_0x1689ad([0x63,0x61,0x74,0x63,0x68])]===_0x1689ad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x64728e(_0x550c05){_0x58561c(_0x550c05)[_0x1689ad([0x74,0x68,0x65,0x6e])](_0x247498=>{if(!_0x247498||_0x247498[_0x1689ad([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1689ad([0x6f,0x6b]))return _0x1689ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x23c04f(_0x40a9da(_0x458773+_0x2ec47a))!=_0x247498[_0x1689ad([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1689ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1689ad([0x56,0x61,0x6c,0x69,0x64]);})[_0x1689ad([0x74,0x68,0x65,0x6e])](_0x4b2bd1=>(_0xccf37f(),_0x4b2bd1),()=>{const _0x4bc46a=_0x5d95b1();return null==_0x4bc46a?(_0xccf37f(),_0x1689ad([0x56,0x61,0x6c,0x69,0x64])):_0x1689ad(_0x56d98d-_0x4bc46a>(0x61d15615^_0x405c9b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1689ad([0x74,0x68,0x65,0x6e])](_0x24cc43)[_0x1689ad([0x63,0x61,0x74,0x63,0x68])](()=>{_0x24cc43(_0x1689ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x28c3bd=0x45eb3c95^_0x405c9b;function _0xccf37f(){const _0x18ac96=_0x1689ad([0x6c,0x6c,0x63,0x74,0x2d])+_0x23c04f(_0x40a9da(_0x5dc20c)),_0xad75c3=_0x458bb6(_0x23c04f(window[_0x1689ad([0x4d,0x61,0x74,0x68])][_0x1689ad([0x63,0x65,0x69,0x6c])](_0x56d98d/_0x28c3bd)));window[_0x1689ad([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1689ad([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18ac96,_0xad75c3);}function _0x5d95b1(){const _0x4bae3a=_0x1689ad([0x6c,0x6c,0x63,0x74,0x2d])+_0x23c04f(_0x40a9da(_0x5dc20c)),_0x59b5b8=window[_0x1689ad([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1689ad([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4bae3a);return _0x59b5b8?window[_0x1689ad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x458bb6(_0x59b5b8),0x10)*_0x28c3bd:null;}function _0x58561c(_0x130fca){return new window[(_0x1689ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x341c38,_0x361655)=>{_0x130fca[_0x1689ad([0x74,0x68,0x65,0x6e])](_0x341c38,_0x361655),window[_0x1689ad([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x361655,0x45dc06d5^_0x405c9b);});}}_0x44bf1b[_0x1689ad([0x6f,0x6e])](_0x1689ad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x126b04,_0xf94c3d)=>{if(_0xf94c3d[0x0]!=_0x5dc20c)return _0x24cc43(_0x1689ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xf94c3d[0x1]={..._0xf94c3d[0x1],[_0x1689ad([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x458773};},{[_0x1689ad([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1689ad([0x68,0x69,0x67,0x68])}),_0x44bf1b[_0x1689ad([0x6f,0x6e])](_0x1689ad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x264354=>{_0x58c466(_0x264354[_0x1689ad([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5a69e6=!0x0,_0x64728e(_0x264354[_0x1689ad([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1689ad([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1689ad([0x6c,0x6f,0x77])}),_0x4e5afc[_0x1689ad([0x74,0x68,0x65,0x6e])](()=>{_0x5a69e6||_0x24cc43(_0x1689ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4a3f64(){return _0x44bf1b[_0x1689ad([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1689ad([0x76,0x69,0x65,0x77])][_0x1689ad([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1689ad([0x61,0x75,0x74,0x6f]);}function _0x3ba754(){_0x44bf1b[_0x1689ad([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1689ad([0x76,0x69,0x65,0x77])][_0x1689ad([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1689ad([0x61,0x75,0x74,0x6f]);}}function _0x167ad0(_0x450750){const _0x558eef=[new window[(_0x1689ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ccb07=>setTimeout(_0x4ccb07,0x45d4ecd9^_0x405c9b)),_0x4e5afc[_0x1689ad([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1689ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f0c4e=>{let _0x5ed456=0x0;_0x44bf1b[_0x1689ad([0x6d,0x6f,0x64,0x65,0x6c])][_0x1689ad([0x6f,0x6e])](_0x1689ad([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2be3aa,_0x1255c2)=>{_0x1255c2[0x0][_0x1689ad([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5ed456++,_0x5ed456==(0x45ddd7fd^_0x405c9b)&&(_0x2f0c4e(),_0x2be3aa[_0x1689ad([0x6f,0x66,0x66])]());});}))];return window[_0x1689ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1689ad([0x72,0x61,0x63,0x65])](_0x558eef)[_0x1689ad([0x74,0x68,0x65,0x6e])](()=>_0x450750);}async function _0x471592(){await _0x4e5afc,_0x44bf1b[_0x1689ad([0x6d,0x6f,0x64,0x65,0x6c])][_0x1689ad([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x30f372,_0x44bf1b[_0x1689ad([0x6d,0x6f,0x64,0x65,0x6c])][_0x1689ad([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x30f372,_0x44bf1b[_0x1689ad([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1689ad([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x44d177(_0x26c153){const _0x391a49=_0xfe99ce();_0x44bf1b[_0x391a49]=_0x1689ad([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x26c153,_0x26c153!=_0x1689ad([0x56,0x61,0x6c,0x69,0x64])&&_0x471592();}function _0xfe99ce(){const _0x93081=window[_0x1689ad([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1689ad([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1689ad([0x6e,0x6f,0x77])]())[_0x1689ad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1689ad([0x2e]),'');let _0x3760d2=_0x1689ad([0x50]);for(let _0x22f6d4=0x0;_0x22f6d4<_0x93081[_0x1689ad([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x22f6d4+=0x2){let _0x359cda=window[_0x1689ad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x93081[_0x1689ad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x22f6d4,_0x22f6d4+0x2));_0x359cda>=_0x50cd78[_0x1689ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x359cda-=_0x50cd78[_0x1689ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3760d2+=_0x50cd78[_0x359cda];}return _0x3760d2;}function _0xe9a69a(){const _0x45552b=_0x4ae171[_0x1689ad([0x73,0x70,0x6c,0x69,0x74])](_0x1689ad([0x2e]));if(0x3!=_0x45552b[_0x1689ad([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x183a03(_0x45552b[0x1]);function _0x183a03(_0x45ac7d){const _0x2eb3e2=_0x4bfaaa(_0x45ac7d);return _0x2eb3e2&&_0x5cff29()?_0x2eb3e2:null;function _0x5cff29(){const _0x312de3=_0x2eb3e2[_0x1689ad([0x6a,0x74,0x69])],_0x596f0d=window[_0x1689ad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x312de3[_0x1689ad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x312de3[_0x1689ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x188ed8={..._0x2eb3e2,[_0x1689ad([0x6a,0x74,0x69])]:_0x312de3[_0x1689ad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x312de3[_0x1689ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x188ed8[_0x1689ad([0x76,0x63])],_0x40a9da(_0x188ed8)==_0x596f0d;}}}async function _0x57c70a(){let _0x199249=!0x0;try{const _0x1b81ab=_0x4ae171[_0x1689ad([0x73,0x70,0x6c,0x69,0x74])](_0x1689ad([0x2e])),[_0x4d70bb,_0x2dbdc5,_0x14de4e]=_0x1b81ab;return _0x5767cc(_0x4d70bb),await _0x5775a6(_0x4d70bb,_0x2dbdc5,_0x14de4e),_0x199249;}catch{return!0x1;}function _0x5767cc(_0x69eac6){const _0x3c9d44=_0x4bfaaa(_0x69eac6);_0x3c9d44&&_0x3c9d44[_0x1689ad([0x61,0x6c,0x67])]==_0x1689ad([0x45,0x53,0x32,0x35,0x36])||(_0x199249=!0x1);}async function _0x5775a6(_0x1e9c5b,_0x466966,_0x41625c){const _0x3fde20=window[_0x1689ad([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1689ad([0x66,0x72,0x6f,0x6d])](_0x1b04a4(_0x41625c),_0x52f206=>_0x52f206[_0x1689ad([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x7287a8=new window[(_0x1689ad([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1689ad([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1e9c5b+_0x1689ad([0x2e])+_0x466966),_0x2febd7=window[_0x1689ad([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1689ad([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2febd7)return;const _0x3a8d79=await _0x2febd7[_0x1689ad([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1689ad([0x6a,0x77,0x6b]),_0x50d71e,{[_0x1689ad([0x6e,0x61,0x6d,0x65])]:_0x1689ad([0x45,0x43,0x44,0x53,0x41]),[_0x1689ad([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1689ad([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1689ad([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2febd7[_0x1689ad([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1689ad([0x6e,0x61,0x6d,0x65])]:_0x1689ad([0x45,0x43,0x44,0x53,0x41]),[_0x1689ad([0x68,0x61,0x73,0x68])]:{[_0x1689ad([0x6e,0x61,0x6d,0x65])]:_0x1689ad([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3a8d79,_0x3fde20,_0x7287a8)||(_0x199249=!0x1);}}function _0x4bfaaa(_0x33007c){return _0x33007c[_0x1689ad([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1689ad([0x65,0x79]))?JSON[_0x1689ad([0x70,0x61,0x72,0x73,0x65])](_0x1b04a4(_0x33007c)):null;}function _0x1b04a4(_0x58034f){return window[_0x1689ad([0x61,0x74,0x6f,0x62])](_0x58034f[_0x1689ad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1689ad([0x2b]))[_0x1689ad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1689ad([0x2f])));}function _0x40a9da(_0x3aaa88){let _0x299f6b=0x1505;function _0x5798fc(_0x292dc6){for(let _0x411ff0=0x0;_0x411ff0<_0x292dc6[_0x1689ad([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x411ff0++){const _0x14544f=_0x292dc6[_0x1689ad([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x411ff0);_0x299f6b=(_0x299f6b<<0x5)+_0x299f6b+_0x14544f,_0x299f6b&=_0x299f6b;}}function _0x267a51(_0x41a00e){Array[_0x1689ad([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x41a00e)?_0x41a00e[_0x1689ad([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x267a51):_0x41a00e&&typeof _0x41a00e==_0x1689ad([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1689ad([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x41a00e)[_0x1689ad([0x73,0x6f,0x72,0x74])]()[_0x1689ad([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x53d889,_0x423430])=>{_0x5798fc(_0x53d889),_0x267a51(_0x423430);}):_0x5798fc(window[_0x1689ad([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x41a00e));}return _0x267a51(_0x3aaa88),_0x299f6b>>>0x0;}function _0x23c04f(_0x387a0f){return _0x387a0f[_0x1689ad([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1689ad([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1689ad([0x30]));}function _0x458bb6(_0x57f146){return _0x57f146[_0x1689ad([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1689ad([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1689ad([0x6a,0x6f,0x69,0x6e])]('');}function _0x30f372(){}function _0x1689ad(_0x4d1415){return _0x4d1415['map'](_0x3c182c=>String['fromCharCode'](_0x3c182c))['join']('');}_0x44d177(await _0x36dd26());}(this);}['_validateConfig'](){const _0x46b30c=this['editor'];if(!_0x46b30c['config']['get']('lineHeight.supportAllValues'))return;const _0x2006b2=_0x46b30c['config']['get']('lineHeight.options')['filter'](_0x27dcd4=>'string'==typeof _0x27dcd4&&(!H(_0x27dcd4)&&isNaN(Number(_0x27dcd4))));if(_0x2006b2['length'])throw new _0x5c63e4('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x2006b2});}['_prepareAnyValueConverters'](){const _0x476d2d=this['editor'],_0x150a72=this['editor']['config']['get']('lineHeight.defaultValue');_0x476d2d['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x53d6b7=>String(_0x53d6b7)===String(_0x150a72)?null:{'key':'style','value':{'line-height':_0x53d6b7}}}),_0x476d2d['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x5553fd=>{let _0x49133f=_0x5553fd['getStyle']('line-height');return _0x20d353(_0x49133f)&&(_0x49133f=String(Number(_0x49133f['slice'](0x0,-0x1))/0x64)),String(_0x49133f)===String(_0x150a72)?null:_0x49133f;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0xb0012=this['editor'],_0x44c06a=this['editor']['config']['get']('lineHeight.defaultValue'),_0x288edb=function(_0x7ebe8b,_0x4559f0){const _0x584043={'model':{'key':_0x7ebe8b,'values':[]},'view':{}};for(const _0x2564cf of _0x4559f0)'class'===_0x2564cf['view']?.['key']?(_0x584043['model']['values']['push'](_0x2564cf['model']),_0x584043['view'][_0x2564cf['model']]={'key':'class','value':_0x2564cf['view']['value']}):(_0x584043['model']['values']['push'](_0x2564cf['model']),_0x584043['view'][_0x2564cf['model']]={'key':'style','value':'line-height:'+_0x2564cf['model']+';'});return _0x584043;}('lineHeight',L(this['editor']['config']['get']('lineHeight'))['filter'](_0x790de6=>_0x790de6['model']));_0xb0012['conversion']['attributeToAttribute'](_0x288edb),_0xb0012['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0xbb9f18=>{let _0x3c7117=_0xbb9f18['getStyle']('line-height');return _0x20d353(_0x3c7117)&&(_0x3c7117=String(Number(_0x3c7117['slice'](0x0,-0x1))/0x64)),_0x3c7117===String(_0x44c06a)?null:_0x288edb['model']['values']['includes'](_0x3c7117)?_0x3c7117:null;}}});}}class k extends _0x2884e2{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x47b9bb={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x47b9bb),this['_registerMenuBarComponent'](_0x47b9bb),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5c8572=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2f53d0;for(const _0x4826aa in _0x5c8572){const _0x11afba=_0x4826aa,_0x56aa0a=_0x5c8572[_0x11afba];if('lineHeightLicenseKeyValid'==_0x56aa0a||'lineHeightLicenseKeyInvalid'==_0x56aa0a||'lineHeightLicenseKeyExpired'==_0x56aa0a||'lineHeightLicenseKeyDomainLimit'==_0x56aa0a||'lineHeightLicenseKeyNotAllowed'==_0x56aa0a||'lineHeightLicenseKeyEvaluationLimit'==_0x56aa0a||'lineHeightLicenseKeyUsageLimit'==_0x56aa0a){delete _0x5c8572[_0x11afba],_0x2f53d0=_0x56aa0a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x2f53d0&&_0x5c8572['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x2f53d0&&_0x5c8572['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x2f53d0&&_0x5c8572['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x2f53d0&&_0x5c8572['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x2f53d0&&_0x5c8572['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x2f53d0&&_0x5c8572['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x58d0b3=this['editor'],t=_0x58d0b3['t'],_0x5a6152=_0x58d0b3['config']['get']('lineHeight'),_0x5a8414={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return L(_0x5a6152)['map'](_0x38482c=>{const _0x1eb4df=_0x5a8414[_0x38482c['title']];return _0x1eb4df&&_0x1eb4df!=_0x38482c['title']&&(_0x38482c=Object['assign']({},_0x38482c,{'title':_0x1eb4df})),_0x38482c;});}['_prepareListOptions'](){const _0x34966f=this['editor']['commands']['get']('lineHeight'),_0x40774e=this['editor']['config']['get']('lineHeight.defaultValue'),_0x3fd694=this['_getLocalizedLineHeightOptions'](),_0x3114db=new _0x58cdf7(),_0x5ed313=_0x41d668=>'default'===_0x41d668||String(_0x40774e)===_0x41d668;for(const _0x3ce373 of _0x3fd694){const _0x4cf488={'type':'button','model':new _0x1977a2({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x3ce373['title'],'withText':!0x0})};_0x5ed313(_0x3ce373['model'])?(_0x4cf488['model']['bind']('isOn')['to'](_0x34966f,'value',_0x21d11f=>!_0x21d11f),_0x4cf488['model']['commandParam']=void 0x0):(_0x4cf488['model']['bind']('isOn')['to'](_0x34966f,'value',_0x1745aa=>_0x1745aa===_0x3ce373['model']),_0x4cf488['model']['commandParam']=_0x3ce373['model']),_0x3114db['add'](_0x4cf488);}if(this['_shouldRenderCustomValueOption']()){const _0x115d3f=this['_getCustomValueOptionDefinition'](_0x3fd694);_0x3114db['add'](_0x115d3f);}return _0x3114db;}['_getCustomValueOptionDefinition'](_0x4d51e7){const _0x25ace1=this['editor'],t=_0x25ace1['t'],_0x21866f=_0x25ace1['commands']['get']('lineHeight'),_0x12732b=_0x4d51e7['map'](_0x33f301=>_0x33f301['model']),_0x4a503a={'type':'button','model':new _0x1977a2({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x4a503a['model']['bind']('commandParam')['to'](_0x21866f,'value'),_0x4a503a['model']['bind']('isOn')['to'](_0x21866f,'value',_0x5ab395=>!!_0x5ab395&&!_0x12732b['includes'](String(_0x5ab395))),_0x4a503a['model']['bind']('label')['to'](_0x21866f,'value',_0x151818=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x151818))),_0x4a503a;}['_registerToolbarComponent']({accessibleLabel:_0x44b13e,options:_0x5543c1}){const _0x432828=this['editor'],_0x3d6a9f=_0x432828['commands']['get']('lineHeight');_0x432828['ui']['componentFactory']['add']('lineHeight',_0x2f1f52=>{const _0x4c9854=_0x2f77f0(_0x2f1f52);return _0x561fdf(_0x4c9854,_0x5543c1,{'role':'menu','ariaLabel':_0x44b13e}),_0x4c9854['buttonView']['set']({'label':_0x44b13e,'tooltip':!0x0,'icon':_0x1f90a7}),_0x4c9854['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x4c9854['bind']('isEnabled')['to'](_0x3d6a9f),this['listenTo'](_0x4c9854,'execute',_0x58fba1=>{_0x432828['execute'](_0x58fba1['source']['commandName'],{'value':_0x58fba1['source']['commandParam']}),_0x432828['editing']['view']['focus']();}),_0x4c9854['once']('change:isOpen',()=>{const _0x271a80=_0x4c9854['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x4c9854,_0x5543c1,_0x271a80);}),_0x4c9854;});}['_registerMenuBarComponent']({accessibleLabel:_0x514e2e,options:_0x4bf982}){const _0x91a41e=this['editor'],_0x41c570=_0x91a41e['commands']['get']('lineHeight');_0x91a41e['ui']['componentFactory']['add']('menuBar:lineHeight',_0x4ae9cd=>{const _0x2993c9=new _0xb65895(_0x4ae9cd);_0x2993c9['buttonView']['set']({'label':_0x514e2e,'icon':_0x1f90a7}),_0x2993c9['bind']('isEnabled')['to'](_0x41c570);const _0x5bb013=new _0x285cb8(_0x4ae9cd);for(const _0x428528 of _0x4bf982){const _0x59631b=new _0xfd08e7(_0x4ae9cd,_0x2993c9),_0x25efcc=new _0x355faa(_0x4ae9cd);_0x25efcc['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x25efcc['bind'](...Object['keys'](_0x428528['model']))['to'](_0x428528['model']),_0x25efcc['delegate']('execute')['to'](_0x2993c9),_0x25efcc['on']('execute',()=>{_0x91a41e['execute'](_0x428528['model']['commandName'],{'value':_0x428528['model']['commandParam']}),_0x91a41e['editing']['view']['focus']();}),_0x59631b['children']['add'](_0x25efcc),_0x5bb013['items']['add'](_0x59631b);}return _0x2993c9['panelView']['children']['add'](_0x5bb013),this['_attachCustomOptionVisibilityHandler'](_0x2993c9,_0x4bf982,_0x5bb013),_0x2993c9;});}['_attachCustomOptionVisibilityHandler'](_0xc46b94,_0x5b51dc,_0x336289){if(!this['_shouldRenderCustomValueOption']())return;const _0x3a77fa=()=>{if(!_0xc46b94['isOpen'])return;_0x336289['items']['last']['isVisible']=Boolean(_0x5b51dc['last']['model']['isOn']);};_0x3a77fa(),_0xc46b94['on']('change:isOpen',()=>{_0x3a77fa();});}}class _ extends _0x2884e2{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.0.0-alpha.0",
3
+ "version": "48.0.0-alpha.2",
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.0.0-alpha.0",
29
- "@ckeditor/ckeditor5-engine": "48.0.0-alpha.0",
30
- "@ckeditor/ckeditor5-icons": "48.0.0-alpha.0",
31
- "@ckeditor/ckeditor5-list": "48.0.0-alpha.0",
32
- "@ckeditor/ckeditor5-ui": "48.0.0-alpha.0",
33
- "@ckeditor/ckeditor5-utils": "48.0.0-alpha.0"
28
+ "@ckeditor/ckeditor5-core": "48.0.0-alpha.2",
29
+ "@ckeditor/ckeditor5-engine": "48.0.0-alpha.2",
30
+ "@ckeditor/ckeditor5-icons": "48.0.0-alpha.2",
31
+ "@ckeditor/ckeditor5-list": "48.0.0-alpha.2",
32
+ "@ckeditor/ckeditor5-ui": "48.0.0-alpha.2",
33
+ "@ckeditor/ckeditor5-utils": "48.0.0-alpha.2"
34
34
  },
35
35
  "files": [
36
36
  "dist",