@ckeditor/ckeditor5-line-height 48.0.0-alpha.10 → 48.0.0-alpha.11

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 _0x5a4803,Plugin as _0xeda21d}from'@ckeditor/ckeditor5-core/dist/index.js';import{first as _0x5c9646,CKEditorError as _0x9af03e,uid as _0x614cf7,Collection as _0x2c2eaa}from'@ckeditor/ckeditor5-utils/dist/index.js';import{Matcher as _0x2cfd9e,isPercentageStyleValue as _0x47056c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{UIModel as _0x2850b5,createDropdown as _0x456775,addListToDropdown as _0x25c763,MenuBarMenuView as _0x325779,MenuBarMenuListView as _0x47edf8,MenuBarMenuListItemView as _0x2ed091,MenuBarMenuListItemButtonView as _0x1404ea}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconLineHeight as _0x52c805}from'@ckeditor/ckeditor5-icons/dist/index.js';class p extends _0x5a4803{['refresh'](){const _0x223717=this['editor']['model']['document'],_0xbb7242=_0x5c9646(_0x223717['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0xbb7242)&&this['_canHaveLineHeight'](_0xbb7242),this['value']=this['isEnabled']&&_0xbb7242['getAttribute']('lineHeight');}['execute'](_0x1aac7a={}){const _0x5360a8=this['editor']['model'],_0x5f3375=_0x5360a8['document']['selection'],_0x4fbe7f=_0x1aac7a['value'];_0x5360a8['change'](_0x120a3e=>{const _0x1e68ed=Array['from'](_0x5f3375['getSelectedBlocks']())['filter'](_0x46dde4=>this['_canHaveLineHeight'](_0x46dde4));for(const _0x459e4f of _0x1e68ed)_0x4fbe7f?_0x120a3e['setAttribute']('lineHeight',_0x4fbe7f,_0x459e4f):_0x120a3e['removeAttribute']('lineHeight',_0x459e4f);});}['_canHaveLineHeight'](_0x1fc1f3){return this['editor']['model']['schema']['checkAttribute'](_0x1fc1f3,'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(_0x296c85){return'string'==typeof _0x296c85&&'default'===_0x296c85['toLowerCase']();}function L(_0x3e7710){return _0x3e7710['options']['map'](_0x4dd6bc=>{return H(_0x4dd6bc)?{'title':String(_0x3e7710['defaultValue']),'model':'default'}:('number'==typeof _0x4dd6bc&&(_0x4dd6bc=String(_0x4dd6bc)),'string'!=typeof _0x4dd6bc?_0x4dd6bc:parseFloat(_0x4dd6bc)?{'title':_0x4dd6bc,'model':_0x4dd6bc,'view':{'name':'span','styles':{'line-height':_0x4dd6bc}}}:'string'==typeof(_0x97245f=_0x4dd6bc)?y[_0x97245f]:y[_0x97245f['model']]);var _0x97245f;})['filter'](_0xec8bba=>void 0x0!==_0xec8bba);}class v extends _0xeda21d{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x30f097,conversion:_0x26014b}=this['editor'];if(!_0x30f097['has']('ListEditing')||!_0x30f097['has']('TodoListEditing'))return;_0x30f097['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x1275d5,_0x149337,_0xab539d,_0xf695e5,_0x301b27){'todo'==_0x301b27['getAttribute']('listType')&&_0x149337&&(_0x1275d5['addClass']('ck-list-marker-line-height',_0xab539d),_0x1275d5['setStyle']('--ck-content-list-marker-line-height',_0x149337,_0xab539d));}}),_0x26014b['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x26014b['for']('upcast')['add'](_0x842f7c=>{_0x842f7c['on']('element:li',function(_0x2d3c84){const _0x409714=new _0x2cfd9e(_0x2d3c84);return(_0x4dd892,_0xd5b069,_0x58d3e6)=>{const _0x26c35e=_0x409714['match'](_0xd5b069['viewItem']);if(!_0x26c35e)return;const _0x12a173=_0x26c35e['match'];_0x12a173['name']=!0x1,_0x58d3e6['consumable']['consume'](_0xd5b069['viewItem'],_0x12a173);};}({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));});}}class b extends _0xeda21d{static get['pluginName'](){return'LineHeightEditing';}static get['requires'](){return[v];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x357699){super(_0x357699),_0x357699['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x136d2a=this['editor'];this['_validateConfig'](),_0x136d2a['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x136d2a['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x136d2a['commands']['add']('lineHeight',new p(_0x136d2a)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){!async function(_0x1aca7f){const _0x4f32a4=_0x4876ea([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]),_0x25268e=0x45ddd215,_0x17b563=0x45da57ad^_0x25268e,_0x2db96d=window[_0x4876ea([0x44,0x61,0x74,0x65])][_0x4876ea([0x6e,0x6f,0x77])](),_0x203124=_0x1aca7f[_0x4876ea([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xfa8aa2=new window[(_0x4876ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38e5bb=>{_0x203124[_0x4876ea([0x6f,0x6e,0x63,0x65])](_0x4876ea([0x72,0x65,0x61,0x64,0x79]),_0x38e5bb);}),_0x28d49f={[_0x4876ea([0x6b,0x74,0x79])]:_0x4876ea([0x45,0x43]),[_0x4876ea([0x75,0x73,0x65])]:_0x4876ea([0x73,0x69,0x67]),[_0x4876ea([0x63,0x72,0x76])]:_0x4876ea([0x50,0x2d,0x32,0x35,0x36]),[_0x4876ea([0x78])]:_0x4876ea([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]),[_0x4876ea([0x79])]:_0x4876ea([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]),[_0x4876ea([0x61,0x6c,0x67])]:_0x4876ea([0x45,0x53,0x32,0x35,0x36])},_0x45a9bd=_0x203124[_0x4876ea([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4876ea([0x67,0x65,0x74])](_0x4876ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c9fd8(){let _0x4b373e,_0x4e900e=null,_0x5848c5=null;try{if(_0x45a9bd==_0x4876ea([0x47,0x50,0x4c]))return _0x4876ea([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b373e=_0x1d65ae(),!_0x4b373e)return _0x4876ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4b373e[_0x4876ea([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5848c5=_0x2c83da(_0x4b373e[_0x4876ea([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b373e[_0x4876ea([0x6a,0x74,0x69])])),await _0x1c7ffa()?_0x4e1afc()?_0x1cdd37()?_0x4876ea([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x44865c()?(_0x4b373e[_0x4876ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4876ea([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4e900e=_0x3599f8(_0x4876ea([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4381b0()):_0x4876ea([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4876ea([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4876ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4876ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1cdd37(){const _0x2e2294=[_0x4876ea([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4876ea([0x74,0x72,0x69,0x61,0x6c])][_0x4876ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b373e[_0x4876ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2db96d/0x3e8:0xe10*_0x17b563;return _0x4b373e[_0x4876ea([0x65,0x78,0x70])]<_0x2e2294;}function _0x4e1afc(){const _0x5968dc=_0x4b373e[_0x4876ea([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5968dc&&(!!_0x5968dc[_0x4876ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4876ea([0x2a]))||!!_0x5968dc[_0x4876ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4876ea([0x4c,0x48])));}function _0x44865c(){const _0x465f22=_0x4b373e[_0x4876ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x465f22||0x0==_0x465f22[_0x4876ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x55af35}=new URL(window[_0x4876ea([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x465f22[_0x4876ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55af35))return!0x0;const _0x170277=_0x55af35[_0x4876ea([0x73,0x70,0x6c,0x69,0x74])](_0x4876ea([0x2e]));return _0x465f22[_0x4876ea([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x225cb5=>_0x225cb5[_0x4876ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4876ea([0x2a])))[_0x4876ea([0x6d,0x61,0x70])](_0xc1c8ce=>_0xc1c8ce[_0x4876ea([0x73,0x70,0x6c,0x69,0x74])](_0x4876ea([0x2e])))[_0x4876ea([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf26ab9=>_0xf26ab9[_0x4876ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x170277[_0x4876ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4876ea([0x6d,0x61,0x70])](_0x86500e=>Array(_0x170277[_0x4876ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x86500e[_0x4876ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4876ea([0x66,0x69,0x6c,0x6c])](_0x86500e[0x0]===_0x4876ea([0x2a])?_0x4876ea([0x2a]):'')[_0x4876ea([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x86500e))[_0x4876ea([0x73,0x6f,0x6d,0x65])](_0x39a211=>_0x170277[_0x4876ea([0x65,0x76,0x65,0x72,0x79])]((_0x5d50cf,_0x5531c0)=>_0x39a211[_0x5531c0]===_0x5d50cf||_0x39a211[_0x5531c0]===_0x4876ea([0x2a])));}function _0x4381b0(){return _0x4e900e&&_0x5848c5?new window[(_0x4876ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x62a49e,_0x40a9b3)=>{_0x4e900e[_0x4876ea([0x74,0x68,0x65,0x6e])](_0x62a49e,_0x40a9b3),_0x5848c5[_0x4876ea([0x74,0x68,0x65,0x6e])](_0x52fb1b=>{_0x52fb1b!=_0x4876ea([0x56,0x61,0x6c,0x69,0x64])&&_0x62a49e(_0x52fb1b);},_0x40a9b3);}):_0x4e900e||_0x5848c5||_0x4876ea([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2c83da(_0x2631dd,_0x175fd6){return new window[(_0x4876ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x305ba4=>{if(_0x5674d5())return _0x305ba4(_0x4876ea([0x56,0x61,0x6c,0x69,0x64]));_0x1d5452(),_0x203124[_0x4876ea([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4876ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x594608=!0x1;const _0x36d77d=_0x614cf7();function _0x126052(_0xc9466d){return!!_0xc9466d&&(typeof _0xc9466d===_0x4876ea([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xc9466d===_0x4876ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xc9466d[_0x4876ea([0x74,0x68,0x65,0x6e])]===_0x4876ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xc9466d[_0x4876ea([0x63,0x61,0x74,0x63,0x68])]===_0x4876ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x189f0f(_0x12b56e){_0x3257ea(_0x12b56e)[_0x4876ea([0x74,0x68,0x65,0x6e])](_0x10a58f=>{if(!_0x10a58f||_0x10a58f[_0x4876ea([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4876ea([0x6f,0x6b]))return _0x4876ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3e12ed(_0x16c2f6(_0x36d77d+_0x175fd6))!=_0x10a58f[_0x4876ea([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4876ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4876ea([0x56,0x61,0x6c,0x69,0x64]);})[_0x4876ea([0x74,0x68,0x65,0x6e])](_0x2885d2=>(_0x530bed(),_0x2885d2),()=>{const _0x4ba57c=_0x1377a6();return null==_0x4ba57c?(_0x530bed(),_0x4876ea([0x56,0x61,0x6c,0x69,0x64])):_0x4876ea(_0x2db96d-_0x4ba57c>(0x61d15615^_0x25268e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4876ea([0x74,0x68,0x65,0x6e])](_0x305ba4)[_0x4876ea([0x63,0x61,0x74,0x63,0x68])](()=>{_0x305ba4(_0x4876ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x146194=0x45eb3c95^_0x25268e;function _0x530bed(){const _0x1061a9=_0x4876ea([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e12ed(_0x16c2f6(_0x2631dd)),_0x18a492=_0x55c07b(_0x3e12ed(window[_0x4876ea([0x4d,0x61,0x74,0x68])][_0x4876ea([0x63,0x65,0x69,0x6c])](_0x2db96d/_0x146194)));window[_0x4876ea([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4876ea([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1061a9,_0x18a492);}function _0x1377a6(){const _0x32847c=_0x4876ea([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e12ed(_0x16c2f6(_0x2631dd)),_0x14e1a6=window[_0x4876ea([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4876ea([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x32847c);return _0x14e1a6?window[_0x4876ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55c07b(_0x14e1a6),0x10)*_0x146194:null;}function _0x3257ea(_0x45e33d){return new window[(_0x4876ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22a21f,_0x5c39c6)=>{_0x45e33d[_0x4876ea([0x74,0x68,0x65,0x6e])](_0x22a21f,_0x5c39c6),window[_0x4876ea([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5c39c6,0x45dc06d5^_0x25268e);});}}_0x203124[_0x4876ea([0x6f,0x6e])](_0x4876ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1cbb7e,_0x4d8f1b)=>{if(_0x4d8f1b[0x0]!=_0x2631dd)return _0x305ba4(_0x4876ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4d8f1b[0x1]={..._0x4d8f1b[0x1],[_0x4876ea([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x36d77d};},{[_0x4876ea([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4876ea([0x68,0x69,0x67,0x68])}),_0x203124[_0x4876ea([0x6f,0x6e])](_0x4876ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x384d4b=>{_0x126052(_0x384d4b[_0x4876ea([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x594608=!0x0,_0x189f0f(_0x384d4b[_0x4876ea([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4876ea([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4876ea([0x6c,0x6f,0x77])}),_0xfa8aa2[_0x4876ea([0x74,0x68,0x65,0x6e])](()=>{_0x594608||_0x305ba4(_0x4876ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5674d5(){return _0x203124[_0x4876ea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4876ea([0x76,0x69,0x65,0x77])][_0x4876ea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4876ea([0x61,0x75,0x74,0x6f]);}function _0x1d5452(){_0x203124[_0x4876ea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4876ea([0x76,0x69,0x65,0x77])][_0x4876ea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4876ea([0x61,0x75,0x74,0x6f]);}}function _0x3599f8(_0x4682f7){const _0x103c57=[new window[(_0x4876ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c5fd2=>setTimeout(_0x5c5fd2,0x45d4ecd9^_0x25268e)),_0xfa8aa2[_0x4876ea([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4876ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fe69b=>{let _0x4c9116=0x0;_0x203124[_0x4876ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x4876ea([0x6f,0x6e])](_0x4876ea([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x282cc8,_0x356c40)=>{_0x356c40[0x0][_0x4876ea([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4c9116++,_0x4c9116==(0x45ddd7fd^_0x25268e)&&(_0x3fe69b(),_0x282cc8[_0x4876ea([0x6f,0x66,0x66])]());});}))];return window[_0x4876ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4876ea([0x72,0x61,0x63,0x65])](_0x103c57)[_0x4876ea([0x74,0x68,0x65,0x6e])](()=>_0x4682f7);}async function _0x5c057f(){await _0xfa8aa2,_0x203124[_0x4876ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x4876ea([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x312b3a,_0x203124[_0x4876ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x4876ea([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x312b3a,_0x203124[_0x4876ea([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4876ea([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x35e9eb(_0x5a99bc){const _0x3aa331=_0x160a57();_0x203124[_0x3aa331]=_0x4876ea([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5a99bc,_0x5a99bc!=_0x4876ea([0x56,0x61,0x6c,0x69,0x64])&&_0x5c057f();}function _0x160a57(){const _0x5cc990=window[_0x4876ea([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4876ea([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4876ea([0x6e,0x6f,0x77])]())[_0x4876ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4876ea([0x2e]),'');let _0x5b8770=_0x4876ea([0x50]);for(let _0x3a6538=0x0;_0x3a6538<_0x5cc990[_0x4876ea([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a6538+=0x2){let _0x59fd5a=window[_0x4876ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cc990[_0x4876ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a6538,_0x3a6538+0x2));_0x59fd5a>=_0x4f32a4[_0x4876ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x59fd5a-=_0x4f32a4[_0x4876ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5b8770+=_0x4f32a4[_0x59fd5a];}return _0x5b8770;}function _0x1d65ae(){const _0x20fa2c=_0x45a9bd[_0x4876ea([0x73,0x70,0x6c,0x69,0x74])](_0x4876ea([0x2e]));if(0x3!=_0x20fa2c[_0x4876ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x496aa7(_0x20fa2c[0x1]);function _0x496aa7(_0x1585e8){const _0x4b3a91=_0x21cff4(_0x1585e8);return _0x4b3a91&&_0x3e9bef()?_0x4b3a91:null;function _0x3e9bef(){const _0x5dd015=_0x4b3a91[_0x4876ea([0x6a,0x74,0x69])],_0x39a669=window[_0x4876ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5dd015[_0x4876ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5dd015[_0x4876ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4f969f={..._0x4b3a91,[_0x4876ea([0x6a,0x74,0x69])]:_0x5dd015[_0x4876ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5dd015[_0x4876ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4f969f[_0x4876ea([0x76,0x63])],_0x16c2f6(_0x4f969f)==_0x39a669;}}}async function _0x1c7ffa(){let _0x9e39ec=!0x0;try{const _0x45a3ae=_0x45a9bd[_0x4876ea([0x73,0x70,0x6c,0x69,0x74])](_0x4876ea([0x2e])),[_0x4bc3a9,_0x4d1afd,_0x22b4cd]=_0x45a3ae;return _0xa84193(_0x4bc3a9),await _0x2e111d(_0x4bc3a9,_0x4d1afd,_0x22b4cd),_0x9e39ec;}catch{return!0x1;}function _0xa84193(_0x46e007){const _0x40bbde=_0x21cff4(_0x46e007);_0x40bbde&&_0x40bbde[_0x4876ea([0x61,0x6c,0x67])]==_0x4876ea([0x45,0x53,0x32,0x35,0x36])||(_0x9e39ec=!0x1);}async function _0x2e111d(_0x536bca,_0x54d552,_0x2aff81){const _0x38a1da=window[_0x4876ea([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4876ea([0x66,0x72,0x6f,0x6d])](_0x29b7a1(_0x2aff81),_0x67f842=>_0x67f842[_0x4876ea([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x293855=new window[(_0x4876ea([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4876ea([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x536bca+_0x4876ea([0x2e])+_0x54d552),_0x5d3b04=window[_0x4876ea([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4876ea([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5d3b04)return;const _0xafbb5d=await _0x5d3b04[_0x4876ea([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4876ea([0x6a,0x77,0x6b]),_0x28d49f,{[_0x4876ea([0x6e,0x61,0x6d,0x65])]:_0x4876ea([0x45,0x43,0x44,0x53,0x41]),[_0x4876ea([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4876ea([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4876ea([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5d3b04[_0x4876ea([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4876ea([0x6e,0x61,0x6d,0x65])]:_0x4876ea([0x45,0x43,0x44,0x53,0x41]),[_0x4876ea([0x68,0x61,0x73,0x68])]:{[_0x4876ea([0x6e,0x61,0x6d,0x65])]:_0x4876ea([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xafbb5d,_0x38a1da,_0x293855)||(_0x9e39ec=!0x1);}}function _0x21cff4(_0xc635b2){return _0xc635b2[_0x4876ea([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4876ea([0x65,0x79]))?JSON[_0x4876ea([0x70,0x61,0x72,0x73,0x65])](_0x29b7a1(_0xc635b2)):null;}function _0x29b7a1(_0x32589b){return window[_0x4876ea([0x61,0x74,0x6f,0x62])](_0x32589b[_0x4876ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4876ea([0x2b]))[_0x4876ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4876ea([0x2f])));}function _0x16c2f6(_0x78b123){let _0x54942e=0x1505;function _0x3550ef(_0x83daa9){for(let _0x109446=0x0;_0x109446<_0x83daa9[_0x4876ea([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x109446++){const _0x457ddb=_0x83daa9[_0x4876ea([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x109446);_0x54942e=(_0x54942e<<0x5)+_0x54942e+_0x457ddb,_0x54942e&=_0x54942e;}}function _0x17a2c4(_0x5003eb){Array[_0x4876ea([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5003eb)?_0x5003eb[_0x4876ea([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x17a2c4):_0x5003eb&&typeof _0x5003eb==_0x4876ea([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4876ea([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5003eb)[_0x4876ea([0x73,0x6f,0x72,0x74])]()[_0x4876ea([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4aea91,_0x1f8ca2])=>{_0x3550ef(_0x4aea91),_0x17a2c4(_0x1f8ca2);}):_0x3550ef(window[_0x4876ea([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5003eb));}return _0x17a2c4(_0x78b123),_0x54942e>>>0x0;}function _0x3e12ed(_0x24c90c){return _0x24c90c[_0x4876ea([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4876ea([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4876ea([0x30]));}function _0x55c07b(_0x2c0b14){return _0x2c0b14[_0x4876ea([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4876ea([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4876ea([0x6a,0x6f,0x69,0x6e])]('');}function _0x312b3a(){}function _0x4876ea(_0x132fcb){return _0x132fcb['map'](_0x2192b4=>String['fromCharCode'](_0x2192b4))['join']('');}_0x35e9eb(await _0x1c9fd8());}(this);}['_validateConfig'](){const _0x3a01ea=this['editor'];if(!_0x3a01ea['config']['get']('lineHeight.supportAllValues'))return;const _0x3cf82b=_0x3a01ea['config']['get']('lineHeight.options')['filter'](_0x13c81e=>'string'==typeof _0x13c81e&&(!H(_0x13c81e)&&isNaN(Number(_0x13c81e))));if(_0x3cf82b['length'])throw new _0x9af03e('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x3cf82b});}['_prepareAnyValueConverters'](){const _0x4fd0cb=this['editor'],_0x17e9dc=this['editor']['config']['get']('lineHeight.defaultValue');_0x4fd0cb['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x4b7811=>String(_0x4b7811)===String(_0x17e9dc)?null:{'key':'style','value':{'line-height':_0x4b7811}}}),_0x4fd0cb['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x52c600=>{let _0x5018b7=_0x52c600['getStyle']('line-height');return _0x47056c(_0x5018b7)&&(_0x5018b7=String(Number(_0x5018b7['slice'](0x0,-0x1))/0x64)),String(_0x5018b7)===String(_0x17e9dc)?null:_0x5018b7;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x2d1be6=this['editor'],_0x3c3b6b=this['editor']['config']['get']('lineHeight.defaultValue'),_0x3be1ff=function(_0x1b69dd,_0x1c03f2){const _0x6c0d92={'model':{'key':_0x1b69dd,'values':[]},'view':{}};for(const _0x25403b of _0x1c03f2)'class'===_0x25403b['view']?.['key']?(_0x6c0d92['model']['values']['push'](_0x25403b['model']),_0x6c0d92['view'][_0x25403b['model']]={'key':'class','value':_0x25403b['view']['value']}):(_0x6c0d92['model']['values']['push'](_0x25403b['model']),_0x6c0d92['view'][_0x25403b['model']]={'key':'style','value':'line-height:'+_0x25403b['model']+';'});return _0x6c0d92;}('lineHeight',L(this['editor']['config']['get']('lineHeight'))['filter'](_0x33fb3b=>_0x33fb3b['model']));_0x2d1be6['conversion']['attributeToAttribute'](_0x3be1ff),_0x2d1be6['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x1d4ad5=>{let _0x4d7891=_0x1d4ad5['getStyle']('line-height');return _0x47056c(_0x4d7891)&&(_0x4d7891=String(Number(_0x4d7891['slice'](0x0,-0x1))/0x64)),_0x4d7891===String(_0x3c3b6b)?null:_0x3be1ff['model']['values']['includes'](_0x4d7891)?_0x4d7891:null;}}});}}class k extends _0xeda21d{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x38c3ec={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x38c3ec),this['_registerMenuBarComponent'](_0x38c3ec),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x403e05=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5f3218;for(const _0x50da87 in _0x403e05){const _0x4c8d94=_0x50da87,_0x46d5e9=_0x403e05[_0x4c8d94];if('lineHeightLicenseKeyValid'==_0x46d5e9||'lineHeightLicenseKeyInvalid'==_0x46d5e9||'lineHeightLicenseKeyExpired'==_0x46d5e9||'lineHeightLicenseKeyDomainLimit'==_0x46d5e9||'lineHeightLicenseKeyNotAllowed'==_0x46d5e9||'lineHeightLicenseKeyEvaluationLimit'==_0x46d5e9||'lineHeightLicenseKeyUsageLimit'==_0x46d5e9){delete _0x403e05[_0x4c8d94],_0x5f3218=_0x46d5e9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x5f3218&&_0x403e05['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x5f3218&&_0x403e05['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x5f3218&&_0x403e05['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x5f3218&&_0x403e05['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x5f3218&&_0x403e05['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x5f3218&&_0x403e05['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x2cf016=this['editor'],t=_0x2cf016['t'],_0x287001=_0x2cf016['config']['get']('lineHeight'),_0x5eecca={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return L(_0x287001)['map'](_0x19476a=>{const _0x3d22a1=_0x5eecca[_0x19476a['title']];return _0x3d22a1&&_0x3d22a1!=_0x19476a['title']&&(_0x19476a=Object['assign']({},_0x19476a,{'title':_0x3d22a1})),_0x19476a;});}['_prepareListOptions'](){const _0x30570c=this['editor']['commands']['get']('lineHeight'),_0x2a0fda=this['editor']['config']['get']('lineHeight.defaultValue'),_0x2fe356=this['_getLocalizedLineHeightOptions'](),_0x2803d3=new _0x2c2eaa(),_0x1a9bf9=_0x3c3470=>'default'===_0x3c3470||String(_0x2a0fda)===_0x3c3470;for(const _0x1903c3 of _0x2fe356){const _0x1ade35={'type':'button','model':new _0x2850b5({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x1903c3['title'],'withText':!0x0})};_0x1a9bf9(_0x1903c3['model'])?(_0x1ade35['model']['bind']('isOn')['to'](_0x30570c,'value',_0x194efe=>!_0x194efe),_0x1ade35['model']['commandParam']=void 0x0):(_0x1ade35['model']['bind']('isOn')['to'](_0x30570c,'value',_0x175d28=>_0x175d28===_0x1903c3['model']),_0x1ade35['model']['commandParam']=_0x1903c3['model']),_0x2803d3['add'](_0x1ade35);}if(this['_shouldRenderCustomValueOption']()){const _0x3fe717=this['_getCustomValueOptionDefinition'](_0x2fe356);_0x2803d3['add'](_0x3fe717);}return _0x2803d3;}['_getCustomValueOptionDefinition'](_0x202e75){const _0x475a56=this['editor'],t=_0x475a56['t'],_0x34a78a=_0x475a56['commands']['get']('lineHeight'),_0xc84079=_0x202e75['map'](_0x56bbda=>_0x56bbda['model']),_0x528fc0={'type':'button','model':new _0x2850b5({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x528fc0['model']['bind']('commandParam')['to'](_0x34a78a,'value'),_0x528fc0['model']['bind']('isOn')['to'](_0x34a78a,'value',_0x1489a2=>!!_0x1489a2&&!_0xc84079['includes'](String(_0x1489a2))),_0x528fc0['model']['bind']('label')['to'](_0x34a78a,'value',_0x7e7440=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x7e7440))),_0x528fc0;}['_registerToolbarComponent']({accessibleLabel:_0xca03b,options:_0x33ae79}){const _0x51ca12=this['editor'],_0x2defa5=_0x51ca12['commands']['get']('lineHeight');_0x51ca12['ui']['componentFactory']['add']('lineHeight',_0x535c0d=>{const _0x194096=_0x456775(_0x535c0d);return _0x25c763(_0x194096,_0x33ae79,{'role':'menu','ariaLabel':_0xca03b}),_0x194096['buttonView']['set']({'label':_0xca03b,'tooltip':!0x0,'icon':_0x52c805}),_0x194096['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x194096['bind']('isEnabled')['to'](_0x2defa5),this['listenTo'](_0x194096,'execute',_0x3b9a41=>{_0x51ca12['execute'](_0x3b9a41['source']['commandName'],{'value':_0x3b9a41['source']['commandParam']}),_0x51ca12['editing']['view']['focus']();}),_0x194096['once']('change:isOpen',()=>{const _0x4f4702=_0x194096['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x194096,_0x33ae79,_0x4f4702);}),_0x194096;});}['_registerMenuBarComponent']({accessibleLabel:_0x462534,options:_0x4908fc}){const _0x11c74a=this['editor'],_0x3f9841=_0x11c74a['commands']['get']('lineHeight');_0x11c74a['ui']['componentFactory']['add']('menuBar:lineHeight',_0x2e26ef=>{const _0x249f4a=new _0x325779(_0x2e26ef);_0x249f4a['buttonView']['set']({'label':_0x462534,'icon':_0x52c805}),_0x249f4a['bind']('isEnabled')['to'](_0x3f9841);const _0x8eccec=new _0x47edf8(_0x2e26ef);for(const _0x11863e of _0x4908fc){const _0x2dbd2a=new _0x2ed091(_0x2e26ef,_0x249f4a),_0x4dee27=new _0x1404ea(_0x2e26ef);_0x4dee27['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x4dee27['bind'](...Object['keys'](_0x11863e['model']))['to'](_0x11863e['model']),_0x4dee27['delegate']('execute')['to'](_0x249f4a),_0x4dee27['on']('execute',()=>{_0x11c74a['execute'](_0x11863e['model']['commandName'],{'value':_0x11863e['model']['commandParam']}),_0x11c74a['editing']['view']['focus']();}),_0x2dbd2a['children']['add'](_0x4dee27),_0x8eccec['items']['add'](_0x2dbd2a);}return _0x249f4a['panelView']['children']['add'](_0x8eccec),this['_attachCustomOptionVisibilityHandler'](_0x249f4a,_0x4908fc,_0x8eccec),_0x249f4a;});}['_attachCustomOptionVisibilityHandler'](_0x4bb77f,_0x2a59ae,_0x4a18bd){if(!this['_shouldRenderCustomValueOption']())return;const _0x23af4a=()=>{if(!_0x4bb77f['isOpen'])return;_0x4a18bd['items']['last']['isVisible']=Boolean(_0x2a59ae['last']['model']['isOn']);};_0x23af4a(),_0x4bb77f['on']('change:isOpen',()=>{_0x23af4a();});}}class _ extends _0xeda21d{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 _0x1e1033,Plugin as _0x577069}from'@ckeditor/ckeditor5-core/dist/index.js';import{first as _0x40b463,CKEditorError as _0x466dd5,uid as _0x410cf0,Collection as _0x2f4d73}from'@ckeditor/ckeditor5-utils/dist/index.js';import{Matcher as _0x222111,isPercentageStyleValue as _0x457886}from'@ckeditor/ckeditor5-engine/dist/index.js';import{UIModel as _0x574eb2,createDropdown as _0x208ee5,addListToDropdown as _0x200cfd,MenuBarMenuView as _0x447837,MenuBarMenuListView as _0x5f0785,MenuBarMenuListItemView as _0x2a74ca,MenuBarMenuListItemButtonView as _0x1cfb3f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconLineHeight as _0x1eb259}from'@ckeditor/ckeditor5-icons/dist/index.js';class p extends _0x1e1033{['refresh'](){const _0x4cc84f=this['editor']['model']['document'],_0x5e12ee=_0x40b463(_0x4cc84f['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x5e12ee)&&this['_canHaveLineHeight'](_0x5e12ee),this['value']=this['isEnabled']&&_0x5e12ee['getAttribute']('lineHeight');}['execute'](_0x4d39da={}){const _0x201ab9=this['editor']['model'],_0x4f469a=_0x201ab9['document']['selection'],_0x3d60bf=_0x4d39da['value'];_0x201ab9['change'](_0x222fd6=>{const _0x38a49a=Array['from'](_0x4f469a['getSelectedBlocks']())['filter'](_0x1a4e70=>this['_canHaveLineHeight'](_0x1a4e70));for(const _0x2ff6ce of _0x38a49a)_0x3d60bf?_0x222fd6['setAttribute']('lineHeight',_0x3d60bf,_0x2ff6ce):_0x222fd6['removeAttribute']('lineHeight',_0x2ff6ce);});}['_canHaveLineHeight'](_0x1ee592){return this['editor']['model']['schema']['checkAttribute'](_0x1ee592,'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(_0x206f9a){return'string'==typeof _0x206f9a&&'default'===_0x206f9a['toLowerCase']();}function L(_0x154ecb){return _0x154ecb['options']['map'](_0x3aa4b9=>{return H(_0x3aa4b9)?{'title':String(_0x154ecb['defaultValue']),'model':'default'}:('number'==typeof _0x3aa4b9&&(_0x3aa4b9=String(_0x3aa4b9)),'string'!=typeof _0x3aa4b9?_0x3aa4b9:parseFloat(_0x3aa4b9)?{'title':_0x3aa4b9,'model':_0x3aa4b9,'view':{'name':'span','styles':{'line-height':_0x3aa4b9}}}:'string'==typeof(_0x4c9297=_0x3aa4b9)?y[_0x4c9297]:y[_0x4c9297['model']]);var _0x4c9297;})['filter'](_0x4c78a3=>void 0x0!==_0x4c78a3);}class v extends _0x577069{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x399992,conversion:_0x52769e}=this['editor'];if(!_0x399992['has']('ListEditing')||!_0x399992['has']('TodoListEditing'))return;_0x399992['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x3399da,_0x454e1d,_0x48c448,_0x1c14b8,_0x5023e1){'todo'==_0x5023e1['getAttribute']('listType')&&_0x454e1d&&(_0x3399da['addClass']('ck-list-marker-line-height',_0x48c448),_0x3399da['setStyle']('--ck-content-list-marker-line-height',_0x454e1d,_0x48c448));}}),_0x52769e['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x52769e['for']('upcast')['add'](_0x45eca8=>{_0x45eca8['on']('element:li',function(_0x81428c){const _0x57319a=new _0x222111(_0x81428c);return(_0x420f5c,_0x540482,_0x3cadb8)=>{const _0x53ab93=_0x57319a['match'](_0x540482['viewItem']);if(!_0x53ab93)return;const _0x2c38d3=_0x53ab93['match'];_0x2c38d3['name']=!0x1,_0x3cadb8['consumable']['consume'](_0x540482['viewItem'],_0x2c38d3);};}({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));});}}class b extends _0x577069{static get['pluginName'](){return'LineHeightEditing';}static get['requires'](){return[v];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x354061){super(_0x354061),_0x354061['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x27bd48=this['editor'];this['_validateConfig'](),_0x27bd48['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x27bd48['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x27bd48['commands']['add']('lineHeight',new p(_0x27bd48)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){!async function(_0x1c7c4a){const _0x3c1622=_0x332c75([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]),_0x1e0926=0x45ddd215,_0x4fd4f8=0x45da57c5^_0x1e0926,_0x352a5c=window[_0x332c75([0x44,0x61,0x74,0x65])][_0x332c75([0x6e,0x6f,0x77])](),_0x322613=_0x1c7c4a[_0x332c75([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4c57f0=new window[(_0x332c75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11e8f5=>{_0x322613[_0x332c75([0x6f,0x6e,0x63,0x65])](_0x332c75([0x72,0x65,0x61,0x64,0x79]),_0x11e8f5);}),_0x24c056={[_0x332c75([0x6b,0x74,0x79])]:_0x332c75([0x45,0x43]),[_0x332c75([0x75,0x73,0x65])]:_0x332c75([0x73,0x69,0x67]),[_0x332c75([0x63,0x72,0x76])]:_0x332c75([0x50,0x2d,0x32,0x35,0x36]),[_0x332c75([0x78])]:_0x332c75([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]),[_0x332c75([0x79])]:_0x332c75([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]),[_0x332c75([0x61,0x6c,0x67])]:_0x332c75([0x45,0x53,0x32,0x35,0x36])},_0x15e739=_0x322613[_0x332c75([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x332c75([0x67,0x65,0x74])](_0x332c75([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x257af0(){let _0x31509e,_0x29a296=null,_0x520c11=null;try{if(_0x15e739==_0x332c75([0x47,0x50,0x4c]))return _0x332c75([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x31509e=_0x3f49c4(),!_0x31509e)return _0x332c75([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x31509e[_0x332c75([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x520c11=_0x3a30a8(_0x31509e[_0x332c75([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x31509e[_0x332c75([0x6a,0x74,0x69])])),await _0x45c112()?_0x2c800d()?_0x18f28b()?_0x332c75([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x300a48()?(_0x31509e[_0x332c75([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x332c75([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x29a296=_0xd87a2b(_0x332c75([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2ed90a()):_0x332c75([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x332c75([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x332c75([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x332c75([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x18f28b(){const _0x8eca6d=[_0x332c75([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x332c75([0x74,0x72,0x69,0x61,0x6c])][_0x332c75([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31509e[_0x332c75([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x352a5c/0x3e8:0xe10*_0x4fd4f8;return _0x31509e[_0x332c75([0x65,0x78,0x70])]<_0x8eca6d;}function _0x2c800d(){const _0x1a51ff=_0x31509e[_0x332c75([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1a51ff&&(!!_0x1a51ff[_0x332c75([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x332c75([0x2a]))||!!_0x1a51ff[_0x332c75([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x332c75([0x4c,0x48])));}function _0x300a48(){const _0x59dbd7=_0x31509e[_0x332c75([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x59dbd7||0x0==_0x59dbd7[_0x332c75([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x44d379}=new URL(window[_0x332c75([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x59dbd7[_0x332c75([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44d379))return!0x0;const _0x27ff6b=_0x44d379[_0x332c75([0x73,0x70,0x6c,0x69,0x74])](_0x332c75([0x2e]));return _0x59dbd7[_0x332c75([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4e9723=>_0x4e9723[_0x332c75([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x332c75([0x2a])))[_0x332c75([0x6d,0x61,0x70])](_0x800b0e=>_0x800b0e[_0x332c75([0x73,0x70,0x6c,0x69,0x74])](_0x332c75([0x2e])))[_0x332c75([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x17a0ba=>_0x17a0ba[_0x332c75([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x27ff6b[_0x332c75([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x332c75([0x6d,0x61,0x70])](_0x2af7b0=>Array(_0x27ff6b[_0x332c75([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2af7b0[_0x332c75([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x332c75([0x66,0x69,0x6c,0x6c])](_0x2af7b0[0x0]===_0x332c75([0x2a])?_0x332c75([0x2a]):'')[_0x332c75([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2af7b0))[_0x332c75([0x73,0x6f,0x6d,0x65])](_0x4d94ab=>_0x27ff6b[_0x332c75([0x65,0x76,0x65,0x72,0x79])]((_0x4e6202,_0x1ffe13)=>_0x4d94ab[_0x1ffe13]===_0x4e6202||_0x4d94ab[_0x1ffe13]===_0x332c75([0x2a])));}function _0x2ed90a(){return _0x29a296&&_0x520c11?new window[(_0x332c75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47d921,_0x35ce02)=>{_0x29a296[_0x332c75([0x74,0x68,0x65,0x6e])](_0x47d921,_0x35ce02),_0x520c11[_0x332c75([0x74,0x68,0x65,0x6e])](_0x15a5bc=>{_0x15a5bc!=_0x332c75([0x56,0x61,0x6c,0x69,0x64])&&_0x47d921(_0x15a5bc);},_0x35ce02);}):_0x29a296||_0x520c11||_0x332c75([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3a30a8(_0x270adc,_0x2d82bb){return new window[(_0x332c75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f5116=>{if(_0x4c7ce5())return _0x3f5116(_0x332c75([0x56,0x61,0x6c,0x69,0x64]));_0x258656(),_0x322613[_0x332c75([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x332c75([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x20d87a=!0x1;const _0x15421c=_0x410cf0();function _0x37ef56(_0x2630f1){return!!_0x2630f1&&(typeof _0x2630f1===_0x332c75([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2630f1===_0x332c75([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2630f1[_0x332c75([0x74,0x68,0x65,0x6e])]===_0x332c75([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2630f1[_0x332c75([0x63,0x61,0x74,0x63,0x68])]===_0x332c75([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x475697(_0x38a97e){_0x36f10f(_0x38a97e)[_0x332c75([0x74,0x68,0x65,0x6e])](_0x4563a7=>{if(!_0x4563a7||_0x4563a7[_0x332c75([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x332c75([0x6f,0x6b]))return _0x332c75([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x274200(_0x3ab976(_0x15421c+_0x2d82bb))!=_0x4563a7[_0x332c75([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x332c75([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x332c75([0x56,0x61,0x6c,0x69,0x64]);})[_0x332c75([0x74,0x68,0x65,0x6e])](_0x4b1007=>(_0x2a93a0(),_0x4b1007),()=>{const _0x4b14fe=_0x2ef244();return null==_0x4b14fe?(_0x2a93a0(),_0x332c75([0x56,0x61,0x6c,0x69,0x64])):_0x332c75(_0x352a5c-_0x4b14fe>(0x61d15615^_0x1e0926)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x332c75([0x74,0x68,0x65,0x6e])](_0x3f5116)[_0x332c75([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3f5116(_0x332c75([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2b29df=0x45eb3c95^_0x1e0926;function _0x2a93a0(){const _0x5d0d55=_0x332c75([0x6c,0x6c,0x63,0x74,0x2d])+_0x274200(_0x3ab976(_0x270adc)),_0x2858de=_0x1b6763(_0x274200(window[_0x332c75([0x4d,0x61,0x74,0x68])][_0x332c75([0x63,0x65,0x69,0x6c])](_0x352a5c/_0x2b29df)));window[_0x332c75([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x332c75([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d0d55,_0x2858de);}function _0x2ef244(){const _0x10094c=_0x332c75([0x6c,0x6c,0x63,0x74,0x2d])+_0x274200(_0x3ab976(_0x270adc)),_0x44df53=window[_0x332c75([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x332c75([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10094c);return _0x44df53?window[_0x332c75([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b6763(_0x44df53),0x10)*_0x2b29df:null;}function _0x36f10f(_0x47effd){return new window[(_0x332c75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51a15a,_0x589260)=>{_0x47effd[_0x332c75([0x74,0x68,0x65,0x6e])](_0x51a15a,_0x589260),window[_0x332c75([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x589260,0x45dc06d5^_0x1e0926);});}}_0x322613[_0x332c75([0x6f,0x6e])](_0x332c75([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2c8214,_0x155ffa)=>{if(_0x155ffa[0x0]!=_0x270adc)return _0x3f5116(_0x332c75([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x155ffa[0x1]={..._0x155ffa[0x1],[_0x332c75([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x15421c};},{[_0x332c75([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x332c75([0x68,0x69,0x67,0x68])}),_0x322613[_0x332c75([0x6f,0x6e])](_0x332c75([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x47c607=>{_0x37ef56(_0x47c607[_0x332c75([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x20d87a=!0x0,_0x475697(_0x47c607[_0x332c75([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x332c75([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x332c75([0x6c,0x6f,0x77])}),_0x4c57f0[_0x332c75([0x74,0x68,0x65,0x6e])](()=>{_0x20d87a||_0x3f5116(_0x332c75([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4c7ce5(){return _0x322613[_0x332c75([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x332c75([0x76,0x69,0x65,0x77])][_0x332c75([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x332c75([0x61,0x75,0x74,0x6f]);}function _0x258656(){_0x322613[_0x332c75([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x332c75([0x76,0x69,0x65,0x77])][_0x332c75([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x332c75([0x61,0x75,0x74,0x6f]);}}function _0xd87a2b(_0x21a4b3){const _0x5e44d0=[new window[(_0x332c75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cf83e=>setTimeout(_0x3cf83e,0x45d4ecd9^_0x1e0926)),_0x4c57f0[_0x332c75([0x74,0x68,0x65,0x6e])](()=>new window[(_0x332c75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14cadc=>{let _0x856358=0x0;_0x322613[_0x332c75([0x6d,0x6f,0x64,0x65,0x6c])][_0x332c75([0x6f,0x6e])](_0x332c75([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x384bd0,_0x27b586)=>{_0x27b586[0x0][_0x332c75([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x856358++,_0x856358==(0x45ddd7fd^_0x1e0926)&&(_0x14cadc(),_0x384bd0[_0x332c75([0x6f,0x66,0x66])]());});}))];return window[_0x332c75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x332c75([0x72,0x61,0x63,0x65])](_0x5e44d0)[_0x332c75([0x74,0x68,0x65,0x6e])](()=>_0x21a4b3);}async function _0x1d9fff(){await _0x4c57f0,_0x322613[_0x332c75([0x6d,0x6f,0x64,0x65,0x6c])][_0x332c75([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x33f693,_0x322613[_0x332c75([0x6d,0x6f,0x64,0x65,0x6c])][_0x332c75([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x33f693,_0x322613[_0x332c75([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x332c75([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2e12bb(_0x5a1c1a){const _0x5d4b2f=_0x110e61();_0x322613[_0x5d4b2f]=_0x332c75([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5a1c1a,_0x5a1c1a!=_0x332c75([0x56,0x61,0x6c,0x69,0x64])&&_0x1d9fff();}function _0x110e61(){const _0x9056bd=window[_0x332c75([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x332c75([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x332c75([0x6e,0x6f,0x77])]())[_0x332c75([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x332c75([0x2e]),'');let _0x40db32=_0x332c75([0x50]);for(let _0x20ca7e=0x0;_0x20ca7e<_0x9056bd[_0x332c75([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x20ca7e+=0x2){let _0x3dfe5b=window[_0x332c75([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9056bd[_0x332c75([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20ca7e,_0x20ca7e+0x2));_0x3dfe5b>=_0x3c1622[_0x332c75([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3dfe5b-=_0x3c1622[_0x332c75([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x40db32+=_0x3c1622[_0x3dfe5b];}return _0x40db32;}function _0x3f49c4(){const _0x4873a1=_0x15e739[_0x332c75([0x73,0x70,0x6c,0x69,0x74])](_0x332c75([0x2e]));if(0x3!=_0x4873a1[_0x332c75([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5d359d(_0x4873a1[0x1]);function _0x5d359d(_0x1aa362){const _0x260b59=_0x33c8a6(_0x1aa362);return _0x260b59&&_0x2b4b81()?_0x260b59:null;function _0x2b4b81(){const _0x4915d2=_0x260b59[_0x332c75([0x6a,0x74,0x69])],_0x591a41=window[_0x332c75([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4915d2[_0x332c75([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4915d2[_0x332c75([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2c5573={..._0x260b59,[_0x332c75([0x6a,0x74,0x69])]:_0x4915d2[_0x332c75([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4915d2[_0x332c75([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2c5573[_0x332c75([0x76,0x63])],_0x3ab976(_0x2c5573)==_0x591a41;}}}async function _0x45c112(){let _0x4a4bc6=!0x0;try{const _0x3a3bc6=_0x15e739[_0x332c75([0x73,0x70,0x6c,0x69,0x74])](_0x332c75([0x2e])),[_0x4fb76b,_0x437ddf,_0x3608a7]=_0x3a3bc6;return _0x4604ea(_0x4fb76b),await _0xd8d723(_0x4fb76b,_0x437ddf,_0x3608a7),_0x4a4bc6;}catch{return!0x1;}function _0x4604ea(_0x5b8f80){const _0x40e749=_0x33c8a6(_0x5b8f80);_0x40e749&&_0x40e749[_0x332c75([0x61,0x6c,0x67])]==_0x332c75([0x45,0x53,0x32,0x35,0x36])||(_0x4a4bc6=!0x1);}async function _0xd8d723(_0x1b4de0,_0x5896a1,_0x809494){const _0xc319e8=window[_0x332c75([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x332c75([0x66,0x72,0x6f,0x6d])](_0x13e085(_0x809494),_0x13419f=>_0x13419f[_0x332c75([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x49a98c=new window[(_0x332c75([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x332c75([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1b4de0+_0x332c75([0x2e])+_0x5896a1),_0x26125c=window[_0x332c75([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x332c75([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x26125c)return;const _0x163086=await _0x26125c[_0x332c75([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x332c75([0x6a,0x77,0x6b]),_0x24c056,{[_0x332c75([0x6e,0x61,0x6d,0x65])]:_0x332c75([0x45,0x43,0x44,0x53,0x41]),[_0x332c75([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x332c75([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x332c75([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x26125c[_0x332c75([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x332c75([0x6e,0x61,0x6d,0x65])]:_0x332c75([0x45,0x43,0x44,0x53,0x41]),[_0x332c75([0x68,0x61,0x73,0x68])]:{[_0x332c75([0x6e,0x61,0x6d,0x65])]:_0x332c75([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x163086,_0xc319e8,_0x49a98c)||(_0x4a4bc6=!0x1);}}function _0x33c8a6(_0x1577af){return _0x1577af[_0x332c75([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x332c75([0x65,0x79]))?JSON[_0x332c75([0x70,0x61,0x72,0x73,0x65])](_0x13e085(_0x1577af)):null;}function _0x13e085(_0x2eb0dd){return window[_0x332c75([0x61,0x74,0x6f,0x62])](_0x2eb0dd[_0x332c75([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x332c75([0x2b]))[_0x332c75([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x332c75([0x2f])));}function _0x3ab976(_0x5a9a33){let _0x3213b9=0x1505;function _0x4aa7ad(_0xe85e6b){for(let _0x1e72d3=0x0;_0x1e72d3<_0xe85e6b[_0x332c75([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e72d3++){const _0xdf3c5f=_0xe85e6b[_0x332c75([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1e72d3);_0x3213b9=(_0x3213b9<<0x5)+_0x3213b9+_0xdf3c5f,_0x3213b9&=_0x3213b9;}}function _0x2bc5f5(_0x2cd78e){Array[_0x332c75([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2cd78e)?_0x2cd78e[_0x332c75([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2bc5f5):_0x2cd78e&&typeof _0x2cd78e==_0x332c75([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x332c75([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2cd78e)[_0x332c75([0x73,0x6f,0x72,0x74])]()[_0x332c75([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2ef291,_0x49700c])=>{_0x4aa7ad(_0x2ef291),_0x2bc5f5(_0x49700c);}):_0x4aa7ad(window[_0x332c75([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2cd78e));}return _0x2bc5f5(_0x5a9a33),_0x3213b9>>>0x0;}function _0x274200(_0x35a85b){return _0x35a85b[_0x332c75([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x332c75([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x332c75([0x30]));}function _0x1b6763(_0x57a7b3){return _0x57a7b3[_0x332c75([0x73,0x70,0x6c,0x69,0x74])]('')[_0x332c75([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x332c75([0x6a,0x6f,0x69,0x6e])]('');}function _0x33f693(){}function _0x332c75(_0x3bfd0c){return _0x3bfd0c['map'](_0x20e0f3=>String['fromCharCode'](_0x20e0f3))['join']('');}_0x2e12bb(await _0x257af0());}(this);}['_validateConfig'](){const _0x13bde5=this['editor'];if(!_0x13bde5['config']['get']('lineHeight.supportAllValues'))return;const _0x41b9a2=_0x13bde5['config']['get']('lineHeight.options')['filter'](_0x33174e=>'string'==typeof _0x33174e&&(!H(_0x33174e)&&isNaN(Number(_0x33174e))));if(_0x41b9a2['length'])throw new _0x466dd5('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x41b9a2});}['_prepareAnyValueConverters'](){const _0x503772=this['editor'],_0x54b692=this['editor']['config']['get']('lineHeight.defaultValue');_0x503772['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x3c57e8=>String(_0x3c57e8)===String(_0x54b692)?null:{'key':'style','value':{'line-height':_0x3c57e8}}}),_0x503772['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x1b795=>{let _0x29dea2=_0x1b795['getStyle']('line-height');return _0x457886(_0x29dea2)&&(_0x29dea2=String(Number(_0x29dea2['slice'](0x0,-0x1))/0x64)),String(_0x29dea2)===String(_0x54b692)?null:_0x29dea2;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x542bba=this['editor'],_0x303384=this['editor']['config']['get']('lineHeight.defaultValue'),_0x3effce=function(_0x5d4bb3,_0x282ca0){const _0x3055d3={'model':{'key':_0x5d4bb3,'values':[]},'view':{}};for(const _0x4c6059 of _0x282ca0)'class'===_0x4c6059['view']?.['key']?(_0x3055d3['model']['values']['push'](_0x4c6059['model']),_0x3055d3['view'][_0x4c6059['model']]={'key':'class','value':_0x4c6059['view']['value']}):(_0x3055d3['model']['values']['push'](_0x4c6059['model']),_0x3055d3['view'][_0x4c6059['model']]={'key':'style','value':'line-height:'+_0x4c6059['model']+';'});return _0x3055d3;}('lineHeight',L(this['editor']['config']['get']('lineHeight'))['filter'](_0x5089fa=>_0x5089fa['model']));_0x542bba['conversion']['attributeToAttribute'](_0x3effce),_0x542bba['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x4ef776=>{let _0x1a493f=_0x4ef776['getStyle']('line-height');return _0x457886(_0x1a493f)&&(_0x1a493f=String(Number(_0x1a493f['slice'](0x0,-0x1))/0x64)),_0x1a493f===String(_0x303384)?null:_0x3effce['model']['values']['includes'](_0x1a493f)?_0x1a493f:null;}}});}}class k extends _0x577069{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3842a7={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x3842a7),this['_registerMenuBarComponent'](_0x3842a7),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x572c36=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x22aea0;for(const _0x43543b in _0x572c36){const _0x3b562b=_0x43543b,_0x3e6196=_0x572c36[_0x3b562b];if('lineHeightLicenseKeyValid'==_0x3e6196||'lineHeightLicenseKeyInvalid'==_0x3e6196||'lineHeightLicenseKeyExpired'==_0x3e6196||'lineHeightLicenseKeyDomainLimit'==_0x3e6196||'lineHeightLicenseKeyNotAllowed'==_0x3e6196||'lineHeightLicenseKeyEvaluationLimit'==_0x3e6196||'lineHeightLicenseKeyUsageLimit'==_0x3e6196){delete _0x572c36[_0x3b562b],_0x22aea0=_0x3e6196,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x22aea0&&_0x572c36['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x22aea0&&_0x572c36['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x22aea0&&_0x572c36['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x22aea0&&_0x572c36['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x22aea0&&_0x572c36['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x22aea0&&_0x572c36['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x2a1440=this['editor'],t=_0x2a1440['t'],_0x1c298a=_0x2a1440['config']['get']('lineHeight'),_0x585533={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return L(_0x1c298a)['map'](_0x3b80c8=>{const _0x3ddf0c=_0x585533[_0x3b80c8['title']];return _0x3ddf0c&&_0x3ddf0c!=_0x3b80c8['title']&&(_0x3b80c8=Object['assign']({},_0x3b80c8,{'title':_0x3ddf0c})),_0x3b80c8;});}['_prepareListOptions'](){const _0x454b3c=this['editor']['commands']['get']('lineHeight'),_0x3509f6=this['editor']['config']['get']('lineHeight.defaultValue'),_0x1ee404=this['_getLocalizedLineHeightOptions'](),_0x259896=new _0x2f4d73(),_0x28cf82=_0x4a2bf4=>'default'===_0x4a2bf4||String(_0x3509f6)===_0x4a2bf4;for(const _0x444411 of _0x1ee404){const _0x1b63a8={'type':'button','model':new _0x574eb2({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x444411['title'],'withText':!0x0})};_0x28cf82(_0x444411['model'])?(_0x1b63a8['model']['bind']('isOn')['to'](_0x454b3c,'value',_0x50ea9f=>!_0x50ea9f),_0x1b63a8['model']['commandParam']=void 0x0):(_0x1b63a8['model']['bind']('isOn')['to'](_0x454b3c,'value',_0x5e6fca=>_0x5e6fca===_0x444411['model']),_0x1b63a8['model']['commandParam']=_0x444411['model']),_0x259896['add'](_0x1b63a8);}if(this['_shouldRenderCustomValueOption']()){const _0x444390=this['_getCustomValueOptionDefinition'](_0x1ee404);_0x259896['add'](_0x444390);}return _0x259896;}['_getCustomValueOptionDefinition'](_0x188a9c){const _0xb86e39=this['editor'],t=_0xb86e39['t'],_0x13ada0=_0xb86e39['commands']['get']('lineHeight'),_0x5b3fe3=_0x188a9c['map'](_0x1f9588=>_0x1f9588['model']),_0x9406d6={'type':'button','model':new _0x574eb2({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x9406d6['model']['bind']('commandParam')['to'](_0x13ada0,'value'),_0x9406d6['model']['bind']('isOn')['to'](_0x13ada0,'value',_0x371a36=>!!_0x371a36&&!_0x5b3fe3['includes'](String(_0x371a36))),_0x9406d6['model']['bind']('label')['to'](_0x13ada0,'value',_0x4a26c1=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x4a26c1))),_0x9406d6;}['_registerToolbarComponent']({accessibleLabel:_0x11ccfb,options:_0x43d261}){const _0x587c59=this['editor'],_0x4b1354=_0x587c59['commands']['get']('lineHeight');_0x587c59['ui']['componentFactory']['add']('lineHeight',_0x48974f=>{const _0x304851=_0x208ee5(_0x48974f);return _0x200cfd(_0x304851,_0x43d261,{'role':'menu','ariaLabel':_0x11ccfb}),_0x304851['buttonView']['set']({'label':_0x11ccfb,'tooltip':!0x0,'icon':_0x1eb259}),_0x304851['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x304851['bind']('isEnabled')['to'](_0x4b1354),this['listenTo'](_0x304851,'execute',_0x3aa9ba=>{_0x587c59['execute'](_0x3aa9ba['source']['commandName'],{'value':_0x3aa9ba['source']['commandParam']}),_0x587c59['editing']['view']['focus']();}),_0x304851['once']('change:isOpen',()=>{const _0x199e54=_0x304851['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x304851,_0x43d261,_0x199e54);}),_0x304851;});}['_registerMenuBarComponent']({accessibleLabel:_0x22afe1,options:_0x10cc97}){const _0x59d125=this['editor'],_0x2d9c89=_0x59d125['commands']['get']('lineHeight');_0x59d125['ui']['componentFactory']['add']('menuBar:lineHeight',_0x35e346=>{const _0x5912ea=new _0x447837(_0x35e346);_0x5912ea['buttonView']['set']({'label':_0x22afe1,'icon':_0x1eb259}),_0x5912ea['bind']('isEnabled')['to'](_0x2d9c89);const _0x2b23ab=new _0x5f0785(_0x35e346);for(const _0x254b31 of _0x10cc97){const _0x8518a5=new _0x2a74ca(_0x35e346,_0x5912ea),_0xd611a0=new _0x1cfb3f(_0x35e346);_0xd611a0['set']({'role':'menuitemradio','isToggleable':!0x0}),_0xd611a0['bind'](...Object['keys'](_0x254b31['model']))['to'](_0x254b31['model']),_0xd611a0['delegate']('execute')['to'](_0x5912ea),_0xd611a0['on']('execute',()=>{_0x59d125['execute'](_0x254b31['model']['commandName'],{'value':_0x254b31['model']['commandParam']}),_0x59d125['editing']['view']['focus']();}),_0x8518a5['children']['add'](_0xd611a0),_0x2b23ab['items']['add'](_0x8518a5);}return _0x5912ea['panelView']['children']['add'](_0x2b23ab),this['_attachCustomOptionVisibilityHandler'](_0x5912ea,_0x10cc97,_0x2b23ab),_0x5912ea;});}['_attachCustomOptionVisibilityHandler'](_0x4af92a,_0x1ff2b7,_0x62afe8){if(!this['_shouldRenderCustomValueOption']())return;const _0x4fa725=()=>{if(!_0x4af92a['isOpen'])return;_0x62afe8['items']['last']['isVisible']=Boolean(_0x1ff2b7['last']['model']['isOn']);};_0x4fa725(),_0x4af92a['on']('change:isOpen',()=>{_0x4fa725();});}}class _ extends _0x577069{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.10",
3
+ "version": "48.0.0-alpha.11",
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.10",
29
- "@ckeditor/ckeditor5-engine": "48.0.0-alpha.10",
30
- "@ckeditor/ckeditor5-icons": "48.0.0-alpha.10",
31
- "@ckeditor/ckeditor5-list": "48.0.0-alpha.10",
32
- "@ckeditor/ckeditor5-ui": "48.0.0-alpha.10",
33
- "@ckeditor/ckeditor5-utils": "48.0.0-alpha.10"
28
+ "@ckeditor/ckeditor5-core": "48.0.0-alpha.11",
29
+ "@ckeditor/ckeditor5-engine": "48.0.0-alpha.11",
30
+ "@ckeditor/ckeditor5-icons": "48.0.0-alpha.11",
31
+ "@ckeditor/ckeditor5-list": "48.0.0-alpha.11",
32
+ "@ckeditor/ckeditor5-ui": "48.0.0-alpha.11",
33
+ "@ckeditor/ckeditor5-utils": "48.0.0-alpha.11"
34
34
  },
35
35
  "files": [
36
36
  "dist",