@ckeditor/ckeditor5-line-height 0.0.0-nightly-next-20260118.0 → 0.0.0-nightly-next-20260119.0
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 _0x829186,Plugin as _0x5ac17f}from'@ckeditor/ckeditor5-core/dist/index.js';import{first as _0xdd0d90,CKEditorError as _0x47f679,uid as _0x4f551e,Collection as _0x4d56c5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{Matcher as _0xb06b35,isPercentageStyleValue as _0x44e12a}from'@ckeditor/ckeditor5-engine/dist/index.js';import{UIModel as _0x20a8f8,createDropdown as _0x78184b,addListToDropdown as _0x9fa36a,MenuBarMenuView as _0x16409e,MenuBarMenuListView as _0x52f883,MenuBarMenuListItemView as _0x1764e7,MenuBarMenuListItemButtonView as _0x30e9e5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconLineHeight as _0x180648}from'@ckeditor/ckeditor5-icons/dist/index.js';class p extends _0x829186{['refresh'](){const _0x2578f4=this['editor']['model']['document'],_0x907936=_0xdd0d90(_0x2578f4['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x907936)&&this['_canHaveLineHeight'](_0x907936),this['value']=this['isEnabled']&&_0x907936['getAttribute']('lineHeight');}['execute'](_0x65c401={}){const _0x25b8fd=this['editor']['model'],_0x28ebc5=_0x25b8fd['document']['selection'],_0x375328=_0x65c401['value'];_0x25b8fd['change'](_0x491965=>{const _0x16752b=Array['from'](_0x28ebc5['getSelectedBlocks']())['filter'](_0x188990=>this['_canHaveLineHeight'](_0x188990));for(const _0x3e4258 of _0x16752b)_0x375328?_0x491965['setAttribute']('lineHeight',_0x375328,_0x3e4258):_0x491965['removeAttribute']('lineHeight',_0x3e4258);});}['_canHaveLineHeight'](_0x4b2592){return this['editor']['model']['schema']['checkAttribute'](_0x4b2592,'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(_0x4b6436){return'string'==typeof _0x4b6436&&'default'===_0x4b6436['toLowerCase']();}function L(_0x337921){return _0x337921['options']['map'](_0x489f5b=>{return H(_0x489f5b)?{'title':String(_0x337921['defaultValue']),'model':'default'}:('number'==typeof _0x489f5b&&(_0x489f5b=String(_0x489f5b)),'string'!=typeof _0x489f5b?_0x489f5b:parseFloat(_0x489f5b)?{'title':_0x489f5b,'model':_0x489f5b,'view':{'name':'span','styles':{'line-height':_0x489f5b}}}:'string'==typeof(_0x4aaf8e=_0x489f5b)?y[_0x4aaf8e]:y[_0x4aaf8e['model']]);var _0x4aaf8e;})['filter'](_0x5342dd=>void 0x0!==_0x5342dd);}class v extends _0x5ac17f{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x5e3523,conversion:_0x2528fd}=this['editor'];if(!_0x5e3523['has']('ListEditing')||!_0x5e3523['has']('TodoListEditing'))return;_0x5e3523['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x53800e,_0x414ae2,_0x16e57b,_0x324447,_0x584962){'todo'==_0x584962['getAttribute']('listType')&&_0x414ae2&&(_0x53800e['addClass']('ck-list-marker-line-height',_0x16e57b),_0x53800e['setStyle']('--ck-content-list-marker-line-height',_0x414ae2,_0x16e57b));}}),_0x2528fd['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x2528fd['for']('upcast')['add'](_0x255ff8=>{_0x255ff8['on']('element:li',function(_0x12da70){const _0x2a43d6=new _0xb06b35(_0x12da70);return(_0x36285b,_0x1b61cb,_0x1ffbe4)=>{const _0x1e6bc1=_0x2a43d6['match'](_0x1b61cb['viewItem']);if(!_0x1e6bc1)return;const _0x267bd5=_0x1e6bc1['match'];_0x267bd5['name']=!0x1,_0x1ffbe4['consumable']['consume'](_0x1b61cb['viewItem'],_0x267bd5);};}({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));});}}class b extends _0x5ac17f{static get['pluginName'](){return'LineHeightEditing';}static get['requires'](){return[v];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x12c089){super(_0x12c089),_0x12c089['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x4c1268=this['editor'];this['_validateConfig'](),_0x4c1268['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x4c1268['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x4c1268['commands']['add']('lineHeight',new p(_0x4c1268)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){!async function(_0x3a3603){const _0x59962f=_0x341235([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]),_0x167132=0x45ddd215,_0x23e13f=0x45daad3d^_0x167132,_0x25d498=window[_0x341235([0x44,0x61,0x74,0x65])][_0x341235([0x6e,0x6f,0x77])](),_0x2a85e1=_0x3a3603[_0x341235([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xa0f163=new window[(_0x341235([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x523798=>{_0x2a85e1[_0x341235([0x6f,0x6e,0x63,0x65])](_0x341235([0x72,0x65,0x61,0x64,0x79]),_0x523798);}),_0x10a0fa={[_0x341235([0x6b,0x74,0x79])]:_0x341235([0x45,0x43]),[_0x341235([0x75,0x73,0x65])]:_0x341235([0x73,0x69,0x67]),[_0x341235([0x63,0x72,0x76])]:_0x341235([0x50,0x2d,0x32,0x35,0x36]),[_0x341235([0x78])]:_0x341235([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]),[_0x341235([0x79])]:_0x341235([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]),[_0x341235([0x61,0x6c,0x67])]:_0x341235([0x45,0x53,0x32,0x35,0x36])},_0x4857f1=_0x2a85e1[_0x341235([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x341235([0x67,0x65,0x74])](_0x341235([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x125d84(){let _0x1803bf,_0x22c173=null,_0x4259a9=null;try{if(_0x4857f1==_0x341235([0x47,0x50,0x4c]))return _0x341235([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1803bf=_0x434929(),!_0x1803bf)return _0x341235([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1803bf[_0x341235([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4259a9=_0x4e4379(_0x1803bf[_0x341235([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1803bf[_0x341235([0x6a,0x74,0x69])])),await _0x369e78()?_0x67c1d1()?_0x10b518()?_0x341235([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1f80be()?(_0x1803bf[_0x341235([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x341235([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x22c173=_0x5a027e(_0x341235([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x47d26a()):_0x341235([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x341235([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x341235([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x341235([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x10b518(){const _0x5443cd=[_0x341235([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x341235([0x74,0x72,0x69,0x61,0x6c])][_0x341235([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1803bf[_0x341235([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x25d498/0x3e8:0xe10*_0x23e13f;return _0x1803bf[_0x341235([0x65,0x78,0x70])]<_0x5443cd;}function _0x67c1d1(){const _0x538170=_0x1803bf[_0x341235([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x538170&&(!!_0x538170[_0x341235([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x341235([0x2a]))||!!_0x538170[_0x341235([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x341235([0x4c,0x48])));}function _0x1f80be(){const _0x5ed94b=_0x1803bf[_0x341235([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5ed94b||0x0==_0x5ed94b[_0x341235([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x368cf7}=new URL(window[_0x341235([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5ed94b[_0x341235([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x368cf7))return!0x0;const _0x23df6e=_0x368cf7[_0x341235([0x73,0x70,0x6c,0x69,0x74])](_0x341235([0x2e]));return _0x5ed94b[_0x341235([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x28aefa=>_0x28aefa[_0x341235([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x341235([0x2a])))[_0x341235([0x6d,0x61,0x70])](_0x3375ce=>_0x3375ce[_0x341235([0x73,0x70,0x6c,0x69,0x74])](_0x341235([0x2e])))[_0x341235([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb461f5=>_0xb461f5[_0x341235([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x23df6e[_0x341235([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x341235([0x6d,0x61,0x70])](_0x143d19=>Array(_0x23df6e[_0x341235([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x143d19[_0x341235([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x341235([0x66,0x69,0x6c,0x6c])](_0x143d19[0x0]===_0x341235([0x2a])?_0x341235([0x2a]):'')[_0x341235([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x143d19))[_0x341235([0x73,0x6f,0x6d,0x65])](_0x19c5e1=>_0x23df6e[_0x341235([0x65,0x76,0x65,0x72,0x79])]((_0x2e552a,_0x10b890)=>_0x19c5e1[_0x10b890]===_0x2e552a||_0x19c5e1[_0x10b890]===_0x341235([0x2a])));}function _0x47d26a(){return _0x22c173&&_0x4259a9?new window[(_0x341235([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26eb6d,_0x55aac9)=>{_0x22c173[_0x341235([0x74,0x68,0x65,0x6e])](_0x26eb6d,_0x55aac9),_0x4259a9[_0x341235([0x74,0x68,0x65,0x6e])](_0x241b74=>{_0x241b74!=_0x341235([0x56,0x61,0x6c,0x69,0x64])&&_0x26eb6d(_0x241b74);},_0x55aac9);}):_0x22c173||_0x4259a9||_0x341235([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4e4379(_0xb96df4,_0xd02546){return new window[(_0x341235([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4295cb=>{if(_0x5645f3())return _0x4295cb(_0x341235([0x56,0x61,0x6c,0x69,0x64]));_0x138b9b(),_0x2a85e1[_0x341235([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x341235([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3a234a=!0x1;const _0x1d0f55=_0x4f551e();function _0xea8f0b(_0x58d60d){return!!_0x58d60d&&(typeof _0x58d60d===_0x341235([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x58d60d===_0x341235([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x58d60d[_0x341235([0x74,0x68,0x65,0x6e])]===_0x341235([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x58d60d[_0x341235([0x63,0x61,0x74,0x63,0x68])]===_0x341235([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2ec087(_0x41a440){_0x3e2617(_0x41a440)[_0x341235([0x74,0x68,0x65,0x6e])](_0x453eeb=>{if(!_0x453eeb||_0x453eeb[_0x341235([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x341235([0x6f,0x6b]))return _0x341235([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x535676(_0x85e044(_0x1d0f55+_0xd02546))!=_0x453eeb[_0x341235([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x341235([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x341235([0x56,0x61,0x6c,0x69,0x64]);})[_0x341235([0x74,0x68,0x65,0x6e])](_0x1e3764=>(_0x44ac9b(),_0x1e3764),()=>{const _0x49cd67=_0x297fde();return null==_0x49cd67?(_0x44ac9b(),_0x341235([0x56,0x61,0x6c,0x69,0x64])):_0x341235(_0x25d498-_0x49cd67>(0x61d15615^_0x167132)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x341235([0x74,0x68,0x65,0x6e])](_0x4295cb)[_0x341235([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4295cb(_0x341235([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xcc1ec5=0x45eb3c95^_0x167132;function _0x44ac9b(){const _0x29bdad=_0x341235([0x6c,0x6c,0x63,0x74,0x2d])+_0x535676(_0x85e044(_0xb96df4)),_0x465676=_0x39df3b(_0x535676(window[_0x341235([0x4d,0x61,0x74,0x68])][_0x341235([0x63,0x65,0x69,0x6c])](_0x25d498/_0xcc1ec5)));window[_0x341235([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x341235([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29bdad,_0x465676);}function _0x297fde(){const _0x2288bc=_0x341235([0x6c,0x6c,0x63,0x74,0x2d])+_0x535676(_0x85e044(_0xb96df4)),_0x4eed8f=window[_0x341235([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x341235([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2288bc);return _0x4eed8f?window[_0x341235([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39df3b(_0x4eed8f),0x10)*_0xcc1ec5:null;}function _0x3e2617(_0x4780ad){return new window[(_0x341235([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5cb181,_0x2cc87e)=>{_0x4780ad[_0x341235([0x74,0x68,0x65,0x6e])](_0x5cb181,_0x2cc87e),window[_0x341235([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2cc87e,0x45dc06d5^_0x167132);});}}_0x2a85e1[_0x341235([0x6f,0x6e])](_0x341235([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5489bb,_0x53d4c1)=>{if(_0x53d4c1[0x0]!=_0xb96df4)return _0x4295cb(_0x341235([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x53d4c1[0x1]={..._0x53d4c1[0x1],[_0x341235([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1d0f55};},{[_0x341235([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x341235([0x68,0x69,0x67,0x68])}),_0x2a85e1[_0x341235([0x6f,0x6e])](_0x341235([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x49291c=>{_0xea8f0b(_0x49291c[_0x341235([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3a234a=!0x0,_0x2ec087(_0x49291c[_0x341235([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x341235([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x341235([0x6c,0x6f,0x77])}),_0xa0f163[_0x341235([0x74,0x68,0x65,0x6e])](()=>{_0x3a234a||_0x4295cb(_0x341235([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5645f3(){return _0x2a85e1[_0x341235([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x341235([0x76,0x69,0x65,0x77])][_0x341235([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x341235([0x61,0x75,0x74,0x6f]);}function _0x138b9b(){_0x2a85e1[_0x341235([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x341235([0x76,0x69,0x65,0x77])][_0x341235([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x341235([0x61,0x75,0x74,0x6f]);}}function _0x5a027e(_0x1ac777){const _0x3fd4a8=[new window[(_0x341235([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35d5af=>setTimeout(_0x35d5af,0x45d4ecd9^_0x167132)),_0xa0f163[_0x341235([0x74,0x68,0x65,0x6e])](()=>new window[(_0x341235([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x162f0a=>{let _0x422799=0x0;_0x2a85e1[_0x341235([0x6d,0x6f,0x64,0x65,0x6c])][_0x341235([0x6f,0x6e])](_0x341235([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x47f2b0,_0x144dfc)=>{_0x144dfc[0x0][_0x341235([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x422799++,_0x422799==(0x45ddd7fd^_0x167132)&&(_0x162f0a(),_0x47f2b0[_0x341235([0x6f,0x66,0x66])]());});}))];return window[_0x341235([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x341235([0x72,0x61,0x63,0x65])](_0x3fd4a8)[_0x341235([0x74,0x68,0x65,0x6e])](()=>_0x1ac777);}async function _0x200bab(){await _0xa0f163,_0x2a85e1[_0x341235([0x6d,0x6f,0x64,0x65,0x6c])][_0x341235([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x26793d,_0x2a85e1[_0x341235([0x6d,0x6f,0x64,0x65,0x6c])][_0x341235([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x26793d,_0x2a85e1[_0x341235([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x341235([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4a184d(_0x2b05e8){const _0x1d47ce=_0x9bcf5a();_0x2a85e1[_0x1d47ce]=_0x341235([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2b05e8,_0x2b05e8!=_0x341235([0x56,0x61,0x6c,0x69,0x64])&&_0x200bab();}function _0x9bcf5a(){const _0x3f8915=window[_0x341235([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x341235([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x341235([0x6e,0x6f,0x77])]())[_0x341235([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x341235([0x2e]),'');let _0xd75007=_0x341235([0x50]);for(let _0x556c9a=0x0;_0x556c9a<_0x3f8915[_0x341235([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x556c9a+=0x2){let _0x3b6139=window[_0x341235([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f8915[_0x341235([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x556c9a,_0x556c9a+0x2));_0x3b6139>=_0x59962f[_0x341235([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3b6139-=_0x59962f[_0x341235([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xd75007+=_0x59962f[_0x3b6139];}return _0xd75007;}function _0x434929(){const _0x43645a=_0x4857f1[_0x341235([0x73,0x70,0x6c,0x69,0x74])](_0x341235([0x2e]));if(0x3!=_0x43645a[_0x341235([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2cf580(_0x43645a[0x1]);function _0x2cf580(_0x30c424){const _0x19b9b4=_0x400c4e(_0x30c424);return _0x19b9b4&&_0x21f0d0()?_0x19b9b4:null;function _0x21f0d0(){const _0x1919a0=_0x19b9b4[_0x341235([0x6a,0x74,0x69])],_0x4e896e=window[_0x341235([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1919a0[_0x341235([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1919a0[_0x341235([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1cb908={..._0x19b9b4,[_0x341235([0x6a,0x74,0x69])]:_0x1919a0[_0x341235([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1919a0[_0x341235([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1cb908[_0x341235([0x76,0x63])],_0x85e044(_0x1cb908)==_0x4e896e;}}}async function _0x369e78(){let _0x469072=!0x0;try{const _0x5f4724=_0x4857f1[_0x341235([0x73,0x70,0x6c,0x69,0x74])](_0x341235([0x2e])),[_0x13c937,_0x2348f6,_0x4bc557]=_0x5f4724;return _0x8694e0(_0x13c937),await _0x3efb28(_0x13c937,_0x2348f6,_0x4bc557),_0x469072;}catch{return!0x1;}function _0x8694e0(_0x3c3d9a){const _0xd0226c=_0x400c4e(_0x3c3d9a);_0xd0226c&&_0xd0226c[_0x341235([0x61,0x6c,0x67])]==_0x341235([0x45,0x53,0x32,0x35,0x36])||(_0x469072=!0x1);}async function _0x3efb28(_0xf71f68,_0x393c95,_0x247c9e){const _0x1abf55=window[_0x341235([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x341235([0x66,0x72,0x6f,0x6d])](_0x3adda5(_0x247c9e),_0x198a94=>_0x198a94[_0x341235([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x447d10=new window[(_0x341235([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x341235([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xf71f68+_0x341235([0x2e])+_0x393c95),_0x2d6c12=window[_0x341235([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x341235([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2d6c12)return;const _0x327254=await _0x2d6c12[_0x341235([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x341235([0x6a,0x77,0x6b]),_0x10a0fa,{[_0x341235([0x6e,0x61,0x6d,0x65])]:_0x341235([0x45,0x43,0x44,0x53,0x41]),[_0x341235([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x341235([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x341235([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2d6c12[_0x341235([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x341235([0x6e,0x61,0x6d,0x65])]:_0x341235([0x45,0x43,0x44,0x53,0x41]),[_0x341235([0x68,0x61,0x73,0x68])]:{[_0x341235([0x6e,0x61,0x6d,0x65])]:_0x341235([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x327254,_0x1abf55,_0x447d10)||(_0x469072=!0x1);}}function _0x400c4e(_0xbca264){return _0xbca264[_0x341235([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x341235([0x65,0x79]))?JSON[_0x341235([0x70,0x61,0x72,0x73,0x65])](_0x3adda5(_0xbca264)):null;}function _0x3adda5(_0x539f76){return window[_0x341235([0x61,0x74,0x6f,0x62])](_0x539f76[_0x341235([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x341235([0x2b]))[_0x341235([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x341235([0x2f])));}function _0x85e044(_0x20d0b3){let _0x532d7d=0x1505;function _0x3e1753(_0x586ffb){for(let _0x175b24=0x0;_0x175b24<_0x586ffb[_0x341235([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x175b24++){const _0x4a50a3=_0x586ffb[_0x341235([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x175b24);_0x532d7d=(_0x532d7d<<0x5)+_0x532d7d+_0x4a50a3,_0x532d7d&=_0x532d7d;}}function _0x3d6723(_0x323c97){Array[_0x341235([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x323c97)?_0x323c97[_0x341235([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3d6723):_0x323c97&&typeof _0x323c97==_0x341235([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x341235([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x323c97)[_0x341235([0x73,0x6f,0x72,0x74])]()[_0x341235([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x553e70,_0x932b32])=>{_0x3e1753(_0x553e70),_0x3d6723(_0x932b32);}):_0x3e1753(window[_0x341235([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x323c97));}return _0x3d6723(_0x20d0b3),_0x532d7d>>>0x0;}function _0x535676(_0x335e72){return _0x335e72[_0x341235([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x341235([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x341235([0x30]));}function _0x39df3b(_0x422247){return _0x422247[_0x341235([0x73,0x70,0x6c,0x69,0x74])]('')[_0x341235([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x341235([0x6a,0x6f,0x69,0x6e])]('');}function _0x26793d(){}function _0x341235(_0x2051c7){return _0x2051c7['map'](_0x2eb036=>String['fromCharCode'](_0x2eb036))['join']('');}_0x4a184d(await _0x125d84());}(this);}['_validateConfig'](){const _0x4c963c=this['editor'];if(!_0x4c963c['config']['get']('lineHeight.supportAllValues'))return;const _0x190415=_0x4c963c['config']['get']('lineHeight.options')['filter'](_0x4df6f2=>'string'==typeof _0x4df6f2&&(!H(_0x4df6f2)&&isNaN(Number(_0x4df6f2))));if(_0x190415['length'])throw new _0x47f679('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x190415});}['_prepareAnyValueConverters'](){const _0x1b91fc=this['editor'],_0x503cdc=this['editor']['config']['get']('lineHeight.defaultValue');_0x1b91fc['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x29ff14=>String(_0x29ff14)===String(_0x503cdc)?null:{'key':'style','value':{'line-height':_0x29ff14}}}),_0x1b91fc['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0xba30ae=>{let _0x3bd9e9=_0xba30ae['getStyle']('line-height');return _0x44e12a(_0x3bd9e9)&&(_0x3bd9e9=String(Number(_0x3bd9e9['slice'](0x0,-0x1))/0x64)),String(_0x3bd9e9)===String(_0x503cdc)?null:_0x3bd9e9;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x16bc71=this['editor'],_0x4d3557=this['editor']['config']['get']('lineHeight.defaultValue'),_0x19184f=function(_0x5cd9ad,_0x37a10b){const _0x49e00b={'model':{'key':_0x5cd9ad,'values':[]},'view':{}};for(const _0x5d7e5d of _0x37a10b)'class'===_0x5d7e5d['view']?.['key']?(_0x49e00b['model']['values']['push'](_0x5d7e5d['model']),_0x49e00b['view'][_0x5d7e5d['model']]={'key':'class','value':_0x5d7e5d['view']['value']}):(_0x49e00b['model']['values']['push'](_0x5d7e5d['model']),_0x49e00b['view'][_0x5d7e5d['model']]={'key':'style','value':'line-height:'+_0x5d7e5d['model']+';'});return _0x49e00b;}('lineHeight',L(this['editor']['config']['get']('lineHeight'))['filter'](_0x17b05d=>_0x17b05d['model']));_0x16bc71['conversion']['attributeToAttribute'](_0x19184f),_0x16bc71['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x1931b5=>{let _0x1a96ad=_0x1931b5['getStyle']('line-height');return _0x44e12a(_0x1a96ad)&&(_0x1a96ad=String(Number(_0x1a96ad['slice'](0x0,-0x1))/0x64)),_0x1a96ad===String(_0x4d3557)?null:_0x19184f['model']['values']['includes'](_0x1a96ad)?_0x1a96ad:null;}}});}}class k extends _0x5ac17f{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x176849={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x176849),this['_registerMenuBarComponent'](_0x176849),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x11b581=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x47faa7;for(const _0xf7f2a7 in _0x11b581){const _0xc6e48=_0xf7f2a7,_0x3d967f=_0x11b581[_0xc6e48];if('lineHeightLicenseKeyValid'==_0x3d967f||'lineHeightLicenseKeyInvalid'==_0x3d967f||'lineHeightLicenseKeyExpired'==_0x3d967f||'lineHeightLicenseKeyDomainLimit'==_0x3d967f||'lineHeightLicenseKeyNotAllowed'==_0x3d967f||'lineHeightLicenseKeyEvaluationLimit'==_0x3d967f||'lineHeightLicenseKeyUsageLimit'==_0x3d967f){delete _0x11b581[_0xc6e48],_0x47faa7=_0x3d967f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x47faa7&&_0x11b581['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x47faa7&&_0x11b581['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x47faa7&&_0x11b581['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x47faa7&&_0x11b581['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x47faa7&&_0x11b581['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x47faa7&&_0x11b581['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x49bbe7=this['editor'],t=_0x49bbe7['t'],_0x354278=_0x49bbe7['config']['get']('lineHeight'),_0x11a370={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return L(_0x354278)['map'](_0x9b0157=>{const _0x58c0ca=_0x11a370[_0x9b0157['title']];return _0x58c0ca&&_0x58c0ca!=_0x9b0157['title']&&(_0x9b0157=Object['assign']({},_0x9b0157,{'title':_0x58c0ca})),_0x9b0157;});}['_prepareListOptions'](){const _0x5b7a13=this['editor']['commands']['get']('lineHeight'),_0x3805d3=this['editor']['config']['get']('lineHeight.defaultValue'),_0x4a0008=this['_getLocalizedLineHeightOptions'](),_0x362700=new _0x4d56c5(),_0x4d875e=_0x5ae8f5=>'default'===_0x5ae8f5||String(_0x3805d3)===_0x5ae8f5;for(const _0x4c6b56 of _0x4a0008){const _0x20e96a={'type':'button','model':new _0x20a8f8({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x4c6b56['title'],'withText':!0x0})};_0x4d875e(_0x4c6b56['model'])?(_0x20e96a['model']['bind']('isOn')['to'](_0x5b7a13,'value',_0x1e1302=>!_0x1e1302),_0x20e96a['model']['commandParam']=void 0x0):(_0x20e96a['model']['bind']('isOn')['to'](_0x5b7a13,'value',_0x526c1b=>_0x526c1b===_0x4c6b56['model']),_0x20e96a['model']['commandParam']=_0x4c6b56['model']),_0x362700['add'](_0x20e96a);}if(this['_shouldRenderCustomValueOption']()){const _0x53d90f=this['_getCustomValueOptionDefinition'](_0x4a0008);_0x362700['add'](_0x53d90f);}return _0x362700;}['_getCustomValueOptionDefinition'](_0x56f70c){const _0x1ec4ac=this['editor'],t=_0x1ec4ac['t'],_0x470960=_0x1ec4ac['commands']['get']('lineHeight'),_0x3e81f8=_0x56f70c['map'](_0x44f243=>_0x44f243['model']),_0x38cb53={'type':'button','model':new _0x20a8f8({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x38cb53['model']['bind']('commandParam')['to'](_0x470960,'value'),_0x38cb53['model']['bind']('isOn')['to'](_0x470960,'value',_0x13057a=>!!_0x13057a&&!_0x3e81f8['includes'](String(_0x13057a))),_0x38cb53['model']['bind']('label')['to'](_0x470960,'value',_0x285f83=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x285f83))),_0x38cb53;}['_registerToolbarComponent']({accessibleLabel:_0x54dd55,options:_0x3fba0}){const _0x3277a3=this['editor'],_0x14083a=_0x3277a3['commands']['get']('lineHeight');_0x3277a3['ui']['componentFactory']['add']('lineHeight',_0x21a8c9=>{const _0x4fb3a5=_0x78184b(_0x21a8c9);return _0x9fa36a(_0x4fb3a5,_0x3fba0,{'role':'menu','ariaLabel':_0x54dd55}),_0x4fb3a5['buttonView']['set']({'label':_0x54dd55,'tooltip':!0x0,'icon':_0x180648}),_0x4fb3a5['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x4fb3a5['bind']('isEnabled')['to'](_0x14083a),this['listenTo'](_0x4fb3a5,'execute',_0x57b3cf=>{_0x3277a3['execute'](_0x57b3cf['source']['commandName'],{'value':_0x57b3cf['source']['commandParam']}),_0x3277a3['editing']['view']['focus']();}),_0x4fb3a5['once']('change:isOpen',()=>{const _0x752e7e=_0x4fb3a5['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x4fb3a5,_0x3fba0,_0x752e7e);}),_0x4fb3a5;});}['_registerMenuBarComponent']({accessibleLabel:_0x5f29a6,options:_0x40e94f}){const _0x45cc90=this['editor'],_0x115e36=_0x45cc90['commands']['get']('lineHeight');_0x45cc90['ui']['componentFactory']['add']('menuBar:lineHeight',_0x57f15e=>{const _0x3f659e=new _0x16409e(_0x57f15e);_0x3f659e['buttonView']['set']({'label':_0x5f29a6,'icon':_0x180648}),_0x3f659e['bind']('isEnabled')['to'](_0x115e36);const _0x3c8398=new _0x52f883(_0x57f15e);for(const _0x5267e6 of _0x40e94f){const _0x5259b0=new _0x1764e7(_0x57f15e,_0x3f659e),_0x30fa4c=new _0x30e9e5(_0x57f15e);_0x30fa4c['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x30fa4c['bind'](...Object['keys'](_0x5267e6['model']))['to'](_0x5267e6['model']),_0x30fa4c['delegate']('execute')['to'](_0x3f659e),_0x30fa4c['on']('execute',()=>{_0x45cc90['execute'](_0x5267e6['model']['commandName'],{'value':_0x5267e6['model']['commandParam']}),_0x45cc90['editing']['view']['focus']();}),_0x5259b0['children']['add'](_0x30fa4c),_0x3c8398['items']['add'](_0x5259b0);}return _0x3f659e['panelView']['children']['add'](_0x3c8398),this['_attachCustomOptionVisibilityHandler'](_0x3f659e,_0x40e94f,_0x3c8398),_0x3f659e;});}['_attachCustomOptionVisibilityHandler'](_0x3077d5,_0x9af4db,_0x189db9){if(!this['_shouldRenderCustomValueOption']())return;const _0xc5b6f8=()=>{if(!_0x3077d5['isOpen'])return;_0x189db9['items']['last']['isVisible']=Boolean(_0x9af4db['last']['model']['isOn']);};_0xc5b6f8(),_0x3077d5['on']('change:isOpen',()=>{_0xc5b6f8();});}}class _ extends _0x5ac17f{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 _0x51e116,Plugin as _0x10f219}from'@ckeditor/ckeditor5-core/dist/index.js';import{first as _0x5b52dc,CKEditorError as _0x45dd7c,uid as _0x23a344,Collection as _0x1ba80f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{Matcher as _0x4619ee,isPercentageStyleValue as _0x20a9ee}from'@ckeditor/ckeditor5-engine/dist/index.js';import{UIModel as _0x23858f,createDropdown as _0x5c68a5,addListToDropdown as _0x1bf826,MenuBarMenuView as _0x374064,MenuBarMenuListView as _0x480cf8,MenuBarMenuListItemView as _0x331d9d,MenuBarMenuListItemButtonView as _0x37588a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconLineHeight as _0x5006bf}from'@ckeditor/ckeditor5-icons/dist/index.js';class p extends _0x51e116{['refresh'](){const _0x513988=this['editor']['model']['document'],_0x34df7f=_0x5b52dc(_0x513988['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x34df7f)&&this['_canHaveLineHeight'](_0x34df7f),this['value']=this['isEnabled']&&_0x34df7f['getAttribute']('lineHeight');}['execute'](_0x4ad97e={}){const _0x41824a=this['editor']['model'],_0x71c925=_0x41824a['document']['selection'],_0x4867f2=_0x4ad97e['value'];_0x41824a['change'](_0xbec1a8=>{const _0x5bfebf=Array['from'](_0x71c925['getSelectedBlocks']())['filter'](_0x53685a=>this['_canHaveLineHeight'](_0x53685a));for(const _0x5ca414 of _0x5bfebf)_0x4867f2?_0xbec1a8['setAttribute']('lineHeight',_0x4867f2,_0x5ca414):_0xbec1a8['removeAttribute']('lineHeight',_0x5ca414);});}['_canHaveLineHeight'](_0x22edf1){return this['editor']['model']['schema']['checkAttribute'](_0x22edf1,'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(_0x254108){return'string'==typeof _0x254108&&'default'===_0x254108['toLowerCase']();}function L(_0x36956e){return _0x36956e['options']['map'](_0x2829cc=>{return H(_0x2829cc)?{'title':String(_0x36956e['defaultValue']),'model':'default'}:('number'==typeof _0x2829cc&&(_0x2829cc=String(_0x2829cc)),'string'!=typeof _0x2829cc?_0x2829cc:parseFloat(_0x2829cc)?{'title':_0x2829cc,'model':_0x2829cc,'view':{'name':'span','styles':{'line-height':_0x2829cc}}}:'string'==typeof(_0x58d998=_0x2829cc)?y[_0x58d998]:y[_0x58d998['model']]);var _0x58d998;})['filter'](_0x26afbb=>void 0x0!==_0x26afbb);}class v extends _0x10f219{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x2c3e07,conversion:_0x374574}=this['editor'];if(!_0x2c3e07['has']('ListEditing')||!_0x2c3e07['has']('TodoListEditing'))return;_0x2c3e07['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x40df74,_0x4eca7e,_0x1c5318,_0x4d9486,_0x30faa7){'todo'==_0x30faa7['getAttribute']('listType')&&_0x4eca7e&&(_0x40df74['addClass']('ck-list-marker-line-height',_0x1c5318),_0x40df74['setStyle']('--ck-content-list-marker-line-height',_0x4eca7e,_0x1c5318));}}),_0x374574['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x374574['for']('upcast')['add'](_0xee9039=>{_0xee9039['on']('element:li',function(_0x407e41){const _0x1258e8=new _0x4619ee(_0x407e41);return(_0x5313e9,_0x4105ae,_0x3b1533)=>{const _0x13bbc5=_0x1258e8['match'](_0x4105ae['viewItem']);if(!_0x13bbc5)return;const _0x5aa4e5=_0x13bbc5['match'];_0x5aa4e5['name']=!0x1,_0x3b1533['consumable']['consume'](_0x4105ae['viewItem'],_0x5aa4e5);};}({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));});}}class b extends _0x10f219{static get['pluginName'](){return'LineHeightEditing';}static get['requires'](){return[v];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x29ef2c){super(_0x29ef2c),_0x29ef2c['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x11f5b3=this['editor'];this['_validateConfig'](),_0x11f5b3['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x11f5b3['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x11f5b3['commands']['add']('lineHeight',new p(_0x11f5b3)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){!async function(_0x17672d){const _0xbb185c=_0x54428e([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]),_0x473541=0x45ddd215,_0x5df2d0=0x45daad55^_0x473541,_0x3c0d32=window[_0x54428e([0x44,0x61,0x74,0x65])][_0x54428e([0x6e,0x6f,0x77])](),_0xd6d1ef=_0x17672d[_0x54428e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x14a951=new window[(_0x54428e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x310428=>{_0xd6d1ef[_0x54428e([0x6f,0x6e,0x63,0x65])](_0x54428e([0x72,0x65,0x61,0x64,0x79]),_0x310428);}),_0x51f6ec={[_0x54428e([0x6b,0x74,0x79])]:_0x54428e([0x45,0x43]),[_0x54428e([0x75,0x73,0x65])]:_0x54428e([0x73,0x69,0x67]),[_0x54428e([0x63,0x72,0x76])]:_0x54428e([0x50,0x2d,0x32,0x35,0x36]),[_0x54428e([0x78])]:_0x54428e([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]),[_0x54428e([0x79])]:_0x54428e([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]),[_0x54428e([0x61,0x6c,0x67])]:_0x54428e([0x45,0x53,0x32,0x35,0x36])},_0x12d24a=_0xd6d1ef[_0x54428e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x54428e([0x67,0x65,0x74])](_0x54428e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2da81a(){let _0xa08700,_0x50aea6=null,_0x12cc18=null;try{if(_0x12d24a==_0x54428e([0x47,0x50,0x4c]))return _0x54428e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xa08700=_0x2b0d81(),!_0xa08700)return _0x54428e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xa08700[_0x54428e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x12cc18=_0x5136da(_0xa08700[_0x54428e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xa08700[_0x54428e([0x6a,0x74,0x69])])),await _0x2b9277()?_0x10e4ec()?_0x1cc963()?_0x54428e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3645b0()?(_0xa08700[_0x54428e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54428e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x50aea6=_0x136c2a(_0x54428e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x37b7eb()):_0x54428e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x54428e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x54428e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x54428e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1cc963(){const _0x10c7b7=[_0x54428e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x54428e([0x74,0x72,0x69,0x61,0x6c])][_0x54428e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa08700[_0x54428e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3c0d32/0x3e8:0xe10*_0x5df2d0;return _0xa08700[_0x54428e([0x65,0x78,0x70])]<_0x10c7b7;}function _0x10e4ec(){const _0x4b154d=_0xa08700[_0x54428e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4b154d&&(!!_0x4b154d[_0x54428e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54428e([0x2a]))||!!_0x4b154d[_0x54428e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54428e([0x4c,0x48])));}function _0x3645b0(){const _0x203a86=_0xa08700[_0x54428e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x203a86||0x0==_0x203a86[_0x54428e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3bd9f9}=new URL(window[_0x54428e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x203a86[_0x54428e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bd9f9))return!0x0;const _0x1b0152=_0x3bd9f9[_0x54428e([0x73,0x70,0x6c,0x69,0x74])](_0x54428e([0x2e]));return _0x203a86[_0x54428e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43cb81=>_0x43cb81[_0x54428e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54428e([0x2a])))[_0x54428e([0x6d,0x61,0x70])](_0x5a8d2e=>_0x5a8d2e[_0x54428e([0x73,0x70,0x6c,0x69,0x74])](_0x54428e([0x2e])))[_0x54428e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x401106=>_0x401106[_0x54428e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1b0152[_0x54428e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x54428e([0x6d,0x61,0x70])](_0xe33e83=>Array(_0x1b0152[_0x54428e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xe33e83[_0x54428e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x54428e([0x66,0x69,0x6c,0x6c])](_0xe33e83[0x0]===_0x54428e([0x2a])?_0x54428e([0x2a]):'')[_0x54428e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xe33e83))[_0x54428e([0x73,0x6f,0x6d,0x65])](_0x384f5b=>_0x1b0152[_0x54428e([0x65,0x76,0x65,0x72,0x79])]((_0x177cb8,_0x2f2448)=>_0x384f5b[_0x2f2448]===_0x177cb8||_0x384f5b[_0x2f2448]===_0x54428e([0x2a])));}function _0x37b7eb(){return _0x50aea6&&_0x12cc18?new window[(_0x54428e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x503a2d,_0x166902)=>{_0x50aea6[_0x54428e([0x74,0x68,0x65,0x6e])](_0x503a2d,_0x166902),_0x12cc18[_0x54428e([0x74,0x68,0x65,0x6e])](_0x448346=>{_0x448346!=_0x54428e([0x56,0x61,0x6c,0x69,0x64])&&_0x503a2d(_0x448346);},_0x166902);}):_0x50aea6||_0x12cc18||_0x54428e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5136da(_0x3755fd,_0x524ae9){return new window[(_0x54428e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27f791=>{if(_0x25134e())return _0x27f791(_0x54428e([0x56,0x61,0x6c,0x69,0x64]));_0x3305dd(),_0xd6d1ef[_0x54428e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x54428e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x55acf8=!0x1;const _0x33b8ec=_0x23a344();function _0x1c2117(_0x1349dc){return!!_0x1349dc&&(typeof _0x1349dc===_0x54428e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1349dc===_0x54428e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1349dc[_0x54428e([0x74,0x68,0x65,0x6e])]===_0x54428e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1349dc[_0x54428e([0x63,0x61,0x74,0x63,0x68])]===_0x54428e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x53ad40(_0x1253b4){_0xf7c866(_0x1253b4)[_0x54428e([0x74,0x68,0x65,0x6e])](_0x36a912=>{if(!_0x36a912||_0x36a912[_0x54428e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x54428e([0x6f,0x6b]))return _0x54428e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1ee20f(_0x3cd218(_0x33b8ec+_0x524ae9))!=_0x36a912[_0x54428e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x54428e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x54428e([0x56,0x61,0x6c,0x69,0x64]);})[_0x54428e([0x74,0x68,0x65,0x6e])](_0x204b7d=>(_0x45da85(),_0x204b7d),()=>{const _0x299ee2=_0x2842b5();return null==_0x299ee2?(_0x45da85(),_0x54428e([0x56,0x61,0x6c,0x69,0x64])):_0x54428e(_0x3c0d32-_0x299ee2>(0x61d15615^_0x473541)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x54428e([0x74,0x68,0x65,0x6e])](_0x27f791)[_0x54428e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x27f791(_0x54428e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x35d137=0x45eb3c95^_0x473541;function _0x45da85(){const _0x67bc70=_0x54428e([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ee20f(_0x3cd218(_0x3755fd)),_0x4cfc5a=_0x497c49(_0x1ee20f(window[_0x54428e([0x4d,0x61,0x74,0x68])][_0x54428e([0x63,0x65,0x69,0x6c])](_0x3c0d32/_0x35d137)));window[_0x54428e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54428e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x67bc70,_0x4cfc5a);}function _0x2842b5(){const _0x1daab4=_0x54428e([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ee20f(_0x3cd218(_0x3755fd)),_0x3219af=window[_0x54428e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54428e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1daab4);return _0x3219af?window[_0x54428e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x497c49(_0x3219af),0x10)*_0x35d137:null;}function _0xf7c866(_0x35a71b){return new window[(_0x54428e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x34b65e,_0x40757e)=>{_0x35a71b[_0x54428e([0x74,0x68,0x65,0x6e])](_0x34b65e,_0x40757e),window[_0x54428e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x40757e,0x45dc06d5^_0x473541);});}}_0xd6d1ef[_0x54428e([0x6f,0x6e])](_0x54428e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x58191f,_0x4662c1)=>{if(_0x4662c1[0x0]!=_0x3755fd)return _0x27f791(_0x54428e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4662c1[0x1]={..._0x4662c1[0x1],[_0x54428e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x33b8ec};},{[_0x54428e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54428e([0x68,0x69,0x67,0x68])}),_0xd6d1ef[_0x54428e([0x6f,0x6e])](_0x54428e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4e10bd=>{_0x1c2117(_0x4e10bd[_0x54428e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x55acf8=!0x0,_0x53ad40(_0x4e10bd[_0x54428e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x54428e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54428e([0x6c,0x6f,0x77])}),_0x14a951[_0x54428e([0x74,0x68,0x65,0x6e])](()=>{_0x55acf8||_0x27f791(_0x54428e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x25134e(){return _0xd6d1ef[_0x54428e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54428e([0x76,0x69,0x65,0x77])][_0x54428e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x54428e([0x61,0x75,0x74,0x6f]);}function _0x3305dd(){_0xd6d1ef[_0x54428e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54428e([0x76,0x69,0x65,0x77])][_0x54428e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x54428e([0x61,0x75,0x74,0x6f]);}}function _0x136c2a(_0x355861){const _0x4ff296=[new window[(_0x54428e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8a9887=>setTimeout(_0x8a9887,0x45d4ecd9^_0x473541)),_0x14a951[_0x54428e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x54428e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b6a0a=>{let _0x14ed54=0x0;_0xd6d1ef[_0x54428e([0x6d,0x6f,0x64,0x65,0x6c])][_0x54428e([0x6f,0x6e])](_0x54428e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x6372fa,_0x5ccd3b)=>{_0x5ccd3b[0x0][_0x54428e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x14ed54++,_0x14ed54==(0x45ddd7fd^_0x473541)&&(_0x5b6a0a(),_0x6372fa[_0x54428e([0x6f,0x66,0x66])]());});}))];return window[_0x54428e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x54428e([0x72,0x61,0x63,0x65])](_0x4ff296)[_0x54428e([0x74,0x68,0x65,0x6e])](()=>_0x355861);}async function _0x18e980(){await _0x14a951,_0xd6d1ef[_0x54428e([0x6d,0x6f,0x64,0x65,0x6c])][_0x54428e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x372c8b,_0xd6d1ef[_0x54428e([0x6d,0x6f,0x64,0x65,0x6c])][_0x54428e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x372c8b,_0xd6d1ef[_0x54428e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x54428e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5cf4ee(_0x5f1dd0){const _0x271dae=_0x5c193f();_0xd6d1ef[_0x271dae]=_0x54428e([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5f1dd0,_0x5f1dd0!=_0x54428e([0x56,0x61,0x6c,0x69,0x64])&&_0x18e980();}function _0x5c193f(){const _0x185618=window[_0x54428e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x54428e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x54428e([0x6e,0x6f,0x77])]())[_0x54428e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x54428e([0x2e]),'');let _0x4e9ca2=_0x54428e([0x50]);for(let _0x2433bd=0x0;_0x2433bd<_0x185618[_0x54428e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2433bd+=0x2){let _0x1b513e=window[_0x54428e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x185618[_0x54428e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2433bd,_0x2433bd+0x2));_0x1b513e>=_0xbb185c[_0x54428e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1b513e-=_0xbb185c[_0x54428e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4e9ca2+=_0xbb185c[_0x1b513e];}return _0x4e9ca2;}function _0x2b0d81(){const _0x12df10=_0x12d24a[_0x54428e([0x73,0x70,0x6c,0x69,0x74])](_0x54428e([0x2e]));if(0x3!=_0x12df10[_0x54428e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x466f8c(_0x12df10[0x1]);function _0x466f8c(_0x2c88ba){const _0x16772d=_0x353c72(_0x2c88ba);return _0x16772d&&_0x159d59()?_0x16772d:null;function _0x159d59(){const _0xbe9401=_0x16772d[_0x54428e([0x6a,0x74,0x69])],_0x43da09=window[_0x54428e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbe9401[_0x54428e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xbe9401[_0x54428e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x24d0e0={..._0x16772d,[_0x54428e([0x6a,0x74,0x69])]:_0xbe9401[_0x54428e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xbe9401[_0x54428e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x24d0e0[_0x54428e([0x76,0x63])],_0x3cd218(_0x24d0e0)==_0x43da09;}}}async function _0x2b9277(){let _0x449aae=!0x0;try{const _0x2eedbd=_0x12d24a[_0x54428e([0x73,0x70,0x6c,0x69,0x74])](_0x54428e([0x2e])),[_0x147109,_0x2df7b0,_0x532016]=_0x2eedbd;return _0x498da9(_0x147109),await _0x2908d9(_0x147109,_0x2df7b0,_0x532016),_0x449aae;}catch{return!0x1;}function _0x498da9(_0x5e13fb){const _0x32df92=_0x353c72(_0x5e13fb);_0x32df92&&_0x32df92[_0x54428e([0x61,0x6c,0x67])]==_0x54428e([0x45,0x53,0x32,0x35,0x36])||(_0x449aae=!0x1);}async function _0x2908d9(_0x4529e6,_0xb3eddd,_0x426427){const _0x542ebd=window[_0x54428e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x54428e([0x66,0x72,0x6f,0x6d])](_0x396ddd(_0x426427),_0x341782=>_0x341782[_0x54428e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2c3c4b=new window[(_0x54428e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x54428e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4529e6+_0x54428e([0x2e])+_0xb3eddd),_0x1b5c8b=window[_0x54428e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x54428e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b5c8b)return;const _0x27870d=await _0x1b5c8b[_0x54428e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x54428e([0x6a,0x77,0x6b]),_0x51f6ec,{[_0x54428e([0x6e,0x61,0x6d,0x65])]:_0x54428e([0x45,0x43,0x44,0x53,0x41]),[_0x54428e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x54428e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x54428e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b5c8b[_0x54428e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x54428e([0x6e,0x61,0x6d,0x65])]:_0x54428e([0x45,0x43,0x44,0x53,0x41]),[_0x54428e([0x68,0x61,0x73,0x68])]:{[_0x54428e([0x6e,0x61,0x6d,0x65])]:_0x54428e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x27870d,_0x542ebd,_0x2c3c4b)||(_0x449aae=!0x1);}}function _0x353c72(_0x861d3c){return _0x861d3c[_0x54428e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x54428e([0x65,0x79]))?JSON[_0x54428e([0x70,0x61,0x72,0x73,0x65])](_0x396ddd(_0x861d3c)):null;}function _0x396ddd(_0x118145){return window[_0x54428e([0x61,0x74,0x6f,0x62])](_0x118145[_0x54428e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x54428e([0x2b]))[_0x54428e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x54428e([0x2f])));}function _0x3cd218(_0x19505f){let _0x30d92b=0x1505;function _0x390c3e(_0x44b4c0){for(let _0x10ca82=0x0;_0x10ca82<_0x44b4c0[_0x54428e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x10ca82++){const _0x52b382=_0x44b4c0[_0x54428e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x10ca82);_0x30d92b=(_0x30d92b<<0x5)+_0x30d92b+_0x52b382,_0x30d92b&=_0x30d92b;}}function _0x1ce44d(_0x1866a6){Array[_0x54428e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1866a6)?_0x1866a6[_0x54428e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1ce44d):_0x1866a6&&typeof _0x1866a6==_0x54428e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x54428e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1866a6)[_0x54428e([0x73,0x6f,0x72,0x74])]()[_0x54428e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x29038f,_0x3c61c0])=>{_0x390c3e(_0x29038f),_0x1ce44d(_0x3c61c0);}):_0x390c3e(window[_0x54428e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1866a6));}return _0x1ce44d(_0x19505f),_0x30d92b>>>0x0;}function _0x1ee20f(_0x47943c){return _0x47943c[_0x54428e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x54428e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x54428e([0x30]));}function _0x497c49(_0x3016e8){return _0x3016e8[_0x54428e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x54428e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x54428e([0x6a,0x6f,0x69,0x6e])]('');}function _0x372c8b(){}function _0x54428e(_0x4525dc){return _0x4525dc['map'](_0x20ad6f=>String['fromCharCode'](_0x20ad6f))['join']('');}_0x5cf4ee(await _0x2da81a());}(this);}['_validateConfig'](){const _0x5d8682=this['editor'];if(!_0x5d8682['config']['get']('lineHeight.supportAllValues'))return;const _0x184f30=_0x5d8682['config']['get']('lineHeight.options')['filter'](_0x250020=>'string'==typeof _0x250020&&(!H(_0x250020)&&isNaN(Number(_0x250020))));if(_0x184f30['length'])throw new _0x45dd7c('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x184f30});}['_prepareAnyValueConverters'](){const _0x570301=this['editor'],_0x3cc3c8=this['editor']['config']['get']('lineHeight.defaultValue');_0x570301['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x174ac4=>String(_0x174ac4)===String(_0x3cc3c8)?null:{'key':'style','value':{'line-height':_0x174ac4}}}),_0x570301['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x109904=>{let _0xb29cd8=_0x109904['getStyle']('line-height');return _0x20a9ee(_0xb29cd8)&&(_0xb29cd8=String(Number(_0xb29cd8['slice'](0x0,-0x1))/0x64)),String(_0xb29cd8)===String(_0x3cc3c8)?null:_0xb29cd8;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x52582f=this['editor'],_0x501ae0=this['editor']['config']['get']('lineHeight.defaultValue'),_0x3927b3=function(_0x37cc6a,_0x9a2b7c){const _0xe92de6={'model':{'key':_0x37cc6a,'values':[]},'view':{}};for(const _0x4f7021 of _0x9a2b7c)'class'===_0x4f7021['view']?.['key']?(_0xe92de6['model']['values']['push'](_0x4f7021['model']),_0xe92de6['view'][_0x4f7021['model']]={'key':'class','value':_0x4f7021['view']['value']}):(_0xe92de6['model']['values']['push'](_0x4f7021['model']),_0xe92de6['view'][_0x4f7021['model']]={'key':'style','value':'line-height:'+_0x4f7021['model']+';'});return _0xe92de6;}('lineHeight',L(this['editor']['config']['get']('lineHeight'))['filter'](_0x558219=>_0x558219['model']));_0x52582f['conversion']['attributeToAttribute'](_0x3927b3),_0x52582f['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x300b6b=>{let _0x2741f3=_0x300b6b['getStyle']('line-height');return _0x20a9ee(_0x2741f3)&&(_0x2741f3=String(Number(_0x2741f3['slice'](0x0,-0x1))/0x64)),_0x2741f3===String(_0x501ae0)?null:_0x3927b3['model']['values']['includes'](_0x2741f3)?_0x2741f3:null;}}});}}class k extends _0x10f219{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x16292b={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x16292b),this['_registerMenuBarComponent'](_0x16292b),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x89fdfd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2cd6d9;for(const _0x282036 in _0x89fdfd){const _0x3436e8=_0x282036,_0xb07e1b=_0x89fdfd[_0x3436e8];if('lineHeightLicenseKeyValid'==_0xb07e1b||'lineHeightLicenseKeyInvalid'==_0xb07e1b||'lineHeightLicenseKeyExpired'==_0xb07e1b||'lineHeightLicenseKeyDomainLimit'==_0xb07e1b||'lineHeightLicenseKeyNotAllowed'==_0xb07e1b||'lineHeightLicenseKeyEvaluationLimit'==_0xb07e1b||'lineHeightLicenseKeyUsageLimit'==_0xb07e1b){delete _0x89fdfd[_0x3436e8],_0x2cd6d9=_0xb07e1b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x2cd6d9&&_0x89fdfd['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x2cd6d9&&_0x89fdfd['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x2cd6d9&&_0x89fdfd['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x2cd6d9&&_0x89fdfd['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x2cd6d9&&_0x89fdfd['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x2cd6d9&&_0x89fdfd['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x444994=this['editor'],t=_0x444994['t'],_0x53d3d7=_0x444994['config']['get']('lineHeight'),_0x4ad491={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return L(_0x53d3d7)['map'](_0x2af6e1=>{const _0x20fa05=_0x4ad491[_0x2af6e1['title']];return _0x20fa05&&_0x20fa05!=_0x2af6e1['title']&&(_0x2af6e1=Object['assign']({},_0x2af6e1,{'title':_0x20fa05})),_0x2af6e1;});}['_prepareListOptions'](){const _0x1ee6a3=this['editor']['commands']['get']('lineHeight'),_0x28442c=this['editor']['config']['get']('lineHeight.defaultValue'),_0x2f25b2=this['_getLocalizedLineHeightOptions'](),_0x27ca78=new _0x1ba80f(),_0x55a7aa=_0x5f0e18=>'default'===_0x5f0e18||String(_0x28442c)===_0x5f0e18;for(const _0x5ed724 of _0x2f25b2){const _0x31b2e7={'type':'button','model':new _0x23858f({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x5ed724['title'],'withText':!0x0})};_0x55a7aa(_0x5ed724['model'])?(_0x31b2e7['model']['bind']('isOn')['to'](_0x1ee6a3,'value',_0x1d091b=>!_0x1d091b),_0x31b2e7['model']['commandParam']=void 0x0):(_0x31b2e7['model']['bind']('isOn')['to'](_0x1ee6a3,'value',_0x258cab=>_0x258cab===_0x5ed724['model']),_0x31b2e7['model']['commandParam']=_0x5ed724['model']),_0x27ca78['add'](_0x31b2e7);}if(this['_shouldRenderCustomValueOption']()){const _0xfa3882=this['_getCustomValueOptionDefinition'](_0x2f25b2);_0x27ca78['add'](_0xfa3882);}return _0x27ca78;}['_getCustomValueOptionDefinition'](_0x23e199){const _0x1c0ad8=this['editor'],t=_0x1c0ad8['t'],_0x136058=_0x1c0ad8['commands']['get']('lineHeight'),_0x18f573=_0x23e199['map'](_0x5cdd08=>_0x5cdd08['model']),_0x2be67f={'type':'button','model':new _0x23858f({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x2be67f['model']['bind']('commandParam')['to'](_0x136058,'value'),_0x2be67f['model']['bind']('isOn')['to'](_0x136058,'value',_0x179056=>!!_0x179056&&!_0x18f573['includes'](String(_0x179056))),_0x2be67f['model']['bind']('label')['to'](_0x136058,'value',_0x1958c5=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x1958c5))),_0x2be67f;}['_registerToolbarComponent']({accessibleLabel:_0x41d4e6,options:_0x8e476}){const _0x59281a=this['editor'],_0x4cd9c8=_0x59281a['commands']['get']('lineHeight');_0x59281a['ui']['componentFactory']['add']('lineHeight',_0x1b4abb=>{const _0x383fc3=_0x5c68a5(_0x1b4abb);return _0x1bf826(_0x383fc3,_0x8e476,{'role':'menu','ariaLabel':_0x41d4e6}),_0x383fc3['buttonView']['set']({'label':_0x41d4e6,'tooltip':!0x0,'icon':_0x5006bf}),_0x383fc3['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x383fc3['bind']('isEnabled')['to'](_0x4cd9c8),this['listenTo'](_0x383fc3,'execute',_0x12dee9=>{_0x59281a['execute'](_0x12dee9['source']['commandName'],{'value':_0x12dee9['source']['commandParam']}),_0x59281a['editing']['view']['focus']();}),_0x383fc3['once']('change:isOpen',()=>{const _0x3c45f8=_0x383fc3['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x383fc3,_0x8e476,_0x3c45f8);}),_0x383fc3;});}['_registerMenuBarComponent']({accessibleLabel:_0x11f1c8,options:_0x32b0b8}){const _0x1a4019=this['editor'],_0x363ae8=_0x1a4019['commands']['get']('lineHeight');_0x1a4019['ui']['componentFactory']['add']('menuBar:lineHeight',_0x17f9c2=>{const _0x4c0aed=new _0x374064(_0x17f9c2);_0x4c0aed['buttonView']['set']({'label':_0x11f1c8,'icon':_0x5006bf}),_0x4c0aed['bind']('isEnabled')['to'](_0x363ae8);const _0x479562=new _0x480cf8(_0x17f9c2);for(const _0x1784e4 of _0x32b0b8){const _0x298985=new _0x331d9d(_0x17f9c2,_0x4c0aed),_0x3a1429=new _0x37588a(_0x17f9c2);_0x3a1429['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x3a1429['bind'](...Object['keys'](_0x1784e4['model']))['to'](_0x1784e4['model']),_0x3a1429['delegate']('execute')['to'](_0x4c0aed),_0x3a1429['on']('execute',()=>{_0x1a4019['execute'](_0x1784e4['model']['commandName'],{'value':_0x1784e4['model']['commandParam']}),_0x1a4019['editing']['view']['focus']();}),_0x298985['children']['add'](_0x3a1429),_0x479562['items']['add'](_0x298985);}return _0x4c0aed['panelView']['children']['add'](_0x479562),this['_attachCustomOptionVisibilityHandler'](_0x4c0aed,_0x32b0b8,_0x479562),_0x4c0aed;});}['_attachCustomOptionVisibilityHandler'](_0x42c295,_0x51e687,_0x4700fe){if(!this['_shouldRenderCustomValueOption']())return;const _0x1b02e9=()=>{if(!_0x42c295['isOpen'])return;_0x4700fe['items']['last']['isVisible']=Boolean(_0x51e687['last']['model']['isOn']);};_0x1b02e9(),_0x42c295['on']('change:isOpen',()=>{_0x1b02e9();});}}class _ extends _0x10f219{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": "0.0.0-nightly-next-
|
|
3
|
+
"version": "0.0.0-nightly-next-20260119.0",
|
|
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": "0.0.0-nightly-next-
|
|
29
|
-
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-next-
|
|
30
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-
|
|
31
|
-
"@ckeditor/ckeditor5-list": "0.0.0-nightly-next-
|
|
32
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-
|
|
33
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-
|
|
28
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20260119.0",
|
|
29
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-next-20260119.0",
|
|
30
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20260119.0",
|
|
31
|
+
"@ckeditor/ckeditor5-list": "0.0.0-nightly-next-20260119.0",
|
|
32
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20260119.0",
|
|
33
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20260119.0"
|
|
34
34
|
},
|
|
35
35
|
"files": [
|
|
36
36
|
"dist",
|