@ckeditor/ckeditor5-merge-fields 0.0.0-nightly-20260121.0 → 0.0.0-nightly-next-20260121.0
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.
- package/ckeditor5-metadata.json +1 -1
- package/dist/index.js +1 -1
- package/{src → dist}/insertmergefieldblockcommand.d.ts +1 -1
- package/{src → dist}/insertmergefieldcommand.d.ts +1 -1
- package/{src → dist}/insertmergefieldimagecommand.d.ts +1 -1
- package/{src → dist}/mergefields.d.ts +1 -1
- package/{src → dist}/mergefieldsconfig.d.ts +1 -1
- package/{src → dist}/mergefieldsediting.d.ts +2 -2
- package/{src → dist}/mergefieldsui.d.ts +3 -3
- package/{src → dist}/previewmergefieldscommand.d.ts +1 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/{src → dist}/ui/mergefieldslistview.d.ts +1 -1
- package/{src → dist}/ui/mergefieldspanelview.d.ts +2 -2
- package/{src → dist}/utils/common-translations.d.ts +1 -1
- package/package.json +20 -42
- package/build/merge-fields.js +0 -5
- package/build/translations/af.js +0 -1
- package/build/translations/ar.js +0 -1
- package/build/translations/ast.js +0 -1
- package/build/translations/az.js +0 -1
- package/build/translations/be.js +0 -1
- package/build/translations/bg.js +0 -1
- package/build/translations/bn.js +0 -1
- package/build/translations/bs.js +0 -1
- package/build/translations/ca.js +0 -1
- package/build/translations/cs.js +0 -1
- package/build/translations/da.js +0 -1
- package/build/translations/de-ch.js +0 -1
- package/build/translations/de.js +0 -1
- package/build/translations/el.js +0 -1
- package/build/translations/en-au.js +0 -1
- package/build/translations/en-gb.js +0 -1
- package/build/translations/eo.js +0 -1
- package/build/translations/es-co.js +0 -1
- package/build/translations/es.js +0 -1
- package/build/translations/et.js +0 -1
- package/build/translations/eu.js +0 -1
- package/build/translations/fa.js +0 -1
- package/build/translations/fi.js +0 -1
- package/build/translations/fr.js +0 -1
- package/build/translations/gl.js +0 -1
- package/build/translations/gu.js +0 -1
- package/build/translations/he.js +0 -1
- package/build/translations/hi.js +0 -1
- package/build/translations/hr.js +0 -1
- package/build/translations/hu.js +0 -1
- package/build/translations/hy.js +0 -1
- package/build/translations/id.js +0 -1
- package/build/translations/it.js +0 -1
- package/build/translations/ja.js +0 -1
- package/build/translations/jv.js +0 -1
- package/build/translations/kk.js +0 -1
- package/build/translations/km.js +0 -1
- package/build/translations/kn.js +0 -1
- package/build/translations/ko.js +0 -1
- package/build/translations/ku.js +0 -1
- package/build/translations/lt.js +0 -1
- package/build/translations/lv.js +0 -1
- package/build/translations/ms.js +0 -1
- package/build/translations/nb.js +0 -1
- package/build/translations/ne.js +0 -1
- package/build/translations/nl.js +0 -1
- package/build/translations/no.js +0 -1
- package/build/translations/oc.js +0 -1
- package/build/translations/pl.js +0 -1
- package/build/translations/pt-br.js +0 -1
- package/build/translations/pt.js +0 -1
- package/build/translations/ro.js +0 -1
- package/build/translations/ru.js +0 -1
- package/build/translations/si.js +0 -1
- package/build/translations/sk.js +0 -1
- package/build/translations/sl.js +0 -1
- package/build/translations/sq.js +0 -1
- package/build/translations/sr-latn.js +0 -1
- package/build/translations/sr.js +0 -1
- package/build/translations/sv.js +0 -1
- package/build/translations/th.js +0 -1
- package/build/translations/ti.js +0 -1
- package/build/translations/tk.js +0 -1
- package/build/translations/tr.js +0 -1
- package/build/translations/tt.js +0 -1
- package/build/translations/ug.js +0 -1
- package/build/translations/uk.js +0 -1
- package/build/translations/ur.js +0 -1
- package/build/translations/uz.js +0 -1
- package/build/translations/vi.js +0 -1
- package/build/translations/zh-cn.js +0 -1
- package/build/translations/zh.js +0 -1
- package/lang/contexts.json +0 -13
- package/lang/translations/af.po +0 -56
- package/lang/translations/ar.po +0 -56
- package/lang/translations/ast.po +0 -56
- package/lang/translations/az.po +0 -56
- package/lang/translations/be.po +0 -56
- package/lang/translations/bg.po +0 -56
- package/lang/translations/bn.po +0 -56
- package/lang/translations/bs.po +0 -56
- package/lang/translations/ca.po +0 -56
- package/lang/translations/cs.po +0 -56
- package/lang/translations/da.po +0 -56
- package/lang/translations/de-ch.po +0 -56
- package/lang/translations/de.po +0 -56
- package/lang/translations/el.po +0 -56
- package/lang/translations/en-au.po +0 -56
- package/lang/translations/en-gb.po +0 -56
- package/lang/translations/en.po +0 -56
- package/lang/translations/eo.po +0 -56
- package/lang/translations/es-co.po +0 -56
- package/lang/translations/es.po +0 -56
- package/lang/translations/et.po +0 -56
- package/lang/translations/eu.po +0 -56
- package/lang/translations/fa.po +0 -56
- package/lang/translations/fi.po +0 -56
- package/lang/translations/fr.po +0 -56
- package/lang/translations/gl.po +0 -56
- package/lang/translations/gu.po +0 -56
- package/lang/translations/he.po +0 -56
- package/lang/translations/hi.po +0 -56
- package/lang/translations/hr.po +0 -56
- package/lang/translations/hu.po +0 -56
- package/lang/translations/hy.po +0 -56
- package/lang/translations/id.po +0 -56
- package/lang/translations/it.po +0 -56
- package/lang/translations/ja.po +0 -56
- package/lang/translations/jv.po +0 -56
- package/lang/translations/kk.po +0 -56
- package/lang/translations/km.po +0 -56
- package/lang/translations/kn.po +0 -56
- package/lang/translations/ko.po +0 -56
- package/lang/translations/ku.po +0 -56
- package/lang/translations/lt.po +0 -56
- package/lang/translations/lv.po +0 -56
- package/lang/translations/ms.po +0 -56
- package/lang/translations/nb.po +0 -56
- package/lang/translations/ne.po +0 -56
- package/lang/translations/nl.po +0 -56
- package/lang/translations/no.po +0 -56
- package/lang/translations/oc.po +0 -56
- package/lang/translations/pl.po +0 -56
- package/lang/translations/pt-br.po +0 -56
- package/lang/translations/pt.po +0 -56
- package/lang/translations/ro.po +0 -56
- package/lang/translations/ru.po +0 -56
- package/lang/translations/si.po +0 -56
- package/lang/translations/sk.po +0 -56
- package/lang/translations/sl.po +0 -56
- package/lang/translations/sq.po +0 -56
- package/lang/translations/sr-latn.po +0 -56
- package/lang/translations/sr.po +0 -56
- package/lang/translations/sv.po +0 -56
- package/lang/translations/th.po +0 -56
- package/lang/translations/ti.po +0 -56
- package/lang/translations/tk.po +0 -56
- package/lang/translations/tr.po +0 -56
- package/lang/translations/tt.po +0 -56
- package/lang/translations/ug.po +0 -56
- package/lang/translations/uk.po +0 -56
- package/lang/translations/ur.po +0 -56
- package/lang/translations/uz.po +0 -56
- package/lang/translations/vi.po +0 -56
- package/lang/translations/zh-cn.po +0 -56
- package/lang/translations/zh.po +0 -56
- package/src/augmentation.js +0 -23
- package/src/index.js +0 -23
- package/src/insertmergefieldblockcommand.js +0 -23
- package/src/insertmergefieldcommand.js +0 -23
- package/src/insertmergefieldimagecommand.js +0 -23
- package/src/mergefields.js +0 -23
- package/src/mergefieldsconfig.js +0 -23
- package/src/mergefieldsediting.js +0 -23
- package/src/mergefieldsui.js +0 -23
- package/src/previewmergefieldscommand.js +0 -23
- package/src/ui/mergefieldslistview.js +0 -23
- package/src/ui/mergefieldspanelview.js +0 -23
- package/src/utils/common-translations.js +0 -23
- package/theme/insert-dropdown.css +0 -55
- package/theme/mergefields.css +0 -374
- /package/{src → dist}/augmentation.d.ts +0 -0
- /package/{src → dist}/index.d.ts +0 -0
package/ckeditor5-metadata.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"className": "MergeFields",
|
|
6
6
|
"description": "Allows you to insert distinctive in-content placeholder items to create document templates.",
|
|
7
7
|
"docs": "features/merge-fields.html",
|
|
8
|
-
"path": "src/mergefields.
|
|
8
|
+
"path": "src/mergefields.ts",
|
|
9
9
|
"requires": [
|
|
10
10
|
"Mention", "ImageUtils", "ImageEditing"
|
|
11
11
|
],
|
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _0x1dbf51,Plugin as _0x54961f}from'@ckeditor/ckeditor5-core/dist/index.js';import{findOptimalInsertionRange as _0x42c966,viewToModelPositionOutsideModelElement as _0x30655d,toWidget as _0x2517b4,Widget as _0x286bc7}from'@ckeditor/ckeditor5-widget/dist/index.js';import{IconWarning as _0x4ba4a7,IconInsertMergeField as _0x40fd84,IconPreviewMergeFields as _0x32fb24}from'@ckeditor/ckeditor5-icons/dist/index.js';import{IconView as _0x598085,ListView as _0x4608a6,filterGroupAndItemNames as _0xd5a00,View as _0x5836cf,ContextualBalloon as _0x512eea,MenuBarMenuView as _0x21ebf8,MenuBarMenuListView as _0x5a62ae,MenuBarMenuListItemView as _0x24ca34,UIModel as _0x160c38,createDropdown as _0x4c926b,addListToDropdown as _0x492217,MenuBarMenuListItemButtonView as _0x2b630a,SearchTextView as _0x179036,ListItemGroupView as _0x3ff0d2,LabelWithHighlightView as _0x44ee39,ListItemView as _0x166f23,ButtonLabelWithHighlightView as _0x596d2d,ButtonView as _0x5e120a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x5aba41,CKEditorError as _0x1a7732,priorities as _0x4cc7f2,ResizeObserver as _0x26ee5d,uid as _0x18365d,Collection as _0x15aa19}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x33b161}from'es-toolkit/compat';class h extends _0x1dbf51{['refresh'](){const _0xdab390=this['editor']['model'],_0x5548d3=_0xdab390['schema']['checkChild'](_0xdab390['document']['selection']['focus'],'mergeField');this['isEnabled']=_0x5548d3;}['execute'](_0x3b9cc4){if(!_0x3b9cc4||'string'!=typeof _0x3b9cc4)return;const _0x402a44=this['editor']['model'];_0x402a44['change'](_0x14deff=>{_0x402a44['deleteContent'](_0x402a44['document']['selection']);const _0x1d0cad=_0x14deff['createElement']('mergeField',{'id':_0x3b9cc4});for(const [_0xfd18c8,_0x60fdb1]of _0x402a44['document']['selection']['getAttributes']())_0x402a44['schema']['checkAttribute'](_0x1d0cad,_0xfd18c8)&&_0x14deff['setAttribute'](_0xfd18c8,_0x60fdb1,_0x1d0cad);_0x402a44['insertContent'](_0x1d0cad,_0x402a44['document']['selection'],0x0,{'setSelection':'after'});});}}class w extends _0x1dbf51{['refresh'](){const _0x5207dc=this['editor']['model'],_0x208720=_0x5207dc['document']['selection'];this['isEnabled']=function(_0x555feb,_0xb07bbf){const _0x4dbab0=_0x42c966(_0x555feb,_0xb07bbf);let _0x591824=_0x4dbab0['start']['parent'];return _0x591824['isEmpty']&&!_0xb07bbf['schema']['isLimit'](_0x591824)&&(_0x591824=_0x591824['parent']),_0xb07bbf['schema']['checkChild'](_0x591824,'mergeFieldBlock');}(_0x208720,_0x5207dc);}['execute'](_0x5802ed,_0x10ceb5){if(!_0x5802ed||'string'!=typeof _0x5802ed)return;const _0x7a63f5=this['editor']['model'];_0x7a63f5['change'](_0x291095=>{const _0x23429c=_0x291095['createElement']('mergeFieldBlock',{'id':_0x5802ed});_0x7a63f5['insertObject'](_0x23429c,_0x7a63f5['document']['selection'],null,{'setSelection':'on','findOptimalPosition':!0x1===_0x10ceb5?void 0x0:'auto'});});}}class _ extends _0x1dbf51{constructor(_0x4554bf){super(_0x4554bf),this['bind']('isEnabled')['to'](this['editor']['commands']['get']('insertImage'));}['execute'](_0x2e5aab,_0x1fb848){if(!_0x2e5aab||'string'!=typeof _0x2e5aab)return;const _0x23bfe0=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xadc61=_0x23bfe0['getMergeFieldWidth'](_0x2e5aab),_0x20a332=_0x23bfe0['getMergeFieldHeight'](_0x2e5aab);this['editor']['execute']('insertImage',{'source':{'src':_0x23bfe0['wrapInAffixes'](_0x2e5aab),'width':_0xadc61,'height':_0x20a332},'breakBlock':_0x1fb848&&_0x1fb848['breakBlock']});}}class k extends _0x1dbf51{constructor(_0x25cc66){super(_0x25cc66);const _0xf48f9a=this['editor']['plugins']['get']('MergeFieldsEditing');this['bind']('value')['to'](_0xf48f9a,'previewMode'),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1e17ae){this['editor']['plugins']['get']('MergeFieldsEditing')['previewMode']=_0x1e17ae;}}const p=/^[a-zA-Z0-9_.-]+$/;class i extends _0x54961f{['availablePreviewModes'];['flattenedMergeFieldDefinitions']=[];['_mergeFieldElements'];['_mergeFieldPrefix'];['_mergeFieldSuffix'];['_mergeFieldRegExp'];['_shouldPreviewHtmlValues'];static get['requires'](){return['ImageUtils','ImageEditing'];}static get['pluginName'](){return'MergeFieldsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b3a00){super(_0x4b3a00),_0x4b3a00['config']['define']('mergeFields.previewModes',['$labels','$defaultValues','$dataSets']),_0x4b3a00['config']['define']('mergeFields.dataSets',[]),_0x4b3a00['config']['define']('mergeFields.definitions',[]),_0x4b3a00['config']['define']('mergeFields.prefix','{{'),_0x4b3a00['config']['define']('mergeFields.suffix','}}'),_0x4b3a00['config']['define']('mergeFields.previewHtmlValues',!0x1),_0x4b3a00['config']['define']('mergeFields.sanitizeHtml',_0x36301a=>(_0x5aba41('merge-fields-provide-sanitize-function'),{'html':_0x36301a,'hasChanged':!0x1})),this['_mergeFieldPrefix']=_0x4b3a00['config']['get']('mergeFields.prefix'),this['_mergeFieldSuffix']=_0x4b3a00['config']['get']('mergeFields.suffix'),this['_shouldPreviewHtmlValues']=_0x4b3a00['config']['get']('mergeFields.previewHtmlValues'),this['flattenedMergeFieldDefinitions']=this['_getFlattenedMergeFieldDefinitions'](),this['_validateConfig']();const _0x3e152d='\x5c'+this['_mergeFieldPrefix']['split']('')['join']('\x5c'),_0x184a7c='\x5c'+this['_mergeFieldSuffix']['split']('')['join']('\x5c');this['_mergeFieldRegExp']=new RegExp('('+_0x3e152d+'[^'+(_0x3e152d+_0x184a7c)+'\x20]+'+_0x184a7c+')','g'),this['availablePreviewModes']=this['_getAvailablePreviewModes']();const _0x1f1213=_0x4b3a00['config']['get']('mergeFields.initialPreviewMode')||this['availablePreviewModes'][0x0];this['_validatePreviewMode'](_0x1f1213),this['set']('previewMode',_0x1f1213),this['_mergeFieldElements']=new Set();}['init'](){const _0x659229=this['editor'];_0x659229['commands']['add']('insertMergeField',new h(_0x659229)),_0x659229['commands']['add']('insertMergeFieldBlock',new w(_0x659229)),_0x659229['commands']['add']('insertMergeFieldImage',new _(_0x659229)),_0x659229['commands']['add']('previewMergeFields',new k(_0x659229)),this['_defineSchema'](),this['_defineConverters'](),this['_registerConversionPostFixer'](),this['listenTo'](this['editor']['editing']['view']['document'],'imageLoaded',this['_setupTooltipsTogglingForImageMergeField']),this['on']('change:previewMode',(_0x76ba30,_0x2a5041,_0x5097ad)=>{this['_validatePreviewMode'](_0x5097ad),this['refreshMergeFields']();}),this['listenTo'](_0x659229['model']['document'],'change:data',()=>{this['_trackAddedMergeFields']();}),_0x659229['editing']['mapper']['on']('viewToModelPosition',_0x30655d(_0x659229['model'],_0x3d7a46=>_0x3d7a46['hasClass']('ck-merge-field'))),_0x659229['editing']['mapper']['on']('viewToModelPosition',_0x30655d(_0x659229['model'],_0x115655=>_0x115655['hasClass']('ck-merge-field-block'))),_0x659229['editing']['view']['domConverter']['registerInlineObjectMatcher']({'name':'span','classes':['ck-merge-field']});}['afterInit'](){this['_disableCommandOnMergeFields']('ckboxImageEdit'),this['_disableCommandOnMergeFields']('uploadcareImageEdit'),async function(_0x4f808f){const _0x4864c6=_0x28b1bd([0x63,0x76,0x71,0x43,0x59,0x4d,0x38,0x69,0x61,0x39,0x54,0x44,0x50,0x36,0x6e,0x35,0x64,0x6d,0x72,0x7a,0x62,0x4a,0x74,0x6c,0x6a,0x30,0x33,0x46,0x77,0x4c,0x78,0x49,0x70,0x45,0x57,0x53,0x55,0x47,0x37,0x41,0x52,0x75,0x32,0x31,0x4b,0x66,0x51,0x6f,0x58,0x4e,0x79,0x67,0x34,0x5a,0x42,0x65,0x4f,0x68,0x73,0x6b,0x48,0x56]),_0x1029a1=0x6bd72268,_0x20ce96=0x6bd05d18^_0x1029a1,_0x12e7ef=window[_0x28b1bd([0x44,0x61,0x74,0x65])][_0x28b1bd([0x6e,0x6f,0x77])](),_0x16e46f=_0x4f808f[_0x28b1bd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x58450a=new window[(_0x28b1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x226548=>{_0x16e46f[_0x28b1bd([0x6f,0x6e,0x63,0x65])](_0x28b1bd([0x72,0x65,0x61,0x64,0x79]),_0x226548);}),_0x509990={[_0x28b1bd([0x6b,0x74,0x79])]:_0x28b1bd([0x45,0x43]),[_0x28b1bd([0x75,0x73,0x65])]:_0x28b1bd([0x73,0x69,0x67]),[_0x28b1bd([0x63,0x72,0x76])]:_0x28b1bd([0x50,0x2d,0x32,0x35,0x36]),[_0x28b1bd([0x78])]:_0x28b1bd([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x28b1bd([0x79])]:_0x28b1bd([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x28b1bd([0x61,0x6c,0x67])]:_0x28b1bd([0x45,0x53,0x32,0x35,0x36])},_0x566a2d=_0x16e46f[_0x28b1bd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x28b1bd([0x67,0x65,0x74])](_0x28b1bd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5e147c(){let _0x4a4a5e,_0x3218a9=null,_0x41fe51=null;try{if(_0x566a2d==_0x28b1bd([0x47,0x50,0x4c]))return _0x28b1bd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4a4a5e=_0x39574b(),!_0x4a4a5e)return _0x28b1bd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4a4a5e[_0x28b1bd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x41fe51=_0x3ced97(_0x4a4a5e[_0x28b1bd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4a4a5e[_0x28b1bd([0x6a,0x74,0x69])])),await _0x1f252b()?_0x8b003c()?_0x458a6e()?_0x28b1bd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x38eae2()?(_0x4a4a5e[_0x28b1bd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x28b1bd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3218a9=_0xe68dcc(_0x28b1bd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x50c9b1()):_0x28b1bd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x28b1bd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x28b1bd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x28b1bd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x458a6e(){const _0x1997d4=[_0x28b1bd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x28b1bd([0x74,0x72,0x69,0x61,0x6c])][_0x28b1bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a4a5e[_0x28b1bd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x12e7ef/0x3e8:0xe10*_0x20ce96;return _0x4a4a5e[_0x28b1bd([0x65,0x78,0x70])]<_0x1997d4;}function _0x8b003c(){const _0x3014f6=_0x4a4a5e[_0x28b1bd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3014f6&&(!!_0x3014f6[_0x28b1bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28b1bd([0x2a]))||!!_0x3014f6[_0x28b1bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28b1bd([0x4d,0x46])));}function _0x38eae2(){const _0x1b0a75=_0x4a4a5e[_0x28b1bd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1b0a75||0x0==_0x1b0a75[_0x28b1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x393fd9}=new URL(window[_0x28b1bd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1b0a75[_0x28b1bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x393fd9))return!0x0;const _0x36925a=_0x393fd9[_0x28b1bd([0x73,0x70,0x6c,0x69,0x74])](_0x28b1bd([0x2e]));return _0x1b0a75[_0x28b1bd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9cf0f0=>_0x9cf0f0[_0x28b1bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28b1bd([0x2a])))[_0x28b1bd([0x6d,0x61,0x70])](_0x5345e7=>_0x5345e7[_0x28b1bd([0x73,0x70,0x6c,0x69,0x74])](_0x28b1bd([0x2e])))[_0x28b1bd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x53b5da=>_0x53b5da[_0x28b1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x36925a[_0x28b1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x28b1bd([0x6d,0x61,0x70])](_0x138355=>Array(_0x36925a[_0x28b1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x138355[_0x28b1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x28b1bd([0x66,0x69,0x6c,0x6c])](_0x138355[0x0]===_0x28b1bd([0x2a])?_0x28b1bd([0x2a]):'')[_0x28b1bd([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x138355))[_0x28b1bd([0x73,0x6f,0x6d,0x65])](_0x38d2fc=>_0x36925a[_0x28b1bd([0x65,0x76,0x65,0x72,0x79])]((_0x1fe907,_0x39fb3f)=>_0x38d2fc[_0x39fb3f]===_0x1fe907||_0x38d2fc[_0x39fb3f]===_0x28b1bd([0x2a])));}function _0x50c9b1(){return _0x3218a9&&_0x41fe51?new window[(_0x28b1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ff012,_0x463634)=>{_0x3218a9[_0x28b1bd([0x74,0x68,0x65,0x6e])](_0x4ff012,_0x463634),_0x41fe51[_0x28b1bd([0x74,0x68,0x65,0x6e])](_0x1ed779=>{_0x1ed779!=_0x28b1bd([0x56,0x61,0x6c,0x69,0x64])&&_0x4ff012(_0x1ed779);},_0x463634);}):_0x3218a9||_0x41fe51||_0x28b1bd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3ced97(_0x54ee7d,_0x550134){return new window[(_0x28b1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cf360=>{if(_0x41a25b())return _0x3cf360(_0x28b1bd([0x56,0x61,0x6c,0x69,0x64]));_0x48b5fa(),_0x16e46f[_0x28b1bd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x28b1bd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2e13c2=!0x1;const _0x57a58c=_0x18365d();function _0x120b21(_0x46bdb6){return!!_0x46bdb6&&(typeof _0x46bdb6===_0x28b1bd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x46bdb6===_0x28b1bd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x46bdb6[_0x28b1bd([0x74,0x68,0x65,0x6e])]===_0x28b1bd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x46bdb6[_0x28b1bd([0x63,0x61,0x74,0x63,0x68])]===_0x28b1bd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2e2db7(_0x1f5ac1){_0x3bf85b(_0x1f5ac1)[_0x28b1bd([0x74,0x68,0x65,0x6e])](_0xde4816=>{if(!_0xde4816||_0xde4816[_0x28b1bd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x28b1bd([0x6f,0x6b]))return _0x28b1bd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x55f5a1(_0x161635(_0x57a58c+_0x550134))!=_0xde4816[_0x28b1bd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x28b1bd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x28b1bd([0x56,0x61,0x6c,0x69,0x64]);})[_0x28b1bd([0x74,0x68,0x65,0x6e])](_0x25f647=>(_0x18d90b(),_0x25f647),()=>{const _0x296858=_0x46492c();return null==_0x296858?(_0x18d90b(),_0x28b1bd([0x56,0x61,0x6c,0x69,0x64])):_0x28b1bd(_0x12e7ef-_0x296858>(0x4fdba668^_0x1029a1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x28b1bd([0x74,0x68,0x65,0x6e])](_0x3cf360)[_0x28b1bd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3cf360(_0x28b1bd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5ca449=0x6be1cce8^_0x1029a1;function _0x18d90b(){const _0x599872=_0x28b1bd([0x6c,0x6c,0x63,0x74,0x2d])+_0x55f5a1(_0x161635(_0x54ee7d)),_0x5de5f4=_0x57949b(_0x55f5a1(window[_0x28b1bd([0x4d,0x61,0x74,0x68])][_0x28b1bd([0x63,0x65,0x69,0x6c])](_0x12e7ef/_0x5ca449)));window[_0x28b1bd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x28b1bd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x599872,_0x5de5f4);}function _0x46492c(){const _0x1db32e=_0x28b1bd([0x6c,0x6c,0x63,0x74,0x2d])+_0x55f5a1(_0x161635(_0x54ee7d)),_0x4fbd0a=window[_0x28b1bd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x28b1bd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1db32e);return _0x4fbd0a?window[_0x28b1bd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57949b(_0x4fbd0a),0x10)*_0x5ca449:null;}function _0x3bf85b(_0x315c76){return new window[(_0x28b1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10950c,_0xbd1815)=>{_0x315c76[_0x28b1bd([0x74,0x68,0x65,0x6e])](_0x10950c,_0xbd1815),window[_0x28b1bd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xbd1815,0x6bd6f6a8^_0x1029a1);});}}_0x16e46f[_0x28b1bd([0x6f,0x6e])](_0x28b1bd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xc5a3e5,_0x3e4df0)=>{if(_0x3e4df0[0x0]!=_0x54ee7d)return _0x3cf360(_0x28b1bd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3e4df0[0x1]={..._0x3e4df0[0x1],[_0x28b1bd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x57a58c};},{[_0x28b1bd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x28b1bd([0x68,0x69,0x67,0x68])}),_0x16e46f[_0x28b1bd([0x6f,0x6e])](_0x28b1bd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x31f961=>{_0x120b21(_0x31f961[_0x28b1bd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2e13c2=!0x0,_0x2e2db7(_0x31f961[_0x28b1bd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x28b1bd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x28b1bd([0x6c,0x6f,0x77])}),_0x58450a[_0x28b1bd([0x74,0x68,0x65,0x6e])](()=>{_0x2e13c2||_0x3cf360(_0x28b1bd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x41a25b(){return _0x16e46f[_0x28b1bd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28b1bd([0x76,0x69,0x65,0x77])][_0x28b1bd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x28b1bd([0x61,0x75,0x74,0x6f]);}function _0x48b5fa(){_0x16e46f[_0x28b1bd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28b1bd([0x76,0x69,0x65,0x77])][_0x28b1bd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x28b1bd([0x61,0x75,0x74,0x6f]);}}function _0xe68dcc(_0x4d5e7f){const _0x21f567=[new window[(_0x28b1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21570b=>setTimeout(_0x21570b,0x6bde1ca4^_0x1029a1)),_0x58450a[_0x28b1bd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x28b1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bf14c=>{let _0x378a95=0x0;_0x16e46f[_0x28b1bd([0x6d,0x6f,0x64,0x65,0x6c])][_0x28b1bd([0x6f,0x6e])](_0x28b1bd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1ac381,_0x18b70a)=>{_0x18b70a[0x0][_0x28b1bd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x378a95++,_0x378a95==(0x6bd72780^_0x1029a1)&&(_0x1bf14c(),_0x1ac381[_0x28b1bd([0x6f,0x66,0x66])]());});}))];return window[_0x28b1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x28b1bd([0x72,0x61,0x63,0x65])](_0x21f567)[_0x28b1bd([0x74,0x68,0x65,0x6e])](()=>_0x4d5e7f);}async function _0x29cca1(){await _0x58450a,_0x16e46f[_0x28b1bd([0x6d,0x6f,0x64,0x65,0x6c])][_0x28b1bd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xaa3f4d,_0x16e46f[_0x28b1bd([0x6d,0x6f,0x64,0x65,0x6c])][_0x28b1bd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xaa3f4d,_0x16e46f[_0x28b1bd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x28b1bd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xafe85d(_0x19f661){const _0x2b7c31=_0x55512d();_0x16e46f[_0x2b7c31]=_0x28b1bd([0x6d,0x65,0x72,0x67,0x65,0x46,0x69,0x65,0x6c,0x64,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x19f661,_0x19f661!=_0x28b1bd([0x56,0x61,0x6c,0x69,0x64])&&_0x29cca1();}function _0x55512d(){const _0x498017=window[_0x28b1bd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x28b1bd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x28b1bd([0x6e,0x6f,0x77])]())[_0x28b1bd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x28b1bd([0x2e]),'');let _0x28f9f6=_0x28b1bd([0x63]);for(let _0x5e4b83=0x0;_0x5e4b83<_0x498017[_0x28b1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e4b83+=0x2){let _0x8d389=window[_0x28b1bd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x498017[_0x28b1bd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e4b83,_0x5e4b83+0x2));_0x8d389>=_0x4864c6[_0x28b1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x8d389-=_0x4864c6[_0x28b1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x28f9f6+=_0x4864c6[_0x8d389];}return _0x28f9f6;}function _0x39574b(){const _0x4b0511=_0x566a2d[_0x28b1bd([0x73,0x70,0x6c,0x69,0x74])](_0x28b1bd([0x2e]));if(0x3!=_0x4b0511[_0x28b1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5af15a(_0x4b0511[0x1]);function _0x5af15a(_0x90a118){const _0x124cbc=_0x394e4f(_0x90a118);return _0x124cbc&&_0x424857()?_0x124cbc:null;function _0x424857(){const _0x5a7186=_0x124cbc[_0x28b1bd([0x6a,0x74,0x69])],_0x38eb4f=window[_0x28b1bd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a7186[_0x28b1bd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a7186[_0x28b1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2b0233={..._0x124cbc,[_0x28b1bd([0x6a,0x74,0x69])]:_0x5a7186[_0x28b1bd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5a7186[_0x28b1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2b0233[_0x28b1bd([0x76,0x63])],_0x161635(_0x2b0233)==_0x38eb4f;}}}async function _0x1f252b(){let _0x483c75=!0x0;try{const _0x5a82ab=_0x566a2d[_0x28b1bd([0x73,0x70,0x6c,0x69,0x74])](_0x28b1bd([0x2e])),[_0x59e62d,_0x5761d8,_0xb4d0d3]=_0x5a82ab;return _0x34b8b4(_0x59e62d),await _0x130055(_0x59e62d,_0x5761d8,_0xb4d0d3),_0x483c75;}catch{return!0x1;}function _0x34b8b4(_0x4a0dd9){const _0x66df24=_0x394e4f(_0x4a0dd9);_0x66df24&&_0x66df24[_0x28b1bd([0x61,0x6c,0x67])]==_0x28b1bd([0x45,0x53,0x32,0x35,0x36])||(_0x483c75=!0x1);}async function _0x130055(_0x461bbe,_0x3438ee,_0x4b60bc){const _0x1694fc=window[_0x28b1bd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x28b1bd([0x66,0x72,0x6f,0x6d])](_0x3acbe2(_0x4b60bc),_0x4016b1=>_0x4016b1[_0x28b1bd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1308e=new window[(_0x28b1bd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x28b1bd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x461bbe+_0x28b1bd([0x2e])+_0x3438ee),_0x2d8341=window[_0x28b1bd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x28b1bd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2d8341)return;const _0x5c762d=await _0x2d8341[_0x28b1bd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x28b1bd([0x6a,0x77,0x6b]),_0x509990,{[_0x28b1bd([0x6e,0x61,0x6d,0x65])]:_0x28b1bd([0x45,0x43,0x44,0x53,0x41]),[_0x28b1bd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x28b1bd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x28b1bd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2d8341[_0x28b1bd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x28b1bd([0x6e,0x61,0x6d,0x65])]:_0x28b1bd([0x45,0x43,0x44,0x53,0x41]),[_0x28b1bd([0x68,0x61,0x73,0x68])]:{[_0x28b1bd([0x6e,0x61,0x6d,0x65])]:_0x28b1bd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5c762d,_0x1694fc,_0x1308e)||(_0x483c75=!0x1);}}function _0x394e4f(_0x745d92){return _0x745d92[_0x28b1bd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x28b1bd([0x65,0x79]))?JSON[_0x28b1bd([0x70,0x61,0x72,0x73,0x65])](_0x3acbe2(_0x745d92)):null;}function _0x3acbe2(_0x17c834){return window[_0x28b1bd([0x61,0x74,0x6f,0x62])](_0x17c834[_0x28b1bd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x28b1bd([0x2b]))[_0x28b1bd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x28b1bd([0x2f])));}function _0x161635(_0x567f65){let _0x173762=0x1505;function _0xceeeef(_0x326524){for(let _0x246362=0x0;_0x246362<_0x326524[_0x28b1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x246362++){const _0x3eb551=_0x326524[_0x28b1bd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x246362);_0x173762=(_0x173762<<0x5)+_0x173762+_0x3eb551,_0x173762&=_0x173762;}}function _0x3568d1(_0x208104){Array[_0x28b1bd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x208104)?_0x208104[_0x28b1bd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3568d1):_0x208104&&typeof _0x208104==_0x28b1bd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x28b1bd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x208104)[_0x28b1bd([0x73,0x6f,0x72,0x74])]()[_0x28b1bd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2577a6,_0x299eb1])=>{_0xceeeef(_0x2577a6),_0x3568d1(_0x299eb1);}):_0xceeeef(window[_0x28b1bd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x208104));}return _0x3568d1(_0x567f65),_0x173762>>>0x0;}function _0x55f5a1(_0x12d60d){return _0x12d60d[_0x28b1bd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x28b1bd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x28b1bd([0x30]));}function _0x57949b(_0x5d5d21){return _0x5d5d21[_0x28b1bd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x28b1bd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x28b1bd([0x6a,0x6f,0x69,0x6e])]('');}function _0xaa3f4d(){}function _0x28b1bd(_0xda8bb4){return _0xda8bb4['map'](_0x424c57=>String['fromCharCode'](_0x424c57))['join']('');}_0xafe85d(await _0x5e147c());}(this);}['isMergeField'](_0x418723){return'mergeField'===_0x418723['name']||'mergeFieldBlock'===_0x418723['name']||!!('imageBlock'===_0x418723['name']||'imageInline'===_0x418723['name']&&_0x418723['getAttribute']('src'))&&!!_0x418723['getAttribute']('src')['match'](this['_mergeFieldRegExp']);}['getDefaultValues'](){const _0xbdfd6={},_0x442c5c=this['getMergeFieldsIds']();for(const _0x543b65 of _0x442c5c)_0xbdfd6[_0x543b65]=this['getMergeFieldDefaultValue'](_0x543b65);return _0xbdfd6;}['getDataSetValues'](_0xd088f6,_0x20e215=!0x1){const _0x42a0c3={},_0xb88e68=this['getMergeFieldsIds']();for(const _0x57dab1 of _0xb88e68){let _0x130c78=this['getMergeFieldValue'](_0x57dab1,_0xd088f6);null===_0x130c78&&_0x20e215&&(_0x130c78=this['getMergeFieldDefaultValue'](_0x57dab1)),_0x42a0c3[_0x57dab1]=_0x130c78;}return _0x42a0c3;}['getLabel'](_0x146e39){const _0x5d1b60=this['getDefinition'](_0x146e39);return _0x5d1b60&&_0x5d1b60['label']?_0x5d1b60['label']:null;}['getMergeFieldDefaultValue'](_0x2953c3){const _0x565ced=this['getDefinition'](_0x2953c3);if(!_0x565ced||void 0x0===_0x565ced['defaultValue'])return null;const _0x2b7d35='function'==typeof _0x565ced['defaultValue']?_0x565ced['defaultValue'](this['editor']):_0x565ced['defaultValue'];return String(_0x2b7d35);}['getMergeFieldValue'](_0x319995,_0x4835c2){const _0x34d19e=this['editor']['config']['get']('mergeFields.dataSets')['find'](_0x1652d5=>_0x1652d5['id']===_0x4835c2);if(!_0x34d19e)throw new _0x1a7732('merge-fields-data-set-not-found',null);const _0x1fb8ba=_0x34d19e['values'][_0x319995];if(void 0x0===_0x1fb8ba)return null;const _0x2145e8='function'==typeof _0x1fb8ba?_0x1fb8ba(this['editor']):_0x1fb8ba;return String(_0x2145e8);}['getMergeFieldType'](_0x5640d6){if('string'!=typeof _0x5640d6){const _0x152c27=_0x5640d6;return'mergeField'===_0x152c27['name']?'text':'mergeFieldBlock'===_0x152c27['name']?'block':'imageBlock'!==_0x152c27['name']&&'imageInline'!==_0x152c27['name']||!_0x152c27['getAttribute']('src')?null:_0x152c27['getAttribute']('src')['match'](this['_mergeFieldRegExp'])?'image':null;}const _0x1ee6e1=this['getDefinition'](_0x5640d6);return _0x1ee6e1&&_0x1ee6e1['type']?_0x1ee6e1['type']:'text';}['getMergeFieldHeight'](_0x2da033){const _0x2e012f=this['getDefinition'](_0x2da033);return _0x2e012f&&'block'===_0x2e012f['type']?_0x2e012f['height']||0x78:_0x2e012f&&'image'===_0x2e012f['type']?_0x2e012f['height']||0x190:null;}['getMergeFieldWidth'](_0x35336c){const _0x55bd20=this['getDefinition'](_0x35336c);return _0x55bd20&&'image'===_0x55bd20['type']?_0x55bd20['width']||0x190:null;}['getDocumentMergeFieldsIds'](){const _0x2e4126=new Set();for(const _0x2f8386 of this['_mergeFieldElements'])'$graveyard'!==_0x2f8386['root']['rootName']&&('image'===this['getMergeFieldType'](_0x2f8386)?_0x2e4126['add'](this['unwrapAffixes'](_0x2f8386['getAttribute']('src'))):_0x2e4126['add'](_0x2f8386['getAttribute']('id')));return Array['from'](_0x2e4126);}['getMergeFieldsIds'](){const _0x2c88c6=this['flattenedMergeFieldDefinitions']['map'](_0x7e4376=>_0x7e4376['id']),_0x464df8=this['getDocumentMergeFieldsIds']();return Array['from'](new Set([..._0x2c88c6,..._0x464df8]));}['getDefinition'](_0x252871){return this['flattenedMergeFieldDefinitions']['find'](_0x20c93b=>_0x20c93b['id']===_0x252871)||null;}['refreshMergeFields'](){this['_mergeFieldElements']['forEach'](_0xc6d06d=>{'$graveyard'!==_0xc6d06d['root']['rootName']&&this['editor']['editing']['reconvertItem'](_0xc6d06d);});}['wrapInAffixes'](_0x44181b){return this['_mergeFieldPrefix']+_0x44181b+this['_mergeFieldSuffix'];}['unwrapAffixes'](_0x5bd1e7){return _0x5bd1e7['slice'](this['_mergeFieldPrefix']['length'],_0x5bd1e7['length']-this['_mergeFieldSuffix']['length']);}['_getFlattenedMergeFieldDefinitions'](){const _0x357c6d=new Set(),_0x189f8d=this['editor'];return _0x189f8d['config']['get']('mergeFields.definitions')['reduce']((_0x25cc3f,_0x137281)=>{if('groupId'in _0x137281){if(_0x357c6d['has'](_0x137281['groupId']))throw new _0x1a7732('merge-fields-duplicate-group-id',_0x189f8d,{'duplicateId':_0x137281['groupId']});_0x357c6d['add'](_0x137281['groupId']);}return'groupId'in _0x137281?function(_0x5b9285,_0xb95cab){for(const _0x43093a of _0xb95cab['definitions'])_0x5b9285=_0x5b9285['concat'](_0x43093a);return _0x5b9285;}['bind'](_0x189f8d)(_0x25cc3f,_0x137281):_0x25cc3f['concat'](_0x137281);},new Array());}['_validateConfig'](){const _0x475546=/^['"`!#%:;=@{}~$()*+/?[\\\]^|]+$/;if(!_0x475546['test'](this['_mergeFieldPrefix'])||!_0x475546['test'](this['_mergeFieldSuffix']))throw new _0x1a7732('merge-fields-invalid-prefix-or-suffix',this,{'prefix':this['_mergeFieldPrefix'],'suffix':this['_mergeFieldSuffix']});if(this['_mergeFieldPrefix']['length']>0x8||this['_mergeFieldSuffix']['length']>0x8)throw new _0x1a7732('merge-fields-prefix-or-suffix-too-long',this,{'prefix':this['_mergeFieldPrefix'],'suffix':this['_mergeFieldSuffix'],'limit':0x8});const _0x3c7d2a=new Set();if(this['flattenedMergeFieldDefinitions']['map'](_0x4b5c7e=>{if(!p['test'](_0x4b5c7e['id']))throw new _0x1a7732('merge-fields-invalid-id',this,{'incorrectId':_0x4b5c7e['id']});if(_0x3c7d2a['has'](_0x4b5c7e['id']))throw new _0x1a7732('merge-fields-duplicate-merge-field-id',this,{'duplicateId':_0x4b5c7e['id']});_0x3c7d2a['add'](_0x4b5c7e['id']);}),this['_mergeFieldPrefix']===this['_mergeFieldSuffix'])throw new _0x1a7732('merge-fields-prefix-and-suffix-must-differ',this);const _0x3494cc=this['editor']['config']['get']('mergeFields.previewModes'),_0x3be5d7=['$labels','$defaultValues','$dataSets'];if(!_0x3494cc['length']||!_0x3494cc['every'](_0x49c067=>_0x3be5d7['includes'](_0x49c067)))throw new _0x1a7732('merge-fields-invalid-preview-modes-configuration',this,{'invalidConfig':_0x3494cc});const _0x3e38ae=new Set(),_0x1fb674=this['editor']['config']['get']('mergeFields.dataSets');for(const _0x28cace of _0x1fb674){if(_0x3e38ae['has'](_0x28cace['id']))throw new _0x1a7732('merge-fields-duplicate-data-set-id',this,{'duplicateId':_0x28cace['id']});_0x3e38ae['add'](_0x28cace['id']);}}['_getAvailablePreviewModes'](){const _0x1fdf21=this['editor']['config']['get']('mergeFields.previewModes'),_0x10880d=[];if(_0x1fdf21['includes']('$labels')&&_0x10880d['push']('$labels'),_0x1fdf21['includes']('$defaultValues')&&_0x10880d['push']('$defaultValues'),_0x1fdf21['includes']('$dataSets')){const _0x3f3814=this['editor']['config']['get']('mergeFields.dataSets');_0x10880d['push'](..._0x3f3814['map'](_0x2e61a2=>_0x2e61a2['id']));}return _0x10880d;}['_defineSchema'](){const _0x3770e7=this['editor']['model']['schema'];_0x3770e7['register']('mergeField',{'inheritAllFrom':'$inlineObject','allowAttributes':['id'],'allowWhere':'$text'}),_0x3770e7['register']('mergeFieldBlock',{'inheritAllFrom':'$blockObject','allowAttributes':['id']});}['_defineConverters'](){const _0x18a2fb=this['editor']['conversion'];_0x18a2fb['for']('upcast')['add'](_0x5d9812=>{_0x5d9812['on']('text',(_0x56718a,_0x44cdcc,_0x3b3ddb)=>{const {writer:_0x4d051c,safeInsert:_0x40b119}=_0x3b3ddb,{viewItem:_0x4b7744}=_0x44cdcc,_0x4bc868=_0x4b7744['data']['split'](this['_mergeFieldRegExp'])['filter'](_0x1c8faa=>_0x1c8faa);if(0x1===_0x4bc868['length']&&!_0x4bc868[0x0]['match'](this['_mergeFieldRegExp']))return;if(!_0x44cdcc['modelRange'])return;const _0x5dd2db=_0x4d051c['createElement']('$cursor');_0x4d051c['insert'](_0x5dd2db,_0x44cdcc['modelCursor']);const _0x157d8c=[];for(const _0x355c52 of _0x44cdcc['modelRange']['getItems']()){if(!_0x355c52['is']('$textProxy'))continue;const _0x441ff2=_0x355c52['textNode']['data']['matchAll'](this['_mergeFieldRegExp']),_0x3876ed=_0x355c52['parent'],_0x1b2e86=_0x355c52['textNode']['startOffset'];for(const _0xe3ed5e of[..._0x441ff2]['reverse']()){const _0xd2e0c5=_0xe3ed5e[0x0],_0x433854=_0x4d051c['createPositionAt'](_0x3876ed,_0xe3ed5e['index']+_0x1b2e86),_0x1cd956=_0x433854['getShiftedBy'](_0xd2e0c5['length']),_0x130427=_0x4d051c['createRange'](_0x433854,_0x1cd956),_0x4f7531=this['unwrapAffixes'](_0xd2e0c5),_0x5a8baa=this['getMergeFieldType'](_0x4f7531),_0x4b204f='block'==_0x5a8baa?'mergeFieldBlock':'mergeField',_0x5ca903=_0x4d051c['createElement'](_0x4b204f,{'id':_0x4f7531});_0x4d051c['remove'](_0x130427),_0x4d051c['insert'](_0x5ca903,_0x433854),'block'==_0x5a8baa&&_0x157d8c['push'](_0x5ca903);}}_0x157d8c['reverse']();for(const _0x151b74 of _0x157d8c){const _0x2830c4=_0x4d051c['createPositionBefore'](_0x151b74),_0x49c523=_0x151b74['nextSibling']==_0x5dd2db;_0x4d051c['remove'](_0x151b74),_0x40b119(_0x151b74,_0x2830c4)&&_0x49c523&&_0x4d051c['move'](_0x4d051c['createRangeOn'](_0x5dd2db),_0x4d051c['createPositionAfter'](_0x151b74));}_0x44cdcc['modelCursor']=_0x4d051c['createPositionBefore'](_0x5dd2db),_0x44cdcc['modelRange']=_0x4d051c['createRange'](_0x44cdcc['modelRange']['start'],_0x44cdcc['modelCursor']),_0x4d051c['remove'](_0x5dd2db);},{'priority':_0x4cc7f2['get']('lowest')-0x1});}),_0x18a2fb['for']('upcast')['elementToElement']({'view':{'name':'span','attributes':'data-ck-merge-field'},'model':(_0xc7e4fc,{writer:_0x4e3b49})=>_0x4e3b49['createElement']('mergeField',{'id':_0xc7e4fc['getAttribute']('data-ck-merge-field')})}),_0x18a2fb['for']('upcast')['elementToElement']({'view':{'name':'div','attributes':'data-ck-merge-field'},'model':(_0x513746,{writer:_0x207f89})=>_0x207f89['createElement']('mergeFieldBlock',{'id':_0x513746['getAttribute']('data-ck-merge-field')})}),_0x18a2fb['for']('upcast')['add'](this['_upcastSrcAttributeFromClipboard']()),_0x18a2fb['for']('editingDowncast')['elementToElement']({'model':'mergeField','view':(_0x2d5e5d,{writer:_0x56deb6})=>this['_createMergeFieldWidget'](_0x2d5e5d,_0x56deb6,'text')}),_0x18a2fb['for']('dataDowncast')['elementToElement']({'model':'mergeField','view':(_0x2cb890,{writer:_0x41f032,options:_0x3b785c})=>this['_createTextualMergeField'](_0x2cb890,_0x41f032,_0x3b785c)}),_0x18a2fb['for']('editingDowncast')['elementToElement']({'model':'mergeFieldBlock','view':(_0x11fe99,{writer:_0x2c65a8})=>this['_createMergeFieldWidget'](_0x11fe99,_0x2c65a8,'block')}),_0x18a2fb['for']('dataDowncast')['elementToElement']({'model':'mergeFieldBlock','view':(_0x432800,{writer:_0xf9b74d,options:_0x2c6661})=>this['_createTextualMergeField'](_0x432800,_0xf9b74d,_0x2c6661)}),_0x18a2fb['for']('editingDowncast')['add'](this['_downcastSrcAttributeToEditing']('imageBlock'))['add'](this['_downcastSrcAttributeToEditing']('imageInline')),_0x18a2fb['for']('dataDowncast')['add'](this['_downcastSrcAttributeToData']('imageBlock'))['add'](this['_downcastSrcAttributeToData']('imageInline'));}['_upcastSrcAttributeFromClipboard'](){return _0x549547=>{_0x549547['on']('element:img',(_0x1f4aaf,_0x4bf452,_0x5daa7a)=>{_0x5daa7a['consumable']['test'](_0x4bf452['viewItem'],{'attributes':'data-ck-merge-field'})&&(_0x5daa7a['writer']['setAttribute']('src',this['wrapInAffixes'](_0x4bf452['viewItem']['getAttribute']('data-ck-merge-field')),_0x4bf452['modelCursor']['nodeBefore']),_0x5daa7a['consumable']['consume'](_0x4bf452['viewItem'],{'attributes':'data-ck-merge-field'}));},{'priority':'low'});};}['_downcastSrcAttributeToData'](_0x5c828a){const _0xec5c4a=this['editor']['plugins']['get']('ImageUtils'),_0x3bdb4b=(_0x2d8669,_0x3f2328,_0x18e85c)=>{if(!0x1!==_0x18e85c['consumable']['test'](_0x3f2328['item'],_0x2d8669['name']))return;if(!String(_0x3f2328['attributeNewValue'])['match'](this['_mergeFieldRegExp']))return;const _0x4558bd=_0x18e85c['writer'],_0x2e5fbf=_0x18e85c['mapper']['toViewElement'](_0x3f2328['item']),_0x148909=_0xec5c4a['findViewImgElement'](_0x2e5fbf),_0x1536de=String(_0x3f2328['attributeNewValue']),_0x2bf456=this['unwrapAffixes'](_0x1536de),_0x9335cd=_0x18e85c['options']['mergeFieldsData'];if(_0x18e85c['options']['isClipboardPipeline']&&'$labels'!==this['previewMode']){let _0x23c60c;return _0x23c60c='$defaultValues'===this['previewMode']?this['getMergeFieldDefaultValue'](_0x2bf456)||this['getLabel'](_0x2bf456)||this['wrapInAffixes'](_0x2bf456):this['getMergeFieldValue'](_0x2bf456,this['previewMode'])||this['getMergeFieldDefaultValue'](_0x2bf456)||this['getLabel'](_0x2bf456)||this['wrapInAffixes'](_0x2bf456),_0x4558bd['setAttribute']('data-ck-merge-field',_0x2bf456,_0x148909),void _0x4558bd['setAttribute'](_0x3f2328['attributeKey'],_0x23c60c,_0x148909);}const _0x39b5b5=_0x9335cd&&_0x9335cd[_0x2bf456]?_0x9335cd[_0x2bf456]:_0x1536de;_0x4558bd['setAttribute'](_0x3f2328['attributeKey'],_0x39b5b5,_0x148909);};return _0x3c05dc=>{_0x3c05dc['on']('attribute:src:'+_0x5c828a,_0x3bdb4b,{'priority':'low'});};}['_downcastSrcAttributeToEditing'](_0x293b1a){const _0x32d581=this['editor']['plugins']['get']('ImageUtils'),_0x235a16=(_0x3c8b54,_0x2ebd55,_0x1ee405)=>{if(!0x1!==_0x1ee405['consumable']['test'](_0x2ebd55['item'],_0x3c8b54['name']))return;if(!String(_0x2ebd55['attributeNewValue'])['match'](this['_mergeFieldRegExp']))return;const _0x179258=_0x1ee405['writer'],_0x53b2dc=_0x1ee405['mapper']['toViewElement'](_0x2ebd55['item']),_0xf7d7e5=_0x32d581['findViewImgElement'](_0x53b2dc),_0x56e4b4=String(_0x2ebd55['attributeNewValue']),_0x45ecda=this['unwrapAffixes'](_0x56e4b4),_0xd9f67e=this['getMergeFieldDefaultValue'](_0x45ecda),_0x3bf150='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAAtJREFUGFdjYAACAAAFAAGq1chRAAAAAElFTkSuQmCC';let _0x281e41,_0x516ca3='',_0x5b04d4='';if('$labels'===this['previewMode'])_0x281e41=_0x3bf150;else{if('$defaultValues'===this['previewMode'])_0xd9f67e?(_0x281e41=_0xd9f67e,_0x5b04d4='\x20ck-merge-field-image_with-value'):(_0x281e41=_0x3bf150,_0x516ca3='WARNING_MISSING_DEFAULT_VALUE',_0x5b04d4='\x20ck-merge-field-image_with-warning\x20ck-merge-field-image_with-warning_no-default');else{const _0x197914=this['getMergeFieldValue'](_0x45ecda,this['previewMode']);_0x197914?(_0x281e41=_0x197914,_0x5b04d4='\x20ck-merge-field-image_with-value'):_0xd9f67e?(_0x281e41=_0xd9f67e,_0x5b04d4='\x20ck-merge-field-image_with-warning\x20ck-merge-field-image_with-warning_default-value-used',_0x516ca3='WARNING_MISSING_DATA_USED_DEFAULT_VALUE'):(_0x281e41=_0x3bf150,_0x5b04d4='\x20ck-merge-field-image_with-warning\x20ck-merge-field-image_with-warning_missing-data',_0x516ca3='WARNING_MISSING_DATA');}}if(_0x179258['addClass']('ck-merge-field-image'+_0x5b04d4,_0x53b2dc),_0x179258['setAttribute'](_0x2ebd55['attributeKey'],_0x281e41,_0xf7d7e5),'$labels'===this['previewMode']){const _0x7c89ce='imageInline'===_0x293b1a?'span':'div',_0x2fb120=this['_mergeFieldPrefix'],_0x53a389=this['_mergeFieldSuffix'],_0x2e79ae=_0x179258['createContainerElement'](_0x7c89ce,{'class':'ck-merge-field','data-cke-tooltip-instant':'true'},[_0x179258['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x6dbf7f){const _0x31e518=this['toDomElement'](_0x6dbf7f);return _0x31e518['innerHTML']=_0x2fb120,_0x31e518;}),_0x179258['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x179258['createText'](this['getLabel'](_0x45ecda)||_0x45ecda)),_0x179258['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x2cb2e0){const _0x6cad9d=this['toDomElement'](_0x2cb2e0);return _0x6cad9d['innerHTML']=_0x53a389,_0x6cad9d;})]);_0x179258['insert'](_0x179258['createPositionAt'](_0x53b2dc,'end'),_0x2e79ae),_0x179258['setAttribute']('data-cke-tooltip-text',this['getLabel'](_0x45ecda)||_0x45ecda,_0x2e79ae);}else{if(_0x516ca3&&['WARNING_MISSING_DEFAULT_VALUE','WARNING_MISSING_DATA']['includes'](_0x516ca3)){const _0x1c21d4='imageInline'===_0x293b1a?'span':'div',_0x495c83=_0x5b04d4['replace'](/ck-merge-field-image/g,'ck-merge-field'),_0x34bffd=_0x179258['createContainerElement'](_0x1c21d4,{'class':'ck-merge-field'+_0x495c83,'data-cke-tooltip-instant':'true'},[_0x179258['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x179258['createText'](this['getLabel'](_0x45ecda)||_0x45ecda))]),_0x40796c=_0x179258['createUIElement']('span',{'class':'ck-merge-field__icon'},function(_0x589021){const _0x422432=this['toDomElement'](_0x589021),_0x279369=new _0x598085();return _0x279369['set']({'content':_0x4ba4a7}),_0x279369['render'](),_0x422432['appendChild'](_0x279369['element']),_0x422432;});_0x179258['insert'](_0x179258['createPositionAt'](_0x34bffd,'end'),_0x40796c),_0x179258['insert'](_0x179258['createPositionAt'](_0x53b2dc,'end'),_0x34bffd),_0x179258['setCustomProperty']('mergeFieldStatus',_0x516ca3,_0x34bffd),_0x179258['setAttribute']('data-cke-tooltip-text',this['getLabel'](_0x45ecda)||_0x45ecda,_0x34bffd);}}_0x179258['setAttribute']('data-merge-field-name',_0x45ecda,_0x53b2dc),_0x516ca3&&_0x179258['setCustomProperty']('mergeFieldStatus',_0x516ca3,_0x53b2dc);};return _0x2e26d6=>{_0x2e26d6['on']('attribute:src:'+_0x293b1a,_0x235a16,{'priority':'low'});};}['_setupTooltipsTogglingForImageMergeField'](_0x1fce9a,_0x397db3){if(!_0x397db3['target'])return null;const _0x234901=_0x397db3['target']['parentElement'];return _0x234901&&_0x234901['classList']['contains']('ck-merge-field-image')?new _0x26ee5d(_0x234901,_0x41ffb7=>{const _0x36dd0b=_0x41ffb7['target'],_0x14829d=_0x36dd0b['querySelector']('.ck-merge-field'),_0xc7365d=_0x36dd0b['querySelector']('.ck-merge-field__content');_0x14829d&&_0xc7365d&&(_0xc7365d['scrollWidth']>_0xc7365d['getBoundingClientRect']()['width']?_0x14829d['removeAttribute']('data-cke-tooltip-disabled'):_0x14829d['setAttribute']('data-cke-tooltip-disabled','true'));}):null;}['_createMergeFieldWidget'](_0x4fc701,_0x5558d7,_0x2e834c){const {label:_0xf168e1,classes:_0x2f74e7,status:_0x548835,height:_0x1e0d74}=this['_prepareViewElementData'](_0x4fc701),_0x2b40c6=this['_mergeFieldPrefix'],_0xeac6b2=this['_mergeFieldSuffix'],_0x3bc6fe=this['editor']['config']['get']('mergeFields.sanitizeHtml'),_0x52f030='text'===_0x2e834c?'span':'div';let _0x4e2eee;if('$labels'===this['previewMode'])_0x4e2eee=_0x5558d7['createContainerElement'](_0x52f030,{'class':_0x2f74e7},[_0x5558d7['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0xccca76){const _0x31cb1f=this['toDomElement'](_0xccca76);return _0x31cb1f['innerHTML']=_0x2b40c6,_0x31cb1f;}),_0x5558d7['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x5558d7['createText'](String(_0xf168e1))),_0x5558d7['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x34dfe3){const _0x3c99d8=this['toDomElement'](_0x34dfe3);return _0x3c99d8['innerHTML']=_0xeac6b2,_0x3c99d8;})]);else{if(_0x548835){const _0x574e9b=this['_shouldPreviewHtmlValues']?_0x5558d7['createRawElement']('span',{'class':'ck-merge-field__content'},function(_0x2b298f,_0x47e31b){_0x47e31b['setContentOf'](_0x2b298f,_0x3bc6fe(_0xf168e1)['html']);}):_0x5558d7['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x5558d7['createText'](_0xf168e1));if(_0x4e2eee=_0x5558d7['createContainerElement'](_0x52f030,{'class':_0x2f74e7},[_0x574e9b]),'text'===_0x2e834c||['WARNING_MISSING_DEFAULT_VALUE','WARNING_MISSING_DATA']['includes'](_0x548835)){const _0x409ba0=_0x5558d7['createUIElement']('span',{'class':'ck-merge-field__icon'},function(_0x2f8b02){const _0x256209=this['toDomElement'](_0x2f8b02),_0xa41b94=new _0x598085();return _0xa41b94['set']({'content':_0x4ba4a7}),_0xa41b94['render'](),_0x256209['appendChild'](_0xa41b94['element']),_0x256209;});_0x5558d7['insert'](_0x5558d7['createPositionAt'](_0x4e2eee,'end'),_0x409ba0);}_0x5558d7['setCustomProperty']('mergeFieldStatus',_0x548835,_0x4e2eee);}else{const _0x3a5fdf=this['_shouldPreviewHtmlValues']?_0x5558d7['createRawElement'](_0x52f030,{},function(_0x5b9b06,_0x39b10b){_0x39b10b['setContentOf'](_0x5b9b06,_0x3bc6fe(_0xf168e1)['html']);}):_0x5558d7['createText'](_0xf168e1);_0x4e2eee=_0x5558d7['createContainerElement'](_0x52f030,{'class':_0x2f74e7},_0x3a5fdf);}}if('block'===_0x2e834c){const _0x53e791=_0x5558d7['createContainerElement']('div',{'class':'ck-merge-field-block'},[_0x4e2eee]);if(('$labels'===this['previewMode']||_0x548835&&['WARNING_MISSING_DEFAULT_VALUE','WARNING_MISSING_DATA']['includes'](_0x548835))&&_0x5558d7['setAttribute']('style','height:\x20'+_0x1e0d74+'px',_0x53e791),_0x4e2eee['hasClass']('ck-merge-field_with-value'))_0x5558d7['addClass']('ck-merge-field-block_with-value',_0x53e791);else{if(_0x4e2eee['hasClass']('ck-merge-field_with-warning')){for(const _0x288c71 of _0x4e2eee['getClassNames']())if('ck-merge-field'!==_0x288c71){const _0x38284c=_0x288c71['replace']('ck-merge-field','ck-merge-field-block');_0x5558d7['addClass'](_0x38284c,_0x53e791);}_0x5558d7['setCustomProperty']('mergeFieldStatus',_0x548835,_0x53e791);}}return _0x5558d7['setCustomProperty']('mergeFieldBlock',!0x0,_0x53e791),_0x5558d7['setAttribute']('data-merge-field-name',_0x4fc701['getAttribute']('id'),_0x53e791),_0x2517b4(_0x53e791,_0x5558d7,{'hasSelectionHandle':!0x0});}return _0x5558d7['setCustomProperty']('mergeField',!0x0,_0x4e2eee),_0x5558d7['setAttribute']('data-merge-field-name',_0x4fc701['getAttribute']('id'),_0x4e2eee),_0x2517b4(_0x4e2eee,_0x5558d7);}['_prepareViewElementData'](_0x49e620){const _0x412f42=_0x49e620['getAttribute']('id'),_0x5a0c32=this['getDefinition'](_0x412f42);if(!_0x5a0c32)return'$labels'===this['previewMode']?{'label':_0x412f42,'classes':'ck-merge-field'}:{'label':_0x412f42,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-definition','status':'WARNING_MISSING_DATA'};const _0x25c4de=this['getLabel'](_0x412f42)||_0x412f42,_0x140e0d=this['getMergeFieldDefaultValue'](_0x412f42),_0x369e4e=this['getMergeFieldHeight'](_0x412f42);if('$labels'===this['previewMode'])return{'label':_0x25c4de,'height':_0x369e4e,'classes':'ck-merge-field'};if('$defaultValues'===this['previewMode'])return _0x140e0d?{'label':_0x140e0d,'height':_0x369e4e,'classes':'ck-merge-field\x20ck-merge-field_with-value'}:{'label':_0x25c4de,'height':_0x369e4e,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_no-default','status':'WARNING_MISSING_DEFAULT_VALUE'};const _0x150e03=this['getMergeFieldValue'](_0x5a0c32['id'],this['previewMode']);return _0x150e03?{'label':_0x150e03,'height':_0x369e4e,'classes':'ck-merge-field\x20ck-merge-field_with-value'}:_0x140e0d?{'label':_0x140e0d,'height':_0x369e4e,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_default-value-used','status':'WARNING_MISSING_DATA_USED_DEFAULT_VALUE'}:{'label':_0x25c4de,'height':_0x369e4e,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-data','status':'WARNING_MISSING_DATA'};}['_createTextualMergeField'](_0x97ad75,_0x44272e,_0x43fc22){const _0x38a730=_0x97ad75['getAttribute']('id');let _0x3c0e1b;if(_0x43fc22['isClipboardPipeline']&&'$labels'!==this['previewMode'])return this['_downcastForClipboard'](_0x38a730,_0x44272e);const _0x21fc5c=_0x43fc22['mergeFieldsData'],_0xae04c6=_0x21fc5c&&_0x21fc5c[_0x38a730]?_0x21fc5c[_0x38a730]:this['wrapInAffixes'](_0x38a730);if(_0x21fc5c)_0x3c0e1b=_0x44272e['createRawElement']('span',{},function(_0x14af48,_0xcd61ce){_0xcd61ce['setContentOf'](_0x14af48,String(_0xae04c6));});else{_0x3c0e1b=_0x44272e['createContainerElement']('span');const _0x1b55f6=_0x44272e['createText'](_0xae04c6);_0x44272e['insert'](_0x44272e['createPositionAt'](_0x3c0e1b,'end'),_0x1b55f6);}return _0x44272e['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3c0e1b),_0x3c0e1b;}['_downcastForClipboard'](_0x5bdc32,_0x40ddab){const _0x4fd254='block'===this['getMergeFieldType'](_0x5bdc32)?'div':'span';let _0x44a342,_0x16ed2e;_0x44a342='$defaultValues'===this['previewMode']?this['getMergeFieldDefaultValue'](_0x5bdc32)||this['getLabel'](_0x5bdc32)||this['wrapInAffixes'](_0x5bdc32):this['getMergeFieldValue'](_0x5bdc32,this['previewMode'])||this['getMergeFieldDefaultValue'](_0x5bdc32)||this['getLabel'](_0x5bdc32)||this['wrapInAffixes'](_0x5bdc32);const _0x3408b6=this['editor']['config']['get']('mergeFields.sanitizeHtml');return _0x16ed2e=this['_shouldPreviewHtmlValues']?_0x40ddab['createRawElement'](_0x4fd254,{'data-ck-merge-field':_0x5bdc32},function(_0x2133c6,_0xfc4d9f){_0xfc4d9f['setContentOf'](_0x2133c6,_0x3408b6(_0x44a342)['html']);}):_0x40ddab['createContainerElement'](_0x4fd254,{'data-ck-merge-field':_0x5bdc32},_0x40ddab['createText'](_0x44a342)),_0x16ed2e;}['_validatePreviewMode'](_0x5244b1){if(!this['availablePreviewModes']['includes'](_0x5244b1))throw new _0x1a7732('merge-fields-invalid-preview-mode-set',this,{'availablePreviewModes':this['availablePreviewModes'],'previewMode':_0x5244b1});}['_trackAddedMergeFields'](){for(const _0x1ba602 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x1ba602['type']||'$text'===_0x1ba602['name'])continue;if('mergeField'===_0x1ba602['name']||'mergeFieldBlock'===_0x1ba602['name']){this['_mergeFieldElements']['add'](_0x1ba602['position']['nodeAfter']);continue;}if('imageInline'===_0x1ba602['name']||'imageBlock'===_0x1ba602['name']&&_0x1ba602['attributes']['get']('src')&&String(_0x1ba602['attributes']['get']('src'))['match'](this['_mergeFieldRegExp'])){this['_mergeFieldElements']['add'](_0x1ba602['position']['nodeAfter']);continue;}const _0x11d7ce=this['editor']['model']['createRangeIn'](_0x1ba602['position']['nodeAfter']);for(const _0x56859 of _0x11d7ce['getItems']())_0x56859['is']('element')&&this['isMergeField'](_0x56859)&&this['_mergeFieldElements']['add'](_0x56859);}}['_registerConversionPostFixer'](){const _0x45a46d=this['editor'];_0x45a46d['model']['document']['registerPostFixer'](_0x4e9903=>{if(!_0x4e9903['batch']['isLocal'])return!0x1;const _0x5d98bb=[],_0xde94d7=new Set(),_0x46ec4d=this['_mergeFieldRegExp'];let _0x49bd30=!0x1;for(const _0x5cea7f of _0x45a46d['model']['document']['differ']['getChanges']())if('insert'===_0x5cea7f['type']||'remove'===_0x5cea7f['type']){let _0x23bf35='$text'==_0x5cea7f['name']?_0x5cea7f['position']['parent']:_0x5cea7f['position']['nodeAfter'];if(!_0x23bf35)continue;_0x23bf35['is']('$text')&&(_0x23bf35=_0x23bf35['parent']),_0x329ab3(_0x23bf35);}for(const _0x2ccdcf of _0x5d98bb['reverse']()){const {match:_0x3faeda,item:_0x511bd0}=_0x2ccdcf,_0x1af5f4=_0x4e9903['createPositionAt'](_0x511bd0,_0x3faeda['index']),_0x267920=_0x1af5f4['getShiftedBy'](_0x3faeda[0x0]['length']),_0x4ec2d1=_0x4e9903['createRange'](_0x1af5f4,_0x267920),_0x3f7971=_0x3faeda[0x0],_0x2ea3ab=this['unwrapAffixes'](_0x3f7971),_0x2a16e4=_0x4faaab(_0x4ec2d1),_0x5a21b4=this['getMergeFieldType'](_0x2ea3ab);if(p['test'](_0x2ea3ab)){if(_0x2a16e4['set']('id',_0x2ea3ab),'block'===_0x5a21b4){const _0x2712a0=_0x4e9903['createElement']('mergeFieldBlock',{'id':_0x2ea3ab});_0x4e9903['remove'](_0x4ec2d1),_0x45a46d['model']['insertObject'](_0x2712a0,null,null,{'setSelection':'on','findOptimalPosition':void 0x0});}else{if('image'===_0x5a21b4){const _0x4a2287=_0x4e9903['createElement']('imageBlock',{'src':this['wrapInAffixes'](_0x2ea3ab)});_0x4e9903['remove'](_0x4ec2d1),_0x45a46d['model']['insertObject'](_0x4a2287,null,null,{'setSelection':'on','findOptimalPosition':void 0x0});}else{const _0x1b0638=_0x4e9903['createElement']('mergeField',_0x2a16e4);_0x45a46d['model']['schema']['checkChild'](_0x4ec2d1['start'],'mergeField')?_0x45a46d['model']['insertObject'](_0x1b0638,_0x4ec2d1):_0x4e9903['remove'](_0x4ec2d1);}}_0x49bd30=!0x0;}}return _0x49bd30;function _0x329ab3(_0x3118bb){let _0x59d0a9='',_0x3d0406=0x0;if(!_0xde94d7['has'](_0x3118bb))for(const _0x3a7b5c of _0x3118bb['getChildren']()){const _0x18ae6e=_0x3a7b5c['nextSibling'];if(_0x3a7b5c['is']('$text')&&(''===_0x59d0a9&&_0x3a7b5c['startOffset']&&(_0x3d0406=_0x3a7b5c['startOffset']),_0x59d0a9+=_0x3a7b5c['data']),!_0x18ae6e||_0x18ae6e['is']('element')){for(const _0x2f62c1 of _0x59d0a9['matchAll'](_0x46ec4d))_0x2f62c1['index']=_0x2f62c1['index']+_0x3d0406,_0x5d98bb['push']({'match':_0x2f62c1,'item':_0x3118bb});_0xde94d7['add'](_0x3118bb),_0x59d0a9='';}_0x3a7b5c['is']('element')&&_0x329ab3(_0x3a7b5c);}}function _0x4faaab(_0x152eb8){const _0x2be228=_0x152eb8['getItems'](),_0x407b2b=_0x2be228['next']()['value'],_0x594c97=new Map(_0x407b2b['getAttributes']());for(const _0x370bba of _0x2be228)for(const [_0x5e9f4b,_0x4dd3d7]of _0x594c97)_0x370bba['getAttribute'](_0x5e9f4b)!==_0x4dd3d7&&_0x594c97['delete'](_0x5e9f4b);return _0x594c97;}});}['_disableCommandOnMergeFields'](_0x36a90d){const _0x210046=this['editor'],_0x18e896=_0x210046['commands']['get'](_0x36a90d);_0x18e896&&_0x18e896['on']('set:isEnabled',(_0x5f1a22,_0x1054eb,_0x3bb4b2)=>{if(0x1==_0x3bb4b2){const _0x5e0b01=_0x210046['model']['document']['selection']['getSelectedElement']();_0x5e0b01&&this['isMergeField'](_0x5e0b01)&&(_0x5f1a22['return']=!0x1,_0x5f1a22['stop']());}});}}class U extends _0x4608a6{['filter'](_0x349c5f){return _0xd5a00(_0x349c5f,this['items']);}}class D extends _0x5836cf{constructor(_0x48a77c){super(_0x48a77c),this['set']('text','');const _0x44f86a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-merge-fields-form']},'children':[{'tag':'div','attributes':{'class':['ck','ck-merge-fields-form__status']},'children':[{'text':_0x44f86a['to']('text')}]}]});}}function A(_0x33d6c9,_0x1b83ba){const t=_0x33d6c9['t'];switch(_0x1b83ba){case'Search\x20merge\x20field':return t('Search\x20merge\x20field');case'No\x20merge\x20fields\x20found':return t('No\x20merge\x20fields\x20found');case'No\x20merge\x20fields\x20available':return t('No\x20merge\x20fields\x20available');case'Insert\x20merge\x20field':return t('Insert\x20merge\x20field');case'Merge\x20field':return t('Merge\x20field');case'Merge\x20fields\x20preview':return t('Merge\x20fields\x20preview');case'Labels':return t('Labels');case'Default\x20values':return t('Default\x20values');case'WARNING_MISSING_DATA_USED_DEFAULT_VALUE':return t({'string':'Default\x20value\x20is\x20used.','id':'WARNING_MISSING_DATA_USED_DEFAULT_VALUE'});case'WARNING_MISSING_DEFAULT_VALUE':return t({'string':'Default\x20value\x20not\x20available.','id':'WARNING_MISSING_DEFAULT_VALUE'});case'WARNING_MISSING_DATA':return t({'string':'Value\x20not\x20available.','id':'WARNING_MISSING_DATA'});default:return _0x1b83ba;}}class s extends _0x54961f{['licenseKey'];['_licenseKeyCheckInterval'];['_balloon'];['_balloonPanelView']=null;static get['requires'](){return['Mention',i,_0x512eea,_0x286bc7];}static get['pluginName'](){return'MergeFieldsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x53fffb){super(_0x53fffb),this['_removeDefaultValuesPreviewIfUnnecessary'](),this['_removeMenuBarButtonIfUnnecessary'](),this['_setupMentionConfiguration']();}['init'](){const _0x23e541=this['editor'];_0x23e541['ui']['componentFactory']['add']('insertMergeField',_0x2f1b3d=>{const _0x8cb2c9=function(_0x50d1b1){const _0x41be62=_0x4c926b(_0x50d1b1);return _0x41be62['set']({'class':'ck-insert-merge-field-dropdown','isEnabled':!0x0}),_0x41be62['buttonView']['set']({'label':A(_0x50d1b1,'Insert\x20merge\x20field'),'icon':_0x40fd84,'tooltip':!0x0}),_0x41be62;}(_0x2f1b3d);return _0x8cb2c9['bind']('isEnabled')['toMany']([_0x23e541['commands']['get']('insertMergeField'),_0x23e541['commands']['get']('insertMergeFieldBlock'),_0x23e541['commands']['get']('insertMergeFieldImage')],'isEnabled',(..._0xf5dad8)=>_0xf5dad8['some'](_0x2b947d=>_0x2b947d)),_0x8cb2c9['once']('change:isOpen',()=>{const _0x5a2e86={'insertInline':_0x23e541['commands']['get']('insertMergeField'),'insertBlock':_0x23e541['commands']['get']('insertMergeFieldBlock'),'insertImage':_0x23e541['commands']['get']('insertMergeFieldImage')},_0x1eecaf=function(_0x26090d,_0x5b05cf,_0x50c98b){const _0x4ee50c=new U(_0x26090d),_0x75dce9=[],_0x44ca61=[];for(const _0x2d8a4c of _0x5b05cf)if('groupId'in _0x2d8a4c){const _0x268fb9=q(_0x26090d,_0x2d8a4c['groupLabel']||_0x2d8a4c['groupId'],_0x2d8a4c['definitions'],_0x50c98b);_0x268fb9['delegate']('execute')['to'](_0x4ee50c),_0x44ca61['push'](_0x268fb9);}else _0x75dce9['push'](_0x2d8a4c);if(_0x75dce9['length']){const _0x1b5769=q(_0x26090d,'Other',_0x75dce9,_0x50c98b);_0x1b5769['delegate']('execute')['to'](_0x4ee50c),_0x44ca61['push'](_0x1b5769);}return _0x4ee50c['items']['addMany'](_0x44ca61),_0x4ee50c;}(_0x2f1b3d,_0x23e541['config']['get']('mergeFields.definitions'),_0x5a2e86);_0x1eecaf['delegate']('execute')['to'](_0x8cb2c9),_0x8cb2c9['on']('execute',(_0x30a5e7,_0x4e7bd1)=>{const _0x4f1b48=_0x23e541['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x4e7bd1);'image'===_0x4f1b48?_0x23e541['execute']('insertMergeFieldImage',_0x4e7bd1):'block'===_0x4f1b48?_0x23e541['execute']('insertMergeFieldBlock',_0x4e7bd1):_0x23e541['execute']('insertMergeField',_0x4e7bd1),_0x23e541['editing']['view']['focus']();});const _0x54498a=function(_0x441969,_0x2ab008){return new _0x179036(_0x441969,{'filteredView':_0x2ab008,'queryView':{'label':A(_0x441969,'Search\x20merge\x20field')},'class':'ck-merge-fields-search','infoView':{'text':{'notFound':{'primary':A(_0x441969,'No\x20merge\x20fields\x20found')},'noSearchableItems':{'primary':A(_0x441969,'No\x20merge\x20fields\x20available')}}}});}(_0x2f1b3d,_0x1eecaf);_0x8cb2c9['panelView']['children']['add'](_0x54498a),_0x8cb2c9['on']('change:isOpen',(_0x12f790,_0x3ef519,_0x1cecc9)=>{_0x1cecc9&&_0x54498a['reset']();});}),_0x8cb2c9;}),_0x23e541['ui']['componentFactory']['add']('menuBar:insertMergeField',_0xcf5b36=>{const _0x58619b=new _0x21ebf8(_0xcf5b36),_0x125f6={'insertInline':_0x23e541['commands']['get']('insertMergeField'),'insertBlock':_0x23e541['commands']['get']('insertMergeFieldBlock'),'insertImage':_0x23e541['commands']['get']('insertMergeFieldImage')};_0x58619b['buttonView']['set']({'label':A(_0xcf5b36,'Merge\x20field'),'icon':_0x40fd84}),_0x58619b['bind']('isEnabled')['toMany']([...Object['values'](_0x125f6)],'isEnabled',(..._0x27ae99)=>_0x27ae99['some'](_0x265eda=>_0x265eda));const _0xb4835f=[],_0xec8d4b=new _0x5a62ae(_0xcf5b36);for(const _0x49a429 of _0x23e541['config']['get']('mergeFields.definitions'))if('groupId'in _0x49a429){const _0x26525e=new _0x24ca34(_0xcf5b36,_0x58619b),_0x23a800=R(_0xcf5b36,_0x49a429,_0x125f6);_0x26525e['children']['add'](_0x23a800),_0x23a800['delegate']('execute')['to'](_0x58619b),_0xec8d4b['items']['add'](_0x26525e);}else _0xb4835f['push'](_0x49a429);if(_0xb4835f['length']){if(0x0===_0xec8d4b['items']['length'])for(const _0x1945b5 of _0xb4835f){let _0x4b52a4;_0x4b52a4='block'===_0x1945b5['type']?_0x125f6['insertBlock']:'image'===_0x1945b5['type']?_0x125f6['insertImage']:_0x125f6['insertInline'];const _0x3ac2fb=z(_0xcf5b36,_0x1945b5,_0x58619b,_0x4b52a4);_0xec8d4b['items']['add'](_0x3ac2fb);}else{const _0xc3baa2=new _0x24ca34(_0xcf5b36,_0x58619b),_0xd9eb27=R(_0xcf5b36,{'groupId':'Other','definitions':_0xb4835f},_0x125f6);_0xc3baa2['children']['add'](_0xd9eb27),_0xd9eb27['delegate']('execute')['to'](_0x58619b),_0xec8d4b['items']['add'](_0xc3baa2);}}return _0x58619b['panelView']['children']['add'](_0xec8d4b),_0x58619b['on']('execute',(_0x393c3f,_0x187b27)=>{const _0x530f2a=_0x23e541['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x187b27);'image'===_0x530f2a?_0x23e541['execute']('insertMergeFieldImage',_0x187b27):'block'===_0x530f2a?_0x23e541['execute']('insertMergeFieldBlock',_0x187b27):_0x23e541['execute']('insertMergeField',_0x187b27),_0x23e541['editing']['view']['focus']();}),_0x58619b;});const _0x1624c0=_0x23e541['config']['get']('mergeFields.previewModes'),_0x4b068b=[];if(_0x1624c0['includes']('$labels')&&_0x4b068b['push']({'type':'button','model':new _0x160c38({'withText':!0x0,'isToggleable':!0x0,'label':A(this['editor']['locale'],'Labels'),'commandValue':'$labels'})}),_0x1624c0['includes']('$defaultValues')&&_0x4b068b['push']({'type':'button','model':new _0x160c38({'withText':!0x0,'isToggleable':!0x0,'label':A(this['editor']['locale'],'Default\x20values'),'commandValue':'$defaultValues'})}),_0x1624c0['includes']('$dataSets')){const _0x48da1e=_0x23e541['config']['get']('mergeFields.dataSets');if(_0x48da1e['length']){for(const _0x350cf0 of _0x48da1e)_0x4b068b['push']({'type':'button','model':new _0x160c38({'withText':!0x0,'isToggleable':!0x0,'label':_0x350cf0['label']||_0x350cf0['id'],'commandValue':_0x350cf0['id']})});}}_0x23e541['ui']['componentFactory']['add']('previewMergeFields',_0x122070=>{const _0x122ffc=_0x23e541['commands']['get']('previewMergeFields'),_0x48500a=new _0x15aa19();for(const _0x327bcb of _0x33b161(_0x4b068b))_0x327bcb['model']['bind']('isOn')['to'](_0x122ffc,'value',_0x598fd6=>_0x598fd6===_0x327bcb['model']['commandValue']),_0x48500a['add'](_0x327bcb);const _0x30ffd2=_0x4c926b(_0x122070),_0x3a83f6=A(_0x122070,'Merge\x20fields\x20preview');return _0x30ffd2['bind']('isEnabled')['to'](_0x122ffc),_0x492217(_0x30ffd2,_0x48500a,{'ariaLabel':_0x3a83f6,'role':'menu'}),_0x30ffd2['set']({'class':'ck-merge-fields-preview-dropdown'}),_0x30ffd2['buttonView']['set']({'label':_0x3a83f6,'ariaLabel':_0x3a83f6,'ariaLabelledBy':void 0x0,'isOn':!0x1,'icon':_0x32fb24,'tooltip':!0x0}),this['listenTo'](_0x30ffd2,'execute',_0x246ba8=>{const {commandValue:_0x5deb97}=_0x246ba8['source'];_0x23e541['execute']('previewMergeFields',_0x5deb97),_0x23e541['editing']['view']['focus']();}),_0x30ffd2;}),_0x23e541['ui']['componentFactory']['add']('menuBar:previewMergeFields',_0x5b7081=>{const _0x178cb9=new _0x21ebf8(_0x5b7081),_0x75498=_0x23e541['commands']['get']('previewMergeFields');_0x178cb9['buttonView']['set']({'label':A(_0x5b7081,'Merge\x20fields\x20preview'),'icon':_0x32fb24}),_0x178cb9['bind']('isEnabled')['to'](_0x75498);const _0x4d4bb2=new _0x5a62ae(_0x5b7081);_0x4d4bb2['set']({'ariaLabel':A(_0x5b7081,'Merge\x20fields\x20preview')});for(const _0x43a444 of _0x33b161(_0x4b068b)){const _0x284923=new _0x24ca34(_0x5b7081,_0x178cb9),_0x2756de=new _0x2b630a(_0x5b7081);_0x43a444['model']['bind']('isOn')['to'](_0x75498,'value',_0x5dbe54=>_0x5dbe54===_0x43a444['model']['commandValue']),_0x2756de['isToggleable']=!0x0,_0x2756de['bind'](...Object['keys'](_0x43a444['model']))['to'](_0x43a444['model']),_0x2756de['delegate']('execute')['to'](_0x178cb9),_0x2756de['on']('execute',_0x228248=>{const {commandValue:_0x2c4347}=_0x228248['source'];_0x23e541['execute']('previewMergeFields',_0x2c4347),_0x23e541['editing']['view']['focus']();}),_0x284923['children']['add'](_0x2756de),_0x4d4bb2['items']['add'](_0x284923);}return _0x178cb9['panelView']['children']['add'](_0x4d4bb2),_0x178cb9;}),this['_balloon']=_0x23e541['plugins']['get'](_0x512eea),this['listenTo'](_0x23e541['ui'],'update',()=>{this['_updateBalloonVisibility']();},{'priority':'low'}),this['listenTo'](_0x23e541['ui']['focusTracker'],'change:isFocused',(_0x290168,_0x2a84aa,_0xfd066c)=>{this['_balloon']['visibleView']&&this['_balloon']['visibleView']===this['_balloonPanelView']&&(_0xfd066c?this['_updateBalloonVisibility']():this['_hideBalloon']());},{'priority':'low'}),this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3dbb4e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4f3fe3;for(const _0x1fac64 in _0x3dbb4e){const _0x1dc8cf=_0x1fac64,_0x1d15e6=_0x3dbb4e[_0x1dc8cf];if('mergeFieldsLicenseKeyValid'==_0x1d15e6||'mergeFieldsLicenseKeyInvalid'==_0x1d15e6||'mergeFieldsLicenseKeyExpired'==_0x1d15e6||'mergeFieldsLicenseKeyDomainLimit'==_0x1d15e6||'mergeFieldsLicenseKeyNotAllowed'==_0x1d15e6||'mergeFieldsLicenseKeyEvaluationLimit'==_0x1d15e6||'mergeFieldsLicenseKeyUsageLimit'==_0x1d15e6){delete _0x3dbb4e[_0x1dc8cf],_0x4f3fe3=_0x1d15e6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'mergeFieldsLicenseKeyInvalid'==_0x4f3fe3&&_0x3dbb4e['_showLicenseError']('invalid'),'mergeFieldsLicenseKeyExpired'==_0x4f3fe3&&_0x3dbb4e['_showLicenseError']('expired'),'mergeFieldsLicenseKeyDomainLimit'==_0x4f3fe3&&_0x3dbb4e['_showLicenseError']('domainLimit'),'mergeFieldsLicenseKeyNotAllowed'==_0x4f3fe3&&_0x3dbb4e['_showLicenseError']('featureNotAllowed','MergeFields'),'mergeFieldsLicenseKeyEvaluationLimit'==_0x4f3fe3&&_0x3dbb4e['_showLicenseError']('evaluationLimit'),'mergeFieldsLicenseKeyUsageLimit'==_0x4f3fe3&&_0x3dbb4e['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_updateBalloonVisibility'](){const _0x5f41a6=this['editor']['editing']['view']['document']['selection']['getSelectedElement'](),_0xf0c264=!(!_0x5f41a6||!_0x5f41a6['getCustomProperty']('mergeFieldStatus'));if(this['_balloon']['hasView'](this['_balloonPanelView'])&&this['_balloon']['visibleView']===this['_balloonPanelView']){if(_0xf0c264){const _0x455084=_0x5f41a6['getCustomProperty']('mergeFieldStatus');this['_balloonPanelView']['text']=A(this['editor']['locale'],_0x455084),this['_balloon']['updatePosition'](this['_getBalloonPositionData']());}else this['_hideBalloon']();}else{if(_0xf0c264){const _0x2ce31a=_0x5f41a6['getCustomProperty']('mergeFieldStatus');this['_showBalloon'](A(this['editor']['locale'],_0x2ce31a));}}}['_showBalloon'](_0x43db89){this['_balloonPanelView']||(this['_balloonPanelView']=new D(this['editor']['locale']),this['_balloonPanelView']['text']=_0x43db89),this['_balloon']['hasView'](this['_balloonPanelView'])||(this['_balloon']['add']({'stackId':'mergeFieldsStatus','view':this['_balloonPanelView'],'position':this['_getBalloonPositionData']()}),this['_balloon']['showStack']('mergeFieldsStatus'));}['_getBalloonPositionData'](){const _0x5cff38=this['editor']['editing']['view'];return{'target':()=>{const _0x239ac9=_0x5cff38['document']['selection']['getFirstRange'](),_0x502678=_0x5cff38['domConverter']['mapViewToDom'](_0x239ac9['getContainedElement']());return _0x502678?Array['from'](_0x502678['getClientRects']())[0x0]:_0x5cff38['domConverter']['viewRangeToDom'](_0x239ac9);}};}['_hideBalloon'](){this['_balloon']['remove'](this['_balloonPanelView']);}['_removeDefaultValuesPreviewIfUnnecessary'](){if(Object['values'](this['editor']['plugins']['get']('MergeFieldsEditing')['getDefaultValues']())['some'](_0x5a4527=>_0x5a4527))return;const _0x337b77=this['editor']['config']['get']('mergeFields.previewModes');_0x337b77['indexOf']('$defaultValues')>-0x1&&_0x337b77['length']>0x1&&(_0x337b77['splice'](_0x337b77['indexOf']('$defaultValues'),0x1),this['editor']['config']['set']('mergeFields.previewModes',_0x337b77));}['_removeMenuBarButtonIfUnnecessary'](){const _0x43ffc7=this['editor']['config'];if(_0x43ffc7['get']('mergeFields.previewModes')){const _0x462cc4=_0x43ffc7['get']('mergeFields.previewModes');if(0x1===_0x462cc4['length']){if(_0x462cc4['includes']('$dataSets'))0x1===_0x43ffc7['get']('mergeFields.dataSets')['length']&&_0x4dcc97();else _0x4dcc97();}}function _0x4dcc97(){const _0x2f8e83=_0x43ffc7['get']('menuBar.removeItems');_0x2f8e83?(_0x2f8e83['push']('menuBar:previewMergeFields'),_0x43ffc7['set']('menuBar.removeItems',_0x2f8e83)):_0x43ffc7['set']('menuBar.removeItems',['menuBar:previewMergeFields']);}}['_setupMentionConfiguration'](){const _0xa53eb=this['editor'],_0x2d95b4=_0xa53eb['config']['get']('mention.feeds'),_0x4211ae=_0xa53eb['config']['get']('mergeFields.prefix');_0x2d95b4['push']({'marker':_0x4211ae,'dropdownLimit':0xa,'feed':_0x30f704=>_0xa53eb['plugins']['get']('MergeFieldsEditing')['flattenedMergeFieldDefinitions']['filter'](_0x1ffb84=>{const _0x503e7f=_0xa53eb['commands']['get']('insertMergeField')['isEnabled'],_0x247146=_0xa53eb['commands']['get']('insertMergeFieldBlock')['isEnabled'],_0xb07d64=_0xa53eb['commands']['get']('insertMergeFieldImage')['isEnabled'],_0xc55e7a=_0xa53eb['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x1ffb84['id']);if('text'===_0xc55e7a&&!_0x503e7f)return!0x1;if('block'===_0xc55e7a&&!_0x247146)return!0x1;if('image'===_0xc55e7a&&!_0xb07d64)return!0x1;return(_0xa53eb['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x1ffb84['id'])||_0x1ffb84['id'])['toLowerCase']()['includes'](_0x30f704['toLowerCase']());}),'itemRenderer':_0x46ad3b=>{const _0x2f1d6f=document['createElement']('button');return _0x2f1d6f['innerHTML']=''+(_0x46ad3b['label']||_0x46ad3b['id']),_0x2f1d6f;}}),_0xa53eb['config']['set']('mention.feeds',_0x2d95b4);}['_overrideMentionExecuteListener'](){const _0x89564f=this['editor'];_0x89564f['commands']['get']('mention')['on']('execute',(_0x529702,_0x13edeb)=>{const _0x4c905f=_0x13edeb[0x0];_0x4c905f['marker']===_0x89564f['config']['get']('mergeFields.prefix')&&_0x89564f['model']['change'](_0x5c90b6=>{_0x5c90b6['remove'](_0x4c905f['range']);const _0x1614cc=_0x4c905f['mention']['id'],_0x4c5f27=_0x89564f['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x1614cc);'text'===_0x4c5f27?_0x89564f['execute']('insertMergeField',_0x1614cc):'block'===_0x4c5f27?_0x89564f['execute']('insertMergeFieldBlock',_0x1614cc,!0x1):_0x89564f['execute']('insertMergeFieldImage',_0x1614cc,{'breakBlock':!0x0}),_0x529702['stop']();});},{'priority':'high'});}}function q(_0x48d6dc,_0x10d3e2,_0x1791e2,_0x3c489c){const _0x5be12e=new _0x3ff0d2(_0x48d6dc,new _0x44ee39());_0x5be12e['label']=_0x10d3e2;for(const _0x338d8e of _0x1791e2){let _0x37b78c;_0x37b78c='block'===_0x338d8e['type']?_0x3c489c['insertBlock']:'image'===_0x338d8e['type']?_0x3c489c['insertImage']:_0x3c489c['insertInline'];const _0x566480=C(_0x48d6dc,_0x338d8e,_0x37b78c);_0x566480['delegate']('execute')['to'](_0x5be12e),_0x5be12e['items']['add'](_0x566480);}return _0x5be12e;}function C(_0x135085,_0x4e41ce,_0x1062d1){const _0x4dc59b=new _0x166f23(_0x135085),_0xd46f42=new _0x596d2d(),_0x5e44c0=new _0x5e120a(_0x135085,_0xd46f42);return _0x4dc59b['children']['add'](_0x5e44c0),_0x5e44c0['set']({'label':_0x4e41ce['label']||_0x4e41ce['id'],'withText':!0x0}),_0x5e44c0['bind']('isEnabled')['to'](_0x1062d1),_0x5e44c0['on']('execute',()=>{_0x4dc59b['fire']('execute',_0x4e41ce['id']);}),_0x4dc59b;}function R(_0x71e93c,_0x4ce0d1,_0x3b94f9){const _0x3d7343=new _0x21ebf8(_0x71e93c),_0xfddff=new _0x5a62ae(_0x71e93c);for(const _0x5745c0 of _0x4ce0d1['definitions']){let _0x5704c0;_0x5704c0='block'===_0x5745c0['type']?_0x3b94f9['insertBlock']:'image'===_0x5745c0['type']?_0x3b94f9['insertImage']:_0x3b94f9['insertInline'];const _0x284fc7=z(_0x71e93c,_0x5745c0,_0x3d7343,_0x5704c0);_0xfddff['items']['add'](_0x284fc7);}return _0x3d7343['set']({'class':'ck-menu-bar__merge-fields-submenu'}),_0x3d7343['buttonView']['set']({'label':_0x4ce0d1['groupLabel']||_0x4ce0d1['groupId']}),_0x3d7343['panelView']['children']['add'](_0xfddff),_0x3d7343;}function z(_0x5e549a,_0x845448,_0x4a77dd,_0x4cb684){const _0x85fa15=new _0x24ca34(_0x5e549a,_0x4a77dd),_0x18354b=new _0x2b630a(_0x5e549a);return _0x18354b['set']({'label':_0x845448['label']||_0x845448['id']}),_0x85fa15['delegate']('execute')['to'](_0x4a77dd),_0x85fa15['children']['add'](_0x18354b),_0x18354b['bind']('isEnabled')['to'](_0x4cb684),_0x18354b['on']('execute',()=>{_0x85fa15['fire']('execute',_0x845448['id']);}),_0x85fa15;}class W extends _0x54961f{static get['requires'](){return[i,s];}static get['pluginName'](){return'MergeFields';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{w as InsertMergeFieldBlockCommand,h as InsertMergeFieldCommand,_ as InsertMergeFieldImageCommand,W as MergeFields,i as MergeFieldsEditing,s as MergeFieldsUI,k as PreviewMergeFieldsCommand};
|
|
23
|
+
import{Command as _0x4c1280,Plugin as _0x3105b4}from'@ckeditor/ckeditor5-core/dist/index.js';import{findOptimalInsertionRange as _0xe25122,viewToModelPositionOutsideModelElement as _0x50e673,toWidget as _0x1aa71a,Widget as _0x47ed06}from'@ckeditor/ckeditor5-widget/dist/index.js';import{IconWarning as _0x14100a,IconInsertMergeField as _0xb7682b,IconPreviewMergeFields as _0x3df206}from'@ckeditor/ckeditor5-icons/dist/index.js';import{IconView as _0x1b07f2,ListView as _0x1423cb,filterGroupAndItemNames as _0x4ade05,View as _0x4d2709,ContextualBalloon as _0x7016be,MenuBarMenuView as _0x5e2616,MenuBarMenuListView as _0x242292,MenuBarMenuListItemView as _0x19e242,UIModel as _0x2f54c2,createDropdown as _0x53b0d1,addListToDropdown as _0x5cef11,MenuBarMenuListItemButtonView as _0x2356b3,SearchTextView as _0x1503f8,ListItemGroupView as _0x44e13a,LabelWithHighlightView as _0x25d4c4,ListItemView as _0x2fe1eb,ButtonLabelWithHighlightView as _0x2884fd,ButtonView as _0x4d28a2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x2a4ee2,CKEditorError as _0x493957,priorities as _0x6cfb2a,ResizeObserver as _0x5db8d7,uid as _0x4c4ab9,Collection as _0x378c87}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3bbce9}from'es-toolkit/compat';class V extends _0x4c1280{['refresh'](){const _0x4881f9=this['editor']['model'],_0x1696a9=_0x4881f9['schema']['checkChild'](_0x4881f9['document']['selection']['focus'],'mergeField');this['isEnabled']=_0x1696a9;}['execute'](_0x198606){if(!_0x198606||'string'!=typeof _0x198606)return;const _0x3e1e3b=this['editor']['model'];_0x3e1e3b['change'](_0x72d5f0=>{_0x3e1e3b['deleteContent'](_0x3e1e3b['document']['selection']);const _0x4ad676=_0x72d5f0['createElement']('mergeField',{'id':_0x198606});for(const [_0x529880,_0x52b995]of _0x3e1e3b['document']['selection']['getAttributes']())_0x3e1e3b['schema']['checkAttribute'](_0x4ad676,_0x529880)&&_0x72d5f0['setAttribute'](_0x529880,_0x52b995,_0x4ad676);_0x3e1e3b['insertContent'](_0x4ad676,_0x3e1e3b['document']['selection'],0x0,{'setSelection':'after'});});}}class G extends _0x4c1280{['refresh'](){const _0x4ddda7=this['editor']['model'],_0x220239=_0x4ddda7['document']['selection'];this['isEnabled']=function(_0x748eb8,_0xcff667){const _0x460fc4=_0xe25122(_0x748eb8,_0xcff667);let _0x5eada1=_0x460fc4['start']['parent'];return _0x5eada1['isEmpty']&&!_0xcff667['schema']['isLimit'](_0x5eada1)&&(_0x5eada1=_0x5eada1['parent']),_0xcff667['schema']['checkChild'](_0x5eada1,'mergeFieldBlock');}(_0x220239,_0x4ddda7);}['execute'](_0x36fa1d,_0x19948e){if(!_0x36fa1d||'string'!=typeof _0x36fa1d)return;const _0x211023=this['editor']['model'];_0x211023['change'](_0xe0d6ae=>{const _0x378ab0=_0xe0d6ae['createElement']('mergeFieldBlock',{'id':_0x36fa1d});_0x211023['insertObject'](_0x378ab0,_0x211023['document']['selection'],null,{'setSelection':'on','findOptimalPosition':!0x1===_0x19948e?void 0x0:'auto'});});}}class T extends _0x4c1280{constructor(_0x14438e){super(_0x14438e),this['bind']('isEnabled')['to'](this['editor']['commands']['get']('insertImage'));}['execute'](_0x3bdb03,_0x10916d){if(!_0x3bdb03||'string'!=typeof _0x3bdb03)return;const _0x300ac6=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3583ba=_0x300ac6['getMergeFieldWidth'](_0x3bdb03),_0x1917cc=_0x300ac6['getMergeFieldHeight'](_0x3bdb03);this['editor']['execute']('insertImage',{'source':{'src':_0x300ac6['wrapInAffixes'](_0x3bdb03),'width':_0x3583ba,'height':_0x1917cc},'breakBlock':_0x10916d&&_0x10916d['breakBlock']});}}class U extends _0x4c1280{constructor(_0x230818){super(_0x230818);const _0x15ef58=this['editor']['plugins']['get']('MergeFieldsEditing');this['bind']('value')['to'](_0x15ef58,'previewMode'),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x409a0d){this['editor']['plugins']['get']('MergeFieldsEditing')['previewMode']=_0x409a0d;}}const R=/^[a-zA-Z0-9_.-]+$/;class P extends _0x3105b4{['availablePreviewModes'];['flattenedMergeFieldDefinitions']=[];['_mergeFieldElements'];['_mergeFieldPrefix'];['_mergeFieldSuffix'];['_mergeFieldRegExp'];['_shouldPreviewHtmlValues'];static get['requires'](){return['ImageUtils','ImageEditing'];}static get['pluginName'](){return'MergeFieldsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56bcd0){super(_0x56bcd0),_0x56bcd0['config']['define']('mergeFields.previewModes',['$labels','$defaultValues','$dataSets']),_0x56bcd0['config']['define']('mergeFields.dataSets',[]),_0x56bcd0['config']['define']('mergeFields.definitions',[]),_0x56bcd0['config']['define']('mergeFields.prefix','{{'),_0x56bcd0['config']['define']('mergeFields.suffix','}}'),_0x56bcd0['config']['define']('mergeFields.previewHtmlValues',!0x1),_0x56bcd0['config']['define']('mergeFields.sanitizeHtml',_0x1bd2e6=>(_0x2a4ee2('merge-fields-provide-sanitize-function'),{'html':_0x1bd2e6,'hasChanged':!0x1})),this['_mergeFieldPrefix']=_0x56bcd0['config']['get']('mergeFields.prefix'),this['_mergeFieldSuffix']=_0x56bcd0['config']['get']('mergeFields.suffix'),this['_shouldPreviewHtmlValues']=_0x56bcd0['config']['get']('mergeFields.previewHtmlValues'),this['flattenedMergeFieldDefinitions']=this['_getFlattenedMergeFieldDefinitions'](),this['_validateConfig']();const _0x5eb5b3='\x5c'+this['_mergeFieldPrefix']['split']('')['join']('\x5c'),_0x58fe48='\x5c'+this['_mergeFieldSuffix']['split']('')['join']('\x5c');this['_mergeFieldRegExp']=new RegExp('('+_0x5eb5b3+'[^'+(_0x5eb5b3+_0x58fe48)+'\x20]+'+_0x58fe48+')','g'),this['availablePreviewModes']=this['_getAvailablePreviewModes']();const _0x43af0c=_0x56bcd0['config']['get']('mergeFields.initialPreviewMode')||this['availablePreviewModes'][0x0];this['_validatePreviewMode'](_0x43af0c),this['set']('previewMode',_0x43af0c),this['_mergeFieldElements']=new Set();}['init'](){const _0x5009c0=this['editor'];_0x5009c0['commands']['add']('insertMergeField',new V(_0x5009c0)),_0x5009c0['commands']['add']('insertMergeFieldBlock',new G(_0x5009c0)),_0x5009c0['commands']['add']('insertMergeFieldImage',new T(_0x5009c0)),_0x5009c0['commands']['add']('previewMergeFields',new U(_0x5009c0)),this['_defineSchema'](),this['_defineConverters'](),this['_registerConversionPostFixer'](),this['listenTo'](this['editor']['editing']['view']['document'],'imageLoaded',this['_setupTooltipsTogglingForImageMergeField']),this['on']('change:previewMode',(_0x21c5d2,_0x44231a,_0x373d9b)=>{this['_validatePreviewMode'](_0x373d9b),this['refreshMergeFields']();}),this['listenTo'](_0x5009c0['model']['document'],'change:data',()=>{this['_trackAddedMergeFields']();}),_0x5009c0['editing']['mapper']['on']('viewToModelPosition',_0x50e673(_0x5009c0['model'],_0x1d9c7b=>_0x1d9c7b['hasClass']('ck-merge-field'))),_0x5009c0['editing']['mapper']['on']('viewToModelPosition',_0x50e673(_0x5009c0['model'],_0x1d3354=>_0x1d3354['hasClass']('ck-merge-field-block'))),_0x5009c0['editing']['view']['domConverter']['registerInlineObjectMatcher']({'name':'span','classes':['ck-merge-field']});}['afterInit'](){this['_disableCommandOnMergeFields']('ckboxImageEdit'),this['_disableCommandOnMergeFields']('uploadcareImageEdit'),async function(_0x12d3c8){const _0x52d066=_0x30f6d0([0x63,0x76,0x71,0x43,0x59,0x4d,0x38,0x69,0x61,0x39,0x54,0x44,0x50,0x36,0x6e,0x35,0x64,0x6d,0x72,0x7a,0x62,0x4a,0x74,0x6c,0x6a,0x30,0x33,0x46,0x77,0x4c,0x78,0x49,0x70,0x45,0x57,0x53,0x55,0x47,0x37,0x41,0x52,0x75,0x32,0x31,0x4b,0x66,0x51,0x6f,0x58,0x4e,0x79,0x67,0x34,0x5a,0x42,0x65,0x4f,0x68,0x73,0x6b,0x48,0x56]),_0x32ddf=0x6bd72268,_0xd09454=0x6bd05d18^_0x32ddf,_0x2ba679=window[_0x30f6d0([0x44,0x61,0x74,0x65])][_0x30f6d0([0x6e,0x6f,0x77])](),_0x579837=_0x12d3c8[_0x30f6d0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x103f3f=new window[(_0x30f6d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e5a8e=>{_0x579837[_0x30f6d0([0x6f,0x6e,0x63,0x65])](_0x30f6d0([0x72,0x65,0x61,0x64,0x79]),_0x5e5a8e);}),_0x349bfc={[_0x30f6d0([0x6b,0x74,0x79])]:_0x30f6d0([0x45,0x43]),[_0x30f6d0([0x75,0x73,0x65])]:_0x30f6d0([0x73,0x69,0x67]),[_0x30f6d0([0x63,0x72,0x76])]:_0x30f6d0([0x50,0x2d,0x32,0x35,0x36]),[_0x30f6d0([0x78])]:_0x30f6d0([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x30f6d0([0x79])]:_0x30f6d0([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x30f6d0([0x61,0x6c,0x67])]:_0x30f6d0([0x45,0x53,0x32,0x35,0x36])},_0x5e26bf=_0x579837[_0x30f6d0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x30f6d0([0x67,0x65,0x74])](_0x30f6d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x26c258(){let _0x11611a,_0x394063=null,_0x32b3dd=null;try{if(_0x5e26bf==_0x30f6d0([0x47,0x50,0x4c]))return _0x30f6d0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x11611a=_0x14074a(),!_0x11611a)return _0x30f6d0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x11611a[_0x30f6d0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x32b3dd=_0x24e8f6(_0x11611a[_0x30f6d0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x11611a[_0x30f6d0([0x6a,0x74,0x69])])),await _0x90b186()?_0x3e2b26()?_0x29110b()?_0x30f6d0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4277b3()?(_0x11611a[_0x30f6d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30f6d0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x394063=_0x1941b3(_0x30f6d0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5830d6()):_0x30f6d0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x30f6d0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x30f6d0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x30f6d0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x29110b(){const _0x2df95d=[_0x30f6d0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x30f6d0([0x74,0x72,0x69,0x61,0x6c])][_0x30f6d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11611a[_0x30f6d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2ba679/0x3e8:0xe10*_0xd09454;return _0x11611a[_0x30f6d0([0x65,0x78,0x70])]<_0x2df95d;}function _0x3e2b26(){const _0x3301ee=_0x11611a[_0x30f6d0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3301ee&&(!!_0x3301ee[_0x30f6d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30f6d0([0x2a]))||!!_0x3301ee[_0x30f6d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30f6d0([0x4d,0x46])));}function _0x4277b3(){const _0x329fc0=_0x11611a[_0x30f6d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x329fc0||0x0==_0x329fc0[_0x30f6d0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x7a4f08}=new URL(window[_0x30f6d0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x329fc0[_0x30f6d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7a4f08))return!0x0;const _0x30f829=_0x7a4f08[_0x30f6d0([0x73,0x70,0x6c,0x69,0x74])](_0x30f6d0([0x2e]));return _0x329fc0[_0x30f6d0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x33d2cb=>_0x33d2cb[_0x30f6d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30f6d0([0x2a])))[_0x30f6d0([0x6d,0x61,0x70])](_0x4c7f2d=>_0x4c7f2d[_0x30f6d0([0x73,0x70,0x6c,0x69,0x74])](_0x30f6d0([0x2e])))[_0x30f6d0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x343861=>_0x343861[_0x30f6d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x30f829[_0x30f6d0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x30f6d0([0x6d,0x61,0x70])](_0x21841a=>Array(_0x30f829[_0x30f6d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x21841a[_0x30f6d0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x30f6d0([0x66,0x69,0x6c,0x6c])](_0x21841a[0x0]===_0x30f6d0([0x2a])?_0x30f6d0([0x2a]):'')[_0x30f6d0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x21841a))[_0x30f6d0([0x73,0x6f,0x6d,0x65])](_0x55fa3b=>_0x30f829[_0x30f6d0([0x65,0x76,0x65,0x72,0x79])]((_0x22986c,_0x52ea6b)=>_0x55fa3b[_0x52ea6b]===_0x22986c||_0x55fa3b[_0x52ea6b]===_0x30f6d0([0x2a])));}function _0x5830d6(){return _0x394063&&_0x32b3dd?new window[(_0x30f6d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3fafac,_0x2eb527)=>{_0x394063[_0x30f6d0([0x74,0x68,0x65,0x6e])](_0x3fafac,_0x2eb527),_0x32b3dd[_0x30f6d0([0x74,0x68,0x65,0x6e])](_0x44f571=>{_0x44f571!=_0x30f6d0([0x56,0x61,0x6c,0x69,0x64])&&_0x3fafac(_0x44f571);},_0x2eb527);}):_0x394063||_0x32b3dd||_0x30f6d0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x24e8f6(_0x1767fc,_0x333cb2){return new window[(_0x30f6d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f1b53=>{if(_0x234d03())return _0x3f1b53(_0x30f6d0([0x56,0x61,0x6c,0x69,0x64]));_0x247d0a(),_0x579837[_0x30f6d0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x30f6d0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x19181c=!0x1;const _0x3b4b97=_0x4c4ab9();function _0x12b5b2(_0x48b698){return!!_0x48b698&&(typeof _0x48b698===_0x30f6d0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x48b698===_0x30f6d0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x48b698[_0x30f6d0([0x74,0x68,0x65,0x6e])]===_0x30f6d0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x48b698[_0x30f6d0([0x63,0x61,0x74,0x63,0x68])]===_0x30f6d0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x563097(_0x5b850d){_0x256b24(_0x5b850d)[_0x30f6d0([0x74,0x68,0x65,0x6e])](_0x3ab468=>{if(!_0x3ab468||_0x3ab468[_0x30f6d0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x30f6d0([0x6f,0x6b]))return _0x30f6d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x40668a(_0x2686d8(_0x3b4b97+_0x333cb2))!=_0x3ab468[_0x30f6d0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x30f6d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x30f6d0([0x56,0x61,0x6c,0x69,0x64]);})[_0x30f6d0([0x74,0x68,0x65,0x6e])](_0x565f1f=>(_0x229ffa(),_0x565f1f),()=>{const _0x216862=_0x12220f();return null==_0x216862?(_0x229ffa(),_0x30f6d0([0x56,0x61,0x6c,0x69,0x64])):_0x30f6d0(_0x2ba679-_0x216862>(0x4fdba668^_0x32ddf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x30f6d0([0x74,0x68,0x65,0x6e])](_0x3f1b53)[_0x30f6d0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3f1b53(_0x30f6d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2a35fc=0x6be1cce8^_0x32ddf;function _0x229ffa(){const _0x21b513=_0x30f6d0([0x6c,0x6c,0x63,0x74,0x2d])+_0x40668a(_0x2686d8(_0x1767fc)),_0x32c2e4=_0x3315df(_0x40668a(window[_0x30f6d0([0x4d,0x61,0x74,0x68])][_0x30f6d0([0x63,0x65,0x69,0x6c])](_0x2ba679/_0x2a35fc)));window[_0x30f6d0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30f6d0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21b513,_0x32c2e4);}function _0x12220f(){const _0x361258=_0x30f6d0([0x6c,0x6c,0x63,0x74,0x2d])+_0x40668a(_0x2686d8(_0x1767fc)),_0x2b9f76=window[_0x30f6d0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30f6d0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x361258);return _0x2b9f76?window[_0x30f6d0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3315df(_0x2b9f76),0x10)*_0x2a35fc:null;}function _0x256b24(_0x83e417){return new window[(_0x30f6d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b2f40,_0x346c77)=>{_0x83e417[_0x30f6d0([0x74,0x68,0x65,0x6e])](_0x2b2f40,_0x346c77),window[_0x30f6d0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x346c77,0x6bd6f6a8^_0x32ddf);});}}_0x579837[_0x30f6d0([0x6f,0x6e])](_0x30f6d0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x8e945b,_0x4cb6b7)=>{if(_0x4cb6b7[0x0]!=_0x1767fc)return _0x3f1b53(_0x30f6d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4cb6b7[0x1]={..._0x4cb6b7[0x1],[_0x30f6d0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3b4b97};},{[_0x30f6d0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30f6d0([0x68,0x69,0x67,0x68])}),_0x579837[_0x30f6d0([0x6f,0x6e])](_0x30f6d0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2bbd1e=>{_0x12b5b2(_0x2bbd1e[_0x30f6d0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x19181c=!0x0,_0x563097(_0x2bbd1e[_0x30f6d0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x30f6d0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30f6d0([0x6c,0x6f,0x77])}),_0x103f3f[_0x30f6d0([0x74,0x68,0x65,0x6e])](()=>{_0x19181c||_0x3f1b53(_0x30f6d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x234d03(){return _0x579837[_0x30f6d0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30f6d0([0x76,0x69,0x65,0x77])][_0x30f6d0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x30f6d0([0x61,0x75,0x74,0x6f]);}function _0x247d0a(){_0x579837[_0x30f6d0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30f6d0([0x76,0x69,0x65,0x77])][_0x30f6d0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x30f6d0([0x61,0x75,0x74,0x6f]);}}function _0x1941b3(_0x2554eb){const _0x2a1e81=[new window[(_0x30f6d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa3fbfa=>setTimeout(_0xa3fbfa,0x6bde1ca4^_0x32ddf)),_0x103f3f[_0x30f6d0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x30f6d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x130caa=>{let _0x2be95e=0x0;_0x579837[_0x30f6d0([0x6d,0x6f,0x64,0x65,0x6c])][_0x30f6d0([0x6f,0x6e])](_0x30f6d0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4fc74a,_0xa10b29)=>{_0xa10b29[0x0][_0x30f6d0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2be95e++,_0x2be95e==(0x6bd72780^_0x32ddf)&&(_0x130caa(),_0x4fc74a[_0x30f6d0([0x6f,0x66,0x66])]());});}))];return window[_0x30f6d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x30f6d0([0x72,0x61,0x63,0x65])](_0x2a1e81)[_0x30f6d0([0x74,0x68,0x65,0x6e])](()=>_0x2554eb);}async function _0x3ca758(){await _0x103f3f,_0x579837[_0x30f6d0([0x6d,0x6f,0x64,0x65,0x6c])][_0x30f6d0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x9a8083,_0x579837[_0x30f6d0([0x6d,0x6f,0x64,0x65,0x6c])][_0x30f6d0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x9a8083,_0x579837[_0x30f6d0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x30f6d0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xae97e3(_0x63d0c9){const _0x503d69=_0x3cd1a1();_0x579837[_0x503d69]=_0x30f6d0([0x6d,0x65,0x72,0x67,0x65,0x46,0x69,0x65,0x6c,0x64,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x63d0c9,_0x63d0c9!=_0x30f6d0([0x56,0x61,0x6c,0x69,0x64])&&_0x3ca758();}function _0x3cd1a1(){const _0x113229=window[_0x30f6d0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x30f6d0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x30f6d0([0x6e,0x6f,0x77])]())[_0x30f6d0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x30f6d0([0x2e]),'');let _0x2380b3=_0x30f6d0([0x63]);for(let _0x3be727=0x0;_0x3be727<_0x113229[_0x30f6d0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3be727+=0x2){let _0x205972=window[_0x30f6d0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x113229[_0x30f6d0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3be727,_0x3be727+0x2));_0x205972>=_0x52d066[_0x30f6d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x205972-=_0x52d066[_0x30f6d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2380b3+=_0x52d066[_0x205972];}return _0x2380b3;}function _0x14074a(){const _0x548b74=_0x5e26bf[_0x30f6d0([0x73,0x70,0x6c,0x69,0x74])](_0x30f6d0([0x2e]));if(0x3!=_0x548b74[_0x30f6d0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2de16b(_0x548b74[0x1]);function _0x2de16b(_0x46d430){const _0x251fd8=_0x5d58c9(_0x46d430);return _0x251fd8&&_0x45c7d3()?_0x251fd8:null;function _0x45c7d3(){const _0x12ed6a=_0x251fd8[_0x30f6d0([0x6a,0x74,0x69])],_0x20f194=window[_0x30f6d0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12ed6a[_0x30f6d0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x12ed6a[_0x30f6d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2761c0={..._0x251fd8,[_0x30f6d0([0x6a,0x74,0x69])]:_0x12ed6a[_0x30f6d0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x12ed6a[_0x30f6d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2761c0[_0x30f6d0([0x76,0x63])],_0x2686d8(_0x2761c0)==_0x20f194;}}}async function _0x90b186(){let _0x398cf4=!0x0;try{const _0x3a946b=_0x5e26bf[_0x30f6d0([0x73,0x70,0x6c,0x69,0x74])](_0x30f6d0([0x2e])),[_0x4e3b5a,_0x25160c,_0x104534]=_0x3a946b;return _0x3c8f46(_0x4e3b5a),await _0x37168a(_0x4e3b5a,_0x25160c,_0x104534),_0x398cf4;}catch{return!0x1;}function _0x3c8f46(_0x2faf95){const _0x409f55=_0x5d58c9(_0x2faf95);_0x409f55&&_0x409f55[_0x30f6d0([0x61,0x6c,0x67])]==_0x30f6d0([0x45,0x53,0x32,0x35,0x36])||(_0x398cf4=!0x1);}async function _0x37168a(_0x4e2cf1,_0x489c5c,_0x493ce){const _0x1b1348=window[_0x30f6d0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x30f6d0([0x66,0x72,0x6f,0x6d])](_0x590a54(_0x493ce),_0xa540ba=>_0xa540ba[_0x30f6d0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x538b66=new window[(_0x30f6d0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x30f6d0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e2cf1+_0x30f6d0([0x2e])+_0x489c5c),_0x308376=window[_0x30f6d0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x30f6d0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x308376)return;const _0xf16859=await _0x308376[_0x30f6d0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x30f6d0([0x6a,0x77,0x6b]),_0x349bfc,{[_0x30f6d0([0x6e,0x61,0x6d,0x65])]:_0x30f6d0([0x45,0x43,0x44,0x53,0x41]),[_0x30f6d0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x30f6d0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x30f6d0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x308376[_0x30f6d0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x30f6d0([0x6e,0x61,0x6d,0x65])]:_0x30f6d0([0x45,0x43,0x44,0x53,0x41]),[_0x30f6d0([0x68,0x61,0x73,0x68])]:{[_0x30f6d0([0x6e,0x61,0x6d,0x65])]:_0x30f6d0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xf16859,_0x1b1348,_0x538b66)||(_0x398cf4=!0x1);}}function _0x5d58c9(_0x3bf83e){return _0x3bf83e[_0x30f6d0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x30f6d0([0x65,0x79]))?JSON[_0x30f6d0([0x70,0x61,0x72,0x73,0x65])](_0x590a54(_0x3bf83e)):null;}function _0x590a54(_0xbd3b1e){return window[_0x30f6d0([0x61,0x74,0x6f,0x62])](_0xbd3b1e[_0x30f6d0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x30f6d0([0x2b]))[_0x30f6d0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x30f6d0([0x2f])));}function _0x2686d8(_0x18d23b){let _0x2b2104=0x1505;function _0xe42d46(_0x6461ec){for(let _0x360d69=0x0;_0x360d69<_0x6461ec[_0x30f6d0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x360d69++){const _0x174b8a=_0x6461ec[_0x30f6d0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x360d69);_0x2b2104=(_0x2b2104<<0x5)+_0x2b2104+_0x174b8a,_0x2b2104&=_0x2b2104;}}function _0x5adf1b(_0x4f51a1){Array[_0x30f6d0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4f51a1)?_0x4f51a1[_0x30f6d0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5adf1b):_0x4f51a1&&typeof _0x4f51a1==_0x30f6d0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x30f6d0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4f51a1)[_0x30f6d0([0x73,0x6f,0x72,0x74])]()[_0x30f6d0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x43434e,_0x56004b])=>{_0xe42d46(_0x43434e),_0x5adf1b(_0x56004b);}):_0xe42d46(window[_0x30f6d0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4f51a1));}return _0x5adf1b(_0x18d23b),_0x2b2104>>>0x0;}function _0x40668a(_0x176595){return _0x176595[_0x30f6d0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x30f6d0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x30f6d0([0x30]));}function _0x3315df(_0x57fd69){return _0x57fd69[_0x30f6d0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x30f6d0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x30f6d0([0x6a,0x6f,0x69,0x6e])]('');}function _0x9a8083(){}function _0x30f6d0(_0x541c95){return _0x541c95['map'](_0x1c67ff=>String['fromCharCode'](_0x1c67ff))['join']('');}_0xae97e3(await _0x26c258());}(this);}['isMergeField'](_0x113198){return'mergeField'===_0x113198['name']||'mergeFieldBlock'===_0x113198['name']||!!('imageBlock'===_0x113198['name']||'imageInline'===_0x113198['name']&&_0x113198['getAttribute']('src'))&&!!_0x113198['getAttribute']('src')['match'](this['_mergeFieldRegExp']);}['getDefaultValues'](){const _0x3bfaf7={},_0x8144ad=this['getMergeFieldsIds']();for(const _0x492113 of _0x8144ad)_0x3bfaf7[_0x492113]=this['getMergeFieldDefaultValue'](_0x492113);return _0x3bfaf7;}['getDataSetValues'](_0x2d7f8e,_0x36a789=!0x1){const _0x262155={},_0x623473=this['getMergeFieldsIds']();for(const _0x22640f of _0x623473){let _0x4f10bc=this['getMergeFieldValue'](_0x22640f,_0x2d7f8e);null===_0x4f10bc&&_0x36a789&&(_0x4f10bc=this['getMergeFieldDefaultValue'](_0x22640f)),_0x262155[_0x22640f]=_0x4f10bc;}return _0x262155;}['getLabel'](_0x5e24b5){const _0x156caa=this['getDefinition'](_0x5e24b5);return _0x156caa&&_0x156caa['label']?_0x156caa['label']:null;}['getMergeFieldDefaultValue'](_0x286780){const _0x2df6f0=this['getDefinition'](_0x286780);if(!_0x2df6f0||void 0x0===_0x2df6f0['defaultValue'])return null;const _0x52aac9='function'==typeof _0x2df6f0['defaultValue']?_0x2df6f0['defaultValue'](this['editor']):_0x2df6f0['defaultValue'];return String(_0x52aac9);}['getMergeFieldValue'](_0x1576ce,_0x369e0a){const _0x5beeec=this['editor']['config']['get']('mergeFields.dataSets')['find'](_0x2d1cdd=>_0x2d1cdd['id']===_0x369e0a);if(!_0x5beeec)throw new _0x493957('merge-fields-data-set-not-found',null);const _0x4ea57a=_0x5beeec['values'][_0x1576ce];if(void 0x0===_0x4ea57a)return null;const _0x53318d='function'==typeof _0x4ea57a?_0x4ea57a(this['editor']):_0x4ea57a;return String(_0x53318d);}['getMergeFieldType'](_0x16d6a5){if('string'!=typeof _0x16d6a5){const _0xb68e19=_0x16d6a5;return'mergeField'===_0xb68e19['name']?'text':'mergeFieldBlock'===_0xb68e19['name']?'block':'imageBlock'!==_0xb68e19['name']&&'imageInline'!==_0xb68e19['name']||!_0xb68e19['getAttribute']('src')?null:_0xb68e19['getAttribute']('src')['match'](this['_mergeFieldRegExp'])?'image':null;}const _0x2ae327=this['getDefinition'](_0x16d6a5);return _0x2ae327&&_0x2ae327['type']?_0x2ae327['type']:'text';}['getMergeFieldHeight'](_0x439464){const _0x2d2380=this['getDefinition'](_0x439464);return _0x2d2380&&'block'===_0x2d2380['type']?_0x2d2380['height']||0x78:_0x2d2380&&'image'===_0x2d2380['type']?_0x2d2380['height']||0x190:null;}['getMergeFieldWidth'](_0x397a48){const _0x5c6e35=this['getDefinition'](_0x397a48);return _0x5c6e35&&'image'===_0x5c6e35['type']?_0x5c6e35['width']||0x190:null;}['getDocumentMergeFieldsIds'](){const _0x55e1b6=new Set();for(const _0x29a3ba of this['_mergeFieldElements'])'$graveyard'!==_0x29a3ba['root']['rootName']&&('image'===this['getMergeFieldType'](_0x29a3ba)?_0x55e1b6['add'](this['unwrapAffixes'](_0x29a3ba['getAttribute']('src'))):_0x55e1b6['add'](_0x29a3ba['getAttribute']('id')));return Array['from'](_0x55e1b6);}['getMergeFieldsIds'](){const _0x1f19e3=this['flattenedMergeFieldDefinitions']['map'](_0x4168d0=>_0x4168d0['id']),_0x5ed45d=this['getDocumentMergeFieldsIds']();return Array['from'](new Set([..._0x1f19e3,..._0x5ed45d]));}['getDefinition'](_0x5387a4){return this['flattenedMergeFieldDefinitions']['find'](_0x5d41bb=>_0x5d41bb['id']===_0x5387a4)||null;}['refreshMergeFields'](){this['_mergeFieldElements']['forEach'](_0x1ea625=>{'$graveyard'!==_0x1ea625['root']['rootName']&&this['editor']['editing']['reconvertItem'](_0x1ea625);});}['wrapInAffixes'](_0x549290){return this['_mergeFieldPrefix']+_0x549290+this['_mergeFieldSuffix'];}['unwrapAffixes'](_0xda652c){return _0xda652c['slice'](this['_mergeFieldPrefix']['length'],_0xda652c['length']-this['_mergeFieldSuffix']['length']);}['_getFlattenedMergeFieldDefinitions'](){const _0x381b70=new Set(),_0x5a9016=this['editor'];return _0x5a9016['config']['get']('mergeFields.definitions')['reduce']((_0x58ae24,_0x24c392)=>{if('groupId'in _0x24c392){if(_0x381b70['has'](_0x24c392['groupId']))throw new _0x493957('merge-fields-duplicate-group-id',_0x5a9016,{'duplicateId':_0x24c392['groupId']});_0x381b70['add'](_0x24c392['groupId']);}return'groupId'in _0x24c392?function(_0x40ec78,_0x66f3b0){for(const _0x2621d0 of _0x66f3b0['definitions'])_0x40ec78=_0x40ec78['concat'](_0x2621d0);return _0x40ec78;}['bind'](_0x5a9016)(_0x58ae24,_0x24c392):_0x58ae24['concat'](_0x24c392);},new Array());}['_validateConfig'](){const _0x5e376c=/^['"`!#%:;=@{}~$()*+/?[\\\]^|]+$/;if(!_0x5e376c['test'](this['_mergeFieldPrefix'])||!_0x5e376c['test'](this['_mergeFieldSuffix']))throw new _0x493957('merge-fields-invalid-prefix-or-suffix',this,{'prefix':this['_mergeFieldPrefix'],'suffix':this['_mergeFieldSuffix']});if(this['_mergeFieldPrefix']['length']>0x8||this['_mergeFieldSuffix']['length']>0x8)throw new _0x493957('merge-fields-prefix-or-suffix-too-long',this,{'prefix':this['_mergeFieldPrefix'],'suffix':this['_mergeFieldSuffix'],'limit':0x8});const _0x584bc1=new Set();if(this['flattenedMergeFieldDefinitions']['map'](_0xc356bc=>{if(!R['test'](_0xc356bc['id']))throw new _0x493957('merge-fields-invalid-id',this,{'incorrectId':_0xc356bc['id']});if(_0x584bc1['has'](_0xc356bc['id']))throw new _0x493957('merge-fields-duplicate-merge-field-id',this,{'duplicateId':_0xc356bc['id']});_0x584bc1['add'](_0xc356bc['id']);}),this['_mergeFieldPrefix']===this['_mergeFieldSuffix'])throw new _0x493957('merge-fields-prefix-and-suffix-must-differ',this);const _0x291cfe=this['editor']['config']['get']('mergeFields.previewModes'),_0x2cc871=['$labels','$defaultValues','$dataSets'];if(!_0x291cfe['length']||!_0x291cfe['every'](_0x51f324=>_0x2cc871['includes'](_0x51f324)))throw new _0x493957('merge-fields-invalid-preview-modes-configuration',this,{'invalidConfig':_0x291cfe});const _0x441c00=new Set(),_0x41b65e=this['editor']['config']['get']('mergeFields.dataSets');for(const _0x3a8b19 of _0x41b65e){if(_0x441c00['has'](_0x3a8b19['id']))throw new _0x493957('merge-fields-duplicate-data-set-id',this,{'duplicateId':_0x3a8b19['id']});_0x441c00['add'](_0x3a8b19['id']);}}['_getAvailablePreviewModes'](){const _0x4b6f68=this['editor']['config']['get']('mergeFields.previewModes'),_0x56c398=[];if(_0x4b6f68['includes']('$labels')&&_0x56c398['push']('$labels'),_0x4b6f68['includes']('$defaultValues')&&_0x56c398['push']('$defaultValues'),_0x4b6f68['includes']('$dataSets')){const _0x17d75c=this['editor']['config']['get']('mergeFields.dataSets');_0x56c398['push'](..._0x17d75c['map'](_0x239af2=>_0x239af2['id']));}return _0x56c398;}['_defineSchema'](){const _0x3674b4=this['editor']['model']['schema'];_0x3674b4['register']('mergeField',{'inheritAllFrom':'$inlineObject','allowAttributes':['id'],'allowWhere':'$text'}),_0x3674b4['register']('mergeFieldBlock',{'inheritAllFrom':'$blockObject','allowAttributes':['id']});}['_defineConverters'](){const _0x3e48d0=this['editor']['conversion'];_0x3e48d0['for']('upcast')['add'](_0xf557ed=>{_0xf557ed['on']('text',(_0x2ec5b4,_0xbe6733,_0x135a79)=>{const {writer:_0x57e55d,safeInsert:_0x1badd7}=_0x135a79,{viewItem:_0x5105ae}=_0xbe6733,_0x1ca908=_0x5105ae['data']['split'](this['_mergeFieldRegExp'])['filter'](_0x52000f=>_0x52000f);if(0x1===_0x1ca908['length']&&!_0x1ca908[0x0]['match'](this['_mergeFieldRegExp']))return;if(!_0xbe6733['modelRange'])return;const _0x15067a=_0x57e55d['createElement']('$cursor');_0x57e55d['insert'](_0x15067a,_0xbe6733['modelCursor']);const _0x41f1a0=[];for(const _0x41df65 of _0xbe6733['modelRange']['getItems']()){if(!_0x41df65['is']('$textProxy'))continue;const _0xd3216b=_0x41df65['textNode']['data']['matchAll'](this['_mergeFieldRegExp']),_0x3c53c9=_0x41df65['parent'],_0x34b72d=_0x41df65['textNode']['startOffset'];for(const _0x47c7c2 of[..._0xd3216b]['reverse']()){const _0x55ddc0=_0x47c7c2[0x0],_0x23d0ac=_0x57e55d['createPositionAt'](_0x3c53c9,_0x47c7c2['index']+_0x34b72d),_0x1902ff=_0x23d0ac['getShiftedBy'](_0x55ddc0['length']),_0x352dc5=_0x57e55d['createRange'](_0x23d0ac,_0x1902ff),_0x2ae582=this['unwrapAffixes'](_0x55ddc0),_0x473464=this['getMergeFieldType'](_0x2ae582),_0x2d250c='block'==_0x473464?'mergeFieldBlock':'mergeField',_0x19417=_0x57e55d['createElement'](_0x2d250c,{'id':_0x2ae582});_0x57e55d['remove'](_0x352dc5),_0x57e55d['insert'](_0x19417,_0x23d0ac),'block'==_0x473464&&_0x41f1a0['push'](_0x19417);}}_0x41f1a0['reverse']();for(const _0x4f6419 of _0x41f1a0){const _0x31d4a9=_0x57e55d['createPositionBefore'](_0x4f6419),_0x87c43d=_0x4f6419['nextSibling']==_0x15067a;_0x57e55d['remove'](_0x4f6419),_0x1badd7(_0x4f6419,_0x31d4a9)&&_0x87c43d&&_0x57e55d['move'](_0x57e55d['createRangeOn'](_0x15067a),_0x57e55d['createPositionAfter'](_0x4f6419));}_0xbe6733['modelCursor']=_0x57e55d['createPositionBefore'](_0x15067a),_0xbe6733['modelRange']=_0x57e55d['createRange'](_0xbe6733['modelRange']['start'],_0xbe6733['modelCursor']),_0x57e55d['remove'](_0x15067a);},{'priority':_0x6cfb2a['get']('lowest')-0x1});}),_0x3e48d0['for']('upcast')['elementToElement']({'view':{'name':'span','attributes':'data-ck-merge-field'},'model':(_0x50b244,{writer:_0x389245})=>_0x389245['createElement']('mergeField',{'id':_0x50b244['getAttribute']('data-ck-merge-field')})}),_0x3e48d0['for']('upcast')['elementToElement']({'view':{'name':'div','attributes':'data-ck-merge-field'},'model':(_0x529365,{writer:_0x3c053b})=>_0x3c053b['createElement']('mergeFieldBlock',{'id':_0x529365['getAttribute']('data-ck-merge-field')})}),_0x3e48d0['for']('upcast')['add'](this['_upcastSrcAttributeFromClipboard']()),_0x3e48d0['for']('editingDowncast')['elementToElement']({'model':'mergeField','view':(_0xcf44fb,{writer:_0x29e7c9})=>this['_createMergeFieldWidget'](_0xcf44fb,_0x29e7c9,'text')}),_0x3e48d0['for']('dataDowncast')['elementToElement']({'model':'mergeField','view':(_0x4c36da,{writer:_0xe40438,options:_0x1f8a16})=>this['_createTextualMergeField'](_0x4c36da,_0xe40438,_0x1f8a16)}),_0x3e48d0['for']('editingDowncast')['elementToElement']({'model':'mergeFieldBlock','view':(_0x5913eb,{writer:_0xddeb5b})=>this['_createMergeFieldWidget'](_0x5913eb,_0xddeb5b,'block')}),_0x3e48d0['for']('dataDowncast')['elementToElement']({'model':'mergeFieldBlock','view':(_0x518457,{writer:_0x56dd3d,options:_0x2f3b47})=>this['_createTextualMergeField'](_0x518457,_0x56dd3d,_0x2f3b47)}),_0x3e48d0['for']('editingDowncast')['add'](this['_downcastSrcAttributeToEditing']('imageBlock'))['add'](this['_downcastSrcAttributeToEditing']('imageInline')),_0x3e48d0['for']('dataDowncast')['add'](this['_downcastSrcAttributeToData']('imageBlock'))['add'](this['_downcastSrcAttributeToData']('imageInline'));}['_upcastSrcAttributeFromClipboard'](){return _0x28736e=>{_0x28736e['on']('element:img',(_0x4f8048,_0x2b75ab,_0x257d44)=>{_0x257d44['consumable']['test'](_0x2b75ab['viewItem'],{'attributes':'data-ck-merge-field'})&&(_0x257d44['writer']['setAttribute']('src',this['wrapInAffixes'](_0x2b75ab['viewItem']['getAttribute']('data-ck-merge-field')),_0x2b75ab['modelCursor']['nodeBefore']),_0x257d44['consumable']['consume'](_0x2b75ab['viewItem'],{'attributes':'data-ck-merge-field'}));},{'priority':'low'});};}['_downcastSrcAttributeToData'](_0xb5f9f5){const _0x454d96=this['editor']['plugins']['get']('ImageUtils'),_0x2fdaa1=(_0x2e2abc,_0x466873,_0x40cdd0)=>{if(!0x1!==_0x40cdd0['consumable']['test'](_0x466873['item'],_0x2e2abc['name']))return;if(!String(_0x466873['attributeNewValue'])['match'](this['_mergeFieldRegExp']))return;const _0x148dce=_0x40cdd0['writer'],_0x4924c0=_0x40cdd0['mapper']['toViewElement'](_0x466873['item']),_0x1bfd05=_0x454d96['findViewImgElement'](_0x4924c0),_0x3077cf=String(_0x466873['attributeNewValue']),_0x5cfe25=this['unwrapAffixes'](_0x3077cf),_0x2aa5df=_0x40cdd0['options']['mergeFieldsData'];if(_0x40cdd0['options']['isClipboardPipeline']&&'$labels'!==this['previewMode']){let _0x45f7ea;return _0x45f7ea='$defaultValues'===this['previewMode']?this['getMergeFieldDefaultValue'](_0x5cfe25)||this['getLabel'](_0x5cfe25)||this['wrapInAffixes'](_0x5cfe25):this['getMergeFieldValue'](_0x5cfe25,this['previewMode'])||this['getMergeFieldDefaultValue'](_0x5cfe25)||this['getLabel'](_0x5cfe25)||this['wrapInAffixes'](_0x5cfe25),_0x148dce['setAttribute']('data-ck-merge-field',_0x5cfe25,_0x1bfd05),void _0x148dce['setAttribute'](_0x466873['attributeKey'],_0x45f7ea,_0x1bfd05);}const _0x158c21=_0x2aa5df&&_0x2aa5df[_0x5cfe25]?_0x2aa5df[_0x5cfe25]:_0x3077cf;_0x148dce['setAttribute'](_0x466873['attributeKey'],_0x158c21,_0x1bfd05);};return _0x4c9802=>{_0x4c9802['on']('attribute:src:'+_0xb5f9f5,_0x2fdaa1,{'priority':'low'});};}['_downcastSrcAttributeToEditing'](_0x32badc){const _0x4d50e4=this['editor']['plugins']['get']('ImageUtils'),_0x3d5b8a=(_0x26f46c,_0x314cc6,_0x255d86)=>{if(!0x1!==_0x255d86['consumable']['test'](_0x314cc6['item'],_0x26f46c['name']))return;if(!String(_0x314cc6['attributeNewValue'])['match'](this['_mergeFieldRegExp']))return;const _0x5b67b9=_0x255d86['writer'],_0x186a64=_0x255d86['mapper']['toViewElement'](_0x314cc6['item']),_0x53009c=_0x4d50e4['findViewImgElement'](_0x186a64),_0x40c7d0=String(_0x314cc6['attributeNewValue']),_0x1ec5b9=this['unwrapAffixes'](_0x40c7d0),_0x2b5fd0=this['getMergeFieldDefaultValue'](_0x1ec5b9),_0x3b5a53='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAAtJREFUGFdjYAACAAAFAAGq1chRAAAAAElFTkSuQmCC';let _0x304659,_0x31a96e='',_0x25ecce='';if('$labels'===this['previewMode'])_0x304659=_0x3b5a53;else{if('$defaultValues'===this['previewMode'])_0x2b5fd0?(_0x304659=_0x2b5fd0,_0x25ecce='\x20ck-merge-field-image_with-value'):(_0x304659=_0x3b5a53,_0x31a96e='WARNING_MISSING_DEFAULT_VALUE',_0x25ecce='\x20ck-merge-field-image_with-warning\x20ck-merge-field-image_with-warning_no-default');else{const _0x3c007c=this['getMergeFieldValue'](_0x1ec5b9,this['previewMode']);_0x3c007c?(_0x304659=_0x3c007c,_0x25ecce='\x20ck-merge-field-image_with-value'):_0x2b5fd0?(_0x304659=_0x2b5fd0,_0x25ecce='\x20ck-merge-field-image_with-warning\x20ck-merge-field-image_with-warning_default-value-used',_0x31a96e='WARNING_MISSING_DATA_USED_DEFAULT_VALUE'):(_0x304659=_0x3b5a53,_0x25ecce='\x20ck-merge-field-image_with-warning\x20ck-merge-field-image_with-warning_missing-data',_0x31a96e='WARNING_MISSING_DATA');}}if(_0x5b67b9['addClass']('ck-merge-field-image'+_0x25ecce,_0x186a64),_0x5b67b9['setAttribute'](_0x314cc6['attributeKey'],_0x304659,_0x53009c),'$labels'===this['previewMode']){const _0x226314='imageInline'===_0x32badc?'span':'div',_0x3165a6=this['_mergeFieldPrefix'],_0x399b36=this['_mergeFieldSuffix'],_0x3a8d9e=_0x5b67b9['createContainerElement'](_0x226314,{'class':'ck-merge-field','data-cke-tooltip-instant':'true'},[_0x5b67b9['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0xc1fe92){const _0x446d77=this['toDomElement'](_0xc1fe92);return _0x446d77['innerHTML']=_0x3165a6,_0x446d77;}),_0x5b67b9['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x5b67b9['createText'](this['getLabel'](_0x1ec5b9)||_0x1ec5b9)),_0x5b67b9['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x313b0c){const _0x1c2173=this['toDomElement'](_0x313b0c);return _0x1c2173['innerHTML']=_0x399b36,_0x1c2173;})]);_0x5b67b9['insert'](_0x5b67b9['createPositionAt'](_0x186a64,'end'),_0x3a8d9e),_0x5b67b9['setAttribute']('data-cke-tooltip-text',this['getLabel'](_0x1ec5b9)||_0x1ec5b9,_0x3a8d9e);}else{if(_0x31a96e&&['WARNING_MISSING_DEFAULT_VALUE','WARNING_MISSING_DATA']['includes'](_0x31a96e)){const _0x539919='imageInline'===_0x32badc?'span':'div',_0x56490e=_0x25ecce['replace'](/ck-merge-field-image/g,'ck-merge-field'),_0x1be9bf=_0x5b67b9['createContainerElement'](_0x539919,{'class':'ck-merge-field'+_0x56490e,'data-cke-tooltip-instant':'true'},[_0x5b67b9['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x5b67b9['createText'](this['getLabel'](_0x1ec5b9)||_0x1ec5b9))]),_0x56bb69=_0x5b67b9['createUIElement']('span',{'class':'ck-merge-field__icon'},function(_0x274b57){const _0x5473bf=this['toDomElement'](_0x274b57),_0x3c0c37=new _0x1b07f2();return _0x3c0c37['set']({'content':_0x14100a}),_0x3c0c37['render'](),_0x5473bf['appendChild'](_0x3c0c37['element']),_0x5473bf;});_0x5b67b9['insert'](_0x5b67b9['createPositionAt'](_0x1be9bf,'end'),_0x56bb69),_0x5b67b9['insert'](_0x5b67b9['createPositionAt'](_0x186a64,'end'),_0x1be9bf),_0x5b67b9['setCustomProperty']('mergeFieldStatus',_0x31a96e,_0x1be9bf),_0x5b67b9['setAttribute']('data-cke-tooltip-text',this['getLabel'](_0x1ec5b9)||_0x1ec5b9,_0x1be9bf);}}_0x5b67b9['setAttribute']('data-merge-field-name',_0x1ec5b9,_0x186a64),_0x31a96e&&_0x5b67b9['setCustomProperty']('mergeFieldStatus',_0x31a96e,_0x186a64);};return _0x44ff4b=>{_0x44ff4b['on']('attribute:src:'+_0x32badc,_0x3d5b8a,{'priority':'low'});};}['_setupTooltipsTogglingForImageMergeField'](_0x542d7c,_0x267af3){if(!_0x267af3['target'])return null;const _0x458bd9=_0x267af3['target']['parentElement'];return _0x458bd9&&_0x458bd9['classList']['contains']('ck-merge-field-image')?new _0x5db8d7(_0x458bd9,_0x3e5391=>{const _0x3787d6=_0x3e5391['target'],_0x1fe150=_0x3787d6['querySelector']('.ck-merge-field'),_0x44a3c7=_0x3787d6['querySelector']('.ck-merge-field__content');_0x1fe150&&_0x44a3c7&&(_0x44a3c7['scrollWidth']>_0x44a3c7['getBoundingClientRect']()['width']?_0x1fe150['removeAttribute']('data-cke-tooltip-disabled'):_0x1fe150['setAttribute']('data-cke-tooltip-disabled','true'));}):null;}['_createMergeFieldWidget'](_0x27f1b1,_0x50a229,_0x3a5a7d){const {label:_0x4e1482,classes:_0x493329,status:_0x5a6ea4,height:_0x8371bc}=this['_prepareViewElementData'](_0x27f1b1),_0x1152c2=this['_mergeFieldPrefix'],_0x18788c=this['_mergeFieldSuffix'],_0x1c611c=this['editor']['config']['get']('mergeFields.sanitizeHtml'),_0x1625cd='text'===_0x3a5a7d?'span':'div';let _0x392724;if('$labels'===this['previewMode'])_0x392724=_0x50a229['createContainerElement'](_0x1625cd,{'class':_0x493329},[_0x50a229['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x16a400){const _0x5584d4=this['toDomElement'](_0x16a400);return _0x5584d4['innerHTML']=_0x1152c2,_0x5584d4;}),_0x50a229['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x50a229['createText'](String(_0x4e1482))),_0x50a229['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x6580ab){const _0x46ab43=this['toDomElement'](_0x6580ab);return _0x46ab43['innerHTML']=_0x18788c,_0x46ab43;})]);else{if(_0x5a6ea4){const _0x5aba93=this['_shouldPreviewHtmlValues']?_0x50a229['createRawElement']('span',{'class':'ck-merge-field__content'},function(_0xccfd05,_0x49ec32){_0x49ec32['setContentOf'](_0xccfd05,_0x1c611c(_0x4e1482)['html']);}):_0x50a229['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x50a229['createText'](_0x4e1482));if(_0x392724=_0x50a229['createContainerElement'](_0x1625cd,{'class':_0x493329},[_0x5aba93]),'text'===_0x3a5a7d||['WARNING_MISSING_DEFAULT_VALUE','WARNING_MISSING_DATA']['includes'](_0x5a6ea4)){const _0x26ad06=_0x50a229['createUIElement']('span',{'class':'ck-merge-field__icon'},function(_0x9bb097){const _0x5c525a=this['toDomElement'](_0x9bb097),_0x1b9c0e=new _0x1b07f2();return _0x1b9c0e['set']({'content':_0x14100a}),_0x1b9c0e['render'](),_0x5c525a['appendChild'](_0x1b9c0e['element']),_0x5c525a;});_0x50a229['insert'](_0x50a229['createPositionAt'](_0x392724,'end'),_0x26ad06);}_0x50a229['setCustomProperty']('mergeFieldStatus',_0x5a6ea4,_0x392724);}else{const _0x108a6f=this['_shouldPreviewHtmlValues']?_0x50a229['createRawElement'](_0x1625cd,{},function(_0x5f0802,_0x3f5c6a){_0x3f5c6a['setContentOf'](_0x5f0802,_0x1c611c(_0x4e1482)['html']);}):_0x50a229['createText'](_0x4e1482);_0x392724=_0x50a229['createContainerElement'](_0x1625cd,{'class':_0x493329},_0x108a6f);}}if('block'===_0x3a5a7d){const _0x541f2f=_0x50a229['createContainerElement']('div',{'class':'ck-merge-field-block'},[_0x392724]);if(('$labels'===this['previewMode']||_0x5a6ea4&&['WARNING_MISSING_DEFAULT_VALUE','WARNING_MISSING_DATA']['includes'](_0x5a6ea4))&&_0x50a229['setAttribute']('style','height:\x20'+_0x8371bc+'px',_0x541f2f),_0x392724['hasClass']('ck-merge-field_with-value'))_0x50a229['addClass']('ck-merge-field-block_with-value',_0x541f2f);else{if(_0x392724['hasClass']('ck-merge-field_with-warning')){for(const _0x34ad66 of _0x392724['getClassNames']())if('ck-merge-field'!==_0x34ad66){const _0x25993a=_0x34ad66['replace']('ck-merge-field','ck-merge-field-block');_0x50a229['addClass'](_0x25993a,_0x541f2f);}_0x50a229['setCustomProperty']('mergeFieldStatus',_0x5a6ea4,_0x541f2f);}}return _0x50a229['setCustomProperty']('mergeFieldBlock',!0x0,_0x541f2f),_0x50a229['setAttribute']('data-merge-field-name',_0x27f1b1['getAttribute']('id'),_0x541f2f),_0x1aa71a(_0x541f2f,_0x50a229,{'hasSelectionHandle':!0x0});}return _0x50a229['setCustomProperty']('mergeField',!0x0,_0x392724),_0x50a229['setAttribute']('data-merge-field-name',_0x27f1b1['getAttribute']('id'),_0x392724),_0x1aa71a(_0x392724,_0x50a229);}['_prepareViewElementData'](_0x22de1b){const _0x2b4fa5=_0x22de1b['getAttribute']('id'),_0x569af2=this['getDefinition'](_0x2b4fa5);if(!_0x569af2)return'$labels'===this['previewMode']?{'label':_0x2b4fa5,'classes':'ck-merge-field'}:{'label':_0x2b4fa5,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-definition','status':'WARNING_MISSING_DATA'};const _0x513507=this['getLabel'](_0x2b4fa5)||_0x2b4fa5,_0x420687=this['getMergeFieldDefaultValue'](_0x2b4fa5),_0x38eb1d=this['getMergeFieldHeight'](_0x2b4fa5);if('$labels'===this['previewMode'])return{'label':_0x513507,'height':_0x38eb1d,'classes':'ck-merge-field'};if('$defaultValues'===this['previewMode'])return _0x420687?{'label':_0x420687,'height':_0x38eb1d,'classes':'ck-merge-field\x20ck-merge-field_with-value'}:{'label':_0x513507,'height':_0x38eb1d,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_no-default','status':'WARNING_MISSING_DEFAULT_VALUE'};const _0x36a4a5=this['getMergeFieldValue'](_0x569af2['id'],this['previewMode']);return _0x36a4a5?{'label':_0x36a4a5,'height':_0x38eb1d,'classes':'ck-merge-field\x20ck-merge-field_with-value'}:_0x420687?{'label':_0x420687,'height':_0x38eb1d,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_default-value-used','status':'WARNING_MISSING_DATA_USED_DEFAULT_VALUE'}:{'label':_0x513507,'height':_0x38eb1d,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-data','status':'WARNING_MISSING_DATA'};}['_createTextualMergeField'](_0x40ec12,_0x273601,_0x17d8d6){const _0x23b14b=_0x40ec12['getAttribute']('id');let _0x30f38a;if(_0x17d8d6['isClipboardPipeline']&&'$labels'!==this['previewMode'])return this['_downcastForClipboard'](_0x23b14b,_0x273601);const _0x103528=_0x17d8d6['mergeFieldsData'],_0x39278f=_0x103528&&_0x103528[_0x23b14b]?_0x103528[_0x23b14b]:this['wrapInAffixes'](_0x23b14b);if(_0x103528)_0x30f38a=_0x273601['createRawElement']('span',{},function(_0x27a5ee,_0x20b8cc){_0x20b8cc['setContentOf'](_0x27a5ee,String(_0x39278f));});else{_0x30f38a=_0x273601['createContainerElement']('span');const _0x1ffaa5=_0x273601['createText'](_0x39278f);_0x273601['insert'](_0x273601['createPositionAt'](_0x30f38a,'end'),_0x1ffaa5);}return _0x273601['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x30f38a),_0x30f38a;}['_downcastForClipboard'](_0x50683a,_0x1392b9){const _0x46455f='block'===this['getMergeFieldType'](_0x50683a)?'div':'span';let _0x50c5e3,_0x1ae63e;_0x50c5e3='$defaultValues'===this['previewMode']?this['getMergeFieldDefaultValue'](_0x50683a)||this['getLabel'](_0x50683a)||this['wrapInAffixes'](_0x50683a):this['getMergeFieldValue'](_0x50683a,this['previewMode'])||this['getMergeFieldDefaultValue'](_0x50683a)||this['getLabel'](_0x50683a)||this['wrapInAffixes'](_0x50683a);const _0x4ad88a=this['editor']['config']['get']('mergeFields.sanitizeHtml');return _0x1ae63e=this['_shouldPreviewHtmlValues']?_0x1392b9['createRawElement'](_0x46455f,{'data-ck-merge-field':_0x50683a},function(_0x5c0258,_0x5a5adb){_0x5a5adb['setContentOf'](_0x5c0258,_0x4ad88a(_0x50c5e3)['html']);}):_0x1392b9['createContainerElement'](_0x46455f,{'data-ck-merge-field':_0x50683a},_0x1392b9['createText'](_0x50c5e3)),_0x1ae63e;}['_validatePreviewMode'](_0x1c1765){if(!this['availablePreviewModes']['includes'](_0x1c1765))throw new _0x493957('merge-fields-invalid-preview-mode-set',this,{'availablePreviewModes':this['availablePreviewModes'],'previewMode':_0x1c1765});}['_trackAddedMergeFields'](){for(const _0x4f2202 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x4f2202['type']||'$text'===_0x4f2202['name'])continue;if('mergeField'===_0x4f2202['name']||'mergeFieldBlock'===_0x4f2202['name']){this['_mergeFieldElements']['add'](_0x4f2202['position']['nodeAfter']);continue;}if('imageInline'===_0x4f2202['name']||'imageBlock'===_0x4f2202['name']&&_0x4f2202['attributes']['get']('src')&&String(_0x4f2202['attributes']['get']('src'))['match'](this['_mergeFieldRegExp'])){this['_mergeFieldElements']['add'](_0x4f2202['position']['nodeAfter']);continue;}const _0x123f30=this['editor']['model']['createRangeIn'](_0x4f2202['position']['nodeAfter']);for(const _0x378aea of _0x123f30['getItems']())_0x378aea['is']('element')&&this['isMergeField'](_0x378aea)&&this['_mergeFieldElements']['add'](_0x378aea);}}['_registerConversionPostFixer'](){const _0x59d004=this['editor'];_0x59d004['model']['document']['registerPostFixer'](_0x11fe9a=>{if(!_0x11fe9a['batch']['isLocal'])return!0x1;const _0x199dbc=[],_0x163d87=new Set(),_0x1158a2=this['_mergeFieldRegExp'];let _0x4e6038=!0x1;for(const _0x53277d of _0x59d004['model']['document']['differ']['getChanges']())if('insert'===_0x53277d['type']||'remove'===_0x53277d['type']){let _0xac4209='$text'==_0x53277d['name']?_0x53277d['position']['parent']:_0x53277d['position']['nodeAfter'];if(!_0xac4209)continue;_0xac4209['is']('$text')&&(_0xac4209=_0xac4209['parent']),_0x1f5bb9(_0xac4209);}for(const _0xc00624 of _0x199dbc['reverse']()){const {match:_0x37c6a6,item:_0x1c4ace}=_0xc00624,_0x25a4f5=_0x11fe9a['createPositionAt'](_0x1c4ace,_0x37c6a6['index']),_0x2fc649=_0x25a4f5['getShiftedBy'](_0x37c6a6[0x0]['length']),_0x23b95b=_0x11fe9a['createRange'](_0x25a4f5,_0x2fc649),_0xf47a79=_0x37c6a6[0x0],_0x1237ab=this['unwrapAffixes'](_0xf47a79),_0x5da90c=_0x5f440c(_0x23b95b),_0x20510f=this['getMergeFieldType'](_0x1237ab);if(R['test'](_0x1237ab)){if(_0x5da90c['set']('id',_0x1237ab),'block'===_0x20510f){const _0x1aef50=_0x11fe9a['createElement']('mergeFieldBlock',{'id':_0x1237ab});_0x11fe9a['remove'](_0x23b95b),_0x59d004['model']['insertObject'](_0x1aef50,null,null,{'setSelection':'on','findOptimalPosition':void 0x0});}else{if('image'===_0x20510f){const _0x449c81=_0x11fe9a['createElement']('imageBlock',{'src':this['wrapInAffixes'](_0x1237ab)});_0x11fe9a['remove'](_0x23b95b),_0x59d004['model']['insertObject'](_0x449c81,null,null,{'setSelection':'on','findOptimalPosition':void 0x0});}else{const _0x26e6d2=_0x11fe9a['createElement']('mergeField',_0x5da90c);_0x59d004['model']['schema']['checkChild'](_0x23b95b['start'],'mergeField')?_0x59d004['model']['insertObject'](_0x26e6d2,_0x23b95b):_0x11fe9a['remove'](_0x23b95b);}}_0x4e6038=!0x0;}}return _0x4e6038;function _0x1f5bb9(_0x1545d4){let _0x455ef7='',_0x4da083=0x0;if(!_0x163d87['has'](_0x1545d4))for(const _0x1c0331 of _0x1545d4['getChildren']()){const _0x57722a=_0x1c0331['nextSibling'];if(_0x1c0331['is']('$text')&&(''===_0x455ef7&&_0x1c0331['startOffset']&&(_0x4da083=_0x1c0331['startOffset']),_0x455ef7+=_0x1c0331['data']),!_0x57722a||_0x57722a['is']('element')){for(const _0x59c175 of _0x455ef7['matchAll'](_0x1158a2))_0x59c175['index']=_0x59c175['index']+_0x4da083,_0x199dbc['push']({'match':_0x59c175,'item':_0x1545d4});_0x163d87['add'](_0x1545d4),_0x455ef7='';}_0x1c0331['is']('element')&&_0x1f5bb9(_0x1c0331);}}function _0x5f440c(_0x89c6c){const _0x6dcf8d=_0x89c6c['getItems'](),_0x3c56c7=_0x6dcf8d['next']()['value'],_0x280807=new Map(_0x3c56c7['getAttributes']());for(const _0x3caebe of _0x6dcf8d)for(const [_0x3ee7b2,_0x1efa95]of _0x280807)_0x3caebe['getAttribute'](_0x3ee7b2)!==_0x1efa95&&_0x280807['delete'](_0x3ee7b2);return _0x280807;}});}['_disableCommandOnMergeFields'](_0x1ef4ee){const _0x15465d=this['editor'],_0xbd5eb1=_0x15465d['commands']['get'](_0x1ef4ee);_0xbd5eb1&&_0xbd5eb1['on']('set:isEnabled',(_0x46bb51,_0x21f49f,_0xae2816)=>{if(0x1==_0xae2816){const _0x38de16=_0x15465d['model']['document']['selection']['getSelectedElement']();_0x38de16&&this['isMergeField'](_0x38de16)&&(_0x46bb51['return']=!0x1,_0x46bb51['stop']());}});}}class O extends _0x1423cb{['filter'](_0x2d00f8){return _0x4ade05(_0x2d00f8,this['items']);}}class W extends _0x4d2709{constructor(_0x4bffc9){super(_0x4bffc9),this['set']('text','');const _0x14de73=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-merge-fields-form']},'children':[{'tag':'div','attributes':{'class':['ck','ck-merge-fields-form__status']},'children':[{'text':_0x14de73['to']('text')}]}]});}}function K(_0x43ec83,_0x5d5c56){const t=_0x43ec83['t'];switch(_0x5d5c56){case'Search\x20merge\x20field':return t('Search\x20merge\x20field');case'No\x20merge\x20fields\x20found':return t('No\x20merge\x20fields\x20found');case'No\x20merge\x20fields\x20available':return t('No\x20merge\x20fields\x20available');case'Insert\x20merge\x20field':return t('Insert\x20merge\x20field');case'Merge\x20field':return t('Merge\x20field');case'Merge\x20fields\x20preview':return t('Merge\x20fields\x20preview');case'Labels':return t('Labels');case'Default\x20values':return t('Default\x20values');case'WARNING_MISSING_DATA_USED_DEFAULT_VALUE':return t({'string':'Default\x20value\x20is\x20used.','id':'WARNING_MISSING_DATA_USED_DEFAULT_VALUE'});case'WARNING_MISSING_DEFAULT_VALUE':return t({'string':'Default\x20value\x20not\x20available.','id':'WARNING_MISSING_DEFAULT_VALUE'});case'WARNING_MISSING_DATA':return t({'string':'Value\x20not\x20available.','id':'WARNING_MISSING_DATA'});default:return _0x5d5c56;}}class C extends _0x3105b4{['licenseKey'];['_licenseKeyCheckInterval'];['_balloon'];['_balloonPanelView']=null;static get['requires'](){return['Mention',P,_0x7016be,_0x47ed06];}static get['pluginName'](){return'MergeFieldsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x34d7ce){super(_0x34d7ce),this['_removeDefaultValuesPreviewIfUnnecessary'](),this['_removeMenuBarButtonIfUnnecessary'](),this['_setupMentionConfiguration']();}['init'](){const _0x5187d4=this['editor'];_0x5187d4['ui']['componentFactory']['add']('insertMergeField',_0x5eca45=>{const _0x3da484=function(_0x18a816){const _0x5b5ba8=_0x53b0d1(_0x18a816);return _0x5b5ba8['set']({'class':'ck-insert-merge-field-dropdown','isEnabled':!0x0}),_0x5b5ba8['buttonView']['set']({'label':K(_0x18a816,'Insert\x20merge\x20field'),'icon':_0xb7682b,'tooltip':!0x0}),_0x5b5ba8;}(_0x5eca45);return _0x3da484['bind']('isEnabled')['toMany']([_0x5187d4['commands']['get']('insertMergeField'),_0x5187d4['commands']['get']('insertMergeFieldBlock'),_0x5187d4['commands']['get']('insertMergeFieldImage')],'isEnabled',(..._0xc329e7)=>_0xc329e7['some'](_0xae133f=>_0xae133f)),_0x3da484['once']('change:isOpen',()=>{const _0x5a9a01={'insertInline':_0x5187d4['commands']['get']('insertMergeField'),'insertBlock':_0x5187d4['commands']['get']('insertMergeFieldBlock'),'insertImage':_0x5187d4['commands']['get']('insertMergeFieldImage')},_0x2cd9bd=function(_0x2adfd1,_0x5e5bdd,_0x3f2332){const _0x1b367b=new O(_0x2adfd1),_0x5c4ff2=[],_0x19e403=[];for(const _0x1c79bc of _0x5e5bdd)if('groupId'in _0x1c79bc){const _0x1c649f=j(_0x2adfd1,_0x1c79bc['groupLabel']||_0x1c79bc['groupId'],_0x1c79bc['definitions'],_0x3f2332);_0x1c649f['delegate']('execute')['to'](_0x1b367b),_0x19e403['push'](_0x1c649f);}else _0x5c4ff2['push'](_0x1c79bc);if(_0x5c4ff2['length']){const _0x58500f=j(_0x2adfd1,'Other',_0x5c4ff2,_0x3f2332);_0x58500f['delegate']('execute')['to'](_0x1b367b),_0x19e403['push'](_0x58500f);}return _0x1b367b['items']['addMany'](_0x19e403),_0x1b367b;}(_0x5eca45,_0x5187d4['config']['get']('mergeFields.definitions'),_0x5a9a01);_0x2cd9bd['delegate']('execute')['to'](_0x3da484),_0x3da484['on']('execute',(_0x968ecd,_0x142d99)=>{const _0x38ea08=_0x5187d4['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x142d99);'image'===_0x38ea08?_0x5187d4['execute']('insertMergeFieldImage',_0x142d99):'block'===_0x38ea08?_0x5187d4['execute']('insertMergeFieldBlock',_0x142d99):_0x5187d4['execute']('insertMergeField',_0x142d99),_0x5187d4['editing']['view']['focus']();});const _0x143ebc=function(_0x156c93,_0x5af950){return new _0x1503f8(_0x156c93,{'filteredView':_0x5af950,'queryView':{'label':K(_0x156c93,'Search\x20merge\x20field')},'class':'ck-merge-fields-search','infoView':{'text':{'notFound':{'primary':K(_0x156c93,'No\x20merge\x20fields\x20found')},'noSearchableItems':{'primary':K(_0x156c93,'No\x20merge\x20fields\x20available')}}}});}(_0x5eca45,_0x2cd9bd);_0x3da484['panelView']['children']['add'](_0x143ebc),_0x3da484['on']('change:isOpen',(_0x309686,_0x265610,_0x37af9e)=>{_0x37af9e&&_0x143ebc['reset']();});}),_0x3da484;}),_0x5187d4['ui']['componentFactory']['add']('menuBar:insertMergeField',_0x1b4d92=>{const _0x5c38a3=new _0x5e2616(_0x1b4d92),_0x4cecbe={'insertInline':_0x5187d4['commands']['get']('insertMergeField'),'insertBlock':_0x5187d4['commands']['get']('insertMergeFieldBlock'),'insertImage':_0x5187d4['commands']['get']('insertMergeFieldImage')};_0x5c38a3['buttonView']['set']({'label':K(_0x1b4d92,'Merge\x20field'),'icon':_0xb7682b}),_0x5c38a3['bind']('isEnabled')['toMany']([...Object['values'](_0x4cecbe)],'isEnabled',(..._0x4204c7)=>_0x4204c7['some'](_0x4bd388=>_0x4bd388));const _0xee484a=[],_0x29520e=new _0x242292(_0x1b4d92);for(const _0x358cab of _0x5187d4['config']['get']('mergeFields.definitions'))if('groupId'in _0x358cab){const _0x2341ee=new _0x19e242(_0x1b4d92,_0x5c38a3),_0xbeec11=q(_0x1b4d92,_0x358cab,_0x4cecbe);_0x2341ee['children']['add'](_0xbeec11),_0xbeec11['delegate']('execute')['to'](_0x5c38a3),_0x29520e['items']['add'](_0x2341ee);}else _0xee484a['push'](_0x358cab);if(_0xee484a['length']){if(0x0===_0x29520e['items']['length'])for(const _0x46aba2 of _0xee484a){let _0x5d1d7b;_0x5d1d7b='block'===_0x46aba2['type']?_0x4cecbe['insertBlock']:'image'===_0x46aba2['type']?_0x4cecbe['insertImage']:_0x4cecbe['insertInline'];const _0x57b124=z(_0x1b4d92,_0x46aba2,_0x5c38a3,_0x5d1d7b);_0x29520e['items']['add'](_0x57b124);}else{const _0x1f73a2=new _0x19e242(_0x1b4d92,_0x5c38a3),_0x3ea7bd=q(_0x1b4d92,{'groupId':'Other','definitions':_0xee484a},_0x4cecbe);_0x1f73a2['children']['add'](_0x3ea7bd),_0x3ea7bd['delegate']('execute')['to'](_0x5c38a3),_0x29520e['items']['add'](_0x1f73a2);}}return _0x5c38a3['panelView']['children']['add'](_0x29520e),_0x5c38a3['on']('execute',(_0x208a6b,_0x1e38f0)=>{const _0xa67e4a=_0x5187d4['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x1e38f0);'image'===_0xa67e4a?_0x5187d4['execute']('insertMergeFieldImage',_0x1e38f0):'block'===_0xa67e4a?_0x5187d4['execute']('insertMergeFieldBlock',_0x1e38f0):_0x5187d4['execute']('insertMergeField',_0x1e38f0),_0x5187d4['editing']['view']['focus']();}),_0x5c38a3;});const _0x4dfcaa=_0x5187d4['config']['get']('mergeFields.previewModes'),_0x14a6ec=[];if(_0x4dfcaa['includes']('$labels')&&_0x14a6ec['push']({'type':'button','model':new _0x2f54c2({'withText':!0x0,'isToggleable':!0x0,'label':K(this['editor']['locale'],'Labels'),'commandValue':'$labels'})}),_0x4dfcaa['includes']('$defaultValues')&&_0x14a6ec['push']({'type':'button','model':new _0x2f54c2({'withText':!0x0,'isToggleable':!0x0,'label':K(this['editor']['locale'],'Default\x20values'),'commandValue':'$defaultValues'})}),_0x4dfcaa['includes']('$dataSets')){const _0x117f54=_0x5187d4['config']['get']('mergeFields.dataSets');if(_0x117f54['length']){for(const _0x1964ad of _0x117f54)_0x14a6ec['push']({'type':'button','model':new _0x2f54c2({'withText':!0x0,'isToggleable':!0x0,'label':_0x1964ad['label']||_0x1964ad['id'],'commandValue':_0x1964ad['id']})});}}_0x5187d4['ui']['componentFactory']['add']('previewMergeFields',_0x1fd21b=>{const _0x59a842=_0x5187d4['commands']['get']('previewMergeFields'),_0x51e7ef=new _0x378c87();for(const _0x2a01fb of _0x3bbce9(_0x14a6ec))_0x2a01fb['model']['bind']('isOn')['to'](_0x59a842,'value',_0x565431=>_0x565431===_0x2a01fb['model']['commandValue']),_0x51e7ef['add'](_0x2a01fb);const _0x30d356=_0x53b0d1(_0x1fd21b),_0x3db400=K(_0x1fd21b,'Merge\x20fields\x20preview');return _0x30d356['bind']('isEnabled')['to'](_0x59a842),_0x5cef11(_0x30d356,_0x51e7ef,{'ariaLabel':_0x3db400,'role':'menu'}),_0x30d356['set']({'class':'ck-merge-fields-preview-dropdown'}),_0x30d356['buttonView']['set']({'label':_0x3db400,'ariaLabel':_0x3db400,'ariaLabelledBy':void 0x0,'isOn':!0x1,'icon':_0x3df206,'tooltip':!0x0}),this['listenTo'](_0x30d356,'execute',_0x24a4ab=>{const {commandValue:_0x3d4560}=_0x24a4ab['source'];_0x5187d4['execute']('previewMergeFields',_0x3d4560),_0x5187d4['editing']['view']['focus']();}),_0x30d356;}),_0x5187d4['ui']['componentFactory']['add']('menuBar:previewMergeFields',_0x348161=>{const _0x2e29de=new _0x5e2616(_0x348161),_0x1f52b5=_0x5187d4['commands']['get']('previewMergeFields');_0x2e29de['buttonView']['set']({'label':K(_0x348161,'Merge\x20fields\x20preview'),'icon':_0x3df206}),_0x2e29de['bind']('isEnabled')['to'](_0x1f52b5);const _0x81520d=new _0x242292(_0x348161);_0x81520d['set']({'ariaLabel':K(_0x348161,'Merge\x20fields\x20preview')});for(const _0x24f006 of _0x3bbce9(_0x14a6ec)){const _0x10f2ff=new _0x19e242(_0x348161,_0x2e29de),_0x4832db=new _0x2356b3(_0x348161);_0x24f006['model']['bind']('isOn')['to'](_0x1f52b5,'value',_0x335eb4=>_0x335eb4===_0x24f006['model']['commandValue']),_0x4832db['isToggleable']=!0x0,_0x4832db['bind'](...Object['keys'](_0x24f006['model']))['to'](_0x24f006['model']),_0x4832db['delegate']('execute')['to'](_0x2e29de),_0x4832db['on']('execute',_0x5462d7=>{const {commandValue:_0x386e99}=_0x5462d7['source'];_0x5187d4['execute']('previewMergeFields',_0x386e99),_0x5187d4['editing']['view']['focus']();}),_0x10f2ff['children']['add'](_0x4832db),_0x81520d['items']['add'](_0x10f2ff);}return _0x2e29de['panelView']['children']['add'](_0x81520d),_0x2e29de;}),this['_balloon']=_0x5187d4['plugins']['get'](_0x7016be),this['listenTo'](_0x5187d4['ui'],'update',()=>{this['_updateBalloonVisibility']();},{'priority':'low'}),this['listenTo'](_0x5187d4['ui']['focusTracker'],'change:isFocused',(_0x67349d,_0x1e595e,_0x216810)=>{this['_balloon']['visibleView']&&this['_balloon']['visibleView']===this['_balloonPanelView']&&(_0x216810?this['_updateBalloonVisibility']():this['_hideBalloon']());},{'priority':'low'}),this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4c8773=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x15be79;for(const _0x3f169f in _0x4c8773){const _0x35c49c=_0x3f169f,_0x22ea2b=_0x4c8773[_0x35c49c];if('mergeFieldsLicenseKeyValid'==_0x22ea2b||'mergeFieldsLicenseKeyInvalid'==_0x22ea2b||'mergeFieldsLicenseKeyExpired'==_0x22ea2b||'mergeFieldsLicenseKeyDomainLimit'==_0x22ea2b||'mergeFieldsLicenseKeyNotAllowed'==_0x22ea2b||'mergeFieldsLicenseKeyEvaluationLimit'==_0x22ea2b||'mergeFieldsLicenseKeyUsageLimit'==_0x22ea2b){delete _0x4c8773[_0x35c49c],_0x15be79=_0x22ea2b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'mergeFieldsLicenseKeyInvalid'==_0x15be79&&_0x4c8773['_showLicenseError']('invalid'),'mergeFieldsLicenseKeyExpired'==_0x15be79&&_0x4c8773['_showLicenseError']('expired'),'mergeFieldsLicenseKeyDomainLimit'==_0x15be79&&_0x4c8773['_showLicenseError']('domainLimit'),'mergeFieldsLicenseKeyNotAllowed'==_0x15be79&&_0x4c8773['_showLicenseError']('featureNotAllowed','MergeFields'),'mergeFieldsLicenseKeyEvaluationLimit'==_0x15be79&&_0x4c8773['_showLicenseError']('evaluationLimit'),'mergeFieldsLicenseKeyUsageLimit'==_0x15be79&&_0x4c8773['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_updateBalloonVisibility'](){const _0x269a2d=this['editor']['editing']['view']['document']['selection']['getSelectedElement'](),_0x3ebade=!(!_0x269a2d||!_0x269a2d['getCustomProperty']('mergeFieldStatus'));if(this['_balloon']['hasView'](this['_balloonPanelView'])&&this['_balloon']['visibleView']===this['_balloonPanelView']){if(_0x3ebade){const _0x21a89d=_0x269a2d['getCustomProperty']('mergeFieldStatus');this['_balloonPanelView']['text']=K(this['editor']['locale'],_0x21a89d),this['_balloon']['updatePosition'](this['_getBalloonPositionData']());}else this['_hideBalloon']();}else{if(_0x3ebade){const _0x1ebfd7=_0x269a2d['getCustomProperty']('mergeFieldStatus');this['_showBalloon'](K(this['editor']['locale'],_0x1ebfd7));}}}['_showBalloon'](_0x5c747d){this['_balloonPanelView']||(this['_balloonPanelView']=new W(this['editor']['locale']),this['_balloonPanelView']['text']=_0x5c747d),this['_balloon']['hasView'](this['_balloonPanelView'])||(this['_balloon']['add']({'stackId':'mergeFieldsStatus','view':this['_balloonPanelView'],'position':this['_getBalloonPositionData']()}),this['_balloon']['showStack']('mergeFieldsStatus'));}['_getBalloonPositionData'](){const _0x3fffd8=this['editor']['editing']['view'];return{'target':()=>{const _0x4a151d=_0x3fffd8['document']['selection']['getFirstRange'](),_0x5b3465=_0x3fffd8['domConverter']['mapViewToDom'](_0x4a151d['getContainedElement']());return _0x5b3465?Array['from'](_0x5b3465['getClientRects']())[0x0]:_0x3fffd8['domConverter']['viewRangeToDom'](_0x4a151d);}};}['_hideBalloon'](){this['_balloon']['remove'](this['_balloonPanelView']);}['_removeDefaultValuesPreviewIfUnnecessary'](){if(Object['values'](this['editor']['plugins']['get']('MergeFieldsEditing')['getDefaultValues']())['some'](_0x362e89=>_0x362e89))return;const _0x100b25=this['editor']['config']['get']('mergeFields.previewModes');_0x100b25['indexOf']('$defaultValues')>-0x1&&_0x100b25['length']>0x1&&(_0x100b25['splice'](_0x100b25['indexOf']('$defaultValues'),0x1),this['editor']['config']['set']('mergeFields.previewModes',_0x100b25));}['_removeMenuBarButtonIfUnnecessary'](){const _0x13d735=this['editor']['config'];if(_0x13d735['get']('mergeFields.previewModes')){const _0x41c9eb=_0x13d735['get']('mergeFields.previewModes');if(0x1===_0x41c9eb['length']){if(_0x41c9eb['includes']('$dataSets'))0x1===_0x13d735['get']('mergeFields.dataSets')['length']&&_0x4720f8();else _0x4720f8();}}function _0x4720f8(){const _0x1cbd06=_0x13d735['get']('menuBar.removeItems');_0x1cbd06?(_0x1cbd06['push']('menuBar:previewMergeFields'),_0x13d735['set']('menuBar.removeItems',_0x1cbd06)):_0x13d735['set']('menuBar.removeItems',['menuBar:previewMergeFields']);}}['_setupMentionConfiguration'](){const _0x17bc95=this['editor'],_0x42f42d=_0x17bc95['config']['get']('mention.feeds'),_0x55a7a6=_0x17bc95['config']['get']('mergeFields.prefix');_0x42f42d['push']({'marker':_0x55a7a6,'dropdownLimit':0xa,'feed':_0x5142ae=>_0x17bc95['plugins']['get']('MergeFieldsEditing')['flattenedMergeFieldDefinitions']['filter'](_0x3ad828=>{const _0x430379=_0x17bc95['commands']['get']('insertMergeField')['isEnabled'],_0x32fcc9=_0x17bc95['commands']['get']('insertMergeFieldBlock')['isEnabled'],_0x55ad5e=_0x17bc95['commands']['get']('insertMergeFieldImage')['isEnabled'],_0x4574f6=_0x17bc95['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x3ad828['id']);if('text'===_0x4574f6&&!_0x430379)return!0x1;if('block'===_0x4574f6&&!_0x32fcc9)return!0x1;if('image'===_0x4574f6&&!_0x55ad5e)return!0x1;return(_0x17bc95['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x3ad828['id'])||_0x3ad828['id'])['toLowerCase']()['includes'](_0x5142ae['toLowerCase']());}),'itemRenderer':_0x5a1333=>{const _0x1c44f9=document['createElement']('button');return _0x1c44f9['innerHTML']=''+(_0x5a1333['label']||_0x5a1333['id']),_0x1c44f9;}}),_0x17bc95['config']['set']('mention.feeds',_0x42f42d);}['_overrideMentionExecuteListener'](){const _0x76fe02=this['editor'];_0x76fe02['commands']['get']('mention')['on']('execute',(_0x420098,_0x478af8)=>{const _0x1f2b7b=_0x478af8[0x0];_0x1f2b7b['marker']===_0x76fe02['config']['get']('mergeFields.prefix')&&_0x76fe02['model']['change'](_0xdd7c7c=>{_0xdd7c7c['remove'](_0x1f2b7b['range']);const _0x49f588=_0x1f2b7b['mention']['id'],_0xab23a7=_0x76fe02['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x49f588);'text'===_0xab23a7?_0x76fe02['execute']('insertMergeField',_0x49f588):'block'===_0xab23a7?_0x76fe02['execute']('insertMergeFieldBlock',_0x49f588,!0x1):_0x76fe02['execute']('insertMergeFieldImage',_0x49f588,{'breakBlock':!0x0}),_0x420098['stop']();});},{'priority':'high'});}}function j(_0x518be6,_0x5e1938,_0x38dae1,_0x35f8ae){const _0x3a0d9b=new _0x44e13a(_0x518be6,new _0x25d4c4());_0x3a0d9b['label']=_0x5e1938;for(const _0x5dffed of _0x38dae1){let _0x29006b;_0x29006b='block'===_0x5dffed['type']?_0x35f8ae['insertBlock']:'image'===_0x5dffed['type']?_0x35f8ae['insertImage']:_0x35f8ae['insertInline'];const _0x5ba905=H(_0x518be6,_0x5dffed,_0x29006b);_0x5ba905['delegate']('execute')['to'](_0x3a0d9b),_0x3a0d9b['items']['add'](_0x5ba905);}return _0x3a0d9b;}function H(_0x333d08,_0x589809,_0x2ee91c){const _0x555796=new _0x2fe1eb(_0x333d08),_0x52f0af=new _0x2884fd(),_0x5814dd=new _0x4d28a2(_0x333d08,_0x52f0af);return _0x555796['children']['add'](_0x5814dd),_0x5814dd['set']({'label':_0x589809['label']||_0x589809['id'],'withText':!0x0}),_0x5814dd['bind']('isEnabled')['to'](_0x2ee91c),_0x5814dd['on']('execute',()=>{_0x555796['fire']('execute',_0x589809['id']);}),_0x555796;}function q(_0x2cda1c,_0x43b439,_0x3e624c){const _0x480be7=new _0x5e2616(_0x2cda1c),_0x4952dd=new _0x242292(_0x2cda1c);for(const _0x871906 of _0x43b439['definitions']){let _0x719d5c;_0x719d5c='block'===_0x871906['type']?_0x3e624c['insertBlock']:'image'===_0x871906['type']?_0x3e624c['insertImage']:_0x3e624c['insertInline'];const _0x265110=z(_0x2cda1c,_0x871906,_0x480be7,_0x719d5c);_0x4952dd['items']['add'](_0x265110);}return _0x480be7['set']({'class':'ck-menu-bar__merge-fields-submenu'}),_0x480be7['buttonView']['set']({'label':_0x43b439['groupLabel']||_0x43b439['groupId']}),_0x480be7['panelView']['children']['add'](_0x4952dd),_0x480be7;}function z(_0x3a7583,_0x536771,_0x4c3748,_0x3d3118){const _0x2d5e01=new _0x19e242(_0x3a7583,_0x4c3748),_0x46d6c1=new _0x2356b3(_0x3a7583);return _0x46d6c1['set']({'label':_0x536771['label']||_0x536771['id']}),_0x2d5e01['delegate']('execute')['to'](_0x4c3748),_0x2d5e01['children']['add'](_0x46d6c1),_0x46d6c1['bind']('isEnabled')['to'](_0x3d3118),_0x46d6c1['on']('execute',()=>{_0x2d5e01['fire']('execute',_0x536771['id']);}),_0x2d5e01;}class J extends _0x3105b4{static get['requires'](){return[P,C];}static get['pluginName'](){return'MergeFields';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{G as InsertMergeFieldBlockCommand,V as InsertMergeFieldCommand,T as InsertMergeFieldImageCommand,J as MergeFields,P as MergeFieldsEditing,C as MergeFieldsUI,U as PreviewMergeFieldsCommand};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import { Command } from 'ckeditor5
|
|
5
|
+
import { Command } from '@ckeditor/ckeditor5-core';
|
|
6
6
|
/**
|
|
7
7
|
* The insert merge field block element command.
|
|
8
8
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module merge-fields/insertmergefieldimagecommand
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Command, type Editor } from 'ckeditor5
|
|
9
|
+
import { Command, type Editor } from '@ckeditor/ckeditor5-core';
|
|
10
10
|
/**
|
|
11
11
|
* The insert merge field image element command.
|
|
12
12
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module merge-fields/mergefields
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin } from 'ckeditor5
|
|
9
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
10
10
|
import { MergeFieldsEditing } from './mergefieldsediting.js';
|
|
11
11
|
import { MergeFieldsUI } from './mergefieldsui.js';
|
|
12
12
|
/**
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import { Plugin, type Editor } from 'ckeditor5
|
|
6
|
-
import { type ModelElement } from 'ckeditor5
|
|
5
|
+
import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
|
|
6
|
+
import { type ModelElement } from '@ckeditor/ckeditor5-engine';
|
|
7
7
|
import type { MergeFieldDefinition, MergeFieldType } from './mergefieldsconfig.js';
|
|
8
8
|
/**
|
|
9
9
|
* The merge fields editing feature.
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module merge-fields/mergefieldsui
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5
|
|
9
|
-
import { ContextualBalloon } from 'ckeditor5
|
|
10
|
-
import { Widget } from 'ckeditor5
|
|
8
|
+
import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
|
|
9
|
+
import { ContextualBalloon } from '@ckeditor/ckeditor5-ui';
|
|
10
|
+
import { Widget } from '@ckeditor/ckeditor5-widget';
|
|
11
11
|
import { MergeFieldsEditing } from './mergefieldsediting.js';
|
|
12
12
|
import '../theme/mergefields.css';
|
|
13
13
|
import '../theme/insert-dropdown.css';
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20merge\x20field':'','Merge\x20field':'','Search\x20merge\x20field':'','No\x20merge\x20fields\x20found':'','No\x20merge\x20fields\x20available':'','Merge\x20fields\x20preview':'','Labels':'','Default\x20values':'','WARNING_MISSING_DATA':'','WARNING_MISSING_DEFAULT_VALUE':'','WARNING_MISSING_DATA_USED_DEFAULT_VALUE':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20merge\x20field':'','Merge\x20field':'','Search\x20merge\x20field':'','No\x20merge\x20fields\x20found':'','No\x20merge\x20fields\x20available':'','Merge\x20fields\x20preview':'','Labels':'','Default\x20values':'','WARNING_MISSING_DATA':'','WARNING_MISSING_DEFAULT_VALUE':'','WARNING_MISSING_DATA_USED_DEFAULT_VALUE':''},'getPluralForm':_0x2498ca=>0x1!=_0x2498ca}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x524d56=>{const {af:{dictionary:_0x194008,getPluralForm:_0x20c2c8}}={'af':{'dictionary':{'Insert\x20merge\x20field':'','Merge\x20field':'','Search\x20merge\x20field':'','No\x20merge\x20fields\x20found':'','No\x20merge\x20fields\x20available':'','Merge\x20fields\x20preview':'','Labels':'','Default\x20values':'','WARNING_MISSING_DATA':'','WARNING_MISSING_DEFAULT_VALUE':'','WARNING_MISSING_DATA_USED_DEFAULT_VALUE':''},'getPluralForm':_0x558f78=>0x1!=_0x558f78}};_0x524d56['af']||={'dictionary':{},'getPluralForm':null},_0x524d56['af']['dictionary']=Object['assign'](_0x524d56['af']['dictionary'],_0x194008),_0x524d56['af']['getPluralForm']=_0x20c2c8;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ar.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ar':{'dictionary':{'Insert\x20merge\x20field':'إدراج\x20حقل\x20دمج','Merge\x20field':'حقل\x20دمج','Search\x20merge\x20field':'البحث\x20عن\x20حقل\x20دمج','No\x20merge\x20fields\x20found':'لم\x20نعثر\x20على\x20حقول\x20دمج','No\x20merge\x20fields\x20available':'لا\x20تتوفر\x20حقول\x20دمج','Merge\x20fields\x20preview':'معاينة\x20حقول\x20الدمج','Labels':'التسميات','Default\x20values':'القيم\x20الافتراضية','WARNING_MISSING_DATA':'القيمة\x20غير\x20متاحة.','WARNING_MISSING_DEFAULT_VALUE':'القيمة\x20الافتراضية\x20غير\x20متاحة.','WARNING_MISSING_DATA_USED_DEFAULT_VALUE':'تم\x20استخدام\x20القيمة\x20الافتراضية.'},'getPluralForm':
|
|
23
|
+
export default{'ar':{'dictionary':{'Insert\x20merge\x20field':'إدراج\x20حقل\x20دمج','Merge\x20field':'حقل\x20دمج','Search\x20merge\x20field':'البحث\x20عن\x20حقل\x20دمج','No\x20merge\x20fields\x20found':'لم\x20نعثر\x20على\x20حقول\x20دمج','No\x20merge\x20fields\x20available':'لا\x20تتوفر\x20حقول\x20دمج','Merge\x20fields\x20preview':'معاينة\x20حقول\x20الدمج','Labels':'التسميات','Default\x20values':'القيم\x20الافتراضية','WARNING_MISSING_DATA':'القيمة\x20غير\x20متاحة.','WARNING_MISSING_DEFAULT_VALUE':'القيمة\x20الافتراضية\x20غير\x20متاحة.','WARNING_MISSING_DATA_USED_DEFAULT_VALUE':'تم\x20استخدام\x20القيمة\x20الافتراضية.'},'getPluralForm':_0x3ac4be=>0x0==_0x3ac4be?0x0:0x1==_0x3ac4be?0x1:0x2==_0x3ac4be?0x2:_0x3ac4be%0x64>=0x3&&_0x3ac4be%0x64<=0xa?0x3:_0x3ac4be%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x555437=>{const {ar:{dictionary:_0x187e2a,getPluralForm:_0x8b440f}}={'ar':{'dictionary':{'Insert\x20merge\x20field':'إدراج\x20حقل\x20دمج','Merge\x20field':'حقل\x20دمج','Search\x20merge\x20field':'البحث\x20عن\x20حقل\x20دمج','No\x20merge\x20fields\x20found':'لم\x20نعثر\x20على\x20حقول\x20دمج','No\x20merge\x20fields\x20available':'لا\x20تتوفر\x20حقول\x20دمج','Merge\x20fields\x20preview':'معاينة\x20حقول\x20الدمج','Labels':'التسميات','Default\x20values':'القيم\x20الافتراضية','WARNING_MISSING_DATA':'القيمة\x20غير\x20متاحة.','WARNING_MISSING_DEFAULT_VALUE':'القيمة\x20الافتراضية\x20غير\x20متاحة.','WARNING_MISSING_DATA_USED_DEFAULT_VALUE':'تم\x20استخدام\x20القيمة\x20الافتراضية.'},'getPluralForm':_0x3e3d80=>0x0==_0x3e3d80?0x0:0x1==_0x3e3d80?0x1:0x2==_0x3e3d80?0x2:_0x3e3d80%0x64>=0x3&&_0x3e3d80%0x64<=0xa?0x3:_0x3e3d80%0x64>=0xb?0x4:0x5}};_0x555437['ar']||={'dictionary':{},'getPluralForm':null},_0x555437['ar']['dictionary']=Object['assign'](_0x555437['ar']['dictionary'],_0x187e2a),_0x555437['ar']['getPluralForm']=_0x8b440f;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ast.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ast':{'dictionary':{'Insert\x20merge\x20field':'','Merge\x20field':'','Search\x20merge\x20field':'','No\x20merge\x20fields\x20found':'','No\x20merge\x20fields\x20available':'','Merge\x20fields\x20preview':'','Labels':'','Default\x20values':'','WARNING_MISSING_DATA':'','WARNING_MISSING_DEFAULT_VALUE':'','WARNING_MISSING_DATA_USED_DEFAULT_VALUE':''},'getPluralForm':
|
|
23
|
+
export default{'ast':{'dictionary':{'Insert\x20merge\x20field':'','Merge\x20field':'','Search\x20merge\x20field':'','No\x20merge\x20fields\x20found':'','No\x20merge\x20fields\x20available':'','Merge\x20fields\x20preview':'','Labels':'','Default\x20values':'','WARNING_MISSING_DATA':'','WARNING_MISSING_DEFAULT_VALUE':'','WARNING_MISSING_DATA_USED_DEFAULT_VALUE':''},'getPluralForm':_0x761cfc=>0x1!=_0x761cfc}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x6526fd=>{const {ast:{dictionary:_0x23527b,getPluralForm:_0x5e3776}}={'ast':{'dictionary':{'Insert\x20merge\x20field':'','Merge\x20field':'','Search\x20merge\x20field':'','No\x20merge\x20fields\x20found':'','No\x20merge\x20fields\x20available':'','Merge\x20fields\x20preview':'','Labels':'','Default\x20values':'','WARNING_MISSING_DATA':'','WARNING_MISSING_DEFAULT_VALUE':'','WARNING_MISSING_DATA_USED_DEFAULT_VALUE':''},'getPluralForm':_0x36f714=>0x1!=_0x36f714}};_0x6526fd['ast']||={'dictionary':{},'getPluralForm':null},_0x6526fd['ast']['dictionary']=Object['assign'](_0x6526fd['ast']['dictionary'],_0x23527b),_0x6526fd['ast']['getPluralForm']=_0x5e3776;})(window['CKEDITOR_TRANSLATIONS']||={});
|