@ckeditor/ckeditor5-email 48.3.0-alpha.0 → 48.3.0-alpha.1

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 +10 -10
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x209adf}from'@ckeditor/ckeditor5-core';import{uid as _0x428f0f}from'@ckeditor/ckeditor5-utils';import{dropImportantStyleSuffix as _0x32e099}from'@ckeditor/ckeditor5-export-inline-styles';const r='https://ckeditor.com/docs/ckeditor5/latest';var o=class extends _0x209adf{static get['pluginName'](){return'EmailConfigurationLogger';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xabd1d6){super(_0xabd1d6),_0xabd1d6['config']['define']('email.logs',{'suppress':[],'suppressAll':!0x1});}['afterInit'](){!async function(_0x1e9ec9){const _0x2dac83='uizTdvyBIa4RKsnOYmEXGMfjehwJQqbPSCk7DtZgF58Lxl29Ho6cAUW1pV3Nr0',_0x596c50=0x78de0,_0x57754f=window['Date']['now'](),_0x530f11=_0x1e9ec9['editor'],_0x26a007=new window['Promise'](_0x1f7280=>{_0x530f11['once']('ready',_0x1f7280);}),_0x3d6f21={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x514d9f=_0x530f11['config']['get']('licenseKey');async function _0x57175d(){let _0x4e1567,_0x3541ea=null,_0x7916a1=null;try{return'GPL'==_0x514d9f?'NotAllowed':(_0x4e1567=_0x29da39(),_0x4e1567?(_0x4e1567['usageEndpoint']&&(_0x7916a1=_0x4bc1b8(_0x4e1567['usageEndpoint'],_0x4e1567['jti'])),await _0x28f568()?_0x2b737d()?_0x5f4183()?'Expired':_0x3480fd()?('evaluation'==_0x4e1567['licenseType']&&(_0x3541ea=_0x4b0930('EvaluationLimit')),await _0x39d259()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x5f4183(){const _0x4ddcac=['evaluation','trial']['includes'](_0x4e1567['licenseType'])?_0x57754f/0x3e8:0xe10*_0x596c50;return _0x4e1567['exp']<_0x4ddcac;}function _0x2b737d(){const _0x409311=_0x4e1567['features'];return!!_0x409311&&(!!_0x409311['includes']('*')||!!_0x409311['includes']('ECH'));}function _0x3480fd(){const _0x2b9b05=_0x4e1567['licensedHosts'];if(!_0x2b9b05||0x0==_0x2b9b05['length'])return!0x0;const {hostname:_0x2f8ff7}=new URL(window['location']['href']);if(_0x2b9b05['includes'](_0x2f8ff7))return!0x0;const _0x3f4144=_0x2f8ff7['split']('.');return _0x2b9b05['filter'](_0x1c8d65=>_0x1c8d65['includes']('*'))['map'](_0x1935cf=>_0x1935cf['split']('.'))['filter'](_0x488104=>_0x488104['length']<=_0x3f4144['length'])['map'](_0x2ec3b3=>Array(_0x3f4144['length']-_0x2ec3b3['length'])['fill']('*'===_0x2ec3b3[0x0]?'*':'')['concat'](_0x2ec3b3))['some'](_0x3ec93d=>_0x3f4144['every']((_0x4b9e3f,_0x204aec)=>_0x3ec93d[_0x204aec]===_0x4b9e3f||'*'===_0x3ec93d[_0x204aec]));}function _0x39d259(){return _0x3541ea&&_0x7916a1?new window['Promise']((_0x2340cd,_0x178781)=>{_0x3541ea['then'](_0x2340cd,_0x178781),_0x7916a1['then'](_0x3b3fc3=>{'Valid'!=_0x3b3fc3&&_0x2340cd(_0x3b3fc3);},_0x178781);}):_0x3541ea||_0x7916a1||'Valid';}}function _0x4bc1b8(_0x4c73c2,_0x3ec935){return new window['Promise'](_0x5ea79b=>{if(_0x511ffc())return _0x5ea79b('Valid');_0xeec605(),_0x530f11['decorate']('_sendUsageRequest');let _0x182713=!0x1;const _0xa581be=_0x428f0f();function _0x437a39(_0x31cc05){return!!_0x31cc05&&('object'==typeof _0x31cc05||'function'==typeof _0x31cc05)&&'function'==typeof _0x31cc05['then']&&'function'==typeof _0x31cc05['catch'];}function _0x2ba4ec(_0x52c834){_0x159d91(_0x52c834)['then'](_0x84b2fd=>_0x84b2fd&&'ok'==_0x84b2fd['status']?_0x38c495(_0x293d9b(_0xa581be+_0x3ec935))!=_0x84b2fd['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x4f1fb7=>(_0x355216(),_0x4f1fb7),()=>{const _0x45bc87=_0xa469ea();return null==_0x45bc87?(_0x355216(),'Valid'):_0x57754f-_0x45bc87>0x240c8400?'UsageLimit':'Valid';})['then'](_0x5ea79b)['catch'](()=>{_0x5ea79b('UsageLimit');});const _0x509cd5=0x36ee80;function _0x355216(){const _0x437315='llct-'+_0x38c495(_0x293d9b(_0x4c73c2)),_0x57a297=_0x2ededa(_0x38c495(window['Math']['ceil'](_0x57754f/_0x509cd5)));window['localStorage']['setItem'](_0x437315,_0x57a297);}function _0xa469ea(){const _0x5835b6='llct-'+_0x38c495(_0x293d9b(_0x4c73c2)),_0x432705=window['localStorage']['getItem'](_0x5835b6);return _0x432705?window['parseInt'](_0x2ededa(_0x432705),0x10)*_0x509cd5:null;}function _0x159d91(_0x16035f){return new window['Promise']((_0x4328b3,_0xcd840c)=>{_0x16035f['then'](_0x4328b3,_0xcd840c),window['setTimeout'](_0xcd840c,0x1d4c0);});}}_0x530f11['on']('_sendUsageRequest',(_0x3bc093,_0xa40030)=>{if(_0xa40030[0x0]!=_0x4c73c2)return _0x5ea79b('UsageLimit');_0xa40030[0x1]={..._0xa40030[0x1],'requestId':_0xa581be};},{'priority':'high'}),_0x530f11['on']('_sendUsageRequest',_0x54764c=>{_0x437a39(_0x54764c['return'])&&(_0x182713=!0x0,_0x2ba4ec(_0x54764c['return']));},{'priority':'low'}),_0x26a007['then'](()=>{_0x182713||_0x5ea79b('UsageLimit');});});function _0x511ffc(){return'auto'==_0x530f11['editing']['view']['_overlayModeHint'];}function _0xeec605(){_0x530f11['editing']['view']['_overlayModeHint']='auto';}}function _0x4b0930(_0x4b3e01){const _0x1dac80=[new window['Promise'](_0x9dd488=>setTimeout(_0x9dd488,0x93ecc)),_0x26a007['then'](()=>new window['Promise'](_0x551d9e=>{let _0x53782d=0x0;_0x530f11['model']['on']('applyOperation',(_0x65696,_0x5d63e9)=>{_0x5d63e9[0x0]['isDocumentOperation']&&_0x53782d++,0x5e8==_0x53782d&&(_0x551d9e(),_0x65696['off']());});}))];return window['Promise']['race'](_0x1dac80)['then'](()=>_0x4b3e01);}async function _0x41fcb2(){await _0x26a007,_0x530f11['model']['change']=_0x274e54,_0x530f11['model']['enqueueChange']=_0x274e54,_0x530f11['enableReadOnlyMode']('model');}function _0x5a86f1(_0x46b3f8){const _0x5c811f=_0x134df1();_0x530f11[_0x5c811f]='emailConfigurationHelperLicenseKey'+_0x46b3f8,'Valid'!=_0x46b3f8&&_0x41fcb2();}function _0x134df1(){const _0x22af9c=window['String'](window['performance']['now']())['replace']('.','');let _0x309377='u';for(let _0x4628dd=0x0;_0x4628dd<_0x22af9c['length'];_0x4628dd+=0x2){let _0x495fc3=window['parseInt'](_0x22af9c['substring'](_0x4628dd,_0x4628dd+0x2));_0x495fc3>=0x3e&&(_0x495fc3-=0x3e),_0x309377+=_0x2dac83[_0x495fc3];}return _0x309377;}function _0x29da39(){const _0x304260=_0x514d9f['split']('.');if(0x3!=_0x304260['length'])return null;return _0x3bd736(_0x304260[0x1]);function _0x3bd736(_0x3b88b0){const _0x4b93bd=_0x48db84(_0x3b88b0);return _0x4b93bd&&_0x3a925f()?_0x4b93bd:null;function _0x3a925f(){const _0x2352cf=_0x4b93bd['jti'],_0x40192e=window['parseInt'](_0x2352cf['substring'](_0x2352cf['length']-0x8),0x10),_0x23b467={..._0x4b93bd,'jti':_0x2352cf['substring'](0x0,_0x2352cf['length']-0x8)};return delete _0x23b467['vc'],_0x293d9b(_0x23b467)==_0x40192e;}}}async function _0x28f568(){let _0xc516d3=!0x0;try{const [_0x1a3174,_0x3ba8d8,_0x2e6e0b]=_0x514d9f['split']('.');return _0x1798bd(_0x1a3174),await _0x1d2bf6(_0x1a3174,_0x3ba8d8,_0x2e6e0b),_0xc516d3;}catch{return!0x1;}function _0x1798bd(_0x415210){const _0x1a5d0d=_0x48db84(_0x415210);_0x1a5d0d&&'ES256'==_0x1a5d0d['alg']||(_0xc516d3=!0x1);}async function _0x1d2bf6(_0x2d09a6,_0x1bc72c,_0x313784){const _0x9610e3=window['Uint8Array']['from'](_0x52b75d(_0x313784),_0x5505d6=>_0x5505d6['charCodeAt'](0x0)),_0x4389e3=new window['TextEncoder']()['encode'](_0x2d09a6+'.'+_0x1bc72c),_0x34ec8f=window['crypto']['subtle'];if(!_0x34ec8f)return;const _0x26d953=await _0x34ec8f['importKey']('jwk',_0x3d6f21,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x34ec8f['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x26d953,_0x9610e3,_0x4389e3)||(_0xc516d3=!0x1);}}function _0x48db84(_0x3f5301){return _0x3f5301['startsWith']('ey')?JSON['parse'](_0x52b75d(_0x3f5301)):null;}function _0x52b75d(_0xdbd957){return window['atob'](_0xdbd957['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x293d9b(_0xd8f819){let _0x5d5d22=0x1505;function _0x17499c(_0x37406c){for(let _0x2fe069=0x0;_0x2fe069<_0x37406c['length'];_0x2fe069++){const _0x13531f=_0x37406c['charCodeAt'](_0x2fe069);_0x5d5d22=(_0x5d5d22<<0x5)+_0x5d5d22+_0x13531f,_0x5d5d22&=_0x5d5d22;}}function _0xc8b8d0(_0x3e2eef){Array['isArray'](_0x3e2eef)?_0x3e2eef['forEach'](_0xc8b8d0):_0x3e2eef&&'object'==typeof _0x3e2eef?Object['entries'](_0x3e2eef)['sort']()['forEach'](([_0x4ee6f6,_0x405be2])=>{_0x17499c(_0x4ee6f6),_0xc8b8d0(_0x405be2);}):_0x17499c(window['String'](_0x3e2eef));}return _0xc8b8d0(_0xd8f819),_0x5d5d22>>>0x0;}function _0x38c495(_0x222d58){return _0x222d58['toString'](0x10)['padStart'](0x8,'0');}function _0x2ededa(_0x5a62ce){return _0x5a62ce['split']('')['reverse']()['join']('');}function _0x274e54(){}_0x5a86f1(await _0x57175d());}(this);}['_logSuppressibleWarning'](_0x6cab0,_0x31c5a4){if(this['_isSuppressedLog'](_0x6cab0,_0x31c5a4))return;const _0x40e911=r+'/support/error-codes.html#error-'+_0x6cab0;console['warn']('%cEmailConfigurationHelper%c\x20'+_0x6cab0,'background:\x20#E65100;\x20color:\x20white;\x20padding:\x202px\x204px;','',..._0x31c5a4?[_0x31c5a4]:[],'\x0aRead\x20more:\x20'+_0x40e911);}['_logSuppressibleInfo'](_0xfafe5f,_0x5e049e,_0x662904){if(this['_isSuppressedLog'](_0xfafe5f))return;let _0x1057e8=_0x5e049e;_0x662904&&(_0x1057e8+='\x0aRead\x20more:\x20'+(r+'/'+_0x662904)),console['info']('%cEmailConfigurationHelper%c\x20'+_0xfafe5f,'background:\x20#4169E1;\x20color:\x20white;\x20padding:\x202px\x204px;','',_0x1057e8);}['_checkUnsupportedPlugin'](_0x3a928e,_0x431793){this['editor']['plugins']['has'](_0x3a928e)&&this['_logSuppressibleWarning']('email-configuration-unsupported-plugin',{'pluginName':_0x3a928e,..._0x431793});}['_validateConfigColorValue'](_0xf16938){const _0x76d1d6=this['editor']['config']['get'](_0xf16938);if(!_0x76d1d6)return;const _0x25c489=Array['isArray'](_0x76d1d6),_0x752f04=_0x25c489?_0x76d1d6:[_0x76d1d6];for(const [_0xd35602,_0x41fe53]of _0x752f04['entries']()){const _0x2fbc28='string'==typeof _0x41fe53?_0x41fe53:_0x41fe53['color'];s(_0x2fbc28)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-value',{'configPath':_0x25c489?_0xf16938+'['+_0xd35602+']':_0xf16938,'color':_0x2fbc28});}}['_validateConfigColorFormat'](_0x17f518){const _0x440e98=this['editor']['config']['get'](_0x17f518);_0x440e98&&l(_0x440e98)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-format',{'configPath':_0x17f518,'format':_0x440e98});}['_isSuppressedLog'](_0x2bce5c,_0x19e03d){const _0x5d43e2=this['editor']['config']['get']('email.logs');return!!_0x5d43e2['suppressAll']||(!('function'!=typeof _0x5d43e2['suppress']||!_0x5d43e2['suppress'](_0x2bce5c,_0x19e03d))||!(!Array['isArray'](_0x5d43e2['suppress'])||!_0x5d43e2['suppress']['includes'](_0x2bce5c)));}};const a=['hsl','hsla','hwb','lab','lch','oklab','oklch','color-mix','rgba'];function s(_0x5c9b25){return!!_0x5c9b25&&a['some'](_0x15afb2=>_0x5c9b25['includes'](_0x15afb2+'('));}function l(_0x3ee796){return!!_0x3ee796&&a['includes'](_0x3ee796);}var u=class extends _0x209adf{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(_0x51a40a,_0xdf72ea){const _0xbd9fc5=_0x51a40a['ownerDocument'],{table:_0xca86a8,cell:_0x4ab3b6}=g(_0xbd9fc5,'100%');_0xdf72ea['align']&&_0x4ab3b6['setAttribute']('align',_0x32e099(_0xdf72ea['align']));let _0x5e4b41=_0x4ab3b6;if(_0xdf72ea['width']){const {table:_0x2b712b,cell:_0xe74058}=g(_0xbd9fc5,_0x32e099(_0xdf72ea['width']));_0x4ab3b6['appendChild'](_0x2b712b),_0x5e4b41=_0xe74058;}return _0x51a40a['replaceWith'](_0xca86a8),_0x51a40a['removeAttribute']('align'),_0x51a40a['removeAttribute']('width'),_0x5e4b41['appendChild'](_0x51a40a),_0x5e4b41;}function g(_0x2a42d4,_0x32506f){const _0x52fc6e=_0x2a42d4['createElement']('table');_0x32506f&&(_0x52fc6e['style']['width']=_0x32506f,_0x52fc6e['setAttribute']('width',h(_0x32506f))),_0x52fc6e['setAttribute']('cellpadding','0'),_0x52fc6e['setAttribute']('cellspacing','0'),_0x52fc6e['setAttribute']('border','0'),_0x52fc6e['setAttribute']('role','presentation');const _0x5e0a64=_0x2a42d4['createElement']('tbody'),_0x5826b9=_0x2a42d4['createElement']('tr'),_0x2e432e=_0x2a42d4['createElement']('td');return _0x52fc6e['appendChild'](_0x5e0a64),_0x5e0a64['appendChild'](_0x5826b9),_0x5826b9['appendChild'](_0x2e432e),{'table':_0x52fc6e,'cell':_0x2e432e};}function f(_0x31b978){const _0x4af8b6=_0x31b978['getAsString']('margin-left'),_0x4dada0=_0x31b978['getAsString']('margin-right'),_0x29a8aa=_0x4af8b6&&_0x32e099(_0x4af8b6),_0x6e8c30=_0x4dada0&&_0x32e099(_0x4dada0);return'auto'===_0x29a8aa&&'auto'===_0x6e8c30?'center':'auto'===_0x29a8aa?'right':'auto'===_0x6e8c30?'left':void 0x0;}function m(_0x38a699,_0x203c3f){const _0x21e58c=_0x38a699['ownerDocument']['createElement'](_0x203c3f);for(const _0x7ef399 of Array['from'](_0x38a699['attributes']))_0x21e58c['setAttribute'](_0x7ef399['name'],_0x7ef399['value']);for(;_0x38a699['firstChild'];)_0x21e58c['appendChild'](_0x38a699['firstChild']);return _0x21e58c;}function d(_0x52264a){if('TABLE'!==_0x52264a['tagName'])return!0x1;if('presentation'!==_0x52264a['getAttribute']('role'))return!0x1;const _0x5c824c=p(_0x52264a);return null!==_0x5c824c&&_0x5c824c['hasAttribute']('align');}function p(_0x3b0828){let _0x5c2284=_0x3b0828;0x1===_0x3b0828['children']['length']&&'TBODY'===_0x3b0828['children'][0x0]['tagName']&&(_0x5c2284=_0x3b0828['children'][0x0]);const _0x10c896=_0x5c2284['children'];if(0x1!==_0x10c896['length']||'TR'!==_0x10c896[0x0]['tagName'])return null;const _0x56e5c4=_0x10c896[0x0]['children'];return 0x1!==_0x56e5c4['length']||'TD'!==_0x56e5c4[0x0]['tagName']?null:_0x56e5c4[0x0];}function h(_0x4bfb68){return function(_0x164b23){return _0x164b23['endsWith']('px')?_0x164b23['slice'](0x0,-0x2):_0x164b23;}(_0x32e099(_0x4bfb68));}const w=(_0x1a2a63,_0x136213,{runAfterDocumentTransformation:_0x55dcb4,runAfterChildrenTransformation:_0x293eca})=>{if('FIGURE'!==_0x1a2a63['tagName'])return;const _0x2bc2ee=_0x136213['getAsString']('float');if(_0x2bc2ee){if(P(_0x1a2a63))_0x55dcb4(()=>{y(_0x1a2a63,{'align':_0x2bc2ee});});else{const {table:_0x271205,cell:_0x23ac3e}=g(_0x1a2a63['ownerDocument']);_0x271205['setAttribute']('align',_0x32e099(_0x2bc2ee)),_0x271205['setAttribute']('style',function(_0x344e82){return _0x344e82['getStylesEntries']()['map'](_0x64baa4=>_0x64baa4['join'](':'))['join'](';')+';';}(_0x136213)),_0x293eca(()=>{for(const _0x1e8557 of Array['from'](_0x1a2a63['childNodes']))_0x23ac3e['appendChild'](_0x1e8557);}),_0x55dcb4(()=>{_0x1a2a63['replaceWith'](_0x271205);});}}else{const _0x40bfbb=f(_0x136213),_0x1c42f4=_0x136213['getAsString']('width');if(!_0x40bfbb&&!_0x1c42f4)return;c(_0x1a2a63,{'align':_0x40bfbb,'width':_0x1c42f4}),_0x1c42f4&&_0x136213['set']('width','100%'),_0x136213['remove']('margin-left'),_0x136213['remove']('margin-right'),_0x136213['remove']('min-width'),_0x136213['remove']('max-width'),_0x55dcb4(()=>{if(!y(_0x1a2a63)){const _0x148daf=m(_0x1a2a63,'div');_0x1a2a63['replaceWith'](_0x148daf);}});}};function y(_0xad28b8,_0x17eae4={}){const _0x3ecf3c=P(_0xad28b8);if(!_0x3ecf3c)return null;for(const _0x4245d5 of['id','class']){const _0x3edebc=_0xad28b8['getAttribute'](_0x4245d5);_0x3edebc&&_0x3ecf3c['setAttribute'](_0x4245d5,_0x3edebc);}for(const _0x3f9ecd of['display','float','width','height'])_0x3ecf3c['style']['removeProperty'](_0x3f9ecd);const _0x3b136e=_0xad28b8['getAttribute']('style');if(_0x3b136e){const _0x2dca0d=_0x3ecf3c['getAttribute']('style')||'';_0x3ecf3c['setAttribute']('style',_0x3b136e+_0x2dca0d);}return _0x17eae4['align']&&_0x3ecf3c['setAttribute']('align',_0x32e099(_0x17eae4['align'])),'fixed'!==_0x3ecf3c['style']['tableLayout']||_0x3ecf3c['style']['width']||(_0x3ecf3c['style']['width']='100%',_0x3ecf3c['setAttribute']('width','100%')),_0xad28b8['replaceWith'](_0x3ecf3c),_0x3ecf3c;}function P(_0x155321){const _0x4fbeb8=Array['from'](_0x155321['children']);return 0x1===_0x4fbeb8['length']&&'TABLE'===_0x4fbeb8[0x0]['tagName']?_0x4fbeb8[0x0]:null;}var I=class extends _0x209adf{static get['requires'](){return[o];}static get['pluginName'](){return'ImageEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {config:_0x2ed9e5,plugins:_0x152a8f}=this['editor'];_0x2ed9e5['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x152a8f['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 _0x209adf{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 _0x209adf{static get['requires'](){return[o];}static get['pluginName'](){return'ExportInlineStylesEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x560c23=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('ExportInlineStyles')||_0x560c23['_logSuppressibleWarning']('email-configuration-missing-export-inline-styles-plugin');}},L=class extends _0x209adf{static get['requires'](){return[o];}static get['pluginName'](){return'ListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x5ab659=this['editor']['plugins']['get'](o),_0x588d32=this['editor']['config']['get']('list');_0x588d32&&_0x588d32['properties']&&_0x588d32['properties']['reversed']&&_0x5ab659['_logSuppressibleWarning']('email-configuration-unsupported-reversed-list'),_0x588d32&&_0x588d32['enableListItemMarkerFormatting']&&_0x5ab659['_logSuppressibleWarning']('email-configuration-unsupported-list-item-marker-formatting');}},C=class extends _0x209adf{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:_0x59ad0e}=this['editor'],_0x378569=_0x59ad0e['get'](o);_0x59ad0e['has']('Table')&&(_0x59ad0e['has']('PlainTableOutput')||_0x378569['_logSuppressibleWarning']('email-configuration-missing-plain-table-output-plugin'),_0x59ad0e['has']('TableLayout')||_0x378569['_logSuppressibleWarning']('email-configuration-missing-table-layout-plugin'));}['_checkTableConfig'](){const {config:_0x7325d7,plugins:_0x572ec6}=this['editor'];_0x7325d7['get']('table')&&_0x572ec6['has']('Table')&&(this['_checkTablePropertiesConfig']('tableCellProperties'),this['_checkTablePropertiesConfig']('tableProperties'));}['_checkTablePropertiesConfig'](_0x13b3df){const _0x3c617f=this['editor']['plugins']['get'](o);_0x3c617f['_validateConfigColorValue']('table.'+_0x13b3df+'.borderColors'),_0x3c617f['_validateConfigColorValue']('table.'+_0x13b3df+'.backgroundColors'),_0x3c617f['_validateConfigColorValue']('table.'+_0x13b3df+'.defaultProperties.borderColor'),_0x3c617f['_validateConfigColorValue']('table.'+_0x13b3df+'.defaultProperties'),_0x3c617f['_validateConfigColorFormat']('table.'+_0x13b3df+'.colorPicker.format');}},k=class extends _0x209adf{static get['requires'](){return[o];}static get['pluginName'](){return'EmptyBlockEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x50f42f=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('EmptyBlock')||_0x50f42f['_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 _0x209adf{static get['requires'](){return[o];}static get['pluginName'](){return'FontEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {plugins:_0x40f953}=this['editor'];_0x40f953['has']('FontColorEditing')&&this['_checkColorConfig']('fontColor'),_0x40f953['has']('FontBackgroundColorEditing')&&this['_checkColorConfig']('fontBackgroundColor');}['_checkColorConfig'](_0x5067a6){const _0x4540b7=this['editor']['plugins']['get'](o);this['editor']['config']['get'](_0x5067a6)&&(_0x4540b7['_validateConfigColorValue'](_0x5067a6+'.colors'),_0x4540b7['_validateConfigColorValue'](_0x5067a6+'.documentColors'),_0x4540b7['_validateConfigColorFormat'](_0x5067a6+'.colorPicker.format'));}},x=class extends _0x209adf{static get['requires'](){return[o];}static get['pluginName'](){return'SourceEditingEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {plugins:_0x36b54e}=this['editor'],_0x51c369=_0x36b54e['get'](o);_0x36b54e['has']('SourceEditing')||_0x36b54e['has']('SourceEditingEnhanced')||_0x51c369['_logSuppressibleWarning']('email-configuration-missing-source-editing-plugin');}},v=class extends _0x209adf{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 _0x209adf{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:_0x1d0f27}=this['editor'];if(!_0x1d0f27['has']('DataFilter'))return;const _0x501145=_0x1d0f27['get']('DataFilter'),_0x5aa6bf=_0x1d0f27['get'](o);for(const _0x2ded45 of GeneralHtmlIntegrationSupport['UNSUPPORTED_ELEMENTS'])_0x501145['once']('register:'+_0x2ded45,(_0x4a7c6a,_0x8619ba)=>{_0x5aa6bf['_logSuppressibleWarning']('email-unsupported-html-element',{'element':_0x8619ba['view']});});}},A=class extends _0x209adf{static get['requires'](){return[o];}static get['pluginName'](){return'MergeFieldsEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x179fc2=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('MergeFields')||_0x179fc2['_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 _0x209adf{static get['requires'](){return[o];}static get['pluginName'](){return'TemplateEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x392219=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('Template')||_0x392219['_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 _0x209adf{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 _0x209adf{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 _0x209adf{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 _0x209adf{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 _0x209adf{static get['requires'](){return[o];}static get['pluginName'](){return'LinkEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {config:_0x26b754,plugins:_0x477fa0}=this['editor'],_0x3250fe=_0x477fa0['get'](o);_0x26b754['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x3250fe['_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 _0x209adf{['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 _0x25321f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5a1e63;for(const _0xc52d06 in _0x25321f){const _0x3bbc67=_0xc52d06,_0x2a027b=_0x25321f[_0x3bbc67];if('emailConfigurationHelperLicenseKeyValid'==_0x2a027b||'emailConfigurationHelperLicenseKeyInvalid'==_0x2a027b||'emailConfigurationHelperLicenseKeyExpired'==_0x2a027b||'emailConfigurationHelperLicenseKeyDomainLimit'==_0x2a027b||'emailConfigurationHelperLicenseKeyNotAllowed'==_0x2a027b||'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x2a027b||'emailConfigurationHelperLicenseKeyUsageLimit'==_0x2a027b){delete _0x25321f[_0x3bbc67],_0x5a1e63=_0x2a027b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'emailConfigurationHelperLicenseKeyInvalid'==_0x5a1e63&&_0x25321f['_showLicenseError']('invalid'),'emailConfigurationHelperLicenseKeyExpired'==_0x5a1e63&&_0x25321f['_showLicenseError']('expired'),'emailConfigurationHelperLicenseKeyDomainLimit'==_0x5a1e63&&_0x25321f['_showLicenseError']('domainLimit'),'emailConfigurationHelperLicenseKeyNotAllowed'==_0x5a1e63&&_0x25321f['_showLicenseError']('featureNotAllowed','EmailConfigurationHelper'),'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x5a1e63&&_0x25321f['_showLicenseError']('evaluationLimit'),'emailConfigurationHelperLicenseKeyUsageLimit'==_0x5a1e63&&_0x25321f['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};const U=(_0x425826,_0x59d793)=>{if(!['TABLE','IMG']['includes'](_0x425826['tagName']))return;const _0x26d11b=_0x59d793['getAsString']('float');if(_0x26d11b){const _0x54d066=_0x32e099(_0x26d11b);'left'!==_0x54d066&&'right'!==_0x54d066||_0x425826['setAttribute']('align',_0x54d066);}},D=(_0x33f5b1,_0x524ae5)=>{if('TABLE'!==_0x33f5b1['tagName']||_0x524ae5['has']('float'))return;const _0x43e58f=f(_0x524ae5),_0x397144=_0x524ae5['getAsString']('width');_0x43e58f&&(c(_0x33f5b1,{'align':_0x43e58f}),_0x397144?_0x33f5b1['setAttribute']('width',h(_0x397144)):_0x524ae5['remove']('width'),_0x524ae5['remove']('margin-left'),_0x524ae5['remove']('margin-right'));},F=(_0x2149a6,_0x21976a)=>{if('IMG'!==_0x2149a6['tagName'])return;const _0x2d1dfc=_0x21976a['getAsString']('width');_0x2d1dfc&&(_0x2149a6['setAttribute']('width',h(_0x2d1dfc)),_0x2149a6['setAttribute']('height','auto'));},_=(_0x352771,_0x4ddc24,{runAfterDocumentTransformation:_0x86bec2})=>{if('FIGCAPTION'!==_0x352771['tagName'])return;const _0x20e1e9=_0x4ddc24['getAsString']('display'),_0x83248a=_0x4ddc24['getAsString']('caption-side');_0x4ddc24['remove']('caption-side'),_0x20e1e9&&'table-caption'===_0x32e099(_0x20e1e9)&&_0x4ddc24['remove']('display');const _0x5b9b33=_0x83248a&&'top'===_0x32e099(_0x83248a);_0x86bec2(()=>{const _0x4df351=m(_0x352771,'div'),_0x4249fa=_0x352771['previousElementSibling'];_0x5b9b33&&_0x4249fa&&'TABLE'===_0x4249fa['tagName']?(_0x4249fa['before'](_0x4df351),_0x352771['remove']()):_0x352771['replaceWith'](_0x4df351);});},M=(_0x1cc272,_0x729619,{runAfterChildrenTransformation:_0x48c604})=>{'TD'===_0x1cc272['tagName']&&_0x48c604(()=>{const _0x42f2be=Array['from'](_0x1cc272['children']);if(0x0===_0x42f2be['length'])return;const _0x301cb6=_0x42f2be['map'](R),_0x5b3c0e=_0x301cb6[0x0];if(_0x5b3c0e&&_0x301cb6['every'](_0x45a871=>_0x45a871===_0x5b3c0e)){_0x1cc272['setAttribute']('align',_0x5b3c0e);for(const _0x3d0dd8 of _0x42f2be)if(d(_0x3d0dd8)){const _0x4875c2=p(_0x3d0dd8);_0x3d0dd8['replaceWith'](...Array['from'](_0x4875c2['childNodes']));}else _0x3d0dd8['style']['removeProperty']('text-align'),_0x3d0dd8['style']['length']||_0x3d0dd8['removeAttribute']('style');}});};function R(_0x92c765){return d(_0x92c765)?p(_0x92c765)['getAttribute']('align'):_0x92c765['style']['textAlign']||void 0x0;}const V=(_0x396e75,_0x4743e3,{runAfterChildrenTransformation:_0x1e5ba3})=>{'TABLE'===_0x396e75['tagName']&&_0x1e5ba3(()=>{const _0x477fe1=function(_0x34fe38,_0x10a0cc){for(const _0x464e02 of _0x34fe38['children'])if(_0x464e02['tagName']===_0x10a0cc)return _0x464e02;return null;}(_0x396e75,'COLGROUP');if(!_0x477fe1)return;const _0xebee9=Array['from'](_0x477fe1['children'])['filter'](_0x5b249d=>'COL'===_0x5b249d['tagName']);if(_0xebee9['some'](_0x2e4137=>Q(_0x2e4137,'span')))return;const _0x50d8f3=_0xebee9['map'](j);if(!_0x50d8f3['some'](Boolean))return;const _0x27bd4d=function(_0x5465ff){const _0x2ba7a1=[];for(const _0xb8cd5f of _0x5465ff['children'])if(['THEAD','TBODY','TFOOT']['includes'](_0xb8cd5f['tagName'])){for(const _0x38218b of _0xb8cd5f['children'])'TR'===_0x38218b['tagName']&&_0x2ba7a1['push'](_0x38218b);}return _0x2ba7a1;}(_0x396e75)['map'](G);if(!_0x27bd4d['some'](_0x85af69=>_0x85af69['length']!==_0x50d8f3['length']||_0x85af69['some'](_0x4956f7=>function(_0x4038c4){return Q(_0x4038c4,'colspan')||Q(_0x4038c4,'rowspan');}(_0x4956f7)||function(_0x4c09ce){return Boolean(_0x4c09ce['style']['getPropertyValue']('width'))||Boolean(_0x4c09ce['getAttribute']('width'));}(_0x4956f7)))){for(const _0x3119e5 of _0x27bd4d)_0x3119e5['forEach']((_0x3384bf,_0x28c4dc)=>{const _0x5b3ea1=_0x50d8f3[_0x28c4dc];_0x5b3ea1&&(_0x3384bf['setAttribute']('width',h(_0x5b3ea1)),_0x3384bf['style']['setProperty']('width',_0x5b3ea1));});}});};function G(_0x723f57){return Array['from'](_0x723f57['children'])['filter'](_0x27fb61=>'TD'===_0x27fb61['tagName']||'TH'===_0x27fb61['tagName']);}function j(_0x36387c){const _0x3b87c1=_0x36387c['style']['getPropertyValue']('width');if(_0x3b87c1)return _0x3b87c1;const _0x375ba7=_0x36387c['getAttribute']('width');if(!_0x375ba7)return;const _0x1a332f=_0x32e099(_0x375ba7);return/^\d+(\.\d+)?$/['test'](_0x1a332f)?_0x1a332f+'px':_0x1a332f;}function Q(_0x2eb2c9,_0x2bd27a){const _0x2787de=_0x2eb2c9['getAttribute'](_0x2bd27a);return null!==_0x2787de&&'1'!==_0x2787de;}function J(_0x20df32={}){const _0x5791d9=[];return _0x20df32['useFigureToTableFallback']&&_0x5791d9['push'](w,_,M),_0x5791d9['push'](U,D,F,V),_0x5791d9;}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 _0x13e9d2}from'@ckeditor/ckeditor5-core';import{uid as _0x1862bb}from'@ckeditor/ckeditor5-utils';import{dropImportantStyleSuffix as _0x4c1a59}from'@ckeditor/ckeditor5-export-inline-styles';const r='https://ckeditor.com/docs/ckeditor5/latest';var o=class extends _0x13e9d2{static get['pluginName'](){return'EmailConfigurationLogger';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x182780){super(_0x182780),_0x182780['config']['define']('email.logs',{'suppress':[],'suppressAll':!0x1});}['afterInit'](){!async function(_0x140786){const _0x564270='uizTdvyBIa4RKsnOYmEXGMfjehwJQqbPSCk7DtZgF58Lxl29Ho6cAUW1pV3Nr0',_0x5e0f34=0x78df8,_0x1dd3ef=window['Date']['now'](),_0x15d06f=_0x140786['editor'],_0x20ae2e=new window['Promise'](_0x25fdc1=>{_0x15d06f['once']('ready',_0x25fdc1);}),_0x1f4947={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0xc24d1c=_0x15d06f['config']['get']('licenseKey');async function _0x4fc6c8(){let _0x55a7c3,_0x15b187=null,_0x6eb19a=null;try{return'GPL'==_0xc24d1c?'NotAllowed':(_0x55a7c3=_0x1eafee(),_0x55a7c3?(_0x55a7c3['usageEndpoint']&&(_0x6eb19a=_0x331ed7(_0x55a7c3['usageEndpoint'],_0x55a7c3['jti'])),await _0x7af97d()?_0x41841c()?_0x343f05()?'Expired':_0x4b212c()?('evaluation'==_0x55a7c3['licenseType']&&(_0x15b187=_0x321ded('EvaluationLimit')),await _0x3462f9()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x343f05(){const _0x24672b=['evaluation','trial']['includes'](_0x55a7c3['licenseType'])?_0x1dd3ef/0x3e8:0xe10*_0x5e0f34;return _0x55a7c3['exp']<_0x24672b;}function _0x41841c(){const _0x355071=_0x55a7c3['features'];return!!_0x355071&&(!!_0x355071['includes']('*')||!!_0x355071['includes']('ECH'));}function _0x4b212c(){const _0x1c608b=_0x55a7c3['licensedHosts'];if(!_0x1c608b||0x0==_0x1c608b['length'])return!0x0;const {hostname:_0x36e87f}=new URL(window['location']['href']);if(_0x1c608b['includes'](_0x36e87f))return!0x0;const _0x7993eb=_0x36e87f['split']('.');return _0x1c608b['filter'](_0x12779e=>_0x12779e['includes']('*'))['map'](_0x511bcf=>_0x511bcf['split']('.'))['filter'](_0x5ea220=>_0x5ea220['length']<=_0x7993eb['length'])['map'](_0x536f1b=>Array(_0x7993eb['length']-_0x536f1b['length'])['fill']('*'===_0x536f1b[0x0]?'*':'')['concat'](_0x536f1b))['some'](_0xecb362=>_0x7993eb['every']((_0x1a14f4,_0x5dede6)=>_0xecb362[_0x5dede6]===_0x1a14f4||'*'===_0xecb362[_0x5dede6]));}function _0x3462f9(){return _0x15b187&&_0x6eb19a?new window['Promise']((_0x5b55cd,_0x36762b)=>{_0x15b187['then'](_0x5b55cd,_0x36762b),_0x6eb19a['then'](_0x24d5e5=>{'Valid'!=_0x24d5e5&&_0x5b55cd(_0x24d5e5);},_0x36762b);}):_0x15b187||_0x6eb19a||'Valid';}}function _0x331ed7(_0x4f616e,_0x4a5717){return new window['Promise'](_0x2f6ace=>{if(_0xa329c4())return _0x2f6ace('Valid');_0x2222cb(),_0x15d06f['decorate']('_sendUsageRequest');let _0x56d97e=!0x1;const _0x3f5979=_0x1862bb();function _0x24f4df(_0x50ea71){return!!_0x50ea71&&('object'==typeof _0x50ea71||'function'==typeof _0x50ea71)&&'function'==typeof _0x50ea71['then']&&'function'==typeof _0x50ea71['catch'];}function _0x4f4cb9(_0x580442){_0x22a539(_0x580442)['then'](_0x281a35=>_0x281a35&&'ok'==_0x281a35['status']?_0x396401(_0x3385(_0x3f5979+_0x4a5717))!=_0x281a35['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x310fcf=>(_0x3674ec(),_0x310fcf),()=>{const _0xee79be=_0x5e81a0();return null==_0xee79be?(_0x3674ec(),'Valid'):_0x1dd3ef-_0xee79be>0x240c8400?'UsageLimit':'Valid';})['then'](_0x2f6ace)['catch'](()=>{_0x2f6ace('UsageLimit');});const _0x5886a6=0x36ee80;function _0x3674ec(){const _0x59d246='llct-'+_0x396401(_0x3385(_0x4f616e)),_0x583659=_0x1fcde2(_0x396401(window['Math']['ceil'](_0x1dd3ef/_0x5886a6)));window['localStorage']['setItem'](_0x59d246,_0x583659);}function _0x5e81a0(){const _0x22cc41='llct-'+_0x396401(_0x3385(_0x4f616e)),_0x1f17a3=window['localStorage']['getItem'](_0x22cc41);return _0x1f17a3?window['parseInt'](_0x1fcde2(_0x1f17a3),0x10)*_0x5886a6:null;}function _0x22a539(_0x4b5434){return new window['Promise']((_0x3ee778,_0x8dfe1c)=>{_0x4b5434['then'](_0x3ee778,_0x8dfe1c),window['setTimeout'](_0x8dfe1c,0x1d4c0);});}}_0x15d06f['on']('_sendUsageRequest',(_0x5f5717,_0x3d2ff7)=>{if(_0x3d2ff7[0x0]!=_0x4f616e)return _0x2f6ace('UsageLimit');_0x3d2ff7[0x1]={..._0x3d2ff7[0x1],'requestId':_0x3f5979};},{'priority':'high'}),_0x15d06f['on']('_sendUsageRequest',_0xf2bcb1=>{_0x24f4df(_0xf2bcb1['return'])&&(_0x56d97e=!0x0,_0x4f4cb9(_0xf2bcb1['return']));},{'priority':'low'}),_0x20ae2e['then'](()=>{_0x56d97e||_0x2f6ace('UsageLimit');});});function _0xa329c4(){return'auto'==_0x15d06f['editing']['view']['_overlayModeHint'];}function _0x2222cb(){_0x15d06f['editing']['view']['_overlayModeHint']='auto';}}function _0x321ded(_0x32761e){const _0x1bd923=[new window['Promise'](_0x5a1c13=>setTimeout(_0x5a1c13,0x93ecc)),_0x20ae2e['then'](()=>new window['Promise'](_0x37ecb1=>{let _0x17f337=0x0;_0x15d06f['model']['on']('applyOperation',(_0x4d8b04,_0x397897)=>{_0x397897[0x0]['isDocumentOperation']&&_0x17f337++,0x5e8==_0x17f337&&(_0x37ecb1(),_0x4d8b04['off']());});}))];return window['Promise']['race'](_0x1bd923)['then'](()=>_0x32761e);}async function _0x4cb0e8(){await _0x20ae2e,_0x15d06f['model']['change']=_0x43c91c,_0x15d06f['model']['enqueueChange']=_0x43c91c,_0x15d06f['enableReadOnlyMode']('model');}function _0x6bd5b4(_0x2c462f){const _0x18e220=_0x59cf2a();_0x15d06f[_0x18e220]='emailConfigurationHelperLicenseKey'+_0x2c462f,'Valid'!=_0x2c462f&&_0x4cb0e8();}function _0x59cf2a(){const _0x3d8e64=window['String'](window['performance']['now']())['replace']('.','');let _0x1170ba='u';for(let _0x530913=0x0;_0x530913<_0x3d8e64['length'];_0x530913+=0x2){let _0x530758=window['parseInt'](_0x3d8e64['substring'](_0x530913,_0x530913+0x2));_0x530758>=0x3e&&(_0x530758-=0x3e),_0x1170ba+=_0x564270[_0x530758];}return _0x1170ba;}function _0x1eafee(){const _0x1d8094=_0xc24d1c['split']('.');if(0x3!=_0x1d8094['length'])return null;return _0x3bee07(_0x1d8094[0x1]);function _0x3bee07(_0x34e787){const _0x502e80=_0x60a211(_0x34e787);return _0x502e80&&_0x55b238()?_0x502e80:null;function _0x55b238(){const _0x262dd8=_0x502e80['jti'],_0x2788a5=window['parseInt'](_0x262dd8['substring'](_0x262dd8['length']-0x8),0x10),_0x20d3ec={..._0x502e80,'jti':_0x262dd8['substring'](0x0,_0x262dd8['length']-0x8)};return delete _0x20d3ec['vc'],_0x3385(_0x20d3ec)==_0x2788a5;}}}async function _0x7af97d(){let _0x5952d8=!0x0;try{const [_0x370278,_0x122680,_0x3e9cd9]=_0xc24d1c['split']('.');return _0x475265(_0x370278),await _0x20d613(_0x370278,_0x122680,_0x3e9cd9),_0x5952d8;}catch{return!0x1;}function _0x475265(_0xf69f94){const _0x4ceb88=_0x60a211(_0xf69f94);_0x4ceb88&&'ES256'==_0x4ceb88['alg']||(_0x5952d8=!0x1);}async function _0x20d613(_0x3499ef,_0x2508e9,_0x135efe){const _0x55b050=window['Uint8Array']['from'](_0x322688(_0x135efe),_0x629c0c=>_0x629c0c['charCodeAt'](0x0)),_0x5932c0=new window['TextEncoder']()['encode'](_0x3499ef+'.'+_0x2508e9),_0x1ec610=window['crypto']['subtle'];if(!_0x1ec610)return;const _0x1fd659=await _0x1ec610['importKey']('jwk',_0x1f4947,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x1ec610['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x1fd659,_0x55b050,_0x5932c0)||(_0x5952d8=!0x1);}}function _0x60a211(_0x2bcf19){return _0x2bcf19['startsWith']('ey')?JSON['parse'](_0x322688(_0x2bcf19)):null;}function _0x322688(_0x34e578){return window['atob'](_0x34e578['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x3385(_0xe763a4){let _0x1f2cec=0x1505;function _0x477fe8(_0x4bde25){for(let _0x4451dd=0x0;_0x4451dd<_0x4bde25['length'];_0x4451dd++){const _0x301922=_0x4bde25['charCodeAt'](_0x4451dd);_0x1f2cec=(_0x1f2cec<<0x5)+_0x1f2cec+_0x301922,_0x1f2cec&=_0x1f2cec;}}function _0x2148ec(_0x402be3){Array['isArray'](_0x402be3)?_0x402be3['forEach'](_0x2148ec):_0x402be3&&'object'==typeof _0x402be3?Object['entries'](_0x402be3)['sort']()['forEach'](([_0x439216,_0x356aa1])=>{_0x477fe8(_0x439216),_0x2148ec(_0x356aa1);}):_0x477fe8(window['String'](_0x402be3));}return _0x2148ec(_0xe763a4),_0x1f2cec>>>0x0;}function _0x396401(_0x24d339){return _0x24d339['toString'](0x10)['padStart'](0x8,'0');}function _0x1fcde2(_0x111528){return _0x111528['split']('')['reverse']()['join']('');}function _0x43c91c(){}_0x6bd5b4(await _0x4fc6c8());}(this);}['_logSuppressibleWarning'](_0x1f1a88,_0x5a2c78){if(this['_isSuppressedLog'](_0x1f1a88,_0x5a2c78))return;const _0x3693af=r+'/support/error-codes.html#error-'+_0x1f1a88;console['warn']('%cEmailConfigurationHelper%c\x20'+_0x1f1a88,'background:\x20#E65100;\x20color:\x20white;\x20padding:\x202px\x204px;','',..._0x5a2c78?[_0x5a2c78]:[],'\x0aRead\x20more:\x20'+_0x3693af);}['_logSuppressibleInfo'](_0x571759,_0x49cbaa,_0x37b59f){if(this['_isSuppressedLog'](_0x571759))return;let _0x5e5864=_0x49cbaa;_0x37b59f&&(_0x5e5864+='\x0aRead\x20more:\x20'+(r+'/'+_0x37b59f)),console['info']('%cEmailConfigurationHelper%c\x20'+_0x571759,'background:\x20#4169E1;\x20color:\x20white;\x20padding:\x202px\x204px;','',_0x5e5864);}['_checkUnsupportedPlugin'](_0x38039c,_0x5645f9){this['editor']['plugins']['has'](_0x38039c)&&this['_logSuppressibleWarning']('email-configuration-unsupported-plugin',{'pluginName':_0x38039c,..._0x5645f9});}['_validateConfigColorValue'](_0x27aea2){const _0x36561c=this['editor']['config']['get'](_0x27aea2);if(!_0x36561c)return;const _0x121c51=Array['isArray'](_0x36561c),_0x2ebb35=_0x121c51?_0x36561c:[_0x36561c];for(const [_0x3081d2,_0x358f18]of _0x2ebb35['entries']()){const _0x5ec834='string'==typeof _0x358f18?_0x358f18:_0x358f18['color'];s(_0x5ec834)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-value',{'configPath':_0x121c51?_0x27aea2+'['+_0x3081d2+']':_0x27aea2,'color':_0x5ec834});}}['_validateConfigColorFormat'](_0x549232){const _0x538146=this['editor']['config']['get'](_0x549232);_0x538146&&l(_0x538146)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-format',{'configPath':_0x549232,'format':_0x538146});}['_isSuppressedLog'](_0xa52eeb,_0x423d75){const _0xd4f794=this['editor']['config']['get']('email.logs');return!!_0xd4f794['suppressAll']||(!('function'!=typeof _0xd4f794['suppress']||!_0xd4f794['suppress'](_0xa52eeb,_0x423d75))||!(!Array['isArray'](_0xd4f794['suppress'])||!_0xd4f794['suppress']['includes'](_0xa52eeb)));}};const a=['hsl','hsla','hwb','lab','lch','oklab','oklch','color-mix','rgba'];function s(_0x20ecf0){return!!_0x20ecf0&&a['some'](_0xf6fb7d=>_0x20ecf0['includes'](_0xf6fb7d+'('));}function l(_0x2f14ea){return!!_0x2f14ea&&a['includes'](_0x2f14ea);}var u=class extends _0x13e9d2{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(_0x5ec37d,_0x3fa2eb){const _0x54f51c=_0x5ec37d['ownerDocument'],{table:_0x243df9,cell:_0x3209d8}=g(_0x54f51c,'100%');_0x3fa2eb['align']&&_0x3209d8['setAttribute']('align',_0x4c1a59(_0x3fa2eb['align']));let _0x34d3f4=_0x3209d8;if(_0x3fa2eb['width']){const {table:_0x1ecc2b,cell:_0x36f7ee}=g(_0x54f51c,_0x4c1a59(_0x3fa2eb['width']));_0x3209d8['appendChild'](_0x1ecc2b),_0x34d3f4=_0x36f7ee;}return _0x5ec37d['replaceWith'](_0x243df9),_0x5ec37d['removeAttribute']('align'),_0x5ec37d['removeAttribute']('width'),_0x34d3f4['appendChild'](_0x5ec37d),_0x34d3f4;}function g(_0x4caf7e,_0x15a64b){const _0xaffb44=_0x4caf7e['createElement']('table');_0x15a64b&&(_0xaffb44['style']['width']=_0x15a64b,_0xaffb44['setAttribute']('width',h(_0x15a64b))),_0xaffb44['setAttribute']('cellpadding','0'),_0xaffb44['setAttribute']('cellspacing','0'),_0xaffb44['setAttribute']('border','0'),_0xaffb44['setAttribute']('role','presentation');const _0x5c66ff=_0x4caf7e['createElement']('tbody'),_0x2627d4=_0x4caf7e['createElement']('tr'),_0x3ef4e5=_0x4caf7e['createElement']('td');return _0xaffb44['appendChild'](_0x5c66ff),_0x5c66ff['appendChild'](_0x2627d4),_0x2627d4['appendChild'](_0x3ef4e5),{'table':_0xaffb44,'cell':_0x3ef4e5};}function f(_0x5393d0){const _0xaaf33f=_0x5393d0['getAsString']('margin-left'),_0x6d091c=_0x5393d0['getAsString']('margin-right'),_0x3402f7=_0xaaf33f&&_0x4c1a59(_0xaaf33f),_0x32dd12=_0x6d091c&&_0x4c1a59(_0x6d091c);return'auto'===_0x3402f7&&'auto'===_0x32dd12?'center':'auto'===_0x3402f7?'right':'auto'===_0x32dd12?'left':void 0x0;}function m(_0x1f5fc4,_0x44bb7f){const _0x3f402b=_0x1f5fc4['ownerDocument']['createElement'](_0x44bb7f);for(const _0x4d2d45 of Array['from'](_0x1f5fc4['attributes']))_0x3f402b['setAttribute'](_0x4d2d45['name'],_0x4d2d45['value']);for(;_0x1f5fc4['firstChild'];)_0x3f402b['appendChild'](_0x1f5fc4['firstChild']);return _0x3f402b;}function d(_0x4f2ac0){if('TABLE'!==_0x4f2ac0['tagName'])return!0x1;if('presentation'!==_0x4f2ac0['getAttribute']('role'))return!0x1;const _0xe79911=p(_0x4f2ac0);return null!==_0xe79911&&_0xe79911['hasAttribute']('align');}function p(_0x4ed768){let _0x50d15e=_0x4ed768;0x1===_0x4ed768['children']['length']&&'TBODY'===_0x4ed768['children'][0x0]['tagName']&&(_0x50d15e=_0x4ed768['children'][0x0]);const _0x147142=_0x50d15e['children'];if(0x1!==_0x147142['length']||'TR'!==_0x147142[0x0]['tagName'])return null;const _0x9be356=_0x147142[0x0]['children'];return 0x1!==_0x9be356['length']||'TD'!==_0x9be356[0x0]['tagName']?null:_0x9be356[0x0];}function h(_0x212814){return function(_0x209dfe){return _0x209dfe['endsWith']('px')?_0x209dfe['slice'](0x0,-0x2):_0x209dfe;}(_0x4c1a59(_0x212814));}const w=(_0x5379c1,_0x4991a7,{runAfterDocumentTransformation:_0x4c51cf,runAfterChildrenTransformation:_0x130bc8})=>{if('FIGURE'!==_0x5379c1['tagName'])return;const _0x47c5c3=_0x4991a7['getAsString']('float');if(_0x47c5c3){if(P(_0x5379c1))_0x4c51cf(()=>{y(_0x5379c1,{'align':_0x47c5c3});});else{const {table:_0x317a02,cell:_0x4d668c}=g(_0x5379c1['ownerDocument']);_0x317a02['setAttribute']('align',_0x4c1a59(_0x47c5c3)),_0x317a02['setAttribute']('style',function(_0x262e02){return _0x262e02['getStylesEntries']()['map'](_0x12f4be=>_0x12f4be['join'](':'))['join'](';')+';';}(_0x4991a7)),_0x130bc8(()=>{for(const _0x443aea of Array['from'](_0x5379c1['childNodes']))_0x4d668c['appendChild'](_0x443aea);}),_0x4c51cf(()=>{_0x5379c1['replaceWith'](_0x317a02);});}}else{const _0x46f0b4=f(_0x4991a7),_0x292cd6=_0x4991a7['getAsString']('width');if(!_0x46f0b4&&!_0x292cd6)return;c(_0x5379c1,{'align':_0x46f0b4,'width':_0x292cd6}),_0x292cd6&&_0x4991a7['set']('width','100%'),_0x4991a7['remove']('margin-left'),_0x4991a7['remove']('margin-right'),_0x4991a7['remove']('min-width'),_0x4991a7['remove']('max-width'),_0x4c51cf(()=>{if(!y(_0x5379c1)){const _0x47d13b=m(_0x5379c1,'div');_0x5379c1['replaceWith'](_0x47d13b);}});}};function y(_0x346aab,_0x37cd11={}){const _0x2a2465=P(_0x346aab);if(!_0x2a2465)return null;for(const _0x16b25d of['id','class']){const _0xc5e447=_0x346aab['getAttribute'](_0x16b25d);_0xc5e447&&_0x2a2465['setAttribute'](_0x16b25d,_0xc5e447);}for(const _0x118538 of['display','float','width','height'])_0x2a2465['style']['removeProperty'](_0x118538);const _0xe22647=_0x346aab['getAttribute']('style');if(_0xe22647){const _0x3bdd9d=_0x2a2465['getAttribute']('style')||'';_0x2a2465['setAttribute']('style',_0xe22647+_0x3bdd9d);}return _0x37cd11['align']&&_0x2a2465['setAttribute']('align',_0x4c1a59(_0x37cd11['align'])),'fixed'!==_0x2a2465['style']['tableLayout']||_0x2a2465['style']['width']||(_0x2a2465['style']['width']='100%',_0x2a2465['setAttribute']('width','100%')),_0x346aab['replaceWith'](_0x2a2465),_0x2a2465;}function P(_0x465f3f){const _0x4910c8=Array['from'](_0x465f3f['children']);return 0x1===_0x4910c8['length']&&'TABLE'===_0x4910c8[0x0]['tagName']?_0x4910c8[0x0]:null;}var I=class extends _0x13e9d2{static get['requires'](){return[o];}static get['pluginName'](){return'ImageEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {config:_0x3ee00e,plugins:_0x326e4d}=this['editor'];_0x3ee00e['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x326e4d['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 _0x13e9d2{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 _0x13e9d2{static get['requires'](){return[o];}static get['pluginName'](){return'ExportInlineStylesEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x1cb192=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('ExportInlineStyles')||_0x1cb192['_logSuppressibleWarning']('email-configuration-missing-export-inline-styles-plugin');}},L=class extends _0x13e9d2{static get['requires'](){return[o];}static get['pluginName'](){return'ListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x1e5818=this['editor']['plugins']['get'](o),_0x6518cc=this['editor']['config']['get']('list');_0x6518cc&&_0x6518cc['properties']&&_0x6518cc['properties']['reversed']&&_0x1e5818['_logSuppressibleWarning']('email-configuration-unsupported-reversed-list'),_0x6518cc&&_0x6518cc['enableListItemMarkerFormatting']&&_0x1e5818['_logSuppressibleWarning']('email-configuration-unsupported-list-item-marker-formatting');}},C=class extends _0x13e9d2{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:_0x762db9}=this['editor'],_0x1dda87=_0x762db9['get'](o);_0x762db9['has']('Table')&&(_0x762db9['has']('PlainTableOutput')||_0x1dda87['_logSuppressibleWarning']('email-configuration-missing-plain-table-output-plugin'),_0x762db9['has']('TableLayout')||_0x1dda87['_logSuppressibleWarning']('email-configuration-missing-table-layout-plugin'));}['_checkTableConfig'](){const {config:_0x1f04cd,plugins:_0x466d9f}=this['editor'];_0x1f04cd['get']('table')&&_0x466d9f['has']('Table')&&(this['_checkTablePropertiesConfig']('tableCellProperties'),this['_checkTablePropertiesConfig']('tableProperties'));}['_checkTablePropertiesConfig'](_0x4e9c07){const _0x51de77=this['editor']['plugins']['get'](o);_0x51de77['_validateConfigColorValue']('table.'+_0x4e9c07+'.borderColors'),_0x51de77['_validateConfigColorValue']('table.'+_0x4e9c07+'.backgroundColors'),_0x51de77['_validateConfigColorValue']('table.'+_0x4e9c07+'.defaultProperties.borderColor'),_0x51de77['_validateConfigColorValue']('table.'+_0x4e9c07+'.defaultProperties'),_0x51de77['_validateConfigColorFormat']('table.'+_0x4e9c07+'.colorPicker.format');}},k=class extends _0x13e9d2{static get['requires'](){return[o];}static get['pluginName'](){return'EmptyBlockEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x11e98d=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('EmptyBlock')||_0x11e98d['_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 _0x13e9d2{static get['requires'](){return[o];}static get['pluginName'](){return'FontEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {plugins:_0x2d1662}=this['editor'];_0x2d1662['has']('FontColorEditing')&&this['_checkColorConfig']('fontColor'),_0x2d1662['has']('FontBackgroundColorEditing')&&this['_checkColorConfig']('fontBackgroundColor');}['_checkColorConfig'](_0xbb217c){const _0xf02100=this['editor']['plugins']['get'](o);this['editor']['config']['get'](_0xbb217c)&&(_0xf02100['_validateConfigColorValue'](_0xbb217c+'.colors'),_0xf02100['_validateConfigColorValue'](_0xbb217c+'.documentColors'),_0xf02100['_validateConfigColorFormat'](_0xbb217c+'.colorPicker.format'));}},x=class extends _0x13e9d2{static get['requires'](){return[o];}static get['pluginName'](){return'SourceEditingEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {plugins:_0x2e04e4}=this['editor'],_0x15a9d8=_0x2e04e4['get'](o);_0x2e04e4['has']('SourceEditing')||_0x2e04e4['has']('SourceEditingEnhanced')||_0x15a9d8['_logSuppressibleWarning']('email-configuration-missing-source-editing-plugin');}},v=class extends _0x13e9d2{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 _0x13e9d2{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:_0x36c7be}=this['editor'];if(!_0x36c7be['has']('DataFilter'))return;const _0x585a77=_0x36c7be['get']('DataFilter'),_0x5bea40=_0x36c7be['get'](o);for(const _0x4eb8f0 of GeneralHtmlIntegrationSupport['UNSUPPORTED_ELEMENTS'])_0x585a77['once']('register:'+_0x4eb8f0,(_0x240d9,_0x174313)=>{_0x5bea40['_logSuppressibleWarning']('email-unsupported-html-element',{'element':_0x174313['view']});});}},A=class extends _0x13e9d2{static get['requires'](){return[o];}static get['pluginName'](){return'MergeFieldsEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x51b78d=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('MergeFields')||_0x51b78d['_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 _0x13e9d2{static get['requires'](){return[o];}static get['pluginName'](){return'TemplateEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x1feea0=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('Template')||_0x1feea0['_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 _0x13e9d2{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 _0x13e9d2{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 _0x13e9d2{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 _0x13e9d2{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 _0x13e9d2{static get['requires'](){return[o];}static get['pluginName'](){return'LinkEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {config:_0xe2b6e1,plugins:_0x8a256e}=this['editor'],_0x27c27c=_0x8a256e['get'](o);_0xe2b6e1['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x27c27c['_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 _0x13e9d2{['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 _0x3ae33a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3d9d91;for(const _0x5b540f in _0x3ae33a){const _0x529d31=_0x5b540f,_0xa5ac45=_0x3ae33a[_0x529d31];if('emailConfigurationHelperLicenseKeyValid'==_0xa5ac45||'emailConfigurationHelperLicenseKeyInvalid'==_0xa5ac45||'emailConfigurationHelperLicenseKeyExpired'==_0xa5ac45||'emailConfigurationHelperLicenseKeyDomainLimit'==_0xa5ac45||'emailConfigurationHelperLicenseKeyNotAllowed'==_0xa5ac45||'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0xa5ac45||'emailConfigurationHelperLicenseKeyUsageLimit'==_0xa5ac45){delete _0x3ae33a[_0x529d31],_0x3d9d91=_0xa5ac45,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'emailConfigurationHelperLicenseKeyInvalid'==_0x3d9d91&&_0x3ae33a['_showLicenseError']('invalid'),'emailConfigurationHelperLicenseKeyExpired'==_0x3d9d91&&_0x3ae33a['_showLicenseError']('expired'),'emailConfigurationHelperLicenseKeyDomainLimit'==_0x3d9d91&&_0x3ae33a['_showLicenseError']('domainLimit'),'emailConfigurationHelperLicenseKeyNotAllowed'==_0x3d9d91&&_0x3ae33a['_showLicenseError']('featureNotAllowed','EmailConfigurationHelper'),'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x3d9d91&&_0x3ae33a['_showLicenseError']('evaluationLimit'),'emailConfigurationHelperLicenseKeyUsageLimit'==_0x3d9d91&&_0x3ae33a['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};const U=(_0x47c6d4,_0x505494)=>{if(!['TABLE','IMG']['includes'](_0x47c6d4['tagName']))return;const _0x14386a=_0x505494['getAsString']('float');if(_0x14386a){const _0x5f1299=_0x4c1a59(_0x14386a);'left'!==_0x5f1299&&'right'!==_0x5f1299||_0x47c6d4['setAttribute']('align',_0x5f1299);}},D=(_0x193c19,_0x23e054)=>{if('TABLE'!==_0x193c19['tagName']||_0x23e054['has']('float'))return;const _0x23582f=f(_0x23e054),_0x934d0=_0x23e054['getAsString']('width');_0x23582f&&(c(_0x193c19,{'align':_0x23582f}),_0x934d0?_0x193c19['setAttribute']('width',h(_0x934d0)):_0x23e054['remove']('width'),_0x23e054['remove']('margin-left'),_0x23e054['remove']('margin-right'));},F=(_0x464761,_0x794a1a)=>{if('IMG'!==_0x464761['tagName'])return;const _0x1b2e76=_0x794a1a['getAsString']('width');_0x1b2e76&&(_0x464761['setAttribute']('width',h(_0x1b2e76)),_0x464761['setAttribute']('height','auto'));},_=(_0x3662d6,_0x558786,{runAfterDocumentTransformation:_0x22a6aa})=>{if('FIGCAPTION'!==_0x3662d6['tagName'])return;const _0x391adc=_0x558786['getAsString']('display'),_0x48d587=_0x558786['getAsString']('caption-side');_0x558786['remove']('caption-side'),_0x391adc&&'table-caption'===_0x4c1a59(_0x391adc)&&_0x558786['remove']('display');const _0x5ed8c3=_0x48d587&&'top'===_0x4c1a59(_0x48d587);_0x22a6aa(()=>{const _0x454711=m(_0x3662d6,'div'),_0x5ab3c1=_0x3662d6['previousElementSibling'];_0x5ed8c3&&_0x5ab3c1&&'TABLE'===_0x5ab3c1['tagName']?(_0x5ab3c1['before'](_0x454711),_0x3662d6['remove']()):_0x3662d6['replaceWith'](_0x454711);});},M=(_0x28e731,_0xd537b5,{runAfterChildrenTransformation:_0x5ba55f})=>{'TD'===_0x28e731['tagName']&&_0x5ba55f(()=>{const _0x46835f=Array['from'](_0x28e731['children']);if(0x0===_0x46835f['length'])return;const _0x2d1075=_0x46835f['map'](R),_0x49658e=_0x2d1075[0x0];if(_0x49658e&&_0x2d1075['every'](_0x59a804=>_0x59a804===_0x49658e)){_0x28e731['setAttribute']('align',_0x49658e);for(const _0x34da03 of _0x46835f)if(d(_0x34da03)){const _0x9b3be9=p(_0x34da03);_0x34da03['replaceWith'](...Array['from'](_0x9b3be9['childNodes']));}else _0x34da03['style']['removeProperty']('text-align'),_0x34da03['style']['length']||_0x34da03['removeAttribute']('style');}});};function R(_0xf2deb9){return d(_0xf2deb9)?p(_0xf2deb9)['getAttribute']('align'):_0xf2deb9['style']['textAlign']||void 0x0;}const V=(_0x546f04,_0x1dd8ca,{runAfterChildrenTransformation:_0x223460})=>{'TABLE'===_0x546f04['tagName']&&_0x223460(()=>{const _0x1fe3f9=function(_0x392a10,_0x1affd5){for(const _0x1d9a0a of _0x392a10['children'])if(_0x1d9a0a['tagName']===_0x1affd5)return _0x1d9a0a;return null;}(_0x546f04,'COLGROUP');if(!_0x1fe3f9)return;const _0x3993c2=Array['from'](_0x1fe3f9['children'])['filter'](_0x3d6a5c=>'COL'===_0x3d6a5c['tagName']);if(_0x3993c2['some'](_0x4a16ce=>Q(_0x4a16ce,'span')))return;const _0x4edb28=_0x3993c2['map'](j);if(!_0x4edb28['some'](Boolean))return;const _0x4976fc=function(_0x5a4694){const _0x163b46=[];for(const _0x57ff8e of _0x5a4694['children'])if(['THEAD','TBODY','TFOOT']['includes'](_0x57ff8e['tagName'])){for(const _0x125c81 of _0x57ff8e['children'])'TR'===_0x125c81['tagName']&&_0x163b46['push'](_0x125c81);}return _0x163b46;}(_0x546f04)['map'](G);if(!_0x4976fc['some'](_0xc37738=>_0xc37738['length']!==_0x4edb28['length']||_0xc37738['some'](_0x1ee178=>function(_0x190f4f){return Q(_0x190f4f,'colspan')||Q(_0x190f4f,'rowspan');}(_0x1ee178)||function(_0xa6fff1){return Boolean(_0xa6fff1['style']['getPropertyValue']('width'))||Boolean(_0xa6fff1['getAttribute']('width'));}(_0x1ee178)))){for(const _0x27a242 of _0x4976fc)_0x27a242['forEach']((_0x23e593,_0xe462ee)=>{const _0x388e55=_0x4edb28[_0xe462ee];_0x388e55&&(_0x23e593['setAttribute']('width',h(_0x388e55)),_0x23e593['style']['setProperty']('width',_0x388e55));});}});};function G(_0x1915e5){return Array['from'](_0x1915e5['children'])['filter'](_0x90e021=>'TD'===_0x90e021['tagName']||'TH'===_0x90e021['tagName']);}function j(_0x1f2857){const _0x397ca2=_0x1f2857['style']['getPropertyValue']('width');if(_0x397ca2)return _0x397ca2;const _0x2da88a=_0x1f2857['getAttribute']('width');if(!_0x2da88a)return;const _0x5a805c=_0x4c1a59(_0x2da88a);return/^\d+(\.\d+)?$/['test'](_0x5a805c)?_0x5a805c+'px':_0x5a805c;}function Q(_0x2df169,_0x42d7e4){const _0x5afbe1=_0x2df169['getAttribute'](_0x42d7e4);return null!==_0x5afbe1&&'1'!==_0x5afbe1;}function J(_0x3f80a0={}){const _0x16c4a0=[];return _0x3f80a0['useFigureToTableFallback']&&_0x16c4a0['push'](w,_,M),_0x16c4a0['push'](U,D,F,V),_0x16c4a0;}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.0",
3
+ "version": "48.3.0-alpha.1",
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.0",
25
- "@ckeditor/ckeditor5-engine": "48.3.0-alpha.0",
26
- "@ckeditor/ckeditor5-export-inline-styles": "48.3.0-alpha.0",
27
- "@ckeditor/ckeditor5-font": "48.3.0-alpha.0",
28
- "@ckeditor/ckeditor5-html-support": "48.3.0-alpha.0",
29
- "@ckeditor/ckeditor5-list": "48.3.0-alpha.0",
30
- "@ckeditor/ckeditor5-table": "48.3.0-alpha.0",
31
- "@ckeditor/ckeditor5-ui": "48.3.0-alpha.0",
32
- "@ckeditor/ckeditor5-utils": "48.3.0-alpha.0"
24
+ "@ckeditor/ckeditor5-core": "48.3.0-alpha.1",
25
+ "@ckeditor/ckeditor5-engine": "48.3.0-alpha.1",
26
+ "@ckeditor/ckeditor5-export-inline-styles": "48.3.0-alpha.1",
27
+ "@ckeditor/ckeditor5-font": "48.3.0-alpha.1",
28
+ "@ckeditor/ckeditor5-html-support": "48.3.0-alpha.1",
29
+ "@ckeditor/ckeditor5-list": "48.3.0-alpha.1",
30
+ "@ckeditor/ckeditor5-table": "48.3.0-alpha.1",
31
+ "@ckeditor/ckeditor5-ui": "48.3.0-alpha.1",
32
+ "@ckeditor/ckeditor5-utils": "48.3.0-alpha.1"
33
33
  },
34
34
  "files": [
35
35
  "dist",