@ckeditor/ckeditor5-ai 47.1.0-alpha.0 → 47.1.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.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/aichat/utils/scrollmanager.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/aicontext.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/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.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/eventnames.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/aireviewcheckdefinitions.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/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/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/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x295731=_0x5d87;(function(_0x232fdc,_0xeb86a0){const _0xe1826e=_0x5d87,_0x4f4489=_0x232fdc();while(!![]){try{const _0x3886d8=-parseInt(_0xe1826e(0x1b6))/0x1*(parseInt(_0xe1826e(0x1b9))/0x2)+-parseInt(_0xe1826e(0x1b5))/0x3*(parseInt(_0xe1826e(0x19f))/0x4)+parseInt(_0xe1826e(0x1b4))/0x5*(-parseInt(_0xe1826e(0x1c6))/0x6)+parseInt(_0xe1826e(0x1b2))/0x7+-parseInt(_0xe1826e(0x1a7))/0x8+parseInt(_0xe1826e(0x1c1))/0x9*(-parseInt(_0xe1826e(0x1c3))/0xa)+parseInt(_0xe1826e(0x1db))/0xb;if(_0x3886d8===_0xeb86a0)break;else _0x4f4489['push'](_0x4f4489['shift']());}catch(_0x143b35){_0x4f4489['push'](_0x4f4489['shift']());}}}(_0x976f,0xe8d60));import{FocusTracker as _0x2f3978,KeystrokeHandler as _0x2e8a17}from'ckeditor5/src/utils.js';import{View as _0xc7b00a,FocusCycler as _0x544ec9,createLabeledTextarea as _0x31c4e6}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x161077,AIFormToolbarViewMainActionLabel as _0xb54f01}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x548fab}from'./aiformcontentarea.js';function _0x5d87(_0x165b00,_0x5b19c6){const _0x976fdc=_0x976f();return _0x5d87=function(_0x5d87e6,_0x21529e){_0x5d87e6=_0x5d87e6-0x19e;let _0xcfa69d=_0x976fdc[_0x5d87e6];return _0xcfa69d;},_0x5d87(_0x165b00,_0x5b19c6);}import{AIFormErrorView as _0x4f67d6}from'./aiformerrorview.js';import{AIFormPromptView as _0x56f60b}from'./aiformpromptview.js';import{AIHistoryListView as _0xa181e7}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x3b5bf6}from'./aihistorylistitemview.js';import{PromptHistory as _0x299491}from'./prompthistory.js';function _0x976f(){const _0x576b38=['_focusables','170CXrvhC','ck-ai-form-content','AI_ERROR_FAILED','42162CtTAdd','replaceButton','delegate','focus','_promptHistory','fieldView','set','bind','items','mainAction','search','isEnabled','stopProcessing','trim','_createHistoryView','setTemplate','clearHistory','keystrokes','text','insertContentBelow','reset','39327706VHFcnK','add','queryView','Ask\x20AI\x20to\x20edit\x20or\x20generate','tryAgainEvent','submit','bindTo','stopButton','focusFirst','clear','tab','handleError','element','focusCycler','isError','listenTo','shift\x20+\x20tab','isVisible','focusLast','label','_createToolbar','toolbar','Ask\x20AI\x20to\x20improve\x20generated\x20text','chain','submitPrompt','focusTracker','20ZeKMXh','locale','Empty\x20history','startProcessing','REPLACE','ck-ai-form','div','promptView','3359504hKeoAw','_createPromptView','isProcessing','bindTemplate','copyButtonView','finishProcessing','tryAgainButton','contentArea','errorView','insertButton','render','1573075CdJSnl','value','5mjRRcj','271317czvOas','419778DpSSBO','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','ck-hidden','4JQlame','createCollection','high','historyGroupView','fire','execute','prompt','replaceContent','596943ccBmFU'];_0x976f=function(){return _0x576b38;};return _0x976f();}import{getTranslation as _0x14ff1c}from'../../utils/common-translations.js';import{escape as _0x4ea725}from'es-toolkit/compat';export class AIFormView extends _0xc7b00a{[_0x295731(0x19e)];[_0x295731(0x1d7)];[_0x295731(0x1ae)];[_0x295731(0x1f0)];[_0x295731(0x1a6)];[_0x295731(0x1af)];[_0x295731(0x1c2)];[_0x295731(0x1e8)];[_0x295731(0x1ca)];constructor(_0x4fc1c4,_0x3c4e12,_0x3fa89f=''){const _0x5b6d90=_0x295731;super(_0x4fc1c4),this[_0x5b6d90(0x1cc)](_0x5b6d90(0x1d1),!0x0),this[_0x5b6d90(0x1cc)](_0x5b6d90(0x1a9),!0x1),this[_0x5b6d90(0x1cc)](_0x5b6d90(0x1bf),''),this[_0x5b6d90(0x1cc)](_0x5b6d90(0x1b3),''),this[_0x5b6d90(0x1cc)](_0x5b6d90(0x1e9),!0x1),this[_0x5b6d90(0x1cc)](_0x5b6d90(0x1cf),_0xb54f01[_0x5b6d90(0x1a3)]),this[_0x5b6d90(0x1ca)]=new _0x299491(),this[_0x5b6d90(0x1af)]=new _0x4f67d6(_0x4fc1c4),this[_0x5b6d90(0x1ae)]=new _0x548fab(_0x4fc1c4,_0x3fa89f),this[_0x5b6d90(0x1ae)][_0x5b6d90(0x1cd)](_0x5b6d90(0x1a9))['to'](this),this[_0x5b6d90(0x1ae)][_0x5b6d90(0x1cd)](_0x5b6d90(0x1b3))['to'](this),this[_0x5b6d90(0x1f0)]=this[_0x5b6d90(0x1ef)](),this[_0x5b6d90(0x1f0)][_0x5b6d90(0x1cd)](_0x5b6d90(0x1cf))['to'](this),this[_0x5b6d90(0x1a6)]=this[_0x5b6d90(0x1a8)](),this[_0x5b6d90(0x19e)]=new _0x2f3978(),this[_0x5b6d90(0x1d7)]=new _0x2e8a17(),this[_0x5b6d90(0x1c2)]=this[_0x5b6d90(0x1ba)]([this[_0x5b6d90(0x1ae)],this[_0x5b6d90(0x1ae)][_0x5b6d90(0x1ab)],this[_0x5b6d90(0x1f0)],this[_0x5b6d90(0x1a6)]]),this[_0x5b6d90(0x1e8)]=new _0x544ec9({'focusables':this[_0x5b6d90(0x1c2)],'focusTracker':this[_0x5b6d90(0x19e)],'keystrokeHandler':this[_0x5b6d90(0x1d7)],'actions':{'focusPrevious':_0x5b6d90(0x1eb),'focusNext':_0x5b6d90(0x1e5)}}),this[_0x5b6d90(0x1e8)][_0x5b6d90(0x1f2)](this[_0x5b6d90(0x1a6)][_0x5b6d90(0x1e8)]),this[_0x5b6d90(0x1a6)][_0x5b6d90(0x1dd)][_0x5b6d90(0x1cb)][_0x5b6d90(0x1cd)](_0x5b6d90(0x1b3))['to'](this,_0x5b6d90(0x1bf));const _0x28b47c=this[_0x5b6d90(0x1aa)];this[_0x5b6d90(0x1d5)]({'tag':_0x5b6d90(0x1a5),'attributes':{'class':['ck',_0x5b6d90(0x1a4),_0x3c4e12],'tabindex':'-1'},'children':[{'tag':_0x5b6d90(0x1a5),'attributes':{'class':['ck',_0x5b6d90(0x1c4)]},'children':[{'tag':_0x5b6d90(0x1a5),'attributes':{'class':[_0x28b47c['if'](_0x5b6d90(0x1e9),_0x5b6d90(0x1b8),_0x66f497=>!_0x66f497)]},'children':[this[_0x5b6d90(0x1af)]]},this[_0x5b6d90(0x1ae)],this[_0x5b6d90(0x1f0)],this[_0x5b6d90(0x1a6)]]}]});}[_0x295731(0x1b1)](){const _0x4bbb72=_0x295731;super[_0x4bbb72(0x1b1)](),this[_0x4bbb72(0x19e)][_0x4bbb72(0x1dc)](this[_0x4bbb72(0x1ae)][_0x4bbb72(0x1e7)]),this[_0x4bbb72(0x19e)][_0x4bbb72(0x1dc)](this[_0x4bbb72(0x1ae)][_0x4bbb72(0x1ab)][_0x4bbb72(0x1e7)]),this[_0x4bbb72(0x19e)][_0x4bbb72(0x1dc)](this[_0x4bbb72(0x1f0)][_0x4bbb72(0x1e7)]),this[_0x4bbb72(0x19e)][_0x4bbb72(0x1dc)](this[_0x4bbb72(0x1a6)][_0x4bbb72(0x1e7)]),this[_0x4bbb72(0x1d7)][_0x4bbb72(0x1ea)](this[_0x4bbb72(0x1e7)]);}[_0x295731(0x1c9)](_0x1961e0=0x1){const _0x491eb4=_0x295731;-0x1===_0x1961e0?this[_0x491eb4(0x1e8)][_0x491eb4(0x1ed)]():this[_0x491eb4(0x1e8)][_0x491eb4(0x1e3)]();}[_0x295731(0x1da)](){const _0x205ef7=_0x295731;this[_0x205ef7(0x1bf)]='',this[_0x205ef7(0x1b3)]='',this[_0x205ef7(0x1e9)]=!0x1,this[_0x205ef7(0x1a6)][_0x205ef7(0x1da)](),this[_0x205ef7(0x1ae)][_0x205ef7(0x1ec)]=!0x1,this[_0x205ef7(0x1f0)][_0x205ef7(0x1ec)]=!0x1;}[_0x295731(0x1a8)](){const _0x705b82=_0x295731,_0x3cb6ce=this[_0x705b82(0x1a0)],_0x5dd343=new _0x56f60b(_0x3cb6ce,{'queryView':{'label':_0x14ff1c(_0x3cb6ce,_0x705b82(0x1de)),'creator':_0x31c4e6,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x14ff1c(_0x3cb6ce,_0x705b82(0x1a1)),'secondary':_0x14ff1c(_0x3cb6ce,_0x705b82(0x1b7))}}},'filteredView':this[_0x705b82(0x1d4)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x5dd343[_0x705b82(0x1cd)](_0x705b82(0x1d1))['to'](this,_0x705b82(0x1d1),this,_0x705b82(0x1a9),(_0xde22b0,_0x297a6f)=>_0xde22b0&&!_0x297a6f),this[_0x705b82(0x1ea)](_0x5dd343,_0x705b82(0x1e0),(_0x2bf5bc,_0x2dd709)=>{const _0x576f5a=_0x705b82;this[_0x576f5a(0x1bf)]=_0x2dd709;const _0x12b8cf=_0x4ea725(_0x2dd709);this[_0x576f5a(0x1bd)](_0x576f5a(0x1f3),_0x12b8cf),_0x2dd709[_0x576f5a(0x1d3)]()&&this[_0x576f5a(0x1ca)][_0x576f5a(0x1dc)]({'prompt':_0x12b8cf},0x0);},{'priority':_0x705b82(0x1bb)}),_0x5dd343;}[_0x295731(0x1d4)](){const _0x249902=_0x295731,_0x20bffb=new _0xa181e7(this[_0x249902(0x1a0)]);return _0x20bffb[_0x249902(0x1bc)][_0x249902(0x1ce)][_0x249902(0x1e1)](this[_0x249902(0x1ca)])['as'](_0x3b5bf6),_0x20bffb['on'](_0x249902(0x1d6),()=>{const _0x203176=_0x249902;this[_0x203176(0x1ca)][_0x203176(0x1e4)](),this[_0x203176(0x1a6)][_0x203176(0x1d0)](''),this[_0x203176(0x1a6)][_0x203176(0x1c9)]();}),_0x20bffb;}[_0x295731(0x1ef)](){const _0x9a6b75=_0x295731,_0x2c0fe1=new _0x161077(this[_0x9a6b75(0x1a0)]);return _0x2c0fe1[_0x9a6b75(0x1c7)][_0x9a6b75(0x1cd)](_0x9a6b75(0x1d1))['to'](this,_0x9a6b75(0x1d1),this,_0x9a6b75(0x1a9),this,_0x9a6b75(0x1b3),(_0x5e7998,_0x2950dc,_0x40c31d)=>_0x5e7998&&!_0x2950dc&&!!_0x40c31d),_0x2c0fe1[_0x9a6b75(0x1c7)][_0x9a6b75(0x1c8)](_0x9a6b75(0x1be))['to'](this,_0x9a6b75(0x1c0)),_0x2c0fe1[_0x9a6b75(0x1b0)][_0x9a6b75(0x1cd)](_0x9a6b75(0x1d1))['to'](this,_0x9a6b75(0x1d1),this,_0x9a6b75(0x1a9),this,_0x9a6b75(0x1b3),(_0x521157,_0x5dce1e,_0x15972a)=>_0x521157&&!_0x5dce1e&&!!_0x15972a),_0x2c0fe1[_0x9a6b75(0x1b0)][_0x9a6b75(0x1c8)](_0x9a6b75(0x1be))['to'](this,_0x9a6b75(0x1d9)),_0x2c0fe1[_0x9a6b75(0x1ad)][_0x9a6b75(0x1cd)](_0x9a6b75(0x1d1))['to'](this,_0x9a6b75(0x1d1),this,_0x9a6b75(0x1a9),(_0x5bc34c,_0x39663a)=>_0x5bc34c&&!_0x39663a),_0x2c0fe1[_0x9a6b75(0x1ad)][_0x9a6b75(0x1c8)](_0x9a6b75(0x1be))['to'](this,_0x9a6b75(0x1df)),_0x2c0fe1[_0x9a6b75(0x1e2)][_0x9a6b75(0x1cd)](_0x9a6b75(0x1d1))['to'](this,_0x9a6b75(0x1a9)),_0x2c0fe1[_0x9a6b75(0x1e2)][_0x9a6b75(0x1c8)](_0x9a6b75(0x1be))['to'](this,_0x9a6b75(0x1d2)),_0x2c0fe1;}[_0x295731(0x1a2)](){const _0x543b42=_0x295731;this[_0x543b42(0x1b3)]='',this[_0x543b42(0x1e9)]=!0x1,this[_0x543b42(0x1a9)]=!0x0,this[_0x543b42(0x1ae)][_0x543b42(0x1ec)]=!0x0,this[_0x543b42(0x1f0)][_0x543b42(0x1ec)]=!0x0,this[_0x543b42(0x1ae)][_0x543b42(0x1c9)]();}[_0x295731(0x1ac)](){const _0x9e0f0d=_0x295731,_0x554834=this[_0x9e0f0d(0x1a0)];this[_0x9e0f0d(0x1a9)]=!0x1,this[_0x9e0f0d(0x1bf)]='',this[_0x9e0f0d(0x1a6)][_0x9e0f0d(0x1da)](),this[_0x9e0f0d(0x1b3)]&&(this[_0x9e0f0d(0x1a6)][_0x9e0f0d(0x1dd)][_0x9e0f0d(0x1ee)]=_0x14ff1c(_0x554834,_0x9e0f0d(0x1f1)));}[_0x295731(0x1e6)](_0x2e17e6){const _0x18d658=_0x295731,_0x2b4b66=this[_0x18d658(0x1a0)];this[_0x18d658(0x1ac)](),this[_0x18d658(0x1e9)]=!0x0,this[_0x18d658(0x1af)][_0x18d658(0x1d8)]=_0x2e17e6||_0x14ff1c(_0x2b4b66,_0x18d658(0x1c5)),this[_0x18d658(0x1b3)]||(this[_0x18d658(0x1ae)][_0x18d658(0x1ec)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x58de94,_0x18a4b4){const _0x5cc3a8=_0x3567,_0x3d9736=_0x58de94();while(!![]){try{const _0x3d2f73=-parseInt(_0x5cc3a8(0xbd))/0x1+parseInt(_0x5cc3a8(0xc8))/0x2+parseInt(_0x5cc3a8(0xc3))/0x3+-parseInt(_0x5cc3a8(0xc7))/0x4+-parseInt(_0x5cc3a8(0xc4))/0x5*(-parseInt(_0x5cc3a8(0xc9))/0x6)+-parseInt(_0x5cc3a8(0xc1))/0x7+parseInt(_0x5cc3a8(0xc5))/0x8;if(_0x3d2f73===_0x18a4b4)break;else _0x3d9736['push'](_0x3d9736['shift']());}catch(_0x282225){_0x3d9736['push'](_0x3d9736['shift']());}}}(_0x2bbc,0x592ec));import{ListItemView as _0x227770,ButtonView as _0x192e73,ButtonLabelView as _0x125006}from'ckeditor5/src/ui.js';function _0x3567(_0x1cce83,_0x4294a4){const _0x2bbc03=_0x2bbc();return _0x3567=function(_0x35675a,_0x1e1679){_0x35675a=_0x35675a-0xbd;let _0x14ce3e=_0x2bbc03[_0x35675a];return _0x14ce3e;},_0x3567(_0x1cce83,_0x4294a4);}import{unescape as _0x365a6c}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x227770{constructor(_0x4baa08){const _0x5ec83b=_0x3567;super();const _0x2307de=new _0x125006(),_0x3b573f=new _0x192e73(this[_0x5ec83b(0xbe)],_0x2307de);this[_0x5ec83b(0xc2)][_0x5ec83b(0xcb)](_0x3b573f),_0x3b573f[_0x5ec83b(0xc6)]({'label':_0x4baa08[_0x5ec83b(0xca)],'withText':!0x0}),_0x3b573f['on'](_0x5ec83b(0xc0),()=>{const _0x5a1d5c=_0x5ec83b;this[_0x5a1d5c(0xbf)](_0x5a1d5c(0xc0),{'value':_0x365a6c(_0x4baa08[_0x5a1d5c(0xca)])});});}}function _0x2bbc(){const _0x4b900e=['prompt','add','306377UOhkeH','locale','fire','execute','356825fAZbpi','children','315222egHlZP','350kWMXUj','6535592mYrSed','set','2400764tVxQXg','436644ngwqlM','15642xGVYpc'];_0x2bbc=function(){return _0x4b900e;};return _0x2bbc();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e72d7=_0x847a;function _0x2aae(){const _0x27ece5=['3494220EpUipj','fire','Prompt\x20history','delegate','locale','2063640eDhLvz','clearHistoryButton','label','_createClearHistoryButton','18680384zlxsql','set','filter','1044783vppnZP','children','execute','clearHistory','7yCIyIC','Clear','length','items','historyGroupView','1177313tbyWfY','add','6734920eQsGBg','1228120HMvvwI'];_0x2aae=function(){return _0x27ece5;};return _0x2aae();}function _0x847a(_0x3a0b42,_0xb87791){const _0x2aae21=_0x2aae();return _0x847a=function(_0x847a80,_0x2cd54d){_0x847a80=_0x847a80-0x1dd;let _0x4d67c9=_0x2aae21[_0x847a80];return _0x4d67c9;},_0x847a(_0x3a0b42,_0xb87791);}(function(_0x586554,_0x2ef37c){const _0x345cab=_0x847a,_0x4dce7a=_0x586554();while(!![]){try{const _0x2d806d=-parseInt(_0x345cab(0x1e3))/0x1+parseInt(_0x345cab(0x1e6))/0x2+parseInt(_0x345cab(0x1f3))/0x3+parseInt(_0x345cab(0x1ec))/0x4+-parseInt(_0x345cab(0x1e5))/0x5+-parseInt(_0x345cab(0x1e7))/0x6*(parseInt(_0x345cab(0x1de))/0x7)+parseInt(_0x345cab(0x1f0))/0x8;if(_0x2d806d===_0x2ef37c)break;else _0x4dce7a['push'](_0x4dce7a['shift']());}catch(_0x35d3a7){_0x4dce7a['push'](_0x4dce7a['shift']());}}}(_0x2aae,0xac834));import{ListView as _0x4087db,ListItemGroupView as _0x421db9,ButtonView as _0xca7ee}from'ckeditor5/src/ui.js';import{getTranslation as _0x121f11}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x4087db{[_0x4e72d7(0x1e2)];[_0x4e72d7(0x1ed)];constructor(_0x159382){const _0x23ba84=_0x4e72d7;super(_0x159382),this[_0x23ba84(0x1ed)]=this[_0x23ba84(0x1ef)](),this[_0x23ba84(0x1e2)]=new _0x421db9(),this[_0x23ba84(0x1e2)][_0x23ba84(0x1f4)][_0x23ba84(0x1e4)](this[_0x23ba84(0x1ed)],0x1),this[_0x23ba84(0x1e2)][_0x23ba84(0x1ee)]=_0x121f11(_0x159382,_0x23ba84(0x1e9)),this[_0x23ba84(0x1e2)][_0x23ba84(0x1e1)][_0x23ba84(0x1ea)](_0x23ba84(0x1f5))['to'](this),this[_0x23ba84(0x1e1)][_0x23ba84(0x1e4)](this[_0x23ba84(0x1e2)]);}[_0x4e72d7(0x1f2)](){const _0xee2035=_0x4e72d7;let _0x4dea65=0x0;for(const _0x1bb250 of this[_0xee2035(0x1e1)])_0x4dea65+=_0x1bb250[_0xee2035(0x1e1)][_0xee2035(0x1e0)];return{'resultsCount':_0x4dea65,'totalItemsCount':_0x4dea65};}[_0x4e72d7(0x1ef)](){const _0x5ad150=_0x4e72d7,_0x7577cf=this[_0x5ad150(0x1eb)],_0x578228=new _0xca7ee(this[_0x5ad150(0x1eb)]);return _0x578228[_0x5ad150(0x1f1)]({'label':'('+_0x121f11(_0x7577cf,_0x5ad150(0x1df))+')','withText':!0x0}),_0x578228['on'](_0x5ad150(0x1f5),()=>this[_0x5ad150(0x1e8)](_0x5ad150(0x1dd))),_0x578228;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2a8aa3=_0x4ae1;function _0x4ae1(_0x4db4e3,_0x3034da){const _0x1ca274=_0x1ca2();return _0x4ae1=function(_0x4ae148,_0x4a9b39){_0x4ae148=_0x4ae148-0x1ba;let _0xb8f2df=_0x1ca274[_0x4ae148];return _0xb8f2df;},_0x4ae1(_0x4db4e3,_0x3034da);}(function(_0xc5eeea,_0x4b248b){const _0x5a5d02=_0x4ae1,_0x3f7755=_0xc5eeea();while(!![]){try{const _0x25dab5=parseInt(_0x5a5d02(0x1ca))/0x1*(parseInt(_0x5a5d02(0x1cf))/0x2)+-parseInt(_0x5a5d02(0x1d4))/0x3+-parseInt(_0x5a5d02(0x1c7))/0x4+-parseInt(_0x5a5d02(0x1c8))/0x5*(-parseInt(_0x5a5d02(0x1ce))/0x6)+-parseInt(_0x5a5d02(0x1cd))/0x7+parseInt(_0x5a5d02(0x1c9))/0x8*(parseInt(_0x5a5d02(0x1d2))/0x9)+-parseInt(_0x5a5d02(0x1bf))/0xa*(parseInt(_0x5a5d02(0x1cb))/0xb);if(_0x25dab5===_0x4b248b)break;else _0x3f7755['push'](_0x3f7755['shift']());}catch(_0x56b06b){_0x3f7755['push'](_0x3f7755['shift']());}}}(_0x1ca2,0x83169));import{Collection as _0x3ff33c}from'ckeditor5/src/utils.js';function _0x1ca2(){const _0x3da973=['stringify','addMany','3580cfOlEz','last','_loadFromSessionStorage','length','prompt','add','map','remove','1201924XZLajY','585275bvIEhx','153552GuEQet','548342wYUGmz','121eEYiaT','toLowerCase','2956492PtKQln','18BnfSxI','2Xpbqxs','setItem','CKEditor/AIFormView/PromptHistory','315HbJHLk','parse','922755nGxTkR','getItem','_saveToSessionStorage','trim'];_0x1ca2=function(){return _0x3da973;};return _0x1ca2();}const ao=_0x2a8aa3(0x1d1);export class PromptHistory extends _0x3ff33c{constructor(){const _0x2e4605=_0x2a8aa3;super(),this[_0x2e4605(0x1c1)](),this['on'](_0x2e4605(0x1c4),(_0x59dbf7,_0x1d7402)=>{const _0x1ef3f8=_0x2e4605,_0x1fb1c4=So(_0x1d7402[_0x1ef3f8(0x1c3)]);for(const _0x54d26a of this)if(_0x54d26a!=_0x1d7402&&So(_0x54d26a[_0x1ef3f8(0x1c3)])===_0x1fb1c4){this[_0x1ef3f8(0x1c6)](_0x54d26a);break;}this[_0x1ef3f8(0x1c2)]>0x14&&this[_0x1ef3f8(0x1c6)](this[_0x1ef3f8(0x1c0)]),this[_0x1ef3f8(0x1bb)]();}),this['on'](_0x2e4605(0x1c6),()=>{const _0x1adff7=_0x2e4605;this[_0x1adff7(0x1bb)]();});}[_0x2a8aa3(0x1c1)](){const _0x470005=_0x2a8aa3,_0x131ee5=sessionStorage[_0x470005(0x1ba)](ao)||'[]';this[_0x470005(0x1be)](JSON[_0x470005(0x1d3)](_0x131ee5));}[_0x2a8aa3(0x1bb)](){const _0xe94288=_0x2a8aa3;sessionStorage[_0xe94288(0x1d0)](ao,JSON[_0xe94288(0x1bd)](this[_0xe94288(0x1c5)](_0x557e9f=>_0x557e9f)));}}function So(_0x2d8b8c){const _0xcf6964=_0x2a8aa3;return _0x2d8b8c[_0xcf6964(0x1cc)]()[_0xcf6964(0x1bc)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x67761=_0x4b7a;(function(_0x4f7436,_0x1e4053){const _0x333638=_0x4b7a,_0x477ee2=_0x4f7436();while(!![]){try{const _0x529731=parseInt(_0x333638(0x1ea))/0x1+parseInt(_0x333638(0x207))/0x2+parseInt(_0x333638(0x1fe))/0x3+-parseInt(_0x333638(0x203))/0x4+-parseInt(_0x333638(0x1fc))/0x5*(-parseInt(_0x333638(0x210))/0x6)+-parseInt(_0x333638(0x1ef))/0x7+-parseInt(_0x333638(0x1f4))/0x8*(parseInt(_0x333638(0x20b))/0x9);if(_0x529731===_0x1e4053)break;else _0x477ee2['push'](_0x477ee2['shift']());}catch(_0x2e05a6){_0x477ee2['push'](_0x477ee2['shift']());}}}(_0x3d3e,0xf19b9));import{Command as _0x21c705}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x1f6b20}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x21c705{[_0x67761(0x1e8)];constructor(_0x10d5c2,_0x1c19e5){const _0x1b0b17=_0x67761;super(_0x10d5c2),this[_0x1b0b17(0x1e8)]=_0x1c19e5,this[_0x1b0b17(0x202)](_0x1b0b17(0x1f8),[]),this['on'](_0x1b0b17(0x20a),(_0x3b4eb9,_0x5f241c,_0x56876c)=>{const _0x5d0747=_0x1b0b17;this[_0x5d0747(0x1e7)]&&(this[_0x5d0747(0x1f8)]=ns(this[_0x5d0747(0x1e8)],_0x56876c));}),this[_0x1b0b17(0x202)](_0x1b0b17(0x206),!0x1),this['on'](_0x1b0b17(0x20f),(_0x170851,_0x48a3f,_0x34e6d3)=>{const _0x2d0760=_0x1b0b17;this[_0x2d0760(0x1f8)]=_0x34e6d3?ns(this[_0x2d0760(0x1e8)],this[_0x2d0760(0x206)]):[];});}[_0x67761(0x204)](){const _0x576870=_0x67761,_0x8ce8ef=this[_0x576870(0x20e)][_0x576870(0x205)];this[_0x576870(0x206)]=function(_0x1bc9c8){const _0x3ab625=_0x576870,_0x30b8f0=_0x1bc9c8[_0x3ab625(0x208)][_0x3ab625(0x1fa)];return _0x30b8f0[_0x3ab625(0x1ed)]?0x0!==[..._0x30b8f0[_0x3ab625(0x1f9)]()][_0x3ab625(0x1ec)]&&![..._0x30b8f0[_0x3ab625(0x1f9)]()][0x0][_0x3ab625(0x1f5)]:!!_0x1bc9c8[_0x3ab625(0x20d)](_0x30b8f0[_0x3ab625(0x1f0)]());}(_0x8ce8ef);const _0x542b77=_0x8ce8ef[_0x576870(0x208)][_0x576870(0x1fa)],_0x14f889=this[_0x576870(0x20e)][_0x576870(0x20c)][_0x576870(0x1f3)](_0x576870(0x1eb));for(const _0x233ea4 of _0x542b77[_0x576870(0x201)]())for(const _0x42c6ba of _0x233ea4[_0x576870(0x1f1)]())if(_0x42c6ba['is'](_0x576870(0x1e6))&&_0x14f889[_0x576870(0x1f2)](_0x42c6ba[_0x576870(0x209)]))return void(this[_0x576870(0x1e7)]=!0x1);this[_0x576870(0x1e7)]=!0x0;}[_0x67761(0x1fd)](_0x40cdd9='',_0x21a533='',_0x218358=_0x67761(0x1f6)){const _0x2942bd=_0x67761;this[_0x2942bd(0x20e)][_0x2942bd(0x1ee)][_0x2942bd(0x1f3)](_0x1f6b20)[_0x2942bd(0x1e9)](_0x40cdd9,_0x21a533,_0x218358);}}function _0x3d3e(){const _0x22b9d5=['_commandDefinitions','showUI','322963ycsfwX','ai.assistant.disabledElements','length','isCollapsed','plugins','1788283lKisks','getFirstRange','getItems','includes','get','18920072ImurmT','isEmpty','custom','requiresContent','enabledCommandsIds','getSelectedBlocks','selection','values','15NNcpuQ','execute','3884082snagdw','add','from','getRanges','set','2245048MffrRo','refresh','model','_hasContext','1717194nusfSQ','document','name','change:_hasContext','9szpalb','config','hasContent','editor','change:isEnabled','3390222eqnDqv','element','isEnabled'];_0x3d3e=function(){return _0x22b9d5;};return _0x3d3e();}function _0x4b7a(_0x5cf96f,_0x27910a){const _0x3d3e08=_0x3d3e();return _0x4b7a=function(_0x4b7a74,_0x43292e){_0x4b7a74=_0x4b7a74-0x1e6;let _0x5057f4=_0x3d3e08[_0x4b7a74];return _0x5057f4;},_0x4b7a(_0x5cf96f,_0x27910a);}function ns(_0x54a822,_0x1bd28c){const _0x571f88=_0x67761,_0x380de0=new Set();for(const _0xf163fd of _0x54a822[_0x571f88(0x1fb)]())(_0x1bd28c||!0x1===_0xf163fd[_0x571f88(0x1f7)])&&_0x380de0[_0x571f88(0x1ff)](_0xf163fd['id']);return Array[_0x571f88(0x200)](_0x380de0);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x180664,_0x425a53,_0x4e1575){const t=_0x180664['t'];switch(_0x425a53){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x4e1575);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x4e1575);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x4e1575);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x425a53;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(
|
|
23
|
+
export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x4f46f8,_0x47039b){const _0x1079e2=(0x0,_0x47039b['t'])('Other');return _0x4f46f8['length']?'groupId'in _0x4f46f8[0x0]?_0x4f46f8:[{'groupId':'_ungrouppedCommands','groupLabel':_0x1079e2,'order':0x1/0x0,'commands':_0x4f46f8}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x1079e2,'order':0x1/0x0,'commands':[]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ab971=_0x2b17;(function(_0x40db1f,_0x130318){const _0x28c1d5=_0x2b17,_0x70b0e4=_0x40db1f();while(!![]){try{const _0x36163a=-parseInt(_0x28c1d5(0x16a))/0x1*(-parseInt(_0x28c1d5(0x157))/0x2)+-parseInt(_0x28c1d5(0x16c))/0x3+-parseInt(_0x28c1d5(0x175))/0x4*(parseInt(_0x28c1d5(0x179))/0x5)+parseInt(_0x28c1d5(0x186))/0x6+-parseInt(_0x28c1d5(0x172))/0x7+parseInt(_0x28c1d5(0x188))/0x8*(parseInt(_0x28c1d5(0x187))/0x9)+parseInt(_0x28c1d5(0x17a))/0xa*(parseInt(_0x28c1d5(0x180))/0xb);if(_0x36163a===_0x130318)break;else _0x70b0e4['push'](_0x70b0e4['shift']());}catch(_0x3c28ac){_0x70b0e4['push'](_0x70b0e4['shift']());}}}(_0x5b1b,0x71951));import{ContextPlugin as _0x299605}from'ckeditor5/src/core.js';function _0x2b17(_0x2f203a,_0x21b8fd){const _0x5b1bf1=_0x5b1b();return _0x2b17=function(_0x2b172c,_0x1dbf8d){_0x2b172c=_0x2b172c-0x151;let _0x7773dd=_0x5b1bf1[_0x2b172c];return _0x7773dd;},_0x2b17(_0x2f203a,_0x21b8fd);}import{AIConnector as _0x3c44ce}from'../aicore/aiconnector.js';import{AIEditing as _0x5e765f}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x4f30f4,AIBalloonView as _0x2d7521}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x2a227a}from'@ckeditor/ckeditor5-collaboration-core';import{getEditorFromContext as _0x32e888}from'../aicore/utils/geteditorfromcontext.js';import{ACTIONS as _0x3102a7}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export const AI_BALLOON_EVENT_NAMES=[..._0x4f30f4,_0x5ab971(0x189)];function _0x5b1b(){const _0x345a40=['dialogClosed','getBoundingClientRect','width','aiBalloon','config','isPremiumPlugin','setupRotator','height','AIEditing','plugins','_showDialog','AIBalloon','ai-selection','icon','locale','title','showFakeVisualSelection','requires','showRotator','5296OohNsy','delegate','_config','ai.availableReplyActions','_calculateDialogPosition','bind','isTrackChangesOn','hideFakeVisualSelection','balloonView','ai-balloon-selection','_setupVisualSelection','ai-balloon-','ranges','hide','trackChanges','editing','get','show','isOfficialPlugin','238yfcvcO','left','730107FkCIEM','length','value','Dialog','\x20ai-balloon-rotator','pluginName','5491318wFwxYr','close','innerHeight','116zyJVtA','context','commands','markers','128675bnxNcT','106250wCUYQG','_calculateOptimalTopPosition','open','model','top','index','1331mPIFXn','isOpen','ai-balloon','getMarkersGroup','fire','round','855996EApJbi','813942qzUXUn','16oDHtdT'];_0x5b1b=function(){return _0x345a40;};return _0x5b1b();}export class AIBalloon extends _0x299605{static get[_0x5ab971(0x155)](){return[_0x3c44ce,_0x5e765f];}static get[_0x5ab971(0x171)](){const _0x443f1c=_0x5ab971;return _0x443f1c(0x194);}static get[_0x5ab971(0x169)](){return!0x0;}static get[_0x5ab971(0x18e)](){return!0x0;}[_0x5ab971(0x181)]=!0x1;[_0x5ab971(0x159)];[_0x5ab971(0x17c)](_0x39ab7e){const _0x497338=_0x5ab971,_0x194ec8=_0x32e888(this[_0x497338(0x176)]);this[_0x497338(0x159)]=_0x39ab7e;const _0x5be24c=this[_0x497338(0x176)][_0x497338(0x18d)][_0x497338(0x167)](_0x497338(0x15a))||[..._0x3102a7],_0x57a223=_0x194ec8?.[_0x497338(0x177)][_0x497338(0x167)](_0x497338(0x165)),_0x579195=_0x57a223?.[_0x497338(0x16e)];this[_0x497338(0x15f)]=new _0x2d7521(_0x194ec8[_0x497338(0x152)],_0x39ab7e,_0x5be24c,!!_0x579195),this[_0x497338(0x15f)][_0x497338(0x158)](..._0x4f30f4)['to'](this),_0x57a223&&this[_0x497338(0x15f)][_0x497338(0x15c)](_0x497338(0x15d))['to'](_0x57a223,_0x497338(0x16e)),this[_0x497338(0x193)](_0x39ab7e);}[_0x5ab971(0x173)](){const _0x3a8661=_0x5ab971;_0x32e888(this[_0x3a8661(0x176)])[_0x3a8661(0x192)][_0x3a8661(0x167)](_0x3a8661(0x16f))[_0x3a8661(0x164)]();}[_0x5ab971(0x161)](_0x35eedf,_0x4cc975){const _0x52e7bb=_0x5ab971;this[_0x52e7bb(0x176)][_0x52e7bb(0x192)][_0x52e7bb(0x167)](_0x5e765f)[_0x52e7bb(0x154)](_0x35eedf,_0x52e7bb(0x162)+_0x4cc975,!0x0,!0x0);}[_0x5ab971(0x193)](_0xb0a306){const _0x216d77=_0x5ab971,_0x3ff36c=_0x32e888(this[_0x216d77(0x176)]);this[_0x216d77(0x161)](_0xb0a306[_0x216d77(0x163)],_0xb0a306[_0x216d77(0x17f)]),_0x3ff36c[_0x216d77(0x192)][_0x216d77(0x167)](_0x216d77(0x16f))[_0x216d77(0x168)]({'title':_0xb0a306[_0x216d77(0x153)],'icon':_0xb0a306[_0x216d77(0x151)],'hasCloseButton':!0x0,'id':_0x216d77(0x18c),'position':this[_0x216d77(0x15b)][_0x216d77(0x15c)](this),'className':_0x216d77(0x182)+(_0xb0a306[_0x216d77(0x156)]?_0x216d77(0x170):''),'content':this[_0x216d77(0x15f)],'onShow':_0xe0112d=>{const _0x38d084=_0x216d77;_0xb0a306[_0x38d084(0x156)]&&this[_0x38d084(0x15f)][_0x38d084(0x18f)](_0xe0112d),this[_0x38d084(0x181)]=!0x0;},'onHide':()=>{const _0x3cfc2b=_0x216d77;this[_0x3cfc2b(0x176)][_0x3cfc2b(0x192)][_0x3cfc2b(0x167)](_0x3cfc2b(0x191))[_0x3cfc2b(0x15e)](_0x3cfc2b(0x162)+_0xb0a306[_0x3cfc2b(0x17f)]),this[_0x3cfc2b(0x184)](_0x3cfc2b(0x189)),this[_0x3cfc2b(0x181)]=!0x1;}});}[_0x5ab971(0x15b)](_0x29cefc,_0x5bd529){const _0x3290c2=_0x5ab971,_0x58c114=_0x32e888(this[_0x3290c2(0x176)]);if(!_0x5bd529)return null;const _0x3ae37e=_0x2a227a(_0x58c114[_0x3290c2(0x166)],[..._0x58c114[_0x3290c2(0x17d)][_0x3290c2(0x178)][_0x3290c2(0x183)](_0x3290c2(0x195)),..._0x58c114[_0x3290c2(0x17d)][_0x3290c2(0x178)][_0x3290c2(0x183)](_0x3290c2(0x160))]);if(!_0x3ae37e||0x0===_0x3ae37e[_0x3290c2(0x16d)])return{'left':Math[_0x3290c2(0x185)](_0x5bd529[_0x3290c2(0x16b)]+_0x5bd529[_0x3290c2(0x18b)]/0x2-_0x29cefc[_0x3290c2(0x18b)]/0x2),'top':Math[_0x3290c2(0x185)](_0x5bd529[_0x3290c2(0x17e)]+_0x5bd529[_0x3290c2(0x190)]/0x2-_0x29cefc[_0x3290c2(0x190)]/0x2)};const _0x5ab551=Math[_0x3290c2(0x185)](_0x5bd529[_0x3290c2(0x16b)]+_0x5bd529[_0x3290c2(0x18b)]/0x2-_0x29cefc[_0x3290c2(0x18b)]/0x2),_0x28811e=_0x3ae37e[0x0][_0x3290c2(0x18a)](),_0x59601c=_0x3ae37e[_0x3ae37e[_0x3290c2(0x16d)]-0x1][_0x3290c2(0x18a)](),_0x316abc=_0x29cefc[_0x3290c2(0x190)],_0xfaf088=this[_0x3290c2(0x159)][_0x3290c2(0x156)]?0x8:0x0;return{'left':_0x5ab551,'top':this[_0x3290c2(0x17b)](_0x28811e,_0x59601c,_0x316abc,_0xfaf088)};}[_0x5ab971(0x17b)](_0x546f34,_0x4b200d,_0x282162,_0x4c72a7=0x0){const _0xefbeaa=_0x5ab971,_0x455d9a=_0x4b200d[_0xefbeaa(0x17e)]+_0x4b200d[_0xefbeaa(0x190)],_0x2067a0=_0x546f34[_0xefbeaa(0x17e)]-_0x282162-_0x4c72a7,_0x167986=window[_0xefbeaa(0x174)]-_0x455d9a-0xa,_0x3b7b9f=_0x546f34[_0xefbeaa(0x17e)]-_0x4c72a7-0xa;let _0x469c02;if(_0x167986>=_0x282162)_0x469c02=_0x455d9a+0xa;else{if(_0x3b7b9f>=_0x282162)_0x469c02=_0x2067a0-0xa;else _0x469c02=_0x546f34[_0xefbeaa(0x17e)]+(_0x4b200d[_0xefbeaa(0x17e)]+_0x4b200d[_0xefbeaa(0x190)])/0x2-(_0x282162+_0x4c72a7)/0x2;}return _0x469c02;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x40bf25,_0x425d45){var _0x14729d=_0x51d2,_0x504c96=_0x40bf25();while(!![]){try{var _0x4e2c68=-parseInt(_0x14729d(0xaa))/0x1*(-parseInt(_0x14729d(0x9a))/0x2)+-parseInt(_0x14729d(0xa4))/0x3*(-parseInt(_0x14729d(0xa1))/0x4)+parseInt(_0x14729d(0xa2))/0x5+parseInt(_0x14729d(0xa5))/0x6+-parseInt(_0x14729d(0xa3))/0x7*(-parseInt(_0x14729d(0xa7))/0x8)+-parseInt(_0x14729d(0xa0))/0x9*(parseInt(_0x14729d(0xa9))/0xa)+parseInt(_0x14729d(0x9f))/0xb*(-parseInt(_0x14729d(0xa8))/0xc);if(_0x4e2c68===_0x425d45)break;else _0x504c96['push'](_0x504c96['shift']());}catch(_0x494d20){_0x504c96['push'](_0x504c96['shift']());}}}(_0x342d,0xdb66f));import{View as _0x5dada0}from'ckeditor5/src/ui.js';import{getTranslation as _0x509539}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x5dada0{constructor(_0x39e1e4){var _0x580069=_0x51d2;super(_0x39e1e4),this[_0x580069(0xa6)]({'tag':_0x580069(0x9c),'attributes':{'class':['ck',_0x580069(0x9d)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x580069(0x9e)]},'children':[{'text':_0x509539(_0x39e1e4,_0x580069(0x9b))}]}]});}}function _0x51d2(_0x1783a2,_0x4a543e){var _0x342d95=_0x342d();return _0x51d2=function(_0x51d242,_0x363d71){_0x51d242=_0x51d242-0x9a;var _0x138c94=_0x342d95[_0x51d242];return _0x138c94;},_0x51d2(_0x1783a2,_0x4a543e);}function _0x342d(){var _0x48760a=['div','ck-ai-balloon__disclaimer','ck-ai-balloon__disclaimer-content','11FUjGWo','776331XwZebC','661916yQWvxE','2313145CbYauo','492660vLOyOZ','15QWXkYZ','5168100SHOzLX','setTemplate','64ndSQKe','38790312YZkkNJ','10DfQkyZ','1DEdHot','3006084bvuaME','AI_DISCLAIMER_TEXT'];_0x342d=function(){return _0x48760a;};return _0x342d();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x13ca21=_0x2013;(function(_0x52a239,_0x282361){const _0x494abb=_0x2013,_0x207172=_0x52a239();while(!![]){try{const _0x32ec14=-parseInt(_0x494abb(0x1b9))/0x1+-parseInt(_0x494abb(0x1ae))/0x2+parseInt(_0x494abb(0x1aa))/0x3+parseInt(_0x494abb(0x1a4))/0x4*(-parseInt(_0x494abb(0x1af))/0x5)+parseInt(_0x494abb(0x1ba))/0x6*(-parseInt(_0x494abb(0x1bb))/0x7)+parseInt(_0x494abb(0x1b5))/0x8*(-parseInt(_0x494abb(0x1a3))/0x9)+-parseInt(_0x494abb(0x1b8))/0xa*(-parseInt(_0x494abb(0x1a1))/0xb);if(_0x32ec14===_0x282361)break;else _0x207172['push'](_0x207172['shift']());}catch(_0x11a42b){_0x207172['push'](_0x207172['shift']());}}}(_0x2bb9,0xb71da));import{ToolbarView as _0x179bab,ButtonView as _0x573419}from'ckeditor5/src/ui.js';import{getTranslation as _0xb6e418}from'../../aicore/utils/common-translations.js';function _0x2013(_0x3e0034,_0x3ecc84){const _0x2bb9c7=_0x2bb9();return _0x2013=function(_0x2013ee,_0x245e21){_0x2013ee=_0x2013ee-0x1a1;let _0x3e4610=_0x2bb9c7[_0x2013ee];return _0x3e4610;},_0x2013(_0x3e0034,_0x3ecc84);}export class AIBalloonToolbarView extends _0x179bab{constructor(_0x3e465b,_0x3c4f18=!0x0,_0x430ea7=!0x0){const _0x2f2c48=_0x2013;super(_0x3e465b),this[_0x2f2c48(0x1a9)](_0x2f2c48(0x1b3),!0x1),_0x3c4f18&&(this[_0x2f2c48(0x1b4)]=this[_0x2f2c48(0x1a7)](_0xb6e418(_0x3e465b,_0x2f2c48(0x1a5)),_0x2f2c48(0x1a8)),this[_0x2f2c48(0x1b4)][_0x2f2c48(0x1ab)](_0x2f2c48(0x1b1))['to'](this,_0x2f2c48(0x1b3),_0x1e121a=>!_0x1e121a),this[_0x2f2c48(0x1a6)][_0x2f2c48(0x1b7)](this[_0x2f2c48(0x1b4)])),_0x430ea7&&(this[_0x2f2c48(0x1b0)]=this[_0x2f2c48(0x1a7)](_0xb6e418(_0x3e465b,_0x2f2c48(0x1b6)),_0x3c4f18?_0x2f2c48(0x1b2):_0x2f2c48(0x1a8)),this[_0x2f2c48(0x1b0)][_0x2f2c48(0x1ab)](_0x2f2c48(0x1b1))['to'](this,_0x2f2c48(0x1b3),_0x416308=>!_0x416308),this[_0x2f2c48(0x1a6)][_0x2f2c48(0x1b7)](this[_0x2f2c48(0x1b0)])),this[_0x2f2c48(0x1ad)]({'attributes':{'class':[_0x2f2c48(0x1a2)]}});}[_0x13ca21(0x1a7)](_0x247784,_0xfd99be){const _0x3275d8=_0x13ca21,_0x19482d=new _0x573419(this[_0x3275d8(0x1ac)]);return _0x19482d[_0x3275d8(0x1a9)]({'label':_0x247784,'class':_0xfd99be||'','isVisible':!0x0,'withText':!0x0}),_0x19482d;}}function _0x2bb9(){const _0x1bbd86=['set','138309BRfcWl','bind','locale','extendTemplate','1387532vLsFFi','5UCpXHi','suggestButton','isEnabled','ck-ai-button-secondary','isLoading','applyButton','24BQRcXQ','AI_BALLOON_SUGGEST_BUTTON','add','16225760LEddhg','1416754CrCWHo','3180480xeKlxK','7kwrgTP','33HjfWHn','ck-ai-balloon__toolbar','3490479AkCELj','1438784Dpjscv','AI_BALLOON_APPLY_BUTTON','items','_createButton','ck-ai-button-primary'];_0x2bb9=function(){return _0x1bbd86;};return _0x2bb9();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a8235=_0x11e0;function _0x11e0(_0x13d433,_0xfdcdc4){const _0x113070=_0x1130();return _0x11e0=function(_0x11e00b,_0x20ea0b){_0x11e00b=_0x11e00b-0x107;let _0x155d42=_0x113070[_0x11e00b];return _0x155d42;},_0x11e0(_0x13d433,_0xfdcdc4);}function _0x1130(){const _0x5a642c=['clear','render','set','setTemplate','element','_dropdownConfig','ai-balloon-content','listenTo','353266PULBYQ','bind','setupRotator','view','showNext','_focusables','904251oKFIxa','3553ligbDS','AI_BALLOON_NEXT_TOOLTIP','focusFirst','setLoading','createCollection','_addContentView','disclaimerView','remove','focus','_createPreviousButtonView','showApplyButton','10318bhgqMv','isTrackChangesOn','15030SQovDt','tab','_mainView','shift\x20+\x20tab','_addToolbar','insertSuggestion','focusLast','fire','execute','_createNextButtonView','toolbar','343164sErVlV','mainView','focusTracker','_dialogContent','children','includes','showPrevious','keystrokes','applyButton','1182WgybtY','3055yroRyf','focusCycler','24UvWYvR','locale','change:isTrackChangesOn','addMany','applySuggestion','isLoading','_addDisclaimerView','suggestButton','751392nWeWHe','add','div','340hFuVie','clearLoading','AI_BALLOON_PREVIOUS_TOOLTIP','showSuggestButton','headerView'];_0x1130=function(){return _0x5a642c;};return _0x1130();}(function(_0x3015c4,_0x16604a){const _0x525fc9=_0x11e0,_0xeae4d4=_0x3015c4();while(!![]){try{const _0x2e2826=parseInt(_0x525fc9(0x127))/0x1+parseInt(_0x525fc9(0x108))/0x2+-parseInt(_0x525fc9(0x10e))/0x3+-parseInt(_0x525fc9(0x13e))/0x4*(-parseInt(_0x525fc9(0x131))/0x5)+parseInt(_0x525fc9(0x130))/0x6*(-parseInt(_0x525fc9(0x11a))/0x7)+-parseInt(_0x525fc9(0x133))/0x8*(parseInt(_0x525fc9(0x13b))/0x9)+-parseInt(_0x525fc9(0x11c))/0xa*(-parseInt(_0x525fc9(0x10f))/0xb);if(_0x2e2826===_0x16604a)break;else _0xeae4d4['push'](_0xeae4d4['shift']());}catch(_0x3a6b7e){_0xeae4d4['push'](_0xeae4d4['shift']());}}}(_0x1130,0x3479e));import{ButtonView as _0xb85141,View as _0x5749cd,ViewCollection as _0x53b553,FocusCycler as _0xb49c8c}from'ckeditor5/src/ui.js';import{FocusTracker as _0x15171f,KeystrokeHandler as _0x3eda54}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x262473,IconPreviousArrow as _0x59d048}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x32a6ab}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x5b9789}from'./aiballoondisclaimerview.js';import{getTranslation as _0x1228a4}from'../../aicore/utils/common-translations.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x5a8235(0x137),_0x5a8235(0x121),_0x5a8235(0x10c),_0x5a8235(0x12d)];export class AIBalloonView extends _0x5749cd{[_0x5a8235(0x129)];[_0x5a8235(0x12e)];[_0x5a8235(0x132)];[_0x5a8235(0x148)];[_0x5a8235(0x10d)];constructor(_0x15e11a,_0x508537,_0x26cc0d,_0xa8dfdd){const _0x38fbb5=_0x5a8235;super(_0x15e11a),this[_0x38fbb5(0x148)]=_0x26cc0d,this[_0x38fbb5(0x145)](_0x38fbb5(0x138),!0x1),this[_0x38fbb5(0x145)](_0x38fbb5(0x11b),_0xa8dfdd),this[_0x38fbb5(0x129)]=new _0x15171f(),this[_0x38fbb5(0x12e)]=new _0x3eda54(),this[_0x38fbb5(0x10d)]=this[_0x38fbb5(0x113)](),this[_0x38fbb5(0x132)]=new _0xb49c8c({'focusables':this[_0x38fbb5(0x10d)],'focusTracker':this[_0x38fbb5(0x129)],'keystrokeHandler':this[_0x38fbb5(0x12e)],'actions':{'focusPrevious':_0x38fbb5(0x11f),'focusNext':_0x38fbb5(0x11d)}}),this[_0x38fbb5(0x12a)]=new _0x53b553(),this[_0x38fbb5(0x114)](_0x508537[_0x38fbb5(0x128)]),this[_0x38fbb5(0x139)](),this[_0x38fbb5(0x120)](_0x508537[_0x38fbb5(0x119)],_0x508537[_0x38fbb5(0x141)]),this[_0x38fbb5(0x126)][_0x38fbb5(0x109)](_0x38fbb5(0x138))['to'](this),this[_0x38fbb5(0x10d)][_0x38fbb5(0x143)](),this[_0x38fbb5(0x10d)][_0x38fbb5(0x136)]([this[_0x38fbb5(0x126)]]),this[_0x38fbb5(0x146)]({'tag':_0x38fbb5(0x13d),'attributes':{'class':_0x38fbb5(0x149)},'children':this[_0x38fbb5(0x12a)]}),this[_0x38fbb5(0x107)](this,_0x38fbb5(0x135),()=>{const _0xbdc836=_0x38fbb5;this[_0xbdc836(0x12a)][_0xbdc836(0x116)](this[_0xbdc836(0x126)]),this[_0xbdc836(0x120)](_0x508537[_0xbdc836(0x119)],_0x508537[_0xbdc836(0x141)]);});}[_0x5a8235(0x144)](){const _0x42d916=_0x5a8235;super[_0x42d916(0x144)]();for(const _0x2341d0 of this[_0x42d916(0x10d)])this[_0x42d916(0x129)][_0x42d916(0x13c)](_0x2341d0[_0x42d916(0x147)]);this[_0x42d916(0x12e)][_0x42d916(0x107)](this[_0x42d916(0x147)]);}[_0x5a8235(0x117)](_0x328b52){const _0x11571f=_0x5a8235;-0x1===_0x328b52?this[_0x11571f(0x132)][_0x11571f(0x122)]():this[_0x11571f(0x132)][_0x11571f(0x111)]();}[_0x5a8235(0x112)](){const _0x5ef2a9=_0x5a8235;this[_0x5ef2a9(0x138)]=!0x0;}[_0x5a8235(0x13f)](){const _0x11dc07=_0x5a8235;this[_0x11dc07(0x138)]=!0x1;}[_0x5a8235(0x10a)](_0x1c7725){const _0x5890d5=_0x5a8235,_0x91eb87=this[_0x5890d5(0x125)](),_0x43eb69=this[_0x5890d5(0x118)]();_0x1c7725[_0x5890d5(0x10b)][_0x5890d5(0x142)][_0x5890d5(0x12b)][_0x5890d5(0x13c)](_0x91eb87,0x2),_0x1c7725[_0x5890d5(0x10b)][_0x5890d5(0x142)][_0x5890d5(0x12b)][_0x5890d5(0x13c)](_0x43eb69,0x0),this[_0x5890d5(0x10d)][_0x5890d5(0x136)]([_0x91eb87,_0x43eb69]),this[_0x5890d5(0x129)][_0x5890d5(0x13c)](_0x91eb87[_0x5890d5(0x147)]),this[_0x5890d5(0x129)][_0x5890d5(0x13c)](_0x43eb69[_0x5890d5(0x147)]);}[_0x5a8235(0x114)](_0x409d80){const _0x25bf8e=_0x5a8235;this[_0x25bf8e(0x11e)]=_0x409d80,this[_0x25bf8e(0x12a)][_0x25bf8e(0x13c)](this[_0x25bf8e(0x11e)]);}[_0x5a8235(0x139)](){const _0xc6b51=_0x5a8235;this[_0xc6b51(0x115)]=new _0x5b9789(this[_0xc6b51(0x134)]),this[_0xc6b51(0x12a)][_0xc6b51(0x13c)](this[_0xc6b51(0x115)]);}[_0x5a8235(0x120)](_0x58d694=!0x0,_0x4456fc=!0x0){const _0x5a6396=_0x5a8235;_0x58d694=_0x58d694&&!this[_0x5a6396(0x11b)]&&this[_0x5a6396(0x148)][_0x5a6396(0x12c)](_0x5a6396(0x137)),_0x4456fc=_0x4456fc&&this[_0x5a6396(0x148)][_0x5a6396(0x12c)](_0x5a6396(0x121)),this[_0x5a6396(0x126)]=new _0x32a6ab(this[_0x5a6396(0x134)],_0x58d694,_0x4456fc),this[_0x5a6396(0x126)][_0x5a6396(0x12f)]?.['on'](_0x5a6396(0x124),()=>{const _0x3dd5c3=_0x5a6396;this[_0x3dd5c3(0x123)](_0x3dd5c3(0x137));}),this[_0x5a6396(0x126)][_0x5a6396(0x13a)]?.['on'](_0x5a6396(0x124),()=>{const _0x222eff=_0x5a6396;this[_0x222eff(0x123)](_0x222eff(0x121));}),this[_0x5a6396(0x12a)][_0x5a6396(0x13c)](this[_0x5a6396(0x126)]);}[_0x5a8235(0x125)](){const _0x235d30=_0x5a8235,_0x3051ab=new _0xb85141(this[_0x235d30(0x134)]);return _0x3051ab[_0x235d30(0x145)]({'icon':_0x262473,'tooltip':_0x1228a4(this[_0x235d30(0x134)],_0x235d30(0x110))}),_0x3051ab['on'](_0x235d30(0x124),()=>{const _0x5544a7=_0x235d30;this[_0x5544a7(0x123)](_0x5544a7(0x10c));}),_0x3051ab;}[_0x5a8235(0x118)](){const _0x4ea37a=_0x5a8235,_0x53b83d=new _0xb85141(this[_0x4ea37a(0x134)]);return _0x53b83d[_0x4ea37a(0x145)]({'icon':_0x59d048,'tooltip':_0x1228a4(this[_0x4ea37a(0x134)],_0x4ea37a(0x140))}),_0x53b83d['on'](_0x4ea37a(0x124),()=>{const _0x467945=_0x4ea37a;this[_0x467945(0x123)](_0x467945(0x12d));}),_0x53b83d;}}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x33bc70=_0x4422;(function(_0x2f9fd9,_0x57d55d){var _0x13ac43=_0x4422,_0x4cc256=_0x2f9fd9();while(!![]){try{var _0x21b0a2=parseInt(_0x13ac43(0x132))/0x1+-parseInt(_0x13ac43(0x141))/0x2*(parseInt(_0x13ac43(0x13c))/0x3)+-parseInt(_0x13ac43(0x135))/0x4*(parseInt(_0x13ac43(0x143))/0x5)+-parseInt(_0x13ac43(0x146))/0x6+parseInt(_0x13ac43(0x13b))/0x7+parseInt(_0x13ac43(0x139))/0x8+-parseInt(_0x13ac43(0x13a))/0x9*(-parseInt(_0x13ac43(0x147))/0xa);if(_0x21b0a2===_0x57d55d)break;else _0x4cc256['push'](_0x4cc256['shift']());}catch(_0x501b9f){_0x4cc256['push'](_0x4cc256['shift']());}}}(_0x331c,0xb96bb));import{ContextPlugin as _0x4620b6}from'ckeditor5/src/core.js';function _0x331c(){var _0x2e2355=['3KYlUPg','isOfficialPlugin','get','config','sendMessage','457912KDIyHi','focusPromptInput','718845hxfwGR','requires','ai.chat.context','3885438zAwdDX','1539030tnduuq','AIChat','addSelectionToChatContext','plugins','ai.chat.models','define','405914rgVJRH','startConversation','isPremiumPlugin','20BGISaS','pluginName','context','removeSelectionFromChatContext','9241336wFXhBK','36KeSWKy','1247148lLIUhN'];_0x331c=function(){return _0x2e2355;};return _0x331c();}import{AIChatController as _0x3ccfff}from'./aichatcontroller.js';function _0x4422(_0x3acc21,_0x145c45){var _0x331c88=_0x331c();return _0x4422=function(_0x4422ac,_0x2225c0){_0x4422ac=_0x4422ac-0x132;var _0x164c75=_0x331c88[_0x4422ac];return _0x164c75;},_0x4422(_0x3acc21,_0x145c45);}import{AIEditing as _0x1ef051}from'../aicore/aiediting.js';import{AIChatUI as _0x5593aa}from'./aichatui.js';import{AIChatHistory as _0x5247b0}from'../aichathistory/aichathistory.js';export class AIChat extends _0x4620b6{static get[_0x33bc70(0x144)](){return[_0x3ccfff,_0x1ef051,_0x5593aa,_0x5247b0];}static get[_0x33bc70(0x136)](){var _0x3be9ba=_0x33bc70;return _0x3be9ba(0x148);}static get[_0x33bc70(0x13d)](){return!0x0;}static get[_0x33bc70(0x134)](){return!0x0;}constructor(_0x549aaa){var _0x3dbbb9=_0x33bc70;super(_0x549aaa),this[_0x3dbbb9(0x137)][_0x3dbbb9(0x13f)][_0x3dbbb9(0x14c)](_0x3dbbb9(0x145),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x3dbbb9(0x137)][_0x3dbbb9(0x13f)][_0x3dbbb9(0x14c)](_0x3dbbb9(0x14b),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x33bc70(0x149)](){var _0x564f22=_0x33bc70;await this[_0x564f22(0x137)][_0x564f22(0x14a)][_0x564f22(0x13e)](_0x3ccfff)[_0x564f22(0x149)]();}async[_0x33bc70(0x133)](){var _0x5e5140=_0x33bc70;await this[_0x5e5140(0x137)][_0x5e5140(0x14a)][_0x5e5140(0x13e)](_0x3ccfff)[_0x5e5140(0x133)]();}async[_0x33bc70(0x140)]({message:_0x3132a5,quickActionData:_0x31c9e3}){var _0x51c0b5=_0x33bc70;await this[_0x51c0b5(0x137)][_0x51c0b5(0x14a)][_0x51c0b5(0x13e)](_0x3ccfff)[_0x51c0b5(0x140)]({'message':_0x3132a5,'quickActionData':_0x31c9e3});}[_0x33bc70(0x138)](){var _0x1eba6f=_0x33bc70;this[_0x1eba6f(0x137)][_0x1eba6f(0x14a)][_0x1eba6f(0x13e)](_0x3ccfff)[_0x1eba6f(0x138)]();}[_0x33bc70(0x142)](){var _0x4e9beb=_0x33bc70;this[_0x4e9beb(0x137)][_0x4e9beb(0x14a)][_0x4e9beb(0x13e)](_0x3ccfff)[_0x4e9beb(0x142)]();}}
|