@ckeditor/ckeditor5-ai 47.4.0-alpha.6 → 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
|
-
const
|
|
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 _0x52dc59=_0x5e0d;(function(_0x5b5e4c,_0x577495){const _0x44c00e=_0x5e0d,_0x298a74=_0x5b5e4c();while(!![]){try{const _0x17c6e5=-parseInt(_0x44c00e(0xfe))/0x1*(parseInt(_0x44c00e(0xf4))/0x2)+-parseInt(_0x44c00e(0x149))/0x3+parseInt(_0x44c00e(0x108))/0x4+parseInt(_0x44c00e(0x10c))/0x5+parseInt(_0x44c00e(0x134))/0x6*(-parseInt(_0x44c00e(0x110))/0x7)+parseInt(_0x44c00e(0xe7))/0x8*(parseInt(_0x44c00e(0x13d))/0x9)+-parseInt(_0x44c00e(0x115))/0xa*(-parseInt(_0x44c00e(0x13c))/0xb);if(_0x17c6e5===_0x577495)break;else _0x298a74['push'](_0x298a74['shift']());}catch(_0x5359cf){_0x298a74['push'](_0x298a74['shift']());}}}(_0x4ca4,0x73222));import{ContextPlugin as _0x4d1f57}from'ckeditor5/src/core.js';import{AIConnector as _0x3d7b9f}from'../aicore/aiconnector.js';import{AIEditing as _0x5cb6eb}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x41e090,AIBalloonView as _0xb449f7}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';function _0x5e0d(_0x235493,_0x45fc5a){const _0x4ca433=_0x4ca4();return _0x5e0d=function(_0x5e0d31,_0x5494ee){_0x5e0d31=_0x5e0d31-0xe4;let _0x445e8e=_0x4ca433[_0x5e0d31];return _0x445e8e;},_0x5e0d(_0x235493,_0x45fc5a);}import{getAllMarkersDomElementsSorted as _0x595171}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x2eae97,Rect as _0x5537d5,scrollViewportToShowTarget as _0x45ec1e}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x20b22e}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x45b66f}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x3d8b86}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x41e090,_0x52dc59(0x132),_0x52dc59(0x10b)];function _0x4ca4(){const _0x214baa=['showFakeVisualSelection','getChangedMarkers','balloonView','round','off','context','ai-balloon','506nAxhnr','27dbLLOx','value','_setupVisualSelection','view','config','Dialog','_showDialog','show','stopAutoScroll','AIBalloon','locale','render','2441058zlEXkS','requires','fire','markers','AI_ACTIONS_SELECTION_REMOVED_ERROR','getBoundingRect','start','\x20ai-balloon-rotator','bind','iconView','get','isTrackChangesOn','28504KkwmFu','showRotator','model','length','document','rootName','_isUpdatingMarkers','isOpen','once','isPremiumPlugin','_config','root','mainView','8ukkmlU','showBlockingError','isEqual','filter','aiBalloon','getMarkersGroup','max','setupRotator','getVisible','_pendingRenderCallback','168982UWuEys','updateContent','ai-selection:','title','bottom','startsWith','content','trackChanges','ranges','commands','1028640jCmxcG','hide','editing','selectionRemoved','3471255BoYxqe','open','_setupMarkerRemovalListener','end','3097388Fpbxpp','ai.availableReplyActions','window','delegate','$graveyard','409580rtCtab','plugins','height','headerView','ai-selection','updatePosition','label','stopListening','top','change','left','ai-balloon-','_getSelectionElements','width','_updateBalloon','_calculateDialogPosition','listenTo','differ','getIntersection','icon','pluginName','index','startAutoScroll','ai-balloon-selection','close','_calculateOptimalTopPosition','isOfficialPlugin','AIEditing','hideFakeVisualSelection','dialogClosed','_cleanupMarkerRemovalListener','12TxSbpE'];_0x4ca4=function(){return _0x214baa;};return _0x4ca4();}const jt=0xa;export class AIBalloon extends _0x4d1f57{static get[_0x52dc59(0x14a)](){return[_0x3d7b9f,_0x5cb6eb];}static get[_0x52dc59(0x129)](){const _0x23f60c=_0x52dc59;return _0x23f60c(0x146);}static get[_0x52dc59(0x12f)](){return!0x0;}static get[_0x52dc59(0xf0)](){return!0x0;}[_0x52dc59(0xee)]=!0x1;[_0x52dc59(0xf1)];[_0x52dc59(0xed)]=!0x1;[_0x52dc59(0xfd)]=null;[_0x52dc59(0x10d)](_0x315012){const _0xb4b56d=_0x52dc59,_0x490810=_0x20b22e(this[_0xb4b56d(0x13a)]);if(this[_0xb4b56d(0xf1)]=_0x315012,this[_0xb4b56d(0xee)])return void this[_0xb4b56d(0x123)](_0x315012);const _0x456f09=this[_0xb4b56d(0x13a)][_0xb4b56d(0x141)][_0xb4b56d(0xe5)](_0xb4b56d(0x111))||[..._0x45b66f],_0x289f0a=_0x490810?.[_0xb4b56d(0x107)][_0xb4b56d(0xe5)](_0xb4b56d(0x105)),_0x25e4ff=_0x289f0a?.[_0xb4b56d(0x13e)];this[_0xb4b56d(0x137)]=new _0xb449f7(_0x490810[_0xb4b56d(0x147)],_0x315012,_0x456f09,!!_0x25e4ff),this[_0xb4b56d(0x137)][_0xb4b56d(0x113)](..._0x41e090)['to'](this),_0x289f0a&&this[_0xb4b56d(0x137)][_0xb4b56d(0x151)](_0xb4b56d(0xe6))['to'](_0x289f0a,_0xb4b56d(0x13e)),this[_0xb4b56d(0x143)](_0x315012);}[_0x52dc59(0x12d)](){const _0x4ef15d=_0x52dc59;_0x20b22e(this[_0x4ef15d(0x13a)])[_0x4ef15d(0x116)][_0x4ef15d(0xe5)](_0x4ef15d(0x142))[_0x4ef15d(0x109)]();}[_0x52dc59(0x12b)](){const _0x2ee20e=_0x52dc59;this[_0x2ee20e(0x137)]&&this[_0x2ee20e(0x137)][_0x2ee20e(0x12b)]();}[_0x52dc59(0x145)](){const _0x4e711a=_0x52dc59;this[_0x4e711a(0x137)]&&this[_0x4e711a(0x137)][_0x4e711a(0x145)]();}[_0x52dc59(0x123)](_0x4cbd93){const _0x50a0ee=_0x52dc59,_0x174b6c=_0x20b22e(this[_0x50a0ee(0x13a)]),_0xc571db=_0x174b6c[_0x50a0ee(0x116)][_0x50a0ee(0xe5)](_0x50a0ee(0x142));this[_0x50a0ee(0xfd)]&&(_0x174b6c[_0x50a0ee(0x10a)][_0x50a0ee(0x140)][_0x50a0ee(0x139)](_0x50a0ee(0x148),this[_0x50a0ee(0xfd)]),this[_0x50a0ee(0xfd)]=null),this[_0x50a0ee(0xed)]=!0x0,_0xc571db[_0x50a0ee(0x140)]?.[_0x50a0ee(0x118)]&&(_0xc571db[_0x50a0ee(0x140)][_0x50a0ee(0x118)][_0x50a0ee(0x11b)]=_0x4cbd93[_0x50a0ee(0x101)],_0xc571db[_0x50a0ee(0x140)][_0x50a0ee(0x118)][_0x50a0ee(0xe4)]&&_0x4cbd93[_0x50a0ee(0x128)]&&(_0xc571db[_0x50a0ee(0x140)][_0x50a0ee(0x118)][_0x50a0ee(0xe4)][_0x50a0ee(0x104)]=_0x4cbd93[_0x50a0ee(0x128)])),this[_0x50a0ee(0x137)][_0x50a0ee(0xff)](_0x4cbd93[_0x50a0ee(0xf3)]),this[_0x50a0ee(0x13f)](_0x4cbd93[_0x50a0ee(0x106)],_0x4cbd93[_0x50a0ee(0x12a)]),this[_0x50a0ee(0xfd)]=()=>{const _0x684fd6=_0x50a0ee;this[_0x684fd6(0xed)]=!0x1,this[_0x684fd6(0xfd)]=null,_0xc571db[_0x684fd6(0x140)]&&_0xc571db[_0x684fd6(0x140)][_0x684fd6(0x11a)]();},_0x174b6c[_0x50a0ee(0x10a)][_0x50a0ee(0x140)][_0x50a0ee(0xef)](_0x50a0ee(0x148),this[_0x50a0ee(0xfd)]);}[_0x52dc59(0x13f)](_0x1d16ea,_0x3ab4a9){const _0x3db628=_0x52dc59;this[_0x3db628(0x13a)][_0x3db628(0x116)][_0x3db628(0xe5)](_0x5cb6eb)[_0x3db628(0x135)](_0x1d16ea,_0x3db628(0x120)+_0x3ab4a9,!0x0,!0x0);}[_0x52dc59(0x143)](_0x547bbc){const _0x39bdcc=_0x52dc59,_0x4faf54=_0x20b22e(this[_0x39bdcc(0x13a)]);this[_0x39bdcc(0x13f)](_0x547bbc[_0x39bdcc(0x106)],_0x547bbc[_0x39bdcc(0x12a)]);const _0x5d33c7=this[_0x39bdcc(0x121)]();_0x5d33c7&&_0x5d33c7[0x0]&&_0x45ec1e({'target':_0x5d33c7[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x4faf54[_0x39bdcc(0x116)][_0x39bdcc(0xe5)](_0x39bdcc(0x142))[_0x39bdcc(0x144)]({'title':_0x547bbc[_0x39bdcc(0x101)],'icon':_0x547bbc[_0x39bdcc(0x128)],'hasCloseButton':!0x0,'id':_0x39bdcc(0xf8),'position':this[_0x39bdcc(0x124)][_0x39bdcc(0x151)](this),'className':_0x39bdcc(0x13b)+(_0x547bbc[_0x39bdcc(0xe8)]?_0x39bdcc(0x150):''),'content':this[_0x39bdcc(0x137)],'onShow':_0x14aba8=>{const _0x16da0f=_0x39bdcc;_0x547bbc[_0x16da0f(0xe8)]&&this[_0x16da0f(0x137)][_0x16da0f(0xfb)](_0x14aba8),this[_0x16da0f(0x10e)](),this[_0x16da0f(0xee)]=!0x0;},'onHide':()=>{const _0x8567a6=_0x39bdcc;this[_0x8567a6(0x13a)][_0x8567a6(0x116)][_0x8567a6(0xe5)](_0x8567a6(0x130))[_0x8567a6(0x131)](_0x8567a6(0x120)+this[_0x8567a6(0xf1)][_0x8567a6(0x12a)]),this[_0x8567a6(0x133)](),this[_0x8567a6(0x14b)](_0x8567a6(0x132)),this[_0x8567a6(0xee)]=!0x1;}});}[_0x52dc59(0x124)](_0x5426d3,_0x36bb3f){const _0x4d49fb=_0x52dc59;if(!_0x36bb3f)return null;const _0xff95bc=this[_0x4d49fb(0x121)]();if(!_0xff95bc||0x0===_0xff95bc[_0x4d49fb(0xea)])return{'left':Math[_0x4d49fb(0x138)](_0x36bb3f[_0x4d49fb(0x11f)]+_0x36bb3f[_0x4d49fb(0x122)]/0x2-_0x5426d3[_0x4d49fb(0x122)]/0x2),'top':Math[_0x4d49fb(0x138)](_0x36bb3f[_0x4d49fb(0x11d)]+_0x36bb3f[_0x4d49fb(0x117)]/0x2-_0x5426d3[_0x4d49fb(0x117)]/0x2)};const _0x15d20b=Math[_0x4d49fb(0x138)](_0x36bb3f[_0x4d49fb(0x11f)]+_0x36bb3f[_0x4d49fb(0x122)]/0x2-_0x5426d3[_0x4d49fb(0x122)]/0x2),_0x1cedea=new _0x5537d5(_0xff95bc[0x0]),_0x5487e0=new _0x5537d5(_0xff95bc[_0xff95bc[_0x4d49fb(0xea)]-0x1]),_0x1e9219=_0x5426d3[_0x4d49fb(0x117)],_0x39daee=this[_0x4d49fb(0xf1)][_0x4d49fb(0xe8)]?0x8:0x0;return{'left':_0x15d20b,'top':this[_0x4d49fb(0x12e)](_0x1cedea,_0x5487e0,_0x1e9219,_0x39daee,_0x36bb3f)};}[_0x52dc59(0x12e)](_0x3e1fb8,_0x36703f,_0x2f7c85,_0xdf07d2=0x0,_0x4ac8b3){const _0x480fb9=_0x52dc59,_0x39096b=_0x2f7c85+_0xdf07d2,_0x151f0e=new _0x5537d5(_0x2eae97[_0x480fb9(0x112)]),_0x160ffd=[_0x3e1fb8[_0x480fb9(0xfc)](),_0x36703f[_0x480fb9(0xfc)]()][_0x480fb9(0xf7)](_0x463a52=>_0x463a52),_0x1f2f99=_0x5537d5[_0x480fb9(0x14e)](_0x160ffd);if(!_0x1f2f99)return Math[_0x480fb9(0x138)](_0x4ac8b3[_0x480fb9(0x11d)]+_0x4ac8b3[_0x480fb9(0x117)]/0x2);const _0x17f64f=_0x151f0e[_0x480fb9(0x127)](_0x1f2f99);if(!_0x17f64f)return Math[_0x480fb9(0x138)](_0x4ac8b3[_0x480fb9(0x11d)]+_0x4ac8b3[_0x480fb9(0x117)]/0x2);const _0x701c1d=_0x4ac8b3[_0x480fb9(0xfc)](),_0x884bb3=_0x701c1d&&_0x1f2f99[_0x480fb9(0x117)]>_0x701c1d[_0x480fb9(0x117)],_0x4a3f63=_0x17f64f[_0x480fb9(0x11d)],_0x51de5d=_0x17f64f[_0x480fb9(0x102)];if(_0x884bb3){const _0x50fec6=(_0x701c1d||_0x151f0e)[_0x480fb9(0x117)]/0x2-_0x39096b/0x2,_0x4c9f12=_0x4a3f63-jt-_0x4ac8b3[_0x480fb9(0x11d)],_0x483de1=_0x4ac8b3[_0x480fb9(0x102)]-_0x51de5d-jt;return _0x4c9f12>=_0x39096b?Math[_0x480fb9(0xfa)](jt,_0x4a3f63-_0x39096b-jt):_0x483de1>=_0x39096b?_0x51de5d+jt:Math[_0x480fb9(0xfa)](jt,_0x50fec6);}const _0x4ac368=_0x4a3f63-_0x39096b,_0x435b63=_0x4ac8b3[_0x480fb9(0x102)]-_0x51de5d-jt,_0x20eb2c=_0x4a3f63-jt-_0x4ac8b3[_0x480fb9(0x11d)];let _0x166c08;if(_0x435b63>=_0x39096b)_0x166c08=_0x51de5d+jt;else{if(_0x20eb2c>=_0x39096b)_0x166c08=_0x4ac368-jt;else _0x166c08=_0x4a3f63+_0x1f2f99[_0x480fb9(0x117)]/0x2-_0x39096b/0x2;}return _0x166c08;}[_0x52dc59(0x10e)](){const _0x1e5a27=_0x52dc59,_0x4cd2f8=_0x20b22e(this[_0x1e5a27(0x13a)]);this[_0x1e5a27(0x125)](_0x4cd2f8[_0x1e5a27(0xe9)][_0x1e5a27(0xeb)],_0x1e5a27(0x11e),()=>{const _0x2306f4=_0x1e5a27;if(this[_0x2306f4(0xed)])return;for(const {name:_0x209898,data:{newRange:_0x1deafa}}of _0x4cd2f8[_0x2306f4(0xe9)][_0x2306f4(0xeb)][_0x2306f4(0x126)][_0x2306f4(0x136)]())if(_0x209898[_0x2306f4(0x103)](_0x2306f4(0x100))&&(_0x1deafa&&(_0x1deafa[_0x2306f4(0x14f)][_0x2306f4(0xf6)](_0x1deafa[_0x2306f4(0x10f)])||_0x2306f4(0x114)==_0x1deafa[_0x2306f4(0xf2)][_0x2306f4(0xec)])||null==_0x1deafa)){const _0x297f22=_0x3d8b86(this[_0x2306f4(0x13a)][_0x2306f4(0x147)],_0x2306f4(0x14d));this[_0x2306f4(0x137)][_0x2306f4(0xf5)](_0x297f22),this[_0x2306f4(0x14b)](_0x2306f4(0x10b));}});}[_0x52dc59(0x133)](){const _0x513ef6=_0x52dc59,_0x37c277=_0x20b22e(this[_0x513ef6(0x13a)]);this[_0x513ef6(0x11c)](_0x37c277[_0x513ef6(0xe9)][_0x513ef6(0xeb)]);}[_0x52dc59(0x121)](){const _0x375a8b=_0x52dc59,_0x5a01b3=_0x20b22e(this[_0x375a8b(0x13a)]);return _0x595171(_0x5a01b3[_0x375a8b(0x10a)],[..._0x5a01b3[_0x375a8b(0xe9)][_0x375a8b(0x14c)][_0x375a8b(0xf9)](_0x375a8b(0x119)),..._0x5a01b3[_0x375a8b(0xe9)][_0x375a8b(0x14c)][_0x375a8b(0xf9)](_0x375a8b(0x12c))]);}}
|
|
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
|
-
function _0x1c4c(){const _0x5424eb=['locale','8183796YlWeBR','_mainView','_createPreviousButtonView','focus','_errorView','span','change:isTrackChangesOn','12iKfXRS','1660281BgkGnX','view','scrollManager','_addDisclaimerView','_dialogContent','ck-hidden','showBlockingError','AI_BALLOON_NEXT_TOOLTIP','bindTemplate','241938DxmmgP','1450YCFYMJ','clear','ai-balloon-error','showError','disclaimerView','showNext','bodyView','7932509wgViEF','fire','headerView','7MPoHYq','applySuggestion','render','isLoading','element','_addContentView','isErrorVisible','showApplyButton','children','updateContent','div','set','AI_BALLOON_PREVIOUS_TOOLTIP','insertSuggestion','stopAutoScroll','ck-ai-suggestion__error-text','setTemplate','_addToolbar','applyButton','_createErrorView','toolbar','clearLoading','start','stop','suggestButton','8sPqXfi','shift\x20+\x20tab','207joJnQm','mainView','_getScrollableElement','3mYCGNG','_createNextButtonView','focusLast','_availableActions','_initializeScrollManager','focusTracker','execute','130768ckdXUy','listenTo','errorMessage','keystrokes','createCollection','destroy','setLoading','isEnabled','showSuggestButton','2970600tejvMM','bind','add','showPrevious','isTrackChangesOn','ck-ai-suggestion__error','includes','showRecoverableError','startAutoScroll','56067QtrzVx','_focusables','hideError','tab','setupRotator','addMany','getIndex','ai-balloon-content','focusFirst','remove','focusCycler'];_0x1c4c=function(){return _0x5424eb;};return _0x1c4c();}const _0x3085f1=_0xfc4f;(function(_0x1e89c6,_0x592d14){const _0x5569fb=_0xfc4f,_0x4576a0=_0x1e89c6();while(!![]){try{const _0x482140=parseInt(_0x5569fb(0x1d7))/0x1*(parseInt(_0x5569fb(0x1ae))/0x2)+-parseInt(_0x5569fb(0x1a5))/0x3*(parseInt(_0x5569fb(0x1d2))/0x4)+parseInt(_0x5569fb(0x1e7))/0x5+-parseInt(_0x5569fb(0x1fc))/0x6*(-parseInt(_0x5569fb(0x1b9))/0x7)+parseInt(_0x5569fb(0x1de))/0x8*(-parseInt(_0x5569fb(0x1d4))/0x9)+parseInt(_0x5569fb(0x1af))/0xa*(-parseInt(_0x5569fb(0x1f0))/0xb)+parseInt(_0x5569fb(0x1a4))/0xc*(parseInt(_0x5569fb(0x1b6))/0xd);if(_0x482140===_0x592d14)break;else _0x4576a0['push'](_0x4576a0['shift']());}catch(_0x5687b3){_0x4576a0['push'](_0x4576a0['shift']());}}}(_0x1c4c,0xad2bd));import{ButtonView as _0x566cbe,View as _0x36941e,ViewCollection as _0xbda8b8,FocusCycler as _0x5385d2}from'ckeditor5/src/ui.js';import{FocusTracker as _0x5ccd80,KeystrokeHandler as _0x183f3b}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x506aa2,IconPreviousArrow as _0xde98bd}from'@ckeditor/ckeditor5-icons';function _0xfc4f(_0x1d891b,_0x5ceda4){const _0x1c4c39=_0x1c4c();return _0xfc4f=function(_0xfc4f45,_0x19c05d){_0xfc4f45=_0xfc4f45-0x19e;let _0x25a688=_0x1c4c39[_0xfc4f45];return _0x25a688;},_0xfc4f(_0x1d891b,_0x5ceda4);}import{AIBalloonToolbarView as _0x22c4f3}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x13603f}from'./aiballoondisclaimerview.js';import{getTranslation as _0x31937e}from'../../aicore/utils/common-translations.js';import{ScrollManager as _0x451e6a}from'../../aicore/utils/scrollmanager.js';import{AISuggestionContainerView as _0x1a191e}from'../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x3085f1(0x1ba),_0x3085f1(0x1c6),_0x3085f1(0x1b4),_0x3085f1(0x1ea)];export class AIBalloonView extends _0x36941e{[_0x3085f1(0x1dc)];[_0x3085f1(0x1e1)];[_0x3085f1(0x1fa)];[_0x3085f1(0x1da)];[_0x3085f1(0x1f1)];[_0x3085f1(0x1a1)];[_0x3085f1(0x1a7)];constructor(_0x57979e,_0x57d856,_0x39e862,_0x27e374){const _0x55eeab=_0x3085f1;super(_0x57979e),this[_0x55eeab(0x1da)]=_0x39e862,this[_0x55eeab(0x1c4)](_0x55eeab(0x1bc),!0x1),this[_0x55eeab(0x1c4)](_0x55eeab(0x1eb),_0x27e374),this[_0x55eeab(0x1c4)](_0x55eeab(0x1bf),!0x1),this[_0x55eeab(0x1c4)](_0x55eeab(0x1e0),''),this[_0x55eeab(0x1dc)]=new _0x5ccd80(),this[_0x55eeab(0x1e1)]=new _0x183f3b(),this[_0x55eeab(0x1f1)]=this[_0x55eeab(0x1e2)](),this[_0x55eeab(0x1fa)]=new _0x5385d2({'focusables':this[_0x55eeab(0x1f1)],'focusTracker':this[_0x55eeab(0x1dc)],'keystrokeHandler':this[_0x55eeab(0x1e1)],'actions':{'focusPrevious':_0x55eeab(0x1d3),'focusNext':_0x55eeab(0x1f3)}}),this[_0x55eeab(0x1a9)]=new _0xbda8b8(),this[_0x55eeab(0x1be)](_0x57d856[_0x55eeab(0x1d5)]),this[_0x55eeab(0x1a8)](),this[_0x55eeab(0x1ca)](_0x57d856[_0x55eeab(0x1c0)],_0x57d856[_0x55eeab(0x1e6)]),this[_0x55eeab(0x1cd)][_0x55eeab(0x1e8)](_0x55eeab(0x1bc))['to'](this),this[_0x55eeab(0x1f1)][_0x55eeab(0x1b0)](),this[_0x55eeab(0x1f1)][_0x55eeab(0x1f5)]([this[_0x55eeab(0x1cd)]]),this[_0x55eeab(0x1c9)]({'tag':_0x55eeab(0x1c3),'attributes':{'class':_0x55eeab(0x1f7)},'children':this[_0x55eeab(0x1a9)]}),this['on'](_0x55eeab(0x1a3),()=>{const _0x3439ec=_0x55eeab;this[_0x3439ec(0x1a9)][_0x3439ec(0x1f9)](this[_0x3439ec(0x1cd)]),this[_0x3439ec(0x1ca)](_0x57d856[_0x3439ec(0x1c0)],_0x57d856[_0x3439ec(0x1e6)]);});}[_0x3085f1(0x1bb)](){const _0x53bc3d=_0x3085f1;super[_0x53bc3d(0x1bb)]();for(const _0x21aa83 of this[_0x53bc3d(0x1f1)])this[_0x53bc3d(0x1dc)][_0x53bc3d(0x1e9)](_0x21aa83[_0x53bc3d(0x1bd)]);this[_0x53bc3d(0x1e1)][_0x53bc3d(0x1df)](this[_0x53bc3d(0x1bd)]),this[_0x53bc3d(0x1db)]();}[_0x3085f1(0x1e3)](){const _0x4afe85=_0x3085f1;super[_0x4afe85(0x1e3)](),this[_0x4afe85(0x1a7)]&&this[_0x4afe85(0x1a7)][_0x4afe85(0x1e3)]();}[_0x3085f1(0x1a0)](_0xde4c6d){const _0x2126bc=_0x3085f1;-0x1===_0xde4c6d?this[_0x2126bc(0x1fa)][_0x2126bc(0x1d9)]():this[_0x2126bc(0x1fa)][_0x2126bc(0x1f8)]();}[_0x3085f1(0x1e4)](){const _0xb3df73=_0x3085f1;this[_0xb3df73(0x1bc)]=!0x0;}[_0x3085f1(0x1ce)](){const _0x11fa91=_0x3085f1;this[_0x11fa91(0x1bc)]=!0x1;}[_0x3085f1(0x1b2)](_0x510294){const _0x26f3aa=_0x3085f1;this[_0x26f3aa(0x1a1)]||(this[_0x26f3aa(0x1a1)]=this[_0x26f3aa(0x1cc)](),this[_0x26f3aa(0x1a9)][_0x26f3aa(0x1f5)]([this[_0x26f3aa(0x1a1)]],0x0)),this[_0x26f3aa(0x1e0)]=_0x510294,this[_0x26f3aa(0x1bf)]=!0x0;}[_0x3085f1(0x1f2)](){const _0x4c0bd0=_0x3085f1;this[_0x4c0bd0(0x1bf)]=!0x1;}[_0x3085f1(0x1ee)](_0x3dac27){const _0x26a2f7=_0x3085f1;this[_0x26a2f7(0x1b2)](_0x3dac27);}[_0x3085f1(0x1ab)](_0x1f3e73){const _0x14ade3=_0x3085f1;this[_0x14ade3(0x1b2)](_0x1f3e73),this[_0x14ade3(0x1cd)]&&(this[_0x14ade3(0x1cd)][_0x14ade3(0x1cb)]&&(this[_0x14ade3(0x1cd)][_0x14ade3(0x1cb)][_0x14ade3(0x1e5)]=!0x1),this[_0x14ade3(0x1cd)][_0x14ade3(0x1d1)]&&(this[_0x14ade3(0x1cd)][_0x14ade3(0x1d1)][_0x14ade3(0x1e5)]=!0x1));}[_0x3085f1(0x1f4)](_0x4bc8a5){const _0xb466e1=_0x3085f1,_0x2287d4=this[_0xb466e1(0x1d8)](),_0x3dd5d2=this[_0xb466e1(0x19f)]();_0x4bc8a5[_0xb466e1(0x1a6)][_0xb466e1(0x1b8)][_0xb466e1(0x1c1)][_0xb466e1(0x1e9)](_0x2287d4,0x2),_0x4bc8a5[_0xb466e1(0x1a6)][_0xb466e1(0x1b8)][_0xb466e1(0x1c1)][_0xb466e1(0x1e9)](_0x3dd5d2,0x0),this[_0xb466e1(0x1f1)][_0xb466e1(0x1f5)]([_0x2287d4,_0x3dd5d2]),this[_0xb466e1(0x1dc)][_0xb466e1(0x1e9)](_0x2287d4[_0xb466e1(0x1bd)]),this[_0xb466e1(0x1dc)][_0xb466e1(0x1e9)](_0x3dd5d2[_0xb466e1(0x1bd)]);}[_0x3085f1(0x1be)](_0x425575){const _0x6e1395=_0x3085f1;this[_0x6e1395(0x19e)]=_0x425575,this[_0x6e1395(0x1a9)][_0x6e1395(0x1e9)](this[_0x6e1395(0x19e)]);}[_0x3085f1(0x1c2)](_0x1bdcd8){const _0xf903d5=_0x3085f1,_0x50bcac=this[_0xf903d5(0x1a9)][_0xf903d5(0x1f6)](this[_0xf903d5(0x19e)]);this[_0xf903d5(0x1a9)][_0xf903d5(0x1f9)](this[_0xf903d5(0x19e)]),this[_0xf903d5(0x19e)]=_0x1bdcd8,this[_0xf903d5(0x1a9)][_0xf903d5(0x1e9)](this[_0xf903d5(0x19e)],_0x50bcac),this[_0xf903d5(0x1f2)](),this[_0xf903d5(0x1a7)]&&this[_0xf903d5(0x1a7)][_0xf903d5(0x1e3)](),this[_0xf903d5(0x1db)]();}[_0x3085f1(0x1a8)](){const _0x1259ad=_0x3085f1;this[_0x1259ad(0x1b3)]=new _0x13603f(this[_0x1259ad(0x1fb)]),this[_0x1259ad(0x1a9)][_0x1259ad(0x1e9)](this[_0x1259ad(0x1b3)]);}[_0x3085f1(0x1ca)](_0x1dc148=!0x0,_0x366c88=!0x0){const _0xc8d9df=_0x3085f1;_0x1dc148=_0x1dc148&&!this[_0xc8d9df(0x1eb)]&&this[_0xc8d9df(0x1da)][_0xc8d9df(0x1ed)](_0xc8d9df(0x1ba)),_0x366c88=_0x366c88&&this[_0xc8d9df(0x1da)][_0xc8d9df(0x1ed)](_0xc8d9df(0x1c6)),this[_0xc8d9df(0x1cd)]=new _0x22c4f3(this[_0xc8d9df(0x1fb)],_0x1dc148,_0x366c88),this[_0xc8d9df(0x1cd)][_0xc8d9df(0x1cb)]?.['on'](_0xc8d9df(0x1dd),()=>{const _0x4619c4=_0xc8d9df;this[_0x4619c4(0x1b7)](_0x4619c4(0x1ba));}),this[_0xc8d9df(0x1cd)][_0xc8d9df(0x1d1)]?.['on'](_0xc8d9df(0x1dd),()=>{const _0x3d12c9=_0xc8d9df;this[_0x3d12c9(0x1b7)](_0x3d12c9(0x1c6));}),this[_0xc8d9df(0x1a9)][_0xc8d9df(0x1e9)](this[_0xc8d9df(0x1cd)]);}[_0x3085f1(0x1d8)](){const _0x54206e=_0x3085f1,_0x3648df=new _0x566cbe(this[_0x54206e(0x1fb)]);return _0x3648df[_0x54206e(0x1c4)]({'icon':_0x506aa2,'tooltip':_0x31937e(this[_0x54206e(0x1fb)],_0x54206e(0x1ac))}),_0x3648df['on'](_0x54206e(0x1dd),()=>{const _0x2377e1=_0x54206e;this[_0x2377e1(0x1b7)](_0x2377e1(0x1b4));}),_0x3648df;}[_0x3085f1(0x19f)](){const _0x7d4943=_0x3085f1,_0x4f1fea=new _0x566cbe(this[_0x7d4943(0x1fb)]);return _0x4f1fea[_0x7d4943(0x1c4)]({'icon':_0xde98bd,'tooltip':_0x31937e(this[_0x7d4943(0x1fb)],_0x7d4943(0x1c5))}),_0x4f1fea['on'](_0x7d4943(0x1dd),()=>{const _0x1c3636=_0x7d4943;this[_0x1c3636(0x1b7)](_0x1c3636(0x1ea));}),_0x4f1fea;}[_0x3085f1(0x1cc)](){const _0x5636b0=_0x3085f1,_0x1c809f=new _0x36941e(this[_0x5636b0(0x1fb)]),_0x3cc060=new _0x36941e(this[_0x5636b0(0x1fb)]);return _0x3cc060[_0x5636b0(0x1c9)]({'tag':_0x5636b0(0x1a2),'attributes':{'class':['ck',_0x5636b0(0x1c8)]},'children':[{'text':this[_0x5636b0(0x1ad)]['to'](_0x5636b0(0x1e0))}]}),_0x1c809f[_0x5636b0(0x1c9)]({'tag':_0x5636b0(0x1c3),'attributes':{'class':['ck',_0x5636b0(0x1ec),_0x5636b0(0x1b1),this[_0x5636b0(0x1ad)]['if'](_0x5636b0(0x1bf),_0x5636b0(0x1aa),_0x218483=>!_0x218483)]},'children':[_0x3cc060]}),_0x1c809f;}[_0x3085f1(0x1ef)](){const _0x192af6=_0x3085f1;this[_0x192af6(0x1db)](),this[_0x192af6(0x1a7)]&&this[_0x192af6(0x1a7)][_0x192af6(0x1cf)]();}[_0x3085f1(0x1c7)](){const _0x27962=_0x3085f1;this[_0x27962(0x1a7)]&&this[_0x27962(0x1a7)][_0x27962(0x1d0)]();}[_0x3085f1(0x1db)](){const _0x485ab4=_0x3085f1,_0x1b3190=this[_0x485ab4(0x1d6)]();_0x1b3190&&!this[_0x485ab4(0x1a7)]&&(this[_0x485ab4(0x1a7)]=new _0x451e6a(_0x1b3190));}[_0x3085f1(0x1d6)](){const _0x597955=_0x3085f1;return this[_0x597955(0x19e)]instanceof _0x1a191e&&this[_0x597955(0x19e)][_0x597955(0x1b5)][_0x597955(0x1bd)]?this[_0x597955(0x19e)][_0x597955(0x1b5)][_0x597955(0x1bd)]:null;}}
|
|
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
|
-
var
|
|
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)]();}}
|