@ckeditor/ckeditor5-email 48.3.0-alpha.4 → 48.3.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x3078bd}from'@ckeditor/ckeditor5-core';import{uid as _0x5b2540}from'@ckeditor/ckeditor5-utils';import{dropImportantStyleSuffix as _0x2e384a}from'@ckeditor/ckeditor5-export-inline-styles';const r='https://ckeditor.com/docs/ckeditor5/latest';var o=class extends _0x3078bd{static get['pluginName'](){return'EmailConfigurationLogger';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x54a1da){super(_0x54a1da),_0x54a1da['config']['define']('email.logs',{'suppress':[],'suppressAll':!0x1});}['afterInit'](){!async function(_0x47d4c2){const _0x44338a='uizTdvyBIa4RKsnOYmEXGMfjehwJQqbPSCk7DtZgF58Lxl29Ho6cAUW1pV3Nr0',_0x8f92e8=0x78e28,_0x31c346=window['Date']['now'](),_0x2745cf=_0x47d4c2['editor'],_0x1aaafe=new window['Promise'](_0x1c2b52=>{_0x2745cf['once']('ready',_0x1c2b52);}),_0x1eac8a={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x53c396=_0x2745cf['config']['get']('licenseKey');async function _0x44444d(){let _0x4489ae,_0x114078=null,_0x1e8b24=null;try{return'GPL'==_0x53c396?'NotAllowed':(_0x4489ae=_0x2c6e7a(),_0x4489ae?(_0x4489ae['usageEndpoint']&&(_0x1e8b24=_0x189d2f(_0x4489ae['usageEndpoint'],_0x4489ae['jti'])),await _0x2e294f()?_0x5e368b()?_0x2426fa()?'Expired':_0x44a9f2()?('evaluation'==_0x4489ae['licenseType']&&(_0x114078=_0x336886('EvaluationLimit')),await _0x41e4fc()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x2426fa(){const _0x2dbb6f=['evaluation','trial']['includes'](_0x4489ae['licenseType'])?_0x31c346/0x3e8:0xe10*_0x8f92e8;return _0x4489ae['exp']<_0x2dbb6f;}function _0x5e368b(){const _0x3363bc=_0x4489ae['features'];return!!_0x3363bc&&(!!_0x3363bc['includes']('*')||!!_0x3363bc['includes']('ECH'));}function _0x44a9f2(){const _0x1cd437=_0x4489ae['licensedHosts'];if(!_0x1cd437||0x0==_0x1cd437['length'])return!0x0;const {hostname:_0x3d311d}=new URL(window['location']['href']);if(_0x1cd437['includes'](_0x3d311d))return!0x0;const _0x412dd8=_0x3d311d['split']('.');return _0x1cd437['filter'](_0x22f032=>_0x22f032['includes']('*'))['map'](_0x5640c1=>_0x5640c1['split']('.'))['filter'](_0x4ac496=>_0x4ac496['length']<=_0x412dd8['length'])['map'](_0x2f5e63=>Array(_0x412dd8['length']-_0x2f5e63['length'])['fill']('*'===_0x2f5e63[0x0]?'*':'')['concat'](_0x2f5e63))['some'](_0x38aa6a=>_0x412dd8['every']((_0x256b9,_0x17308b)=>_0x38aa6a[_0x17308b]===_0x256b9||'*'===_0x38aa6a[_0x17308b]));}function _0x41e4fc(){return _0x114078&&_0x1e8b24?new window['Promise']((_0x28a0f8,_0x13844a)=>{_0x114078['then'](_0x28a0f8,_0x13844a),_0x1e8b24['then'](_0xcbd4fb=>{'Valid'!=_0xcbd4fb&&_0x28a0f8(_0xcbd4fb);},_0x13844a);}):_0x114078||_0x1e8b24||'Valid';}}function _0x189d2f(_0xd13f7f,_0x4cbef7){return new window['Promise'](_0x28859d=>{if(_0x31d71a())return _0x28859d('Valid');_0x12a04f(),_0x2745cf['decorate']('_sendUsageRequest');let _0x5843cf=!0x1;const _0x14dee2=_0x5b2540();function _0x548a5a(_0x42d69e){return!!_0x42d69e&&('object'==typeof _0x42d69e||'function'==typeof _0x42d69e)&&'function'==typeof _0x42d69e['then']&&'function'==typeof _0x42d69e['catch'];}function _0x36bf0(_0x3c1bee){_0x1438e5(_0x3c1bee)['then'](_0x54cda5=>_0x54cda5&&'ok'==_0x54cda5['status']?_0x201300(_0xc366a2(_0x14dee2+_0x4cbef7))!=_0x54cda5['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x4424f9=>(_0x1fcd40(),_0x4424f9),()=>{const _0x156111=_0x211b15();return null==_0x156111?(_0x1fcd40(),'Valid'):_0x31c346-_0x156111>0x240c8400?'UsageLimit':'Valid';})['then'](_0x28859d)['catch'](()=>{_0x28859d('UsageLimit');});const _0x3d7543=0x36ee80;function _0x1fcd40(){const _0x5e332c='llct-'+_0x201300(_0xc366a2(_0xd13f7f)),_0x3cb8aa=_0x2d101b(_0x201300(window['Math']['ceil'](_0x31c346/_0x3d7543)));window['localStorage']['setItem'](_0x5e332c,_0x3cb8aa);}function _0x211b15(){const _0x19be46='llct-'+_0x201300(_0xc366a2(_0xd13f7f)),_0x269162=window['localStorage']['getItem'](_0x19be46);return _0x269162?window['parseInt'](_0x2d101b(_0x269162),0x10)*_0x3d7543:null;}function _0x1438e5(_0x2c01d8){return new window['Promise']((_0xe9e797,_0x417a96)=>{_0x2c01d8['then'](_0xe9e797,_0x417a96),window['setTimeout'](_0x417a96,0x1d4c0);});}}_0x2745cf['on']('_sendUsageRequest',(_0x51cd64,_0x73adb1)=>{if(_0x73adb1[0x0]!=_0xd13f7f)return _0x28859d('UsageLimit');_0x73adb1[0x1]={..._0x73adb1[0x1],'requestId':_0x14dee2};},{'priority':'high'}),_0x2745cf['on']('_sendUsageRequest',_0x3e450f=>{_0x548a5a(_0x3e450f['return'])&&(_0x5843cf=!0x0,_0x36bf0(_0x3e450f['return']));},{'priority':'low'}),_0x1aaafe['then'](()=>{_0x5843cf||_0x28859d('UsageLimit');});});function _0x31d71a(){return'auto'==_0x2745cf['editing']['view']['_overlayModeHint'];}function _0x12a04f(){_0x2745cf['editing']['view']['_overlayModeHint']='auto';}}function _0x336886(_0x4bff5b){const _0x91a0aa=[new window['Promise'](_0x10dc3a=>setTimeout(_0x10dc3a,0x93ecc)),_0x1aaafe['then'](()=>new window['Promise'](_0x50bff0=>{let _0xdc4912=0x0;_0x2745cf['model']['on']('applyOperation',(_0x4c74ea,_0x366005)=>{_0x366005[0x0]['isDocumentOperation']&&_0xdc4912++,0x5e8==_0xdc4912&&(_0x50bff0(),_0x4c74ea['off']());});}))];return window['Promise']['race'](_0x91a0aa)['then'](()=>_0x4bff5b);}async function _0x32c81a(){await _0x1aaafe,_0x2745cf['model']['change']=_0x9f27ad,_0x2745cf['model']['enqueueChange']=_0x9f27ad,_0x2745cf['enableReadOnlyMode']('model');}function _0x5b58c3(_0x1d42e1){const _0x5d73cc=_0x34004a();_0x2745cf[_0x5d73cc]='emailConfigurationHelperLicenseKey'+_0x1d42e1,'Valid'!=_0x1d42e1&&_0x32c81a();}function _0x34004a(){const _0x3a3053=window['String'](window['performance']['now']())['replace']('.','');let _0x4f1ced='u';for(let _0x1a1afb=0x0;_0x1a1afb<_0x3a3053['length'];_0x1a1afb+=0x2){let _0x2bdb8d=window['parseInt'](_0x3a3053['substring'](_0x1a1afb,_0x1a1afb+0x2));_0x2bdb8d>=0x3e&&(_0x2bdb8d-=0x3e),_0x4f1ced+=_0x44338a[_0x2bdb8d];}return _0x4f1ced;}function _0x2c6e7a(){const _0x35b427=_0x53c396['split']('.');if(0x3!=_0x35b427['length'])return null;return _0x5d66b2(_0x35b427[0x1]);function _0x5d66b2(_0x3c594c){const _0x37ee4e=_0x442687(_0x3c594c);return _0x37ee4e&&_0x53c1ce()?_0x37ee4e:null;function _0x53c1ce(){const _0x54799b=_0x37ee4e['jti'],_0x4615b5=window['parseInt'](_0x54799b['substring'](_0x54799b['length']-0x8),0x10),_0x589f84={..._0x37ee4e,'jti':_0x54799b['substring'](0x0,_0x54799b['length']-0x8)};return delete _0x589f84['vc'],_0xc366a2(_0x589f84)==_0x4615b5;}}}async function _0x2e294f(){let _0xd587ad=!0x0;try{const [_0x36ecb2,_0x15024f,_0x282af5]=_0x53c396['split']('.');return _0x18fab0(_0x36ecb2),await _0x5341aa(_0x36ecb2,_0x15024f,_0x282af5),_0xd587ad;}catch{return!0x1;}function _0x18fab0(_0x189c1d){const _0x380539=_0x442687(_0x189c1d);_0x380539&&'ES256'==_0x380539['alg']||(_0xd587ad=!0x1);}async function _0x5341aa(_0x4f5f71,_0x4ca077,_0xa87ad2){const _0x2768dc=window['Uint8Array']['from'](_0x3f6ba9(_0xa87ad2),_0x4b799d=>_0x4b799d['charCodeAt'](0x0)),_0x4f082f=new window['TextEncoder']()['encode'](_0x4f5f71+'.'+_0x4ca077),_0x4085e3=window['crypto']['subtle'];if(!_0x4085e3)return;const _0x3614f9=await _0x4085e3['importKey']('jwk',_0x1eac8a,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x4085e3['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x3614f9,_0x2768dc,_0x4f082f)||(_0xd587ad=!0x1);}}function _0x442687(_0x116a42){return _0x116a42['startsWith']('ey')?JSON['parse'](_0x3f6ba9(_0x116a42)):null;}function _0x3f6ba9(_0x2f0e94){return window['atob'](_0x2f0e94['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0xc366a2(_0x13fdcb){let _0x3e8314=0x1505;function _0x345cf1(_0x51913e){for(let _0x27845e=0x0;_0x27845e<_0x51913e['length'];_0x27845e++){const _0xa02dfc=_0x51913e['charCodeAt'](_0x27845e);_0x3e8314=(_0x3e8314<<0x5)+_0x3e8314+_0xa02dfc,_0x3e8314&=_0x3e8314;}}function _0x3f3724(_0x14a8b7){Array['isArray'](_0x14a8b7)?_0x14a8b7['forEach'](_0x3f3724):_0x14a8b7&&'object'==typeof _0x14a8b7?Object['entries'](_0x14a8b7)['sort']()['forEach'](([_0x29feb8,_0x569aa7])=>{_0x345cf1(_0x29feb8),_0x3f3724(_0x569aa7);}):_0x345cf1(window['String'](_0x14a8b7));}return _0x3f3724(_0x13fdcb),_0x3e8314>>>0x0;}function _0x201300(_0x212b8a){return _0x212b8a['toString'](0x10)['padStart'](0x8,'0');}function _0x2d101b(_0x5b2522){return _0x5b2522['split']('')['reverse']()['join']('');}function _0x9f27ad(){}_0x5b58c3(await _0x44444d());}(this);}['_logSuppressibleWarning'](_0x5491d5,_0x1d4e01){if(this['_isSuppressedLog'](_0x5491d5,_0x1d4e01))return;const _0x2dddce=r+'/support/error-codes.html#error-'+_0x5491d5;console['warn']('%cEmailConfigurationHelper%c\x20'+_0x5491d5,'background:\x20#E65100;\x20color:\x20white;\x20padding:\x202px\x204px;','',..._0x1d4e01?[_0x1d4e01]:[],'\x0aRead\x20more:\x20'+_0x2dddce);}['_logSuppressibleInfo'](_0x42d921,_0x1200ec,_0x55881e){if(this['_isSuppressedLog'](_0x42d921))return;let _0x2cd7f5=_0x1200ec;_0x55881e&&(_0x2cd7f5+='\x0aRead\x20more:\x20'+(r+'/'+_0x55881e)),console['info']('%cEmailConfigurationHelper%c\x20'+_0x42d921,'background:\x20#4169E1;\x20color:\x20white;\x20padding:\x202px\x204px;','',_0x2cd7f5);}['_checkUnsupportedPlugin'](_0x453157,_0x4f2615){this['editor']['plugins']['has'](_0x453157)&&this['_logSuppressibleWarning']('email-configuration-unsupported-plugin',{'pluginName':_0x453157,..._0x4f2615});}['_validateConfigColorValue'](_0x461e33){const _0x14b482=this['editor']['config']['get'](_0x461e33);if(!_0x14b482)return;const _0x357768=Array['isArray'](_0x14b482),_0x1f9cf3=_0x357768?_0x14b482:[_0x14b482];for(const [_0x17abb0,_0x1d0cdc]of _0x1f9cf3['entries']()){const _0x2c59de='string'==typeof _0x1d0cdc?_0x1d0cdc:_0x1d0cdc['color'];s(_0x2c59de)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-value',{'configPath':_0x357768?_0x461e33+'['+_0x17abb0+']':_0x461e33,'color':_0x2c59de});}}['_validateConfigColorFormat'](_0x3b86bc){const _0x3bac5e=this['editor']['config']['get'](_0x3b86bc);_0x3bac5e&&l(_0x3bac5e)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-format',{'configPath':_0x3b86bc,'format':_0x3bac5e});}['_isSuppressedLog'](_0x32b6ae,_0xa42716){const _0x23110c=this['editor']['config']['get']('email.logs');return!!_0x23110c['suppressAll']||(!('function'!=typeof _0x23110c['suppress']||!_0x23110c['suppress'](_0x32b6ae,_0xa42716))||!(!Array['isArray'](_0x23110c['suppress'])||!_0x23110c['suppress']['includes'](_0x32b6ae)));}};const a=['hsl','hsla','hwb','lab','lch','oklab','oklch','color-mix','rgba'];function s(_0x14dbe9){return!!_0x14dbe9&&a['some'](_0x1c8785=>_0x14dbe9['includes'](_0x1c8785+'('));}function l(_0x2666a6){return!!_0x2666a6&&a['includes'](_0x2666a6);}var u=class extends _0x3078bd{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(_0x10ae2a,_0x15963e){const _0x152c31=_0x10ae2a['ownerDocument'],{table:_0xc8ba31,cell:_0x25221a}=g(_0x152c31,'100%');_0x15963e['align']&&_0x25221a['setAttribute']('align',_0x2e384a(_0x15963e['align']));let _0x44eb74=_0x25221a;if(_0x15963e['width']){const {table:_0x23319e,cell:_0x1d9961}=g(_0x152c31,_0x2e384a(_0x15963e['width']));_0x25221a['appendChild'](_0x23319e),_0x44eb74=_0x1d9961;}return _0x10ae2a['replaceWith'](_0xc8ba31),_0x10ae2a['removeAttribute']('align'),_0x10ae2a['removeAttribute']('width'),_0x44eb74['appendChild'](_0x10ae2a),_0x44eb74;}function g(_0x176593,_0x5b7b97){const _0x1a0cc7=_0x176593['createElement']('table');_0x5b7b97&&(_0x1a0cc7['style']['width']=_0x5b7b97,_0x1a0cc7['setAttribute']('width',h(_0x5b7b97))),_0x1a0cc7['setAttribute']('cellpadding','0'),_0x1a0cc7['setAttribute']('cellspacing','0'),_0x1a0cc7['setAttribute']('border','0'),_0x1a0cc7['setAttribute']('role','presentation');const _0x14185e=_0x176593['createElement']('tbody'),_0x1bc2d6=_0x176593['createElement']('tr'),_0x10373d=_0x176593['createElement']('td');return _0x1a0cc7['appendChild'](_0x14185e),_0x14185e['appendChild'](_0x1bc2d6),_0x1bc2d6['appendChild'](_0x10373d),{'table':_0x1a0cc7,'cell':_0x10373d};}function f(_0x4638d3){const _0x564aa0=_0x4638d3['getAsString']('margin-left'),_0x33cfb8=_0x4638d3['getAsString']('margin-right'),_0x8c77=_0x564aa0&&_0x2e384a(_0x564aa0),_0x4d40e9=_0x33cfb8&&_0x2e384a(_0x33cfb8);return'auto'===_0x8c77&&'auto'===_0x4d40e9?'center':'auto'===_0x8c77?'right':'auto'===_0x4d40e9?'left':void 0x0;}function m(_0x2af7dd,_0x47346c){const _0x44349b=_0x2af7dd['ownerDocument']['createElement'](_0x47346c);for(const _0x2af3d6 of Array['from'](_0x2af7dd['attributes']))_0x44349b['setAttribute'](_0x2af3d6['name'],_0x2af3d6['value']);for(;_0x2af7dd['firstChild'];)_0x44349b['appendChild'](_0x2af7dd['firstChild']);return _0x44349b;}function d(_0x2895ee){if('TABLE'!==_0x2895ee['tagName'])return!0x1;if('presentation'!==_0x2895ee['getAttribute']('role'))return!0x1;const _0x215742=p(_0x2895ee);return null!==_0x215742&&_0x215742['hasAttribute']('align');}function p(_0x4dbf40){let _0x2558dd=_0x4dbf40;0x1===_0x4dbf40['children']['length']&&'TBODY'===_0x4dbf40['children'][0x0]['tagName']&&(_0x2558dd=_0x4dbf40['children'][0x0]);const _0x229c14=_0x2558dd['children'];if(0x1!==_0x229c14['length']||'TR'!==_0x229c14[0x0]['tagName'])return null;const _0x410baf=_0x229c14[0x0]['children'];return 0x1!==_0x410baf['length']||'TD'!==_0x410baf[0x0]['tagName']?null:_0x410baf[0x0];}function h(_0x505ff5){return function(_0x1d7db2){return _0x1d7db2['endsWith']('px')?_0x1d7db2['slice'](0x0,-0x2):_0x1d7db2;}(_0x2e384a(_0x505ff5));}const w=(_0x380268,_0x3d3713,{runAfterDocumentTransformation:_0xf97f9b,runAfterChildrenTransformation:_0x419b63})=>{if('FIGURE'!==_0x380268['tagName'])return;const _0x52dac2=_0x3d3713['getAsString']('float');if(_0x52dac2){if(P(_0x380268))_0xf97f9b(()=>{y(_0x380268,{'align':_0x52dac2});});else{const {table:_0x4e4a3b,cell:_0x1b08b2}=g(_0x380268['ownerDocument']);_0x4e4a3b['setAttribute']('align',_0x2e384a(_0x52dac2)),_0x4e4a3b['setAttribute']('style',function(_0x55942c){return _0x55942c['getStylesEntries']()['map'](_0x263038=>_0x263038['join'](':'))['join'](';')+';';}(_0x3d3713)),_0x419b63(()=>{for(const _0x36887d of Array['from'](_0x380268['childNodes']))_0x1b08b2['appendChild'](_0x36887d);}),_0xf97f9b(()=>{_0x380268['replaceWith'](_0x4e4a3b);});}}else{const _0x283324=f(_0x3d3713),_0x2ad30e=_0x3d3713['getAsString']('width');if(!_0x283324&&!_0x2ad30e)return;c(_0x380268,{'align':_0x283324,'width':_0x2ad30e}),_0x2ad30e&&_0x3d3713['set']('width','100%'),_0x3d3713['remove']('margin-left'),_0x3d3713['remove']('margin-right'),_0x3d3713['remove']('min-width'),_0x3d3713['remove']('max-width'),_0xf97f9b(()=>{if(!y(_0x380268)){const _0x60fa43=m(_0x380268,'div');_0x380268['replaceWith'](_0x60fa43);}});}};function y(_0x24ab6a,_0x2c742a={}){const _0x1a2889=P(_0x24ab6a);if(!_0x1a2889)return null;for(const _0x4f9577 of['id','class']){const _0x516588=_0x24ab6a['getAttribute'](_0x4f9577);_0x516588&&_0x1a2889['setAttribute'](_0x4f9577,_0x516588);}for(const _0x2fb159 of['display','float','width','height'])_0x1a2889['style']['removeProperty'](_0x2fb159);const _0x27bafe=_0x24ab6a['getAttribute']('style');if(_0x27bafe){const _0x40d489=_0x1a2889['getAttribute']('style')||'';_0x1a2889['setAttribute']('style',_0x27bafe+_0x40d489);}return _0x2c742a['align']&&_0x1a2889['setAttribute']('align',_0x2e384a(_0x2c742a['align'])),'fixed'!==_0x1a2889['style']['tableLayout']||_0x1a2889['style']['width']||(_0x1a2889['style']['width']='100%',_0x1a2889['setAttribute']('width','100%')),_0x24ab6a['replaceWith'](_0x1a2889),_0x1a2889;}function P(_0x388659){const _0x23050e=Array['from'](_0x388659['children']);return 0x1===_0x23050e['length']&&'TABLE'===_0x23050e[0x0]['tagName']?_0x23050e[0x0]:null;}var I=class extends _0x3078bd{static get['requires'](){return[o];}static get['pluginName'](){return'ImageEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {config:_0x1552c7,plugins:_0x222a1c}=this['editor'];_0x1552c7['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x222a1c['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 _0x3078bd{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 _0x3078bd{static get['requires'](){return[o];}static get['pluginName'](){return'ExportInlineStylesEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x213f69=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('ExportInlineStyles')||_0x213f69['_logSuppressibleWarning']('email-configuration-missing-export-inline-styles-plugin');}},L=class extends _0x3078bd{static get['requires'](){return[o];}static get['pluginName'](){return'ListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x382a71=this['editor']['plugins']['get'](o),_0x3d7edc=this['editor']['config']['get']('list');_0x3d7edc&&_0x3d7edc['properties']&&_0x3d7edc['properties']['reversed']&&_0x382a71['_logSuppressibleWarning']('email-configuration-unsupported-reversed-list'),_0x3d7edc&&_0x3d7edc['enableListItemMarkerFormatting']&&_0x382a71['_logSuppressibleWarning']('email-configuration-unsupported-list-item-marker-formatting');}},C=class extends _0x3078bd{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:_0x29b3f8}=this['editor'],_0x32d753=_0x29b3f8['get'](o);_0x29b3f8['has']('Table')&&(_0x29b3f8['has']('PlainTableOutput')||_0x32d753['_logSuppressibleWarning']('email-configuration-missing-plain-table-output-plugin'),_0x29b3f8['has']('TableLayout')||_0x32d753['_logSuppressibleWarning']('email-configuration-missing-table-layout-plugin'));}['_checkTableConfig'](){const {config:_0x27f673,plugins:_0x317718}=this['editor'];_0x27f673['get']('table')&&_0x317718['has']('Table')&&(this['_checkTablePropertiesConfig']('tableCellProperties'),this['_checkTablePropertiesConfig']('tableProperties'));}['_checkTablePropertiesConfig'](_0x50a329){const _0x4c1d1b=this['editor']['plugins']['get'](o);_0x4c1d1b['_validateConfigColorValue']('table.'+_0x50a329+'.borderColors'),_0x4c1d1b['_validateConfigColorValue']('table.'+_0x50a329+'.backgroundColors'),_0x4c1d1b['_validateConfigColorValue']('table.'+_0x50a329+'.defaultProperties.borderColor'),_0x4c1d1b['_validateConfigColorValue']('table.'+_0x50a329+'.defaultProperties'),_0x4c1d1b['_validateConfigColorFormat']('table.'+_0x50a329+'.colorPicker.format');}},k=class extends _0x3078bd{static get['requires'](){return[o];}static get['pluginName'](){return'EmptyBlockEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0xfdd3d=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('EmptyBlock')||_0xfdd3d['_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 _0x3078bd{static get['requires'](){return[o];}static get['pluginName'](){return'FontEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {plugins:_0x3a462c}=this['editor'];_0x3a462c['has']('FontColorEditing')&&this['_checkColorConfig']('fontColor'),_0x3a462c['has']('FontBackgroundColorEditing')&&this['_checkColorConfig']('fontBackgroundColor');}['_checkColorConfig'](_0x2642d9){const _0x22cd21=this['editor']['plugins']['get'](o);this['editor']['config']['get'](_0x2642d9)&&(_0x22cd21['_validateConfigColorValue'](_0x2642d9+'.colors'),_0x22cd21['_validateConfigColorValue'](_0x2642d9+'.documentColors'),_0x22cd21['_validateConfigColorFormat'](_0x2642d9+'.colorPicker.format'));}},x=class extends _0x3078bd{static get['requires'](){return[o];}static get['pluginName'](){return'SourceEditingEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {plugins:_0x244947}=this['editor'],_0x521df7=_0x244947['get'](o);_0x244947['has']('SourceEditing')||_0x244947['has']('SourceEditingEnhanced')||_0x521df7['_logSuppressibleWarning']('email-configuration-missing-source-editing-plugin');}},v=class extends _0x3078bd{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 _0x3078bd{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:_0x4ff39f}=this['editor'];if(!_0x4ff39f['has']('DataFilter'))return;const _0x173efb=_0x4ff39f['get']('DataFilter'),_0x52b533=_0x4ff39f['get'](o);for(const _0x34f843 of GeneralHtmlIntegrationSupport['UNSUPPORTED_ELEMENTS'])_0x173efb['once']('register:'+_0x34f843,(_0x1a6c46,_0x7f82ce)=>{_0x52b533['_logSuppressibleWarning']('email-unsupported-html-element',{'element':_0x7f82ce['view']});});}},A=class extends _0x3078bd{static get['requires'](){return[o];}static get['pluginName'](){return'MergeFieldsEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x2f14ab=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('MergeFields')||_0x2f14ab['_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 _0x3078bd{static get['requires'](){return[o];}static get['pluginName'](){return'TemplateEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x37333a=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('Template')||_0x37333a['_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 _0x3078bd{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 _0x3078bd{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 _0x3078bd{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 _0x3078bd{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 _0x3078bd{static get['requires'](){return[o];}static get['pluginName'](){return'LinkEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {config:_0x3a412c,plugins:_0x47bbe3}=this['editor'],_0x7bf769=_0x47bbe3['get'](o);_0x3a412c['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x7bf769['_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 _0x3078bd{['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 _0x327a38=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4c6226;for(const _0x4a3e66 in _0x327a38){const _0x1338c3=_0x4a3e66,_0x80e22b=_0x327a38[_0x1338c3];if('emailConfigurationHelperLicenseKeyValid'==_0x80e22b||'emailConfigurationHelperLicenseKeyInvalid'==_0x80e22b||'emailConfigurationHelperLicenseKeyExpired'==_0x80e22b||'emailConfigurationHelperLicenseKeyDomainLimit'==_0x80e22b||'emailConfigurationHelperLicenseKeyNotAllowed'==_0x80e22b||'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x80e22b||'emailConfigurationHelperLicenseKeyUsageLimit'==_0x80e22b){delete _0x327a38[_0x1338c3],_0x4c6226=_0x80e22b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'emailConfigurationHelperLicenseKeyInvalid'==_0x4c6226&&_0x327a38['_showLicenseError']('invalid'),'emailConfigurationHelperLicenseKeyExpired'==_0x4c6226&&_0x327a38['_showLicenseError']('expired'),'emailConfigurationHelperLicenseKeyDomainLimit'==_0x4c6226&&_0x327a38['_showLicenseError']('domainLimit'),'emailConfigurationHelperLicenseKeyNotAllowed'==_0x4c6226&&_0x327a38['_showLicenseError']('featureNotAllowed','EmailConfigurationHelper'),'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x4c6226&&_0x327a38['_showLicenseError']('evaluationLimit'),'emailConfigurationHelperLicenseKeyUsageLimit'==_0x4c6226&&_0x327a38['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};const U=(_0x50a10d,_0x578ea7)=>{if(!['TABLE','IMG']['includes'](_0x50a10d['tagName']))return;const _0x45d8be=_0x578ea7['getAsString']('float');if(_0x45d8be){const _0x27453d=_0x2e384a(_0x45d8be);'left'!==_0x27453d&&'right'!==_0x27453d||_0x50a10d['setAttribute']('align',_0x27453d);}},D=(_0x1d713e,_0x4c9a19)=>{if('TABLE'!==_0x1d713e['tagName']||_0x4c9a19['has']('float'))return;const _0x49d3ce=f(_0x4c9a19),_0x2408c6=_0x4c9a19['getAsString']('width');_0x49d3ce&&(c(_0x1d713e,{'align':_0x49d3ce}),_0x2408c6?_0x1d713e['setAttribute']('width',h(_0x2408c6)):_0x4c9a19['remove']('width'),_0x4c9a19['remove']('margin-left'),_0x4c9a19['remove']('margin-right'));},F=(_0x38b322,_0x2b3859)=>{if('IMG'!==_0x38b322['tagName'])return;const _0x3f2290=_0x2b3859['getAsString']('width');_0x3f2290&&(_0x38b322['setAttribute']('width',h(_0x3f2290)),_0x38b322['setAttribute']('height','auto'));},_=(_0x1bf7f9,_0x16e403,{runAfterDocumentTransformation:_0x1366aa})=>{if('FIGCAPTION'!==_0x1bf7f9['tagName'])return;const _0x4da32e=_0x16e403['getAsString']('display'),_0x32e1e9=_0x16e403['getAsString']('caption-side');_0x16e403['remove']('caption-side'),_0x4da32e&&'table-caption'===_0x2e384a(_0x4da32e)&&_0x16e403['remove']('display');const _0x336afd=_0x32e1e9&&'top'===_0x2e384a(_0x32e1e9);_0x1366aa(()=>{const _0x47c446=m(_0x1bf7f9,'div'),_0x57884f=_0x1bf7f9['previousElementSibling'];_0x336afd&&_0x57884f&&'TABLE'===_0x57884f['tagName']?(_0x57884f['before'](_0x47c446),_0x1bf7f9['remove']()):_0x1bf7f9['replaceWith'](_0x47c446);});},M=(_0x4933bd,_0x34090f,{runAfterChildrenTransformation:_0x189e8d})=>{'TD'===_0x4933bd['tagName']&&_0x189e8d(()=>{const _0x106290=Array['from'](_0x4933bd['children']);if(0x0===_0x106290['length'])return;const _0x2e5b4d=_0x106290['map'](R),_0x4c3348=_0x2e5b4d[0x0];if(_0x4c3348&&_0x2e5b4d['every'](_0x3e7c39=>_0x3e7c39===_0x4c3348)){_0x4933bd['setAttribute']('align',_0x4c3348);for(const _0x435f95 of _0x106290)if(d(_0x435f95)){const _0x318606=p(_0x435f95);_0x435f95['replaceWith'](...Array['from'](_0x318606['childNodes']));}else _0x435f95['style']['removeProperty']('text-align'),_0x435f95['style']['length']||_0x435f95['removeAttribute']('style');}});};function R(_0x477fd5){return d(_0x477fd5)?p(_0x477fd5)['getAttribute']('align'):_0x477fd5['style']['textAlign']||void 0x0;}const V=(_0x3c1a79,_0x1ba2d5,{runAfterChildrenTransformation:_0x17574e})=>{'TABLE'===_0x3c1a79['tagName']&&_0x17574e(()=>{const _0x5717bc=function(_0x1526ee,_0x1f36fe){for(const _0x42196f of _0x1526ee['children'])if(_0x42196f['tagName']===_0x1f36fe)return _0x42196f;return null;}(_0x3c1a79,'COLGROUP');if(!_0x5717bc)return;const _0x148aa6=Array['from'](_0x5717bc['children'])['filter'](_0x43b014=>'COL'===_0x43b014['tagName']);if(_0x148aa6['some'](_0x6fbed2=>Q(_0x6fbed2,'span')))return;const _0x5e415a=_0x148aa6['map'](j);if(!_0x5e415a['some'](Boolean))return;const _0x34a018=function(_0x2ea268){const _0x23332c=[];for(const _0x2133ea of _0x2ea268['children'])if(['THEAD','TBODY','TFOOT']['includes'](_0x2133ea['tagName'])){for(const _0x549c2e of _0x2133ea['children'])'TR'===_0x549c2e['tagName']&&_0x23332c['push'](_0x549c2e);}return _0x23332c;}(_0x3c1a79)['map'](G);if(!_0x34a018['some'](_0x5d0d2a=>_0x5d0d2a['length']!==_0x5e415a['length']||_0x5d0d2a['some'](_0x45400d=>function(_0x1181bd){return Q(_0x1181bd,'colspan')||Q(_0x1181bd,'rowspan');}(_0x45400d)||function(_0xa8ec0e){return Boolean(_0xa8ec0e['style']['getPropertyValue']('width'))||Boolean(_0xa8ec0e['getAttribute']('width'));}(_0x45400d)))){for(const _0x30f867 of _0x34a018)_0x30f867['forEach']((_0x1de70f,_0x2c5742)=>{const _0x18871f=_0x5e415a[_0x2c5742];_0x18871f&&(_0x1de70f['setAttribute']('width',h(_0x18871f)),_0x1de70f['style']['setProperty']('width',_0x18871f));});}});};function G(_0xc81b55){return Array['from'](_0xc81b55['children'])['filter'](_0x2ec93c=>'TD'===_0x2ec93c['tagName']||'TH'===_0x2ec93c['tagName']);}function j(_0x3086c2){const _0x1ce688=_0x3086c2['style']['getPropertyValue']('width');if(_0x1ce688)return _0x1ce688;const _0x43c39c=_0x3086c2['getAttribute']('width');if(!_0x43c39c)return;const _0x519757=_0x2e384a(_0x43c39c);return/^\d+(\.\d+)?$/['test'](_0x519757)?_0x519757+'px':_0x519757;}function Q(_0x231683,_0x370fc9){const _0x404130=_0x231683['getAttribute'](_0x370fc9);return null!==_0x404130&&'1'!==_0x404130;}function J(_0x3962a0={}){const _0x1a3dd8=[];return _0x3962a0['useFigureToTableFallback']&&_0x1a3dd8['push'](w,_,M),_0x1a3dd8['push'](U,D,F,V),_0x1a3dd8;}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 _0x43e24c}from'@ckeditor/ckeditor5-core';import{uid as _0x3cda2f}from'@ckeditor/ckeditor5-utils';import{dropImportantStyleSuffix as _0x380614}from'@ckeditor/ckeditor5-export-inline-styles';const r='https://ckeditor.com/docs/ckeditor5/latest';var o=class extends _0x43e24c{static get['pluginName'](){return'EmailConfigurationLogger';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3d2e39){super(_0x3d2e39),_0x3d2e39['config']['define']('email.logs',{'suppress':[],'suppressAll':!0x1});}['afterInit'](){!async function(_0x3a277c){const _0x44ed5b='uizTdvyBIa4RKsnOYmEXGMfjehwJQqbPSCk7DtZgF58Lxl29Ho6cAUW1pV3Nr0',_0x2b3119=0x78e58,_0x293a37=window['Date']['now'](),_0x3c86f6=_0x3a277c['editor'],_0x7378e8=new window['Promise'](_0x19abbd=>{_0x3c86f6['once']('ready',_0x19abbd);}),_0x12c17e={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x7af856=_0x3c86f6['config']['get']('licenseKey');async function _0x5817cf(){let _0x325422,_0x2d6868=null,_0x18fa77=null;try{return'GPL'==_0x7af856?'NotAllowed':(_0x325422=_0xa6c063(),_0x325422?(_0x325422['usageEndpoint']&&(_0x18fa77=_0x79cbb7(_0x325422['usageEndpoint'],_0x325422['jti'])),await _0xe2ec6a()?_0x563582()?_0x4d0579()?'Expired':_0x4535eb()?('evaluation'==_0x325422['licenseType']&&(_0x2d6868=_0x48bfd2('EvaluationLimit')),await _0x7dae2f()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x4d0579(){const _0x249a1c=['evaluation','trial']['includes'](_0x325422['licenseType'])?_0x293a37/0x3e8:0xe10*_0x2b3119;return _0x325422['exp']<_0x249a1c;}function _0x563582(){const _0x38e83d=_0x325422['features'];return!!_0x38e83d&&(!!_0x38e83d['includes']('*')||!!_0x38e83d['includes']('ECH'));}function _0x4535eb(){const _0x4a22fd=_0x325422['licensedHosts'];if(!_0x4a22fd||0x0==_0x4a22fd['length'])return!0x0;const {hostname:_0x1540e5}=new URL(window['location']['href']);if(_0x4a22fd['includes'](_0x1540e5))return!0x0;const _0x46b289=_0x1540e5['split']('.');return _0x4a22fd['filter'](_0x561d17=>_0x561d17['includes']('*'))['map'](_0x20f523=>_0x20f523['split']('.'))['filter'](_0xd3161f=>_0xd3161f['length']<=_0x46b289['length'])['map'](_0x365832=>Array(_0x46b289['length']-_0x365832['length'])['fill']('*'===_0x365832[0x0]?'*':'')['concat'](_0x365832))['some'](_0x3bb40a=>_0x46b289['every']((_0x63f1f,_0x56f9b2)=>_0x3bb40a[_0x56f9b2]===_0x63f1f||'*'===_0x3bb40a[_0x56f9b2]));}function _0x7dae2f(){return _0x2d6868&&_0x18fa77?new window['Promise']((_0xad470f,_0x5a8491)=>{_0x2d6868['then'](_0xad470f,_0x5a8491),_0x18fa77['then'](_0xffcb40=>{'Valid'!=_0xffcb40&&_0xad470f(_0xffcb40);},_0x5a8491);}):_0x2d6868||_0x18fa77||'Valid';}}function _0x79cbb7(_0x114200,_0x4eea34){return new window['Promise'](_0x43e0d5=>{if(_0x19c286())return _0x43e0d5('Valid');_0x5a0003(),_0x3c86f6['decorate']('_sendUsageRequest');let _0x4b03a9=!0x1;const _0x133cd3=_0x3cda2f();function _0x31d53f(_0x3014ee){return!!_0x3014ee&&('object'==typeof _0x3014ee||'function'==typeof _0x3014ee)&&'function'==typeof _0x3014ee['then']&&'function'==typeof _0x3014ee['catch'];}function _0x525e6e(_0x24a01c){_0xcd4b47(_0x24a01c)['then'](_0x3a6eca=>_0x3a6eca&&'ok'==_0x3a6eca['status']?_0x3067ca(_0x2aff33(_0x133cd3+_0x4eea34))!=_0x3a6eca['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x2e75f6=>(_0x222965(),_0x2e75f6),()=>{const _0xda874c=_0xd50a67();return null==_0xda874c?(_0x222965(),'Valid'):_0x293a37-_0xda874c>0x240c8400?'UsageLimit':'Valid';})['then'](_0x43e0d5)['catch'](()=>{_0x43e0d5('UsageLimit');});const _0xaf05c7=0x36ee80;function _0x222965(){const _0x2913a7='llct-'+_0x3067ca(_0x2aff33(_0x114200)),_0x2428b9=_0x58f96e(_0x3067ca(window['Math']['ceil'](_0x293a37/_0xaf05c7)));window['localStorage']['setItem'](_0x2913a7,_0x2428b9);}function _0xd50a67(){const _0x413195='llct-'+_0x3067ca(_0x2aff33(_0x114200)),_0x4e74fb=window['localStorage']['getItem'](_0x413195);return _0x4e74fb?window['parseInt'](_0x58f96e(_0x4e74fb),0x10)*_0xaf05c7:null;}function _0xcd4b47(_0x440f49){return new window['Promise']((_0x5a11fc,_0x3fc641)=>{_0x440f49['then'](_0x5a11fc,_0x3fc641),window['setTimeout'](_0x3fc641,0x1d4c0);});}}_0x3c86f6['on']('_sendUsageRequest',(_0x2558ce,_0x253ef0)=>{if(_0x253ef0[0x0]!=_0x114200)return _0x43e0d5('UsageLimit');_0x253ef0[0x1]={..._0x253ef0[0x1],'requestId':_0x133cd3};},{'priority':'high'}),_0x3c86f6['on']('_sendUsageRequest',_0x34ddca=>{_0x31d53f(_0x34ddca['return'])&&(_0x4b03a9=!0x0,_0x525e6e(_0x34ddca['return']));},{'priority':'low'}),_0x7378e8['then'](()=>{_0x4b03a9||_0x43e0d5('UsageLimit');});});function _0x19c286(){return'auto'==_0x3c86f6['editing']['view']['_overlayModeHint'];}function _0x5a0003(){_0x3c86f6['editing']['view']['_overlayModeHint']='auto';}}function _0x48bfd2(_0x53fea8){const _0x543632=[new window['Promise'](_0x21d248=>setTimeout(_0x21d248,0x93ecc)),_0x7378e8['then'](()=>new window['Promise'](_0x9d7a00=>{let _0x2bcded=0x0;_0x3c86f6['model']['on']('applyOperation',(_0x46bd59,_0x1c8f8e)=>{_0x1c8f8e[0x0]['isDocumentOperation']&&_0x2bcded++,0x5e8==_0x2bcded&&(_0x9d7a00(),_0x46bd59['off']());});}))];return window['Promise']['race'](_0x543632)['then'](()=>_0x53fea8);}async function _0x434048(){await _0x7378e8,_0x3c86f6['model']['change']=_0xfc6f47,_0x3c86f6['model']['enqueueChange']=_0xfc6f47,_0x3c86f6['enableReadOnlyMode']('model');}function _0x555cd4(_0xf5d8d9){const _0xc604a0=_0x506917();_0x3c86f6[_0xc604a0]='emailConfigurationHelperLicenseKey'+_0xf5d8d9,'Valid'!=_0xf5d8d9&&_0x434048();}function _0x506917(){const _0x536645=window['String'](window['performance']['now']())['replace']('.','');let _0xa84f02='u';for(let _0xe21f66=0x0;_0xe21f66<_0x536645['length'];_0xe21f66+=0x2){let _0x286875=window['parseInt'](_0x536645['substring'](_0xe21f66,_0xe21f66+0x2));_0x286875>=0x3e&&(_0x286875-=0x3e),_0xa84f02+=_0x44ed5b[_0x286875];}return _0xa84f02;}function _0xa6c063(){const _0x11d37a=_0x7af856['split']('.');if(0x3!=_0x11d37a['length'])return null;return _0x135e60(_0x11d37a[0x1]);function _0x135e60(_0x549e68){const _0x2fd6fc=_0x43b01b(_0x549e68);return _0x2fd6fc&&_0x2cbe94()?_0x2fd6fc:null;function _0x2cbe94(){const _0x46c1e7=_0x2fd6fc['jti'],_0x47f052=window['parseInt'](_0x46c1e7['substring'](_0x46c1e7['length']-0x8),0x10),_0x1eee0e={..._0x2fd6fc,'jti':_0x46c1e7['substring'](0x0,_0x46c1e7['length']-0x8)};return delete _0x1eee0e['vc'],_0x2aff33(_0x1eee0e)==_0x47f052;}}}async function _0xe2ec6a(){let _0x3b9bb4=!0x0;try{const [_0x35f991,_0x3ed9f6,_0x2e0f7a]=_0x7af856['split']('.');return _0x129981(_0x35f991),await _0x405b34(_0x35f991,_0x3ed9f6,_0x2e0f7a),_0x3b9bb4;}catch{return!0x1;}function _0x129981(_0x23d763){const _0x430e2a=_0x43b01b(_0x23d763);_0x430e2a&&'ES256'==_0x430e2a['alg']||(_0x3b9bb4=!0x1);}async function _0x405b34(_0x5368e2,_0x48f9d8,_0x181dad){const _0x14c067=window['Uint8Array']['from'](_0x553455(_0x181dad),_0x83db35=>_0x83db35['charCodeAt'](0x0)),_0x36505a=new window['TextEncoder']()['encode'](_0x5368e2+'.'+_0x48f9d8),_0xb40b87=window['crypto']['subtle'];if(!_0xb40b87)return;const _0x1173f3=await _0xb40b87['importKey']('jwk',_0x12c17e,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0xb40b87['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x1173f3,_0x14c067,_0x36505a)||(_0x3b9bb4=!0x1);}}function _0x43b01b(_0x3ab310){return _0x3ab310['startsWith']('ey')?JSON['parse'](_0x553455(_0x3ab310)):null;}function _0x553455(_0x43ea43){return window['atob'](_0x43ea43['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x2aff33(_0x3b1015){let _0x4b17a6=0x1505;function _0x2d249f(_0x2c4fff){for(let _0x57d893=0x0;_0x57d893<_0x2c4fff['length'];_0x57d893++){const _0x445c52=_0x2c4fff['charCodeAt'](_0x57d893);_0x4b17a6=(_0x4b17a6<<0x5)+_0x4b17a6+_0x445c52,_0x4b17a6&=_0x4b17a6;}}function _0x5d3e5c(_0x40e183){Array['isArray'](_0x40e183)?_0x40e183['forEach'](_0x5d3e5c):_0x40e183&&'object'==typeof _0x40e183?Object['entries'](_0x40e183)['sort']()['forEach'](([_0x2570b7,_0x269955])=>{_0x2d249f(_0x2570b7),_0x5d3e5c(_0x269955);}):_0x2d249f(window['String'](_0x40e183));}return _0x5d3e5c(_0x3b1015),_0x4b17a6>>>0x0;}function _0x3067ca(_0x8a635f){return _0x8a635f['toString'](0x10)['padStart'](0x8,'0');}function _0x58f96e(_0x1350eb){return _0x1350eb['split']('')['reverse']()['join']('');}function _0xfc6f47(){}_0x555cd4(await _0x5817cf());}(this);}['_logSuppressibleWarning'](_0x27563f,_0x29dc72){if(this['_isSuppressedLog'](_0x27563f,_0x29dc72))return;const _0x2ad509=r+'/support/error-codes.html#error-'+_0x27563f;console['warn']('%cEmailConfigurationHelper%c\x20'+_0x27563f,'background:\x20#E65100;\x20color:\x20white;\x20padding:\x202px\x204px;','',..._0x29dc72?[_0x29dc72]:[],'\x0aRead\x20more:\x20'+_0x2ad509);}['_logSuppressibleInfo'](_0x5c24b9,_0x1411d4,_0x37001d){if(this['_isSuppressedLog'](_0x5c24b9))return;let _0x19cdd6=_0x1411d4;_0x37001d&&(_0x19cdd6+='\x0aRead\x20more:\x20'+(r+'/'+_0x37001d)),console['info']('%cEmailConfigurationHelper%c\x20'+_0x5c24b9,'background:\x20#4169E1;\x20color:\x20white;\x20padding:\x202px\x204px;','',_0x19cdd6);}['_checkUnsupportedPlugin'](_0x15ff61,_0x3e3c76){this['editor']['plugins']['has'](_0x15ff61)&&this['_logSuppressibleWarning']('email-configuration-unsupported-plugin',{'pluginName':_0x15ff61,..._0x3e3c76});}['_validateConfigColorValue'](_0x4dd4f){const _0x287ceb=this['editor']['config']['get'](_0x4dd4f);if(!_0x287ceb)return;const _0x4b97e1=Array['isArray'](_0x287ceb),_0x35b1a1=_0x4b97e1?_0x287ceb:[_0x287ceb];for(const [_0x4c21bc,_0x599327]of _0x35b1a1['entries']()){const _0x2cd5cb='string'==typeof _0x599327?_0x599327:_0x599327['color'];s(_0x2cd5cb)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-value',{'configPath':_0x4b97e1?_0x4dd4f+'['+_0x4c21bc+']':_0x4dd4f,'color':_0x2cd5cb});}}['_validateConfigColorFormat'](_0x2f47f1){const _0x25ad5f=this['editor']['config']['get'](_0x2f47f1);_0x25ad5f&&l(_0x25ad5f)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-format',{'configPath':_0x2f47f1,'format':_0x25ad5f});}['_isSuppressedLog'](_0x58a166,_0x1e1dc9){const _0x4fe6d0=this['editor']['config']['get']('email.logs');return!!_0x4fe6d0['suppressAll']||(!('function'!=typeof _0x4fe6d0['suppress']||!_0x4fe6d0['suppress'](_0x58a166,_0x1e1dc9))||!(!Array['isArray'](_0x4fe6d0['suppress'])||!_0x4fe6d0['suppress']['includes'](_0x58a166)));}};const a=['hsl','hsla','hwb','lab','lch','oklab','oklch','color-mix','rgba'];function s(_0x11d0a3){return!!_0x11d0a3&&a['some'](_0x59fc62=>_0x11d0a3['includes'](_0x59fc62+'('));}function l(_0x39889d){return!!_0x39889d&&a['includes'](_0x39889d);}var u=class extends _0x43e24c{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(_0x33e323,_0x5406e4){const _0x4f0e3b=_0x33e323['ownerDocument'],{table:_0x89a5ab,cell:_0x5068d6}=g(_0x4f0e3b,'100%');_0x5406e4['align']&&_0x5068d6['setAttribute']('align',_0x380614(_0x5406e4['align']));let _0x31b31e=_0x5068d6;if(_0x5406e4['width']){const {table:_0x3edb89,cell:_0x246006}=g(_0x4f0e3b,_0x380614(_0x5406e4['width']));_0x5068d6['appendChild'](_0x3edb89),_0x31b31e=_0x246006;}return _0x33e323['replaceWith'](_0x89a5ab),_0x33e323['removeAttribute']('align'),_0x33e323['removeAttribute']('width'),_0x31b31e['appendChild'](_0x33e323),_0x31b31e;}function g(_0x2e14d2,_0x2b96ce){const _0x461f0e=_0x2e14d2['createElement']('table');_0x2b96ce&&(_0x461f0e['style']['width']=_0x2b96ce,_0x461f0e['setAttribute']('width',h(_0x2b96ce))),_0x461f0e['setAttribute']('cellpadding','0'),_0x461f0e['setAttribute']('cellspacing','0'),_0x461f0e['setAttribute']('border','0'),_0x461f0e['setAttribute']('role','presentation');const _0x78d2fb=_0x2e14d2['createElement']('tbody'),_0x286a67=_0x2e14d2['createElement']('tr'),_0xb2a446=_0x2e14d2['createElement']('td');return _0x461f0e['appendChild'](_0x78d2fb),_0x78d2fb['appendChild'](_0x286a67),_0x286a67['appendChild'](_0xb2a446),{'table':_0x461f0e,'cell':_0xb2a446};}function f(_0x307e86){const _0x254994=_0x307e86['getAsString']('margin-left'),_0x28010f=_0x307e86['getAsString']('margin-right'),_0x21dc3d=_0x254994&&_0x380614(_0x254994),_0x3f3455=_0x28010f&&_0x380614(_0x28010f);return'auto'===_0x21dc3d&&'auto'===_0x3f3455?'center':'auto'===_0x21dc3d?'right':'auto'===_0x3f3455?'left':void 0x0;}function m(_0x33b702,_0x4ae727){const _0x353386=_0x33b702['ownerDocument']['createElement'](_0x4ae727);for(const _0x599a1f of Array['from'](_0x33b702['attributes']))_0x353386['setAttribute'](_0x599a1f['name'],_0x599a1f['value']);for(;_0x33b702['firstChild'];)_0x353386['appendChild'](_0x33b702['firstChild']);return _0x353386;}function d(_0x581951){if('TABLE'!==_0x581951['tagName'])return!0x1;if('presentation'!==_0x581951['getAttribute']('role'))return!0x1;const _0x47cc29=p(_0x581951);return null!==_0x47cc29&&_0x47cc29['hasAttribute']('align');}function p(_0x3696ad){let _0xd8a85e=_0x3696ad;0x1===_0x3696ad['children']['length']&&'TBODY'===_0x3696ad['children'][0x0]['tagName']&&(_0xd8a85e=_0x3696ad['children'][0x0]);const _0x4adb5b=_0xd8a85e['children'];if(0x1!==_0x4adb5b['length']||'TR'!==_0x4adb5b[0x0]['tagName'])return null;const _0x38dcdc=_0x4adb5b[0x0]['children'];return 0x1!==_0x38dcdc['length']||'TD'!==_0x38dcdc[0x0]['tagName']?null:_0x38dcdc[0x0];}function h(_0x117d00){return function(_0x45a26a){return _0x45a26a['endsWith']('px')?_0x45a26a['slice'](0x0,-0x2):_0x45a26a;}(_0x380614(_0x117d00));}const w=(_0x3c920c,_0x131b91,{runAfterDocumentTransformation:_0x6f55f8,runAfterChildrenTransformation:_0x4812a2})=>{if('FIGURE'!==_0x3c920c['tagName'])return;const _0x557ef1=_0x131b91['getAsString']('float');if(_0x557ef1){if(P(_0x3c920c))_0x6f55f8(()=>{y(_0x3c920c,{'align':_0x557ef1});});else{const {table:_0x40462e,cell:_0x21aff4}=g(_0x3c920c['ownerDocument']);_0x40462e['setAttribute']('align',_0x380614(_0x557ef1)),_0x40462e['setAttribute']('style',function(_0x5ea76c){return _0x5ea76c['getStylesEntries']()['map'](_0x179596=>_0x179596['join'](':'))['join'](';')+';';}(_0x131b91)),_0x4812a2(()=>{for(const _0x271ce7 of Array['from'](_0x3c920c['childNodes']))_0x21aff4['appendChild'](_0x271ce7);}),_0x6f55f8(()=>{_0x3c920c['replaceWith'](_0x40462e);});}}else{const _0x54ddc8=f(_0x131b91),_0x5dad03=_0x131b91['getAsString']('width');if(!_0x54ddc8&&!_0x5dad03)return;c(_0x3c920c,{'align':_0x54ddc8,'width':_0x5dad03}),_0x5dad03&&_0x131b91['set']('width','100%'),_0x131b91['remove']('margin-left'),_0x131b91['remove']('margin-right'),_0x131b91['remove']('min-width'),_0x131b91['remove']('max-width'),_0x6f55f8(()=>{if(!y(_0x3c920c)){const _0x329979=m(_0x3c920c,'div');_0x3c920c['replaceWith'](_0x329979);}});}};function y(_0x42aa5b,_0x62127b={}){const _0xe541cc=P(_0x42aa5b);if(!_0xe541cc)return null;for(const _0x9f1bd8 of['id','class']){const _0x3734c9=_0x42aa5b['getAttribute'](_0x9f1bd8);_0x3734c9&&_0xe541cc['setAttribute'](_0x9f1bd8,_0x3734c9);}for(const _0x39eb46 of['display','float','width','height'])_0xe541cc['style']['removeProperty'](_0x39eb46);const _0x47cee9=_0x42aa5b['getAttribute']('style');if(_0x47cee9){const _0x205c79=_0xe541cc['getAttribute']('style')||'';_0xe541cc['setAttribute']('style',_0x47cee9+_0x205c79);}return _0x62127b['align']&&_0xe541cc['setAttribute']('align',_0x380614(_0x62127b['align'])),'fixed'!==_0xe541cc['style']['tableLayout']||_0xe541cc['style']['width']||(_0xe541cc['style']['width']='100%',_0xe541cc['setAttribute']('width','100%')),_0x42aa5b['replaceWith'](_0xe541cc),_0xe541cc;}function P(_0x4b7b62){const _0x14c39f=Array['from'](_0x4b7b62['children']);return 0x1===_0x14c39f['length']&&'TABLE'===_0x14c39f[0x0]['tagName']?_0x14c39f[0x0]:null;}var I=class extends _0x43e24c{static get['requires'](){return[o];}static get['pluginName'](){return'ImageEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {config:_0x2a01d7,plugins:_0x330540}=this['editor'];_0x2a01d7['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x330540['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 _0x43e24c{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 _0x43e24c{static get['requires'](){return[o];}static get['pluginName'](){return'ExportInlineStylesEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x115083=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('ExportInlineStyles')||_0x115083['_logSuppressibleWarning']('email-configuration-missing-export-inline-styles-plugin');}},L=class extends _0x43e24c{static get['requires'](){return[o];}static get['pluginName'](){return'ListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x440a5a=this['editor']['plugins']['get'](o),_0x1bd19b=this['editor']['config']['get']('list');_0x1bd19b&&_0x1bd19b['properties']&&_0x1bd19b['properties']['reversed']&&_0x440a5a['_logSuppressibleWarning']('email-configuration-unsupported-reversed-list'),_0x1bd19b&&_0x1bd19b['enableListItemMarkerFormatting']&&_0x440a5a['_logSuppressibleWarning']('email-configuration-unsupported-list-item-marker-formatting');}},C=class extends _0x43e24c{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:_0x1cc22}=this['editor'],_0x4785e=_0x1cc22['get'](o);_0x1cc22['has']('Table')&&(_0x1cc22['has']('PlainTableOutput')||_0x4785e['_logSuppressibleWarning']('email-configuration-missing-plain-table-output-plugin'),_0x1cc22['has']('TableLayout')||_0x4785e['_logSuppressibleWarning']('email-configuration-missing-table-layout-plugin'));}['_checkTableConfig'](){const {config:_0x163aaf,plugins:_0x22e4e1}=this['editor'];_0x163aaf['get']('table')&&_0x22e4e1['has']('Table')&&(this['_checkTablePropertiesConfig']('tableCellProperties'),this['_checkTablePropertiesConfig']('tableProperties'));}['_checkTablePropertiesConfig'](_0x5aa7c4){const _0x3f94c7=this['editor']['plugins']['get'](o);_0x3f94c7['_validateConfigColorValue']('table.'+_0x5aa7c4+'.borderColors'),_0x3f94c7['_validateConfigColorValue']('table.'+_0x5aa7c4+'.backgroundColors'),_0x3f94c7['_validateConfigColorValue']('table.'+_0x5aa7c4+'.defaultProperties.borderColor'),_0x3f94c7['_validateConfigColorValue']('table.'+_0x5aa7c4+'.defaultProperties'),_0x3f94c7['_validateConfigColorFormat']('table.'+_0x5aa7c4+'.colorPicker.format');}},k=class extends _0x43e24c{static get['requires'](){return[o];}static get['pluginName'](){return'EmptyBlockEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x538cce=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('EmptyBlock')||_0x538cce['_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 _0x43e24c{static get['requires'](){return[o];}static get['pluginName'](){return'FontEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {plugins:_0x34d1c4}=this['editor'];_0x34d1c4['has']('FontColorEditing')&&this['_checkColorConfig']('fontColor'),_0x34d1c4['has']('FontBackgroundColorEditing')&&this['_checkColorConfig']('fontBackgroundColor');}['_checkColorConfig'](_0x59fa2b){const _0x34e766=this['editor']['plugins']['get'](o);this['editor']['config']['get'](_0x59fa2b)&&(_0x34e766['_validateConfigColorValue'](_0x59fa2b+'.colors'),_0x34e766['_validateConfigColorValue'](_0x59fa2b+'.documentColors'),_0x34e766['_validateConfigColorFormat'](_0x59fa2b+'.colorPicker.format'));}},x=class extends _0x43e24c{static get['requires'](){return[o];}static get['pluginName'](){return'SourceEditingEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {plugins:_0x394949}=this['editor'],_0x59f48b=_0x394949['get'](o);_0x394949['has']('SourceEditing')||_0x394949['has']('SourceEditingEnhanced')||_0x59f48b['_logSuppressibleWarning']('email-configuration-missing-source-editing-plugin');}},v=class extends _0x43e24c{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 _0x43e24c{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:_0x14b44e}=this['editor'];if(!_0x14b44e['has']('DataFilter'))return;const _0x35320a=_0x14b44e['get']('DataFilter'),_0x1f6070=_0x14b44e['get'](o);for(const _0x224ac0 of GeneralHtmlIntegrationSupport['UNSUPPORTED_ELEMENTS'])_0x35320a['once']('register:'+_0x224ac0,(_0x1d5313,_0x2b34e3)=>{_0x1f6070['_logSuppressibleWarning']('email-unsupported-html-element',{'element':_0x2b34e3['view']});});}},A=class extends _0x43e24c{static get['requires'](){return[o];}static get['pluginName'](){return'MergeFieldsEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x11c0f5=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('MergeFields')||_0x11c0f5['_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 _0x43e24c{static get['requires'](){return[o];}static get['pluginName'](){return'TemplateEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x294605=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('Template')||_0x294605['_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 _0x43e24c{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 _0x43e24c{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 _0x43e24c{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 _0x43e24c{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 _0x43e24c{static get['requires'](){return[o];}static get['pluginName'](){return'LinkEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {config:_0x5c47d5,plugins:_0x175348}=this['editor'],_0x47c056=_0x175348['get'](o);_0x5c47d5['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x47c056['_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 _0x43e24c{['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 _0x51c1d9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2fc634;for(const _0x24fc6e in _0x51c1d9){const _0x230e42=_0x24fc6e,_0x621d39=_0x51c1d9[_0x230e42];if('emailConfigurationHelperLicenseKeyValid'==_0x621d39||'emailConfigurationHelperLicenseKeyInvalid'==_0x621d39||'emailConfigurationHelperLicenseKeyExpired'==_0x621d39||'emailConfigurationHelperLicenseKeyDomainLimit'==_0x621d39||'emailConfigurationHelperLicenseKeyNotAllowed'==_0x621d39||'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x621d39||'emailConfigurationHelperLicenseKeyUsageLimit'==_0x621d39){delete _0x51c1d9[_0x230e42],_0x2fc634=_0x621d39,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'emailConfigurationHelperLicenseKeyInvalid'==_0x2fc634&&_0x51c1d9['_showLicenseError']('invalid'),'emailConfigurationHelperLicenseKeyExpired'==_0x2fc634&&_0x51c1d9['_showLicenseError']('expired'),'emailConfigurationHelperLicenseKeyDomainLimit'==_0x2fc634&&_0x51c1d9['_showLicenseError']('domainLimit'),'emailConfigurationHelperLicenseKeyNotAllowed'==_0x2fc634&&_0x51c1d9['_showLicenseError']('featureNotAllowed','EmailConfigurationHelper'),'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x2fc634&&_0x51c1d9['_showLicenseError']('evaluationLimit'),'emailConfigurationHelperLicenseKeyUsageLimit'==_0x2fc634&&_0x51c1d9['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};const U=(_0x2f815d,_0x3810dd)=>{if(!['TABLE','IMG']['includes'](_0x2f815d['tagName']))return;const _0x220a6b=_0x3810dd['getAsString']('float');if(_0x220a6b){const _0x56b6a7=_0x380614(_0x220a6b);'left'!==_0x56b6a7&&'right'!==_0x56b6a7||_0x2f815d['setAttribute']('align',_0x56b6a7);}},D=(_0x19bb75,_0x3dbc92)=>{if('TABLE'!==_0x19bb75['tagName']||_0x3dbc92['has']('float'))return;const _0x218010=f(_0x3dbc92),_0x27dff1=_0x3dbc92['getAsString']('width');_0x218010&&(c(_0x19bb75,{'align':_0x218010}),_0x27dff1?_0x19bb75['setAttribute']('width',h(_0x27dff1)):_0x3dbc92['remove']('width'),_0x3dbc92['remove']('margin-left'),_0x3dbc92['remove']('margin-right'));},F=(_0x26f2c9,_0x2b6313)=>{if('IMG'!==_0x26f2c9['tagName'])return;const _0x14a0db=_0x2b6313['getAsString']('width');_0x14a0db&&(_0x26f2c9['setAttribute']('width',h(_0x14a0db)),_0x26f2c9['setAttribute']('height','auto'));},_=(_0x253a2f,_0x4e6fa0,{runAfterDocumentTransformation:_0x1edb6e})=>{if('FIGCAPTION'!==_0x253a2f['tagName'])return;const _0x1d71ba=_0x4e6fa0['getAsString']('display'),_0x3be368=_0x4e6fa0['getAsString']('caption-side');_0x4e6fa0['remove']('caption-side'),_0x1d71ba&&'table-caption'===_0x380614(_0x1d71ba)&&_0x4e6fa0['remove']('display');const _0x14e657=_0x3be368&&'top'===_0x380614(_0x3be368);_0x1edb6e(()=>{const _0x5846fc=m(_0x253a2f,'div'),_0x2246cb=_0x253a2f['previousElementSibling'];_0x14e657&&_0x2246cb&&'TABLE'===_0x2246cb['tagName']?(_0x2246cb['before'](_0x5846fc),_0x253a2f['remove']()):_0x253a2f['replaceWith'](_0x5846fc);});},M=(_0x43d299,_0x27ced5,{runAfterChildrenTransformation:_0x1175f3})=>{'TD'===_0x43d299['tagName']&&_0x1175f3(()=>{const _0x1744e8=Array['from'](_0x43d299['children']);if(0x0===_0x1744e8['length'])return;const _0x25fa16=_0x1744e8['map'](R),_0x10fa01=_0x25fa16[0x0];if(_0x10fa01&&_0x25fa16['every'](_0x2fe805=>_0x2fe805===_0x10fa01)){_0x43d299['setAttribute']('align',_0x10fa01);for(const _0x589a38 of _0x1744e8)if(d(_0x589a38)){const _0x33b18d=p(_0x589a38);_0x589a38['replaceWith'](...Array['from'](_0x33b18d['childNodes']));}else _0x589a38['style']['removeProperty']('text-align'),_0x589a38['style']['length']||_0x589a38['removeAttribute']('style');}});};function R(_0x7e7cad){return d(_0x7e7cad)?p(_0x7e7cad)['getAttribute']('align'):_0x7e7cad['style']['textAlign']||void 0x0;}const V=(_0x4d93d9,_0x33826c,{runAfterChildrenTransformation:_0x49d754})=>{'TABLE'===_0x4d93d9['tagName']&&_0x49d754(()=>{const _0x4a6e55=function(_0x1ca5b7,_0x5dcc52){for(const _0x271bc6 of _0x1ca5b7['children'])if(_0x271bc6['tagName']===_0x5dcc52)return _0x271bc6;return null;}(_0x4d93d9,'COLGROUP');if(!_0x4a6e55)return;const _0x2e3220=Array['from'](_0x4a6e55['children'])['filter'](_0x4bff2d=>'COL'===_0x4bff2d['tagName']);if(_0x2e3220['some'](_0x56b2a4=>Q(_0x56b2a4,'span')))return;const _0x41cf47=_0x2e3220['map'](j);if(!_0x41cf47['some'](Boolean))return;const _0x589cac=function(_0x534457){const _0x2cc7df=[];for(const _0xae8d6f of _0x534457['children'])if(['THEAD','TBODY','TFOOT']['includes'](_0xae8d6f['tagName'])){for(const _0x2ccdf5 of _0xae8d6f['children'])'TR'===_0x2ccdf5['tagName']&&_0x2cc7df['push'](_0x2ccdf5);}return _0x2cc7df;}(_0x4d93d9)['map'](G);if(!_0x589cac['some'](_0xa770e4=>_0xa770e4['length']!==_0x41cf47['length']||_0xa770e4['some'](_0x584caa=>function(_0x2a755f){return Q(_0x2a755f,'colspan')||Q(_0x2a755f,'rowspan');}(_0x584caa)||function(_0x42e79b){return Boolean(_0x42e79b['style']['getPropertyValue']('width'))||Boolean(_0x42e79b['getAttribute']('width'));}(_0x584caa)))){for(const _0x52499e of _0x589cac)_0x52499e['forEach']((_0x3007a4,_0x8f4f89)=>{const _0x521cf6=_0x41cf47[_0x8f4f89];_0x521cf6&&(_0x3007a4['setAttribute']('width',h(_0x521cf6)),_0x3007a4['style']['setProperty']('width',_0x521cf6));});}});};function G(_0x871851){return Array['from'](_0x871851['children'])['filter'](_0x3a5006=>'TD'===_0x3a5006['tagName']||'TH'===_0x3a5006['tagName']);}function j(_0x43da97){const _0xda7f75=_0x43da97['style']['getPropertyValue']('width');if(_0xda7f75)return _0xda7f75;const _0x4cb409=_0x43da97['getAttribute']('width');if(!_0x4cb409)return;const _0x3b6244=_0x380614(_0x4cb409);return/^\d+(\.\d+)?$/['test'](_0x3b6244)?_0x3b6244+'px':_0x3b6244;}function Q(_0xb508d2,_0x5c37db){const _0x56e93a=_0xb508d2['getAttribute'](_0x5c37db);return null!==_0x56e93a&&'1'!==_0x56e93a;}function J(_0x555dea={}){const _0x5c116d=[];return _0x555dea['useFigureToTableFallback']&&_0x5c116d['push'](w,_,M),_0x5c116d['push'](U,D,F,V),_0x5c116d;}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.3.0-alpha.
|
|
3
|
+
"version": "48.3.0-alpha.6",
|
|
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,15 +21,15 @@
|
|
|
21
21
|
"./package.json": "./package.json"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@ckeditor/ckeditor5-core": "48.3.0-alpha.
|
|
25
|
-
"@ckeditor/ckeditor5-engine": "48.3.0-alpha.
|
|
26
|
-
"@ckeditor/ckeditor5-export-inline-styles": "48.3.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-font": "48.3.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-html-support": "48.3.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-list": "48.3.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-table": "48.3.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-ui": "48.3.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "48.3.0-alpha.
|
|
24
|
+
"@ckeditor/ckeditor5-core": "48.3.0-alpha.6",
|
|
25
|
+
"@ckeditor/ckeditor5-engine": "48.3.0-alpha.6",
|
|
26
|
+
"@ckeditor/ckeditor5-export-inline-styles": "48.3.0-alpha.6",
|
|
27
|
+
"@ckeditor/ckeditor5-font": "48.3.0-alpha.6",
|
|
28
|
+
"@ckeditor/ckeditor5-html-support": "48.3.0-alpha.6",
|
|
29
|
+
"@ckeditor/ckeditor5-list": "48.3.0-alpha.6",
|
|
30
|
+
"@ckeditor/ckeditor5-table": "48.3.0-alpha.6",
|
|
31
|
+
"@ckeditor/ckeditor5-ui": "48.3.0-alpha.6",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "48.3.0-alpha.6"
|
|
33
33
|
},
|
|
34
34
|
"files": [
|
|
35
35
|
"dist",
|