@ckeditor/ckeditor5-ai 47.1.0-alpha.2 → 47.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.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/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/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/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/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/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/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/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/aireviewmodels.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/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/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16af6a=_0x2ef7;(function(_0x3305cd,_0x4f2888){const _0xff1af6=_0x2ef7,_0x2abce4=_0x3305cd();while(!![]){try{const _0x2665c1=parseInt(_0xff1af6(0xe1))/0x1+-parseInt(_0xff1af6(0xd3))/0x2+parseInt(_0xff1af6(0xcf))/0x3*(-parseInt(_0xff1af6(0xb5))/0x4)+-parseInt(_0xff1af6(0xa4))/0x5+-parseInt(_0xff1af6(0xc9))/0x6*(-parseInt(_0xff1af6(0xbb))/0x7)+-parseInt(_0xff1af6(0xbf))/0x8*(-parseInt(_0xff1af6(0xec))/0x9)+-parseInt(_0xff1af6(0xd1))/0xa;if(_0x2665c1===_0x4f2888)break;else _0x2abce4['push'](_0x2abce4['shift']());}catch(_0x26f9d4){_0x2abce4['push'](_0x2abce4['shift']());}}}(_0x5dbb,0x39efe));import{FocusTracker as _0x4ee65b,KeystrokeHandler as _0x5bae2b}from'ckeditor5/src/utils.js';import{View as _0x210afd,FocusCycler as _0x4e9d26,createLabeledTextarea as _0x3bbeb3}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x92a323,AIFormToolbarViewMainActionLabel as _0x39ddc2}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x30355e}from'./aiformcontentarea.js';import{AIFormErrorView as _0x5f19ee}from'./aiformerrorview.js';import{AIFormPromptView as _0x1487e1}from'./aiformpromptview.js';function _0x5dbb(){const _0x25eaf6=['bindTemplate','errorView','keystrokes','clearHistory','fire','18ByEVtY','tryAgainButton','Empty\x20history','label','_createPromptView','_focusables','102QWSsDz','fieldView','4287600IUHKKJ','_promptHistory','302864CBTifV','clear','set','bindTo','isEnabled','listenTo','queryView','locale','replaceButton','ck-hidden','copyButtonView','_createHistoryView','trim','ck-ai-form-content','449108vDelLo','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','createCollection','submitPrompt','shift\x20+\x20tab','toolbar','element','Ask\x20AI\x20to\x20edit\x20or\x20generate','chain','isVisible','promptView','24993tGODRt','focusLast','historyGroupView','stopProcessing','insertButton','isProcessing','high','value','render','text','AI_ERROR_FAILED','tryAgainEvent','execute','1400690glJpjF','tab','stopButton','Ask\x20AI\x20to\x20improve\x20generated\x20text','startProcessing','insertContentBelow','reset','focusCycler','finishProcessing','replaceContent','mainAction','_createToolbar','div','contentArea','delegate','focusTracker','items','21532GOZRnP','isError','prompt','focusFirst','focus','add','884107Byhdvt','search','setTemplate','REPLACE','1304vjEtCt','bind','submit','ck-ai-form','handleError'];_0x5dbb=function(){return _0x25eaf6;};return _0x5dbb();}function _0x2ef7(_0x265cc5,_0x1bb6ae){const _0x5dbb73=_0x5dbb();return _0x2ef7=function(_0x2ef7a2,_0x47c679){_0x2ef7a2=_0x2ef7a2-0xa2;let _0x232205=_0x5dbb73[_0x2ef7a2];return _0x232205;},_0x2ef7(_0x265cc5,_0x1bb6ae);}import{AIHistoryListView as _0x4afbac}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x26bac8}from'./aihistorylistitemview.js';import{PromptHistory as _0x41882d}from'./prompthistory.js';import{getTranslation as _0x5b6eb9}from'../../utils/common-translations.js';import{escape as _0x326701}from'es-toolkit/compat';export class AIFormView extends _0x210afd{[_0x16af6a(0xb3)];[_0x16af6a(0xc6)];[_0x16af6a(0xb1)];[_0x16af6a(0xe6)];[_0x16af6a(0xeb)];[_0x16af6a(0xc5)];[_0x16af6a(0xce)];[_0x16af6a(0xab)];[_0x16af6a(0xd2)];constructor(_0x14f118,_0x14705e,_0x5d2cfc=''){const _0x4690f9=_0x16af6a;super(_0x14f118),this[_0x4690f9(0xd5)](_0x4690f9(0xd7),!0x0),this[_0x4690f9(0xd5)](_0x4690f9(0xf1),!0x1),this[_0x4690f9(0xd5)](_0x4690f9(0xb7),''),this[_0x4690f9(0xd5)](_0x4690f9(0xf3),''),this[_0x4690f9(0xd5)](_0x4690f9(0xb6),!0x1),this[_0x4690f9(0xd5)](_0x4690f9(0xae),_0x39ddc2[_0x4690f9(0xbe)]),this[_0x4690f9(0xd2)]=new _0x41882d(),this[_0x4690f9(0xc5)]=new _0x5f19ee(_0x14f118),this[_0x4690f9(0xb1)]=new _0x30355e(_0x14f118,_0x5d2cfc),this[_0x4690f9(0xb1)][_0x4690f9(0xc0)](_0x4690f9(0xf1))['to'](this),this[_0x4690f9(0xb1)][_0x4690f9(0xc0)](_0x4690f9(0xf3))['to'](this),this[_0x4690f9(0xe6)]=this[_0x4690f9(0xaf)](),this[_0x4690f9(0xe6)][_0x4690f9(0xc0)](_0x4690f9(0xae))['to'](this),this[_0x4690f9(0xeb)]=this[_0x4690f9(0xcd)](),this[_0x4690f9(0xb3)]=new _0x4ee65b(),this[_0x4690f9(0xc6)]=new _0x5bae2b(),this[_0x4690f9(0xce)]=this[_0x4690f9(0xe3)]([this[_0x4690f9(0xb1)],this[_0x4690f9(0xb1)][_0x4690f9(0xdd)],this[_0x4690f9(0xe6)],this[_0x4690f9(0xeb)]]),this[_0x4690f9(0xab)]=new _0x4e9d26({'focusables':this[_0x4690f9(0xce)],'focusTracker':this[_0x4690f9(0xb3)],'keystrokeHandler':this[_0x4690f9(0xc6)],'actions':{'focusPrevious':_0x4690f9(0xe5),'focusNext':_0x4690f9(0xa5)}}),this[_0x4690f9(0xab)][_0x4690f9(0xe9)](this[_0x4690f9(0xeb)][_0x4690f9(0xab)]),this[_0x4690f9(0xeb)][_0x4690f9(0xd9)][_0x4690f9(0xd0)][_0x4690f9(0xc0)](_0x4690f9(0xf3))['to'](this,_0x4690f9(0xb7));const _0x2fb40c=this[_0x4690f9(0xc4)];this[_0x4690f9(0xbd)]({'tag':_0x4690f9(0xb0),'attributes':{'class':['ck',_0x4690f9(0xc2),_0x14705e],'tabindex':'-1'},'children':[{'tag':_0x4690f9(0xb0),'attributes':{'class':['ck',_0x4690f9(0xe0)]},'children':[{'tag':_0x4690f9(0xb0),'attributes':{'class':[_0x2fb40c['if'](_0x4690f9(0xb6),_0x4690f9(0xdc),_0x3f8546=>!_0x3f8546)]},'children':[this[_0x4690f9(0xc5)]]},this[_0x4690f9(0xb1)],this[_0x4690f9(0xe6)],this[_0x4690f9(0xeb)]]}]});}[_0x16af6a(0xf4)](){const _0x3d2f73=_0x16af6a;super[_0x3d2f73(0xf4)](),this[_0x3d2f73(0xb3)][_0x3d2f73(0xba)](this[_0x3d2f73(0xb1)][_0x3d2f73(0xe7)]),this[_0x3d2f73(0xb3)][_0x3d2f73(0xba)](this[_0x3d2f73(0xb1)][_0x3d2f73(0xdd)][_0x3d2f73(0xe7)]),this[_0x3d2f73(0xb3)][_0x3d2f73(0xba)](this[_0x3d2f73(0xe6)][_0x3d2f73(0xe7)]),this[_0x3d2f73(0xb3)][_0x3d2f73(0xba)](this[_0x3d2f73(0xeb)][_0x3d2f73(0xe7)]),this[_0x3d2f73(0xc6)][_0x3d2f73(0xd8)](this[_0x3d2f73(0xe7)]);}[_0x16af6a(0xb9)](_0x197b19=0x1){const _0x5e64b8=_0x16af6a;-0x1===_0x197b19?this[_0x5e64b8(0xab)][_0x5e64b8(0xed)]():this[_0x5e64b8(0xab)][_0x5e64b8(0xb8)]();}[_0x16af6a(0xaa)](){const _0x5dd26a=_0x16af6a;this[_0x5dd26a(0xb7)]='',this[_0x5dd26a(0xf3)]='',this[_0x5dd26a(0xb6)]=!0x1,this[_0x5dd26a(0xeb)][_0x5dd26a(0xaa)](),this[_0x5dd26a(0xb1)][_0x5dd26a(0xea)]=!0x1,this[_0x5dd26a(0xe6)][_0x5dd26a(0xea)]=!0x1;}[_0x16af6a(0xcd)](){const _0x1c459a=_0x16af6a,_0x9f4ce=this[_0x1c459a(0xda)],_0x273514=new _0x1487e1(_0x9f4ce,{'queryView':{'label':_0x5b6eb9(_0x9f4ce,_0x1c459a(0xe8)),'creator':_0x3bbeb3,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x5b6eb9(_0x9f4ce,_0x1c459a(0xcb)),'secondary':_0x5b6eb9(_0x9f4ce,_0x1c459a(0xe2))}}},'filteredView':this[_0x1c459a(0xde)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x273514[_0x1c459a(0xc0)](_0x1c459a(0xd7))['to'](this,_0x1c459a(0xd7),this,_0x1c459a(0xf1),(_0x247433,_0x5a0caa)=>_0x247433&&!_0x5a0caa),this[_0x1c459a(0xd8)](_0x273514,_0x1c459a(0xc1),(_0x11a5aa,_0x4f7e4d)=>{const _0x44d766=_0x1c459a;this[_0x44d766(0xb7)]=_0x4f7e4d;const _0x16ef3b=_0x326701(_0x4f7e4d);this[_0x44d766(0xc8)](_0x44d766(0xe4),_0x16ef3b),_0x4f7e4d[_0x44d766(0xdf)]()&&this[_0x44d766(0xd2)][_0x44d766(0xba)]({'prompt':_0x16ef3b},0x0);},{'priority':_0x1c459a(0xf2)}),_0x273514;}[_0x16af6a(0xde)](){const _0x291504=_0x16af6a,_0xafdfca=new _0x4afbac(this[_0x291504(0xda)]);return _0xafdfca[_0x291504(0xee)][_0x291504(0xb4)][_0x291504(0xd6)](this[_0x291504(0xd2)])['as'](_0x26bac8),_0xafdfca['on'](_0x291504(0xc7),()=>{const _0x2582cb=_0x291504;this[_0x2582cb(0xd2)][_0x2582cb(0xd4)](),this[_0x2582cb(0xeb)][_0x2582cb(0xbc)](''),this[_0x2582cb(0xeb)][_0x2582cb(0xb9)]();}),_0xafdfca;}[_0x16af6a(0xaf)](){const _0x4b1ece=_0x16af6a,_0x3565aa=new _0x92a323(this[_0x4b1ece(0xda)]);return _0x3565aa[_0x4b1ece(0xdb)][_0x4b1ece(0xc0)](_0x4b1ece(0xd7))['to'](this,_0x4b1ece(0xd7),this,_0x4b1ece(0xf1),this,_0x4b1ece(0xf3),(_0x1439ec,_0x508c8d,_0x407c8b)=>_0x1439ec&&!_0x508c8d&&!!_0x407c8b),_0x3565aa[_0x4b1ece(0xdb)][_0x4b1ece(0xb2)](_0x4b1ece(0xa3))['to'](this,_0x4b1ece(0xad)),_0x3565aa[_0x4b1ece(0xf0)][_0x4b1ece(0xc0)](_0x4b1ece(0xd7))['to'](this,_0x4b1ece(0xd7),this,_0x4b1ece(0xf1),this,_0x4b1ece(0xf3),(_0x4c2250,_0x36f9e6,_0x2cd7a0)=>_0x4c2250&&!_0x36f9e6&&!!_0x2cd7a0),_0x3565aa[_0x4b1ece(0xf0)][_0x4b1ece(0xb2)](_0x4b1ece(0xa3))['to'](this,_0x4b1ece(0xa9)),_0x3565aa[_0x4b1ece(0xca)][_0x4b1ece(0xc0)](_0x4b1ece(0xd7))['to'](this,_0x4b1ece(0xd7),this,_0x4b1ece(0xf1),(_0x1ff11a,_0x6d4c0d)=>_0x1ff11a&&!_0x6d4c0d),_0x3565aa[_0x4b1ece(0xca)][_0x4b1ece(0xb2)](_0x4b1ece(0xa3))['to'](this,_0x4b1ece(0xa2)),_0x3565aa[_0x4b1ece(0xa6)][_0x4b1ece(0xc0)](_0x4b1ece(0xd7))['to'](this,_0x4b1ece(0xf1)),_0x3565aa[_0x4b1ece(0xa6)][_0x4b1ece(0xb2)](_0x4b1ece(0xa3))['to'](this,_0x4b1ece(0xef)),_0x3565aa;}[_0x16af6a(0xa8)](){const _0x4bde98=_0x16af6a;this[_0x4bde98(0xf3)]='',this[_0x4bde98(0xb6)]=!0x1,this[_0x4bde98(0xf1)]=!0x0,this[_0x4bde98(0xb1)][_0x4bde98(0xea)]=!0x0,this[_0x4bde98(0xe6)][_0x4bde98(0xea)]=!0x0,this[_0x4bde98(0xb1)][_0x4bde98(0xb9)]();}[_0x16af6a(0xac)](){const _0x5e9419=_0x16af6a,_0x3bf7e9=this[_0x5e9419(0xda)];this[_0x5e9419(0xf1)]=!0x1,this[_0x5e9419(0xb7)]='',this[_0x5e9419(0xeb)][_0x5e9419(0xaa)](),this[_0x5e9419(0xf3)]&&(this[_0x5e9419(0xeb)][_0x5e9419(0xd9)][_0x5e9419(0xcc)]=_0x5b6eb9(_0x3bf7e9,_0x5e9419(0xa7)));}[_0x16af6a(0xc3)](_0x4d3c8c){const _0x26a2d3=_0x16af6a,_0x41b971=this[_0x26a2d3(0xda)];this[_0x26a2d3(0xac)](),this[_0x26a2d3(0xb6)]=!0x0,this[_0x26a2d3(0xc5)][_0x26a2d3(0xf5)]=_0x4d3c8c||_0x5b6eb9(_0x41b971,_0x26a2d3(0xf6)),this[_0x26a2d3(0xf3)]||(this[_0x26a2d3(0xb1)][_0x26a2d3(0xea)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0xe1986d,_0x20505c){const _0xe04746=_0x89b5,_0x182b6a=_0xe1986d();while(!![]){try{const _0x53e0fb=-parseInt(_0xe04746(0xca))/0x1*(parseInt(_0xe04746(0xc4))/0x2)+-parseInt(_0xe04746(0xd3))/0x3*(parseInt(_0xe04746(0xd2))/0x4)+parseInt(_0xe04746(0xd1))/0x5*(parseInt(_0xe04746(0xc7))/0x6)+parseInt(_0xe04746(0xcb))/0x7+-parseInt(_0xe04746(0xcf))/0x8+-parseInt(_0xe04746(0xc5))/0x9*(-parseInt(_0xe04746(0xcc))/0xa)+-parseInt(_0xe04746(0xce))/0xb*(-parseInt(_0xe04746(0xc9))/0xc);if(_0x53e0fb===_0x20505c)break;else _0x182b6a['push'](_0x182b6a['shift']());}catch(_0x4a0921){_0x182b6a['push'](_0x182b6a['shift']());}}}(_0x21ca,0x7e55c));function _0x21ca(){const _0x283c4c=['add','execute','fire','2nWaNbM','2150973IhjePz','prompt','195642YXXNbB','locale','11803836oaTXlS','971342oXbYur','5517491aMcSDj','20fSmrTP','set','11cqZcuw','1026328GLtQGr','children','15NdbnVV','16mJOACl','547935oHvIHl'];_0x21ca=function(){return _0x283c4c;};return _0x21ca();}import{ListItemView as _0xa8e1d1,ButtonView as _0xbb299e,ButtonLabelView as _0x5583b2}from'ckeditor5/src/ui.js';import{unescape as _0x78de2e}from'es-toolkit/compat';function _0x89b5(_0x3c7b60,_0x19d01a){const _0x21caaa=_0x21ca();return _0x89b5=function(_0x89b528,_0x79d814){_0x89b528=_0x89b528-0xc1;let _0x40be89=_0x21caaa[_0x89b528];return _0x40be89;},_0x89b5(_0x3c7b60,_0x19d01a);}export class AIHistoryListItemView extends _0xa8e1d1{constructor(_0x527d0){const _0x838c8e=_0x89b5;super();const _0x261164=new _0x5583b2(),_0xf98716=new _0xbb299e(this[_0x838c8e(0xc8)],_0x261164);this[_0x838c8e(0xd0)][_0x838c8e(0xc1)](_0xf98716),_0xf98716[_0x838c8e(0xcd)]({'label':_0x527d0[_0x838c8e(0xc6)],'withText':!0x0}),_0xf98716['on'](_0x838c8e(0xc2),()=>{const _0x1495f4=_0x838c8e;this[_0x1495f4(0xc3)](_0x1495f4(0xc2),{'value':_0x78de2e(_0x527d0[_0x1495f4(0xc6)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x481de9=_0x48d4;(function(_0x41704a,_0x3a939f){const _0x59711e=_0x48d4,_0x6b7bc3=_0x41704a();while(!![]){try{const _0x387af8=parseInt(_0x59711e(0x1ae))/0x1+-parseInt(_0x59711e(0x1bf))/0x2*(-parseInt(_0x59711e(0x1c0))/0x3)+-parseInt(_0x59711e(0x1b0))/0x4*(parseInt(_0x59711e(0x1ba))/0x5)+-parseInt(_0x59711e(0x1b1))/0x6*(parseInt(_0x59711e(0x1bd))/0x7)+parseInt(_0x59711e(0x1b7))/0x8+parseInt(_0x59711e(0x1b4))/0x9+-parseInt(_0x59711e(0x1bc))/0xa;if(_0x387af8===_0x3a939f)break;else _0x6b7bc3['push'](_0x6b7bc3['shift']());}catch(_0x48e895){_0x6b7bc3['push'](_0x6b7bc3['shift']());}}}(_0x3962,0xb122e));function _0x48d4(_0x10eebc,_0x3b8bad){const _0x396273=_0x3962();return _0x48d4=function(_0x48d497,_0x5d0c86){_0x48d497=_0x48d497-0x1ae;let _0x1a97f2=_0x396273[_0x48d497];return _0x1a97f2;},_0x48d4(_0x10eebc,_0x3b8bad);}import{ListView as _0x15b80e,ListItemGroupView as _0x12d009,ButtonView as _0x35dd29}from'ckeditor5/src/ui.js';function _0x3962(){const _0x14ab4f=['78560Zvptyl','fire','11621240XoDFOn','350yFLVeg','_createClearHistoryButton','61518emvgKH','78tYPCUW','filter','clearHistoryButton','set','execute','items','locale','historyGroupView','Prompt\x20history','1873GnLbfv','length','4PSLkXw','72714keDbiB','Clear','clearHistory','13004370mnZjIG','label','add','2102392rRWjVG','delegate','children'];_0x3962=function(){return _0x14ab4f;};return _0x3962();}import{getTranslation as _0x3c31fb}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x15b80e{[_0x481de9(0x1c7)];[_0x481de9(0x1c2)];constructor(_0x5ecb8b){const _0x4abae3=_0x481de9;super(_0x5ecb8b),this[_0x4abae3(0x1c2)]=this[_0x4abae3(0x1be)](),this[_0x4abae3(0x1c7)]=new _0x12d009(),this[_0x4abae3(0x1c7)][_0x4abae3(0x1b9)][_0x4abae3(0x1b6)](this[_0x4abae3(0x1c2)],0x1),this[_0x4abae3(0x1c7)][_0x4abae3(0x1b5)]=_0x3c31fb(_0x5ecb8b,_0x4abae3(0x1c8)),this[_0x4abae3(0x1c7)][_0x4abae3(0x1c5)][_0x4abae3(0x1b8)](_0x4abae3(0x1c4))['to'](this),this[_0x4abae3(0x1c5)][_0x4abae3(0x1b6)](this[_0x4abae3(0x1c7)]);}[_0x481de9(0x1c1)](){const _0xf19d20=_0x481de9;let _0x21351d=0x0;for(const _0x5e0dd5 of this[_0xf19d20(0x1c5)])_0x21351d+=_0x5e0dd5[_0xf19d20(0x1c5)][_0xf19d20(0x1af)];return{'resultsCount':_0x21351d,'totalItemsCount':_0x21351d};}[_0x481de9(0x1be)](){const _0x25a4d5=_0x481de9,_0x383da6=this[_0x25a4d5(0x1c6)],_0x1b3196=new _0x35dd29(this[_0x25a4d5(0x1c6)]);return _0x1b3196[_0x25a4d5(0x1c3)]({'label':'('+_0x3c31fb(_0x383da6,_0x25a4d5(0x1b2))+')','withText':!0x0}),_0x1b3196['on'](_0x25a4d5(0x1c4),()=>this[_0x25a4d5(0x1bb)](_0x25a4d5(0x1b3))),_0x1b3196;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x57a494=_0xecf4;function _0xecf4(_0x6c16ea,_0x193bfd){const _0x38d5ea=_0x38d5();return _0xecf4=function(_0xecf41b,_0x5bde32){_0xecf41b=_0xecf41b-0x15a;let _0x1b3a1a=_0x38d5ea[_0xecf41b];return _0x1b3a1a;},_0xecf4(_0x6c16ea,_0x193bfd);}(function(_0x40be71,_0x29f2dd){const _0x3d04e2=_0xecf4,_0x18657d=_0x40be71();while(!![]){try{const _0x17dc09=parseInt(_0x3d04e2(0x17a))/0x1+parseInt(_0x3d04e2(0x169))/0x2*(-parseInt(_0x3d04e2(0x165))/0x3)+-parseInt(_0x3d04e2(0x184))/0x4*(parseInt(_0x3d04e2(0x15e))/0x5)+-parseInt(_0x3d04e2(0x174))/0x6*(parseInt(_0x3d04e2(0x187))/0x7)+-parseInt(_0x3d04e2(0x188))/0x8*(-parseInt(_0x3d04e2(0x16e))/0x9)+parseInt(_0x3d04e2(0x16f))/0xa*(parseInt(_0x3d04e2(0x15c))/0xb)+parseInt(_0x3d04e2(0x17d))/0xc*(parseInt(_0x3d04e2(0x170))/0xd);if(_0x17dc09===_0x29f2dd)break;else _0x18657d['push'](_0x18657d['shift']());}catch(_0x5ef697){_0x18657d['push'](_0x18657d['shift']());}}}(_0x38d5,0xebad4));import{Command as _0x260440}from'ckeditor5/src/core.js';function _0x38d5(){const _0x48949d=['custom','36VTHnIp','isEnabled','add','requiresContent','execute','hasContent','getFirstRange','24572xMwSZu','element','get','10763284IfomNO','4995880czHhXC','refresh','selection','286rDCClX','document','1535vRSIWS','getItems','change:_hasContext','set','ai.assistant.disabledElements','editor','enabledCommandsIds','1563OXIaRO','length','showUI','getRanges','34dKbtim','_commandDefinitions','config','getSelectedBlocks','includes','9EGkBFM','446450LHNkKR','4809779yAxNew','isCollapsed','plugins','isEmpty','6EjoYUG','model','_hasContext','from','change:isEnabled','name','1502498zVCPQc','values'];_0x38d5=function(){return _0x48949d;};return _0x38d5();}import{AIAssistantUI as _0x1d63ec}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x260440{[_0x57a494(0x16a)];constructor(_0x3a09e3,_0x4eaad4){const _0x208873=_0x57a494;super(_0x3a09e3),this[_0x208873(0x16a)]=_0x4eaad4,this[_0x208873(0x161)](_0x208873(0x164),[]),this['on'](_0x208873(0x160),(_0x277ffb,_0x36ec95,_0x1ee973)=>{const _0x38e429=_0x208873;this[_0x38e429(0x17e)]&&(this[_0x38e429(0x164)]=ns(this[_0x38e429(0x16a)],_0x1ee973));}),this[_0x208873(0x161)](_0x208873(0x176),!0x1),this['on'](_0x208873(0x178),(_0x3d72d8,_0x2e8aaa,_0x4dc7a9)=>{const _0x5cee93=_0x208873;this[_0x5cee93(0x164)]=_0x4dc7a9?ns(this[_0x5cee93(0x16a)],this[_0x5cee93(0x176)]):[];});}[_0x57a494(0x15a)](){const _0x454bad=_0x57a494,_0x2424b3=this[_0x454bad(0x163)][_0x454bad(0x175)];this[_0x454bad(0x176)]=function(_0x4f5eac){const _0x42ace3=_0x454bad,_0x19c44b=_0x4f5eac[_0x42ace3(0x15d)][_0x42ace3(0x15b)];return _0x19c44b[_0x42ace3(0x171)]?0x0!==[..._0x19c44b[_0x42ace3(0x16c)]()][_0x42ace3(0x166)]&&![..._0x19c44b[_0x42ace3(0x16c)]()][0x0][_0x42ace3(0x173)]:!!_0x4f5eac[_0x42ace3(0x182)](_0x19c44b[_0x42ace3(0x183)]());}(_0x2424b3);const _0x11ced3=_0x2424b3[_0x454bad(0x15d)][_0x454bad(0x15b)],_0x4e205e=this[_0x454bad(0x163)][_0x454bad(0x16b)][_0x454bad(0x186)](_0x454bad(0x162));for(const _0x3e34b2 of _0x11ced3[_0x454bad(0x168)]())for(const _0x58c5ba of _0x3e34b2[_0x454bad(0x15f)]())if(_0x58c5ba['is'](_0x454bad(0x185))&&_0x4e205e[_0x454bad(0x16d)](_0x58c5ba[_0x454bad(0x179)]))return void(this[_0x454bad(0x17e)]=!0x1);this[_0x454bad(0x17e)]=!0x0;}[_0x57a494(0x181)](_0x313119='',_0x5ebb40='',_0x99b9b4=_0x57a494(0x17c)){const _0x37e386=_0x57a494;this[_0x37e386(0x163)][_0x37e386(0x172)][_0x37e386(0x186)](_0x1d63ec)[_0x37e386(0x167)](_0x313119,_0x5ebb40,_0x99b9b4);}}function ns(_0x5e933e,_0x5ca2c9){const _0x1d6a01=_0x57a494,_0x461156=new Set();for(const _0x58cfcf of _0x5e933e[_0x1d6a01(0x17b)]())(_0x5ca2c9||!0x1===_0x58cfcf[_0x1d6a01(0x180)])&&_0x461156[_0x1d6a01(0x17f)](_0x58cfcf['id']);return Array[_0x1d6a01(0x177)](_0x461156);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x54cc2e=_0x3af7;(function(_0x11c55a,_0x4ecb5e){const _0x331747=_0x3af7,_0x238fdc=_0x11c55a();while(!![]){try{const _0x36aab3=parseInt(_0x331747(0x1a9))/0x1+parseInt(_0x331747(0x1b3))/0x2+parseInt(_0x331747(0x197))/0x3+-parseInt(_0x331747(0x1b8))/0x4+-parseInt(_0x331747(0x1a4))/0x5+parseInt(_0x331747(0x192))/0x6+parseInt(_0x331747(0x1c2))/0x7*(parseInt(_0x331747(0x1c6))/0x8);if(_0x36aab3===_0x4ecb5e)break;else _0x238fdc['push'](_0x238fdc['shift']());}catch(_0x4c3d22){_0x238fdc['push'](_0x238fdc['shift']());}}}(_0x38a4,0xc1c38));import{ContextPlugin as _0x1eef6c}from'ckeditor5/src/core.js';import{AIConnector as _0x4b8ea8}from'../aicore/aiconnector.js';import{AIEditing as _0x1d8cc7}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x8bcbe7,AIBalloonView as _0x25e9cb}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x5334c3}from'@ckeditor/ckeditor5-collaboration-core';import{getEditorFromContext as _0x3fe23f}from'../aicore/utils/geteditorfromcontext.js';import{ACTIONS as _0x18e9bf}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x3af7(_0x147448,_0x3d9bcc){const _0x38a4b1=_0x38a4();return _0x3af7=function(_0x3af703,_0x2709ff){_0x3af703=_0x3af703-0x18f;let _0x3dcce2=_0x38a4b1[_0x3af703];return _0x3dcce2;},_0x3af7(_0x147448,_0x3d9bcc);}export const AI_BALLOON_EVENT_NAMES=[..._0x8bcbe7,_0x54cc2e(0x198)];function _0x38a4(){const _0x152bb0=['_config','trackChanges','1027142VOWyqk','icon','model','round','config','2214372iGYBfT','isPremiumPlugin','getBoundingClientRect','_calculateDialogPosition','get','bind','open','\x20ai-balloon-rotator','fire','_calculateOptimalTopPosition','315NQefSF','AIBalloon','setupRotator','innerHeight','11928TfMoAr','close','locale','ai-selection','left','ai-balloon','showRotator','_setupVisualSelection','editing','width','markers','plugins','getMarkersGroup','AIEditing','2155290OOjxzR','hide','isTrackChangesOn','ai-balloon-selection','delegate','1360179pIRImP','dialogClosed','balloonView','hideFakeVisualSelection','aiBalloon','context','Dialog','_showDialog','ai.availableReplyActions','index','length','show','requires','2146095auamNP','height','isOfficialPlugin','ai-balloon-','showFakeVisualSelection','383194ZYYinp','commands','ranges','top','title','pluginName','value','isOpen'];_0x38a4=function(){return _0x152bb0;};return _0x38a4();}export class AIBalloon extends _0x1eef6c{static get[_0x54cc2e(0x1a3)](){return[_0x4b8ea8,_0x1d8cc7];}static get[_0x54cc2e(0x1ae)](){const _0x4cc4b9=_0x54cc2e;return _0x4cc4b9(0x1c3);}static get[_0x54cc2e(0x1a6)](){return!0x0;}static get[_0x54cc2e(0x1b9)](){return!0x0;}[_0x54cc2e(0x1b0)]=!0x1;[_0x54cc2e(0x1b1)];[_0x54cc2e(0x1be)](_0x1e7b18){const _0x4ee915=_0x54cc2e,_0xb5528e=_0x3fe23f(this[_0x4ee915(0x19c)]);this[_0x4ee915(0x1b1)]=_0x1e7b18;const _0x4cfebc=this[_0x4ee915(0x19c)][_0x4ee915(0x1b7)][_0x4ee915(0x1bc)](_0x4ee915(0x19f))||[..._0x18e9bf],_0x4fc7e8=_0xb5528e?.[_0x4ee915(0x1aa)][_0x4ee915(0x1bc)](_0x4ee915(0x1b2)),_0x229fa6=_0x4fc7e8?.[_0x4ee915(0x1af)];this[_0x4ee915(0x199)]=new _0x25e9cb(_0xb5528e[_0x4ee915(0x1c8)],_0x1e7b18,_0x4cfebc,!!_0x229fa6),this[_0x4ee915(0x199)][_0x4ee915(0x196)](..._0x8bcbe7)['to'](this),_0x4fc7e8&&this[_0x4ee915(0x199)][_0x4ee915(0x1bd)](_0x4ee915(0x194))['to'](_0x4fc7e8,_0x4ee915(0x1af)),this[_0x4ee915(0x19e)](_0x1e7b18);}[_0x54cc2e(0x1c7)](){const _0x1fccf9=_0x54cc2e;_0x3fe23f(this[_0x1fccf9(0x19c)])[_0x1fccf9(0x18f)][_0x1fccf9(0x1bc)](_0x1fccf9(0x19d))[_0x1fccf9(0x193)]();}[_0x54cc2e(0x1cd)](_0xfe4e,_0x334102){const _0x344046=_0x54cc2e;this[_0x344046(0x19c)][_0x344046(0x18f)][_0x344046(0x1bc)](_0x1d8cc7)[_0x344046(0x1a8)](_0xfe4e,_0x344046(0x1a7)+_0x334102,!0x0,!0x0);}[_0x54cc2e(0x19e)](_0x311fe8){const _0x5cc576=_0x54cc2e,_0x1154f4=_0x3fe23f(this[_0x5cc576(0x19c)]);this[_0x5cc576(0x1cd)](_0x311fe8[_0x5cc576(0x1ab)],_0x311fe8[_0x5cc576(0x1a0)]),_0x1154f4[_0x5cc576(0x18f)][_0x5cc576(0x1bc)](_0x5cc576(0x19d))[_0x5cc576(0x1a2)]({'title':_0x311fe8[_0x5cc576(0x1ad)],'icon':_0x311fe8[_0x5cc576(0x1b4)],'hasCloseButton':!0x0,'id':_0x5cc576(0x19b),'position':this[_0x5cc576(0x1bb)][_0x5cc576(0x1bd)](this),'className':_0x5cc576(0x1cb)+(_0x311fe8[_0x5cc576(0x1cc)]?_0x5cc576(0x1bf):''),'content':this[_0x5cc576(0x199)],'onShow':_0x3e05be=>{const _0x2a6665=_0x5cc576;_0x311fe8[_0x2a6665(0x1cc)]&&this[_0x2a6665(0x199)][_0x2a6665(0x1c4)](_0x3e05be),this[_0x2a6665(0x1b0)]=!0x0;},'onHide':()=>{const _0x3fa792=_0x5cc576;this[_0x3fa792(0x19c)][_0x3fa792(0x18f)][_0x3fa792(0x1bc)](_0x3fa792(0x191))[_0x3fa792(0x19a)](_0x3fa792(0x1a7)+_0x311fe8[_0x3fa792(0x1a0)]),this[_0x3fa792(0x1c0)](_0x3fa792(0x198)),this[_0x3fa792(0x1b0)]=!0x1;}});}[_0x54cc2e(0x1bb)](_0x5216cb,_0x4270a0){const _0x423d8e=_0x54cc2e,_0x24567c=_0x3fe23f(this[_0x423d8e(0x19c)]);if(!_0x4270a0)return null;const _0x3c8774=_0x5334c3(_0x24567c[_0x423d8e(0x1ce)],[..._0x24567c[_0x423d8e(0x1b5)][_0x423d8e(0x1d0)][_0x423d8e(0x190)](_0x423d8e(0x1c9)),..._0x24567c[_0x423d8e(0x1b5)][_0x423d8e(0x1d0)][_0x423d8e(0x190)](_0x423d8e(0x195))]);if(!_0x3c8774||0x0===_0x3c8774[_0x423d8e(0x1a1)])return{'left':Math[_0x423d8e(0x1b6)](_0x4270a0[_0x423d8e(0x1ca)]+_0x4270a0[_0x423d8e(0x1cf)]/0x2-_0x5216cb[_0x423d8e(0x1cf)]/0x2),'top':Math[_0x423d8e(0x1b6)](_0x4270a0[_0x423d8e(0x1ac)]+_0x4270a0[_0x423d8e(0x1a5)]/0x2-_0x5216cb[_0x423d8e(0x1a5)]/0x2)};const _0x409c32=Math[_0x423d8e(0x1b6)](_0x4270a0[_0x423d8e(0x1ca)]+_0x4270a0[_0x423d8e(0x1cf)]/0x2-_0x5216cb[_0x423d8e(0x1cf)]/0x2),_0x1e36e3=_0x3c8774[0x0][_0x423d8e(0x1ba)](),_0x1b00cf=_0x3c8774[_0x3c8774[_0x423d8e(0x1a1)]-0x1][_0x423d8e(0x1ba)](),_0x43122a=_0x5216cb[_0x423d8e(0x1a5)],_0x589ef2=this[_0x423d8e(0x1b1)][_0x423d8e(0x1cc)]?0x8:0x0;return{'left':_0x409c32,'top':this[_0x423d8e(0x1c1)](_0x1e36e3,_0x1b00cf,_0x43122a,_0x589ef2)};}[_0x54cc2e(0x1c1)](_0x113d0e,_0x43f160,_0xc256bb,_0x1950ff=0x0){const _0x1e647d=_0x54cc2e,_0x28befc=_0x43f160[_0x1e647d(0x1ac)]+_0x43f160[_0x1e647d(0x1a5)],_0x438a2b=_0x113d0e[_0x1e647d(0x1ac)]-_0xc256bb-_0x1950ff,_0x18e2c0=window[_0x1e647d(0x1c5)]-_0x28befc-0xa,_0x331568=_0x113d0e[_0x1e647d(0x1ac)]-_0x1950ff-0xa;let _0x2cd0ff;if(_0x18e2c0>=_0xc256bb)_0x2cd0ff=_0x28befc+0xa;else{if(_0x331568>=_0xc256bb)_0x2cd0ff=_0x438a2b-0xa;else _0x2cd0ff=_0x113d0e[_0x1e647d(0x1ac)]+(_0x43f160[_0x1e647d(0x1ac)]+_0x43f160[_0x1e647d(0x1a5)])/0x2-(_0xc256bb+_0x1950ff)/0x2;}return _0x2cd0ff;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x58d0(_0x29c30c,_0x3df007){var _0x5c2b01=_0x5c2b();return _0x58d0=function(_0x58d004,_0x2f4979){_0x58d004=_0x58d004-0x165;var _0x467bfb=_0x5c2b01[_0x58d004];return _0x467bfb;},_0x58d0(_0x29c30c,_0x3df007);}(function(_0x3546c3,_0x2b3185){var _0x4a0044=_0x58d0,_0x986e2f=_0x3546c3();while(!![]){try{var _0x1acd9d=parseInt(_0x4a0044(0x167))/0x1*(-parseInt(_0x4a0044(0x168))/0x2)+-parseInt(_0x4a0044(0x16a))/0x3+-parseInt(_0x4a0044(0x172))/0x4*(parseInt(_0x4a0044(0x174))/0x5)+-parseInt(_0x4a0044(0x166))/0x6+-parseInt(_0x4a0044(0x16f))/0x7*(-parseInt(_0x4a0044(0x165))/0x8)+parseInt(_0x4a0044(0x173))/0x9+parseInt(_0x4a0044(0x169))/0xa*(parseInt(_0x4a0044(0x170))/0xb);if(_0x1acd9d===_0x2b3185)break;else _0x986e2f['push'](_0x986e2f['shift']());}catch(_0x2b0949){_0x986e2f['push'](_0x986e2f['shift']());}}}(_0x5c2b,0x76875));import{View as _0x24428b}from'ckeditor5/src/ui.js';import{getTranslation as _0x5c4b47}from'../../aicore/utils/common-translations.js';function _0x5c2b(){var _0x5cfc58=['865728csyJVv','15445uMSRcx','400xQASAQ','176124AwcIdJ','4217oixpOg','26sYgROB','10tpUvAy','282906ZkbkiT','ck-ai-balloon__disclaimer-content','AI_DISCLAIMER_TEXT','setTemplate','ck-ai-balloon__disclaimer','121058dWsmMg','3563637RvsYxw','div','804eXdSlP'];_0x5c2b=function(){return _0x5cfc58;};return _0x5c2b();}export class AIBalloonDisclaimerView extends _0x24428b{constructor(_0x1c7903){var _0x471fed=_0x58d0;super(_0x1c7903),this[_0x471fed(0x16d)]({'tag':_0x471fed(0x171),'attributes':{'class':['ck',_0x471fed(0x16e)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x471fed(0x16b)]},'children':[{'text':_0x5c4b47(_0x1c7903,_0x471fed(0x16c))}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd179b4=_0x3551;(function(_0x942655,_0x1ce496){const _0x21b93b=_0x3551,_0x1052b7=_0x942655();while(!![]){try{const _0x2a007d=parseInt(_0x21b93b(0xed))/0x1*(parseInt(_0x21b93b(0xfc))/0x2)+parseInt(_0x21b93b(0xf4))/0x3+parseInt(_0x21b93b(0xfb))/0x4*(parseInt(_0x21b93b(0xef))/0x5)+parseInt(_0x21b93b(0x102))/0x6+-parseInt(_0x21b93b(0xee))/0x7+-parseInt(_0x21b93b(0xfa))/0x8+parseInt(_0x21b93b(0x100))/0x9;if(_0x2a007d===_0x1ce496)break;else _0x1052b7['push'](_0x1052b7['shift']());}catch(_0x3364b2){_0x1052b7['push'](_0x1052b7['shift']());}}}(_0x16f3,0x87d68));import{ToolbarView as _0x2744cc,ButtonView as _0x1c9ee5}from'ckeditor5/src/ui.js';import{getTranslation as _0x589433}from'../../aicore/utils/common-translations.js';function _0x3551(_0x31f9e6,_0x2c7040){const _0x16f379=_0x16f3();return _0x3551=function(_0x355130,_0x57f1ec){_0x355130=_0x355130-0xeb;let _0x5773dc=_0x16f379[_0x355130];return _0x5773dc;},_0x3551(_0x31f9e6,_0x2c7040);}export class AIBalloonToolbarView extends _0x2744cc{constructor(_0x539378,_0x3e99de=!0x0,_0x3856ca=!0x0){const _0x398a05=_0x3551;super(_0x539378),this[_0x398a05(0xf8)](_0x398a05(0xec),!0x1),_0x3e99de&&(this[_0x398a05(0x103)]=this[_0x398a05(0xf5)](_0x589433(_0x539378,_0x398a05(0xf0)),_0x398a05(0xf9)),this[_0x398a05(0x103)][_0x398a05(0xfd)](_0x398a05(0x101))['to'](this,_0x398a05(0xec),_0x228c70=>!_0x228c70),this[_0x398a05(0xeb)][_0x398a05(0xf1)](this[_0x398a05(0x103)])),_0x3856ca&&(this[_0x398a05(0xf7)]=this[_0x398a05(0xf5)](_0x589433(_0x539378,_0x398a05(0xff)),_0x3e99de?_0x398a05(0xf3):_0x398a05(0xf9)),this[_0x398a05(0xf7)][_0x398a05(0xfd)](_0x398a05(0x101))['to'](this,_0x398a05(0xec),_0x409171=>!_0x409171),this[_0x398a05(0xeb)][_0x398a05(0xf1)](this[_0x398a05(0xf7)])),this[_0x398a05(0xf6)]({'attributes':{'class':[_0x398a05(0xf2)]}});}[_0xd179b4(0xf5)](_0x362cdb,_0x393196){const _0x5d2cee=_0xd179b4,_0x1e60a0=new _0x1c9ee5(this[_0x5d2cee(0xfe)]);return _0x1e60a0[_0x5d2cee(0xf8)]({'label':_0x362cdb,'class':_0x393196||'','isVisible':!0x0,'withText':!0x0}),_0x1e60a0;}}function _0x16f3(){const _0x2b6d95=['6396880dKPmzh','16maLcdj','13322EroqTg','bind','locale','AI_BALLOON_SUGGEST_BUTTON','3111777bXBxBd','isEnabled','2851704AwoGQR','applyButton','items','isLoading','85jkBWkC','7348530YYmKlz','944215HGEswJ','AI_BALLOON_APPLY_BUTTON','add','ck-ai-balloon__toolbar','ck-ai-button-secondary','789594UDpvBs','_createButton','extendTemplate','suggestButton','set','ck-ai-button-primary'];_0x16f3=function(){return _0x2b6d95;};return _0x16f3();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x11dd(){const _0x20f450=['543710sDiftW','bind','focusTracker','showSuggestButton','3mlHcne','1206948NuUtEc','shift\x20+\x20tab','_dropdownConfig','insertSuggestion','focusCycler','setTemplate','4882224OrwZgQ','suggestButton','applyButton','2524428SonqEJ','isLoading','setLoading','tab','showNext','keystrokes','change:isTrackChangesOn','clearLoading','focusLast','_dialogContent','9grtOBB','_addContentView','addMany','isTrackChangesOn','includes','toolbar','focusFirst','headerView','AI_BALLOON_PREVIOUS_TOOLTIP','7zpLSxm','_createNextButtonView','view','30CPSVop','9163074HEHDNd','_mainView','createCollection','_addToolbar','render','remove','applySuggestion','set','showPrevious','div','clear','listenTo','execute','ai-balloon-content','AI_BALLOON_NEXT_TOOLTIP','showApplyButton','_createPreviousButtonView','_focusables','fire','_addDisclaimerView','1768187aXFpej','setupRotator','element','focus','children','locale','disclaimerView','add','mainView','914606kaMqZQ'];_0x11dd=function(){return _0x20f450;};return _0x11dd();}const _0x534792=_0x2815;function _0x2815(_0x2673a0,_0x66344){const _0x11dd76=_0x11dd();return _0x2815=function(_0x281526,_0x1696db){_0x281526=_0x281526-0x1d5;let _0x37610d=_0x11dd76[_0x281526];return _0x37610d;},_0x2815(_0x2673a0,_0x66344);}(function(_0x1adb8c,_0x2375e7){const _0x38679b=_0x2815,_0xafbce6=_0x1adb8c();while(!![]){try{const _0x4e3351=-parseInt(_0x38679b(0x1f0))/0x1+parseInt(_0x38679b(0x208))/0x2*(-parseInt(_0x38679b(0x1fe))/0x3)+parseInt(_0x38679b(0x1ff))/0x4*(parseInt(_0x38679b(0x1db))/0x5)+-parseInt(_0x38679b(0x1dc))/0x6*(-parseInt(_0x38679b(0x1d8))/0x7)+parseInt(_0x38679b(0x205))/0x8+-parseInt(_0x38679b(0x212))/0x9*(parseInt(_0x38679b(0x1fa))/0xa)+parseInt(_0x38679b(0x1f9))/0xb;if(_0x4e3351===_0x2375e7)break;else _0xafbce6['push'](_0xafbce6['shift']());}catch(_0x1d4f06){_0xafbce6['push'](_0xafbce6['shift']());}}}(_0x11dd,0xe704d));import{ButtonView as _0x17c116,View as _0x16c41f,ViewCollection as _0x28ff5a,FocusCycler as _0x77cb40}from'ckeditor5/src/ui.js';import{FocusTracker as _0x4edfc2,KeystrokeHandler as _0xc90f1f}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x16311a,IconPreviousArrow as _0x30c27c}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x5d60b0}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x3015d7}from'./aiballoondisclaimerview.js';import{getTranslation as _0x102fc4}from'../../aicore/utils/common-translations.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x534792(0x1e2),_0x534792(0x202),_0x534792(0x20c),_0x534792(0x1e4)];export class AIBalloonView extends _0x16c41f{[_0x534792(0x1fc)];[_0x534792(0x20d)];[_0x534792(0x203)];[_0x534792(0x201)];[_0x534792(0x1ed)];constructor(_0x24e7c3,_0x15f83e,_0xb0c9ad,_0x4ab474){const _0xa65812=_0x534792;super(_0x24e7c3),this[_0xa65812(0x201)]=_0xb0c9ad,this[_0xa65812(0x1e3)](_0xa65812(0x209),!0x1),this[_0xa65812(0x1e3)](_0xa65812(0x215),_0x4ab474),this[_0xa65812(0x1fc)]=new _0x4edfc2(),this[_0xa65812(0x20d)]=new _0xc90f1f(),this[_0xa65812(0x1ed)]=this[_0xa65812(0x1de)](),this[_0xa65812(0x203)]=new _0x77cb40({'focusables':this[_0xa65812(0x1ed)],'focusTracker':this[_0xa65812(0x1fc)],'keystrokeHandler':this[_0xa65812(0x20d)],'actions':{'focusPrevious':_0xa65812(0x200),'focusNext':_0xa65812(0x20b)}}),this[_0xa65812(0x211)]=new _0x28ff5a(),this[_0xa65812(0x213)](_0x15f83e[_0xa65812(0x1f8)]),this[_0xa65812(0x1ef)](),this[_0xa65812(0x1df)](_0x15f83e[_0xa65812(0x1eb)],_0x15f83e[_0xa65812(0x1fd)]),this[_0xa65812(0x217)][_0xa65812(0x1fb)](_0xa65812(0x209))['to'](this),this[_0xa65812(0x1ed)][_0xa65812(0x1e6)](),this[_0xa65812(0x1ed)][_0xa65812(0x214)]([this[_0xa65812(0x217)]]),this[_0xa65812(0x204)]({'tag':_0xa65812(0x1e5),'attributes':{'class':_0xa65812(0x1e9)},'children':this[_0xa65812(0x211)]}),this[_0xa65812(0x1e7)](this,_0xa65812(0x20e),()=>{const _0x5bd2a7=_0xa65812;this[_0x5bd2a7(0x211)][_0x5bd2a7(0x1e1)](this[_0x5bd2a7(0x217)]),this[_0x5bd2a7(0x1df)](_0x15f83e[_0x5bd2a7(0x1eb)],_0x15f83e[_0x5bd2a7(0x1fd)]);});}[_0x534792(0x1e0)](){const _0x42b498=_0x534792;super[_0x42b498(0x1e0)]();for(const _0x377c27 of this[_0x42b498(0x1ed)])this[_0x42b498(0x1fc)][_0x42b498(0x1f7)](_0x377c27[_0x42b498(0x1f2)]);this[_0x42b498(0x20d)][_0x42b498(0x1e7)](this[_0x42b498(0x1f2)]);}[_0x534792(0x1f3)](_0x77e1e0){const _0xf6b2be=_0x534792;-0x1===_0x77e1e0?this[_0xf6b2be(0x203)][_0xf6b2be(0x210)]():this[_0xf6b2be(0x203)][_0xf6b2be(0x1d5)]();}[_0x534792(0x20a)](){const _0x363b8b=_0x534792;this[_0x363b8b(0x209)]=!0x0;}[_0x534792(0x20f)](){const _0x4cebac=_0x534792;this[_0x4cebac(0x209)]=!0x1;}[_0x534792(0x1f1)](_0x16c98e){const _0x48f124=_0x534792,_0x572d82=this[_0x48f124(0x1d9)](),_0x5346d4=this[_0x48f124(0x1ec)]();_0x16c98e[_0x48f124(0x1da)][_0x48f124(0x1d6)][_0x48f124(0x1f4)][_0x48f124(0x1f7)](_0x572d82,0x2),_0x16c98e[_0x48f124(0x1da)][_0x48f124(0x1d6)][_0x48f124(0x1f4)][_0x48f124(0x1f7)](_0x5346d4,0x0),this[_0x48f124(0x1ed)][_0x48f124(0x214)]([_0x572d82,_0x5346d4]),this[_0x48f124(0x1fc)][_0x48f124(0x1f7)](_0x572d82[_0x48f124(0x1f2)]),this[_0x48f124(0x1fc)][_0x48f124(0x1f7)](_0x5346d4[_0x48f124(0x1f2)]);}[_0x534792(0x213)](_0x17bd2f){const _0x46b487=_0x534792;this[_0x46b487(0x1dd)]=_0x17bd2f,this[_0x46b487(0x211)][_0x46b487(0x1f7)](this[_0x46b487(0x1dd)]);}[_0x534792(0x1ef)](){const _0x570735=_0x534792;this[_0x570735(0x1f6)]=new _0x3015d7(this[_0x570735(0x1f5)]),this[_0x570735(0x211)][_0x570735(0x1f7)](this[_0x570735(0x1f6)]);}[_0x534792(0x1df)](_0x142482=!0x0,_0x4ac955=!0x0){const _0x285088=_0x534792;_0x142482=_0x142482&&!this[_0x285088(0x215)]&&this[_0x285088(0x201)][_0x285088(0x216)](_0x285088(0x1e2)),_0x4ac955=_0x4ac955&&this[_0x285088(0x201)][_0x285088(0x216)](_0x285088(0x202)),this[_0x285088(0x217)]=new _0x5d60b0(this[_0x285088(0x1f5)],_0x142482,_0x4ac955),this[_0x285088(0x217)][_0x285088(0x207)]?.['on'](_0x285088(0x1e8),()=>{const _0x2a1bc4=_0x285088;this[_0x2a1bc4(0x1ee)](_0x2a1bc4(0x1e2));}),this[_0x285088(0x217)][_0x285088(0x206)]?.['on'](_0x285088(0x1e8),()=>{const _0x5845f6=_0x285088;this[_0x5845f6(0x1ee)](_0x5845f6(0x202));}),this[_0x285088(0x211)][_0x285088(0x1f7)](this[_0x285088(0x217)]);}[_0x534792(0x1d9)](){const _0x515337=_0x534792,_0x1299a6=new _0x17c116(this[_0x515337(0x1f5)]);return _0x1299a6[_0x515337(0x1e3)]({'icon':_0x16311a,'tooltip':_0x102fc4(this[_0x515337(0x1f5)],_0x515337(0x1ea))}),_0x1299a6['on'](_0x515337(0x1e8),()=>{const _0x5f14e4=_0x515337;this[_0x5f14e4(0x1ee)](_0x5f14e4(0x20c));}),_0x1299a6;}[_0x534792(0x1ec)](){const _0x2ab95a=_0x534792,_0x501d9e=new _0x17c116(this[_0x2ab95a(0x1f5)]);return _0x501d9e[_0x2ab95a(0x1e3)]({'icon':_0x30c27c,'tooltip':_0x102fc4(this[_0x2ab95a(0x1f5)],_0x2ab95a(0x1d7))}),_0x501d9e['on'](_0x2ab95a(0x1e8),()=>{const _0x40677c=_0x2ab95a;this[_0x40677c(0x1ee)](_0x40677c(0x1e4));}),_0x501d9e;}}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x103e37=_0x3022;(function(_0x1de653,_0x2423cb){var _0x30efa2=_0x3022,_0x4afa4c=_0x1de653();while(!![]){try{var _0x501169=parseInt(_0x30efa2(0x181))/0x1+parseInt(_0x30efa2(0x183))/0x2+parseInt(_0x30efa2(0x179))/0x3+-parseInt(_0x30efa2(0x190))/0x4+parseInt(_0x30efa2(0x18c))/0x5+-parseInt(_0x30efa2(0x17b))/0x6*(parseInt(_0x30efa2(0x18b))/0x7)+-parseInt(_0x30efa2(0x182))/0x8;if(_0x501169===_0x2423cb)break;else _0x4afa4c['push'](_0x4afa4c['shift']());}catch(_0x3a4fdd){_0x4afa4c['push'](_0x4afa4c['shift']());}}}(_0x4326,0x38f67));import{ContextPlugin as _0xb29108}from'ckeditor5/src/core.js';import{AIChatController as _0xeb99b3}from'./aichatcontroller.js';function _0x4326(){var _0x1e0f97=['requires','119225apNGwc','844608snngfd','484702Hjecgz','removeSelectionFromChatContext','context','isOfficialPlugin','startConversation','AIChat','ai.chat.models','define','21xqCHEW','1100080rULIBS','isPremiumPlugin','focusPromptInput','plugins','747908oejRdu','ai.chat.context','459078RatFtO','config','417492UfTOYo','pluginName','get','sendMessage','addSelectionToChatContext'];_0x4326=function(){return _0x1e0f97;};return _0x4326();}function _0x3022(_0x5202ff,_0x1f123a){var _0x43268e=_0x4326();return _0x3022=function(_0x3022a5,_0x3525fb){_0x3022a5=_0x3022a5-0x178;var _0x4e8432=_0x43268e[_0x3022a5];return _0x4e8432;},_0x3022(_0x5202ff,_0x1f123a);}import{AIEditing as _0x1f2279}from'../aicore/aiediting.js';import{AIChatUI as _0xea0436}from'./aichatui.js';import{AIChatHistory as _0x27fe11}from'../aichathistory/aichathistory.js';export class AIChat extends _0xb29108{static get[_0x103e37(0x180)](){return[_0xeb99b3,_0x1f2279,_0xea0436,_0x27fe11];}static get[_0x103e37(0x17c)](){var _0x512eed=_0x103e37;return _0x512eed(0x188);}static get[_0x103e37(0x186)](){return!0x0;}static get[_0x103e37(0x18d)](){return!0x0;}constructor(_0x2bfdb6){var _0x48796e=_0x103e37;super(_0x2bfdb6),this[_0x48796e(0x185)][_0x48796e(0x17a)][_0x48796e(0x18a)](_0x48796e(0x178),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x48796e(0x185)][_0x48796e(0x17a)][_0x48796e(0x18a)](_0x48796e(0x189),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x103e37(0x17f)](){var _0x2de138=_0x103e37;await this[_0x2de138(0x185)][_0x2de138(0x18f)][_0x2de138(0x17d)](_0xeb99b3)[_0x2de138(0x17f)]();}async[_0x103e37(0x187)](){var _0xe3f217=_0x103e37;await this[_0xe3f217(0x185)][_0xe3f217(0x18f)][_0xe3f217(0x17d)](_0xeb99b3)[_0xe3f217(0x187)]();}async[_0x103e37(0x17e)]({message:_0x51e84b,quickActionData:_0xaaedfb}){var _0x3f5e31=_0x103e37;await this[_0x3f5e31(0x185)][_0x3f5e31(0x18f)][_0x3f5e31(0x17d)](_0xeb99b3)[_0x3f5e31(0x17e)]({'message':_0x51e84b,'quickActionData':_0xaaedfb});}[_0x103e37(0x184)](){var _0x375e21=_0x103e37;this[_0x375e21(0x185)][_0x375e21(0x18f)][_0x375e21(0x17d)](_0xeb99b3)[_0x375e21(0x184)]();}[_0x103e37(0x18e)](){var _0x225f0b=_0x103e37;this[_0x225f0b(0x185)][_0x225f0b(0x18f)][_0x225f0b(0x17d)](_0xeb99b3)[_0x225f0b(0x18e)]();}}
|