@ckeditor/ckeditor5-line-height 48.0.0-alpha.1 → 48.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _0x1d9988,Plugin as _0x4298ad}from'@ckeditor/ckeditor5-core/dist/index.js';import{first as _0x3d4bc0,CKEditorError as _0x2b4668,uid as _0x1382ac,Collection as _0x9369e9}from'@ckeditor/ckeditor5-utils/dist/index.js';import{Matcher as _0x19a2c2,isPercentageStyleValue as _0x3271c1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{UIModel as _0x392f8c,createDropdown as _0x115a7d,addListToDropdown as _0x523b8e,MenuBarMenuView as _0x11d701,MenuBarMenuListView as _0x97b91b,MenuBarMenuListItemView as _0x90a224,MenuBarMenuListItemButtonView as _0x1d8317}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconLineHeight as _0x44a86f}from'@ckeditor/ckeditor5-icons/dist/index.js';class p extends _0x1d9988{['refresh'](){const _0x212ae2=this['editor']['model']['document'],_0x4d7bb4=_0x3d4bc0(_0x212ae2['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x4d7bb4)&&this['_canHaveLineHeight'](_0x4d7bb4),this['value']=this['isEnabled']&&_0x4d7bb4['getAttribute']('lineHeight');}['execute'](_0x3e498e={}){const _0x2ff612=this['editor']['model'],_0x492af4=_0x2ff612['document']['selection'],_0x343f52=_0x3e498e['value'];_0x2ff612['change'](_0x1d63f6=>{const _0x28cc92=Array['from'](_0x492af4['getSelectedBlocks']())['filter'](_0x1ec4da=>this['_canHaveLineHeight'](_0x1ec4da));for(const _0xe0c956 of _0x28cc92)_0x343f52?_0x1d63f6['setAttribute']('lineHeight',_0x343f52,_0xe0c956):_0x1d63f6['removeAttribute']('lineHeight',_0xe0c956);});}['_canHaveLineHeight'](_0x55b019){return this['editor']['model']['schema']['checkAttribute'](_0x55b019,'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(_0x4f52f){return'string'==typeof _0x4f52f&&'default'===_0x4f52f['toLowerCase']();}function L(_0x2e5d6e){return _0x2e5d6e['options']['map'](_0x920431=>{return H(_0x920431)?{'title':String(_0x2e5d6e['defaultValue']),'model':'default'}:('number'==typeof _0x920431&&(_0x920431=String(_0x920431)),'string'!=typeof _0x920431?_0x920431:parseFloat(_0x920431)?{'title':_0x920431,'model':_0x920431,'view':{'name':'span','styles':{'line-height':_0x920431}}}:'string'==typeof(_0x32d202=_0x920431)?y[_0x32d202]:y[_0x32d202['model']]);var _0x32d202;})['filter'](_0x4e6b1c=>void 0x0!==_0x4e6b1c);}class v extends _0x4298ad{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x2d08e7,conversion:_0x412b0b}=this['editor'];if(!_0x2d08e7['has']('ListEditing')||!_0x2d08e7['has']('TodoListEditing'))return;_0x2d08e7['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x59d5e1,_0x510aea,_0x22a9c7,_0x4bb862,_0x2f2b1c){'todo'==_0x2f2b1c['getAttribute']('listType')&&_0x510aea&&(_0x59d5e1['addClass']('ck-list-marker-line-height',_0x22a9c7),_0x59d5e1['setStyle']('--ck-content-list-marker-line-height',_0x510aea,_0x22a9c7));}}),_0x412b0b['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x412b0b['for']('upcast')['add'](_0x26eb8a=>{_0x26eb8a['on']('element:li',function(_0x212b6e){const _0x550d20=new _0x19a2c2(_0x212b6e);return(_0x3dc31d,_0x4c6eb7,_0x459bea)=>{const _0x4207f8=_0x550d20['match'](_0x4c6eb7['viewItem']);if(!_0x4207f8)return;const _0x4a20c5=_0x4207f8['match'];_0x4a20c5['name']=!0x1,_0x459bea['consumable']['consume'](_0x4c6eb7['viewItem'],_0x4a20c5);};}({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));});}}class b extends _0x4298ad{static get['pluginName'](){return'LineHeightEditing';}static get['requires'](){return[v];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xa2986){super(_0xa2986),_0xa2986['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x23a5e9=this['editor'];this['_validateConfig'](),_0x23a5e9['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x23a5e9['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x23a5e9['commands']['add']('lineHeight',new p(_0x23a5e9)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){!async function(_0x502d8d){const _0x4883e3=_0x50f91d([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]),_0x3b1793=0x45ddd215,_0x139eac=0x45da56f5^_0x3b1793,_0x2e3f1e=window[_0x50f91d([0x44,0x61,0x74,0x65])][_0x50f91d([0x6e,0x6f,0x77])](),_0x8b4678=_0x502d8d[_0x50f91d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1cbbab=new window[(_0x50f91d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34842b=>{_0x8b4678[_0x50f91d([0x6f,0x6e,0x63,0x65])](_0x50f91d([0x72,0x65,0x61,0x64,0x79]),_0x34842b);}),_0x39e629={[_0x50f91d([0x6b,0x74,0x79])]:_0x50f91d([0x45,0x43]),[_0x50f91d([0x75,0x73,0x65])]:_0x50f91d([0x73,0x69,0x67]),[_0x50f91d([0x63,0x72,0x76])]:_0x50f91d([0x50,0x2d,0x32,0x35,0x36]),[_0x50f91d([0x78])]:_0x50f91d([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]),[_0x50f91d([0x79])]:_0x50f91d([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]),[_0x50f91d([0x61,0x6c,0x67])]:_0x50f91d([0x45,0x53,0x32,0x35,0x36])},_0x2fce4a=_0x8b4678[_0x50f91d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x50f91d([0x67,0x65,0x74])](_0x50f91d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4e77b1(){let _0x43033b,_0x20ad72=null,_0x5e59e1=null;try{if(_0x2fce4a==_0x50f91d([0x47,0x50,0x4c]))return _0x50f91d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x43033b=_0x5a8007(),!_0x43033b)return _0x50f91d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x43033b[_0x50f91d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e59e1=_0x28f540(_0x43033b[_0x50f91d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x43033b[_0x50f91d([0x6a,0x74,0x69])])),await _0x3e03ae()?_0x3b5f2d()?_0x2dc60a()?_0x50f91d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2c5ad9()?(_0x43033b[_0x50f91d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x50f91d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x20ad72=_0x4191f9(_0x50f91d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2740f8()):_0x50f91d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x50f91d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x50f91d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x50f91d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2dc60a(){const _0x57676d=[_0x50f91d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x50f91d([0x74,0x72,0x69,0x61,0x6c])][_0x50f91d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43033b[_0x50f91d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2e3f1e/0x3e8:0xe10*_0x139eac;return _0x43033b[_0x50f91d([0x65,0x78,0x70])]<_0x57676d;}function _0x3b5f2d(){const _0x5973aa=_0x43033b[_0x50f91d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5973aa&&(!!_0x5973aa[_0x50f91d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50f91d([0x2a]))||!!_0x5973aa[_0x50f91d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50f91d([0x4c,0x48])));}function _0x2c5ad9(){const _0x18c66e=_0x43033b[_0x50f91d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x18c66e||0x0==_0x18c66e[_0x50f91d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x219528}=new URL(window[_0x50f91d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x18c66e[_0x50f91d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x219528))return!0x0;const _0x4d9b9b=_0x219528[_0x50f91d([0x73,0x70,0x6c,0x69,0x74])](_0x50f91d([0x2e]));return _0x18c66e[_0x50f91d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c39bd=>_0x1c39bd[_0x50f91d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50f91d([0x2a])))[_0x50f91d([0x6d,0x61,0x70])](_0x1eaa8a=>_0x1eaa8a[_0x50f91d([0x73,0x70,0x6c,0x69,0x74])](_0x50f91d([0x2e])))[_0x50f91d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x374e82=>_0x374e82[_0x50f91d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4d9b9b[_0x50f91d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x50f91d([0x6d,0x61,0x70])](_0x4528db=>Array(_0x4d9b9b[_0x50f91d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4528db[_0x50f91d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x50f91d([0x66,0x69,0x6c,0x6c])](_0x4528db[0x0]===_0x50f91d([0x2a])?_0x50f91d([0x2a]):'')[_0x50f91d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4528db))[_0x50f91d([0x73,0x6f,0x6d,0x65])](_0x345b9e=>_0x4d9b9b[_0x50f91d([0x65,0x76,0x65,0x72,0x79])]((_0x219743,_0x3b3811)=>_0x345b9e[_0x3b3811]===_0x219743||_0x345b9e[_0x3b3811]===_0x50f91d([0x2a])));}function _0x2740f8(){return _0x20ad72&&_0x5e59e1?new window[(_0x50f91d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x15a6e0,_0x218e3d)=>{_0x20ad72[_0x50f91d([0x74,0x68,0x65,0x6e])](_0x15a6e0,_0x218e3d),_0x5e59e1[_0x50f91d([0x74,0x68,0x65,0x6e])](_0xbdd970=>{_0xbdd970!=_0x50f91d([0x56,0x61,0x6c,0x69,0x64])&&_0x15a6e0(_0xbdd970);},_0x218e3d);}):_0x20ad72||_0x5e59e1||_0x50f91d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x28f540(_0x22c47d,_0x4df176){return new window[(_0x50f91d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a8911=>{if(_0xf2cdab())return _0x4a8911(_0x50f91d([0x56,0x61,0x6c,0x69,0x64]));_0x375585(),_0x8b4678[_0x50f91d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x50f91d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x30d6f3=!0x1;const _0x1f5358=_0x1382ac();function _0x3d2b33(_0x492311){return!!_0x492311&&(typeof _0x492311===_0x50f91d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x492311===_0x50f91d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x492311[_0x50f91d([0x74,0x68,0x65,0x6e])]===_0x50f91d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x492311[_0x50f91d([0x63,0x61,0x74,0x63,0x68])]===_0x50f91d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xa209ee(_0x3170bf){_0x37df29(_0x3170bf)[_0x50f91d([0x74,0x68,0x65,0x6e])](_0x240438=>{if(!_0x240438||_0x240438[_0x50f91d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x50f91d([0x6f,0x6b]))return _0x50f91d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5d0b08(_0x318854(_0x1f5358+_0x4df176))!=_0x240438[_0x50f91d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x50f91d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x50f91d([0x56,0x61,0x6c,0x69,0x64]);})[_0x50f91d([0x74,0x68,0x65,0x6e])](_0x23619d=>(_0x5bfc41(),_0x23619d),()=>{const _0x3353bf=_0x25c2e6();return null==_0x3353bf?(_0x5bfc41(),_0x50f91d([0x56,0x61,0x6c,0x69,0x64])):_0x50f91d(_0x2e3f1e-_0x3353bf>(0x61d15615^_0x3b1793)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x50f91d([0x74,0x68,0x65,0x6e])](_0x4a8911)[_0x50f91d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4a8911(_0x50f91d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xe20697=0x45eb3c95^_0x3b1793;function _0x5bfc41(){const _0x5a60c6=_0x50f91d([0x6c,0x6c,0x63,0x74,0x2d])+_0x5d0b08(_0x318854(_0x22c47d)),_0x6de8a5=_0x53d165(_0x5d0b08(window[_0x50f91d([0x4d,0x61,0x74,0x68])][_0x50f91d([0x63,0x65,0x69,0x6c])](_0x2e3f1e/_0xe20697)));window[_0x50f91d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x50f91d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a60c6,_0x6de8a5);}function _0x25c2e6(){const _0x1b544f=_0x50f91d([0x6c,0x6c,0x63,0x74,0x2d])+_0x5d0b08(_0x318854(_0x22c47d)),_0x4b096e=window[_0x50f91d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x50f91d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b544f);return _0x4b096e?window[_0x50f91d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53d165(_0x4b096e),0x10)*_0xe20697:null;}function _0x37df29(_0x1ba249){return new window[(_0x50f91d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a2837,_0x2fa9b3)=>{_0x1ba249[_0x50f91d([0x74,0x68,0x65,0x6e])](_0x3a2837,_0x2fa9b3),window[_0x50f91d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2fa9b3,0x45dc06d5^_0x3b1793);});}}_0x8b4678[_0x50f91d([0x6f,0x6e])](_0x50f91d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x33cdc5,_0x14fc27)=>{if(_0x14fc27[0x0]!=_0x22c47d)return _0x4a8911(_0x50f91d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x14fc27[0x1]={..._0x14fc27[0x1],[_0x50f91d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1f5358};},{[_0x50f91d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x50f91d([0x68,0x69,0x67,0x68])}),_0x8b4678[_0x50f91d([0x6f,0x6e])](_0x50f91d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x23bd30=>{_0x3d2b33(_0x23bd30[_0x50f91d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x30d6f3=!0x0,_0xa209ee(_0x23bd30[_0x50f91d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x50f91d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x50f91d([0x6c,0x6f,0x77])}),_0x1cbbab[_0x50f91d([0x74,0x68,0x65,0x6e])](()=>{_0x30d6f3||_0x4a8911(_0x50f91d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xf2cdab(){return _0x8b4678[_0x50f91d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x50f91d([0x76,0x69,0x65,0x77])][_0x50f91d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x50f91d([0x61,0x75,0x74,0x6f]);}function _0x375585(){_0x8b4678[_0x50f91d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x50f91d([0x76,0x69,0x65,0x77])][_0x50f91d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x50f91d([0x61,0x75,0x74,0x6f]);}}function _0x4191f9(_0x53e943){const _0x583088=[new window[(_0x50f91d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x432cd3=>setTimeout(_0x432cd3,0x45d4ecd9^_0x3b1793)),_0x1cbbab[_0x50f91d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x50f91d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d5830=>{let _0x42157a=0x0;_0x8b4678[_0x50f91d([0x6d,0x6f,0x64,0x65,0x6c])][_0x50f91d([0x6f,0x6e])](_0x50f91d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1bd869,_0x25d3ab)=>{_0x25d3ab[0x0][_0x50f91d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x42157a++,_0x42157a==(0x45ddd7fd^_0x3b1793)&&(_0x5d5830(),_0x1bd869[_0x50f91d([0x6f,0x66,0x66])]());});}))];return window[_0x50f91d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x50f91d([0x72,0x61,0x63,0x65])](_0x583088)[_0x50f91d([0x74,0x68,0x65,0x6e])](()=>_0x53e943);}async function _0x224ead(){await _0x1cbbab,_0x8b4678[_0x50f91d([0x6d,0x6f,0x64,0x65,0x6c])][_0x50f91d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xcc1436,_0x8b4678[_0x50f91d([0x6d,0x6f,0x64,0x65,0x6c])][_0x50f91d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xcc1436,_0x8b4678[_0x50f91d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x50f91d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4b1907(_0x3e93c7){const _0x5aa828=_0x13e8a0();_0x8b4678[_0x5aa828]=_0x50f91d([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3e93c7,_0x3e93c7!=_0x50f91d([0x56,0x61,0x6c,0x69,0x64])&&_0x224ead();}function _0x13e8a0(){const _0x25c24b=window[_0x50f91d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x50f91d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x50f91d([0x6e,0x6f,0x77])]())[_0x50f91d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x50f91d([0x2e]),'');let _0x5721b1=_0x50f91d([0x50]);for(let _0x4fd79a=0x0;_0x4fd79a<_0x25c24b[_0x50f91d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4fd79a+=0x2){let _0x5dce5e=window[_0x50f91d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25c24b[_0x50f91d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4fd79a,_0x4fd79a+0x2));_0x5dce5e>=_0x4883e3[_0x50f91d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5dce5e-=_0x4883e3[_0x50f91d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5721b1+=_0x4883e3[_0x5dce5e];}return _0x5721b1;}function _0x5a8007(){const _0x3c95fc=_0x2fce4a[_0x50f91d([0x73,0x70,0x6c,0x69,0x74])](_0x50f91d([0x2e]));if(0x3!=_0x3c95fc[_0x50f91d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x33d2c8(_0x3c95fc[0x1]);function _0x33d2c8(_0xeeb204){const _0x154d90=_0x86c3a(_0xeeb204);return _0x154d90&&_0x57773c()?_0x154d90:null;function _0x57773c(){const _0x508950=_0x154d90[_0x50f91d([0x6a,0x74,0x69])],_0x3c04fb=window[_0x50f91d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x508950[_0x50f91d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x508950[_0x50f91d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1af85e={..._0x154d90,[_0x50f91d([0x6a,0x74,0x69])]:_0x508950[_0x50f91d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x508950[_0x50f91d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1af85e[_0x50f91d([0x76,0x63])],_0x318854(_0x1af85e)==_0x3c04fb;}}}async function _0x3e03ae(){let _0x11b7f8=!0x0;try{const _0x2e8e8c=_0x2fce4a[_0x50f91d([0x73,0x70,0x6c,0x69,0x74])](_0x50f91d([0x2e])),[_0x42f1ae,_0x5badec,_0x48486e]=_0x2e8e8c;return _0x534e72(_0x42f1ae),await _0x49f745(_0x42f1ae,_0x5badec,_0x48486e),_0x11b7f8;}catch{return!0x1;}function _0x534e72(_0x242cec){const _0xdc2fd5=_0x86c3a(_0x242cec);_0xdc2fd5&&_0xdc2fd5[_0x50f91d([0x61,0x6c,0x67])]==_0x50f91d([0x45,0x53,0x32,0x35,0x36])||(_0x11b7f8=!0x1);}async function _0x49f745(_0x8e369,_0x25229f,_0x18bb00){const _0x13bac2=window[_0x50f91d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x50f91d([0x66,0x72,0x6f,0x6d])](_0xdf4eda(_0x18bb00),_0x500405=>_0x500405[_0x50f91d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x51e6f3=new window[(_0x50f91d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x50f91d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x8e369+_0x50f91d([0x2e])+_0x25229f),_0x550e78=window[_0x50f91d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x50f91d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x550e78)return;const _0x3cabdb=await _0x550e78[_0x50f91d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x50f91d([0x6a,0x77,0x6b]),_0x39e629,{[_0x50f91d([0x6e,0x61,0x6d,0x65])]:_0x50f91d([0x45,0x43,0x44,0x53,0x41]),[_0x50f91d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x50f91d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x50f91d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x550e78[_0x50f91d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x50f91d([0x6e,0x61,0x6d,0x65])]:_0x50f91d([0x45,0x43,0x44,0x53,0x41]),[_0x50f91d([0x68,0x61,0x73,0x68])]:{[_0x50f91d([0x6e,0x61,0x6d,0x65])]:_0x50f91d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3cabdb,_0x13bac2,_0x51e6f3)||(_0x11b7f8=!0x1);}}function _0x86c3a(_0x25466b){return _0x25466b[_0x50f91d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x50f91d([0x65,0x79]))?JSON[_0x50f91d([0x70,0x61,0x72,0x73,0x65])](_0xdf4eda(_0x25466b)):null;}function _0xdf4eda(_0x5e4c83){return window[_0x50f91d([0x61,0x74,0x6f,0x62])](_0x5e4c83[_0x50f91d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x50f91d([0x2b]))[_0x50f91d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x50f91d([0x2f])));}function _0x318854(_0x33b828){let _0x411b8b=0x1505;function _0x4f67d6(_0x511d9b){for(let _0x302f61=0x0;_0x302f61<_0x511d9b[_0x50f91d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x302f61++){const _0x4f0524=_0x511d9b[_0x50f91d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x302f61);_0x411b8b=(_0x411b8b<<0x5)+_0x411b8b+_0x4f0524,_0x411b8b&=_0x411b8b;}}function _0x53270e(_0x5a7d6d){Array[_0x50f91d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5a7d6d)?_0x5a7d6d[_0x50f91d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x53270e):_0x5a7d6d&&typeof _0x5a7d6d==_0x50f91d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x50f91d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5a7d6d)[_0x50f91d([0x73,0x6f,0x72,0x74])]()[_0x50f91d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc91137,_0x447a79])=>{_0x4f67d6(_0xc91137),_0x53270e(_0x447a79);}):_0x4f67d6(window[_0x50f91d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5a7d6d));}return _0x53270e(_0x33b828),_0x411b8b>>>0x0;}function _0x5d0b08(_0x306860){return _0x306860[_0x50f91d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x50f91d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x50f91d([0x30]));}function _0x53d165(_0x5f77a8){return _0x5f77a8[_0x50f91d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x50f91d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x50f91d([0x6a,0x6f,0x69,0x6e])]('');}function _0xcc1436(){}function _0x50f91d(_0x1118ab){return _0x1118ab['map'](_0x108e9b=>String['fromCharCode'](_0x108e9b))['join']('');}_0x4b1907(await _0x4e77b1());}(this);}['_validateConfig'](){const _0x26025a=this['editor'];if(!_0x26025a['config']['get']('lineHeight.supportAllValues'))return;const _0x5e97e5=_0x26025a['config']['get']('lineHeight.options')['filter'](_0x257313=>'string'==typeof _0x257313&&(!H(_0x257313)&&isNaN(Number(_0x257313))));if(_0x5e97e5['length'])throw new _0x2b4668('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x5e97e5});}['_prepareAnyValueConverters'](){const _0x4db553=this['editor'],_0x4bcee4=this['editor']['config']['get']('lineHeight.defaultValue');_0x4db553['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x5b462b=>String(_0x5b462b)===String(_0x4bcee4)?null:{'key':'style','value':{'line-height':_0x5b462b}}}),_0x4db553['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x216951=>{let _0x43c745=_0x216951['getStyle']('line-height');return _0x3271c1(_0x43c745)&&(_0x43c745=String(Number(_0x43c745['slice'](0x0,-0x1))/0x64)),String(_0x43c745)===String(_0x4bcee4)?null:_0x43c745;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x8f775e=this['editor'],_0xd83d7=this['editor']['config']['get']('lineHeight.defaultValue'),_0x4b695c=function(_0xaf1cc5,_0x779f44){const _0x35c86d={'model':{'key':_0xaf1cc5,'values':[]},'view':{}};for(const _0x58c7d7 of _0x779f44)'class'===_0x58c7d7['view']?.['key']?(_0x35c86d['model']['values']['push'](_0x58c7d7['model']),_0x35c86d['view'][_0x58c7d7['model']]={'key':'class','value':_0x58c7d7['view']['value']}):(_0x35c86d['model']['values']['push'](_0x58c7d7['model']),_0x35c86d['view'][_0x58c7d7['model']]={'key':'style','value':'line-height:'+_0x58c7d7['model']+';'});return _0x35c86d;}('lineHeight',L(this['editor']['config']['get']('lineHeight'))['filter'](_0x5a6f2d=>_0x5a6f2d['model']));_0x8f775e['conversion']['attributeToAttribute'](_0x4b695c),_0x8f775e['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x17ff78=>{let _0x2c0dac=_0x17ff78['getStyle']('line-height');return _0x3271c1(_0x2c0dac)&&(_0x2c0dac=String(Number(_0x2c0dac['slice'](0x0,-0x1))/0x64)),_0x2c0dac===String(_0xd83d7)?null:_0x4b695c['model']['values']['includes'](_0x2c0dac)?_0x2c0dac:null;}}});}}class k extends _0x4298ad{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3e0e3c={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x3e0e3c),this['_registerMenuBarComponent'](_0x3e0e3c),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5d694a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5221ff;for(const _0x3d4fc4 in _0x5d694a){const _0x454dd5=_0x3d4fc4,_0x4b966d=_0x5d694a[_0x454dd5];if('lineHeightLicenseKeyValid'==_0x4b966d||'lineHeightLicenseKeyInvalid'==_0x4b966d||'lineHeightLicenseKeyExpired'==_0x4b966d||'lineHeightLicenseKeyDomainLimit'==_0x4b966d||'lineHeightLicenseKeyNotAllowed'==_0x4b966d||'lineHeightLicenseKeyEvaluationLimit'==_0x4b966d||'lineHeightLicenseKeyUsageLimit'==_0x4b966d){delete _0x5d694a[_0x454dd5],_0x5221ff=_0x4b966d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x5221ff&&_0x5d694a['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x5221ff&&_0x5d694a['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x5221ff&&_0x5d694a['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x5221ff&&_0x5d694a['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x5221ff&&_0x5d694a['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x5221ff&&_0x5d694a['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x2d54df=this['editor'],t=_0x2d54df['t'],_0xc662d3=_0x2d54df['config']['get']('lineHeight'),_0x198842={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return L(_0xc662d3)['map'](_0x1b6348=>{const _0x275c99=_0x198842[_0x1b6348['title']];return _0x275c99&&_0x275c99!=_0x1b6348['title']&&(_0x1b6348=Object['assign']({},_0x1b6348,{'title':_0x275c99})),_0x1b6348;});}['_prepareListOptions'](){const _0x1b7425=this['editor']['commands']['get']('lineHeight'),_0x4a2820=this['editor']['config']['get']('lineHeight.defaultValue'),_0x5a6c8b=this['_getLocalizedLineHeightOptions'](),_0x3c83bd=new _0x9369e9(),_0x56c6a4=_0x2046c0=>'default'===_0x2046c0||String(_0x4a2820)===_0x2046c0;for(const _0x24cffb of _0x5a6c8b){const _0x4667eb={'type':'button','model':new _0x392f8c({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x24cffb['title'],'withText':!0x0})};_0x56c6a4(_0x24cffb['model'])?(_0x4667eb['model']['bind']('isOn')['to'](_0x1b7425,'value',_0x546d23=>!_0x546d23),_0x4667eb['model']['commandParam']=void 0x0):(_0x4667eb['model']['bind']('isOn')['to'](_0x1b7425,'value',_0x34f74e=>_0x34f74e===_0x24cffb['model']),_0x4667eb['model']['commandParam']=_0x24cffb['model']),_0x3c83bd['add'](_0x4667eb);}if(this['_shouldRenderCustomValueOption']()){const _0x135238=this['_getCustomValueOptionDefinition'](_0x5a6c8b);_0x3c83bd['add'](_0x135238);}return _0x3c83bd;}['_getCustomValueOptionDefinition'](_0x213ba1){const _0x187998=this['editor'],t=_0x187998['t'],_0x63088=_0x187998['commands']['get']('lineHeight'),_0xf55220=_0x213ba1['map'](_0x5a8648=>_0x5a8648['model']),_0x4d1c0c={'type':'button','model':new _0x392f8c({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x4d1c0c['model']['bind']('commandParam')['to'](_0x63088,'value'),_0x4d1c0c['model']['bind']('isOn')['to'](_0x63088,'value',_0x41a571=>!!_0x41a571&&!_0xf55220['includes'](String(_0x41a571))),_0x4d1c0c['model']['bind']('label')['to'](_0x63088,'value',_0x56fafe=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x56fafe))),_0x4d1c0c;}['_registerToolbarComponent']({accessibleLabel:_0x4f670e,options:_0x25bebe}){const _0x302d0f=this['editor'],_0x5f1840=_0x302d0f['commands']['get']('lineHeight');_0x302d0f['ui']['componentFactory']['add']('lineHeight',_0x4c2a9f=>{const _0x36cba4=_0x115a7d(_0x4c2a9f);return _0x523b8e(_0x36cba4,_0x25bebe,{'role':'menu','ariaLabel':_0x4f670e}),_0x36cba4['buttonView']['set']({'label':_0x4f670e,'tooltip':!0x0,'icon':_0x44a86f}),_0x36cba4['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x36cba4['bind']('isEnabled')['to'](_0x5f1840),this['listenTo'](_0x36cba4,'execute',_0x5f2584=>{_0x302d0f['execute'](_0x5f2584['source']['commandName'],{'value':_0x5f2584['source']['commandParam']}),_0x302d0f['editing']['view']['focus']();}),_0x36cba4['once']('change:isOpen',()=>{const _0x11df7f=_0x36cba4['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x36cba4,_0x25bebe,_0x11df7f);}),_0x36cba4;});}['_registerMenuBarComponent']({accessibleLabel:_0x323c9e,options:_0x5dfa94}){const _0x40a366=this['editor'],_0x25961d=_0x40a366['commands']['get']('lineHeight');_0x40a366['ui']['componentFactory']['add']('menuBar:lineHeight',_0x20379a=>{const _0x35ddcd=new _0x11d701(_0x20379a);_0x35ddcd['buttonView']['set']({'label':_0x323c9e,'icon':_0x44a86f}),_0x35ddcd['bind']('isEnabled')['to'](_0x25961d);const _0x10614d=new _0x97b91b(_0x20379a);for(const _0x5ea75d of _0x5dfa94){const _0x290453=new _0x90a224(_0x20379a,_0x35ddcd),_0x3078c8=new _0x1d8317(_0x20379a);_0x3078c8['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x3078c8['bind'](...Object['keys'](_0x5ea75d['model']))['to'](_0x5ea75d['model']),_0x3078c8['delegate']('execute')['to'](_0x35ddcd),_0x3078c8['on']('execute',()=>{_0x40a366['execute'](_0x5ea75d['model']['commandName'],{'value':_0x5ea75d['model']['commandParam']}),_0x40a366['editing']['view']['focus']();}),_0x290453['children']['add'](_0x3078c8),_0x10614d['items']['add'](_0x290453);}return _0x35ddcd['panelView']['children']['add'](_0x10614d),this['_attachCustomOptionVisibilityHandler'](_0x35ddcd,_0x5dfa94,_0x10614d),_0x35ddcd;});}['_attachCustomOptionVisibilityHandler'](_0x3bc862,_0xa0db83,_0x5bcb5c){if(!this['_shouldRenderCustomValueOption']())return;const _0x4f298b=()=>{if(!_0x3bc862['isOpen'])return;_0x5bcb5c['items']['last']['isVisible']=Boolean(_0xa0db83['last']['model']['isOn']);};_0x4f298b(),_0x3bc862['on']('change:isOpen',()=>{_0x4f298b();});}}class _ extends _0x4298ad{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 _0x520b7b,Plugin as _0x4feff9}from'@ckeditor/ckeditor5-core/dist/index.js';import{first as _0x269fd3,CKEditorError as _0x41bea5,uid as _0x4ff1ff,Collection as _0x2803ed}from'@ckeditor/ckeditor5-utils/dist/index.js';import{Matcher as _0x4d7db3,isPercentageStyleValue as _0x1f0a21}from'@ckeditor/ckeditor5-engine/dist/index.js';import{UIModel as _0x4d461a,createDropdown as _0x431fa0,addListToDropdown as _0x36aac2,MenuBarMenuView as _0x4d1070,MenuBarMenuListView as _0x2a024e,MenuBarMenuListItemView as _0x5642be,MenuBarMenuListItemButtonView as _0x207a70}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconLineHeight as _0x579885}from'@ckeditor/ckeditor5-icons/dist/index.js';class p extends _0x520b7b{['refresh'](){const _0x7d7d02=this['editor']['model']['document'],_0x536fe0=_0x269fd3(_0x7d7d02['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x536fe0)&&this['_canHaveLineHeight'](_0x536fe0),this['value']=this['isEnabled']&&_0x536fe0['getAttribute']('lineHeight');}['execute'](_0x2c199d={}){const _0x319117=this['editor']['model'],_0x107768=_0x319117['document']['selection'],_0x346956=_0x2c199d['value'];_0x319117['change'](_0x43acd7=>{const _0x39cdd4=Array['from'](_0x107768['getSelectedBlocks']())['filter'](_0x2ece1e=>this['_canHaveLineHeight'](_0x2ece1e));for(const _0x5e9b54 of _0x39cdd4)_0x346956?_0x43acd7['setAttribute']('lineHeight',_0x346956,_0x5e9b54):_0x43acd7['removeAttribute']('lineHeight',_0x5e9b54);});}['_canHaveLineHeight'](_0x5a4c52){return this['editor']['model']['schema']['checkAttribute'](_0x5a4c52,'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(_0x3c4909){return'string'==typeof _0x3c4909&&'default'===_0x3c4909['toLowerCase']();}function L(_0x5f4630){return _0x5f4630['options']['map'](_0x236a50=>{return H(_0x236a50)?{'title':String(_0x5f4630['defaultValue']),'model':'default'}:('number'==typeof _0x236a50&&(_0x236a50=String(_0x236a50)),'string'!=typeof _0x236a50?_0x236a50:parseFloat(_0x236a50)?{'title':_0x236a50,'model':_0x236a50,'view':{'name':'span','styles':{'line-height':_0x236a50}}}:'string'==typeof(_0x58b7f4=_0x236a50)?y[_0x58b7f4]:y[_0x58b7f4['model']]);var _0x58b7f4;})['filter'](_0x63405f=>void 0x0!==_0x63405f);}class v extends _0x4feff9{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x186fbe,conversion:_0x319233}=this['editor'];if(!_0x186fbe['has']('ListEditing')||!_0x186fbe['has']('TodoListEditing'))return;_0x186fbe['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x4d6a64,_0x21671c,_0x2dab85,_0x305b86,_0x1c58d7){'todo'==_0x1c58d7['getAttribute']('listType')&&_0x21671c&&(_0x4d6a64['addClass']('ck-list-marker-line-height',_0x2dab85),_0x4d6a64['setStyle']('--ck-content-list-marker-line-height',_0x21671c,_0x2dab85));}}),_0x319233['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x319233['for']('upcast')['add'](_0x5d7f20=>{_0x5d7f20['on']('element:li',function(_0x9ac8a8){const _0x8882cf=new _0x4d7db3(_0x9ac8a8);return(_0xe31971,_0x3de7d4,_0x559aa3)=>{const _0x23bb07=_0x8882cf['match'](_0x3de7d4['viewItem']);if(!_0x23bb07)return;const _0x33ec9e=_0x23bb07['match'];_0x33ec9e['name']=!0x1,_0x559aa3['consumable']['consume'](_0x3de7d4['viewItem'],_0x33ec9e);};}({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));});}}class b extends _0x4feff9{static get['pluginName'](){return'LineHeightEditing';}static get['requires'](){return[v];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x20ef1f){super(_0x20ef1f),_0x20ef1f['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0xed5e5f=this['editor'];this['_validateConfig'](),_0xed5e5f['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0xed5e5f['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0xed5e5f['commands']['add']('lineHeight',new p(_0xed5e5f)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){!async function(_0x3d3a2c){const _0xb08082=_0x36c874([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]),_0x59bca6=0x45ddd215,_0x5d8fd8=0x45da5705^_0x59bca6,_0x56dd24=window[_0x36c874([0x44,0x61,0x74,0x65])][_0x36c874([0x6e,0x6f,0x77])](),_0x33a0de=_0x3d3a2c[_0x36c874([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1c7757=new window[(_0x36c874([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ddddc=>{_0x33a0de[_0x36c874([0x6f,0x6e,0x63,0x65])](_0x36c874([0x72,0x65,0x61,0x64,0x79]),_0x4ddddc);}),_0xad59df={[_0x36c874([0x6b,0x74,0x79])]:_0x36c874([0x45,0x43]),[_0x36c874([0x75,0x73,0x65])]:_0x36c874([0x73,0x69,0x67]),[_0x36c874([0x63,0x72,0x76])]:_0x36c874([0x50,0x2d,0x32,0x35,0x36]),[_0x36c874([0x78])]:_0x36c874([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]),[_0x36c874([0x79])]:_0x36c874([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]),[_0x36c874([0x61,0x6c,0x67])]:_0x36c874([0x45,0x53,0x32,0x35,0x36])},_0x14cab8=_0x33a0de[_0x36c874([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x36c874([0x67,0x65,0x74])](_0x36c874([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3e9bef(){let _0x317c54,_0x5c1b48=null,_0x2f9246=null;try{if(_0x14cab8==_0x36c874([0x47,0x50,0x4c]))return _0x36c874([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x317c54=_0x2fdeb0(),!_0x317c54)return _0x36c874([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x317c54[_0x36c874([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f9246=_0x1e91f8(_0x317c54[_0x36c874([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x317c54[_0x36c874([0x6a,0x74,0x69])])),await _0x2b8e4b()?_0xed575e()?_0x1765cb()?_0x36c874([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3dfa3f()?(_0x317c54[_0x36c874([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x36c874([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c1b48=_0x44419e(_0x36c874([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x214ae4()):_0x36c874([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x36c874([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x36c874([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x36c874([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1765cb(){const _0x19b729=[_0x36c874([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x36c874([0x74,0x72,0x69,0x61,0x6c])][_0x36c874([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x317c54[_0x36c874([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x56dd24/0x3e8:0xe10*_0x5d8fd8;return _0x317c54[_0x36c874([0x65,0x78,0x70])]<_0x19b729;}function _0xed575e(){const _0x815114=_0x317c54[_0x36c874([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x815114&&(!!_0x815114[_0x36c874([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36c874([0x2a]))||!!_0x815114[_0x36c874([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36c874([0x4c,0x48])));}function _0x3dfa3f(){const _0x480874=_0x317c54[_0x36c874([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x480874||0x0==_0x480874[_0x36c874([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x31ed4b}=new URL(window[_0x36c874([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x480874[_0x36c874([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31ed4b))return!0x0;const _0x5bbb93=_0x31ed4b[_0x36c874([0x73,0x70,0x6c,0x69,0x74])](_0x36c874([0x2e]));return _0x480874[_0x36c874([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x281e97=>_0x281e97[_0x36c874([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36c874([0x2a])))[_0x36c874([0x6d,0x61,0x70])](_0x3dd1a1=>_0x3dd1a1[_0x36c874([0x73,0x70,0x6c,0x69,0x74])](_0x36c874([0x2e])))[_0x36c874([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b496e=>_0x5b496e[_0x36c874([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5bbb93[_0x36c874([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x36c874([0x6d,0x61,0x70])](_0x217c27=>Array(_0x5bbb93[_0x36c874([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x217c27[_0x36c874([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x36c874([0x66,0x69,0x6c,0x6c])](_0x217c27[0x0]===_0x36c874([0x2a])?_0x36c874([0x2a]):'')[_0x36c874([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x217c27))[_0x36c874([0x73,0x6f,0x6d,0x65])](_0x3196a7=>_0x5bbb93[_0x36c874([0x65,0x76,0x65,0x72,0x79])]((_0xfbf291,_0x38785b)=>_0x3196a7[_0x38785b]===_0xfbf291||_0x3196a7[_0x38785b]===_0x36c874([0x2a])));}function _0x214ae4(){return _0x5c1b48&&_0x2f9246?new window[(_0x36c874([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37a75b,_0x2efbdf)=>{_0x5c1b48[_0x36c874([0x74,0x68,0x65,0x6e])](_0x37a75b,_0x2efbdf),_0x2f9246[_0x36c874([0x74,0x68,0x65,0x6e])](_0x2eb579=>{_0x2eb579!=_0x36c874([0x56,0x61,0x6c,0x69,0x64])&&_0x37a75b(_0x2eb579);},_0x2efbdf);}):_0x5c1b48||_0x2f9246||_0x36c874([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1e91f8(_0x3cb7fb,_0x2eeafb){return new window[(_0x36c874([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x395553=>{if(_0x2578e2())return _0x395553(_0x36c874([0x56,0x61,0x6c,0x69,0x64]));_0x4fb5e5(),_0x33a0de[_0x36c874([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x36c874([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4aeb99=!0x1;const _0x88d842=_0x4ff1ff();function _0x47cd58(_0x58656b){return!!_0x58656b&&(typeof _0x58656b===_0x36c874([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x58656b===_0x36c874([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x58656b[_0x36c874([0x74,0x68,0x65,0x6e])]===_0x36c874([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x58656b[_0x36c874([0x63,0x61,0x74,0x63,0x68])]===_0x36c874([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5a0a67(_0x4c97e6){_0x47f0e4(_0x4c97e6)[_0x36c874([0x74,0x68,0x65,0x6e])](_0x18a1cf=>{if(!_0x18a1cf||_0x18a1cf[_0x36c874([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x36c874([0x6f,0x6b]))return _0x36c874([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x32a5bb(_0x11f85e(_0x88d842+_0x2eeafb))!=_0x18a1cf[_0x36c874([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x36c874([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x36c874([0x56,0x61,0x6c,0x69,0x64]);})[_0x36c874([0x74,0x68,0x65,0x6e])](_0xa5fd5f=>(_0x28bf1b(),_0xa5fd5f),()=>{const _0x1b1b75=_0x2dfd71();return null==_0x1b1b75?(_0x28bf1b(),_0x36c874([0x56,0x61,0x6c,0x69,0x64])):_0x36c874(_0x56dd24-_0x1b1b75>(0x61d15615^_0x59bca6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x36c874([0x74,0x68,0x65,0x6e])](_0x395553)[_0x36c874([0x63,0x61,0x74,0x63,0x68])](()=>{_0x395553(_0x36c874([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3692d9=0x45eb3c95^_0x59bca6;function _0x28bf1b(){const _0x18422c=_0x36c874([0x6c,0x6c,0x63,0x74,0x2d])+_0x32a5bb(_0x11f85e(_0x3cb7fb)),_0x596f39=_0x49913b(_0x32a5bb(window[_0x36c874([0x4d,0x61,0x74,0x68])][_0x36c874([0x63,0x65,0x69,0x6c])](_0x56dd24/_0x3692d9)));window[_0x36c874([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x36c874([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18422c,_0x596f39);}function _0x2dfd71(){const _0x5da400=_0x36c874([0x6c,0x6c,0x63,0x74,0x2d])+_0x32a5bb(_0x11f85e(_0x3cb7fb)),_0x58cd16=window[_0x36c874([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x36c874([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5da400);return _0x58cd16?window[_0x36c874([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49913b(_0x58cd16),0x10)*_0x3692d9:null;}function _0x47f0e4(_0x267366){return new window[(_0x36c874([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xaf34c9,_0x14f401)=>{_0x267366[_0x36c874([0x74,0x68,0x65,0x6e])](_0xaf34c9,_0x14f401),window[_0x36c874([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14f401,0x45dc06d5^_0x59bca6);});}}_0x33a0de[_0x36c874([0x6f,0x6e])](_0x36c874([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4bab01,_0x4c9347)=>{if(_0x4c9347[0x0]!=_0x3cb7fb)return _0x395553(_0x36c874([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4c9347[0x1]={..._0x4c9347[0x1],[_0x36c874([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x88d842};},{[_0x36c874([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x36c874([0x68,0x69,0x67,0x68])}),_0x33a0de[_0x36c874([0x6f,0x6e])](_0x36c874([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x6b8f2c=>{_0x47cd58(_0x6b8f2c[_0x36c874([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4aeb99=!0x0,_0x5a0a67(_0x6b8f2c[_0x36c874([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x36c874([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x36c874([0x6c,0x6f,0x77])}),_0x1c7757[_0x36c874([0x74,0x68,0x65,0x6e])](()=>{_0x4aeb99||_0x395553(_0x36c874([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2578e2(){return _0x33a0de[_0x36c874([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36c874([0x76,0x69,0x65,0x77])][_0x36c874([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x36c874([0x61,0x75,0x74,0x6f]);}function _0x4fb5e5(){_0x33a0de[_0x36c874([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36c874([0x76,0x69,0x65,0x77])][_0x36c874([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x36c874([0x61,0x75,0x74,0x6f]);}}function _0x44419e(_0x5bbcc7){const _0x3b033b=[new window[(_0x36c874([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cd78c=>setTimeout(_0x4cd78c,0x45d4ecd9^_0x59bca6)),_0x1c7757[_0x36c874([0x74,0x68,0x65,0x6e])](()=>new window[(_0x36c874([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4365ac=>{let _0x5c389c=0x0;_0x33a0de[_0x36c874([0x6d,0x6f,0x64,0x65,0x6c])][_0x36c874([0x6f,0x6e])](_0x36c874([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4f12e3,_0x38ef49)=>{_0x38ef49[0x0][_0x36c874([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5c389c++,_0x5c389c==(0x45ddd7fd^_0x59bca6)&&(_0x4365ac(),_0x4f12e3[_0x36c874([0x6f,0x66,0x66])]());});}))];return window[_0x36c874([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x36c874([0x72,0x61,0x63,0x65])](_0x3b033b)[_0x36c874([0x74,0x68,0x65,0x6e])](()=>_0x5bbcc7);}async function _0x4bef6c(){await _0x1c7757,_0x33a0de[_0x36c874([0x6d,0x6f,0x64,0x65,0x6c])][_0x36c874([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4252d1,_0x33a0de[_0x36c874([0x6d,0x6f,0x64,0x65,0x6c])][_0x36c874([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4252d1,_0x33a0de[_0x36c874([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x36c874([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4806eb(_0x49aad0){const _0x441ec3=_0x1721f5();_0x33a0de[_0x441ec3]=_0x36c874([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x49aad0,_0x49aad0!=_0x36c874([0x56,0x61,0x6c,0x69,0x64])&&_0x4bef6c();}function _0x1721f5(){const _0x118481=window[_0x36c874([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x36c874([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x36c874([0x6e,0x6f,0x77])]())[_0x36c874([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x36c874([0x2e]),'');let _0x1ceecc=_0x36c874([0x50]);for(let _0xef4859=0x0;_0xef4859<_0x118481[_0x36c874([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xef4859+=0x2){let _0x491fb0=window[_0x36c874([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x118481[_0x36c874([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xef4859,_0xef4859+0x2));_0x491fb0>=_0xb08082[_0x36c874([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x491fb0-=_0xb08082[_0x36c874([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1ceecc+=_0xb08082[_0x491fb0];}return _0x1ceecc;}function _0x2fdeb0(){const _0x5f54c7=_0x14cab8[_0x36c874([0x73,0x70,0x6c,0x69,0x74])](_0x36c874([0x2e]));if(0x3!=_0x5f54c7[_0x36c874([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5998d4(_0x5f54c7[0x1]);function _0x5998d4(_0x950b00){const _0x3c1f3f=_0x1a7680(_0x950b00);return _0x3c1f3f&&_0xa2d4b()?_0x3c1f3f:null;function _0xa2d4b(){const _0x6cb280=_0x3c1f3f[_0x36c874([0x6a,0x74,0x69])],_0x5ea484=window[_0x36c874([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6cb280[_0x36c874([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x6cb280[_0x36c874([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3143e0={..._0x3c1f3f,[_0x36c874([0x6a,0x74,0x69])]:_0x6cb280[_0x36c874([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x6cb280[_0x36c874([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3143e0[_0x36c874([0x76,0x63])],_0x11f85e(_0x3143e0)==_0x5ea484;}}}async function _0x2b8e4b(){let _0x393885=!0x0;try{const _0x5203bf=_0x14cab8[_0x36c874([0x73,0x70,0x6c,0x69,0x74])](_0x36c874([0x2e])),[_0x5c360e,_0x2f44f2,_0x3d85fc]=_0x5203bf;return _0x4eb23c(_0x5c360e),await _0x54ce8c(_0x5c360e,_0x2f44f2,_0x3d85fc),_0x393885;}catch{return!0x1;}function _0x4eb23c(_0x408f5d){const _0x55924b=_0x1a7680(_0x408f5d);_0x55924b&&_0x55924b[_0x36c874([0x61,0x6c,0x67])]==_0x36c874([0x45,0x53,0x32,0x35,0x36])||(_0x393885=!0x1);}async function _0x54ce8c(_0x29ee11,_0x28df89,_0x31edb8){const _0x369e1a=window[_0x36c874([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x36c874([0x66,0x72,0x6f,0x6d])](_0xbb5bd9(_0x31edb8),_0x40f264=>_0x40f264[_0x36c874([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x15e2cb=new window[(_0x36c874([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x36c874([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x29ee11+_0x36c874([0x2e])+_0x28df89),_0x383701=window[_0x36c874([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x36c874([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x383701)return;const _0xef0144=await _0x383701[_0x36c874([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x36c874([0x6a,0x77,0x6b]),_0xad59df,{[_0x36c874([0x6e,0x61,0x6d,0x65])]:_0x36c874([0x45,0x43,0x44,0x53,0x41]),[_0x36c874([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x36c874([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x36c874([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x383701[_0x36c874([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x36c874([0x6e,0x61,0x6d,0x65])]:_0x36c874([0x45,0x43,0x44,0x53,0x41]),[_0x36c874([0x68,0x61,0x73,0x68])]:{[_0x36c874([0x6e,0x61,0x6d,0x65])]:_0x36c874([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xef0144,_0x369e1a,_0x15e2cb)||(_0x393885=!0x1);}}function _0x1a7680(_0x29196c){return _0x29196c[_0x36c874([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x36c874([0x65,0x79]))?JSON[_0x36c874([0x70,0x61,0x72,0x73,0x65])](_0xbb5bd9(_0x29196c)):null;}function _0xbb5bd9(_0x3560c9){return window[_0x36c874([0x61,0x74,0x6f,0x62])](_0x3560c9[_0x36c874([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x36c874([0x2b]))[_0x36c874([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x36c874([0x2f])));}function _0x11f85e(_0x3cb031){let _0xd4300a=0x1505;function _0x5ea6a5(_0x56c7a7){for(let _0x404188=0x0;_0x404188<_0x56c7a7[_0x36c874([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x404188++){const _0x34d8cc=_0x56c7a7[_0x36c874([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x404188);_0xd4300a=(_0xd4300a<<0x5)+_0xd4300a+_0x34d8cc,_0xd4300a&=_0xd4300a;}}function _0x585ab1(_0x3e5d72){Array[_0x36c874([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3e5d72)?_0x3e5d72[_0x36c874([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x585ab1):_0x3e5d72&&typeof _0x3e5d72==_0x36c874([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x36c874([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3e5d72)[_0x36c874([0x73,0x6f,0x72,0x74])]()[_0x36c874([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x13fe42,_0x246429])=>{_0x5ea6a5(_0x13fe42),_0x585ab1(_0x246429);}):_0x5ea6a5(window[_0x36c874([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3e5d72));}return _0x585ab1(_0x3cb031),_0xd4300a>>>0x0;}function _0x32a5bb(_0x568bde){return _0x568bde[_0x36c874([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x36c874([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x36c874([0x30]));}function _0x49913b(_0x37f276){return _0x37f276[_0x36c874([0x73,0x70,0x6c,0x69,0x74])]('')[_0x36c874([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x36c874([0x6a,0x6f,0x69,0x6e])]('');}function _0x4252d1(){}function _0x36c874(_0x5849fa){return _0x5849fa['map'](_0x1bd880=>String['fromCharCode'](_0x1bd880))['join']('');}_0x4806eb(await _0x3e9bef());}(this);}['_validateConfig'](){const _0x16f4dd=this['editor'];if(!_0x16f4dd['config']['get']('lineHeight.supportAllValues'))return;const _0x4bd545=_0x16f4dd['config']['get']('lineHeight.options')['filter'](_0x368d21=>'string'==typeof _0x368d21&&(!H(_0x368d21)&&isNaN(Number(_0x368d21))));if(_0x4bd545['length'])throw new _0x41bea5('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x4bd545});}['_prepareAnyValueConverters'](){const _0x38ee0b=this['editor'],_0x1ab0cc=this['editor']['config']['get']('lineHeight.defaultValue');_0x38ee0b['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x111053=>String(_0x111053)===String(_0x1ab0cc)?null:{'key':'style','value':{'line-height':_0x111053}}}),_0x38ee0b['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x568269=>{let _0x1d91f9=_0x568269['getStyle']('line-height');return _0x1f0a21(_0x1d91f9)&&(_0x1d91f9=String(Number(_0x1d91f9['slice'](0x0,-0x1))/0x64)),String(_0x1d91f9)===String(_0x1ab0cc)?null:_0x1d91f9;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x528fee=this['editor'],_0x2bddbd=this['editor']['config']['get']('lineHeight.defaultValue'),_0x3b6c9f=function(_0x4d487d,_0x524344){const _0x2b3350={'model':{'key':_0x4d487d,'values':[]},'view':{}};for(const _0x224c83 of _0x524344)'class'===_0x224c83['view']?.['key']?(_0x2b3350['model']['values']['push'](_0x224c83['model']),_0x2b3350['view'][_0x224c83['model']]={'key':'class','value':_0x224c83['view']['value']}):(_0x2b3350['model']['values']['push'](_0x224c83['model']),_0x2b3350['view'][_0x224c83['model']]={'key':'style','value':'line-height:'+_0x224c83['model']+';'});return _0x2b3350;}('lineHeight',L(this['editor']['config']['get']('lineHeight'))['filter'](_0x4699be=>_0x4699be['model']));_0x528fee['conversion']['attributeToAttribute'](_0x3b6c9f),_0x528fee['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x43e876=>{let _0x3bcaad=_0x43e876['getStyle']('line-height');return _0x1f0a21(_0x3bcaad)&&(_0x3bcaad=String(Number(_0x3bcaad['slice'](0x0,-0x1))/0x64)),_0x3bcaad===String(_0x2bddbd)?null:_0x3b6c9f['model']['values']['includes'](_0x3bcaad)?_0x3bcaad:null;}}});}}class k extends _0x4feff9{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5cd61b={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x5cd61b),this['_registerMenuBarComponent'](_0x5cd61b),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3aef86=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x23b617;for(const _0x45bbcb in _0x3aef86){const _0x38d485=_0x45bbcb,_0x4474ce=_0x3aef86[_0x38d485];if('lineHeightLicenseKeyValid'==_0x4474ce||'lineHeightLicenseKeyInvalid'==_0x4474ce||'lineHeightLicenseKeyExpired'==_0x4474ce||'lineHeightLicenseKeyDomainLimit'==_0x4474ce||'lineHeightLicenseKeyNotAllowed'==_0x4474ce||'lineHeightLicenseKeyEvaluationLimit'==_0x4474ce||'lineHeightLicenseKeyUsageLimit'==_0x4474ce){delete _0x3aef86[_0x38d485],_0x23b617=_0x4474ce,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x23b617&&_0x3aef86['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x23b617&&_0x3aef86['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x23b617&&_0x3aef86['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x23b617&&_0x3aef86['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x23b617&&_0x3aef86['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x23b617&&_0x3aef86['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x530f32=this['editor'],t=_0x530f32['t'],_0xd88ed=_0x530f32['config']['get']('lineHeight'),_0x926dfc={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return L(_0xd88ed)['map'](_0x50199a=>{const _0x3a6967=_0x926dfc[_0x50199a['title']];return _0x3a6967&&_0x3a6967!=_0x50199a['title']&&(_0x50199a=Object['assign']({},_0x50199a,{'title':_0x3a6967})),_0x50199a;});}['_prepareListOptions'](){const _0x44860b=this['editor']['commands']['get']('lineHeight'),_0xcbe2ef=this['editor']['config']['get']('lineHeight.defaultValue'),_0x249bb2=this['_getLocalizedLineHeightOptions'](),_0x418afa=new _0x2803ed(),_0x55bcd2=_0x162ee5=>'default'===_0x162ee5||String(_0xcbe2ef)===_0x162ee5;for(const _0x2d03a1 of _0x249bb2){const _0x4225c5={'type':'button','model':new _0x4d461a({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x2d03a1['title'],'withText':!0x0})};_0x55bcd2(_0x2d03a1['model'])?(_0x4225c5['model']['bind']('isOn')['to'](_0x44860b,'value',_0x3667da=>!_0x3667da),_0x4225c5['model']['commandParam']=void 0x0):(_0x4225c5['model']['bind']('isOn')['to'](_0x44860b,'value',_0x5b38a3=>_0x5b38a3===_0x2d03a1['model']),_0x4225c5['model']['commandParam']=_0x2d03a1['model']),_0x418afa['add'](_0x4225c5);}if(this['_shouldRenderCustomValueOption']()){const _0x511097=this['_getCustomValueOptionDefinition'](_0x249bb2);_0x418afa['add'](_0x511097);}return _0x418afa;}['_getCustomValueOptionDefinition'](_0x37b33f){const _0x6e785e=this['editor'],t=_0x6e785e['t'],_0x390c3a=_0x6e785e['commands']['get']('lineHeight'),_0x2cf68d=_0x37b33f['map'](_0x1ed2ef=>_0x1ed2ef['model']),_0x45b916={'type':'button','model':new _0x4d461a({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x45b916['model']['bind']('commandParam')['to'](_0x390c3a,'value'),_0x45b916['model']['bind']('isOn')['to'](_0x390c3a,'value',_0x4ff711=>!!_0x4ff711&&!_0x2cf68d['includes'](String(_0x4ff711))),_0x45b916['model']['bind']('label')['to'](_0x390c3a,'value',_0x472db9=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x472db9))),_0x45b916;}['_registerToolbarComponent']({accessibleLabel:_0x3d6bdc,options:_0x46bb5c}){const _0x1de6a6=this['editor'],_0x26d6fc=_0x1de6a6['commands']['get']('lineHeight');_0x1de6a6['ui']['componentFactory']['add']('lineHeight',_0x420fd5=>{const _0x3234cf=_0x431fa0(_0x420fd5);return _0x36aac2(_0x3234cf,_0x46bb5c,{'role':'menu','ariaLabel':_0x3d6bdc}),_0x3234cf['buttonView']['set']({'label':_0x3d6bdc,'tooltip':!0x0,'icon':_0x579885}),_0x3234cf['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x3234cf['bind']('isEnabled')['to'](_0x26d6fc),this['listenTo'](_0x3234cf,'execute',_0x3fc300=>{_0x1de6a6['execute'](_0x3fc300['source']['commandName'],{'value':_0x3fc300['source']['commandParam']}),_0x1de6a6['editing']['view']['focus']();}),_0x3234cf['once']('change:isOpen',()=>{const _0x5586fc=_0x3234cf['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x3234cf,_0x46bb5c,_0x5586fc);}),_0x3234cf;});}['_registerMenuBarComponent']({accessibleLabel:_0x4c5ce7,options:_0x39fb70}){const _0x13f68e=this['editor'],_0x128c1b=_0x13f68e['commands']['get']('lineHeight');_0x13f68e['ui']['componentFactory']['add']('menuBar:lineHeight',_0x2eef02=>{const _0x8e3c12=new _0x4d1070(_0x2eef02);_0x8e3c12['buttonView']['set']({'label':_0x4c5ce7,'icon':_0x579885}),_0x8e3c12['bind']('isEnabled')['to'](_0x128c1b);const _0xbbd8cb=new _0x2a024e(_0x2eef02);for(const _0x18500d of _0x39fb70){const _0x4d3cb6=new _0x5642be(_0x2eef02,_0x8e3c12),_0x48f877=new _0x207a70(_0x2eef02);_0x48f877['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x48f877['bind'](...Object['keys'](_0x18500d['model']))['to'](_0x18500d['model']),_0x48f877['delegate']('execute')['to'](_0x8e3c12),_0x48f877['on']('execute',()=>{_0x13f68e['execute'](_0x18500d['model']['commandName'],{'value':_0x18500d['model']['commandParam']}),_0x13f68e['editing']['view']['focus']();}),_0x4d3cb6['children']['add'](_0x48f877),_0xbbd8cb['items']['add'](_0x4d3cb6);}return _0x8e3c12['panelView']['children']['add'](_0xbbd8cb),this['_attachCustomOptionVisibilityHandler'](_0x8e3c12,_0x39fb70,_0xbbd8cb),_0x8e3c12;});}['_attachCustomOptionVisibilityHandler'](_0x15ce10,_0x19d60a,_0x24c1a9){if(!this['_shouldRenderCustomValueOption']())return;const _0x59ae8f=()=>{if(!_0x15ce10['isOpen'])return;_0x24c1a9['items']['last']['isVisible']=Boolean(_0x19d60a['last']['model']['isOn']);};_0x59ae8f(),_0x15ce10['on']('change:isOpen',()=>{_0x59ae8f();});}}class _ extends _0x4feff9{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.
|
|
3
|
+
"version": "48.0.0-alpha.3",
|
|
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.
|
|
29
|
-
"@ckeditor/ckeditor5-engine": "48.0.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-icons": "48.0.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-list": "48.0.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-ui": "48.0.0-alpha.
|
|
33
|
-
"@ckeditor/ckeditor5-utils": "48.0.0-alpha.
|
|
28
|
+
"@ckeditor/ckeditor5-core": "48.0.0-alpha.3",
|
|
29
|
+
"@ckeditor/ckeditor5-engine": "48.0.0-alpha.3",
|
|
30
|
+
"@ckeditor/ckeditor5-icons": "48.0.0-alpha.3",
|
|
31
|
+
"@ckeditor/ckeditor5-list": "48.0.0-alpha.3",
|
|
32
|
+
"@ckeditor/ckeditor5-ui": "48.0.0-alpha.3",
|
|
33
|
+
"@ckeditor/ckeditor5-utils": "48.0.0-alpha.3"
|
|
34
34
|
},
|
|
35
35
|
"files": [
|
|
36
36
|
"dist",
|