@ckeditor/ckeditor5-email 48.5.0-alpha.3 → 48.5.0-alpha.5

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 _0x2d7f08}from'@ckeditor/ckeditor5-core';import{uid as _0x1cb2d2}from'@ckeditor/ckeditor5-utils';import{dropImportantStyleSuffix as _0x12aefd}from'@ckeditor/ckeditor5-export-inline-styles';const r='https://ckeditor.com/docs/ckeditor5/latest';var o=class extends _0x2d7f08{static get['pluginName'](){return'EmailConfigurationLogger';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x32f8b3){super(_0x32f8b3),_0x32f8b3['config']['define']('email.logs',{'suppress':[],'suppressAll':!0x1});}afterInit(){!async function(_0x43f8c9){const _0x428ab7='unSbGpmijAwyrOzdZhCqT3YLFVtJlkDag1WMNxR4H67IB5QoX0289cUsvPEefK',_0x53bb72=0x79410,_0x55689c={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0xe7e9e0(_0x5041fa){const _0x352ec6=new window['Promise'](_0x21b604=>{_0x5041fa['once']('ready',_0x21b604);}),_0x3f5a0f=window['Date']['now'](),_0x1fbf03=_0x5041fa['config']['get']('licenseKey');async function _0x6b639(){let _0x4614f4,_0x239f99=null,_0x140835=null;try{return'GPL'==_0x1fbf03?'NotAllowed':(_0x4614f4=_0xf2a50b(),_0x4614f4?(_0x4614f4['usageEndpoint']&&(_0x140835=_0x1f6d2b(_0x4614f4['usageEndpoint'],_0x4614f4['jti'])),await _0x4fb2d6()?_0x5004e6()?_0x517173()?'Expired':_0x48a1c0()?('evaluation'==_0x4614f4['licenseType']&&(_0x239f99=_0x31bf30('EvaluationLimit')),await _0x4c232e()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x517173(){const _0x476723=['evaluation','trial']['includes'](_0x4614f4['licenseType'])?_0x3f5a0f/0x3e8:0xe10*_0x53bb72;return _0x4614f4['exp']<_0x476723;}function _0x5004e6(){const _0x472f28=_0x4614f4['features'];return!!_0x472f28&&(!!_0x472f28['includes']('*')||!!_0x472f28['includes']('ECH'));}function _0x48a1c0(){const _0x4b50b6=_0x4614f4['licensedHosts'];if(!_0x4b50b6||0x0==_0x4b50b6['length'])return!0x0;const {hostname:_0x44cc31}=new URL(window['location']['href']);if(_0x4b50b6['includes'](_0x44cc31))return!0x0;const _0x17309b=_0x44cc31['split']('.');return _0x4b50b6['filter'](_0x33d974=>_0x33d974['includes']('*'))['map'](_0x555c00=>_0x555c00['split']('.'))['filter'](_0x1d87f4=>_0x1d87f4['length']<=_0x17309b['length'])['map'](_0x4f3451=>Array(_0x17309b['length']-_0x4f3451['length'])['fill']('*'===_0x4f3451[0x0]?'*':'')['concat'](_0x4f3451))['some'](_0x54ce41=>_0x17309b['every']((_0x44e51a,_0x469b78)=>_0x54ce41[_0x469b78]===_0x44e51a||'*'===_0x54ce41[_0x469b78]));}function _0x4c232e(){return _0x239f99&&_0x140835?new window['Promise']((_0x284c7d,_0x2617f6)=>{_0x239f99['then'](_0x284c7d,_0x2617f6),_0x140835['then'](_0x545d1a=>{'Valid'!=_0x545d1a&&_0x284c7d(_0x545d1a);},_0x2617f6);}):_0x239f99||_0x140835||'Valid';}}function _0x1f6d2b(_0x293f36,_0x2aed39){return new window['Promise'](_0x532e15=>{if(_0xf78c6f())return _0x532e15('Valid');_0x1f6b54(),_0x5041fa['decorate']('_sendUsageRequest');let _0x484e43=!0x1;const _0x4cf508=_0x1cb2d2();function _0xf9a4c2(_0x575e03){return!!_0x575e03&&('object'==typeof _0x575e03||'function'==typeof _0x575e03)&&'function'==typeof _0x575e03['then']&&'function'==typeof _0x575e03['catch'];}function _0x2866ee(_0x4d8999){_0x149b67(_0x4d8999)['then'](_0xd77b4a=>_0xd77b4a&&'ok'==_0xd77b4a['status']?_0x33bd10(_0x1ffb04(_0x4cf508+_0x2aed39))!=_0xd77b4a['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x2db205=>(_0x284a6d(),_0x2db205),()=>{const _0x1936d0=_0x5ba907();return null==_0x1936d0?(_0x284a6d(),'Valid'):_0x3f5a0f-_0x1936d0>0x240c8400?'UsageLimit':'Valid';})['then'](_0x532e15)['catch'](()=>{_0x532e15('UsageLimit');});const _0x50d88d=0x36ee80;function _0x284a6d(){const _0x22f0d5='llct-'+_0x33bd10(_0x1ffb04(_0x293f36)),_0x3bc3eb=_0x4eceff(_0x33bd10(window['Math']['ceil'](_0x3f5a0f/_0x50d88d)));window['localStorage']['setItem'](_0x22f0d5,_0x3bc3eb);}function _0x5ba907(){const _0x27a86b='llct-'+_0x33bd10(_0x1ffb04(_0x293f36)),_0xb8174d=window['localStorage']['getItem'](_0x27a86b);return _0xb8174d?window['parseInt'](_0x4eceff(_0xb8174d),0x10)*_0x50d88d:null;}function _0x149b67(_0x5bc508){return new window['Promise']((_0x7e2cde,_0x7b327a)=>{_0x5bc508['then'](_0x7e2cde,_0x7b327a),window['setTimeout'](_0x7b327a,0x1d4c0);});}}_0x5041fa['on']('_sendUsageRequest',(_0x22e408,_0x236477)=>{if(_0x236477[0x0]!=_0x293f36)return _0x532e15('UsageLimit');_0x236477[0x1]={..._0x236477[0x1],'requestId':_0x4cf508};},{'priority':'high'}),_0x5041fa['on']('_sendUsageRequest',_0x2a1822=>{_0xf9a4c2(_0x2a1822['return'])&&(_0x484e43=!0x0,_0x2866ee(_0x2a1822['return']));},{'priority':'low'}),_0x352ec6['then'](()=>{_0x484e43||_0x532e15('UsageLimit');});});function _0xf78c6f(){return'auto'==_0x5041fa['editing']['view']['_overlayModeHint'];}function _0x1f6b54(){_0x5041fa['editing']['view']['_overlayModeHint']='auto';}}function _0x31bf30(_0x3bfe98){const _0x52b357=[new window['Promise'](_0x3ac133=>setTimeout(_0x3ac133,0x93ecc)),_0x352ec6['then'](()=>new window['Promise'](_0x206b08=>{let _0x445177=0x0;_0x5041fa['model']['on']('applyOperation',(_0x52003f,_0x1a4b1a)=>{_0x1a4b1a[0x0]['isDocumentOperation']&&_0x445177++,0x5e8==_0x445177&&(_0x206b08(),_0x52003f['off']());});}))];return window['Promise']['race'](_0x52b357)['then'](()=>_0x3bfe98);}async function _0x29e265(){await _0x352ec6,_0x5041fa['model']['change']=_0x8adea7,_0x5041fa['model']['enqueueChange']=_0x8adea7,_0x5041fa['enableReadOnlyMode']('model');}function _0x3672f3(_0x34ee98){const _0x3bfde3=_0x102b28();_0x5041fa[_0x3bfde3]='emailConfigurationHelperLicenseKey'+_0x34ee98,'Valid'!=_0x34ee98&&_0x29e265();}function _0x102b28(){const _0x209ee3=window['String'](window['performance']['now']())['replace']('.','');let _0x54804f='u';for(let _0x3c5dea=0x0;_0x3c5dea<_0x209ee3['length'];_0x3c5dea+=0x2){let _0x2c4ce7=window['parseInt'](_0x209ee3['substring'](_0x3c5dea,_0x3c5dea+0x2));_0x2c4ce7>=0x3e&&(_0x2c4ce7-=0x3e),_0x54804f+=_0x428ab7[_0x2c4ce7];}return _0x54804f;}function _0xf2a50b(){const _0x338ecd=_0x1fbf03['split']('.');if(0x3!=_0x338ecd['length'])return null;return _0x57a789(_0x338ecd[0x1]);function _0x57a789(_0x536002){const _0x188b9d=_0x52c184(_0x536002);return _0x188b9d&&_0x28b008()?_0x188b9d:null;function _0x28b008(){const _0x59c377=_0x188b9d['jti'],_0x7dc56b=window['parseInt'](_0x59c377['substring'](_0x59c377['length']-0x8),0x10),_0x537e4f={..._0x188b9d,'jti':_0x59c377['substring'](0x0,_0x59c377['length']-0x8)};return delete _0x537e4f['vc'],_0x1ffb04(_0x537e4f)==_0x7dc56b;}}}async function _0x4fb2d6(){let _0x55d170=!0x0;try{const [_0x28fa32,_0x502a91,_0x102477]=_0x1fbf03['split']('.');return _0x480e1c(_0x28fa32),await _0x1e7e50(_0x28fa32,_0x502a91,_0x102477),_0x55d170;}catch{return!0x1;}function _0x480e1c(_0x246598){const _0x14ec1d=_0x52c184(_0x246598);_0x14ec1d&&'ES256'==_0x14ec1d['alg']||(_0x55d170=!0x1);}async function _0x1e7e50(_0x17e0f3,_0x3bd9b7,_0x57770f){const _0x3b0a67=window['Uint8Array']['from'](_0x8e1cfb(_0x57770f),_0x432483=>_0x432483['charCodeAt'](0x0)),_0x3ba84e=new window['TextEncoder']()['encode'](_0x17e0f3+'.'+_0x3bd9b7),_0x36fd9d=window['crypto']['subtle'];if(!_0x36fd9d)return;const _0x1d5926=await _0x36fd9d['importKey']('jwk',_0x55689c,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x36fd9d['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x1d5926,_0x3b0a67,_0x3ba84e)||(_0x55d170=!0x1);}}function _0x52c184(_0x977510){return _0x977510['startsWith']('ey')?JSON['parse'](_0x8e1cfb(_0x977510)):null;}function _0x8e1cfb(_0x210ca5){return window['atob'](_0x210ca5['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1ffb04(_0x48978b){let _0x32beef=0x1505;function _0x19003f(_0x35f6bb){for(let _0x330576=0x0;_0x330576<_0x35f6bb['length'];_0x330576++){const _0x1929c1=_0x35f6bb['charCodeAt'](_0x330576);_0x32beef=(_0x32beef<<0x5)+_0x32beef+_0x1929c1,_0x32beef&=_0x32beef;}}function _0x3855e0(_0x1f7b12){Array['isArray'](_0x1f7b12)?_0x1f7b12['forEach'](_0x3855e0):_0x1f7b12&&'object'==typeof _0x1f7b12?Object['entries'](_0x1f7b12)['sort']()['forEach'](([_0x4e9286,_0x507895])=>{_0x19003f(_0x4e9286),_0x3855e0(_0x507895);}):_0x19003f(window['String'](_0x1f7b12));}return _0x3855e0(_0x48978b),_0x32beef>>>0x0;}function _0x33bd10(_0x1efb61){return _0x1efb61['toString'](0x10)['padStart'](0x8,'0');}function _0x4eceff(_0x2f87bb){return _0x2f87bb['split']('')['reverse']()['join']('');}function _0x8adea7(){}_0x3672f3(await _0x6b639());}_0xe7e9e0(_0x43f8c9['editor']);}(this);}['_logSuppressibleWarning'](_0x40a999,_0x106f4b){if(this['_isSuppressedLog'](_0x40a999,_0x106f4b))return;const _0x4df535=r+'/support/error-codes.html#error-'+_0x40a999;console['warn']('%cEmailConfigurationHelper%c\x20'+_0x40a999,'background:\x20#E65100;\x20color:\x20white;\x20padding:\x202px\x204px;','',..._0x106f4b?[_0x106f4b]:[],'\x0aRead\x20more:\x20'+_0x4df535);}['_logSuppressibleInfo'](_0x42efde,_0x45eeee,_0x15f785){if(this['_isSuppressedLog'](_0x42efde))return;let _0x2eeb84=_0x45eeee;_0x15f785&&(_0x2eeb84+='\x0aRead\x20more:\x20'+(r+'/'+_0x15f785)),console['info']('%cEmailConfigurationHelper%c\x20'+_0x42efde,'background:\x20#4169E1;\x20color:\x20white;\x20padding:\x202px\x204px;','',_0x2eeb84);}_checkUnsupportedPlugin(_0xbc6a3d,_0x50b550){this['editor']['plugins']['has'](_0xbc6a3d)&&this['_logSuppressibleWarning']('email-configuration-unsupported-plugin',{'pluginName':_0xbc6a3d,..._0x50b550});}_validateConfigColorValue(_0x2f5c5e){const _0x51e75d=this['editor']['config']['get'](_0x2f5c5e);if(!_0x51e75d)return;const _0x22c25a=Array['isArray'](_0x51e75d),_0x4f76db=_0x22c25a?_0x51e75d:[_0x51e75d];for(const [_0x5d6e52,_0x41761d]of _0x4f76db['entries']()){const _0x29c87d='string'==typeof _0x41761d?_0x41761d:_0x41761d['color'];s(_0x29c87d)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-value',{'configPath':_0x22c25a?_0x2f5c5e+'['+_0x5d6e52+']':_0x2f5c5e,'color':_0x29c87d});}}_validateConfigColorFormat(_0x4d199f){const _0x3ae5f6=this['editor']['config']['get'](_0x4d199f);_0x3ae5f6&&l(_0x3ae5f6)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-format',{'configPath':_0x4d199f,'format':_0x3ae5f6});}['_isSuppressedLog'](_0x5d2896,_0x5598be){const _0x3e3255=this['editor']['config']['get']('email.logs');return!!_0x3e3255['suppressAll']||(!('function'!=typeof _0x3e3255['suppress']||!_0x3e3255['suppress'](_0x5d2896,_0x5598be))||!(!Array['isArray'](_0x3e3255['suppress'])||!_0x3e3255['suppress']['includes'](_0x5d2896)));}};const a=['hsl','hsla','hwb','lab','lch','oklab','oklch','color-mix','rgba'];function s(_0x32530b){return!!_0x32530b&&a['some'](_0x492202=>_0x32530b['includes'](_0x492202+'('));}function l(_0x23b5a5){return!!_0x23b5a5&&a['includes'](_0x23b5a5);}var u=class extends _0x2d7f08{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(_0x2d3b08,_0x2daf1c){const _0x3caf36=_0x2d3b08['ownerDocument'],{table:_0x86d8e0,cell:_0x4a460f}=g(_0x3caf36,'100%');_0x2daf1c['align']&&_0x4a460f['setAttribute']('align',_0x12aefd(_0x2daf1c['align']));let _0xaf6961=_0x4a460f;if(_0x2daf1c['width']){const {table:_0x75fb2b,cell:_0x314197}=g(_0x3caf36,_0x12aefd(_0x2daf1c['width']));_0x4a460f['appendChild'](_0x75fb2b),_0xaf6961=_0x314197;}return _0x2d3b08['replaceWith'](_0x86d8e0),_0x2d3b08['removeAttribute']('align'),_0x2d3b08['removeAttribute']('width'),_0xaf6961['appendChild'](_0x2d3b08),_0xaf6961;}function g(_0x3cf653,_0x5035f2){const _0x20ebd2=_0x3cf653['createElement']('table');_0x5035f2&&(_0x20ebd2['style']['width']=_0x5035f2,_0x20ebd2['setAttribute']('width',h(_0x5035f2))),_0x20ebd2['setAttribute']('cellpadding','0'),_0x20ebd2['setAttribute']('cellspacing','0'),_0x20ebd2['setAttribute']('border','0'),_0x20ebd2['setAttribute']('role','presentation');const _0x4c8f6f=_0x3cf653['createElement']('tbody'),_0x499a93=_0x3cf653['createElement']('tr'),_0x5240e4=_0x3cf653['createElement']('td');return _0x20ebd2['appendChild'](_0x4c8f6f),_0x4c8f6f['appendChild'](_0x499a93),_0x499a93['appendChild'](_0x5240e4),{'table':_0x20ebd2,'cell':_0x5240e4};}function f(_0xbffdba){const _0xc97610=_0xbffdba['getAsString']('margin-left'),_0x40b276=_0xbffdba['getAsString']('margin-right'),_0x2383e7=_0xc97610&&_0x12aefd(_0xc97610),_0x22881e=_0x40b276&&_0x12aefd(_0x40b276);return'auto'===_0x2383e7&&'auto'===_0x22881e?'center':'auto'===_0x2383e7?'right':'auto'===_0x22881e?'left':void 0x0;}function m(_0x3cba45,_0x2fccbc){const _0x1dc93d=_0x3cba45['ownerDocument']['createElement'](_0x2fccbc);for(const _0x69c4bd of Array['from'](_0x3cba45['attributes']))_0x1dc93d['setAttribute'](_0x69c4bd['name'],_0x69c4bd['value']);for(;_0x3cba45['firstChild'];)_0x1dc93d['appendChild'](_0x3cba45['firstChild']);return _0x1dc93d;}function d(_0xeee03){if('TABLE'!==_0xeee03['tagName'])return!0x1;if('presentation'!==_0xeee03['getAttribute']('role'))return!0x1;const _0x32384b=p(_0xeee03);return null!==_0x32384b&&_0x32384b['hasAttribute']('align');}function p(_0x293faa){let _0x47738b=_0x293faa;0x1===_0x293faa['children']['length']&&'TBODY'===_0x293faa['children'][0x0]['tagName']&&(_0x47738b=_0x293faa['children'][0x0]);const _0x5f3c8d=_0x47738b['children'];if(0x1!==_0x5f3c8d['length']||'TR'!==_0x5f3c8d[0x0]['tagName'])return null;const _0x3d29a7=_0x5f3c8d[0x0]['children'];return 0x1!==_0x3d29a7['length']||'TD'!==_0x3d29a7[0x0]['tagName']?null:_0x3d29a7[0x0];}function h(_0x2c2354){return function(_0x50f69d){return _0x50f69d['endsWith']('px')?_0x50f69d['slice'](0x0,-0x2):_0x50f69d;}(_0x12aefd(_0x2c2354));}const w=(_0x5a05a6,_0x4cfa32,{runAfterDocumentTransformation:_0x124443,runAfterChildrenTransformation:_0x19111f})=>{if('FIGURE'!==_0x5a05a6['tagName'])return;const _0x466455=_0x4cfa32['getAsString']('float');if(_0x466455){if(P(_0x5a05a6))_0x124443(()=>{y(_0x5a05a6,{'align':_0x466455});});else{const {table:_0x157d37,cell:_0x189dfc}=g(_0x5a05a6['ownerDocument']);_0x157d37['setAttribute']('align',_0x12aefd(_0x466455)),_0x157d37['setAttribute']('style',function(_0xf9329){return _0xf9329['getStylesEntries']()['map'](_0x3f788f=>_0x3f788f['join'](':'))['join'](';')+';';}(_0x4cfa32)),_0x19111f(()=>{for(const _0x1e48eb of Array['from'](_0x5a05a6['childNodes']))_0x189dfc['appendChild'](_0x1e48eb);}),_0x124443(()=>{_0x5a05a6['replaceWith'](_0x157d37);});}}else{const _0x4a235a=f(_0x4cfa32),_0x5a6c30=_0x4cfa32['getAsString']('width');if(!_0x4a235a&&!_0x5a6c30)return;c(_0x5a05a6,{'align':_0x4a235a,'width':_0x5a6c30}),_0x5a6c30&&_0x4cfa32['set']('width','100%'),_0x4cfa32['remove']('margin-left'),_0x4cfa32['remove']('margin-right'),_0x4cfa32['remove']('min-width'),_0x4cfa32['remove']('max-width'),_0x124443(()=>{if(!y(_0x5a05a6)){const _0x505d00=m(_0x5a05a6,'div');_0x5a05a6['replaceWith'](_0x505d00);}});}};function y(_0x314c70,_0x3fd419={}){const _0x23acdb=P(_0x314c70);if(!_0x23acdb)return null;for(const _0x1e1d23 of['id','class']){const _0x468e00=_0x314c70['getAttribute'](_0x1e1d23);_0x468e00&&_0x23acdb['setAttribute'](_0x1e1d23,_0x468e00);}for(const _0xc22516 of['display','float','width','height'])_0x23acdb['style']['removeProperty'](_0xc22516);const _0x14ccbf=_0x314c70['getAttribute']('style');if(_0x14ccbf){const _0x2e69f2=_0x23acdb['getAttribute']('style')||'';_0x23acdb['setAttribute']('style',_0x14ccbf+_0x2e69f2);}return _0x3fd419['align']&&_0x23acdb['setAttribute']('align',_0x12aefd(_0x3fd419['align'])),'fixed'!==_0x23acdb['style']['tableLayout']||_0x23acdb['style']['width']||(_0x23acdb['style']['width']='100%',_0x23acdb['setAttribute']('width','100%')),_0x314c70['replaceWith'](_0x23acdb),_0x23acdb;}function P(_0x24329e){const _0x42cb06=Array['from'](_0x24329e['children']);return 0x1===_0x42cb06['length']&&'TABLE'===_0x42cb06[0x0]['tagName']?_0x42cb06[0x0]:null;}var I=class extends _0x2d7f08{static get requires(){return[o];}static get['pluginName'](){return'ImageEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {config:_0xf4fd0c,plugins:_0x312e84}=this['editor'];_0xf4fd0c['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x312e84['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 _0x2d7f08{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 _0x2d7f08{static get requires(){return[o];}static get['pluginName'](){return'ExportInlineStylesEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x56371d=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('ExportInlineStyles')||_0x56371d['_logSuppressibleWarning']('email-configuration-missing-export-inline-styles-plugin');}},L=class extends _0x2d7f08{static get requires(){return[o];}static get['pluginName'](){return'ListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x27b7cf=this['editor']['plugins']['get'](o),_0xa541a4=this['editor']['config']['get']('list');_0xa541a4&&_0xa541a4['properties']&&_0xa541a4['properties']['reversed']&&_0x27b7cf['_logSuppressibleWarning']('email-configuration-unsupported-reversed-list'),_0xa541a4&&_0xa541a4['enableListItemMarkerFormatting']&&_0x27b7cf['_logSuppressibleWarning']('email-configuration-unsupported-list-item-marker-formatting');}},C=class extends _0x2d7f08{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:_0x360e1c}=this['editor'],_0x10eb88=_0x360e1c['get'](o);_0x360e1c['has']('Table')&&(_0x360e1c['has']('PlainTableOutput')||_0x10eb88['_logSuppressibleWarning']('email-configuration-missing-plain-table-output-plugin'),_0x360e1c['has']('TableLayout')||_0x10eb88['_logSuppressibleWarning']('email-configuration-missing-table-layout-plugin'));}['_checkTableConfig'](){const {config:_0x2bec44,plugins:_0xf1e6a4}=this['editor'];_0x2bec44['get']('table')&&_0xf1e6a4['has']('Table')&&(this['_checkTablePropertiesConfig']('tableCellProperties'),this['_checkTablePropertiesConfig']('tableProperties'));}_checkTablePropertiesConfig(_0x5309f6){const _0x4aa8b8=this['editor']['plugins']['get'](o);_0x4aa8b8['_validateConfigColorValue']('table.'+_0x5309f6+'.borderColors'),_0x4aa8b8['_validateConfigColorValue']('table.'+_0x5309f6+'.backgroundColors'),_0x4aa8b8['_validateConfigColorValue']('table.'+_0x5309f6+'.defaultProperties.borderColor'),_0x4aa8b8['_validateConfigColorValue']('table.'+_0x5309f6+'.defaultProperties'),_0x4aa8b8['_validateConfigColorFormat']('table.'+_0x5309f6+'.colorPicker.format');}},k=class extends _0x2d7f08{static get requires(){return[o];}static get['pluginName'](){return'EmptyBlockEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x43eb43=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('EmptyBlock')||_0x43eb43['_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 _0x2d7f08{static get requires(){return[o];}static get['pluginName'](){return'FontEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {plugins:_0x4d0567}=this['editor'];_0x4d0567['has']('FontColorEditing')&&this['_checkColorConfig']('fontColor'),_0x4d0567['has']('FontBackgroundColorEditing')&&this['_checkColorConfig']('fontBackgroundColor');}['_checkColorConfig'](_0x14437b){const _0x2df28c=this['editor']['plugins']['get'](o);_0x2df28c['_validateConfigColorValue'](_0x14437b+'.colors'),_0x2df28c['_validateConfigColorValue'](_0x14437b+'.documentColors'),_0x2df28c['_validateConfigColorFormat'](_0x14437b+'.colorPicker.format');}},x=class extends _0x2d7f08{static get requires(){return[o];}static get['pluginName'](){return'SourceEditingEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {plugins:_0x88c1af}=this['editor'],_0x472052=_0x88c1af['get'](o);_0x88c1af['has']('SourceEditing')||_0x88c1af['has']('SourceEditingEnhanced')||_0x472052['_logSuppressibleWarning']('email-configuration-missing-source-editing-plugin');}},v=class extends _0x2d7f08{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 _0x2d7f08{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:_0x325bd9}=this['editor'];if(!_0x325bd9['has']('DataFilter'))return;const _0x48feb3=_0x325bd9['get']('DataFilter'),_0x272a0c=_0x325bd9['get'](o);for(const _0x143040 of GeneralHtmlIntegrationSupport['UNSUPPORTED_ELEMENTS'])_0x48feb3['once']('register:'+_0x143040,(_0x278c5e,_0x497298)=>{_0x272a0c['_logSuppressibleWarning']('email-unsupported-html-element',{'element':_0x497298['view']});});}},A=class extends _0x2d7f08{static get requires(){return[o];}static get['pluginName'](){return'MergeFieldsEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x10c73f=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('MergeFields')||_0x10c73f['_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 _0x2d7f08{static get requires(){return[o];}static get['pluginName'](){return'TemplateEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x42192e=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('Template')||_0x42192e['_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 _0x2d7f08{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 _0x2d7f08{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 _0x2d7f08{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 _0x2d7f08{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 _0x2d7f08{static get requires(){return[o];}static get['pluginName'](){return'LinkEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {config:_0x23dd62,plugins:_0x52c5cb}=this['editor'],_0x18d789=_0x52c5cb['get'](o);_0x23dd62['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x18d789['_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 _0x2d7f08{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'EmailConfigurationHelper';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[u,I,E,b,L,C,k,T,x,v,O,A,H,N,S,q,$,B];}init(){this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x22c750=[this['editor']];for(const _0x39adc1 of _0x22c750){let _0x2f567e;for(const _0x2eba20 in _0x39adc1){const _0x347e39=_0x2eba20,_0x347302=_0x39adc1[_0x347e39];if('emailConfigurationHelperLicenseKeyValid'==_0x347302||'emailConfigurationHelperLicenseKeyInvalid'==_0x347302||'emailConfigurationHelperLicenseKeyExpired'==_0x347302||'emailConfigurationHelperLicenseKeyDomainLimit'==_0x347302||'emailConfigurationHelperLicenseKeyNotAllowed'==_0x347302||'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x347302||'emailConfigurationHelperLicenseKeyUsageLimit'==_0x347302){delete _0x39adc1[_0x347e39],_0x2f567e=_0x347302,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'emailConfigurationHelperLicenseKeyInvalid'==_0x2f567e&&_0x39adc1['_showLicenseError']('invalid'),'emailConfigurationHelperLicenseKeyExpired'==_0x2f567e&&_0x39adc1['_showLicenseError']('expired'),'emailConfigurationHelperLicenseKeyDomainLimit'==_0x2f567e&&_0x39adc1['_showLicenseError']('domainLimit'),'emailConfigurationHelperLicenseKeyNotAllowed'==_0x2f567e&&_0x39adc1['_showLicenseError']('featureNotAllowed','EmailConfigurationHelper'),'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x2f567e&&_0x39adc1['_showLicenseError']('evaluationLimit'),'emailConfigurationHelperLicenseKeyUsageLimit'==_0x2f567e&&_0x39adc1['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};const U=(_0x1e2e5b,_0x28af97)=>{if(!['TABLE','IMG']['includes'](_0x1e2e5b['tagName']))return;const _0x5dcd7f=_0x28af97['getAsString']('float');if(_0x5dcd7f){const _0x3df5bd=_0x12aefd(_0x5dcd7f);'left'!==_0x3df5bd&&'right'!==_0x3df5bd||_0x1e2e5b['setAttribute']('align',_0x3df5bd);}},D=(_0x2ec25d,_0x3d5cbb)=>{if('TABLE'!==_0x2ec25d['tagName']||_0x3d5cbb['has']('float'))return;const _0x5c6d92=f(_0x3d5cbb),_0x4e84b6=_0x3d5cbb['getAsString']('width');_0x5c6d92&&(c(_0x2ec25d,{'align':_0x5c6d92}),_0x4e84b6?_0x2ec25d['setAttribute']('width',h(_0x4e84b6)):_0x3d5cbb['remove']('width'),_0x3d5cbb['remove']('margin-left'),_0x3d5cbb['remove']('margin-right'));},F=(_0x47909d,_0x4a5be8)=>{if('IMG'!==_0x47909d['tagName'])return;const _0x1f1620=_0x4a5be8['getAsString']('width');_0x1f1620&&(_0x47909d['setAttribute']('width',h(_0x1f1620)),_0x47909d['setAttribute']('height','auto'));},_=(_0x310ef5,_0x7dd683,{runAfterDocumentTransformation:_0x16d46e})=>{if('FIGCAPTION'!==_0x310ef5['tagName'])return;const _0x502903=_0x7dd683['getAsString']('display'),_0xc30bf6=_0x7dd683['getAsString']('caption-side');_0x7dd683['remove']('caption-side'),_0x502903&&'table-caption'===_0x12aefd(_0x502903)&&_0x7dd683['remove']('display');const _0x2abac6=_0xc30bf6&&'top'===_0x12aefd(_0xc30bf6);_0x16d46e(()=>{const _0x53e40b=m(_0x310ef5,'div'),_0x367755=_0x310ef5['previousElementSibling'];_0x2abac6&&_0x367755&&'TABLE'===_0x367755['tagName']?(_0x367755['before'](_0x53e40b),_0x310ef5['remove']()):_0x310ef5['replaceWith'](_0x53e40b);});},M=(_0x1b630e,_0x3a6269,{runAfterChildrenTransformation:_0x1910f8})=>{'TD'===_0x1b630e['tagName']&&_0x1910f8(()=>{const _0x194193=Array['from'](_0x1b630e['children']);if(0x0===_0x194193['length'])return;const _0x208df=_0x194193['map'](R),_0x4d21ec=_0x208df[0x0];if(_0x4d21ec&&_0x208df['every'](_0x2a3dee=>_0x2a3dee===_0x4d21ec)){_0x1b630e['setAttribute']('align',_0x4d21ec);for(const _0x147079 of _0x194193)if(d(_0x147079)){const _0x2cd6da=p(_0x147079);_0x147079['replaceWith'](...Array['from'](_0x2cd6da['childNodes']));}else _0x147079['style']['removeProperty']('text-align'),_0x147079['style']['length']||_0x147079['removeAttribute']('style');}});};function R(_0x2c8e1a){return d(_0x2c8e1a)?p(_0x2c8e1a)['getAttribute']('align'):_0x2c8e1a['style']['textAlign']||void 0x0;}const V=(_0x24ff91,_0x39a2de,{runAfterChildrenTransformation:_0x1d70c8})=>{'TABLE'===_0x24ff91['tagName']&&_0x1d70c8(()=>{const _0x3ed1a2=function(_0x1cf51c,_0x2a61ef){for(const _0x26312f of _0x1cf51c['children'])if(_0x26312f['tagName']===_0x2a61ef)return _0x26312f;return null;}(_0x24ff91,'COLGROUP');if(!_0x3ed1a2)return;const _0x64044a=Array['from'](_0x3ed1a2['children'])['filter'](_0x45122c=>'COL'===_0x45122c['tagName']);if(_0x64044a['some'](_0x559201=>Q(_0x559201,'span')))return;const _0x40c112=_0x64044a['map'](j);if(!_0x40c112['some'](Boolean))return;const _0x28e6c0=function(_0x4fd699){const _0x999f8d=[];for(const _0xbbbd36 of _0x4fd699['children'])if(['THEAD','TBODY','TFOOT']['includes'](_0xbbbd36['tagName'])){for(const _0x40c6c2 of _0xbbbd36['children'])'TR'===_0x40c6c2['tagName']&&_0x999f8d['push'](_0x40c6c2);}return _0x999f8d;}(_0x24ff91)['map'](G);if(!_0x28e6c0['some'](_0x53c716=>_0x53c716['length']!==_0x40c112['length']||_0x53c716['some'](_0x1b89e6=>function(_0x392a12){return Q(_0x392a12,'colspan')||Q(_0x392a12,'rowspan');}(_0x1b89e6)||function(_0x2cf466){return Boolean(_0x2cf466['style']['getPropertyValue']('width'))||Boolean(_0x2cf466['getAttribute']('width'));}(_0x1b89e6)))){for(const _0x10518b of _0x28e6c0)_0x10518b['forEach']((_0x1d1013,_0x65ef3f)=>{const _0x5f4d0b=_0x40c112[_0x65ef3f];_0x5f4d0b&&(_0x1d1013['setAttribute']('width',h(_0x5f4d0b)),_0x1d1013['style']['setProperty']('width',_0x5f4d0b));});}});};function G(_0x5b8d48){return Array['from'](_0x5b8d48['children'])['filter'](_0x508903=>'TD'===_0x508903['tagName']||'TH'===_0x508903['tagName']);}function j(_0x1da136){const _0x23955f=_0x1da136['style']['getPropertyValue']('width');if(_0x23955f)return _0x23955f;const _0x9ce907=_0x1da136['getAttribute']('width');if(!_0x9ce907)return;const _0x43214e=_0x12aefd(_0x9ce907);return/^\d+(\.\d+)?$/['test'](_0x43214e)?_0x43214e+'px':_0x43214e;}function Q(_0x58d576,_0x552457){const _0x377fda=_0x58d576['getAttribute'](_0x552457);return null!==_0x377fda&&'1'!==_0x377fda;}function J(_0x559362={}){const _0x449d94=[];return _0x559362['useFigureToTableFallback']&&_0x449d94['push'](w,_,M),_0x449d94['push'](U,D,F,V),_0x449d94;}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 _0x595d7f}from'@ckeditor/ckeditor5-core';import{uid as _0x85511b}from'@ckeditor/ckeditor5-utils';import{dropImportantStyleSuffix as _0x333b62}from'@ckeditor/ckeditor5-export-inline-styles';const r='https://ckeditor.com/docs/ckeditor5/latest';var o=class extends _0x595d7f{static get['pluginName'](){return'EmailConfigurationLogger';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5995fe){super(_0x5995fe),_0x5995fe['config']['define']('email.logs',{'suppress':[],'suppressAll':!0x1});}afterInit(){!async function(_0x2b2223){const _0x251e15='unSbGpmijAwyrOzdZhCqT3YLFVtJlkDag1WMNxR4H67IB5QoX0289cUsvPEefK',_0xbf2a2=0x79440,_0x392dd6={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x365929(_0x24e48d){const _0x3ed325=new window['Promise'](_0x58f7d5=>{_0x24e48d['once']('ready',_0x58f7d5);}),_0x1220d8=window['Date']['now'](),_0x518a36=_0x24e48d['config']['get']('licenseKey');async function _0x1e6fe0(){let _0x829780,_0x18e6d8=null,_0x4253fb=null;try{return'GPL'==_0x518a36?'NotAllowed':(_0x829780=_0x13b0e9(),_0x829780?(_0x829780['usageEndpoint']&&(_0x4253fb=_0x218fe2(_0x829780['usageEndpoint'],_0x829780['jti'])),await _0x339bfa()?_0x3963bd()?_0x20e6d2()?'Expired':_0x1b404f()?('evaluation'==_0x829780['licenseType']&&(_0x18e6d8=_0x3a2d80('EvaluationLimit')),await _0x2a1d24()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x20e6d2(){const _0x249cd3=['evaluation','trial']['includes'](_0x829780['licenseType'])?_0x1220d8/0x3e8:0xe10*_0xbf2a2;return _0x829780['exp']<_0x249cd3;}function _0x3963bd(){const _0x16dbfe=_0x829780['features'];return!!_0x16dbfe&&(!!_0x16dbfe['includes']('*')||!!_0x16dbfe['includes']('ECH'));}function _0x1b404f(){const _0x40ce47=_0x829780['licensedHosts'];if(!_0x40ce47||0x0==_0x40ce47['length'])return!0x0;const {hostname:_0x130789}=new URL(window['location']['href']);if(_0x40ce47['includes'](_0x130789))return!0x0;const _0x457b66=_0x130789['split']('.');return _0x40ce47['filter'](_0x10fbf7=>_0x10fbf7['includes']('*'))['map'](_0x2fb92c=>_0x2fb92c['split']('.'))['filter'](_0x21dc1d=>_0x21dc1d['length']<=_0x457b66['length'])['map'](_0x4db9cc=>Array(_0x457b66['length']-_0x4db9cc['length'])['fill']('*'===_0x4db9cc[0x0]?'*':'')['concat'](_0x4db9cc))['some'](_0xc4fe0=>_0x457b66['every']((_0x1cd798,_0x48db45)=>_0xc4fe0[_0x48db45]===_0x1cd798||'*'===_0xc4fe0[_0x48db45]));}function _0x2a1d24(){return _0x18e6d8&&_0x4253fb?new window['Promise']((_0x2dd787,_0x59a26b)=>{_0x18e6d8['then'](_0x2dd787,_0x59a26b),_0x4253fb['then'](_0x2bae14=>{'Valid'!=_0x2bae14&&_0x2dd787(_0x2bae14);},_0x59a26b);}):_0x18e6d8||_0x4253fb||'Valid';}}function _0x218fe2(_0xcf5b2f,_0x475bc4){return new window['Promise'](_0x7b098=>{if(_0x553410())return _0x7b098('Valid');_0x14b5b8(),_0x24e48d['decorate']('_sendUsageRequest');let _0x461b9e=!0x1;const _0x566dcc=_0x85511b();function _0x3ec58e(_0x1782d4){return!!_0x1782d4&&('object'==typeof _0x1782d4||'function'==typeof _0x1782d4)&&'function'==typeof _0x1782d4['then']&&'function'==typeof _0x1782d4['catch'];}function _0x7255a0(_0x3e45cc){_0x3d489b(_0x3e45cc)['then'](_0x11f92e=>_0x11f92e&&'ok'==_0x11f92e['status']?_0x290e6a(_0xeba8bf(_0x566dcc+_0x475bc4))!=_0x11f92e['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x533d4f=>(_0x4954f4(),_0x533d4f),()=>{const _0x2c0606=_0x2e0099();return null==_0x2c0606?(_0x4954f4(),'Valid'):_0x1220d8-_0x2c0606>0x240c8400?'UsageLimit':'Valid';})['then'](_0x7b098)['catch'](()=>{_0x7b098('UsageLimit');});const _0x5ab69b=0x36ee80;function _0x4954f4(){const _0x1372fa='llct-'+_0x290e6a(_0xeba8bf(_0xcf5b2f)),_0x429e05=_0x3cd224(_0x290e6a(window['Math']['ceil'](_0x1220d8/_0x5ab69b)));window['localStorage']['setItem'](_0x1372fa,_0x429e05);}function _0x2e0099(){const _0x4caffc='llct-'+_0x290e6a(_0xeba8bf(_0xcf5b2f)),_0x3c82fa=window['localStorage']['getItem'](_0x4caffc);return _0x3c82fa?window['parseInt'](_0x3cd224(_0x3c82fa),0x10)*_0x5ab69b:null;}function _0x3d489b(_0xe1e3a1){return new window['Promise']((_0x16749d,_0x270e08)=>{_0xe1e3a1['then'](_0x16749d,_0x270e08),window['setTimeout'](_0x270e08,0x1d4c0);});}}_0x24e48d['on']('_sendUsageRequest',(_0x3f2ef6,_0x42cdad)=>{if(_0x42cdad[0x0]!=_0xcf5b2f)return _0x7b098('UsageLimit');_0x42cdad[0x1]={..._0x42cdad[0x1],'requestId':_0x566dcc};},{'priority':'high'}),_0x24e48d['on']('_sendUsageRequest',_0x11efcd=>{_0x3ec58e(_0x11efcd['return'])&&(_0x461b9e=!0x0,_0x7255a0(_0x11efcd['return']));},{'priority':'low'}),_0x3ed325['then'](()=>{_0x461b9e||_0x7b098('UsageLimit');});});function _0x553410(){return'auto'==_0x24e48d['editing']['view']['_overlayModeHint'];}function _0x14b5b8(){_0x24e48d['editing']['view']['_overlayModeHint']='auto';}}function _0x3a2d80(_0x4917b9){const _0x36c13d=[new window['Promise'](_0x146b6e=>setTimeout(_0x146b6e,0x93ecc)),_0x3ed325['then'](()=>new window['Promise'](_0x576e96=>{let _0x43f183=0x0;_0x24e48d['model']['on']('applyOperation',(_0x3be366,_0x214ab1)=>{_0x214ab1[0x0]['isDocumentOperation']&&_0x43f183++,0x5e8==_0x43f183&&(_0x576e96(),_0x3be366['off']());});}))];return window['Promise']['race'](_0x36c13d)['then'](()=>_0x4917b9);}async function _0x14d547(){await _0x3ed325,_0x24e48d['model']['change']=_0x3a8403,_0x24e48d['model']['enqueueChange']=_0x3a8403,_0x24e48d['enableReadOnlyMode']('model');}function _0x5d40bc(_0x3775f4){const _0x45beb9=_0x3a700d();_0x24e48d[_0x45beb9]='emailConfigurationHelperLicenseKey'+_0x3775f4,'Valid'!=_0x3775f4&&_0x14d547();}function _0x3a700d(){const _0xc11449=window['String'](window['performance']['now']())['replace']('.','');let _0x2f0304='u';for(let _0x4116a7=0x0;_0x4116a7<_0xc11449['length'];_0x4116a7+=0x2){let _0x5af738=window['parseInt'](_0xc11449['substring'](_0x4116a7,_0x4116a7+0x2));_0x5af738>=0x3e&&(_0x5af738-=0x3e),_0x2f0304+=_0x251e15[_0x5af738];}return _0x2f0304;}function _0x13b0e9(){const _0x3dc971=_0x518a36['split']('.');if(0x3!=_0x3dc971['length'])return null;return _0x34a09c(_0x3dc971[0x1]);function _0x34a09c(_0x3cf26c){const _0x2b57ef=_0x2b3133(_0x3cf26c);return _0x2b57ef&&_0x1db361()?_0x2b57ef:null;function _0x1db361(){const _0x3cc8c7=_0x2b57ef['jti'],_0x359883=window['parseInt'](_0x3cc8c7['substring'](_0x3cc8c7['length']-0x8),0x10),_0x3d6e01={..._0x2b57ef,'jti':_0x3cc8c7['substring'](0x0,_0x3cc8c7['length']-0x8)};return delete _0x3d6e01['vc'],_0xeba8bf(_0x3d6e01)==_0x359883;}}}async function _0x339bfa(){let _0x3a9e3c=!0x0;try{const [_0x3dd11a,_0x23cb0a,_0x4e4952]=_0x518a36['split']('.');return _0x27f4be(_0x3dd11a),await _0x583217(_0x3dd11a,_0x23cb0a,_0x4e4952),_0x3a9e3c;}catch{return!0x1;}function _0x27f4be(_0x4a0319){const _0xdf48d4=_0x2b3133(_0x4a0319);_0xdf48d4&&'ES256'==_0xdf48d4['alg']||(_0x3a9e3c=!0x1);}async function _0x583217(_0x1c6ac0,_0x7a3793,_0x1855b4){const _0x1f7b26=window['Uint8Array']['from'](_0x270bdf(_0x1855b4),_0x42a2b8=>_0x42a2b8['charCodeAt'](0x0)),_0x10eea3=new window['TextEncoder']()['encode'](_0x1c6ac0+'.'+_0x7a3793),_0x50a7cc=window['crypto']['subtle'];if(!_0x50a7cc)return;const _0x150313=await _0x50a7cc['importKey']('jwk',_0x392dd6,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x50a7cc['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x150313,_0x1f7b26,_0x10eea3)||(_0x3a9e3c=!0x1);}}function _0x2b3133(_0x5dd683){return _0x5dd683['startsWith']('ey')?JSON['parse'](_0x270bdf(_0x5dd683)):null;}function _0x270bdf(_0x43359f){return window['atob'](_0x43359f['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0xeba8bf(_0x41a124){let _0x1133f5=0x1505;function _0x56012a(_0x556201){for(let _0x18f4ca=0x0;_0x18f4ca<_0x556201['length'];_0x18f4ca++){const _0x15db28=_0x556201['charCodeAt'](_0x18f4ca);_0x1133f5=(_0x1133f5<<0x5)+_0x1133f5+_0x15db28,_0x1133f5&=_0x1133f5;}}function _0x54922f(_0x4615af){Array['isArray'](_0x4615af)?_0x4615af['forEach'](_0x54922f):_0x4615af&&'object'==typeof _0x4615af?Object['entries'](_0x4615af)['sort']()['forEach'](([_0x3832da,_0x2df957])=>{_0x56012a(_0x3832da),_0x54922f(_0x2df957);}):_0x56012a(window['String'](_0x4615af));}return _0x54922f(_0x41a124),_0x1133f5>>>0x0;}function _0x290e6a(_0x859035){return _0x859035['toString'](0x10)['padStart'](0x8,'0');}function _0x3cd224(_0x476c29){return _0x476c29['split']('')['reverse']()['join']('');}function _0x3a8403(){}_0x5d40bc(await _0x1e6fe0());}_0x365929(_0x2b2223['editor']);}(this);}['_logSuppressibleWarning'](_0x47ff12,_0x50d733){if(this['_isSuppressedLog'](_0x47ff12,_0x50d733))return;const _0x55185e=r+'/support/error-codes.html#error-'+_0x47ff12;console['warn']('%cEmailConfigurationHelper%c\x20'+_0x47ff12,'background:\x20#E65100;\x20color:\x20white;\x20padding:\x202px\x204px;','',..._0x50d733?[_0x50d733]:[],'\x0aRead\x20more:\x20'+_0x55185e);}['_logSuppressibleInfo'](_0x44960a,_0x402ad6,_0x174b45){if(this['_isSuppressedLog'](_0x44960a))return;let _0x38010a=_0x402ad6;_0x174b45&&(_0x38010a+='\x0aRead\x20more:\x20'+(r+'/'+_0x174b45)),console['info']('%cEmailConfigurationHelper%c\x20'+_0x44960a,'background:\x20#4169E1;\x20color:\x20white;\x20padding:\x202px\x204px;','',_0x38010a);}_checkUnsupportedPlugin(_0x59cf94,_0x38a893){this['editor']['plugins']['has'](_0x59cf94)&&this['_logSuppressibleWarning']('email-configuration-unsupported-plugin',{'pluginName':_0x59cf94,..._0x38a893});}_validateConfigColorValue(_0x4c7c73){const _0xc9cf0=this['editor']['config']['get'](_0x4c7c73);if(!_0xc9cf0)return;const _0x5f4451=Array['isArray'](_0xc9cf0),_0x4aef80=_0x5f4451?_0xc9cf0:[_0xc9cf0];for(const [_0x2db1e9,_0x3cd61b]of _0x4aef80['entries']()){const _0x5b464f='string'==typeof _0x3cd61b?_0x3cd61b:_0x3cd61b['color'];s(_0x5b464f)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-value',{'configPath':_0x5f4451?_0x4c7c73+'['+_0x2db1e9+']':_0x4c7c73,'color':_0x5b464f});}}_validateConfigColorFormat(_0x5ce687){const _0x388e40=this['editor']['config']['get'](_0x5ce687);_0x388e40&&l(_0x388e40)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-format',{'configPath':_0x5ce687,'format':_0x388e40});}['_isSuppressedLog'](_0x9e625d,_0x4331d6){const _0x51b704=this['editor']['config']['get']('email.logs');return!!_0x51b704['suppressAll']||(!('function'!=typeof _0x51b704['suppress']||!_0x51b704['suppress'](_0x9e625d,_0x4331d6))||!(!Array['isArray'](_0x51b704['suppress'])||!_0x51b704['suppress']['includes'](_0x9e625d)));}};const a=['hsl','hsla','hwb','lab','lch','oklab','oklch','color-mix','rgba'];function s(_0x1b4d19){return!!_0x1b4d19&&a['some'](_0x5726a8=>_0x1b4d19['includes'](_0x5726a8+'('));}function l(_0x5f0899){return!!_0x5f0899&&a['includes'](_0x5f0899);}var u=class extends _0x595d7f{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(_0x15da04,_0x4862b0){const _0x37cac6=_0x15da04['ownerDocument'],{table:_0x24c1fc,cell:_0xa0231a}=g(_0x37cac6,'100%');_0x4862b0['align']&&_0xa0231a['setAttribute']('align',_0x333b62(_0x4862b0['align']));let _0x324bc8=_0xa0231a;if(_0x4862b0['width']){const {table:_0x1afa05,cell:_0x556e07}=g(_0x37cac6,_0x333b62(_0x4862b0['width']));_0xa0231a['appendChild'](_0x1afa05),_0x324bc8=_0x556e07;}return _0x15da04['replaceWith'](_0x24c1fc),_0x15da04['removeAttribute']('align'),_0x15da04['removeAttribute']('width'),_0x324bc8['appendChild'](_0x15da04),_0x324bc8;}function g(_0x13d8ff,_0x1a68fb){const _0x406585=_0x13d8ff['createElement']('table');_0x1a68fb&&(_0x406585['style']['width']=_0x1a68fb,_0x406585['setAttribute']('width',h(_0x1a68fb))),_0x406585['setAttribute']('cellpadding','0'),_0x406585['setAttribute']('cellspacing','0'),_0x406585['setAttribute']('border','0'),_0x406585['setAttribute']('role','presentation');const _0x4c5d2d=_0x13d8ff['createElement']('tbody'),_0x459872=_0x13d8ff['createElement']('tr'),_0x18d613=_0x13d8ff['createElement']('td');return _0x406585['appendChild'](_0x4c5d2d),_0x4c5d2d['appendChild'](_0x459872),_0x459872['appendChild'](_0x18d613),{'table':_0x406585,'cell':_0x18d613};}function f(_0x35a297){const _0x4124a9=_0x35a297['getAsString']('margin-left'),_0x3cb7de=_0x35a297['getAsString']('margin-right'),_0x39babe=_0x4124a9&&_0x333b62(_0x4124a9),_0x938c53=_0x3cb7de&&_0x333b62(_0x3cb7de);return'auto'===_0x39babe&&'auto'===_0x938c53?'center':'auto'===_0x39babe?'right':'auto'===_0x938c53?'left':void 0x0;}function m(_0x88a2dd,_0xf6ddc5){const _0x2b6003=_0x88a2dd['ownerDocument']['createElement'](_0xf6ddc5);for(const _0x25cf2 of Array['from'](_0x88a2dd['attributes']))_0x2b6003['setAttribute'](_0x25cf2['name'],_0x25cf2['value']);for(;_0x88a2dd['firstChild'];)_0x2b6003['appendChild'](_0x88a2dd['firstChild']);return _0x2b6003;}function d(_0x294c65){if('TABLE'!==_0x294c65['tagName'])return!0x1;if('presentation'!==_0x294c65['getAttribute']('role'))return!0x1;const _0x201777=p(_0x294c65);return null!==_0x201777&&_0x201777['hasAttribute']('align');}function p(_0xee8946){let _0x40d04b=_0xee8946;0x1===_0xee8946['children']['length']&&'TBODY'===_0xee8946['children'][0x0]['tagName']&&(_0x40d04b=_0xee8946['children'][0x0]);const _0x448295=_0x40d04b['children'];if(0x1!==_0x448295['length']||'TR'!==_0x448295[0x0]['tagName'])return null;const _0x6e1665=_0x448295[0x0]['children'];return 0x1!==_0x6e1665['length']||'TD'!==_0x6e1665[0x0]['tagName']?null:_0x6e1665[0x0];}function h(_0x2ec8e7){return function(_0x413b1e){return _0x413b1e['endsWith']('px')?_0x413b1e['slice'](0x0,-0x2):_0x413b1e;}(_0x333b62(_0x2ec8e7));}const w=(_0x7376dd,_0xdde11,{runAfterDocumentTransformation:_0x5b14a4,runAfterChildrenTransformation:_0x4f3ed4})=>{if('FIGURE'!==_0x7376dd['tagName'])return;const _0x10bcbc=_0xdde11['getAsString']('float');if(_0x10bcbc){if(P(_0x7376dd))_0x5b14a4(()=>{y(_0x7376dd,{'align':_0x10bcbc});});else{const {table:_0xc0805c,cell:_0xc5758e}=g(_0x7376dd['ownerDocument']);_0xc0805c['setAttribute']('align',_0x333b62(_0x10bcbc)),_0xc0805c['setAttribute']('style',function(_0x346dec){return _0x346dec['getStylesEntries']()['map'](_0x403b9e=>_0x403b9e['join'](':'))['join'](';')+';';}(_0xdde11)),_0x4f3ed4(()=>{for(const _0x238b0f of Array['from'](_0x7376dd['childNodes']))_0xc5758e['appendChild'](_0x238b0f);}),_0x5b14a4(()=>{_0x7376dd['replaceWith'](_0xc0805c);});}}else{const _0x52666c=f(_0xdde11),_0x4e0bfb=_0xdde11['getAsString']('width');if(!_0x52666c&&!_0x4e0bfb)return;c(_0x7376dd,{'align':_0x52666c,'width':_0x4e0bfb}),_0x4e0bfb&&_0xdde11['set']('width','100%'),_0xdde11['remove']('margin-left'),_0xdde11['remove']('margin-right'),_0xdde11['remove']('min-width'),_0xdde11['remove']('max-width'),_0x5b14a4(()=>{if(!y(_0x7376dd)){const _0x4f8aab=m(_0x7376dd,'div');_0x7376dd['replaceWith'](_0x4f8aab);}});}};function y(_0x12e082,_0x1c16a1={}){const _0x476963=P(_0x12e082);if(!_0x476963)return null;for(const _0x3200d0 of['id','class']){const _0x155cff=_0x12e082['getAttribute'](_0x3200d0);_0x155cff&&_0x476963['setAttribute'](_0x3200d0,_0x155cff);}for(const _0x41adf5 of['display','float','width','height'])_0x476963['style']['removeProperty'](_0x41adf5);const _0x4f007c=_0x12e082['getAttribute']('style');if(_0x4f007c){const _0x1b6585=_0x476963['getAttribute']('style')||'';_0x476963['setAttribute']('style',_0x4f007c+_0x1b6585);}return _0x1c16a1['align']&&_0x476963['setAttribute']('align',_0x333b62(_0x1c16a1['align'])),'fixed'!==_0x476963['style']['tableLayout']||_0x476963['style']['width']||(_0x476963['style']['width']='100%',_0x476963['setAttribute']('width','100%')),_0x12e082['replaceWith'](_0x476963),_0x476963;}function P(_0x3e2063){const _0x592f7b=Array['from'](_0x3e2063['children']);return 0x1===_0x592f7b['length']&&'TABLE'===_0x592f7b[0x0]['tagName']?_0x592f7b[0x0]:null;}var I=class extends _0x595d7f{static get requires(){return[o];}static get['pluginName'](){return'ImageEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {config:_0x7e98d9,plugins:_0x53a548}=this['editor'];_0x7e98d9['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x53a548['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 _0x595d7f{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 _0x595d7f{static get requires(){return[o];}static get['pluginName'](){return'ExportInlineStylesEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x560e3c=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('ExportInlineStyles')||_0x560e3c['_logSuppressibleWarning']('email-configuration-missing-export-inline-styles-plugin');}},L=class extends _0x595d7f{static get requires(){return[o];}static get['pluginName'](){return'ListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x1fe9d4=this['editor']['plugins']['get'](o),_0x412c2e=this['editor']['config']['get']('list');_0x412c2e&&_0x412c2e['properties']&&_0x412c2e['properties']['reversed']&&_0x1fe9d4['_logSuppressibleWarning']('email-configuration-unsupported-reversed-list'),_0x412c2e&&_0x412c2e['enableListItemMarkerFormatting']&&_0x1fe9d4['_logSuppressibleWarning']('email-configuration-unsupported-list-item-marker-formatting');}},C=class extends _0x595d7f{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:_0x137505}=this['editor'],_0xd3c1f2=_0x137505['get'](o);_0x137505['has']('Table')&&(_0x137505['has']('PlainTableOutput')||_0xd3c1f2['_logSuppressibleWarning']('email-configuration-missing-plain-table-output-plugin'),_0x137505['has']('TableLayout')||_0xd3c1f2['_logSuppressibleWarning']('email-configuration-missing-table-layout-plugin'));}['_checkTableConfig'](){const {config:_0x104aaf,plugins:_0x2ea757}=this['editor'];_0x104aaf['get']('table')&&_0x2ea757['has']('Table')&&(this['_checkTablePropertiesConfig']('tableCellProperties'),this['_checkTablePropertiesConfig']('tableProperties'));}_checkTablePropertiesConfig(_0x56c456){const _0x4886f0=this['editor']['plugins']['get'](o);_0x4886f0['_validateConfigColorValue']('table.'+_0x56c456+'.borderColors'),_0x4886f0['_validateConfigColorValue']('table.'+_0x56c456+'.backgroundColors'),_0x4886f0['_validateConfigColorValue']('table.'+_0x56c456+'.defaultProperties.borderColor'),_0x4886f0['_validateConfigColorValue']('table.'+_0x56c456+'.defaultProperties'),_0x4886f0['_validateConfigColorFormat']('table.'+_0x56c456+'.colorPicker.format');}},k=class extends _0x595d7f{static get requires(){return[o];}static get['pluginName'](){return'EmptyBlockEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x52a466=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('EmptyBlock')||_0x52a466['_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 _0x595d7f{static get requires(){return[o];}static get['pluginName'](){return'FontEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {plugins:_0x5898ce}=this['editor'];_0x5898ce['has']('FontColorEditing')&&this['_checkColorConfig']('fontColor'),_0x5898ce['has']('FontBackgroundColorEditing')&&this['_checkColorConfig']('fontBackgroundColor');}['_checkColorConfig'](_0x4456fc){const _0xfe089c=this['editor']['plugins']['get'](o);_0xfe089c['_validateConfigColorValue'](_0x4456fc+'.colors'),_0xfe089c['_validateConfigColorValue'](_0x4456fc+'.documentColors'),_0xfe089c['_validateConfigColorFormat'](_0x4456fc+'.colorPicker.format');}},x=class extends _0x595d7f{static get requires(){return[o];}static get['pluginName'](){return'SourceEditingEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {plugins:_0x49324d}=this['editor'],_0x55c070=_0x49324d['get'](o);_0x49324d['has']('SourceEditing')||_0x49324d['has']('SourceEditingEnhanced')||_0x55c070['_logSuppressibleWarning']('email-configuration-missing-source-editing-plugin');}},v=class extends _0x595d7f{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 _0x595d7f{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:_0x1ce278}=this['editor'];if(!_0x1ce278['has']('DataFilter'))return;const _0x48348f=_0x1ce278['get']('DataFilter'),_0x2fb74b=_0x1ce278['get'](o);for(const _0x1a3eaf of GeneralHtmlIntegrationSupport['UNSUPPORTED_ELEMENTS'])_0x48348f['once']('register:'+_0x1a3eaf,(_0x4fc755,_0x24c4bd)=>{_0x2fb74b['_logSuppressibleWarning']('email-unsupported-html-element',{'element':_0x24c4bd['view']});});}},A=class extends _0x595d7f{static get requires(){return[o];}static get['pluginName'](){return'MergeFieldsEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x521d6c=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('MergeFields')||_0x521d6c['_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 _0x595d7f{static get requires(){return[o];}static get['pluginName'](){return'TemplateEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0xd89c1e=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('Template')||_0xd89c1e['_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 _0x595d7f{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 _0x595d7f{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 _0x595d7f{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 _0x595d7f{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 _0x595d7f{static get requires(){return[o];}static get['pluginName'](){return'LinkEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {config:_0x77fa0f,plugins:_0x2e8d69}=this['editor'],_0x31d8e0=_0x2e8d69['get'](o);_0x77fa0f['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x31d8e0['_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 _0x595d7f{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'EmailConfigurationHelper';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[u,I,E,b,L,C,k,T,x,v,O,A,H,N,S,q,$,B];}init(){this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0xfcec9b=[this['editor']];for(const _0x5ac3a1 of _0xfcec9b){let _0xa0c62b;for(const _0x3b8976 in _0x5ac3a1){const _0x2af741=_0x3b8976,_0x17b2af=_0x5ac3a1[_0x2af741];if('emailConfigurationHelperLicenseKeyValid'==_0x17b2af||'emailConfigurationHelperLicenseKeyInvalid'==_0x17b2af||'emailConfigurationHelperLicenseKeyExpired'==_0x17b2af||'emailConfigurationHelperLicenseKeyDomainLimit'==_0x17b2af||'emailConfigurationHelperLicenseKeyNotAllowed'==_0x17b2af||'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x17b2af||'emailConfigurationHelperLicenseKeyUsageLimit'==_0x17b2af){delete _0x5ac3a1[_0x2af741],_0xa0c62b=_0x17b2af,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'emailConfigurationHelperLicenseKeyInvalid'==_0xa0c62b&&_0x5ac3a1['_showLicenseError']('invalid'),'emailConfigurationHelperLicenseKeyExpired'==_0xa0c62b&&_0x5ac3a1['_showLicenseError']('expired'),'emailConfigurationHelperLicenseKeyDomainLimit'==_0xa0c62b&&_0x5ac3a1['_showLicenseError']('domainLimit'),'emailConfigurationHelperLicenseKeyNotAllowed'==_0xa0c62b&&_0x5ac3a1['_showLicenseError']('featureNotAllowed','EmailConfigurationHelper'),'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0xa0c62b&&_0x5ac3a1['_showLicenseError']('evaluationLimit'),'emailConfigurationHelperLicenseKeyUsageLimit'==_0xa0c62b&&_0x5ac3a1['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};const U=(_0x3f1b67,_0x413e90)=>{if(!['TABLE','IMG']['includes'](_0x3f1b67['tagName']))return;const _0x2cf726=_0x413e90['getAsString']('float');if(_0x2cf726){const _0x1cf565=_0x333b62(_0x2cf726);'left'!==_0x1cf565&&'right'!==_0x1cf565||_0x3f1b67['setAttribute']('align',_0x1cf565);}},D=(_0x48d3b7,_0x1d7989)=>{if('TABLE'!==_0x48d3b7['tagName']||_0x1d7989['has']('float'))return;const _0x3e9b1d=f(_0x1d7989),_0x1ef224=_0x1d7989['getAsString']('width');_0x3e9b1d&&(c(_0x48d3b7,{'align':_0x3e9b1d}),_0x1ef224?_0x48d3b7['setAttribute']('width',h(_0x1ef224)):_0x1d7989['remove']('width'),_0x1d7989['remove']('margin-left'),_0x1d7989['remove']('margin-right'));},F=(_0xf3567,_0x5abe68)=>{if('IMG'!==_0xf3567['tagName'])return;const _0x3b4ce6=_0x5abe68['getAsString']('width');_0x3b4ce6&&(_0xf3567['setAttribute']('width',h(_0x3b4ce6)),_0xf3567['setAttribute']('height','auto'));},_=(_0x12d34b,_0x349dda,{runAfterDocumentTransformation:_0x8443b1})=>{if('FIGCAPTION'!==_0x12d34b['tagName'])return;const _0x1ded5f=_0x349dda['getAsString']('display'),_0x3916cf=_0x349dda['getAsString']('caption-side');_0x349dda['remove']('caption-side'),_0x1ded5f&&'table-caption'===_0x333b62(_0x1ded5f)&&_0x349dda['remove']('display');const _0x404d99=_0x3916cf&&'top'===_0x333b62(_0x3916cf);_0x8443b1(()=>{const _0x469b7=m(_0x12d34b,'div'),_0x7d6b54=_0x12d34b['previousElementSibling'];_0x404d99&&_0x7d6b54&&'TABLE'===_0x7d6b54['tagName']?(_0x7d6b54['before'](_0x469b7),_0x12d34b['remove']()):_0x12d34b['replaceWith'](_0x469b7);});},M=(_0x6aaea7,_0x7658bd,{runAfterChildrenTransformation:_0x44cb1a})=>{'TD'===_0x6aaea7['tagName']&&_0x44cb1a(()=>{const _0x2c8786=Array['from'](_0x6aaea7['children']);if(0x0===_0x2c8786['length'])return;const _0x4e57e9=_0x2c8786['map'](R),_0x1bfcf6=_0x4e57e9[0x0];if(_0x1bfcf6&&_0x4e57e9['every'](_0x38dc91=>_0x38dc91===_0x1bfcf6)){_0x6aaea7['setAttribute']('align',_0x1bfcf6);for(const _0x36576a of _0x2c8786)if(d(_0x36576a)){const _0x429ba5=p(_0x36576a);_0x36576a['replaceWith'](...Array['from'](_0x429ba5['childNodes']));}else _0x36576a['style']['removeProperty']('text-align'),_0x36576a['style']['length']||_0x36576a['removeAttribute']('style');}});};function R(_0x4cd508){return d(_0x4cd508)?p(_0x4cd508)['getAttribute']('align'):_0x4cd508['style']['textAlign']||void 0x0;}const V=(_0x531698,_0x31cf37,{runAfterChildrenTransformation:_0x37d432})=>{'TABLE'===_0x531698['tagName']&&_0x37d432(()=>{const _0x1c173b=function(_0x299d0d,_0x28f1f9){for(const _0x23c229 of _0x299d0d['children'])if(_0x23c229['tagName']===_0x28f1f9)return _0x23c229;return null;}(_0x531698,'COLGROUP');if(!_0x1c173b)return;const _0x4169d5=Array['from'](_0x1c173b['children'])['filter'](_0x4f8949=>'COL'===_0x4f8949['tagName']);if(_0x4169d5['some'](_0x1dca08=>Q(_0x1dca08,'span')))return;const _0x118793=_0x4169d5['map'](j);if(!_0x118793['some'](Boolean))return;const _0x20da49=function(_0x16c4b7){const _0x458e9b=[];for(const _0xf60f40 of _0x16c4b7['children'])if(['THEAD','TBODY','TFOOT']['includes'](_0xf60f40['tagName'])){for(const _0x442a02 of _0xf60f40['children'])'TR'===_0x442a02['tagName']&&_0x458e9b['push'](_0x442a02);}return _0x458e9b;}(_0x531698)['map'](G);if(!_0x20da49['some'](_0x38cbf4=>_0x38cbf4['length']!==_0x118793['length']||_0x38cbf4['some'](_0x3c72c6=>function(_0x3b7d69){return Q(_0x3b7d69,'colspan')||Q(_0x3b7d69,'rowspan');}(_0x3c72c6)||function(_0x3015c5){return Boolean(_0x3015c5['style']['getPropertyValue']('width'))||Boolean(_0x3015c5['getAttribute']('width'));}(_0x3c72c6)))){for(const _0x5955f1 of _0x20da49)_0x5955f1['forEach']((_0x2b2689,_0x1bf609)=>{const _0x3ca76b=_0x118793[_0x1bf609];_0x3ca76b&&(_0x2b2689['setAttribute']('width',h(_0x3ca76b)),_0x2b2689['style']['setProperty']('width',_0x3ca76b));});}});};function G(_0x4f75a3){return Array['from'](_0x4f75a3['children'])['filter'](_0x263089=>'TD'===_0x263089['tagName']||'TH'===_0x263089['tagName']);}function j(_0x4e1054){const _0x8274ea=_0x4e1054['style']['getPropertyValue']('width');if(_0x8274ea)return _0x8274ea;const _0x51c051=_0x4e1054['getAttribute']('width');if(!_0x51c051)return;const _0x3b939c=_0x333b62(_0x51c051);return/^\d+(\.\d+)?$/['test'](_0x3b939c)?_0x3b939c+'px':_0x3b939c;}function Q(_0x47956c,_0xe0052a){const _0x2cc31a=_0x47956c['getAttribute'](_0xe0052a);return null!==_0x2cc31a&&'1'!==_0x2cc31a;}function J(_0x336a5c={}){const _0x239369=[];return _0x336a5c['useFigureToTableFallback']&&_0x239369['push'](w,_,M),_0x239369['push'](U,D,F,V),_0x239369;}export{K as EmailConfigurationHelper,o as EmailConfigurationLogger,k as EmptyBlockEmailIntegration,b as ExportInlineStylesEmailIntegration,T as FontEmailIntegration,O as GeneralHtmlIntegrationSupport,u as HighlightEmailIntegration,I as ImageEmailIntegration,B as LinkEmailIntegration,L as ListEmailIntegration,v as MarkdownEmailIntegration,E as MathTypeEmailIntegration,S as MediaEmbedEmailIntegration,A as MergeFieldsEmailIntegration,$ as MultiLevelListEmailIntegration,x as SourceEditingEmailIntegration,C as TableEmailIntegration,H as TemplateEmailIntegration,q as TodoListEmailIntegration,N as UploadEmailIntegration,J as getEmailInlineStylesTransformations,l as isUnsupportedEmailColorFormat,s as isUnsupportedEmailColorValue,M as transformEmailAlignToAttribute,V as transformEmailColumnWidthsToCells,_ as transformEmailFigcaptionToDiv,w as transformEmailFigureToTable,U as transformEmailFloatToAlign,F as transformEmailImageWidthAttributes,D as transformEmailMarginToAlign};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-email",
3
- "version": "48.5.0-alpha.3",
3
+ "version": "48.5.0-alpha.5",
4
4
  "description": "Email integration feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -21,14 +21,14 @@
21
21
  "./package.json": "./package.json"
22
22
  },
23
23
  "dependencies": {
24
- "@ckeditor/ckeditor5-core": "48.5.0-alpha.3",
25
- "@ckeditor/ckeditor5-engine": "48.5.0-alpha.3",
26
- "@ckeditor/ckeditor5-export-inline-styles": "48.5.0-alpha.3",
27
- "@ckeditor/ckeditor5-html-support": "48.5.0-alpha.3",
28
- "@ckeditor/ckeditor5-list": "48.5.0-alpha.3",
29
- "@ckeditor/ckeditor5-table": "48.5.0-alpha.3",
30
- "@ckeditor/ckeditor5-ui": "48.5.0-alpha.3",
31
- "@ckeditor/ckeditor5-utils": "48.5.0-alpha.3"
24
+ "@ckeditor/ckeditor5-core": "48.5.0-alpha.5",
25
+ "@ckeditor/ckeditor5-engine": "48.5.0-alpha.5",
26
+ "@ckeditor/ckeditor5-export-inline-styles": "48.5.0-alpha.5",
27
+ "@ckeditor/ckeditor5-html-support": "48.5.0-alpha.5",
28
+ "@ckeditor/ckeditor5-list": "48.5.0-alpha.5",
29
+ "@ckeditor/ckeditor5-table": "48.5.0-alpha.5",
30
+ "@ckeditor/ckeditor5-ui": "48.5.0-alpha.5",
31
+ "@ckeditor/ckeditor5-utils": "48.5.0-alpha.5"
32
32
  },
33
33
  "files": [
34
34
  "dist",