@ckeditor/ckeditor5-ai 47.4.0-alpha.5 → 47.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.js +1 -1
  7. package/src/aiassistant/adapters/aiadapter.js +1 -1
  8. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  9. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  10. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  11. package/src/aiassistant/aiassistant.js +1 -1
  12. package/src/aiassistant/aiassistantediting.js +1 -1
  13. package/src/aiassistant/aiassistantui.js +1 -1
  14. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  15. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  16. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  17. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  18. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  19. package/src/aiassistant/ui/form/aiformview.js +1 -1
  20. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  21. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  22. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  23. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  24. package/src/aiballoon/aiballoon.js +1 -1
  25. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  26. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  27. package/src/aiballoon/ui/aiballoonview.js +1 -1
  28. package/src/aichat/aichat.js +1 -1
  29. package/src/aichat/aichatcontroller.js +1 -1
  30. package/src/aichat/aichatui.js +1 -1
  31. package/src/aichat/model/aichatcontext.js +1 -1
  32. package/src/aichat/model/aichatconversation.js +1 -1
  33. package/src/aichat/model/aichatinteraction.js +1 -1
  34. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  35. package/src/aichat/ui/aichatfeedview.js +1 -1
  36. package/src/aichat/ui/aichatheaderview.js +1 -1
  37. package/src/aichat/ui/aichatview.js +1 -1
  38. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  39. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  42. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  43. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  45. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  46. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  49. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  50. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  57. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  58. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  59. package/src/aichat/utils/eventnames.js +1 -1
  60. package/src/aichat/utils/promisequeue.js +1 -1
  61. package/src/aichathistory/aichathistory.js +1 -1
  62. package/src/aichathistory/aichathistorycontroller.js +1 -1
  63. package/src/aichathistory/aichathistoryui.js +1 -1
  64. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  65. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  66. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  67. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  68. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  69. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  70. package/src/aicore/aiconnector.js +1 -1
  71. package/src/aicore/aiediting.js +1 -1
  72. package/src/aicore/model/aicapabilities.js +1 -1
  73. package/src/aicore/model/aiinteraction.js +1 -1
  74. package/src/aicore/model/aimodels.js +1 -1
  75. package/src/aicore/model/aireply.js +1 -1
  76. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  77. package/src/aicore/pipeline/airesponseparser.js +2 -2
  78. package/src/aicore/ui/aidisclaimerview.js +1 -1
  79. package/src/aicore/ui/aiskeleton.js +1 -1
  80. package/src/aicore/ui/aispinner.js +1 -1
  81. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  82. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  83. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  84. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  85. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  86. package/src/aicore/utils/createresizebutton.js +1 -1
  87. package/src/aicore/utils/documentposition.js +1 -1
  88. package/src/aicore/utils/documentrange.js +1 -1
  89. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  90. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  91. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  92. package/src/aicore/utils/htmlparser.js +1 -1
  93. package/src/aicore/utils/htmlstreamer.js +1 -1
  94. package/src/aicore/utils/scrollmanager.js +1 -1
  95. package/src/aieditorintegration/aieditorintegration.js +1 -1
  96. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  97. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  98. package/src/aiquickactions/aiquickactions.js +1 -1
  99. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  100. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  101. package/src/aiquickactions/aiquickactionsui.js +1 -1
  102. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  103. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  104. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  105. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  106. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  107. package/src/aireviewmode/aireviewmode.js +1 -1
  108. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  109. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  110. package/src/aireviewmode/aireviewmodeui.js +1 -1
  111. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  112. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  113. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  114. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  115. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  116. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  117. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  118. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  119. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  120. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  121. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  122. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  123. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  124. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  125. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  126. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  127. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  128. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  129. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  130. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  131. package/src/aitabs/aitabs.js +1 -1
  132. package/src/aitabs/tabs/aitabsview.js +1 -1
  133. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  134. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a8a8e=_0x3e44;(function(_0x3d11b9,_0x2ceee1){const _0x2dbe3a=_0x3e44,_0x3ae76d=_0x3d11b9();while(!![]){try{const _0x5a40da=parseInt(_0x2dbe3a(0x105))/0x1*(-parseInt(_0x2dbe3a(0xe9))/0x2)+-parseInt(_0x2dbe3a(0xe4))/0x3+parseInt(_0x2dbe3a(0xdc))/0x4*(-parseInt(_0x2dbe3a(0xb2))/0x5)+parseInt(_0x2dbe3a(0xd2))/0x6+parseInt(_0x2dbe3a(0xfa))/0x7+parseInt(_0x2dbe3a(0x104))/0x8*(parseInt(_0x2dbe3a(0xd9))/0x9)+-parseInt(_0x2dbe3a(0x103))/0xa;if(_0x5a40da===_0x2ceee1)break;else _0x3ae76d['push'](_0x3ae76d['shift']());}catch(_0x3588be){_0x3ae76d['push'](_0x3ae76d['shift']());}}}(_0x147a,0xaef32));import{FocusTracker as _0x36bc74,KeystrokeHandler as _0x1477a5}from'ckeditor5/src/utils.js';import{View as _0x39aebe,FocusCycler as _0x2a348c,createLabeledTextarea as _0x5dfe7f}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0xc1b11f,AIFormToolbarViewMainActionLabel as _0x51dac3}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x11bda2}from'./aiformcontentarea.js';import{AIFormErrorView as _0x4563f1}from'./aiformerrorview.js';function _0x147a(){const _0x50902f=['errorView','replaceContent','ck-ai-form','stopProcessing','set','AI_ERROR_FAILED','submit','REPLACE','value','fieldView','tab','historyGroupView','_createToolbar','reset','chain','submitPrompt','tryAgainButton','createCollection','bindTo','mainAction','startProcessing','ck-hidden','isVisible','items','fire','contentArea','3640560TXQFLu','_focusables','clear','text','focusLast','stopButton','element','430047VEdfvh','trim','_createHistoryView','4wTRFFt','Ask\x20AI\x20to\x20edit\x20or\x20generate','high','setTemplate','focusTracker','replaceButton','isEnabled','isError','386082QzBsTP','shift\x20+\x20tab','bindTemplate','render','prompt','751518GIkteb','add','insertContentBelow','isProcessing','focusCycler','delegate','focus','Empty\x20history','insertButton','promptView','toolbar','label','finishProcessing','copyButtonView','search','_createPromptView','Ask\x20AI\x20to\x20improve\x20generated\x20text','8788283eoFonI','handleError','div','queryView','clearHistory','execute','listenTo','tryAgainEvent','focusFirst','5424000iWxMVc','136HjCMdi','1koTbnU','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','4555465ZxOCuP','ck-ai-form-content','locale','keystrokes','_promptHistory','bind'];_0x147a=function(){return _0x50902f;};return _0x147a();}import{AIFormPromptView as _0x50be76}from'./aiformpromptview.js';import{AIHistoryListView as _0x350190}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x2f0e0b}from'./aihistorylistitemview.js';import{PromptHistory as _0x5804d0}from'./prompthistory.js';import{getTranslation as _0x55b5a0}from'../../utils/common-translations.js';import{escape as _0x54402a}from'es-toolkit/compat';function _0x3e44(_0x36b523,_0x570acd){const _0x147a92=_0x147a();return _0x3e44=function(_0x3e44ba,_0x19f56f){_0x3e44ba=_0x3e44ba-0xb2;let _0x3e4495=_0x147a92[_0x3e44ba];return _0x3e4495;},_0x3e44(_0x36b523,_0x570acd);}export class AIFormView extends _0x39aebe{[_0x4a8a8e(0xe0)];[_0x4a8a8e(0xb5)];[_0x4a8a8e(0xd1)];[_0x4a8a8e(0xf3)];[_0x4a8a8e(0xf2)];[_0x4a8a8e(0xb8)];[_0x4a8a8e(0xd3)];[_0x4a8a8e(0xed)];[_0x4a8a8e(0xb6)];constructor(_0x311f73,_0x1d8954,_0x4dba4f=''){const _0x32b735=_0x4a8a8e;super(_0x311f73),this[_0x32b735(0xbc)](_0x32b735(0xe2),!0x0),this[_0x32b735(0xbc)](_0x32b735(0xec),!0x1),this[_0x32b735(0xbc)](_0x32b735(0xe8),''),this[_0x32b735(0xbc)](_0x32b735(0xc0),''),this[_0x32b735(0xbc)](_0x32b735(0xe3),!0x1),this[_0x32b735(0xbc)](_0x32b735(0xcb),_0x51dac3[_0x32b735(0xbf)]),this[_0x32b735(0xb6)]=new _0x5804d0(),this[_0x32b735(0xb8)]=new _0x4563f1(_0x311f73),this[_0x32b735(0xd1)]=new _0x11bda2(_0x311f73,_0x4dba4f),this[_0x32b735(0xd1)][_0x32b735(0xb7)](_0x32b735(0xec))['to'](this),this[_0x32b735(0xd1)][_0x32b735(0xb7)](_0x32b735(0xc0))['to'](this),this[_0x32b735(0xf3)]=this[_0x32b735(0xc4)](),this[_0x32b735(0xf3)][_0x32b735(0xb7)](_0x32b735(0xcb))['to'](this),this[_0x32b735(0xf2)]=this[_0x32b735(0xf8)](),this[_0x32b735(0xe0)]=new _0x36bc74(),this[_0x32b735(0xb5)]=new _0x1477a5(),this[_0x32b735(0xd3)]=this[_0x32b735(0xc9)]([this[_0x32b735(0xd1)],this[_0x32b735(0xd1)][_0x32b735(0xf6)],this[_0x32b735(0xf3)],this[_0x32b735(0xf2)]]),this[_0x32b735(0xed)]=new _0x2a348c({'focusables':this[_0x32b735(0xd3)],'focusTracker':this[_0x32b735(0xe0)],'keystrokeHandler':this[_0x32b735(0xb5)],'actions':{'focusPrevious':_0x32b735(0xe5),'focusNext':_0x32b735(0xc2)}}),this[_0x32b735(0xed)][_0x32b735(0xc6)](this[_0x32b735(0xf2)][_0x32b735(0xed)]),this[_0x32b735(0xf2)][_0x32b735(0xfd)][_0x32b735(0xc1)][_0x32b735(0xb7)](_0x32b735(0xc0))['to'](this,_0x32b735(0xe8));const _0x38123c=this[_0x32b735(0xe6)];this[_0x32b735(0xdf)]({'tag':_0x32b735(0xfc),'attributes':{'class':['ck',_0x32b735(0xba),_0x1d8954],'tabindex':'-1'},'children':[{'tag':_0x32b735(0xfc),'attributes':{'class':['ck',_0x32b735(0xb3)]},'children':[{'tag':_0x32b735(0xfc),'attributes':{'class':[_0x38123c['if'](_0x32b735(0xe3),_0x32b735(0xcd),_0x56d346=>!_0x56d346)]},'children':[this[_0x32b735(0xb8)]]},this[_0x32b735(0xd1)],this[_0x32b735(0xf3)],this[_0x32b735(0xf2)]]}]});}[_0x4a8a8e(0xe7)](){const _0x162b67=_0x4a8a8e;super[_0x162b67(0xe7)](),this[_0x162b67(0xe0)][_0x162b67(0xea)](this[_0x162b67(0xd1)][_0x162b67(0xd8)]),this[_0x162b67(0xe0)][_0x162b67(0xea)](this[_0x162b67(0xd1)][_0x162b67(0xf6)][_0x162b67(0xd8)]),this[_0x162b67(0xe0)][_0x162b67(0xea)](this[_0x162b67(0xf3)][_0x162b67(0xd8)]),this[_0x162b67(0xe0)][_0x162b67(0xea)](this[_0x162b67(0xf2)][_0x162b67(0xd8)]),this[_0x162b67(0xb5)][_0x162b67(0x100)](this[_0x162b67(0xd8)]);}[_0x4a8a8e(0xef)](_0x1a2877=0x1){const _0x4c1d8d=_0x4a8a8e;-0x1===_0x1a2877?this[_0x4c1d8d(0xed)][_0x4c1d8d(0xd6)]():this[_0x4c1d8d(0xed)][_0x4c1d8d(0x102)]();}[_0x4a8a8e(0xc5)](){const _0x455bf9=_0x4a8a8e;this[_0x455bf9(0xe8)]='',this[_0x455bf9(0xc0)]='',this[_0x455bf9(0xe3)]=!0x1,this[_0x455bf9(0xf2)][_0x455bf9(0xc5)](),this[_0x455bf9(0xd1)][_0x455bf9(0xce)]=!0x1,this[_0x455bf9(0xf3)][_0x455bf9(0xce)]=!0x1;}[_0x4a8a8e(0xf8)](){const _0x32c503=_0x4a8a8e,_0x513003=this[_0x32c503(0xb4)],_0x1c0e48=new _0x50be76(_0x513003,{'queryView':{'label':_0x55b5a0(_0x513003,_0x32c503(0xdd)),'creator':_0x5dfe7f,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x55b5a0(_0x513003,_0x32c503(0xf0)),'secondary':_0x55b5a0(_0x513003,_0x32c503(0x106))}}},'filteredView':this[_0x32c503(0xdb)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x1c0e48[_0x32c503(0xb7)](_0x32c503(0xe2))['to'](this,_0x32c503(0xe2),this,_0x32c503(0xec),(_0xb9fd31,_0x41d044)=>_0xb9fd31&&!_0x41d044),this[_0x32c503(0x100)](_0x1c0e48,_0x32c503(0xbe),(_0x16c4cc,_0x5ce224)=>{const _0x19fec0=_0x32c503;this[_0x19fec0(0xe8)]=_0x5ce224;const _0x46293b=_0x54402a(_0x5ce224);this[_0x19fec0(0xd0)](_0x19fec0(0xc7),_0x46293b),_0x5ce224[_0x19fec0(0xda)]()&&this[_0x19fec0(0xb6)][_0x19fec0(0xea)]({'prompt':_0x46293b},0x0);},{'priority':_0x32c503(0xde)}),_0x1c0e48;}[_0x4a8a8e(0xdb)](){const _0x6d5fed=_0x4a8a8e,_0x5bb54c=new _0x350190(this[_0x6d5fed(0xb4)]);return _0x5bb54c[_0x6d5fed(0xc3)][_0x6d5fed(0xcf)][_0x6d5fed(0xca)](this[_0x6d5fed(0xb6)])['as'](_0x2f0e0b),_0x5bb54c['on'](_0x6d5fed(0xfe),()=>{const _0x4e5b36=_0x6d5fed;this[_0x4e5b36(0xb6)][_0x4e5b36(0xd4)](),this[_0x4e5b36(0xf2)][_0x4e5b36(0xf7)](''),this[_0x4e5b36(0xf2)][_0x4e5b36(0xef)]();}),_0x5bb54c;}[_0x4a8a8e(0xc4)](){const _0xb5f3c1=_0x4a8a8e,_0x589ea7=new _0xc1b11f(this[_0xb5f3c1(0xb4)]);return _0x589ea7[_0xb5f3c1(0xe1)][_0xb5f3c1(0xb7)](_0xb5f3c1(0xe2))['to'](this,_0xb5f3c1(0xe2),this,_0xb5f3c1(0xec),this,_0xb5f3c1(0xc0),(_0x8d88a1,_0x46ee2b,_0x20668a)=>_0x8d88a1&&!_0x46ee2b&&!!_0x20668a),_0x589ea7[_0xb5f3c1(0xe1)][_0xb5f3c1(0xee)](_0xb5f3c1(0xff))['to'](this,_0xb5f3c1(0xb9)),_0x589ea7[_0xb5f3c1(0xf1)][_0xb5f3c1(0xb7)](_0xb5f3c1(0xe2))['to'](this,_0xb5f3c1(0xe2),this,_0xb5f3c1(0xec),this,_0xb5f3c1(0xc0),(_0x385ba5,_0x279703,_0x29278f)=>_0x385ba5&&!_0x279703&&!!_0x29278f),_0x589ea7[_0xb5f3c1(0xf1)][_0xb5f3c1(0xee)](_0xb5f3c1(0xff))['to'](this,_0xb5f3c1(0xeb)),_0x589ea7[_0xb5f3c1(0xc8)][_0xb5f3c1(0xb7)](_0xb5f3c1(0xe2))['to'](this,_0xb5f3c1(0xe2),this,_0xb5f3c1(0xec),(_0x1d043b,_0x923d72)=>_0x1d043b&&!_0x923d72),_0x589ea7[_0xb5f3c1(0xc8)][_0xb5f3c1(0xee)](_0xb5f3c1(0xff))['to'](this,_0xb5f3c1(0x101)),_0x589ea7[_0xb5f3c1(0xd7)][_0xb5f3c1(0xb7)](_0xb5f3c1(0xe2))['to'](this,_0xb5f3c1(0xec)),_0x589ea7[_0xb5f3c1(0xd7)][_0xb5f3c1(0xee)](_0xb5f3c1(0xff))['to'](this,_0xb5f3c1(0xbb)),_0x589ea7;}[_0x4a8a8e(0xcc)](){const _0x405b26=_0x4a8a8e;this[_0x405b26(0xc0)]='',this[_0x405b26(0xe3)]=!0x1,this[_0x405b26(0xec)]=!0x0,this[_0x405b26(0xd1)][_0x405b26(0xce)]=!0x0,this[_0x405b26(0xf3)][_0x405b26(0xce)]=!0x0,this[_0x405b26(0xd1)][_0x405b26(0xef)]();}[_0x4a8a8e(0xf5)](){const _0xaeb639=_0x4a8a8e,_0x1025ff=this[_0xaeb639(0xb4)];this[_0xaeb639(0xec)]=!0x1,this[_0xaeb639(0xe8)]='',this[_0xaeb639(0xf2)][_0xaeb639(0xc5)](),this[_0xaeb639(0xc0)]&&(this[_0xaeb639(0xf2)][_0xaeb639(0xfd)][_0xaeb639(0xf4)]=_0x55b5a0(_0x1025ff,_0xaeb639(0xf9)));}[_0x4a8a8e(0xfb)](_0x4d9967){const _0xc53ea4=_0x4a8a8e,_0x4f60ba=this[_0xc53ea4(0xb4)];this[_0xc53ea4(0xf5)](),this[_0xc53ea4(0xe3)]=!0x0,this[_0xc53ea4(0xb8)][_0xc53ea4(0xd5)]=_0x4d9967||_0x55b5a0(_0x4f60ba,_0xc53ea4(0xbd)),this[_0xc53ea4(0xc0)]||(this[_0xc53ea4(0xd1)][_0xc53ea4(0xce)]=!0x1);}}
23
+ const _0x55ffe4=_0x268a;(function(_0x2c2a03,_0x265bba){const _0x46b5e8=_0x268a,_0x134718=_0x2c2a03();while(!![]){try{const _0x3de440=-parseInt(_0x46b5e8(0x17d))/0x1+-parseInt(_0x46b5e8(0x169))/0x2*(parseInt(_0x46b5e8(0x196))/0x3)+-parseInt(_0x46b5e8(0x18a))/0x4+-parseInt(_0x46b5e8(0x18f))/0x5*(-parseInt(_0x46b5e8(0x19c))/0x6)+parseInt(_0x46b5e8(0x180))/0x7+-parseInt(_0x46b5e8(0x1a0))/0x8*(-parseInt(_0x46b5e8(0x162))/0x9)+parseInt(_0x46b5e8(0x167))/0xa;if(_0x3de440===_0x265bba)break;else _0x134718['push'](_0x134718['shift']());}catch(_0x2ab71d){_0x134718['push'](_0x134718['shift']());}}}(_0x2d2c,0x7b402));import{FocusTracker as _0x493edf,KeystrokeHandler as _0x926b49}from'ckeditor5/src/utils.js';import{View as _0xbc12b4,FocusCycler as _0x394a14,createLabeledTextarea as _0x140f04}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x306dd6,AIFormToolbarViewMainActionLabel as _0x493b69}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x5825c2}from'./aiformcontentarea.js';import{AIFormErrorView as _0x539398}from'./aiformerrorview.js';import{AIFormPromptView as _0xdb0114}from'./aiformpromptview.js';import{AIHistoryListView as _0x18f8c6}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x5396df}from'./aihistorylistitemview.js';function _0x2d2c(){const _0x303f5c=['shift\x20+\x20tab','focus','clearHistory','items','85ouIIpb','focusLast','chain','startProcessing','search','fire','bindTo','1221249FlbpHc','AI_ERROR_FAILED','keystrokes','mainAction','clear','label','354768SFawZl','isError','value','render','32216gLaNGX','copyButtonView','tryAgainEvent','text','replaceButton','queryView','isProcessing','prompt','bindTemplate','fieldView','historyGroupView','_createToolbar','REPLACE','isVisible','high','trim','ck-ai-form-content','element','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','locale','contentArea','Empty\x20history','execute','837GhDwqt','delegate','errorView','promptView','handleError','602160FWMfwD','createCollection','4VLcmNQ','isEnabled','Ask\x20AI\x20to\x20improve\x20generated\x20text','submit','Ask\x20AI\x20to\x20edit\x20or\x20generate','div','insertContentBelow','_createHistoryView','_createPromptView','submitPrompt','toolbar','replaceContent','focusCycler','set','_promptHistory','insertButton','tab','stopProcessing','bind','add','221673CbgeLN','stopButton','reset','5443368qGxsPe','setTemplate','focusFirst','ck-hidden','listenTo','finishProcessing','_focusables','focusTracker','tryAgainButton','ck-ai-form','2707416vycMPi'];_0x2d2c=function(){return _0x303f5c;};return _0x2d2c();}import{PromptHistory as _0x1d6555}from'./prompthistory.js';import{getTranslation as _0x4bff3b}from'../../utils/common-translations.js';import{escape as _0x5f3c21}from'es-toolkit/compat';function _0x268a(_0x2f4846,_0x3e2f70){const _0x2d2c83=_0x2d2c();return _0x268a=function(_0x268a36,_0x376763){_0x268a36=_0x268a36-0x157;let _0x5aa9de=_0x2d2c83[_0x268a36];return _0x5aa9de;},_0x268a(_0x2f4846,_0x3e2f70);}export class AIFormView extends _0xbc12b4{[_0x55ffe4(0x187)];[_0x55ffe4(0x198)];[_0x55ffe4(0x15f)];[_0x55ffe4(0x173)];[_0x55ffe4(0x165)];[_0x55ffe4(0x164)];[_0x55ffe4(0x186)];[_0x55ffe4(0x175)];[_0x55ffe4(0x177)];constructor(_0x3fb773,_0x28ea47,_0x12fe23=''){const _0x57ef20=_0x55ffe4;super(_0x3fb773),this[_0x57ef20(0x176)](_0x57ef20(0x16a),!0x0),this[_0x57ef20(0x176)](_0x57ef20(0x1a6),!0x1),this[_0x57ef20(0x176)](_0x57ef20(0x1a7),''),this[_0x57ef20(0x176)](_0x57ef20(0x19e),''),this[_0x57ef20(0x176)](_0x57ef20(0x19d),!0x1),this[_0x57ef20(0x176)](_0x57ef20(0x199),_0x493b69[_0x57ef20(0x157)]),this[_0x57ef20(0x177)]=new _0x1d6555(),this[_0x57ef20(0x164)]=new _0x539398(_0x3fb773),this[_0x57ef20(0x15f)]=new _0x5825c2(_0x3fb773,_0x12fe23),this[_0x57ef20(0x15f)][_0x57ef20(0x17b)](_0x57ef20(0x1a6))['to'](this),this[_0x57ef20(0x15f)][_0x57ef20(0x17b)](_0x57ef20(0x19e))['to'](this),this[_0x57ef20(0x173)]=this[_0x57ef20(0x1ab)](),this[_0x57ef20(0x173)][_0x57ef20(0x17b)](_0x57ef20(0x199))['to'](this),this[_0x57ef20(0x165)]=this[_0x57ef20(0x171)](),this[_0x57ef20(0x187)]=new _0x493edf(),this[_0x57ef20(0x198)]=new _0x926b49(),this[_0x57ef20(0x186)]=this[_0x57ef20(0x168)]([this[_0x57ef20(0x15f)],this[_0x57ef20(0x15f)][_0x57ef20(0x1a1)],this[_0x57ef20(0x173)],this[_0x57ef20(0x165)]]),this[_0x57ef20(0x175)]=new _0x394a14({'focusables':this[_0x57ef20(0x186)],'focusTracker':this[_0x57ef20(0x187)],'keystrokeHandler':this[_0x57ef20(0x198)],'actions':{'focusPrevious':_0x57ef20(0x18b),'focusNext':_0x57ef20(0x179)}}),this[_0x57ef20(0x175)][_0x57ef20(0x191)](this[_0x57ef20(0x165)][_0x57ef20(0x175)]),this[_0x57ef20(0x165)][_0x57ef20(0x1a5)][_0x57ef20(0x1a9)][_0x57ef20(0x17b)](_0x57ef20(0x19e))['to'](this,_0x57ef20(0x1a7));const _0x5eab37=this[_0x57ef20(0x1a8)];this[_0x57ef20(0x181)]({'tag':_0x57ef20(0x16e),'attributes':{'class':['ck',_0x57ef20(0x189),_0x28ea47],'tabindex':'-1'},'children':[{'tag':_0x57ef20(0x16e),'attributes':{'class':['ck',_0x57ef20(0x15b)]},'children':[{'tag':_0x57ef20(0x16e),'attributes':{'class':[_0x5eab37['if'](_0x57ef20(0x19d),_0x57ef20(0x183),_0x237567=>!_0x237567)]},'children':[this[_0x57ef20(0x164)]]},this[_0x57ef20(0x15f)],this[_0x57ef20(0x173)],this[_0x57ef20(0x165)]]}]});}[_0x55ffe4(0x19f)](){const _0x15d7c9=_0x55ffe4;super[_0x15d7c9(0x19f)](),this[_0x15d7c9(0x187)][_0x15d7c9(0x17c)](this[_0x15d7c9(0x15f)][_0x15d7c9(0x15c)]),this[_0x15d7c9(0x187)][_0x15d7c9(0x17c)](this[_0x15d7c9(0x15f)][_0x15d7c9(0x1a1)][_0x15d7c9(0x15c)]),this[_0x15d7c9(0x187)][_0x15d7c9(0x17c)](this[_0x15d7c9(0x173)][_0x15d7c9(0x15c)]),this[_0x15d7c9(0x187)][_0x15d7c9(0x17c)](this[_0x15d7c9(0x165)][_0x15d7c9(0x15c)]),this[_0x15d7c9(0x198)][_0x15d7c9(0x184)](this[_0x15d7c9(0x15c)]);}[_0x55ffe4(0x18c)](_0x162028=0x1){const _0x468ccf=_0x55ffe4;-0x1===_0x162028?this[_0x468ccf(0x175)][_0x468ccf(0x190)]():this[_0x468ccf(0x175)][_0x468ccf(0x182)]();}[_0x55ffe4(0x17f)](){const _0x6f64ba=_0x55ffe4;this[_0x6f64ba(0x1a7)]='',this[_0x6f64ba(0x19e)]='',this[_0x6f64ba(0x19d)]=!0x1,this[_0x6f64ba(0x165)][_0x6f64ba(0x17f)](),this[_0x6f64ba(0x15f)][_0x6f64ba(0x158)]=!0x1,this[_0x6f64ba(0x173)][_0x6f64ba(0x158)]=!0x1;}[_0x55ffe4(0x171)](){const _0x43e219=_0x55ffe4,_0x735027=this[_0x43e219(0x15e)],_0x540c95=new _0xdb0114(_0x735027,{'queryView':{'label':_0x4bff3b(_0x735027,_0x43e219(0x16d)),'creator':_0x140f04,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x4bff3b(_0x735027,_0x43e219(0x160)),'secondary':_0x4bff3b(_0x735027,_0x43e219(0x15d))}}},'filteredView':this[_0x43e219(0x170)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x540c95[_0x43e219(0x17b)](_0x43e219(0x16a))['to'](this,_0x43e219(0x16a),this,_0x43e219(0x1a6),(_0x3b2460,_0x5d01e4)=>_0x3b2460&&!_0x5d01e4),this[_0x43e219(0x184)](_0x540c95,_0x43e219(0x16c),(_0x253ede,_0x3990ad)=>{const _0x506cf0=_0x43e219;this[_0x506cf0(0x1a7)]=_0x3990ad;const _0x4de449=_0x5f3c21(_0x3990ad);this[_0x506cf0(0x194)](_0x506cf0(0x172),_0x4de449),_0x3990ad[_0x506cf0(0x15a)]()&&this[_0x506cf0(0x177)][_0x506cf0(0x17c)]({'prompt':_0x4de449},0x0);},{'priority':_0x43e219(0x159)}),_0x540c95;}[_0x55ffe4(0x170)](){const _0x10f736=_0x55ffe4,_0x46e16a=new _0x18f8c6(this[_0x10f736(0x15e)]);return _0x46e16a[_0x10f736(0x1aa)][_0x10f736(0x18e)][_0x10f736(0x195)](this[_0x10f736(0x177)])['as'](_0x5396df),_0x46e16a['on'](_0x10f736(0x18d),()=>{const _0x1a61e0=_0x10f736;this[_0x1a61e0(0x177)][_0x1a61e0(0x19a)](),this[_0x1a61e0(0x165)][_0x1a61e0(0x193)](''),this[_0x1a61e0(0x165)][_0x1a61e0(0x18c)]();}),_0x46e16a;}[_0x55ffe4(0x1ab)](){const _0x57c9cb=_0x55ffe4,_0x53f430=new _0x306dd6(this[_0x57c9cb(0x15e)]);return _0x53f430[_0x57c9cb(0x1a4)][_0x57c9cb(0x17b)](_0x57c9cb(0x16a))['to'](this,_0x57c9cb(0x16a),this,_0x57c9cb(0x1a6),this,_0x57c9cb(0x19e),(_0x5c6a44,_0x5b347a,_0x54cdb2)=>_0x5c6a44&&!_0x5b347a&&!!_0x54cdb2),_0x53f430[_0x57c9cb(0x1a4)][_0x57c9cb(0x163)](_0x57c9cb(0x161))['to'](this,_0x57c9cb(0x174)),_0x53f430[_0x57c9cb(0x178)][_0x57c9cb(0x17b)](_0x57c9cb(0x16a))['to'](this,_0x57c9cb(0x16a),this,_0x57c9cb(0x1a6),this,_0x57c9cb(0x19e),(_0x403541,_0x2c7484,_0x507679)=>_0x403541&&!_0x2c7484&&!!_0x507679),_0x53f430[_0x57c9cb(0x178)][_0x57c9cb(0x163)](_0x57c9cb(0x161))['to'](this,_0x57c9cb(0x16f)),_0x53f430[_0x57c9cb(0x188)][_0x57c9cb(0x17b)](_0x57c9cb(0x16a))['to'](this,_0x57c9cb(0x16a),this,_0x57c9cb(0x1a6),(_0x5d5eff,_0x1111ab)=>_0x5d5eff&&!_0x1111ab),_0x53f430[_0x57c9cb(0x188)][_0x57c9cb(0x163)](_0x57c9cb(0x161))['to'](this,_0x57c9cb(0x1a2)),_0x53f430[_0x57c9cb(0x17e)][_0x57c9cb(0x17b)](_0x57c9cb(0x16a))['to'](this,_0x57c9cb(0x1a6)),_0x53f430[_0x57c9cb(0x17e)][_0x57c9cb(0x163)](_0x57c9cb(0x161))['to'](this,_0x57c9cb(0x17a)),_0x53f430;}[_0x55ffe4(0x192)](){const _0x211b1d=_0x55ffe4;this[_0x211b1d(0x19e)]='',this[_0x211b1d(0x19d)]=!0x1,this[_0x211b1d(0x1a6)]=!0x0,this[_0x211b1d(0x15f)][_0x211b1d(0x158)]=!0x0,this[_0x211b1d(0x173)][_0x211b1d(0x158)]=!0x0,this[_0x211b1d(0x15f)][_0x211b1d(0x18c)]();}[_0x55ffe4(0x185)](){const _0xaa42c7=_0x55ffe4,_0x3ef2cb=this[_0xaa42c7(0x15e)];this[_0xaa42c7(0x1a6)]=!0x1,this[_0xaa42c7(0x1a7)]='',this[_0xaa42c7(0x165)][_0xaa42c7(0x17f)](),this[_0xaa42c7(0x19e)]&&(this[_0xaa42c7(0x165)][_0xaa42c7(0x1a5)][_0xaa42c7(0x19b)]=_0x4bff3b(_0x3ef2cb,_0xaa42c7(0x16b)));}[_0x55ffe4(0x166)](_0x1e84fa){const _0x320ca1=_0x55ffe4,_0x368b0f=this[_0x320ca1(0x15e)];this[_0x320ca1(0x185)](),this[_0x320ca1(0x19d)]=!0x0,this[_0x320ca1(0x164)][_0x320ca1(0x1a3)]=_0x1e84fa||_0x4bff3b(_0x368b0f,_0x320ca1(0x197)),this[_0x320ca1(0x19e)]||(this[_0x320ca1(0x15f)][_0x320ca1(0x158)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5a31(){const _0x1e587e=['1046142hmGkcD','locale','execute','2161943KcmRrf','4dggFGO','fire','31706662gnTZgV','2344995LOfbgf','1161606HVwBeN','10pEqwEC','children','16rIqfyH','add','1KDdIkm','3636807kpclRs','14020457ptGImx','set','5fSbCpS','24QwoXrc','prompt'];_0x5a31=function(){return _0x1e587e;};return _0x5a31();}(function(_0xbc4466,_0x2e29d3){const _0x5971ea=_0x3515,_0x27ac7e=_0xbc4466();while(!![]){try{const _0x332213=-parseInt(_0x5971ea(0xcd))/0x1*(parseInt(_0x5971ea(0xd4))/0x2)+parseInt(_0x5971ea(0xce))/0x3*(-parseInt(_0x5971ea(0xd8))/0x4)+parseInt(_0x5971ea(0xd1))/0x5*(-parseInt(_0x5971ea(0xdc))/0x6)+-parseInt(_0x5971ea(0xd7))/0x7*(parseInt(_0x5971ea(0xcb))/0x8)+-parseInt(_0x5971ea(0xdb))/0x9+parseInt(_0x5971ea(0xc9))/0xa*(-parseInt(_0x5971ea(0xcf))/0xb)+parseInt(_0x5971ea(0xd2))/0xc*(parseInt(_0x5971ea(0xda))/0xd);if(_0x332213===_0x2e29d3)break;else _0x27ac7e['push'](_0x27ac7e['shift']());}catch(_0x111413){_0x27ac7e['push'](_0x27ac7e['shift']());}}}(_0x5a31,0xc2607));function _0x3515(_0x1556a7,_0x3fdf34){const _0x5a31bf=_0x5a31();return _0x3515=function(_0x35155e,_0x38ae9b){_0x35155e=_0x35155e-0xc9;let _0x3adfd4=_0x5a31bf[_0x35155e];return _0x3adfd4;},_0x3515(_0x1556a7,_0x3fdf34);}import{ListItemView as _0x2cf75a,ButtonView as _0x428299,ButtonLabelView as _0x12f4b4}from'ckeditor5/src/ui.js';import{unescape as _0x85b3bc}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x2cf75a{constructor(_0x306816){const _0x4318ff=_0x3515;super();const _0x4c0ab1=new _0x12f4b4(),_0x21917d=new _0x428299(this[_0x4318ff(0xd5)],_0x4c0ab1);this[_0x4318ff(0xca)][_0x4318ff(0xcc)](_0x21917d),_0x21917d[_0x4318ff(0xd0)]({'label':_0x306816[_0x4318ff(0xd3)],'withText':!0x0}),_0x21917d['on'](_0x4318ff(0xd6),()=>{const _0x4382ce=_0x4318ff;this[_0x4382ce(0xd9)](_0x4382ce(0xd6),{'value':_0x85b3bc(_0x306816[_0x4382ce(0xd3)])});});}}
23
+ (function(_0x245dc3,_0x3d5420){const _0x2b7553=_0x2a93,_0x29b35b=_0x245dc3();while(!![]){try{const _0x2f42d4=parseInt(_0x2b7553(0x138))/0x1+parseInt(_0x2b7553(0x135))/0x2+-parseInt(_0x2b7553(0x130))/0x3+-parseInt(_0x2b7553(0x133))/0x4*(parseInt(_0x2b7553(0x136))/0x5)+parseInt(_0x2b7553(0x131))/0x6+parseInt(_0x2b7553(0x132))/0x7+-parseInt(_0x2b7553(0x139))/0x8;if(_0x2f42d4===_0x3d5420)break;else _0x29b35b['push'](_0x29b35b['shift']());}catch(_0x2a4854){_0x29b35b['push'](_0x29b35b['shift']());}}}(_0x5c81,0xed871));function _0x2a93(_0x1db71b,_0x734afb){const _0x5c81d3=_0x5c81();return _0x2a93=function(_0x2a9364,_0x1f587a){_0x2a9364=_0x2a9364-0x12f;let _0x14fdfd=_0x5c81d3[_0x2a9364];return _0x14fdfd;},_0x2a93(_0x1db71b,_0x734afb);}import{ListItemView as _0xa2a71d,ButtonView as _0x524272,ButtonLabelView as _0x45daf5}from'ckeditor5/src/ui.js';import{unescape as _0x9dc409}from'es-toolkit/compat';export class AIHistoryListItemView extends _0xa2a71d{constructor(_0xbe423f){const _0x2bdc88=_0x2a93;super();const _0x47ad44=new _0x45daf5(),_0x53b501=new _0x524272(this[_0x2bdc88(0x12f)],_0x47ad44);this[_0x2bdc88(0x13a)][_0x2bdc88(0x13b)](_0x53b501),_0x53b501[_0x2bdc88(0x134)]({'label':_0xbe423f[_0x2bdc88(0x13d)],'withText':!0x0}),_0x53b501['on'](_0x2bdc88(0x137),()=>{const _0x10fa25=_0x2bdc88;this[_0x10fa25(0x13c)](_0x10fa25(0x137),{'value':_0x9dc409(_0xbe423f[_0x10fa25(0x13d)])});});}}function _0x5c81(){const _0x168087=['children','add','fire','prompt','locale','3056592nKEmRo','11072022YNaYIH','12210849RFpkIX','128bjukXC','set','2784686IuzfuT','94725yMnsUb','execute','208814rCVzSs','20743072uizXCz'];_0x5c81=function(){return _0x168087;};return _0x5c81();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4e97cf=_0x3b0b;(function(_0xa65921,_0x155242){const _0x573cc2=_0x3b0b,_0x2f5ff5=_0xa65921();while(!![]){try{const _0x37069f=-parseInt(_0x573cc2(0x1cd))/0x1+-parseInt(_0x573cc2(0x1d2))/0x2*(-parseInt(_0x573cc2(0x1df))/0x3)+-parseInt(_0x573cc2(0x1e1))/0x4+parseInt(_0x573cc2(0x1d3))/0x5+-parseInt(_0x573cc2(0x1db))/0x6*(-parseInt(_0x573cc2(0x1d1))/0x7)+parseInt(_0x573cc2(0x1de))/0x8*(-parseInt(_0x573cc2(0x1dd))/0x9)+parseInt(_0x573cc2(0x1cf))/0xa;if(_0x37069f===_0x155242)break;else _0x2f5ff5['push'](_0x2f5ff5['shift']());}catch(_0x16c70f){_0x2f5ff5['push'](_0x2f5ff5['shift']());}}}(_0x1768,0x20b8f));import{ListView as _0x3adf03,ListItemGroupView as _0x1087c0,ButtonView as _0x121df2}from'ckeditor5/src/ui.js';function _0x3b0b(_0x526be8,_0x1bd5a6){const _0x1768db=_0x1768();return _0x3b0b=function(_0x3b0bb6,_0x4fa2da){_0x3b0bb6=_0x3b0bb6-0x1cc;let _0x3b96b0=_0x1768db[_0x3b0bb6];return _0x3b96b0;},_0x3b0b(_0x526be8,_0x1bd5a6);}import{getTranslation as _0x31af34}from'../../utils/common-translations.js';function _0x1768(){const _0x1306c8=['label','18OeYptA','659000lGhcEL','681882ihpVui','_createClearHistoryButton','34464EECCpp','historyGroupView','set','clearHistory','execute','Clear','Prompt\x20history','69276nSqYDe','add','490080qtycNZ','fire','107282jXjoRa','2kwwSty','118705PhFNWY','children','delegate','filter','items','locale','clearHistoryButton','length','30YdAZzT'];_0x1768=function(){return _0x1306c8;};return _0x1768();}export class AIHistoryListView extends _0x3adf03{[_0x4e97cf(0x1e2)];[_0x4e97cf(0x1d9)];constructor(_0x336c40){const _0x49f86f=_0x4e97cf;super(_0x336c40),this[_0x49f86f(0x1d9)]=this[_0x49f86f(0x1e0)](),this[_0x49f86f(0x1e2)]=new _0x1087c0(),this[_0x49f86f(0x1e2)][_0x49f86f(0x1d4)][_0x49f86f(0x1ce)](this[_0x49f86f(0x1d9)],0x1),this[_0x49f86f(0x1e2)][_0x49f86f(0x1dc)]=_0x31af34(_0x336c40,_0x49f86f(0x1cc)),this[_0x49f86f(0x1e2)][_0x49f86f(0x1d7)][_0x49f86f(0x1d5)](_0x49f86f(0x1e5))['to'](this),this[_0x49f86f(0x1d7)][_0x49f86f(0x1ce)](this[_0x49f86f(0x1e2)]);}[_0x4e97cf(0x1d6)](){const _0x30f850=_0x4e97cf;let _0x579629=0x0;for(const _0x3d4659 of this[_0x30f850(0x1d7)])_0x579629+=_0x3d4659[_0x30f850(0x1d7)][_0x30f850(0x1da)];return{'resultsCount':_0x579629,'totalItemsCount':_0x579629};}[_0x4e97cf(0x1e0)](){const _0x57b348=_0x4e97cf,_0x59aefa=this[_0x57b348(0x1d8)],_0x413ad1=new _0x121df2(this[_0x57b348(0x1d8)]);return _0x413ad1[_0x57b348(0x1e3)]({'label':'('+_0x31af34(_0x59aefa,_0x57b348(0x1e6))+')','withText':!0x0}),_0x413ad1['on'](_0x57b348(0x1e5),()=>this[_0x57b348(0x1d0)](_0x57b348(0x1e4))),_0x413ad1;}}
23
+ function _0x407d(_0x4e2c5a,_0x192933){const _0x2dfd4a=_0x2dfd();return _0x407d=function(_0x407d5e,_0x2893dd){_0x407d5e=_0x407d5e-0x1e4;let _0x2f5436=_0x2dfd4a[_0x407d5e];return _0x2f5436;},_0x407d(_0x4e2c5a,_0x192933);}const _0x3e12d8=_0x407d;(function(_0x53acda,_0x341265){const _0x322c67=_0x407d,_0x4b085c=_0x53acda();while(!![]){try{const _0x53e9d9=parseInt(_0x322c67(0x1e9))/0x1+parseInt(_0x322c67(0x1e7))/0x2*(-parseInt(_0x322c67(0x1eb))/0x3)+-parseInt(_0x322c67(0x1e6))/0x4*(-parseInt(_0x322c67(0x1fd))/0x5)+parseInt(_0x322c67(0x1fe))/0x6+parseInt(_0x322c67(0x1f8))/0x7*(-parseInt(_0x322c67(0x1ea))/0x8)+parseInt(_0x322c67(0x1f6))/0x9+parseInt(_0x322c67(0x1f4))/0xa;if(_0x53e9d9===_0x341265)break;else _0x4b085c['push'](_0x4b085c['shift']());}catch(_0x142f05){_0x4b085c['push'](_0x4b085c['shift']());}}}(_0x2dfd,0x25147));import{ListView as _0xffc045,ListItemGroupView as _0x582e8c,ButtonView as _0x2d2e8c}from'ckeditor5/src/ui.js';import{getTranslation as _0x431414}from'../../utils/common-translations.js';export class AIHistoryListView extends _0xffc045{[_0x3e12d8(0x1fc)];[_0x3e12d8(0x1e5)];constructor(_0x3fa246){const _0x56a126=_0x3e12d8;super(_0x3fa246),this[_0x56a126(0x1e5)]=this[_0x56a126(0x1fa)](),this[_0x56a126(0x1fc)]=new _0x582e8c(),this[_0x56a126(0x1fc)][_0x56a126(0x1e4)][_0x56a126(0x1f0)](this[_0x56a126(0x1e5)],0x1),this[_0x56a126(0x1fc)][_0x56a126(0x1ed)]=_0x431414(_0x3fa246,_0x56a126(0x1ee)),this[_0x56a126(0x1fc)][_0x56a126(0x1f3)][_0x56a126(0x1f9)](_0x56a126(0x1fb))['to'](this),this[_0x56a126(0x1f3)][_0x56a126(0x1f0)](this[_0x56a126(0x1fc)]);}[_0x3e12d8(0x1f1)](){const _0x337ad0=_0x3e12d8;let _0x62c7c7=0x0;for(const _0x517136 of this[_0x337ad0(0x1f3)])_0x62c7c7+=_0x517136[_0x337ad0(0x1f3)][_0x337ad0(0x1f2)];return{'resultsCount':_0x62c7c7,'totalItemsCount':_0x62c7c7};}[_0x3e12d8(0x1fa)](){const _0x4b8c0d=_0x3e12d8,_0x575c86=this[_0x4b8c0d(0x1e8)],_0x2744be=new _0x2d2e8c(this[_0x4b8c0d(0x1e8)]);return _0x2744be[_0x4b8c0d(0x1ec)]({'label':'('+_0x431414(_0x575c86,_0x4b8c0d(0x1f5))+')','withText':!0x0}),_0x2744be['on'](_0x4b8c0d(0x1fb),()=>this[_0x4b8c0d(0x1f7)](_0x4b8c0d(0x1ef))),_0x2744be;}}function _0x2dfd(){const _0x35c5e4=['509410bkagCa','Clear','676989VHgCgC','fire','1495529QZHKrH','delegate','_createClearHistoryButton','execute','historyGroupView','23890JRrbel','813258vsLZfi','children','clearHistoryButton','148KxLQfs','543682eaGNXk','locale','198876VBRNPt','8HXCIzP','3pmORZK','set','label','Prompt\x20history','clearHistory','add','filter','length','items'];_0x2dfd=function(){return _0x35c5e4;};return _0x2dfd();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x56ff37=_0x5c70;(function(_0x4d9687,_0x2e3b52){const _0x5117ee=_0x5c70,_0x2b2987=_0x4d9687();while(!![]){try{const _0x22d6df=parseInt(_0x5117ee(0xd4))/0x1*(parseInt(_0x5117ee(0xdf))/0x2)+-parseInt(_0x5117ee(0xe7))/0x3*(-parseInt(_0x5117ee(0xcf))/0x4)+parseInt(_0x5117ee(0xd6))/0x5*(-parseInt(_0x5117ee(0xdb))/0x6)+-parseInt(_0x5117ee(0xd0))/0x7*(parseInt(_0x5117ee(0xdc))/0x8)+parseInt(_0x5117ee(0xe4))/0x9+parseInt(_0x5117ee(0xe0))/0xa*(parseInt(_0x5117ee(0xe6))/0xb)+parseInt(_0x5117ee(0xe2))/0xc*(-parseInt(_0x5117ee(0xd5))/0xd);if(_0x22d6df===_0x2e3b52)break;else _0x2b2987['push'](_0x2b2987['shift']());}catch(_0x1c692f){_0x2b2987['push'](_0x2b2987['shift']());}}}(_0x3ae4,0x3183d));import{Collection as _0x233d0b}from'ckeditor5/src/utils.js';function _0x3ae4(){const _0x4a70af=['remove','map','22eOEexm','670MjkcAR','prompt','24OaxntJ','_loadFromSessionStorage','2372022INoBba','getItem','59950UNZzut','9pwxAPP','last','setItem','addMany','toLowerCase','399716GMuHNE','11599bTKIYF','trim','_saveToSessionStorage','parse','25644ySTjKG','5447130cySNPd','61675qsPhPW','stringify','length','CKEditor/AIFormView/PromptHistory','add','60HpeOhp','224gCqWmK'];_0x3ae4=function(){return _0x4a70af;};return _0x3ae4();}const So=_0x56ff37(0xd9);export class PromptHistory extends _0x233d0b{constructor(){const _0xcc3c63=_0x56ff37;super(),this[_0xcc3c63(0xe3)](),this['on'](_0xcc3c63(0xda),(_0x402e32,_0x249724)=>{const _0x551920=_0xcc3c63,_0x37cf49=fo(_0x249724[_0x551920(0xe1)]);for(const _0x1bd611 of this)if(_0x1bd611!=_0x249724&&fo(_0x1bd611[_0x551920(0xe1)])===_0x37cf49){this[_0x551920(0xdd)](_0x1bd611);break;}this[_0x551920(0xd8)]>0x14&&this[_0x551920(0xdd)](this[_0x551920(0xe8)]),this[_0x551920(0xd2)]();}),this['on'](_0xcc3c63(0xdd),()=>{const _0x407768=_0xcc3c63;this[_0x407768(0xd2)]();});}[_0x56ff37(0xe3)](){const _0x4a7735=_0x56ff37,_0x42b994=sessionStorage[_0x4a7735(0xe5)](So)||'[]';this[_0x4a7735(0xcd)](JSON[_0x4a7735(0xd3)](_0x42b994));}[_0x56ff37(0xd2)](){const _0x44cab3=_0x56ff37;sessionStorage[_0x44cab3(0xe9)](So,JSON[_0x44cab3(0xd7)](this[_0x44cab3(0xde)](_0x21c114=>_0x21c114)));}}function _0x5c70(_0x8cf2bd,_0x20748e){const _0x3ae4e3=_0x3ae4();return _0x5c70=function(_0x5c70a6,_0x4746e9){_0x5c70a6=_0x5c70a6-0xcd;let _0x30996b=_0x3ae4e3[_0x5c70a6];return _0x30996b;},_0x5c70(_0x8cf2bd,_0x20748e);}function fo(_0x4f5061){const _0x4343f9=_0x56ff37;return _0x4f5061[_0x4343f9(0xce)]()[_0x4343f9(0xd1)]();}
23
+ const _0x1f59fc=_0x48eb;(function(_0x1abf80,_0x24404c){const _0x219655=_0x48eb,_0x3c95f8=_0x1abf80();while(!![]){try{const _0x31672e=-parseInt(_0x219655(0xbf))/0x1+-parseInt(_0x219655(0xbe))/0x2*(-parseInt(_0x219655(0xbb))/0x3)+-parseInt(_0x219655(0xc0))/0x4*(parseInt(_0x219655(0xbd))/0x5)+-parseInt(_0x219655(0xc8))/0x6*(-parseInt(_0x219655(0xb7))/0x7)+-parseInt(_0x219655(0xc9))/0x8*(-parseInt(_0x219655(0xc7))/0x9)+-parseInt(_0x219655(0xc2))/0xa+parseInt(_0x219655(0xcc))/0xb*(parseInt(_0x219655(0xca))/0xc);if(_0x31672e===_0x24404c)break;else _0x3c95f8['push'](_0x3c95f8['shift']());}catch(_0x33ecc1){_0x3c95f8['push'](_0x3c95f8['shift']());}}}(_0x3471,0xa8bc5));import{Collection as _0x1c3314}from'ckeditor5/src/utils.js';function _0x48eb(_0x5853ad,_0x449925){const _0x347106=_0x3471();return _0x48eb=function(_0x48ebbd,_0x3c8332){_0x48ebbd=_0x48ebbd-0xb4;let _0x18fe17=_0x347106[_0x48ebbd];return _0x18fe17;},_0x48eb(_0x5853ad,_0x449925);}const Ko=_0x1f59fc(0xc1);export class PromptHistory extends _0x1c3314{constructor(){const _0x20edf5=_0x1f59fc;super(),this[_0x20edf5(0xb6)](),this['on'](_0x20edf5(0xce),(_0x4a48aa,_0x26e2a0)=>{const _0x19706d=_0x20edf5,_0x1eb6e1=Qo(_0x26e2a0[_0x19706d(0xcd)]);for(const _0x39a407 of this)if(_0x39a407!=_0x26e2a0&&Qo(_0x39a407[_0x19706d(0xcd)])===_0x1eb6e1){this[_0x19706d(0xb5)](_0x39a407);break;}this[_0x19706d(0xb9)]>0x14&&this[_0x19706d(0xb5)](this[_0x19706d(0xbc)]),this[_0x19706d(0xba)]();}),this['on'](_0x20edf5(0xb5),()=>{const _0x4795ae=_0x20edf5;this[_0x4795ae(0xba)]();});}[_0x1f59fc(0xb6)](){const _0x3116a3=_0x1f59fc,_0x28bf5e=sessionStorage[_0x3116a3(0xc4)](Ko)||'[]';this[_0x3116a3(0xcb)](JSON[_0x3116a3(0xb8)](_0x28bf5e));}[_0x1f59fc(0xba)](){const _0x62cb83=_0x1f59fc;sessionStorage[_0x62cb83(0xcf)](Ko,JSON[_0x62cb83(0xc3)](this[_0x62cb83(0xb4)](_0x78a062=>_0x78a062)));}}function _0x3471(){const _0x5ea047=['toLowerCase','9xyYWfG','7428lxLfsD','7153912nkgXhH','36mhCLCN','addMany','795333kTetbF','prompt','add','setItem','map','remove','_loadFromSessionStorage','2604gsQDjr','parse','length','_saveToSessionStorage','3eCrNHp','last','18985cNhLoq','53624pBdeGo','843297hryNrM','28smnIfR','CKEditor/AIFormView/PromptHistory','374790hdSzoB','stringify','getItem','trim'];_0x3471=function(){return _0x5ea047;};return _0x3471();}function Qo(_0x37c1d8){const _0x158ecb=_0x1f59fc;return _0x37c1d8[_0x158ecb(0xc6)]()[_0x158ecb(0xc5)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1b52(_0x9fb45e,_0x8e7751){const _0x57b885=_0x57b8();return _0x1b52=function(_0x1b52df,_0x147878){_0x1b52df=_0x1b52df-0x118;let _0x1c0830=_0x57b885[_0x1b52df];return _0x1c0830;},_0x1b52(_0x9fb45e,_0x8e7751);}const _0x4c04a0=_0x1b52;(function(_0x3b5838,_0x2f8f44){const _0x2b3dd7=_0x1b52,_0x43d1fb=_0x3b5838();while(!![]){try{const _0x225b24=-parseInt(_0x2b3dd7(0x124))/0x1*(-parseInt(_0x2b3dd7(0x131))/0x2)+-parseInt(_0x2b3dd7(0x12e))/0x3*(-parseInt(_0x2b3dd7(0x13c))/0x4)+parseInt(_0x2b3dd7(0x13e))/0x5*(-parseInt(_0x2b3dd7(0x138))/0x6)+parseInt(_0x2b3dd7(0x13b))/0x7+parseInt(_0x2b3dd7(0x12f))/0x8*(parseInt(_0x2b3dd7(0x129))/0x9)+parseInt(_0x2b3dd7(0x11d))/0xa*(parseInt(_0x2b3dd7(0x126))/0xb)+parseInt(_0x2b3dd7(0x142))/0xc*(-parseInt(_0x2b3dd7(0x118))/0xd);if(_0x225b24===_0x2f8f44)break;else _0x43d1fb['push'](_0x43d1fb['shift']());}catch(_0x25f106){_0x43d1fb['push'](_0x43d1fb['shift']());}}}(_0x57b8,0x2c7e9));function _0x57b8(){const _0x5cbd8c=['element','35pDpUVr','isEmpty','change:isEnabled','editor','60xJrqwx','set','length','plugins','includes','1376869HJGMnF','_hasContext','hasContent','from','config','70HtEXFe','getRanges','showUI','ai.assistant.disabledElements','execute','model','getSelectedBlocks','215699uarEUL','get','207614fsCbwl','getFirstRange','isEnabled','1077723KzgatD','isCollapsed','refresh','change:_hasContext','_commandDefinitions','3eXoSKW','8JIRijx','enabledCommandsIds','2LGWwef','values','getItems','add','document','requiresContent','name','158784ySSLlO','custom','selection','716779aGTZgu','1308404ZCyEFe'];_0x57b8=function(){return _0x5cbd8c;};return _0x57b8();}import{Command as _0x369246}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x239223}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x369246{[_0x4c04a0(0x12d)];constructor(_0x5124fc,_0xdb4197){const _0x641df1=_0x4c04a0;super(_0x5124fc),this[_0x641df1(0x12d)]=_0xdb4197,this[_0x641df1(0x143)](_0x641df1(0x130),[]),this['on'](_0x641df1(0x12c),(_0x33f399,_0x10b5e8,_0x276098)=>{const _0x20980c=_0x641df1;this[_0x20980c(0x128)]&&(this[_0x20980c(0x130)]=ns(this[_0x20980c(0x12d)],_0x276098));}),this[_0x641df1(0x143)](_0x641df1(0x119),!0x1),this['on'](_0x641df1(0x140),(_0x55dd5e,_0x479031,_0x30ed8f)=>{const _0x493773=_0x641df1;this[_0x493773(0x130)]=_0x30ed8f?ns(this[_0x493773(0x12d)],this[_0x493773(0x119)]):[];});}[_0x4c04a0(0x12b)](){const _0x161197=_0x4c04a0,_0x36ac89=this[_0x161197(0x141)][_0x161197(0x122)];this[_0x161197(0x119)]=function(_0x54e213){const _0xbd265d=_0x161197,_0x55c63c=_0x54e213[_0xbd265d(0x135)][_0xbd265d(0x13a)];return _0x55c63c[_0xbd265d(0x12a)]?0x0!==[..._0x55c63c[_0xbd265d(0x123)]()][_0xbd265d(0x144)]&&![..._0x55c63c[_0xbd265d(0x123)]()][0x0][_0xbd265d(0x13f)]:!!_0x54e213[_0xbd265d(0x11a)](_0x55c63c[_0xbd265d(0x127)]());}(_0x36ac89);const _0x548a7e=_0x36ac89[_0x161197(0x135)][_0x161197(0x13a)],_0x22082a=this[_0x161197(0x141)][_0x161197(0x11c)][_0x161197(0x125)](_0x161197(0x120));for(const _0x35a618 of _0x548a7e[_0x161197(0x11e)]())for(const _0xd8b237 of _0x35a618[_0x161197(0x133)]())if(_0xd8b237['is'](_0x161197(0x13d))&&_0x22082a[_0x161197(0x146)](_0xd8b237[_0x161197(0x137)]))return void(this[_0x161197(0x128)]=!0x1);this[_0x161197(0x128)]=!0x0;}[_0x4c04a0(0x121)](_0x36624f='',_0x36484f='',_0x57f209=_0x4c04a0(0x139)){const _0x56d723=_0x4c04a0;this[_0x56d723(0x141)][_0x56d723(0x145)][_0x56d723(0x125)](_0x239223)[_0x56d723(0x11f)](_0x36624f,_0x36484f,_0x57f209);}}function ns(_0xfb1b09,_0x296313){const _0x111bc8=_0x4c04a0,_0x341494=new Set();for(const _0x3ad489 of _0xfb1b09[_0x111bc8(0x132)]())(_0x296313||!0x1===_0x3ad489[_0x111bc8(0x136)])&&_0x341494[_0x111bc8(0x134)](_0x3ad489['id']);return Array[_0x111bc8(0x11b)](_0x341494);}
23
+ const _0x19742c=_0x1bef;(function(_0x312f9d,_0x2f1cb4){const _0x4d1ac2=_0x1bef,_0x147776=_0x312f9d();while(!![]){try{const _0x43d642=parseInt(_0x4d1ac2(0xc1))/0x1+-parseInt(_0x4d1ac2(0xdc))/0x2+-parseInt(_0x4d1ac2(0xd0))/0x3*(-parseInt(_0x4d1ac2(0xd2))/0x4)+-parseInt(_0x4d1ac2(0xd7))/0x5*(-parseInt(_0x4d1ac2(0xdd))/0x6)+parseInt(_0x4d1ac2(0xdb))/0x7+-parseInt(_0x4d1ac2(0xb3))/0x8*(parseInt(_0x4d1ac2(0xbb))/0x9)+parseInt(_0x4d1ac2(0xc8))/0xa*(parseInt(_0x4d1ac2(0xb4))/0xb);if(_0x43d642===_0x2f1cb4)break;else _0x147776['push'](_0x147776['shift']());}catch(_0xc05c1e){_0x147776['push'](_0x147776['shift']());}}}(_0x5c4a,0xc1647));function _0x5c4a(){const _0x287ec5=['790946QsOtXr','values','from','getSelectedBlocks','execute','add','ai.assistant.disabledElements','107710EpSPel','isEmpty','set','getFirstRange','plugins','config','includes','change:isEnabled','3wjqlgT','refresh','2318060rNLADi','document','hasContent','custom','element','3300470gmnCUP','change:_hasContext','isEnabled','get','400484kLbrdw','3010064jdgvXT','6IEoIXQ','selection','_hasContext','8hZfzPK','1034YnAJLX','getItems','isCollapsed','requiresContent','editor','_commandDefinitions','showUI','7227666zerZLf','getRanges','name','model','length','enabledCommandsIds'];_0x5c4a=function(){return _0x287ec5;};return _0x5c4a();}import{Command as _0x33a17f}from'ckeditor5/src/core.js';function _0x1bef(_0x2261fd,_0x14656d){const _0x5c4aff=_0x5c4a();return _0x1bef=function(_0x1bef1c,_0xc075f2){_0x1bef1c=_0x1bef1c-0xb2;let _0x17bc7e=_0x5c4aff[_0x1bef1c];return _0x17bc7e;},_0x1bef(_0x2261fd,_0x14656d);}import{AIAssistantUI as _0x18656f}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x33a17f{[_0x19742c(0xb9)];constructor(_0x2bcd28,_0x134a6a){const _0x447aba=_0x19742c;super(_0x2bcd28),this[_0x447aba(0xb9)]=_0x134a6a,this[_0x447aba(0xca)](_0x447aba(0xc0),[]),this['on'](_0x447aba(0xd8),(_0x52d243,_0x1c9046,_0x3a3397)=>{const _0x28bd0f=_0x447aba;this[_0x28bd0f(0xd9)]&&(this[_0x28bd0f(0xc0)]=xs(this[_0x28bd0f(0xb9)],_0x3a3397));}),this[_0x447aba(0xca)](_0x447aba(0xb2),!0x1),this['on'](_0x447aba(0xcf),(_0x108922,_0x101213,_0x362666)=>{const _0x54cb73=_0x447aba;this[_0x54cb73(0xc0)]=_0x362666?xs(this[_0x54cb73(0xb9)],this[_0x54cb73(0xb2)]):[];});}[_0x19742c(0xd1)](){const _0x5528b5=_0x19742c,_0x3b8337=this[_0x5528b5(0xb8)][_0x5528b5(0xbe)];this[_0x5528b5(0xb2)]=function(_0x12a4e9){const _0x59d8d8=_0x5528b5,_0x4f526f=_0x12a4e9[_0x59d8d8(0xd3)][_0x59d8d8(0xde)];return _0x4f526f[_0x59d8d8(0xb6)]?0x0!==[..._0x4f526f[_0x59d8d8(0xc4)]()][_0x59d8d8(0xbf)]&&![..._0x4f526f[_0x59d8d8(0xc4)]()][0x0][_0x59d8d8(0xc9)]:!!_0x12a4e9[_0x59d8d8(0xd4)](_0x4f526f[_0x59d8d8(0xcb)]());}(_0x3b8337);const _0x1c7d1e=_0x3b8337[_0x5528b5(0xd3)][_0x5528b5(0xde)],_0x3e0522=this[_0x5528b5(0xb8)][_0x5528b5(0xcd)][_0x5528b5(0xda)](_0x5528b5(0xc7));for(const _0x53ec73 of _0x1c7d1e[_0x5528b5(0xbc)]())for(const _0x421ca of _0x53ec73[_0x5528b5(0xb5)]())if(_0x421ca['is'](_0x5528b5(0xd6))&&_0x3e0522[_0x5528b5(0xce)](_0x421ca[_0x5528b5(0xbd)]))return void(this[_0x5528b5(0xd9)]=!0x1);this[_0x5528b5(0xd9)]=!0x0;}[_0x19742c(0xc5)](_0x4ca330='',_0x472169='',_0xb330dd=_0x19742c(0xd5)){const _0x23bd75=_0x19742c;this[_0x23bd75(0xb8)][_0x23bd75(0xcc)][_0x23bd75(0xda)](_0x18656f)[_0x23bd75(0xba)](_0x4ca330,_0x472169,_0xb330dd);}}function xs(_0x632727,_0x4255c5){const _0x18a611=_0x19742c,_0xf315ee=new Set();for(const _0x1d383f of _0x632727[_0x18a611(0xc2)]())(_0x4255c5||!0x1===_0x1d383f[_0x18a611(0xb7)])&&_0xf315ee[_0x18a611(0xc6)](_0x1d383f['id']);return Array[_0x18a611(0xc3)](_0xf315ee);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a7c55=_0x499d;(function(_0x555b42,_0x1511dc){const _0xda17a1=_0x499d,_0x25b3a3=_0x555b42();while(!![]){try{const _0x17bbe8=-parseInt(_0xda17a1(0x19d))/0x1+-parseInt(_0xda17a1(0x195))/0x2+-parseInt(_0xda17a1(0x177))/0x3+parseInt(_0xda17a1(0x175))/0x4*(-parseInt(_0xda17a1(0x17d))/0x5)+parseInt(_0xda17a1(0x1a3))/0x6+-parseInt(_0xda17a1(0x1cc))/0x7*(parseInt(_0xda17a1(0x19a))/0x8)+parseInt(_0xda17a1(0x18e))/0x9;if(_0x17bbe8===_0x1511dc)break;else _0x25b3a3['push'](_0x25b3a3['shift']());}catch(_0x31d050){_0x25b3a3['push'](_0x25b3a3['shift']());}}}(_0x5629,0xbb619));import{ContextPlugin as _0x64e739}from'ckeditor5/src/core.js';function _0x499d(_0x14cddc,_0x45bab2){const _0x562928=_0x5629();return _0x499d=function(_0x499df9,_0x22dfe3){_0x499df9=_0x499df9-0x166;let _0x5e4a34=_0x562928[_0x499df9];return _0x5e4a34;},_0x499d(_0x14cddc,_0x45bab2);}import{AIConnector as _0x3906ad}from'../aicore/aiconnector.js';import{AIEditing as _0x43cbb9}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x96c48f,AIBalloonView as _0x18a323}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x33111f}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x240739,Rect as _0x46fdab,scrollViewportToShowTarget as _0x5828bf}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x431152}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x2435e8}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x2a638a}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x96c48f,_0x2a7c55(0x16d),_0x2a7c55(0x18c)];function _0x5629(){const _0x3b19fa=['title','getMarkersGroup','AI_ACTIONS_SELECTION_REMOVED_ERROR','8xskPIE','_showDialog','updatePosition','989003EpcZSH','startsWith','index','show','bottom','height','653682KKWAip','editing','context','hide','width','filter','requires','_isUpdatingMarkers','stopAutoScroll','_setupMarkerRemovalListener','value','fire','_calculateOptimalTopPosition','open','mainView','commands','ai-balloon','_calculateDialogPosition','_cleanupMarkerRemovalListener','icon','getVisible','ai-selection:','content','showRotator','iconView','ranges','_config','config','showBlockingError','end','length','plugins','isTrackChangesOn','top','ai-balloon-','isEqual','bind','isOpen','label','ai-balloon-selection','window','2290127xqHnUe','headerView','balloonView','stopListening','once','isOfficialPlugin','startAutoScroll','trackChanges','document','delegate','aiBalloon','change','_getSelectionElements','dialogClosed','model','render','Dialog','updateContent','getIntersection','setupRotator','root','241364wkuapB','_pendingRenderCallback','113976YVZoAl','ai-selection','pluginName','start','AIBalloon','differ','65nVeyqP','_updateBalloon','rootName','getBoundingRect','$graveyard','ai.availableReplyActions','close','getChangedMarkers','view','markers','AIEditing','_setupVisualSelection','get','locale','hideFakeVisualSelection','selectionRemoved','left','34356114wzwSbY','listenTo','\x20ai-balloon-rotator','showFakeVisualSelection','isPremiumPlugin','round','max','2040382noyYSI','off'];_0x5629=function(){return _0x3b19fa;};return _0x5629();}const z=0xa;export class AIBalloon extends _0x64e739{static get[_0x2a7c55(0x1a9)](){return[_0x3906ad,_0x43cbb9];}static get[_0x2a7c55(0x179)](){const _0x3dcc93=_0x2a7c55;return _0x3dcc93(0x17b);}static get[_0x2a7c55(0x1d1)](){return!0x0;}static get[_0x2a7c55(0x192)](){return!0x0;}[_0x2a7c55(0x1c8)]=!0x1;[_0x2a7c55(0x1bd)];[_0x2a7c55(0x1aa)]=!0x1;[_0x2a7c55(0x176)]=null;[_0x2a7c55(0x1b0)](_0x40b205){const _0x17ca3b=_0x2a7c55,_0xddf806=_0x431152(this[_0x17ca3b(0x1a5)]);if(this[_0x17ca3b(0x1bd)]=_0x40b205,this[_0x17ca3b(0x1c8)])return void this[_0x17ca3b(0x17e)](_0x40b205);const _0x431897=this[_0x17ca3b(0x1a5)][_0x17ca3b(0x1be)][_0x17ca3b(0x189)](_0x17ca3b(0x182))||[..._0x2435e8],_0x4a4c20=_0xddf806?.[_0x17ca3b(0x1b2)][_0x17ca3b(0x189)](_0x17ca3b(0x167)),_0x38adad=_0x4a4c20?.[_0x17ca3b(0x1ad)];this[_0x17ca3b(0x1ce)]=new _0x18a323(_0xddf806[_0x17ca3b(0x18a)],_0x40b205,_0x431897,!!_0x38adad),this[_0x17ca3b(0x1ce)][_0x17ca3b(0x169)](..._0x96c48f)['to'](this),_0x4a4c20&&this[_0x17ca3b(0x1ce)][_0x17ca3b(0x1c7)](_0x17ca3b(0x1c3))['to'](_0x4a4c20,_0x17ca3b(0x1ad)),this[_0x17ca3b(0x19b)](_0x40b205);}[_0x2a7c55(0x183)](){const _0x3022fb=_0x2a7c55;_0x431152(this[_0x3022fb(0x1a5)])[_0x3022fb(0x1c2)][_0x3022fb(0x189)](_0x3022fb(0x170))[_0x3022fb(0x1a6)]();}[_0x2a7c55(0x166)](){const _0x2463f6=_0x2a7c55;this[_0x2463f6(0x1ce)]&&this[_0x2463f6(0x1ce)][_0x2463f6(0x166)]();}[_0x2a7c55(0x1ab)](){const _0x311e78=_0x2a7c55;this[_0x311e78(0x1ce)]&&this[_0x311e78(0x1ce)][_0x311e78(0x1ab)]();}[_0x2a7c55(0x17e)](_0x30d7e5){const _0xf2e7cb=_0x2a7c55,_0x5d1268=_0x431152(this[_0xf2e7cb(0x1a5)]),_0x9c4c18=_0x5d1268[_0xf2e7cb(0x1c2)][_0xf2e7cb(0x189)](_0xf2e7cb(0x170));this[_0xf2e7cb(0x176)]&&(_0x5d1268[_0xf2e7cb(0x1a4)][_0xf2e7cb(0x185)][_0xf2e7cb(0x196)](_0xf2e7cb(0x16f),this[_0xf2e7cb(0x176)]),this[_0xf2e7cb(0x176)]=null),this[_0xf2e7cb(0x1aa)]=!0x0,_0x9c4c18[_0xf2e7cb(0x185)]?.[_0xf2e7cb(0x1cd)]&&(_0x9c4c18[_0xf2e7cb(0x185)][_0xf2e7cb(0x1cd)][_0xf2e7cb(0x1c9)]=_0x30d7e5[_0xf2e7cb(0x197)],_0x9c4c18[_0xf2e7cb(0x185)][_0xf2e7cb(0x1cd)][_0xf2e7cb(0x1bb)]&&_0x30d7e5[_0xf2e7cb(0x1b6)]&&(_0x9c4c18[_0xf2e7cb(0x185)][_0xf2e7cb(0x1cd)][_0xf2e7cb(0x1bb)][_0xf2e7cb(0x1b9)]=_0x30d7e5[_0xf2e7cb(0x1b6)])),this[_0xf2e7cb(0x1ce)][_0xf2e7cb(0x171)](_0x30d7e5[_0xf2e7cb(0x1b1)]),this[_0xf2e7cb(0x188)](_0x30d7e5[_0xf2e7cb(0x1bc)],_0x30d7e5[_0xf2e7cb(0x19f)]),this[_0xf2e7cb(0x176)]=()=>{const _0x4e2b63=_0xf2e7cb;this[_0x4e2b63(0x1aa)]=!0x1,this[_0x4e2b63(0x176)]=null,_0x9c4c18[_0x4e2b63(0x185)]&&_0x9c4c18[_0x4e2b63(0x185)][_0x4e2b63(0x19c)]();},_0x5d1268[_0xf2e7cb(0x1a4)][_0xf2e7cb(0x185)][_0xf2e7cb(0x1d0)](_0xf2e7cb(0x16f),this[_0xf2e7cb(0x176)]);}[_0x2a7c55(0x188)](_0x18552a,_0x449202){const _0x334186=_0x2a7c55;this[_0x334186(0x1a5)][_0x334186(0x1c2)][_0x334186(0x189)](_0x43cbb9)[_0x334186(0x191)](_0x18552a,_0x334186(0x1c5)+_0x449202,!0x0,!0x0);}[_0x2a7c55(0x19b)](_0x333524){const _0x1ad2b1=_0x2a7c55,_0x416845=_0x431152(this[_0x1ad2b1(0x1a5)]);this[_0x1ad2b1(0x188)](_0x333524[_0x1ad2b1(0x1bc)],_0x333524[_0x1ad2b1(0x19f)]);const _0x4cd171=this[_0x1ad2b1(0x16c)]();_0x4cd171&&_0x4cd171[0x0]&&_0x5828bf({'target':_0x4cd171[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x416845[_0x1ad2b1(0x1c2)][_0x1ad2b1(0x189)](_0x1ad2b1(0x170))[_0x1ad2b1(0x1a0)]({'title':_0x333524[_0x1ad2b1(0x197)],'icon':_0x333524[_0x1ad2b1(0x1b6)],'hasCloseButton':!0x0,'id':_0x1ad2b1(0x16a),'position':this[_0x1ad2b1(0x1b4)][_0x1ad2b1(0x1c7)](this),'className':_0x1ad2b1(0x1b3)+(_0x333524[_0x1ad2b1(0x1ba)]?_0x1ad2b1(0x190):''),'content':this[_0x1ad2b1(0x1ce)],'onShow':_0x5c6c22=>{const _0x4c72b8=_0x1ad2b1;_0x333524[_0x4c72b8(0x1ba)]&&this[_0x4c72b8(0x1ce)][_0x4c72b8(0x173)](_0x5c6c22),this[_0x4c72b8(0x1ac)](),this[_0x4c72b8(0x1c8)]=!0x0;},'onHide':()=>{const _0x55a5eb=_0x1ad2b1;this[_0x55a5eb(0x1a5)][_0x55a5eb(0x1c2)][_0x55a5eb(0x189)](_0x55a5eb(0x187))[_0x55a5eb(0x18b)](_0x55a5eb(0x1c5)+this[_0x55a5eb(0x1bd)][_0x55a5eb(0x19f)]),this[_0x55a5eb(0x1b5)](),this[_0x55a5eb(0x1ae)](_0x55a5eb(0x16d)),this[_0x55a5eb(0x1c8)]=!0x1;}});}[_0x2a7c55(0x1b4)](_0x2d0b33,_0x1e3405){const _0x1b6f77=_0x2a7c55;if(!_0x1e3405)return null;const _0xe5ec80=this[_0x1b6f77(0x16c)]();if(!_0xe5ec80||0x0===_0xe5ec80[_0x1b6f77(0x1c1)])return{'left':Math[_0x1b6f77(0x193)](_0x1e3405[_0x1b6f77(0x18d)]+_0x1e3405[_0x1b6f77(0x1a7)]/0x2-_0x2d0b33[_0x1b6f77(0x1a7)]/0x2),'top':Math[_0x1b6f77(0x193)](_0x1e3405[_0x1b6f77(0x1c4)]+_0x1e3405[_0x1b6f77(0x1a2)]/0x2-_0x2d0b33[_0x1b6f77(0x1a2)]/0x2)};const _0x4a6831=Math[_0x1b6f77(0x193)](_0x1e3405[_0x1b6f77(0x18d)]+_0x1e3405[_0x1b6f77(0x1a7)]/0x2-_0x2d0b33[_0x1b6f77(0x1a7)]/0x2),_0x2d33bd=new _0x46fdab(_0xe5ec80[0x0]),_0x17e6f9=new _0x46fdab(_0xe5ec80[_0xe5ec80[_0x1b6f77(0x1c1)]-0x1]),_0x233f90=_0x2d0b33[_0x1b6f77(0x1a2)],_0x506e9d=this[_0x1b6f77(0x1bd)][_0x1b6f77(0x1ba)]?0x8:0x0;return{'left':_0x4a6831,'top':this[_0x1b6f77(0x1af)](_0x2d33bd,_0x17e6f9,_0x233f90,_0x506e9d,_0x1e3405)};}[_0x2a7c55(0x1af)](_0x1bbdec,_0x1d6c93,_0x41e433,_0x1aa89b=0x0,_0x283254){const _0x3042fe=_0x2a7c55,_0x2db231=_0x41e433+_0x1aa89b,_0x5958a9=new _0x46fdab(_0x240739[_0x3042fe(0x1cb)]),_0x6efe87=[_0x1bbdec[_0x3042fe(0x1b7)](),_0x1d6c93[_0x3042fe(0x1b7)]()][_0x3042fe(0x1a8)](_0x152efe=>_0x152efe),_0x247258=_0x46fdab[_0x3042fe(0x180)](_0x6efe87);if(!_0x247258)return Math[_0x3042fe(0x193)](_0x283254[_0x3042fe(0x1c4)]+_0x283254[_0x3042fe(0x1a2)]/0x2);const _0x1cb403=_0x5958a9[_0x3042fe(0x172)](_0x247258);if(!_0x1cb403)return Math[_0x3042fe(0x193)](_0x283254[_0x3042fe(0x1c4)]+_0x283254[_0x3042fe(0x1a2)]/0x2);const _0x49b63f=_0x283254[_0x3042fe(0x1b7)](),_0x4ef61f=_0x49b63f&&_0x247258[_0x3042fe(0x1a2)]>_0x49b63f[_0x3042fe(0x1a2)],_0x59cd93=_0x1cb403[_0x3042fe(0x1c4)],_0x5b7676=_0x1cb403[_0x3042fe(0x1a1)];if(_0x4ef61f){const _0xd5286f=(_0x49b63f||_0x5958a9)[_0x3042fe(0x1a2)]/0x2-_0x2db231/0x2,_0x3bc19a=_0x59cd93-z-_0x283254[_0x3042fe(0x1c4)],_0x247441=_0x283254[_0x3042fe(0x1a1)]-_0x5b7676-z;return _0x3bc19a>=_0x2db231?Math[_0x3042fe(0x194)](z,_0x59cd93-_0x2db231-z):_0x247441>=_0x2db231?_0x5b7676+z:Math[_0x3042fe(0x194)](z,_0xd5286f);}const _0x2a5824=_0x59cd93-_0x2db231,_0x280df4=_0x283254[_0x3042fe(0x1a1)]-_0x5b7676-z,_0x187809=_0x59cd93-z-_0x283254[_0x3042fe(0x1c4)];let _0x32e6b5;if(_0x280df4>=_0x2db231)_0x32e6b5=_0x5b7676+z;else{if(_0x187809>=_0x2db231)_0x32e6b5=_0x2a5824-z;else _0x32e6b5=_0x59cd93+_0x247258[_0x3042fe(0x1a2)]/0x2-_0x2db231/0x2;}return _0x32e6b5;}[_0x2a7c55(0x1ac)](){const _0x32f50c=_0x2a7c55,_0x1fb24a=_0x431152(this[_0x32f50c(0x1a5)]);this[_0x32f50c(0x18f)](_0x1fb24a[_0x32f50c(0x16e)][_0x32f50c(0x168)],_0x32f50c(0x16b),()=>{const _0x5e0321=_0x32f50c;if(this[_0x5e0321(0x1aa)])return;for(const {name:_0xa8ce61,data:{newRange:_0xa8555}}of _0x1fb24a[_0x5e0321(0x16e)][_0x5e0321(0x168)][_0x5e0321(0x17c)][_0x5e0321(0x184)]())if(_0xa8ce61[_0x5e0321(0x19e)](_0x5e0321(0x1b8))&&(_0xa8555&&(_0xa8555[_0x5e0321(0x17a)][_0x5e0321(0x1c6)](_0xa8555[_0x5e0321(0x1c0)])||_0x5e0321(0x181)==_0xa8555[_0x5e0321(0x174)][_0x5e0321(0x17f)])||null==_0xa8555)){const _0x124d31=_0x2a638a(this[_0x5e0321(0x1a5)][_0x5e0321(0x18a)],_0x5e0321(0x199));this[_0x5e0321(0x1ce)][_0x5e0321(0x1bf)](_0x124d31),this[_0x5e0321(0x1ae)](_0x5e0321(0x18c));}});}[_0x2a7c55(0x1b5)](){const _0x554b7d=_0x2a7c55,_0x58f9ea=_0x431152(this[_0x554b7d(0x1a5)]);this[_0x554b7d(0x1cf)](_0x58f9ea[_0x554b7d(0x16e)][_0x554b7d(0x168)]);}[_0x2a7c55(0x16c)](){const _0x51b3cc=_0x2a7c55,_0xf4d42e=_0x431152(this[_0x51b3cc(0x1a5)]);return _0x33111f(_0xf4d42e[_0x51b3cc(0x1a4)],[..._0xf4d42e[_0x51b3cc(0x16e)][_0x51b3cc(0x186)][_0x51b3cc(0x198)](_0x51b3cc(0x178)),..._0xf4d42e[_0x51b3cc(0x16e)][_0x51b3cc(0x186)][_0x51b3cc(0x198)](_0x51b3cc(0x1ca))]);}}
23
+ const _0x3cc4c5=_0x1692;(function(_0x45b258,_0x363f7b){const _0x20ade0=_0x1692,_0x50d412=_0x45b258();while(!![]){try{const _0x5360c0=-parseInt(_0x20ade0(0x13a))/0x1*(-parseInt(_0x20ade0(0x163))/0x2)+-parseInt(_0x20ade0(0x171))/0x3+parseInt(_0x20ade0(0x17a))/0x4*(parseInt(_0x20ade0(0x13b))/0x5)+parseInt(_0x20ade0(0x17f))/0x6*(parseInt(_0x20ade0(0x150))/0x7)+parseInt(_0x20ade0(0x170))/0x8+parseInt(_0x20ade0(0x17c))/0x9+-parseInt(_0x20ade0(0x138))/0xa*(parseInt(_0x20ade0(0x15b))/0xb);if(_0x5360c0===_0x363f7b)break;else _0x50d412['push'](_0x50d412['shift']());}catch(_0x1affbc){_0x50d412['push'](_0x50d412['shift']());}}}(_0x4a90,0xbc663));import{ContextPlugin as _0x39f6d5}from'ckeditor5/src/core.js';import{AIConnector as _0x1cf58b}from'../aicore/aiconnector.js';import{AIEditing as _0x394859}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x2a120a,AIBalloonView as _0x4e0f50}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';function _0x1692(_0x5b4406,_0xbf8038){const _0x4a90a9=_0x4a90();return _0x1692=function(_0x169286,_0x364e2f){_0x169286=_0x169286-0x114;let _0x117495=_0x4a90a9[_0x169286];return _0x117495;},_0x1692(_0x5b4406,_0xbf8038);}import{getAllMarkersDomElementsSorted as _0x874bde}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x14acce,Rect as _0x2b1993,scrollViewportToShowTarget as _0x431506}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x247934}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x3d6fda}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x369df6}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x2a120a,_0x3cc4c5(0x149),_0x3cc4c5(0x156)];const g=0xa;function _0x4a90(){const _0x15733e=['value','_isUpdatingMarkers','11YmgIRr','start','isTrackChangesOn','plugins','fire','ai-selection:','AIEditing','markers','418742delRNY','balloonView','getIntersection','left','_config','AI_ACTIONS_SELECTION_REMOVED_ERROR','requires','ai-balloon-selection','isOfficialPlugin','config','render','aiBalloon','updateContent','4486024sAdNud','2905578gAEPtE','showFakeVisualSelection','open','getBoundingRect','ai-balloon-','rootName','length','filter','_cleanupMarkerRemovalListener','24PFERoL','_setupVisualSelection','6416676EBHdUD','showRotator','document','6400050EmedVK','index','hideFakeVisualSelection','setupRotator','pluginName','trackChanges','updatePosition','$graveyard','commands','ranges','_calculateDialogPosition','max','label','height','ai-balloon','iconView','_getSelectionElements','isOpen','\x20ai-balloon-rotator','view','stopAutoScroll','change','model','window','root','locale','icon','round','editing','startsWith','isPremiumPlugin','hide','Dialog','width','getChangedMarkers','title','showBlockingError','ai.availableReplyActions','context','12899990oAOOFu','listenTo','2EapaOi','225895FlZdkf','_updateBalloon','isEqual','content','startAutoScroll','getMarkersGroup','mainView','top','bind','close','end','bottom','_showDialog','AIBalloon','dialogClosed','show','get','_pendingRenderCallback','differ','stopListening','ai-selection','7oRMMme','_calculateOptimalTopPosition','off','delegate','once','getVisible','selectionRemoved','_setupMarkerRemovalListener','headerView'];_0x4a90=function(){return _0x15733e;};return _0x4a90();}export class AIBalloon extends _0x39f6d5{static get[_0x3cc4c5(0x169)](){return[_0x1cf58b,_0x394859];}static get[_0x3cc4c5(0x115)](){const _0x3e3821=_0x3cc4c5;return _0x3e3821(0x148);}static get[_0x3cc4c5(0x16b)](){return!0x0;}static get[_0x3cc4c5(0x12f)](){return!0x0;}[_0x3cc4c5(0x122)]=!0x1;[_0x3cc4c5(0x167)];[_0x3cc4c5(0x15a)]=!0x1;[_0x3cc4c5(0x14c)]=null;[_0x3cc4c5(0x173)](_0x5b6b9d){const _0x2de4c5=_0x3cc4c5,_0x21a731=_0x247934(this[_0x2de4c5(0x137)]);if(this[_0x2de4c5(0x167)]=_0x5b6b9d,this[_0x2de4c5(0x122)])return void this[_0x2de4c5(0x13c)](_0x5b6b9d);const _0x1c7639=this[_0x2de4c5(0x137)][_0x2de4c5(0x16c)][_0x2de4c5(0x14b)](_0x2de4c5(0x136))||[..._0x3d6fda],_0x3a9235=_0x21a731?.[_0x2de4c5(0x119)][_0x2de4c5(0x14b)](_0x2de4c5(0x116)),_0x4e996e=_0x3a9235?.[_0x2de4c5(0x159)];this[_0x2de4c5(0x164)]=new _0x4e0f50(_0x21a731[_0x2de4c5(0x12a)],_0x5b6b9d,_0x1c7639,!!_0x4e996e),this[_0x2de4c5(0x164)][_0x2de4c5(0x153)](..._0x2a120a)['to'](this),_0x3a9235&&this[_0x2de4c5(0x164)][_0x2de4c5(0x143)](_0x2de4c5(0x15d))['to'](_0x3a9235,_0x2de4c5(0x159)),this[_0x2de4c5(0x147)](_0x5b6b9d);}[_0x3cc4c5(0x144)](){const _0x15bf89=_0x3cc4c5;_0x247934(this[_0x15bf89(0x137)])[_0x15bf89(0x15e)][_0x15bf89(0x14b)](_0x15bf89(0x131))[_0x15bf89(0x130)]();}[_0x3cc4c5(0x13f)](){const _0x407e80=_0x3cc4c5;this[_0x407e80(0x164)]&&this[_0x407e80(0x164)][_0x407e80(0x13f)]();}[_0x3cc4c5(0x125)](){const _0x43e1b4=_0x3cc4c5;this[_0x43e1b4(0x164)]&&this[_0x43e1b4(0x164)][_0x43e1b4(0x125)]();}[_0x3cc4c5(0x13c)](_0x34762f){const _0x27ff41=_0x3cc4c5,_0x499f61=_0x247934(this[_0x27ff41(0x137)]),_0x51bdb0=_0x499f61[_0x27ff41(0x15e)][_0x27ff41(0x14b)](_0x27ff41(0x131));this[_0x27ff41(0x14c)]&&(_0x499f61[_0x27ff41(0x12d)][_0x27ff41(0x124)][_0x27ff41(0x152)](_0x27ff41(0x16d),this[_0x27ff41(0x14c)]),this[_0x27ff41(0x14c)]=null),this[_0x27ff41(0x15a)]=!0x0,_0x51bdb0[_0x27ff41(0x124)]?.[_0x27ff41(0x158)]&&(_0x51bdb0[_0x27ff41(0x124)][_0x27ff41(0x158)][_0x27ff41(0x11d)]=_0x34762f[_0x27ff41(0x134)],_0x51bdb0[_0x27ff41(0x124)][_0x27ff41(0x158)][_0x27ff41(0x120)]&&_0x34762f[_0x27ff41(0x12b)]&&(_0x51bdb0[_0x27ff41(0x124)][_0x27ff41(0x158)][_0x27ff41(0x120)][_0x27ff41(0x13e)]=_0x34762f[_0x27ff41(0x12b)])),this[_0x27ff41(0x164)][_0x27ff41(0x16f)](_0x34762f[_0x27ff41(0x141)]),this[_0x27ff41(0x17b)](_0x34762f[_0x27ff41(0x11a)],_0x34762f[_0x27ff41(0x180)]),this[_0x27ff41(0x14c)]=()=>{const _0x165e12=_0x27ff41;this[_0x165e12(0x15a)]=!0x1,this[_0x165e12(0x14c)]=null,_0x51bdb0[_0x165e12(0x124)]&&_0x51bdb0[_0x165e12(0x124)][_0x165e12(0x117)]();},_0x499f61[_0x27ff41(0x12d)][_0x27ff41(0x124)][_0x27ff41(0x154)](_0x27ff41(0x16d),this[_0x27ff41(0x14c)]);}[_0x3cc4c5(0x17b)](_0x28c0e3,_0x49ec6a){const _0x43a60a=_0x3cc4c5;this[_0x43a60a(0x137)][_0x43a60a(0x15e)][_0x43a60a(0x14b)](_0x394859)[_0x43a60a(0x172)](_0x28c0e3,_0x43a60a(0x175)+_0x49ec6a,!0x0,!0x0);}[_0x3cc4c5(0x147)](_0xf6d5e2){const _0x1fa4d7=_0x3cc4c5,_0x5a0bf7=_0x247934(this[_0x1fa4d7(0x137)]);this[_0x1fa4d7(0x17b)](_0xf6d5e2[_0x1fa4d7(0x11a)],_0xf6d5e2[_0x1fa4d7(0x180)]);const _0x3b59d9=this[_0x1fa4d7(0x121)]();_0x3b59d9&&_0x3b59d9[0x0]&&_0x431506({'target':_0x3b59d9[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x5a0bf7[_0x1fa4d7(0x15e)][_0x1fa4d7(0x14b)](_0x1fa4d7(0x131))[_0x1fa4d7(0x14a)]({'title':_0xf6d5e2[_0x1fa4d7(0x134)],'icon':_0xf6d5e2[_0x1fa4d7(0x12b)],'hasCloseButton':!0x0,'id':_0x1fa4d7(0x16e),'position':this[_0x1fa4d7(0x11b)][_0x1fa4d7(0x143)](this),'className':_0x1fa4d7(0x11f)+(_0xf6d5e2[_0x1fa4d7(0x17d)]?_0x1fa4d7(0x123):''),'content':this[_0x1fa4d7(0x164)],'onShow':_0x4a99d4=>{const _0x5ce28a=_0x1fa4d7;_0xf6d5e2[_0x5ce28a(0x17d)]&&this[_0x5ce28a(0x164)][_0x5ce28a(0x114)](_0x4a99d4),this[_0x5ce28a(0x157)](),this[_0x5ce28a(0x122)]=!0x0;},'onHide':()=>{const _0x2d2f0b=_0x1fa4d7;this[_0x2d2f0b(0x137)][_0x2d2f0b(0x15e)][_0x2d2f0b(0x14b)](_0x2d2f0b(0x161))[_0x2d2f0b(0x181)](_0x2d2f0b(0x175)+this[_0x2d2f0b(0x167)][_0x2d2f0b(0x180)]),this[_0x2d2f0b(0x179)](),this[_0x2d2f0b(0x15f)](_0x2d2f0b(0x149)),this[_0x2d2f0b(0x122)]=!0x1;}});}[_0x3cc4c5(0x11b)](_0x21592e,_0x384e91){const _0x59bf87=_0x3cc4c5;if(!_0x384e91)return null;const _0x506896=this[_0x59bf87(0x121)]();if(!_0x506896||0x0===_0x506896[_0x59bf87(0x177)])return{'left':Math[_0x59bf87(0x12c)](_0x384e91[_0x59bf87(0x166)]+_0x384e91[_0x59bf87(0x132)]/0x2-_0x21592e[_0x59bf87(0x132)]/0x2),'top':Math[_0x59bf87(0x12c)](_0x384e91[_0x59bf87(0x142)]+_0x384e91[_0x59bf87(0x11e)]/0x2-_0x21592e[_0x59bf87(0x11e)]/0x2)};const _0x1e951c=Math[_0x59bf87(0x12c)](_0x384e91[_0x59bf87(0x166)]+_0x384e91[_0x59bf87(0x132)]/0x2-_0x21592e[_0x59bf87(0x132)]/0x2),_0x58a24e=new _0x2b1993(_0x506896[0x0]),_0x3ba12a=new _0x2b1993(_0x506896[_0x506896[_0x59bf87(0x177)]-0x1]),_0x14d6b5=_0x21592e[_0x59bf87(0x11e)],_0xe7429a=this[_0x59bf87(0x167)][_0x59bf87(0x17d)]?0x8:0x0;return{'left':_0x1e951c,'top':this[_0x59bf87(0x151)](_0x58a24e,_0x3ba12a,_0x14d6b5,_0xe7429a,_0x384e91)};}[_0x3cc4c5(0x151)](_0x253d70,_0x5e59d9,_0x31c64a,_0x51c801=0x0,_0xcc6d20){const _0x47e6b5=_0x3cc4c5,_0x5c8fbb=_0x31c64a+_0x51c801,_0x366dc0=new _0x2b1993(_0x14acce[_0x47e6b5(0x128)]),_0x13c9ff=[_0x253d70[_0x47e6b5(0x155)](),_0x5e59d9[_0x47e6b5(0x155)]()][_0x47e6b5(0x178)](_0x430c47=>_0x430c47),_0x499343=_0x2b1993[_0x47e6b5(0x174)](_0x13c9ff);if(!_0x499343)return Math[_0x47e6b5(0x12c)](_0xcc6d20[_0x47e6b5(0x142)]+_0xcc6d20[_0x47e6b5(0x11e)]/0x2);const _0x52c4c5=_0x366dc0[_0x47e6b5(0x165)](_0x499343);if(!_0x52c4c5)return Math[_0x47e6b5(0x12c)](_0xcc6d20[_0x47e6b5(0x142)]+_0xcc6d20[_0x47e6b5(0x11e)]/0x2);const _0x39232c=_0xcc6d20[_0x47e6b5(0x155)](),_0x4c83e5=_0x39232c&&_0x499343[_0x47e6b5(0x11e)]>_0x39232c[_0x47e6b5(0x11e)],_0x2dfc50=_0x52c4c5[_0x47e6b5(0x142)],_0x4cf29a=_0x52c4c5[_0x47e6b5(0x146)];if(_0x4c83e5){const _0x1147b8=(_0x39232c||_0x366dc0)[_0x47e6b5(0x11e)]/0x2-_0x5c8fbb/0x2,_0x4a49da=_0x2dfc50-g-_0xcc6d20[_0x47e6b5(0x142)],_0x197149=_0xcc6d20[_0x47e6b5(0x146)]-_0x4cf29a-g;return _0x4a49da>=_0x5c8fbb?Math[_0x47e6b5(0x11c)](g,_0x2dfc50-_0x5c8fbb-g):_0x197149>=_0x5c8fbb?_0x4cf29a+g:Math[_0x47e6b5(0x11c)](g,_0x1147b8);}const _0x3af4c5=_0x2dfc50-_0x5c8fbb,_0x4e714c=_0xcc6d20[_0x47e6b5(0x146)]-_0x4cf29a-g,_0x4e9a3d=_0x2dfc50-g-_0xcc6d20[_0x47e6b5(0x142)];let _0x5ca3ed;if(_0x4e714c>=_0x5c8fbb)_0x5ca3ed=_0x4cf29a+g;else{if(_0x4e9a3d>=_0x5c8fbb)_0x5ca3ed=_0x3af4c5-g;else _0x5ca3ed=_0x2dfc50+_0x499343[_0x47e6b5(0x11e)]/0x2-_0x5c8fbb/0x2;}return _0x5ca3ed;}[_0x3cc4c5(0x157)](){const _0x1b6d4f=_0x3cc4c5,_0x4c551e=_0x247934(this[_0x1b6d4f(0x137)]);this[_0x1b6d4f(0x139)](_0x4c551e[_0x1b6d4f(0x127)][_0x1b6d4f(0x17e)],_0x1b6d4f(0x126),()=>{const _0x454158=_0x1b6d4f;if(this[_0x454158(0x15a)])return;for(const {name:_0x33393b,data:{newRange:_0x265386}}of _0x4c551e[_0x454158(0x127)][_0x454158(0x17e)][_0x454158(0x14d)][_0x454158(0x133)]())if(_0x33393b[_0x454158(0x12e)](_0x454158(0x160))&&(_0x265386&&(_0x265386[_0x454158(0x15c)][_0x454158(0x13d)](_0x265386[_0x454158(0x145)])||_0x454158(0x118)==_0x265386[_0x454158(0x129)][_0x454158(0x176)])||null==_0x265386)){const _0x662470=_0x369df6(this[_0x454158(0x137)][_0x454158(0x12a)],_0x454158(0x168));this[_0x454158(0x164)][_0x454158(0x135)](_0x662470),this[_0x454158(0x15f)](_0x454158(0x156));}});}[_0x3cc4c5(0x179)](){const _0x164016=_0x3cc4c5,_0x5c8999=_0x247934(this[_0x164016(0x137)]);this[_0x164016(0x14e)](_0x5c8999[_0x164016(0x127)][_0x164016(0x17e)]);}[_0x3cc4c5(0x121)](){const _0x497a1f=_0x3cc4c5,_0x62d494=_0x247934(this[_0x497a1f(0x137)]);return _0x874bde(_0x62d494[_0x497a1f(0x12d)],[..._0x62d494[_0x497a1f(0x127)][_0x497a1f(0x162)][_0x497a1f(0x140)](_0x497a1f(0x14f)),..._0x62d494[_0x497a1f(0x127)][_0x497a1f(0x162)][_0x497a1f(0x140)](_0x497a1f(0x16a))]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x51cde8,_0x8e9c98){var _0x522b09=_0x1a70,_0x5413e6=_0x51cde8();while(!![]){try{var _0x5004d5=parseInt(_0x522b09(0x18d))/0x1+-parseInt(_0x522b09(0x190))/0x2+parseInt(_0x522b09(0x197))/0x3+-parseInt(_0x522b09(0x193))/0x4*(parseInt(_0x522b09(0x19a))/0x5)+parseInt(_0x522b09(0x199))/0x6+-parseInt(_0x522b09(0x196))/0x7*(parseInt(_0x522b09(0x18f))/0x8)+-parseInt(_0x522b09(0x194))/0x9*(parseInt(_0x522b09(0x192))/0xa);if(_0x5004d5===_0x8e9c98)break;else _0x5413e6['push'](_0x5413e6['shift']());}catch(_0x124cc8){_0x5413e6['push'](_0x5413e6['shift']());}}}(_0x119d,0x45760));import{View as _0x4cf8fa}from'ckeditor5/src/ui.js';import{getTranslation as _0x9a0e13}from'../../aicore/utils/common-translations.js';function _0x1a70(_0x274764,_0x439063){var _0x119d82=_0x119d();return _0x1a70=function(_0x1a70f1,_0x4d1f3b){_0x1a70f1=_0x1a70f1-0x18d;var _0x19e205=_0x119d82[_0x1a70f1];return _0x19e205;},_0x1a70(_0x274764,_0x439063);}function _0x119d(){var _0x175118=['859791YihQQm','ck-ai-balloon__disclaimer','2621994XjGXsa','10NKmGBb','AI_DISCLAIMER_TEXT','456154jINAcs','div','963200dhGhXF','365090AoHFSR','setTemplate','10XJUxVF','336432xezuKh','565893ZAvcUC','ck-ai-balloon__disclaimer-content','28fPTgop'];_0x119d=function(){return _0x175118;};return _0x119d();}export class AIBalloonDisclaimerView extends _0x4cf8fa{constructor(_0x3808e1){var _0x53bf5d=_0x1a70;super(_0x3808e1),this[_0x53bf5d(0x191)]({'tag':_0x53bf5d(0x18e),'attributes':{'class':['ck',_0x53bf5d(0x198)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x53bf5d(0x195)]},'children':[{'text':_0x9a0e13(_0x3808e1,_0x53bf5d(0x19b))}]}]});}}
23
+ (function(_0x4a2a61,_0x535716){var _0x1583b7=_0x1e47,_0x4a8ba9=_0x4a2a61();while(!![]){try{var _0x2723ca=-parseInt(_0x1583b7(0x1b3))/0x1*(-parseInt(_0x1583b7(0x1b2))/0x2)+parseInt(_0x1583b7(0x1ac))/0x3+parseInt(_0x1583b7(0x1a8))/0x4+parseInt(_0x1583b7(0x1a6))/0x5+-parseInt(_0x1583b7(0x1b0))/0x6*(parseInt(_0x1583b7(0x1a9))/0x7)+parseInt(_0x1583b7(0x1af))/0x8+parseInt(_0x1583b7(0x1aa))/0x9*(-parseInt(_0x1583b7(0x1ae))/0xa);if(_0x2723ca===_0x535716)break;else _0x4a8ba9['push'](_0x4a8ba9['shift']());}catch(_0x2c1c79){_0x4a8ba9['push'](_0x4a8ba9['shift']());}}}(_0x4de1,0xc19fe));function _0x1e47(_0x28e581,_0x48c2c1){var _0x4de198=_0x4de1();return _0x1e47=function(_0x1e479c,_0x2c81b5){_0x1e479c=_0x1e479c-0x1a6;var _0x4cd0c4=_0x4de198[_0x1e479c];return _0x4cd0c4;},_0x1e47(_0x28e581,_0x48c2c1);}import{View as _0x136ea3}from'ckeditor5/src/ui.js';function _0x4de1(){var _0x3e4d3c=['4178weHoxE','613BqVshc','setTemplate','5752250ypsMMb','ck-ai-balloon__disclaimer-content','35076wZzXCh','1261729NUxSiZ','39789SlVlig','AI_DISCLAIMER_TEXT','3211404BKbKZO','ck-ai-balloon__disclaimer','6640cUkVtm','4631040dlWNYE','12ilKWot','div'];_0x4de1=function(){return _0x3e4d3c;};return _0x4de1();}import{getTranslation as _0xef904e}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x136ea3{constructor(_0x2c6233){var _0x1dbd0f=_0x1e47;super(_0x2c6233),this[_0x1dbd0f(0x1b4)]({'tag':_0x1dbd0f(0x1b1),'attributes':{'class':['ck',_0x1dbd0f(0x1ad)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x1dbd0f(0x1a7)]},'children':[{'text':_0xef904e(_0x2c6233,_0x1dbd0f(0x1ab))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x12b3(_0x27fda1,_0x590ad8){const _0x5bc50f=_0x5bc5();return _0x12b3=function(_0x12b3f2,_0xc2611){_0x12b3f2=_0x12b3f2-0x64;let _0x12dcfd=_0x5bc50f[_0x12b3f2];return _0x12dcfd;},_0x12b3(_0x27fda1,_0x590ad8);}const _0x2eb3df=_0x12b3;(function(_0xf0159f,_0x17b2f2){const _0x202972=_0x12b3,_0x2aa9f7=_0xf0159f();while(!![]){try{const _0x4618b=parseInt(_0x202972(0x70))/0x1*(parseInt(_0x202972(0x6f))/0x2)+-parseInt(_0x202972(0x76))/0x3*(parseInt(_0x202972(0x7d))/0x4)+-parseInt(_0x202972(0x7e))/0x5*(parseInt(_0x202972(0x67))/0x6)+parseInt(_0x202972(0x73))/0x7*(parseInt(_0x202972(0x6c))/0x8)+-parseInt(_0x202972(0x68))/0x9+parseInt(_0x202972(0x66))/0xa+-parseInt(_0x202972(0x75))/0xb*(parseInt(_0x202972(0x7f))/0xc);if(_0x4618b===_0x17b2f2)break;else _0x2aa9f7['push'](_0x2aa9f7['shift']());}catch(_0x84f3b0){_0x2aa9f7['push'](_0x2aa9f7['shift']());}}}(_0x5bc5,0xc1d75));import{ToolbarView as _0x5d408a,ButtonView as _0x13bb8c}from'ckeditor5/src/ui.js';import{getTranslation as _0x15ec03}from'../../aicore/utils/common-translations.js';export class AIBalloonToolbarView extends _0x5d408a{constructor(_0x224135,_0x3ea579=!0x0,_0x226646=!0x0){const _0x2c59ad=_0x12b3;super(_0x224135),this[_0x2c59ad(0x77)](_0x2c59ad(0x71),!0x1),_0x3ea579&&(this[_0x2c59ad(0x72)]=this[_0x2c59ad(0x7a)](_0x15ec03(_0x224135,_0x2c59ad(0x6b)),_0x2c59ad(0x69)),this[_0x2c59ad(0x72)][_0x2c59ad(0x79)](_0x2c59ad(0x6a))['to'](this,_0x2c59ad(0x71),_0x1491ef=>!_0x1491ef),this[_0x2c59ad(0x7c)][_0x2c59ad(0x64)](this[_0x2c59ad(0x72)])),_0x226646&&(this[_0x2c59ad(0x74)]=this[_0x2c59ad(0x7a)](_0x15ec03(_0x224135,_0x2c59ad(0x6d)),_0x3ea579?_0x2c59ad(0x78):_0x2c59ad(0x69)),this[_0x2c59ad(0x74)][_0x2c59ad(0x79)](_0x2c59ad(0x6a))['to'](this,_0x2c59ad(0x71),_0x28a791=>!_0x28a791),this[_0x2c59ad(0x7c)][_0x2c59ad(0x64)](this[_0x2c59ad(0x74)])),this[_0x2c59ad(0x7b)]({'attributes':{'class':[_0x2c59ad(0x65)]}});}[_0x2eb3df(0x7a)](_0x317586,_0x18badd){const _0x2d4385=_0x2eb3df,_0x1d5f12=new _0x13bb8c(this[_0x2d4385(0x6e)]);return _0x1d5f12[_0x2d4385(0x77)]({'label':_0x317586,'class':_0x18badd||'','isVisible':!0x0,'withText':!0x0}),_0x1d5f12;}}function _0x5bc5(){const _0x5f1f57=['ck-ai-balloon__toolbar','14131880lHJsuZ','51924AODoNS','11289438pymGpA','ck-ai-button-primary','isEnabled','AI_BALLOON_APPLY_BUTTON','40mYTYva','AI_BALLOON_SUGGEST_BUTTON','locale','22bPeSrt','123709RCsEmj','isLoading','applyButton','849324cvXbbd','suggestButton','132451jWSzqh','3429069xYlfUi','set','ck-ai-button-secondary','bind','_createButton','extendTemplate','items','4ULyZvv','5eomRfV','180oxBPtY','add'];_0x5bc5=function(){return _0x5f1f57;};return _0x5bc5();}
23
+ function _0x4ca2(_0x11a41b,_0x12a9ce){const _0x409ffc=_0x409f();return _0x4ca2=function(_0x4ca276,_0x41f852){_0x4ca276=_0x4ca276-0x92;let _0xdde756=_0x409ffc[_0x4ca276];return _0xdde756;},_0x4ca2(_0x11a41b,_0x12a9ce);}const _0x38edae=_0x4ca2;(function(_0x4a9fe1,_0x35b488){const _0x37b680=_0x4ca2,_0x468ec4=_0x4a9fe1();while(!![]){try{const _0x2f26dd=parseInt(_0x37b680(0xa3))/0x1+parseInt(_0x37b680(0xa9))/0x2*(parseInt(_0x37b680(0x93))/0x3)+-parseInt(_0x37b680(0x9d))/0x4*(-parseInt(_0x37b680(0xa1))/0x5)+-parseInt(_0x37b680(0x9a))/0x6+parseInt(_0x37b680(0xa6))/0x7+parseInt(_0x37b680(0xaa))/0x8+parseInt(_0x37b680(0xa7))/0x9*(-parseInt(_0x37b680(0x95))/0xa);if(_0x2f26dd===_0x35b488)break;else _0x468ec4['push'](_0x468ec4['shift']());}catch(_0x2b618a){_0x468ec4['push'](_0x468ec4['shift']());}}}(_0x409f,0x9540f));import{ToolbarView as _0x24981f,ButtonView as _0x55ebb6}from'ckeditor5/src/ui.js';import{getTranslation as _0x2f37a2}from'../../aicore/utils/common-translations.js';function _0x409f(){const _0x3e73df=['12IfNBtM','AI_BALLOON_SUGGEST_BUTTON','isEnabled','_createButton','983015gmEvjg','items','775190loqESv','set','ck-ai-button-secondary','1630902kHoNyD','18bVOvZL','applyButton','32462LncpmO','3457424nZdfJp','locale','ck-ai-balloon__toolbar','12MYgaZV','ck-ai-button-primary','3727690wFBAgw','extendTemplate','bind','AI_BALLOON_APPLY_BUTTON','add','4429236axTWOH','suggestButton','isLoading'];_0x409f=function(){return _0x3e73df;};return _0x409f();}export class AIBalloonToolbarView extends _0x24981f{constructor(_0x13ea86,_0x2a5854=!0x0,_0x3b6021=!0x0){const _0x4eaeab=_0x4ca2;super(_0x13ea86),this[_0x4eaeab(0xa4)](_0x4eaeab(0x9c),!0x1),_0x2a5854&&(this[_0x4eaeab(0xa8)]=this[_0x4eaeab(0xa0)](_0x2f37a2(_0x13ea86,_0x4eaeab(0x98)),_0x4eaeab(0x94)),this[_0x4eaeab(0xa8)][_0x4eaeab(0x97)](_0x4eaeab(0x9f))['to'](this,_0x4eaeab(0x9c),_0x345be4=>!_0x345be4),this[_0x4eaeab(0xa2)][_0x4eaeab(0x99)](this[_0x4eaeab(0xa8)])),_0x3b6021&&(this[_0x4eaeab(0x9b)]=this[_0x4eaeab(0xa0)](_0x2f37a2(_0x13ea86,_0x4eaeab(0x9e)),_0x2a5854?_0x4eaeab(0xa5):_0x4eaeab(0x94)),this[_0x4eaeab(0x9b)][_0x4eaeab(0x97)](_0x4eaeab(0x9f))['to'](this,_0x4eaeab(0x9c),_0x4883b2=>!_0x4883b2),this[_0x4eaeab(0xa2)][_0x4eaeab(0x99)](this[_0x4eaeab(0x9b)])),this[_0x4eaeab(0x96)]({'attributes':{'class':[_0x4eaeab(0x92)]}});}[_0x38edae(0xa0)](_0x4d3dd3,_0xcc93ed){const _0x2307b4=_0x38edae,_0x3f4701=new _0x55ebb6(this[_0x2307b4(0xab)]);return _0x3f4701[_0x2307b4(0xa4)]({'label':_0x4d3dd3,'class':_0xcc93ed||'','isVisible':!0x0,'withText':!0x0}),_0x3f4701;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1f9bda=_0x5f12;(function(_0x16e618,_0xdc118f){const _0x576772=_0x5f12,_0x58d06d=_0x16e618();while(!![]){try{const _0x4b3d14=parseInt(_0x576772(0x1a0))/0x1+-parseInt(_0x576772(0x178))/0x2+-parseInt(_0x576772(0x18b))/0x3*(parseInt(_0x576772(0x177))/0x4)+-parseInt(_0x576772(0x183))/0x5+-parseInt(_0x576772(0x16b))/0x6*(parseInt(_0x576772(0x1b4))/0x7)+-parseInt(_0x576772(0x175))/0x8+parseInt(_0x576772(0x1b3))/0x9;if(_0x4b3d14===_0xdc118f)break;else _0x58d06d['push'](_0x58d06d['shift']());}catch(_0x2837e8){_0x58d06d['push'](_0x58d06d['shift']());}}}(_0x4c87,0xc8c5d));import{ButtonView as _0x24a77a,View as _0x4f5267,ViewCollection as _0x2fac5d,FocusCycler as _0x504de9}from'ckeditor5/src/ui.js';function _0x4c87(){const _0x15d978=['set','change:isTrackChangesOn','bindTemplate','1992935OKiVeX','setupRotator','remove','ck-ai-suggestion__error','clear','focusCycler','element','_availableActions','449979RgwmGJ','AI_BALLOON_PREVIOUS_TOOLTIP','stop','execute','stopAutoScroll','ai-balloon-content','errorMessage','destroy','showError','render','focusLast','_focusables','focusFirst','showRecoverableError','locale','span','children','showSuggestButton','scrollManager','_createPreviousButtonView','isTrackChangesOn','1183827WIPGML','setLoading','_mainView','ck-hidden','suggestButton','toolbar','showPrevious','bind','showApplyButton','listenTo','div','headerView','add','getIndex','start','isLoading','showBlockingError','AI_BALLOON_NEXT_TOOLTIP','isEnabled','27328500jsxAep','17549NPqKWR','bodyView','insertSuggestion','keystrokes','ai-balloon-error','applyButton','shift\x20+\x20tab','_addDisclaimerView','focus','startAutoScroll','_createErrorView','isErrorVisible','_initializeScrollManager','view','clearLoading','setTemplate','showNext','addMany','1038ydtkVa','tab','createCollection','mainView','fire','_dialogContent','includes','focusTracker','_createNextButtonView','applySuggestion','2537464sdClAd','updateContent','36nhBeBX','1797088QETNOt','hideError','_getScrollableElement','ck-ai-suggestion__error-text','_addContentView','disclaimerView','_addToolbar','_errorView'];_0x4c87=function(){return _0x15d978;};return _0x4c87();}import{FocusTracker as _0x8cbcdf,KeystrokeHandler as _0x307efb}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x39e91c,IconPreviousArrow as _0x543276}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x3b0833}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x4cc890}from'./aiballoondisclaimerview.js';import{getTranslation as _0x300c80}from'../../aicore/utils/common-translations.js';function _0x5f12(_0x127c9b,_0x2078c6){const _0x4c8737=_0x4c87();return _0x5f12=function(_0x5f12b4,_0x3005ba){_0x5f12b4=_0x5f12b4-0x15a;let _0x40cdbe=_0x4c8737[_0x5f12b4];return _0x40cdbe;},_0x5f12(_0x127c9b,_0x2078c6);}import{ScrollManager as _0x13180f}from'../../aicore/utils/scrollmanager.js';import{AISuggestionContainerView as _0x55345b}from'../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x1f9bda(0x174),_0x1f9bda(0x15b),_0x1f9bda(0x169),_0x1f9bda(0x1a6)];export class AIBalloonView extends _0x4f5267{[_0x1f9bda(0x172)];[_0x1f9bda(0x15c)];[_0x1f9bda(0x188)];[_0x1f9bda(0x18a)];[_0x1f9bda(0x196)];[_0x1f9bda(0x17f)];[_0x1f9bda(0x19d)];constructor(_0x4dcf19,_0x1b6c86,_0x3d5e04,_0x2394aa){const _0x2da652=_0x1f9bda;super(_0x4dcf19),this[_0x2da652(0x18a)]=_0x3d5e04,this[_0x2da652(0x180)](_0x2da652(0x1af),!0x1),this[_0x2da652(0x180)](_0x2da652(0x19f),_0x2394aa),this[_0x2da652(0x180)](_0x2da652(0x164),!0x1),this[_0x2da652(0x180)](_0x2da652(0x191),''),this[_0x2da652(0x172)]=new _0x8cbcdf(),this[_0x2da652(0x15c)]=new _0x307efb(),this[_0x2da652(0x196)]=this[_0x2da652(0x16d)](),this[_0x2da652(0x188)]=new _0x504de9({'focusables':this[_0x2da652(0x196)],'focusTracker':this[_0x2da652(0x172)],'keystrokeHandler':this[_0x2da652(0x15c)],'actions':{'focusPrevious':_0x2da652(0x15f),'focusNext':_0x2da652(0x16c)}}),this[_0x2da652(0x170)]=new _0x2fac5d(),this[_0x2da652(0x17c)](_0x1b6c86[_0x2da652(0x16e)]),this[_0x2da652(0x160)](),this[_0x2da652(0x17e)](_0x1b6c86[_0x2da652(0x1a8)],_0x1b6c86[_0x2da652(0x19c)]),this[_0x2da652(0x1a5)][_0x2da652(0x1a7)](_0x2da652(0x1af))['to'](this),this[_0x2da652(0x196)][_0x2da652(0x187)](),this[_0x2da652(0x196)][_0x2da652(0x16a)]([this[_0x2da652(0x1a5)]]),this[_0x2da652(0x168)]({'tag':_0x2da652(0x1aa),'attributes':{'class':_0x2da652(0x190)},'children':this[_0x2da652(0x170)]}),this['on'](_0x2da652(0x181),()=>{const _0x530b65=_0x2da652;this[_0x530b65(0x170)][_0x530b65(0x185)](this[_0x530b65(0x1a5)]),this[_0x530b65(0x17e)](_0x1b6c86[_0x530b65(0x1a8)],_0x1b6c86[_0x530b65(0x19c)]);});}[_0x1f9bda(0x194)](){const _0x38ae32=_0x1f9bda;super[_0x38ae32(0x194)]();for(const _0x3fa248 of this[_0x38ae32(0x196)])this[_0x38ae32(0x172)][_0x38ae32(0x1ac)](_0x3fa248[_0x38ae32(0x189)]);this[_0x38ae32(0x15c)][_0x38ae32(0x1a9)](this[_0x38ae32(0x189)]),this[_0x38ae32(0x165)]();}[_0x1f9bda(0x192)](){const _0xa89d84=_0x1f9bda;super[_0xa89d84(0x192)](),this[_0xa89d84(0x19d)]&&this[_0xa89d84(0x19d)][_0xa89d84(0x192)]();}[_0x1f9bda(0x161)](_0x1a35ad){const _0x32167e=_0x1f9bda;-0x1===_0x1a35ad?this[_0x32167e(0x188)][_0x32167e(0x195)]():this[_0x32167e(0x188)][_0x32167e(0x197)]();}[_0x1f9bda(0x1a1)](){const _0x4e71f0=_0x1f9bda;this[_0x4e71f0(0x1af)]=!0x0;}[_0x1f9bda(0x167)](){const _0x5504fd=_0x1f9bda;this[_0x5504fd(0x1af)]=!0x1;}[_0x1f9bda(0x193)](_0x37aa54){const _0x274e0b=_0x1f9bda;this[_0x274e0b(0x17f)]||(this[_0x274e0b(0x17f)]=this[_0x274e0b(0x163)](),this[_0x274e0b(0x170)][_0x274e0b(0x16a)]([this[_0x274e0b(0x17f)]],0x0)),this[_0x274e0b(0x191)]=_0x37aa54,this[_0x274e0b(0x164)]=!0x0;}[_0x1f9bda(0x179)](){const _0x551ac7=_0x1f9bda;this[_0x551ac7(0x164)]=!0x1;}[_0x1f9bda(0x198)](_0x2b2457){const _0x390177=_0x1f9bda;this[_0x390177(0x193)](_0x2b2457);}[_0x1f9bda(0x1b0)](_0x3a68ad){const _0x492a06=_0x1f9bda;this[_0x492a06(0x193)](_0x3a68ad),this[_0x492a06(0x1a5)]&&(this[_0x492a06(0x1a5)][_0x492a06(0x15e)]&&(this[_0x492a06(0x1a5)][_0x492a06(0x15e)][_0x492a06(0x1b2)]=!0x1),this[_0x492a06(0x1a5)][_0x492a06(0x1a4)]&&(this[_0x492a06(0x1a5)][_0x492a06(0x1a4)][_0x492a06(0x1b2)]=!0x1));}[_0x1f9bda(0x184)](_0x2fcb39){const _0x4b670c=_0x1f9bda,_0x1c5de1=this[_0x4b670c(0x173)](),_0x14c398=this[_0x4b670c(0x19e)]();_0x2fcb39[_0x4b670c(0x166)][_0x4b670c(0x1ab)][_0x4b670c(0x19b)][_0x4b670c(0x1ac)](_0x1c5de1,0x2),_0x2fcb39[_0x4b670c(0x166)][_0x4b670c(0x1ab)][_0x4b670c(0x19b)][_0x4b670c(0x1ac)](_0x14c398,0x0),this[_0x4b670c(0x196)][_0x4b670c(0x16a)]([_0x1c5de1,_0x14c398]),this[_0x4b670c(0x172)][_0x4b670c(0x1ac)](_0x1c5de1[_0x4b670c(0x189)]),this[_0x4b670c(0x172)][_0x4b670c(0x1ac)](_0x14c398[_0x4b670c(0x189)]);}[_0x1f9bda(0x17c)](_0xb2d690){const _0x14f11b=_0x1f9bda;this[_0x14f11b(0x1a2)]=_0xb2d690,this[_0x14f11b(0x170)][_0x14f11b(0x1ac)](this[_0x14f11b(0x1a2)]);}[_0x1f9bda(0x176)](_0x3b3c12){const _0x143f6a=_0x1f9bda,_0x43c76c=this[_0x143f6a(0x170)][_0x143f6a(0x1ad)](this[_0x143f6a(0x1a2)]);this[_0x143f6a(0x170)][_0x143f6a(0x185)](this[_0x143f6a(0x1a2)]),this[_0x143f6a(0x1a2)]=_0x3b3c12,this[_0x143f6a(0x170)][_0x143f6a(0x1ac)](this[_0x143f6a(0x1a2)],_0x43c76c),this[_0x143f6a(0x179)](),this[_0x143f6a(0x19d)]&&this[_0x143f6a(0x19d)][_0x143f6a(0x192)](),this[_0x143f6a(0x165)]();}[_0x1f9bda(0x160)](){const _0x20c01d=_0x1f9bda;this[_0x20c01d(0x17d)]=new _0x4cc890(this[_0x20c01d(0x199)]),this[_0x20c01d(0x170)][_0x20c01d(0x1ac)](this[_0x20c01d(0x17d)]);}[_0x1f9bda(0x17e)](_0x19da94=!0x0,_0x126b33=!0x0){const _0x233bbc=_0x1f9bda;_0x19da94=_0x19da94&&!this[_0x233bbc(0x19f)]&&this[_0x233bbc(0x18a)][_0x233bbc(0x171)](_0x233bbc(0x174)),_0x126b33=_0x126b33&&this[_0x233bbc(0x18a)][_0x233bbc(0x171)](_0x233bbc(0x15b)),this[_0x233bbc(0x1a5)]=new _0x3b0833(this[_0x233bbc(0x199)],_0x19da94,_0x126b33),this[_0x233bbc(0x1a5)][_0x233bbc(0x15e)]?.['on'](_0x233bbc(0x18e),()=>{const _0x461a26=_0x233bbc;this[_0x461a26(0x16f)](_0x461a26(0x174));}),this[_0x233bbc(0x1a5)][_0x233bbc(0x1a4)]?.['on'](_0x233bbc(0x18e),()=>{const _0x4dd40b=_0x233bbc;this[_0x4dd40b(0x16f)](_0x4dd40b(0x15b));}),this[_0x233bbc(0x170)][_0x233bbc(0x1ac)](this[_0x233bbc(0x1a5)]);}[_0x1f9bda(0x173)](){const _0x42b8f3=_0x1f9bda,_0x12fb52=new _0x24a77a(this[_0x42b8f3(0x199)]);return _0x12fb52[_0x42b8f3(0x180)]({'icon':_0x39e91c,'tooltip':_0x300c80(this[_0x42b8f3(0x199)],_0x42b8f3(0x1b1))}),_0x12fb52['on'](_0x42b8f3(0x18e),()=>{const _0x417281=_0x42b8f3;this[_0x417281(0x16f)](_0x417281(0x169));}),_0x12fb52;}[_0x1f9bda(0x19e)](){const _0x5c22f8=_0x1f9bda,_0x2b9e4f=new _0x24a77a(this[_0x5c22f8(0x199)]);return _0x2b9e4f[_0x5c22f8(0x180)]({'icon':_0x543276,'tooltip':_0x300c80(this[_0x5c22f8(0x199)],_0x5c22f8(0x18c))}),_0x2b9e4f['on'](_0x5c22f8(0x18e),()=>{const _0x2af70b=_0x5c22f8;this[_0x2af70b(0x16f)](_0x2af70b(0x1a6));}),_0x2b9e4f;}[_0x1f9bda(0x163)](){const _0xf9b916=_0x1f9bda,_0x103c7f=new _0x4f5267(this[_0xf9b916(0x199)]),_0x3406d1=new _0x4f5267(this[_0xf9b916(0x199)]);return _0x3406d1[_0xf9b916(0x168)]({'tag':_0xf9b916(0x19a),'attributes':{'class':['ck',_0xf9b916(0x17b)]},'children':[{'text':this[_0xf9b916(0x182)]['to'](_0xf9b916(0x191))}]}),_0x103c7f[_0xf9b916(0x168)]({'tag':_0xf9b916(0x1aa),'attributes':{'class':['ck',_0xf9b916(0x186),_0xf9b916(0x15d),this[_0xf9b916(0x182)]['if'](_0xf9b916(0x164),_0xf9b916(0x1a3),_0x30b9e2=>!_0x30b9e2)]},'children':[_0x3406d1]}),_0x103c7f;}[_0x1f9bda(0x162)](){const _0x40f71b=_0x1f9bda;this[_0x40f71b(0x165)](),this[_0x40f71b(0x19d)]&&this[_0x40f71b(0x19d)][_0x40f71b(0x1ae)]();}[_0x1f9bda(0x18f)](){const _0x480dc2=_0x1f9bda;this[_0x480dc2(0x19d)]&&this[_0x480dc2(0x19d)][_0x480dc2(0x18d)]();}[_0x1f9bda(0x165)](){const _0x57b78c=_0x1f9bda,_0x23ed9e=this[_0x57b78c(0x17a)]();_0x23ed9e&&!this[_0x57b78c(0x19d)]&&(this[_0x57b78c(0x19d)]=new _0x13180f(_0x23ed9e));}[_0x1f9bda(0x17a)](){const _0x110b52=_0x1f9bda;return this[_0x110b52(0x1a2)]instanceof _0x55345b&&this[_0x110b52(0x1a2)][_0x110b52(0x15a)][_0x110b52(0x189)]?this[_0x110b52(0x1a2)][_0x110b52(0x15a)][_0x110b52(0x189)]:null;}}
23
+ const _0x11bf3c=_0x2337;(function(_0x4ab82d,_0x4523b5){const _0x541ae3=_0x2337,_0x2db957=_0x4ab82d();while(!![]){try{const _0x55c03b=-parseInt(_0x541ae3(0xf7))/0x1*(parseInt(_0x541ae3(0xc6))/0x2)+parseInt(_0x541ae3(0xb5))/0x3+-parseInt(_0x541ae3(0xdc))/0x4+parseInt(_0x541ae3(0xdb))/0x5+parseInt(_0x541ae3(0xb4))/0x6*(parseInt(_0x541ae3(0xd5))/0x7)+parseInt(_0x541ae3(0xcf))/0x8*(-parseInt(_0x541ae3(0xf1))/0x9)+-parseInt(_0x541ae3(0xdf))/0xa*(-parseInt(_0x541ae3(0x10c))/0xb);if(_0x55c03b===_0x4523b5)break;else _0x2db957['push'](_0x2db957['shift']());}catch(_0x23f873){_0x2db957['push'](_0x2db957['shift']());}}}(_0xce12,0x26653));import{ButtonView as _0x3b565f,View as _0x543533,ViewCollection as _0x1edae4,FocusCycler as _0x67919}from'ckeditor5/src/ui.js';function _0xce12(){const _0x429bac=['hideError','showSuggestButton','AI_BALLOON_PREVIOUS_TOOLTIP','bodyView','_availableActions','listenTo','isErrorVisible','disclaimerView','688wQwSYL','focusCycler','tab','showBlockingError','showRecoverableError','errorMessage','7VobDBk','applyButton','focusLast','setTemplate','div','showNext','1102135jjvKDo','846248Dbzxem','element','AI_BALLOON_NEXT_TOOLTIP','46700HkzwmA','setLoading','ck-ai-suggestion__error-text','isLoading','_addDisclaimerView','remove','_createPreviousButtonView','_initializeScrollManager','bindTemplate','view','_createNextButtonView','startAutoScroll','ai-balloon-error','addMany','_focusables','mainView','isEnabled','focus','31167wCfiBZ','_addContentView','isTrackChangesOn','includes','_dialogContent','keystrokes','1633WDXkRK','_errorView','applySuggestion','destroy','_mainView','render','change:isTrackChangesOn','focusFirst','stopAutoScroll','setupRotator','_getScrollableElement','stop','span','ck-ai-suggestion__error','insertSuggestion','showPrevious','showApplyButton','getIndex','focusTracker','suggestButton','shift\x20+\x20tab','1375gQmBpU','ck-hidden','fire','scrollManager','updateContent','144276WjUhbX','406890aWoXxg','showError','bind','createCollection','_addToolbar','set','clearLoading','children','toolbar','add','start','headerView','execute','clear','_createErrorView','locale','ai-balloon-content','364ysxvSm'];_0xce12=function(){return _0x429bac;};return _0xce12();}import{FocusTracker as _0x32bc76,KeystrokeHandler as _0x3c83ee}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x475f02,IconPreviousArrow as _0x1c8335}from'@ckeditor/ckeditor5-icons';function _0x2337(_0x218d96,_0xb5ec68){const _0xce12d0=_0xce12();return _0x2337=function(_0x2337c5,_0x146044){_0x2337c5=_0x2337c5-0xb3;let _0x1153d1=_0xce12d0[_0x2337c5];return _0x1153d1;},_0x2337(_0x218d96,_0xb5ec68);}import{AIBalloonToolbarView as _0x3a2ca5}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x59adc3}from'./aiballoondisclaimerview.js';import{getTranslation as _0x380c21}from'../../aicore/utils/common-translations.js';import{ScrollManager as _0x622d4d}from'../../aicore/utils/scrollmanager.js';import{AISuggestionContainerView as _0x16f741}from'../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x11bf3c(0xf9),_0x11bf3c(0x105),_0x11bf3c(0xda),_0x11bf3c(0x106)];export class AIBalloonView extends _0x543533{[_0x11bf3c(0x109)];[_0x11bf3c(0xf6)];[_0x11bf3c(0xd0)];[_0x11bf3c(0xcb)];[_0x11bf3c(0xed)];[_0x11bf3c(0xf8)];[_0x11bf3c(0x10f)];constructor(_0x4f52ca,_0x71bdb7,_0x5b0f3b,_0x3a28e8){const _0x45c51e=_0x11bf3c;super(_0x4f52ca),this[_0x45c51e(0xcb)]=_0x5b0f3b,this[_0x45c51e(0xba)](_0x45c51e(0xe2),!0x1),this[_0x45c51e(0xba)](_0x45c51e(0xf3),_0x3a28e8),this[_0x45c51e(0xba)](_0x45c51e(0xcd),!0x1),this[_0x45c51e(0xba)](_0x45c51e(0xd4),''),this[_0x45c51e(0x109)]=new _0x32bc76(),this[_0x45c51e(0xf6)]=new _0x3c83ee(),this[_0x45c51e(0xed)]=this[_0x45c51e(0xb8)](),this[_0x45c51e(0xd0)]=new _0x67919({'focusables':this[_0x45c51e(0xed)],'focusTracker':this[_0x45c51e(0x109)],'keystrokeHandler':this[_0x45c51e(0xf6)],'actions':{'focusPrevious':_0x45c51e(0x10b),'focusNext':_0x45c51e(0xd1)}}),this[_0x45c51e(0xf5)]=new _0x1edae4(),this[_0x45c51e(0xf2)](_0x71bdb7[_0x45c51e(0xee)]),this[_0x45c51e(0xe3)](),this[_0x45c51e(0xb9)](_0x71bdb7[_0x45c51e(0x107)],_0x71bdb7[_0x45c51e(0xc8)]),this[_0x45c51e(0xbd)][_0x45c51e(0xb7)](_0x45c51e(0xe2))['to'](this),this[_0x45c51e(0xed)][_0x45c51e(0xc2)](),this[_0x45c51e(0xed)][_0x45c51e(0xec)]([this[_0x45c51e(0xbd)]]),this[_0x45c51e(0xd8)]({'tag':_0x45c51e(0xd9),'attributes':{'class':_0x45c51e(0xc5)},'children':this[_0x45c51e(0xf5)]}),this['on'](_0x45c51e(0xfd),()=>{const _0x262490=_0x45c51e;this[_0x262490(0xf5)][_0x262490(0xe4)](this[_0x262490(0xbd)]),this[_0x262490(0xb9)](_0x71bdb7[_0x262490(0x107)],_0x71bdb7[_0x262490(0xc8)]);});}[_0x11bf3c(0xfc)](){const _0x2b1433=_0x11bf3c;super[_0x2b1433(0xfc)]();for(const _0x400f40 of this[_0x2b1433(0xed)])this[_0x2b1433(0x109)][_0x2b1433(0xbe)](_0x400f40[_0x2b1433(0xdd)]);this[_0x2b1433(0xf6)][_0x2b1433(0xcc)](this[_0x2b1433(0xdd)]),this[_0x2b1433(0xe6)]();}[_0x11bf3c(0xfa)](){const _0x2d32d8=_0x11bf3c;super[_0x2d32d8(0xfa)](),this[_0x2d32d8(0x10f)]&&this[_0x2d32d8(0x10f)][_0x2d32d8(0xfa)]();}[_0x11bf3c(0xf0)](_0x260753){const _0x1ec330=_0x11bf3c;-0x1===_0x260753?this[_0x1ec330(0xd0)][_0x1ec330(0xd7)]():this[_0x1ec330(0xd0)][_0x1ec330(0xfe)]();}[_0x11bf3c(0xe0)](){const _0x255b99=_0x11bf3c;this[_0x255b99(0xe2)]=!0x0;}[_0x11bf3c(0xbb)](){const _0x2bb9d9=_0x11bf3c;this[_0x2bb9d9(0xe2)]=!0x1;}[_0x11bf3c(0xb6)](_0x1df148){const _0x2bd618=_0x11bf3c;this[_0x2bd618(0xf8)]||(this[_0x2bd618(0xf8)]=this[_0x2bd618(0xc3)](),this[_0x2bd618(0xf5)][_0x2bd618(0xec)]([this[_0x2bd618(0xf8)]],0x0)),this[_0x2bd618(0xd4)]=_0x1df148,this[_0x2bd618(0xcd)]=!0x0;}[_0x11bf3c(0xc7)](){const _0x3acc8f=_0x11bf3c;this[_0x3acc8f(0xcd)]=!0x1;}[_0x11bf3c(0xd3)](_0x3749d1){const _0x4c8a1f=_0x11bf3c;this[_0x4c8a1f(0xb6)](_0x3749d1);}[_0x11bf3c(0xd2)](_0x508fde){const _0x297fde=_0x11bf3c;this[_0x297fde(0xb6)](_0x508fde),this[_0x297fde(0xbd)]&&(this[_0x297fde(0xbd)][_0x297fde(0xd6)]&&(this[_0x297fde(0xbd)][_0x297fde(0xd6)][_0x297fde(0xef)]=!0x1),this[_0x297fde(0xbd)][_0x297fde(0x10a)]&&(this[_0x297fde(0xbd)][_0x297fde(0x10a)][_0x297fde(0xef)]=!0x1));}[_0x11bf3c(0x100)](_0x598e98){const _0x4cab22=_0x11bf3c,_0x34657d=this[_0x4cab22(0xe9)](),_0x1c8a2f=this[_0x4cab22(0xe5)]();_0x598e98[_0x4cab22(0xe8)][_0x4cab22(0xc0)][_0x4cab22(0xbc)][_0x4cab22(0xbe)](_0x34657d,0x2),_0x598e98[_0x4cab22(0xe8)][_0x4cab22(0xc0)][_0x4cab22(0xbc)][_0x4cab22(0xbe)](_0x1c8a2f,0x0),this[_0x4cab22(0xed)][_0x4cab22(0xec)]([_0x34657d,_0x1c8a2f]),this[_0x4cab22(0x109)][_0x4cab22(0xbe)](_0x34657d[_0x4cab22(0xdd)]),this[_0x4cab22(0x109)][_0x4cab22(0xbe)](_0x1c8a2f[_0x4cab22(0xdd)]);}[_0x11bf3c(0xf2)](_0x510714){const _0x259fbb=_0x11bf3c;this[_0x259fbb(0xfb)]=_0x510714,this[_0x259fbb(0xf5)][_0x259fbb(0xbe)](this[_0x259fbb(0xfb)]);}[_0x11bf3c(0xb3)](_0x238d95){const _0x2b59f8=_0x11bf3c,_0x206c39=this[_0x2b59f8(0xf5)][_0x2b59f8(0x108)](this[_0x2b59f8(0xfb)]);this[_0x2b59f8(0xf5)][_0x2b59f8(0xe4)](this[_0x2b59f8(0xfb)]),this[_0x2b59f8(0xfb)]=_0x238d95,this[_0x2b59f8(0xf5)][_0x2b59f8(0xbe)](this[_0x2b59f8(0xfb)],_0x206c39),this[_0x2b59f8(0xc7)](),this[_0x2b59f8(0x10f)]&&this[_0x2b59f8(0x10f)][_0x2b59f8(0xfa)](),this[_0x2b59f8(0xe6)]();}[_0x11bf3c(0xe3)](){const _0x40379d=_0x11bf3c;this[_0x40379d(0xce)]=new _0x59adc3(this[_0x40379d(0xc4)]),this[_0x40379d(0xf5)][_0x40379d(0xbe)](this[_0x40379d(0xce)]);}[_0x11bf3c(0xb9)](_0x53fbc8=!0x0,_0x5ad1a8=!0x0){const _0x346f65=_0x11bf3c;_0x53fbc8=_0x53fbc8&&!this[_0x346f65(0xf3)]&&this[_0x346f65(0xcb)][_0x346f65(0xf4)](_0x346f65(0xf9)),_0x5ad1a8=_0x5ad1a8&&this[_0x346f65(0xcb)][_0x346f65(0xf4)](_0x346f65(0x105)),this[_0x346f65(0xbd)]=new _0x3a2ca5(this[_0x346f65(0xc4)],_0x53fbc8,_0x5ad1a8),this[_0x346f65(0xbd)][_0x346f65(0xd6)]?.['on'](_0x346f65(0xc1),()=>{const _0x43ba61=_0x346f65;this[_0x43ba61(0x10e)](_0x43ba61(0xf9));}),this[_0x346f65(0xbd)][_0x346f65(0x10a)]?.['on'](_0x346f65(0xc1),()=>{const _0x2296d2=_0x346f65;this[_0x2296d2(0x10e)](_0x2296d2(0x105));}),this[_0x346f65(0xf5)][_0x346f65(0xbe)](this[_0x346f65(0xbd)]);}[_0x11bf3c(0xe9)](){const _0xcff8fc=_0x11bf3c,_0x3e3f33=new _0x3b565f(this[_0xcff8fc(0xc4)]);return _0x3e3f33[_0xcff8fc(0xba)]({'icon':_0x475f02,'tooltip':_0x380c21(this[_0xcff8fc(0xc4)],_0xcff8fc(0xde))}),_0x3e3f33['on'](_0xcff8fc(0xc1),()=>{const _0x59b9b8=_0xcff8fc;this[_0x59b9b8(0x10e)](_0x59b9b8(0xda));}),_0x3e3f33;}[_0x11bf3c(0xe5)](){const _0x4f44f9=_0x11bf3c,_0x105a97=new _0x3b565f(this[_0x4f44f9(0xc4)]);return _0x105a97[_0x4f44f9(0xba)]({'icon':_0x1c8335,'tooltip':_0x380c21(this[_0x4f44f9(0xc4)],_0x4f44f9(0xc9))}),_0x105a97['on'](_0x4f44f9(0xc1),()=>{const _0x2a2ac9=_0x4f44f9;this[_0x2a2ac9(0x10e)](_0x2a2ac9(0x106));}),_0x105a97;}[_0x11bf3c(0xc3)](){const _0x585049=_0x11bf3c,_0x477c0c=new _0x543533(this[_0x585049(0xc4)]),_0x30f397=new _0x543533(this[_0x585049(0xc4)]);return _0x30f397[_0x585049(0xd8)]({'tag':_0x585049(0x103),'attributes':{'class':['ck',_0x585049(0xe1)]},'children':[{'text':this[_0x585049(0xe7)]['to'](_0x585049(0xd4))}]}),_0x477c0c[_0x585049(0xd8)]({'tag':_0x585049(0xd9),'attributes':{'class':['ck',_0x585049(0x104),_0x585049(0xeb),this[_0x585049(0xe7)]['if'](_0x585049(0xcd),_0x585049(0x10d),_0x14f9e9=>!_0x14f9e9)]},'children':[_0x30f397]}),_0x477c0c;}[_0x11bf3c(0xea)](){const _0x443407=_0x11bf3c;this[_0x443407(0xe6)](),this[_0x443407(0x10f)]&&this[_0x443407(0x10f)][_0x443407(0xbf)]();}[_0x11bf3c(0xff)](){const _0x1032d1=_0x11bf3c;this[_0x1032d1(0x10f)]&&this[_0x1032d1(0x10f)][_0x1032d1(0x102)]();}[_0x11bf3c(0xe6)](){const _0x3f5f14=_0x11bf3c,_0x29d04e=this[_0x3f5f14(0x101)]();_0x29d04e&&!this[_0x3f5f14(0x10f)]&&(this[_0x3f5f14(0x10f)]=new _0x622d4d(_0x29d04e));}[_0x11bf3c(0x101)](){const _0x1b8395=_0x11bf3c;return this[_0x1b8395(0xfb)]instanceof _0x16f741&&this[_0x1b8395(0xfb)][_0x1b8395(0xca)][_0x1b8395(0xdd)]?this[_0x1b8395(0xfb)][_0x1b8395(0xca)][_0x1b8395(0xdd)]:null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x26d7a4=_0x58b2;function _0x3095(){var _0x566438=['221256kbYXBb','isOfficialPlugin','plugins','262551naLzjC','config','removeSelectionFromChatContext','focusPromptInput','328hGudwl','context','startConversation','90KItcLB','isPremiumPlugin','addSelectionToChatContext','ai.chat.context','6249lIDMZh','AIChat','ai.chat.models','sendMessage','2iwzuZb','requires','2324931NOhxac','1460510gUpxQC','pluginName','2091232vgOmuc','7848AQnyvO','get','1240oNAEMm','define'];_0x3095=function(){return _0x566438;};return _0x3095();}(function(_0x491993,_0x544f3d){var _0x4413ee=_0x58b2,_0x321422=_0x491993();while(!![]){try{var _0x3ed8ba=parseInt(_0x4413ee(0x83))/0x1*(-parseInt(_0x4413ee(0x76))/0x2)+parseInt(_0x4413ee(0x72))/0x3*(-parseInt(_0x4413ee(0x87))/0x4)+-parseInt(_0x4413ee(0x7e))/0x5*(-parseInt(_0x4413ee(0x7c))/0x6)+-parseInt(_0x4413ee(0x78))/0x7+parseInt(_0x4413ee(0x80))/0x8*(parseInt(_0x4413ee(0x8a))/0x9)+parseInt(_0x4413ee(0x79))/0xa+parseInt(_0x4413ee(0x7b))/0xb;if(_0x3ed8ba===_0x544f3d)break;else _0x321422['push'](_0x321422['shift']());}catch(_0x19a922){_0x321422['push'](_0x321422['shift']());}}}(_0x3095,0x29e6b));import{ContextPlugin as _0x151cbf}from'ckeditor5/src/core.js';function _0x58b2(_0x4465ae,_0x1420a1){var _0x3095be=_0x3095();return _0x58b2=function(_0x58b2b2,_0x1b7f31){_0x58b2b2=_0x58b2b2-0x70;var _0x2e9bef=_0x3095be[_0x58b2b2];return _0x2e9bef;},_0x58b2(_0x4465ae,_0x1420a1);}import{AIChatController as _0x3967a4}from'./aichatcontroller.js';import{AIEditing as _0x352009}from'../aicore/aiediting.js';import{AIChatUI as _0xf785b3}from'./aichatui.js';import{AIChatHistory as _0x336df4}from'../aichathistory/aichathistory.js';export class AIChat extends _0x151cbf{static get[_0x26d7a4(0x77)](){return[_0x3967a4,_0x352009,_0xf785b3,_0x336df4];}static get[_0x26d7a4(0x7a)](){var _0x424080=_0x26d7a4;return _0x424080(0x73);}static get[_0x26d7a4(0x81)](){return!0x0;}static get[_0x26d7a4(0x8b)](){return!0x0;}constructor(_0xe8872f){var _0x328cbb=_0x26d7a4;super(_0xe8872f),this[_0x328cbb(0x88)][_0x328cbb(0x84)][_0x328cbb(0x7f)](_0x328cbb(0x71),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x328cbb(0x88)][_0x328cbb(0x84)][_0x328cbb(0x7f)](_0x328cbb(0x74),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x26d7a4(0x70)](){var _0x3b21c1=_0x26d7a4;await this[_0x3b21c1(0x88)][_0x3b21c1(0x82)][_0x3b21c1(0x7d)](_0x3967a4)[_0x3b21c1(0x70)]();}async[_0x26d7a4(0x89)](){var _0x26b9eb=_0x26d7a4;await this[_0x26b9eb(0x88)][_0x26b9eb(0x82)][_0x26b9eb(0x7d)](_0x3967a4)[_0x26b9eb(0x89)]();}async[_0x26d7a4(0x75)]({message:_0x22ac42,quickActionData:_0x1e2d2d}){var _0x305c7d=_0x26d7a4;await this[_0x305c7d(0x88)][_0x305c7d(0x82)][_0x305c7d(0x7d)](_0x3967a4)[_0x305c7d(0x75)]({'message':_0x22ac42,'quickActionData':_0x1e2d2d});}[_0x26d7a4(0x85)](){var _0x5b95d3=_0x26d7a4;this[_0x5b95d3(0x88)][_0x5b95d3(0x82)][_0x5b95d3(0x7d)](_0x3967a4)[_0x5b95d3(0x85)]();}[_0x26d7a4(0x86)](){var _0x389d3a=_0x26d7a4;this[_0x389d3a(0x88)][_0x389d3a(0x82)][_0x389d3a(0x7d)](_0x3967a4)[_0x389d3a(0x86)]();}}
23
+ function _0xdf1d(){var _0x1ee11f=['context','7705446vqyzaU','sendMessage','requires','1309735HuazuK','isPremiumPlugin','2133858RDXmEl','7204BxVhNO','ai.chat.context','removeSelectionFromChatContext','8228066cXykYD','addSelectionToChatContext','3095bmXpHX','plugins','startConversation','37069264BDlWMw','get','focusPromptInput','pluginName','ai.chat.models','isOfficialPlugin','define','AIChat','1917218qThiIM','config'];_0xdf1d=function(){return _0x1ee11f;};return _0xdf1d();}var _0x36ded5=_0x22e2;(function(_0x1a39e0,_0x129701){var _0xb10c22=_0x22e2,_0x4e1993=_0x1a39e0();while(!![]){try{var _0x4b4638=parseInt(_0xb10c22(0x10b))/0x1+-parseInt(_0xb10c22(0x105))/0x2+-parseInt(_0xb10c22(0xf4))/0x3+-parseInt(_0xb10c22(0xf5))/0x4*(parseInt(_0xb10c22(0xfa))/0x5)+-parseInt(_0xb10c22(0x108))/0x6+-parseInt(_0xb10c22(0xf8))/0x7+parseInt(_0xb10c22(0xfd))/0x8;if(_0x4b4638===_0x129701)break;else _0x4e1993['push'](_0x4e1993['shift']());}catch(_0x2fd775){_0x4e1993['push'](_0x4e1993['shift']());}}}(_0xdf1d,0xaaa78));import{ContextPlugin as _0x31916c}from'ckeditor5/src/core.js';function _0x22e2(_0x3882e3,_0x213e42){var _0xdf1dd8=_0xdf1d();return _0x22e2=function(_0x22e205,_0x153dd4){_0x22e205=_0x22e205-0xf4;var _0x159c42=_0xdf1dd8[_0x22e205];return _0x159c42;},_0x22e2(_0x3882e3,_0x213e42);}import{AIChatController as _0x2a0adc}from'./aichatcontroller.js';import{AIEditing as _0x1238ff}from'../aicore/aiediting.js';import{AIChatUI as _0x1e8caa}from'./aichatui.js';import{AIChatHistory as _0x52a79e}from'../aichathistory/aichathistory.js';export class AIChat extends _0x31916c{static get[_0x36ded5(0x10a)](){return[_0x2a0adc,_0x1238ff,_0x1e8caa,_0x52a79e];}static get[_0x36ded5(0x100)](){var _0x513e20=_0x36ded5;return _0x513e20(0x104);}static get[_0x36ded5(0x102)](){return!0x0;}static get[_0x36ded5(0x10c)](){return!0x0;}constructor(_0x47d503){var _0x400891=_0x36ded5;super(_0x47d503),this[_0x400891(0x107)][_0x400891(0x106)][_0x400891(0x103)](_0x400891(0xf6),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x400891(0x107)][_0x400891(0x106)][_0x400891(0x103)](_0x400891(0x101),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x36ded5(0xf9)](){var _0x59f1b5=_0x36ded5;await this[_0x59f1b5(0x107)][_0x59f1b5(0xfb)][_0x59f1b5(0xfe)](_0x2a0adc)[_0x59f1b5(0xf9)]();}async[_0x36ded5(0xfc)](){var _0x488d48=_0x36ded5;await this[_0x488d48(0x107)][_0x488d48(0xfb)][_0x488d48(0xfe)](_0x2a0adc)[_0x488d48(0xfc)]();}async[_0x36ded5(0x109)]({message:_0x382664,quickActionData:_0x331724}){var _0x26b362=_0x36ded5;await this[_0x26b362(0x107)][_0x26b362(0xfb)][_0x26b362(0xfe)](_0x2a0adc)[_0x26b362(0x109)]({'message':_0x382664,'quickActionData':_0x331724});}[_0x36ded5(0xf7)](){var _0x18aa44=_0x36ded5;this[_0x18aa44(0x107)][_0x18aa44(0xfb)][_0x18aa44(0xfe)](_0x2a0adc)[_0x18aa44(0xf7)]();}[_0x36ded5(0xff)](){var _0x420867=_0x36ded5;this[_0x420867(0x107)][_0x420867(0xfb)][_0x420867(0xfe)](_0x2a0adc)[_0x420867(0xff)]();}}