@ckeditor/ckeditor5-line-height 48.8.1-alpha.1 → 48.8.1-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x3edffc,Plugin as _0x32022e}from'@ckeditor/ckeditor5-core/dist/index.js';import{first as _0x2c0681,CKEditorError as _0x1aad4e,uid as _0x56979b,Collection as _0xd54a8e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{Matcher as _0x59e325,isPercentageStyleValue as _0x46a620}from'@ckeditor/ckeditor5-engine/dist/index.js';import{UIModel as _0x5c5ed3,createDropdown as _0x3f2f82,addListToDropdown as _0x5dc732,MenuBarMenuView as _0x72b5f1,MenuBarMenuListView as _0x33d005,MenuBarMenuListItemView as _0x5728af,MenuBarMenuListItemButtonView as _0x4f8b34}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconLineHeight as _0x18cf27}from'@ckeditor/ckeditor5-icons/dist/index.js';class LineHeightCommand extends _0x3edffc{['refresh'](){const _0x5c5130=this['editor']['model']['document'],_0x1a7f11=_0x2c0681(_0x5c5130['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x1a7f11)&&this['_canHaveLineHeight'](_0x1a7f11),this['value']=this['isEnabled']&&_0x1a7f11['getAttribute']('lineHeight');}['execute'](_0x1b0571={}){const _0x5b0472=this['editor']['model'],_0x2d57cb=_0x5b0472['document']['selection'],_0x56cfa5=_0x1b0571['value'];_0x5b0472['change'](_0x4ce435=>{const _0x5d9cf3=Array['from'](_0x2d57cb['getSelectedBlocks']())['filter'](_0x118c76=>this['_canHaveLineHeight'](_0x118c76));for(const _0x23a220 of _0x5d9cf3)_0x56cfa5?_0x4ce435['setAttribute']('lineHeight',_0x56cfa5,_0x23a220):_0x4ce435['removeAttribute']('lineHeight',_0x23a220);});}['_canHaveLineHeight'](_0x45d8da){return this['editor']['model']['schema']['checkAttribute'](_0x45d8da,'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(_0x47b366){return'string'==typeof _0x47b366&&'default'===_0x47b366['toLowerCase']();}function L(_0x26d581){return _0x26d581['options']['map'](_0x2fe104=>{return H(_0x2fe104)?{'title':String(_0x26d581['defaultValue']),'model':'default'}:('number'==typeof _0x2fe104&&(_0x2fe104=String(_0x2fe104)),'string'!=typeof _0x2fe104?_0x2fe104:parseFloat(_0x2fe104)?{'title':_0x2fe104,'model':_0x2fe104,'view':{'name':'span','styles':{'line-height':_0x2fe104}}}:'string'==typeof(_0x57baa2=_0x2fe104)?p[_0x57baa2]:p[_0x57baa2['model']]);var _0x57baa2;})['filter'](_0x4a7221=>void 0x0!==_0x4a7221);}class LineHeightTodoListIntegration extends _0x32022e{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x51c6d3,conversion:_0x38294b}=this['editor'];if(!_0x51c6d3['has']('ListEditing')||!_0x51c6d3['has']('TodoListEditing'))return;_0x51c6d3['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x1a3a5c,_0x3b9326,_0x1e6930,_0x2aaad3,_0x28bf76){'todo'==_0x28bf76['getAttribute']('listType')&&_0x3b9326&&(_0x1a3a5c['addClass']('ck-list-marker-line-height',_0x1e6930),_0x1a3a5c['setStyle']('--ck-content-list-marker-line-height',_0x3b9326,_0x1e6930));}}),_0x38294b['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x38294b['for']('upcast')['add'](_0x565abd=>{_0x565abd['on']('element:li',function(_0x2e5dbd){const _0x33fcab=new _0x59e325(_0x2e5dbd);return(_0x20aae3,_0x4bba89,_0x5b0eaa)=>{const _0x2c035c=_0x33fcab['match'](_0x4bba89['viewItem']);if(!_0x2c035c)return;const _0x4e8290=_0x2c035c['match'];_0x4e8290['name']=!0x1,_0x5b0eaa['consumable']['consume'](_0x4bba89['viewItem'],_0x4e8290);};}({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));});}}class LineHeightEditing extends _0x32022e{static get['pluginName'](){return'LineHeightEditing';}static get['requires'](){return[LineHeightTodoListIntegration];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2dc036){super(_0x2dc036),_0x2dc036['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0xdf83c6=this['editor'];this['_validateConfig'](),_0xdf83c6['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0xdf83c6['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0xdf83c6['commands']['add']('lineHeight',new LineHeightCommand(_0xdf83c6)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){!async function(_0x3155d2){const _0x54f469=_0x485341([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]),_0xcc822a=0x45ddd215,_0x1547a6=0x45da582d^_0xcc822a,_0x803622=window[_0x485341([0x44,0x61,0x74,0x65])][_0x485341([0x6e,0x6f,0x77])](),_0x5e90ea=_0x3155d2[_0x485341([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3691e6=new window[(_0x485341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29d761=>{_0x5e90ea[_0x485341([0x6f,0x6e,0x63,0x65])](_0x485341([0x72,0x65,0x61,0x64,0x79]),_0x29d761);}),_0x2b4037={[_0x485341([0x6b,0x74,0x79])]:_0x485341([0x45,0x43]),[_0x485341([0x75,0x73,0x65])]:_0x485341([0x73,0x69,0x67]),[_0x485341([0x63,0x72,0x76])]:_0x485341([0x50,0x2d,0x32,0x35,0x36]),[_0x485341([0x78])]:_0x485341([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]),[_0x485341([0x79])]:_0x485341([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]),[_0x485341([0x61,0x6c,0x67])]:_0x485341([0x45,0x53,0x32,0x35,0x36])},_0x2d6b75=_0x5e90ea[_0x485341([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x485341([0x67,0x65,0x74])](_0x485341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4282d9(){let _0x4ab1c4,_0x5c9112=null,_0x3553eb=null;try{if(_0x2d6b75==_0x485341([0x47,0x50,0x4c]))return _0x485341([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4ab1c4=_0xe6efd(),!_0x4ab1c4)return _0x485341([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4ab1c4[_0x485341([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3553eb=_0x1c144f(_0x4ab1c4[_0x485341([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4ab1c4[_0x485341([0x6a,0x74,0x69])])),await _0x763130()?_0x4221dd()?_0x57f2a5()?_0x485341([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1d795a()?(_0x4ab1c4[_0x485341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x485341([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c9112=_0x5c9941(_0x485341([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2c6e28()):_0x485341([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x485341([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x485341([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x485341([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x57f2a5(){const _0x2eb2ed=[_0x485341([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x485341([0x74,0x72,0x69,0x61,0x6c])][_0x485341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ab1c4[_0x485341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x803622/0x3e8:0xe10*_0x1547a6;return _0x4ab1c4[_0x485341([0x65,0x78,0x70])]<_0x2eb2ed;}function _0x4221dd(){const _0x166fce=_0x4ab1c4[_0x485341([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x166fce&&(!!_0x166fce[_0x485341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x485341([0x2a]))||!!_0x166fce[_0x485341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x485341([0x4c,0x48])));}function _0x1d795a(){const _0x27034e=_0x4ab1c4[_0x485341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x27034e||0x0==_0x27034e[_0x485341([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x27f591}=new URL(window[_0x485341([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x27034e[_0x485341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27f591))return!0x0;const _0x264db1=_0x27f591[_0x485341([0x73,0x70,0x6c,0x69,0x74])](_0x485341([0x2e]));return _0x27034e[_0x485341([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x468c75=>_0x468c75[_0x485341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x485341([0x2a])))[_0x485341([0x6d,0x61,0x70])](_0x247992=>_0x247992[_0x485341([0x73,0x70,0x6c,0x69,0x74])](_0x485341([0x2e])))[_0x485341([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x503091=>_0x503091[_0x485341([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x264db1[_0x485341([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x485341([0x6d,0x61,0x70])](_0x3adefc=>Array(_0x264db1[_0x485341([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3adefc[_0x485341([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x485341([0x66,0x69,0x6c,0x6c])](_0x3adefc[0x0]===_0x485341([0x2a])?_0x485341([0x2a]):'')[_0x485341([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3adefc))[_0x485341([0x73,0x6f,0x6d,0x65])](_0x232a38=>_0x264db1[_0x485341([0x65,0x76,0x65,0x72,0x79])]((_0xf66265,_0xf92cde)=>_0x232a38[_0xf92cde]===_0xf66265||_0x232a38[_0xf92cde]===_0x485341([0x2a])));}function _0x2c6e28(){return _0x5c9112&&_0x3553eb?new window[(_0x485341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x216ee0,_0x3868e6)=>{_0x5c9112[_0x485341([0x74,0x68,0x65,0x6e])](_0x216ee0,_0x3868e6),_0x3553eb[_0x485341([0x74,0x68,0x65,0x6e])](_0x195ce6=>{_0x195ce6!=_0x485341([0x56,0x61,0x6c,0x69,0x64])&&_0x216ee0(_0x195ce6);},_0x3868e6);}):_0x5c9112||_0x3553eb||_0x485341([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1c144f(_0x7839dc,_0x714355){return new window[(_0x485341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e2d11=>{if(_0x3ac93a())return _0x2e2d11(_0x485341([0x56,0x61,0x6c,0x69,0x64]));_0x36cef0(),_0x5e90ea[_0x485341([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x485341([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5737a7=!0x1;const _0xd6bcd0=_0x56979b();function _0x1c4654(_0x5ccae3){return!!_0x5ccae3&&(typeof _0x5ccae3===_0x485341([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5ccae3===_0x485341([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5ccae3[_0x485341([0x74,0x68,0x65,0x6e])]===_0x485341([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5ccae3[_0x485341([0x63,0x61,0x74,0x63,0x68])]===_0x485341([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x180ca5(_0x195c24){_0x40adb6(_0x195c24)[_0x485341([0x74,0x68,0x65,0x6e])](_0x37c533=>{if(!_0x37c533||_0x37c533[_0x485341([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x485341([0x6f,0x6b]))return _0x485341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4110ba(_0x498e98(_0xd6bcd0+_0x714355))!=_0x37c533[_0x485341([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x485341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x485341([0x56,0x61,0x6c,0x69,0x64]);})[_0x485341([0x74,0x68,0x65,0x6e])](_0x35a649=>(_0x4e63d8(),_0x35a649),()=>{const _0x24ddf5=_0x17c8d7();return null==_0x24ddf5?(_0x4e63d8(),_0x485341([0x56,0x61,0x6c,0x69,0x64])):_0x485341(_0x803622-_0x24ddf5>(0x61d15615^_0xcc822a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x485341([0x74,0x68,0x65,0x6e])](_0x2e2d11)[_0x485341([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2e2d11(_0x485341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x10b153=0x45eb3c95^_0xcc822a;function _0x4e63d8(){const _0x3f77b2=_0x485341([0x6c,0x6c,0x63,0x74,0x2d])+_0x4110ba(_0x498e98(_0x7839dc)),_0x252e2b=_0x31084c(_0x4110ba(window[_0x485341([0x4d,0x61,0x74,0x68])][_0x485341([0x63,0x65,0x69,0x6c])](_0x803622/_0x10b153)));window[_0x485341([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x485341([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f77b2,_0x252e2b);}function _0x17c8d7(){const _0x3ff3bc=_0x485341([0x6c,0x6c,0x63,0x74,0x2d])+_0x4110ba(_0x498e98(_0x7839dc)),_0x2be095=window[_0x485341([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x485341([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ff3bc);return _0x2be095?window[_0x485341([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31084c(_0x2be095),0x10)*_0x10b153:null;}function _0x40adb6(_0x5af2ba){return new window[(_0x485341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a87d3,_0x118871)=>{_0x5af2ba[_0x485341([0x74,0x68,0x65,0x6e])](_0x3a87d3,_0x118871),window[_0x485341([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x118871,0x45dc06d5^_0xcc822a);});}}_0x5e90ea[_0x485341([0x6f,0x6e])](_0x485341([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x146179,_0x4ea3c7)=>{if(_0x4ea3c7[0x0]!=_0x7839dc)return _0x2e2d11(_0x485341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4ea3c7[0x1]={..._0x4ea3c7[0x1],[_0x485341([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xd6bcd0};},{[_0x485341([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x485341([0x68,0x69,0x67,0x68])}),_0x5e90ea[_0x485341([0x6f,0x6e])](_0x485341([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xc51de5=>{_0x1c4654(_0xc51de5[_0x485341([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5737a7=!0x0,_0x180ca5(_0xc51de5[_0x485341([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x485341([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x485341([0x6c,0x6f,0x77])}),_0x3691e6[_0x485341([0x74,0x68,0x65,0x6e])](()=>{_0x5737a7||_0x2e2d11(_0x485341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3ac93a(){return _0x5e90ea[_0x485341([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x485341([0x76,0x69,0x65,0x77])][_0x485341([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x485341([0x61,0x75,0x74,0x6f]);}function _0x36cef0(){_0x5e90ea[_0x485341([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x485341([0x76,0x69,0x65,0x77])][_0x485341([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x485341([0x61,0x75,0x74,0x6f]);}}function _0x5c9941(_0x54af98){const _0x2bef95=[new window[(_0x485341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x337913=>setTimeout(_0x337913,0x45d4ecd9^_0xcc822a)),_0x3691e6[_0x485341([0x74,0x68,0x65,0x6e])](()=>new window[(_0x485341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x581d7e=>{let _0x3f92e9=0x0;_0x5e90ea[_0x485341([0x6d,0x6f,0x64,0x65,0x6c])][_0x485341([0x6f,0x6e])](_0x485341([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x21639c,_0x19ee5d)=>{_0x19ee5d[0x0][_0x485341([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3f92e9++,_0x3f92e9==(0x45ddd7fd^_0xcc822a)&&(_0x581d7e(),_0x21639c[_0x485341([0x6f,0x66,0x66])]());});}))];return window[_0x485341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x485341([0x72,0x61,0x63,0x65])](_0x2bef95)[_0x485341([0x74,0x68,0x65,0x6e])](()=>_0x54af98);}async function _0x477f7b(){await _0x3691e6,_0x5e90ea[_0x485341([0x6d,0x6f,0x64,0x65,0x6c])][_0x485341([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x59f9dd,_0x5e90ea[_0x485341([0x6d,0x6f,0x64,0x65,0x6c])][_0x485341([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x59f9dd,_0x5e90ea[_0x485341([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x485341([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x35d2b2(_0x533cd8){const _0x22a363=_0x197b71();_0x5e90ea[_0x22a363]=_0x485341([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x533cd8,_0x533cd8!=_0x485341([0x56,0x61,0x6c,0x69,0x64])&&_0x477f7b();}function _0x197b71(){const _0x2e4f33=window[_0x485341([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x485341([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x485341([0x6e,0x6f,0x77])]())[_0x485341([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x485341([0x2e]),'');let _0x11b025=_0x485341([0x50]);for(let _0x1a76e2=0x0;_0x1a76e2<_0x2e4f33[_0x485341([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a76e2+=0x2){let _0x2d95b0=window[_0x485341([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e4f33[_0x485341([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a76e2,_0x1a76e2+0x2));_0x2d95b0>=_0x54f469[_0x485341([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d95b0-=_0x54f469[_0x485341([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x11b025+=_0x54f469[_0x2d95b0];}return _0x11b025;}function _0xe6efd(){const _0x4ea0f2=_0x2d6b75[_0x485341([0x73,0x70,0x6c,0x69,0x74])](_0x485341([0x2e]));if(0x3!=_0x4ea0f2[_0x485341([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2e7bd4(_0x4ea0f2[0x1]);function _0x2e7bd4(_0x3b4b90){const _0x22c45d=_0x552de7(_0x3b4b90);return _0x22c45d&&_0x235cb5()?_0x22c45d:null;function _0x235cb5(){const _0x925c68=_0x22c45d[_0x485341([0x6a,0x74,0x69])],_0x8a5e45=window[_0x485341([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x925c68[_0x485341([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x925c68[_0x485341([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xe3d5e={..._0x22c45d,[_0x485341([0x6a,0x74,0x69])]:_0x925c68[_0x485341([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x925c68[_0x485341([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xe3d5e[_0x485341([0x76,0x63])],_0x498e98(_0xe3d5e)==_0x8a5e45;}}}async function _0x763130(){let _0x4b95bd=!0x0;try{const _0x50f011=_0x2d6b75[_0x485341([0x73,0x70,0x6c,0x69,0x74])](_0x485341([0x2e])),[_0x5c6aaf,_0x7a015d,_0x56e0a2]=_0x50f011;return _0x4b580a(_0x5c6aaf),await _0x1f75ad(_0x5c6aaf,_0x7a015d,_0x56e0a2),_0x4b95bd;}catch{return!0x1;}function _0x4b580a(_0x36f05d){const _0x68d2be=_0x552de7(_0x36f05d);_0x68d2be&&_0x68d2be[_0x485341([0x61,0x6c,0x67])]==_0x485341([0x45,0x53,0x32,0x35,0x36])||(_0x4b95bd=!0x1);}async function _0x1f75ad(_0x33bf14,_0x5b0250,_0x3c70cb){const _0xf85df2=window[_0x485341([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x485341([0x66,0x72,0x6f,0x6d])](_0x37849c(_0x3c70cb),_0xcffb00=>_0xcffb00[_0x485341([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4e0dab=new window[(_0x485341([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x485341([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x33bf14+_0x485341([0x2e])+_0x5b0250),_0x23ae83=window[_0x485341([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x485341([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x23ae83)return;const _0x384729=await _0x23ae83[_0x485341([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x485341([0x6a,0x77,0x6b]),_0x2b4037,{[_0x485341([0x6e,0x61,0x6d,0x65])]:_0x485341([0x45,0x43,0x44,0x53,0x41]),[_0x485341([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x485341([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x485341([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x23ae83[_0x485341([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x485341([0x6e,0x61,0x6d,0x65])]:_0x485341([0x45,0x43,0x44,0x53,0x41]),[_0x485341([0x68,0x61,0x73,0x68])]:{[_0x485341([0x6e,0x61,0x6d,0x65])]:_0x485341([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x384729,_0xf85df2,_0x4e0dab)||(_0x4b95bd=!0x1);}}function _0x552de7(_0x10c3de){return _0x10c3de[_0x485341([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x485341([0x65,0x79]))?JSON[_0x485341([0x70,0x61,0x72,0x73,0x65])](_0x37849c(_0x10c3de)):null;}function _0x37849c(_0x17070e){return window[_0x485341([0x61,0x74,0x6f,0x62])](_0x17070e[_0x485341([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x485341([0x2b]))[_0x485341([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x485341([0x2f])));}function _0x498e98(_0x239bb9){let _0x5b4bf0=0x1505;function _0x1265d3(_0x2407fd){for(let _0x23a10b=0x0;_0x23a10b<_0x2407fd[_0x485341([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23a10b++){const _0x37a33f=_0x2407fd[_0x485341([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x23a10b);_0x5b4bf0=(_0x5b4bf0<<0x5)+_0x5b4bf0+_0x37a33f,_0x5b4bf0&=_0x5b4bf0;}}function _0x146ad7(_0x1bcae5){Array[_0x485341([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1bcae5)?_0x1bcae5[_0x485341([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x146ad7):_0x1bcae5&&typeof _0x1bcae5==_0x485341([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x485341([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1bcae5)[_0x485341([0x73,0x6f,0x72,0x74])]()[_0x485341([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x446e53,_0x135214])=>{_0x1265d3(_0x446e53),_0x146ad7(_0x135214);}):_0x1265d3(window[_0x485341([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1bcae5));}return _0x146ad7(_0x239bb9),_0x5b4bf0>>>0x0;}function _0x4110ba(_0xb4b678){return _0xb4b678[_0x485341([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x485341([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x485341([0x30]));}function _0x31084c(_0x51593d){return _0x51593d[_0x485341([0x73,0x70,0x6c,0x69,0x74])]('')[_0x485341([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x485341([0x6a,0x6f,0x69,0x6e])]('');}function _0x59f9dd(){}function _0x485341(_0x5059a3){return _0x5059a3['map'](_0x45d5ef=>String['fromCharCode'](_0x45d5ef))['join']('');}_0x35d2b2(await _0x4282d9());}(this);}['_validateConfig'](){const _0x1cc3cb=this['editor'];if(!_0x1cc3cb['config']['get']('lineHeight.supportAllValues'))return;const _0x3d7846=_0x1cc3cb['config']['get']('lineHeight.options')['filter'](_0x240b36=>'string'==typeof _0x240b36&&(!H(_0x240b36)&&isNaN(Number(_0x240b36))));if(_0x3d7846['length'])throw new _0x1aad4e('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x3d7846});}['_prepareAnyValueConverters'](){const _0x1be985=this['editor'],_0x211fd4=this['editor']['config']['get']('lineHeight.defaultValue');_0x1be985['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0xe06f01=>String(_0xe06f01)===String(_0x211fd4)?null:{'key':'style','value':{'line-height':_0xe06f01}}}),_0x1be985['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x1feb26=>{let _0x1c1fee=_0x1feb26['getStyle']('line-height');return _0x46a620(_0x1c1fee)&&(_0x1c1fee=String(Number(_0x1c1fee['slice'](0x0,-0x1))/0x64)),String(_0x1c1fee)===String(_0x211fd4)?null:_0x1c1fee;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x261f72=this['editor'],_0x228c96=this['editor']['config']['get']('lineHeight.defaultValue'),_0x4b6ec7=function(_0x2622de,_0x187d61){const _0x57bf90={'model':{'key':_0x2622de,'values':[]},'view':{}};for(const _0x557504 of _0x187d61)'class'===_0x557504['view']?.['key']?(_0x57bf90['model']['values']['push'](_0x557504['model']),_0x57bf90['view'][_0x557504['model']]={'key':'class','value':_0x557504['view']['value']}):(_0x57bf90['model']['values']['push'](_0x557504['model']),_0x57bf90['view'][_0x557504['model']]={'key':'style','value':'line-height:'+_0x557504['model']+';'});return _0x57bf90;}('lineHeight',L(this['editor']['config']['get']('lineHeight'))['filter'](_0x1734fb=>_0x1734fb['model']));_0x261f72['conversion']['attributeToAttribute'](_0x4b6ec7),_0x261f72['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x2c08a9=>{let _0x45568d=_0x2c08a9['getStyle']('line-height');return _0x46a620(_0x45568d)&&(_0x45568d=String(Number(_0x45568d['slice'](0x0,-0x1))/0x64)),_0x45568d===String(_0x228c96)?null:_0x4b6ec7['model']['values']['includes'](_0x45568d)?_0x45568d:null;}}});}}class LineHeightUI extends _0x32022e{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5eaba6={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x5eaba6),this['_registerMenuBarComponent'](_0x5eaba6),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5b8945=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x57f728;for(const _0x419a3a in _0x5b8945){const _0x411eb3=_0x419a3a,_0x4fd204=_0x5b8945[_0x411eb3];if('lineHeightLicenseKeyValid'==_0x4fd204||'lineHeightLicenseKeyInvalid'==_0x4fd204||'lineHeightLicenseKeyExpired'==_0x4fd204||'lineHeightLicenseKeyDomainLimit'==_0x4fd204||'lineHeightLicenseKeyNotAllowed'==_0x4fd204||'lineHeightLicenseKeyEvaluationLimit'==_0x4fd204||'lineHeightLicenseKeyUsageLimit'==_0x4fd204){delete _0x5b8945[_0x411eb3],_0x57f728=_0x4fd204,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x57f728&&_0x5b8945['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x57f728&&_0x5b8945['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x57f728&&_0x5b8945['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x57f728&&_0x5b8945['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x57f728&&_0x5b8945['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x57f728&&_0x5b8945['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x4e3b6e=this['editor'],t=_0x4e3b6e['t'],_0x4541e8=_0x4e3b6e['config']['get']('lineHeight'),_0x5789b7={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return L(_0x4541e8)['map'](_0x2ca75b=>{const _0x345278=_0x5789b7[_0x2ca75b['title']];return _0x345278&&_0x345278!=_0x2ca75b['title']&&(_0x2ca75b=Object['assign']({},_0x2ca75b,{'title':_0x345278})),_0x2ca75b;});}['_prepareListOptions'](){const _0x79131a=this['editor']['commands']['get']('lineHeight'),_0x1615b2=this['editor']['config']['get']('lineHeight.defaultValue'),_0x517b9b=this['_getLocalizedLineHeightOptions'](),_0x41ca6f=new _0xd54a8e(),_0x28dd8d=_0xee69cd=>'default'===_0xee69cd||String(_0x1615b2)===_0xee69cd;for(const _0x4afbde of _0x517b9b){const _0x3cd43d={'type':'button','model':new _0x5c5ed3({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x4afbde['title'],'withText':!0x0})};_0x28dd8d(_0x4afbde['model'])?(_0x3cd43d['model']['bind']('isOn')['to'](_0x79131a,'value',_0x2e6045=>!_0x2e6045),_0x3cd43d['model']['commandParam']=void 0x0):(_0x3cd43d['model']['bind']('isOn')['to'](_0x79131a,'value',_0xe92f2e=>_0xe92f2e===_0x4afbde['model']),_0x3cd43d['model']['commandParam']=_0x4afbde['model']),_0x41ca6f['add'](_0x3cd43d);}if(this['_shouldRenderCustomValueOption']()){const _0x51d075=this['_getCustomValueOptionDefinition'](_0x517b9b);_0x41ca6f['add'](_0x51d075);}return _0x41ca6f;}['_getCustomValueOptionDefinition'](_0x213b22){const _0x2f7417=this['editor'],t=_0x2f7417['t'],_0x91f04=_0x2f7417['commands']['get']('lineHeight'),_0x5d54a1=_0x213b22['map'](_0x27ec82=>_0x27ec82['model']),_0x4f6cd3={'type':'button','model':new _0x5c5ed3({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x4f6cd3['model']['bind']('commandParam')['to'](_0x91f04,'value'),_0x4f6cd3['model']['bind']('isOn')['to'](_0x91f04,'value',_0x5d2895=>!!_0x5d2895&&!_0x5d54a1['includes'](String(_0x5d2895))),_0x4f6cd3['model']['bind']('label')['to'](_0x91f04,'value',_0x132115=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x132115))),_0x4f6cd3;}['_registerToolbarComponent']({accessibleLabel:_0x47add1,options:_0x59d266}){const _0x54fff4=this['editor'],_0x1999f4=_0x54fff4['commands']['get']('lineHeight');_0x54fff4['ui']['componentFactory']['add']('lineHeight',_0x24672a=>{const _0x2ebfcc=_0x3f2f82(_0x24672a);return _0x5dc732(_0x2ebfcc,_0x59d266,{'role':'menu','ariaLabel':_0x47add1}),_0x2ebfcc['buttonView']['set']({'label':_0x47add1,'tooltip':!0x0,'icon':_0x18cf27}),_0x2ebfcc['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x2ebfcc['bind']('isEnabled')['to'](_0x1999f4),this['listenTo'](_0x2ebfcc,'execute',_0x31801f=>{_0x54fff4['execute'](_0x31801f['source']['commandName'],{'value':_0x31801f['source']['commandParam']}),_0x54fff4['editing']['view']['focus']();}),_0x2ebfcc['once']('change:isOpen',()=>{const _0x1be91d=_0x2ebfcc['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x2ebfcc,_0x59d266,_0x1be91d);}),_0x2ebfcc;});}['_registerMenuBarComponent']({accessibleLabel:_0x543654,options:_0x503f03}){const _0x4a50d2=this['editor'],_0x46f348=_0x4a50d2['commands']['get']('lineHeight');_0x4a50d2['ui']['componentFactory']['add']('menuBar:lineHeight',_0x5c2455=>{const _0x351384=new _0x72b5f1(_0x5c2455);_0x351384['buttonView']['set']({'label':_0x543654,'icon':_0x18cf27}),_0x351384['bind']('isEnabled')['to'](_0x46f348);const _0x3176f5=new _0x33d005(_0x5c2455);for(const _0xb143c4 of _0x503f03){const _0x38eaee=new _0x5728af(_0x5c2455,_0x351384),_0x2ab511=new _0x4f8b34(_0x5c2455);_0x2ab511['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x2ab511['bind'](...Object['keys'](_0xb143c4['model']))['to'](_0xb143c4['model']),_0x2ab511['delegate']('execute')['to'](_0x351384),_0x2ab511['on']('execute',()=>{_0x4a50d2['execute'](_0xb143c4['model']['commandName'],{'value':_0xb143c4['model']['commandParam']}),_0x4a50d2['editing']['view']['focus']();}),_0x38eaee['children']['add'](_0x2ab511),_0x3176f5['items']['add'](_0x38eaee);}return _0x351384['panelView']['children']['add'](_0x3176f5),this['_attachCustomOptionVisibilityHandler'](_0x351384,_0x503f03,_0x3176f5),_0x351384;});}['_attachCustomOptionVisibilityHandler'](_0x66a8c5,_0x39f43c,_0x5aa506){if(!this['_shouldRenderCustomValueOption']())return;const _0x70cbb5=()=>{if(!_0x66a8c5['isOpen'])return;_0x5aa506['items']['last']['isVisible']=Boolean(_0x39f43c['last']['model']['isOn']);};_0x70cbb5(),_0x66a8c5['on']('change:isOpen',()=>{_0x70cbb5();});}}class LineHeight extends _0x32022e{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 _0x1ceba0,Plugin as _0x1573f9}from'@ckeditor/ckeditor5-core/dist/index.js';import{first as _0x5f53b6,CKEditorError as _0x29c435,uid as _0x1f307f,Collection as _0x3720b2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{Matcher as _0x33eedf,isPercentageStyleValue as _0x12d4fe}from'@ckeditor/ckeditor5-engine/dist/index.js';import{UIModel as _0x3bb288,createDropdown as _0x48d53c,addListToDropdown as _0x15cc1c,MenuBarMenuView as _0xf98b4b,MenuBarMenuListView as _0x52510f,MenuBarMenuListItemView as _0x2d6bb5,MenuBarMenuListItemButtonView as _0x271040}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconLineHeight as _0x2b7563}from'@ckeditor/ckeditor5-icons/dist/index.js';class LineHeightCommand extends _0x1ceba0{['refresh'](){const _0x127efb=this['editor']['model']['document'],_0x24b247=_0x5f53b6(_0x127efb['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x24b247)&&this['_canHaveLineHeight'](_0x24b247),this['value']=this['isEnabled']&&_0x24b247['getAttribute']('lineHeight');}['execute'](_0x46e2ce={}){const _0xb19fb5=this['editor']['model'],_0xad408b=_0xb19fb5['document']['selection'],_0x104a29=_0x46e2ce['value'];_0xb19fb5['change'](_0x4e6926=>{const _0x5d5cd3=Array['from'](_0xad408b['getSelectedBlocks']())['filter'](_0x440a4b=>this['_canHaveLineHeight'](_0x440a4b));for(const _0x2efc75 of _0x5d5cd3)_0x104a29?_0x4e6926['setAttribute']('lineHeight',_0x104a29,_0x2efc75):_0x4e6926['removeAttribute']('lineHeight',_0x2efc75);});}['_canHaveLineHeight'](_0x58e6f8){return this['editor']['model']['schema']['checkAttribute'](_0x58e6f8,'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(_0x76ef36){return'string'==typeof _0x76ef36&&'default'===_0x76ef36['toLowerCase']();}function L(_0x19c2a8){return _0x19c2a8['options']['map'](_0x2c4633=>{return H(_0x2c4633)?{'title':String(_0x19c2a8['defaultValue']),'model':'default'}:('number'==typeof _0x2c4633&&(_0x2c4633=String(_0x2c4633)),'string'!=typeof _0x2c4633?_0x2c4633:parseFloat(_0x2c4633)?{'title':_0x2c4633,'model':_0x2c4633,'view':{'name':'span','styles':{'line-height':_0x2c4633}}}:'string'==typeof(_0x36ba78=_0x2c4633)?p[_0x36ba78]:p[_0x36ba78['model']]);var _0x36ba78;})['filter'](_0x53f3ab=>void 0x0!==_0x53f3ab);}class LineHeightTodoListIntegration extends _0x1573f9{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x5b3e3e,conversion:_0x283418}=this['editor'];if(!_0x5b3e3e['has']('ListEditing')||!_0x5b3e3e['has']('TodoListEditing'))return;_0x5b3e3e['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0xeb71e3,_0xea8699,_0x1998ed,_0x1f76e8,_0x5e64b4){'todo'==_0x5e64b4['getAttribute']('listType')&&_0xea8699&&(_0xeb71e3['addClass']('ck-list-marker-line-height',_0x1998ed),_0xeb71e3['setStyle']('--ck-content-list-marker-line-height',_0xea8699,_0x1998ed));}}),_0x283418['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x283418['for']('upcast')['add'](_0xd1a261=>{_0xd1a261['on']('element:li',function(_0x1cec85){const _0x5adaa6=new _0x33eedf(_0x1cec85);return(_0x699398,_0x5449fb,_0x564b60)=>{const _0x6b3e71=_0x5adaa6['match'](_0x5449fb['viewItem']);if(!_0x6b3e71)return;const _0x1f48c7=_0x6b3e71['match'];_0x1f48c7['name']=!0x1,_0x564b60['consumable']['consume'](_0x5449fb['viewItem'],_0x1f48c7);};}({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));});}}class LineHeightEditing extends _0x1573f9{static get['pluginName'](){return'LineHeightEditing';}static get['requires'](){return[LineHeightTodoListIntegration];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10d775){super(_0x10d775),_0x10d775['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x11b638=this['editor'];this['_validateConfig'](),_0x11b638['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x11b638['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x11b638['commands']['add']('lineHeight',new LineHeightCommand(_0x11b638)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){!async function(_0x50216f){const _0x4387a0=_0x28f718([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]),_0x367089=0x45ddd215,_0xe9db4b=0x45da5845^_0x367089,_0x283f80=window[_0x28f718([0x44,0x61,0x74,0x65])][_0x28f718([0x6e,0x6f,0x77])](),_0x113b91=_0x50216f[_0x28f718([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2c1369=new window[(_0x28f718([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x250690=>{_0x113b91[_0x28f718([0x6f,0x6e,0x63,0x65])](_0x28f718([0x72,0x65,0x61,0x64,0x79]),_0x250690);}),_0x3f91b8={[_0x28f718([0x6b,0x74,0x79])]:_0x28f718([0x45,0x43]),[_0x28f718([0x75,0x73,0x65])]:_0x28f718([0x73,0x69,0x67]),[_0x28f718([0x63,0x72,0x76])]:_0x28f718([0x50,0x2d,0x32,0x35,0x36]),[_0x28f718([0x78])]:_0x28f718([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]),[_0x28f718([0x79])]:_0x28f718([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]),[_0x28f718([0x61,0x6c,0x67])]:_0x28f718([0x45,0x53,0x32,0x35,0x36])},_0x28837d=_0x113b91[_0x28f718([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x28f718([0x67,0x65,0x74])](_0x28f718([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3eb765(){let _0x3570a3,_0x2a6edd=null,_0x3da15b=null;try{if(_0x28837d==_0x28f718([0x47,0x50,0x4c]))return _0x28f718([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3570a3=_0xdc0f8b(),!_0x3570a3)return _0x28f718([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3570a3[_0x28f718([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3da15b=_0x2267c2(_0x3570a3[_0x28f718([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3570a3[_0x28f718([0x6a,0x74,0x69])])),await _0x48258c()?_0x560221()?_0x212cb0()?_0x28f718([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xdcfb0e()?(_0x3570a3[_0x28f718([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x28f718([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2a6edd=_0x4370ec(_0x28f718([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x393f1a()):_0x28f718([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x28f718([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x28f718([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x28f718([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x212cb0(){const _0x64e701=[_0x28f718([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x28f718([0x74,0x72,0x69,0x61,0x6c])][_0x28f718([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3570a3[_0x28f718([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x283f80/0x3e8:0xe10*_0xe9db4b;return _0x3570a3[_0x28f718([0x65,0x78,0x70])]<_0x64e701;}function _0x560221(){const _0x55412e=_0x3570a3[_0x28f718([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x55412e&&(!!_0x55412e[_0x28f718([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28f718([0x2a]))||!!_0x55412e[_0x28f718([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28f718([0x4c,0x48])));}function _0xdcfb0e(){const _0x1d3082=_0x3570a3[_0x28f718([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1d3082||0x0==_0x1d3082[_0x28f718([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4a3d31}=new URL(window[_0x28f718([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1d3082[_0x28f718([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a3d31))return!0x0;const _0x53719d=_0x4a3d31[_0x28f718([0x73,0x70,0x6c,0x69,0x74])](_0x28f718([0x2e]));return _0x1d3082[_0x28f718([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x107240=>_0x107240[_0x28f718([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28f718([0x2a])))[_0x28f718([0x6d,0x61,0x70])](_0x278c9d=>_0x278c9d[_0x28f718([0x73,0x70,0x6c,0x69,0x74])](_0x28f718([0x2e])))[_0x28f718([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54b8b1=>_0x54b8b1[_0x28f718([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x53719d[_0x28f718([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x28f718([0x6d,0x61,0x70])](_0x416c2f=>Array(_0x53719d[_0x28f718([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x416c2f[_0x28f718([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x28f718([0x66,0x69,0x6c,0x6c])](_0x416c2f[0x0]===_0x28f718([0x2a])?_0x28f718([0x2a]):'')[_0x28f718([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x416c2f))[_0x28f718([0x73,0x6f,0x6d,0x65])](_0x58a2ce=>_0x53719d[_0x28f718([0x65,0x76,0x65,0x72,0x79])]((_0x36e55b,_0x9b27d1)=>_0x58a2ce[_0x9b27d1]===_0x36e55b||_0x58a2ce[_0x9b27d1]===_0x28f718([0x2a])));}function _0x393f1a(){return _0x2a6edd&&_0x3da15b?new window[(_0x28f718([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x206151,_0x2911b2)=>{_0x2a6edd[_0x28f718([0x74,0x68,0x65,0x6e])](_0x206151,_0x2911b2),_0x3da15b[_0x28f718([0x74,0x68,0x65,0x6e])](_0x4e6c55=>{_0x4e6c55!=_0x28f718([0x56,0x61,0x6c,0x69,0x64])&&_0x206151(_0x4e6c55);},_0x2911b2);}):_0x2a6edd||_0x3da15b||_0x28f718([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2267c2(_0xebd1f,_0x18468d){return new window[(_0x28f718([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50da15=>{if(_0x1fe9ff())return _0x50da15(_0x28f718([0x56,0x61,0x6c,0x69,0x64]));_0x57c30c(),_0x113b91[_0x28f718([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x28f718([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x55686a=!0x1;const _0x57d34f=_0x1f307f();function _0x46ccad(_0x58c76f){return!!_0x58c76f&&(typeof _0x58c76f===_0x28f718([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x58c76f===_0x28f718([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x58c76f[_0x28f718([0x74,0x68,0x65,0x6e])]===_0x28f718([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x58c76f[_0x28f718([0x63,0x61,0x74,0x63,0x68])]===_0x28f718([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5b33d8(_0x6da23d){_0x21e867(_0x6da23d)[_0x28f718([0x74,0x68,0x65,0x6e])](_0x43c26f=>{if(!_0x43c26f||_0x43c26f[_0x28f718([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x28f718([0x6f,0x6b]))return _0x28f718([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4a2cf9(_0x47e234(_0x57d34f+_0x18468d))!=_0x43c26f[_0x28f718([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x28f718([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x28f718([0x56,0x61,0x6c,0x69,0x64]);})[_0x28f718([0x74,0x68,0x65,0x6e])](_0x3c86a1=>(_0x837b8d(),_0x3c86a1),()=>{const _0x5e2448=_0x860188();return null==_0x5e2448?(_0x837b8d(),_0x28f718([0x56,0x61,0x6c,0x69,0x64])):_0x28f718(_0x283f80-_0x5e2448>(0x61d15615^_0x367089)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x28f718([0x74,0x68,0x65,0x6e])](_0x50da15)[_0x28f718([0x63,0x61,0x74,0x63,0x68])](()=>{_0x50da15(_0x28f718([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x49a807=0x45eb3c95^_0x367089;function _0x837b8d(){const _0x35bd79=_0x28f718([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a2cf9(_0x47e234(_0xebd1f)),_0x2ab881=_0x36d81b(_0x4a2cf9(window[_0x28f718([0x4d,0x61,0x74,0x68])][_0x28f718([0x63,0x65,0x69,0x6c])](_0x283f80/_0x49a807)));window[_0x28f718([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x28f718([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x35bd79,_0x2ab881);}function _0x860188(){const _0x49b1dd=_0x28f718([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a2cf9(_0x47e234(_0xebd1f)),_0xe4446c=window[_0x28f718([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x28f718([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x49b1dd);return _0xe4446c?window[_0x28f718([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36d81b(_0xe4446c),0x10)*_0x49a807:null;}function _0x21e867(_0xda5f00){return new window[(_0x28f718([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x34a214,_0x31141c)=>{_0xda5f00[_0x28f718([0x74,0x68,0x65,0x6e])](_0x34a214,_0x31141c),window[_0x28f718([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x31141c,0x45dc06d5^_0x367089);});}}_0x113b91[_0x28f718([0x6f,0x6e])](_0x28f718([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x228dae,_0x22f7b2)=>{if(_0x22f7b2[0x0]!=_0xebd1f)return _0x50da15(_0x28f718([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x22f7b2[0x1]={..._0x22f7b2[0x1],[_0x28f718([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x57d34f};},{[_0x28f718([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x28f718([0x68,0x69,0x67,0x68])}),_0x113b91[_0x28f718([0x6f,0x6e])](_0x28f718([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xecdc6b=>{_0x46ccad(_0xecdc6b[_0x28f718([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x55686a=!0x0,_0x5b33d8(_0xecdc6b[_0x28f718([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x28f718([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x28f718([0x6c,0x6f,0x77])}),_0x2c1369[_0x28f718([0x74,0x68,0x65,0x6e])](()=>{_0x55686a||_0x50da15(_0x28f718([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1fe9ff(){return _0x113b91[_0x28f718([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28f718([0x76,0x69,0x65,0x77])][_0x28f718([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x28f718([0x61,0x75,0x74,0x6f]);}function _0x57c30c(){_0x113b91[_0x28f718([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28f718([0x76,0x69,0x65,0x77])][_0x28f718([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x28f718([0x61,0x75,0x74,0x6f]);}}function _0x4370ec(_0x30f16a){const _0x2a6607=[new window[(_0x28f718([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4de8fa=>setTimeout(_0x4de8fa,0x45d4ecd9^_0x367089)),_0x2c1369[_0x28f718([0x74,0x68,0x65,0x6e])](()=>new window[(_0x28f718([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd8cba6=>{let _0x31ad4d=0x0;_0x113b91[_0x28f718([0x6d,0x6f,0x64,0x65,0x6c])][_0x28f718([0x6f,0x6e])](_0x28f718([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4c144a,_0x28a2c5)=>{_0x28a2c5[0x0][_0x28f718([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x31ad4d++,_0x31ad4d==(0x45ddd7fd^_0x367089)&&(_0xd8cba6(),_0x4c144a[_0x28f718([0x6f,0x66,0x66])]());});}))];return window[_0x28f718([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x28f718([0x72,0x61,0x63,0x65])](_0x2a6607)[_0x28f718([0x74,0x68,0x65,0x6e])](()=>_0x30f16a);}async function _0x40a3ac(){await _0x2c1369,_0x113b91[_0x28f718([0x6d,0x6f,0x64,0x65,0x6c])][_0x28f718([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x104850,_0x113b91[_0x28f718([0x6d,0x6f,0x64,0x65,0x6c])][_0x28f718([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x104850,_0x113b91[_0x28f718([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x28f718([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x550e13(_0x209d12){const _0xe87d9d=_0x8b50ca();_0x113b91[_0xe87d9d]=_0x28f718([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x209d12,_0x209d12!=_0x28f718([0x56,0x61,0x6c,0x69,0x64])&&_0x40a3ac();}function _0x8b50ca(){const _0x372366=window[_0x28f718([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x28f718([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x28f718([0x6e,0x6f,0x77])]())[_0x28f718([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x28f718([0x2e]),'');let _0x1bfdbd=_0x28f718([0x50]);for(let _0x5b6cf4=0x0;_0x5b6cf4<_0x372366[_0x28f718([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b6cf4+=0x2){let _0x45613e=window[_0x28f718([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x372366[_0x28f718([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b6cf4,_0x5b6cf4+0x2));_0x45613e>=_0x4387a0[_0x28f718([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45613e-=_0x4387a0[_0x28f718([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1bfdbd+=_0x4387a0[_0x45613e];}return _0x1bfdbd;}function _0xdc0f8b(){const _0x305f57=_0x28837d[_0x28f718([0x73,0x70,0x6c,0x69,0x74])](_0x28f718([0x2e]));if(0x3!=_0x305f57[_0x28f718([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5aa6e5(_0x305f57[0x1]);function _0x5aa6e5(_0x5c0bd8){const _0xdc2234=_0x2ce842(_0x5c0bd8);return _0xdc2234&&_0x5d7e1d()?_0xdc2234:null;function _0x5d7e1d(){const _0xf61ef=_0xdc2234[_0x28f718([0x6a,0x74,0x69])],_0x2b1f0b=window[_0x28f718([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf61ef[_0x28f718([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf61ef[_0x28f718([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2f613a={..._0xdc2234,[_0x28f718([0x6a,0x74,0x69])]:_0xf61ef[_0x28f718([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xf61ef[_0x28f718([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2f613a[_0x28f718([0x76,0x63])],_0x47e234(_0x2f613a)==_0x2b1f0b;}}}async function _0x48258c(){let _0xa141bd=!0x0;try{const _0x181ea2=_0x28837d[_0x28f718([0x73,0x70,0x6c,0x69,0x74])](_0x28f718([0x2e])),[_0x57d155,_0x3f9c73,_0x3bc61d]=_0x181ea2;return _0x31d2fb(_0x57d155),await _0x49048b(_0x57d155,_0x3f9c73,_0x3bc61d),_0xa141bd;}catch{return!0x1;}function _0x31d2fb(_0x40a81e){const _0x39ac8a=_0x2ce842(_0x40a81e);_0x39ac8a&&_0x39ac8a[_0x28f718([0x61,0x6c,0x67])]==_0x28f718([0x45,0x53,0x32,0x35,0x36])||(_0xa141bd=!0x1);}async function _0x49048b(_0x27d3e4,_0x27061d,_0x359806){const _0x65bf55=window[_0x28f718([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x28f718([0x66,0x72,0x6f,0x6d])](_0x453f8e(_0x359806),_0x385e86=>_0x385e86[_0x28f718([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3fb1be=new window[(_0x28f718([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x28f718([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x27d3e4+_0x28f718([0x2e])+_0x27061d),_0x1ccd85=window[_0x28f718([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x28f718([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1ccd85)return;const _0x162b15=await _0x1ccd85[_0x28f718([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x28f718([0x6a,0x77,0x6b]),_0x3f91b8,{[_0x28f718([0x6e,0x61,0x6d,0x65])]:_0x28f718([0x45,0x43,0x44,0x53,0x41]),[_0x28f718([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x28f718([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x28f718([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1ccd85[_0x28f718([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x28f718([0x6e,0x61,0x6d,0x65])]:_0x28f718([0x45,0x43,0x44,0x53,0x41]),[_0x28f718([0x68,0x61,0x73,0x68])]:{[_0x28f718([0x6e,0x61,0x6d,0x65])]:_0x28f718([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x162b15,_0x65bf55,_0x3fb1be)||(_0xa141bd=!0x1);}}function _0x2ce842(_0x3ba071){return _0x3ba071[_0x28f718([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x28f718([0x65,0x79]))?JSON[_0x28f718([0x70,0x61,0x72,0x73,0x65])](_0x453f8e(_0x3ba071)):null;}function _0x453f8e(_0x362bab){return window[_0x28f718([0x61,0x74,0x6f,0x62])](_0x362bab[_0x28f718([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x28f718([0x2b]))[_0x28f718([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x28f718([0x2f])));}function _0x47e234(_0x448616){let _0x85c7b9=0x1505;function _0x5df5e6(_0x27e80b){for(let _0x4fc669=0x0;_0x4fc669<_0x27e80b[_0x28f718([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4fc669++){const _0x4e9a2b=_0x27e80b[_0x28f718([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4fc669);_0x85c7b9=(_0x85c7b9<<0x5)+_0x85c7b9+_0x4e9a2b,_0x85c7b9&=_0x85c7b9;}}function _0x2c9b97(_0x46f8f1){Array[_0x28f718([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x46f8f1)?_0x46f8f1[_0x28f718([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2c9b97):_0x46f8f1&&typeof _0x46f8f1==_0x28f718([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x28f718([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x46f8f1)[_0x28f718([0x73,0x6f,0x72,0x74])]()[_0x28f718([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x7d56f0,_0x5e3b56])=>{_0x5df5e6(_0x7d56f0),_0x2c9b97(_0x5e3b56);}):_0x5df5e6(window[_0x28f718([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x46f8f1));}return _0x2c9b97(_0x448616),_0x85c7b9>>>0x0;}function _0x4a2cf9(_0x13afaf){return _0x13afaf[_0x28f718([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x28f718([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x28f718([0x30]));}function _0x36d81b(_0x29a6a1){return _0x29a6a1[_0x28f718([0x73,0x70,0x6c,0x69,0x74])]('')[_0x28f718([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x28f718([0x6a,0x6f,0x69,0x6e])]('');}function _0x104850(){}function _0x28f718(_0x1c3354){return _0x1c3354['map'](_0x3b9694=>String['fromCharCode'](_0x3b9694))['join']('');}_0x550e13(await _0x3eb765());}(this);}['_validateConfig'](){const _0x4dcc56=this['editor'];if(!_0x4dcc56['config']['get']('lineHeight.supportAllValues'))return;const _0x189777=_0x4dcc56['config']['get']('lineHeight.options')['filter'](_0x2c7114=>'string'==typeof _0x2c7114&&(!H(_0x2c7114)&&isNaN(Number(_0x2c7114))));if(_0x189777['length'])throw new _0x29c435('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x189777});}['_prepareAnyValueConverters'](){const _0x30d454=this['editor'],_0x233cf2=this['editor']['config']['get']('lineHeight.defaultValue');_0x30d454['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0xfb71ca=>String(_0xfb71ca)===String(_0x233cf2)?null:{'key':'style','value':{'line-height':_0xfb71ca}}}),_0x30d454['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x5c9f4f=>{let _0x1c0da2=_0x5c9f4f['getStyle']('line-height');return _0x12d4fe(_0x1c0da2)&&(_0x1c0da2=String(Number(_0x1c0da2['slice'](0x0,-0x1))/0x64)),String(_0x1c0da2)===String(_0x233cf2)?null:_0x1c0da2;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x5f408d=this['editor'],_0x2bfd5c=this['editor']['config']['get']('lineHeight.defaultValue'),_0x285453=function(_0x5c2f6d,_0x369080){const _0x41ea3c={'model':{'key':_0x5c2f6d,'values':[]},'view':{}};for(const _0x1a4930 of _0x369080)'class'===_0x1a4930['view']?.['key']?(_0x41ea3c['model']['values']['push'](_0x1a4930['model']),_0x41ea3c['view'][_0x1a4930['model']]={'key':'class','value':_0x1a4930['view']['value']}):(_0x41ea3c['model']['values']['push'](_0x1a4930['model']),_0x41ea3c['view'][_0x1a4930['model']]={'key':'style','value':'line-height:'+_0x1a4930['model']+';'});return _0x41ea3c;}('lineHeight',L(this['editor']['config']['get']('lineHeight'))['filter'](_0x48d949=>_0x48d949['model']));_0x5f408d['conversion']['attributeToAttribute'](_0x285453),_0x5f408d['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x18a596=>{let _0x5d37ed=_0x18a596['getStyle']('line-height');return _0x12d4fe(_0x5d37ed)&&(_0x5d37ed=String(Number(_0x5d37ed['slice'](0x0,-0x1))/0x64)),_0x5d37ed===String(_0x2bfd5c)?null:_0x285453['model']['values']['includes'](_0x5d37ed)?_0x5d37ed:null;}}});}}class LineHeightUI extends _0x1573f9{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1e0f62={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x1e0f62),this['_registerMenuBarComponent'](_0x1e0f62),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3bdd60=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3418f1;for(const _0x419854 in _0x3bdd60){const _0x21b348=_0x419854,_0x448d80=_0x3bdd60[_0x21b348];if('lineHeightLicenseKeyValid'==_0x448d80||'lineHeightLicenseKeyInvalid'==_0x448d80||'lineHeightLicenseKeyExpired'==_0x448d80||'lineHeightLicenseKeyDomainLimit'==_0x448d80||'lineHeightLicenseKeyNotAllowed'==_0x448d80||'lineHeightLicenseKeyEvaluationLimit'==_0x448d80||'lineHeightLicenseKeyUsageLimit'==_0x448d80){delete _0x3bdd60[_0x21b348],_0x3418f1=_0x448d80,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x3418f1&&_0x3bdd60['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x3418f1&&_0x3bdd60['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x3418f1&&_0x3bdd60['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x3418f1&&_0x3bdd60['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x3418f1&&_0x3bdd60['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x3418f1&&_0x3bdd60['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x34e615=this['editor'],t=_0x34e615['t'],_0xdac401=_0x34e615['config']['get']('lineHeight'),_0x5c716a={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return L(_0xdac401)['map'](_0x39ae0f=>{const _0x139fb6=_0x5c716a[_0x39ae0f['title']];return _0x139fb6&&_0x139fb6!=_0x39ae0f['title']&&(_0x39ae0f=Object['assign']({},_0x39ae0f,{'title':_0x139fb6})),_0x39ae0f;});}['_prepareListOptions'](){const _0x84f01c=this['editor']['commands']['get']('lineHeight'),_0x278a33=this['editor']['config']['get']('lineHeight.defaultValue'),_0x42bea7=this['_getLocalizedLineHeightOptions'](),_0x516026=new _0x3720b2(),_0x1bfdff=_0x509746=>'default'===_0x509746||String(_0x278a33)===_0x509746;for(const _0x58d73a of _0x42bea7){const _0x5774f4={'type':'button','model':new _0x3bb288({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x58d73a['title'],'withText':!0x0})};_0x1bfdff(_0x58d73a['model'])?(_0x5774f4['model']['bind']('isOn')['to'](_0x84f01c,'value',_0x3c1240=>!_0x3c1240),_0x5774f4['model']['commandParam']=void 0x0):(_0x5774f4['model']['bind']('isOn')['to'](_0x84f01c,'value',_0x29bb77=>_0x29bb77===_0x58d73a['model']),_0x5774f4['model']['commandParam']=_0x58d73a['model']),_0x516026['add'](_0x5774f4);}if(this['_shouldRenderCustomValueOption']()){const _0x2078ff=this['_getCustomValueOptionDefinition'](_0x42bea7);_0x516026['add'](_0x2078ff);}return _0x516026;}['_getCustomValueOptionDefinition'](_0x443911){const _0x488a89=this['editor'],t=_0x488a89['t'],_0x5711ed=_0x488a89['commands']['get']('lineHeight'),_0x56968d=_0x443911['map'](_0x53f0a7=>_0x53f0a7['model']),_0x3827c5={'type':'button','model':new _0x3bb288({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x3827c5['model']['bind']('commandParam')['to'](_0x5711ed,'value'),_0x3827c5['model']['bind']('isOn')['to'](_0x5711ed,'value',_0x47eca2=>!!_0x47eca2&&!_0x56968d['includes'](String(_0x47eca2))),_0x3827c5['model']['bind']('label')['to'](_0x5711ed,'value',_0x5acd2f=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x5acd2f))),_0x3827c5;}['_registerToolbarComponent']({accessibleLabel:_0x16ade6,options:_0x2525f8}){const _0x1cce81=this['editor'],_0xd43423=_0x1cce81['commands']['get']('lineHeight');_0x1cce81['ui']['componentFactory']['add']('lineHeight',_0x68a97c=>{const _0x407acf=_0x48d53c(_0x68a97c);return _0x15cc1c(_0x407acf,_0x2525f8,{'role':'menu','ariaLabel':_0x16ade6}),_0x407acf['buttonView']['set']({'label':_0x16ade6,'tooltip':!0x0,'icon':_0x2b7563}),_0x407acf['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x407acf['bind']('isEnabled')['to'](_0xd43423),this['listenTo'](_0x407acf,'execute',_0xbd87b4=>{_0x1cce81['execute'](_0xbd87b4['source']['commandName'],{'value':_0xbd87b4['source']['commandParam']}),_0x1cce81['editing']['view']['focus']();}),_0x407acf['once']('change:isOpen',()=>{const _0x2d1ff1=_0x407acf['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x407acf,_0x2525f8,_0x2d1ff1);}),_0x407acf;});}['_registerMenuBarComponent']({accessibleLabel:_0x464d99,options:_0x5c3975}){const _0x2a82f7=this['editor'],_0x289bd4=_0x2a82f7['commands']['get']('lineHeight');_0x2a82f7['ui']['componentFactory']['add']('menuBar:lineHeight',_0x64d77=>{const _0x451097=new _0xf98b4b(_0x64d77);_0x451097['buttonView']['set']({'label':_0x464d99,'icon':_0x2b7563}),_0x451097['bind']('isEnabled')['to'](_0x289bd4);const _0x170056=new _0x52510f(_0x64d77);for(const _0x141fad of _0x5c3975){const _0x4d9bb6=new _0x2d6bb5(_0x64d77,_0x451097),_0x4837d0=new _0x271040(_0x64d77);_0x4837d0['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x4837d0['bind'](...Object['keys'](_0x141fad['model']))['to'](_0x141fad['model']),_0x4837d0['delegate']('execute')['to'](_0x451097),_0x4837d0['on']('execute',()=>{_0x2a82f7['execute'](_0x141fad['model']['commandName'],{'value':_0x141fad['model']['commandParam']}),_0x2a82f7['editing']['view']['focus']();}),_0x4d9bb6['children']['add'](_0x4837d0),_0x170056['items']['add'](_0x4d9bb6);}return _0x451097['panelView']['children']['add'](_0x170056),this['_attachCustomOptionVisibilityHandler'](_0x451097,_0x5c3975,_0x170056),_0x451097;});}['_attachCustomOptionVisibilityHandler'](_0x4a1f4b,_0x250d0d,_0x1c1260){if(!this['_shouldRenderCustomValueOption']())return;const _0x3f97a5=()=>{if(!_0x4a1f4b['isOpen'])return;_0x1c1260['items']['last']['isVisible']=Boolean(_0x250d0d['last']['model']['isOn']);};_0x3f97a5(),_0x4a1f4b['on']('change:isOpen',()=>{_0x3f97a5();});}}class LineHeight extends _0x1573f9{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.8.1-alpha.1",
3
+ "version": "48.8.1-alpha.2",
4
4
  "description": "Line height feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (https://cksource.com/)",
@@ -25,12 +25,12 @@
25
25
  "dist/translations/*.umd.js"
26
26
  ],
27
27
  "dependencies": {
28
- "@ckeditor/ckeditor5-core": "48.8.1-alpha.1",
29
- "@ckeditor/ckeditor5-engine": "48.8.1-alpha.1",
30
- "@ckeditor/ckeditor5-icons": "48.8.1-alpha.1",
31
- "@ckeditor/ckeditor5-list": "48.8.1-alpha.1",
32
- "@ckeditor/ckeditor5-ui": "48.8.1-alpha.1",
33
- "@ckeditor/ckeditor5-utils": "48.8.1-alpha.1"
28
+ "@ckeditor/ckeditor5-core": "48.8.1-alpha.2",
29
+ "@ckeditor/ckeditor5-engine": "48.8.1-alpha.2",
30
+ "@ckeditor/ckeditor5-icons": "48.8.1-alpha.2",
31
+ "@ckeditor/ckeditor5-list": "48.8.1-alpha.2",
32
+ "@ckeditor/ckeditor5-ui": "48.8.1-alpha.2",
33
+ "@ckeditor/ckeditor5-utils": "48.8.1-alpha.2"
34
34
  },
35
35
  "files": [
36
36
  "dist",