@ckeditor/ckeditor5-merge-fields 43.0.0-alpha.0 → 43.0.0-alpha.2
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/build/merge-fields.js +1 -1
- package/build/translations/ar.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/ckeditor5-metadata.json +3 -0
- package/dist/index-editor.css +1 -0
- package/dist/index.css +1 -0
- package/dist/index.js +1 -1
- package/dist/translations/ar.d.ts +8 -0
- package/dist/translations/ar.js +23 -0
- package/dist/translations/ar.umd.js +23 -0
- package/dist/translations/bg.d.ts +8 -0
- package/dist/translations/bg.js +23 -0
- package/dist/translations/bg.umd.js +23 -0
- package/dist/translations/bn.d.ts +8 -0
- package/dist/translations/bn.js +23 -0
- package/dist/translations/bn.umd.js +23 -0
- package/dist/translations/ca.d.ts +8 -0
- package/dist/translations/ca.js +23 -0
- package/dist/translations/ca.umd.js +23 -0
- package/dist/translations/cs.d.ts +8 -0
- package/dist/translations/cs.js +23 -0
- package/dist/translations/cs.umd.js +23 -0
- package/dist/translations/da.d.ts +8 -0
- package/dist/translations/da.js +23 -0
- package/dist/translations/da.umd.js +23 -0
- package/dist/translations/de.d.ts +8 -0
- package/dist/translations/de.js +23 -0
- package/dist/translations/de.umd.js +23 -0
- package/dist/translations/el.d.ts +8 -0
- package/dist/translations/el.js +23 -0
- package/dist/translations/el.umd.js +23 -0
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es.d.ts +8 -0
- package/dist/translations/es.js +23 -0
- package/dist/translations/es.umd.js +23 -0
- package/dist/translations/et.d.ts +8 -0
- package/dist/translations/et.js +23 -0
- package/dist/translations/et.umd.js +23 -0
- package/dist/translations/fi.d.ts +8 -0
- package/dist/translations/fi.js +23 -0
- package/dist/translations/fi.umd.js +23 -0
- package/dist/translations/fr.d.ts +8 -0
- package/dist/translations/fr.js +23 -0
- package/dist/translations/fr.umd.js +23 -0
- package/dist/translations/he.d.ts +8 -0
- package/dist/translations/he.js +23 -0
- package/dist/translations/he.umd.js +23 -0
- package/dist/translations/hi.d.ts +8 -0
- package/dist/translations/hi.js +23 -0
- package/dist/translations/hi.umd.js +23 -0
- package/dist/translations/hr.d.ts +8 -0
- package/dist/translations/hr.js +23 -0
- package/dist/translations/hr.umd.js +23 -0
- package/dist/translations/hu.d.ts +8 -0
- package/dist/translations/hu.js +23 -0
- package/dist/translations/hu.umd.js +23 -0
- package/dist/translations/id.d.ts +8 -0
- package/dist/translations/id.js +23 -0
- package/dist/translations/id.umd.js +23 -0
- package/dist/translations/it.d.ts +8 -0
- package/dist/translations/it.js +23 -0
- package/dist/translations/it.umd.js +23 -0
- package/dist/translations/ja.d.ts +8 -0
- package/dist/translations/ja.js +23 -0
- package/dist/translations/ja.umd.js +23 -0
- package/dist/translations/ko.d.ts +8 -0
- package/dist/translations/ko.js +23 -0
- package/dist/translations/ko.umd.js +23 -0
- package/dist/translations/lt.d.ts +8 -0
- package/dist/translations/lt.js +23 -0
- package/dist/translations/lt.umd.js +23 -0
- package/dist/translations/lv.d.ts +8 -0
- package/dist/translations/lv.js +23 -0
- package/dist/translations/lv.umd.js +23 -0
- package/dist/translations/ms.d.ts +8 -0
- package/dist/translations/ms.js +23 -0
- package/dist/translations/ms.umd.js +23 -0
- package/dist/translations/nl.d.ts +8 -0
- package/dist/translations/nl.js +23 -0
- package/dist/translations/nl.umd.js +23 -0
- package/dist/translations/no.d.ts +8 -0
- package/dist/translations/no.js +23 -0
- package/dist/translations/no.umd.js +23 -0
- package/dist/translations/pl.d.ts +8 -0
- package/dist/translations/pl.js +23 -0
- package/dist/translations/pl.umd.js +23 -0
- package/dist/translations/pt-br.d.ts +8 -0
- package/dist/translations/pt-br.js +23 -0
- package/dist/translations/pt-br.umd.js +23 -0
- package/dist/translations/pt.d.ts +8 -0
- package/dist/translations/pt.js +23 -0
- package/dist/translations/pt.umd.js +23 -0
- package/dist/translations/ro.d.ts +8 -0
- package/dist/translations/ro.js +23 -0
- package/dist/translations/ro.umd.js +23 -0
- package/dist/translations/ru.d.ts +8 -0
- package/dist/translations/ru.js +23 -0
- package/dist/translations/ru.umd.js +23 -0
- package/dist/translations/sk.d.ts +8 -0
- package/dist/translations/sk.js +23 -0
- package/dist/translations/sk.umd.js +23 -0
- package/dist/translations/sr.d.ts +8 -0
- package/dist/translations/sr.js +23 -0
- package/dist/translations/sr.umd.js +23 -0
- package/dist/translations/sv.d.ts +8 -0
- package/dist/translations/sv.js +23 -0
- package/dist/translations/sv.umd.js +23 -0
- package/dist/translations/th.d.ts +8 -0
- package/dist/translations/th.js +23 -0
- package/dist/translations/th.umd.js +23 -0
- package/dist/translations/tr.d.ts +8 -0
- package/dist/translations/tr.js +23 -0
- package/dist/translations/tr.umd.js +23 -0
- package/dist/translations/uk.d.ts +8 -0
- package/dist/translations/uk.js +23 -0
- package/dist/translations/uk.umd.js +23 -0
- package/dist/translations/vi.d.ts +8 -0
- package/dist/translations/vi.js +23 -0
- package/dist/translations/vi.umd.js +23 -0
- package/dist/translations/zh-cn.d.ts +8 -0
- package/dist/translations/zh-cn.js +23 -0
- package/dist/translations/zh-cn.umd.js +23 -0
- package/dist/translations/zh.d.ts +8 -0
- package/dist/translations/zh.js +23 -0
- package/dist/translations/zh.umd.js +23 -0
- package/lang/translations/ar.po +66 -0
- package/lang/translations/bg.po +66 -0
- package/lang/translations/bn.po +66 -0
- package/lang/translations/ca.po +66 -0
- package/lang/translations/cs.po +66 -0
- package/lang/translations/da.po +66 -0
- package/lang/translations/de.po +66 -0
- package/lang/translations/el.po +66 -0
- package/lang/translations/es.po +66 -0
- package/lang/translations/et.po +66 -0
- package/lang/translations/fi.po +66 -0
- package/lang/translations/fr.po +66 -0
- package/lang/translations/he.po +66 -0
- package/lang/translations/hi.po +66 -0
- package/lang/translations/hr.po +66 -0
- package/lang/translations/hu.po +66 -0
- package/lang/translations/id.po +66 -0
- package/lang/translations/it.po +66 -0
- package/lang/translations/ja.po +66 -0
- package/lang/translations/ko.po +66 -0
- package/lang/translations/lt.po +66 -0
- package/lang/translations/lv.po +66 -0
- package/lang/translations/ms.po +66 -0
- package/lang/translations/nl.po +66 -0
- package/lang/translations/no.po +66 -0
- package/lang/translations/pl.po +66 -0
- package/lang/translations/pt-br.po +66 -0
- package/lang/translations/pt.po +66 -0
- package/lang/translations/ro.po +66 -0
- package/lang/translations/ru.po +66 -0
- package/lang/translations/sk.po +66 -0
- package/lang/translations/sr.po +66 -0
- package/lang/translations/sv.po +66 -0
- package/lang/translations/th.po +66 -0
- package/lang/translations/tr.po +66 -0
- package/lang/translations/uk.po +66 -0
- package/lang/translations/vi.po +66 -0
- package/lang/translations/zh-cn.po +66 -0
- package/lang/translations/zh.po +66 -0
- package/package.json +7 -7
- package/src/index.js +1 -1
- package/src/insertmergefieldcommand.js +1 -1
- package/src/mergefields.d.ts +1 -29
- package/src/mergefields.js +1 -1
- package/src/mergefieldsconfig.d.ts +1 -1
- package/src/mergefieldsediting.d.ts +25 -1
- package/src/mergefieldsediting.js +1 -1
- package/src/mergefieldsui.d.ts +3 -1
- package/src/mergefieldsui.js +1 -1
- package/src/previewmergefieldscommand.js +1 -1
- package/src/ui/mergefieldslistview.js +1 -1
- package/src/ui/mergefieldspanelview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/theme/mergefields.css +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-merge-fields",
|
|
3
|
-
"version": "43.0.0-alpha.
|
|
3
|
+
"version": "43.0.0-alpha.2",
|
|
4
4
|
"description": "Merge fields feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
"type": "module",
|
|
13
13
|
"main": "src/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"ckeditor5": "43.0.0-alpha.
|
|
16
|
-
"@ckeditor/ckeditor5-core": "43.0.0-alpha.
|
|
17
|
-
"@ckeditor/ckeditor5-engine": "43.0.0-alpha.
|
|
18
|
-
"@ckeditor/ckeditor5-ui": "43.0.0-alpha.
|
|
19
|
-
"@ckeditor/ckeditor5-utils": "43.0.0-alpha.
|
|
20
|
-
"@ckeditor/ckeditor5-widget": "43.0.0-alpha.
|
|
15
|
+
"ckeditor5": "43.0.0-alpha.2",
|
|
16
|
+
"@ckeditor/ckeditor5-core": "43.0.0-alpha.2",
|
|
17
|
+
"@ckeditor/ckeditor5-engine": "43.0.0-alpha.2",
|
|
18
|
+
"@ckeditor/ckeditor5-ui": "43.0.0-alpha.2",
|
|
19
|
+
"@ckeditor/ckeditor5-utils": "43.0.0-alpha.2",
|
|
20
|
+
"@ckeditor/ckeditor5-widget": "43.0.0-alpha.2",
|
|
21
21
|
"lodash-es": "4.17.21"
|
|
22
22
|
},
|
|
23
23
|
"license": "SEE LICENSE IN LICENSE.md",
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x3fb9(_0x54912,_0x4dc2e5){var _0x42b438=_0x42b4();return _0x3fb9=function(_0x3fb94d,_0x4ef381){_0x3fb94d=_0x3fb94d-0x15d;var _0x11220a=_0x42b438[_0x3fb94d];return _0x11220a;},_0x3fb9(_0x54912,_0x4dc2e5);}(function(_0x259ec6,_0x53f25a){var _0x3f82cf=_0x3fb9,_0x5f1283=_0x259ec6();while(!![]){try{var _0x17dfba=-parseInt(_0x3f82cf(0x160))/0x1*(parseInt(_0x3f82cf(0x161))/0x2)+-parseInt(_0x3f82cf(0x15d))/0x3+-parseInt(_0x3f82cf(0x15f))/0x4*(parseInt(_0x3f82cf(0x163))/0x5)+-parseInt(_0x3f82cf(0x15e))/0x6+parseInt(_0x3f82cf(0x162))/0x7+-parseInt(_0x3f82cf(0x165))/0x8+parseInt(_0x3f82cf(0x164))/0x9;if(_0x17dfba===_0x53f25a)break;else _0x5f1283['push'](_0x5f1283['shift']());}catch(_0x346e3b){_0x5f1283['push'](_0x5f1283['shift']());}}}(_0x42b4,0x4d1bc));export{default as MergeFields}from'./mergefields.js';export{default as MergeFieldsEditing}from'./mergefieldsediting.js';function _0x42b4(){var _0x327f43=['872qrGQuf','4JLjvLg','825923GSWUbl','5flsEdT','11094687MwhqKK','2337456Dywjci','472854DCcOMp','2177622oYQIPv','881660JHUUqW'];_0x42b4=function(){return _0x327f43;};return _0x42b4();}export{default as MergeFieldsUI}from'./mergefieldsui.js';import'./augmentation.js';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c64d6=_0x1c39;function _0x1c39(_0x5aebdd,_0x3b5b62){const _0x11e4cc=_0x11e4();return _0x1c39=function(_0x1c392f,_0x16208a){_0x1c392f=_0x1c392f-0x151;let _0xca83f8=_0x11e4cc[_0x1c392f];return _0xca83f8;},_0x1c39(_0x5aebdd,_0x3b5b62);}function _0x11e4(){const _0x14113c=['setAttribute','string','focus','17274BqueqL','8aoJTyB','execute','schema','1433625ucswpy','getAttributes','change','document','insertContent','522lKXKgv','4546346qDIKuI','isEnabled','mergeField','5174830UTXkgt','editor','createElement','model','914HtGCba','deleteContent','785tRTSKH','1603683ukZXEP','11ZQQkwp','selection','72184sxKCKq','checkAttribute','checkChild','refresh','after'];_0x11e4=function(){return _0x14113c;};return _0x11e4();}(function(_0x4a2bfb,_0x22d820){const _0x5e0940=_0x1c39,_0x502805=_0x4a2bfb();while(!![]){try{const _0x1fad16=-parseInt(_0x5e0940(0x15d))/0x1*(parseInt(_0x5e0940(0x155))/0x2)+parseInt(_0x5e0940(0x16f))/0x3+-parseInt(_0x5e0940(0x163))/0x4+parseInt(_0x5e0940(0x15f))/0x5*(parseInt(_0x5e0940(0x16b))/0x6)+-parseInt(_0x5e0940(0x156))/0x7*(parseInt(_0x5e0940(0x16c))/0x8)+-parseInt(_0x5e0940(0x160))/0x9+parseInt(_0x5e0940(0x159))/0xa*(parseInt(_0x5e0940(0x161))/0xb);if(_0x1fad16===_0x22d820)break;else _0x502805['push'](_0x502805['shift']());}catch(_0x7ae9ef){_0x502805['push'](_0x502805['shift']());}}}(_0x11e4,0x58a58));import{Command as _0x56ac36}from'ckeditor5/src/core.js';export default class r extends _0x56ac36{[_0x4c64d6(0x166)](){const _0x3ef690=_0x4c64d6,_0x4228c4=this[_0x3ef690(0x15a)][_0x3ef690(0x15c)],_0x5b4be8=_0x4228c4[_0x3ef690(0x16e)][_0x3ef690(0x165)](_0x4228c4[_0x3ef690(0x153)][_0x3ef690(0x162)][_0x3ef690(0x16a)],_0x3ef690(0x158));this[_0x3ef690(0x157)]=_0x5b4be8;}[_0x4c64d6(0x16d)](_0x489478){const _0x3bf8e1=_0x4c64d6;if(!_0x489478||_0x3bf8e1(0x169)!=typeof _0x489478)return;const _0x54e77d=this[_0x3bf8e1(0x15a)][_0x3bf8e1(0x15c)];_0x54e77d[_0x3bf8e1(0x152)](_0x150574=>{const _0x45f186=_0x3bf8e1;_0x54e77d[_0x45f186(0x15e)](_0x54e77d[_0x45f186(0x153)][_0x45f186(0x162)]);const _0x553445=_0x150574[_0x45f186(0x15b)](_0x45f186(0x158),{'id':_0x489478});for(const [_0x5762c0,_0x45fd1a]of _0x54e77d[_0x45f186(0x153)][_0x45f186(0x162)][_0x45f186(0x151)]())_0x54e77d[_0x45f186(0x16e)][_0x45f186(0x164)](_0x553445,_0x5762c0)&&_0x150574[_0x45f186(0x168)](_0x5762c0,_0x45fd1a,_0x553445);_0x54e77d[_0x45f186(0x154)](_0x553445,_0x54e77d[_0x45f186(0x153)][_0x45f186(0x162)],0x0,{'setSelection':_0x45f186(0x167)});});}}
|
package/src/mergefields.d.ts
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
9
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
|
-
import { Widget } from 'ckeditor5/src/widget.js';
|
|
11
10
|
import MergeFieldsEditing from './mergefieldsediting.js';
|
|
12
11
|
import MergeFieldsUI from './mergefieldsui.js';
|
|
13
12
|
/**
|
|
@@ -21,36 +20,9 @@ export default class MergeFields extends Plugin {
|
|
|
21
20
|
/**
|
|
22
21
|
* @inheritDoc
|
|
23
22
|
*/
|
|
24
|
-
static get requires(): readonly [
|
|
23
|
+
static get requires(): readonly [typeof MergeFieldsEditing, typeof MergeFieldsUI];
|
|
25
24
|
/**
|
|
26
25
|
* @inheritDoc
|
|
27
26
|
*/
|
|
28
27
|
static get pluginName(): "MergeFields";
|
|
29
|
-
/**
|
|
30
|
-
* Returns ids of all merge fields defined in the configuration and custom merge fields added by the user that exist in the document.
|
|
31
|
-
*/
|
|
32
|
-
getMergeFieldsIds(): Array<string>;
|
|
33
|
-
/**
|
|
34
|
-
* Returns an object with default merge fields values.
|
|
35
|
-
*
|
|
36
|
-
* Custom merge fields (created by user, not defined in the config) will be returned as well, and their value will be set to `null`.
|
|
37
|
-
*
|
|
38
|
-
* Values defined as functions are evaluated and their result is returned.
|
|
39
|
-
*/
|
|
40
|
-
getDefaultValues(): MergeFieldsValues;
|
|
41
|
-
/**
|
|
42
|
-
* Returns an object with merge fields values defined for given data set.
|
|
43
|
-
*
|
|
44
|
-
* Custom merge fields (created by user, not defined in the config) will be returned as well, and their value will be set to `null`.
|
|
45
|
-
*
|
|
46
|
-
* Values defined as functions are evaluated and their result is returned.
|
|
47
|
-
*
|
|
48
|
-
* If the data set is not found, it throws an error.
|
|
49
|
-
*
|
|
50
|
-
* @param dataSetId
|
|
51
|
-
* @param useDefaultValues If set to `true`, merge field default value will be used for these merge fields, for which the data
|
|
52
|
-
* was not defined. If default value is not configured for given merge field, `null` will be still returned.
|
|
53
|
-
*/
|
|
54
|
-
getDataSetValues(dataSetId: string, useDefaultValues?: boolean): MergeFieldsValues;
|
|
55
28
|
}
|
|
56
|
-
export type MergeFieldsValues = Record<string, string | null>;
|
package/src/mergefields.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1b6c(_0x43f504,_0x4c95b6){var _0x224fab=_0x224f();return _0x1b6c=function(_0x1b6cda,_0x5d5e16){_0x1b6cda=_0x1b6cda-0x1f2;var _0x1d50b1=_0x224fab[_0x1b6cda];return _0x1d50b1;},_0x1b6c(_0x43f504,_0x4c95b6);}var _0x137c46=_0x1b6c;(function(_0x5358fc,_0x559bb8){var _0x95ad20=_0x1b6c,_0x4611ec=_0x5358fc();while(!![]){try{var _0x4d7910=-parseInt(_0x95ad20(0x1f7))/0x1+parseInt(_0x95ad20(0x1f9))/0x2+parseInt(_0x95ad20(0x1fb))/0x3+-parseInt(_0x95ad20(0x1f2))/0x4*(-parseInt(_0x95ad20(0x1f6))/0x5)+-parseInt(_0x95ad20(0x1fa))/0x6*(parseInt(_0x95ad20(0x1fd))/0x7)+-parseInt(_0x95ad20(0x1f4))/0x8+parseInt(_0x95ad20(0x1fc))/0x9*(parseInt(_0x95ad20(0x1f5))/0xa);if(_0x4d7910===_0x559bb8)break;else _0x4611ec['push'](_0x4611ec['shift']());}catch(_0xae6561){_0x4611ec['push'](_0x4611ec['shift']());}}}(_0x224f,0x3dfae));import{Plugin as _0x925d0b}from'ckeditor5/src/core.js';function _0x224f(){var _0x4c8dc0=['60KEZroN','requires','2988312VvdGNx','820fjKwbh','55555sIvlbe','207126TuXvNF','MergeFields','481846LjYssy','6NvrRVA','436005GwaKSn','36747SGWYAD','372358RUvZrk','pluginName'];_0x224f=function(){return _0x4c8dc0;};return _0x224f();}import _0x2a4be3 from'./mergefieldsediting.js';import _0x5be65e from'./mergefieldsui.js';export default class o extends _0x925d0b{static get[_0x137c46(0x1f3)](){return[_0x2a4be3,_0x5be65e];}static get[_0x137c46(0x1fe)](){var _0x43bdd3=_0x137c46;return _0x43bdd3(0x1f8);}}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import type { Editor } from 'ckeditor5/src/core.js';
|
|
6
5
|
/**
|
|
7
6
|
* @module merge-fields/mergefieldsconfig
|
|
8
7
|
* @publicApi
|
|
9
8
|
*/
|
|
9
|
+
import type { Editor } from 'ckeditor5/src/core.js';
|
|
10
10
|
/**
|
|
11
11
|
* The configuration of the merge fields feature.
|
|
12
12
|
*
|
|
@@ -35,6 +35,28 @@ export default class MergeFieldsEditing extends Plugin {
|
|
|
35
35
|
* @inheritDoc
|
|
36
36
|
*/
|
|
37
37
|
init(): void;
|
|
38
|
+
/**
|
|
39
|
+
* Returns an object with default merge fields values.
|
|
40
|
+
*
|
|
41
|
+
* Custom merge fields (created by user, not defined in the config) will be returned as well, and their value will be set to `null`.
|
|
42
|
+
*
|
|
43
|
+
* Values defined as functions are evaluated and their result is returned.
|
|
44
|
+
*/
|
|
45
|
+
getDefaultValues(): MergeFieldsValues;
|
|
46
|
+
/**
|
|
47
|
+
* Returns an object with merge fields values defined for given data set.
|
|
48
|
+
*
|
|
49
|
+
* Custom merge fields (created by user, not defined in the config) will be returned as well, and their value will be set to `null`.
|
|
50
|
+
*
|
|
51
|
+
* Values defined as functions are evaluated and their result is returned.
|
|
52
|
+
*
|
|
53
|
+
* If the data set is not found, it throws an error.
|
|
54
|
+
*
|
|
55
|
+
* @param dataSetId
|
|
56
|
+
* @param useDefaultValues If set to `true`, merge field default value will be used for these merge fields, for which the data
|
|
57
|
+
* was not defined. If default value is not configured for given merge field, `null` will be still returned.
|
|
58
|
+
*/
|
|
59
|
+
getDataSetValues(dataSetId: string, useDefaultValues?: boolean): MergeFieldsValues;
|
|
38
60
|
/**
|
|
39
61
|
* Retrieves the label for the merge field with the given id.
|
|
40
62
|
*
|
|
@@ -68,9 +90,11 @@ export default class MergeFieldsEditing extends Plugin {
|
|
|
68
90
|
/**
|
|
69
91
|
* Returns the merge field definition for the given id.
|
|
70
92
|
*/
|
|
71
|
-
getDefinition(id: string): MergeFieldDefinition;
|
|
93
|
+
getDefinition(id: string): MergeFieldDefinition | null;
|
|
72
94
|
/**
|
|
73
95
|
* @inheritDoc
|
|
74
96
|
*/
|
|
75
97
|
destroy(): void;
|
|
76
98
|
}
|
|
99
|
+
type MergeFieldsValues = Record<string, string | null>;
|
|
100
|
+
export {};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x31fa99=_0x4e99;function _0x3ac7(){const _0x469bd2=['defaultValue','availablePreviewModes','ck-merge-field__icon','mergeFieldsLicenseKeyTrialLimit:operations','innerHTML','merge-fields-invalid-license-key','upcast','764SSzkhr','createUIElement','dataDowncast','value','_registerConversionPostFixer','from','_getDefaultDefinition','element','length','ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_no-default','mergeFields.definitions','editing','startOffset','change:data','render','definitions','merge-fields-duplicate-data-set-id','getDocumentMergeFieldsIds','mergeFieldStatus','_validateConfig','has','mergeFields.prefix','start','appendChild','type','6laTHbe','reconvertItem','WARNING_MISSING_DEFINITION','every','2319219DHzEZS','WARNING_MISSING_DATA_USED_DEFAULT_VALUE','_createTextualMergeField','checkChild','insert','\x20]+','reverse','$labels','mergeFields.initialPreviewMode','set','ck-merge-field\x20ck-merge-field_with-value','position','index','function','merge-fields-invalid-id','_defineConverters','ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-definition','2422432NIOMWz','merge-fields-invalid-preview-modes-configuration','_trackAddedMergeFields','domConverter','createPositionAt','previewMode','getChanges','getShiftedBy','mergeFields.previewModes','_mergeFieldPrefix','document','push','offsetSize','schema','mapper','mergeFields.dataSets','_getAvailablePreviewModes','_mergeFieldElements','groupId','getAttribute','createContainerElement','merge-fields-duplicate-group-id','_refreshMergeFields','getChildren','createElement','_mergeFieldSuffix','flattenedMergeFieldDefinitions','data','createRange','merge-fields-data-set-not-found','test','parent','toDomElement','for','getMergeFieldValue','createText','modelCursor','mergeFieldsData','ck-merge-field__content','forEach','insertMergeField','$dataSets','getMergeFieldsIds','4LQrocr','remove','_licenseKeyCheckInterval','3683743DwWXmg','merge-fields-prefix-and-suffix-must-differ','includes','listenTo','ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-data','define','335029WacFxR','nextSibling','values','ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_default-value-used','merge-fields-invalid-prefix-or-suffix','_getFlattenedMergeFieldDefinitions','view','mergeFieldsLicenseKeyInvalid','label','_mergeFieldRegExp','WARNING_MISSING_DATA','change:previewMode','merge-fields-duplicate-merge-field-id','text','get','next','map','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20format\x20painter\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','bind','getMergeFieldDefaultValue','mergeFieldsLicenseKeyValid','mergeFields.suffix','span','conversion','213UwGmdY','65395nvHrqb','merge-fields-trial-license-key-reached-limit-changes','getAttributes','WARNING_MISSING_DEFAULT_VALUE','mergeFieldsLicenseKeyTrial','_validatePreviewMode','commands','match','_prepareViewElementData','isLocal','init','matchAll','concat','delete','mergeField','insertObject','viewToModelPosition','add','_createMergeFieldWidget','$text','differ','getDefinition','destroy','setCustomProperty','hasClass','$defaultValues','createRangeIn','pluginName','consume','licenseKey','split','registerPostFixer','elementToElement','model','$inlineObject','dataPipeline:transparentRendering','find','10683970uzNJKc','previewMergeFields','rootName','slice','ck-merge-field','reduce','register','join','name','22giDnJA','registerInlineObjectMatcher','batch','getLabel','config','_defineSchema','info','editor','filter','root','editingDowncast','MergeFieldsEditing','modelRange','ck-merge-field__affix','getItems','$graveyard','nodeAfter','merge-fields-invalid-preview-mode-set'];_0x3ac7=function(){return _0x469bd2;};return _0x3ac7();}(function(_0x2c16f1,_0x3675ee){const _0x457897=_0x4e99,_0x298df0=_0x2c16f1();while(!![]){try{const _0x1ff019=parseInt(_0x457897(0x1f8))/0x1*(-parseInt(_0x457897(0x1ef))/0x2)+-parseInt(_0x457897(0x210))/0x3*(-parseInt(_0x457897(0x258))/0x4)+-parseInt(_0x457897(0x211))/0x5+parseInt(_0x457897(0x271))/0x6*(-parseInt(_0x457897(0x1f2))/0x7)+-parseInt(_0x457897(0x286))/0x8+-parseInt(_0x457897(0x275))/0x9+-parseInt(_0x457897(0x236))/0xa*(-parseInt(_0x457897(0x23f))/0xb);if(_0x1ff019===_0x3675ee)break;else _0x298df0['push'](_0x298df0['shift']());}catch(_0x33290b){_0x298df0['push'](_0x298df0['shift']());}}}(_0x3ac7,0x5ce3a));import{toWidget as _0x3ba111,viewToModelPositionOutsideModelElement as _0x3efa52}from'ckeditor5/src/widget.js';import{Plugin as _0x3e546a}from'ckeditor5/src/core.js';import{IconView as _0x5e0b57}from'ckeditor5/src/ui.js';import{isParagraphable as _0x2cb83e,wrapInParagraph as _0x4231a5}from'ckeditor5/src/engine.js';import{CKEditorError as _0x23cd23}from'ckeditor5/src/utils.js';import _0x3d7cdb from'./insertmergefieldcommand.js';function _0x4e99(_0x2744b7,_0xbe9e00){const _0x3ac76d=_0x3ac7();return _0x4e99=function(_0x4e991f,_0x19bd99){_0x4e991f=_0x4e991f-0x1d1;let _0x5c0da8=_0x3ac76d[_0x4e991f];return _0x5c0da8;},_0x4e99(_0x2744b7,_0xbe9e00);}import _0x4722a1 from'./previewmergefieldscommand.js';import _0x2a1d10 from'../theme/icons/warning.svg';export default class o extends _0x3e546a{static get[_0x31fa99(0x22c)](){const _0x14c735=_0x31fa99;return _0x14c735(0x24a);}constructor(_0x256de7){const _0x241c6e=_0x31fa99;super(_0x256de7),this[_0x241c6e(0x1de)]=[],_0x256de7[_0x241c6e(0x243)][_0x241c6e(0x1f7)](_0x241c6e(0x28e),[_0x241c6e(0x27c),_0x241c6e(0x22a),_0x241c6e(0x1ed)]),_0x256de7[_0x241c6e(0x243)][_0x241c6e(0x1f7)](_0x241c6e(0x1d3),[]),_0x256de7[_0x241c6e(0x243)][_0x241c6e(0x1f7)](_0x241c6e(0x262),[]),_0x256de7[_0x241c6e(0x243)][_0x241c6e(0x1f7)](_0x241c6e(0x26d),'{{'),_0x256de7[_0x241c6e(0x243)][_0x241c6e(0x1f7)](_0x241c6e(0x20d),'}}'),this[_0x241c6e(0x28f)]=_0x256de7[_0x241c6e(0x243)][_0x241c6e(0x206)](_0x241c6e(0x26d)),this[_0x241c6e(0x1dd)]=_0x256de7[_0x241c6e(0x243)][_0x241c6e(0x206)](_0x241c6e(0x20d)),this[_0x241c6e(0x1de)]=this[_0x241c6e(0x1fd)](),this[_0x241c6e(0x26b)]();const _0x277ad1='\x5c'+this[_0x241c6e(0x28f)][_0x241c6e(0x22f)]('')[_0x241c6e(0x23d)]('\x5c'),_0x542851='\x5c'+this[_0x241c6e(0x1dd)][_0x241c6e(0x22f)]('')[_0x241c6e(0x23d)]('\x5c');this[_0x241c6e(0x201)]=new RegExp('('+_0x277ad1+'[^'+(_0x277ad1+_0x542851)+_0x241c6e(0x27a)+_0x542851+')','g'),this[_0x241c6e(0x252)]=this[_0x241c6e(0x1d4)]();const _0x4a0a22=_0x256de7[_0x241c6e(0x243)][_0x241c6e(0x206)](_0x241c6e(0x27d))||this[_0x241c6e(0x252)][0x0];this[_0x241c6e(0x216)](_0x4a0a22),this[_0x241c6e(0x27e)](_0x241c6e(0x28b),_0x4a0a22),this[_0x241c6e(0x1d5)]=new Set(),this[_0x241c6e(0x1f1)]=null;}[_0x31fa99(0x21b)](){const _0x2617ca=_0x31fa99,_0x23ab7c=this[_0x2617ca(0x246)];_0x23ab7c[_0x2617ca(0x217)][_0x2617ca(0x222)](_0x2617ca(0x1ec),new _0x3d7cdb(_0x23ab7c)),_0x23ab7c[_0x2617ca(0x217)][_0x2617ca(0x222)](_0x2617ca(0x237),new _0x4722a1(_0x23ab7c)),this[_0x2617ca(0x244)](),this[_0x2617ca(0x284)](),this['on'](_0x2617ca(0x203),(_0xd97721,_0x58f199,_0x4ef6aa)=>{const _0x5696ea=_0x2617ca;this[_0x5696ea(0x216)](_0x4ef6aa),this[_0x5696ea(0x1da)]();}),this[_0x2617ca(0x1f5)](_0x23ab7c[_0x2617ca(0x232)][_0x2617ca(0x290)],_0x2617ca(0x265),()=>{const _0x450181=_0x2617ca;this[_0x450181(0x288)]();}),_0x23ab7c[_0x2617ca(0x263)][_0x2617ca(0x1d2)]['on'](_0x2617ca(0x221),_0x3efa52(_0x23ab7c[_0x2617ca(0x232)],_0x508b8b=>_0x508b8b[_0x2617ca(0x229)](_0x2617ca(0x23a)))),this[_0x2617ca(0x25c)](),_0x23ab7c[_0x2617ca(0x263)][_0x2617ca(0x1fe)][_0x2617ca(0x289)][_0x2617ca(0x240)]({'name':_0x2617ca(0x20e),'classes':[_0x2617ca(0x23a)]}),this[_0x2617ca(0x22e)]=_0x23ab7c[_0x2617ca(0x243)][_0x2617ca(0x206)](_0x2617ca(0x22e));const _0x4dce60=this[_0x2617ca(0x246)];this[_0x2617ca(0x1f1)]=setInterval(()=>{const _0x2d6492=_0x2617ca;let _0x28669c;for(const _0x28561e in _0x4dce60){const _0x184cfe=_0x28561e,_0x52efa2=_0x4dce60[_0x184cfe];if(_0x2d6492(0x215)===_0x52efa2||_0x2d6492(0x1ff)===_0x52efa2||_0x2d6492(0x20c)===_0x52efa2||_0x2d6492(0x254)===_0x52efa2){delete _0x4dce60[_0x184cfe],_0x28669c=_0x52efa2;break;}}if(_0x2d6492(0x1ff)===_0x28669c)throw clearInterval(this[_0x2d6492(0x1f1)]),new _0x23cd23(_0x2d6492(0x256),null);if(_0x2d6492(0x215)===_0x28669c&&console[_0x2d6492(0x245)](_0x2d6492(0x209)),_0x2d6492(0x254)===_0x28669c)throw clearInterval(this[_0x2d6492(0x1f1)]),new _0x23cd23(_0x2d6492(0x212),null);_0x2d6492(0x20c)===_0x28669c&&clearInterval(this[_0x2d6492(0x1f1)]);},0x3e8);}[_0x31fa99(0x242)](_0x32a3d7){const _0x3d2fc6=_0x31fa99,_0x9113c=this[_0x3d2fc6(0x226)](_0x32a3d7);return _0x9113c[_0x3d2fc6(0x200)]||_0x9113c['id'];}[_0x31fa99(0x20b)](_0x875854){const _0x547c1d=_0x31fa99,_0x91186d=this[_0x547c1d(0x226)](_0x875854);return void 0x0===_0x91186d[_0x547c1d(0x251)]?null:_0x547c1d(0x282)==typeof _0x91186d[_0x547c1d(0x251)]?_0x91186d[_0x547c1d(0x251)](this[_0x547c1d(0x246)]):_0x91186d[_0x547c1d(0x251)];}[_0x31fa99(0x1e6)](_0x298438,_0x44b0f2){const _0x1d7836=_0x31fa99,_0x37755e=this[_0x1d7836(0x246)][_0x1d7836(0x243)][_0x1d7836(0x206)](_0x1d7836(0x1d3))[_0x1d7836(0x235)](_0x1700e3=>_0x1700e3['id']===_0x44b0f2);if(!_0x37755e)throw new _0x23cd23(_0x1d7836(0x1e1),null);const _0xdf95c4=this[_0x1d7836(0x226)](_0x298438),_0x99d9fc=_0x37755e[_0x1d7836(0x1fa)][_0xdf95c4['id']];return void 0x0===_0x99d9fc?null:_0x1d7836(0x282)==typeof _0x99d9fc?_0x99d9fc(this[_0x1d7836(0x246)]):_0x99d9fc;}[_0x31fa99(0x269)](){const _0xea50bc=_0x31fa99,_0x19479f=new Set();for(const _0x4310ef of this[_0xea50bc(0x1d5)])_0xea50bc(0x24e)!==_0x4310ef[_0xea50bc(0x248)][_0xea50bc(0x238)]&&_0x19479f[_0xea50bc(0x222)](_0x4310ef[_0xea50bc(0x1d7)]('id'));return Array[_0xea50bc(0x25d)](_0x19479f);}[_0x31fa99(0x1ee)](){const _0x5edc1c=_0x31fa99,_0x36ed52=this[_0x5edc1c(0x1de)][_0x5edc1c(0x208)](_0x314f93=>_0x314f93['id']),_0x37a8dd=this[_0x5edc1c(0x269)]();return Array[_0x5edc1c(0x25d)](new Set([..._0x36ed52,..._0x37a8dd]));}[_0x31fa99(0x226)](_0x144409){const _0x120723=_0x31fa99;return this[_0x120723(0x1de)][_0x120723(0x235)](_0x18ad14=>_0x18ad14['id']===_0x144409)||this[_0x120723(0x25e)](_0x144409);}[_0x31fa99(0x227)](){const _0x33568f=_0x31fa99;this[_0x33568f(0x1f1)]&&clearInterval(this[_0x33568f(0x1f1)]);}[_0x31fa99(0x1fd)](){const _0x3d786a=_0x31fa99,_0x3b26c3=new Set(),_0x457b14=this[_0x3d786a(0x246)];return _0x457b14[_0x3d786a(0x243)][_0x3d786a(0x206)](_0x3d786a(0x262))[_0x3d786a(0x23b)]((_0x514e70,_0x5ad495)=>{const _0x34456e=_0x3d786a;if(_0x34456e(0x1d6)in _0x5ad495){if(_0x3b26c3[_0x34456e(0x26c)](_0x5ad495[_0x34456e(0x1d6)]))throw new _0x23cd23(_0x34456e(0x1d9),_0x457b14,{'duplicateId':_0x5ad495[_0x34456e(0x1d6)]});_0x3b26c3[_0x34456e(0x222)](_0x5ad495[_0x34456e(0x1d6)]);}return _0x34456e(0x1d6)in _0x5ad495?function(_0x15566f,_0x2760e0){const _0x57fd41=_0x34456e;for(const _0x5bfaa6 of _0x2760e0[_0x57fd41(0x267)])_0x15566f=_0x15566f[_0x57fd41(0x21d)](_0x5bfaa6);return _0x15566f;}[_0x34456e(0x20a)](_0x457b14)(_0x514e70,_0x5ad495):_0x514e70[_0x34456e(0x21d)](_0x5ad495);},new Array());}[_0x31fa99(0x26b)](){const _0x577b5c=_0x31fa99,_0x470557=/^['"`!#%:;=@{}~$()*+/?[\\\]^|]+$/;if(!_0x470557[_0x577b5c(0x1e2)](this[_0x577b5c(0x28f)])||!_0x470557[_0x577b5c(0x1e2)](this[_0x577b5c(0x1dd)]))throw new _0x23cd23(_0x577b5c(0x1fc),this,{'prefix':this[_0x577b5c(0x28f)],'suffix':this[_0x577b5c(0x1dd)]});const _0x13dbf2=/^[a-zA-Z0-9_.-]+$/,_0x475426=new Set();if(this[_0x577b5c(0x1de)][_0x577b5c(0x208)](_0x3d3073=>{const _0x174f1f=_0x577b5c;if(!_0x13dbf2[_0x174f1f(0x1e2)](_0x3d3073['id']))throw new _0x23cd23(_0x174f1f(0x283),this,{'incorrectId':_0x3d3073['id']});if(_0x475426[_0x174f1f(0x26c)](_0x3d3073['id']))throw new _0x23cd23(_0x174f1f(0x204),this,{'duplicateId':_0x3d3073['id']});_0x475426[_0x174f1f(0x222)](_0x3d3073['id']);}),this[_0x577b5c(0x28f)]===this[_0x577b5c(0x1dd)])throw new _0x23cd23(_0x577b5c(0x1f3),this);const _0x4a958c=this[_0x577b5c(0x246)][_0x577b5c(0x243)][_0x577b5c(0x206)](_0x577b5c(0x28e)),_0x5a683f=[_0x577b5c(0x27c),_0x577b5c(0x22a),_0x577b5c(0x1ed)];if(!_0x4a958c[_0x577b5c(0x260)]||!_0x4a958c[_0x577b5c(0x274)](_0xa4c626=>_0x5a683f[_0x577b5c(0x1f4)](_0xa4c626)))throw new _0x23cd23(_0x577b5c(0x287),this,{'invalidConfig':_0x4a958c});const _0x46d6a0=new Set(),_0x213e19=this[_0x577b5c(0x246)][_0x577b5c(0x243)][_0x577b5c(0x206)](_0x577b5c(0x1d3));for(const _0x1ab3c1 of _0x213e19){if(_0x46d6a0[_0x577b5c(0x26c)](_0x1ab3c1['id']))throw new _0x23cd23(_0x577b5c(0x268),this,{'duplicateId':_0x1ab3c1['id']});_0x46d6a0[_0x577b5c(0x222)](_0x1ab3c1['id']);}}[_0x31fa99(0x1d4)](){const _0x2f092e=_0x31fa99,_0x4b240d=this[_0x2f092e(0x246)][_0x2f092e(0x243)][_0x2f092e(0x206)](_0x2f092e(0x28e)),_0x4389fc=[];if(_0x4b240d[_0x2f092e(0x1f4)](_0x2f092e(0x27c))&&_0x4389fc[_0x2f092e(0x291)](_0x2f092e(0x27c)),_0x4b240d[_0x2f092e(0x1f4)](_0x2f092e(0x22a))&&_0x4389fc[_0x2f092e(0x291)](_0x2f092e(0x22a)),_0x4b240d[_0x2f092e(0x1f4)](_0x2f092e(0x1ed))){const _0x5f304f=this[_0x2f092e(0x246)][_0x2f092e(0x243)][_0x2f092e(0x206)](_0x2f092e(0x1d3));_0x4389fc[_0x2f092e(0x291)](..._0x5f304f[_0x2f092e(0x208)](_0x1b297d=>_0x1b297d['id']));}return _0x4389fc;}[_0x31fa99(0x244)](){const _0x58e369=_0x31fa99;this[_0x58e369(0x246)][_0x58e369(0x232)][_0x58e369(0x1d1)][_0x58e369(0x23c)](_0x58e369(0x21f),{'inheritAllFrom':_0x58e369(0x233),'allowAttributes':['id'],'allowWhere':_0x58e369(0x224)});}[_0x31fa99(0x284)](){const _0x3c175f=_0x31fa99,_0x187efa=this[_0x3c175f(0x246)][_0x3c175f(0x20f)];_0x187efa[_0x3c175f(0x1e5)](_0x3c175f(0x257))[_0x3c175f(0x222)](_0x4f7541=>{const _0x196bd=_0x3c175f;_0x4f7541['on'](_0x196bd(0x205),(_0x8f0c3,_0x3c1e67,_0xb2130f)=>{const _0x1951e2=_0x196bd,{consumable:_0x4ef90e,writer:_0x1b5538,schema:_0x32cb18}=_0xb2130f,{viewItem:_0x3ad424}=_0x3c1e67;if(!_0x4ef90e[_0x1951e2(0x1e2)](_0x3ad424))return;const _0x86e6f9=_0x3ad424[_0x1951e2(0x1df)][_0x1951e2(0x22f)](this[_0x1951e2(0x201)])[_0x1951e2(0x247)](_0x3ab6ba=>_0x3ab6ba);if(0x1!==_0x86e6f9[_0x1951e2(0x260)]||_0x86e6f9[0x0][_0x1951e2(0x218)](this[_0x1951e2(0x201)])){if(!_0x32cb18[_0x1951e2(0x278)](_0x3c1e67[_0x1951e2(0x1e8)],_0x1951e2(0x224))){if(!_0x2cb83e(_0x3c1e67[_0x1951e2(0x1e8)],_0x1951e2(0x224),_0x32cb18))return;_0x3c1e67[_0x1951e2(0x1e8)]=_0x4231a5(_0x3c1e67[_0x1951e2(0x1e8)],_0x1b5538);}_0x4ef90e[_0x1951e2(0x22d)](_0x3ad424);for(const _0x37f116 of _0x86e6f9){const _0x46da6f=_0x3c1e67[_0x1951e2(0x1e8)];let _0x212735;if(_0x37f116[_0x1951e2(0x218)](this[_0x1951e2(0x201)])){const _0xc03dc4=_0x37f116[_0x1951e2(0x239)](this[_0x1951e2(0x28f)][_0x1951e2(0x260)],_0x37f116[_0x1951e2(0x260)]-this[_0x1951e2(0x1dd)][_0x1951e2(0x260)]);_0x212735=_0x1b5538[_0x1951e2(0x1dc)](_0x1951e2(0x21f),{'id':_0xc03dc4});}else _0x212735=_0x1b5538[_0x1951e2(0x1e7)](_0x37f116);_0x1b5538[_0x1951e2(0x279)](_0x212735,_0x46da6f),_0x3c1e67[_0x1951e2(0x1e8)]=_0x46da6f[_0x1951e2(0x28d)](_0x212735[_0x1951e2(0x292)]),_0x3c1e67[_0x1951e2(0x24b)]=_0x1b5538[_0x1951e2(0x1e0)](_0x3c1e67[_0x1951e2(0x24b)]?_0x3c1e67[_0x1951e2(0x24b)][_0x1951e2(0x26e)]:_0x46da6f,_0x3c1e67[_0x1951e2(0x1e8)]);}}});}),_0x187efa[_0x3c175f(0x1e5)](_0x3c175f(0x249))[_0x3c175f(0x231)]({'model':_0x3c175f(0x21f),'view':(_0x282562,{writer:_0x557518})=>this[_0x3c175f(0x223)](_0x282562,_0x557518)}),_0x187efa[_0x3c175f(0x1e5)](_0x3c175f(0x25a))[_0x3c175f(0x231)]({'model':_0x3c175f(0x21f),'view':(_0x30b5c3,{writer:_0x44972b,options:_0x4c6fa7})=>this[_0x3c175f(0x277)](_0x30b5c3,_0x44972b,_0x4c6fa7[_0x3c175f(0x1e9)])});}[_0x31fa99(0x223)](_0x405300,_0x222071){const _0x1bc939=_0x31fa99,{label:_0x284558,classes:_0x353136,status:_0x589fbc}=this[_0x1bc939(0x219)](_0x405300),_0x292889=this[_0x1bc939(0x28f)],_0x4adc59=this[_0x1bc939(0x1dd)];let _0x5ce83a;return _0x1bc939(0x27c)===this[_0x1bc939(0x28b)]?_0x5ce83a=_0x222071[_0x1bc939(0x1d8)](_0x1bc939(0x20e),{'class':_0x353136},[_0x222071[_0x1bc939(0x259)](_0x1bc939(0x20e),{'class':_0x1bc939(0x24c)},function(_0x2bc13b){const _0x208431=_0x1bc939,_0x4e0945=this[_0x208431(0x1e4)](_0x2bc13b);return _0x4e0945[_0x208431(0x255)]=_0x292889,_0x4e0945;}),_0x222071[_0x1bc939(0x1d8)](_0x1bc939(0x20e),{'class':_0x1bc939(0x1ea)},_0x222071[_0x1bc939(0x1e7)](String(_0x284558))),_0x222071[_0x1bc939(0x259)](_0x1bc939(0x20e),{'class':_0x1bc939(0x24c)},function(_0x20950b){const _0x359dee=_0x1bc939,_0x21d61c=this[_0x359dee(0x1e4)](_0x20950b);return _0x21d61c[_0x359dee(0x255)]=_0x4adc59,_0x21d61c;})]):_0x589fbc?(_0x5ce83a=_0x222071[_0x1bc939(0x1d8)](_0x1bc939(0x20e),{'class':_0x353136},[_0x222071[_0x1bc939(0x1e7)](String(_0x284558)),_0x222071[_0x1bc939(0x259)](_0x1bc939(0x20e),{'class':_0x1bc939(0x253)},function(_0x1d4f73){const _0x5e6c40=_0x1bc939,_0x2c01b8=this[_0x5e6c40(0x1e4)](_0x1d4f73),_0x5c9697=new _0x5e0b57();return _0x5c9697[_0x5e6c40(0x27e)]({'content':_0x2a1d10}),_0x5c9697[_0x5e6c40(0x266)](),_0x2c01b8[_0x5e6c40(0x26f)](_0x5c9697[_0x5e6c40(0x25f)]),_0x2c01b8;})]),_0x222071[_0x1bc939(0x228)](_0x1bc939(0x26a),_0x589fbc,_0x5ce83a)):_0x5ce83a=_0x222071[_0x1bc939(0x1d8)](_0x1bc939(0x20e),{'class':_0x353136},[_0x222071[_0x1bc939(0x1e7)](String(_0x284558))]),_0x222071[_0x1bc939(0x228)](_0x1bc939(0x21f),!0x0,_0x5ce83a),_0x3ba111(_0x5ce83a,_0x222071);}[_0x31fa99(0x219)](_0x555a5a){const _0x55c66c=_0x31fa99,_0x18f2f4=this[_0x55c66c(0x1de)][_0x55c66c(0x235)](_0x13261a=>_0x13261a['id']===_0x555a5a[_0x55c66c(0x1d7)]('id'));if(!_0x18f2f4)return _0x55c66c(0x27c)===this[_0x55c66c(0x28b)]?{'label':_0x555a5a[_0x55c66c(0x1d7)]('id'),'classes':_0x55c66c(0x23a)}:{'label':_0x555a5a[_0x55c66c(0x1d7)]('id'),'classes':_0x55c66c(0x285),'status':_0x55c66c(0x273)};const _0x31d800=this[_0x55c66c(0x242)](_0x18f2f4['id']),_0x30fe63=this[_0x55c66c(0x20b)](_0x555a5a[_0x55c66c(0x1d7)]('id'));if(_0x55c66c(0x27c)===this[_0x55c66c(0x28b)])return{'label':_0x31d800,'classes':_0x55c66c(0x23a)};if(_0x55c66c(0x22a)===this[_0x55c66c(0x28b)])return _0x30fe63?{'label':_0x30fe63,'classes':_0x55c66c(0x27f)}:{'label':_0x31d800,'classes':_0x55c66c(0x261),'status':_0x55c66c(0x214)};const _0x185108=this[_0x55c66c(0x246)][_0x55c66c(0x243)][_0x55c66c(0x206)](_0x55c66c(0x1d3))[_0x55c66c(0x235)](_0xaf3a15=>_0xaf3a15['id']===this[_0x55c66c(0x28b)])[_0x55c66c(0x1fa)][_0x18f2f4['id']];return _0x185108?{'label':_0x55c66c(0x282)==typeof _0x185108?_0x185108(this[_0x55c66c(0x246)]):_0x185108,'classes':_0x55c66c(0x27f)}:_0x30fe63?{'label':_0x30fe63,'classes':_0x55c66c(0x1fb),'status':_0x55c66c(0x276)}:{'label':_0x31d800,'classes':_0x55c66c(0x1f6),'status':_0x55c66c(0x202)};}[_0x31fa99(0x277)](_0x480894,_0x27fd33,_0x21ac76){const _0x4bf676=_0x31fa99,_0x5b715e=_0x480894[_0x4bf676(0x1d7)]('id'),_0x2144e8=_0x21ac76&&_0x21ac76[_0x5b715e]?_0x21ac76[_0x5b715e]:this[_0x4bf676(0x28f)]+_0x5b715e+this[_0x4bf676(0x1dd)],_0x123f1d=_0x27fd33[_0x4bf676(0x1e7)](_0x2144e8),_0x517ec2=_0x27fd33[_0x4bf676(0x1d8)](_0x4bf676(0x20e));return _0x27fd33[_0x4bf676(0x228)](_0x4bf676(0x234),!0x0,_0x517ec2),_0x27fd33[_0x4bf676(0x279)](_0x27fd33[_0x4bf676(0x28a)](_0x517ec2,0x0),_0x123f1d),_0x517ec2;}[_0x31fa99(0x1da)](){const _0xcf6235=_0x31fa99;this[_0xcf6235(0x1d5)][_0xcf6235(0x1eb)](_0x3662d8=>{const _0x54072b=_0xcf6235;_0x54072b(0x24e)!==_0x3662d8[_0x54072b(0x248)][_0x54072b(0x238)]&&this[_0x54072b(0x246)][_0x54072b(0x263)][_0x54072b(0x272)](_0x3662d8);});}[_0x31fa99(0x216)](_0x1557fc){const _0x2e4718=_0x31fa99;if(!this[_0x2e4718(0x252)][_0x2e4718(0x1f4)](_0x1557fc))throw new _0x23cd23(_0x2e4718(0x250),this,{'availablePreviewModes':this[_0x2e4718(0x252)],'previewMode':_0x1557fc});}[_0x31fa99(0x288)](){const _0x136273=_0x31fa99;for(const _0xcba7ab of this[_0x136273(0x246)][_0x136273(0x232)][_0x136273(0x290)][_0x136273(0x225)][_0x136273(0x28c)]({'includeChangesInGraveyard':!0x0})){if(_0x136273(0x279)!==_0xcba7ab[_0x136273(0x270)]||_0x136273(0x224)===_0xcba7ab[_0x136273(0x23e)])continue;if(_0x136273(0x21f)===_0xcba7ab[_0x136273(0x23e)]){this[_0x136273(0x1d5)][_0x136273(0x222)](_0xcba7ab[_0x136273(0x280)][_0x136273(0x24f)]);continue;}const _0x4cb216=this[_0x136273(0x246)][_0x136273(0x232)][_0x136273(0x22b)](_0xcba7ab[_0x136273(0x280)][_0x136273(0x24f)]);for(const _0x3cae6a of _0x4cb216[_0x136273(0x24d)]())_0x3cae6a['is'](_0x136273(0x25f),_0x136273(0x21f))&&this[_0x136273(0x1d5)][_0x136273(0x222)](_0x3cae6a);}}[_0x31fa99(0x25c)](){const _0x29fb7e=_0x31fa99,_0x5473f5=this[_0x29fb7e(0x246)];_0x5473f5[_0x29fb7e(0x232)][_0x29fb7e(0x290)][_0x29fb7e(0x230)](_0x2f33ba=>{const _0x3d3d0d=_0x29fb7e;if(!_0x2f33ba[_0x3d3d0d(0x241)][_0x3d3d0d(0x21a)])return!0x1;const _0x29bd8a=[],_0x2ac2b0=new Set(),_0x35b96c=this[_0x3d3d0d(0x201)];let _0x4b8896=!0x1;for(const _0x23f452 of _0x5473f5[_0x3d3d0d(0x232)][_0x3d3d0d(0x290)][_0x3d3d0d(0x225)][_0x3d3d0d(0x28c)]())if(_0x3d3d0d(0x279)===_0x23f452[_0x3d3d0d(0x270)]||_0x3d3d0d(0x1f0)===_0x23f452[_0x3d3d0d(0x270)]){let _0xc80803=_0x3d3d0d(0x224)==_0x23f452[_0x3d3d0d(0x23e)]?_0x23f452[_0x3d3d0d(0x280)][_0x3d3d0d(0x1e3)]:_0x23f452[_0x3d3d0d(0x280)][_0x3d3d0d(0x24f)];if(!_0xc80803)continue;_0xc80803['is'](_0x3d3d0d(0x224))&&(_0xc80803=_0xc80803[_0x3d3d0d(0x1e3)]),_0x3438e2(_0xc80803);}for(const _0x5f2dc4 of _0x29bd8a[_0x3d3d0d(0x27b)]()){const {match:_0x459c7f,item:_0x5ebb88}=_0x5f2dc4,_0x1763e0=_0x2f33ba[_0x3d3d0d(0x28a)](_0x5ebb88,_0x459c7f[_0x3d3d0d(0x281)]),_0x35726c=_0x1763e0[_0x3d3d0d(0x28d)](_0x459c7f[0x0][_0x3d3d0d(0x260)]),_0x58d096=_0x2f33ba[_0x3d3d0d(0x1e0)](_0x1763e0,_0x35726c),_0x3fe9fe=_0x459c7f[0x0],_0x4b7120=_0x3fe9fe[_0x3d3d0d(0x239)](this[_0x3d3d0d(0x28f)][_0x3d3d0d(0x260)],_0x3fe9fe[_0x3d3d0d(0x260)]-this[_0x3d3d0d(0x1dd)][_0x3d3d0d(0x260)]),_0x272dbb=_0x3bcb75(_0x58d096);_0x272dbb[_0x3d3d0d(0x27e)]('id',_0x4b7120);const _0x11ff84=_0x2f33ba[_0x3d3d0d(0x1dc)](_0x3d3d0d(0x21f),_0x272dbb);_0x5473f5[_0x3d3d0d(0x232)][_0x3d3d0d(0x1d1)][_0x3d3d0d(0x278)](_0x58d096[_0x3d3d0d(0x26e)],_0x3d3d0d(0x21f))?_0x5473f5[_0x3d3d0d(0x232)][_0x3d3d0d(0x220)](_0x11ff84,_0x58d096):_0x2f33ba[_0x3d3d0d(0x1f0)](_0x58d096),_0x4b8896=!0x0;}return _0x4b8896;function _0x3438e2(_0x4c8fc0){const _0x4c272a=_0x3d3d0d;let _0x2186e1='',_0x20088e=0x0;if(!_0x2ac2b0[_0x4c272a(0x26c)](_0x4c8fc0))for(const _0x241df7 of _0x4c8fc0[_0x4c272a(0x1db)]()){const _0x184388=_0x241df7[_0x4c272a(0x1f9)];if(_0x241df7['is'](_0x4c272a(0x224))&&(''===_0x2186e1&&_0x241df7[_0x4c272a(0x264)]&&(_0x20088e=_0x241df7[_0x4c272a(0x264)]),_0x2186e1+=_0x241df7[_0x4c272a(0x1df)]),!_0x184388||_0x184388['is'](_0x4c272a(0x25f))){for(const _0x4b2756 of _0x2186e1[_0x4c272a(0x21c)](_0x35b96c))_0x4b2756[_0x4c272a(0x281)]=_0x4b2756[_0x4c272a(0x281)]+_0x20088e,_0x29bd8a[_0x4c272a(0x291)]({'match':_0x4b2756,'item':_0x4c8fc0});_0x2ac2b0[_0x4c272a(0x222)](_0x4c8fc0),_0x2186e1='';}_0x241df7['is'](_0x4c272a(0x25f))&&_0x3438e2(_0x241df7);}}function _0x3bcb75(_0x53560e){const _0x3724e3=_0x3d3d0d,_0x2d5af6=_0x53560e[_0x3724e3(0x24d)](),_0x34daea=_0x2d5af6[_0x3724e3(0x207)]()[_0x3724e3(0x25b)],_0x14758b=new Map(_0x34daea[_0x3724e3(0x213)]());for(const _0x4c7ddc of _0x2d5af6)for(const [_0x4e58e2,_0x283651]of _0x14758b)_0x4c7ddc[_0x3724e3(0x1d7)](_0x4e58e2)!==_0x283651&&_0x14758b[_0x3724e3(0x21e)](_0x4e58e2);return _0x14758b;}});}[_0x31fa99(0x25e)](_0x4c3390){return{'id':_0x4c3390};}}
|
|
23
|
+
const _0x4a3446=_0x2b74;(function(_0x462240,_0x27417e){const _0x4a24e9=_0x2b74,_0xa47206=_0x462240();while(!![]){try{const _0x219dc8=parseInt(_0x4a24e9(0x163))/0x1*(parseInt(_0x4a24e9(0x130))/0x2)+parseInt(_0x4a24e9(0x16e))/0x3+parseInt(_0x4a24e9(0x1ad))/0x4*(-parseInt(_0x4a24e9(0x112))/0x5)+-parseInt(_0x4a24e9(0x1c4))/0x6+parseInt(_0x4a24e9(0x160))/0x7+parseInt(_0x4a24e9(0x19a))/0x8*(-parseInt(_0x4a24e9(0x145))/0x9)+parseInt(_0x4a24e9(0x166))/0xa;if(_0x219dc8===_0x27417e)break;else _0xa47206['push'](_0xa47206['shift']());}catch(_0x15b2b9){_0xa47206['push'](_0xa47206['shift']());}}}(_0xb54f,0xc54a0));import{toWidget as _0x1090bd,viewToModelPositionOutsideModelElement as _0x1bef2d}from'ckeditor5/src/widget.js';import{Plugin as _0x300e86}from'ckeditor5/src/core.js';import{IconView as _0x1e200d}from'ckeditor5/src/ui.js';function _0xb54f(){const _0x437c86=['56347MkzZWg','getDefaultValues','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20format\x20painter\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','2703020qhmTHc','hasClass','define','merge-fields-duplicate-group-id','next','mergeFields.prefix','label','$labels','1762440kLszhD','pluginName','rootName','getShiftedBy','reverse','merge-fields-invalid-id','editing','createUIElement','view','$text','_createTextualMergeField','setCustomProperty','_licenseKeyCheckInterval','element','mergeFieldsLicenseKeyInvalid','ck-merge-field__content','_validateConfig','text','from','getDataSetValues','merge-fields-duplicate-data-set-id','_mergeFieldElements','find','forEach','change:previewMode','match','register','schema','mergeFields.suffix','dataPipeline:transparentRendering','WARNING_MISSING_DATA','\x20]+','merge-fields-invalid-preview-mode-set','_validatePreviewMode','root','differ','has','config','includes','slice','flattenedMergeFieldDefinitions','ck-merge-field','mergeFields.previewModes','getChanges','3427096uxamru','insertObject','modelRange','ck-merge-field\x20ck-merge-field_with-value','WARNING_MISSING_DATA_USED_DEFAULT_VALUE','getAttribute','index','nextSibling','ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-data','getLabel','insert','type','delete','reconvertItem','parent','_defineSchema','concat','elementToElement','batch','18864UrfrRD','createPositionAt','commands','startOffset','definitions','getDefinition','_mergeFieldPrefix','listenTo','previewMode','getItems','checkChild','change:data','value','matchAll','function','viewToModelPosition','licenseKey','merge-fields-invalid-license-key','dataDowncast','ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_default-value-used','document','modelCursor','editingDowncast','6305526SuHqoD','ck-merge-field__affix','_getAvailablePreviewModes','domConverter','mergeFields.initialPreviewMode','innerHTML','merge-fields-trial-license-key-reached-limit-changes','ck-merge-field__icon','getMergeFieldsIds','WARNING_MISSING_DEFINITION','mapper','defaultValue','bind','toDomElement','get','push','755EsirJy','createRange','WARNING_MISSING_DEFAULT_VALUE','consume','mergeField','registerPostFixer','merge-fields-invalid-prefix-or-suffix','join','every','getMergeFieldDefaultValue','split','conversion','mergeFieldsLicenseKeyTrialLimit:operations','groupId','registerInlineObjectMatcher','span','start','_refreshMergeFields','createElement','$graveyard','model','previewMergeFields','$inlineObject','_registerConversionPostFixer','merge-fields-prefix-and-suffix-must-differ','data','editor','getChildren','MergeFieldsEditing','map','26FNdFQp','mergeFieldStatus','init','render','mergeFieldsData','_defineConverters','createRangeIn','mergeFieldsLicenseKeyValid','info','ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_no-default','_createMergeFieldWidget','filter','mergeFields.definitions','_trackAddedMergeFields','createText','ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-definition','nodeAfter','upcast','createContainerElement','_mergeFieldSuffix','insertMergeField','9NgiMye','_prepareViewElementData','values','getDocumentMergeFieldsIds','reduce','mergeFieldsLicenseKeyTrial','isLocal','add','getMergeFieldValue','set','name','test','mergeFields.dataSets','merge-fields-invalid-preview-modes-configuration','_mergeFieldRegExp','for','appendChild','$defaultValues','length','position','merge-fields-duplicate-merge-field-id','availablePreviewModes','$dataSets','remove','offsetSize','merge-fields-data-set-not-found','destroy','9864589NSCnqa','getAttributes','_getFlattenedMergeFieldDefinitions'];_0xb54f=function(){return _0x437c86;};return _0xb54f();}import{isParagraphable as _0x226bdf,wrapInParagraph as _0x5df122}from'ckeditor5/src/engine.js';import{CKEditorError as _0x54dcda}from'ckeditor5/src/utils.js';function _0x2b74(_0x2eb1c7,_0x3fdf3f){const _0xb54f15=_0xb54f();return _0x2b74=function(_0x2b7458,_0xabaa19){_0x2b7458=_0x2b7458-0x10b;let _0x476148=_0xb54f15[_0x2b7458];return _0x476148;},_0x2b74(_0x2eb1c7,_0x3fdf3f);}import _0x41e464 from'./insertmergefieldcommand.js';import _0x197cc7 from'./previewmergefieldscommand.js';import _0xc4a07a from'../theme/icons/warning.svg';export default class s extends _0x300e86{static get[_0x4a3446(0x16f)](){const _0x32e35d=_0x4a3446;return _0x32e35d(0x12e);}constructor(_0x13c718){const _0x2f727e=_0x4a3446;super(_0x13c718),this[_0x2f727e(0x196)]=[],_0x13c718[_0x2f727e(0x193)][_0x2f727e(0x168)](_0x2f727e(0x198),[_0x2f727e(0x16d),_0x2f727e(0x156),_0x2f727e(0x15b)]),_0x13c718[_0x2f727e(0x193)][_0x2f727e(0x168)](_0x2f727e(0x151),[]),_0x13c718[_0x2f727e(0x193)][_0x2f727e(0x168)](_0x2f727e(0x13c),[]),_0x13c718[_0x2f727e(0x193)][_0x2f727e(0x168)](_0x2f727e(0x16b),'{{'),_0x13c718[_0x2f727e(0x193)][_0x2f727e(0x168)](_0x2f727e(0x18a),'}}'),this[_0x2f727e(0x1b3)]=_0x13c718[_0x2f727e(0x193)][_0x2f727e(0x110)](_0x2f727e(0x16b)),this[_0x2f727e(0x143)]=_0x13c718[_0x2f727e(0x193)][_0x2f727e(0x110)](_0x2f727e(0x18a)),this[_0x2f727e(0x196)]=this[_0x2f727e(0x162)](),this[_0x2f727e(0x17e)]();const _0x1cf662='\x5c'+this[_0x2f727e(0x1b3)][_0x2f727e(0x11c)]('')[_0x2f727e(0x119)]('\x5c'),_0x3f9af8='\x5c'+this[_0x2f727e(0x143)][_0x2f727e(0x11c)]('')[_0x2f727e(0x119)]('\x5c');this[_0x2f727e(0x153)]=new RegExp('('+_0x1cf662+'[^'+(_0x1cf662+_0x3f9af8)+_0x2f727e(0x18d)+_0x3f9af8+')','g'),this[_0x2f727e(0x15a)]=this[_0x2f727e(0x1c6)]();const _0x500d95=_0x13c718[_0x2f727e(0x193)][_0x2f727e(0x110)](_0x2f727e(0x1c8))||this[_0x2f727e(0x15a)][0x0];this[_0x2f727e(0x18f)](_0x500d95),this[_0x2f727e(0x14e)](_0x2f727e(0x1b5),_0x500d95),this[_0x2f727e(0x183)]=new Set(),this[_0x2f727e(0x17a)]=null;}[_0x4a3446(0x132)](){const _0x21fb3e=_0x4a3446,_0x102b54=this[_0x21fb3e(0x12c)];_0x102b54[_0x21fb3e(0x1af)][_0x21fb3e(0x14c)](_0x21fb3e(0x144),new _0x41e464(_0x102b54)),_0x102b54[_0x21fb3e(0x1af)][_0x21fb3e(0x14c)](_0x21fb3e(0x127),new _0x197cc7(_0x102b54)),this[_0x21fb3e(0x1a9)](),this[_0x21fb3e(0x135)](),this['on'](_0x21fb3e(0x186),(_0x41d372,_0x648c98,_0x5d80db)=>{const _0x3fd253=_0x21fb3e;this[_0x3fd253(0x18f)](_0x5d80db),this[_0x3fd253(0x123)]();}),this[_0x21fb3e(0x1b4)](_0x102b54[_0x21fb3e(0x126)][_0x21fb3e(0x1c1)],_0x21fb3e(0x1b8),()=>{const _0x1ee3b1=_0x21fb3e;this[_0x1ee3b1(0x13d)]();}),_0x102b54[_0x21fb3e(0x174)][_0x21fb3e(0x10c)]['on'](_0x21fb3e(0x1bc),_0x1bef2d(_0x102b54[_0x21fb3e(0x126)],_0x220732=>_0x220732[_0x21fb3e(0x167)](_0x21fb3e(0x197)))),this[_0x21fb3e(0x129)](),_0x102b54[_0x21fb3e(0x174)][_0x21fb3e(0x176)][_0x21fb3e(0x1c7)][_0x21fb3e(0x120)]({'name':_0x21fb3e(0x121),'classes':[_0x21fb3e(0x197)]}),this[_0x21fb3e(0x1bd)]=_0x102b54[_0x21fb3e(0x193)][_0x21fb3e(0x110)](_0x21fb3e(0x1bd));const _0x5caebc=this[_0x21fb3e(0x12c)];this[_0x21fb3e(0x17a)]=setInterval(()=>{const _0x52e1e5=_0x21fb3e;let _0x344c93;for(const _0x3ba891 in _0x5caebc){const _0x213799=_0x3ba891,_0x51b4da=_0x5caebc[_0x213799];if(_0x52e1e5(0x14a)===_0x51b4da||_0x52e1e5(0x17c)===_0x51b4da||_0x52e1e5(0x137)===_0x51b4da||_0x52e1e5(0x11e)===_0x51b4da){delete _0x5caebc[_0x213799],_0x344c93=_0x51b4da;break;}}if(_0x52e1e5(0x17c)===_0x344c93)throw clearInterval(this[_0x52e1e5(0x17a)]),new _0x54dcda(_0x52e1e5(0x1be),null);if(_0x52e1e5(0x14a)===_0x344c93&&console[_0x52e1e5(0x138)](_0x52e1e5(0x165)),_0x52e1e5(0x11e)===_0x344c93)throw clearInterval(this[_0x52e1e5(0x17a)]),new _0x54dcda(_0x52e1e5(0x1ca),null);_0x52e1e5(0x137)===_0x344c93&&clearInterval(this[_0x52e1e5(0x17a)]);},0x3e8);}[_0x4a3446(0x164)](){const _0x5304c7=_0x4a3446,_0x16b91f={},_0x280d89=this[_0x5304c7(0x1cc)]();for(const _0x34176a of _0x280d89)_0x16b91f[_0x34176a]=this[_0x5304c7(0x11b)](_0x34176a);return _0x16b91f;}[_0x4a3446(0x181)](_0x25b3f3,_0x2c99a5=!0x1){const _0x4d72e1=_0x4a3446,_0x2f5338={},_0x1421a7=this[_0x4d72e1(0x1cc)]();for(const _0x4b6eb7 of _0x1421a7){let _0x22312e=this[_0x4d72e1(0x14d)](_0x4b6eb7,_0x25b3f3);null===_0x22312e&&_0x2c99a5&&(_0x22312e=this[_0x4d72e1(0x11b)](_0x4b6eb7)),_0x2f5338[_0x4b6eb7]=_0x22312e;}return _0x2f5338;}[_0x4a3446(0x1a3)](_0x4205df){const _0x18080b=_0x4a3446,_0x2eb19b=this[_0x18080b(0x1b2)](_0x4205df);return _0x2eb19b&&_0x2eb19b[_0x18080b(0x16c)]?_0x2eb19b[_0x18080b(0x16c)]:_0x4205df;}[_0x4a3446(0x11b)](_0x4e9c4f){const _0x4e2b84=_0x4a3446,_0x7d30cb=this[_0x4e2b84(0x1b2)](_0x4e9c4f);if(!_0x7d30cb||void 0x0===_0x7d30cb[_0x4e2b84(0x10d)])return null;const _0x355170=_0x4e2b84(0x1bb)==typeof _0x7d30cb[_0x4e2b84(0x10d)]?_0x7d30cb[_0x4e2b84(0x10d)](this[_0x4e2b84(0x12c)]):_0x7d30cb[_0x4e2b84(0x10d)];return String(_0x355170);}[_0x4a3446(0x14d)](_0x52831d,_0x351cd4){const _0x12a123=_0x4a3446,_0x36f451=this[_0x12a123(0x12c)][_0x12a123(0x193)][_0x12a123(0x110)](_0x12a123(0x151))[_0x12a123(0x184)](_0x33e7d3=>_0x33e7d3['id']===_0x351cd4);if(!_0x36f451)throw new _0x54dcda(_0x12a123(0x15e),null);const _0x1422a0=_0x36f451[_0x12a123(0x147)][_0x52831d];if(void 0x0===_0x1422a0)return null;const _0x46cdce=_0x12a123(0x1bb)==typeof _0x1422a0?_0x1422a0(this[_0x12a123(0x12c)]):_0x1422a0;return String(_0x46cdce);}[_0x4a3446(0x148)](){const _0x581e97=_0x4a3446,_0x3f25d0=new Set();for(const _0x268f58 of this[_0x581e97(0x183)])_0x581e97(0x125)!==_0x268f58[_0x581e97(0x190)][_0x581e97(0x170)]&&_0x3f25d0[_0x581e97(0x14c)](_0x268f58[_0x581e97(0x19f)]('id'));return Array[_0x581e97(0x180)](_0x3f25d0);}[_0x4a3446(0x1cc)](){const _0x8b0a09=_0x4a3446,_0x1621ba=this[_0x8b0a09(0x196)][_0x8b0a09(0x12f)](_0x6a523=>_0x6a523['id']),_0x45f2d8=this[_0x8b0a09(0x148)]();return Array[_0x8b0a09(0x180)](new Set([..._0x1621ba,..._0x45f2d8]));}[_0x4a3446(0x1b2)](_0xf8fd4f){const _0x236acd=_0x4a3446;return this[_0x236acd(0x196)][_0x236acd(0x184)](_0xa42bef=>_0xa42bef['id']===_0xf8fd4f)||null;}[_0x4a3446(0x15f)](){const _0x464784=_0x4a3446;this[_0x464784(0x17a)]&&clearInterval(this[_0x464784(0x17a)]);}[_0x4a3446(0x162)](){const _0xa7f066=_0x4a3446,_0x403bbf=new Set(),_0x2cb534=this[_0xa7f066(0x12c)];return _0x2cb534[_0xa7f066(0x193)][_0xa7f066(0x110)](_0xa7f066(0x13c))[_0xa7f066(0x149)]((_0x1a9a09,_0xc9fd3d)=>{const _0x300d29=_0xa7f066;if(_0x300d29(0x11f)in _0xc9fd3d){if(_0x403bbf[_0x300d29(0x192)](_0xc9fd3d[_0x300d29(0x11f)]))throw new _0x54dcda(_0x300d29(0x169),_0x2cb534,{'duplicateId':_0xc9fd3d[_0x300d29(0x11f)]});_0x403bbf[_0x300d29(0x14c)](_0xc9fd3d[_0x300d29(0x11f)]);}return _0x300d29(0x11f)in _0xc9fd3d?function(_0x1e1b79,_0x2bcade){const _0x43af5c=_0x300d29;for(const _0x18a864 of _0x2bcade[_0x43af5c(0x1b1)])_0x1e1b79=_0x1e1b79[_0x43af5c(0x1aa)](_0x18a864);return _0x1e1b79;}[_0x300d29(0x10e)](_0x2cb534)(_0x1a9a09,_0xc9fd3d):_0x1a9a09[_0x300d29(0x1aa)](_0xc9fd3d);},new Array());}[_0x4a3446(0x17e)](){const _0x1a5cbf=_0x4a3446,_0x4f440f=/^['"`!#%:;=@{}~$()*+/?[\\\]^|]+$/;if(!_0x4f440f[_0x1a5cbf(0x150)](this[_0x1a5cbf(0x1b3)])||!_0x4f440f[_0x1a5cbf(0x150)](this[_0x1a5cbf(0x143)]))throw new _0x54dcda(_0x1a5cbf(0x118),this,{'prefix':this[_0x1a5cbf(0x1b3)],'suffix':this[_0x1a5cbf(0x143)]});const _0x14a021=/^[a-zA-Z0-9_.-]+$/,_0x22558e=new Set();if(this[_0x1a5cbf(0x196)][_0x1a5cbf(0x12f)](_0x19b649=>{const _0x208df5=_0x1a5cbf;if(!_0x14a021[_0x208df5(0x150)](_0x19b649['id']))throw new _0x54dcda(_0x208df5(0x173),this,{'incorrectId':_0x19b649['id']});if(_0x22558e[_0x208df5(0x192)](_0x19b649['id']))throw new _0x54dcda(_0x208df5(0x159),this,{'duplicateId':_0x19b649['id']});_0x22558e[_0x208df5(0x14c)](_0x19b649['id']);}),this[_0x1a5cbf(0x1b3)]===this[_0x1a5cbf(0x143)])throw new _0x54dcda(_0x1a5cbf(0x12a),this);const _0x12fe38=this[_0x1a5cbf(0x12c)][_0x1a5cbf(0x193)][_0x1a5cbf(0x110)](_0x1a5cbf(0x198)),_0x7c5a9=[_0x1a5cbf(0x16d),_0x1a5cbf(0x156),_0x1a5cbf(0x15b)];if(!_0x12fe38[_0x1a5cbf(0x157)]||!_0x12fe38[_0x1a5cbf(0x11a)](_0x3c9dbe=>_0x7c5a9[_0x1a5cbf(0x194)](_0x3c9dbe)))throw new _0x54dcda(_0x1a5cbf(0x152),this,{'invalidConfig':_0x12fe38});const _0x2094a6=new Set(),_0x2918ba=this[_0x1a5cbf(0x12c)][_0x1a5cbf(0x193)][_0x1a5cbf(0x110)](_0x1a5cbf(0x151));for(const _0x856000 of _0x2918ba){if(_0x2094a6[_0x1a5cbf(0x192)](_0x856000['id']))throw new _0x54dcda(_0x1a5cbf(0x182),this,{'duplicateId':_0x856000['id']});_0x2094a6[_0x1a5cbf(0x14c)](_0x856000['id']);}}[_0x4a3446(0x1c6)](){const _0x4fbdf2=_0x4a3446,_0x2f0076=this[_0x4fbdf2(0x12c)][_0x4fbdf2(0x193)][_0x4fbdf2(0x110)](_0x4fbdf2(0x198)),_0x5302da=[];if(_0x2f0076[_0x4fbdf2(0x194)](_0x4fbdf2(0x16d))&&_0x5302da[_0x4fbdf2(0x111)](_0x4fbdf2(0x16d)),_0x2f0076[_0x4fbdf2(0x194)](_0x4fbdf2(0x156))&&_0x5302da[_0x4fbdf2(0x111)](_0x4fbdf2(0x156)),_0x2f0076[_0x4fbdf2(0x194)](_0x4fbdf2(0x15b))){const _0x178415=this[_0x4fbdf2(0x12c)][_0x4fbdf2(0x193)][_0x4fbdf2(0x110)](_0x4fbdf2(0x151));_0x5302da[_0x4fbdf2(0x111)](..._0x178415[_0x4fbdf2(0x12f)](_0x2b50e2=>_0x2b50e2['id']));}return _0x5302da;}[_0x4a3446(0x1a9)](){const _0x38c79c=_0x4a3446;this[_0x38c79c(0x12c)][_0x38c79c(0x126)][_0x38c79c(0x189)][_0x38c79c(0x188)](_0x38c79c(0x116),{'inheritAllFrom':_0x38c79c(0x128),'allowAttributes':['id'],'allowWhere':_0x38c79c(0x177)});}[_0x4a3446(0x135)](){const _0x473ec1=_0x4a3446,_0x30bfb=this[_0x473ec1(0x12c)][_0x473ec1(0x11d)];_0x30bfb[_0x473ec1(0x154)](_0x473ec1(0x141))[_0x473ec1(0x14c)](_0x31b766=>{const _0x2e928b=_0x473ec1;_0x31b766['on'](_0x2e928b(0x17f),(_0x3bdd63,_0x2404de,_0x15ffd0)=>{const _0x4711b0=_0x2e928b,{consumable:_0x2db66f,writer:_0x49e04f,schema:_0x372133}=_0x15ffd0,{viewItem:_0x236a73}=_0x2404de;if(!_0x2db66f[_0x4711b0(0x150)](_0x236a73))return;const _0x3ae3ee=_0x236a73[_0x4711b0(0x12b)][_0x4711b0(0x11c)](this[_0x4711b0(0x153)])[_0x4711b0(0x13b)](_0x3e8e78=>_0x3e8e78);if(0x1!==_0x3ae3ee[_0x4711b0(0x157)]||_0x3ae3ee[0x0][_0x4711b0(0x187)](this[_0x4711b0(0x153)])){if(!_0x372133[_0x4711b0(0x1b7)](_0x2404de[_0x4711b0(0x1c2)],_0x4711b0(0x177))){if(!_0x226bdf(_0x2404de[_0x4711b0(0x1c2)],_0x4711b0(0x177),_0x372133))return;_0x2404de[_0x4711b0(0x1c2)]=_0x5df122(_0x2404de[_0x4711b0(0x1c2)],_0x49e04f);}_0x2db66f[_0x4711b0(0x115)](_0x236a73);for(const _0xe4acb4 of _0x3ae3ee){const _0x286331=_0x2404de[_0x4711b0(0x1c2)];let _0x5d9ca3;if(_0xe4acb4[_0x4711b0(0x187)](this[_0x4711b0(0x153)])){const _0x9e4027=_0xe4acb4[_0x4711b0(0x195)](this[_0x4711b0(0x1b3)][_0x4711b0(0x157)],_0xe4acb4[_0x4711b0(0x157)]-this[_0x4711b0(0x143)][_0x4711b0(0x157)]);_0x5d9ca3=_0x49e04f[_0x4711b0(0x124)](_0x4711b0(0x116),{'id':_0x9e4027});}else _0x5d9ca3=_0x49e04f[_0x4711b0(0x13e)](_0xe4acb4);_0x49e04f[_0x4711b0(0x1a4)](_0x5d9ca3,_0x286331),_0x2404de[_0x4711b0(0x1c2)]=_0x286331[_0x4711b0(0x171)](_0x5d9ca3[_0x4711b0(0x15d)]),_0x2404de[_0x4711b0(0x19c)]=_0x49e04f[_0x4711b0(0x113)](_0x2404de[_0x4711b0(0x19c)]?_0x2404de[_0x4711b0(0x19c)][_0x4711b0(0x122)]:_0x286331,_0x2404de[_0x4711b0(0x1c2)]);}}});}),_0x30bfb[_0x473ec1(0x154)](_0x473ec1(0x1c3))[_0x473ec1(0x1ab)]({'model':_0x473ec1(0x116),'view':(_0x2edaef,{writer:_0x12fa08})=>this[_0x473ec1(0x13a)](_0x2edaef,_0x12fa08)}),_0x30bfb[_0x473ec1(0x154)](_0x473ec1(0x1bf))[_0x473ec1(0x1ab)]({'model':_0x473ec1(0x116),'view':(_0x297fc2,{writer:_0x2949f3,options:_0x365791})=>this[_0x473ec1(0x178)](_0x297fc2,_0x2949f3,_0x365791[_0x473ec1(0x134)])});}[_0x4a3446(0x13a)](_0x37a759,_0x4dac27){const _0x2d8bf4=_0x4a3446,{label:_0x181627,classes:_0x4b8b8c,status:_0x3ba9b2}=this[_0x2d8bf4(0x146)](_0x37a759),_0x5c88d0=this[_0x2d8bf4(0x1b3)],_0x52559c=this[_0x2d8bf4(0x143)];let _0x22f395;return _0x2d8bf4(0x16d)===this[_0x2d8bf4(0x1b5)]?_0x22f395=_0x4dac27[_0x2d8bf4(0x142)](_0x2d8bf4(0x121),{'class':_0x4b8b8c},[_0x4dac27[_0x2d8bf4(0x175)](_0x2d8bf4(0x121),{'class':_0x2d8bf4(0x1c5)},function(_0x1c34b1){const _0x424fb4=_0x2d8bf4,_0xdb64e5=this[_0x424fb4(0x10f)](_0x1c34b1);return _0xdb64e5[_0x424fb4(0x1c9)]=_0x5c88d0,_0xdb64e5;}),_0x4dac27[_0x2d8bf4(0x142)](_0x2d8bf4(0x121),{'class':_0x2d8bf4(0x17d)},_0x4dac27[_0x2d8bf4(0x13e)](String(_0x181627))),_0x4dac27[_0x2d8bf4(0x175)](_0x2d8bf4(0x121),{'class':_0x2d8bf4(0x1c5)},function(_0x25d4ff){const _0x2b0785=_0x2d8bf4,_0x2d9acf=this[_0x2b0785(0x10f)](_0x25d4ff);return _0x2d9acf[_0x2b0785(0x1c9)]=_0x52559c,_0x2d9acf;})]):_0x3ba9b2?(_0x22f395=_0x4dac27[_0x2d8bf4(0x142)](_0x2d8bf4(0x121),{'class':_0x4b8b8c},[_0x4dac27[_0x2d8bf4(0x13e)](String(_0x181627)),_0x4dac27[_0x2d8bf4(0x175)](_0x2d8bf4(0x121),{'class':_0x2d8bf4(0x1cb)},function(_0x11f36d){const _0x344da0=_0x2d8bf4,_0x5c440c=this[_0x344da0(0x10f)](_0x11f36d),_0x5e823e=new _0x1e200d();return _0x5e823e[_0x344da0(0x14e)]({'content':_0xc4a07a}),_0x5e823e[_0x344da0(0x133)](),_0x5c440c[_0x344da0(0x155)](_0x5e823e[_0x344da0(0x17b)]),_0x5c440c;})]),_0x4dac27[_0x2d8bf4(0x179)](_0x2d8bf4(0x131),_0x3ba9b2,_0x22f395)):_0x22f395=_0x4dac27[_0x2d8bf4(0x142)](_0x2d8bf4(0x121),{'class':_0x4b8b8c},[_0x4dac27[_0x2d8bf4(0x13e)](String(_0x181627))]),_0x4dac27[_0x2d8bf4(0x179)](_0x2d8bf4(0x116),!0x0,_0x22f395),_0x1090bd(_0x22f395,_0x4dac27);}[_0x4a3446(0x146)](_0x4ff356){const _0x4e0eef=_0x4a3446,_0x43709c=this[_0x4e0eef(0x1b2)](_0x4ff356[_0x4e0eef(0x19f)]('id'));if(!_0x43709c)return _0x4e0eef(0x16d)===this[_0x4e0eef(0x1b5)]?{'label':_0x4ff356[_0x4e0eef(0x19f)]('id'),'classes':_0x4e0eef(0x197)}:{'label':_0x4ff356[_0x4e0eef(0x19f)]('id'),'classes':_0x4e0eef(0x13f),'status':_0x4e0eef(0x10b)};const _0x35de14=this[_0x4e0eef(0x1a3)](_0x43709c['id']),_0x447fe1=this[_0x4e0eef(0x11b)](_0x4ff356[_0x4e0eef(0x19f)]('id'));if(_0x4e0eef(0x16d)===this[_0x4e0eef(0x1b5)])return{'label':_0x35de14,'classes':_0x4e0eef(0x197)};if(_0x4e0eef(0x156)===this[_0x4e0eef(0x1b5)])return _0x447fe1?{'label':_0x447fe1,'classes':_0x4e0eef(0x19d)}:{'label':_0x35de14,'classes':_0x4e0eef(0x139),'status':_0x4e0eef(0x114)};const _0x4db694=this[_0x4e0eef(0x14d)](_0x43709c['id'],this[_0x4e0eef(0x1b5)]);return _0x4db694?{'label':_0x4db694,'classes':_0x4e0eef(0x19d)}:_0x447fe1?{'label':_0x447fe1,'classes':_0x4e0eef(0x1c0),'status':_0x4e0eef(0x19e)}:{'label':_0x35de14,'classes':_0x4e0eef(0x1a2),'status':_0x4e0eef(0x18c)};}[_0x4a3446(0x178)](_0x33dce3,_0xf8efef,_0x55abe8){const _0x544be0=_0x4a3446,_0x360cbd=_0x33dce3[_0x544be0(0x19f)]('id'),_0x583522=_0x55abe8&&_0x55abe8[_0x360cbd]?_0x55abe8[_0x360cbd]:this[_0x544be0(0x1b3)]+_0x360cbd+this[_0x544be0(0x143)],_0x155f40=_0xf8efef[_0x544be0(0x13e)](String(_0x583522)),_0x5782a5=_0xf8efef[_0x544be0(0x142)](_0x544be0(0x121));return _0xf8efef[_0x544be0(0x179)](_0x544be0(0x18b),!0x0,_0x5782a5),_0xf8efef[_0x544be0(0x1a4)](_0xf8efef[_0x544be0(0x1ae)](_0x5782a5,0x0),_0x155f40),_0x5782a5;}[_0x4a3446(0x123)](){const _0x3ad6fe=_0x4a3446;this[_0x3ad6fe(0x183)][_0x3ad6fe(0x185)](_0x4b5bfe=>{const _0x256a31=_0x3ad6fe;_0x256a31(0x125)!==_0x4b5bfe[_0x256a31(0x190)][_0x256a31(0x170)]&&this[_0x256a31(0x12c)][_0x256a31(0x174)][_0x256a31(0x1a7)](_0x4b5bfe);});}[_0x4a3446(0x18f)](_0x30d9c6){const _0x2747ab=_0x4a3446;if(!this[_0x2747ab(0x15a)][_0x2747ab(0x194)](_0x30d9c6))throw new _0x54dcda(_0x2747ab(0x18e),this,{'availablePreviewModes':this[_0x2747ab(0x15a)],'previewMode':_0x30d9c6});}[_0x4a3446(0x13d)](){const _0x14ebcb=_0x4a3446;for(const _0x5d87f2 of this[_0x14ebcb(0x12c)][_0x14ebcb(0x126)][_0x14ebcb(0x1c1)][_0x14ebcb(0x191)][_0x14ebcb(0x199)]({'includeChangesInGraveyard':!0x0})){if(_0x14ebcb(0x1a4)!==_0x5d87f2[_0x14ebcb(0x1a5)]||_0x14ebcb(0x177)===_0x5d87f2[_0x14ebcb(0x14f)])continue;if(_0x14ebcb(0x116)===_0x5d87f2[_0x14ebcb(0x14f)]){this[_0x14ebcb(0x183)][_0x14ebcb(0x14c)](_0x5d87f2[_0x14ebcb(0x158)][_0x14ebcb(0x140)]);continue;}const _0x5799d0=this[_0x14ebcb(0x12c)][_0x14ebcb(0x126)][_0x14ebcb(0x136)](_0x5d87f2[_0x14ebcb(0x158)][_0x14ebcb(0x140)]);for(const _0x1a86c4 of _0x5799d0[_0x14ebcb(0x1b6)]())_0x1a86c4['is'](_0x14ebcb(0x17b),_0x14ebcb(0x116))&&this[_0x14ebcb(0x183)][_0x14ebcb(0x14c)](_0x1a86c4);}}[_0x4a3446(0x129)](){const _0x2c95ee=_0x4a3446,_0x2022a=this[_0x2c95ee(0x12c)];_0x2022a[_0x2c95ee(0x126)][_0x2c95ee(0x1c1)][_0x2c95ee(0x117)](_0x4a7805=>{const _0x32127e=_0x2c95ee;if(!_0x4a7805[_0x32127e(0x1ac)][_0x32127e(0x14b)])return!0x1;const _0x237bd5=[],_0x5f0f06=new Set(),_0x251c01=this[_0x32127e(0x153)];let _0x4c0cab=!0x1;for(const _0x551244 of _0x2022a[_0x32127e(0x126)][_0x32127e(0x1c1)][_0x32127e(0x191)][_0x32127e(0x199)]())if(_0x32127e(0x1a4)===_0x551244[_0x32127e(0x1a5)]||_0x32127e(0x15c)===_0x551244[_0x32127e(0x1a5)]){let _0x54df0c=_0x32127e(0x177)==_0x551244[_0x32127e(0x14f)]?_0x551244[_0x32127e(0x158)][_0x32127e(0x1a8)]:_0x551244[_0x32127e(0x158)][_0x32127e(0x140)];if(!_0x54df0c)continue;_0x54df0c['is'](_0x32127e(0x177))&&(_0x54df0c=_0x54df0c[_0x32127e(0x1a8)]),_0x4d8fc0(_0x54df0c);}for(const _0xf6658a of _0x237bd5[_0x32127e(0x172)]()){const {match:_0x41280e,item:_0x468495}=_0xf6658a,_0x2ca29a=_0x4a7805[_0x32127e(0x1ae)](_0x468495,_0x41280e[_0x32127e(0x1a0)]),_0x50f151=_0x2ca29a[_0x32127e(0x171)](_0x41280e[0x0][_0x32127e(0x157)]),_0x3621e9=_0x4a7805[_0x32127e(0x113)](_0x2ca29a,_0x50f151),_0x880dc0=_0x41280e[0x0],_0x754848=_0x880dc0[_0x32127e(0x195)](this[_0x32127e(0x1b3)][_0x32127e(0x157)],_0x880dc0[_0x32127e(0x157)]-this[_0x32127e(0x143)][_0x32127e(0x157)]),_0x460fd0=_0x38883(_0x3621e9);_0x460fd0[_0x32127e(0x14e)]('id',_0x754848);const _0x37ed61=_0x4a7805[_0x32127e(0x124)](_0x32127e(0x116),_0x460fd0);_0x2022a[_0x32127e(0x126)][_0x32127e(0x189)][_0x32127e(0x1b7)](_0x3621e9[_0x32127e(0x122)],_0x32127e(0x116))?_0x2022a[_0x32127e(0x126)][_0x32127e(0x19b)](_0x37ed61,_0x3621e9):_0x4a7805[_0x32127e(0x15c)](_0x3621e9),_0x4c0cab=!0x0;}return _0x4c0cab;function _0x4d8fc0(_0x254138){const _0x29ba5c=_0x32127e;let _0x5af75d='',_0x9fe046=0x0;if(!_0x5f0f06[_0x29ba5c(0x192)](_0x254138))for(const _0x3b9a88 of _0x254138[_0x29ba5c(0x12d)]()){const _0xe941fe=_0x3b9a88[_0x29ba5c(0x1a1)];if(_0x3b9a88['is'](_0x29ba5c(0x177))&&(''===_0x5af75d&&_0x3b9a88[_0x29ba5c(0x1b0)]&&(_0x9fe046=_0x3b9a88[_0x29ba5c(0x1b0)]),_0x5af75d+=_0x3b9a88[_0x29ba5c(0x12b)]),!_0xe941fe||_0xe941fe['is'](_0x29ba5c(0x17b))){for(const _0x5887c2 of _0x5af75d[_0x29ba5c(0x1ba)](_0x251c01))_0x5887c2[_0x29ba5c(0x1a0)]=_0x5887c2[_0x29ba5c(0x1a0)]+_0x9fe046,_0x237bd5[_0x29ba5c(0x111)]({'match':_0x5887c2,'item':_0x254138});_0x5f0f06[_0x29ba5c(0x14c)](_0x254138),_0x5af75d='';}_0x3b9a88['is'](_0x29ba5c(0x17b))&&_0x4d8fc0(_0x3b9a88);}}function _0x38883(_0x158570){const _0x23c93b=_0x32127e,_0xfe9edb=_0x158570[_0x23c93b(0x1b6)](),_0x386bfe=_0xfe9edb[_0x23c93b(0x16a)]()[_0x23c93b(0x1b9)],_0x13119d=new Map(_0x386bfe[_0x23c93b(0x161)]());for(const _0x4dc37a of _0xfe9edb)for(const [_0x14442d,_0x13a9b2]of _0x13119d)_0x4dc37a[_0x23c93b(0x19f)](_0x14442d)!==_0x13a9b2&&_0x13119d[_0x23c93b(0x1a6)](_0x14442d);return _0x13119d;}});}}
|
package/src/mergefieldsui.d.ts
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
9
9
|
import { ContextualBalloon } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import { Widget } from 'ckeditor5/src/widget.js';
|
|
11
|
+
import MergeFieldsEditing from './mergefieldsediting.js';
|
|
10
12
|
import '../theme/mergefields.css';
|
|
11
13
|
import '../theme/insert-dropdown.css';
|
|
12
14
|
/**
|
|
@@ -16,7 +18,7 @@ export default class MergeFieldsUI extends Plugin {
|
|
|
16
18
|
/**
|
|
17
19
|
* @inheritDoc
|
|
18
20
|
*/
|
|
19
|
-
static get requires(): readonly [typeof ContextualBalloon];
|
|
21
|
+
static get requires(): readonly ["Mention", typeof MergeFieldsEditing, typeof ContextualBalloon, typeof Widget];
|
|
20
22
|
/**
|
|
21
23
|
* @inheritDoc
|
|
22
24
|
*/
|