@ckeditor/ckeditor5-ai 47.6.1-alpha.1 → 47.6.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.
- 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/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.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/aichatballoonview.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/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.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/eventnames.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/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.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/aispinner.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/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/createresizebutton.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/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/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x567c27=_0x5e6a;(function(_0x13a5bd,_0xf9244d){const _0x4e7c6c=_0x5e6a,_0x11ba0b=_0x13a5bd();while(!![]){try{const _0x23fc77=parseInt(_0x4e7c6c(0x194))/0x1*(-parseInt(_0x4e7c6c(0x17c))/0x2)+-parseInt(_0x4e7c6c(0x177))/0x3*(parseInt(_0x4e7c6c(0x199))/0x4)+-parseInt(_0x4e7c6c(0x183))/0x5+-parseInt(_0x4e7c6c(0x174))/0x6*(parseInt(_0x4e7c6c(0x191))/0x7)+-parseInt(_0x4e7c6c(0x1b2))/0x8+parseInt(_0x4e7c6c(0x18e))/0x9+parseInt(_0x4e7c6c(0x1ab))/0xa;if(_0x23fc77===_0xf9244d)break;else _0x11ba0b['push'](_0x11ba0b['shift']());}catch(_0x594467){_0x11ba0b['push'](_0x11ba0b['shift']());}}}(_0x58c2,0x8bb24));import{FocusTracker as _0x5a8825,KeystrokeHandler as _0x2fc56e}from'ckeditor5/src/utils.js';function _0x5e6a(_0x38644c,_0x9186f8){const _0x58c294=_0x58c2();return _0x5e6a=function(_0x5e6ae6,_0x3bb4d4){_0x5e6ae6=_0x5e6ae6-0x15e;let _0x103d69=_0x58c294[_0x5e6ae6];return _0x103d69;},_0x5e6a(_0x38644c,_0x9186f8);}import{View as _0x244f82,FocusCycler as _0x2cc247,createLabeledTextarea as _0x3f1b39}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0xf1f8f,AIFormToolbarViewMainActionLabel as _0x50ce37}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x2db782}from'./aiformcontentarea.js';import{AIFormErrorView as _0x593849}from'./aiformerrorview.js';import{AIFormPromptView as _0x1a5597}from'./aiformpromptview.js';import{AIHistoryListView as _0x415bca}from'./aihistorylistview.js';function _0x58c2(){const _0x44857b=['text','handleError','focusLast','focusFirst','5815544YXwhij','bind','stopProcessing','contentArea','replaceButton','queryView','_createToolbar','insertContentBelow','bindTo','search','finishProcessing','errorView','promptView','startProcessing','toolbar','label','focusCycler','_createHistoryView','fire','chain','stopButton','prompt','REPLACE','238176sedvUs','isVisible','replaceContent','117QQHzFn','high','historyGroupView','clearHistory','listenTo','6spumqv','focusTracker','locale','clear','createCollection','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','execute','2450565GXRGJf','items','submitPrompt','Ask\x20AI\x20to\x20improve\x20generated\x20text','tab','tryAgainButton','mainAction','bindTemplate','add','ck-ai-form-content','ck-hidden','3919383QPPlhq','element','_promptHistory','21kjijVF','render','trim','143818uMOjZK','_createPromptView','focus','shift\x20+\x20tab','value','106876ncuqiF','isEnabled','tryAgainEvent','setTemplate','isProcessing','insertButton','div','Ask\x20AI\x20to\x20edit\x20or\x20generate','copyButtonView','fieldView','AI_ERROR_FAILED','ck-ai-form','isError','set','_focusables','keystrokes','submit','delegate','29463480LPCGzt','Empty\x20history','reset'];_0x58c2=function(){return _0x44857b;};return _0x58c2();}import{AIHistoryListItemView as _0x2ca2f9}from'./aihistorylistitemview.js';import{PromptHistory as _0x4af8a0}from'./prompthistory.js';import{getTranslation as _0x17431e}from'../../utils/common-translations.js';import{escape as _0x4ef800}from'es-toolkit/compat';export class AIFormView extends _0x244f82{[_0x567c27(0x17d)];[_0x567c27(0x1a8)];[_0x567c27(0x160)];[_0x567c27(0x16b)];[_0x567c27(0x169)];[_0x567c27(0x168)];[_0x567c27(0x1a7)];[_0x567c27(0x16d)];[_0x567c27(0x190)];constructor(_0x310091,_0x15b3ca,_0x4a228b=''){const _0x52b948=_0x567c27;super(_0x310091),this[_0x52b948(0x1a6)](_0x52b948(0x19a),!0x0),this[_0x52b948(0x1a6)](_0x52b948(0x19d),!0x1),this[_0x52b948(0x1a6)](_0x52b948(0x172),''),this[_0x52b948(0x1a6)](_0x52b948(0x198),''),this[_0x52b948(0x1a6)](_0x52b948(0x1a5),!0x1),this[_0x52b948(0x1a6)](_0x52b948(0x189),_0x50ce37[_0x52b948(0x173)]),this[_0x52b948(0x190)]=new _0x4af8a0(),this[_0x52b948(0x168)]=new _0x593849(_0x310091),this[_0x52b948(0x160)]=new _0x2db782(_0x310091,_0x4a228b),this[_0x52b948(0x160)][_0x52b948(0x15e)](_0x52b948(0x19d))['to'](this),this[_0x52b948(0x160)][_0x52b948(0x15e)](_0x52b948(0x198))['to'](this),this[_0x52b948(0x16b)]=this[_0x52b948(0x163)](),this[_0x52b948(0x16b)][_0x52b948(0x15e)](_0x52b948(0x189))['to'](this),this[_0x52b948(0x169)]=this[_0x52b948(0x195)](),this[_0x52b948(0x17d)]=new _0x5a8825(),this[_0x52b948(0x1a8)]=new _0x2fc56e(),this[_0x52b948(0x1a7)]=this[_0x52b948(0x180)]([this[_0x52b948(0x160)],this[_0x52b948(0x160)][_0x52b948(0x1a1)],this[_0x52b948(0x16b)],this[_0x52b948(0x169)]]),this[_0x52b948(0x16d)]=new _0x2cc247({'focusables':this[_0x52b948(0x1a7)],'focusTracker':this[_0x52b948(0x17d)],'keystrokeHandler':this[_0x52b948(0x1a8)],'actions':{'focusPrevious':_0x52b948(0x197),'focusNext':_0x52b948(0x187)}}),this[_0x52b948(0x16d)][_0x52b948(0x170)](this[_0x52b948(0x169)][_0x52b948(0x16d)]),this[_0x52b948(0x169)][_0x52b948(0x162)][_0x52b948(0x1a2)][_0x52b948(0x15e)](_0x52b948(0x198))['to'](this,_0x52b948(0x172));const _0x21899e=this[_0x52b948(0x18a)];this[_0x52b948(0x19c)]({'tag':_0x52b948(0x19f),'attributes':{'class':['ck',_0x52b948(0x1a4),_0x15b3ca],'tabindex':'-1'},'children':[{'tag':_0x52b948(0x19f),'attributes':{'class':['ck',_0x52b948(0x18c)]},'children':[{'tag':_0x52b948(0x19f),'attributes':{'class':[_0x21899e['if'](_0x52b948(0x1a5),_0x52b948(0x18d),_0x757874=>!_0x757874)]},'children':[this[_0x52b948(0x168)]]},this[_0x52b948(0x160)],this[_0x52b948(0x16b)],this[_0x52b948(0x169)]]}]});}[_0x567c27(0x192)](){const _0x5ed56e=_0x567c27;super[_0x5ed56e(0x192)](),this[_0x5ed56e(0x17d)][_0x5ed56e(0x18b)](this[_0x5ed56e(0x160)][_0x5ed56e(0x18f)]),this[_0x5ed56e(0x17d)][_0x5ed56e(0x18b)](this[_0x5ed56e(0x160)][_0x5ed56e(0x1a1)][_0x5ed56e(0x18f)]),this[_0x5ed56e(0x17d)][_0x5ed56e(0x18b)](this[_0x5ed56e(0x16b)][_0x5ed56e(0x18f)]),this[_0x5ed56e(0x17d)][_0x5ed56e(0x18b)](this[_0x5ed56e(0x169)][_0x5ed56e(0x18f)]),this[_0x5ed56e(0x1a8)][_0x5ed56e(0x17b)](this[_0x5ed56e(0x18f)]);}[_0x567c27(0x196)](_0x47d8ef=0x1){const _0xd2a91=_0x567c27;-0x1===_0x47d8ef?this[_0xd2a91(0x16d)][_0xd2a91(0x1b0)]():this[_0xd2a91(0x16d)][_0xd2a91(0x1b1)]();}[_0x567c27(0x1ad)](){const _0x531e83=_0x567c27;this[_0x531e83(0x172)]='',this[_0x531e83(0x198)]='',this[_0x531e83(0x1a5)]=!0x1,this[_0x531e83(0x169)][_0x531e83(0x1ad)](),this[_0x531e83(0x160)][_0x531e83(0x175)]=!0x1,this[_0x531e83(0x16b)][_0x531e83(0x175)]=!0x1;}[_0x567c27(0x195)](){const _0x419d7e=_0x567c27,_0xecc543=this[_0x419d7e(0x17e)],_0x1ce9df=new _0x1a5597(_0xecc543,{'queryView':{'label':_0x17431e(_0xecc543,_0x419d7e(0x1a0)),'creator':_0x3f1b39,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x17431e(_0xecc543,_0x419d7e(0x1ac)),'secondary':_0x17431e(_0xecc543,_0x419d7e(0x181))}}},'filteredView':this[_0x419d7e(0x16e)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x1ce9df[_0x419d7e(0x15e)](_0x419d7e(0x19a))['to'](this,_0x419d7e(0x19a),this,_0x419d7e(0x19d),(_0x28ac17,_0x2284bd)=>_0x28ac17&&!_0x2284bd),this[_0x419d7e(0x17b)](_0x1ce9df,_0x419d7e(0x1a9),(_0x1b542c,_0x2ce3e5)=>{const _0x24f773=_0x419d7e;this[_0x24f773(0x172)]=_0x2ce3e5;const _0x1702ad=_0x4ef800(_0x2ce3e5);this[_0x24f773(0x16f)](_0x24f773(0x185),_0x1702ad),_0x2ce3e5[_0x24f773(0x193)]()&&this[_0x24f773(0x190)][_0x24f773(0x18b)]({'prompt':_0x1702ad},0x0);},{'priority':_0x419d7e(0x178)}),_0x1ce9df;}[_0x567c27(0x16e)](){const _0x2f1453=_0x567c27,_0x430b4c=new _0x415bca(this[_0x2f1453(0x17e)]);return _0x430b4c[_0x2f1453(0x179)][_0x2f1453(0x184)][_0x2f1453(0x165)](this[_0x2f1453(0x190)])['as'](_0x2ca2f9),_0x430b4c['on'](_0x2f1453(0x17a),()=>{const _0x2aa4c8=_0x2f1453;this[_0x2aa4c8(0x190)][_0x2aa4c8(0x17f)](),this[_0x2aa4c8(0x169)][_0x2aa4c8(0x166)](''),this[_0x2aa4c8(0x169)][_0x2aa4c8(0x196)]();}),_0x430b4c;}[_0x567c27(0x163)](){const _0x263876=_0x567c27,_0x281851=new _0xf1f8f(this[_0x263876(0x17e)]);return _0x281851[_0x263876(0x161)][_0x263876(0x15e)](_0x263876(0x19a))['to'](this,_0x263876(0x19a),this,_0x263876(0x19d),this,_0x263876(0x198),(_0x191383,_0x3927e0,_0x4a8541)=>_0x191383&&!_0x3927e0&&!!_0x4a8541),_0x281851[_0x263876(0x161)][_0x263876(0x1aa)](_0x263876(0x182))['to'](this,_0x263876(0x176)),_0x281851[_0x263876(0x19e)][_0x263876(0x15e)](_0x263876(0x19a))['to'](this,_0x263876(0x19a),this,_0x263876(0x19d),this,_0x263876(0x198),(_0xb25d,_0x319f6c,_0x2ecc1c)=>_0xb25d&&!_0x319f6c&&!!_0x2ecc1c),_0x281851[_0x263876(0x19e)][_0x263876(0x1aa)](_0x263876(0x182))['to'](this,_0x263876(0x164)),_0x281851[_0x263876(0x188)][_0x263876(0x15e)](_0x263876(0x19a))['to'](this,_0x263876(0x19a),this,_0x263876(0x19d),(_0x1b9e6d,_0x3addca)=>_0x1b9e6d&&!_0x3addca),_0x281851[_0x263876(0x188)][_0x263876(0x1aa)](_0x263876(0x182))['to'](this,_0x263876(0x19b)),_0x281851[_0x263876(0x171)][_0x263876(0x15e)](_0x263876(0x19a))['to'](this,_0x263876(0x19d)),_0x281851[_0x263876(0x171)][_0x263876(0x1aa)](_0x263876(0x182))['to'](this,_0x263876(0x15f)),_0x281851;}[_0x567c27(0x16a)](){const _0x28bd8c=_0x567c27;this[_0x28bd8c(0x198)]='',this[_0x28bd8c(0x1a5)]=!0x1,this[_0x28bd8c(0x19d)]=!0x0,this[_0x28bd8c(0x160)][_0x28bd8c(0x175)]=!0x0,this[_0x28bd8c(0x16b)][_0x28bd8c(0x175)]=!0x0,this[_0x28bd8c(0x160)][_0x28bd8c(0x196)]();}[_0x567c27(0x167)](){const _0x3512cc=_0x567c27,_0x3cb714=this[_0x3512cc(0x17e)];this[_0x3512cc(0x19d)]=!0x1,this[_0x3512cc(0x172)]='',this[_0x3512cc(0x169)][_0x3512cc(0x1ad)](),this[_0x3512cc(0x198)]&&(this[_0x3512cc(0x169)][_0x3512cc(0x162)][_0x3512cc(0x16c)]=_0x17431e(_0x3cb714,_0x3512cc(0x186)));}[_0x567c27(0x1af)](_0x2e055d){const _0x2609dd=_0x567c27,_0x434b4a=this[_0x2609dd(0x17e)];this[_0x2609dd(0x167)](),this[_0x2609dd(0x1a5)]=!0x0,this[_0x2609dd(0x168)][_0x2609dd(0x1ae)]=_0x2e055d||_0x17431e(_0x434b4a,_0x2609dd(0x1a3)),this[_0x2609dd(0x198)]||(this[_0x2609dd(0x160)][_0x2609dd(0x175)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3a3c(){const _0x48d327=['275610RgdLDK','locale','fire','prompt','execute','1882909fZovAO','1210864vQdwPW','set','2JDIrJa','children','188192TCmVHk','add','191885DbRNTk','102083djTXmO','2955276DvvgWf','6ztNQcj'];_0x3a3c=function(){return _0x48d327;};return _0x3a3c();}function _0x1f9d(_0xa03269,_0x2a0cc9){const _0x3a3cb8=_0x3a3c();return _0x1f9d=function(_0x1f9dd6,_0x193801){_0x1f9dd6=_0x1f9dd6-0x178;let _0x430f1c=_0x3a3cb8[_0x1f9dd6];return _0x430f1c;},_0x1f9d(_0xa03269,_0x2a0cc9);}(function(_0x20f57e,_0x4f8b5a){const _0x316d65=_0x1f9d,_0x9d58f3=_0x20f57e();while(!![]){try{const _0x4b6760=parseInt(_0x316d65(0x183))/0x1*(parseInt(_0x316d65(0x17e))/0x2)+-parseInt(_0x316d65(0x186))/0x3+parseInt(_0x316d65(0x17c))/0x4+parseInt(_0x316d65(0x182))/0x5*(-parseInt(_0x316d65(0x185))/0x6)+parseInt(_0x316d65(0x17b))/0x7+-parseInt(_0x316d65(0x180))/0x8+-parseInt(_0x316d65(0x184))/0x9;if(_0x4b6760===_0x4f8b5a)break;else _0x9d58f3['push'](_0x9d58f3['shift']());}catch(_0x2b44bf){_0x9d58f3['push'](_0x9d58f3['shift']());}}}(_0x3a3c,0x2eca3));import{ListItemView as _0x1b8932,ButtonView as _0x3d65d6,ButtonLabelView as _0x3c2826}from'ckeditor5/src/ui.js';import{unescape as _0xbfa1be}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x1b8932{constructor(_0x19bdbe){const _0x5d78e4=_0x1f9d;super();const _0x4da0e6=new _0x3c2826(),_0x19d28e=new _0x3d65d6(this[_0x5d78e4(0x187)],_0x4da0e6);this[_0x5d78e4(0x17f)][_0x5d78e4(0x181)](_0x19d28e),_0x19d28e[_0x5d78e4(0x17d)]({'label':_0x19bdbe[_0x5d78e4(0x179)],'withText':!0x0}),_0x19d28e['on'](_0x5d78e4(0x17a),()=>{const _0x5b91ee=_0x5d78e4;this[_0x5b91ee(0x178)](_0x5b91ee(0x17a),{'value':_0xbfa1be(_0x19bdbe[_0x5b91ee(0x179)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xbf2553=_0x7eb9;(function(_0x43ff42,_0x2f2cf0){const _0x41bf8b=_0x7eb9,_0x490768=_0x43ff42();while(!![]){try{const _0x5db169=-parseInt(_0x41bf8b(0x7b))/0x1*(parseInt(_0x41bf8b(0x71))/0x2)+-parseInt(_0x41bf8b(0x67))/0x3+-parseInt(_0x41bf8b(0x6a))/0x4*(parseInt(_0x41bf8b(0x6e))/0x5)+parseInt(_0x41bf8b(0x6d))/0x6*(parseInt(_0x41bf8b(0x66))/0x7)+parseInt(_0x41bf8b(0x74))/0x8*(parseInt(_0x41bf8b(0x6c))/0x9)+parseInt(_0x41bf8b(0x68))/0xa+-parseInt(_0x41bf8b(0x7f))/0xb;if(_0x5db169===_0x2f2cf0)break;else _0x490768['push'](_0x490768['shift']());}catch(_0xd3efae){_0x490768['push'](_0x490768['shift']());}}}(_0x4d92,0x24edf));import{ListView as _0x4baefb,ListItemGroupView as _0x1395d4,ButtonView as _0x2bb4c4}from'ckeditor5/src/ui.js';import{getTranslation as _0x1c434f}from'../../utils/common-translations.js';function _0x7eb9(_0x36d91c,_0x2f787d){const _0x4d92ec=_0x4d92();return _0x7eb9=function(_0x7eb911,_0x1cba7a){_0x7eb911=_0x7eb911-0x64;let _0x5540a5=_0x4d92ec[_0x7eb911];return _0x5540a5;},_0x7eb9(_0x36d91c,_0x2f787d);}function _0x4d92(){const _0x155c9d=['21ogxlcJ','209640ksBskQ','2566940tWFqoJ','length','2588VrSPDA','set','27135ZSdziG','462546ydUlsw','2005lVjikS','delegate','items','86RthLtX','clearHistoryButton','historyGroupView','456xOlDUU','filter','fire','_createClearHistoryButton','Prompt\x20history','clearHistory','Clear','3183xWQkly','execute','label','locale','465993mLNJQY','children','add'];_0x4d92=function(){return _0x155c9d;};return _0x4d92();}export class AIHistoryListView extends _0x4baefb{[_0xbf2553(0x73)];[_0xbf2553(0x72)];constructor(_0x8455ba){const _0xdbb3ba=_0xbf2553;super(_0x8455ba),this[_0xdbb3ba(0x72)]=this[_0xdbb3ba(0x77)](),this[_0xdbb3ba(0x73)]=new _0x1395d4(),this[_0xdbb3ba(0x73)][_0xdbb3ba(0x64)][_0xdbb3ba(0x65)](this[_0xdbb3ba(0x72)],0x1),this[_0xdbb3ba(0x73)][_0xdbb3ba(0x7d)]=_0x1c434f(_0x8455ba,_0xdbb3ba(0x78)),this[_0xdbb3ba(0x73)][_0xdbb3ba(0x70)][_0xdbb3ba(0x6f)](_0xdbb3ba(0x7c))['to'](this),this[_0xdbb3ba(0x70)][_0xdbb3ba(0x65)](this[_0xdbb3ba(0x73)]);}[_0xbf2553(0x75)](){const _0x21b924=_0xbf2553;let _0x406157=0x0;for(const _0x41cd39 of this[_0x21b924(0x70)])_0x406157+=_0x41cd39[_0x21b924(0x70)][_0x21b924(0x69)];return{'resultsCount':_0x406157,'totalItemsCount':_0x406157};}[_0xbf2553(0x77)](){const _0x44caed=_0xbf2553,_0x8ca67f=this[_0x44caed(0x7e)],_0x3159a1=new _0x2bb4c4(this[_0x44caed(0x7e)]);return _0x3159a1[_0x44caed(0x6b)]({'label':'('+_0x1c434f(_0x8ca67f,_0x44caed(0x7a))+')','withText':!0x0}),_0x3159a1['on'](_0x44caed(0x7c),()=>this[_0x44caed(0x76)](_0x44caed(0x79))),_0x3159a1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x502c0b=_0x138e;(function(_0x5e5712,_0x4bafef){const _0x14e84c=_0x138e,_0x5dc79a=_0x5e5712();while(!![]){try{const _0x5ee6f7=parseInt(_0x14e84c(0x173))/0x1+parseInt(_0x14e84c(0x168))/0x2+parseInt(_0x14e84c(0x16f))/0x3+-parseInt(_0x14e84c(0x163))/0x4+-parseInt(_0x14e84c(0x165))/0x5*(-parseInt(_0x14e84c(0x16c))/0x6)+parseInt(_0x14e84c(0x171))/0x7*(parseInt(_0x14e84c(0x166))/0x8)+-parseInt(_0x14e84c(0x162))/0x9;if(_0x5ee6f7===_0x4bafef)break;else _0x5dc79a['push'](_0x5dc79a['shift']());}catch(_0x447979){_0x5dc79a['push'](_0x5dc79a['shift']());}}}(_0x5379,0x542e9));import{Collection as _0x379e4b}from'ckeditor5/src/utils.js';const Sr=_0x502c0b(0x16e);export class PromptHistory extends _0x379e4b{constructor(){const _0x1757cd=_0x502c0b;super(),this[_0x1757cd(0x170)](),this['on'](_0x1757cd(0x174),(_0x4cb265,_0x4b234d)=>{const _0x239793=_0x1757cd,_0x168a8d=Fr(_0x4b234d[_0x239793(0x16a)]);for(const _0x5c8b74 of this)if(_0x5c8b74!=_0x4b234d&&Fr(_0x5c8b74[_0x239793(0x16a)])===_0x168a8d){this[_0x239793(0x15e)](_0x5c8b74);break;}this[_0x239793(0x16d)]>0x14&&this[_0x239793(0x15e)](this[_0x239793(0x15f)]),this[_0x239793(0x160)]();}),this['on'](_0x1757cd(0x15e),()=>{const _0x49269a=_0x1757cd;this[_0x49269a(0x160)]();});}[_0x502c0b(0x170)](){const _0x3f1eb1=_0x502c0b,_0x3e5b70=sessionStorage[_0x3f1eb1(0x164)](Sr)||'[]';this[_0x3f1eb1(0x167)](JSON[_0x3f1eb1(0x16b)](_0x3e5b70));}[_0x502c0b(0x160)](){const _0x4f4736=_0x502c0b;sessionStorage[_0x4f4736(0x169)](Sr,JSON[_0x4f4736(0x15d)](this[_0x4f4736(0x15c)](_0x42b39f=>_0x42b39f)));}}function Fr(_0x42646f){const _0x135810=_0x502c0b;return _0x42646f[_0x135810(0x172)]()[_0x135810(0x161)]();}function _0x138e(_0x43caa9,_0xefaa8e){const _0x537903=_0x5379();return _0x138e=function(_0x138eb6,_0x42d818){_0x138eb6=_0x138eb6-0x15c;let _0x2b737b=_0x537903[_0x138eb6];return _0x2b737b;},_0x138e(_0x43caa9,_0xefaa8e);}function _0x5379(){const _0x453479=['getItem','5ROZcYl','1536NdINCG','addMany','1303768psIHHP','setItem','prompt','parse','4071876ymMtTX','length','CKEditor/AIFormView/PromptHistory','1857081lATBBI','_loadFromSessionStorage','1316XgFrKt','toLowerCase','372988QqlDPd','add','map','stringify','remove','last','_saveToSessionStorage','trim','17268696rQCKnI','380352nxLHzc'];_0x5379=function(){return _0x453479;};return _0x5379();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x396f4d=_0x1bad;function _0x4685(){const _0x21f502=['getRanges','editor','includes','_commandDefinitions','plugins','getItems','12174670YDGpmR','showUI','1tYnwhX','9144kxJgtH','2639PPrrfP','1728894XjFovY','requiresContent','length','enabledCommandsIds','ai.assistant.disabledElements','isEnabled','1572zvxaaF','getFirstRange','element','add','selection','2521503lwaVeE','custom','isEmpty','change:_hasContext','model','4775GfrcDh','3945900mndULt','document','values','get','from','isCollapsed','_hasContext','getSelectedBlocks','1520EnoElb','change:isEnabled','name','hasContent','execute','set','refresh','config'];_0x4685=function(){return _0x21f502;};return _0x4685();}(function(_0xed944,_0x2188e){const _0x537bcf=_0x1bad,_0x4d060d=_0xed944();while(!![]){try{const _0xb1bfe=-parseInt(_0x537bcf(0xbc))/0x1*(-parseInt(_0x537bcf(0xbf))/0x2)+-parseInt(_0x537bcf(0xca))/0x3+-parseInt(_0x537bcf(0xd0))/0x4+parseInt(_0x537bcf(0xcf))/0x5+-parseInt(_0x537bcf(0xc5))/0x6*(-parseInt(_0x537bcf(0xbe))/0x7)+-parseInt(_0x537bcf(0xd8))/0x8*(-parseInt(_0x537bcf(0xbd))/0x9)+parseInt(_0x537bcf(0xba))/0xa;if(_0xb1bfe===_0x2188e)break;else _0x4d060d['push'](_0x4d060d['shift']());}catch(_0x2a735b){_0x4d060d['push'](_0x4d060d['shift']());}}}(_0x4685,0x85b7b));import{Command as _0x39f3d4}from'ckeditor5/src/core.js';function _0x1bad(_0x1c114f,_0x4ffcfc){const _0x46851a=_0x4685();return _0x1bad=function(_0x1bad9d,_0x4ba0d8){_0x1bad9d=_0x1bad9d-0xba;let _0x24e704=_0x46851a[_0x1bad9d];return _0x24e704;},_0x1bad(_0x1c114f,_0x4ffcfc);}import{AIAssistantUI as _0x3f994e}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x39f3d4{[_0x396f4d(0xe3)];constructor(_0x24b8e1,_0x52ae48){const _0x117c23=_0x396f4d;super(_0x24b8e1),this[_0x117c23(0xe3)]=_0x52ae48,this[_0x117c23(0xdd)](_0x117c23(0xc2),[]),this['on'](_0x117c23(0xcd),(_0x156d47,_0x1f430b,_0x2655a6)=>{const _0x2d2d4c=_0x117c23;this[_0x2d2d4c(0xc4)]&&(this[_0x2d2d4c(0xc2)]=js(this[_0x2d2d4c(0xe3)],_0x2655a6));}),this[_0x117c23(0xdd)](_0x117c23(0xd6),!0x1),this['on'](_0x117c23(0xd9),(_0x2ba3c1,_0x2d94e9,_0x4f67ee)=>{const _0x2b540c=_0x117c23;this[_0x2b540c(0xc2)]=_0x4f67ee?js(this[_0x2b540c(0xe3)],this[_0x2b540c(0xd6)]):[];});}[_0x396f4d(0xde)](){const _0x214ebe=_0x396f4d,_0xd336eb=this[_0x214ebe(0xe1)][_0x214ebe(0xce)];this[_0x214ebe(0xd6)]=function(_0x46a71c){const _0xf95f51=_0x214ebe,_0x4cfe77=_0x46a71c[_0xf95f51(0xd1)][_0xf95f51(0xc9)];return _0x4cfe77[_0xf95f51(0xd5)]?0x0!==[..._0x4cfe77[_0xf95f51(0xd7)]()][_0xf95f51(0xc1)]&&![..._0x4cfe77[_0xf95f51(0xd7)]()][0x0][_0xf95f51(0xcc)]:!!_0x46a71c[_0xf95f51(0xdb)](_0x4cfe77[_0xf95f51(0xc6)]());}(_0xd336eb);const _0x10f359=_0xd336eb[_0x214ebe(0xd1)][_0x214ebe(0xc9)],_0x50964d=this[_0x214ebe(0xe1)][_0x214ebe(0xdf)][_0x214ebe(0xd3)](_0x214ebe(0xc3));for(const _0x408cf0 of _0x10f359[_0x214ebe(0xe0)]())for(const _0x15495f of _0x408cf0[_0x214ebe(0xe5)]())if(_0x15495f['is'](_0x214ebe(0xc7))&&_0x50964d[_0x214ebe(0xe2)](_0x15495f[_0x214ebe(0xda)]))return void(this[_0x214ebe(0xc4)]=!0x1);this[_0x214ebe(0xc4)]=!0x0;}[_0x396f4d(0xdc)](_0x5c8aca='',_0xfb3d91='',_0x8c4d08=_0x396f4d(0xcb)){const _0x48ca40=_0x396f4d;this[_0x48ca40(0xe1)][_0x48ca40(0xe4)][_0x48ca40(0xd3)](_0x3f994e)[_0x48ca40(0xbb)](_0x5c8aca,_0xfb3d91,_0x8c4d08);}}function js(_0xbc9c01,_0x1a4564){const _0x33533d=_0x396f4d,_0x425dd9=new Set();for(const _0x5c4aa1 of _0xbc9c01[_0x33533d(0xd2)]())(_0x1a4564||!0x1===_0x5c4aa1[_0x33533d(0xc0)])&&_0x425dd9[_0x33533d(0xc8)](_0x5c4aa1['id']);return Array[_0x33533d(0xd4)](_0x425dd9);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x257160=_0x3bb4;(function(_0x10499c,_0x29e74c){const _0x21c98a=_0x3bb4,_0x3c164e=_0x10499c();while(!![]){try{const _0x4096ab=parseInt(_0x21c98a(0x175))/0x1*(-parseInt(_0x21c98a(0x1a9))/0x2)+parseInt(_0x21c98a(0x1ad))/0x3*(parseInt(_0x21c98a(0x19a))/0x4)+-parseInt(_0x21c98a(0x1bb))/0x5*(parseInt(_0x21c98a(0x1bc))/0x6)+-parseInt(_0x21c98a(0x1ae))/0x7+parseInt(_0x21c98a(0x171))/0x8+parseInt(_0x21c98a(0x1ba))/0x9*(-parseInt(_0x21c98a(0x1a1))/0xa)+parseInt(_0x21c98a(0x176))/0xb*(parseInt(_0x21c98a(0x1a5))/0xc);if(_0x4096ab===_0x29e74c)break;else _0x3c164e['push'](_0x3c164e['shift']());}catch(_0x413d0a){_0x3c164e['push'](_0x3c164e['shift']());}}}(_0x4c78,0xd435a));import{ContextPlugin as _0x42e606}from'ckeditor5/src/core.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x16cd0d,AIEditing as _0x5216fe}from'../aicore/aiediting.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x5c15c5}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x4f7e22,Rect as _0x4b7e13,scrollViewportToShowTarget as _0x2a5eff}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x5b4ae1}from'../aicore/utils/geteditorfromcontext.js';import{getTranslation as _0x2088bd}from'../aicore/utils/common-translations.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x502944}from'./ui/aiballoonview.js';function _0x3bb4(_0x4b4bd5,_0x6d08dc){const _0x4c78e1=_0x4c78();return _0x3bb4=function(_0x3bb459,_0x1301a6){_0x3bb459=_0x3bb459-0x164;let _0x1d8a93=_0x4c78e1[_0x3bb459];return _0x1d8a93;},_0x3bb4(_0x4b4bd5,_0x6d08dc);}function _0x4c78(){const _0x590763=['AIBalloon','576qIQxWE','10gfyqEt','137622RpHQqw','_currentConfig','isOfficialPlugin','getMarkersGroup','model','max','mainView','end','iconView','plugins','once','filter','listenTo','stopListening','label','show','length','get','ck-ai-balloon\x20','isEqual','9477216yZnSEl','ai-selection','high','width','1213anMPLe','11RbcYHE','startsWith','fire','_showDialog','_calculateOptimalTopPosition','window','_calculateDialogPosition','Dialog','ranges','height','_cleanupFakeVisualSelectionMarkerRemovalListener','change','root','hideFakeVisualSelection','start','differ','_hideFakeVisualSelection','index','headerView','getBoundingRect','delegate','context','pluginName','$graveyard','updatePosition','_isUpdatingMarkers','beforeDialogClosed','selectionRemoved','isOpen','requires','getIntersection','close','bind','markers','document','round','1824RdSBBE','dialogClosed','open','rootName','getVisible','showBlockingError','editing','81140OLPSdt','ai-balloon-','left','hideError','7478148PyTzkx','getChangedMarkers','_getSelectionElements','view','2306cobNbP','locale','isPremiumPlugin','content','7752BUjsOS','1072162fiHTum','ai-balloon-selection','map','_updateDialog','top','_setupFakeVisualSelectionMarkerRemovalListener','_showFakeVisualSelection','AI_BALLOON_SELECTION_REMOVED_ERROR','bottom','showFakeVisualSelection','hide'];_0x4c78=function(){return _0x590763;};return _0x4c78();}export const AI_BALLOON_EVENT_NAMES=[..._0x502944,_0x257160(0x19b),_0x257160(0x191)];const L=0xa;export class AIBalloon extends _0x42e606{static get[_0x257160(0x193)](){return[_0x5216fe];}static get[_0x257160(0x18c)](){const _0x4de0e8=_0x257160;return _0x4de0e8(0x1b9);}static get[_0x257160(0x1be)](){return!0x0;}static get[_0x257160(0x1ab)](){return!0x0;}[_0x257160(0x192)]=!0x1;[_0x257160(0x1bd)];[_0x257160(0x18f)]=!0x1;[_0x257160(0x19c)](_0x218f31){const _0x345013=_0x257160,{id:_0x559202}=this[_0x345013(0x1bd)]??{};this[_0x345013(0x1bd)]=_0x218f31;const {id:_0x196533}=this[_0x345013(0x1bd)];this[_0x345013(0x192)]&&_0x559202===_0x196533?this[_0x345013(0x1b1)]():this[_0x345013(0x179)]();}[_0x257160(0x195)](){const _0x575738=_0x257160,_0x5c08c8=_0x5b4ae1(this[_0x575738(0x18b)])[_0x575738(0x166)][_0x575738(0x16e)](_0x575738(0x17d));_0x5c08c8[_0x575738(0x192)]&&this[_0x575738(0x1bd)]&&_0x5c08c8['id']===this[_0x575738(0x1bd)]['id']&&_0x5c08c8[_0x575738(0x1b8)]();}[_0x257160(0x1b1)](){const _0x382731=_0x257160,_0x5b7a50=_0x5b4ae1(this[_0x382731(0x18b)])[_0x382731(0x166)][_0x382731(0x16e)](_0x382731(0x17d)),{icon:_0x44829a,title:_0x49b865}=this[_0x382731(0x1bd)];_0x5b7a50[_0x382731(0x1a8)]?.[_0x382731(0x188)]&&(_0x5b7a50[_0x382731(0x1a8)][_0x382731(0x188)][_0x382731(0x16b)]=_0x49b865,_0x5b7a50[_0x382731(0x1a8)][_0x382731(0x188)][_0x382731(0x165)]&&_0x44829a&&(_0x5b7a50[_0x382731(0x1a8)][_0x382731(0x188)][_0x382731(0x165)][_0x382731(0x1ac)]=_0x44829a)),this[_0x382731(0x18f)]=!0x0,this[_0x382731(0x1b4)](),this[_0x382731(0x18f)]=!0x1,_0x5b7a50[_0x382731(0x1a8)]?.[_0x382731(0x18e)]();}[_0x257160(0x1b4)](){const _0x3ddb0c=_0x257160;this[_0x3ddb0c(0x18b)][_0x3ddb0c(0x166)][_0x3ddb0c(0x16e)](_0x5216fe)[_0x3ddb0c(0x1b7)](this[_0x3ddb0c(0x1bd)][_0x3ddb0c(0x17e)],_0x3ddb0c(0x1a2)+this[_0x3ddb0c(0x1bd)][_0x3ddb0c(0x187)],!0x0,!0x0);}[_0x257160(0x186)](_0x3b29c1){const _0x98af85=_0x257160;this[_0x98af85(0x18b)][_0x98af85(0x166)][_0x98af85(0x16e)](_0x5216fe)[_0x98af85(0x183)](_0x98af85(0x1a2)+_0x3b29c1);}[_0x257160(0x179)](){const _0x37f78a=_0x257160,_0x39393e=_0x5b4ae1(this[_0x37f78a(0x18b)])[_0x37f78a(0x166)][_0x37f78a(0x16e)](_0x37f78a(0x17d)),{id:_0xd28891,title:_0x17edfd,icon:_0x443467,class:_0x29875a,mainView:_0x41597b}=this[_0x37f78a(0x1bd)];_0x41597b[_0x37f78a(0x18a)](..._0x502944)['to'](this),_0x39393e[_0x37f78a(0x16c)]({'title':_0x17edfd,'icon':_0x443467,'hasCloseButton':!0x0,'id':_0xd28891,'position':this[_0x37f78a(0x17c)][_0x37f78a(0x196)](this),'className':_0x37f78a(0x16f)+(_0x29875a||''),'content':_0x41597b,'onShow':_0x1d7177=>{const _0x29d62d=_0x37f78a;this[_0x29d62d(0x1b4)](),this[_0x29d62d(0x1b3)]();const _0x3b0170=this[_0x29d62d(0x1a7)]();_0x3b0170&&_0x3b0170[0x0]&&_0x2a5eff({'target':_0x3b0170[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0x29d62d(0x192)]=!0x0,_0x1d7177[_0x29d62d(0x167)](_0x29d62d(0x1b8),()=>{const _0x2b475e=_0x29d62d;this[_0x2b475e(0x178)](_0x2b475e(0x190),{'id':_0xd28891});},{'priority':_0x29d62d(0x173)});},'onHide':()=>{const _0x5691a4=_0x37f78a;this[_0x5691a4(0x186)](this[_0x5691a4(0x1bd)][_0x5691a4(0x187)]),this[_0x5691a4(0x180)](),this[_0x5691a4(0x178)](_0x5691a4(0x19b),{'id':_0xd28891}),this[_0x5691a4(0x192)]=!0x1;}});}[_0x257160(0x17c)](_0x47e8ba,_0x467d3a){const _0x2bf008=_0x257160;if(!_0x467d3a)return null;const _0x438dec=this[_0x2bf008(0x1a7)]();if(!_0x438dec||0x0===_0x438dec[_0x2bf008(0x16d)])return{'left':Math[_0x2bf008(0x199)](_0x467d3a[_0x2bf008(0x1a3)]+_0x467d3a[_0x2bf008(0x174)]/0x2-_0x47e8ba[_0x2bf008(0x174)]/0x2),'top':Math[_0x2bf008(0x199)](_0x467d3a[_0x2bf008(0x1b2)]+_0x467d3a[_0x2bf008(0x17f)]/0x2-_0x47e8ba[_0x2bf008(0x17f)]/0x2)};const _0x553f44=Math[_0x2bf008(0x199)](_0x467d3a[_0x2bf008(0x1a3)]+_0x467d3a[_0x2bf008(0x174)]/0x2-_0x47e8ba[_0x2bf008(0x174)]/0x2),_0x2a5bf3=_0x438dec[_0x2bf008(0x1b0)](_0x394208=>new _0x4b7e13(_0x394208)),_0x4057de=_0x47e8ba[_0x2bf008(0x17f)];return{'left':_0x553f44,'top':this[_0x2bf008(0x17a)](_0x2a5bf3,_0x4057de,_0x467d3a)};}[_0x257160(0x17a)](_0x318b7c,_0x2d54f9,_0x9b34e1){const _0xe10606=_0x257160,_0x44e1fa=new _0x4b7e13(_0x4f7e22[_0xe10606(0x17b)]),_0x21403c=_0x318b7c[_0xe10606(0x1b0)](_0x39a3e5=>_0x39a3e5[_0xe10606(0x19e)]())[_0xe10606(0x168)](_0x76697a=>_0x76697a),_0x316df0=_0x4b7e13[_0xe10606(0x189)](_0x21403c);if(!_0x316df0)return Math[_0xe10606(0x199)](_0x9b34e1[_0xe10606(0x1b2)]+_0x9b34e1[_0xe10606(0x17f)]/0x2);const _0x3ad1ad=_0x44e1fa[_0xe10606(0x194)](_0x316df0);if(!_0x3ad1ad)return Math[_0xe10606(0x199)](_0x9b34e1[_0xe10606(0x1b2)]+_0x9b34e1[_0xe10606(0x17f)]/0x2);const _0x38bca4=_0x9b34e1[_0xe10606(0x19e)](),_0x3c5739=_0x38bca4&&_0x316df0[_0xe10606(0x17f)]>_0x38bca4[_0xe10606(0x17f)],_0x1d88a9=_0x3ad1ad[_0xe10606(0x1b2)],_0x39b7f3=_0x3ad1ad[_0xe10606(0x1b6)];if(_0x3c5739){const _0x477266=(_0x38bca4||_0x44e1fa)[_0xe10606(0x17f)]/0x2-_0x2d54f9/0x2,_0x46b914=_0x1d88a9-L-_0x9b34e1[_0xe10606(0x1b2)],_0x4421a7=_0x9b34e1[_0xe10606(0x1b6)]-_0x39b7f3-L;return _0x46b914>=_0x2d54f9?Math[_0xe10606(0x1c1)](L,_0x1d88a9-_0x2d54f9-L):_0x4421a7>=_0x2d54f9?_0x39b7f3+L:Math[_0xe10606(0x1c1)](L,_0x477266);}const _0x4cb4c3=_0x1d88a9-_0x2d54f9,_0x449824=_0x9b34e1[_0xe10606(0x1b6)]-_0x39b7f3-L,_0x43c899=_0x1d88a9-L-_0x9b34e1[_0xe10606(0x1b2)];let _0x2cd8e1;if(_0x449824>=_0x2d54f9)_0x2cd8e1=_0x39b7f3+L;else{if(_0x43c899>=_0x2d54f9)_0x2cd8e1=_0x4cb4c3-L;else _0x2cd8e1=_0x1d88a9+_0x316df0[_0xe10606(0x17f)]/0x2-_0x2d54f9/0x2;}return _0x2cd8e1;}[_0x257160(0x1b3)](){const _0x395112=_0x257160,_0x57f671=_0x5b4ae1(this[_0x395112(0x18b)]);this[_0x395112(0x169)](_0x57f671[_0x395112(0x1c0)][_0x395112(0x198)],_0x395112(0x181),()=>{const _0xc4732=_0x395112;if(!this[_0xc4732(0x18f)]){for(const {name:_0x2e3d77,data:{newRange:_0x508577}}of _0x57f671[_0xc4732(0x1c0)][_0xc4732(0x198)][_0xc4732(0x185)][_0xc4732(0x1a6)]())if(_0x2e3d77[_0xc4732(0x177)](_0x16cd0d+':')&&(_0x508577&&(_0x508577[_0xc4732(0x184)][_0xc4732(0x170)](_0x508577[_0xc4732(0x164)])||_0xc4732(0x18d)==_0x508577[_0xc4732(0x182)][_0xc4732(0x19d)])||null==_0x508577)){const _0x209715=_0x2088bd(this[_0xc4732(0x18b)][_0xc4732(0x1aa)],_0xc4732(0x1b5));this[_0xc4732(0x1bd)][_0xc4732(0x1c2)][_0xc4732(0x19f)](_0x209715),this[_0xc4732(0x178)](_0xc4732(0x191));}}});}[_0x257160(0x180)](){const _0x56d067=_0x257160,_0x3550f3=_0x5b4ae1(this[_0x56d067(0x18b)]);this[_0x56d067(0x1bd)][_0x56d067(0x1c2)][_0x56d067(0x1a4)](),this[_0x56d067(0x16a)](_0x3550f3[_0x56d067(0x1c0)][_0x56d067(0x198)]);}[_0x257160(0x1a7)](){const _0x577851=_0x257160,_0x3feb1b=_0x5b4ae1(this[_0x577851(0x18b)]);return _0x5c15c5(_0x3feb1b[_0x577851(0x1a0)],[..._0x3feb1b[_0x577851(0x1c0)][_0x577851(0x197)][_0x577851(0x1bf)](_0x577851(0x172)),..._0x3feb1b[_0x577851(0x1c0)][_0x577851(0x197)][_0x577851(0x1bf)](_0x577851(0x1af))]);}}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x48111e=_0x13a9;function _0x13a9(_0x37581e,_0x5d011a){var _0x47c091=_0x47c0();return _0x13a9=function(_0x13a942,_0x21e124){_0x13a942=_0x13a942-0x125;var _0x3eb235=_0x47c091[_0x13a942];return _0x3eb235;},_0x13a9(_0x37581e,_0x5d011a);}(function(_0xfa1c58,_0x3156d8){var _0x59b9a1=_0x13a9,_0x4a479a=_0xfa1c58();while(!![]){try{var _0x36bc9d=parseInt(_0x59b9a1(0x12a))/0x1+-parseInt(_0x59b9a1(0x12b))/0x2*(parseInt(_0x59b9a1(0x13a))/0x3)+parseInt(_0x59b9a1(0x138))/0x4+parseInt(_0x59b9a1(0x131))/0x5*(-parseInt(_0x59b9a1(0x132))/0x6)+parseInt(_0x59b9a1(0x130))/0x7+-parseInt(_0x59b9a1(0x13e))/0x8*(parseInt(_0x59b9a1(0x12f))/0x9)+-parseInt(_0x59b9a1(0x13b))/0xa*(-parseInt(_0x59b9a1(0x126))/0xb);if(_0x36bc9d===_0x3156d8)break;else _0x4a479a['push'](_0x4a479a['shift']());}catch(_0x1e5ace){_0x4a479a['push'](_0x4a479a['shift']());}}}(_0x47c0,0x62717));import{ContextPlugin as _0x45e0f4}from'ckeditor5/src/core.js';import{AIChatController as _0x54956d}from'./aichatcontroller.js';import{AIEditing as _0x54afef}from'../aicore/aiediting.js';import{AIChatUI as _0x3b1aa9}from'./aichatui.js';function _0x47c0(){var _0x638393=['isOfficialPlugin','sendMessage','ai.chat.context','3162609qYDzxM','3859443eMJJUU','5cmjvKe','1711746hXUWpC','pluginName','requires','config','registerToolDataCallback','removeSelectionFromChatContext','573816pJStzv','get','3849GqOdGA','10ClrSwl','AIChat','addSelectionToChatContext','16iFWyCV','ai.chat.initialConversation','startConversation','plugins','_registerToolDataCallback','new','isPremiumPlugin','9660167djYKiS','focusPromptInput','context','define','414911dPZqzH','930TiqHSK'];_0x47c0=function(){return _0x638393;};return _0x47c0();}import{AIChatHistory as _0x15b858}from'../aichathistory/aichathistory.js';export class AIChat extends _0x45e0f4{static get[_0x48111e(0x134)](){return[_0x54956d,_0x54afef,_0x3b1aa9,_0x15b858];}static get[_0x48111e(0x133)](){var _0x78f8d6=_0x48111e;return _0x78f8d6(0x13c);}static get[_0x48111e(0x12c)](){return!0x0;}static get[_0x48111e(0x125)](){return!0x0;}constructor(_0x4e8ba7){var _0x2f2199=_0x48111e;super(_0x4e8ba7),this[_0x2f2199(0x128)][_0x2f2199(0x135)][_0x2f2199(0x129)](_0x2f2199(0x12e),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x2f2199(0x128)][_0x2f2199(0x135)][_0x2f2199(0x129)](_0x2f2199(0x13f),_0x2f2199(0x143));}async[_0x48111e(0x13d)](){var _0x10ebd0=_0x48111e;await this[_0x10ebd0(0x128)][_0x10ebd0(0x141)][_0x10ebd0(0x139)](_0x54956d)[_0x10ebd0(0x13d)]();}async[_0x48111e(0x140)](){var _0x414394=_0x48111e;await this[_0x414394(0x128)][_0x414394(0x141)][_0x414394(0x139)](_0x54956d)[_0x414394(0x140)]();}async[_0x48111e(0x12d)]({message:_0xe6e2a,attributes:_0x47fb2c}){var _0x4424a8=_0x48111e;await this[_0x4424a8(0x128)][_0x4424a8(0x141)][_0x4424a8(0x139)](_0x54956d)[_0x4424a8(0x12d)]({'message':_0xe6e2a,'attributes':_0x47fb2c});}[_0x48111e(0x137)](){var _0x87c60c=_0x48111e;this[_0x87c60c(0x128)][_0x87c60c(0x141)][_0x87c60c(0x139)](_0x54956d)[_0x87c60c(0x137)]();}[_0x48111e(0x127)](){var _0x27860f=_0x48111e;this[_0x27860f(0x128)][_0x27860f(0x141)][_0x27860f(0x139)](_0x54956d)[_0x27860f(0x127)]();}[_0x48111e(0x136)](_0x17fd1a){var _0x23be21=_0x48111e;this[_0x23be21(0x128)][_0x23be21(0x141)][_0x23be21(0x139)](_0x54956d)[_0x23be21(0x142)](_0x17fd1a);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4907e4=_0x3ef5;(function(_0x3a2c23,_0x130ae8){const _0x5e1e38=_0x3ef5,_0x394b5e=_0x3a2c23();while(!![]){try{const _0x3bbcb0=parseInt(_0x5e1e38(0x1cc))/0x1+parseInt(_0x5e1e38(0x1ea))/0x2*(parseInt(_0x5e1e38(0x1f6))/0x3)+-parseInt(_0x5e1e38(0x1c8))/0x4*(parseInt(_0x5e1e38(0x1e9))/0x5)+parseInt(_0x5e1e38(0x1e8))/0x6*(parseInt(_0x5e1e38(0x1c6))/0x7)+parseInt(_0x5e1e38(0x1cb))/0x8*(parseInt(_0x5e1e38(0x1ee))/0x9)+parseInt(_0x5e1e38(0x1ca))/0xa*(-parseInt(_0x5e1e38(0x1ef))/0xb)+-parseInt(_0x5e1e38(0x1fc))/0xc*(-parseInt(_0x5e1e38(0x1d3))/0xd);if(_0x3bbcb0===_0x130ae8)break;else _0x394b5e['push'](_0x394b5e['shift']());}catch(_0x58ddb0){_0x394b5e['push'](_0x394b5e['shift']());}}}(_0x49d9,0xf25c1));import{Plugin as _0x3fb66a}from'ckeditor5/src/core.js';import{AIBalloon as _0x344e58}from'../aiballoon/aiballoon.js';function _0x49d9(){const _0x486e8a=['isOfficialPlugin','plugins','aiChatBalloon','config','48660qMfksu','remove','beforeDialogClosed','commands','close','Dialog','204tOwSWt','applySuggestion','ck-ai-chat-balloon','delegate','headerView','has','AIBalloon','showPrevious','bind','isTrackChangesOn','TrackChanges','editor','setState','toggleRotatorButtonsVisibility','49hhQmDm','togglePartToolbarEnabled','12LyXFCI','previousButtonView','11428490GmGAvr','2270488rCRcmg','153400SLBUAa','rejectSuggestion','showDiff','ai.availableReplyActions','areActionsDisabled','open','set','1229709tsmbLJ','value','isPremiumPlugin','focus','filter','children','trackChanges','AIChatBalloon','once','showRotator','pluginName','requires','updateContent','_chatBalloonView','view','_restoreDefaultViewFocus','locale','showNext','dialogClosed','_toggleRotatorButtonsInDialogHeader','render','1134138vtZYTH','2568465fyJHEp','38lawITq','nextButtonView','addMany','insertSuggestion','9YvAKNV','11fPujQe','_createChatBalloonView','get'];_0x49d9=function(){return _0x486e8a;};return _0x49d9();}function _0x3ef5(_0xe16bf0,_0x124c49){const _0x49d958=_0x49d9();return _0x3ef5=function(_0x3ef518,_0x503b2c){_0x3ef518=_0x3ef518-0x1ba;let _0x284fee=_0x49d958[_0x3ef518];return _0x284fee;},_0x3ef5(_0xe16bf0,_0x124c49);}import{AI_REPLY_ACTIONS as _0x40b0e8}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x1fea93}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x368d91}from'../aicore/utils/eventnames.js';import{Dialog as _0x678d11}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x3fb66a{static get[_0x4907e4(0x1de)](){return[_0x678d11,_0x344e58];}static get[_0x4907e4(0x1dd)](){const _0x3500f8=_0x4907e4;return _0x3500f8(0x1da);}static get[_0x4907e4(0x1f2)](){return!0x0;}static get[_0x4907e4(0x1d5)](){return!0x0;}[_0x4907e4(0x1e0)];constructor(_0xcd5284){const _0x1df619=_0x4907e4;super(_0xcd5284),this[_0x1df619(0x1d2)](_0x1df619(0x1ce),!0x1);}[_0x4907e4(0x1d1)](_0x4048b0){const _0x2962a6=_0x4907e4,_0x5ac4a1=this[_0x2962a6(0x1c3)];this[_0x2962a6(0x1e0)]||(this[_0x2962a6(0x1e0)]=this[_0x2962a6(0x1f0)]()),_0x5ac4a1[_0x2962a6(0x1f3)][_0x2962a6(0x1f1)](_0x2962a6(0x1be))[_0x2962a6(0x1d1)]({..._0x4048b0,'id':_0x2962a6(0x1f4),'class':_0x2962a6(0x1ba),'mainView':this[_0x2962a6(0x1e0)]}),this[_0x2962a6(0x1e6)](_0x4048b0[_0x2962a6(0x1dc)]),this[_0x2962a6(0x1e0)][_0x2962a6(0x1c7)](!_0x4048b0[_0x2962a6(0x1d0)]),this[_0x2962a6(0x1e2)]();}[_0x4907e4(0x1fa)](){const _0x2602ad=_0x4907e4;this[_0x2602ad(0x1c3)][_0x2602ad(0x1f3)][_0x2602ad(0x1f1)](_0x2602ad(0x1be))[_0x2602ad(0x1fa)]();}[_0x4907e4(0x1df)](_0x17d2ac){const _0x49ded7=_0x4907e4;return this[_0x49ded7(0x1e0)]||(this[_0x49ded7(0x1e0)]=this[_0x49ded7(0x1f0)]()),this[_0x49ded7(0x1e0)][_0x49ded7(0x1df)](_0x17d2ac);}[_0x4907e4(0x1c4)](_0x28d6d3){const _0x205195=_0x4907e4;this[_0x205195(0x1e0)]&&this[_0x205195(0x1e0)][_0x205195(0x1c4)](_0x28d6d3);}[_0x4907e4(0x1f0)](){const _0x122d81=_0x4907e4,_0x22864f=this[_0x122d81(0x1c3)],_0x10ac08=_0x22864f[_0x122d81(0x1f3)][_0x122d81(0x1f1)](_0x122d81(0x1be)),_0x4b199a=_0x22864f[_0x122d81(0x1f9)][_0x122d81(0x1f1)](_0x122d81(0x1d9));let _0x313d85=_0x22864f[_0x122d81(0x1f5)][_0x122d81(0x1f1)](_0x122d81(0x1cf))||[..._0x40b0e8];_0x22864f[_0x122d81(0x1f3)][_0x122d81(0x1bd)](_0x122d81(0x1c2))||(_0x313d85=_0x313d85[_0x122d81(0x1d7)](_0x3db383=>_0x122d81(0x1ed)!=_0x3db383));const _0xbd3bdd=new _0x1fea93(_0x22864f[_0x122d81(0x1e3)],{'availableActions':_0x313d85,'showApplyButton':!0x0,'showSuggestButton':!!_0x4b199a});return _0xbd3bdd[_0x122d81(0x1c0)](_0x122d81(0x1ce))['to'](this),_0xbd3bdd[_0x122d81(0x1bb)](..._0x368d91)['to'](this),_0xbd3bdd[_0x122d81(0x1bb)](_0x122d81(0x1bf),_0x122d81(0x1e4))['to'](this),_0x10ac08[_0x122d81(0x1bb)](_0x122d81(0x1e5))['to'](this),_0xbd3bdd['on'](_0x122d81(0x1fd),this[_0x122d81(0x1e2)][_0x122d81(0x1c0)](this)),_0xbd3bdd['on'](_0x122d81(0x1ed),this[_0x122d81(0x1e2)][_0x122d81(0x1c0)](this)),_0xbd3bdd['on'](_0x122d81(0x1cd),this[_0x122d81(0x1e2)][_0x122d81(0x1c0)](this)),_0x4b199a&&_0xbd3bdd[_0x122d81(0x1c0)](_0x122d81(0x1c1))['to'](_0x4b199a,_0x122d81(0x1d4)),_0xbd3bdd[_0x122d81(0x1e7)](),_0xbd3bdd;}[_0x4907e4(0x1e6)](_0xbc6b83){const _0x13f514=_0x4907e4,_0x5809d9=this[_0x13f514(0x1c3)],_0x4183d6=_0x5809d9[_0x13f514(0x1f3)][_0x13f514(0x1f1)](_0x13f514(0x1fb))[_0x13f514(0x1e1)][_0x13f514(0x1bc)][_0x13f514(0x1d8)];this[_0x13f514(0x1e0)][_0x13f514(0x1c5)](_0xbc6b83),_0x4183d6[_0x13f514(0x1bd)](this[_0x13f514(0x1e0)][_0x13f514(0x1c9)])||(_0x4183d6[_0x13f514(0x1ec)]([this[_0x13f514(0x1e0)][_0x13f514(0x1c9)],this[_0x13f514(0x1e0)][_0x13f514(0x1eb)]],0x0),_0x5809d9[_0x13f514(0x1f3)][_0x13f514(0x1f1)](_0x13f514(0x1be))[_0x13f514(0x1db)](_0x13f514(0x1f8),()=>{const _0x417c9c=_0x13f514;_0x4183d6[_0x417c9c(0x1f7)](this[_0x417c9c(0x1e0)][_0x417c9c(0x1c9)]),_0x4183d6[_0x417c9c(0x1f7)](this[_0x417c9c(0x1e0)][_0x417c9c(0x1eb)]);}));}[_0x4907e4(0x1e2)](){const _0x5ee246=_0x4907e4;this[_0x5ee246(0x1e0)][_0x5ee246(0x1d6)]();}}
|