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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x459eb7}from'@ckeditor/ckeditor5-core';import{uid as _0x5e6d93}from'@ckeditor/ckeditor5-utils';import{dropImportantStyleSuffix as _0x4b918c}from'@ckeditor/ckeditor5-export-inline-styles';const r='https://ckeditor.com/docs/ckeditor5/latest';var o=class extends _0x459eb7{static get['pluginName'](){return'EmailConfigurationLogger';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1c0439){super(_0x1c0439),_0x1c0439['config']['define']('email.logs',{'suppress':[],'suppressAll':!0x1});}afterInit(){!async function(_0x1eec02){const _0x19fdb6='uizTdvyBIa4RKsnOYmEXGMfjehwJQqbPSCk7DtZgF58Lxl29Ho6cAUW1pV3Nr0',_0x3bb03e=0x79158,_0x24d2d3=window['Date']['now'](),_0x5560de=_0x1eec02['editor'],_0x1c3e27=new window['Promise'](_0x3d19c5=>{_0x5560de['once']('ready',_0x3d19c5);}),_0x44bc42={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x12aef0=_0x5560de['config']['get']('licenseKey');async function _0xa19161(){let _0x283bd6,_0xf568f5=null,_0x571d16=null;try{return'GPL'==_0x12aef0?'NotAllowed':(_0x283bd6=_0x5179ac(),_0x283bd6?(_0x283bd6['usageEndpoint']&&(_0x571d16=_0x263463(_0x283bd6['usageEndpoint'],_0x283bd6['jti'])),await _0x30ec62()?_0x5bcc88()?_0x59cdbb()?'Expired':_0x1d6aa9()?('evaluation'==_0x283bd6['licenseType']&&(_0xf568f5=_0x4683c1('EvaluationLimit')),await _0x29a65d()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x59cdbb(){const _0x1b7475=['evaluation','trial']['includes'](_0x283bd6['licenseType'])?_0x24d2d3/0x3e8:0xe10*_0x3bb03e;return _0x283bd6['exp']<_0x1b7475;}function _0x5bcc88(){const _0x4010de=_0x283bd6['features'];return!!_0x4010de&&(!!_0x4010de['includes']('*')||!!_0x4010de['includes']('ECH'));}function _0x1d6aa9(){const _0xbdb110=_0x283bd6['licensedHosts'];if(!_0xbdb110||0x0==_0xbdb110['length'])return!0x0;const {hostname:_0xbd2692}=new URL(window['location']['href']);if(_0xbdb110['includes'](_0xbd2692))return!0x0;const _0x15cc1a=_0xbd2692['split']('.');return _0xbdb110['filter'](_0xd56da5=>_0xd56da5['includes']('*'))['map'](_0x1b2d0b=>_0x1b2d0b['split']('.'))['filter'](_0x264e6f=>_0x264e6f['length']<=_0x15cc1a['length'])['map'](_0x52f04c=>Array(_0x15cc1a['length']-_0x52f04c['length'])['fill']('*'===_0x52f04c[0x0]?'*':'')['concat'](_0x52f04c))['some'](_0x1a159a=>_0x15cc1a['every']((_0x13a957,_0x339fb7)=>_0x1a159a[_0x339fb7]===_0x13a957||'*'===_0x1a159a[_0x339fb7]));}function _0x29a65d(){return _0xf568f5&&_0x571d16?new window['Promise']((_0x4842ee,_0x330b2b)=>{_0xf568f5['then'](_0x4842ee,_0x330b2b),_0x571d16['then'](_0x543e09=>{'Valid'!=_0x543e09&&_0x4842ee(_0x543e09);},_0x330b2b);}):_0xf568f5||_0x571d16||'Valid';}}function _0x263463(_0x373719,_0x92e340){return new window['Promise'](_0x3f06fb=>{if(_0x59504d())return _0x3f06fb('Valid');_0x26400e(),_0x5560de['decorate']('_sendUsageRequest');let _0x2c9d5d=!0x1;const _0x595235=_0x5e6d93();function _0x1e5f3b(_0x482cf9){return!!_0x482cf9&&('object'==typeof _0x482cf9||'function'==typeof _0x482cf9)&&'function'==typeof _0x482cf9['then']&&'function'==typeof _0x482cf9['catch'];}function _0x4edd10(_0x41f1d6){_0x149bbc(_0x41f1d6)['then'](_0x51705e=>_0x51705e&&'ok'==_0x51705e['status']?_0x2dc20b(_0xf51d38(_0x595235+_0x92e340))!=_0x51705e['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x41d1d7=>(_0x24a617(),_0x41d1d7),()=>{const _0x532c13=_0x64f0e8();return null==_0x532c13?(_0x24a617(),'Valid'):_0x24d2d3-_0x532c13>0x240c8400?'UsageLimit':'Valid';})['then'](_0x3f06fb)['catch'](()=>{_0x3f06fb('UsageLimit');});const _0x4b574c=0x36ee80;function _0x24a617(){const _0x3d861e='llct-'+_0x2dc20b(_0xf51d38(_0x373719)),_0x27fc6a=_0x1d8188(_0x2dc20b(window['Math']['ceil'](_0x24d2d3/_0x4b574c)));window['localStorage']['setItem'](_0x3d861e,_0x27fc6a);}function _0x64f0e8(){const _0x44cd64='llct-'+_0x2dc20b(_0xf51d38(_0x373719)),_0x21a77d=window['localStorage']['getItem'](_0x44cd64);return _0x21a77d?window['parseInt'](_0x1d8188(_0x21a77d),0x10)*_0x4b574c:null;}function _0x149bbc(_0x49c307){return new window['Promise']((_0x16716f,_0x13e62d)=>{_0x49c307['then'](_0x16716f,_0x13e62d),window['setTimeout'](_0x13e62d,0x1d4c0);});}}_0x5560de['on']('_sendUsageRequest',(_0xf362f5,_0x2c9424)=>{if(_0x2c9424[0x0]!=_0x373719)return _0x3f06fb('UsageLimit');_0x2c9424[0x1]={..._0x2c9424[0x1],'requestId':_0x595235};},{'priority':'high'}),_0x5560de['on']('_sendUsageRequest',_0xcfcba0=>{_0x1e5f3b(_0xcfcba0['return'])&&(_0x2c9d5d=!0x0,_0x4edd10(_0xcfcba0['return']));},{'priority':'low'}),_0x1c3e27['then'](()=>{_0x2c9d5d||_0x3f06fb('UsageLimit');});});function _0x59504d(){return'auto'==_0x5560de['editing']['view']['_overlayModeHint'];}function _0x26400e(){_0x5560de['editing']['view']['_overlayModeHint']='auto';}}function _0x4683c1(_0x2a2019){const _0x1e0542=[new window['Promise'](_0xf3712c=>setTimeout(_0xf3712c,0x93ecc)),_0x1c3e27['then'](()=>new window['Promise'](_0x146ff1=>{let _0xaf962f=0x0;_0x5560de['model']['on']('applyOperation',(_0x4ee8b9,_0x4d84a8)=>{_0x4d84a8[0x0]['isDocumentOperation']&&_0xaf962f++,0x5e8==_0xaf962f&&(_0x146ff1(),_0x4ee8b9['off']());});}))];return window['Promise']['race'](_0x1e0542)['then'](()=>_0x2a2019);}async function _0x5a29b8(){await _0x1c3e27,_0x5560de['model']['change']=_0x10906c,_0x5560de['model']['enqueueChange']=_0x10906c,_0x5560de['enableReadOnlyMode']('model');}function _0x1755f4(_0x2ca328){const _0x471560=_0x3ad24a();_0x5560de[_0x471560]='emailConfigurationHelperLicenseKey'+_0x2ca328,'Valid'!=_0x2ca328&&_0x5a29b8();}function _0x3ad24a(){const _0x51e4a1=window['String'](window['performance']['now']())['replace']('.','');let _0x2b3649='u';for(let _0x2b5aa2=0x0;_0x2b5aa2<_0x51e4a1['length'];_0x2b5aa2+=0x2){let _0xf3155f=window['parseInt'](_0x51e4a1['substring'](_0x2b5aa2,_0x2b5aa2+0x2));_0xf3155f>=0x3e&&(_0xf3155f-=0x3e),_0x2b3649+=_0x19fdb6[_0xf3155f];}return _0x2b3649;}function _0x5179ac(){const _0x4f3816=_0x12aef0['split']('.');if(0x3!=_0x4f3816['length'])return null;return _0x40f6a9(_0x4f3816[0x1]);function _0x40f6a9(_0x2023d1){const _0x552e44=_0xc790f5(_0x2023d1);return _0x552e44&&_0x203e23()?_0x552e44:null;function _0x203e23(){const _0x5a6de9=_0x552e44['jti'],_0x4d0e9a=window['parseInt'](_0x5a6de9['substring'](_0x5a6de9['length']-0x8),0x10),_0x3ba36d={..._0x552e44,'jti':_0x5a6de9['substring'](0x0,_0x5a6de9['length']-0x8)};return delete _0x3ba36d['vc'],_0xf51d38(_0x3ba36d)==_0x4d0e9a;}}}async function _0x30ec62(){let _0x476608=!0x0;try{const [_0x43c79c,_0x229526,_0x2e1e1c]=_0x12aef0['split']('.');return _0x2d1abc(_0x43c79c),await _0x1c07fa(_0x43c79c,_0x229526,_0x2e1e1c),_0x476608;}catch{return!0x1;}function _0x2d1abc(_0x150381){const _0x242800=_0xc790f5(_0x150381);_0x242800&&'ES256'==_0x242800['alg']||(_0x476608=!0x1);}async function _0x1c07fa(_0x2fc2ef,_0x38d731,_0x270999){const _0x570977=window['Uint8Array']['from'](_0x4cc8e1(_0x270999),_0x499004=>_0x499004['charCodeAt'](0x0)),_0x5f1647=new window['TextEncoder']()['encode'](_0x2fc2ef+'.'+_0x38d731),_0x68e0db=window['crypto']['subtle'];if(!_0x68e0db)return;const _0x1f58c3=await _0x68e0db['importKey']('jwk',_0x44bc42,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x68e0db['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x1f58c3,_0x570977,_0x5f1647)||(_0x476608=!0x1);}}function _0xc790f5(_0x23ffb0){return _0x23ffb0['startsWith']('ey')?JSON['parse'](_0x4cc8e1(_0x23ffb0)):null;}function _0x4cc8e1(_0x182469){return window['atob'](_0x182469['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0xf51d38(_0x5631b7){let _0x523b6f=0x1505;function _0x17850a(_0x116b32){for(let _0x11ab2f=0x0;_0x11ab2f<_0x116b32['length'];_0x11ab2f++){const _0x2e4b2b=_0x116b32['charCodeAt'](_0x11ab2f);_0x523b6f=(_0x523b6f<<0x5)+_0x523b6f+_0x2e4b2b,_0x523b6f&=_0x523b6f;}}function _0x41cfd5(_0x401d0c){Array['isArray'](_0x401d0c)?_0x401d0c['forEach'](_0x41cfd5):_0x401d0c&&'object'==typeof _0x401d0c?Object['entries'](_0x401d0c)['sort']()['forEach'](([_0x34bf98,_0x2f6ae2])=>{_0x17850a(_0x34bf98),_0x41cfd5(_0x2f6ae2);}):_0x17850a(window['String'](_0x401d0c));}return _0x41cfd5(_0x5631b7),_0x523b6f>>>0x0;}function _0x2dc20b(_0x2d8998){return _0x2d8998['toString'](0x10)['padStart'](0x8,'0');}function _0x1d8188(_0x25ec0e){return _0x25ec0e['split']('')['reverse']()['join']('');}function _0x10906c(){}_0x1755f4(await _0xa19161());}(this);}['_logSuppressibleWarning'](_0x2baf16,_0x4ce8cb){if(this['_isSuppressedLog'](_0x2baf16,_0x4ce8cb))return;const _0x4ce43f=r+'/support/error-codes.html#error-'+_0x2baf16;console['warn']('%cEmailConfigurationHelper%c\x20'+_0x2baf16,'background:\x20#E65100;\x20color:\x20white;\x20padding:\x202px\x204px;','',..._0x4ce8cb?[_0x4ce8cb]:[],'\x0aRead\x20more:\x20'+_0x4ce43f);}['_logSuppressibleInfo'](_0x25cfa4,_0x18257d,_0x394f86){if(this['_isSuppressedLog'](_0x25cfa4))return;let _0xaede84=_0x18257d;_0x394f86&&(_0xaede84+='\x0aRead\x20more:\x20'+(r+'/'+_0x394f86)),console['info']('%cEmailConfigurationHelper%c\x20'+_0x25cfa4,'background:\x20#4169E1;\x20color:\x20white;\x20padding:\x202px\x204px;','',_0xaede84);}_checkUnsupportedPlugin(_0x43163d,_0x3ffab1){this['editor']['plugins']['has'](_0x43163d)&&this['_logSuppressibleWarning']('email-configuration-unsupported-plugin',{'pluginName':_0x43163d,..._0x3ffab1});}_validateConfigColorValue(_0x3120aa){const _0x99639e=this['editor']['config']['get'](_0x3120aa);if(!_0x99639e)return;const _0x339309=Array['isArray'](_0x99639e),_0x399896=_0x339309?_0x99639e:[_0x99639e];for(const [_0x428645,_0x3b2b89]of _0x399896['entries']()){const _0x59e174='string'==typeof _0x3b2b89?_0x3b2b89:_0x3b2b89['color'];s(_0x59e174)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-value',{'configPath':_0x339309?_0x3120aa+'['+_0x428645+']':_0x3120aa,'color':_0x59e174});}}_validateConfigColorFormat(_0x3408eb){const _0x38775e=this['editor']['config']['get'](_0x3408eb);_0x38775e&&l(_0x38775e)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-format',{'configPath':_0x3408eb,'format':_0x38775e});}['_isSuppressedLog'](_0x46732a,_0x22a149){const _0x21a51a=this['editor']['config']['get']('email.logs');return!!_0x21a51a['suppressAll']||(!('function'!=typeof _0x21a51a['suppress']||!_0x21a51a['suppress'](_0x46732a,_0x22a149))||!(!Array['isArray'](_0x21a51a['suppress'])||!_0x21a51a['suppress']['includes'](_0x46732a)));}};const a=['hsl','hsla','hwb','lab','lch','oklab','oklch','color-mix','rgba'];function s(_0x7428e){return!!_0x7428e&&a['some'](_0x1de4d9=>_0x7428e['includes'](_0x1de4d9+'('));}function l(_0x2a7edb){return!!_0x2a7edb&&a['includes'](_0x2a7edb);}var u=class extends _0x459eb7{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(_0x54d60b,_0x4641fb){const _0x44d891=_0x54d60b['ownerDocument'],{table:_0x48f843,cell:_0x59e5ea}=g(_0x44d891,'100%');_0x4641fb['align']&&_0x59e5ea['setAttribute']('align',_0x4b918c(_0x4641fb['align']));let _0x61f629=_0x59e5ea;if(_0x4641fb['width']){const {table:_0x4a03ab,cell:_0x1af6f7}=g(_0x44d891,_0x4b918c(_0x4641fb['width']));_0x59e5ea['appendChild'](_0x4a03ab),_0x61f629=_0x1af6f7;}return _0x54d60b['replaceWith'](_0x48f843),_0x54d60b['removeAttribute']('align'),_0x54d60b['removeAttribute']('width'),_0x61f629['appendChild'](_0x54d60b),_0x61f629;}function g(_0x5023b5,_0x5e00bd){const _0x59e151=_0x5023b5['createElement']('table');_0x5e00bd&&(_0x59e151['style']['width']=_0x5e00bd,_0x59e151['setAttribute']('width',h(_0x5e00bd))),_0x59e151['setAttribute']('cellpadding','0'),_0x59e151['setAttribute']('cellspacing','0'),_0x59e151['setAttribute']('border','0'),_0x59e151['setAttribute']('role','presentation');const _0x77e68c=_0x5023b5['createElement']('tbody'),_0x15d08c=_0x5023b5['createElement']('tr'),_0x5b2097=_0x5023b5['createElement']('td');return _0x59e151['appendChild'](_0x77e68c),_0x77e68c['appendChild'](_0x15d08c),_0x15d08c['appendChild'](_0x5b2097),{'table':_0x59e151,'cell':_0x5b2097};}function f(_0x51fc8e){const _0x25eaa2=_0x51fc8e['getAsString']('margin-left'),_0x276657=_0x51fc8e['getAsString']('margin-right'),_0x28b507=_0x25eaa2&&_0x4b918c(_0x25eaa2),_0x31b0f9=_0x276657&&_0x4b918c(_0x276657);return'auto'===_0x28b507&&'auto'===_0x31b0f9?'center':'auto'===_0x28b507?'right':'auto'===_0x31b0f9?'left':void 0x0;}function m(_0x452b76,_0x540f6b){const _0x2f8470=_0x452b76['ownerDocument']['createElement'](_0x540f6b);for(const _0x5c6873 of Array['from'](_0x452b76['attributes']))_0x2f8470['setAttribute'](_0x5c6873['name'],_0x5c6873['value']);for(;_0x452b76['firstChild'];)_0x2f8470['appendChild'](_0x452b76['firstChild']);return _0x2f8470;}function d(_0x24645e){if('TABLE'!==_0x24645e['tagName'])return!0x1;if('presentation'!==_0x24645e['getAttribute']('role'))return!0x1;const _0x965f8c=p(_0x24645e);return null!==_0x965f8c&&_0x965f8c['hasAttribute']('align');}function p(_0x111f88){let _0x51cdab=_0x111f88;0x1===_0x111f88['children']['length']&&'TBODY'===_0x111f88['children'][0x0]['tagName']&&(_0x51cdab=_0x111f88['children'][0x0]);const _0x2cddec=_0x51cdab['children'];if(0x1!==_0x2cddec['length']||'TR'!==_0x2cddec[0x0]['tagName'])return null;const _0x56cb20=_0x2cddec[0x0]['children'];return 0x1!==_0x56cb20['length']||'TD'!==_0x56cb20[0x0]['tagName']?null:_0x56cb20[0x0];}function h(_0xa15ca4){return function(_0x581579){return _0x581579['endsWith']('px')?_0x581579['slice'](0x0,-0x2):_0x581579;}(_0x4b918c(_0xa15ca4));}const w=(_0x196818,_0x34574b,{runAfterDocumentTransformation:_0x773b47,runAfterChildrenTransformation:_0x1b4155})=>{if('FIGURE'!==_0x196818['tagName'])return;const _0x441947=_0x34574b['getAsString']('float');if(_0x441947){if(P(_0x196818))_0x773b47(()=>{y(_0x196818,{'align':_0x441947});});else{const {table:_0x25ae11,cell:_0x5f5698}=g(_0x196818['ownerDocument']);_0x25ae11['setAttribute']('align',_0x4b918c(_0x441947)),_0x25ae11['setAttribute']('style',function(_0x2b9183){return _0x2b9183['getStylesEntries']()['map'](_0x228997=>_0x228997['join'](':'))['join'](';')+';';}(_0x34574b)),_0x1b4155(()=>{for(const _0x8d86bd of Array['from'](_0x196818['childNodes']))_0x5f5698['appendChild'](_0x8d86bd);}),_0x773b47(()=>{_0x196818['replaceWith'](_0x25ae11);});}}else{const _0x3027b=f(_0x34574b),_0x2288b3=_0x34574b['getAsString']('width');if(!_0x3027b&&!_0x2288b3)return;c(_0x196818,{'align':_0x3027b,'width':_0x2288b3}),_0x2288b3&&_0x34574b['set']('width','100%'),_0x34574b['remove']('margin-left'),_0x34574b['remove']('margin-right'),_0x34574b['remove']('min-width'),_0x34574b['remove']('max-width'),_0x773b47(()=>{if(!y(_0x196818)){const _0x8e57e5=m(_0x196818,'div');_0x196818['replaceWith'](_0x8e57e5);}});}};function y(_0x2be7c8,_0x2f8a4b={}){const _0x587a18=P(_0x2be7c8);if(!_0x587a18)return null;for(const _0x123d84 of['id','class']){const _0x50eea6=_0x2be7c8['getAttribute'](_0x123d84);_0x50eea6&&_0x587a18['setAttribute'](_0x123d84,_0x50eea6);}for(const _0x45013c of['display','float','width','height'])_0x587a18['style']['removeProperty'](_0x45013c);const _0x18a611=_0x2be7c8['getAttribute']('style');if(_0x18a611){const _0x228beb=_0x587a18['getAttribute']('style')||'';_0x587a18['setAttribute']('style',_0x18a611+_0x228beb);}return _0x2f8a4b['align']&&_0x587a18['setAttribute']('align',_0x4b918c(_0x2f8a4b['align'])),'fixed'!==_0x587a18['style']['tableLayout']||_0x587a18['style']['width']||(_0x587a18['style']['width']='100%',_0x587a18['setAttribute']('width','100%')),_0x2be7c8['replaceWith'](_0x587a18),_0x587a18;}function P(_0x7601f7){const _0x523f71=Array['from'](_0x7601f7['children']);return 0x1===_0x523f71['length']&&'TABLE'===_0x523f71[0x0]['tagName']?_0x523f71[0x0]:null;}var I=class extends _0x459eb7{static get requires(){return[o];}static get['pluginName'](){return'ImageEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {config:_0x3b2a43,plugins:_0x4a3636}=this['editor'];_0x3b2a43['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x4a3636['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 _0x459eb7{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 _0x459eb7{static get requires(){return[o];}static get['pluginName'](){return'ExportInlineStylesEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x156267=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('ExportInlineStyles')||_0x156267['_logSuppressibleWarning']('email-configuration-missing-export-inline-styles-plugin');}},L=class extends _0x459eb7{static get requires(){return[o];}static get['pluginName'](){return'ListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x232a2c=this['editor']['plugins']['get'](o),_0xf1b3b9=this['editor']['config']['get']('list');_0xf1b3b9&&_0xf1b3b9['properties']&&_0xf1b3b9['properties']['reversed']&&_0x232a2c['_logSuppressibleWarning']('email-configuration-unsupported-reversed-list'),_0xf1b3b9&&_0xf1b3b9['enableListItemMarkerFormatting']&&_0x232a2c['_logSuppressibleWarning']('email-configuration-unsupported-list-item-marker-formatting');}},C=class extends _0x459eb7{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:_0x3861be}=this['editor'],_0x6f658d=_0x3861be['get'](o);_0x3861be['has']('Table')&&(_0x3861be['has']('PlainTableOutput')||_0x6f658d['_logSuppressibleWarning']('email-configuration-missing-plain-table-output-plugin'),_0x3861be['has']('TableLayout')||_0x6f658d['_logSuppressibleWarning']('email-configuration-missing-table-layout-plugin'));}['_checkTableConfig'](){const {config:_0x560aee,plugins:_0x103069}=this['editor'];_0x560aee['get']('table')&&_0x103069['has']('Table')&&(this['_checkTablePropertiesConfig']('tableCellProperties'),this['_checkTablePropertiesConfig']('tableProperties'));}_checkTablePropertiesConfig(_0x56e17f){const _0x546a5a=this['editor']['plugins']['get'](o);_0x546a5a['_validateConfigColorValue']('table.'+_0x56e17f+'.borderColors'),_0x546a5a['_validateConfigColorValue']('table.'+_0x56e17f+'.backgroundColors'),_0x546a5a['_validateConfigColorValue']('table.'+_0x56e17f+'.defaultProperties.borderColor'),_0x546a5a['_validateConfigColorValue']('table.'+_0x56e17f+'.defaultProperties'),_0x546a5a['_validateConfigColorFormat']('table.'+_0x56e17f+'.colorPicker.format');}},k=class extends _0x459eb7{static get requires(){return[o];}static get['pluginName'](){return'EmptyBlockEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x203584=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('EmptyBlock')||_0x203584['_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 _0x459eb7{static get requires(){return[o];}static get['pluginName'](){return'FontEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {plugins:_0x19e9d3}=this['editor'];_0x19e9d3['has']('FontColorEditing')&&this['_checkColorConfig']('fontColor'),_0x19e9d3['has']('FontBackgroundColorEditing')&&this['_checkColorConfig']('fontBackgroundColor');}['_checkColorConfig'](_0x197ab6){const _0x97fe9b=this['editor']['plugins']['get'](o);_0x97fe9b['_validateConfigColorValue'](_0x197ab6+'.colors'),_0x97fe9b['_validateConfigColorValue'](_0x197ab6+'.documentColors'),_0x97fe9b['_validateConfigColorFormat'](_0x197ab6+'.colorPicker.format');}},x=class extends _0x459eb7{static get requires(){return[o];}static get['pluginName'](){return'SourceEditingEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {plugins:_0x507643}=this['editor'],_0x1046d=_0x507643['get'](o);_0x507643['has']('SourceEditing')||_0x507643['has']('SourceEditingEnhanced')||_0x1046d['_logSuppressibleWarning']('email-configuration-missing-source-editing-plugin');}},v=class extends _0x459eb7{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 _0x459eb7{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:_0x4062b3}=this['editor'];if(!_0x4062b3['has']('DataFilter'))return;const _0x11eb66=_0x4062b3['get']('DataFilter'),_0xe74b04=_0x4062b3['get'](o);for(const _0x4f2d75 of GeneralHtmlIntegrationSupport['UNSUPPORTED_ELEMENTS'])_0x11eb66['once']('register:'+_0x4f2d75,(_0x4372a1,_0x2b5b0f)=>{_0xe74b04['_logSuppressibleWarning']('email-unsupported-html-element',{'element':_0x2b5b0f['view']});});}},A=class extends _0x459eb7{static get requires(){return[o];}static get['pluginName'](){return'MergeFieldsEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x311b39=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('MergeFields')||_0x311b39['_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 _0x459eb7{static get requires(){return[o];}static get['pluginName'](){return'TemplateEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x3b5c74=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('Template')||_0x3b5c74['_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 _0x459eb7{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 _0x459eb7{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 _0x459eb7{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 _0x459eb7{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 _0x459eb7{static get requires(){return[o];}static get['pluginName'](){return'LinkEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {config:_0xf1a899,plugins:_0x4f73b0}=this['editor'],_0x483b38=_0x4f73b0['get'](o);_0xf1a899['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x483b38['_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 _0x459eb7{['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 _0x41843f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1eeabb;for(const _0x15f07d in _0x41843f){const _0x53a777=_0x15f07d,_0x20b391=_0x41843f[_0x53a777];if('emailConfigurationHelperLicenseKeyValid'==_0x20b391||'emailConfigurationHelperLicenseKeyInvalid'==_0x20b391||'emailConfigurationHelperLicenseKeyExpired'==_0x20b391||'emailConfigurationHelperLicenseKeyDomainLimit'==_0x20b391||'emailConfigurationHelperLicenseKeyNotAllowed'==_0x20b391||'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x20b391||'emailConfigurationHelperLicenseKeyUsageLimit'==_0x20b391){delete _0x41843f[_0x53a777],_0x1eeabb=_0x20b391,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'emailConfigurationHelperLicenseKeyInvalid'==_0x1eeabb&&_0x41843f['_showLicenseError']('invalid'),'emailConfigurationHelperLicenseKeyExpired'==_0x1eeabb&&_0x41843f['_showLicenseError']('expired'),'emailConfigurationHelperLicenseKeyDomainLimit'==_0x1eeabb&&_0x41843f['_showLicenseError']('domainLimit'),'emailConfigurationHelperLicenseKeyNotAllowed'==_0x1eeabb&&_0x41843f['_showLicenseError']('featureNotAllowed','EmailConfigurationHelper'),'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x1eeabb&&_0x41843f['_showLicenseError']('evaluationLimit'),'emailConfigurationHelperLicenseKeyUsageLimit'==_0x1eeabb&&_0x41843f['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};const U=(_0x3f3434,_0x4cc6d1)=>{if(!['TABLE','IMG']['includes'](_0x3f3434['tagName']))return;const _0x37fcd2=_0x4cc6d1['getAsString']('float');if(_0x37fcd2){const _0xc241d2=_0x4b918c(_0x37fcd2);'left'!==_0xc241d2&&'right'!==_0xc241d2||_0x3f3434['setAttribute']('align',_0xc241d2);}},D=(_0x56adc9,_0x276a1a)=>{if('TABLE'!==_0x56adc9['tagName']||_0x276a1a['has']('float'))return;const _0x14aea1=f(_0x276a1a),_0x23ae3f=_0x276a1a['getAsString']('width');_0x14aea1&&(c(_0x56adc9,{'align':_0x14aea1}),_0x23ae3f?_0x56adc9['setAttribute']('width',h(_0x23ae3f)):_0x276a1a['remove']('width'),_0x276a1a['remove']('margin-left'),_0x276a1a['remove']('margin-right'));},F=(_0x43ea05,_0x1ae636)=>{if('IMG'!==_0x43ea05['tagName'])return;const _0x3a13a2=_0x1ae636['getAsString']('width');_0x3a13a2&&(_0x43ea05['setAttribute']('width',h(_0x3a13a2)),_0x43ea05['setAttribute']('height','auto'));},_=(_0x264ce8,_0x5b8538,{runAfterDocumentTransformation:_0x1a6f37})=>{if('FIGCAPTION'!==_0x264ce8['tagName'])return;const _0x3c38fc=_0x5b8538['getAsString']('display'),_0x3a3840=_0x5b8538['getAsString']('caption-side');_0x5b8538['remove']('caption-side'),_0x3c38fc&&'table-caption'===_0x4b918c(_0x3c38fc)&&_0x5b8538['remove']('display');const _0x279eaf=_0x3a3840&&'top'===_0x4b918c(_0x3a3840);_0x1a6f37(()=>{const _0x47a235=m(_0x264ce8,'div'),_0x426a24=_0x264ce8['previousElementSibling'];_0x279eaf&&_0x426a24&&'TABLE'===_0x426a24['tagName']?(_0x426a24['before'](_0x47a235),_0x264ce8['remove']()):_0x264ce8['replaceWith'](_0x47a235);});},M=(_0x36aad9,_0x472d2d,{runAfterChildrenTransformation:_0x17b1f3})=>{'TD'===_0x36aad9['tagName']&&_0x17b1f3(()=>{const _0x5e0616=Array['from'](_0x36aad9['children']);if(0x0===_0x5e0616['length'])return;const _0x84b0=_0x5e0616['map'](R),_0x21783f=_0x84b0[0x0];if(_0x21783f&&_0x84b0['every'](_0x6ab0c3=>_0x6ab0c3===_0x21783f)){_0x36aad9['setAttribute']('align',_0x21783f);for(const _0x24d605 of _0x5e0616)if(d(_0x24d605)){const _0x134afd=p(_0x24d605);_0x24d605['replaceWith'](...Array['from'](_0x134afd['childNodes']));}else _0x24d605['style']['removeProperty']('text-align'),_0x24d605['style']['length']||_0x24d605['removeAttribute']('style');}});};function R(_0x257be0){return d(_0x257be0)?p(_0x257be0)['getAttribute']('align'):_0x257be0['style']['textAlign']||void 0x0;}const V=(_0x632b7d,_0x4823a0,{runAfterChildrenTransformation:_0x348619})=>{'TABLE'===_0x632b7d['tagName']&&_0x348619(()=>{const _0x58588f=function(_0x1658ad,_0x480ca2){for(const _0x3b0acc of _0x1658ad['children'])if(_0x3b0acc['tagName']===_0x480ca2)return _0x3b0acc;return null;}(_0x632b7d,'COLGROUP');if(!_0x58588f)return;const _0x2c77e8=Array['from'](_0x58588f['children'])['filter'](_0x51eee9=>'COL'===_0x51eee9['tagName']);if(_0x2c77e8['some'](_0x4febe7=>Q(_0x4febe7,'span')))return;const _0x2b7922=_0x2c77e8['map'](j);if(!_0x2b7922['some'](Boolean))return;const _0x5a02ba=function(_0xabdcc5){const _0x34406e=[];for(const _0x170f55 of _0xabdcc5['children'])if(['THEAD','TBODY','TFOOT']['includes'](_0x170f55['tagName'])){for(const _0x4cb62d of _0x170f55['children'])'TR'===_0x4cb62d['tagName']&&_0x34406e['push'](_0x4cb62d);}return _0x34406e;}(_0x632b7d)['map'](G);if(!_0x5a02ba['some'](_0x4fd2fb=>_0x4fd2fb['length']!==_0x2b7922['length']||_0x4fd2fb['some'](_0x333c83=>function(_0x154ad3){return Q(_0x154ad3,'colspan')||Q(_0x154ad3,'rowspan');}(_0x333c83)||function(_0x21c53d){return Boolean(_0x21c53d['style']['getPropertyValue']('width'))||Boolean(_0x21c53d['getAttribute']('width'));}(_0x333c83)))){for(const _0x51f78e of _0x5a02ba)_0x51f78e['forEach']((_0x5d5a4d,_0x3022a8)=>{const _0x192b36=_0x2b7922[_0x3022a8];_0x192b36&&(_0x5d5a4d['setAttribute']('width',h(_0x192b36)),_0x5d5a4d['style']['setProperty']('width',_0x192b36));});}});};function G(_0x557918){return Array['from'](_0x557918['children'])['filter'](_0x246474=>'TD'===_0x246474['tagName']||'TH'===_0x246474['tagName']);}function j(_0x22bd50){const _0x1d9c95=_0x22bd50['style']['getPropertyValue']('width');if(_0x1d9c95)return _0x1d9c95;const _0x65856f=_0x22bd50['getAttribute']('width');if(!_0x65856f)return;const _0x10e3c8=_0x4b918c(_0x65856f);return/^\d+(\.\d+)?$/['test'](_0x10e3c8)?_0x10e3c8+'px':_0x10e3c8;}function Q(_0x438f06,_0x26f2bc){const _0x2d3412=_0x438f06['getAttribute'](_0x26f2bc);return null!==_0x2d3412&&'1'!==_0x2d3412;}function J(_0xdb2e2d={}){const _0x5b0961=[];return _0xdb2e2d['useFigureToTableFallback']&&_0x5b0961['push'](w,_,M),_0x5b0961['push'](U,D,F,V),_0x5b0961;}export{K as EmailConfigurationHelper,o as EmailConfigurationLogger,k as EmptyBlockEmailIntegration,b as ExportInlineStylesEmailIntegration,T as FontEmailIntegration,O as GeneralHtmlIntegrationSupport,u as HighlightEmailIntegration,I as ImageEmailIntegration,B as LinkEmailIntegration,L as ListEmailIntegration,v as MarkdownEmailIntegration,E as MathTypeEmailIntegration,S as MediaEmbedEmailIntegration,A as MergeFieldsEmailIntegration,$ as MultiLevelListEmailIntegration,x as SourceEditingEmailIntegration,C as TableEmailIntegration,H as TemplateEmailIntegration,q as TodoListEmailIntegration,N as UploadEmailIntegration,J as getEmailInlineStylesTransformations,l as isUnsupportedEmailColorFormat,s as isUnsupportedEmailColorValue,M as transformEmailAlignToAttribute,V as transformEmailColumnWidthsToCells,_ as transformEmailFigcaptionToDiv,w as transformEmailFigureToTable,U as transformEmailFloatToAlign,F as transformEmailImageWidthAttributes,D as transformEmailMarginToAlign};
23
+ import{Plugin as _0x41e47d}from'@ckeditor/ckeditor5-core';import{uid as _0x1f0998}from'@ckeditor/ckeditor5-utils';import{dropImportantStyleSuffix as _0x2315b2}from'@ckeditor/ckeditor5-export-inline-styles';const r='https://ckeditor.com/docs/ckeditor5/latest';var o=class extends _0x41e47d{static get['pluginName'](){return'EmailConfigurationLogger';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4e1768){super(_0x4e1768),_0x4e1768['config']['define']('email.logs',{'suppress':[],'suppressAll':!0x1});}afterInit(){!async function(_0x191f44){const _0x29feaa='uizTdvyBIa4RKsnOYmEXGMfjehwJQqbPSCk7DtZgF58Lxl29Ho6cAUW1pV3Nr0',_0x3171ee=0x79170,_0x1238d5=window['Date']['now'](),_0x710f26=_0x191f44['editor'],_0x12539f=new window['Promise'](_0x271f6a=>{_0x710f26['once']('ready',_0x271f6a);}),_0x1fc3c2={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x1ef6b1=_0x710f26['config']['get']('licenseKey');async function _0x1dff62(){let _0xa1d5f8,_0x2b888b=null,_0x5ea9a8=null;try{return'GPL'==_0x1ef6b1?'NotAllowed':(_0xa1d5f8=_0x478e5a(),_0xa1d5f8?(_0xa1d5f8['usageEndpoint']&&(_0x5ea9a8=_0x1357cc(_0xa1d5f8['usageEndpoint'],_0xa1d5f8['jti'])),await _0xc0e740()?_0x277551()?_0x201761()?'Expired':_0xa95b96()?('evaluation'==_0xa1d5f8['licenseType']&&(_0x2b888b=_0x4600f0('EvaluationLimit')),await _0x3f140b()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x201761(){const _0x2368b2=['evaluation','trial']['includes'](_0xa1d5f8['licenseType'])?_0x1238d5/0x3e8:0xe10*_0x3171ee;return _0xa1d5f8['exp']<_0x2368b2;}function _0x277551(){const _0x4a22e0=_0xa1d5f8['features'];return!!_0x4a22e0&&(!!_0x4a22e0['includes']('*')||!!_0x4a22e0['includes']('ECH'));}function _0xa95b96(){const _0x679100=_0xa1d5f8['licensedHosts'];if(!_0x679100||0x0==_0x679100['length'])return!0x0;const {hostname:_0x406a89}=new URL(window['location']['href']);if(_0x679100['includes'](_0x406a89))return!0x0;const _0x5d715a=_0x406a89['split']('.');return _0x679100['filter'](_0x2173be=>_0x2173be['includes']('*'))['map'](_0x56f64a=>_0x56f64a['split']('.'))['filter'](_0x3bce67=>_0x3bce67['length']<=_0x5d715a['length'])['map'](_0x32d159=>Array(_0x5d715a['length']-_0x32d159['length'])['fill']('*'===_0x32d159[0x0]?'*':'')['concat'](_0x32d159))['some'](_0xe3749a=>_0x5d715a['every']((_0x92c8b1,_0x49cbde)=>_0xe3749a[_0x49cbde]===_0x92c8b1||'*'===_0xe3749a[_0x49cbde]));}function _0x3f140b(){return _0x2b888b&&_0x5ea9a8?new window['Promise']((_0x4ad9df,_0x11698a)=>{_0x2b888b['then'](_0x4ad9df,_0x11698a),_0x5ea9a8['then'](_0x320825=>{'Valid'!=_0x320825&&_0x4ad9df(_0x320825);},_0x11698a);}):_0x2b888b||_0x5ea9a8||'Valid';}}function _0x1357cc(_0xb86034,_0x29385e){return new window['Promise'](_0x2c84b8=>{if(_0x488dec())return _0x2c84b8('Valid');_0xad654a(),_0x710f26['decorate']('_sendUsageRequest');let _0x64b9b4=!0x1;const _0x4c8ebc=_0x1f0998();function _0x565c8c(_0x5abefd){return!!_0x5abefd&&('object'==typeof _0x5abefd||'function'==typeof _0x5abefd)&&'function'==typeof _0x5abefd['then']&&'function'==typeof _0x5abefd['catch'];}function _0x4e3ae5(_0x5085c3){_0x2bed91(_0x5085c3)['then'](_0x3cf799=>_0x3cf799&&'ok'==_0x3cf799['status']?_0x341b58(_0x4293b2(_0x4c8ebc+_0x29385e))!=_0x3cf799['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x4fd9d5=>(_0x371fb5(),_0x4fd9d5),()=>{const _0x15cb4a=_0x47810b();return null==_0x15cb4a?(_0x371fb5(),'Valid'):_0x1238d5-_0x15cb4a>0x240c8400?'UsageLimit':'Valid';})['then'](_0x2c84b8)['catch'](()=>{_0x2c84b8('UsageLimit');});const _0x15b3c7=0x36ee80;function _0x371fb5(){const _0x278aca='llct-'+_0x341b58(_0x4293b2(_0xb86034)),_0x57c381=_0x4814cb(_0x341b58(window['Math']['ceil'](_0x1238d5/_0x15b3c7)));window['localStorage']['setItem'](_0x278aca,_0x57c381);}function _0x47810b(){const _0x3f1ee2='llct-'+_0x341b58(_0x4293b2(_0xb86034)),_0x207e65=window['localStorage']['getItem'](_0x3f1ee2);return _0x207e65?window['parseInt'](_0x4814cb(_0x207e65),0x10)*_0x15b3c7:null;}function _0x2bed91(_0x51a392){return new window['Promise']((_0xb852c4,_0x5c7636)=>{_0x51a392['then'](_0xb852c4,_0x5c7636),window['setTimeout'](_0x5c7636,0x1d4c0);});}}_0x710f26['on']('_sendUsageRequest',(_0x70b5eb,_0x298834)=>{if(_0x298834[0x0]!=_0xb86034)return _0x2c84b8('UsageLimit');_0x298834[0x1]={..._0x298834[0x1],'requestId':_0x4c8ebc};},{'priority':'high'}),_0x710f26['on']('_sendUsageRequest',_0x1da756=>{_0x565c8c(_0x1da756['return'])&&(_0x64b9b4=!0x0,_0x4e3ae5(_0x1da756['return']));},{'priority':'low'}),_0x12539f['then'](()=>{_0x64b9b4||_0x2c84b8('UsageLimit');});});function _0x488dec(){return'auto'==_0x710f26['editing']['view']['_overlayModeHint'];}function _0xad654a(){_0x710f26['editing']['view']['_overlayModeHint']='auto';}}function _0x4600f0(_0x247d82){const _0xf307d3=[new window['Promise'](_0x5b2b70=>setTimeout(_0x5b2b70,0x93ecc)),_0x12539f['then'](()=>new window['Promise'](_0xe5b3dd=>{let _0x10ee55=0x0;_0x710f26['model']['on']('applyOperation',(_0x111636,_0x3f0b70)=>{_0x3f0b70[0x0]['isDocumentOperation']&&_0x10ee55++,0x5e8==_0x10ee55&&(_0xe5b3dd(),_0x111636['off']());});}))];return window['Promise']['race'](_0xf307d3)['then'](()=>_0x247d82);}async function _0x3646f5(){await _0x12539f,_0x710f26['model']['change']=_0x109a27,_0x710f26['model']['enqueueChange']=_0x109a27,_0x710f26['enableReadOnlyMode']('model');}function _0x37c8d8(_0x178464){const _0x23d35f=_0x31ca66();_0x710f26[_0x23d35f]='emailConfigurationHelperLicenseKey'+_0x178464,'Valid'!=_0x178464&&_0x3646f5();}function _0x31ca66(){const _0x3baa02=window['String'](window['performance']['now']())['replace']('.','');let _0x424e1f='u';for(let _0x5dc69b=0x0;_0x5dc69b<_0x3baa02['length'];_0x5dc69b+=0x2){let _0x11f3b3=window['parseInt'](_0x3baa02['substring'](_0x5dc69b,_0x5dc69b+0x2));_0x11f3b3>=0x3e&&(_0x11f3b3-=0x3e),_0x424e1f+=_0x29feaa[_0x11f3b3];}return _0x424e1f;}function _0x478e5a(){const _0x39e0ea=_0x1ef6b1['split']('.');if(0x3!=_0x39e0ea['length'])return null;return _0x1ad721(_0x39e0ea[0x1]);function _0x1ad721(_0x4a7142){const _0xd120fd=_0x3908ae(_0x4a7142);return _0xd120fd&&_0x532bfa()?_0xd120fd:null;function _0x532bfa(){const _0x59ecf6=_0xd120fd['jti'],_0x4e2887=window['parseInt'](_0x59ecf6['substring'](_0x59ecf6['length']-0x8),0x10),_0xeca0f6={..._0xd120fd,'jti':_0x59ecf6['substring'](0x0,_0x59ecf6['length']-0x8)};return delete _0xeca0f6['vc'],_0x4293b2(_0xeca0f6)==_0x4e2887;}}}async function _0xc0e740(){let _0x5564e0=!0x0;try{const [_0x5a408f,_0x3d69a9,_0x21195a]=_0x1ef6b1['split']('.');return _0x513f8c(_0x5a408f),await _0x3f158b(_0x5a408f,_0x3d69a9,_0x21195a),_0x5564e0;}catch{return!0x1;}function _0x513f8c(_0x23c64e){const _0x15d0ad=_0x3908ae(_0x23c64e);_0x15d0ad&&'ES256'==_0x15d0ad['alg']||(_0x5564e0=!0x1);}async function _0x3f158b(_0x29a9c0,_0x27c4f5,_0x4c42f3){const _0x282fe4=window['Uint8Array']['from'](_0x44030e(_0x4c42f3),_0x26a4fd=>_0x26a4fd['charCodeAt'](0x0)),_0x339580=new window['TextEncoder']()['encode'](_0x29a9c0+'.'+_0x27c4f5),_0x25c9f3=window['crypto']['subtle'];if(!_0x25c9f3)return;const _0xf35bb1=await _0x25c9f3['importKey']('jwk',_0x1fc3c2,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x25c9f3['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0xf35bb1,_0x282fe4,_0x339580)||(_0x5564e0=!0x1);}}function _0x3908ae(_0x50f33d){return _0x50f33d['startsWith']('ey')?JSON['parse'](_0x44030e(_0x50f33d)):null;}function _0x44030e(_0x2a00a3){return window['atob'](_0x2a00a3['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x4293b2(_0x277de0){let _0x2680ac=0x1505;function _0x58281f(_0x3edbaa){for(let _0x100e6f=0x0;_0x100e6f<_0x3edbaa['length'];_0x100e6f++){const _0x561e82=_0x3edbaa['charCodeAt'](_0x100e6f);_0x2680ac=(_0x2680ac<<0x5)+_0x2680ac+_0x561e82,_0x2680ac&=_0x2680ac;}}function _0x140113(_0xa15b45){Array['isArray'](_0xa15b45)?_0xa15b45['forEach'](_0x140113):_0xa15b45&&'object'==typeof _0xa15b45?Object['entries'](_0xa15b45)['sort']()['forEach'](([_0x3566a6,_0x30e49d])=>{_0x58281f(_0x3566a6),_0x140113(_0x30e49d);}):_0x58281f(window['String'](_0xa15b45));}return _0x140113(_0x277de0),_0x2680ac>>>0x0;}function _0x341b58(_0x49520c){return _0x49520c['toString'](0x10)['padStart'](0x8,'0');}function _0x4814cb(_0x59c380){return _0x59c380['split']('')['reverse']()['join']('');}function _0x109a27(){}_0x37c8d8(await _0x1dff62());}(this);}['_logSuppressibleWarning'](_0xdac5fc,_0x5e73b3){if(this['_isSuppressedLog'](_0xdac5fc,_0x5e73b3))return;const _0x1fc7a3=r+'/support/error-codes.html#error-'+_0xdac5fc;console['warn']('%cEmailConfigurationHelper%c\x20'+_0xdac5fc,'background:\x20#E65100;\x20color:\x20white;\x20padding:\x202px\x204px;','',..._0x5e73b3?[_0x5e73b3]:[],'\x0aRead\x20more:\x20'+_0x1fc7a3);}['_logSuppressibleInfo'](_0x3abf3a,_0x467d67,_0x2d2308){if(this['_isSuppressedLog'](_0x3abf3a))return;let _0x3ccee2=_0x467d67;_0x2d2308&&(_0x3ccee2+='\x0aRead\x20more:\x20'+(r+'/'+_0x2d2308)),console['info']('%cEmailConfigurationHelper%c\x20'+_0x3abf3a,'background:\x20#4169E1;\x20color:\x20white;\x20padding:\x202px\x204px;','',_0x3ccee2);}_checkUnsupportedPlugin(_0x30512b,_0x52b426){this['editor']['plugins']['has'](_0x30512b)&&this['_logSuppressibleWarning']('email-configuration-unsupported-plugin',{'pluginName':_0x30512b,..._0x52b426});}_validateConfigColorValue(_0x1a5533){const _0x3766fb=this['editor']['config']['get'](_0x1a5533);if(!_0x3766fb)return;const _0x321719=Array['isArray'](_0x3766fb),_0x511c16=_0x321719?_0x3766fb:[_0x3766fb];for(const [_0x3406fa,_0x542a56]of _0x511c16['entries']()){const _0x44cf6d='string'==typeof _0x542a56?_0x542a56:_0x542a56['color'];s(_0x44cf6d)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-value',{'configPath':_0x321719?_0x1a5533+'['+_0x3406fa+']':_0x1a5533,'color':_0x44cf6d});}}_validateConfigColorFormat(_0x1a8ac0){const _0x1d559e=this['editor']['config']['get'](_0x1a8ac0);_0x1d559e&&l(_0x1d559e)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-format',{'configPath':_0x1a8ac0,'format':_0x1d559e});}['_isSuppressedLog'](_0x533286,_0x105845){const _0x3dc77d=this['editor']['config']['get']('email.logs');return!!_0x3dc77d['suppressAll']||(!('function'!=typeof _0x3dc77d['suppress']||!_0x3dc77d['suppress'](_0x533286,_0x105845))||!(!Array['isArray'](_0x3dc77d['suppress'])||!_0x3dc77d['suppress']['includes'](_0x533286)));}};const a=['hsl','hsla','hwb','lab','lch','oklab','oklch','color-mix','rgba'];function s(_0x223874){return!!_0x223874&&a['some'](_0x43afd1=>_0x223874['includes'](_0x43afd1+'('));}function l(_0x158596){return!!_0x158596&&a['includes'](_0x158596);}var u=class extends _0x41e47d{static get requires(){return[o];}static get['pluginName'](){return'HighlightEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['editor']['plugins']['get'](o)['_checkUnsupportedPlugin']('Highlight');}};function c(_0x592365,_0x18ae31){const _0x23e7d2=_0x592365['ownerDocument'],{table:_0x1f314c,cell:_0x2a258c}=g(_0x23e7d2,'100%');_0x18ae31['align']&&_0x2a258c['setAttribute']('align',_0x2315b2(_0x18ae31['align']));let _0x35da6c=_0x2a258c;if(_0x18ae31['width']){const {table:_0xdced8a,cell:_0x41c06c}=g(_0x23e7d2,_0x2315b2(_0x18ae31['width']));_0x2a258c['appendChild'](_0xdced8a),_0x35da6c=_0x41c06c;}return _0x592365['replaceWith'](_0x1f314c),_0x592365['removeAttribute']('align'),_0x592365['removeAttribute']('width'),_0x35da6c['appendChild'](_0x592365),_0x35da6c;}function g(_0x579452,_0x2c97ce){const _0x217cdc=_0x579452['createElement']('table');_0x2c97ce&&(_0x217cdc['style']['width']=_0x2c97ce,_0x217cdc['setAttribute']('width',h(_0x2c97ce))),_0x217cdc['setAttribute']('cellpadding','0'),_0x217cdc['setAttribute']('cellspacing','0'),_0x217cdc['setAttribute']('border','0'),_0x217cdc['setAttribute']('role','presentation');const _0x19c5ee=_0x579452['createElement']('tbody'),_0x1db0ae=_0x579452['createElement']('tr'),_0xcf25c4=_0x579452['createElement']('td');return _0x217cdc['appendChild'](_0x19c5ee),_0x19c5ee['appendChild'](_0x1db0ae),_0x1db0ae['appendChild'](_0xcf25c4),{'table':_0x217cdc,'cell':_0xcf25c4};}function f(_0x162224){const _0x2d2947=_0x162224['getAsString']('margin-left'),_0x1a3e5a=_0x162224['getAsString']('margin-right'),_0x30ee77=_0x2d2947&&_0x2315b2(_0x2d2947),_0x5ce60d=_0x1a3e5a&&_0x2315b2(_0x1a3e5a);return'auto'===_0x30ee77&&'auto'===_0x5ce60d?'center':'auto'===_0x30ee77?'right':'auto'===_0x5ce60d?'left':void 0x0;}function m(_0x5f436e,_0x395c9c){const _0x32ced4=_0x5f436e['ownerDocument']['createElement'](_0x395c9c);for(const _0x5f18c2 of Array['from'](_0x5f436e['attributes']))_0x32ced4['setAttribute'](_0x5f18c2['name'],_0x5f18c2['value']);for(;_0x5f436e['firstChild'];)_0x32ced4['appendChild'](_0x5f436e['firstChild']);return _0x32ced4;}function d(_0x7ee5d7){if('TABLE'!==_0x7ee5d7['tagName'])return!0x1;if('presentation'!==_0x7ee5d7['getAttribute']('role'))return!0x1;const _0x178fb5=p(_0x7ee5d7);return null!==_0x178fb5&&_0x178fb5['hasAttribute']('align');}function p(_0x370f81){let _0x5a5299=_0x370f81;0x1===_0x370f81['children']['length']&&'TBODY'===_0x370f81['children'][0x0]['tagName']&&(_0x5a5299=_0x370f81['children'][0x0]);const _0x5ecd60=_0x5a5299['children'];if(0x1!==_0x5ecd60['length']||'TR'!==_0x5ecd60[0x0]['tagName'])return null;const _0x882b6d=_0x5ecd60[0x0]['children'];return 0x1!==_0x882b6d['length']||'TD'!==_0x882b6d[0x0]['tagName']?null:_0x882b6d[0x0];}function h(_0xfc09a9){return function(_0x26808){return _0x26808['endsWith']('px')?_0x26808['slice'](0x0,-0x2):_0x26808;}(_0x2315b2(_0xfc09a9));}const w=(_0x20c12c,_0x1eaf43,{runAfterDocumentTransformation:_0x5926c0,runAfterChildrenTransformation:_0x422a78})=>{if('FIGURE'!==_0x20c12c['tagName'])return;const _0x36aeb3=_0x1eaf43['getAsString']('float');if(_0x36aeb3){if(P(_0x20c12c))_0x5926c0(()=>{y(_0x20c12c,{'align':_0x36aeb3});});else{const {table:_0x3b1be4,cell:_0x2443e7}=g(_0x20c12c['ownerDocument']);_0x3b1be4['setAttribute']('align',_0x2315b2(_0x36aeb3)),_0x3b1be4['setAttribute']('style',function(_0xa5f502){return _0xa5f502['getStylesEntries']()['map'](_0x5711be=>_0x5711be['join'](':'))['join'](';')+';';}(_0x1eaf43)),_0x422a78(()=>{for(const _0x2016c6 of Array['from'](_0x20c12c['childNodes']))_0x2443e7['appendChild'](_0x2016c6);}),_0x5926c0(()=>{_0x20c12c['replaceWith'](_0x3b1be4);});}}else{const _0xa8492e=f(_0x1eaf43),_0x27c74e=_0x1eaf43['getAsString']('width');if(!_0xa8492e&&!_0x27c74e)return;c(_0x20c12c,{'align':_0xa8492e,'width':_0x27c74e}),_0x27c74e&&_0x1eaf43['set']('width','100%'),_0x1eaf43['remove']('margin-left'),_0x1eaf43['remove']('margin-right'),_0x1eaf43['remove']('min-width'),_0x1eaf43['remove']('max-width'),_0x5926c0(()=>{if(!y(_0x20c12c)){const _0x24ff52=m(_0x20c12c,'div');_0x20c12c['replaceWith'](_0x24ff52);}});}};function y(_0x4ac7fd,_0xf5b3f5={}){const _0x485737=P(_0x4ac7fd);if(!_0x485737)return null;for(const _0x4e61b3 of['id','class']){const _0x5babf9=_0x4ac7fd['getAttribute'](_0x4e61b3);_0x5babf9&&_0x485737['setAttribute'](_0x4e61b3,_0x5babf9);}for(const _0xee2cd7 of['display','float','width','height'])_0x485737['style']['removeProperty'](_0xee2cd7);const _0x105cd1=_0x4ac7fd['getAttribute']('style');if(_0x105cd1){const _0x185027=_0x485737['getAttribute']('style')||'';_0x485737['setAttribute']('style',_0x105cd1+_0x185027);}return _0xf5b3f5['align']&&_0x485737['setAttribute']('align',_0x2315b2(_0xf5b3f5['align'])),'fixed'!==_0x485737['style']['tableLayout']||_0x485737['style']['width']||(_0x485737['style']['width']='100%',_0x485737['setAttribute']('width','100%')),_0x4ac7fd['replaceWith'](_0x485737),_0x485737;}function P(_0x214b0a){const _0x34a6d1=Array['from'](_0x214b0a['children']);return 0x1===_0x34a6d1['length']&&'TABLE'===_0x34a6d1[0x0]['tagName']?_0x34a6d1[0x0]:null;}var I=class extends _0x41e47d{static get requires(){return[o];}static get['pluginName'](){return'ImageEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {config:_0x490d99,plugins:_0x7e533a}=this['editor'];_0x490d99['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x7e533a['get'](o)['_checkUnsupportedPlugin']('ImageBlock',{'description':'Block\x20images\x20are\x20unsupported\x20in\x20email\x20environments.\x20Consider\x20enabling\x20the\x20`transformEmailFigureToTable`\x20transformation\x20in\x20the\x20`exportInlineStyles`\x20in\x20order\x20to\x20make\x20block\x20images\x20work\x20in\x20email\x20clients.'});}},E=class extends _0x41e47d{static get requires(){return[o];}static get['pluginName'](){return'MathTypeEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['editor']['plugins']['get'](o)['_checkUnsupportedPlugin']('MathType');}},b=class extends _0x41e47d{static get requires(){return[o];}static get['pluginName'](){return'ExportInlineStylesEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x512674=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('ExportInlineStyles')||_0x512674['_logSuppressibleWarning']('email-configuration-missing-export-inline-styles-plugin');}},L=class extends _0x41e47d{static get requires(){return[o];}static get['pluginName'](){return'ListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x3dcf09=this['editor']['plugins']['get'](o),_0x47a1f3=this['editor']['config']['get']('list');_0x47a1f3&&_0x47a1f3['properties']&&_0x47a1f3['properties']['reversed']&&_0x3dcf09['_logSuppressibleWarning']('email-configuration-unsupported-reversed-list'),_0x47a1f3&&_0x47a1f3['enableListItemMarkerFormatting']&&_0x3dcf09['_logSuppressibleWarning']('email-configuration-unsupported-list-item-marker-formatting');}},C=class extends _0x41e47d{static get requires(){return[o];}static get['pluginName'](){return'TableEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['_checkRequiredTablePlugins'](),this['_checkTableConfig']();}['_checkRequiredTablePlugins'](){const {plugins:_0x42eb8e}=this['editor'],_0x387f0e=_0x42eb8e['get'](o);_0x42eb8e['has']('Table')&&(_0x42eb8e['has']('PlainTableOutput')||_0x387f0e['_logSuppressibleWarning']('email-configuration-missing-plain-table-output-plugin'),_0x42eb8e['has']('TableLayout')||_0x387f0e['_logSuppressibleWarning']('email-configuration-missing-table-layout-plugin'));}['_checkTableConfig'](){const {config:_0x30b5b1,plugins:_0x2f9412}=this['editor'];_0x30b5b1['get']('table')&&_0x2f9412['has']('Table')&&(this['_checkTablePropertiesConfig']('tableCellProperties'),this['_checkTablePropertiesConfig']('tableProperties'));}_checkTablePropertiesConfig(_0x462213){const _0x2bd95c=this['editor']['plugins']['get'](o);_0x2bd95c['_validateConfigColorValue']('table.'+_0x462213+'.borderColors'),_0x2bd95c['_validateConfigColorValue']('table.'+_0x462213+'.backgroundColors'),_0x2bd95c['_validateConfigColorValue']('table.'+_0x462213+'.defaultProperties.borderColor'),_0x2bd95c['_validateConfigColorValue']('table.'+_0x462213+'.defaultProperties'),_0x2bd95c['_validateConfigColorFormat']('table.'+_0x462213+'.colorPicker.format');}},k=class extends _0x41e47d{static get requires(){return[o];}static get['pluginName'](){return'EmptyBlockEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x753a9e=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('EmptyBlock')||_0x753a9e['_logSuppressibleInfo']('email-configuration-missing-empty-block-plugin','Consider\x20enabling\x20the\x20EmptyBlock\x20plugin\x20to\x20ensure\x20that\x20exported\x20content\x20has\x20empty\x20blocks.','features/email-editing/email.html#empty-block-plugin');}},T=class extends _0x41e47d{static get requires(){return[o];}static get['pluginName'](){return'FontEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {plugins:_0x5e4ed6}=this['editor'];_0x5e4ed6['has']('FontColorEditing')&&this['_checkColorConfig']('fontColor'),_0x5e4ed6['has']('FontBackgroundColorEditing')&&this['_checkColorConfig']('fontBackgroundColor');}['_checkColorConfig'](_0x52500e){const _0x4b849d=this['editor']['plugins']['get'](o);_0x4b849d['_validateConfigColorValue'](_0x52500e+'.colors'),_0x4b849d['_validateConfigColorValue'](_0x52500e+'.documentColors'),_0x4b849d['_validateConfigColorFormat'](_0x52500e+'.colorPicker.format');}},x=class extends _0x41e47d{static get requires(){return[o];}static get['pluginName'](){return'SourceEditingEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {plugins:_0x45e138}=this['editor'],_0x1e20ec=_0x45e138['get'](o);_0x45e138['has']('SourceEditing')||_0x45e138['has']('SourceEditingEnhanced')||_0x1e20ec['_logSuppressibleWarning']('email-configuration-missing-source-editing-plugin');}},v=class extends _0x41e47d{static get requires(){return[o];}static get['pluginName'](){return'MarkdownEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['editor']['plugins']['get'](o)['_checkUnsupportedPlugin']('Markdown');}},O=class GeneralHtmlIntegrationSupport extends _0x41e47d{static ['UNSUPPORTED_ELEMENTS']=new Set(['object','article','details','main','nav','summary','abbr','acronym','bdi','output','hgroup','form','input','button','audio','canvas','meter','progress','iframe']);static get requires(){return[o];}static get['pluginName'](){return'GeneralHtmlIntegrationSupport';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {plugins:_0x505a55}=this['editor'];if(!_0x505a55['has']('DataFilter'))return;const _0x19776c=_0x505a55['get']('DataFilter'),_0x2b3bd=_0x505a55['get'](o);for(const _0x44d45d of GeneralHtmlIntegrationSupport['UNSUPPORTED_ELEMENTS'])_0x19776c['once']('register:'+_0x44d45d,(_0x1705f4,_0x1b8847)=>{_0x2b3bd['_logSuppressibleWarning']('email-unsupported-html-element',{'element':_0x1b8847['view']});});}},A=class extends _0x41e47d{static get requires(){return[o];}static get['pluginName'](){return'MergeFieldsEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x4133de=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('MergeFields')||_0x4133de['_logSuppressibleInfo']('email-configuration-missing-merge-fields-plugin','Consider\x20enabling\x20the\x20MergeFields\x20plugin\x20which\x20allows\x20inserting\x20dynamic\x20data\x20placeholders\x20into\x20content.','features/email-editing/email.html#merge-fields-plugin');}},H=class extends _0x41e47d{static get requires(){return[o];}static get['pluginName'](){return'TemplateEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x5cedf2=this['editor']['plugins']['get'](o);this['editor']['plugins']['has']('Template')||_0x5cedf2['_logSuppressibleInfo']('email-configuration-missing-template-plugin','Consider\x20enabling\x20the\x20Template\x20plugin\x20which\x20allows\x20inserting\x20predefined\x20e-mail\x20templates\x20into\x20the\x20editor.','features/email-editing/email.html#template-plugin');}},N=class extends _0x41e47d{static get requires(){return[o];}static get['pluginName'](){return'UploadEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['editor']['plugins']['get'](o)['_checkUnsupportedPlugin']('Base64UploadAdapter');}},S=class extends _0x41e47d{static get requires(){return[o];}static get['pluginName'](){return'MediaEmbedEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['editor']['plugins']['get'](o)['_checkUnsupportedPlugin']('MediaEmbed');}},q=class extends _0x41e47d{static get requires(){return[o];}static get['pluginName'](){return'TodoListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['editor']['plugins']['get'](o)['_checkUnsupportedPlugin']('TodoList');}},$=class extends _0x41e47d{static get requires(){return[o];}static get['pluginName'](){return'MultiLevelListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['editor']['plugins']['get'](o)['_checkUnsupportedPlugin']('MultiLevelList',{'description':'The\x20multi-level\x20lists\x20are\x20rendered\x20incorrectly\x20in\x20Outlook\x202021.'});}},B=class extends _0x41e47d{static get requires(){return[o];}static get['pluginName'](){return'LinkEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {config:_0x521e4a,plugins:_0x3128bf}=this['editor'],_0x375a19=_0x3128bf['get'](o);_0x521e4a['get']('exportInlineStyles')?.['transformations']?.['includes'](w)||_0x375a19['_checkUnsupportedPlugin']('LinkImage',{'description':'Block\x20images\x20are\x20unsupported\x20in\x20email\x20environments.\x20The\x20LinkImage\x20plugin\x20is\x20designed\x20to\x20work\x20exclusively\x20with\x20block\x20images,\x20which\x20makes\x20it\x20not\x20applicable\x20for\x20email\x20integration.\x20Inline\x20images\x20are\x20still\x20supported\x20and\x20function\x20correctly\x20with\x20the\x20standard\x20Link\x20feature.\x20Consider\x20enabling\x20the\x20`transformEmailFigureToTable`\x20transformation\x20in\x20the\x20`exportInlineStyles`\x20in\x20order\x20to\x20make\x20block\x20images\x20work\x20in\x20email\x20clients.'});}},K=class extends _0x41e47d{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'EmailConfigurationHelper';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[u,I,E,b,L,C,k,T,x,v,O,A,H,N,S,q,$,B];}init(){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5dc287=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x47d0df;for(const _0x652b50 in _0x5dc287){const _0x4d8dd7=_0x652b50,_0x1eef96=_0x5dc287[_0x4d8dd7];if('emailConfigurationHelperLicenseKeyValid'==_0x1eef96||'emailConfigurationHelperLicenseKeyInvalid'==_0x1eef96||'emailConfigurationHelperLicenseKeyExpired'==_0x1eef96||'emailConfigurationHelperLicenseKeyDomainLimit'==_0x1eef96||'emailConfigurationHelperLicenseKeyNotAllowed'==_0x1eef96||'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x1eef96||'emailConfigurationHelperLicenseKeyUsageLimit'==_0x1eef96){delete _0x5dc287[_0x4d8dd7],_0x47d0df=_0x1eef96,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'emailConfigurationHelperLicenseKeyInvalid'==_0x47d0df&&_0x5dc287['_showLicenseError']('invalid'),'emailConfigurationHelperLicenseKeyExpired'==_0x47d0df&&_0x5dc287['_showLicenseError']('expired'),'emailConfigurationHelperLicenseKeyDomainLimit'==_0x47d0df&&_0x5dc287['_showLicenseError']('domainLimit'),'emailConfigurationHelperLicenseKeyNotAllowed'==_0x47d0df&&_0x5dc287['_showLicenseError']('featureNotAllowed','EmailConfigurationHelper'),'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x47d0df&&_0x5dc287['_showLicenseError']('evaluationLimit'),'emailConfigurationHelperLicenseKeyUsageLimit'==_0x47d0df&&_0x5dc287['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};const U=(_0x55a7d3,_0x2e9bb6)=>{if(!['TABLE','IMG']['includes'](_0x55a7d3['tagName']))return;const _0x279883=_0x2e9bb6['getAsString']('float');if(_0x279883){const _0x5525c0=_0x2315b2(_0x279883);'left'!==_0x5525c0&&'right'!==_0x5525c0||_0x55a7d3['setAttribute']('align',_0x5525c0);}},D=(_0x46dfad,_0x58e83e)=>{if('TABLE'!==_0x46dfad['tagName']||_0x58e83e['has']('float'))return;const _0x32583e=f(_0x58e83e),_0xde2929=_0x58e83e['getAsString']('width');_0x32583e&&(c(_0x46dfad,{'align':_0x32583e}),_0xde2929?_0x46dfad['setAttribute']('width',h(_0xde2929)):_0x58e83e['remove']('width'),_0x58e83e['remove']('margin-left'),_0x58e83e['remove']('margin-right'));},F=(_0x83621b,_0x3368b8)=>{if('IMG'!==_0x83621b['tagName'])return;const _0x3551f2=_0x3368b8['getAsString']('width');_0x3551f2&&(_0x83621b['setAttribute']('width',h(_0x3551f2)),_0x83621b['setAttribute']('height','auto'));},_=(_0x5a8c4e,_0x478875,{runAfterDocumentTransformation:_0x58832e})=>{if('FIGCAPTION'!==_0x5a8c4e['tagName'])return;const _0x76639e=_0x478875['getAsString']('display'),_0x1c9f47=_0x478875['getAsString']('caption-side');_0x478875['remove']('caption-side'),_0x76639e&&'table-caption'===_0x2315b2(_0x76639e)&&_0x478875['remove']('display');const _0xf3e17d=_0x1c9f47&&'top'===_0x2315b2(_0x1c9f47);_0x58832e(()=>{const _0x496f42=m(_0x5a8c4e,'div'),_0x568252=_0x5a8c4e['previousElementSibling'];_0xf3e17d&&_0x568252&&'TABLE'===_0x568252['tagName']?(_0x568252['before'](_0x496f42),_0x5a8c4e['remove']()):_0x5a8c4e['replaceWith'](_0x496f42);});},M=(_0x5e925a,_0x4db1d1,{runAfterChildrenTransformation:_0x3cc27f})=>{'TD'===_0x5e925a['tagName']&&_0x3cc27f(()=>{const _0x370bf6=Array['from'](_0x5e925a['children']);if(0x0===_0x370bf6['length'])return;const _0x41dddc=_0x370bf6['map'](R),_0x576341=_0x41dddc[0x0];if(_0x576341&&_0x41dddc['every'](_0x809d2b=>_0x809d2b===_0x576341)){_0x5e925a['setAttribute']('align',_0x576341);for(const _0x5e417b of _0x370bf6)if(d(_0x5e417b)){const _0x24a0f9=p(_0x5e417b);_0x5e417b['replaceWith'](...Array['from'](_0x24a0f9['childNodes']));}else _0x5e417b['style']['removeProperty']('text-align'),_0x5e417b['style']['length']||_0x5e417b['removeAttribute']('style');}});};function R(_0x59b5e8){return d(_0x59b5e8)?p(_0x59b5e8)['getAttribute']('align'):_0x59b5e8['style']['textAlign']||void 0x0;}const V=(_0x373c06,_0x3243a1,{runAfterChildrenTransformation:_0x157af3})=>{'TABLE'===_0x373c06['tagName']&&_0x157af3(()=>{const _0x5c14e9=function(_0x4578e7,_0x272360){for(const _0x24aa38 of _0x4578e7['children'])if(_0x24aa38['tagName']===_0x272360)return _0x24aa38;return null;}(_0x373c06,'COLGROUP');if(!_0x5c14e9)return;const _0x4e9268=Array['from'](_0x5c14e9['children'])['filter'](_0x3db3a0=>'COL'===_0x3db3a0['tagName']);if(_0x4e9268['some'](_0x1c82fe=>Q(_0x1c82fe,'span')))return;const _0xe3ba12=_0x4e9268['map'](j);if(!_0xe3ba12['some'](Boolean))return;const _0x2c4fa3=function(_0x1083b3){const _0x6f9de2=[];for(const _0x340413 of _0x1083b3['children'])if(['THEAD','TBODY','TFOOT']['includes'](_0x340413['tagName'])){for(const _0x5c0f4c of _0x340413['children'])'TR'===_0x5c0f4c['tagName']&&_0x6f9de2['push'](_0x5c0f4c);}return _0x6f9de2;}(_0x373c06)['map'](G);if(!_0x2c4fa3['some'](_0x48a015=>_0x48a015['length']!==_0xe3ba12['length']||_0x48a015['some'](_0x292b9b=>function(_0x3a7969){return Q(_0x3a7969,'colspan')||Q(_0x3a7969,'rowspan');}(_0x292b9b)||function(_0x38e69f){return Boolean(_0x38e69f['style']['getPropertyValue']('width'))||Boolean(_0x38e69f['getAttribute']('width'));}(_0x292b9b)))){for(const _0x38a667 of _0x2c4fa3)_0x38a667['forEach']((_0x550447,_0x4575d9)=>{const _0x2f70bb=_0xe3ba12[_0x4575d9];_0x2f70bb&&(_0x550447['setAttribute']('width',h(_0x2f70bb)),_0x550447['style']['setProperty']('width',_0x2f70bb));});}});};function G(_0x5d593c){return Array['from'](_0x5d593c['children'])['filter'](_0x1bc239=>'TD'===_0x1bc239['tagName']||'TH'===_0x1bc239['tagName']);}function j(_0x5be494){const _0xb8159b=_0x5be494['style']['getPropertyValue']('width');if(_0xb8159b)return _0xb8159b;const _0x3ad3a2=_0x5be494['getAttribute']('width');if(!_0x3ad3a2)return;const _0x161b71=_0x2315b2(_0x3ad3a2);return/^\d+(\.\d+)?$/['test'](_0x161b71)?_0x161b71+'px':_0x161b71;}function Q(_0x3599d0,_0x2f0668){const _0x34326f=_0x3599d0['getAttribute'](_0x2f0668);return null!==_0x34326f&&'1'!==_0x34326f;}function J(_0x25e20c={}){const _0x15c5e9=[];return _0x25e20c['useFigureToTableFallback']&&_0x15c5e9['push'](w,_,M),_0x15c5e9['push'](U,D,F,V),_0x15c5e9;}export{K as EmailConfigurationHelper,o as EmailConfigurationLogger,k as EmptyBlockEmailIntegration,b as ExportInlineStylesEmailIntegration,T as FontEmailIntegration,O as GeneralHtmlIntegrationSupport,u as HighlightEmailIntegration,I as ImageEmailIntegration,B as LinkEmailIntegration,L as ListEmailIntegration,v as MarkdownEmailIntegration,E as MathTypeEmailIntegration,S as MediaEmbedEmailIntegration,A as MergeFieldsEmailIntegration,$ as MultiLevelListEmailIntegration,x as SourceEditingEmailIntegration,C as TableEmailIntegration,H as TemplateEmailIntegration,q as TodoListEmailIntegration,N as UploadEmailIntegration,J as getEmailInlineStylesTransformations,l as isUnsupportedEmailColorFormat,s as isUnsupportedEmailColorValue,M as transformEmailAlignToAttribute,V as transformEmailColumnWidthsToCells,_ as transformEmailFigcaptionToDiv,w as transformEmailFigureToTable,U as transformEmailFloatToAlign,F as transformEmailImageWidthAttributes,D as transformEmailMarginToAlign};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-email",
3
- "version": "48.4.0-alpha.2",
3
+ "version": "48.4.0-alpha.3",
4
4
  "description": "Email integration feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -21,14 +21,14 @@
21
21
  "./package.json": "./package.json"
22
22
  },
23
23
  "dependencies": {
24
- "@ckeditor/ckeditor5-core": "48.4.0-alpha.2",
25
- "@ckeditor/ckeditor5-engine": "48.4.0-alpha.2",
26
- "@ckeditor/ckeditor5-export-inline-styles": "48.4.0-alpha.2",
27
- "@ckeditor/ckeditor5-html-support": "48.4.0-alpha.2",
28
- "@ckeditor/ckeditor5-list": "48.4.0-alpha.2",
29
- "@ckeditor/ckeditor5-table": "48.4.0-alpha.2",
30
- "@ckeditor/ckeditor5-ui": "48.4.0-alpha.2",
31
- "@ckeditor/ckeditor5-utils": "48.4.0-alpha.2"
24
+ "@ckeditor/ckeditor5-core": "48.4.0-alpha.3",
25
+ "@ckeditor/ckeditor5-engine": "48.4.0-alpha.3",
26
+ "@ckeditor/ckeditor5-export-inline-styles": "48.4.0-alpha.3",
27
+ "@ckeditor/ckeditor5-html-support": "48.4.0-alpha.3",
28
+ "@ckeditor/ckeditor5-list": "48.4.0-alpha.3",
29
+ "@ckeditor/ckeditor5-table": "48.4.0-alpha.3",
30
+ "@ckeditor/ckeditor5-ui": "48.4.0-alpha.3",
31
+ "@ckeditor/ckeditor5-utils": "48.4.0-alpha.3"
32
32
  },
33
33
  "files": [
34
34
  "dist",