@ckeditor/ckeditor5-ai 47.4.0-alpha.5 → 47.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/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/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/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55ffe4=_0x268a;(function(_0x2c2a03,_0x265bba){const _0x46b5e8=_0x268a,_0x134718=_0x2c2a03();while(!![]){try{const _0x3de440=-parseInt(_0x46b5e8(0x17d))/0x1+-parseInt(_0x46b5e8(0x169))/0x2*(parseInt(_0x46b5e8(0x196))/0x3)+-parseInt(_0x46b5e8(0x18a))/0x4+-parseInt(_0x46b5e8(0x18f))/0x5*(-parseInt(_0x46b5e8(0x19c))/0x6)+parseInt(_0x46b5e8(0x180))/0x7+-parseInt(_0x46b5e8(0x1a0))/0x8*(-parseInt(_0x46b5e8(0x162))/0x9)+parseInt(_0x46b5e8(0x167))/0xa;if(_0x3de440===_0x265bba)break;else _0x134718['push'](_0x134718['shift']());}catch(_0x2ab71d){_0x134718['push'](_0x134718['shift']());}}}(_0x2d2c,0x7b402));import{FocusTracker as _0x493edf,KeystrokeHandler as _0x926b49}from'ckeditor5/src/utils.js';import{View as _0xbc12b4,FocusCycler as _0x394a14,createLabeledTextarea as _0x140f04}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x306dd6,AIFormToolbarViewMainActionLabel as _0x493b69}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x5825c2}from'./aiformcontentarea.js';import{AIFormErrorView as _0x539398}from'./aiformerrorview.js';import{AIFormPromptView as _0xdb0114}from'./aiformpromptview.js';import{AIHistoryListView as _0x18f8c6}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x5396df}from'./aihistorylistitemview.js';function _0x2d2c(){const _0x303f5c=['shift\x20+\x20tab','focus','clearHistory','items','85ouIIpb','focusLast','chain','startProcessing','search','fire','bindTo','1221249FlbpHc','AI_ERROR_FAILED','keystrokes','mainAction','clear','label','354768SFawZl','isError','value','render','32216gLaNGX','copyButtonView','tryAgainEvent','text','replaceButton','queryView','isProcessing','prompt','bindTemplate','fieldView','historyGroupView','_createToolbar','REPLACE','isVisible','high','trim','ck-ai-form-content','element','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','locale','contentArea','Empty\x20history','execute','837GhDwqt','delegate','errorView','promptView','handleError','602160FWMfwD','createCollection','4VLcmNQ','isEnabled','Ask\x20AI\x20to\x20improve\x20generated\x20text','submit','Ask\x20AI\x20to\x20edit\x20or\x20generate','div','insertContentBelow','_createHistoryView','_createPromptView','submitPrompt','toolbar','replaceContent','focusCycler','set','_promptHistory','insertButton','tab','stopProcessing','bind','add','221673CbgeLN','stopButton','reset','5443368qGxsPe','setTemplate','focusFirst','ck-hidden','listenTo','finishProcessing','_focusables','focusTracker','tryAgainButton','ck-ai-form','2707416vycMPi'];_0x2d2c=function(){return _0x303f5c;};return _0x2d2c();}import{PromptHistory as _0x1d6555}from'./prompthistory.js';import{getTranslation as _0x4bff3b}from'../../utils/common-translations.js';import{escape as _0x5f3c21}from'es-toolkit/compat';function _0x268a(_0x2f4846,_0x3e2f70){const _0x2d2c83=_0x2d2c();return _0x268a=function(_0x268a36,_0x376763){_0x268a36=_0x268a36-0x157;let _0x5aa9de=_0x2d2c83[_0x268a36];return _0x5aa9de;},_0x268a(_0x2f4846,_0x3e2f70);}export class AIFormView extends _0xbc12b4{[_0x55ffe4(0x187)];[_0x55ffe4(0x198)];[_0x55ffe4(0x15f)];[_0x55ffe4(0x173)];[_0x55ffe4(0x165)];[_0x55ffe4(0x164)];[_0x55ffe4(0x186)];[_0x55ffe4(0x175)];[_0x55ffe4(0x177)];constructor(_0x3fb773,_0x28ea47,_0x12fe23=''){const _0x57ef20=_0x55ffe4;super(_0x3fb773),this[_0x57ef20(0x176)](_0x57ef20(0x16a),!0x0),this[_0x57ef20(0x176)](_0x57ef20(0x1a6),!0x1),this[_0x57ef20(0x176)](_0x57ef20(0x1a7),''),this[_0x57ef20(0x176)](_0x57ef20(0x19e),''),this[_0x57ef20(0x176)](_0x57ef20(0x19d),!0x1),this[_0x57ef20(0x176)](_0x57ef20(0x199),_0x493b69[_0x57ef20(0x157)]),this[_0x57ef20(0x177)]=new _0x1d6555(),this[_0x57ef20(0x164)]=new _0x539398(_0x3fb773),this[_0x57ef20(0x15f)]=new _0x5825c2(_0x3fb773,_0x12fe23),this[_0x57ef20(0x15f)][_0x57ef20(0x17b)](_0x57ef20(0x1a6))['to'](this),this[_0x57ef20(0x15f)][_0x57ef20(0x17b)](_0x57ef20(0x19e))['to'](this),this[_0x57ef20(0x173)]=this[_0x57ef20(0x1ab)](),this[_0x57ef20(0x173)][_0x57ef20(0x17b)](_0x57ef20(0x199))['to'](this),this[_0x57ef20(0x165)]=this[_0x57ef20(0x171)](),this[_0x57ef20(0x187)]=new _0x493edf(),this[_0x57ef20(0x198)]=new _0x926b49(),this[_0x57ef20(0x186)]=this[_0x57ef20(0x168)]([this[_0x57ef20(0x15f)],this[_0x57ef20(0x15f)][_0x57ef20(0x1a1)],this[_0x57ef20(0x173)],this[_0x57ef20(0x165)]]),this[_0x57ef20(0x175)]=new _0x394a14({'focusables':this[_0x57ef20(0x186)],'focusTracker':this[_0x57ef20(0x187)],'keystrokeHandler':this[_0x57ef20(0x198)],'actions':{'focusPrevious':_0x57ef20(0x18b),'focusNext':_0x57ef20(0x179)}}),this[_0x57ef20(0x175)][_0x57ef20(0x191)](this[_0x57ef20(0x165)][_0x57ef20(0x175)]),this[_0x57ef20(0x165)][_0x57ef20(0x1a5)][_0x57ef20(0x1a9)][_0x57ef20(0x17b)](_0x57ef20(0x19e))['to'](this,_0x57ef20(0x1a7));const _0x5eab37=this[_0x57ef20(0x1a8)];this[_0x57ef20(0x181)]({'tag':_0x57ef20(0x16e),'attributes':{'class':['ck',_0x57ef20(0x189),_0x28ea47],'tabindex':'-1'},'children':[{'tag':_0x57ef20(0x16e),'attributes':{'class':['ck',_0x57ef20(0x15b)]},'children':[{'tag':_0x57ef20(0x16e),'attributes':{'class':[_0x5eab37['if'](_0x57ef20(0x19d),_0x57ef20(0x183),_0x237567=>!_0x237567)]},'children':[this[_0x57ef20(0x164)]]},this[_0x57ef20(0x15f)],this[_0x57ef20(0x173)],this[_0x57ef20(0x165)]]}]});}[_0x55ffe4(0x19f)](){const _0x15d7c9=_0x55ffe4;super[_0x15d7c9(0x19f)](),this[_0x15d7c9(0x187)][_0x15d7c9(0x17c)](this[_0x15d7c9(0x15f)][_0x15d7c9(0x15c)]),this[_0x15d7c9(0x187)][_0x15d7c9(0x17c)](this[_0x15d7c9(0x15f)][_0x15d7c9(0x1a1)][_0x15d7c9(0x15c)]),this[_0x15d7c9(0x187)][_0x15d7c9(0x17c)](this[_0x15d7c9(0x173)][_0x15d7c9(0x15c)]),this[_0x15d7c9(0x187)][_0x15d7c9(0x17c)](this[_0x15d7c9(0x165)][_0x15d7c9(0x15c)]),this[_0x15d7c9(0x198)][_0x15d7c9(0x184)](this[_0x15d7c9(0x15c)]);}[_0x55ffe4(0x18c)](_0x162028=0x1){const _0x468ccf=_0x55ffe4;-0x1===_0x162028?this[_0x468ccf(0x175)][_0x468ccf(0x190)]():this[_0x468ccf(0x175)][_0x468ccf(0x182)]();}[_0x55ffe4(0x17f)](){const _0x6f64ba=_0x55ffe4;this[_0x6f64ba(0x1a7)]='',this[_0x6f64ba(0x19e)]='',this[_0x6f64ba(0x19d)]=!0x1,this[_0x6f64ba(0x165)][_0x6f64ba(0x17f)](),this[_0x6f64ba(0x15f)][_0x6f64ba(0x158)]=!0x1,this[_0x6f64ba(0x173)][_0x6f64ba(0x158)]=!0x1;}[_0x55ffe4(0x171)](){const _0x43e219=_0x55ffe4,_0x735027=this[_0x43e219(0x15e)],_0x540c95=new _0xdb0114(_0x735027,{'queryView':{'label':_0x4bff3b(_0x735027,_0x43e219(0x16d)),'creator':_0x140f04,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x4bff3b(_0x735027,_0x43e219(0x160)),'secondary':_0x4bff3b(_0x735027,_0x43e219(0x15d))}}},'filteredView':this[_0x43e219(0x170)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x540c95[_0x43e219(0x17b)](_0x43e219(0x16a))['to'](this,_0x43e219(0x16a),this,_0x43e219(0x1a6),(_0x3b2460,_0x5d01e4)=>_0x3b2460&&!_0x5d01e4),this[_0x43e219(0x184)](_0x540c95,_0x43e219(0x16c),(_0x253ede,_0x3990ad)=>{const _0x506cf0=_0x43e219;this[_0x506cf0(0x1a7)]=_0x3990ad;const _0x4de449=_0x5f3c21(_0x3990ad);this[_0x506cf0(0x194)](_0x506cf0(0x172),_0x4de449),_0x3990ad[_0x506cf0(0x15a)]()&&this[_0x506cf0(0x177)][_0x506cf0(0x17c)]({'prompt':_0x4de449},0x0);},{'priority':_0x43e219(0x159)}),_0x540c95;}[_0x55ffe4(0x170)](){const _0x10f736=_0x55ffe4,_0x46e16a=new _0x18f8c6(this[_0x10f736(0x15e)]);return _0x46e16a[_0x10f736(0x1aa)][_0x10f736(0x18e)][_0x10f736(0x195)](this[_0x10f736(0x177)])['as'](_0x5396df),_0x46e16a['on'](_0x10f736(0x18d),()=>{const _0x1a61e0=_0x10f736;this[_0x1a61e0(0x177)][_0x1a61e0(0x19a)](),this[_0x1a61e0(0x165)][_0x1a61e0(0x193)](''),this[_0x1a61e0(0x165)][_0x1a61e0(0x18c)]();}),_0x46e16a;}[_0x55ffe4(0x1ab)](){const _0x57c9cb=_0x55ffe4,_0x53f430=new _0x306dd6(this[_0x57c9cb(0x15e)]);return _0x53f430[_0x57c9cb(0x1a4)][_0x57c9cb(0x17b)](_0x57c9cb(0x16a))['to'](this,_0x57c9cb(0x16a),this,_0x57c9cb(0x1a6),this,_0x57c9cb(0x19e),(_0x5c6a44,_0x5b347a,_0x54cdb2)=>_0x5c6a44&&!_0x5b347a&&!!_0x54cdb2),_0x53f430[_0x57c9cb(0x1a4)][_0x57c9cb(0x163)](_0x57c9cb(0x161))['to'](this,_0x57c9cb(0x174)),_0x53f430[_0x57c9cb(0x178)][_0x57c9cb(0x17b)](_0x57c9cb(0x16a))['to'](this,_0x57c9cb(0x16a),this,_0x57c9cb(0x1a6),this,_0x57c9cb(0x19e),(_0x403541,_0x2c7484,_0x507679)=>_0x403541&&!_0x2c7484&&!!_0x507679),_0x53f430[_0x57c9cb(0x178)][_0x57c9cb(0x163)](_0x57c9cb(0x161))['to'](this,_0x57c9cb(0x16f)),_0x53f430[_0x57c9cb(0x188)][_0x57c9cb(0x17b)](_0x57c9cb(0x16a))['to'](this,_0x57c9cb(0x16a),this,_0x57c9cb(0x1a6),(_0x5d5eff,_0x1111ab)=>_0x5d5eff&&!_0x1111ab),_0x53f430[_0x57c9cb(0x188)][_0x57c9cb(0x163)](_0x57c9cb(0x161))['to'](this,_0x57c9cb(0x1a2)),_0x53f430[_0x57c9cb(0x17e)][_0x57c9cb(0x17b)](_0x57c9cb(0x16a))['to'](this,_0x57c9cb(0x1a6)),_0x53f430[_0x57c9cb(0x17e)][_0x57c9cb(0x163)](_0x57c9cb(0x161))['to'](this,_0x57c9cb(0x17a)),_0x53f430;}[_0x55ffe4(0x192)](){const _0x211b1d=_0x55ffe4;this[_0x211b1d(0x19e)]='',this[_0x211b1d(0x19d)]=!0x1,this[_0x211b1d(0x1a6)]=!0x0,this[_0x211b1d(0x15f)][_0x211b1d(0x158)]=!0x0,this[_0x211b1d(0x173)][_0x211b1d(0x158)]=!0x0,this[_0x211b1d(0x15f)][_0x211b1d(0x18c)]();}[_0x55ffe4(0x185)](){const _0xaa42c7=_0x55ffe4,_0x3ef2cb=this[_0xaa42c7(0x15e)];this[_0xaa42c7(0x1a6)]=!0x1,this[_0xaa42c7(0x1a7)]='',this[_0xaa42c7(0x165)][_0xaa42c7(0x17f)](),this[_0xaa42c7(0x19e)]&&(this[_0xaa42c7(0x165)][_0xaa42c7(0x1a5)][_0xaa42c7(0x19b)]=_0x4bff3b(_0x3ef2cb,_0xaa42c7(0x16b)));}[_0x55ffe4(0x166)](_0x1e84fa){const _0x320ca1=_0x55ffe4,_0x368b0f=this[_0x320ca1(0x15e)];this[_0x320ca1(0x185)](),this[_0x320ca1(0x19d)]=!0x0,this[_0x320ca1(0x164)][_0x320ca1(0x1a3)]=_0x1e84fa||_0x4bff3b(_0x368b0f,_0x320ca1(0x197)),this[_0x320ca1(0x19e)]||(this[_0x320ca1(0x15f)][_0x320ca1(0x158)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x245dc3,_0x3d5420){const _0x2b7553=_0x2a93,_0x29b35b=_0x245dc3();while(!![]){try{const _0x2f42d4=parseInt(_0x2b7553(0x138))/0x1+parseInt(_0x2b7553(0x135))/0x2+-parseInt(_0x2b7553(0x130))/0x3+-parseInt(_0x2b7553(0x133))/0x4*(parseInt(_0x2b7553(0x136))/0x5)+parseInt(_0x2b7553(0x131))/0x6+parseInt(_0x2b7553(0x132))/0x7+-parseInt(_0x2b7553(0x139))/0x8;if(_0x2f42d4===_0x3d5420)break;else _0x29b35b['push'](_0x29b35b['shift']());}catch(_0x2a4854){_0x29b35b['push'](_0x29b35b['shift']());}}}(_0x5c81,0xed871));function _0x2a93(_0x1db71b,_0x734afb){const _0x5c81d3=_0x5c81();return _0x2a93=function(_0x2a9364,_0x1f587a){_0x2a9364=_0x2a9364-0x12f;let _0x14fdfd=_0x5c81d3[_0x2a9364];return _0x14fdfd;},_0x2a93(_0x1db71b,_0x734afb);}import{ListItemView as _0xa2a71d,ButtonView as _0x524272,ButtonLabelView as _0x45daf5}from'ckeditor5/src/ui.js';import{unescape as _0x9dc409}from'es-toolkit/compat';export class AIHistoryListItemView extends _0xa2a71d{constructor(_0xbe423f){const _0x2bdc88=_0x2a93;super();const _0x47ad44=new _0x45daf5(),_0x53b501=new _0x524272(this[_0x2bdc88(0x12f)],_0x47ad44);this[_0x2bdc88(0x13a)][_0x2bdc88(0x13b)](_0x53b501),_0x53b501[_0x2bdc88(0x134)]({'label':_0xbe423f[_0x2bdc88(0x13d)],'withText':!0x0}),_0x53b501['on'](_0x2bdc88(0x137),()=>{const _0x10fa25=_0x2bdc88;this[_0x10fa25(0x13c)](_0x10fa25(0x137),{'value':_0x9dc409(_0xbe423f[_0x10fa25(0x13d)])});});}}function _0x5c81(){const _0x168087=['children','add','fire','prompt','locale','3056592nKEmRo','11072022YNaYIH','12210849RFpkIX','128bjukXC','set','2784686IuzfuT','94725yMnsUb','execute','208814rCVzSs','20743072uizXCz'];_0x5c81=function(){return _0x168087;};return _0x5c81();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x407d(_0x4e2c5a,_0x192933){const _0x2dfd4a=_0x2dfd();return _0x407d=function(_0x407d5e,_0x2893dd){_0x407d5e=_0x407d5e-0x1e4;let _0x2f5436=_0x2dfd4a[_0x407d5e];return _0x2f5436;},_0x407d(_0x4e2c5a,_0x192933);}const _0x3e12d8=_0x407d;(function(_0x53acda,_0x341265){const _0x322c67=_0x407d,_0x4b085c=_0x53acda();while(!![]){try{const _0x53e9d9=parseInt(_0x322c67(0x1e9))/0x1+parseInt(_0x322c67(0x1e7))/0x2*(-parseInt(_0x322c67(0x1eb))/0x3)+-parseInt(_0x322c67(0x1e6))/0x4*(-parseInt(_0x322c67(0x1fd))/0x5)+parseInt(_0x322c67(0x1fe))/0x6+parseInt(_0x322c67(0x1f8))/0x7*(-parseInt(_0x322c67(0x1ea))/0x8)+parseInt(_0x322c67(0x1f6))/0x9+parseInt(_0x322c67(0x1f4))/0xa;if(_0x53e9d9===_0x341265)break;else _0x4b085c['push'](_0x4b085c['shift']());}catch(_0x142f05){_0x4b085c['push'](_0x4b085c['shift']());}}}(_0x2dfd,0x25147));import{ListView as _0xffc045,ListItemGroupView as _0x582e8c,ButtonView as _0x2d2e8c}from'ckeditor5/src/ui.js';import{getTranslation as _0x431414}from'../../utils/common-translations.js';export class AIHistoryListView extends _0xffc045{[_0x3e12d8(0x1fc)];[_0x3e12d8(0x1e5)];constructor(_0x3fa246){const _0x56a126=_0x3e12d8;super(_0x3fa246),this[_0x56a126(0x1e5)]=this[_0x56a126(0x1fa)](),this[_0x56a126(0x1fc)]=new _0x582e8c(),this[_0x56a126(0x1fc)][_0x56a126(0x1e4)][_0x56a126(0x1f0)](this[_0x56a126(0x1e5)],0x1),this[_0x56a126(0x1fc)][_0x56a126(0x1ed)]=_0x431414(_0x3fa246,_0x56a126(0x1ee)),this[_0x56a126(0x1fc)][_0x56a126(0x1f3)][_0x56a126(0x1f9)](_0x56a126(0x1fb))['to'](this),this[_0x56a126(0x1f3)][_0x56a126(0x1f0)](this[_0x56a126(0x1fc)]);}[_0x3e12d8(0x1f1)](){const _0x337ad0=_0x3e12d8;let _0x62c7c7=0x0;for(const _0x517136 of this[_0x337ad0(0x1f3)])_0x62c7c7+=_0x517136[_0x337ad0(0x1f3)][_0x337ad0(0x1f2)];return{'resultsCount':_0x62c7c7,'totalItemsCount':_0x62c7c7};}[_0x3e12d8(0x1fa)](){const _0x4b8c0d=_0x3e12d8,_0x575c86=this[_0x4b8c0d(0x1e8)],_0x2744be=new _0x2d2e8c(this[_0x4b8c0d(0x1e8)]);return _0x2744be[_0x4b8c0d(0x1ec)]({'label':'('+_0x431414(_0x575c86,_0x4b8c0d(0x1f5))+')','withText':!0x0}),_0x2744be['on'](_0x4b8c0d(0x1fb),()=>this[_0x4b8c0d(0x1f7)](_0x4b8c0d(0x1ef))),_0x2744be;}}function _0x2dfd(){const _0x35c5e4=['509410bkagCa','Clear','676989VHgCgC','fire','1495529QZHKrH','delegate','_createClearHistoryButton','execute','historyGroupView','23890JRrbel','813258vsLZfi','children','clearHistoryButton','148KxLQfs','543682eaGNXk','locale','198876VBRNPt','8HXCIzP','3pmORZK','set','label','Prompt\x20history','clearHistory','add','filter','length','items'];_0x2dfd=function(){return _0x35c5e4;};return _0x2dfd();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f59fc=_0x48eb;(function(_0x1abf80,_0x24404c){const _0x219655=_0x48eb,_0x3c95f8=_0x1abf80();while(!![]){try{const _0x31672e=-parseInt(_0x219655(0xbf))/0x1+-parseInt(_0x219655(0xbe))/0x2*(-parseInt(_0x219655(0xbb))/0x3)+-parseInt(_0x219655(0xc0))/0x4*(parseInt(_0x219655(0xbd))/0x5)+-parseInt(_0x219655(0xc8))/0x6*(-parseInt(_0x219655(0xb7))/0x7)+-parseInt(_0x219655(0xc9))/0x8*(-parseInt(_0x219655(0xc7))/0x9)+-parseInt(_0x219655(0xc2))/0xa+parseInt(_0x219655(0xcc))/0xb*(parseInt(_0x219655(0xca))/0xc);if(_0x31672e===_0x24404c)break;else _0x3c95f8['push'](_0x3c95f8['shift']());}catch(_0x33ecc1){_0x3c95f8['push'](_0x3c95f8['shift']());}}}(_0x3471,0xa8bc5));import{Collection as _0x1c3314}from'ckeditor5/src/utils.js';function _0x48eb(_0x5853ad,_0x449925){const _0x347106=_0x3471();return _0x48eb=function(_0x48ebbd,_0x3c8332){_0x48ebbd=_0x48ebbd-0xb4;let _0x18fe17=_0x347106[_0x48ebbd];return _0x18fe17;},_0x48eb(_0x5853ad,_0x449925);}const Ko=_0x1f59fc(0xc1);export class PromptHistory extends _0x1c3314{constructor(){const _0x20edf5=_0x1f59fc;super(),this[_0x20edf5(0xb6)](),this['on'](_0x20edf5(0xce),(_0x4a48aa,_0x26e2a0)=>{const _0x19706d=_0x20edf5,_0x1eb6e1=Qo(_0x26e2a0[_0x19706d(0xcd)]);for(const _0x39a407 of this)if(_0x39a407!=_0x26e2a0&&Qo(_0x39a407[_0x19706d(0xcd)])===_0x1eb6e1){this[_0x19706d(0xb5)](_0x39a407);break;}this[_0x19706d(0xb9)]>0x14&&this[_0x19706d(0xb5)](this[_0x19706d(0xbc)]),this[_0x19706d(0xba)]();}),this['on'](_0x20edf5(0xb5),()=>{const _0x4795ae=_0x20edf5;this[_0x4795ae(0xba)]();});}[_0x1f59fc(0xb6)](){const _0x3116a3=_0x1f59fc,_0x28bf5e=sessionStorage[_0x3116a3(0xc4)](Ko)||'[]';this[_0x3116a3(0xcb)](JSON[_0x3116a3(0xb8)](_0x28bf5e));}[_0x1f59fc(0xba)](){const _0x62cb83=_0x1f59fc;sessionStorage[_0x62cb83(0xcf)](Ko,JSON[_0x62cb83(0xc3)](this[_0x62cb83(0xb4)](_0x78a062=>_0x78a062)));}}function _0x3471(){const _0x5ea047=['toLowerCase','9xyYWfG','7428lxLfsD','7153912nkgXhH','36mhCLCN','addMany','795333kTetbF','prompt','add','setItem','map','remove','_loadFromSessionStorage','2604gsQDjr','parse','length','_saveToSessionStorage','3eCrNHp','last','18985cNhLoq','53624pBdeGo','843297hryNrM','28smnIfR','CKEditor/AIFormView/PromptHistory','374790hdSzoB','stringify','getItem','trim'];_0x3471=function(){return _0x5ea047;};return _0x3471();}function Qo(_0x37c1d8){const _0x158ecb=_0x1f59fc;return _0x37c1d8[_0x158ecb(0xc6)]()[_0x158ecb(0xc5)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x19742c=_0x1bef;(function(_0x312f9d,_0x2f1cb4){const _0x4d1ac2=_0x1bef,_0x147776=_0x312f9d();while(!![]){try{const _0x43d642=parseInt(_0x4d1ac2(0xc1))/0x1+-parseInt(_0x4d1ac2(0xdc))/0x2+-parseInt(_0x4d1ac2(0xd0))/0x3*(-parseInt(_0x4d1ac2(0xd2))/0x4)+-parseInt(_0x4d1ac2(0xd7))/0x5*(-parseInt(_0x4d1ac2(0xdd))/0x6)+parseInt(_0x4d1ac2(0xdb))/0x7+-parseInt(_0x4d1ac2(0xb3))/0x8*(parseInt(_0x4d1ac2(0xbb))/0x9)+parseInt(_0x4d1ac2(0xc8))/0xa*(parseInt(_0x4d1ac2(0xb4))/0xb);if(_0x43d642===_0x2f1cb4)break;else _0x147776['push'](_0x147776['shift']());}catch(_0xc05c1e){_0x147776['push'](_0x147776['shift']());}}}(_0x5c4a,0xc1647));function _0x5c4a(){const _0x287ec5=['790946QsOtXr','values','from','getSelectedBlocks','execute','add','ai.assistant.disabledElements','107710EpSPel','isEmpty','set','getFirstRange','plugins','config','includes','change:isEnabled','3wjqlgT','refresh','2318060rNLADi','document','hasContent','custom','element','3300470gmnCUP','change:_hasContext','isEnabled','get','400484kLbrdw','3010064jdgvXT','6IEoIXQ','selection','_hasContext','8hZfzPK','1034YnAJLX','getItems','isCollapsed','requiresContent','editor','_commandDefinitions','showUI','7227666zerZLf','getRanges','name','model','length','enabledCommandsIds'];_0x5c4a=function(){return _0x287ec5;};return _0x5c4a();}import{Command as _0x33a17f}from'ckeditor5/src/core.js';function _0x1bef(_0x2261fd,_0x14656d){const _0x5c4aff=_0x5c4a();return _0x1bef=function(_0x1bef1c,_0xc075f2){_0x1bef1c=_0x1bef1c-0xb2;let _0x17bc7e=_0x5c4aff[_0x1bef1c];return _0x17bc7e;},_0x1bef(_0x2261fd,_0x14656d);}import{AIAssistantUI as _0x18656f}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x33a17f{[_0x19742c(0xb9)];constructor(_0x2bcd28,_0x134a6a){const _0x447aba=_0x19742c;super(_0x2bcd28),this[_0x447aba(0xb9)]=_0x134a6a,this[_0x447aba(0xca)](_0x447aba(0xc0),[]),this['on'](_0x447aba(0xd8),(_0x52d243,_0x1c9046,_0x3a3397)=>{const _0x28bd0f=_0x447aba;this[_0x28bd0f(0xd9)]&&(this[_0x28bd0f(0xc0)]=xs(this[_0x28bd0f(0xb9)],_0x3a3397));}),this[_0x447aba(0xca)](_0x447aba(0xb2),!0x1),this['on'](_0x447aba(0xcf),(_0x108922,_0x101213,_0x362666)=>{const _0x54cb73=_0x447aba;this[_0x54cb73(0xc0)]=_0x362666?xs(this[_0x54cb73(0xb9)],this[_0x54cb73(0xb2)]):[];});}[_0x19742c(0xd1)](){const _0x5528b5=_0x19742c,_0x3b8337=this[_0x5528b5(0xb8)][_0x5528b5(0xbe)];this[_0x5528b5(0xb2)]=function(_0x12a4e9){const _0x59d8d8=_0x5528b5,_0x4f526f=_0x12a4e9[_0x59d8d8(0xd3)][_0x59d8d8(0xde)];return _0x4f526f[_0x59d8d8(0xb6)]?0x0!==[..._0x4f526f[_0x59d8d8(0xc4)]()][_0x59d8d8(0xbf)]&&![..._0x4f526f[_0x59d8d8(0xc4)]()][0x0][_0x59d8d8(0xc9)]:!!_0x12a4e9[_0x59d8d8(0xd4)](_0x4f526f[_0x59d8d8(0xcb)]());}(_0x3b8337);const _0x1c7d1e=_0x3b8337[_0x5528b5(0xd3)][_0x5528b5(0xde)],_0x3e0522=this[_0x5528b5(0xb8)][_0x5528b5(0xcd)][_0x5528b5(0xda)](_0x5528b5(0xc7));for(const _0x53ec73 of _0x1c7d1e[_0x5528b5(0xbc)]())for(const _0x421ca of _0x53ec73[_0x5528b5(0xb5)]())if(_0x421ca['is'](_0x5528b5(0xd6))&&_0x3e0522[_0x5528b5(0xce)](_0x421ca[_0x5528b5(0xbd)]))return void(this[_0x5528b5(0xd9)]=!0x1);this[_0x5528b5(0xd9)]=!0x0;}[_0x19742c(0xc5)](_0x4ca330='',_0x472169='',_0xb330dd=_0x19742c(0xd5)){const _0x23bd75=_0x19742c;this[_0x23bd75(0xb8)][_0x23bd75(0xcc)][_0x23bd75(0xda)](_0x18656f)[_0x23bd75(0xba)](_0x4ca330,_0x472169,_0xb330dd);}}function xs(_0x632727,_0x4255c5){const _0x18a611=_0x19742c,_0xf315ee=new Set();for(const _0x1d383f of _0x632727[_0x18a611(0xc2)]())(_0x4255c5||!0x1===_0x1d383f[_0x18a611(0xb7)])&&_0xf315ee[_0x18a611(0xc6)](_0x1d383f['id']);return Array[_0x18a611(0xc3)](_0xf315ee);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2a7c55=_0x499d;(function(_0x555b42,_0x1511dc){const _0xda17a1=_0x499d,_0x25b3a3=_0x555b42();while(!![]){try{const _0x17bbe8=-parseInt(_0xda17a1(0x19d))/0x1+-parseInt(_0xda17a1(0x195))/0x2+-parseInt(_0xda17a1(0x177))/0x3+parseInt(_0xda17a1(0x175))/0x4*(-parseInt(_0xda17a1(0x17d))/0x5)+parseInt(_0xda17a1(0x1a3))/0x6+-parseInt(_0xda17a1(0x1cc))/0x7*(parseInt(_0xda17a1(0x19a))/0x8)+parseInt(_0xda17a1(0x18e))/0x9;if(_0x17bbe8===_0x1511dc)break;else _0x25b3a3['push'](_0x25b3a3['shift']());}catch(_0x31d050){_0x25b3a3['push'](_0x25b3a3['shift']());}}}(_0x5629,0xbb619));import{ContextPlugin as _0x64e739}from'ckeditor5/src/core.js';function _0x499d(_0x14cddc,_0x45bab2){const _0x562928=_0x5629();return _0x499d=function(_0x499df9,_0x22dfe3){_0x499df9=_0x499df9-0x166;let _0x5e4a34=_0x562928[_0x499df9];return _0x5e4a34;},_0x499d(_0x14cddc,_0x45bab2);}import{AIConnector as _0x3906ad}from'../aicore/aiconnector.js';import{AIEditing as _0x43cbb9}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x96c48f,AIBalloonView as _0x18a323}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x33111f}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x240739,Rect as _0x46fdab,scrollViewportToShowTarget as _0x5828bf}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x431152}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x2435e8}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x2a638a}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x96c48f,_0x2a7c55(0x16d),_0x2a7c55(0x18c)];function _0x5629(){const _0x3b19fa=['title','getMarkersGroup','AI_ACTIONS_SELECTION_REMOVED_ERROR','8xskPIE','_showDialog','updatePosition','989003EpcZSH','startsWith','index','show','bottom','height','653682KKWAip','editing','context','hide','width','filter','requires','_isUpdatingMarkers','stopAutoScroll','_setupMarkerRemovalListener','value','fire','_calculateOptimalTopPosition','open','mainView','commands','ai-balloon','_calculateDialogPosition','_cleanupMarkerRemovalListener','icon','getVisible','ai-selection:','content','showRotator','iconView','ranges','_config','config','showBlockingError','end','length','plugins','isTrackChangesOn','top','ai-balloon-','isEqual','bind','isOpen','label','ai-balloon-selection','window','2290127xqHnUe','headerView','balloonView','stopListening','once','isOfficialPlugin','startAutoScroll','trackChanges','document','delegate','aiBalloon','change','_getSelectionElements','dialogClosed','model','render','Dialog','updateContent','getIntersection','setupRotator','root','241364wkuapB','_pendingRenderCallback','113976YVZoAl','ai-selection','pluginName','start','AIBalloon','differ','65nVeyqP','_updateBalloon','rootName','getBoundingRect','$graveyard','ai.availableReplyActions','close','getChangedMarkers','view','markers','AIEditing','_setupVisualSelection','get','locale','hideFakeVisualSelection','selectionRemoved','left','34356114wzwSbY','listenTo','\x20ai-balloon-rotator','showFakeVisualSelection','isPremiumPlugin','round','max','2040382noyYSI','off'];_0x5629=function(){return _0x3b19fa;};return _0x5629();}const z=0xa;export class AIBalloon extends _0x64e739{static get[_0x2a7c55(0x1a9)](){return[_0x3906ad,_0x43cbb9];}static get[_0x2a7c55(0x179)](){const _0x3dcc93=_0x2a7c55;return _0x3dcc93(0x17b);}static get[_0x2a7c55(0x1d1)](){return!0x0;}static get[_0x2a7c55(0x192)](){return!0x0;}[_0x2a7c55(0x1c8)]=!0x1;[_0x2a7c55(0x1bd)];[_0x2a7c55(0x1aa)]=!0x1;[_0x2a7c55(0x176)]=null;[_0x2a7c55(0x1b0)](_0x40b205){const _0x17ca3b=_0x2a7c55,_0xddf806=_0x431152(this[_0x17ca3b(0x1a5)]);if(this[_0x17ca3b(0x1bd)]=_0x40b205,this[_0x17ca3b(0x1c8)])return void this[_0x17ca3b(0x17e)](_0x40b205);const _0x431897=this[_0x17ca3b(0x1a5)][_0x17ca3b(0x1be)][_0x17ca3b(0x189)](_0x17ca3b(0x182))||[..._0x2435e8],_0x4a4c20=_0xddf806?.[_0x17ca3b(0x1b2)][_0x17ca3b(0x189)](_0x17ca3b(0x167)),_0x38adad=_0x4a4c20?.[_0x17ca3b(0x1ad)];this[_0x17ca3b(0x1ce)]=new _0x18a323(_0xddf806[_0x17ca3b(0x18a)],_0x40b205,_0x431897,!!_0x38adad),this[_0x17ca3b(0x1ce)][_0x17ca3b(0x169)](..._0x96c48f)['to'](this),_0x4a4c20&&this[_0x17ca3b(0x1ce)][_0x17ca3b(0x1c7)](_0x17ca3b(0x1c3))['to'](_0x4a4c20,_0x17ca3b(0x1ad)),this[_0x17ca3b(0x19b)](_0x40b205);}[_0x2a7c55(0x183)](){const _0x3022fb=_0x2a7c55;_0x431152(this[_0x3022fb(0x1a5)])[_0x3022fb(0x1c2)][_0x3022fb(0x189)](_0x3022fb(0x170))[_0x3022fb(0x1a6)]();}[_0x2a7c55(0x166)](){const _0x2463f6=_0x2a7c55;this[_0x2463f6(0x1ce)]&&this[_0x2463f6(0x1ce)][_0x2463f6(0x166)]();}[_0x2a7c55(0x1ab)](){const _0x311e78=_0x2a7c55;this[_0x311e78(0x1ce)]&&this[_0x311e78(0x1ce)][_0x311e78(0x1ab)]();}[_0x2a7c55(0x17e)](_0x30d7e5){const _0xf2e7cb=_0x2a7c55,_0x5d1268=_0x431152(this[_0xf2e7cb(0x1a5)]),_0x9c4c18=_0x5d1268[_0xf2e7cb(0x1c2)][_0xf2e7cb(0x189)](_0xf2e7cb(0x170));this[_0xf2e7cb(0x176)]&&(_0x5d1268[_0xf2e7cb(0x1a4)][_0xf2e7cb(0x185)][_0xf2e7cb(0x196)](_0xf2e7cb(0x16f),this[_0xf2e7cb(0x176)]),this[_0xf2e7cb(0x176)]=null),this[_0xf2e7cb(0x1aa)]=!0x0,_0x9c4c18[_0xf2e7cb(0x185)]?.[_0xf2e7cb(0x1cd)]&&(_0x9c4c18[_0xf2e7cb(0x185)][_0xf2e7cb(0x1cd)][_0xf2e7cb(0x1c9)]=_0x30d7e5[_0xf2e7cb(0x197)],_0x9c4c18[_0xf2e7cb(0x185)][_0xf2e7cb(0x1cd)][_0xf2e7cb(0x1bb)]&&_0x30d7e5[_0xf2e7cb(0x1b6)]&&(_0x9c4c18[_0xf2e7cb(0x185)][_0xf2e7cb(0x1cd)][_0xf2e7cb(0x1bb)][_0xf2e7cb(0x1b9)]=_0x30d7e5[_0xf2e7cb(0x1b6)])),this[_0xf2e7cb(0x1ce)][_0xf2e7cb(0x171)](_0x30d7e5[_0xf2e7cb(0x1b1)]),this[_0xf2e7cb(0x188)](_0x30d7e5[_0xf2e7cb(0x1bc)],_0x30d7e5[_0xf2e7cb(0x19f)]),this[_0xf2e7cb(0x176)]=()=>{const _0x4e2b63=_0xf2e7cb;this[_0x4e2b63(0x1aa)]=!0x1,this[_0x4e2b63(0x176)]=null,_0x9c4c18[_0x4e2b63(0x185)]&&_0x9c4c18[_0x4e2b63(0x185)][_0x4e2b63(0x19c)]();},_0x5d1268[_0xf2e7cb(0x1a4)][_0xf2e7cb(0x185)][_0xf2e7cb(0x1d0)](_0xf2e7cb(0x16f),this[_0xf2e7cb(0x176)]);}[_0x2a7c55(0x188)](_0x18552a,_0x449202){const _0x334186=_0x2a7c55;this[_0x334186(0x1a5)][_0x334186(0x1c2)][_0x334186(0x189)](_0x43cbb9)[_0x334186(0x191)](_0x18552a,_0x334186(0x1c5)+_0x449202,!0x0,!0x0);}[_0x2a7c55(0x19b)](_0x333524){const _0x1ad2b1=_0x2a7c55,_0x416845=_0x431152(this[_0x1ad2b1(0x1a5)]);this[_0x1ad2b1(0x188)](_0x333524[_0x1ad2b1(0x1bc)],_0x333524[_0x1ad2b1(0x19f)]);const _0x4cd171=this[_0x1ad2b1(0x16c)]();_0x4cd171&&_0x4cd171[0x0]&&_0x5828bf({'target':_0x4cd171[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x416845[_0x1ad2b1(0x1c2)][_0x1ad2b1(0x189)](_0x1ad2b1(0x170))[_0x1ad2b1(0x1a0)]({'title':_0x333524[_0x1ad2b1(0x197)],'icon':_0x333524[_0x1ad2b1(0x1b6)],'hasCloseButton':!0x0,'id':_0x1ad2b1(0x16a),'position':this[_0x1ad2b1(0x1b4)][_0x1ad2b1(0x1c7)](this),'className':_0x1ad2b1(0x1b3)+(_0x333524[_0x1ad2b1(0x1ba)]?_0x1ad2b1(0x190):''),'content':this[_0x1ad2b1(0x1ce)],'onShow':_0x5c6c22=>{const _0x4c72b8=_0x1ad2b1;_0x333524[_0x4c72b8(0x1ba)]&&this[_0x4c72b8(0x1ce)][_0x4c72b8(0x173)](_0x5c6c22),this[_0x4c72b8(0x1ac)](),this[_0x4c72b8(0x1c8)]=!0x0;},'onHide':()=>{const _0x55a5eb=_0x1ad2b1;this[_0x55a5eb(0x1a5)][_0x55a5eb(0x1c2)][_0x55a5eb(0x189)](_0x55a5eb(0x187))[_0x55a5eb(0x18b)](_0x55a5eb(0x1c5)+this[_0x55a5eb(0x1bd)][_0x55a5eb(0x19f)]),this[_0x55a5eb(0x1b5)](),this[_0x55a5eb(0x1ae)](_0x55a5eb(0x16d)),this[_0x55a5eb(0x1c8)]=!0x1;}});}[_0x2a7c55(0x1b4)](_0x2d0b33,_0x1e3405){const _0x1b6f77=_0x2a7c55;if(!_0x1e3405)return null;const _0xe5ec80=this[_0x1b6f77(0x16c)]();if(!_0xe5ec80||0x0===_0xe5ec80[_0x1b6f77(0x1c1)])return{'left':Math[_0x1b6f77(0x193)](_0x1e3405[_0x1b6f77(0x18d)]+_0x1e3405[_0x1b6f77(0x1a7)]/0x2-_0x2d0b33[_0x1b6f77(0x1a7)]/0x2),'top':Math[_0x1b6f77(0x193)](_0x1e3405[_0x1b6f77(0x1c4)]+_0x1e3405[_0x1b6f77(0x1a2)]/0x2-_0x2d0b33[_0x1b6f77(0x1a2)]/0x2)};const _0x4a6831=Math[_0x1b6f77(0x193)](_0x1e3405[_0x1b6f77(0x18d)]+_0x1e3405[_0x1b6f77(0x1a7)]/0x2-_0x2d0b33[_0x1b6f77(0x1a7)]/0x2),_0x2d33bd=new _0x46fdab(_0xe5ec80[0x0]),_0x17e6f9=new _0x46fdab(_0xe5ec80[_0xe5ec80[_0x1b6f77(0x1c1)]-0x1]),_0x233f90=_0x2d0b33[_0x1b6f77(0x1a2)],_0x506e9d=this[_0x1b6f77(0x1bd)][_0x1b6f77(0x1ba)]?0x8:0x0;return{'left':_0x4a6831,'top':this[_0x1b6f77(0x1af)](_0x2d33bd,_0x17e6f9,_0x233f90,_0x506e9d,_0x1e3405)};}[_0x2a7c55(0x1af)](_0x1bbdec,_0x1d6c93,_0x41e433,_0x1aa89b=0x0,_0x283254){const _0x3042fe=_0x2a7c55,_0x2db231=_0x41e433+_0x1aa89b,_0x5958a9=new _0x46fdab(_0x240739[_0x3042fe(0x1cb)]),_0x6efe87=[_0x1bbdec[_0x3042fe(0x1b7)](),_0x1d6c93[_0x3042fe(0x1b7)]()][_0x3042fe(0x1a8)](_0x152efe=>_0x152efe),_0x247258=_0x46fdab[_0x3042fe(0x180)](_0x6efe87);if(!_0x247258)return Math[_0x3042fe(0x193)](_0x283254[_0x3042fe(0x1c4)]+_0x283254[_0x3042fe(0x1a2)]/0x2);const _0x1cb403=_0x5958a9[_0x3042fe(0x172)](_0x247258);if(!_0x1cb403)return Math[_0x3042fe(0x193)](_0x283254[_0x3042fe(0x1c4)]+_0x283254[_0x3042fe(0x1a2)]/0x2);const _0x49b63f=_0x283254[_0x3042fe(0x1b7)](),_0x4ef61f=_0x49b63f&&_0x247258[_0x3042fe(0x1a2)]>_0x49b63f[_0x3042fe(0x1a2)],_0x59cd93=_0x1cb403[_0x3042fe(0x1c4)],_0x5b7676=_0x1cb403[_0x3042fe(0x1a1)];if(_0x4ef61f){const _0xd5286f=(_0x49b63f||_0x5958a9)[_0x3042fe(0x1a2)]/0x2-_0x2db231/0x2,_0x3bc19a=_0x59cd93-z-_0x283254[_0x3042fe(0x1c4)],_0x247441=_0x283254[_0x3042fe(0x1a1)]-_0x5b7676-z;return _0x3bc19a>=_0x2db231?Math[_0x3042fe(0x194)](z,_0x59cd93-_0x2db231-z):_0x247441>=_0x2db231?_0x5b7676+z:Math[_0x3042fe(0x194)](z,_0xd5286f);}const _0x2a5824=_0x59cd93-_0x2db231,_0x280df4=_0x283254[_0x3042fe(0x1a1)]-_0x5b7676-z,_0x187809=_0x59cd93-z-_0x283254[_0x3042fe(0x1c4)];let _0x32e6b5;if(_0x280df4>=_0x2db231)_0x32e6b5=_0x5b7676+z;else{if(_0x187809>=_0x2db231)_0x32e6b5=_0x2a5824-z;else _0x32e6b5=_0x59cd93+_0x247258[_0x3042fe(0x1a2)]/0x2-_0x2db231/0x2;}return _0x32e6b5;}[_0x2a7c55(0x1ac)](){const _0x32f50c=_0x2a7c55,_0x1fb24a=_0x431152(this[_0x32f50c(0x1a5)]);this[_0x32f50c(0x18f)](_0x1fb24a[_0x32f50c(0x16e)][_0x32f50c(0x168)],_0x32f50c(0x16b),()=>{const _0x5e0321=_0x32f50c;if(this[_0x5e0321(0x1aa)])return;for(const {name:_0xa8ce61,data:{newRange:_0xa8555}}of _0x1fb24a[_0x5e0321(0x16e)][_0x5e0321(0x168)][_0x5e0321(0x17c)][_0x5e0321(0x184)]())if(_0xa8ce61[_0x5e0321(0x19e)](_0x5e0321(0x1b8))&&(_0xa8555&&(_0xa8555[_0x5e0321(0x17a)][_0x5e0321(0x1c6)](_0xa8555[_0x5e0321(0x1c0)])||_0x5e0321(0x181)==_0xa8555[_0x5e0321(0x174)][_0x5e0321(0x17f)])||null==_0xa8555)){const _0x124d31=_0x2a638a(this[_0x5e0321(0x1a5)][_0x5e0321(0x18a)],_0x5e0321(0x199));this[_0x5e0321(0x1ce)][_0x5e0321(0x1bf)](_0x124d31),this[_0x5e0321(0x1ae)](_0x5e0321(0x18c));}});}[_0x2a7c55(0x1b5)](){const _0x554b7d=_0x2a7c55,_0x58f9ea=_0x431152(this[_0x554b7d(0x1a5)]);this[_0x554b7d(0x1cf)](_0x58f9ea[_0x554b7d(0x16e)][_0x554b7d(0x168)]);}[_0x2a7c55(0x16c)](){const _0x51b3cc=_0x2a7c55,_0xf4d42e=_0x431152(this[_0x51b3cc(0x1a5)]);return _0x33111f(_0xf4d42e[_0x51b3cc(0x1a4)],[..._0xf4d42e[_0x51b3cc(0x16e)][_0x51b3cc(0x186)][_0x51b3cc(0x198)](_0x51b3cc(0x178)),..._0xf4d42e[_0x51b3cc(0x16e)][_0x51b3cc(0x186)][_0x51b3cc(0x198)](_0x51b3cc(0x1ca))]);}}
|
|
23
|
+
const _0x3cc4c5=_0x1692;(function(_0x45b258,_0x363f7b){const _0x20ade0=_0x1692,_0x50d412=_0x45b258();while(!![]){try{const _0x5360c0=-parseInt(_0x20ade0(0x13a))/0x1*(-parseInt(_0x20ade0(0x163))/0x2)+-parseInt(_0x20ade0(0x171))/0x3+parseInt(_0x20ade0(0x17a))/0x4*(parseInt(_0x20ade0(0x13b))/0x5)+parseInt(_0x20ade0(0x17f))/0x6*(parseInt(_0x20ade0(0x150))/0x7)+parseInt(_0x20ade0(0x170))/0x8+parseInt(_0x20ade0(0x17c))/0x9+-parseInt(_0x20ade0(0x138))/0xa*(parseInt(_0x20ade0(0x15b))/0xb);if(_0x5360c0===_0x363f7b)break;else _0x50d412['push'](_0x50d412['shift']());}catch(_0x1affbc){_0x50d412['push'](_0x50d412['shift']());}}}(_0x4a90,0xbc663));import{ContextPlugin as _0x39f6d5}from'ckeditor5/src/core.js';import{AIConnector as _0x1cf58b}from'../aicore/aiconnector.js';import{AIEditing as _0x394859}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x2a120a,AIBalloonView as _0x4e0f50}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';function _0x1692(_0x5b4406,_0xbf8038){const _0x4a90a9=_0x4a90();return _0x1692=function(_0x169286,_0x364e2f){_0x169286=_0x169286-0x114;let _0x117495=_0x4a90a9[_0x169286];return _0x117495;},_0x1692(_0x5b4406,_0xbf8038);}import{getAllMarkersDomElementsSorted as _0x874bde}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x14acce,Rect as _0x2b1993,scrollViewportToShowTarget as _0x431506}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x247934}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x3d6fda}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x369df6}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x2a120a,_0x3cc4c5(0x149),_0x3cc4c5(0x156)];const g=0xa;function _0x4a90(){const _0x15733e=['value','_isUpdatingMarkers','11YmgIRr','start','isTrackChangesOn','plugins','fire','ai-selection:','AIEditing','markers','418742delRNY','balloonView','getIntersection','left','_config','AI_ACTIONS_SELECTION_REMOVED_ERROR','requires','ai-balloon-selection','isOfficialPlugin','config','render','aiBalloon','updateContent','4486024sAdNud','2905578gAEPtE','showFakeVisualSelection','open','getBoundingRect','ai-balloon-','rootName','length','filter','_cleanupMarkerRemovalListener','24PFERoL','_setupVisualSelection','6416676EBHdUD','showRotator','document','6400050EmedVK','index','hideFakeVisualSelection','setupRotator','pluginName','trackChanges','updatePosition','$graveyard','commands','ranges','_calculateDialogPosition','max','label','height','ai-balloon','iconView','_getSelectionElements','isOpen','\x20ai-balloon-rotator','view','stopAutoScroll','change','model','window','root','locale','icon','round','editing','startsWith','isPremiumPlugin','hide','Dialog','width','getChangedMarkers','title','showBlockingError','ai.availableReplyActions','context','12899990oAOOFu','listenTo','2EapaOi','225895FlZdkf','_updateBalloon','isEqual','content','startAutoScroll','getMarkersGroup','mainView','top','bind','close','end','bottom','_showDialog','AIBalloon','dialogClosed','show','get','_pendingRenderCallback','differ','stopListening','ai-selection','7oRMMme','_calculateOptimalTopPosition','off','delegate','once','getVisible','selectionRemoved','_setupMarkerRemovalListener','headerView'];_0x4a90=function(){return _0x15733e;};return _0x4a90();}export class AIBalloon extends _0x39f6d5{static get[_0x3cc4c5(0x169)](){return[_0x1cf58b,_0x394859];}static get[_0x3cc4c5(0x115)](){const _0x3e3821=_0x3cc4c5;return _0x3e3821(0x148);}static get[_0x3cc4c5(0x16b)](){return!0x0;}static get[_0x3cc4c5(0x12f)](){return!0x0;}[_0x3cc4c5(0x122)]=!0x1;[_0x3cc4c5(0x167)];[_0x3cc4c5(0x15a)]=!0x1;[_0x3cc4c5(0x14c)]=null;[_0x3cc4c5(0x173)](_0x5b6b9d){const _0x2de4c5=_0x3cc4c5,_0x21a731=_0x247934(this[_0x2de4c5(0x137)]);if(this[_0x2de4c5(0x167)]=_0x5b6b9d,this[_0x2de4c5(0x122)])return void this[_0x2de4c5(0x13c)](_0x5b6b9d);const _0x1c7639=this[_0x2de4c5(0x137)][_0x2de4c5(0x16c)][_0x2de4c5(0x14b)](_0x2de4c5(0x136))||[..._0x3d6fda],_0x3a9235=_0x21a731?.[_0x2de4c5(0x119)][_0x2de4c5(0x14b)](_0x2de4c5(0x116)),_0x4e996e=_0x3a9235?.[_0x2de4c5(0x159)];this[_0x2de4c5(0x164)]=new _0x4e0f50(_0x21a731[_0x2de4c5(0x12a)],_0x5b6b9d,_0x1c7639,!!_0x4e996e),this[_0x2de4c5(0x164)][_0x2de4c5(0x153)](..._0x2a120a)['to'](this),_0x3a9235&&this[_0x2de4c5(0x164)][_0x2de4c5(0x143)](_0x2de4c5(0x15d))['to'](_0x3a9235,_0x2de4c5(0x159)),this[_0x2de4c5(0x147)](_0x5b6b9d);}[_0x3cc4c5(0x144)](){const _0x15bf89=_0x3cc4c5;_0x247934(this[_0x15bf89(0x137)])[_0x15bf89(0x15e)][_0x15bf89(0x14b)](_0x15bf89(0x131))[_0x15bf89(0x130)]();}[_0x3cc4c5(0x13f)](){const _0x407e80=_0x3cc4c5;this[_0x407e80(0x164)]&&this[_0x407e80(0x164)][_0x407e80(0x13f)]();}[_0x3cc4c5(0x125)](){const _0x43e1b4=_0x3cc4c5;this[_0x43e1b4(0x164)]&&this[_0x43e1b4(0x164)][_0x43e1b4(0x125)]();}[_0x3cc4c5(0x13c)](_0x34762f){const _0x27ff41=_0x3cc4c5,_0x499f61=_0x247934(this[_0x27ff41(0x137)]),_0x51bdb0=_0x499f61[_0x27ff41(0x15e)][_0x27ff41(0x14b)](_0x27ff41(0x131));this[_0x27ff41(0x14c)]&&(_0x499f61[_0x27ff41(0x12d)][_0x27ff41(0x124)][_0x27ff41(0x152)](_0x27ff41(0x16d),this[_0x27ff41(0x14c)]),this[_0x27ff41(0x14c)]=null),this[_0x27ff41(0x15a)]=!0x0,_0x51bdb0[_0x27ff41(0x124)]?.[_0x27ff41(0x158)]&&(_0x51bdb0[_0x27ff41(0x124)][_0x27ff41(0x158)][_0x27ff41(0x11d)]=_0x34762f[_0x27ff41(0x134)],_0x51bdb0[_0x27ff41(0x124)][_0x27ff41(0x158)][_0x27ff41(0x120)]&&_0x34762f[_0x27ff41(0x12b)]&&(_0x51bdb0[_0x27ff41(0x124)][_0x27ff41(0x158)][_0x27ff41(0x120)][_0x27ff41(0x13e)]=_0x34762f[_0x27ff41(0x12b)])),this[_0x27ff41(0x164)][_0x27ff41(0x16f)](_0x34762f[_0x27ff41(0x141)]),this[_0x27ff41(0x17b)](_0x34762f[_0x27ff41(0x11a)],_0x34762f[_0x27ff41(0x180)]),this[_0x27ff41(0x14c)]=()=>{const _0x165e12=_0x27ff41;this[_0x165e12(0x15a)]=!0x1,this[_0x165e12(0x14c)]=null,_0x51bdb0[_0x165e12(0x124)]&&_0x51bdb0[_0x165e12(0x124)][_0x165e12(0x117)]();},_0x499f61[_0x27ff41(0x12d)][_0x27ff41(0x124)][_0x27ff41(0x154)](_0x27ff41(0x16d),this[_0x27ff41(0x14c)]);}[_0x3cc4c5(0x17b)](_0x28c0e3,_0x49ec6a){const _0x43a60a=_0x3cc4c5;this[_0x43a60a(0x137)][_0x43a60a(0x15e)][_0x43a60a(0x14b)](_0x394859)[_0x43a60a(0x172)](_0x28c0e3,_0x43a60a(0x175)+_0x49ec6a,!0x0,!0x0);}[_0x3cc4c5(0x147)](_0xf6d5e2){const _0x1fa4d7=_0x3cc4c5,_0x5a0bf7=_0x247934(this[_0x1fa4d7(0x137)]);this[_0x1fa4d7(0x17b)](_0xf6d5e2[_0x1fa4d7(0x11a)],_0xf6d5e2[_0x1fa4d7(0x180)]);const _0x3b59d9=this[_0x1fa4d7(0x121)]();_0x3b59d9&&_0x3b59d9[0x0]&&_0x431506({'target':_0x3b59d9[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x5a0bf7[_0x1fa4d7(0x15e)][_0x1fa4d7(0x14b)](_0x1fa4d7(0x131))[_0x1fa4d7(0x14a)]({'title':_0xf6d5e2[_0x1fa4d7(0x134)],'icon':_0xf6d5e2[_0x1fa4d7(0x12b)],'hasCloseButton':!0x0,'id':_0x1fa4d7(0x16e),'position':this[_0x1fa4d7(0x11b)][_0x1fa4d7(0x143)](this),'className':_0x1fa4d7(0x11f)+(_0xf6d5e2[_0x1fa4d7(0x17d)]?_0x1fa4d7(0x123):''),'content':this[_0x1fa4d7(0x164)],'onShow':_0x4a99d4=>{const _0x5ce28a=_0x1fa4d7;_0xf6d5e2[_0x5ce28a(0x17d)]&&this[_0x5ce28a(0x164)][_0x5ce28a(0x114)](_0x4a99d4),this[_0x5ce28a(0x157)](),this[_0x5ce28a(0x122)]=!0x0;},'onHide':()=>{const _0x2d2f0b=_0x1fa4d7;this[_0x2d2f0b(0x137)][_0x2d2f0b(0x15e)][_0x2d2f0b(0x14b)](_0x2d2f0b(0x161))[_0x2d2f0b(0x181)](_0x2d2f0b(0x175)+this[_0x2d2f0b(0x167)][_0x2d2f0b(0x180)]),this[_0x2d2f0b(0x179)](),this[_0x2d2f0b(0x15f)](_0x2d2f0b(0x149)),this[_0x2d2f0b(0x122)]=!0x1;}});}[_0x3cc4c5(0x11b)](_0x21592e,_0x384e91){const _0x59bf87=_0x3cc4c5;if(!_0x384e91)return null;const _0x506896=this[_0x59bf87(0x121)]();if(!_0x506896||0x0===_0x506896[_0x59bf87(0x177)])return{'left':Math[_0x59bf87(0x12c)](_0x384e91[_0x59bf87(0x166)]+_0x384e91[_0x59bf87(0x132)]/0x2-_0x21592e[_0x59bf87(0x132)]/0x2),'top':Math[_0x59bf87(0x12c)](_0x384e91[_0x59bf87(0x142)]+_0x384e91[_0x59bf87(0x11e)]/0x2-_0x21592e[_0x59bf87(0x11e)]/0x2)};const _0x1e951c=Math[_0x59bf87(0x12c)](_0x384e91[_0x59bf87(0x166)]+_0x384e91[_0x59bf87(0x132)]/0x2-_0x21592e[_0x59bf87(0x132)]/0x2),_0x58a24e=new _0x2b1993(_0x506896[0x0]),_0x3ba12a=new _0x2b1993(_0x506896[_0x506896[_0x59bf87(0x177)]-0x1]),_0x14d6b5=_0x21592e[_0x59bf87(0x11e)],_0xe7429a=this[_0x59bf87(0x167)][_0x59bf87(0x17d)]?0x8:0x0;return{'left':_0x1e951c,'top':this[_0x59bf87(0x151)](_0x58a24e,_0x3ba12a,_0x14d6b5,_0xe7429a,_0x384e91)};}[_0x3cc4c5(0x151)](_0x253d70,_0x5e59d9,_0x31c64a,_0x51c801=0x0,_0xcc6d20){const _0x47e6b5=_0x3cc4c5,_0x5c8fbb=_0x31c64a+_0x51c801,_0x366dc0=new _0x2b1993(_0x14acce[_0x47e6b5(0x128)]),_0x13c9ff=[_0x253d70[_0x47e6b5(0x155)](),_0x5e59d9[_0x47e6b5(0x155)]()][_0x47e6b5(0x178)](_0x430c47=>_0x430c47),_0x499343=_0x2b1993[_0x47e6b5(0x174)](_0x13c9ff);if(!_0x499343)return Math[_0x47e6b5(0x12c)](_0xcc6d20[_0x47e6b5(0x142)]+_0xcc6d20[_0x47e6b5(0x11e)]/0x2);const _0x52c4c5=_0x366dc0[_0x47e6b5(0x165)](_0x499343);if(!_0x52c4c5)return Math[_0x47e6b5(0x12c)](_0xcc6d20[_0x47e6b5(0x142)]+_0xcc6d20[_0x47e6b5(0x11e)]/0x2);const _0x39232c=_0xcc6d20[_0x47e6b5(0x155)](),_0x4c83e5=_0x39232c&&_0x499343[_0x47e6b5(0x11e)]>_0x39232c[_0x47e6b5(0x11e)],_0x2dfc50=_0x52c4c5[_0x47e6b5(0x142)],_0x4cf29a=_0x52c4c5[_0x47e6b5(0x146)];if(_0x4c83e5){const _0x1147b8=(_0x39232c||_0x366dc0)[_0x47e6b5(0x11e)]/0x2-_0x5c8fbb/0x2,_0x4a49da=_0x2dfc50-g-_0xcc6d20[_0x47e6b5(0x142)],_0x197149=_0xcc6d20[_0x47e6b5(0x146)]-_0x4cf29a-g;return _0x4a49da>=_0x5c8fbb?Math[_0x47e6b5(0x11c)](g,_0x2dfc50-_0x5c8fbb-g):_0x197149>=_0x5c8fbb?_0x4cf29a+g:Math[_0x47e6b5(0x11c)](g,_0x1147b8);}const _0x3af4c5=_0x2dfc50-_0x5c8fbb,_0x4e714c=_0xcc6d20[_0x47e6b5(0x146)]-_0x4cf29a-g,_0x4e9a3d=_0x2dfc50-g-_0xcc6d20[_0x47e6b5(0x142)];let _0x5ca3ed;if(_0x4e714c>=_0x5c8fbb)_0x5ca3ed=_0x4cf29a+g;else{if(_0x4e9a3d>=_0x5c8fbb)_0x5ca3ed=_0x3af4c5-g;else _0x5ca3ed=_0x2dfc50+_0x499343[_0x47e6b5(0x11e)]/0x2-_0x5c8fbb/0x2;}return _0x5ca3ed;}[_0x3cc4c5(0x157)](){const _0x1b6d4f=_0x3cc4c5,_0x4c551e=_0x247934(this[_0x1b6d4f(0x137)]);this[_0x1b6d4f(0x139)](_0x4c551e[_0x1b6d4f(0x127)][_0x1b6d4f(0x17e)],_0x1b6d4f(0x126),()=>{const _0x454158=_0x1b6d4f;if(this[_0x454158(0x15a)])return;for(const {name:_0x33393b,data:{newRange:_0x265386}}of _0x4c551e[_0x454158(0x127)][_0x454158(0x17e)][_0x454158(0x14d)][_0x454158(0x133)]())if(_0x33393b[_0x454158(0x12e)](_0x454158(0x160))&&(_0x265386&&(_0x265386[_0x454158(0x15c)][_0x454158(0x13d)](_0x265386[_0x454158(0x145)])||_0x454158(0x118)==_0x265386[_0x454158(0x129)][_0x454158(0x176)])||null==_0x265386)){const _0x662470=_0x369df6(this[_0x454158(0x137)][_0x454158(0x12a)],_0x454158(0x168));this[_0x454158(0x164)][_0x454158(0x135)](_0x662470),this[_0x454158(0x15f)](_0x454158(0x156));}});}[_0x3cc4c5(0x179)](){const _0x164016=_0x3cc4c5,_0x5c8999=_0x247934(this[_0x164016(0x137)]);this[_0x164016(0x14e)](_0x5c8999[_0x164016(0x127)][_0x164016(0x17e)]);}[_0x3cc4c5(0x121)](){const _0x497a1f=_0x3cc4c5,_0x62d494=_0x247934(this[_0x497a1f(0x137)]);return _0x874bde(_0x62d494[_0x497a1f(0x12d)],[..._0x62d494[_0x497a1f(0x127)][_0x497a1f(0x162)][_0x497a1f(0x140)](_0x497a1f(0x14f)),..._0x62d494[_0x497a1f(0x127)][_0x497a1f(0x162)][_0x497a1f(0x140)](_0x497a1f(0x16a))]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4a2a61,_0x535716){var _0x1583b7=_0x1e47,_0x4a8ba9=_0x4a2a61();while(!![]){try{var _0x2723ca=-parseInt(_0x1583b7(0x1b3))/0x1*(-parseInt(_0x1583b7(0x1b2))/0x2)+parseInt(_0x1583b7(0x1ac))/0x3+parseInt(_0x1583b7(0x1a8))/0x4+parseInt(_0x1583b7(0x1a6))/0x5+-parseInt(_0x1583b7(0x1b0))/0x6*(parseInt(_0x1583b7(0x1a9))/0x7)+parseInt(_0x1583b7(0x1af))/0x8+parseInt(_0x1583b7(0x1aa))/0x9*(-parseInt(_0x1583b7(0x1ae))/0xa);if(_0x2723ca===_0x535716)break;else _0x4a8ba9['push'](_0x4a8ba9['shift']());}catch(_0x2c1c79){_0x4a8ba9['push'](_0x4a8ba9['shift']());}}}(_0x4de1,0xc19fe));function _0x1e47(_0x28e581,_0x48c2c1){var _0x4de198=_0x4de1();return _0x1e47=function(_0x1e479c,_0x2c81b5){_0x1e479c=_0x1e479c-0x1a6;var _0x4cd0c4=_0x4de198[_0x1e479c];return _0x4cd0c4;},_0x1e47(_0x28e581,_0x48c2c1);}import{View as _0x136ea3}from'ckeditor5/src/ui.js';function _0x4de1(){var _0x3e4d3c=['4178weHoxE','613BqVshc','setTemplate','5752250ypsMMb','ck-ai-balloon__disclaimer-content','35076wZzXCh','1261729NUxSiZ','39789SlVlig','AI_DISCLAIMER_TEXT','3211404BKbKZO','ck-ai-balloon__disclaimer','6640cUkVtm','4631040dlWNYE','12ilKWot','div'];_0x4de1=function(){return _0x3e4d3c;};return _0x4de1();}import{getTranslation as _0xef904e}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x136ea3{constructor(_0x2c6233){var _0x1dbd0f=_0x1e47;super(_0x2c6233),this[_0x1dbd0f(0x1b4)]({'tag':_0x1dbd0f(0x1b1),'attributes':{'class':['ck',_0x1dbd0f(0x1ad)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x1dbd0f(0x1a7)]},'children':[{'text':_0xef904e(_0x2c6233,_0x1dbd0f(0x1ab))}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4ca2(_0x11a41b,_0x12a9ce){const _0x409ffc=_0x409f();return _0x4ca2=function(_0x4ca276,_0x41f852){_0x4ca276=_0x4ca276-0x92;let _0xdde756=_0x409ffc[_0x4ca276];return _0xdde756;},_0x4ca2(_0x11a41b,_0x12a9ce);}const _0x38edae=_0x4ca2;(function(_0x4a9fe1,_0x35b488){const _0x37b680=_0x4ca2,_0x468ec4=_0x4a9fe1();while(!![]){try{const _0x2f26dd=parseInt(_0x37b680(0xa3))/0x1+parseInt(_0x37b680(0xa9))/0x2*(parseInt(_0x37b680(0x93))/0x3)+-parseInt(_0x37b680(0x9d))/0x4*(-parseInt(_0x37b680(0xa1))/0x5)+-parseInt(_0x37b680(0x9a))/0x6+parseInt(_0x37b680(0xa6))/0x7+parseInt(_0x37b680(0xaa))/0x8+parseInt(_0x37b680(0xa7))/0x9*(-parseInt(_0x37b680(0x95))/0xa);if(_0x2f26dd===_0x35b488)break;else _0x468ec4['push'](_0x468ec4['shift']());}catch(_0x2b618a){_0x468ec4['push'](_0x468ec4['shift']());}}}(_0x409f,0x9540f));import{ToolbarView as _0x24981f,ButtonView as _0x55ebb6}from'ckeditor5/src/ui.js';import{getTranslation as _0x2f37a2}from'../../aicore/utils/common-translations.js';function _0x409f(){const _0x3e73df=['12IfNBtM','AI_BALLOON_SUGGEST_BUTTON','isEnabled','_createButton','983015gmEvjg','items','775190loqESv','set','ck-ai-button-secondary','1630902kHoNyD','18bVOvZL','applyButton','32462LncpmO','3457424nZdfJp','locale','ck-ai-balloon__toolbar','12MYgaZV','ck-ai-button-primary','3727690wFBAgw','extendTemplate','bind','AI_BALLOON_APPLY_BUTTON','add','4429236axTWOH','suggestButton','isLoading'];_0x409f=function(){return _0x3e73df;};return _0x409f();}export class AIBalloonToolbarView extends _0x24981f{constructor(_0x13ea86,_0x2a5854=!0x0,_0x3b6021=!0x0){const _0x4eaeab=_0x4ca2;super(_0x13ea86),this[_0x4eaeab(0xa4)](_0x4eaeab(0x9c),!0x1),_0x2a5854&&(this[_0x4eaeab(0xa8)]=this[_0x4eaeab(0xa0)](_0x2f37a2(_0x13ea86,_0x4eaeab(0x98)),_0x4eaeab(0x94)),this[_0x4eaeab(0xa8)][_0x4eaeab(0x97)](_0x4eaeab(0x9f))['to'](this,_0x4eaeab(0x9c),_0x345be4=>!_0x345be4),this[_0x4eaeab(0xa2)][_0x4eaeab(0x99)](this[_0x4eaeab(0xa8)])),_0x3b6021&&(this[_0x4eaeab(0x9b)]=this[_0x4eaeab(0xa0)](_0x2f37a2(_0x13ea86,_0x4eaeab(0x9e)),_0x2a5854?_0x4eaeab(0xa5):_0x4eaeab(0x94)),this[_0x4eaeab(0x9b)][_0x4eaeab(0x97)](_0x4eaeab(0x9f))['to'](this,_0x4eaeab(0x9c),_0x4883b2=>!_0x4883b2),this[_0x4eaeab(0xa2)][_0x4eaeab(0x99)](this[_0x4eaeab(0x9b)])),this[_0x4eaeab(0x96)]({'attributes':{'class':[_0x4eaeab(0x92)]}});}[_0x38edae(0xa0)](_0x4d3dd3,_0xcc93ed){const _0x2307b4=_0x38edae,_0x3f4701=new _0x55ebb6(this[_0x2307b4(0xab)]);return _0x3f4701[_0x2307b4(0xa4)]({'label':_0x4d3dd3,'class':_0xcc93ed||'','isVisible':!0x0,'withText':!0x0}),_0x3f4701;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11bf3c=_0x2337;(function(_0x4ab82d,_0x4523b5){const _0x541ae3=_0x2337,_0x2db957=_0x4ab82d();while(!![]){try{const _0x55c03b=-parseInt(_0x541ae3(0xf7))/0x1*(parseInt(_0x541ae3(0xc6))/0x2)+parseInt(_0x541ae3(0xb5))/0x3+-parseInt(_0x541ae3(0xdc))/0x4+parseInt(_0x541ae3(0xdb))/0x5+parseInt(_0x541ae3(0xb4))/0x6*(parseInt(_0x541ae3(0xd5))/0x7)+parseInt(_0x541ae3(0xcf))/0x8*(-parseInt(_0x541ae3(0xf1))/0x9)+-parseInt(_0x541ae3(0xdf))/0xa*(-parseInt(_0x541ae3(0x10c))/0xb);if(_0x55c03b===_0x4523b5)break;else _0x2db957['push'](_0x2db957['shift']());}catch(_0x23f873){_0x2db957['push'](_0x2db957['shift']());}}}(_0xce12,0x26653));import{ButtonView as _0x3b565f,View as _0x543533,ViewCollection as _0x1edae4,FocusCycler as _0x67919}from'ckeditor5/src/ui.js';function _0xce12(){const _0x429bac=['hideError','showSuggestButton','AI_BALLOON_PREVIOUS_TOOLTIP','bodyView','_availableActions','listenTo','isErrorVisible','disclaimerView','688wQwSYL','focusCycler','tab','showBlockingError','showRecoverableError','errorMessage','7VobDBk','applyButton','focusLast','setTemplate','div','showNext','1102135jjvKDo','846248Dbzxem','element','AI_BALLOON_NEXT_TOOLTIP','46700HkzwmA','setLoading','ck-ai-suggestion__error-text','isLoading','_addDisclaimerView','remove','_createPreviousButtonView','_initializeScrollManager','bindTemplate','view','_createNextButtonView','startAutoScroll','ai-balloon-error','addMany','_focusables','mainView','isEnabled','focus','31167wCfiBZ','_addContentView','isTrackChangesOn','includes','_dialogContent','keystrokes','1633WDXkRK','_errorView','applySuggestion','destroy','_mainView','render','change:isTrackChangesOn','focusFirst','stopAutoScroll','setupRotator','_getScrollableElement','stop','span','ck-ai-suggestion__error','insertSuggestion','showPrevious','showApplyButton','getIndex','focusTracker','suggestButton','shift\x20+\x20tab','1375gQmBpU','ck-hidden','fire','scrollManager','updateContent','144276WjUhbX','406890aWoXxg','showError','bind','createCollection','_addToolbar','set','clearLoading','children','toolbar','add','start','headerView','execute','clear','_createErrorView','locale','ai-balloon-content','364ysxvSm'];_0xce12=function(){return _0x429bac;};return _0xce12();}import{FocusTracker as _0x32bc76,KeystrokeHandler as _0x3c83ee}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x475f02,IconPreviousArrow as _0x1c8335}from'@ckeditor/ckeditor5-icons';function _0x2337(_0x218d96,_0xb5ec68){const _0xce12d0=_0xce12();return _0x2337=function(_0x2337c5,_0x146044){_0x2337c5=_0x2337c5-0xb3;let _0x1153d1=_0xce12d0[_0x2337c5];return _0x1153d1;},_0x2337(_0x218d96,_0xb5ec68);}import{AIBalloonToolbarView as _0x3a2ca5}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x59adc3}from'./aiballoondisclaimerview.js';import{getTranslation as _0x380c21}from'../../aicore/utils/common-translations.js';import{ScrollManager as _0x622d4d}from'../../aicore/utils/scrollmanager.js';import{AISuggestionContainerView as _0x16f741}from'../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x11bf3c(0xf9),_0x11bf3c(0x105),_0x11bf3c(0xda),_0x11bf3c(0x106)];export class AIBalloonView extends _0x543533{[_0x11bf3c(0x109)];[_0x11bf3c(0xf6)];[_0x11bf3c(0xd0)];[_0x11bf3c(0xcb)];[_0x11bf3c(0xed)];[_0x11bf3c(0xf8)];[_0x11bf3c(0x10f)];constructor(_0x4f52ca,_0x71bdb7,_0x5b0f3b,_0x3a28e8){const _0x45c51e=_0x11bf3c;super(_0x4f52ca),this[_0x45c51e(0xcb)]=_0x5b0f3b,this[_0x45c51e(0xba)](_0x45c51e(0xe2),!0x1),this[_0x45c51e(0xba)](_0x45c51e(0xf3),_0x3a28e8),this[_0x45c51e(0xba)](_0x45c51e(0xcd),!0x1),this[_0x45c51e(0xba)](_0x45c51e(0xd4),''),this[_0x45c51e(0x109)]=new _0x32bc76(),this[_0x45c51e(0xf6)]=new _0x3c83ee(),this[_0x45c51e(0xed)]=this[_0x45c51e(0xb8)](),this[_0x45c51e(0xd0)]=new _0x67919({'focusables':this[_0x45c51e(0xed)],'focusTracker':this[_0x45c51e(0x109)],'keystrokeHandler':this[_0x45c51e(0xf6)],'actions':{'focusPrevious':_0x45c51e(0x10b),'focusNext':_0x45c51e(0xd1)}}),this[_0x45c51e(0xf5)]=new _0x1edae4(),this[_0x45c51e(0xf2)](_0x71bdb7[_0x45c51e(0xee)]),this[_0x45c51e(0xe3)](),this[_0x45c51e(0xb9)](_0x71bdb7[_0x45c51e(0x107)],_0x71bdb7[_0x45c51e(0xc8)]),this[_0x45c51e(0xbd)][_0x45c51e(0xb7)](_0x45c51e(0xe2))['to'](this),this[_0x45c51e(0xed)][_0x45c51e(0xc2)](),this[_0x45c51e(0xed)][_0x45c51e(0xec)]([this[_0x45c51e(0xbd)]]),this[_0x45c51e(0xd8)]({'tag':_0x45c51e(0xd9),'attributes':{'class':_0x45c51e(0xc5)},'children':this[_0x45c51e(0xf5)]}),this['on'](_0x45c51e(0xfd),()=>{const _0x262490=_0x45c51e;this[_0x262490(0xf5)][_0x262490(0xe4)](this[_0x262490(0xbd)]),this[_0x262490(0xb9)](_0x71bdb7[_0x262490(0x107)],_0x71bdb7[_0x262490(0xc8)]);});}[_0x11bf3c(0xfc)](){const _0x2b1433=_0x11bf3c;super[_0x2b1433(0xfc)]();for(const _0x400f40 of this[_0x2b1433(0xed)])this[_0x2b1433(0x109)][_0x2b1433(0xbe)](_0x400f40[_0x2b1433(0xdd)]);this[_0x2b1433(0xf6)][_0x2b1433(0xcc)](this[_0x2b1433(0xdd)]),this[_0x2b1433(0xe6)]();}[_0x11bf3c(0xfa)](){const _0x2d32d8=_0x11bf3c;super[_0x2d32d8(0xfa)](),this[_0x2d32d8(0x10f)]&&this[_0x2d32d8(0x10f)][_0x2d32d8(0xfa)]();}[_0x11bf3c(0xf0)](_0x260753){const _0x1ec330=_0x11bf3c;-0x1===_0x260753?this[_0x1ec330(0xd0)][_0x1ec330(0xd7)]():this[_0x1ec330(0xd0)][_0x1ec330(0xfe)]();}[_0x11bf3c(0xe0)](){const _0x255b99=_0x11bf3c;this[_0x255b99(0xe2)]=!0x0;}[_0x11bf3c(0xbb)](){const _0x2bb9d9=_0x11bf3c;this[_0x2bb9d9(0xe2)]=!0x1;}[_0x11bf3c(0xb6)](_0x1df148){const _0x2bd618=_0x11bf3c;this[_0x2bd618(0xf8)]||(this[_0x2bd618(0xf8)]=this[_0x2bd618(0xc3)](),this[_0x2bd618(0xf5)][_0x2bd618(0xec)]([this[_0x2bd618(0xf8)]],0x0)),this[_0x2bd618(0xd4)]=_0x1df148,this[_0x2bd618(0xcd)]=!0x0;}[_0x11bf3c(0xc7)](){const _0x3acc8f=_0x11bf3c;this[_0x3acc8f(0xcd)]=!0x1;}[_0x11bf3c(0xd3)](_0x3749d1){const _0x4c8a1f=_0x11bf3c;this[_0x4c8a1f(0xb6)](_0x3749d1);}[_0x11bf3c(0xd2)](_0x508fde){const _0x297fde=_0x11bf3c;this[_0x297fde(0xb6)](_0x508fde),this[_0x297fde(0xbd)]&&(this[_0x297fde(0xbd)][_0x297fde(0xd6)]&&(this[_0x297fde(0xbd)][_0x297fde(0xd6)][_0x297fde(0xef)]=!0x1),this[_0x297fde(0xbd)][_0x297fde(0x10a)]&&(this[_0x297fde(0xbd)][_0x297fde(0x10a)][_0x297fde(0xef)]=!0x1));}[_0x11bf3c(0x100)](_0x598e98){const _0x4cab22=_0x11bf3c,_0x34657d=this[_0x4cab22(0xe9)](),_0x1c8a2f=this[_0x4cab22(0xe5)]();_0x598e98[_0x4cab22(0xe8)][_0x4cab22(0xc0)][_0x4cab22(0xbc)][_0x4cab22(0xbe)](_0x34657d,0x2),_0x598e98[_0x4cab22(0xe8)][_0x4cab22(0xc0)][_0x4cab22(0xbc)][_0x4cab22(0xbe)](_0x1c8a2f,0x0),this[_0x4cab22(0xed)][_0x4cab22(0xec)]([_0x34657d,_0x1c8a2f]),this[_0x4cab22(0x109)][_0x4cab22(0xbe)](_0x34657d[_0x4cab22(0xdd)]),this[_0x4cab22(0x109)][_0x4cab22(0xbe)](_0x1c8a2f[_0x4cab22(0xdd)]);}[_0x11bf3c(0xf2)](_0x510714){const _0x259fbb=_0x11bf3c;this[_0x259fbb(0xfb)]=_0x510714,this[_0x259fbb(0xf5)][_0x259fbb(0xbe)](this[_0x259fbb(0xfb)]);}[_0x11bf3c(0xb3)](_0x238d95){const _0x2b59f8=_0x11bf3c,_0x206c39=this[_0x2b59f8(0xf5)][_0x2b59f8(0x108)](this[_0x2b59f8(0xfb)]);this[_0x2b59f8(0xf5)][_0x2b59f8(0xe4)](this[_0x2b59f8(0xfb)]),this[_0x2b59f8(0xfb)]=_0x238d95,this[_0x2b59f8(0xf5)][_0x2b59f8(0xbe)](this[_0x2b59f8(0xfb)],_0x206c39),this[_0x2b59f8(0xc7)](),this[_0x2b59f8(0x10f)]&&this[_0x2b59f8(0x10f)][_0x2b59f8(0xfa)](),this[_0x2b59f8(0xe6)]();}[_0x11bf3c(0xe3)](){const _0x40379d=_0x11bf3c;this[_0x40379d(0xce)]=new _0x59adc3(this[_0x40379d(0xc4)]),this[_0x40379d(0xf5)][_0x40379d(0xbe)](this[_0x40379d(0xce)]);}[_0x11bf3c(0xb9)](_0x53fbc8=!0x0,_0x5ad1a8=!0x0){const _0x346f65=_0x11bf3c;_0x53fbc8=_0x53fbc8&&!this[_0x346f65(0xf3)]&&this[_0x346f65(0xcb)][_0x346f65(0xf4)](_0x346f65(0xf9)),_0x5ad1a8=_0x5ad1a8&&this[_0x346f65(0xcb)][_0x346f65(0xf4)](_0x346f65(0x105)),this[_0x346f65(0xbd)]=new _0x3a2ca5(this[_0x346f65(0xc4)],_0x53fbc8,_0x5ad1a8),this[_0x346f65(0xbd)][_0x346f65(0xd6)]?.['on'](_0x346f65(0xc1),()=>{const _0x43ba61=_0x346f65;this[_0x43ba61(0x10e)](_0x43ba61(0xf9));}),this[_0x346f65(0xbd)][_0x346f65(0x10a)]?.['on'](_0x346f65(0xc1),()=>{const _0x2296d2=_0x346f65;this[_0x2296d2(0x10e)](_0x2296d2(0x105));}),this[_0x346f65(0xf5)][_0x346f65(0xbe)](this[_0x346f65(0xbd)]);}[_0x11bf3c(0xe9)](){const _0xcff8fc=_0x11bf3c,_0x3e3f33=new _0x3b565f(this[_0xcff8fc(0xc4)]);return _0x3e3f33[_0xcff8fc(0xba)]({'icon':_0x475f02,'tooltip':_0x380c21(this[_0xcff8fc(0xc4)],_0xcff8fc(0xde))}),_0x3e3f33['on'](_0xcff8fc(0xc1),()=>{const _0x59b9b8=_0xcff8fc;this[_0x59b9b8(0x10e)](_0x59b9b8(0xda));}),_0x3e3f33;}[_0x11bf3c(0xe5)](){const _0x4f44f9=_0x11bf3c,_0x105a97=new _0x3b565f(this[_0x4f44f9(0xc4)]);return _0x105a97[_0x4f44f9(0xba)]({'icon':_0x1c8335,'tooltip':_0x380c21(this[_0x4f44f9(0xc4)],_0x4f44f9(0xc9))}),_0x105a97['on'](_0x4f44f9(0xc1),()=>{const _0x2a2ac9=_0x4f44f9;this[_0x2a2ac9(0x10e)](_0x2a2ac9(0x106));}),_0x105a97;}[_0x11bf3c(0xc3)](){const _0x585049=_0x11bf3c,_0x477c0c=new _0x543533(this[_0x585049(0xc4)]),_0x30f397=new _0x543533(this[_0x585049(0xc4)]);return _0x30f397[_0x585049(0xd8)]({'tag':_0x585049(0x103),'attributes':{'class':['ck',_0x585049(0xe1)]},'children':[{'text':this[_0x585049(0xe7)]['to'](_0x585049(0xd4))}]}),_0x477c0c[_0x585049(0xd8)]({'tag':_0x585049(0xd9),'attributes':{'class':['ck',_0x585049(0x104),_0x585049(0xeb),this[_0x585049(0xe7)]['if'](_0x585049(0xcd),_0x585049(0x10d),_0x14f9e9=>!_0x14f9e9)]},'children':[_0x30f397]}),_0x477c0c;}[_0x11bf3c(0xea)](){const _0x443407=_0x11bf3c;this[_0x443407(0xe6)](),this[_0x443407(0x10f)]&&this[_0x443407(0x10f)][_0x443407(0xbf)]();}[_0x11bf3c(0xff)](){const _0x1032d1=_0x11bf3c;this[_0x1032d1(0x10f)]&&this[_0x1032d1(0x10f)][_0x1032d1(0x102)]();}[_0x11bf3c(0xe6)](){const _0x3f5f14=_0x11bf3c,_0x29d04e=this[_0x3f5f14(0x101)]();_0x29d04e&&!this[_0x3f5f14(0x10f)]&&(this[_0x3f5f14(0x10f)]=new _0x622d4d(_0x29d04e));}[_0x11bf3c(0x101)](){const _0x1b8395=_0x11bf3c;return this[_0x1b8395(0xfb)]instanceof _0x16f741&&this[_0x1b8395(0xfb)][_0x1b8395(0xca)][_0x1b8395(0xdd)]?this[_0x1b8395(0xfb)][_0x1b8395(0xca)][_0x1b8395(0xdd)]:null;}}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0xdf1d(){var _0x1ee11f=['context','7705446vqyzaU','sendMessage','requires','1309735HuazuK','isPremiumPlugin','2133858RDXmEl','7204BxVhNO','ai.chat.context','removeSelectionFromChatContext','8228066cXykYD','addSelectionToChatContext','3095bmXpHX','plugins','startConversation','37069264BDlWMw','get','focusPromptInput','pluginName','ai.chat.models','isOfficialPlugin','define','AIChat','1917218qThiIM','config'];_0xdf1d=function(){return _0x1ee11f;};return _0xdf1d();}var _0x36ded5=_0x22e2;(function(_0x1a39e0,_0x129701){var _0xb10c22=_0x22e2,_0x4e1993=_0x1a39e0();while(!![]){try{var _0x4b4638=parseInt(_0xb10c22(0x10b))/0x1+-parseInt(_0xb10c22(0x105))/0x2+-parseInt(_0xb10c22(0xf4))/0x3+-parseInt(_0xb10c22(0xf5))/0x4*(parseInt(_0xb10c22(0xfa))/0x5)+-parseInt(_0xb10c22(0x108))/0x6+-parseInt(_0xb10c22(0xf8))/0x7+parseInt(_0xb10c22(0xfd))/0x8;if(_0x4b4638===_0x129701)break;else _0x4e1993['push'](_0x4e1993['shift']());}catch(_0x2fd775){_0x4e1993['push'](_0x4e1993['shift']());}}}(_0xdf1d,0xaaa78));import{ContextPlugin as _0x31916c}from'ckeditor5/src/core.js';function _0x22e2(_0x3882e3,_0x213e42){var _0xdf1dd8=_0xdf1d();return _0x22e2=function(_0x22e205,_0x153dd4){_0x22e205=_0x22e205-0xf4;var _0x159c42=_0xdf1dd8[_0x22e205];return _0x159c42;},_0x22e2(_0x3882e3,_0x213e42);}import{AIChatController as _0x2a0adc}from'./aichatcontroller.js';import{AIEditing as _0x1238ff}from'../aicore/aiediting.js';import{AIChatUI as _0x1e8caa}from'./aichatui.js';import{AIChatHistory as _0x52a79e}from'../aichathistory/aichathistory.js';export class AIChat extends _0x31916c{static get[_0x36ded5(0x10a)](){return[_0x2a0adc,_0x1238ff,_0x1e8caa,_0x52a79e];}static get[_0x36ded5(0x100)](){var _0x513e20=_0x36ded5;return _0x513e20(0x104);}static get[_0x36ded5(0x102)](){return!0x0;}static get[_0x36ded5(0x10c)](){return!0x0;}constructor(_0x47d503){var _0x400891=_0x36ded5;super(_0x47d503),this[_0x400891(0x107)][_0x400891(0x106)][_0x400891(0x103)](_0x400891(0xf6),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x400891(0x107)][_0x400891(0x106)][_0x400891(0x103)](_0x400891(0x101),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x36ded5(0xf9)](){var _0x59f1b5=_0x36ded5;await this[_0x59f1b5(0x107)][_0x59f1b5(0xfb)][_0x59f1b5(0xfe)](_0x2a0adc)[_0x59f1b5(0xf9)]();}async[_0x36ded5(0xfc)](){var _0x488d48=_0x36ded5;await this[_0x488d48(0x107)][_0x488d48(0xfb)][_0x488d48(0xfe)](_0x2a0adc)[_0x488d48(0xfc)]();}async[_0x36ded5(0x109)]({message:_0x382664,quickActionData:_0x331724}){var _0x26b362=_0x36ded5;await this[_0x26b362(0x107)][_0x26b362(0xfb)][_0x26b362(0xfe)](_0x2a0adc)[_0x26b362(0x109)]({'message':_0x382664,'quickActionData':_0x331724});}[_0x36ded5(0xf7)](){var _0x18aa44=_0x36ded5;this[_0x18aa44(0x107)][_0x18aa44(0xfb)][_0x18aa44(0xfe)](_0x2a0adc)[_0x18aa44(0xf7)]();}[_0x36ded5(0xff)](){var _0x420867=_0x36ded5;this[_0x420867(0x107)][_0x420867(0xfb)][_0x420867(0xfe)](_0x2a0adc)[_0x420867(0xff)]();}}
|