@ckeditor/ckeditor5-ai 47.7.1-alpha.0 → 47.7.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/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/form/prompthistory.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/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.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/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/documentrange.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/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/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.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/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/aireviewcoreformdropdown.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/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x14b28c=_0x565f;(function(_0xa7063e,_0x24206f){const _0x50bf6f=_0x565f,_0x425978=_0xa7063e();while(!![]){try{const _0x1cd016=-parseInt(_0x50bf6f(0x20f))/0x1*(parseInt(_0x50bf6f(0x20d))/0x2)+-parseInt(_0x50bf6f(0x1e3))/0x3*(parseInt(_0x50bf6f(0x215))/0x4)+-parseInt(_0x50bf6f(0x1fa))/0x5*(-parseInt(_0x50bf6f(0x239))/0x6)+parseInt(_0x50bf6f(0x205))/0x7*(-parseInt(_0x50bf6f(0x235))/0x8)+parseInt(_0x50bf6f(0x210))/0x9*(-parseInt(_0x50bf6f(0x207))/0xa)+parseInt(_0x50bf6f(0x22e))/0xb*(-parseInt(_0x50bf6f(0x1ff))/0xc)+-parseInt(_0x50bf6f(0x1ef))/0xd*(-parseInt(_0x50bf6f(0x21b))/0xe);if(_0x1cd016===_0x24206f)break;else _0x425978['push'](_0x425978['shift']());}catch(_0x113882){_0x425978['push'](_0x425978['shift']());}}}(_0x2c5f,0xf097a));import{FocusTracker as _0x3c29e9,KeystrokeHandler as _0x132c77}from'ckeditor5/src/utils.js';import{View as _0x2cdfd8,FocusCycler as _0x1882b9,createLabeledTextarea as _0x6018fe}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x309bcb,AIFormToolbarViewMainActionLabel as _0x3a1d85}from'./aiformtoolbarview.js';function _0x565f(_0x3693de,_0x3b05da){const _0x2c5f64=_0x2c5f();return _0x565f=function(_0x565f36,_0x3f76f5){_0x565f36=_0x565f36-0x1e1;let _0x3fa038=_0x2c5f64[_0x565f36];return _0x3fa038;},_0x565f(_0x3693de,_0x3b05da);}import{AIFormContentArea as _0x558be4}from'./aiformcontentarea.js';import{AIFormErrorView as _0x1ed87c}from'./aiformerrorview.js';import{AIFormPromptView as _0x32a412}from'./aiformpromptview.js';import{AIHistoryListView as _0x42c8ef}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x2e17bc}from'./aihistorylistitemview.js';import{PromptHistory as _0x1a7e9a}from'./prompthistory.js';import{getTranslation as _0x12b5de}from'../../utils/common-translations.js';function _0x2c5f(){const _0x461099=['errorView','_createToolbar','setTemplate','listenTo','84zKEUJt','shift\x20+\x20tab','fieldView','execute','submitPrompt','isEnabled','7IDLXbh','focusCycler','274400LaAedG','stopProcessing','delegate','_createHistoryView','insertButton','isProcessing','843196ICWOij','replaceButton','2IEBPyi','549LpDbIJ','isVisible','finishProcessing','chain','_focusables','4SAPyKq','element','clearHistory','label','Ask\x20AI\x20to\x20edit\x20or\x20generate','submit','2530388yIoyKM','startProcessing','clear','tryAgainButton','search','Empty\x20history','ck-ai-form-content','focusTracker','isError','value','items','add','fire','trim','historyGroupView','high','ck-ai-form','promptView','contentArea','2282379xgIfsL','render','createCollection','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','tab','focusLast','ck-hidden','4880936zqghVI','mainAction','set','queryView','7998uNKsBL','replaceContent','bind','1205607nLzFBf','keystrokes','text','bindTo','locale','prompt','reset','copyButtonView','div','focusFirst','focus','Ask\x20AI\x20to\x20improve\x20generated\x20text','403fnUFwx','stopButton','insertContentBelow','bindTemplate','REPLACE','_createPromptView','_promptHistory','toolbar','AI_ERROR_FAILED','tryAgainEvent','handleError','1365vTYoCa'];_0x2c5f=function(){return _0x461099;};return _0x2c5f();}import{escape as _0xf170da}from'es-toolkit/compat';export class AIFormView extends _0x2cdfd8{[_0x14b28c(0x222)];[_0x14b28c(0x1e4)];[_0x14b28c(0x22d)];[_0x14b28c(0x1f6)];[_0x14b28c(0x22c)];[_0x14b28c(0x1fb)];[_0x14b28c(0x214)];[_0x14b28c(0x206)];[_0x14b28c(0x1f5)];constructor(_0x10d524,_0x3c83b3,_0x3ebe4e=''){const _0x17dac6=_0x14b28c;super(_0x10d524),this[_0x17dac6(0x237)](_0x17dac6(0x204),!0x0),this[_0x17dac6(0x237)](_0x17dac6(0x20c),!0x1),this[_0x17dac6(0x237)](_0x17dac6(0x1e8),''),this[_0x17dac6(0x237)](_0x17dac6(0x224),''),this[_0x17dac6(0x237)](_0x17dac6(0x223),!0x1),this[_0x17dac6(0x237)](_0x17dac6(0x236),_0x3a1d85[_0x17dac6(0x1f3)]),this[_0x17dac6(0x1f5)]=new _0x1a7e9a(),this[_0x17dac6(0x1fb)]=new _0x1ed87c(_0x10d524),this[_0x17dac6(0x22d)]=new _0x558be4(_0x10d524,_0x3ebe4e),this[_0x17dac6(0x22d)][_0x17dac6(0x1e2)](_0x17dac6(0x20c))['to'](this),this[_0x17dac6(0x22d)][_0x17dac6(0x1e2)](_0x17dac6(0x224))['to'](this),this[_0x17dac6(0x1f6)]=this[_0x17dac6(0x1fc)](),this[_0x17dac6(0x1f6)][_0x17dac6(0x1e2)](_0x17dac6(0x236))['to'](this),this[_0x17dac6(0x22c)]=this[_0x17dac6(0x1f4)](),this[_0x17dac6(0x222)]=new _0x3c29e9(),this[_0x17dac6(0x1e4)]=new _0x132c77(),this[_0x17dac6(0x214)]=this[_0x17dac6(0x230)]([this[_0x17dac6(0x22d)],this[_0x17dac6(0x22d)][_0x17dac6(0x1ea)],this[_0x17dac6(0x1f6)],this[_0x17dac6(0x22c)]]),this[_0x17dac6(0x206)]=new _0x1882b9({'focusables':this[_0x17dac6(0x214)],'focusTracker':this[_0x17dac6(0x222)],'keystrokeHandler':this[_0x17dac6(0x1e4)],'actions':{'focusPrevious':_0x17dac6(0x200),'focusNext':_0x17dac6(0x232)}}),this[_0x17dac6(0x206)][_0x17dac6(0x213)](this[_0x17dac6(0x22c)][_0x17dac6(0x206)]),this[_0x17dac6(0x22c)][_0x17dac6(0x238)][_0x17dac6(0x201)][_0x17dac6(0x1e2)](_0x17dac6(0x224))['to'](this,_0x17dac6(0x1e8));const _0x3edb17=this[_0x17dac6(0x1f2)];this[_0x17dac6(0x1fd)]({'tag':_0x17dac6(0x1eb),'attributes':{'class':['ck',_0x17dac6(0x22b),_0x3c83b3],'tabindex':'-1'},'children':[{'tag':_0x17dac6(0x1eb),'attributes':{'class':['ck',_0x17dac6(0x221)]},'children':[{'tag':_0x17dac6(0x1eb),'attributes':{'class':[_0x3edb17['if'](_0x17dac6(0x223),_0x17dac6(0x234),_0x324256=>!_0x324256)]},'children':[this[_0x17dac6(0x1fb)]]},this[_0x17dac6(0x22d)],this[_0x17dac6(0x1f6)],this[_0x17dac6(0x22c)]]}]});}[_0x14b28c(0x22f)](){const _0x5d322a=_0x14b28c;super[_0x5d322a(0x22f)](),this[_0x5d322a(0x222)][_0x5d322a(0x226)](this[_0x5d322a(0x22d)][_0x5d322a(0x216)]),this[_0x5d322a(0x222)][_0x5d322a(0x226)](this[_0x5d322a(0x22d)][_0x5d322a(0x1ea)][_0x5d322a(0x216)]),this[_0x5d322a(0x222)][_0x5d322a(0x226)](this[_0x5d322a(0x1f6)][_0x5d322a(0x216)]),this[_0x5d322a(0x222)][_0x5d322a(0x226)](this[_0x5d322a(0x22c)][_0x5d322a(0x216)]),this[_0x5d322a(0x1e4)][_0x5d322a(0x1fe)](this[_0x5d322a(0x216)]);}[_0x14b28c(0x1ed)](_0x36e4b8=0x1){const _0xe350f2=_0x14b28c;-0x1===_0x36e4b8?this[_0xe350f2(0x206)][_0xe350f2(0x233)]():this[_0xe350f2(0x206)][_0xe350f2(0x1ec)]();}[_0x14b28c(0x1e9)](){const _0x439d91=_0x14b28c;this[_0x439d91(0x1e8)]='',this[_0x439d91(0x224)]='',this[_0x439d91(0x223)]=!0x1,this[_0x439d91(0x22c)][_0x439d91(0x1e9)](),this[_0x439d91(0x22d)][_0x439d91(0x211)]=!0x1,this[_0x439d91(0x1f6)][_0x439d91(0x211)]=!0x1;}[_0x14b28c(0x1f4)](){const _0x53c1b9=_0x14b28c,_0x69704=this[_0x53c1b9(0x1e7)],_0x56e9c4=new _0x32a412(_0x69704,{'queryView':{'label':_0x12b5de(_0x69704,_0x53c1b9(0x219)),'creator':_0x6018fe,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x12b5de(_0x69704,_0x53c1b9(0x220)),'secondary':_0x12b5de(_0x69704,_0x53c1b9(0x231))}}},'filteredView':this[_0x53c1b9(0x20a)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x56e9c4[_0x53c1b9(0x1e2)](_0x53c1b9(0x204))['to'](this,_0x53c1b9(0x204),this,_0x53c1b9(0x20c),(_0x5ea266,_0x1de9ed)=>_0x5ea266&&!_0x1de9ed),this[_0x53c1b9(0x1fe)](_0x56e9c4,_0x53c1b9(0x21a),(_0x400414,_0x1399fa)=>{const _0x4a08db=_0x53c1b9;this[_0x4a08db(0x1e8)]=_0x1399fa;const _0x4f870e=_0xf170da(_0x1399fa);this[_0x4a08db(0x227)](_0x4a08db(0x203),_0x4f870e),_0x1399fa[_0x4a08db(0x228)]()&&this[_0x4a08db(0x1f5)][_0x4a08db(0x226)]({'prompt':_0x4f870e},0x0);},{'priority':_0x53c1b9(0x22a)}),_0x56e9c4;}[_0x14b28c(0x20a)](){const _0x1f6603=_0x14b28c,_0x46d1cb=new _0x42c8ef(this[_0x1f6603(0x1e7)]);return _0x46d1cb[_0x1f6603(0x229)][_0x1f6603(0x225)][_0x1f6603(0x1e6)](this[_0x1f6603(0x1f5)])['as'](_0x2e17bc),_0x46d1cb['on'](_0x1f6603(0x217),()=>{const _0x18f1f8=_0x1f6603;this[_0x18f1f8(0x1f5)][_0x18f1f8(0x21d)](),this[_0x18f1f8(0x22c)][_0x18f1f8(0x21f)](''),this[_0x18f1f8(0x22c)][_0x18f1f8(0x1ed)]();}),_0x46d1cb;}[_0x14b28c(0x1fc)](){const _0x30dbc7=_0x14b28c,_0x12789b=new _0x309bcb(this[_0x30dbc7(0x1e7)]);return _0x12789b[_0x30dbc7(0x20e)][_0x30dbc7(0x1e2)](_0x30dbc7(0x204))['to'](this,_0x30dbc7(0x204),this,_0x30dbc7(0x20c),this,_0x30dbc7(0x224),(_0x4f8412,_0x65f0d6,_0x418b1a)=>_0x4f8412&&!_0x65f0d6&&!!_0x418b1a),_0x12789b[_0x30dbc7(0x20e)][_0x30dbc7(0x209)](_0x30dbc7(0x202))['to'](this,_0x30dbc7(0x1e1)),_0x12789b[_0x30dbc7(0x20b)][_0x30dbc7(0x1e2)](_0x30dbc7(0x204))['to'](this,_0x30dbc7(0x204),this,_0x30dbc7(0x20c),this,_0x30dbc7(0x224),(_0x75492c,_0xce5ec4,_0x3949cc)=>_0x75492c&&!_0xce5ec4&&!!_0x3949cc),_0x12789b[_0x30dbc7(0x20b)][_0x30dbc7(0x209)](_0x30dbc7(0x202))['to'](this,_0x30dbc7(0x1f1)),_0x12789b[_0x30dbc7(0x21e)][_0x30dbc7(0x1e2)](_0x30dbc7(0x204))['to'](this,_0x30dbc7(0x204),this,_0x30dbc7(0x20c),(_0x5136ec,_0x29a98b)=>_0x5136ec&&!_0x29a98b),_0x12789b[_0x30dbc7(0x21e)][_0x30dbc7(0x209)](_0x30dbc7(0x202))['to'](this,_0x30dbc7(0x1f8)),_0x12789b[_0x30dbc7(0x1f0)][_0x30dbc7(0x1e2)](_0x30dbc7(0x204))['to'](this,_0x30dbc7(0x20c)),_0x12789b[_0x30dbc7(0x1f0)][_0x30dbc7(0x209)](_0x30dbc7(0x202))['to'](this,_0x30dbc7(0x208)),_0x12789b;}[_0x14b28c(0x21c)](){const _0x33eccf=_0x14b28c;this[_0x33eccf(0x224)]='',this[_0x33eccf(0x223)]=!0x1,this[_0x33eccf(0x20c)]=!0x0,this[_0x33eccf(0x22d)][_0x33eccf(0x211)]=!0x0,this[_0x33eccf(0x1f6)][_0x33eccf(0x211)]=!0x0,this[_0x33eccf(0x22d)][_0x33eccf(0x1ed)]();}[_0x14b28c(0x212)](){const _0x3fed2e=_0x14b28c,_0x4cd30e=this[_0x3fed2e(0x1e7)];this[_0x3fed2e(0x20c)]=!0x1,this[_0x3fed2e(0x1e8)]='',this[_0x3fed2e(0x22c)][_0x3fed2e(0x1e9)](),this[_0x3fed2e(0x224)]&&(this[_0x3fed2e(0x22c)][_0x3fed2e(0x238)][_0x3fed2e(0x218)]=_0x12b5de(_0x4cd30e,_0x3fed2e(0x1ee)));}[_0x14b28c(0x1f9)](_0x2601b5){const _0x484586=_0x14b28c,_0x35440c=this[_0x484586(0x1e7)];this[_0x484586(0x212)](),this[_0x484586(0x223)]=!0x0,this[_0x484586(0x1fb)][_0x484586(0x1e5)]=_0x2601b5||_0x12b5de(_0x35440c,_0x484586(0x1f7)),this[_0x484586(0x224)]||(this[_0x484586(0x22d)][_0x484586(0x211)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x29f0bd,_0x510b61){const _0x1e28ba=_0x179c,_0x585f67=_0x29f0bd();while(!![]){try{const _0x48ed6f=parseInt(_0x1e28ba(0x1fa))/0x1+-parseInt(_0x1e28ba(0x1f5))/0x2*(parseInt(_0x1e28ba(0x1fc))/0x3)+-parseInt(_0x1e28ba(0x1f0))/0x4*(-parseInt(_0x1e28ba(0x1f7))/0x5)+parseInt(_0x1e28ba(0x1f6))/0x6*(parseInt(_0x1e28ba(0x200))/0x7)+parseInt(_0x1e28ba(0x1f2))/0x8+-parseInt(_0x1e28ba(0x1f4))/0x9*(-parseInt(_0x1e28ba(0x1ff))/0xa)+-parseInt(_0x1e28ba(0x1f3))/0xb;if(_0x48ed6f===_0x510b61)break;else _0x585f67['push'](_0x585f67['shift']());}catch(_0x35c835){_0x585f67['push'](_0x585f67['shift']());}}}(_0x10f1,0x29ba7));import{ListItemView as _0x56f197,ButtonView as _0x3078cd,ButtonLabelView as _0x329b92}from'ckeditor5/src/ui.js';import{unescape as _0x1f5a32}from'es-toolkit/compat';function _0x179c(_0x30492b,_0x28eb3b){const _0x10f126=_0x10f1();return _0x179c=function(_0x179c05,_0x2dc393){_0x179c05=_0x179c05-0x1f0;let _0x2ac73f=_0x10f126[_0x179c05];return _0x2ac73f;},_0x179c(_0x30492b,_0x28eb3b);}function _0x10f1(){const _0x2d899a=['208172ObbSwi','locale','1320536NvHjnb','6159384OJdQZG','153ZZGigK','4JBWKkp','18CJfrSk','25QkdkpC','execute','set','187236iWWzVA','prompt','180828CrLNjk','children','fire','25430QkVNPL','456554XwZqyt','add'];_0x10f1=function(){return _0x2d899a;};return _0x10f1();}export class AIHistoryListItemView extends _0x56f197{constructor(_0x337cd6){const _0x49020a=_0x179c;super();const _0x349eb8=new _0x329b92(),_0x2fc8ef=new _0x3078cd(this[_0x49020a(0x1f1)],_0x349eb8);this[_0x49020a(0x1fd)][_0x49020a(0x201)](_0x2fc8ef),_0x2fc8ef[_0x49020a(0x1f9)]({'label':_0x337cd6[_0x49020a(0x1fb)],'withText':!0x0}),_0x2fc8ef['on'](_0x49020a(0x1f8),()=>{const _0x5959ad=_0x49020a;this[_0x5959ad(0x1fe)](_0x5959ad(0x1f8),{'value':_0x1f5a32(_0x337cd6[_0x5959ad(0x1fb)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ff0c3=_0x436e;(function(_0x21961d,_0x91509b){const _0x2103ea=_0x436e,_0x1367c1=_0x21961d();while(!![]){try{const _0xffa327=parseInt(_0x2103ea(0x168))/0x1*(parseInt(_0x2103ea(0x169))/0x2)+-parseInt(_0x2103ea(0x175))/0x3+parseInt(_0x2103ea(0x174))/0x4*(parseInt(_0x2103ea(0x17d))/0x5)+parseInt(_0x2103ea(0x16d))/0x6*(parseInt(_0x2103ea(0x16f))/0x7)+-parseInt(_0x2103ea(0x180))/0x8*(-parseInt(_0x2103ea(0x176))/0x9)+parseInt(_0x2103ea(0x171))/0xa*(-parseInt(_0x2103ea(0x16e))/0xb)+-parseInt(_0x2103ea(0x177))/0xc*(-parseInt(_0x2103ea(0x173))/0xd);if(_0xffa327===_0x91509b)break;else _0x1367c1['push'](_0x1367c1['shift']());}catch(_0x1af9fb){_0x1367c1['push'](_0x1367c1['shift']());}}}(_0x8c40,0x6a4ef));import{ListView as _0x43865f,ListItemGroupView as _0xe3c0e8,ButtonView as _0x165939}from'ckeditor5/src/ui.js';function _0x436e(_0x2140ce,_0x31a867){const _0x8c4030=_0x8c40();return _0x436e=function(_0x436e72,_0x1a7335){_0x436e72=_0x436e72-0x167;let _0x3ad518=_0x8c4030[_0x436e72];return _0x3ad518;},_0x436e(_0x2140ce,_0x31a867);}import{getTranslation as _0x5aab9f}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x43865f{[_0x4ff0c3(0x16a)];[_0x4ff0c3(0x17c)];constructor(_0x513aed){const _0x1464d2=_0x4ff0c3;super(_0x513aed),this[_0x1464d2(0x17c)]=this[_0x1464d2(0x16c)](),this[_0x1464d2(0x16a)]=new _0xe3c0e8(),this[_0x1464d2(0x16a)][_0x1464d2(0x178)][_0x1464d2(0x16b)](this[_0x1464d2(0x17c)],0x1),this[_0x1464d2(0x16a)][_0x1464d2(0x181)]=_0x5aab9f(_0x513aed,_0x1464d2(0x17e)),this[_0x1464d2(0x16a)][_0x1464d2(0x17f)][_0x1464d2(0x167)](_0x1464d2(0x182))['to'](this),this[_0x1464d2(0x17f)][_0x1464d2(0x16b)](this[_0x1464d2(0x16a)]);}[_0x4ff0c3(0x184)](){const _0x1883e4=_0x4ff0c3;let _0x5d5f80=0x0;for(const _0x443db3 of this[_0x1883e4(0x17f)])_0x5d5f80+=_0x443db3[_0x1883e4(0x17f)][_0x1883e4(0x17a)];return{'resultsCount':_0x5d5f80,'totalItemsCount':_0x5d5f80};}[_0x4ff0c3(0x16c)](){const _0xd1c3da=_0x4ff0c3,_0x195f53=this[_0xd1c3da(0x183)],_0x5d8a9f=new _0x165939(this[_0xd1c3da(0x183)]);return _0x5d8a9f[_0xd1c3da(0x17b)]({'label':'('+_0x5aab9f(_0x195f53,_0xd1c3da(0x170))+')','withText':!0x0}),_0x5d8a9f['on'](_0xd1c3da(0x182),()=>this[_0xd1c3da(0x172)](_0xd1c3da(0x179))),_0x5d8a9f;}}function _0x8c40(){const _0x31b889=['420JBkDrS','fire','117Hvvjwa','1640CyttAm','2529630TlVKzx','7254TEcdEm','384708qNOpTT','children','clearHistory','length','set','clearHistoryButton','5090cSKFyQ','Prompt\x20history','items','2680lPlELd','label','execute','locale','filter','delegate','87wWbUwp','3398cfIVlw','historyGroupView','add','_createClearHistoryButton','6ONYdtO','31251eCFmlX','1919659CsWyIT','Clear'];_0x8c40=function(){return _0x31b889;};return _0x8c40();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x43b6(){const _0x3874eb=['parse','2pVqxax','setItem','getItem','trim','CKEditor/AIFormView/PromptHistory','432SGtcbG','prompt','6xJUIDy','1375995KACmso','20BNuchN','_loadFromSessionStorage','_saveToSessionStorage','925620nfJmOH','173648ljsCVx','11387070KqIYnn','261834StzcPt','2651478GZIprB','stringify','toLowerCase','last','length','649GSzPXe','add','remove','7367297XNHvDF','addMany','map'];_0x43b6=function(){return _0x3874eb;};return _0x43b6();}const _0x4c482d=_0x429e;(function(_0x240bf9,_0x560097){const _0x4ef51d=_0x429e,_0xe4384a=_0x240bf9();while(!![]){try{const _0x52dd10=-parseInt(_0x4ef51d(0xaa))/0x1+parseInt(_0x4ef51d(0xb7))/0x2*(-parseInt(_0x4ef51d(0xab))/0x3)+parseInt(_0x4ef51d(0xc0))/0x4*(-parseInt(_0x4ef51d(0xbf))/0x5)+parseInt(_0x4ef51d(0xbe))/0x6*(parseInt(_0x4ef51d(0xb3))/0x7)+-parseInt(_0x4ef51d(0xa8))/0x8*(parseInt(_0x4ef51d(0xbc))/0x9)+-parseInt(_0x4ef51d(0xa9))/0xa+-parseInt(_0x4ef51d(0xb0))/0xb*(-parseInt(_0x4ef51d(0xa7))/0xc);if(_0x52dd10===_0x560097)break;else _0xe4384a['push'](_0xe4384a['shift']());}catch(_0x10d790){_0xe4384a['push'](_0xe4384a['shift']());}}}(_0x43b6,0xdc042));import{Collection as _0x92ad3d}from'ckeditor5/src/utils.js';const So=_0x4c482d(0xbb);export class PromptHistory extends _0x92ad3d{constructor(){const _0x557296=_0x4c482d;super(),this[_0x557296(0xc1)](),this['on'](_0x557296(0xb1),(_0x3dfc05,_0x1c3c24)=>{const _0x3ff497=_0x557296,_0x460620=go(_0x1c3c24[_0x3ff497(0xbd)]);for(const _0x4363ce of this)if(_0x4363ce!=_0x1c3c24&&go(_0x4363ce[_0x3ff497(0xbd)])===_0x460620){this[_0x3ff497(0xb2)](_0x4363ce);break;}this[_0x3ff497(0xaf)]>0x14&&this[_0x3ff497(0xb2)](this[_0x3ff497(0xae)]),this[_0x3ff497(0xc2)]();}),this['on'](_0x557296(0xb2),()=>{const _0xe8537f=_0x557296;this[_0xe8537f(0xc2)]();});}[_0x4c482d(0xc1)](){const _0x2ac73b=_0x4c482d,_0x192d92=sessionStorage[_0x2ac73b(0xb9)](So)||'[]';this[_0x2ac73b(0xb4)](JSON[_0x2ac73b(0xb6)](_0x192d92));}[_0x4c482d(0xc2)](){const _0x4afd5a=_0x4c482d;sessionStorage[_0x4afd5a(0xb8)](So,JSON[_0x4afd5a(0xac)](this[_0x4afd5a(0xb5)](_0x54ce8b=>_0x54ce8b)));}}function _0x429e(_0x1b966a,_0x5c15fa){const _0x43b696=_0x43b6();return _0x429e=function(_0x429ead,_0x5cfda6){_0x429ead=_0x429ead-0xa7;let _0x7f4e06=_0x43b696[_0x429ead];return _0x7f4e06;},_0x429e(_0x1b966a,_0x5c15fa);}function go(_0x23f329){const _0x1b4ffd=_0x4c482d;return _0x23f329[_0x1b4ffd(0xad)]()[_0x1b4ffd(0xba)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e3e8d=_0x2504;function _0xb863(){const _0x15f55a=['isCollapsed','change:_hasContext','get','custom','name','config','688961BrnRuX','model','selection','enabledCommandsIds','hasContent','refresh','_commandDefinitions','from','getRanges','getFirstRange','requiresContent','document','includes','getItems','740475SePTPc','change:isEnabled','showUI','1374840XDzKPD','234810PHizif','add','element','length','78ecguJV','isEmpty','40rbHYHB','952192kmLmDp','_hasContext','5481MhNVqc','isEnabled','ai.assistant.disabledElements','4703JpzlZS','values','editor','execute','set','plugins','getSelectedBlocks'];_0xb863=function(){return _0x15f55a;};return _0xb863();}(function(_0xbba657,_0x5dccb4){const _0x4ecfb1=_0x2504,_0x268759=_0xbba657();while(!![]){try{const _0x11ddb3=parseInt(_0x4ecfb1(0x1d6))/0x1*(parseInt(_0x4ecfb1(0x1f9))/0x2)+parseInt(_0x4ecfb1(0x1f1))/0x3+-parseInt(_0x4ecfb1(0x1f4))/0x4+parseInt(_0x4ecfb1(0x1d0))/0x5*(parseInt(_0x4ecfb1(0x1f5))/0x6)+-parseInt(_0x4ecfb1(0x1e3))/0x7+-parseInt(_0x4ecfb1(0x1d1))/0x8+parseInt(_0x4ecfb1(0x1d3))/0x9;if(_0x11ddb3===_0x5dccb4)break;else _0x268759['push'](_0x268759['shift']());}catch(_0x247cb5){_0x268759['push'](_0x268759['shift']());}}}(_0xb863,0x2c9f6));import{Command as _0x3b6837}from'ckeditor5/src/core.js';function _0x2504(_0x5d5a36,_0x1982cd){const _0xb863f4=_0xb863();return _0x2504=function(_0x25042b,_0x12e047){_0x25042b=_0x25042b-0x1cf;let _0x4d025b=_0xb863f4[_0x25042b];return _0x4d025b;},_0x2504(_0x5d5a36,_0x1982cd);}import{AIAssistantUI as _0x2cfd88}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x3b6837{[_0x4e3e8d(0x1e9)];constructor(_0x59f6ee,_0x566b00){const _0x235909=_0x4e3e8d;super(_0x59f6ee),this[_0x235909(0x1e9)]=_0x566b00,this[_0x235909(0x1da)](_0x235909(0x1e6),[]),this['on'](_0x235909(0x1de),(_0x5015f5,_0x19bd6f,_0x1cb95d)=>{const _0x139d0f=_0x235909;this[_0x139d0f(0x1d4)]&&(this[_0x139d0f(0x1e6)]=ns(this[_0x139d0f(0x1e9)],_0x1cb95d));}),this[_0x235909(0x1da)](_0x235909(0x1d2),!0x1),this['on'](_0x235909(0x1f2),(_0x244c68,_0x499d70,_0x9af4a8)=>{const _0x4ada19=_0x235909;this[_0x4ada19(0x1e6)]=_0x9af4a8?ns(this[_0x4ada19(0x1e9)],this[_0x4ada19(0x1d2)]):[];});}[_0x4e3e8d(0x1e8)](){const _0x10d0c4=_0x4e3e8d,_0x4d8c15=this[_0x10d0c4(0x1d8)][_0x10d0c4(0x1e4)];this[_0x10d0c4(0x1d2)]=function(_0x422dc1){const _0x271ff4=_0x10d0c4,_0x5aa346=_0x422dc1[_0x271ff4(0x1ee)][_0x271ff4(0x1e5)];return _0x5aa346[_0x271ff4(0x1dd)]?0x0!==[..._0x5aa346[_0x271ff4(0x1dc)]()][_0x271ff4(0x1f8)]&&![..._0x5aa346[_0x271ff4(0x1dc)]()][0x0][_0x271ff4(0x1cf)]:!!_0x422dc1[_0x271ff4(0x1e7)](_0x5aa346[_0x271ff4(0x1ec)]());}(_0x4d8c15);const _0xe8098b=_0x4d8c15[_0x10d0c4(0x1ee)][_0x10d0c4(0x1e5)],_0xa4f232=this[_0x10d0c4(0x1d8)][_0x10d0c4(0x1e2)][_0x10d0c4(0x1df)](_0x10d0c4(0x1d5));for(const _0x36a2f0 of _0xe8098b[_0x10d0c4(0x1eb)]())for(const _0x1fe7fe of _0x36a2f0[_0x10d0c4(0x1f0)]())if(_0x1fe7fe['is'](_0x10d0c4(0x1f7))&&_0xa4f232[_0x10d0c4(0x1ef)](_0x1fe7fe[_0x10d0c4(0x1e1)]))return void(this[_0x10d0c4(0x1d4)]=!0x1);this[_0x10d0c4(0x1d4)]=!0x0;}[_0x4e3e8d(0x1d9)](_0x1494a9='',_0x45d6e1='',_0x460aad=_0x4e3e8d(0x1e0)){const _0x35f3c6=_0x4e3e8d;this[_0x35f3c6(0x1d8)][_0x35f3c6(0x1db)][_0x35f3c6(0x1df)](_0x2cfd88)[_0x35f3c6(0x1f3)](_0x1494a9,_0x45d6e1,_0x460aad);}}function ns(_0x43b2b4,_0x4c69dd){const _0x48854f=_0x4e3e8d,_0x2b4f72=new Set();for(const _0x4e6532 of _0x43b2b4[_0x48854f(0x1d7)]())(_0x4c69dd||!0x1===_0x4e6532[_0x48854f(0x1ed)])&&_0x2b4f72[_0x48854f(0x1f6)](_0x4e6532['id']);return Array[_0x48854f(0x1ea)](_0x2b4f72);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a14d6=_0x1457;(function(_0x4bb7ff,_0x4ef300){const _0x126c29=_0x1457,_0x17dc8e=_0x4bb7ff();while(!![]){try{const _0x4f9da7=-parseInt(_0x126c29(0x10a))/0x1*(-parseInt(_0x126c29(0x157))/0x2)+-parseInt(_0x126c29(0x11c))/0x3*(parseInt(_0x126c29(0x133))/0x4)+parseInt(_0x126c29(0x103))/0x5*(-parseInt(_0x126c29(0x122))/0x6)+parseInt(_0x126c29(0x143))/0x7+-parseInt(_0x126c29(0x13a))/0x8+-parseInt(_0x126c29(0x141))/0x9*(parseInt(_0x126c29(0x134))/0xa)+parseInt(_0x126c29(0x14f))/0xb;if(_0x4f9da7===_0x4ef300)break;else _0x17dc8e['push'](_0x17dc8e['shift']());}catch(_0x484af7){_0x17dc8e['push'](_0x17dc8e['shift']());}}}(_0x4176,0xc469b));import{ContextPlugin as _0x1e49c6}from'ckeditor5/src/core.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x149935,AIEditing as _0xc7cbcf}from'../aicore/aiediting.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x4ab560}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x1457(_0x587eb7,_0x377379){const _0x41769c=_0x4176();return _0x1457=function(_0x1457b9,_0x5d24e2){_0x1457b9=_0x1457b9-0xfd;let _0x3cd6c1=_0x41769c[_0x1457b9];return _0x3cd6c1;},_0x1457(_0x587eb7,_0x377379);}import{global as _0x1b3799,Rect as _0x3b1c57,scrollViewportToShowTarget as _0x5c0dc2}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x301e3c}from'../aicore/utils/geteditorfromcontext.js';import{getTranslation as _0x3479df}from'../aicore/utils/common-translations.js';function _0x4176(){const _0x550956=['updatePosition','132696kScdwY','ck-ai-balloon\x20','left','Dialog','index','isOpen','startsWith','90693VPbcDU','getVisible','2952747APnYRB','beforeDialogClosed','editing','filter','ai-selection','requires','high','_getSelectionElements','plugins','top','_updateDialog','context','15286557hdofzK','AIBalloon','length','hide','locale','mainView','document','isEqual','200606mqHwkQ','end','_showFakeVisualSelection','showBlockingError','_setupFakeVisualSelectionMarkerRemovalListener','differ','iconView','_cleanupFakeVisualSelectionMarkerRemovalListener','selectionRemoved','getChangedMarkers','845xDfWqj','once','headerView','label','_showDialog','hideFakeVisualSelection','hideError','5JTYnji','_isUpdatingMarkers','showFakeVisualSelection','fire','width','dialogClosed','open','root','ai-balloon-selection','getMarkersGroup','start','_currentConfig','map','rootName','content','listenTo','delegate','_calculateOptimalTopPosition','6bjcxYY','height','$graveyard','view','getBoundingRect','max','23664XMliEP','isOfficialPlugin','pluginName','bind','stopListening','_calculateDialogPosition','model','isPremiumPlugin','get','change','AI_BALLOON_SELECTION_REMOVED_ERROR','markers','getIntersection','show','window','round','ranges','622932gCXBXT','510ndWAUV','_hideFakeVisualSelection','ai-balloon-','bottom','close'];_0x4176=function(){return _0x550956;};return _0x4176();}import{AI_BALLOON_VIEW_EVENT_NAMES as _0x1ec999}from'./ui/aiballoonview.js';export const AI_BALLOON_EVENT_NAMES=[..._0x1ec999,_0x1a14d6(0x10f),_0x1a14d6(0x101)];const $=0xa;export class AIBalloon extends _0x1e49c6{static get[_0x1a14d6(0x148)](){return[_0xc7cbcf];}static get[_0x1a14d6(0x124)](){const _0x24a793=_0x1a14d6;return _0x24a793(0x150);}static get[_0x1a14d6(0x123)](){return!0x0;}static get[_0x1a14d6(0x129)](){return!0x0;}[_0x1a14d6(0x13f)]=!0x1;[_0x1a14d6(0x115)];[_0x1a14d6(0x10b)]=!0x1;[_0x1a14d6(0x110)](_0x57e360){const _0x4611f9=_0x1a14d6,{id:_0x4e6d31}=this[_0x4611f9(0x115)]??{};this[_0x4611f9(0x115)]=_0x57e360;const {id:_0x51f3a4}=this[_0x4611f9(0x115)];this[_0x4611f9(0x13f)]&&_0x4e6d31===_0x51f3a4?this[_0x4611f9(0x14d)]():this[_0x4611f9(0x107)]();}[_0x1a14d6(0x138)](){const _0x4819a7=_0x1a14d6,_0x56e954=_0x301e3c(this[_0x4819a7(0x14e)])[_0x4819a7(0x14b)][_0x4819a7(0x12a)](_0x4819a7(0x13d));_0x56e954[_0x4819a7(0x13f)]&&this[_0x4819a7(0x115)]&&_0x56e954['id']===this[_0x4819a7(0x115)]['id']&&_0x56e954[_0x4819a7(0x152)]();}[_0x1a14d6(0x14d)](){const _0x57df17=_0x1a14d6,_0x370529=_0x301e3c(this[_0x57df17(0x14e)])[_0x57df17(0x14b)][_0x57df17(0x12a)](_0x57df17(0x13d)),{icon:_0x2c9ea4,title:_0x3c0431}=this[_0x57df17(0x115)];_0x370529[_0x57df17(0x11f)]?.[_0x57df17(0x105)]&&(_0x370529[_0x57df17(0x11f)][_0x57df17(0x105)][_0x57df17(0x106)]=_0x3c0431,_0x370529[_0x57df17(0x11f)][_0x57df17(0x105)][_0x57df17(0xff)]&&_0x2c9ea4&&(_0x370529[_0x57df17(0x11f)][_0x57df17(0x105)][_0x57df17(0xff)][_0x57df17(0x118)]=_0x2c9ea4)),this[_0x57df17(0x10b)]=!0x0,this[_0x57df17(0x159)](),this[_0x57df17(0x10b)]=!0x1,_0x370529[_0x57df17(0x11f)]?.[_0x57df17(0x139)]();}[_0x1a14d6(0x159)](){const _0x914c32=_0x1a14d6;this[_0x914c32(0x14e)][_0x914c32(0x14b)][_0x914c32(0x12a)](_0xc7cbcf)[_0x914c32(0x10c)](this[_0x914c32(0x115)][_0x914c32(0x132)],_0x914c32(0x136)+this[_0x914c32(0x115)][_0x914c32(0x13e)],!0x0,!0x0);}[_0x1a14d6(0x135)](_0x214955){const _0x28f9f3=_0x1a14d6;this[_0x28f9f3(0x14e)][_0x28f9f3(0x14b)][_0x28f9f3(0x12a)](_0xc7cbcf)[_0x28f9f3(0x108)](_0x28f9f3(0x136)+_0x214955);}[_0x1a14d6(0x107)](){const _0x1c726a=_0x1a14d6,_0x31a633=_0x301e3c(this[_0x1c726a(0x14e)])[_0x1c726a(0x14b)][_0x1c726a(0x12a)](_0x1c726a(0x13d)),{id:_0x2b5171,title:_0x490426,icon:_0x2df9da,class:_0x231059,mainView:_0x357c49}=this[_0x1c726a(0x115)];_0x357c49[_0x1c726a(0x11a)](..._0x1ec999)['to'](this),_0x31a633[_0x1c726a(0x12f)]({'title':_0x490426,'icon':_0x2df9da,'hasCloseButton':!0x0,'id':_0x2b5171,'position':this[_0x1c726a(0x127)][_0x1c726a(0x125)](this),'className':_0x1c726a(0x13b)+(_0x231059||''),'content':_0x357c49,'onShow':_0x1f4240=>{const _0xef8a72=_0x1c726a;this[_0xef8a72(0x159)](),this[_0xef8a72(0xfd)]();const _0x429866=this[_0xef8a72(0x14a)]();_0x429866&&_0x429866[0x0]&&_0x5c0dc2({'target':_0x429866[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0xef8a72(0x13f)]=!0x0,_0x1f4240[_0xef8a72(0x104)](_0xef8a72(0x152),()=>{const _0x1df9f6=_0xef8a72;this[_0x1df9f6(0x10d)](_0x1df9f6(0x144),{'id':_0x2b5171});},{'priority':_0xef8a72(0x149)});},'onHide':()=>{const _0x32c649=_0x1c726a;this[_0x32c649(0x135)](this[_0x32c649(0x115)][_0x32c649(0x13e)]),this[_0x32c649(0x100)](),this[_0x32c649(0x10d)](_0x32c649(0x10f),{'id':_0x2b5171}),this[_0x32c649(0x13f)]=!0x1;}});}[_0x1a14d6(0x127)](_0x5f0d77,_0x4d1e61){const _0x4e3f8e=_0x1a14d6;if(!_0x4d1e61)return null;const _0x38cd74=this[_0x4e3f8e(0x14a)]();if(!_0x38cd74||0x0===_0x38cd74[_0x4e3f8e(0x151)])return{'left':Math[_0x4e3f8e(0x131)](_0x4d1e61[_0x4e3f8e(0x13c)]+_0x4d1e61[_0x4e3f8e(0x10e)]/0x2-_0x5f0d77[_0x4e3f8e(0x10e)]/0x2),'top':Math[_0x4e3f8e(0x131)](_0x4d1e61[_0x4e3f8e(0x14c)]+_0x4d1e61[_0x4e3f8e(0x11d)]/0x2-_0x5f0d77[_0x4e3f8e(0x11d)]/0x2)};const _0x337e79=Math[_0x4e3f8e(0x131)](_0x4d1e61[_0x4e3f8e(0x13c)]+_0x4d1e61[_0x4e3f8e(0x10e)]/0x2-_0x5f0d77[_0x4e3f8e(0x10e)]/0x2),_0x2edca3=_0x38cd74[_0x4e3f8e(0x116)](_0x40e3a0=>new _0x3b1c57(_0x40e3a0)),_0x503126=_0x5f0d77[_0x4e3f8e(0x11d)];return{'left':_0x337e79,'top':this[_0x4e3f8e(0x11b)](_0x2edca3,_0x503126,_0x4d1e61)};}[_0x1a14d6(0x11b)](_0x3c6ad5,_0x653485,_0x40ffe0){const _0x7c0fec=_0x1a14d6,_0xf7826d=new _0x3b1c57(_0x1b3799[_0x7c0fec(0x130)]),_0x5dffbb=_0x3c6ad5[_0x7c0fec(0x116)](_0x53d9df=>_0x53d9df[_0x7c0fec(0x142)]())[_0x7c0fec(0x146)](_0x4693fd=>_0x4693fd),_0x1ea572=_0x3b1c57[_0x7c0fec(0x120)](_0x5dffbb);if(!_0x1ea572)return Math[_0x7c0fec(0x131)](_0x40ffe0[_0x7c0fec(0x14c)]+_0x40ffe0[_0x7c0fec(0x11d)]/0x2);const _0x31d805=_0xf7826d[_0x7c0fec(0x12e)](_0x1ea572);if(!_0x31d805)return Math[_0x7c0fec(0x131)](_0x40ffe0[_0x7c0fec(0x14c)]+_0x40ffe0[_0x7c0fec(0x11d)]/0x2);const _0x5c3a60=_0x40ffe0[_0x7c0fec(0x142)](),_0x5cba58=_0x5c3a60&&_0x1ea572[_0x7c0fec(0x11d)]>_0x5c3a60[_0x7c0fec(0x11d)],_0x3bf0e1=_0x31d805[_0x7c0fec(0x14c)],_0x5b0c4b=_0x31d805[_0x7c0fec(0x137)];if(_0x5cba58){const _0x3dace2=(_0x5c3a60||_0xf7826d)[_0x7c0fec(0x11d)]/0x2-_0x653485/0x2,_0x498e64=_0x3bf0e1-$-_0x40ffe0[_0x7c0fec(0x14c)],_0x3f5c02=_0x40ffe0[_0x7c0fec(0x137)]-_0x5b0c4b-$;return _0x498e64>=_0x653485?Math[_0x7c0fec(0x121)]($,_0x3bf0e1-_0x653485-$):_0x3f5c02>=_0x653485?_0x5b0c4b+$:Math[_0x7c0fec(0x121)]($,_0x3dace2);}const _0x3012e1=_0x3bf0e1-_0x653485,_0x59f4b9=_0x40ffe0[_0x7c0fec(0x137)]-_0x5b0c4b-$,_0x325688=_0x3bf0e1-$-_0x40ffe0[_0x7c0fec(0x14c)];let _0xc0826;if(_0x59f4b9>=_0x653485)_0xc0826=_0x5b0c4b+$;else{if(_0x325688>=_0x653485)_0xc0826=_0x3012e1-$;else _0xc0826=_0x3bf0e1+_0x1ea572[_0x7c0fec(0x11d)]/0x2-_0x653485/0x2;}return _0xc0826;}[_0x1a14d6(0xfd)](){const _0x19adcb=_0x1a14d6,_0x8df1bc=_0x301e3c(this[_0x19adcb(0x14e)]);this[_0x19adcb(0x119)](_0x8df1bc[_0x19adcb(0x128)][_0x19adcb(0x155)],_0x19adcb(0x12b),()=>{const _0x266aee=_0x19adcb;if(!this[_0x266aee(0x10b)]){for(const {name:_0x2f3a2d,data:{newRange:_0x5275d7}}of _0x8df1bc[_0x266aee(0x128)][_0x266aee(0x155)][_0x266aee(0xfe)][_0x266aee(0x102)]())if(_0x2f3a2d[_0x266aee(0x140)](_0x149935+':')&&(_0x5275d7&&(_0x5275d7[_0x266aee(0x114)][_0x266aee(0x156)](_0x5275d7[_0x266aee(0x158)])||_0x266aee(0x11e)==_0x5275d7[_0x266aee(0x111)][_0x266aee(0x117)])||null==_0x5275d7)){const _0x2cb09e=_0x3479df(this[_0x266aee(0x14e)][_0x266aee(0x153)],_0x266aee(0x12c));this[_0x266aee(0x115)][_0x266aee(0x154)][_0x266aee(0x15a)](_0x2cb09e),this[_0x266aee(0x10d)](_0x266aee(0x101));}}});}[_0x1a14d6(0x100)](){const _0x2f673a=_0x1a14d6,_0x496c15=_0x301e3c(this[_0x2f673a(0x14e)]);this[_0x2f673a(0x115)][_0x2f673a(0x154)][_0x2f673a(0x109)](),this[_0x2f673a(0x126)](_0x496c15[_0x2f673a(0x128)][_0x2f673a(0x155)]);}[_0x1a14d6(0x14a)](){const _0x35fa5b=_0x1a14d6,_0x58bfb4=_0x301e3c(this[_0x35fa5b(0x14e)]);return _0x4ab560(_0x58bfb4[_0x35fa5b(0x145)],[..._0x58bfb4[_0x35fa5b(0x128)][_0x35fa5b(0x12d)][_0x35fa5b(0x113)](_0x35fa5b(0x147)),..._0x58bfb4[_0x35fa5b(0x128)][_0x35fa5b(0x12d)][_0x35fa5b(0x113)](_0x35fa5b(0x112))]);}}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x144cd7=_0x43d9;function _0x43d9(_0x1adbc6,_0x4544b2){var _0xfc361b=_0xfc36();return _0x43d9=function(_0x43d9de,_0x635b62){_0x43d9de=_0x43d9de-0x137;var _0x38fbb4=_0xfc361b[_0x43d9de];return _0x38fbb4;},_0x43d9(_0x1adbc6,_0x4544b2);}(function(_0x15fb49,_0x175cca){var _0x48d982=_0x43d9,_0x79d1dd=_0x15fb49();while(!![]){try{var _0x3674ab=parseInt(_0x48d982(0x142))/0x1+-parseInt(_0x48d982(0x137))/0x2*(parseInt(_0x48d982(0x13d))/0x3)+-parseInt(_0x48d982(0x14b))/0x4*(parseInt(_0x48d982(0x138))/0x5)+-parseInt(_0x48d982(0x150))/0x6+-parseInt(_0x48d982(0x14a))/0x7*(-parseInt(_0x48d982(0x154))/0x8)+parseInt(_0x48d982(0x148))/0x9+parseInt(_0x48d982(0x14e))/0xa;if(_0x3674ab===_0x175cca)break;else _0x79d1dd['push'](_0x79d1dd['shift']());}catch(_0x2fee55){_0x79d1dd['push'](_0x79d1dd['shift']());}}}(_0xfc36,0xd2f19));import{ContextPlugin as _0xbaa729}from'ckeditor5/src/core.js';import{AIChatController as _0x13c133}from'./aichatcontroller.js';import{AIEditing as _0x572d41}from'../aicore/aiediting.js';import{AIChatUI as _0x4f74f7}from'./aichatui.js';import{AIChatHistory as _0x4be63c}from'../aichathistory/aichathistory.js';function _0xfc36(){var _0x32262a=['1633056LNwtoC','define','AIChat','focusPromptInput','8eJOJTa','22926GnPWON','5dQcqMx','startConversation','isPremiumPlugin','requires','registerToolDataCallback','288pcwbjz','removeSelectionFromChatContext','isOfficialPlugin','plugins','context','581716pDWivM','sendMessage','pluginName','config','new','addSelectionToChatContext','985797nFiyOB','get','11514027SyNTQq','594124DrXNoa','_registerToolDataCallback','ai.chat.context','490700LlsVUT','ai.chat.initialConversation'];_0xfc36=function(){return _0x32262a;};return _0xfc36();}export class AIChat extends _0xbaa729{static get[_0x144cd7(0x13b)](){return[_0x13c133,_0x572d41,_0x4f74f7,_0x4be63c];}static get[_0x144cd7(0x144)](){var _0x24ab86=_0x144cd7;return _0x24ab86(0x152);}static get[_0x144cd7(0x13f)](){return!0x0;}static get[_0x144cd7(0x13a)](){return!0x0;}constructor(_0x2d7242){var _0x20fb02=_0x144cd7;super(_0x2d7242),this[_0x20fb02(0x141)][_0x20fb02(0x145)][_0x20fb02(0x151)](_0x20fb02(0x14d),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x20fb02(0x141)][_0x20fb02(0x145)][_0x20fb02(0x151)](_0x20fb02(0x14f),_0x20fb02(0x146));}async[_0x144cd7(0x147)](){var _0x4944b6=_0x144cd7;await this[_0x4944b6(0x141)][_0x4944b6(0x140)][_0x4944b6(0x149)](_0x13c133)[_0x4944b6(0x147)]();}async[_0x144cd7(0x139)](){var _0x6688b1=_0x144cd7;await this[_0x6688b1(0x141)][_0x6688b1(0x140)][_0x6688b1(0x149)](_0x13c133)[_0x6688b1(0x139)]();}async[_0x144cd7(0x143)]({message:_0x5ab1d0,attributes:_0x248e8b}){var _0x2dd2a4=_0x144cd7;await this[_0x2dd2a4(0x141)][_0x2dd2a4(0x140)][_0x2dd2a4(0x149)](_0x13c133)[_0x2dd2a4(0x143)]({'message':_0x5ab1d0,'attributes':_0x248e8b});}[_0x144cd7(0x13e)](){var _0x5d8494=_0x144cd7;this[_0x5d8494(0x141)][_0x5d8494(0x140)][_0x5d8494(0x149)](_0x13c133)[_0x5d8494(0x13e)]();}[_0x144cd7(0x153)](){var _0x196f8a=_0x144cd7;this[_0x196f8a(0x141)][_0x196f8a(0x140)][_0x196f8a(0x149)](_0x13c133)[_0x196f8a(0x153)]();}[_0x144cd7(0x13c)](_0x41d3bb){var _0x57b379=_0x144cd7;this[_0x57b379(0x141)][_0x57b379(0x140)][_0x57b379(0x149)](_0x13c133)[_0x57b379(0x14c)](_0x41d3bb);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5196ef=_0xbb2f;(function(_0x5a9984,_0x4a0cf1){const _0x10cefa=_0xbb2f,_0x83d04f=_0x5a9984();while(!![]){try{const _0x17ad54=-parseInt(_0x10cefa(0x98))/0x1+parseInt(_0x10cefa(0x8b))/0x2*(-parseInt(_0x10cefa(0xb1))/0x3)+-parseInt(_0x10cefa(0xa9))/0x4+parseInt(_0x10cefa(0xbd))/0x5*(-parseInt(_0x10cefa(0xa1))/0x6)+parseInt(_0x10cefa(0x97))/0x7*(-parseInt(_0x10cefa(0x86))/0x8)+parseInt(_0x10cefa(0x8d))/0x9*(parseInt(_0x10cefa(0x91))/0xa)+parseInt(_0x10cefa(0x93))/0xb;if(_0x17ad54===_0x4a0cf1)break;else _0x83d04f['push'](_0x83d04f['shift']());}catch(_0xe5b193){_0x83d04f['push'](_0x83d04f['shift']());}}}(_0x1f0f,0xc8df5));function _0xbb2f(_0x23fbff,_0x33b5e3){const _0x1f0fb7=_0x1f0f();return _0xbb2f=function(_0xbb2f5,_0x42b9d5){_0xbb2f5=_0xbb2f5-0x80;let _0x22e351=_0x1f0fb7[_0xbb2f5];return _0x22e351;},_0xbb2f(_0x23fbff,_0x33b5e3);}import{Plugin as _0x338d7c}from'ckeditor5/src/core.js';function _0x1f0f(){const _0x47ad0c=['AIChatBalloon','toggleRotatorButtonsVisibility','aiChatBalloon','dialogClosed','set','render','plugins','401585fVgeQt','headerView','nextButtonView','showRotator','open','isOfficialPlugin','delegate','get','locale','Dialog','view','200IeIMxx','ck-ai-chat-balloon','trackChanges','_createChatBalloonView','previousButtonView','12MhjFQP','value','1233jTqTVs','showDiff','commands','focus','91870YBDmQZ','AIBalloon','36601664vBlAmg','once','isPremiumPlugin','showNext','336833zrmRjD','828099PeluIs','_restoreDefaultViewFocus','pluginName','config','applySuggestion','editor','ai.availableReplyActions','_chatBalloonView','setState','12lqqmTk','has','children','updateContent','togglePartToolbarEnabled','beforeDialogClosed','rejectSuggestion','insertSuggestion','3728616UPYeYr','areActionsDisabled','requires','close','_toggleRotatorButtonsInDialogHeader','remove','TrackChanges','addMany','319704WlvLyC','bind','isTrackChangesOn','filter','showPrevious'];_0x1f0f=function(){return _0x47ad0c;};return _0x1f0f();}import{AIBalloon as _0x5ce7cf}from'../aiballoon/aiballoon.js';import{AI_REPLY_ACTIONS as _0xc04859}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x288dc6}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x5556dd}from'../aicore/utils/eventnames.js';import{Dialog as _0x13fac4}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x338d7c{static get[_0x5196ef(0xab)](){return[_0x13fac4,_0x5ce7cf];}static get[_0x5196ef(0x9a)](){const _0x35400b=_0x5196ef;return _0x35400b(0xb6);}static get[_0x5196ef(0x80)](){return!0x0;}static get[_0x5196ef(0x95)](){return!0x0;}[_0x5196ef(0x9f)];constructor(_0x2517ae){const _0x1d3e72=_0x5196ef;super(_0x2517ae),this[_0x1d3e72(0xba)](_0x1d3e72(0x8e),!0x1);}[_0x5196ef(0xc1)](_0x5d873b){const _0x57ceed=_0x5196ef,_0x4004a7=this[_0x57ceed(0x9d)];this[_0x57ceed(0x9f)]||(this[_0x57ceed(0x9f)]=this[_0x57ceed(0x89)]()),_0x4004a7[_0x57ceed(0xbc)][_0x57ceed(0x82)](_0x57ceed(0x92))[_0x57ceed(0xc1)]({..._0x5d873b,'id':_0x57ceed(0xb8),'class':_0x57ceed(0x87),'mainView':this[_0x57ceed(0x9f)]}),this[_0x57ceed(0xad)](_0x5d873b[_0x57ceed(0xc0)]),this[_0x57ceed(0x9f)][_0x57ceed(0xa5)](!_0x5d873b[_0x57ceed(0xaa)]),this[_0x57ceed(0x99)]();}[_0x5196ef(0xac)](){const _0x2e8828=_0x5196ef;this[_0x2e8828(0x9d)][_0x2e8828(0xbc)][_0x2e8828(0x82)](_0x2e8828(0x92))[_0x2e8828(0xac)]();}[_0x5196ef(0xa4)](_0x5b6dd6){const _0x510bcc=_0x5196ef;return this[_0x510bcc(0x9f)]||(this[_0x510bcc(0x9f)]=this[_0x510bcc(0x89)]()),this[_0x510bcc(0x9f)][_0x510bcc(0xa4)](_0x5b6dd6);}[_0x5196ef(0xa0)](_0x5ca559){const _0x53211a=_0x5196ef;this[_0x53211a(0x9f)]&&this[_0x53211a(0x9f)][_0x53211a(0xa0)](_0x5ca559);}[_0x5196ef(0x89)](){const _0x4df6ba=_0x5196ef,_0x5c6924=this[_0x4df6ba(0x9d)],_0x552ec4=_0x5c6924[_0x4df6ba(0xbc)][_0x4df6ba(0x82)](_0x4df6ba(0x92)),_0x1c8c9=_0x5c6924[_0x4df6ba(0x8f)][_0x4df6ba(0x82)](_0x4df6ba(0x88));let _0x1c8670=_0x5c6924[_0x4df6ba(0x9b)][_0x4df6ba(0x82)](_0x4df6ba(0x9e))||[..._0xc04859];_0x5c6924[_0x4df6ba(0xbc)][_0x4df6ba(0xa2)](_0x4df6ba(0xaf))||(_0x1c8670=_0x1c8670[_0x4df6ba(0xb4)](_0x24cb1d=>_0x4df6ba(0xa8)!=_0x24cb1d));const _0x289477=new _0x288dc6(_0x5c6924[_0x4df6ba(0x83)],{'availableActions':_0x1c8670,'showApplyButton':!0x0,'showSuggestButton':!!_0x1c8c9});return _0x289477[_0x4df6ba(0xb2)](_0x4df6ba(0x8e))['to'](this),_0x289477[_0x4df6ba(0x81)](..._0x5556dd)['to'](this),_0x289477[_0x4df6ba(0x81)](_0x4df6ba(0xb5),_0x4df6ba(0x96))['to'](this),_0x552ec4[_0x4df6ba(0x81)](_0x4df6ba(0xb9))['to'](this),_0x289477['on'](_0x4df6ba(0x9c),this[_0x4df6ba(0x99)][_0x4df6ba(0xb2)](this)),_0x289477['on'](_0x4df6ba(0xa8),this[_0x4df6ba(0x99)][_0x4df6ba(0xb2)](this)),_0x289477['on'](_0x4df6ba(0xa7),this[_0x4df6ba(0x99)][_0x4df6ba(0xb2)](this)),_0x1c8c9&&_0x289477[_0x4df6ba(0xb2)](_0x4df6ba(0xb3))['to'](_0x1c8c9,_0x4df6ba(0x8c)),_0x289477[_0x4df6ba(0xbb)](),_0x289477;}[_0x5196ef(0xad)](_0xe707d9){const _0xa76d5b=_0x5196ef,_0x611485=this[_0xa76d5b(0x9d)],_0x50ff66=_0x611485[_0xa76d5b(0xbc)][_0xa76d5b(0x82)](_0xa76d5b(0x84))[_0xa76d5b(0x85)][_0xa76d5b(0xbe)][_0xa76d5b(0xa3)];this[_0xa76d5b(0x9f)][_0xa76d5b(0xb7)](_0xe707d9),_0x50ff66[_0xa76d5b(0xa2)](this[_0xa76d5b(0x9f)][_0xa76d5b(0x8a)])||(_0x50ff66[_0xa76d5b(0xb0)]([this[_0xa76d5b(0x9f)][_0xa76d5b(0x8a)],this[_0xa76d5b(0x9f)][_0xa76d5b(0xbf)]],0x0),_0x611485[_0xa76d5b(0xbc)][_0xa76d5b(0x82)](_0xa76d5b(0x92))[_0xa76d5b(0x94)](_0xa76d5b(0xa6),()=>{const _0x2d388e=_0xa76d5b;_0x50ff66[_0x2d388e(0xae)](this[_0x2d388e(0x9f)][_0x2d388e(0x8a)]),_0x50ff66[_0x2d388e(0xae)](this[_0x2d388e(0x9f)][_0x2d388e(0xbf)]);}));}[_0x5196ef(0x99)](){const _0x5dfa4e=_0x5196ef;this[_0x5dfa4e(0x9f)][_0x5dfa4e(0x90)]();}}
|