UNPKG

@ckeditor/ckeditor5-merge-fields

Version:

Merge fields feature for CKEditor 5.

23 lines 25.9 kB
/* * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. * * * * * +---------------------------------------------------------------------------------+ * | | * | Hello stranger! | * | | * | | * | What you're currently looking at is the source code of a legally protected, | * | proprietary software. Any attempts to deobfuscate / disassemble this code | * | are forbidden and will result in legal consequences. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ const _0x57cd80=_0x3e5c;(function(_0x3c562a,_0x4b2fce){const _0xdda7c5=_0x3e5c,_0x40bafb=_0x3c562a();while(!![]){try{const _0x138a49=parseInt(_0xdda7c5(0x1f6))/0x1+parseInt(_0xdda7c5(0x18d))/0x2*(-parseInt(_0xdda7c5(0x217))/0x3)+-parseInt(_0xdda7c5(0x230))/0x4*(-parseInt(_0xdda7c5(0x1b9))/0x5)+-parseInt(_0xdda7c5(0x1a7))/0x6+parseInt(_0xdda7c5(0x1bd))/0x7+-parseInt(_0xdda7c5(0x1e2))/0x8+-parseInt(_0xdda7c5(0x1d8))/0x9*(-parseInt(_0xdda7c5(0x22d))/0xa);if(_0x138a49===_0x4b2fce)break;else _0x40bafb['push'](_0x40bafb['shift']());}catch(_0x43e784){_0x40bafb['push'](_0x40bafb['shift']());}}}(_0x30a7,0xe401b));import{Plugin as _0x32b21c}from'ckeditor5/src/core.js';import{IconInsertMergeField as _0x5cb0f4,IconPreviewMergeFields as _0x1cc8b4}from'ckeditor5/src/icons.js';import{createDropdown as _0x35803c,ButtonView as _0x4610aa,SearchTextView as _0x4d48f1,ListItemGroupView as _0x37ee0f,ListItemView as _0x4b57e1,ButtonLabelWithHighlightView as _0x4b1ea7,LabelWithHighlightView as _0x288b6a,ViewModel as _0x2d5494,addListToDropdown as _0xa84cdb,MenuBarMenuView as _0x2e8835,MenuBarMenuListView as _0x56b868,MenuBarMenuListItemView as _0x3e8b91,MenuBarMenuListItemButtonView as _0x8bfa1,ContextualBalloon as _0x1439c0}from'ckeditor5/src/ui.js';function _0x3e5c(_0x5e00bb,_0x3b396d){const _0x30a7c2=_0x30a7();return _0x3e5c=function(_0x3e5c3f,_0x34ad40){_0x3e5c3f=_0x3e5c3f-0x18d;let _0x52fd47=_0x30a7c2[_0x3e5c3f];return _0x52fd47;},_0x3e5c(_0x5e00bb,_0x3b396d);}import{Widget as _0x170138}from'ckeditor5/src/widget.js';import{Collection as _0x5f521f}from'ckeditor5/src/utils.js';import{cloneDeep as _0x2acd1b}from'es-toolkit/compat';import _0x1da0db from'./mergefieldsediting.js';import _0x1cbf41 from'./ui/mergefieldslistview.js';import _0x90a3fd from'./ui/mergefieldspanelview.js';import{getTranslation as _0x53e30f}from'./utils/common-translations.js';import'../theme/mergefields.css';import'../theme/insert-dropdown.css';export default class u extends _0x32b21c{[_0x57cd80(0x1ac)];[_0x57cd80(0x1c4)];[_0x57cd80(0x1c0)];[_0x57cd80(0x1ec)]=null;static get[_0x57cd80(0x1be)](){const _0x2c25b2=_0x57cd80;return[_0x2c25b2(0x1b0),_0x1da0db,_0x1439c0,_0x170138];}static get[_0x57cd80(0x1d2)](){const _0x1fb11b=_0x57cd80;return _0x1fb11b(0x229);}static get[_0x57cd80(0x1fc)](){return!0x0;}static get[_0x57cd80(0x19c)](){return!0x0;}constructor(_0x26b738){const _0x385c35=_0x57cd80;super(_0x26b738),this[_0x385c35(0x209)](),this[_0x385c35(0x1c5)](),this[_0x385c35(0x224)]();}[_0x57cd80(0x21f)](){const _0x3bdf2c=_0x57cd80,_0x437511=this[_0x3bdf2c(0x195)];_0x437511['ui'][_0x3bdf2c(0x1ea)][_0x3bdf2c(0x1a8)](_0x3bdf2c(0x200),_0x5afebd=>{const _0x43e4f5=_0x3bdf2c,_0x112e9e=function(_0x51d761){const _0x425b4f=_0x3e5c,_0x3f5203=_0x35803c(_0x51d761);return _0x3f5203[_0x425b4f(0x19d)]({'class':_0x425b4f(0x232),'isEnabled':!0x0}),_0x3f5203[_0x425b4f(0x1f7)][_0x425b4f(0x19d)]({'label':_0x53e30f(_0x51d761,_0x425b4f(0x1fb)),'icon':_0x5cb0f4,'tooltip':!0x0}),_0x3f5203;}(_0x5afebd);return _0x112e9e[_0x43e4f5(0x1e3)](_0x43e4f5(0x1b4))[_0x43e4f5(0x1cd)]([_0x437511[_0x43e4f5(0x1ad)][_0x43e4f5(0x1ef)](_0x43e4f5(0x200)),_0x437511[_0x43e4f5(0x1ad)][_0x43e4f5(0x1ef)](_0x43e4f5(0x223)),_0x437511[_0x43e4f5(0x1ad)][_0x43e4f5(0x1ef)](_0x43e4f5(0x208))],_0x43e4f5(0x1b4),(..._0xd6774f)=>_0xd6774f[_0x43e4f5(0x206)](_0x5204aa=>_0x5204aa)),_0x112e9e[_0x43e4f5(0x197)](_0x43e4f5(0x1bc),()=>{const _0x23059b=_0x43e4f5,_0x16c8d5={'insertInline':_0x437511[_0x23059b(0x1ad)][_0x23059b(0x1ef)](_0x23059b(0x200)),'insertBlock':_0x437511[_0x23059b(0x1ad)][_0x23059b(0x1ef)](_0x23059b(0x223)),'insertImage':_0x437511[_0x23059b(0x1ad)][_0x23059b(0x1ef)](_0x23059b(0x208))},_0x1d324c=function(_0x7dc115,_0x330365,_0x408e27){const _0x3c2bf0=_0x23059b,_0x2a7a37=new _0x1cbf41(_0x7dc115),_0x50d1dc=[],_0x1bfadd=[];for(const _0x51f11e of _0x330365)if(_0x3c2bf0(0x20b)in _0x51f11e){const _0x4e8dba=C(_0x7dc115,_0x51f11e[_0x3c2bf0(0x1fa)]||_0x51f11e[_0x3c2bf0(0x20b)],_0x51f11e[_0x3c2bf0(0x1f1)],_0x408e27);_0x4e8dba[_0x3c2bf0(0x1bb)](_0x3c2bf0(0x226))['to'](_0x2a7a37),_0x1bfadd[_0x3c2bf0(0x196)](_0x4e8dba);}else _0x50d1dc[_0x3c2bf0(0x196)](_0x51f11e);if(_0x50d1dc[_0x3c2bf0(0x202)]){const _0x1bee22=C(_0x7dc115,_0x3c2bf0(0x1f0),_0x50d1dc,_0x408e27);_0x1bee22[_0x3c2bf0(0x1bb)](_0x3c2bf0(0x226))['to'](_0x2a7a37),_0x1bfadd[_0x3c2bf0(0x196)](_0x1bee22);}return _0x2a7a37[_0x3c2bf0(0x1ed)][_0x3c2bf0(0x211)](_0x1bfadd),_0x2a7a37;}(_0x5afebd,_0x437511[_0x23059b(0x1c3)][_0x23059b(0x1ef)](_0x23059b(0x201)),_0x16c8d5);_0x1d324c[_0x23059b(0x1bb)](_0x23059b(0x226))['to'](_0x112e9e),_0x112e9e['on'](_0x23059b(0x226),(_0x35b1ec,_0x42bd79)=>{const _0x2d3471=_0x23059b,_0x226007=_0x437511[_0x2d3471(0x19b)][_0x2d3471(0x1ef)](_0x2d3471(0x1c1))[_0x2d3471(0x20d)](_0x42bd79);_0x2d3471(0x225)===_0x226007?_0x437511[_0x2d3471(0x226)](_0x2d3471(0x208),_0x42bd79):_0x2d3471(0x214)===_0x226007?_0x437511[_0x2d3471(0x226)](_0x2d3471(0x223),_0x42bd79):_0x437511[_0x2d3471(0x226)](_0x2d3471(0x200),_0x42bd79),_0x437511[_0x2d3471(0x1aa)][_0x2d3471(0x220)][_0x2d3471(0x1bf)]();});const _0x304d03=function(_0x114175,_0x104880){const _0x35056b=_0x23059b;return new _0x4d48f1(_0x114175,{'filteredView':_0x104880,'queryView':{'label':_0x53e30f(_0x114175,_0x35056b(0x1b8))},'class':_0x35056b(0x1eb),'infoView':{'text':{'notFound':{'primary':_0x53e30f(_0x114175,_0x35056b(0x210))},'noSearchableItems':{'primary':_0x53e30f(_0x114175,_0x35056b(0x1d9))}}}});}(_0x5afebd,_0x1d324c);_0x112e9e[_0x23059b(0x1a6)][_0x23059b(0x1fe)][_0x23059b(0x1a8)](_0x304d03),_0x112e9e['on'](_0x23059b(0x1bc),(_0x4ae13d,_0x43b3ac,_0x40946b)=>{const _0x28ca4b=_0x23059b;_0x40946b&&_0x304d03[_0x28ca4b(0x1b5)]();});}),_0x112e9e;}),_0x437511['ui'][_0x3bdf2c(0x1ea)][_0x3bdf2c(0x1a8)](_0x3bdf2c(0x1f8),_0x511ae2=>{const _0x2594df=_0x3bdf2c,_0x52216c=new _0x2e8835(_0x511ae2),_0x17daed={'insertInline':_0x437511[_0x2594df(0x1ad)][_0x2594df(0x1ef)](_0x2594df(0x200)),'insertBlock':_0x437511[_0x2594df(0x1ad)][_0x2594df(0x1ef)](_0x2594df(0x223)),'insertImage':_0x437511[_0x2594df(0x1ad)][_0x2594df(0x1ef)](_0x2594df(0x208))};_0x52216c[_0x2594df(0x1f7)][_0x2594df(0x19d)]({'label':_0x53e30f(_0x511ae2,_0x2594df(0x1ba)),'icon':_0x5cb0f4}),_0x52216c[_0x2594df(0x1e3)](_0x2594df(0x1b4))[_0x2594df(0x1cd)]([...Object[_0x2594df(0x1df)](_0x17daed)],_0x2594df(0x1b4),(..._0x2d636f)=>_0x2d636f[_0x2594df(0x206)](_0x4016d0=>_0x4016d0));const _0x460e2b=[],_0x3c28e0=new _0x56b868(_0x511ae2);for(const _0x803708 of _0x437511[_0x2594df(0x1c3)][_0x2594df(0x1ef)](_0x2594df(0x201)))if(_0x2594df(0x20b)in _0x803708){const _0x3e29b2=new _0x3e8b91(_0x511ae2,_0x52216c),_0x133953=z(_0x511ae2,_0x803708,_0x17daed);_0x3e29b2[_0x2594df(0x1fe)][_0x2594df(0x1a8)](_0x133953),_0x133953[_0x2594df(0x1bb)](_0x2594df(0x226))['to'](_0x52216c),_0x3c28e0[_0x2594df(0x1ed)][_0x2594df(0x1a8)](_0x3e29b2);}else _0x460e2b[_0x2594df(0x196)](_0x803708);if(_0x460e2b[_0x2594df(0x202)]){if(0x0===_0x3c28e0[_0x2594df(0x1ed)][_0x2594df(0x202)])for(const _0x47e283 of _0x460e2b){let _0x8176f6;_0x8176f6=_0x2594df(0x214)===_0x47e283[_0x2594df(0x221)]?_0x17daed[_0x2594df(0x1e5)]:_0x2594df(0x225)===_0x47e283[_0x2594df(0x221)]?_0x17daed[_0x2594df(0x19f)]:_0x17daed[_0x2594df(0x1cb)];const _0xc3c576=G(_0x511ae2,_0x47e283,_0x52216c,_0x8176f6);_0x3c28e0[_0x2594df(0x1ed)][_0x2594df(0x1a8)](_0xc3c576);}else{const _0x42e389=new _0x3e8b91(_0x511ae2,_0x52216c),_0x941f46=z(_0x511ae2,{'groupId':_0x2594df(0x1f0),'definitions':_0x460e2b},_0x17daed);_0x42e389[_0x2594df(0x1fe)][_0x2594df(0x1a8)](_0x941f46),_0x941f46[_0x2594df(0x1bb)](_0x2594df(0x226))['to'](_0x52216c),_0x3c28e0[_0x2594df(0x1ed)][_0x2594df(0x1a8)](_0x42e389);}}return _0x52216c[_0x2594df(0x1a6)][_0x2594df(0x1fe)][_0x2594df(0x1a8)](_0x3c28e0),_0x52216c['on'](_0x2594df(0x226),(_0xdfd4dd,_0x24592f)=>{const _0x41f17b=_0x2594df,_0x293c78=_0x437511[_0x41f17b(0x19b)][_0x41f17b(0x1ef)](_0x41f17b(0x1c1))[_0x41f17b(0x20d)](_0x24592f);_0x41f17b(0x225)===_0x293c78?_0x437511[_0x41f17b(0x226)](_0x41f17b(0x208),_0x24592f):_0x41f17b(0x214)===_0x293c78?_0x437511[_0x41f17b(0x226)](_0x41f17b(0x223),_0x24592f):_0x437511[_0x41f17b(0x226)](_0x41f17b(0x200),_0x24592f),_0x437511[_0x41f17b(0x1aa)][_0x41f17b(0x220)][_0x41f17b(0x1bf)]();}),_0x52216c;});const _0xa985c2=_0x437511[_0x3bdf2c(0x1c3)][_0x3bdf2c(0x1ef)](_0x3bdf2c(0x1c9)),_0x1c701e=[];if(_0xa985c2[_0x3bdf2c(0x1ab)](_0x3bdf2c(0x1e7))&&_0x1c701e[_0x3bdf2c(0x196)]({'type':_0x3bdf2c(0x1dc),'model':new _0x2d5494({'withText':!0x0,'isToggleable':!0x0,'label':_0x53e30f(this[_0x3bdf2c(0x195)][_0x3bdf2c(0x1da)],_0x3bdf2c(0x22e)),'commandValue':_0x3bdf2c(0x1e7)})}),_0xa985c2[_0x3bdf2c(0x1ab)](_0x3bdf2c(0x1d4))&&_0x1c701e[_0x3bdf2c(0x196)]({'type':_0x3bdf2c(0x1dc),'model':new _0x2d5494({'withText':!0x0,'isToggleable':!0x0,'label':_0x53e30f(this[_0x3bdf2c(0x195)][_0x3bdf2c(0x1da)],_0x3bdf2c(0x1d5)),'commandValue':_0x3bdf2c(0x1d4)})}),_0xa985c2[_0x3bdf2c(0x1ab)](_0x3bdf2c(0x1e9))){const _0xc5052=_0x437511[_0x3bdf2c(0x1c3)][_0x3bdf2c(0x1ef)](_0x3bdf2c(0x1e4));if(_0xc5052[_0x3bdf2c(0x202)]){for(const _0x468911 of _0xc5052)_0x1c701e[_0x3bdf2c(0x196)]({'type':_0x3bdf2c(0x1dc),'model':new _0x2d5494({'withText':!0x0,'isToggleable':!0x0,'label':_0x468911[_0x3bdf2c(0x1de)]||_0x468911['id'],'commandValue':_0x468911['id']})});}}_0x437511['ui'][_0x3bdf2c(0x1ea)][_0x3bdf2c(0x1a8)](_0x3bdf2c(0x1b1),_0x5d4165=>{const _0xe9d0c0=_0x3bdf2c,_0x123cb3=_0x437511[_0xe9d0c0(0x1ad)][_0xe9d0c0(0x1ef)](_0xe9d0c0(0x1b1)),_0x2c33be=new _0x5f521f();for(const _0x382e19 of _0x2acd1b(_0x1c701e))_0x382e19[_0xe9d0c0(0x20c)][_0xe9d0c0(0x1e3)](_0xe9d0c0(0x21d))['to'](_0x123cb3,_0xe9d0c0(0x1fd),_0x14be7f=>_0x14be7f===_0x382e19[_0xe9d0c0(0x20c)][_0xe9d0c0(0x233)]),_0x2c33be[_0xe9d0c0(0x1a8)](_0x382e19);const _0xcc68cc=_0x35803c(_0x5d4165),_0x20c91d=_0x53e30f(_0x5d4165,_0xe9d0c0(0x22a));return _0xcc68cc[_0xe9d0c0(0x1e3)](_0xe9d0c0(0x1b4))['to'](_0x123cb3),_0xa84cdb(_0xcc68cc,_0x2c33be,{'ariaLabel':_0x20c91d,'role':_0xe9d0c0(0x1d0)}),_0xcc68cc[_0xe9d0c0(0x19d)]({'class':_0xe9d0c0(0x1cc)}),_0xcc68cc[_0xe9d0c0(0x1f7)][_0xe9d0c0(0x19d)]({'label':_0x20c91d,'ariaLabel':_0x20c91d,'ariaLabelledBy':void 0x0,'isOn':!0x1,'icon':_0x1cc8b4,'tooltip':!0x0}),this[_0xe9d0c0(0x1a2)](_0xcc68cc,_0xe9d0c0(0x226),_0x3bed4b=>{const _0x5f9773=_0xe9d0c0,{commandValue:_0x5d632e}=_0x3bed4b[_0x5f9773(0x1a3)];_0x437511[_0x5f9773(0x226)](_0x5f9773(0x1b1),_0x5d632e),_0x437511[_0x5f9773(0x1aa)][_0x5f9773(0x220)][_0x5f9773(0x1bf)]();}),_0xcc68cc;}),_0x437511['ui'][_0x3bdf2c(0x1ea)][_0x3bdf2c(0x1a8)](_0x3bdf2c(0x1a4),_0x391b42=>{const _0x57fc44=_0x3bdf2c,_0x2c91d0=new _0x2e8835(_0x391b42),_0x194cd1=_0x437511[_0x57fc44(0x1ad)][_0x57fc44(0x1ef)](_0x57fc44(0x1b1));_0x2c91d0[_0x57fc44(0x1f7)][_0x57fc44(0x19d)]({'label':_0x53e30f(_0x391b42,_0x57fc44(0x22a)),'icon':_0x1cc8b4}),_0x2c91d0[_0x57fc44(0x1e3)](_0x57fc44(0x1b4))['to'](_0x194cd1);const _0xba3436=new _0x56b868(_0x391b42);_0xba3436[_0x57fc44(0x19d)]({'ariaLabel':_0x53e30f(_0x391b42,_0x57fc44(0x22a))});for(const _0x14c36f of _0x2acd1b(_0x1c701e)){const _0x278770=new _0x3e8b91(_0x391b42,_0x2c91d0),_0x6b758d=new _0x8bfa1(_0x391b42);_0x14c36f[_0x57fc44(0x20c)][_0x57fc44(0x1e3)](_0x57fc44(0x21d))['to'](_0x194cd1,_0x57fc44(0x1fd),_0x5a5e2c=>_0x5a5e2c===_0x14c36f[_0x57fc44(0x20c)][_0x57fc44(0x233)]),_0x6b758d[_0x57fc44(0x1f4)]=!0x0,_0x6b758d[_0x57fc44(0x1e3)](...Object[_0x57fc44(0x207)](_0x14c36f[_0x57fc44(0x20c)]))['to'](_0x14c36f[_0x57fc44(0x20c)]),_0x6b758d[_0x57fc44(0x1bb)](_0x57fc44(0x226))['to'](_0x2c91d0),_0x6b758d['on'](_0x57fc44(0x226),_0x1790d2=>{const _0x5a7cc1=_0x57fc44,{commandValue:_0x9c51d6}=_0x1790d2[_0x5a7cc1(0x1a3)];_0x437511[_0x5a7cc1(0x226)](_0x5a7cc1(0x1b1),_0x9c51d6),_0x437511[_0x5a7cc1(0x1aa)][_0x5a7cc1(0x220)][_0x5a7cc1(0x1bf)]();}),_0x278770[_0x57fc44(0x1fe)][_0x57fc44(0x1a8)](_0x6b758d),_0xba3436[_0x57fc44(0x1ed)][_0x57fc44(0x1a8)](_0x278770);}return _0x2c91d0[_0x57fc44(0x1a6)][_0x57fc44(0x1fe)][_0x57fc44(0x1a8)](_0xba3436),_0x2c91d0;}),this[_0x3bdf2c(0x1c0)]=_0x437511[_0x3bdf2c(0x19b)][_0x3bdf2c(0x1ef)](_0x1439c0),this[_0x3bdf2c(0x1a2)](_0x437511['ui'],_0x3bdf2c(0x20a),()=>{const _0x367cf4=_0x3bdf2c;this[_0x367cf4(0x228)]();},{'priority':_0x3bdf2c(0x1e1)}),this[_0x3bdf2c(0x1a2)](_0x437511['ui'][_0x3bdf2c(0x216)],_0x3bdf2c(0x205),(_0x590588,_0x377907,_0x12a96e)=>{const _0x524c6a=_0x3bdf2c;this[_0x524c6a(0x1c0)][_0x524c6a(0x1b6)]&&this[_0x524c6a(0x1c0)][_0x524c6a(0x1b6)]===this[_0x524c6a(0x1ec)]&&(_0x12a96e?this[_0x524c6a(0x228)]():this[_0x524c6a(0x19a)]());},{'priority':_0x3bdf2c(0x1e1)}),this[_0x3bdf2c(0x195)][_0x3bdf2c(0x197)](_0x3bdf2c(0x192),this[_0x3bdf2c(0x1d7)][_0x3bdf2c(0x1e3)](this)),this[_0x3bdf2c(0x1ac)]=this[_0x3bdf2c(0x195)][_0x3bdf2c(0x1c3)][_0x3bdf2c(0x1ef)](_0x3bdf2c(0x1ac));const _0x3b6a9f=this[_0x3bdf2c(0x195)];this[_0x3bdf2c(0x1c4)]=setInterval(()=>{const _0x524477=_0x3bdf2c;let _0xdb0e45;for(const _0x23a012 in _0x3b6a9f){const _0x15825d=_0x23a012,_0x2ae29c=_0x3b6a9f[_0x15825d];if(_0x524477(0x1ee)==_0x2ae29c||_0x524477(0x22b)==_0x2ae29c||_0x524477(0x190)==_0x2ae29c||_0x524477(0x1db)==_0x2ae29c||_0x524477(0x1d6)==_0x2ae29c||_0x524477(0x1e8)==_0x2ae29c||_0x524477(0x191)==_0x2ae29c||_0x524477(0x1a0)==_0x2ae29c){delete _0x3b6a9f[_0x15825d],_0xdb0e45=_0x2ae29c,clearInterval(this[_0x524477(0x1c4)]),this[_0x524477(0x1c4)]=void 0x0;break;}}_0x524477(0x22b)==_0xdb0e45&&_0x3b6a9f[_0x524477(0x1f5)](_0x524477(0x1c2)),_0x524477(0x190)==_0xdb0e45&&_0x3b6a9f[_0x524477(0x1f5)](_0x524477(0x18e)),_0x524477(0x1db)==_0xdb0e45&&_0x3b6a9f[_0x524477(0x1f5)](_0x524477(0x213)),_0x524477(0x1d6)==_0xdb0e45&&_0x3b6a9f[_0x524477(0x1f5)](_0x524477(0x198),_0x524477(0x1a5)),_0x524477(0x1e8)==_0xdb0e45&&_0x3b6a9f[_0x524477(0x1f5)](_0x524477(0x1af)),_0x524477(0x191)==_0xdb0e45&&_0x3b6a9f[_0x524477(0x1f5)](_0x524477(0x203)),_0x524477(0x1a0)==_0xdb0e45&&_0x3b6a9f[_0x524477(0x1f5)](_0x524477(0x1b2));},0x3e8);}[_0x57cd80(0x218)](){const _0x5e1ae9=_0x57cd80;super[_0x5e1ae9(0x218)](),this[_0x5e1ae9(0x1c4)]&&clearInterval(this[_0x5e1ae9(0x1c4)]);}[_0x57cd80(0x228)](){const _0x323c8d=_0x57cd80,_0x3ab0b3=this[_0x323c8d(0x195)][_0x323c8d(0x1aa)][_0x323c8d(0x220)][_0x323c8d(0x1ff)][_0x323c8d(0x227)][_0x323c8d(0x212)](),_0x3a82ef=!(!_0x3ab0b3||!_0x3ab0b3[_0x323c8d(0x1c6)](_0x323c8d(0x20e)));if(this[_0x323c8d(0x1c0)][_0x323c8d(0x215)](this[_0x323c8d(0x1ec)])&&this[_0x323c8d(0x1c0)][_0x323c8d(0x1b6)]===this[_0x323c8d(0x1ec)]){if(_0x3a82ef){const _0x4508f7=_0x3ab0b3[_0x323c8d(0x1c6)](_0x323c8d(0x20e));this[_0x323c8d(0x1ec)][_0x323c8d(0x22f)]=_0x53e30f(this[_0x323c8d(0x195)][_0x323c8d(0x1da)],_0x4508f7),this[_0x323c8d(0x1c0)][_0x323c8d(0x1ae)](this[_0x323c8d(0x21e)]());}else this[_0x323c8d(0x19a)]();}else{if(_0x3a82ef){const _0x21acb7=_0x3ab0b3[_0x323c8d(0x1c6)](_0x323c8d(0x20e));this[_0x323c8d(0x1e6)](_0x53e30f(this[_0x323c8d(0x195)][_0x323c8d(0x1da)],_0x21acb7));}}}[_0x57cd80(0x1e6)](_0x3b35b4){const _0x19200d=_0x57cd80;this[_0x19200d(0x1ec)]||(this[_0x19200d(0x1ec)]=new _0x90a3fd(this[_0x19200d(0x195)][_0x19200d(0x1da)]),this[_0x19200d(0x1ec)][_0x19200d(0x22f)]=_0x3b35b4),this[_0x19200d(0x1c0)][_0x19200d(0x215)](this[_0x19200d(0x1ec)])||(this[_0x19200d(0x1c0)][_0x19200d(0x1a8)]({'stackId':_0x19200d(0x1a1),'view':this[_0x19200d(0x1ec)],'position':this[_0x19200d(0x21e)]()}),this[_0x19200d(0x1c0)][_0x19200d(0x222)](_0x19200d(0x1a1)));}[_0x57cd80(0x21e)](){const _0x18f038=_0x57cd80,_0x5a74b6=this[_0x18f038(0x195)][_0x18f038(0x1aa)][_0x18f038(0x220)];return{'target':()=>{const _0x26024b=_0x18f038,_0x369af1=_0x5a74b6[_0x26024b(0x1ff)][_0x26024b(0x227)][_0x26024b(0x1ce)](),_0x90b76a=_0x5a74b6[_0x26024b(0x21a)][_0x26024b(0x1e0)](_0x369af1[_0x26024b(0x1b3)]());return _0x90b76a?Array[_0x26024b(0x1d1)](_0x90b76a[_0x26024b(0x1ca)]())[0x0]:_0x5a74b6[_0x26024b(0x21a)][_0x26024b(0x1dd)](_0x369af1);}};}[_0x57cd80(0x19a)](){const _0x582a2c=_0x57cd80;this[_0x582a2c(0x1c0)][_0x582a2c(0x204)](this[_0x582a2c(0x1ec)]);}[_0x57cd80(0x209)](){const _0x30131b=_0x57cd80;if(Object[_0x30131b(0x1df)](this[_0x30131b(0x195)][_0x30131b(0x19b)][_0x30131b(0x1ef)](_0x30131b(0x1c1))[_0x30131b(0x21c)]())[_0x30131b(0x206)](_0xec422a=>_0xec422a))return;const _0x1b1661=this[_0x30131b(0x195)][_0x30131b(0x1c3)][_0x30131b(0x1ef)](_0x30131b(0x1c9));_0x1b1661[_0x30131b(0x1c7)](_0x30131b(0x1d4))>-0x1&&_0x1b1661[_0x30131b(0x202)]>0x1&&(_0x1b1661[_0x30131b(0x1c8)](_0x1b1661[_0x30131b(0x1c7)](_0x30131b(0x1d4)),0x1),this[_0x30131b(0x195)][_0x30131b(0x1c3)][_0x30131b(0x19d)](_0x30131b(0x1c9),_0x1b1661));}[_0x57cd80(0x1c5)](){const _0x5ba77f=_0x57cd80,_0x2309d3=this[_0x5ba77f(0x195)][_0x5ba77f(0x1c3)];if(_0x2309d3[_0x5ba77f(0x1ef)](_0x5ba77f(0x1c9))){const _0x123318=_0x2309d3[_0x5ba77f(0x1ef)](_0x5ba77f(0x1c9));if(0x1===_0x123318[_0x5ba77f(0x202)]){if(_0x123318[_0x5ba77f(0x1ab)](_0x5ba77f(0x1e9)))0x1===_0x2309d3[_0x5ba77f(0x1ef)](_0x5ba77f(0x1e4))[_0x5ba77f(0x202)]&&_0x5803fe();else _0x5803fe();}}function _0x5803fe(){const _0xfeb490=_0x5ba77f,_0x1f2916=_0x2309d3[_0xfeb490(0x1ef)](_0xfeb490(0x21b));_0x1f2916?(_0x1f2916[_0xfeb490(0x196)](_0xfeb490(0x1a4)),_0x2309d3[_0xfeb490(0x19d)](_0xfeb490(0x21b),_0x1f2916)):_0x2309d3[_0xfeb490(0x19d)](_0xfeb490(0x21b),[_0xfeb490(0x1a4)]);}}[_0x57cd80(0x224)](){const _0x3a4775=_0x57cd80,_0x1a65b6=this[_0x3a4775(0x195)],_0x4bc321=_0x1a65b6[_0x3a4775(0x1c3)][_0x3a4775(0x1ef)](_0x3a4775(0x194)),_0x2dc671=_0x1a65b6[_0x3a4775(0x1c3)][_0x3a4775(0x1ef)](_0x3a4775(0x219));_0x4bc321[_0x3a4775(0x196)]({'marker':_0x2dc671,'dropdownLimit':0xa,'feed':_0x38e6a9=>_0x1a65b6[_0x3a4775(0x19b)][_0x3a4775(0x1ef)](_0x3a4775(0x1c1))[_0x3a4775(0x193)][_0x3a4775(0x1a9)](_0x5dbf57=>{const _0x1dd0c0=_0x3a4775,_0x1d5a8e=_0x1a65b6[_0x1dd0c0(0x1ad)][_0x1dd0c0(0x1ef)](_0x1dd0c0(0x200))[_0x1dd0c0(0x1b4)],_0x3c28d7=_0x1a65b6[_0x1dd0c0(0x1ad)][_0x1dd0c0(0x1ef)](_0x1dd0c0(0x223))[_0x1dd0c0(0x1b4)],_0x1ed69a=_0x1a65b6[_0x1dd0c0(0x1ad)][_0x1dd0c0(0x1ef)](_0x1dd0c0(0x208))[_0x1dd0c0(0x1b4)],_0xdc3232=_0x1a65b6[_0x1dd0c0(0x19b)][_0x1dd0c0(0x1ef)](_0x1dd0c0(0x1c1))[_0x1dd0c0(0x20d)](_0x5dbf57['id']);if(_0x1dd0c0(0x22f)===_0xdc3232&&!_0x1d5a8e)return!0x1;if(_0x1dd0c0(0x214)===_0xdc3232&&!_0x3c28d7)return!0x1;if(_0x1dd0c0(0x225)===_0xdc3232&&!_0x1ed69a)return!0x1;return(_0x1a65b6[_0x1dd0c0(0x19b)][_0x1dd0c0(0x1ef)](_0x1dd0c0(0x1c1))[_0x1dd0c0(0x22c)](_0x5dbf57['id'])||_0x5dbf57['id'])[_0x1dd0c0(0x1f3)]()[_0x1dd0c0(0x1ab)](_0x38e6a9[_0x1dd0c0(0x1f3)]());}),'itemRenderer':_0x9ac970=>{const _0x3fc407=_0x3a4775,_0x344760=document[_0x3fc407(0x1b7)](_0x3fc407(0x1dc));return _0x344760[_0x3fc407(0x18f)]=''+(_0x9ac970[_0x3fc407(0x1de)]||_0x9ac970['id']),_0x344760;}}),_0x1a65b6[_0x3a4775(0x1c3)][_0x3a4775(0x19d)](_0x3a4775(0x194),_0x4bc321);}[_0x57cd80(0x1d7)](){const _0x476c0b=_0x57cd80,_0x2590bc=this[_0x476c0b(0x195)];_0x2590bc[_0x476c0b(0x1ad)][_0x476c0b(0x1ef)](_0x476c0b(0x1cf))['on'](_0x476c0b(0x226),(_0x4426b3,_0x24bc34)=>{const _0x363bc8=_0x476c0b,_0x581bff=_0x24bc34[0x0];_0x581bff[_0x363bc8(0x1f2)]===_0x2590bc[_0x363bc8(0x1c3)][_0x363bc8(0x1ef)](_0x363bc8(0x219))&&_0x2590bc[_0x363bc8(0x20c)][_0x363bc8(0x20f)](_0x2cb7d7=>{const _0x572db0=_0x363bc8;_0x2cb7d7[_0x572db0(0x204)](_0x581bff[_0x572db0(0x231)]);const _0x15c703=_0x581bff[_0x572db0(0x1cf)]['id'],_0x113cc0=_0x2590bc[_0x572db0(0x19b)][_0x572db0(0x1ef)](_0x572db0(0x1c1))[_0x572db0(0x20d)](_0x15c703);_0x572db0(0x22f)===_0x113cc0?_0x2590bc[_0x572db0(0x226)](_0x572db0(0x200),_0x15c703):_0x572db0(0x214)===_0x113cc0?_0x2590bc[_0x572db0(0x226)](_0x572db0(0x223),_0x15c703,!0x1):_0x2590bc[_0x572db0(0x226)](_0x572db0(0x208),_0x15c703,{'breakBlock':!0x0}),_0x4426b3[_0x572db0(0x1f9)]();});},{'priority':_0x476c0b(0x19e)});}}function C(_0x1befd9,_0xa7b0b2,_0x3cc270,_0x11a164){const _0x33709b=_0x57cd80,_0x277f86=new _0x37ee0f(_0x1befd9,new _0x288b6a());_0x277f86[_0x33709b(0x1de)]=_0xa7b0b2;for(const _0x40e3b8 of _0x3cc270){let _0x4ec777;_0x4ec777=_0x33709b(0x214)===_0x40e3b8[_0x33709b(0x221)]?_0x11a164[_0x33709b(0x1e5)]:_0x33709b(0x225)===_0x40e3b8[_0x33709b(0x221)]?_0x11a164[_0x33709b(0x19f)]:_0x11a164[_0x33709b(0x1cb)];const _0x34b11b=R(_0x1befd9,_0x40e3b8,_0x4ec777);_0x34b11b[_0x33709b(0x1bb)](_0x33709b(0x226))['to'](_0x277f86),_0x277f86[_0x33709b(0x1ed)][_0x33709b(0x1a8)](_0x34b11b);}return _0x277f86;}function R(_0x263257,_0x5aed8e,_0x33735a){const _0x5a7af6=_0x57cd80,_0x49d060=new _0x4b57e1(_0x263257),_0x179d80=new _0x4b1ea7(),_0x162722=new _0x4610aa(_0x263257,_0x179d80);return _0x49d060[_0x5a7af6(0x1fe)][_0x5a7af6(0x1a8)](_0x162722),_0x162722[_0x5a7af6(0x19d)]({'label':_0x5aed8e[_0x5a7af6(0x1de)]||_0x5aed8e['id'],'withText':!0x0}),_0x162722[_0x5a7af6(0x1e3)](_0x5a7af6(0x1b4))['to'](_0x33735a),_0x162722['on'](_0x5a7af6(0x226),()=>{const _0x14d4f7=_0x5a7af6;_0x49d060[_0x14d4f7(0x199)](_0x14d4f7(0x226),_0x5aed8e['id']);}),_0x49d060;}function z(_0x3ca346,_0x417ae9,_0x4def9d){const _0x206370=_0x57cd80,_0x22905e=new _0x2e8835(_0x3ca346),_0x87576b=new _0x56b868(_0x3ca346);for(const _0x19ef3d of _0x417ae9[_0x206370(0x1f1)]){let _0x357aa3;_0x357aa3=_0x206370(0x214)===_0x19ef3d[_0x206370(0x221)]?_0x4def9d[_0x206370(0x1e5)]:_0x206370(0x225)===_0x19ef3d[_0x206370(0x221)]?_0x4def9d[_0x206370(0x19f)]:_0x4def9d[_0x206370(0x1cb)];const _0x33f191=G(_0x3ca346,_0x19ef3d,_0x22905e,_0x357aa3);_0x87576b[_0x206370(0x1ed)][_0x206370(0x1a8)](_0x33f191);}return _0x22905e[_0x206370(0x19d)]({'class':_0x206370(0x1d3)}),_0x22905e[_0x206370(0x1f7)][_0x206370(0x19d)]({'label':_0x417ae9[_0x206370(0x1fa)]||_0x417ae9[_0x206370(0x20b)]}),_0x22905e[_0x206370(0x1a6)][_0x206370(0x1fe)][_0x206370(0x1a8)](_0x87576b),_0x22905e;}function G(_0x23b916,_0x5eabea,_0x37b01b,_0x297bbd){const _0x30b52e=_0x57cd80,_0x545e0d=new _0x3e8b91(_0x23b916,_0x37b01b),_0x5588bb=new _0x8bfa1(_0x23b916);return _0x5588bb[_0x30b52e(0x19d)]({'label':_0x5eabea[_0x30b52e(0x1de)]||_0x5eabea['id']}),_0x545e0d[_0x30b52e(0x1bb)](_0x30b52e(0x226))['to'](_0x37b01b),_0x545e0d[_0x30b52e(0x1fe)][_0x30b52e(0x1a8)](_0x5588bb),_0x5588bb[_0x30b52e(0x1e3)](_0x30b52e(0x1b4))['to'](_0x297bbd),_0x5588bb['on'](_0x30b52e(0x226),()=>{const _0x33978a=_0x30b52e;_0x545e0d[_0x33978a(0x199)](_0x33978a(0x226),_0x5eabea['id']);}),_0x545e0d;}function _0x30a7(){const _0x919129=['_removeMenuBarButtonIfUnnecessary','getCustomProperty','indexOf','splice','mergeFields.previewModes','getClientRects','insertInline','ck-merge-fields-preview-dropdown','toMany','getFirstRange','mention','menu','from','pluginName','ck-menu-bar__merge-fields-submenu','$defaultValues','Default\x20values','mergeFieldsLicenseKeyNotAllowed','_overrideMentionExecuteListener','2576871xxZUxs','No\x20merge\x20fields\x20available','locale','mergeFieldsLicenseKeyDomainLimit','button','viewRangeToDom','label','values','mapViewToDom','low','7194584bSLkIz','bind','mergeFields.dataSets','insertBlock','_showBalloon','$labels','mergeFieldsLicenseKeyEvaluationLimit','$dataSets','componentFactory','ck-merge-fields-search','_balloonPanelView','items','mergeFieldsLicenseKeyValid','get','Other','definitions','marker','toLowerCase','isToggleable','_showLicenseError','1428987VrxEZK','buttonView','menuBar:insertMergeField','stop','groupLabel','Insert\x20merge\x20field','isOfficialPlugin','value','children','document','insertMergeField','mergeFields.definitions','length','trialLimit','remove','change:isFocused','some','keys','insertMergeFieldImage','_removeDefaultValuesPreviewIfUnnecessary','update','groupId','model','getMergeFieldType','mergeFieldStatus','change','No\x20merge\x20fields\x20found','addMany','getSelectedElement','domainLimit','block','hasView','focusTracker','3QgHhzj','destroy','mergeFields.prefix','domConverter','menuBar.removeItems','getDefaultValues','isOn','_getBalloonPositionData','init','view','type','showStack','insertMergeFieldBlock','_setupMentionConfiguration','image','execute','selection','_updateBalloonVisibility','MergeFieldsUI','Merge\x20fields\x20preview','mergeFieldsLicenseKeyInvalid','getLabel','50eWCfet','Labels','text','4HPdQhI','range','ck-insert-merge-field-dropdown','commandValue','3239526COYAEr','expired','innerHTML','mergeFieldsLicenseKeyExpired','mergeFieldsLicenseKeyTrialLimit','ready','flattenedMergeFieldDefinitions','mention.feeds','editor','push','once','featureNotAllowed','fire','_hideBalloon','plugins','isPremiumPlugin','set','high','insertImage','mergeFieldsLicenseKeyUsageLimit','mergeFieldsStatus','listenTo','source','menuBar:previewMergeFields','MergeFields','panelView','7985634ZmJDhk','add','filter','editing','includes','licenseKey','commands','updatePosition','evaluationLimit','Mention','previewMergeFields','usageLimit','getContainedElement','isEnabled','reset','visibleView','createElement','Search\x20merge\x20field','3496765JHFqvH','Merge\x20field','delegate','change:isOpen','8568035NSqdJk','requires','focus','_balloon','MergeFieldsEditing','invalid','config','_licenseKeyCheckInterval'];_0x30a7=function(){return _0x919129;};return _0x30a7();}