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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x54aaee,Plugin as _0xcaeb72}from'@ckeditor/ckeditor5-core/dist/index.js';import{first as _0x5f282d,CKEditorError as _0x136c51,uid as _0x354c58,Collection as _0x8cd3a4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{Matcher as _0x34af10,isPercentageStyleValue as _0x1b2cd1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{UIModel as _0x38f43c,createDropdown as _0x5000f8,addListToDropdown as _0x19f7a7,MenuBarMenuView as _0x1deff8,MenuBarMenuListView as _0x510a81,MenuBarMenuListItemView as _0x53eed7,MenuBarMenuListItemButtonView as _0x5a0de3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconLineHeight as _0x54c404}from'@ckeditor/ckeditor5-icons/dist/index.js';class LineHeightCommand extends _0x54aaee{['refresh'](){const _0x40f842=this['editor']['model']['document'],_0x37eac8=_0x5f282d(_0x40f842['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x37eac8)&&this['_canHaveLineHeight'](_0x37eac8),this['value']=this['isEnabled']&&_0x37eac8['getAttribute']('lineHeight');}['execute'](_0x1dcc6a={}){const _0x2d5b75=this['editor']['model'],_0x567fde=_0x2d5b75['document']['selection'],_0x1d3561=_0x1dcc6a['value'];_0x2d5b75['change'](_0x4b0917=>{const _0x48af21=Array['from'](_0x567fde['getSelectedBlocks']())['filter'](_0x5020e4=>this['_canHaveLineHeight'](_0x5020e4));for(const _0x22d639 of _0x48af21)_0x1d3561?_0x4b0917['setAttribute']('lineHeight',_0x1d3561,_0x22d639):_0x4b0917['removeAttribute']('lineHeight',_0x22d639);});}['_canHaveLineHeight'](_0x497af1){return this['editor']['model']['schema']['checkAttribute'](_0x497af1,'lineHeight');}}const p={get 'single'(){return{'title':'Single','model':'single','view':{'key':'class','value':'line-height-single'}};},get 'double'(){return{'title':'Double','model':'double','view':{'key':'class','value':'line-height-double'}};}};function H(_0x1b79b0){return'string'==typeof _0x1b79b0&&'default'===_0x1b79b0['toLowerCase']();}function L(_0x48429f){return _0x48429f['options']['map'](_0x22e468=>{return H(_0x22e468)?{'title':String(_0x48429f['defaultValue']),'model':'default'}:('number'==typeof _0x22e468&&(_0x22e468=String(_0x22e468)),'string'!=typeof _0x22e468?_0x22e468:parseFloat(_0x22e468)?{'title':_0x22e468,'model':_0x22e468,'view':{'name':'span','styles':{'line-height':_0x22e468}}}:'string'==typeof(_0x4584a0=_0x22e468)?p[_0x4584a0]:p[_0x4584a0['model']]);var _0x4584a0;})['filter'](_0x1b53d3=>void 0x0!==_0x1b53d3);}class LineHeightTodoListIntegration extends _0xcaeb72{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x489ab3,conversion:_0x2929bf}=this['editor'];if(!_0x489ab3['has']('ListEditing')||!_0x489ab3['has']('TodoListEditing'))return;_0x489ab3['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x53bb8f,_0x474cc9,_0x5a6216,_0x499e27,_0x15bdcb){'todo'==_0x15bdcb['getAttribute']('listType')&&_0x474cc9&&(_0x53bb8f['addClass']('ck-list-marker-line-height',_0x5a6216),_0x53bb8f['setStyle']('--ck-content-list-marker-line-height',_0x474cc9,_0x5a6216));}}),_0x2929bf['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x2929bf['for']('upcast')['add'](_0x17f7e0=>{_0x17f7e0['on']('element:li',function(_0x34b213){const _0x2b49b9=new _0x34af10(_0x34b213);return(_0x564d21,_0x415fba,_0x2b01d)=>{const _0x6790fa=_0x2b49b9['match'](_0x415fba['viewItem']);if(!_0x6790fa)return;const _0x1913fc=_0x6790fa['match'];_0x1913fc['name']=!0x1,_0x2b01d['consumable']['consume'](_0x415fba['viewItem'],_0x1913fc);};}({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));});}}class LineHeightEditing extends _0xcaeb72{static get['pluginName'](){return'LineHeightEditing';}static get['requires'](){return[LineHeightTodoListIntegration];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xa153c7){super(_0xa153c7),_0xa153c7['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x35aa9a=this['editor'];this['_validateConfig'](),_0x35aa9a['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x35aa9a['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x35aa9a['commands']['add']('lineHeight',new LineHeightCommand(_0x35aa9a)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){!async function(_0x42fe20){const _0xcdc921=_0x598d3d([0x50,0x48,0x51,0x33,0x59,0x55,0x49,0x42,0x72,0x6c,0x30,0x58,0x64,0x6e,0x77,0x47,0x39,0x6b,0x65,0x7a,0x38,0x73,0x66,0x70,0x4d,0x76,0x31,0x79,0x74,0x57,0x46,0x52,0x4e,0x5a,0x4f,0x56,0x35,0x6a,0x4a,0x61,0x71,0x37,0x54,0x63,0x32,0x6f,0x67,0x75,0x62,0x36,0x34,0x78,0x43,0x4b,0x44,0x45,0x41,0x4c,0x53,0x69,0x68,0x6d]),_0x34b8af=0x45ddd215,_0xee117a=0x45da59b5^_0x34b8af,_0x467b60=window[_0x598d3d([0x44,0x61,0x74,0x65])][_0x598d3d([0x6e,0x6f,0x77])](),_0x3347a1=_0x42fe20[_0x598d3d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x300222=new window[(_0x598d3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21bfdb=>{_0x3347a1[_0x598d3d([0x6f,0x6e,0x63,0x65])](_0x598d3d([0x72,0x65,0x61,0x64,0x79]),_0x21bfdb);}),_0x2c49f1={[_0x598d3d([0x6b,0x74,0x79])]:_0x598d3d([0x45,0x43]),[_0x598d3d([0x75,0x73,0x65])]:_0x598d3d([0x73,0x69,0x67]),[_0x598d3d([0x63,0x72,0x76])]:_0x598d3d([0x50,0x2d,0x32,0x35,0x36]),[_0x598d3d([0x78])]:_0x598d3d([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x598d3d([0x79])]:_0x598d3d([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x598d3d([0x61,0x6c,0x67])]:_0x598d3d([0x45,0x53,0x32,0x35,0x36])},_0x56433a=_0x3347a1[_0x598d3d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x598d3d([0x67,0x65,0x74])](_0x598d3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4edccd(){let _0xee9152,_0xeb5a6=null,_0x2365a8=null;try{if(_0x56433a==_0x598d3d([0x47,0x50,0x4c]))return _0x598d3d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xee9152=_0x583752(),!_0xee9152)return _0x598d3d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xee9152[_0x598d3d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2365a8=_0x18c51d(_0xee9152[_0x598d3d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xee9152[_0x598d3d([0x6a,0x74,0x69])])),await _0x5d9a69()?_0x53d1d1()?_0x15ff7c()?_0x598d3d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x47e64a()?(_0xee9152[_0x598d3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x598d3d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xeb5a6=_0x10c6ad(_0x598d3d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x331e9d()):_0x598d3d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x598d3d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x598d3d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x598d3d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x15ff7c(){const _0x1f1895=[_0x598d3d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x598d3d([0x74,0x72,0x69,0x61,0x6c])][_0x598d3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xee9152[_0x598d3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x467b60/0x3e8:0xe10*_0xee117a;return _0xee9152[_0x598d3d([0x65,0x78,0x70])]<_0x1f1895;}function _0x53d1d1(){const _0x265a5b=_0xee9152[_0x598d3d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x265a5b&&(!!_0x265a5b[_0x598d3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x598d3d([0x2a]))||!!_0x265a5b[_0x598d3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x598d3d([0x4c,0x48])));}function _0x47e64a(){const _0x56e077=_0xee9152[_0x598d3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x56e077||0x0==_0x56e077[_0x598d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x597840}=new URL(window[_0x598d3d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x56e077[_0x598d3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x597840))return!0x0;const _0x25fa83=_0x597840[_0x598d3d([0x73,0x70,0x6c,0x69,0x74])](_0x598d3d([0x2e]));return _0x56e077[_0x598d3d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x35d329=>_0x35d329[_0x598d3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x598d3d([0x2a])))[_0x598d3d([0x6d,0x61,0x70])](_0x22a144=>_0x22a144[_0x598d3d([0x73,0x70,0x6c,0x69,0x74])](_0x598d3d([0x2e])))[_0x598d3d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x127ca8=>_0x127ca8[_0x598d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x25fa83[_0x598d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x598d3d([0x6d,0x61,0x70])](_0x5be9aa=>Array(_0x25fa83[_0x598d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5be9aa[_0x598d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x598d3d([0x66,0x69,0x6c,0x6c])](_0x5be9aa[0x0]===_0x598d3d([0x2a])?_0x598d3d([0x2a]):'')[_0x598d3d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5be9aa))[_0x598d3d([0x73,0x6f,0x6d,0x65])](_0x496203=>_0x25fa83[_0x598d3d([0x65,0x76,0x65,0x72,0x79])]((_0x301f8e,_0xacb545)=>_0x496203[_0xacb545]===_0x301f8e||_0x496203[_0xacb545]===_0x598d3d([0x2a])));}function _0x331e9d(){return _0xeb5a6&&_0x2365a8?new window[(_0x598d3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x164c74,_0x470cb7)=>{_0xeb5a6[_0x598d3d([0x74,0x68,0x65,0x6e])](_0x164c74,_0x470cb7),_0x2365a8[_0x598d3d([0x74,0x68,0x65,0x6e])](_0x30023c=>{_0x30023c!=_0x598d3d([0x56,0x61,0x6c,0x69,0x64])&&_0x164c74(_0x30023c);},_0x470cb7);}):_0xeb5a6||_0x2365a8||_0x598d3d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x18c51d(_0x42b431,_0x3bdf12){return new window[(_0x598d3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11af9b=>{if(_0x5c9d80())return _0x11af9b(_0x598d3d([0x56,0x61,0x6c,0x69,0x64]));_0x4c8a19(),_0x3347a1[_0x598d3d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x598d3d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5ab6fd=!0x1;const _0x33be3f=_0x354c58();function _0x2d2516(_0x4b4067){return!!_0x4b4067&&(typeof _0x4b4067===_0x598d3d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4b4067===_0x598d3d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4b4067[_0x598d3d([0x74,0x68,0x65,0x6e])]===_0x598d3d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4b4067[_0x598d3d([0x63,0x61,0x74,0x63,0x68])]===_0x598d3d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5c1283(_0x5e90e2){_0x4c88cc(_0x5e90e2)[_0x598d3d([0x74,0x68,0x65,0x6e])](_0x33eef7=>{if(!_0x33eef7||_0x33eef7[_0x598d3d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x598d3d([0x6f,0x6b]))return _0x598d3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4c4b01(_0x1e0997(_0x33be3f+_0x3bdf12))!=_0x33eef7[_0x598d3d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x598d3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x598d3d([0x56,0x61,0x6c,0x69,0x64]);})[_0x598d3d([0x74,0x68,0x65,0x6e])](_0x328e28=>(_0x26b50e(),_0x328e28),()=>{const _0x1ee7fc=_0x1a6ac7();return null==_0x1ee7fc?(_0x26b50e(),_0x598d3d([0x56,0x61,0x6c,0x69,0x64])):_0x598d3d(_0x467b60-_0x1ee7fc>(0x61d15615^_0x34b8af)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x598d3d([0x74,0x68,0x65,0x6e])](_0x11af9b)[_0x598d3d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x11af9b(_0x598d3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x533f=0x45eb3c95^_0x34b8af;function _0x26b50e(){const _0x45913c=_0x598d3d([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c4b01(_0x1e0997(_0x42b431)),_0x1ed917=_0x1ac631(_0x4c4b01(window[_0x598d3d([0x4d,0x61,0x74,0x68])][_0x598d3d([0x63,0x65,0x69,0x6c])](_0x467b60/_0x533f)));window[_0x598d3d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x598d3d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x45913c,_0x1ed917);}function _0x1a6ac7(){const _0x707cee=_0x598d3d([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c4b01(_0x1e0997(_0x42b431)),_0x16138a=window[_0x598d3d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x598d3d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x707cee);return _0x16138a?window[_0x598d3d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ac631(_0x16138a),0x10)*_0x533f:null;}function _0x4c88cc(_0x20211c){return new window[(_0x598d3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2179e7,_0x5174c1)=>{_0x20211c[_0x598d3d([0x74,0x68,0x65,0x6e])](_0x2179e7,_0x5174c1),window[_0x598d3d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5174c1,0x45dc06d5^_0x34b8af);});}}_0x3347a1[_0x598d3d([0x6f,0x6e])](_0x598d3d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2b062a,_0x52e16d)=>{if(_0x52e16d[0x0]!=_0x42b431)return _0x11af9b(_0x598d3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x52e16d[0x1]={..._0x52e16d[0x1],[_0x598d3d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x33be3f};},{[_0x598d3d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x598d3d([0x68,0x69,0x67,0x68])}),_0x3347a1[_0x598d3d([0x6f,0x6e])](_0x598d3d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x533a0b=>{_0x2d2516(_0x533a0b[_0x598d3d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5ab6fd=!0x0,_0x5c1283(_0x533a0b[_0x598d3d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x598d3d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x598d3d([0x6c,0x6f,0x77])}),_0x300222[_0x598d3d([0x74,0x68,0x65,0x6e])](()=>{_0x5ab6fd||_0x11af9b(_0x598d3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5c9d80(){return _0x3347a1[_0x598d3d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x598d3d([0x76,0x69,0x65,0x77])][_0x598d3d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x598d3d([0x61,0x75,0x74,0x6f]);}function _0x4c8a19(){_0x3347a1[_0x598d3d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x598d3d([0x76,0x69,0x65,0x77])][_0x598d3d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x598d3d([0x61,0x75,0x74,0x6f]);}}function _0x10c6ad(_0x1640ee){const _0x1bebeb=[new window[(_0x598d3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11bf79=>setTimeout(_0x11bf79,0x45d4ecd9^_0x34b8af)),_0x300222[_0x598d3d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x598d3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b4897=>{let _0x4f9c88=0x0;_0x3347a1[_0x598d3d([0x6d,0x6f,0x64,0x65,0x6c])][_0x598d3d([0x6f,0x6e])](_0x598d3d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x445aba,_0x3567f1)=>{_0x3567f1[0x0][_0x598d3d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4f9c88++,_0x4f9c88==(0x45ddd7fd^_0x34b8af)&&(_0x1b4897(),_0x445aba[_0x598d3d([0x6f,0x66,0x66])]());});}))];return window[_0x598d3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x598d3d([0x72,0x61,0x63,0x65])](_0x1bebeb)[_0x598d3d([0x74,0x68,0x65,0x6e])](()=>_0x1640ee);}async function _0x375a2f(){await _0x300222,_0x3347a1[_0x598d3d([0x6d,0x6f,0x64,0x65,0x6c])][_0x598d3d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x111d7a,_0x3347a1[_0x598d3d([0x6d,0x6f,0x64,0x65,0x6c])][_0x598d3d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x111d7a,_0x3347a1[_0x598d3d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x598d3d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x370ba3(_0x3fe62a){const _0x2862be=_0x432790();_0x3347a1[_0x2862be]=_0x598d3d([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3fe62a,_0x3fe62a!=_0x598d3d([0x56,0x61,0x6c,0x69,0x64])&&_0x375a2f();}function _0x432790(){const _0x19f5f6=window[_0x598d3d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x598d3d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x598d3d([0x6e,0x6f,0x77])]())[_0x598d3d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x598d3d([0x2e]),'');let _0x4b3eec=_0x598d3d([0x50]);for(let _0x329dd1=0x0;_0x329dd1<_0x19f5f6[_0x598d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x329dd1+=0x2){let _0x18273c=window[_0x598d3d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19f5f6[_0x598d3d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x329dd1,_0x329dd1+0x2));_0x18273c>=_0xcdc921[_0x598d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x18273c-=_0xcdc921[_0x598d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4b3eec+=_0xcdc921[_0x18273c];}return _0x4b3eec;}function _0x583752(){const _0x5651f1=_0x56433a[_0x598d3d([0x73,0x70,0x6c,0x69,0x74])](_0x598d3d([0x2e]));if(0x3!=_0x5651f1[_0x598d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x32ea13(_0x5651f1[0x1]);function _0x32ea13(_0x4dce72){const _0x41e1d6=_0x57d6ad(_0x4dce72);return _0x41e1d6&&_0x16e9e1()?_0x41e1d6:null;function _0x16e9e1(){const _0x3c56da=_0x41e1d6[_0x598d3d([0x6a,0x74,0x69])],_0x7fce88=window[_0x598d3d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c56da[_0x598d3d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c56da[_0x598d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1665fd={..._0x41e1d6,[_0x598d3d([0x6a,0x74,0x69])]:_0x3c56da[_0x598d3d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3c56da[_0x598d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1665fd[_0x598d3d([0x76,0x63])],_0x1e0997(_0x1665fd)==_0x7fce88;}}}async function _0x5d9a69(){let _0x3ab71d=!0x0;try{const _0x51c9f4=_0x56433a[_0x598d3d([0x73,0x70,0x6c,0x69,0x74])](_0x598d3d([0x2e])),[_0x4da00b,_0x441af7,_0x2b674d]=_0x51c9f4;return _0x104725(_0x4da00b),await _0x1ee256(_0x4da00b,_0x441af7,_0x2b674d),_0x3ab71d;}catch{return!0x1;}function _0x104725(_0x467b37){const _0x4a7b7d=_0x57d6ad(_0x467b37);_0x4a7b7d&&_0x4a7b7d[_0x598d3d([0x61,0x6c,0x67])]==_0x598d3d([0x45,0x53,0x32,0x35,0x36])||(_0x3ab71d=!0x1);}async function _0x1ee256(_0x54a2de,_0x57d9c4,_0x335907){const _0x1c7c34=window[_0x598d3d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x598d3d([0x66,0x72,0x6f,0x6d])](_0x3c39e8(_0x335907),_0xaa6074=>_0xaa6074[_0x598d3d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x449690=new window[(_0x598d3d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x598d3d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x54a2de+_0x598d3d([0x2e])+_0x57d9c4),_0x313e7c=window[_0x598d3d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x598d3d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x313e7c)return;const _0x25eebb=await _0x313e7c[_0x598d3d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x598d3d([0x6a,0x77,0x6b]),_0x2c49f1,{[_0x598d3d([0x6e,0x61,0x6d,0x65])]:_0x598d3d([0x45,0x43,0x44,0x53,0x41]),[_0x598d3d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x598d3d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x598d3d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x313e7c[_0x598d3d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x598d3d([0x6e,0x61,0x6d,0x65])]:_0x598d3d([0x45,0x43,0x44,0x53,0x41]),[_0x598d3d([0x68,0x61,0x73,0x68])]:{[_0x598d3d([0x6e,0x61,0x6d,0x65])]:_0x598d3d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x25eebb,_0x1c7c34,_0x449690)||(_0x3ab71d=!0x1);}}function _0x57d6ad(_0x3384f0){return _0x3384f0[_0x598d3d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x598d3d([0x65,0x79]))?JSON[_0x598d3d([0x70,0x61,0x72,0x73,0x65])](_0x3c39e8(_0x3384f0)):null;}function _0x3c39e8(_0x5a8670){return window[_0x598d3d([0x61,0x74,0x6f,0x62])](_0x5a8670[_0x598d3d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x598d3d([0x2b]))[_0x598d3d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x598d3d([0x2f])));}function _0x1e0997(_0x302c8e){let _0x228194=0x1505;function _0x5daff6(_0xa97f6a){for(let _0x456ad2=0x0;_0x456ad2<_0xa97f6a[_0x598d3d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x456ad2++){const _0x1080d1=_0xa97f6a[_0x598d3d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x456ad2);_0x228194=(_0x228194<<0x5)+_0x228194+_0x1080d1,_0x228194&=_0x228194;}}function _0x28ce44(_0x2b188c){Array[_0x598d3d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b188c)?_0x2b188c[_0x598d3d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x28ce44):_0x2b188c&&typeof _0x2b188c==_0x598d3d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x598d3d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b188c)[_0x598d3d([0x73,0x6f,0x72,0x74])]()[_0x598d3d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x236c72,_0x1fad7d])=>{_0x5daff6(_0x236c72),_0x28ce44(_0x1fad7d);}):_0x5daff6(window[_0x598d3d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b188c));}return _0x28ce44(_0x302c8e),_0x228194>>>0x0;}function _0x4c4b01(_0x388e80){return _0x388e80[_0x598d3d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x598d3d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x598d3d([0x30]));}function _0x1ac631(_0x46ee33){return _0x46ee33[_0x598d3d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x598d3d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x598d3d([0x6a,0x6f,0x69,0x6e])]('');}function _0x111d7a(){}function _0x598d3d(_0x1733e4){return _0x1733e4['map'](_0x563eb2=>String['fromCharCode'](_0x563eb2))['join']('');}_0x370ba3(await _0x4edccd());}(this);}['_validateConfig'](){const _0x1675f1=this['editor'];if(!_0x1675f1['config']['get']('lineHeight.supportAllValues'))return;const _0x190377=_0x1675f1['config']['get']('lineHeight.options')['filter'](_0x31a0f4=>'string'==typeof _0x31a0f4&&(!H(_0x31a0f4)&&isNaN(Number(_0x31a0f4))));if(_0x190377['length'])throw new _0x136c51('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x190377});}['_prepareAnyValueConverters'](){const _0x43b23e=this['editor'],_0x66fef6=this['editor']['config']['get']('lineHeight.defaultValue');_0x43b23e['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x9d6f06=>String(_0x9d6f06)===String(_0x66fef6)?null:{'key':'style','value':{'line-height':_0x9d6f06}}}),_0x43b23e['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x4792e4=>{let _0x38bccd=_0x4792e4['getStyle']('line-height');return _0x1b2cd1(_0x38bccd)&&(_0x38bccd=String(Number(_0x38bccd['slice'](0x0,-0x1))/0x64)),String(_0x38bccd)===String(_0x66fef6)?null:_0x38bccd;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x33866c=this['editor'],_0x3898af=this['editor']['config']['get']('lineHeight.defaultValue'),_0x571f17=function(_0x4affb2,_0x22a46e){const _0x4fc5b7={'model':{'key':_0x4affb2,'values':[]},'view':{}};for(const _0x2faa89 of _0x22a46e)'class'===_0x2faa89['view']?.['key']?(_0x4fc5b7['model']['values']['push'](_0x2faa89['model']),_0x4fc5b7['view'][_0x2faa89['model']]={'key':'class','value':_0x2faa89['view']['value']}):(_0x4fc5b7['model']['values']['push'](_0x2faa89['model']),_0x4fc5b7['view'][_0x2faa89['model']]={'key':'style','value':'line-height:'+_0x2faa89['model']+';'});return _0x4fc5b7;}('lineHeight',L(this['editor']['config']['get']('lineHeight'))['filter'](_0x27053d=>_0x27053d['model']));_0x33866c['conversion']['attributeToAttribute'](_0x571f17),_0x33866c['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0xfb5deb=>{let _0x481e73=_0xfb5deb['getStyle']('line-height');return _0x1b2cd1(_0x481e73)&&(_0x481e73=String(Number(_0x481e73['slice'](0x0,-0x1))/0x64)),_0x481e73===String(_0x3898af)?null:_0x571f17['model']['values']['includes'](_0x481e73)?_0x481e73:null;}}});}}class LineHeightUI extends _0xcaeb72{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x8509f3={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x8509f3),this['_registerMenuBarComponent'](_0x8509f3),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5101f5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x39ca5;for(const _0x39d97f in _0x5101f5){const _0x17fb71=_0x39d97f,_0x370416=_0x5101f5[_0x17fb71];if('lineHeightLicenseKeyValid'==_0x370416||'lineHeightLicenseKeyInvalid'==_0x370416||'lineHeightLicenseKeyExpired'==_0x370416||'lineHeightLicenseKeyDomainLimit'==_0x370416||'lineHeightLicenseKeyNotAllowed'==_0x370416||'lineHeightLicenseKeyEvaluationLimit'==_0x370416||'lineHeightLicenseKeyUsageLimit'==_0x370416){delete _0x5101f5[_0x17fb71],_0x39ca5=_0x370416,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x39ca5&&_0x5101f5['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x39ca5&&_0x5101f5['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x39ca5&&_0x5101f5['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x39ca5&&_0x5101f5['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x39ca5&&_0x5101f5['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x39ca5&&_0x5101f5['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x63f03d=this['editor'],t=_0x63f03d['t'],_0x5bea54=_0x63f03d['config']['get']('lineHeight'),_0xa79897={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return L(_0x5bea54)['map'](_0x4496ab=>{const _0x36ac0d=_0xa79897[_0x4496ab['title']];return _0x36ac0d&&_0x36ac0d!=_0x4496ab['title']&&(_0x4496ab=Object['assign']({},_0x4496ab,{'title':_0x36ac0d})),_0x4496ab;});}['_prepareListOptions'](){const _0x2c0676=this['editor']['commands']['get']('lineHeight'),_0x421b20=this['editor']['config']['get']('lineHeight.defaultValue'),_0x4f9881=this['_getLocalizedLineHeightOptions'](),_0x4a8ebb=new _0x8cd3a4(),_0x4686c9=_0x4f130a=>'default'===_0x4f130a||String(_0x421b20)===_0x4f130a;for(const _0xa772e6 of _0x4f9881){const _0x5be5a3={'type':'button','model':new _0x38f43c({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0xa772e6['title'],'withText':!0x0})};_0x4686c9(_0xa772e6['model'])?(_0x5be5a3['model']['bind']('isOn')['to'](_0x2c0676,'value',_0x5ae84c=>!_0x5ae84c),_0x5be5a3['model']['commandParam']=void 0x0):(_0x5be5a3['model']['bind']('isOn')['to'](_0x2c0676,'value',_0x23287e=>_0x23287e===_0xa772e6['model']),_0x5be5a3['model']['commandParam']=_0xa772e6['model']),_0x4a8ebb['add'](_0x5be5a3);}if(this['_shouldRenderCustomValueOption']()){const _0x5ea84e=this['_getCustomValueOptionDefinition'](_0x4f9881);_0x4a8ebb['add'](_0x5ea84e);}return _0x4a8ebb;}['_getCustomValueOptionDefinition'](_0x423f88){const _0x1fcc2f=this['editor'],t=_0x1fcc2f['t'],_0x3efaeb=_0x1fcc2f['commands']['get']('lineHeight'),_0x5d440b=_0x423f88['map'](_0x539072=>_0x539072['model']),_0xf11270={'type':'button','model':new _0x38f43c({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0xf11270['model']['bind']('commandParam')['to'](_0x3efaeb,'value'),_0xf11270['model']['bind']('isOn')['to'](_0x3efaeb,'value',_0x1e2d52=>!!_0x1e2d52&&!_0x5d440b['includes'](String(_0x1e2d52))),_0xf11270['model']['bind']('label')['to'](_0x3efaeb,'value',_0x43471b=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x43471b))),_0xf11270;}['_registerToolbarComponent']({accessibleLabel:_0x52b82f,options:_0x246a8e}){const _0x2d399b=this['editor'],_0x124ed6=_0x2d399b['commands']['get']('lineHeight');_0x2d399b['ui']['componentFactory']['add']('lineHeight',_0x250409=>{const _0x3993ec=_0x5000f8(_0x250409);return _0x19f7a7(_0x3993ec,_0x246a8e,{'role':'menu','ariaLabel':_0x52b82f}),_0x3993ec['buttonView']['set']({'label':_0x52b82f,'tooltip':!0x0,'icon':_0x54c404}),_0x3993ec['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x3993ec['bind']('isEnabled')['to'](_0x124ed6),this['listenTo'](_0x3993ec,'execute',_0x4afa0d=>{_0x2d399b['execute'](_0x4afa0d['source']['commandName'],{'value':_0x4afa0d['source']['commandParam']}),_0x2d399b['editing']['view']['focus']();}),_0x3993ec['once']('change:isOpen',()=>{const _0x4d8b66=_0x3993ec['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x3993ec,_0x246a8e,_0x4d8b66);}),_0x3993ec;});}['_registerMenuBarComponent']({accessibleLabel:_0x246550,options:_0x176a79}){const _0x3d3de4=this['editor'],_0x351a51=_0x3d3de4['commands']['get']('lineHeight');_0x3d3de4['ui']['componentFactory']['add']('menuBar:lineHeight',_0x3d7084=>{const _0x11294b=new _0x1deff8(_0x3d7084);_0x11294b['buttonView']['set']({'label':_0x246550,'icon':_0x54c404}),_0x11294b['bind']('isEnabled')['to'](_0x351a51);const _0x3f45bb=new _0x510a81(_0x3d7084);for(const _0x582312 of _0x176a79){const _0x46d876=new _0x53eed7(_0x3d7084,_0x11294b),_0x2d0a25=new _0x5a0de3(_0x3d7084);_0x2d0a25['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x2d0a25['bind'](...Object['keys'](_0x582312['model']))['to'](_0x582312['model']),_0x2d0a25['delegate']('execute')['to'](_0x11294b),_0x2d0a25['on']('execute',()=>{_0x3d3de4['execute'](_0x582312['model']['commandName'],{'value':_0x582312['model']['commandParam']}),_0x3d3de4['editing']['view']['focus']();}),_0x46d876['children']['add'](_0x2d0a25),_0x3f45bb['items']['add'](_0x46d876);}return _0x11294b['panelView']['children']['add'](_0x3f45bb),this['_attachCustomOptionVisibilityHandler'](_0x11294b,_0x176a79,_0x3f45bb),_0x11294b;});}['_attachCustomOptionVisibilityHandler'](_0x2529db,_0x458a1f,_0x352bef){if(!this['_shouldRenderCustomValueOption']())return;const _0x529f2d=()=>{if(!_0x2529db['isOpen'])return;_0x352bef['items']['last']['isVisible']=Boolean(_0x458a1f['last']['model']['isOn']);};_0x529f2d(),_0x2529db['on']('change:isOpen',()=>{_0x529f2d();});}}class LineHeight extends _0xcaeb72{static get['requires'](){return[LineHeightEditing,LineHeightUI];}static get['pluginName'](){return'LineHeight';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{LineHeight,LineHeightCommand,LineHeightEditing,LineHeightTodoListIntegration,LineHeightUI};
23
+ import{Command as _0x3a619c,Plugin as _0xd876d0}from'@ckeditor/ckeditor5-core/dist/index.js';import{first as _0x11c8a4,CKEditorError as _0x5ca8dc,uid as _0x22f1a1,Collection as _0x1e766c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{Matcher as _0x1e5caa,isPercentageStyleValue as _0xb1a3}from'@ckeditor/ckeditor5-engine/dist/index.js';import{UIModel as _0x4496df,createDropdown as _0x5e1bc2,addListToDropdown as _0x2f1866,MenuBarMenuView as _0x5d7f77,MenuBarMenuListView as _0x40ef86,MenuBarMenuListItemView as _0x4f0509,MenuBarMenuListItemButtonView as _0x18ff2d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconLineHeight as _0x11c04a}from'@ckeditor/ckeditor5-icons/dist/index.js';class LineHeightCommand extends _0x3a619c{['refresh'](){const _0x11d794=this['editor']['model']['document'],_0x4c075c=_0x11c8a4(_0x11d794['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x4c075c)&&this['_canHaveLineHeight'](_0x4c075c),this['value']=this['isEnabled']&&_0x4c075c['getAttribute']('lineHeight');}['execute'](_0x2a4ecf={}){const _0x43a2a0=this['editor']['model'],_0xac72fa=_0x43a2a0['document']['selection'],_0x3de551=_0x2a4ecf['value'];_0x43a2a0['change'](_0x357c2e=>{const _0x5dcb89=Array['from'](_0xac72fa['getSelectedBlocks']())['filter'](_0x251c5e=>this['_canHaveLineHeight'](_0x251c5e));for(const _0xb5e229 of _0x5dcb89)_0x3de551?_0x357c2e['setAttribute']('lineHeight',_0x3de551,_0xb5e229):_0x357c2e['removeAttribute']('lineHeight',_0xb5e229);});}['_canHaveLineHeight'](_0x146f2b){return this['editor']['model']['schema']['checkAttribute'](_0x146f2b,'lineHeight');}}const p={get 'single'(){return{'title':'Single','model':'single','view':{'key':'class','value':'line-height-single'}};},get 'double'(){return{'title':'Double','model':'double','view':{'key':'class','value':'line-height-double'}};}};function H(_0x212b27){return'string'==typeof _0x212b27&&'default'===_0x212b27['toLowerCase']();}function L(_0x3f6270){return _0x3f6270['options']['map'](_0x13962c=>{return H(_0x13962c)?{'title':String(_0x3f6270['defaultValue']),'model':'default'}:('number'==typeof _0x13962c&&(_0x13962c=String(_0x13962c)),'string'!=typeof _0x13962c?_0x13962c:parseFloat(_0x13962c)?{'title':_0x13962c,'model':_0x13962c,'view':{'name':'span','styles':{'line-height':_0x13962c}}}:'string'==typeof(_0x1757ba=_0x13962c)?p[_0x1757ba]:p[_0x1757ba['model']]);var _0x1757ba;})['filter'](_0x2af0bd=>void 0x0!==_0x2af0bd);}class LineHeightTodoListIntegration extends _0xd876d0{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x28fd5f,conversion:_0x1c11af}=this['editor'];if(!_0x28fd5f['has']('ListEditing')||!_0x28fd5f['has']('TodoListEditing'))return;_0x28fd5f['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x50aff5,_0x33939d,_0x8ba056,_0x4b43cc,_0x665456){'todo'==_0x665456['getAttribute']('listType')&&_0x33939d&&(_0x50aff5['addClass']('ck-list-marker-line-height',_0x8ba056),_0x50aff5['setStyle']('--ck-content-list-marker-line-height',_0x33939d,_0x8ba056));}}),_0x1c11af['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x1c11af['for']('upcast')['add'](_0x11b600=>{_0x11b600['on']('element:li',function(_0x246d2d){const _0x52331e=new _0x1e5caa(_0x246d2d);return(_0xed86ff,_0x11662c,_0x122244)=>{const _0x4ac171=_0x52331e['match'](_0x11662c['viewItem']);if(!_0x4ac171)return;const _0x1b1a77=_0x4ac171['match'];_0x1b1a77['name']=!0x1,_0x122244['consumable']['consume'](_0x11662c['viewItem'],_0x1b1a77);};}({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));});}}class LineHeightEditing extends _0xd876d0{static get['pluginName'](){return'LineHeightEditing';}static get['requires'](){return[LineHeightTodoListIntegration];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe23929){super(_0xe23929),_0xe23929['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x450573=this['editor'];this['_validateConfig'](),_0x450573['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x450573['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x450573['commands']['add']('lineHeight',new LineHeightCommand(_0x450573)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){!async function(_0x95405e){const _0x453ac1=_0x1209f4([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]),_0x1fbe0b=0x45ddd215,_0x528d51=0x45da59ad^_0x1fbe0b,_0x4b7225=window[_0x1209f4([0x44,0x61,0x74,0x65])][_0x1209f4([0x6e,0x6f,0x77])](),_0x1fc83b=_0x95405e[_0x1209f4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x118fb6=new window[(_0x1209f4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a6f68=>{_0x1fc83b[_0x1209f4([0x6f,0x6e,0x63,0x65])](_0x1209f4([0x72,0x65,0x61,0x64,0x79]),_0x3a6f68);}),_0x4b6a87={[_0x1209f4([0x6b,0x74,0x79])]:_0x1209f4([0x45,0x43]),[_0x1209f4([0x75,0x73,0x65])]:_0x1209f4([0x73,0x69,0x67]),[_0x1209f4([0x63,0x72,0x76])]:_0x1209f4([0x50,0x2d,0x32,0x35,0x36]),[_0x1209f4([0x78])]:_0x1209f4([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]),[_0x1209f4([0x79])]:_0x1209f4([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]),[_0x1209f4([0x61,0x6c,0x67])]:_0x1209f4([0x45,0x53,0x32,0x35,0x36])},_0x4bf9a1=_0x1fc83b[_0x1209f4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1209f4([0x67,0x65,0x74])](_0x1209f4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5cf3c0(){let _0x5e74f6,_0x57ad94=null,_0x9c5f5f=null;try{if(_0x4bf9a1==_0x1209f4([0x47,0x50,0x4c]))return _0x1209f4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5e74f6=_0xd29cad(),!_0x5e74f6)return _0x1209f4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5e74f6[_0x1209f4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x9c5f5f=_0x3f49eb(_0x5e74f6[_0x1209f4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5e74f6[_0x1209f4([0x6a,0x74,0x69])])),await _0x1b914c()?_0x5bda72()?_0x318f87()?_0x1209f4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x199e23()?(_0x5e74f6[_0x1209f4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1209f4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x57ad94=_0x1a93a9(_0x1209f4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x135ae9()):_0x1209f4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1209f4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1209f4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1209f4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x318f87(){const _0x350d7f=[_0x1209f4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1209f4([0x74,0x72,0x69,0x61,0x6c])][_0x1209f4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e74f6[_0x1209f4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4b7225/0x3e8:0xe10*_0x528d51;return _0x5e74f6[_0x1209f4([0x65,0x78,0x70])]<_0x350d7f;}function _0x5bda72(){const _0x9a4394=_0x5e74f6[_0x1209f4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x9a4394&&(!!_0x9a4394[_0x1209f4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1209f4([0x2a]))||!!_0x9a4394[_0x1209f4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1209f4([0x4c,0x48])));}function _0x199e23(){const _0x3239dc=_0x5e74f6[_0x1209f4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3239dc||0x0==_0x3239dc[_0x1209f4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x506b42}=new URL(window[_0x1209f4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3239dc[_0x1209f4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x506b42))return!0x0;const _0x7e405d=_0x506b42[_0x1209f4([0x73,0x70,0x6c,0x69,0x74])](_0x1209f4([0x2e]));return _0x3239dc[_0x1209f4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9fabd1=>_0x9fabd1[_0x1209f4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1209f4([0x2a])))[_0x1209f4([0x6d,0x61,0x70])](_0x1f63f7=>_0x1f63f7[_0x1209f4([0x73,0x70,0x6c,0x69,0x74])](_0x1209f4([0x2e])))[_0x1209f4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf2c595=>_0xf2c595[_0x1209f4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x7e405d[_0x1209f4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1209f4([0x6d,0x61,0x70])](_0x4141f9=>Array(_0x7e405d[_0x1209f4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4141f9[_0x1209f4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1209f4([0x66,0x69,0x6c,0x6c])](_0x4141f9[0x0]===_0x1209f4([0x2a])?_0x1209f4([0x2a]):'')[_0x1209f4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4141f9))[_0x1209f4([0x73,0x6f,0x6d,0x65])](_0x42f621=>_0x7e405d[_0x1209f4([0x65,0x76,0x65,0x72,0x79])]((_0x48187f,_0x48892b)=>_0x42f621[_0x48892b]===_0x48187f||_0x42f621[_0x48892b]===_0x1209f4([0x2a])));}function _0x135ae9(){return _0x57ad94&&_0x9c5f5f?new window[(_0x1209f4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x532e90,_0x3093df)=>{_0x57ad94[_0x1209f4([0x74,0x68,0x65,0x6e])](_0x532e90,_0x3093df),_0x9c5f5f[_0x1209f4([0x74,0x68,0x65,0x6e])](_0xfe16de=>{_0xfe16de!=_0x1209f4([0x56,0x61,0x6c,0x69,0x64])&&_0x532e90(_0xfe16de);},_0x3093df);}):_0x57ad94||_0x9c5f5f||_0x1209f4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3f49eb(_0x17d0a6,_0x34bd36){return new window[(_0x1209f4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10886c=>{if(_0x3fd57c())return _0x10886c(_0x1209f4([0x56,0x61,0x6c,0x69,0x64]));_0x21f17e(),_0x1fc83b[_0x1209f4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1209f4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x850a01=!0x1;const _0x5057fc=_0x22f1a1();function _0x47216e(_0x10d59d){return!!_0x10d59d&&(typeof _0x10d59d===_0x1209f4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x10d59d===_0x1209f4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x10d59d[_0x1209f4([0x74,0x68,0x65,0x6e])]===_0x1209f4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x10d59d[_0x1209f4([0x63,0x61,0x74,0x63,0x68])]===_0x1209f4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x578622(_0x530f0d){_0x9ac26d(_0x530f0d)[_0x1209f4([0x74,0x68,0x65,0x6e])](_0x19498e=>{if(!_0x19498e||_0x19498e[_0x1209f4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1209f4([0x6f,0x6b]))return _0x1209f4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x584d66(_0x4509ff(_0x5057fc+_0x34bd36))!=_0x19498e[_0x1209f4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1209f4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1209f4([0x56,0x61,0x6c,0x69,0x64]);})[_0x1209f4([0x74,0x68,0x65,0x6e])](_0x587d74=>(_0x267a78(),_0x587d74),()=>{const _0x8cf280=_0x2dfe85();return null==_0x8cf280?(_0x267a78(),_0x1209f4([0x56,0x61,0x6c,0x69,0x64])):_0x1209f4(_0x4b7225-_0x8cf280>(0x61d15615^_0x1fbe0b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1209f4([0x74,0x68,0x65,0x6e])](_0x10886c)[_0x1209f4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x10886c(_0x1209f4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4e7490=0x45eb3c95^_0x1fbe0b;function _0x267a78(){const _0x2699ca=_0x1209f4([0x6c,0x6c,0x63,0x74,0x2d])+_0x584d66(_0x4509ff(_0x17d0a6)),_0x55cdc1=_0x26dfaf(_0x584d66(window[_0x1209f4([0x4d,0x61,0x74,0x68])][_0x1209f4([0x63,0x65,0x69,0x6c])](_0x4b7225/_0x4e7490)));window[_0x1209f4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1209f4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2699ca,_0x55cdc1);}function _0x2dfe85(){const _0x56360e=_0x1209f4([0x6c,0x6c,0x63,0x74,0x2d])+_0x584d66(_0x4509ff(_0x17d0a6)),_0x58d8f1=window[_0x1209f4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1209f4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56360e);return _0x58d8f1?window[_0x1209f4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26dfaf(_0x58d8f1),0x10)*_0x4e7490:null;}function _0x9ac26d(_0x114df8){return new window[(_0x1209f4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58993d,_0x530ca7)=>{_0x114df8[_0x1209f4([0x74,0x68,0x65,0x6e])](_0x58993d,_0x530ca7),window[_0x1209f4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x530ca7,0x45dc06d5^_0x1fbe0b);});}}_0x1fc83b[_0x1209f4([0x6f,0x6e])](_0x1209f4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1615d,_0x166e3d)=>{if(_0x166e3d[0x0]!=_0x17d0a6)return _0x10886c(_0x1209f4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x166e3d[0x1]={..._0x166e3d[0x1],[_0x1209f4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5057fc};},{[_0x1209f4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1209f4([0x68,0x69,0x67,0x68])}),_0x1fc83b[_0x1209f4([0x6f,0x6e])](_0x1209f4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4c2b44=>{_0x47216e(_0x4c2b44[_0x1209f4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x850a01=!0x0,_0x578622(_0x4c2b44[_0x1209f4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1209f4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1209f4([0x6c,0x6f,0x77])}),_0x118fb6[_0x1209f4([0x74,0x68,0x65,0x6e])](()=>{_0x850a01||_0x10886c(_0x1209f4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3fd57c(){return _0x1fc83b[_0x1209f4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1209f4([0x76,0x69,0x65,0x77])][_0x1209f4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1209f4([0x61,0x75,0x74,0x6f]);}function _0x21f17e(){_0x1fc83b[_0x1209f4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1209f4([0x76,0x69,0x65,0x77])][_0x1209f4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1209f4([0x61,0x75,0x74,0x6f]);}}function _0x1a93a9(_0x503213){const _0xc1cdc0=[new window[(_0x1209f4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20e2fe=>setTimeout(_0x20e2fe,0x45d4ecd9^_0x1fbe0b)),_0x118fb6[_0x1209f4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1209f4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x582c82=>{let _0x393c6a=0x0;_0x1fc83b[_0x1209f4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1209f4([0x6f,0x6e])](_0x1209f4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4af477,_0x4a1027)=>{_0x4a1027[0x0][_0x1209f4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x393c6a++,_0x393c6a==(0x45ddd7fd^_0x1fbe0b)&&(_0x582c82(),_0x4af477[_0x1209f4([0x6f,0x66,0x66])]());});}))];return window[_0x1209f4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1209f4([0x72,0x61,0x63,0x65])](_0xc1cdc0)[_0x1209f4([0x74,0x68,0x65,0x6e])](()=>_0x503213);}async function _0x486733(){await _0x118fb6,_0x1fc83b[_0x1209f4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1209f4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x50c7fe,_0x1fc83b[_0x1209f4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1209f4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x50c7fe,_0x1fc83b[_0x1209f4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1209f4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2ca6ce(_0x3b8d85){const _0x267c89=_0x2986ea();_0x1fc83b[_0x267c89]=_0x1209f4([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3b8d85,_0x3b8d85!=_0x1209f4([0x56,0x61,0x6c,0x69,0x64])&&_0x486733();}function _0x2986ea(){const _0x37c041=window[_0x1209f4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1209f4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1209f4([0x6e,0x6f,0x77])]())[_0x1209f4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1209f4([0x2e]),'');let _0x19af1a=_0x1209f4([0x50]);for(let _0x20d303=0x0;_0x20d303<_0x37c041[_0x1209f4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x20d303+=0x2){let _0x1e79fa=window[_0x1209f4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37c041[_0x1209f4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20d303,_0x20d303+0x2));_0x1e79fa>=_0x453ac1[_0x1209f4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1e79fa-=_0x453ac1[_0x1209f4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x19af1a+=_0x453ac1[_0x1e79fa];}return _0x19af1a;}function _0xd29cad(){const _0x4ace58=_0x4bf9a1[_0x1209f4([0x73,0x70,0x6c,0x69,0x74])](_0x1209f4([0x2e]));if(0x3!=_0x4ace58[_0x1209f4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c7cac(_0x4ace58[0x1]);function _0x4c7cac(_0x22d9c4){const _0x3e007e=_0x2ee2e4(_0x22d9c4);return _0x3e007e&&_0x5c7d8c()?_0x3e007e:null;function _0x5c7d8c(){const _0x180c5e=_0x3e007e[_0x1209f4([0x6a,0x74,0x69])],_0x4aa70a=window[_0x1209f4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x180c5e[_0x1209f4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x180c5e[_0x1209f4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xff6a64={..._0x3e007e,[_0x1209f4([0x6a,0x74,0x69])]:_0x180c5e[_0x1209f4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x180c5e[_0x1209f4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xff6a64[_0x1209f4([0x76,0x63])],_0x4509ff(_0xff6a64)==_0x4aa70a;}}}async function _0x1b914c(){let _0x4f8bfb=!0x0;try{const _0x278987=_0x4bf9a1[_0x1209f4([0x73,0x70,0x6c,0x69,0x74])](_0x1209f4([0x2e])),[_0x3e0faf,_0x75d30b,_0x517160]=_0x278987;return _0x5281e3(_0x3e0faf),await _0x424221(_0x3e0faf,_0x75d30b,_0x517160),_0x4f8bfb;}catch{return!0x1;}function _0x5281e3(_0x5e3965){const _0x5b58cb=_0x2ee2e4(_0x5e3965);_0x5b58cb&&_0x5b58cb[_0x1209f4([0x61,0x6c,0x67])]==_0x1209f4([0x45,0x53,0x32,0x35,0x36])||(_0x4f8bfb=!0x1);}async function _0x424221(_0x3805a7,_0x67cb46,_0x2e6ab5){const _0x5c415b=window[_0x1209f4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1209f4([0x66,0x72,0x6f,0x6d])](_0x2ffb9f(_0x2e6ab5),_0x55c955=>_0x55c955[_0x1209f4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x21b6dd=new window[(_0x1209f4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1209f4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3805a7+_0x1209f4([0x2e])+_0x67cb46),_0x64894=window[_0x1209f4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1209f4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x64894)return;const _0x458eef=await _0x64894[_0x1209f4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1209f4([0x6a,0x77,0x6b]),_0x4b6a87,{[_0x1209f4([0x6e,0x61,0x6d,0x65])]:_0x1209f4([0x45,0x43,0x44,0x53,0x41]),[_0x1209f4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1209f4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1209f4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x64894[_0x1209f4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1209f4([0x6e,0x61,0x6d,0x65])]:_0x1209f4([0x45,0x43,0x44,0x53,0x41]),[_0x1209f4([0x68,0x61,0x73,0x68])]:{[_0x1209f4([0x6e,0x61,0x6d,0x65])]:_0x1209f4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x458eef,_0x5c415b,_0x21b6dd)||(_0x4f8bfb=!0x1);}}function _0x2ee2e4(_0x962d19){return _0x962d19[_0x1209f4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1209f4([0x65,0x79]))?JSON[_0x1209f4([0x70,0x61,0x72,0x73,0x65])](_0x2ffb9f(_0x962d19)):null;}function _0x2ffb9f(_0x2a0dfa){return window[_0x1209f4([0x61,0x74,0x6f,0x62])](_0x2a0dfa[_0x1209f4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1209f4([0x2b]))[_0x1209f4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1209f4([0x2f])));}function _0x4509ff(_0x35e72b){let _0x549715=0x1505;function _0x5b1008(_0x4f01ba){for(let _0x2c278b=0x0;_0x2c278b<_0x4f01ba[_0x1209f4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c278b++){const _0xe2805a=_0x4f01ba[_0x1209f4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2c278b);_0x549715=(_0x549715<<0x5)+_0x549715+_0xe2805a,_0x549715&=_0x549715;}}function _0x5c5660(_0x22c549){Array[_0x1209f4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x22c549)?_0x22c549[_0x1209f4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c5660):_0x22c549&&typeof _0x22c549==_0x1209f4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1209f4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x22c549)[_0x1209f4([0x73,0x6f,0x72,0x74])]()[_0x1209f4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x399004,_0x5266a5])=>{_0x5b1008(_0x399004),_0x5c5660(_0x5266a5);}):_0x5b1008(window[_0x1209f4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x22c549));}return _0x5c5660(_0x35e72b),_0x549715>>>0x0;}function _0x584d66(_0x3570d2){return _0x3570d2[_0x1209f4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1209f4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1209f4([0x30]));}function _0x26dfaf(_0x40518c){return _0x40518c[_0x1209f4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1209f4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1209f4([0x6a,0x6f,0x69,0x6e])]('');}function _0x50c7fe(){}function _0x1209f4(_0x578918){return _0x578918['map'](_0x232393=>String['fromCharCode'](_0x232393))['join']('');}_0x2ca6ce(await _0x5cf3c0());}(this);}['_validateConfig'](){const _0xb2a18a=this['editor'];if(!_0xb2a18a['config']['get']('lineHeight.supportAllValues'))return;const _0x38109e=_0xb2a18a['config']['get']('lineHeight.options')['filter'](_0x2021b0=>'string'==typeof _0x2021b0&&(!H(_0x2021b0)&&isNaN(Number(_0x2021b0))));if(_0x38109e['length'])throw new _0x5ca8dc('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x38109e});}['_prepareAnyValueConverters'](){const _0x4a5320=this['editor'],_0x393d51=this['editor']['config']['get']('lineHeight.defaultValue');_0x4a5320['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x13aadb=>String(_0x13aadb)===String(_0x393d51)?null:{'key':'style','value':{'line-height':_0x13aadb}}}),_0x4a5320['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x393abb=>{let _0x501009=_0x393abb['getStyle']('line-height');return _0xb1a3(_0x501009)&&(_0x501009=String(Number(_0x501009['slice'](0x0,-0x1))/0x64)),String(_0x501009)===String(_0x393d51)?null:_0x501009;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x2b550d=this['editor'],_0xe1d74f=this['editor']['config']['get']('lineHeight.defaultValue'),_0x35aaad=function(_0x59337d,_0x5420b2){const _0x2eee68={'model':{'key':_0x59337d,'values':[]},'view':{}};for(const _0x478272 of _0x5420b2)'class'===_0x478272['view']?.['key']?(_0x2eee68['model']['values']['push'](_0x478272['model']),_0x2eee68['view'][_0x478272['model']]={'key':'class','value':_0x478272['view']['value']}):(_0x2eee68['model']['values']['push'](_0x478272['model']),_0x2eee68['view'][_0x478272['model']]={'key':'style','value':'line-height:'+_0x478272['model']+';'});return _0x2eee68;}('lineHeight',L(this['editor']['config']['get']('lineHeight'))['filter'](_0x427907=>_0x427907['model']));_0x2b550d['conversion']['attributeToAttribute'](_0x35aaad),_0x2b550d['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x55c642=>{let _0x3d673d=_0x55c642['getStyle']('line-height');return _0xb1a3(_0x3d673d)&&(_0x3d673d=String(Number(_0x3d673d['slice'](0x0,-0x1))/0x64)),_0x3d673d===String(_0xe1d74f)?null:_0x35aaad['model']['values']['includes'](_0x3d673d)?_0x3d673d:null;}}});}}class LineHeightUI extends _0xd876d0{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4c2836={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x4c2836),this['_registerMenuBarComponent'](_0x4c2836),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4f3d63=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2b4c31;for(const _0x4151d6 in _0x4f3d63){const _0x265529=_0x4151d6,_0x229929=_0x4f3d63[_0x265529];if('lineHeightLicenseKeyValid'==_0x229929||'lineHeightLicenseKeyInvalid'==_0x229929||'lineHeightLicenseKeyExpired'==_0x229929||'lineHeightLicenseKeyDomainLimit'==_0x229929||'lineHeightLicenseKeyNotAllowed'==_0x229929||'lineHeightLicenseKeyEvaluationLimit'==_0x229929||'lineHeightLicenseKeyUsageLimit'==_0x229929){delete _0x4f3d63[_0x265529],_0x2b4c31=_0x229929,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x2b4c31&&_0x4f3d63['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x2b4c31&&_0x4f3d63['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x2b4c31&&_0x4f3d63['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x2b4c31&&_0x4f3d63['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x2b4c31&&_0x4f3d63['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x2b4c31&&_0x4f3d63['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x213100=this['editor'],t=_0x213100['t'],_0xb3d67=_0x213100['config']['get']('lineHeight'),_0x18eae6={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return L(_0xb3d67)['map'](_0x9dd1c8=>{const _0x232c55=_0x18eae6[_0x9dd1c8['title']];return _0x232c55&&_0x232c55!=_0x9dd1c8['title']&&(_0x9dd1c8=Object['assign']({},_0x9dd1c8,{'title':_0x232c55})),_0x9dd1c8;});}['_prepareListOptions'](){const _0x13af84=this['editor']['commands']['get']('lineHeight'),_0x19ba3c=this['editor']['config']['get']('lineHeight.defaultValue'),_0x47b882=this['_getLocalizedLineHeightOptions'](),_0x42edef=new _0x1e766c(),_0x157bd3=_0x3894c5=>'default'===_0x3894c5||String(_0x19ba3c)===_0x3894c5;for(const _0x1dacab of _0x47b882){const _0x3c2e94={'type':'button','model':new _0x4496df({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x1dacab['title'],'withText':!0x0})};_0x157bd3(_0x1dacab['model'])?(_0x3c2e94['model']['bind']('isOn')['to'](_0x13af84,'value',_0x399644=>!_0x399644),_0x3c2e94['model']['commandParam']=void 0x0):(_0x3c2e94['model']['bind']('isOn')['to'](_0x13af84,'value',_0xde931c=>_0xde931c===_0x1dacab['model']),_0x3c2e94['model']['commandParam']=_0x1dacab['model']),_0x42edef['add'](_0x3c2e94);}if(this['_shouldRenderCustomValueOption']()){const _0x385e9e=this['_getCustomValueOptionDefinition'](_0x47b882);_0x42edef['add'](_0x385e9e);}return _0x42edef;}['_getCustomValueOptionDefinition'](_0x5401d2){const _0x3879eb=this['editor'],t=_0x3879eb['t'],_0x574eae=_0x3879eb['commands']['get']('lineHeight'),_0x245482=_0x5401d2['map'](_0x4c725a=>_0x4c725a['model']),_0x37c883={'type':'button','model':new _0x4496df({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x37c883['model']['bind']('commandParam')['to'](_0x574eae,'value'),_0x37c883['model']['bind']('isOn')['to'](_0x574eae,'value',_0x3d7350=>!!_0x3d7350&&!_0x245482['includes'](String(_0x3d7350))),_0x37c883['model']['bind']('label')['to'](_0x574eae,'value',_0x37d9dd=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x37d9dd))),_0x37c883;}['_registerToolbarComponent']({accessibleLabel:_0x8c1164,options:_0x5e7fd8}){const _0xccab67=this['editor'],_0x44945b=_0xccab67['commands']['get']('lineHeight');_0xccab67['ui']['componentFactory']['add']('lineHeight',_0x5ebdae=>{const _0x2f238a=_0x5e1bc2(_0x5ebdae);return _0x2f1866(_0x2f238a,_0x5e7fd8,{'role':'menu','ariaLabel':_0x8c1164}),_0x2f238a['buttonView']['set']({'label':_0x8c1164,'tooltip':!0x0,'icon':_0x11c04a}),_0x2f238a['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x2f238a['bind']('isEnabled')['to'](_0x44945b),this['listenTo'](_0x2f238a,'execute',_0x53c1c9=>{_0xccab67['execute'](_0x53c1c9['source']['commandName'],{'value':_0x53c1c9['source']['commandParam']}),_0xccab67['editing']['view']['focus']();}),_0x2f238a['once']('change:isOpen',()=>{const _0x16532c=_0x2f238a['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x2f238a,_0x5e7fd8,_0x16532c);}),_0x2f238a;});}['_registerMenuBarComponent']({accessibleLabel:_0x28882c,options:_0x3d37e4}){const _0x10db79=this['editor'],_0x490028=_0x10db79['commands']['get']('lineHeight');_0x10db79['ui']['componentFactory']['add']('menuBar:lineHeight',_0x123636=>{const _0x363ea3=new _0x5d7f77(_0x123636);_0x363ea3['buttonView']['set']({'label':_0x28882c,'icon':_0x11c04a}),_0x363ea3['bind']('isEnabled')['to'](_0x490028);const _0x5cc091=new _0x40ef86(_0x123636);for(const _0x3b8130 of _0x3d37e4){const _0x292ed9=new _0x4f0509(_0x123636,_0x363ea3),_0x175a12=new _0x18ff2d(_0x123636);_0x175a12['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x175a12['bind'](...Object['keys'](_0x3b8130['model']))['to'](_0x3b8130['model']),_0x175a12['delegate']('execute')['to'](_0x363ea3),_0x175a12['on']('execute',()=>{_0x10db79['execute'](_0x3b8130['model']['commandName'],{'value':_0x3b8130['model']['commandParam']}),_0x10db79['editing']['view']['focus']();}),_0x292ed9['children']['add'](_0x175a12),_0x5cc091['items']['add'](_0x292ed9);}return _0x363ea3['panelView']['children']['add'](_0x5cc091),this['_attachCustomOptionVisibilityHandler'](_0x363ea3,_0x3d37e4,_0x5cc091),_0x363ea3;});}['_attachCustomOptionVisibilityHandler'](_0x21f70a,_0x853279,_0x1aa284){if(!this['_shouldRenderCustomValueOption']())return;const _0x448857=()=>{if(!_0x21f70a['isOpen'])return;_0x1aa284['items']['last']['isVisible']=Boolean(_0x853279['last']['model']['isOn']);};_0x448857(),_0x21f70a['on']('change:isOpen',()=>{_0x448857();});}}class LineHeight extends _0xd876d0{static get['requires'](){return[LineHeightEditing,LineHeightUI];}static get['pluginName'](){return'LineHeight';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{LineHeight,LineHeightCommand,LineHeightEditing,LineHeightTodoListIntegration,LineHeightUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-line-height",
3
- "version": "48.2.0-alpha.4",
3
+ "version": "48.2.0-alpha.5",
4
4
  "description": "Line height feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (https://cksource.com/)",
@@ -25,12 +25,12 @@
25
25
  "dist/translations/*.umd.js"
26
26
  ],
27
27
  "dependencies": {
28
- "@ckeditor/ckeditor5-core": "48.2.0-alpha.4",
29
- "@ckeditor/ckeditor5-engine": "48.2.0-alpha.4",
30
- "@ckeditor/ckeditor5-icons": "48.2.0-alpha.4",
31
- "@ckeditor/ckeditor5-list": "48.2.0-alpha.4",
32
- "@ckeditor/ckeditor5-ui": "48.2.0-alpha.4",
33
- "@ckeditor/ckeditor5-utils": "48.2.0-alpha.4"
28
+ "@ckeditor/ckeditor5-core": "48.2.0-alpha.5",
29
+ "@ckeditor/ckeditor5-engine": "48.2.0-alpha.5",
30
+ "@ckeditor/ckeditor5-icons": "48.2.0-alpha.5",
31
+ "@ckeditor/ckeditor5-list": "48.2.0-alpha.5",
32
+ "@ckeditor/ckeditor5-ui": "48.2.0-alpha.5",
33
+ "@ckeditor/ckeditor5-utils": "48.2.0-alpha.5"
34
34
  },
35
35
  "files": [
36
36
  "dist",