@ckeditor/ckeditor5-ai 47.7.1-alpha.0 → 47.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) 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/aiactionsreply.js +1 -1
  6. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  7. package/src/aiassistant/aiassistantediting.js +1 -1
  8. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  9. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  10. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  11. package/src/aiassistant/ui/form/aiformview.js +1 -1
  12. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  13. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  14. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  15. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  16. package/src/aiballoon/aiballoon.js +1 -1
  17. package/src/aichat/aichat.js +1 -1
  18. package/src/aichat/aichatballoon.js +1 -1
  19. package/src/aichat/aichatcontroller.js +1 -1
  20. package/src/aichat/aichatui.js +1 -1
  21. package/src/aichat/model/aichatcontext.js +1 -1
  22. package/src/aichat/model/aichatconversation.js +1 -1
  23. package/src/aichat/ui/aichatballoonview.js +1 -1
  24. package/src/aichat/ui/aichatfeedview.js +1 -1
  25. package/src/aichat/ui/aichatheaderview.js +1 -1
  26. package/src/aichat/ui/aichatview.js +1 -1
  27. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  28. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  29. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  30. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  31. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  32. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  33. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  34. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  35. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  36. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  37. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  38. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  39. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  40. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  41. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  42. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  43. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  44. package/src/aichat/utils/eventnames.js +1 -1
  45. package/src/aichathistory/aichathistory.js +1 -1
  46. package/src/aichathistory/aichathistorycontroller.js +1 -1
  47. package/src/aichathistory/aichathistoryui.js +1 -1
  48. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  49. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  50. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  51. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  52. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  53. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  54. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  55. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  56. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  57. package/src/aicore/aiconnector.js +1 -1
  58. package/src/aicore/aiediting.js +1 -1
  59. package/src/aicore/model/aimodels.js +1 -1
  60. package/src/aicore/model/aireply.js +1 -1
  61. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  62. package/src/aicore/pipeline/airesponseparser.js +2 -2
  63. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  64. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  65. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  66. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  67. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  68. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  69. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  70. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  71. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  72. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  73. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  74. package/src/aicore/utils/documentrange.js +1 -1
  75. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  76. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  77. package/src/aicore/utils/htmlparser.js +1 -1
  78. package/src/aicore/utils/htmlstreamer.js +1 -1
  79. package/src/aicore/utils/scrollmanager.js +1 -1
  80. package/src/aieditorintegration/aieditorintegration.js +1 -1
  81. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  82. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  83. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  84. package/src/aiquickactions/aiquickactionsui.js +1 -1
  85. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  86. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  87. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  88. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  89. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  90. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  91. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  92. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  93. package/src/aireviewcore/aireviewcoreui.js +1 -1
  94. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  95. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  96. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  97. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  98. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  99. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  100. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  101. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  102. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  103. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  104. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  105. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  106. package/src/aireviewmode/aireviewmode.js +1 -1
  107. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  108. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  109. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  110. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  111. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  112. package/src/aitabs/aitabs.js +1 -1
  113. package/src/aitranslate/aitranslate.js +1 -1
  114. package/src/aitranslate/model/aitranslatecheck.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x59f639=_0x5d69;(function(_0xb272dc,_0x726b40){const _0x39d5f6=_0x5d69,_0x2b8437=_0xb272dc();while(!![]){try{const _0x4d2033=-parseInt(_0x39d5f6(0x9d))/0x1*(parseInt(_0x39d5f6(0xa9))/0x2)+-parseInt(_0x39d5f6(0x99))/0x3+-parseInt(_0x39d5f6(0x8e))/0x4*(parseInt(_0x39d5f6(0x89))/0x5)+parseInt(_0x39d5f6(0xb3))/0x6+-parseInt(_0x39d5f6(0xbf))/0x7+-parseInt(_0x39d5f6(0xa0))/0x8*(-parseInt(_0x39d5f6(0x96))/0x9)+parseInt(_0x39d5f6(0xbb))/0xa;if(_0x4d2033===_0x726b40)break;else _0x2b8437['push'](_0x2b8437['shift']());}catch(_0xf78c84){_0x2b8437['push'](_0x2b8437['shift']());}}}(_0x81d3,0x816bc));import{FocusTracker as _0x21da39,KeystrokeHandler as _0x236809}from'ckeditor5/src/utils.js';import{View as _0x16807e,FocusCycler as _0x17737f,createLabeledTextarea as _0x4e18db}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x453674,AIFormToolbarViewMainActionLabel as _0x5be1fc}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x8f50a}from'./aiformcontentarea.js';import{AIFormErrorView as _0x1a192b}from'./aiformerrorview.js';import{AIFormPromptView as _0x30e1a0}from'./aiformpromptview.js';import{AIHistoryListView as _0x2cf672}from'./aihistorylistview.js';import{AIHistoryListItemView as _0xab7f43}from'./aihistorylistitemview.js';import{PromptHistory as _0x405f27}from'./prompthistory.js';function _0x81d3(){const _0x3709c9=['listenTo','set','Ask\x20AI\x20to\x20edit\x20or\x20generate','395ntuKqJ','bindTo','element','shift\x20+\x20tab','execute','20092mmjmRY','search','focusTracker','_createPromptView','errorView','bind','label','value','1341vDdpCQ','submit','insertButton','1839903QYsoCz','AI_ERROR_FAILED','reset','tryAgainEvent','277wEctuy','chain','text','11624yuJxmJ','stopButton','ck-ai-form','REPLACE','fieldView','contentArea','clearHistory','toolbar','_promptHistory','982BSjUYs','replaceContent','startProcessing','historyGroupView','_createToolbar','div','clear','add','Ask\x20AI\x20to\x20improve\x20generated\x20text','copyButtonView','3772194veBuAT','ck-hidden','tryAgainButton','locale','trim','fire','bindTemplate','queryView','11649040vHugIY','isError','handleError','focus','2337069wIOSfV','focusLast','focusFirst','prompt','ck-ai-form-content','Empty\x20history','finishProcessing','isProcessing','isVisible','submitPrompt','promptView','isEnabled','items','createCollection','mainAction','focusCycler','_focusables','stopProcessing','insertContentBelow','setTemplate','delegate','tab','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','high','render','replaceButton','keystrokes','_createHistoryView'];_0x81d3=function(){return _0x3709c9;};return _0x81d3();}import{getTranslation as _0x2048da}from'../../utils/common-translations.js';import{escape as _0x24cebd}from'es-toolkit/compat';function _0x5d69(_0x35f18d,_0x335732){const _0x81d3af=_0x81d3();return _0x5d69=function(_0x5d69e7,_0x57d9bd){_0x5d69e7=_0x5d69e7-0x87;let _0x5870fa=_0x81d3af[_0x5d69e7];return _0x5870fa;},_0x5d69(_0x35f18d,_0x335732);}export class AIFormView extends _0x16807e{[_0x59f639(0x90)];[_0x59f639(0xd9)];[_0x59f639(0xa5)];[_0x59f639(0xa7)];[_0x59f639(0xc9)];[_0x59f639(0x92)];[_0x59f639(0xcf)];[_0x59f639(0xce)];[_0x59f639(0xa8)];constructor(_0x35b651,_0x17eb45,_0x5c9082=''){const _0xdf9c21=_0x59f639;super(_0x35b651),this[_0xdf9c21(0x87)](_0xdf9c21(0xca),!0x0),this[_0xdf9c21(0x87)](_0xdf9c21(0xc6),!0x1),this[_0xdf9c21(0x87)](_0xdf9c21(0xc2),''),this[_0xdf9c21(0x87)](_0xdf9c21(0x95),''),this[_0xdf9c21(0x87)](_0xdf9c21(0xbc),!0x1),this[_0xdf9c21(0x87)](_0xdf9c21(0xcd),_0x5be1fc[_0xdf9c21(0xa3)]),this[_0xdf9c21(0xa8)]=new _0x405f27(),this[_0xdf9c21(0x92)]=new _0x1a192b(_0x35b651),this[_0xdf9c21(0xa5)]=new _0x8f50a(_0x35b651,_0x5c9082),this[_0xdf9c21(0xa5)][_0xdf9c21(0x93)](_0xdf9c21(0xc6))['to'](this),this[_0xdf9c21(0xa5)][_0xdf9c21(0x93)](_0xdf9c21(0x95))['to'](this),this[_0xdf9c21(0xa7)]=this[_0xdf9c21(0xad)](),this[_0xdf9c21(0xa7)][_0xdf9c21(0x93)](_0xdf9c21(0xcd))['to'](this),this[_0xdf9c21(0xc9)]=this[_0xdf9c21(0x91)](),this[_0xdf9c21(0x90)]=new _0x21da39(),this[_0xdf9c21(0xd9)]=new _0x236809(),this[_0xdf9c21(0xcf)]=this[_0xdf9c21(0xcc)]([this[_0xdf9c21(0xa5)],this[_0xdf9c21(0xa5)][_0xdf9c21(0xb2)],this[_0xdf9c21(0xa7)],this[_0xdf9c21(0xc9)]]),this[_0xdf9c21(0xce)]=new _0x17737f({'focusables':this[_0xdf9c21(0xcf)],'focusTracker':this[_0xdf9c21(0x90)],'keystrokeHandler':this[_0xdf9c21(0xd9)],'actions':{'focusPrevious':_0xdf9c21(0x8c),'focusNext':_0xdf9c21(0xd4)}}),this[_0xdf9c21(0xce)][_0xdf9c21(0x9e)](this[_0xdf9c21(0xc9)][_0xdf9c21(0xce)]),this[_0xdf9c21(0xc9)][_0xdf9c21(0xba)][_0xdf9c21(0xa4)][_0xdf9c21(0x93)](_0xdf9c21(0x95))['to'](this,_0xdf9c21(0xc2));const _0xc6c1fe=this[_0xdf9c21(0xb9)];this[_0xdf9c21(0xd2)]({'tag':_0xdf9c21(0xae),'attributes':{'class':['ck',_0xdf9c21(0xa2),_0x17eb45],'tabindex':'-1'},'children':[{'tag':_0xdf9c21(0xae),'attributes':{'class':['ck',_0xdf9c21(0xc3)]},'children':[{'tag':_0xdf9c21(0xae),'attributes':{'class':[_0xc6c1fe['if'](_0xdf9c21(0xbc),_0xdf9c21(0xb4),_0x6b5d65=>!_0x6b5d65)]},'children':[this[_0xdf9c21(0x92)]]},this[_0xdf9c21(0xa5)],this[_0xdf9c21(0xa7)],this[_0xdf9c21(0xc9)]]}]});}[_0x59f639(0xd7)](){const _0x2292b6=_0x59f639;super[_0x2292b6(0xd7)](),this[_0x2292b6(0x90)][_0x2292b6(0xb0)](this[_0x2292b6(0xa5)][_0x2292b6(0x8b)]),this[_0x2292b6(0x90)][_0x2292b6(0xb0)](this[_0x2292b6(0xa5)][_0x2292b6(0xb2)][_0x2292b6(0x8b)]),this[_0x2292b6(0x90)][_0x2292b6(0xb0)](this[_0x2292b6(0xa7)][_0x2292b6(0x8b)]),this[_0x2292b6(0x90)][_0x2292b6(0xb0)](this[_0x2292b6(0xc9)][_0x2292b6(0x8b)]),this[_0x2292b6(0xd9)][_0x2292b6(0xdb)](this[_0x2292b6(0x8b)]);}[_0x59f639(0xbe)](_0x326f34=0x1){const _0x502204=_0x59f639;-0x1===_0x326f34?this[_0x502204(0xce)][_0x502204(0xc0)]():this[_0x502204(0xce)][_0x502204(0xc1)]();}[_0x59f639(0x9b)](){const _0x5ab5bb=_0x59f639;this[_0x5ab5bb(0xc2)]='',this[_0x5ab5bb(0x95)]='',this[_0x5ab5bb(0xbc)]=!0x1,this[_0x5ab5bb(0xc9)][_0x5ab5bb(0x9b)](),this[_0x5ab5bb(0xa5)][_0x5ab5bb(0xc7)]=!0x1,this[_0x5ab5bb(0xa7)][_0x5ab5bb(0xc7)]=!0x1;}[_0x59f639(0x91)](){const _0x59b06d=_0x59f639,_0x16ea5c=this[_0x59b06d(0xb6)],_0x45e1d5=new _0x30e1a0(_0x16ea5c,{'queryView':{'label':_0x2048da(_0x16ea5c,_0x59b06d(0x88)),'creator':_0x4e18db,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x2048da(_0x16ea5c,_0x59b06d(0xc4)),'secondary':_0x2048da(_0x16ea5c,_0x59b06d(0xd5))}}},'filteredView':this[_0x59b06d(0xda)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x45e1d5[_0x59b06d(0x93)](_0x59b06d(0xca))['to'](this,_0x59b06d(0xca),this,_0x59b06d(0xc6),(_0x3d917c,_0x30c29e)=>_0x3d917c&&!_0x30c29e),this[_0x59b06d(0xdb)](_0x45e1d5,_0x59b06d(0x97),(_0x4e1917,_0x142223)=>{const _0x50785c=_0x59b06d;this[_0x50785c(0xc2)]=_0x142223;const _0x4683d5=_0x24cebd(_0x142223);this[_0x50785c(0xb8)](_0x50785c(0xc8),_0x4683d5),_0x142223[_0x50785c(0xb7)]()&&this[_0x50785c(0xa8)][_0x50785c(0xb0)]({'prompt':_0x4683d5},0x0);},{'priority':_0x59b06d(0xd6)}),_0x45e1d5;}[_0x59f639(0xda)](){const _0x3eb42e=_0x59f639,_0x425e55=new _0x2cf672(this[_0x3eb42e(0xb6)]);return _0x425e55[_0x3eb42e(0xac)][_0x3eb42e(0xcb)][_0x3eb42e(0x8a)](this[_0x3eb42e(0xa8)])['as'](_0xab7f43),_0x425e55['on'](_0x3eb42e(0xa6),()=>{const _0x24c76a=_0x3eb42e;this[_0x24c76a(0xa8)][_0x24c76a(0xaf)](),this[_0x24c76a(0xc9)][_0x24c76a(0x8f)](''),this[_0x24c76a(0xc9)][_0x24c76a(0xbe)]();}),_0x425e55;}[_0x59f639(0xad)](){const _0x41c237=_0x59f639,_0x4873de=new _0x453674(this[_0x41c237(0xb6)]);return _0x4873de[_0x41c237(0xd8)][_0x41c237(0x93)](_0x41c237(0xca))['to'](this,_0x41c237(0xca),this,_0x41c237(0xc6),this,_0x41c237(0x95),(_0x239d9d,_0x39414f,_0x2dda43)=>_0x239d9d&&!_0x39414f&&!!_0x2dda43),_0x4873de[_0x41c237(0xd8)][_0x41c237(0xd3)](_0x41c237(0x8d))['to'](this,_0x41c237(0xaa)),_0x4873de[_0x41c237(0x98)][_0x41c237(0x93)](_0x41c237(0xca))['to'](this,_0x41c237(0xca),this,_0x41c237(0xc6),this,_0x41c237(0x95),(_0x22c69c,_0x2ea539,_0x57150a)=>_0x22c69c&&!_0x2ea539&&!!_0x57150a),_0x4873de[_0x41c237(0x98)][_0x41c237(0xd3)](_0x41c237(0x8d))['to'](this,_0x41c237(0xd1)),_0x4873de[_0x41c237(0xb5)][_0x41c237(0x93)](_0x41c237(0xca))['to'](this,_0x41c237(0xca),this,_0x41c237(0xc6),(_0x5dc920,_0x511c07)=>_0x5dc920&&!_0x511c07),_0x4873de[_0x41c237(0xb5)][_0x41c237(0xd3)](_0x41c237(0x8d))['to'](this,_0x41c237(0x9c)),_0x4873de[_0x41c237(0xa1)][_0x41c237(0x93)](_0x41c237(0xca))['to'](this,_0x41c237(0xc6)),_0x4873de[_0x41c237(0xa1)][_0x41c237(0xd3)](_0x41c237(0x8d))['to'](this,_0x41c237(0xd0)),_0x4873de;}[_0x59f639(0xab)](){const _0x484938=_0x59f639;this[_0x484938(0x95)]='',this[_0x484938(0xbc)]=!0x1,this[_0x484938(0xc6)]=!0x0,this[_0x484938(0xa5)][_0x484938(0xc7)]=!0x0,this[_0x484938(0xa7)][_0x484938(0xc7)]=!0x0,this[_0x484938(0xa5)][_0x484938(0xbe)]();}[_0x59f639(0xc5)](){const _0x201fe1=_0x59f639,_0xd4ebb=this[_0x201fe1(0xb6)];this[_0x201fe1(0xc6)]=!0x1,this[_0x201fe1(0xc2)]='',this[_0x201fe1(0xc9)][_0x201fe1(0x9b)](),this[_0x201fe1(0x95)]&&(this[_0x201fe1(0xc9)][_0x201fe1(0xba)][_0x201fe1(0x94)]=_0x2048da(_0xd4ebb,_0x201fe1(0xb1)));}[_0x59f639(0xbd)](_0x267e2f){const _0x625746=_0x59f639,_0x3e16ed=this[_0x625746(0xb6)];this[_0x625746(0xc5)](),this[_0x625746(0xbc)]=!0x0,this[_0x625746(0x92)][_0x625746(0x9f)]=_0x267e2f||_0x2048da(_0x3e16ed,_0x625746(0x9a)),this[_0x625746(0x95)]||(this[_0x625746(0xa5)][_0x625746(0xc7)]=!0x1);}}
23
+ const _0x14b28c=_0x565f;(function(_0xa7063e,_0x24206f){const _0x50bf6f=_0x565f,_0x425978=_0xa7063e();while(!![]){try{const _0x1cd016=-parseInt(_0x50bf6f(0x20f))/0x1*(parseInt(_0x50bf6f(0x20d))/0x2)+-parseInt(_0x50bf6f(0x1e3))/0x3*(parseInt(_0x50bf6f(0x215))/0x4)+-parseInt(_0x50bf6f(0x1fa))/0x5*(-parseInt(_0x50bf6f(0x239))/0x6)+parseInt(_0x50bf6f(0x205))/0x7*(-parseInt(_0x50bf6f(0x235))/0x8)+parseInt(_0x50bf6f(0x210))/0x9*(-parseInt(_0x50bf6f(0x207))/0xa)+parseInt(_0x50bf6f(0x22e))/0xb*(-parseInt(_0x50bf6f(0x1ff))/0xc)+-parseInt(_0x50bf6f(0x1ef))/0xd*(-parseInt(_0x50bf6f(0x21b))/0xe);if(_0x1cd016===_0x24206f)break;else _0x425978['push'](_0x425978['shift']());}catch(_0x113882){_0x425978['push'](_0x425978['shift']());}}}(_0x2c5f,0xf097a));import{FocusTracker as _0x3c29e9,KeystrokeHandler as _0x132c77}from'ckeditor5/src/utils.js';import{View as _0x2cdfd8,FocusCycler as _0x1882b9,createLabeledTextarea as _0x6018fe}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x309bcb,AIFormToolbarViewMainActionLabel as _0x3a1d85}from'./aiformtoolbarview.js';function _0x565f(_0x3693de,_0x3b05da){const _0x2c5f64=_0x2c5f();return _0x565f=function(_0x565f36,_0x3f76f5){_0x565f36=_0x565f36-0x1e1;let _0x3fa038=_0x2c5f64[_0x565f36];return _0x3fa038;},_0x565f(_0x3693de,_0x3b05da);}import{AIFormContentArea as _0x558be4}from'./aiformcontentarea.js';import{AIFormErrorView as _0x1ed87c}from'./aiformerrorview.js';import{AIFormPromptView as _0x32a412}from'./aiformpromptview.js';import{AIHistoryListView as _0x42c8ef}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x2e17bc}from'./aihistorylistitemview.js';import{PromptHistory as _0x1a7e9a}from'./prompthistory.js';import{getTranslation as _0x12b5de}from'../../utils/common-translations.js';function _0x2c5f(){const _0x461099=['errorView','_createToolbar','setTemplate','listenTo','84zKEUJt','shift\x20+\x20tab','fieldView','execute','submitPrompt','isEnabled','7IDLXbh','focusCycler','274400LaAedG','stopProcessing','delegate','_createHistoryView','insertButton','isProcessing','843196ICWOij','replaceButton','2IEBPyi','549LpDbIJ','isVisible','finishProcessing','chain','_focusables','4SAPyKq','element','clearHistory','label','Ask\x20AI\x20to\x20edit\x20or\x20generate','submit','2530388yIoyKM','startProcessing','clear','tryAgainButton','search','Empty\x20history','ck-ai-form-content','focusTracker','isError','value','items','add','fire','trim','historyGroupView','high','ck-ai-form','promptView','contentArea','2282379xgIfsL','render','createCollection','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','tab','focusLast','ck-hidden','4880936zqghVI','mainAction','set','queryView','7998uNKsBL','replaceContent','bind','1205607nLzFBf','keystrokes','text','bindTo','locale','prompt','reset','copyButtonView','div','focusFirst','focus','Ask\x20AI\x20to\x20improve\x20generated\x20text','403fnUFwx','stopButton','insertContentBelow','bindTemplate','REPLACE','_createPromptView','_promptHistory','toolbar','AI_ERROR_FAILED','tryAgainEvent','handleError','1365vTYoCa'];_0x2c5f=function(){return _0x461099;};return _0x2c5f();}import{escape as _0xf170da}from'es-toolkit/compat';export class AIFormView extends _0x2cdfd8{[_0x14b28c(0x222)];[_0x14b28c(0x1e4)];[_0x14b28c(0x22d)];[_0x14b28c(0x1f6)];[_0x14b28c(0x22c)];[_0x14b28c(0x1fb)];[_0x14b28c(0x214)];[_0x14b28c(0x206)];[_0x14b28c(0x1f5)];constructor(_0x10d524,_0x3c83b3,_0x3ebe4e=''){const _0x17dac6=_0x14b28c;super(_0x10d524),this[_0x17dac6(0x237)](_0x17dac6(0x204),!0x0),this[_0x17dac6(0x237)](_0x17dac6(0x20c),!0x1),this[_0x17dac6(0x237)](_0x17dac6(0x1e8),''),this[_0x17dac6(0x237)](_0x17dac6(0x224),''),this[_0x17dac6(0x237)](_0x17dac6(0x223),!0x1),this[_0x17dac6(0x237)](_0x17dac6(0x236),_0x3a1d85[_0x17dac6(0x1f3)]),this[_0x17dac6(0x1f5)]=new _0x1a7e9a(),this[_0x17dac6(0x1fb)]=new _0x1ed87c(_0x10d524),this[_0x17dac6(0x22d)]=new _0x558be4(_0x10d524,_0x3ebe4e),this[_0x17dac6(0x22d)][_0x17dac6(0x1e2)](_0x17dac6(0x20c))['to'](this),this[_0x17dac6(0x22d)][_0x17dac6(0x1e2)](_0x17dac6(0x224))['to'](this),this[_0x17dac6(0x1f6)]=this[_0x17dac6(0x1fc)](),this[_0x17dac6(0x1f6)][_0x17dac6(0x1e2)](_0x17dac6(0x236))['to'](this),this[_0x17dac6(0x22c)]=this[_0x17dac6(0x1f4)](),this[_0x17dac6(0x222)]=new _0x3c29e9(),this[_0x17dac6(0x1e4)]=new _0x132c77(),this[_0x17dac6(0x214)]=this[_0x17dac6(0x230)]([this[_0x17dac6(0x22d)],this[_0x17dac6(0x22d)][_0x17dac6(0x1ea)],this[_0x17dac6(0x1f6)],this[_0x17dac6(0x22c)]]),this[_0x17dac6(0x206)]=new _0x1882b9({'focusables':this[_0x17dac6(0x214)],'focusTracker':this[_0x17dac6(0x222)],'keystrokeHandler':this[_0x17dac6(0x1e4)],'actions':{'focusPrevious':_0x17dac6(0x200),'focusNext':_0x17dac6(0x232)}}),this[_0x17dac6(0x206)][_0x17dac6(0x213)](this[_0x17dac6(0x22c)][_0x17dac6(0x206)]),this[_0x17dac6(0x22c)][_0x17dac6(0x238)][_0x17dac6(0x201)][_0x17dac6(0x1e2)](_0x17dac6(0x224))['to'](this,_0x17dac6(0x1e8));const _0x3edb17=this[_0x17dac6(0x1f2)];this[_0x17dac6(0x1fd)]({'tag':_0x17dac6(0x1eb),'attributes':{'class':['ck',_0x17dac6(0x22b),_0x3c83b3],'tabindex':'-1'},'children':[{'tag':_0x17dac6(0x1eb),'attributes':{'class':['ck',_0x17dac6(0x221)]},'children':[{'tag':_0x17dac6(0x1eb),'attributes':{'class':[_0x3edb17['if'](_0x17dac6(0x223),_0x17dac6(0x234),_0x324256=>!_0x324256)]},'children':[this[_0x17dac6(0x1fb)]]},this[_0x17dac6(0x22d)],this[_0x17dac6(0x1f6)],this[_0x17dac6(0x22c)]]}]});}[_0x14b28c(0x22f)](){const _0x5d322a=_0x14b28c;super[_0x5d322a(0x22f)](),this[_0x5d322a(0x222)][_0x5d322a(0x226)](this[_0x5d322a(0x22d)][_0x5d322a(0x216)]),this[_0x5d322a(0x222)][_0x5d322a(0x226)](this[_0x5d322a(0x22d)][_0x5d322a(0x1ea)][_0x5d322a(0x216)]),this[_0x5d322a(0x222)][_0x5d322a(0x226)](this[_0x5d322a(0x1f6)][_0x5d322a(0x216)]),this[_0x5d322a(0x222)][_0x5d322a(0x226)](this[_0x5d322a(0x22c)][_0x5d322a(0x216)]),this[_0x5d322a(0x1e4)][_0x5d322a(0x1fe)](this[_0x5d322a(0x216)]);}[_0x14b28c(0x1ed)](_0x36e4b8=0x1){const _0xe350f2=_0x14b28c;-0x1===_0x36e4b8?this[_0xe350f2(0x206)][_0xe350f2(0x233)]():this[_0xe350f2(0x206)][_0xe350f2(0x1ec)]();}[_0x14b28c(0x1e9)](){const _0x439d91=_0x14b28c;this[_0x439d91(0x1e8)]='',this[_0x439d91(0x224)]='',this[_0x439d91(0x223)]=!0x1,this[_0x439d91(0x22c)][_0x439d91(0x1e9)](),this[_0x439d91(0x22d)][_0x439d91(0x211)]=!0x1,this[_0x439d91(0x1f6)][_0x439d91(0x211)]=!0x1;}[_0x14b28c(0x1f4)](){const _0x53c1b9=_0x14b28c,_0x69704=this[_0x53c1b9(0x1e7)],_0x56e9c4=new _0x32a412(_0x69704,{'queryView':{'label':_0x12b5de(_0x69704,_0x53c1b9(0x219)),'creator':_0x6018fe,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x12b5de(_0x69704,_0x53c1b9(0x220)),'secondary':_0x12b5de(_0x69704,_0x53c1b9(0x231))}}},'filteredView':this[_0x53c1b9(0x20a)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x56e9c4[_0x53c1b9(0x1e2)](_0x53c1b9(0x204))['to'](this,_0x53c1b9(0x204),this,_0x53c1b9(0x20c),(_0x5ea266,_0x1de9ed)=>_0x5ea266&&!_0x1de9ed),this[_0x53c1b9(0x1fe)](_0x56e9c4,_0x53c1b9(0x21a),(_0x400414,_0x1399fa)=>{const _0x4a08db=_0x53c1b9;this[_0x4a08db(0x1e8)]=_0x1399fa;const _0x4f870e=_0xf170da(_0x1399fa);this[_0x4a08db(0x227)](_0x4a08db(0x203),_0x4f870e),_0x1399fa[_0x4a08db(0x228)]()&&this[_0x4a08db(0x1f5)][_0x4a08db(0x226)]({'prompt':_0x4f870e},0x0);},{'priority':_0x53c1b9(0x22a)}),_0x56e9c4;}[_0x14b28c(0x20a)](){const _0x1f6603=_0x14b28c,_0x46d1cb=new _0x42c8ef(this[_0x1f6603(0x1e7)]);return _0x46d1cb[_0x1f6603(0x229)][_0x1f6603(0x225)][_0x1f6603(0x1e6)](this[_0x1f6603(0x1f5)])['as'](_0x2e17bc),_0x46d1cb['on'](_0x1f6603(0x217),()=>{const _0x18f1f8=_0x1f6603;this[_0x18f1f8(0x1f5)][_0x18f1f8(0x21d)](),this[_0x18f1f8(0x22c)][_0x18f1f8(0x21f)](''),this[_0x18f1f8(0x22c)][_0x18f1f8(0x1ed)]();}),_0x46d1cb;}[_0x14b28c(0x1fc)](){const _0x30dbc7=_0x14b28c,_0x12789b=new _0x309bcb(this[_0x30dbc7(0x1e7)]);return _0x12789b[_0x30dbc7(0x20e)][_0x30dbc7(0x1e2)](_0x30dbc7(0x204))['to'](this,_0x30dbc7(0x204),this,_0x30dbc7(0x20c),this,_0x30dbc7(0x224),(_0x4f8412,_0x65f0d6,_0x418b1a)=>_0x4f8412&&!_0x65f0d6&&!!_0x418b1a),_0x12789b[_0x30dbc7(0x20e)][_0x30dbc7(0x209)](_0x30dbc7(0x202))['to'](this,_0x30dbc7(0x1e1)),_0x12789b[_0x30dbc7(0x20b)][_0x30dbc7(0x1e2)](_0x30dbc7(0x204))['to'](this,_0x30dbc7(0x204),this,_0x30dbc7(0x20c),this,_0x30dbc7(0x224),(_0x75492c,_0xce5ec4,_0x3949cc)=>_0x75492c&&!_0xce5ec4&&!!_0x3949cc),_0x12789b[_0x30dbc7(0x20b)][_0x30dbc7(0x209)](_0x30dbc7(0x202))['to'](this,_0x30dbc7(0x1f1)),_0x12789b[_0x30dbc7(0x21e)][_0x30dbc7(0x1e2)](_0x30dbc7(0x204))['to'](this,_0x30dbc7(0x204),this,_0x30dbc7(0x20c),(_0x5136ec,_0x29a98b)=>_0x5136ec&&!_0x29a98b),_0x12789b[_0x30dbc7(0x21e)][_0x30dbc7(0x209)](_0x30dbc7(0x202))['to'](this,_0x30dbc7(0x1f8)),_0x12789b[_0x30dbc7(0x1f0)][_0x30dbc7(0x1e2)](_0x30dbc7(0x204))['to'](this,_0x30dbc7(0x20c)),_0x12789b[_0x30dbc7(0x1f0)][_0x30dbc7(0x209)](_0x30dbc7(0x202))['to'](this,_0x30dbc7(0x208)),_0x12789b;}[_0x14b28c(0x21c)](){const _0x33eccf=_0x14b28c;this[_0x33eccf(0x224)]='',this[_0x33eccf(0x223)]=!0x1,this[_0x33eccf(0x20c)]=!0x0,this[_0x33eccf(0x22d)][_0x33eccf(0x211)]=!0x0,this[_0x33eccf(0x1f6)][_0x33eccf(0x211)]=!0x0,this[_0x33eccf(0x22d)][_0x33eccf(0x1ed)]();}[_0x14b28c(0x212)](){const _0x3fed2e=_0x14b28c,_0x4cd30e=this[_0x3fed2e(0x1e7)];this[_0x3fed2e(0x20c)]=!0x1,this[_0x3fed2e(0x1e8)]='',this[_0x3fed2e(0x22c)][_0x3fed2e(0x1e9)](),this[_0x3fed2e(0x224)]&&(this[_0x3fed2e(0x22c)][_0x3fed2e(0x238)][_0x3fed2e(0x218)]=_0x12b5de(_0x4cd30e,_0x3fed2e(0x1ee)));}[_0x14b28c(0x1f9)](_0x2601b5){const _0x484586=_0x14b28c,_0x35440c=this[_0x484586(0x1e7)];this[_0x484586(0x212)](),this[_0x484586(0x223)]=!0x0,this[_0x484586(0x1fb)][_0x484586(0x1e5)]=_0x2601b5||_0x12b5de(_0x35440c,_0x484586(0x1f7)),this[_0x484586(0x224)]||(this[_0x484586(0x22d)][_0x484586(0x211)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x1de860,_0x18b73f){const _0x240555=_0x1f06,_0x59673b=_0x1de860();while(!![]){try{const _0x37265c=parseInt(_0x240555(0x177))/0x1*(-parseInt(_0x240555(0x17f))/0x2)+-parseInt(_0x240555(0x17a))/0x3+parseInt(_0x240555(0x17c))/0x4+-parseInt(_0x240555(0x173))/0x5*(-parseInt(_0x240555(0x170))/0x6)+parseInt(_0x240555(0x171))/0x7+parseInt(_0x240555(0x174))/0x8+parseInt(_0x240555(0x175))/0x9*(parseInt(_0x240555(0x178))/0xa);if(_0x37265c===_0x18b73f)break;else _0x59673b['push'](_0x59673b['shift']());}catch(_0x4927aa){_0x59673b['push'](_0x59673b['shift']());}}}(_0x2a93,0xd5265));import{ListItemView as _0x11c682,ButtonView as _0x49ec83,ButtonLabelView as _0x19e1f}from'ckeditor5/src/ui.js';function _0x1f06(_0x3df0e3,_0x1a625){const _0x2a9396=_0x2a93();return _0x1f06=function(_0x1f06d3,_0x2f6094){_0x1f06d3=_0x1f06d3-0x170;let _0x321264=_0x2a9396[_0x1f06d3];return _0x321264;},_0x1f06(_0x3df0e3,_0x1a625);}import{unescape as _0x37bc5d}from'es-toolkit/compat';function _0x2a93(){const _0x4cbf17=['prompt','2264214sldwXm','4935959jHWAQz','locale','10zCJOLt','2631280PkZtvY','8191683ChEBlj','set','271wlvQVn','10EyWfvq','add','3128571KmQfzI','fire','12468yJSqOb','execute','children','5802xAxifD'];_0x2a93=function(){return _0x4cbf17;};return _0x2a93();}export class AIHistoryListItemView extends _0x11c682{constructor(_0x25c633){const _0x4d10d0=_0x1f06;super();const _0x4a8456=new _0x19e1f(),_0x299c9a=new _0x49ec83(this[_0x4d10d0(0x172)],_0x4a8456);this[_0x4d10d0(0x17e)][_0x4d10d0(0x179)](_0x299c9a),_0x299c9a[_0x4d10d0(0x176)]({'label':_0x25c633[_0x4d10d0(0x180)],'withText':!0x0}),_0x299c9a['on'](_0x4d10d0(0x17d),()=>{const _0x4e4ebb=_0x4d10d0;this[_0x4e4ebb(0x17b)](_0x4e4ebb(0x17d),{'value':_0x37bc5d(_0x25c633[_0x4e4ebb(0x180)])});});}}
23
+ (function(_0x29f0bd,_0x510b61){const _0x1e28ba=_0x179c,_0x585f67=_0x29f0bd();while(!![]){try{const _0x48ed6f=parseInt(_0x1e28ba(0x1fa))/0x1+-parseInt(_0x1e28ba(0x1f5))/0x2*(parseInt(_0x1e28ba(0x1fc))/0x3)+-parseInt(_0x1e28ba(0x1f0))/0x4*(-parseInt(_0x1e28ba(0x1f7))/0x5)+parseInt(_0x1e28ba(0x1f6))/0x6*(parseInt(_0x1e28ba(0x200))/0x7)+parseInt(_0x1e28ba(0x1f2))/0x8+-parseInt(_0x1e28ba(0x1f4))/0x9*(-parseInt(_0x1e28ba(0x1ff))/0xa)+-parseInt(_0x1e28ba(0x1f3))/0xb;if(_0x48ed6f===_0x510b61)break;else _0x585f67['push'](_0x585f67['shift']());}catch(_0x35c835){_0x585f67['push'](_0x585f67['shift']());}}}(_0x10f1,0x29ba7));import{ListItemView as _0x56f197,ButtonView as _0x3078cd,ButtonLabelView as _0x329b92}from'ckeditor5/src/ui.js';import{unescape as _0x1f5a32}from'es-toolkit/compat';function _0x179c(_0x30492b,_0x28eb3b){const _0x10f126=_0x10f1();return _0x179c=function(_0x179c05,_0x2dc393){_0x179c05=_0x179c05-0x1f0;let _0x2ac73f=_0x10f126[_0x179c05];return _0x2ac73f;},_0x179c(_0x30492b,_0x28eb3b);}function _0x10f1(){const _0x2d899a=['208172ObbSwi','locale','1320536NvHjnb','6159384OJdQZG','153ZZGigK','4JBWKkp','18CJfrSk','25QkdkpC','execute','set','187236iWWzVA','prompt','180828CrLNjk','children','fire','25430QkVNPL','456554XwZqyt','add'];_0x10f1=function(){return _0x2d899a;};return _0x10f1();}export class AIHistoryListItemView extends _0x56f197{constructor(_0x337cd6){const _0x49020a=_0x179c;super();const _0x349eb8=new _0x329b92(),_0x2fc8ef=new _0x3078cd(this[_0x49020a(0x1f1)],_0x349eb8);this[_0x49020a(0x1fd)][_0x49020a(0x201)](_0x2fc8ef),_0x2fc8ef[_0x49020a(0x1f9)]({'label':_0x337cd6[_0x49020a(0x1fb)],'withText':!0x0}),_0x2fc8ef['on'](_0x49020a(0x1f8),()=>{const _0x5959ad=_0x49020a;this[_0x5959ad(0x1fe)](_0x5959ad(0x1f8),{'value':_0x1f5a32(_0x337cd6[_0x5959ad(0x1fb)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2457b5=_0x5791;(function(_0xfbb2b0,_0x5b7f8a){const _0xfd095=_0x5791,_0x1857fb=_0xfbb2b0();while(!![]){try{const _0x3d4147=parseInt(_0xfd095(0x166))/0x1+-parseInt(_0xfd095(0x16b))/0x2*(parseInt(_0xfd095(0x178))/0x3)+parseInt(_0xfd095(0x15e))/0x4*(parseInt(_0xfd095(0x169))/0x5)+parseInt(_0xfd095(0x179))/0x6+-parseInt(_0xfd095(0x167))/0x7*(parseInt(_0xfd095(0x170))/0x8)+-parseInt(_0xfd095(0x173))/0x9+-parseInt(_0xfd095(0x16e))/0xa*(-parseInt(_0xfd095(0x171))/0xb);if(_0x3d4147===_0x5b7f8a)break;else _0x1857fb['push'](_0x1857fb['shift']());}catch(_0x30156a){_0x1857fb['push'](_0x1857fb['shift']());}}}(_0x23e3,0x55577));import{ListView as _0x1a6661,ListItemGroupView as _0x48c423,ButtonView as _0x1816ab}from'ckeditor5/src/ui.js';function _0x23e3(){const _0xd3b47a=['fire','2260ofAHEr','clearHistoryButton','773972ArIVMT','filter','label','2062910cRVctg','clearHistory','40IYaUpC','55SFvPba','_createClearHistoryButton','5450481QmKJfL','items','Prompt\x20history','add','delegate','3GCaJzn','982038tkJcaK','872centwR','children','Clear','execute','historyGroupView','set','length','locale','645920yyLxOM','836402WECGDv'];_0x23e3=function(){return _0xd3b47a;};return _0x23e3();}function _0x5791(_0x43dd5d,_0x4d4361){const _0x23e32c=_0x23e3();return _0x5791=function(_0x5791b8,_0x3e7562){_0x5791b8=_0x5791b8-0x15e;let _0x50241a=_0x23e32c[_0x5791b8];return _0x50241a;},_0x5791(_0x43dd5d,_0x4d4361);}import{getTranslation as _0x5ef816}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x1a6661{[_0x2457b5(0x162)];[_0x2457b5(0x16a)];constructor(_0x5ecc23){const _0x2080af=_0x2457b5;super(_0x5ecc23),this[_0x2080af(0x16a)]=this[_0x2080af(0x172)](),this[_0x2080af(0x162)]=new _0x48c423(),this[_0x2080af(0x162)][_0x2080af(0x15f)][_0x2080af(0x176)](this[_0x2080af(0x16a)],0x1),this[_0x2080af(0x162)][_0x2080af(0x16d)]=_0x5ef816(_0x5ecc23,_0x2080af(0x175)),this[_0x2080af(0x162)][_0x2080af(0x174)][_0x2080af(0x177)](_0x2080af(0x161))['to'](this),this[_0x2080af(0x174)][_0x2080af(0x176)](this[_0x2080af(0x162)]);}[_0x2457b5(0x16c)](){const _0x1e95d5=_0x2457b5;let _0x2a6c86=0x0;for(const _0x474cb1 of this[_0x1e95d5(0x174)])_0x2a6c86+=_0x474cb1[_0x1e95d5(0x174)][_0x1e95d5(0x164)];return{'resultsCount':_0x2a6c86,'totalItemsCount':_0x2a6c86};}[_0x2457b5(0x172)](){const _0x396868=_0x2457b5,_0x31ac1d=this[_0x396868(0x165)],_0x4f3158=new _0x1816ab(this[_0x396868(0x165)]);return _0x4f3158[_0x396868(0x163)]({'label':'('+_0x5ef816(_0x31ac1d,_0x396868(0x160))+')','withText':!0x0}),_0x4f3158['on'](_0x396868(0x161),()=>this[_0x396868(0x168)](_0x396868(0x16f))),_0x4f3158;}}
23
+ const _0x4ff0c3=_0x436e;(function(_0x21961d,_0x91509b){const _0x2103ea=_0x436e,_0x1367c1=_0x21961d();while(!![]){try{const _0xffa327=parseInt(_0x2103ea(0x168))/0x1*(parseInt(_0x2103ea(0x169))/0x2)+-parseInt(_0x2103ea(0x175))/0x3+parseInt(_0x2103ea(0x174))/0x4*(parseInt(_0x2103ea(0x17d))/0x5)+parseInt(_0x2103ea(0x16d))/0x6*(parseInt(_0x2103ea(0x16f))/0x7)+-parseInt(_0x2103ea(0x180))/0x8*(-parseInt(_0x2103ea(0x176))/0x9)+parseInt(_0x2103ea(0x171))/0xa*(-parseInt(_0x2103ea(0x16e))/0xb)+-parseInt(_0x2103ea(0x177))/0xc*(-parseInt(_0x2103ea(0x173))/0xd);if(_0xffa327===_0x91509b)break;else _0x1367c1['push'](_0x1367c1['shift']());}catch(_0x1af9fb){_0x1367c1['push'](_0x1367c1['shift']());}}}(_0x8c40,0x6a4ef));import{ListView as _0x43865f,ListItemGroupView as _0xe3c0e8,ButtonView as _0x165939}from'ckeditor5/src/ui.js';function _0x436e(_0x2140ce,_0x31a867){const _0x8c4030=_0x8c40();return _0x436e=function(_0x436e72,_0x1a7335){_0x436e72=_0x436e72-0x167;let _0x3ad518=_0x8c4030[_0x436e72];return _0x3ad518;},_0x436e(_0x2140ce,_0x31a867);}import{getTranslation as _0x5aab9f}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x43865f{[_0x4ff0c3(0x16a)];[_0x4ff0c3(0x17c)];constructor(_0x513aed){const _0x1464d2=_0x4ff0c3;super(_0x513aed),this[_0x1464d2(0x17c)]=this[_0x1464d2(0x16c)](),this[_0x1464d2(0x16a)]=new _0xe3c0e8(),this[_0x1464d2(0x16a)][_0x1464d2(0x178)][_0x1464d2(0x16b)](this[_0x1464d2(0x17c)],0x1),this[_0x1464d2(0x16a)][_0x1464d2(0x181)]=_0x5aab9f(_0x513aed,_0x1464d2(0x17e)),this[_0x1464d2(0x16a)][_0x1464d2(0x17f)][_0x1464d2(0x167)](_0x1464d2(0x182))['to'](this),this[_0x1464d2(0x17f)][_0x1464d2(0x16b)](this[_0x1464d2(0x16a)]);}[_0x4ff0c3(0x184)](){const _0x1883e4=_0x4ff0c3;let _0x5d5f80=0x0;for(const _0x443db3 of this[_0x1883e4(0x17f)])_0x5d5f80+=_0x443db3[_0x1883e4(0x17f)][_0x1883e4(0x17a)];return{'resultsCount':_0x5d5f80,'totalItemsCount':_0x5d5f80};}[_0x4ff0c3(0x16c)](){const _0xd1c3da=_0x4ff0c3,_0x195f53=this[_0xd1c3da(0x183)],_0x5d8a9f=new _0x165939(this[_0xd1c3da(0x183)]);return _0x5d8a9f[_0xd1c3da(0x17b)]({'label':'('+_0x5aab9f(_0x195f53,_0xd1c3da(0x170))+')','withText':!0x0}),_0x5d8a9f['on'](_0xd1c3da(0x182),()=>this[_0xd1c3da(0x172)](_0xd1c3da(0x179))),_0x5d8a9f;}}function _0x8c40(){const _0x31b889=['420JBkDrS','fire','117Hvvjwa','1640CyttAm','2529630TlVKzx','7254TEcdEm','384708qNOpTT','children','clearHistory','length','set','clearHistoryButton','5090cSKFyQ','Prompt\x20history','items','2680lPlELd','label','execute','locale','filter','delegate','87wWbUwp','3398cfIVlw','historyGroupView','add','_createClearHistoryButton','6ONYdtO','31251eCFmlX','1919659CsWyIT','Clear'];_0x8c40=function(){return _0x31b889;};return _0x8c40();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ec33d=_0x1539;(function(_0x5407bc,_0x233a25){const _0x15c06b=_0x1539,_0x4703d6=_0x5407bc();while(!![]){try{const _0x87f6b8=parseInt(_0x15c06b(0xeb))/0x1*(parseInt(_0x15c06b(0xff))/0x2)+parseInt(_0x15c06b(0xef))/0x3+-parseInt(_0x15c06b(0xea))/0x4*(parseInt(_0x15c06b(0xe8))/0x5)+parseInt(_0x15c06b(0xed))/0x6*(-parseInt(_0x15c06b(0xf0))/0x7)+parseInt(_0x15c06b(0xf4))/0x8+parseInt(_0x15c06b(0x100))/0x9*(-parseInt(_0x15c06b(0xfb))/0xa)+parseInt(_0x15c06b(0xf5))/0xb;if(_0x87f6b8===_0x233a25)break;else _0x4703d6['push'](_0x4703d6['shift']());}catch(_0x17d37f){_0x4703d6['push'](_0x4703d6['shift']());}}}(_0x7ab5,0x48a43));import{Collection as _0x518815}from'ckeditor5/src/utils.js';function _0x1539(_0x4350d7,_0x8299da){const _0x7ab52c=_0x7ab5();return _0x1539=function(_0x153975,_0x494a31){_0x153975=_0x153975-0xe6;let _0x226fed=_0x7ab52c[_0x153975];return _0x226fed;},_0x1539(_0x4350d7,_0x8299da);}const So=_0x4ec33d(0xee);export class PromptHistory extends _0x518815{constructor(){const _0x2370f9=_0x4ec33d;super(),this[_0x2370f9(0xf2)](),this['on'](_0x2370f9(0xe9),(_0x2c9898,_0x4e8dc9)=>{const _0x49f269=_0x2370f9,_0x292088=go(_0x4e8dc9[_0x49f269(0xe7)]);for(const _0x494b99 of this)if(_0x494b99!=_0x4e8dc9&&go(_0x494b99[_0x49f269(0xe7)])===_0x292088){this[_0x49f269(0xf8)](_0x494b99);break;}this[_0x49f269(0xfc)]>0x14&&this[_0x49f269(0xf8)](this[_0x49f269(0xe6)]),this[_0x49f269(0xfe)]();}),this['on'](_0x2370f9(0xf8),()=>{const _0x3d9c78=_0x2370f9;this[_0x3d9c78(0xfe)]();});}[_0x4ec33d(0xf2)](){const _0x1cc9f7=_0x4ec33d,_0x4279bf=sessionStorage[_0x1cc9f7(0xf1)](So)||'[]';this[_0x1cc9f7(0xf3)](JSON[_0x1cc9f7(0xf6)](_0x4279bf));}[_0x4ec33d(0xfe)](){const _0x1f197a=_0x4ec33d;sessionStorage[_0x1f197a(0xfa)](So,JSON[_0x1f197a(0xec)](this[_0x1f197a(0xf9)](_0x26c9d0=>_0x26c9d0)));}}function _0x7ab5(){const _0x4e777c=['addMany','1629944iNKoFd','836979qUKBjY','parse','toLowerCase','remove','map','setItem','502690XbEBiu','length','trim','_saveToSessionStorage','729478BtRMHF','54UwElNs','last','prompt','20LwYAgC','add','352084IVfeFs','1icguCz','stringify','1328958ftgTXz','CKEditor/AIFormView/PromptHistory','1584477KGEciM','7jFhVNy','getItem','_loadFromSessionStorage'];_0x7ab5=function(){return _0x4e777c;};return _0x7ab5();}function go(_0x18a345){const _0x2242cd=_0x4ec33d;return _0x18a345[_0x2242cd(0xf7)]()[_0x2242cd(0xfd)]();}
23
+ function _0x43b6(){const _0x3874eb=['parse','2pVqxax','setItem','getItem','trim','CKEditor/AIFormView/PromptHistory','432SGtcbG','prompt','6xJUIDy','1375995KACmso','20BNuchN','_loadFromSessionStorage','_saveToSessionStorage','925620nfJmOH','173648ljsCVx','11387070KqIYnn','261834StzcPt','2651478GZIprB','stringify','toLowerCase','last','length','649GSzPXe','add','remove','7367297XNHvDF','addMany','map'];_0x43b6=function(){return _0x3874eb;};return _0x43b6();}const _0x4c482d=_0x429e;(function(_0x240bf9,_0x560097){const _0x4ef51d=_0x429e,_0xe4384a=_0x240bf9();while(!![]){try{const _0x52dd10=-parseInt(_0x4ef51d(0xaa))/0x1+parseInt(_0x4ef51d(0xb7))/0x2*(-parseInt(_0x4ef51d(0xab))/0x3)+parseInt(_0x4ef51d(0xc0))/0x4*(-parseInt(_0x4ef51d(0xbf))/0x5)+parseInt(_0x4ef51d(0xbe))/0x6*(parseInt(_0x4ef51d(0xb3))/0x7)+-parseInt(_0x4ef51d(0xa8))/0x8*(parseInt(_0x4ef51d(0xbc))/0x9)+-parseInt(_0x4ef51d(0xa9))/0xa+-parseInt(_0x4ef51d(0xb0))/0xb*(-parseInt(_0x4ef51d(0xa7))/0xc);if(_0x52dd10===_0x560097)break;else _0xe4384a['push'](_0xe4384a['shift']());}catch(_0x10d790){_0xe4384a['push'](_0xe4384a['shift']());}}}(_0x43b6,0xdc042));import{Collection as _0x92ad3d}from'ckeditor5/src/utils.js';const So=_0x4c482d(0xbb);export class PromptHistory extends _0x92ad3d{constructor(){const _0x557296=_0x4c482d;super(),this[_0x557296(0xc1)](),this['on'](_0x557296(0xb1),(_0x3dfc05,_0x1c3c24)=>{const _0x3ff497=_0x557296,_0x460620=go(_0x1c3c24[_0x3ff497(0xbd)]);for(const _0x4363ce of this)if(_0x4363ce!=_0x1c3c24&&go(_0x4363ce[_0x3ff497(0xbd)])===_0x460620){this[_0x3ff497(0xb2)](_0x4363ce);break;}this[_0x3ff497(0xaf)]>0x14&&this[_0x3ff497(0xb2)](this[_0x3ff497(0xae)]),this[_0x3ff497(0xc2)]();}),this['on'](_0x557296(0xb2),()=>{const _0xe8537f=_0x557296;this[_0xe8537f(0xc2)]();});}[_0x4c482d(0xc1)](){const _0x2ac73b=_0x4c482d,_0x192d92=sessionStorage[_0x2ac73b(0xb9)](So)||'[]';this[_0x2ac73b(0xb4)](JSON[_0x2ac73b(0xb6)](_0x192d92));}[_0x4c482d(0xc2)](){const _0x4afd5a=_0x4c482d;sessionStorage[_0x4afd5a(0xb8)](So,JSON[_0x4afd5a(0xac)](this[_0x4afd5a(0xb5)](_0x54ce8b=>_0x54ce8b)));}}function _0x429e(_0x1b966a,_0x5c15fa){const _0x43b696=_0x43b6();return _0x429e=function(_0x429ead,_0x5cfda6){_0x429ead=_0x429ead-0xa7;let _0x7f4e06=_0x43b696[_0x429ead];return _0x7f4e06;},_0x429e(_0x1b966a,_0x5c15fa);}function go(_0x23f329){const _0x1b4ffd=_0x4c482d;return _0x23f329[_0x1b4ffd(0xad)]()[_0x1b4ffd(0xba)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5574a7=_0x306f;function _0x23a2(){const _0x43fc42=['plugins','1475624GQFupq','set','getSelectedBlocks','getItems','showUI','refresh','change:_hasContext','enabledCommandsIds','requiresContent','3428802cmpkVM','from','get','selection','custom','config','length','includes','5940820IVyQou','isEmpty','getRanges','model','11610774RwQWyW','name','6nrywri','_hasContext','execute','add','hasContent','getFirstRange','element','editor','_commandDefinitions','1325521XNmVCA','3644416pTRXOM','document','isEnabled','change:isEnabled','isCollapsed','11034212EFnwJj','values','ai.assistant.disabledElements'];_0x23a2=function(){return _0x43fc42;};return _0x23a2();}(function(_0x3523b0,_0x5b8711){const _0x503ddb=_0x306f,_0x400769=_0x3523b0();while(!![]){try{const _0x350e88=parseInt(_0x503ddb(0x1a0))/0x1+parseInt(_0x503ddb(0x1b3))/0x2+parseInt(_0x503ddb(0x197))/0x3*(parseInt(_0x503ddb(0x1aa))/0x4)+parseInt(_0x503ddb(0x1bb))/0x5+-parseInt(_0x503ddb(0x1bf))/0x6+-parseInt(_0x503ddb(0x1a6))/0x7+-parseInt(_0x503ddb(0x1a1))/0x8;if(_0x350e88===_0x5b8711)break;else _0x400769['push'](_0x400769['shift']());}catch(_0x2dd47a){_0x400769['push'](_0x400769['shift']());}}}(_0x23a2,0xf3df5));import{Command as _0x41c24e}from'ckeditor5/src/core.js';function _0x306f(_0x59f942,_0x36e397){const _0x23a2d0=_0x23a2();return _0x306f=function(_0x306f7e,_0x31eccf){_0x306f7e=_0x306f7e-0x196;let _0x6b60c4=_0x23a2d0[_0x306f7e];return _0x6b60c4;},_0x306f(_0x59f942,_0x36e397);}import{AIAssistantUI as _0x436a58}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x41c24e{[_0x5574a7(0x19f)];constructor(_0x35d50c,_0x5ef3e4){const _0x4e2c05=_0x5574a7;super(_0x35d50c),this[_0x4e2c05(0x19f)]=_0x5ef3e4,this[_0x4e2c05(0x1ab)](_0x4e2c05(0x1b1),[]),this['on'](_0x4e2c05(0x1b0),(_0x110193,_0xc6b7b8,_0x4ff621)=>{const _0x1056d3=_0x4e2c05;this[_0x1056d3(0x1a3)]&&(this[_0x1056d3(0x1b1)]=ns(this[_0x1056d3(0x19f)],_0x4ff621));}),this[_0x4e2c05(0x1ab)](_0x4e2c05(0x198),!0x1),this['on'](_0x4e2c05(0x1a4),(_0x1a1da9,_0x192af3,_0x4739ff)=>{const _0x2a8b6c=_0x4e2c05;this[_0x2a8b6c(0x1b1)]=_0x4739ff?ns(this[_0x2a8b6c(0x19f)],this[_0x2a8b6c(0x198)]):[];});}[_0x5574a7(0x1af)](){const _0x48bc06=_0x5574a7,_0x41db42=this[_0x48bc06(0x19e)][_0x48bc06(0x1be)];this[_0x48bc06(0x198)]=function(_0xb6bf78){const _0x56fba1=_0x48bc06,_0x11415a=_0xb6bf78[_0x56fba1(0x1a2)][_0x56fba1(0x1b6)];return _0x11415a[_0x56fba1(0x1a5)]?0x0!==[..._0x11415a[_0x56fba1(0x1ac)]()][_0x56fba1(0x1b9)]&&![..._0x11415a[_0x56fba1(0x1ac)]()][0x0][_0x56fba1(0x1bc)]:!!_0xb6bf78[_0x56fba1(0x19b)](_0x11415a[_0x56fba1(0x19c)]());}(_0x41db42);const _0x3e62e8=_0x41db42[_0x48bc06(0x1a2)][_0x48bc06(0x1b6)],_0x2fadf5=this[_0x48bc06(0x19e)][_0x48bc06(0x1b8)][_0x48bc06(0x1b5)](_0x48bc06(0x1a8));for(const _0x3564bc of _0x3e62e8[_0x48bc06(0x1bd)]())for(const _0x3961ae of _0x3564bc[_0x48bc06(0x1ad)]())if(_0x3961ae['is'](_0x48bc06(0x19d))&&_0x2fadf5[_0x48bc06(0x1ba)](_0x3961ae[_0x48bc06(0x196)]))return void(this[_0x48bc06(0x1a3)]=!0x1);this[_0x48bc06(0x1a3)]=!0x0;}[_0x5574a7(0x199)](_0x3f6dbb='',_0x5e6e13='',_0xb79e73=_0x5574a7(0x1b7)){const _0x40821a=_0x5574a7;this[_0x40821a(0x19e)][_0x40821a(0x1a9)][_0x40821a(0x1b5)](_0x436a58)[_0x40821a(0x1ae)](_0x3f6dbb,_0x5e6e13,_0xb79e73);}}function ns(_0x135ca9,_0x2ca907){const _0x10a013=_0x5574a7,_0x1799b=new Set();for(const _0xabe66d of _0x135ca9[_0x10a013(0x1a7)]())(_0x2ca907||!0x1===_0xabe66d[_0x10a013(0x1b2)])&&_0x1799b[_0x10a013(0x19a)](_0xabe66d['id']);return Array[_0x10a013(0x1b4)](_0x1799b);}
23
+ const _0x4e3e8d=_0x2504;function _0xb863(){const _0x15f55a=['isCollapsed','change:_hasContext','get','custom','name','config','688961BrnRuX','model','selection','enabledCommandsIds','hasContent','refresh','_commandDefinitions','from','getRanges','getFirstRange','requiresContent','document','includes','getItems','740475SePTPc','change:isEnabled','showUI','1374840XDzKPD','234810PHizif','add','element','length','78ecguJV','isEmpty','40rbHYHB','952192kmLmDp','_hasContext','5481MhNVqc','isEnabled','ai.assistant.disabledElements','4703JpzlZS','values','editor','execute','set','plugins','getSelectedBlocks'];_0xb863=function(){return _0x15f55a;};return _0xb863();}(function(_0xbba657,_0x5dccb4){const _0x4ecfb1=_0x2504,_0x268759=_0xbba657();while(!![]){try{const _0x11ddb3=parseInt(_0x4ecfb1(0x1d6))/0x1*(parseInt(_0x4ecfb1(0x1f9))/0x2)+parseInt(_0x4ecfb1(0x1f1))/0x3+-parseInt(_0x4ecfb1(0x1f4))/0x4+parseInt(_0x4ecfb1(0x1d0))/0x5*(parseInt(_0x4ecfb1(0x1f5))/0x6)+-parseInt(_0x4ecfb1(0x1e3))/0x7+-parseInt(_0x4ecfb1(0x1d1))/0x8+parseInt(_0x4ecfb1(0x1d3))/0x9;if(_0x11ddb3===_0x5dccb4)break;else _0x268759['push'](_0x268759['shift']());}catch(_0x247cb5){_0x268759['push'](_0x268759['shift']());}}}(_0xb863,0x2c9f6));import{Command as _0x3b6837}from'ckeditor5/src/core.js';function _0x2504(_0x5d5a36,_0x1982cd){const _0xb863f4=_0xb863();return _0x2504=function(_0x25042b,_0x12e047){_0x25042b=_0x25042b-0x1cf;let _0x4d025b=_0xb863f4[_0x25042b];return _0x4d025b;},_0x2504(_0x5d5a36,_0x1982cd);}import{AIAssistantUI as _0x2cfd88}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x3b6837{[_0x4e3e8d(0x1e9)];constructor(_0x59f6ee,_0x566b00){const _0x235909=_0x4e3e8d;super(_0x59f6ee),this[_0x235909(0x1e9)]=_0x566b00,this[_0x235909(0x1da)](_0x235909(0x1e6),[]),this['on'](_0x235909(0x1de),(_0x5015f5,_0x19bd6f,_0x1cb95d)=>{const _0x139d0f=_0x235909;this[_0x139d0f(0x1d4)]&&(this[_0x139d0f(0x1e6)]=ns(this[_0x139d0f(0x1e9)],_0x1cb95d));}),this[_0x235909(0x1da)](_0x235909(0x1d2),!0x1),this['on'](_0x235909(0x1f2),(_0x244c68,_0x499d70,_0x9af4a8)=>{const _0x4ada19=_0x235909;this[_0x4ada19(0x1e6)]=_0x9af4a8?ns(this[_0x4ada19(0x1e9)],this[_0x4ada19(0x1d2)]):[];});}[_0x4e3e8d(0x1e8)](){const _0x10d0c4=_0x4e3e8d,_0x4d8c15=this[_0x10d0c4(0x1d8)][_0x10d0c4(0x1e4)];this[_0x10d0c4(0x1d2)]=function(_0x422dc1){const _0x271ff4=_0x10d0c4,_0x5aa346=_0x422dc1[_0x271ff4(0x1ee)][_0x271ff4(0x1e5)];return _0x5aa346[_0x271ff4(0x1dd)]?0x0!==[..._0x5aa346[_0x271ff4(0x1dc)]()][_0x271ff4(0x1f8)]&&![..._0x5aa346[_0x271ff4(0x1dc)]()][0x0][_0x271ff4(0x1cf)]:!!_0x422dc1[_0x271ff4(0x1e7)](_0x5aa346[_0x271ff4(0x1ec)]());}(_0x4d8c15);const _0xe8098b=_0x4d8c15[_0x10d0c4(0x1ee)][_0x10d0c4(0x1e5)],_0xa4f232=this[_0x10d0c4(0x1d8)][_0x10d0c4(0x1e2)][_0x10d0c4(0x1df)](_0x10d0c4(0x1d5));for(const _0x36a2f0 of _0xe8098b[_0x10d0c4(0x1eb)]())for(const _0x1fe7fe of _0x36a2f0[_0x10d0c4(0x1f0)]())if(_0x1fe7fe['is'](_0x10d0c4(0x1f7))&&_0xa4f232[_0x10d0c4(0x1ef)](_0x1fe7fe[_0x10d0c4(0x1e1)]))return void(this[_0x10d0c4(0x1d4)]=!0x1);this[_0x10d0c4(0x1d4)]=!0x0;}[_0x4e3e8d(0x1d9)](_0x1494a9='',_0x45d6e1='',_0x460aad=_0x4e3e8d(0x1e0)){const _0x35f3c6=_0x4e3e8d;this[_0x35f3c6(0x1d8)][_0x35f3c6(0x1db)][_0x35f3c6(0x1df)](_0x2cfd88)[_0x35f3c6(0x1f3)](_0x1494a9,_0x45d6e1,_0x460aad);}}function ns(_0x43b2b4,_0x4c69dd){const _0x48854f=_0x4e3e8d,_0x2b4f72=new Set();for(const _0x4e6532 of _0x43b2b4[_0x48854f(0x1d7)]())(_0x4c69dd||!0x1===_0x4e6532[_0x48854f(0x1ed)])&&_0x2b4f72[_0x48854f(0x1f6)](_0x4e6532['id']);return Array[_0x48854f(0x1ea)](_0x2b4f72);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x43f715=_0x4789;function _0x4789(_0x28346e,_0x1eb25b){const _0x3d4cac=_0x3d4c();return _0x4789=function(_0x47893d,_0x5a6142){_0x47893d=_0x47893d-0x118;let _0x5785e9=_0x3d4cac[_0x47893d];return _0x5785e9;},_0x4789(_0x28346e,_0x1eb25b);}function _0x3d4c(){const _0x5b5900=['6bPNnIi','high','locale','once','filter','_isUpdatingMarkers','AI_BALLOON_SELECTION_REMOVED_ERROR','_calculateDialogPosition','showBlockingError','label','window','mainView','ranges','iconView','72lbwApr','dialogClosed','pluginName','beforeDialogClosed','getMarkersGroup','listenTo','showFakeVisualSelection','document','content','isPremiumPlugin','ai-balloon-selection','_showFakeVisualSelection','stopListening','_hideFakeVisualSelection','requires','fire','length','getIntersection','selectionRemoved','3258284bGBmSY','top','index','AIBalloon','_calculateOptimalTopPosition','122731FoqrTi','start','map','open','delegate','change','_showDialog','isOpen','9442975SoRfKc','395180YiIlEK','round','hideFakeVisualSelection','_setupFakeVisualSelectionMarkerRemovalListener','_cleanupFakeVisualSelectionMarkerRemovalListener','headerView','_updateDialog','differ','2eLviud','392EECeHy','model','ai-selection','plugins','$graveyard','startsWith','get','isOfficialPlugin','getBoundingRect','bind','ck-ai-balloon\x20','max','_currentConfig','editing','root','getVisible','isEqual','view','568158HAseKw','context','height','show','width','1224438fzIaxH','left','_getSelectionElements','33550649wxWMJt','bottom','ai-balloon-','close','hide','end','Dialog','getChangedMarkers','rootName','hideError','markers','updatePosition'];_0x3d4c=function(){return _0x5b5900;};return _0x3d4c();}(function(_0x50e8cd,_0x53dba2){const _0x45ed66=_0x4789,_0x259172=_0x50e8cd();while(!![]){try{const _0x46f386=parseInt(_0x45ed66(0x121))/0x1*(parseInt(_0x45ed66(0x134))/0x2)+-parseInt(_0x45ed66(0x139))/0x3+parseInt(_0x45ed66(0x169))/0x4+parseInt(_0x45ed66(0x118))/0x5*(-parseInt(_0x45ed66(0x148))/0x6)+-parseInt(_0x45ed66(0x16e))/0x7*(parseInt(_0x45ed66(0x122))/0x8)+-parseInt(_0x45ed66(0x156))/0x9*(parseInt(_0x45ed66(0x119))/0xa)+parseInt(_0x45ed66(0x13c))/0xb;if(_0x46f386===_0x53dba2)break;else _0x259172['push'](_0x259172['shift']());}catch(_0x9ec4d2){_0x259172['push'](_0x259172['shift']());}}}(_0x3d4c,0xea912));import{ContextPlugin as _0xbd2582}from'ckeditor5/src/core.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x192463,AIEditing as _0x1a97ff}from'../aicore/aiediting.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x5e113a}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x489623,Rect as _0x4a6ac7,scrollViewportToShowTarget as _0x12dd0f}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x217722}from'../aicore/utils/geteditorfromcontext.js';import{getTranslation as _0x3c7207}from'../aicore/utils/common-translations.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x35dd52}from'./ui/aiballoonview.js';export const AI_BALLOON_EVENT_NAMES=[..._0x35dd52,_0x43f715(0x157),_0x43f715(0x168)];const at=0xa;export class AIBalloon extends _0xbd2582{static get[_0x43f715(0x164)](){return[_0x1a97ff];}static get[_0x43f715(0x158)](){const _0x3a87ef=_0x43f715;return _0x3a87ef(0x16c);}static get[_0x43f715(0x129)](){return!0x0;}static get[_0x43f715(0x15f)](){return!0x0;}[_0x43f715(0x175)]=!0x1;[_0x43f715(0x12e)];[_0x43f715(0x14d)]=!0x1;[_0x43f715(0x171)](_0x3d5d66){const _0x3fcdfc=_0x43f715,{id:_0x49bca7}=this[_0x3fcdfc(0x12e)]??{};this[_0x3fcdfc(0x12e)]=_0x3d5d66;const {id:_0x2fcae6}=this[_0x3fcdfc(0x12e)];this[_0x3fcdfc(0x175)]&&_0x49bca7===_0x2fcae6?this[_0x3fcdfc(0x11f)]():this[_0x3fcdfc(0x174)]();}[_0x43f715(0x13f)](){const _0x39a2b7=_0x43f715,_0x5e5aab=_0x217722(this[_0x39a2b7(0x135)])[_0x39a2b7(0x125)][_0x39a2b7(0x128)](_0x39a2b7(0x142));_0x5e5aab[_0x39a2b7(0x175)]&&this[_0x39a2b7(0x12e)]&&_0x5e5aab['id']===this[_0x39a2b7(0x12e)]['id']&&_0x5e5aab[_0x39a2b7(0x140)]();}[_0x43f715(0x11f)](){const _0x268cde=_0x43f715,_0x338d79=_0x217722(this[_0x268cde(0x135)])[_0x268cde(0x125)][_0x268cde(0x128)](_0x268cde(0x142)),{icon:_0xee1d5a,title:_0xa4431b}=this[_0x268cde(0x12e)];_0x338d79[_0x268cde(0x133)]?.[_0x268cde(0x11e)]&&(_0x338d79[_0x268cde(0x133)][_0x268cde(0x11e)][_0x268cde(0x151)]=_0xa4431b,_0x338d79[_0x268cde(0x133)][_0x268cde(0x11e)][_0x268cde(0x155)]&&_0xee1d5a&&(_0x338d79[_0x268cde(0x133)][_0x268cde(0x11e)][_0x268cde(0x155)][_0x268cde(0x15e)]=_0xee1d5a)),this[_0x268cde(0x14d)]=!0x0,this[_0x268cde(0x161)](),this[_0x268cde(0x14d)]=!0x1,_0x338d79[_0x268cde(0x133)]?.[_0x268cde(0x147)]();}[_0x43f715(0x161)](){const _0x1deb94=_0x43f715;this[_0x1deb94(0x135)][_0x1deb94(0x125)][_0x1deb94(0x128)](_0x1a97ff)[_0x1deb94(0x15c)](this[_0x1deb94(0x12e)][_0x1deb94(0x154)],_0x1deb94(0x13e)+this[_0x1deb94(0x12e)][_0x1deb94(0x16b)],!0x0,!0x0);}[_0x43f715(0x163)](_0x18c79d){const _0x4a6c6c=_0x43f715;this[_0x4a6c6c(0x135)][_0x4a6c6c(0x125)][_0x4a6c6c(0x128)](_0x1a97ff)[_0x4a6c6c(0x11b)](_0x4a6c6c(0x13e)+_0x18c79d);}[_0x43f715(0x174)](){const _0x59171e=_0x43f715,_0x1000e1=_0x217722(this[_0x59171e(0x135)])[_0x59171e(0x125)][_0x59171e(0x128)](_0x59171e(0x142)),{id:_0x5ee7cd,title:_0x556e23,icon:_0x477f66,class:_0x1dada8,mainView:_0x30a680}=this[_0x59171e(0x12e)];_0x30a680[_0x59171e(0x172)](..._0x35dd52)['to'](this),_0x1000e1[_0x59171e(0x137)]({'title':_0x556e23,'icon':_0x477f66,'hasCloseButton':!0x0,'id':_0x5ee7cd,'position':this[_0x59171e(0x14f)][_0x59171e(0x12b)](this),'className':_0x59171e(0x12c)+(_0x1dada8||''),'content':_0x30a680,'onShow':_0x349f1a=>{const _0x203fe6=_0x59171e;this[_0x203fe6(0x161)](),this[_0x203fe6(0x11c)]();const _0x24dfbf=this[_0x203fe6(0x13b)]();_0x24dfbf&&_0x24dfbf[0x0]&&_0x12dd0f({'target':_0x24dfbf[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0x203fe6(0x175)]=!0x0,_0x349f1a[_0x203fe6(0x14b)](_0x203fe6(0x140),()=>{const _0x4c4c85=_0x203fe6;this[_0x4c4c85(0x165)](_0x4c4c85(0x159),{'id':_0x5ee7cd});},{'priority':_0x203fe6(0x149)});},'onHide':()=>{const _0x188614=_0x59171e;this[_0x188614(0x163)](this[_0x188614(0x12e)][_0x188614(0x16b)]),this[_0x188614(0x11d)](),this[_0x188614(0x165)](_0x188614(0x157),{'id':_0x5ee7cd}),this[_0x188614(0x175)]=!0x1;}});}[_0x43f715(0x14f)](_0x1ba30e,_0x3daa8e){const _0x193a4a=_0x43f715;if(!_0x3daa8e)return null;const _0x35c6c6=this[_0x193a4a(0x13b)]();if(!_0x35c6c6||0x0===_0x35c6c6[_0x193a4a(0x166)])return{'left':Math[_0x193a4a(0x11a)](_0x3daa8e[_0x193a4a(0x13a)]+_0x3daa8e[_0x193a4a(0x138)]/0x2-_0x1ba30e[_0x193a4a(0x138)]/0x2),'top':Math[_0x193a4a(0x11a)](_0x3daa8e[_0x193a4a(0x16a)]+_0x3daa8e[_0x193a4a(0x136)]/0x2-_0x1ba30e[_0x193a4a(0x136)]/0x2)};const _0x1d18e2=Math[_0x193a4a(0x11a)](_0x3daa8e[_0x193a4a(0x13a)]+_0x3daa8e[_0x193a4a(0x138)]/0x2-_0x1ba30e[_0x193a4a(0x138)]/0x2),_0x32ebd7=_0x35c6c6[_0x193a4a(0x170)](_0x4d3467=>new _0x4a6ac7(_0x4d3467)),_0x2a9e50=_0x1ba30e[_0x193a4a(0x136)];return{'left':_0x1d18e2,'top':this[_0x193a4a(0x16d)](_0x32ebd7,_0x2a9e50,_0x3daa8e)};}[_0x43f715(0x16d)](_0x1a8592,_0x427854,_0x3e0989){const _0x2d2026=_0x43f715,_0x3460ae=new _0x4a6ac7(_0x489623[_0x2d2026(0x152)]),_0x238965=_0x1a8592[_0x2d2026(0x170)](_0x878914=>_0x878914[_0x2d2026(0x131)]())[_0x2d2026(0x14c)](_0x544585=>_0x544585),_0x46c89a=_0x4a6ac7[_0x2d2026(0x12a)](_0x238965);if(!_0x46c89a)return Math[_0x2d2026(0x11a)](_0x3e0989[_0x2d2026(0x16a)]+_0x3e0989[_0x2d2026(0x136)]/0x2);const _0xdfecd3=_0x3460ae[_0x2d2026(0x167)](_0x46c89a);if(!_0xdfecd3)return Math[_0x2d2026(0x11a)](_0x3e0989[_0x2d2026(0x16a)]+_0x3e0989[_0x2d2026(0x136)]/0x2);const _0x14708b=_0x3e0989[_0x2d2026(0x131)](),_0x56078c=_0x14708b&&_0x46c89a[_0x2d2026(0x136)]>_0x14708b[_0x2d2026(0x136)],_0x2e3ef3=_0xdfecd3[_0x2d2026(0x16a)],_0x279a23=_0xdfecd3[_0x2d2026(0x13d)];if(_0x56078c){const _0x8b4815=(_0x14708b||_0x3460ae)[_0x2d2026(0x136)]/0x2-_0x427854/0x2,_0x524fa7=_0x2e3ef3-at-_0x3e0989[_0x2d2026(0x16a)],_0x2780ee=_0x3e0989[_0x2d2026(0x13d)]-_0x279a23-at;return _0x524fa7>=_0x427854?Math[_0x2d2026(0x12d)](at,_0x2e3ef3-_0x427854-at):_0x2780ee>=_0x427854?_0x279a23+at:Math[_0x2d2026(0x12d)](at,_0x8b4815);}const _0x2aa232=_0x2e3ef3-_0x427854,_0x5bac4e=_0x3e0989[_0x2d2026(0x13d)]-_0x279a23-at,_0x37bffe=_0x2e3ef3-at-_0x3e0989[_0x2d2026(0x16a)];let _0x2b05d5;if(_0x5bac4e>=_0x427854)_0x2b05d5=_0x279a23+at;else{if(_0x37bffe>=_0x427854)_0x2b05d5=_0x2aa232-at;else _0x2b05d5=_0x2e3ef3+_0x46c89a[_0x2d2026(0x136)]/0x2-_0x427854/0x2;}return _0x2b05d5;}[_0x43f715(0x11c)](){const _0x685298=_0x43f715,_0xb0ab27=_0x217722(this[_0x685298(0x135)]);this[_0x685298(0x15b)](_0xb0ab27[_0x685298(0x123)][_0x685298(0x15d)],_0x685298(0x173),()=>{const _0x18c059=_0x685298;if(!this[_0x18c059(0x14d)]){for(const {name:_0x132d90,data:{newRange:_0xc250ad}}of _0xb0ab27[_0x18c059(0x123)][_0x18c059(0x15d)][_0x18c059(0x120)][_0x18c059(0x143)]())if(_0x132d90[_0x18c059(0x127)](_0x192463+':')&&(_0xc250ad&&(_0xc250ad[_0x18c059(0x16f)][_0x18c059(0x132)](_0xc250ad[_0x18c059(0x141)])||_0x18c059(0x126)==_0xc250ad[_0x18c059(0x130)][_0x18c059(0x144)])||null==_0xc250ad)){const _0x13af04=_0x3c7207(this[_0x18c059(0x135)][_0x18c059(0x14a)],_0x18c059(0x14e));this[_0x18c059(0x12e)][_0x18c059(0x153)][_0x18c059(0x150)](_0x13af04),this[_0x18c059(0x165)](_0x18c059(0x168));}}});}[_0x43f715(0x11d)](){const _0x23a9e9=_0x43f715,_0x42fe6e=_0x217722(this[_0x23a9e9(0x135)]);this[_0x23a9e9(0x12e)][_0x23a9e9(0x153)][_0x23a9e9(0x145)](),this[_0x23a9e9(0x162)](_0x42fe6e[_0x23a9e9(0x123)][_0x23a9e9(0x15d)]);}[_0x43f715(0x13b)](){const _0x5bade6=_0x43f715,_0x378bcd=_0x217722(this[_0x5bade6(0x135)]);return _0x5e113a(_0x378bcd[_0x5bade6(0x12f)],[..._0x378bcd[_0x5bade6(0x123)][_0x5bade6(0x146)][_0x5bade6(0x15a)](_0x5bade6(0x124)),..._0x378bcd[_0x5bade6(0x123)][_0x5bade6(0x146)][_0x5bade6(0x15a)](_0x5bade6(0x160))]);}}
23
+ const _0x1a14d6=_0x1457;(function(_0x4bb7ff,_0x4ef300){const _0x126c29=_0x1457,_0x17dc8e=_0x4bb7ff();while(!![]){try{const _0x4f9da7=-parseInt(_0x126c29(0x10a))/0x1*(-parseInt(_0x126c29(0x157))/0x2)+-parseInt(_0x126c29(0x11c))/0x3*(parseInt(_0x126c29(0x133))/0x4)+parseInt(_0x126c29(0x103))/0x5*(-parseInt(_0x126c29(0x122))/0x6)+parseInt(_0x126c29(0x143))/0x7+-parseInt(_0x126c29(0x13a))/0x8+-parseInt(_0x126c29(0x141))/0x9*(parseInt(_0x126c29(0x134))/0xa)+parseInt(_0x126c29(0x14f))/0xb;if(_0x4f9da7===_0x4ef300)break;else _0x17dc8e['push'](_0x17dc8e['shift']());}catch(_0x484af7){_0x17dc8e['push'](_0x17dc8e['shift']());}}}(_0x4176,0xc469b));import{ContextPlugin as _0x1e49c6}from'ckeditor5/src/core.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x149935,AIEditing as _0xc7cbcf}from'../aicore/aiediting.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x4ab560}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x1457(_0x587eb7,_0x377379){const _0x41769c=_0x4176();return _0x1457=function(_0x1457b9,_0x5d24e2){_0x1457b9=_0x1457b9-0xfd;let _0x3cd6c1=_0x41769c[_0x1457b9];return _0x3cd6c1;},_0x1457(_0x587eb7,_0x377379);}import{global as _0x1b3799,Rect as _0x3b1c57,scrollViewportToShowTarget as _0x5c0dc2}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x301e3c}from'../aicore/utils/geteditorfromcontext.js';import{getTranslation as _0x3479df}from'../aicore/utils/common-translations.js';function _0x4176(){const _0x550956=['updatePosition','132696kScdwY','ck-ai-balloon\x20','left','Dialog','index','isOpen','startsWith','90693VPbcDU','getVisible','2952747APnYRB','beforeDialogClosed','editing','filter','ai-selection','requires','high','_getSelectionElements','plugins','top','_updateDialog','context','15286557hdofzK','AIBalloon','length','hide','locale','mainView','document','isEqual','200606mqHwkQ','end','_showFakeVisualSelection','showBlockingError','_setupFakeVisualSelectionMarkerRemovalListener','differ','iconView','_cleanupFakeVisualSelectionMarkerRemovalListener','selectionRemoved','getChangedMarkers','845xDfWqj','once','headerView','label','_showDialog','hideFakeVisualSelection','hideError','5JTYnji','_isUpdatingMarkers','showFakeVisualSelection','fire','width','dialogClosed','open','root','ai-balloon-selection','getMarkersGroup','start','_currentConfig','map','rootName','content','listenTo','delegate','_calculateOptimalTopPosition','6bjcxYY','height','$graveyard','view','getBoundingRect','max','23664XMliEP','isOfficialPlugin','pluginName','bind','stopListening','_calculateDialogPosition','model','isPremiumPlugin','get','change','AI_BALLOON_SELECTION_REMOVED_ERROR','markers','getIntersection','show','window','round','ranges','622932gCXBXT','510ndWAUV','_hideFakeVisualSelection','ai-balloon-','bottom','close'];_0x4176=function(){return _0x550956;};return _0x4176();}import{AI_BALLOON_VIEW_EVENT_NAMES as _0x1ec999}from'./ui/aiballoonview.js';export const AI_BALLOON_EVENT_NAMES=[..._0x1ec999,_0x1a14d6(0x10f),_0x1a14d6(0x101)];const $=0xa;export class AIBalloon extends _0x1e49c6{static get[_0x1a14d6(0x148)](){return[_0xc7cbcf];}static get[_0x1a14d6(0x124)](){const _0x24a793=_0x1a14d6;return _0x24a793(0x150);}static get[_0x1a14d6(0x123)](){return!0x0;}static get[_0x1a14d6(0x129)](){return!0x0;}[_0x1a14d6(0x13f)]=!0x1;[_0x1a14d6(0x115)];[_0x1a14d6(0x10b)]=!0x1;[_0x1a14d6(0x110)](_0x57e360){const _0x4611f9=_0x1a14d6,{id:_0x4e6d31}=this[_0x4611f9(0x115)]??{};this[_0x4611f9(0x115)]=_0x57e360;const {id:_0x51f3a4}=this[_0x4611f9(0x115)];this[_0x4611f9(0x13f)]&&_0x4e6d31===_0x51f3a4?this[_0x4611f9(0x14d)]():this[_0x4611f9(0x107)]();}[_0x1a14d6(0x138)](){const _0x4819a7=_0x1a14d6,_0x56e954=_0x301e3c(this[_0x4819a7(0x14e)])[_0x4819a7(0x14b)][_0x4819a7(0x12a)](_0x4819a7(0x13d));_0x56e954[_0x4819a7(0x13f)]&&this[_0x4819a7(0x115)]&&_0x56e954['id']===this[_0x4819a7(0x115)]['id']&&_0x56e954[_0x4819a7(0x152)]();}[_0x1a14d6(0x14d)](){const _0x57df17=_0x1a14d6,_0x370529=_0x301e3c(this[_0x57df17(0x14e)])[_0x57df17(0x14b)][_0x57df17(0x12a)](_0x57df17(0x13d)),{icon:_0x2c9ea4,title:_0x3c0431}=this[_0x57df17(0x115)];_0x370529[_0x57df17(0x11f)]?.[_0x57df17(0x105)]&&(_0x370529[_0x57df17(0x11f)][_0x57df17(0x105)][_0x57df17(0x106)]=_0x3c0431,_0x370529[_0x57df17(0x11f)][_0x57df17(0x105)][_0x57df17(0xff)]&&_0x2c9ea4&&(_0x370529[_0x57df17(0x11f)][_0x57df17(0x105)][_0x57df17(0xff)][_0x57df17(0x118)]=_0x2c9ea4)),this[_0x57df17(0x10b)]=!0x0,this[_0x57df17(0x159)](),this[_0x57df17(0x10b)]=!0x1,_0x370529[_0x57df17(0x11f)]?.[_0x57df17(0x139)]();}[_0x1a14d6(0x159)](){const _0x914c32=_0x1a14d6;this[_0x914c32(0x14e)][_0x914c32(0x14b)][_0x914c32(0x12a)](_0xc7cbcf)[_0x914c32(0x10c)](this[_0x914c32(0x115)][_0x914c32(0x132)],_0x914c32(0x136)+this[_0x914c32(0x115)][_0x914c32(0x13e)],!0x0,!0x0);}[_0x1a14d6(0x135)](_0x214955){const _0x28f9f3=_0x1a14d6;this[_0x28f9f3(0x14e)][_0x28f9f3(0x14b)][_0x28f9f3(0x12a)](_0xc7cbcf)[_0x28f9f3(0x108)](_0x28f9f3(0x136)+_0x214955);}[_0x1a14d6(0x107)](){const _0x1c726a=_0x1a14d6,_0x31a633=_0x301e3c(this[_0x1c726a(0x14e)])[_0x1c726a(0x14b)][_0x1c726a(0x12a)](_0x1c726a(0x13d)),{id:_0x2b5171,title:_0x490426,icon:_0x2df9da,class:_0x231059,mainView:_0x357c49}=this[_0x1c726a(0x115)];_0x357c49[_0x1c726a(0x11a)](..._0x1ec999)['to'](this),_0x31a633[_0x1c726a(0x12f)]({'title':_0x490426,'icon':_0x2df9da,'hasCloseButton':!0x0,'id':_0x2b5171,'position':this[_0x1c726a(0x127)][_0x1c726a(0x125)](this),'className':_0x1c726a(0x13b)+(_0x231059||''),'content':_0x357c49,'onShow':_0x1f4240=>{const _0xef8a72=_0x1c726a;this[_0xef8a72(0x159)](),this[_0xef8a72(0xfd)]();const _0x429866=this[_0xef8a72(0x14a)]();_0x429866&&_0x429866[0x0]&&_0x5c0dc2({'target':_0x429866[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0xef8a72(0x13f)]=!0x0,_0x1f4240[_0xef8a72(0x104)](_0xef8a72(0x152),()=>{const _0x1df9f6=_0xef8a72;this[_0x1df9f6(0x10d)](_0x1df9f6(0x144),{'id':_0x2b5171});},{'priority':_0xef8a72(0x149)});},'onHide':()=>{const _0x32c649=_0x1c726a;this[_0x32c649(0x135)](this[_0x32c649(0x115)][_0x32c649(0x13e)]),this[_0x32c649(0x100)](),this[_0x32c649(0x10d)](_0x32c649(0x10f),{'id':_0x2b5171}),this[_0x32c649(0x13f)]=!0x1;}});}[_0x1a14d6(0x127)](_0x5f0d77,_0x4d1e61){const _0x4e3f8e=_0x1a14d6;if(!_0x4d1e61)return null;const _0x38cd74=this[_0x4e3f8e(0x14a)]();if(!_0x38cd74||0x0===_0x38cd74[_0x4e3f8e(0x151)])return{'left':Math[_0x4e3f8e(0x131)](_0x4d1e61[_0x4e3f8e(0x13c)]+_0x4d1e61[_0x4e3f8e(0x10e)]/0x2-_0x5f0d77[_0x4e3f8e(0x10e)]/0x2),'top':Math[_0x4e3f8e(0x131)](_0x4d1e61[_0x4e3f8e(0x14c)]+_0x4d1e61[_0x4e3f8e(0x11d)]/0x2-_0x5f0d77[_0x4e3f8e(0x11d)]/0x2)};const _0x337e79=Math[_0x4e3f8e(0x131)](_0x4d1e61[_0x4e3f8e(0x13c)]+_0x4d1e61[_0x4e3f8e(0x10e)]/0x2-_0x5f0d77[_0x4e3f8e(0x10e)]/0x2),_0x2edca3=_0x38cd74[_0x4e3f8e(0x116)](_0x40e3a0=>new _0x3b1c57(_0x40e3a0)),_0x503126=_0x5f0d77[_0x4e3f8e(0x11d)];return{'left':_0x337e79,'top':this[_0x4e3f8e(0x11b)](_0x2edca3,_0x503126,_0x4d1e61)};}[_0x1a14d6(0x11b)](_0x3c6ad5,_0x653485,_0x40ffe0){const _0x7c0fec=_0x1a14d6,_0xf7826d=new _0x3b1c57(_0x1b3799[_0x7c0fec(0x130)]),_0x5dffbb=_0x3c6ad5[_0x7c0fec(0x116)](_0x53d9df=>_0x53d9df[_0x7c0fec(0x142)]())[_0x7c0fec(0x146)](_0x4693fd=>_0x4693fd),_0x1ea572=_0x3b1c57[_0x7c0fec(0x120)](_0x5dffbb);if(!_0x1ea572)return Math[_0x7c0fec(0x131)](_0x40ffe0[_0x7c0fec(0x14c)]+_0x40ffe0[_0x7c0fec(0x11d)]/0x2);const _0x31d805=_0xf7826d[_0x7c0fec(0x12e)](_0x1ea572);if(!_0x31d805)return Math[_0x7c0fec(0x131)](_0x40ffe0[_0x7c0fec(0x14c)]+_0x40ffe0[_0x7c0fec(0x11d)]/0x2);const _0x5c3a60=_0x40ffe0[_0x7c0fec(0x142)](),_0x5cba58=_0x5c3a60&&_0x1ea572[_0x7c0fec(0x11d)]>_0x5c3a60[_0x7c0fec(0x11d)],_0x3bf0e1=_0x31d805[_0x7c0fec(0x14c)],_0x5b0c4b=_0x31d805[_0x7c0fec(0x137)];if(_0x5cba58){const _0x3dace2=(_0x5c3a60||_0xf7826d)[_0x7c0fec(0x11d)]/0x2-_0x653485/0x2,_0x498e64=_0x3bf0e1-$-_0x40ffe0[_0x7c0fec(0x14c)],_0x3f5c02=_0x40ffe0[_0x7c0fec(0x137)]-_0x5b0c4b-$;return _0x498e64>=_0x653485?Math[_0x7c0fec(0x121)]($,_0x3bf0e1-_0x653485-$):_0x3f5c02>=_0x653485?_0x5b0c4b+$:Math[_0x7c0fec(0x121)]($,_0x3dace2);}const _0x3012e1=_0x3bf0e1-_0x653485,_0x59f4b9=_0x40ffe0[_0x7c0fec(0x137)]-_0x5b0c4b-$,_0x325688=_0x3bf0e1-$-_0x40ffe0[_0x7c0fec(0x14c)];let _0xc0826;if(_0x59f4b9>=_0x653485)_0xc0826=_0x5b0c4b+$;else{if(_0x325688>=_0x653485)_0xc0826=_0x3012e1-$;else _0xc0826=_0x3bf0e1+_0x1ea572[_0x7c0fec(0x11d)]/0x2-_0x653485/0x2;}return _0xc0826;}[_0x1a14d6(0xfd)](){const _0x19adcb=_0x1a14d6,_0x8df1bc=_0x301e3c(this[_0x19adcb(0x14e)]);this[_0x19adcb(0x119)](_0x8df1bc[_0x19adcb(0x128)][_0x19adcb(0x155)],_0x19adcb(0x12b),()=>{const _0x266aee=_0x19adcb;if(!this[_0x266aee(0x10b)]){for(const {name:_0x2f3a2d,data:{newRange:_0x5275d7}}of _0x8df1bc[_0x266aee(0x128)][_0x266aee(0x155)][_0x266aee(0xfe)][_0x266aee(0x102)]())if(_0x2f3a2d[_0x266aee(0x140)](_0x149935+':')&&(_0x5275d7&&(_0x5275d7[_0x266aee(0x114)][_0x266aee(0x156)](_0x5275d7[_0x266aee(0x158)])||_0x266aee(0x11e)==_0x5275d7[_0x266aee(0x111)][_0x266aee(0x117)])||null==_0x5275d7)){const _0x2cb09e=_0x3479df(this[_0x266aee(0x14e)][_0x266aee(0x153)],_0x266aee(0x12c));this[_0x266aee(0x115)][_0x266aee(0x154)][_0x266aee(0x15a)](_0x2cb09e),this[_0x266aee(0x10d)](_0x266aee(0x101));}}});}[_0x1a14d6(0x100)](){const _0x2f673a=_0x1a14d6,_0x496c15=_0x301e3c(this[_0x2f673a(0x14e)]);this[_0x2f673a(0x115)][_0x2f673a(0x154)][_0x2f673a(0x109)](),this[_0x2f673a(0x126)](_0x496c15[_0x2f673a(0x128)][_0x2f673a(0x155)]);}[_0x1a14d6(0x14a)](){const _0x35fa5b=_0x1a14d6,_0x58bfb4=_0x301e3c(this[_0x35fa5b(0x14e)]);return _0x4ab560(_0x58bfb4[_0x35fa5b(0x145)],[..._0x58bfb4[_0x35fa5b(0x128)][_0x35fa5b(0x12d)][_0x35fa5b(0x113)](_0x35fa5b(0x147)),..._0x58bfb4[_0x35fa5b(0x128)][_0x35fa5b(0x12d)][_0x35fa5b(0x113)](_0x35fa5b(0x112))]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x397048=_0x39bb;(function(_0x2ff9fa,_0x5c87c0){var _0x129371=_0x39bb,_0x457b3e=_0x2ff9fa();while(!![]){try{var _0x49bf3d=-parseInt(_0x129371(0x18b))/0x1+parseInt(_0x129371(0x193))/0x2*(-parseInt(_0x129371(0x187))/0x3)+-parseInt(_0x129371(0x186))/0x4+parseInt(_0x129371(0x1a1))/0x5*(-parseInt(_0x129371(0x18a))/0x6)+-parseInt(_0x129371(0x19d))/0x7+-parseInt(_0x129371(0x1a0))/0x8+parseInt(_0x129371(0x1a2))/0x9;if(_0x49bf3d===_0x5c87c0)break;else _0x457b3e['push'](_0x457b3e['shift']());}catch(_0x419dfe){_0x457b3e['push'](_0x457b3e['shift']());}}}(_0x132f,0x50d49));import{ContextPlugin as _0x1bda0f}from'ckeditor5/src/core.js';import{AIChatController as _0x47e3fe}from'./aichatcontroller.js';import{AIEditing as _0x22d322}from'../aicore/aiediting.js';import{AIChatUI as _0x47971c}from'./aichatui.js';import{AIChatHistory as _0x39b6c7}from'../aichathistory/aichathistory.js';export class AIChat extends _0x1bda0f{static get[_0x397048(0x18d)](){return[_0x47e3fe,_0x22d322,_0x47971c,_0x39b6c7];}static get[_0x397048(0x19b)](){var _0x1b007b=_0x397048;return _0x1b007b(0x18e);}static get[_0x397048(0x199)](){return!0x0;}static get[_0x397048(0x189)](){return!0x0;}constructor(_0x58b423){var _0x49bda7=_0x397048;super(_0x58b423),this[_0x49bda7(0x195)][_0x49bda7(0x18f)][_0x49bda7(0x19f)](_0x49bda7(0x19c),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x49bda7(0x195)][_0x49bda7(0x18f)][_0x49bda7(0x19f)](_0x49bda7(0x197),_0x49bda7(0x19e));}async[_0x397048(0x18c)](){var _0x271730=_0x397048;await this[_0x271730(0x195)][_0x271730(0x198)][_0x271730(0x194)](_0x47e3fe)[_0x271730(0x18c)]();}async[_0x397048(0x196)](){var _0x343a9d=_0x397048;await this[_0x343a9d(0x195)][_0x343a9d(0x198)][_0x343a9d(0x194)](_0x47e3fe)[_0x343a9d(0x196)]();}async[_0x397048(0x188)]({message:_0x193c06,attributes:_0x200ec3}){var _0x44b587=_0x397048;await this[_0x44b587(0x195)][_0x44b587(0x198)][_0x44b587(0x194)](_0x47e3fe)[_0x44b587(0x188)]({'message':_0x193c06,'attributes':_0x200ec3});}[_0x397048(0x192)](){var _0x21425c=_0x397048;this[_0x21425c(0x195)][_0x21425c(0x198)][_0x21425c(0x194)](_0x47e3fe)[_0x21425c(0x192)]();}[_0x397048(0x191)](){var _0x2fd319=_0x397048;this[_0x2fd319(0x195)][_0x2fd319(0x198)][_0x2fd319(0x194)](_0x47e3fe)[_0x2fd319(0x191)]();}[_0x397048(0x190)](_0x115909){var _0x2a73d4=_0x397048;this[_0x2a73d4(0x195)][_0x2a73d4(0x198)][_0x2a73d4(0x194)](_0x47e3fe)[_0x2a73d4(0x19a)](_0x115909);}}function _0x39bb(_0xd5d5d9,_0xa92fa){var _0x132fac=_0x132f();return _0x39bb=function(_0x39bbf7,_0x221fb4){_0x39bbf7=_0x39bbf7-0x186;var _0x2ed185=_0x132fac[_0x39bbf7];return _0x2ed185;},_0x39bb(_0xd5d5d9,_0xa92fa);}function _0x132f(){var _0x35abc9=['533212qcFCkp','get','context','startConversation','ai.chat.initialConversation','plugins','isOfficialPlugin','_registerToolDataCallback','pluginName','ai.chat.context','4213944BDfLcN','new','define','3042520CjzRss','4850inWWFE','23784687YsfpIH','734332xltPAZ','3jRKIuc','sendMessage','isPremiumPlugin','2844TphHjk','419386EuMWLi','addSelectionToChatContext','requires','AIChat','config','registerToolDataCallback','focusPromptInput','removeSelectionFromChatContext'];_0x132f=function(){return _0x35abc9;};return _0x132f();}
23
+ var _0x144cd7=_0x43d9;function _0x43d9(_0x1adbc6,_0x4544b2){var _0xfc361b=_0xfc36();return _0x43d9=function(_0x43d9de,_0x635b62){_0x43d9de=_0x43d9de-0x137;var _0x38fbb4=_0xfc361b[_0x43d9de];return _0x38fbb4;},_0x43d9(_0x1adbc6,_0x4544b2);}(function(_0x15fb49,_0x175cca){var _0x48d982=_0x43d9,_0x79d1dd=_0x15fb49();while(!![]){try{var _0x3674ab=parseInt(_0x48d982(0x142))/0x1+-parseInt(_0x48d982(0x137))/0x2*(parseInt(_0x48d982(0x13d))/0x3)+-parseInt(_0x48d982(0x14b))/0x4*(parseInt(_0x48d982(0x138))/0x5)+-parseInt(_0x48d982(0x150))/0x6+-parseInt(_0x48d982(0x14a))/0x7*(-parseInt(_0x48d982(0x154))/0x8)+parseInt(_0x48d982(0x148))/0x9+parseInt(_0x48d982(0x14e))/0xa;if(_0x3674ab===_0x175cca)break;else _0x79d1dd['push'](_0x79d1dd['shift']());}catch(_0x2fee55){_0x79d1dd['push'](_0x79d1dd['shift']());}}}(_0xfc36,0xd2f19));import{ContextPlugin as _0xbaa729}from'ckeditor5/src/core.js';import{AIChatController as _0x13c133}from'./aichatcontroller.js';import{AIEditing as _0x572d41}from'../aicore/aiediting.js';import{AIChatUI as _0x4f74f7}from'./aichatui.js';import{AIChatHistory as _0x4be63c}from'../aichathistory/aichathistory.js';function _0xfc36(){var _0x32262a=['1633056LNwtoC','define','AIChat','focusPromptInput','8eJOJTa','22926GnPWON','5dQcqMx','startConversation','isPremiumPlugin','requires','registerToolDataCallback','288pcwbjz','removeSelectionFromChatContext','isOfficialPlugin','plugins','context','581716pDWivM','sendMessage','pluginName','config','new','addSelectionToChatContext','985797nFiyOB','get','11514027SyNTQq','594124DrXNoa','_registerToolDataCallback','ai.chat.context','490700LlsVUT','ai.chat.initialConversation'];_0xfc36=function(){return _0x32262a;};return _0xfc36();}export class AIChat extends _0xbaa729{static get[_0x144cd7(0x13b)](){return[_0x13c133,_0x572d41,_0x4f74f7,_0x4be63c];}static get[_0x144cd7(0x144)](){var _0x24ab86=_0x144cd7;return _0x24ab86(0x152);}static get[_0x144cd7(0x13f)](){return!0x0;}static get[_0x144cd7(0x13a)](){return!0x0;}constructor(_0x2d7242){var _0x20fb02=_0x144cd7;super(_0x2d7242),this[_0x20fb02(0x141)][_0x20fb02(0x145)][_0x20fb02(0x151)](_0x20fb02(0x14d),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x20fb02(0x141)][_0x20fb02(0x145)][_0x20fb02(0x151)](_0x20fb02(0x14f),_0x20fb02(0x146));}async[_0x144cd7(0x147)](){var _0x4944b6=_0x144cd7;await this[_0x4944b6(0x141)][_0x4944b6(0x140)][_0x4944b6(0x149)](_0x13c133)[_0x4944b6(0x147)]();}async[_0x144cd7(0x139)](){var _0x6688b1=_0x144cd7;await this[_0x6688b1(0x141)][_0x6688b1(0x140)][_0x6688b1(0x149)](_0x13c133)[_0x6688b1(0x139)]();}async[_0x144cd7(0x143)]({message:_0x5ab1d0,attributes:_0x248e8b}){var _0x2dd2a4=_0x144cd7;await this[_0x2dd2a4(0x141)][_0x2dd2a4(0x140)][_0x2dd2a4(0x149)](_0x13c133)[_0x2dd2a4(0x143)]({'message':_0x5ab1d0,'attributes':_0x248e8b});}[_0x144cd7(0x13e)](){var _0x5d8494=_0x144cd7;this[_0x5d8494(0x141)][_0x5d8494(0x140)][_0x5d8494(0x149)](_0x13c133)[_0x5d8494(0x13e)]();}[_0x144cd7(0x153)](){var _0x196f8a=_0x144cd7;this[_0x196f8a(0x141)][_0x196f8a(0x140)][_0x196f8a(0x149)](_0x13c133)[_0x196f8a(0x153)]();}[_0x144cd7(0x13c)](_0x41d3bb){var _0x57b379=_0x144cd7;this[_0x57b379(0x141)][_0x57b379(0x140)][_0x57b379(0x149)](_0x13c133)[_0x57b379(0x14c)](_0x41d3bb);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x112432=_0x3506;function _0x3506(_0x4d6de8,_0x552995){const _0x4564d1=_0x4564();return _0x3506=function(_0x350619,_0x318153){_0x350619=_0x350619-0xd3;let _0x2c2232=_0x4564d1[_0x350619];return _0x2c2232;},_0x3506(_0x4d6de8,_0x552995);}(function(_0x4388ff,_0x456f56){const _0x517995=_0x3506,_0x107edf=_0x4388ff();while(!![]){try{const _0x3ef10c=-parseInt(_0x517995(0x109))/0x1+-parseInt(_0x517995(0xf1))/0x2*(-parseInt(_0x517995(0x105))/0x3)+-parseInt(_0x517995(0xdb))/0x4+-parseInt(_0x517995(0xe0))/0x5+parseInt(_0x517995(0xd5))/0x6+-parseInt(_0x517995(0xf4))/0x7*(-parseInt(_0x517995(0xec))/0x8)+parseInt(_0x517995(0xe8))/0x9;if(_0x3ef10c===_0x456f56)break;else _0x107edf['push'](_0x107edf['shift']());}catch(_0x52a3d3){_0x107edf['push'](_0x107edf['shift']());}}}(_0x4564,0x537a5));import{Plugin as _0x5df656}from'ckeditor5/src/core.js';import{AIBalloon as _0x3edd7a}from'../aiballoon/aiballoon.js';import{AI_REPLY_ACTIONS as _0x48d540}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x216dd0}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x26263c}from'../aicore/utils/eventnames.js';function _0x4564(){const _0x3b3fc8=['once','TrackChanges','open','2803055PlxZqk','toggleRotatorButtonsVisibility','requires','areActionsDisabled','close','locale','get','_restoreDefaultViewFocus','229626pqANJf','showRotator','isOfficialPlugin','view','8IGCCvZ','plugins','_chatBalloonView','focus','headerView','24974edXVgi','showDiff','delegate','1672958iMnZaS','pluginName','ck-ai-chat-balloon','filter','AIChatBalloon','commands','rejectSuggestion','showPrevious','updateContent','bind','_createChatBalloonView','insertSuggestion','isPremiumPlugin','children','remove','dialogClosed','_toggleRotatorButtonsInDialogHeader','141iFeChz','AIBalloon','togglePartToolbarEnabled','isTrackChangesOn','115294NYVGbJ','beforeDialogClosed','set','render','nextButtonView','value','has','addMany','setState','aiChatBalloon','config','trackChanges','2678514AIsFTF','Dialog','previousButtonView','showNext','ai.availableReplyActions','editor','1119944NhEAWP','applySuggestion'];_0x4564=function(){return _0x3b3fc8;};return _0x4564();}import{Dialog as _0x4fa0c3}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x5df656{static get[_0x112432(0xe2)](){return[_0x4fa0c3,_0x3edd7a];}static get[_0x112432(0xf5)](){const _0x3482d8=_0x112432;return _0x3482d8(0xf8);}static get[_0x112432(0xea)](){return!0x0;}static get[_0x112432(0x100)](){return!0x0;}[_0x112432(0xee)];constructor(_0x992453){const _0x493fed=_0x112432;super(_0x992453),this[_0x493fed(0x10b)](_0x493fed(0xf2),!0x1);}[_0x112432(0xdf)](_0x15a9c){const _0x41248b=_0x112432,_0xb0aaf1=this[_0x41248b(0xda)];this[_0x41248b(0xee)]||(this[_0x41248b(0xee)]=this[_0x41248b(0xfe)]()),_0xb0aaf1[_0x41248b(0xed)][_0x41248b(0xe6)](_0x41248b(0x106))[_0x41248b(0xdf)]({..._0x15a9c,'id':_0x41248b(0x112),'class':_0x41248b(0xf6),'mainView':this[_0x41248b(0xee)]}),this[_0x41248b(0x104)](_0x15a9c[_0x41248b(0xe9)]),this[_0x41248b(0xee)][_0x41248b(0x107)](!_0x15a9c[_0x41248b(0xe3)]),this[_0x41248b(0xe7)]();}[_0x112432(0xe4)](){const _0xa49998=_0x112432;this[_0xa49998(0xda)][_0xa49998(0xed)][_0xa49998(0xe6)](_0xa49998(0x106))[_0xa49998(0xe4)]();}[_0x112432(0xfc)](_0x1b3332){const _0x5472c1=_0x112432;return this[_0x5472c1(0xee)]||(this[_0x5472c1(0xee)]=this[_0x5472c1(0xfe)]()),this[_0x5472c1(0xee)][_0x5472c1(0xfc)](_0x1b3332);}[_0x112432(0x111)](_0x4ac987){const _0x49ddb4=_0x112432;this[_0x49ddb4(0xee)]&&this[_0x49ddb4(0xee)][_0x49ddb4(0x111)](_0x4ac987);}[_0x112432(0xfe)](){const _0xa10466=_0x112432,_0x10f825=this[_0xa10466(0xda)],_0x2da645=_0x10f825[_0xa10466(0xed)][_0xa10466(0xe6)](_0xa10466(0x106)),_0x549a04=_0x10f825[_0xa10466(0xf9)][_0xa10466(0xe6)](_0xa10466(0xd4));let _0xda0b4=_0x10f825[_0xa10466(0xd3)][_0xa10466(0xe6)](_0xa10466(0xd9))||[..._0x48d540];_0x10f825[_0xa10466(0xed)][_0xa10466(0x10f)](_0xa10466(0xde))||(_0xda0b4=_0xda0b4[_0xa10466(0xf7)](_0xa7b2cc=>_0xa10466(0xff)!=_0xa7b2cc));const _0x64878=new _0x216dd0(_0x10f825[_0xa10466(0xe5)],{'availableActions':_0xda0b4,'showApplyButton':!0x0,'showSuggestButton':!!_0x549a04});return _0x64878[_0xa10466(0xfd)](_0xa10466(0xf2))['to'](this),_0x64878[_0xa10466(0xf3)](..._0x26263c)['to'](this),_0x64878[_0xa10466(0xf3)](_0xa10466(0xfb),_0xa10466(0xd8))['to'](this),_0x2da645[_0xa10466(0xf3)](_0xa10466(0x103))['to'](this),_0x64878['on'](_0xa10466(0xdc),this[_0xa10466(0xe7)][_0xa10466(0xfd)](this)),_0x64878['on'](_0xa10466(0xff),this[_0xa10466(0xe7)][_0xa10466(0xfd)](this)),_0x64878['on'](_0xa10466(0xfa),this[_0xa10466(0xe7)][_0xa10466(0xfd)](this)),_0x549a04&&_0x64878[_0xa10466(0xfd)](_0xa10466(0x108))['to'](_0x549a04,_0xa10466(0x10e)),_0x64878[_0xa10466(0x10c)](),_0x64878;}[_0x112432(0x104)](_0x4ae4b2){const _0x56794c=_0x112432,_0x11530e=this[_0x56794c(0xda)],_0x4f0132=_0x11530e[_0x56794c(0xed)][_0x56794c(0xe6)](_0x56794c(0xd6))[_0x56794c(0xeb)][_0x56794c(0xf0)][_0x56794c(0x101)];this[_0x56794c(0xee)][_0x56794c(0xe1)](_0x4ae4b2),_0x4f0132[_0x56794c(0x10f)](this[_0x56794c(0xee)][_0x56794c(0xd7)])||(_0x4f0132[_0x56794c(0x110)]([this[_0x56794c(0xee)][_0x56794c(0xd7)],this[_0x56794c(0xee)][_0x56794c(0x10d)]],0x0),_0x11530e[_0x56794c(0xed)][_0x56794c(0xe6)](_0x56794c(0x106))[_0x56794c(0xdd)](_0x56794c(0x10a),()=>{const _0x1106e5=_0x56794c;_0x4f0132[_0x1106e5(0x102)](this[_0x1106e5(0xee)][_0x1106e5(0xd7)]),_0x4f0132[_0x1106e5(0x102)](this[_0x1106e5(0xee)][_0x1106e5(0x10d)]);}));}[_0x112432(0xe7)](){const _0x259669=_0x112432;this[_0x259669(0xee)][_0x259669(0xef)]();}}
23
+ const _0x5196ef=_0xbb2f;(function(_0x5a9984,_0x4a0cf1){const _0x10cefa=_0xbb2f,_0x83d04f=_0x5a9984();while(!![]){try{const _0x17ad54=-parseInt(_0x10cefa(0x98))/0x1+parseInt(_0x10cefa(0x8b))/0x2*(-parseInt(_0x10cefa(0xb1))/0x3)+-parseInt(_0x10cefa(0xa9))/0x4+parseInt(_0x10cefa(0xbd))/0x5*(-parseInt(_0x10cefa(0xa1))/0x6)+parseInt(_0x10cefa(0x97))/0x7*(-parseInt(_0x10cefa(0x86))/0x8)+parseInt(_0x10cefa(0x8d))/0x9*(parseInt(_0x10cefa(0x91))/0xa)+parseInt(_0x10cefa(0x93))/0xb;if(_0x17ad54===_0x4a0cf1)break;else _0x83d04f['push'](_0x83d04f['shift']());}catch(_0xe5b193){_0x83d04f['push'](_0x83d04f['shift']());}}}(_0x1f0f,0xc8df5));function _0xbb2f(_0x23fbff,_0x33b5e3){const _0x1f0fb7=_0x1f0f();return _0xbb2f=function(_0xbb2f5,_0x42b9d5){_0xbb2f5=_0xbb2f5-0x80;let _0x22e351=_0x1f0fb7[_0xbb2f5];return _0x22e351;},_0xbb2f(_0x23fbff,_0x33b5e3);}import{Plugin as _0x338d7c}from'ckeditor5/src/core.js';function _0x1f0f(){const _0x47ad0c=['AIChatBalloon','toggleRotatorButtonsVisibility','aiChatBalloon','dialogClosed','set','render','plugins','401585fVgeQt','headerView','nextButtonView','showRotator','open','isOfficialPlugin','delegate','get','locale','Dialog','view','200IeIMxx','ck-ai-chat-balloon','trackChanges','_createChatBalloonView','previousButtonView','12MhjFQP','value','1233jTqTVs','showDiff','commands','focus','91870YBDmQZ','AIBalloon','36601664vBlAmg','once','isPremiumPlugin','showNext','336833zrmRjD','828099PeluIs','_restoreDefaultViewFocus','pluginName','config','applySuggestion','editor','ai.availableReplyActions','_chatBalloonView','setState','12lqqmTk','has','children','updateContent','togglePartToolbarEnabled','beforeDialogClosed','rejectSuggestion','insertSuggestion','3728616UPYeYr','areActionsDisabled','requires','close','_toggleRotatorButtonsInDialogHeader','remove','TrackChanges','addMany','319704WlvLyC','bind','isTrackChangesOn','filter','showPrevious'];_0x1f0f=function(){return _0x47ad0c;};return _0x1f0f();}import{AIBalloon as _0x5ce7cf}from'../aiballoon/aiballoon.js';import{AI_REPLY_ACTIONS as _0xc04859}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x288dc6}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x5556dd}from'../aicore/utils/eventnames.js';import{Dialog as _0x13fac4}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x338d7c{static get[_0x5196ef(0xab)](){return[_0x13fac4,_0x5ce7cf];}static get[_0x5196ef(0x9a)](){const _0x35400b=_0x5196ef;return _0x35400b(0xb6);}static get[_0x5196ef(0x80)](){return!0x0;}static get[_0x5196ef(0x95)](){return!0x0;}[_0x5196ef(0x9f)];constructor(_0x2517ae){const _0x1d3e72=_0x5196ef;super(_0x2517ae),this[_0x1d3e72(0xba)](_0x1d3e72(0x8e),!0x1);}[_0x5196ef(0xc1)](_0x5d873b){const _0x57ceed=_0x5196ef,_0x4004a7=this[_0x57ceed(0x9d)];this[_0x57ceed(0x9f)]||(this[_0x57ceed(0x9f)]=this[_0x57ceed(0x89)]()),_0x4004a7[_0x57ceed(0xbc)][_0x57ceed(0x82)](_0x57ceed(0x92))[_0x57ceed(0xc1)]({..._0x5d873b,'id':_0x57ceed(0xb8),'class':_0x57ceed(0x87),'mainView':this[_0x57ceed(0x9f)]}),this[_0x57ceed(0xad)](_0x5d873b[_0x57ceed(0xc0)]),this[_0x57ceed(0x9f)][_0x57ceed(0xa5)](!_0x5d873b[_0x57ceed(0xaa)]),this[_0x57ceed(0x99)]();}[_0x5196ef(0xac)](){const _0x2e8828=_0x5196ef;this[_0x2e8828(0x9d)][_0x2e8828(0xbc)][_0x2e8828(0x82)](_0x2e8828(0x92))[_0x2e8828(0xac)]();}[_0x5196ef(0xa4)](_0x5b6dd6){const _0x510bcc=_0x5196ef;return this[_0x510bcc(0x9f)]||(this[_0x510bcc(0x9f)]=this[_0x510bcc(0x89)]()),this[_0x510bcc(0x9f)][_0x510bcc(0xa4)](_0x5b6dd6);}[_0x5196ef(0xa0)](_0x5ca559){const _0x53211a=_0x5196ef;this[_0x53211a(0x9f)]&&this[_0x53211a(0x9f)][_0x53211a(0xa0)](_0x5ca559);}[_0x5196ef(0x89)](){const _0x4df6ba=_0x5196ef,_0x5c6924=this[_0x4df6ba(0x9d)],_0x552ec4=_0x5c6924[_0x4df6ba(0xbc)][_0x4df6ba(0x82)](_0x4df6ba(0x92)),_0x1c8c9=_0x5c6924[_0x4df6ba(0x8f)][_0x4df6ba(0x82)](_0x4df6ba(0x88));let _0x1c8670=_0x5c6924[_0x4df6ba(0x9b)][_0x4df6ba(0x82)](_0x4df6ba(0x9e))||[..._0xc04859];_0x5c6924[_0x4df6ba(0xbc)][_0x4df6ba(0xa2)](_0x4df6ba(0xaf))||(_0x1c8670=_0x1c8670[_0x4df6ba(0xb4)](_0x24cb1d=>_0x4df6ba(0xa8)!=_0x24cb1d));const _0x289477=new _0x288dc6(_0x5c6924[_0x4df6ba(0x83)],{'availableActions':_0x1c8670,'showApplyButton':!0x0,'showSuggestButton':!!_0x1c8c9});return _0x289477[_0x4df6ba(0xb2)](_0x4df6ba(0x8e))['to'](this),_0x289477[_0x4df6ba(0x81)](..._0x5556dd)['to'](this),_0x289477[_0x4df6ba(0x81)](_0x4df6ba(0xb5),_0x4df6ba(0x96))['to'](this),_0x552ec4[_0x4df6ba(0x81)](_0x4df6ba(0xb9))['to'](this),_0x289477['on'](_0x4df6ba(0x9c),this[_0x4df6ba(0x99)][_0x4df6ba(0xb2)](this)),_0x289477['on'](_0x4df6ba(0xa8),this[_0x4df6ba(0x99)][_0x4df6ba(0xb2)](this)),_0x289477['on'](_0x4df6ba(0xa7),this[_0x4df6ba(0x99)][_0x4df6ba(0xb2)](this)),_0x1c8c9&&_0x289477[_0x4df6ba(0xb2)](_0x4df6ba(0xb3))['to'](_0x1c8c9,_0x4df6ba(0x8c)),_0x289477[_0x4df6ba(0xbb)](),_0x289477;}[_0x5196ef(0xad)](_0xe707d9){const _0xa76d5b=_0x5196ef,_0x611485=this[_0xa76d5b(0x9d)],_0x50ff66=_0x611485[_0xa76d5b(0xbc)][_0xa76d5b(0x82)](_0xa76d5b(0x84))[_0xa76d5b(0x85)][_0xa76d5b(0xbe)][_0xa76d5b(0xa3)];this[_0xa76d5b(0x9f)][_0xa76d5b(0xb7)](_0xe707d9),_0x50ff66[_0xa76d5b(0xa2)](this[_0xa76d5b(0x9f)][_0xa76d5b(0x8a)])||(_0x50ff66[_0xa76d5b(0xb0)]([this[_0xa76d5b(0x9f)][_0xa76d5b(0x8a)],this[_0xa76d5b(0x9f)][_0xa76d5b(0xbf)]],0x0),_0x611485[_0xa76d5b(0xbc)][_0xa76d5b(0x82)](_0xa76d5b(0x92))[_0xa76d5b(0x94)](_0xa76d5b(0xa6),()=>{const _0x2d388e=_0xa76d5b;_0x50ff66[_0x2d388e(0xae)](this[_0x2d388e(0x9f)][_0x2d388e(0x8a)]),_0x50ff66[_0x2d388e(0xae)](this[_0x2d388e(0x9f)][_0x2d388e(0xbf)]);}));}[_0x5196ef(0x99)](){const _0x5dfa4e=_0x5196ef;this[_0x5dfa4e(0x9f)][_0x5dfa4e(0x90)]();}}