@ckeditor/ckeditor5-email 48.3.0-alpha.2 → 48.3.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +10 -10
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x38b065}from'@ckeditor/ckeditor5-core';import{uid as _0x35e9ac}from'@ckeditor/ckeditor5-utils';import{dropImportantStyleSuffix as _0x32cbb4}from'@ckeditor/ckeditor5-export-inline-styles';const r='https://ckeditor.com/docs/ckeditor5/latest';var o=class extends _0x38b065{static get['pluginName'](){return'EmailConfigurationLogger';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x20bc4d){super(_0x20bc4d),_0x20bc4d['config']['define']('email.logs',{'suppress':[],'suppressAll':!0x1});}['afterInit'](){!async function(_0x21f50e){const _0xccfccc='uizTdvyBIa4RKsnOYmEXGMfjehwJQqbPSCk7DtZgF58Lxl29Ho6cAUW1pV3Nr0',_0x432d73=0x78e10,_0x3a06d8=window['Date']['now'](),_0x4c4ac6=_0x21f50e['editor'],_0x47afe4=new window['Promise'](_0x421738=>{_0x4c4ac6['once']('ready',_0x421738);}),_0x1d68aa={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x1a4cb5=_0x4c4ac6['config']['get']('licenseKey');async function _0x1f7adf(){let _0x16399a,_0x11b76c=null,_0x1e64a5=null;try{return'GPL'==_0x1a4cb5?'NotAllowed':(_0x16399a=_0x266a11(),_0x16399a?(_0x16399a['usageEndpoint']&&(_0x1e64a5=_0xf3ae35(_0x16399a['usageEndpoint'],_0x16399a['jti'])),await _0x27e6f2()?_0x34fb3b()?_0x5e43b6()?'Expired':_0x535f70()?('evaluation'==_0x16399a['licenseType']&&(_0x11b76c=_0x5ba0bb('EvaluationLimit')),await _0x1e57ce()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x5e43b6(){const _0x1d1d99=['evaluation','trial']['includes'](_0x16399a['licenseType'])?_0x3a06d8/0x3e8:0xe10*_0x432d73;return _0x16399a['exp']<_0x1d1d99;}function _0x34fb3b(){const _0x16aa95=_0x16399a['features'];return!!_0x16aa95&&(!!_0x16aa95['includes']('*')||!!_0x16aa95['includes']('ECH'));}function _0x535f70(){const _0xdd000c=_0x16399a['licensedHosts'];if(!_0xdd000c||0x0==_0xdd000c['length'])return!0x0;const {hostname:_0x2f3e10}=new URL(window['location']['href']);if(_0xdd000c['includes'](_0x2f3e10))return!0x0;const _0x1a8c79=_0x2f3e10['split']('.');return _0xdd000c['filter'](_0x2a8789=>_0x2a8789['includes']('*'))['map'](_0x41beb9=>_0x41beb9['split']('.'))['filter'](_0x112244=>_0x112244['length']<=_0x1a8c79['length'])['map'](_0xeb5858=>Array(_0x1a8c79['length']-_0xeb5858['length'])['fill']('*'===_0xeb5858[0x0]?'*':'')['concat'](_0xeb5858))['some'](_0x33a205=>_0x1a8c79['every']((_0x553038,_0x595bf5)=>_0x33a205[_0x595bf5]===_0x553038||'*'===_0x33a205[_0x595bf5]));}function _0x1e57ce(){return _0x11b76c&&_0x1e64a5?new window['Promise']((_0x4d6fd3,_0x3cafa8)=>{_0x11b76c['then'](_0x4d6fd3,_0x3cafa8),_0x1e64a5['then'](_0x219ba4=>{'Valid'!=_0x219ba4&&_0x4d6fd3(_0x219ba4);},_0x3cafa8);}):_0x11b76c||_0x1e64a5||'Valid';}}function _0xf3ae35(_0x70f881,_0x2a60e5){return new window['Promise'](_0x1a9318=>{if(_0xf7f901())return _0x1a9318('Valid');_0x44f4de(),_0x4c4ac6['decorate']('_sendUsageRequest');let _0x5d33d1=!0x1;const _0x3af4e3=_0x35e9ac();function _0x454e4f(_0x287e1e){return!!_0x287e1e&&('object'==typeof _0x287e1e||'function'==typeof _0x287e1e)&&'function'==typeof _0x287e1e['then']&&'function'==typeof _0x287e1e['catch'];}function _0x238664(_0xed1360){_0x243e41(_0xed1360)['then'](_0x155dc9=>_0x155dc9&&'ok'==_0x155dc9['status']?_0x394b6d(_0xca4fec(_0x3af4e3+_0x2a60e5))!=_0x155dc9['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x33887d=>(_0x37a7a8(),_0x33887d),()=>{const _0x18b875=_0x79daca();return null==_0x18b875?(_0x37a7a8(),'Valid'):_0x3a06d8-_0x18b875>0x240c8400?'UsageLimit':'Valid';})['then'](_0x1a9318)['catch'](()=>{_0x1a9318('UsageLimit');});const _0x3e1367=0x36ee80;function _0x37a7a8(){const _0x53e745='llct-'+_0x394b6d(_0xca4fec(_0x70f881)),_0x276449=_0x380359(_0x394b6d(window['Math']['ceil'](_0x3a06d8/_0x3e1367)));window['localStorage']['setItem'](_0x53e745,_0x276449);}function _0x79daca(){const _0x4c8e81='llct-'+_0x394b6d(_0xca4fec(_0x70f881)),_0x5b41ec=window['localStorage']['getItem'](_0x4c8e81);return _0x5b41ec?window['parseInt'](_0x380359(_0x5b41ec),0x10)*_0x3e1367:null;}function _0x243e41(_0x23a085){return new window['Promise']((_0x2bc071,_0x1baf51)=>{_0x23a085['then'](_0x2bc071,_0x1baf51),window['setTimeout'](_0x1baf51,0x1d4c0);});}}_0x4c4ac6['on']('_sendUsageRequest',(_0xde564c,_0x2d99c2)=>{if(_0x2d99c2[0x0]!=_0x70f881)return _0x1a9318('UsageLimit');_0x2d99c2[0x1]={..._0x2d99c2[0x1],'requestId':_0x3af4e3};},{'priority':'high'}),_0x4c4ac6['on']('_sendUsageRequest',_0x45f434=>{_0x454e4f(_0x45f434['return'])&&(_0x5d33d1=!0x0,_0x238664(_0x45f434['return']));},{'priority':'low'}),_0x47afe4['then'](()=>{_0x5d33d1||_0x1a9318('UsageLimit');});});function _0xf7f901(){return'auto'==_0x4c4ac6['editing']['view']['_overlayModeHint'];}function _0x44f4de(){_0x4c4ac6['editing']['view']['_overlayModeHint']='auto';}}function _0x5ba0bb(_0xb6a24f){const _0x5d34c1=[new window['Promise'](_0x118348=>setTimeout(_0x118348,0x93ecc)),_0x47afe4['then'](()=>new window['Promise'](_0x28ab67=>{let _0xe5866c=0x0;_0x4c4ac6['model']['on']('applyOperation',(_0x261aa0,_0x7e1ff0)=>{_0x7e1ff0[0x0]['isDocumentOperation']&&_0xe5866c++,0x5e8==_0xe5866c&&(_0x28ab67(),_0x261aa0['off']());});}))];return window['Promise']['race'](_0x5d34c1)['then'](()=>_0xb6a24f);}async function _0xc5dd2d(){await _0x47afe4,_0x4c4ac6['model']['change']=_0x245a87,_0x4c4ac6['model']['enqueueChange']=_0x245a87,_0x4c4ac6['enableReadOnlyMode']('model');}function _0x2d22de(_0x1f1a78){const _0x139ce5=_0x2acc8e();_0x4c4ac6[_0x139ce5]='emailConfigurationHelperLicenseKey'+_0x1f1a78,'Valid'!=_0x1f1a78&&_0xc5dd2d();}function _0x2acc8e(){const _0x5f182a=window['String'](window['performance']['now']())['replace']('.','');let _0x31f992='u';for(let _0x487cfb=0x0;_0x487cfb<_0x5f182a['length'];_0x487cfb+=0x2){let _0x4bca96=window['parseInt'](_0x5f182a['substring'](_0x487cfb,_0x487cfb+0x2));_0x4bca96>=0x3e&&(_0x4bca96-=0x3e),_0x31f992+=_0xccfccc[_0x4bca96];}return _0x31f992;}function _0x266a11(){const _0xbaaf9e=_0x1a4cb5['split']('.');if(0x3!=_0xbaaf9e['length'])return null;return _0xf3c906(_0xbaaf9e[0x1]);function _0xf3c906(_0x544423){const _0x21e048=_0x3c5df8(_0x544423);return _0x21e048&&_0x4434b1()?_0x21e048:null;function _0x4434b1(){const _0x1f6196=_0x21e048['jti'],_0x4eeb25=window['parseInt'](_0x1f6196['substring'](_0x1f6196['length']-0x8),0x10),_0x2ac0c8={..._0x21e048,'jti':_0x1f6196['substring'](0x0,_0x1f6196['length']-0x8)};return delete _0x2ac0c8['vc'],_0xca4fec(_0x2ac0c8)==_0x4eeb25;}}}async function _0x27e6f2(){let _0x577af4=!0x0;try{const [_0x128356,_0x1e5986,_0x470ce4]=_0x1a4cb5['split']('.');return _0x36c2e2(_0x128356),await _0x26640c(_0x128356,_0x1e5986,_0x470ce4),_0x577af4;}catch{return!0x1;}function _0x36c2e2(_0x5d4455){const _0x1656b0=_0x3c5df8(_0x5d4455);_0x1656b0&&'ES256'==_0x1656b0['alg']||(_0x577af4=!0x1);}async function _0x26640c(_0x3c56d4,_0x492f53,_0x591fc8){const _0x382152=window['Uint8Array']['from'](_0x371210(_0x591fc8),_0x500a59=>_0x500a59['charCodeAt'](0x0)),_0x26a87e=new window['TextEncoder']()['encode'](_0x3c56d4+'.'+_0x492f53),_0x5d30b5=window['crypto']['subtle'];if(!_0x5d30b5)return;const _0x5d44a9=await _0x5d30b5['importKey']('jwk',_0x1d68aa,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5d30b5['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x5d44a9,_0x382152,_0x26a87e)||(_0x577af4=!0x1);}}function _0x3c5df8(_0x1d313a){return _0x1d313a['startsWith']('ey')?JSON['parse'](_0x371210(_0x1d313a)):null;}function _0x371210(_0xe58059){return window['atob'](_0xe58059['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0xca4fec(_0x3b9d91){let _0x344e40=0x1505;function _0x5e654d(_0x137ed1){for(let _0x3cb6f4=0x0;_0x3cb6f4<_0x137ed1['length'];_0x3cb6f4++){const _0x904347=_0x137ed1['charCodeAt'](_0x3cb6f4);_0x344e40=(_0x344e40<<0x5)+_0x344e40+_0x904347,_0x344e40&=_0x344e40;}}function _0x58d6c4(_0x182ec9){Array['isArray'](_0x182ec9)?_0x182ec9['forEach'](_0x58d6c4):_0x182ec9&&'object'==typeof _0x182ec9?Object['entries'](_0x182ec9)['sort']()['forEach'](([_0x366442,_0x5e1546])=>{_0x5e654d(_0x366442),_0x58d6c4(_0x5e1546);}):_0x5e654d(window['String'](_0x182ec9));}return _0x58d6c4(_0x3b9d91),_0x344e40>>>0x0;}function _0x394b6d(_0x2ff2b9){return _0x2ff2b9['toString'](0x10)['padStart'](0x8,'0');}function _0x380359(_0xdfacec){return _0xdfacec['split']('')['reverse']()['join']('');}function _0x245a87(){}_0x2d22de(await _0x1f7adf());}(this);}['_logSuppressibleWarning'](_0x2f36f3,_0xdb039c){if(this['_isSuppressedLog'](_0x2f36f3,_0xdb039c))return;const _0x445058=r+'/support/error-codes.html#error-'+_0x2f36f3;console['warn']('%cEmailConfigurationHelper%c\x20'+_0x2f36f3,'background:\x20#E65100;\x20color:\x20white;\x20padding:\x202px\x204px;','',..._0xdb039c?[_0xdb039c]:[],'\x0aRead\x20more:\x20'+_0x445058);}['_logSuppressibleInfo'](_0x442a89,_0x5c4d14,_0x2e71d8){if(this['_isSuppressedLog'](_0x442a89))return;let _0x56a17c=_0x5c4d14;_0x2e71d8&&(_0x56a17c+='\x0aRead\x20more:\x20'+(r+'/'+_0x2e71d8)),console['info']('%cEmailConfigurationHelper%c\x20'+_0x442a89,'background:\x20#4169E1;\x20color:\x20white;\x20padding:\x202px\x204px;','',_0x56a17c);}['_checkUnsupportedPlugin'](_0x1889df,_0x421925){this['editor']['plugins']['has'](_0x1889df)&&this['_logSuppressibleWarning']('email-configuration-unsupported-plugin',{'pluginName':_0x1889df,..._0x421925});}['_validateConfigColorValue'](_0xdd4275){const _0x48cbf2=this['editor']['config']['get'](_0xdd4275);if(!_0x48cbf2)return;const _0x249e01=Array['isArray'](_0x48cbf2),_0xf69d1a=_0x249e01?_0x48cbf2:[_0x48cbf2];for(const [_0x3c1b0c,_0x16e155]of _0xf69d1a['entries']()){const _0x4412fa='string'==typeof _0x16e155?_0x16e155:_0x16e155['color'];s(_0x4412fa)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-value',{'configPath':_0x249e01?_0xdd4275+'['+_0x3c1b0c+']':_0xdd4275,'color':_0x4412fa});}}['_validateConfigColorFormat'](_0x42e0f1){const _0x44ce60=this['editor']['config']['get'](_0x42e0f1);_0x44ce60&&l(_0x44ce60)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-format',{'configPath':_0x42e0f1,'format':_0x44ce60});}['_isSuppressedLog'](_0x4e2b1e,_0x281f6b){const _0x3b2ee4=this['editor']['config']['get']('email.logs');return!!_0x3b2ee4['suppressAll']||(!('function'!=typeof _0x3b2ee4['suppress']||!_0x3b2ee4['suppress'](_0x4e2b1e,_0x281f6b))||!(!Array['isArray'](_0x3b2ee4['suppress'])||!_0x3b2ee4['suppress']['includes'](_0x4e2b1e)));}};const a=['hsl','hsla','hwb','lab','lch','oklab','oklch','color-mix','rgba'];function s(_0x17fe8b){return!!_0x17fe8b&&a['some'](_0x585558=>_0x17fe8b['includes'](_0x585558+'('));}function l(_0x515d3b){return!!_0x515d3b&&a['includes'](_0x515d3b);}var u=class extends _0x38b065{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(_0x5a383e,_0x46c1f4){const _0x3b91b8=_0x5a383e['ownerDocument'],{table:_0x4d9e28,cell:_0x1b662c}=g(_0x3b91b8,'100%');_0x46c1f4['align']&&_0x1b662c['setAttribute']('align',_0x32cbb4(_0x46c1f4['align']));let _0x34afe1=_0x1b662c;if(_0x46c1f4['width']){const {table:_0x4628a0,cell:_0x5e4bb9}=g(_0x3b91b8,_0x32cbb4(_0x46c1f4['width']));_0x1b662c['appendChild'](_0x4628a0),_0x34afe1=_0x5e4bb9;}return _0x5a383e['replaceWith'](_0x4d9e28),_0x5a383e['removeAttribute']('align'),_0x5a383e['removeAttribute']('width'),_0x34afe1['appendChild'](_0x5a383e),_0x34afe1;}function g(_0x2a6e47,_0x357018){const _0x3a7960=_0x2a6e47['createElement']('table');_0x357018&&(_0x3a7960['style']['width']=_0x357018,_0x3a7960['setAttribute']('width',h(_0x357018))),_0x3a7960['setAttribute']('cellpadding','0'),_0x3a7960['setAttribute']('cellspacing','0'),_0x3a7960['setAttribute']('border','0'),_0x3a7960['setAttribute']('role','presentation');const _0x545ee2=_0x2a6e47['createElement']('tbody'),_0x1d5056=_0x2a6e47['createElement']('tr'),_0x1b4570=_0x2a6e47['createElement']('td');return _0x3a7960['appendChild'](_0x545ee2),_0x545ee2['appendChild'](_0x1d5056),_0x1d5056['appendChild'](_0x1b4570),{'table':_0x3a7960,'cell':_0x1b4570};}function f(_0x471d6b){const _0xd1f960=_0x471d6b['getAsString']('margin-left'),_0x35b054=_0x471d6b['getAsString']('margin-right'),_0x4a1c61=_0xd1f960&&_0x32cbb4(_0xd1f960),_0x59b016=_0x35b054&&_0x32cbb4(_0x35b054);return'auto'===_0x4a1c61&&'auto'===_0x59b016?'center':'auto'===_0x4a1c61?'right':'auto'===_0x59b016?'left':void 0x0;}function m(_0x5a9d2e,_0x104d55){const _0x39b0c5=_0x5a9d2e['ownerDocument']['createElement'](_0x104d55);for(const _0xbce324 of Array['from'](_0x5a9d2e['attributes']))_0x39b0c5['setAttribute'](_0xbce324['name'],_0xbce324['value']);for(;_0x5a9d2e['firstChild'];)_0x39b0c5['appendChild'](_0x5a9d2e['firstChild']);return _0x39b0c5;}function d(_0x3076fe){if('TABLE'!==_0x3076fe['tagName'])return!0x1;if('presentation'!==_0x3076fe['getAttribute']('role'))return!0x1;const _0x1e1125=p(_0x3076fe);return null!==_0x1e1125&&_0x1e1125['hasAttribute']('align');}function p(_0x26e871){let _0x4ffe37=_0x26e871;0x1===_0x26e871['children']['length']&&'TBODY'===_0x26e871['children'][0x0]['tagName']&&(_0x4ffe37=_0x26e871['children'][0x0]);const _0x2d3d19=_0x4ffe37['children'];if(0x1!==_0x2d3d19['length']||'TR'!==_0x2d3d19[0x0]['tagName'])return null;const _0x4fac8f=_0x2d3d19[0x0]['children'];return 0x1!==_0x4fac8f['length']||'TD'!==_0x4fac8f[0x0]['tagName']?null:_0x4fac8f[0x0];}function h(_0x554124){return function(_0x370fd9){return _0x370fd9['endsWith']('px')?_0x370fd9['slice'](0x0,-0x2):_0x370fd9;}(_0x32cbb4(_0x554124));}const w=(_0x22c033,_0x1b2a93,{runAfterDocumentTransformation:_0x1b2d31,runAfterChildrenTransformation:_0x2f5809})=>{if('FIGURE'!==_0x22c033['tagName'])return;const _0x4dcfae=_0x1b2a93['getAsString']('float');if(_0x4dcfae){if(P(_0x22c033))_0x1b2d31(()=>{y(_0x22c033,{'align':_0x4dcfae});});else{const {table:_0x540a92,cell:_0x4cca11}=g(_0x22c033['ownerDocument']);_0x540a92['setAttribute']('align',_0x32cbb4(_0x4dcfae)),_0x540a92['setAttribute']('style',function(_0x1f2e01){return _0x1f2e01['getStylesEntries']()['map'](_0x3f9257=>_0x3f9257['join'](':'))['join'](';')+';';}(_0x1b2a93)),_0x2f5809(()=>{for(const _0x38c25c of Array['from'](_0x22c033['childNodes']))_0x4cca11['appendChild'](_0x38c25c);}),_0x1b2d31(()=>{_0x22c033['replaceWith'](_0x540a92);});}}else{const _0x4e6d90=f(_0x1b2a93),_0x4aa6e3=_0x1b2a93['getAsString']('width');if(!_0x4e6d90&&!_0x4aa6e3)return;c(_0x22c033,{'align':_0x4e6d90,'width':_0x4aa6e3}),_0x4aa6e3&&_0x1b2a93['set']('width','100%'),_0x1b2a93['remove']('margin-left'),_0x1b2a93['remove']('margin-right'),_0x1b2a93['remove']('min-width'),_0x1b2a93['remove']('max-width'),_0x1b2d31(()=>{if(!y(_0x22c033)){const _0x49871d=m(_0x22c033,'div');_0x22c033['replaceWith'](_0x49871d);}});}};function y(_0x1a9854,_0x32712b={}){const _0x3ea927=P(_0x1a9854);if(!_0x3ea927)return null;for(const _0x5f27f9 of['id','class']){const _0x5f0851=_0x1a9854['getAttribute'](_0x5f27f9);_0x5f0851&&_0x3ea927['setAttribute'](_0x5f27f9,_0x5f0851);}for(const _0x2912ea of['display','float','width','height'])_0x3ea927['style']['removeProperty'](_0x2912ea);const _0x2807f6=_0x1a9854['getAttribute']('style');if(_0x2807f6){const _0x7e4a70=_0x3ea927['getAttribute']('style')||'';_0x3ea927['setAttribute']('style',_0x2807f6+_0x7e4a70);}return _0x32712b['align']&&_0x3ea927['setAttribute']('align',_0x32cbb4(_0x32712b['align'])),'fixed'!==_0x3ea927['style']['tableLayout']||_0x3ea927['style']['width']||(_0x3ea927['style']['width']='100%',_0x3ea927['setAttribute']('width','100%')),_0x1a9854['replaceWith'](_0x3ea927),_0x3ea927;}function P(_0x5634ef){const _0x58e9c6=Array['from'](_0x5634ef['children']);return 0x1===_0x58e9c6['length']&&'TABLE'===_0x58e9c6[0x0]['tagName']?_0x58e9c6[0x0]:null;}var I=class extends _0x38b065{static get['requires'](){return[o];}static get['pluginName'](){return'ImageEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {config:_0x1d5415,plugins:_0x27ab57}=this['editor'];_0x1d5415['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x27ab57['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 _0x38b065{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 _0x38b065{static get['requires'](){return[o];}static get['pluginName'](){return'ExportInlineStylesEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x531988=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('ExportInlineStyles')||_0x531988['_logSuppressibleWarning']('email-configuration-missing-export-inline-styles-plugin');}},L=class extends _0x38b065{static get['requires'](){return[o];}static get['pluginName'](){return'ListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x2c2abb=this['editor']['plugins']['get'](o),_0x4f275a=this['editor']['config']['get']('list');_0x4f275a&&_0x4f275a['properties']&&_0x4f275a['properties']['reversed']&&_0x2c2abb['_logSuppressibleWarning']('email-configuration-unsupported-reversed-list'),_0x4f275a&&_0x4f275a['enableListItemMarkerFormatting']&&_0x2c2abb['_logSuppressibleWarning']('email-configuration-unsupported-list-item-marker-formatting');}},C=class extends _0x38b065{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:_0x343c96}=this['editor'],_0x251345=_0x343c96['get'](o);_0x343c96['has']('Table')&&(_0x343c96['has']('PlainTableOutput')||_0x251345['_logSuppressibleWarning']('email-configuration-missing-plain-table-output-plugin'),_0x343c96['has']('TableLayout')||_0x251345['_logSuppressibleWarning']('email-configuration-missing-table-layout-plugin'));}['_checkTableConfig'](){const {config:_0x34a65a,plugins:_0x43e20f}=this['editor'];_0x34a65a['get']('table')&&_0x43e20f['has']('Table')&&(this['_checkTablePropertiesConfig']('tableCellProperties'),this['_checkTablePropertiesConfig']('tableProperties'));}['_checkTablePropertiesConfig'](_0x1bf86d){const _0x561f34=this['editor']['plugins']['get'](o);_0x561f34['_validateConfigColorValue']('table.'+_0x1bf86d+'.borderColors'),_0x561f34['_validateConfigColorValue']('table.'+_0x1bf86d+'.backgroundColors'),_0x561f34['_validateConfigColorValue']('table.'+_0x1bf86d+'.defaultProperties.borderColor'),_0x561f34['_validateConfigColorValue']('table.'+_0x1bf86d+'.defaultProperties'),_0x561f34['_validateConfigColorFormat']('table.'+_0x1bf86d+'.colorPicker.format');}},k=class extends _0x38b065{static get['requires'](){return[o];}static get['pluginName'](){return'EmptyBlockEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x575816=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('EmptyBlock')||_0x575816['_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 _0x38b065{static get['requires'](){return[o];}static get['pluginName'](){return'FontEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {plugins:_0xefaec0}=this['editor'];_0xefaec0['has']('FontColorEditing')&&this['_checkColorConfig']('fontColor'),_0xefaec0['has']('FontBackgroundColorEditing')&&this['_checkColorConfig']('fontBackgroundColor');}['_checkColorConfig'](_0x2454bb){const _0x18f0db=this['editor']['plugins']['get'](o);this['editor']['config']['get'](_0x2454bb)&&(_0x18f0db['_validateConfigColorValue'](_0x2454bb+'.colors'),_0x18f0db['_validateConfigColorValue'](_0x2454bb+'.documentColors'),_0x18f0db['_validateConfigColorFormat'](_0x2454bb+'.colorPicker.format'));}},x=class extends _0x38b065{static get['requires'](){return[o];}static get['pluginName'](){return'SourceEditingEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {plugins:_0x117098}=this['editor'],_0x22eda9=_0x117098['get'](o);_0x117098['has']('SourceEditing')||_0x117098['has']('SourceEditingEnhanced')||_0x22eda9['_logSuppressibleWarning']('email-configuration-missing-source-editing-plugin');}},v=class extends _0x38b065{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 _0x38b065{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:_0x2c325a}=this['editor'];if(!_0x2c325a['has']('DataFilter'))return;const _0x4b2f21=_0x2c325a['get']('DataFilter'),_0x4f976d=_0x2c325a['get'](o);for(const _0x5b1b44 of GeneralHtmlIntegrationSupport['UNSUPPORTED_ELEMENTS'])_0x4b2f21['once']('register:'+_0x5b1b44,(_0x22019d,_0x11b492)=>{_0x4f976d['_logSuppressibleWarning']('email-unsupported-html-element',{'element':_0x11b492['view']});});}},A=class extends _0x38b065{static get['requires'](){return[o];}static get['pluginName'](){return'MergeFieldsEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x311330=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('MergeFields')||_0x311330['_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 _0x38b065{static get['requires'](){return[o];}static get['pluginName'](){return'TemplateEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x4cf50f=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('Template')||_0x4cf50f['_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 _0x38b065{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 _0x38b065{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 _0x38b065{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 _0x38b065{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 _0x38b065{static get['requires'](){return[o];}static get['pluginName'](){return'LinkEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {config:_0x370fb0,plugins:_0x2c38ba}=this['editor'],_0x259bad=_0x2c38ba['get'](o);_0x370fb0['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x259bad['_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 _0x38b065{['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 _0xc48482=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x258f9d;for(const _0x34cb6f in _0xc48482){const _0x45c84d=_0x34cb6f,_0x53e61c=_0xc48482[_0x45c84d];if('emailConfigurationHelperLicenseKeyValid'==_0x53e61c||'emailConfigurationHelperLicenseKeyInvalid'==_0x53e61c||'emailConfigurationHelperLicenseKeyExpired'==_0x53e61c||'emailConfigurationHelperLicenseKeyDomainLimit'==_0x53e61c||'emailConfigurationHelperLicenseKeyNotAllowed'==_0x53e61c||'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x53e61c||'emailConfigurationHelperLicenseKeyUsageLimit'==_0x53e61c){delete _0xc48482[_0x45c84d],_0x258f9d=_0x53e61c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'emailConfigurationHelperLicenseKeyInvalid'==_0x258f9d&&_0xc48482['_showLicenseError']('invalid'),'emailConfigurationHelperLicenseKeyExpired'==_0x258f9d&&_0xc48482['_showLicenseError']('expired'),'emailConfigurationHelperLicenseKeyDomainLimit'==_0x258f9d&&_0xc48482['_showLicenseError']('domainLimit'),'emailConfigurationHelperLicenseKeyNotAllowed'==_0x258f9d&&_0xc48482['_showLicenseError']('featureNotAllowed','EmailConfigurationHelper'),'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x258f9d&&_0xc48482['_showLicenseError']('evaluationLimit'),'emailConfigurationHelperLicenseKeyUsageLimit'==_0x258f9d&&_0xc48482['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};const U=(_0x2072cb,_0x73b17)=>{if(!['TABLE','IMG']['includes'](_0x2072cb['tagName']))return;const _0x3ba595=_0x73b17['getAsString']('float');if(_0x3ba595){const _0x1a3ea5=_0x32cbb4(_0x3ba595);'left'!==_0x1a3ea5&&'right'!==_0x1a3ea5||_0x2072cb['setAttribute']('align',_0x1a3ea5);}},D=(_0x5a072d,_0x4637fa)=>{if('TABLE'!==_0x5a072d['tagName']||_0x4637fa['has']('float'))return;const _0x28c4ea=f(_0x4637fa),_0x23c37d=_0x4637fa['getAsString']('width');_0x28c4ea&&(c(_0x5a072d,{'align':_0x28c4ea}),_0x23c37d?_0x5a072d['setAttribute']('width',h(_0x23c37d)):_0x4637fa['remove']('width'),_0x4637fa['remove']('margin-left'),_0x4637fa['remove']('margin-right'));},F=(_0xa3087,_0x13fd19)=>{if('IMG'!==_0xa3087['tagName'])return;const _0x3259b4=_0x13fd19['getAsString']('width');_0x3259b4&&(_0xa3087['setAttribute']('width',h(_0x3259b4)),_0xa3087['setAttribute']('height','auto'));},_=(_0x56bdb0,_0x3f67bc,{runAfterDocumentTransformation:_0x4bdc37})=>{if('FIGCAPTION'!==_0x56bdb0['tagName'])return;const _0x1775e8=_0x3f67bc['getAsString']('display'),_0x524334=_0x3f67bc['getAsString']('caption-side');_0x3f67bc['remove']('caption-side'),_0x1775e8&&'table-caption'===_0x32cbb4(_0x1775e8)&&_0x3f67bc['remove']('display');const _0x9cbc67=_0x524334&&'top'===_0x32cbb4(_0x524334);_0x4bdc37(()=>{const _0x304ea9=m(_0x56bdb0,'div'),_0x303a44=_0x56bdb0['previousElementSibling'];_0x9cbc67&&_0x303a44&&'TABLE'===_0x303a44['tagName']?(_0x303a44['before'](_0x304ea9),_0x56bdb0['remove']()):_0x56bdb0['replaceWith'](_0x304ea9);});},M=(_0x2de367,_0x34e4f8,{runAfterChildrenTransformation:_0x2481e4})=>{'TD'===_0x2de367['tagName']&&_0x2481e4(()=>{const _0x1688fa=Array['from'](_0x2de367['children']);if(0x0===_0x1688fa['length'])return;const _0x38f1aa=_0x1688fa['map'](R),_0x5a5c9e=_0x38f1aa[0x0];if(_0x5a5c9e&&_0x38f1aa['every'](_0x6aac72=>_0x6aac72===_0x5a5c9e)){_0x2de367['setAttribute']('align',_0x5a5c9e);for(const _0xc29d5b of _0x1688fa)if(d(_0xc29d5b)){const _0x8d321a=p(_0xc29d5b);_0xc29d5b['replaceWith'](...Array['from'](_0x8d321a['childNodes']));}else _0xc29d5b['style']['removeProperty']('text-align'),_0xc29d5b['style']['length']||_0xc29d5b['removeAttribute']('style');}});};function R(_0x3f99d1){return d(_0x3f99d1)?p(_0x3f99d1)['getAttribute']('align'):_0x3f99d1['style']['textAlign']||void 0x0;}const V=(_0x33474b,_0x9c5954,{runAfterChildrenTransformation:_0x49cb90})=>{'TABLE'===_0x33474b['tagName']&&_0x49cb90(()=>{const _0x2bd973=function(_0x1ebc13,_0x4e40c8){for(const _0xba99c of _0x1ebc13['children'])if(_0xba99c['tagName']===_0x4e40c8)return _0xba99c;return null;}(_0x33474b,'COLGROUP');if(!_0x2bd973)return;const _0x3ea4fa=Array['from'](_0x2bd973['children'])['filter'](_0x529243=>'COL'===_0x529243['tagName']);if(_0x3ea4fa['some'](_0x16629a=>Q(_0x16629a,'span')))return;const _0x509250=_0x3ea4fa['map'](j);if(!_0x509250['some'](Boolean))return;const _0x2a8a74=function(_0x1e8b21){const _0x26e894=[];for(const _0x2eaf04 of _0x1e8b21['children'])if(['THEAD','TBODY','TFOOT']['includes'](_0x2eaf04['tagName'])){for(const _0x27bada of _0x2eaf04['children'])'TR'===_0x27bada['tagName']&&_0x26e894['push'](_0x27bada);}return _0x26e894;}(_0x33474b)['map'](G);if(!_0x2a8a74['some'](_0x1b96ef=>_0x1b96ef['length']!==_0x509250['length']||_0x1b96ef['some'](_0x4c1350=>function(_0x3c1368){return Q(_0x3c1368,'colspan')||Q(_0x3c1368,'rowspan');}(_0x4c1350)||function(_0x22fbc6){return Boolean(_0x22fbc6['style']['getPropertyValue']('width'))||Boolean(_0x22fbc6['getAttribute']('width'));}(_0x4c1350)))){for(const _0xd5bf7d of _0x2a8a74)_0xd5bf7d['forEach']((_0x4ad064,_0x48fe35)=>{const _0xc1d631=_0x509250[_0x48fe35];_0xc1d631&&(_0x4ad064['setAttribute']('width',h(_0xc1d631)),_0x4ad064['style']['setProperty']('width',_0xc1d631));});}});};function G(_0x306fc1){return Array['from'](_0x306fc1['children'])['filter'](_0x9de185=>'TD'===_0x9de185['tagName']||'TH'===_0x9de185['tagName']);}function j(_0x136e53){const _0x1dc0cf=_0x136e53['style']['getPropertyValue']('width');if(_0x1dc0cf)return _0x1dc0cf;const _0x2b9d25=_0x136e53['getAttribute']('width');if(!_0x2b9d25)return;const _0x56786d=_0x32cbb4(_0x2b9d25);return/^\d+(\.\d+)?$/['test'](_0x56786d)?_0x56786d+'px':_0x56786d;}function Q(_0x198109,_0x4c2f17){const _0x402280=_0x198109['getAttribute'](_0x4c2f17);return null!==_0x402280&&'1'!==_0x402280;}function J(_0x1686c1={}){const _0x25bac0=[];return _0x1686c1['useFigureToTableFallback']&&_0x25bac0['push'](w,_,M),_0x25bac0['push'](U,D,F,V),_0x25bac0;}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 _0x28063c}from'@ckeditor/ckeditor5-core';import{uid as _0x4e10c8}from'@ckeditor/ckeditor5-utils';import{dropImportantStyleSuffix as _0x1420ef}from'@ckeditor/ckeditor5-export-inline-styles';const r='https://ckeditor.com/docs/ckeditor5/latest';var o=class extends _0x28063c{static get['pluginName'](){return'EmailConfigurationLogger';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x431f59){super(_0x431f59),_0x431f59['config']['define']('email.logs',{'suppress':[],'suppressAll':!0x1});}['afterInit'](){!async function(_0x36496a){const _0x2f75b6='uizTdvyBIa4RKsnOYmEXGMfjehwJQqbPSCk7DtZgF58Lxl29Ho6cAUW1pV3Nr0',_0x336f30=0x78e10,_0x32dcbb=window['Date']['now'](),_0x4c681b=_0x36496a['editor'],_0x501847=new window['Promise'](_0x43dd92=>{_0x4c681b['once']('ready',_0x43dd92);}),_0x171935={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x8aa621=_0x4c681b['config']['get']('licenseKey');async function _0x2b7f10(){let _0x5a7276,_0x5d659d=null,_0x27a9cb=null;try{return'GPL'==_0x8aa621?'NotAllowed':(_0x5a7276=_0x1499d9(),_0x5a7276?(_0x5a7276['usageEndpoint']&&(_0x27a9cb=_0x2ee993(_0x5a7276['usageEndpoint'],_0x5a7276['jti'])),await _0x2ee70d()?_0x5919c0()?_0x212b2e()?'Expired':_0x3e0a7c()?('evaluation'==_0x5a7276['licenseType']&&(_0x5d659d=_0x193907('EvaluationLimit')),await _0x508384()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x212b2e(){const _0x44bb87=['evaluation','trial']['includes'](_0x5a7276['licenseType'])?_0x32dcbb/0x3e8:0xe10*_0x336f30;return _0x5a7276['exp']<_0x44bb87;}function _0x5919c0(){const _0x318bf1=_0x5a7276['features'];return!!_0x318bf1&&(!!_0x318bf1['includes']('*')||!!_0x318bf1['includes']('ECH'));}function _0x3e0a7c(){const _0x2cc987=_0x5a7276['licensedHosts'];if(!_0x2cc987||0x0==_0x2cc987['length'])return!0x0;const {hostname:_0x150aad}=new URL(window['location']['href']);if(_0x2cc987['includes'](_0x150aad))return!0x0;const _0x128d30=_0x150aad['split']('.');return _0x2cc987['filter'](_0xd6fdd0=>_0xd6fdd0['includes']('*'))['map'](_0x472581=>_0x472581['split']('.'))['filter'](_0x151165=>_0x151165['length']<=_0x128d30['length'])['map'](_0x447923=>Array(_0x128d30['length']-_0x447923['length'])['fill']('*'===_0x447923[0x0]?'*':'')['concat'](_0x447923))['some'](_0x55aa06=>_0x128d30['every']((_0x155cc9,_0x3f52c6)=>_0x55aa06[_0x3f52c6]===_0x155cc9||'*'===_0x55aa06[_0x3f52c6]));}function _0x508384(){return _0x5d659d&&_0x27a9cb?new window['Promise']((_0x163912,_0x3a3afd)=>{_0x5d659d['then'](_0x163912,_0x3a3afd),_0x27a9cb['then'](_0x1702d4=>{'Valid'!=_0x1702d4&&_0x163912(_0x1702d4);},_0x3a3afd);}):_0x5d659d||_0x27a9cb||'Valid';}}function _0x2ee993(_0x5776cb,_0x3cd4dc){return new window['Promise'](_0x50b0d5=>{if(_0x12669c())return _0x50b0d5('Valid');_0x3e1e49(),_0x4c681b['decorate']('_sendUsageRequest');let _0x1dbe08=!0x1;const _0x331089=_0x4e10c8();function _0x3dd366(_0x5e83c8){return!!_0x5e83c8&&('object'==typeof _0x5e83c8||'function'==typeof _0x5e83c8)&&'function'==typeof _0x5e83c8['then']&&'function'==typeof _0x5e83c8['catch'];}function _0x3e55d1(_0x31e708){_0x19092c(_0x31e708)['then'](_0x19c5c8=>_0x19c5c8&&'ok'==_0x19c5c8['status']?_0x23b6dc(_0x4cbb0a(_0x331089+_0x3cd4dc))!=_0x19c5c8['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x597425=>(_0x54d59e(),_0x597425),()=>{const _0x440132=_0x24ab66();return null==_0x440132?(_0x54d59e(),'Valid'):_0x32dcbb-_0x440132>0x240c8400?'UsageLimit':'Valid';})['then'](_0x50b0d5)['catch'](()=>{_0x50b0d5('UsageLimit');});const _0x482b49=0x36ee80;function _0x54d59e(){const _0x23ef2e='llct-'+_0x23b6dc(_0x4cbb0a(_0x5776cb)),_0x42aacf=_0x47a199(_0x23b6dc(window['Math']['ceil'](_0x32dcbb/_0x482b49)));window['localStorage']['setItem'](_0x23ef2e,_0x42aacf);}function _0x24ab66(){const _0x57c0fc='llct-'+_0x23b6dc(_0x4cbb0a(_0x5776cb)),_0x1324a1=window['localStorage']['getItem'](_0x57c0fc);return _0x1324a1?window['parseInt'](_0x47a199(_0x1324a1),0x10)*_0x482b49:null;}function _0x19092c(_0x2713c5){return new window['Promise']((_0x2886be,_0xb1f4b9)=>{_0x2713c5['then'](_0x2886be,_0xb1f4b9),window['setTimeout'](_0xb1f4b9,0x1d4c0);});}}_0x4c681b['on']('_sendUsageRequest',(_0x300071,_0x3ee0ab)=>{if(_0x3ee0ab[0x0]!=_0x5776cb)return _0x50b0d5('UsageLimit');_0x3ee0ab[0x1]={..._0x3ee0ab[0x1],'requestId':_0x331089};},{'priority':'high'}),_0x4c681b['on']('_sendUsageRequest',_0x5176bd=>{_0x3dd366(_0x5176bd['return'])&&(_0x1dbe08=!0x0,_0x3e55d1(_0x5176bd['return']));},{'priority':'low'}),_0x501847['then'](()=>{_0x1dbe08||_0x50b0d5('UsageLimit');});});function _0x12669c(){return'auto'==_0x4c681b['editing']['view']['_overlayModeHint'];}function _0x3e1e49(){_0x4c681b['editing']['view']['_overlayModeHint']='auto';}}function _0x193907(_0x1f4460){const _0x3c0600=[new window['Promise'](_0x53b857=>setTimeout(_0x53b857,0x93ecc)),_0x501847['then'](()=>new window['Promise'](_0x883f9c=>{let _0x407b85=0x0;_0x4c681b['model']['on']('applyOperation',(_0x59ab06,_0x2448bc)=>{_0x2448bc[0x0]['isDocumentOperation']&&_0x407b85++,0x5e8==_0x407b85&&(_0x883f9c(),_0x59ab06['off']());});}))];return window['Promise']['race'](_0x3c0600)['then'](()=>_0x1f4460);}async function _0x26291f(){await _0x501847,_0x4c681b['model']['change']=_0x35993a,_0x4c681b['model']['enqueueChange']=_0x35993a,_0x4c681b['enableReadOnlyMode']('model');}function _0xe1b0e3(_0x3c782a){const _0x3f6829=_0x51e7ee();_0x4c681b[_0x3f6829]='emailConfigurationHelperLicenseKey'+_0x3c782a,'Valid'!=_0x3c782a&&_0x26291f();}function _0x51e7ee(){const _0x1cbb65=window['String'](window['performance']['now']())['replace']('.','');let _0x488b22='u';for(let _0x44acde=0x0;_0x44acde<_0x1cbb65['length'];_0x44acde+=0x2){let _0x1de8aa=window['parseInt'](_0x1cbb65['substring'](_0x44acde,_0x44acde+0x2));_0x1de8aa>=0x3e&&(_0x1de8aa-=0x3e),_0x488b22+=_0x2f75b6[_0x1de8aa];}return _0x488b22;}function _0x1499d9(){const _0x360f5d=_0x8aa621['split']('.');if(0x3!=_0x360f5d['length'])return null;return _0x2b268c(_0x360f5d[0x1]);function _0x2b268c(_0x310543){const _0x4d1196=_0xb54879(_0x310543);return _0x4d1196&&_0x372d07()?_0x4d1196:null;function _0x372d07(){const _0x3ce4dd=_0x4d1196['jti'],_0x3d8def=window['parseInt'](_0x3ce4dd['substring'](_0x3ce4dd['length']-0x8),0x10),_0x54ba71={..._0x4d1196,'jti':_0x3ce4dd['substring'](0x0,_0x3ce4dd['length']-0x8)};return delete _0x54ba71['vc'],_0x4cbb0a(_0x54ba71)==_0x3d8def;}}}async function _0x2ee70d(){let _0x15613c=!0x0;try{const [_0x168f98,_0x804b75,_0x34a0a7]=_0x8aa621['split']('.');return _0x96ba27(_0x168f98),await _0x13c440(_0x168f98,_0x804b75,_0x34a0a7),_0x15613c;}catch{return!0x1;}function _0x96ba27(_0x5e6ed1){const _0x4acd69=_0xb54879(_0x5e6ed1);_0x4acd69&&'ES256'==_0x4acd69['alg']||(_0x15613c=!0x1);}async function _0x13c440(_0xb259f2,_0x1e1108,_0x585035){const _0x3f8753=window['Uint8Array']['from'](_0x5281a2(_0x585035),_0xe3dcb1=>_0xe3dcb1['charCodeAt'](0x0)),_0x3cfab2=new window['TextEncoder']()['encode'](_0xb259f2+'.'+_0x1e1108),_0xf3947c=window['crypto']['subtle'];if(!_0xf3947c)return;const _0x4827bd=await _0xf3947c['importKey']('jwk',_0x171935,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0xf3947c['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x4827bd,_0x3f8753,_0x3cfab2)||(_0x15613c=!0x1);}}function _0xb54879(_0x4fc602){return _0x4fc602['startsWith']('ey')?JSON['parse'](_0x5281a2(_0x4fc602)):null;}function _0x5281a2(_0x980aaa){return window['atob'](_0x980aaa['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x4cbb0a(_0x372910){let _0x2904df=0x1505;function _0x28f039(_0x342b39){for(let _0x34c05e=0x0;_0x34c05e<_0x342b39['length'];_0x34c05e++){const _0x292c7d=_0x342b39['charCodeAt'](_0x34c05e);_0x2904df=(_0x2904df<<0x5)+_0x2904df+_0x292c7d,_0x2904df&=_0x2904df;}}function _0x557167(_0x509162){Array['isArray'](_0x509162)?_0x509162['forEach'](_0x557167):_0x509162&&'object'==typeof _0x509162?Object['entries'](_0x509162)['sort']()['forEach'](([_0xcb5380,_0xee240b])=>{_0x28f039(_0xcb5380),_0x557167(_0xee240b);}):_0x28f039(window['String'](_0x509162));}return _0x557167(_0x372910),_0x2904df>>>0x0;}function _0x23b6dc(_0x2a43b7){return _0x2a43b7['toString'](0x10)['padStart'](0x8,'0');}function _0x47a199(_0x2fc22c){return _0x2fc22c['split']('')['reverse']()['join']('');}function _0x35993a(){}_0xe1b0e3(await _0x2b7f10());}(this);}['_logSuppressibleWarning'](_0x5027d1,_0x4c20f9){if(this['_isSuppressedLog'](_0x5027d1,_0x4c20f9))return;const _0x1638b1=r+'/support/error-codes.html#error-'+_0x5027d1;console['warn']('%cEmailConfigurationHelper%c\x20'+_0x5027d1,'background:\x20#E65100;\x20color:\x20white;\x20padding:\x202px\x204px;','',..._0x4c20f9?[_0x4c20f9]:[],'\x0aRead\x20more:\x20'+_0x1638b1);}['_logSuppressibleInfo'](_0x36cade,_0x2a26cd,_0x89e011){if(this['_isSuppressedLog'](_0x36cade))return;let _0x1b6864=_0x2a26cd;_0x89e011&&(_0x1b6864+='\x0aRead\x20more:\x20'+(r+'/'+_0x89e011)),console['info']('%cEmailConfigurationHelper%c\x20'+_0x36cade,'background:\x20#4169E1;\x20color:\x20white;\x20padding:\x202px\x204px;','',_0x1b6864);}['_checkUnsupportedPlugin'](_0x57117b,_0x4572ec){this['editor']['plugins']['has'](_0x57117b)&&this['_logSuppressibleWarning']('email-configuration-unsupported-plugin',{'pluginName':_0x57117b,..._0x4572ec});}['_validateConfigColorValue'](_0x1e5616){const _0x221859=this['editor']['config']['get'](_0x1e5616);if(!_0x221859)return;const _0x218dd0=Array['isArray'](_0x221859),_0xb3b5d1=_0x218dd0?_0x221859:[_0x221859];for(const [_0x208bbd,_0x47a9bf]of _0xb3b5d1['entries']()){const _0x3291d6='string'==typeof _0x47a9bf?_0x47a9bf:_0x47a9bf['color'];s(_0x3291d6)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-value',{'configPath':_0x218dd0?_0x1e5616+'['+_0x208bbd+']':_0x1e5616,'color':_0x3291d6});}}['_validateConfigColorFormat'](_0x19452a){const _0x48e4aa=this['editor']['config']['get'](_0x19452a);_0x48e4aa&&l(_0x48e4aa)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-format',{'configPath':_0x19452a,'format':_0x48e4aa});}['_isSuppressedLog'](_0x3c4791,_0xdc625d){const _0x1f5a3a=this['editor']['config']['get']('email.logs');return!!_0x1f5a3a['suppressAll']||(!('function'!=typeof _0x1f5a3a['suppress']||!_0x1f5a3a['suppress'](_0x3c4791,_0xdc625d))||!(!Array['isArray'](_0x1f5a3a['suppress'])||!_0x1f5a3a['suppress']['includes'](_0x3c4791)));}};const a=['hsl','hsla','hwb','lab','lch','oklab','oklch','color-mix','rgba'];function s(_0x46daaf){return!!_0x46daaf&&a['some'](_0x3a7ee4=>_0x46daaf['includes'](_0x3a7ee4+'('));}function l(_0x242d76){return!!_0x242d76&&a['includes'](_0x242d76);}var u=class extends _0x28063c{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(_0x38081b,_0x460642){const _0x29d7cf=_0x38081b['ownerDocument'],{table:_0x182b03,cell:_0x1bad93}=g(_0x29d7cf,'100%');_0x460642['align']&&_0x1bad93['setAttribute']('align',_0x1420ef(_0x460642['align']));let _0x1cfbf9=_0x1bad93;if(_0x460642['width']){const {table:_0xd4c48d,cell:_0x583629}=g(_0x29d7cf,_0x1420ef(_0x460642['width']));_0x1bad93['appendChild'](_0xd4c48d),_0x1cfbf9=_0x583629;}return _0x38081b['replaceWith'](_0x182b03),_0x38081b['removeAttribute']('align'),_0x38081b['removeAttribute']('width'),_0x1cfbf9['appendChild'](_0x38081b),_0x1cfbf9;}function g(_0x5bc416,_0x221d23){const _0x402683=_0x5bc416['createElement']('table');_0x221d23&&(_0x402683['style']['width']=_0x221d23,_0x402683['setAttribute']('width',h(_0x221d23))),_0x402683['setAttribute']('cellpadding','0'),_0x402683['setAttribute']('cellspacing','0'),_0x402683['setAttribute']('border','0'),_0x402683['setAttribute']('role','presentation');const _0x580bc9=_0x5bc416['createElement']('tbody'),_0x30a898=_0x5bc416['createElement']('tr'),_0x22cb13=_0x5bc416['createElement']('td');return _0x402683['appendChild'](_0x580bc9),_0x580bc9['appendChild'](_0x30a898),_0x30a898['appendChild'](_0x22cb13),{'table':_0x402683,'cell':_0x22cb13};}function f(_0x135a03){const _0x1d0a93=_0x135a03['getAsString']('margin-left'),_0x3267ab=_0x135a03['getAsString']('margin-right'),_0x1a3551=_0x1d0a93&&_0x1420ef(_0x1d0a93),_0x28f2a0=_0x3267ab&&_0x1420ef(_0x3267ab);return'auto'===_0x1a3551&&'auto'===_0x28f2a0?'center':'auto'===_0x1a3551?'right':'auto'===_0x28f2a0?'left':void 0x0;}function m(_0x1ccce0,_0x3acc63){const _0x1a3059=_0x1ccce0['ownerDocument']['createElement'](_0x3acc63);for(const _0x508f8 of Array['from'](_0x1ccce0['attributes']))_0x1a3059['setAttribute'](_0x508f8['name'],_0x508f8['value']);for(;_0x1ccce0['firstChild'];)_0x1a3059['appendChild'](_0x1ccce0['firstChild']);return _0x1a3059;}function d(_0x15df39){if('TABLE'!==_0x15df39['tagName'])return!0x1;if('presentation'!==_0x15df39['getAttribute']('role'))return!0x1;const _0x54cb8f=p(_0x15df39);return null!==_0x54cb8f&&_0x54cb8f['hasAttribute']('align');}function p(_0x19bb04){let _0x3243a2=_0x19bb04;0x1===_0x19bb04['children']['length']&&'TBODY'===_0x19bb04['children'][0x0]['tagName']&&(_0x3243a2=_0x19bb04['children'][0x0]);const _0x29c269=_0x3243a2['children'];if(0x1!==_0x29c269['length']||'TR'!==_0x29c269[0x0]['tagName'])return null;const _0xdb9d06=_0x29c269[0x0]['children'];return 0x1!==_0xdb9d06['length']||'TD'!==_0xdb9d06[0x0]['tagName']?null:_0xdb9d06[0x0];}function h(_0xf50b13){return function(_0x29f01b){return _0x29f01b['endsWith']('px')?_0x29f01b['slice'](0x0,-0x2):_0x29f01b;}(_0x1420ef(_0xf50b13));}const w=(_0x4f3feb,_0x1484a7,{runAfterDocumentTransformation:_0x428b50,runAfterChildrenTransformation:_0x1f7853})=>{if('FIGURE'!==_0x4f3feb['tagName'])return;const _0x560ca4=_0x1484a7['getAsString']('float');if(_0x560ca4){if(P(_0x4f3feb))_0x428b50(()=>{y(_0x4f3feb,{'align':_0x560ca4});});else{const {table:_0x6e9d0d,cell:_0x309496}=g(_0x4f3feb['ownerDocument']);_0x6e9d0d['setAttribute']('align',_0x1420ef(_0x560ca4)),_0x6e9d0d['setAttribute']('style',function(_0x482b05){return _0x482b05['getStylesEntries']()['map'](_0x575804=>_0x575804['join'](':'))['join'](';')+';';}(_0x1484a7)),_0x1f7853(()=>{for(const _0x469039 of Array['from'](_0x4f3feb['childNodes']))_0x309496['appendChild'](_0x469039);}),_0x428b50(()=>{_0x4f3feb['replaceWith'](_0x6e9d0d);});}}else{const _0x57bf25=f(_0x1484a7),_0x18cf56=_0x1484a7['getAsString']('width');if(!_0x57bf25&&!_0x18cf56)return;c(_0x4f3feb,{'align':_0x57bf25,'width':_0x18cf56}),_0x18cf56&&_0x1484a7['set']('width','100%'),_0x1484a7['remove']('margin-left'),_0x1484a7['remove']('margin-right'),_0x1484a7['remove']('min-width'),_0x1484a7['remove']('max-width'),_0x428b50(()=>{if(!y(_0x4f3feb)){const _0x20e896=m(_0x4f3feb,'div');_0x4f3feb['replaceWith'](_0x20e896);}});}};function y(_0x5ba335,_0x151cd6={}){const _0x57ae55=P(_0x5ba335);if(!_0x57ae55)return null;for(const _0x14a782 of['id','class']){const _0x34cf57=_0x5ba335['getAttribute'](_0x14a782);_0x34cf57&&_0x57ae55['setAttribute'](_0x14a782,_0x34cf57);}for(const _0x380e29 of['display','float','width','height'])_0x57ae55['style']['removeProperty'](_0x380e29);const _0x3a21ea=_0x5ba335['getAttribute']('style');if(_0x3a21ea){const _0x14bbf6=_0x57ae55['getAttribute']('style')||'';_0x57ae55['setAttribute']('style',_0x3a21ea+_0x14bbf6);}return _0x151cd6['align']&&_0x57ae55['setAttribute']('align',_0x1420ef(_0x151cd6['align'])),'fixed'!==_0x57ae55['style']['tableLayout']||_0x57ae55['style']['width']||(_0x57ae55['style']['width']='100%',_0x57ae55['setAttribute']('width','100%')),_0x5ba335['replaceWith'](_0x57ae55),_0x57ae55;}function P(_0x356042){const _0x5c8c4c=Array['from'](_0x356042['children']);return 0x1===_0x5c8c4c['length']&&'TABLE'===_0x5c8c4c[0x0]['tagName']?_0x5c8c4c[0x0]:null;}var I=class extends _0x28063c{static get['requires'](){return[o];}static get['pluginName'](){return'ImageEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {config:_0x4cdf5a,plugins:_0x55d8dc}=this['editor'];_0x4cdf5a['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x55d8dc['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 _0x28063c{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 _0x28063c{static get['requires'](){return[o];}static get['pluginName'](){return'ExportInlineStylesEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x73ab6b=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('ExportInlineStyles')||_0x73ab6b['_logSuppressibleWarning']('email-configuration-missing-export-inline-styles-plugin');}},L=class extends _0x28063c{static get['requires'](){return[o];}static get['pluginName'](){return'ListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x49c687=this['editor']['plugins']['get'](o),_0x57eee8=this['editor']['config']['get']('list');_0x57eee8&&_0x57eee8['properties']&&_0x57eee8['properties']['reversed']&&_0x49c687['_logSuppressibleWarning']('email-configuration-unsupported-reversed-list'),_0x57eee8&&_0x57eee8['enableListItemMarkerFormatting']&&_0x49c687['_logSuppressibleWarning']('email-configuration-unsupported-list-item-marker-formatting');}},C=class extends _0x28063c{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:_0xe46e77}=this['editor'],_0x3946a7=_0xe46e77['get'](o);_0xe46e77['has']('Table')&&(_0xe46e77['has']('PlainTableOutput')||_0x3946a7['_logSuppressibleWarning']('email-configuration-missing-plain-table-output-plugin'),_0xe46e77['has']('TableLayout')||_0x3946a7['_logSuppressibleWarning']('email-configuration-missing-table-layout-plugin'));}['_checkTableConfig'](){const {config:_0x8295e4,plugins:_0x2b1b05}=this['editor'];_0x8295e4['get']('table')&&_0x2b1b05['has']('Table')&&(this['_checkTablePropertiesConfig']('tableCellProperties'),this['_checkTablePropertiesConfig']('tableProperties'));}['_checkTablePropertiesConfig'](_0x48973f){const _0x244f4a=this['editor']['plugins']['get'](o);_0x244f4a['_validateConfigColorValue']('table.'+_0x48973f+'.borderColors'),_0x244f4a['_validateConfigColorValue']('table.'+_0x48973f+'.backgroundColors'),_0x244f4a['_validateConfigColorValue']('table.'+_0x48973f+'.defaultProperties.borderColor'),_0x244f4a['_validateConfigColorValue']('table.'+_0x48973f+'.defaultProperties'),_0x244f4a['_validateConfigColorFormat']('table.'+_0x48973f+'.colorPicker.format');}},k=class extends _0x28063c{static get['requires'](){return[o];}static get['pluginName'](){return'EmptyBlockEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x4976ee=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('EmptyBlock')||_0x4976ee['_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 _0x28063c{static get['requires'](){return[o];}static get['pluginName'](){return'FontEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {plugins:_0x96964a}=this['editor'];_0x96964a['has']('FontColorEditing')&&this['_checkColorConfig']('fontColor'),_0x96964a['has']('FontBackgroundColorEditing')&&this['_checkColorConfig']('fontBackgroundColor');}['_checkColorConfig'](_0x542a9f){const _0x45befa=this['editor']['plugins']['get'](o);this['editor']['config']['get'](_0x542a9f)&&(_0x45befa['_validateConfigColorValue'](_0x542a9f+'.colors'),_0x45befa['_validateConfigColorValue'](_0x542a9f+'.documentColors'),_0x45befa['_validateConfigColorFormat'](_0x542a9f+'.colorPicker.format'));}},x=class extends _0x28063c{static get['requires'](){return[o];}static get['pluginName'](){return'SourceEditingEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {plugins:_0x56e24a}=this['editor'],_0x34af90=_0x56e24a['get'](o);_0x56e24a['has']('SourceEditing')||_0x56e24a['has']('SourceEditingEnhanced')||_0x34af90['_logSuppressibleWarning']('email-configuration-missing-source-editing-plugin');}},v=class extends _0x28063c{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 _0x28063c{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:_0x15ec73}=this['editor'];if(!_0x15ec73['has']('DataFilter'))return;const _0x283075=_0x15ec73['get']('DataFilter'),_0x37e393=_0x15ec73['get'](o);for(const _0x544585 of GeneralHtmlIntegrationSupport['UNSUPPORTED_ELEMENTS'])_0x283075['once']('register:'+_0x544585,(_0x277c81,_0x3c53c1)=>{_0x37e393['_logSuppressibleWarning']('email-unsupported-html-element',{'element':_0x3c53c1['view']});});}},A=class extends _0x28063c{static get['requires'](){return[o];}static get['pluginName'](){return'MergeFieldsEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x61e8f6=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('MergeFields')||_0x61e8f6['_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 _0x28063c{static get['requires'](){return[o];}static get['pluginName'](){return'TemplateEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x53386a=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('Template')||_0x53386a['_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 _0x28063c{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 _0x28063c{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 _0x28063c{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 _0x28063c{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 _0x28063c{static get['requires'](){return[o];}static get['pluginName'](){return'LinkEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {config:_0x2c8222,plugins:_0x1bfbca}=this['editor'],_0x2b93d2=_0x1bfbca['get'](o);_0x2c8222['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x2b93d2['_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 _0x28063c{['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 _0x104022=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x42b4dd;for(const _0x7da04d in _0x104022){const _0x37f1ba=_0x7da04d,_0x301d41=_0x104022[_0x37f1ba];if('emailConfigurationHelperLicenseKeyValid'==_0x301d41||'emailConfigurationHelperLicenseKeyInvalid'==_0x301d41||'emailConfigurationHelperLicenseKeyExpired'==_0x301d41||'emailConfigurationHelperLicenseKeyDomainLimit'==_0x301d41||'emailConfigurationHelperLicenseKeyNotAllowed'==_0x301d41||'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x301d41||'emailConfigurationHelperLicenseKeyUsageLimit'==_0x301d41){delete _0x104022[_0x37f1ba],_0x42b4dd=_0x301d41,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'emailConfigurationHelperLicenseKeyInvalid'==_0x42b4dd&&_0x104022['_showLicenseError']('invalid'),'emailConfigurationHelperLicenseKeyExpired'==_0x42b4dd&&_0x104022['_showLicenseError']('expired'),'emailConfigurationHelperLicenseKeyDomainLimit'==_0x42b4dd&&_0x104022['_showLicenseError']('domainLimit'),'emailConfigurationHelperLicenseKeyNotAllowed'==_0x42b4dd&&_0x104022['_showLicenseError']('featureNotAllowed','EmailConfigurationHelper'),'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x42b4dd&&_0x104022['_showLicenseError']('evaluationLimit'),'emailConfigurationHelperLicenseKeyUsageLimit'==_0x42b4dd&&_0x104022['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};const U=(_0x5d449e,_0x3dd2d0)=>{if(!['TABLE','IMG']['includes'](_0x5d449e['tagName']))return;const _0x1c8b47=_0x3dd2d0['getAsString']('float');if(_0x1c8b47){const _0x5e1013=_0x1420ef(_0x1c8b47);'left'!==_0x5e1013&&'right'!==_0x5e1013||_0x5d449e['setAttribute']('align',_0x5e1013);}},D=(_0x143efc,_0x96eb68)=>{if('TABLE'!==_0x143efc['tagName']||_0x96eb68['has']('float'))return;const _0x532766=f(_0x96eb68),_0x5678e0=_0x96eb68['getAsString']('width');_0x532766&&(c(_0x143efc,{'align':_0x532766}),_0x5678e0?_0x143efc['setAttribute']('width',h(_0x5678e0)):_0x96eb68['remove']('width'),_0x96eb68['remove']('margin-left'),_0x96eb68['remove']('margin-right'));},F=(_0x1c9fa5,_0x1674b7)=>{if('IMG'!==_0x1c9fa5['tagName'])return;const _0x23ef04=_0x1674b7['getAsString']('width');_0x23ef04&&(_0x1c9fa5['setAttribute']('width',h(_0x23ef04)),_0x1c9fa5['setAttribute']('height','auto'));},_=(_0x565a67,_0x494ede,{runAfterDocumentTransformation:_0x1f08ee})=>{if('FIGCAPTION'!==_0x565a67['tagName'])return;const _0x66e061=_0x494ede['getAsString']('display'),_0x450b09=_0x494ede['getAsString']('caption-side');_0x494ede['remove']('caption-side'),_0x66e061&&'table-caption'===_0x1420ef(_0x66e061)&&_0x494ede['remove']('display');const _0x3d8040=_0x450b09&&'top'===_0x1420ef(_0x450b09);_0x1f08ee(()=>{const _0x13fb96=m(_0x565a67,'div'),_0x1872f2=_0x565a67['previousElementSibling'];_0x3d8040&&_0x1872f2&&'TABLE'===_0x1872f2['tagName']?(_0x1872f2['before'](_0x13fb96),_0x565a67['remove']()):_0x565a67['replaceWith'](_0x13fb96);});},M=(_0x447655,_0x5b8c9c,{runAfterChildrenTransformation:_0x34ab51})=>{'TD'===_0x447655['tagName']&&_0x34ab51(()=>{const _0x3e5322=Array['from'](_0x447655['children']);if(0x0===_0x3e5322['length'])return;const _0xf9904f=_0x3e5322['map'](R),_0x557bcf=_0xf9904f[0x0];if(_0x557bcf&&_0xf9904f['every'](_0x43c865=>_0x43c865===_0x557bcf)){_0x447655['setAttribute']('align',_0x557bcf);for(const _0x564e73 of _0x3e5322)if(d(_0x564e73)){const _0x3fd893=p(_0x564e73);_0x564e73['replaceWith'](...Array['from'](_0x3fd893['childNodes']));}else _0x564e73['style']['removeProperty']('text-align'),_0x564e73['style']['length']||_0x564e73['removeAttribute']('style');}});};function R(_0x56b365){return d(_0x56b365)?p(_0x56b365)['getAttribute']('align'):_0x56b365['style']['textAlign']||void 0x0;}const V=(_0x318bba,_0x4477bd,{runAfterChildrenTransformation:_0x55ad5d})=>{'TABLE'===_0x318bba['tagName']&&_0x55ad5d(()=>{const _0x851885=function(_0xe28e4d,_0x1d5cdb){for(const _0x19e2ed of _0xe28e4d['children'])if(_0x19e2ed['tagName']===_0x1d5cdb)return _0x19e2ed;return null;}(_0x318bba,'COLGROUP');if(!_0x851885)return;const _0x275eab=Array['from'](_0x851885['children'])['filter'](_0xeb2bf2=>'COL'===_0xeb2bf2['tagName']);if(_0x275eab['some'](_0xafeda=>Q(_0xafeda,'span')))return;const _0xa09e46=_0x275eab['map'](j);if(!_0xa09e46['some'](Boolean))return;const _0x10d780=function(_0xed3035){const _0x5547bc=[];for(const _0x3e2806 of _0xed3035['children'])if(['THEAD','TBODY','TFOOT']['includes'](_0x3e2806['tagName'])){for(const _0x407909 of _0x3e2806['children'])'TR'===_0x407909['tagName']&&_0x5547bc['push'](_0x407909);}return _0x5547bc;}(_0x318bba)['map'](G);if(!_0x10d780['some'](_0x17b195=>_0x17b195['length']!==_0xa09e46['length']||_0x17b195['some'](_0x5186a3=>function(_0x9b822){return Q(_0x9b822,'colspan')||Q(_0x9b822,'rowspan');}(_0x5186a3)||function(_0x4a2ec7){return Boolean(_0x4a2ec7['style']['getPropertyValue']('width'))||Boolean(_0x4a2ec7['getAttribute']('width'));}(_0x5186a3)))){for(const _0x6a6882 of _0x10d780)_0x6a6882['forEach']((_0x7cf493,_0x5be6d8)=>{const _0x3bd5e1=_0xa09e46[_0x5be6d8];_0x3bd5e1&&(_0x7cf493['setAttribute']('width',h(_0x3bd5e1)),_0x7cf493['style']['setProperty']('width',_0x3bd5e1));});}});};function G(_0x31730c){return Array['from'](_0x31730c['children'])['filter'](_0x571be1=>'TD'===_0x571be1['tagName']||'TH'===_0x571be1['tagName']);}function j(_0x16a511){const _0x244e53=_0x16a511['style']['getPropertyValue']('width');if(_0x244e53)return _0x244e53;const _0x4fb1ba=_0x16a511['getAttribute']('width');if(!_0x4fb1ba)return;const _0x1c98f9=_0x1420ef(_0x4fb1ba);return/^\d+(\.\d+)?$/['test'](_0x1c98f9)?_0x1c98f9+'px':_0x1c98f9;}function Q(_0x4b8df9,_0x3cbad4){const _0x220149=_0x4b8df9['getAttribute'](_0x3cbad4);return null!==_0x220149&&'1'!==_0x220149;}function J(_0x5833c2={}){const _0x5eccba=[];return _0x5833c2['useFigureToTableFallback']&&_0x5eccba['push'](w,_,M),_0x5eccba['push'](U,D,F,V),_0x5eccba;}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.2",
3
+ "version": "48.3.0-alpha.3",
4
4
  "description": "Email integration feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -21,15 +21,15 @@
21
21
  "./package.json": "./package.json"
22
22
  },
23
23
  "dependencies": {
24
- "@ckeditor/ckeditor5-core": "48.3.0-alpha.2",
25
- "@ckeditor/ckeditor5-engine": "48.3.0-alpha.2",
26
- "@ckeditor/ckeditor5-export-inline-styles": "48.3.0-alpha.2",
27
- "@ckeditor/ckeditor5-font": "48.3.0-alpha.2",
28
- "@ckeditor/ckeditor5-html-support": "48.3.0-alpha.2",
29
- "@ckeditor/ckeditor5-list": "48.3.0-alpha.2",
30
- "@ckeditor/ckeditor5-table": "48.3.0-alpha.2",
31
- "@ckeditor/ckeditor5-ui": "48.3.0-alpha.2",
32
- "@ckeditor/ckeditor5-utils": "48.3.0-alpha.2"
24
+ "@ckeditor/ckeditor5-core": "48.3.0-alpha.3",
25
+ "@ckeditor/ckeditor5-engine": "48.3.0-alpha.3",
26
+ "@ckeditor/ckeditor5-export-inline-styles": "48.3.0-alpha.3",
27
+ "@ckeditor/ckeditor5-font": "48.3.0-alpha.3",
28
+ "@ckeditor/ckeditor5-html-support": "48.3.0-alpha.3",
29
+ "@ckeditor/ckeditor5-list": "48.3.0-alpha.3",
30
+ "@ckeditor/ckeditor5-table": "48.3.0-alpha.3",
31
+ "@ckeditor/ckeditor5-ui": "48.3.0-alpha.3",
32
+ "@ckeditor/ckeditor5-utils": "48.3.0-alpha.3"
33
33
  },
34
34
  "files": [
35
35
  "dist",