@ckeditor/ckeditor5-email 48.5.0-alpha.1 → 48.5.0-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.
- package/dist/index.js +1 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x1a8ce1}from'@ckeditor/ckeditor5-core';import{uid as _0x31f377}from'@ckeditor/ckeditor5-utils';import{dropImportantStyleSuffix as _0x1351a4}from'@ckeditor/ckeditor5-export-inline-styles';const r='https://ckeditor.com/docs/ckeditor5/latest';var o=class extends _0x1a8ce1{static get['pluginName'](){return'EmailConfigurationLogger';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x326d3c){super(_0x326d3c),_0x326d3c['config']['define']('email.logs',{'suppress':[],'suppressAll':!0x1});}afterInit(){!async function(_0x14648d){const _0x58e8db='unSbGpmijAwyrOzdZhCqT3YLFVtJlkDag1WMNxR4H67IB5QoX0289cUsvPEefK',_0x4ac34c=0x793e0,_0x626147={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x1cd3e8(_0x5b309d){const _0x36909b=new window['Promise'](_0x261900=>{_0x5b309d['once']('ready',_0x261900);}),_0x74c966=window['Date']['now'](),_0xff8565=_0x5b309d['config']['get']('licenseKey');async function _0x1aca0f(){let _0x532da1,_0x53f6ca=null,_0x1fe9c3=null;try{return'GPL'==_0xff8565?'NotAllowed':(_0x532da1=_0x2ca15e(),_0x532da1?(_0x532da1['usageEndpoint']&&(_0x1fe9c3=_0x53724e(_0x532da1['usageEndpoint'],_0x532da1['jti'])),await _0x4e3306()?_0xd8fab8()?_0x3d5e5f()?'Expired':_0x4b0f19()?('evaluation'==_0x532da1['licenseType']&&(_0x53f6ca=_0x38ef03('EvaluationLimit')),await _0x3704d0()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x3d5e5f(){const _0xf9005a=['evaluation','trial']['includes'](_0x532da1['licenseType'])?_0x74c966/0x3e8:0xe10*_0x4ac34c;return _0x532da1['exp']<_0xf9005a;}function _0xd8fab8(){const _0x5550df=_0x532da1['features'];return!!_0x5550df&&(!!_0x5550df['includes']('*')||!!_0x5550df['includes']('ECH'));}function _0x4b0f19(){const _0x1c3c56=_0x532da1['licensedHosts'];if(!_0x1c3c56||0x0==_0x1c3c56['length'])return!0x0;const {hostname:_0x31bdc7}=new URL(window['location']['href']);if(_0x1c3c56['includes'](_0x31bdc7))return!0x0;const _0x281fa9=_0x31bdc7['split']('.');return _0x1c3c56['filter'](_0x446046=>_0x446046['includes']('*'))['map'](_0x5d30f7=>_0x5d30f7['split']('.'))['filter'](_0x29051c=>_0x29051c['length']<=_0x281fa9['length'])['map'](_0x14c3bb=>Array(_0x281fa9['length']-_0x14c3bb['length'])['fill']('*'===_0x14c3bb[0x0]?'*':'')['concat'](_0x14c3bb))['some'](_0x5e0b7a=>_0x281fa9['every']((_0x2b26a9,_0x1a0cc6)=>_0x5e0b7a[_0x1a0cc6]===_0x2b26a9||'*'===_0x5e0b7a[_0x1a0cc6]));}function _0x3704d0(){return _0x53f6ca&&_0x1fe9c3?new window['Promise']((_0x37a407,_0x45caf1)=>{_0x53f6ca['then'](_0x37a407,_0x45caf1),_0x1fe9c3['then'](_0x38a328=>{'Valid'!=_0x38a328&&_0x37a407(_0x38a328);},_0x45caf1);}):_0x53f6ca||_0x1fe9c3||'Valid';}}function _0x53724e(_0x3cb1c6,_0x1aee9c){return new window['Promise'](_0x3e65f2=>{if(_0x7326ec())return _0x3e65f2('Valid');_0x2fb91d(),_0x5b309d['decorate']('_sendUsageRequest');let _0x50821b=!0x1;const _0x33b0b2=_0x31f377();function _0x4c07f2(_0x46a119){return!!_0x46a119&&('object'==typeof _0x46a119||'function'==typeof _0x46a119)&&'function'==typeof _0x46a119['then']&&'function'==typeof _0x46a119['catch'];}function _0x3045b3(_0x4e674a){_0x591fc7(_0x4e674a)['then'](_0x5602d5=>_0x5602d5&&'ok'==_0x5602d5['status']?_0xe2df96(_0x3db7fb(_0x33b0b2+_0x1aee9c))!=_0x5602d5['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x311937=>(_0x43e08c(),_0x311937),()=>{const _0x3a3753=_0x112b11();return null==_0x3a3753?(_0x43e08c(),'Valid'):_0x74c966-_0x3a3753>0x240c8400?'UsageLimit':'Valid';})['then'](_0x3e65f2)['catch'](()=>{_0x3e65f2('UsageLimit');});const _0x164e37=0x36ee80;function _0x43e08c(){const _0x2890bd='llct-'+_0xe2df96(_0x3db7fb(_0x3cb1c6)),_0x2914ee=_0x1c55a2(_0xe2df96(window['Math']['ceil'](_0x74c966/_0x164e37)));window['localStorage']['setItem'](_0x2890bd,_0x2914ee);}function _0x112b11(){const _0x4d2a0a='llct-'+_0xe2df96(_0x3db7fb(_0x3cb1c6)),_0x4f7898=window['localStorage']['getItem'](_0x4d2a0a);return _0x4f7898?window['parseInt'](_0x1c55a2(_0x4f7898),0x10)*_0x164e37:null;}function _0x591fc7(_0x1a6c9c){return new window['Promise']((_0x323be5,_0x5e5156)=>{_0x1a6c9c['then'](_0x323be5,_0x5e5156),window['setTimeout'](_0x5e5156,0x1d4c0);});}}_0x5b309d['on']('_sendUsageRequest',(_0x439d4c,_0x1fd2b2)=>{if(_0x1fd2b2[0x0]!=_0x3cb1c6)return _0x3e65f2('UsageLimit');_0x1fd2b2[0x1]={..._0x1fd2b2[0x1],'requestId':_0x33b0b2};},{'priority':'high'}),_0x5b309d['on']('_sendUsageRequest',_0x48926b=>{_0x4c07f2(_0x48926b['return'])&&(_0x50821b=!0x0,_0x3045b3(_0x48926b['return']));},{'priority':'low'}),_0x36909b['then'](()=>{_0x50821b||_0x3e65f2('UsageLimit');});});function _0x7326ec(){return'auto'==_0x5b309d['editing']['view']['_overlayModeHint'];}function _0x2fb91d(){_0x5b309d['editing']['view']['_overlayModeHint']='auto';}}function _0x38ef03(_0x572a80){const _0x426727=[new window['Promise'](_0x1d1c1e=>setTimeout(_0x1d1c1e,0x93ecc)),_0x36909b['then'](()=>new window['Promise'](_0x3f317f=>{let _0x11c99a=0x0;_0x5b309d['model']['on']('applyOperation',(_0xa43cd5,_0x5088a4)=>{_0x5088a4[0x0]['isDocumentOperation']&&_0x11c99a++,0x5e8==_0x11c99a&&(_0x3f317f(),_0xa43cd5['off']());});}))];return window['Promise']['race'](_0x426727)['then'](()=>_0x572a80);}async function _0x1a28a6(){await _0x36909b,_0x5b309d['model']['change']=_0x1d8390,_0x5b309d['model']['enqueueChange']=_0x1d8390,_0x5b309d['enableReadOnlyMode']('model');}function _0x3566e9(_0x45e48e){const _0x598241=_0x428fb3();_0x5b309d[_0x598241]='emailConfigurationHelperLicenseKey'+_0x45e48e,'Valid'!=_0x45e48e&&_0x1a28a6();}function _0x428fb3(){const _0x2e3457=window['String'](window['performance']['now']())['replace']('.','');let _0x1a81e2='u';for(let _0x173e6f=0x0;_0x173e6f<_0x2e3457['length'];_0x173e6f+=0x2){let _0xb4a955=window['parseInt'](_0x2e3457['substring'](_0x173e6f,_0x173e6f+0x2));_0xb4a955>=0x3e&&(_0xb4a955-=0x3e),_0x1a81e2+=_0x58e8db[_0xb4a955];}return _0x1a81e2;}function _0x2ca15e(){const _0xee6264=_0xff8565['split']('.');if(0x3!=_0xee6264['length'])return null;return _0xb1aff(_0xee6264[0x1]);function _0xb1aff(_0x97dadc){const _0x4ce9aa=_0x129c75(_0x97dadc);return _0x4ce9aa&&_0x5eed26()?_0x4ce9aa:null;function _0x5eed26(){const _0x164b71=_0x4ce9aa['jti'],_0x517ea5=window['parseInt'](_0x164b71['substring'](_0x164b71['length']-0x8),0x10),_0x2e89c3={..._0x4ce9aa,'jti':_0x164b71['substring'](0x0,_0x164b71['length']-0x8)};return delete _0x2e89c3['vc'],_0x3db7fb(_0x2e89c3)==_0x517ea5;}}}async function _0x4e3306(){let _0x2aed3b=!0x0;try{const [_0x2de223,_0x5da986,_0x339e0e]=_0xff8565['split']('.');return _0x196c8e(_0x2de223),await _0x281819(_0x2de223,_0x5da986,_0x339e0e),_0x2aed3b;}catch{return!0x1;}function _0x196c8e(_0x5dc75f){const _0xf9be41=_0x129c75(_0x5dc75f);_0xf9be41&&'ES256'==_0xf9be41['alg']||(_0x2aed3b=!0x1);}async function _0x281819(_0x5e3dde,_0x18baac,_0x1aa95b){const _0x25cbf3=window['Uint8Array']['from'](_0x13b0e2(_0x1aa95b),_0x47e70b=>_0x47e70b['charCodeAt'](0x0)),_0x1bc6f7=new window['TextEncoder']()['encode'](_0x5e3dde+'.'+_0x18baac),_0x5c15c5=window['crypto']['subtle'];if(!_0x5c15c5)return;const _0x1221c4=await _0x5c15c5['importKey']('jwk',_0x626147,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5c15c5['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x1221c4,_0x25cbf3,_0x1bc6f7)||(_0x2aed3b=!0x1);}}function _0x129c75(_0x213b57){return _0x213b57['startsWith']('ey')?JSON['parse'](_0x13b0e2(_0x213b57)):null;}function _0x13b0e2(_0x5b937f){return window['atob'](_0x5b937f['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x3db7fb(_0x1c89bc){let _0x15c88a=0x1505;function _0x1583d4(_0x19fb53){for(let _0x53fa12=0x0;_0x53fa12<_0x19fb53['length'];_0x53fa12++){const _0x3f0763=_0x19fb53['charCodeAt'](_0x53fa12);_0x15c88a=(_0x15c88a<<0x5)+_0x15c88a+_0x3f0763,_0x15c88a&=_0x15c88a;}}function _0x3f366e(_0x1a1c80){Array['isArray'](_0x1a1c80)?_0x1a1c80['forEach'](_0x3f366e):_0x1a1c80&&'object'==typeof _0x1a1c80?Object['entries'](_0x1a1c80)['sort']()['forEach'](([_0x2cc776,_0x315827])=>{_0x1583d4(_0x2cc776),_0x3f366e(_0x315827);}):_0x1583d4(window['String'](_0x1a1c80));}return _0x3f366e(_0x1c89bc),_0x15c88a>>>0x0;}function _0xe2df96(_0x49aa68){return _0x49aa68['toString'](0x10)['padStart'](0x8,'0');}function _0x1c55a2(_0x22db81){return _0x22db81['split']('')['reverse']()['join']('');}function _0x1d8390(){}_0x3566e9(await _0x1aca0f());}_0x1cd3e8(_0x14648d['editor']);}(this);}['_logSuppressibleWarning'](_0x19d44f,_0x368bee){if(this['_isSuppressedLog'](_0x19d44f,_0x368bee))return;const _0x5552da=r+'/support/error-codes.html#error-'+_0x19d44f;console['warn']('%cEmailConfigurationHelper%c\x20'+_0x19d44f,'background:\x20#E65100;\x20color:\x20white;\x20padding:\x202px\x204px;','',..._0x368bee?[_0x368bee]:[],'\x0aRead\x20more:\x20'+_0x5552da);}['_logSuppressibleInfo'](_0x4fdad7,_0xe28020,_0x29d728){if(this['_isSuppressedLog'](_0x4fdad7))return;let _0x398dab=_0xe28020;_0x29d728&&(_0x398dab+='\x0aRead\x20more:\x20'+(r+'/'+_0x29d728)),console['info']('%cEmailConfigurationHelper%c\x20'+_0x4fdad7,'background:\x20#4169E1;\x20color:\x20white;\x20padding:\x202px\x204px;','',_0x398dab);}_checkUnsupportedPlugin(_0x58172f,_0x2d1129){this['editor']['plugins']['has'](_0x58172f)&&this['_logSuppressibleWarning']('email-configuration-unsupported-plugin',{'pluginName':_0x58172f,..._0x2d1129});}_validateConfigColorValue(_0x389ab2){const _0x5605be=this['editor']['config']['get'](_0x389ab2);if(!_0x5605be)return;const _0x9bc9b1=Array['isArray'](_0x5605be),_0x2795b9=_0x9bc9b1?_0x5605be:[_0x5605be];for(const [_0x2afc6d,_0x32692b]of _0x2795b9['entries']()){const _0x289563='string'==typeof _0x32692b?_0x32692b:_0x32692b['color'];s(_0x289563)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-value',{'configPath':_0x9bc9b1?_0x389ab2+'['+_0x2afc6d+']':_0x389ab2,'color':_0x289563});}}_validateConfigColorFormat(_0x80d83f){const _0x2769ab=this['editor']['config']['get'](_0x80d83f);_0x2769ab&&l(_0x2769ab)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-format',{'configPath':_0x80d83f,'format':_0x2769ab});}['_isSuppressedLog'](_0x230735,_0x2f43a9){const _0x32dbd3=this['editor']['config']['get']('email.logs');return!!_0x32dbd3['suppressAll']||(!('function'!=typeof _0x32dbd3['suppress']||!_0x32dbd3['suppress'](_0x230735,_0x2f43a9))||!(!Array['isArray'](_0x32dbd3['suppress'])||!_0x32dbd3['suppress']['includes'](_0x230735)));}};const a=['hsl','hsla','hwb','lab','lch','oklab','oklch','color-mix','rgba'];function s(_0x3af847){return!!_0x3af847&&a['some'](_0x54a45c=>_0x3af847['includes'](_0x54a45c+'('));}function l(_0xf99dc6){return!!_0xf99dc6&&a['includes'](_0xf99dc6);}var u=class extends _0x1a8ce1{static get requires(){return[o];}static get['pluginName'](){return'HighlightEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['editor']['plugins']['get'](o)['_checkUnsupportedPlugin']('Highlight');}};function c(_0x348b39,_0x66caf1){const _0x2a9b5d=_0x348b39['ownerDocument'],{table:_0x23ffbb,cell:_0x4e22a6}=g(_0x2a9b5d,'100%');_0x66caf1['align']&&_0x4e22a6['setAttribute']('align',_0x1351a4(_0x66caf1['align']));let _0x18d1ff=_0x4e22a6;if(_0x66caf1['width']){const {table:_0x54a81d,cell:_0x1fd49f}=g(_0x2a9b5d,_0x1351a4(_0x66caf1['width']));_0x4e22a6['appendChild'](_0x54a81d),_0x18d1ff=_0x1fd49f;}return _0x348b39['replaceWith'](_0x23ffbb),_0x348b39['removeAttribute']('align'),_0x348b39['removeAttribute']('width'),_0x18d1ff['appendChild'](_0x348b39),_0x18d1ff;}function g(_0x495099,_0xe2f14c){const _0x54f8bf=_0x495099['createElement']('table');_0xe2f14c&&(_0x54f8bf['style']['width']=_0xe2f14c,_0x54f8bf['setAttribute']('width',h(_0xe2f14c))),_0x54f8bf['setAttribute']('cellpadding','0'),_0x54f8bf['setAttribute']('cellspacing','0'),_0x54f8bf['setAttribute']('border','0'),_0x54f8bf['setAttribute']('role','presentation');const _0x58ebd7=_0x495099['createElement']('tbody'),_0x46fed5=_0x495099['createElement']('tr'),_0xd53451=_0x495099['createElement']('td');return _0x54f8bf['appendChild'](_0x58ebd7),_0x58ebd7['appendChild'](_0x46fed5),_0x46fed5['appendChild'](_0xd53451),{'table':_0x54f8bf,'cell':_0xd53451};}function f(_0x31cd0b){const _0x54f0e2=_0x31cd0b['getAsString']('margin-left'),_0x2638ef=_0x31cd0b['getAsString']('margin-right'),_0x2eaa37=_0x54f0e2&&_0x1351a4(_0x54f0e2),_0x3d9803=_0x2638ef&&_0x1351a4(_0x2638ef);return'auto'===_0x2eaa37&&'auto'===_0x3d9803?'center':'auto'===_0x2eaa37?'right':'auto'===_0x3d9803?'left':void 0x0;}function m(_0x2ec55f,_0x10148d){const _0x334da5=_0x2ec55f['ownerDocument']['createElement'](_0x10148d);for(const _0x4433ad of Array['from'](_0x2ec55f['attributes']))_0x334da5['setAttribute'](_0x4433ad['name'],_0x4433ad['value']);for(;_0x2ec55f['firstChild'];)_0x334da5['appendChild'](_0x2ec55f['firstChild']);return _0x334da5;}function d(_0xb72318){if('TABLE'!==_0xb72318['tagName'])return!0x1;if('presentation'!==_0xb72318['getAttribute']('role'))return!0x1;const _0x4e7392=p(_0xb72318);return null!==_0x4e7392&&_0x4e7392['hasAttribute']('align');}function p(_0xd2e014){let _0x75c8ae=_0xd2e014;0x1===_0xd2e014['children']['length']&&'TBODY'===_0xd2e014['children'][0x0]['tagName']&&(_0x75c8ae=_0xd2e014['children'][0x0]);const _0x16629f=_0x75c8ae['children'];if(0x1!==_0x16629f['length']||'TR'!==_0x16629f[0x0]['tagName'])return null;const _0x1c287b=_0x16629f[0x0]['children'];return 0x1!==_0x1c287b['length']||'TD'!==_0x1c287b[0x0]['tagName']?null:_0x1c287b[0x0];}function h(_0x1e4886){return function(_0x5b5e23){return _0x5b5e23['endsWith']('px')?_0x5b5e23['slice'](0x0,-0x2):_0x5b5e23;}(_0x1351a4(_0x1e4886));}const w=(_0x220cc0,_0x27bac2,{runAfterDocumentTransformation:_0x56d868,runAfterChildrenTransformation:_0x2dadb8})=>{if('FIGURE'!==_0x220cc0['tagName'])return;const _0x3dbd78=_0x27bac2['getAsString']('float');if(_0x3dbd78){if(P(_0x220cc0))_0x56d868(()=>{y(_0x220cc0,{'align':_0x3dbd78});});else{const {table:_0x8c8309,cell:_0x1fbb8a}=g(_0x220cc0['ownerDocument']);_0x8c8309['setAttribute']('align',_0x1351a4(_0x3dbd78)),_0x8c8309['setAttribute']('style',function(_0x4a643d){return _0x4a643d['getStylesEntries']()['map'](_0x5550e6=>_0x5550e6['join'](':'))['join'](';')+';';}(_0x27bac2)),_0x2dadb8(()=>{for(const _0x126237 of Array['from'](_0x220cc0['childNodes']))_0x1fbb8a['appendChild'](_0x126237);}),_0x56d868(()=>{_0x220cc0['replaceWith'](_0x8c8309);});}}else{const _0x3a980d=f(_0x27bac2),_0x37fad7=_0x27bac2['getAsString']('width');if(!_0x3a980d&&!_0x37fad7)return;c(_0x220cc0,{'align':_0x3a980d,'width':_0x37fad7}),_0x37fad7&&_0x27bac2['set']('width','100%'),_0x27bac2['remove']('margin-left'),_0x27bac2['remove']('margin-right'),_0x27bac2['remove']('min-width'),_0x27bac2['remove']('max-width'),_0x56d868(()=>{if(!y(_0x220cc0)){const _0x1ba06e=m(_0x220cc0,'div');_0x220cc0['replaceWith'](_0x1ba06e);}});}};function y(_0x360850,_0x39af0b={}){const _0x386f76=P(_0x360850);if(!_0x386f76)return null;for(const _0x144f3c of['id','class']){const _0x3ba94e=_0x360850['getAttribute'](_0x144f3c);_0x3ba94e&&_0x386f76['setAttribute'](_0x144f3c,_0x3ba94e);}for(const _0x5a7bc2 of['display','float','width','height'])_0x386f76['style']['removeProperty'](_0x5a7bc2);const _0xdb584c=_0x360850['getAttribute']('style');if(_0xdb584c){const _0x29a374=_0x386f76['getAttribute']('style')||'';_0x386f76['setAttribute']('style',_0xdb584c+_0x29a374);}return _0x39af0b['align']&&_0x386f76['setAttribute']('align',_0x1351a4(_0x39af0b['align'])),'fixed'!==_0x386f76['style']['tableLayout']||_0x386f76['style']['width']||(_0x386f76['style']['width']='100%',_0x386f76['setAttribute']('width','100%')),_0x360850['replaceWith'](_0x386f76),_0x386f76;}function P(_0x557226){const _0x1612fe=Array['from'](_0x557226['children']);return 0x1===_0x1612fe['length']&&'TABLE'===_0x1612fe[0x0]['tagName']?_0x1612fe[0x0]:null;}var I=class extends _0x1a8ce1{static get requires(){return[o];}static get['pluginName'](){return'ImageEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {config:_0x35fe70,plugins:_0x2ec774}=this['editor'];_0x35fe70['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x2ec774['get'](o)['_checkUnsupportedPlugin']('ImageBlock',{'description':'Block\x20images\x20are\x20unsupported\x20in\x20email\x20environments.\x20Consider\x20enabling\x20the\x20`transformEmailFigureToTable`\x20transformation\x20in\x20the\x20`exportInlineStyles`\x20in\x20order\x20to\x20make\x20block\x20images\x20work\x20in\x20email\x20clients.'});}},E=class extends _0x1a8ce1{static get requires(){return[o];}static get['pluginName'](){return'MathTypeEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['editor']['plugins']['get'](o)['_checkUnsupportedPlugin']('MathType');}},b=class extends _0x1a8ce1{static get requires(){return[o];}static get['pluginName'](){return'ExportInlineStylesEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x5419b5=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('ExportInlineStyles')||_0x5419b5['_logSuppressibleWarning']('email-configuration-missing-export-inline-styles-plugin');}},L=class extends _0x1a8ce1{static get requires(){return[o];}static get['pluginName'](){return'ListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x1a8842=this['editor']['plugins']['get'](o),_0x559242=this['editor']['config']['get']('list');_0x559242&&_0x559242['properties']&&_0x559242['properties']['reversed']&&_0x1a8842['_logSuppressibleWarning']('email-configuration-unsupported-reversed-list'),_0x559242&&_0x559242['enableListItemMarkerFormatting']&&_0x1a8842['_logSuppressibleWarning']('email-configuration-unsupported-list-item-marker-formatting');}},C=class extends _0x1a8ce1{static get requires(){return[o];}static get['pluginName'](){return'TableEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['_checkRequiredTablePlugins'](),this['_checkTableConfig']();}['_checkRequiredTablePlugins'](){const {plugins:_0x13b73f}=this['editor'],_0x4e4b64=_0x13b73f['get'](o);_0x13b73f['has']('Table')&&(_0x13b73f['has']('PlainTableOutput')||_0x4e4b64['_logSuppressibleWarning']('email-configuration-missing-plain-table-output-plugin'),_0x13b73f['has']('TableLayout')||_0x4e4b64['_logSuppressibleWarning']('email-configuration-missing-table-layout-plugin'));}['_checkTableConfig'](){const {config:_0x207982,plugins:_0x5b582c}=this['editor'];_0x207982['get']('table')&&_0x5b582c['has']('Table')&&(this['_checkTablePropertiesConfig']('tableCellProperties'),this['_checkTablePropertiesConfig']('tableProperties'));}_checkTablePropertiesConfig(_0x3b8fdc){const _0x45a869=this['editor']['plugins']['get'](o);_0x45a869['_validateConfigColorValue']('table.'+_0x3b8fdc+'.borderColors'),_0x45a869['_validateConfigColorValue']('table.'+_0x3b8fdc+'.backgroundColors'),_0x45a869['_validateConfigColorValue']('table.'+_0x3b8fdc+'.defaultProperties.borderColor'),_0x45a869['_validateConfigColorValue']('table.'+_0x3b8fdc+'.defaultProperties'),_0x45a869['_validateConfigColorFormat']('table.'+_0x3b8fdc+'.colorPicker.format');}},k=class extends _0x1a8ce1{static get requires(){return[o];}static get['pluginName'](){return'EmptyBlockEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x294cc4=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('EmptyBlock')||_0x294cc4['_logSuppressibleInfo']('email-configuration-missing-empty-block-plugin','Consider\x20enabling\x20the\x20EmptyBlock\x20plugin\x20to\x20ensure\x20that\x20exported\x20content\x20has\x20empty\x20blocks.','features/email-editing/email.html#empty-block-plugin');}},T=class extends _0x1a8ce1{static get requires(){return[o];}static get['pluginName'](){return'FontEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {plugins:_0x31ae54}=this['editor'];_0x31ae54['has']('FontColorEditing')&&this['_checkColorConfig']('fontColor'),_0x31ae54['has']('FontBackgroundColorEditing')&&this['_checkColorConfig']('fontBackgroundColor');}['_checkColorConfig'](_0x3b9c4c){const _0x3889ee=this['editor']['plugins']['get'](o);_0x3889ee['_validateConfigColorValue'](_0x3b9c4c+'.colors'),_0x3889ee['_validateConfigColorValue'](_0x3b9c4c+'.documentColors'),_0x3889ee['_validateConfigColorFormat'](_0x3b9c4c+'.colorPicker.format');}},x=class extends _0x1a8ce1{static get requires(){return[o];}static get['pluginName'](){return'SourceEditingEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {plugins:_0x1ad2b4}=this['editor'],_0x40d8e3=_0x1ad2b4['get'](o);_0x1ad2b4['has']('SourceEditing')||_0x1ad2b4['has']('SourceEditingEnhanced')||_0x40d8e3['_logSuppressibleWarning']('email-configuration-missing-source-editing-plugin');}},v=class extends _0x1a8ce1{static get requires(){return[o];}static get['pluginName'](){return'MarkdownEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['editor']['plugins']['get'](o)['_checkUnsupportedPlugin']('Markdown');}},O=class GeneralHtmlIntegrationSupport extends _0x1a8ce1{static ['UNSUPPORTED_ELEMENTS']=new Set(['object','article','details','main','nav','summary','abbr','acronym','bdi','output','hgroup','form','input','button','audio','canvas','meter','progress','iframe']);static get requires(){return[o];}static get['pluginName'](){return'GeneralHtmlIntegrationSupport';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {plugins:_0x54d38c}=this['editor'];if(!_0x54d38c['has']('DataFilter'))return;const _0x356b9f=_0x54d38c['get']('DataFilter'),_0x309f10=_0x54d38c['get'](o);for(const _0x3c05a8 of GeneralHtmlIntegrationSupport['UNSUPPORTED_ELEMENTS'])_0x356b9f['once']('register:'+_0x3c05a8,(_0x3c32ad,_0x3ffb72)=>{_0x309f10['_logSuppressibleWarning']('email-unsupported-html-element',{'element':_0x3ffb72['view']});});}},A=class extends _0x1a8ce1{static get requires(){return[o];}static get['pluginName'](){return'MergeFieldsEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x596b54=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('MergeFields')||_0x596b54['_logSuppressibleInfo']('email-configuration-missing-merge-fields-plugin','Consider\x20enabling\x20the\x20MergeFields\x20plugin\x20which\x20allows\x20inserting\x20dynamic\x20data\x20placeholders\x20into\x20content.','features/email-editing/email.html#merge-fields-plugin');}},H=class extends _0x1a8ce1{static get requires(){return[o];}static get['pluginName'](){return'TemplateEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x4ae228=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('Template')||_0x4ae228['_logSuppressibleInfo']('email-configuration-missing-template-plugin','Consider\x20enabling\x20the\x20Template\x20plugin\x20which\x20allows\x20inserting\x20predefined\x20e-mail\x20templates\x20into\x20the\x20editor.','features/email-editing/email.html#template-plugin');}},N=class extends _0x1a8ce1{static get requires(){return[o];}static get['pluginName'](){return'UploadEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['editor']['plugins']['get'](o)['_checkUnsupportedPlugin']('Base64UploadAdapter');}},S=class extends _0x1a8ce1{static get requires(){return[o];}static get['pluginName'](){return'MediaEmbedEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['editor']['plugins']['get'](o)['_checkUnsupportedPlugin']('MediaEmbed');}},q=class extends _0x1a8ce1{static get requires(){return[o];}static get['pluginName'](){return'TodoListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['editor']['plugins']['get'](o)['_checkUnsupportedPlugin']('TodoList');}},$=class extends _0x1a8ce1{static get requires(){return[o];}static get['pluginName'](){return'MultiLevelListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['editor']['plugins']['get'](o)['_checkUnsupportedPlugin']('MultiLevelList',{'description':'The\x20multi-level\x20lists\x20are\x20rendered\x20incorrectly\x20in\x20Outlook\x202021.'});}},B=class extends _0x1a8ce1{static get requires(){return[o];}static get['pluginName'](){return'LinkEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {config:_0x23b166,plugins:_0xc19d85}=this['editor'],_0x1e941a=_0xc19d85['get'](o);_0x23b166['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x1e941a['_checkUnsupportedPlugin']('LinkImage',{'description':'Block\x20images\x20are\x20unsupported\x20in\x20email\x20environments.\x20The\x20LinkImage\x20plugin\x20is\x20designed\x20to\x20work\x20exclusively\x20with\x20block\x20images,\x20which\x20makes\x20it\x20not\x20applicable\x20for\x20email\x20integration.\x20Inline\x20images\x20are\x20still\x20supported\x20and\x20function\x20correctly\x20with\x20the\x20standard\x20Link\x20feature.\x20Consider\x20enabling\x20the\x20`transformEmailFigureToTable`\x20transformation\x20in\x20the\x20`exportInlineStyles`\x20in\x20order\x20to\x20make\x20block\x20images\x20work\x20in\x20email\x20clients.'});}},K=class extends _0x1a8ce1{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'EmailConfigurationHelper';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[u,I,E,b,L,C,k,T,x,v,O,A,H,N,S,q,$,B];}init(){this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x167bb1=[this['editor']];for(const _0x5652be of _0x167bb1){let _0x45520a;for(const _0x2f0d64 in _0x5652be){const _0x5a23db=_0x2f0d64,_0x464dfe=_0x5652be[_0x5a23db];if('emailConfigurationHelperLicenseKeyValid'==_0x464dfe||'emailConfigurationHelperLicenseKeyInvalid'==_0x464dfe||'emailConfigurationHelperLicenseKeyExpired'==_0x464dfe||'emailConfigurationHelperLicenseKeyDomainLimit'==_0x464dfe||'emailConfigurationHelperLicenseKeyNotAllowed'==_0x464dfe||'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x464dfe||'emailConfigurationHelperLicenseKeyUsageLimit'==_0x464dfe){delete _0x5652be[_0x5a23db],_0x45520a=_0x464dfe,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'emailConfigurationHelperLicenseKeyInvalid'==_0x45520a&&_0x5652be['_showLicenseError']('invalid'),'emailConfigurationHelperLicenseKeyExpired'==_0x45520a&&_0x5652be['_showLicenseError']('expired'),'emailConfigurationHelperLicenseKeyDomainLimit'==_0x45520a&&_0x5652be['_showLicenseError']('domainLimit'),'emailConfigurationHelperLicenseKeyNotAllowed'==_0x45520a&&_0x5652be['_showLicenseError']('featureNotAllowed','EmailConfigurationHelper'),'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x45520a&&_0x5652be['_showLicenseError']('evaluationLimit'),'emailConfigurationHelperLicenseKeyUsageLimit'==_0x45520a&&_0x5652be['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};const U=(_0x4a13dc,_0x2d5961)=>{if(!['TABLE','IMG']['includes'](_0x4a13dc['tagName']))return;const _0x1d1364=_0x2d5961['getAsString']('float');if(_0x1d1364){const _0x42b495=_0x1351a4(_0x1d1364);'left'!==_0x42b495&&'right'!==_0x42b495||_0x4a13dc['setAttribute']('align',_0x42b495);}},D=(_0x75ecca,_0x5c984e)=>{if('TABLE'!==_0x75ecca['tagName']||_0x5c984e['has']('float'))return;const _0x287340=f(_0x5c984e),_0x3f1c75=_0x5c984e['getAsString']('width');_0x287340&&(c(_0x75ecca,{'align':_0x287340}),_0x3f1c75?_0x75ecca['setAttribute']('width',h(_0x3f1c75)):_0x5c984e['remove']('width'),_0x5c984e['remove']('margin-left'),_0x5c984e['remove']('margin-right'));},F=(_0x151a01,_0xeeddf5)=>{if('IMG'!==_0x151a01['tagName'])return;const _0x345cf0=_0xeeddf5['getAsString']('width');_0x345cf0&&(_0x151a01['setAttribute']('width',h(_0x345cf0)),_0x151a01['setAttribute']('height','auto'));},_=(_0x149412,_0x2fed7e,{runAfterDocumentTransformation:_0x88cc5e})=>{if('FIGCAPTION'!==_0x149412['tagName'])return;const _0x53a798=_0x2fed7e['getAsString']('display'),_0x58e0ce=_0x2fed7e['getAsString']('caption-side');_0x2fed7e['remove']('caption-side'),_0x53a798&&'table-caption'===_0x1351a4(_0x53a798)&&_0x2fed7e['remove']('display');const _0x2c37e4=_0x58e0ce&&'top'===_0x1351a4(_0x58e0ce);_0x88cc5e(()=>{const _0x58f6bb=m(_0x149412,'div'),_0x408e1c=_0x149412['previousElementSibling'];_0x2c37e4&&_0x408e1c&&'TABLE'===_0x408e1c['tagName']?(_0x408e1c['before'](_0x58f6bb),_0x149412['remove']()):_0x149412['replaceWith'](_0x58f6bb);});},M=(_0x537908,_0x90655d,{runAfterChildrenTransformation:_0x2d869e})=>{'TD'===_0x537908['tagName']&&_0x2d869e(()=>{const _0x47ef92=Array['from'](_0x537908['children']);if(0x0===_0x47ef92['length'])return;const _0xcda8e8=_0x47ef92['map'](R),_0x40742c=_0xcda8e8[0x0];if(_0x40742c&&_0xcda8e8['every'](_0x3d205d=>_0x3d205d===_0x40742c)){_0x537908['setAttribute']('align',_0x40742c);for(const _0x20353c of _0x47ef92)if(d(_0x20353c)){const _0x421ab8=p(_0x20353c);_0x20353c['replaceWith'](...Array['from'](_0x421ab8['childNodes']));}else _0x20353c['style']['removeProperty']('text-align'),_0x20353c['style']['length']||_0x20353c['removeAttribute']('style');}});};function R(_0x504745){return d(_0x504745)?p(_0x504745)['getAttribute']('align'):_0x504745['style']['textAlign']||void 0x0;}const V=(_0x3aeb93,_0x243e34,{runAfterChildrenTransformation:_0x167f55})=>{'TABLE'===_0x3aeb93['tagName']&&_0x167f55(()=>{const _0x4c6697=function(_0x38e0f3,_0x15c360){for(const _0x45f344 of _0x38e0f3['children'])if(_0x45f344['tagName']===_0x15c360)return _0x45f344;return null;}(_0x3aeb93,'COLGROUP');if(!_0x4c6697)return;const _0x1975bb=Array['from'](_0x4c6697['children'])['filter'](_0x12927b=>'COL'===_0x12927b['tagName']);if(_0x1975bb['some'](_0x55ed20=>Q(_0x55ed20,'span')))return;const _0x449124=_0x1975bb['map'](j);if(!_0x449124['some'](Boolean))return;const _0x3d6728=function(_0x1f0037){const _0x56ace1=[];for(const _0x2c8284 of _0x1f0037['children'])if(['THEAD','TBODY','TFOOT']['includes'](_0x2c8284['tagName'])){for(const _0x2ad681 of _0x2c8284['children'])'TR'===_0x2ad681['tagName']&&_0x56ace1['push'](_0x2ad681);}return _0x56ace1;}(_0x3aeb93)['map'](G);if(!_0x3d6728['some'](_0x1a39ef=>_0x1a39ef['length']!==_0x449124['length']||_0x1a39ef['some'](_0x34d3d2=>function(_0x115120){return Q(_0x115120,'colspan')||Q(_0x115120,'rowspan');}(_0x34d3d2)||function(_0x23af3f){return Boolean(_0x23af3f['style']['getPropertyValue']('width'))||Boolean(_0x23af3f['getAttribute']('width'));}(_0x34d3d2)))){for(const _0x2673ca of _0x3d6728)_0x2673ca['forEach']((_0x15360b,_0x3d30dc)=>{const _0x3fbef1=_0x449124[_0x3d30dc];_0x3fbef1&&(_0x15360b['setAttribute']('width',h(_0x3fbef1)),_0x15360b['style']['setProperty']('width',_0x3fbef1));});}});};function G(_0x42a5d3){return Array['from'](_0x42a5d3['children'])['filter'](_0x441f47=>'TD'===_0x441f47['tagName']||'TH'===_0x441f47['tagName']);}function j(_0x3ac3ae){const _0x2c1e01=_0x3ac3ae['style']['getPropertyValue']('width');if(_0x2c1e01)return _0x2c1e01;const _0x66fb7c=_0x3ac3ae['getAttribute']('width');if(!_0x66fb7c)return;const _0x3cadd7=_0x1351a4(_0x66fb7c);return/^\d+(\.\d+)?$/['test'](_0x3cadd7)?_0x3cadd7+'px':_0x3cadd7;}function Q(_0x21cf6a,_0x2cece4){const _0x445471=_0x21cf6a['getAttribute'](_0x2cece4);return null!==_0x445471&&'1'!==_0x445471;}function J(_0x3e4804={}){const _0x317d90=[];return _0x3e4804['useFigureToTableFallback']&&_0x317d90['push'](w,_,M),_0x317d90['push'](U,D,F,V),_0x317d90;}export{K as EmailConfigurationHelper,o as EmailConfigurationLogger,k as EmptyBlockEmailIntegration,b as ExportInlineStylesEmailIntegration,T as FontEmailIntegration,O as GeneralHtmlIntegrationSupport,u as HighlightEmailIntegration,I as ImageEmailIntegration,B as LinkEmailIntegration,L as ListEmailIntegration,v as MarkdownEmailIntegration,E as MathTypeEmailIntegration,S as MediaEmbedEmailIntegration,A as MergeFieldsEmailIntegration,$ as MultiLevelListEmailIntegration,x as SourceEditingEmailIntegration,C as TableEmailIntegration,H as TemplateEmailIntegration,q as TodoListEmailIntegration,N as UploadEmailIntegration,J as getEmailInlineStylesTransformations,l as isUnsupportedEmailColorFormat,s as isUnsupportedEmailColorValue,M as transformEmailAlignToAttribute,V as transformEmailColumnWidthsToCells,_ as transformEmailFigcaptionToDiv,w as transformEmailFigureToTable,U as transformEmailFloatToAlign,F as transformEmailImageWidthAttributes,D as transformEmailMarginToAlign};
|
|
23
|
+
import{Plugin as _0x56ebd8}from'@ckeditor/ckeditor5-core';import{uid as _0x56fb55}from'@ckeditor/ckeditor5-utils';import{dropImportantStyleSuffix as _0x3d8488}from'@ckeditor/ckeditor5-export-inline-styles';const r='https://ckeditor.com/docs/ckeditor5/latest';var o=class extends _0x56ebd8{static get['pluginName'](){return'EmailConfigurationLogger';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x257bec){super(_0x257bec),_0x257bec['config']['define']('email.logs',{'suppress':[],'suppressAll':!0x1});}afterInit(){!async function(_0x2b304b){const _0x21f931='unSbGpmijAwyrOzdZhCqT3YLFVtJlkDag1WMNxR4H67IB5QoX0289cUsvPEefK',_0x5b53ff=0x793f8,_0x2189cc={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0xf7fa66(_0x25ef80){const _0x5d4962=new window['Promise'](_0x21bdfc=>{_0x25ef80['once']('ready',_0x21bdfc);}),_0x23de18=window['Date']['now'](),_0x4dbd00=_0x25ef80['config']['get']('licenseKey');async function _0x3cbe9a(){let _0x3d0bd1,_0xdb840=null,_0x5a1283=null;try{return'GPL'==_0x4dbd00?'NotAllowed':(_0x3d0bd1=_0x1d3ff7(),_0x3d0bd1?(_0x3d0bd1['usageEndpoint']&&(_0x5a1283=_0xe3161c(_0x3d0bd1['usageEndpoint'],_0x3d0bd1['jti'])),await _0x157e8f()?_0x6f94be()?_0x427d83()?'Expired':_0x28539b()?('evaluation'==_0x3d0bd1['licenseType']&&(_0xdb840=_0x18a313('EvaluationLimit')),await _0x22a6b5()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x427d83(){const _0x41eed1=['evaluation','trial']['includes'](_0x3d0bd1['licenseType'])?_0x23de18/0x3e8:0xe10*_0x5b53ff;return _0x3d0bd1['exp']<_0x41eed1;}function _0x6f94be(){const _0x533016=_0x3d0bd1['features'];return!!_0x533016&&(!!_0x533016['includes']('*')||!!_0x533016['includes']('ECH'));}function _0x28539b(){const _0x2770ad=_0x3d0bd1['licensedHosts'];if(!_0x2770ad||0x0==_0x2770ad['length'])return!0x0;const {hostname:_0x588caf}=new URL(window['location']['href']);if(_0x2770ad['includes'](_0x588caf))return!0x0;const _0x1263f3=_0x588caf['split']('.');return _0x2770ad['filter'](_0x5a28a1=>_0x5a28a1['includes']('*'))['map'](_0x1fa192=>_0x1fa192['split']('.'))['filter'](_0x141eba=>_0x141eba['length']<=_0x1263f3['length'])['map'](_0x4a0d0f=>Array(_0x1263f3['length']-_0x4a0d0f['length'])['fill']('*'===_0x4a0d0f[0x0]?'*':'')['concat'](_0x4a0d0f))['some'](_0x278a53=>_0x1263f3['every']((_0x3b3445,_0x378f5a)=>_0x278a53[_0x378f5a]===_0x3b3445||'*'===_0x278a53[_0x378f5a]));}function _0x22a6b5(){return _0xdb840&&_0x5a1283?new window['Promise']((_0x17c6e8,_0x17ac87)=>{_0xdb840['then'](_0x17c6e8,_0x17ac87),_0x5a1283['then'](_0x40dbc7=>{'Valid'!=_0x40dbc7&&_0x17c6e8(_0x40dbc7);},_0x17ac87);}):_0xdb840||_0x5a1283||'Valid';}}function _0xe3161c(_0x1fe92f,_0x26d0d0){return new window['Promise'](_0x420f32=>{if(_0x3b7215())return _0x420f32('Valid');_0x1e30a4(),_0x25ef80['decorate']('_sendUsageRequest');let _0xda4c70=!0x1;const _0x5bdfef=_0x56fb55();function _0x37a114(_0x1bcae3){return!!_0x1bcae3&&('object'==typeof _0x1bcae3||'function'==typeof _0x1bcae3)&&'function'==typeof _0x1bcae3['then']&&'function'==typeof _0x1bcae3['catch'];}function _0x5ba3d3(_0x36dd1a){_0x169507(_0x36dd1a)['then'](_0x1758c4=>_0x1758c4&&'ok'==_0x1758c4['status']?_0x5bdfd8(_0x54769a(_0x5bdfef+_0x26d0d0))!=_0x1758c4['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x53b13d=>(_0x9ea642(),_0x53b13d),()=>{const _0x3e747d=_0x52cc5d();return null==_0x3e747d?(_0x9ea642(),'Valid'):_0x23de18-_0x3e747d>0x240c8400?'UsageLimit':'Valid';})['then'](_0x420f32)['catch'](()=>{_0x420f32('UsageLimit');});const _0x1ff9a2=0x36ee80;function _0x9ea642(){const _0x490419='llct-'+_0x5bdfd8(_0x54769a(_0x1fe92f)),_0x578d21=_0x31622e(_0x5bdfd8(window['Math']['ceil'](_0x23de18/_0x1ff9a2)));window['localStorage']['setItem'](_0x490419,_0x578d21);}function _0x52cc5d(){const _0x36fc05='llct-'+_0x5bdfd8(_0x54769a(_0x1fe92f)),_0x5321e3=window['localStorage']['getItem'](_0x36fc05);return _0x5321e3?window['parseInt'](_0x31622e(_0x5321e3),0x10)*_0x1ff9a2:null;}function _0x169507(_0x5b194c){return new window['Promise']((_0x346922,_0xb66125)=>{_0x5b194c['then'](_0x346922,_0xb66125),window['setTimeout'](_0xb66125,0x1d4c0);});}}_0x25ef80['on']('_sendUsageRequest',(_0x107160,_0x2718d2)=>{if(_0x2718d2[0x0]!=_0x1fe92f)return _0x420f32('UsageLimit');_0x2718d2[0x1]={..._0x2718d2[0x1],'requestId':_0x5bdfef};},{'priority':'high'}),_0x25ef80['on']('_sendUsageRequest',_0xd50d2b=>{_0x37a114(_0xd50d2b['return'])&&(_0xda4c70=!0x0,_0x5ba3d3(_0xd50d2b['return']));},{'priority':'low'}),_0x5d4962['then'](()=>{_0xda4c70||_0x420f32('UsageLimit');});});function _0x3b7215(){return'auto'==_0x25ef80['editing']['view']['_overlayModeHint'];}function _0x1e30a4(){_0x25ef80['editing']['view']['_overlayModeHint']='auto';}}function _0x18a313(_0x17de7e){const _0x3afc6f=[new window['Promise'](_0x57701c=>setTimeout(_0x57701c,0x93ecc)),_0x5d4962['then'](()=>new window['Promise'](_0x5980f2=>{let _0x2c68d6=0x0;_0x25ef80['model']['on']('applyOperation',(_0x7fe60b,_0x3b2306)=>{_0x3b2306[0x0]['isDocumentOperation']&&_0x2c68d6++,0x5e8==_0x2c68d6&&(_0x5980f2(),_0x7fe60b['off']());});}))];return window['Promise']['race'](_0x3afc6f)['then'](()=>_0x17de7e);}async function _0xef5f1(){await _0x5d4962,_0x25ef80['model']['change']=_0x4cd8fb,_0x25ef80['model']['enqueueChange']=_0x4cd8fb,_0x25ef80['enableReadOnlyMode']('model');}function _0x4e9e36(_0x60ab62){const _0x26fbb1=_0x58cf87();_0x25ef80[_0x26fbb1]='emailConfigurationHelperLicenseKey'+_0x60ab62,'Valid'!=_0x60ab62&&_0xef5f1();}function _0x58cf87(){const _0x35e03b=window['String'](window['performance']['now']())['replace']('.','');let _0x2fa26b='u';for(let _0xd6eb94=0x0;_0xd6eb94<_0x35e03b['length'];_0xd6eb94+=0x2){let _0xcc88fe=window['parseInt'](_0x35e03b['substring'](_0xd6eb94,_0xd6eb94+0x2));_0xcc88fe>=0x3e&&(_0xcc88fe-=0x3e),_0x2fa26b+=_0x21f931[_0xcc88fe];}return _0x2fa26b;}function _0x1d3ff7(){const _0x2898a6=_0x4dbd00['split']('.');if(0x3!=_0x2898a6['length'])return null;return _0x5d458b(_0x2898a6[0x1]);function _0x5d458b(_0x54f6d8){const _0x526ef4=_0x46eeab(_0x54f6d8);return _0x526ef4&&_0x430e37()?_0x526ef4:null;function _0x430e37(){const _0xfefef0=_0x526ef4['jti'],_0x3d0751=window['parseInt'](_0xfefef0['substring'](_0xfefef0['length']-0x8),0x10),_0x49741e={..._0x526ef4,'jti':_0xfefef0['substring'](0x0,_0xfefef0['length']-0x8)};return delete _0x49741e['vc'],_0x54769a(_0x49741e)==_0x3d0751;}}}async function _0x157e8f(){let _0x47102f=!0x0;try{const [_0x3bb9ac,_0x280469,_0x37c9a6]=_0x4dbd00['split']('.');return _0x49b6c3(_0x3bb9ac),await _0x57bba6(_0x3bb9ac,_0x280469,_0x37c9a6),_0x47102f;}catch{return!0x1;}function _0x49b6c3(_0x4a5cb4){const _0x48c870=_0x46eeab(_0x4a5cb4);_0x48c870&&'ES256'==_0x48c870['alg']||(_0x47102f=!0x1);}async function _0x57bba6(_0x298e97,_0x2dde1d,_0x49511f){const _0x11325=window['Uint8Array']['from'](_0x2744c3(_0x49511f),_0x1064d4=>_0x1064d4['charCodeAt'](0x0)),_0x5f2486=new window['TextEncoder']()['encode'](_0x298e97+'.'+_0x2dde1d),_0x35fe61=window['crypto']['subtle'];if(!_0x35fe61)return;const _0x38dfc2=await _0x35fe61['importKey']('jwk',_0x2189cc,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x35fe61['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x38dfc2,_0x11325,_0x5f2486)||(_0x47102f=!0x1);}}function _0x46eeab(_0xfe7d6d){return _0xfe7d6d['startsWith']('ey')?JSON['parse'](_0x2744c3(_0xfe7d6d)):null;}function _0x2744c3(_0x1f4be9){return window['atob'](_0x1f4be9['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x54769a(_0x38b47a){let _0x3b42e1=0x1505;function _0x2ced9d(_0x594ce7){for(let _0x3c7843=0x0;_0x3c7843<_0x594ce7['length'];_0x3c7843++){const _0x3ab794=_0x594ce7['charCodeAt'](_0x3c7843);_0x3b42e1=(_0x3b42e1<<0x5)+_0x3b42e1+_0x3ab794,_0x3b42e1&=_0x3b42e1;}}function _0x3e7859(_0x2e4046){Array['isArray'](_0x2e4046)?_0x2e4046['forEach'](_0x3e7859):_0x2e4046&&'object'==typeof _0x2e4046?Object['entries'](_0x2e4046)['sort']()['forEach'](([_0xbfec9e,_0x29cb93])=>{_0x2ced9d(_0xbfec9e),_0x3e7859(_0x29cb93);}):_0x2ced9d(window['String'](_0x2e4046));}return _0x3e7859(_0x38b47a),_0x3b42e1>>>0x0;}function _0x5bdfd8(_0xcf57e6){return _0xcf57e6['toString'](0x10)['padStart'](0x8,'0');}function _0x31622e(_0x42625a){return _0x42625a['split']('')['reverse']()['join']('');}function _0x4cd8fb(){}_0x4e9e36(await _0x3cbe9a());}_0xf7fa66(_0x2b304b['editor']);}(this);}['_logSuppressibleWarning'](_0x5d2b3d,_0x311d1e){if(this['_isSuppressedLog'](_0x5d2b3d,_0x311d1e))return;const _0x33ebe5=r+'/support/error-codes.html#error-'+_0x5d2b3d;console['warn']('%cEmailConfigurationHelper%c\x20'+_0x5d2b3d,'background:\x20#E65100;\x20color:\x20white;\x20padding:\x202px\x204px;','',..._0x311d1e?[_0x311d1e]:[],'\x0aRead\x20more:\x20'+_0x33ebe5);}['_logSuppressibleInfo'](_0x1d364b,_0xfba6de,_0x577b0a){if(this['_isSuppressedLog'](_0x1d364b))return;let _0x3366ed=_0xfba6de;_0x577b0a&&(_0x3366ed+='\x0aRead\x20more:\x20'+(r+'/'+_0x577b0a)),console['info']('%cEmailConfigurationHelper%c\x20'+_0x1d364b,'background:\x20#4169E1;\x20color:\x20white;\x20padding:\x202px\x204px;','',_0x3366ed);}_checkUnsupportedPlugin(_0x2cadfb,_0xeda47f){this['editor']['plugins']['has'](_0x2cadfb)&&this['_logSuppressibleWarning']('email-configuration-unsupported-plugin',{'pluginName':_0x2cadfb,..._0xeda47f});}_validateConfigColorValue(_0x530d4e){const _0x31b720=this['editor']['config']['get'](_0x530d4e);if(!_0x31b720)return;const _0x23200d=Array['isArray'](_0x31b720),_0x20d6e1=_0x23200d?_0x31b720:[_0x31b720];for(const [_0x4757b7,_0x249b7d]of _0x20d6e1['entries']()){const _0x4021b1='string'==typeof _0x249b7d?_0x249b7d:_0x249b7d['color'];s(_0x4021b1)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-value',{'configPath':_0x23200d?_0x530d4e+'['+_0x4757b7+']':_0x530d4e,'color':_0x4021b1});}}_validateConfigColorFormat(_0x5409f5){const _0x839ca=this['editor']['config']['get'](_0x5409f5);_0x839ca&&l(_0x839ca)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-format',{'configPath':_0x5409f5,'format':_0x839ca});}['_isSuppressedLog'](_0x3c4e68,_0x5742c6){const _0x590a0b=this['editor']['config']['get']('email.logs');return!!_0x590a0b['suppressAll']||(!('function'!=typeof _0x590a0b['suppress']||!_0x590a0b['suppress'](_0x3c4e68,_0x5742c6))||!(!Array['isArray'](_0x590a0b['suppress'])||!_0x590a0b['suppress']['includes'](_0x3c4e68)));}};const a=['hsl','hsla','hwb','lab','lch','oklab','oklch','color-mix','rgba'];function s(_0x3eeb10){return!!_0x3eeb10&&a['some'](_0x4b91be=>_0x3eeb10['includes'](_0x4b91be+'('));}function l(_0x17e760){return!!_0x17e760&&a['includes'](_0x17e760);}var u=class extends _0x56ebd8{static get requires(){return[o];}static get['pluginName'](){return'HighlightEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['editor']['plugins']['get'](o)['_checkUnsupportedPlugin']('Highlight');}};function c(_0x38a1cb,_0x426919){const _0x4e6a7e=_0x38a1cb['ownerDocument'],{table:_0x1e2afd,cell:_0x18cca1}=g(_0x4e6a7e,'100%');_0x426919['align']&&_0x18cca1['setAttribute']('align',_0x3d8488(_0x426919['align']));let _0xd663b7=_0x18cca1;if(_0x426919['width']){const {table:_0x2bdccd,cell:_0x127600}=g(_0x4e6a7e,_0x3d8488(_0x426919['width']));_0x18cca1['appendChild'](_0x2bdccd),_0xd663b7=_0x127600;}return _0x38a1cb['replaceWith'](_0x1e2afd),_0x38a1cb['removeAttribute']('align'),_0x38a1cb['removeAttribute']('width'),_0xd663b7['appendChild'](_0x38a1cb),_0xd663b7;}function g(_0x3c6510,_0x143d82){const _0x9b421c=_0x3c6510['createElement']('table');_0x143d82&&(_0x9b421c['style']['width']=_0x143d82,_0x9b421c['setAttribute']('width',h(_0x143d82))),_0x9b421c['setAttribute']('cellpadding','0'),_0x9b421c['setAttribute']('cellspacing','0'),_0x9b421c['setAttribute']('border','0'),_0x9b421c['setAttribute']('role','presentation');const _0x56d234=_0x3c6510['createElement']('tbody'),_0x47f4ec=_0x3c6510['createElement']('tr'),_0x21a828=_0x3c6510['createElement']('td');return _0x9b421c['appendChild'](_0x56d234),_0x56d234['appendChild'](_0x47f4ec),_0x47f4ec['appendChild'](_0x21a828),{'table':_0x9b421c,'cell':_0x21a828};}function f(_0x17504c){const _0x39ffa9=_0x17504c['getAsString']('margin-left'),_0x4b5acc=_0x17504c['getAsString']('margin-right'),_0x35d974=_0x39ffa9&&_0x3d8488(_0x39ffa9),_0x302436=_0x4b5acc&&_0x3d8488(_0x4b5acc);return'auto'===_0x35d974&&'auto'===_0x302436?'center':'auto'===_0x35d974?'right':'auto'===_0x302436?'left':void 0x0;}function m(_0xf4f14c,_0x15124f){const _0x3a70a6=_0xf4f14c['ownerDocument']['createElement'](_0x15124f);for(const _0x1f319e of Array['from'](_0xf4f14c['attributes']))_0x3a70a6['setAttribute'](_0x1f319e['name'],_0x1f319e['value']);for(;_0xf4f14c['firstChild'];)_0x3a70a6['appendChild'](_0xf4f14c['firstChild']);return _0x3a70a6;}function d(_0x3784ed){if('TABLE'!==_0x3784ed['tagName'])return!0x1;if('presentation'!==_0x3784ed['getAttribute']('role'))return!0x1;const _0x3b1641=p(_0x3784ed);return null!==_0x3b1641&&_0x3b1641['hasAttribute']('align');}function p(_0xef5c4e){let _0x5a6b2e=_0xef5c4e;0x1===_0xef5c4e['children']['length']&&'TBODY'===_0xef5c4e['children'][0x0]['tagName']&&(_0x5a6b2e=_0xef5c4e['children'][0x0]);const _0x3ea06f=_0x5a6b2e['children'];if(0x1!==_0x3ea06f['length']||'TR'!==_0x3ea06f[0x0]['tagName'])return null;const _0x52673e=_0x3ea06f[0x0]['children'];return 0x1!==_0x52673e['length']||'TD'!==_0x52673e[0x0]['tagName']?null:_0x52673e[0x0];}function h(_0x1acb01){return function(_0x16443d){return _0x16443d['endsWith']('px')?_0x16443d['slice'](0x0,-0x2):_0x16443d;}(_0x3d8488(_0x1acb01));}const w=(_0x294aff,_0x4454c5,{runAfterDocumentTransformation:_0x577748,runAfterChildrenTransformation:_0x252b66})=>{if('FIGURE'!==_0x294aff['tagName'])return;const _0x5cab8f=_0x4454c5['getAsString']('float');if(_0x5cab8f){if(P(_0x294aff))_0x577748(()=>{y(_0x294aff,{'align':_0x5cab8f});});else{const {table:_0x17156d,cell:_0x5d07c2}=g(_0x294aff['ownerDocument']);_0x17156d['setAttribute']('align',_0x3d8488(_0x5cab8f)),_0x17156d['setAttribute']('style',function(_0x3fb947){return _0x3fb947['getStylesEntries']()['map'](_0x209ead=>_0x209ead['join'](':'))['join'](';')+';';}(_0x4454c5)),_0x252b66(()=>{for(const _0x258ab8 of Array['from'](_0x294aff['childNodes']))_0x5d07c2['appendChild'](_0x258ab8);}),_0x577748(()=>{_0x294aff['replaceWith'](_0x17156d);});}}else{const _0x56d53a=f(_0x4454c5),_0x39c99e=_0x4454c5['getAsString']('width');if(!_0x56d53a&&!_0x39c99e)return;c(_0x294aff,{'align':_0x56d53a,'width':_0x39c99e}),_0x39c99e&&_0x4454c5['set']('width','100%'),_0x4454c5['remove']('margin-left'),_0x4454c5['remove']('margin-right'),_0x4454c5['remove']('min-width'),_0x4454c5['remove']('max-width'),_0x577748(()=>{if(!y(_0x294aff)){const _0x577ef9=m(_0x294aff,'div');_0x294aff['replaceWith'](_0x577ef9);}});}};function y(_0x28f979,_0x1f31c1={}){const _0x598ad2=P(_0x28f979);if(!_0x598ad2)return null;for(const _0x538d5d of['id','class']){const _0x3df714=_0x28f979['getAttribute'](_0x538d5d);_0x3df714&&_0x598ad2['setAttribute'](_0x538d5d,_0x3df714);}for(const _0x29b17b of['display','float','width','height'])_0x598ad2['style']['removeProperty'](_0x29b17b);const _0x4db387=_0x28f979['getAttribute']('style');if(_0x4db387){const _0x901a9e=_0x598ad2['getAttribute']('style')||'';_0x598ad2['setAttribute']('style',_0x4db387+_0x901a9e);}return _0x1f31c1['align']&&_0x598ad2['setAttribute']('align',_0x3d8488(_0x1f31c1['align'])),'fixed'!==_0x598ad2['style']['tableLayout']||_0x598ad2['style']['width']||(_0x598ad2['style']['width']='100%',_0x598ad2['setAttribute']('width','100%')),_0x28f979['replaceWith'](_0x598ad2),_0x598ad2;}function P(_0x1faf81){const _0x2aef25=Array['from'](_0x1faf81['children']);return 0x1===_0x2aef25['length']&&'TABLE'===_0x2aef25[0x0]['tagName']?_0x2aef25[0x0]:null;}var I=class extends _0x56ebd8{static get requires(){return[o];}static get['pluginName'](){return'ImageEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {config:_0x336213,plugins:_0x7d4588}=this['editor'];_0x336213['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x7d4588['get'](o)['_checkUnsupportedPlugin']('ImageBlock',{'description':'Block\x20images\x20are\x20unsupported\x20in\x20email\x20environments.\x20Consider\x20enabling\x20the\x20`transformEmailFigureToTable`\x20transformation\x20in\x20the\x20`exportInlineStyles`\x20in\x20order\x20to\x20make\x20block\x20images\x20work\x20in\x20email\x20clients.'});}},E=class extends _0x56ebd8{static get requires(){return[o];}static get['pluginName'](){return'MathTypeEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['editor']['plugins']['get'](o)['_checkUnsupportedPlugin']('MathType');}},b=class extends _0x56ebd8{static get requires(){return[o];}static get['pluginName'](){return'ExportInlineStylesEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0xc4e0eb=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('ExportInlineStyles')||_0xc4e0eb['_logSuppressibleWarning']('email-configuration-missing-export-inline-styles-plugin');}},L=class extends _0x56ebd8{static get requires(){return[o];}static get['pluginName'](){return'ListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x52c87e=this['editor']['plugins']['get'](o),_0x2d023d=this['editor']['config']['get']('list');_0x2d023d&&_0x2d023d['properties']&&_0x2d023d['properties']['reversed']&&_0x52c87e['_logSuppressibleWarning']('email-configuration-unsupported-reversed-list'),_0x2d023d&&_0x2d023d['enableListItemMarkerFormatting']&&_0x52c87e['_logSuppressibleWarning']('email-configuration-unsupported-list-item-marker-formatting');}},C=class extends _0x56ebd8{static get requires(){return[o];}static get['pluginName'](){return'TableEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['_checkRequiredTablePlugins'](),this['_checkTableConfig']();}['_checkRequiredTablePlugins'](){const {plugins:_0x15313f}=this['editor'],_0x382cb9=_0x15313f['get'](o);_0x15313f['has']('Table')&&(_0x15313f['has']('PlainTableOutput')||_0x382cb9['_logSuppressibleWarning']('email-configuration-missing-plain-table-output-plugin'),_0x15313f['has']('TableLayout')||_0x382cb9['_logSuppressibleWarning']('email-configuration-missing-table-layout-plugin'));}['_checkTableConfig'](){const {config:_0x1d780f,plugins:_0x2f5c8b}=this['editor'];_0x1d780f['get']('table')&&_0x2f5c8b['has']('Table')&&(this['_checkTablePropertiesConfig']('tableCellProperties'),this['_checkTablePropertiesConfig']('tableProperties'));}_checkTablePropertiesConfig(_0x3ddc53){const _0x3b5482=this['editor']['plugins']['get'](o);_0x3b5482['_validateConfigColorValue']('table.'+_0x3ddc53+'.borderColors'),_0x3b5482['_validateConfigColorValue']('table.'+_0x3ddc53+'.backgroundColors'),_0x3b5482['_validateConfigColorValue']('table.'+_0x3ddc53+'.defaultProperties.borderColor'),_0x3b5482['_validateConfigColorValue']('table.'+_0x3ddc53+'.defaultProperties'),_0x3b5482['_validateConfigColorFormat']('table.'+_0x3ddc53+'.colorPicker.format');}},k=class extends _0x56ebd8{static get requires(){return[o];}static get['pluginName'](){return'EmptyBlockEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x543a17=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('EmptyBlock')||_0x543a17['_logSuppressibleInfo']('email-configuration-missing-empty-block-plugin','Consider\x20enabling\x20the\x20EmptyBlock\x20plugin\x20to\x20ensure\x20that\x20exported\x20content\x20has\x20empty\x20blocks.','features/email-editing/email.html#empty-block-plugin');}},T=class extends _0x56ebd8{static get requires(){return[o];}static get['pluginName'](){return'FontEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {plugins:_0x225a70}=this['editor'];_0x225a70['has']('FontColorEditing')&&this['_checkColorConfig']('fontColor'),_0x225a70['has']('FontBackgroundColorEditing')&&this['_checkColorConfig']('fontBackgroundColor');}['_checkColorConfig'](_0x4f2300){const _0x1a72f3=this['editor']['plugins']['get'](o);_0x1a72f3['_validateConfigColorValue'](_0x4f2300+'.colors'),_0x1a72f3['_validateConfigColorValue'](_0x4f2300+'.documentColors'),_0x1a72f3['_validateConfigColorFormat'](_0x4f2300+'.colorPicker.format');}},x=class extends _0x56ebd8{static get requires(){return[o];}static get['pluginName'](){return'SourceEditingEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {plugins:_0x54723e}=this['editor'],_0x8704f7=_0x54723e['get'](o);_0x54723e['has']('SourceEditing')||_0x54723e['has']('SourceEditingEnhanced')||_0x8704f7['_logSuppressibleWarning']('email-configuration-missing-source-editing-plugin');}},v=class extends _0x56ebd8{static get requires(){return[o];}static get['pluginName'](){return'MarkdownEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['editor']['plugins']['get'](o)['_checkUnsupportedPlugin']('Markdown');}},O=class GeneralHtmlIntegrationSupport extends _0x56ebd8{static ['UNSUPPORTED_ELEMENTS']=new Set(['object','article','details','main','nav','summary','abbr','acronym','bdi','output','hgroup','form','input','button','audio','canvas','meter','progress','iframe']);static get requires(){return[o];}static get['pluginName'](){return'GeneralHtmlIntegrationSupport';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {plugins:_0x4d4fc7}=this['editor'];if(!_0x4d4fc7['has']('DataFilter'))return;const _0x505fc6=_0x4d4fc7['get']('DataFilter'),_0x34600b=_0x4d4fc7['get'](o);for(const _0x1437c9 of GeneralHtmlIntegrationSupport['UNSUPPORTED_ELEMENTS'])_0x505fc6['once']('register:'+_0x1437c9,(_0x744124,_0x3bb90f)=>{_0x34600b['_logSuppressibleWarning']('email-unsupported-html-element',{'element':_0x3bb90f['view']});});}},A=class extends _0x56ebd8{static get requires(){return[o];}static get['pluginName'](){return'MergeFieldsEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x213769=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('MergeFields')||_0x213769['_logSuppressibleInfo']('email-configuration-missing-merge-fields-plugin','Consider\x20enabling\x20the\x20MergeFields\x20plugin\x20which\x20allows\x20inserting\x20dynamic\x20data\x20placeholders\x20into\x20content.','features/email-editing/email.html#merge-fields-plugin');}},H=class extends _0x56ebd8{static get requires(){return[o];}static get['pluginName'](){return'TemplateEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x44d013=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('Template')||_0x44d013['_logSuppressibleInfo']('email-configuration-missing-template-plugin','Consider\x20enabling\x20the\x20Template\x20plugin\x20which\x20allows\x20inserting\x20predefined\x20e-mail\x20templates\x20into\x20the\x20editor.','features/email-editing/email.html#template-plugin');}},N=class extends _0x56ebd8{static get requires(){return[o];}static get['pluginName'](){return'UploadEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['editor']['plugins']['get'](o)['_checkUnsupportedPlugin']('Base64UploadAdapter');}},S=class extends _0x56ebd8{static get requires(){return[o];}static get['pluginName'](){return'MediaEmbedEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['editor']['plugins']['get'](o)['_checkUnsupportedPlugin']('MediaEmbed');}},q=class extends _0x56ebd8{static get requires(){return[o];}static get['pluginName'](){return'TodoListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['editor']['plugins']['get'](o)['_checkUnsupportedPlugin']('TodoList');}},$=class extends _0x56ebd8{static get requires(){return[o];}static get['pluginName'](){return'MultiLevelListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['editor']['plugins']['get'](o)['_checkUnsupportedPlugin']('MultiLevelList',{'description':'The\x20multi-level\x20lists\x20are\x20rendered\x20incorrectly\x20in\x20Outlook\x202021.'});}},B=class extends _0x56ebd8{static get requires(){return[o];}static get['pluginName'](){return'LinkEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {config:_0x31e97e,plugins:_0x247881}=this['editor'],_0x3721e5=_0x247881['get'](o);_0x31e97e['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x3721e5['_checkUnsupportedPlugin']('LinkImage',{'description':'Block\x20images\x20are\x20unsupported\x20in\x20email\x20environments.\x20The\x20LinkImage\x20plugin\x20is\x20designed\x20to\x20work\x20exclusively\x20with\x20block\x20images,\x20which\x20makes\x20it\x20not\x20applicable\x20for\x20email\x20integration.\x20Inline\x20images\x20are\x20still\x20supported\x20and\x20function\x20correctly\x20with\x20the\x20standard\x20Link\x20feature.\x20Consider\x20enabling\x20the\x20`transformEmailFigureToTable`\x20transformation\x20in\x20the\x20`exportInlineStyles`\x20in\x20order\x20to\x20make\x20block\x20images\x20work\x20in\x20email\x20clients.'});}},K=class extends _0x56ebd8{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'EmailConfigurationHelper';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[u,I,E,b,L,C,k,T,x,v,O,A,H,N,S,q,$,B];}init(){this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x1e2732=[this['editor']];for(const _0x869eae of _0x1e2732){let _0x490158;for(const _0x2a19de in _0x869eae){const _0x37e9de=_0x2a19de,_0x343576=_0x869eae[_0x37e9de];if('emailConfigurationHelperLicenseKeyValid'==_0x343576||'emailConfigurationHelperLicenseKeyInvalid'==_0x343576||'emailConfigurationHelperLicenseKeyExpired'==_0x343576||'emailConfigurationHelperLicenseKeyDomainLimit'==_0x343576||'emailConfigurationHelperLicenseKeyNotAllowed'==_0x343576||'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x343576||'emailConfigurationHelperLicenseKeyUsageLimit'==_0x343576){delete _0x869eae[_0x37e9de],_0x490158=_0x343576,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'emailConfigurationHelperLicenseKeyInvalid'==_0x490158&&_0x869eae['_showLicenseError']('invalid'),'emailConfigurationHelperLicenseKeyExpired'==_0x490158&&_0x869eae['_showLicenseError']('expired'),'emailConfigurationHelperLicenseKeyDomainLimit'==_0x490158&&_0x869eae['_showLicenseError']('domainLimit'),'emailConfigurationHelperLicenseKeyNotAllowed'==_0x490158&&_0x869eae['_showLicenseError']('featureNotAllowed','EmailConfigurationHelper'),'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x490158&&_0x869eae['_showLicenseError']('evaluationLimit'),'emailConfigurationHelperLicenseKeyUsageLimit'==_0x490158&&_0x869eae['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};const U=(_0x532864,_0x12b52d)=>{if(!['TABLE','IMG']['includes'](_0x532864['tagName']))return;const _0x19a38f=_0x12b52d['getAsString']('float');if(_0x19a38f){const _0x2a96fa=_0x3d8488(_0x19a38f);'left'!==_0x2a96fa&&'right'!==_0x2a96fa||_0x532864['setAttribute']('align',_0x2a96fa);}},D=(_0x4ea8d3,_0x49630e)=>{if('TABLE'!==_0x4ea8d3['tagName']||_0x49630e['has']('float'))return;const _0x41a30e=f(_0x49630e),_0x1e7bb9=_0x49630e['getAsString']('width');_0x41a30e&&(c(_0x4ea8d3,{'align':_0x41a30e}),_0x1e7bb9?_0x4ea8d3['setAttribute']('width',h(_0x1e7bb9)):_0x49630e['remove']('width'),_0x49630e['remove']('margin-left'),_0x49630e['remove']('margin-right'));},F=(_0x1acac6,_0x50501b)=>{if('IMG'!==_0x1acac6['tagName'])return;const _0x5baf9a=_0x50501b['getAsString']('width');_0x5baf9a&&(_0x1acac6['setAttribute']('width',h(_0x5baf9a)),_0x1acac6['setAttribute']('height','auto'));},_=(_0x1aedd9,_0x24743c,{runAfterDocumentTransformation:_0x3110af})=>{if('FIGCAPTION'!==_0x1aedd9['tagName'])return;const _0x54ebca=_0x24743c['getAsString']('display'),_0x9ed8d8=_0x24743c['getAsString']('caption-side');_0x24743c['remove']('caption-side'),_0x54ebca&&'table-caption'===_0x3d8488(_0x54ebca)&&_0x24743c['remove']('display');const _0x488009=_0x9ed8d8&&'top'===_0x3d8488(_0x9ed8d8);_0x3110af(()=>{const _0x24afac=m(_0x1aedd9,'div'),_0x2e2db2=_0x1aedd9['previousElementSibling'];_0x488009&&_0x2e2db2&&'TABLE'===_0x2e2db2['tagName']?(_0x2e2db2['before'](_0x24afac),_0x1aedd9['remove']()):_0x1aedd9['replaceWith'](_0x24afac);});},M=(_0x578030,_0xb1d48d,{runAfterChildrenTransformation:_0x10b49b})=>{'TD'===_0x578030['tagName']&&_0x10b49b(()=>{const _0x3d9da6=Array['from'](_0x578030['children']);if(0x0===_0x3d9da6['length'])return;const _0xae5d50=_0x3d9da6['map'](R),_0x50abc9=_0xae5d50[0x0];if(_0x50abc9&&_0xae5d50['every'](_0x3d6c7a=>_0x3d6c7a===_0x50abc9)){_0x578030['setAttribute']('align',_0x50abc9);for(const _0x532594 of _0x3d9da6)if(d(_0x532594)){const _0x2b3315=p(_0x532594);_0x532594['replaceWith'](...Array['from'](_0x2b3315['childNodes']));}else _0x532594['style']['removeProperty']('text-align'),_0x532594['style']['length']||_0x532594['removeAttribute']('style');}});};function R(_0x2964d4){return d(_0x2964d4)?p(_0x2964d4)['getAttribute']('align'):_0x2964d4['style']['textAlign']||void 0x0;}const V=(_0x183fa8,_0x42a596,{runAfterChildrenTransformation:_0x356e5a})=>{'TABLE'===_0x183fa8['tagName']&&_0x356e5a(()=>{const _0x3bbe43=function(_0x2b9c17,_0x5bcb21){for(const _0x1f01d0 of _0x2b9c17['children'])if(_0x1f01d0['tagName']===_0x5bcb21)return _0x1f01d0;return null;}(_0x183fa8,'COLGROUP');if(!_0x3bbe43)return;const _0x2dbd84=Array['from'](_0x3bbe43['children'])['filter'](_0x280c19=>'COL'===_0x280c19['tagName']);if(_0x2dbd84['some'](_0x559dee=>Q(_0x559dee,'span')))return;const _0x420f82=_0x2dbd84['map'](j);if(!_0x420f82['some'](Boolean))return;const _0x2a18b9=function(_0x2083da){const _0x4da471=[];for(const _0xe14afc of _0x2083da['children'])if(['THEAD','TBODY','TFOOT']['includes'](_0xe14afc['tagName'])){for(const _0x80f5f7 of _0xe14afc['children'])'TR'===_0x80f5f7['tagName']&&_0x4da471['push'](_0x80f5f7);}return _0x4da471;}(_0x183fa8)['map'](G);if(!_0x2a18b9['some'](_0x21e0b0=>_0x21e0b0['length']!==_0x420f82['length']||_0x21e0b0['some'](_0x2b4701=>function(_0xb45924){return Q(_0xb45924,'colspan')||Q(_0xb45924,'rowspan');}(_0x2b4701)||function(_0x109f4e){return Boolean(_0x109f4e['style']['getPropertyValue']('width'))||Boolean(_0x109f4e['getAttribute']('width'));}(_0x2b4701)))){for(const _0x43e62e of _0x2a18b9)_0x43e62e['forEach']((_0x52be33,_0x2896dc)=>{const _0x2ac1f0=_0x420f82[_0x2896dc];_0x2ac1f0&&(_0x52be33['setAttribute']('width',h(_0x2ac1f0)),_0x52be33['style']['setProperty']('width',_0x2ac1f0));});}});};function G(_0x3f5e1b){return Array['from'](_0x3f5e1b['children'])['filter'](_0x5a571c=>'TD'===_0x5a571c['tagName']||'TH'===_0x5a571c['tagName']);}function j(_0x1f4a01){const _0x3f6a7a=_0x1f4a01['style']['getPropertyValue']('width');if(_0x3f6a7a)return _0x3f6a7a;const _0x5789d2=_0x1f4a01['getAttribute']('width');if(!_0x5789d2)return;const _0x2afbe9=_0x3d8488(_0x5789d2);return/^\d+(\.\d+)?$/['test'](_0x2afbe9)?_0x2afbe9+'px':_0x2afbe9;}function Q(_0x54362e,_0x45c829){const _0x21f727=_0x54362e['getAttribute'](_0x45c829);return null!==_0x21f727&&'1'!==_0x21f727;}function J(_0x46dd2b={}){const _0xc97a83=[];return _0x46dd2b['useFigureToTableFallback']&&_0xc97a83['push'](w,_,M),_0xc97a83['push'](U,D,F,V),_0xc97a83;}export{K as EmailConfigurationHelper,o as EmailConfigurationLogger,k as EmptyBlockEmailIntegration,b as ExportInlineStylesEmailIntegration,T as FontEmailIntegration,O as GeneralHtmlIntegrationSupport,u as HighlightEmailIntegration,I as ImageEmailIntegration,B as LinkEmailIntegration,L as ListEmailIntegration,v as MarkdownEmailIntegration,E as MathTypeEmailIntegration,S as MediaEmbedEmailIntegration,A as MergeFieldsEmailIntegration,$ as MultiLevelListEmailIntegration,x as SourceEditingEmailIntegration,C as TableEmailIntegration,H as TemplateEmailIntegration,q as TodoListEmailIntegration,N as UploadEmailIntegration,J as getEmailInlineStylesTransformations,l as isUnsupportedEmailColorFormat,s as isUnsupportedEmailColorValue,M as transformEmailAlignToAttribute,V as transformEmailColumnWidthsToCells,_ as transformEmailFigcaptionToDiv,w as transformEmailFigureToTable,U as transformEmailFloatToAlign,F as transformEmailImageWidthAttributes,D as transformEmailMarginToAlign};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-email",
|
|
3
|
-
"version": "48.5.0-alpha.
|
|
3
|
+
"version": "48.5.0-alpha.2",
|
|
4
4
|
"description": "Email integration feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"./package.json": "./package.json"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@ckeditor/ckeditor5-core": "48.5.0-alpha.
|
|
25
|
-
"@ckeditor/ckeditor5-engine": "48.5.0-alpha.
|
|
26
|
-
"@ckeditor/ckeditor5-export-inline-styles": "48.5.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-html-support": "48.5.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-list": "48.5.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-table": "48.5.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "48.5.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-utils": "48.5.0-alpha.
|
|
24
|
+
"@ckeditor/ckeditor5-core": "48.5.0-alpha.2",
|
|
25
|
+
"@ckeditor/ckeditor5-engine": "48.5.0-alpha.2",
|
|
26
|
+
"@ckeditor/ckeditor5-export-inline-styles": "48.5.0-alpha.2",
|
|
27
|
+
"@ckeditor/ckeditor5-html-support": "48.5.0-alpha.2",
|
|
28
|
+
"@ckeditor/ckeditor5-list": "48.5.0-alpha.2",
|
|
29
|
+
"@ckeditor/ckeditor5-table": "48.5.0-alpha.2",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "48.5.0-alpha.2",
|
|
31
|
+
"@ckeditor/ckeditor5-utils": "48.5.0-alpha.2"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
34
|
"dist",
|