@ckeditor/ckeditor5-ai 47.2.0-alpha.4 → 47.2.0-alpha.5
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/model/aichatmodels.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/aichatfeederroritemview.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/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.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/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/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/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/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/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.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/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
|
+
function _0x35d1(){const _0x2e8d9f=['element','startProcessing','trim','isProcessing','467583SvHjEk','Empty\x20history','delegate','_createToolbar','historyGroupView','replaceContent','focus','listenTo','Ask\x20AI\x20to\x20improve\x20generated\x20text','ck-hidden','errorView','insertContentBelow','bind','11722272dvljKf','tryAgainButton','label','fire','isError','_createPromptView','copyButtonView','bindTo','handleError','chain','700176BloklX','value','submitPrompt','1087632mOgoyb','6VmwnMb','focusTracker','ck-ai-form','render','setTemplate','submit','promptView','fieldView','prompt','tab','set','clearHistory','add','_promptHistory','AI_ERROR_FAILED','stopButton','_createHistoryView','isEnabled','ck-ai-form-content','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','focusLast','finishProcessing','bindTemplate','clear','search','text','isVisible','createCollection','14788nduSHI','reset','queryView','keystrokes','_focusables','high','2617695oJbGoY','contentArea','stopProcessing','focusCycler','Ask\x20AI\x20to\x20edit\x20or\x20generate','2153943fKTPWu','replaceButton','insertButton','REPLACE','shift\x20+\x20tab','tryAgainEvent','locale','focusFirst','execute','mainAction','toolbar','items','div'];_0x35d1=function(){return _0x2e8d9f;};return _0x35d1();}const _0xd6a836=_0xf3fa;(function(_0x2cc29d,_0x27c4d7){const _0x577107=_0xf3fa,_0x18d891=_0x2cc29d();while(!![]){try{const _0x461177=parseInt(_0x577107(0x179))/0x1+-parseInt(_0x577107(0x13d))/0x2+-parseInt(_0x577107(0x168))/0x3+parseInt(_0x577107(0x15d))/0x4+parseInt(_0x577107(0x163))/0x5*(-parseInt(_0x577107(0x141))/0x6)+parseInt(_0x577107(0x140))/0x7+parseInt(_0x577107(0x133))/0x8;if(_0x461177===_0x27c4d7)break;else _0x18d891['push'](_0x18d891['shift']());}catch(_0x46e7cb){_0x18d891['push'](_0x18d891['shift']());}}}(_0x35d1,0x7a26c));import{FocusTracker as _0x3b34eb,KeystrokeHandler as _0x5b5e24}from'ckeditor5/src/utils.js';import{View as _0x3e9b83,FocusCycler as _0x3fa3c1,createLabeledTextarea as _0x2b7e8a}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x3efd8e,AIFormToolbarViewMainActionLabel as _0x1c9b6d}from'./aiformtoolbarview.js';import{AIFormContentArea as _0xc96067}from'./aiformcontentarea.js';import{AIFormErrorView as _0x12a7c2}from'./aiformerrorview.js';import{AIFormPromptView as _0x1c2f6b}from'./aiformpromptview.js';import{AIHistoryListView as _0x451606}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x4b0876}from'./aihistorylistitemview.js';import{PromptHistory as _0x216173}from'./prompthistory.js';import{getTranslation as _0x4a025b}from'../../utils/common-translations.js';import{escape as _0x39c286}from'es-toolkit/compat';function _0xf3fa(_0x3dcce0,_0x37e4da){const _0x35d1a0=_0x35d1();return _0xf3fa=function(_0xf3fa4a,_0x594255){_0xf3fa4a=_0xf3fa4a-0x12b;let _0x250bc6=_0x35d1a0[_0xf3fa4a];return _0x250bc6;},_0xf3fa(_0x3dcce0,_0x37e4da);}export class AIFormView extends _0x3e9b83{[_0xd6a836(0x142)];[_0xd6a836(0x160)];[_0xd6a836(0x164)];[_0xd6a836(0x172)];[_0xd6a836(0x147)];[_0xd6a836(0x130)];[_0xd6a836(0x161)];[_0xd6a836(0x166)];[_0xd6a836(0x14e)];constructor(_0x4abf63,_0x2da250,_0x30583=''){const _0x8a7e02=_0xd6a836;super(_0x4abf63),this[_0x8a7e02(0x14b)](_0x8a7e02(0x152),!0x0),this[_0x8a7e02(0x14b)](_0x8a7e02(0x178),!0x1),this[_0x8a7e02(0x14b)](_0x8a7e02(0x149),''),this[_0x8a7e02(0x14b)](_0x8a7e02(0x13e),''),this[_0x8a7e02(0x14b)](_0x8a7e02(0x137),!0x1),this[_0x8a7e02(0x14b)](_0x8a7e02(0x171),_0x1c9b6d[_0x8a7e02(0x16b)]),this[_0x8a7e02(0x14e)]=new _0x216173(),this[_0x8a7e02(0x130)]=new _0x12a7c2(_0x4abf63),this[_0x8a7e02(0x164)]=new _0xc96067(_0x4abf63,_0x30583),this[_0x8a7e02(0x164)][_0x8a7e02(0x132)](_0x8a7e02(0x178))['to'](this),this[_0x8a7e02(0x164)][_0x8a7e02(0x132)](_0x8a7e02(0x13e))['to'](this),this[_0x8a7e02(0x172)]=this[_0x8a7e02(0x17c)](),this[_0x8a7e02(0x172)][_0x8a7e02(0x132)](_0x8a7e02(0x171))['to'](this),this[_0x8a7e02(0x147)]=this[_0x8a7e02(0x138)](),this[_0x8a7e02(0x142)]=new _0x3b34eb(),this[_0x8a7e02(0x160)]=new _0x5b5e24(),this[_0x8a7e02(0x161)]=this[_0x8a7e02(0x15c)]([this[_0x8a7e02(0x164)],this[_0x8a7e02(0x164)][_0x8a7e02(0x139)],this[_0x8a7e02(0x172)],this[_0x8a7e02(0x147)]]),this[_0x8a7e02(0x166)]=new _0x3fa3c1({'focusables':this[_0x8a7e02(0x161)],'focusTracker':this[_0x8a7e02(0x142)],'keystrokeHandler':this[_0x8a7e02(0x160)],'actions':{'focusPrevious':_0x8a7e02(0x16c),'focusNext':_0x8a7e02(0x14a)}}),this[_0x8a7e02(0x166)][_0x8a7e02(0x13c)](this[_0x8a7e02(0x147)][_0x8a7e02(0x166)]),this[_0x8a7e02(0x147)][_0x8a7e02(0x15f)][_0x8a7e02(0x148)][_0x8a7e02(0x132)](_0x8a7e02(0x13e))['to'](this,_0x8a7e02(0x149));const _0x37faca=this[_0x8a7e02(0x157)];this[_0x8a7e02(0x145)]({'tag':_0x8a7e02(0x174),'attributes':{'class':['ck',_0x8a7e02(0x143),_0x2da250],'tabindex':'-1'},'children':[{'tag':_0x8a7e02(0x174),'attributes':{'class':['ck',_0x8a7e02(0x153)]},'children':[{'tag':_0x8a7e02(0x174),'attributes':{'class':[_0x37faca['if'](_0x8a7e02(0x137),_0x8a7e02(0x12f),_0x3d2e73=>!_0x3d2e73)]},'children':[this[_0x8a7e02(0x130)]]},this[_0x8a7e02(0x164)],this[_0x8a7e02(0x172)],this[_0x8a7e02(0x147)]]}]});}[_0xd6a836(0x144)](){const _0x933c3b=_0xd6a836;super[_0x933c3b(0x144)](),this[_0x933c3b(0x142)][_0x933c3b(0x14d)](this[_0x933c3b(0x164)][_0x933c3b(0x175)]),this[_0x933c3b(0x142)][_0x933c3b(0x14d)](this[_0x933c3b(0x164)][_0x933c3b(0x139)][_0x933c3b(0x175)]),this[_0x933c3b(0x142)][_0x933c3b(0x14d)](this[_0x933c3b(0x172)][_0x933c3b(0x175)]),this[_0x933c3b(0x142)][_0x933c3b(0x14d)](this[_0x933c3b(0x147)][_0x933c3b(0x175)]),this[_0x933c3b(0x160)][_0x933c3b(0x12d)](this[_0x933c3b(0x175)]);}[_0xd6a836(0x12c)](_0x13432f=0x1){const _0x3c0f11=_0xd6a836;-0x1===_0x13432f?this[_0x3c0f11(0x166)][_0x3c0f11(0x155)]():this[_0x3c0f11(0x166)][_0x3c0f11(0x16f)]();}[_0xd6a836(0x15e)](){const _0x2d38bd=_0xd6a836;this[_0x2d38bd(0x149)]='',this[_0x2d38bd(0x13e)]='',this[_0x2d38bd(0x137)]=!0x1,this[_0x2d38bd(0x147)][_0x2d38bd(0x15e)](),this[_0x2d38bd(0x164)][_0x2d38bd(0x15b)]=!0x1,this[_0x2d38bd(0x172)][_0x2d38bd(0x15b)]=!0x1;}[_0xd6a836(0x138)](){const _0x4a98bc=_0xd6a836,_0x260e74=this[_0x4a98bc(0x16e)],_0x2cdcac=new _0x1c2f6b(_0x260e74,{'queryView':{'label':_0x4a025b(_0x260e74,_0x4a98bc(0x167)),'creator':_0x2b7e8a,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x4a025b(_0x260e74,_0x4a98bc(0x17a)),'secondary':_0x4a025b(_0x260e74,_0x4a98bc(0x154))}}},'filteredView':this[_0x4a98bc(0x151)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x2cdcac[_0x4a98bc(0x132)](_0x4a98bc(0x152))['to'](this,_0x4a98bc(0x152),this,_0x4a98bc(0x178),(_0x3c8ea4,_0x1d85d1)=>_0x3c8ea4&&!_0x1d85d1),this[_0x4a98bc(0x12d)](_0x2cdcac,_0x4a98bc(0x146),(_0xc01f2c,_0x78b573)=>{const _0x5d0bce=_0x4a98bc;this[_0x5d0bce(0x149)]=_0x78b573;const _0x396ebb=_0x39c286(_0x78b573);this[_0x5d0bce(0x136)](_0x5d0bce(0x13f),_0x396ebb),_0x78b573[_0x5d0bce(0x177)]()&&this[_0x5d0bce(0x14e)][_0x5d0bce(0x14d)]({'prompt':_0x396ebb},0x0);},{'priority':_0x4a98bc(0x162)}),_0x2cdcac;}[_0xd6a836(0x151)](){const _0x30b899=_0xd6a836,_0x3be426=new _0x451606(this[_0x30b899(0x16e)]);return _0x3be426[_0x30b899(0x17d)][_0x30b899(0x173)][_0x30b899(0x13a)](this[_0x30b899(0x14e)])['as'](_0x4b0876),_0x3be426['on'](_0x30b899(0x14c),()=>{const _0x4c5c69=_0x30b899;this[_0x4c5c69(0x14e)][_0x4c5c69(0x158)](),this[_0x4c5c69(0x147)][_0x4c5c69(0x159)](''),this[_0x4c5c69(0x147)][_0x4c5c69(0x12c)]();}),_0x3be426;}[_0xd6a836(0x17c)](){const _0x1f33a5=_0xd6a836,_0x44931c=new _0x3efd8e(this[_0x1f33a5(0x16e)]);return _0x44931c[_0x1f33a5(0x169)][_0x1f33a5(0x132)](_0x1f33a5(0x152))['to'](this,_0x1f33a5(0x152),this,_0x1f33a5(0x178),this,_0x1f33a5(0x13e),(_0x622b8,_0x5a9d97,_0xa721fa)=>_0x622b8&&!_0x5a9d97&&!!_0xa721fa),_0x44931c[_0x1f33a5(0x169)][_0x1f33a5(0x17b)](_0x1f33a5(0x170))['to'](this,_0x1f33a5(0x12b)),_0x44931c[_0x1f33a5(0x16a)][_0x1f33a5(0x132)](_0x1f33a5(0x152))['to'](this,_0x1f33a5(0x152),this,_0x1f33a5(0x178),this,_0x1f33a5(0x13e),(_0x3f06ea,_0x14bd73,_0x2af92a)=>_0x3f06ea&&!_0x14bd73&&!!_0x2af92a),_0x44931c[_0x1f33a5(0x16a)][_0x1f33a5(0x17b)](_0x1f33a5(0x170))['to'](this,_0x1f33a5(0x131)),_0x44931c[_0x1f33a5(0x134)][_0x1f33a5(0x132)](_0x1f33a5(0x152))['to'](this,_0x1f33a5(0x152),this,_0x1f33a5(0x178),(_0x1a24aa,_0x4ffc11)=>_0x1a24aa&&!_0x4ffc11),_0x44931c[_0x1f33a5(0x134)][_0x1f33a5(0x17b)](_0x1f33a5(0x170))['to'](this,_0x1f33a5(0x16d)),_0x44931c[_0x1f33a5(0x150)][_0x1f33a5(0x132)](_0x1f33a5(0x152))['to'](this,_0x1f33a5(0x178)),_0x44931c[_0x1f33a5(0x150)][_0x1f33a5(0x17b)](_0x1f33a5(0x170))['to'](this,_0x1f33a5(0x165)),_0x44931c;}[_0xd6a836(0x176)](){const _0x175806=_0xd6a836;this[_0x175806(0x13e)]='',this[_0x175806(0x137)]=!0x1,this[_0x175806(0x178)]=!0x0,this[_0x175806(0x164)][_0x175806(0x15b)]=!0x0,this[_0x175806(0x172)][_0x175806(0x15b)]=!0x0,this[_0x175806(0x164)][_0x175806(0x12c)]();}[_0xd6a836(0x156)](){const _0x4d09bf=_0xd6a836,_0x29ba02=this[_0x4d09bf(0x16e)];this[_0x4d09bf(0x178)]=!0x1,this[_0x4d09bf(0x149)]='',this[_0x4d09bf(0x147)][_0x4d09bf(0x15e)](),this[_0x4d09bf(0x13e)]&&(this[_0x4d09bf(0x147)][_0x4d09bf(0x15f)][_0x4d09bf(0x135)]=_0x4a025b(_0x29ba02,_0x4d09bf(0x12e)));}[_0xd6a836(0x13b)](_0x3688d1){const _0x53468e=_0xd6a836,_0x51a039=this[_0x53468e(0x16e)];this[_0x53468e(0x156)](),this[_0x53468e(0x137)]=!0x0,this[_0x53468e(0x130)][_0x53468e(0x15a)]=_0x3688d1||_0x4a025b(_0x51a039,_0x53468e(0x14f)),this[_0x53468e(0x13e)]||(this[_0x53468e(0x164)][_0x53468e(0x15b)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x1e5b(_0xf6dbcc,_0x5e5c5f){const _0x23811e=_0x2381();return _0x1e5b=function(_0x1e5b40,_0x13a494){_0x1e5b40=_0x1e5b40-0x1f4;let _0x5b68da=_0x23811e[_0x1e5b40];return _0x5b68da;},_0x1e5b(_0xf6dbcc,_0x5e5c5f);}(function(_0x1269d9,_0x401e4f){const _0x186d4e=_0x1e5b,_0x84d139=_0x1269d9();while(!![]){try{const _0x14af01=parseInt(_0x186d4e(0x1fd))/0x1+parseInt(_0x186d4e(0x1f8))/0x2+parseInt(_0x186d4e(0x1fc))/0x3+parseInt(_0x186d4e(0x1f4))/0x4+-parseInt(_0x186d4e(0x203))/0x5+parseInt(_0x186d4e(0x1fb))/0x6*(-parseInt(_0x186d4e(0x1f9))/0x7)+-parseInt(_0x186d4e(0x1fe))/0x8*(parseInt(_0x186d4e(0x1f5))/0x9);if(_0x14af01===_0x401e4f)break;else _0x84d139['push'](_0x84d139['shift']());}catch(_0x34cad4){_0x84d139['push'](_0x84d139['shift']());}}}(_0x2381,0x669f6));import{ListItemView as _0x1f6c55,ButtonView as _0x295c07,ButtonLabelView as _0x1afec6}from'ckeditor5/src/ui.js';function _0x2381(){const _0xbcf534=['fire','execute','locale','133145lLfyge','1754360TTRJxQ','270594azVmYK','set','children','847258UZnwXv','7CoPzbI','add','4241466esBNfW','2306127xIBmcn','815792FkWETM','344xQdeKH','prompt'];_0x2381=function(){return _0xbcf534;};return _0x2381();}import{unescape as _0x10a58c}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x1f6c55{constructor(_0x395324){const _0x52b441=_0x1e5b;super();const _0x5e3a95=new _0x1afec6(),_0x541e73=new _0x295c07(this[_0x52b441(0x202)],_0x5e3a95);this[_0x52b441(0x1f7)][_0x52b441(0x1fa)](_0x541e73),_0x541e73[_0x52b441(0x1f6)]({'label':_0x395324[_0x52b441(0x1ff)],'withText':!0x0}),_0x541e73['on'](_0x52b441(0x201),()=>{const _0xdcd5fb=_0x52b441;this[_0xdcd5fb(0x200)](_0xdcd5fb(0x201),{'value':_0x10a58c(_0x395324[_0xdcd5fb(0x1ff)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x544934=_0x1daa;function _0x1daa(_0x3fcd51,_0x293b57){const _0x164614=_0x1646();return _0x1daa=function(_0x1daa8e,_0x5dc9ee){_0x1daa8e=_0x1daa8e-0x1ad;let _0x115563=_0x164614[_0x1daa8e];return _0x115563;},_0x1daa(_0x3fcd51,_0x293b57);}(function(_0x29679e,_0xa9f304){const _0x189a1e=_0x1daa,_0x445ee3=_0x29679e();while(!![]){try{const _0x3041fe=-parseInt(_0x189a1e(0x1af))/0x1*(-parseInt(_0x189a1e(0x1b0))/0x2)+parseInt(_0x189a1e(0x1b5))/0x3+-parseInt(_0x189a1e(0x1c3))/0x4*(-parseInt(_0x189a1e(0x1b6))/0x5)+parseInt(_0x189a1e(0x1c4))/0x6+-parseInt(_0x189a1e(0x1c6))/0x7+-parseInt(_0x189a1e(0x1b9))/0x8*(parseInt(_0x189a1e(0x1bb))/0x9)+-parseInt(_0x189a1e(0x1bf))/0xa;if(_0x3041fe===_0xa9f304)break;else _0x445ee3['push'](_0x445ee3['shift']());}catch(_0x1caf20){_0x445ee3['push'](_0x445ee3['shift']());}}}(_0x1646,0x8a281));import{ListView as _0xbc4f76,ListItemGroupView as _0x399152,ButtonView as _0x1a7144}from'ckeditor5/src/ui.js';function _0x1646(){const _0x3818b8=['label','2836248gnVajN','children','18IpMmwo','length','execute','Prompt\x20history','9860150cvXgVX','clearHistoryButton','items','historyGroupView','383036EYLdnF','6097344GHjvXv','fire','3616228MoumYM','Clear','clearHistory','set','514403BepajR','4valmgz','add','delegate','filter','locale','761235DZGwZA','25UNxnnj','_createClearHistoryButton'];_0x1646=function(){return _0x3818b8;};return _0x1646();}import{getTranslation as _0x44e907}from'../../utils/common-translations.js';export class AIHistoryListView extends _0xbc4f76{[_0x544934(0x1c2)];[_0x544934(0x1c0)];constructor(_0x1018ac){const _0x402cda=_0x544934;super(_0x1018ac),this[_0x402cda(0x1c0)]=this[_0x402cda(0x1b7)](),this[_0x402cda(0x1c2)]=new _0x399152(),this[_0x402cda(0x1c2)][_0x402cda(0x1ba)][_0x402cda(0x1b1)](this[_0x402cda(0x1c0)],0x1),this[_0x402cda(0x1c2)][_0x402cda(0x1b8)]=_0x44e907(_0x1018ac,_0x402cda(0x1be)),this[_0x402cda(0x1c2)][_0x402cda(0x1c1)][_0x402cda(0x1b2)](_0x402cda(0x1bd))['to'](this),this[_0x402cda(0x1c1)][_0x402cda(0x1b1)](this[_0x402cda(0x1c2)]);}[_0x544934(0x1b3)](){const _0x372f33=_0x544934;let _0x49b98a=0x0;for(const _0x29518b of this[_0x372f33(0x1c1)])_0x49b98a+=_0x29518b[_0x372f33(0x1c1)][_0x372f33(0x1bc)];return{'resultsCount':_0x49b98a,'totalItemsCount':_0x49b98a};}[_0x544934(0x1b7)](){const _0xaa0bea=_0x544934,_0x4611cd=this[_0xaa0bea(0x1b4)],_0x2e69da=new _0x1a7144(this[_0xaa0bea(0x1b4)]);return _0x2e69da[_0xaa0bea(0x1ae)]({'label':'('+_0x44e907(_0x4611cd,_0xaa0bea(0x1c7))+')','withText':!0x0}),_0x2e69da['on'](_0xaa0bea(0x1bd),()=>this[_0xaa0bea(0x1c5)](_0xaa0bea(0x1ad))),_0x2e69da;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34b4e6=_0x10b1;(function(_0x48dd0f,_0x3bbfc8){const _0x547ad9=_0x10b1,_0x4f6318=_0x48dd0f();while(!![]){try{const _0x189525=parseInt(_0x547ad9(0x120))/0x1*(-parseInt(_0x547ad9(0x12f))/0x2)+-parseInt(_0x547ad9(0x126))/0x3*(-parseInt(_0x547ad9(0x119))/0x4)+-parseInt(_0x547ad9(0x124))/0x5+parseInt(_0x547ad9(0x12b))/0x6+-parseInt(_0x547ad9(0x118))/0x7*(-parseInt(_0x547ad9(0x130))/0x8)+-parseInt(_0x547ad9(0x12c))/0x9*(parseInt(_0x547ad9(0x132))/0xa)+parseInt(_0x547ad9(0x125))/0xb*(parseInt(_0x547ad9(0x133))/0xc);if(_0x189525===_0x3bbfc8)break;else _0x4f6318['push'](_0x4f6318['shift']());}catch(_0x1b7528){_0x4f6318['push'](_0x4f6318['shift']());}}}(_0x1aaa,0xa312c));import{Collection as _0x12eedd}from'ckeditor5/src/utils.js';function _0x10b1(_0x361cc8,_0x468766){const _0x1aaa00=_0x1aaa();return _0x10b1=function(_0x10b104,_0xa01020){_0x10b104=_0x10b104-0x118;let _0x49a632=_0x1aaa00[_0x10b104];return _0x49a632;},_0x10b1(_0x361cc8,_0x468766);}const So=_0x34b4e6(0x128);function _0x1aaa(){const _0x3adcd9=['length','parse','536735keSdBm','297UIxsbx','753MqnwVQ','trim','CKEditor/AIFormView/PromptHistory','remove','map','6150492QwLNbB','63dwcNCo','_loadFromSessionStorage','_saveToSessionStorage','2CiRkzF','2834680nJRZKF','add','1176040iGiyNW','269988imZuUt','7mCQEiF','4888grnOSD','prompt','toLowerCase','last','addMany','setItem','getItem','695089ULdxjq','stringify'];_0x1aaa=function(){return _0x3adcd9;};return _0x1aaa();}export class PromptHistory extends _0x12eedd{constructor(){const _0x4bba44=_0x34b4e6;super(),this[_0x4bba44(0x12d)](),this['on'](_0x4bba44(0x131),(_0x48650a,_0x5d2a4f)=>{const _0x1edf04=_0x4bba44,_0x9412ad=fo(_0x5d2a4f[_0x1edf04(0x11a)]);for(const _0x10e009 of this)if(_0x10e009!=_0x5d2a4f&&fo(_0x10e009[_0x1edf04(0x11a)])===_0x9412ad){this[_0x1edf04(0x129)](_0x10e009);break;}this[_0x1edf04(0x122)]>0x14&&this[_0x1edf04(0x129)](this[_0x1edf04(0x11c)]),this[_0x1edf04(0x12e)]();}),this['on'](_0x4bba44(0x129),()=>{const _0x4a7113=_0x4bba44;this[_0x4a7113(0x12e)]();});}[_0x34b4e6(0x12d)](){const _0x4f74eb=_0x34b4e6,_0x951759=sessionStorage[_0x4f74eb(0x11f)](So)||'[]';this[_0x4f74eb(0x11d)](JSON[_0x4f74eb(0x123)](_0x951759));}[_0x34b4e6(0x12e)](){const _0x4e5ad9=_0x34b4e6;sessionStorage[_0x4e5ad9(0x11e)](So,JSON[_0x4e5ad9(0x121)](this[_0x4e5ad9(0x12a)](_0x8562ab=>_0x8562ab)));}}function fo(_0x5170f5){const _0x46e1bf=_0x34b4e6;return _0x5170f5[_0x46e1bf(0x11b)]()[_0x46e1bf(0x127)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4a4e(_0x124627,_0x2465b8){const _0x8e9cad=_0x8e9c();return _0x4a4e=function(_0x4a4e83,_0x4c008b){_0x4a4e83=_0x4a4e83-0x139;let _0x19654a=_0x8e9cad[_0x4a4e83];return _0x19654a;},_0x4a4e(_0x124627,_0x2465b8);}function _0x8e9c(){const _0x3d2008=['341DNYUqM','enabledCommandsIds','editor','config','723367YCdYtM','6026800HlMJHT','getFirstRange','add','2GPKCTg','isEnabled','301BIIWeQ','showUI','903690Fexmyl','getSelectedBlocks','model','isEmpty','document','getItems','10CFsadd','_commandDefinitions','custom','getRanges','943188UZzcGm','41120RcjMym','from','hasContent','_hasContext','30gzgkaV','refresh','3423786LrBpfz','selection','requiresContent','length','get','name','change:_hasContext','values','plugins','set','element','4118463pJnmgw','isCollapsed','change:isEnabled','execute','ai.assistant.disabledElements','includes'];_0x8e9c=function(){return _0x3d2008;};return _0x8e9c();}const _0x898cc=_0x4a4e;(function(_0x548b27,_0x29a34a){const _0x10ff05=_0x4a4e,_0x1a4743=_0x548b27();while(!![]){try{const _0x26647e=parseInt(_0x10ff05(0x15c))/0x1*(-parseInt(_0x10ff05(0x160))/0x2)+-parseInt(_0x10ff05(0x164))/0x3+parseInt(_0x10ff05(0x15d))/0x4+-parseInt(_0x10ff05(0x13c))/0x5*(-parseInt(_0x10ff05(0x147))/0x6)+-parseInt(_0x10ff05(0x162))/0x7*(-parseInt(_0x10ff05(0x141))/0x8)+-parseInt(_0x10ff05(0x152))/0x9*(-parseInt(_0x10ff05(0x145))/0xa)+parseInt(_0x10ff05(0x158))/0xb*(-parseInt(_0x10ff05(0x140))/0xc);if(_0x26647e===_0x29a34a)break;else _0x1a4743['push'](_0x1a4743['shift']());}catch(_0xd4ce6f){_0x1a4743['push'](_0x1a4743['shift']());}}}(_0x8e9c,0xbe95d));import{Command as _0x435257}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x41a3f1}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x435257{[_0x898cc(0x13d)];constructor(_0x2f63fa,_0x56125f){const _0x1ad884=_0x898cc;super(_0x2f63fa),this[_0x1ad884(0x13d)]=_0x56125f,this[_0x1ad884(0x150)](_0x1ad884(0x159),[]),this['on'](_0x1ad884(0x14d),(_0xe54824,_0x51d296,_0x243963)=>{const _0xb5762b=_0x1ad884;this[_0xb5762b(0x161)]&&(this[_0xb5762b(0x159)]=ns(this[_0xb5762b(0x13d)],_0x243963));}),this[_0x1ad884(0x150)](_0x1ad884(0x144),!0x1),this['on'](_0x1ad884(0x154),(_0x226096,_0x5a8133,_0x29bc00)=>{const _0x6e8704=_0x1ad884;this[_0x6e8704(0x159)]=_0x29bc00?ns(this[_0x6e8704(0x13d)],this[_0x6e8704(0x144)]):[];});}[_0x898cc(0x146)](){const _0x585d35=_0x898cc,_0x4b807b=this[_0x585d35(0x15a)][_0x585d35(0x166)];this[_0x585d35(0x144)]=function(_0x46888b){const _0x2f083a=_0x585d35,_0x2d8196=_0x46888b[_0x2f083a(0x13a)][_0x2f083a(0x148)];return _0x2d8196[_0x2f083a(0x153)]?0x0!==[..._0x2d8196[_0x2f083a(0x165)]()][_0x2f083a(0x14a)]&&![..._0x2d8196[_0x2f083a(0x165)]()][0x0][_0x2f083a(0x139)]:!!_0x46888b[_0x2f083a(0x143)](_0x2d8196[_0x2f083a(0x15e)]());}(_0x4b807b);const _0x46e3e6=_0x4b807b[_0x585d35(0x13a)][_0x585d35(0x148)],_0x515ba5=this[_0x585d35(0x15a)][_0x585d35(0x15b)][_0x585d35(0x14b)](_0x585d35(0x156));for(const _0x678352 of _0x46e3e6[_0x585d35(0x13f)]())for(const _0x35496b of _0x678352[_0x585d35(0x13b)]())if(_0x35496b['is'](_0x585d35(0x151))&&_0x515ba5[_0x585d35(0x157)](_0x35496b[_0x585d35(0x14c)]))return void(this[_0x585d35(0x161)]=!0x1);this[_0x585d35(0x161)]=!0x0;}[_0x898cc(0x155)](_0x43413f='',_0x421c9d='',_0xe1a3ff=_0x898cc(0x13e)){const _0x5e1a88=_0x898cc;this[_0x5e1a88(0x15a)][_0x5e1a88(0x14f)][_0x5e1a88(0x14b)](_0x41a3f1)[_0x5e1a88(0x163)](_0x43413f,_0x421c9d,_0xe1a3ff);}}function ns(_0x3405d6,_0x224482){const _0x5c5cff=_0x898cc,_0xbcb8d2=new Set();for(const _0x50499a of _0x3405d6[_0x5c5cff(0x14e)]())(_0x224482||!0x1===_0x50499a[_0x5c5cff(0x149)])&&_0xbcb8d2[_0x5c5cff(0x15f)](_0x50499a['id']);return Array[_0x5c5cff(0x142)](_0xbcb8d2);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x328cbd=_0xb404;(function(_0x4e01d9,_0x2aa558){const _0x100a11=_0xb404,_0x3789af=_0x4e01d9();while(!![]){try{const _0x5567dd=-parseInt(_0x100a11(0x10d))/0x1+parseInt(_0x100a11(0x116))/0x2+parseInt(_0x100a11(0x144))/0x3+-parseInt(_0x100a11(0x163))/0x4+-parseInt(_0x100a11(0x126))/0x5+parseInt(_0x100a11(0x117))/0x6*(parseInt(_0x100a11(0x157))/0x7)+parseInt(_0x100a11(0x12a))/0x8;if(_0x5567dd===_0x2aa558)break;else _0x3789af['push'](_0x3789af['shift']());}catch(_0x2e0440){_0x3789af['push'](_0x3789af['shift']());}}}(_0x254f,0x94112));function _0x254f(){const _0x1c17ed=['AI_ACTIONS_SELECTION_REMOVED_ERROR','listenTo','8082280Luhwzk','window','icon','showBlockingError','_setupVisualSelection','length','close','ai-selection','render','getChangedMarkers','_isUpdatingMarkers','requires','\x20ai-balloon-rotator','startsWith','show','hideFakeVisualSelection','ai-balloon-selection','pluginName','document','aiBalloon','_getSelectionElements','isOfficialPlugin','isTrackChangesOn','showFakeVisualSelection','setupRotator','getIntersection','366945LHMzdQ','isPremiumPlugin','ranges','hide','round','updateContent','_config','markers','start','_updateBalloon','value','locale','get','headerView','iconView','max','content','config','ai-balloon','6506171suxQpi','end','_pendingRenderCallback','label','getMarkersGroup','height','fire','trackChanges','AIBalloon','selectionRemoved','title','off','1722828MvyUzv','updatePosition','once','AIEditing','_calculateOptimalTopPosition','getBoundingRect','left','commands','plugins','view','ai-selection:','bottom','context','differ','stopListening','root','isOpen','mainView','showRotator','447879GfaQGa','dialogClosed','Dialog','filter','_showDialog','top','rootName','bind','_setupMarkerRemovalListener','362642awIAPm','6ttpDEm','$graveyard','_cleanupMarkerRemovalListener','ai.availableReplyActions','getVisible','open','ai-balloon-','isEqual','delegate','index','width','model','editing','change','balloonView','3791530meFAlr','_calculateDialogPosition'];_0x254f=function(){return _0x1c17ed;};return _0x254f();}import{ContextPlugin as _0x1f212b}from'ckeditor5/src/core.js';import{AIConnector as _0xacf6e3}from'../aicore/aiconnector.js';import{AIEditing as _0x59716e}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x463908,AIBalloonView as _0x4b548c}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x1c8793}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x4374b6,Rect as _0x42c2c3,scrollViewportToShowTarget as _0x4641bb}from'ckeditor5/src/utils.js';function _0xb404(_0x1f551c,_0x24177d){const _0x254f94=_0x254f();return _0xb404=function(_0xb40401,_0x2beee0){_0xb40401=_0xb40401-0x102;let _0x40f063=_0x254f94[_0xb40401];return _0x40f063;},_0xb404(_0x1f551c,_0x24177d);}import{getEditorFromContext as _0x2b3fa1}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x355ebd}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x36afcb}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x463908,_0x328cbd(0x10e),_0x328cbd(0x160)];const g=0xa;export class AIBalloon extends _0x1f212b{static get[_0x328cbd(0x135)](){return[_0xacf6e3,_0x59716e];}static get[_0x328cbd(0x13b)](){const _0x42eb4b=_0x328cbd;return _0x42eb4b(0x15f);}static get[_0x328cbd(0x13f)](){return!0x0;}static get[_0x328cbd(0x145)](){return!0x0;}[_0x328cbd(0x10a)]=!0x1;[_0x328cbd(0x14a)];[_0x328cbd(0x134)]=!0x1;[_0x328cbd(0x159)]=null;[_0x328cbd(0x11c)](_0x585f49){const _0x53adc2=_0x328cbd,_0x37c61e=_0x2b3fa1(this[_0x53adc2(0x106)]);if(this[_0x53adc2(0x14a)]=_0x585f49,this[_0x53adc2(0x10a)])return void this[_0x53adc2(0x14d)](_0x585f49);const _0x1c8279=this[_0x53adc2(0x106)][_0x53adc2(0x155)][_0x53adc2(0x150)](_0x53adc2(0x11a))||[..._0x355ebd],_0x32dbdb=_0x37c61e?.[_0x53adc2(0x16a)][_0x53adc2(0x150)](_0x53adc2(0x15e)),_0x43501a=_0x32dbdb?.[_0x53adc2(0x14e)];this[_0x53adc2(0x125)]=new _0x4b548c(_0x37c61e[_0x53adc2(0x14f)],_0x585f49,_0x1c8279,!!_0x43501a),this[_0x53adc2(0x125)][_0x53adc2(0x11f)](..._0x463908)['to'](this),_0x32dbdb&&this[_0x53adc2(0x125)][_0x53adc2(0x114)](_0x53adc2(0x140))['to'](_0x32dbdb,_0x53adc2(0x14e)),this[_0x53adc2(0x111)](_0x585f49);}[_0x328cbd(0x130)](){const _0x246dd9=_0x328cbd;_0x2b3fa1(this[_0x246dd9(0x106)])[_0x246dd9(0x102)][_0x246dd9(0x150)](_0x246dd9(0x10f))[_0x246dd9(0x147)]();}[_0x328cbd(0x14d)](_0x28a488){const _0x48f2b8=_0x328cbd,_0x495d43=_0x2b3fa1(this[_0x48f2b8(0x106)]),_0x1457fe=_0x495d43[_0x48f2b8(0x102)][_0x48f2b8(0x150)](_0x48f2b8(0x10f));this[_0x48f2b8(0x159)]&&(_0x495d43[_0x48f2b8(0x123)][_0x48f2b8(0x103)][_0x48f2b8(0x162)](_0x48f2b8(0x132),this[_0x48f2b8(0x159)]),this[_0x48f2b8(0x159)]=null),this[_0x48f2b8(0x134)]=!0x0,_0x1457fe[_0x48f2b8(0x103)]?.[_0x48f2b8(0x151)]&&(_0x1457fe[_0x48f2b8(0x103)][_0x48f2b8(0x151)][_0x48f2b8(0x15a)]=_0x28a488[_0x48f2b8(0x161)],_0x1457fe[_0x48f2b8(0x103)][_0x48f2b8(0x151)][_0x48f2b8(0x152)]&&_0x28a488[_0x48f2b8(0x12c)]&&(_0x1457fe[_0x48f2b8(0x103)][_0x48f2b8(0x151)][_0x48f2b8(0x152)][_0x48f2b8(0x154)]=_0x28a488[_0x48f2b8(0x12c)])),this[_0x48f2b8(0x125)][_0x48f2b8(0x149)](_0x28a488[_0x48f2b8(0x10b)]),this[_0x48f2b8(0x12e)](_0x28a488[_0x48f2b8(0x146)],_0x28a488[_0x48f2b8(0x120)]),this[_0x48f2b8(0x159)]=()=>{const _0x27e3f7=_0x48f2b8;this[_0x27e3f7(0x134)]=!0x1,this[_0x27e3f7(0x159)]=null,_0x1457fe[_0x27e3f7(0x103)]&&_0x1457fe[_0x27e3f7(0x103)][_0x27e3f7(0x164)]();},_0x495d43[_0x48f2b8(0x123)][_0x48f2b8(0x103)][_0x48f2b8(0x165)](_0x48f2b8(0x132),this[_0x48f2b8(0x159)]);}[_0x328cbd(0x12e)](_0x191923,_0x4016c7){const _0x1dbc79=_0x328cbd;this[_0x1dbc79(0x106)][_0x1dbc79(0x102)][_0x1dbc79(0x150)](_0x59716e)[_0x1dbc79(0x141)](_0x191923,_0x1dbc79(0x11d)+_0x4016c7,!0x0,!0x0);}[_0x328cbd(0x111)](_0xb2d92b){const _0x16d3ef=_0x328cbd,_0x16cb83=_0x2b3fa1(this[_0x16d3ef(0x106)]);this[_0x16d3ef(0x12e)](_0xb2d92b[_0x16d3ef(0x146)],_0xb2d92b[_0x16d3ef(0x120)]);const _0x3d7dd3=this[_0x16d3ef(0x13e)]();_0x3d7dd3&&_0x3d7dd3[0x0]&&_0x4641bb({'target':_0x3d7dd3[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x16cb83[_0x16d3ef(0x102)][_0x16d3ef(0x150)](_0x16d3ef(0x10f))[_0x16d3ef(0x138)]({'title':_0xb2d92b[_0x16d3ef(0x161)],'icon':_0xb2d92b[_0x16d3ef(0x12c)],'hasCloseButton':!0x0,'id':_0x16d3ef(0x13d),'position':this[_0x16d3ef(0x127)][_0x16d3ef(0x114)](this),'className':_0x16d3ef(0x156)+(_0xb2d92b[_0x16d3ef(0x10c)]?_0x16d3ef(0x136):''),'content':this[_0x16d3ef(0x125)],'onShow':_0x40cc63=>{const _0x19d90d=_0x16d3ef;_0xb2d92b[_0x19d90d(0x10c)]&&this[_0x19d90d(0x125)][_0x19d90d(0x142)](_0x40cc63),this[_0x19d90d(0x115)](),this[_0x19d90d(0x10a)]=!0x0;},'onHide':()=>{const _0x56af2b=_0x16d3ef;this[_0x56af2b(0x106)][_0x56af2b(0x102)][_0x56af2b(0x150)](_0x56af2b(0x166))[_0x56af2b(0x139)](_0x56af2b(0x11d)+this[_0x56af2b(0x14a)][_0x56af2b(0x120)]),this[_0x56af2b(0x119)](),this[_0x56af2b(0x15d)](_0x56af2b(0x10e)),this[_0x56af2b(0x10a)]=!0x1;}});}[_0x328cbd(0x127)](_0xa38eeb,_0x1035fe){const _0x147244=_0x328cbd;if(!_0x1035fe)return null;const _0x1e4da1=this[_0x147244(0x13e)]();if(!_0x1e4da1||0x0===_0x1e4da1[_0x147244(0x12f)])return{'left':Math[_0x147244(0x148)](_0x1035fe[_0x147244(0x169)]+_0x1035fe[_0x147244(0x121)]/0x2-_0xa38eeb[_0x147244(0x121)]/0x2),'top':Math[_0x147244(0x148)](_0x1035fe[_0x147244(0x112)]+_0x1035fe[_0x147244(0x15c)]/0x2-_0xa38eeb[_0x147244(0x15c)]/0x2)};const _0x1285d4=Math[_0x147244(0x148)](_0x1035fe[_0x147244(0x169)]+_0x1035fe[_0x147244(0x121)]/0x2-_0xa38eeb[_0x147244(0x121)]/0x2),_0x1bdc02=new _0x42c2c3(_0x1e4da1[0x0]),_0x56c78d=new _0x42c2c3(_0x1e4da1[_0x1e4da1[_0x147244(0x12f)]-0x1]),_0x7921bb=_0xa38eeb[_0x147244(0x15c)],_0x39eb05=this[_0x147244(0x14a)][_0x147244(0x10c)]?0x8:0x0;return{'left':_0x1285d4,'top':this[_0x147244(0x167)](_0x1bdc02,_0x56c78d,_0x7921bb,_0x39eb05,_0x1035fe)};}[_0x328cbd(0x167)](_0x598263,_0x4135bb,_0x394600,_0x539b16=0x0,_0x3e5204){const _0x45529a=_0x328cbd,_0x2f8903=_0x394600+_0x539b16,_0x33cd02=new _0x42c2c3(_0x4374b6[_0x45529a(0x12b)]),_0x3c1e43=[_0x598263[_0x45529a(0x11b)](),_0x4135bb[_0x45529a(0x11b)]()][_0x45529a(0x110)](_0x4b7112=>_0x4b7112),_0x2d0732=_0x42c2c3[_0x45529a(0x168)](_0x3c1e43);if(!_0x2d0732)return Math[_0x45529a(0x148)](_0x3e5204[_0x45529a(0x112)]+_0x3e5204[_0x45529a(0x15c)]/0x2);const _0x7c99b1=_0x33cd02[_0x45529a(0x143)](_0x2d0732);if(!_0x7c99b1)return Math[_0x45529a(0x148)](_0x3e5204[_0x45529a(0x112)]+_0x3e5204[_0x45529a(0x15c)]/0x2);const _0x5bfbba=_0x3e5204[_0x45529a(0x11b)](),_0x34b46a=_0x5bfbba&&_0x2d0732[_0x45529a(0x15c)]>_0x5bfbba[_0x45529a(0x15c)],_0x228ac5=_0x7c99b1[_0x45529a(0x112)],_0xf3452e=_0x7c99b1[_0x45529a(0x105)];if(_0x34b46a){const _0x1db2e6=(_0x5bfbba||_0x33cd02)[_0x45529a(0x15c)]/0x2-_0x2f8903/0x2,_0x4a6895=_0x228ac5-g-_0x3e5204[_0x45529a(0x112)],_0x966b4c=_0x3e5204[_0x45529a(0x105)]-_0xf3452e-g;return _0x4a6895>=_0x2f8903?Math[_0x45529a(0x153)](g,_0x228ac5-_0x2f8903-g):_0x966b4c>=_0x2f8903?_0xf3452e+g:Math[_0x45529a(0x153)](g,_0x1db2e6);}const _0x50ee83=_0x228ac5-_0x2f8903,_0x53af03=_0x3e5204[_0x45529a(0x105)]-_0xf3452e-g,_0x4785fc=_0x228ac5-g-_0x3e5204[_0x45529a(0x112)];let _0x5eb4ca;if(_0x53af03>=_0x2f8903)_0x5eb4ca=_0xf3452e+g;else{if(_0x4785fc>=_0x2f8903)_0x5eb4ca=_0x50ee83-g;else _0x5eb4ca=_0x228ac5+_0x2d0732[_0x45529a(0x15c)]/0x2-_0x2f8903/0x2;}return _0x5eb4ca;}[_0x328cbd(0x115)](){const _0x2bd2a9=_0x328cbd,_0x1e1a27=_0x2b3fa1(this[_0x2bd2a9(0x106)]);this[_0x2bd2a9(0x129)](_0x1e1a27[_0x2bd2a9(0x122)][_0x2bd2a9(0x13c)],_0x2bd2a9(0x124),()=>{const _0x58c830=_0x2bd2a9;if(this[_0x58c830(0x134)])return;for(const {name:_0x5132c1,data:{newRange:_0x57baf3}}of _0x1e1a27[_0x58c830(0x122)][_0x58c830(0x13c)][_0x58c830(0x107)][_0x58c830(0x133)]())if(_0x5132c1[_0x58c830(0x137)](_0x58c830(0x104))&&(_0x57baf3&&(_0x57baf3[_0x58c830(0x14c)][_0x58c830(0x11e)](_0x57baf3[_0x58c830(0x158)])||_0x58c830(0x118)==_0x57baf3[_0x58c830(0x109)][_0x58c830(0x113)])||null==_0x57baf3)){const _0x49f239=_0x36afcb(this[_0x58c830(0x106)][_0x58c830(0x14f)],_0x58c830(0x128));this[_0x58c830(0x125)][_0x58c830(0x12d)](_0x49f239),this[_0x58c830(0x15d)](_0x58c830(0x160));}});}[_0x328cbd(0x119)](){const _0x31d813=_0x328cbd,_0x313704=_0x2b3fa1(this[_0x31d813(0x106)]);this[_0x31d813(0x108)](_0x313704[_0x31d813(0x122)][_0x31d813(0x13c)]);}[_0x328cbd(0x13e)](){const _0x30aa22=_0x328cbd,_0x2333d6=_0x2b3fa1(this[_0x30aa22(0x106)]);return _0x1c8793(_0x2333d6[_0x30aa22(0x123)],[..._0x2333d6[_0x30aa22(0x122)][_0x30aa22(0x14b)][_0x30aa22(0x15b)](_0x30aa22(0x131)),..._0x2333d6[_0x30aa22(0x122)][_0x30aa22(0x14b)][_0x30aa22(0x15b)](_0x30aa22(0x13a))]);}}
|
|
23
|
+
const _0x4a5506=_0x129b;(function(_0x3cd69d,_0x30a4e2){const _0x4a983b=_0x129b,_0xdc800c=_0x3cd69d();while(!![]){try{const _0x601eb2=-parseInt(_0x4a983b(0x196))/0x1*(-parseInt(_0x4a983b(0x1d8))/0x2)+-parseInt(_0x4a983b(0x1a2))/0x3+-parseInt(_0x4a983b(0x1fa))/0x4+-parseInt(_0x4a983b(0x19c))/0x5*(-parseInt(_0x4a983b(0x1c5))/0x6)+-parseInt(_0x4a983b(0x1f4))/0x7+-parseInt(_0x4a983b(0x1d5))/0x8*(-parseInt(_0x4a983b(0x198))/0x9)+-parseInt(_0x4a983b(0x1f5))/0xa*(-parseInt(_0x4a983b(0x1b6))/0xb);if(_0x601eb2===_0x30a4e2)break;else _0xdc800c['push'](_0xdc800c['shift']());}catch(_0x54c968){_0xdc800c['push'](_0xdc800c['shift']());}}}(_0x3386,0xb938c));import{ContextPlugin as _0x1709b6}from'ckeditor5/src/core.js';import{AIConnector as _0x5339d4}from'../aicore/aiconnector.js';import{AIEditing as _0x413e53}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x2810c3,AIBalloonView as _0x133ed0}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x5611b8}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x552de6,Rect as _0x28ab44,scrollViewportToShowTarget as _0x40c2ae}from'ckeditor5/src/utils.js';function _0x3386(){const _0x2d9cae=['_cleanupMarkerRemovalListener','isTrackChangesOn','_config','_setupVisualSelection','ai-balloon-selection','rootName','Dialog','_calculateOptimalTopPosition','\x20ai-balloon-rotator','trackChanges','showRotator','8fbGnGO','getMarkersGroup','mainView','2WxaXpj','label','isPremiumPlugin','showBlockingError','isOfficialPlugin','off','context','setupRotator','balloonView','_showDialog','differ','close','height','config','aiBalloon','value','getVisible','_setupMarkerRemovalListener','open','show','window','fire','_updateBalloon','document','isEqual','listenTo','pluginName','_isUpdatingMarkers','1658825QvCHxH','50KOiBBV','bottom','markers','ai-selection','updatePosition','2460600jCsuCt','_pendingRenderCallback','ai-balloon','top','headerView','_calculateDialogPosition','filter','view','300194LDobHm','left','7629867WPAyah','getIntersection','plugins','selectionRemoved','40NLGhmq','hide','length','AIBalloon','ai-balloon-','editing','3996579XnvSLa','model','end','dialogClosed','startsWith','round','root','render','index','once','locale','showFakeVisualSelection','AIEditing','iconView','requires','content','$graveyard','getBoundingRect','isOpen','width','1152019NiRrID','get','ai.availableReplyActions','updateContent','commands','change','AI_ACTIONS_SELECTION_REMOVED_ERROR','start','delegate','hideFakeVisualSelection','bind','ranges','ai-selection:','max','stopListening','953538SdCgMn','_getSelectionElements','title','getChangedMarkers','icon'];_0x3386=function(){return _0x2d9cae;};return _0x3386();}import{getEditorFromContext as _0x479610}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x114d18}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x1a49e6}from'../aicore/utils/common-translations.js';function _0x129b(_0xd2c9f0,_0x24dc06){const _0x33860a=_0x3386();return _0x129b=function(_0x129b03,_0x13091e){_0x129b03=_0x129b03-0x196;let _0x4b6f60=_0x33860a[_0x129b03];return _0x4b6f60;},_0x129b(_0xd2c9f0,_0x24dc06);}export const AI_BALLOON_EVENT_NAMES=[..._0x2810c3,_0x4a5506(0x1a5),_0x4a5506(0x19b)];const z=0xa;export class AIBalloon extends _0x1709b6{static get[_0x4a5506(0x1b0)](){return[_0x5339d4,_0x413e53];}static get[_0x4a5506(0x1f2)](){const _0x46a9c4=_0x4a5506;return _0x46a9c4(0x19f);}static get[_0x4a5506(0x1dc)](){return!0x0;}static get[_0x4a5506(0x1da)](){return!0x0;}[_0x4a5506(0x1b4)]=!0x1;[_0x4a5506(0x1cc)];[_0x4a5506(0x1f3)]=!0x1;[_0x4a5506(0x1fb)]=null;[_0x4a5506(0x1ea)](_0x461beb){const _0x34f571=_0x4a5506,_0x3f8ef6=_0x479610(this[_0x34f571(0x1de)]);if(this[_0x34f571(0x1cc)]=_0x461beb,this[_0x34f571(0x1b4)])return void this[_0x34f571(0x1ee)](_0x461beb);const _0x2c22c3=this[_0x34f571(0x1de)][_0x34f571(0x1e5)][_0x34f571(0x1b7)](_0x34f571(0x1b8))||[..._0x114d18],_0xa04964=_0x3f8ef6?.[_0x34f571(0x1ba)][_0x34f571(0x1b7)](_0x34f571(0x1d3)),_0x73dba8=_0xa04964?.[_0x34f571(0x1e7)];this[_0x34f571(0x1e0)]=new _0x133ed0(_0x3f8ef6[_0x34f571(0x1ac)],_0x461beb,_0x2c22c3,!!_0x73dba8),this[_0x34f571(0x1e0)][_0x34f571(0x1be)](..._0x2810c3)['to'](this),_0xa04964&&this[_0x34f571(0x1e0)][_0x34f571(0x1c0)](_0x34f571(0x1cb))['to'](_0xa04964,_0x34f571(0x1e7)),this[_0x34f571(0x1e1)](_0x461beb);}[_0x4a5506(0x1e3)](){const _0x336513=_0x4a5506;_0x479610(this[_0x336513(0x1de)])[_0x336513(0x19a)][_0x336513(0x1b7)](_0x336513(0x1d0))[_0x336513(0x19d)]();}[_0x4a5506(0x1ee)](_0x5d5a82){const _0x119ca8=_0x4a5506,_0x231dce=_0x479610(this[_0x119ca8(0x1de)]),_0x3cafb3=_0x231dce[_0x119ca8(0x19a)][_0x119ca8(0x1b7)](_0x119ca8(0x1d0));this[_0x119ca8(0x1fb)]&&(_0x231dce[_0x119ca8(0x1a1)][_0x119ca8(0x201)][_0x119ca8(0x1dd)](_0x119ca8(0x1a9),this[_0x119ca8(0x1fb)]),this[_0x119ca8(0x1fb)]=null),this[_0x119ca8(0x1f3)]=!0x0,_0x3cafb3[_0x119ca8(0x201)]?.[_0x119ca8(0x1fe)]&&(_0x3cafb3[_0x119ca8(0x201)][_0x119ca8(0x1fe)][_0x119ca8(0x1d9)]=_0x5d5a82[_0x119ca8(0x1c7)],_0x3cafb3[_0x119ca8(0x201)][_0x119ca8(0x1fe)][_0x119ca8(0x1af)]&&_0x5d5a82[_0x119ca8(0x1c9)]&&(_0x3cafb3[_0x119ca8(0x201)][_0x119ca8(0x1fe)][_0x119ca8(0x1af)][_0x119ca8(0x1b1)]=_0x5d5a82[_0x119ca8(0x1c9)])),this[_0x119ca8(0x1e0)][_0x119ca8(0x1b9)](_0x5d5a82[_0x119ca8(0x1d7)]),this[_0x119ca8(0x1cd)](_0x5d5a82[_0x119ca8(0x1c1)],_0x5d5a82[_0x119ca8(0x1aa)]),this[_0x119ca8(0x1fb)]=()=>{const _0x39229c=_0x119ca8;this[_0x39229c(0x1f3)]=!0x1,this[_0x39229c(0x1fb)]=null,_0x3cafb3[_0x39229c(0x201)]&&_0x3cafb3[_0x39229c(0x201)][_0x39229c(0x1f9)]();},_0x231dce[_0x119ca8(0x1a1)][_0x119ca8(0x201)][_0x119ca8(0x1ab)](_0x119ca8(0x1a9),this[_0x119ca8(0x1fb)]);}[_0x4a5506(0x1cd)](_0xa6046a,_0x3addb6){const _0x43ea14=_0x4a5506;this[_0x43ea14(0x1de)][_0x43ea14(0x19a)][_0x43ea14(0x1b7)](_0x413e53)[_0x43ea14(0x1ad)](_0xa6046a,_0x43ea14(0x1a0)+_0x3addb6,!0x0,!0x0);}[_0x4a5506(0x1e1)](_0x4cf1be){const _0x523372=_0x4a5506,_0x40c529=_0x479610(this[_0x523372(0x1de)]);this[_0x523372(0x1cd)](_0x4cf1be[_0x523372(0x1c1)],_0x4cf1be[_0x523372(0x1aa)]);const _0x4fcb4c=this[_0x523372(0x1c6)]();_0x4fcb4c&&_0x4fcb4c[0x0]&&_0x40c2ae({'target':_0x4fcb4c[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x40c529[_0x523372(0x19a)][_0x523372(0x1b7)](_0x523372(0x1d0))[_0x523372(0x1eb)]({'title':_0x4cf1be[_0x523372(0x1c7)],'icon':_0x4cf1be[_0x523372(0x1c9)],'hasCloseButton':!0x0,'id':_0x523372(0x1e6),'position':this[_0x523372(0x1ff)][_0x523372(0x1c0)](this),'className':_0x523372(0x1fc)+(_0x4cf1be[_0x523372(0x1d4)]?_0x523372(0x1d2):''),'content':this[_0x523372(0x1e0)],'onShow':_0x2d2c95=>{const _0x5cbef1=_0x523372;_0x4cf1be[_0x5cbef1(0x1d4)]&&this[_0x5cbef1(0x1e0)][_0x5cbef1(0x1df)](_0x2d2c95),this[_0x5cbef1(0x1e9)](),this[_0x5cbef1(0x1b4)]=!0x0;},'onHide':()=>{const _0x414a5f=_0x523372;this[_0x414a5f(0x1de)][_0x414a5f(0x19a)][_0x414a5f(0x1b7)](_0x414a5f(0x1ae))[_0x414a5f(0x1bf)](_0x414a5f(0x1a0)+this[_0x414a5f(0x1cc)][_0x414a5f(0x1aa)]),this[_0x414a5f(0x1ca)](),this[_0x414a5f(0x1ed)](_0x414a5f(0x1a5)),this[_0x414a5f(0x1b4)]=!0x1;}});}[_0x4a5506(0x1ff)](_0x25e14b,_0x329937){const _0x511935=_0x4a5506;if(!_0x329937)return null;const _0x3670aa=this[_0x511935(0x1c6)]();if(!_0x3670aa||0x0===_0x3670aa[_0x511935(0x19e)])return{'left':Math[_0x511935(0x1a7)](_0x329937[_0x511935(0x197)]+_0x329937[_0x511935(0x1b5)]/0x2-_0x25e14b[_0x511935(0x1b5)]/0x2),'top':Math[_0x511935(0x1a7)](_0x329937[_0x511935(0x1fd)]+_0x329937[_0x511935(0x1e4)]/0x2-_0x25e14b[_0x511935(0x1e4)]/0x2)};const _0x1dd6cd=Math[_0x511935(0x1a7)](_0x329937[_0x511935(0x197)]+_0x329937[_0x511935(0x1b5)]/0x2-_0x25e14b[_0x511935(0x1b5)]/0x2),_0x16d905=new _0x28ab44(_0x3670aa[0x0]),_0x447e4f=new _0x28ab44(_0x3670aa[_0x3670aa[_0x511935(0x19e)]-0x1]),_0x45bef2=_0x25e14b[_0x511935(0x1e4)],_0x1ea8b8=this[_0x511935(0x1cc)][_0x511935(0x1d4)]?0x8:0x0;return{'left':_0x1dd6cd,'top':this[_0x511935(0x1d1)](_0x16d905,_0x447e4f,_0x45bef2,_0x1ea8b8,_0x329937)};}[_0x4a5506(0x1d1)](_0x5e3628,_0xf6d569,_0x48f693,_0x429c9d=0x0,_0x4e5a7c){const _0x2e0690=_0x4a5506,_0xd81072=_0x48f693+_0x429c9d,_0x41c6e0=new _0x28ab44(_0x552de6[_0x2e0690(0x1ec)]),_0x3e3a0f=[_0x5e3628[_0x2e0690(0x1e8)](),_0xf6d569[_0x2e0690(0x1e8)]()][_0x2e0690(0x200)](_0x20fa01=>_0x20fa01),_0x5f14d3=_0x28ab44[_0x2e0690(0x1b3)](_0x3e3a0f);if(!_0x5f14d3)return Math[_0x2e0690(0x1a7)](_0x4e5a7c[_0x2e0690(0x1fd)]+_0x4e5a7c[_0x2e0690(0x1e4)]/0x2);const _0x1be4a4=_0x41c6e0[_0x2e0690(0x199)](_0x5f14d3);if(!_0x1be4a4)return Math[_0x2e0690(0x1a7)](_0x4e5a7c[_0x2e0690(0x1fd)]+_0x4e5a7c[_0x2e0690(0x1e4)]/0x2);const _0x4eca91=_0x4e5a7c[_0x2e0690(0x1e8)](),_0x5012ad=_0x4eca91&&_0x5f14d3[_0x2e0690(0x1e4)]>_0x4eca91[_0x2e0690(0x1e4)],_0x116b3f=_0x1be4a4[_0x2e0690(0x1fd)],_0x574675=_0x1be4a4[_0x2e0690(0x1f6)];if(_0x5012ad){const _0x25db59=(_0x4eca91||_0x41c6e0)[_0x2e0690(0x1e4)]/0x2-_0xd81072/0x2,_0x4a4d3f=_0x116b3f-z-_0x4e5a7c[_0x2e0690(0x1fd)],_0x3a3d16=_0x4e5a7c[_0x2e0690(0x1f6)]-_0x574675-z;return _0x4a4d3f>=_0xd81072?Math[_0x2e0690(0x1c3)](z,_0x116b3f-_0xd81072-z):_0x3a3d16>=_0xd81072?_0x574675+z:Math[_0x2e0690(0x1c3)](z,_0x25db59);}const _0x79fedf=_0x116b3f-_0xd81072,_0x4fccc2=_0x4e5a7c[_0x2e0690(0x1f6)]-_0x574675-z,_0xf5f0cc=_0x116b3f-z-_0x4e5a7c[_0x2e0690(0x1fd)];let _0x592268;if(_0x4fccc2>=_0xd81072)_0x592268=_0x574675+z;else{if(_0xf5f0cc>=_0xd81072)_0x592268=_0x79fedf-z;else _0x592268=_0x116b3f+_0x5f14d3[_0x2e0690(0x1e4)]/0x2-_0xd81072/0x2;}return _0x592268;}[_0x4a5506(0x1e9)](){const _0x5b717c=_0x4a5506,_0x11b1c8=_0x479610(this[_0x5b717c(0x1de)]);this[_0x5b717c(0x1f1)](_0x11b1c8[_0x5b717c(0x1a3)][_0x5b717c(0x1ef)],_0x5b717c(0x1bb),()=>{const _0xc824ee=_0x5b717c;if(this[_0xc824ee(0x1f3)])return;for(const {name:_0x509578,data:{newRange:_0xcf47c0}}of _0x11b1c8[_0xc824ee(0x1a3)][_0xc824ee(0x1ef)][_0xc824ee(0x1e2)][_0xc824ee(0x1c8)]())if(_0x509578[_0xc824ee(0x1a6)](_0xc824ee(0x1c2))&&(_0xcf47c0&&(_0xcf47c0[_0xc824ee(0x1bd)][_0xc824ee(0x1f0)](_0xcf47c0[_0xc824ee(0x1a4)])||_0xc824ee(0x1b2)==_0xcf47c0[_0xc824ee(0x1a8)][_0xc824ee(0x1cf)])||null==_0xcf47c0)){const _0x10daba=_0x1a49e6(this[_0xc824ee(0x1de)][_0xc824ee(0x1ac)],_0xc824ee(0x1bc));this[_0xc824ee(0x1e0)][_0xc824ee(0x1db)](_0x10daba),this[_0xc824ee(0x1ed)](_0xc824ee(0x19b));}});}[_0x4a5506(0x1ca)](){const _0x1f42fc=_0x4a5506,_0xe440a9=_0x479610(this[_0x1f42fc(0x1de)]);this[_0x1f42fc(0x1c4)](_0xe440a9[_0x1f42fc(0x1a3)][_0x1f42fc(0x1ef)]);}[_0x4a5506(0x1c6)](){const _0x1295a0=_0x4a5506,_0x12efb1=_0x479610(this[_0x1295a0(0x1de)]);return _0x5611b8(_0x12efb1[_0x1295a0(0x1a1)],[..._0x12efb1[_0x1295a0(0x1a3)][_0x1295a0(0x1f7)][_0x1295a0(0x1d6)](_0x1295a0(0x1f8)),..._0x12efb1[_0x1295a0(0x1a3)][_0x1295a0(0x1f7)][_0x1295a0(0x1d6)](_0x1295a0(0x1ce))]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x30b6(){var _0x60cff4=['5154105EzXSTs','ck-ai-balloon__disclaimer','AI_DISCLAIMER_TEXT','357QhXvXt','3785076NCCguy','198135LLJGOa','setTemplate','ck-ai-balloon__disclaimer-content','div','151208OHngzN','6ZjTXsT','20890SghXPy','861658XhAPjc','3077007ChdnWI','4OWHBfk','264afVtbY','1gIREpT'];_0x30b6=function(){return _0x60cff4;};return _0x30b6();}(function(_0xab37e8,_0x1b93bb){var _0x30dc68=_0x3126,_0x3c3092=_0xab37e8();while(!![]){try{var _0x3da7af=parseInt(_0x30dc68(0x1a8))/0x1*(-parseInt(_0x30dc68(0x1a4))/0x2)+-parseInt(_0x30dc68(0x1a5))/0x3*(parseInt(_0x30dc68(0x1a6))/0x4)+-parseInt(_0x30dc68(0x1a9))/0x5*(-parseInt(_0x30dc68(0x1a2))/0x6)+-parseInt(_0x30dc68(0x1ac))/0x7*(-parseInt(_0x30dc68(0x1a1))/0x8)+parseInt(_0x30dc68(0x19d))/0x9+-parseInt(_0x30dc68(0x1a3))/0xa*(parseInt(_0x30dc68(0x1a7))/0xb)+parseInt(_0x30dc68(0x19c))/0xc;if(_0x3da7af===_0x1b93bb)break;else _0x3c3092['push'](_0x3c3092['shift']());}catch(_0x2171de){_0x3c3092['push'](_0x3c3092['shift']());}}}(_0x30b6,0xc98e8));function _0x3126(_0xa2abb4,_0x1d326d){var _0x30b6f1=_0x30b6();return _0x3126=function(_0x31263b,_0x4700d7){_0x31263b=_0x31263b-0x19c;var _0x26c79c=_0x30b6f1[_0x31263b];return _0x26c79c;},_0x3126(_0xa2abb4,_0x1d326d);}import{View as _0x566c81}from'ckeditor5/src/ui.js';import{getTranslation as _0x5ba8e3}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x566c81{constructor(_0x2e05c3){var _0x1809a1=_0x3126;super(_0x2e05c3),this[_0x1809a1(0x19e)]({'tag':_0x1809a1(0x1a0),'attributes':{'class':['ck',_0x1809a1(0x1aa)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x1809a1(0x19f)]},'children':[{'text':_0x5ba8e3(_0x2e05c3,_0x1809a1(0x1ab))}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x403f56=_0x3b5b;(function(_0x59bf51,_0x1cf687){const _0x48cad2=_0x3b5b,_0xf012d0=_0x59bf51();while(!![]){try{const _0x5b2b50=-parseInt(_0x48cad2(0x72))/0x1+parseInt(_0x48cad2(0x67))/0x2+parseInt(_0x48cad2(0x7d))/0x3+-parseInt(_0x48cad2(0x6b))/0x4+-parseInt(_0x48cad2(0x69))/0x5+-parseInt(_0x48cad2(0x73))/0x6*(-parseInt(_0x48cad2(0x6d))/0x7)+-parseInt(_0x48cad2(0x7c))/0x8*(-parseInt(_0x48cad2(0x71))/0x9);if(_0x5b2b50===_0x1cf687)break;else _0xf012d0['push'](_0xf012d0['shift']());}catch(_0x361ea7){_0xf012d0['push'](_0xf012d0['shift']());}}}(_0x525c,0x7ef5e));import{ToolbarView as _0x5010ea,ButtonView as _0x2968fe}from'ckeditor5/src/ui.js';import{getTranslation as _0x4c2119}from'../../aicore/utils/common-translations.js';function _0x3b5b(_0x2b7cfb,_0x2ce5a0){const _0x525c11=_0x525c();return _0x3b5b=function(_0x3b5b0d,_0x15b658){_0x3b5b0d=_0x3b5b0d-0x66;let _0x30f553=_0x525c11[_0x3b5b0d];return _0x30f553;},_0x3b5b(_0x2b7cfb,_0x2ce5a0);}export class AIBalloonToolbarView extends _0x5010ea{constructor(_0x50ab4b,_0x1725bc=!0x0,_0xc755bd=!0x0){const _0x493610=_0x3b5b;super(_0x50ab4b),this[_0x493610(0x68)](_0x493610(0x6f),!0x1),_0x1725bc&&(this[_0x493610(0x6c)]=this[_0x493610(0x75)](_0x4c2119(_0x50ab4b,_0x493610(0x66)),_0x493610(0x74)),this[_0x493610(0x6c)][_0x493610(0x70)](_0x493610(0x6e))['to'](this,_0x493610(0x6f),_0xb270a9=>!_0xb270a9),this[_0x493610(0x7a)][_0x493610(0x7e)](this[_0x493610(0x6c)])),_0xc755bd&&(this[_0x493610(0x79)]=this[_0x493610(0x75)](_0x4c2119(_0x50ab4b,_0x493610(0x77)),_0x1725bc?_0x493610(0x6a):_0x493610(0x74)),this[_0x493610(0x79)][_0x493610(0x70)](_0x493610(0x6e))['to'](this,_0x493610(0x6f),_0xf81e8c=>!_0xf81e8c),this[_0x493610(0x7a)][_0x493610(0x7e)](this[_0x493610(0x79)])),this[_0x493610(0x78)]({'attributes':{'class':[_0x493610(0x76)]}});}[_0x403f56(0x75)](_0x4b0200,_0xef24ea){const _0x1fb5f0=_0x403f56,_0xb1c0d0=new _0x2968fe(this[_0x1fb5f0(0x7b)]);return _0xb1c0d0[_0x1fb5f0(0x68)]({'label':_0x4b0200,'class':_0xef24ea||'','isVisible':!0x0,'withText':!0x0}),_0xb1c0d0;}}function _0x525c(){const _0x49b1d5=['2186216GABQps','413160noqxEU','add','AI_BALLOON_APPLY_BUTTON','52444ftivnj','set','670250BvBJYe','ck-ai-button-secondary','2297592ycNiOp','applyButton','553KryyUv','isEnabled','isLoading','bind','45rWxiPa','817640YjGvUT','39174NqRaJz','ck-ai-button-primary','_createButton','ck-ai-balloon__toolbar','AI_BALLOON_SUGGEST_BUTTON','extendTemplate','suggestButton','items','locale'];_0x525c=function(){return _0x49b1d5;};return _0x525c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x26036d=_0x55a3;(function(_0x14ecfd,_0x4df7a7){const _0x2e67b0=_0x55a3,_0x9b54f0=_0x14ecfd();while(!![]){try{const _0x1af193=-parseInt(_0x2e67b0(0x1de))/0x1+-parseInt(_0x2e67b0(0x1b5))/0x2*(-parseInt(_0x2e67b0(0x1d2))/0x3)+parseInt(_0x2e67b0(0x1bd))/0x4*(parseInt(_0x2e67b0(0x1d7))/0x5)+-parseInt(_0x2e67b0(0x1cd))/0x6+-parseInt(_0x2e67b0(0x1ab))/0x7+-parseInt(_0x2e67b0(0x1c6))/0x8*(parseInt(_0x2e67b0(0x1aa))/0x9)+parseInt(_0x2e67b0(0x1b0))/0xa;if(_0x1af193===_0x4df7a7)break;else _0x9b54f0['push'](_0x9b54f0['shift']());}catch(_0xcc08c9){_0x9b54f0['push'](_0x9b54f0['shift']());}}}(_0x263a,0x21687));import{ButtonView as _0x631c10,View as _0x112b68,ViewCollection as _0x281151,FocusCycler as _0x3281b2}from'ckeditor5/src/ui.js';function _0x55a3(_0x837a6a,_0x4efb9d){const _0x263ae3=_0x263a();return _0x55a3=function(_0x55a3f4,_0x340604){_0x55a3f4=_0x55a3f4-0x195;let _0x363a62=_0x263ae3[_0x55a3f4];return _0x363a62;},_0x55a3(_0x837a6a,_0x4efb9d);}import{FocusTracker as _0x570477,KeystrokeHandler as _0x335a5e}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x4728ac,IconPreviousArrow as _0x47e4d7}from'@ckeditor/ckeditor5-icons';function _0x263a(){const _0xc063e1=['focusLast','errorMessage','applySuggestion','isEnabled','isLoading','headerView','includes','_createNextButtonView','showBlockingError','keystrokes','toolbar','disclaimerView','setTemplate','bindTemplate','focusTracker','ai-balloon-error','_addDisclaimerView','mainView','showNext','span','children','locale','9hrxqpe','1789928boanqS','div','execute','add','fire','8556250uTWlQc','_mainView','_createErrorView','_dialogContent','showError','46qvkeUx','isErrorVisible','hideError','isTrackChangesOn','element','setupRotator','render','_addContentView','5332lbTcev','addMany','focusCycler','showSuggestButton','showApplyButton','AI_BALLOON_PREVIOUS_TOOLTIP','set','showPrevious','_createPreviousButtonView','1155128ASawpr','tab','showRecoverableError','focusFirst','view','insertSuggestion','clearLoading','1494204yqyrzH','suggestButton','_focusables','remove','ck-hidden','8109tvMhhM','_errorView','listenTo','ai-balloon-content','createCollection','295XSQUlt','shift\x20+\x20tab','clear','setLoading','ck-ai-suggestion__error','_addToolbar','focus','210473PfuXfU','change:isTrackChangesOn','applyButton','getIndex','AI_BALLOON_NEXT_TOOLTIP','_availableActions','bind','updateContent','ck-ai-suggestion__error-text'];_0x263a=function(){return _0xc063e1;};return _0x263a();}import{AIBalloonToolbarView as _0x43a502}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x39c855}from'./aiballoondisclaimerview.js';import{getTranslation as _0x3e4463}from'../../aicore/utils/common-translations.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x26036d(0x196),_0x26036d(0x1cb),_0x26036d(0x1a6),_0x26036d(0x1c4)];export class AIBalloonView extends _0x112b68{[_0x26036d(0x1a2)];[_0x26036d(0x19d)];[_0x26036d(0x1bf)];[_0x26036d(0x1e3)];[_0x26036d(0x1cf)];[_0x26036d(0x1d3)];constructor(_0x4f1bd1,_0xa2fcc5,_0x318ef0,_0x154262){const _0x5d97e0=_0x26036d;super(_0x4f1bd1),this[_0x5d97e0(0x1e3)]=_0x318ef0,this[_0x5d97e0(0x1c3)](_0x5d97e0(0x198),!0x1),this[_0x5d97e0(0x1c3)](_0x5d97e0(0x1b8),_0x154262),this[_0x5d97e0(0x1c3)](_0x5d97e0(0x1b6),!0x1),this[_0x5d97e0(0x1c3)](_0x5d97e0(0x195),''),this[_0x5d97e0(0x1a2)]=new _0x570477(),this[_0x5d97e0(0x19d)]=new _0x335a5e(),this[_0x5d97e0(0x1cf)]=this[_0x5d97e0(0x1d6)](),this[_0x5d97e0(0x1bf)]=new _0x3281b2({'focusables':this[_0x5d97e0(0x1cf)],'focusTracker':this[_0x5d97e0(0x1a2)],'keystrokeHandler':this[_0x5d97e0(0x19d)],'actions':{'focusPrevious':_0x5d97e0(0x1d8),'focusNext':_0x5d97e0(0x1c7)}}),this[_0x5d97e0(0x1b3)]=new _0x281151(),this[_0x5d97e0(0x1bc)](_0xa2fcc5[_0x5d97e0(0x1a5)]),this[_0x5d97e0(0x1a4)](),this[_0x5d97e0(0x1dc)](_0xa2fcc5[_0x5d97e0(0x1c1)],_0xa2fcc5[_0x5d97e0(0x1c0)]),this[_0x5d97e0(0x19e)][_0x5d97e0(0x1e4)](_0x5d97e0(0x198))['to'](this),this[_0x5d97e0(0x1cf)][_0x5d97e0(0x1d9)](),this[_0x5d97e0(0x1cf)][_0x5d97e0(0x1be)]([this[_0x5d97e0(0x19e)]]),this[_0x5d97e0(0x1a0)]({'tag':_0x5d97e0(0x1ac),'attributes':{'class':_0x5d97e0(0x1d5)},'children':this[_0x5d97e0(0x1b3)]}),this['on'](_0x5d97e0(0x1df),()=>{const _0x467823=_0x5d97e0;this[_0x467823(0x1b3)][_0x467823(0x1d0)](this[_0x467823(0x19e)]),this[_0x467823(0x1dc)](_0xa2fcc5[_0x467823(0x1c1)],_0xa2fcc5[_0x467823(0x1c0)]);});}[_0x26036d(0x1bb)](){const _0x1eb8d5=_0x26036d;super[_0x1eb8d5(0x1bb)]();for(const _0x419ce8 of this[_0x1eb8d5(0x1cf)])this[_0x1eb8d5(0x1a2)][_0x1eb8d5(0x1ae)](_0x419ce8[_0x1eb8d5(0x1b9)]);this[_0x1eb8d5(0x19d)][_0x1eb8d5(0x1d4)](this[_0x1eb8d5(0x1b9)]);}[_0x26036d(0x1dd)](_0x2216e0){const _0x5d1445=_0x26036d;-0x1===_0x2216e0?this[_0x5d1445(0x1bf)][_0x5d1445(0x1e7)]():this[_0x5d1445(0x1bf)][_0x5d1445(0x1c9)]();}[_0x26036d(0x1da)](){const _0xc1193c=_0x26036d;this[_0xc1193c(0x198)]=!0x0;}[_0x26036d(0x1cc)](){const _0x336ee2=_0x26036d;this[_0x336ee2(0x198)]=!0x1;}[_0x26036d(0x1b4)](_0x17964d){const _0x421df2=_0x26036d;this[_0x421df2(0x1d3)]||(this[_0x421df2(0x1d3)]=this[_0x421df2(0x1b2)](),this[_0x421df2(0x1b3)][_0x421df2(0x1be)]([this[_0x421df2(0x1d3)]],0x0)),this[_0x421df2(0x195)]=_0x17964d,this[_0x421df2(0x1b6)]=!0x0;}[_0x26036d(0x1b7)](){const _0x6770dc=_0x26036d;this[_0x6770dc(0x1b6)]=!0x1;}[_0x26036d(0x1c8)](_0x334644){const _0x3a185d=_0x26036d;this[_0x3a185d(0x1b4)](_0x334644);}[_0x26036d(0x19c)](_0x570ef3){const _0x1328bb=_0x26036d;this[_0x1328bb(0x1b4)](_0x570ef3),this[_0x1328bb(0x19e)]&&(this[_0x1328bb(0x19e)][_0x1328bb(0x1e0)]&&(this[_0x1328bb(0x19e)][_0x1328bb(0x1e0)][_0x1328bb(0x197)]=!0x1),this[_0x1328bb(0x19e)][_0x1328bb(0x1ce)]&&(this[_0x1328bb(0x19e)][_0x1328bb(0x1ce)][_0x1328bb(0x197)]=!0x1));}[_0x26036d(0x1ba)](_0x519f6a){const _0x3f1aa2=_0x26036d,_0x5c5581=this[_0x3f1aa2(0x19b)](),_0x5135f1=this[_0x3f1aa2(0x1c5)]();_0x519f6a[_0x3f1aa2(0x1ca)][_0x3f1aa2(0x199)][_0x3f1aa2(0x1a8)][_0x3f1aa2(0x1ae)](_0x5c5581,0x2),_0x519f6a[_0x3f1aa2(0x1ca)][_0x3f1aa2(0x199)][_0x3f1aa2(0x1a8)][_0x3f1aa2(0x1ae)](_0x5135f1,0x0),this[_0x3f1aa2(0x1cf)][_0x3f1aa2(0x1be)]([_0x5c5581,_0x5135f1]),this[_0x3f1aa2(0x1a2)][_0x3f1aa2(0x1ae)](_0x5c5581[_0x3f1aa2(0x1b9)]),this[_0x3f1aa2(0x1a2)][_0x3f1aa2(0x1ae)](_0x5135f1[_0x3f1aa2(0x1b9)]);}[_0x26036d(0x1bc)](_0x2634fa){const _0x4d5c21=_0x26036d;this[_0x4d5c21(0x1b1)]=_0x2634fa,this[_0x4d5c21(0x1b3)][_0x4d5c21(0x1ae)](this[_0x4d5c21(0x1b1)]);}[_0x26036d(0x1e5)](_0x269587){const _0x34a3bf=_0x26036d,_0x159654=this[_0x34a3bf(0x1b3)][_0x34a3bf(0x1e1)](this[_0x34a3bf(0x1b1)]);this[_0x34a3bf(0x1b3)][_0x34a3bf(0x1d0)](this[_0x34a3bf(0x1b1)]),this[_0x34a3bf(0x1b1)]=_0x269587,this[_0x34a3bf(0x1b3)][_0x34a3bf(0x1ae)](this[_0x34a3bf(0x1b1)],_0x159654),this[_0x34a3bf(0x1b7)]();}[_0x26036d(0x1a4)](){const _0x486472=_0x26036d;this[_0x486472(0x19f)]=new _0x39c855(this[_0x486472(0x1a9)]),this[_0x486472(0x1b3)][_0x486472(0x1ae)](this[_0x486472(0x19f)]);}[_0x26036d(0x1dc)](_0x1404af=!0x0,_0x381a65=!0x0){const _0x2de3a8=_0x26036d;_0x1404af=_0x1404af&&!this[_0x2de3a8(0x1b8)]&&this[_0x2de3a8(0x1e3)][_0x2de3a8(0x19a)](_0x2de3a8(0x196)),_0x381a65=_0x381a65&&this[_0x2de3a8(0x1e3)][_0x2de3a8(0x19a)](_0x2de3a8(0x1cb)),this[_0x2de3a8(0x19e)]=new _0x43a502(this[_0x2de3a8(0x1a9)],_0x1404af,_0x381a65),this[_0x2de3a8(0x19e)][_0x2de3a8(0x1e0)]?.['on'](_0x2de3a8(0x1ad),()=>{const _0x233a9e=_0x2de3a8;this[_0x233a9e(0x1af)](_0x233a9e(0x196));}),this[_0x2de3a8(0x19e)][_0x2de3a8(0x1ce)]?.['on'](_0x2de3a8(0x1ad),()=>{const _0x4b74d5=_0x2de3a8;this[_0x4b74d5(0x1af)](_0x4b74d5(0x1cb));}),this[_0x2de3a8(0x1b3)][_0x2de3a8(0x1ae)](this[_0x2de3a8(0x19e)]);}[_0x26036d(0x19b)](){const _0x2488d3=_0x26036d,_0x4dbb3a=new _0x631c10(this[_0x2488d3(0x1a9)]);return _0x4dbb3a[_0x2488d3(0x1c3)]({'icon':_0x4728ac,'tooltip':_0x3e4463(this[_0x2488d3(0x1a9)],_0x2488d3(0x1e2))}),_0x4dbb3a['on'](_0x2488d3(0x1ad),()=>{const _0x2cf1e4=_0x2488d3;this[_0x2cf1e4(0x1af)](_0x2cf1e4(0x1a6));}),_0x4dbb3a;}[_0x26036d(0x1c5)](){const _0x273722=_0x26036d,_0x2bf94f=new _0x631c10(this[_0x273722(0x1a9)]);return _0x2bf94f[_0x273722(0x1c3)]({'icon':_0x47e4d7,'tooltip':_0x3e4463(this[_0x273722(0x1a9)],_0x273722(0x1c2))}),_0x2bf94f['on'](_0x273722(0x1ad),()=>{const _0x4a7a2d=_0x273722;this[_0x4a7a2d(0x1af)](_0x4a7a2d(0x1c4));}),_0x2bf94f;}[_0x26036d(0x1b2)](){const _0x5645b3=_0x26036d,_0x1c91fb=new _0x112b68(this[_0x5645b3(0x1a9)]),_0x3b20e9=new _0x112b68(this[_0x5645b3(0x1a9)]);return _0x3b20e9[_0x5645b3(0x1a0)]({'tag':_0x5645b3(0x1a7),'attributes':{'class':['ck',_0x5645b3(0x1e6)]},'children':[{'text':this[_0x5645b3(0x1a1)]['to'](_0x5645b3(0x195))}]}),_0x1c91fb[_0x5645b3(0x1a0)]({'tag':_0x5645b3(0x1ac),'attributes':{'class':['ck',_0x5645b3(0x1db),_0x5645b3(0x1a3),this[_0x5645b3(0x1a1)]['if'](_0x5645b3(0x1b6),_0x5645b3(0x1d1),_0x25d0ad=>!_0x25d0ad)]},'children':[_0x3b20e9]}),_0x1c91fb;}}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xed791e=_0x1318;function _0x1318(_0x341c70,_0x151f65){var _0x2697ed=_0x2697();return _0x1318=function(_0x13186f,_0x4415f4){_0x13186f=_0x13186f-0x1a6;var _0x54969e=_0x2697ed[_0x13186f];return _0x54969e;},_0x1318(_0x341c70,_0x151f65);}(function(_0x158cc1,_0xa8d8e1){var _0x51e252=_0x1318,_0x4898d4=_0x158cc1();while(!![]){try{var _0x198194=-parseInt(_0x51e252(0x1ae))/0x1*(parseInt(_0x51e252(0x1a9))/0x2)+-parseInt(_0x51e252(0x1b9))/0x3*(-parseInt(_0x51e252(0x1bf))/0x4)+-parseInt(_0x51e252(0x1aa))/0x5+parseInt(_0x51e252(0x1bb))/0x6+-parseInt(_0x51e252(0x1a7))/0x7+parseInt(_0x51e252(0x1b6))/0x8*(parseInt(_0x51e252(0x1a8))/0x9)+parseInt(_0x51e252(0x1ad))/0xa;if(_0x198194===_0xa8d8e1)break;else _0x4898d4['push'](_0x4898d4['shift']());}catch(_0x14594d){_0x4898d4['push'](_0x4898d4['shift']());}}}(_0x2697,0x57869));import{ContextPlugin as _0x3e9867}from'ckeditor5/src/core.js';import{AIChatController as _0x586e53}from'./aichatcontroller.js';import{AIEditing as _0x2ff798}from'../aicore/aiediting.js';import{AIChatUI as _0x145d15}from'./aichatui.js';import{AIChatHistory as _0x347281}from'../aichathistory/aichathistory.js';export class AIChat extends _0x3e9867{static get[_0xed791e(0x1b7)](){return[_0x586e53,_0x2ff798,_0x145d15,_0x347281];}static get[_0xed791e(0x1b4)](){var _0x1aade7=_0xed791e;return _0x1aade7(0x1ba);}static get[_0xed791e(0x1b0)](){return!0x0;}static get[_0xed791e(0x1be)](){return!0x0;}constructor(_0x3038b3){var _0xb1c497=_0xed791e;super(_0x3038b3),this[_0xb1c497(0x1bc)][_0xb1c497(0x1a6)][_0xb1c497(0x1af)](_0xb1c497(0x1b1),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0xb1c497(0x1bc)][_0xb1c497(0x1a6)][_0xb1c497(0x1af)](_0xb1c497(0x1b8),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0xed791e(0x1ab)](){var _0x4362b1=_0xed791e;await this[_0x4362b1(0x1bc)][_0x4362b1(0x1ac)][_0x4362b1(0x1b3)](_0x586e53)[_0x4362b1(0x1ab)]();}async[_0xed791e(0x1bd)](){var _0x213178=_0xed791e;await this[_0x213178(0x1bc)][_0x213178(0x1ac)][_0x213178(0x1b3)](_0x586e53)[_0x213178(0x1bd)]();}async[_0xed791e(0x1c0)]({message:_0xa07459,quickActionData:_0x221362}){var _0x53ce1f=_0xed791e;await this[_0x53ce1f(0x1bc)][_0x53ce1f(0x1ac)][_0x53ce1f(0x1b3)](_0x586e53)[_0x53ce1f(0x1c0)]({'message':_0xa07459,'quickActionData':_0x221362});}[_0xed791e(0x1b2)](){var _0x512aaf=_0xed791e;this[_0x512aaf(0x1bc)][_0x512aaf(0x1ac)][_0x512aaf(0x1b3)](_0x586e53)[_0x512aaf(0x1b2)]();}[_0xed791e(0x1b5)](){var _0x5b55c1=_0xed791e;this[_0x5b55c1(0x1bc)][_0x5b55c1(0x1ac)][_0x5b55c1(0x1b3)](_0x586e53)[_0x5b55c1(0x1b5)]();}}function _0x2697(){var _0x37bfc4=['12wLxaUR','AIChat','3852420eFDPJB','context','startConversation','isPremiumPlugin','119144voojRl','sendMessage','config','4007318nxqoet','27lfQQmF','2KGdEnG','2760670Xpbagh','addSelectionToChatContext','plugins','4783340GuWMOS','433277tvipol','define','isOfficialPlugin','ai.chat.context','removeSelectionFromChatContext','get','pluginName','focusPromptInput','1804912NxcaYn','requires','ai.chat.models'];_0x2697=function(){return _0x37bfc4;};return _0x2697();}
|