@ckeditor/ckeditor5-merge-fields 0.0.0-nightly-20240807.0 → 0.0.0-nightly-20240809.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.
Files changed (220) hide show
  1. package/build/merge-fields.js +2 -1
  2. package/build/translations/ar.js +1 -0
  3. package/build/translations/bg.js +1 -0
  4. package/build/translations/bn.js +1 -0
  5. package/build/translations/ca.js +1 -0
  6. package/build/translations/cs.js +1 -0
  7. package/build/translations/da.js +1 -0
  8. package/build/translations/de.js +1 -0
  9. package/build/translations/el.js +1 -0
  10. package/build/translations/es.js +1 -0
  11. package/build/translations/et.js +1 -0
  12. package/build/translations/fi.js +1 -0
  13. package/build/translations/fr.js +1 -0
  14. package/build/translations/he.js +1 -0
  15. package/build/translations/hi.js +1 -0
  16. package/build/translations/hr.js +1 -0
  17. package/build/translations/hu.js +1 -0
  18. package/build/translations/id.js +1 -0
  19. package/build/translations/it.js +1 -0
  20. package/build/translations/ja.js +1 -0
  21. package/build/translations/ko.js +1 -0
  22. package/build/translations/lt.js +1 -0
  23. package/build/translations/lv.js +1 -0
  24. package/build/translations/ms.js +1 -0
  25. package/build/translations/nl.js +1 -0
  26. package/build/translations/no.js +1 -0
  27. package/build/translations/pl.js +1 -0
  28. package/build/translations/pt-br.js +1 -0
  29. package/build/translations/pt.js +1 -0
  30. package/build/translations/ro.js +1 -0
  31. package/build/translations/ru.js +1 -0
  32. package/build/translations/sk.js +1 -0
  33. package/build/translations/sr.js +1 -0
  34. package/build/translations/sv.js +1 -0
  35. package/build/translations/th.js +1 -0
  36. package/build/translations/tr.js +1 -0
  37. package/build/translations/uk.js +1 -0
  38. package/build/translations/vi.js +1 -0
  39. package/build/translations/zh-cn.js +1 -0
  40. package/build/translations/zh.js +1 -0
  41. package/ckeditor5-metadata.json +3 -0
  42. package/dist/index-editor.css +1 -0
  43. package/dist/index.css +1 -0
  44. package/dist/index.js +1 -1
  45. package/dist/translations/ar.d.ts +8 -0
  46. package/dist/translations/ar.js +23 -0
  47. package/dist/translations/ar.umd.js +23 -0
  48. package/dist/translations/bg.d.ts +8 -0
  49. package/dist/translations/bg.js +23 -0
  50. package/dist/translations/bg.umd.js +23 -0
  51. package/dist/translations/bn.d.ts +8 -0
  52. package/dist/translations/bn.js +23 -0
  53. package/dist/translations/bn.umd.js +23 -0
  54. package/dist/translations/ca.d.ts +8 -0
  55. package/dist/translations/ca.js +23 -0
  56. package/dist/translations/ca.umd.js +23 -0
  57. package/dist/translations/cs.d.ts +8 -0
  58. package/dist/translations/cs.js +23 -0
  59. package/dist/translations/cs.umd.js +23 -0
  60. package/dist/translations/da.d.ts +8 -0
  61. package/dist/translations/da.js +23 -0
  62. package/dist/translations/da.umd.js +23 -0
  63. package/dist/translations/de.d.ts +8 -0
  64. package/dist/translations/de.js +23 -0
  65. package/dist/translations/de.umd.js +23 -0
  66. package/dist/translations/el.d.ts +8 -0
  67. package/dist/translations/el.js +23 -0
  68. package/dist/translations/el.umd.js +23 -0
  69. package/dist/translations/en.d.ts +8 -0
  70. package/dist/translations/en.js +23 -0
  71. package/dist/translations/en.umd.js +23 -0
  72. package/dist/translations/es.d.ts +8 -0
  73. package/dist/translations/es.js +23 -0
  74. package/dist/translations/es.umd.js +23 -0
  75. package/dist/translations/et.d.ts +8 -0
  76. package/dist/translations/et.js +23 -0
  77. package/dist/translations/et.umd.js +23 -0
  78. package/dist/translations/fi.d.ts +8 -0
  79. package/dist/translations/fi.js +23 -0
  80. package/dist/translations/fi.umd.js +23 -0
  81. package/dist/translations/fr.d.ts +8 -0
  82. package/dist/translations/fr.js +23 -0
  83. package/dist/translations/fr.umd.js +23 -0
  84. package/dist/translations/he.d.ts +8 -0
  85. package/dist/translations/he.js +23 -0
  86. package/dist/translations/he.umd.js +23 -0
  87. package/dist/translations/hi.d.ts +8 -0
  88. package/dist/translations/hi.js +23 -0
  89. package/dist/translations/hi.umd.js +23 -0
  90. package/dist/translations/hr.d.ts +8 -0
  91. package/dist/translations/hr.js +23 -0
  92. package/dist/translations/hr.umd.js +23 -0
  93. package/dist/translations/hu.d.ts +8 -0
  94. package/dist/translations/hu.js +23 -0
  95. package/dist/translations/hu.umd.js +23 -0
  96. package/dist/translations/id.d.ts +8 -0
  97. package/dist/translations/id.js +23 -0
  98. package/dist/translations/id.umd.js +23 -0
  99. package/dist/translations/it.d.ts +8 -0
  100. package/dist/translations/it.js +23 -0
  101. package/dist/translations/it.umd.js +23 -0
  102. package/dist/translations/ja.d.ts +8 -0
  103. package/dist/translations/ja.js +23 -0
  104. package/dist/translations/ja.umd.js +23 -0
  105. package/dist/translations/ko.d.ts +8 -0
  106. package/dist/translations/ko.js +23 -0
  107. package/dist/translations/ko.umd.js +23 -0
  108. package/dist/translations/lt.d.ts +8 -0
  109. package/dist/translations/lt.js +23 -0
  110. package/dist/translations/lt.umd.js +23 -0
  111. package/dist/translations/lv.d.ts +8 -0
  112. package/dist/translations/lv.js +23 -0
  113. package/dist/translations/lv.umd.js +23 -0
  114. package/dist/translations/ms.d.ts +8 -0
  115. package/dist/translations/ms.js +23 -0
  116. package/dist/translations/ms.umd.js +23 -0
  117. package/dist/translations/nl.d.ts +8 -0
  118. package/dist/translations/nl.js +23 -0
  119. package/dist/translations/nl.umd.js +23 -0
  120. package/dist/translations/no.d.ts +8 -0
  121. package/dist/translations/no.js +23 -0
  122. package/dist/translations/no.umd.js +23 -0
  123. package/dist/translations/pl.d.ts +8 -0
  124. package/dist/translations/pl.js +23 -0
  125. package/dist/translations/pl.umd.js +23 -0
  126. package/dist/translations/pt-br.d.ts +8 -0
  127. package/dist/translations/pt-br.js +23 -0
  128. package/dist/translations/pt-br.umd.js +23 -0
  129. package/dist/translations/pt.d.ts +8 -0
  130. package/dist/translations/pt.js +23 -0
  131. package/dist/translations/pt.umd.js +23 -0
  132. package/dist/translations/ro.d.ts +8 -0
  133. package/dist/translations/ro.js +23 -0
  134. package/dist/translations/ro.umd.js +23 -0
  135. package/dist/translations/ru.d.ts +8 -0
  136. package/dist/translations/ru.js +23 -0
  137. package/dist/translations/ru.umd.js +23 -0
  138. package/dist/translations/sk.d.ts +8 -0
  139. package/dist/translations/sk.js +23 -0
  140. package/dist/translations/sk.umd.js +23 -0
  141. package/dist/translations/sr.d.ts +8 -0
  142. package/dist/translations/sr.js +23 -0
  143. package/dist/translations/sr.umd.js +23 -0
  144. package/dist/translations/sv.d.ts +8 -0
  145. package/dist/translations/sv.js +23 -0
  146. package/dist/translations/sv.umd.js +23 -0
  147. package/dist/translations/th.d.ts +8 -0
  148. package/dist/translations/th.js +23 -0
  149. package/dist/translations/th.umd.js +23 -0
  150. package/dist/translations/tr.d.ts +8 -0
  151. package/dist/translations/tr.js +23 -0
  152. package/dist/translations/tr.umd.js +23 -0
  153. package/dist/translations/uk.d.ts +8 -0
  154. package/dist/translations/uk.js +23 -0
  155. package/dist/translations/uk.umd.js +23 -0
  156. package/dist/translations/vi.d.ts +8 -0
  157. package/dist/translations/vi.js +23 -0
  158. package/dist/translations/vi.umd.js +23 -0
  159. package/dist/translations/zh-cn.d.ts +8 -0
  160. package/dist/translations/zh-cn.js +23 -0
  161. package/dist/translations/zh-cn.umd.js +23 -0
  162. package/dist/translations/zh.d.ts +8 -0
  163. package/dist/translations/zh.js +23 -0
  164. package/dist/translations/zh.umd.js +23 -0
  165. package/lang/contexts.json +1 -2
  166. package/lang/translations/ar.po +66 -0
  167. package/lang/translations/bg.po +66 -0
  168. package/lang/translations/bn.po +66 -0
  169. package/lang/translations/ca.po +66 -0
  170. package/lang/translations/cs.po +66 -0
  171. package/lang/translations/da.po +66 -0
  172. package/lang/translations/de.po +66 -0
  173. package/lang/translations/el.po +66 -0
  174. package/lang/translations/en.po +66 -0
  175. package/lang/translations/es.po +66 -0
  176. package/lang/translations/et.po +66 -0
  177. package/lang/translations/fi.po +66 -0
  178. package/lang/translations/fr.po +66 -0
  179. package/lang/translations/he.po +66 -0
  180. package/lang/translations/hi.po +66 -0
  181. package/lang/translations/hr.po +66 -0
  182. package/lang/translations/hu.po +66 -0
  183. package/lang/translations/id.po +66 -0
  184. package/lang/translations/it.po +66 -0
  185. package/lang/translations/ja.po +66 -0
  186. package/lang/translations/ko.po +66 -0
  187. package/lang/translations/lt.po +66 -0
  188. package/lang/translations/lv.po +66 -0
  189. package/lang/translations/ms.po +66 -0
  190. package/lang/translations/nl.po +66 -0
  191. package/lang/translations/no.po +66 -0
  192. package/lang/translations/pl.po +66 -0
  193. package/lang/translations/pt-br.po +66 -0
  194. package/lang/translations/pt.po +66 -0
  195. package/lang/translations/ro.po +66 -0
  196. package/lang/translations/ru.po +66 -0
  197. package/lang/translations/sk.po +66 -0
  198. package/lang/translations/sr.po +66 -0
  199. package/lang/translations/sv.po +66 -0
  200. package/lang/translations/th.po +66 -0
  201. package/lang/translations/tr.po +66 -0
  202. package/lang/translations/uk.po +66 -0
  203. package/lang/translations/vi.po +66 -0
  204. package/lang/translations/zh-cn.po +66 -0
  205. package/lang/translations/zh.po +66 -0
  206. package/package.json +7 -7
  207. package/src/index.js +1 -1
  208. package/src/insertmergefieldcommand.js +1 -1
  209. package/src/mergefields.d.ts +1 -29
  210. package/src/mergefields.js +1 -1
  211. package/src/mergefieldsconfig.d.ts +13 -1
  212. package/src/mergefieldsediting.d.ts +25 -1
  213. package/src/mergefieldsediting.js +1 -1
  214. package/src/mergefieldsui.d.ts +3 -1
  215. package/src/mergefieldsui.js +1 -1
  216. package/src/previewmergefieldscommand.js +1 -1
  217. package/src/ui/mergefieldslistview.js +1 -1
  218. package/src/ui/mergefieldspanelview.js +1 -1
  219. package/src/utils/common-translations.js +1 -1
  220. package/theme/mergefields.css +1 -0
@@ -0,0 +1,66 @@
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Chinese (China) (https://app.transifex.com/ckeditor/teams/11143/zh_CN/)\n"
16
+ "Language: zh_CN\n"
17
+ "Plural-Forms: nplurals=1; plural=0;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
19
+
20
+ msgctxt "A toolbar button tooltip for the merge fields feature."
21
+ msgid "Insert merge field"
22
+ msgstr "插入合并字段"
23
+
24
+ msgctxt "A menu bar button label in the 'Insert' menu for inserting the merge field."
25
+ msgid "Merge field"
26
+ msgstr "合并字段"
27
+
28
+ msgctxt "The placeholder for the search input to filter the merge fields."
29
+ msgid "Search merge field"
30
+ msgstr "搜索合并字段"
31
+
32
+ msgctxt "The message displayed when the merge field search input does not match any merge fields."
33
+ msgid "No merge fields found"
34
+ msgstr "未找到合并字段"
35
+
36
+ msgctxt "The message displayed when there are no merge fields available in the insert merge field dropdown."
37
+ msgid "No merge fields available"
38
+ msgstr "没有可用的合并字段"
39
+
40
+ msgctxt "The title of the panel containing the available merge fields preview modes."
41
+ msgid "Merge fields preview"
42
+ msgstr "合并字段预览"
43
+
44
+ msgctxt "A name for the merge fields preview option showing the merge fields labels."
45
+ msgid "Labels"
46
+ msgstr "标签"
47
+
48
+ msgctxt "A name for the merge fields preview option showing the merge fields default values."
49
+ msgid "Default values"
50
+ msgstr "默认值"
51
+
52
+ msgctxt "A warning message displayed when the merge field data is missing."
53
+ msgid "WARNING_MISSING_DATA"
54
+ msgstr "未找到值。"
55
+
56
+ msgctxt "A warning message displayed when the default value for a merge field is missing."
57
+ msgid "WARNING_MISSING_DEFAULT_VALUE"
58
+ msgstr "未找到默认值。"
59
+
60
+ msgctxt "A warning message displayed when the merge field data is missing and the default value is used."
61
+ msgid "WARNING_MISSING_DATA_USED_DEFAULT_VALUE"
62
+ msgstr "未找到数据集值。改为显示默认值。"
63
+
64
+ msgctxt "A warning message displayed when the merge field definition is missing."
65
+ msgid "WARNING_MISSING_DEFINITION"
66
+ msgstr "未配置合并字段。"
@@ -0,0 +1,66 @@
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Chinese (Taiwan) (https://app.transifex.com/ckeditor/teams/11143/zh_TW/)\n"
16
+ "Language: zh_TW\n"
17
+ "Plural-Forms: nplurals=1; plural=0;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
19
+
20
+ msgctxt "A toolbar button tooltip for the merge fields feature."
21
+ msgid "Insert merge field"
22
+ msgstr "插入合併欄位"
23
+
24
+ msgctxt "A menu bar button label in the 'Insert' menu for inserting the merge field."
25
+ msgid "Merge field"
26
+ msgstr "合併欄位"
27
+
28
+ msgctxt "The placeholder for the search input to filter the merge fields."
29
+ msgid "Search merge field"
30
+ msgstr "搜尋合併欄位"
31
+
32
+ msgctxt "The message displayed when the merge field search input does not match any merge fields."
33
+ msgid "No merge fields found"
34
+ msgstr "找不到合併欄位"
35
+
36
+ msgctxt "The message displayed when there are no merge fields available in the insert merge field dropdown."
37
+ msgid "No merge fields available"
38
+ msgstr "沒有合併欄位可供使用"
39
+
40
+ msgctxt "The title of the panel containing the available merge fields preview modes."
41
+ msgid "Merge fields preview"
42
+ msgstr "合併欄位預覽"
43
+
44
+ msgctxt "A name for the merge fields preview option showing the merge fields labels."
45
+ msgid "Labels"
46
+ msgstr "標籤"
47
+
48
+ msgctxt "A name for the merge fields preview option showing the merge fields default values."
49
+ msgid "Default values"
50
+ msgstr "預設值"
51
+
52
+ msgctxt "A warning message displayed when the merge field data is missing."
53
+ msgid "WARNING_MISSING_DATA"
54
+ msgstr "找不到值。"
55
+
56
+ msgctxt "A warning message displayed when the default value for a merge field is missing."
57
+ msgid "WARNING_MISSING_DEFAULT_VALUE"
58
+ msgstr "找不到預設值。"
59
+
60
+ msgctxt "A warning message displayed when the merge field data is missing and the default value is used."
61
+ msgid "WARNING_MISSING_DATA_USED_DEFAULT_VALUE"
62
+ msgstr "找不到資料集值。改為顯示預設值。"
63
+
64
+ msgctxt "A warning message displayed when the merge field definition is missing."
65
+ msgid "WARNING_MISSING_DEFINITION"
66
+ msgstr "未設定合併欄位。"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-merge-fields",
3
- "version": "0.0.0-nightly-20240807.0",
3
+ "version": "0.0.0-nightly-20240809.0",
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": "0.0.0-nightly-20240807.0",
16
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-20240807.0",
17
- "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20240807.0",
18
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20240807.0",
19
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20240807.0",
20
- "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20240807.0",
15
+ "ckeditor5": "0.0.0-nightly-20240809.0",
16
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20240809.0",
17
+ "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20240809.0",
18
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20240809.0",
19
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20240809.0",
20
+ "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20240809.0",
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(_0x504786,_0x37c833){var _0x3162e5=_0x3e55,_0xa36d66=_0x504786();while(!![]){try{var _0x2cd3f9=-parseInt(_0x3162e5(0x158))/0x1*(parseInt(_0x3162e5(0x15d))/0x2)+parseInt(_0x3162e5(0x157))/0x3+parseInt(_0x3162e5(0x156))/0x4+-parseInt(_0x3162e5(0x159))/0x5+-parseInt(_0x3162e5(0x15a))/0x6*(-parseInt(_0x3162e5(0x15b))/0x7)+parseInt(_0x3162e5(0x15e))/0x8+-parseInt(_0x3162e5(0x15c))/0x9;if(_0x2cd3f9===_0x37c833)break;else _0xa36d66['push'](_0xa36d66['shift']());}catch(_0x1d19b7){_0xa36d66['push'](_0xa36d66['shift']());}}}(_0x5aa2,0xcf544));function _0x5aa2(){var _0x4e7c0b=['1070578OJsHvk','6280304hOCHJQ','3046428lCmnif','4572489pvAeUn','3XJnMwn','153380fsQygB','12zppnWu','3201779ipsQle','13498551xRYpUm'];_0x5aa2=function(){return _0x4e7c0b;};return _0x5aa2();}function _0x3e55(_0x338f92,_0x511ef4){var _0x5aa2c8=_0x5aa2();return _0x3e55=function(_0x3e5560,_0x30f398){_0x3e5560=_0x3e5560-0x156;var _0x37aaf5=_0x5aa2c8[_0x3e5560];return _0x37aaf5;},_0x3e55(_0x338f92,_0x511ef4);}export{default as MergeFields}from'./mergefields.js';export{default as MergeFieldsEditing}from'./mergefieldsediting.js';export{default as MergeFieldsUI}from'./mergefieldsui.js';import'./augmentation.js';
23
+ (function(_0x1efcc8,_0x2c84b4){var _0x5e0245=_0x4ed1,_0xf03c7=_0x1efcc8();while(!![]){try{var _0x3c5cae=parseInt(_0x5e0245(0x14b))/0x1*(parseInt(_0x5e0245(0x154))/0x2)+parseInt(_0x5e0245(0x150))/0x3+parseInt(_0x5e0245(0x153))/0x4*(-parseInt(_0x5e0245(0x155))/0x5)+-parseInt(_0x5e0245(0x14e))/0x6*(parseInt(_0x5e0245(0x152))/0x7)+parseInt(_0x5e0245(0x151))/0x8*(-parseInt(_0x5e0245(0x14d))/0x9)+parseInt(_0x5e0245(0x14c))/0xa+-parseInt(_0x5e0245(0x14f))/0xb;if(_0x3c5cae===_0x2c84b4)break;else _0xf03c7['push'](_0xf03c7['shift']());}catch(_0x240e13){_0xf03c7['push'](_0xf03c7['shift']());}}}(_0x1cd8,0x42c5f));export{default as MergeFields}from'./mergefields.js';export{default as MergeFieldsEditing}from'./mergefieldsediting.js';export{default as MergeFieldsUI}from'./mergefieldsui.js';function _0x4ed1(_0x5d43b9,_0x19af79){var _0x1cd867=_0x1cd8();return _0x4ed1=function(_0x4ed1fa,_0x473b94){_0x4ed1fa=_0x4ed1fa-0x14b;var _0x1b8c5a=_0x1cd867[_0x4ed1fa];return _0x1b8c5a;},_0x4ed1(_0x5d43b9,_0x19af79);}import'./augmentation.js';function _0x1cd8(){var _0x790eea=['15688LWRJDO','136423KrmQSX','30756MddsMl','1492QvHWSI','85jLhYDg','273EwJtHy','5267220jKbaPQ','1179kSPxvG','78zUSPIW','1048597dKgEcY','838233KHVnsW'];_0x1cd8=function(){return _0x790eea;};return _0x1cd8();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe5fc9e=_0xcb3a;function _0xcb3a(_0x43ee8b,_0x56499a){const _0x4f34de=_0x4f34();return _0xcb3a=function(_0xcb3a8,_0x328320){_0xcb3a8=_0xcb3a8-0xee;let _0x52986e=_0x4f34de[_0xcb3a8];return _0x52986e;},_0xcb3a(_0x43ee8b,_0x56499a);}(function(_0x5a5caa,_0x19e1ec){const _0x55511e=_0xcb3a,_0x4ea3f5=_0x5a5caa();while(!![]){try{const _0x5235b7=-parseInt(_0x55511e(0xff))/0x1*(parseInt(_0x55511e(0x100))/0x2)+parseInt(_0x55511e(0xf9))/0x3+parseInt(_0x55511e(0xf5))/0x4+parseInt(_0x55511e(0x101))/0x5+-parseInt(_0x55511e(0x104))/0x6+-parseInt(_0x55511e(0xfa))/0x7+parseInt(_0x55511e(0x109))/0x8;if(_0x5235b7===_0x19e1ec)break;else _0x4ea3f5['push'](_0x4ea3f5['shift']());}catch(_0x2bad68){_0x4ea3f5['push'](_0x4ea3f5['shift']());}}}(_0x4f34,0xecb34));import{Command as _0x55a29c}from'ckeditor5/src/core.js';export default class r extends _0x55a29c{[_0xe5fc9e(0xfe)](){const _0x4addac=_0xe5fc9e,_0x1695d2=this[_0x4addac(0xf8)][_0x4addac(0xfb)],_0x574706=_0x1695d2[_0x4addac(0xef)][_0x4addac(0x105)](_0x1695d2[_0x4addac(0xf4)][_0x4addac(0xf1)][_0x4addac(0x103)],_0x4addac(0xf2));this[_0x4addac(0x108)]=_0x574706;}[_0xe5fc9e(0xfc)](_0x82cc6a){const _0x2e6871=_0xe5fc9e;if(!_0x82cc6a||_0x2e6871(0xf3)!=typeof _0x82cc6a)return;const _0x5208a0=this[_0x2e6871(0xf8)][_0x2e6871(0xfb)];_0x5208a0[_0x2e6871(0xf6)](_0x43546a=>{const _0x2cc353=_0x2e6871;_0x5208a0[_0x2cc353(0xee)](_0x5208a0[_0x2cc353(0xf4)][_0x2cc353(0xf1)]);const _0x21d167=_0x43546a[_0x2cc353(0x107)](_0x2cc353(0xf2),{'id':_0x82cc6a});for(const [_0x51be4d,_0x33a3dc]of _0x5208a0[_0x2cc353(0xf4)][_0x2cc353(0xf1)][_0x2cc353(0xf0)]())_0x5208a0[_0x2cc353(0xef)][_0x2cc353(0x106)](_0x21d167,_0x51be4d)&&_0x43546a[_0x2cc353(0xfd)](_0x51be4d,_0x33a3dc,_0x21d167);_0x5208a0[_0x2cc353(0xf7)](_0x21d167,_0x5208a0[_0x2cc353(0xf4)][_0x2cc353(0xf1)],0x0,{'setSelection':_0x2cc353(0x102)});});}}function _0x4f34(){const _0x3deca3=['document','7238516PPZvyt','change','insertContent','editor','3389406CrBvot','11538513TsXKvc','model','execute','setAttribute','refresh','31XLcLhD','78970cfuPzG','7589350FATxAz','after','focus','7574448KuxqAR','checkChild','checkAttribute','createElement','isEnabled','5176200nQFmbW','deleteContent','schema','getAttributes','selection','mergeField','string'];_0x4f34=function(){return _0x3deca3;};return _0x4f34();}
23
+ function _0x1197(_0xee1056,_0x125108){const _0x2c1c17=_0x2c1c();return _0x1197=function(_0x1197a2,_0x7e7816){_0x1197a2=_0x1197a2-0x16e;let _0x4b8113=_0x2c1c17[_0x1197a2];return _0x4b8113;},_0x1197(_0xee1056,_0x125108);}const _0x214489=_0x1197;(function(_0x417ea7,_0x55f8f2){const _0xf3931d=_0x1197,_0x2e7954=_0x417ea7();while(!![]){try{const _0x3bc3bf=-parseInt(_0xf3931d(0x176))/0x1+-parseInt(_0xf3931d(0x16f))/0x2*(-parseInt(_0xf3931d(0x18a))/0x3)+-parseInt(_0xf3931d(0x175))/0x4*(-parseInt(_0xf3931d(0x179))/0x5)+parseInt(_0xf3931d(0x180))/0x6*(parseInt(_0xf3931d(0x173))/0x7)+parseInt(_0xf3931d(0x18d))/0x8+parseInt(_0xf3931d(0x17f))/0x9*(parseInt(_0xf3931d(0x17d))/0xa)+parseInt(_0xf3931d(0x172))/0xb*(-parseInt(_0xf3931d(0x184))/0xc);if(_0x3bc3bf===_0x55f8f2)break;else _0x2e7954['push'](_0x2e7954['shift']());}catch(_0x30ea09){_0x2e7954['push'](_0x2e7954['shift']());}}}(_0x2c1c,0x2b3cd));import{Command as _0x397d07}from'ckeditor5/src/core.js';export default class r extends _0x397d07{[_0x214489(0x17e)](){const _0x139aec=_0x214489,_0x193387=this[_0x139aec(0x188)][_0x139aec(0x170)],_0x2d7dd1=_0x193387[_0x139aec(0x181)][_0x139aec(0x187)](_0x193387[_0x139aec(0x18c)][_0x139aec(0x178)][_0x139aec(0x177)],_0x139aec(0x16e));this[_0x139aec(0x17b)]=_0x2d7dd1;}[_0x214489(0x186)](_0x3a19ec){const _0x2c9047=_0x214489;if(!_0x3a19ec||_0x2c9047(0x171)!=typeof _0x3a19ec)return;const _0x5d38e8=this[_0x2c9047(0x188)][_0x2c9047(0x170)];_0x5d38e8[_0x2c9047(0x17c)](_0x4ee799=>{const _0x37e71f=_0x2c9047;_0x5d38e8[_0x37e71f(0x17a)](_0x5d38e8[_0x37e71f(0x18c)][_0x37e71f(0x178)]);const _0x110b68=_0x4ee799[_0x37e71f(0x189)](_0x37e71f(0x16e),{'id':_0x3a19ec});for(const [_0x28bd53,_0xf43df]of _0x5d38e8[_0x37e71f(0x18c)][_0x37e71f(0x178)][_0x37e71f(0x183)]())_0x5d38e8[_0x37e71f(0x181)][_0x37e71f(0x185)](_0x110b68,_0x28bd53)&&_0x4ee799[_0x37e71f(0x174)](_0x28bd53,_0xf43df,_0x110b68);_0x5d38e8[_0x37e71f(0x18b)](_0x110b68,_0x5d38e8[_0x37e71f(0x18c)][_0x37e71f(0x178)],0x0,{'setSelection':_0x37e71f(0x182)});});}}function _0x2c1c(){const _0x313f4e=['document','1675112BtUmis','mergeField','225012pITUQC','model','string','11KnXWOZ','798NkeHRf','setAttribute','3100Okdyju','151543CIcpPu','focus','selection','190KCnuVN','deleteContent','isEnabled','change','91870HHPCLX','refresh','171MbDJbB','13758pKBsqn','schema','after','getAttributes','6853944HeMNAU','checkAttribute','execute','checkChild','editor','createElement','6wAkOgi','insertContent'];_0x2c1c=function(){return _0x313f4e;};return _0x2c1c();}
@@ -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 ["Mention", typeof MergeFieldsEditing, typeof MergeFieldsUI, typeof Widget];
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>;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d5f7b=_0x178f;(function(_0x39eaf4,_0xe98661){const _0x149050=_0x178f,_0x1f09c2=_0x39eaf4();while(!![]){try{const _0x8d02a3=-parseInt(_0x149050(0x9a))/0x1*(parseInt(_0x149050(0x9b))/0x2)+-parseInt(_0x149050(0x90))/0x3*(-parseInt(_0x149050(0x8f))/0x4)+parseInt(_0x149050(0x98))/0x5*(-parseInt(_0x149050(0x8b))/0x6)+parseInt(_0x149050(0x9e))/0x7*(-parseInt(_0x149050(0xa0))/0x8)+parseInt(_0x149050(0x92))/0x9*(parseInt(_0x149050(0x9c))/0xa)+-parseInt(_0x149050(0x97))/0xb*(parseInt(_0x149050(0x94))/0xc)+parseInt(_0x149050(0x9f))/0xd*(parseInt(_0x149050(0xa3))/0xe);if(_0x8d02a3===_0xe98661)break;else _0x1f09c2['push'](_0x1f09c2['shift']());}catch(_0x5262a6){_0x1f09c2['push'](_0x1f09c2['shift']());}}}(_0x41a9,0xed10e));import{Plugin as _0x11f44f}from'ckeditor5/src/core.js';import{Widget as _0x30b3cb}from'ckeditor5/src/widget.js';import _0x286884 from'./mergefieldsediting.js';function _0x178f(_0x39a5b8,_0x27ab79){const _0x41a91f=_0x41a9();return _0x178f=function(_0x178fef,_0x4e4ea0){_0x178fef=_0x178fef-0x8a;let _0x399811=_0x41a91f[_0x178fef];return _0x399811;},_0x178f(_0x39a5b8,_0x27ab79);}import _0xd15d8b from'./mergefieldsui.js';function _0x41a9(){const _0x3dfb69=['381lIIwMe','plugins','648JyurSJ','getDefaultValues','12TCqNei','MergeFields','getMergeFieldDefaultValue','2982562OsCDvP','3242230LZxTDG','getMergeFieldValue','330482ERLACm','2bwuZbd','91690PqMVZq','get','720867UHJQRi','1655459LQyoMg','40gJtRHb','Mention','pluginName','182dXsIDJ','getDataSetValues','6lghKXM','editor','getMergeFieldsIds','requires','13240CrtfIz'];_0x41a9=function(){return _0x3dfb69;};return _0x41a9();}export default class l extends _0x11f44f{static get[_0x4d5f7b(0x8e)](){const _0x2fa0a4=_0x4d5f7b;return[_0x2fa0a4(0xa1),_0x286884,_0xd15d8b,_0x30b3cb];}static get[_0x4d5f7b(0xa2)](){const _0x4c6316=_0x4d5f7b;return _0x4c6316(0x95);}[_0x4d5f7b(0x8d)](){const _0x2f985a=_0x4d5f7b;return this[_0x2f985a(0x8c)][_0x2f985a(0x91)][_0x2f985a(0x9d)](_0x286884)[_0x2f985a(0x8d)]();}[_0x4d5f7b(0x93)](){const _0x4a367a=_0x4d5f7b,_0x4bb188=this[_0x4a367a(0x8c)][_0x4a367a(0x91)][_0x4a367a(0x9d)](_0x286884),_0x4c2983={},_0x1dee51=this[_0x4a367a(0x8d)]();for(const _0x48a4ea of _0x1dee51)_0x4c2983[_0x48a4ea]=_0x4bb188[_0x4a367a(0x96)](_0x48a4ea);return _0x4c2983;}[_0x4d5f7b(0x8a)](_0x3945e4,_0x56d39a=!0x1){const _0x1dfd66=_0x4d5f7b,_0x1ec28d=this[_0x1dfd66(0x8c)][_0x1dfd66(0x91)][_0x1dfd66(0x9d)](_0x286884),_0x16c01d={},_0x507eef=this[_0x1dfd66(0x8d)]();for(const _0x3c096d of _0x507eef){let _0x50d0de=_0x1ec28d[_0x1dfd66(0x99)](_0x3c096d,_0x3945e4);null===_0x50d0de&&_0x56d39a&&(_0x50d0de=_0x1ec28d[_0x1dfd66(0x96)](_0x3c096d)),_0x16c01d[_0x3c096d]=_0x50d0de;}return _0x16c01d;}}
23
+ function _0x2f5f(_0x22e945,_0x424338){var _0x20049c=_0x2004();return _0x2f5f=function(_0x2f5f10,_0x121e7c){_0x2f5f10=_0x2f5f10-0x1b5;var _0x32d15e=_0x20049c[_0x2f5f10];return _0x32d15e;},_0x2f5f(_0x22e945,_0x424338);}var _0x10dc71=_0x2f5f;function _0x2004(){var _0x330c7a=['2tywVpC','5739307PzucbY','MergeFields','1122862btQqfg','5774592ENTaZK','4421324FfwItr','4037850VWsmtX','1904766pXYmHd','1890747tkbSAk','requires','pluginName'];_0x2004=function(){return _0x330c7a;};return _0x2004();}(function(_0x3cd6e5,_0x28329a){var _0x438e72=_0x2f5f,_0x2a0110=_0x3cd6e5();while(!![]){try{var _0x4c1f3f=parseInt(_0x438e72(0x1ba))/0x1+parseInt(_0x438e72(0x1b7))/0x2*(-parseInt(_0x438e72(0x1bf))/0x3)+parseInt(_0x438e72(0x1bc))/0x4+-parseInt(_0x438e72(0x1bd))/0x5+-parseInt(_0x438e72(0x1be))/0x6+parseInt(_0x438e72(0x1b8))/0x7+-parseInt(_0x438e72(0x1bb))/0x8;if(_0x4c1f3f===_0x28329a)break;else _0x2a0110['push'](_0x2a0110['shift']());}catch(_0x587bca){_0x2a0110['push'](_0x2a0110['shift']());}}}(_0x2004,0x8b66e));import{Plugin as _0x4a7ed3}from'ckeditor5/src/core.js';import _0x264152 from'./mergefieldsediting.js';import _0x267c67 from'./mergefieldsui.js';export default class o extends _0x4a7ed3{static get[_0x10dc71(0x1b5)](){return[_0x264152,_0x267c67];}static get[_0x10dc71(0x1b6)](){var _0x25f321=_0x10dc71;return _0x25f321(0x1b9);}}
@@ -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
  *
@@ -81,6 +81,18 @@ export interface MergeFieldsConfig {
81
81
  * in the list above.
82
82
  */
83
83
  initialPreviewMode?: string;
84
+ /**
85
+ * A flag indicating whether the feature should render the previews of HTML strings passed as
86
+ * {@link ~DataSetDefinition#values data set values} and {@link ~MergeFieldDefinition#defaultValue default values}.
87
+ *
88
+ * When set to `true`, the feature will show a preview of the sanitized version of the HTML provided as a merge field value.
89
+ *
90
+ * When set to `false`, merge fields value will be previewed exactly as passed.
91
+ *
92
+ * Read more about the security of previewing HTML in the editor in {@glink features/html/html-embed#security "Security"} section of
93
+ * the {@glink features/html/html-embed HTML embed} feature guide.
94
+ */
95
+ previewHtmlValues?: boolean;
84
96
  }
85
97
  export type GroupDefinition = {
86
98
  /**
@@ -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 _0x65f55=_0x391a;(function(_0x32d401,_0x1f91f1){const _0x4c8d5a=_0x391a,_0x1f4a60=_0x32d401();while(!![]){try{const _0x40d111=-parseInt(_0x4c8d5a(0x103))/0x1*(parseInt(_0x4c8d5a(0xed))/0x2)+-parseInt(_0x4c8d5a(0x145))/0x3*(-parseInt(_0x4c8d5a(0x123))/0x4)+parseInt(_0x4c8d5a(0x105))/0x5+parseInt(_0x4c8d5a(0xc1))/0x6*(-parseInt(_0x4c8d5a(0x117))/0x7)+-parseInt(_0x4c8d5a(0x14c))/0x8*(parseInt(_0x4c8d5a(0x124))/0x9)+parseInt(_0x4c8d5a(0xb1))/0xa*(parseInt(_0x4c8d5a(0x11d))/0xb)+parseInt(_0x4c8d5a(0x15d))/0xc;if(_0x40d111===_0x1f91f1)break;else _0x1f4a60['push'](_0x1f4a60['shift']());}catch(_0xfbd17e){_0x1f4a60['push'](_0x1f4a60['shift']());}}}(_0x27ca,0xee153));import{toWidget as _0x18c3af,viewToModelPositionOutsideModelElement as _0x3fa356}from'ckeditor5/src/widget.js';function _0x391a(_0x2efc0d,_0x820730){const _0x27ca06=_0x27ca();return _0x391a=function(_0x391a9e,_0xbc7bc2){_0x391a9e=_0x391a9e-0xac;let _0x497ddf=_0x27ca06[_0x391a9e];return _0x497ddf;},_0x391a(_0x2efc0d,_0x820730);}import{Plugin as _0x408bc3}from'ckeditor5/src/core.js';import{IconView as _0x599648}from'ckeditor5/src/ui.js';import{isParagraphable as _0x3c4dc2,wrapInParagraph as _0x3fc3ec}from'ckeditor5/src/engine.js';import{CKEditorError as _0x19e5d5}from'ckeditor5/src/utils.js';import _0xb0859b from'./insertmergefieldcommand.js';function _0x27ca(){const _0x53f8c4=['push','schema','ck-merge-field','merge-fields-prefix-and-suffix-must-differ','add','label','render','$inlineObject','from','function','306271RxzcFZ','mergeFieldsData','4660980cUumUJ','concat','ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_default-value-used','every','register','merge-fields-invalid-prefix-or-suffix','defaultValue','merge-fields-trial-license-key-reached-limit-changes','_validateConfig','_mergeFieldElements','model','rootName','_defineSchema','mergeFields.dataSets','conversion','type','differ','_defineConverters','1231013zHluHQ','_licenseKeyCheckInterval','mergeFields.definitions','modelRange','definitions','ck-merge-field\x20ck-merge-field_with-value','3674SeBysn','commands','change:previewMode','position','createElement','reduce','4GLvvHj','4392haIGmw','value','ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-data','mergeFields.prefix','_validatePreviewMode','insert','init','previewMode','name','MergeFieldsEditing','delete','root','_mergeFieldPrefix','$graveyard','createUIElement','info','mergeFieldsLicenseKeyTrialLimit:operations','modelCursor','ck-merge-field__affix','$dataSets','parent','_refreshMergeFields','mergeFields.suffix','_getAvailablePreviewModes','merge-fields-invalid-id','editingDowncast','viewToModelPosition','availablePreviewModes','start','innerHTML','remove','has','\x20]+','655233bBXBao','batch','registerPostFixer','offsetSize','getShiftedBy','getDocumentMergeFieldsIds','destroy','23096tcavgr','view','_trackAddedMergeFields','merge-fields-invalid-license-key','upcast','bind','getAttributes','getItems','merge-fields-duplicate-merge-field-id','getAttribute','mergeFieldsLicenseKeyTrial','mergeFieldsLicenseKeyValid','elementToElement','nextSibling','ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-definition','merge-fields-duplicate-group-id','find','26586876fmlSaf','split','mergeField','editor','$defaultValues','for','data','_mergeFieldSuffix','startOffset','nodeAfter','next','filter','map','get','WARNING_MISSING_DATA','WARNING_MISSING_DATA_USED_DEFAULT_VALUE','appendChild','setCustomProperty','ck-merge-field__icon','_prepareViewElementData','includes','createPositionAt','flattenedMergeFieldDefinitions','4730IwdDpn','ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_no-default','matchAll','createRange','merge-fields-duplicate-data-set-id','getLabel','reverse','checkChild','WARNING_MISSING_DEFAULT_VALUE','change:data','forEach','slice','pluginName','dataDowncast','match','getChanges','18AVxhcF','mergeFields.initialPreviewMode','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.','mapper','createText','previewMergeFields','WARNING_MISSING_DEFINITION','define','set','hasClass','insertMergeField','_getDefaultDefinition','registerInlineObjectMatcher','getMergeFieldDefaultValue','dataPipeline:transparentRendering','text','listenTo','document','toDomElement','isLocal','mergeFieldsLicenseKeyInvalid','merge-fields-data-set-not-found','mergeFieldStatus','_getFlattenedMergeFieldDefinitions','span','licenseKey','getMergeFieldsIds','mergeFields.previewModes','join','_registerConversionPostFixer','createRangeIn','ck-merge-field__content','getMergeFieldValue','merge-fields-invalid-preview-mode-set','getDefinition','length','index','editing','_mergeFieldRegExp','insertObject','_createTextualMergeField','$labels','domConverter','values','4rIpGNb','groupId','merge-fields-invalid-preview-modes-configuration','createContainerElement','_createMergeFieldWidget','test','config','element','$text','reconvertItem','getChildren','consume'];_0x27ca=function(){return _0x53f8c4;};return _0x27ca();}import _0x2070e3 from'./previewmergefieldscommand.js';import _0x544cca from'../theme/icons/warning.svg';export default class o extends _0x408bc3{static get[_0x65f55(0xbd)](){const _0x5c8cb1=_0x65f55;return _0x5c8cb1(0x12d);}constructor(_0x38a87f){const _0x51655d=_0x65f55;super(_0x38a87f),this[_0x51655d(0xb0)]=[],_0x38a87f[_0x51655d(0xf3)][_0x51655d(0xc8)](_0x51655d(0xdc),[_0x51655d(0xea),_0x51655d(0x161),_0x51655d(0x137)]),_0x38a87f[_0x51655d(0xf3)][_0x51655d(0xc8)](_0x51655d(0x112),[]),_0x38a87f[_0x51655d(0xf3)][_0x51655d(0xc8)](_0x51655d(0x119),[]),_0x38a87f[_0x51655d(0xf3)][_0x51655d(0xc8)](_0x51655d(0x127),'{{'),_0x38a87f[_0x51655d(0xf3)][_0x51655d(0xc8)](_0x51655d(0x13a),'}}'),this[_0x51655d(0x130)]=_0x38a87f[_0x51655d(0xf3)][_0x51655d(0x16a)](_0x51655d(0x127)),this[_0x51655d(0x164)]=_0x38a87f[_0x51655d(0xf3)][_0x51655d(0x16a)](_0x51655d(0x13a)),this[_0x51655d(0xb0)]=this[_0x51655d(0xd8)](),this[_0x51655d(0x10d)]();const _0x5991e8='\x5c'+this[_0x51655d(0x130)][_0x51655d(0x15e)]('')[_0x51655d(0xdd)]('\x5c'),_0x379cbd='\x5c'+this[_0x51655d(0x164)][_0x51655d(0x15e)]('')[_0x51655d(0xdd)]('\x5c');this[_0x51655d(0xe7)]=new RegExp('('+_0x5991e8+'[^'+(_0x5991e8+_0x379cbd)+_0x51655d(0x144)+_0x379cbd+')','g'),this[_0x51655d(0x13f)]=this[_0x51655d(0x13b)]();const _0x2b4dfa=_0x38a87f[_0x51655d(0xf3)][_0x51655d(0x16a)](_0x51655d(0xc2))||this[_0x51655d(0x13f)][0x0];this[_0x51655d(0x128)](_0x2b4dfa),this[_0x51655d(0xc9)](_0x51655d(0x12b),_0x2b4dfa),this[_0x51655d(0x10e)]=new Set(),this[_0x51655d(0x118)]=null;}[_0x65f55(0x12a)](){const _0x4e72ee=_0x65f55,_0x5353d8=this[_0x4e72ee(0x160)];_0x5353d8[_0x4e72ee(0x11e)][_0x4e72ee(0xfd)](_0x4e72ee(0xcb),new _0xb0859b(_0x5353d8)),_0x5353d8[_0x4e72ee(0x11e)][_0x4e72ee(0xfd)](_0x4e72ee(0xc6),new _0x2070e3(_0x5353d8)),this[_0x4e72ee(0x111)](),this[_0x4e72ee(0x116)](),this['on'](_0x4e72ee(0x11f),(_0x4ee1c1,_0x194fd7,_0x314a1d)=>{const _0x1a35d4=_0x4e72ee;this[_0x1a35d4(0x128)](_0x314a1d),this[_0x1a35d4(0x139)]();}),this[_0x4e72ee(0xd1)](_0x5353d8[_0x4e72ee(0x10f)][_0x4e72ee(0xd2)],_0x4e72ee(0xba),()=>{const _0xce36e0=_0x4e72ee;this[_0xce36e0(0x14e)]();}),_0x5353d8[_0x4e72ee(0xe6)][_0x4e72ee(0xc4)]['on'](_0x4e72ee(0x13e),_0x3fa356(_0x5353d8[_0x4e72ee(0x10f)],_0x493f47=>_0x493f47[_0x4e72ee(0xca)](_0x4e72ee(0xfb)))),this[_0x4e72ee(0xde)](),_0x5353d8[_0x4e72ee(0xe6)][_0x4e72ee(0x14d)][_0x4e72ee(0xeb)][_0x4e72ee(0xcd)]({'name':_0x4e72ee(0xd9),'classes':[_0x4e72ee(0xfb)]}),this[_0x4e72ee(0xda)]=_0x5353d8[_0x4e72ee(0xf3)][_0x4e72ee(0x16a)](_0x4e72ee(0xda));const _0x3e661e=this[_0x4e72ee(0x160)];this[_0x4e72ee(0x118)]=setInterval(()=>{const _0x578f87=_0x4e72ee;let _0x2e94e7;for(const _0x55015c in _0x3e661e){const _0x53201e=_0x55015c,_0x1090f9=_0x3e661e[_0x53201e];if(_0x578f87(0x156)===_0x1090f9||_0x578f87(0xd5)===_0x1090f9||_0x578f87(0x157)===_0x1090f9||_0x578f87(0x134)===_0x1090f9){delete _0x3e661e[_0x53201e],_0x2e94e7=_0x1090f9;break;}}if(_0x578f87(0xd5)===_0x2e94e7)throw clearInterval(this[_0x578f87(0x118)]),new _0x19e5d5(_0x578f87(0x14f),null);if(_0x578f87(0x156)===_0x2e94e7&&console[_0x578f87(0x133)](_0x578f87(0xc3)),_0x578f87(0x134)===_0x2e94e7)throw clearInterval(this[_0x578f87(0x118)]),new _0x19e5d5(_0x578f87(0x10c),null);_0x578f87(0x157)===_0x2e94e7&&clearInterval(this[_0x578f87(0x118)]);},0x3e8);}[_0x65f55(0xb6)](_0x4cf5dd){const _0x36c1ab=_0x65f55,_0x575ce3=this[_0x36c1ab(0xe3)](_0x4cf5dd);return _0x575ce3[_0x36c1ab(0xfe)]||_0x575ce3['id'];}[_0x65f55(0xce)](_0x3ced54){const _0x1f1c0a=_0x65f55,_0x293a70=this[_0x1f1c0a(0xe3)](_0x3ced54);return void 0x0===_0x293a70[_0x1f1c0a(0x10b)]?null:_0x1f1c0a(0x102)==typeof _0x293a70[_0x1f1c0a(0x10b)]?_0x293a70[_0x1f1c0a(0x10b)](this[_0x1f1c0a(0x160)]):_0x293a70[_0x1f1c0a(0x10b)];}[_0x65f55(0xe1)](_0x1d36ee,_0xd449a6){const _0x4b28cf=_0x65f55,_0xfe7135=this[_0x4b28cf(0x160)][_0x4b28cf(0xf3)][_0x4b28cf(0x16a)](_0x4b28cf(0x112))[_0x4b28cf(0x15c)](_0x728452=>_0x728452['id']===_0xd449a6);if(!_0xfe7135)throw new _0x19e5d5(_0x4b28cf(0xd6),null);const _0x4598fe=this[_0x4b28cf(0xe3)](_0x1d36ee),_0x1580f0=_0xfe7135[_0x4b28cf(0xec)][_0x4598fe['id']];return void 0x0===_0x1580f0?null:_0x4b28cf(0x102)==typeof _0x1580f0?_0x1580f0(this[_0x4b28cf(0x160)]):_0x1580f0;}[_0x65f55(0x14a)](){const _0x26130c=_0x65f55,_0x31b189=new Set();for(const _0x3c2234 of this[_0x26130c(0x10e)])_0x26130c(0x131)!==_0x3c2234[_0x26130c(0x12f)][_0x26130c(0x110)]&&_0x31b189[_0x26130c(0xfd)](_0x3c2234[_0x26130c(0x155)]('id'));return Array[_0x26130c(0x101)](_0x31b189);}[_0x65f55(0xdb)](){const _0x52157e=_0x65f55,_0x5c9ab0=this[_0x52157e(0xb0)][_0x52157e(0x169)](_0xcb8b83=>_0xcb8b83['id']),_0x15b652=this[_0x52157e(0x14a)]();return Array[_0x52157e(0x101)](new Set([..._0x5c9ab0,..._0x15b652]));}[_0x65f55(0xe3)](_0x2ca9e4){const _0x25787e=_0x65f55;return this[_0x25787e(0xb0)][_0x25787e(0x15c)](_0x30f976=>_0x30f976['id']===_0x2ca9e4)||this[_0x25787e(0xcc)](_0x2ca9e4);}[_0x65f55(0x14b)](){const _0x391091=_0x65f55;this[_0x391091(0x118)]&&clearInterval(this[_0x391091(0x118)]);}[_0x65f55(0xd8)](){const _0x3b0a02=_0x65f55,_0x245392=new Set(),_0x1d5a4a=this[_0x3b0a02(0x160)];return _0x1d5a4a[_0x3b0a02(0xf3)][_0x3b0a02(0x16a)](_0x3b0a02(0x119))[_0x3b0a02(0x122)]((_0x41f8b0,_0x494030)=>{const _0x3d862a=_0x3b0a02;if(_0x3d862a(0xee)in _0x494030){if(_0x245392[_0x3d862a(0x143)](_0x494030[_0x3d862a(0xee)]))throw new _0x19e5d5(_0x3d862a(0x15b),_0x1d5a4a,{'duplicateId':_0x494030[_0x3d862a(0xee)]});_0x245392[_0x3d862a(0xfd)](_0x494030[_0x3d862a(0xee)]);}return _0x3d862a(0xee)in _0x494030?function(_0x29eb23,_0x3f4849){const _0x1e28a4=_0x3d862a;for(const _0x5acbb7 of _0x3f4849[_0x1e28a4(0x11b)])_0x29eb23=_0x29eb23[_0x1e28a4(0x106)](_0x5acbb7);return _0x29eb23;}[_0x3d862a(0x151)](_0x1d5a4a)(_0x41f8b0,_0x494030):_0x41f8b0[_0x3d862a(0x106)](_0x494030);},new Array());}[_0x65f55(0x10d)](){const _0x2ec784=_0x65f55,_0x346c0d=/^['"`!#%:;=@{}~$()*+/?[\\\]^|]+$/;if(!_0x346c0d[_0x2ec784(0xf2)](this[_0x2ec784(0x130)])||!_0x346c0d[_0x2ec784(0xf2)](this[_0x2ec784(0x164)]))throw new _0x19e5d5(_0x2ec784(0x10a),this,{'prefix':this[_0x2ec784(0x130)],'suffix':this[_0x2ec784(0x164)]});const _0x39490a=/^[a-zA-Z0-9_.-]+$/,_0x1f554c=new Set();if(this[_0x2ec784(0xb0)][_0x2ec784(0x169)](_0x5af6f7=>{const _0x6e1782=_0x2ec784;if(!_0x39490a[_0x6e1782(0xf2)](_0x5af6f7['id']))throw new _0x19e5d5(_0x6e1782(0x13c),this,{'incorrectId':_0x5af6f7['id']});if(_0x1f554c[_0x6e1782(0x143)](_0x5af6f7['id']))throw new _0x19e5d5(_0x6e1782(0x154),this,{'duplicateId':_0x5af6f7['id']});_0x1f554c[_0x6e1782(0xfd)](_0x5af6f7['id']);}),this[_0x2ec784(0x130)]===this[_0x2ec784(0x164)])throw new _0x19e5d5(_0x2ec784(0xfc),this);const _0x1b4a23=this[_0x2ec784(0x160)][_0x2ec784(0xf3)][_0x2ec784(0x16a)](_0x2ec784(0xdc)),_0x4d4afd=[_0x2ec784(0xea),_0x2ec784(0x161),_0x2ec784(0x137)];if(!_0x1b4a23[_0x2ec784(0xe4)]||!_0x1b4a23[_0x2ec784(0x108)](_0x589bf3=>_0x4d4afd[_0x2ec784(0xae)](_0x589bf3)))throw new _0x19e5d5(_0x2ec784(0xef),this,{'invalidConfig':_0x1b4a23});const _0xfb82bb=new Set(),_0x2b5252=this[_0x2ec784(0x160)][_0x2ec784(0xf3)][_0x2ec784(0x16a)](_0x2ec784(0x112));for(const _0x39b8f2 of _0x2b5252){if(_0xfb82bb[_0x2ec784(0x143)](_0x39b8f2['id']))throw new _0x19e5d5(_0x2ec784(0xb5),this,{'duplicateId':_0x39b8f2['id']});_0xfb82bb[_0x2ec784(0xfd)](_0x39b8f2['id']);}}[_0x65f55(0x13b)](){const _0x26a7e5=_0x65f55,_0x2ae172=this[_0x26a7e5(0x160)][_0x26a7e5(0xf3)][_0x26a7e5(0x16a)](_0x26a7e5(0xdc)),_0xfb30f7=[];if(_0x2ae172[_0x26a7e5(0xae)](_0x26a7e5(0xea))&&_0xfb30f7[_0x26a7e5(0xf9)](_0x26a7e5(0xea)),_0x2ae172[_0x26a7e5(0xae)](_0x26a7e5(0x161))&&_0xfb30f7[_0x26a7e5(0xf9)](_0x26a7e5(0x161)),_0x2ae172[_0x26a7e5(0xae)](_0x26a7e5(0x137))){const _0x407f2e=this[_0x26a7e5(0x160)][_0x26a7e5(0xf3)][_0x26a7e5(0x16a)](_0x26a7e5(0x112));_0xfb30f7[_0x26a7e5(0xf9)](..._0x407f2e[_0x26a7e5(0x169)](_0x10f370=>_0x10f370['id']));}return _0xfb30f7;}[_0x65f55(0x111)](){const _0x30c9f2=_0x65f55;this[_0x30c9f2(0x160)][_0x30c9f2(0x10f)][_0x30c9f2(0xfa)][_0x30c9f2(0x109)](_0x30c9f2(0x15f),{'inheritAllFrom':_0x30c9f2(0x100),'allowAttributes':['id'],'allowWhere':_0x30c9f2(0xf5)});}[_0x65f55(0x116)](){const _0x25eaf9=_0x65f55,_0x179f5d=this[_0x25eaf9(0x160)][_0x25eaf9(0x113)];_0x179f5d[_0x25eaf9(0x162)](_0x25eaf9(0x150))[_0x25eaf9(0xfd)](_0x3d2d71=>{const _0x2b94d7=_0x25eaf9;_0x3d2d71['on'](_0x2b94d7(0xd0),(_0x4f1eed,_0x26ba3c,_0x4a2fda)=>{const _0x3fd41f=_0x2b94d7,{consumable:_0x1f53e9,writer:_0x4f0064,schema:_0x38e735}=_0x4a2fda,{viewItem:_0x3e6861}=_0x26ba3c;if(!_0x1f53e9[_0x3fd41f(0xf2)](_0x3e6861))return;const _0x1245bd=_0x3e6861[_0x3fd41f(0x163)][_0x3fd41f(0x15e)](this[_0x3fd41f(0xe7)])[_0x3fd41f(0x168)](_0x3324e5=>_0x3324e5);if(0x1!==_0x1245bd[_0x3fd41f(0xe4)]||_0x1245bd[0x0][_0x3fd41f(0xbf)](this[_0x3fd41f(0xe7)])){if(!_0x38e735[_0x3fd41f(0xb8)](_0x26ba3c[_0x3fd41f(0x135)],_0x3fd41f(0xf5))){if(!_0x3c4dc2(_0x26ba3c[_0x3fd41f(0x135)],_0x3fd41f(0xf5),_0x38e735))return;_0x26ba3c[_0x3fd41f(0x135)]=_0x3fc3ec(_0x26ba3c[_0x3fd41f(0x135)],_0x4f0064);}_0x1f53e9[_0x3fd41f(0xf8)](_0x3e6861);for(const _0x3de3c9 of _0x1245bd){const _0x4ac600=_0x26ba3c[_0x3fd41f(0x135)];let _0x3be7ed;if(_0x3de3c9[_0x3fd41f(0xbf)](this[_0x3fd41f(0xe7)])){const _0x279c43=_0x3de3c9[_0x3fd41f(0xbc)](this[_0x3fd41f(0x130)][_0x3fd41f(0xe4)],_0x3de3c9[_0x3fd41f(0xe4)]-this[_0x3fd41f(0x164)][_0x3fd41f(0xe4)]);_0x3be7ed=_0x4f0064[_0x3fd41f(0x121)](_0x3fd41f(0x15f),{'id':_0x279c43});}else _0x3be7ed=_0x4f0064[_0x3fd41f(0xc5)](_0x3de3c9);_0x4f0064[_0x3fd41f(0x129)](_0x3be7ed,_0x4ac600),_0x26ba3c[_0x3fd41f(0x135)]=_0x4ac600[_0x3fd41f(0x149)](_0x3be7ed[_0x3fd41f(0x148)]),_0x26ba3c[_0x3fd41f(0x11a)]=_0x4f0064[_0x3fd41f(0xb4)](_0x26ba3c[_0x3fd41f(0x11a)]?_0x26ba3c[_0x3fd41f(0x11a)][_0x3fd41f(0x140)]:_0x4ac600,_0x26ba3c[_0x3fd41f(0x135)]);}}});}),_0x179f5d[_0x25eaf9(0x162)](_0x25eaf9(0x13d))[_0x25eaf9(0x158)]({'model':_0x25eaf9(0x15f),'view':(_0x2252b2,{writer:_0xb52f75})=>this[_0x25eaf9(0xf1)](_0x2252b2,_0xb52f75)}),_0x179f5d[_0x25eaf9(0x162)](_0x25eaf9(0xbe))[_0x25eaf9(0x158)]({'model':_0x25eaf9(0x15f),'view':(_0x46300e,{writer:_0x2cbee4,options:_0x3e457e})=>this[_0x25eaf9(0xe9)](_0x46300e,_0x2cbee4,_0x3e457e[_0x25eaf9(0x104)])});}[_0x65f55(0xf1)](_0x44bf62,_0x19cf69){const _0xb4600e=_0x65f55,{label:_0x591a2f,classes:_0x5469aa,status:_0x3de0b0}=this[_0xb4600e(0xad)](_0x44bf62),_0x37f4b4=this[_0xb4600e(0x130)],_0x136d62=this[_0xb4600e(0x164)];let _0x4c8e2f;return _0xb4600e(0xea)===this[_0xb4600e(0x12b)]?_0x4c8e2f=_0x19cf69[_0xb4600e(0xf0)](_0xb4600e(0xd9),{'class':_0x5469aa},[_0x19cf69[_0xb4600e(0x132)](_0xb4600e(0xd9),{'class':_0xb4600e(0x136)},function(_0x1b2e47){const _0x1594cc=_0xb4600e,_0x241602=this[_0x1594cc(0xd3)](_0x1b2e47);return _0x241602[_0x1594cc(0x141)]=_0x37f4b4,_0x241602;}),_0x19cf69[_0xb4600e(0xf0)](_0xb4600e(0xd9),{'class':_0xb4600e(0xe0)},_0x19cf69[_0xb4600e(0xc5)](String(_0x591a2f))),_0x19cf69[_0xb4600e(0x132)](_0xb4600e(0xd9),{'class':_0xb4600e(0x136)},function(_0x45fdd1){const _0x25bcb9=_0xb4600e,_0x53324a=this[_0x25bcb9(0xd3)](_0x45fdd1);return _0x53324a[_0x25bcb9(0x141)]=_0x136d62,_0x53324a;})]):_0x3de0b0?(_0x4c8e2f=_0x19cf69[_0xb4600e(0xf0)](_0xb4600e(0xd9),{'class':_0x5469aa},[_0x19cf69[_0xb4600e(0xc5)](String(_0x591a2f)),_0x19cf69[_0xb4600e(0x132)](_0xb4600e(0xd9),{'class':_0xb4600e(0xac)},function(_0x325eba){const _0x14ef1f=_0xb4600e,_0x3c9dc8=this[_0x14ef1f(0xd3)](_0x325eba),_0x290559=new _0x599648();return _0x290559[_0x14ef1f(0xc9)]({'content':_0x544cca}),_0x290559[_0x14ef1f(0xff)](),_0x3c9dc8[_0x14ef1f(0x16d)](_0x290559[_0x14ef1f(0xf4)]),_0x3c9dc8;})]),_0x19cf69[_0xb4600e(0x16e)](_0xb4600e(0xd7),_0x3de0b0,_0x4c8e2f)):_0x4c8e2f=_0x19cf69[_0xb4600e(0xf0)](_0xb4600e(0xd9),{'class':_0x5469aa},[_0x19cf69[_0xb4600e(0xc5)](String(_0x591a2f))]),_0x19cf69[_0xb4600e(0x16e)](_0xb4600e(0x15f),!0x0,_0x4c8e2f),_0x18c3af(_0x4c8e2f,_0x19cf69);}[_0x65f55(0xad)](_0x5133cc){const _0xbe1a6e=_0x65f55,_0x4c2f4e=this[_0xbe1a6e(0xb0)][_0xbe1a6e(0x15c)](_0x4fbfcc=>_0x4fbfcc['id']===_0x5133cc[_0xbe1a6e(0x155)]('id'));if(!_0x4c2f4e)return _0xbe1a6e(0xea)===this[_0xbe1a6e(0x12b)]?{'label':_0x5133cc[_0xbe1a6e(0x155)]('id'),'classes':_0xbe1a6e(0xfb)}:{'label':_0x5133cc[_0xbe1a6e(0x155)]('id'),'classes':_0xbe1a6e(0x15a),'status':_0xbe1a6e(0xc7)};const _0x494caa=this[_0xbe1a6e(0xb6)](_0x4c2f4e['id']),_0x8ba074=this[_0xbe1a6e(0xce)](_0x5133cc[_0xbe1a6e(0x155)]('id'));if(_0xbe1a6e(0xea)===this[_0xbe1a6e(0x12b)])return{'label':_0x494caa,'classes':_0xbe1a6e(0xfb)};if(_0xbe1a6e(0x161)===this[_0xbe1a6e(0x12b)])return _0x8ba074?{'label':_0x8ba074,'classes':_0xbe1a6e(0x11c)}:{'label':_0x494caa,'classes':_0xbe1a6e(0xb2),'status':_0xbe1a6e(0xb9)};const _0xd31632=this[_0xbe1a6e(0x160)][_0xbe1a6e(0xf3)][_0xbe1a6e(0x16a)](_0xbe1a6e(0x112))[_0xbe1a6e(0x15c)](_0x3ab673=>_0x3ab673['id']===this[_0xbe1a6e(0x12b)])[_0xbe1a6e(0xec)][_0x4c2f4e['id']];return _0xd31632?{'label':_0xbe1a6e(0x102)==typeof _0xd31632?_0xd31632(this[_0xbe1a6e(0x160)]):_0xd31632,'classes':_0xbe1a6e(0x11c)}:_0x8ba074?{'label':_0x8ba074,'classes':_0xbe1a6e(0x107),'status':_0xbe1a6e(0x16c)}:{'label':_0x494caa,'classes':_0xbe1a6e(0x126),'status':_0xbe1a6e(0x16b)};}[_0x65f55(0xe9)](_0x42f3c4,_0x1e6782,_0x8de36f){const _0x1387f7=_0x65f55,_0x5cb5a0=_0x42f3c4[_0x1387f7(0x155)]('id'),_0x3ee117=_0x8de36f&&_0x8de36f[_0x5cb5a0]?_0x8de36f[_0x5cb5a0]:this[_0x1387f7(0x130)]+_0x5cb5a0+this[_0x1387f7(0x164)],_0x511599=_0x1e6782[_0x1387f7(0xc5)](_0x3ee117),_0x5fbe0b=_0x1e6782[_0x1387f7(0xf0)](_0x1387f7(0xd9));return _0x1e6782[_0x1387f7(0x16e)](_0x1387f7(0xcf),!0x0,_0x5fbe0b),_0x1e6782[_0x1387f7(0x129)](_0x1e6782[_0x1387f7(0xaf)](_0x5fbe0b,0x0),_0x511599),_0x5fbe0b;}[_0x65f55(0x139)](){const _0x5e9ecf=_0x65f55;this[_0x5e9ecf(0x10e)][_0x5e9ecf(0xbb)](_0xe0cfe3=>{const _0x4b68e2=_0x5e9ecf;_0x4b68e2(0x131)!==_0xe0cfe3[_0x4b68e2(0x12f)][_0x4b68e2(0x110)]&&this[_0x4b68e2(0x160)][_0x4b68e2(0xe6)][_0x4b68e2(0xf6)](_0xe0cfe3);});}[_0x65f55(0x128)](_0x290e49){const _0x5d7598=_0x65f55;if(!this[_0x5d7598(0x13f)][_0x5d7598(0xae)](_0x290e49))throw new _0x19e5d5(_0x5d7598(0xe2),this,{'availablePreviewModes':this[_0x5d7598(0x13f)],'previewMode':_0x290e49});}[_0x65f55(0x14e)](){const _0x4805f7=_0x65f55;for(const _0x218887 of this[_0x4805f7(0x160)][_0x4805f7(0x10f)][_0x4805f7(0xd2)][_0x4805f7(0x115)][_0x4805f7(0xc0)]({'includeChangesInGraveyard':!0x0})){if(_0x4805f7(0x129)!==_0x218887[_0x4805f7(0x114)]||_0x4805f7(0xf5)===_0x218887[_0x4805f7(0x12c)])continue;if(_0x4805f7(0x15f)===_0x218887[_0x4805f7(0x12c)]){this[_0x4805f7(0x10e)][_0x4805f7(0xfd)](_0x218887[_0x4805f7(0x120)][_0x4805f7(0x166)]);continue;}const _0x5d3fcb=this[_0x4805f7(0x160)][_0x4805f7(0x10f)][_0x4805f7(0xdf)](_0x218887[_0x4805f7(0x120)][_0x4805f7(0x166)]);for(const _0xec54ed of _0x5d3fcb[_0x4805f7(0x153)]())_0xec54ed['is'](_0x4805f7(0xf4),_0x4805f7(0x15f))&&this[_0x4805f7(0x10e)][_0x4805f7(0xfd)](_0xec54ed);}}[_0x65f55(0xde)](){const _0x2c915a=_0x65f55,_0x579bc6=this[_0x2c915a(0x160)];_0x579bc6[_0x2c915a(0x10f)][_0x2c915a(0xd2)][_0x2c915a(0x147)](_0x181d1d=>{const _0x24c6c4=_0x2c915a;if(!_0x181d1d[_0x24c6c4(0x146)][_0x24c6c4(0xd4)])return!0x1;const _0x352fae=[],_0x286773=new Set(),_0x4d1ba4=this[_0x24c6c4(0xe7)];let _0x23cdd1=!0x1;for(const _0x313844 of _0x579bc6[_0x24c6c4(0x10f)][_0x24c6c4(0xd2)][_0x24c6c4(0x115)][_0x24c6c4(0xc0)]())if(_0x24c6c4(0x129)===_0x313844[_0x24c6c4(0x114)]||_0x24c6c4(0x142)===_0x313844[_0x24c6c4(0x114)]){let _0x31f80a=_0x24c6c4(0xf5)==_0x313844[_0x24c6c4(0x12c)]?_0x313844[_0x24c6c4(0x120)][_0x24c6c4(0x138)]:_0x313844[_0x24c6c4(0x120)][_0x24c6c4(0x166)];if(!_0x31f80a)continue;_0x31f80a['is'](_0x24c6c4(0xf5))&&(_0x31f80a=_0x31f80a[_0x24c6c4(0x138)]),_0x12d6ff(_0x31f80a);}for(const _0x2e58b5 of _0x352fae[_0x24c6c4(0xb7)]()){const {match:_0x895bec,item:_0x290944}=_0x2e58b5,_0x30b8fd=_0x181d1d[_0x24c6c4(0xaf)](_0x290944,_0x895bec[_0x24c6c4(0xe5)]),_0x5a6fe2=_0x30b8fd[_0x24c6c4(0x149)](_0x895bec[0x0][_0x24c6c4(0xe4)]),_0x53b4bb=_0x181d1d[_0x24c6c4(0xb4)](_0x30b8fd,_0x5a6fe2),_0x4f7b8e=_0x895bec[0x0],_0x239460=_0x4f7b8e[_0x24c6c4(0xbc)](this[_0x24c6c4(0x130)][_0x24c6c4(0xe4)],_0x4f7b8e[_0x24c6c4(0xe4)]-this[_0x24c6c4(0x164)][_0x24c6c4(0xe4)]),_0x4cc145=_0x7c57f8(_0x53b4bb);_0x4cc145[_0x24c6c4(0xc9)]('id',_0x239460);const _0x529421=_0x181d1d[_0x24c6c4(0x121)](_0x24c6c4(0x15f),_0x4cc145);_0x579bc6[_0x24c6c4(0x10f)][_0x24c6c4(0xfa)][_0x24c6c4(0xb8)](_0x53b4bb[_0x24c6c4(0x140)],_0x24c6c4(0x15f))?_0x579bc6[_0x24c6c4(0x10f)][_0x24c6c4(0xe8)](_0x529421,_0x53b4bb):_0x181d1d[_0x24c6c4(0x142)](_0x53b4bb),_0x23cdd1=!0x0;}return _0x23cdd1;function _0x12d6ff(_0x2ee3bb){const _0x48d0e1=_0x24c6c4;let _0x4fec43='',_0x2cf348=0x0;if(!_0x286773[_0x48d0e1(0x143)](_0x2ee3bb))for(const _0x20da5a of _0x2ee3bb[_0x48d0e1(0xf7)]()){const _0x17b5e6=_0x20da5a[_0x48d0e1(0x159)];if(_0x20da5a['is'](_0x48d0e1(0xf5))&&(''===_0x4fec43&&_0x20da5a[_0x48d0e1(0x165)]&&(_0x2cf348=_0x20da5a[_0x48d0e1(0x165)]),_0x4fec43+=_0x20da5a[_0x48d0e1(0x163)]),!_0x17b5e6||_0x17b5e6['is'](_0x48d0e1(0xf4))){for(const _0x1c4585 of _0x4fec43[_0x48d0e1(0xb3)](_0x4d1ba4))_0x1c4585[_0x48d0e1(0xe5)]=_0x1c4585[_0x48d0e1(0xe5)]+_0x2cf348,_0x352fae[_0x48d0e1(0xf9)]({'match':_0x1c4585,'item':_0x2ee3bb});_0x286773[_0x48d0e1(0xfd)](_0x2ee3bb),_0x4fec43='';}_0x20da5a['is'](_0x48d0e1(0xf4))&&_0x12d6ff(_0x20da5a);}}function _0x7c57f8(_0x30e554){const _0x1ac26c=_0x24c6c4,_0x49cab5=_0x30e554[_0x1ac26c(0x153)](),_0x29471d=_0x49cab5[_0x1ac26c(0x167)]()[_0x1ac26c(0x125)],_0x21d15c=new Map(_0x29471d[_0x1ac26c(0x152)]());for(const _0x33240d of _0x49cab5)for(const [_0x1778e9,_0x12fd96]of _0x21d15c)_0x33240d[_0x1ac26c(0x155)](_0x1778e9)!==_0x12fd96&&_0x21d15c[_0x1ac26c(0x12e)](_0x1778e9);return _0x21d15c;}});}[_0x65f55(0xcc)](_0x2606e0){return{'id':_0x2606e0};}}
23
+ const _0x4b9028=_0x2322;(function(_0x1c03b0,_0x1b4e17){const _0x3a3a40=_0x2322,_0x5ebe32=_0x1c03b0();while(!![]){try{const _0x1b8946=-parseInt(_0x3a3a40(0x241))/0x1*(-parseInt(_0x3a3a40(0x298))/0x2)+parseInt(_0x3a3a40(0x1ee))/0x3+-parseInt(_0x3a3a40(0x20d))/0x4*(-parseInt(_0x3a3a40(0x1f0))/0x5)+parseInt(_0x3a3a40(0x283))/0x6+parseInt(_0x3a3a40(0x222))/0x7*(parseInt(_0x3a3a40(0x269))/0x8)+parseInt(_0x3a3a40(0x263))/0x9*(-parseInt(_0x3a3a40(0x270))/0xa)+-parseInt(_0x3a3a40(0x297))/0xb*(parseInt(_0x3a3a40(0x260))/0xc);if(_0x1b8946===_0x1b4e17)break;else _0x5ebe32['push'](_0x5ebe32['shift']());}catch(_0x4fc294){_0x5ebe32['push'](_0x5ebe32['shift']());}}}(_0x320c,0x92f55));import{toWidget as _0x11ff32,viewToModelPositionOutsideModelElement as _0x4dc301}from'ckeditor5/src/widget.js';import{Plugin as _0x217d58}from'ckeditor5/src/core.js';import{IconView as _0x4d35ad}from'ckeditor5/src/ui.js';import{isParagraphable as _0x17bf2d,wrapInParagraph as _0x272cf3}from'ckeditor5/src/engine.js';import{CKEditorError as _0x4985a7,logWarning as _0x1c3e54}from'ckeditor5/src/utils.js';import _0x18c311 from'./insertmergefieldcommand.js';import _0x46b5c8 from'./previewmergefieldscommand.js';import _0x4c6e81 from'../theme/icons/warning.svg';export default class s extends _0x217d58{static get[_0x4b9028(0x291)](){const _0x4c2dd9=_0x4b9028;return _0x4c2dd9(0x1e5);}constructor(_0x3edfb1){const _0x2d1a72=_0x4b9028;super(_0x3edfb1),this[_0x2d1a72(0x1fb)]=[],_0x3edfb1[_0x2d1a72(0x26e)][_0x2d1a72(0x28e)](_0x2d1a72(0x226),[_0x2d1a72(0x24b),_0x2d1a72(0x204),_0x2d1a72(0x290)]),_0x3edfb1[_0x2d1a72(0x26e)][_0x2d1a72(0x28e)](_0x2d1a72(0x285),[]),_0x3edfb1[_0x2d1a72(0x26e)][_0x2d1a72(0x28e)](_0x2d1a72(0x1ef),[]),_0x3edfb1[_0x2d1a72(0x26e)][_0x2d1a72(0x28e)](_0x2d1a72(0x256),'{{'),_0x3edfb1[_0x2d1a72(0x26e)][_0x2d1a72(0x28e)](_0x2d1a72(0x1e0),'}}'),_0x3edfb1[_0x2d1a72(0x26e)][_0x2d1a72(0x28e)](_0x2d1a72(0x1eb),!0x1),_0x3edfb1[_0x2d1a72(0x26e)][_0x2d1a72(0x28e)](_0x2d1a72(0x253),_0x234626=>(_0x1c3e54(_0x2d1a72(0x282)),{'html':_0x234626,'hasChanged':!0x1})),this[_0x2d1a72(0x27f)]=_0x3edfb1[_0x2d1a72(0x26e)][_0x2d1a72(0x21f)](_0x2d1a72(0x256)),this[_0x2d1a72(0x1f1)]=_0x3edfb1[_0x2d1a72(0x26e)][_0x2d1a72(0x21f)](_0x2d1a72(0x1e0)),this[_0x2d1a72(0x21a)]=_0x3edfb1[_0x2d1a72(0x26e)][_0x2d1a72(0x21f)](_0x2d1a72(0x1eb)),this[_0x2d1a72(0x1fb)]=this[_0x2d1a72(0x213)](),this[_0x2d1a72(0x250)]();const _0x16269c='\x5c'+this[_0x2d1a72(0x27f)][_0x2d1a72(0x209)]('')[_0x2d1a72(0x211)]('\x5c'),_0x4a005d='\x5c'+this[_0x2d1a72(0x1f1)][_0x2d1a72(0x209)]('')[_0x2d1a72(0x211)]('\x5c');this[_0x2d1a72(0x230)]=new RegExp('('+_0x16269c+'[^'+(_0x16269c+_0x4a005d)+_0x2d1a72(0x27e)+_0x4a005d+')','g'),this[_0x2d1a72(0x1d0)]=this[_0x2d1a72(0x1f6)]();const _0x21bc06=_0x3edfb1[_0x2d1a72(0x26e)][_0x2d1a72(0x21f)](_0x2d1a72(0x234))||this[_0x2d1a72(0x1d0)][0x0];this[_0x2d1a72(0x22f)](_0x21bc06),this[_0x2d1a72(0x258)](_0x2d1a72(0x273),_0x21bc06),this[_0x2d1a72(0x1cf)]=new Set(),this[_0x2d1a72(0x203)]=null;}[_0x4b9028(0x248)](){const _0x451064=_0x4b9028,_0x34557c=this[_0x451064(0x29a)];_0x34557c[_0x451064(0x24a)][_0x451064(0x24f)](_0x451064(0x25e),new _0x18c311(_0x34557c)),_0x34557c[_0x451064(0x24a)][_0x451064(0x24f)](_0x451064(0x27d),new _0x46b5c8(_0x34557c)),this[_0x451064(0x275)](),this[_0x451064(0x294)](),this['on'](_0x451064(0x262),(_0x486bc4,_0x34fdc9,_0x42abbe)=>{const _0x3192a5=_0x451064;this[_0x3192a5(0x22f)](_0x42abbe),this[_0x3192a5(0x216)]();}),this[_0x451064(0x286)](_0x34557c[_0x451064(0x221)][_0x451064(0x257)],_0x451064(0x27a),()=>{const _0x45e545=_0x451064;this[_0x45e545(0x208)]();}),_0x34557c[_0x451064(0x225)][_0x451064(0x1df)]['on'](_0x451064(0x21d),_0x4dc301(_0x34557c[_0x451064(0x221)],_0x47c718=>_0x47c718[_0x451064(0x299)](_0x451064(0x23a)))),this[_0x451064(0x265)](),_0x34557c[_0x451064(0x225)][_0x451064(0x20b)][_0x451064(0x277)][_0x451064(0x232)]({'name':_0x451064(0x268),'classes':[_0x451064(0x23a)]}),this[_0x451064(0x28b)]=_0x34557c[_0x451064(0x26e)][_0x451064(0x21f)](_0x451064(0x28b));const _0x923acc=this[_0x451064(0x29a)];this[_0x451064(0x203)]=setInterval(()=>{const _0x2a7e43=_0x451064;let _0x1e910d;for(const _0x264077 in _0x923acc){const _0x5a88f4=_0x264077,_0x378cd1=_0x923acc[_0x5a88f4];if(_0x2a7e43(0x23c)===_0x378cd1||_0x2a7e43(0x1e6)===_0x378cd1||_0x2a7e43(0x23d)===_0x378cd1||_0x2a7e43(0x219)===_0x378cd1){delete _0x923acc[_0x5a88f4],_0x1e910d=_0x378cd1;break;}}if(_0x2a7e43(0x1e6)===_0x1e910d)throw clearInterval(this[_0x2a7e43(0x203)]),new _0x4985a7(_0x2a7e43(0x235),null);if(_0x2a7e43(0x23c)===_0x1e910d&&console[_0x2a7e43(0x25f)](_0x2a7e43(0x281)),_0x2a7e43(0x219)===_0x1e910d)throw clearInterval(this[_0x2a7e43(0x203)]),new _0x4985a7(_0x2a7e43(0x1d4),null);_0x2a7e43(0x23d)===_0x1e910d&&clearInterval(this[_0x2a7e43(0x203)]);},0x3e8);}[_0x4b9028(0x1f3)](){const _0x4d6aa9=_0x4b9028,_0x4da197={},_0x1d0453=this[_0x4d6aa9(0x27b)]();for(const _0x28351b of _0x1d0453)_0x4da197[_0x28351b]=this[_0x4d6aa9(0x200)](_0x28351b);return _0x4da197;}[_0x4b9028(0x26f)](_0xe42efe,_0x5cc767=!0x1){const _0x5a87d7=_0x4b9028,_0x356245={},_0x9112c3=this[_0x5a87d7(0x27b)]();for(const _0xaf2481 of _0x9112c3){let _0x1f9fe4=this[_0x5a87d7(0x1e9)](_0xaf2481,_0xe42efe);null===_0x1f9fe4&&_0x5cc767&&(_0x1f9fe4=this[_0x5a87d7(0x200)](_0xaf2481)),_0x356245[_0xaf2481]=_0x1f9fe4;}return _0x356245;}[_0x4b9028(0x236)](_0xed920a){const _0x5bb094=_0x4b9028,_0x322625=this[_0x5bb094(0x1fa)](_0xed920a);return _0x322625&&_0x322625[_0x5bb094(0x266)]?_0x322625[_0x5bb094(0x266)]:_0xed920a;}[_0x4b9028(0x200)](_0x1b9825){const _0x51b170=_0x4b9028,_0xa5cb3=this[_0x51b170(0x1fa)](_0x1b9825);if(!_0xa5cb3||void 0x0===_0xa5cb3[_0x51b170(0x1fe)])return null;const _0x5a3a97=_0x51b170(0x292)==typeof _0xa5cb3[_0x51b170(0x1fe)]?_0xa5cb3[_0x51b170(0x1fe)](this[_0x51b170(0x29a)]):_0xa5cb3[_0x51b170(0x1fe)];return String(_0x5a3a97);}[_0x4b9028(0x1e9)](_0x3b46d6,_0x267cda){const _0x3d7af4=_0x4b9028,_0x471237=this[_0x3d7af4(0x29a)][_0x3d7af4(0x26e)][_0x3d7af4(0x21f)](_0x3d7af4(0x285))[_0x3d7af4(0x220)](_0x3d91d3=>_0x3d91d3['id']===_0x267cda);if(!_0x471237)throw new _0x4985a7(_0x3d7af4(0x293),null);const _0x415ae7=_0x471237[_0x3d7af4(0x24c)][_0x3b46d6];if(void 0x0===_0x415ae7)return null;const _0x17a4d0=_0x3d7af4(0x292)==typeof _0x415ae7?_0x415ae7(this[_0x3d7af4(0x29a)]):_0x415ae7;return String(_0x17a4d0);}[_0x4b9028(0x224)](){const _0xf49d70=_0x4b9028,_0x1e45c4=new Set();for(const _0x247722 of this[_0xf49d70(0x1cf)])_0xf49d70(0x205)!==_0x247722[_0xf49d70(0x1ec)][_0xf49d70(0x242)]&&_0x1e45c4[_0xf49d70(0x24f)](_0x247722[_0xf49d70(0x1f8)]('id'));return Array[_0xf49d70(0x1f2)](_0x1e45c4);}[_0x4b9028(0x27b)](){const _0x5e2ae2=_0x4b9028,_0x25aca5=this[_0x5e2ae2(0x1fb)][_0x5e2ae2(0x1ff)](_0x36372d=>_0x36372d['id']),_0x3a1d04=this[_0x5e2ae2(0x224)]();return Array[_0x5e2ae2(0x1f2)](new Set([..._0x25aca5,..._0x3a1d04]));}[_0x4b9028(0x1fa)](_0x23b825){const _0xeae7fd=_0x4b9028;return this[_0xeae7fd(0x1fb)][_0xeae7fd(0x220)](_0x50f975=>_0x50f975['id']===_0x23b825)||null;}[_0x4b9028(0x1d1)](){const _0x1edc36=_0x4b9028;this[_0x1edc36(0x203)]&&clearInterval(this[_0x1edc36(0x203)]);}[_0x4b9028(0x213)](){const _0x4f6fe3=_0x4b9028,_0x334242=new Set(),_0xc147a6=this[_0x4f6fe3(0x29a)];return _0xc147a6[_0x4f6fe3(0x26e)][_0x4f6fe3(0x21f)](_0x4f6fe3(0x1ef))[_0x4f6fe3(0x22d)]((_0x453522,_0x46d91e)=>{const _0x4b00bb=_0x4f6fe3;if(_0x4b00bb(0x210)in _0x46d91e){if(_0x334242[_0x4b00bb(0x255)](_0x46d91e[_0x4b00bb(0x210)]))throw new _0x4985a7(_0x4b00bb(0x296),_0xc147a6,{'duplicateId':_0x46d91e[_0x4b00bb(0x210)]});_0x334242[_0x4b00bb(0x24f)](_0x46d91e[_0x4b00bb(0x210)]);}return _0x4b00bb(0x210)in _0x46d91e?function(_0x3d8729,_0x3b7745){const _0x3b2d50=_0x4b00bb;for(const _0x4ce2c7 of _0x3b7745[_0x3b2d50(0x243)])_0x3d8729=_0x3d8729[_0x3b2d50(0x27c)](_0x4ce2c7);return _0x3d8729;}[_0x4b00bb(0x267)](_0xc147a6)(_0x453522,_0x46d91e):_0x453522[_0x4b00bb(0x27c)](_0x46d91e);},new Array());}[_0x4b9028(0x250)](){const _0x382609=_0x4b9028,_0x48ac32=/^['"`!#%:;=@{}~$()*+/?[\\\]^|]+$/;if(!_0x48ac32[_0x382609(0x1dc)](this[_0x382609(0x27f)])||!_0x48ac32[_0x382609(0x1dc)](this[_0x382609(0x1f1)]))throw new _0x4985a7(_0x382609(0x237),this,{'prefix':this[_0x382609(0x27f)],'suffix':this[_0x382609(0x1f1)]});if(this[_0x382609(0x27f)][_0x382609(0x1e7)]>0x8||this[_0x382609(0x1f1)][_0x382609(0x1e7)]>0x8)throw new _0x4985a7(_0x382609(0x26a),this,{'prefix':this[_0x382609(0x27f)],'suffix':this[_0x382609(0x1f1)],'limit':0x8});const _0x469de9=/^[a-zA-Z0-9_.-]+$/,_0x13dbad=new Set();if(this[_0x382609(0x1fb)][_0x382609(0x1ff)](_0x46357d=>{const _0x29ac5c=_0x382609;if(!_0x469de9[_0x29ac5c(0x1dc)](_0x46357d['id']))throw new _0x4985a7(_0x29ac5c(0x1d8),this,{'incorrectId':_0x46357d['id']});if(_0x13dbad[_0x29ac5c(0x255)](_0x46357d['id']))throw new _0x4985a7(_0x29ac5c(0x1f5),this,{'duplicateId':_0x46357d['id']});_0x13dbad[_0x29ac5c(0x24f)](_0x46357d['id']);}),this[_0x382609(0x27f)]===this[_0x382609(0x1f1)])throw new _0x4985a7(_0x382609(0x279),this);const _0x249eb8=this[_0x382609(0x29a)][_0x382609(0x26e)][_0x382609(0x21f)](_0x382609(0x226)),_0x5f561a=[_0x382609(0x24b),_0x382609(0x204),_0x382609(0x290)];if(!_0x249eb8[_0x382609(0x1e7)]||!_0x249eb8[_0x382609(0x229)](_0x154539=>_0x5f561a[_0x382609(0x20c)](_0x154539)))throw new _0x4985a7(_0x382609(0x287),this,{'invalidConfig':_0x249eb8});const _0x52a543=new Set(),_0x133b5b=this[_0x382609(0x29a)][_0x382609(0x26e)][_0x382609(0x21f)](_0x382609(0x285));for(const _0x4694e2 of _0x133b5b){if(_0x52a543[_0x382609(0x255)](_0x4694e2['id']))throw new _0x4985a7(_0x382609(0x271),this,{'duplicateId':_0x4694e2['id']});_0x52a543[_0x382609(0x24f)](_0x4694e2['id']);}}[_0x4b9028(0x1f6)](){const _0x2877aa=_0x4b9028,_0x3fb649=this[_0x2877aa(0x29a)][_0x2877aa(0x26e)][_0x2877aa(0x21f)](_0x2877aa(0x226)),_0x1f4510=[];if(_0x3fb649[_0x2877aa(0x20c)](_0x2877aa(0x24b))&&_0x1f4510[_0x2877aa(0x1de)](_0x2877aa(0x24b)),_0x3fb649[_0x2877aa(0x20c)](_0x2877aa(0x204))&&_0x1f4510[_0x2877aa(0x1de)](_0x2877aa(0x204)),_0x3fb649[_0x2877aa(0x20c)](_0x2877aa(0x290))){const _0x29a9de=this[_0x2877aa(0x29a)][_0x2877aa(0x26e)][_0x2877aa(0x21f)](_0x2877aa(0x285));_0x1f4510[_0x2877aa(0x1de)](..._0x29a9de[_0x2877aa(0x1ff)](_0x5b2a23=>_0x5b2a23['id']));}return _0x1f4510;}[_0x4b9028(0x275)](){const _0x5ea80e=_0x4b9028;this[_0x5ea80e(0x29a)][_0x5ea80e(0x221)][_0x5ea80e(0x1db)][_0x5ea80e(0x28a)](_0x5ea80e(0x206),{'inheritAllFrom':_0x5ea80e(0x251),'allowAttributes':['id'],'allowWhere':_0x5ea80e(0x22e)});}[_0x4b9028(0x294)](){const _0x3c207a=_0x4b9028,_0x66150c=this[_0x3c207a(0x29a)][_0x3c207a(0x1ea)];_0x66150c[_0x3c207a(0x24e)](_0x3c207a(0x21b))[_0x3c207a(0x24f)](_0x553899=>{const _0x37c987=_0x3c207a;_0x553899['on'](_0x37c987(0x22b),(_0xc7a8c1,_0x1a6f13,_0x38ac56)=>{const _0x14a927=_0x37c987,{consumable:_0xdce703,writer:_0x297efc,schema:_0x15e691}=_0x38ac56,{viewItem:_0x18e7d4}=_0x1a6f13;if(!_0xdce703[_0x14a927(0x1dc)](_0x18e7d4))return;const _0x2fb4e8=_0x18e7d4[_0x14a927(0x1ed)][_0x14a927(0x209)](this[_0x14a927(0x230)])[_0x14a927(0x1f7)](_0x43970a=>_0x43970a);if(0x1!==_0x2fb4e8[_0x14a927(0x1e7)]||_0x2fb4e8[0x0][_0x14a927(0x289)](this[_0x14a927(0x230)])){if(!_0x15e691[_0x14a927(0x20f)](_0x1a6f13[_0x14a927(0x217)],_0x14a927(0x22e))){if(!_0x17bf2d(_0x1a6f13[_0x14a927(0x217)],_0x14a927(0x22e),_0x15e691))return;_0x1a6f13[_0x14a927(0x217)]=_0x272cf3(_0x1a6f13[_0x14a927(0x217)],_0x297efc);}_0xdce703[_0x14a927(0x288)](_0x18e7d4);for(const _0x5b8a94 of _0x2fb4e8){const _0x4435e0=_0x1a6f13[_0x14a927(0x217)];let _0x1a6da9;if(_0x5b8a94[_0x14a927(0x289)](this[_0x14a927(0x230)])){const _0x5e127f=_0x5b8a94[_0x14a927(0x21e)](this[_0x14a927(0x27f)][_0x14a927(0x1e7)],_0x5b8a94[_0x14a927(0x1e7)]-this[_0x14a927(0x1f1)][_0x14a927(0x1e7)]);_0x1a6da9=_0x297efc[_0x14a927(0x239)](_0x14a927(0x206),{'id':_0x5e127f});}else _0x1a6da9=_0x297efc[_0x14a927(0x1dd)](_0x5b8a94);_0x297efc[_0x14a927(0x26d)](_0x1a6da9,_0x4435e0),_0x1a6f13[_0x14a927(0x217)]=_0x4435e0[_0x14a927(0x26b)](_0x1a6da9[_0x14a927(0x22a)]),_0x1a6f13[_0x14a927(0x278)]=_0x297efc[_0x14a927(0x272)](_0x1a6f13[_0x14a927(0x278)]?_0x1a6f13[_0x14a927(0x278)][_0x14a927(0x240)]:_0x4435e0,_0x1a6f13[_0x14a927(0x217)]);}}});}),_0x66150c[_0x3c207a(0x24e)](_0x3c207a(0x1e8))[_0x3c207a(0x1d5)]({'model':_0x3c207a(0x206),'view':(_0x177baa,{writer:_0x43398f})=>this[_0x3c207a(0x1e2)](_0x177baa,_0x43398f)}),_0x66150c[_0x3c207a(0x24e)](_0x3c207a(0x214))[_0x3c207a(0x1d5)]({'model':_0x3c207a(0x206),'view':(_0x319502,{writer:_0x28cda4,options:_0x34176d})=>this[_0x3c207a(0x201)](_0x319502,_0x28cda4,_0x34176d[_0x3c207a(0x25b)])});}[_0x4b9028(0x1e2)](_0x4fccc5,_0x2d2c34){const _0x54e2bd=_0x4b9028,{label:_0x4222ce,classes:_0x217bc3,status:_0x1e1e10}=this[_0x54e2bd(0x28f)](_0x4fccc5),_0x49bfd7=this[_0x54e2bd(0x27f)],_0x3839ad=this[_0x54e2bd(0x1f1)],_0x1a0e56=this[_0x54e2bd(0x29a)][_0x54e2bd(0x26e)][_0x54e2bd(0x21f)](_0x54e2bd(0x253));let _0x37fe26;if(_0x54e2bd(0x24b)===this[_0x54e2bd(0x273)])_0x37fe26=_0x2d2c34[_0x54e2bd(0x25c)](_0x54e2bd(0x268),{'class':_0x217bc3},[_0x2d2c34[_0x54e2bd(0x245)](_0x54e2bd(0x268),{'class':_0x54e2bd(0x1fc)},function(_0x13f193){const _0x59236a=_0x54e2bd,_0x1a107a=this[_0x59236a(0x252)](_0x13f193);return _0x1a107a[_0x59236a(0x215)]=_0x49bfd7,_0x1a107a;}),_0x2d2c34[_0x54e2bd(0x25c)](_0x54e2bd(0x268),{'class':_0x54e2bd(0x249)},_0x2d2c34[_0x54e2bd(0x1dd)](String(_0x4222ce))),_0x2d2c34[_0x54e2bd(0x245)](_0x54e2bd(0x268),{'class':_0x54e2bd(0x1fc)},function(_0x545104){const _0x15fbea=_0x54e2bd,_0x3a309d=this[_0x15fbea(0x252)](_0x545104);return _0x3a309d[_0x15fbea(0x215)]=_0x3839ad,_0x3a309d;})]);else{if(_0x1e1e10){const _0x3b33fe=this[_0x54e2bd(0x21a)]?_0x2d2c34[_0x54e2bd(0x25d)](_0x54e2bd(0x268),{},function(_0x44f612,_0x5bb635){const _0x4e5685=_0x54e2bd;_0x5bb635[_0x4e5685(0x246)](_0x44f612,_0x1a0e56(_0x4222ce)[_0x4e5685(0x1f4)]);}):_0x2d2c34[_0x54e2bd(0x1dd)](_0x4222ce);_0x37fe26=_0x2d2c34[_0x54e2bd(0x25c)](_0x54e2bd(0x268),{'class':_0x217bc3},[_0x3b33fe,_0x2d2c34[_0x54e2bd(0x245)](_0x54e2bd(0x268),{'class':_0x54e2bd(0x23f)},function(_0x5f3f82){const _0x35cd6e=_0x54e2bd,_0x4e1115=this[_0x35cd6e(0x252)](_0x5f3f82),_0x46cb4e=new _0x4d35ad();return _0x46cb4e[_0x35cd6e(0x258)]({'content':_0x4c6e81}),_0x46cb4e[_0x35cd6e(0x227)](),_0x4e1115[_0x35cd6e(0x26c)](_0x46cb4e[_0x35cd6e(0x24d)]),_0x4e1115;})]),_0x2d2c34[_0x54e2bd(0x202)](_0x54e2bd(0x1da),_0x1e1e10,_0x37fe26);}else{const _0x1034e4=this[_0x54e2bd(0x21a)]?_0x2d2c34[_0x54e2bd(0x25d)](_0x54e2bd(0x268),{},function(_0x3b0a56,_0x3ff74){const _0x123e5c=_0x54e2bd;_0x3ff74[_0x123e5c(0x246)](_0x3b0a56,_0x1a0e56(_0x4222ce)[_0x123e5c(0x1f4)]);}):_0x2d2c34[_0x54e2bd(0x1dd)](_0x4222ce);_0x37fe26=_0x2d2c34[_0x54e2bd(0x25c)](_0x54e2bd(0x268),{'class':_0x217bc3},_0x1034e4);}}return _0x2d2c34[_0x54e2bd(0x202)](_0x54e2bd(0x206),!0x0,_0x37fe26),_0x11ff32(_0x37fe26,_0x2d2c34);}[_0x4b9028(0x28f)](_0x426b33){const _0x1f257f=_0x4b9028,_0x372769=this[_0x1f257f(0x1fa)](_0x426b33[_0x1f257f(0x1f8)]('id'));if(!_0x372769)return _0x1f257f(0x24b)===this[_0x1f257f(0x273)]?{'label':_0x426b33[_0x1f257f(0x1f8)]('id'),'classes':_0x1f257f(0x23a)}:{'label':_0x426b33[_0x1f257f(0x1f8)]('id'),'classes':_0x1f257f(0x23e),'status':_0x1f257f(0x218)};const _0x2b3487=this[_0x1f257f(0x236)](_0x372769['id']),_0x47f474=this[_0x1f257f(0x200)](_0x426b33[_0x1f257f(0x1f8)]('id'));if(_0x1f257f(0x24b)===this[_0x1f257f(0x273)])return{'label':_0x2b3487,'classes':_0x1f257f(0x23a)};if(_0x1f257f(0x204)===this[_0x1f257f(0x273)])return _0x47f474?{'label':_0x47f474,'classes':_0x1f257f(0x20a)}:{'label':_0x2b3487,'classes':_0x1f257f(0x274),'status':_0x1f257f(0x284)};const _0x1fa8c6=this[_0x1f257f(0x1e9)](_0x372769['id'],this[_0x1f257f(0x273)]);return _0x1fa8c6?{'label':_0x1fa8c6,'classes':_0x1f257f(0x20a)}:_0x47f474?{'label':_0x47f474,'classes':_0x1f257f(0x1d7),'status':_0x1f257f(0x261)}:{'label':_0x2b3487,'classes':_0x1f257f(0x28d),'status':_0x1f257f(0x218)};}[_0x4b9028(0x201)](_0x43323d,_0x503b3f,_0x2611e3){const _0x3f6197=_0x4b9028,_0x42c070=_0x43323d[_0x3f6197(0x1f8)]('id'),_0x13f63f=_0x2611e3&&_0x2611e3[_0x42c070]?_0x2611e3[_0x42c070]:this[_0x3f6197(0x27f)]+_0x42c070+this[_0x3f6197(0x1f1)];let _0x4ba397;if(_0x2611e3)_0x4ba397=_0x503b3f[_0x3f6197(0x25d)](_0x3f6197(0x268),{},function(_0x50ae85,_0xa1d0da){const _0x5e0485=_0x3f6197;_0xa1d0da[_0x5e0485(0x246)](_0x50ae85,String(_0x13f63f));});else{_0x4ba397=_0x503b3f[_0x3f6197(0x25c)](_0x3f6197(0x268));const _0x41ac59=_0x503b3f[_0x3f6197(0x1dd)](_0x13f63f);_0x503b3f[_0x3f6197(0x26d)](_0x503b3f[_0x3f6197(0x21c)](_0x4ba397,_0x3f6197(0x1d3)),_0x41ac59);}return _0x503b3f[_0x3f6197(0x202)](_0x3f6197(0x295),!0x0,_0x4ba397),_0x4ba397;}[_0x4b9028(0x216)](){const _0xfb4434=_0x4b9028;this[_0xfb4434(0x1cf)][_0xfb4434(0x1d2)](_0x21ef82=>{const _0x28c43c=_0xfb4434;_0x28c43c(0x205)!==_0x21ef82[_0x28c43c(0x1ec)][_0x28c43c(0x242)]&&this[_0x28c43c(0x29a)][_0x28c43c(0x225)][_0x28c43c(0x20e)](_0x21ef82);});}[_0x4b9028(0x22f)](_0x19b123){const _0xdaa99e=_0x4b9028;if(!this[_0xdaa99e(0x1d0)][_0xdaa99e(0x20c)](_0x19b123))throw new _0x4985a7(_0xdaa99e(0x207),this,{'availablePreviewModes':this[_0xdaa99e(0x1d0)],'previewMode':_0x19b123});}[_0x4b9028(0x208)](){const _0x513521=_0x4b9028;for(const _0x3429ee of this[_0x513521(0x29a)][_0x513521(0x221)][_0x513521(0x257)][_0x513521(0x228)][_0x513521(0x212)]({'includeChangesInGraveyard':!0x0})){if(_0x513521(0x26d)!==_0x3429ee[_0x513521(0x259)]||_0x513521(0x22e)===_0x3429ee[_0x513521(0x1e4)])continue;if(_0x513521(0x206)===_0x3429ee[_0x513521(0x1e4)]){this[_0x513521(0x1cf)][_0x513521(0x24f)](_0x3429ee[_0x513521(0x231)][_0x513521(0x247)]);continue;}const _0x4b52b6=this[_0x513521(0x29a)][_0x513521(0x221)][_0x513521(0x276)](_0x3429ee[_0x513521(0x231)][_0x513521(0x247)]);for(const _0x205587 of _0x4b52b6[_0x513521(0x23b)]())_0x205587['is'](_0x513521(0x24d),_0x513521(0x206))&&this[_0x513521(0x1cf)][_0x513521(0x24f)](_0x205587);}}[_0x4b9028(0x265)](){const _0x1a46d0=_0x4b9028,_0x389a50=this[_0x1a46d0(0x29a)];_0x389a50[_0x1a46d0(0x221)][_0x1a46d0(0x257)][_0x1a46d0(0x244)](_0x29afae=>{const _0x32a911=_0x1a46d0;if(!_0x29afae[_0x32a911(0x1f9)][_0x32a911(0x264)])return!0x1;const _0x5545aa=[],_0x1cfcc4=new Set(),_0x4e8e06=this[_0x32a911(0x230)];let _0x2cdcf1=!0x1;for(const _0x2ab4c8 of _0x389a50[_0x32a911(0x221)][_0x32a911(0x257)][_0x32a911(0x228)][_0x32a911(0x212)]())if(_0x32a911(0x26d)===_0x2ab4c8[_0x32a911(0x259)]||_0x32a911(0x280)===_0x2ab4c8[_0x32a911(0x259)]){let _0x2b6b9b=_0x32a911(0x22e)==_0x2ab4c8[_0x32a911(0x1e4)]?_0x2ab4c8[_0x32a911(0x231)][_0x32a911(0x22c)]:_0x2ab4c8[_0x32a911(0x231)][_0x32a911(0x247)];if(!_0x2b6b9b)continue;_0x2b6b9b['is'](_0x32a911(0x22e))&&(_0x2b6b9b=_0x2b6b9b[_0x32a911(0x22c)]),_0x309a9b(_0x2b6b9b);}for(const _0x1742c8 of _0x5545aa[_0x32a911(0x233)]()){const {match:_0x273f93,item:_0x551069}=_0x1742c8,_0x31ab19=_0x29afae[_0x32a911(0x21c)](_0x551069,_0x273f93[_0x32a911(0x1d6)]),_0x2835bf=_0x31ab19[_0x32a911(0x26b)](_0x273f93[0x0][_0x32a911(0x1e7)]),_0x3e0049=_0x29afae[_0x32a911(0x272)](_0x31ab19,_0x2835bf),_0x12ee1e=_0x273f93[0x0],_0x3c5d16=_0x12ee1e[_0x32a911(0x21e)](this[_0x32a911(0x27f)][_0x32a911(0x1e7)],_0x12ee1e[_0x32a911(0x1e7)]-this[_0x32a911(0x1f1)][_0x32a911(0x1e7)]),_0x35acf6=_0x22638c(_0x3e0049);_0x35acf6[_0x32a911(0x258)]('id',_0x3c5d16);const _0x50cc75=_0x29afae[_0x32a911(0x239)](_0x32a911(0x206),_0x35acf6);_0x389a50[_0x32a911(0x221)][_0x32a911(0x1db)][_0x32a911(0x20f)](_0x3e0049[_0x32a911(0x240)],_0x32a911(0x206))?_0x389a50[_0x32a911(0x221)][_0x32a911(0x254)](_0x50cc75,_0x3e0049):_0x29afae[_0x32a911(0x280)](_0x3e0049),_0x2cdcf1=!0x0;}return _0x2cdcf1;function _0x309a9b(_0xf29502){const _0x542d15=_0x32a911;let _0x4f88e3='',_0x15fc95=0x0;if(!_0x1cfcc4[_0x542d15(0x255)](_0xf29502))for(const _0x1d80aa of _0xf29502[_0x542d15(0x28c)]()){const _0x54e203=_0x1d80aa[_0x542d15(0x1e1)];if(_0x1d80aa['is'](_0x542d15(0x22e))&&(''===_0x4f88e3&&_0x1d80aa[_0x542d15(0x223)]&&(_0x15fc95=_0x1d80aa[_0x542d15(0x223)]),_0x4f88e3+=_0x1d80aa[_0x542d15(0x1ed)]),!_0x54e203||_0x54e203['is'](_0x542d15(0x24d))){for(const _0x5d44b6 of _0x4f88e3[_0x542d15(0x25a)](_0x4e8e06))_0x5d44b6[_0x542d15(0x1d6)]=_0x5d44b6[_0x542d15(0x1d6)]+_0x15fc95,_0x5545aa[_0x542d15(0x1de)]({'match':_0x5d44b6,'item':_0xf29502});_0x1cfcc4[_0x542d15(0x24f)](_0xf29502),_0x4f88e3='';}_0x1d80aa['is'](_0x542d15(0x24d))&&_0x309a9b(_0x1d80aa);}}function _0x22638c(_0x4e08ff){const _0x5c920f=_0x32a911,_0x37d562=_0x4e08ff[_0x5c920f(0x23b)](),_0x3726af=_0x37d562[_0x5c920f(0x1e3)]()[_0x5c920f(0x1d9)],_0x561518=new Map(_0x3726af[_0x5c920f(0x238)]());for(const _0x177dc9 of _0x37d562)for(const [_0x4ca8fe,_0x560dfb]of _0x561518)_0x177dc9[_0x5c920f(0x1f8)](_0x4ca8fe)!==_0x560dfb&&_0x561518[_0x5c920f(0x1fd)](_0x4ca8fe);return _0x561518;}});}}function _0x2322(_0xdf27d3,_0x2372a2){const _0x320c33=_0x320c();return _0x2322=function(_0x2322e3,_0x501f2b){_0x2322e3=_0x2322e3-0x1cf;let _0xb57c0a=_0x320c33[_0x2322e3];return _0xb57c0a;},_0x2322(_0xdf27d3,_0x2372a2);}function _0x320c(){const _0x4a3df2=['merge-fields-trial-license-key-reached-limit-changes','elementToElement','index','ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_default-value-used','merge-fields-invalid-id','value','mergeFieldStatus','schema','test','createText','push','mapper','mergeFields.suffix','nextSibling','_createMergeFieldWidget','next','name','MergeFieldsEditing','mergeFieldsLicenseKeyInvalid','length','editingDowncast','getMergeFieldValue','conversion','mergeFields.previewHtmlValues','root','data','3097344kLTnXA','mergeFields.definitions','51130mvYrHV','_mergeFieldSuffix','from','getDefaultValues','html','merge-fields-duplicate-merge-field-id','_getAvailablePreviewModes','filter','getAttribute','batch','getDefinition','flattenedMergeFieldDefinitions','ck-merge-field__affix','delete','defaultValue','map','getMergeFieldDefaultValue','_createTextualMergeField','setCustomProperty','_licenseKeyCheckInterval','$defaultValues','$graveyard','mergeField','merge-fields-invalid-preview-mode-set','_trackAddedMergeFields','split','ck-merge-field\x20ck-merge-field_with-value','view','includes','356bOmZKo','reconvertItem','checkChild','groupId','join','getChanges','_getFlattenedMergeFieldDefinitions','dataDowncast','innerHTML','_refreshMergeFields','modelCursor','WARNING_MISSING_DATA','mergeFieldsLicenseKeyTrialLimit:operations','_shouldPreviewHtmlValues','upcast','createPositionAt','viewToModelPosition','slice','get','find','model','21rfTgfa','startOffset','getDocumentMergeFieldsIds','editing','mergeFields.previewModes','render','differ','every','offsetSize','text','parent','reduce','$text','_validatePreviewMode','_mergeFieldRegExp','position','registerInlineObjectMatcher','reverse','mergeFields.initialPreviewMode','merge-fields-invalid-license-key','getLabel','merge-fields-invalid-prefix-or-suffix','getAttributes','createElement','ck-merge-field','getItems','mergeFieldsLicenseKeyTrial','mergeFieldsLicenseKeyValid','ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-definition','ck-merge-field__icon','start','4083fxSfhq','rootName','definitions','registerPostFixer','createUIElement','setContentOf','nodeAfter','init','ck-merge-field__content','commands','$labels','values','element','for','add','_validateConfig','$inlineObject','toDomElement','sanitizeHtml','insertObject','has','mergeFields.prefix','document','set','type','matchAll','mergeFieldsData','createContainerElement','createRawElement','insertMergeField','info','12cYlCzn','WARNING_MISSING_DATA_USED_DEFAULT_VALUE','change:previewMode','798768cPaTje','isLocal','_registerConversionPostFixer','label','bind','span','2081600RHujdu','merge-fields-prefix-or-suffix-too-long','getShiftedBy','appendChild','insert','config','getDataSetValues','80AQxtMX','merge-fields-duplicate-data-set-id','createRange','previewMode','ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_no-default','_defineSchema','createRangeIn','domConverter','modelRange','merge-fields-prefix-and-suffix-must-differ','change:data','getMergeFieldsIds','concat','previewMergeFields','\x20]+','_mergeFieldPrefix','remove','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.','merge-fields-provide-sanitize-function','5289228OgpGYj','WARNING_MISSING_DEFAULT_VALUE','mergeFields.dataSets','listenTo','merge-fields-invalid-preview-modes-configuration','consume','match','register','licenseKey','getChildren','ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-data','define','_prepareViewElementData','$dataSets','pluginName','function','merge-fields-data-set-not-found','_defineConverters','dataPipeline:transparentRendering','merge-fields-duplicate-group-id','34023121coFhbB','392qXeEYo','hasClass','editor','_mergeFieldElements','availablePreviewModes','destroy','forEach','end'];_0x320c=function(){return _0x4a3df2;};return _0x320c();}
@@ -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
  */