@ckeditor/ckeditor5-ai 47.7.1 → 47.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/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/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.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 +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/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/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/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/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.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/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.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/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x12af7e=_0x5c99;(function(_0x1fd96f,_0xdb8241){const _0x2fa5f4=_0x5c99,_0xbf2b7f=_0x1fd96f();while(!![]){try{const _0x57bd87=-parseInt(_0x2fa5f4(0xa8))/0x1+-parseInt(_0x2fa5f4(0xaa))/0x2+-parseInt(_0x2fa5f4(0xb9))/0x3+parseInt(_0x2fa5f4(0xad))/0x4*(parseInt(_0x2fa5f4(0xdb))/0x5)+parseInt(_0x2fa5f4(0xb0))/0x6*(parseInt(_0x2fa5f4(0xb7))/0x7)+parseInt(_0x2fa5f4(0xa1))/0x8*(-parseInt(_0x2fa5f4(0xcd))/0x9)+parseInt(_0x2fa5f4(0xc8))/0xa;if(_0x57bd87===_0xdb8241)break;else _0xbf2b7f['push'](_0xbf2b7f['shift']());}catch(_0x5898dc){_0xbf2b7f['push'](_0xbf2b7f['shift']());}}}(_0x2854,0x49efa));import{FocusTracker as _0x1be1ad,KeystrokeHandler as _0x3d39a0}from'ckeditor5/src/utils.js';import{ButtonView as _0x324c32,FocusCycler as _0x14cc58,LabeledFieldView as _0x523302,View as _0x11d689,FormHeaderView as _0x39bad7,createLabeledInputText as _0x517f76,submitHandler as _0x53eec5}from'ckeditor5/src/ui.js';function _0x5c99(_0x3bb206,_0x21b362){const _0x285488=_0x2854();return _0x5c99=function(_0x5c99f5,_0x4832fc){_0x5c99f5=_0x5c99f5-0x93;let _0xad53d=_0x285488[_0x5c99f5];return _0xad53d;},_0x5c99(_0x3bb206,_0x21b362);}import{IconCheck as _0x177bb7,IconPreviousArrow as _0x519ff4}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x189c9e}from'../../../aicore/utils/common-translations.js';const oh=_0x12af7e(0xd7),ch=_0x12af7e(0xc4);export class AIChatContextPanelUrlInputView extends _0x11d689{[_0x12af7e(0xdc)];[_0x12af7e(0x9f)];[_0x12af7e(0xbc)];[_0x12af7e(0xd1)];[_0x12af7e(0x94)];[_0x12af7e(0x97)];[_0x12af7e(0xde)];constructor(_0x2aa225){const _0x2b84b1=_0x12af7e;super(_0x2aa225),this[_0x2b84b1(0xdc)]=new _0x1be1ad(),this[_0x2b84b1(0x9f)]=new _0x3d39a0(),this[_0x2b84b1(0x97)]=this[_0x2b84b1(0xa3)](),this[_0x2b84b1(0x94)]=this[_0x2b84b1(0xae)](),this[_0x2b84b1(0xde)]=this[_0x2b84b1(0xc5)](),this[_0x2b84b1(0xbc)]=this[_0x2b84b1(0xc1)]([this[_0x2b84b1(0x97)],this[_0x2b84b1(0x94)],this[_0x2b84b1(0xde)]]),this[_0x2b84b1(0xd1)]=new _0x14cc58({'focusables':this[_0x2b84b1(0xbc)],'focusTracker':this[_0x2b84b1(0xdc)],'keystrokeHandler':this[_0x2b84b1(0x9f)],'actions':{'focusPrevious':_0x2b84b1(0xb5),'focusNext':_0x2b84b1(0x95)}}),this[_0x2b84b1(0xa6)](_0x2b84b1(0xb1),!0x0),this[_0x2b84b1(0x9b)](),this[_0x2b84b1(0xa0)](),this[_0x2b84b1(0xc2)]();}[_0x12af7e(0xd0)](){const _0x414c14=_0x12af7e;super[_0x414c14(0xd0)](),this[_0x414c14(0xbc)][_0x414c14(0xdd)](_0x1d5828=>{const _0x30fe85=_0x414c14;this[_0x30fe85(0xdc)][_0x30fe85(0x96)](_0x1d5828[_0x30fe85(0xbf)]),this[_0x30fe85(0x9f)][_0x30fe85(0xc7)](_0x1d5828[_0x30fe85(0xbf)]);}),_0x53eec5({'view':this}),this[_0x414c14(0xd3)]();}[_0x12af7e(0xc6)](){const _0x53978a=_0x12af7e;super[_0x53978a(0xc6)](),this[_0x53978a(0xdc)][_0x53978a(0xc6)](),this[_0x53978a(0x9f)][_0x53978a(0xc6)]();}[_0x12af7e(0xd3)](){const _0x1730e5=_0x12af7e;this[_0x1730e5(0x94)][_0x1730e5(0xd3)]();}[_0x12af7e(0xcc)](){const _0x58817b=_0x12af7e;return this[_0x58817b(0x94)][_0x58817b(0x93)][_0x58817b(0xbf)]?.[_0x58817b(0xb3)]?.[_0x58817b(0x98)]()||'';}[_0x12af7e(0x9d)](){const _0x402c49=_0x12af7e;this[_0x402c49(0x94)][_0x402c49(0x93)][_0x402c49(0xbf)][_0x402c49(0xb3)]='',this[_0x402c49(0x94)][_0x402c49(0xba)]=null,this[_0x402c49(0xde)][_0x402c49(0xa4)]=!0x1;}[_0x12af7e(0xbe)](_0x1cebb3){const _0x4e5ccc=_0x12af7e;this[_0x4e5ccc(0x94)][_0x4e5ccc(0xba)]=_0x1cebb3,this[_0x4e5ccc(0xd8)](),this[_0x4e5ccc(0xb8)](_0x4e5ccc(0xd5));}[_0x12af7e(0xce)](){const _0x445d44=_0x12af7e;this[_0x445d44(0x94)][_0x445d44(0xba)]=null,this[_0x445d44(0xd8)]();}[_0x12af7e(0xa3)](){const _0x10dcce=_0x12af7e,_0x3d8b52=new _0x324c32(this[_0x10dcce(0x9c)]);return _0x3d8b52[_0x10dcce(0xa6)]({'icon':_0x519ff4,'tooltip':_0x189c9e(this[_0x10dcce(0x9c)],_0x10dcce(0xda)),'tooltipPosition':'n','class':[_0x10dcce(0xc9)]}),this['on'](_0x10dcce(0xbb),(_0x225c56,_0x40a715,_0x95837a)=>{const _0x1e2636=_0x10dcce;_0x3d8b52[_0x1e2636(0xa6)]({'class':[_0x1e2636(0xc9)+(_0x95837a?'':_0x1e2636(0xd4))]});}),_0x3d8b52;}[_0x12af7e(0xae)](){const _0x5bc4a3=_0x12af7e,_0x1d4bb0=new _0x523302(this[_0x5bc4a3(0x9c)],_0x517f76);return _0x1d4bb0[_0x5bc4a3(0xa6)]({'label':_0x189c9e(this[_0x5bc4a3(0x9c)],_0x5bc4a3(0xaf)),'class':_0x5bc4a3(0xca)}),_0x1d4bb0[_0x5bc4a3(0x93)][_0x5bc4a3(0xa6)]({'placeholder':_0x189c9e(this[_0x5bc4a3(0x9c)],_0x5bc4a3(0xd9))}),_0x1d4bb0;}[_0x12af7e(0xc5)](){const _0x1b6943=_0x12af7e,_0xda714f=new _0x324c32(this[_0x1b6943(0x9c)]);return _0xda714f[_0x1b6943(0xa6)]({'icon':_0x177bb7,'tooltip':_0x189c9e(this[_0x1b6943(0x9c)],_0x1b6943(0xb2)),'tooltipPosition':'n','class':_0x1b6943(0xa5),'type':_0x1b6943(0xa2),'isEnabled':!0x1}),_0xda714f;}[_0x12af7e(0x9b)](){const _0x2ca180=_0x12af7e,_0x3e8177=new _0x39bad7(this[_0x2ca180(0x9c)],{'label':_0x189c9e(this[_0x2ca180(0x9c)],_0x2ca180(0xb2)),'class':_0x2ca180(0xac)});_0x3e8177[_0x2ca180(0x9e)][_0x2ca180(0x96)](this[_0x2ca180(0x97)],0x0),this[_0x2ca180(0xb6)]({'tag':_0x2ca180(0xbd),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0x3e8177,{'tag':_0x2ca180(0xd2),'attributes':{'class':ch},'children':[this[_0x2ca180(0x94)],this[_0x2ca180(0xde)]]}]});}[_0x12af7e(0xa0)](){const _0x2c225b=_0x12af7e;this[_0x2c225b(0x97)]['on'](_0x2c225b(0xb4),()=>{const _0x46b35f=_0x2c225b;this[_0x46b35f(0x9d)](),this[_0x46b35f(0xb8)](_0x46b35f(0xd6));}),this[_0x2c225b(0x94)][_0x2c225b(0x93)]['on'](_0x2c225b(0xcb),()=>{const _0x3f624b=_0x2c225b;this[_0x3f624b(0xce)](),this[_0x3f624b(0xd8)](),this[_0x3f624b(0xb8)](_0x3f624b(0xd5));}),this['on'](_0x2c225b(0xa2),_0x257cc1=>{const _0x116e9e=_0x2c225b;_0x257cc1[_0x116e9e(0xcf)](),this[_0x116e9e(0xa7)]();});}[_0x12af7e(0xc2)](){const _0x103f12=_0x12af7e;this[_0x103f12(0x9f)][_0x103f12(0xa6)](_0x103f12(0xa9),(_0x172bfc,_0x5ed21a)=>{const _0x343b34=_0x103f12;this[_0x343b34(0x9d)](),this[_0x343b34(0xb8)](_0x343b34(0xd6)),_0x5ed21a();});}[_0x12af7e(0xa7)](){const _0x492f8f=_0x12af7e,_0x468516=this[_0x492f8f(0xcc)]()[_0x492f8f(0x98)]();_0x468516?this[_0x492f8f(0xc0)](_0x468516)?(this[_0x492f8f(0xce)](),this[_0x492f8f(0xb8)](_0x492f8f(0xab),_0x468516)):this[_0x492f8f(0xbe)](_0x189c9e(this[_0x492f8f(0x9c)],_0x492f8f(0x9a))):this[_0x492f8f(0xbe)](_0x189c9e(this[_0x492f8f(0x9c)],_0x492f8f(0xc3)));}[_0x12af7e(0xd8)](){const _0x4fb367=_0x12af7e,_0x213fb1=this[_0x4fb367(0xcc)]()[_0x4fb367(0x98)](),_0x171cd8=!!this[_0x4fb367(0x94)][_0x4fb367(0xba)];this[_0x4fb367(0xde)][_0x4fb367(0xa4)]=_0x213fb1[_0x4fb367(0x99)]>0x0&&!_0x171cd8;}[_0x12af7e(0xc0)](_0x45003d){try{return!!new URL(_0x45003d);}catch{return!0x1;}}}function _0x2854(){const _0x537a2c=['ck-button-icon\x20ck-button-back','ck-labeled-field-view_empty','input','getValue','9tZVinR','clearError','stop','render','focusCycler','div','focus','\x20ck-hidden','refreshBalloon','cancel','ck-ai-chat-context-controls__url-form','_updateConfirmButtonState','AI_CHAT_CONTEXT_URL_PLACEHOLDER','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','10CoeqAH','focusTracker','forEach','confirmButton','fieldView','urlInputField','tab','add','backButton','trim','length','AI_CHAT_CONTEXT_URL_INVALID_ERROR','_setupTemplate','locale','clear','children','keystrokes','_setupEventHandlers','3001864FPdoAX','submit','_createBackButton','isEnabled','ck-button-icon','set','_handleSubmit','250441HtIRqT','esc','725092ShTzGC','submitUrl','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','833836vzzwpy','_createUrlInputField','AI_CHAT_CONTEXT_URL_LABEL','158292MlrBxl','withBackButton','AI_CHAT_CONTEXT_URL_ADD_URL','value','execute','shift+tab','setTemplate','49xvEeEc','fire','112710wSgQso','errorText','change:withBackButton','_focusables','form','setError','element','_isValidUrl','createCollection','_setupKeystrokes','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','ck-ai-chat-context-controls__url-input-section','_createConfirmButton','destroy','listenTo','7270400GzlZzp'];_0x2854=function(){return _0x537a2c;};return _0x2854();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4a93c1=_0x1a92;(function(_0x3c07e2,_0x5ecde6){const _0x5cf571=_0x1a92,_0xa3dd78=_0x3c07e2();while(!![]){try{const _0x5c1933=parseInt(_0x5cf571(0x104))/0x1+-parseInt(_0x5cf571(0x118))/0x2+-parseInt(_0x5cf571(0x132))/0x3+-parseInt(_0x5cf571(0xfb))/0x4+-parseInt(_0x5cf571(0x143))/0x5+parseInt(_0x5cf571(0xe6))/0x6*(-parseInt(_0x5cf571(0x175))/0x7)+parseInt(_0x5cf571(0x121))/0x8;if(_0x5c1933===_0x5ecde6)break;else _0xa3dd78['push'](_0xa3dd78['shift']());}catch(_0x14e92b){_0xa3dd78['push'](_0xa3dd78['shift']());}}}(_0xf2ee,0x48a9d));import{BalloonPanelView as _0x2559bf,ButtonView as _0x2a06ac,clickOutsideHandler as _0x3fdfab,FileDialogButtonView as _0x2423c9,IconView as _0x4b6a74,View as _0x20e510}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x4814d4,IconDocument as _0x17165e,IconDocumentOutline as _0x261a54,IconDropdownArrow as _0x3b63e0,IconLink as _0x138361,IconPaperClip as _0x3a2a65}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x548ab2}from'./aichatcontextitembuttonview.js';function _0x1a92(_0x44a033,_0x38e409){const _0xf2ee8e=_0xf2ee();return _0x1a92=function(_0x1a920a,_0x6d9351){_0x1a920a=_0x1a920a-0xe5;let _0x7b3435=_0xf2ee8e[_0x1a920a];return _0x7b3435;},_0x1a92(_0x44a033,_0x38e409);}import{AIChatContextPanelUrlInputView as _0xe7a58a}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x125372}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x35f9ea}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x2519e8}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x4a93c1(0x177),_0x4a93c1(0xf2),_0x4a93c1(0x12c),_0x4a93c1(0x165),_0x4a93c1(0x10d),_0x4a93c1(0x154),_0x4a93c1(0x136)];function _0xf2ee(){const _0x2e19b6=['isHidden','ck-ai-chat-context-chips-wrapper-balloon','addUrlToContext','bind','setConversationContext','_createBalloonButton','setAddContextOptions','show','807090HQdqSH','add','clearCurrentContextItems','defaultPositions','executeCustomItemCallback','destroy','_handleUrlSubmit','_setAddContextButtonEnabled','setContainerElement','pin','setContextItemLoading','AI_CHAT_CONTEXT_FILE_LABEL','_setBalloonPanelContent','_removeContextFromCollection','length','northArrowSouthEast','enabled','2866020LXhiTc','ck-ai-chat','_createAddContextButtonView','label','_createArrowView','_toggleAddContextBalloon','menuitem','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','body','isEnabled','children','_currentContextsChips','ck-ai-chat-context-controls__add-context-balloon-panel','addContextButtonView','_createResourcesBalloonView','clear','conversation','loadSourceResources','removeContextItemChip','bodyCollection','_conversationContextsChips','customItems','ck-ai-chat-context-controls__balloon-button-source','set','urls','isReadOnly','refreshBalloon','arrowView','customItem','_createAddContextBalloonPanelView','northArrowSouth','_bindEventHandlers','southArrowNorth','type','addResourceToContext','ck-ai-chat-controls-button','hideAddContextBalloonPanel','isVisible','_resourcesBalloonView','southArrowNorthWest','_urlBalloonPanelView','_addContextToCollection','ck-ai-chat-context-controls','fire','hideUrlBalloonPanel','_handleAddContextButtonClick','icon','_showSourceResourcesBalloon','closeSourceResourceBalloon','addContextItem','7WobQwF','cancel','addDocumentToContext','showUrlBalloonPanel','ck-ai-chat-context-controls__pending-contexts','_addContextBalloonPanelView','868314IxEXsA','AI_CHAT_CONTEXT_ADD_CONTEXT','element','_setupUrlBalloonClickOutsideHandler','ck-ai-chat-context-controls__url-balloon-panel','createCollection','buttonView','render','ck-reset_all-excluded','_createContextButton','focus','sources','addFileToContext','_setupTemplate','_createUrlBalloonPanelView','__arrow','isAnyResourceBalloonVisible','balloonView','updateResourceState','_setupAllBalloonClickOutsideHandlers','showSourceResourcesBalloon','1605048lKuUwO','_createBaseBalloonPanel','ck-ai-chat-context-controls__add-context-button','_addContextBalloonConfig','_addUrlContent','files','overflowChips','div','setTemplate','551266rLRHcc','remove','document','ck-ai-chat-context-controls__balloon-button','isOn','ck-ai-chat-controls_context_show-more-button','ck-ai-chat-context-controls__show-more-balloon-panel','tooltip','hide','removeContextItem','_overflowManager','submitUrl','extendTemplate','northArrowSouthWest','closest','isLoading','reorganizeChips','_urlInputView','done','content','64864GYfcNF','_getLimiterElement','searchInputVisibleFrom','find','get','execute','AI_CHAT_CONTEXT_URL_LABEL','populateSourceResourceBalloon','clearConversationContextItems','9336080GfYpwU','showAddContextBalloonPanel','source','locale','withBackButton','southArrowNorthEast','_setupAddContextBalloonClickOutsideHandler','current','_hasExactlyOneSource'];_0xf2ee=function(){return _0x2e19b6;};return _0xf2ee();}const Uo=_0x4a93c1(0x16d),Lo=_0x4a93c1(0x179),No=_0x4a93c1(0x14f),Mo=_0x4a93c1(0xfd),Ho=_0x4a93c1(0xea),jo=_0x4a93c1(0x107),Fo=_0x4a93c1(0x159),Xo=_0x4a93c1(0x166),Do=_0x4a93c1(0x12b),$o=_0x4a93c1(0x109),Wo=_0x4a93c1(0x10a),qo=_0x4a93c1(0x144),zo=[_0x2559bf[_0x4a93c1(0x135)][_0x4a93c1(0x111)],_0x2559bf[_0x4a93c1(0x135)][_0x4a93c1(0x161)],_0x2559bf[_0x4a93c1(0x135)][_0x4a93c1(0x141)],_0x2559bf[_0x4a93c1(0x135)][_0x4a93c1(0x16a)],_0x2559bf[_0x4a93c1(0x135)][_0x4a93c1(0x163)],_0x2559bf[_0x4a93c1(0x135)][_0x4a93c1(0x126)]];export class AIChatContextPanelView extends _0x20e510{[_0x4a93c1(0x150)];[_0x4a93c1(0x14e)]=this[_0x4a93c1(0xeb)]();[_0x4a93c1(0x157)]=this[_0x4a93c1(0xeb)]();[_0x4a93c1(0x10e)];[_0x4a93c1(0xe5)];[_0x4a93c1(0x16b)];[_0x4a93c1(0x115)];[_0x4a93c1(0x169)];[_0x4a93c1(0xfe)];[_0x4a93c1(0x129)]=!0x1;[_0x4a93c1(0x156)];constructor(_0x2e09c6,_0x4e57d2){const _0x3d74dc=_0x4a93c1;super(_0x2e09c6),this[_0x3d74dc(0x156)]=_0x4e57d2[_0x3d74dc(0x156)],this[_0x3d74dc(0x14e)]=this[_0x3d74dc(0xeb)](),this[_0x3d74dc(0x157)]=this[_0x3d74dc(0xeb)](),this[_0x3d74dc(0x150)]=this[_0x3d74dc(0x145)](_0x2e09c6),this[_0x3d74dc(0xe5)]=this[_0x3d74dc(0x160)](_0x2e09c6),this[_0x3d74dc(0x16b)]=this[_0x3d74dc(0xf4)](_0x2e09c6),this[_0x3d74dc(0x169)]=this[_0x3d74dc(0x151)](_0x2e09c6,_0x4e57d2);const _0x4adf84={'cssClasses':{'showMoreButton':$o,'showMoreBalloon':Wo,'overflowContainer':Do,'controlsButton':Xo}};this[_0x3d74dc(0x10e)]=new _0x125372(_0x2e09c6,this[_0x3d74dc(0x14e)],_0x4adf84,this[_0x3d74dc(0x156)],this),this[_0x3d74dc(0xfe)]={'buttonView':this[_0x3d74dc(0x150)],'balloonView':this[_0x3d74dc(0xe5)],'hideMethod':this[_0x3d74dc(0x167)][_0x3d74dc(0x12d)](this),'showMethod':this[_0x3d74dc(0x122)][_0x3d74dc(0x12d)](this)},this[_0x3d74dc(0xf3)](),this[_0x3d74dc(0x162)]();}[_0x4a93c1(0xed)](){const _0x4a15e0=_0x4a93c1;super[_0x4a15e0(0xed)](),this[_0x4a15e0(0xf9)](),this[_0x4a15e0(0x10e)][_0x4a15e0(0x13a)](this[_0x4a15e0(0xe8)]),this[_0x4a15e0(0x10e)][_0x4a15e0(0x114)]();}[_0x4a93c1(0x137)](){const _0x140435=_0x4a93c1;super[_0x140435(0x137)](),this[_0x140435(0x10e)][_0x140435(0x137)](),this[_0x140435(0x169)][_0x140435(0x137)]();}[_0x4a93c1(0x174)](_0x41830d,_0x6e455d){const _0x2f8211=_0x4a93c1,_0x8eac6=this[_0x2f8211(0xef)](_0x41830d,_0x2f8211(0x128),!0x0,_0x6e455d);this[_0x2f8211(0x16c)](_0x8eac6,this[_0x2f8211(0x14e)]),this[_0x2f8211(0x10e)][_0x2f8211(0x114)]();}[_0x4a93c1(0x10d)](_0x1c2369){const _0x396aad=_0x4a93c1;this[_0x396aad(0x13f)](_0x1c2369,this[_0x396aad(0x14e)]),this[_0x396aad(0x13f)](_0x1c2369,this[_0x396aad(0x10e)][_0x396aad(0x101)]),this[_0x396aad(0x10e)][_0x396aad(0x114)]();}[_0x4a93c1(0x13c)](_0x5db16b,_0x1b0485){const _0xa9dc56=_0x4a93c1;let _0xe18b2=this[_0xa9dc56(0x14e)][_0xa9dc56(0x11b)](_0x59be=>_0x59be['id']===_0x5db16b);_0xe18b2||(_0xe18b2=this[_0xa9dc56(0x10e)][_0xa9dc56(0x101)][_0xa9dc56(0x11b)](_0x3aaeb7=>_0x3aaeb7['id']===_0x5db16b)),_0xe18b2&&(_0xe18b2[_0xa9dc56(0x113)]=_0x1b0485);}[_0x4a93c1(0x12e)](_0x571049){const _0x32ebbc=_0x4a93c1;this[_0x32ebbc(0x157)][_0x32ebbc(0x152)]();for(const _0x4ad5a9 of _0x571049){const _0x1e9fb9=this[_0x32ebbc(0xef)](_0x4ad5a9,_0x32ebbc(0x153),!0x1,!0x1);this[_0x32ebbc(0x16c)](_0x1e9fb9,this[_0x32ebbc(0x157)]);}}[_0x4a93c1(0x134)](){const _0x5b9520=_0x4a93c1;this[_0x5b9520(0x14e)][_0x5b9520(0x152)](),this[_0x5b9520(0x10e)][_0x5b9520(0x152)]();}[_0x4a93c1(0x120)](){const _0x53a32b=_0x4a93c1;this[_0x53a32b(0x157)][_0x53a32b(0x152)]();}[_0x4a93c1(0xf8)](_0x4150bc,_0x145b8d,_0x350004){const _0x1b5bfd=_0x4a93c1;this[_0x1b5bfd(0x169)][_0x1b5bfd(0xf8)](_0x4150bc,_0x145b8d,_0x350004);}[_0x4a93c1(0x167)](){const _0x31d035=_0x4a93c1;this[_0x31d035(0x148)](!0x1);}[_0x4a93c1(0x122)](){const _0x541cef=_0x4a93c1;this[_0x541cef(0x148)](!0x0);}[_0x4a93c1(0x16f)](){const _0x29652f=_0x4a93c1;this[_0x29652f(0x16b)][_0x29652f(0x10c)](),this[_0x29652f(0x150)][_0x29652f(0x108)]=!0x1,this[_0x29652f(0x115)]&&this[_0x29652f(0x115)][_0x29652f(0x152)]();}[_0x4a93c1(0x178)](){const _0x1efa7b=_0x4a93c1;this[_0x1efa7b(0x16b)][_0x1efa7b(0x131)](),this[_0x1efa7b(0x150)][_0x1efa7b(0x108)]=!0x0;}[_0x4a93c1(0x172)]({source:_0x55ee76,withBackButton:_0x5f2a34}){const _0x10b8f7=_0x4a93c1;this[_0x10b8f7(0x169)][_0x10b8f7(0xfa)]({'source':_0x55ee76,'withBackButton':_0x5f2a34}),this[_0x10b8f7(0x150)][_0x10b8f7(0x108)]=!0x0;}[_0x4a93c1(0x11f)](_0x3bd84d,_0x2fd149,_0x307b76,_0xf091d6){const _0x3129c0=_0x4a93c1;this[_0x3129c0(0x169)][_0x3129c0(0x11f)](_0x3bd84d,_0x307b76,_0xf091d6);}[_0x4a93c1(0x173)](_0xe764be){const _0x4f63c7=_0x4a93c1;this[_0x4f63c7(0x169)][_0x4f63c7(0x173)](_0xe764be),this[_0x4f63c7(0x150)][_0x4f63c7(0x108)]=!0x1;}[_0x4a93c1(0x130)](_0x50f23d){const _0x24de34=_0x4a93c1;this[_0x24de34(0x13e)](this[_0x24de34(0xe5)],this[_0x24de34(0x124)],_0x50f23d),this[_0x24de34(0x139)](_0x50f23d);}[_0x4a93c1(0x139)](_0xca69df){const _0x1c112e=_0x4a93c1,_0x1be27d=!_0xca69df[_0x1c112e(0x106)][_0x1c112e(0x12a)]&&_0xca69df[_0x1c112e(0x106)][_0x1c112e(0x142)],_0x560662=_0xca69df[_0x1c112e(0x15b)][_0x1c112e(0x142)],_0x50198c=_0xca69df[_0x1c112e(0x100)][_0x1c112e(0x142)],_0x522195=_0xca69df[_0x1c112e(0xf1)][_0x1c112e(0x140)]>0x0,_0x3dec94=_0xca69df[_0x1c112e(0x158)]&&_0xca69df[_0x1c112e(0x158)][_0x1c112e(0x140)]>0x0;this[_0x1c112e(0x150)][_0x1c112e(0x14c)]=_0x1be27d||_0x560662||_0x50198c||_0x522195||_0x3dec94;}[_0x4a93c1(0xf3)](){const _0x3c1fdd=_0x4a93c1;this[_0x3c1fdd(0x103)]({'tag':_0x3c1fdd(0x102),'attributes':{'class':[Uo,_0x3c1fdd(0xee)]},'children':[{'tag':_0x3c1fdd(0x102),'attributes':{'class':Lo},'children':this[_0x3c1fdd(0x14e)]}]});}[_0x4a93c1(0x162)](){const _0x2691fb=_0x4a93c1;this[_0x2691fb(0x150)]['on'](_0x2691fb(0x11d),()=>{const _0x294eb8=_0x2691fb;this[_0x294eb8(0x170)]();});}[_0x4a93c1(0x145)](_0x537e2d){const _0x250940=_0x4a93c1,_0x351147=new _0x2a06ac(_0x537e2d);return _0x351147[_0x250940(0x15a)]({'label':_0x35f9ea(_0x537e2d,_0x250940(0xe7)),'class':Xo+'\x20'+Mo,'icon':_0x3a2a65,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x351147;}[_0x4a93c1(0x160)](_0x143ec9){const _0x5f0905=_0x4a93c1;return this[_0x5f0905(0xfc)](_0x143ec9,No);}[_0x4a93c1(0xf4)](_0x1cc705){const _0x36236b=_0x4a93c1,_0x3a93cf=this[_0x36236b(0xfc)](_0x1cc705,Ho);return this[_0x36236b(0xff)](_0x3a93cf,_0x1cc705),_0x3a93cf;}[_0x4a93c1(0x151)](_0x5ab105,_0x146d14){const _0x2b2af7=_0x4a93c1,_0x5d52d7={'searchInputVisibleFrom':_0x146d14[_0x2b2af7(0x11a)],'onBackToContext':()=>{const _0x55e43d=_0x2b2af7;this[_0x55e43d(0x122)](),this[_0x55e43d(0xe5)][_0x55e43d(0x13b)]({'target':this[_0x55e43d(0x150)][_0x55e43d(0xe8)],'limiter':this[_0x55e43d(0x119)](),'positions':zo});},'onResourceSelected':(_0x3f50ca,_0x4bca1b)=>{const _0x40674b=_0x2b2af7;this[_0x40674b(0x16e)](_0x40674b(0x165),{'source':_0x3f50ca,'resource':_0x4bca1b});},'onLoadSourceResources':_0x1bc083=>{const _0x484934=_0x2b2af7;this[_0x484934(0x16e)](_0x484934(0x154),_0x1bc083);},'onBalloonClosed':()=>{const _0x4e777a=_0x2b2af7;this[_0x4e777a(0x150)][_0x4e777a(0x108)]=!0x1;},'getLimiterElement':()=>this[_0x2b2af7(0x119)](),'getTargetElement':()=>this[_0x2b2af7(0x150)][_0x2b2af7(0xe8)]};return new _0x2519e8(_0x5ab105,_0x146d14[_0x2b2af7(0x156)],_0x5d52d7);}[_0x4a93c1(0x119)](){const _0x1fcf12=_0x4a93c1;return this[_0x1fcf12(0xe8)]?.[_0x1fcf12(0x112)]('.'+qo)||document[_0x1fcf12(0x14b)];}[_0x4a93c1(0xfc)](_0x59d591,_0x34a007){const _0x42ee70=_0x4a93c1,_0x4df33b=new _0x2559bf(_0x59d591);return _0x4df33b[_0x42ee70(0x110)]({'attributes':{'class':_0x34a007}}),this[_0x42ee70(0x156)][_0x42ee70(0x133)](_0x4df33b),_0x4df33b;}[_0x4a93c1(0x13e)](_0x4a8c11,_0x292eed,_0x49d89b){const _0x43ff0e=_0x4a93c1;if(_0x4a8c11[_0x43ff0e(0x117)][_0x43ff0e(0x152)](),!_0x49d89b[_0x43ff0e(0x106)][_0x43ff0e(0x12a)]&&_0x49d89b[_0x43ff0e(0x106)][_0x43ff0e(0x142)]){const _0x3157e0=this[_0x43ff0e(0x12f)](_0x292eed,{'label':_0x35f9ea(_0x292eed,_0x43ff0e(0x14a)),'icon':_0x17165e});_0x3157e0['on'](_0x43ff0e(0x11d),()=>{const _0x52953e=_0x43ff0e;this[_0x52953e(0x16e)](_0x52953e(0x177)),this[_0x52953e(0x167)]();}),_0x4a8c11[_0x43ff0e(0x117)][_0x43ff0e(0x133)](_0x3157e0);}if(_0x49d89b[_0x43ff0e(0x15b)][_0x43ff0e(0x142)]){const _0x2a9905=this[_0x43ff0e(0x12f)](_0x292eed,{'label':_0x35f9ea(_0x292eed,_0x43ff0e(0x11e)),'icon':_0x138361});_0x2a9905['on'](_0x43ff0e(0x11d),()=>{const _0x38a8e5=_0x43ff0e;this[_0x38a8e5(0x167)](),this[_0x38a8e5(0x178)](),this[_0x38a8e5(0x16b)][_0x38a8e5(0x13b)]({'target':this[_0x38a8e5(0x150)][_0x38a8e5(0xe8)],'limiter':this[_0x38a8e5(0x119)](),'positions':zo}),this[_0x38a8e5(0x115)][_0x38a8e5(0xf0)]();}),_0x4a8c11[_0x43ff0e(0x117)][_0x43ff0e(0x133)](_0x2a9905);}if(_0x49d89b[_0x43ff0e(0x100)][_0x43ff0e(0x142)]){const _0x3a0d5c=new _0x2423c9(_0x292eed);_0x3a0d5c[_0x43ff0e(0x15a)]({'label':_0x35f9ea(_0x292eed,_0x43ff0e(0x13d)),'icon':_0x4814d4,'withText':!0x0,'tooltip':!0x0,'class':jo,'allowMultipleFiles':!0x0}),_0x3a0d5c['on'](_0x43ff0e(0x11d),()=>{const _0x109cce=_0x43ff0e;this[_0x109cce(0x167)]();}),_0x3a0d5c['on'](_0x43ff0e(0x116),(_0x1360f1,_0x2514b6)=>{const _0x15bf96=_0x43ff0e;this[_0x15bf96(0x16e)](_0x15bf96(0xf2),_0x2514b6);}),_0x3a0d5c[_0x43ff0e(0x10b)]=!0x0,_0x4a8c11[_0x43ff0e(0x117)][_0x43ff0e(0x133)](_0x3a0d5c);}for(const _0x1adffb of _0x49d89b[_0x43ff0e(0xf1)]){const _0x48eb11=this[_0x43ff0e(0x12f)](_0x292eed,{'label':_0x1adffb[_0x43ff0e(0x146)],'icon':_0x1adffb[_0x43ff0e(0x171)]||_0x261a54,'type':_0x43ff0e(0x123)});_0x4a8c11[_0x43ff0e(0x117)][_0x43ff0e(0x133)](_0x48eb11),_0x48eb11['on'](_0x43ff0e(0x11d),()=>{const _0x1448f8=_0x43ff0e;this[_0x1448f8(0x167)](),this[_0x1448f8(0x172)]({'source':_0x1adffb,'withBackButton':!this[_0x1448f8(0x129)]});});}for(const _0x29983c of _0x49d89b[_0x43ff0e(0x158)]||[]){const _0x557053=this[_0x43ff0e(0x12f)](_0x292eed,{'label':_0x29983c[_0x43ff0e(0x146)],'icon':_0x29983c[_0x43ff0e(0x171)]||_0x261a54,'type':_0x43ff0e(0x15f)});_0x4a8c11[_0x43ff0e(0x117)][_0x43ff0e(0x133)](_0x557053),_0x557053['on'](_0x43ff0e(0x11d),()=>{const _0x1c8944=_0x43ff0e;this[_0x1c8944(0x167)](),this[_0x1c8944(0x16e)](_0x1c8944(0x136),_0x29983c);});}this[_0x43ff0e(0x129)]=0x1===_0x4a8c11[_0x43ff0e(0x117)][_0x43ff0e(0x140)],this[_0x43ff0e(0x115)][_0x43ff0e(0x125)]=!this[_0x43ff0e(0x129)];}[_0x4a93c1(0xff)](_0x10a50f,_0x46c272){const _0x3d2e7b=_0x4a93c1;this[_0x3d2e7b(0x115)]=new _0xe7a58a(_0x46c272),this[_0x3d2e7b(0x115)]['on'](_0x3d2e7b(0x10f),(_0x33c760,_0x149f96)=>{const _0x4a3d84=_0x3d2e7b;this[_0x4a3d84(0x138)](_0x149f96);}),this[_0x3d2e7b(0x115)]['on'](_0x3d2e7b(0x176),()=>{const _0x381c93=_0x3d2e7b;this[_0x381c93(0x16f)](),this[_0x381c93(0x129)]||(this[_0x381c93(0x122)](),this[_0x381c93(0xe5)][_0x381c93(0x13b)]({'target':this[_0x381c93(0x150)][_0x381c93(0xe8)],'limiter':this[_0x381c93(0x119)](),'positions':zo}));}),this[_0x3d2e7b(0x115)]['on'](_0x3d2e7b(0x15d),()=>{const _0x5d4bf4=_0x3d2e7b;this[_0x5d4bf4(0x16b)][_0x5d4bf4(0x168)]&&this[_0x5d4bf4(0x16b)][_0x5d4bf4(0x13b)]({'target':this[_0x5d4bf4(0x150)][_0x5d4bf4(0xe8)],'limiter':this[_0x5d4bf4(0x119)](),'positions':zo});}),_0x10a50f[_0x3d2e7b(0x117)][_0x3d2e7b(0x133)](this[_0x3d2e7b(0x115)]);}[_0x4a93c1(0x12f)](_0x442ca3,_0x98df5d){const _0x201b45=_0x4a93c1,_0x45733d=_0x201b45(0x123)===_0x98df5d[_0x201b45(0x164)]?new SourcesBalloonButtonView(_0x442ca3):new _0x2a06ac(_0x442ca3);return _0x45733d[_0x201b45(0x15a)]({'label':_0x98df5d[_0x201b45(0x146)],'icon':_0x98df5d[_0x201b45(0x171)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':jo}),_0x45733d;}[_0x4a93c1(0xf9)](){const _0x56ea11=_0x4a93c1;this[_0x56ea11(0x127)](),this[_0x56ea11(0xe9)]();}[_0x4a93c1(0xe9)](){const _0x25350a=_0x4a93c1;_0x3fdfab({'emitter':this[_0x25350a(0x16b)],'contextElements':[this[_0x25350a(0x16b)][_0x25350a(0xe8)]],'callback':()=>{const _0x3ebde1=_0x25350a;this[_0x3ebde1(0x16f)]();},'activator':()=>this[_0x25350a(0x16b)][_0x25350a(0x168)]});}[_0x4a93c1(0x148)](_0x4427cc){const _0x2f3ef9=_0x4a93c1,_0x3ec034=this[_0x2f3ef9(0xfe)];_0x3ec034[_0x2f3ef9(0xec)][_0x2f3ef9(0x108)]=_0x4427cc,_0x4427cc?_0x3ec034[_0x2f3ef9(0xf7)][_0x2f3ef9(0x131)]():_0x3ec034[_0x2f3ef9(0xf7)][_0x2f3ef9(0x10c)]();}[_0x4a93c1(0x127)](){const _0x6f05d5=_0x4a93c1,{balloonView:_0x266af8,buttonView:_0x3c5ad3,hideMethod:_0x1412e9}=this[_0x6f05d5(0xfe)];_0x3fdfab({'emitter':_0x266af8,'contextElements':[_0x266af8[_0x6f05d5(0xe8)],_0x3c5ad3[_0x6f05d5(0xe8)]],'callback':()=>{_0x1412e9();},'activator':()=>_0x3c5ad3[_0x6f05d5(0x108)]&&!this[_0x6f05d5(0x16b)][_0x6f05d5(0x168)]&&!this[_0x6f05d5(0x169)][_0x6f05d5(0xf6)]()});}[_0x4a93c1(0xef)](_0x1d6275,_0x912d76,_0x42594b=!0x1,_0x4461a3=!0x1){const _0x14ad67=_0x4a93c1,_0x175601=_0x14ad67(0x153)===_0x912d76||!0x0===_0x1d6275[_0x14ad67(0x15c)],_0x16f299=new _0x548ab2(this[_0x14ad67(0x124)],_0x1d6275,_0x175601,_0x42594b,_0x4461a3);return _0x175601||_0x16f299['on'](_0x14ad67(0x155),()=>{const _0x9e9fc7=_0x14ad67;this[_0x9e9fc7(0x16e)](_0x9e9fc7(0x10d),_0x16f299['id']);}),_0x16f299;}[_0x4a93c1(0x16c)](_0x34dcd3,_0x29b1b6){const _0x3bb47c=_0x4a93c1;_0x29b1b6[_0x3bb47c(0x133)](_0x34dcd3,0x0);}[_0x4a93c1(0x13f)](_0x1b9cc4,_0x41ad2c){const _0x27afe0=_0x4a93c1,_0x394ad8=_0x41ad2c[_0x27afe0(0x11b)](_0x1af29f=>_0x1af29f['id']===_0x1b9cc4);_0x394ad8&&_0x41ad2c[_0x27afe0(0x105)](_0x394ad8);}[_0x4a93c1(0x170)](){const _0x145517=_0x4a93c1;this[_0x145517(0x150)][_0x145517(0x108)]?this[_0x145517(0x167)]():(this[_0x145517(0x122)](),this[_0x145517(0xe5)][_0x145517(0x13b)]({'target':this[_0x145517(0x150)][_0x145517(0xe8)],'limiter':this[_0x145517(0x119)](),'positions':zo}),this[_0x145517(0x129)]&&this[_0x145517(0xe5)][_0x145517(0x117)][_0x145517(0x11c)](0x0)?.[_0x145517(0x16e)](_0x145517(0x11d)));}[_0x4a93c1(0x138)](_0x47782e){const _0x5eaaa4=_0x4a93c1;this[_0x5eaaa4(0x115)][_0x5eaaa4(0x152)](),this[_0x5eaaa4(0x16f)](),this[_0x5eaaa4(0x16e)](_0x5eaaa4(0x12c),_0x47782e);}}export class SourcesBalloonButtonView extends _0x2a06ac{[_0x4a93c1(0x15e)];constructor(_0xabe8c2){const _0x1b2ae8=_0x4a93c1;super(_0xabe8c2),this[_0x1b2ae8(0x15a)]({'withText':!0x0,'role':_0x1b2ae8(0x149)}),this[_0x1b2ae8(0x15e)]=this[_0x1b2ae8(0x147)](),this[_0x1b2ae8(0x110)]({'attributes':{'class':[Fo]}});}[_0x4a93c1(0xed)](){const _0x2248ac=_0x4a93c1;super[_0x2248ac(0xed)](),this[_0x2248ac(0x14d)][_0x2248ac(0x133)](this[_0x2248ac(0x15e)]);}[_0x4a93c1(0x147)](){const _0x27bc3d=_0x4a93c1,_0x5d0f45=new _0x4b6a74();return _0x5d0f45[_0x27bc3d(0x117)]=_0x3b63e0,_0x5d0f45[_0x27bc3d(0x110)]({'attributes':{'class':Fo+_0x27bc3d(0xf5)}}),_0x5d0f45;}}
|
|
23
|
+
const _0x59748d=_0x58c6;function _0x5086(){const _0x44958c=['AI_CHAT_CONTEXT_FILE_LABEL','pin','ck-ai-chat-controls_context_show-more-button','element','done','showSourceResourcesBalloon','isAnyResourceBalloonVisible','_createUrlBalloonPanelView','isReadOnly','fire','updateResourceState','ck-ai-chat-context-controls__add-context-balloon-panel','319896DxIqiH','show','_handleUrlSubmit','ck-ai-chat','addUrlToContext','render','ck-ai-chat-context-controls','_resourcesBalloonView','addContextButtonView','tooltip','ck-ai-chat-context-controls__pending-contexts','southArrowNorthWest','source','_setupAddContextBalloonClickOutsideHandler','get','280695bazWMc','_getLimiterElement','removeContextItemChip','isEnabled','setTemplate','add','_overflowManager','removeContextItem','ck-ai-chat-context-controls__url-balloon-panel','addFileToContext','_setupAllBalloonClickOutsideHandlers','northArrowSouth','_hasExactlyOneSource','find','northArrowSouthEast','length','createCollection','menuitem','hide','extendTemplate','showUrlBalloonPanel','isLoading','_showSourceResourcesBalloon','_handleAddContextButtonClick','setAddContextOptions','12QuCkUY','setContextItemLoading','closeSourceResourceBalloon','isVisible','hideAddContextBalloonPanel','customItem','_currentContextsChips','label','_bindEventHandlers','northArrowSouthWest','ck-ai-chat-context-controls__balloon-button-source','_conversationContextsChips','ck-ai-chat-context-controls__add-context-button','_addContextBalloonConfig','reorganizeChips','_setupTemplate','_setAddContextButtonEnabled','ck-ai-chat-context-controls__balloon-button','document','_createBalloonButton','4tOZoZB','showAddContextBalloonPanel','addDocumentToContext','12615570PBTLon','setContainerElement','refreshBalloon','clear','cancel','_createBaseBalloonPanel','addResourceToContext','2220654uSQKBM','current','__arrow','198lYjItn','_urlInputView','withBackButton','overflowChips','southArrowNorthEast','_setBalloonPanelContent','clearCurrentContextItems','body','content','bind','_createResourcesBalloonView','_addUrlContent','searchInputVisibleFrom','_addContextBalloonPanelView','destroy','6CpYNtr','AI_CHAT_CONTEXT_ADD_CONTEXT','ck-ai-chat-context-controls__show-more-balloon-panel','execute','clearConversationContextItems','children','_addContextToCollection','8108248bPaIhf','southArrowNorth','hideUrlBalloonPanel','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','AI_CHAT_CONTEXT_URL_LABEL','_createArrowView','urls','closest','locale','setConversationContext','_removeContextFromCollection','enabled','focus','_urlBalloonPanelView','buttonView','customItems','defaultPositions','set','_setupUrlBalloonClickOutsideHandler','ck-ai-chat-context-chips-wrapper-balloon','conversation','62366xyMBWc','sources','isOn','9WKMLzL','icon','addContextItem','bodyCollection','_createContextButton','ck-ai-chat-controls-button','type','ck-reset_all-excluded','balloonView','3070739rfPGqM','_toggleAddContextBalloon','remove','isHidden','_createAddContextButtonView','_createAddContextBalloonPanelView','executeCustomItemCallback','submitUrl','files','div','loadSourceResources','populateSourceResourceBalloon','arrowView'];_0x5086=function(){return _0x44958c;};return _0x5086();}(function(_0x1c33f3,_0x500a6f){const _0xf75fd7=_0x58c6,_0x5585d6=_0x1c33f3();while(!![]){try{const _0x598bd9=-parseInt(_0xf75fd7(0x1f8))/0x1+-parseInt(_0xf75fd7(0x1c0))/0x2*(-parseInt(_0xf75fd7(0x1ca))/0x3)+parseInt(_0xf75fd7(0x1ac))/0x4*(-parseInt(_0xf75fd7(0x193))/0x5)+-parseInt(_0xf75fd7(0x1dc))/0x6*(-parseInt(_0xf75fd7(0x16b))/0x7)+-parseInt(_0xf75fd7(0x1e3))/0x8*(-parseInt(_0xf75fd7(0x162))/0x9)+-parseInt(_0xf75fd7(0x1c3))/0xa+parseInt(_0xf75fd7(0x1cd))/0xb*(-parseInt(_0xf75fd7(0x184))/0xc);if(_0x598bd9===_0x500a6f)break;else _0x5585d6['push'](_0x5585d6['shift']());}catch(_0x5909c4){_0x5585d6['push'](_0x5585d6['shift']());}}}(_0x5086,0xea7cc));import{BalloonPanelView as _0xb11eb8,ButtonView as _0x472432,clickOutsideHandler as _0x413bd1,FileDialogButtonView as _0x22554e,IconView as _0x16b6bc,View as _0x55bd1d}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x2fc908,IconDocument as _0x5bc856,IconDocumentOutline as _0x29b33d,IconDropdownArrow as _0x293270,IconLink as _0x1829b8,IconPaperClip as _0x5f2a49}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x2657df}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x58579e}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x162730}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x37e344}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x2dd124}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x59748d(0x1c2),_0x59748d(0x19c),_0x59748d(0x188),_0x59748d(0x1c9),_0x59748d(0x19a),_0x59748d(0x175),_0x59748d(0x171)];function _0x58c6(_0x141cf4,_0x20e939){const _0x5086c5=_0x5086();return _0x58c6=function(_0x58c63c,_0x206431){_0x58c63c=_0x58c63c-0x161;let _0x117ba3=_0x5086c5[_0x58c63c];return _0x117ba3;},_0x58c6(_0x141cf4,_0x20e939);}const Ro=_0x59748d(0x18a),Oo=_0x59748d(0x18e),Uo=_0x59748d(0x183),Lo=_0x59748d(0x1b8),No=_0x59748d(0x19b),Mo=_0x59748d(0x1bd),Ho=_0x59748d(0x1b6),jo=_0x59748d(0x167),Fo=_0x59748d(0x1f6),Xo=_0x59748d(0x17a),yo=_0x59748d(0x1de),Do=_0x59748d(0x187),$o=[_0xb11eb8[_0x59748d(0x1f3)][_0x59748d(0x1b5)],_0xb11eb8[_0x59748d(0x1f3)][_0x59748d(0x19e)],_0xb11eb8[_0x59748d(0x1f3)][_0x59748d(0x1a1)],_0xb11eb8[_0x59748d(0x1f3)][_0x59748d(0x18f)],_0xb11eb8[_0x59748d(0x1f3)][_0x59748d(0x1e4)],_0xb11eb8[_0x59748d(0x1f3)][_0x59748d(0x1d1)]];export class AIChatContextPanelView extends _0x55bd1d{[_0x59748d(0x18c)];[_0x59748d(0x1b2)]=this[_0x59748d(0x1a3)]();[_0x59748d(0x1b7)]=this[_0x59748d(0x1a3)]();[_0x59748d(0x199)];[_0x59748d(0x1da)];[_0x59748d(0x1f0)];[_0x59748d(0x1ce)];[_0x59748d(0x18b)];[_0x59748d(0x1b9)];[_0x59748d(0x19f)]=!0x1;[_0x59748d(0x165)];constructor(_0x1d94f2,_0x503fe7){const _0x48099e=_0x59748d;super(_0x1d94f2),this[_0x48099e(0x165)]=_0x503fe7[_0x48099e(0x165)],this[_0x48099e(0x1b2)]=this[_0x48099e(0x1a3)](),this[_0x48099e(0x1b7)]=this[_0x48099e(0x1a3)](),this[_0x48099e(0x18c)]=this[_0x48099e(0x16f)](_0x1d94f2),this[_0x48099e(0x1da)]=this[_0x48099e(0x170)](_0x1d94f2),this[_0x48099e(0x1f0)]=this[_0x48099e(0x17f)](_0x1d94f2),this[_0x48099e(0x18b)]=this[_0x48099e(0x1d7)](_0x1d94f2,_0x503fe7);const _0xeccae1={'cssClasses':{'showMoreButton':Xo,'showMoreBalloon':yo,'overflowContainer':Fo,'controlsButton':jo}};this[_0x48099e(0x199)]=new _0x162730(_0x1d94f2,this[_0x48099e(0x1b2)],_0xeccae1,this[_0x48099e(0x165)],this),this[_0x48099e(0x1b9)]={'buttonView':this[_0x48099e(0x18c)],'balloonView':this[_0x48099e(0x1da)],'hideMethod':this[_0x48099e(0x1b0)][_0x48099e(0x1d6)](this),'showMethod':this[_0x48099e(0x1c1)][_0x48099e(0x1d6)](this)},this[_0x48099e(0x1bb)](),this[_0x48099e(0x1b4)]();}[_0x59748d(0x189)](){const _0x38b249=_0x59748d;super[_0x38b249(0x189)](),this[_0x38b249(0x19d)](),this[_0x38b249(0x199)][_0x38b249(0x1c4)](this[_0x38b249(0x17b)]),this[_0x38b249(0x199)][_0x38b249(0x1ba)]();}[_0x59748d(0x1db)](){const _0x453307=_0x59748d;super[_0x453307(0x1db)](),this[_0x453307(0x199)][_0x453307(0x1db)](),this[_0x453307(0x18b)][_0x453307(0x1db)]();}[_0x59748d(0x164)](_0x3a383e,_0x45f6ca){const _0x3a5927=_0x59748d,_0x3e4d3c=this[_0x3a5927(0x166)](_0x3a383e,_0x3a5927(0x1cb),!0x0,_0x45f6ca);this[_0x3a5927(0x1e2)](_0x3e4d3c,this[_0x3a5927(0x1b2)]),this[_0x3a5927(0x199)][_0x3a5927(0x1ba)]();}[_0x59748d(0x19a)](_0x279ae3){const _0x2767c8=_0x59748d;this[_0x2767c8(0x1ed)](_0x279ae3,this[_0x2767c8(0x1b2)]),this[_0x2767c8(0x1ed)](_0x279ae3,this[_0x2767c8(0x199)][_0x2767c8(0x1d0)]),this[_0x2767c8(0x199)][_0x2767c8(0x1ba)]();}[_0x59748d(0x1ad)](_0x5970e0,_0x5117b9){const _0x27d16b=_0x59748d;let _0x262579=this[_0x27d16b(0x1b2)][_0x27d16b(0x1a0)](_0xb91982=>_0xb91982['id']===_0x5970e0);_0x262579||(_0x262579=this[_0x27d16b(0x199)][_0x27d16b(0x1d0)][_0x27d16b(0x1a0)](_0x22e4d8=>_0x22e4d8['id']===_0x5970e0)),_0x262579&&(_0x262579[_0x27d16b(0x1a8)]=_0x5117b9);}[_0x59748d(0x1ec)](_0x582e72){const _0x1d1641=_0x59748d;this[_0x1d1641(0x1b7)][_0x1d1641(0x1c6)]();for(const _0x17cdb6 of _0x582e72){const _0xaed873=this[_0x1d1641(0x166)](_0x17cdb6,_0x1d1641(0x1f7),!0x1,!0x1);this[_0x1d1641(0x1e2)](_0xaed873,this[_0x1d1641(0x1b7)]);}}[_0x59748d(0x1d3)](){const _0x1f6a84=_0x59748d;this[_0x1f6a84(0x1b2)][_0x1f6a84(0x1c6)](),this[_0x1f6a84(0x199)][_0x1f6a84(0x1c6)]();}[_0x59748d(0x1e0)](){const _0x5079fb=_0x59748d;this[_0x5079fb(0x1b7)][_0x5079fb(0x1c6)]();}[_0x59748d(0x182)](_0x1269d4,_0x3f77a2,_0x8abd08){const _0x27188a=_0x59748d;this[_0x27188a(0x18b)][_0x27188a(0x182)](_0x1269d4,_0x3f77a2,_0x8abd08);}[_0x59748d(0x1b0)](){const _0x34b710=_0x59748d;this[_0x34b710(0x16c)](!0x1);}[_0x59748d(0x1c1)](){const _0xe98020=_0x59748d;this[_0xe98020(0x16c)](!0x0);}[_0x59748d(0x1e5)](){const _0x5b366c=_0x59748d;this[_0x5b366c(0x1f0)][_0x5b366c(0x1a5)](),this[_0x5b366c(0x18c)][_0x5b366c(0x161)]=!0x1,this[_0x5b366c(0x1ce)]&&this[_0x5b366c(0x1ce)][_0x5b366c(0x1c6)]();}[_0x59748d(0x1a7)](){const _0x5a8691=_0x59748d;this[_0x5a8691(0x1f0)][_0x5a8691(0x185)](),this[_0x5a8691(0x18c)][_0x5a8691(0x161)]=!0x0;}[_0x59748d(0x1a9)]({source:_0x672d7e,withBackButton:_0x52ac00}){const _0x132ac5=_0x59748d;this[_0x132ac5(0x18b)][_0x132ac5(0x17d)]({'source':_0x672d7e,'withBackButton':_0x52ac00}),this[_0x132ac5(0x18c)][_0x132ac5(0x161)]=!0x0;}[_0x59748d(0x176)](_0x5dc8a8,_0x45394f,_0xbf4715,_0x72d5a3){const _0x5268e3=_0x59748d;this[_0x5268e3(0x18b)][_0x5268e3(0x176)](_0x5dc8a8,_0xbf4715,_0x72d5a3);}[_0x59748d(0x1ae)](_0x19b827){const _0x1ff1a6=_0x59748d;this[_0x1ff1a6(0x18b)][_0x1ff1a6(0x1ae)](_0x19b827),this[_0x1ff1a6(0x18c)][_0x1ff1a6(0x161)]=!0x1;}[_0x59748d(0x1ab)](_0x19e96a){const _0x2a00c9=_0x59748d;this[_0x2a00c9(0x1d2)](this[_0x2a00c9(0x1da)],this[_0x2a00c9(0x1eb)],_0x19e96a),this[_0x2a00c9(0x1bc)](_0x19e96a);}[_0x59748d(0x1bc)](_0x28fee5){const _0x2bc13f=_0x59748d,_0x41c75b=!_0x28fee5[_0x2bc13f(0x1be)][_0x2bc13f(0x16e)]&&_0x28fee5[_0x2bc13f(0x1be)][_0x2bc13f(0x1ee)],_0x324160=_0x28fee5[_0x2bc13f(0x1e9)][_0x2bc13f(0x1ee)],_0x265d76=_0x28fee5[_0x2bc13f(0x173)][_0x2bc13f(0x1ee)],_0x3887ef=_0x28fee5[_0x2bc13f(0x1f9)][_0x2bc13f(0x1a2)]>0x0,_0x3d4f4f=_0x28fee5[_0x2bc13f(0x1f2)]&&_0x28fee5[_0x2bc13f(0x1f2)][_0x2bc13f(0x1a2)]>0x0;this[_0x2bc13f(0x18c)][_0x2bc13f(0x196)]=_0x41c75b||_0x324160||_0x265d76||_0x3887ef||_0x3d4f4f;}[_0x59748d(0x1bb)](){const _0x195807=_0x59748d;this[_0x195807(0x197)]({'tag':_0x195807(0x174),'attributes':{'class':[Ro,_0x195807(0x169)]},'children':[{'tag':_0x195807(0x174),'attributes':{'class':Oo},'children':this[_0x195807(0x1b2)]}]});}[_0x59748d(0x1b4)](){const _0x2f11da=_0x59748d;this[_0x2f11da(0x18c)]['on'](_0x2f11da(0x1df),()=>{const _0x3ef375=_0x2f11da;this[_0x3ef375(0x1aa)]();});}[_0x59748d(0x16f)](_0x2335ba){const _0xd6a9aa=_0x59748d,_0x532918=new _0x472432(_0x2335ba);return _0x532918[_0xd6a9aa(0x1f4)]({'label':_0x37e344(_0x2335ba,_0xd6a9aa(0x1dd)),'class':jo+'\x20'+Lo,'icon':_0x5f2a49,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x532918;}[_0x59748d(0x170)](_0xb3d03f){const _0x4ab3f3=_0x59748d;return this[_0x4ab3f3(0x1c8)](_0xb3d03f,Uo);}[_0x59748d(0x17f)](_0x5a0903){const _0x267fdd=_0x59748d,_0x2ef296=this[_0x267fdd(0x1c8)](_0x5a0903,No);return this[_0x267fdd(0x1d8)](_0x2ef296,_0x5a0903),_0x2ef296;}[_0x59748d(0x1d7)](_0x1c9042,_0x51ce0e){const _0x6197b4=_0x59748d,_0x4c589f={'searchInputVisibleFrom':_0x51ce0e[_0x6197b4(0x1d9)],'onBackToContext':()=>{const _0x118d7d=_0x6197b4;this[_0x118d7d(0x1c1)](),this[_0x118d7d(0x1da)][_0x118d7d(0x179)]({'target':this[_0x118d7d(0x18c)][_0x118d7d(0x17b)],'limiter':this[_0x118d7d(0x194)](),'positions':$o});},'onResourceSelected':(_0x4dd6e8,_0x199796)=>{const _0xafa920=_0x6197b4;this[_0xafa920(0x181)](_0xafa920(0x1c9),{'source':_0x4dd6e8,'resource':_0x199796});},'onLoadSourceResources':_0x13b0e8=>{const _0x2fd4b5=_0x6197b4;this[_0x2fd4b5(0x181)](_0x2fd4b5(0x175),_0x13b0e8);},'onBalloonClosed':()=>{const _0x2169ce=_0x6197b4;this[_0x2169ce(0x18c)][_0x2169ce(0x161)]=!0x1;},'getLimiterElement':()=>this[_0x6197b4(0x194)](),'getTargetElement':()=>this[_0x6197b4(0x18c)][_0x6197b4(0x17b)]};return new _0x2dd124(_0x1c9042,_0x51ce0e[_0x6197b4(0x165)],_0x4c589f);}[_0x59748d(0x194)](){const _0x33ad09=_0x59748d;return this[_0x33ad09(0x17b)]?.[_0x33ad09(0x1ea)]('.'+Do)||document[_0x33ad09(0x1d4)];}[_0x59748d(0x1c8)](_0x259534,_0x31ac78){const _0x2bbdfd=_0x59748d,_0x2b073e=new _0xb11eb8(_0x259534);return _0x2b073e[_0x2bbdfd(0x1a6)]({'attributes':{'class':_0x31ac78}}),this[_0x2bbdfd(0x165)][_0x2bbdfd(0x198)](_0x2b073e),_0x2b073e;}[_0x59748d(0x1d2)](_0x55a1d3,_0x4d6f42,_0x19d67d){const _0x542afc=_0x59748d;if(_0x55a1d3[_0x542afc(0x1d5)][_0x542afc(0x1c6)](),!_0x19d67d[_0x542afc(0x1be)][_0x542afc(0x16e)]&&_0x19d67d[_0x542afc(0x1be)][_0x542afc(0x1ee)]){const _0xc28543=this[_0x542afc(0x1bf)](_0x4d6f42,{'label':_0x37e344(_0x4d6f42,_0x542afc(0x1e6)),'icon':_0x5bc856});_0xc28543['on'](_0x542afc(0x1df),()=>{const _0x439317=_0x542afc;this[_0x439317(0x181)](_0x439317(0x1c2)),this[_0x439317(0x1b0)]();}),_0x55a1d3[_0x542afc(0x1d5)][_0x542afc(0x198)](_0xc28543);}if(_0x19d67d[_0x542afc(0x1e9)][_0x542afc(0x1ee)]){const _0x5b7e12=this[_0x542afc(0x1bf)](_0x4d6f42,{'label':_0x37e344(_0x4d6f42,_0x542afc(0x1e7)),'icon':_0x1829b8});_0x5b7e12['on'](_0x542afc(0x1df),()=>{const _0x34fd0f=_0x542afc;this[_0x34fd0f(0x1b0)](),this[_0x34fd0f(0x1a7)](),this[_0x34fd0f(0x1f0)][_0x34fd0f(0x179)]({'target':this[_0x34fd0f(0x18c)][_0x34fd0f(0x17b)],'limiter':this[_0x34fd0f(0x194)](),'positions':$o}),this[_0x34fd0f(0x1ce)][_0x34fd0f(0x1ef)]();}),_0x55a1d3[_0x542afc(0x1d5)][_0x542afc(0x198)](_0x5b7e12);}if(_0x19d67d[_0x542afc(0x173)][_0x542afc(0x1ee)]){const _0x3ac099=new _0x22554e(_0x4d6f42);_0x3ac099[_0x542afc(0x1f4)]({'label':_0x37e344(_0x4d6f42,_0x542afc(0x178)),'icon':_0x2fc908,'withText':!0x0,'tooltip':!0x0,'class':Mo,'allowMultipleFiles':!0x0}),_0x3ac099['on'](_0x542afc(0x1df),()=>{const _0x16aa60=_0x542afc;this[_0x16aa60(0x1b0)]();}),_0x3ac099['on'](_0x542afc(0x17c),(_0x43a50d,_0x152b13)=>{const _0x791086=_0x542afc;this[_0x791086(0x181)](_0x791086(0x19c),_0x152b13);}),_0x3ac099[_0x542afc(0x18d)]=!0x0,_0x55a1d3[_0x542afc(0x1d5)][_0x542afc(0x198)](_0x3ac099);}for(const _0x405c55 of _0x19d67d[_0x542afc(0x1f9)]){const _0x1ac404=this[_0x542afc(0x1bf)](_0x4d6f42,{'label':_0x405c55[_0x542afc(0x1b3)],'icon':_0x405c55[_0x542afc(0x163)]||_0x29b33d,'type':_0x542afc(0x190)});_0x55a1d3[_0x542afc(0x1d5)][_0x542afc(0x198)](_0x1ac404),_0x1ac404['on'](_0x542afc(0x1df),()=>{const _0x479bff=_0x542afc;this[_0x479bff(0x1b0)](),this[_0x479bff(0x1a9)]({'source':_0x405c55,'withBackButton':!this[_0x479bff(0x19f)]});});}for(const _0x57188e of _0x19d67d[_0x542afc(0x1f2)]||[]){const _0x3e47d1=this[_0x542afc(0x1bf)](_0x4d6f42,{'label':_0x57188e[_0x542afc(0x1b3)],'icon':_0x57188e[_0x542afc(0x163)]||_0x29b33d,'type':_0x542afc(0x1b1)});_0x55a1d3[_0x542afc(0x1d5)][_0x542afc(0x198)](_0x3e47d1),_0x3e47d1['on'](_0x542afc(0x1df),()=>{const _0xab4637=_0x542afc;this[_0xab4637(0x1b0)](),this[_0xab4637(0x181)](_0xab4637(0x171),_0x57188e);});}this[_0x542afc(0x19f)]=0x1===_0x55a1d3[_0x542afc(0x1d5)][_0x542afc(0x1a2)],this[_0x542afc(0x1ce)][_0x542afc(0x1cf)]=!this[_0x542afc(0x19f)];}[_0x59748d(0x1d8)](_0x5ed389,_0x48eb0a){const _0x483e92=_0x59748d;this[_0x483e92(0x1ce)]=new _0x58579e(_0x48eb0a),this[_0x483e92(0x1ce)]['on'](_0x483e92(0x172),(_0xa69432,_0x34e7c6)=>{const _0x4520e4=_0x483e92;this[_0x4520e4(0x186)](_0x34e7c6);}),this[_0x483e92(0x1ce)]['on'](_0x483e92(0x1c7),()=>{const _0x597be3=_0x483e92;this[_0x597be3(0x1e5)](),this[_0x597be3(0x19f)]||(this[_0x597be3(0x1c1)](),this[_0x597be3(0x1da)][_0x597be3(0x179)]({'target':this[_0x597be3(0x18c)][_0x597be3(0x17b)],'limiter':this[_0x597be3(0x194)](),'positions':$o}));}),this[_0x483e92(0x1ce)]['on'](_0x483e92(0x1c5),()=>{const _0x29ef63=_0x483e92;this[_0x29ef63(0x1f0)][_0x29ef63(0x1af)]&&this[_0x29ef63(0x1f0)][_0x29ef63(0x179)]({'target':this[_0x29ef63(0x18c)][_0x29ef63(0x17b)],'limiter':this[_0x29ef63(0x194)](),'positions':$o});}),_0x5ed389[_0x483e92(0x1d5)][_0x483e92(0x198)](this[_0x483e92(0x1ce)]);}[_0x59748d(0x1bf)](_0x5de837,_0x24cfc1){const _0x56d414=_0x59748d,_0x34acf1=_0x56d414(0x190)===_0x24cfc1[_0x56d414(0x168)]?new SourcesBalloonButtonView(_0x5de837):new _0x472432(_0x5de837);return _0x34acf1[_0x56d414(0x1f4)]({'label':_0x24cfc1[_0x56d414(0x1b3)],'icon':_0x24cfc1[_0x56d414(0x163)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Mo}),_0x34acf1;}[_0x59748d(0x19d)](){const _0x4e5f84=_0x59748d;this[_0x4e5f84(0x191)](),this[_0x4e5f84(0x1f5)]();}[_0x59748d(0x1f5)](){const _0x3acc7f=_0x59748d;_0x413bd1({'emitter':this[_0x3acc7f(0x1f0)],'contextElements':[this[_0x3acc7f(0x1f0)][_0x3acc7f(0x17b)]],'callback':()=>{const _0xf56ac9=_0x3acc7f;this[_0xf56ac9(0x1e5)]();},'activator':()=>this[_0x3acc7f(0x1f0)][_0x3acc7f(0x1af)]});}[_0x59748d(0x16c)](_0x51e617){const _0x561a7e=_0x59748d,_0x5dfe04=this[_0x561a7e(0x1b9)];_0x5dfe04[_0x561a7e(0x1f1)][_0x561a7e(0x161)]=_0x51e617,_0x51e617?_0x5dfe04[_0x561a7e(0x16a)][_0x561a7e(0x185)]():_0x5dfe04[_0x561a7e(0x16a)][_0x561a7e(0x1a5)]();}[_0x59748d(0x191)](){const _0x3d805d=_0x59748d,{balloonView:_0x39ab54,buttonView:_0x395e06,hideMethod:_0x4e5f35}=this[_0x3d805d(0x1b9)];_0x413bd1({'emitter':_0x39ab54,'contextElements':[_0x39ab54[_0x3d805d(0x17b)],_0x395e06[_0x3d805d(0x17b)]],'callback':()=>{_0x4e5f35();},'activator':()=>_0x395e06[_0x3d805d(0x161)]&&!this[_0x3d805d(0x1f0)][_0x3d805d(0x1af)]&&!this[_0x3d805d(0x18b)][_0x3d805d(0x17e)]()});}[_0x59748d(0x166)](_0x27f2dc,_0x2fa1af,_0x1091b0=!0x1,_0x2c3f9e=!0x1){const _0x5b4359=_0x59748d,_0x418dd3=_0x5b4359(0x1f7)===_0x2fa1af||!0x0===_0x27f2dc[_0x5b4359(0x180)],_0x15c3ee=new _0x2657df(this[_0x5b4359(0x1eb)],_0x27f2dc,_0x418dd3,_0x1091b0,_0x2c3f9e);return _0x418dd3||_0x15c3ee['on'](_0x5b4359(0x195),()=>{const _0x125151=_0x5b4359;this[_0x125151(0x181)](_0x125151(0x19a),_0x15c3ee['id']);}),_0x15c3ee;}[_0x59748d(0x1e2)](_0x1885a4,_0x8dbd19){const _0x15fce4=_0x59748d;_0x8dbd19[_0x15fce4(0x198)](_0x1885a4,0x0);}[_0x59748d(0x1ed)](_0x20e495,_0x527a7b){const _0x491c35=_0x59748d,_0x30e67a=_0x527a7b[_0x491c35(0x1a0)](_0x342b07=>_0x342b07['id']===_0x20e495);_0x30e67a&&_0x527a7b[_0x491c35(0x16d)](_0x30e67a);}[_0x59748d(0x1aa)](){const _0x405878=_0x59748d;this[_0x405878(0x18c)][_0x405878(0x161)]?this[_0x405878(0x1b0)]():(this[_0x405878(0x1c1)](),this[_0x405878(0x1da)][_0x405878(0x179)]({'target':this[_0x405878(0x18c)][_0x405878(0x17b)],'limiter':this[_0x405878(0x194)](),'positions':$o}),this[_0x405878(0x19f)]&&this[_0x405878(0x1da)][_0x405878(0x1d5)][_0x405878(0x192)](0x0)?.[_0x405878(0x181)](_0x405878(0x1df)));}[_0x59748d(0x186)](_0x381460){const _0x4ba9b8=_0x59748d;this[_0x4ba9b8(0x1ce)][_0x4ba9b8(0x1c6)](),this[_0x4ba9b8(0x1e5)](),this[_0x4ba9b8(0x181)](_0x4ba9b8(0x188),_0x381460);}}export class SourcesBalloonButtonView extends _0x472432{[_0x59748d(0x177)];constructor(_0x4955b3){const _0x3c2187=_0x59748d;super(_0x4955b3),this[_0x3c2187(0x1f4)]({'withText':!0x0,'role':_0x3c2187(0x1a4)}),this[_0x3c2187(0x177)]=this[_0x3c2187(0x1e8)](),this[_0x3c2187(0x1a6)]({'attributes':{'class':[Ho]}});}[_0x59748d(0x189)](){const _0x360822=_0x59748d;super[_0x360822(0x189)](),this[_0x360822(0x1e1)][_0x360822(0x198)](this[_0x360822(0x177)]);}[_0x59748d(0x1e8)](){const _0x28774c=_0x59748d,_0x4865b0=new _0x16b6bc();return _0x4865b0[_0x28774c(0x1d5)]=_0x293270,_0x4865b0[_0x28774c(0x1a6)]({'attributes':{'class':Ho+_0x28774c(0x1cc)}}),_0x4865b0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x129bc9=_0x3293;function _0x5b2e(){const _0x587a8d=['ck-ai-chat-controls-loader','fire','set','AI_CHAT_IS_WRITING','976uwuprF','ck-reset_all','locale','3yZvdcv','ck-ai-chat-controls-loader-wrapper','setTemplate','48soYGYD','_loaderView','div','1974765QKFrJP','abortPromptStream','_cancelButtonView','ck-ai-chat-controls-loader-icon','_createCancelButtonView','10bhWNJy','ck-ai-button-secondary\x20ck-ai-button-stop-generating','4254943mEmKpo','5311428iziGKu','AI_CHAT_STOP_GENERATING','1056069qYKNys','execute','44821GKOPhb','1247452VlSYUB','ck-ai-chat-controls-loader-icon-dot','10036qQJiyV','_createLoaderView'];_0x5b2e=function(){return _0x587a8d;};return _0x5b2e();}(function(_0x58bd0d,_0x5ddb0b){const _0x5dfb7d=_0x3293,_0x3bbf03=_0x58bd0d();while(!![]){try{const _0x27aa17=parseInt(_0x5dfb7d(0x105))/0x1*(parseInt(_0x5dfb7d(0x117))/0x2)+-parseInt(_0x5dfb7d(0x102))/0x3*(-parseInt(_0x5dfb7d(0x115))/0x4)+parseInt(_0x5dfb7d(0x108))/0x5+parseInt(_0x5dfb7d(0x110))/0x6+parseInt(_0x5dfb7d(0x114))/0x7*(-parseInt(_0x5dfb7d(0x11d))/0x8)+parseInt(_0x5dfb7d(0x112))/0x9*(-parseInt(_0x5dfb7d(0x10d))/0xa)+-parseInt(_0x5dfb7d(0x10f))/0xb;if(_0x27aa17===_0x5ddb0b)break;else _0x3bbf03['push'](_0x3bbf03['shift']());}catch(_0x54abcd){_0x3bbf03['push'](_0x3bbf03['shift']());}}}(_0x5b2e,0x85b0e));import{ButtonView as _0x45c209,View as _0x5ac9d7}from'ckeditor5/src/ui.js';function _0x3293(_0x30b2e0,_0x3b167a){const _0x5b2e97=_0x5b2e();return _0x3293=function(_0x3293bb,_0x210fdb){_0x3293bb=_0x3293bb-0x102;let _0x7d6b64=_0x5b2e97[_0x3293bb];return _0x7d6b64;},_0x3293(_0x30b2e0,_0x3b167a);}import{IconStop as _0x5e7562}from'ckeditor5/src/icons.js';import{getTranslation as _0x39ae1f}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x5ac9d7{[_0x129bc9(0x10a)];[_0x129bc9(0x106)];constructor(_0x4c3e38){const _0x224583=_0x129bc9;super(_0x4c3e38),this[_0x224583(0x10a)]=this[_0x224583(0x10c)](),this[_0x224583(0x106)]=this[_0x224583(0x118)](),this[_0x224583(0x104)]({'tag':_0x224583(0x107),'attributes':{'class':['ck',_0x224583(0x103),_0x224583(0x11e)]},'children':[this[_0x224583(0x106)],this[_0x224583(0x10a)]]});}[_0x129bc9(0x10c)](){const _0x2eed92=_0x129bc9,_0x347edb=new _0x45c209(this[_0x2eed92(0x11f)]);return _0x347edb[_0x2eed92(0x11b)]({'label':_0x39ae1f(this[_0x2eed92(0x11f)],_0x2eed92(0x111)),'withText':!0x0,'class':_0x2eed92(0x10e),'icon':_0x5e7562}),_0x347edb['on'](_0x2eed92(0x113),()=>{const _0x297d18=_0x2eed92;this[_0x297d18(0x11a)](_0x297d18(0x109));}),_0x347edb;}[_0x129bc9(0x118)](){const _0x4b2e31=_0x129bc9,_0x2b9d24=new _0x5ac9d7(this[_0x4b2e31(0x11f)]);return _0x2b9d24[_0x4b2e31(0x104)]({'tag':_0x4b2e31(0x107),'attributes':{'class':[_0x4b2e31(0x119)]},'children':[{'tag':_0x4b2e31(0x107),'attributes':{'class':[_0x4b2e31(0x10b)]},'children':[{'tag':_0x4b2e31(0x107),'attributes':{'class':[_0x4b2e31(0x116)]}},{'tag':_0x4b2e31(0x107),'attributes':{'class':[_0x4b2e31(0x116)]}},{'tag':_0x4b2e31(0x107),'attributes':{'class':[_0x4b2e31(0x116)]}}]},{'text':_0x39ae1f(this[_0x4b2e31(0x11f)],_0x4b2e31(0x11c))}]}),_0x2b9d24;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x57a0e7=_0x2998;(function(_0x16c105,_0xc668f1){const _0x4fcd6f=_0x2998,_0x270397=_0x16c105();while(!![]){try{const _0x3a78af=parseInt(_0x4fcd6f(0x15c))/0x1*(parseInt(_0x4fcd6f(0x143))/0x2)+-parseInt(_0x4fcd6f(0x11d))/0x3+parseInt(_0x4fcd6f(0x161))/0x4*(parseInt(_0x4fcd6f(0x150))/0x5)+parseInt(_0x4fcd6f(0x140))/0x6*(parseInt(_0x4fcd6f(0x126))/0x7)+-parseInt(_0x4fcd6f(0x17b))/0x8*(parseInt(_0x4fcd6f(0x131))/0x9)+-parseInt(_0x4fcd6f(0x14c))/0xa+-parseInt(_0x4fcd6f(0x163))/0xb*(-parseInt(_0x4fcd6f(0x169))/0xc);if(_0x3a78af===_0xc668f1)break;else _0x270397['push'](_0x270397['shift']());}catch(_0xe222ac){_0x270397['push'](_0x270397['shift']());}}}(_0x5852,0x20bef));import{Collection as _0x4ebc23}from'ckeditor5/src/utils.js';import{IconAI as _0x393d86,IconBulb as _0x18ad37,IconWeb as _0x3a4867}from'@ckeditor/ckeditor5-icons';function _0x5852(){const _0x3940da=['set','1491090XZLbLS','model','_commandsButton','_modelNameView','135AQhSMm','webSearchActive','AI_CHAT_COMMANDS','_createCommandsButton','listenTo','_createReasoningButton','bindTemplate','ck-hidden','reasoning','toggleWebSearch','label','name','42IyCaTy','selector','selectModel','setWebSearch','Commands\x20are\x20not\x20implemented\x20yet.','316jOHnSC','source','184228idFeBL','setTemplate','modelSelectorEnabled','content','activeModelId','ck-ai-chat-controls__model-selection__item-capabilities','192emyscG','locale','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','activeModelName','webSearch','addMany','AI_CHAT_SEARCH_WEB','capabilities','AI_CHAT_ENABLE_WEB_SEARCH','style','execute','_reasoningButton','ck-ai-chat-controls__model-selection__item-name','enabled','AI_CHAT_DISABLE_REASONING','ck-ai-chat-controls-button--commands','add','enableModelSelector','1688JBoNcl','_createModelNameView','length','_createModelSelectionDropdown','button','description','629721DrLQCM','setModel','fire','ck-ai-button-tertiary','_createWebSearchButton','ck-ai-chat__prompt-capabilities','span','createCollection','tooltip','7yQSVOZ','AI_CHAT_DISABLE_WEB_SEARCH','ck-ai-chat-controls__model-selection','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','AI_CHAT_CAPABILITIES_NO','toggleReasoning','reasoningActive','setModelList','_getCapabilityParts','bind','ck-button__label','981qbTDgB','menuitemradio','isOn','hidden','AI_CHAT_CAPABILITIES_YES','extendTemplate','disableModelSelector','isVisible','_modelSelectionDropdownItems','AI_CHAT_ENABLE_REASONING','ck-ai-chat-controls-button','modelDisplayMode','setReasoning','_webSearchButton','div','1455834flkRpm','log','ck-ai-chat-controls__model-name','162cTPcxD','_modelSelectionDropdown','clear','buttonView','AI_CHAT_REASONING','isEnabled','ck-ai-chat-controls__model-selection__item-description','text'];_0x5852=function(){return _0x3940da;};return _0x5852();}import{addListToDropdown as _0x3d06fe,ButtonLabelView as _0x27060e,ButtonView as _0xa153a2,createDropdown as _0x5b1368,IconView as _0x2bef33,UIModel as _0x20596e,View as _0x22fc22}from'ckeditor5/src/ui.js';function _0x2998(_0x2958b8,_0x1bca55){const _0x58526f=_0x5852();return _0x2998=function(_0x299804,_0x3a2ba7){_0x299804=_0x299804-0x11d;let _0x47023f=_0x58526f[_0x299804];return _0x47023f;},_0x2998(_0x2958b8,_0x1bca55);}import{getTranslation as _0x2d0c58}from'../../../aicore/utils/common-translations.js';const Ko=_0x57a0e7(0x122),Xo=_0x57a0e7(0x13b),Qo=_0x57a0e7(0x178),Zo=_0x57a0e7(0x120),tl=_0x57a0e7(0x128),el=_0x57a0e7(0x175),il=_0x57a0e7(0x149),sl=_0x57a0e7(0x168),ol='n';export class AIChatPromptCapabilitiesView extends _0x22fc22{[_0x57a0e7(0x13e)];[_0x57a0e7(0x174)];[_0x57a0e7(0x14e)];[_0x57a0e7(0x144)];[_0x57a0e7(0x139)];[_0x57a0e7(0x14f)];constructor(_0x471373){const _0x5a8a60=_0x57a0e7;super(_0x471373),this[_0x5a8a60(0x14b)](_0x5a8a60(0x151),!0x1),this[_0x5a8a60(0x14b)](_0x5a8a60(0x12c),!0x1),this[_0x5a8a60(0x14b)](_0x5a8a60(0x13c),_0x5a8a60(0x15d)),this[_0x5a8a60(0x14b)](_0x5a8a60(0x165),!0x0),this[_0x5a8a60(0x14b)](_0x5a8a60(0x167),null),this[_0x5a8a60(0x14b)](_0x5a8a60(0x16c),null),this[_0x5a8a60(0x144)]=this[_0x5a8a60(0x17e)](),this[_0x5a8a60(0x14f)]=this[_0x5a8a60(0x17c)](),this[_0x5a8a60(0x13e)]=this[_0x5a8a60(0x121)](),this[_0x5a8a60(0x174)]=this[_0x5a8a60(0x155)](),this[_0x5a8a60(0x14e)]=this[_0x5a8a60(0x153)](),this[_0x5a8a60(0x144)][_0x5a8a60(0x146)][_0x5a8a60(0x12f)](_0x5a8a60(0x138))['to'](this,_0x5a8a60(0x13c),_0x31b403=>_0x5a8a60(0x15d)===_0x31b403),this[_0x5a8a60(0x144)][_0x5a8a60(0x146)][_0x5a8a60(0x12f)](_0x5a8a60(0x125))['to'](this,_0x5a8a60(0x165),_0x266818=>_0x266818?this[_0x5a8a60(0x144)][_0x5a8a60(0x146)][_0x5a8a60(0x15a)]:_0x2d0c58(this[_0x5a8a60(0x16a)],_0x5a8a60(0x129))),this[_0x5a8a60(0x144)][_0x5a8a60(0x12f)](_0x5a8a60(0x148))['to'](this,_0x5a8a60(0x165),_0x3b5edd=>_0x3b5edd),this[_0x5a8a60(0x13e)][_0x5a8a60(0x12f)](_0x5a8a60(0x133))['to'](this,_0x5a8a60(0x151),_0xb0ec2a=>_0xb0ec2a),this[_0x5a8a60(0x13e)][_0x5a8a60(0x12f)](_0x5a8a60(0x125))['to'](this,_0x5a8a60(0x151),_0x49f9eb=>_0x2d0c58(this[_0x5a8a60(0x16a)],_0x49f9eb?_0x5a8a60(0x127):_0x5a8a60(0x171))),this[_0x5a8a60(0x174)][_0x5a8a60(0x12f)](_0x5a8a60(0x133))['to'](this,_0x5a8a60(0x12c),_0x43e3fc=>_0x43e3fc),this[_0x5a8a60(0x174)][_0x5a8a60(0x12f)](_0x5a8a60(0x125))['to'](this,_0x5a8a60(0x12c),_0x4ac49e=>_0x2d0c58(this[_0x5a8a60(0x16a)],_0x4ac49e?_0x5a8a60(0x177):_0x5a8a60(0x13a))),this[_0x5a8a60(0x164)]({'tag':_0x5a8a60(0x13f),'attributes':{'class':[Ko]},'children':[this[_0x5a8a60(0x144)],this[_0x5a8a60(0x14f)],this[_0x5a8a60(0x13e)],this[_0x5a8a60(0x174)],this[_0x5a8a60(0x14e)]]}),this[_0x5a8a60(0x139)]=new _0x4ebc23(),_0x3d06fe(this[_0x5a8a60(0x144)],this[_0x5a8a60(0x139)]);}[_0x57a0e7(0x12d)](_0x164383,_0x1daf4e){const _0x402ab2=_0x57a0e7;if(_0x1daf4e)this[_0x402ab2(0x14b)](_0x402ab2(0x13c),_0x402ab2(0x134));else{const _0x46fa10=0x1===_0x164383[_0x402ab2(0x17d)];this[_0x402ab2(0x14b)](_0x402ab2(0x13c),_0x46fa10?_0x402ab2(0x15b):_0x402ab2(0x15d));}if(this[_0x402ab2(0x139)][_0x402ab2(0x145)](),_0x164383?.[_0x402ab2(0x17d)])for(const _0x4e7017 of _0x164383){const _0x53b919=new _0x20596e({'label':_0x4e7017[_0x402ab2(0x15b)],'withText':!0x0,'role':_0x402ab2(0x132),'id':_0x4e7017['id'],'model':_0x4e7017});_0x53b919[_0x402ab2(0x12f)](_0x402ab2(0x133))['to'](this,_0x402ab2(0x167),_0x4e7340=>_0x4e7340===_0x4e7017['id']),this[_0x402ab2(0x139)][_0x402ab2(0x179)]({'type':_0x402ab2(0x17f),'model':_0x53b919,'labelView':new ko(this[_0x402ab2(0x16a)],_0x4e7017)});}}[_0x57a0e7(0x15f)](_0x184889){const _0x8736c2=_0x57a0e7;this[_0x8736c2(0x14b)](_0x8736c2(0x151),_0x184889);}[_0x57a0e7(0x13d)](_0x3dc178){const _0x5a01da=_0x57a0e7;this[_0x5a01da(0x14b)](_0x5a01da(0x12c),_0x3dc178);}[_0x57a0e7(0x11e)](_0x374bd3){const _0x58d33e=_0x57a0e7;if(!_0x374bd3)return;this[_0x58d33e(0x167)]=_0x374bd3['id'],this[_0x58d33e(0x16c)]=_0x374bd3[_0x58d33e(0x15b)]||_0x374bd3['id'],this[_0x58d33e(0x144)][_0x58d33e(0x146)][_0x58d33e(0x14b)](_0x58d33e(0x15a),_0x374bd3[_0x58d33e(0x15b)]),this[_0x58d33e(0x144)][_0x58d33e(0x146)][_0x58d33e(0x14b)](_0x58d33e(0x125),_0x374bd3[_0x58d33e(0x15b)]);const _0x1d8ab3=_0x374bd3[_0x58d33e(0x170)][_0x58d33e(0x16d)]?.[_0x58d33e(0x176)]??!0x1;this[_0x58d33e(0x14b)](_0x58d33e(0x151),!0x1),this[_0x58d33e(0x13e)][_0x58d33e(0x14b)](_0x58d33e(0x133),!0x1),this[_0x58d33e(0x13e)][_0x58d33e(0x14b)](_0x58d33e(0x148),_0x1d8ab3),this[_0x58d33e(0x13e)][_0x58d33e(0x14b)](_0x58d33e(0x138),_0x1d8ab3);const _0x4a2076=_0x374bd3[_0x58d33e(0x170)][_0x58d33e(0x158)]?.[_0x58d33e(0x176)]??!0x1;this[_0x58d33e(0x14b)](_0x58d33e(0x12c),!0x1),this[_0x58d33e(0x174)][_0x58d33e(0x14b)](_0x58d33e(0x133),!0x1),this[_0x58d33e(0x174)][_0x58d33e(0x14b)](_0x58d33e(0x148),_0x4a2076),this[_0x58d33e(0x174)][_0x58d33e(0x14b)](_0x58d33e(0x138),_0x4a2076);}[_0x57a0e7(0x17a)](){const _0x46237d=_0x57a0e7;this[_0x46237d(0x14b)](_0x46237d(0x165),!0x0);}[_0x57a0e7(0x137)](_0x453627){const _0x528ef1=_0x57a0e7;this[_0x528ef1(0x14b)](_0x528ef1(0x165),!0x1),_0x453627&&this[_0x528ef1(0x14b)](_0x528ef1(0x13c),_0x528ef1(0x134));}[_0x57a0e7(0x121)](){const _0x1564c2=_0x57a0e7,_0x486d50=new _0xa153a2();return _0x486d50[_0x1564c2(0x14b)]({'label':_0x2d0c58(this[_0x1564c2(0x16a)],_0x1564c2(0x16f)),'icon':_0x3a4867,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x486d50['on'](_0x1564c2(0x173),()=>{const _0x584719=_0x1564c2;this[_0x584719(0x11f)](_0x584719(0x159));}),_0x486d50;}[_0x57a0e7(0x155)](){const _0x35fc00=_0x57a0e7,_0x3da69e=new _0xa153a2();return _0x3da69e[_0x35fc00(0x14b)]({'label':_0x2d0c58(this[_0x35fc00(0x16a)],_0x35fc00(0x147)),'icon':_0x18ad37,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x3da69e['on'](_0x35fc00(0x173),()=>{const _0x3e07d7=_0x35fc00;this[_0x3e07d7(0x11f)](_0x3e07d7(0x12b));}),_0x3da69e;}[_0x57a0e7(0x153)](){const _0x588e7c=_0x57a0e7,_0x5b86aa=new _0xa153a2();return _0x5b86aa[_0x588e7c(0x14b)]({'label':_0x2d0c58(this[_0x588e7c(0x16a)],_0x588e7c(0x152)),'icon':_0x393d86,'withText':!0x0,'class':Xo,'isToggleable':!0x0,'tooltip':_0x2d0c58(this[_0x588e7c(0x16a)],_0x588e7c(0x152)),'tooltipPosition':ol}),_0x5b86aa[_0x588e7c(0x136)]({'attributes':{'class':[Qo]}}),_0x5b86aa['on'](_0x588e7c(0x173),()=>{const _0x44e244=_0x588e7c;console[_0x44e244(0x141)](_0x44e244(0x160)),alert(_0x44e244(0x160));}),_0x5b86aa;}[_0x57a0e7(0x17e)](){const _0x3fbdc1=_0x57a0e7,_0x5eb812=_0x5b1368(this[_0x3fbdc1(0x16a)]);return _0x5eb812[_0x3fbdc1(0x14b)]({'panelPosition':'ne','class':[tl]}),_0x5eb812[_0x3fbdc1(0x146)][_0x3fbdc1(0x14b)]({'label':_0x2d0c58(this[_0x3fbdc1(0x16a)],_0x3fbdc1(0x16b)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':ol,'class':Zo}),this[_0x3fbdc1(0x154)](_0x5eb812,_0x3fbdc1(0x173),_0x5a5b15=>{const _0x4bddc3=_0x3fbdc1;this[_0x4bddc3(0x11f)](_0x4bddc3(0x15e),_0x5a5b15[_0x4bddc3(0x162)][_0x4bddc3(0x14d)]);}),_0x5eb812;}[_0x57a0e7(0x17c)](){const _0x2f7f9f=_0x57a0e7,_0x456da0=new _o(this[_0x2f7f9f(0x16a)]);return _0x456da0[_0x2f7f9f(0x12f)](_0x2f7f9f(0x14a))['to'](this,_0x2f7f9f(0x16c),_0x41f453=>_0x41f453??''),_0x456da0[_0x2f7f9f(0x12f)](_0x2f7f9f(0x138))['to'](this,_0x2f7f9f(0x13c),_0x50dbf4=>_0x2f7f9f(0x15b)===_0x50dbf4),_0x456da0;}}class ko extends _0x27060e{constructor(_0x341868,_0x33b778){const _0x4cf397=_0x57a0e7;super();const _0x51a41b=this[_0x4cf397(0x156)],_0x160d0e=this[_0x4cf397(0x124)]();this[_0x4cf397(0x164)]({'tag':_0x4cf397(0x13f),'attributes':{'class':['ck',_0x4cf397(0x130)],'style':_0x51a41b['to'](_0x4cf397(0x172)),'id':_0x51a41b['to']('id')},'children':[{'tag':_0x4cf397(0x13f),'attributes':{'class':[el]},'children':[{'text':_0x51a41b['to'](_0x4cf397(0x14a))}]},{'tag':_0x4cf397(0x13f),'attributes':{'class':[il]},'children':[{'tag':_0x4cf397(0x123),'children':[{'text':_0x33b778[_0x4cf397(0x180)]}]}]},{'tag':_0x4cf397(0x13f),'attributes':{'class':[sl]},'children':_0x160d0e}]}),_0x160d0e[_0x4cf397(0x16e)](this[_0x4cf397(0x12e)](_0x341868,_0x3a4867,_0x4cf397(0x16f),_0x33b778[_0x4cf397(0x170)][_0x4cf397(0x16d)]?.[_0x4cf397(0x176)]??!0x1)),_0x160d0e[_0x4cf397(0x16e)](this[_0x4cf397(0x12e)](_0x341868,_0x18ad37,_0x4cf397(0x147),_0x33b778[_0x4cf397(0x170)][_0x4cf397(0x158)]?.[_0x4cf397(0x176)]??!0x1));}[_0x57a0e7(0x12e)](_0x4575df,_0x339f8a,_0x25cbdf,_0x5247fa){const _0x352db5=_0x57a0e7,_0xb26f9b=new _0x2bef33();_0xb26f9b[_0x352db5(0x166)]=_0x339f8a;const _0x293c42=new _0x22fc22(_0x4575df);_0x293c42[_0x352db5(0x164)]({'tag':_0x352db5(0x123),'children':[{'text':_0x2d0c58(_0x4575df,_0x25cbdf)+':\x20'}]});const _0x3d4572=new _0x22fc22(_0x4575df);return _0x3d4572[_0x352db5(0x164)]({'tag':_0x352db5(0x123),'children':[{'text':_0x2d0c58(_0x4575df,_0x5247fa?_0x352db5(0x135):_0x352db5(0x12a))}]}),[_0xb26f9b,_0x293c42,_0x3d4572];}}class _o extends _0x22fc22{constructor(_0x359450){const _0x3efb91=_0x57a0e7;super(_0x359450),this[_0x3efb91(0x14b)](_0x3efb91(0x14a),void 0x0),this[_0x3efb91(0x14b)](_0x3efb91(0x138),!0x0);const _0x1fa7b2=this[_0x3efb91(0x156)];this[_0x3efb91(0x164)]({'tag':_0x3efb91(0x123),'attributes':{'class':['ck',_0x3efb91(0x142),_0x1fa7b2['if'](_0x3efb91(0x138),_0x3efb91(0x157),_0x438205=>!_0x438205)]},'children':[{'text':_0x1fa7b2['to'](_0x3efb91(0x14a))}]});}}
|
|
23
|
+
const _0x259f6d=_0x5aaa;(function(_0x2824ad,_0xa281b3){const _0x1c62bd=_0x5aaa,_0xd2e658=_0x2824ad();while(!![]){try{const _0x371486=-parseInt(_0x1c62bd(0x18b))/0x1*(-parseInt(_0x1c62bd(0x184))/0x2)+-parseInt(_0x1c62bd(0x1bf))/0x3*(-parseInt(_0x1c62bd(0x19e))/0x4)+parseInt(_0x1c62bd(0x1a9))/0x5*(parseInt(_0x1c62bd(0x186))/0x6)+-parseInt(_0x1c62bd(0x1c7))/0x7+parseInt(_0x1c62bd(0x1a2))/0x8+parseInt(_0x1c62bd(0x1ad))/0x9*(parseInt(_0x1c62bd(0x170))/0xa)+-parseInt(_0x1c62bd(0x1ae))/0xb*(parseInt(_0x1c62bd(0x192))/0xc);if(_0x371486===_0xa281b3)break;else _0xd2e658['push'](_0xd2e658['shift']());}catch(_0x1b16d5){_0xd2e658['push'](_0xd2e658['shift']());}}}(_0x1b93,0x7f019));function _0x1b93(){const _0x53a60a=['reasoning','_getCapabilityParts','activeModelName','ck-ai-chat-controls-button--commands','menuitemradio','isOn','name','4LLrLRP','activeModelId','label','AI_CHAT_CAPABILITIES_NO','4477480ZWZDEK','enabled','selectModel','ck-ai-chat__prompt-capabilities','_createModelSelectionDropdown','AI_CHAT_REASONING','_modelSelectionDropdownItems','115QkhVjI','_createCommandsButton','ck-ai-chat-controls__model-selection__item-name','modelDisplayMode','11196jYiHIk','16135086iQdNKT','clear','style','bindTemplate','webSearchActive','length','AI_CHAT_SEARCH_WEB','_createModelNameView','ck-ai-chat-controls__model-selection__item-description','selector','_createReasoningButton','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','div','isEnabled','tooltip','webSearch','ck-hidden','996033UEpAuc','add','text','disableModelSelector','_createWebSearchButton','AI_CHAT_ENABLE_WEB_SEARCH','content','bind','3457475AXsdll','modelSelectorEnabled','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','_reasoningButton','set','ck-ai-chat-controls__model-name','_modelNameView','AI_CHAT_COMMANDS','locale','span','_commandsButton','ck-ai-button-tertiary','setTemplate','6330FtCqgh','AI_CHAT_DISABLE_WEB_SEARCH','button','capabilities','setWebSearch','description','toggleWebSearch','hidden','fire','buttonView','setModel','extendTemplate','toggleReasoning','_modelSelectionDropdown','reasoningActive','listenTo','source','execute','createCollection','setReasoning','208966emvVLe','Commands\x20are\x20not\x20implemented\x20yet.','181914VZHOYN','AI_CHAT_DISABLE_REASONING','ck-ai-chat-controls__model-selection','ck-button__label','enableModelSelector','1taODQA','AI_CHAT_CAPABILITIES_YES','ck-ai-chat-controls__model-selection__item-capabilities','addMany','ck-ai-chat-controls-button','log','setModelList','12UUxVLL','model','isVisible','AI_CHAT_ENABLE_REASONING','_webSearchButton'];_0x1b93=function(){return _0x53a60a;};return _0x1b93();}import{Collection as _0x1bdca1}from'ckeditor5/src/utils.js';import{IconAI as _0x2d55ad,IconBulb as _0x48017c,IconWeb as _0x3a2fe2}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x5f161a,ButtonLabelView as _0x25ab7b,ButtonView as _0x22cab6,createDropdown as _0x58074b,IconView as _0x2a5eca,UIModel as _0x4300a6,View as _0x4c38b0}from'ckeditor5/src/ui.js';function _0x5aaa(_0x4f7be4,_0x1082b4){const _0x1b939c=_0x1b93();return _0x5aaa=function(_0x5aaaa9,_0x25b585){_0x5aaaa9=_0x5aaaa9-0x16d;let _0x293dfe=_0x1b939c[_0x5aaaa9];return _0x293dfe;},_0x5aaa(_0x4f7be4,_0x1082b4);}import{getTranslation as _0x1eeb82}from'../../../aicore/utils/common-translations.js';const qo=_0x259f6d(0x1a5),jo=_0x259f6d(0x18f),zo=_0x259f6d(0x19a),Jo=_0x259f6d(0x16e),Ko=_0x259f6d(0x188),Qo=_0x259f6d(0x1ab),Zo=_0x259f6d(0x1b6),tl=_0x259f6d(0x18d),el='n';export class AIChatPromptCapabilitiesView extends _0x4c38b0{[_0x259f6d(0x196)];[_0x259f6d(0x1ca)];[_0x259f6d(0x16d)];[_0x259f6d(0x17d)];[_0x259f6d(0x1a8)];[_0x259f6d(0x1cd)];constructor(_0x625631){const _0x427318=_0x259f6d;super(_0x625631),this[_0x427318(0x1cb)](_0x427318(0x1b2),!0x1),this[_0x427318(0x1cb)](_0x427318(0x17e),!0x1),this[_0x427318(0x1cb)](_0x427318(0x1ac),_0x427318(0x1b7)),this[_0x427318(0x1cb)](_0x427318(0x1c8),!0x0),this[_0x427318(0x1cb)](_0x427318(0x19f),null),this[_0x427318(0x1cb)](_0x427318(0x199),null),this[_0x427318(0x17d)]=this[_0x427318(0x1a6)](),this[_0x427318(0x1cd)]=this[_0x427318(0x1b5)](),this[_0x427318(0x196)]=this[_0x427318(0x1c3)](),this[_0x427318(0x1ca)]=this[_0x427318(0x1b8)](),this[_0x427318(0x16d)]=this[_0x427318(0x1aa)](),this[_0x427318(0x17d)][_0x427318(0x179)][_0x427318(0x1c6)](_0x427318(0x194))['to'](this,_0x427318(0x1ac),_0x476e96=>_0x427318(0x1b7)===_0x476e96),this[_0x427318(0x17d)][_0x427318(0x179)][_0x427318(0x1c6)](_0x427318(0x1bc))['to'](this,_0x427318(0x1c8),_0x31e654=>_0x31e654?this[_0x427318(0x17d)][_0x427318(0x179)][_0x427318(0x1a0)]:_0x1eeb82(this[_0x427318(0x1cf)],_0x427318(0x1c9))),this[_0x427318(0x17d)][_0x427318(0x1c6)](_0x427318(0x1bb))['to'](this,_0x427318(0x1c8),_0x103761=>_0x103761),this[_0x427318(0x196)][_0x427318(0x1c6)](_0x427318(0x19c))['to'](this,_0x427318(0x1b2),_0xfea3e6=>_0xfea3e6),this[_0x427318(0x196)][_0x427318(0x1c6)](_0x427318(0x1bc))['to'](this,_0x427318(0x1b2),_0x60a0dd=>_0x1eeb82(this[_0x427318(0x1cf)],_0x60a0dd?_0x427318(0x171):_0x427318(0x1c4))),this[_0x427318(0x1ca)][_0x427318(0x1c6)](_0x427318(0x19c))['to'](this,_0x427318(0x17e),_0x47214c=>_0x47214c),this[_0x427318(0x1ca)][_0x427318(0x1c6)](_0x427318(0x1bc))['to'](this,_0x427318(0x17e),_0x978236=>_0x1eeb82(this[_0x427318(0x1cf)],_0x978236?_0x427318(0x187):_0x427318(0x195))),this[_0x427318(0x16f)]({'tag':_0x427318(0x1ba),'attributes':{'class':[qo]},'children':[this[_0x427318(0x17d)],this[_0x427318(0x1cd)],this[_0x427318(0x196)],this[_0x427318(0x1ca)],this[_0x427318(0x16d)]]}),this[_0x427318(0x1a8)]=new _0x1bdca1(),_0x5f161a(this[_0x427318(0x17d)],this[_0x427318(0x1a8)]);}[_0x259f6d(0x191)](_0xf34dd5,_0x50b5a5){const _0x4cc619=_0x259f6d;if(_0x50b5a5)this[_0x4cc619(0x1cb)](_0x4cc619(0x1ac),_0x4cc619(0x177));else{const _0x346109=0x1===_0xf34dd5[_0x4cc619(0x1b3)];this[_0x4cc619(0x1cb)](_0x4cc619(0x1ac),_0x346109?_0x4cc619(0x19d):_0x4cc619(0x1b7));}if(this[_0x4cc619(0x1a8)][_0x4cc619(0x1af)](),_0xf34dd5?.[_0x4cc619(0x1b3)])for(const _0x2e3f19 of _0xf34dd5){const _0x136b70=new _0x4300a6({'label':_0x2e3f19[_0x4cc619(0x19d)],'withText':!0x0,'role':_0x4cc619(0x19b),'id':_0x2e3f19['id'],'model':_0x2e3f19});_0x136b70[_0x4cc619(0x1c6)](_0x4cc619(0x19c))['to'](this,_0x4cc619(0x19f),_0x5e5807=>_0x5e5807===_0x2e3f19['id']),this[_0x4cc619(0x1a8)][_0x4cc619(0x1c0)]({'type':_0x4cc619(0x172),'model':_0x136b70,'labelView':new ModelButtonLabelView(this[_0x4cc619(0x1cf)],_0x2e3f19)});}}[_0x259f6d(0x174)](_0x47a5b5){const _0x3d690e=_0x259f6d;this[_0x3d690e(0x1cb)](_0x3d690e(0x1b2),_0x47a5b5);}[_0x259f6d(0x183)](_0x36a30b){const _0x27b51a=_0x259f6d;this[_0x27b51a(0x1cb)](_0x27b51a(0x17e),_0x36a30b);}[_0x259f6d(0x17a)](_0x31b4c5){const _0x478e8d=_0x259f6d;if(!_0x31b4c5)return;this[_0x478e8d(0x19f)]=_0x31b4c5['id'],this[_0x478e8d(0x199)]=_0x31b4c5[_0x478e8d(0x19d)]||_0x31b4c5['id'],this[_0x478e8d(0x17d)][_0x478e8d(0x179)][_0x478e8d(0x1cb)](_0x478e8d(0x1a0),_0x31b4c5[_0x478e8d(0x19d)]),this[_0x478e8d(0x17d)][_0x478e8d(0x179)][_0x478e8d(0x1cb)](_0x478e8d(0x1bc),_0x31b4c5[_0x478e8d(0x19d)]);const _0x10e02b=_0x31b4c5[_0x478e8d(0x173)][_0x478e8d(0x1bd)]?.[_0x478e8d(0x1a3)]??!0x1;this[_0x478e8d(0x1cb)](_0x478e8d(0x1b2),!0x1),this[_0x478e8d(0x196)][_0x478e8d(0x1cb)](_0x478e8d(0x19c),!0x1),this[_0x478e8d(0x196)][_0x478e8d(0x1cb)](_0x478e8d(0x1bb),_0x10e02b),this[_0x478e8d(0x196)][_0x478e8d(0x1cb)](_0x478e8d(0x194),_0x10e02b);const _0x229805=_0x31b4c5[_0x478e8d(0x173)][_0x478e8d(0x197)]?.[_0x478e8d(0x1a3)]??!0x1;this[_0x478e8d(0x1cb)](_0x478e8d(0x17e),!0x1),this[_0x478e8d(0x1ca)][_0x478e8d(0x1cb)](_0x478e8d(0x19c),!0x1),this[_0x478e8d(0x1ca)][_0x478e8d(0x1cb)](_0x478e8d(0x1bb),_0x229805),this[_0x478e8d(0x1ca)][_0x478e8d(0x1cb)](_0x478e8d(0x194),_0x229805);}[_0x259f6d(0x18a)](){const _0x4ca005=_0x259f6d;this[_0x4ca005(0x1cb)](_0x4ca005(0x1c8),!0x0);}[_0x259f6d(0x1c2)](_0x21e4a5){const _0x393590=_0x259f6d;this[_0x393590(0x1cb)](_0x393590(0x1c8),!0x1),_0x21e4a5&&this[_0x393590(0x1cb)](_0x393590(0x1ac),_0x393590(0x177));}[_0x259f6d(0x1c3)](){const _0xb7aeea=_0x259f6d,_0x33567e=new _0x22cab6();return _0x33567e[_0xb7aeea(0x1cb)]({'label':_0x1eeb82(this[_0xb7aeea(0x1cf)],_0xb7aeea(0x1b4)),'icon':_0x3a2fe2,'class':jo,'isToggleable':!0x0,'tooltipPosition':el}),_0x33567e['on'](_0xb7aeea(0x181),()=>{const _0x4dc9cb=_0xb7aeea;this[_0x4dc9cb(0x178)](_0x4dc9cb(0x176));}),_0x33567e;}[_0x259f6d(0x1b8)](){const _0x3759c8=_0x259f6d,_0x4f34de=new _0x22cab6();return _0x4f34de[_0x3759c8(0x1cb)]({'label':_0x1eeb82(this[_0x3759c8(0x1cf)],_0x3759c8(0x1a7)),'icon':_0x48017c,'class':jo,'isToggleable':!0x0,'tooltipPosition':el}),_0x4f34de['on'](_0x3759c8(0x181),()=>{const _0x14b666=_0x3759c8;this[_0x14b666(0x178)](_0x14b666(0x17c));}),_0x4f34de;}[_0x259f6d(0x1aa)](){const _0x45425b=_0x259f6d,_0x37c82e=new _0x22cab6();return _0x37c82e[_0x45425b(0x1cb)]({'label':_0x1eeb82(this[_0x45425b(0x1cf)],_0x45425b(0x1ce)),'icon':_0x2d55ad,'withText':!0x0,'class':jo,'isToggleable':!0x0,'tooltip':_0x1eeb82(this[_0x45425b(0x1cf)],_0x45425b(0x1ce)),'tooltipPosition':el}),_0x37c82e[_0x45425b(0x17b)]({'attributes':{'class':[zo]}}),_0x37c82e['on'](_0x45425b(0x181),()=>{const _0x449fc4=_0x45425b;console[_0x449fc4(0x190)](_0x449fc4(0x185)),alert(_0x449fc4(0x185));}),_0x37c82e;}[_0x259f6d(0x1a6)](){const _0x27efab=_0x259f6d,_0x73787=_0x58074b(this[_0x27efab(0x1cf)]);return _0x73787[_0x27efab(0x1cb)]({'panelPosition':'ne','class':[Ko]}),_0x73787[_0x27efab(0x179)][_0x27efab(0x1cb)]({'label':_0x1eeb82(this[_0x27efab(0x1cf)],_0x27efab(0x1b9)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':el,'class':Jo}),this[_0x27efab(0x17f)](_0x73787,_0x27efab(0x181),_0x53cde6=>{const _0x551211=_0x27efab;this[_0x551211(0x178)](_0x551211(0x1a4),_0x53cde6[_0x551211(0x180)][_0x551211(0x193)]);}),_0x73787;}[_0x259f6d(0x1b5)](){const _0x8e8fe3=_0x259f6d,_0x3e167d=new ModelNameView(this[_0x8e8fe3(0x1cf)]);return _0x3e167d[_0x8e8fe3(0x1c6)](_0x8e8fe3(0x1c1))['to'](this,_0x8e8fe3(0x199),_0x4f712e=>_0x4f712e??''),_0x3e167d[_0x8e8fe3(0x1c6)](_0x8e8fe3(0x194))['to'](this,_0x8e8fe3(0x1ac),_0x5a8556=>_0x8e8fe3(0x19d)===_0x5a8556),_0x3e167d;}}class ModelButtonLabelView extends _0x25ab7b{constructor(_0x552dc5,_0x3314d6){const _0x25304a=_0x259f6d;super();const _0x41932b=this[_0x25304a(0x1b1)],_0x589aab=this[_0x25304a(0x182)]();this[_0x25304a(0x16f)]({'tag':_0x25304a(0x1ba),'attributes':{'class':['ck',_0x25304a(0x189)],'style':_0x41932b['to'](_0x25304a(0x1b0)),'id':_0x41932b['to']('id')},'children':[{'tag':_0x25304a(0x1ba),'attributes':{'class':[Qo]},'children':[{'text':_0x41932b['to'](_0x25304a(0x1c1))}]},{'tag':_0x25304a(0x1ba),'attributes':{'class':[Zo]},'children':[{'tag':_0x25304a(0x1d0),'children':[{'text':_0x3314d6[_0x25304a(0x175)]}]}]},{'tag':_0x25304a(0x1ba),'attributes':{'class':[tl]},'children':_0x589aab}]}),_0x589aab[_0x25304a(0x18e)](this[_0x25304a(0x198)](_0x552dc5,_0x3a2fe2,_0x25304a(0x1b4),_0x3314d6[_0x25304a(0x173)][_0x25304a(0x1bd)]?.[_0x25304a(0x1a3)]??!0x1)),_0x589aab[_0x25304a(0x18e)](this[_0x25304a(0x198)](_0x552dc5,_0x48017c,_0x25304a(0x1a7),_0x3314d6[_0x25304a(0x173)][_0x25304a(0x197)]?.[_0x25304a(0x1a3)]??!0x1));}[_0x259f6d(0x198)](_0x1c88df,_0x5a9c47,_0x32f190,_0x28d31c){const _0x42b07f=_0x259f6d,_0x2183c5=new _0x2a5eca();_0x2183c5[_0x42b07f(0x1c5)]=_0x5a9c47;const _0x261612=new _0x4c38b0(_0x1c88df);_0x261612[_0x42b07f(0x16f)]({'tag':_0x42b07f(0x1d0),'children':[{'text':_0x1eeb82(_0x1c88df,_0x32f190)+':\x20'}]});const _0x44c3e1=new _0x4c38b0(_0x1c88df);return _0x44c3e1[_0x42b07f(0x16f)]({'tag':_0x42b07f(0x1d0),'children':[{'text':_0x1eeb82(_0x1c88df,_0x28d31c?_0x42b07f(0x18c):_0x42b07f(0x1a1))}]}),[_0x2183c5,_0x261612,_0x44c3e1];}}class ModelNameView extends _0x4c38b0{constructor(_0x1f1ecf){const _0x41b9fa=_0x259f6d;super(_0x1f1ecf),this[_0x41b9fa(0x1cb)](_0x41b9fa(0x1c1),void 0x0),this[_0x41b9fa(0x1cb)](_0x41b9fa(0x194),!0x0);const _0x39de39=this[_0x41b9fa(0x1b1)];this[_0x41b9fa(0x16f)]({'tag':_0x41b9fa(0x1d0),'attributes':{'class':['ck',_0x41b9fa(0x1cc),_0x39de39['if'](_0x41b9fa(0x194),_0x41b9fa(0x1be),_0x583b2c=>!_0x583b2c)]},'children':[{'text':_0x39de39['to'](_0x41b9fa(0x1c1))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x159581=_0x5a89;(function(_0x2b0e5f,_0xc0b128){const _0x496f10=_0x5a89,_0x4656bf=_0x2b0e5f();while(!![]){try{const _0x2056ed=-parseInt(_0x496f10(0xc0))/0x1+parseInt(_0x496f10(0x89))/0x2*(-parseInt(_0x496f10(0x93))/0x3)+-parseInt(_0x496f10(0x94))/0x4+-parseInt(_0x496f10(0x9a))/0x5+parseInt(_0x496f10(0xbe))/0x6*(parseInt(_0x496f10(0xae))/0x7)+-parseInt(_0x496f10(0x88))/0x8*(parseInt(_0x496f10(0xbf))/0x9)+parseInt(_0x496f10(0xaa))/0xa;if(_0x2056ed===_0xc0b128)break;else _0x4656bf['push'](_0x4656bf['shift']());}catch(_0x48fe0a){_0x4656bf['push'](_0x4656bf['shift']());}}}(_0x137b,0x995ea));function _0x5a89(_0x2162de,_0x448401){const _0x137bc8=_0x137b();return _0x5a89=function(_0x5a8921,_0xf537fe){_0x5a8921=_0x5a8921-0x88;let _0x4a3ce5=_0x137bc8[_0x5a8921];return _0x4a3ce5;},_0x5a89(_0x2162de,_0x448401);}import{IconSubmit as _0x32fb39}from'ckeditor5/src/icons.js';import{ButtonView as _0x2fb97c,AutocompleteView as _0x7a1847,createLabeledTextarea as _0x5d3563}from'ckeditor5/src/ui.js';import{global as _0x416b20,isVisible as _0x67396b,Rect as _0x543597,ResizeObserver as _0x187917}from'ckeditor5/src/utils.js';import{getTranslation as _0x346b98}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x25388f}from'./aichatpromptsuggestionslistview.js';function _0x137b(){const _0x279247=['extendTemplate','contains','reset','left','submit','queryView','submitButtonView','target','px\x20-\x20var(--ck-spacing-tiny))','fire','value','ck-ai-chat__prompt-submit-button','49426250LhHEuP','sendUserMessage','remove','maxRows','21945ILyBNl','focusableChildren','uiLanguageDirection','ck-ai-chat__prompt-input_highlighted','errorText','hasError','MIN_ROWS','classList','_addContextButtonView','isUploadInProgress','rtl','AI_CHAT_PROMPT_EMPTY_ERROR','width','add','update','enter','1158iZzGLF','729iExGLK','1098621YgsifO','_queryViewResizeObserver','fieldView','AI_CHAT_LABEL_SUBMIT','fieldWrapperChildren','isEmpty','excludeScrollbarsAndBorders','render','ck-ai-chat__prompt-input','locale','_setUpAddContextButtonPositioning','minRows','style','element','76608jikIdy','2051768QHdnHD','calc(','setIsUploadInProgress','isEnabled','execute','keystrokes','requestAnimationFrame','trim','bind','MAX_ROWS','3uOPsLV','4690652GyNknE','focus','window','set','setPlaceholderText','placeholder','4233270MunBVR','destroy','_createSubmitButton','right'];_0x137b=function(){return _0x279247;};return _0x137b();}import{escape as _0x462d43}from'es-toolkit/compat';const ah=_0x159581(0xb1);export class AIChatPromptInputView extends _0x7a1847{[_0x159581(0xa4)];static [_0x159581(0xb4)]=0x1;static [_0x159581(0x92)]=0xc;[_0x159581(0xb6)];[_0x159581(0xc1)];constructor(_0x65a3ae,_0x530a41){const _0xcba595=_0x159581;super(_0x65a3ae,{'queryView':{'label':'','creator':_0x5d3563,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x25388f(_0x65a3ae),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0xcba595(0x97)](_0xcba595(0xc5),!0x0),this[_0xcba595(0x97)](_0xcba595(0xb7),!0x1),this[_0xcba595(0xb6)]=_0x530a41,this[_0xcba595(0xc1)]=null,this[_0xcba595(0xa3)][_0xcba595(0xc2)][_0xcba595(0xcb)]=AIChatPromptInputView[_0xcba595(0xb4)],this[_0xcba595(0xa3)][_0xcba595(0xc2)][_0xcba595(0xad)]=AIChatPromptInputView[_0xcba595(0x92)],this[_0xcba595(0xa3)][_0xcba595(0xc4)][_0xcba595(0xbb)](this[_0xcba595(0xb6)]),this[_0xcba595(0xca)](),this[_0xcba595(0x9e)]({'attributes':{'class':['ck',_0xcba595(0xc8)]}}),this[_0xcba595(0xa4)]=this[_0xcba595(0x9c)](),this[_0xcba595(0xa4)][_0xcba595(0x91)](_0xcba595(0x8c))['to'](this,_0xcba595(0xc5),this,_0xcba595(0xb7),(_0x1a1235,_0x426186)=>!_0x1a1235&&!_0x426186),this[_0xcba595(0xaf)][_0xcba595(0xbb)](this[_0xcba595(0xa4)]);}[_0x159581(0xc7)](){const _0x165b2b=_0x159581;super[_0x165b2b(0xc7)](),this[_0x165b2b(0xa3)][_0x165b2b(0xc4)][_0x165b2b(0xbb)](this[_0x165b2b(0xa4)]),this[_0x165b2b(0x8e)][_0x165b2b(0x97)](_0x165b2b(0xbd),(_0x1f3d20,_0x5c81b8)=>{const _0xf6eb61=_0x165b2b;this[_0xf6eb61(0xb7)]||this[_0xf6eb61(0xc5)]||_0x1f3d20[_0xf6eb61(0xa5)]==this[_0xf6eb61(0xa3)][_0xf6eb61(0xc2)][_0xf6eb61(0xcd)]&&(this[_0xf6eb61(0xa2)](),_0x5c81b8());}),this[_0x165b2b(0xa3)][_0x165b2b(0xc2)]['on'](_0x165b2b(0xbc),()=>{const _0x428db2=_0x165b2b;this[_0x428db2(0xc5)]=''===this[_0x428db2(0xa3)][_0x428db2(0xc2)][_0x428db2(0xcd)][_0x428db2(0xa8)]?.[_0x428db2(0x90)]();});}[_0x159581(0x9b)](){const _0x487976=_0x159581;super[_0x487976(0x9b)](),this[_0x487976(0xc1)]&&this[_0x487976(0xc1)][_0x487976(0x9b)]();}[_0x159581(0xa2)](){const _0x5d219e=_0x159581,_0x157788=this[_0x5d219e(0xa3)][_0x5d219e(0xc2)][_0x5d219e(0xcd)][_0x5d219e(0xa8)]?.[_0x5d219e(0x90)]();if(!_0x157788)return this[_0x5d219e(0xa3)][_0x5d219e(0xb2)]=_0x346b98(this[_0x5d219e(0xc9)],_0x5d219e(0xb9)),void(this[_0x5d219e(0xa3)][_0x5d219e(0xc2)][_0x5d219e(0xb3)]=!0x0);this[_0x5d219e(0xa3)][_0x5d219e(0xc2)][_0x5d219e(0xb3)]=!0x1;const _0x3e5683=_0x462d43(_0x157788);this[_0x5d219e(0xa7)](_0x5d219e(0xab),_0x3e5683),this[_0x5d219e(0xa3)][_0x5d219e(0xc2)][_0x5d219e(0xa0)]();}[_0x159581(0x98)](_0x52f96b){const _0x5a7541=_0x159581;this[_0x5a7541(0xa3)][_0x5a7541(0xc2)][_0x5a7541(0x97)](_0x5a7541(0x99),_0x52f96b);}[_0x159581(0x95)](_0x51c687=!0x1){const _0x466a81=_0x159581;super[_0x466a81(0x95)](),_0x51c687&&(this[_0x466a81(0xcd)][_0x466a81(0xb5)][_0x466a81(0x9f)](ah)||(this[_0x466a81(0xcd)][_0x466a81(0xb5)][_0x466a81(0xbb)](ah),setTimeout(()=>{const _0x1df6cc=_0x466a81;this[_0x1df6cc(0xcd)][_0x1df6cc(0xb5)][_0x1df6cc(0xac)](ah);},0x320)));}[_0x159581(0x9c)](){const _0x2c97ad=_0x159581,_0x4d79f3=new _0x2fb97c(this[_0x2c97ad(0xc9)]);return _0x4d79f3[_0x2c97ad(0x97)]({'icon':_0x32fb39,'label':_0x346b98(this[_0x2c97ad(0xc9)],_0x2c97ad(0xc3)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2c97ad(0xa9),'isEnabled':!0x1}),_0x4d79f3['on'](_0x2c97ad(0x8d),()=>{const _0x31345e=_0x2c97ad;this[_0x31345e(0xa2)]();}),_0x4d79f3;}[_0x159581(0x8b)](_0x5e446d){const _0x137473=_0x159581;this[_0x137473(0xb7)]=_0x5e446d;}[_0x159581(0xca)](){const _0x50815a=_0x159581,_0x56626e=this[_0x50815a(0xc9)],_0x3f4178=()=>{const _0x598427=_0x50815a;_0x416b20[_0x598427(0x96)][_0x598427(0x8f)](()=>{const _0x1c0a21=_0x598427;if(_0x67396b(this[_0x1c0a21(0xcd)])){const _0x2ea5a1=new _0x543597(this[_0x1c0a21(0xa3)][_0x1c0a21(0xc2)][_0x1c0a21(0xcd)]),_0x52c898=new _0x543597(this[_0x1c0a21(0xb6)][_0x1c0a21(0xcd)]),_0x257bc5=_0x2ea5a1[_0x1c0a21(0xba)],_0x5c7a6f=_0x1c0a21(0xb8)===_0x56626e[_0x1c0a21(0xb0)]?_0x1c0a21(0x9d):_0x1c0a21(0xa1);_0x2ea5a1[_0x1c0a21(0xc6)]();const _0x5ca8dd=_0x257bc5-_0x2ea5a1[_0x1c0a21(0xba)]+0x1;this[_0x1c0a21(0xb6)][_0x1c0a21(0xcd)][_0x1c0a21(0xcc)][_0x5c7a6f]=_0x1c0a21(0x8a)+(_0x257bc5-_0x52c898[_0x1c0a21(0xba)]-_0x5ca8dd)+_0x1c0a21(0xa6);}});};this[_0x50815a(0xa3)][_0x50815a(0xc2)]['on'](_0x50815a(0xbc),_0x3f4178),this['on'](_0x50815a(0xc7),()=>{const _0x549436=_0x50815a;_0x3f4178(),this[_0x549436(0xc1)]=new _0x187917(this[_0x549436(0xa3)][_0x549436(0xc2)][_0x549436(0xcd)],()=>{_0x3f4178();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1d85(_0x137f6c,_0x11fd61){const _0x2ff525=_0x2ff5();return _0x1d85=function(_0x1d859c,_0x1b9507){_0x1d859c=_0x1d859c-0x1cb;let _0x164ff5=_0x2ff525[_0x1d859c];return _0x164ff5;},_0x1d85(_0x137f6c,_0x11fd61);}function _0x2ff5(){const _0x22db86=['filter','14ofLzvN','14355PCKKKO','3LtIXZp','617316WCSgeM','2744FEVIJZ','434010QsbvsL','1354460fZkHGp','8791849ywExhJ','24gJeYOC','559260xeyXbm','items','length','1139608LEwiPX','8kDLwtL'];_0x2ff5=function(){return _0x22db86;};return _0x2ff5();}const _0x2b5503=_0x1d85;(function(_0xe4ee35,_0x1e8fbc){const _0xa60257=_0x1d85,_0xa94169=_0xe4ee35();while(!![]){try{const _0x5c3622=-parseInt(_0xa60257(0x1d7))/0x1+parseInt(_0xa60257(0x1cf))/0x2*(-parseInt(_0xa60257(0x1d4))/0x3)+-parseInt(_0xa60257(0x1d0))/0x4*(parseInt(_0xa60257(0x1d8))/0x5)+-parseInt(_0xa60257(0x1d5))/0x6*(-parseInt(_0xa60257(0x1d2))/0x7)+parseInt(_0xa60257(0x1d6))/0x8*(parseInt(_0xa60257(0x1d3))/0x9)+-parseInt(_0xa60257(0x1cc))/0xa+parseInt(_0xa60257(0x1d9))/0xb*(parseInt(_0xa60257(0x1cb))/0xc);if(_0x5c3622===_0x1e8fbc)break;else _0xa94169['push'](_0xa94169['shift']());}catch(_0x1f6b8c){_0xa94169['push'](_0xa94169['shift']());}}}(_0x2ff5,0xb711b));import{ListView as _0x39130b}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x39130b{[_0x2b5503(0x1d1)](){const _0x4b7e80=_0x2b5503;let _0x24eb69=0x0;for(const _0x281a13 of this[_0x4b7e80(0x1cd)])_0x24eb69+=_0x281a13[_0x4b7e80(0x1cd)][_0x4b7e80(0x1ce)];return{'resultsCount':_0x24eb69,'totalItemsCount':_0x24eb69};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x5493(_0x51c511,_0x161e9d){const _0x5e0713=_0x5e07();return _0x5493=function(_0x5493d8,_0x45ed3f){_0x5493d8=_0x5493d8-0x19b;let _0x492e63=_0x5e0713[_0x5493d8];return _0x492e63;},_0x5493(_0x51c511,_0x161e9d);}const _0x2ac051=_0x5493;(function(_0xb60fcc,_0x29b95b){const _0x35b380=_0x5493,_0x2c6eff=_0xb60fcc();while(!![]){try{const _0x88e75d=-parseInt(_0x35b380(0x1ba))/0x1*(-parseInt(_0x35b380(0x1ad))/0x2)+-parseInt(_0x35b380(0x1b1))/0x3+parseInt(_0x35b380(0x19e))/0x4*(parseInt(_0x35b380(0x1ab))/0x5)+-parseInt(_0x35b380(0x1a2))/0x6*(-parseInt(_0x35b380(0x1b2))/0x7)+-parseInt(_0x35b380(0x1a0))/0x8*(-parseInt(_0x35b380(0x19d))/0x9)+-parseInt(_0x35b380(0x1b5))/0xa+-parseInt(_0x35b380(0x19f))/0xb;if(_0x88e75d===_0x29b95b)break;else _0x2c6eff['push'](_0x2c6eff['shift']());}catch(_0x202c22){_0x2c6eff['push'](_0x2c6eff['shift']());}}}(_0x5e07,0x76a7d));import{ListView as _0x2bec3f}from'ckeditor5/src/ui.js';function _0x5e07(){const _0x1ea598=['4ZnXzdL','4590927WwyEgX','1381928EwVDbI','add','102gPPgbW','fire','label','clear','trim','replace','_source','locale','setResources','1552225oKcRnR','highlightText','32soaYSL','_handleResourceSelection','addResourceToContext','updateResourceState','884100BygelK','395717mJaGRA','execute','filter','6005640JIwall','items','forEach','useDefaultFiltering','extendTemplate','11355ZPBYyY','resource','test','ck-ai-chat-resources__list','\x5c$&','18tHLruW'];_0x5e07=function(){return _0x1ea598;};return _0x5e07();}import{AIChatResourceListItemView as _0x2839e6}from'./aichatresourcelistitemview.js';const uc=_0x2ac051(0x19b);export class AIChatContextResourcesListView extends _0x2bec3f{[_0x2ac051(0x1a8)];constructor(_0x58d1a8,_0x5c8f92){const _0x4c1fe8=_0x2ac051;super(_0x58d1a8),this[_0x4c1fe8(0x1a8)]=_0x5c8f92,this[_0x4c1fe8(0x1b9)]({'attributes':{'class':[uc]}});}[_0x2ac051(0x1aa)](_0x4a3308,_0x4ad875){const _0x2ee95d=_0x2ac051;this[_0x2ee95d(0x1b6)][_0x2ee95d(0x1a5)]();let _0x2c3b71=_0x4a3308;if(this[_0x2ee95d(0x1a8)][_0x2ee95d(0x1b8)]&&_0x4ad875&&''!==_0x4ad875[_0x2ee95d(0x1a6)]()){const _0x2e22bb=new RegExp(_0x4ad875[_0x2ee95d(0x1a7)](/[.*+?^${}()|[\]\\]/g,_0x2ee95d(0x19c)),'gi');_0x2c3b71=_0x4a3308[_0x2ee95d(0x1b4)](_0x521412=>_0x2e22bb[_0x2ee95d(0x1bc)](_0x521412[_0x2ee95d(0x1a4)]));}for(const _0xac862 of _0x2c3b71){const _0x19e603=new _0x2839e6(this[_0x2ee95d(0x1a9)],_0xac862);_0x19e603['on'](_0x2ee95d(0x1b3),()=>{const _0x4e2861=_0x2ee95d;this[_0x4e2861(0x1ae)](this[_0x4e2861(0x1a8)],_0xac862);}),this[_0x2ee95d(0x1b6)][_0x2ee95d(0x1a1)](_0x19e603);}this[_0x2ee95d(0x1a8)][_0x2ee95d(0x1b8)]&&this[_0x2ee95d(0x1ac)](_0x4ad875);}[_0x2ac051(0x1ac)](_0x162d66){const _0x1c9c60=_0x2ac051;this[_0x1c9c60(0x1a8)][_0x1c9c60(0x1b8)]&&this[_0x1c9c60(0x1b6)][_0x1c9c60(0x1b7)](_0x301024=>{const _0x467cb0=_0x1c9c60;_0x301024[_0x467cb0(0x1ac)](_0x162d66);});}[_0x2ac051(0x1b0)](_0x281f61,_0x11721c){const _0x20873f=_0x2ac051;for(const _0x12f8b6 of this[_0x20873f(0x1b6)]){const _0x28aa45=_0x12f8b6;_0x28aa45[_0x20873f(0x1bb)]['id']===_0x281f61&&_0x28aa45[_0x20873f(0x1b0)](_0x11721c);}}[_0x2ac051(0x1ae)](_0x5b3b40,_0x50ee35){const _0x48d36f=_0x2ac051;this[_0x48d36f(0x1a3)](_0x48d36f(0x1af),{'source':_0x5b3b40,'resource':_0x50ee35});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x10183e=_0x10ed;(function(_0x3e7949,_0x37ee7c){const _0x49d2f1=_0x10ed,_0x3255f6=_0x3e7949();while(!![]){try{const _0x38f65c=-parseInt(_0x49d2f1(0xb2))/0x1*(parseInt(_0x49d2f1(0xaf))/0x2)+-parseInt(_0x49d2f1(0xba))/0x3+-parseInt(_0x49d2f1(0xa1))/0x4*(-parseInt(_0x49d2f1(0xaa))/0x5)+-parseInt(_0x49d2f1(0xc7))/0x6*(parseInt(_0x49d2f1(0xa9))/0x7)+-parseInt(_0x49d2f1(0xce))/0x8*(-parseInt(_0x49d2f1(0xbf))/0x9)+parseInt(_0x49d2f1(0xad))/0xa+parseInt(_0x49d2f1(0xc2))/0xb;if(_0x38f65c===_0x37ee7c)break;else _0x3255f6['push'](_0x3255f6['shift']());}catch(_0x13fce8){_0x3255f6['push'](_0x3255f6['shift']());}}}(_0x20d3,0x354c4));function _0x10ed(_0x5bb235,_0x3a846b){const _0x20d312=_0x20d3();return _0x10ed=function(_0x10ed0c,_0x374da9){_0x10ed0c=_0x10ed0c-0x9f;let _0x1ef63b=_0x20d312[_0x10ed0c];return _0x1ef63b;},_0x10ed(_0x5bb235,_0x3a846b);}import{View as _0x53dc97,ViewCollection as _0x1d8533}from'ckeditor5/src/ui.js';import{uid as _0x52e215}from'ckeditor5/src/utils.js';function _0x20d3(){const _0x36cc72=['2591556QpmkRS','ck\x20ck-search','isLoading','_createSkeletonView','source','1812XMjqQo','extendTemplate','_searchInputVisibleFrom','highlightText','children','_searchView','addResourceToContext','104hKrpvB','setResources','_latestLoadResourcesUid','locale','_skeletonLoader','delegate','43132sQCOvM','_createSearchView','render','set','_searchSection','updateResourceState','has','searchInputVisibleFrom','4319sNqgqF','65ZArGIA','setTemplate','loadSourceResources','1466280ZwjCII','ck-ai-chat-resources','97298sWzDBd','search','aiChatResources','2pkDXCO','_source','getQuery','_createResourcesListView','_createSearchSection','useDefaultFiltering','length','add','633948bPXRBM','ck-hidden','div','_resourcesListView','fire','132129HxIKsC','loadResources','bindTemplate'];_0x20d3=function(){return _0x36cc72;};return _0x20d3();}import{AIChatContextResourcesListView as _0x35b995}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0xb98f5c}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x300d82,SKELETON_DEFINITIONS as _0x3716d1}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x53dc97{[_0x10183e(0xcc)];[_0x10183e(0xa5)];[_0x10183e(0xc9)];[_0x10183e(0xbd)];[_0x10183e(0x9f)];[_0x10183e(0xb3)];[_0x10183e(0xcb)];[_0x10183e(0xd0)]=null;constructor(_0x4ea12c,_0x14c798){const _0x3ec869=_0x10183e;super(_0x4ea12c),this[_0x3ec869(0xb3)]=_0x14c798[_0x3ec869(0xc6)],this[_0x3ec869(0xc9)]=_0x14c798[_0x3ec869(0xa8)]??0x7,this[_0x3ec869(0xa4)](_0x3ec869(0xc4),!0x0),this[_0x3ec869(0xcc)]=this[_0x3ec869(0xa2)](),this[_0x3ec869(0xa5)]=this[_0x3ec869(0xb6)](),this[_0x3ec869(0xbd)]=this[_0x3ec869(0xb5)](),this[_0x3ec869(0x9f)]=this[_0x3ec869(0xc5)](),this[_0x3ec869(0xcb)]=new _0x1d8533([this[_0x3ec869(0x9f)],this[_0x3ec869(0xbd)]]),this[_0x3ec869(0xab)]({'tag':_0x3ec869(0xbc),'attributes':{'class':_0x3ec869(0xae)},'children':this[_0x3ec869(0xcb)]});}[_0x10183e(0xa2)](){const _0x207e9d=_0x10183e;return new _0xb98f5c(this[_0x207e9d(0xd1)]);}[_0x10183e(0xb6)](){const _0x182a69=_0x10183e,_0x1e891d=new _0x53dc97(this[_0x182a69(0xd1)]);return _0x1e891d[_0x182a69(0xab)]({'tag':_0x182a69(0xbc),'attributes':{'class':_0x182a69(0xc3)},'children':[this[_0x182a69(0xcc)]]}),this[_0x182a69(0xcc)]['on'](_0x182a69(0xb0),(_0x5fba51,_0x3697c8)=>{const _0x9394e1=_0x182a69;this[_0x9394e1(0xc0)](_0x3697c8),this[_0x9394e1(0xb3)][_0x9394e1(0xb7)]&&this[_0x9394e1(0xbd)][_0x9394e1(0xca)](_0x3697c8);}),_0x1e891d;}[_0x10183e(0xb5)](){const _0x23144b=_0x10183e,_0x2d4810=new _0x35b995(this[_0x23144b(0xd1)],this[_0x23144b(0xb3)]);return _0x2d4810[_0x23144b(0xa0)](_0x23144b(0xcd))['to'](this),_0x2d4810[_0x23144b(0xc8)]({'attributes':{'class':this[_0x23144b(0xc1)]['if'](_0x23144b(0xc4),_0x23144b(0xbb))}}),_0x2d4810;}[_0x10183e(0xc5)](){const _0x7c9e90=_0x10183e,_0x3941d5=new _0x300d82(this[_0x7c9e90(0xd1)],_0x3716d1[_0x7c9e90(0xb1)]);return _0x3941d5[_0x7c9e90(0xc8)]({'attributes':{'class':[this[_0x7c9e90(0xc1)]['if'](_0x7c9e90(0xc4),_0x7c9e90(0xbb),_0x4131ca=>!_0x4131ca)]}}),_0x3941d5;}[_0x10183e(0xa3)](){const _0x1b638e=_0x10183e;super[_0x1b638e(0xa3)](),this[_0x1b638e(0xc0)]('');}[_0x10183e(0xc0)](_0x7ba2){const _0x4edf74=_0x10183e,_0x4ac7ff=_0x52e215();this[_0x4edf74(0xd0)]=_0x4ac7ff,this[_0x4edf74(0xbe)](_0x4edf74(0xac),{'sourceId':this[_0x4edf74(0xb3)]['id'],'query':_0x7ba2,'uid':_0x4ac7ff}),this[_0x4edf74(0xc4)]=!0x0;}[_0x10183e(0xcf)](_0x1fefd8,_0x397af0){const _0x3a29b7=_0x10183e;if(_0x397af0&&_0x397af0!==this[_0x3a29b7(0xd0)])return;const _0x20662f=this[_0x3a29b7(0xb3)][_0x3a29b7(0xb7)]?this[_0x3a29b7(0xcc)][_0x3a29b7(0xb4)]():'';this[_0x3a29b7(0xbd)][_0x3a29b7(0xcf)](_0x1fefd8,_0x20662f),_0x1fefd8[_0x3a29b7(0xb8)]>=this[_0x3a29b7(0xc9)]&&!this[_0x3a29b7(0xcb)][_0x3a29b7(0xa7)](this[_0x3a29b7(0xa5)])&&this[_0x3a29b7(0xcb)][_0x3a29b7(0xb9)](this[_0x3a29b7(0xa5)],0x0),requestAnimationFrame(()=>{const _0x1ca6a5=_0x3a29b7;this[_0x1ca6a5(0xc4)]=!0x1;});}[_0x10183e(0xa6)](_0x44ccf6,_0x130fd0){const _0x118507=_0x10183e;this[_0x118507(0xbd)][_0x118507(0xa6)](_0x44ccf6,_0x130fd0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4783ab=_0x130e;(function(_0x3d9afb,_0x2bbebb){const _0xf173d0=_0x130e,_0x596879=_0x3d9afb();while(!![]){try{const _0x931253=parseInt(_0xf173d0(0x1f7))/0x1+parseInt(_0xf173d0(0x1f3))/0x2+-parseInt(_0xf173d0(0x1e1))/0x3+-parseInt(_0xf173d0(0x1ce))/0x4+-parseInt(_0xf173d0(0x1dd))/0x5*(parseInt(_0xf173d0(0x1e3))/0x6)+parseInt(_0xf173d0(0x1d7))/0x7*(parseInt(_0xf173d0(0x1f4))/0x8)+parseInt(_0xf173d0(0x1cf))/0x9;if(_0x931253===_0x2bbebb)break;else _0x596879['push'](_0x596879['shift']());}catch(_0x5b8716){_0x596879['push'](_0x596879['shift']());}}}(_0x5ccc,0x34534));function _0x130e(_0x4bae90,_0x11e4f8){const _0x5ccc34=_0x5ccc();return _0x130e=function(_0x130e3d,_0x1fd8b8){_0x130e3d=_0x130e3d-0x1ce;let _0x4a297e=_0x5ccc34[_0x130e3d];return _0x4a297e;},_0x130e(_0x4bae90,_0x11e4f8);}import{HighlightedTextView as _0x134035,IconView as _0x580bb5,ListItemView as _0x29f2ed}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x1ea79b}from'es-toolkit/compat';import{AIContextItemType as _0x227380}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x300cd1,IconCheck as _0x24127e,IconDocument as _0x535091,IconDocumentOutline as _0x2ef486,IconLink as _0x4fffff}from'@ckeditor/ckeditor5-icons';const zr=_0x4783ab(0x1e0),Jr=_0x4783ab(0x1df),Kr=_0x4783ab(0x1ed),Mr=_0x4783ab(0x1e5);function _0x5ccc(){const _0x2df1db=['_createTitleView','_iconView','69020eekwaZ','1192UbMDLy','render','content','35348LJRHRi','span','399944xQOymL','7957980nHigsj','ck-hidden','text','_updateIcon','getResourceIcon','DOCUMENT','URL','_titleView','4207dXVgHZ','highlightText','set','execute','updateResourceState','resource','5sFmORP','_createIconView','ck-ai-chat-resources__item--in-context','ck-ai-chat-resources__item','1185348VBFItE','bindTemplate','2005206tDLSCH','setTemplate','ck-ai-chat-resources__item__icon','extendTemplate','_setupTemplate','trim','div','FILE','TEXT','label','ck-ai-chat-resources__item-title','isInContext','type','isVisible'];_0x5ccc=function(){return _0x2df1db;};return _0x5ccc();}export class AIChatResourceListItemView extends _0x29f2ed{[_0x4783ab(0x1dc)];[_0x4783ab(0x1d6)];[_0x4783ab(0x1f2)];constructor(_0x456d93,_0xa3fde1){const _0x509134=_0x4783ab;super(_0x456d93),this[_0x509134(0x1dc)]=_0xa3fde1,this[_0x509134(0x1d9)](_0x509134(0x1ee),!!_0xa3fde1[_0x509134(0x1ee)]),this[_0x509134(0x1d6)]=this[_0x509134(0x1f1)](),this[_0x509134(0x1f2)]=this[_0x509134(0x1de)](),this[_0x509134(0x1e7)]();}[_0x4783ab(0x1f5)](){const _0x610dd5=_0x4783ab;super[_0x610dd5(0x1f5)]();}[_0x4783ab(0x1d3)](_0x4baa0b){const _0x4145ed=_0x4783ab;if(_0x4baa0b[_0x4145ed(0x1ee)])return _0x24127e;switch(_0x4baa0b[_0x4145ed(0x1ef)]){case _0x227380[_0x4145ed(0x1d4)]:return _0x535091;case _0x227380[_0x4145ed(0x1d5)]:return _0x4fffff;case _0x227380[_0x4145ed(0x1ea)]:case _0x227380[_0x4145ed(0x1eb)]:return _0x300cd1;default:return _0x2ef486;}}[_0x4783ab(0x1d8)](_0x37792e){const _0x455ec7=_0x4783ab;if(!_0x37792e||''===_0x37792e[_0x455ec7(0x1e8)]())return void this[_0x455ec7(0x1d6)][_0x455ec7(0x1d8)](null);const _0x4136c1=new RegExp(_0x1ea79b(_0x37792e),'gi');this[_0x455ec7(0x1d6)][_0x455ec7(0x1d8)](_0x4136c1);}[_0x4783ab(0x1db)](_0x412722){const _0x2cc1e7=_0x4783ab;this[_0x2cc1e7(0x1dc)][_0x2cc1e7(0x1ee)]=_0x412722,this[_0x2cc1e7(0x1ee)]=_0x412722,this[_0x2cc1e7(0x1d2)]();}[_0x4783ab(0x1f1)](){const _0x87422a=_0x4783ab,_0x57a8a0=new _0x134035();return _0x57a8a0[_0x87422a(0x1d1)]=this[_0x87422a(0x1dc)][_0x87422a(0x1ec)],_0x57a8a0[_0x87422a(0x1e6)]({'tag':_0x87422a(0x1f8),'attributes':{'class':[Kr]}}),_0x57a8a0;}[_0x4783ab(0x1de)](){const _0x5734b2=_0x4783ab,_0x3b1c4b=new _0x580bb5();return _0x3b1c4b[_0x5734b2(0x1f6)]=this[_0x5734b2(0x1d3)](this[_0x5734b2(0x1dc)]),_0x3b1c4b;}[_0x4783ab(0x1e7)](){const _0x4047f2=_0x4783ab,_0x21916f=this[_0x4047f2(0x1e2)];this[_0x4047f2(0x1e4)]({'tag':_0x4047f2(0x1e9),'attributes':{'class':[zr,_0x21916f['if'](_0x4047f2(0x1f0),_0x4047f2(0x1d0),_0x384713=>!_0x384713),_0x21916f['if'](_0x4047f2(0x1ee),Jr)]},'children':[{'tag':_0x4047f2(0x1e9),'attributes':{'class':[Mr]},'children':[this[_0x4047f2(0x1f2)]]},this[_0x4047f2(0x1d6)]],'on':{'click':_0x21916f['to'](_0x4047f2(0x1da))}});}[_0x4783ab(0x1d2)](){const _0xf216fd=_0x4783ab;this[_0xf216fd(0x1f2)][_0xf216fd(0x1f6)]=this[_0xf216fd(0x1d3)](this[_0xf216fd(0x1dc)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x358c7d=_0x2723;(function(_0x5ed939,_0x144bfc){const _0x3eb14c=_0x2723,_0x3ae884=_0x5ed939();while(!![]){try{const _0x17dff6=-parseInt(_0x3eb14c(0xb2))/0x1+-parseInt(_0x3eb14c(0xcb))/0x2+parseInt(_0x3eb14c(0xd5))/0x3*(-parseInt(_0x3eb14c(0xc9))/0x4)+parseInt(_0x3eb14c(0xa5))/0x5*(parseInt(_0x3eb14c(0xb1))/0x6)+parseInt(_0x3eb14c(0xab))/0x7*(-parseInt(_0x3eb14c(0xb9))/0x8)+-parseInt(_0x3eb14c(0xb8))/0x9*(parseInt(_0x3eb14c(0xd3))/0xa)+-parseInt(_0x3eb14c(0xb0))/0xb*(-parseInt(_0x3eb14c(0xc0))/0xc);if(_0x17dff6===_0x144bfc)break;else _0x3ae884['push'](_0x3ae884['shift']());}catch(_0x2b6a7e){_0x3ae884['push'](_0x3ae884['shift']());}}}(_0x3147,0xacbfe));import{BalloonPanelView as _0x6a5bd8,ButtonView as _0x1abeee,clickOutsideHandler as _0x190b82,FormHeaderView as _0x299a6d}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x382364}from'@ckeditor/ckeditor5-icons';function _0x3147(){const _0x49aefe=['closeSourceResourceBalloon','onResourceSelected','change:isLoading','_getResourcesViewFromBalloon','21nOeerv','pin','content','add','_createBackButton','44064581OgJMHH','193746teKPYb','453358grNKzh','searchInputVisibleFrom','onBalloonClosed','ck-ai-chat-context-controls__source-balloon-panel','_bodyCollection','source','127638kvFetA','986032mDJOwq','_locale','_createBalloonResourcesView','onBackToContext','values','_addSourceResourceContent','get','12CQJfqK','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','once','addResourceToContext','populateSourceResourceBalloon','showSourceResourcesBalloon','hide','destroy','_createSourceResourceBalloonPanel','72UDWRRv','loadSourceResources','1914948YhkiuT','resource','execute','clear','element','set','_sourceResourceBalloons','_config','640gMmjUe','ck-button-icon\x20ck-button-back','150111IkQhvY','delete','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','_createBalloonHeader','setResources','children','isAnyResourceBalloonVisible','_setupSingleResourceBalloonClickOutsideHandler','label','extendTemplate','isVisible','getTargetElement','onLoadSourceResources','getLimiterElement','updateResourceState','45sQbHQC','show'];_0x3147=function(){return _0x49aefe;};return _0x3147();}import{getTranslation as _0x408897}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x2625b8}from'./aichatcontextresourcesview.js';function _0x2723(_0x56f148,_0x82f332){const _0x314733=_0x3147();return _0x2723=function(_0x2723db,_0x14c3b0){_0x2723db=_0x2723db-0x9d;let _0x1a988e=_0x314733[_0x2723db];return _0x1a988e;},_0x2723(_0x56f148,_0x82f332);}const Bc=_0x358c7d(0xb5),_c=_0x358c7d(0xd4),mc=_0x358c7d(0xc1);export class AIChatResourcesBalloonView{[_0x358c7d(0xd1)]=new Map();[_0x358c7d(0xb6)];[_0x358c7d(0xba)];[_0x358c7d(0xd2)];constructor(_0x32302f,_0x1dbcb3,_0x3df001){const _0x5a756e=_0x358c7d;this[_0x5a756e(0xba)]=_0x32302f,this[_0x5a756e(0xb6)]=_0x1dbcb3,this[_0x5a756e(0xd2)]=_0x3df001;}[_0x358c7d(0xc5)]({source:_0x11812d,withBackButton:_0x454416}){const _0x3ee72e=_0x358c7d;let _0x523fba=this[_0x3ee72e(0xd1)][_0x3ee72e(0xbf)](_0x11812d['id']);_0x523fba||(_0x523fba=this[_0x3ee72e(0xc8)](),this[_0x3ee72e(0xd1)][_0x3ee72e(0xd0)](_0x11812d['id'],_0x523fba),this[_0x3ee72e(0x9d)](_0x523fba)),this[_0x3ee72e(0xbe)]({'balloonPanel':_0x523fba,'source':_0x11812d,'withBackButton':_0x454416}),_0x523fba[_0x3ee72e(0xa6)]();const _0xeb148b=this[_0x3ee72e(0xd2)][_0x3ee72e(0xa1)]();_0xeb148b&&_0x523fba[_0x3ee72e(0xac)]({'target':_0xeb148b,'limiter':this[_0x3ee72e(0xd2)][_0x3ee72e(0xa3)]()});}[_0x358c7d(0xc4)](_0x3f5493,_0xc35ecb,_0x4ab101){const _0x4ee6df=_0x358c7d,_0x74b4ac=this[_0x4ee6df(0xd1)][_0x4ee6df(0xbf)](_0x3f5493);if(!_0x74b4ac)return;const _0x571421=this[_0x4ee6df(0xaa)](_0x74b4ac);_0x571421&&(_0x571421[_0x4ee6df(0xd9)](_0xc35ecb,_0x4ab101),_0x571421[_0x4ee6df(0xc2)](_0x4ee6df(0xa9),()=>{const _0x206531=_0x4ee6df;_0x74b4ac[_0x206531(0xac)]({'target':this[_0x206531(0xd2)][_0x206531(0xa1)](),'limiter':this[_0x206531(0xd2)][_0x206531(0xa3)]()});}));}[_0x358c7d(0xa7)](_0x2562c9){const _0x1c4710=_0x358c7d,_0xc14238=this[_0x1c4710(0xd1)][_0x1c4710(0xbf)](_0x2562c9);_0xc14238&&requestAnimationFrame(()=>{const _0x32207a=_0x1c4710;_0xc14238[_0x32207a(0xc6)](),this[_0x32207a(0xd1)][_0x32207a(0xd6)](_0x2562c9),this[_0x32207a(0xd2)][_0x32207a(0xb4)]();});}[_0x358c7d(0xdb)](){const _0x33584d=_0x358c7d;for(const _0x9932df of this[_0x33584d(0xd1)][_0x33584d(0xbd)]())if(_0x9932df[_0x33584d(0xa0)])return!0x0;return!0x1;}[_0x358c7d(0xa4)](_0xd264e2,_0x216871,_0x593145){const _0x27cce4=_0x358c7d,_0x1c8300=this[_0x27cce4(0xd1)][_0x27cce4(0xbf)](_0xd264e2);if(!_0x1c8300||!_0x1c8300[_0x27cce4(0xa0)])return;const _0x1ac904=this[_0x27cce4(0xd2)][_0x27cce4(0xa1)]();if(!_0x1ac904)return;_0x1c8300[_0x27cce4(0xac)]({'target':_0x1ac904,'limiter':this[_0x27cce4(0xd2)][_0x27cce4(0xa3)]()});const _0x3f1c87=this[_0x27cce4(0xaa)](_0x1c8300);_0x3f1c87&&_0x3f1c87[_0x27cce4(0xa4)](_0x216871,_0x593145);}[_0x358c7d(0xc7)](){const _0x421d74=_0x358c7d;for(const _0x4c9b87 of this[_0x421d74(0xd1)][_0x421d74(0xbd)]())_0x4c9b87[_0x421d74(0xc7)]();this[_0x421d74(0xd1)][_0x421d74(0xce)]();}[_0x358c7d(0xc8)](){const _0x2e018a=_0x358c7d,_0x44cac4=new _0x6a5bd8(this[_0x2e018a(0xba)]);return _0x44cac4[_0x2e018a(0x9f)]({'attributes':{'class':Bc}}),this[_0x2e018a(0xb6)][_0x2e018a(0xae)](_0x44cac4),_0x44cac4;}[_0x358c7d(0xbe)]({balloonPanel:_0xbef8d,source:_0x501d7d,withBackButton:_0x33d293}){const _0x37838b=_0x358c7d;_0xbef8d[_0x37838b(0xad)][_0x37838b(0xce)]();const _0x4873f6=this[_0x37838b(0xd8)]({'balloonPanel':_0xbef8d,'source':_0x501d7d,'withBackButton':_0x33d293});_0xbef8d[_0x37838b(0xad)][_0x37838b(0xae)](_0x4873f6);const _0x88bc48=this[_0x37838b(0xbb)](_0x501d7d);_0xbef8d[_0x37838b(0xad)][_0x37838b(0xae)](_0x88bc48);}[_0x358c7d(0xd8)]({balloonPanel:_0x11864e,source:_0x228cc9,withBackButton:_0x1094d2}){const _0x439466=_0x358c7d,_0x633cd7=new _0x299a6d(this[_0x439466(0xba)],{'label':_0x228cc9[_0x439466(0x9e)],'class':mc});return _0x1094d2&&_0x633cd7[_0x439466(0xda)][_0x439466(0xae)](this[_0x439466(0xaf)](_0x11864e),0x0),_0x633cd7;}[_0x358c7d(0xaf)](_0x255f02){const _0xb8fcd4=_0x358c7d,_0x4b3b1a=new _0x1abeee(this[_0xb8fcd4(0xba)]);return _0x4b3b1a[_0xb8fcd4(0xd0)]({'icon':_0x382364,'tooltip':_0x408897(this[_0xb8fcd4(0xba)],_0xb8fcd4(0xd7)),'tooltipPosition':'n','class':_c}),_0x4b3b1a['on'](_0xb8fcd4(0xcd),()=>{const _0x2970e0=_0xb8fcd4;_0x255f02[_0x2970e0(0xc6)](),this[_0x2970e0(0xd2)][_0x2970e0(0xbc)]();}),_0x4b3b1a;}[_0x358c7d(0xbb)](_0x6f8e42){const _0x3bfafc=_0x358c7d,_0x1012fe=new _0x2625b8(this[_0x3bfafc(0xba)],{'source':_0x6f8e42,'searchInputVisibleFrom':this[_0x3bfafc(0xd2)][_0x3bfafc(0xb3)]});return _0x1012fe['on'](_0x3bfafc(0xca),(_0x55472c,_0xef6a38)=>{const _0x58f84a=_0x3bfafc;this[_0x58f84a(0xd2)][_0x58f84a(0xa2)](_0xef6a38);}),_0x1012fe['on'](_0x3bfafc(0xc3),(_0x5a089f,_0x43cdbd)=>{const _0x282d4f=_0x3bfafc;this[_0x282d4f(0xd2)][_0x282d4f(0xa8)](_0x43cdbd[_0x282d4f(0xb7)],_0x43cdbd[_0x282d4f(0xcc)]),this[_0x282d4f(0xa7)](_0x6f8e42['id']);}),_0x1012fe;}[_0x358c7d(0xaa)](_0x54d812){const _0x38193a=_0x358c7d,_0x56047f=_0x54d812[_0x38193a(0xad)][_0x38193a(0xbf)](0x1);return _0x56047f instanceof _0x2625b8?_0x56047f:null;}[_0x358c7d(0x9d)](_0x1b214d){const _0x52c119=_0x358c7d;_0x190b82({'emitter':_0x1b214d,'contextElements':[_0x1b214d[_0x52c119(0xcf)]],'callback':()=>{const _0x5f3f58=_0x52c119;_0x1b214d[_0x5f3f58(0xc6)](),this[_0x5f3f58(0xd2)][_0x5f3f58(0xb4)]();},'activator':()=>_0x1b214d[_0x52c119(0xa0)]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x35d9ed,IconView as _0x1f9e42,LabeledFieldView as _0x437e71,createLabeledInputText as th}from'ckeditor5/src/ui.js';import{IconLoupe as _0x1d10ed,IconCancel as _0x4e1e6d}from'ckeditor5/src/icons.js';import{getTranslation as _0x4919bc}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x437e71{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x1f7c9f){const t=_0x1f7c9f['t'],_0x324caf={'showResetButton':!0x0,'showIcon':!0x0,'creator':th,'label':_0x4919bc(_0x1f7c9f,'AI_CHAT_SEARCH_RESOURCES')};super(_0x1f7c9f,_0x324caf['creator']),this['label']=_0x324caf['label'],this['_viewConfig']=_0x324caf,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x1f7c9f,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x574a50){this['fire']('search',_0x574a50);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x1f9e42(),this['iconView']['content']=_0x1d10ed,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x36032a,t){this['resetButtonView']=new _0x35d9ed(_0x36032a),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x4e1e6d,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0x312061=>!_0x312061),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}
|