@ckeditor/ckeditor5-ai 47.7.1-alpha.0 → 47.7.2-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +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
|
-
const
|
|
23
|
+
const _0x10ab7b=_0x17ba;(function(_0x310b1b,_0x7730a8){const _0x4b7637=_0x17ba,_0x2eda6d=_0x310b1b();while(!![]){try{const _0x44161c=parseInt(_0x4b7637(0x8f))/0x1*(-parseInt(_0x4b7637(0x9e))/0x2)+parseInt(_0x4b7637(0x86))/0x3*(parseInt(_0x4b7637(0x7c))/0x4)+parseInt(_0x4b7637(0x78))/0x5+parseInt(_0x4b7637(0x7f))/0x6+parseInt(_0x4b7637(0xa1))/0x7*(-parseInt(_0x4b7637(0x90))/0x8)+-parseInt(_0x4b7637(0x97))/0x9*(parseInt(_0x4b7637(0x83))/0xa)+parseInt(_0x4b7637(0x9c))/0xb;if(_0x44161c===_0x7730a8)break;else _0x2eda6d['push'](_0x2eda6d['shift']());}catch(_0x9601e3){_0x2eda6d['push'](_0x2eda6d['shift']());}}}(_0x34c0,0xb0836));function _0x17ba(_0x37ebfd,_0x143de0){const _0x34c04d=_0x34c0();return _0x17ba=function(_0x17ba57,_0x55d261){_0x17ba57=_0x17ba57-0x74;let _0x281909=_0x34c04d[_0x17ba57];return _0x281909;},_0x17ba(_0x37ebfd,_0x143de0);}import{FocusTracker as _0x5b821c,KeystrokeHandler as _0x1b299d}from'ckeditor5/src/utils.js';import{ButtonView as _0x3b0ff4,FocusCycler as _0x27e662,LabeledFieldView as _0x3f419e,View as _0x5ea860,FormHeaderView as _0x374da6,createLabeledInputText as _0x3d499c,submitHandler as _0x51cd28}from'ckeditor5/src/ui.js';function _0x34c0(){const _0x1fa1e1=['AI_CHAT_CONTEXT_URL_EMPTY_ERROR','input','_setupEventHandlers','30864AVbbtX','withBackButton','render','3057156rBncBx','length','trim','setError','9505210EYgjMi','_createBackButton','fire','267EoJgXz','submit','_createConfirmButton','_setupKeystrokes','keystrokes','setTemplate','AI_CHAT_CONTEXT_URL_PLACEHOLDER','_focusables','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','76565tTcbZw','72ZQAQsA','_handleSubmit','destroy','urlInputField','tab','clear','confirmButton','9nvveMG','_createUrlInputField','ck-ai-chat-context-controls__url-form','value','ck-ai-chat-context-controls__url-input-section','8623153LaTVof','clearError','12VnVVYN','shift+tab','cancel','400302wIEnua','AI_CHAT_CONTEXT_URL_INVALID_ERROR','submitUrl','getValue','set','isEnabled','ck-button-icon\x20ck-button-back','focusTracker','add','ck-labeled-field-view_empty','form','focusCycler','errorText','div','listenTo','children','change:withBackButton','focus','execute','\x20ck-hidden','fieldView','ck-button-icon','AI_CHAT_CONTEXT_URL_ADD_URL','AI_CHAT_CONTEXT_URL_LABEL','stop','backButton','locale','forEach','createCollection','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','esc','_updateConfirmButtonState','_isValidUrl','element','_setupTemplate','refreshBalloon','3337050gVUZgb'];_0x34c0=function(){return _0x1fa1e1;};return _0x34c0();}import{IconCheck as _0x5ca6c9,IconPreviousArrow as _0x3ef4c4}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x4ab2b1}from'../../../aicore/utils/common-translations.js';const ch=_0x10ab7b(0x99),rh=_0x10ab7b(0x9b);export class AIChatContextPanelUrlInputView extends _0x5ea860{[_0x10ab7b(0xa8)];[_0x10ab7b(0x8a)];[_0x10ab7b(0x8d)];[_0x10ab7b(0xac)];[_0x10ab7b(0x93)];[_0x10ab7b(0xba)];[_0x10ab7b(0x96)];constructor(_0x539d0c){const _0x72cff3=_0x10ab7b;super(_0x539d0c),this[_0x72cff3(0xa8)]=new _0x5b821c(),this[_0x72cff3(0x8a)]=new _0x1b299d(),this[_0x72cff3(0xba)]=this[_0x72cff3(0x84)](),this[_0x72cff3(0x93)]=this[_0x72cff3(0x98)](),this[_0x72cff3(0x96)]=this[_0x72cff3(0x88)](),this[_0x72cff3(0x8d)]=this[_0x72cff3(0xbd)]([this[_0x72cff3(0xba)],this[_0x72cff3(0x93)],this[_0x72cff3(0x96)]]),this[_0x72cff3(0xac)]=new _0x27e662({'focusables':this[_0x72cff3(0x8d)],'focusTracker':this[_0x72cff3(0xa8)],'keystrokeHandler':this[_0x72cff3(0x8a)],'actions':{'focusPrevious':_0x72cff3(0x9f),'focusNext':_0x72cff3(0x94)}}),this[_0x72cff3(0xa5)](_0x72cff3(0x7d),!0x0),this[_0x72cff3(0x76)](),this[_0x72cff3(0x7b)](),this[_0x72cff3(0x89)]();}[_0x10ab7b(0x7e)](){const _0x459737=_0x10ab7b;super[_0x459737(0x7e)](),this[_0x459737(0x8d)][_0x459737(0xbc)](_0x225e62=>{const _0x1c9c61=_0x459737;this[_0x1c9c61(0xa8)][_0x1c9c61(0xa9)](_0x225e62[_0x1c9c61(0x75)]),this[_0x1c9c61(0x8a)][_0x1c9c61(0xaf)](_0x225e62[_0x1c9c61(0x75)]);}),_0x51cd28({'view':this}),this[_0x459737(0xb2)]();}[_0x10ab7b(0x92)](){const _0x107d35=_0x10ab7b;super[_0x107d35(0x92)](),this[_0x107d35(0xa8)][_0x107d35(0x92)](),this[_0x107d35(0x8a)][_0x107d35(0x92)]();}[_0x10ab7b(0xb2)](){const _0x48900b=_0x10ab7b;this[_0x48900b(0x93)][_0x48900b(0xb2)]();}[_0x10ab7b(0xa4)](){const _0x1d4a2b=_0x10ab7b;return this[_0x1d4a2b(0x93)][_0x1d4a2b(0xb5)][_0x1d4a2b(0x75)]?.[_0x1d4a2b(0x9a)]?.[_0x1d4a2b(0x81)]()||'';}[_0x10ab7b(0x95)](){const _0x39fede=_0x10ab7b;this[_0x39fede(0x93)][_0x39fede(0xb5)][_0x39fede(0x75)][_0x39fede(0x9a)]='',this[_0x39fede(0x93)][_0x39fede(0xad)]=null,this[_0x39fede(0x96)][_0x39fede(0xa6)]=!0x1;}[_0x10ab7b(0x82)](_0x42136b){const _0x5b4e63=_0x10ab7b;this[_0x5b4e63(0x93)][_0x5b4e63(0xad)]=_0x42136b,this[_0x5b4e63(0xc0)](),this[_0x5b4e63(0x85)](_0x5b4e63(0x77));}[_0x10ab7b(0x9d)](){const _0x82048e=_0x10ab7b;this[_0x82048e(0x93)][_0x82048e(0xad)]=null,this[_0x82048e(0xc0)]();}[_0x10ab7b(0x84)](){const _0x171e49=_0x10ab7b,_0x49115f=new _0x3b0ff4(this[_0x171e49(0xbb)]);return _0x49115f[_0x171e49(0xa5)]({'icon':_0x3ef4c4,'tooltip':_0x4ab2b1(this[_0x171e49(0xbb)],_0x171e49(0xbe)),'tooltipPosition':'n','class':[_0x171e49(0xa7)]}),this['on'](_0x171e49(0xb1),(_0x264577,_0x255789,_0x2937cc)=>{const _0x370c4e=_0x171e49;_0x49115f[_0x370c4e(0xa5)]({'class':[_0x370c4e(0xa7)+(_0x2937cc?'':_0x370c4e(0xb4))]});}),_0x49115f;}[_0x10ab7b(0x98)](){const _0x629011=_0x10ab7b,_0x1e9922=new _0x3f419e(this[_0x629011(0xbb)],_0x3d499c);return _0x1e9922[_0x629011(0xa5)]({'label':_0x4ab2b1(this[_0x629011(0xbb)],_0x629011(0xb8)),'class':_0x629011(0xaa)}),_0x1e9922[_0x629011(0xb5)][_0x629011(0xa5)]({'placeholder':_0x4ab2b1(this[_0x629011(0xbb)],_0x629011(0x8c))}),_0x1e9922;}[_0x10ab7b(0x88)](){const _0x2817a5=_0x10ab7b,_0x1471bb=new _0x3b0ff4(this[_0x2817a5(0xbb)]);return _0x1471bb[_0x2817a5(0xa5)]({'icon':_0x5ca6c9,'tooltip':_0x4ab2b1(this[_0x2817a5(0xbb)],_0x2817a5(0xb7)),'tooltipPosition':'n','class':_0x2817a5(0xb6),'type':_0x2817a5(0x87),'isEnabled':!0x1}),_0x1471bb;}[_0x10ab7b(0x76)](){const _0x486ef2=_0x10ab7b,_0x65d52e=new _0x374da6(this[_0x486ef2(0xbb)],{'label':_0x4ab2b1(this[_0x486ef2(0xbb)],_0x486ef2(0xb7)),'class':_0x486ef2(0x8e)});_0x65d52e[_0x486ef2(0xb0)][_0x486ef2(0xa9)](this[_0x486ef2(0xba)],0x0),this[_0x486ef2(0x8b)]({'tag':_0x486ef2(0xab),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x65d52e,{'tag':_0x486ef2(0xae),'attributes':{'class':rh},'children':[this[_0x486ef2(0x93)],this[_0x486ef2(0x96)]]}]});}[_0x10ab7b(0x7b)](){const _0x4373da=_0x10ab7b;this[_0x4373da(0xba)]['on'](_0x4373da(0xb3),()=>{const _0x453437=_0x4373da;this[_0x453437(0x95)](),this[_0x453437(0x85)](_0x453437(0xa0));}),this[_0x4373da(0x93)][_0x4373da(0xb5)]['on'](_0x4373da(0x7a),()=>{const _0x108c6b=_0x4373da;this[_0x108c6b(0x9d)](),this[_0x108c6b(0xc0)](),this[_0x108c6b(0x85)](_0x108c6b(0x77));}),this['on'](_0x4373da(0x87),_0x18f087=>{const _0x5b7607=_0x4373da;_0x18f087[_0x5b7607(0xb9)](),this[_0x5b7607(0x91)]();});}[_0x10ab7b(0x89)](){const _0xa6d6e2=_0x10ab7b;this[_0xa6d6e2(0x8a)][_0xa6d6e2(0xa5)](_0xa6d6e2(0xbf),(_0x1998c9,_0x2b59a7)=>{const _0x844119=_0xa6d6e2;this[_0x844119(0x95)](),this[_0x844119(0x85)](_0x844119(0xa0)),_0x2b59a7();});}[_0x10ab7b(0x91)](){const _0x161611=_0x10ab7b,_0x4b18f0=this[_0x161611(0xa4)]()[_0x161611(0x81)]();_0x4b18f0?this[_0x161611(0x74)](_0x4b18f0)?(this[_0x161611(0x9d)](),this[_0x161611(0x85)](_0x161611(0xa3),_0x4b18f0)):this[_0x161611(0x82)](_0x4ab2b1(this[_0x161611(0xbb)],_0x161611(0xa2))):this[_0x161611(0x82)](_0x4ab2b1(this[_0x161611(0xbb)],_0x161611(0x79)));}[_0x10ab7b(0xc0)](){const _0x404bf8=_0x10ab7b,_0x4e0c6b=this[_0x404bf8(0xa4)]()[_0x404bf8(0x81)](),_0x5cb2b9=!!this[_0x404bf8(0x93)][_0x404bf8(0xad)];this[_0x404bf8(0x96)][_0x404bf8(0xa6)]=_0x4e0c6b[_0x404bf8(0x80)]>0x0&&!_0x5cb2b9;}[_0x10ab7b(0x74)](_0x2eb47a){try{return!!new URL(_0x2eb47a);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xbf973f=_0x1172;(function(_0x445a29,_0x37550d){const _0x546b27=_0x1172,_0x518403=_0x445a29();while(!![]){try{const _0x410698=parseInt(_0x546b27(0x18f))/0x1*(-parseInt(_0x546b27(0x15c))/0x2)+parseInt(_0x546b27(0x16f))/0x3+parseInt(_0x546b27(0x156))/0x4+-parseInt(_0x546b27(0x126))/0x5+-parseInt(_0x546b27(0x165))/0x6+-parseInt(_0x546b27(0x182))/0x7+parseInt(_0x546b27(0x17d))/0x8*(parseInt(_0x546b27(0x164))/0x9);if(_0x410698===_0x37550d)break;else _0x518403['push'](_0x518403['shift']());}catch(_0x4d60c2){_0x518403['push'](_0x518403['shift']());}}}(_0x1162,0x2de18));import{BalloonPanelView as _0xd6fb1,ButtonView as _0x313448,clickOutsideHandler as _0x5eafb9,FileDialogButtonView as _0x56b083,IconView as _0xf0094a,View as _0x479a28}from'ckeditor5/src/ui.js';function _0x1172(_0x4a7584,_0x24e44e){const _0x116258=_0x1162();return _0x1172=function(_0x11728d,_0x5e0d6f){_0x11728d=_0x11728d-0x101;let _0x4543bc=_0x116258[_0x11728d];return _0x4543bc;},_0x1172(_0x4a7584,_0x24e44e);}import{IconBrowseFiles as _0x3add85,IconDocument as _0x130b22,IconDocumentOutline as _0x23bc0b,IconDropdownArrow as _0x45d14b,IconLink as _0x111e77,IconPaperClip as _0xf96175}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x5ef325}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x18e307}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x836b1d}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x2f7e19}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x5397b1}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0xbf973f(0x162),_0xbf973f(0x163),_0xbf973f(0x106),_0xbf973f(0x187),_0xbf973f(0x167),_0xbf973f(0x190),_0xbf973f(0x193)];const Oo=_0xbf973f(0x109),Uo=_0xbf973f(0x118),Lo=_0xbf973f(0x195),No=_0xbf973f(0x14a),Mo=_0xbf973f(0x110),Ho=_0xbf973f(0x178),jo=_0xbf973f(0x157),Fo=_0xbf973f(0x125),Xo=_0xbf973f(0x11b),yo=_0xbf973f(0x16b),Do=_0xbf973f(0x14b),$o=_0xbf973f(0x16e),Wo=[_0xd6fb1[_0xbf973f(0x144)][_0xbf973f(0x102)],_0xd6fb1[_0xbf973f(0x144)][_0xbf973f(0x15e)],_0xd6fb1[_0xbf973f(0x144)][_0xbf973f(0x10c)],_0xd6fb1[_0xbf973f(0x144)][_0xbf973f(0x17f)],_0xd6fb1[_0xbf973f(0x144)][_0xbf973f(0x15d)],_0xd6fb1[_0xbf973f(0x144)][_0xbf973f(0x130)]];export class AIChatContextPanelView extends _0x479a28{[_0xbf973f(0x120)];[_0xbf973f(0x189)]=this[_0xbf973f(0x128)]();[_0xbf973f(0x114)]=this[_0xbf973f(0x128)]();[_0xbf973f(0x104)];[_0xbf973f(0x112)];[_0xbf973f(0x121)];[_0xbf973f(0x119)];[_0xbf973f(0x160)];[_0xbf973f(0x105)];[_0xbf973f(0x122)]=!0x1;[_0xbf973f(0x147)];constructor(_0x493e30,_0xecc855){const _0x2bc56e=_0xbf973f;super(_0x493e30),this[_0x2bc56e(0x147)]=_0xecc855[_0x2bc56e(0x147)],this[_0x2bc56e(0x189)]=this[_0x2bc56e(0x128)](),this[_0x2bc56e(0x114)]=this[_0x2bc56e(0x128)](),this[_0x2bc56e(0x120)]=this[_0x2bc56e(0x15a)](_0x493e30),this[_0x2bc56e(0x112)]=this[_0x2bc56e(0x17e)](_0x493e30),this[_0x2bc56e(0x121)]=this[_0x2bc56e(0x17c)](_0x493e30),this[_0x2bc56e(0x160)]=this[_0x2bc56e(0x155)](_0x493e30,_0xecc855);const _0x502d9e={'cssClasses':{'showMoreButton':yo,'showMoreBalloon':Do,'overflowContainer':Xo,'controlsButton':Fo}};this[_0x2bc56e(0x104)]=new _0x836b1d(_0x493e30,this[_0x2bc56e(0x189)],_0x502d9e,this[_0x2bc56e(0x147)],this),this[_0x2bc56e(0x105)]={'buttonView':this[_0x2bc56e(0x120)],'balloonView':this[_0x2bc56e(0x112)],'hideMethod':this[_0x2bc56e(0x13c)][_0x2bc56e(0x196)](this),'showMethod':this[_0x2bc56e(0x177)][_0x2bc56e(0x196)](this)},this[_0x2bc56e(0x175)](),this[_0x2bc56e(0x173)]();}[_0xbf973f(0x150)](){const _0x48b7db=_0xbf973f;super[_0x48b7db(0x150)](),this[_0x48b7db(0x134)](),this[_0x48b7db(0x104)][_0x48b7db(0x18c)](this[_0x48b7db(0x117)]),this[_0x48b7db(0x104)][_0x48b7db(0x14f)]();}[_0xbf973f(0x135)](){const _0x53cce9=_0xbf973f;super[_0x53cce9(0x135)](),this[_0x53cce9(0x104)][_0x53cce9(0x135)](),this[_0x53cce9(0x160)][_0x53cce9(0x135)]();}[_0xbf973f(0x16d)](_0x45b776,_0x29532a){const _0x28a800=_0xbf973f,_0x3ea906=this[_0x28a800(0x140)](_0x45b776,_0x28a800(0x153),!0x0,_0x29532a);this[_0x28a800(0x180)](_0x3ea906,this[_0x28a800(0x189)]),this[_0x28a800(0x104)][_0x28a800(0x14f)]();}[_0xbf973f(0x167)](_0x48b0c7){const _0x1f609d=_0xbf973f;this[_0x1f609d(0x127)](_0x48b0c7,this[_0x1f609d(0x189)]),this[_0x1f609d(0x127)](_0x48b0c7,this[_0x1f609d(0x104)][_0x1f609d(0x15f)]),this[_0x1f609d(0x104)][_0x1f609d(0x14f)]();}[_0xbf973f(0x16a)](_0x569f45,_0x293e73){const _0x52d640=_0xbf973f;let _0x4df9e5=this[_0x52d640(0x189)][_0x52d640(0x192)](_0x38df82=>_0x38df82['id']===_0x569f45);_0x4df9e5||(_0x4df9e5=this[_0x52d640(0x104)][_0x52d640(0x15f)][_0x52d640(0x192)](_0x448167=>_0x448167['id']===_0x569f45)),_0x4df9e5&&(_0x4df9e5[_0x52d640(0x181)]=_0x293e73);}[_0xbf973f(0x188)](_0x1baffc){const _0x568165=_0xbf973f;this[_0x568165(0x114)][_0x568165(0x14c)]();for(const _0x2d0b05 of _0x1baffc){const _0x35991d=this[_0x568165(0x140)](_0x2d0b05,_0x568165(0x11f),!0x1,!0x1);this[_0x568165(0x180)](_0x35991d,this[_0x568165(0x114)]);}}[_0xbf973f(0x132)](){const _0x5de1ba=_0xbf973f;this[_0x5de1ba(0x189)][_0x5de1ba(0x14c)](),this[_0x5de1ba(0x104)][_0x5de1ba(0x14c)]();}[_0xbf973f(0x101)](){const _0x17e558=_0xbf973f;this[_0x17e558(0x114)][_0x17e558(0x14c)]();}[_0xbf973f(0x18d)](_0xe0665c,_0x41d971,_0x543fcd){const _0x2b5878=_0xbf973f;this[_0x2b5878(0x160)][_0x2b5878(0x18d)](_0xe0665c,_0x41d971,_0x543fcd);}[_0xbf973f(0x13c)](){const _0x426333=_0xbf973f;this[_0x426333(0x151)](!0x1);}[_0xbf973f(0x177)](){const _0x212acd=_0xbf973f;this[_0x212acd(0x151)](!0x0);}[_0xbf973f(0x12b)](){const _0x379105=_0xbf973f;this[_0x379105(0x121)][_0x379105(0x115)](),this[_0x379105(0x120)][_0x379105(0x143)]=!0x1,this[_0x379105(0x119)]&&this[_0x379105(0x119)][_0x379105(0x14c)]();}[_0xbf973f(0x124)](){const _0x14a800=_0xbf973f;this[_0x14a800(0x121)][_0x14a800(0x11d)](),this[_0x14a800(0x120)][_0x14a800(0x143)]=!0x0;}[_0xbf973f(0x185)]({source:_0x46dfc2,withBackButton:_0x214066}){const _0x1f9f4e=_0xbf973f;this[_0x1f9f4e(0x160)][_0x1f9f4e(0x138)]({'source':_0x46dfc2,'withBackButton':_0x214066}),this[_0x1f9f4e(0x120)][_0x1f9f4e(0x143)]=!0x0;}[_0xbf973f(0x17b)](_0x2848c0,_0x17bac6,_0x22a863,_0x21a7dd){const _0x445dee=_0xbf973f;this[_0x445dee(0x160)][_0x445dee(0x17b)](_0x2848c0,_0x22a863,_0x21a7dd);}[_0xbf973f(0x142)](_0x12d800){const _0x32ce1e=_0xbf973f;this[_0x32ce1e(0x160)][_0x32ce1e(0x142)](_0x12d800),this[_0x32ce1e(0x120)][_0x32ce1e(0x143)]=!0x1;}[_0xbf973f(0x116)](_0x6c8f41){const _0x27dae5=_0xbf973f;this[_0x27dae5(0x183)](this[_0x27dae5(0x112)],this[_0x27dae5(0x10e)],_0x6c8f41),this[_0x27dae5(0x159)](_0x6c8f41);}[_0xbf973f(0x159)](_0x2fbab0){const _0x50aa0e=_0xbf973f,_0x1daa00=!_0x2fbab0[_0x50aa0e(0x129)][_0x50aa0e(0x137)]&&_0x2fbab0[_0x50aa0e(0x129)][_0x50aa0e(0x10d)],_0x3af18c=_0x2fbab0[_0x50aa0e(0x18b)][_0x50aa0e(0x10d)],_0x288843=_0x2fbab0[_0x50aa0e(0x14e)][_0x50aa0e(0x10d)],_0x3d3d6d=_0x2fbab0[_0x50aa0e(0x166)][_0x50aa0e(0x179)]>0x0,_0x48604d=_0x2fbab0[_0x50aa0e(0x158)]&&_0x2fbab0[_0x50aa0e(0x158)][_0x50aa0e(0x179)]>0x0;this[_0x50aa0e(0x120)][_0x50aa0e(0x108)]=_0x1daa00||_0x3af18c||_0x288843||_0x3d3d6d||_0x48604d;}[_0xbf973f(0x175)](){const _0x48155e=_0xbf973f;this[_0x48155e(0x13f)]({'tag':_0x48155e(0x12e),'attributes':{'class':[Oo,_0x48155e(0x12c)]},'children':[{'tag':_0x48155e(0x12e),'attributes':{'class':Uo},'children':this[_0x48155e(0x189)]}]});}[_0xbf973f(0x173)](){const _0x33ee0e=_0xbf973f;this[_0x33ee0e(0x120)]['on'](_0x33ee0e(0x161),()=>{const _0x3a9e38=_0x33ee0e;this[_0x3a9e38(0x146)]();});}[_0xbf973f(0x15a)](_0x4980bf){const _0x3f1aa0=_0xbf973f,_0x8d16e4=new _0x313448(_0x4980bf);return _0x8d16e4[_0x3f1aa0(0x194)]({'label':_0x2f7e19(_0x4980bf,_0x3f1aa0(0x111)),'class':Fo+'\x20'+No,'icon':_0xf96175,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x8d16e4;}[_0xbf973f(0x17e)](_0x5db828){const _0x28c95e=_0xbf973f;return this[_0x28c95e(0x136)](_0x5db828,Lo);}[_0xbf973f(0x17c)](_0x4959d7){const _0x1edfcf=_0xbf973f,_0xc679c6=this[_0x1edfcf(0x136)](_0x4959d7,Mo);return this[_0x1edfcf(0x10a)](_0xc679c6,_0x4959d7),_0xc679c6;}[_0xbf973f(0x155)](_0x1f84a4,_0x5f4c79){const _0x46fbe4=_0xbf973f,_0x3b4781={'searchInputVisibleFrom':_0x5f4c79[_0x46fbe4(0x145)],'onBackToContext':()=>{const _0x4e18da=_0x46fbe4;this[_0x4e18da(0x177)](),this[_0x4e18da(0x112)][_0x4e18da(0x172)]({'target':this[_0x4e18da(0x120)][_0x4e18da(0x117)],'limiter':this[_0x4e18da(0x103)](),'positions':Wo});},'onResourceSelected':(_0x6840a6,_0x5d5ddf)=>{const _0x3e91a1=_0x46fbe4;this[_0x3e91a1(0x11c)](_0x3e91a1(0x187),{'source':_0x6840a6,'resource':_0x5d5ddf});},'onLoadSourceResources':_0x1f8a44=>{const _0x5eaa15=_0x46fbe4;this[_0x5eaa15(0x11c)](_0x5eaa15(0x190),_0x1f8a44);},'onBalloonClosed':()=>{const _0x16214b=_0x46fbe4;this[_0x16214b(0x120)][_0x16214b(0x143)]=!0x1;},'getLimiterElement':()=>this[_0x46fbe4(0x103)](),'getTargetElement':()=>this[_0x46fbe4(0x120)][_0x46fbe4(0x117)]};return new _0x5397b1(_0x1f84a4,_0x5f4c79[_0x46fbe4(0x147)],_0x3b4781);}[_0xbf973f(0x103)](){const _0x392270=_0xbf973f;return this[_0x392270(0x117)]?.[_0x392270(0x12a)]('.'+$o)||document[_0x392270(0x16c)];}[_0xbf973f(0x136)](_0x1fa191,_0x3377cc){const _0x459d4d=_0xbf973f,_0x37e979=new _0xd6fb1(_0x1fa191);return _0x37e979[_0x459d4d(0x191)]({'attributes':{'class':_0x3377cc}}),this[_0x459d4d(0x147)][_0x459d4d(0x11e)](_0x37e979),_0x37e979;}[_0xbf973f(0x183)](_0x24924a,_0x1b8ab4,_0x458011){const _0x49a9ec=_0xbf973f;if(_0x24924a[_0x49a9ec(0x10f)][_0x49a9ec(0x14c)](),!_0x458011[_0x49a9ec(0x129)][_0x49a9ec(0x137)]&&_0x458011[_0x49a9ec(0x129)][_0x49a9ec(0x10d)]){const _0x52d1a4=this[_0x49a9ec(0x171)](_0x1b8ab4,{'label':_0x2f7e19(_0x1b8ab4,_0x49a9ec(0x15b)),'icon':_0x130b22});_0x52d1a4['on'](_0x49a9ec(0x161),()=>{const _0x247faa=_0x49a9ec;this[_0x247faa(0x11c)](_0x247faa(0x162)),this[_0x247faa(0x13c)]();}),_0x24924a[_0x49a9ec(0x10f)][_0x49a9ec(0x11e)](_0x52d1a4);}if(_0x458011[_0x49a9ec(0x18b)][_0x49a9ec(0x10d)]){const _0x3f9517=this[_0x49a9ec(0x171)](_0x1b8ab4,{'label':_0x2f7e19(_0x1b8ab4,_0x49a9ec(0x18e)),'icon':_0x111e77});_0x3f9517['on'](_0x49a9ec(0x161),()=>{const _0x8ab772=_0x49a9ec;this[_0x8ab772(0x13c)](),this[_0x8ab772(0x124)](),this[_0x8ab772(0x121)][_0x8ab772(0x172)]({'target':this[_0x8ab772(0x120)][_0x8ab772(0x117)],'limiter':this[_0x8ab772(0x103)](),'positions':Wo}),this[_0x8ab772(0x119)][_0x8ab772(0x113)]();}),_0x24924a[_0x49a9ec(0x10f)][_0x49a9ec(0x11e)](_0x3f9517);}if(_0x458011[_0x49a9ec(0x14e)][_0x49a9ec(0x10d)]){const _0x21e0b0=new _0x56b083(_0x1b8ab4);_0x21e0b0[_0x49a9ec(0x194)]({'label':_0x2f7e19(_0x1b8ab4,_0x49a9ec(0x131)),'icon':_0x3add85,'withText':!0x0,'tooltip':!0x0,'class':Ho,'allowMultipleFiles':!0x0}),_0x21e0b0['on'](_0x49a9ec(0x161),()=>{const _0xe6244c=_0x49a9ec;this[_0xe6244c(0x13c)]();}),_0x21e0b0['on'](_0x49a9ec(0x11a),(_0x38b87d,_0x4c60d2)=>{const _0x58c7cb=_0x49a9ec;this[_0x58c7cb(0x11c)](_0x58c7cb(0x163),_0x4c60d2);}),_0x21e0b0[_0x49a9ec(0x139)]=!0x0,_0x24924a[_0x49a9ec(0x10f)][_0x49a9ec(0x11e)](_0x21e0b0);}for(const _0x57c0a9 of _0x458011[_0x49a9ec(0x166)]){const _0x341f13=this[_0x49a9ec(0x171)](_0x1b8ab4,{'label':_0x57c0a9[_0x49a9ec(0x10b)],'icon':_0x57c0a9[_0x49a9ec(0x12f)]||_0x23bc0b,'type':_0x49a9ec(0x13a)});_0x24924a[_0x49a9ec(0x10f)][_0x49a9ec(0x11e)](_0x341f13),_0x341f13['on'](_0x49a9ec(0x161),()=>{const _0x2f3fe2=_0x49a9ec;this[_0x2f3fe2(0x13c)](),this[_0x2f3fe2(0x185)]({'source':_0x57c0a9,'withBackButton':!this[_0x2f3fe2(0x122)]});});}for(const _0x2785f4 of _0x458011[_0x49a9ec(0x158)]||[]){const _0x17d812=this[_0x49a9ec(0x171)](_0x1b8ab4,{'label':_0x2785f4[_0x49a9ec(0x10b)],'icon':_0x2785f4[_0x49a9ec(0x12f)]||_0x23bc0b,'type':_0x49a9ec(0x133)});_0x24924a[_0x49a9ec(0x10f)][_0x49a9ec(0x11e)](_0x17d812),_0x17d812['on'](_0x49a9ec(0x161),()=>{const _0x35c1f5=_0x49a9ec;this[_0x35c1f5(0x13c)](),this[_0x35c1f5(0x11c)](_0x35c1f5(0x193),_0x2785f4);});}this[_0x49a9ec(0x122)]=0x1===_0x24924a[_0x49a9ec(0x10f)][_0x49a9ec(0x179)],this[_0x49a9ec(0x119)][_0x49a9ec(0x12d)]=!this[_0x49a9ec(0x122)];}[_0xbf973f(0x10a)](_0x26afa6,_0x21ae1b){const _0xccaf84=_0xbf973f;this[_0xccaf84(0x119)]=new _0x18e307(_0x21ae1b),this[_0xccaf84(0x119)]['on'](_0xccaf84(0x168),(_0x481cfd,_0x872378)=>{const _0x46c3ec=_0xccaf84;this[_0x46c3ec(0x174)](_0x872378);}),this[_0xccaf84(0x119)]['on'](_0xccaf84(0x186),()=>{const _0x170a41=_0xccaf84;this[_0x170a41(0x12b)](),this[_0x170a41(0x122)]||(this[_0x170a41(0x177)](),this[_0x170a41(0x112)][_0x170a41(0x172)]({'target':this[_0x170a41(0x120)][_0x170a41(0x117)],'limiter':this[_0x170a41(0x103)](),'positions':Wo}));}),this[_0xccaf84(0x119)]['on'](_0xccaf84(0x13e),()=>{const _0x46ddc3=_0xccaf84;this[_0x46ddc3(0x121)][_0x46ddc3(0x149)]&&this[_0x46ddc3(0x121)][_0x46ddc3(0x172)]({'target':this[_0x46ddc3(0x120)][_0x46ddc3(0x117)],'limiter':this[_0x46ddc3(0x103)](),'positions':Wo});}),_0x26afa6[_0xccaf84(0x10f)][_0xccaf84(0x11e)](this[_0xccaf84(0x119)]);}[_0xbf973f(0x171)](_0x1674e6,_0x3d3d5b){const _0x13af9b=_0xbf973f,_0x49107c=_0x13af9b(0x13a)===_0x3d3d5b[_0x13af9b(0x148)]?new SourcesBalloonButtonView(_0x1674e6):new _0x313448(_0x1674e6);return _0x49107c[_0x13af9b(0x194)]({'label':_0x3d3d5b[_0x13af9b(0x10b)],'icon':_0x3d3d5b[_0x13af9b(0x12f)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Ho}),_0x49107c;}[_0xbf973f(0x134)](){const _0x3972ba=_0xbf973f;this[_0x3972ba(0x14d)](),this[_0x3972ba(0x13b)]();}[_0xbf973f(0x13b)](){const _0x51a6b0=_0xbf973f;_0x5eafb9({'emitter':this[_0x51a6b0(0x121)],'contextElements':[this[_0x51a6b0(0x121)][_0x51a6b0(0x117)]],'callback':()=>{const _0x49843b=_0x51a6b0;this[_0x49843b(0x12b)]();},'activator':()=>this[_0x51a6b0(0x121)][_0x51a6b0(0x149)]});}[_0xbf973f(0x151)](_0x43a299){const _0xaeaa06=_0xbf973f,_0x53e495=this[_0xaeaa06(0x105)];_0x53e495[_0xaeaa06(0x169)][_0xaeaa06(0x143)]=_0x43a299,_0x43a299?_0x53e495[_0xaeaa06(0x123)][_0xaeaa06(0x11d)]():_0x53e495[_0xaeaa06(0x123)][_0xaeaa06(0x115)]();}[_0xbf973f(0x14d)](){const _0x555fa9=_0xbf973f,{balloonView:_0x22fd38,buttonView:_0x534de2,hideMethod:_0xf350ea}=this[_0x555fa9(0x105)];_0x5eafb9({'emitter':_0x22fd38,'contextElements':[_0x22fd38[_0x555fa9(0x117)],_0x534de2[_0x555fa9(0x117)]],'callback':()=>{_0xf350ea();},'activator':()=>_0x534de2[_0x555fa9(0x143)]&&!this[_0x555fa9(0x121)][_0x555fa9(0x149)]&&!this[_0x555fa9(0x160)][_0x555fa9(0x18a)]()});}[_0xbf973f(0x140)](_0x8da7f3,_0x2a5639,_0xa4cbf5=!0x1,_0x4fc944=!0x1){const _0x31be8c=_0xbf973f,_0x542e74=_0x31be8c(0x11f)===_0x2a5639||!0x0===_0x8da7f3[_0x31be8c(0x176)],_0x30b9f9=new _0x5ef325(this[_0x31be8c(0x10e)],_0x8da7f3,_0x542e74,_0xa4cbf5,_0x4fc944);return _0x542e74||_0x30b9f9['on'](_0x31be8c(0x152),()=>{const _0x5b0707=_0x31be8c;this[_0x5b0707(0x11c)](_0x5b0707(0x167),_0x30b9f9['id']);}),_0x30b9f9;}[_0xbf973f(0x180)](_0x396ffb,_0x15da96){const _0x4cee97=_0xbf973f;_0x15da96[_0x4cee97(0x11e)](_0x396ffb,0x0);}[_0xbf973f(0x127)](_0x99a9b1,_0x3530fc){const _0x273707=_0xbf973f,_0x59b209=_0x3530fc[_0x273707(0x192)](_0x4ecbbf=>_0x4ecbbf['id']===_0x99a9b1);_0x59b209&&_0x3530fc[_0x273707(0x17a)](_0x59b209);}[_0xbf973f(0x146)](){const _0xcf5c17=_0xbf973f;this[_0xcf5c17(0x120)][_0xcf5c17(0x143)]?this[_0xcf5c17(0x13c)]():(this[_0xcf5c17(0x177)](),this[_0xcf5c17(0x112)][_0xcf5c17(0x172)]({'target':this[_0xcf5c17(0x120)][_0xcf5c17(0x117)],'limiter':this[_0xcf5c17(0x103)](),'positions':Wo}),this[_0xcf5c17(0x122)]&&this[_0xcf5c17(0x112)][_0xcf5c17(0x10f)][_0xcf5c17(0x13d)](0x0)?.[_0xcf5c17(0x11c)](_0xcf5c17(0x161)));}[_0xbf973f(0x174)](_0x46ed26){const _0x38032c=_0xbf973f;this[_0x38032c(0x119)][_0x38032c(0x14c)](),this[_0x38032c(0x12b)](),this[_0x38032c(0x11c)](_0x38032c(0x106),_0x46ed26);}}export class SourcesBalloonButtonView extends _0x313448{[_0xbf973f(0x184)];constructor(_0x595315){const _0x136356=_0xbf973f;super(_0x595315),this[_0x136356(0x194)]({'withText':!0x0,'role':_0x136356(0x141)}),this[_0x136356(0x184)]=this[_0x136356(0x170)](),this[_0x136356(0x191)]({'attributes':{'class':[jo]}});}[_0xbf973f(0x150)](){const _0x343d19=_0xbf973f;super[_0x343d19(0x150)](),this[_0x343d19(0x107)][_0x343d19(0x11e)](this[_0x343d19(0x184)]);}[_0xbf973f(0x170)](){const _0x46f164=_0xbf973f,_0x333ab2=new _0xf0094a();return _0x333ab2[_0x46f164(0x10f)]=_0x45d14b,_0x333ab2[_0x46f164(0x191)]({'attributes':{'class':jo+_0x46f164(0x154)}}),_0x333ab2;}}function _0x1162(){const _0x2dd2fd=['ck-ai-chat-context-controls__add-context-balloon-panel','bind','clearConversationContextItems','northArrowSouthWest','_getLimiterElement','_overflowManager','_addContextBalloonConfig','addUrlToContext','children','isEnabled','ck-ai-chat-context-controls','_addUrlContent','label','northArrowSouthEast','enabled','locale','content','ck-ai-chat-context-controls__url-balloon-panel','AI_CHAT_CONTEXT_ADD_CONTEXT','_addContextBalloonPanelView','focus','_conversationContextsChips','hide','setAddContextOptions','element','ck-ai-chat-context-controls__pending-contexts','_urlInputView','done','ck-ai-chat-context-chips-wrapper-balloon','fire','show','add','conversation','addContextButtonView','_urlBalloonPanelView','_hasExactlyOneSource','balloonView','showUrlBalloonPanel','ck-ai-chat-controls-button','261150dUsZlf','_removeContextFromCollection','createCollection','document','closest','hideUrlBalloonPanel','ck-reset_all-excluded','withBackButton','div','icon','southArrowNorthEast','AI_CHAT_CONTEXT_FILE_LABEL','clearCurrentContextItems','customItem','_setupAllBalloonClickOutsideHandlers','destroy','_createBaseBalloonPanel','isHidden','showSourceResourcesBalloon','tooltip','source','_setupUrlBalloonClickOutsideHandler','hideAddContextBalloonPanel','get','refreshBalloon','setTemplate','_createContextButton','menuitem','closeSourceResourceBalloon','isOn','defaultPositions','searchInputVisibleFrom','_handleAddContextButtonClick','bodyCollection','type','isVisible','ck-ai-chat-context-controls__add-context-button','ck-ai-chat-context-controls__show-more-balloon-panel','clear','_setupAddContextBalloonClickOutsideHandler','files','reorganizeChips','render','_toggleAddContextBalloon','removeContextItemChip','current','__arrow','_createResourcesBalloonView','109528zmnjUv','ck-ai-chat-context-controls__balloon-button-source','customItems','_setAddContextButtonEnabled','_createAddContextButtonView','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','4CXJYUt','southArrowNorth','northArrowSouth','overflowChips','_resourcesBalloonView','execute','addDocumentToContext','addFileToContext','18qbdICq','840678vQCbiD','sources','removeContextItem','submitUrl','buttonView','setContextItemLoading','ck-ai-chat-controls_context_show-more-button','body','addContextItem','ck-ai-chat','861657YFVVFi','_createArrowView','_createBalloonButton','pin','_bindEventHandlers','_handleUrlSubmit','_setupTemplate','isReadOnly','showAddContextBalloonPanel','ck-ai-chat-context-controls__balloon-button','length','remove','populateSourceResourceBalloon','_createUrlBalloonPanelView','1054728LJjsRs','_createAddContextBalloonPanelView','southArrowNorthWest','_addContextToCollection','isLoading','353570bxjrXI','_setBalloonPanelContent','arrowView','_showSourceResourcesBalloon','cancel','addResourceToContext','setConversationContext','_currentContextsChips','isAnyResourceBalloonVisible','urls','setContainerElement','updateResourceState','AI_CHAT_CONTEXT_URL_LABEL','73751FRBRnC','loadSourceResources','extendTemplate','find','executeCustomItemCallback','set'];_0x1162=function(){return _0x2dd2fd;};return _0x1162();}
|
|
23
|
+
const _0x527666=_0x2049;function _0x2049(_0x576f30,_0x5ea486){const _0x5ec175=_0x5ec1();return _0x2049=function(_0x204995,_0x17a5ed){_0x204995=_0x204995-0x1cc;let _0x102835=_0x5ec175[_0x204995];return _0x102835;},_0x2049(_0x576f30,_0x5ea486);}(function(_0x3b5e02,_0x2c7ee9){const _0x5719ad=_0x2049,_0xa7427e=_0x3b5e02();while(!![]){try{const _0x3260c4=parseInt(_0x5719ad(0x203))/0x1*(-parseInt(_0x5719ad(0x235))/0x2)+parseInt(_0x5719ad(0x21c))/0x3+parseInt(_0x5719ad(0x25b))/0x4*(-parseInt(_0x5719ad(0x23e))/0x5)+-parseInt(_0x5719ad(0x21a))/0x6*(-parseInt(_0x5719ad(0x25c))/0x7)+parseInt(_0x5719ad(0x1e6))/0x8*(-parseInt(_0x5719ad(0x1d5))/0x9)+parseInt(_0x5719ad(0x23f))/0xa+-parseInt(_0x5719ad(0x211))/0xb*(-parseInt(_0x5719ad(0x1e8))/0xc);if(_0x3260c4===_0x2c7ee9)break;else _0xa7427e['push'](_0xa7427e['shift']());}catch(_0x11ba69){_0xa7427e['push'](_0xa7427e['shift']());}}}(_0x5ec1,0xaae95));import{BalloonPanelView as _0x523307,ButtonView as _0x16d464,clickOutsideHandler as _0x36b9b8,FileDialogButtonView as _0x4fec57,IconView as _0x35ce79,View as _0x2b251d}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x1afc0f,IconDocument as _0x3cba38,IconDocumentOutline as _0x4eb70f,IconDropdownArrow as _0x18e363,IconLink as _0x5f308c,IconPaperClip as _0x49db0f}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x57fd14}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x206585}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x389527}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x48740e}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x3bc001}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x527666(0x259),_0x527666(0x20c),_0x527666(0x202),_0x527666(0x239),_0x527666(0x1fe),_0x527666(0x246),_0x527666(0x1f1)];function _0x5ec1(){const _0x26754e=['2098280vPYpvV','customItems','12lPHwSR','cancel','ck-ai-chat-context-chips-wrapper-balloon','ck-ai-chat-context-controls__add-context-balloon-panel','arrowView','_setupUrlBalloonClickOutsideHandler','urls','_setBalloonPanelContent','ck-ai-chat-context-controls__show-more-balloon-panel','executeCustomItemCallback','_createAddContextButtonView','setAddContextOptions','ck-ai-chat-context-controls__pending-contexts','destroy','submitUrl','_hasExactlyOneSource','ck-ai-chat-controls_context_show-more-button','clearConversationContextItems','withBackButton','_urlBalloonPanelView','hideUrlBalloonPanel','reorganizeChips','removeContextItem','_setupTemplate','ck-ai-chat','isAnyResourceBalloonVisible','addUrlToContext','368255dXTuHb','overflowChips','_resourcesBalloonView','bind','find','_handleUrlSubmit','isLoading','extendTemplate','body','addFileToContext','showSourceResourcesBalloon','southArrowNorthWest','setContextItemLoading','tooltip','27668531dCpqsp','clearCurrentContextItems','_createAddContextBalloonPanelView','isReadOnly','refreshBalloon','closeSourceResourceBalloon','files','northArrowSouth','AI_CHAT_CONTEXT_URL_LABEL','96IMCRBB','sources','40458RTDmSS','_handleAddContextButtonClick','isEnabled','_createContextButton','_addContextToCollection','AI_CHAT_CONTEXT_ADD_CONTEXT','fire','addContextButtonView','setTemplate','_conversationContextsChips','removeContextItemChip','div','_setAddContextButtonEnabled','ck-ai-chat-context-controls__url-balloon-panel','customItem','_removeContextFromCollection','AI_CHAT_CONTEXT_FILE_LABEL','_createUrlBalloonPanelView','showUrlBalloonPanel','_getLimiterElement','_addContextBalloonPanelView','hide','isHidden','populateSourceResourceBalloon','children','6rAUNTt','_setupAllBalloonClickOutsideHandlers','updateResourceState','ck-ai-chat-context-controls__add-context-button','addResourceToContext','_createBalloonButton','ck-reset_all-excluded','_setupAddContextBalloonClickOutsideHandler','defaultPositions','5yEeNom','791400Otsrdu','southArrowNorth','element','done','_bindEventHandlers','setConversationContext','isVisible','loadSourceResources','closest','focus','show','current','_addContextBalloonConfig','source','set','createCollection','northArrowSouthEast','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','buttonView','enabled','setContainerElement','label','ck-ai-chat-context-controls__balloon-button-source','length','ck-ai-chat-context-controls','locale','addDocumentToContext','balloonView','3705788BukbSW','283451DYtKZy','type','_currentContextsChips','add','ck-ai-chat-context-controls__balloon-button','_toggleAddContextBalloon','execute','southArrowNorthEast','isOn','clear','menuitem','_createResourcesBalloonView','ck-ai-chat-controls-button','pin','_overflowManager','northArrowSouthWest','_createBaseBalloonPanel','_addUrlContent','18iyOLTr','content','_urlInputView','searchInputVisibleFrom','document','_showSourceResourcesBalloon','get','bodyCollection','addContextItem','showAddContextBalloonPanel','remove','icon','render','hideAddContextBalloonPanel','conversation','__arrow','_createArrowView'];_0x5ec1=function(){return _0x26754e;};return _0x5ec1();}const Uo=_0x527666(0x257),Lo=_0x527666(0x1f4),No=_0x527666(0x1eb),Ho=_0x527666(0x238),Xo=_0x527666(0x229),Do=_0x527666(0x260),$o=_0x527666(0x255),yo=_0x527666(0x1cf),Wo=_0x527666(0x1ea),Fo=_0x527666(0x1f8),Io=_0x527666(0x1f0),qo=_0x527666(0x200),zo=[_0x523307[_0x527666(0x23d)][_0x527666(0x1d2)],_0x523307[_0x527666(0x23d)][_0x527666(0x218)],_0x523307[_0x527666(0x23d)][_0x527666(0x24f)],_0x523307[_0x527666(0x23d)][_0x527666(0x20e)],_0x523307[_0x527666(0x23d)][_0x527666(0x240)],_0x523307[_0x527666(0x23d)][_0x527666(0x263)]];export class AIChatContextPanelView extends _0x2b251d{[_0x527666(0x223)];[_0x527666(0x25e)]=this[_0x527666(0x24e)]();[_0x527666(0x225)]=this[_0x527666(0x24e)]();[_0x527666(0x1d1)];[_0x527666(0x230)];[_0x527666(0x1fb)];[_0x527666(0x1d7)];[_0x527666(0x205)];[_0x527666(0x24b)];[_0x527666(0x1f7)]=!0x1;[_0x527666(0x1dc)];constructor(_0x24973d,_0x58a300){const _0x1781c1=_0x527666;super(_0x24973d),this[_0x1781c1(0x1dc)]=_0x58a300[_0x1781c1(0x1dc)],this[_0x1781c1(0x25e)]=this[_0x1781c1(0x24e)](),this[_0x1781c1(0x225)]=this[_0x1781c1(0x24e)](),this[_0x1781c1(0x223)]=this[_0x1781c1(0x1f2)](_0x24973d),this[_0x1781c1(0x230)]=this[_0x1781c1(0x213)](_0x24973d),this[_0x1781c1(0x1fb)]=this[_0x1781c1(0x22d)](_0x24973d),this[_0x1781c1(0x205)]=this[_0x1781c1(0x1ce)](_0x24973d,_0x58a300);const _0x521070={'cssClasses':{'showMoreButton':Fo,'showMoreBalloon':Io,'overflowContainer':Wo,'controlsButton':yo}};this[_0x1781c1(0x1d1)]=new _0x389527(_0x24973d,this[_0x1781c1(0x25e)],_0x521070,this[_0x1781c1(0x1dc)],this),this[_0x1781c1(0x24b)]={'buttonView':this[_0x1781c1(0x223)],'balloonView':this[_0x1781c1(0x230)],'hideMethod':this[_0x1781c1(0x1e2)][_0x1781c1(0x206)](this),'showMethod':this[_0x1781c1(0x1de)][_0x1781c1(0x206)](this)},this[_0x1781c1(0x1ff)](),this[_0x1781c1(0x243)]();}[_0x527666(0x1e1)](){const _0x13bd39=_0x527666;super[_0x13bd39(0x1e1)](),this[_0x13bd39(0x236)](),this[_0x13bd39(0x1d1)][_0x13bd39(0x253)](this[_0x13bd39(0x241)]),this[_0x13bd39(0x1d1)][_0x13bd39(0x1fd)]();}[_0x527666(0x1f5)](){const _0xc65e15=_0x527666;super[_0xc65e15(0x1f5)](),this[_0xc65e15(0x1d1)][_0xc65e15(0x1f5)](),this[_0xc65e15(0x205)][_0xc65e15(0x1f5)]();}[_0x527666(0x1dd)](_0x59b351,_0x1f22e3){const _0x193d1d=_0x527666,_0x20ad66=this[_0x193d1d(0x21f)](_0x59b351,_0x193d1d(0x24a),!0x0,_0x1f22e3);this[_0x193d1d(0x220)](_0x20ad66,this[_0x193d1d(0x25e)]),this[_0x193d1d(0x1d1)][_0x193d1d(0x1fd)]();}[_0x527666(0x1fe)](_0x123dc7){const _0x413170=_0x527666;this[_0x413170(0x22b)](_0x123dc7,this[_0x413170(0x25e)]),this[_0x413170(0x22b)](_0x123dc7,this[_0x413170(0x1d1)][_0x413170(0x204)]),this[_0x413170(0x1d1)][_0x413170(0x1fd)]();}[_0x527666(0x20f)](_0x579af9,_0x375343){const _0x4afb4c=_0x527666;let _0x42cda2=this[_0x4afb4c(0x25e)][_0x4afb4c(0x207)](_0x2b50dd=>_0x2b50dd['id']===_0x579af9);_0x42cda2||(_0x42cda2=this[_0x4afb4c(0x1d1)][_0x4afb4c(0x204)][_0x4afb4c(0x207)](_0xeedcac=>_0xeedcac['id']===_0x579af9)),_0x42cda2&&(_0x42cda2[_0x4afb4c(0x209)]=_0x375343);}[_0x527666(0x244)](_0x46fd64){const _0x32622c=_0x527666;this[_0x32622c(0x225)][_0x32622c(0x1cc)]();for(const _0x496bbb of _0x46fd64){const _0x2c6aa7=this[_0x32622c(0x21f)](_0x496bbb,_0x32622c(0x1e3),!0x1,!0x1);this[_0x32622c(0x220)](_0x2c6aa7,this[_0x32622c(0x225)]);}}[_0x527666(0x212)](){const _0x5da6b1=_0x527666;this[_0x5da6b1(0x25e)][_0x5da6b1(0x1cc)](),this[_0x5da6b1(0x1d1)][_0x5da6b1(0x1cc)]();}[_0x527666(0x1f9)](){const _0x17b075=_0x527666;this[_0x17b075(0x225)][_0x17b075(0x1cc)]();}[_0x527666(0x237)](_0x36fc41,_0x5355bf,_0x1335af){const _0x23f38f=_0x527666;this[_0x23f38f(0x205)][_0x23f38f(0x237)](_0x36fc41,_0x5355bf,_0x1335af);}[_0x527666(0x1e2)](){const _0xe71b8f=_0x527666;this[_0xe71b8f(0x261)](!0x1);}[_0x527666(0x1de)](){const _0x131c00=_0x527666;this[_0x131c00(0x261)](!0x0);}[_0x527666(0x1fc)](){const _0x2541a5=_0x527666;this[_0x2541a5(0x1fb)][_0x2541a5(0x231)](),this[_0x2541a5(0x223)][_0x2541a5(0x264)]=!0x1,this[_0x2541a5(0x1d7)]&&this[_0x2541a5(0x1d7)][_0x2541a5(0x1cc)]();}[_0x527666(0x22e)](){const _0x21f87d=_0x527666;this[_0x21f87d(0x1fb)][_0x21f87d(0x249)](),this[_0x21f87d(0x223)][_0x21f87d(0x264)]=!0x0;}[_0x527666(0x1da)]({source:_0x493a6e,withBackButton:_0x232eb8}){const _0x2d4a20=_0x527666;this[_0x2d4a20(0x205)][_0x2d4a20(0x20d)]({'source':_0x493a6e,'withBackButton':_0x232eb8}),this[_0x2d4a20(0x223)][_0x2d4a20(0x264)]=!0x0;}[_0x527666(0x233)](_0x4f07c0,_0x41fd0e,_0x38d8de,_0x4ed247){const _0x402978=_0x527666;this[_0x402978(0x205)][_0x402978(0x233)](_0x4f07c0,_0x38d8de,_0x4ed247);}[_0x527666(0x216)](_0x24adc8){const _0x38729f=_0x527666;this[_0x38729f(0x205)][_0x38729f(0x216)](_0x24adc8),this[_0x38729f(0x223)][_0x38729f(0x264)]=!0x1;}[_0x527666(0x1f3)](_0x347d6b){const _0xfef717=_0x527666;this[_0xfef717(0x1ef)](this[_0xfef717(0x230)],this[_0xfef717(0x258)],_0x347d6b),this[_0xfef717(0x228)](_0x347d6b);}[_0x527666(0x228)](_0x1dc096){const _0x1ca7b5=_0x527666,_0x1b82be=!_0x1dc096[_0x1ca7b5(0x1d9)][_0x1ca7b5(0x232)]&&_0x1dc096[_0x1ca7b5(0x1d9)][_0x1ca7b5(0x252)],_0x42b217=_0x1dc096[_0x1ca7b5(0x1ee)][_0x1ca7b5(0x252)],_0x150d13=_0x1dc096[_0x1ca7b5(0x217)][_0x1ca7b5(0x252)],_0x588222=_0x1dc096[_0x1ca7b5(0x21b)][_0x1ca7b5(0x256)]>0x0,_0xcfbf=_0x1dc096[_0x1ca7b5(0x1e7)]&&_0x1dc096[_0x1ca7b5(0x1e7)][_0x1ca7b5(0x256)]>0x0;this[_0x1ca7b5(0x223)][_0x1ca7b5(0x21e)]=_0x1b82be||_0x42b217||_0x150d13||_0x588222||_0xcfbf;}[_0x527666(0x1ff)](){const _0x4a570d=_0x527666;this[_0x4a570d(0x224)]({'tag':_0x4a570d(0x227),'attributes':{'class':[Uo,_0x4a570d(0x23b)]},'children':[{'tag':_0x4a570d(0x227),'attributes':{'class':Lo},'children':this[_0x4a570d(0x25e)]}]});}[_0x527666(0x243)](){const _0x47e8b5=_0x527666;this[_0x47e8b5(0x223)]['on'](_0x47e8b5(0x262),()=>{const _0x2c77bb=_0x47e8b5;this[_0x2c77bb(0x21d)]();});}[_0x527666(0x1f2)](_0x13289c){const _0x3999b2=_0x527666,_0x21dc91=new _0x16d464(_0x13289c);return _0x21dc91[_0x3999b2(0x24d)]({'label':_0x48740e(_0x13289c,_0x3999b2(0x221)),'class':yo+'\x20'+Ho,'icon':_0x49db0f,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x21dc91;}[_0x527666(0x213)](_0x30c115){const _0x1ea35a=_0x527666;return this[_0x1ea35a(0x1d3)](_0x30c115,No);}[_0x527666(0x22d)](_0x42f78f){const _0x3dc6b3=_0x527666,_0x2c2db6=this[_0x3dc6b3(0x1d3)](_0x42f78f,Xo);return this[_0x3dc6b3(0x1d4)](_0x2c2db6,_0x42f78f),_0x2c2db6;}[_0x527666(0x1ce)](_0x260b58,_0x1ac31e){const _0x42d677=_0x527666,_0x41c968={'searchInputVisibleFrom':_0x1ac31e[_0x42d677(0x1d8)],'onBackToContext':()=>{const _0x241b3b=_0x42d677;this[_0x241b3b(0x1de)](),this[_0x241b3b(0x230)][_0x241b3b(0x1d0)]({'target':this[_0x241b3b(0x223)][_0x241b3b(0x241)],'limiter':this[_0x241b3b(0x22f)](),'positions':zo});},'onResourceSelected':(_0x1ddb8f,_0x3d8c0a)=>{const _0x2db8f2=_0x42d677;this[_0x2db8f2(0x222)](_0x2db8f2(0x239),{'source':_0x1ddb8f,'resource':_0x3d8c0a});},'onLoadSourceResources':_0x5ccd3a=>{const _0x18b171=_0x42d677;this[_0x18b171(0x222)](_0x18b171(0x246),_0x5ccd3a);},'onBalloonClosed':()=>{const _0x1ec02d=_0x42d677;this[_0x1ec02d(0x223)][_0x1ec02d(0x264)]=!0x1;},'getLimiterElement':()=>this[_0x42d677(0x22f)](),'getTargetElement':()=>this[_0x42d677(0x223)][_0x42d677(0x241)]};return new _0x3bc001(_0x260b58,_0x1ac31e[_0x42d677(0x1dc)],_0x41c968);}[_0x527666(0x22f)](){const _0x368dac=_0x527666;return this[_0x368dac(0x241)]?.[_0x368dac(0x247)]('.'+qo)||document[_0x368dac(0x20b)];}[_0x527666(0x1d3)](_0x62ea67,_0x550dec){const _0x399eda=_0x527666,_0x2cfeee=new _0x523307(_0x62ea67);return _0x2cfeee[_0x399eda(0x20a)]({'attributes':{'class':_0x550dec}}),this[_0x399eda(0x1dc)][_0x399eda(0x25f)](_0x2cfeee),_0x2cfeee;}[_0x527666(0x1ef)](_0x584add,_0x32a208,_0x803afa){const _0x53e756=_0x527666;if(_0x584add[_0x53e756(0x1d6)][_0x53e756(0x1cc)](),!_0x803afa[_0x53e756(0x1d9)][_0x53e756(0x232)]&&_0x803afa[_0x53e756(0x1d9)][_0x53e756(0x252)]){const _0xd8366f=this[_0x53e756(0x23a)](_0x32a208,{'label':_0x48740e(_0x32a208,_0x53e756(0x250)),'icon':_0x3cba38});_0xd8366f['on'](_0x53e756(0x262),()=>{const _0x51b155=_0x53e756;this[_0x51b155(0x222)](_0x51b155(0x259)),this[_0x51b155(0x1e2)]();}),_0x584add[_0x53e756(0x1d6)][_0x53e756(0x25f)](_0xd8366f);}if(_0x803afa[_0x53e756(0x1ee)][_0x53e756(0x252)]){const _0xef2d60=this[_0x53e756(0x23a)](_0x32a208,{'label':_0x48740e(_0x32a208,_0x53e756(0x219)),'icon':_0x5f308c});_0xef2d60['on'](_0x53e756(0x262),()=>{const _0x23356a=_0x53e756;this[_0x23356a(0x1e2)](),this[_0x23356a(0x22e)](),this[_0x23356a(0x1fb)][_0x23356a(0x1d0)]({'target':this[_0x23356a(0x223)][_0x23356a(0x241)],'limiter':this[_0x23356a(0x22f)](),'positions':zo}),this[_0x23356a(0x1d7)][_0x23356a(0x248)]();}),_0x584add[_0x53e756(0x1d6)][_0x53e756(0x25f)](_0xef2d60);}if(_0x803afa[_0x53e756(0x217)][_0x53e756(0x252)]){const _0x4a817b=new _0x4fec57(_0x32a208);_0x4a817b[_0x53e756(0x24d)]({'label':_0x48740e(_0x32a208,_0x53e756(0x22c)),'icon':_0x1afc0f,'withText':!0x0,'tooltip':!0x0,'class':Do,'allowMultipleFiles':!0x0}),_0x4a817b['on'](_0x53e756(0x262),()=>{const _0x2cadec=_0x53e756;this[_0x2cadec(0x1e2)]();}),_0x4a817b['on'](_0x53e756(0x242),(_0x529c0a,_0x2fb353)=>{const _0x5c6db0=_0x53e756;this[_0x5c6db0(0x222)](_0x5c6db0(0x20c),_0x2fb353);}),_0x4a817b[_0x53e756(0x210)]=!0x0,_0x584add[_0x53e756(0x1d6)][_0x53e756(0x25f)](_0x4a817b);}for(const _0x459e77 of _0x803afa[_0x53e756(0x21b)]){const _0x46ea97=this[_0x53e756(0x23a)](_0x32a208,{'label':_0x459e77[_0x53e756(0x254)],'icon':_0x459e77[_0x53e756(0x1e0)]||_0x4eb70f,'type':_0x53e756(0x24c)});_0x584add[_0x53e756(0x1d6)][_0x53e756(0x25f)](_0x46ea97),_0x46ea97['on'](_0x53e756(0x262),()=>{const _0x12db72=_0x53e756;this[_0x12db72(0x1e2)](),this[_0x12db72(0x1da)]({'source':_0x459e77,'withBackButton':!this[_0x12db72(0x1f7)]});});}for(const _0x54d444 of _0x803afa[_0x53e756(0x1e7)]||[]){const _0x5edfff=this[_0x53e756(0x23a)](_0x32a208,{'label':_0x54d444[_0x53e756(0x254)],'icon':_0x54d444[_0x53e756(0x1e0)]||_0x4eb70f,'type':_0x53e756(0x22a)});_0x584add[_0x53e756(0x1d6)][_0x53e756(0x25f)](_0x5edfff),_0x5edfff['on'](_0x53e756(0x262),()=>{const _0x3f9211=_0x53e756;this[_0x3f9211(0x1e2)](),this[_0x3f9211(0x222)](_0x3f9211(0x1f1),_0x54d444);});}this[_0x53e756(0x1f7)]=0x1===_0x584add[_0x53e756(0x1d6)][_0x53e756(0x256)],this[_0x53e756(0x1d7)][_0x53e756(0x1fa)]=!this[_0x53e756(0x1f7)];}[_0x527666(0x1d4)](_0x21797f,_0x3ec3b8){const _0x292348=_0x527666;this[_0x292348(0x1d7)]=new _0x206585(_0x3ec3b8),this[_0x292348(0x1d7)]['on'](_0x292348(0x1f6),(_0x20b65a,_0x49c15f)=>{const _0x1ab8cc=_0x292348;this[_0x1ab8cc(0x208)](_0x49c15f);}),this[_0x292348(0x1d7)]['on'](_0x292348(0x1e9),()=>{const _0x396b51=_0x292348;this[_0x396b51(0x1fc)](),this[_0x396b51(0x1f7)]||(this[_0x396b51(0x1de)](),this[_0x396b51(0x230)][_0x396b51(0x1d0)]({'target':this[_0x396b51(0x223)][_0x396b51(0x241)],'limiter':this[_0x396b51(0x22f)](),'positions':zo}));}),this[_0x292348(0x1d7)]['on'](_0x292348(0x215),()=>{const _0x22a602=_0x292348;this[_0x22a602(0x1fb)][_0x22a602(0x245)]&&this[_0x22a602(0x1fb)][_0x22a602(0x1d0)]({'target':this[_0x22a602(0x223)][_0x22a602(0x241)],'limiter':this[_0x22a602(0x22f)](),'positions':zo});}),_0x21797f[_0x292348(0x1d6)][_0x292348(0x25f)](this[_0x292348(0x1d7)]);}[_0x527666(0x23a)](_0x55be6d,_0x565826){const _0x2e56be=_0x527666,_0x50c850=_0x2e56be(0x24c)===_0x565826[_0x2e56be(0x25d)]?new SourcesBalloonButtonView(_0x55be6d):new _0x16d464(_0x55be6d);return _0x50c850[_0x2e56be(0x24d)]({'label':_0x565826[_0x2e56be(0x254)],'icon':_0x565826[_0x2e56be(0x1e0)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Do}),_0x50c850;}[_0x527666(0x236)](){const _0x574436=_0x527666;this[_0x574436(0x23c)](),this[_0x574436(0x1ed)]();}[_0x527666(0x1ed)](){const _0x2249e9=_0x527666;_0x36b9b8({'emitter':this[_0x2249e9(0x1fb)],'contextElements':[this[_0x2249e9(0x1fb)][_0x2249e9(0x241)]],'callback':()=>{const _0x2708dc=_0x2249e9;this[_0x2708dc(0x1fc)]();},'activator':()=>this[_0x2249e9(0x1fb)][_0x2249e9(0x245)]});}[_0x527666(0x261)](_0x330396){const _0x1c29bd=_0x527666,_0x181801=this[_0x1c29bd(0x24b)];_0x181801[_0x1c29bd(0x251)][_0x1c29bd(0x264)]=_0x330396,_0x330396?_0x181801[_0x1c29bd(0x25a)][_0x1c29bd(0x249)]():_0x181801[_0x1c29bd(0x25a)][_0x1c29bd(0x231)]();}[_0x527666(0x23c)](){const _0x16e3de=_0x527666,{balloonView:_0x273f06,buttonView:_0x6be56f,hideMethod:_0x484d11}=this[_0x16e3de(0x24b)];_0x36b9b8({'emitter':_0x273f06,'contextElements':[_0x273f06[_0x16e3de(0x241)],_0x6be56f[_0x16e3de(0x241)]],'callback':()=>{_0x484d11();},'activator':()=>_0x6be56f[_0x16e3de(0x264)]&&!this[_0x16e3de(0x1fb)][_0x16e3de(0x245)]&&!this[_0x16e3de(0x205)][_0x16e3de(0x201)]()});}[_0x527666(0x21f)](_0x36d036,_0x22eb04,_0x4062fb=!0x1,_0x49afd4=!0x1){const _0x158f22=_0x527666,_0x182242=_0x158f22(0x1e3)===_0x22eb04||!0x0===_0x36d036[_0x158f22(0x214)],_0x165429=new _0x57fd14(this[_0x158f22(0x258)],_0x36d036,_0x182242,_0x4062fb,_0x49afd4);return _0x182242||_0x165429['on'](_0x158f22(0x226),()=>{const _0xb169ab=_0x158f22;this[_0xb169ab(0x222)](_0xb169ab(0x1fe),_0x165429['id']);}),_0x165429;}[_0x527666(0x220)](_0x228b4e,_0x42d448){const _0x1c50e9=_0x527666;_0x42d448[_0x1c50e9(0x25f)](_0x228b4e,0x0);}[_0x527666(0x22b)](_0x333348,_0x10ba57){const _0x4a507b=_0x527666,_0x3aca12=_0x10ba57[_0x4a507b(0x207)](_0x468185=>_0x468185['id']===_0x333348);_0x3aca12&&_0x10ba57[_0x4a507b(0x1df)](_0x3aca12);}[_0x527666(0x21d)](){const _0x38b9f4=_0x527666;this[_0x38b9f4(0x223)][_0x38b9f4(0x264)]?this[_0x38b9f4(0x1e2)]():(this[_0x38b9f4(0x1de)](),this[_0x38b9f4(0x230)][_0x38b9f4(0x1d0)]({'target':this[_0x38b9f4(0x223)][_0x38b9f4(0x241)],'limiter':this[_0x38b9f4(0x22f)](),'positions':zo}),this[_0x38b9f4(0x1f7)]&&this[_0x38b9f4(0x230)][_0x38b9f4(0x1d6)][_0x38b9f4(0x1db)](0x0)?.[_0x38b9f4(0x222)](_0x38b9f4(0x262)));}[_0x527666(0x208)](_0x25cd13){const _0x25ed45=_0x527666;this[_0x25ed45(0x1d7)][_0x25ed45(0x1cc)](),this[_0x25ed45(0x1fc)](),this[_0x25ed45(0x222)](_0x25ed45(0x202),_0x25cd13);}}export class SourcesBalloonButtonView extends _0x16d464{[_0x527666(0x1ec)];constructor(_0x4af8e3){const _0x50f717=_0x527666;super(_0x4af8e3),this[_0x50f717(0x24d)]({'withText':!0x0,'role':_0x50f717(0x1cd)}),this[_0x50f717(0x1ec)]=this[_0x50f717(0x1e5)](),this[_0x50f717(0x20a)]({'attributes':{'class':[$o]}});}[_0x527666(0x1e1)](){const _0xf285b7=_0x527666;super[_0xf285b7(0x1e1)](),this[_0xf285b7(0x234)][_0xf285b7(0x25f)](this[_0xf285b7(0x1ec)]);}[_0x527666(0x1e5)](){const _0x8a3285=_0x527666,_0x584a4e=new _0x35ce79();return _0x584a4e[_0x8a3285(0x1d6)]=_0x18e363,_0x584a4e[_0x8a3285(0x20a)]({'attributes':{'class':$o+_0x8a3285(0x1e4)}}),_0x584a4e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
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 _0x1fd439=_0x19a2;(function(_0x25aa01,_0x434cd2){const _0x38f0f7=_0x19a2,_0x580fba=_0x25aa01();while(!![]){try{const _0x4b7a12=parseInt(_0x38f0f7(0xa8))/0x1*(parseInt(_0x38f0f7(0xcf))/0x2)+parseInt(_0x38f0f7(0xd1))/0x3+parseInt(_0x38f0f7(0xeb))/0x4*(-parseInt(_0x38f0f7(0xc7))/0x5)+-parseInt(_0x38f0f7(0xc5))/0x6+parseInt(_0x38f0f7(0xac))/0x7+-parseInt(_0x38f0f7(0x95))/0x8+parseInt(_0x38f0f7(0xc3))/0x9;if(_0x4b7a12===_0x434cd2)break;else _0x580fba['push'](_0x580fba['shift']());}catch(_0x1f2f32){_0x580fba['push'](_0x580fba['shift']());}}}(_0x17d2,0x5534c));import{Collection as _0xb15c77}from'ckeditor5/src/utils.js';import{IconAI as _0x54ec4a,IconBulb as _0x1a02c7,IconWeb as _0x5764e0}from'@ckeditor/ckeditor5-icons';function _0x17d2(){const _0x3897be=['1341357QDUmpQ','Commands\x20are\x20not\x20implemented\x20yet.','AI_CHAT_CAPABILITIES_NO','clear','disableModelSelector','locale','selectModel','AI_CHAT_ENABLE_WEB_SEARCH','fire','bind','description','reasoningActive','add','bindTemplate','ck-ai-chat-controls__model-selection__item-name','enableModelSelector','_createCommandsButton','_createModelSelectionDropdown','setTemplate','ck-ai-chat-controls__model-selection__item-description','button','ck-ai-chat__prompt-capabilities','text','capabilities','extendTemplate','_webSearchButton','708qSPSPy','ck-ai-chat-controls__model-selection','_modelSelectionDropdownItems','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','toggleReasoning','log','webSearch','_createWebSearchButton','ck-hidden','_modelNameView','tooltip','2224112nTvqBD','label','modelSelectorEnabled','span','reasoning','_commandsButton','enabled','_reasoningButton','isOn','listenTo','setModel','setModelList','ck-ai-chat-controls__model-name','_getCapabilityParts','activeModelId','setReasoning','source','webSearchActive','setWebSearch','508903eKZskT','ck-button__label','_createReasoningButton','ck-ai-button-tertiary','555114rBDqbQ','AI_CHAT_SEARCH_WEB','createCollection','name','addMany','hidden','toggleWebSearch','buttonView','AI_CHAT_DISABLE_WEB_SEARCH','execute','modelDisplayMode','model','_modelSelectionDropdown','AI_CHAT_CAPABILITIES_YES','ck-ai-chat-controls-button--commands','isEnabled','content','length','AI_CHAT_REASONING','set','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','style','ck-ai-chat-controls-button','6598890EzKanz','ck-ai-chat-controls__model-selection__item-capabilities','3305202sCEJrO','activeModelName','16685agsAWq','isVisible','AI_CHAT_COMMANDS','selector','menuitemradio','div','AI_CHAT_ENABLE_REASONING','_createModelNameView','2HOSxsP','AI_CHAT_DISABLE_REASONING'];_0x17d2=function(){return _0x3897be;};return _0x17d2();}import{addListToDropdown as _0x3e316d,ButtonLabelView as _0x192d48,ButtonView as _0x4b7642,createDropdown as _0x1b6c66,IconView as _0x343b5b,UIModel as _0x32e5ec,View as _0x36431d}from'ckeditor5/src/ui.js';import{getTranslation as _0xc77509}from'../../../aicore/utils/common-translations.js';function _0x19a2(_0x2d1583,_0xff7d4a){const _0x17d25d=_0x17d2();return _0x19a2=function(_0x19a2a8,_0x4e21c6){_0x19a2a8=_0x19a2a8-0x92;let _0x2ff451=_0x17d25d[_0x19a2a8];return _0x2ff451;},_0x19a2(_0x2d1583,_0xff7d4a);}const zo=_0x1fd439(0xe6),Fo=_0x1fd439(0xc2),Jo=_0x1fd439(0xba),Ko=_0x1fd439(0xab),Qo=_0x1fd439(0xec),Zo=_0x1fd439(0xdf),tl=_0x1fd439(0xe4),el=_0x1fd439(0xc4),il='n';export class AIChatPromptCapabilitiesView extends _0x36431d{[_0x1fd439(0xea)];[_0x1fd439(0x9c)];[_0x1fd439(0x9a)];[_0x1fd439(0xb8)];[_0x1fd439(0xed)];[_0x1fd439(0x93)];constructor(_0x30abb6){const _0x2b76bd=_0x1fd439;super(_0x30abb6),this[_0x2b76bd(0xbf)](_0x2b76bd(0xa6),!0x1),this[_0x2b76bd(0xbf)](_0x2b76bd(0xdc),!0x1),this[_0x2b76bd(0xbf)](_0x2b76bd(0xb6),_0x2b76bd(0xca)),this[_0x2b76bd(0xbf)](_0x2b76bd(0x97),!0x0),this[_0x2b76bd(0xbf)](_0x2b76bd(0xa3),null),this[_0x2b76bd(0xbf)](_0x2b76bd(0xc6),null),this[_0x2b76bd(0xb8)]=this[_0x2b76bd(0xe2)](),this[_0x2b76bd(0x93)]=this[_0x2b76bd(0xce)](),this[_0x2b76bd(0xea)]=this[_0x2b76bd(0xf2)](),this[_0x2b76bd(0x9c)]=this[_0x2b76bd(0xaa)](),this[_0x2b76bd(0x9a)]=this[_0x2b76bd(0xe1)](),this[_0x2b76bd(0xb8)][_0x2b76bd(0xb3)][_0x2b76bd(0xda)](_0x2b76bd(0xc8))['to'](this,_0x2b76bd(0xb6),_0x5748a6=>_0x2b76bd(0xca)===_0x5748a6),this[_0x2b76bd(0xb8)][_0x2b76bd(0xb3)][_0x2b76bd(0xda)](_0x2b76bd(0x94))['to'](this,_0x2b76bd(0x97),_0x3676c7=>_0x3676c7?this[_0x2b76bd(0xb8)][_0x2b76bd(0xb3)][_0x2b76bd(0x96)]:_0xc77509(this[_0x2b76bd(0xd6)],_0x2b76bd(0xee))),this[_0x2b76bd(0xb8)][_0x2b76bd(0xda)](_0x2b76bd(0xbb))['to'](this,_0x2b76bd(0x97),_0x549cd8=>_0x549cd8),this[_0x2b76bd(0xea)][_0x2b76bd(0xda)](_0x2b76bd(0x9d))['to'](this,_0x2b76bd(0xa6),_0x2a1b3f=>_0x2a1b3f),this[_0x2b76bd(0xea)][_0x2b76bd(0xda)](_0x2b76bd(0x94))['to'](this,_0x2b76bd(0xa6),_0x355f76=>_0xc77509(this[_0x2b76bd(0xd6)],_0x355f76?_0x2b76bd(0xb4):_0x2b76bd(0xd8))),this[_0x2b76bd(0x9c)][_0x2b76bd(0xda)](_0x2b76bd(0x9d))['to'](this,_0x2b76bd(0xdc),_0x454013=>_0x454013),this[_0x2b76bd(0x9c)][_0x2b76bd(0xda)](_0x2b76bd(0x94))['to'](this,_0x2b76bd(0xdc),_0x2df07b=>_0xc77509(this[_0x2b76bd(0xd6)],_0x2df07b?_0x2b76bd(0xd0):_0x2b76bd(0xcd))),this[_0x2b76bd(0xe3)]({'tag':_0x2b76bd(0xcc),'attributes':{'class':[zo]},'children':[this[_0x2b76bd(0xb8)],this[_0x2b76bd(0x93)],this[_0x2b76bd(0xea)],this[_0x2b76bd(0x9c)],this[_0x2b76bd(0x9a)]]}),this[_0x2b76bd(0xed)]=new _0xb15c77(),_0x3e316d(this[_0x2b76bd(0xb8)],this[_0x2b76bd(0xed)]);}[_0x1fd439(0xa0)](_0x3d07c2,_0x3916d9){const _0x13338e=_0x1fd439;if(_0x3916d9)this[_0x13338e(0xbf)](_0x13338e(0xb6),_0x13338e(0xb1));else{const _0x46e2cd=0x1===_0x3d07c2[_0x13338e(0xbd)];this[_0x13338e(0xbf)](_0x13338e(0xb6),_0x46e2cd?_0x13338e(0xaf):_0x13338e(0xca));}if(this[_0x13338e(0xed)][_0x13338e(0xd4)](),_0x3d07c2?.[_0x13338e(0xbd)])for(const _0x5f4f01 of _0x3d07c2){const _0x3d2592=new _0x32e5ec({'label':_0x5f4f01[_0x13338e(0xaf)],'withText':!0x0,'role':_0x13338e(0xcb),'id':_0x5f4f01['id'],'model':_0x5f4f01});_0x3d2592[_0x13338e(0xda)](_0x13338e(0x9d))['to'](this,_0x13338e(0xa3),_0x40608a=>_0x40608a===_0x5f4f01['id']),this[_0x13338e(0xed)][_0x13338e(0xdd)]({'type':_0x13338e(0xe5),'model':_0x3d2592,'labelView':new po(this[_0x13338e(0xd6)],_0x5f4f01)});}}[_0x1fd439(0xa7)](_0x3734b3){const _0x57c5c2=_0x1fd439;this[_0x57c5c2(0xbf)](_0x57c5c2(0xa6),_0x3734b3);}[_0x1fd439(0xa4)](_0x1554a3){const _0x59ed5c=_0x1fd439;this[_0x59ed5c(0xbf)](_0x59ed5c(0xdc),_0x1554a3);}[_0x1fd439(0x9f)](_0x24730f){const _0x2db21c=_0x1fd439;if(!_0x24730f)return;this[_0x2db21c(0xa3)]=_0x24730f['id'],this[_0x2db21c(0xc6)]=_0x24730f[_0x2db21c(0xaf)]||_0x24730f['id'],this[_0x2db21c(0xb8)][_0x2db21c(0xb3)][_0x2db21c(0xbf)](_0x2db21c(0x96),_0x24730f[_0x2db21c(0xaf)]),this[_0x2db21c(0xb8)][_0x2db21c(0xb3)][_0x2db21c(0xbf)](_0x2db21c(0x94),_0x24730f[_0x2db21c(0xaf)]);const _0x274eb6=_0x24730f[_0x2db21c(0xe8)][_0x2db21c(0xf1)]?.[_0x2db21c(0x9b)]??!0x1;this[_0x2db21c(0xbf)](_0x2db21c(0xa6),!0x1),this[_0x2db21c(0xea)][_0x2db21c(0xbf)](_0x2db21c(0x9d),!0x1),this[_0x2db21c(0xea)][_0x2db21c(0xbf)](_0x2db21c(0xbb),_0x274eb6),this[_0x2db21c(0xea)][_0x2db21c(0xbf)](_0x2db21c(0xc8),_0x274eb6);const _0x469aa4=_0x24730f[_0x2db21c(0xe8)][_0x2db21c(0x99)]?.[_0x2db21c(0x9b)]??!0x1;this[_0x2db21c(0xbf)](_0x2db21c(0xdc),!0x1),this[_0x2db21c(0x9c)][_0x2db21c(0xbf)](_0x2db21c(0x9d),!0x1),this[_0x2db21c(0x9c)][_0x2db21c(0xbf)](_0x2db21c(0xbb),_0x469aa4),this[_0x2db21c(0x9c)][_0x2db21c(0xbf)](_0x2db21c(0xc8),_0x469aa4);}[_0x1fd439(0xe0)](){const _0x1de899=_0x1fd439;this[_0x1de899(0xbf)](_0x1de899(0x97),!0x0);}[_0x1fd439(0xd5)](_0xdce832){const _0xe8f32f=_0x1fd439;this[_0xe8f32f(0xbf)](_0xe8f32f(0x97),!0x1),_0xdce832&&this[_0xe8f32f(0xbf)](_0xe8f32f(0xb6),_0xe8f32f(0xb1));}[_0x1fd439(0xf2)](){const _0x3a8acc=_0x1fd439,_0x4e4617=new _0x4b7642();return _0x4e4617[_0x3a8acc(0xbf)]({'label':_0xc77509(this[_0x3a8acc(0xd6)],_0x3a8acc(0xad)),'icon':_0x5764e0,'class':Fo,'isToggleable':!0x0,'tooltipPosition':il}),_0x4e4617['on'](_0x3a8acc(0xb5),()=>{const _0x2430a6=_0x3a8acc;this[_0x2430a6(0xd9)](_0x2430a6(0xb2));}),_0x4e4617;}[_0x1fd439(0xaa)](){const _0x360f08=_0x1fd439,_0x2f4d03=new _0x4b7642();return _0x2f4d03[_0x360f08(0xbf)]({'label':_0xc77509(this[_0x360f08(0xd6)],_0x360f08(0xbe)),'icon':_0x1a02c7,'class':Fo,'isToggleable':!0x0,'tooltipPosition':il}),_0x2f4d03['on'](_0x360f08(0xb5),()=>{const _0x5f5847=_0x360f08;this[_0x5f5847(0xd9)](_0x5f5847(0xef));}),_0x2f4d03;}[_0x1fd439(0xe1)](){const _0x4ef363=_0x1fd439,_0x160e88=new _0x4b7642();return _0x160e88[_0x4ef363(0xbf)]({'label':_0xc77509(this[_0x4ef363(0xd6)],_0x4ef363(0xc9)),'icon':_0x54ec4a,'withText':!0x0,'class':Fo,'isToggleable':!0x0,'tooltip':_0xc77509(this[_0x4ef363(0xd6)],_0x4ef363(0xc9)),'tooltipPosition':il}),_0x160e88[_0x4ef363(0xe9)]({'attributes':{'class':[Jo]}}),_0x160e88['on'](_0x4ef363(0xb5),()=>{const _0x28fd74=_0x4ef363;console[_0x28fd74(0xf0)](_0x28fd74(0xd2)),alert(_0x28fd74(0xd2));}),_0x160e88;}[_0x1fd439(0xe2)](){const _0x402965=_0x1fd439,_0x4b16aa=_0x1b6c66(this[_0x402965(0xd6)]);return _0x4b16aa[_0x402965(0xbf)]({'panelPosition':'ne','class':[Qo]}),_0x4b16aa[_0x402965(0xb3)][_0x402965(0xbf)]({'label':_0xc77509(this[_0x402965(0xd6)],_0x402965(0xc0)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':il,'class':Ko}),this[_0x402965(0x9e)](_0x4b16aa,_0x402965(0xb5),_0x22c3b7=>{const _0x2ea6df=_0x402965;this[_0x2ea6df(0xd9)](_0x2ea6df(0xd7),_0x22c3b7[_0x2ea6df(0xa5)][_0x2ea6df(0xb7)]);}),_0x4b16aa;}[_0x1fd439(0xce)](){const _0x41cb67=_0x1fd439,_0x46bb0c=new wo(this[_0x41cb67(0xd6)]);return _0x46bb0c[_0x41cb67(0xda)](_0x41cb67(0xe7))['to'](this,_0x41cb67(0xc6),_0x3f84d2=>_0x3f84d2??''),_0x46bb0c[_0x41cb67(0xda)](_0x41cb67(0xc8))['to'](this,_0x41cb67(0xb6),_0x1a4e8d=>_0x41cb67(0xaf)===_0x1a4e8d),_0x46bb0c;}}class po extends _0x192d48{constructor(_0x3af381,_0x12317f){const _0x7a585d=_0x1fd439;super();const _0x43dd4f=this[_0x7a585d(0xde)],_0x134072=this[_0x7a585d(0xae)]();this[_0x7a585d(0xe3)]({'tag':_0x7a585d(0xcc),'attributes':{'class':['ck',_0x7a585d(0xa9)],'style':_0x43dd4f['to'](_0x7a585d(0xc1)),'id':_0x43dd4f['to']('id')},'children':[{'tag':_0x7a585d(0xcc),'attributes':{'class':[Zo]},'children':[{'text':_0x43dd4f['to'](_0x7a585d(0xe7))}]},{'tag':_0x7a585d(0xcc),'attributes':{'class':[tl]},'children':[{'tag':_0x7a585d(0x98),'children':[{'text':_0x12317f[_0x7a585d(0xdb)]}]}]},{'tag':_0x7a585d(0xcc),'attributes':{'class':[el]},'children':_0x134072}]}),_0x134072[_0x7a585d(0xb0)](this[_0x7a585d(0xa2)](_0x3af381,_0x5764e0,_0x7a585d(0xad),_0x12317f[_0x7a585d(0xe8)][_0x7a585d(0xf1)]?.[_0x7a585d(0x9b)]??!0x1)),_0x134072[_0x7a585d(0xb0)](this[_0x7a585d(0xa2)](_0x3af381,_0x1a02c7,_0x7a585d(0xbe),_0x12317f[_0x7a585d(0xe8)][_0x7a585d(0x99)]?.[_0x7a585d(0x9b)]??!0x1));}[_0x1fd439(0xa2)](_0x3026d0,_0x3a44bf,_0x18605b,_0x5d0b05){const _0x21d7a1=_0x1fd439,_0x2cdea8=new _0x343b5b();_0x2cdea8[_0x21d7a1(0xbc)]=_0x3a44bf;const _0x1b8d79=new _0x36431d(_0x3026d0);_0x1b8d79[_0x21d7a1(0xe3)]({'tag':_0x21d7a1(0x98),'children':[{'text':_0xc77509(_0x3026d0,_0x18605b)+':\x20'}]});const _0x1c2dfd=new _0x36431d(_0x3026d0);return _0x1c2dfd[_0x21d7a1(0xe3)]({'tag':_0x21d7a1(0x98),'children':[{'text':_0xc77509(_0x3026d0,_0x5d0b05?_0x21d7a1(0xb9):_0x21d7a1(0xd3))}]}),[_0x2cdea8,_0x1b8d79,_0x1c2dfd];}}class wo extends _0x36431d{constructor(_0x440f1d){const _0x4861f5=_0x1fd439;super(_0x440f1d),this[_0x4861f5(0xbf)](_0x4861f5(0xe7),void 0x0),this[_0x4861f5(0xbf)](_0x4861f5(0xc8),!0x0);const _0x19d8aa=this[_0x4861f5(0xde)];this[_0x4861f5(0xe3)]({'tag':_0x4861f5(0x98),'attributes':{'class':['ck',_0x4861f5(0xa1),_0x19d8aa['if'](_0x4861f5(0xc8),_0x4861f5(0x92),_0x323986=>!_0x323986)]},'children':[{'text':_0x19d8aa['to'](_0x4861f5(0xe7))}]});}}
|
|
23
|
+
const _0x33da45=_0x17a7;(function(_0xd6828c,_0x321a7f){const _0x4fa424=_0x17a7,_0x2333cf=_0xd6828c();while(!![]){try{const _0x2382e1=parseInt(_0x4fa424(0x1fa))/0x1*(-parseInt(_0x4fa424(0x208))/0x2)+parseInt(_0x4fa424(0x1dd))/0x3*(parseInt(_0x4fa424(0x1f2))/0x4)+parseInt(_0x4fa424(0x1c2))/0x5*(parseInt(_0x4fa424(0x1b6))/0x6)+parseInt(_0x4fa424(0x1f0))/0x7+-parseInt(_0x4fa424(0x1c1))/0x8+-parseInt(_0x4fa424(0x1c3))/0x9+-parseInt(_0x4fa424(0x204))/0xa*(parseInt(_0x4fa424(0x1d8))/0xb);if(_0x2382e1===_0x321a7f)break;else _0x2333cf['push'](_0x2333cf['shift']());}catch(_0x12a6b4){_0x2333cf['push'](_0x2333cf['shift']());}}}(_0xfab6,0xccfe4));import{Collection as _0x816b8}from'ckeditor5/src/utils.js';import{IconAI as _0x31d228,IconBulb as _0x25bdd4,IconWeb as _0x152487}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x32617f,ButtonLabelView as _0x38ff7b,ButtonView as _0x329f5e,createDropdown as _0x584b18,IconView as _0x3d2978,UIModel as _0x2f41fb,View as _0x1f251e}from'ckeditor5/src/ui.js';import{getTranslation as _0x357284}from'../../../aicore/utils/common-translations.js';const Yo=_0x33da45(0x20b),yo=_0x33da45(0x20e),Jo=_0x33da45(0x20f),Ko=_0x33da45(0x214),Qo=_0x33da45(0x1cb),Zo=_0x33da45(0x1ea),tl=_0x33da45(0x203),el=_0x33da45(0x1ca),il='n';function _0x17a7(_0x5d0d76,_0x9034ef){const _0xfab697=_0xfab6();return _0x17a7=function(_0x17a76b,_0x4e783a){_0x17a76b=_0x17a76b-0x1b2;let _0x14700c=_0xfab697[_0x17a76b];return _0x14700c;},_0x17a7(_0x5d0d76,_0x9034ef);}export class AIChatPromptCapabilitiesView extends _0x1f251e{[_0x33da45(0x1db)];[_0x33da45(0x1bc)];[_0x33da45(0x1bd)];[_0x33da45(0x202)];[_0x33da45(0x1b4)];[_0x33da45(0x1de)];constructor(_0x49d78b){const _0x1e9343=_0x33da45;super(_0x49d78b),this[_0x1e9343(0x1b8)](_0x1e9343(0x1ec),!0x1),this[_0x1e9343(0x1b8)](_0x1e9343(0x1da),!0x1),this[_0x1e9343(0x1b8)](_0x1e9343(0x1e5),_0x1e9343(0x1f1)),this[_0x1e9343(0x1b8)](_0x1e9343(0x210),!0x0),this[_0x1e9343(0x1b8)](_0x1e9343(0x200),null),this[_0x1e9343(0x1b8)](_0x1e9343(0x1b7),null),this[_0x1e9343(0x202)]=this[_0x1e9343(0x1f8)](),this[_0x1e9343(0x1de)]=this[_0x1e9343(0x1df)](),this[_0x1e9343(0x1db)]=this[_0x1e9343(0x1e7)](),this[_0x1e9343(0x1bc)]=this[_0x1e9343(0x1f7)](),this[_0x1e9343(0x1bd)]=this[_0x1e9343(0x1d9)](),this[_0x1e9343(0x202)][_0x1e9343(0x1cf)][_0x1e9343(0x1b2)](_0x1e9343(0x1c5))['to'](this,_0x1e9343(0x1e5),_0x4d6c4f=>_0x1e9343(0x1f1)===_0x4d6c4f),this[_0x1e9343(0x202)][_0x1e9343(0x1cf)][_0x1e9343(0x1b2)](_0x1e9343(0x1f9))['to'](this,_0x1e9343(0x210),_0xd0629c=>_0xd0629c?this[_0x1e9343(0x202)][_0x1e9343(0x1cf)][_0x1e9343(0x1e4)]:_0x357284(this[_0x1e9343(0x213)],_0x1e9343(0x1b3))),this[_0x1e9343(0x202)][_0x1e9343(0x1b2)](_0x1e9343(0x1e3))['to'](this,_0x1e9343(0x210),_0x499877=>_0x499877),this[_0x1e9343(0x1db)][_0x1e9343(0x1b2)](_0x1e9343(0x207))['to'](this,_0x1e9343(0x1ec),_0xff0b98=>_0xff0b98),this[_0x1e9343(0x1db)][_0x1e9343(0x1b2)](_0x1e9343(0x1f9))['to'](this,_0x1e9343(0x1ec),_0x1770f1=>_0x357284(this[_0x1e9343(0x213)],_0x1770f1?_0x1e9343(0x1bf):_0x1e9343(0x212))),this[_0x1e9343(0x1bc)][_0x1e9343(0x1b2)](_0x1e9343(0x207))['to'](this,_0x1e9343(0x1da),_0x3640e0=>_0x3640e0),this[_0x1e9343(0x1bc)][_0x1e9343(0x1b2)](_0x1e9343(0x1f9))['to'](this,_0x1e9343(0x1da),_0x20a1f1=>_0x357284(this[_0x1e9343(0x213)],_0x20a1f1?_0x1e9343(0x1d3):_0x1e9343(0x1f4))),this[_0x1e9343(0x1fc)]({'tag':_0x1e9343(0x1f6),'attributes':{'class':[Yo]},'children':[this[_0x1e9343(0x202)],this[_0x1e9343(0x1de)],this[_0x1e9343(0x1db)],this[_0x1e9343(0x1bc)],this[_0x1e9343(0x1bd)]]}),this[_0x1e9343(0x1b4)]=new _0x816b8(),_0x32617f(this[_0x1e9343(0x202)],this[_0x1e9343(0x1b4)]);}[_0x33da45(0x1c6)](_0x5e11dd,_0x336af1){const _0xac5248=_0x33da45;if(_0x336af1)this[_0xac5248(0x1b8)](_0xac5248(0x1e5),_0xac5248(0x1bb));else{const _0x2178bd=0x1===_0x5e11dd[_0xac5248(0x211)];this[_0xac5248(0x1b8)](_0xac5248(0x1e5),_0x2178bd?_0xac5248(0x1be):_0xac5248(0x1f1));}if(this[_0xac5248(0x1b4)][_0xac5248(0x1e0)](),_0x5e11dd?.[_0xac5248(0x211)])for(const _0x120105 of _0x5e11dd){const _0x8ec852=new _0x2f41fb({'label':_0x120105[_0xac5248(0x1be)],'withText':!0x0,'role':_0xac5248(0x206),'id':_0x120105['id'],'model':_0x120105});_0x8ec852[_0xac5248(0x1b2)](_0xac5248(0x207))['to'](this,_0xac5248(0x200),_0xdee76c=>_0xdee76c===_0x120105['id']),this[_0xac5248(0x1b4)][_0xac5248(0x1c9)]({'type':_0xac5248(0x1d6),'model':_0x8ec852,'labelView':new ModelButtonLabelView(this[_0xac5248(0x213)],_0x120105)});}}[_0x33da45(0x1ba)](_0xe4bde1){const _0x44bd40=_0x33da45;this[_0x44bd40(0x1b8)](_0x44bd40(0x1ec),_0xe4bde1);}[_0x33da45(0x1e1)](_0x44ccd0){const _0x2dda53=_0x33da45;this[_0x2dda53(0x1b8)](_0x2dda53(0x1da),_0x44ccd0);}[_0x33da45(0x205)](_0x3d4e00){const _0x1d2d14=_0x33da45;if(!_0x3d4e00)return;this[_0x1d2d14(0x200)]=_0x3d4e00['id'],this[_0x1d2d14(0x1b7)]=_0x3d4e00[_0x1d2d14(0x1be)]||_0x3d4e00['id'],this[_0x1d2d14(0x202)][_0x1d2d14(0x1cf)][_0x1d2d14(0x1b8)](_0x1d2d14(0x1e4),_0x3d4e00[_0x1d2d14(0x1be)]),this[_0x1d2d14(0x202)][_0x1d2d14(0x1cf)][_0x1d2d14(0x1b8)](_0x1d2d14(0x1f9),_0x3d4e00[_0x1d2d14(0x1be)]);const _0x1d2576=_0x3d4e00[_0x1d2d14(0x20d)][_0x1d2d14(0x20c)]?.[_0x1d2d14(0x1c4)]??!0x1;this[_0x1d2d14(0x1b8)](_0x1d2d14(0x1ec),!0x1),this[_0x1d2d14(0x1db)][_0x1d2d14(0x1b8)](_0x1d2d14(0x207),!0x1),this[_0x1d2d14(0x1db)][_0x1d2d14(0x1b8)](_0x1d2d14(0x1e3),_0x1d2576),this[_0x1d2d14(0x1db)][_0x1d2d14(0x1b8)](_0x1d2d14(0x1c5),_0x1d2576);const _0x3dc05e=_0x3d4e00[_0x1d2d14(0x20d)][_0x1d2d14(0x209)]?.[_0x1d2d14(0x1c4)]??!0x1;this[_0x1d2d14(0x1b8)](_0x1d2d14(0x1da),!0x1),this[_0x1d2d14(0x1bc)][_0x1d2d14(0x1b8)](_0x1d2d14(0x207),!0x1),this[_0x1d2d14(0x1bc)][_0x1d2d14(0x1b8)](_0x1d2d14(0x1e3),_0x3dc05e),this[_0x1d2d14(0x1bc)][_0x1d2d14(0x1b8)](_0x1d2d14(0x1c5),_0x3dc05e);}[_0x33da45(0x1ef)](){const _0x4e4e28=_0x33da45;this[_0x4e4e28(0x1b8)](_0x4e4e28(0x210),!0x0);}[_0x33da45(0x201)](_0x151a0a){const _0x4d63c9=_0x33da45;this[_0x4d63c9(0x1b8)](_0x4d63c9(0x210),!0x1),_0x151a0a&&this[_0x4d63c9(0x1b8)](_0x4d63c9(0x1e5),_0x4d63c9(0x1bb));}[_0x33da45(0x1e7)](){const _0xd797e1=_0x33da45,_0x105f1c=new _0x329f5e();return _0x105f1c[_0xd797e1(0x1b8)]({'label':_0x357284(this[_0xd797e1(0x213)],_0xd797e1(0x1b5)),'icon':_0x152487,'class':yo,'isToggleable':!0x0,'tooltipPosition':il}),_0x105f1c['on'](_0xd797e1(0x1fd),()=>{const _0x44e8d7=_0xd797e1;this[_0x44e8d7(0x1f5)](_0x44e8d7(0x1ee));}),_0x105f1c;}[_0x33da45(0x1f7)](){const _0x397e36=_0x33da45,_0x191f93=new _0x329f5e();return _0x191f93[_0x397e36(0x1b8)]({'label':_0x357284(this[_0x397e36(0x213)],_0x397e36(0x1ff)),'icon':_0x25bdd4,'class':yo,'isToggleable':!0x0,'tooltipPosition':il}),_0x191f93['on'](_0x397e36(0x1fd),()=>{const _0x2b0bc2=_0x397e36;this[_0x2b0bc2(0x1f5)](_0x2b0bc2(0x1ed));}),_0x191f93;}[_0x33da45(0x1d9)](){const _0x2b0dc0=_0x33da45,_0x57c1a1=new _0x329f5e();return _0x57c1a1[_0x2b0dc0(0x1b8)]({'label':_0x357284(this[_0x2b0dc0(0x213)],_0x2b0dc0(0x1d4)),'icon':_0x31d228,'withText':!0x0,'class':yo,'isToggleable':!0x0,'tooltip':_0x357284(this[_0x2b0dc0(0x213)],_0x2b0dc0(0x1d4)),'tooltipPosition':il}),_0x57c1a1[_0x2b0dc0(0x1eb)]({'attributes':{'class':[Jo]}}),_0x57c1a1['on'](_0x2b0dc0(0x1fd),()=>{const _0x11baba=_0x2b0dc0;console[_0x11baba(0x20a)](_0x11baba(0x1d7)),alert(_0x11baba(0x1d7));}),_0x57c1a1;}[_0x33da45(0x1f8)](){const _0x52ec98=_0x33da45,_0x373646=_0x584b18(this[_0x52ec98(0x213)]);return _0x373646[_0x52ec98(0x1b8)]({'panelPosition':'ne','class':[Qo]}),_0x373646[_0x52ec98(0x1cf)][_0x52ec98(0x1b8)]({'label':_0x357284(this[_0x52ec98(0x213)],_0x52ec98(0x1b9)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':il,'class':Ko}),this[_0x52ec98(0x1c8)](_0x373646,_0x52ec98(0x1fd),_0x14de1b=>{const _0x29691=_0x52ec98;this[_0x29691(0x1f5)](_0x29691(0x1e9),_0x14de1b[_0x29691(0x1c7)][_0x29691(0x1cc)]);}),_0x373646;}[_0x33da45(0x1df)](){const _0xf25f84=_0x33da45,_0x1fbd7a=new ModelNameView(this[_0xf25f84(0x213)]);return _0x1fbd7a[_0xf25f84(0x1b2)](_0xf25f84(0x1dc))['to'](this,_0xf25f84(0x1b7),_0x3d7213=>_0x3d7213??''),_0x1fbd7a[_0xf25f84(0x1b2)](_0xf25f84(0x1c5))['to'](this,_0xf25f84(0x1e5),_0xe6aad1=>_0xf25f84(0x1be)===_0xe6aad1),_0x1fbd7a;}}function _0xfab6(){const _0x399409=['text','498yjvETU','_modelNameView','_createModelNameView','clear','setReasoning','addMany','isEnabled','label','modelDisplayMode','ck-hidden','_createWebSearchButton','AI_CHAT_CAPABILITIES_NO','selectModel','ck-ai-chat-controls__model-selection__item-name','extendTemplate','webSearchActive','toggleReasoning','toggleWebSearch','enableModelSelector','7704620XnFkaJ','selector','33324xvKRZR','style','AI_CHAT_ENABLE_REASONING','fire','div','_createReasoningButton','_createModelSelectionDropdown','tooltip','1tZglIq','content','setTemplate','execute','span','AI_CHAT_REASONING','activeModelId','disableModelSelector','_modelSelectionDropdown','ck-ai-chat-controls__model-selection__item-description','40dIOfhc','setModel','menuitemradio','isOn','1073062EGsBVB','reasoning','log','ck-ai-chat__prompt-capabilities','webSearch','capabilities','ck-ai-chat-controls-button','ck-ai-chat-controls-button--commands','modelSelectorEnabled','length','AI_CHAT_ENABLE_WEB_SEARCH','locale','ck-ai-button-tertiary','bind','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','_modelSelectionDropdownItems','AI_CHAT_SEARCH_WEB','5297502gwHNVj','activeModelName','set','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','setWebSearch','hidden','_reasoningButton','_commandsButton','name','AI_CHAT_DISABLE_WEB_SEARCH','bindTemplate','1626872YiCiJV','5FumLxb','10667565acoPfK','enabled','isVisible','setModelList','source','listenTo','add','ck-ai-chat-controls__model-selection__item-capabilities','ck-ai-chat-controls__model-selection','model','ck-button__label','_getCapabilityParts','buttonView','AI_CHAT_CAPABILITIES_YES','ck-ai-chat-controls__model-name','description','AI_CHAT_DISABLE_REASONING','AI_CHAT_COMMANDS','createCollection','button','Commands\x20are\x20not\x20implemented\x20yet.','1654664LXnTaD','_createCommandsButton','reasoningActive','_webSearchButton'];_0xfab6=function(){return _0x399409;};return _0xfab6();}class ModelButtonLabelView extends _0x38ff7b{constructor(_0xfbd559,_0x3d9160){const _0x1d8729=_0x33da45;super();const _0x36520f=this[_0x1d8729(0x1c0)],_0x503982=this[_0x1d8729(0x1d5)]();this[_0x1d8729(0x1fc)]({'tag':_0x1d8729(0x1f6),'attributes':{'class':['ck',_0x1d8729(0x1cd)],'style':_0x36520f['to'](_0x1d8729(0x1f3)),'id':_0x36520f['to']('id')},'children':[{'tag':_0x1d8729(0x1f6),'attributes':{'class':[Zo]},'children':[{'text':_0x36520f['to'](_0x1d8729(0x1dc))}]},{'tag':_0x1d8729(0x1f6),'attributes':{'class':[tl]},'children':[{'tag':_0x1d8729(0x1fe),'children':[{'text':_0x3d9160[_0x1d8729(0x1d2)]}]}]},{'tag':_0x1d8729(0x1f6),'attributes':{'class':[el]},'children':_0x503982}]}),_0x503982[_0x1d8729(0x1e2)](this[_0x1d8729(0x1ce)](_0xfbd559,_0x152487,_0x1d8729(0x1b5),_0x3d9160[_0x1d8729(0x20d)][_0x1d8729(0x20c)]?.[_0x1d8729(0x1c4)]??!0x1)),_0x503982[_0x1d8729(0x1e2)](this[_0x1d8729(0x1ce)](_0xfbd559,_0x25bdd4,_0x1d8729(0x1ff),_0x3d9160[_0x1d8729(0x20d)][_0x1d8729(0x209)]?.[_0x1d8729(0x1c4)]??!0x1));}[_0x33da45(0x1ce)](_0x1884e0,_0xeedf49,_0x493b89,_0x48d10e){const _0x506caa=_0x33da45,_0x1e2fe4=new _0x3d2978();_0x1e2fe4[_0x506caa(0x1fb)]=_0xeedf49;const _0x2c6fa8=new _0x1f251e(_0x1884e0);_0x2c6fa8[_0x506caa(0x1fc)]({'tag':_0x506caa(0x1fe),'children':[{'text':_0x357284(_0x1884e0,_0x493b89)+':\x20'}]});const _0x36c974=new _0x1f251e(_0x1884e0);return _0x36c974[_0x506caa(0x1fc)]({'tag':_0x506caa(0x1fe),'children':[{'text':_0x357284(_0x1884e0,_0x48d10e?_0x506caa(0x1d0):_0x506caa(0x1e8))}]}),[_0x1e2fe4,_0x2c6fa8,_0x36c974];}}class ModelNameView extends _0x1f251e{constructor(_0x1bc3b6){const _0x218e3d=_0x33da45;super(_0x1bc3b6),this[_0x218e3d(0x1b8)](_0x218e3d(0x1dc),void 0x0),this[_0x218e3d(0x1b8)](_0x218e3d(0x1c5),!0x0);const _0x3f9d2b=this[_0x218e3d(0x1c0)];this[_0x218e3d(0x1fc)]({'tag':_0x218e3d(0x1fe),'attributes':{'class':['ck',_0x218e3d(0x1d1),_0x3f9d2b['if'](_0x218e3d(0x1c5),_0x218e3d(0x1e6),_0x37d5ff=>!_0x37d5ff)]},'children':[{'text':_0x3f9d2b['to'](_0x218e3d(0x1dc))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x31b611=_0x1016;(function(_0x58c693,_0x440da0){const _0x12d2f5=_0x1016,_0x58aea0=_0x58c693();while(!![]){try{const _0x3dcb84=parseInt(_0x12d2f5(0x1ae))/0x1*(-parseInt(_0x12d2f5(0x1b6))/0x2)+-parseInt(_0x12d2f5(0x195))/0x3*(-parseInt(_0x12d2f5(0x1b7))/0x4)+-parseInt(_0x12d2f5(0x1b8))/0x5*(-parseInt(_0x12d2f5(0x184))/0x6)+parseInt(_0x12d2f5(0x17d))/0x7*(-parseInt(_0x12d2f5(0x1a0))/0x8)+-parseInt(_0x12d2f5(0x191))/0x9*(-parseInt(_0x12d2f5(0x1b3))/0xa)+parseInt(_0x12d2f5(0x194))/0xb*(parseInt(_0x12d2f5(0x178))/0xc)+-parseInt(_0x12d2f5(0x186))/0xd;if(_0x3dcb84===_0x440da0)break;else _0x58aea0['push'](_0x58aea0['shift']());}catch(_0x2c90f2){_0x58aea0['push'](_0x58aea0['shift']());}}}(_0x29bc,0x312a4));import{IconSubmit as _0x3ecee0}from'ckeditor5/src/icons.js';import{ButtonView as _0x2093f4,AutocompleteView as _0x30966b,createLabeledTextarea as _0x409752}from'ckeditor5/src/ui.js';import{global as _0x6c0806,isVisible as _0xa317bf,Rect as _0x44d9ce,ResizeObserver as _0x416a33}from'ckeditor5/src/utils.js';import{getTranslation as _0x2c2db1}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x40cc0d}from'./aichatpromptsuggestionslistview.js';import{escape as _0x1a8ab7}from'es-toolkit/compat';const ph=_0x31b611(0x1af);function _0x1016(_0x11d94d,_0x4a4bd0){const _0x29bc69=_0x29bc();return _0x1016=function(_0x101682,_0x3f4625){_0x101682=_0x101682-0x173;let _0x4a5b48=_0x29bc69[_0x101682];return _0x4a5b48;},_0x1016(_0x11d94d,_0x4a4bd0);}export class AIChatPromptInputView extends _0x30966b{[_0x31b611(0x1b5)];static [_0x31b611(0x1a6)]=0x1;static [_0x31b611(0x173)]=0xc;[_0x31b611(0x197)];[_0x31b611(0x1ab)];constructor(_0x57d866,_0x2813db){const _0x5b62d3=_0x31b611;super(_0x57d866,{'queryView':{'label':'','creator':_0x409752,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x40cc0d(_0x57d866),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x5b62d3(0x1a3)](_0x5b62d3(0x19d),!0x0),this[_0x5b62d3(0x1a3)](_0x5b62d3(0x183),!0x1),this[_0x5b62d3(0x197)]=_0x2813db,this[_0x5b62d3(0x1ab)]=null,this[_0x5b62d3(0x189)][_0x5b62d3(0x1a5)][_0x5b62d3(0x18b)]=AIChatPromptInputView[_0x5b62d3(0x1a6)],this[_0x5b62d3(0x189)][_0x5b62d3(0x1a5)][_0x5b62d3(0x193)]=AIChatPromptInputView[_0x5b62d3(0x173)],this[_0x5b62d3(0x189)][_0x5b62d3(0x179)][_0x5b62d3(0x1a2)](this[_0x5b62d3(0x197)]),this[_0x5b62d3(0x180)](),this[_0x5b62d3(0x19a)]({'attributes':{'class':['ck',_0x5b62d3(0x198)]}}),this[_0x5b62d3(0x1b5)]=this[_0x5b62d3(0x17b)](),this[_0x5b62d3(0x1b5)][_0x5b62d3(0x1b9)](_0x5b62d3(0x18d))['to'](this,_0x5b62d3(0x19d),this,_0x5b62d3(0x183),(_0x4d1004,_0x4a69ba)=>!_0x4d1004&&!_0x4a69ba),this[_0x5b62d3(0x1a8)][_0x5b62d3(0x1a2)](this[_0x5b62d3(0x1b5)]);}[_0x31b611(0x19f)](){const _0x1f9df5=_0x31b611;super[_0x1f9df5(0x19f)](),this[_0x1f9df5(0x189)][_0x1f9df5(0x179)][_0x1f9df5(0x1a2)](this[_0x1f9df5(0x1b5)]),this[_0x1f9df5(0x1ac)][_0x1f9df5(0x1a3)](_0x1f9df5(0x1ad),(_0x187247,_0x397aa6)=>{const _0x4ada84=_0x1f9df5;this[_0x4ada84(0x183)]||this[_0x4ada84(0x19d)]||_0x187247[_0x4ada84(0x1a7)]==this[_0x4ada84(0x189)][_0x4ada84(0x1a5)][_0x4ada84(0x174)]&&(this[_0x4ada84(0x1a9)](),_0x397aa6());}),this[_0x1f9df5(0x189)][_0x1f9df5(0x1a5)]['on'](_0x1f9df5(0x190),()=>{const _0x4998fc=_0x1f9df5;this[_0x4998fc(0x19d)]=''===this[_0x4998fc(0x189)][_0x4998fc(0x1a5)][_0x4998fc(0x174)][_0x4998fc(0x18f)]?.[_0x4998fc(0x1b1)]();});}[_0x31b611(0x176)](){const _0x389e6f=_0x31b611;super[_0x389e6f(0x176)](),this[_0x389e6f(0x1ab)]&&this[_0x389e6f(0x1ab)][_0x389e6f(0x176)]();}[_0x31b611(0x1a9)](){const _0x3ebb46=_0x31b611,_0x16a1c5=this[_0x3ebb46(0x189)][_0x3ebb46(0x1a5)][_0x3ebb46(0x174)][_0x3ebb46(0x18f)]?.[_0x3ebb46(0x1b1)]();if(!_0x16a1c5)return this[_0x3ebb46(0x189)][_0x3ebb46(0x17f)]=_0x2c2db1(this[_0x3ebb46(0x17e)],_0x3ebb46(0x1a1)),void(this[_0x3ebb46(0x189)][_0x3ebb46(0x1a5)][_0x3ebb46(0x177)]=!0x0);this[_0x3ebb46(0x189)][_0x3ebb46(0x1a5)][_0x3ebb46(0x177)]=!0x1;const _0x493017=_0x1a8ab7(_0x16a1c5);this[_0x3ebb46(0x181)](_0x3ebb46(0x18a),_0x493017),this[_0x3ebb46(0x189)][_0x3ebb46(0x1a5)][_0x3ebb46(0x185)]();}[_0x31b611(0x17a)](_0x505e2b){const _0x38a767=_0x31b611;this[_0x38a767(0x189)][_0x38a767(0x1a5)][_0x38a767(0x1a3)](_0x38a767(0x1b0),_0x505e2b);}[_0x31b611(0x18e)](_0x4a74f9=!0x1){const _0x569123=_0x31b611;super[_0x569123(0x18e)](),_0x4a74f9&&(this[_0x569123(0x174)][_0x569123(0x1aa)][_0x569123(0x182)](ph)||(this[_0x569123(0x174)][_0x569123(0x1aa)][_0x569123(0x1a2)](ph),setTimeout(()=>{const _0x25f7e1=_0x569123;this[_0x25f7e1(0x174)][_0x25f7e1(0x1aa)][_0x25f7e1(0x19c)](ph);},0x320)));}[_0x31b611(0x17b)](){const _0x5b4438=_0x31b611,_0x41001c=new _0x2093f4(this[_0x5b4438(0x17e)]);return _0x41001c[_0x5b4438(0x1a3)]({'icon':_0x3ecee0,'label':_0x2c2db1(this[_0x5b4438(0x17e)],_0x5b4438(0x196)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x5b4438(0x17c),'isEnabled':!0x1}),_0x41001c['on'](_0x5b4438(0x199),()=>{const _0x350712=_0x5b4438;this[_0x350712(0x1a9)]();}),_0x41001c;}[_0x31b611(0x175)](_0x1200f5){const _0xb23dd2=_0x31b611;this[_0xb23dd2(0x183)]=_0x1200f5;}[_0x31b611(0x180)](){const _0xe49127=_0x31b611,_0x3f8605=this[_0xe49127(0x17e)],_0x151d18=()=>{const _0x46fb43=_0xe49127;_0x6c0806[_0x46fb43(0x1bb)][_0x46fb43(0x18c)](()=>{const _0x2a17d1=_0x46fb43;if(_0xa317bf(this[_0x2a17d1(0x174)])){const _0x38debe=new _0x44d9ce(this[_0x2a17d1(0x189)][_0x2a17d1(0x1a5)][_0x2a17d1(0x174)]),_0x159c06=new _0x44d9ce(this[_0x2a17d1(0x197)][_0x2a17d1(0x174)]),_0xa5f2e=_0x38debe[_0x2a17d1(0x1ba)],_0x597e67=_0x2a17d1(0x19b)===_0x3f8605[_0x2a17d1(0x1a4)]?_0x2a17d1(0x1b4):_0x2a17d1(0x192);_0x38debe[_0x2a17d1(0x19e)]();const _0x478ae5=_0xa5f2e-_0x38debe[_0x2a17d1(0x1ba)]+0x1;this[_0x2a17d1(0x197)][_0x2a17d1(0x174)][_0x2a17d1(0x187)][_0x597e67]=_0x2a17d1(0x188)+(_0xa5f2e-_0x159c06[_0x2a17d1(0x1ba)]-_0x478ae5)+_0x2a17d1(0x1b2);}});};this[_0xe49127(0x189)][_0xe49127(0x1a5)]['on'](_0xe49127(0x190),_0x151d18),this['on'](_0xe49127(0x19f),()=>{const _0x4b748f=_0xe49127;_0x151d18(),this[_0x4b748f(0x1ab)]=new _0x416a33(this[_0x4b748f(0x189)][_0x4b748f(0x1a5)][_0x4b748f(0x174)],()=>{_0x151d18();});});}}function _0x29bc(){const _0x56d2f1=['focusableChildren','submit','classList','_queryViewResizeObserver','keystrokes','enter','2428idoZsV','ck-ai-chat__prompt-input_highlighted','placeholder','trim','px\x20-\x20var(--ck-spacing-tiny))','2800RPBjvD','right','submitButtonView','28caHrDk','96jgceXt','323580bXJcSN','bind','width','window','MAX_ROWS','element','setIsUploadInProgress','destroy','hasError','184188ZQWOiz','fieldWrapperChildren','setPlaceholderText','_createSubmitButton','ck-ai-chat__prompt-submit-button','1061998Fdpygn','locale','errorText','_setUpAddContextButtonPositioning','fire','contains','isUploadInProgress','24uMfofG','reset','9629620GxUQrN','style','calc(','queryView','sendUserMessage','minRows','requestAnimationFrame','isEnabled','focus','value','update','10638QCQWtu','left','maxRows','198qRpSzA','32715NIDGlH','AI_CHAT_LABEL_SUBMIT','_addContextButtonView','ck-ai-chat__prompt-input','execute','extendTemplate','rtl','remove','isEmpty','excludeScrollbarsAndBorders','render','8kLxyHu','AI_CHAT_PROMPT_EMPTY_ERROR','add','set','uiLanguageDirection','fieldView','MIN_ROWS','target'];_0x29bc=function(){return _0x56d2f1;};return _0x29bc();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf5f514=_0x1a20;(function(_0x17ef3b,_0x1ed98b){const _0xad7429=_0x1a20,_0x5955c6=_0x17ef3b();while(!![]){try{const _0x3f1dbc=parseInt(_0xad7429(0x66))/0x1+parseInt(_0xad7429(0x6f))/0x2+-parseInt(_0xad7429(0x6b))/0x3*(-parseInt(_0xad7429(0x6c))/0x4)+parseInt(_0xad7429(0x69))/0x5+parseInt(_0xad7429(0x6e))/0x6+parseInt(_0xad7429(0x6d))/0x7*(parseInt(_0xad7429(0x6a))/0x8)+-parseInt(_0xad7429(0x68))/0x9;if(_0x3f1dbc===_0x1ed98b)break;else _0x5955c6['push'](_0x5955c6['shift']());}catch(_0x377435){_0x5955c6['push'](_0x5955c6['shift']());}}}(_0x1f8e,0xef497));import{ListView as _0x471b2e}from'ckeditor5/src/ui.js';function _0x1a20(_0x2d6e79,_0x4934d9){const _0x1f8eaf=_0x1f8e();return _0x1a20=function(_0x1a20e4,_0x249b21){_0x1a20e4=_0x1a20e4-0x66;let _0x214344=_0x1f8eaf[_0x1a20e4];return _0x214344;},_0x1a20(_0x2d6e79,_0x4934d9);}function _0x1f8e(){const _0x57a7f6=['37428984GaWLuO','6116235iVteWp','120GkXcIj','277026FRKCMN','8zlydLh','718599FPOYQH','7448412dQpjqB','365810PkFecg','filter','length','766802PJOZEC','items'];_0x1f8e=function(){return _0x57a7f6;};return _0x1f8e();}export class AIChatPromptSuggestionsListView extends _0x471b2e{[_0xf5f514(0x70)](){const _0x397011=_0xf5f514;let _0x56860e=0x0;for(const _0x23502e of this[_0x397011(0x67)])_0x56860e+=_0x23502e[_0x397011(0x67)][_0x397011(0x71)];return{'resultsCount':_0x56860e,'totalItemsCount':_0x56860e};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x525d47=_0x13a5;function _0x13a5(_0x4221f9,_0x36f91c){const _0x1a00d4=_0x1a00();return _0x13a5=function(_0x13a5b4,_0x31a5c7){_0x13a5b4=_0x13a5b4-0x7a;let _0x340494=_0x1a00d4[_0x13a5b4];return _0x340494;},_0x13a5(_0x4221f9,_0x36f91c);}(function(_0x578c5f,_0x4994d7){const _0x40d8c0=_0x13a5,_0x15e821=_0x578c5f();while(!![]){try{const _0x48565c=parseInt(_0x40d8c0(0x7b))/0x1*(-parseInt(_0x40d8c0(0x8a))/0x2)+-parseInt(_0x40d8c0(0x86))/0x3+-parseInt(_0x40d8c0(0x85))/0x4+parseInt(_0x40d8c0(0x8e))/0x5+-parseInt(_0x40d8c0(0x83))/0x6+parseInt(_0x40d8c0(0x7e))/0x7*(-parseInt(_0x40d8c0(0x95))/0x8)+-parseInt(_0x40d8c0(0x8c))/0x9*(-parseInt(_0x40d8c0(0x91))/0xa);if(_0x48565c===_0x4994d7)break;else _0x15e821['push'](_0x15e821['shift']());}catch(_0x490dc7){_0x15e821['push'](_0x15e821['shift']());}}}(_0x1a00,0x70100));import{ListView as _0x13d5cb}from'ckeditor5/src/ui.js';function _0x1a00(){const _0x334b69=['8NoBwev','replace','locale','1103669NDkixl','test','addResourceToContext','fire','ck-ai-chat-resources__list','719448uhXlyh','setResources','3208784LZwfzH','2204577vyYrEa','\x5c$&','trim','label','136312ZBYIeC','useDefaultFiltering','333603RydQKM','filter','1864965FpYnFe','add','resource','830PbNSwo','execute','highlightText','clear','40cVxlbH','forEach','updateResourceState','_source','items','extendTemplate','_handleResourceSelection'];_0x1a00=function(){return _0x334b69;};return _0x1a00();}import{AIChatResourceListItemView as _0x4dc557}from'./aichatresourcelistitemview.js';const rc=_0x525d47(0x82);export class AIChatContextResourcesListView extends _0x13d5cb{[_0x525d47(0x98)];constructor(_0x5335e4,_0x192998){const _0x336af7=_0x525d47;super(_0x5335e4),this[_0x336af7(0x98)]=_0x192998,this[_0x336af7(0x9a)]({'attributes':{'class':[rc]}});}[_0x525d47(0x84)](_0x2c964f,_0x133626){const _0x2cddc6=_0x525d47;this[_0x2cddc6(0x99)][_0x2cddc6(0x94)]();let _0x5a01ca=_0x2c964f;if(this[_0x2cddc6(0x98)][_0x2cddc6(0x8b)]&&_0x133626&&''!==_0x133626[_0x2cddc6(0x88)]()){const _0x19eda4=new RegExp(_0x133626[_0x2cddc6(0x7c)](/[.*+?^${}()|[\]\\]/g,_0x2cddc6(0x87)),'gi');_0x5a01ca=_0x2c964f[_0x2cddc6(0x8d)](_0x259c80=>_0x19eda4[_0x2cddc6(0x7f)](_0x259c80[_0x2cddc6(0x89)]));}for(const _0x4d5c6c of _0x5a01ca){const _0x4beab5=new _0x4dc557(this[_0x2cddc6(0x7d)],_0x4d5c6c);_0x4beab5['on'](_0x2cddc6(0x92),()=>{const _0x2202d2=_0x2cddc6;this[_0x2202d2(0x7a)](this[_0x2202d2(0x98)],_0x4d5c6c);}),this[_0x2cddc6(0x99)][_0x2cddc6(0x8f)](_0x4beab5);}this[_0x2cddc6(0x98)][_0x2cddc6(0x8b)]&&this[_0x2cddc6(0x93)](_0x133626);}[_0x525d47(0x93)](_0x4920e0){const _0x48bfc7=_0x525d47;this[_0x48bfc7(0x98)][_0x48bfc7(0x8b)]&&this[_0x48bfc7(0x99)][_0x48bfc7(0x96)](_0xf52b30=>{const _0x1ed4ca=_0x48bfc7;_0xf52b30[_0x1ed4ca(0x93)](_0x4920e0);});}[_0x525d47(0x97)](_0x303022,_0x10b772){const _0x431b2a=_0x525d47;for(const _0x56ac6c of this[_0x431b2a(0x99)]){const _0x59b1b4=_0x56ac6c;_0x59b1b4[_0x431b2a(0x90)]['id']===_0x303022&&_0x59b1b4[_0x431b2a(0x97)](_0x10b772);}}[_0x525d47(0x7a)](_0x52ba3a,_0x30419b){const _0x508f05=_0x525d47;this[_0x508f05(0x81)](_0x508f05(0x80),{'source':_0x52ba3a,'resource':_0x30419b});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x821337=_0x4b24;(function(_0x11d735,_0x1dcecf){const _0x5c3ddd=_0x4b24,_0x193e0c=_0x11d735();while(!![]){try{const _0x2d9286=-parseInt(_0x5c3ddd(0x1a0))/0x1+-parseInt(_0x5c3ddd(0x185))/0x2+parseInt(_0x5c3ddd(0x18b))/0x3+parseInt(_0x5c3ddd(0x17a))/0x4+parseInt(_0x5c3ddd(0x195))/0x5*(parseInt(_0x5c3ddd(0x188))/0x6)+parseInt(_0x5c3ddd(0x189))/0x7*(-parseInt(_0x5c3ddd(0x172))/0x8)+-parseInt(_0x5c3ddd(0x18a))/0x9*(parseInt(_0x5c3ddd(0x19f))/0xa);if(_0x2d9286===_0x1dcecf)break;else _0x193e0c['push'](_0x193e0c['shift']());}catch(_0x573003){_0x193e0c['push'](_0x193e0c['shift']());}}}(_0x3bc9,0x8e28f));import{View as _0x5e47dd,ViewCollection as _0x1fcfef}from'ckeditor5/src/ui.js';import{uid as _0xe4bc58}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0xc90afe}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x199706}from'./aichatresourcessearchinputview.js';function _0x4b24(_0x2c5494,_0xf836c8){const _0x3bc918=_0x3bc9();return _0x4b24=function(_0x4b2483,_0x356562){_0x4b2483=_0x4b2483-0x172;let _0x22133e=_0x3bc918[_0x4b2483];return _0x22133e;},_0x4b24(_0x2c5494,_0xf836c8);}import{AISkeletonView as _0x47f8ba,SKELETON_DEFINITIONS as _0x42ca2b}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x5e47dd{[_0x821337(0x179)];[_0x821337(0x17b)];[_0x821337(0x198)];[_0x821337(0x17f)];[_0x821337(0x18d)];[_0x821337(0x187)];[_0x821337(0x199)];[_0x821337(0x19d)]=null;constructor(_0x241078,_0x557ba9){const _0x13d16d=_0x821337;super(_0x241078),this[_0x13d16d(0x187)]=_0x557ba9[_0x13d16d(0x18c)],this[_0x13d16d(0x198)]=_0x557ba9[_0x13d16d(0x196)]??0x7,this[_0x13d16d(0x19b)](_0x13d16d(0x182),!0x0),this[_0x13d16d(0x179)]=this[_0x13d16d(0x19a)](),this[_0x13d16d(0x17b)]=this[_0x13d16d(0x180)](),this[_0x13d16d(0x17f)]=this[_0x13d16d(0x17d)](),this[_0x13d16d(0x18d)]=this[_0x13d16d(0x176)](),this[_0x13d16d(0x199)]=new _0x1fcfef([this[_0x13d16d(0x18d)],this[_0x13d16d(0x17f)]]),this[_0x13d16d(0x181)]({'tag':_0x13d16d(0x178),'attributes':{'class':_0x13d16d(0x177)},'children':this[_0x13d16d(0x199)]});}[_0x821337(0x19a)](){const _0x25224b=_0x821337;return new _0x199706(this[_0x25224b(0x17c)]);}[_0x821337(0x180)](){const _0x1f4348=_0x821337,_0x29a1f8=new _0x5e47dd(this[_0x1f4348(0x17c)]);return _0x29a1f8[_0x1f4348(0x181)]({'tag':_0x1f4348(0x178),'attributes':{'class':_0x1f4348(0x1a1)},'children':[this[_0x1f4348(0x179)]]}),this[_0x1f4348(0x179)]['on'](_0x1f4348(0x19e),(_0x1e7782,_0x298951)=>{const _0x42d64e=_0x1f4348;this[_0x42d64e(0x173)](_0x298951),this[_0x42d64e(0x187)][_0x42d64e(0x191)]&&this[_0x42d64e(0x17f)][_0x42d64e(0x1a2)](_0x298951);}),_0x29a1f8;}[_0x821337(0x17d)](){const _0x475181=_0x821337,_0x3dc80e=new _0xc90afe(this[_0x475181(0x17c)],this[_0x475181(0x187)]);return _0x3dc80e[_0x475181(0x186)](_0x475181(0x17e))['to'](this),_0x3dc80e[_0x475181(0x19c)]({'attributes':{'class':this[_0x475181(0x18e)]['if'](_0x475181(0x182),_0x475181(0x192))}}),_0x3dc80e;}[_0x821337(0x176)](){const _0x2adcb7=_0x821337,_0x1b7886=new _0x47f8ba(this[_0x2adcb7(0x17c)],_0x42ca2b[_0x2adcb7(0x197)]);return _0x1b7886[_0x2adcb7(0x19c)]({'attributes':{'class':[this[_0x2adcb7(0x18e)]['if'](_0x2adcb7(0x182),_0x2adcb7(0x192),_0x2fb9ac=>!_0x2fb9ac)]}}),_0x1b7886;}[_0x821337(0x193)](){const _0x474af1=_0x821337;super[_0x474af1(0x193)](),this[_0x474af1(0x173)]('');}[_0x821337(0x173)](_0x178003){const _0x50bdbb=_0x821337,_0x107a09=_0xe4bc58();this[_0x50bdbb(0x19d)]=_0x107a09,this[_0x50bdbb(0x194)](_0x50bdbb(0x184),{'sourceId':this[_0x50bdbb(0x187)]['id'],'query':_0x178003,'uid':_0x107a09}),this[_0x50bdbb(0x182)]=!0x0;}[_0x821337(0x1a3)](_0x571e7a,_0x36fd11){const _0x5274ec=_0x821337;if(_0x36fd11&&_0x36fd11!==this[_0x5274ec(0x19d)])return;const _0x3a16b=this[_0x5274ec(0x187)][_0x5274ec(0x191)]?this[_0x5274ec(0x179)][_0x5274ec(0x175)]():'';this[_0x5274ec(0x17f)][_0x5274ec(0x1a3)](_0x571e7a,_0x3a16b),_0x571e7a[_0x5274ec(0x183)]>=this[_0x5274ec(0x198)]&&!this[_0x5274ec(0x199)][_0x5274ec(0x190)](this[_0x5274ec(0x17b)])&&this[_0x5274ec(0x199)][_0x5274ec(0x18f)](this[_0x5274ec(0x17b)],0x0),requestAnimationFrame(()=>{const _0x49e4e6=_0x5274ec;this[_0x49e4e6(0x182)]=!0x1;});}[_0x821337(0x174)](_0x6aafe7,_0x589844){const _0x4b8524=_0x821337;this[_0x4b8524(0x17f)][_0x4b8524(0x174)](_0x6aafe7,_0x589844);}}function _0x3bc9(){const _0x320988=['_searchSection','locale','_createResourcesListView','addResourceToContext','_resourcesListView','_createSearchSection','setTemplate','isLoading','length','loadSourceResources','1037364iTKKWD','delegate','_source','1641036uVormP','28238MEDLfH','2304468HuxIzr','2857899jkFKtr','source','_skeletonLoader','bindTemplate','add','has','useDefaultFiltering','ck-hidden','render','fire','10JAVhwQ','searchInputVisibleFrom','aiChatResources','_searchInputVisibleFrom','children','_createSearchView','set','extendTemplate','_latestLoadResourcesUid','search','40CtPxQJ','301866TpezgB','ck\x20ck-search','highlightText','setResources','184stqEBs','loadResources','updateResourceState','getQuery','_createSkeletonView','ck-ai-chat-resources','div','_searchView','4080720OyBeKF'];_0x3bc9=function(){return _0x320988;};return _0x3bc9();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4ac4(){const _0x5bd64f=['_createTitleView','10vlySel','setTemplate','1547kvYdbs','6fVMHex','URL','content','DOCUMENT','ck-ai-chat-resources__item__icon','render','688752dlTNLt','_updateIcon','TEXT','ck-ai-chat-resources__item','_iconView','bindTemplate','552543fsaxYp','250929zVbZMp','7868NmIjgK','resource','trim','ck-ai-chat-resources__item-title','FILE','_setupTemplate','18520qWwMUJ','div','updateResourceState','extendTemplate','highlightText','text','label','isVisible','3705647WxBvTx','getResourceIcon','isInContext','span','_titleView','execute','ck-ai-chat-resources__item--in-context','ck-hidden','set','type','1275uSFiKU','3588096lDCmHN','_createIconView'];_0x4ac4=function(){return _0x5bd64f;};return _0x4ac4();}const _0x418560=_0x2b42;(function(_0x2aa033,_0x43c34d){const _0x3a694c=_0x2b42,_0x4ed6c9=_0x2aa033();while(!![]){try{const _0x2b34d8=-parseInt(_0x3a694c(0x149))/0x1+parseInt(_0x3a694c(0x143))/0x2*(parseInt(_0x3a694c(0x16a))/0x3)+parseInt(_0x3a694c(0x14b))/0x4*(parseInt(_0x3a694c(0x163))/0x5)+parseInt(_0x3a694c(0x164))/0x6+-parseInt(_0x3a694c(0x169))/0x7*(parseInt(_0x3a694c(0x151))/0x8)+-parseInt(_0x3a694c(0x14a))/0x9*(parseInt(_0x3a694c(0x167))/0xa)+-parseInt(_0x3a694c(0x159))/0xb;if(_0x2b34d8===_0x43c34d)break;else _0x4ed6c9['push'](_0x4ed6c9['shift']());}catch(_0x25e584){_0x4ed6c9['push'](_0x4ed6c9['shift']());}}}(_0x4ac4,0x57c0d));import{HighlightedTextView as _0x204b1c,IconView as _0x9d83ff,ListItemView as _0x96be35}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x1ff0ff}from'es-toolkit/compat';import{AIContextItemType as _0x20c11e}from'../../../../aicore/model/aicontext.js';function _0x2b42(_0xa959e3,_0xa885c9){const _0x4ac4ff=_0x4ac4();return _0x2b42=function(_0x2b42d9,_0x194f40){_0x2b42d9=_0x2b42d9-0x143;let _0x12c715=_0x4ac4ff[_0x2b42d9];return _0x12c715;},_0x2b42(_0xa959e3,_0xa885c9);}import{IconFileUpload as _0x17c756,IconCheck as _0x1c1a50,IconDocument as _0x41698f,IconDocumentOutline as _0x5bcddf,IconLink as _0x2e6317}from'@ckeditor/ckeditor5-icons';const zr=_0x418560(0x146),Gr=_0x418560(0x15f),Jr=_0x418560(0x14e),Kr=_0x418560(0x16e);export class AIChatResourceListItemView extends _0x96be35{[_0x418560(0x14c)];[_0x418560(0x15d)];[_0x418560(0x147)];constructor(_0x41d43b,_0x5ee35d){const _0x4cbe15=_0x418560;super(_0x41d43b),this[_0x4cbe15(0x14c)]=_0x5ee35d,this[_0x4cbe15(0x161)](_0x4cbe15(0x15b),!!_0x5ee35d[_0x4cbe15(0x15b)]),this[_0x4cbe15(0x15d)]=this[_0x4cbe15(0x166)](),this[_0x4cbe15(0x147)]=this[_0x4cbe15(0x165)](),this[_0x4cbe15(0x150)]();}[_0x418560(0x16f)](){const _0xda8298=_0x418560;super[_0xda8298(0x16f)]();}[_0x418560(0x15a)](_0x302435){const _0x163d07=_0x418560;if(_0x302435[_0x163d07(0x15b)])return _0x1c1a50;switch(_0x302435[_0x163d07(0x162)]){case _0x20c11e[_0x163d07(0x16d)]:return _0x41698f;case _0x20c11e[_0x163d07(0x16b)]:return _0x2e6317;case _0x20c11e[_0x163d07(0x14f)]:case _0x20c11e[_0x163d07(0x145)]:return _0x17c756;default:return _0x5bcddf;}}[_0x418560(0x155)](_0x1e4484){const _0x3443f6=_0x418560;if(!_0x1e4484||''===_0x1e4484[_0x3443f6(0x14d)]())return void this[_0x3443f6(0x15d)][_0x3443f6(0x155)](null);const _0x64b4c1=new RegExp(_0x1ff0ff(_0x1e4484),'gi');this[_0x3443f6(0x15d)][_0x3443f6(0x155)](_0x64b4c1);}[_0x418560(0x153)](_0x5395ca){const _0x7da030=_0x418560;this[_0x7da030(0x14c)][_0x7da030(0x15b)]=_0x5395ca,this[_0x7da030(0x15b)]=_0x5395ca,this[_0x7da030(0x144)]();}[_0x418560(0x166)](){const _0x50f7e1=_0x418560,_0x47b65a=new _0x204b1c();return _0x47b65a[_0x50f7e1(0x156)]=this[_0x50f7e1(0x14c)][_0x50f7e1(0x157)],_0x47b65a[_0x50f7e1(0x154)]({'tag':_0x50f7e1(0x15c),'attributes':{'class':[Jr]}}),_0x47b65a;}[_0x418560(0x165)](){const _0x4aed26=_0x418560,_0x5898ec=new _0x9d83ff();return _0x5898ec[_0x4aed26(0x16c)]=this[_0x4aed26(0x15a)](this[_0x4aed26(0x14c)]),_0x5898ec;}[_0x418560(0x150)](){const _0x1c04f2=_0x418560,_0x348b1b=this[_0x1c04f2(0x148)];this[_0x1c04f2(0x168)]({'tag':_0x1c04f2(0x152),'attributes':{'class':[zr,_0x348b1b['if'](_0x1c04f2(0x158),_0x1c04f2(0x160),_0x166397=>!_0x166397),_0x348b1b['if'](_0x1c04f2(0x15b),Gr)]},'children':[{'tag':_0x1c04f2(0x152),'attributes':{'class':[Kr]},'children':[this[_0x1c04f2(0x147)]]},this[_0x1c04f2(0x15d)]],'on':{'click':_0x348b1b['to'](_0x1c04f2(0x15e))}});}[_0x418560(0x144)](){const _0x2b3951=_0x418560;this[_0x2b3951(0x147)][_0x2b3951(0x16c)]=this[_0x2b3951(0x15a)](this[_0x2b3951(0x14c)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x371ccb=_0x5a92;(function(_0x1de082,_0x33a253){const _0x2e9960=_0x5a92,_0x30aefa=_0x1de082();while(!![]){try{const _0xb3df00=parseInt(_0x2e9960(0x1c2))/0x1*(-parseInt(_0x2e9960(0x1aa))/0x2)+-parseInt(_0x2e9960(0x1b0))/0x3*(parseInt(_0x2e9960(0x1a6))/0x4)+-parseInt(_0x2e9960(0x1c0))/0x5*(parseInt(_0x2e9960(0x1a1))/0x6)+-parseInt(_0x2e9960(0x1bb))/0x7+parseInt(_0x2e9960(0x1ac))/0x8+parseInt(_0x2e9960(0x197))/0x9*(parseInt(_0x2e9960(0x19c))/0xa)+parseInt(_0x2e9960(0x1bc))/0xb*(parseInt(_0x2e9960(0x1b3))/0xc);if(_0xb3df00===_0x33a253)break;else _0x30aefa['push'](_0x30aefa['shift']());}catch(_0x50f91f){_0x30aefa['push'](_0x30aefa['shift']());}}}(_0x5743,0x4f671));import{BalloonPanelView as _0x33e5e2,ButtonView as _0x5d1d2b,clickOutsideHandler as _0x4cb15c,FormHeaderView as _0x5cc3d1}from'ckeditor5/src/ui.js';function _0x5743(){const _0x576bd8=['isVisible','closeSourceResourceBalloon','3cydFma','isAnyResourceBalloonVisible','getLimiterElement','171420jIbhTo','_setupSingleResourceBalloonClickOutsideHandler','get','onBalloonClosed','_createBalloonResourcesView','showSourceResourcesBalloon','onLoadSourceResources','_sourceResourceBalloons','1616013mkUBaS','583yLNlCp','children','setResources','destroy','93385AOZBoK','_addSourceResourceContent','545017fTNYNf','hide','source','add','pin','_createBalloonHeader','loadSourceResources','extendTemplate','change:isLoading','_config','ck-button-icon\x20ck-button-back','element','getTargetElement','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','_getResourcesViewFromBalloon','delete','set','populateSourceResourceBalloon','ck-ai-chat-context-controls__source-balloon-panel','label','74007ZFRcBU','_locale','addResourceToContext','searchInputVisibleFrom','once','450GWzJSb','clear','onResourceSelected','resource','show','12aklOvu','_createSourceResourceBalloonPanel','updateResourceState','content','_bodyCollection','1376356vIwYJU','execute','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','_createBackButton','2PplorO','onBackToContext','2843296cJqDpA','values'];_0x5743=function(){return _0x576bd8;};return _0x5743();}import{IconPreviousArrow as _0x3b2033}from'@ckeditor/ckeditor5-icons';function _0x5a92(_0x24a4c0,_0x4f282c){const _0x57432a=_0x5743();return _0x5a92=function(_0x5a922e,_0x35e469){_0x5a922e=_0x5a922e-0x18a;let _0x591705=_0x57432a[_0x5a922e];return _0x591705;},_0x5a92(_0x24a4c0,_0x4f282c);}import{getTranslation as _0x4c1f61}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x42aef7}from'./aichatcontextresourcesview.js';const lc=_0x371ccb(0x195),uc=_0x371ccb(0x18d),hc=_0x371ccb(0x190);export class AIChatResourcesBalloonView{[_0x371ccb(0x1ba)]=new Map();[_0x371ccb(0x1a5)];[_0x371ccb(0x198)];[_0x371ccb(0x18c)];constructor(_0x50c1ab,_0x313050,_0x4a2c47){const _0x56b54c=_0x371ccb;this[_0x56b54c(0x198)]=_0x50c1ab,this[_0x56b54c(0x1a5)]=_0x313050,this[_0x56b54c(0x18c)]=_0x4a2c47;}[_0x371ccb(0x1b8)]({source:_0x36d210,withBackButton:_0x45222a}){const _0x4ccdfa=_0x371ccb;let _0x182271=this[_0x4ccdfa(0x1ba)][_0x4ccdfa(0x1b5)](_0x36d210['id']);_0x182271||(_0x182271=this[_0x4ccdfa(0x1a2)](),this[_0x4ccdfa(0x1ba)][_0x4ccdfa(0x193)](_0x36d210['id'],_0x182271),this[_0x4ccdfa(0x1b4)](_0x182271)),this[_0x4ccdfa(0x1c1)]({'balloonPanel':_0x182271,'source':_0x36d210,'withBackButton':_0x45222a}),_0x182271[_0x4ccdfa(0x1a0)]();const _0x4011fe=this[_0x4ccdfa(0x18c)][_0x4ccdfa(0x18f)]();_0x4011fe&&_0x182271[_0x4ccdfa(0x1c6)]({'target':_0x4011fe,'limiter':this[_0x4ccdfa(0x18c)][_0x4ccdfa(0x1b2)]()});}[_0x371ccb(0x194)](_0x2f9eb1,_0x59974c,_0x2055f8){const _0x38368c=_0x371ccb,_0x11a0d1=this[_0x38368c(0x1ba)][_0x38368c(0x1b5)](_0x2f9eb1);if(!_0x11a0d1)return;const _0x4b5968=this[_0x38368c(0x191)](_0x11a0d1);_0x4b5968&&(_0x4b5968[_0x38368c(0x1be)](_0x59974c,_0x2055f8),_0x4b5968[_0x38368c(0x19b)](_0x38368c(0x18b),()=>{const _0x51ca86=_0x38368c;_0x11a0d1[_0x51ca86(0x1c6)]({'target':this[_0x51ca86(0x18c)][_0x51ca86(0x18f)](),'limiter':this[_0x51ca86(0x18c)][_0x51ca86(0x1b2)]()});}));}[_0x371ccb(0x1af)](_0x5417bb){const _0x356c8d=_0x371ccb,_0xb7e713=this[_0x356c8d(0x1ba)][_0x356c8d(0x1b5)](_0x5417bb);_0xb7e713&&requestAnimationFrame(()=>{const _0x2d4baa=_0x356c8d;_0xb7e713[_0x2d4baa(0x1c3)](),this[_0x2d4baa(0x1ba)][_0x2d4baa(0x192)](_0x5417bb),this[_0x2d4baa(0x18c)][_0x2d4baa(0x1b6)]();});}[_0x371ccb(0x1b1)](){const _0x5eb18a=_0x371ccb;for(const _0x2f6d1e of this[_0x5eb18a(0x1ba)][_0x5eb18a(0x1ad)]())if(_0x2f6d1e[_0x5eb18a(0x1ae)])return!0x0;return!0x1;}[_0x371ccb(0x1a3)](_0x27f5d3,_0x4d6d15,_0x534a4d){const _0x1ed049=_0x371ccb,_0x1711b8=this[_0x1ed049(0x1ba)][_0x1ed049(0x1b5)](_0x27f5d3);if(!_0x1711b8||!_0x1711b8[_0x1ed049(0x1ae)])return;const _0x44c6d4=this[_0x1ed049(0x18c)][_0x1ed049(0x18f)]();if(!_0x44c6d4)return;_0x1711b8[_0x1ed049(0x1c6)]({'target':_0x44c6d4,'limiter':this[_0x1ed049(0x18c)][_0x1ed049(0x1b2)]()});const _0x5ee7ad=this[_0x1ed049(0x191)](_0x1711b8);_0x5ee7ad&&_0x5ee7ad[_0x1ed049(0x1a3)](_0x4d6d15,_0x534a4d);}[_0x371ccb(0x1bf)](){const _0x443aca=_0x371ccb;for(const _0x272205 of this[_0x443aca(0x1ba)][_0x443aca(0x1ad)]())_0x272205[_0x443aca(0x1bf)]();this[_0x443aca(0x1ba)][_0x443aca(0x19d)]();}[_0x371ccb(0x1a2)](){const _0x14eead=_0x371ccb,_0x22dd9b=new _0x33e5e2(this[_0x14eead(0x198)]);return _0x22dd9b[_0x14eead(0x18a)]({'attributes':{'class':lc}}),this[_0x14eead(0x1a5)][_0x14eead(0x1c5)](_0x22dd9b),_0x22dd9b;}[_0x371ccb(0x1c1)]({balloonPanel:_0xb817ac,source:_0x19ab4d,withBackButton:_0x2157b9}){const _0x367a57=_0x371ccb;_0xb817ac[_0x367a57(0x1a4)][_0x367a57(0x19d)]();const _0x422fd1=this[_0x367a57(0x1c7)]({'balloonPanel':_0xb817ac,'source':_0x19ab4d,'withBackButton':_0x2157b9});_0xb817ac[_0x367a57(0x1a4)][_0x367a57(0x1c5)](_0x422fd1);const _0x5a5f76=this[_0x367a57(0x1b7)](_0x19ab4d);_0xb817ac[_0x367a57(0x1a4)][_0x367a57(0x1c5)](_0x5a5f76);}[_0x371ccb(0x1c7)]({balloonPanel:_0x260817,source:_0x2e58dc,withBackButton:_0x1265da}){const _0x5c6489=_0x371ccb,_0x883bfc=new _0x5cc3d1(this[_0x5c6489(0x198)],{'label':_0x2e58dc[_0x5c6489(0x196)],'class':hc});return _0x1265da&&_0x883bfc[_0x5c6489(0x1bd)][_0x5c6489(0x1c5)](this[_0x5c6489(0x1a9)](_0x260817),0x0),_0x883bfc;}[_0x371ccb(0x1a9)](_0x5c837c){const _0x2237a4=_0x371ccb,_0x272a37=new _0x5d1d2b(this[_0x2237a4(0x198)]);return _0x272a37[_0x2237a4(0x193)]({'icon':_0x3b2033,'tooltip':_0x4c1f61(this[_0x2237a4(0x198)],_0x2237a4(0x1a8)),'tooltipPosition':'n','class':uc}),_0x272a37['on'](_0x2237a4(0x1a7),()=>{const _0xa2e1a9=_0x2237a4;_0x5c837c[_0xa2e1a9(0x1c3)](),this[_0xa2e1a9(0x18c)][_0xa2e1a9(0x1ab)]();}),_0x272a37;}[_0x371ccb(0x1b7)](_0x5d0392){const _0x251d23=_0x371ccb,_0x15d0ce=new _0x42aef7(this[_0x251d23(0x198)],{'source':_0x5d0392,'searchInputVisibleFrom':this[_0x251d23(0x18c)][_0x251d23(0x19a)]});return _0x15d0ce['on'](_0x251d23(0x1c8),(_0x347629,_0x4c7543)=>{const _0x37f16d=_0x251d23;this[_0x37f16d(0x18c)][_0x37f16d(0x1b9)](_0x4c7543);}),_0x15d0ce['on'](_0x251d23(0x199),(_0x8e4dfe,_0x8281b)=>{const _0x9f2265=_0x251d23;this[_0x9f2265(0x18c)][_0x9f2265(0x19e)](_0x8281b[_0x9f2265(0x1c4)],_0x8281b[_0x9f2265(0x19f)]),this[_0x9f2265(0x1af)](_0x5d0392['id']);}),_0x15d0ce;}[_0x371ccb(0x191)](_0x482960){const _0x31d015=_0x371ccb,_0xffa98b=_0x482960[_0x31d015(0x1a4)][_0x31d015(0x1b5)](0x1);return _0xffa98b instanceof _0x42aef7?_0xffa98b:null;}[_0x371ccb(0x1b4)](_0x2186b3){const _0x2a0ceb=_0x371ccb;_0x4cb15c({'emitter':_0x2186b3,'contextElements':[_0x2186b3[_0x2a0ceb(0x18e)]],'callback':()=>{const _0x8d8e1c=_0x2a0ceb;_0x2186b3[_0x8d8e1c(0x1c3)](),this[_0x8d8e1c(0x18c)][_0x8d8e1c(0x1b6)]();},'activator':()=>_0x2186b3[_0x2a0ceb(0x1ae)]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x3e62f1,IconView as _0xf24aaa,LabeledFieldView as _0x5f53ca,createLabeledInputText as _0xcfecc5}from'ckeditor5/src/ui.js';import{IconLoupe as _0x37456e,IconCancel as _0x3aec01}from'ckeditor5/src/icons.js';import{getTranslation as _0x40a8c1}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x5f53ca{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x1237df){const t=_0x1237df['t'],_0x4a0fdd={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0xcfecc5,'label':_0x40a8c1(_0x1237df,'AI_CHAT_SEARCH_RESOURCES')};super(_0x1237df,_0x4a0fdd['creator']),this['label']=_0x4a0fdd['label'],this['_viewConfig']=_0x4a0fdd,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x1237df,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x1afd83){this['fire']('search',_0x1afd83);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0xf24aaa(),this['iconView']['content']=_0x37456e,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x56704a,t){this['resetButtonView']=new _0x3e62f1(_0x56704a),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x3aec01,'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',_0x3881e2=>!_0x3881e2),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);}}
|