@ckeditor/ckeditor5-email 48.4.0-alpha.1 → 48.4.0-alpha.3

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 _0xa74abe}from'@ckeditor/ckeditor5-core';import{uid as _0x2151e3}from'@ckeditor/ckeditor5-utils';import{dropImportantStyleSuffix as _0x2d3ba0}from'@ckeditor/ckeditor5-export-inline-styles';const r='https://ckeditor.com/docs/ckeditor5/latest';var o=class extends _0xa74abe{static get['pluginName'](){return'EmailConfigurationLogger';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe33aaa){super(_0xe33aaa),_0xe33aaa['config']['define']('email.logs',{'suppress':[],'suppressAll':!0x1});}afterInit(){!async function(_0x1158a4){const _0x4288dd='uizTdvyBIa4RKsnOYmEXGMfjehwJQqbPSCk7DtZgF58Lxl29Ho6cAUW1pV3Nr0',_0x2e3887=0x79140,_0x598aa5=window['Date']['now'](),_0x23fa50=_0x1158a4['editor'],_0x1ee79c=new window['Promise'](_0x1498a8=>{_0x23fa50['once']('ready',_0x1498a8);}),_0x3fd579={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x3f48dd=_0x23fa50['config']['get']('licenseKey');async function _0x2b1c57(){let _0x1a8051,_0x1c537d=null,_0x27e1a5=null;try{return'GPL'==_0x3f48dd?'NotAllowed':(_0x1a8051=_0x29b3a3(),_0x1a8051?(_0x1a8051['usageEndpoint']&&(_0x27e1a5=_0x6f36a3(_0x1a8051['usageEndpoint'],_0x1a8051['jti'])),await _0x3ef2db()?_0x3c22b7()?_0x4627f1()?'Expired':_0x14dbed()?('evaluation'==_0x1a8051['licenseType']&&(_0x1c537d=_0x3ecbc5('EvaluationLimit')),await _0x17332d()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x4627f1(){const _0x16e8dc=['evaluation','trial']['includes'](_0x1a8051['licenseType'])?_0x598aa5/0x3e8:0xe10*_0x2e3887;return _0x1a8051['exp']<_0x16e8dc;}function _0x3c22b7(){const _0x58ceae=_0x1a8051['features'];return!!_0x58ceae&&(!!_0x58ceae['includes']('*')||!!_0x58ceae['includes']('ECH'));}function _0x14dbed(){const _0x5ca204=_0x1a8051['licensedHosts'];if(!_0x5ca204||0x0==_0x5ca204['length'])return!0x0;const {hostname:_0x339bfd}=new URL(window['location']['href']);if(_0x5ca204['includes'](_0x339bfd))return!0x0;const _0x3c0944=_0x339bfd['split']('.');return _0x5ca204['filter'](_0xa7740c=>_0xa7740c['includes']('*'))['map'](_0x37cd72=>_0x37cd72['split']('.'))['filter'](_0x4bc20d=>_0x4bc20d['length']<=_0x3c0944['length'])['map'](_0x5bc5e8=>Array(_0x3c0944['length']-_0x5bc5e8['length'])['fill']('*'===_0x5bc5e8[0x0]?'*':'')['concat'](_0x5bc5e8))['some'](_0x61049e=>_0x3c0944['every']((_0x533b96,_0x128ccd)=>_0x61049e[_0x128ccd]===_0x533b96||'*'===_0x61049e[_0x128ccd]));}function _0x17332d(){return _0x1c537d&&_0x27e1a5?new window['Promise']((_0x404e91,_0x4011a5)=>{_0x1c537d['then'](_0x404e91,_0x4011a5),_0x27e1a5['then'](_0x1231fa=>{'Valid'!=_0x1231fa&&_0x404e91(_0x1231fa);},_0x4011a5);}):_0x1c537d||_0x27e1a5||'Valid';}}function _0x6f36a3(_0x411481,_0x54d8c0){return new window['Promise'](_0x24f160=>{if(_0x1e33b6())return _0x24f160('Valid');_0x4ddd53(),_0x23fa50['decorate']('_sendUsageRequest');let _0xdb1ac0=!0x1;const _0x38cb7d=_0x2151e3();function _0x27d40e(_0x387e40){return!!_0x387e40&&('object'==typeof _0x387e40||'function'==typeof _0x387e40)&&'function'==typeof _0x387e40['then']&&'function'==typeof _0x387e40['catch'];}function _0x65b100(_0xf82f32){_0x5934f3(_0xf82f32)['then'](_0x827bf3=>_0x827bf3&&'ok'==_0x827bf3['status']?_0x15ae67(_0x4dc593(_0x38cb7d+_0x54d8c0))!=_0x827bf3['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x172cf7=>(_0x394bab(),_0x172cf7),()=>{const _0x2457ea=_0x1fcf2a();return null==_0x2457ea?(_0x394bab(),'Valid'):_0x598aa5-_0x2457ea>0x240c8400?'UsageLimit':'Valid';})['then'](_0x24f160)['catch'](()=>{_0x24f160('UsageLimit');});const _0x52f813=0x36ee80;function _0x394bab(){const _0x55a96a='llct-'+_0x15ae67(_0x4dc593(_0x411481)),_0x170761=_0x35fff1(_0x15ae67(window['Math']['ceil'](_0x598aa5/_0x52f813)));window['localStorage']['setItem'](_0x55a96a,_0x170761);}function _0x1fcf2a(){const _0x4b2355='llct-'+_0x15ae67(_0x4dc593(_0x411481)),_0x5a9ae4=window['localStorage']['getItem'](_0x4b2355);return _0x5a9ae4?window['parseInt'](_0x35fff1(_0x5a9ae4),0x10)*_0x52f813:null;}function _0x5934f3(_0x4c4a9c){return new window['Promise']((_0x462eef,_0x546e55)=>{_0x4c4a9c['then'](_0x462eef,_0x546e55),window['setTimeout'](_0x546e55,0x1d4c0);});}}_0x23fa50['on']('_sendUsageRequest',(_0x34c7ba,_0x31db2f)=>{if(_0x31db2f[0x0]!=_0x411481)return _0x24f160('UsageLimit');_0x31db2f[0x1]={..._0x31db2f[0x1],'requestId':_0x38cb7d};},{'priority':'high'}),_0x23fa50['on']('_sendUsageRequest',_0x39c0a1=>{_0x27d40e(_0x39c0a1['return'])&&(_0xdb1ac0=!0x0,_0x65b100(_0x39c0a1['return']));},{'priority':'low'}),_0x1ee79c['then'](()=>{_0xdb1ac0||_0x24f160('UsageLimit');});});function _0x1e33b6(){return'auto'==_0x23fa50['editing']['view']['_overlayModeHint'];}function _0x4ddd53(){_0x23fa50['editing']['view']['_overlayModeHint']='auto';}}function _0x3ecbc5(_0x4f9c97){const _0x466521=[new window['Promise'](_0x1be017=>setTimeout(_0x1be017,0x93ecc)),_0x1ee79c['then'](()=>new window['Promise'](_0x445c77=>{let _0x393f0f=0x0;_0x23fa50['model']['on']('applyOperation',(_0x458279,_0x84c434)=>{_0x84c434[0x0]['isDocumentOperation']&&_0x393f0f++,0x5e8==_0x393f0f&&(_0x445c77(),_0x458279['off']());});}))];return window['Promise']['race'](_0x466521)['then'](()=>_0x4f9c97);}async function _0x182bff(){await _0x1ee79c,_0x23fa50['model']['change']=_0x476cd1,_0x23fa50['model']['enqueueChange']=_0x476cd1,_0x23fa50['enableReadOnlyMode']('model');}function _0x475458(_0x3d6543){const _0x2d05cc=_0x4a17b7();_0x23fa50[_0x2d05cc]='emailConfigurationHelperLicenseKey'+_0x3d6543,'Valid'!=_0x3d6543&&_0x182bff();}function _0x4a17b7(){const _0x459894=window['String'](window['performance']['now']())['replace']('.','');let _0x2515be='u';for(let _0xa9f4b7=0x0;_0xa9f4b7<_0x459894['length'];_0xa9f4b7+=0x2){let _0x960ea3=window['parseInt'](_0x459894['substring'](_0xa9f4b7,_0xa9f4b7+0x2));_0x960ea3>=0x3e&&(_0x960ea3-=0x3e),_0x2515be+=_0x4288dd[_0x960ea3];}return _0x2515be;}function _0x29b3a3(){const _0x2b8828=_0x3f48dd['split']('.');if(0x3!=_0x2b8828['length'])return null;return _0x1c1b84(_0x2b8828[0x1]);function _0x1c1b84(_0x562d14){const _0x2f2648=_0x6d6c11(_0x562d14);return _0x2f2648&&_0x19d0a4()?_0x2f2648:null;function _0x19d0a4(){const _0x1c65fb=_0x2f2648['jti'],_0x4f4817=window['parseInt'](_0x1c65fb['substring'](_0x1c65fb['length']-0x8),0x10),_0xd4adb3={..._0x2f2648,'jti':_0x1c65fb['substring'](0x0,_0x1c65fb['length']-0x8)};return delete _0xd4adb3['vc'],_0x4dc593(_0xd4adb3)==_0x4f4817;}}}async function _0x3ef2db(){let _0x32092b=!0x0;try{const [_0x59077a,_0x3a4f7f,_0x20437e]=_0x3f48dd['split']('.');return _0x55acdb(_0x59077a),await _0x111884(_0x59077a,_0x3a4f7f,_0x20437e),_0x32092b;}catch{return!0x1;}function _0x55acdb(_0x189dbe){const _0x21af44=_0x6d6c11(_0x189dbe);_0x21af44&&'ES256'==_0x21af44['alg']||(_0x32092b=!0x1);}async function _0x111884(_0x3331d1,_0xb0e1dd,_0x46bc41){const _0x436171=window['Uint8Array']['from'](_0x3fbc50(_0x46bc41),_0x1df443=>_0x1df443['charCodeAt'](0x0)),_0x4d6d9c=new window['TextEncoder']()['encode'](_0x3331d1+'.'+_0xb0e1dd),_0x589b6b=window['crypto']['subtle'];if(!_0x589b6b)return;const _0x489b3c=await _0x589b6b['importKey']('jwk',_0x3fd579,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x589b6b['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x489b3c,_0x436171,_0x4d6d9c)||(_0x32092b=!0x1);}}function _0x6d6c11(_0x529358){return _0x529358['startsWith']('ey')?JSON['parse'](_0x3fbc50(_0x529358)):null;}function _0x3fbc50(_0x323257){return window['atob'](_0x323257['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x4dc593(_0x4c5a71){let _0x1f6f9a=0x1505;function _0x404270(_0x56f0af){for(let _0x2de436=0x0;_0x2de436<_0x56f0af['length'];_0x2de436++){const _0x4419e7=_0x56f0af['charCodeAt'](_0x2de436);_0x1f6f9a=(_0x1f6f9a<<0x5)+_0x1f6f9a+_0x4419e7,_0x1f6f9a&=_0x1f6f9a;}}function _0x58687a(_0x1acc77){Array['isArray'](_0x1acc77)?_0x1acc77['forEach'](_0x58687a):_0x1acc77&&'object'==typeof _0x1acc77?Object['entries'](_0x1acc77)['sort']()['forEach'](([_0x431c02,_0x3966b6])=>{_0x404270(_0x431c02),_0x58687a(_0x3966b6);}):_0x404270(window['String'](_0x1acc77));}return _0x58687a(_0x4c5a71),_0x1f6f9a>>>0x0;}function _0x15ae67(_0x5828a1){return _0x5828a1['toString'](0x10)['padStart'](0x8,'0');}function _0x35fff1(_0x16e133){return _0x16e133['split']('')['reverse']()['join']('');}function _0x476cd1(){}_0x475458(await _0x2b1c57());}(this);}['_logSuppressibleWarning'](_0x34a5db,_0x2ccd47){if(this['_isSuppressedLog'](_0x34a5db,_0x2ccd47))return;const _0x112e31=r+'/support/error-codes.html#error-'+_0x34a5db;console['warn']('%cEmailConfigurationHelper%c\x20'+_0x34a5db,'background:\x20#E65100;\x20color:\x20white;\x20padding:\x202px\x204px;','',..._0x2ccd47?[_0x2ccd47]:[],'\x0aRead\x20more:\x20'+_0x112e31);}['_logSuppressibleInfo'](_0x23c435,_0x4d48bf,_0x334c67){if(this['_isSuppressedLog'](_0x23c435))return;let _0x13fca6=_0x4d48bf;_0x334c67&&(_0x13fca6+='\x0aRead\x20more:\x20'+(r+'/'+_0x334c67)),console['info']('%cEmailConfigurationHelper%c\x20'+_0x23c435,'background:\x20#4169E1;\x20color:\x20white;\x20padding:\x202px\x204px;','',_0x13fca6);}_checkUnsupportedPlugin(_0x2e0715,_0x197aeb){this['editor']['plugins']['has'](_0x2e0715)&&this['_logSuppressibleWarning']('email-configuration-unsupported-plugin',{'pluginName':_0x2e0715,..._0x197aeb});}_validateConfigColorValue(_0x50e6c2){const _0x28421b=this['editor']['config']['get'](_0x50e6c2);if(!_0x28421b)return;const _0x2d7adb=Array['isArray'](_0x28421b),_0x50166c=_0x2d7adb?_0x28421b:[_0x28421b];for(const [_0x57e7e3,_0x531a72]of _0x50166c['entries']()){const _0x516947='string'==typeof _0x531a72?_0x531a72:_0x531a72['color'];s(_0x516947)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-value',{'configPath':_0x2d7adb?_0x50e6c2+'['+_0x57e7e3+']':_0x50e6c2,'color':_0x516947});}}_validateConfigColorFormat(_0x49e5d1){const _0x49e45e=this['editor']['config']['get'](_0x49e5d1);_0x49e45e&&l(_0x49e45e)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-format',{'configPath':_0x49e5d1,'format':_0x49e45e});}['_isSuppressedLog'](_0x215b95,_0x33803c){const _0x4c24ae=this['editor']['config']['get']('email.logs');return!!_0x4c24ae['suppressAll']||(!('function'!=typeof _0x4c24ae['suppress']||!_0x4c24ae['suppress'](_0x215b95,_0x33803c))||!(!Array['isArray'](_0x4c24ae['suppress'])||!_0x4c24ae['suppress']['includes'](_0x215b95)));}};const a=['hsl','hsla','hwb','lab','lch','oklab','oklch','color-mix','rgba'];function s(_0x4493db){return!!_0x4493db&&a['some'](_0x4f90f1=>_0x4493db['includes'](_0x4f90f1+'('));}function l(_0x2242d4){return!!_0x2242d4&&a['includes'](_0x2242d4);}var u=class extends _0xa74abe{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(_0x2bffd1,_0x1d7164){const _0x51464f=_0x2bffd1['ownerDocument'],{table:_0x13dd1e,cell:_0x38ec12}=g(_0x51464f,'100%');_0x1d7164['align']&&_0x38ec12['setAttribute']('align',_0x2d3ba0(_0x1d7164['align']));let _0x200c0b=_0x38ec12;if(_0x1d7164['width']){const {table:_0x3af660,cell:_0x3bbeff}=g(_0x51464f,_0x2d3ba0(_0x1d7164['width']));_0x38ec12['appendChild'](_0x3af660),_0x200c0b=_0x3bbeff;}return _0x2bffd1['replaceWith'](_0x13dd1e),_0x2bffd1['removeAttribute']('align'),_0x2bffd1['removeAttribute']('width'),_0x200c0b['appendChild'](_0x2bffd1),_0x200c0b;}function g(_0x1ab1da,_0x480551){const _0x49bab2=_0x1ab1da['createElement']('table');_0x480551&&(_0x49bab2['style']['width']=_0x480551,_0x49bab2['setAttribute']('width',h(_0x480551))),_0x49bab2['setAttribute']('cellpadding','0'),_0x49bab2['setAttribute']('cellspacing','0'),_0x49bab2['setAttribute']('border','0'),_0x49bab2['setAttribute']('role','presentation');const _0x38bc54=_0x1ab1da['createElement']('tbody'),_0x56db47=_0x1ab1da['createElement']('tr'),_0x754151=_0x1ab1da['createElement']('td');return _0x49bab2['appendChild'](_0x38bc54),_0x38bc54['appendChild'](_0x56db47),_0x56db47['appendChild'](_0x754151),{'table':_0x49bab2,'cell':_0x754151};}function f(_0x31d520){const _0x44fa9e=_0x31d520['getAsString']('margin-left'),_0x5159e2=_0x31d520['getAsString']('margin-right'),_0x100c88=_0x44fa9e&&_0x2d3ba0(_0x44fa9e),_0xabc210=_0x5159e2&&_0x2d3ba0(_0x5159e2);return'auto'===_0x100c88&&'auto'===_0xabc210?'center':'auto'===_0x100c88?'right':'auto'===_0xabc210?'left':void 0x0;}function m(_0x51c020,_0x255e0a){const _0x2eda62=_0x51c020['ownerDocument']['createElement'](_0x255e0a);for(const _0x204484 of Array['from'](_0x51c020['attributes']))_0x2eda62['setAttribute'](_0x204484['name'],_0x204484['value']);for(;_0x51c020['firstChild'];)_0x2eda62['appendChild'](_0x51c020['firstChild']);return _0x2eda62;}function d(_0x1b8e89){if('TABLE'!==_0x1b8e89['tagName'])return!0x1;if('presentation'!==_0x1b8e89['getAttribute']('role'))return!0x1;const _0x221912=p(_0x1b8e89);return null!==_0x221912&&_0x221912['hasAttribute']('align');}function p(_0x3d7e2f){let _0x3b19f0=_0x3d7e2f;0x1===_0x3d7e2f['children']['length']&&'TBODY'===_0x3d7e2f['children'][0x0]['tagName']&&(_0x3b19f0=_0x3d7e2f['children'][0x0]);const _0x5a817e=_0x3b19f0['children'];if(0x1!==_0x5a817e['length']||'TR'!==_0x5a817e[0x0]['tagName'])return null;const _0x161849=_0x5a817e[0x0]['children'];return 0x1!==_0x161849['length']||'TD'!==_0x161849[0x0]['tagName']?null:_0x161849[0x0];}function h(_0x239d06){return function(_0x3581f1){return _0x3581f1['endsWith']('px')?_0x3581f1['slice'](0x0,-0x2):_0x3581f1;}(_0x2d3ba0(_0x239d06));}const w=(_0x366f94,_0x17ab45,{runAfterDocumentTransformation:_0x4ac146,runAfterChildrenTransformation:_0x4a2e3c})=>{if('FIGURE'!==_0x366f94['tagName'])return;const _0x3fdca0=_0x17ab45['getAsString']('float');if(_0x3fdca0){if(P(_0x366f94))_0x4ac146(()=>{y(_0x366f94,{'align':_0x3fdca0});});else{const {table:_0x5bbc19,cell:_0x1a2c97}=g(_0x366f94['ownerDocument']);_0x5bbc19['setAttribute']('align',_0x2d3ba0(_0x3fdca0)),_0x5bbc19['setAttribute']('style',function(_0xa45dbb){return _0xa45dbb['getStylesEntries']()['map'](_0x488008=>_0x488008['join'](':'))['join'](';')+';';}(_0x17ab45)),_0x4a2e3c(()=>{for(const _0x49fd07 of Array['from'](_0x366f94['childNodes']))_0x1a2c97['appendChild'](_0x49fd07);}),_0x4ac146(()=>{_0x366f94['replaceWith'](_0x5bbc19);});}}else{const _0xb13cf8=f(_0x17ab45),_0xd0a21d=_0x17ab45['getAsString']('width');if(!_0xb13cf8&&!_0xd0a21d)return;c(_0x366f94,{'align':_0xb13cf8,'width':_0xd0a21d}),_0xd0a21d&&_0x17ab45['set']('width','100%'),_0x17ab45['remove']('margin-left'),_0x17ab45['remove']('margin-right'),_0x17ab45['remove']('min-width'),_0x17ab45['remove']('max-width'),_0x4ac146(()=>{if(!y(_0x366f94)){const _0x3dc16e=m(_0x366f94,'div');_0x366f94['replaceWith'](_0x3dc16e);}});}};function y(_0x318593,_0x3e10dc={}){const _0x296cf6=P(_0x318593);if(!_0x296cf6)return null;for(const _0x3801b5 of['id','class']){const _0x1a364e=_0x318593['getAttribute'](_0x3801b5);_0x1a364e&&_0x296cf6['setAttribute'](_0x3801b5,_0x1a364e);}for(const _0x4cb13c of['display','float','width','height'])_0x296cf6['style']['removeProperty'](_0x4cb13c);const _0x4b2c96=_0x318593['getAttribute']('style');if(_0x4b2c96){const _0x213291=_0x296cf6['getAttribute']('style')||'';_0x296cf6['setAttribute']('style',_0x4b2c96+_0x213291);}return _0x3e10dc['align']&&_0x296cf6['setAttribute']('align',_0x2d3ba0(_0x3e10dc['align'])),'fixed'!==_0x296cf6['style']['tableLayout']||_0x296cf6['style']['width']||(_0x296cf6['style']['width']='100%',_0x296cf6['setAttribute']('width','100%')),_0x318593['replaceWith'](_0x296cf6),_0x296cf6;}function P(_0x859fc6){const _0x4779a4=Array['from'](_0x859fc6['children']);return 0x1===_0x4779a4['length']&&'TABLE'===_0x4779a4[0x0]['tagName']?_0x4779a4[0x0]:null;}var I=class extends _0xa74abe{static get requires(){return[o];}static get['pluginName'](){return'ImageEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {config:_0x20d61c,plugins:_0x1a52a6}=this['editor'];_0x20d61c['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x1a52a6['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 _0xa74abe{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 _0xa74abe{static get requires(){return[o];}static get['pluginName'](){return'ExportInlineStylesEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x3356ee=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('ExportInlineStyles')||_0x3356ee['_logSuppressibleWarning']('email-configuration-missing-export-inline-styles-plugin');}},L=class extends _0xa74abe{static get requires(){return[o];}static get['pluginName'](){return'ListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x150168=this['editor']['plugins']['get'](o),_0x2c076d=this['editor']['config']['get']('list');_0x2c076d&&_0x2c076d['properties']&&_0x2c076d['properties']['reversed']&&_0x150168['_logSuppressibleWarning']('email-configuration-unsupported-reversed-list'),_0x2c076d&&_0x2c076d['enableListItemMarkerFormatting']&&_0x150168['_logSuppressibleWarning']('email-configuration-unsupported-list-item-marker-formatting');}},C=class extends _0xa74abe{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:_0x3fbbe2}=this['editor'],_0xfa9c99=_0x3fbbe2['get'](o);_0x3fbbe2['has']('Table')&&(_0x3fbbe2['has']('PlainTableOutput')||_0xfa9c99['_logSuppressibleWarning']('email-configuration-missing-plain-table-output-plugin'),_0x3fbbe2['has']('TableLayout')||_0xfa9c99['_logSuppressibleWarning']('email-configuration-missing-table-layout-plugin'));}['_checkTableConfig'](){const {config:_0x5d2c27,plugins:_0x49e8f8}=this['editor'];_0x5d2c27['get']('table')&&_0x49e8f8['has']('Table')&&(this['_checkTablePropertiesConfig']('tableCellProperties'),this['_checkTablePropertiesConfig']('tableProperties'));}_checkTablePropertiesConfig(_0x1d8945){const _0x401764=this['editor']['plugins']['get'](o);_0x401764['_validateConfigColorValue']('table.'+_0x1d8945+'.borderColors'),_0x401764['_validateConfigColorValue']('table.'+_0x1d8945+'.backgroundColors'),_0x401764['_validateConfigColorValue']('table.'+_0x1d8945+'.defaultProperties.borderColor'),_0x401764['_validateConfigColorValue']('table.'+_0x1d8945+'.defaultProperties'),_0x401764['_validateConfigColorFormat']('table.'+_0x1d8945+'.colorPicker.format');}},k=class extends _0xa74abe{static get requires(){return[o];}static get['pluginName'](){return'EmptyBlockEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x209b04=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('EmptyBlock')||_0x209b04['_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 _0xa74abe{static get requires(){return[o];}static get['pluginName'](){return'FontEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {plugins:_0x1c6211}=this['editor'];_0x1c6211['has']('FontColorEditing')&&this['_checkColorConfig']('fontColor'),_0x1c6211['has']('FontBackgroundColorEditing')&&this['_checkColorConfig']('fontBackgroundColor');}['_checkColorConfig'](_0xc46910){const _0x5eecee=this['editor']['plugins']['get'](o);_0x5eecee['_validateConfigColorValue'](_0xc46910+'.colors'),_0x5eecee['_validateConfigColorValue'](_0xc46910+'.documentColors'),_0x5eecee['_validateConfigColorFormat'](_0xc46910+'.colorPicker.format');}},x=class extends _0xa74abe{static get requires(){return[o];}static get['pluginName'](){return'SourceEditingEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {plugins:_0xdb6d2c}=this['editor'],_0x5c6650=_0xdb6d2c['get'](o);_0xdb6d2c['has']('SourceEditing')||_0xdb6d2c['has']('SourceEditingEnhanced')||_0x5c6650['_logSuppressibleWarning']('email-configuration-missing-source-editing-plugin');}},v=class extends _0xa74abe{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 _0xa74abe{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:_0x244a5d}=this['editor'];if(!_0x244a5d['has']('DataFilter'))return;const _0xd54165=_0x244a5d['get']('DataFilter'),_0x27708c=_0x244a5d['get'](o);for(const _0x4dd07e of GeneralHtmlIntegrationSupport['UNSUPPORTED_ELEMENTS'])_0xd54165['once']('register:'+_0x4dd07e,(_0x1be1d7,_0x20118f)=>{_0x27708c['_logSuppressibleWarning']('email-unsupported-html-element',{'element':_0x20118f['view']});});}},A=class extends _0xa74abe{static get requires(){return[o];}static get['pluginName'](){return'MergeFieldsEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x4be583=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('MergeFields')||_0x4be583['_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 _0xa74abe{static get requires(){return[o];}static get['pluginName'](){return'TemplateEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x5a7b40=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('Template')||_0x5a7b40['_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 _0xa74abe{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 _0xa74abe{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 _0xa74abe{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 _0xa74abe{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 _0xa74abe{static get requires(){return[o];}static get['pluginName'](){return'LinkEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {config:_0xcd75fa,plugins:_0x55dc28}=this['editor'],_0x42ccb8=_0x55dc28['get'](o);_0xcd75fa['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x42ccb8['_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 _0xa74abe{['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');const _0x2c5f45=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x7001ac;for(const _0x4c0e3c in _0x2c5f45){const _0x94dc64=_0x4c0e3c,_0x414773=_0x2c5f45[_0x94dc64];if('emailConfigurationHelperLicenseKeyValid'==_0x414773||'emailConfigurationHelperLicenseKeyInvalid'==_0x414773||'emailConfigurationHelperLicenseKeyExpired'==_0x414773||'emailConfigurationHelperLicenseKeyDomainLimit'==_0x414773||'emailConfigurationHelperLicenseKeyNotAllowed'==_0x414773||'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x414773||'emailConfigurationHelperLicenseKeyUsageLimit'==_0x414773){delete _0x2c5f45[_0x94dc64],_0x7001ac=_0x414773,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'emailConfigurationHelperLicenseKeyInvalid'==_0x7001ac&&_0x2c5f45['_showLicenseError']('invalid'),'emailConfigurationHelperLicenseKeyExpired'==_0x7001ac&&_0x2c5f45['_showLicenseError']('expired'),'emailConfigurationHelperLicenseKeyDomainLimit'==_0x7001ac&&_0x2c5f45['_showLicenseError']('domainLimit'),'emailConfigurationHelperLicenseKeyNotAllowed'==_0x7001ac&&_0x2c5f45['_showLicenseError']('featureNotAllowed','EmailConfigurationHelper'),'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x7001ac&&_0x2c5f45['_showLicenseError']('evaluationLimit'),'emailConfigurationHelperLicenseKeyUsageLimit'==_0x7001ac&&_0x2c5f45['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};const U=(_0x5cb219,_0x4060f7)=>{if(!['TABLE','IMG']['includes'](_0x5cb219['tagName']))return;const _0x40879b=_0x4060f7['getAsString']('float');if(_0x40879b){const _0x5a2679=_0x2d3ba0(_0x40879b);'left'!==_0x5a2679&&'right'!==_0x5a2679||_0x5cb219['setAttribute']('align',_0x5a2679);}},D=(_0x4ef1ed,_0x35ea4a)=>{if('TABLE'!==_0x4ef1ed['tagName']||_0x35ea4a['has']('float'))return;const _0x3c6995=f(_0x35ea4a),_0x365334=_0x35ea4a['getAsString']('width');_0x3c6995&&(c(_0x4ef1ed,{'align':_0x3c6995}),_0x365334?_0x4ef1ed['setAttribute']('width',h(_0x365334)):_0x35ea4a['remove']('width'),_0x35ea4a['remove']('margin-left'),_0x35ea4a['remove']('margin-right'));},F=(_0x3f5d54,_0x32c0b6)=>{if('IMG'!==_0x3f5d54['tagName'])return;const _0x67325a=_0x32c0b6['getAsString']('width');_0x67325a&&(_0x3f5d54['setAttribute']('width',h(_0x67325a)),_0x3f5d54['setAttribute']('height','auto'));},_=(_0x220d8a,_0x23b9e3,{runAfterDocumentTransformation:_0x514a64})=>{if('FIGCAPTION'!==_0x220d8a['tagName'])return;const _0x4a6c8e=_0x23b9e3['getAsString']('display'),_0x24f1ee=_0x23b9e3['getAsString']('caption-side');_0x23b9e3['remove']('caption-side'),_0x4a6c8e&&'table-caption'===_0x2d3ba0(_0x4a6c8e)&&_0x23b9e3['remove']('display');const _0x267b8=_0x24f1ee&&'top'===_0x2d3ba0(_0x24f1ee);_0x514a64(()=>{const _0xaf5301=m(_0x220d8a,'div'),_0x3ab751=_0x220d8a['previousElementSibling'];_0x267b8&&_0x3ab751&&'TABLE'===_0x3ab751['tagName']?(_0x3ab751['before'](_0xaf5301),_0x220d8a['remove']()):_0x220d8a['replaceWith'](_0xaf5301);});},M=(_0x2c4d88,_0x43d7fd,{runAfterChildrenTransformation:_0x2de9f6})=>{'TD'===_0x2c4d88['tagName']&&_0x2de9f6(()=>{const _0x60beac=Array['from'](_0x2c4d88['children']);if(0x0===_0x60beac['length'])return;const _0x28f310=_0x60beac['map'](R),_0x3b5f9d=_0x28f310[0x0];if(_0x3b5f9d&&_0x28f310['every'](_0x14b26e=>_0x14b26e===_0x3b5f9d)){_0x2c4d88['setAttribute']('align',_0x3b5f9d);for(const _0x219aeb of _0x60beac)if(d(_0x219aeb)){const _0x256ae9=p(_0x219aeb);_0x219aeb['replaceWith'](...Array['from'](_0x256ae9['childNodes']));}else _0x219aeb['style']['removeProperty']('text-align'),_0x219aeb['style']['length']||_0x219aeb['removeAttribute']('style');}});};function R(_0x7388e1){return d(_0x7388e1)?p(_0x7388e1)['getAttribute']('align'):_0x7388e1['style']['textAlign']||void 0x0;}const V=(_0x163e11,_0x2c7372,{runAfterChildrenTransformation:_0x1df6fa})=>{'TABLE'===_0x163e11['tagName']&&_0x1df6fa(()=>{const _0x1e94ad=function(_0x16d3ef,_0x3cc11c){for(const _0x8cdd94 of _0x16d3ef['children'])if(_0x8cdd94['tagName']===_0x3cc11c)return _0x8cdd94;return null;}(_0x163e11,'COLGROUP');if(!_0x1e94ad)return;const _0x414464=Array['from'](_0x1e94ad['children'])['filter'](_0x310a72=>'COL'===_0x310a72['tagName']);if(_0x414464['some'](_0xa4c84f=>Q(_0xa4c84f,'span')))return;const _0x2f9b08=_0x414464['map'](j);if(!_0x2f9b08['some'](Boolean))return;const _0x1b9094=function(_0x4d8a83){const _0x258b73=[];for(const _0x379d8f of _0x4d8a83['children'])if(['THEAD','TBODY','TFOOT']['includes'](_0x379d8f['tagName'])){for(const _0x7859df of _0x379d8f['children'])'TR'===_0x7859df['tagName']&&_0x258b73['push'](_0x7859df);}return _0x258b73;}(_0x163e11)['map'](G);if(!_0x1b9094['some'](_0x327d73=>_0x327d73['length']!==_0x2f9b08['length']||_0x327d73['some'](_0x461888=>function(_0x31c615){return Q(_0x31c615,'colspan')||Q(_0x31c615,'rowspan');}(_0x461888)||function(_0x449fa6){return Boolean(_0x449fa6['style']['getPropertyValue']('width'))||Boolean(_0x449fa6['getAttribute']('width'));}(_0x461888)))){for(const _0x2facae of _0x1b9094)_0x2facae['forEach']((_0x379a3b,_0x5abd29)=>{const _0x46574d=_0x2f9b08[_0x5abd29];_0x46574d&&(_0x379a3b['setAttribute']('width',h(_0x46574d)),_0x379a3b['style']['setProperty']('width',_0x46574d));});}});};function G(_0x4015a0){return Array['from'](_0x4015a0['children'])['filter'](_0x3a3a78=>'TD'===_0x3a3a78['tagName']||'TH'===_0x3a3a78['tagName']);}function j(_0x469dab){const _0x14a5af=_0x469dab['style']['getPropertyValue']('width');if(_0x14a5af)return _0x14a5af;const _0x1091cd=_0x469dab['getAttribute']('width');if(!_0x1091cd)return;const _0xdbe7c5=_0x2d3ba0(_0x1091cd);return/^\d+(\.\d+)?$/['test'](_0xdbe7c5)?_0xdbe7c5+'px':_0xdbe7c5;}function Q(_0x336d18,_0x5505e6){const _0x4e2ad3=_0x336d18['getAttribute'](_0x5505e6);return null!==_0x4e2ad3&&'1'!==_0x4e2ad3;}function J(_0x3df1c3={}){const _0x372e7f=[];return _0x3df1c3['useFigureToTableFallback']&&_0x372e7f['push'](w,_,M),_0x372e7f['push'](U,D,F,V),_0x372e7f;}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 _0x41e47d}from'@ckeditor/ckeditor5-core';import{uid as _0x1f0998}from'@ckeditor/ckeditor5-utils';import{dropImportantStyleSuffix as _0x2315b2}from'@ckeditor/ckeditor5-export-inline-styles';const r='https://ckeditor.com/docs/ckeditor5/latest';var o=class extends _0x41e47d{static get['pluginName'](){return'EmailConfigurationLogger';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4e1768){super(_0x4e1768),_0x4e1768['config']['define']('email.logs',{'suppress':[],'suppressAll':!0x1});}afterInit(){!async function(_0x191f44){const _0x29feaa='uizTdvyBIa4RKsnOYmEXGMfjehwJQqbPSCk7DtZgF58Lxl29Ho6cAUW1pV3Nr0',_0x3171ee=0x79170,_0x1238d5=window['Date']['now'](),_0x710f26=_0x191f44['editor'],_0x12539f=new window['Promise'](_0x271f6a=>{_0x710f26['once']('ready',_0x271f6a);}),_0x1fc3c2={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x1ef6b1=_0x710f26['config']['get']('licenseKey');async function _0x1dff62(){let _0xa1d5f8,_0x2b888b=null,_0x5ea9a8=null;try{return'GPL'==_0x1ef6b1?'NotAllowed':(_0xa1d5f8=_0x478e5a(),_0xa1d5f8?(_0xa1d5f8['usageEndpoint']&&(_0x5ea9a8=_0x1357cc(_0xa1d5f8['usageEndpoint'],_0xa1d5f8['jti'])),await _0xc0e740()?_0x277551()?_0x201761()?'Expired':_0xa95b96()?('evaluation'==_0xa1d5f8['licenseType']&&(_0x2b888b=_0x4600f0('EvaluationLimit')),await _0x3f140b()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x201761(){const _0x2368b2=['evaluation','trial']['includes'](_0xa1d5f8['licenseType'])?_0x1238d5/0x3e8:0xe10*_0x3171ee;return _0xa1d5f8['exp']<_0x2368b2;}function _0x277551(){const _0x4a22e0=_0xa1d5f8['features'];return!!_0x4a22e0&&(!!_0x4a22e0['includes']('*')||!!_0x4a22e0['includes']('ECH'));}function _0xa95b96(){const _0x679100=_0xa1d5f8['licensedHosts'];if(!_0x679100||0x0==_0x679100['length'])return!0x0;const {hostname:_0x406a89}=new URL(window['location']['href']);if(_0x679100['includes'](_0x406a89))return!0x0;const _0x5d715a=_0x406a89['split']('.');return _0x679100['filter'](_0x2173be=>_0x2173be['includes']('*'))['map'](_0x56f64a=>_0x56f64a['split']('.'))['filter'](_0x3bce67=>_0x3bce67['length']<=_0x5d715a['length'])['map'](_0x32d159=>Array(_0x5d715a['length']-_0x32d159['length'])['fill']('*'===_0x32d159[0x0]?'*':'')['concat'](_0x32d159))['some'](_0xe3749a=>_0x5d715a['every']((_0x92c8b1,_0x49cbde)=>_0xe3749a[_0x49cbde]===_0x92c8b1||'*'===_0xe3749a[_0x49cbde]));}function _0x3f140b(){return _0x2b888b&&_0x5ea9a8?new window['Promise']((_0x4ad9df,_0x11698a)=>{_0x2b888b['then'](_0x4ad9df,_0x11698a),_0x5ea9a8['then'](_0x320825=>{'Valid'!=_0x320825&&_0x4ad9df(_0x320825);},_0x11698a);}):_0x2b888b||_0x5ea9a8||'Valid';}}function _0x1357cc(_0xb86034,_0x29385e){return new window['Promise'](_0x2c84b8=>{if(_0x488dec())return _0x2c84b8('Valid');_0xad654a(),_0x710f26['decorate']('_sendUsageRequest');let _0x64b9b4=!0x1;const _0x4c8ebc=_0x1f0998();function _0x565c8c(_0x5abefd){return!!_0x5abefd&&('object'==typeof _0x5abefd||'function'==typeof _0x5abefd)&&'function'==typeof _0x5abefd['then']&&'function'==typeof _0x5abefd['catch'];}function _0x4e3ae5(_0x5085c3){_0x2bed91(_0x5085c3)['then'](_0x3cf799=>_0x3cf799&&'ok'==_0x3cf799['status']?_0x341b58(_0x4293b2(_0x4c8ebc+_0x29385e))!=_0x3cf799['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x4fd9d5=>(_0x371fb5(),_0x4fd9d5),()=>{const _0x15cb4a=_0x47810b();return null==_0x15cb4a?(_0x371fb5(),'Valid'):_0x1238d5-_0x15cb4a>0x240c8400?'UsageLimit':'Valid';})['then'](_0x2c84b8)['catch'](()=>{_0x2c84b8('UsageLimit');});const _0x15b3c7=0x36ee80;function _0x371fb5(){const _0x278aca='llct-'+_0x341b58(_0x4293b2(_0xb86034)),_0x57c381=_0x4814cb(_0x341b58(window['Math']['ceil'](_0x1238d5/_0x15b3c7)));window['localStorage']['setItem'](_0x278aca,_0x57c381);}function _0x47810b(){const _0x3f1ee2='llct-'+_0x341b58(_0x4293b2(_0xb86034)),_0x207e65=window['localStorage']['getItem'](_0x3f1ee2);return _0x207e65?window['parseInt'](_0x4814cb(_0x207e65),0x10)*_0x15b3c7:null;}function _0x2bed91(_0x51a392){return new window['Promise']((_0xb852c4,_0x5c7636)=>{_0x51a392['then'](_0xb852c4,_0x5c7636),window['setTimeout'](_0x5c7636,0x1d4c0);});}}_0x710f26['on']('_sendUsageRequest',(_0x70b5eb,_0x298834)=>{if(_0x298834[0x0]!=_0xb86034)return _0x2c84b8('UsageLimit');_0x298834[0x1]={..._0x298834[0x1],'requestId':_0x4c8ebc};},{'priority':'high'}),_0x710f26['on']('_sendUsageRequest',_0x1da756=>{_0x565c8c(_0x1da756['return'])&&(_0x64b9b4=!0x0,_0x4e3ae5(_0x1da756['return']));},{'priority':'low'}),_0x12539f['then'](()=>{_0x64b9b4||_0x2c84b8('UsageLimit');});});function _0x488dec(){return'auto'==_0x710f26['editing']['view']['_overlayModeHint'];}function _0xad654a(){_0x710f26['editing']['view']['_overlayModeHint']='auto';}}function _0x4600f0(_0x247d82){const _0xf307d3=[new window['Promise'](_0x5b2b70=>setTimeout(_0x5b2b70,0x93ecc)),_0x12539f['then'](()=>new window['Promise'](_0xe5b3dd=>{let _0x10ee55=0x0;_0x710f26['model']['on']('applyOperation',(_0x111636,_0x3f0b70)=>{_0x3f0b70[0x0]['isDocumentOperation']&&_0x10ee55++,0x5e8==_0x10ee55&&(_0xe5b3dd(),_0x111636['off']());});}))];return window['Promise']['race'](_0xf307d3)['then'](()=>_0x247d82);}async function _0x3646f5(){await _0x12539f,_0x710f26['model']['change']=_0x109a27,_0x710f26['model']['enqueueChange']=_0x109a27,_0x710f26['enableReadOnlyMode']('model');}function _0x37c8d8(_0x178464){const _0x23d35f=_0x31ca66();_0x710f26[_0x23d35f]='emailConfigurationHelperLicenseKey'+_0x178464,'Valid'!=_0x178464&&_0x3646f5();}function _0x31ca66(){const _0x3baa02=window['String'](window['performance']['now']())['replace']('.','');let _0x424e1f='u';for(let _0x5dc69b=0x0;_0x5dc69b<_0x3baa02['length'];_0x5dc69b+=0x2){let _0x11f3b3=window['parseInt'](_0x3baa02['substring'](_0x5dc69b,_0x5dc69b+0x2));_0x11f3b3>=0x3e&&(_0x11f3b3-=0x3e),_0x424e1f+=_0x29feaa[_0x11f3b3];}return _0x424e1f;}function _0x478e5a(){const _0x39e0ea=_0x1ef6b1['split']('.');if(0x3!=_0x39e0ea['length'])return null;return _0x1ad721(_0x39e0ea[0x1]);function _0x1ad721(_0x4a7142){const _0xd120fd=_0x3908ae(_0x4a7142);return _0xd120fd&&_0x532bfa()?_0xd120fd:null;function _0x532bfa(){const _0x59ecf6=_0xd120fd['jti'],_0x4e2887=window['parseInt'](_0x59ecf6['substring'](_0x59ecf6['length']-0x8),0x10),_0xeca0f6={..._0xd120fd,'jti':_0x59ecf6['substring'](0x0,_0x59ecf6['length']-0x8)};return delete _0xeca0f6['vc'],_0x4293b2(_0xeca0f6)==_0x4e2887;}}}async function _0xc0e740(){let _0x5564e0=!0x0;try{const [_0x5a408f,_0x3d69a9,_0x21195a]=_0x1ef6b1['split']('.');return _0x513f8c(_0x5a408f),await _0x3f158b(_0x5a408f,_0x3d69a9,_0x21195a),_0x5564e0;}catch{return!0x1;}function _0x513f8c(_0x23c64e){const _0x15d0ad=_0x3908ae(_0x23c64e);_0x15d0ad&&'ES256'==_0x15d0ad['alg']||(_0x5564e0=!0x1);}async function _0x3f158b(_0x29a9c0,_0x27c4f5,_0x4c42f3){const _0x282fe4=window['Uint8Array']['from'](_0x44030e(_0x4c42f3),_0x26a4fd=>_0x26a4fd['charCodeAt'](0x0)),_0x339580=new window['TextEncoder']()['encode'](_0x29a9c0+'.'+_0x27c4f5),_0x25c9f3=window['crypto']['subtle'];if(!_0x25c9f3)return;const _0xf35bb1=await _0x25c9f3['importKey']('jwk',_0x1fc3c2,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x25c9f3['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0xf35bb1,_0x282fe4,_0x339580)||(_0x5564e0=!0x1);}}function _0x3908ae(_0x50f33d){return _0x50f33d['startsWith']('ey')?JSON['parse'](_0x44030e(_0x50f33d)):null;}function _0x44030e(_0x2a00a3){return window['atob'](_0x2a00a3['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x4293b2(_0x277de0){let _0x2680ac=0x1505;function _0x58281f(_0x3edbaa){for(let _0x100e6f=0x0;_0x100e6f<_0x3edbaa['length'];_0x100e6f++){const _0x561e82=_0x3edbaa['charCodeAt'](_0x100e6f);_0x2680ac=(_0x2680ac<<0x5)+_0x2680ac+_0x561e82,_0x2680ac&=_0x2680ac;}}function _0x140113(_0xa15b45){Array['isArray'](_0xa15b45)?_0xa15b45['forEach'](_0x140113):_0xa15b45&&'object'==typeof _0xa15b45?Object['entries'](_0xa15b45)['sort']()['forEach'](([_0x3566a6,_0x30e49d])=>{_0x58281f(_0x3566a6),_0x140113(_0x30e49d);}):_0x58281f(window['String'](_0xa15b45));}return _0x140113(_0x277de0),_0x2680ac>>>0x0;}function _0x341b58(_0x49520c){return _0x49520c['toString'](0x10)['padStart'](0x8,'0');}function _0x4814cb(_0x59c380){return _0x59c380['split']('')['reverse']()['join']('');}function _0x109a27(){}_0x37c8d8(await _0x1dff62());}(this);}['_logSuppressibleWarning'](_0xdac5fc,_0x5e73b3){if(this['_isSuppressedLog'](_0xdac5fc,_0x5e73b3))return;const _0x1fc7a3=r+'/support/error-codes.html#error-'+_0xdac5fc;console['warn']('%cEmailConfigurationHelper%c\x20'+_0xdac5fc,'background:\x20#E65100;\x20color:\x20white;\x20padding:\x202px\x204px;','',..._0x5e73b3?[_0x5e73b3]:[],'\x0aRead\x20more:\x20'+_0x1fc7a3);}['_logSuppressibleInfo'](_0x3abf3a,_0x467d67,_0x2d2308){if(this['_isSuppressedLog'](_0x3abf3a))return;let _0x3ccee2=_0x467d67;_0x2d2308&&(_0x3ccee2+='\x0aRead\x20more:\x20'+(r+'/'+_0x2d2308)),console['info']('%cEmailConfigurationHelper%c\x20'+_0x3abf3a,'background:\x20#4169E1;\x20color:\x20white;\x20padding:\x202px\x204px;','',_0x3ccee2);}_checkUnsupportedPlugin(_0x30512b,_0x52b426){this['editor']['plugins']['has'](_0x30512b)&&this['_logSuppressibleWarning']('email-configuration-unsupported-plugin',{'pluginName':_0x30512b,..._0x52b426});}_validateConfigColorValue(_0x1a5533){const _0x3766fb=this['editor']['config']['get'](_0x1a5533);if(!_0x3766fb)return;const _0x321719=Array['isArray'](_0x3766fb),_0x511c16=_0x321719?_0x3766fb:[_0x3766fb];for(const [_0x3406fa,_0x542a56]of _0x511c16['entries']()){const _0x44cf6d='string'==typeof _0x542a56?_0x542a56:_0x542a56['color'];s(_0x44cf6d)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-value',{'configPath':_0x321719?_0x1a5533+'['+_0x3406fa+']':_0x1a5533,'color':_0x44cf6d});}}_validateConfigColorFormat(_0x1a8ac0){const _0x1d559e=this['editor']['config']['get'](_0x1a8ac0);_0x1d559e&&l(_0x1d559e)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-format',{'configPath':_0x1a8ac0,'format':_0x1d559e});}['_isSuppressedLog'](_0x533286,_0x105845){const _0x3dc77d=this['editor']['config']['get']('email.logs');return!!_0x3dc77d['suppressAll']||(!('function'!=typeof _0x3dc77d['suppress']||!_0x3dc77d['suppress'](_0x533286,_0x105845))||!(!Array['isArray'](_0x3dc77d['suppress'])||!_0x3dc77d['suppress']['includes'](_0x533286)));}};const a=['hsl','hsla','hwb','lab','lch','oklab','oklch','color-mix','rgba'];function s(_0x223874){return!!_0x223874&&a['some'](_0x43afd1=>_0x223874['includes'](_0x43afd1+'('));}function l(_0x158596){return!!_0x158596&&a['includes'](_0x158596);}var u=class extends _0x41e47d{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(_0x592365,_0x18ae31){const _0x23e7d2=_0x592365['ownerDocument'],{table:_0x1f314c,cell:_0x2a258c}=g(_0x23e7d2,'100%');_0x18ae31['align']&&_0x2a258c['setAttribute']('align',_0x2315b2(_0x18ae31['align']));let _0x35da6c=_0x2a258c;if(_0x18ae31['width']){const {table:_0xdced8a,cell:_0x41c06c}=g(_0x23e7d2,_0x2315b2(_0x18ae31['width']));_0x2a258c['appendChild'](_0xdced8a),_0x35da6c=_0x41c06c;}return _0x592365['replaceWith'](_0x1f314c),_0x592365['removeAttribute']('align'),_0x592365['removeAttribute']('width'),_0x35da6c['appendChild'](_0x592365),_0x35da6c;}function g(_0x579452,_0x2c97ce){const _0x217cdc=_0x579452['createElement']('table');_0x2c97ce&&(_0x217cdc['style']['width']=_0x2c97ce,_0x217cdc['setAttribute']('width',h(_0x2c97ce))),_0x217cdc['setAttribute']('cellpadding','0'),_0x217cdc['setAttribute']('cellspacing','0'),_0x217cdc['setAttribute']('border','0'),_0x217cdc['setAttribute']('role','presentation');const _0x19c5ee=_0x579452['createElement']('tbody'),_0x1db0ae=_0x579452['createElement']('tr'),_0xcf25c4=_0x579452['createElement']('td');return _0x217cdc['appendChild'](_0x19c5ee),_0x19c5ee['appendChild'](_0x1db0ae),_0x1db0ae['appendChild'](_0xcf25c4),{'table':_0x217cdc,'cell':_0xcf25c4};}function f(_0x162224){const _0x2d2947=_0x162224['getAsString']('margin-left'),_0x1a3e5a=_0x162224['getAsString']('margin-right'),_0x30ee77=_0x2d2947&&_0x2315b2(_0x2d2947),_0x5ce60d=_0x1a3e5a&&_0x2315b2(_0x1a3e5a);return'auto'===_0x30ee77&&'auto'===_0x5ce60d?'center':'auto'===_0x30ee77?'right':'auto'===_0x5ce60d?'left':void 0x0;}function m(_0x5f436e,_0x395c9c){const _0x32ced4=_0x5f436e['ownerDocument']['createElement'](_0x395c9c);for(const _0x5f18c2 of Array['from'](_0x5f436e['attributes']))_0x32ced4['setAttribute'](_0x5f18c2['name'],_0x5f18c2['value']);for(;_0x5f436e['firstChild'];)_0x32ced4['appendChild'](_0x5f436e['firstChild']);return _0x32ced4;}function d(_0x7ee5d7){if('TABLE'!==_0x7ee5d7['tagName'])return!0x1;if('presentation'!==_0x7ee5d7['getAttribute']('role'))return!0x1;const _0x178fb5=p(_0x7ee5d7);return null!==_0x178fb5&&_0x178fb5['hasAttribute']('align');}function p(_0x370f81){let _0x5a5299=_0x370f81;0x1===_0x370f81['children']['length']&&'TBODY'===_0x370f81['children'][0x0]['tagName']&&(_0x5a5299=_0x370f81['children'][0x0]);const _0x5ecd60=_0x5a5299['children'];if(0x1!==_0x5ecd60['length']||'TR'!==_0x5ecd60[0x0]['tagName'])return null;const _0x882b6d=_0x5ecd60[0x0]['children'];return 0x1!==_0x882b6d['length']||'TD'!==_0x882b6d[0x0]['tagName']?null:_0x882b6d[0x0];}function h(_0xfc09a9){return function(_0x26808){return _0x26808['endsWith']('px')?_0x26808['slice'](0x0,-0x2):_0x26808;}(_0x2315b2(_0xfc09a9));}const w=(_0x20c12c,_0x1eaf43,{runAfterDocumentTransformation:_0x5926c0,runAfterChildrenTransformation:_0x422a78})=>{if('FIGURE'!==_0x20c12c['tagName'])return;const _0x36aeb3=_0x1eaf43['getAsString']('float');if(_0x36aeb3){if(P(_0x20c12c))_0x5926c0(()=>{y(_0x20c12c,{'align':_0x36aeb3});});else{const {table:_0x3b1be4,cell:_0x2443e7}=g(_0x20c12c['ownerDocument']);_0x3b1be4['setAttribute']('align',_0x2315b2(_0x36aeb3)),_0x3b1be4['setAttribute']('style',function(_0xa5f502){return _0xa5f502['getStylesEntries']()['map'](_0x5711be=>_0x5711be['join'](':'))['join'](';')+';';}(_0x1eaf43)),_0x422a78(()=>{for(const _0x2016c6 of Array['from'](_0x20c12c['childNodes']))_0x2443e7['appendChild'](_0x2016c6);}),_0x5926c0(()=>{_0x20c12c['replaceWith'](_0x3b1be4);});}}else{const _0xa8492e=f(_0x1eaf43),_0x27c74e=_0x1eaf43['getAsString']('width');if(!_0xa8492e&&!_0x27c74e)return;c(_0x20c12c,{'align':_0xa8492e,'width':_0x27c74e}),_0x27c74e&&_0x1eaf43['set']('width','100%'),_0x1eaf43['remove']('margin-left'),_0x1eaf43['remove']('margin-right'),_0x1eaf43['remove']('min-width'),_0x1eaf43['remove']('max-width'),_0x5926c0(()=>{if(!y(_0x20c12c)){const _0x24ff52=m(_0x20c12c,'div');_0x20c12c['replaceWith'](_0x24ff52);}});}};function y(_0x4ac7fd,_0xf5b3f5={}){const _0x485737=P(_0x4ac7fd);if(!_0x485737)return null;for(const _0x4e61b3 of['id','class']){const _0x5babf9=_0x4ac7fd['getAttribute'](_0x4e61b3);_0x5babf9&&_0x485737['setAttribute'](_0x4e61b3,_0x5babf9);}for(const _0xee2cd7 of['display','float','width','height'])_0x485737['style']['removeProperty'](_0xee2cd7);const _0x105cd1=_0x4ac7fd['getAttribute']('style');if(_0x105cd1){const _0x185027=_0x485737['getAttribute']('style')||'';_0x485737['setAttribute']('style',_0x105cd1+_0x185027);}return _0xf5b3f5['align']&&_0x485737['setAttribute']('align',_0x2315b2(_0xf5b3f5['align'])),'fixed'!==_0x485737['style']['tableLayout']||_0x485737['style']['width']||(_0x485737['style']['width']='100%',_0x485737['setAttribute']('width','100%')),_0x4ac7fd['replaceWith'](_0x485737),_0x485737;}function P(_0x214b0a){const _0x34a6d1=Array['from'](_0x214b0a['children']);return 0x1===_0x34a6d1['length']&&'TABLE'===_0x34a6d1[0x0]['tagName']?_0x34a6d1[0x0]:null;}var I=class extends _0x41e47d{static get requires(){return[o];}static get['pluginName'](){return'ImageEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {config:_0x490d99,plugins:_0x7e533a}=this['editor'];_0x490d99['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x7e533a['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 _0x41e47d{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 _0x41e47d{static get requires(){return[o];}static get['pluginName'](){return'ExportInlineStylesEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x512674=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('ExportInlineStyles')||_0x512674['_logSuppressibleWarning']('email-configuration-missing-export-inline-styles-plugin');}},L=class extends _0x41e47d{static get requires(){return[o];}static get['pluginName'](){return'ListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x3dcf09=this['editor']['plugins']['get'](o),_0x47a1f3=this['editor']['config']['get']('list');_0x47a1f3&&_0x47a1f3['properties']&&_0x47a1f3['properties']['reversed']&&_0x3dcf09['_logSuppressibleWarning']('email-configuration-unsupported-reversed-list'),_0x47a1f3&&_0x47a1f3['enableListItemMarkerFormatting']&&_0x3dcf09['_logSuppressibleWarning']('email-configuration-unsupported-list-item-marker-formatting');}},C=class extends _0x41e47d{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:_0x42eb8e}=this['editor'],_0x387f0e=_0x42eb8e['get'](o);_0x42eb8e['has']('Table')&&(_0x42eb8e['has']('PlainTableOutput')||_0x387f0e['_logSuppressibleWarning']('email-configuration-missing-plain-table-output-plugin'),_0x42eb8e['has']('TableLayout')||_0x387f0e['_logSuppressibleWarning']('email-configuration-missing-table-layout-plugin'));}['_checkTableConfig'](){const {config:_0x30b5b1,plugins:_0x2f9412}=this['editor'];_0x30b5b1['get']('table')&&_0x2f9412['has']('Table')&&(this['_checkTablePropertiesConfig']('tableCellProperties'),this['_checkTablePropertiesConfig']('tableProperties'));}_checkTablePropertiesConfig(_0x462213){const _0x2bd95c=this['editor']['plugins']['get'](o);_0x2bd95c['_validateConfigColorValue']('table.'+_0x462213+'.borderColors'),_0x2bd95c['_validateConfigColorValue']('table.'+_0x462213+'.backgroundColors'),_0x2bd95c['_validateConfigColorValue']('table.'+_0x462213+'.defaultProperties.borderColor'),_0x2bd95c['_validateConfigColorValue']('table.'+_0x462213+'.defaultProperties'),_0x2bd95c['_validateConfigColorFormat']('table.'+_0x462213+'.colorPicker.format');}},k=class extends _0x41e47d{static get requires(){return[o];}static get['pluginName'](){return'EmptyBlockEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x753a9e=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('EmptyBlock')||_0x753a9e['_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 _0x41e47d{static get requires(){return[o];}static get['pluginName'](){return'FontEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {plugins:_0x5e4ed6}=this['editor'];_0x5e4ed6['has']('FontColorEditing')&&this['_checkColorConfig']('fontColor'),_0x5e4ed6['has']('FontBackgroundColorEditing')&&this['_checkColorConfig']('fontBackgroundColor');}['_checkColorConfig'](_0x52500e){const _0x4b849d=this['editor']['plugins']['get'](o);_0x4b849d['_validateConfigColorValue'](_0x52500e+'.colors'),_0x4b849d['_validateConfigColorValue'](_0x52500e+'.documentColors'),_0x4b849d['_validateConfigColorFormat'](_0x52500e+'.colorPicker.format');}},x=class extends _0x41e47d{static get requires(){return[o];}static get['pluginName'](){return'SourceEditingEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {plugins:_0x45e138}=this['editor'],_0x1e20ec=_0x45e138['get'](o);_0x45e138['has']('SourceEditing')||_0x45e138['has']('SourceEditingEnhanced')||_0x1e20ec['_logSuppressibleWarning']('email-configuration-missing-source-editing-plugin');}},v=class extends _0x41e47d{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 _0x41e47d{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:_0x505a55}=this['editor'];if(!_0x505a55['has']('DataFilter'))return;const _0x19776c=_0x505a55['get']('DataFilter'),_0x2b3bd=_0x505a55['get'](o);for(const _0x44d45d of GeneralHtmlIntegrationSupport['UNSUPPORTED_ELEMENTS'])_0x19776c['once']('register:'+_0x44d45d,(_0x1705f4,_0x1b8847)=>{_0x2b3bd['_logSuppressibleWarning']('email-unsupported-html-element',{'element':_0x1b8847['view']});});}},A=class extends _0x41e47d{static get requires(){return[o];}static get['pluginName'](){return'MergeFieldsEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x4133de=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('MergeFields')||_0x4133de['_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 _0x41e47d{static get requires(){return[o];}static get['pluginName'](){return'TemplateEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x5cedf2=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('Template')||_0x5cedf2['_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 _0x41e47d{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 _0x41e47d{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 _0x41e47d{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 _0x41e47d{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 _0x41e47d{static get requires(){return[o];}static get['pluginName'](){return'LinkEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {config:_0x521e4a,plugins:_0x3128bf}=this['editor'],_0x375a19=_0x3128bf['get'](o);_0x521e4a['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x375a19['_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 _0x41e47d{['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');const _0x5dc287=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x47d0df;for(const _0x652b50 in _0x5dc287){const _0x4d8dd7=_0x652b50,_0x1eef96=_0x5dc287[_0x4d8dd7];if('emailConfigurationHelperLicenseKeyValid'==_0x1eef96||'emailConfigurationHelperLicenseKeyInvalid'==_0x1eef96||'emailConfigurationHelperLicenseKeyExpired'==_0x1eef96||'emailConfigurationHelperLicenseKeyDomainLimit'==_0x1eef96||'emailConfigurationHelperLicenseKeyNotAllowed'==_0x1eef96||'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x1eef96||'emailConfigurationHelperLicenseKeyUsageLimit'==_0x1eef96){delete _0x5dc287[_0x4d8dd7],_0x47d0df=_0x1eef96,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'emailConfigurationHelperLicenseKeyInvalid'==_0x47d0df&&_0x5dc287['_showLicenseError']('invalid'),'emailConfigurationHelperLicenseKeyExpired'==_0x47d0df&&_0x5dc287['_showLicenseError']('expired'),'emailConfigurationHelperLicenseKeyDomainLimit'==_0x47d0df&&_0x5dc287['_showLicenseError']('domainLimit'),'emailConfigurationHelperLicenseKeyNotAllowed'==_0x47d0df&&_0x5dc287['_showLicenseError']('featureNotAllowed','EmailConfigurationHelper'),'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x47d0df&&_0x5dc287['_showLicenseError']('evaluationLimit'),'emailConfigurationHelperLicenseKeyUsageLimit'==_0x47d0df&&_0x5dc287['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};const U=(_0x55a7d3,_0x2e9bb6)=>{if(!['TABLE','IMG']['includes'](_0x55a7d3['tagName']))return;const _0x279883=_0x2e9bb6['getAsString']('float');if(_0x279883){const _0x5525c0=_0x2315b2(_0x279883);'left'!==_0x5525c0&&'right'!==_0x5525c0||_0x55a7d3['setAttribute']('align',_0x5525c0);}},D=(_0x46dfad,_0x58e83e)=>{if('TABLE'!==_0x46dfad['tagName']||_0x58e83e['has']('float'))return;const _0x32583e=f(_0x58e83e),_0xde2929=_0x58e83e['getAsString']('width');_0x32583e&&(c(_0x46dfad,{'align':_0x32583e}),_0xde2929?_0x46dfad['setAttribute']('width',h(_0xde2929)):_0x58e83e['remove']('width'),_0x58e83e['remove']('margin-left'),_0x58e83e['remove']('margin-right'));},F=(_0x83621b,_0x3368b8)=>{if('IMG'!==_0x83621b['tagName'])return;const _0x3551f2=_0x3368b8['getAsString']('width');_0x3551f2&&(_0x83621b['setAttribute']('width',h(_0x3551f2)),_0x83621b['setAttribute']('height','auto'));},_=(_0x5a8c4e,_0x478875,{runAfterDocumentTransformation:_0x58832e})=>{if('FIGCAPTION'!==_0x5a8c4e['tagName'])return;const _0x76639e=_0x478875['getAsString']('display'),_0x1c9f47=_0x478875['getAsString']('caption-side');_0x478875['remove']('caption-side'),_0x76639e&&'table-caption'===_0x2315b2(_0x76639e)&&_0x478875['remove']('display');const _0xf3e17d=_0x1c9f47&&'top'===_0x2315b2(_0x1c9f47);_0x58832e(()=>{const _0x496f42=m(_0x5a8c4e,'div'),_0x568252=_0x5a8c4e['previousElementSibling'];_0xf3e17d&&_0x568252&&'TABLE'===_0x568252['tagName']?(_0x568252['before'](_0x496f42),_0x5a8c4e['remove']()):_0x5a8c4e['replaceWith'](_0x496f42);});},M=(_0x5e925a,_0x4db1d1,{runAfterChildrenTransformation:_0x3cc27f})=>{'TD'===_0x5e925a['tagName']&&_0x3cc27f(()=>{const _0x370bf6=Array['from'](_0x5e925a['children']);if(0x0===_0x370bf6['length'])return;const _0x41dddc=_0x370bf6['map'](R),_0x576341=_0x41dddc[0x0];if(_0x576341&&_0x41dddc['every'](_0x809d2b=>_0x809d2b===_0x576341)){_0x5e925a['setAttribute']('align',_0x576341);for(const _0x5e417b of _0x370bf6)if(d(_0x5e417b)){const _0x24a0f9=p(_0x5e417b);_0x5e417b['replaceWith'](...Array['from'](_0x24a0f9['childNodes']));}else _0x5e417b['style']['removeProperty']('text-align'),_0x5e417b['style']['length']||_0x5e417b['removeAttribute']('style');}});};function R(_0x59b5e8){return d(_0x59b5e8)?p(_0x59b5e8)['getAttribute']('align'):_0x59b5e8['style']['textAlign']||void 0x0;}const V=(_0x373c06,_0x3243a1,{runAfterChildrenTransformation:_0x157af3})=>{'TABLE'===_0x373c06['tagName']&&_0x157af3(()=>{const _0x5c14e9=function(_0x4578e7,_0x272360){for(const _0x24aa38 of _0x4578e7['children'])if(_0x24aa38['tagName']===_0x272360)return _0x24aa38;return null;}(_0x373c06,'COLGROUP');if(!_0x5c14e9)return;const _0x4e9268=Array['from'](_0x5c14e9['children'])['filter'](_0x3db3a0=>'COL'===_0x3db3a0['tagName']);if(_0x4e9268['some'](_0x1c82fe=>Q(_0x1c82fe,'span')))return;const _0xe3ba12=_0x4e9268['map'](j);if(!_0xe3ba12['some'](Boolean))return;const _0x2c4fa3=function(_0x1083b3){const _0x6f9de2=[];for(const _0x340413 of _0x1083b3['children'])if(['THEAD','TBODY','TFOOT']['includes'](_0x340413['tagName'])){for(const _0x5c0f4c of _0x340413['children'])'TR'===_0x5c0f4c['tagName']&&_0x6f9de2['push'](_0x5c0f4c);}return _0x6f9de2;}(_0x373c06)['map'](G);if(!_0x2c4fa3['some'](_0x48a015=>_0x48a015['length']!==_0xe3ba12['length']||_0x48a015['some'](_0x292b9b=>function(_0x3a7969){return Q(_0x3a7969,'colspan')||Q(_0x3a7969,'rowspan');}(_0x292b9b)||function(_0x38e69f){return Boolean(_0x38e69f['style']['getPropertyValue']('width'))||Boolean(_0x38e69f['getAttribute']('width'));}(_0x292b9b)))){for(const _0x38a667 of _0x2c4fa3)_0x38a667['forEach']((_0x550447,_0x4575d9)=>{const _0x2f70bb=_0xe3ba12[_0x4575d9];_0x2f70bb&&(_0x550447['setAttribute']('width',h(_0x2f70bb)),_0x550447['style']['setProperty']('width',_0x2f70bb));});}});};function G(_0x5d593c){return Array['from'](_0x5d593c['children'])['filter'](_0x1bc239=>'TD'===_0x1bc239['tagName']||'TH'===_0x1bc239['tagName']);}function j(_0x5be494){const _0xb8159b=_0x5be494['style']['getPropertyValue']('width');if(_0xb8159b)return _0xb8159b;const _0x3ad3a2=_0x5be494['getAttribute']('width');if(!_0x3ad3a2)return;const _0x161b71=_0x2315b2(_0x3ad3a2);return/^\d+(\.\d+)?$/['test'](_0x161b71)?_0x161b71+'px':_0x161b71;}function Q(_0x3599d0,_0x2f0668){const _0x34326f=_0x3599d0['getAttribute'](_0x2f0668);return null!==_0x34326f&&'1'!==_0x34326f;}function J(_0x25e20c={}){const _0x15c5e9=[];return _0x25e20c['useFigureToTableFallback']&&_0x15c5e9['push'](w,_,M),_0x15c5e9['push'](U,D,F,V),_0x15c5e9;}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.4.0-alpha.1",
3
+ "version": "48.4.0-alpha.3",
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.4.0-alpha.1",
25
- "@ckeditor/ckeditor5-engine": "48.4.0-alpha.1",
26
- "@ckeditor/ckeditor5-export-inline-styles": "48.4.0-alpha.1",
27
- "@ckeditor/ckeditor5-html-support": "48.4.0-alpha.1",
28
- "@ckeditor/ckeditor5-list": "48.4.0-alpha.1",
29
- "@ckeditor/ckeditor5-table": "48.4.0-alpha.1",
30
- "@ckeditor/ckeditor5-ui": "48.4.0-alpha.1",
31
- "@ckeditor/ckeditor5-utils": "48.4.0-alpha.1"
24
+ "@ckeditor/ckeditor5-core": "48.4.0-alpha.3",
25
+ "@ckeditor/ckeditor5-engine": "48.4.0-alpha.3",
26
+ "@ckeditor/ckeditor5-export-inline-styles": "48.4.0-alpha.3",
27
+ "@ckeditor/ckeditor5-html-support": "48.4.0-alpha.3",
28
+ "@ckeditor/ckeditor5-list": "48.4.0-alpha.3",
29
+ "@ckeditor/ckeditor5-table": "48.4.0-alpha.3",
30
+ "@ckeditor/ckeditor5-ui": "48.4.0-alpha.3",
31
+ "@ckeditor/ckeditor5-utils": "48.4.0-alpha.3"
32
32
  },
33
33
  "files": [
34
34
  "dist",