@ckeditor/ckeditor5-ai 47.4.0-alpha.0 → 47.4.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/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/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/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/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/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/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/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/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/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 _0x2d32c7=_0x1745;(function(_0x2c275f,_0x245c8d){const _0x22f9d1=_0x1745,_0x46c871=_0x2c275f();while(!![]){try{const _0x55767b=parseInt(_0x22f9d1(0x1bb))/0x1+parseInt(_0x22f9d1(0x1a8))/0x2+-parseInt(_0x22f9d1(0x1c7))/0x3*(-parseInt(_0x22f9d1(0x189))/0x4)+-parseInt(_0x22f9d1(0x181))/0x5+parseInt(_0x22f9d1(0x1c5))/0x6*(-parseInt(_0x22f9d1(0x196))/0x7)+parseInt(_0x22f9d1(0x1a9))/0x8+parseInt(_0x22f9d1(0x18c))/0x9*(-parseInt(_0x22f9d1(0x184))/0xa);if(_0x55767b===_0x245c8d)break;else _0x46c871['push'](_0x46c871['shift']());}catch(_0x1cddfa){_0x46c871['push'](_0x46c871['shift']());}}}(_0xa56d,0xa7bf5));import{FocusTracker as _0x14b49e,KeystrokeHandler as _0x40d069}from'ckeditor5/src/utils.js';import{View as _0x7e98c2,FocusCycler as _0x4000bf,createLabeledTextarea as _0x289d91}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x26efe7,AIFormToolbarViewMainActionLabel as _0x8662ff}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x295f62}from'./aiformcontentarea.js';import{AIFormErrorView as _0x115bdf}from'./aiformerrorview.js';import{AIFormPromptView as _0x16e129}from'./aiformpromptview.js';function _0x1745(_0x2a3cc0,_0x1db161){const _0xa56de2=_0xa56d();return _0x1745=function(_0x1745be,_0x8b37c7){_0x1745be=_0x1745be-0x17a;let _0x3dc0b4=_0xa56de2[_0x1745be];return _0x3dc0b4;},_0x1745(_0x2a3cc0,_0x1db161);}import{AIHistoryListView as _0x351eb3}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x97744}from'./aihistorylistitemview.js';import{PromptHistory as _0x40c842}from'./prompthistory.js';import{getTranslation as _0x45206a}from'../../utils/common-translations.js';function _0xa56d(){const _0x464810=['contentArea','locale','chain','_focusables','_createPromptView','shift\x20+\x20tab','copyButtonView','isProcessing','clearHistory','4918755paFSbQ','text','toolbar','977950cvcyYd','ck-hidden','fieldView','fire','keystrokes','8KfxALj','delegate','isVisible','63znTIFj','insertContentBelow','Empty\x20history','focus','listenTo','replaceContent','execute','tryAgainButton','focusTracker','stopButton','532nCqvXs','promptView','reset','_createToolbar','queryView','startProcessing','insertButton','historyGroupView','element','Ask\x20AI\x20to\x20improve\x20generated\x20text','ck-ai-form-content','createCollection','isEnabled','set','_promptHistory','replaceButton','isError','value','548958dwKSEZ','6733880HowGtK','finishProcessing','setTemplate','bindTo','high','AI_ERROR_FAILED','items','prompt','div','search','tab','bind','handleError','label','clear','stopProcessing','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','submit','1026749sCSbbU','tryAgainEvent','focusFirst','Ask\x20AI\x20to\x20edit\x20or\x20generate','add','bindTemplate','ck-ai-form','focusCycler','errorView','REPLACE','19038NsKZYl','_createHistoryView','680391faxHBE','trim','focusLast','mainAction','submitPrompt','render'];_0xa56d=function(){return _0x464810;};return _0xa56d();}import{escape as _0x3a1709}from'es-toolkit/compat';export class AIFormView extends _0x7e98c2{[_0x2d32c7(0x194)];[_0x2d32c7(0x188)];[_0x2d32c7(0x1cd)];[_0x2d32c7(0x183)];[_0x2d32c7(0x197)];[_0x2d32c7(0x1c3)];[_0x2d32c7(0x17b)];[_0x2d32c7(0x1c2)];[_0x2d32c7(0x1a4)];constructor(_0x1a21f1,_0x1ac542,_0x1f71ce=''){const _0x304904=_0x2d32c7;super(_0x1a21f1),this[_0x304904(0x1a3)](_0x304904(0x1a2),!0x0),this[_0x304904(0x1a3)](_0x304904(0x17f),!0x1),this[_0x304904(0x1a3)](_0x304904(0x1b0),''),this[_0x304904(0x1a3)](_0x304904(0x1a7),''),this[_0x304904(0x1a3)](_0x304904(0x1a6),!0x1),this[_0x304904(0x1a3)](_0x304904(0x1ca),_0x8662ff[_0x304904(0x1c4)]),this[_0x304904(0x1a4)]=new _0x40c842(),this[_0x304904(0x1c3)]=new _0x115bdf(_0x1a21f1),this[_0x304904(0x1cd)]=new _0x295f62(_0x1a21f1,_0x1f71ce),this[_0x304904(0x1cd)][_0x304904(0x1b4)](_0x304904(0x17f))['to'](this),this[_0x304904(0x1cd)][_0x304904(0x1b4)](_0x304904(0x1a7))['to'](this),this[_0x304904(0x183)]=this[_0x304904(0x199)](),this[_0x304904(0x183)][_0x304904(0x1b4)](_0x304904(0x1ca))['to'](this),this[_0x304904(0x197)]=this[_0x304904(0x17c)](),this[_0x304904(0x194)]=new _0x14b49e(),this[_0x304904(0x188)]=new _0x40d069(),this[_0x304904(0x17b)]=this[_0x304904(0x1a1)]([this[_0x304904(0x1cd)],this[_0x304904(0x1cd)][_0x304904(0x17e)],this[_0x304904(0x183)],this[_0x304904(0x197)]]),this[_0x304904(0x1c2)]=new _0x4000bf({'focusables':this[_0x304904(0x17b)],'focusTracker':this[_0x304904(0x194)],'keystrokeHandler':this[_0x304904(0x188)],'actions':{'focusPrevious':_0x304904(0x17d),'focusNext':_0x304904(0x1b3)}}),this[_0x304904(0x1c2)][_0x304904(0x17a)](this[_0x304904(0x197)][_0x304904(0x1c2)]),this[_0x304904(0x197)][_0x304904(0x19a)][_0x304904(0x186)][_0x304904(0x1b4)](_0x304904(0x1a7))['to'](this,_0x304904(0x1b0));const _0x1e837d=this[_0x304904(0x1c0)];this[_0x304904(0x1ab)]({'tag':_0x304904(0x1b1),'attributes':{'class':['ck',_0x304904(0x1c1),_0x1ac542],'tabindex':'-1'},'children':[{'tag':_0x304904(0x1b1),'attributes':{'class':['ck',_0x304904(0x1a0)]},'children':[{'tag':_0x304904(0x1b1),'attributes':{'class':[_0x1e837d['if'](_0x304904(0x1a6),_0x304904(0x185),_0x294c39=>!_0x294c39)]},'children':[this[_0x304904(0x1c3)]]},this[_0x304904(0x1cd)],this[_0x304904(0x183)],this[_0x304904(0x197)]]}]});}[_0x2d32c7(0x1cc)](){const _0xb0ab33=_0x2d32c7;super[_0xb0ab33(0x1cc)](),this[_0xb0ab33(0x194)][_0xb0ab33(0x1bf)](this[_0xb0ab33(0x1cd)][_0xb0ab33(0x19e)]),this[_0xb0ab33(0x194)][_0xb0ab33(0x1bf)](this[_0xb0ab33(0x1cd)][_0xb0ab33(0x17e)][_0xb0ab33(0x19e)]),this[_0xb0ab33(0x194)][_0xb0ab33(0x1bf)](this[_0xb0ab33(0x183)][_0xb0ab33(0x19e)]),this[_0xb0ab33(0x194)][_0xb0ab33(0x1bf)](this[_0xb0ab33(0x197)][_0xb0ab33(0x19e)]),this[_0xb0ab33(0x188)][_0xb0ab33(0x190)](this[_0xb0ab33(0x19e)]);}[_0x2d32c7(0x18f)](_0x39d63a=0x1){const _0x1621cc=_0x2d32c7;-0x1===_0x39d63a?this[_0x1621cc(0x1c2)][_0x1621cc(0x1c9)]():this[_0x1621cc(0x1c2)][_0x1621cc(0x1bd)]();}[_0x2d32c7(0x198)](){const _0x20d70e=_0x2d32c7;this[_0x20d70e(0x1b0)]='',this[_0x20d70e(0x1a7)]='',this[_0x20d70e(0x1a6)]=!0x1,this[_0x20d70e(0x197)][_0x20d70e(0x198)](),this[_0x20d70e(0x1cd)][_0x20d70e(0x18b)]=!0x1,this[_0x20d70e(0x183)][_0x20d70e(0x18b)]=!0x1;}[_0x2d32c7(0x17c)](){const _0x2a5ebd=_0x2d32c7,_0x57877a=this[_0x2a5ebd(0x1ce)],_0x321dea=new _0x16e129(_0x57877a,{'queryView':{'label':_0x45206a(_0x57877a,_0x2a5ebd(0x1be)),'creator':_0x289d91,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x45206a(_0x57877a,_0x2a5ebd(0x18e)),'secondary':_0x45206a(_0x57877a,_0x2a5ebd(0x1b9))}}},'filteredView':this[_0x2a5ebd(0x1c6)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x321dea[_0x2a5ebd(0x1b4)](_0x2a5ebd(0x1a2))['to'](this,_0x2a5ebd(0x1a2),this,_0x2a5ebd(0x17f),(_0x1fcfad,_0x1b66be)=>_0x1fcfad&&!_0x1b66be),this[_0x2a5ebd(0x190)](_0x321dea,_0x2a5ebd(0x1ba),(_0x35861a,_0x323a66)=>{const _0xb45343=_0x2a5ebd;this[_0xb45343(0x1b0)]=_0x323a66;const _0x2e05ef=_0x3a1709(_0x323a66);this[_0xb45343(0x187)](_0xb45343(0x1cb),_0x2e05ef),_0x323a66[_0xb45343(0x1c8)]()&&this[_0xb45343(0x1a4)][_0xb45343(0x1bf)]({'prompt':_0x2e05ef},0x0);},{'priority':_0x2a5ebd(0x1ad)}),_0x321dea;}[_0x2d32c7(0x1c6)](){const _0x39e16c=_0x2d32c7,_0x341d14=new _0x351eb3(this[_0x39e16c(0x1ce)]);return _0x341d14[_0x39e16c(0x19d)][_0x39e16c(0x1af)][_0x39e16c(0x1ac)](this[_0x39e16c(0x1a4)])['as'](_0x97744),_0x341d14['on'](_0x39e16c(0x180),()=>{const _0x246c21=_0x39e16c;this[_0x246c21(0x1a4)][_0x246c21(0x1b7)](),this[_0x246c21(0x197)][_0x246c21(0x1b2)](''),this[_0x246c21(0x197)][_0x246c21(0x18f)]();}),_0x341d14;}[_0x2d32c7(0x199)](){const _0x4ac99b=_0x2d32c7,_0x4b1b7c=new _0x26efe7(this[_0x4ac99b(0x1ce)]);return _0x4b1b7c[_0x4ac99b(0x1a5)][_0x4ac99b(0x1b4)](_0x4ac99b(0x1a2))['to'](this,_0x4ac99b(0x1a2),this,_0x4ac99b(0x17f),this,_0x4ac99b(0x1a7),(_0x1cffa3,_0xdcadf,_0x345a45)=>_0x1cffa3&&!_0xdcadf&&!!_0x345a45),_0x4b1b7c[_0x4ac99b(0x1a5)][_0x4ac99b(0x18a)](_0x4ac99b(0x192))['to'](this,_0x4ac99b(0x191)),_0x4b1b7c[_0x4ac99b(0x19c)][_0x4ac99b(0x1b4)](_0x4ac99b(0x1a2))['to'](this,_0x4ac99b(0x1a2),this,_0x4ac99b(0x17f),this,_0x4ac99b(0x1a7),(_0x44e414,_0x6d5e,_0x29bf98)=>_0x44e414&&!_0x6d5e&&!!_0x29bf98),_0x4b1b7c[_0x4ac99b(0x19c)][_0x4ac99b(0x18a)](_0x4ac99b(0x192))['to'](this,_0x4ac99b(0x18d)),_0x4b1b7c[_0x4ac99b(0x193)][_0x4ac99b(0x1b4)](_0x4ac99b(0x1a2))['to'](this,_0x4ac99b(0x1a2),this,_0x4ac99b(0x17f),(_0x3ab00f,_0x354772)=>_0x3ab00f&&!_0x354772),_0x4b1b7c[_0x4ac99b(0x193)][_0x4ac99b(0x18a)](_0x4ac99b(0x192))['to'](this,_0x4ac99b(0x1bc)),_0x4b1b7c[_0x4ac99b(0x195)][_0x4ac99b(0x1b4)](_0x4ac99b(0x1a2))['to'](this,_0x4ac99b(0x17f)),_0x4b1b7c[_0x4ac99b(0x195)][_0x4ac99b(0x18a)](_0x4ac99b(0x192))['to'](this,_0x4ac99b(0x1b8)),_0x4b1b7c;}[_0x2d32c7(0x19b)](){const _0x33296c=_0x2d32c7;this[_0x33296c(0x1a7)]='',this[_0x33296c(0x1a6)]=!0x1,this[_0x33296c(0x17f)]=!0x0,this[_0x33296c(0x1cd)][_0x33296c(0x18b)]=!0x0,this[_0x33296c(0x183)][_0x33296c(0x18b)]=!0x0,this[_0x33296c(0x1cd)][_0x33296c(0x18f)]();}[_0x2d32c7(0x1aa)](){const _0x4b3a7a=_0x2d32c7,_0x19b6ed=this[_0x4b3a7a(0x1ce)];this[_0x4b3a7a(0x17f)]=!0x1,this[_0x4b3a7a(0x1b0)]='',this[_0x4b3a7a(0x197)][_0x4b3a7a(0x198)](),this[_0x4b3a7a(0x1a7)]&&(this[_0x4b3a7a(0x197)][_0x4b3a7a(0x19a)][_0x4b3a7a(0x1b6)]=_0x45206a(_0x19b6ed,_0x4b3a7a(0x19f)));}[_0x2d32c7(0x1b5)](_0x4c1f10){const _0x977930=_0x2d32c7,_0x4d6743=this[_0x977930(0x1ce)];this[_0x977930(0x1aa)](),this[_0x977930(0x1a6)]=!0x0,this[_0x977930(0x1c3)][_0x977930(0x182)]=_0x4c1f10||_0x45206a(_0x4d6743,_0x977930(0x1ae)),this[_0x977930(0x1a7)]||(this[_0x977930(0x1cd)][_0x977930(0x18b)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3b35(){const _0x3a37a1=['fire','474KdqGFT','11BZAPeq','set','add','2720070RPpyGJ','9TfKDwM','children','954020HPJChp','prompt','6OdAjzG','1104467PRexSL','197380dwSazl','124840Htfbbv','locale','execute','1710024nUyRRp','3545vszfep'];_0x3b35=function(){return _0x3a37a1;};return _0x3b35();}(function(_0x54aa92,_0x3e51a5){const _0xd45b67=_0x140f,_0x157fad=_0x54aa92();while(!![]){try{const _0x32e386=-parseInt(_0xd45b67(0x198))/0x1+parseInt(_0xd45b67(0x199))/0x2*(-parseInt(_0xd45b67(0x196))/0x3)+-parseInt(_0xd45b67(0x194))/0x4+-parseInt(_0xd45b67(0x18b))/0x5*(-parseInt(_0xd45b67(0x18d))/0x6)+parseInt(_0xd45b67(0x197))/0x7+-parseInt(_0xd45b67(0x18a))/0x8*(-parseInt(_0xd45b67(0x192))/0x9)+-parseInt(_0xd45b67(0x191))/0xa*(-parseInt(_0xd45b67(0x18e))/0xb);if(_0x32e386===_0x3e51a5)break;else _0x157fad['push'](_0x157fad['shift']());}catch(_0x1cb4d2){_0x157fad['push'](_0x157fad['shift']());}}}(_0x3b35,0x21e4b));function _0x140f(_0x4057a8,_0x1b78ce){const _0x3b3541=_0x3b35();return _0x140f=function(_0x140f68,_0x112373){_0x140f68=_0x140f68-0x18a;let _0x497ab6=_0x3b3541[_0x140f68];return _0x497ab6;},_0x140f(_0x4057a8,_0x1b78ce);}import{ListItemView as _0x183b50,ButtonView as _0x397bed,ButtonLabelView as _0x204b7e}from'ckeditor5/src/ui.js';import{unescape as _0x26ff13}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x183b50{constructor(_0x4b5ac8){const _0x2dc2ea=_0x140f;super();const _0x27ca14=new _0x204b7e(),_0x32ef93=new _0x397bed(this[_0x2dc2ea(0x19a)],_0x27ca14);this[_0x2dc2ea(0x193)][_0x2dc2ea(0x190)](_0x32ef93),_0x32ef93[_0x2dc2ea(0x18f)]({'label':_0x4b5ac8[_0x2dc2ea(0x195)],'withText':!0x0}),_0x32ef93['on'](_0x2dc2ea(0x19b),()=>{const _0x398d75=_0x2dc2ea;this[_0x398d75(0x18c)](_0x398d75(0x19b),{'value':_0x26ff13(_0x4b5ac8[_0x398d75(0x195)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3baf1d=_0x49c5;(function(_0x79d60e,_0x2ea7f9){const _0x4c5dd8=_0x49c5,_0x34a953=_0x79d60e();while(!![]){try{const _0x2badff=-parseInt(_0x4c5dd8(0x116))/0x1+-parseInt(_0x4c5dd8(0x11d))/0x2*(parseInt(_0x4c5dd8(0x10c))/0x3)+parseInt(_0x4c5dd8(0x120))/0x4+parseInt(_0x4c5dd8(0x123))/0x5+parseInt(_0x4c5dd8(0x10f))/0x6+-parseInt(_0x4c5dd8(0x11e))/0x7*(parseInt(_0x4c5dd8(0x10a))/0x8)+-parseInt(_0x4c5dd8(0x10d))/0x9*(-parseInt(_0x4c5dd8(0x115))/0xa);if(_0x2badff===_0x2ea7f9)break;else _0x34a953['push'](_0x34a953['shift']());}catch(_0x223b43){_0x34a953['push'](_0x34a953['shift']());}}}(_0x1f36,0x29d2a));function _0x1f36(){const _0xa68a7=['118993URvDRf','_createClearHistoryButton','818444jrgCmp','length','historyGroupView','1080280JGgvVf','items','16AIkSBc','delegate','103485ZzYIVU','45VjcnYP','clearHistory','575196bNhHMR','execute','clearHistoryButton','Prompt\x20history','add','Clear','85190OujFBl','250339rePFaf','filter','fire','set','locale','label','children','6ctxVYX'];_0x1f36=function(){return _0xa68a7;};return _0x1f36();}function _0x49c5(_0x4b3f1f,_0x115ac6){const _0x1f3610=_0x1f36();return _0x49c5=function(_0x49c590,_0x517f52){_0x49c590=_0x49c590-0x109;let _0x28ece9=_0x1f3610[_0x49c590];return _0x28ece9;},_0x49c5(_0x4b3f1f,_0x115ac6);}import{ListView as _0x10f288,ListItemGroupView as _0x25dfba,ButtonView as _0x3ef77c}from'ckeditor5/src/ui.js';import{getTranslation as _0x2fb84b}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x10f288{[_0x3baf1d(0x122)];[_0x3baf1d(0x111)];constructor(_0x538148){const _0x10ca83=_0x3baf1d;super(_0x538148),this[_0x10ca83(0x111)]=this[_0x10ca83(0x11f)](),this[_0x10ca83(0x122)]=new _0x25dfba(),this[_0x10ca83(0x122)][_0x10ca83(0x11c)][_0x10ca83(0x113)](this[_0x10ca83(0x111)],0x1),this[_0x10ca83(0x122)][_0x10ca83(0x11b)]=_0x2fb84b(_0x538148,_0x10ca83(0x112)),this[_0x10ca83(0x122)][_0x10ca83(0x109)][_0x10ca83(0x10b)](_0x10ca83(0x110))['to'](this),this[_0x10ca83(0x109)][_0x10ca83(0x113)](this[_0x10ca83(0x122)]);}[_0x3baf1d(0x117)](){const _0x366fe5=_0x3baf1d;let _0x120515=0x0;for(const _0x15554a of this[_0x366fe5(0x109)])_0x120515+=_0x15554a[_0x366fe5(0x109)][_0x366fe5(0x121)];return{'resultsCount':_0x120515,'totalItemsCount':_0x120515};}[_0x3baf1d(0x11f)](){const _0x31f789=_0x3baf1d,_0x32021f=this[_0x31f789(0x11a)],_0x4b7eb1=new _0x3ef77c(this[_0x31f789(0x11a)]);return _0x4b7eb1[_0x31f789(0x119)]({'label':'('+_0x2fb84b(_0x32021f,_0x31f789(0x114))+')','withText':!0x0}),_0x4b7eb1['on'](_0x31f789(0x110),()=>this[_0x31f789(0x118)](_0x31f789(0x10e))),_0x4b7eb1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa042b4=_0x2b4a;(function(_0xcbc93e,_0x58e5df){const _0x83123a=_0x2b4a,_0x2b38ae=_0xcbc93e();while(!![]){try{const _0x1cc80d=-parseInt(_0x83123a(0x120))/0x1*(-parseInt(_0x83123a(0x12a))/0x2)+parseInt(_0x83123a(0x129))/0x3*(parseInt(_0x83123a(0x125))/0x4)+-parseInt(_0x83123a(0x131))/0x5*(-parseInt(_0x83123a(0x128))/0x6)+parseInt(_0x83123a(0x12e))/0x7+-parseInt(_0x83123a(0x13a))/0x8*(-parseInt(_0x83123a(0x138))/0x9)+parseInt(_0x83123a(0x132))/0xa+parseInt(_0x83123a(0x134))/0xb*(-parseInt(_0x83123a(0x122))/0xc);if(_0x1cc80d===_0x58e5df)break;else _0x2b38ae['push'](_0x2b38ae['shift']());}catch(_0x56652a){_0x2b38ae['push'](_0x2b38ae['shift']());}}}(_0x2dbb,0x3028f));import{Collection as _0x2b01a4}from'ckeditor5/src/utils.js';const So=_0xa042b4(0x139);function _0x2b4a(_0x3819f9,_0x2ba167){const _0x2dbb4f=_0x2dbb();return _0x2b4a=function(_0x2b4aad,_0xfc3e0c){_0x2b4aad=_0x2b4aad-0x11f;let _0xbc20f1=_0x2dbb4f[_0x2b4aad];return _0xbc20f1;},_0x2b4a(_0x3819f9,_0x2ba167);}export class PromptHistory extends _0x2b01a4{constructor(){const _0xf313ca=_0xa042b4;super(),this[_0xf313ca(0x136)](),this['on'](_0xf313ca(0x133),(_0x4b0b91,_0xc76900)=>{const _0x3620fe=_0xf313ca,_0x3696d8=fo(_0xc76900[_0x3620fe(0x12b)]);for(const _0x4bdabb of this)if(_0x4bdabb!=_0xc76900&&fo(_0x4bdabb[_0x3620fe(0x12b)])===_0x3696d8){this[_0x3620fe(0x12f)](_0x4bdabb);break;}this[_0x3620fe(0x130)]>0x14&&this[_0x3620fe(0x12f)](this[_0x3620fe(0x121)]),this[_0x3620fe(0x127)]();}),this['on'](_0xf313ca(0x12f),()=>{const _0x30f8aa=_0xf313ca;this[_0x30f8aa(0x127)]();});}[_0xa042b4(0x136)](){const _0x4b1166=_0xa042b4,_0x5c019d=sessionStorage[_0x4b1166(0x135)](So)||'[]';this[_0x4b1166(0x12c)](JSON[_0x4b1166(0x123)](_0x5c019d));}[_0xa042b4(0x127)](){const _0xe6a4a2=_0xa042b4;sessionStorage[_0xe6a4a2(0x11f)](So,JSON[_0xe6a4a2(0x124)](this[_0xe6a4a2(0x12d)](_0x3b6a00=>_0x3b6a00)));}}function fo(_0x3fe9ff){const _0x37934f=_0xa042b4;return _0x3fe9ff[_0x37934f(0x137)]()[_0x37934f(0x126)]();}function _0x2dbb(){const _0x360344=['204pGssBr','prompt','addMany','map','1468362urKCRS','remove','length','25DcFJgG','3497940scSBcD','add','12388387gkDyuR','getItem','_loadFromSessionStorage','toLowerCase','651645ySbXHR','CKEditor/AIFormView/PromptHistory','24jMhhIF','setItem','814RszjWl','last','12IsBUcx','parse','stringify','16JliCoD','trim','_saveToSessionStorage','161166hjupQG','247029wZvLCx'];_0x2dbb=function(){return _0x360344;};return _0x2dbb();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x119d4a=_0x4827;function _0x3c89(){const _0x5b6100=['isCollapsed','showUI','execute','model','selection','document','set','hasContent','change:_hasContext','ai.assistant.disabledElements','from','name','change:isEnabled','1929955pPpFqv','_commandDefinitions','plugins','element','12pesirO','isEmpty','getItems','1675884VrXenZ','2842704JZgUWc','enabledCommandsIds','config','add','requiresContent','getRanges','4738405WKaxyV','getSelectedBlocks','editor','732768YMPLiW','getFirstRange','get','11114912PlpNye','length','860270wjctAN','refresh','isEnabled','includes','custom','_hasContext','values'];_0x3c89=function(){return _0x5b6100;};return _0x3c89();}(function(_0x16a272,_0x575128){const _0x2c1095=_0x4827,_0x4d6cce=_0x16a272();while(!![]){try{const _0x518d8d=-parseInt(_0x2c1095(0x184))/0x1+-parseInt(_0x2c1095(0x189))/0x2+-parseInt(_0x2c1095(0x1a4))/0x3+-parseInt(_0x2c1095(0x1a5))/0x4+parseInt(_0x2c1095(0x19d))/0x5*(parseInt(_0x2c1095(0x1a1))/0x6)+parseInt(_0x2c1095(0x181))/0x7+parseInt(_0x2c1095(0x187))/0x8;if(_0x518d8d===_0x575128)break;else _0x4d6cce['push'](_0x4d6cce['shift']());}catch(_0x2942a2){_0x4d6cce['push'](_0x4d6cce['shift']());}}}(_0x3c89,0x63226));function _0x4827(_0x375b2c,_0x1fb83b){const _0x3c893e=_0x3c89();return _0x4827=function(_0x4827d7,_0x1ed848){_0x4827d7=_0x4827d7-0x17e;let _0x6ecb2a=_0x3c893e[_0x4827d7];return _0x6ecb2a;},_0x4827(_0x375b2c,_0x1fb83b);}import{Command as _0x48cc25}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x184f95}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x48cc25{[_0x119d4a(0x19e)];constructor(_0x29f082,_0x2f4503){const _0x5bab85=_0x119d4a;super(_0x29f082),this[_0x5bab85(0x19e)]=_0x2f4503,this[_0x5bab85(0x196)](_0x5bab85(0x1a6),[]),this['on'](_0x5bab85(0x198),(_0xcf9ca3,_0x52ddfb,_0x2d3dc5)=>{const _0x127428=_0x5bab85;this[_0x127428(0x18b)]&&(this[_0x127428(0x1a6)]=os(this[_0x127428(0x19e)],_0x2d3dc5));}),this[_0x5bab85(0x196)](_0x5bab85(0x18e),!0x1),this['on'](_0x5bab85(0x19c),(_0x5357c8,_0x578ecf,_0x44eb46)=>{const _0x2b0ee4=_0x5bab85;this[_0x2b0ee4(0x1a6)]=_0x44eb46?os(this[_0x2b0ee4(0x19e)],this[_0x2b0ee4(0x18e)]):[];});}[_0x119d4a(0x18a)](){const _0x2196b4=_0x119d4a,_0xdf64e3=this[_0x2196b4(0x183)][_0x2196b4(0x193)];this[_0x2196b4(0x18e)]=function(_0x107719){const _0xb19cfd=_0x2196b4,_0x5712b8=_0x107719[_0xb19cfd(0x195)][_0xb19cfd(0x194)];return _0x5712b8[_0xb19cfd(0x190)]?0x0!==[..._0x5712b8[_0xb19cfd(0x182)]()][_0xb19cfd(0x188)]&&![..._0x5712b8[_0xb19cfd(0x182)]()][0x0][_0xb19cfd(0x1a2)]:!!_0x107719[_0xb19cfd(0x197)](_0x5712b8[_0xb19cfd(0x185)]());}(_0xdf64e3);const _0x19bbf0=_0xdf64e3[_0x2196b4(0x195)][_0x2196b4(0x194)],_0x146488=this[_0x2196b4(0x183)][_0x2196b4(0x1a7)][_0x2196b4(0x186)](_0x2196b4(0x199));for(const _0x4428e6 of _0x19bbf0[_0x2196b4(0x180)]())for(const _0x138366 of _0x4428e6[_0x2196b4(0x1a3)]())if(_0x138366['is'](_0x2196b4(0x1a0))&&_0x146488[_0x2196b4(0x18c)](_0x138366[_0x2196b4(0x19b)]))return void(this[_0x2196b4(0x18b)]=!0x1);this[_0x2196b4(0x18b)]=!0x0;}[_0x119d4a(0x192)](_0x29808f='',_0x25762e='',_0x396c2e=_0x119d4a(0x18d)){const _0x10ccf1=_0x119d4a;this[_0x10ccf1(0x183)][_0x10ccf1(0x19f)][_0x10ccf1(0x186)](_0x184f95)[_0x10ccf1(0x191)](_0x29808f,_0x25762e,_0x396c2e);}}function os(_0x3d220d,_0xe8e557){const _0x4dbb24=_0x119d4a,_0x8f0bb3=new Set();for(const _0x5d36fd of _0x3d220d[_0x4dbb24(0x18f)]())(_0xe8e557||!0x1===_0x5d36fd[_0x4dbb24(0x17f)])&&_0x8f0bb3[_0x4dbb24(0x17e)](_0x5d36fd['id']);return Array[_0x4dbb24(0x19a)](_0x8f0bb3);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x52845e=_0x276f;(function(_0x528194,_0x20f4e7){const _0x1c0ee1=_0x276f,_0x26e359=_0x528194();while(!![]){try{const _0x48c78f=-parseInt(_0x1c0ee1(0x1bb))/0x1*(parseInt(_0x1c0ee1(0x209))/0x2)+-parseInt(_0x1c0ee1(0x1bd))/0x3+parseInt(_0x1c0ee1(0x1b3))/0x4+parseInt(_0x1c0ee1(0x211))/0x5+-parseInt(_0x1c0ee1(0x215))/0x6+parseInt(_0x1c0ee1(0x21a))/0x7*(-parseInt(_0x1c0ee1(0x1e3))/0x8)+parseInt(_0x1c0ee1(0x1b7))/0x9;if(_0x48c78f===_0x20f4e7)break;else _0x26e359['push'](_0x26e359['shift']());}catch(_0x41f152){_0x26e359['push'](_0x26e359['shift']());}}}(_0x12c0,0x3ef25));import{ContextPlugin as _0x14c959}from'ckeditor5/src/core.js';import{AIConnector as _0x36dfd0}from'../aicore/aiconnector.js';import{AIEditing as _0x5808db}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x248df9,AIBalloonView as _0x5db8b5}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x4b022c}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x42086d,Rect as _0x4113e9,scrollViewportToShowTarget as _0x1db90c}from'ckeditor5/src/utils.js';function _0x12c0(){const _0x275554=['root','bind','updatePosition','window','_calculateOptimalTopPosition','_setupMarkerRemovalListener','delegate','off','trackChanges','$graveyard','_setupVisualSelection','get','ai-selection:','close','length','ai-balloon','start','AIBalloon','isOfficialPlugin','ai-balloon-','config','startAutoScroll','iconView','fire','selectionRemoved','balloonView','getIntersection','821722ZdLmPb','title','view','label','_updateBalloon','\x20ai-balloon-rotator','once','content','783240RCWFWC','Dialog','requires','filter','52488SwHEAg','aiBalloon','setupRotator','stopAutoScroll','_calculateDialogPosition','1169xqZgPt','hide','isPremiumPlugin','document','getVisible','1905448NHFjCz','pluginName','dialogClosed','AI_ACTIONS_SELECTION_REMOVED_ERROR','3018150JAhdIH','height','headerView','value','1ZbkBIq','isOpen','798117tuHTFh','change','isEqual','ai-selection','index','open','isTrackChangesOn','stopListening','hideFakeVisualSelection','_isUpdatingMarkers','ai-balloon-selection','_config','startsWith','_pendingRenderCallback','getBoundingRect','_getSelectionElements','max','markers','showBlockingError','commands','listenTo','getChangedMarkers','model','end','show','render','_showDialog','round','locale','_cleanupMarkerRemovalListener','mainView','context','AIEditing','editing','rootName','showRotator','plugins','updateContent','1192eUyOAC','getMarkersGroup','differ','icon','ranges','ai.availableReplyActions','showFakeVisualSelection','bottom','left','top','width'];_0x12c0=function(){return _0x275554;};return _0x12c0();}import{getEditorFromContext as _0x123f56}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x1cf8b1}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x30c577}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x248df9,_0x52845e(0x1b5),_0x52845e(0x206)];function _0x276f(_0x4268da,_0x5c505f){const _0x12c098=_0x12c0();return _0x276f=function(_0x276f76,_0x25b115){_0x276f76=_0x276f76-0x1b1;let _0x577442=_0x12c098[_0x276f76];return _0x577442;},_0x276f(_0x4268da,_0x5c505f);}const mt=0xa;export class AIBalloon extends _0x14c959{static get[_0x52845e(0x213)](){return[_0x36dfd0,_0x5808db];}static get[_0x52845e(0x1b4)](){const _0x59e41b=_0x52845e;return _0x59e41b(0x1ff);}static get[_0x52845e(0x200)](){return!0x0;}static get[_0x52845e(0x21c)](){return!0x0;}[_0x52845e(0x1bc)]=!0x1;[_0x52845e(0x1c8)];[_0x52845e(0x1c6)]=!0x1;[_0x52845e(0x1ca)]=null;[_0x52845e(0x1c2)](_0x5a6ade){const _0x2b5d14=_0x52845e,_0x24daa0=_0x123f56(this[_0x2b5d14(0x1dc)]);if(this[_0x2b5d14(0x1c8)]=_0x5a6ade,this[_0x2b5d14(0x1bc)])return void this[_0x2b5d14(0x20d)](_0x5a6ade);const _0xdbfd20=this[_0x2b5d14(0x1dc)][_0x2b5d14(0x202)][_0x2b5d14(0x1f9)](_0x2b5d14(0x1e8))||[..._0x1cf8b1],_0x4f50e2=_0x24daa0?.[_0x2b5d14(0x1d0)][_0x2b5d14(0x1f9)](_0x2b5d14(0x1f6)),_0x3fcc8d=_0x4f50e2?.[_0x2b5d14(0x1ba)];this[_0x2b5d14(0x207)]=new _0x5db8b5(_0x24daa0[_0x2b5d14(0x1d9)],_0x5a6ade,_0xdbfd20,!!_0x3fcc8d),this[_0x2b5d14(0x207)][_0x2b5d14(0x1f4)](..._0x248df9)['to'](this),_0x4f50e2&&this[_0x2b5d14(0x207)][_0x2b5d14(0x1ef)](_0x2b5d14(0x1c3))['to'](_0x4f50e2,_0x2b5d14(0x1ba)),this[_0x2b5d14(0x1d7)](_0x5a6ade);}[_0x52845e(0x1fb)](){const _0x39bc60=_0x52845e;_0x123f56(this[_0x39bc60(0x1dc)])[_0x39bc60(0x1e1)][_0x39bc60(0x1f9)](_0x39bc60(0x212))[_0x39bc60(0x21b)]();}[_0x52845e(0x203)](){const _0x195307=_0x52845e;this[_0x195307(0x207)]&&this[_0x195307(0x207)][_0x195307(0x203)]();}[_0x52845e(0x218)](){const _0x4bfeb6=_0x52845e;this[_0x4bfeb6(0x207)]&&this[_0x4bfeb6(0x207)][_0x4bfeb6(0x218)]();}[_0x52845e(0x20d)](_0x3aef6a){const _0x41fd53=_0x52845e,_0x556b05=_0x123f56(this[_0x41fd53(0x1dc)]),_0x2c546d=_0x556b05[_0x41fd53(0x1e1)][_0x41fd53(0x1f9)](_0x41fd53(0x212));this[_0x41fd53(0x1ca)]&&(_0x556b05[_0x41fd53(0x1de)][_0x41fd53(0x20b)][_0x41fd53(0x1f5)](_0x41fd53(0x1d6),this[_0x41fd53(0x1ca)]),this[_0x41fd53(0x1ca)]=null),this[_0x41fd53(0x1c6)]=!0x0,_0x2c546d[_0x41fd53(0x20b)]?.[_0x41fd53(0x1b9)]&&(_0x2c546d[_0x41fd53(0x20b)][_0x41fd53(0x1b9)][_0x41fd53(0x20c)]=_0x3aef6a[_0x41fd53(0x20a)],_0x2c546d[_0x41fd53(0x20b)][_0x41fd53(0x1b9)][_0x41fd53(0x204)]&&_0x3aef6a[_0x41fd53(0x1e6)]&&(_0x2c546d[_0x41fd53(0x20b)][_0x41fd53(0x1b9)][_0x41fd53(0x204)][_0x41fd53(0x210)]=_0x3aef6a[_0x41fd53(0x1e6)])),this[_0x41fd53(0x207)][_0x41fd53(0x1e2)](_0x3aef6a[_0x41fd53(0x1db)]),this[_0x41fd53(0x1f8)](_0x3aef6a[_0x41fd53(0x1e7)],_0x3aef6a[_0x41fd53(0x1c1)]),this[_0x41fd53(0x1ca)]=()=>{const _0xca8014=_0x41fd53;this[_0xca8014(0x1c6)]=!0x1,this[_0xca8014(0x1ca)]=null,_0x2c546d[_0xca8014(0x20b)]&&_0x2c546d[_0xca8014(0x20b)][_0xca8014(0x1f0)]();},_0x556b05[_0x41fd53(0x1de)][_0x41fd53(0x20b)][_0x41fd53(0x20f)](_0x41fd53(0x1d6),this[_0x41fd53(0x1ca)]);}[_0x52845e(0x1f8)](_0x50e097,_0x471e66){const _0x541821=_0x52845e;this[_0x541821(0x1dc)][_0x541821(0x1e1)][_0x541821(0x1f9)](_0x5808db)[_0x541821(0x1e9)](_0x50e097,_0x541821(0x201)+_0x471e66,!0x0,!0x0);}[_0x52845e(0x1d7)](_0x2cbcf6){const _0x36fd91=_0x52845e,_0x48bb4c=_0x123f56(this[_0x36fd91(0x1dc)]);this[_0x36fd91(0x1f8)](_0x2cbcf6[_0x36fd91(0x1e7)],_0x2cbcf6[_0x36fd91(0x1c1)]);const _0x3b5da6=this[_0x36fd91(0x1cc)]();_0x3b5da6&&_0x3b5da6[0x0]&&_0x1db90c({'target':_0x3b5da6[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x48bb4c[_0x36fd91(0x1e1)][_0x36fd91(0x1f9)](_0x36fd91(0x212))[_0x36fd91(0x1d5)]({'title':_0x2cbcf6[_0x36fd91(0x20a)],'icon':_0x2cbcf6[_0x36fd91(0x1e6)],'hasCloseButton':!0x0,'id':_0x36fd91(0x216),'position':this[_0x36fd91(0x219)][_0x36fd91(0x1ef)](this),'className':_0x36fd91(0x1fd)+(_0x2cbcf6[_0x36fd91(0x1e0)]?_0x36fd91(0x20e):''),'content':this[_0x36fd91(0x207)],'onShow':_0x5a62e0=>{const _0x3f063f=_0x36fd91;_0x2cbcf6[_0x3f063f(0x1e0)]&&this[_0x3f063f(0x207)][_0x3f063f(0x217)](_0x5a62e0),this[_0x3f063f(0x1f3)](),this[_0x3f063f(0x1bc)]=!0x0;},'onHide':()=>{const _0x2481cf=_0x36fd91;this[_0x2481cf(0x1dc)][_0x2481cf(0x1e1)][_0x2481cf(0x1f9)](_0x2481cf(0x1dd))[_0x2481cf(0x1c5)](_0x2481cf(0x201)+this[_0x2481cf(0x1c8)][_0x2481cf(0x1c1)]),this[_0x2481cf(0x1da)](),this[_0x2481cf(0x205)](_0x2481cf(0x1b5)),this[_0x2481cf(0x1bc)]=!0x1;}});}[_0x52845e(0x219)](_0x33e9ad,_0x2450e3){const _0x497fe3=_0x52845e;if(!_0x2450e3)return null;const _0x5b3256=this[_0x497fe3(0x1cc)]();if(!_0x5b3256||0x0===_0x5b3256[_0x497fe3(0x1fc)])return{'left':Math[_0x497fe3(0x1d8)](_0x2450e3[_0x497fe3(0x1eb)]+_0x2450e3[_0x497fe3(0x1ed)]/0x2-_0x33e9ad[_0x497fe3(0x1ed)]/0x2),'top':Math[_0x497fe3(0x1d8)](_0x2450e3[_0x497fe3(0x1ec)]+_0x2450e3[_0x497fe3(0x1b8)]/0x2-_0x33e9ad[_0x497fe3(0x1b8)]/0x2)};const _0x15fa2d=Math[_0x497fe3(0x1d8)](_0x2450e3[_0x497fe3(0x1eb)]+_0x2450e3[_0x497fe3(0x1ed)]/0x2-_0x33e9ad[_0x497fe3(0x1ed)]/0x2),_0x5e0285=new _0x4113e9(_0x5b3256[0x0]),_0x78a5db=new _0x4113e9(_0x5b3256[_0x5b3256[_0x497fe3(0x1fc)]-0x1]),_0x3ff3b2=_0x33e9ad[_0x497fe3(0x1b8)],_0x2e6cab=this[_0x497fe3(0x1c8)][_0x497fe3(0x1e0)]?0x8:0x0;return{'left':_0x15fa2d,'top':this[_0x497fe3(0x1f2)](_0x5e0285,_0x78a5db,_0x3ff3b2,_0x2e6cab,_0x2450e3)};}[_0x52845e(0x1f2)](_0x5d1e71,_0x29aa47,_0x244afa,_0x55ed09=0x0,_0x399e2f){const _0x21c1bf=_0x52845e,_0x32fa8e=_0x244afa+_0x55ed09,_0x5f51e9=new _0x4113e9(_0x42086d[_0x21c1bf(0x1f1)]),_0x244c9b=[_0x5d1e71[_0x21c1bf(0x1b2)](),_0x29aa47[_0x21c1bf(0x1b2)]()][_0x21c1bf(0x214)](_0x16c351=>_0x16c351),_0x49d93e=_0x4113e9[_0x21c1bf(0x1cb)](_0x244c9b);if(!_0x49d93e)return Math[_0x21c1bf(0x1d8)](_0x399e2f[_0x21c1bf(0x1ec)]+_0x399e2f[_0x21c1bf(0x1b8)]/0x2);const _0x2a8aec=_0x5f51e9[_0x21c1bf(0x208)](_0x49d93e);if(!_0x2a8aec)return Math[_0x21c1bf(0x1d8)](_0x399e2f[_0x21c1bf(0x1ec)]+_0x399e2f[_0x21c1bf(0x1b8)]/0x2);const _0x37b3f2=_0x399e2f[_0x21c1bf(0x1b2)](),_0x1742b7=_0x37b3f2&&_0x49d93e[_0x21c1bf(0x1b8)]>_0x37b3f2[_0x21c1bf(0x1b8)],_0x4c5638=_0x2a8aec[_0x21c1bf(0x1ec)],_0x156e18=_0x2a8aec[_0x21c1bf(0x1ea)];if(_0x1742b7){const _0x6347c=(_0x37b3f2||_0x5f51e9)[_0x21c1bf(0x1b8)]/0x2-_0x32fa8e/0x2,_0x18d9f1=_0x4c5638-mt-_0x399e2f[_0x21c1bf(0x1ec)],_0x1115bd=_0x399e2f[_0x21c1bf(0x1ea)]-_0x156e18-mt;return _0x18d9f1>=_0x32fa8e?Math[_0x21c1bf(0x1cd)](mt,_0x4c5638-_0x32fa8e-mt):_0x1115bd>=_0x32fa8e?_0x156e18+mt:Math[_0x21c1bf(0x1cd)](mt,_0x6347c);}const _0x6a4525=_0x4c5638-_0x32fa8e,_0x5e7eec=_0x399e2f[_0x21c1bf(0x1ea)]-_0x156e18-mt,_0x4bb4d5=_0x4c5638-mt-_0x399e2f[_0x21c1bf(0x1ec)];let _0x50a5ba;if(_0x5e7eec>=_0x32fa8e)_0x50a5ba=_0x156e18+mt;else{if(_0x4bb4d5>=_0x32fa8e)_0x50a5ba=_0x6a4525-mt;else _0x50a5ba=_0x4c5638+_0x49d93e[_0x21c1bf(0x1b8)]/0x2-_0x32fa8e/0x2;}return _0x50a5ba;}[_0x52845e(0x1f3)](){const _0x3d196f=_0x52845e,_0xbc2a12=_0x123f56(this[_0x3d196f(0x1dc)]);this[_0x3d196f(0x1d1)](_0xbc2a12[_0x3d196f(0x1d3)][_0x3d196f(0x1b1)],_0x3d196f(0x1be),()=>{const _0x492ecd=_0x3d196f;if(this[_0x492ecd(0x1c6)])return;for(const {name:_0x27e0f3,data:{newRange:_0x2a644c}}of _0xbc2a12[_0x492ecd(0x1d3)][_0x492ecd(0x1b1)][_0x492ecd(0x1e5)][_0x492ecd(0x1d2)]())if(_0x27e0f3[_0x492ecd(0x1c9)](_0x492ecd(0x1fa))&&(_0x2a644c&&(_0x2a644c[_0x492ecd(0x1fe)][_0x492ecd(0x1bf)](_0x2a644c[_0x492ecd(0x1d4)])||_0x492ecd(0x1f7)==_0x2a644c[_0x492ecd(0x1ee)][_0x492ecd(0x1df)])||null==_0x2a644c)){const _0x16ca2b=_0x30c577(this[_0x492ecd(0x1dc)][_0x492ecd(0x1d9)],_0x492ecd(0x1b6));this[_0x492ecd(0x207)][_0x492ecd(0x1cf)](_0x16ca2b),this[_0x492ecd(0x205)](_0x492ecd(0x206));}});}[_0x52845e(0x1da)](){const _0x109d98=_0x52845e,_0x3adbe0=_0x123f56(this[_0x109d98(0x1dc)]);this[_0x109d98(0x1c4)](_0x3adbe0[_0x109d98(0x1d3)][_0x109d98(0x1b1)]);}[_0x52845e(0x1cc)](){const _0x4b1648=_0x52845e,_0x4a27aa=_0x123f56(this[_0x4b1648(0x1dc)]);return _0x4b022c(_0x4a27aa[_0x4b1648(0x1de)],[..._0x4a27aa[_0x4b1648(0x1d3)][_0x4b1648(0x1ce)][_0x4b1648(0x1e4)](_0x4b1648(0x1c0)),..._0x4a27aa[_0x4b1648(0x1d3)][_0x4b1648(0x1ce)][_0x4b1648(0x1e4)](_0x4b1648(0x1c7))]);}}
|
|
23
|
+
function _0x15a5(_0x4856f7,_0x2c310e){const _0x43b345=_0x43b3();return _0x15a5=function(_0x15a5a7,_0x44c6aa){_0x15a5a7=_0x15a5a7-0x78;let _0x6ad0cd=_0x43b345[_0x15a5a7];return _0x6ad0cd;},_0x15a5(_0x4856f7,_0x2c310e);}const _0x1d91cd=_0x15a5;(function(_0x2f8218,_0x146c2b){const _0x37c6b4=_0x15a5,_0x1b12dd=_0x2f8218();while(!![]){try{const _0xda67b6=-parseInt(_0x37c6b4(0xde))/0x1*(parseInt(_0x37c6b4(0xb4))/0x2)+-parseInt(_0x37c6b4(0xd8))/0x3*(parseInt(_0x37c6b4(0x97))/0x4)+parseInt(_0x37c6b4(0xd9))/0x5*(parseInt(_0x37c6b4(0x90))/0x6)+-parseInt(_0x37c6b4(0xc5))/0x7+-parseInt(_0x37c6b4(0xb5))/0x8+-parseInt(_0x37c6b4(0xaa))/0x9+-parseInt(_0x37c6b4(0x91))/0xa*(-parseInt(_0x37c6b4(0xab))/0xb);if(_0xda67b6===_0x146c2b)break;else _0x1b12dd['push'](_0x1b12dd['shift']());}catch(_0x1a3f37){_0x1b12dd['push'](_0x1b12dd['shift']());}}}(_0x43b3,0x872d9));import{ContextPlugin as _0x15dc63}from'ckeditor5/src/core.js';import{AIConnector as _0x112393}from'../aicore/aiconnector.js';import{AIEditing as _0x86949d}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x21226a,AIBalloonView as _0xc09b77}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';function _0x43b3(){const _0x6c19ba=['showFakeVisualSelection','once','length','AI_ACTIONS_SELECTION_REMOVED_ERROR','markers','index','bottom','ai-selection','ai.availableReplyActions','7137186TnjWiu','ranges','isOfficialPlugin','_pendingRenderCallback','setupRotator','config','showBlockingError','locale','getIntersection','render','updatePosition','isOpen','balloonView','model','context','AIBalloon','differ','startsWith','bind','153eWWrOr','302935BPXKPL','_setupVisualSelection','ai-balloon-selection','icon','requires','18FExGxw','_showDialog','document','isEqual','hide','pluginName','height','_config','getMarkersGroup','rootName','headerView','_isUpdatingMarkers','editing','updateContent','aiBalloon','round','max','ai-balloon-','isPremiumPlugin','AIEditing','stopAutoScroll','getVisible','_calculateDialogPosition','left','window','\x20ai-balloon-rotator','_calculateOptimalTopPosition','commands','change','Dialog','off','delegate','102KaGAAD','30TYeaxZ','trackChanges','root','start','value','getChangedMarkers','61168DEhyDR','ai-balloon','_cleanupMarkerRemovalListener','fire','$graveyard','isTrackChangesOn','iconView','plugins','listenTo','_getSelectionElements','view','ai-selection:','end','_updateBalloon','show','showRotator','startAutoScroll','selectionRemoved','mainView','9050598ZWcYeN','12591689YvkgoU','label','open','getBoundingRect','close','top','content','title','hideFakeVisualSelection','29658XDCoUM','6706824mIerJF','width','_setupMarkerRemovalListener','stopListening','dialogClosed','filter','get'];_0x43b3=function(){return _0x6c19ba;};return _0x43b3();}import{getAllMarkersDomElementsSorted as _0xd2e375}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x2fe053,Rect as _0x1886d0,scrollViewportToShowTarget as _0x2ed5d4}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0xcf8872}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x28a520}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0xc1c6c2}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x21226a,_0x1d91cd(0xb9),_0x1d91cd(0xa8)];const lt=0xa;export class AIBalloon extends _0x15dc63{static get[_0x1d91cd(0xdd)](){return[_0x112393,_0x86949d];}static get[_0x1d91cd(0xe3)](){const _0x1c4fe5=_0x1d91cd;return _0x1c4fe5(0xd4);}static get[_0x1d91cd(0xc7)](){return!0x0;}static get[_0x1d91cd(0x82)](){return!0x0;}[_0x1d91cd(0xd0)]=!0x1;[_0x1d91cd(0xe5)];[_0x1d91cd(0x7b)]=!0x1;[_0x1d91cd(0xc8)]=null;[_0x1d91cd(0xad)](_0x60cb8c){const _0x126970=_0x1d91cd,_0x27d531=_0xcf8872(this[_0x126970(0xd3)]);if(this[_0x126970(0xe5)]=_0x60cb8c,this[_0x126970(0xd0)])return void this[_0x126970(0xa4)](_0x60cb8c);const _0x30864a=this[_0x126970(0xd3)][_0x126970(0xca)][_0x126970(0xbb)](_0x126970(0xc4))||[..._0x28a520],_0x47e21b=_0x27d531?.[_0x126970(0x8b)][_0x126970(0xbb)](_0x126970(0x92)),_0x5382f0=_0x47e21b?.[_0x126970(0x95)];this[_0x126970(0xd1)]=new _0xc09b77(_0x27d531[_0x126970(0xcc)],_0x60cb8c,_0x30864a,!!_0x5382f0),this[_0x126970(0xd1)][_0x126970(0x8f)](..._0x21226a)['to'](this),_0x47e21b&&this[_0x126970(0xd1)][_0x126970(0xd7)](_0x126970(0x9c))['to'](_0x47e21b,_0x126970(0x95)),this[_0x126970(0xdf)](_0x60cb8c);}[_0x1d91cd(0xaf)](){const _0x5f3cd7=_0x1d91cd;_0xcf8872(this[_0x5f3cd7(0xd3)])[_0x5f3cd7(0x9e)][_0x5f3cd7(0xbb)](_0x5f3cd7(0x8d))[_0x5f3cd7(0xe2)]();}[_0x1d91cd(0xa7)](){const _0x46bcd1=_0x1d91cd;this[_0x46bcd1(0xd1)]&&this[_0x46bcd1(0xd1)][_0x46bcd1(0xa7)]();}[_0x1d91cd(0x84)](){const _0x85480=_0x1d91cd;this[_0x85480(0xd1)]&&this[_0x85480(0xd1)][_0x85480(0x84)]();}[_0x1d91cd(0xa4)](_0x5a8e77){const _0x4762f7=_0x1d91cd,_0x19d46e=_0xcf8872(this[_0x4762f7(0xd3)]),_0x2de298=_0x19d46e[_0x4762f7(0x9e)][_0x4762f7(0xbb)](_0x4762f7(0x8d));this[_0x4762f7(0xc8)]&&(_0x19d46e[_0x4762f7(0x7c)][_0x4762f7(0xa1)][_0x4762f7(0x8e)](_0x4762f7(0xce),this[_0x4762f7(0xc8)]),this[_0x4762f7(0xc8)]=null),this[_0x4762f7(0x7b)]=!0x0,_0x2de298[_0x4762f7(0xa1)]?.[_0x4762f7(0x7a)]&&(_0x2de298[_0x4762f7(0xa1)][_0x4762f7(0x7a)][_0x4762f7(0xac)]=_0x5a8e77[_0x4762f7(0xb2)],_0x2de298[_0x4762f7(0xa1)][_0x4762f7(0x7a)][_0x4762f7(0x9d)]&&_0x5a8e77[_0x4762f7(0xdc)]&&(_0x2de298[_0x4762f7(0xa1)][_0x4762f7(0x7a)][_0x4762f7(0x9d)][_0x4762f7(0xb1)]=_0x5a8e77[_0x4762f7(0xdc)])),this[_0x4762f7(0xd1)][_0x4762f7(0x7d)](_0x5a8e77[_0x4762f7(0xa9)]),this[_0x4762f7(0xda)](_0x5a8e77[_0x4762f7(0xc6)],_0x5a8e77[_0x4762f7(0xc1)]),this[_0x4762f7(0xc8)]=()=>{const _0x4f855c=_0x4762f7;this[_0x4f855c(0x7b)]=!0x1,this[_0x4f855c(0xc8)]=null,_0x2de298[_0x4f855c(0xa1)]&&_0x2de298[_0x4f855c(0xa1)][_0x4f855c(0xcf)]();},_0x19d46e[_0x4762f7(0x7c)][_0x4762f7(0xa1)][_0x4762f7(0xbd)](_0x4762f7(0xce),this[_0x4762f7(0xc8)]);}[_0x1d91cd(0xda)](_0x48a7c3,_0x2f3093){const _0x4a6cac=_0x1d91cd;this[_0x4a6cac(0xd3)][_0x4a6cac(0x9e)][_0x4a6cac(0xbb)](_0x86949d)[_0x4a6cac(0xbc)](_0x48a7c3,_0x4a6cac(0x81)+_0x2f3093,!0x0,!0x0);}[_0x1d91cd(0xdf)](_0x4cf91a){const _0xf1afc0=_0x1d91cd,_0x45add2=_0xcf8872(this[_0xf1afc0(0xd3)]);this[_0xf1afc0(0xda)](_0x4cf91a[_0xf1afc0(0xc6)],_0x4cf91a[_0xf1afc0(0xc1)]);const _0x597a57=this[_0xf1afc0(0xa0)]();_0x597a57&&_0x597a57[0x0]&&_0x2ed5d4({'target':_0x597a57[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x45add2[_0xf1afc0(0x9e)][_0xf1afc0(0xbb)](_0xf1afc0(0x8d))[_0xf1afc0(0xa5)]({'title':_0x4cf91a[_0xf1afc0(0xb2)],'icon':_0x4cf91a[_0xf1afc0(0xdc)],'hasCloseButton':!0x0,'id':_0xf1afc0(0x7e),'position':this[_0xf1afc0(0x86)][_0xf1afc0(0xd7)](this),'className':_0xf1afc0(0x98)+(_0x4cf91a[_0xf1afc0(0xa6)]?_0xf1afc0(0x89):''),'content':this[_0xf1afc0(0xd1)],'onShow':_0x2444f6=>{const _0x5f1591=_0xf1afc0;_0x4cf91a[_0x5f1591(0xa6)]&&this[_0x5f1591(0xd1)][_0x5f1591(0xc9)](_0x2444f6),this[_0x5f1591(0xb7)](),this[_0x5f1591(0xd0)]=!0x0;},'onHide':()=>{const _0x30decc=_0xf1afc0;this[_0x30decc(0xd3)][_0x30decc(0x9e)][_0x30decc(0xbb)](_0x30decc(0x83))[_0x30decc(0xb3)](_0x30decc(0x81)+this[_0x30decc(0xe5)][_0x30decc(0xc1)]),this[_0x30decc(0x99)](),this[_0x30decc(0x9a)](_0x30decc(0xb9)),this[_0x30decc(0xd0)]=!0x1;}});}[_0x1d91cd(0x86)](_0x288190,_0x2c682e){const _0x3ea84e=_0x1d91cd;if(!_0x2c682e)return null;const _0x764b9e=this[_0x3ea84e(0xa0)]();if(!_0x764b9e||0x0===_0x764b9e[_0x3ea84e(0xbe)])return{'left':Math[_0x3ea84e(0x7f)](_0x2c682e[_0x3ea84e(0x87)]+_0x2c682e[_0x3ea84e(0xb6)]/0x2-_0x288190[_0x3ea84e(0xb6)]/0x2),'top':Math[_0x3ea84e(0x7f)](_0x2c682e[_0x3ea84e(0xb0)]+_0x2c682e[_0x3ea84e(0xe4)]/0x2-_0x288190[_0x3ea84e(0xe4)]/0x2)};const _0x26cf25=Math[_0x3ea84e(0x7f)](_0x2c682e[_0x3ea84e(0x87)]+_0x2c682e[_0x3ea84e(0xb6)]/0x2-_0x288190[_0x3ea84e(0xb6)]/0x2),_0x307c47=new _0x1886d0(_0x764b9e[0x0]),_0x5a83bd=new _0x1886d0(_0x764b9e[_0x764b9e[_0x3ea84e(0xbe)]-0x1]),_0x1655dc=_0x288190[_0x3ea84e(0xe4)],_0x45cd4e=this[_0x3ea84e(0xe5)][_0x3ea84e(0xa6)]?0x8:0x0;return{'left':_0x26cf25,'top':this[_0x3ea84e(0x8a)](_0x307c47,_0x5a83bd,_0x1655dc,_0x45cd4e,_0x2c682e)};}[_0x1d91cd(0x8a)](_0x2f523d,_0x781523,_0x1a707c,_0x339d33=0x0,_0x4888d2){const _0x18ebea=_0x1d91cd,_0x27947c=_0x1a707c+_0x339d33,_0x15e546=new _0x1886d0(_0x2fe053[_0x18ebea(0x88)]),_0x1669c8=[_0x2f523d[_0x18ebea(0x85)](),_0x781523[_0x18ebea(0x85)]()][_0x18ebea(0xba)](_0x39479d=>_0x39479d),_0x38f3bc=_0x1886d0[_0x18ebea(0xae)](_0x1669c8);if(!_0x38f3bc)return Math[_0x18ebea(0x7f)](_0x4888d2[_0x18ebea(0xb0)]+_0x4888d2[_0x18ebea(0xe4)]/0x2);const _0xfa03b5=_0x15e546[_0x18ebea(0xcd)](_0x38f3bc);if(!_0xfa03b5)return Math[_0x18ebea(0x7f)](_0x4888d2[_0x18ebea(0xb0)]+_0x4888d2[_0x18ebea(0xe4)]/0x2);const _0x76772=_0x4888d2[_0x18ebea(0x85)](),_0x1f5ca2=_0x76772&&_0x38f3bc[_0x18ebea(0xe4)]>_0x76772[_0x18ebea(0xe4)],_0x29ae0=_0xfa03b5[_0x18ebea(0xb0)],_0x2520ff=_0xfa03b5[_0x18ebea(0xc2)];if(_0x1f5ca2){const _0x5db8b6=(_0x76772||_0x15e546)[_0x18ebea(0xe4)]/0x2-_0x27947c/0x2,_0x16e014=_0x29ae0-lt-_0x4888d2[_0x18ebea(0xb0)],_0x3c49e9=_0x4888d2[_0x18ebea(0xc2)]-_0x2520ff-lt;return _0x16e014>=_0x27947c?Math[_0x18ebea(0x80)](lt,_0x29ae0-_0x27947c-lt):_0x3c49e9>=_0x27947c?_0x2520ff+lt:Math[_0x18ebea(0x80)](lt,_0x5db8b6);}const _0x2afc40=_0x29ae0-_0x27947c,_0x18e559=_0x4888d2[_0x18ebea(0xc2)]-_0x2520ff-lt,_0x46fb5f=_0x29ae0-lt-_0x4888d2[_0x18ebea(0xb0)];let _0x4edeb5;if(_0x18e559>=_0x27947c)_0x4edeb5=_0x2520ff+lt;else{if(_0x46fb5f>=_0x27947c)_0x4edeb5=_0x2afc40-lt;else _0x4edeb5=_0x29ae0+_0x38f3bc[_0x18ebea(0xe4)]/0x2-_0x27947c/0x2;}return _0x4edeb5;}[_0x1d91cd(0xb7)](){const _0x9117c9=_0x1d91cd,_0x1b03e1=_0xcf8872(this[_0x9117c9(0xd3)]);this[_0x9117c9(0x9f)](_0x1b03e1[_0x9117c9(0xd2)][_0x9117c9(0xe0)],_0x9117c9(0x8c),()=>{const _0x57bafa=_0x9117c9;if(this[_0x57bafa(0x7b)])return;for(const {name:_0x424c33,data:{newRange:_0x5778ec}}of _0x1b03e1[_0x57bafa(0xd2)][_0x57bafa(0xe0)][_0x57bafa(0xd5)][_0x57bafa(0x96)]())if(_0x424c33[_0x57bafa(0xd6)](_0x57bafa(0xa2))&&(_0x5778ec&&(_0x5778ec[_0x57bafa(0x94)][_0x57bafa(0xe1)](_0x5778ec[_0x57bafa(0xa3)])||_0x57bafa(0x9b)==_0x5778ec[_0x57bafa(0x93)][_0x57bafa(0x79)])||null==_0x5778ec)){const _0x195128=_0xc1c6c2(this[_0x57bafa(0xd3)][_0x57bafa(0xcc)],_0x57bafa(0xbf));this[_0x57bafa(0xd1)][_0x57bafa(0xcb)](_0x195128),this[_0x57bafa(0x9a)](_0x57bafa(0xa8));}});}[_0x1d91cd(0x99)](){const _0x14cc28=_0x1d91cd,_0x508a67=_0xcf8872(this[_0x14cc28(0xd3)]);this[_0x14cc28(0xb8)](_0x508a67[_0x14cc28(0xd2)][_0x14cc28(0xe0)]);}[_0x1d91cd(0xa0)](){const _0x28c4e7=_0x1d91cd,_0x137478=_0xcf8872(this[_0x28c4e7(0xd3)]);return _0xd2e375(_0x137478[_0x28c4e7(0x7c)],[..._0x137478[_0x28c4e7(0xd2)][_0x28c4e7(0xc0)][_0x28c4e7(0x78)](_0x28c4e7(0xc3)),..._0x137478[_0x28c4e7(0xd2)][_0x28c4e7(0xc0)][_0x28c4e7(0x78)](_0x28c4e7(0xdb))]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0xf2fb81,_0x2bdf34){var _0x248d58=_0x191b,_0x3ef8df=_0xf2fb81();while(!![]){try{var _0x178fc9=parseInt(_0x248d58(0xa0))/0x1*(parseInt(_0x248d58(0xa3))/0x2)+-parseInt(_0x248d58(0x97))/0x3+parseInt(_0x248d58(0x9d))/0x4+parseInt(_0x248d58(0x9c))/0x5*(-parseInt(_0x248d58(0x99))/0x6)+parseInt(_0x248d58(0x9e))/0x7+parseInt(_0x248d58(0x98))/0x8*(parseInt(_0x248d58(0x95))/0x9)+-parseInt(_0x248d58(0x96))/0xa*(parseInt(_0x248d58(0xa2))/0xb);if(_0x178fc9===_0x2bdf34)break;else _0x3ef8df['push'](_0x3ef8df['shift']());}catch(_0xb31ee2){_0x3ef8df['push'](_0x3ef8df['shift']());}}}(_0x2fcc,0xeb6f2));import{View as _0xb9ea2e}from'ckeditor5/src/ui.js';import{getTranslation as _0x52601a}from'../../aicore/utils/common-translations.js';function _0x191b(_0x13d9da,_0x1ae8ed){var _0x2fcc0d=_0x2fcc();return _0x191b=function(_0x191bf0,_0x3f1a96){_0x191bf0=_0x191bf0-0x95;var _0xf31aa8=_0x2fcc0d[_0x191bf0];return _0xf31aa8;},_0x191b(_0x13d9da,_0x1ae8ed);}function _0x2fcc(){var _0x1ee493=['ck-ai-balloon__disclaimer','2005fOswbS','5450732VMKwPm','8537102JpcqZn','AI_DISCLAIMER_TEXT','1eAuFJQ','div','3065326pCYcrE','2656172OuxGoG','setTemplate','40797RScshw','10PhrBoY','3996996ETabTi','520hERjhN','24384ZtZjhZ','ck-ai-balloon__disclaimer-content'];_0x2fcc=function(){return _0x1ee493;};return _0x2fcc();}export class AIBalloonDisclaimerView extends _0xb9ea2e{constructor(_0x32ef2e){var _0x4faf88=_0x191b;super(_0x32ef2e),this[_0x4faf88(0xa4)]({'tag':_0x4faf88(0xa1),'attributes':{'class':['ck',_0x4faf88(0x9b)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x4faf88(0x9a)]},'children':[{'text':_0x52601a(_0x32ef2e,_0x4faf88(0x9f))}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x136e(_0x1065c4,_0x3610e3){const _0x440a6b=_0x440a();return _0x136e=function(_0x136eac,_0x2be1f3){_0x136eac=_0x136eac-0x138;let _0x3cf40e=_0x440a6b[_0x136eac];return _0x3cf40e;},_0x136e(_0x1065c4,_0x3610e3);}const _0x3fe860=_0x136e;(function(_0x127567,_0xd7e45c){const _0x2b5fd3=_0x136e,_0xe1cf98=_0x127567();while(!![]){try{const _0x10ba76=parseInt(_0x2b5fd3(0x14c))/0x1*(-parseInt(_0x2b5fd3(0x140))/0x2)+parseInt(_0x2b5fd3(0x148))/0x3+parseInt(_0x2b5fd3(0x141))/0x4+parseInt(_0x2b5fd3(0x146))/0x5*(-parseInt(_0x2b5fd3(0x14f))/0x6)+parseInt(_0x2b5fd3(0x149))/0x7*(parseInt(_0x2b5fd3(0x147))/0x8)+-parseInt(_0x2b5fd3(0x152))/0x9+parseInt(_0x2b5fd3(0x13f))/0xa*(-parseInt(_0x2b5fd3(0x138))/0xb);if(_0x10ba76===_0xd7e45c)break;else _0xe1cf98['push'](_0xe1cf98['shift']());}catch(_0x9b9adf){_0xe1cf98['push'](_0xe1cf98['shift']());}}}(_0x440a,0x9c182));import{ToolbarView as _0x26ff94,ButtonView as _0x7fd461}from'ckeditor5/src/ui.js';import{getTranslation as _0x37ef0e}from'../../aicore/utils/common-translations.js';export class AIBalloonToolbarView extends _0x26ff94{constructor(_0x26cda3,_0x4bb54f=!0x0,_0x2100fd=!0x0){const _0x4a92bf=_0x136e;super(_0x26cda3),this[_0x4a92bf(0x14e)](_0x4a92bf(0x144),!0x1),_0x4bb54f&&(this[_0x4a92bf(0x13c)]=this[_0x4a92bf(0x14b)](_0x37ef0e(_0x26cda3,_0x4a92bf(0x13e)),_0x4a92bf(0x142)),this[_0x4a92bf(0x13c)][_0x4a92bf(0x150)](_0x4a92bf(0x139))['to'](this,_0x4a92bf(0x144),_0x1f634c=>!_0x1f634c),this[_0x4a92bf(0x151)][_0x4a92bf(0x13d)](this[_0x4a92bf(0x13c)])),_0x2100fd&&(this[_0x4a92bf(0x14a)]=this[_0x4a92bf(0x14b)](_0x37ef0e(_0x26cda3,_0x4a92bf(0x13a)),_0x4bb54f?_0x4a92bf(0x143):_0x4a92bf(0x142)),this[_0x4a92bf(0x14a)][_0x4a92bf(0x150)](_0x4a92bf(0x139))['to'](this,_0x4a92bf(0x144),_0x41e267=>!_0x41e267),this[_0x4a92bf(0x151)][_0x4a92bf(0x13d)](this[_0x4a92bf(0x14a)])),this[_0x4a92bf(0x145)]({'attributes':{'class':[_0x4a92bf(0x13b)]}});}[_0x3fe860(0x14b)](_0xc5c694,_0x48fa6d){const _0x21c992=_0x3fe860,_0x298c66=new _0x7fd461(this[_0x21c992(0x14d)]);return _0x298c66[_0x21c992(0x14e)]({'label':_0xc5c694,'class':_0x48fa6d||'','isVisible':!0x0,'withText':!0x0}),_0x298c66;}}function _0x440a(){const _0x38205f=['ck-ai-button-primary','ck-ai-button-secondary','isLoading','extendTemplate','2285zltWUD','303136EoEYtU','3733152DvcrzI','161qADnAH','suggestButton','_createButton','36589mNDBDU','locale','set','4674BtpaEO','bind','items','9552528CCygGH','11GdqTgv','isEnabled','AI_BALLOON_SUGGEST_BUTTON','ck-ai-balloon__toolbar','applyButton','add','AI_BALLOON_APPLY_BUTTON','11356750inqcZM','10ApETef','5037908CPHOmc'];_0x440a=function(){return _0x38205f;};return _0x440a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x56a12a=_0x5767;(function(_0x2160d1,_0x2d50ec){const _0x593b9c=_0x5767,_0x576658=_0x2160d1();while(!![]){try{const _0x402cac=-parseInt(_0x593b9c(0x14b))/0x1*(parseInt(_0x593b9c(0x14e))/0x2)+parseInt(_0x593b9c(0x13a))/0x3+-parseInt(_0x593b9c(0x167))/0x4*(parseInt(_0x593b9c(0x133))/0x5)+parseInt(_0x593b9c(0x140))/0x6+parseInt(_0x593b9c(0x17c))/0x7+-parseInt(_0x593b9c(0x14f))/0x8+parseInt(_0x593b9c(0x158))/0x9;if(_0x402cac===_0x2d50ec)break;else _0x576658['push'](_0x576658['shift']());}catch(_0x4ab5b6){_0x576658['push'](_0x576658['shift']());}}}(_0x250b,0x40e38));import{ButtonView as _0x4d2035,View as _0x28a2f5,ViewCollection as _0x229141,FocusCycler as _0x56dc53}from'ckeditor5/src/ui.js';import{FocusTracker as _0x4a6a9a,KeystrokeHandler as _0x2cf552}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x34ef05,IconPreviousArrow as _0x31d37a}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x59a15d}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x53b43e}from'./aiballoondisclaimerview.js';import{getTranslation as _0x844ce9}from'../../aicore/utils/common-translations.js';import{ScrollManager as _0x4725b4}from'../../aicore/utils/scrollmanager.js';function _0x250b(){const _0x1eef43=['158008CHImbD','getIndex','span','_initializeScrollManager','showRecoverableError','AI_BALLOON_PREVIOUS_TOOLTIP','isTrackChangesOn','render','startAutoScroll','538830yCKMcq','element','ck-ai-suggestion__error','focusCycler','set','focusFirst','showApplyButton','_getScrollableElement','_addToolbar','showNext','locale','includes','applySuggestion','bodyView','isErrorVisible','4oVLuiL','bindTemplate','div','_mainView','_addContentView','insertSuggestion','focusTracker','focusLast','listenTo','isLoading','ai-balloon-error','_dialogContent','clearLoading','setTemplate','remove','_createNextButtonView','execute','change:isTrackChangesOn','_createErrorView','shift\x20+\x20tab','keystrokes','3524703GUhDrS','errorMessage','scrollManager','_availableActions','setLoading','_addDisclaimerView','view','ai-balloon-content','setupRotator','add','showError','stop','suggestButton','addMany','start','clear','disclaimerView','toolbar','1657030omMQlB','isEnabled','stopAutoScroll','destroy','showBlockingError','AI_BALLOON_NEXT_TOOLTIP','_createPreviousButtonView','1237476GHAweb','updateContent','showPrevious','children','hideError','_focusables','518784GoWDqo','headerView','focus','ck-hidden','bind','mainView','_errorView','showSuggestButton','fire','ck-ai-suggestion__error-text','applyButton','2lqmpyN','tab','createCollection','445414wrCSxP'];_0x250b=function(){return _0x1eef43;};return _0x250b();}import{AISuggestionContainerView as _0x442f22}from'../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x56a12a(0x164),_0x56a12a(0x16c),_0x56a12a(0x161),_0x56a12a(0x13c)];function _0x5767(_0x3a0b03,_0x4a7b52){const _0x250beb=_0x250b();return _0x5767=function(_0x57677d,_0x54582a){_0x57677d=_0x57677d-0x12a;let _0x207edb=_0x250beb[_0x57677d];return _0x207edb;},_0x5767(_0x3a0b03,_0x4a7b52);}export class AIBalloonView extends _0x28a2f5{[_0x56a12a(0x16d)];[_0x56a12a(0x17b)];[_0x56a12a(0x15b)];[_0x56a12a(0x17f)];[_0x56a12a(0x13f)];[_0x56a12a(0x146)];[_0x56a12a(0x17e)];constructor(_0x174288,_0x27e612,_0x2cb8b1,_0x498e01){const _0x1de6a8=_0x56a12a;super(_0x174288),this[_0x1de6a8(0x17f)]=_0x2cb8b1,this[_0x1de6a8(0x15c)](_0x1de6a8(0x170),!0x1),this[_0x1de6a8(0x15c)](_0x1de6a8(0x155),_0x498e01),this[_0x1de6a8(0x15c)](_0x1de6a8(0x166),!0x1),this[_0x1de6a8(0x15c)](_0x1de6a8(0x17d),''),this[_0x1de6a8(0x16d)]=new _0x4a6a9a(),this[_0x1de6a8(0x17b)]=new _0x2cf552(),this[_0x1de6a8(0x13f)]=this[_0x1de6a8(0x14d)](),this[_0x1de6a8(0x15b)]=new _0x56dc53({'focusables':this[_0x1de6a8(0x13f)],'focusTracker':this[_0x1de6a8(0x16d)],'keystrokeHandler':this[_0x1de6a8(0x17b)],'actions':{'focusPrevious':_0x1de6a8(0x17a),'focusNext':_0x1de6a8(0x14c)}}),this[_0x1de6a8(0x172)]=new _0x229141(),this[_0x1de6a8(0x16b)](_0x27e612[_0x1de6a8(0x145)]),this[_0x1de6a8(0x181)](),this[_0x1de6a8(0x160)](_0x27e612[_0x1de6a8(0x15e)],_0x27e612[_0x1de6a8(0x147)]),this[_0x1de6a8(0x132)][_0x1de6a8(0x144)](_0x1de6a8(0x170))['to'](this),this[_0x1de6a8(0x13f)][_0x1de6a8(0x130)](),this[_0x1de6a8(0x13f)][_0x1de6a8(0x12e)]([this[_0x1de6a8(0x132)]]),this[_0x1de6a8(0x174)]({'tag':_0x1de6a8(0x169),'attributes':{'class':_0x1de6a8(0x183)},'children':this[_0x1de6a8(0x172)]}),this['on'](_0x1de6a8(0x178),()=>{const _0x46ebdc=_0x1de6a8;this[_0x46ebdc(0x172)][_0x46ebdc(0x175)](this[_0x46ebdc(0x132)]),this[_0x46ebdc(0x160)](_0x27e612[_0x46ebdc(0x15e)],_0x27e612[_0x46ebdc(0x147)]);});}[_0x56a12a(0x156)](){const _0x139fec=_0x56a12a;super[_0x139fec(0x156)]();for(const _0x469906 of this[_0x139fec(0x13f)])this[_0x139fec(0x16d)][_0x139fec(0x12a)](_0x469906[_0x139fec(0x159)]);this[_0x139fec(0x17b)][_0x139fec(0x16f)](this[_0x139fec(0x159)]),this[_0x139fec(0x152)]();}[_0x56a12a(0x136)](){const _0x17d5f6=_0x56a12a;super[_0x17d5f6(0x136)](),this[_0x17d5f6(0x17e)]&&this[_0x17d5f6(0x17e)][_0x17d5f6(0x136)]();}[_0x56a12a(0x142)](_0x23ba81){const _0x32aa22=_0x56a12a;-0x1===_0x23ba81?this[_0x32aa22(0x15b)][_0x32aa22(0x16e)]():this[_0x32aa22(0x15b)][_0x32aa22(0x15d)]();}[_0x56a12a(0x180)](){const _0x2a1e98=_0x56a12a;this[_0x2a1e98(0x170)]=!0x0;}[_0x56a12a(0x173)](){const _0x547e20=_0x56a12a;this[_0x547e20(0x170)]=!0x1;}[_0x56a12a(0x12b)](_0x1d9032){const _0x9ba68c=_0x56a12a;this[_0x9ba68c(0x146)]||(this[_0x9ba68c(0x146)]=this[_0x9ba68c(0x179)](),this[_0x9ba68c(0x172)][_0x9ba68c(0x12e)]([this[_0x9ba68c(0x146)]],0x0)),this[_0x9ba68c(0x17d)]=_0x1d9032,this[_0x9ba68c(0x166)]=!0x0;}[_0x56a12a(0x13e)](){const _0x2824b6=_0x56a12a;this[_0x2824b6(0x166)]=!0x1;}[_0x56a12a(0x153)](_0x3b10ae){const _0xbd551c=_0x56a12a;this[_0xbd551c(0x12b)](_0x3b10ae);}[_0x56a12a(0x137)](_0x231dea){const _0x360dce=_0x56a12a;this[_0x360dce(0x12b)](_0x231dea),this[_0x360dce(0x132)]&&(this[_0x360dce(0x132)][_0x360dce(0x14a)]&&(this[_0x360dce(0x132)][_0x360dce(0x14a)][_0x360dce(0x134)]=!0x1),this[_0x360dce(0x132)][_0x360dce(0x12d)]&&(this[_0x360dce(0x132)][_0x360dce(0x12d)][_0x360dce(0x134)]=!0x1));}[_0x56a12a(0x184)](_0x7ee427){const _0x54a464=_0x56a12a,_0x5ac945=this[_0x54a464(0x176)](),_0xbf0735=this[_0x54a464(0x139)]();_0x7ee427[_0x54a464(0x182)][_0x54a464(0x141)][_0x54a464(0x13d)][_0x54a464(0x12a)](_0x5ac945,0x2),_0x7ee427[_0x54a464(0x182)][_0x54a464(0x141)][_0x54a464(0x13d)][_0x54a464(0x12a)](_0xbf0735,0x0),this[_0x54a464(0x13f)][_0x54a464(0x12e)]([_0x5ac945,_0xbf0735]),this[_0x54a464(0x16d)][_0x54a464(0x12a)](_0x5ac945[_0x54a464(0x159)]),this[_0x54a464(0x16d)][_0x54a464(0x12a)](_0xbf0735[_0x54a464(0x159)]);}[_0x56a12a(0x16b)](_0x355f1f){const _0x4b2855=_0x56a12a;this[_0x4b2855(0x16a)]=_0x355f1f,this[_0x4b2855(0x172)][_0x4b2855(0x12a)](this[_0x4b2855(0x16a)]);}[_0x56a12a(0x13b)](_0xe1bd2){const _0x21b625=_0x56a12a,_0x298de7=this[_0x21b625(0x172)][_0x21b625(0x150)](this[_0x21b625(0x16a)]);this[_0x21b625(0x172)][_0x21b625(0x175)](this[_0x21b625(0x16a)]),this[_0x21b625(0x16a)]=_0xe1bd2,this[_0x21b625(0x172)][_0x21b625(0x12a)](this[_0x21b625(0x16a)],_0x298de7),this[_0x21b625(0x13e)](),this[_0x21b625(0x17e)]&&this[_0x21b625(0x17e)][_0x21b625(0x136)](),this[_0x21b625(0x152)]();}[_0x56a12a(0x181)](){const _0x49eac9=_0x56a12a;this[_0x49eac9(0x131)]=new _0x53b43e(this[_0x49eac9(0x162)]),this[_0x49eac9(0x172)][_0x49eac9(0x12a)](this[_0x49eac9(0x131)]);}[_0x56a12a(0x160)](_0x542c7d=!0x0,_0x17bbe7=!0x0){const _0x5f327e=_0x56a12a;_0x542c7d=_0x542c7d&&!this[_0x5f327e(0x155)]&&this[_0x5f327e(0x17f)][_0x5f327e(0x163)](_0x5f327e(0x164)),_0x17bbe7=_0x17bbe7&&this[_0x5f327e(0x17f)][_0x5f327e(0x163)](_0x5f327e(0x16c)),this[_0x5f327e(0x132)]=new _0x59a15d(this[_0x5f327e(0x162)],_0x542c7d,_0x17bbe7),this[_0x5f327e(0x132)][_0x5f327e(0x14a)]?.['on'](_0x5f327e(0x177),()=>{const _0x509b69=_0x5f327e;this[_0x509b69(0x148)](_0x509b69(0x164));}),this[_0x5f327e(0x132)][_0x5f327e(0x12d)]?.['on'](_0x5f327e(0x177),()=>{const _0x3497e9=_0x5f327e;this[_0x3497e9(0x148)](_0x3497e9(0x16c));}),this[_0x5f327e(0x172)][_0x5f327e(0x12a)](this[_0x5f327e(0x132)]);}[_0x56a12a(0x176)](){const _0x2382fc=_0x56a12a,_0x21eb2e=new _0x4d2035(this[_0x2382fc(0x162)]);return _0x21eb2e[_0x2382fc(0x15c)]({'icon':_0x34ef05,'tooltip':_0x844ce9(this[_0x2382fc(0x162)],_0x2382fc(0x138))}),_0x21eb2e['on'](_0x2382fc(0x177),()=>{const _0x400c34=_0x2382fc;this[_0x400c34(0x148)](_0x400c34(0x161));}),_0x21eb2e;}[_0x56a12a(0x139)](){const _0x267d55=_0x56a12a,_0x459133=new _0x4d2035(this[_0x267d55(0x162)]);return _0x459133[_0x267d55(0x15c)]({'icon':_0x31d37a,'tooltip':_0x844ce9(this[_0x267d55(0x162)],_0x267d55(0x154))}),_0x459133['on'](_0x267d55(0x177),()=>{const _0x4e2f78=_0x267d55;this[_0x4e2f78(0x148)](_0x4e2f78(0x13c));}),_0x459133;}[_0x56a12a(0x179)](){const _0x57915a=_0x56a12a,_0x44025a=new _0x28a2f5(this[_0x57915a(0x162)]),_0x3fcdd2=new _0x28a2f5(this[_0x57915a(0x162)]);return _0x3fcdd2[_0x57915a(0x174)]({'tag':_0x57915a(0x151),'attributes':{'class':['ck',_0x57915a(0x149)]},'children':[{'text':this[_0x57915a(0x168)]['to'](_0x57915a(0x17d))}]}),_0x44025a[_0x57915a(0x174)]({'tag':_0x57915a(0x169),'attributes':{'class':['ck',_0x57915a(0x15a),_0x57915a(0x171),this[_0x57915a(0x168)]['if'](_0x57915a(0x166),_0x57915a(0x143),_0x52ddbe=>!_0x52ddbe)]},'children':[_0x3fcdd2]}),_0x44025a;}[_0x56a12a(0x157)](){const _0x2d6d45=_0x56a12a;this[_0x2d6d45(0x152)](),this[_0x2d6d45(0x17e)]&&this[_0x2d6d45(0x17e)][_0x2d6d45(0x12f)]();}[_0x56a12a(0x135)](){const _0x49b7a1=_0x56a12a;this[_0x49b7a1(0x17e)]&&this[_0x49b7a1(0x17e)][_0x49b7a1(0x12c)]();}[_0x56a12a(0x152)](){const _0x5ad268=_0x56a12a,_0x198a2d=this[_0x5ad268(0x15f)]();_0x198a2d&&!this[_0x5ad268(0x17e)]&&(this[_0x5ad268(0x17e)]=new _0x4725b4(_0x198a2d));}[_0x56a12a(0x15f)](){const _0x588075=_0x56a12a;return this[_0x588075(0x16a)]instanceof _0x442f22&&this[_0x588075(0x16a)][_0x588075(0x165)][_0x588075(0x159)]?this[_0x588075(0x16a)][_0x588075(0x165)][_0x588075(0x159)]:null;}}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3bbdf4=_0x13f6;(function(_0xb7a64b,_0x5a6e53){var _0x590747=_0x13f6,_0x2f8f16=_0xb7a64b();while(!![]){try{var _0x315494=parseInt(_0x590747(0xd6))/0x1*(parseInt(_0x590747(0xcd))/0x2)+parseInt(_0x590747(0xd9))/0x3+-parseInt(_0x590747(0xc7))/0x4+-parseInt(_0x590747(0xc6))/0x5+-parseInt(_0x590747(0xd3))/0x6+parseInt(_0x590747(0xc9))/0x7*(-parseInt(_0x590747(0xca))/0x8)+parseInt(_0x590747(0xcf))/0x9;if(_0x315494===_0x5a6e53)break;else _0x2f8f16['push'](_0x2f8f16['shift']());}catch(_0x52f815){_0x2f8f16['push'](_0x2f8f16['shift']());}}}(_0x8612,0xade09));function _0x8612(){var _0x13484e=['isOfficialPlugin','sendMessage','get','5634610KNasHe','5574312nopnDo','context','161LHKGbV','198736rJbPKY','define','ai.chat.context','82ygvTGO','requires','31518864qlsSIL','removeSelectionFromChatContext','ai.chat.models','startConversation','678078eGVeMJ','focusPromptInput','plugins','7435NpUoCE','pluginName','addSelectionToChatContext','330447GFfrwk','config','isPremiumPlugin','AIChat'];_0x8612=function(){return _0x13484e;};return _0x8612();}import{ContextPlugin as _0x223988}from'ckeditor5/src/core.js';import{AIChatController as _0x44179f}from'./aichatcontroller.js';function _0x13f6(_0x3495ab,_0x47f116){var _0x861284=_0x8612();return _0x13f6=function(_0x13f601,_0x30c575){_0x13f601=_0x13f601-0xc6;var _0x357601=_0x861284[_0x13f601];return _0x357601;},_0x13f6(_0x3495ab,_0x47f116);}import{AIEditing as _0xe41c6f}from'../aicore/aiediting.js';import{AIChatUI as _0x5af83a}from'./aichatui.js';import{AIChatHistory as _0x33356d}from'../aichathistory/aichathistory.js';export class AIChat extends _0x223988{static get[_0x3bbdf4(0xce)](){return[_0x44179f,_0xe41c6f,_0x5af83a,_0x33356d];}static get[_0x3bbdf4(0xd7)](){var _0x3a0bb8=_0x3bbdf4;return _0x3a0bb8(0xdc);}static get[_0x3bbdf4(0xdd)](){return!0x0;}static get[_0x3bbdf4(0xdb)](){return!0x0;}constructor(_0x50db10){var _0x86436a=_0x3bbdf4;super(_0x50db10),this[_0x86436a(0xc8)][_0x86436a(0xda)][_0x86436a(0xcb)](_0x86436a(0xcc),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x86436a(0xc8)][_0x86436a(0xda)][_0x86436a(0xcb)](_0x86436a(0xd1),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x3bbdf4(0xd8)](){var _0x5009d3=_0x3bbdf4;await this[_0x5009d3(0xc8)][_0x5009d3(0xd5)][_0x5009d3(0xdf)](_0x44179f)[_0x5009d3(0xd8)]();}async[_0x3bbdf4(0xd2)](){var _0x2df4fd=_0x3bbdf4;await this[_0x2df4fd(0xc8)][_0x2df4fd(0xd5)][_0x2df4fd(0xdf)](_0x44179f)[_0x2df4fd(0xd2)]();}async[_0x3bbdf4(0xde)]({message:_0x576949,quickActionData:_0x210893}){var _0x29dd28=_0x3bbdf4;await this[_0x29dd28(0xc8)][_0x29dd28(0xd5)][_0x29dd28(0xdf)](_0x44179f)[_0x29dd28(0xde)]({'message':_0x576949,'quickActionData':_0x210893});}[_0x3bbdf4(0xd0)](){var _0x29741e=_0x3bbdf4;this[_0x29741e(0xc8)][_0x29741e(0xd5)][_0x29741e(0xdf)](_0x44179f)[_0x29741e(0xd0)]();}[_0x3bbdf4(0xd4)](){var _0x138ddd=_0x3bbdf4;this[_0x138ddd(0xc8)][_0x138ddd(0xd5)][_0x138ddd(0xdf)](_0x44179f)[_0x138ddd(0xd4)]();}}
|