@ckeditor/ckeditor5-email 48.5.0-alpha.6 → 48.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x3d2d4f}from'@ckeditor/ckeditor5-core';import{uid as _0x299412}from'@ckeditor/ckeditor5-utils';import{dropImportantStyleSuffix as _0x3f4855}from'@ckeditor/ckeditor5-export-inline-styles';const r='https://ckeditor.com/docs/ckeditor5/latest';var o=class extends _0x3d2d4f{static get['pluginName'](){return'EmailConfigurationLogger';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x51d66f){super(_0x51d66f),_0x51d66f['config']['define']('email.logs',{'suppress':[],'suppressAll':!0x1});}afterInit(){!async function(_0x241393){const _0x10c7f5='unSbGpmijAwyrOzdZhCqT3YLFVtJlkDag1WMNxR4H67IB5QoX0289cUsvPEefK',_0x45b59a=0x79458,_0xca6dd8={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x4d5588(_0xb1e4e6){const _0x5b61e3=new window['Promise'](_0x14e32c=>{_0xb1e4e6['once']('ready',_0x14e32c);}),_0x456d48=window['Date']['now'](),_0x47dd72=_0xb1e4e6['config']['get']('licenseKey');async function _0x3899a2(){let _0x1ebca2,_0x2c7a18=null,_0xe0480b=null;try{return'GPL'==_0x47dd72?'NotAllowed':(_0x1ebca2=_0x11b092(),_0x1ebca2?(_0x1ebca2['usageEndpoint']&&(_0xe0480b=_0x450b8c(_0x1ebca2['usageEndpoint'],_0x1ebca2['jti'])),await _0x373d1c()?_0x2459a0()?_0x1f58e2()?'Expired':_0x3b1136()?('evaluation'==_0x1ebca2['licenseType']&&(_0x2c7a18=_0x11c39f('EvaluationLimit')),await _0x1057f2()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x1f58e2(){const _0x451e6b=['evaluation','trial']['includes'](_0x1ebca2['licenseType'])?_0x456d48/0x3e8:0xe10*_0x45b59a;return _0x1ebca2['exp']<_0x451e6b;}function _0x2459a0(){const _0x56b451=_0x1ebca2['features'];return!!_0x56b451&&(!!_0x56b451['includes']('*')||!!_0x56b451['includes']('ECH'));}function _0x3b1136(){const _0x55a6ac=_0x1ebca2['licensedHosts'];if(!_0x55a6ac||0x0==_0x55a6ac['length'])return!0x0;const {hostname:_0x4978d7}=new URL(window['location']['href']);if(_0x55a6ac['includes'](_0x4978d7))return!0x0;const _0x53ed2b=_0x4978d7['split']('.');return _0x55a6ac['filter'](_0xcf18e2=>_0xcf18e2['includes']('*'))['map'](_0x185c22=>_0x185c22['split']('.'))['filter'](_0x114bef=>_0x114bef['length']<=_0x53ed2b['length'])['map'](_0x3896a9=>Array(_0x53ed2b['length']-_0x3896a9['length'])['fill']('*'===_0x3896a9[0x0]?'*':'')['concat'](_0x3896a9))['some'](_0x38c173=>_0x53ed2b['every']((_0x1a09a0,_0x2cd603)=>_0x38c173[_0x2cd603]===_0x1a09a0||'*'===_0x38c173[_0x2cd603]));}function _0x1057f2(){return _0x2c7a18&&_0xe0480b?new window['Promise']((_0x46717c,_0x4a8645)=>{_0x2c7a18['then'](_0x46717c,_0x4a8645),_0xe0480b['then'](_0x247552=>{'Valid'!=_0x247552&&_0x46717c(_0x247552);},_0x4a8645);}):_0x2c7a18||_0xe0480b||'Valid';}}function _0x450b8c(_0x37e3a9,_0x13e181){return new window['Promise'](_0x260cb6=>{if(_0x5883d8())return _0x260cb6('Valid');_0x4e0eab(),_0xb1e4e6['decorate']('_sendUsageRequest');let _0x458591=!0x1;const _0x2ed243=_0x299412();function _0x3c0a67(_0x849b24){return!!_0x849b24&&('object'==typeof _0x849b24||'function'==typeof _0x849b24)&&'function'==typeof _0x849b24['then']&&'function'==typeof _0x849b24['catch'];}function _0x28548f(_0x241404){_0x3711c4(_0x241404)['then'](_0x1ad0e8=>_0x1ad0e8&&'ok'==_0x1ad0e8['status']?_0x414fc2(_0x8ef702(_0x2ed243+_0x13e181))!=_0x1ad0e8['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x418518=>(_0x4a873b(),_0x418518),()=>{const _0x19c6a8=_0x44f395();return null==_0x19c6a8?(_0x4a873b(),'Valid'):_0x456d48-_0x19c6a8>0x240c8400?'UsageLimit':'Valid';})['then'](_0x260cb6)['catch'](()=>{_0x260cb6('UsageLimit');});const _0x1947f5=0x36ee80;function _0x4a873b(){const _0x358fb7='llct-'+_0x414fc2(_0x8ef702(_0x37e3a9)),_0xee4931=_0xe89dc2(_0x414fc2(window['Math']['ceil'](_0x456d48/_0x1947f5)));window['localStorage']['setItem'](_0x358fb7,_0xee4931);}function _0x44f395(){const _0x442c71='llct-'+_0x414fc2(_0x8ef702(_0x37e3a9)),_0x320c05=window['localStorage']['getItem'](_0x442c71);return _0x320c05?window['parseInt'](_0xe89dc2(_0x320c05),0x10)*_0x1947f5:null;}function _0x3711c4(_0x146775){return new window['Promise']((_0x57d391,_0x5727c3)=>{_0x146775['then'](_0x57d391,_0x5727c3),window['setTimeout'](_0x5727c3,0x1d4c0);});}}_0xb1e4e6['on']('_sendUsageRequest',(_0x5154bb,_0x44e48d)=>{if(_0x44e48d[0x0]!=_0x37e3a9)return _0x260cb6('UsageLimit');_0x44e48d[0x1]={..._0x44e48d[0x1],'requestId':_0x2ed243};},{'priority':'high'}),_0xb1e4e6['on']('_sendUsageRequest',_0x2cad17=>{_0x3c0a67(_0x2cad17['return'])&&(_0x458591=!0x0,_0x28548f(_0x2cad17['return']));},{'priority':'low'}),_0x5b61e3['then'](()=>{_0x458591||_0x260cb6('UsageLimit');});});function _0x5883d8(){return'auto'==_0xb1e4e6['editing']['view']['_overlayModeHint'];}function _0x4e0eab(){_0xb1e4e6['editing']['view']['_overlayModeHint']='auto';}}function _0x11c39f(_0x5d124f){const _0x46a8c2=[new window['Promise'](_0x575593=>setTimeout(_0x575593,0x93ecc)),_0x5b61e3['then'](()=>new window['Promise'](_0x10f4d6=>{let _0x1eea8f=0x0;_0xb1e4e6['model']['on']('applyOperation',(_0x16bcff,_0x5c16a9)=>{_0x5c16a9[0x0]['isDocumentOperation']&&_0x1eea8f++,0x5e8==_0x1eea8f&&(_0x10f4d6(),_0x16bcff['off']());});}))];return window['Promise']['race'](_0x46a8c2)['then'](()=>_0x5d124f);}async function _0x181298(){await _0x5b61e3,_0xb1e4e6['model']['change']=_0x2a78fd,_0xb1e4e6['model']['enqueueChange']=_0x2a78fd,_0xb1e4e6['enableReadOnlyMode']('model');}function _0x263d68(_0x16d1a0){const _0x3fae1c=_0x57830a();_0xb1e4e6[_0x3fae1c]='emailConfigurationHelperLicenseKey'+_0x16d1a0,'Valid'!=_0x16d1a0&&_0x181298();}function _0x57830a(){const _0x4f1840=window['String'](window['performance']['now']())['replace']('.','');let _0x34c68e='u';for(let _0xa341df=0x0;_0xa341df<_0x4f1840['length'];_0xa341df+=0x2){let _0x18a495=window['parseInt'](_0x4f1840['substring'](_0xa341df,_0xa341df+0x2));_0x18a495>=0x3e&&(_0x18a495-=0x3e),_0x34c68e+=_0x10c7f5[_0x18a495];}return _0x34c68e;}function _0x11b092(){const _0x40ff1f=_0x47dd72['split']('.');if(0x3!=_0x40ff1f['length'])return null;return _0x40da46(_0x40ff1f[0x1]);function _0x40da46(_0x5bd529){const _0x13d75b=_0x389474(_0x5bd529);return _0x13d75b&&_0x2b9230()?_0x13d75b:null;function _0x2b9230(){const _0x383af0=_0x13d75b['jti'],_0x45f819=window['parseInt'](_0x383af0['substring'](_0x383af0['length']-0x8),0x10),_0x472e84={..._0x13d75b,'jti':_0x383af0['substring'](0x0,_0x383af0['length']-0x8)};return delete _0x472e84['vc'],_0x8ef702(_0x472e84)==_0x45f819;}}}async function _0x373d1c(){let _0x382da8=!0x0;try{const [_0x27d2c4,_0x1e7be6,_0x2dab7b]=_0x47dd72['split']('.');return _0x5e2965(_0x27d2c4),await _0x114e09(_0x27d2c4,_0x1e7be6,_0x2dab7b),_0x382da8;}catch{return!0x1;}function _0x5e2965(_0x4f0673){const _0x3d2f6b=_0x389474(_0x4f0673);_0x3d2f6b&&'ES256'==_0x3d2f6b['alg']||(_0x382da8=!0x1);}async function _0x114e09(_0x4e6245,_0x4fd35f,_0x18652c){const _0x43b7ad=window['Uint8Array']['from'](_0x2fa7a9(_0x18652c),_0x12bf6a=>_0x12bf6a['charCodeAt'](0x0)),_0x10c318=new window['TextEncoder']()['encode'](_0x4e6245+'.'+_0x4fd35f),_0x403879=window['crypto']['subtle'];if(!_0x403879)return;const _0x3e2ac8=await _0x403879['importKey']('jwk',_0xca6dd8,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x403879['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x3e2ac8,_0x43b7ad,_0x10c318)||(_0x382da8=!0x1);}}function _0x389474(_0x41ce2a){return _0x41ce2a['startsWith']('ey')?JSON['parse'](_0x2fa7a9(_0x41ce2a)):null;}function _0x2fa7a9(_0x528fe6){return window['atob'](_0x528fe6['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x8ef702(_0x3aa1d2){let _0x5c9194=0x1505;function _0x222e64(_0x4d4db2){for(let _0x2da1bb=0x0;_0x2da1bb<_0x4d4db2['length'];_0x2da1bb++){const _0x49c7e7=_0x4d4db2['charCodeAt'](_0x2da1bb);_0x5c9194=(_0x5c9194<<0x5)+_0x5c9194+_0x49c7e7,_0x5c9194&=_0x5c9194;}}function _0x4fa402(_0x198fb9){Array['isArray'](_0x198fb9)?_0x198fb9['forEach'](_0x4fa402):_0x198fb9&&'object'==typeof _0x198fb9?Object['entries'](_0x198fb9)['sort']()['forEach'](([_0x293fad,_0x5abedb])=>{_0x222e64(_0x293fad),_0x4fa402(_0x5abedb);}):_0x222e64(window['String'](_0x198fb9));}return _0x4fa402(_0x3aa1d2),_0x5c9194>>>0x0;}function _0x414fc2(_0x17598e){return _0x17598e['toString'](0x10)['padStart'](0x8,'0');}function _0xe89dc2(_0x4f37d8){return _0x4f37d8['split']('')['reverse']()['join']('');}function _0x2a78fd(){}_0x263d68(await _0x3899a2());}_0x4d5588(_0x241393['editor']);}(this);}['_logSuppressibleWarning'](_0x122f4b,_0x5a9728){if(this['_isSuppressedLog'](_0x122f4b,_0x5a9728))return;const _0x1d9163=r+'/support/error-codes.html#error-'+_0x122f4b;console['warn']('%cEmailConfigurationHelper%c\x20'+_0x122f4b,'background:\x20#E65100;\x20color:\x20white;\x20padding:\x202px\x204px;','',..._0x5a9728?[_0x5a9728]:[],'\x0aRead\x20more:\x20'+_0x1d9163);}['_logSuppressibleInfo'](_0x32ad34,_0xcd29e8,_0x4b63d3){if(this['_isSuppressedLog'](_0x32ad34))return;let _0x2ac8e2=_0xcd29e8;_0x4b63d3&&(_0x2ac8e2+='\x0aRead\x20more:\x20'+(r+'/'+_0x4b63d3)),console['info']('%cEmailConfigurationHelper%c\x20'+_0x32ad34,'background:\x20#4169E1;\x20color:\x20white;\x20padding:\x202px\x204px;','',_0x2ac8e2);}_checkUnsupportedPlugin(_0x5683c1,_0x22f9e3){this['editor']['plugins']['has'](_0x5683c1)&&this['_logSuppressibleWarning']('email-configuration-unsupported-plugin',{'pluginName':_0x5683c1,..._0x22f9e3});}_validateConfigColorValue(_0x17adad){const _0x1e2447=this['editor']['config']['get'](_0x17adad);if(!_0x1e2447)return;const _0x3f5dde=Array['isArray'](_0x1e2447),_0x534db6=_0x3f5dde?_0x1e2447:[_0x1e2447];for(const [_0x319925,_0x5e280f]of _0x534db6['entries']()){const _0x1ae561='string'==typeof _0x5e280f?_0x5e280f:_0x5e280f['color'];s(_0x1ae561)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-value',{'configPath':_0x3f5dde?_0x17adad+'['+_0x319925+']':_0x17adad,'color':_0x1ae561});}}_validateConfigColorFormat(_0x5a06eb){const _0x1876c4=this['editor']['config']['get'](_0x5a06eb);_0x1876c4&&l(_0x1876c4)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-format',{'configPath':_0x5a06eb,'format':_0x1876c4});}['_isSuppressedLog'](_0x13c418,_0x23ff6c){const _0x4540a8=this['editor']['config']['get']('email.logs');return!!_0x4540a8['suppressAll']||(!('function'!=typeof _0x4540a8['suppress']||!_0x4540a8['suppress'](_0x13c418,_0x23ff6c))||!(!Array['isArray'](_0x4540a8['suppress'])||!_0x4540a8['suppress']['includes'](_0x13c418)));}};const a=['hsl','hsla','hwb','lab','lch','oklab','oklch','color-mix','rgba'];function s(_0x4ae47c){return!!_0x4ae47c&&a['some'](_0x148311=>_0x4ae47c['includes'](_0x148311+'('));}function l(_0xe9480b){return!!_0xe9480b&&a['includes'](_0xe9480b);}var u=class extends _0x3d2d4f{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(_0x261a5b,_0x388192){const _0x16b2f8=_0x261a5b['ownerDocument'],{table:_0x33e1e3,cell:_0x2c0f32}=g(_0x16b2f8,'100%');_0x388192['align']&&_0x2c0f32['setAttribute']('align',_0x3f4855(_0x388192['align']));let _0x4bc092=_0x2c0f32;if(_0x388192['width']){const {table:_0x128f06,cell:_0x1050bd}=g(_0x16b2f8,_0x3f4855(_0x388192['width']));_0x2c0f32['appendChild'](_0x128f06),_0x4bc092=_0x1050bd;}return _0x261a5b['replaceWith'](_0x33e1e3),_0x261a5b['removeAttribute']('align'),_0x261a5b['removeAttribute']('width'),_0x4bc092['appendChild'](_0x261a5b),_0x4bc092;}function g(_0x1eb20e,_0x194708){const _0x3c6147=_0x1eb20e['createElement']('table');_0x194708&&(_0x3c6147['style']['width']=_0x194708,_0x3c6147['setAttribute']('width',h(_0x194708))),_0x3c6147['setAttribute']('cellpadding','0'),_0x3c6147['setAttribute']('cellspacing','0'),_0x3c6147['setAttribute']('border','0'),_0x3c6147['setAttribute']('role','presentation');const _0x1896e6=_0x1eb20e['createElement']('tbody'),_0x35396d=_0x1eb20e['createElement']('tr'),_0x298d42=_0x1eb20e['createElement']('td');return _0x3c6147['appendChild'](_0x1896e6),_0x1896e6['appendChild'](_0x35396d),_0x35396d['appendChild'](_0x298d42),{'table':_0x3c6147,'cell':_0x298d42};}function f(_0x267a0d){const _0x3b167e=_0x267a0d['getAsString']('margin-left'),_0x52e204=_0x267a0d['getAsString']('margin-right'),_0x1e7a6d=_0x3b167e&&_0x3f4855(_0x3b167e),_0x5104e3=_0x52e204&&_0x3f4855(_0x52e204);return'auto'===_0x1e7a6d&&'auto'===_0x5104e3?'center':'auto'===_0x1e7a6d?'right':'auto'===_0x5104e3?'left':void 0x0;}function m(_0x4f8155,_0x4422da){const _0xf86973=_0x4f8155['ownerDocument']['createElement'](_0x4422da);for(const _0x41b6d6 of Array['from'](_0x4f8155['attributes']))_0xf86973['setAttribute'](_0x41b6d6['name'],_0x41b6d6['value']);for(;_0x4f8155['firstChild'];)_0xf86973['appendChild'](_0x4f8155['firstChild']);return _0xf86973;}function d(_0x5d9b77){if('TABLE'!==_0x5d9b77['tagName'])return!0x1;if('presentation'!==_0x5d9b77['getAttribute']('role'))return!0x1;const _0x2eb89f=p(_0x5d9b77);return null!==_0x2eb89f&&_0x2eb89f['hasAttribute']('align');}function p(_0x5c8416){let _0xa53ba3=_0x5c8416;0x1===_0x5c8416['children']['length']&&'TBODY'===_0x5c8416['children'][0x0]['tagName']&&(_0xa53ba3=_0x5c8416['children'][0x0]);const _0x18d612=_0xa53ba3['children'];if(0x1!==_0x18d612['length']||'TR'!==_0x18d612[0x0]['tagName'])return null;const _0x19f563=_0x18d612[0x0]['children'];return 0x1!==_0x19f563['length']||'TD'!==_0x19f563[0x0]['tagName']?null:_0x19f563[0x0];}function h(_0x5960f4){return function(_0x5aadfb){return _0x5aadfb['endsWith']('px')?_0x5aadfb['slice'](0x0,-0x2):_0x5aadfb;}(_0x3f4855(_0x5960f4));}const w=(_0x514c87,_0x2a1468,{runAfterDocumentTransformation:_0x655f93,runAfterChildrenTransformation:_0xb135da})=>{if('FIGURE'!==_0x514c87['tagName'])return;const _0x50b3df=_0x2a1468['getAsString']('float');if(_0x50b3df){if(P(_0x514c87))_0x655f93(()=>{y(_0x514c87,{'align':_0x50b3df});});else{const {table:_0x25d33c,cell:_0x30210b}=g(_0x514c87['ownerDocument']);_0x25d33c['setAttribute']('align',_0x3f4855(_0x50b3df)),_0x25d33c['setAttribute']('style',function(_0x17bdc4){return _0x17bdc4['getStylesEntries']()['map'](_0x2bf85f=>_0x2bf85f['join'](':'))['join'](';')+';';}(_0x2a1468)),_0xb135da(()=>{for(const _0x2e296a of Array['from'](_0x514c87['childNodes']))_0x30210b['appendChild'](_0x2e296a);}),_0x655f93(()=>{_0x514c87['replaceWith'](_0x25d33c);});}}else{const _0x51dff7=f(_0x2a1468),_0x4b5d94=_0x2a1468['getAsString']('width');if(!_0x51dff7&&!_0x4b5d94)return;c(_0x514c87,{'align':_0x51dff7,'width':_0x4b5d94}),_0x4b5d94&&_0x2a1468['set']('width','100%'),_0x2a1468['remove']('margin-left'),_0x2a1468['remove']('margin-right'),_0x2a1468['remove']('min-width'),_0x2a1468['remove']('max-width'),_0x655f93(()=>{if(!y(_0x514c87)){const _0x27e792=m(_0x514c87,'div');_0x514c87['replaceWith'](_0x27e792);}});}};function y(_0x2ce9ec,_0x338769={}){const _0x481851=P(_0x2ce9ec);if(!_0x481851)return null;for(const _0x20ff4d of['id','class']){const _0x1e40eb=_0x2ce9ec['getAttribute'](_0x20ff4d);_0x1e40eb&&_0x481851['setAttribute'](_0x20ff4d,_0x1e40eb);}for(const _0x1ea61c of['display','float','width','height'])_0x481851['style']['removeProperty'](_0x1ea61c);const _0xe50f91=_0x2ce9ec['getAttribute']('style');if(_0xe50f91){const _0x58ff60=_0x481851['getAttribute']('style')||'';_0x481851['setAttribute']('style',_0xe50f91+_0x58ff60);}return _0x338769['align']&&_0x481851['setAttribute']('align',_0x3f4855(_0x338769['align'])),'fixed'!==_0x481851['style']['tableLayout']||_0x481851['style']['width']||(_0x481851['style']['width']='100%',_0x481851['setAttribute']('width','100%')),_0x2ce9ec['replaceWith'](_0x481851),_0x481851;}function P(_0xab5088){const _0x41e5c4=Array['from'](_0xab5088['children']);return 0x1===_0x41e5c4['length']&&'TABLE'===_0x41e5c4[0x0]['tagName']?_0x41e5c4[0x0]:null;}var I=class extends _0x3d2d4f{static get requires(){return[o];}static get['pluginName'](){return'ImageEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {config:_0x5f1cc3,plugins:_0x461013}=this['editor'];_0x5f1cc3['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x461013['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 _0x3d2d4f{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 _0x3d2d4f{static get requires(){return[o];}static get['pluginName'](){return'ExportInlineStylesEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0xd58d04=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('ExportInlineStyles')||_0xd58d04['_logSuppressibleWarning']('email-configuration-missing-export-inline-styles-plugin');}},L=class extends _0x3d2d4f{static get requires(){return[o];}static get['pluginName'](){return'ListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x5507e7=this['editor']['plugins']['get'](o),_0x229698=this['editor']['config']['get']('list');_0x229698&&_0x229698['properties']&&_0x229698['properties']['reversed']&&_0x5507e7['_logSuppressibleWarning']('email-configuration-unsupported-reversed-list'),_0x229698&&_0x229698['enableListItemMarkerFormatting']&&_0x5507e7['_logSuppressibleWarning']('email-configuration-unsupported-list-item-marker-formatting');}},C=class extends _0x3d2d4f{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:_0x1e2c59}=this['editor'],_0x2f741f=_0x1e2c59['get'](o);_0x1e2c59['has']('Table')&&(_0x1e2c59['has']('PlainTableOutput')||_0x2f741f['_logSuppressibleWarning']('email-configuration-missing-plain-table-output-plugin'),_0x1e2c59['has']('TableLayout')||_0x2f741f['_logSuppressibleWarning']('email-configuration-missing-table-layout-plugin'));}['_checkTableConfig'](){const {config:_0x2faf38,plugins:_0x4e08a7}=this['editor'];_0x2faf38['get']('table')&&_0x4e08a7['has']('Table')&&(this['_checkTablePropertiesConfig']('tableCellProperties'),this['_checkTablePropertiesConfig']('tableProperties'));}_checkTablePropertiesConfig(_0xcc81e2){const _0x3895a3=this['editor']['plugins']['get'](o);_0x3895a3['_validateConfigColorValue']('table.'+_0xcc81e2+'.borderColors'),_0x3895a3['_validateConfigColorValue']('table.'+_0xcc81e2+'.backgroundColors'),_0x3895a3['_validateConfigColorValue']('table.'+_0xcc81e2+'.defaultProperties.borderColor'),_0x3895a3['_validateConfigColorValue']('table.'+_0xcc81e2+'.defaultProperties'),_0x3895a3['_validateConfigColorFormat']('table.'+_0xcc81e2+'.colorPicker.format');}},k=class extends _0x3d2d4f{static get requires(){return[o];}static get['pluginName'](){return'EmptyBlockEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x4dcfc9=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('EmptyBlock')||_0x4dcfc9['_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 _0x3d2d4f{static get requires(){return[o];}static get['pluginName'](){return'FontEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {plugins:_0x127f66}=this['editor'];_0x127f66['has']('FontColorEditing')&&this['_checkColorConfig']('fontColor'),_0x127f66['has']('FontBackgroundColorEditing')&&this['_checkColorConfig']('fontBackgroundColor');}['_checkColorConfig'](_0x5b99e2){const _0x136ec9=this['editor']['plugins']['get'](o);_0x136ec9['_validateConfigColorValue'](_0x5b99e2+'.colors'),_0x136ec9['_validateConfigColorValue'](_0x5b99e2+'.documentColors'),_0x136ec9['_validateConfigColorFormat'](_0x5b99e2+'.colorPicker.format');}},x=class extends _0x3d2d4f{static get requires(){return[o];}static get['pluginName'](){return'SourceEditingEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {plugins:_0xe03827}=this['editor'],_0x544773=_0xe03827['get'](o);_0xe03827['has']('SourceEditing')||_0xe03827['has']('SourceEditingEnhanced')||_0x544773['_logSuppressibleWarning']('email-configuration-missing-source-editing-plugin');}},v=class extends _0x3d2d4f{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 _0x3d2d4f{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:_0x28e527}=this['editor'];if(!_0x28e527['has']('DataFilter'))return;const _0xb4f6c3=_0x28e527['get']('DataFilter'),_0x40e77b=_0x28e527['get'](o);for(const _0x2ad63a of GeneralHtmlIntegrationSupport['UNSUPPORTED_ELEMENTS'])_0xb4f6c3['once']('register:'+_0x2ad63a,(_0x37cc23,_0xa36d45)=>{_0x40e77b['_logSuppressibleWarning']('email-unsupported-html-element',{'element':_0xa36d45['view']});});}},A=class extends _0x3d2d4f{static get requires(){return[o];}static get['pluginName'](){return'MergeFieldsEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0xa17000=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('MergeFields')||_0xa17000['_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 _0x3d2d4f{static get requires(){return[o];}static get['pluginName'](){return'TemplateEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x56a469=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('Template')||_0x56a469['_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 _0x3d2d4f{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 _0x3d2d4f{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 _0x3d2d4f{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 _0x3d2d4f{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 _0x3d2d4f{static get requires(){return[o];}static get['pluginName'](){return'LinkEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {config:_0x3e9b27,plugins:_0x3db254}=this['editor'],_0x204f36=_0x3db254['get'](o);_0x3e9b27['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x204f36['_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 _0x3d2d4f{['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 _0x2233fc=[this['editor']];for(const _0x2c6a54 of _0x2233fc){let _0x31d956;for(const _0x51c97d in _0x2c6a54){const _0x461b04=_0x51c97d,_0x4ca0c3=_0x2c6a54[_0x461b04];if('emailConfigurationHelperLicenseKeyValid'==_0x4ca0c3||'emailConfigurationHelperLicenseKeyInvalid'==_0x4ca0c3||'emailConfigurationHelperLicenseKeyExpired'==_0x4ca0c3||'emailConfigurationHelperLicenseKeyDomainLimit'==_0x4ca0c3||'emailConfigurationHelperLicenseKeyNotAllowed'==_0x4ca0c3||'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x4ca0c3||'emailConfigurationHelperLicenseKeyUsageLimit'==_0x4ca0c3){delete _0x2c6a54[_0x461b04],_0x31d956=_0x4ca0c3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'emailConfigurationHelperLicenseKeyInvalid'==_0x31d956&&_0x2c6a54['_showLicenseError']('invalid'),'emailConfigurationHelperLicenseKeyExpired'==_0x31d956&&_0x2c6a54['_showLicenseError']('expired'),'emailConfigurationHelperLicenseKeyDomainLimit'==_0x31d956&&_0x2c6a54['_showLicenseError']('domainLimit'),'emailConfigurationHelperLicenseKeyNotAllowed'==_0x31d956&&_0x2c6a54['_showLicenseError']('featureNotAllowed','EmailConfigurationHelper'),'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x31d956&&_0x2c6a54['_showLicenseError']('evaluationLimit'),'emailConfigurationHelperLicenseKeyUsageLimit'==_0x31d956&&_0x2c6a54['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};const U=(_0x2549ab,_0x5e00d4)=>{if(!['TABLE','IMG']['includes'](_0x2549ab['tagName']))return;const _0x114de7=_0x5e00d4['getAsString']('float');if(_0x114de7){const _0x2312f3=_0x3f4855(_0x114de7);'left'!==_0x2312f3&&'right'!==_0x2312f3||_0x2549ab['setAttribute']('align',_0x2312f3);}},D=(_0x3af9bf,_0x3cce6f)=>{if('TABLE'!==_0x3af9bf['tagName']||_0x3cce6f['has']('float'))return;const _0x2b5de6=f(_0x3cce6f),_0x35d7c8=_0x3cce6f['getAsString']('width');_0x2b5de6&&(c(_0x3af9bf,{'align':_0x2b5de6}),_0x35d7c8?_0x3af9bf['setAttribute']('width',h(_0x35d7c8)):_0x3cce6f['remove']('width'),_0x3cce6f['remove']('margin-left'),_0x3cce6f['remove']('margin-right'));},F=(_0x547f53,_0x397010)=>{if('IMG'!==_0x547f53['tagName'])return;const _0x28ea09=_0x397010['getAsString']('width');_0x28ea09&&(_0x547f53['setAttribute']('width',h(_0x28ea09)),_0x547f53['setAttribute']('height','auto'));},_=(_0x386fd5,_0x18ff78,{runAfterDocumentTransformation:_0x5b0a27})=>{if('FIGCAPTION'!==_0x386fd5['tagName'])return;const _0x491f48=_0x18ff78['getAsString']('display'),_0x12e884=_0x18ff78['getAsString']('caption-side');_0x18ff78['remove']('caption-side'),_0x491f48&&'table-caption'===_0x3f4855(_0x491f48)&&_0x18ff78['remove']('display');const _0x43793f=_0x12e884&&'top'===_0x3f4855(_0x12e884);_0x5b0a27(()=>{const _0x180639=m(_0x386fd5,'div'),_0x5958d4=_0x386fd5['previousElementSibling'];_0x43793f&&_0x5958d4&&'TABLE'===_0x5958d4['tagName']?(_0x5958d4['before'](_0x180639),_0x386fd5['remove']()):_0x386fd5['replaceWith'](_0x180639);});},M=(_0x115882,_0x4afec6,{runAfterChildrenTransformation:_0x4cee62})=>{'TD'===_0x115882['tagName']&&_0x4cee62(()=>{const _0x132558=Array['from'](_0x115882['children']);if(0x0===_0x132558['length'])return;const _0x280f1a=_0x132558['map'](R),_0x312319=_0x280f1a[0x0];if(_0x312319&&_0x280f1a['every'](_0x1012eb=>_0x1012eb===_0x312319)){_0x115882['setAttribute']('align',_0x312319);for(const _0x336ae9 of _0x132558)if(d(_0x336ae9)){const _0x2e652b=p(_0x336ae9);_0x336ae9['replaceWith'](...Array['from'](_0x2e652b['childNodes']));}else _0x336ae9['style']['removeProperty']('text-align'),_0x336ae9['style']['length']||_0x336ae9['removeAttribute']('style');}});};function R(_0x57459e){return d(_0x57459e)?p(_0x57459e)['getAttribute']('align'):_0x57459e['style']['textAlign']||void 0x0;}const V=(_0xda156e,_0x2c45c4,{runAfterChildrenTransformation:_0x55d953})=>{'TABLE'===_0xda156e['tagName']&&_0x55d953(()=>{const _0x4449db=function(_0x542078,_0x56884a){for(const _0x1e9339 of _0x542078['children'])if(_0x1e9339['tagName']===_0x56884a)return _0x1e9339;return null;}(_0xda156e,'COLGROUP');if(!_0x4449db)return;const _0x11ef8b=Array['from'](_0x4449db['children'])['filter'](_0x2ac939=>'COL'===_0x2ac939['tagName']);if(_0x11ef8b['some'](_0x44d6e5=>Q(_0x44d6e5,'span')))return;const _0x2e4c71=_0x11ef8b['map'](j);if(!_0x2e4c71['some'](Boolean))return;const _0x157474=function(_0x4c54e0){const _0x447a52=[];for(const _0x108c79 of _0x4c54e0['children'])if(['THEAD','TBODY','TFOOT']['includes'](_0x108c79['tagName'])){for(const _0x118dbf of _0x108c79['children'])'TR'===_0x118dbf['tagName']&&_0x447a52['push'](_0x118dbf);}return _0x447a52;}(_0xda156e)['map'](G);if(!_0x157474['some'](_0x4aec52=>_0x4aec52['length']!==_0x2e4c71['length']||_0x4aec52['some'](_0x2533bb=>function(_0x44973a){return Q(_0x44973a,'colspan')||Q(_0x44973a,'rowspan');}(_0x2533bb)||function(_0x51a93f){return Boolean(_0x51a93f['style']['getPropertyValue']('width'))||Boolean(_0x51a93f['getAttribute']('width'));}(_0x2533bb)))){for(const _0x40e343 of _0x157474)_0x40e343['forEach']((_0x4c0af8,_0x479ff6)=>{const _0x2f838e=_0x2e4c71[_0x479ff6];_0x2f838e&&(_0x4c0af8['setAttribute']('width',h(_0x2f838e)),_0x4c0af8['style']['setProperty']('width',_0x2f838e));});}});};function G(_0x27f672){return Array['from'](_0x27f672['children'])['filter'](_0x5e7b95=>'TD'===_0x5e7b95['tagName']||'TH'===_0x5e7b95['tagName']);}function j(_0x5a78a5){const _0x4b81a9=_0x5a78a5['style']['getPropertyValue']('width');if(_0x4b81a9)return _0x4b81a9;const _0x31c515=_0x5a78a5['getAttribute']('width');if(!_0x31c515)return;const _0x50be7d=_0x3f4855(_0x31c515);return/^\d+(\.\d+)?$/['test'](_0x50be7d)?_0x50be7d+'px':_0x50be7d;}function Q(_0x5b1a1a,_0x5181e1){const _0xac4056=_0x5b1a1a['getAttribute'](_0x5181e1);return null!==_0xac4056&&'1'!==_0xac4056;}function J(_0x141aa2={}){const _0x5a9207=[];return _0x141aa2['useFigureToTableFallback']&&_0x5a9207['push'](w,_,M),_0x5a9207['push'](U,D,F,V),_0x5a9207;}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 _0x3448ce}from'@ckeditor/ckeditor5-core';import{uid as _0x3b1bc1}from'@ckeditor/ckeditor5-utils';import{dropImportantStyleSuffix as _0x5869e1}from'@ckeditor/ckeditor5-export-inline-styles';const r='https://ckeditor.com/docs/ckeditor5/latest';var o=class extends _0x3448ce{static get['pluginName'](){return'EmailConfigurationLogger';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1ecedf){super(_0x1ecedf),_0x1ecedf['config']['define']('email.logs',{'suppress':[],'suppressAll':!0x1});}afterInit(){!async function(_0x288a1f){const _0x4edd74='unSbGpmijAwyrOzdZhCqT3YLFVtJlkDag1WMNxR4H67IB5QoX0289cUsvPEefK',_0x3e7606=0x79470,_0x4e234b={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x5be06e(_0x79f574){const _0x38dab5=new window['Promise'](_0x2f4371=>{_0x79f574['once']('ready',_0x2f4371);}),_0x409959=window['Date']['now'](),_0x403505=_0x79f574['config']['get']('licenseKey');async function _0x30727e(){let _0x546420,_0x49afd0=null,_0x4a66e4=null;try{return'GPL'==_0x403505?'NotAllowed':(_0x546420=_0x1db833(),_0x546420?(_0x546420['usageEndpoint']&&(_0x4a66e4=_0x32f00f(_0x546420['usageEndpoint'],_0x546420['jti'])),await _0x52c266()?_0x3e802a()?_0x53c437()?'Expired':_0x37ed3e()?('evaluation'==_0x546420['licenseType']&&(_0x49afd0=_0x5f2719('EvaluationLimit')),await _0x5d4902()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x53c437(){const _0x4dc7cd=['evaluation','trial']['includes'](_0x546420['licenseType'])?_0x409959/0x3e8:0xe10*_0x3e7606;return _0x546420['exp']<_0x4dc7cd;}function _0x3e802a(){const _0x27a39b=_0x546420['features'];return!!_0x27a39b&&(!!_0x27a39b['includes']('*')||!!_0x27a39b['includes']('ECH'));}function _0x37ed3e(){const _0x1bd460=_0x546420['licensedHosts'];if(!_0x1bd460||0x0==_0x1bd460['length'])return!0x0;const {hostname:_0x2ea1b6}=new URL(window['location']['href']);if(_0x1bd460['includes'](_0x2ea1b6))return!0x0;const _0x1d0834=_0x2ea1b6['split']('.');return _0x1bd460['filter'](_0x16436a=>_0x16436a['includes']('*'))['map'](_0x108d9e=>_0x108d9e['split']('.'))['filter'](_0x26f179=>_0x26f179['length']<=_0x1d0834['length'])['map'](_0x3f489f=>Array(_0x1d0834['length']-_0x3f489f['length'])['fill']('*'===_0x3f489f[0x0]?'*':'')['concat'](_0x3f489f))['some'](_0x950e9b=>_0x1d0834['every']((_0x434fc4,_0xbd94b3)=>_0x950e9b[_0xbd94b3]===_0x434fc4||'*'===_0x950e9b[_0xbd94b3]));}function _0x5d4902(){return _0x49afd0&&_0x4a66e4?new window['Promise']((_0x2d7f59,_0x1e65c8)=>{_0x49afd0['then'](_0x2d7f59,_0x1e65c8),_0x4a66e4['then'](_0x4835f7=>{'Valid'!=_0x4835f7&&_0x2d7f59(_0x4835f7);},_0x1e65c8);}):_0x49afd0||_0x4a66e4||'Valid';}}function _0x32f00f(_0x5d8c36,_0x2c1533){return new window['Promise'](_0x32cfe2=>{if(_0x53d9cb())return _0x32cfe2('Valid');_0x42cf8d(),_0x79f574['decorate']('_sendUsageRequest');let _0xcbfb0f=!0x1;const _0x2aab37=_0x3b1bc1();function _0x42f190(_0xd1dd09){return!!_0xd1dd09&&('object'==typeof _0xd1dd09||'function'==typeof _0xd1dd09)&&'function'==typeof _0xd1dd09['then']&&'function'==typeof _0xd1dd09['catch'];}function _0x14ebad(_0x41b853){_0xae7cef(_0x41b853)['then'](_0x3758d7=>_0x3758d7&&'ok'==_0x3758d7['status']?_0x5b0103(_0x14a8f7(_0x2aab37+_0x2c1533))!=_0x3758d7['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x130847=>(_0x7479bd(),_0x130847),()=>{const _0x242db8=_0x571d5f();return null==_0x242db8?(_0x7479bd(),'Valid'):_0x409959-_0x242db8>0x240c8400?'UsageLimit':'Valid';})['then'](_0x32cfe2)['catch'](()=>{_0x32cfe2('UsageLimit');});const _0x38c27e=0x36ee80;function _0x7479bd(){const _0x438c00='llct-'+_0x5b0103(_0x14a8f7(_0x5d8c36)),_0x1f0618=_0x17af7f(_0x5b0103(window['Math']['ceil'](_0x409959/_0x38c27e)));window['localStorage']['setItem'](_0x438c00,_0x1f0618);}function _0x571d5f(){const _0x22a851='llct-'+_0x5b0103(_0x14a8f7(_0x5d8c36)),_0x16318f=window['localStorage']['getItem'](_0x22a851);return _0x16318f?window['parseInt'](_0x17af7f(_0x16318f),0x10)*_0x38c27e:null;}function _0xae7cef(_0x2973e5){return new window['Promise']((_0xe4083,_0x59a6f6)=>{_0x2973e5['then'](_0xe4083,_0x59a6f6),window['setTimeout'](_0x59a6f6,0x1d4c0);});}}_0x79f574['on']('_sendUsageRequest',(_0x312e7d,_0x299366)=>{if(_0x299366[0x0]!=_0x5d8c36)return _0x32cfe2('UsageLimit');_0x299366[0x1]={..._0x299366[0x1],'requestId':_0x2aab37};},{'priority':'high'}),_0x79f574['on']('_sendUsageRequest',_0x14346f=>{_0x42f190(_0x14346f['return'])&&(_0xcbfb0f=!0x0,_0x14ebad(_0x14346f['return']));},{'priority':'low'}),_0x38dab5['then'](()=>{_0xcbfb0f||_0x32cfe2('UsageLimit');});});function _0x53d9cb(){return'auto'==_0x79f574['editing']['view']['_overlayModeHint'];}function _0x42cf8d(){_0x79f574['editing']['view']['_overlayModeHint']='auto';}}function _0x5f2719(_0x1e3d3b){const _0x1f619b=[new window['Promise'](_0x2b0137=>setTimeout(_0x2b0137,0x93ecc)),_0x38dab5['then'](()=>new window['Promise'](_0x21f6ee=>{let _0x5c7a7a=0x0;_0x79f574['model']['on']('applyOperation',(_0x1c749e,_0xd6cc49)=>{_0xd6cc49[0x0]['isDocumentOperation']&&_0x5c7a7a++,0x5e8==_0x5c7a7a&&(_0x21f6ee(),_0x1c749e['off']());});}))];return window['Promise']['race'](_0x1f619b)['then'](()=>_0x1e3d3b);}async function _0x1d88c6(){await _0x38dab5,_0x79f574['model']['change']=_0x5e5baa,_0x79f574['model']['enqueueChange']=_0x5e5baa,_0x79f574['enableReadOnlyMode']('model');}function _0xf56dbe(_0x2c57f2){const _0x474b9d=_0x48fa2f();_0x79f574[_0x474b9d]='emailConfigurationHelperLicenseKey'+_0x2c57f2,'Valid'!=_0x2c57f2&&_0x1d88c6();}function _0x48fa2f(){const _0x158c0d=window['String'](window['performance']['now']())['replace']('.','');let _0x39d5f2='u';for(let _0x24a288=0x0;_0x24a288<_0x158c0d['length'];_0x24a288+=0x2){let _0x14d043=window['parseInt'](_0x158c0d['substring'](_0x24a288,_0x24a288+0x2));_0x14d043>=0x3e&&(_0x14d043-=0x3e),_0x39d5f2+=_0x4edd74[_0x14d043];}return _0x39d5f2;}function _0x1db833(){const _0x4290b0=_0x403505['split']('.');if(0x3!=_0x4290b0['length'])return null;return _0x2a4ed0(_0x4290b0[0x1]);function _0x2a4ed0(_0x844447){const _0x35841c=_0x3f366a(_0x844447);return _0x35841c&&_0x379609()?_0x35841c:null;function _0x379609(){const _0x29b1a1=_0x35841c['jti'],_0x473b0d=window['parseInt'](_0x29b1a1['substring'](_0x29b1a1['length']-0x8),0x10),_0x52cc2f={..._0x35841c,'jti':_0x29b1a1['substring'](0x0,_0x29b1a1['length']-0x8)};return delete _0x52cc2f['vc'],_0x14a8f7(_0x52cc2f)==_0x473b0d;}}}async function _0x52c266(){let _0x2f31e9=!0x0;try{const [_0x32e781,_0x57f2c5,_0x38b627]=_0x403505['split']('.');return _0x2550a4(_0x32e781),await _0x144177(_0x32e781,_0x57f2c5,_0x38b627),_0x2f31e9;}catch{return!0x1;}function _0x2550a4(_0x17ddc9){const _0xbb51ba=_0x3f366a(_0x17ddc9);_0xbb51ba&&'ES256'==_0xbb51ba['alg']||(_0x2f31e9=!0x1);}async function _0x144177(_0x190a92,_0x3bdc20,_0x2690aa){const _0x3cabf8=window['Uint8Array']['from'](_0x5b389c(_0x2690aa),_0x59829b=>_0x59829b['charCodeAt'](0x0)),_0x19c188=new window['TextEncoder']()['encode'](_0x190a92+'.'+_0x3bdc20),_0x4e41dc=window['crypto']['subtle'];if(!_0x4e41dc)return;const _0x234742=await _0x4e41dc['importKey']('jwk',_0x4e234b,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x4e41dc['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x234742,_0x3cabf8,_0x19c188)||(_0x2f31e9=!0x1);}}function _0x3f366a(_0x484fc9){return _0x484fc9['startsWith']('ey')?JSON['parse'](_0x5b389c(_0x484fc9)):null;}function _0x5b389c(_0x557083){return window['atob'](_0x557083['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x14a8f7(_0x46225){let _0x38be2d=0x1505;function _0x115022(_0x3d92b4){for(let _0x56da8f=0x0;_0x56da8f<_0x3d92b4['length'];_0x56da8f++){const _0x2c85f0=_0x3d92b4['charCodeAt'](_0x56da8f);_0x38be2d=(_0x38be2d<<0x5)+_0x38be2d+_0x2c85f0,_0x38be2d&=_0x38be2d;}}function _0x2dc2d6(_0x5743e2){Array['isArray'](_0x5743e2)?_0x5743e2['forEach'](_0x2dc2d6):_0x5743e2&&'object'==typeof _0x5743e2?Object['entries'](_0x5743e2)['sort']()['forEach'](([_0x4b4f6b,_0x5e1952])=>{_0x115022(_0x4b4f6b),_0x2dc2d6(_0x5e1952);}):_0x115022(window['String'](_0x5743e2));}return _0x2dc2d6(_0x46225),_0x38be2d>>>0x0;}function _0x5b0103(_0x2041c9){return _0x2041c9['toString'](0x10)['padStart'](0x8,'0');}function _0x17af7f(_0xec1efb){return _0xec1efb['split']('')['reverse']()['join']('');}function _0x5e5baa(){}_0xf56dbe(await _0x30727e());}_0x5be06e(_0x288a1f['editor']);}(this);}['_logSuppressibleWarning'](_0x4be543,_0x575382){if(this['_isSuppressedLog'](_0x4be543,_0x575382))return;const _0xc93dcf=r+'/support/error-codes.html#error-'+_0x4be543;console['warn']('%cEmailConfigurationHelper%c\x20'+_0x4be543,'background:\x20#E65100;\x20color:\x20white;\x20padding:\x202px\x204px;','',..._0x575382?[_0x575382]:[],'\x0aRead\x20more:\x20'+_0xc93dcf);}['_logSuppressibleInfo'](_0x216416,_0x156732,_0x258fbd){if(this['_isSuppressedLog'](_0x216416))return;let _0x481359=_0x156732;_0x258fbd&&(_0x481359+='\x0aRead\x20more:\x20'+(r+'/'+_0x258fbd)),console['info']('%cEmailConfigurationHelper%c\x20'+_0x216416,'background:\x20#4169E1;\x20color:\x20white;\x20padding:\x202px\x204px;','',_0x481359);}_checkUnsupportedPlugin(_0x31ade1,_0x2f0816){this['editor']['plugins']['has'](_0x31ade1)&&this['_logSuppressibleWarning']('email-configuration-unsupported-plugin',{'pluginName':_0x31ade1,..._0x2f0816});}_validateConfigColorValue(_0x159143){const _0x558beb=this['editor']['config']['get'](_0x159143);if(!_0x558beb)return;const _0x129e16=Array['isArray'](_0x558beb),_0x2a97db=_0x129e16?_0x558beb:[_0x558beb];for(const [_0x1dde62,_0x5c57ef]of _0x2a97db['entries']()){const _0x167567='string'==typeof _0x5c57ef?_0x5c57ef:_0x5c57ef['color'];s(_0x167567)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-value',{'configPath':_0x129e16?_0x159143+'['+_0x1dde62+']':_0x159143,'color':_0x167567});}}_validateConfigColorFormat(_0x4d7459){const _0x3171e5=this['editor']['config']['get'](_0x4d7459);_0x3171e5&&l(_0x3171e5)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-format',{'configPath':_0x4d7459,'format':_0x3171e5});}['_isSuppressedLog'](_0x5570cc,_0x451d25){const _0x444e41=this['editor']['config']['get']('email.logs');return!!_0x444e41['suppressAll']||(!('function'!=typeof _0x444e41['suppress']||!_0x444e41['suppress'](_0x5570cc,_0x451d25))||!(!Array['isArray'](_0x444e41['suppress'])||!_0x444e41['suppress']['includes'](_0x5570cc)));}};const a=['hsl','hsla','hwb','lab','lch','oklab','oklch','color-mix','rgba'];function s(_0x424f85){return!!_0x424f85&&a['some'](_0x512343=>_0x424f85['includes'](_0x512343+'('));}function l(_0x2d3685){return!!_0x2d3685&&a['includes'](_0x2d3685);}var u=class extends _0x3448ce{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(_0xf75d53,_0x418713){const _0x567231=_0xf75d53['ownerDocument'],{table:_0x2eba94,cell:_0x5319ce}=g(_0x567231,'100%');_0x418713['align']&&_0x5319ce['setAttribute']('align',_0x5869e1(_0x418713['align']));let _0x56733b=_0x5319ce;if(_0x418713['width']){const {table:_0x88d55f,cell:_0x420d45}=g(_0x567231,_0x5869e1(_0x418713['width']));_0x5319ce['appendChild'](_0x88d55f),_0x56733b=_0x420d45;}return _0xf75d53['replaceWith'](_0x2eba94),_0xf75d53['removeAttribute']('align'),_0xf75d53['removeAttribute']('width'),_0x56733b['appendChild'](_0xf75d53),_0x56733b;}function g(_0x12d3ec,_0x380a0d){const _0x4915c3=_0x12d3ec['createElement']('table');_0x380a0d&&(_0x4915c3['style']['width']=_0x380a0d,_0x4915c3['setAttribute']('width',h(_0x380a0d))),_0x4915c3['setAttribute']('cellpadding','0'),_0x4915c3['setAttribute']('cellspacing','0'),_0x4915c3['setAttribute']('border','0'),_0x4915c3['setAttribute']('role','presentation');const _0x540bfd=_0x12d3ec['createElement']('tbody'),_0x6eec30=_0x12d3ec['createElement']('tr'),_0x18647e=_0x12d3ec['createElement']('td');return _0x4915c3['appendChild'](_0x540bfd),_0x540bfd['appendChild'](_0x6eec30),_0x6eec30['appendChild'](_0x18647e),{'table':_0x4915c3,'cell':_0x18647e};}function f(_0x26049e){const _0x558d25=_0x26049e['getAsString']('margin-left'),_0x2a2202=_0x26049e['getAsString']('margin-right'),_0x317615=_0x558d25&&_0x5869e1(_0x558d25),_0x11d327=_0x2a2202&&_0x5869e1(_0x2a2202);return'auto'===_0x317615&&'auto'===_0x11d327?'center':'auto'===_0x317615?'right':'auto'===_0x11d327?'left':void 0x0;}function m(_0x3ab06a,_0x514151){const _0x27ebb5=_0x3ab06a['ownerDocument']['createElement'](_0x514151);for(const _0x47b33b of Array['from'](_0x3ab06a['attributes']))_0x27ebb5['setAttribute'](_0x47b33b['name'],_0x47b33b['value']);for(;_0x3ab06a['firstChild'];)_0x27ebb5['appendChild'](_0x3ab06a['firstChild']);return _0x27ebb5;}function d(_0x1ae5d2){if('TABLE'!==_0x1ae5d2['tagName'])return!0x1;if('presentation'!==_0x1ae5d2['getAttribute']('role'))return!0x1;const _0x43eab3=p(_0x1ae5d2);return null!==_0x43eab3&&_0x43eab3['hasAttribute']('align');}function p(_0x10c4a3){let _0x3e32d4=_0x10c4a3;0x1===_0x10c4a3['children']['length']&&'TBODY'===_0x10c4a3['children'][0x0]['tagName']&&(_0x3e32d4=_0x10c4a3['children'][0x0]);const _0x423555=_0x3e32d4['children'];if(0x1!==_0x423555['length']||'TR'!==_0x423555[0x0]['tagName'])return null;const _0x548d2f=_0x423555[0x0]['children'];return 0x1!==_0x548d2f['length']||'TD'!==_0x548d2f[0x0]['tagName']?null:_0x548d2f[0x0];}function h(_0x5e2f70){return function(_0x3c72ab){return _0x3c72ab['endsWith']('px')?_0x3c72ab['slice'](0x0,-0x2):_0x3c72ab;}(_0x5869e1(_0x5e2f70));}const w=(_0x82c4c7,_0x5d8fd6,{runAfterDocumentTransformation:_0x2cb0d2,runAfterChildrenTransformation:_0x2a897b})=>{if('FIGURE'!==_0x82c4c7['tagName'])return;const _0x162a7f=_0x5d8fd6['getAsString']('float');if(_0x162a7f){if(P(_0x82c4c7))_0x2cb0d2(()=>{y(_0x82c4c7,{'align':_0x162a7f});});else{const {table:_0x33d61e,cell:_0x15c609}=g(_0x82c4c7['ownerDocument']);_0x33d61e['setAttribute']('align',_0x5869e1(_0x162a7f)),_0x33d61e['setAttribute']('style',function(_0x30c0f8){return _0x30c0f8['getStylesEntries']()['map'](_0x45a577=>_0x45a577['join'](':'))['join'](';')+';';}(_0x5d8fd6)),_0x2a897b(()=>{for(const _0x58df81 of Array['from'](_0x82c4c7['childNodes']))_0x15c609['appendChild'](_0x58df81);}),_0x2cb0d2(()=>{_0x82c4c7['replaceWith'](_0x33d61e);});}}else{const _0x20c0b4=f(_0x5d8fd6),_0x3c303c=_0x5d8fd6['getAsString']('width');if(!_0x20c0b4&&!_0x3c303c)return;c(_0x82c4c7,{'align':_0x20c0b4,'width':_0x3c303c}),_0x3c303c&&_0x5d8fd6['set']('width','100%'),_0x5d8fd6['remove']('margin-left'),_0x5d8fd6['remove']('margin-right'),_0x5d8fd6['remove']('min-width'),_0x5d8fd6['remove']('max-width'),_0x2cb0d2(()=>{if(!y(_0x82c4c7)){const _0x54e853=m(_0x82c4c7,'div');_0x82c4c7['replaceWith'](_0x54e853);}});}};function y(_0x2ca62d,_0x4d4068={}){const _0x74b214=P(_0x2ca62d);if(!_0x74b214)return null;for(const _0xbdf5e1 of['id','class']){const _0x163df2=_0x2ca62d['getAttribute'](_0xbdf5e1);_0x163df2&&_0x74b214['setAttribute'](_0xbdf5e1,_0x163df2);}for(const _0x5d2392 of['display','float','width','height'])_0x74b214['style']['removeProperty'](_0x5d2392);const _0x30af8f=_0x2ca62d['getAttribute']('style');if(_0x30af8f){const _0x2bb163=_0x74b214['getAttribute']('style')||'';_0x74b214['setAttribute']('style',_0x30af8f+_0x2bb163);}return _0x4d4068['align']&&_0x74b214['setAttribute']('align',_0x5869e1(_0x4d4068['align'])),'fixed'!==_0x74b214['style']['tableLayout']||_0x74b214['style']['width']||(_0x74b214['style']['width']='100%',_0x74b214['setAttribute']('width','100%')),_0x2ca62d['replaceWith'](_0x74b214),_0x74b214;}function P(_0xebc700){const _0x468e71=Array['from'](_0xebc700['children']);return 0x1===_0x468e71['length']&&'TABLE'===_0x468e71[0x0]['tagName']?_0x468e71[0x0]:null;}var I=class extends _0x3448ce{static get requires(){return[o];}static get['pluginName'](){return'ImageEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {config:_0x2077a9,plugins:_0x4df9c2}=this['editor'];_0x2077a9['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x4df9c2['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 _0x3448ce{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 _0x3448ce{static get requires(){return[o];}static get['pluginName'](){return'ExportInlineStylesEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x14d3f6=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('ExportInlineStyles')||_0x14d3f6['_logSuppressibleWarning']('email-configuration-missing-export-inline-styles-plugin');}},L=class extends _0x3448ce{static get requires(){return[o];}static get['pluginName'](){return'ListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x5c8e42=this['editor']['plugins']['get'](o),_0x4cf173=this['editor']['config']['get']('list');_0x4cf173&&_0x4cf173['properties']&&_0x4cf173['properties']['reversed']&&_0x5c8e42['_logSuppressibleWarning']('email-configuration-unsupported-reversed-list'),_0x4cf173&&_0x4cf173['enableListItemMarkerFormatting']&&_0x5c8e42['_logSuppressibleWarning']('email-configuration-unsupported-list-item-marker-formatting');}},C=class extends _0x3448ce{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:_0x16c64d}=this['editor'],_0x182b4c=_0x16c64d['get'](o);_0x16c64d['has']('Table')&&(_0x16c64d['has']('PlainTableOutput')||_0x182b4c['_logSuppressibleWarning']('email-configuration-missing-plain-table-output-plugin'),_0x16c64d['has']('TableLayout')||_0x182b4c['_logSuppressibleWarning']('email-configuration-missing-table-layout-plugin'));}['_checkTableConfig'](){const {config:_0x21c80e,plugins:_0xb0f7ff}=this['editor'];_0x21c80e['get']('table')&&_0xb0f7ff['has']('Table')&&(this['_checkTablePropertiesConfig']('tableCellProperties'),this['_checkTablePropertiesConfig']('tableProperties'));}_checkTablePropertiesConfig(_0x5e3043){const _0x530c88=this['editor']['plugins']['get'](o);_0x530c88['_validateConfigColorValue']('table.'+_0x5e3043+'.borderColors'),_0x530c88['_validateConfigColorValue']('table.'+_0x5e3043+'.backgroundColors'),_0x530c88['_validateConfigColorValue']('table.'+_0x5e3043+'.defaultProperties.borderColor'),_0x530c88['_validateConfigColorValue']('table.'+_0x5e3043+'.defaultProperties'),_0x530c88['_validateConfigColorFormat']('table.'+_0x5e3043+'.colorPicker.format');}},k=class extends _0x3448ce{static get requires(){return[o];}static get['pluginName'](){return'EmptyBlockEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x325006=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('EmptyBlock')||_0x325006['_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 _0x3448ce{static get requires(){return[o];}static get['pluginName'](){return'FontEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {plugins:_0xf80843}=this['editor'];_0xf80843['has']('FontColorEditing')&&this['_checkColorConfig']('fontColor'),_0xf80843['has']('FontBackgroundColorEditing')&&this['_checkColorConfig']('fontBackgroundColor');}['_checkColorConfig'](_0x5ca4aa){const _0x454638=this['editor']['plugins']['get'](o);_0x454638['_validateConfigColorValue'](_0x5ca4aa+'.colors'),_0x454638['_validateConfigColorValue'](_0x5ca4aa+'.documentColors'),_0x454638['_validateConfigColorFormat'](_0x5ca4aa+'.colorPicker.format');}},x=class extends _0x3448ce{static get requires(){return[o];}static get['pluginName'](){return'SourceEditingEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {plugins:_0x679ed1}=this['editor'],_0xaf3ebf=_0x679ed1['get'](o);_0x679ed1['has']('SourceEditing')||_0x679ed1['has']('SourceEditingEnhanced')||_0xaf3ebf['_logSuppressibleWarning']('email-configuration-missing-source-editing-plugin');}},v=class extends _0x3448ce{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 _0x3448ce{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:_0x2f99c1}=this['editor'];if(!_0x2f99c1['has']('DataFilter'))return;const _0x34de72=_0x2f99c1['get']('DataFilter'),_0x4a1c56=_0x2f99c1['get'](o);for(const _0x1241db of GeneralHtmlIntegrationSupport['UNSUPPORTED_ELEMENTS'])_0x34de72['once']('register:'+_0x1241db,(_0x121f63,_0x2bd0ac)=>{_0x4a1c56['_logSuppressibleWarning']('email-unsupported-html-element',{'element':_0x2bd0ac['view']});});}},A=class extends _0x3448ce{static get requires(){return[o];}static get['pluginName'](){return'MergeFieldsEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0xfc2d85=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('MergeFields')||_0xfc2d85['_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 _0x3448ce{static get requires(){return[o];}static get['pluginName'](){return'TemplateEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x491150=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('Template')||_0x491150['_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 _0x3448ce{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 _0x3448ce{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 _0x3448ce{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 _0x3448ce{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 _0x3448ce{static get requires(){return[o];}static get['pluginName'](){return'LinkEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {config:_0x4dddc5,plugins:_0x5dc72b}=this['editor'],_0x17f3c2=_0x5dc72b['get'](o);_0x4dddc5['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x17f3c2['_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 _0x3448ce{['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 _0x27a083=[this['editor']];for(const _0x30c42e of _0x27a083){let _0x4e4506;for(const _0x97249f in _0x30c42e){const _0x19e45d=_0x97249f,_0x58edbc=_0x30c42e[_0x19e45d];if('emailConfigurationHelperLicenseKeyValid'==_0x58edbc||'emailConfigurationHelperLicenseKeyInvalid'==_0x58edbc||'emailConfigurationHelperLicenseKeyExpired'==_0x58edbc||'emailConfigurationHelperLicenseKeyDomainLimit'==_0x58edbc||'emailConfigurationHelperLicenseKeyNotAllowed'==_0x58edbc||'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x58edbc||'emailConfigurationHelperLicenseKeyUsageLimit'==_0x58edbc){delete _0x30c42e[_0x19e45d],_0x4e4506=_0x58edbc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'emailConfigurationHelperLicenseKeyInvalid'==_0x4e4506&&_0x30c42e['_showLicenseError']('invalid'),'emailConfigurationHelperLicenseKeyExpired'==_0x4e4506&&_0x30c42e['_showLicenseError']('expired'),'emailConfigurationHelperLicenseKeyDomainLimit'==_0x4e4506&&_0x30c42e['_showLicenseError']('domainLimit'),'emailConfigurationHelperLicenseKeyNotAllowed'==_0x4e4506&&_0x30c42e['_showLicenseError']('featureNotAllowed','EmailConfigurationHelper'),'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x4e4506&&_0x30c42e['_showLicenseError']('evaluationLimit'),'emailConfigurationHelperLicenseKeyUsageLimit'==_0x4e4506&&_0x30c42e['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};const U=(_0x587eb2,_0x3f9ee7)=>{if(!['TABLE','IMG']['includes'](_0x587eb2['tagName']))return;const _0x462774=_0x3f9ee7['getAsString']('float');if(_0x462774){const _0x1b9784=_0x5869e1(_0x462774);'left'!==_0x1b9784&&'right'!==_0x1b9784||_0x587eb2['setAttribute']('align',_0x1b9784);}},D=(_0x58a2ee,_0x2a1fe0)=>{if('TABLE'!==_0x58a2ee['tagName']||_0x2a1fe0['has']('float'))return;const _0x15a872=f(_0x2a1fe0),_0x53be28=_0x2a1fe0['getAsString']('width');_0x15a872&&(c(_0x58a2ee,{'align':_0x15a872}),_0x53be28?_0x58a2ee['setAttribute']('width',h(_0x53be28)):_0x2a1fe0['remove']('width'),_0x2a1fe0['remove']('margin-left'),_0x2a1fe0['remove']('margin-right'));},F=(_0x2ee6ae,_0x1882c3)=>{if('IMG'!==_0x2ee6ae['tagName'])return;const _0x5205cd=_0x1882c3['getAsString']('width');_0x5205cd&&(_0x2ee6ae['setAttribute']('width',h(_0x5205cd)),_0x2ee6ae['setAttribute']('height','auto'));},_=(_0x21c6ca,_0x2f9bd8,{runAfterDocumentTransformation:_0x13a514})=>{if('FIGCAPTION'!==_0x21c6ca['tagName'])return;const _0x5a0f5f=_0x2f9bd8['getAsString']('display'),_0x4e3e9e=_0x2f9bd8['getAsString']('caption-side');_0x2f9bd8['remove']('caption-side'),_0x5a0f5f&&'table-caption'===_0x5869e1(_0x5a0f5f)&&_0x2f9bd8['remove']('display');const _0x52f3eb=_0x4e3e9e&&'top'===_0x5869e1(_0x4e3e9e);_0x13a514(()=>{const _0x454f9c=m(_0x21c6ca,'div'),_0x23684a=_0x21c6ca['previousElementSibling'];_0x52f3eb&&_0x23684a&&'TABLE'===_0x23684a['tagName']?(_0x23684a['before'](_0x454f9c),_0x21c6ca['remove']()):_0x21c6ca['replaceWith'](_0x454f9c);});},M=(_0x2ac21f,_0x3926ae,{runAfterChildrenTransformation:_0x31951d})=>{'TD'===_0x2ac21f['tagName']&&_0x31951d(()=>{const _0x5c6045=Array['from'](_0x2ac21f['children']);if(0x0===_0x5c6045['length'])return;const _0x1176d7=_0x5c6045['map'](R),_0x17678e=_0x1176d7[0x0];if(_0x17678e&&_0x1176d7['every'](_0x56eb4d=>_0x56eb4d===_0x17678e)){_0x2ac21f['setAttribute']('align',_0x17678e);for(const _0x53e3c2 of _0x5c6045)if(d(_0x53e3c2)){const _0x329750=p(_0x53e3c2);_0x53e3c2['replaceWith'](...Array['from'](_0x329750['childNodes']));}else _0x53e3c2['style']['removeProperty']('text-align'),_0x53e3c2['style']['length']||_0x53e3c2['removeAttribute']('style');}});};function R(_0x24f1d7){return d(_0x24f1d7)?p(_0x24f1d7)['getAttribute']('align'):_0x24f1d7['style']['textAlign']||void 0x0;}const V=(_0x3a6265,_0x23155f,{runAfterChildrenTransformation:_0x3d0604})=>{'TABLE'===_0x3a6265['tagName']&&_0x3d0604(()=>{const _0x4f28d3=function(_0x21bd17,_0x310fad){for(const _0x5684c2 of _0x21bd17['children'])if(_0x5684c2['tagName']===_0x310fad)return _0x5684c2;return null;}(_0x3a6265,'COLGROUP');if(!_0x4f28d3)return;const _0x2cf80f=Array['from'](_0x4f28d3['children'])['filter'](_0x26b429=>'COL'===_0x26b429['tagName']);if(_0x2cf80f['some'](_0x1e431d=>Q(_0x1e431d,'span')))return;const _0x49d005=_0x2cf80f['map'](j);if(!_0x49d005['some'](Boolean))return;const _0x3940d0=function(_0xe940e7){const _0x3c86d1=[];for(const _0x17d133 of _0xe940e7['children'])if(['THEAD','TBODY','TFOOT']['includes'](_0x17d133['tagName'])){for(const _0x5c1107 of _0x17d133['children'])'TR'===_0x5c1107['tagName']&&_0x3c86d1['push'](_0x5c1107);}return _0x3c86d1;}(_0x3a6265)['map'](G);if(!_0x3940d0['some'](_0x55ba52=>_0x55ba52['length']!==_0x49d005['length']||_0x55ba52['some'](_0x210d7e=>function(_0x4e880d){return Q(_0x4e880d,'colspan')||Q(_0x4e880d,'rowspan');}(_0x210d7e)||function(_0x10bcd2){return Boolean(_0x10bcd2['style']['getPropertyValue']('width'))||Boolean(_0x10bcd2['getAttribute']('width'));}(_0x210d7e)))){for(const _0x56f6b7 of _0x3940d0)_0x56f6b7['forEach']((_0x10d1f3,_0x40f312)=>{const _0x332ea0=_0x49d005[_0x40f312];_0x332ea0&&(_0x10d1f3['setAttribute']('width',h(_0x332ea0)),_0x10d1f3['style']['setProperty']('width',_0x332ea0));});}});};function G(_0x510c4c){return Array['from'](_0x510c4c['children'])['filter'](_0x2bb74a=>'TD'===_0x2bb74a['tagName']||'TH'===_0x2bb74a['tagName']);}function j(_0x2ab3b7){const _0x27c7c9=_0x2ab3b7['style']['getPropertyValue']('width');if(_0x27c7c9)return _0x27c7c9;const _0x413a68=_0x2ab3b7['getAttribute']('width');if(!_0x413a68)return;const _0x1db46a=_0x5869e1(_0x413a68);return/^\d+(\.\d+)?$/['test'](_0x1db46a)?_0x1db46a+'px':_0x1db46a;}function Q(_0x387913,_0x1bd122){const _0x500439=_0x387913['getAttribute'](_0x1bd122);return null!==_0x500439&&'1'!==_0x500439;}function J(_0xbd1c71={}){const _0x108c03=[];return _0xbd1c71['useFigureToTableFallback']&&_0x108c03['push'](w,_,M),_0x108c03['push'](U,D,F,V),_0x108c03;}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.6",
3
+ "version": "48.5.0",
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.6",
25
- "@ckeditor/ckeditor5-engine": "48.5.0-alpha.6",
26
- "@ckeditor/ckeditor5-export-inline-styles": "48.5.0-alpha.6",
27
- "@ckeditor/ckeditor5-html-support": "48.5.0-alpha.6",
28
- "@ckeditor/ckeditor5-list": "48.5.0-alpha.6",
29
- "@ckeditor/ckeditor5-table": "48.5.0-alpha.6",
30
- "@ckeditor/ckeditor5-ui": "48.5.0-alpha.6",
31
- "@ckeditor/ckeditor5-utils": "48.5.0-alpha.6"
24
+ "@ckeditor/ckeditor5-core": "48.5.0",
25
+ "@ckeditor/ckeditor5-engine": "48.5.0",
26
+ "@ckeditor/ckeditor5-export-inline-styles": "48.5.0",
27
+ "@ckeditor/ckeditor5-html-support": "48.5.0",
28
+ "@ckeditor/ckeditor5-list": "48.5.0",
29
+ "@ckeditor/ckeditor5-table": "48.5.0",
30
+ "@ckeditor/ckeditor5-ui": "48.5.0",
31
+ "@ckeditor/ckeditor5-utils": "48.5.0"
32
32
  },
33
33
  "files": [
34
34
  "dist",