@ckeditor/ckeditor5-ai 47.7.2-alpha.0 → 47.7.2
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/awstextadapter.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- 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/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/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.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/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/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/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/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/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x464a8d=_0x54b8;(function(_0x2fb2f0,_0x4217d6){const _0x1729eb=_0x54b8,_0x4ecdcf=_0x2fb2f0();while(!![]){try{const _0x52332f=-parseInt(_0x1729eb(0x176))/0x1+-parseInt(_0x1729eb(0x15e))/0x2*(parseInt(_0x1729eb(0x13d))/0x3)+-parseInt(_0x1729eb(0x171))/0x4*(-parseInt(_0x1729eb(0x16f))/0x5)+-parseInt(_0x1729eb(0x152))/0x6+-parseInt(_0x1729eb(0x140))/0x7*(parseInt(_0x1729eb(0x162))/0x8)+parseInt(_0x1729eb(0x145))/0x9+parseInt(_0x1729eb(0x160))/0xa*(parseInt(_0x1729eb(0x134))/0xb);if(_0x52332f===_0x4217d6)break;else _0x4ecdcf['push'](_0x4ecdcf['shift']());}catch(_0x3dffae){_0x4ecdcf['push'](_0x4ecdcf['shift']());}}}(_0x526a,0xba04c));import{FocusTracker as _0x5c5923,KeystrokeHandler as _0x4214fb}from'ckeditor5/src/utils.js';function _0x54b8(_0x41ddc1,_0x39d068){const _0x526a28=_0x526a();return _0x54b8=function(_0x54b8ed,_0x1431a2){_0x54b8ed=_0x54b8ed-0x125;let _0x4c0c68=_0x526a28[_0x54b8ed];return _0x4c0c68;},_0x54b8(_0x41ddc1,_0x39d068);}import{View as _0xc7d4c2,FocusCycler as _0xa5c565,createLabeledTextarea as _0x1cc4e2}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x1ddedd,AIFormToolbarViewMainActionLabel as _0xd39199}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x504dc9}from'./aiformcontentarea.js';import{AIFormErrorView as _0x410000}from'./aiformerrorview.js';import{AIFormPromptView as _0x538ba3}from'./aiformpromptview.js';import{AIHistoryListView as _0xb50f97}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x280cde}from'./aihistorylistitemview.js';import{PromptHistory as _0x2bb517}from'./prompthistory.js';import{getTranslation as _0x523ab2}from'../../utils/common-translations.js';import{escape as _0x4d0a70}from'es-toolkit/compat';function _0x526a(){const _0x41f7a5=['focusTracker','44233OooglW','_createHistoryView','set','text','REPLACE','9946782BLlHVo','AI_ERROR_FAILED','bindTo','toolbar','isEnabled','shift\x20+\x20tab','items','delegate','focusLast','isError','Empty\x20history','queryView','insertButton','5923554coVCSn','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','clear','div','stopButton','replaceButton','listenTo','search','add','tryAgainEvent','prompt','fieldView','30XiowGX','keystrokes','21050710WEevEK','Ask\x20AI\x20to\x20improve\x20generated\x20text','424PNboeU','bindTemplate','ck-ai-form-content','locale','tab','isProcessing','_createPromptView','promptView','element','bind','submitPrompt','copyButtonView','value','333725mRFexL','fire','44oPiWXM','createCollection','_createToolbar','insertContentBelow','_promptHistory','1331676XSiBZl','ck-hidden','mainAction','chain','_focusables','Ask\x20AI\x20to\x20edit\x20or\x20generate','tryAgainButton','historyGroupView','replaceContent','label','focus','handleError','finishProcessing','startProcessing','execute','ck-ai-form','stopProcessing','clearHistory','reset','trim','11MbIADK','submit','isVisible','focusFirst','focusCycler','errorView','high','setTemplate','render','105738pJEGSF','contentArea'];_0x526a=function(){return _0x41f7a5;};return _0x526a();}export class AIFormView extends _0xc7d4c2{[_0x464a8d(0x13f)];[_0x464a8d(0x15f)];[_0x464a8d(0x13e)];[_0x464a8d(0x148)];[_0x464a8d(0x169)];[_0x464a8d(0x139)];[_0x464a8d(0x17a)];[_0x464a8d(0x138)];[_0x464a8d(0x175)];constructor(_0x5037c9,_0x49b3a5,_0x210c78=''){const _0xde7118=_0x464a8d;super(_0x5037c9),this[_0xde7118(0x142)](_0xde7118(0x149),!0x0),this[_0xde7118(0x142)](_0xde7118(0x167),!0x1),this[_0xde7118(0x142)](_0xde7118(0x15c),''),this[_0xde7118(0x142)](_0xde7118(0x16e),''),this[_0xde7118(0x142)](_0xde7118(0x14e),!0x1),this[_0xde7118(0x142)](_0xde7118(0x178),_0xd39199[_0xde7118(0x144)]),this[_0xde7118(0x175)]=new _0x2bb517(),this[_0xde7118(0x139)]=new _0x410000(_0x5037c9),this[_0xde7118(0x13e)]=new _0x504dc9(_0x5037c9,_0x210c78),this[_0xde7118(0x13e)][_0xde7118(0x16b)](_0xde7118(0x167))['to'](this),this[_0xde7118(0x13e)][_0xde7118(0x16b)](_0xde7118(0x16e))['to'](this),this[_0xde7118(0x148)]=this[_0xde7118(0x173)](),this[_0xde7118(0x148)][_0xde7118(0x16b)](_0xde7118(0x178))['to'](this),this[_0xde7118(0x169)]=this[_0xde7118(0x168)](),this[_0xde7118(0x13f)]=new _0x5c5923(),this[_0xde7118(0x15f)]=new _0x4214fb(),this[_0xde7118(0x17a)]=this[_0xde7118(0x172)]([this[_0xde7118(0x13e)],this[_0xde7118(0x13e)][_0xde7118(0x16d)],this[_0xde7118(0x148)],this[_0xde7118(0x169)]]),this[_0xde7118(0x138)]=new _0xa5c565({'focusables':this[_0xde7118(0x17a)],'focusTracker':this[_0xde7118(0x13f)],'keystrokeHandler':this[_0xde7118(0x15f)],'actions':{'focusPrevious':_0xde7118(0x14a),'focusNext':_0xde7118(0x166)}}),this[_0xde7118(0x138)][_0xde7118(0x179)](this[_0xde7118(0x169)][_0xde7118(0x138)]),this[_0xde7118(0x169)][_0xde7118(0x150)][_0xde7118(0x15d)][_0xde7118(0x16b)](_0xde7118(0x16e))['to'](this,_0xde7118(0x15c));const _0x4c4ba1=this[_0xde7118(0x163)];this[_0xde7118(0x13b)]({'tag':_0xde7118(0x155),'attributes':{'class':['ck',_0xde7118(0x12f),_0x49b3a5],'tabindex':'-1'},'children':[{'tag':_0xde7118(0x155),'attributes':{'class':['ck',_0xde7118(0x164)]},'children':[{'tag':_0xde7118(0x155),'attributes':{'class':[_0x4c4ba1['if'](_0xde7118(0x14e),_0xde7118(0x177),_0x15ebae=>!_0x15ebae)]},'children':[this[_0xde7118(0x139)]]},this[_0xde7118(0x13e)],this[_0xde7118(0x148)],this[_0xde7118(0x169)]]}]});}[_0x464a8d(0x13c)](){const _0x146a60=_0x464a8d;super[_0x146a60(0x13c)](),this[_0x146a60(0x13f)][_0x146a60(0x15a)](this[_0x146a60(0x13e)][_0x146a60(0x16a)]),this[_0x146a60(0x13f)][_0x146a60(0x15a)](this[_0x146a60(0x13e)][_0x146a60(0x16d)][_0x146a60(0x16a)]),this[_0x146a60(0x13f)][_0x146a60(0x15a)](this[_0x146a60(0x148)][_0x146a60(0x16a)]),this[_0x146a60(0x13f)][_0x146a60(0x15a)](this[_0x146a60(0x169)][_0x146a60(0x16a)]),this[_0x146a60(0x15f)][_0x146a60(0x158)](this[_0x146a60(0x16a)]);}[_0x464a8d(0x12a)](_0x15588b=0x1){const _0x3ae629=_0x464a8d;-0x1===_0x15588b?this[_0x3ae629(0x138)][_0x3ae629(0x14d)]():this[_0x3ae629(0x138)][_0x3ae629(0x137)]();}[_0x464a8d(0x132)](){const _0x58b514=_0x464a8d;this[_0x58b514(0x15c)]='',this[_0x58b514(0x16e)]='',this[_0x58b514(0x14e)]=!0x1,this[_0x58b514(0x169)][_0x58b514(0x132)](),this[_0x58b514(0x13e)][_0x58b514(0x136)]=!0x1,this[_0x58b514(0x148)][_0x58b514(0x136)]=!0x1;}[_0x464a8d(0x168)](){const _0x211731=_0x464a8d,_0x5c5cc8=this[_0x211731(0x165)],_0x20e9e3=new _0x538ba3(_0x5c5cc8,{'queryView':{'label':_0x523ab2(_0x5c5cc8,_0x211731(0x125)),'creator':_0x1cc4e2,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x523ab2(_0x5c5cc8,_0x211731(0x14f)),'secondary':_0x523ab2(_0x5c5cc8,_0x211731(0x153))}}},'filteredView':this[_0x211731(0x141)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x20e9e3[_0x211731(0x16b)](_0x211731(0x149))['to'](this,_0x211731(0x149),this,_0x211731(0x167),(_0x3e206f,_0x39194e)=>_0x3e206f&&!_0x39194e),this[_0x211731(0x158)](_0x20e9e3,_0x211731(0x135),(_0x34a5e9,_0x19e57b)=>{const _0x474ebc=_0x211731;this[_0x474ebc(0x15c)]=_0x19e57b;const _0x50ed7a=_0x4d0a70(_0x19e57b);this[_0x474ebc(0x170)](_0x474ebc(0x16c),_0x50ed7a),_0x19e57b[_0x474ebc(0x133)]()&&this[_0x474ebc(0x175)][_0x474ebc(0x15a)]({'prompt':_0x50ed7a},0x0);},{'priority':_0x211731(0x13a)}),_0x20e9e3;}[_0x464a8d(0x141)](){const _0x1a7e49=_0x464a8d,_0x8c9b0=new _0xb50f97(this[_0x1a7e49(0x165)]);return _0x8c9b0[_0x1a7e49(0x127)][_0x1a7e49(0x14b)][_0x1a7e49(0x147)](this[_0x1a7e49(0x175)])['as'](_0x280cde),_0x8c9b0['on'](_0x1a7e49(0x131),()=>{const _0x1a9cf5=_0x1a7e49;this[_0x1a9cf5(0x175)][_0x1a9cf5(0x154)](),this[_0x1a9cf5(0x169)][_0x1a9cf5(0x159)](''),this[_0x1a9cf5(0x169)][_0x1a9cf5(0x12a)]();}),_0x8c9b0;}[_0x464a8d(0x173)](){const _0x717e08=_0x464a8d,_0x5bb56e=new _0x1ddedd(this[_0x717e08(0x165)]);return _0x5bb56e[_0x717e08(0x157)][_0x717e08(0x16b)](_0x717e08(0x149))['to'](this,_0x717e08(0x149),this,_0x717e08(0x167),this,_0x717e08(0x16e),(_0x5afe49,_0x270e02,_0xf2b92e)=>_0x5afe49&&!_0x270e02&&!!_0xf2b92e),_0x5bb56e[_0x717e08(0x157)][_0x717e08(0x14c)](_0x717e08(0x12e))['to'](this,_0x717e08(0x128)),_0x5bb56e[_0x717e08(0x151)][_0x717e08(0x16b)](_0x717e08(0x149))['to'](this,_0x717e08(0x149),this,_0x717e08(0x167),this,_0x717e08(0x16e),(_0x5aa568,_0x1bb073,_0x344981)=>_0x5aa568&&!_0x1bb073&&!!_0x344981),_0x5bb56e[_0x717e08(0x151)][_0x717e08(0x14c)](_0x717e08(0x12e))['to'](this,_0x717e08(0x174)),_0x5bb56e[_0x717e08(0x126)][_0x717e08(0x16b)](_0x717e08(0x149))['to'](this,_0x717e08(0x149),this,_0x717e08(0x167),(_0x89700f,_0x9c832e)=>_0x89700f&&!_0x9c832e),_0x5bb56e[_0x717e08(0x126)][_0x717e08(0x14c)](_0x717e08(0x12e))['to'](this,_0x717e08(0x15b)),_0x5bb56e[_0x717e08(0x156)][_0x717e08(0x16b)](_0x717e08(0x149))['to'](this,_0x717e08(0x167)),_0x5bb56e[_0x717e08(0x156)][_0x717e08(0x14c)](_0x717e08(0x12e))['to'](this,_0x717e08(0x130)),_0x5bb56e;}[_0x464a8d(0x12d)](){const _0x31d546=_0x464a8d;this[_0x31d546(0x16e)]='',this[_0x31d546(0x14e)]=!0x1,this[_0x31d546(0x167)]=!0x0,this[_0x31d546(0x13e)][_0x31d546(0x136)]=!0x0,this[_0x31d546(0x148)][_0x31d546(0x136)]=!0x0,this[_0x31d546(0x13e)][_0x31d546(0x12a)]();}[_0x464a8d(0x12c)](){const _0x27d2a3=_0x464a8d,_0x4198b2=this[_0x27d2a3(0x165)];this[_0x27d2a3(0x167)]=!0x1,this[_0x27d2a3(0x15c)]='',this[_0x27d2a3(0x169)][_0x27d2a3(0x132)](),this[_0x27d2a3(0x16e)]&&(this[_0x27d2a3(0x169)][_0x27d2a3(0x150)][_0x27d2a3(0x129)]=_0x523ab2(_0x4198b2,_0x27d2a3(0x161)));}[_0x464a8d(0x12b)](_0x5459ee){const _0x1189cd=_0x464a8d,_0x477d28=this[_0x1189cd(0x165)];this[_0x1189cd(0x12c)](),this[_0x1189cd(0x14e)]=!0x0,this[_0x1189cd(0x139)][_0x1189cd(0x143)]=_0x5459ee||_0x523ab2(_0x477d28,_0x1189cd(0x146)),this[_0x1189cd(0x16e)]||(this[_0x1189cd(0x13e)][_0x1189cd(0x136)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x3c023f,_0x4dd3e9){const _0x142822=_0x5490,_0x1a73d2=_0x3c023f();while(!![]){try{const _0xc0b8fd=-parseInt(_0x142822(0x103))/0x1*(-parseInt(_0x142822(0x107))/0x2)+-parseInt(_0x142822(0xfa))/0x3*(-parseInt(_0x142822(0xfc))/0x4)+-parseInt(_0x142822(0x101))/0x5*(parseInt(_0x142822(0x100))/0x6)+parseInt(_0x142822(0xfd))/0x7+parseInt(_0x142822(0xfe))/0x8+-parseInt(_0x142822(0x105))/0x9*(parseInt(_0x142822(0xf9))/0xa)+-parseInt(_0x142822(0x102))/0xb*(parseInt(_0x142822(0x10a))/0xc);if(_0xc0b8fd===_0x4dd3e9)break;else _0x1a73d2['push'](_0x1a73d2['shift']());}catch(_0x3fded9){_0x1a73d2['push'](_0x1a73d2['shift']());}}}(_0x2ae4,0xc3448));import{ListItemView as _0x21f491,ButtonView as _0x3cc716,ButtonLabelView as _0x32094b}from'ckeditor5/src/ui.js';function _0x2ae4(){const _0x29c872=['children','fire','12BgLBVk','set','20AkLOAa','11073OaTdzy','locale','592bnyAMb','7495915DdthMO','4830496kqpxHt','prompt','1524jkondF','28565eQQQTc','3987236oYFdJc','535TknHhE','execute','2839437TkPwQY','add','3826zEZEDQ'];_0x2ae4=function(){return _0x29c872;};return _0x2ae4();}import{unescape as _0x9a3074}from'es-toolkit/compat';function _0x5490(_0x4b678d,_0x57fc68){const _0x2ae4f2=_0x2ae4();return _0x5490=function(_0x5490f9,_0x1c5822){_0x5490f9=_0x5490f9-0xf8;let _0x3fd218=_0x2ae4f2[_0x5490f9];return _0x3fd218;},_0x5490(_0x4b678d,_0x57fc68);}export class AIHistoryListItemView extends _0x21f491{constructor(_0x2d1098){const _0x39c55f=_0x5490;super();const _0x504c1a=new _0x32094b(),_0x544ec4=new _0x3cc716(this[_0x39c55f(0xfb)],_0x504c1a);this[_0x39c55f(0x108)][_0x39c55f(0x106)](_0x544ec4),_0x544ec4[_0x39c55f(0xf8)]({'label':_0x2d1098[_0x39c55f(0xff)],'withText':!0x0}),_0x544ec4['on'](_0x39c55f(0x104),()=>{const _0xd2b33c=_0x39c55f;this[_0xd2b33c(0x109)](_0xd2b33c(0x104),{'value':_0x9a3074(_0x2d1098[_0xd2b33c(0xff)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x35b261=_0x2c32;(function(_0x479898,_0xb60066){const _0x3bc8cd=_0x2c32,_0x2d9dba=_0x479898();while(!![]){try{const _0x2b1b33=parseInt(_0x3bc8cd(0xfb))/0x1+-parseInt(_0x3bc8cd(0xf8))/0x2+-parseInt(_0x3bc8cd(0xef))/0x3*(parseInt(_0x3bc8cd(0xed))/0x4)+parseInt(_0x3bc8cd(0xf9))/0x5*(-parseInt(_0x3bc8cd(0xf7))/0x6)+-parseInt(_0x3bc8cd(0xf4))/0x7+parseInt(_0x3bc8cd(0xff))/0x8+parseInt(_0x3bc8cd(0xea))/0x9;if(_0x2b1b33===_0xb60066)break;else _0x2d9dba['push'](_0x2d9dba['shift']());}catch(_0xf6fe5c){_0x2d9dba['push'](_0x2d9dba['shift']());}}}(_0x5f1f,0x9dce3));function _0x5f1f(){const _0x444567=['filter','5634342VPEeak','length','children','1020692JVIsiP','clearHistory','6XECazS','clearHistoryButton','_createClearHistoryButton','execute','delegate','3169313ijTten','label','Clear','1110OORIHO','456686ilgZWr','18520uBOwkE','set','849627VhCKDs','add','Prompt\x20history','historyGroupView','8379152bTMbUu','locale','items','fire'];_0x5f1f=function(){return _0x444567;};return _0x5f1f();}import{ListView as _0x1a94dc,ListItemGroupView as _0x22444b,ButtonView as _0x460775}from'ckeditor5/src/ui.js';function _0x2c32(_0xea0351,_0x40a448){const _0x5f1ffe=_0x5f1f();return _0x2c32=function(_0x2c32dd,_0x26c4f9){_0x2c32dd=_0x2c32dd-0xea;let _0x217a07=_0x5f1ffe[_0x2c32dd];return _0x217a07;},_0x2c32(_0xea0351,_0x40a448);}import{getTranslation as _0x4023b8}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x1a94dc{[_0x35b261(0xfe)];[_0x35b261(0xf0)];constructor(_0x31fb41){const _0x562dd0=_0x35b261;super(_0x31fb41),this[_0x562dd0(0xf0)]=this[_0x562dd0(0xf1)](),this[_0x562dd0(0xfe)]=new _0x22444b(),this[_0x562dd0(0xfe)][_0x562dd0(0xec)][_0x562dd0(0xfc)](this[_0x562dd0(0xf0)],0x1),this[_0x562dd0(0xfe)][_0x562dd0(0xf5)]=_0x4023b8(_0x31fb41,_0x562dd0(0xfd)),this[_0x562dd0(0xfe)][_0x562dd0(0x101)][_0x562dd0(0xf3)](_0x562dd0(0xf2))['to'](this),this[_0x562dd0(0x101)][_0x562dd0(0xfc)](this[_0x562dd0(0xfe)]);}[_0x35b261(0x103)](){const _0x264ff7=_0x35b261;let _0x528db4=0x0;for(const _0x11b648 of this[_0x264ff7(0x101)])_0x528db4+=_0x11b648[_0x264ff7(0x101)][_0x264ff7(0xeb)];return{'resultsCount':_0x528db4,'totalItemsCount':_0x528db4};}[_0x35b261(0xf1)](){const _0x53ec5c=_0x35b261,_0x26b2b3=this[_0x53ec5c(0x100)],_0x352a77=new _0x460775(this[_0x53ec5c(0x100)]);return _0x352a77[_0x53ec5c(0xfa)]({'label':'('+_0x4023b8(_0x26b2b3,_0x53ec5c(0xf6))+')','withText':!0x0}),_0x352a77['on'](_0x53ec5c(0xf2),()=>this[_0x53ec5c(0x102)](_0x53ec5c(0xee))),_0x352a77;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53a678=_0x3e26;(function(_0x1cd432,_0x437fe7){const _0x26880a=_0x3e26,_0x5b08e6=_0x1cd432();while(!![]){try{const _0x4c0720=parseInt(_0x26880a(0x168))/0x1+parseInt(_0x26880a(0x16e))/0x2*(parseInt(_0x26880a(0x182))/0x3)+-parseInt(_0x26880a(0x17f))/0x4*(-parseInt(_0x26880a(0x177))/0x5)+-parseInt(_0x26880a(0x17b))/0x6*(parseInt(_0x26880a(0x17a))/0x7)+-parseInt(_0x26880a(0x18a))/0x8*(-parseInt(_0x26880a(0x16d))/0x9)+-parseInt(_0x26880a(0x18e))/0xa*(parseInt(_0x26880a(0x18c))/0xb)+parseInt(_0x26880a(0x174))/0xc;if(_0x4c0720===_0x437fe7)break;else _0x5b08e6['push'](_0x5b08e6['shift']());}catch(_0x15b2f7){_0x5b08e6['push'](_0x5b08e6['shift']());}}}(_0x919c,0x5599f));import{Command as _0x1c22f6}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x11992a}from'../aiassistantui.js';function _0x919c(){const _0x45d316=['_hasContext','getFirstRange','isCollapsed','showUI','custom','enabledCommandsIds','5448KkVbWq','hasContent','1474PeAlVr','isEmpty','34030PDGMww','_commandDefinitions','get','isEnabled','change:isEnabled','plugins','execute','element','59634aJdrUl','getItems','values','config','ai.assistant.disabledElements','4419juvBNc','6ZFsidB','getRanges','add','from','set','change:_hasContext','5477640sfzfaJ','length','refresh','83985UwYrVX','selection','document','254450BfSdEw','42CbWEuP','requiresContent','includes','model','24vDBnmp','getSelectedBlocks','name','109818eAkXQz','editor'];_0x919c=function(){return _0x45d316;};return _0x919c();}function _0x3e26(_0xa598d3,_0xff37){const _0x919c60=_0x919c();return _0x3e26=function(_0x3e2649,_0xe41df8){_0x3e2649=_0x3e2649-0x165;let _0x5b1980=_0x919c60[_0x3e2649];return _0x5b1980;},_0x3e26(_0xa598d3,_0xff37);}export class ShowAIAssistantCommand extends _0x1c22f6{[_0x53a678(0x18f)];constructor(_0x1e6722,_0x232de0){const _0x71e62=_0x53a678;super(_0x1e6722),this[_0x71e62(0x18f)]=_0x232de0,this[_0x71e62(0x172)](_0x71e62(0x189),[]),this['on'](_0x71e62(0x173),(_0x111d47,_0x5accb3,_0x1c2b87)=>{const _0x15a471=_0x71e62;this[_0x15a471(0x191)]&&(this[_0x15a471(0x189)]=ns(this[_0x15a471(0x18f)],_0x1c2b87));}),this[_0x71e62(0x172)](_0x71e62(0x184),!0x1),this['on'](_0x71e62(0x192),(_0x25e050,_0x5bd8e2,_0x3eb1b2)=>{const _0x24b7e3=_0x71e62;this[_0x24b7e3(0x189)]=_0x3eb1b2?ns(this[_0x24b7e3(0x18f)],this[_0x24b7e3(0x184)]):[];});}[_0x53a678(0x176)](){const _0x5c0c37=_0x53a678,_0x35a12a=this[_0x5c0c37(0x183)][_0x5c0c37(0x17e)];this[_0x5c0c37(0x184)]=function(_0xc3e617){const _0x40d911=_0x5c0c37,_0x135d75=_0xc3e617[_0x40d911(0x179)][_0x40d911(0x178)];return _0x135d75[_0x40d911(0x186)]?0x0!==[..._0x135d75[_0x40d911(0x180)]()][_0x40d911(0x175)]&&![..._0x135d75[_0x40d911(0x180)]()][0x0][_0x40d911(0x18d)]:!!_0xc3e617[_0x40d911(0x18b)](_0x135d75[_0x40d911(0x185)]());}(_0x35a12a);const _0x1efc83=_0x35a12a[_0x5c0c37(0x179)][_0x5c0c37(0x178)],_0x595448=this[_0x5c0c37(0x183)][_0x5c0c37(0x16b)][_0x5c0c37(0x190)](_0x5c0c37(0x16c));for(const _0x274f02 of _0x1efc83[_0x5c0c37(0x16f)]())for(const _0x3f7ea5 of _0x274f02[_0x5c0c37(0x169)]())if(_0x3f7ea5['is'](_0x5c0c37(0x167))&&_0x595448[_0x5c0c37(0x17d)](_0x3f7ea5[_0x5c0c37(0x181)]))return void(this[_0x5c0c37(0x191)]=!0x1);this[_0x5c0c37(0x191)]=!0x0;}[_0x53a678(0x166)](_0x23678b='',_0x1e0d4f='',_0x1d4632=_0x53a678(0x188)){const _0x285b4a=_0x53a678;this[_0x285b4a(0x183)][_0x285b4a(0x165)][_0x285b4a(0x190)](_0x11992a)[_0x285b4a(0x187)](_0x23678b,_0x1e0d4f,_0x1d4632);}}function ns(_0x528de3,_0x5c4f40){const _0x21bd43=_0x53a678,_0xca31c6=new Set();for(const _0x418962 of _0x528de3[_0x21bd43(0x16a)]())(_0x5c4f40||!0x1===_0x418962[_0x21bd43(0x17c)])&&_0xca31c6[_0x21bd43(0x170)](_0x418962['id']);return Array[_0x21bd43(0x171)](_0xca31c6);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53f2b4=_0x3913;(function(_0x1851e5,_0x3a203f){const _0xc5e356=_0x3913,_0x3b8b6d=_0x1851e5();while(!![]){try{const _0x5a1d28=-parseInt(_0xc5e356(0x178))/0x1*(parseInt(_0xc5e356(0x1bf))/0x2)+-parseInt(_0xc5e356(0x18a))/0x3*(parseInt(_0xc5e356(0x186))/0x4)+parseInt(_0xc5e356(0x16e))/0x5*(-parseInt(_0xc5e356(0x190))/0x6)+parseInt(_0xc5e356(0x16b))/0x7+parseInt(_0xc5e356(0x1be))/0x8*(parseInt(_0xc5e356(0x18d))/0x9)+parseInt(_0xc5e356(0x1ac))/0xa*(parseInt(_0xc5e356(0x183))/0xb)+parseInt(_0xc5e356(0x1b8))/0xc;if(_0x5a1d28===_0x3a203f)break;else _0x3b8b6d['push'](_0x3b8b6d['shift']());}catch(_0x9e0f73){_0x3b8b6d['push'](_0x3b8b6d['shift']());}}}(_0xd239,0x7749f));import{ContextPlugin as _0x54f1c5}from'ckeditor5/src/core.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x5ecb41,AIEditing as _0x498bb1}from'../aicore/aiediting.js';function _0x3913(_0x4e8d41,_0x581bda){const _0xd239d9=_0xd239();return _0x3913=function(_0x39134a,_0x3d6f48){_0x39134a=_0x39134a-0x165;let _0x3ddfe9=_0xd239d9[_0x39134a];return _0x3ddfe9;},_0x3913(_0x4e8d41,_0x581bda);}import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x2d3a75}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x168565,Rect as _0x5bc7ae,scrollViewportToShowTarget as _0xcf058a}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x40087a}from'../aicore/utils/geteditorfromcontext.js';import{getTranslation as _0x3553f3}from'../aicore/utils/common-translations.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0xe14b20}from'./ui/aiballoonview.js';export const AI_BALLOON_EVENT_NAMES=[..._0xe14b20,_0x53f2b4(0x185),_0x53f2b4(0x174)];const $=0xa;function _0xd239(){const _0x40b15e=['_hideFakeVisualSelection','left','isOfficialPlugin','get','_calculateDialogPosition','_showDialog','getIntersection','hideFakeVisualSelection','end','3377738fzIwnl','ai-selection','locale','20PHDbbk','listenTo','fire','getChangedMarkers','AI_BALLOON_SELECTION_REMOVED_ERROR','editing','selectionRemoved','iconView','mainView','differ','224698wBvhlU','pluginName','start','ai-balloon-','delegate','index','document','$graveyard','height','startsWith','updatePosition','11ShiGJb','_getSelectionElements','dialogClosed','1164fwXujn','_showFakeVisualSelection','label','_isUpdatingMarkers','1515rCJSbt','length','getVisible','2034CtvXyi','filter','hide','381408AvQFIG','rootName','getBoundingRect','headerView','ranges','_updateDialog','_cleanupFakeVisualSelectionMarkerRemovalListener','close','Dialog','stopListening','context','view','ck-ai-balloon\x20','showBlockingError','AIBalloon','showFakeVisualSelection','_calculateOptimalTopPosition','_setupFakeVisualSelectionMarkerRemovalListener','plugins','requires','open','beforeDialogClosed','_currentConfig','window','width','max','high','bottom','6089560ZvyRGU','hideError','isPremiumPlugin','once','isEqual','bind','top','show','map','round','change','isOpen','1148352MpciiD','markers','getMarkersGroup','model','root','ai-balloon-selection','13336rUvIIB','6bBXBLg','content'];_0xd239=function(){return _0x40b15e;};return _0xd239();}export class AIBalloon extends _0x54f1c5{static get[_0x53f2b4(0x1a3)](){return[_0x498bb1];}static get[_0x53f2b4(0x179)](){const _0x3f67fc=_0x53f2b4;return _0x3f67fc(0x19e);}static get[_0x53f2b4(0x1c3)](){return!0x0;}static get[_0x53f2b4(0x1ae)](){return!0x0;}[_0x53f2b4(0x1b7)]=!0x1;[_0x53f2b4(0x1a6)];[_0x53f2b4(0x189)]=!0x1;[_0x53f2b4(0x1a4)](_0x30e503){const _0x3a1ef1=_0x53f2b4,{id:_0x127ba5}=this[_0x3a1ef1(0x1a6)]??{};this[_0x3a1ef1(0x1a6)]=_0x30e503;const {id:_0x310d2a}=this[_0x3a1ef1(0x1a6)];this[_0x3a1ef1(0x1b7)]&&_0x127ba5===_0x310d2a?this[_0x3a1ef1(0x195)]():this[_0x3a1ef1(0x167)]();}[_0x53f2b4(0x197)](){const _0x5b4f53=_0x53f2b4,_0x1094fc=_0x40087a(this[_0x5b4f53(0x19a)])[_0x5b4f53(0x1a2)][_0x5b4f53(0x165)](_0x5b4f53(0x198));_0x1094fc[_0x5b4f53(0x1b7)]&&this[_0x5b4f53(0x1a6)]&&_0x1094fc['id']===this[_0x5b4f53(0x1a6)]['id']&&_0x1094fc[_0x5b4f53(0x18f)]();}[_0x53f2b4(0x195)](){const _0x108df6=_0x53f2b4,_0x49a9b9=_0x40087a(this[_0x108df6(0x19a)])[_0x108df6(0x1a2)][_0x108df6(0x165)](_0x108df6(0x198)),{icon:_0x4721d9,title:_0x14cbd2}=this[_0x108df6(0x1a6)];_0x49a9b9[_0x108df6(0x19b)]?.[_0x108df6(0x193)]&&(_0x49a9b9[_0x108df6(0x19b)][_0x108df6(0x193)][_0x108df6(0x188)]=_0x14cbd2,_0x49a9b9[_0x108df6(0x19b)][_0x108df6(0x193)][_0x108df6(0x175)]&&_0x4721d9&&(_0x49a9b9[_0x108df6(0x19b)][_0x108df6(0x193)][_0x108df6(0x175)][_0x108df6(0x1c0)]=_0x4721d9)),this[_0x108df6(0x189)]=!0x0,this[_0x108df6(0x187)](),this[_0x108df6(0x189)]=!0x1,_0x49a9b9[_0x108df6(0x19b)]?.[_0x108df6(0x182)]();}[_0x53f2b4(0x187)](){const _0x5a7438=_0x53f2b4;this[_0x5a7438(0x19a)][_0x5a7438(0x1a2)][_0x5a7438(0x165)](_0x498bb1)[_0x5a7438(0x19f)](this[_0x5a7438(0x1a6)][_0x5a7438(0x194)],_0x5a7438(0x17b)+this[_0x5a7438(0x1a6)][_0x5a7438(0x17d)],!0x0,!0x0);}[_0x53f2b4(0x1c1)](_0x10ca2a){const _0x2ea3d4=_0x53f2b4;this[_0x2ea3d4(0x19a)][_0x2ea3d4(0x1a2)][_0x2ea3d4(0x165)](_0x498bb1)[_0x2ea3d4(0x169)](_0x2ea3d4(0x17b)+_0x10ca2a);}[_0x53f2b4(0x167)](){const _0x5b2e45=_0x53f2b4,_0x2a173d=_0x40087a(this[_0x5b2e45(0x19a)])[_0x5b2e45(0x1a2)][_0x5b2e45(0x165)](_0x5b2e45(0x198)),{id:_0x556b62,title:_0x4f1a50,icon:_0x17d349,class:_0x1ca33a,mainView:_0x45b0a4}=this[_0x5b2e45(0x1a6)];_0x45b0a4[_0x5b2e45(0x17c)](..._0xe14b20)['to'](this),_0x2a173d[_0x5b2e45(0x1b3)]({'title':_0x4f1a50,'icon':_0x17d349,'hasCloseButton':!0x0,'id':_0x556b62,'position':this[_0x5b2e45(0x166)][_0x5b2e45(0x1b1)](this),'className':_0x5b2e45(0x19c)+(_0x1ca33a||''),'content':_0x45b0a4,'onShow':_0x438e5a=>{const _0x17b379=_0x5b2e45;this[_0x17b379(0x187)](),this[_0x17b379(0x1a1)]();const _0x5defa4=this[_0x17b379(0x184)]();_0x5defa4&&_0x5defa4[0x0]&&_0xcf058a({'target':_0x5defa4[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0x17b379(0x1b7)]=!0x0,_0x438e5a[_0x17b379(0x1af)](_0x17b379(0x18f),()=>{const _0x3aad21=_0x17b379;this[_0x3aad21(0x170)](_0x3aad21(0x1a5),{'id':_0x556b62});},{'priority':_0x17b379(0x1aa)});},'onHide':()=>{const _0x4baf49=_0x5b2e45;this[_0x4baf49(0x1c1)](this[_0x4baf49(0x1a6)][_0x4baf49(0x17d)]),this[_0x4baf49(0x196)](),this[_0x4baf49(0x170)](_0x4baf49(0x185),{'id':_0x556b62}),this[_0x4baf49(0x1b7)]=!0x1;}});}[_0x53f2b4(0x166)](_0x2ae1f3,_0x1aa168){const _0x2e042b=_0x53f2b4;if(!_0x1aa168)return null;const _0x2a4cfd=this[_0x2e042b(0x184)]();if(!_0x2a4cfd||0x0===_0x2a4cfd[_0x2e042b(0x18b)])return{'left':Math[_0x2e042b(0x1b5)](_0x1aa168[_0x2e042b(0x1c2)]+_0x1aa168[_0x2e042b(0x1a8)]/0x2-_0x2ae1f3[_0x2e042b(0x1a8)]/0x2),'top':Math[_0x2e042b(0x1b5)](_0x1aa168[_0x2e042b(0x1b2)]+_0x1aa168[_0x2e042b(0x180)]/0x2-_0x2ae1f3[_0x2e042b(0x180)]/0x2)};const _0x1ff71e=Math[_0x2e042b(0x1b5)](_0x1aa168[_0x2e042b(0x1c2)]+_0x1aa168[_0x2e042b(0x1a8)]/0x2-_0x2ae1f3[_0x2e042b(0x1a8)]/0x2),_0x297159=_0x2a4cfd[_0x2e042b(0x1b4)](_0x1cda1b=>new _0x5bc7ae(_0x1cda1b)),_0x3ec3e3=_0x2ae1f3[_0x2e042b(0x180)];return{'left':_0x1ff71e,'top':this[_0x2e042b(0x1a0)](_0x297159,_0x3ec3e3,_0x1aa168)};}[_0x53f2b4(0x1a0)](_0xd2c80d,_0x2865a7,_0x271096){const _0x1579dc=_0x53f2b4,_0x12fa33=new _0x5bc7ae(_0x168565[_0x1579dc(0x1a7)]),_0x259100=_0xd2c80d[_0x1579dc(0x1b4)](_0x30b0de=>_0x30b0de[_0x1579dc(0x18c)]())[_0x1579dc(0x18e)](_0x117207=>_0x117207),_0x2f140b=_0x5bc7ae[_0x1579dc(0x192)](_0x259100);if(!_0x2f140b)return Math[_0x1579dc(0x1b5)](_0x271096[_0x1579dc(0x1b2)]+_0x271096[_0x1579dc(0x180)]/0x2);const _0x3e4b14=_0x12fa33[_0x1579dc(0x168)](_0x2f140b);if(!_0x3e4b14)return Math[_0x1579dc(0x1b5)](_0x271096[_0x1579dc(0x1b2)]+_0x271096[_0x1579dc(0x180)]/0x2);const _0xa333e7=_0x271096[_0x1579dc(0x18c)](),_0x36e44e=_0xa333e7&&_0x2f140b[_0x1579dc(0x180)]>_0xa333e7[_0x1579dc(0x180)],_0x50a81d=_0x3e4b14[_0x1579dc(0x1b2)],_0x3e550c=_0x3e4b14[_0x1579dc(0x1ab)];if(_0x36e44e){const _0x420531=(_0xa333e7||_0x12fa33)[_0x1579dc(0x180)]/0x2-_0x2865a7/0x2,_0x4c74ae=_0x50a81d-$-_0x271096[_0x1579dc(0x1b2)],_0x5b24ee=_0x271096[_0x1579dc(0x1ab)]-_0x3e550c-$;return _0x4c74ae>=_0x2865a7?Math[_0x1579dc(0x1a9)]($,_0x50a81d-_0x2865a7-$):_0x5b24ee>=_0x2865a7?_0x3e550c+$:Math[_0x1579dc(0x1a9)]($,_0x420531);}const _0x664056=_0x50a81d-_0x2865a7,_0x231d3b=_0x271096[_0x1579dc(0x1ab)]-_0x3e550c-$,_0x341fee=_0x50a81d-$-_0x271096[_0x1579dc(0x1b2)];let _0xb16e8f;if(_0x231d3b>=_0x2865a7)_0xb16e8f=_0x3e550c+$;else{if(_0x341fee>=_0x2865a7)_0xb16e8f=_0x664056-$;else _0xb16e8f=_0x50a81d+_0x2f140b[_0x1579dc(0x180)]/0x2-_0x2865a7/0x2;}return _0xb16e8f;}[_0x53f2b4(0x1a1)](){const _0x54d6be=_0x53f2b4,_0x409366=_0x40087a(this[_0x54d6be(0x19a)]);this[_0x54d6be(0x16f)](_0x409366[_0x54d6be(0x1bb)][_0x54d6be(0x17e)],_0x54d6be(0x1b6),()=>{const _0x183cd3=_0x54d6be;if(!this[_0x183cd3(0x189)]){for(const {name:_0x3e7544,data:{newRange:_0x256620}}of _0x409366[_0x183cd3(0x1bb)][_0x183cd3(0x17e)][_0x183cd3(0x177)][_0x183cd3(0x171)]())if(_0x3e7544[_0x183cd3(0x181)](_0x5ecb41+':')&&(_0x256620&&(_0x256620[_0x183cd3(0x17a)][_0x183cd3(0x1b0)](_0x256620[_0x183cd3(0x16a)])||_0x183cd3(0x17f)==_0x256620[_0x183cd3(0x1bc)][_0x183cd3(0x191)])||null==_0x256620)){const _0x3eebf9=_0x3553f3(this[_0x183cd3(0x19a)][_0x183cd3(0x16d)],_0x183cd3(0x172));this[_0x183cd3(0x1a6)][_0x183cd3(0x176)][_0x183cd3(0x19d)](_0x3eebf9),this[_0x183cd3(0x170)](_0x183cd3(0x174));}}});}[_0x53f2b4(0x196)](){const _0x46fea4=_0x53f2b4,_0x437b55=_0x40087a(this[_0x46fea4(0x19a)]);this[_0x46fea4(0x1a6)][_0x46fea4(0x176)][_0x46fea4(0x1ad)](),this[_0x46fea4(0x199)](_0x437b55[_0x46fea4(0x1bb)][_0x46fea4(0x17e)]);}[_0x53f2b4(0x184)](){const _0x3dc90c=_0x53f2b4,_0x4b9f06=_0x40087a(this[_0x3dc90c(0x19a)]);return _0x2d3a75(_0x4b9f06[_0x3dc90c(0x173)],[..._0x4b9f06[_0x3dc90c(0x1bb)][_0x3dc90c(0x1b9)][_0x3dc90c(0x1ba)](_0x3dc90c(0x16c)),..._0x4b9f06[_0x3dc90c(0x1bb)][_0x3dc90c(0x1b9)][_0x3dc90c(0x1ba)](_0x3dc90c(0x1bd))]);}}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x4bb7(){var _0x1e05d5=['_registerToolDataCallback','config','plugins','context','500376cqXMOh','startConversation','focusPromptInput','282kycACG','41871WhdGIc','requires','sendMessage','pluginName','get','6744330eWvBPI','6769nQAJnp','1969iIgAwC','define','ai.chat.initialConversation','addSelectionToChatContext','4LJaAZO','ai.chat.context','AIChat','21770QYJIOZ','isOfficialPlugin','isPremiumPlugin','removeSelectionFromChatContext','8HPxrLP','22706RjbvVj','3486IPmEPq','new','registerToolDataCallback','305115uJlxjj'];_0x4bb7=function(){return _0x1e05d5;};return _0x4bb7();}var _0x154b71=_0xae26;function _0xae26(_0x193e85,_0x42f8b1){var _0x4bb767=_0x4bb7();return _0xae26=function(_0xae26d8,_0xe4da0){_0xae26d8=_0xae26d8-0xdc;var _0x3c5a3e=_0x4bb767[_0xae26d8];return _0x3c5a3e;},_0xae26(_0x193e85,_0x42f8b1);}(function(_0x181990,_0x1a8699){var _0x129ef8=_0xae26,_0x2956f8=_0x181990();while(!![]){try{var _0x10b305=-parseInt(_0x129ef8(0xfb))/0x1+parseInt(_0x129ef8(0xee))/0x2*(parseInt(_0x129ef8(0xfa))/0x3)+parseInt(_0x129ef8(0xe6))/0x4*(parseInt(_0x129ef8(0xf2))/0x5)+-parseInt(_0x129ef8(0xef))/0x6*(parseInt(_0x129ef8(0xe1))/0x7)+-parseInt(_0x129ef8(0xed))/0x8*(-parseInt(_0x129ef8(0xe0))/0x9)+-parseInt(_0x129ef8(0xe9))/0xa*(parseInt(_0x129ef8(0xe2))/0xb)+parseInt(_0x129ef8(0xf7))/0xc;if(_0x10b305===_0x1a8699)break;else _0x2956f8['push'](_0x2956f8['shift']());}catch(_0x3e06d1){_0x2956f8['push'](_0x2956f8['shift']());}}}(_0x4bb7,0xe20c4));import{ContextPlugin as _0x243212}from'ckeditor5/src/core.js';import{AIChatController as _0x342581}from'./aichatcontroller.js';import{AIEditing as _0x1129e4}from'../aicore/aiediting.js';import{AIChatUI as _0x3666a0}from'./aichatui.js';import{AIChatHistory as _0x3080bd}from'../aichathistory/aichathistory.js';export class AIChat extends _0x243212{static get[_0x154b71(0xdc)](){return[_0x342581,_0x1129e4,_0x3666a0,_0x3080bd];}static get[_0x154b71(0xde)](){var _0x257eff=_0x154b71;return _0x257eff(0xe8);}static get[_0x154b71(0xea)](){return!0x0;}static get[_0x154b71(0xeb)](){return!0x0;}constructor(_0xbbcc7a){var _0x1d5d12=_0x154b71;super(_0xbbcc7a),this[_0x1d5d12(0xf6)][_0x1d5d12(0xf4)][_0x1d5d12(0xe3)](_0x1d5d12(0xe7),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x1d5d12(0xf6)][_0x1d5d12(0xf4)][_0x1d5d12(0xe3)](_0x1d5d12(0xe4),_0x1d5d12(0xf0));}async[_0x154b71(0xe5)](){var _0x812eaf=_0x154b71;await this[_0x812eaf(0xf6)][_0x812eaf(0xf5)][_0x812eaf(0xdf)](_0x342581)[_0x812eaf(0xe5)]();}async[_0x154b71(0xf8)](){var _0x482a5d=_0x154b71;await this[_0x482a5d(0xf6)][_0x482a5d(0xf5)][_0x482a5d(0xdf)](_0x342581)[_0x482a5d(0xf8)]();}async[_0x154b71(0xdd)]({message:_0x46b6f1,attributes:_0x1ef1e3}){var _0x2d1072=_0x154b71;await this[_0x2d1072(0xf6)][_0x2d1072(0xf5)][_0x2d1072(0xdf)](_0x342581)[_0x2d1072(0xdd)]({'message':_0x46b6f1,'attributes':_0x1ef1e3});}[_0x154b71(0xec)](){var _0x520264=_0x154b71;this[_0x520264(0xf6)][_0x520264(0xf5)][_0x520264(0xdf)](_0x342581)[_0x520264(0xec)]();}[_0x154b71(0xf9)](){var _0x1f7653=_0x154b71;this[_0x1f7653(0xf6)][_0x1f7653(0xf5)][_0x1f7653(0xdf)](_0x342581)[_0x1f7653(0xf9)]();}[_0x154b71(0xf1)](_0x5b33e3){var _0x3b1d59=_0x154b71;this[_0x3b1d59(0xf6)][_0x3b1d59(0xf5)][_0x3b1d59(0xdf)](_0x342581)[_0x3b1d59(0xf3)](_0x5b33e3);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x58e03e=_0x55c7;(function(_0x5af62d,_0xc8d2a1){const _0xae4bf9=_0x55c7,_0x4b1e70=_0x5af62d();while(!![]){try{const _0x507e28=parseInt(_0xae4bf9(0x168))/0x1*(parseInt(_0xae4bf9(0x14c))/0x2)+-parseInt(_0xae4bf9(0x165))/0x3+parseInt(_0xae4bf9(0x16c))/0x4*(parseInt(_0xae4bf9(0x14f))/0x5)+-parseInt(_0xae4bf9(0x13f))/0x6*(parseInt(_0xae4bf9(0x140))/0x7)+parseInt(_0xae4bf9(0x130))/0x8+parseInt(_0xae4bf9(0x15a))/0x9*(-parseInt(_0xae4bf9(0x137))/0xa)+parseInt(_0xae4bf9(0x16f))/0xb;if(_0x507e28===_0xc8d2a1)break;else _0x4b1e70['push'](_0x4b1e70['shift']());}catch(_0x3ec921){_0x4b1e70['push'](_0x4b1e70['shift']());}}}(_0x5e40,0x7bbcc));function _0x55c7(_0x5c2ced,_0x307d62){const _0x5e4009=_0x5e40();return _0x55c7=function(_0x55c7fc,_0x1fef3d){_0x55c7fc=_0x55c7fc-0x130;let _0x58b9e9=_0x5e4009[_0x55c7fc];return _0x58b9e9;},_0x55c7(_0x5c2ced,_0x307d62);}import{Plugin as _0x5212fc}from'ckeditor5/src/core.js';import{AIBalloon as _0x2433c9}from'../aiballoon/aiballoon.js';import{AI_REPLY_ACTIONS as _0x42f302}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x5b32d0}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0xb1d5c3}from'../aicore/utils/eventnames.js';import{Dialog as _0x2f10d0}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x5212fc{static get[_0x58e03e(0x166)](){return[_0x2f10d0,_0x2433c9];}static get[_0x58e03e(0x15c)](){const _0x3482cc=_0x58e03e;return _0x3482cc(0x160);}static get[_0x58e03e(0x163)](){return!0x0;}static get[_0x58e03e(0x147)](){return!0x0;}[_0x58e03e(0x131)];constructor(_0x18baf9){const _0x58e32c=_0x58e03e;super(_0x18baf9),this[_0x58e32c(0x145)](_0x58e32c(0x142),!0x1);}[_0x58e03e(0x156)](_0x42526e){const _0x5e168d=_0x58e03e,_0x4da14d=this[_0x5e168d(0x170)];this[_0x5e168d(0x131)]||(this[_0x5e168d(0x131)]=this[_0x5e168d(0x164)]()),_0x4da14d[_0x5e168d(0x14d)][_0x5e168d(0x141)](_0x5e168d(0x167))[_0x5e168d(0x156)]({..._0x42526e,'id':_0x5e168d(0x162),'class':_0x5e168d(0x16e),'mainView':this[_0x5e168d(0x131)]}),this[_0x5e168d(0x133)](_0x42526e[_0x5e168d(0x15e)]),this[_0x5e168d(0x131)][_0x5e168d(0x13b)](!_0x42526e[_0x5e168d(0x151)]),this[_0x5e168d(0x154)]();}[_0x58e03e(0x16b)](){const _0x5899ec=_0x58e03e;this[_0x5899ec(0x170)][_0x5899ec(0x14d)][_0x5899ec(0x141)](_0x5899ec(0x167))[_0x5899ec(0x16b)]();}[_0x58e03e(0x139)](_0x14460a){const _0x1fae51=_0x58e03e;return this[_0x1fae51(0x131)]||(this[_0x1fae51(0x131)]=this[_0x1fae51(0x164)]()),this[_0x1fae51(0x131)][_0x1fae51(0x139)](_0x14460a);}[_0x58e03e(0x135)](_0xb12c75){const _0x1f23ea=_0x58e03e;this[_0x1f23ea(0x131)]&&this[_0x1f23ea(0x131)][_0x1f23ea(0x135)](_0xb12c75);}[_0x58e03e(0x164)](){const _0x2659c9=_0x58e03e,_0x1f1668=this[_0x2659c9(0x170)],_0x54388c=_0x1f1668[_0x2659c9(0x14d)][_0x2659c9(0x141)](_0x2659c9(0x167)),_0x5eeddf=_0x1f1668[_0x2659c9(0x169)][_0x2659c9(0x141)](_0x2659c9(0x150));let _0x34fe6d=_0x1f1668[_0x2659c9(0x157)][_0x2659c9(0x141)](_0x2659c9(0x16d))||[..._0x42f302];_0x1f1668[_0x2659c9(0x14d)][_0x2659c9(0x13c)](_0x2659c9(0x152))||(_0x34fe6d=_0x34fe6d[_0x2659c9(0x132)](_0x329a17=>_0x2659c9(0x158)!=_0x329a17));const _0x3df378=new _0x5b32d0(_0x1f1668[_0x2659c9(0x148)],{'availableActions':_0x34fe6d,'showApplyButton':!0x0,'showSuggestButton':!!_0x5eeddf});return _0x3df378[_0x2659c9(0x14b)](_0x2659c9(0x142))['to'](this),_0x3df378[_0x2659c9(0x171)](..._0xb1d5c3)['to'](this),_0x3df378[_0x2659c9(0x171)](_0x2659c9(0x13a),_0x2659c9(0x146))['to'](this),_0x54388c[_0x2659c9(0x171)](_0x2659c9(0x161))['to'](this),_0x3df378['on'](_0x2659c9(0x14a),this[_0x2659c9(0x154)][_0x2659c9(0x14b)](this)),_0x3df378['on'](_0x2659c9(0x158),this[_0x2659c9(0x154)][_0x2659c9(0x14b)](this)),_0x3df378['on'](_0x2659c9(0x15b),this[_0x2659c9(0x154)][_0x2659c9(0x14b)](this)),_0x5eeddf&&_0x3df378[_0x2659c9(0x14b)](_0x2659c9(0x136))['to'](_0x5eeddf,_0x2659c9(0x155)),_0x3df378[_0x2659c9(0x16a)](),_0x3df378;}[_0x58e03e(0x133)](_0x3a9939){const _0x24ff6a=_0x58e03e,_0x721c9=this[_0x24ff6a(0x170)],_0x1211f1=_0x721c9[_0x24ff6a(0x14d)][_0x24ff6a(0x141)](_0x24ff6a(0x15f))[_0x24ff6a(0x144)][_0x24ff6a(0x15d)][_0x24ff6a(0x149)];this[_0x24ff6a(0x131)][_0x24ff6a(0x134)](_0x3a9939),_0x1211f1[_0x24ff6a(0x13c)](this[_0x24ff6a(0x131)][_0x24ff6a(0x13d)])||(_0x1211f1[_0x24ff6a(0x143)]([this[_0x24ff6a(0x131)][_0x24ff6a(0x13d)],this[_0x24ff6a(0x131)][_0x24ff6a(0x13e)]],0x0),_0x721c9[_0x24ff6a(0x14d)][_0x24ff6a(0x141)](_0x24ff6a(0x167))[_0x24ff6a(0x138)](_0x24ff6a(0x14e),()=>{const _0x1448ab=_0x24ff6a;_0x1211f1[_0x1448ab(0x159)](this[_0x1448ab(0x131)][_0x1448ab(0x13d)]),_0x1211f1[_0x1448ab(0x159)](this[_0x1448ab(0x131)][_0x1448ab(0x13e)]);}));}[_0x58e03e(0x154)](){const _0x5fd0fd=_0x58e03e;this[_0x5fd0fd(0x131)][_0x5fd0fd(0x153)]();}}function _0x5e40(){const _0x4e7875=['insertSuggestion','remove','80649UhwmVk','rejectSuggestion','pluginName','headerView','showRotator','Dialog','AIChatBalloon','dialogClosed','aiChatBalloon','isOfficialPlugin','_createChatBalloonView','214221pdAxSb','requires','AIBalloon','220687zsRGSR','commands','render','close','796WZNXDZ','ai.availableReplyActions','ck-ai-chat-balloon','6185190JKghJG','editor','delegate','3027456kLmhKg','_chatBalloonView','filter','_toggleRotatorButtonsInDialogHeader','toggleRotatorButtonsVisibility','setState','isTrackChangesOn','800LeMDgq','once','updateContent','showPrevious','togglePartToolbarEnabled','has','previousButtonView','nextButtonView','296532aAoDHo','42GpynRJ','get','showDiff','addMany','view','set','showNext','isPremiumPlugin','locale','children','applySuggestion','bind','2gZimxv','plugins','beforeDialogClosed','10810bhoiFu','trackChanges','areActionsDisabled','TrackChanges','focus','_restoreDefaultViewFocus','value','open','config'];_0x5e40=function(){return _0x4e7875;};return _0x5e40();}
|