@ckeditor/ckeditor5-ai 45.2.1 → 46.0.0-alpha.1

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 (191) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +2 -2
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +16 -11
  150. package/src/adapters/aiadapter.d.ts +2 -2
  151. package/src/adapters/aiadapter.js +1 -1
  152. package/src/adapters/aitextadapter.d.ts +4 -4
  153. package/src/adapters/aitextadapter.js +1 -1
  154. package/src/adapters/awstextadapter.d.ts +7 -7
  155. package/src/adapters/awstextadapter.js +1 -1
  156. package/src/adapters/openaitextadapter.d.ts +6 -7
  157. package/src/adapters/openaitextadapter.js +1 -1
  158. package/src/aiassistant.d.ts +11 -11
  159. package/src/aiassistant.js +1 -1
  160. package/src/aiassistantediting.d.ts +3 -3
  161. package/src/aiassistantediting.js +1 -1
  162. package/src/aiassistantui.d.ts +3 -3
  163. package/src/aiassistantui.js +1 -1
  164. package/src/aiconfig.d.ts +4 -4
  165. package/src/augmentation.d.ts +6 -6
  166. package/src/index.d.ts +9 -6
  167. package/src/index.js +1 -1
  168. package/src/legacyerrors.js +1 -1
  169. package/src/ui/aiassistantcontroller.d.ts +3 -3
  170. package/src/ui/aiassistantcontroller.js +2 -2
  171. package/src/ui/form/aiformcontentarea.d.ts +1 -1
  172. package/src/ui/form/aiformcontentarea.js +1 -1
  173. package/src/ui/form/aiformerrorview.d.ts +1 -1
  174. package/src/ui/form/aiformerrorview.js +1 -1
  175. package/src/ui/form/aiformpromptview.d.ts +1 -1
  176. package/src/ui/form/aiformpromptview.js +1 -1
  177. package/src/ui/form/aiformtoolbarview.d.ts +1 -1
  178. package/src/ui/form/aiformtoolbarview.js +1 -1
  179. package/src/ui/form/aiformview.d.ts +5 -5
  180. package/src/ui/form/aiformview.js +1 -1
  181. package/src/ui/form/aihistorylistitemview.d.ts +1 -1
  182. package/src/ui/form/aihistorylistitemview.js +1 -1
  183. package/src/ui/form/aihistorylistview.d.ts +1 -1
  184. package/src/ui/form/aihistorylistview.js +1 -1
  185. package/src/ui/form/prompthistory.d.ts +1 -1
  186. package/src/ui/form/prompthistory.js +1 -1
  187. package/src/ui/showaiassistantcommand.d.ts +3 -3
  188. package/src/ui/showaiassistantcommand.js +1 -1
  189. package/src/utils/common-translations.js +1 -1
  190. package/src/utils/normalizecommandsconfig.d.ts +2 -2
  191. package/src/utils/normalizecommandsconfig.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b8360=_0x25bc;function _0x25bc(_0x883224,_0x429224){const _0x1b7f97=_0x1b7f();return _0x25bc=function(_0x25bcd5,_0x4bb6e8){_0x25bcd5=_0x25bcd5-0x101;let _0x3ccfdb=_0x1b7f97[_0x25bcd5];return _0x3ccfdb;},_0x25bc(_0x883224,_0x429224);}(function(_0x370f65,_0x5d6056){const _0x5deb24=_0x25bc,_0x1de57c=_0x370f65();while(!![]){try{const _0x2192bb=-parseInt(_0x5deb24(0x162))/0x1+parseInt(_0x5deb24(0x19f))/0x2+-parseInt(_0x5deb24(0x15b))/0x3*(-parseInt(_0x5deb24(0x122))/0x4)+-parseInt(_0x5deb24(0x145))/0x5*(parseInt(_0x5deb24(0x119))/0x6)+parseInt(_0x5deb24(0x176))/0x7*(-parseInt(_0x5deb24(0x1a1))/0x8)+parseInt(_0x5deb24(0x1a0))/0x9+parseInt(_0x5deb24(0x123))/0xa;if(_0x2192bb===_0x5d6056)break;else _0x1de57c['push'](_0x1de57c['shift']());}catch(_0x3b8891){_0x1de57c['push'](_0x1de57c['shift']());}}}(_0x1b7f,0x53170));import{Plugin as _0xbe0708}from'ckeditor5/src/core.js';import{IconMagicWand as _0x42f506,IconRobotPencil as _0x4543a2}from'ckeditor5/src/icons.js';import{first as _0x4bce94,CKEditorError as _0xe41706}from'ckeditor5/src/utils.js';import{createDropdown as _0x21433d,addMenuToDropdown as _0x227fbc,ButtonView as _0x3c2869,MenuBarMenuListItemButtonView as _0x2a86e9,Dialog as _0x21474b,DialogViewPosition as _0x16fa07,MenuBarMenuView as _0x5e0a5b,MenuBarMenuListView as _0x26674d,MenuBarMenuListItemView as _0x32a14a}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0xc16787,UNGROUPED_COMMANDS_GROUP_ID as _0x4c492b}from'./utils/normalizecommandsconfig.js';function _0x1b7f(){const _0x2fe3b3=['change:value','315240saqbKR','4066038HsPToF','28216hkpfYa','setSelection','promptView','componentFactory','buttonView','DataTransfer','aiLicenseKeyUsageLimit','prompt','_getMenuBarGroupButtons','_createAIAssistantUIButton','replace','schema','source','sort','_forceMarkersCopy','ck-ai-assistant-ui','_initView','getRanges','isFlat','values','_aiAdapter','errorView','usageLimit','domainLimit','ai.useTheme','_getResolvedCommandsDefinitions','updateView','invalid','evaluationLimit','fire','ai.aiAssistant.disabledElements','push','INSERT','ai-commands-config-order-collision','requiresContent','polite','trialLimit','hide','getSelectedElement','editing','24mjZMjy','insertContentBelow','selection','copy','editor','filter','_showLicenseError','label','AI\x20is\x20writing','904tItsuo','5059260hsbfSt','plugins','isOfficialPlugin','_licenseKeyCheckInterval','map','order','aiLicenseKeyDomainLimit','AIAssistantUI','ai.aiAssistant.contentAreaCssClass','_onExecute','menuPanelClass','isPremiumPlugin','aiLicenseKeyInvalid','hideFakeVisualSelection','change','focus','change:isProcessing','render','wasMoved','body','media','enabledCommandsIds','queryView','change:enabledCommandsIds','delegate','groupId','trim','_aiAssistantController','command:','config','_populateMenuBarMenu','reset','ck-ai-assistant-button\x20','text/html','174755wmAOHC','comment','items','aiLicenseKeyExpired','custom','_commandDefinitions','showUI','currentContext','_initAriaAiStatusChangeAnnouncements','hideUI','bind','_formView','menuBar:aiAssistant','getSelectedBlocks','set','\x20ck-ai-assistant-ui_theme','ck-ai-commands-dropdown\x20','ai.aiAssistant.commands','insertContent','showFakeVisualSelection','expired','buttons','951YDZetM','get','add','text','tableOfContents','once','showAIAssistant','364711tQhGGd','aiLicenseKeyEvaluationLimit','aiLicenseKeyValid','change:isError','define','show','commands','init','model','menuBar:aiCommands','fieldView','forEach','aiLicenseKeyNotAllowed','view','pluginName','isEnabled','AI\x20Commands','Error\x20during\x20AI\x20content\x20generation:\x20%0','textAdapter','REPLACE','679aIbkAF','splice','update','addMany','_uiCssClasses','getData','document','EDITOR_TOP_SIDE','destroy','getLimitElement','isOn','Generated\x20content:\x20%0','groupLabel','rawHtml','licenseKey','aiCommands','panelView','children','includes','locale','AI\x20Assistant','from','</p>','execute','replaceContent','menuView','length','requires','contentArea','AIAssistant','isCollapsed','listenTo','aiAssistant','_dialog','featureNotAllowed','menuitemcheckbox','aiLicenseKeyTrialLimit','<p>','updatePosition','announce'];_0x1b7f=function(){return _0x2fe3b3;};return _0x1b7f();}import _0x233854 from'./aiassistantediting.js';import _0x1c381a from'./adapters/aiadapter.js';import{getTranslation as _0x4849f0}from'./utils/common-translations.js';import _0xa3d8a5 from'./ui/showaiassistantcommand.js';import _0x1ce3cd from'./ui/aiassistantcontroller.js';import _0x576a9b from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x3fa90e}from'./ui/form/aiformtoolbarview.js';import'../theme/ai.css';import'../theme/ai-dropdown.css';import'../theme/ai-form.css';const w=globalThis[_0x5b8360(0x1a6)];import{ClipboardMarkersUtils as _0x31fe5d}from'ckeditor5/src/clipboard.js';import{DomEventData as _0x3bbc49,DataTransfer as _0x2cae80}from'ckeditor5/src/engine.js';export default class n extends _0xbe0708{[_0x5b8360(0x184)];[_0x5b8360(0x126)];[_0x5b8360(0x197)];[_0x5b8360(0x150)];[_0x5b8360(0x105)];[_0x5b8360(0x13e)];[_0x5b8360(0x17a)]='';static get[_0x5b8360(0x170)](){const _0x453ed5=_0x5b8360;return _0x453ed5(0x12a);}static get[_0x5b8360(0x125)](){return!0x0;}static get[_0x5b8360(0x12e)](){return!0x0;}static get[_0x5b8360(0x191)](){return[_0x31fe5d,_0x233854,_0x1c381a,_0x21474b];}constructor(_0x266d2b){const _0x53c7fb=_0x5b8360;super(_0x266d2b),_0x266d2b[_0x53c7fb(0x140)][_0x53c7fb(0x166)](_0x53c7fb(0x10f),[_0x53c7fb(0x137),_0x53c7fb(0x183),_0x53c7fb(0x15f)]),_0x266d2b[_0x53c7fb(0x140)][_0x53c7fb(0x166)](_0x53c7fb(0x12b),''),_0x266d2b[_0x53c7fb(0x140)][_0x53c7fb(0x166)](_0x53c7fb(0x109),!0x0),this[_0x53c7fb(0x17a)]=_0x53c7fb(0x1b0)+(_0x266d2b[_0x53c7fb(0x140)][_0x53c7fb(0x15c)](_0x53c7fb(0x109))?_0x53c7fb(0x154):'');}[_0x5b8360(0x169)](){const _0x1df2f6=_0x5b8360,{editor:_0x5790e3}=this;this[_0x1df2f6(0x105)]=_0x5790e3[_0x1df2f6(0x124)][_0x1df2f6(0x15c)](_0x1c381a),this[_0x1df2f6(0x197)]=_0x5790e3[_0x1df2f6(0x124)][_0x1df2f6(0x15c)](_0x21474b),this[_0x1df2f6(0x150)]=null,this[_0x1df2f6(0x14a)]=this[_0x1df2f6(0x10a)]();const _0x12a928=new _0xa3d8a5(_0x5790e3,Array[_0x1df2f6(0x18b)](this[_0x1df2f6(0x14a)][_0x1df2f6(0x104)]()));_0x5790e3[_0x1df2f6(0x168)][_0x1df2f6(0x15d)](_0x1df2f6(0x161),_0x12a928),_0x5790e3['ui'][_0x1df2f6(0x1a4)][_0x1df2f6(0x15d)](_0x1df2f6(0x185),_0x4c9707=>{const _0x4faf51=_0x1df2f6,_0x240d7d=_0x21433d(_0x4c9707);return _0x240d7d[_0x4faf51(0x153)]({'class':_0x4faf51(0x155)+this[_0x4faf51(0x17a)]}),_0x240d7d[_0x4faf51(0x1a5)][_0x4faf51(0x153)]({'label':_0x4849f0(_0x4c9707,_0x4faf51(0x172)),'icon':_0x42f506,'tooltip':!0x0}),_0x240d7d['on'](_0x4faf51(0x18d),_0x40804c=>this[_0x4faf51(0x12c)](_0x40804c[_0x4faf51(0x1ad)]['id'])),_0x227fbc(_0x240d7d,_0x5790e3['ui'][_0x4faf51(0x16f)][_0x4faf51(0x136)],function(_0x54d47c){const _0x2b4293=_0x4faf51,_0x2ac0f0=_0xc16787(_0x54d47c[_0x2b4293(0x140)][_0x2b4293(0x15c)](_0x2b4293(0x156)),_0x54d47c[_0x2b4293(0x189)]),_0x43a0bd=U(_0x54d47c,_0x2ac0f0)[_0x2b4293(0x11e)](_0x510991=>_0x510991[_0x2b4293(0x168)][_0x2b4293(0x190)]);if(0x1===_0x43a0bd[_0x2b4293(0x190)])return U(_0x54d47c,_0x43a0bd[0x0][_0x2b4293(0x168)])[_0x2b4293(0x127)](_0x34e574=>({'id':_0x34e574['id'],'label':_0x34e574[_0x2b4293(0x120)]}));return _0x43a0bd[_0x2b4293(0x127)](_0x46852f=>{const _0x4bff73=_0x2b4293,{groupId:_0x3031b2,groupLabel:_0x36691b,commands:_0x3d812e}=_0x46852f,_0x308605=U(_0x54d47c,_0x3d812e)[_0x4bff73(0x127)](_0x2d9496=>({'id':_0x2d9496['id'],'label':_0x2d9496[_0x4bff73(0x120)]}));return{'id':_0x3031b2,'menu':_0x36691b||_0x3031b2,'children':_0x308605};});}(_0x5790e3),{'ariaLabel':_0x4849f0(_0x4c9707,_0x4faf51(0x172))}),_0x240d7d[_0x4faf51(0x18f)][_0x4faf51(0x12d)]=_0x4faf51(0x155)+this[_0x4faf51(0x17a)],_0x12a928['on'](_0x4faf51(0x13a),_0x550774),_0x240d7d[_0x4faf51(0x18f)][_0x4faf51(0x160)](_0x4faf51(0x134),_0x550774),_0x240d7d;function _0x550774(){const _0x290825=_0x4faf51;_0x240d7d[_0x290825(0x171)]=_0x12a928[_0x290825(0x138)][_0x290825(0x190)]>0x0;for(const _0x3dba1f of _0x240d7d[_0x290825(0x18f)][_0x290825(0x15a)])_0x3dba1f[_0x290825(0x171)]=_0x12a928[_0x290825(0x138)][_0x290825(0x188)](_0x3dba1f['id']);}}),_0x5790e3['ui'][_0x1df2f6(0x1a4)][_0x1df2f6(0x15d)](_0x1df2f6(0x16b),_0x50a4ac=>{const _0x3e3a56=_0x1df2f6,_0x482755=new _0x5e0a5b(_0x50a4ac);_0x482755[_0x3e3a56(0x1a5)][_0x3e3a56(0x153)]({'label':_0x4849f0(_0x50a4ac,_0x3e3a56(0x172)),'icon':_0x42f506}),_0x482755[_0x3e3a56(0x14f)](_0x3e3a56(0x171))['to'](_0x12a928,_0x3e3a56(0x138),_0x20e5c7=>_0x20e5c7[_0x3e3a56(0x190)]>0x0);const _0x3a4984=_0xc16787(_0x5790e3[_0x3e3a56(0x140)][_0x3e3a56(0x15c)](_0x3e3a56(0x156)),_0x50a4ac);return this[_0x3e3a56(0x141)](_0x12a928,_0x482755,_0x3a4984,_0x550271=>this[_0x3e3a56(0x12c)](_0x550271)),_0x482755;}),_0x5790e3['ui'][_0x1df2f6(0x1a4)][_0x1df2f6(0x15d)](_0x1df2f6(0x196),()=>{const _0x49a0f0=_0x1df2f6,_0x13cd88=this[_0x49a0f0(0x1aa)](_0x3c2869);return _0x13cd88[_0x49a0f0(0x153)]({'tooltip':!0x0,'class':_0x49a0f0(0x143)+this[_0x49a0f0(0x17a)]}),_0x13cd88;}),_0x5790e3['ui'][_0x1df2f6(0x1a4)][_0x1df2f6(0x15d)](_0x1df2f6(0x151),()=>{const _0x549fa4=_0x1df2f6,_0x44230d=this[_0x549fa4(0x1aa)](_0x2a86e9);return _0x44230d[_0x549fa4(0x153)]({'role':_0x549fa4(0x199)}),_0x44230d;}),this[_0x1df2f6(0x184)]=this[_0x1df2f6(0x11d)][_0x1df2f6(0x140)][_0x1df2f6(0x15c)](_0x1df2f6(0x184));const _0x1b2553=this[_0x1df2f6(0x11d)];this[_0x1df2f6(0x126)]=setInterval(()=>{const _0x358486=_0x1df2f6;let _0x472f63;for(const _0x30ee31 in _0x1b2553){const _0x4a98a3=_0x30ee31,_0x46876b=_0x1b2553[_0x4a98a3];if(_0x358486(0x164)==_0x46876b||_0x358486(0x12f)==_0x46876b||_0x358486(0x148)==_0x46876b||_0x358486(0x129)==_0x46876b||_0x358486(0x16e)==_0x46876b||_0x358486(0x163)==_0x46876b||_0x358486(0x19a)==_0x46876b||_0x358486(0x1a7)==_0x46876b){delete _0x1b2553[_0x4a98a3],_0x472f63=_0x46876b,clearInterval(this[_0x358486(0x126)]),this[_0x358486(0x126)]=void 0x0;break;}}_0x358486(0x12f)==_0x472f63&&_0x1b2553[_0x358486(0x11f)](_0x358486(0x10c)),_0x358486(0x148)==_0x472f63&&_0x1b2553[_0x358486(0x11f)](_0x358486(0x159)),_0x358486(0x129)==_0x472f63&&_0x1b2553[_0x358486(0x11f)](_0x358486(0x108)),_0x358486(0x16e)==_0x472f63&&_0x1b2553[_0x358486(0x11f)](_0x358486(0x198),_0x358486(0x193)),_0x358486(0x163)==_0x472f63&&_0x1b2553[_0x358486(0x11f)](_0x358486(0x10d)),_0x358486(0x19a)==_0x472f63&&_0x1b2553[_0x358486(0x11f)](_0x358486(0x115)),_0x358486(0x1a7)==_0x472f63&&_0x1b2553[_0x358486(0x11f)](_0x358486(0x107));},0x3e8);}[_0x5b8360(0x17e)](){const _0x46e822=_0x5b8360;super[_0x46e822(0x17e)](),this[_0x46e822(0x126)]&&clearInterval(this[_0x46e822(0x126)]);}[_0x5b8360(0x14b)](_0x218ce5='',_0x587314='',_0x2b3e3d=_0x5b8360(0x149)){const _0xe58aba=_0x5b8360,_0x2ea296=this[_0xe58aba(0x11d)],_0x4b3230=_0x2ea296[_0xe58aba(0x118)][_0xe58aba(0x16f)],_0x5aff47=_0x2ea296[_0xe58aba(0x124)][_0xe58aba(0x15c)](_0x233854),_0x173af9=_0x2ea296[_0xe58aba(0x124)][_0xe58aba(0x15c)](_0x31fe5d);_0x5aff47[_0xe58aba(0x158)]();const _0x43cd62=new w(),_0xfc02cd=new ClipboardEvent(_0xe58aba(0x11c),{'clipboardData':_0x43cd62}),_0x3547ec=new _0x2cae80(_0x43cd62),_0x40ebbf=new _0x3bbc49(_0x4b3230,_0xfc02cd,{'dataTransfer':_0x3547ec});_0x173af9[_0xe58aba(0x1af)](_0xe58aba(0x146),()=>{const _0xfff61d=_0xe58aba;_0x4b3230[_0xfff61d(0x17c)][_0xfff61d(0x10e)](_0xfff61d(0x11c),_0x40ebbf);}),this[_0xe58aba(0x150)]||(this[_0xe58aba(0x101)](),this[_0xe58aba(0x13e)]=new _0x1ce3cd(_0x2ea296,this[_0xe58aba(0x105)][_0xe58aba(0x174)],this[_0xe58aba(0x150)]));let _0x1d8043=_0x3547ec[_0xe58aba(0x17b)](_0xe58aba(0x144));const _0x350e8=_0x2ea296[_0xe58aba(0x16a)][_0xe58aba(0x17c)][_0xe58aba(0x11b)],_0x4d14d5=Array[_0xe58aba(0x18b)](_0x350e8[_0xe58aba(0x102)]());0x1===_0x4d14d5[_0xe58aba(0x190)]&&_0x4d14d5[0x0][_0xe58aba(0x103)]&&!_0x350e8[_0xe58aba(0x117)]()&&''!==_0x1d8043[_0xe58aba(0x1ab)](/&nbsp;/g,'')[_0xe58aba(0x13d)]()&&(_0x1d8043=_0xe58aba(0x19b)+_0x1d8043+_0xe58aba(0x18c)),this[_0xe58aba(0x13e)][_0xe58aba(0x10b)]({'actionId':_0x2b3e3d,'query':_0x218ce5,'htmlContent':_0x1d8043,'label':_0x587314,'mainActionLabel':_0x3fa90e[_0x2ea296[_0xe58aba(0x16a)][_0xe58aba(0x17c)][_0xe58aba(0x11b)][_0xe58aba(0x194)]?_0xe58aba(0x111):_0xe58aba(0x175)]}),_0xe58aba(0x196)!==this[_0xe58aba(0x197)]['id']?this[_0xe58aba(0x197)][_0xe58aba(0x167)]({'id':_0xe58aba(0x196),'icon':_0x4543a2,'title':_0x4849f0(this[_0xe58aba(0x11d)][_0xe58aba(0x189)],_0xe58aba(0x18a)),'content':this[_0xe58aba(0x150)],'position':_0x16fa07[_0xe58aba(0x17d)],'onShow':()=>{const _0x9c98bc=_0xe58aba;this[_0x9c98bc(0x150)][_0x9c98bc(0x132)]();},'onHide':()=>{const _0x28781c=_0xe58aba;this[_0x28781c(0x13e)][_0x28781c(0x142)](),_0x5aff47[_0x28781c(0x130)]();}}):this[_0xe58aba(0x197)][_0xe58aba(0x16f)][_0xe58aba(0x135)]||this[_0xe58aba(0x197)][_0xe58aba(0x16f)][_0xe58aba(0x19c)]();}[_0x5b8360(0x14e)](){const _0x2b0625=_0x5b8360;this[_0x2b0625(0x197)][_0x2b0625(0x116)]();}[_0x5b8360(0x10a)](){const _0x3880e7=_0x5b8360,_0x9a5747=new Map(),_0xe6b45f=_0xc16787(this[_0x3880e7(0x11d)][_0x3880e7(0x140)][_0x3880e7(0x15c)](_0x3880e7(0x156)),this[_0x3880e7(0x11d)][_0x3880e7(0x189)]);for(const _0x1ee5af of _0xe6b45f)for(const _0x2284d4 of _0x1ee5af[_0x3880e7(0x168)])_0x9a5747[_0x3880e7(0x153)](_0x2284d4['id'],{..._0x2284d4,'groupId':_0x1ee5af[_0x3880e7(0x13c)],'groupLabel':_0x1ee5af[_0x3880e7(0x182)]||_0x1ee5af[_0x3880e7(0x13c)]});return _0x9a5747;}[_0x5b8360(0x1aa)](_0xc733ad){const _0x53c97f=_0x5b8360,_0x44c7f8=this[_0x53c97f(0x11d)],_0x11a4d3=_0x44c7f8[_0x53c97f(0x168)][_0x53c97f(0x15c)](_0x53c97f(0x161)),_0x12247b=new _0xc733ad(_0x44c7f8[_0x53c97f(0x189)]);return _0x12247b[_0x53c97f(0x153)]({'label':_0x4849f0(_0x44c7f8[_0x53c97f(0x189)],_0x53c97f(0x18a)),'icon':_0x4543a2,'isToggleable':!0x0}),_0x12247b[_0x53c97f(0x14f)](_0x53c97f(0x171))['to'](_0x11a4d3),_0x12247b[_0x53c97f(0x14f)](_0x53c97f(0x180))['to'](this[_0x53c97f(0x197)],'id',_0x53215c=>_0x53c97f(0x196)===_0x53215c),this[_0x53c97f(0x195)](_0x12247b,_0x53c97f(0x18d),()=>{const _0x49b162=_0x53c97f;_0x12247b[_0x49b162(0x180)]?this[_0x49b162(0x14e)]():_0x11a4d3[_0x49b162(0x18d)]();}),_0x12247b;}[_0x5b8360(0x101)](){const _0x430433=_0x5b8360,_0x24cc32=this[_0x430433(0x11d)][_0x430433(0x124)][_0x430433(0x15c)](_0x233854);this[_0x430433(0x150)]=new _0x576a9b(this[_0x430433(0x11d)][_0x430433(0x189)],this[_0x430433(0x17a)],this[_0x430433(0x11d)][_0x430433(0x140)][_0x430433(0x15c)](_0x430433(0x12b))),this[_0x430433(0x150)]['on'](_0x430433(0x19e),()=>{const _0x119439=_0x430433;this[_0x119439(0x197)][_0x119439(0x16f)][_0x119439(0x135)]||this[_0x119439(0x197)][_0x119439(0x16f)][_0x119439(0x19c)]();}),this[_0x430433(0x150)][_0x430433(0x1a3)][_0x430433(0x139)][_0x430433(0x16c)]['on'](_0x430433(0x178),()=>{const _0x30718a=_0x430433;this[_0x30718a(0x197)][_0x30718a(0x16f)][_0x30718a(0x135)]||this[_0x30718a(0x197)][_0x30718a(0x16f)][_0x30718a(0x19c)]();}),this[_0x430433(0x195)](this[_0x430433(0x150)],_0x430433(0x18e),()=>{const _0x219244=_0x430433;_0x24cc32[_0x219244(0x157)](this[_0x219244(0x13e)][_0x219244(0x14c)]),this[_0x219244(0x14e)]();}),this[_0x430433(0x195)](this[_0x430433(0x150)],_0x430433(0x11a),()=>{const _0x24448e=_0x430433;_0x24cc32[_0x24448e(0x11a)](this[_0x24448e(0x13e)][_0x24448e(0x14c)]),this[_0x24448e(0x14e)]();}),this[_0x430433(0x14d)]();}[_0x5b8360(0x14d)](){const _0x16ff14=_0x5b8360,{locale:_0x2ffcb4,ui:{ariaLiveAnnouncer:_0x2bda99}}=this[_0x16ff14(0x11d)];this[_0x16ff14(0x150)][_0x16ff14(0x192)]['on'](_0x16ff14(0x133),(_0x31b832,_0x11e1d4,_0x116c1c)=>{const _0x3b3ebe=_0x16ff14,_0x479e5b=this[_0x3b3ebe(0x13e)][_0x3b3ebe(0x14c)];_0x116c1c?_0x2bda99[_0x3b3ebe(0x19d)](_0x4849f0(_0x2ffcb4,_0x3b3ebe(0x121))):_0x479e5b&&_0x2bda99[_0x3b3ebe(0x19d)](_0x4849f0(_0x2ffcb4,_0x3b3ebe(0x181),_0x479e5b),{'politeness':_0x3b3ebe(0x114),'isUnsafeHTML':!0x0});}),this[_0x16ff14(0x150)]['on'](_0x16ff14(0x165),(_0x145a71,_0x563ba9,_0x349ae4)=>{const _0xa20e79=_0x16ff14;if(_0x349ae4){const _0x2abd4f=this[_0xa20e79(0x150)][_0xa20e79(0x106)][_0xa20e79(0x15e)];_0x2bda99[_0xa20e79(0x19d)](_0x4849f0(_0x2ffcb4,_0xa20e79(0x173),_0x2abd4f));}});}[_0x5b8360(0x12c)](_0xe00f81){const _0x40240e=_0x5b8360,_0x13b012=this[_0x40240e(0x14a)][_0x40240e(0x15c)](_0xe00f81),_0x5bd010=this[_0x40240e(0x11d)],_0x4c4f58=_0x5bd010[_0x40240e(0x16a)][_0x40240e(0x17c)][_0x40240e(0x11b)],_0x362990=_0x5bd010[_0x40240e(0x168)][_0x40240e(0x15c)](_0x40240e(0x161)),_0x1f1185=_0x5bd010[_0x40240e(0x124)][_0x40240e(0x15c)](_0x233854),_0x3e0a6e=''+(_0x13b012[_0x40240e(0x13c)]!==_0x4c492b?_0x13b012[_0x40240e(0x182)]+':\x20':'')+_0x13b012[_0x40240e(0x120)];if(!0x1!==_0x13b012[_0x40240e(0x113)]&&_0x4c4f58[_0x40240e(0x194)]){const _0xa162b3=_0x4bce94(_0x4c4f58[_0x40240e(0x152)]())||_0x5bd010[_0x40240e(0x16a)][_0x40240e(0x1ac)][_0x40240e(0x17f)](_0x4c4f58);_0x5bd010[_0x40240e(0x16a)][_0x40240e(0x131)](_0x5151ab=>{const _0x17b485=_0x40240e;_0x5151ab[_0x17b485(0x1a2)](_0xa162b3,'in');});}_0x1f1185[_0x40240e(0x158)](),_0x362990[_0x40240e(0x18d)](_0x13b012[_0x40240e(0x1a8)],_0x3e0a6e,_0x40240e(0x13f)+_0xe00f81);}[_0x5b8360(0x141)](_0x2d3a65,_0x2474c0,_0x47ca89,_0x530125){const _0x4e5f3e=_0x5b8360,_0x29c241=this[_0x4e5f3e(0x11d)],_0x137a4=_0x29c241[_0x4e5f3e(0x189)],_0x4fb91e=new _0x26674d(_0x137a4),_0x397466=U(_0x29c241,_0x47ca89)[_0x4e5f3e(0x11e)](_0x41b671=>_0x41b671[_0x4e5f3e(0x168)][_0x4e5f3e(0x190)]);0x1===_0x397466[_0x4e5f3e(0x190)]?this[_0x4e5f3e(0x1a9)]({'command':_0x2d3a65,'commands':_0x397466[0x0][_0x4e5f3e(0x168)],'parentMenuView':_0x2474c0,'onExecute':_0x530125})[_0x4e5f3e(0x16d)](_0x2bf687=>_0x4fb91e[_0x4e5f3e(0x147)][_0x4e5f3e(0x15d)](_0x2bf687)):_0x397466[_0x4e5f3e(0x16d)](({groupId:_0x1b2488,groupLabel:_0x59867f,commands:_0x282069})=>{const _0xe4f752=_0x4e5f3e,_0x2db5eb=new _0x32a14a(_0x137a4,_0x2474c0),_0x37fbce=new _0x5e0a5b(_0x137a4),_0x21e5a7=new _0x26674d(_0x137a4),_0x2027eb=this[_0xe4f752(0x1a9)]({'command':_0x2d3a65,'commands':_0x282069,'parentMenuView':_0x37fbce,'onExecute':_0x530125});_0x37fbce[_0xe4f752(0x1a5)][_0xe4f752(0x153)]({'label':_0x59867f||_0x1b2488}),_0x37fbce[_0xe4f752(0x13b)](_0xe4f752(0x18d))['to'](_0x2474c0),_0x21e5a7[_0xe4f752(0x147)][_0xe4f752(0x179)](_0x2027eb),_0x37fbce[_0xe4f752(0x186)][_0xe4f752(0x187)][_0xe4f752(0x15d)](_0x21e5a7),_0x2db5eb[_0xe4f752(0x187)][_0xe4f752(0x15d)](_0x37fbce),_0x4fb91e[_0xe4f752(0x147)][_0xe4f752(0x15d)](_0x2db5eb);}),_0x2474c0[_0x4e5f3e(0x186)][_0x4e5f3e(0x187)][_0x4e5f3e(0x15d)](_0x4fb91e);}[_0x5b8360(0x1a9)]({command:_0x1ae2e3,commands:_0x391c9b,parentMenuView:_0x349c06,onExecute:_0x2eca5d}){const _0x10bfbe=_0x5b8360,_0x2657b2=this[_0x10bfbe(0x11d)],_0x8dc5ef=_0x2657b2[_0x10bfbe(0x189)];return U(_0x2657b2,_0x391c9b)[_0x10bfbe(0x127)](_0x8b462e=>{const _0x570d6a=_0x10bfbe,_0x36d286=new _0x32a14a(_0x8dc5ef,_0x349c06),_0x2614c6=new _0x2a86e9(_0x8dc5ef);return _0x2614c6[_0x570d6a(0x153)]({'label':_0x8b462e[_0x570d6a(0x120)]}),_0x2614c6[_0x570d6a(0x13b)](_0x570d6a(0x18d))['to'](_0x349c06),_0x2614c6['on'](_0x570d6a(0x18d),()=>_0x2eca5d(_0x8b462e['id'])),_0x2614c6[_0x570d6a(0x14f)](_0x570d6a(0x171))['to'](_0x1ae2e3,_0x570d6a(0x138),_0x33ccfe=>_0x33ccfe[_0x570d6a(0x188)](_0x8b462e['id'])),_0x36d286[_0x570d6a(0x187)][_0x570d6a(0x15d)](_0x2614c6),_0x36d286;});}}function B(_0x5cdad1,_0x4e9442){const _0x633e12=_0x5b8360;return void 0x0!==_0x5cdad1[_0x633e12(0x128)]&&void 0x0===_0x4e9442[_0x633e12(0x128)]?0x1:void 0x0===_0x5cdad1[_0x633e12(0x128)]&&void 0x0!==_0x4e9442[_0x633e12(0x128)]?-0x1:void 0x0!==_0x5cdad1[_0x633e12(0x128)]&&void 0x0!==_0x4e9442[_0x633e12(0x128)]?_0x5cdad1[_0x633e12(0x128)]-_0x4e9442[_0x633e12(0x128)]:0x0;}function U(_0x1a68b8,_0x36ad58){const _0x48c56c=_0x5b8360;_0x36ad58[_0x48c56c(0x1ae)](B);const _0x3d6157={},_0xc82d20=[];for(const _0x3da70d of _0x36ad58)if(void 0x0!==_0x3da70d[_0x48c56c(0x128)]){if(_0x3da70d[_0x48c56c(0x128)]in _0x3d6157)throw new _0xe41706(_0x48c56c(0x112),_0x1a68b8,{'conflictingDefinitions':[_0x3da70d,_0x3d6157[_0x3da70d[_0x48c56c(0x128)]]]});_0x3d6157[_0x3da70d[_0x48c56c(0x128)]]=_0x3da70d,_0xc82d20[_0x48c56c(0x177)](_0x3da70d[_0x48c56c(0x128)],0x0,_0x3da70d);}else _0xc82d20[_0x48c56c(0x110)](_0x3da70d);return _0xc82d20;}
23
+ const _0xb7aa97=_0x30b8;(function(_0x5acbc4,_0x2c5c14){const _0x3798f1=_0x30b8,_0x2694ca=_0x5acbc4();while(!![]){try{const _0x29715b=parseInt(_0x3798f1(0x152))/0x1*(-parseInt(_0x3798f1(0x142))/0x2)+parseInt(_0x3798f1(0x186))/0x3+-parseInt(_0x3798f1(0x183))/0x4*(-parseInt(_0x3798f1(0x175))/0x5)+parseInt(_0x3798f1(0x1a8))/0x6*(-parseInt(_0x3798f1(0x14a))/0x7)+parseInt(_0x3798f1(0x154))/0x8*(parseInt(_0x3798f1(0x181))/0x9)+-parseInt(_0x3798f1(0x17c))/0xa*(-parseInt(_0x3798f1(0x177))/0xb)+-parseInt(_0x3798f1(0x16e))/0xc;if(_0x29715b===_0x2c5c14)break;else _0x2694ca['push'](_0x2694ca['shift']());}catch(_0x322137){_0x2694ca['push'](_0x2694ca['shift']());}}}(_0x251e,0x64610));function _0x251e(){const _0x5c4d00=['currentContext','ai.aiAssistant.commands','ai.useTheme','reset','Error\x20during\x20AI\x20content\x20generation:\x20%0','5zViBtl','promptView','4779654tLZEJr','map','includes','EDITOR_TOP_SIDE','hide','10vjBMrn','change:value','change:enabledCommandsIds','isCollapsed','aiLicenseKeyUsageLimit','771048kcwLyH','panelView','1535036MsxIPQ','queryView','media','2419035hcdLni','aiLicenseKeyTrialLimit','update','ai.aiAssistant.contentAreaCssClass','destroy','showAIAssistant','REPLACE','focus','tableOfContents','menuitemcheckbox','textAdapter','requiresContent','aiLicenseKeyInvalid','ck-ai-assistant-ui','aiLicenseKeyNotAllowed','evaluationLimit','ai.aiAssistant.disabledElements','custom','insertContentBelow','aiLicenseKeyExpired','forEach','showUI','from','commands','_commandDefinitions','children','init','sort','buttonView','execute','menuBar:aiAssistant','hideUI','body','push','3760086wZGjjw','contentArea','_uiCssClasses','replace','aiLicenseKeyDomainLimit','showFakeVisualSelection','isOn','label','\x20ck-ai-assistant-ui_theme','polite','wasMoved','addMany','length','_getResolvedCommandsDefinitions','_licenseKeyCheckInterval','groupId','config','AIAssistantUI','fieldView','_formView','schema','_aiAssistantController','updatePosition','setSelection','command:','AI\x20is\x20writing','copy','change:isError','isOfficialPlugin','define','show','AI\x20Commands','</p>','_createAIAssistantUIButton','listenTo','getLimitElement','enabledCommandsIds','locale','menuBar:aiCommands','domainLimit','AI\x20Assistant','change','ai-commands-config-order-collision','text/html','getSelectedBlocks','items','trim','_showLicenseError','<p>','Generated\x20content:\x20%0','_getMenuBarGroupButtons','editor','getSelectedElement','insertContent','editing','_populateMenuBarMenu','INSERT','comment','buttons','announce','featureNotAllowed','ck-ai-assistant-button\x20','selection','set','document','ck-ai-commands-dropdown\x20','expired','view','text','DataTransfer','source','_forceMarkersCopy','getRanges','splice','updateView','aiLicenseKeyEvaluationLimit','24758czgrpv','requires','getData','menuView','aiAssistant','order','filter','_dialog','7UqepIj','trialLimit','componentFactory','menuPanelClass','_initView','replaceContent','aiCommands','pluginName','51bXGEff','values','8STwmtD','licenseKey','delegate','plugins','errorView','_onExecute','render','_aiAdapter','once','rawHtml','hideFakeVisualSelection','isPremiumPlugin','get','bind','_initAriaAiStatusChangeAnnouncements','change:isProcessing','usageLimit','isFlat','invalid','add','fire','isEnabled','groupLabel','AIAssistant','prompt','model','493536vCqKqT','aiLicenseKeyValid'];_0x251e=function(){return _0x5c4d00;};return _0x251e();}import{Plugin as _0xf4ff84}from'ckeditor5/src/core.js';import{IconMagicWand as _0x1e530b,IconRobotPencil as _0x5189ed}from'ckeditor5/src/icons.js';import{first as _0x58105c,CKEditorError as _0x44a22b}from'ckeditor5/src/utils.js';import{createDropdown as _0xb55e52,addMenuToDropdown as _0x3a7ad3,ButtonView as _0x3269bb,MenuBarMenuListItemButtonView as _0x3d1839,Dialog as _0x10ca95,DialogViewPosition as _0x485275,MenuBarMenuView as _0x2d0f4a,MenuBarMenuListView as _0x36f9d9,MenuBarMenuListItemView as _0x472308}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x39a7da,UNGROUPED_COMMANDS_GROUP_ID as _0x4c3d68}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x3b0fc0}from'./aiassistantediting.js';import{AIAdapter as _0x1b9736}from'./adapters/aiadapter.js';import{getTranslation as _0x4822fd}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x48ce6a}from'./ui/showaiassistantcommand.js';import{AIAssistantController as _0x5142d2}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x4013c9}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x7680e8}from'./ui/form/aiformtoolbarview.js';import'../theme/ai.css';import'../theme/ai-dropdown.css';import'../theme/ai-form.css';const l=globalThis[_0xb7aa97(0x13b)];import{ClipboardMarkersUtils as _0x52f59d}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x1ac5ff,ViewDataTransfer as _0x2394c1}from'ckeditor5/src/engine.js';function _0x30b8(_0x1a8893,_0x489719){const _0x251e6e=_0x251e();return _0x30b8=function(_0x30b891,_0x1751a3){_0x30b891=_0x30b891-0x110;let _0x233c92=_0x251e6e[_0x30b891];return _0x233c92;},_0x30b8(_0x1a8893,_0x489719);}export class AIAssistantUI extends _0xf4ff84{[_0xb7aa97(0x155)];[_0xb7aa97(0x1b6)];[_0xb7aa97(0x149)];[_0xb7aa97(0x1bb)];[_0xb7aa97(0x15b)];[_0xb7aa97(0x1bd)];[_0xb7aa97(0x1aa)]='';static get[_0xb7aa97(0x151)](){const _0x1a624f=_0xb7aa97;return _0x1a624f(0x1b9);}static get[_0xb7aa97(0x112)](){return!0x0;}static get[_0xb7aa97(0x15f)](){return!0x0;}static get[_0xb7aa97(0x143)](){return[_0x52f59d,_0x3b0fc0,_0x1b9736,_0x10ca95];}constructor(_0x294567){const _0x3672bf=_0xb7aa97;super(_0x294567),_0x294567[_0x3672bf(0x1b8)][_0x3672bf(0x113)](_0x3672bf(0x196),[_0x3672bf(0x185),_0x3672bf(0x15d),_0x3672bf(0x18e)]),_0x294567[_0x3672bf(0x1b8)][_0x3672bf(0x113)](_0x3672bf(0x189),''),_0x294567[_0x3672bf(0x1b8)][_0x3672bf(0x113)](_0x3672bf(0x172),!0x0),this[_0x3672bf(0x1aa)]=_0x3672bf(0x193)+(_0x294567[_0x3672bf(0x1b8)][_0x3672bf(0x160)](_0x3672bf(0x172))?_0x3672bf(0x1b0):'');}[_0xb7aa97(0x1a0)](){const _0x3f5fe1=_0xb7aa97,{editor:_0x395128}=this;this[_0x3f5fe1(0x15b)]=_0x395128[_0x3f5fe1(0x157)][_0x3f5fe1(0x160)](_0x1b9736),this[_0x3f5fe1(0x149)]=_0x395128[_0x3f5fe1(0x157)][_0x3f5fe1(0x160)](_0x10ca95),this[_0x3f5fe1(0x1bb)]=null,this[_0x3f5fe1(0x19e)]=this[_0x3f5fe1(0x1b5)]();const _0x218454=new _0x48ce6a(_0x395128,Array[_0x3f5fe1(0x19c)](this[_0x3f5fe1(0x19e)][_0x3f5fe1(0x153)]()));_0x395128[_0x3f5fe1(0x19d)][_0x3f5fe1(0x167)](_0x3f5fe1(0x18b),_0x218454),_0x395128['ui'][_0x3f5fe1(0x14c)][_0x3f5fe1(0x167)](_0x3f5fe1(0x150),_0x4d7b00=>{const _0x1a5257=_0x3f5fe1,_0x53bed7=_0xb55e52(_0x4d7b00);return _0x53bed7[_0x1a5257(0x135)]({'class':_0x1a5257(0x137)+this[_0x1a5257(0x1aa)]}),_0x53bed7[_0x1a5257(0x1a2)][_0x1a5257(0x135)]({'label':_0x4822fd(_0x4d7b00,_0x1a5257(0x115)),'icon':_0x1e530b,'tooltip':!0x0}),_0x53bed7['on'](_0x1a5257(0x1a3),_0x104a62=>this[_0x1a5257(0x159)](_0x104a62[_0x1a5257(0x13c)]['id'])),_0x3a7ad3(_0x53bed7,_0x395128['ui'][_0x1a5257(0x139)][_0x1a5257(0x1a6)],function(_0x417f85){const _0x154c51=_0x1a5257,_0x4a658d=_0x39a7da(_0x417f85[_0x154c51(0x1b8)][_0x154c51(0x160)](_0x154c51(0x171)),_0x417f85[_0x154c51(0x11b)]),_0x4a01f=U(_0x417f85,_0x4a658d)[_0x154c51(0x148)](_0x3b0336=>_0x3b0336[_0x154c51(0x19d)][_0x154c51(0x1b4)]);if(0x1===_0x4a01f[_0x154c51(0x1b4)])return U(_0x417f85,_0x4a01f[0x0][_0x154c51(0x19d)])[_0x154c51(0x178)](_0x49c261=>({'id':_0x49c261['id'],'label':_0x49c261[_0x154c51(0x1af)]}));return _0x4a01f[_0x154c51(0x178)](_0x24046e=>{const _0x4cb52e=_0x154c51,{groupId:_0x45b777,groupLabel:_0x2583ee,commands:_0x16857c}=_0x24046e,_0x2e7d9b=U(_0x417f85,_0x16857c)[_0x4cb52e(0x178)](_0x44f420=>({'id':_0x44f420['id'],'label':_0x44f420[_0x4cb52e(0x1af)]}));return{'id':_0x45b777,'menu':_0x2583ee||_0x45b777,'children':_0x2e7d9b};});}(_0x395128),{'ariaLabel':_0x4822fd(_0x4d7b00,_0x1a5257(0x115))}),_0x53bed7[_0x1a5257(0x145)][_0x1a5257(0x14d)]=_0x1a5257(0x137)+this[_0x1a5257(0x1aa)],_0x218454['on'](_0x1a5257(0x17e),_0x156cd4),_0x53bed7[_0x1a5257(0x145)][_0x1a5257(0x15c)](_0x1a5257(0x15a),_0x156cd4),_0x53bed7;function _0x156cd4(){const _0x57004e=_0x1a5257;_0x53bed7[_0x57004e(0x169)]=_0x218454[_0x57004e(0x11a)][_0x57004e(0x1b4)]>0x0;for(const _0x3105eb of _0x53bed7[_0x57004e(0x145)][_0x57004e(0x130)])_0x3105eb[_0x57004e(0x169)]=_0x218454[_0x57004e(0x11a)][_0x57004e(0x179)](_0x3105eb['id']);}}),_0x395128['ui'][_0x3f5fe1(0x14c)][_0x3f5fe1(0x167)](_0x3f5fe1(0x11c),_0x5d9e7a=>{const _0x5ade2d=_0x3f5fe1,_0x5e7963=new _0x2d0f4a(_0x5d9e7a);_0x5e7963[_0x5ade2d(0x1a2)][_0x5ade2d(0x135)]({'label':_0x4822fd(_0x5d9e7a,_0x5ade2d(0x115)),'icon':_0x1e530b}),_0x5e7963[_0x5ade2d(0x161)](_0x5ade2d(0x169))['to'](_0x218454,_0x5ade2d(0x11a),_0x411b63=>_0x411b63[_0x5ade2d(0x1b4)]>0x0);const _0x31bcf5=_0x39a7da(_0x395128[_0x5ade2d(0x1b8)][_0x5ade2d(0x160)](_0x5ade2d(0x171)),_0x5d9e7a);return this[_0x5ade2d(0x12d)](_0x218454,_0x5e7963,_0x31bcf5,_0x26797e=>this[_0x5ade2d(0x159)](_0x26797e)),_0x5e7963;}),_0x395128['ui'][_0x3f5fe1(0x14c)][_0x3f5fe1(0x167)](_0x3f5fe1(0x146),()=>{const _0x195ff6=_0x3f5fe1,_0x18482b=this[_0x195ff6(0x117)](_0x3269bb);return _0x18482b[_0x195ff6(0x135)]({'tooltip':!0x0,'class':_0x195ff6(0x133)+this[_0x195ff6(0x1aa)]}),_0x18482b;}),_0x395128['ui'][_0x3f5fe1(0x14c)][_0x3f5fe1(0x167)](_0x3f5fe1(0x1a4),()=>{const _0x49e160=_0x3f5fe1,_0x18094b=this[_0x49e160(0x117)](_0x3d1839);return _0x18094b[_0x49e160(0x135)]({'role':_0x49e160(0x18f)}),_0x18094b;}),this[_0x3f5fe1(0x155)]=this[_0x3f5fe1(0x129)][_0x3f5fe1(0x1b8)][_0x3f5fe1(0x160)](_0x3f5fe1(0x155));const _0x2c16c3=this[_0x3f5fe1(0x129)];this[_0x3f5fe1(0x1b6)]=setInterval(()=>{const _0x4c30ea=_0x3f5fe1;let _0x481810;for(const _0x314877 in _0x2c16c3){const _0x2d1e45=_0x314877,_0x2a5202=_0x2c16c3[_0x2d1e45];if(_0x4c30ea(0x16f)==_0x2a5202||_0x4c30ea(0x192)==_0x2a5202||_0x4c30ea(0x199)==_0x2a5202||_0x4c30ea(0x1ac)==_0x2a5202||_0x4c30ea(0x194)==_0x2a5202||_0x4c30ea(0x141)==_0x2a5202||_0x4c30ea(0x187)==_0x2a5202||_0x4c30ea(0x180)==_0x2a5202){delete _0x2c16c3[_0x2d1e45],_0x481810=_0x2a5202,clearInterval(this[_0x4c30ea(0x1b6)]),this[_0x4c30ea(0x1b6)]=void 0x0;break;}}_0x4c30ea(0x192)==_0x481810&&_0x2c16c3[_0x4c30ea(0x125)](_0x4c30ea(0x166)),_0x4c30ea(0x199)==_0x481810&&_0x2c16c3[_0x4c30ea(0x125)](_0x4c30ea(0x138)),_0x4c30ea(0x1ac)==_0x481810&&_0x2c16c3[_0x4c30ea(0x125)](_0x4c30ea(0x11d)),_0x4c30ea(0x194)==_0x481810&&_0x2c16c3[_0x4c30ea(0x125)](_0x4c30ea(0x132),_0x4c30ea(0x16b)),_0x4c30ea(0x141)==_0x481810&&_0x2c16c3[_0x4c30ea(0x125)](_0x4c30ea(0x195)),_0x4c30ea(0x187)==_0x481810&&_0x2c16c3[_0x4c30ea(0x125)](_0x4c30ea(0x14b)),_0x4c30ea(0x180)==_0x481810&&_0x2c16c3[_0x4c30ea(0x125)](_0x4c30ea(0x164));},0x3e8);}[_0xb7aa97(0x18a)](){const _0x14f478=_0xb7aa97;super[_0x14f478(0x18a)](),this[_0x14f478(0x1b6)]&&clearInterval(this[_0x14f478(0x1b6)]);}[_0xb7aa97(0x19b)](_0x5685a7='',_0x5daf10='',_0x2adcfe=_0xb7aa97(0x197)){const _0x240a3b=_0xb7aa97,_0x469706=this[_0x240a3b(0x129)],_0x9ec8f3=_0x469706[_0x240a3b(0x12c)][_0x240a3b(0x139)],_0x21e3ee=_0x469706[_0x240a3b(0x157)][_0x240a3b(0x160)](_0x3b0fc0),_0xe79e51=_0x469706[_0x240a3b(0x157)][_0x240a3b(0x160)](_0x52f59d);_0x21e3ee[_0x240a3b(0x1ad)]();const _0x19e18e=new l(),_0x4873ae=new ClipboardEvent(_0x240a3b(0x110),{'clipboardData':_0x19e18e}),_0x4efef2=new _0x2394c1(_0x19e18e),_0x282dee=new _0x1ac5ff(_0x9ec8f3,_0x4873ae,{'dataTransfer':_0x4efef2});_0xe79e51[_0x240a3b(0x13d)](_0x240a3b(0x12f),()=>{const _0x1bc981=_0x240a3b;_0x9ec8f3[_0x1bc981(0x136)][_0x1bc981(0x168)](_0x1bc981(0x110),_0x282dee);}),this[_0x240a3b(0x1bb)]||(this[_0x240a3b(0x14e)](),this[_0x240a3b(0x1bd)]=new _0x5142d2(_0x469706,this[_0x240a3b(0x15b)][_0x240a3b(0x190)],this[_0x240a3b(0x1bb)]));let _0x5300b=_0x4efef2[_0x240a3b(0x144)](_0x240a3b(0x121));const _0x39e9c5=_0x469706[_0x240a3b(0x16d)][_0x240a3b(0x136)][_0x240a3b(0x134)],_0x5410ca=Array[_0x240a3b(0x19c)](_0x39e9c5[_0x240a3b(0x13e)]());0x1===_0x5410ca[_0x240a3b(0x1b4)]&&_0x5410ca[0x0][_0x240a3b(0x165)]&&!_0x39e9c5[_0x240a3b(0x12a)]()&&''!==_0x5300b[_0x240a3b(0x1ab)](/&nbsp;/g,'')[_0x240a3b(0x124)]()&&(_0x5300b=_0x240a3b(0x126)+_0x5300b+_0x240a3b(0x116)),this[_0x240a3b(0x1bd)][_0x240a3b(0x140)]({'actionId':_0x2adcfe,'query':_0x5685a7,'htmlContent':_0x5300b,'label':_0x5daf10,'mainActionLabel':_0x7680e8[_0x469706[_0x240a3b(0x16d)][_0x240a3b(0x136)][_0x240a3b(0x134)][_0x240a3b(0x17f)]?_0x240a3b(0x12e):_0x240a3b(0x18c)]}),_0x240a3b(0x146)!==this[_0x240a3b(0x149)]['id']?this[_0x240a3b(0x149)][_0x240a3b(0x114)]({'id':_0x240a3b(0x146),'icon':_0x5189ed,'title':_0x4822fd(this[_0x240a3b(0x129)][_0x240a3b(0x11b)],_0x240a3b(0x11e)),'content':this[_0x240a3b(0x1bb)],'position':_0x485275[_0x240a3b(0x17a)],'onShow':()=>{const _0x360484=_0x240a3b;this[_0x360484(0x1bb)][_0x360484(0x18d)]();},'onHide':()=>{const _0x4f36f7=_0x240a3b;this[_0x4f36f7(0x1bd)][_0x4f36f7(0x173)](),_0x21e3ee[_0x4f36f7(0x15e)]();}}):this[_0x240a3b(0x149)][_0x240a3b(0x139)][_0x240a3b(0x1b2)]||this[_0x240a3b(0x149)][_0x240a3b(0x139)][_0x240a3b(0x1be)]();}[_0xb7aa97(0x1a5)](){const _0x3cf688=_0xb7aa97;this[_0x3cf688(0x149)][_0x3cf688(0x17b)]();}[_0xb7aa97(0x1b5)](){const _0x2cd110=_0xb7aa97,_0x43f46c=new Map(),_0x44d72d=_0x39a7da(this[_0x2cd110(0x129)][_0x2cd110(0x1b8)][_0x2cd110(0x160)](_0x2cd110(0x171)),this[_0x2cd110(0x129)][_0x2cd110(0x11b)]);for(const _0x604c06 of _0x44d72d)for(const _0x317e0c of _0x604c06[_0x2cd110(0x19d)])_0x43f46c[_0x2cd110(0x135)](_0x317e0c['id'],{..._0x317e0c,'groupId':_0x604c06[_0x2cd110(0x1b7)],'groupLabel':_0x604c06[_0x2cd110(0x16a)]||_0x604c06[_0x2cd110(0x1b7)]});return _0x43f46c;}[_0xb7aa97(0x117)](_0x398eca){const _0x226208=_0xb7aa97,_0x52ce85=this[_0x226208(0x129)],_0x30fdcc=_0x52ce85[_0x226208(0x19d)][_0x226208(0x160)](_0x226208(0x18b)),_0x19136c=new _0x398eca(_0x52ce85[_0x226208(0x11b)]);return _0x19136c[_0x226208(0x135)]({'label':_0x4822fd(_0x52ce85[_0x226208(0x11b)],_0x226208(0x11e)),'icon':_0x5189ed,'isToggleable':!0x0}),_0x19136c[_0x226208(0x161)](_0x226208(0x169))['to'](_0x30fdcc),_0x19136c[_0x226208(0x161)](_0x226208(0x1ae))['to'](this[_0x226208(0x149)],'id',_0xe9c514=>_0x226208(0x146)===_0xe9c514),this[_0x226208(0x118)](_0x19136c,_0x226208(0x1a3),()=>{const _0x16366e=_0x226208;_0x19136c[_0x16366e(0x1ae)]?this[_0x16366e(0x1a5)]():_0x30fdcc[_0x16366e(0x1a3)]();}),_0x19136c;}[_0xb7aa97(0x14e)](){const _0x4c7f01=_0xb7aa97,_0x396c6c=this[_0x4c7f01(0x129)][_0x4c7f01(0x157)][_0x4c7f01(0x160)](_0x3b0fc0);this[_0x4c7f01(0x1bb)]=new _0x4013c9(this[_0x4c7f01(0x129)][_0x4c7f01(0x11b)],this[_0x4c7f01(0x1aa)],this[_0x4c7f01(0x129)][_0x4c7f01(0x1b8)][_0x4c7f01(0x160)](_0x4c7f01(0x189))),this[_0x4c7f01(0x1bb)]['on'](_0x4c7f01(0x17d),()=>{const _0x35c5d0=_0x4c7f01;this[_0x35c5d0(0x149)][_0x35c5d0(0x139)][_0x35c5d0(0x1b2)]||this[_0x35c5d0(0x149)][_0x35c5d0(0x139)][_0x35c5d0(0x1be)]();}),this[_0x4c7f01(0x1bb)][_0x4c7f01(0x176)][_0x4c7f01(0x184)][_0x4c7f01(0x1ba)]['on'](_0x4c7f01(0x188),()=>{const _0x5b06d0=_0x4c7f01;this[_0x5b06d0(0x149)][_0x5b06d0(0x139)][_0x5b06d0(0x1b2)]||this[_0x5b06d0(0x149)][_0x5b06d0(0x139)][_0x5b06d0(0x1be)]();}),this[_0x4c7f01(0x118)](this[_0x4c7f01(0x1bb)],_0x4c7f01(0x14f),()=>{const _0x3039a7=_0x4c7f01;_0x396c6c[_0x3039a7(0x12b)](this[_0x3039a7(0x1bd)][_0x3039a7(0x170)]),this[_0x3039a7(0x1a5)]();}),this[_0x4c7f01(0x118)](this[_0x4c7f01(0x1bb)],_0x4c7f01(0x198),()=>{const _0x4ffbbc=_0x4c7f01;_0x396c6c[_0x4ffbbc(0x198)](this[_0x4ffbbc(0x1bd)][_0x4ffbbc(0x170)]),this[_0x4ffbbc(0x1a5)]();}),this[_0x4c7f01(0x162)]();}[_0xb7aa97(0x162)](){const _0x1dc90c=_0xb7aa97,{locale:_0x2d0d9b,ui:{ariaLiveAnnouncer:_0x27f0d6}}=this[_0x1dc90c(0x129)];this[_0x1dc90c(0x1bb)][_0x1dc90c(0x1a9)]['on'](_0x1dc90c(0x163),(_0x3ce50d,_0x29bbbc,_0x4ba131)=>{const _0x105951=_0x1dc90c,_0x6a2d30=this[_0x105951(0x1bd)][_0x105951(0x170)];_0x4ba131?_0x27f0d6[_0x105951(0x131)](_0x4822fd(_0x2d0d9b,_0x105951(0x1c1))):_0x6a2d30&&_0x27f0d6[_0x105951(0x131)](_0x4822fd(_0x2d0d9b,_0x105951(0x127),_0x6a2d30),{'politeness':_0x105951(0x1b1),'isUnsafeHTML':!0x0});}),this[_0x1dc90c(0x1bb)]['on'](_0x1dc90c(0x111),(_0x499d58,_0x5bbf7f,_0x3f4d29)=>{const _0xb103a9=_0x1dc90c;if(_0x3f4d29){const _0xc4acdc=this[_0xb103a9(0x1bb)][_0xb103a9(0x158)][_0xb103a9(0x13a)];_0x27f0d6[_0xb103a9(0x131)](_0x4822fd(_0x2d0d9b,_0xb103a9(0x174),_0xc4acdc));}});}[_0xb7aa97(0x159)](_0x23586a){const _0x57c3e2=_0xb7aa97,_0x28cc51=this[_0x57c3e2(0x19e)][_0x57c3e2(0x160)](_0x23586a),_0x48e180=this[_0x57c3e2(0x129)],_0xc29975=_0x48e180[_0x57c3e2(0x16d)][_0x57c3e2(0x136)][_0x57c3e2(0x134)],_0x2d0b96=_0x48e180[_0x57c3e2(0x19d)][_0x57c3e2(0x160)](_0x57c3e2(0x18b)),_0x247c3d=_0x48e180[_0x57c3e2(0x157)][_0x57c3e2(0x160)](_0x3b0fc0),_0xb1c96=''+(_0x28cc51[_0x57c3e2(0x1b7)]!==_0x4c3d68?_0x28cc51[_0x57c3e2(0x16a)]+':\x20':'')+_0x28cc51[_0x57c3e2(0x1af)];if(!0x1!==_0x28cc51[_0x57c3e2(0x191)]&&_0xc29975[_0x57c3e2(0x17f)]){const _0x556f51=_0x58105c(_0xc29975[_0x57c3e2(0x122)]())||_0x48e180[_0x57c3e2(0x16d)][_0x57c3e2(0x1bc)][_0x57c3e2(0x119)](_0xc29975);_0x48e180[_0x57c3e2(0x16d)][_0x57c3e2(0x11f)](_0x410bb5=>{const _0x44b4c6=_0x57c3e2;_0x410bb5[_0x44b4c6(0x1bf)](_0x556f51,'in');});}_0x247c3d[_0x57c3e2(0x1ad)](),_0x2d0b96[_0x57c3e2(0x1a3)](_0x28cc51[_0x57c3e2(0x16c)],_0xb1c96,_0x57c3e2(0x1c0)+_0x23586a);}[_0xb7aa97(0x12d)](_0x19ae36,_0x66e281,_0x3371ad,_0x44d828){const _0x311a1a=_0xb7aa97,_0x35126f=this[_0x311a1a(0x129)],_0x4643b0=_0x35126f[_0x311a1a(0x11b)],_0x47c414=new _0x36f9d9(_0x4643b0),_0x122562=U(_0x35126f,_0x3371ad)[_0x311a1a(0x148)](_0x3c624f=>_0x3c624f[_0x311a1a(0x19d)][_0x311a1a(0x1b4)]);0x1===_0x122562[_0x311a1a(0x1b4)]?this[_0x311a1a(0x128)]({'command':_0x19ae36,'commands':_0x122562[0x0][_0x311a1a(0x19d)],'parentMenuView':_0x66e281,'onExecute':_0x44d828})[_0x311a1a(0x19a)](_0xc476e3=>_0x47c414[_0x311a1a(0x123)][_0x311a1a(0x167)](_0xc476e3)):_0x122562[_0x311a1a(0x19a)](({groupId:_0x587555,groupLabel:_0x4304e9,commands:_0x554972})=>{const _0x574afb=_0x311a1a,_0x4af0c5=new _0x472308(_0x4643b0,_0x66e281),_0x1b2c6c=new _0x2d0f4a(_0x4643b0),_0x1675b0=new _0x36f9d9(_0x4643b0),_0x57de89=this[_0x574afb(0x128)]({'command':_0x19ae36,'commands':_0x554972,'parentMenuView':_0x1b2c6c,'onExecute':_0x44d828});_0x1b2c6c[_0x574afb(0x1a2)][_0x574afb(0x135)]({'label':_0x4304e9||_0x587555}),_0x1b2c6c[_0x574afb(0x156)](_0x574afb(0x1a3))['to'](_0x66e281),_0x1675b0[_0x574afb(0x123)][_0x574afb(0x1b3)](_0x57de89),_0x1b2c6c[_0x574afb(0x182)][_0x574afb(0x19f)][_0x574afb(0x167)](_0x1675b0),_0x4af0c5[_0x574afb(0x19f)][_0x574afb(0x167)](_0x1b2c6c),_0x47c414[_0x574afb(0x123)][_0x574afb(0x167)](_0x4af0c5);}),_0x66e281[_0x311a1a(0x182)][_0x311a1a(0x19f)][_0x311a1a(0x167)](_0x47c414);}[_0xb7aa97(0x128)]({command:_0x497a32,commands:_0x582204,parentMenuView:_0x4f74d4,onExecute:_0x1d57ae}){const _0x427d97=_0xb7aa97,_0x1ccbe2=this[_0x427d97(0x129)],_0x1abee9=_0x1ccbe2[_0x427d97(0x11b)];return U(_0x1ccbe2,_0x582204)[_0x427d97(0x178)](_0xca609c=>{const _0x2b4e93=_0x427d97,_0x2b73ba=new _0x472308(_0x1abee9,_0x4f74d4),_0xa65ee=new _0x3d1839(_0x1abee9);return _0xa65ee[_0x2b4e93(0x135)]({'label':_0xca609c[_0x2b4e93(0x1af)]}),_0xa65ee[_0x2b4e93(0x156)](_0x2b4e93(0x1a3))['to'](_0x4f74d4),_0xa65ee['on'](_0x2b4e93(0x1a3),()=>_0x1d57ae(_0xca609c['id'])),_0xa65ee[_0x2b4e93(0x161)](_0x2b4e93(0x169))['to'](_0x497a32,_0x2b4e93(0x11a),_0x146b47=>_0x146b47[_0x2b4e93(0x179)](_0xca609c['id'])),_0x2b73ba[_0x2b4e93(0x19f)][_0x2b4e93(0x167)](_0xa65ee),_0x2b73ba;});}}function T(_0x26e777,_0xe18f46){const _0x260245=_0xb7aa97;return void 0x0!==_0x26e777[_0x260245(0x147)]&&void 0x0===_0xe18f46[_0x260245(0x147)]?0x1:void 0x0===_0x26e777[_0x260245(0x147)]&&void 0x0!==_0xe18f46[_0x260245(0x147)]?-0x1:void 0x0!==_0x26e777[_0x260245(0x147)]&&void 0x0!==_0xe18f46[_0x260245(0x147)]?_0x26e777[_0x260245(0x147)]-_0xe18f46[_0x260245(0x147)]:0x0;}function U(_0x2e4d20,_0x5cff8c){const _0x2cdf1b=_0xb7aa97;_0x5cff8c[_0x2cdf1b(0x1a1)](T);const _0x12bbbd={},_0x288ebb=[];for(const _0x1ceb77 of _0x5cff8c)if(void 0x0!==_0x1ceb77[_0x2cdf1b(0x147)]){if(_0x1ceb77[_0x2cdf1b(0x147)]in _0x12bbbd)throw new _0x44a22b(_0x2cdf1b(0x120),_0x2e4d20,{'conflictingDefinitions':[_0x1ceb77,_0x12bbbd[_0x1ceb77[_0x2cdf1b(0x147)]]]});_0x12bbbd[_0x1ceb77[_0x2cdf1b(0x147)]]=_0x1ceb77,_0x288ebb[_0x2cdf1b(0x13f)](_0x1ceb77[_0x2cdf1b(0x147)],0x0,_0x1ceb77);}else _0x288ebb[_0x2cdf1b(0x1a7)](_0x1ceb77);return _0x288ebb;}
package/src/aiconfig.d.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  */
9
9
  import type { AIAssistantConfig } from './aiassistant.js';
10
10
  import type { OpenAITextAdapterConfig } from './adapters/openaitextadapter.js';
11
- import type { AWSTextAdapterConfig } from './adapters/awstextadapter.js';
11
+ import type { AIAWSTextAdapterConfig } from './adapters/awstextadapter.js';
12
12
  /**
13
13
  * The configuration for all AI-related functionalities.
14
14
  *
@@ -32,7 +32,7 @@ import type { AWSTextAdapterConfig } from './adapters/awstextadapter.js';
32
32
  *
33
33
  * See {@link module:core/editor/editorconfig~EditorConfig all editor configuration options}.
34
34
  */
35
- export default interface AIConfig {
35
+ export interface AIConfig {
36
36
  /**
37
37
  * The configuration of the {@link module:ai/aiassistant~AIAssistant AI Assistant feature}.
38
38
  *
@@ -52,9 +52,9 @@ export default interface AIConfig {
52
52
  *
53
53
  * This is required only if you connect to Amazon Bedrock service.
54
54
  *
55
- * Read more in {@link module:ai/adapters/awstextadapter~AWSTextAdapterConfig}.
55
+ * Read more in {@link module:ai/adapters/awstextadapter~AIAWSTextAdapterConfig}.
56
56
  */
57
- aws?: AWSTextAdapterConfig;
57
+ aws?: AIAWSTextAdapterConfig;
58
58
  /**
59
59
  * Enables or disables the colored UI theme for AI features.
60
60
  *
@@ -2,12 +2,12 @@
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- import type AIAssistant from './aiassistant.js';
6
- import type ShowAIAssistantCommand from './ui/showaiassistantcommand.js';
7
- import type AIAssistantEditing from './aiassistantediting.js';
8
- import type AIAssistantUI from './aiassistantui.js';
9
- import type AIConfig from './aiconfig.js';
10
- import type AIAdapter from './adapters/aiadapter.js';
5
+ import { type AIAssistant } from './aiassistant.js';
6
+ import { type ShowAIAssistantCommand } from './ui/showaiassistantcommand.js';
7
+ import { type AIAssistantEditing } from './aiassistantediting.js';
8
+ import { type AIAssistantUI } from './aiassistantui.js';
9
+ import { type AIConfig } from './aiconfig.js';
10
+ import { type AIAdapter } from './adapters/aiadapter.js';
11
11
  declare module '@ckeditor/ckeditor5-core' {
12
12
  interface EditorConfig {
13
13
  /**
package/src/index.d.ts CHANGED
@@ -5,10 +5,13 @@
5
5
  /**
6
6
  * @module ai
7
7
  */
8
- export { default as AIAssistant, type AIAssistantConfig, type GroupDefinition, type CommandDefinition } from './aiassistant.js';
9
- export { default as AIAssistantUI } from './aiassistantui.js';
10
- export { default as AIAdapter, AIRequestError } from './adapters/aiadapter.js';
11
- export { default as AITextAdapter, type AITextAdapterRequestData, type RequestHeaders, type RequestParameters, type AITextAdapterDataCallback } from './adapters/aitextadapter.js';
12
- export { default as OpenAITextAdapter, type OpenAITextAdapterConfig } from './adapters/openaitextadapter.js';
13
- export { default as AWSTextAdapter, type AWSTextAdapterConfig } from './adapters/awstextadapter.js';
8
+ export { AIAssistant, getDefaultAICommands, type AIAssistantConfig, type AIGroupDefinition, type AICommandDefinition } from './aiassistant.js';
9
+ export { AIAssistantUI } from './aiassistantui.js';
10
+ export type { AIConfig } from './aiconfig.js';
11
+ export { AIAdapter, AIRequestError } from './adapters/aiadapter.js';
12
+ export { AITextAdapter, type AITextAdapterRequestData, type AIRequestHeaders, type AIRequestParameters, type AITextAdapterDataCallback } from './adapters/aitextadapter.js';
13
+ export { OpenAITextAdapter, type OpenAITextAdapterConfig } from './adapters/openaitextadapter.js';
14
+ export { AWSTextAdapter, type AIAWSTextAdapterConfig, type AIAWSModelFamily } from './adapters/awstextadapter.js';
15
+ export type { AIRequestMessageItem } from './adapters/openaitextadapter.js';
16
+ export { ShowAIAssistantCommand } from './ui/showaiassistantcommand.js';
14
17
  import './augmentation.js';
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1a23(_0x5c3031,_0x5a1d53){var _0xa7bef7=_0xa7be();return _0x1a23=function(_0x1a2392,_0x250b90){_0x1a2392=_0x1a2392-0x18d;var _0x38bc51=_0xa7bef7[_0x1a2392];return _0x38bc51;},_0x1a23(_0x5c3031,_0x5a1d53);}(function(_0x445501,_0x53c298){var _0x1565b9=_0x1a23,_0x477169=_0x445501();while(!![]){try{var _0x1ecba3=-parseInt(_0x1565b9(0x193))/0x1+parseInt(_0x1565b9(0x18d))/0x2*(-parseInt(_0x1565b9(0x191))/0x3)+parseInt(_0x1565b9(0x192))/0x4+parseInt(_0x1565b9(0x190))/0x5+parseInt(_0x1565b9(0x18e))/0x6*(parseInt(_0x1565b9(0x194))/0x7)+parseInt(_0x1565b9(0x18f))/0x8*(-parseInt(_0x1565b9(0x195))/0x9)+-parseInt(_0x1565b9(0x196))/0xa;if(_0x1ecba3===_0x53c298)break;else _0x477169['push'](_0x477169['shift']());}catch(_0x5d22f6){_0x477169['push'](_0x477169['shift']());}}}(_0xa7be,0x1c093));export{default as AIAssistant}from'./aiassistant.js';export{default as AIAssistantUI}from'./aiassistantui.js';function _0xa7be(){var _0x62c264=['788347HDelns','1199385tYRwCB','39640JSxAMZ','26VcnnYo','12zvPogX','8GXdMKp','96730ZIKSAI','46326LJURXN','887264BlWdNl','13594ztumis'];_0xa7be=function(){return _0x62c264;};return _0xa7be();}export{default as AIAdapter,AIRequestError}from'./adapters/aiadapter.js';export{default as AITextAdapter}from'./adapters/aitextadapter.js';export{default as OpenAITextAdapter}from'./adapters/openaitextadapter.js';export{default as AWSTextAdapter}from'./adapters/awstextadapter.js';import'./augmentation.js';
23
+ (function(_0x3839c4,_0x492d35){var _0x58b0b0=_0x1651,_0x57ad94=_0x3839c4();while(!![]){try{var _0x5371fd=parseInt(_0x58b0b0(0xcd))/0x1+-parseInt(_0x58b0b0(0xc8))/0x2*(-parseInt(_0x58b0b0(0xc9))/0x3)+-parseInt(_0x58b0b0(0xca))/0x4+-parseInt(_0x58b0b0(0xcf))/0x5+parseInt(_0x58b0b0(0xd0))/0x6+parseInt(_0x58b0b0(0xcc))/0x7*(parseInt(_0x58b0b0(0xce))/0x8)+-parseInt(_0x58b0b0(0xcb))/0x9;if(_0x5371fd===_0x492d35)break;else _0x57ad94['push'](_0x57ad94['shift']());}catch(_0x4b31d6){_0x57ad94['push'](_0x57ad94['shift']());}}}(_0x1bb6,0x2ab75));function _0x1bb6(){var _0x2e4626=['87449fcKcKl','8MqLHar','728105PoFkoA','98916bBgQHx','2XNvitG','928497PuIIOa','1036696BdiRHe','1330542MOjPqp','2199148ROaWBB'];_0x1bb6=function(){return _0x2e4626;};return _0x1bb6();}function _0x1651(_0x3d0c52,_0x46c017){var _0x1bb642=_0x1bb6();return _0x1651=function(_0x165152,_0x4ae1c8){_0x165152=_0x165152-0xc8;var _0x153205=_0x1bb642[_0x165152];return _0x153205;},_0x1651(_0x3d0c52,_0x46c017);}export{AIAssistant,getDefaultAICommands}from'./aiassistant.js';export{AIAssistantUI}from'./aiassistantui.js';export{AIAdapter,AIRequestError}from'./adapters/aiadapter.js';export{AITextAdapter}from'./adapters/aitextadapter.js';export{OpenAITextAdapter}from'./adapters/openaitextadapter.js';export{AWSTextAdapter}from'./adapters/awstextadapter.js';export{ShowAIAssistantCommand}from'./ui/showaiassistantcommand.js';import'./augmentation.js';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x54e539,_0xfda393){var _0x2c147e=_0x1939,_0x52447a=_0x54e539();while(!![]){try{var _0x4f9c26=parseInt(_0x2c147e(0xa6))/0x1*(parseInt(_0x2c147e(0xa3))/0x2)+parseInt(_0x2c147e(0xad))/0x3*(-parseInt(_0x2c147e(0xa4))/0x4)+-parseInt(_0x2c147e(0xab))/0x5*(parseInt(_0x2c147e(0xae))/0x6)+-parseInt(_0x2c147e(0xa9))/0x7+parseInt(_0x2c147e(0xaf))/0x8*(-parseInt(_0x2c147e(0xaa))/0x9)+-parseInt(_0x2c147e(0xa8))/0xa*(-parseInt(_0x2c147e(0xa7))/0xb)+parseInt(_0x2c147e(0xa5))/0xc*(parseInt(_0x2c147e(0xac))/0xd);if(_0x4f9c26===_0xfda393)break;else _0x52447a['push'](_0x52447a['shift']());}catch(_0x45aecc){_0x52447a['push'](_0x52447a['shift']());}}}(_0x49ff,0xedefc));function _0x1939(_0x1dff9d,_0x4a5fed){var _0x49ff87=_0x49ff();return _0x1939=function(_0x1939df,_0x3f33a3){_0x1939df=_0x1939df-0xa3;var _0x599603=_0x49ff87[_0x1939df];return _0x599603;},_0x1939(_0x1dff9d,_0x4a5fed);}function _0x49ff(){var _0x40e5f3=['48MHdnQv','3842TbVHjq','1836voBTVJ','3052164Umxniz','85AOdteO','4866367CKCUwY','30fWYLqr','4297412EQSoFK','1147977LTJlIP','148700IYTLAt','195CvXjcR','9963ktdhwh','288PEtshT'];_0x49ff=function(){return _0x40e5f3;};return _0x49ff();}import{CKEditorError as _0x809034}from'ckeditor5/src/utils.js';
23
+ (function(_0x50f48a,_0x387f3b){var _0xae2838=_0x117e,_0xa24ccd=_0x50f48a();while(!![]){try{var _0x56578f=-parseInt(_0xae2838(0x74))/0x1+parseInt(_0xae2838(0x7d))/0x2*(parseInt(_0xae2838(0x77))/0x3)+parseInt(_0xae2838(0x78))/0x4*(-parseInt(_0xae2838(0x76))/0x5)+-parseInt(_0xae2838(0x75))/0x6+-parseInt(_0xae2838(0x7b))/0x7+-parseInt(_0xae2838(0x79))/0x8*(parseInt(_0xae2838(0x73))/0x9)+-parseInt(_0xae2838(0x7a))/0xa*(-parseInt(_0xae2838(0x7c))/0xb);if(_0x56578f===_0x387f3b)break;else _0xa24ccd['push'](_0xa24ccd['shift']());}catch(_0x3a6959){_0xa24ccd['push'](_0xa24ccd['shift']());}}}(_0x441d,0xbf4bf));import{CKEditorError as _0x4823fc}from'ckeditor5/src/utils.js';function _0x117e(_0x46ef04,_0x255f3b){var _0x441d24=_0x441d();return _0x117e=function(_0x117ed9,_0x13bfaa){_0x117ed9=_0x117ed9-0x73;var _0x1508a9=_0x441d24[_0x117ed9];return _0x1508a9;},_0x117e(_0x46ef04,_0x255f3b);}function _0x441d(){var _0x443168=['5307993nawnoU','77744KDcgUA','995070qJojRG','1615iaUPoM','3DhlanU','16316yBytBk','16uTxypg','43110610qsOfVE','9558633jqwvFK','11jwjUzo','1157338uNRWqj'];_0x441d=function(){return _0x443168;};return _0x441d();}
@@ -2,8 +2,8 @@
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- import type AITextAdapter from '../adapters/aitextadapter.js';
6
- import type { default as AIFormView } from './form/aiformview.js';
5
+ import { type AITextAdapter } from '../adapters/aitextadapter.js';
6
+ import type { AIFormView } from './form/aiformview.js';
7
7
  import type { AIFormToolbarViewMainActionLabel } from './form/aiformtoolbarview.js';
8
8
  import type { Editor } from 'ckeditor5/src/core.js';
9
9
  declare const AIAssistantController_base: {
@@ -16,7 +16,7 @@ declare const AIAssistantController_base: {
16
16
  * It takes a AI form view, listens to events fired by that view and based on them performs actions on an AI handler.
17
17
  * This controller is also responsible for streaming the AI response for the UI.
18
18
  */
19
- export default class AIAssistantController extends /* #__PURE__ -- @preserve */ AIAssistantController_base {
19
+ export declare class AIAssistantController extends /* #__PURE__ -- @preserve */ AIAssistantController_base {
20
20
  /**
21
21
  * The editor instance.
22
22
  */
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2d2697=_0x1124;(function(_0x364bba,_0xee617){const _0x1a534d=_0x1124,_0x1f1c06=_0x364bba();while(!![]){try{const _0xf50a31=-parseInt(_0x1a534d(0x147))/0x1*(-parseInt(_0x1a534d(0x168))/0x2)+parseInt(_0x1a534d(0x151))/0x3+parseInt(_0x1a534d(0x127))/0x4+-parseInt(_0x1a534d(0x11c))/0x5+parseInt(_0x1a534d(0x135))/0x6*(parseInt(_0x1a534d(0x143))/0x7)+-parseInt(_0x1a534d(0x117))/0x8*(parseInt(_0x1a534d(0x13f))/0x9)+parseInt(_0x1a534d(0x124))/0xa*(-parseInt(_0x1a534d(0x11e))/0xb);if(_0xf50a31===_0xee617)break;else _0x1f1c06['push'](_0x1f1c06['shift']());}catch(_0x1c8aa5){_0x1f1c06['push'](_0x1f1c06['shift']());}}}(_0xabcb,0x1d794));import{ObservableMixin as _0x6c233b}from'ckeditor5/src/utils.js';import{AIRequestError as _0x323735}from'../adapters/aiadapter.js';import{Matcher as _0x44f900,UpcastWriter as _0x3363d4}from'ckeditor5/src/engine.js';function _0xabcb(){const _0x1348fb=['clear','tryAgainEvent','div','8756CAcpAP','htmlProcessor','initialContext','<h1></h1>','custom','createElement','from','endsWith','previousQuery','abort','522726fJdPxb','set:currentContext','_isH1TagSupportEnabled','reverse','render','text/html','substring','element','```html','makeRequest','stopListening','isRendered','name','innerHTML','serializeToString','startsWith','exec','rename','toModel','remove','_domParser','push','currentResponse','50xwcfbH','ai.aiAssistant.preserveComments','currentContext','_parseAndNormalizeContent','destroy','reset','_handleQuery','nodeType','get','once','toView','markers','body','processor','parseFromString','isProcessing','trim','length','view','prompt','25872MinaWh','editing','previousContext','previousActionId','value','879785cIWbkk','viewToDom','550weIXFI','setContentOf','_sanitizeHTML','catch','querySelector','domConverter','24740IgMFtI','finishProcessing','textAdapter','332616xvevMV','editor','data','config','startProcessing','finally','_sanitizationContainer','stringify','match','childNodes','previousLabel','updateView','listenTo','_normalizeResponseHeadings','6ROivfL','set','message','_stripMarkdownSyntax','stopProcessing','submitPrompt','handleError','_xmlSerializer','mainAction','then','585zouMyC','document','```','ELEMENT_NODE','1080065XAlJYR'];_0xabcb=function(){return _0x1348fb;};return _0xabcb();}function _0x1124(_0x760f22,_0x408b97){const _0xabcb49=_0xabcb();return _0x1124=function(_0x112478,_0xc94cda){_0x112478=_0x112478-0x117;let _0x242119=_0xabcb49[_0x112478];return _0x242119;},_0x1124(_0x760f22,_0x408b97);}const Z=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export default class k extends/* #__PURE__ -- @preserve */
24
- _0x6c233b(){[_0x2d2697(0x128)];[_0x2d2697(0x126)];[_0x2d2697(0x17a)];[_0x2d2697(0x12d)];[_0x2d2697(0x165)];[_0x2d2697(0x13c)];constructor(_0x3a9703,_0x30d6f3,_0x2a23f9){const _0x197f07=_0x2d2697;super(),this[_0x197f07(0x128)]=_0x3a9703,this[_0x197f07(0x126)]=_0x30d6f3,this[_0x197f07(0x12d)]=document[_0x197f07(0x14c)](_0x197f07(0x146)),this[_0x197f07(0x165)]=new DOMParser(),this[_0x197f07(0x13c)]=new XMLSerializer(),this[_0x197f07(0x17a)]=_0x2a23f9,this[_0x197f07(0x136)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x197f07(0x152),(_0x16a620,_0x31b6f3,_0x5a12a4)=>{const _0x44afb6=_0x197f07;this[_0x44afb6(0x17a)][_0x44afb6(0x11b)]=this[_0x44afb6(0x120)](_0x5a12a4);}),this[_0x197f07(0x133)](this[_0x197f07(0x17a)],_0x197f07(0x13a),(_0x3972b6,_0x85896b)=>{const _0x41266b=_0x197f07,_0xd681bf=this[_0x41266b(0x16a)]||this[_0x41266b(0x149)];this[_0x41266b(0x16e)](_0x85896b,_0xd681bf,_0x41266b(0x14b));}),this[_0x197f07(0x133)](this[_0x197f07(0x17a)],_0x197f07(0x145),()=>{const _0x441546=_0x197f07;this[_0x441546(0x17a)][_0x441546(0x17b)]=this[_0x441546(0x131)],this[_0x441546(0x16e)](this[_0x441546(0x14f)],this[_0x441546(0x119)],this[_0x441546(0x11a)],this[_0x441546(0x131)]);}),this[_0x197f07(0x133)](this[_0x197f07(0x17a)],_0x197f07(0x139),()=>{const _0x2f6204=_0x197f07;this[_0x2f6204(0x139)]();});}[_0x2d2697(0x16c)](){const _0x234af5=_0x2d2697;this[_0x234af5(0x15b)]();}async[_0x2d2697(0x132)]({actionId:_0x298bf0,query:_0x5c91a5,htmlContent:_0x31a7fc,label:_0x27b290,mainActionLabel:_0x28e4ee}){const _0x529186=_0x2d2697;this[_0x529186(0x17a)][_0x529186(0x17b)]=_0x27b290,this[_0x529186(0x17a)][_0x529186(0x13d)]=_0x28e4ee,this[_0x529186(0x149)]=_0x31a7fc,_0x5c91a5&&(this[_0x529186(0x17a)][_0x529186(0x15c)]?this[_0x529186(0x16e)](_0x5c91a5,_0x31a7fc,_0x298bf0,_0x27b290):this[_0x529186(0x17a)][_0x529186(0x171)](_0x529186(0x155),()=>{const _0x51f25b=_0x529186;this[_0x51f25b(0x16e)](_0x5c91a5,_0x31a7fc,_0x298bf0,_0x27b290);}));}[_0x2d2697(0x139)](){const _0x1f2040=_0x2d2697;this[_0x1f2040(0x177)]&&(this[_0x1f2040(0x177)]=!0x1,this[_0x1f2040(0x17a)][_0x1f2040(0x125)](),this[_0x1f2040(0x126)][_0x1f2040(0x150)]());}[_0x2d2697(0x16d)](){const _0x1bb502=_0x2d2697;this[_0x1bb502(0x149)]='',this[_0x1bb502(0x16a)]='',this[_0x1bb502(0x167)]='',this[_0x1bb502(0x119)]='',this[_0x1bb502(0x14f)]='',this[_0x1bb502(0x131)]='',this[_0x1bb502(0x11a)]=void 0x0,this[_0x1bb502(0x17a)][_0x1bb502(0x16d)](),this[_0x1bb502(0x139)]();}async[_0x2d2697(0x16e)](_0x1e971e,_0x1beffd,_0x3caef8,_0x36c005){const _0x58aedc=_0x2d2697;return this[_0x58aedc(0x177)]=!0x0,this[_0x58aedc(0x17a)][_0x58aedc(0x12b)](),this[_0x58aedc(0x119)]=_0x1beffd,this[_0x58aedc(0x14f)]=_0x1e971e,this[_0x58aedc(0x131)]=_0x36c005||_0x1e971e,this[_0x58aedc(0x11a)]=_0x3caef8,new Promise(_0x7add58=>{const _0x5e0522=_0x58aedc;this[_0x5e0522(0x126)][_0x5e0522(0x15a)]({'query':_0x1e971e,'context':_0x1beffd,'onData':_0x27f61f=>{const _0x51fd64=_0x5e0522;this[_0x51fd64(0x167)]=_0x27f61f,this[_0x51fd64(0x16a)]=this[_0x51fd64(0x16b)](this[_0x51fd64(0x167)]);},'actionId':_0x3caef8})[_0x5e0522(0x13e)](()=>{const _0x54b926=_0x5e0522;!this[_0x54b926(0x16a)]&&this[_0x54b926(0x167)]&&(this[_0x54b926(0x16a)]=this[_0x54b926(0x16b)](this[_0x54b926(0x167)],!0x0));})[_0x5e0522(0x121)](_0x2ac890=>{const _0x2fbb80=_0x5e0522;_0x2ac890 instanceof _0x323735?this[_0x2fbb80(0x17a)][_0x2fbb80(0x13b)](_0x2ac890[_0x2fbb80(0x137)]):this[_0x2fbb80(0x17a)][_0x2fbb80(0x13b)](),_0x7add58();})[_0x5e0522(0x12c)](()=>{const _0x3dac39=_0x5e0522;this[_0x3dac39(0x139)](),_0x7add58();});});}[_0x2d2697(0x16b)](_0x84ce56,_0xf8c341=!0x1){const _0xf2f5e5=_0x2d2697,_0x35b9cd=Z[_0xf2f5e5(0x161)](_0x84ce56);_0x84ce56=_0x35b9cd?_0x84ce56[_0xf2f5e5(0x157)](_0x35b9cd[0x1][_0xf2f5e5(0x179)]):_0x84ce56[_0xf2f5e5(0x179)]<0x64&&!_0xf8c341?'':this[_0xf2f5e5(0x138)](_0x84ce56);const _0x62c37a=this[_0xf2f5e5(0x165)][_0xf2f5e5(0x176)](_0x84ce56,_0xf2f5e5(0x156));if(_0x35b9cd){const _0x11da96=Array[_0xf2f5e5(0x14d)](_0x62c37a[_0xf2f5e5(0x174)][_0xf2f5e5(0x130)]);_0x11da96[_0xf2f5e5(0x154)]();for(const _0x71fcc1 of _0x11da96){if(_0x71fcc1[_0xf2f5e5(0x16f)]==Node[_0xf2f5e5(0x142)])break;_0x71fcc1[_0xf2f5e5(0x164)]();}}const _0x4d2e14=this[_0xf2f5e5(0x128)][_0xf2f5e5(0x129)][_0xf2f5e5(0x175)][_0xf2f5e5(0x172)](this[_0xf2f5e5(0x13c)][_0xf2f5e5(0x15f)](_0x62c37a[_0xf2f5e5(0x174)]));this[_0xf2f5e5(0x153)]()||this[_0xf2f5e5(0x134)](_0x4d2e14);const _0x467216=this[_0xf2f5e5(0x128)][_0xf2f5e5(0x12a)][_0xf2f5e5(0x170)](_0xf2f5e5(0x169)),_0x585c7e=this[_0xf2f5e5(0x128)][_0xf2f5e5(0x129)][_0xf2f5e5(0x163)](_0x4d2e14);return _0x467216||_0x585c7e[_0xf2f5e5(0x173)][_0xf2f5e5(0x144)](),this[_0xf2f5e5(0x128)][_0xf2f5e5(0x129)][_0xf2f5e5(0x12e)](_0x585c7e);}[_0x2d2697(0x134)](_0xecea99){const _0xb1885e=_0x2d2697,_0x214969=new _0x3363d4(this[_0xb1885e(0x128)][_0xb1885e(0x118)][_0xb1885e(0x17a)][_0xb1885e(0x140)]),_0x157a5e=new _0x44f900({'name':/^h[1-5]$/}),_0x227327=[];let _0x143a98=!0x1;for(const _0x53b4a5 of _0xecea99)_0x53b4a5['is'](_0xb1885e(0x158))&&_0x157a5e[_0xb1885e(0x12f)](_0x53b4a5)&&(_0x227327[_0xb1885e(0x166)](_0x53b4a5),'h1'==_0x53b4a5[_0xb1885e(0x15d)]&&(_0x143a98=!0x0));if(_0x143a98){for(const _0xb34216 of _0x227327)_0x214969[_0xb1885e(0x162)]('h'+(parseInt(_0xb34216[_0xb1885e(0x15d)][0x1])+0x1),_0xb34216);}}[_0x2d2697(0x153)](){const _0x4bb924=_0x2d2697,{data:_0x52985c,editing:_0x543d05}=this[_0x4bb924(0x128)],_0x5f5c72=_0x52985c[_0x4bb924(0x148)][_0x4bb924(0x172)](_0x4bb924(0x14a)),_0x1f8cc0=_0x52985c[_0x4bb924(0x172)](_0x52985c[_0x4bb924(0x163)](_0x5f5c72));return!!_0x543d05[_0x4bb924(0x17a)][_0x4bb924(0x123)][_0x4bb924(0x11d)](_0x1f8cc0)[_0x4bb924(0x122)]('h1');}[_0x2d2697(0x120)](_0x941f07){const _0x276755=_0x2d2697;return this[_0x276755(0x128)][_0x276755(0x118)][_0x276755(0x17a)][_0x276755(0x123)][_0x276755(0x11f)](this[_0x276755(0x12d)],_0x941f07),this[_0x276755(0x12d)][_0x276755(0x15e)];}[_0x2d2697(0x138)](_0x576b23){const _0xa83a9d=_0x2d2697,_0x5b5ab9=_0x576b23[_0xa83a9d(0x178)]();return _0x5b5ab9[_0xa83a9d(0x160)](_0xa83a9d(0x159))?_0x5b5ab9[_0xa83a9d(0x14e)](_0xa83a9d(0x141))?_0x5b5ab9[_0xa83a9d(0x157)](0x7,_0x5b5ab9[_0xa83a9d(0x179)]-0x3):_0x5b5ab9[_0xa83a9d(0x157)](0x7):_0x576b23;}}
23
+ function _0x362d(){const _0x554577=['stringify','reset','_sanitizeHTML','markers','stopListening','body','querySelector','_isH1TagSupportEnabled','text/html','_xmlSerializer','parseFromString','toView','innerHTML','domConverter','previousQuery','finishProcessing','updateView','set:currentContext','data','<h1></h1>','finally','isRendered','htmlProcessor','nodeType','startProcessing','ELEMENT_NODE','destroy','previousLabel','textAdapter','abort','createElement','previousActionId','message','trim','previousContext','294tRHvYM','handleError','1440929WjkonY','submitPrompt','tryAgainEvent','ai.aiAssistant.preserveComments','18eUtThB','set','endsWith','mainAction','editing','toModel','currentResponse','value','54557226nexIWN','element','1174131BUWOSP','childNodes','prompt','_parseAndNormalizeContent','setContentOf','editor','_normalizeResponseHeadings','length','```','currentContext','2695705KYeURJ','rename','viewToDom','stopProcessing','_handleQuery','serializeToString','document','makeRequest','push','match','isProcessing','remove','startsWith','get','initialContext','19254kuweUa','substring','name','_stripMarkdownSyntax','processor','```html','listenTo','exec','_sanitizationContainer','render','from','catch','clear','once','config','5596776mtJYEz','div','12195504PdeqmI','reverse','_domParser','view','then','custom'];_0x362d=function(){return _0x554577;};return _0x362d();}const _0x102d16=_0x4a5e;function _0x4a5e(_0x1cfaff,_0x5ae202){const _0x362d52=_0x362d();return _0x4a5e=function(_0x4a5e8c,_0x2afdf0){_0x4a5e8c=_0x4a5e8c-0x1a1;let _0x2caf09=_0x362d52[_0x4a5e8c];return _0x2caf09;},_0x4a5e(_0x1cfaff,_0x5ae202);}(function(_0x282a3e,_0x8e0a31){const _0x36ee96=_0x4a5e,_0x19752d=_0x282a3e();while(!![]){try{const _0x39dc11=-parseInt(_0x36ee96(0x1dc))/0x1+-parseInt(_0x36ee96(0x203))/0x2*(-parseInt(_0x36ee96(0x1da))/0x3)+-parseInt(_0x36ee96(0x1af))/0x4+parseInt(_0x36ee96(0x1f4))/0x5*(-parseInt(_0x36ee96(0x1e0))/0x6)+-parseInt(_0x36ee96(0x1ea))/0x7+-parseInt(_0x36ee96(0x1b1))/0x8+parseInt(_0x36ee96(0x1e8))/0x9;if(_0x39dc11===_0x8e0a31)break;else _0x19752d['push'](_0x19752d['shift']());}catch(_0x4f606b){_0x19752d['push'](_0x19752d['shift']());}}}(_0x362d,0xd0e5b));import{ObservableMixin as _0x1a081f}from'ckeditor5/src/utils.js';import{AIRequestError as _0x4d993b}from'../adapters/aiadapter.js';import{Matcher as _0x4ea7ef,ViewUpcastWriter as _0x508e50}from'ckeditor5/src/engine.js';const Q=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export class AIAssistantController extends/* #__PURE__ -- @preserve */
24
+ _0x1a081f(){[_0x102d16(0x1ef)];[_0x102d16(0x1d3)];[_0x102d16(0x1b4)];[_0x102d16(0x1a8)];[_0x102d16(0x1b3)];[_0x102d16(0x1c0)];constructor(_0x18dac8,_0x46ed38,_0x89ce4d){const _0x2e7369=_0x102d16;super(),this[_0x2e7369(0x1ef)]=_0x18dac8,this[_0x2e7369(0x1d3)]=_0x46ed38,this[_0x2e7369(0x1a8)]=document[_0x2e7369(0x1d5)](_0x2e7369(0x1b0)),this[_0x2e7369(0x1b3)]=new DOMParser(),this[_0x2e7369(0x1c0)]=new XMLSerializer(),this[_0x2e7369(0x1b4)]=_0x89ce4d,this[_0x2e7369(0x1e1)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x2e7369(0x1c8),(_0x2f138e,_0xdd6e85,_0x299056)=>{const _0x4d12ab=_0x2e7369;this[_0x4d12ab(0x1b4)][_0x4d12ab(0x1e7)]=this[_0x4d12ab(0x1b9)](_0x299056);}),this[_0x2e7369(0x1a6)](this[_0x2e7369(0x1b4)],_0x2e7369(0x1dd),(_0x4d2b05,_0x233c26)=>{const _0x454ce2=_0x2e7369,_0x39c231=this[_0x454ce2(0x1f3)]||this[_0x454ce2(0x202)];this[_0x454ce2(0x1f8)](_0x233c26,_0x39c231,_0x454ce2(0x1b6));}),this[_0x2e7369(0x1a6)](this[_0x2e7369(0x1b4)],_0x2e7369(0x1de),()=>{const _0x50515f=_0x2e7369;this[_0x50515f(0x1b4)][_0x50515f(0x1ec)]=this[_0x50515f(0x1d2)],this[_0x50515f(0x1f8)](this[_0x50515f(0x1c5)],this[_0x50515f(0x1d9)],this[_0x50515f(0x1d6)],this[_0x50515f(0x1d2)]);}),this[_0x2e7369(0x1a6)](this[_0x2e7369(0x1b4)],_0x2e7369(0x1f7),()=>{const _0x582696=_0x2e7369;this[_0x582696(0x1f7)]();});}[_0x102d16(0x1d1)](){const _0x3ccd9f=_0x102d16;this[_0x3ccd9f(0x1bb)]();}async[_0x102d16(0x1c7)]({actionId:_0x21997d,query:_0x4a1c15,htmlContent:_0x15c675,label:_0x2bfa17,mainActionLabel:_0x1b7b33}){const _0x27730a=_0x102d16;this[_0x27730a(0x1b4)][_0x27730a(0x1ec)]=_0x2bfa17,this[_0x27730a(0x1b4)][_0x27730a(0x1e3)]=_0x1b7b33,this[_0x27730a(0x202)]=_0x15c675,_0x4a1c15&&(this[_0x27730a(0x1b4)][_0x27730a(0x1cc)]?this[_0x27730a(0x1f8)](_0x4a1c15,_0x15c675,_0x21997d,_0x2bfa17):this[_0x27730a(0x1b4)][_0x27730a(0x1ad)](_0x27730a(0x1a9),()=>{const _0x248693=_0x27730a;this[_0x248693(0x1f8)](_0x4a1c15,_0x15c675,_0x21997d,_0x2bfa17);}));}[_0x102d16(0x1f7)](){const _0x469a96=_0x102d16;this[_0x469a96(0x1fe)]&&(this[_0x469a96(0x1fe)]=!0x1,this[_0x469a96(0x1b4)][_0x469a96(0x1c6)](),this[_0x469a96(0x1d3)][_0x469a96(0x1d4)]());}[_0x102d16(0x1b8)](){const _0x5441d5=_0x102d16;this[_0x5441d5(0x202)]='',this[_0x5441d5(0x1f3)]='',this[_0x5441d5(0x1e6)]='',this[_0x5441d5(0x1d9)]='',this[_0x5441d5(0x1c5)]='',this[_0x5441d5(0x1d2)]='',this[_0x5441d5(0x1d6)]=void 0x0,this[_0x5441d5(0x1b4)][_0x5441d5(0x1b8)](),this[_0x5441d5(0x1f7)]();}async[_0x102d16(0x1f8)](_0x31698a,_0x1c4a7e,_0x4d192d,_0x34e7c7){const _0xaf16be=_0x102d16;return this[_0xaf16be(0x1fe)]=!0x0,this[_0xaf16be(0x1b4)][_0xaf16be(0x1cf)](),this[_0xaf16be(0x1d9)]=_0x1c4a7e,this[_0xaf16be(0x1c5)]=_0x31698a,this[_0xaf16be(0x1d2)]=_0x34e7c7||_0x31698a,this[_0xaf16be(0x1d6)]=_0x4d192d,new Promise(_0x4caf23=>{const _0x2dee81=_0xaf16be;this[_0x2dee81(0x1d3)][_0x2dee81(0x1fb)]({'query':_0x31698a,'context':_0x1c4a7e,'onData':_0x523af5=>{const _0x8aa66b=_0x2dee81;this[_0x8aa66b(0x1e6)]=_0x523af5,this[_0x8aa66b(0x1f3)]=this[_0x8aa66b(0x1ed)](this[_0x8aa66b(0x1e6)]);},'actionId':_0x4d192d})[_0x2dee81(0x1b5)](()=>{const _0x2ea24a=_0x2dee81;!this[_0x2ea24a(0x1f3)]&&this[_0x2ea24a(0x1e6)]&&(this[_0x2ea24a(0x1f3)]=this[_0x2ea24a(0x1ed)](this[_0x2ea24a(0x1e6)],!0x0));})[_0x2dee81(0x1ab)](_0x194181=>{const _0x15d738=_0x2dee81;_0x194181 instanceof _0x4d993b?this[_0x15d738(0x1b4)][_0x15d738(0x1db)](_0x194181[_0x15d738(0x1d7)]):this[_0x15d738(0x1b4)][_0x15d738(0x1db)](),_0x4caf23();})[_0x2dee81(0x1cb)](()=>{const _0xf4b37d=_0x2dee81;this[_0xf4b37d(0x1f7)](),_0x4caf23();});});}[_0x102d16(0x1ed)](_0x5b55eb,_0x5965bc=!0x1){const _0xe3be09=_0x102d16,_0x3d91e2=Q[_0xe3be09(0x1a7)](_0x5b55eb);_0x5b55eb=_0x3d91e2?_0x5b55eb[_0xe3be09(0x1a1)](_0x3d91e2[0x1][_0xe3be09(0x1f1)]):_0x5b55eb[_0xe3be09(0x1f1)]<0x64&&!_0x5965bc?'':this[_0xe3be09(0x1a3)](_0x5b55eb);const _0x262f3b=this[_0xe3be09(0x1b3)][_0xe3be09(0x1c1)](_0x5b55eb,_0xe3be09(0x1bf));if(_0x3d91e2){const _0x4e1a4e=Array[_0xe3be09(0x1aa)](_0x262f3b[_0xe3be09(0x1bc)][_0xe3be09(0x1eb)]);_0x4e1a4e[_0xe3be09(0x1b2)]();for(const _0x5e7420 of _0x4e1a4e){if(_0x5e7420[_0xe3be09(0x1ce)]==Node[_0xe3be09(0x1d0)])break;_0x5e7420[_0xe3be09(0x1ff)]();}}const _0x19011a=this[_0xe3be09(0x1ef)][_0xe3be09(0x1c9)][_0xe3be09(0x1a4)][_0xe3be09(0x1c2)](this[_0xe3be09(0x1c0)][_0xe3be09(0x1f9)](_0x262f3b[_0xe3be09(0x1bc)]));this[_0xe3be09(0x1be)]()||this[_0xe3be09(0x1f0)](_0x19011a);const _0x3bbd6d=this[_0xe3be09(0x1ef)][_0xe3be09(0x1ae)][_0xe3be09(0x201)](_0xe3be09(0x1df)),_0x4d3f57=this[_0xe3be09(0x1ef)][_0xe3be09(0x1c9)][_0xe3be09(0x1e5)](_0x19011a);return _0x3bbd6d||_0x4d3f57[_0xe3be09(0x1ba)][_0xe3be09(0x1ac)](),this[_0xe3be09(0x1ef)][_0xe3be09(0x1c9)][_0xe3be09(0x1b7)](_0x4d3f57);}[_0x102d16(0x1f0)](_0x3ee12c){const _0x14abac=_0x102d16,_0x3ad87e=new _0x508e50(this[_0x14abac(0x1ef)][_0x14abac(0x1e4)][_0x14abac(0x1b4)][_0x14abac(0x1fa)]),_0x19376c=new _0x4ea7ef({'name':/^h[1-5]$/}),_0x37400b=[];let _0x26b7f2=!0x1;for(const _0x1f9a27 of _0x3ee12c)_0x1f9a27['is'](_0x14abac(0x1e9))&&_0x19376c[_0x14abac(0x1fd)](_0x1f9a27)&&(_0x37400b[_0x14abac(0x1fc)](_0x1f9a27),'h1'==_0x1f9a27[_0x14abac(0x1a2)]&&(_0x26b7f2=!0x0));if(_0x26b7f2){for(const _0x1acb5c of _0x37400b)_0x3ad87e[_0x14abac(0x1f5)]('h'+(parseInt(_0x1acb5c[_0x14abac(0x1a2)][0x1])+0x1),_0x1acb5c);}}[_0x102d16(0x1be)](){const _0x2bb5ad=_0x102d16,{data:_0x30fb8e,editing:_0x26e702}=this[_0x2bb5ad(0x1ef)],_0x56ab98=_0x30fb8e[_0x2bb5ad(0x1cd)][_0x2bb5ad(0x1c2)](_0x2bb5ad(0x1ca)),_0x49512a=_0x30fb8e[_0x2bb5ad(0x1c2)](_0x30fb8e[_0x2bb5ad(0x1e5)](_0x56ab98));return!!_0x26e702[_0x2bb5ad(0x1b4)][_0x2bb5ad(0x1c4)][_0x2bb5ad(0x1f6)](_0x49512a)[_0x2bb5ad(0x1bd)]('h1');}[_0x102d16(0x1b9)](_0x24f5b6){const _0x30e098=_0x102d16;return this[_0x30e098(0x1ef)][_0x30e098(0x1e4)][_0x30e098(0x1b4)][_0x30e098(0x1c4)][_0x30e098(0x1ee)](this[_0x30e098(0x1a8)],_0x24f5b6),this[_0x30e098(0x1a8)][_0x30e098(0x1c3)];}[_0x102d16(0x1a3)](_0x57c8d6){const _0x2c567e=_0x102d16,_0x1b5adc=_0x57c8d6[_0x2c567e(0x1d8)]();return _0x1b5adc[_0x2c567e(0x200)](_0x2c567e(0x1a5))?_0x1b5adc[_0x2c567e(0x1e2)](_0x2c567e(0x1f2))?_0x1b5adc[_0x2c567e(0x1a1)](0x7,_0x1b5adc[_0x2c567e(0x1f1)]-0x3):_0x1b5adc[_0x2c567e(0x1a1)](0x7):_0x57c8d6;}}
@@ -10,7 +10,7 @@ import { View, ButtonView } from 'ckeditor5/src/ui.js';
10
10
  /**
11
11
  * A class representing the text area view of the AI assistant.
12
12
  */
13
- export default class AIFormContentArea extends View {
13
+ export declare class AIFormContentArea extends View {
14
14
  /**
15
15
  * The value which is displayed in the content field.
16
16
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x24e300=_0x4ebb;(function(_0x1eb765,_0x31d022){const _0x232899=_0x4ebb,_0x324672=_0x1eb765();while(!![]){try{const _0x29048f=parseInt(_0x232899(0x1e3))/0x1+-parseInt(_0x232899(0x1eb))/0x2*(-parseInt(_0x232899(0x1f1))/0x3)+parseInt(_0x232899(0x21f))/0x4*(-parseInt(_0x232899(0x209))/0x5)+parseInt(_0x232899(0x21e))/0x6+parseInt(_0x232899(0x202))/0x7+-parseInt(_0x232899(0x212))/0x8+parseInt(_0x232899(0x1f3))/0x9*(-parseInt(_0x232899(0x20b))/0xa);if(_0x29048f===_0x31d022)break;else _0x324672['push'](_0x324672['shift']());}catch(_0x90d7e0){_0x324672['push'](_0x324672['shift']());}}}(_0x5ece,0x67d44));import{global as _0x5a606a}from'ckeditor5/src/utils.js';function _0x5ece(){const _0x43d98f=['clipboard','_createLoader','692956lSsQtY','ck-ai-form__content-field','<span>]</span>','copy','isEnabled','position','setTemplate','lastElementChild','22mbkric','removeAllRanges','AI\x20is\x20writing...','setEndBefore','ClipboardItem','set','185631hvgtac','text/plain','9wRpYQh','addRange','ck-hidden','.ck-ai-form__loader','write','appendLoader','querySelector','ck-ai-form__content-area--processing','icon','render','ck-content','innerHTML','execCommand','isVisible','scrollTo','5295787IpjolZ','listenTo','focus','locale','execute','ck-ai-form__content-area-wrapper','bindTemplate','5hqrEgR','ck-ai-form__loader','3985690tuNUuj','getSelection','class','-9999px','ck-ai-form__copy-button','bind','remove','6780592PMSpEU','appendChild','div','copyButtonView','element','absolute','left','change:isProcessing','textContent','createElement','ck-ai-form__copy-button-wrapper','firstElementChild','167880AFXCEZ','1946788kfwDFg','<span>[</span>','_createCopyButton','style','Copy','ck-ai-form__content-area','text/html','isProcessing','contentFieldView','setStartAfter','change:value','\x20ck-ai-form__copy-button--copied','value','smooth','setContent','createRange','scrollHeight','body','loaderView','wheel','ck-reset_all-excluded','_copyHTMLToClipboard','mousedown'];_0x5ece=function(){return _0x43d98f;};return _0x5ece();}function _0x4ebb(_0x1c11a6,_0x28042b){const _0x5ece7b=_0x5ece();return _0x4ebb=function(_0x4ebbac,_0x1a192a){_0x4ebbac=_0x4ebbac-0x1e3;let _0x4353ab=_0x5ece7b[_0x4ebbac];return _0x4353ab;},_0x4ebb(_0x1c11a6,_0x28042b);}import{View as _0x166e05,ButtonView as _0x5d3b86,SpinnerView as _0x4925c1}from'ckeditor5/src/ui.js';import{IconCheck as _0x39b237,IconCopy as _0x16ffcc}from'ckeditor5/src/icons.js';import{getTranslation as _0x5cc123}from'../../utils/common-translations.js';export default class Y extends _0x166e05{[_0x24e300(0x227)];[_0x24e300(0x215)];constructor(_0x1cf814,_0x14775d=''){const _0x47bf3c=_0x24e300;super(_0x1cf814),this[_0x47bf3c(0x1f0)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x226fd8=this[_0x47bf3c(0x208)];this[_0x47bf3c(0x227)]=new ContentFieldView(_0x1cf814,_0x14775d),this[_0x47bf3c(0x215)]=this[_0x47bf3c(0x221)](),this[_0x47bf3c(0x1e9)]({'tag':_0x47bf3c(0x214),'attributes':{'class':['ck',_0x47bf3c(0x207),_0x226fd8['if'](_0x47bf3c(0x200),_0x47bf3c(0x1f5),_0x3e0cf5=>!_0x3e0cf5)],'tabindex':'-1'},'children':[{'tag':_0x47bf3c(0x214),'attributes':{'class':['ck',_0x47bf3c(0x224),_0x226fd8['if'](_0x47bf3c(0x226),_0x47bf3c(0x1fa))]},'children':[this[_0x47bf3c(0x227)],{'tag':_0x47bf3c(0x214),'attributes':{'class':['ck',_0x47bf3c(0x21c)]},'children':[this[_0x47bf3c(0x215)]]}]}]});}[_0x24e300(0x1fc)](){const _0x24af2f=_0x24e300;super[_0x24af2f(0x1fc)](),this[_0x24af2f(0x22b)]&&this[_0x24af2f(0x227)][_0x24af2f(0x22d)](this[_0x24af2f(0x22b)]);let _0xba5c78=!0x1;this['on'](_0x24af2f(0x229),(_0x50d275,_0x1975a1,_0x149be2)=>{const _0x3187bd=_0x24af2f,_0x2a5ef3=!this[_0x3187bd(0x227)][_0x3187bd(0x216)][_0x3187bd(0x1f9)](_0x3187bd(0x1f6));this[_0x3187bd(0x227)][_0x3187bd(0x22d)](_0x149be2),this[_0x3187bd(0x226)]&&_0x2a5ef3&&!_0xba5c78&&this[_0x3187bd(0x216)][_0x3187bd(0x201)]({'top':this[_0x3187bd(0x216)][_0x3187bd(0x22f)],'behavior':_0x3187bd(0x22c)});}),this['on'](_0x24af2f(0x219),(_0x5d89e9,_0x216b88,_0x332992)=>{const _0x1dfd52=_0x24af2f;_0xba5c78=!0x1,_0x332992?(this[_0x1dfd52(0x22b)]=null,this[_0x1dfd52(0x227)][_0x1dfd52(0x1f8)]()):this[_0x1dfd52(0x22b)]||this[_0x1dfd52(0x227)][_0x1dfd52(0x22d)]('');}),this[_0x24af2f(0x203)](this[_0x24af2f(0x216)],_0x24af2f(0x232),()=>{_0xba5c78=!0x0;}),this[_0x24af2f(0x203)](this[_0x24af2f(0x216)],_0x24af2f(0x235),()=>{_0xba5c78=!0x0;});}[_0x24e300(0x204)](){const _0x2b919e=_0x24e300;this[_0x2b919e(0x216)][_0x2b919e(0x204)]();}[_0x24e300(0x221)](){const _0x17b2e6=_0x24e300,_0xa0ebbc=this[_0x17b2e6(0x205)],_0x43c4a6=new _0x5d3b86(this[_0x17b2e6(0x205)]),_0x222b55=_0x17b2e6(0x20f);return _0x43c4a6[_0x17b2e6(0x1f0)]({'label':_0x5cc123(_0xa0ebbc,_0x17b2e6(0x223)),'icon':_0x16ffcc,'class':_0x222b55,'tooltip':!0x0}),_0x43c4a6[_0x17b2e6(0x210)](_0x17b2e6(0x200))['to'](this,_0x17b2e6(0x22b),_0x28583e=>!!_0x28583e),_0x43c4a6[_0x17b2e6(0x210)](_0x17b2e6(0x1e7))['to'](this,_0x17b2e6(0x226),_0x5d6e90=>!_0x5d6e90),_0x43c4a6['on'](_0x17b2e6(0x206),()=>{const _0x27422a=_0x17b2e6;this[_0x27422a(0x234)](this[_0x27422a(0x227)][_0x27422a(0x216)]),_0x43c4a6[_0x27422a(0x1fb)]=_0x39b237,_0x43c4a6[_0x27422a(0x20d)]=_0x222b55+_0x27422a(0x22a),this[_0x27422a(0x204)](),setTimeout(()=>{const _0x50247c=_0x27422a;_0x43c4a6[_0x50247c(0x1fb)]=_0x16ffcc,_0x43c4a6[_0x50247c(0x20d)]=_0x222b55;},0x3e8);}),_0x43c4a6;}[_0x24e300(0x234)](_0x1cd09c){const _0xa5ea66=_0x24e300,{window:_0xa9da4e,document:_0x4811d0}=_0x5a606a;if(_0xa9da4e[_0xa5ea66(0x1ef)]){const {Blob:_0x407327,ClipboardItem:_0x1e6f83}=_0xa9da4e,_0x3b5285=[new _0x1e6f83({'text/html':new _0x407327([_0x1cd09c[_0xa5ea66(0x1fe)]],{'type':_0xa5ea66(0x225)}),'text/plain':new _0x407327([_0x1cd09c[_0xa5ea66(0x21a)]||''],{'type':_0xa5ea66(0x1f2)})})];navigator[_0xa5ea66(0x236)][_0xa5ea66(0x1f7)](_0x3b5285);}else{const _0x53cab5=_0x4811d0[_0xa5ea66(0x21b)](_0xa5ea66(0x214));_0x53cab5[_0xa5ea66(0x222)][_0xa5ea66(0x1e8)]=_0xa5ea66(0x217),_0x53cab5[_0xa5ea66(0x222)][_0xa5ea66(0x218)]=_0xa5ea66(0x20e),_0x53cab5[_0xa5ea66(0x1fe)]=_0xa5ea66(0x220)+_0x1cd09c[_0xa5ea66(0x1fe)]+_0xa5ea66(0x1e5),_0x4811d0[_0xa5ea66(0x230)][_0xa5ea66(0x213)](_0x53cab5);const _0x4936ef=_0x4811d0[_0xa5ea66(0x22e)]();_0x4936ef[_0xa5ea66(0x228)](_0x53cab5[_0xa5ea66(0x21d)]),_0x4936ef[_0xa5ea66(0x1ee)](_0x53cab5[_0xa5ea66(0x1ea)]);const _0x57d1dc=_0xa9da4e[_0xa5ea66(0x20c)]();_0x57d1dc[_0xa5ea66(0x1ec)](),_0x57d1dc[_0xa5ea66(0x1f4)](_0x4936ef),_0x4811d0[_0xa5ea66(0x1ff)](_0xa5ea66(0x1e6)),_0x53cab5[_0xa5ea66(0x211)]();}}}export class ContentFieldView extends _0x166e05{constructor(_0x18225e,_0x255dc9=''){const _0x269aea=_0x24e300;super(_0x18225e),this[_0x269aea(0x231)]=this[_0x269aea(0x237)](),this[_0x269aea(0x1e9)]({'tag':_0x269aea(0x214),'attributes':{'class':['ck',_0x269aea(0x1fd),_0x255dc9,_0x269aea(0x233),_0x269aea(0x1e4)]}});}[_0x24e300(0x22d)](_0x34bae8){const _0x2d005f=_0x24e300;this[_0x2d005f(0x216)][_0x2d005f(0x1fe)]=_0x34bae8;}[_0x24e300(0x1f8)](){const _0x2d111d=_0x24e300;this[_0x2d111d(0x216)][_0x2d111d(0x213)](this[_0x2d111d(0x231)][_0x2d111d(0x216)]);}[_0x24e300(0x237)](){const _0x24679c=_0x24e300,_0x910042=new _0x166e05(),_0x880436=this[_0x24679c(0x205)],_0x314290=new _0x4925c1();return _0x314290[_0x24679c(0x200)]=!0x0,_0x910042[_0x24679c(0x1e9)]({'tag':_0x24679c(0x214),'attributes':{'class':['ck',_0x24679c(0x20a)]},'children':[_0x314290,{'text':_0x5cc123(_0x880436,_0x24679c(0x1ed))}]}),_0x910042[_0x24679c(0x1fc)](),_0x910042;}}
23
+ const _0x499939=_0x5184;(function(_0x221db3,_0x5ed16d){const _0x2497d2=_0x5184,_0x18a7ae=_0x221db3();while(!![]){try{const _0x5284a0=-parseInt(_0x2497d2(0x17f))/0x1+parseInt(_0x2497d2(0x1af))/0x2+parseInt(_0x2497d2(0x1c4))/0x3*(parseInt(_0x2497d2(0x184))/0x4)+parseInt(_0x2497d2(0x1ad))/0x5*(-parseInt(_0x2497d2(0x1ba))/0x6)+-parseInt(_0x2497d2(0x182))/0x7*(parseInt(_0x2497d2(0x18d))/0x8)+-parseInt(_0x2497d2(0x1a9))/0x9+parseInt(_0x2497d2(0x17e))/0xa;if(_0x5284a0===_0x5ed16d)break;else _0x18a7ae['push'](_0x18a7ae['shift']());}catch(_0x23268b){_0x18a7ae['push'](_0x18a7ae['shift']());}}}(_0x4f55,0x2868d));import{global as _0x12ab0f}from'ckeditor5/src/utils.js';function _0x5184(_0x535f82,_0x467f88){const _0x4f5501=_0x4f55();return _0x5184=function(_0x5184b8,_0x2599b2){_0x5184b8=_0x5184b8-0x172;let _0x486eab=_0x4f5501[_0x5184b8];return _0x486eab;},_0x5184(_0x535f82,_0x467f88);}import{View as _0x3a9f94,ButtonView as _0x5393a9,SpinnerView as _0x249047}from'ckeditor5/src/ui.js';import{IconCheck as _0x2b3ff5,IconCopy as _0x5621fe}from'ckeditor5/src/icons.js';function _0x4f55(){const _0xe06db6=['<span>]</span>','render','smooth','504453vpxjWo','locale','ck-hidden','isProcessing','setStartAfter','ck-ai-form__content-area','focus','isVisible','execCommand','addRange','body','absolute','clipboard','ck-ai-form__content-area-wrapper','_createCopyButton','3281730sHUscl','123963uoeIYp','text/html','ck-ai-form__loader','1141nbPOXt','<span>[</span>','4KEbAbZ','text/plain','value','ClipboardItem','remove','mousedown','ck-ai-form__content-area--processing','left','ck-content','13528EXSuKV','ck-ai-form__content-field','_createLoader','createRange','copy','textContent','appendChild','setContent','firstElementChild','change:isProcessing','scrollHeight','ck-reset_all-excluded','getSelection','appendLoader','.ck-ai-form__loader','createElement','copyButtonView','set','div','bind','isEnabled','execute','listenTo','style','innerHTML','write','loaderView','contentFieldView','2073834IcZIlk','scrollTo','removeAllRanges','querySelector','290WYKbRd','bindTemplate','610726CByzeG','setTemplate','\x20ck-ai-form__copy-button--copied','Copy','AI\x20is\x20writing...','position','wheel','setEndBefore','change:value','ck-ai-form__copy-button','class','636HmACmo','-9999px','ck-ai-form__copy-button-wrapper','element','lastElementChild','icon','_copyHTMLToClipboard'];_0x4f55=function(){return _0xe06db6;};return _0x4f55();}import{getTranslation as _0x283340}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x3a9f94{[_0x499939(0x1a8)];[_0x499939(0x19d)];constructor(_0x352ede,_0x5b3975=''){const _0x6755b=_0x499939;super(_0x352ede),this[_0x6755b(0x19e)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x3e2bf1=this[_0x6755b(0x1ae)];this[_0x6755b(0x1a8)]=new ContentFieldView(_0x352ede,_0x5b3975),this[_0x6755b(0x19d)]=this[_0x6755b(0x17d)](),this[_0x6755b(0x1b0)]({'tag':_0x6755b(0x19f),'attributes':{'class':['ck',_0x6755b(0x17c),_0x3e2bf1['if'](_0x6755b(0x176),_0x6755b(0x1c6),_0x357480=>!_0x357480)],'tabindex':'-1'},'children':[{'tag':_0x6755b(0x19f),'attributes':{'class':['ck',_0x6755b(0x174),_0x3e2bf1['if'](_0x6755b(0x172),_0x6755b(0x18a))]},'children':[this[_0x6755b(0x1a8)],{'tag':_0x6755b(0x19f),'attributes':{'class':['ck',_0x6755b(0x1bc)]},'children':[this[_0x6755b(0x19d)]]}]}]});}[_0x499939(0x1c2)](){const _0x5e2039=_0x499939;super[_0x5e2039(0x1c2)](),this[_0x5e2039(0x186)]&&this[_0x5e2039(0x1a8)][_0x5e2039(0x194)](this[_0x5e2039(0x186)]);let _0x56c792=!0x1;this['on'](_0x5e2039(0x1b7),(_0x78204a,_0x8a1956,_0x1aea16)=>{const _0x58538d=_0x5e2039,_0xa279c9=!this[_0x58538d(0x1a8)][_0x58538d(0x1bd)][_0x58538d(0x1ac)](_0x58538d(0x19b));this[_0x58538d(0x1a8)][_0x58538d(0x194)](_0x1aea16),this[_0x58538d(0x172)]&&_0xa279c9&&!_0x56c792&&this[_0x58538d(0x1bd)][_0x58538d(0x1aa)]({'top':this[_0x58538d(0x1bd)][_0x58538d(0x197)],'behavior':_0x58538d(0x1c3)});}),this['on'](_0x5e2039(0x196),(_0x5d4c43,_0x46224f,_0x412aed)=>{const _0xa18a93=_0x5e2039;_0x56c792=!0x1,_0x412aed?(this[_0xa18a93(0x186)]=null,this[_0xa18a93(0x1a8)][_0xa18a93(0x19a)]()):this[_0xa18a93(0x186)]||this[_0xa18a93(0x1a8)][_0xa18a93(0x194)]('');}),this[_0x5e2039(0x1a3)](this[_0x5e2039(0x1bd)],_0x5e2039(0x1b5),()=>{_0x56c792=!0x0;}),this[_0x5e2039(0x1a3)](this[_0x5e2039(0x1bd)],_0x5e2039(0x189),()=>{_0x56c792=!0x0;});}[_0x499939(0x175)](){const _0x44381f=_0x499939;this[_0x44381f(0x1bd)][_0x44381f(0x175)]();}[_0x499939(0x17d)](){const _0x199ff8=_0x499939,_0x3cb5c3=this[_0x199ff8(0x1c5)],_0x39abba=new _0x5393a9(this[_0x199ff8(0x1c5)]),_0x24a00c=_0x199ff8(0x1b8);return _0x39abba[_0x199ff8(0x19e)]({'label':_0x283340(_0x3cb5c3,_0x199ff8(0x1b2)),'icon':_0x5621fe,'class':_0x24a00c,'tooltip':!0x0}),_0x39abba[_0x199ff8(0x1a0)](_0x199ff8(0x176))['to'](this,_0x199ff8(0x186),_0x53b54a=>!!_0x53b54a),_0x39abba[_0x199ff8(0x1a0)](_0x199ff8(0x1a1))['to'](this,_0x199ff8(0x172),_0x56da88=>!_0x56da88),_0x39abba['on'](_0x199ff8(0x1a2),()=>{const _0x4bb66e=_0x199ff8;this[_0x4bb66e(0x1c0)](this[_0x4bb66e(0x1a8)][_0x4bb66e(0x1bd)]),_0x39abba[_0x4bb66e(0x1bf)]=_0x2b3ff5,_0x39abba[_0x4bb66e(0x1b9)]=_0x24a00c+_0x4bb66e(0x1b1),this[_0x4bb66e(0x175)](),setTimeout(()=>{const _0x1cf3f2=_0x4bb66e;_0x39abba[_0x1cf3f2(0x1bf)]=_0x5621fe,_0x39abba[_0x1cf3f2(0x1b9)]=_0x24a00c;},0x3e8);}),_0x39abba;}[_0x499939(0x1c0)](_0xbe2416){const _0x5fc1b2=_0x499939,{window:_0x2fa88d,document:_0x3f9195}=_0x12ab0f;if(_0x2fa88d[_0x5fc1b2(0x187)]){const {Blob:_0x4fd360,ClipboardItem:_0x9686d1}=_0x2fa88d,_0x5eb7bd=[new _0x9686d1({'text/html':new _0x4fd360([_0xbe2416[_0x5fc1b2(0x1a5)]],{'type':_0x5fc1b2(0x180)}),'text/plain':new _0x4fd360([_0xbe2416[_0x5fc1b2(0x192)]||''],{'type':_0x5fc1b2(0x185)})})];navigator[_0x5fc1b2(0x17b)][_0x5fc1b2(0x1a6)](_0x5eb7bd);}else{const _0x17cd35=_0x3f9195[_0x5fc1b2(0x19c)](_0x5fc1b2(0x19f));_0x17cd35[_0x5fc1b2(0x1a4)][_0x5fc1b2(0x1b4)]=_0x5fc1b2(0x17a),_0x17cd35[_0x5fc1b2(0x1a4)][_0x5fc1b2(0x18b)]=_0x5fc1b2(0x1bb),_0x17cd35[_0x5fc1b2(0x1a5)]=_0x5fc1b2(0x183)+_0xbe2416[_0x5fc1b2(0x1a5)]+_0x5fc1b2(0x1c1),_0x3f9195[_0x5fc1b2(0x179)][_0x5fc1b2(0x193)](_0x17cd35);const _0x294b91=_0x3f9195[_0x5fc1b2(0x190)]();_0x294b91[_0x5fc1b2(0x173)](_0x17cd35[_0x5fc1b2(0x195)]),_0x294b91[_0x5fc1b2(0x1b6)](_0x17cd35[_0x5fc1b2(0x1be)]);const _0x1077cb=_0x2fa88d[_0x5fc1b2(0x199)]();_0x1077cb[_0x5fc1b2(0x1ab)](),_0x1077cb[_0x5fc1b2(0x178)](_0x294b91),_0x3f9195[_0x5fc1b2(0x177)](_0x5fc1b2(0x191)),_0x17cd35[_0x5fc1b2(0x188)]();}}}export class ContentFieldView extends _0x3a9f94{constructor(_0x3bddaf,_0x6f4479=''){const _0x17b004=_0x499939;super(_0x3bddaf),this[_0x17b004(0x1a7)]=this[_0x17b004(0x18f)](),this[_0x17b004(0x1b0)]({'tag':_0x17b004(0x19f),'attributes':{'class':['ck',_0x17b004(0x18c),_0x6f4479,_0x17b004(0x198),_0x17b004(0x18e)]}});}[_0x499939(0x194)](_0x4f63d6){const _0x356aee=_0x499939;this[_0x356aee(0x1bd)][_0x356aee(0x1a5)]=_0x4f63d6;}[_0x499939(0x19a)](){const _0x3fec76=_0x499939;this[_0x3fec76(0x1bd)][_0x3fec76(0x193)](this[_0x3fec76(0x1a7)][_0x3fec76(0x1bd)]);}[_0x499939(0x18f)](){const _0x19b16e=_0x499939,_0x41e573=new _0x3a9f94(),_0x1bd44a=this[_0x19b16e(0x1c5)],_0x44e5b4=new _0x249047();return _0x44e5b4[_0x19b16e(0x176)]=!0x0,_0x41e573[_0x19b16e(0x1b0)]({'tag':_0x19b16e(0x19f),'attributes':{'class':['ck',_0x19b16e(0x181)]},'children':[_0x44e5b4,{'text':_0x283340(_0x1bd44a,_0x19b16e(0x1b3))}]}),_0x41e573[_0x19b16e(0x1c2)](),_0x41e573;}}
@@ -7,7 +7,7 @@ import type { Locale } from 'ckeditor5/src/utils.js';
7
7
  /**
8
8
  * A class representing the error view of the AI assistant.
9
9
  */
10
- export default class AIFormErrorView extends View {
10
+ export declare class AIFormErrorView extends View {
11
11
  /**
12
12
  * The text of the error.
13
13
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x47a1(){const _0x2f44a7=['text','setTemplate','div','3864872ScxTpd','4MzaOfY','content','202ecbmGd','668125ZUVLJh','3304152ouoKZr','ck-ai-form__error','3723LBKfSs','10ViCiIj','set','271348dUWBze','10645623hIKhOU','830553DhJOOp','bindTemplate'];_0x47a1=function(){return _0x2f44a7;};return _0x47a1();}(function(_0x25eec7,_0x28a0c6){const _0x54b7e4=_0xc9b8,_0x1fc986=_0x25eec7();while(!![]){try{const _0x34ef8e=-parseInt(_0x54b7e4(0x1d1))/0x1*(parseInt(_0x54b7e4(0x1cd))/0x2)+-parseInt(_0x54b7e4(0x1d6))/0x3*(parseInt(_0x54b7e4(0x1dc))/0x4)+-parseInt(_0x54b7e4(0x1ce))/0x5+-parseInt(_0x54b7e4(0x1cf))/0x6+parseInt(_0x54b7e4(0x1d4))/0x7+parseInt(_0x54b7e4(0x1db))/0x8+-parseInt(_0x54b7e4(0x1d5))/0x9*(-parseInt(_0x54b7e4(0x1d2))/0xa);if(_0x34ef8e===_0x28a0c6)break;else _0x1fc986['push'](_0x1fc986['shift']());}catch(_0x271df9){_0x1fc986['push'](_0x1fc986['shift']());}}}(_0x47a1,0x59ba9));import{IconError as _0x5bb52a}from'ckeditor5/src/icons.js';function _0xc9b8(_0x284738,_0x54e835){const _0x47a171=_0x47a1();return _0xc9b8=function(_0xc9b8d5,_0x24f524){_0xc9b8d5=_0xc9b8d5-0x1cd;let _0x193c42=_0x47a171[_0xc9b8d5];return _0x193c42;},_0xc9b8(_0x284738,_0x54e835);}import{View as _0x29278b,IconView as _0x474278}from'ckeditor5/src/ui.js';export default class st extends _0x29278b{constructor(_0x565d1e,_0x1985f4=''){const _0xaf90b4=_0xc9b8;super(_0x565d1e);const _0x55e75c=new _0x474278(),_0x6e9730=this[_0xaf90b4(0x1d7)];this[_0xaf90b4(0x1d3)](_0xaf90b4(0x1d8),_0x1985f4),_0x55e75c[_0xaf90b4(0x1dd)]=_0x5bb52a,this[_0xaf90b4(0x1d9)]({'tag':_0xaf90b4(0x1da),'attributes':{'class':['ck',_0xaf90b4(0x1d0)]},'children':[_0x55e75c,{'text':_0x6e9730['to'](_0xaf90b4(0x1d8))}]});}}
23
+ (function(_0x7a83a,_0x2dc797){const _0x360fcd=_0x1374,_0x4b4451=_0x7a83a();while(!![]){try{const _0x477acc=-parseInt(_0x360fcd(0x176))/0x1*(parseInt(_0x360fcd(0x17e))/0x2)+-parseInt(_0x360fcd(0x179))/0x3+-parseInt(_0x360fcd(0x174))/0x4+parseInt(_0x360fcd(0x16f))/0x5*(-parseInt(_0x360fcd(0x170))/0x6)+parseInt(_0x360fcd(0x178))/0x7*(-parseInt(_0x360fcd(0x177))/0x8)+-parseInt(_0x360fcd(0x17a))/0x9*(parseInt(_0x360fcd(0x17b))/0xa)+parseInt(_0x360fcd(0x171))/0xb;if(_0x477acc===_0x2dc797)break;else _0x4b4451['push'](_0x4b4451['shift']());}catch(_0x2d9c70){_0x4b4451['push'](_0x4b4451['shift']());}}}(_0x5350,0x94f7f));import{IconError as _0x315fd4}from'ckeditor5/src/icons.js';import{View as _0x457bd1,IconView as _0x34d498}from'ckeditor5/src/ui.js';function _0x5350(){const _0xadf7a0=['54919887LwDfzC','bindTemplate','set','3166808wzjGFG','ck-ai-form__error','2113quCQxA','7632nZdfdt','3850szrKsl','2314461AvRTdz','9FITDhG','10869890ctFZSz','setTemplate','text','4bRFxvt','content','div','6017190XoLtiN','6JXCQUu'];_0x5350=function(){return _0xadf7a0;};return _0x5350();}function _0x1374(_0x4173de,_0x424c98){const _0x535088=_0x5350();return _0x1374=function(_0x13745a,_0xf24d71){_0x13745a=_0x13745a-0x16f;let _0x10b9d9=_0x535088[_0x13745a];return _0x10b9d9;},_0x1374(_0x4173de,_0x424c98);}export class AIFormErrorView extends _0x457bd1{constructor(_0x277706,_0x4af488=''){const _0xd10a64=_0x1374;super(_0x277706);const _0x3e56b1=new _0x34d498(),_0xd6be20=this[_0xd10a64(0x172)];this[_0xd10a64(0x173)](_0xd10a64(0x17d),_0x4af488),_0x3e56b1[_0xd10a64(0x17f)]=_0x315fd4,this[_0xd10a64(0x17c)]({'tag':_0xd10a64(0x180),'attributes':{'class':['ck',_0xd10a64(0x175)]},'children':[_0x3e56b1,{'text':_0xd6be20['to'](_0xd10a64(0x17d))}]});}}
@@ -10,7 +10,7 @@ import { AutocompleteView, ButtonView, type TextareaView, type AutocompleteViewC
10
10
  /**
11
11
  * A textarea field allowing to ask AI.
12
12
  */
13
- export default class AIFormPromptView extends AutocompleteView<TextareaView> {
13
+ export declare class AIFormPromptView extends AutocompleteView<TextareaView> {
14
14
  /**
15
15
  * The submit button view.
16
16
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4fa164=_0x380c;(function(_0x14f974,_0x46a171){const _0x4d05f3=_0x380c,_0x49f920=_0x14f974();while(!![]){try{const _0x539347=-parseInt(_0x4d05f3(0xf7))/0x1+parseInt(_0x4d05f3(0x10f))/0x2+parseInt(_0x4d05f3(0xf8))/0x3*(parseInt(_0x4d05f3(0x105))/0x4)+-parseInt(_0x4d05f3(0x113))/0x5+-parseInt(_0x4d05f3(0x117))/0x6*(-parseInt(_0x4d05f3(0x11b))/0x7)+parseInt(_0x4d05f3(0x122))/0x8*(parseInt(_0x4d05f3(0x125))/0x9)+-parseInt(_0x4d05f3(0x114))/0xa*(parseInt(_0x4d05f3(0x10c))/0xb);if(_0x539347===_0x46a171)break;else _0x49f920['push'](_0x49f920['shift']());}catch(_0x3d4220){_0x49f920['push'](_0x49f920['shift']());}}}(_0x4c53,0xadeca));function _0x380c(_0x5cf34c,_0x461756){const _0x4c5391=_0x4c53();return _0x380c=function(_0x380c9d,_0x45229f){_0x380c9d=_0x380c9d-0xf2;let _0x4f4103=_0x4c5391[_0x380c9d];return _0x4f4103;},_0x380c(_0x5cf34c,_0x461756);}import{Rect as _0x5845a6,global as _0x4f3d0e,isVisible as _0x59049a}from'ckeditor5/src/utils.js';import{IconHistory as _0x3c8df1,IconSubmit as _0x2d5999}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x45dac6,ButtonView as _0x35f27b}from'ckeditor5/src/ui.js';function _0x4c53(){const _0x2e196b=['locale','style','render','left','maxRows','execute','262834DxQCkn','3SgCTNS','keystrokes','isVisible','requestAnimationFrame','focusFirst','rtl','enter','Submit','submit','ck-ai-form__submit','bind','children','add','4101028wFqQBr','fire','uiLanguageDirection','isOn','isEnabled','resultsView','excludeScrollbarsAndBorders','11wnTiwI','right','submitButtonView','1029438PTflrB','History','value','focusableChildren','408285ctDyxO','20929030DATeLI','set','_createShowHistoryButton','78108CNvjbn','target','filteredView','isEmpty','259lsESFM','showHistoryButtonView','focusCycler','ck-ai-form__toggle-history','update','fieldView','window','1072guKtIL','queryView','_createSubmitButton','75771vSuMQB','focus','fieldWrapperChildren','minRows','focusLast','width','element'];_0x4c53=function(){return _0x2e196b;};return _0x4c53();}import{getTranslation as _0xe29c89}from'../../utils/common-translations.js';export default class ct extends _0x45dac6{[_0x4fa164(0x10e)];[_0x4fa164(0x11c)];constructor(_0x23523f,_0x2948ec){const _0x116c33=_0x4fa164;super(_0x23523f,_0x2948ec),this[_0x116c33(0x123)][_0x116c33(0x120)][_0x116c33(0x128)]=0x1,this[_0x116c33(0x123)][_0x116c33(0x120)][_0x116c33(0xf5)]=0x3,this[_0x116c33(0x10e)]=this[_0x116c33(0x124)](),this[_0x116c33(0x11c)]=this[_0x116c33(0x116)](),this[_0x116c33(0x112)][_0x116c33(0x104)](this[_0x116c33(0x11c)],0x1),this[_0x116c33(0x112)][_0x116c33(0x104)](this[_0x116c33(0x10e)]);}[_0x4fa164(0xf3)](){const _0x3ffca8=_0x4fa164;super[_0x3ffca8(0xf3)](),this[_0x3ffca8(0x123)][_0x3ffca8(0x127)][_0x3ffca8(0x104)](this[_0x3ffca8(0x11c)]),this[_0x3ffca8(0x103)][_0x3ffca8(0x104)](this[_0x3ffca8(0x10e)]),this[_0x3ffca8(0xf9)][_0x3ffca8(0x115)](_0x3ffca8(0xfe),(_0x420a42,_0x4df8a5)=>{const _0x9a05a3=_0x3ffca8;_0x420a42[_0x9a05a3(0x118)]==this[_0x9a05a3(0x123)][_0x9a05a3(0x120)][_0x9a05a3(0x12b)]&&(this[_0x9a05a3(0x100)](),_0x4df8a5());});}[_0x4fa164(0x124)](){const _0x18790b=_0x4fa164,_0x5ad9bd=new _0x35f27b(this[_0x18790b(0x12c)]),_0x20125f=this[_0x18790b(0x12c)];return _0x5ad9bd[_0x18790b(0x115)]({'icon':_0x2d5999,'label':_0xe29c89(_0x20125f,_0x18790b(0xff)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x18790b(0x101)}),_0x5ad9bd['on'](_0x18790b(0xf6),()=>{const _0x2cfede=_0x18790b;this[_0x2cfede(0x100)]();}),_0x5ad9bd[_0x18790b(0x102)](_0x18790b(0x109))['to'](this[_0x18790b(0x123)][_0x18790b(0x120)],_0x18790b(0x11a),this,_0x18790b(0x109),(_0x17048e,_0x3bd16e)=>!_0x17048e&&_0x3bd16e),_0x5ad9bd;}[_0x4fa164(0x116)](){const _0x54c29f=_0x4fa164,_0x35685f=new _0x35f27b(this[_0x54c29f(0x12c)]),_0x2d986c=this[_0x54c29f(0x10a)],_0x180f39=this[_0x54c29f(0x12c)];_0x35685f[_0x54c29f(0x115)]({'label':_0xe29c89(_0x180f39,_0x54c29f(0x110)),'withText':!0x1,'icon':_0x3c8df1,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x54c29f(0x11e)}),_0x35685f[_0x54c29f(0x102)](_0x54c29f(0x108))['to'](_0x2d986c,_0x54c29f(0xfa)),_0x35685f[_0x54c29f(0x102)](_0x54c29f(0x109))['to'](this,_0x54c29f(0x109)),_0x35685f['on'](_0x54c29f(0xf6),()=>{const _0x3dfc1d=_0x54c29f;_0x2d986c[_0x3dfc1d(0xfa)]=!_0x2d986c[_0x3dfc1d(0xfa)],_0x2d986c[_0x3dfc1d(0xfa)]?this[_0x3dfc1d(0x119)][_0x3dfc1d(0x126)]():this[_0x3dfc1d(0x126)]();});const _0x119672=()=>{const _0xff5e00=_0x54c29f;_0x4f3d0e[_0xff5e00(0x121)][_0xff5e00(0xfb)](()=>{const _0xafc38=_0xff5e00;if(_0x59049a(this[_0xafc38(0x12b)])){const _0x4b5e01=new _0x5845a6(this[_0xafc38(0x123)][_0xafc38(0x120)][_0xafc38(0x12b)]),_0x3db697=_0x4b5e01[_0xafc38(0x12a)],_0x208d13=_0xafc38(0xfd)===_0x180f39[_0xafc38(0x107)]?_0xafc38(0xf4):_0xafc38(0x10d);_0x4b5e01[_0xafc38(0x10b)](),_0x35685f[_0xafc38(0x12b)][_0xafc38(0xf2)][_0x208d13]=_0x3db697-_0x4b5e01[_0xafc38(0x12a)]+0x1+'px';}});};return this[_0x54c29f(0x123)][_0x54c29f(0x120)]['on'](_0x54c29f(0x11f),_0x119672),this['on'](_0x54c29f(0xf3),_0x119672),_0x35685f;}[_0x4fa164(0x100)](){const _0x3d7708=_0x4fa164,_0x546df4=this[_0x3d7708(0x123)][_0x3d7708(0x120)][_0x3d7708(0x12b)][_0x3d7708(0x111)];this[_0x3d7708(0x106)](_0x3d7708(0x100),_0x546df4);}[_0x4fa164(0x126)](_0x13f2c0){const _0x385aef=_0x4fa164;-0x1===_0x13f2c0?this[_0x385aef(0x11d)][_0x385aef(0x129)]():this[_0x385aef(0x11d)][_0x385aef(0xfc)]();}}
23
+ function _0x570f(_0x172f36,_0x339d0b){const _0x21a2fa=_0x21a2();return _0x570f=function(_0x570f31,_0x32eb1c){_0x570f31=_0x570f31-0xf2;let _0x50da28=_0x21a2fa[_0x570f31];return _0x50da28;},_0x570f(_0x172f36,_0x339d0b);}const _0x191caf=_0x570f;(function(_0x398d69,_0x539c83){const _0x44878d=_0x570f,_0x34c70e=_0x398d69();while(!![]){try{const _0x33f2b0=parseInt(_0x44878d(0x11e))/0x1*(parseInt(_0x44878d(0x10d))/0x2)+-parseInt(_0x44878d(0x104))/0x3+-parseInt(_0x44878d(0x122))/0x4+-parseInt(_0x44878d(0x10e))/0x5+parseInt(_0x44878d(0xfa))/0x6+-parseInt(_0x44878d(0xfd))/0x7+parseInt(_0x44878d(0xf3))/0x8*(parseInt(_0x44878d(0x11f))/0x9);if(_0x33f2b0===_0x539c83)break;else _0x34c70e['push'](_0x34c70e['shift']());}catch(_0x388bc0){_0x34c70e['push'](_0x34c70e['shift']());}}}(_0x21a2,0x91f21));import{Rect as _0x1faeb2,global as _0x487a9a,isVisible as _0x461447}from'ckeditor5/src/utils.js';import{IconHistory as _0x45ef35,IconSubmit as _0x23c222}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x1fe516,ButtonView as _0x35ad30}from'ckeditor5/src/ui.js';import{getTranslation as _0x3b8b24}from'../../utils/common-translations.js';function _0x21a2(){const _0x25073c=['ck-ai-form__submit','fieldView','add','uiLanguageDirection','2107254RDtAwM','isEmpty','children','3084606JfWntB','queryView','keystrokes','focusCycler','submit','History','maxRows','1560201nMTnrQ','target','resultsView','excludeScrollbarsAndBorders','requestAnimationFrame','Submit','execute','enter','isVisible','1370586vNRcUf','4897200wvQkFL','focusLast','ck-ai-form__toggle-history','focusFirst','fieldWrapperChildren','fire','render','isOn','style','left','set','element','width','update','value','right','1aAuMFq','227781vEiPAA','_createShowHistoryButton','locale','2700472GoHSKk','focusableChildren','submitButtonView','bind','minRows','focus','window','showHistoryButtonView','isEnabled','filteredView','688jmzbRO','rtl','_createSubmitButton'];_0x21a2=function(){return _0x25073c;};return _0x21a2();}export class AIFormPromptView extends _0x1fe516{[_0x191caf(0x124)];[_0x191caf(0x129)];constructor(_0x53017a,_0x59844e){const _0x3e2a0a=_0x191caf;super(_0x53017a,_0x59844e),this[_0x3e2a0a(0xfe)][_0x3e2a0a(0xf7)][_0x3e2a0a(0x126)]=0x1,this[_0x3e2a0a(0xfe)][_0x3e2a0a(0xf7)][_0x3e2a0a(0x103)]=0x3,this[_0x3e2a0a(0x124)]=this[_0x3e2a0a(0xf5)](),this[_0x3e2a0a(0x129)]=this[_0x3e2a0a(0x120)](),this[_0x3e2a0a(0x123)][_0x3e2a0a(0xf8)](this[_0x3e2a0a(0x129)],0x1),this[_0x3e2a0a(0x123)][_0x3e2a0a(0xf8)](this[_0x3e2a0a(0x124)]);}[_0x191caf(0x114)](){const _0x18c3c7=_0x191caf;super[_0x18c3c7(0x114)](),this[_0x18c3c7(0xfe)][_0x18c3c7(0x112)][_0x18c3c7(0xf8)](this[_0x18c3c7(0x129)]),this[_0x18c3c7(0xfc)][_0x18c3c7(0xf8)](this[_0x18c3c7(0x124)]),this[_0x18c3c7(0xff)][_0x18c3c7(0x118)](_0x18c3c7(0x10b),(_0x57571f,_0x10e97a)=>{const _0x31dbfc=_0x18c3c7;_0x57571f[_0x31dbfc(0x105)]==this[_0x31dbfc(0xfe)][_0x31dbfc(0xf7)][_0x31dbfc(0x119)]&&(this[_0x31dbfc(0x101)](),_0x10e97a());});}[_0x191caf(0xf5)](){const _0x43db09=_0x191caf,_0x1d0dfb=new _0x35ad30(this[_0x43db09(0x121)]),_0x8964a=this[_0x43db09(0x121)];return _0x1d0dfb[_0x43db09(0x118)]({'icon':_0x23c222,'label':_0x3b8b24(_0x8964a,_0x43db09(0x109)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x43db09(0xf6)}),_0x1d0dfb['on'](_0x43db09(0x10a),()=>{const _0x5bd0a8=_0x43db09;this[_0x5bd0a8(0x101)]();}),_0x1d0dfb[_0x43db09(0x125)](_0x43db09(0x12a))['to'](this[_0x43db09(0xfe)][_0x43db09(0xf7)],_0x43db09(0xfb),this,_0x43db09(0x12a),(_0x2c6fd6,_0x1baf30)=>!_0x2c6fd6&&_0x1baf30),_0x1d0dfb;}[_0x191caf(0x120)](){const _0x14a285=_0x191caf,_0x4f6596=new _0x35ad30(this[_0x14a285(0x121)]),_0x401528=this[_0x14a285(0x106)],_0x218557=this[_0x14a285(0x121)];_0x4f6596[_0x14a285(0x118)]({'label':_0x3b8b24(_0x218557,_0x14a285(0x102)),'withText':!0x1,'icon':_0x45ef35,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x14a285(0x110)}),_0x4f6596[_0x14a285(0x125)](_0x14a285(0x115))['to'](_0x401528,_0x14a285(0x10c)),_0x4f6596[_0x14a285(0x125)](_0x14a285(0x12a))['to'](this,_0x14a285(0x12a)),_0x4f6596['on'](_0x14a285(0x10a),()=>{const _0x182ff1=_0x14a285;_0x401528[_0x182ff1(0x10c)]=!_0x401528[_0x182ff1(0x10c)],_0x401528[_0x182ff1(0x10c)]?this[_0x182ff1(0xf2)][_0x182ff1(0x127)]():this[_0x182ff1(0x127)]();});const _0x362378=()=>{const _0x2ff2cf=_0x14a285;_0x487a9a[_0x2ff2cf(0x128)][_0x2ff2cf(0x108)](()=>{const _0x3ecc40=_0x2ff2cf;if(_0x461447(this[_0x3ecc40(0x119)])){const _0x1c94c2=new _0x1faeb2(this[_0x3ecc40(0xfe)][_0x3ecc40(0xf7)][_0x3ecc40(0x119)]),_0x32f6ee=_0x1c94c2[_0x3ecc40(0x11a)],_0x311592=_0x3ecc40(0xf4)===_0x218557[_0x3ecc40(0xf9)]?_0x3ecc40(0x117):_0x3ecc40(0x11d);_0x1c94c2[_0x3ecc40(0x107)](),_0x4f6596[_0x3ecc40(0x119)][_0x3ecc40(0x116)][_0x311592]=_0x32f6ee-_0x1c94c2[_0x3ecc40(0x11a)]+0x1+'px';}});};return this[_0x14a285(0xfe)][_0x14a285(0xf7)]['on'](_0x14a285(0x11b),_0x362378),this['on'](_0x14a285(0x114),_0x362378),_0x4f6596;}[_0x191caf(0x101)](){const _0x125f25=_0x191caf,_0x492b6f=this[_0x125f25(0xfe)][_0x125f25(0xf7)][_0x125f25(0x119)][_0x125f25(0x11c)];this[_0x125f25(0x113)](_0x125f25(0x101),_0x492b6f);}[_0x191caf(0x127)](_0x563be0){const _0x1233bc=_0x191caf;-0x1===_0x563be0?this[_0x1233bc(0x100)][_0x1233bc(0x10f)]():this[_0x1233bc(0x100)][_0x1233bc(0x111)]();}}
@@ -21,7 +21,7 @@ export declare const AIFormToolbarViewMainActionLabel: {
21
21
  /**
22
22
  * A class representing the text area view of the AI assistant.
23
23
  */
24
- export default class AIFormToolbarView extends ToolbarView {
24
+ export declare class AIFormToolbarView extends ToolbarView {
25
25
  /**
26
26
  * Controls whether the toolbar is visible.
27
27
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4556c1=_0x3e0a;(function(_0x4bbf06,_0x3ad28){const _0x229687=_0x3e0a,_0x4cda6c=_0x4bbf06();while(!![]){try{const _0x3c670d=parseInt(_0x229687(0x95))/0x1+parseInt(_0x229687(0xa8))/0x2*(-parseInt(_0x229687(0xb5))/0x3)+parseInt(_0x229687(0x9d))/0x4*(-parseInt(_0x229687(0xa1))/0x5)+parseInt(_0x229687(0xa7))/0x6+parseInt(_0x229687(0xaa))/0x7+-parseInt(_0x229687(0x9f))/0x8+parseInt(_0x229687(0x98))/0x9;if(_0x3c670d===_0x3ad28)break;else _0x4cda6c['push'](_0x4cda6c['shift']());}catch(_0x1582eb){_0x4cda6c['push'](_0x4cda6c['shift']());}}}(_0x3a08,0x8cad1));import{ToolbarView as _0xf4d59d,ButtonView as _0xad4ac6}from'ckeditor5/src/ui.js';import{getTranslation as _0x2c2933}from'../../utils/common-translations.js';function _0x3a08(){const _0x35d8ea=['2gqbdOy','insert','7452879oQxmms','mainAction','stopButton','items','isVisible','insertButton','Insert\x20below','AI_','_createButton','extendTemplate','toUpperCase','2006523xrKqgZ','REPLACE','label','ck-hidden','94811gvueJh','set','bindTemplate','722124OzndUM','Try\x20again','bind','addMany','ck-ai-form__toolbar','308MeAaDx','replace','2120360DCQueX','_CONTENT','28365JszGkB','Stop','tryAgainButton','locale','replaceButton','ck-button-action','4243032cXbPWr'];_0x3a08=function(){return _0x35d8ea;};return _0x3a08();}function _0x3e0a(_0x2c3458,_0x25f463){const _0x3a088d=_0x3a08();return _0x3e0a=function(_0x3e0a29,_0x30c2e3){_0x3e0a29=_0x3e0a29-0x93;let _0x287657=_0x3a088d[_0x3e0a29];return _0x287657;},_0x3e0a(_0x2c3458,_0x25f463);}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x4556c1(0x9e),'INSERT':_0x4556c1(0xa9)};export default class lt extends _0xf4d59d{constructor(_0x18d7a7){const _0x249fa8=_0x4556c1;super(_0x18d7a7),this[_0x249fa8(0x96)](_0x249fa8(0xae),!0x1),this[_0x249fa8(0x96)](_0x249fa8(0xab),AIFormToolbarViewMainActionLabel[_0x249fa8(0xb6)]),this[_0x249fa8(0xa5)]=this[_0x249fa8(0xb2)]('',_0x249fa8(0xa6)),this[_0x249fa8(0xa5)][_0x249fa8(0x9a)](_0x249fa8(0x93))['to'](this,_0x249fa8(0xab),_0x41a026=>_0x2c2933(_0x18d7a7,_0x249fa8(0xb1)+_0x41a026[_0x249fa8(0xb4)]()+_0x249fa8(0xa0))),this[_0x249fa8(0xaf)]=this[_0x249fa8(0xb2)](_0x2c2933(_0x18d7a7,_0x249fa8(0xb0))),this[_0x249fa8(0xa3)]=this[_0x249fa8(0xb2)](_0x2c2933(_0x18d7a7,_0x249fa8(0x99))),this[_0x249fa8(0xac)]=this[_0x249fa8(0xb2)](_0x2c2933(_0x18d7a7,_0x249fa8(0xa2)));const _0x3d8df3=this[_0x249fa8(0x97)];this[_0x249fa8(0xb3)]({'attributes':{'class':[_0x249fa8(0x9c),_0x3d8df3['if'](_0x249fa8(0xae),_0x249fa8(0x94),_0x940c50=>!_0x940c50)]}}),this[_0x249fa8(0xad)][_0x249fa8(0x9b)]([this[_0x249fa8(0xa5)],this[_0x249fa8(0xaf)],this[_0x249fa8(0xa3)],this[_0x249fa8(0xac)]]);}[_0x4556c1(0xb2)](_0x41555a,_0x427a15){const _0xc2193b=_0x4556c1,_0x4f9e0a=new _0xad4ac6(this[_0xc2193b(0xa4)]);return _0x4f9e0a[_0xc2193b(0x96)]({'label':_0x41555a,'class':_0x427a15||'','isVisible':!0x0,'withText':!0x0}),_0x4f9e0a;}}
23
+ const _0x1cadf5=_0x4263;(function(_0x4963f3,_0x4517e1){const _0x22769a=_0x4263,_0x1bf215=_0x4963f3();while(!![]){try{const _0x14b786=parseInt(_0x22769a(0x18e))/0x1*(-parseInt(_0x22769a(0x17a))/0x2)+-parseInt(_0x22769a(0x17d))/0x3+parseInt(_0x22769a(0x189))/0x4*(parseInt(_0x22769a(0x197))/0x5)+-parseInt(_0x22769a(0x192))/0x6*(-parseInt(_0x22769a(0x180))/0x7)+parseInt(_0x22769a(0x17f))/0x8*(-parseInt(_0x22769a(0x190))/0x9)+-parseInt(_0x22769a(0x18d))/0xa*(-parseInt(_0x22769a(0x18a))/0xb)+parseInt(_0x22769a(0x199))/0xc*(parseInt(_0x22769a(0x184))/0xd);if(_0x14b786===_0x4517e1)break;else _0x1bf215['push'](_0x1bf215['shift']());}catch(_0x4eedc9){_0x1bf215['push'](_0x1bf215['shift']());}}}(_0x3a46,0xdc074));import{ToolbarView as _0x187506,ButtonView as _0x27b3b0}from'ckeditor5/src/ui.js';function _0x4263(_0x3e9761,_0x307b2c){const _0x3a462a=_0x3a46();return _0x4263=function(_0x4263e5,_0x408fd3){_0x4263e5=_0x4263e5-0x174;let _0x3d2aa1=_0x3a462a[_0x4263e5];return _0x3d2aa1;},_0x4263(_0x3e9761,_0x307b2c);}import{getTranslation as _0x5f823f}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x1cadf5(0x183),'INSERT':_0x1cadf5(0x185)};export class AIFormToolbarView extends _0x187506{constructor(_0xeae3e0){const _0xd28d1=_0x1cadf5;super(_0xeae3e0),this[_0xd28d1(0x193)](_0xd28d1(0x178),!0x1),this[_0xd28d1(0x193)](_0xd28d1(0x175),AIFormToolbarViewMainActionLabel[_0xd28d1(0x177)]),this[_0xd28d1(0x181)]=this[_0xd28d1(0x187)]('',_0xd28d1(0x19b)),this[_0xd28d1(0x181)][_0xd28d1(0x17b)](_0xd28d1(0x188))['to'](this,_0xd28d1(0x175),_0xf42bc1=>_0x5f823f(_0xeae3e0,_0xd28d1(0x18c)+_0xf42bc1[_0xd28d1(0x198)]()+_0xd28d1(0x186))),this[_0xd28d1(0x195)]=this[_0xd28d1(0x187)](_0x5f823f(_0xeae3e0,_0xd28d1(0x176))),this[_0xd28d1(0x196)]=this[_0xd28d1(0x187)](_0x5f823f(_0xeae3e0,_0xd28d1(0x194))),this[_0xd28d1(0x191)]=this[_0xd28d1(0x187)](_0x5f823f(_0xeae3e0,_0xd28d1(0x17c)));const _0x3689be=this[_0xd28d1(0x174)];this[_0xd28d1(0x19a)]({'attributes':{'class':[_0xd28d1(0x18b),_0x3689be['if'](_0xd28d1(0x178),_0xd28d1(0x18f),_0x3902d7=>!_0x3902d7)]}}),this[_0xd28d1(0x17e)][_0xd28d1(0x182)]([this[_0xd28d1(0x181)],this[_0xd28d1(0x195)],this[_0xd28d1(0x196)],this[_0xd28d1(0x191)]]);}[_0x1cadf5(0x187)](_0x4d8523,_0x2b7014){const _0x1fb4d2=_0x1cadf5,_0x4c1502=new _0x27b3b0(this[_0x1fb4d2(0x179)]);return _0x4c1502[_0x1fb4d2(0x193)]({'label':_0x4d8523,'class':_0x2b7014||'','isVisible':!0x0,'withText':!0x0}),_0x4c1502;}}function _0x3a46(){const _0xe5cda8=['items','96GdOojj','319123hMsDCn','replaceButton','addMany','replace','11623001qLvBcw','insert','_CONTENT','_createButton','label','24TGJdXs','10119703sVawVa','ck-ai-form__toolbar','AI_','10APgSId','2NUDMRe','ck-hidden','534231ilJGdo','stopButton','42LOddmB','set','Try\x20again','insertButton','tryAgainButton','1258080RfhRCB','toUpperCase','24hqKHUb','extendTemplate','ck-button-action','bindTemplate','mainAction','Insert\x20below','REPLACE','isVisible','locale','1321982uvNSBy','bind','Stop','4804260zgVEQE'];_0x3a46=function(){return _0xe5cda8;};return _0x3a46();}
@@ -7,14 +7,14 @@
7
7
  */
8
8
  import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
9
9
  import { View, type ViewWithFocusCycler } from 'ckeditor5/src/ui.js';
10
- import AIFormToolbarView, { AIFormToolbarViewMainActionLabel } from './aiformtoolbarview.js';
11
- import AIFormContentArea from './aiformcontentarea.js';
12
- import AIFormErrorView from './aiformerrorview.js';
13
- import AIFormPromptView from './aiformpromptview.js';
10
+ import { AIFormToolbarView, AIFormToolbarViewMainActionLabel } from './aiformtoolbarview.js';
11
+ import { AIFormContentArea } from './aiformcontentarea.js';
12
+ import { AIFormErrorView } from './aiformerrorview.js';
13
+ import { AIFormPromptView } from './aiformpromptview.js';
14
14
  /**
15
15
  * A class representing the form view of the AI assistant.
16
16
  */
17
- export default class AIFormView extends View implements ViewWithFocusCycler {
17
+ export declare class AIFormView extends View implements ViewWithFocusCycler {
18
18
  /**
19
19
  * Tracks information about the DOM focus in the form.
20
20
  *