@ckeditor/ckeditor5-merge-fields
Version:
Merge fields feature for CKEditor 5.
23 lines • 25.8 kB
JavaScript
/*
* 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 _0x557bd1=_0x7f4f;(function(_0x486b1e,_0xc36a2d){const _0x5716c3=_0x7f4f,_0x5a6b00=_0x486b1e();while(!![]){try{const _0x336c1b=-parseInt(_0x5716c3(0x160))/0x1+-parseInt(_0x5716c3(0x14b))/0x2+parseInt(_0x5716c3(0x1a4))/0x3*(parseInt(_0x5716c3(0x19f))/0x4)+-parseInt(_0x5716c3(0x183))/0x5*(parseInt(_0x5716c3(0x10f))/0x6)+parseInt(_0x5716c3(0x1a1))/0x7+parseInt(_0x5716c3(0x18f))/0x8+parseInt(_0x5716c3(0x18b))/0x9;if(_0x336c1b===_0xc36a2d)break;else _0x5a6b00['push'](_0x5a6b00['shift']());}catch(_0x5c89ef){_0x5a6b00['push'](_0x5a6b00['shift']());}}}(_0x1a49,0x2913e));import{Plugin as _0x7fa4a0}from'ckeditor5/src/core.js';import{IconInsertMergeField as _0x206838,IconPreviewMergeFields as _0x9bfb70}from'ckeditor5/src/icons.js';import{createDropdown as _0x22485a,ButtonView as _0x46f4c6,SearchTextView as _0x4cf5ce,ListItemGroupView as _0x181c31,ListItemView as _0x18b074,ButtonLabelWithHighlightView as _0x35e0ac,LabelWithHighlightView as _0x385219,ViewModel as _0x2af813,addListToDropdown as _0x2eb073,MenuBarMenuView as _0x29c888,MenuBarMenuListView as _0x20e175,MenuBarMenuListItemView as _0x32e26c,MenuBarMenuListItemButtonView as _0x75e22d,ContextualBalloon as _0xe8e9ef}from'ckeditor5/src/ui.js';function _0x7f4f(_0x1783e1,_0x2767a6){const _0x1a492a=_0x1a49();return _0x7f4f=function(_0x7f4fdf,_0x5ae4f8){_0x7f4fdf=_0x7f4fdf-0x10f;let _0x322b9c=_0x1a492a[_0x7f4fdf];return _0x322b9c;},_0x7f4f(_0x1783e1,_0x2767a6);}import{Widget as _0x54ca8b}from'ckeditor5/src/widget.js';import{Collection as _0x57b8f3}from'ckeditor5/src/utils.js';import{cloneDeep as _0x1586ec}from'es-toolkit/compat';import _0x5baef7 from'./mergefieldsediting.js';import _0x1bc1b5 from'./ui/mergefieldslistview.js';import _0x27cacc from'./ui/mergefieldspanelview.js';import{getTranslation as _0xd4d72d}from'./utils/common-translations.js';import'../theme/mergefields.css';import'../theme/insert-dropdown.css';export default class u extends _0x7fa4a0{[_0x557bd1(0x167)];[_0x557bd1(0x199)];[_0x557bd1(0x162)];[_0x557bd1(0x124)]=null;static get[_0x557bd1(0x19d)](){const _0x44d198=_0x557bd1;return[_0x44d198(0x16f),_0x5baef7,_0xe8e9ef,_0x54ca8b];}static get[_0x557bd1(0x116)](){const _0x432dd6=_0x557bd1;return _0x432dd6(0x12e);}static get[_0x557bd1(0x149)](){return!0x0;}static get[_0x557bd1(0x11a)](){return!0x0;}constructor(_0x52880b){const _0xe641cb=_0x557bd1;super(_0x52880b),this[_0xe641cb(0x134)](),this[_0xe641cb(0x111)](),this[_0xe641cb(0x19e)]();}[_0x557bd1(0x155)](){const _0x329c35=_0x557bd1,_0x5d6002=this[_0x329c35(0x1a0)];_0x5d6002['ui'][_0x329c35(0x123)][_0x329c35(0x171)](_0x329c35(0x196),_0x1ccebd=>{const _0x52a881=_0x329c35,_0x5935fb=function(_0x468f34){const _0x3aff27=_0x7f4f,_0x1ce545=_0x22485a(_0x468f34);return _0x1ce545[_0x3aff27(0x17a)]({'class':_0x3aff27(0x153),'isEnabled':!0x0}),_0x1ce545[_0x3aff27(0x16e)][_0x3aff27(0x17a)]({'label':_0xd4d72d(_0x468f34,_0x3aff27(0x14d)),'icon':_0x206838,'tooltip':!0x0}),_0x1ce545;}(_0x1ccebd);return _0x5935fb[_0x52a881(0x15d)](_0x52a881(0x159))[_0x52a881(0x13b)]([_0x5d6002[_0x52a881(0x115)][_0x52a881(0x147)](_0x52a881(0x196)),_0x5d6002[_0x52a881(0x115)][_0x52a881(0x147)](_0x52a881(0x14a)),_0x5d6002[_0x52a881(0x115)][_0x52a881(0x147)](_0x52a881(0x110))],_0x52a881(0x159),(..._0x434f0c)=>_0x434f0c[_0x52a881(0x113)](_0x995d81=>_0x995d81)),_0x5935fb[_0x52a881(0x16a)](_0x52a881(0x1b4),()=>{const _0x5b676f=_0x52a881,_0x256586={'insertInline':_0x5d6002[_0x5b676f(0x115)][_0x5b676f(0x147)](_0x5b676f(0x196)),'insertBlock':_0x5d6002[_0x5b676f(0x115)][_0x5b676f(0x147)](_0x5b676f(0x14a)),'insertImage':_0x5d6002[_0x5b676f(0x115)][_0x5b676f(0x147)](_0x5b676f(0x110))},_0x158dd3=function(_0x5e1ed9,_0x2dab8c,_0x4ec3a9){const _0x1a862d=_0x5b676f,_0x35b6bf=new _0x1bc1b5(_0x5e1ed9),_0x5c0050=[],_0x3c478c=[];for(const _0x593637 of _0x2dab8c)if(_0x1a862d(0x12b)in _0x593637){const _0x3f18c6=C(_0x5e1ed9,_0x593637[_0x1a862d(0x1a5)]||_0x593637[_0x1a862d(0x12b)],_0x593637[_0x1a862d(0x1a9)],_0x4ec3a9);_0x3f18c6[_0x1a862d(0x146)](_0x1a862d(0x11c))['to'](_0x35b6bf),_0x3c478c[_0x1a862d(0x163)](_0x3f18c6);}else _0x5c0050[_0x1a862d(0x163)](_0x593637);if(_0x5c0050[_0x1a862d(0x13e)]){const _0x2fc805=C(_0x5e1ed9,_0x1a862d(0x184),_0x5c0050,_0x4ec3a9);_0x2fc805[_0x1a862d(0x146)](_0x1a862d(0x11c))['to'](_0x35b6bf),_0x3c478c[_0x1a862d(0x163)](_0x2fc805);}return _0x35b6bf[_0x1a862d(0x1ad)][_0x1a862d(0x19b)](_0x3c478c),_0x35b6bf;}(_0x1ccebd,_0x5d6002[_0x5b676f(0x143)][_0x5b676f(0x147)](_0x5b676f(0x17e)),_0x256586);_0x158dd3[_0x5b676f(0x146)](_0x5b676f(0x11c))['to'](_0x5935fb),_0x5935fb['on'](_0x5b676f(0x11c),(_0x4c710c,_0xfbf35b)=>{const _0x3f40dc=_0x5b676f,_0x11094b=_0x5d6002[_0x3f40dc(0x188)][_0x3f40dc(0x147)](_0x3f40dc(0x13a))[_0x3f40dc(0x117)](_0xfbf35b);_0x3f40dc(0x14c)===_0x11094b?_0x5d6002[_0x3f40dc(0x11c)](_0x3f40dc(0x110),_0xfbf35b):_0x3f40dc(0x126)===_0x11094b?_0x5d6002[_0x3f40dc(0x11c)](_0x3f40dc(0x14a),_0xfbf35b):_0x5d6002[_0x3f40dc(0x11c)](_0x3f40dc(0x196),_0xfbf35b),_0x5d6002[_0x3f40dc(0x180)][_0x3f40dc(0x140)][_0x3f40dc(0x157)]();});const _0x3204c7=function(_0x39d9dc,_0x34d998){const _0x37dcf1=_0x5b676f;return new _0x4cf5ce(_0x39d9dc,{'filteredView':_0x34d998,'queryView':{'label':_0xd4d72d(_0x39d9dc,_0x37dcf1(0x169))},'class':_0x37dcf1(0x17d),'infoView':{'text':{'notFound':{'primary':_0xd4d72d(_0x39d9dc,_0x37dcf1(0x14f))},'noSearchableItems':{'primary':_0xd4d72d(_0x39d9dc,_0x37dcf1(0x11f))}}}});}(_0x1ccebd,_0x158dd3);_0x5935fb[_0x5b676f(0x138)][_0x5b676f(0x173)][_0x5b676f(0x171)](_0x3204c7),_0x5935fb['on'](_0x5b676f(0x1b4),(_0x4672d7,_0x4b0dbe,_0x5ddec6)=>{const _0x2f9e81=_0x5b676f;_0x5ddec6&&_0x3204c7[_0x2f9e81(0x139)]();});}),_0x5935fb;}),_0x5d6002['ui'][_0x329c35(0x123)][_0x329c35(0x171)](_0x329c35(0x133),_0x509e81=>{const _0xcaa558=_0x329c35,_0x132fc5=new _0x29c888(_0x509e81),_0x1e1b29={'insertInline':_0x5d6002[_0xcaa558(0x115)][_0xcaa558(0x147)](_0xcaa558(0x196)),'insertBlock':_0x5d6002[_0xcaa558(0x115)][_0xcaa558(0x147)](_0xcaa558(0x14a)),'insertImage':_0x5d6002[_0xcaa558(0x115)][_0xcaa558(0x147)](_0xcaa558(0x110))};_0x132fc5[_0xcaa558(0x16e)][_0xcaa558(0x17a)]({'label':_0xd4d72d(_0x509e81,_0xcaa558(0x170)),'icon':_0x206838}),_0x132fc5[_0xcaa558(0x15d)](_0xcaa558(0x159))[_0xcaa558(0x13b)]([...Object[_0xcaa558(0x151)](_0x1e1b29)],_0xcaa558(0x159),(..._0x50c8b3)=>_0x50c8b3[_0xcaa558(0x113)](_0x4991dc=>_0x4991dc));const _0x443d9a=[],_0x53ba36=new _0x20e175(_0x509e81);for(const _0x1f16e5 of _0x5d6002[_0xcaa558(0x143)][_0xcaa558(0x147)](_0xcaa558(0x17e)))if(_0xcaa558(0x12b)in _0x1f16e5){const _0x3a8e7d=new _0x32e26c(_0x509e81,_0x132fc5),_0xf016b6=z(_0x509e81,_0x1f16e5,_0x1e1b29);_0x3a8e7d[_0xcaa558(0x173)][_0xcaa558(0x171)](_0xf016b6),_0xf016b6[_0xcaa558(0x146)](_0xcaa558(0x11c))['to'](_0x132fc5),_0x53ba36[_0xcaa558(0x1ad)][_0xcaa558(0x171)](_0x3a8e7d);}else _0x443d9a[_0xcaa558(0x163)](_0x1f16e5);if(_0x443d9a[_0xcaa558(0x13e)]){if(0x0===_0x53ba36[_0xcaa558(0x1ad)][_0xcaa558(0x13e)])for(const _0x1ec1db of _0x443d9a){let _0x3cc088;_0x3cc088=_0xcaa558(0x126)===_0x1ec1db[_0xcaa558(0x119)]?_0x1e1b29[_0xcaa558(0x175)]:_0xcaa558(0x14c)===_0x1ec1db[_0xcaa558(0x119)]?_0x1e1b29[_0xcaa558(0x122)]:_0x1e1b29[_0xcaa558(0x13d)];const _0x2ef95e=G(_0x509e81,_0x1ec1db,_0x132fc5,_0x3cc088);_0x53ba36[_0xcaa558(0x1ad)][_0xcaa558(0x171)](_0x2ef95e);}else{const _0x170c59=new _0x32e26c(_0x509e81,_0x132fc5),_0x270870=z(_0x509e81,{'groupId':_0xcaa558(0x184),'definitions':_0x443d9a},_0x1e1b29);_0x170c59[_0xcaa558(0x173)][_0xcaa558(0x171)](_0x270870),_0x270870[_0xcaa558(0x146)](_0xcaa558(0x11c))['to'](_0x132fc5),_0x53ba36[_0xcaa558(0x1ad)][_0xcaa558(0x171)](_0x170c59);}}return _0x132fc5[_0xcaa558(0x138)][_0xcaa558(0x173)][_0xcaa558(0x171)](_0x53ba36),_0x132fc5['on'](_0xcaa558(0x11c),(_0x5deb55,_0x139285)=>{const _0x3a68b6=_0xcaa558,_0x58dcbc=_0x5d6002[_0x3a68b6(0x188)][_0x3a68b6(0x147)](_0x3a68b6(0x13a))[_0x3a68b6(0x117)](_0x139285);_0x3a68b6(0x14c)===_0x58dcbc?_0x5d6002[_0x3a68b6(0x11c)](_0x3a68b6(0x110),_0x139285):_0x3a68b6(0x126)===_0x58dcbc?_0x5d6002[_0x3a68b6(0x11c)](_0x3a68b6(0x14a),_0x139285):_0x5d6002[_0x3a68b6(0x11c)](_0x3a68b6(0x196),_0x139285),_0x5d6002[_0x3a68b6(0x180)][_0x3a68b6(0x140)][_0x3a68b6(0x157)]();}),_0x132fc5;});const _0x2e914b=_0x5d6002[_0x329c35(0x143)][_0x329c35(0x147)](_0x329c35(0x191)),_0x504138=[];if(_0x2e914b[_0x329c35(0x15c)](_0x329c35(0x1aa))&&_0x504138[_0x329c35(0x163)]({'type':_0x329c35(0x1ab),'model':new _0x2af813({'withText':!0x0,'isToggleable':!0x0,'label':_0xd4d72d(this[_0x329c35(0x1a0)][_0x329c35(0x152)],_0x329c35(0x174)),'commandValue':_0x329c35(0x1aa)})}),_0x2e914b[_0x329c35(0x15c)](_0x329c35(0x177))&&_0x504138[_0x329c35(0x163)]({'type':_0x329c35(0x1ab),'model':new _0x2af813({'withText':!0x0,'isToggleable':!0x0,'label':_0xd4d72d(this[_0x329c35(0x1a0)][_0x329c35(0x152)],_0x329c35(0x1af)),'commandValue':_0x329c35(0x177)})}),_0x2e914b[_0x329c35(0x15c)](_0x329c35(0x181))){const _0x3e106b=_0x5d6002[_0x329c35(0x143)][_0x329c35(0x147)](_0x329c35(0x189));if(_0x3e106b[_0x329c35(0x13e)]){for(const _0x4e6b94 of _0x3e106b)_0x504138[_0x329c35(0x163)]({'type':_0x329c35(0x1ab),'model':new _0x2af813({'withText':!0x0,'isToggleable':!0x0,'label':_0x4e6b94[_0x329c35(0x12d)]||_0x4e6b94['id'],'commandValue':_0x4e6b94['id']})});}}_0x5d6002['ui'][_0x329c35(0x123)][_0x329c35(0x171)](_0x329c35(0x193),_0x35b841=>{const _0x397ec6=_0x329c35,_0x18dfe7=_0x5d6002[_0x397ec6(0x115)][_0x397ec6(0x147)](_0x397ec6(0x193)),_0x49f194=new _0x57b8f3();for(const _0x3a1275 of _0x1586ec(_0x504138))_0x3a1275[_0x397ec6(0x18a)][_0x397ec6(0x15d)](_0x397ec6(0x127))['to'](_0x18dfe7,_0x397ec6(0x11e),_0xc5fad5=>_0xc5fad5===_0x3a1275[_0x397ec6(0x18a)][_0x397ec6(0x1a6)]),_0x49f194[_0x397ec6(0x171)](_0x3a1275);const _0x33f463=_0x22485a(_0x35b841),_0x3d33ce=_0xd4d72d(_0x35b841,_0x397ec6(0x182));return _0x33f463[_0x397ec6(0x15d)](_0x397ec6(0x159))['to'](_0x18dfe7),_0x2eb073(_0x33f463,_0x49f194,{'ariaLabel':_0x3d33ce,'role':_0x397ec6(0x118)}),_0x33f463[_0x397ec6(0x17a)]({'class':_0x397ec6(0x129)}),_0x33f463[_0x397ec6(0x16e)][_0x397ec6(0x17a)]({'label':_0x3d33ce,'ariaLabel':_0x3d33ce,'ariaLabelledBy':void 0x0,'isOn':!0x1,'icon':_0x9bfb70,'tooltip':!0x0}),this[_0x397ec6(0x185)](_0x33f463,_0x397ec6(0x11c),_0x23d0db=>{const _0x22333d=_0x397ec6,{commandValue:_0x1e435f}=_0x23d0db[_0x22333d(0x16b)];_0x5d6002[_0x22333d(0x11c)](_0x22333d(0x193),_0x1e435f),_0x5d6002[_0x22333d(0x180)][_0x22333d(0x140)][_0x22333d(0x157)]();}),_0x33f463;}),_0x5d6002['ui'][_0x329c35(0x123)][_0x329c35(0x171)](_0x329c35(0x17b),_0x2e5fec=>{const _0x269187=_0x329c35,_0x31a8f8=new _0x29c888(_0x2e5fec),_0x126025=_0x5d6002[_0x269187(0x115)][_0x269187(0x147)](_0x269187(0x193));_0x31a8f8[_0x269187(0x16e)][_0x269187(0x17a)]({'label':_0xd4d72d(_0x2e5fec,_0x269187(0x182)),'icon':_0x9bfb70}),_0x31a8f8[_0x269187(0x15d)](_0x269187(0x159))['to'](_0x126025);const _0x3184a4=new _0x20e175(_0x2e5fec);_0x3184a4[_0x269187(0x17a)]({'ariaLabel':_0xd4d72d(_0x2e5fec,_0x269187(0x182))});for(const _0x52d0da of _0x1586ec(_0x504138)){const _0x5af1ad=new _0x32e26c(_0x2e5fec,_0x31a8f8),_0x8b282b=new _0x75e22d(_0x2e5fec);_0x52d0da[_0x269187(0x18a)][_0x269187(0x15d)](_0x269187(0x127))['to'](_0x126025,_0x269187(0x11e),_0x407082=>_0x407082===_0x52d0da[_0x269187(0x18a)][_0x269187(0x1a6)]),_0x8b282b[_0x269187(0x187)]=!0x0,_0x8b282b[_0x269187(0x15d)](...Object[_0x269187(0x18e)](_0x52d0da[_0x269187(0x18a)]))['to'](_0x52d0da[_0x269187(0x18a)]),_0x8b282b[_0x269187(0x146)](_0x269187(0x11c))['to'](_0x31a8f8),_0x8b282b['on'](_0x269187(0x11c),_0x36465f=>{const _0x3813a5=_0x269187,{commandValue:_0x2c5940}=_0x36465f[_0x3813a5(0x16b)];_0x5d6002[_0x3813a5(0x11c)](_0x3813a5(0x193),_0x2c5940),_0x5d6002[_0x3813a5(0x180)][_0x3813a5(0x140)][_0x3813a5(0x157)]();}),_0x5af1ad[_0x269187(0x173)][_0x269187(0x171)](_0x8b282b),_0x3184a4[_0x269187(0x1ad)][_0x269187(0x171)](_0x5af1ad);}return _0x31a8f8[_0x269187(0x138)][_0x269187(0x173)][_0x269187(0x171)](_0x3184a4),_0x31a8f8;}),this[_0x329c35(0x162)]=_0x5d6002[_0x329c35(0x188)][_0x329c35(0x147)](_0xe8e9ef),this[_0x329c35(0x185)](_0x5d6002['ui'],_0x329c35(0x168),()=>{const _0x5dd507=_0x329c35;this[_0x5dd507(0x11d)]();},{'priority':_0x329c35(0x12c)}),this[_0x329c35(0x185)](_0x5d6002['ui'][_0x329c35(0x132)],_0x329c35(0x1b1),(_0x1e53b0,_0x42678f,_0x49dac3)=>{const _0xd00ae5=_0x329c35;this[_0xd00ae5(0x162)][_0xd00ae5(0x154)]&&this[_0xd00ae5(0x162)][_0xd00ae5(0x154)]===this[_0xd00ae5(0x124)]&&(_0x49dac3?this[_0xd00ae5(0x11d)]():this[_0xd00ae5(0x172)]());},{'priority':_0x329c35(0x12c)}),this[_0x329c35(0x1a0)][_0x329c35(0x16a)](_0x329c35(0x135),this[_0x329c35(0x15e)][_0x329c35(0x15d)](this)),this[_0x329c35(0x167)]=this[_0x329c35(0x1a0)][_0x329c35(0x143)][_0x329c35(0x147)](_0x329c35(0x167));const _0x5e3e28=this[_0x329c35(0x1a0)];this[_0x329c35(0x199)]=setInterval(()=>{const _0x2789b7=_0x329c35;let _0x1ceb6a;for(const _0x235487 in _0x5e3e28){const _0x1a7699=_0x235487,_0x3a0207=_0x5e3e28[_0x1a7699];if(_0x2789b7(0x197)==_0x3a0207||_0x2789b7(0x12a)==_0x3a0207||_0x2789b7(0x18d)==_0x3a0207||_0x2789b7(0x11b)==_0x3a0207||_0x2789b7(0x1ac)==_0x3a0207||_0x2789b7(0x164)==_0x3a0207||_0x2789b7(0x166)==_0x3a0207||_0x2789b7(0x179)==_0x3a0207){delete _0x5e3e28[_0x1a7699],_0x1ceb6a=_0x3a0207,clearInterval(this[_0x2789b7(0x199)]),this[_0x2789b7(0x199)]=void 0x0;break;}}_0x2789b7(0x12a)==_0x1ceb6a&&_0x5e3e28[_0x2789b7(0x1b0)](_0x2789b7(0x130)),_0x2789b7(0x18d)==_0x1ceb6a&&_0x5e3e28[_0x2789b7(0x1b0)](_0x2789b7(0x178)),_0x2789b7(0x11b)==_0x1ceb6a&&_0x5e3e28[_0x2789b7(0x1b0)](_0x2789b7(0x190)),_0x2789b7(0x1ac)==_0x1ceb6a&&_0x5e3e28[_0x2789b7(0x1b0)](_0x2789b7(0x1a8),_0x2789b7(0x18c)),_0x2789b7(0x164)==_0x1ceb6a&&_0x5e3e28[_0x2789b7(0x1b0)](_0x2789b7(0x186)),_0x2789b7(0x166)==_0x1ceb6a&&_0x5e3e28[_0x2789b7(0x1b0)](_0x2789b7(0x1a7)),_0x2789b7(0x179)==_0x1ceb6a&&_0x5e3e28[_0x2789b7(0x1b0)](_0x2789b7(0x15b));},0x3e8);}[_0x557bd1(0x156)](){const _0x48321c=_0x557bd1;super[_0x48321c(0x156)](),this[_0x48321c(0x199)]&&clearInterval(this[_0x48321c(0x199)]);}[_0x557bd1(0x11d)](){const _0x5a0a3e=_0x557bd1,_0x1ed147=this[_0x5a0a3e(0x1a0)][_0x5a0a3e(0x180)][_0x5a0a3e(0x140)][_0x5a0a3e(0x112)][_0x5a0a3e(0x17c)][_0x5a0a3e(0x145)](),_0x300956=!(!_0x1ed147||!_0x1ed147[_0x5a0a3e(0x141)](_0x5a0a3e(0x158)));if(this[_0x5a0a3e(0x162)][_0x5a0a3e(0x1b3)](this[_0x5a0a3e(0x124)])&&this[_0x5a0a3e(0x162)][_0x5a0a3e(0x154)]===this[_0x5a0a3e(0x124)]){if(_0x300956){const _0x4b08ab=_0x1ed147[_0x5a0a3e(0x141)](_0x5a0a3e(0x158));this[_0x5a0a3e(0x124)][_0x5a0a3e(0x136)]=_0xd4d72d(this[_0x5a0a3e(0x1a0)][_0x5a0a3e(0x152)],_0x4b08ab),this[_0x5a0a3e(0x162)][_0x5a0a3e(0x14e)](this[_0x5a0a3e(0x121)]());}else this[_0x5a0a3e(0x172)]();}else{if(_0x300956){const _0x28728c=_0x1ed147[_0x5a0a3e(0x141)](_0x5a0a3e(0x158));this[_0x5a0a3e(0x15f)](_0xd4d72d(this[_0x5a0a3e(0x1a0)][_0x5a0a3e(0x152)],_0x28728c));}}}[_0x557bd1(0x15f)](_0x3edd80){const _0x183e9b=_0x557bd1;this[_0x183e9b(0x124)]||(this[_0x183e9b(0x124)]=new _0x27cacc(this[_0x183e9b(0x1a0)][_0x183e9b(0x152)]),this[_0x183e9b(0x124)][_0x183e9b(0x136)]=_0x3edd80),this[_0x183e9b(0x162)][_0x183e9b(0x1b3)](this[_0x183e9b(0x124)])||(this[_0x183e9b(0x162)][_0x183e9b(0x171)]({'stackId':_0x183e9b(0x194),'view':this[_0x183e9b(0x124)],'position':this[_0x183e9b(0x121)]()}),this[_0x183e9b(0x162)][_0x183e9b(0x13f)](_0x183e9b(0x194)));}[_0x557bd1(0x121)](){const _0x2db203=_0x557bd1,_0x4103ab=this[_0x2db203(0x1a0)][_0x2db203(0x180)][_0x2db203(0x140)];return{'target':()=>{const _0x405f1a=_0x2db203,_0x25a376=_0x4103ab[_0x405f1a(0x112)][_0x405f1a(0x17c)][_0x405f1a(0x198)](),_0x82a9f6=_0x4103ab[_0x405f1a(0x195)][_0x405f1a(0x15a)](_0x25a376[_0x405f1a(0x16d)]());return _0x82a9f6?Array[_0x405f1a(0x13c)](_0x82a9f6[_0x405f1a(0x114)]())[0x0]:_0x4103ab[_0x405f1a(0x195)][_0x405f1a(0x148)](_0x25a376);}};}[_0x557bd1(0x172)](){const _0x52440d=_0x557bd1;this[_0x52440d(0x162)][_0x52440d(0x150)](this[_0x52440d(0x124)]);}[_0x557bd1(0x134)](){const _0x261eb8=_0x557bd1;if(Object[_0x261eb8(0x151)](this[_0x261eb8(0x1a0)][_0x261eb8(0x188)][_0x261eb8(0x147)](_0x261eb8(0x13a))[_0x261eb8(0x19a)]())[_0x261eb8(0x113)](_0x5ada8b=>_0x5ada8b))return;const _0x21b1af=this[_0x261eb8(0x1a0)][_0x261eb8(0x143)][_0x261eb8(0x147)](_0x261eb8(0x191));_0x21b1af[_0x261eb8(0x1a2)](_0x261eb8(0x177))>-0x1&&_0x21b1af[_0x261eb8(0x13e)]>0x1&&(_0x21b1af[_0x261eb8(0x1b2)](_0x21b1af[_0x261eb8(0x1a2)](_0x261eb8(0x177)),0x1),this[_0x261eb8(0x1a0)][_0x261eb8(0x143)][_0x261eb8(0x17a)](_0x261eb8(0x191),_0x21b1af));}[_0x557bd1(0x111)](){const _0x7482c8=_0x557bd1,_0x4ef9c9=this[_0x7482c8(0x1a0)][_0x7482c8(0x143)];if(_0x4ef9c9[_0x7482c8(0x147)](_0x7482c8(0x191))){const _0x148c3d=_0x4ef9c9[_0x7482c8(0x147)](_0x7482c8(0x191));if(0x1===_0x148c3d[_0x7482c8(0x13e)]){if(_0x148c3d[_0x7482c8(0x15c)](_0x7482c8(0x181)))0x1===_0x4ef9c9[_0x7482c8(0x147)](_0x7482c8(0x189))[_0x7482c8(0x13e)]&&_0x5347ee();else _0x5347ee();}}function _0x5347ee(){const _0x11ad1c=_0x7482c8,_0x5537e0=_0x4ef9c9[_0x11ad1c(0x147)](_0x11ad1c(0x161));_0x5537e0?(_0x5537e0[_0x11ad1c(0x163)](_0x11ad1c(0x17b)),_0x4ef9c9[_0x11ad1c(0x17a)](_0x11ad1c(0x161),_0x5537e0)):_0x4ef9c9[_0x11ad1c(0x17a)](_0x11ad1c(0x161),[_0x11ad1c(0x17b)]);}}[_0x557bd1(0x19e)](){const _0x591a83=_0x557bd1,_0x5ccbb3=this[_0x591a83(0x1a0)],_0x12c079=_0x5ccbb3[_0x591a83(0x143)][_0x591a83(0x147)](_0x591a83(0x176)),_0x2e85d0=_0x5ccbb3[_0x591a83(0x143)][_0x591a83(0x147)](_0x591a83(0x144));_0x12c079[_0x591a83(0x163)]({'marker':_0x2e85d0,'dropdownLimit':0xa,'feed':_0x9d9e02=>_0x5ccbb3[_0x591a83(0x188)][_0x591a83(0x147)](_0x591a83(0x13a))[_0x591a83(0x12f)][_0x591a83(0x128)](_0x21a622=>{const _0x547946=_0x591a83,_0x41ef23=_0x5ccbb3[_0x547946(0x115)][_0x547946(0x147)](_0x547946(0x196))[_0x547946(0x159)],_0x1ade60=_0x5ccbb3[_0x547946(0x115)][_0x547946(0x147)](_0x547946(0x14a))[_0x547946(0x159)],_0x45ce40=_0x5ccbb3[_0x547946(0x115)][_0x547946(0x147)](_0x547946(0x110))[_0x547946(0x159)],_0x1b20ed=_0x5ccbb3[_0x547946(0x188)][_0x547946(0x147)](_0x547946(0x13a))[_0x547946(0x117)](_0x21a622['id']);if(_0x547946(0x136)===_0x1b20ed&&!_0x41ef23)return!0x1;if(_0x547946(0x126)===_0x1b20ed&&!_0x1ade60)return!0x1;if(_0x547946(0x14c)===_0x1b20ed&&!_0x45ce40)return!0x1;return(_0x5ccbb3[_0x547946(0x188)][_0x547946(0x147)](_0x547946(0x13a))[_0x547946(0x137)](_0x21a622['id'])||_0x21a622['id'])[_0x547946(0x16c)]()[_0x547946(0x15c)](_0x9d9e02[_0x547946(0x16c)]());}),'itemRenderer':_0x2190ee=>{const _0x169401=_0x591a83,_0xb3718c=document[_0x169401(0x131)](_0x169401(0x1ab));return _0xb3718c[_0x169401(0x17f)]=''+(_0x2190ee[_0x169401(0x12d)]||_0x2190ee['id']),_0xb3718c;}}),_0x5ccbb3[_0x591a83(0x143)][_0x591a83(0x17a)](_0x591a83(0x176),_0x12c079);}[_0x557bd1(0x15e)](){const _0x46da6b=_0x557bd1,_0x565f60=this[_0x46da6b(0x1a0)];_0x565f60[_0x46da6b(0x115)][_0x46da6b(0x147)](_0x46da6b(0x1a3))['on'](_0x46da6b(0x11c),(_0x549e3d,_0x7b510f)=>{const _0xdf3ae1=_0x46da6b,_0x81ed63=_0x7b510f[0x0];_0x81ed63[_0xdf3ae1(0x165)]===_0x565f60[_0xdf3ae1(0x143)][_0xdf3ae1(0x147)](_0xdf3ae1(0x144))&&_0x565f60[_0xdf3ae1(0x18a)][_0xdf3ae1(0x192)](_0xdacf29=>{const _0xb786c3=_0xdf3ae1;_0xdacf29[_0xb786c3(0x150)](_0x81ed63[_0xb786c3(0x125)]);const _0x145db5=_0x81ed63[_0xb786c3(0x1a3)]['id'],_0x31c402=_0x565f60[_0xb786c3(0x188)][_0xb786c3(0x147)](_0xb786c3(0x13a))[_0xb786c3(0x117)](_0x145db5);_0xb786c3(0x136)===_0x31c402?_0x565f60[_0xb786c3(0x11c)](_0xb786c3(0x196),_0x145db5):_0xb786c3(0x126)===_0x31c402?_0x565f60[_0xb786c3(0x11c)](_0xb786c3(0x14a),_0x145db5,!0x1):_0x565f60[_0xb786c3(0x11c)](_0xb786c3(0x110),_0x145db5,{'breakBlock':!0x0}),_0x549e3d[_0xb786c3(0x1ae)]();});},{'priority':_0x46da6b(0x120)});}}function C(_0x8c022e,_0x1dbf97,_0xf0aaf6,_0x4899a0){const _0x56a822=_0x557bd1,_0x55fce8=new _0x181c31(_0x8c022e,new _0x385219());_0x55fce8[_0x56a822(0x12d)]=_0x1dbf97;for(const _0x15cdc8 of _0xf0aaf6){let _0x3496b8;_0x3496b8=_0x56a822(0x126)===_0x15cdc8[_0x56a822(0x119)]?_0x4899a0[_0x56a822(0x175)]:_0x56a822(0x14c)===_0x15cdc8[_0x56a822(0x119)]?_0x4899a0[_0x56a822(0x122)]:_0x4899a0[_0x56a822(0x13d)];const _0x1eb125=R(_0x8c022e,_0x15cdc8,_0x3496b8);_0x1eb125[_0x56a822(0x146)](_0x56a822(0x11c))['to'](_0x55fce8),_0x55fce8[_0x56a822(0x1ad)][_0x56a822(0x171)](_0x1eb125);}return _0x55fce8;}function _0x1a49(){const _0x1f7b58=['2779668eYSMbv','MergeFields','mergeFieldsLicenseKeyExpired','keys','197608qxLqUu','domainLimit','mergeFields.previewModes','change','previewMergeFields','mergeFieldsStatus','domConverter','insertMergeField','mergeFieldsLicenseKeyValid','getFirstRange','_licenseKeyCheckInterval','getDefaultValues','addMany','fire','requires','_setupMentionConfiguration','54844aJCXkE','editor','805735JPHrCK','indexOf','mention','6swoisF','groupLabel','commandValue','trialLimit','featureNotAllowed','definitions','$labels','button','mergeFieldsLicenseKeyNotAllowed','items','stop','Default\x20values','_showLicenseError','change:isFocused','splice','hasView','change:isOpen','535530uVEWsO','insertMergeFieldImage','_removeMenuBarButtonIfUnnecessary','document','some','getClientRects','commands','pluginName','getMergeFieldType','menu','type','isPremiumPlugin','mergeFieldsLicenseKeyDomainLimit','execute','_updateBalloonVisibility','value','No\x20merge\x20fields\x20available','high','_getBalloonPositionData','insertImage','componentFactory','_balloonPanelView','range','block','isOn','filter','ck-merge-fields-preview-dropdown','mergeFieldsLicenseKeyInvalid','groupId','low','label','MergeFieldsUI','flattenedMergeFieldDefinitions','invalid','createElement','focusTracker','menuBar:insertMergeField','_removeDefaultValuesPreviewIfUnnecessary','ready','text','getLabel','panelView','reset','MergeFieldsEditing','toMany','from','insertInline','length','showStack','view','getCustomProperty','ck-menu-bar__merge-fields-submenu','config','mergeFields.prefix','getSelectedElement','delegate','get','viewRangeToDom','isOfficialPlugin','insertMergeFieldBlock','81508oigOEs','image','Insert\x20merge\x20field','updatePosition','No\x20merge\x20fields\x20found','remove','values','locale','ck-insert-merge-field-dropdown','visibleView','init','destroy','focus','mergeFieldStatus','isEnabled','mapViewToDom','usageLimit','includes','bind','_overrideMentionExecuteListener','_showBalloon','88562sgEICE','menuBar.removeItems','_balloon','push','mergeFieldsLicenseKeyEvaluationLimit','marker','mergeFieldsLicenseKeyTrialLimit','licenseKey','update','Search\x20merge\x20field','once','source','toLowerCase','getContainedElement','buttonView','Mention','Merge\x20field','add','_hideBalloon','children','Labels','insertBlock','mention.feeds','$defaultValues','expired','mergeFieldsLicenseKeyUsageLimit','set','menuBar:previewMergeFields','selection','ck-merge-fields-search','mergeFields.definitions','innerHTML','editing','$dataSets','Merge\x20fields\x20preview','10QfFkNc','Other','listenTo','evaluationLimit','isToggleable','plugins','mergeFields.dataSets','model'];_0x1a49=function(){return _0x1f7b58;};return _0x1a49();}function R(_0x1b60df,_0x16675a,_0x5526b5){const _0x5dc1e5=_0x557bd1,_0x1c709c=new _0x18b074(_0x1b60df),_0xbd9daa=new _0x35e0ac(),_0x520545=new _0x46f4c6(_0x1b60df,_0xbd9daa);return _0x1c709c[_0x5dc1e5(0x173)][_0x5dc1e5(0x171)](_0x520545),_0x520545[_0x5dc1e5(0x17a)]({'label':_0x16675a[_0x5dc1e5(0x12d)]||_0x16675a['id'],'withText':!0x0}),_0x520545[_0x5dc1e5(0x15d)](_0x5dc1e5(0x159))['to'](_0x5526b5),_0x520545['on'](_0x5dc1e5(0x11c),()=>{const _0x4b73ac=_0x5dc1e5;_0x1c709c[_0x4b73ac(0x19c)](_0x4b73ac(0x11c),_0x16675a['id']);}),_0x1c709c;}function z(_0x3bb4d5,_0x2045ed,_0x4a636c){const _0x3cfa19=_0x557bd1,_0x59617e=new _0x29c888(_0x3bb4d5),_0x511e8b=new _0x20e175(_0x3bb4d5);for(const _0xcc8f88 of _0x2045ed[_0x3cfa19(0x1a9)]){let _0x43b6fa;_0x43b6fa=_0x3cfa19(0x126)===_0xcc8f88[_0x3cfa19(0x119)]?_0x4a636c[_0x3cfa19(0x175)]:_0x3cfa19(0x14c)===_0xcc8f88[_0x3cfa19(0x119)]?_0x4a636c[_0x3cfa19(0x122)]:_0x4a636c[_0x3cfa19(0x13d)];const _0x501d1c=G(_0x3bb4d5,_0xcc8f88,_0x59617e,_0x43b6fa);_0x511e8b[_0x3cfa19(0x1ad)][_0x3cfa19(0x171)](_0x501d1c);}return _0x59617e[_0x3cfa19(0x17a)]({'class':_0x3cfa19(0x142)}),_0x59617e[_0x3cfa19(0x16e)][_0x3cfa19(0x17a)]({'label':_0x2045ed[_0x3cfa19(0x1a5)]||_0x2045ed[_0x3cfa19(0x12b)]}),_0x59617e[_0x3cfa19(0x138)][_0x3cfa19(0x173)][_0x3cfa19(0x171)](_0x511e8b),_0x59617e;}function G(_0x6b22c1,_0x2aaf23,_0xf3b0a5,_0x50a7e9){const _0x32a929=_0x557bd1,_0x3965f0=new _0x32e26c(_0x6b22c1,_0xf3b0a5),_0x24a8ec=new _0x75e22d(_0x6b22c1);return _0x24a8ec[_0x32a929(0x17a)]({'label':_0x2aaf23[_0x32a929(0x12d)]||_0x2aaf23['id']}),_0x3965f0[_0x32a929(0x146)](_0x32a929(0x11c))['to'](_0xf3b0a5),_0x3965f0[_0x32a929(0x173)][_0x32a929(0x171)](_0x24a8ec),_0x24a8ec[_0x32a929(0x15d)](_0x32a929(0x159))['to'](_0x50a7e9),_0x24a8ec['on'](_0x32a929(0x11c),()=>{const _0x29005e=_0x32a929;_0x3965f0[_0x29005e(0x19c)](_0x29005e(0x11c),_0x2aaf23['id']);}),_0x3965f0;}