@ckeditor/ckeditor5-ai 47.4.0-alpha.5 → 47.4.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xbed6b6=_0x5a99;(function(_0x3c4c13,_0x14d02d){const _0x320250=_0x5a99,_0x4ff8c7=_0x3c4c13();while(!![]){try{const _0x303943=parseInt(_0x320250(0x149))/0x1+-parseInt(_0x320250(0x167))/0x2*(parseInt(_0x320250(0x12a))/0x3)+parseInt(_0x320250(0x156))/0x4*(-parseInt(_0x320250(0x15b))/0x5)+-parseInt(_0x320250(0x144))/0x6*(parseInt(_0x320250(0x130))/0x7)+-parseInt(_0x320250(0x16d))/0x8+-parseInt(_0x320250(0x136))/0x9*(parseInt(_0x320250(0x138))/0xa)+parseInt(_0x320250(0x176))/0xb;if(_0x303943===_0x14d02d)break;else _0x4ff8c7['push'](_0x4ff8c7['shift']());}catch(_0x396f69){_0x4ff8c7['push'](_0x4ff8c7['shift']());}}}(_0x3248,0x846c8));import{FocusTracker as _0x2fe29d,KeystrokeHandler as _0xc1d206}from'ckeditor5/src/utils.js';import{View as _0x20289d,FocusCycler as _0x5f3f6c,createLabeledTextarea as _0x3fe84e}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0xb31da3,AIFormToolbarViewMainActionLabel as _0x182df9}from'./aiformtoolbarview.js';function _0x5a99(_0x491142,_0x4e268c){const _0x32480b=_0x3248();return _0x5a99=function(_0x5a99a8,_0x4128c3){_0x5a99a8=_0x5a99a8-0x125;let _0x5b563d=_0x32480b[_0x5a99a8];return _0x5b563d;},_0x5a99(_0x491142,_0x4e268c);}import{AIFormContentArea as _0xbd3d8a}from'./aiformcontentarea.js';import{AIFormErrorView as _0x400438}from'./aiformerrorview.js';import{AIFormPromptView as _0x3432b9}from'./aiformpromptview.js';function _0x3248(){const _0xbafde8=['delegate','45932392dJqIyX','ck-hidden','clearHistory','set','add','_createHistoryView','high','isVisible','focus','insertContentBelow','9582imMVWt','focusFirst','execute','fire','focusCycler','copyButtonView','1519mlquRu','isEnabled','render','stopButton','_createPromptView','startProcessing','27HAWdiL','chain','2344570EzNHFe','prompt','REPLACE','search','historyGroupView','isProcessing','ck-ai-form','listenTo','bindTemplate','replaceButton','Ask\x20AI\x20to\x20edit\x20or\x20generate','_promptHistory','9732WqhFmO','insertButton','focusLast','ck-ai-form-content','toolbar','62418kZuiJA','Ask\x20AI\x20to\x20improve\x20generated\x20text','fieldView','submit','createCollection','bindTo','promptView','mainAction','element','reset','Empty\x20history','stopProcessing','clear','132jLKcyC','handleError','label','text','tryAgainEvent','158335ZoDPGD','focusTracker','submitPrompt','setTemplate','AI_ERROR_FAILED','tryAgainButton','keystrokes','contentArea','_focusables','items','locale','_createToolbar','578yjzsmc','div','replaceContent','value','shift\x20+\x20tab','tab','5378080VauCeB','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','trim','isError','bind','errorView','queryView','finishProcessing'];_0x3248=function(){return _0xbafde8;};return _0x3248();}import{AIHistoryListView as _0x1cbc8e}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x4c5e3a}from'./aihistorylistitemview.js';import{PromptHistory as _0x470ce2}from'./prompthistory.js';import{getTranslation as _0x54f9d2}from'../../utils/common-translations.js';import{escape as _0x3cfbae}from'es-toolkit/compat';export class AIFormView extends _0x20289d{[_0xbed6b6(0x15c)];[_0xbed6b6(0x161)];[_0xbed6b6(0x162)];[_0xbed6b6(0x148)];[_0xbed6b6(0x14f)];[_0xbed6b6(0x172)];[_0xbed6b6(0x163)];[_0xbed6b6(0x12e)];[_0xbed6b6(0x143)];constructor(_0x1f455,_0x3b2c49,_0x45f4b2=''){const _0x212713=_0xbed6b6;super(_0x1f455),this[_0x212713(0x179)](_0x212713(0x131),!0x0),this[_0x212713(0x179)](_0x212713(0x13d),!0x1),this[_0x212713(0x179)](_0x212713(0x139),''),this[_0x212713(0x179)](_0x212713(0x16a),''),this[_0x212713(0x179)](_0x212713(0x170),!0x1),this[_0x212713(0x179)](_0x212713(0x150),_0x182df9[_0x212713(0x13a)]),this[_0x212713(0x143)]=new _0x470ce2(),this[_0x212713(0x172)]=new _0x400438(_0x1f455),this[_0x212713(0x162)]=new _0xbd3d8a(_0x1f455,_0x45f4b2),this[_0x212713(0x162)][_0x212713(0x171)](_0x212713(0x13d))['to'](this),this[_0x212713(0x162)][_0x212713(0x171)](_0x212713(0x16a))['to'](this),this[_0x212713(0x148)]=this[_0x212713(0x166)](),this[_0x212713(0x148)][_0x212713(0x171)](_0x212713(0x150))['to'](this),this[_0x212713(0x14f)]=this[_0x212713(0x134)](),this[_0x212713(0x15c)]=new _0x2fe29d(),this[_0x212713(0x161)]=new _0xc1d206(),this[_0x212713(0x163)]=this[_0x212713(0x14d)]([this[_0x212713(0x162)],this[_0x212713(0x162)][_0x212713(0x12f)],this[_0x212713(0x148)],this[_0x212713(0x14f)]]),this[_0x212713(0x12e)]=new _0x5f3f6c({'focusables':this[_0x212713(0x163)],'focusTracker':this[_0x212713(0x15c)],'keystrokeHandler':this[_0x212713(0x161)],'actions':{'focusPrevious':_0x212713(0x16b),'focusNext':_0x212713(0x16c)}}),this[_0x212713(0x12e)][_0x212713(0x137)](this[_0x212713(0x14f)][_0x212713(0x12e)]),this[_0x212713(0x14f)][_0x212713(0x173)][_0x212713(0x14b)][_0x212713(0x171)](_0x212713(0x16a))['to'](this,_0x212713(0x139));const _0x2f6573=this[_0x212713(0x140)];this[_0x212713(0x15e)]({'tag':_0x212713(0x168),'attributes':{'class':['ck',_0x212713(0x13e),_0x3b2c49],'tabindex':'-1'},'children':[{'tag':_0x212713(0x168),'attributes':{'class':['ck',_0x212713(0x147)]},'children':[{'tag':_0x212713(0x168),'attributes':{'class':[_0x2f6573['if'](_0x212713(0x170),_0x212713(0x177),_0x1063af=>!_0x1063af)]},'children':[this[_0x212713(0x172)]]},this[_0x212713(0x162)],this[_0x212713(0x148)],this[_0x212713(0x14f)]]}]});}[_0xbed6b6(0x132)](){const _0x3ba0c9=_0xbed6b6;super[_0x3ba0c9(0x132)](),this[_0x3ba0c9(0x15c)][_0x3ba0c9(0x17a)](this[_0x3ba0c9(0x162)][_0x3ba0c9(0x151)]),this[_0x3ba0c9(0x15c)][_0x3ba0c9(0x17a)](this[_0x3ba0c9(0x162)][_0x3ba0c9(0x12f)][_0x3ba0c9(0x151)]),this[_0x3ba0c9(0x15c)][_0x3ba0c9(0x17a)](this[_0x3ba0c9(0x148)][_0x3ba0c9(0x151)]),this[_0x3ba0c9(0x15c)][_0x3ba0c9(0x17a)](this[_0x3ba0c9(0x14f)][_0x3ba0c9(0x151)]),this[_0x3ba0c9(0x161)][_0x3ba0c9(0x13f)](this[_0x3ba0c9(0x151)]);}[_0xbed6b6(0x128)](_0x4849cb=0x1){const _0x4e6f1d=_0xbed6b6;-0x1===_0x4849cb?this[_0x4e6f1d(0x12e)][_0x4e6f1d(0x146)]():this[_0x4e6f1d(0x12e)][_0x4e6f1d(0x12b)]();}[_0xbed6b6(0x152)](){const _0x27a751=_0xbed6b6;this[_0x27a751(0x139)]='',this[_0x27a751(0x16a)]='',this[_0x27a751(0x170)]=!0x1,this[_0x27a751(0x14f)][_0x27a751(0x152)](),this[_0x27a751(0x162)][_0x27a751(0x127)]=!0x1,this[_0x27a751(0x148)][_0x27a751(0x127)]=!0x1;}[_0xbed6b6(0x134)](){const _0x48f9ff=_0xbed6b6,_0x1796c0=this[_0x48f9ff(0x165)],_0x411aa6=new _0x3432b9(_0x1796c0,{'queryView':{'label':_0x54f9d2(_0x1796c0,_0x48f9ff(0x142)),'creator':_0x3fe84e,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x54f9d2(_0x1796c0,_0x48f9ff(0x153)),'secondary':_0x54f9d2(_0x1796c0,_0x48f9ff(0x16e))}}},'filteredView':this[_0x48f9ff(0x125)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x411aa6[_0x48f9ff(0x171)](_0x48f9ff(0x131))['to'](this,_0x48f9ff(0x131),this,_0x48f9ff(0x13d),(_0x25b480,_0x391911)=>_0x25b480&&!_0x391911),this[_0x48f9ff(0x13f)](_0x411aa6,_0x48f9ff(0x14c),(_0x9b37e6,_0x1acb81)=>{const _0xab386b=_0x48f9ff;this[_0xab386b(0x139)]=_0x1acb81;const _0x49a89f=_0x3cfbae(_0x1acb81);this[_0xab386b(0x12d)](_0xab386b(0x15d),_0x49a89f),_0x1acb81[_0xab386b(0x16f)]()&&this[_0xab386b(0x143)][_0xab386b(0x17a)]({'prompt':_0x49a89f},0x0);},{'priority':_0x48f9ff(0x126)}),_0x411aa6;}[_0xbed6b6(0x125)](){const _0xd77763=_0xbed6b6,_0x53ac3f=new _0x1cbc8e(this[_0xd77763(0x165)]);return _0x53ac3f[_0xd77763(0x13c)][_0xd77763(0x164)][_0xd77763(0x14e)](this[_0xd77763(0x143)])['as'](_0x4c5e3a),_0x53ac3f['on'](_0xd77763(0x178),()=>{const _0x2599ff=_0xd77763;this[_0x2599ff(0x143)][_0x2599ff(0x155)](),this[_0x2599ff(0x14f)][_0x2599ff(0x13b)](''),this[_0x2599ff(0x14f)][_0x2599ff(0x128)]();}),_0x53ac3f;}[_0xbed6b6(0x166)](){const _0x5f16c4=_0xbed6b6,_0x5c4157=new _0xb31da3(this[_0x5f16c4(0x165)]);return _0x5c4157[_0x5f16c4(0x141)][_0x5f16c4(0x171)](_0x5f16c4(0x131))['to'](this,_0x5f16c4(0x131),this,_0x5f16c4(0x13d),this,_0x5f16c4(0x16a),(_0x503811,_0x4d79c7,_0x33f08c)=>_0x503811&&!_0x4d79c7&&!!_0x33f08c),_0x5c4157[_0x5f16c4(0x141)][_0x5f16c4(0x175)](_0x5f16c4(0x12c))['to'](this,_0x5f16c4(0x169)),_0x5c4157[_0x5f16c4(0x145)][_0x5f16c4(0x171)](_0x5f16c4(0x131))['to'](this,_0x5f16c4(0x131),this,_0x5f16c4(0x13d),this,_0x5f16c4(0x16a),(_0x3a112b,_0x51b9c0,_0x358ab0)=>_0x3a112b&&!_0x51b9c0&&!!_0x358ab0),_0x5c4157[_0x5f16c4(0x145)][_0x5f16c4(0x175)](_0x5f16c4(0x12c))['to'](this,_0x5f16c4(0x129)),_0x5c4157[_0x5f16c4(0x160)][_0x5f16c4(0x171)](_0x5f16c4(0x131))['to'](this,_0x5f16c4(0x131),this,_0x5f16c4(0x13d),(_0x363fc6,_0x3dc12f)=>_0x363fc6&&!_0x3dc12f),_0x5c4157[_0x5f16c4(0x160)][_0x5f16c4(0x175)](_0x5f16c4(0x12c))['to'](this,_0x5f16c4(0x15a)),_0x5c4157[_0x5f16c4(0x133)][_0x5f16c4(0x171)](_0x5f16c4(0x131))['to'](this,_0x5f16c4(0x13d)),_0x5c4157[_0x5f16c4(0x133)][_0x5f16c4(0x175)](_0x5f16c4(0x12c))['to'](this,_0x5f16c4(0x154)),_0x5c4157;}[_0xbed6b6(0x135)](){const _0x1aa024=_0xbed6b6;this[_0x1aa024(0x16a)]='',this[_0x1aa024(0x170)]=!0x1,this[_0x1aa024(0x13d)]=!0x0,this[_0x1aa024(0x162)][_0x1aa024(0x127)]=!0x0,this[_0x1aa024(0x148)][_0x1aa024(0x127)]=!0x0,this[_0x1aa024(0x162)][_0x1aa024(0x128)]();}[_0xbed6b6(0x174)](){const _0x4e33d2=_0xbed6b6,_0x49b180=this[_0x4e33d2(0x165)];this[_0x4e33d2(0x13d)]=!0x1,this[_0x4e33d2(0x139)]='',this[_0x4e33d2(0x14f)][_0x4e33d2(0x152)](),this[_0x4e33d2(0x16a)]&&(this[_0x4e33d2(0x14f)][_0x4e33d2(0x173)][_0x4e33d2(0x158)]=_0x54f9d2(_0x49b180,_0x4e33d2(0x14a)));}[_0xbed6b6(0x157)](_0x58cd1a){const _0x57f70f=_0xbed6b6,_0x49684f=this[_0x57f70f(0x165)];this[_0x57f70f(0x174)](),this[_0x57f70f(0x170)]=!0x0,this[_0x57f70f(0x172)][_0x57f70f(0x159)]=_0x58cd1a||_0x54f9d2(_0x49684f,_0x57f70f(0x15f)),this[_0x57f70f(0x16a)]||(this[_0x57f70f(0x162)][_0x57f70f(0x127)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x55bf(_0x3a2964,_0x38f4c3){const _0x1f45f0=_0x1f45();return _0x55bf=function(_0x55bf86,_0xe872d3){_0x55bf86=_0x55bf86-0x9c;let _0xd87662=_0x1f45f0[_0x55bf86];return _0xd87662;},_0x55bf(_0x3a2964,_0x38f4c3);}(function(_0xae524e,_0x548302){const _0x49e4c4=_0x55bf,_0x2522b0=_0xae524e();while(!![]){try{const _0x2ced07=parseInt(_0x49e4c4(0xa3))/0x1+parseInt(_0x49e4c4(0xad))/0x2+parseInt(_0x49e4c4(0xa4))/0x3*(-parseInt(_0x49e4c4(0x9e))/0x4)+parseInt(_0x49e4c4(0xa7))/0x5*(parseInt(_0x49e4c4(0x9c))/0x6)+parseInt(_0x49e4c4(0xac))/0x7*(parseInt(_0x49e4c4(0xa9))/0x8)+parseInt(_0x49e4c4(0x9f))/0x9*(parseInt(_0x49e4c4(0xab))/0xa)+-parseInt(_0x49e4c4(0xa0))/0xb;if(_0x2ced07===_0x548302)break;else _0x2522b0['push'](_0x2522b0['shift']());}catch(_0x46ea20){_0x2522b0['push'](_0x2522b0['shift']());}}}(_0x1f45,0xb2bb5));import{ListItemView as _0x59f43a,ButtonView as _0x56e580,ButtonLabelView as _0x4bd789}from'ckeditor5/src/ui.js';import{unescape as _0x2a31aa}from'es-toolkit/compat';function _0x1f45(){const _0x114c5a=['135UihToP','16394873azqemc','fire','prompt','389cnVgJC','21qSFoGX','add','set','3595btRwgP','execute','8eoiHph','children','387630KrIjER','2041655fhHBmC','1435364PekcSg','9252pTljLJ','locale','272772jSGCuh'];_0x1f45=function(){return _0x114c5a;};return _0x1f45();}export class AIHistoryListItemView extends _0x59f43a{constructor(_0x216fbf){const _0x2b8b23=_0x55bf;super();const _0x1268b9=new _0x4bd789(),_0x4b329c=new _0x56e580(this[_0x2b8b23(0x9d)],_0x1268b9);this[_0x2b8b23(0xaa)][_0x2b8b23(0xa5)](_0x4b329c),_0x4b329c[_0x2b8b23(0xa6)]({'label':_0x216fbf[_0x2b8b23(0xa2)],'withText':!0x0}),_0x4b329c['on'](_0x2b8b23(0xa8),()=>{const _0x33360f=_0x2b8b23;this[_0x33360f(0xa1)](_0x33360f(0xa8),{'value':_0x2a31aa(_0x216fbf[_0x33360f(0xa2)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x345a46=_0x5a46;(function(_0x32a6a8,_0x5419e1){const _0x45fac9=_0x5a46,_0x19d711=_0x32a6a8();while(!![]){try{const _0x4a36e0=parseInt(_0x45fac9(0x11e))/0x1*(parseInt(_0x45fac9(0x112))/0x2)+parseInt(_0x45fac9(0x10e))/0x3*(parseInt(_0x45fac9(0x116))/0x4)+parseInt(_0x45fac9(0x118))/0x5+parseInt(_0x45fac9(0x11c))/0x6+-parseInt(_0x45fac9(0x11f))/0x7*(parseInt(_0x45fac9(0x11a))/0x8)+-parseInt(_0x45fac9(0x107))/0x9+-parseInt(_0x45fac9(0x11d))/0xa*(parseInt(_0x45fac9(0x10f))/0xb);if(_0x4a36e0===_0x5419e1)break;else _0x19d711['push'](_0x19d711['shift']());}catch(_0x48f6e5){_0x19d711['push'](_0x19d711['shift']());}}}(_0xf02a,0x67260));function _0xf02a(){const _0x8ae0ce=['95873wzZYUS','889pAqsiu','children','_createClearHistoryButton','clearHistory','7379883eiKIcU','clearHistoryButton','delegate','Clear','execute','locale','set','3yFCmRZ','29755kIaVQE','fire','label','4wiSSZN','add','items','historyGroupView','444828TKhDIF','Prompt\x20history','3323355WPCqjD','length','3376WsSSmD','filter','2490078EtADHW','320OLiCWG'];_0xf02a=function(){return _0x8ae0ce;};return _0xf02a();}function _0x5a46(_0x1b5660,_0x131fb5){const _0xf02a2f=_0xf02a();return _0x5a46=function(_0x5a46e8,_0x59377e){_0x5a46e8=_0x5a46e8-0x107;let _0x485e48=_0xf02a2f[_0x5a46e8];return _0x485e48;},_0x5a46(_0x1b5660,_0x131fb5);}import{ListView as _0x5b7779,ListItemGroupView as _0xaba4cb,ButtonView as _0x571c91}from'ckeditor5/src/ui.js';import{getTranslation as _0x5685a1}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x5b7779{[_0x345a46(0x115)];[_0x345a46(0x108)];constructor(_0x126ea9){const _0x44a2c2=_0x345a46;super(_0x126ea9),this[_0x44a2c2(0x108)]=this[_0x44a2c2(0x121)](),this[_0x44a2c2(0x115)]=new _0xaba4cb(),this[_0x44a2c2(0x115)][_0x44a2c2(0x120)][_0x44a2c2(0x113)](this[_0x44a2c2(0x108)],0x1),this[_0x44a2c2(0x115)][_0x44a2c2(0x111)]=_0x5685a1(_0x126ea9,_0x44a2c2(0x117)),this[_0x44a2c2(0x115)][_0x44a2c2(0x114)][_0x44a2c2(0x109)](_0x44a2c2(0x10b))['to'](this),this[_0x44a2c2(0x114)][_0x44a2c2(0x113)](this[_0x44a2c2(0x115)]);}[_0x345a46(0x11b)](){const _0x556bb3=_0x345a46;let _0x22ec75=0x0;for(const _0x575207 of this[_0x556bb3(0x114)])_0x22ec75+=_0x575207[_0x556bb3(0x114)][_0x556bb3(0x119)];return{'resultsCount':_0x22ec75,'totalItemsCount':_0x22ec75};}[_0x345a46(0x121)](){const _0x512137=_0x345a46,_0x43822a=this[_0x512137(0x10c)],_0x1da548=new _0x571c91(this[_0x512137(0x10c)]);return _0x1da548[_0x512137(0x10d)]({'label':'('+_0x5685a1(_0x43822a,_0x512137(0x10a))+')','withText':!0x0}),_0x1da548['on'](_0x512137(0x10b),()=>this[_0x512137(0x110)](_0x512137(0x122))),_0x1da548;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20f404=_0x9310;(function(_0x49d11c,_0x5a6ac3){const _0x2314b1=_0x9310,_0x390f2a=_0x49d11c();while(!![]){try{const _0x383f1c=-parseInt(_0x2314b1(0x138))/0x1+parseInt(_0x2314b1(0x130))/0x2+-parseInt(_0x2314b1(0x12b))/0x3+parseInt(_0x2314b1(0x123))/0x4*(-parseInt(_0x2314b1(0x13a))/0x5)+-parseInt(_0x2314b1(0x12f))/0x6*(parseInt(_0x2314b1(0x12e))/0x7)+parseInt(_0x2314b1(0x136))/0x8+-parseInt(_0x2314b1(0x137))/0x9*(-parseInt(_0x2314b1(0x124))/0xa);if(_0x383f1c===_0x5a6ac3)break;else _0x390f2a['push'](_0x390f2a['shift']());}catch(_0x6c503e){_0x390f2a['push'](_0x390f2a['shift']());}}}(_0x54b2,0xe90f2));function _0x9310(_0x175355,_0x39c467){const _0x54b26d=_0x54b2();return _0x9310=function(_0x9310e8,_0xd2b093){_0x9310e8=_0x9310e8-0x121;let _0x36d0a3=_0x54b26d[_0x9310e8];return _0x36d0a3;},_0x9310(_0x175355,_0x39c467);}import{Collection as _0x188740}from'ckeditor5/src/utils.js';function _0x54b2(){const _0x3bd93a=['trim','length','_loadFromSessionStorage','11760968XPBoHh','36AUcpdG','1197126yRDUHf','prompt','5029255MOTySc','map','parse','4tTESnz','7277990KObRmA','CKEditor/AIFormView/PromptHistory','addMany','_saveToSessionStorage','setItem','last','add','827724NoHMXU','getItem','stringify','7334817QCBKrx','6NofWYg','200018pJjvVx','toLowerCase','remove'];_0x54b2=function(){return _0x3bd93a;};return _0x54b2();}const So=_0x20f404(0x125);export class PromptHistory extends _0x188740{constructor(){const _0x11155d=_0x20f404;super(),this[_0x11155d(0x135)](),this['on'](_0x11155d(0x12a),(_0x2a4c92,_0x2c3c60)=>{const _0x34e464=_0x11155d,_0x5b6eb5=go(_0x2c3c60[_0x34e464(0x139)]);for(const _0x57c8e8 of this)if(_0x57c8e8!=_0x2c3c60&&go(_0x57c8e8[_0x34e464(0x139)])===_0x5b6eb5){this[_0x34e464(0x132)](_0x57c8e8);break;}this[_0x34e464(0x134)]>0x14&&this[_0x34e464(0x132)](this[_0x34e464(0x129)]),this[_0x34e464(0x127)]();}),this['on'](_0x11155d(0x132),()=>{const _0x2bf3b3=_0x11155d;this[_0x2bf3b3(0x127)]();});}[_0x20f404(0x135)](){const _0x33175d=_0x20f404,_0x548440=sessionStorage[_0x33175d(0x12c)](So)||'[]';this[_0x33175d(0x126)](JSON[_0x33175d(0x122)](_0x548440));}[_0x20f404(0x127)](){const _0x6dd0=_0x20f404;sessionStorage[_0x6dd0(0x128)](So,JSON[_0x6dd0(0x12d)](this[_0x6dd0(0x121)](_0x175ec0=>_0x175ec0)));}}function go(_0xe39b43){const _0x47761f=_0x20f404;return _0xe39b43[_0x47761f(0x131)]()[_0x47761f(0x133)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4dba28=_0x1b66;(function(_0x2e330f,_0x452e34){const _0xe152eb=_0x1b66,_0x1e2dd4=_0x2e330f();while(!![]){try{const _0x43ea67=-parseInt(_0xe152eb(0x1f7))/0x1+-parseInt(_0xe152eb(0x1ed))/0x2+-parseInt(_0xe152eb(0x207))/0x3*(parseInt(_0xe152eb(0x20a))/0x4)+parseInt(_0xe152eb(0x1fb))/0x5*(-parseInt(_0xe152eb(0x204))/0x6)+-parseInt(_0xe152eb(0x1ea))/0x7+parseInt(_0xe152eb(0x206))/0x8*(parseInt(_0xe152eb(0x1fc))/0x9)+parseInt(_0xe152eb(0x1f8))/0xa;if(_0x43ea67===_0x452e34)break;else _0x1e2dd4['push'](_0x1e2dd4['shift']());}catch(_0xf00ac5){_0x1e2dd4['push'](_0x1e2dd4['shift']());}}}(_0x9ede,0x2a481));import{Command as _0x1fa3fd}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x2309e9}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x1fa3fd{[_0x4dba28(0x1e7)];constructor(_0xaa2a57,_0x34193b){const _0x2c3e54=_0x4dba28;super(_0xaa2a57),this[_0x2c3e54(0x1e7)]=_0x34193b,this[_0x2c3e54(0x1e5)](_0x2c3e54(0x20f),[]),this['on'](_0x2c3e54(0x1f1),(_0x311eee,_0xd446a9,_0x24df3f)=>{const _0x57558c=_0x2c3e54;this[_0x57558c(0x202)]&&(this[_0x57558c(0x20f)]=ns(this[_0x57558c(0x1e7)],_0x24df3f));}),this[_0x2c3e54(0x1e5)](_0x2c3e54(0x1e9),!0x1),this['on'](_0x2c3e54(0x20e),(_0x365ab8,_0x9c3d8d,_0x232c14)=>{const _0x5502f7=_0x2c3e54;this[_0x5502f7(0x20f)]=_0x232c14?ns(this[_0x5502f7(0x1e7)],this[_0x5502f7(0x1e9)]):[];});}[_0x4dba28(0x1eb)](){const _0x1f3a62=_0x4dba28,_0xddf5a6=this[_0x1f3a62(0x1f4)][_0x1f3a62(0x1ec)];this[_0x1f3a62(0x1e9)]=function(_0x990e22){const _0x12664a=_0x1f3a62,_0x53ab08=_0x990e22[_0x12664a(0x1f6)][_0x12664a(0x1e8)];return _0x53ab08[_0x12664a(0x20c)]?0x0!==[..._0x53ab08[_0x12664a(0x200)]()][_0x12664a(0x1f9)]&&![..._0x53ab08[_0x12664a(0x200)]()][0x0][_0x12664a(0x209)]:!!_0x990e22[_0x12664a(0x210)](_0x53ab08[_0x12664a(0x201)]());}(_0xddf5a6);const _0x334b05=_0xddf5a6[_0x1f3a62(0x1f6)][_0x1f3a62(0x1e8)],_0x43faee=this[_0x1f3a62(0x1f4)][_0x1f3a62(0x1ef)][_0x1f3a62(0x1fa)](_0x1f3a62(0x1ee));for(const _0x5cbe04 of _0x334b05[_0x1f3a62(0x20d)]())for(const _0x300828 of _0x5cbe04[_0x1f3a62(0x1ff)]())if(_0x300828['is'](_0x1f3a62(0x1f5))&&_0x43faee[_0x1f3a62(0x1e6)](_0x300828[_0x1f3a62(0x1fe)]))return void(this[_0x1f3a62(0x202)]=!0x1);this[_0x1f3a62(0x202)]=!0x0;}[_0x4dba28(0x1f3)](_0xf88938='',_0x5787b7='',_0x714928=_0x4dba28(0x1f0)){const _0xcaef03=_0x4dba28;this[_0xcaef03(0x1f4)][_0xcaef03(0x208)][_0xcaef03(0x1fa)](_0x2309e9)[_0xcaef03(0x203)](_0xf88938,_0x5787b7,_0x714928);}}function ns(_0x20a224,_0x4f79b3){const _0x5d10f6=_0x4dba28,_0x48f43a=new Set();for(const _0x13aaf9 of _0x20a224[_0x5d10f6(0x20b)]())(_0x4f79b3||!0x1===_0x13aaf9[_0x5d10f6(0x205)])&&_0x48f43a[_0x5d10f6(0x1fd)](_0x13aaf9['id']);return Array[_0x5d10f6(0x1f2)](_0x48f43a);}function _0x1b66(_0x4059e3,_0x15a0a8){const _0x9edeaa=_0x9ede();return _0x1b66=function(_0x1b66fe,_0x194c88){_0x1b66fe=_0x1b66fe-0x1e5;let _0xe909a8=_0x9edeaa[_0x1b66fe];return _0xe909a8;},_0x1b66(_0x4059e3,_0x15a0a8);}function _0x9ede(){const _0x51299f=['refresh','model','107294JiyOKH','ai.assistant.disabledElements','config','custom','change:_hasContext','from','execute','editor','element','document','226023SCaCpG','8233110faxSmu','length','get','1104515ZRNZOe','9CSpVsa','add','name','getItems','getSelectedBlocks','getFirstRange','isEnabled','showUI','6HURGCJ','requiresContent','1796008GSmbXa','12213sdMrJo','plugins','isEmpty','164gifXIM','values','isCollapsed','getRanges','change:isEnabled','enabledCommandsIds','hasContent','set','includes','_commandDefinitions','selection','_hasContext','1450001RxlJlu'];_0x9ede=function(){return _0x51299f;};return _0x9ede();}
|
|
@@ -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 _0x52dc59=_0x5e0d;(function(_0x5b5e4c,_0x577495){const _0x44c00e=_0x5e0d,_0x298a74=_0x5b5e4c();while(!![]){try{const _0x17c6e5=-parseInt(_0x44c00e(0xfe))/0x1*(parseInt(_0x44c00e(0xf4))/0x2)+-parseInt(_0x44c00e(0x149))/0x3+parseInt(_0x44c00e(0x108))/0x4+parseInt(_0x44c00e(0x10c))/0x5+parseInt(_0x44c00e(0x134))/0x6*(-parseInt(_0x44c00e(0x110))/0x7)+parseInt(_0x44c00e(0xe7))/0x8*(parseInt(_0x44c00e(0x13d))/0x9)+-parseInt(_0x44c00e(0x115))/0xa*(-parseInt(_0x44c00e(0x13c))/0xb);if(_0x17c6e5===_0x577495)break;else _0x298a74['push'](_0x298a74['shift']());}catch(_0x5359cf){_0x298a74['push'](_0x298a74['shift']());}}}(_0x4ca4,0x73222));import{ContextPlugin as _0x4d1f57}from'ckeditor5/src/core.js';import{AIConnector as _0x3d7b9f}from'../aicore/aiconnector.js';import{AIEditing as _0x5cb6eb}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x41e090,AIBalloonView as _0xb449f7}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';function _0x5e0d(_0x235493,_0x45fc5a){const _0x4ca433=_0x4ca4();return _0x5e0d=function(_0x5e0d31,_0x5494ee){_0x5e0d31=_0x5e0d31-0xe4;let _0x445e8e=_0x4ca433[_0x5e0d31];return _0x445e8e;},_0x5e0d(_0x235493,_0x45fc5a);}import{getAllMarkersDomElementsSorted as _0x595171}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x2eae97,Rect as _0x5537d5,scrollViewportToShowTarget as _0x45ec1e}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x20b22e}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x45b66f}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x3d8b86}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x41e090,_0x52dc59(0x132),_0x52dc59(0x10b)];function _0x4ca4(){const _0x214baa=['showFakeVisualSelection','getChangedMarkers','balloonView','round','off','context','ai-balloon','506nAxhnr','27dbLLOx','value','_setupVisualSelection','view','config','Dialog','_showDialog','show','stopAutoScroll','AIBalloon','locale','render','2441058zlEXkS','requires','fire','markers','AI_ACTIONS_SELECTION_REMOVED_ERROR','getBoundingRect','start','\x20ai-balloon-rotator','bind','iconView','get','isTrackChangesOn','28504KkwmFu','showRotator','model','length','document','rootName','_isUpdatingMarkers','isOpen','once','isPremiumPlugin','_config','root','mainView','8ukkmlU','showBlockingError','isEqual','filter','aiBalloon','getMarkersGroup','max','setupRotator','getVisible','_pendingRenderCallback','168982UWuEys','updateContent','ai-selection:','title','bottom','startsWith','content','trackChanges','ranges','commands','1028640jCmxcG','hide','editing','selectionRemoved','3471255BoYxqe','open','_setupMarkerRemovalListener','end','3097388Fpbxpp','ai.availableReplyActions','window','delegate','$graveyard','409580rtCtab','plugins','height','headerView','ai-selection','updatePosition','label','stopListening','top','change','left','ai-balloon-','_getSelectionElements','width','_updateBalloon','_calculateDialogPosition','listenTo','differ','getIntersection','icon','pluginName','index','startAutoScroll','ai-balloon-selection','close','_calculateOptimalTopPosition','isOfficialPlugin','AIEditing','hideFakeVisualSelection','dialogClosed','_cleanupMarkerRemovalListener','12TxSbpE'];_0x4ca4=function(){return _0x214baa;};return _0x4ca4();}const jt=0xa;export class AIBalloon extends _0x4d1f57{static get[_0x52dc59(0x14a)](){return[_0x3d7b9f,_0x5cb6eb];}static get[_0x52dc59(0x129)](){const _0x23f60c=_0x52dc59;return _0x23f60c(0x146);}static get[_0x52dc59(0x12f)](){return!0x0;}static get[_0x52dc59(0xf0)](){return!0x0;}[_0x52dc59(0xee)]=!0x1;[_0x52dc59(0xf1)];[_0x52dc59(0xed)]=!0x1;[_0x52dc59(0xfd)]=null;[_0x52dc59(0x10d)](_0x315012){const _0xb4b56d=_0x52dc59,_0x490810=_0x20b22e(this[_0xb4b56d(0x13a)]);if(this[_0xb4b56d(0xf1)]=_0x315012,this[_0xb4b56d(0xee)])return void this[_0xb4b56d(0x123)](_0x315012);const _0x456f09=this[_0xb4b56d(0x13a)][_0xb4b56d(0x141)][_0xb4b56d(0xe5)](_0xb4b56d(0x111))||[..._0x45b66f],_0x289f0a=_0x490810?.[_0xb4b56d(0x107)][_0xb4b56d(0xe5)](_0xb4b56d(0x105)),_0x25e4ff=_0x289f0a?.[_0xb4b56d(0x13e)];this[_0xb4b56d(0x137)]=new _0xb449f7(_0x490810[_0xb4b56d(0x147)],_0x315012,_0x456f09,!!_0x25e4ff),this[_0xb4b56d(0x137)][_0xb4b56d(0x113)](..._0x41e090)['to'](this),_0x289f0a&&this[_0xb4b56d(0x137)][_0xb4b56d(0x151)](_0xb4b56d(0xe6))['to'](_0x289f0a,_0xb4b56d(0x13e)),this[_0xb4b56d(0x143)](_0x315012);}[_0x52dc59(0x12d)](){const _0x4ef15d=_0x52dc59;_0x20b22e(this[_0x4ef15d(0x13a)])[_0x4ef15d(0x116)][_0x4ef15d(0xe5)](_0x4ef15d(0x142))[_0x4ef15d(0x109)]();}[_0x52dc59(0x12b)](){const _0x2ee20e=_0x52dc59;this[_0x2ee20e(0x137)]&&this[_0x2ee20e(0x137)][_0x2ee20e(0x12b)]();}[_0x52dc59(0x145)](){const _0x4e711a=_0x52dc59;this[_0x4e711a(0x137)]&&this[_0x4e711a(0x137)][_0x4e711a(0x145)]();}[_0x52dc59(0x123)](_0x4cbd93){const _0x50a0ee=_0x52dc59,_0x174b6c=_0x20b22e(this[_0x50a0ee(0x13a)]),_0xc571db=_0x174b6c[_0x50a0ee(0x116)][_0x50a0ee(0xe5)](_0x50a0ee(0x142));this[_0x50a0ee(0xfd)]&&(_0x174b6c[_0x50a0ee(0x10a)][_0x50a0ee(0x140)][_0x50a0ee(0x139)](_0x50a0ee(0x148),this[_0x50a0ee(0xfd)]),this[_0x50a0ee(0xfd)]=null),this[_0x50a0ee(0xed)]=!0x0,_0xc571db[_0x50a0ee(0x140)]?.[_0x50a0ee(0x118)]&&(_0xc571db[_0x50a0ee(0x140)][_0x50a0ee(0x118)][_0x50a0ee(0x11b)]=_0x4cbd93[_0x50a0ee(0x101)],_0xc571db[_0x50a0ee(0x140)][_0x50a0ee(0x118)][_0x50a0ee(0xe4)]&&_0x4cbd93[_0x50a0ee(0x128)]&&(_0xc571db[_0x50a0ee(0x140)][_0x50a0ee(0x118)][_0x50a0ee(0xe4)][_0x50a0ee(0x104)]=_0x4cbd93[_0x50a0ee(0x128)])),this[_0x50a0ee(0x137)][_0x50a0ee(0xff)](_0x4cbd93[_0x50a0ee(0xf3)]),this[_0x50a0ee(0x13f)](_0x4cbd93[_0x50a0ee(0x106)],_0x4cbd93[_0x50a0ee(0x12a)]),this[_0x50a0ee(0xfd)]=()=>{const _0x684fd6=_0x50a0ee;this[_0x684fd6(0xed)]=!0x1,this[_0x684fd6(0xfd)]=null,_0xc571db[_0x684fd6(0x140)]&&_0xc571db[_0x684fd6(0x140)][_0x684fd6(0x11a)]();},_0x174b6c[_0x50a0ee(0x10a)][_0x50a0ee(0x140)][_0x50a0ee(0xef)](_0x50a0ee(0x148),this[_0x50a0ee(0xfd)]);}[_0x52dc59(0x13f)](_0x1d16ea,_0x3ab4a9){const _0x3db628=_0x52dc59;this[_0x3db628(0x13a)][_0x3db628(0x116)][_0x3db628(0xe5)](_0x5cb6eb)[_0x3db628(0x135)](_0x1d16ea,_0x3db628(0x120)+_0x3ab4a9,!0x0,!0x0);}[_0x52dc59(0x143)](_0x547bbc){const _0x39bdcc=_0x52dc59,_0x4faf54=_0x20b22e(this[_0x39bdcc(0x13a)]);this[_0x39bdcc(0x13f)](_0x547bbc[_0x39bdcc(0x106)],_0x547bbc[_0x39bdcc(0x12a)]);const _0x5d33c7=this[_0x39bdcc(0x121)]();_0x5d33c7&&_0x5d33c7[0x0]&&_0x45ec1e({'target':_0x5d33c7[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x4faf54[_0x39bdcc(0x116)][_0x39bdcc(0xe5)](_0x39bdcc(0x142))[_0x39bdcc(0x144)]({'title':_0x547bbc[_0x39bdcc(0x101)],'icon':_0x547bbc[_0x39bdcc(0x128)],'hasCloseButton':!0x0,'id':_0x39bdcc(0xf8),'position':this[_0x39bdcc(0x124)][_0x39bdcc(0x151)](this),'className':_0x39bdcc(0x13b)+(_0x547bbc[_0x39bdcc(0xe8)]?_0x39bdcc(0x150):''),'content':this[_0x39bdcc(0x137)],'onShow':_0x14aba8=>{const _0x16da0f=_0x39bdcc;_0x547bbc[_0x16da0f(0xe8)]&&this[_0x16da0f(0x137)][_0x16da0f(0xfb)](_0x14aba8),this[_0x16da0f(0x10e)](),this[_0x16da0f(0xee)]=!0x0;},'onHide':()=>{const _0x8567a6=_0x39bdcc;this[_0x8567a6(0x13a)][_0x8567a6(0x116)][_0x8567a6(0xe5)](_0x8567a6(0x130))[_0x8567a6(0x131)](_0x8567a6(0x120)+this[_0x8567a6(0xf1)][_0x8567a6(0x12a)]),this[_0x8567a6(0x133)](),this[_0x8567a6(0x14b)](_0x8567a6(0x132)),this[_0x8567a6(0xee)]=!0x1;}});}[_0x52dc59(0x124)](_0x5426d3,_0x36bb3f){const _0x4d49fb=_0x52dc59;if(!_0x36bb3f)return null;const _0xff95bc=this[_0x4d49fb(0x121)]();if(!_0xff95bc||0x0===_0xff95bc[_0x4d49fb(0xea)])return{'left':Math[_0x4d49fb(0x138)](_0x36bb3f[_0x4d49fb(0x11f)]+_0x36bb3f[_0x4d49fb(0x122)]/0x2-_0x5426d3[_0x4d49fb(0x122)]/0x2),'top':Math[_0x4d49fb(0x138)](_0x36bb3f[_0x4d49fb(0x11d)]+_0x36bb3f[_0x4d49fb(0x117)]/0x2-_0x5426d3[_0x4d49fb(0x117)]/0x2)};const _0x15d20b=Math[_0x4d49fb(0x138)](_0x36bb3f[_0x4d49fb(0x11f)]+_0x36bb3f[_0x4d49fb(0x122)]/0x2-_0x5426d3[_0x4d49fb(0x122)]/0x2),_0x1cedea=new _0x5537d5(_0xff95bc[0x0]),_0x5487e0=new _0x5537d5(_0xff95bc[_0xff95bc[_0x4d49fb(0xea)]-0x1]),_0x1e9219=_0x5426d3[_0x4d49fb(0x117)],_0x39daee=this[_0x4d49fb(0xf1)][_0x4d49fb(0xe8)]?0x8:0x0;return{'left':_0x15d20b,'top':this[_0x4d49fb(0x12e)](_0x1cedea,_0x5487e0,_0x1e9219,_0x39daee,_0x36bb3f)};}[_0x52dc59(0x12e)](_0x3e1fb8,_0x36703f,_0x2f7c85,_0xdf07d2=0x0,_0x4ac8b3){const _0x480fb9=_0x52dc59,_0x39096b=_0x2f7c85+_0xdf07d2,_0x151f0e=new _0x5537d5(_0x2eae97[_0x480fb9(0x112)]),_0x160ffd=[_0x3e1fb8[_0x480fb9(0xfc)](),_0x36703f[_0x480fb9(0xfc)]()][_0x480fb9(0xf7)](_0x463a52=>_0x463a52),_0x1f2f99=_0x5537d5[_0x480fb9(0x14e)](_0x160ffd);if(!_0x1f2f99)return Math[_0x480fb9(0x138)](_0x4ac8b3[_0x480fb9(0x11d)]+_0x4ac8b3[_0x480fb9(0x117)]/0x2);const _0x17f64f=_0x151f0e[_0x480fb9(0x127)](_0x1f2f99);if(!_0x17f64f)return Math[_0x480fb9(0x138)](_0x4ac8b3[_0x480fb9(0x11d)]+_0x4ac8b3[_0x480fb9(0x117)]/0x2);const _0x701c1d=_0x4ac8b3[_0x480fb9(0xfc)](),_0x884bb3=_0x701c1d&&_0x1f2f99[_0x480fb9(0x117)]>_0x701c1d[_0x480fb9(0x117)],_0x4a3f63=_0x17f64f[_0x480fb9(0x11d)],_0x51de5d=_0x17f64f[_0x480fb9(0x102)];if(_0x884bb3){const _0x50fec6=(_0x701c1d||_0x151f0e)[_0x480fb9(0x117)]/0x2-_0x39096b/0x2,_0x4c9f12=_0x4a3f63-jt-_0x4ac8b3[_0x480fb9(0x11d)],_0x483de1=_0x4ac8b3[_0x480fb9(0x102)]-_0x51de5d-jt;return _0x4c9f12>=_0x39096b?Math[_0x480fb9(0xfa)](jt,_0x4a3f63-_0x39096b-jt):_0x483de1>=_0x39096b?_0x51de5d+jt:Math[_0x480fb9(0xfa)](jt,_0x50fec6);}const _0x4ac368=_0x4a3f63-_0x39096b,_0x435b63=_0x4ac8b3[_0x480fb9(0x102)]-_0x51de5d-jt,_0x20eb2c=_0x4a3f63-jt-_0x4ac8b3[_0x480fb9(0x11d)];let _0x166c08;if(_0x435b63>=_0x39096b)_0x166c08=_0x51de5d+jt;else{if(_0x20eb2c>=_0x39096b)_0x166c08=_0x4ac368-jt;else _0x166c08=_0x4a3f63+_0x1f2f99[_0x480fb9(0x117)]/0x2-_0x39096b/0x2;}return _0x166c08;}[_0x52dc59(0x10e)](){const _0x1e5a27=_0x52dc59,_0x4cd2f8=_0x20b22e(this[_0x1e5a27(0x13a)]);this[_0x1e5a27(0x125)](_0x4cd2f8[_0x1e5a27(0xe9)][_0x1e5a27(0xeb)],_0x1e5a27(0x11e),()=>{const _0x2306f4=_0x1e5a27;if(this[_0x2306f4(0xed)])return;for(const {name:_0x209898,data:{newRange:_0x1deafa}}of _0x4cd2f8[_0x2306f4(0xe9)][_0x2306f4(0xeb)][_0x2306f4(0x126)][_0x2306f4(0x136)]())if(_0x209898[_0x2306f4(0x103)](_0x2306f4(0x100))&&(_0x1deafa&&(_0x1deafa[_0x2306f4(0x14f)][_0x2306f4(0xf6)](_0x1deafa[_0x2306f4(0x10f)])||_0x2306f4(0x114)==_0x1deafa[_0x2306f4(0xf2)][_0x2306f4(0xec)])||null==_0x1deafa)){const _0x297f22=_0x3d8b86(this[_0x2306f4(0x13a)][_0x2306f4(0x147)],_0x2306f4(0x14d));this[_0x2306f4(0x137)][_0x2306f4(0xf5)](_0x297f22),this[_0x2306f4(0x14b)](_0x2306f4(0x10b));}});}[_0x52dc59(0x133)](){const _0x513ef6=_0x52dc59,_0x37c277=_0x20b22e(this[_0x513ef6(0x13a)]);this[_0x513ef6(0x11c)](_0x37c277[_0x513ef6(0xe9)][_0x513ef6(0xeb)]);}[_0x52dc59(0x121)](){const _0x375a8b=_0x52dc59,_0x5a01b3=_0x20b22e(this[_0x375a8b(0x13a)]);return _0x595171(_0x5a01b3[_0x375a8b(0x10a)],[..._0x5a01b3[_0x375a8b(0xe9)][_0x375a8b(0x14c)][_0x375a8b(0xf9)](_0x375a8b(0x119)),..._0x5a01b3[_0x375a8b(0xe9)][_0x375a8b(0x14c)][_0x375a8b(0xf9)](_0x375a8b(0x12c))]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x25c70b,_0x595137){var _0x4ad24a=_0x5154,_0x49ced9=_0x25c70b();while(!![]){try{var _0x45915d=-parseInt(_0x4ad24a(0x16f))/0x1+parseInt(_0x4ad24a(0x175))/0x2+-parseInt(_0x4ad24a(0x16d))/0x3*(-parseInt(_0x4ad24a(0x16b))/0x4)+-parseInt(_0x4ad24a(0x16c))/0x5*(parseInt(_0x4ad24a(0x170))/0x6)+-parseInt(_0x4ad24a(0x172))/0x7+-parseInt(_0x4ad24a(0x169))/0x8*(parseInt(_0x4ad24a(0x16a))/0x9)+parseInt(_0x4ad24a(0x176))/0xa;if(_0x45915d===_0x595137)break;else _0x49ced9['push'](_0x49ced9['shift']());}catch(_0x36198c){_0x49ced9['push'](_0x49ced9['shift']());}}}(_0x3210,0x66ab3));import{View as _0x25f831}from'ckeditor5/src/ui.js';function _0x5154(_0x42962a,_0x380c3b){var _0x321063=_0x3210();return _0x5154=function(_0x515476,_0x4f1770){_0x515476=_0x515476-0x169;var _0x337497=_0x321063[_0x515476];return _0x337497;},_0x5154(_0x42962a,_0x380c3b);}function _0x3210(){var _0x4eb49c=['3255210pTrftu','ck-ai-balloon__disclaimer','div','1381834cQkOdv','12387190hJaiab','setTemplate','156448tvjrfK','207pwQotN','4GVyVnI','35FsmXiO','1946286ADHcmz','ck-ai-balloon__disclaimer-content','694081PrPtoe','470544jFtHLb','AI_DISCLAIMER_TEXT'];_0x3210=function(){return _0x4eb49c;};return _0x3210();}import{getTranslation as _0x3ddf3f}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x25f831{constructor(_0x5c7dfa){var _0x3f33ef=_0x5154;super(_0x5c7dfa),this[_0x3f33ef(0x177)]({'tag':_0x3f33ef(0x174),'attributes':{'class':['ck',_0x3f33ef(0x173)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x3f33ef(0x16e)]},'children':[{'text':_0x3ddf3f(_0x5c7dfa,_0x3f33ef(0x171))}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4d84(_0x4c5745,_0x35f29e){const _0x3f14ae=_0x3f14();return _0x4d84=function(_0x4d8468,_0x3a8037){_0x4d8468=_0x4d8468-0x1cb;let _0x25b05e=_0x3f14ae[_0x4d8468];return _0x25b05e;},_0x4d84(_0x4c5745,_0x35f29e);}const _0x43f51f=_0x4d84;(function(_0x26508c,_0x12efe5){const _0x3d05d1=_0x4d84,_0x41dc0a=_0x26508c();while(!![]){try{const _0x13c509=parseInt(_0x3d05d1(0x1cc))/0x1*(-parseInt(_0x3d05d1(0x1cd))/0x2)+-parseInt(_0x3d05d1(0x1d3))/0x3+parseInt(_0x3d05d1(0x1d2))/0x4+-parseInt(_0x3d05d1(0x1d5))/0x5+-parseInt(_0x3d05d1(0x1d7))/0x6*(-parseInt(_0x3d05d1(0x1de))/0x7)+-parseInt(_0x3d05d1(0x1cb))/0x8+parseInt(_0x3d05d1(0x1e3))/0x9*(parseInt(_0x3d05d1(0x1d9))/0xa);if(_0x13c509===_0x12efe5)break;else _0x41dc0a['push'](_0x41dc0a['shift']());}catch(_0x40bd20){_0x41dc0a['push'](_0x41dc0a['shift']());}}}(_0x3f14,0x6d269));function _0x3f14(){const _0x20b18e=['2112120aNqOIM','2448381yledSi','suggestButton','4185880NGhRLN','items','594taGWZX','bind','7173010BXAqsq','isLoading','isEnabled','extendTemplate','ck-ai-button-primary','33747yVTlhK','AI_BALLOON_SUGGEST_BUTTON','applyButton','AI_BALLOON_APPLY_BUTTON','add','18KAWUfM','ck-ai-balloon__toolbar','164496PGjHnI','5IYJQhq','127586RvaGeu','_createButton','locale','set','ck-ai-button-secondary'];_0x3f14=function(){return _0x20b18e;};return _0x3f14();}import{ToolbarView as _0xae6667,ButtonView as _0x527ec0}from'ckeditor5/src/ui.js';import{getTranslation as _0x1095c7}from'../../aicore/utils/common-translations.js';export class AIBalloonToolbarView extends _0xae6667{constructor(_0x43f263,_0x25f2c7=!0x0,_0x33ad46=!0x0){const _0x1714d0=_0x4d84;super(_0x43f263),this[_0x1714d0(0x1d0)](_0x1714d0(0x1da),!0x1),_0x25f2c7&&(this[_0x1714d0(0x1e0)]=this[_0x1714d0(0x1ce)](_0x1095c7(_0x43f263,_0x1714d0(0x1e1)),_0x1714d0(0x1dd)),this[_0x1714d0(0x1e0)][_0x1714d0(0x1d8)](_0x1714d0(0x1db))['to'](this,_0x1714d0(0x1da),_0x2b5641=>!_0x2b5641),this[_0x1714d0(0x1d6)][_0x1714d0(0x1e2)](this[_0x1714d0(0x1e0)])),_0x33ad46&&(this[_0x1714d0(0x1d4)]=this[_0x1714d0(0x1ce)](_0x1095c7(_0x43f263,_0x1714d0(0x1df)),_0x25f2c7?_0x1714d0(0x1d1):_0x1714d0(0x1dd)),this[_0x1714d0(0x1d4)][_0x1714d0(0x1d8)](_0x1714d0(0x1db))['to'](this,_0x1714d0(0x1da),_0x3e894d=>!_0x3e894d),this[_0x1714d0(0x1d6)][_0x1714d0(0x1e2)](this[_0x1714d0(0x1d4)])),this[_0x1714d0(0x1dc)]({'attributes':{'class':[_0x1714d0(0x1e4)]}});}[_0x43f51f(0x1ce)](_0x298432,_0x13e6de){const _0x28469b=_0x43f51f,_0x1c7798=new _0x527ec0(this[_0x28469b(0x1cf)]);return _0x1c7798[_0x28469b(0x1d0)]({'label':_0x298432,'class':_0x13e6de||'','isVisible':!0x0,'withText':!0x0}),_0x1c7798;}}
|
|
@@ -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
|
+
function _0x1c4c(){const _0x5424eb=['locale','8183796YlWeBR','_mainView','_createPreviousButtonView','focus','_errorView','span','change:isTrackChangesOn','12iKfXRS','1660281BgkGnX','view','scrollManager','_addDisclaimerView','_dialogContent','ck-hidden','showBlockingError','AI_BALLOON_NEXT_TOOLTIP','bindTemplate','241938DxmmgP','1450YCFYMJ','clear','ai-balloon-error','showError','disclaimerView','showNext','bodyView','7932509wgViEF','fire','headerView','7MPoHYq','applySuggestion','render','isLoading','element','_addContentView','isErrorVisible','showApplyButton','children','updateContent','div','set','AI_BALLOON_PREVIOUS_TOOLTIP','insertSuggestion','stopAutoScroll','ck-ai-suggestion__error-text','setTemplate','_addToolbar','applyButton','_createErrorView','toolbar','clearLoading','start','stop','suggestButton','8sPqXfi','shift\x20+\x20tab','207joJnQm','mainView','_getScrollableElement','3mYCGNG','_createNextButtonView','focusLast','_availableActions','_initializeScrollManager','focusTracker','execute','130768ckdXUy','listenTo','errorMessage','keystrokes','createCollection','destroy','setLoading','isEnabled','showSuggestButton','2970600tejvMM','bind','add','showPrevious','isTrackChangesOn','ck-ai-suggestion__error','includes','showRecoverableError','startAutoScroll','56067QtrzVx','_focusables','hideError','tab','setupRotator','addMany','getIndex','ai-balloon-content','focusFirst','remove','focusCycler'];_0x1c4c=function(){return _0x5424eb;};return _0x1c4c();}const _0x3085f1=_0xfc4f;(function(_0x1e89c6,_0x592d14){const _0x5569fb=_0xfc4f,_0x4576a0=_0x1e89c6();while(!![]){try{const _0x482140=parseInt(_0x5569fb(0x1d7))/0x1*(parseInt(_0x5569fb(0x1ae))/0x2)+-parseInt(_0x5569fb(0x1a5))/0x3*(parseInt(_0x5569fb(0x1d2))/0x4)+parseInt(_0x5569fb(0x1e7))/0x5+-parseInt(_0x5569fb(0x1fc))/0x6*(-parseInt(_0x5569fb(0x1b9))/0x7)+parseInt(_0x5569fb(0x1de))/0x8*(-parseInt(_0x5569fb(0x1d4))/0x9)+parseInt(_0x5569fb(0x1af))/0xa*(-parseInt(_0x5569fb(0x1f0))/0xb)+parseInt(_0x5569fb(0x1a4))/0xc*(parseInt(_0x5569fb(0x1b6))/0xd);if(_0x482140===_0x592d14)break;else _0x4576a0['push'](_0x4576a0['shift']());}catch(_0x5687b3){_0x4576a0['push'](_0x4576a0['shift']());}}}(_0x1c4c,0xad2bd));import{ButtonView as _0x566cbe,View as _0x36941e,ViewCollection as _0xbda8b8,FocusCycler as _0x5385d2}from'ckeditor5/src/ui.js';import{FocusTracker as _0x5ccd80,KeystrokeHandler as _0x183f3b}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x506aa2,IconPreviousArrow as _0xde98bd}from'@ckeditor/ckeditor5-icons';function _0xfc4f(_0x1d891b,_0x5ceda4){const _0x1c4c39=_0x1c4c();return _0xfc4f=function(_0xfc4f45,_0x19c05d){_0xfc4f45=_0xfc4f45-0x19e;let _0x25a688=_0x1c4c39[_0xfc4f45];return _0x25a688;},_0xfc4f(_0x1d891b,_0x5ceda4);}import{AIBalloonToolbarView as _0x22c4f3}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x13603f}from'./aiballoondisclaimerview.js';import{getTranslation as _0x31937e}from'../../aicore/utils/common-translations.js';import{ScrollManager as _0x451e6a}from'../../aicore/utils/scrollmanager.js';import{AISuggestionContainerView as _0x1a191e}from'../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x3085f1(0x1ba),_0x3085f1(0x1c6),_0x3085f1(0x1b4),_0x3085f1(0x1ea)];export class AIBalloonView extends _0x36941e{[_0x3085f1(0x1dc)];[_0x3085f1(0x1e1)];[_0x3085f1(0x1fa)];[_0x3085f1(0x1da)];[_0x3085f1(0x1f1)];[_0x3085f1(0x1a1)];[_0x3085f1(0x1a7)];constructor(_0x57979e,_0x57d856,_0x39e862,_0x27e374){const _0x55eeab=_0x3085f1;super(_0x57979e),this[_0x55eeab(0x1da)]=_0x39e862,this[_0x55eeab(0x1c4)](_0x55eeab(0x1bc),!0x1),this[_0x55eeab(0x1c4)](_0x55eeab(0x1eb),_0x27e374),this[_0x55eeab(0x1c4)](_0x55eeab(0x1bf),!0x1),this[_0x55eeab(0x1c4)](_0x55eeab(0x1e0),''),this[_0x55eeab(0x1dc)]=new _0x5ccd80(),this[_0x55eeab(0x1e1)]=new _0x183f3b(),this[_0x55eeab(0x1f1)]=this[_0x55eeab(0x1e2)](),this[_0x55eeab(0x1fa)]=new _0x5385d2({'focusables':this[_0x55eeab(0x1f1)],'focusTracker':this[_0x55eeab(0x1dc)],'keystrokeHandler':this[_0x55eeab(0x1e1)],'actions':{'focusPrevious':_0x55eeab(0x1d3),'focusNext':_0x55eeab(0x1f3)}}),this[_0x55eeab(0x1a9)]=new _0xbda8b8(),this[_0x55eeab(0x1be)](_0x57d856[_0x55eeab(0x1d5)]),this[_0x55eeab(0x1a8)](),this[_0x55eeab(0x1ca)](_0x57d856[_0x55eeab(0x1c0)],_0x57d856[_0x55eeab(0x1e6)]),this[_0x55eeab(0x1cd)][_0x55eeab(0x1e8)](_0x55eeab(0x1bc))['to'](this),this[_0x55eeab(0x1f1)][_0x55eeab(0x1b0)](),this[_0x55eeab(0x1f1)][_0x55eeab(0x1f5)]([this[_0x55eeab(0x1cd)]]),this[_0x55eeab(0x1c9)]({'tag':_0x55eeab(0x1c3),'attributes':{'class':_0x55eeab(0x1f7)},'children':this[_0x55eeab(0x1a9)]}),this['on'](_0x55eeab(0x1a3),()=>{const _0x3439ec=_0x55eeab;this[_0x3439ec(0x1a9)][_0x3439ec(0x1f9)](this[_0x3439ec(0x1cd)]),this[_0x3439ec(0x1ca)](_0x57d856[_0x3439ec(0x1c0)],_0x57d856[_0x3439ec(0x1e6)]);});}[_0x3085f1(0x1bb)](){const _0x53bc3d=_0x3085f1;super[_0x53bc3d(0x1bb)]();for(const _0x21aa83 of this[_0x53bc3d(0x1f1)])this[_0x53bc3d(0x1dc)][_0x53bc3d(0x1e9)](_0x21aa83[_0x53bc3d(0x1bd)]);this[_0x53bc3d(0x1e1)][_0x53bc3d(0x1df)](this[_0x53bc3d(0x1bd)]),this[_0x53bc3d(0x1db)]();}[_0x3085f1(0x1e3)](){const _0x4afe85=_0x3085f1;super[_0x4afe85(0x1e3)](),this[_0x4afe85(0x1a7)]&&this[_0x4afe85(0x1a7)][_0x4afe85(0x1e3)]();}[_0x3085f1(0x1a0)](_0xde4c6d){const _0x2126bc=_0x3085f1;-0x1===_0xde4c6d?this[_0x2126bc(0x1fa)][_0x2126bc(0x1d9)]():this[_0x2126bc(0x1fa)][_0x2126bc(0x1f8)]();}[_0x3085f1(0x1e4)](){const _0xb3df73=_0x3085f1;this[_0xb3df73(0x1bc)]=!0x0;}[_0x3085f1(0x1ce)](){const _0x11fa91=_0x3085f1;this[_0x11fa91(0x1bc)]=!0x1;}[_0x3085f1(0x1b2)](_0x510294){const _0x26f3aa=_0x3085f1;this[_0x26f3aa(0x1a1)]||(this[_0x26f3aa(0x1a1)]=this[_0x26f3aa(0x1cc)](),this[_0x26f3aa(0x1a9)][_0x26f3aa(0x1f5)]([this[_0x26f3aa(0x1a1)]],0x0)),this[_0x26f3aa(0x1e0)]=_0x510294,this[_0x26f3aa(0x1bf)]=!0x0;}[_0x3085f1(0x1f2)](){const _0x4c0bd0=_0x3085f1;this[_0x4c0bd0(0x1bf)]=!0x1;}[_0x3085f1(0x1ee)](_0x3dac27){const _0x26a2f7=_0x3085f1;this[_0x26a2f7(0x1b2)](_0x3dac27);}[_0x3085f1(0x1ab)](_0x1f3e73){const _0x14ade3=_0x3085f1;this[_0x14ade3(0x1b2)](_0x1f3e73),this[_0x14ade3(0x1cd)]&&(this[_0x14ade3(0x1cd)][_0x14ade3(0x1cb)]&&(this[_0x14ade3(0x1cd)][_0x14ade3(0x1cb)][_0x14ade3(0x1e5)]=!0x1),this[_0x14ade3(0x1cd)][_0x14ade3(0x1d1)]&&(this[_0x14ade3(0x1cd)][_0x14ade3(0x1d1)][_0x14ade3(0x1e5)]=!0x1));}[_0x3085f1(0x1f4)](_0x4bc8a5){const _0xb466e1=_0x3085f1,_0x2287d4=this[_0xb466e1(0x1d8)](),_0x3dd5d2=this[_0xb466e1(0x19f)]();_0x4bc8a5[_0xb466e1(0x1a6)][_0xb466e1(0x1b8)][_0xb466e1(0x1c1)][_0xb466e1(0x1e9)](_0x2287d4,0x2),_0x4bc8a5[_0xb466e1(0x1a6)][_0xb466e1(0x1b8)][_0xb466e1(0x1c1)][_0xb466e1(0x1e9)](_0x3dd5d2,0x0),this[_0xb466e1(0x1f1)][_0xb466e1(0x1f5)]([_0x2287d4,_0x3dd5d2]),this[_0xb466e1(0x1dc)][_0xb466e1(0x1e9)](_0x2287d4[_0xb466e1(0x1bd)]),this[_0xb466e1(0x1dc)][_0xb466e1(0x1e9)](_0x3dd5d2[_0xb466e1(0x1bd)]);}[_0x3085f1(0x1be)](_0x425575){const _0x6e1395=_0x3085f1;this[_0x6e1395(0x19e)]=_0x425575,this[_0x6e1395(0x1a9)][_0x6e1395(0x1e9)](this[_0x6e1395(0x19e)]);}[_0x3085f1(0x1c2)](_0x1bdcd8){const _0xf903d5=_0x3085f1,_0x50bcac=this[_0xf903d5(0x1a9)][_0xf903d5(0x1f6)](this[_0xf903d5(0x19e)]);this[_0xf903d5(0x1a9)][_0xf903d5(0x1f9)](this[_0xf903d5(0x19e)]),this[_0xf903d5(0x19e)]=_0x1bdcd8,this[_0xf903d5(0x1a9)][_0xf903d5(0x1e9)](this[_0xf903d5(0x19e)],_0x50bcac),this[_0xf903d5(0x1f2)](),this[_0xf903d5(0x1a7)]&&this[_0xf903d5(0x1a7)][_0xf903d5(0x1e3)](),this[_0xf903d5(0x1db)]();}[_0x3085f1(0x1a8)](){const _0x1259ad=_0x3085f1;this[_0x1259ad(0x1b3)]=new _0x13603f(this[_0x1259ad(0x1fb)]),this[_0x1259ad(0x1a9)][_0x1259ad(0x1e9)](this[_0x1259ad(0x1b3)]);}[_0x3085f1(0x1ca)](_0x1dc148=!0x0,_0x366c88=!0x0){const _0xc8d9df=_0x3085f1;_0x1dc148=_0x1dc148&&!this[_0xc8d9df(0x1eb)]&&this[_0xc8d9df(0x1da)][_0xc8d9df(0x1ed)](_0xc8d9df(0x1ba)),_0x366c88=_0x366c88&&this[_0xc8d9df(0x1da)][_0xc8d9df(0x1ed)](_0xc8d9df(0x1c6)),this[_0xc8d9df(0x1cd)]=new _0x22c4f3(this[_0xc8d9df(0x1fb)],_0x1dc148,_0x366c88),this[_0xc8d9df(0x1cd)][_0xc8d9df(0x1cb)]?.['on'](_0xc8d9df(0x1dd),()=>{const _0x4619c4=_0xc8d9df;this[_0x4619c4(0x1b7)](_0x4619c4(0x1ba));}),this[_0xc8d9df(0x1cd)][_0xc8d9df(0x1d1)]?.['on'](_0xc8d9df(0x1dd),()=>{const _0x3d12c9=_0xc8d9df;this[_0x3d12c9(0x1b7)](_0x3d12c9(0x1c6));}),this[_0xc8d9df(0x1a9)][_0xc8d9df(0x1e9)](this[_0xc8d9df(0x1cd)]);}[_0x3085f1(0x1d8)](){const _0x54206e=_0x3085f1,_0x3648df=new _0x566cbe(this[_0x54206e(0x1fb)]);return _0x3648df[_0x54206e(0x1c4)]({'icon':_0x506aa2,'tooltip':_0x31937e(this[_0x54206e(0x1fb)],_0x54206e(0x1ac))}),_0x3648df['on'](_0x54206e(0x1dd),()=>{const _0x2377e1=_0x54206e;this[_0x2377e1(0x1b7)](_0x2377e1(0x1b4));}),_0x3648df;}[_0x3085f1(0x19f)](){const _0x7d4943=_0x3085f1,_0x4f1fea=new _0x566cbe(this[_0x7d4943(0x1fb)]);return _0x4f1fea[_0x7d4943(0x1c4)]({'icon':_0xde98bd,'tooltip':_0x31937e(this[_0x7d4943(0x1fb)],_0x7d4943(0x1c5))}),_0x4f1fea['on'](_0x7d4943(0x1dd),()=>{const _0x1c3636=_0x7d4943;this[_0x1c3636(0x1b7)](_0x1c3636(0x1ea));}),_0x4f1fea;}[_0x3085f1(0x1cc)](){const _0x5636b0=_0x3085f1,_0x1c809f=new _0x36941e(this[_0x5636b0(0x1fb)]),_0x3cc060=new _0x36941e(this[_0x5636b0(0x1fb)]);return _0x3cc060[_0x5636b0(0x1c9)]({'tag':_0x5636b0(0x1a2),'attributes':{'class':['ck',_0x5636b0(0x1c8)]},'children':[{'text':this[_0x5636b0(0x1ad)]['to'](_0x5636b0(0x1e0))}]}),_0x1c809f[_0x5636b0(0x1c9)]({'tag':_0x5636b0(0x1c3),'attributes':{'class':['ck',_0x5636b0(0x1ec),_0x5636b0(0x1b1),this[_0x5636b0(0x1ad)]['if'](_0x5636b0(0x1bf),_0x5636b0(0x1aa),_0x218483=>!_0x218483)]},'children':[_0x3cc060]}),_0x1c809f;}[_0x3085f1(0x1ef)](){const _0x192af6=_0x3085f1;this[_0x192af6(0x1db)](),this[_0x192af6(0x1a7)]&&this[_0x192af6(0x1a7)][_0x192af6(0x1cf)]();}[_0x3085f1(0x1c7)](){const _0x27962=_0x3085f1;this[_0x27962(0x1a7)]&&this[_0x27962(0x1a7)][_0x27962(0x1d0)]();}[_0x3085f1(0x1db)](){const _0x485ab4=_0x3085f1,_0x1b3190=this[_0x485ab4(0x1d6)]();_0x1b3190&&!this[_0x485ab4(0x1a7)]&&(this[_0x485ab4(0x1a7)]=new _0x451e6a(_0x1b3190));}[_0x3085f1(0x1d6)](){const _0x597955=_0x3085f1;return this[_0x597955(0x19e)]instanceof _0x1a191e&&this[_0x597955(0x19e)][_0x597955(0x1b5)][_0x597955(0x1bd)]?this[_0x597955(0x19e)][_0x597955(0x1b5)][_0x597955(0x1bd)]:null;}}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2cb32c=_0x59e7;(function(_0x37def5,_0x247b6d){var _0x52023c=_0x59e7,_0x5e5b5a=_0x37def5();while(!![]){try{var _0x3bf7f6=-parseInt(_0x52023c(0x160))/0x1*(-parseInt(_0x52023c(0x168))/0x2)+-parseInt(_0x52023c(0x153))/0x3+parseInt(_0x52023c(0x158))/0x4+-parseInt(_0x52023c(0x151))/0x5*(parseInt(_0x52023c(0x15c))/0x6)+-parseInt(_0x52023c(0x155))/0x7+parseInt(_0x52023c(0x169))/0x8+parseInt(_0x52023c(0x163))/0x9;if(_0x3bf7f6===_0x247b6d)break;else _0x5e5b5a['push'](_0x5e5b5a['shift']());}catch(_0x152660){_0x5e5b5a['push'](_0x5e5b5a['shift']());}}}(_0x2a9f,0x4f460));function _0x59e7(_0x591fae,_0x5b7fe6){var _0x2a9fe8=_0x2a9f();return _0x59e7=function(_0x59e7e9,_0x1ce56c){_0x59e7e9=_0x59e7e9-0x150;var _0x4548fa=_0x2a9fe8[_0x59e7e9];return _0x4548fa;},_0x59e7(_0x591fae,_0x5b7fe6);}import{ContextPlugin as _0x525b69}from'ckeditor5/src/core.js';import{AIChatController as _0x524cd6}from'./aichatcontroller.js';import{AIEditing as _0x500a7c}from'../aicore/aiediting.js';import{AIChatUI as _0x2b7aff}from'./aichatui.js';import{AIChatHistory as _0x34be4e}from'../aichathistory/aichathistory.js';function _0x2a9f(){var _0x4ea7bc=['3897216MhXCye','addSelectionToChatContext','define','context','ai.chat.models','112342yMdqKK','594256yYmKnM','sendMessage','5030QOAdIu','isPremiumPlugin','1770363Xwxvge','requires','2046506JAcBow','AIChat','config','1610320RAsudz','startConversation','focusPromptInput','pluginName','1242iWfNTG','ai.chat.context','isOfficialPlugin','removeSelectionFromChatContext','9jeKiIC','get','plugins'];_0x2a9f=function(){return _0x4ea7bc;};return _0x2a9f();}export class AIChat extends _0x525b69{static get[_0x2cb32c(0x154)](){return[_0x524cd6,_0x500a7c,_0x2b7aff,_0x34be4e];}static get[_0x2cb32c(0x15b)](){var _0x4ea3e7=_0x2cb32c;return _0x4ea3e7(0x156);}static get[_0x2cb32c(0x15e)](){return!0x0;}static get[_0x2cb32c(0x152)](){return!0x0;}constructor(_0x5a7120){var _0xf3a41f=_0x2cb32c;super(_0x5a7120),this[_0xf3a41f(0x166)][_0xf3a41f(0x157)][_0xf3a41f(0x165)](_0xf3a41f(0x15d),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0xf3a41f(0x166)][_0xf3a41f(0x157)][_0xf3a41f(0x165)](_0xf3a41f(0x167),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x2cb32c(0x164)](){var _0x1560b1=_0x2cb32c;await this[_0x1560b1(0x166)][_0x1560b1(0x162)][_0x1560b1(0x161)](_0x524cd6)[_0x1560b1(0x164)]();}async[_0x2cb32c(0x159)](){var _0x4a72d7=_0x2cb32c;await this[_0x4a72d7(0x166)][_0x4a72d7(0x162)][_0x4a72d7(0x161)](_0x524cd6)[_0x4a72d7(0x159)]();}async[_0x2cb32c(0x150)]({message:_0x1aa76e,quickActionData:_0x2045da}){var _0x3cd4c4=_0x2cb32c;await this[_0x3cd4c4(0x166)][_0x3cd4c4(0x162)][_0x3cd4c4(0x161)](_0x524cd6)[_0x3cd4c4(0x150)]({'message':_0x1aa76e,'quickActionData':_0x2045da});}[_0x2cb32c(0x15f)](){var _0x49cd5f=_0x2cb32c;this[_0x49cd5f(0x166)][_0x49cd5f(0x162)][_0x49cd5f(0x161)](_0x524cd6)[_0x49cd5f(0x15f)]();}[_0x2cb32c(0x15a)](){var _0xd59b1e=_0x2cb32c;this[_0xd59b1e(0x166)][_0xd59b1e(0x162)][_0xd59b1e(0x161)](_0x524cd6)[_0xd59b1e(0x15a)]();}}
|