@ckeditor/ckeditor5-ai 47.7.0-alpha.1 → 47.7.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +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 _0x502bda=_0x22a1;(function(_0xdf51fd,_0x3f18d1){const _0x35ae3c=_0x22a1,_0x5928d9=_0xdf51fd();while(!![]){try{const _0x1b654a=parseInt(_0x35ae3c(0x153))/0x1*(parseInt(_0x35ae3c(0x117))/0x2)+-parseInt(_0x35ae3c(0x121))/0x3+parseInt(_0x35ae3c(0x14a))/0x4*(-parseInt(_0x35ae3c(0x118))/0x5)+-parseInt(_0x35ae3c(0x154))/0x6+parseInt(_0x35ae3c(0x10b))/0x7+parseInt(_0x35ae3c(0x12c))/0x8*(-parseInt(_0x35ae3c(0x10c))/0x9)+parseInt(_0x35ae3c(0x137))/0xa;if(_0x1b654a===_0x3f18d1)break;else _0x5928d9['push'](_0x5928d9['shift']());}catch(_0x3df693){_0x5928d9['push'](_0x5928d9['shift']());}}}(_0x2a1e,0x3a62c));import{FocusTracker as _0x2b5338,KeystrokeHandler as _0x471f61}from'ckeditor5/src/utils.js';import{ButtonView as _0x51e6ee,FocusCycler as _0x42a872,LabeledFieldView as _0xa210cc,View as _0x34ce41,FormHeaderView as _0x42a103,createLabeledInputText as _0x4268a2,submitHandler as _0xc4f8f1}from'ckeditor5/src/ui.js';function _0x2a1e(){const _0x117c3d=['AI_CHAT_CONTEXT_URL_PLACEHOLDER','listenTo','clearError','refreshBalloon','_setupTemplate','stop','_isValidUrl','_createBackButton','167280IAoJQT','ck-labeled-field-view_empty','ck-ai-chat-context-controls__url-form','add','_createUrlInputField','urlInputField','errorText','isEnabled','ck-ai-chat-context-controls__url-input-section','keystrokes','tab','24IQfyvL','set','AI_CHAT_CONTEXT_URL_INVALID_ERROR','withBackButton','setTemplate','AI_CHAT_CONTEXT_URL_LABEL','getValue','length','_handleSubmit','shift+tab','createCollection','2677120ZAFowZ','locale','focusCycler','input','fieldView','_setupEventHandlers','div','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','render','focus','backButton','children','value','submitUrl','submit','esc','fire','forEach','cancel','39456CdyaGl','\x20ck-hidden','_focusables','form','ck-button-icon','destroy','trim','setError','change:withBackButton','4kFnzRt','1134216BtdbnC','AI_CHAT_CONTEXT_URL_ADD_URL','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','2783081jsQIQx','236385ioFUvV','confirmButton','execute','_createConfirmButton','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','clear','_setupKeystrokes','focusTracker','_updateConfirmButtonState','element','ck-button-icon\x20ck-button-back','160798GEThoI','215pWxWDp'];_0x2a1e=function(){return _0x117c3d;};return _0x2a1e();}import{IconCheck as _0x349a2f,IconPreviousArrow as _0x12633f}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x4f0233}from'../../../aicore/utils/common-translations.js';const oh=_0x502bda(0x123),ch=_0x502bda(0x129);function _0x22a1(_0x2750fc,_0x238c71){const _0x2a1e66=_0x2a1e();return _0x22a1=function(_0x22a125,_0x17764a){_0x22a125=_0x22a125-0x10b;let _0x32a75d=_0x2a1e66[_0x22a125];return _0x32a75d;},_0x22a1(_0x2750fc,_0x238c71);}export class AIChatContextPanelUrlInputView extends _0x34ce41{[_0x502bda(0x113)];[_0x502bda(0x12a)];[_0x502bda(0x14c)];[_0x502bda(0x139)];[_0x502bda(0x126)];[_0x502bda(0x141)];[_0x502bda(0x10d)];constructor(_0x2d88ba){const _0x4e05e4=_0x502bda;super(_0x2d88ba),this[_0x4e05e4(0x113)]=new _0x2b5338(),this[_0x4e05e4(0x12a)]=new _0x471f61(),this[_0x4e05e4(0x141)]=this[_0x4e05e4(0x120)](),this[_0x4e05e4(0x126)]=this[_0x4e05e4(0x125)](),this[_0x4e05e4(0x10d)]=this[_0x4e05e4(0x10f)](),this[_0x4e05e4(0x14c)]=this[_0x4e05e4(0x136)]([this[_0x4e05e4(0x141)],this[_0x4e05e4(0x126)],this[_0x4e05e4(0x10d)]]),this[_0x4e05e4(0x139)]=new _0x42a872({'focusables':this[_0x4e05e4(0x14c)],'focusTracker':this[_0x4e05e4(0x113)],'keystrokeHandler':this[_0x4e05e4(0x12a)],'actions':{'focusPrevious':_0x4e05e4(0x135),'focusNext':_0x4e05e4(0x12b)}}),this[_0x4e05e4(0x12d)](_0x4e05e4(0x12f),!0x0),this[_0x4e05e4(0x11d)](),this[_0x4e05e4(0x13c)](),this[_0x4e05e4(0x112)]();}[_0x502bda(0x13f)](){const _0x23430c=_0x502bda;super[_0x23430c(0x13f)](),this[_0x23430c(0x14c)][_0x23430c(0x148)](_0x297864=>{const _0x356913=_0x23430c;this[_0x356913(0x113)][_0x356913(0x124)](_0x297864[_0x356913(0x115)]),this[_0x356913(0x12a)][_0x356913(0x11a)](_0x297864[_0x356913(0x115)]);}),_0xc4f8f1({'view':this}),this[_0x23430c(0x140)]();}[_0x502bda(0x14f)](){const _0x2ee457=_0x502bda;super[_0x2ee457(0x14f)](),this[_0x2ee457(0x113)][_0x2ee457(0x14f)](),this[_0x2ee457(0x12a)][_0x2ee457(0x14f)]();}[_0x502bda(0x140)](){const _0x48ee9f=_0x502bda;this[_0x48ee9f(0x126)][_0x48ee9f(0x140)]();}[_0x502bda(0x132)](){const _0x552d73=_0x502bda;return this[_0x552d73(0x126)][_0x552d73(0x13b)][_0x552d73(0x115)]?.[_0x552d73(0x143)]?.[_0x552d73(0x150)]()||'';}[_0x502bda(0x111)](){const _0x3a85ed=_0x502bda;this[_0x3a85ed(0x126)][_0x3a85ed(0x13b)][_0x3a85ed(0x115)][_0x3a85ed(0x143)]='',this[_0x3a85ed(0x126)][_0x3a85ed(0x127)]=null,this[_0x3a85ed(0x10d)][_0x3a85ed(0x128)]=!0x1;}[_0x502bda(0x151)](_0x19937c){const _0x4f5999=_0x502bda;this[_0x4f5999(0x126)][_0x4f5999(0x127)]=_0x19937c,this[_0x4f5999(0x114)](),this[_0x4f5999(0x147)](_0x4f5999(0x11c));}[_0x502bda(0x11b)](){const _0x5f09a2=_0x502bda;this[_0x5f09a2(0x126)][_0x5f09a2(0x127)]=null,this[_0x5f09a2(0x114)]();}[_0x502bda(0x120)](){const _0x1b186b=_0x502bda,_0xcc776d=new _0x51e6ee(this[_0x1b186b(0x138)]);return _0xcc776d[_0x1b186b(0x12d)]({'icon':_0x12633f,'tooltip':_0x4f0233(this[_0x1b186b(0x138)],_0x1b186b(0x110)),'tooltipPosition':'n','class':[_0x1b186b(0x116)]}),this['on'](_0x1b186b(0x152),(_0x362d0b,_0x3c5f25,_0x3c6f50)=>{const _0x257e8b=_0x1b186b;_0xcc776d[_0x257e8b(0x12d)]({'class':[_0x257e8b(0x116)+(_0x3c6f50?'':_0x257e8b(0x14b))]});}),_0xcc776d;}[_0x502bda(0x125)](){const _0x233fb9=_0x502bda,_0x95c424=new _0xa210cc(this[_0x233fb9(0x138)],_0x4268a2);return _0x95c424[_0x233fb9(0x12d)]({'label':_0x4f0233(this[_0x233fb9(0x138)],_0x233fb9(0x131)),'class':_0x233fb9(0x122)}),_0x95c424[_0x233fb9(0x13b)][_0x233fb9(0x12d)]({'placeholder':_0x4f0233(this[_0x233fb9(0x138)],_0x233fb9(0x119))}),_0x95c424;}[_0x502bda(0x10f)](){const _0x2e006f=_0x502bda,_0x1b498d=new _0x51e6ee(this[_0x2e006f(0x138)]);return _0x1b498d[_0x2e006f(0x12d)]({'icon':_0x349a2f,'tooltip':_0x4f0233(this[_0x2e006f(0x138)],_0x2e006f(0x155)),'tooltipPosition':'n','class':_0x2e006f(0x14e),'type':_0x2e006f(0x145),'isEnabled':!0x1}),_0x1b498d;}[_0x502bda(0x11d)](){const _0x26ce50=_0x502bda,_0x4fcd6b=new _0x42a103(this[_0x26ce50(0x138)],{'label':_0x4f0233(this[_0x26ce50(0x138)],_0x26ce50(0x155)),'class':_0x26ce50(0x156)});_0x4fcd6b[_0x26ce50(0x142)][_0x26ce50(0x124)](this[_0x26ce50(0x141)],0x0),this[_0x26ce50(0x130)]({'tag':_0x26ce50(0x14d),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0x4fcd6b,{'tag':_0x26ce50(0x13d),'attributes':{'class':ch},'children':[this[_0x26ce50(0x126)],this[_0x26ce50(0x10d)]]}]});}[_0x502bda(0x13c)](){const _0x4217db=_0x502bda;this[_0x4217db(0x141)]['on'](_0x4217db(0x10e),()=>{const _0x45ee51=_0x4217db;this[_0x45ee51(0x111)](),this[_0x45ee51(0x147)](_0x45ee51(0x149));}),this[_0x4217db(0x126)][_0x4217db(0x13b)]['on'](_0x4217db(0x13a),()=>{const _0x4f610d=_0x4217db;this[_0x4f610d(0x11b)](),this[_0x4f610d(0x114)](),this[_0x4f610d(0x147)](_0x4f610d(0x11c));}),this['on'](_0x4217db(0x145),_0x7dcbf8=>{const _0x4e6d93=_0x4217db;_0x7dcbf8[_0x4e6d93(0x11e)](),this[_0x4e6d93(0x134)]();});}[_0x502bda(0x112)](){const _0x1db51d=_0x502bda;this[_0x1db51d(0x12a)][_0x1db51d(0x12d)](_0x1db51d(0x146),(_0x5791c6,_0x356ef8)=>{const _0x2f7bff=_0x1db51d;this[_0x2f7bff(0x111)](),this[_0x2f7bff(0x147)](_0x2f7bff(0x149)),_0x356ef8();});}[_0x502bda(0x134)](){const _0x12b55b=_0x502bda,_0xa7b9f7=this[_0x12b55b(0x132)]()[_0x12b55b(0x150)]();_0xa7b9f7?this[_0x12b55b(0x11f)](_0xa7b9f7)?(this[_0x12b55b(0x11b)](),this[_0x12b55b(0x147)](_0x12b55b(0x144),_0xa7b9f7)):this[_0x12b55b(0x151)](_0x4f0233(this[_0x12b55b(0x138)],_0x12b55b(0x12e))):this[_0x12b55b(0x151)](_0x4f0233(this[_0x12b55b(0x138)],_0x12b55b(0x13e)));}[_0x502bda(0x114)](){const _0x199ed1=_0x502bda,_0x4ceec5=this[_0x199ed1(0x132)]()[_0x199ed1(0x150)](),_0x285dc3=!!this[_0x199ed1(0x126)][_0x199ed1(0x127)];this[_0x199ed1(0x10d)][_0x199ed1(0x128)]=_0x4ceec5[_0x199ed1(0x133)]>0x0&&!_0x285dc3;}[_0x502bda(0x11f)](_0x4beb9b){try{return!!new URL(_0x4beb9b);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5aa4aa=_0x170e;(function(_0x5e5632,_0x537dca){const _0x6d5ad5=_0x170e,_0x3ca345=_0x5e5632();while(!![]){try{const _0x1ee7a6=parseInt(_0x6d5ad5(0x146))/0x1+parseInt(_0x6d5ad5(0x16a))/0x2+parseInt(_0x6d5ad5(0x1bb))/0x3*(-parseInt(_0x6d5ad5(0x13d))/0x4)+parseInt(_0x6d5ad5(0x1c3))/0x5+parseInt(_0x6d5ad5(0x1bd))/0x6*(-parseInt(_0x6d5ad5(0x1c0))/0x7)+-parseInt(_0x6d5ad5(0x18c))/0x8*(-parseInt(_0x6d5ad5(0x151))/0x9)+-parseInt(_0x6d5ad5(0x15f))/0xa;if(_0x1ee7a6===_0x537dca)break;else _0x3ca345['push'](_0x3ca345['shift']());}catch(_0x212433){_0x3ca345['push'](_0x3ca345['shift']());}}}(_0x5138,0x59975));import{BalloonPanelView as _0x188dc9,ButtonView as _0x3f1ab6,clickOutsideHandler as _0xbe59cf,FileDialogButtonView as _0x5b8dd7,IconView as _0x14e21f,View as _0x44cff2}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x130f20,IconDocument as _0x30e002,IconDocumentOutline as _0x3c8f62,IconDropdownArrow as _0x4a6f43,IconLink as _0x4e8400,IconPaperClip as _0x28516a}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x393f94}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x98802e}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0xfc1d85}from'./aichatchipsoverflowmanager.js';function _0x170e(_0x21427e,_0x340e9c){const _0x5138bc=_0x5138();return _0x170e=function(_0x170eff,_0x286227){_0x170eff=_0x170eff-0x133;let _0x5a8b41=_0x5138bc[_0x170eff];return _0x5a8b41;},_0x170e(_0x21427e,_0x340e9c);}import{getTranslation as _0x330cce}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x5468b9}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x5aa4aa(0x160),_0x5aa4aa(0x18e),_0x5aa4aa(0x158),_0x5aa4aa(0x159),_0x5aa4aa(0x135),_0x5aa4aa(0x144),_0x5aa4aa(0x1a6)];function _0x5138(){const _0x47ccc9=['_addUrlContent','closeSourceResourceBalloon','setConversationContext','children','12YwfyYX','ck-ai-chat','6UbdvsQ','isLoading','_createContextButton','554029uPVmQY','ck-ai-chat-context-controls__balloon-button-source','add','822700jtUSHg','_createBaseBalloonPanel','_hasExactlyOneSource','_setBalloonPanelContent','sources','extendTemplate','fire','customItem','submitUrl','removeContextItem','setContextItemLoading','createCollection','clearConversationContextItems','AI_CHAT_CONTEXT_FILE_LABEL','ck-ai-chat-controls-button','ck-ai-chat-context-controls__url-balloon-panel','ck-ai-chat-context-controls__add-context-balloon-panel','37420czOzHp','_setupTemplate','ck-ai-chat-context-controls__pending-contexts','refreshBalloon','remove','icon','closest','loadSourceResources','ck-ai-chat-context-controls__add-context-button','352197SnBiJl','_overflowManager','_urlBalloonPanelView','_handleAddContextButtonClick','ck-ai-chat-controls_context_show-more-button','AI_CHAT_CONTEXT_ADD_CONTEXT','southArrowNorthWest','_getLimiterElement','execute','_conversationContextsChips','hide','2795553pWQqfZ','overflowChips','balloonView','northArrowSouthWest','setContainerElement','pin','southArrowNorthEast','addUrlToContext','addResourceToContext','bodyCollection','source','_createBalloonButton','_removeContextFromCollection','updateResourceState','7736020DThFzP','addDocumentToContext','defaultPositions','locale','_showSourceResourcesBalloon','AI_CHAT_CONTEXT_URL_LABEL','_createAddContextButtonView','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_bindEventHandlers','setAddContextOptions','withBackButton','238326NgLIqt','menuitem','northArrowSouthEast','enabled','__arrow','_addContextBalloonPanelView','_handleUrlSubmit','isHidden','reorganizeChips','_setupAddContextBalloonClickOutsideHandler','customItems','addContextItem','find','isReadOnly','ck-ai-chat-context-controls__show-more-balloon-panel','_setupAllBalloonClickOutsideHandlers','hideUrlBalloonPanel','isVisible','clearCurrentContextItems','_addContextToCollection','element','urls','cancel','southArrowNorth','body','_setupUrlBalloonClickOutsideHandler','_resourcesBalloonView','done','_createArrowView','addContextButtonView','_createAddContextBalloonPanelView','showSourceResourcesBalloon','render','bind','16dGVIyo','label','addFileToContext','_currentContextsChips','ck-ai-chat-context-chips-wrapper-balloon','content','removeContextItemChip','_setAddContextButtonEnabled','ck-reset_all-excluded','div','files','_addContextBalloonConfig','setTemplate','destroy','_createResourcesBalloonView','populateSourceResourceBalloon','buttonView','length','isOn','isEnabled','showAddContextBalloonPanel','focus','hideAddContextBalloonPanel','type','tooltip','isAnyResourceBalloonVisible','executeCustomItemCallback','document','ck-ai-chat-context-controls__balloon-button','northArrowSouth','ck-ai-chat-context-controls','clear','_urlInputView','_toggleAddContextBalloon','get','searchInputVisibleFrom','show','_createUrlBalloonPanelView','arrowView','showUrlBalloonPanel','conversation','current','set'];_0x5138=function(){return _0x47ccc9;};return _0x5138();}const Uo=_0x5aa4aa(0x1aa),Lo=_0x5aa4aa(0x13f),No=_0x5aa4aa(0x13c),Mo=_0x5aa4aa(0x145),Ho=_0x5aa4aa(0x13b),jo=_0x5aa4aa(0x1a8),Fo=_0x5aa4aa(0x1c1),Xo=_0x5aa4aa(0x13a),Do=_0x5aa4aa(0x190),$o=_0x5aa4aa(0x14a),Wo=_0x5aa4aa(0x178),qo=_0x5aa4aa(0x1bc),zo=[_0x188dc9[_0x5aa4aa(0x161)][_0x5aa4aa(0x154)],_0x188dc9[_0x5aa4aa(0x161)][_0x5aa4aa(0x1a9)],_0x188dc9[_0x5aa4aa(0x161)][_0x5aa4aa(0x16c)],_0x188dc9[_0x5aa4aa(0x161)][_0x5aa4aa(0x14c)],_0x188dc9[_0x5aa4aa(0x161)][_0x5aa4aa(0x181)],_0x188dc9[_0x5aa4aa(0x161)][_0x5aa4aa(0x157)]];export class AIChatContextPanelView extends _0x44cff2{[_0x5aa4aa(0x187)];[_0x5aa4aa(0x18f)]=this[_0x5aa4aa(0x137)]();[_0x5aa4aa(0x14f)]=this[_0x5aa4aa(0x137)]();[_0x5aa4aa(0x147)];[_0x5aa4aa(0x16f)];[_0x5aa4aa(0x148)];[_0x5aa4aa(0x1ac)];[_0x5aa4aa(0x184)];[_0x5aa4aa(0x197)];[_0x5aa4aa(0x1c5)]=!0x1;[_0x5aa4aa(0x15a)];constructor(_0x5b48fe,_0x117375){const _0xe0f155=_0x5aa4aa;super(_0x5b48fe),this[_0xe0f155(0x15a)]=_0x117375[_0xe0f155(0x15a)],this[_0xe0f155(0x18f)]=this[_0xe0f155(0x137)](),this[_0xe0f155(0x14f)]=this[_0xe0f155(0x137)](),this[_0xe0f155(0x187)]=this[_0xe0f155(0x165)](_0x5b48fe),this[_0xe0f155(0x16f)]=this[_0xe0f155(0x188)](_0x5b48fe),this[_0xe0f155(0x148)]=this[_0xe0f155(0x1b1)](_0x5b48fe),this[_0xe0f155(0x184)]=this[_0xe0f155(0x19a)](_0x5b48fe,_0x117375);const _0x307345={'cssClasses':{'showMoreButton':$o,'showMoreBalloon':Wo,'overflowContainer':Do,'controlsButton':Xo}};this[_0xe0f155(0x147)]=new _0xfc1d85(_0x5b48fe,this[_0xe0f155(0x18f)],_0x307345,this[_0xe0f155(0x15a)],this),this[_0xe0f155(0x197)]={'buttonView':this[_0xe0f155(0x187)],'balloonView':this[_0xe0f155(0x16f)],'hideMethod':this[_0xe0f155(0x1a2)][_0xe0f155(0x18b)](this),'showMethod':this[_0xe0f155(0x1a0)][_0xe0f155(0x18b)](this)},this[_0xe0f155(0x13e)](),this[_0xe0f155(0x167)]();}[_0x5aa4aa(0x18a)](){const _0x5ef417=_0x5aa4aa;super[_0x5ef417(0x18a)](),this[_0x5ef417(0x179)](),this[_0x5ef417(0x147)][_0x5ef417(0x155)](this[_0x5ef417(0x17e)]),this[_0x5ef417(0x147)][_0x5ef417(0x172)]();}[_0x5aa4aa(0x199)](){const _0x65d9a=_0x5aa4aa;super[_0x65d9a(0x199)](),this[_0x65d9a(0x147)][_0x65d9a(0x199)](),this[_0x65d9a(0x184)][_0x65d9a(0x199)]();}[_0x5aa4aa(0x175)](_0x474df1,_0x3b8d0e){const _0x5badb2=_0x5aa4aa,_0x1fe178=this[_0x5badb2(0x1bf)](_0x474df1,_0x5badb2(0x1b5),!0x0,_0x3b8d0e);this[_0x5badb2(0x17d)](_0x1fe178,this[_0x5badb2(0x18f)]),this[_0x5badb2(0x147)][_0x5badb2(0x172)]();}[_0x5aa4aa(0x135)](_0x318170){const _0x6cc64b=_0x5aa4aa;this[_0x6cc64b(0x15d)](_0x318170,this[_0x6cc64b(0x18f)]),this[_0x6cc64b(0x15d)](_0x318170,this[_0x6cc64b(0x147)][_0x6cc64b(0x152)]),this[_0x6cc64b(0x147)][_0x6cc64b(0x172)]();}[_0x5aa4aa(0x136)](_0x2c2a57,_0x23abee){const _0x455492=_0x5aa4aa;let _0x3855c6=this[_0x455492(0x18f)][_0x455492(0x176)](_0x3266a0=>_0x3266a0['id']===_0x2c2a57);_0x3855c6||(_0x3855c6=this[_0x455492(0x147)][_0x455492(0x152)][_0x455492(0x176)](_0x4132ba=>_0x4132ba['id']===_0x2c2a57)),_0x3855c6&&(_0x3855c6[_0x455492(0x1be)]=_0x23abee);}[_0x5aa4aa(0x1b9)](_0x34949b){const _0x5abccb=_0x5aa4aa;this[_0x5abccb(0x14f)][_0x5abccb(0x1ab)]();for(const _0x3f38ff of _0x34949b){const _0x43f72f=this[_0x5abccb(0x1bf)](_0x3f38ff,_0x5abccb(0x1b4),!0x1,!0x1);this[_0x5abccb(0x17d)](_0x43f72f,this[_0x5abccb(0x14f)]);}}[_0x5aa4aa(0x17c)](){const _0x560150=_0x5aa4aa;this[_0x560150(0x18f)][_0x560150(0x1ab)](),this[_0x560150(0x147)][_0x560150(0x1ab)]();}[_0x5aa4aa(0x138)](){const _0x3186af=_0x5aa4aa;this[_0x3186af(0x14f)][_0x3186af(0x1ab)]();}[_0x5aa4aa(0x15e)](_0x5e67fb,_0x4c1415,_0x5069f5){const _0x33cb26=_0x5aa4aa;this[_0x33cb26(0x184)][_0x33cb26(0x15e)](_0x5e67fb,_0x4c1415,_0x5069f5);}[_0x5aa4aa(0x1a2)](){const _0x788766=_0x5aa4aa;this[_0x788766(0x1ad)](!0x1);}[_0x5aa4aa(0x1a0)](){const _0x33e9cb=_0x5aa4aa;this[_0x33e9cb(0x1ad)](!0x0);}[_0x5aa4aa(0x17a)](){const _0x4e3b42=_0x5aa4aa;this[_0x4e3b42(0x148)][_0x4e3b42(0x150)](),this[_0x4e3b42(0x187)][_0x4e3b42(0x19e)]=!0x1,this[_0x4e3b42(0x1ac)]&&this[_0x4e3b42(0x1ac)][_0x4e3b42(0x1ab)]();}[_0x5aa4aa(0x1b3)](){const _0x4c4898=_0x5aa4aa;this[_0x4c4898(0x148)][_0x4c4898(0x1b0)](),this[_0x4c4898(0x187)][_0x4c4898(0x19e)]=!0x0;}[_0x5aa4aa(0x163)]({source:_0xb0b1ec,withBackButton:_0x230052}){const _0x1ee97b=_0x5aa4aa;this[_0x1ee97b(0x184)][_0x1ee97b(0x189)]({'source':_0xb0b1ec,'withBackButton':_0x230052}),this[_0x1ee97b(0x187)][_0x1ee97b(0x19e)]=!0x0;}[_0x5aa4aa(0x19b)](_0x22c4a6,_0x28fc1c,_0x4aea69,_0x1df71d){const _0x22efa1=_0x5aa4aa;this[_0x22efa1(0x184)][_0x22efa1(0x19b)](_0x22c4a6,_0x4aea69,_0x1df71d);}[_0x5aa4aa(0x1b8)](_0x3136d7){const _0x1afefc=_0x5aa4aa;this[_0x1afefc(0x184)][_0x1afefc(0x1b8)](_0x3136d7),this[_0x1afefc(0x187)][_0x1afefc(0x19e)]=!0x1;}[_0x5aa4aa(0x168)](_0x4cad6f){const _0x44e773=_0x5aa4aa;this[_0x44e773(0x1c6)](this[_0x44e773(0x16f)],this[_0x44e773(0x162)],_0x4cad6f),this[_0x44e773(0x193)](_0x4cad6f);}[_0x5aa4aa(0x193)](_0x5241cc){const _0x550ebf=_0x5aa4aa,_0x5eb210=!_0x5241cc[_0x550ebf(0x1a7)][_0x550ebf(0x171)]&&_0x5241cc[_0x550ebf(0x1a7)][_0x550ebf(0x16d)],_0x20dddf=_0x5241cc[_0x550ebf(0x17f)][_0x550ebf(0x16d)],_0x5ca415=_0x5241cc[_0x550ebf(0x196)][_0x550ebf(0x16d)],_0x5881c3=_0x5241cc[_0x550ebf(0x1c7)][_0x550ebf(0x19d)]>0x0,_0x4fdb0d=_0x5241cc[_0x550ebf(0x174)]&&_0x5241cc[_0x550ebf(0x174)][_0x550ebf(0x19d)]>0x0;this[_0x550ebf(0x187)][_0x550ebf(0x19f)]=_0x5eb210||_0x20dddf||_0x5ca415||_0x5881c3||_0x4fdb0d;}[_0x5aa4aa(0x13e)](){const _0x55b6d9=_0x5aa4aa;this[_0x55b6d9(0x198)]({'tag':_0x55b6d9(0x195),'attributes':{'class':[Uo,_0x55b6d9(0x194)]},'children':[{'tag':_0x55b6d9(0x195),'attributes':{'class':Lo},'children':this[_0x55b6d9(0x18f)]}]});}[_0x5aa4aa(0x167)](){const _0x49a811=_0x5aa4aa;this[_0x49a811(0x187)]['on'](_0x49a811(0x14e),()=>{const _0x3b4ca8=_0x49a811;this[_0x3b4ca8(0x149)]();});}[_0x5aa4aa(0x165)](_0x4871b6){const _0x204765=_0x5aa4aa,_0x48ca0e=new _0x3f1ab6(_0x4871b6);return _0x48ca0e[_0x204765(0x1b6)]({'label':_0x330cce(_0x4871b6,_0x204765(0x14b)),'class':Xo+'\x20'+Mo,'icon':_0x28516a,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x48ca0e;}[_0x5aa4aa(0x188)](_0x4ea810){const _0x3e0f73=_0x5aa4aa;return this[_0x3e0f73(0x1c4)](_0x4ea810,No);}[_0x5aa4aa(0x1b1)](_0x3ecff6){const _0x915725=_0x5aa4aa,_0x51cf43=this[_0x915725(0x1c4)](_0x3ecff6,Ho);return this[_0x915725(0x1b7)](_0x51cf43,_0x3ecff6),_0x51cf43;}[_0x5aa4aa(0x19a)](_0x2b1387,_0xfc47bc){const _0x513852=_0x5aa4aa,_0x37ab96={'searchInputVisibleFrom':_0xfc47bc[_0x513852(0x1af)],'onBackToContext':()=>{const _0x3357e7=_0x513852;this[_0x3357e7(0x1a0)](),this[_0x3357e7(0x16f)][_0x3357e7(0x156)]({'target':this[_0x3357e7(0x187)][_0x3357e7(0x17e)],'limiter':this[_0x3357e7(0x14d)](),'positions':zo});},'onResourceSelected':(_0x389eb4,_0x21602e)=>{const _0x169647=_0x513852;this[_0x169647(0x1c9)](_0x169647(0x159),{'source':_0x389eb4,'resource':_0x21602e});},'onLoadSourceResources':_0x3051ec=>{const _0x497eca=_0x513852;this[_0x497eca(0x1c9)](_0x497eca(0x144),_0x3051ec);},'onBalloonClosed':()=>{const _0x3beba3=_0x513852;this[_0x3beba3(0x187)][_0x3beba3(0x19e)]=!0x1;},'getLimiterElement':()=>this[_0x513852(0x14d)](),'getTargetElement':()=>this[_0x513852(0x187)][_0x513852(0x17e)]};return new _0x5468b9(_0x2b1387,_0xfc47bc[_0x513852(0x15a)],_0x37ab96);}[_0x5aa4aa(0x14d)](){const _0x2dceff=_0x5aa4aa;return this[_0x2dceff(0x17e)]?.[_0x2dceff(0x143)]('.'+qo)||document[_0x2dceff(0x182)];}[_0x5aa4aa(0x1c4)](_0x4ef5e9,_0x4be51c){const _0x53a815=_0x5aa4aa,_0x3135c1=new _0x188dc9(_0x4ef5e9);return _0x3135c1[_0x53a815(0x1c8)]({'attributes':{'class':_0x4be51c}}),this[_0x53a815(0x15a)][_0x53a815(0x1c2)](_0x3135c1),_0x3135c1;}[_0x5aa4aa(0x1c6)](_0x2ee558,_0x6d1e00,_0x285bb8){const _0x357f96=_0x5aa4aa;if(_0x2ee558[_0x357f96(0x191)][_0x357f96(0x1ab)](),!_0x285bb8[_0x357f96(0x1a7)][_0x357f96(0x171)]&&_0x285bb8[_0x357f96(0x1a7)][_0x357f96(0x16d)]){const _0x4cda68=this[_0x357f96(0x15c)](_0x6d1e00,{'label':_0x330cce(_0x6d1e00,_0x357f96(0x166)),'icon':_0x30e002});_0x4cda68['on'](_0x357f96(0x14e),()=>{const _0x5e9c38=_0x357f96;this[_0x5e9c38(0x1c9)](_0x5e9c38(0x160)),this[_0x5e9c38(0x1a2)]();}),_0x2ee558[_0x357f96(0x191)][_0x357f96(0x1c2)](_0x4cda68);}if(_0x285bb8[_0x357f96(0x17f)][_0x357f96(0x16d)]){const _0x5d8528=this[_0x357f96(0x15c)](_0x6d1e00,{'label':_0x330cce(_0x6d1e00,_0x357f96(0x164)),'icon':_0x4e8400});_0x5d8528['on'](_0x357f96(0x14e),()=>{const _0x259448=_0x357f96;this[_0x259448(0x1a2)](),this[_0x259448(0x1b3)](),this[_0x259448(0x148)][_0x259448(0x156)]({'target':this[_0x259448(0x187)][_0x259448(0x17e)],'limiter':this[_0x259448(0x14d)](),'positions':zo}),this[_0x259448(0x1ac)][_0x259448(0x1a1)]();}),_0x2ee558[_0x357f96(0x191)][_0x357f96(0x1c2)](_0x5d8528);}if(_0x285bb8[_0x357f96(0x196)][_0x357f96(0x16d)]){const _0x33814b=new _0x5b8dd7(_0x6d1e00);_0x33814b[_0x357f96(0x1b6)]({'label':_0x330cce(_0x6d1e00,_0x357f96(0x139)),'icon':_0x130f20,'withText':!0x0,'tooltip':!0x0,'class':jo,'allowMultipleFiles':!0x0}),_0x33814b['on'](_0x357f96(0x14e),()=>{const _0x514195=_0x357f96;this[_0x514195(0x1a2)]();}),_0x33814b['on'](_0x357f96(0x185),(_0x380056,_0x42e64f)=>{const _0x52c0e0=_0x357f96;this[_0x52c0e0(0x1c9)](_0x52c0e0(0x18e),_0x42e64f);}),_0x33814b[_0x357f96(0x1a4)]=!0x0,_0x2ee558[_0x357f96(0x191)][_0x357f96(0x1c2)](_0x33814b);}for(const _0x21df9d of _0x285bb8[_0x357f96(0x1c7)]){const _0x46e4d7=this[_0x357f96(0x15c)](_0x6d1e00,{'label':_0x21df9d[_0x357f96(0x18d)],'icon':_0x21df9d[_0x357f96(0x142)]||_0x3c8f62,'type':_0x357f96(0x15b)});_0x2ee558[_0x357f96(0x191)][_0x357f96(0x1c2)](_0x46e4d7),_0x46e4d7['on'](_0x357f96(0x14e),()=>{const _0x50cbe9=_0x357f96;this[_0x50cbe9(0x1a2)](),this[_0x50cbe9(0x163)]({'source':_0x21df9d,'withBackButton':!this[_0x50cbe9(0x1c5)]});});}for(const _0x2dea4c of _0x285bb8[_0x357f96(0x174)]||[]){const _0x11cf12=this[_0x357f96(0x15c)](_0x6d1e00,{'label':_0x2dea4c[_0x357f96(0x18d)],'icon':_0x2dea4c[_0x357f96(0x142)]||_0x3c8f62,'type':_0x357f96(0x133)});_0x2ee558[_0x357f96(0x191)][_0x357f96(0x1c2)](_0x11cf12),_0x11cf12['on'](_0x357f96(0x14e),()=>{const _0x17ff4d=_0x357f96;this[_0x17ff4d(0x1a2)](),this[_0x17ff4d(0x1c9)](_0x17ff4d(0x1a6),_0x2dea4c);});}this[_0x357f96(0x1c5)]=0x1===_0x2ee558[_0x357f96(0x191)][_0x357f96(0x19d)],this[_0x357f96(0x1ac)][_0x357f96(0x169)]=!this[_0x357f96(0x1c5)];}[_0x5aa4aa(0x1b7)](_0x1b1e98,_0x56aca7){const _0xbf5023=_0x5aa4aa;this[_0xbf5023(0x1ac)]=new _0x98802e(_0x56aca7),this[_0xbf5023(0x1ac)]['on'](_0xbf5023(0x134),(_0xa8dd32,_0x1a479c)=>{const _0x4adf93=_0xbf5023;this[_0x4adf93(0x170)](_0x1a479c);}),this[_0xbf5023(0x1ac)]['on'](_0xbf5023(0x180),()=>{const _0x604506=_0xbf5023;this[_0x604506(0x17a)](),this[_0x604506(0x1c5)]||(this[_0x604506(0x1a0)](),this[_0x604506(0x16f)][_0x604506(0x156)]({'target':this[_0x604506(0x187)][_0x604506(0x17e)],'limiter':this[_0x604506(0x14d)](),'positions':zo}));}),this[_0xbf5023(0x1ac)]['on'](_0xbf5023(0x140),()=>{const _0x5ba16b=_0xbf5023;this[_0x5ba16b(0x148)][_0x5ba16b(0x17b)]&&this[_0x5ba16b(0x148)][_0x5ba16b(0x156)]({'target':this[_0x5ba16b(0x187)][_0x5ba16b(0x17e)],'limiter':this[_0x5ba16b(0x14d)](),'positions':zo});}),_0x1b1e98[_0xbf5023(0x191)][_0xbf5023(0x1c2)](this[_0xbf5023(0x1ac)]);}[_0x5aa4aa(0x15c)](_0x3d74fc,_0x18a54a){const _0x467f01=_0x5aa4aa,_0x74b9db=_0x467f01(0x15b)===_0x18a54a[_0x467f01(0x1a3)]?new SourcesBalloonButtonView(_0x3d74fc):new _0x3f1ab6(_0x3d74fc);return _0x74b9db[_0x467f01(0x1b6)]({'label':_0x18a54a[_0x467f01(0x18d)],'icon':_0x18a54a[_0x467f01(0x142)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':jo}),_0x74b9db;}[_0x5aa4aa(0x179)](){const _0x315fa6=_0x5aa4aa;this[_0x315fa6(0x173)](),this[_0x315fa6(0x183)]();}[_0x5aa4aa(0x183)](){const _0x1bf279=_0x5aa4aa;_0xbe59cf({'emitter':this[_0x1bf279(0x148)],'contextElements':[this[_0x1bf279(0x148)][_0x1bf279(0x17e)]],'callback':()=>{const _0x8d6407=_0x1bf279;this[_0x8d6407(0x17a)]();},'activator':()=>this[_0x1bf279(0x148)][_0x1bf279(0x17b)]});}[_0x5aa4aa(0x1ad)](_0x3261b1){const _0xa6cbf1=_0x5aa4aa,_0x4f3234=this[_0xa6cbf1(0x197)];_0x4f3234[_0xa6cbf1(0x19c)][_0xa6cbf1(0x19e)]=_0x3261b1,_0x3261b1?_0x4f3234[_0xa6cbf1(0x153)][_0xa6cbf1(0x1b0)]():_0x4f3234[_0xa6cbf1(0x153)][_0xa6cbf1(0x150)]();}[_0x5aa4aa(0x173)](){const _0x515a02=_0x5aa4aa,{balloonView:_0x2fb522,buttonView:_0x3e4c9a,hideMethod:_0x371cdb}=this[_0x515a02(0x197)];_0xbe59cf({'emitter':_0x2fb522,'contextElements':[_0x2fb522[_0x515a02(0x17e)],_0x3e4c9a[_0x515a02(0x17e)]],'callback':()=>{_0x371cdb();},'activator':()=>_0x3e4c9a[_0x515a02(0x19e)]&&!this[_0x515a02(0x148)][_0x515a02(0x17b)]&&!this[_0x515a02(0x184)][_0x515a02(0x1a5)]()});}[_0x5aa4aa(0x1bf)](_0x20eb1f,_0x1c22a0,_0x44e45c=!0x1,_0x4106c4=!0x1){const _0x30cd09=_0x5aa4aa,_0x22b1be=_0x30cd09(0x1b4)===_0x1c22a0||!0x0===_0x20eb1f[_0x30cd09(0x177)],_0x43f3a7=new _0x393f94(this[_0x30cd09(0x162)],_0x20eb1f,_0x22b1be,_0x44e45c,_0x4106c4);return _0x22b1be||_0x43f3a7['on'](_0x30cd09(0x192),()=>{const _0x4f532e=_0x30cd09;this[_0x4f532e(0x1c9)](_0x4f532e(0x135),_0x43f3a7['id']);}),_0x43f3a7;}[_0x5aa4aa(0x17d)](_0xf31c8f,_0x42d835){const _0x3b5988=_0x5aa4aa;_0x42d835[_0x3b5988(0x1c2)](_0xf31c8f,0x0);}[_0x5aa4aa(0x15d)](_0x2184b8,_0x3e221d){const _0x598f7f=_0x5aa4aa,_0x257a1a=_0x3e221d[_0x598f7f(0x176)](_0x35ae56=>_0x35ae56['id']===_0x2184b8);_0x257a1a&&_0x3e221d[_0x598f7f(0x141)](_0x257a1a);}[_0x5aa4aa(0x149)](){const _0x580cd3=_0x5aa4aa;this[_0x580cd3(0x187)][_0x580cd3(0x19e)]?this[_0x580cd3(0x1a2)]():(this[_0x580cd3(0x1a0)](),this[_0x580cd3(0x16f)][_0x580cd3(0x156)]({'target':this[_0x580cd3(0x187)][_0x580cd3(0x17e)],'limiter':this[_0x580cd3(0x14d)](),'positions':zo}),this[_0x580cd3(0x1c5)]&&this[_0x580cd3(0x16f)][_0x580cd3(0x191)][_0x580cd3(0x1ae)](0x0)?.[_0x580cd3(0x1c9)](_0x580cd3(0x14e)));}[_0x5aa4aa(0x170)](_0x55fd07){const _0x54443f=_0x5aa4aa;this[_0x54443f(0x1ac)][_0x54443f(0x1ab)](),this[_0x54443f(0x17a)](),this[_0x54443f(0x1c9)](_0x54443f(0x158),_0x55fd07);}}export class SourcesBalloonButtonView extends _0x3f1ab6{[_0x5aa4aa(0x1b2)];constructor(_0x562082){const _0x3a8c84=_0x5aa4aa;super(_0x562082),this[_0x3a8c84(0x1b6)]({'withText':!0x0,'role':_0x3a8c84(0x16b)}),this[_0x3a8c84(0x1b2)]=this[_0x3a8c84(0x186)](),this[_0x3a8c84(0x1c8)]({'attributes':{'class':[Fo]}});}[_0x5aa4aa(0x18a)](){const _0x5db28d=_0x5aa4aa;super[_0x5db28d(0x18a)](),this[_0x5db28d(0x1ba)][_0x5db28d(0x1c2)](this[_0x5db28d(0x1b2)]);}[_0x5aa4aa(0x186)](){const _0x5858a6=_0x5aa4aa,_0x2b5b97=new _0x14e21f();return _0x2b5b97[_0x5858a6(0x191)]=_0x4a6f43,_0x2b5b97[_0x5858a6(0x1c8)]({'attributes':{'class':Fo+_0x5858a6(0x16e)}}),_0x2b5b97;}}
|
|
23
|
+
const _0x30541b=_0xf516;(function(_0x454a75,_0x986fb1){const _0x4c1b27=_0xf516,_0x3225be=_0x454a75();while(!![]){try{const _0x4332b4=parseInt(_0x4c1b27(0x112))/0x1*(-parseInt(_0x4c1b27(0x11a))/0x2)+-parseInt(_0x4c1b27(0xe5))/0x3+-parseInt(_0x4c1b27(0xe3))/0x4*(-parseInt(_0x4c1b27(0x11e))/0x5)+parseInt(_0x4c1b27(0x153))/0x6*(parseInt(_0x4c1b27(0x133))/0x7)+-parseInt(_0x4c1b27(0xea))/0x8+parseInt(_0x4c1b27(0x151))/0x9+-parseInt(_0x4c1b27(0xdb))/0xa*(-parseInt(_0x4c1b27(0x159))/0xb);if(_0x4332b4===_0x986fb1)break;else _0x3225be['push'](_0x3225be['shift']());}catch(_0x5ad668){_0x3225be['push'](_0x3225be['shift']());}}}(_0x19af,0x5fe46));import{BalloonPanelView as _0xf9fa58,ButtonView as _0x4c7741,clickOutsideHandler as _0xd2f7b7,FileDialogButtonView as _0x116ed9,IconView as _0x4847c5,View as _0x32680b}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x5df7bd,IconDocument as _0x280b25,IconDocumentOutline as _0x2fa54e,IconDropdownArrow as _0x2bf361,IconLink as _0x3520ae,IconPaperClip as _0x5642b9}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x5cf874}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x2f60a3}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x2ace20}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x9ffd38}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x5a2bb1}from'./resources/aichatresourcesballoonview.js';function _0xf516(_0x484d99,_0x5b7385){const _0x19afa6=_0x19af();return _0xf516=function(_0xf5168c,_0x272785){_0xf5168c=_0xf5168c-0xd7;let _0x504d77=_0x19afa6[_0xf5168c];return _0x504d77;},_0xf516(_0x484d99,_0x5b7385);}export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x30541b(0x163),_0x30541b(0x106),_0x30541b(0x116),_0x30541b(0xdf),_0x30541b(0x157),_0x30541b(0x160),_0x30541b(0x15a)];const Uo=_0x30541b(0xfd),Lo=_0x30541b(0xe0),No=_0x30541b(0x16d),Mo=_0x30541b(0x164),Ho=_0x30541b(0xd9),jo=_0x30541b(0x123),Fo=_0x30541b(0x144),Xo=_0x30541b(0xee),Do=_0x30541b(0xe1),$o=_0x30541b(0x15d),Wo=_0x30541b(0xdc),qo=_0x30541b(0x104),zo=[_0xf9fa58[_0x30541b(0xf8)][_0x30541b(0x12f)],_0xf9fa58[_0x30541b(0xf8)][_0x30541b(0x114)],_0xf9fa58[_0x30541b(0xf8)][_0x30541b(0x129)],_0xf9fa58[_0x30541b(0xf8)][_0x30541b(0x12e)],_0xf9fa58[_0x30541b(0xf8)][_0x30541b(0x119)],_0xf9fa58[_0x30541b(0xf8)][_0x30541b(0x148)]];export class AIChatContextPanelView extends _0x32680b{[_0x30541b(0xe6)];[_0x30541b(0x15c)]=this[_0x30541b(0x11f)]();[_0x30541b(0xfe)]=this[_0x30541b(0x11f)]();[_0x30541b(0xeb)];[_0x30541b(0x10d)];[_0x30541b(0x122)];[_0x30541b(0x128)];[_0x30541b(0xf5)];[_0x30541b(0x15e)];[_0x30541b(0x125)]=!0x1;[_0x30541b(0xff)];constructor(_0x33f6ff,_0x2e0878){const _0x161fb9=_0x30541b;super(_0x33f6ff),this[_0x161fb9(0xff)]=_0x2e0878[_0x161fb9(0xff)],this[_0x161fb9(0x15c)]=this[_0x161fb9(0x11f)](),this[_0x161fb9(0xfe)]=this[_0x161fb9(0x11f)](),this[_0x161fb9(0xe6)]=this[_0x161fb9(0x110)](_0x33f6ff),this[_0x161fb9(0x10d)]=this[_0x161fb9(0x155)](_0x33f6ff),this[_0x161fb9(0x122)]=this[_0x161fb9(0x131)](_0x33f6ff),this[_0x161fb9(0xf5)]=this[_0x161fb9(0xfb)](_0x33f6ff,_0x2e0878);const _0x10962c={'cssClasses':{'showMoreButton':$o,'showMoreBalloon':Wo,'overflowContainer':Do,'controlsButton':Xo}};this[_0x161fb9(0xeb)]=new _0x2ace20(_0x33f6ff,this[_0x161fb9(0x15c)],_0x10962c,this[_0x161fb9(0xff)],this),this[_0x161fb9(0x15e)]={'buttonView':this[_0x161fb9(0xe6)],'balloonView':this[_0x161fb9(0x10d)],'hideMethod':this[_0x161fb9(0xf1)][_0x161fb9(0x12a)](this),'showMethod':this[_0x161fb9(0xe7)][_0x161fb9(0x12a)](this)},this[_0x161fb9(0x13d)](),this[_0x161fb9(0xf7)]();}[_0x30541b(0x16a)](){const _0xdeb614=_0x30541b;super[_0xdeb614(0x16a)](),this[_0xdeb614(0x105)](),this[_0xdeb614(0xeb)][_0xdeb614(0x12c)](this[_0xdeb614(0x14d)]),this[_0xdeb614(0xeb)][_0xdeb614(0x11b)]();}[_0x30541b(0x12d)](){const _0x4d3237=_0x30541b;super[_0x4d3237(0x12d)](),this[_0x4d3237(0xeb)][_0x4d3237(0x12d)](),this[_0x4d3237(0xf5)][_0x4d3237(0x12d)]();}[_0x30541b(0x13e)](_0x5681c3,_0xe71a2b){const _0x4c631f=_0x30541b,_0x2c82f5=this[_0x4c631f(0xda)](_0x5681c3,_0x4c631f(0x167),!0x0,_0xe71a2b);this[_0x4c631f(0x10a)](_0x2c82f5,this[_0x4c631f(0x15c)]),this[_0x4c631f(0xeb)][_0x4c631f(0x11b)]();}[_0x30541b(0x157)](_0x50308c){const _0x5a6140=_0x30541b;this[_0x5a6140(0x13f)](_0x50308c,this[_0x5a6140(0x15c)]),this[_0x5a6140(0x13f)](_0x50308c,this[_0x5a6140(0xeb)][_0x5a6140(0x118)]),this[_0x5a6140(0xeb)][_0x5a6140(0x11b)]();}[_0x30541b(0x139)](_0x5cb0fa,_0x561947){const _0x1669cc=_0x30541b;let _0x274348=this[_0x1669cc(0x15c)][_0x1669cc(0x101)](_0x10022c=>_0x10022c['id']===_0x5cb0fa);_0x274348||(_0x274348=this[_0x1669cc(0xeb)][_0x1669cc(0x118)][_0x1669cc(0x101)](_0x499fdd=>_0x499fdd['id']===_0x5cb0fa)),_0x274348&&(_0x274348[_0x1669cc(0x15b)]=_0x561947);}[_0x30541b(0x111)](_0x41a3b2){const _0x1afec4=_0x30541b;this[_0x1afec4(0xfe)][_0x1afec4(0xf9)]();for(const _0x4ef3a1 of _0x41a3b2){const _0x257c4c=this[_0x1afec4(0xda)](_0x4ef3a1,_0x1afec4(0x14b),!0x1,!0x1);this[_0x1afec4(0x10a)](_0x257c4c,this[_0x1afec4(0xfe)]);}}[_0x30541b(0x115)](){const _0x179d1d=_0x30541b;this[_0x179d1d(0x15c)][_0x179d1d(0xf9)](),this[_0x179d1d(0xeb)][_0x179d1d(0xf9)]();}[_0x30541b(0x142)](){const _0x163aa1=_0x30541b;this[_0x163aa1(0xfe)][_0x163aa1(0xf9)]();}[_0x30541b(0x14a)](_0x19fcb6,_0x4945fb,_0x3b4764){const _0x1cbff7=_0x30541b;this[_0x1cbff7(0xf5)][_0x1cbff7(0x14a)](_0x19fcb6,_0x4945fb,_0x3b4764);}[_0x30541b(0xf1)](){const _0x2861b4=_0x30541b;this[_0x2861b4(0x156)](!0x1);}[_0x30541b(0xe7)](){const _0xecbbc5=_0x30541b;this[_0xecbbc5(0x156)](!0x0);}[_0x30541b(0x166)](){const _0x231933=_0x30541b;this[_0x231933(0x122)][_0x231933(0x113)](),this[_0x231933(0xe6)][_0x231933(0x162)]=!0x1,this[_0x231933(0x128)]&&this[_0x231933(0x128)][_0x231933(0xf9)]();}[_0x30541b(0x10b)](){const _0x22a86c=_0x30541b;this[_0x22a86c(0x122)][_0x22a86c(0x158)](),this[_0x22a86c(0xe6)][_0x22a86c(0x162)]=!0x0;}[_0x30541b(0x109)]({source:_0x38ba00,withBackButton:_0xf56932}){const _0x309eb3=_0x30541b;this[_0x309eb3(0xf5)][_0x309eb3(0x102)]({'source':_0x38ba00,'withBackButton':_0xf56932}),this[_0x309eb3(0xe6)][_0x309eb3(0x162)]=!0x0;}[_0x30541b(0xf6)](_0x255e4d,_0x35bc05,_0x1d6603,_0x52bd43){const _0x3c7fcf=_0x30541b;this[_0x3c7fcf(0xf5)][_0x3c7fcf(0xf6)](_0x255e4d,_0x1d6603,_0x52bd43);}[_0x30541b(0xd8)](_0xfa035a){const _0x4a9d7d=_0x30541b;this[_0x4a9d7d(0xf5)][_0x4a9d7d(0xd8)](_0xfa035a),this[_0x4a9d7d(0xe6)][_0x4a9d7d(0x162)]=!0x1;}[_0x30541b(0x13b)](_0xc068b1){const _0x722fc0=_0x30541b;this[_0x722fc0(0x140)](this[_0x722fc0(0x10d)],this[_0x722fc0(0xe2)],_0xc068b1),this[_0x722fc0(0x11c)](_0xc068b1);}[_0x30541b(0x11c)](_0x32ae09){const _0x4c4f0f=_0x30541b,_0x447920=!_0x32ae09[_0x4c4f0f(0x169)][_0x4c4f0f(0x165)]&&_0x32ae09[_0x4c4f0f(0x169)][_0x4c4f0f(0x127)],_0xc847a=_0x32ae09[_0x4c4f0f(0x10f)][_0x4c4f0f(0x127)],_0x198141=_0x32ae09[_0x4c4f0f(0x13c)][_0x4c4f0f(0x127)],_0x578a4f=_0x32ae09[_0x4c4f0f(0xf0)][_0x4c4f0f(0x12b)]>0x0,_0x5455ee=_0x32ae09[_0x4c4f0f(0xf4)]&&_0x32ae09[_0x4c4f0f(0xf4)][_0x4c4f0f(0x12b)]>0x0;this[_0x4c4f0f(0xe6)][_0x4c4f0f(0x108)]=_0x447920||_0xc847a||_0x198141||_0x578a4f||_0x5455ee;}[_0x30541b(0x13d)](){const _0x58b683=_0x30541b;this[_0x58b683(0xd7)]({'tag':_0x58b683(0xec),'attributes':{'class':[Uo,_0x58b683(0x138)]},'children':[{'tag':_0x58b683(0xec),'attributes':{'class':Lo},'children':this[_0x58b683(0x15c)]}]});}[_0x30541b(0xf7)](){const _0x3607de=_0x30541b;this[_0x3607de(0xe6)]['on'](_0x3607de(0xe8),()=>{const _0x69dc30=_0x3607de;this[_0x69dc30(0x143)]();});}[_0x30541b(0x110)](_0x2ead3e){const _0x322aed=_0x30541b,_0x5090e5=new _0x4c7741(_0x2ead3e);return _0x5090e5[_0x322aed(0x10c)]({'label':_0x9ffd38(_0x2ead3e,_0x322aed(0x147)),'class':Xo+'\x20'+Mo,'icon':_0x5642b9,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x5090e5;}[_0x30541b(0x155)](_0x549456){const _0x2291b1=_0x30541b;return this[_0x2291b1(0x154)](_0x549456,No);}[_0x30541b(0x131)](_0x58ff59){const _0xe7209f=_0x30541b,_0x1858d8=this[_0xe7209f(0x154)](_0x58ff59,Ho);return this[_0xe7209f(0x117)](_0x1858d8,_0x58ff59),_0x1858d8;}[_0x30541b(0xfb)](_0xc2533a,_0x13d730){const _0x31cc32=_0x30541b,_0x1c1f18={'searchInputVisibleFrom':_0x13d730[_0x31cc32(0x16b)],'onBackToContext':()=>{const _0x3f908f=_0x31cc32;this[_0x3f908f(0xe7)](),this[_0x3f908f(0x10d)][_0x3f908f(0x134)]({'target':this[_0x3f908f(0xe6)][_0x3f908f(0x14d)],'limiter':this[_0x3f908f(0xe9)](),'positions':zo});},'onResourceSelected':(_0x4877aa,_0x24b759)=>{const _0x25462a=_0x31cc32;this[_0x25462a(0x152)](_0x25462a(0xdf),{'source':_0x4877aa,'resource':_0x24b759});},'onLoadSourceResources':_0x2fd3cf=>{const _0x173e6d=_0x31cc32;this[_0x173e6d(0x152)](_0x173e6d(0x160),_0x2fd3cf);},'onBalloonClosed':()=>{const _0x373261=_0x31cc32;this[_0x373261(0xe6)][_0x373261(0x162)]=!0x1;},'getLimiterElement':()=>this[_0x31cc32(0xe9)](),'getTargetElement':()=>this[_0x31cc32(0xe6)][_0x31cc32(0x14d)]};return new _0x5a2bb1(_0xc2533a,_0x13d730[_0x31cc32(0xff)],_0x1c1f18);}[_0x30541b(0xe9)](){const _0x48affb=_0x30541b;return this[_0x48affb(0x14d)]?.[_0x48affb(0x146)]('.'+qo)||document[_0x48affb(0x137)];}[_0x30541b(0x154)](_0x4379ea,_0x4258bb){const _0x2d0623=_0x30541b,_0x537adf=new _0xf9fa58(_0x4379ea);return _0x537adf[_0x2d0623(0x136)]({'attributes':{'class':_0x4258bb}}),this[_0x2d0623(0xff)][_0x2d0623(0x11d)](_0x537adf),_0x537adf;}[_0x30541b(0x140)](_0x2d254d,_0x43a646,_0x5e1246){const _0x1f71cf=_0x30541b;if(_0x2d254d[_0x1f71cf(0x121)][_0x1f71cf(0xf9)](),!_0x5e1246[_0x1f71cf(0x169)][_0x1f71cf(0x165)]&&_0x5e1246[_0x1f71cf(0x169)][_0x1f71cf(0x127)]){const _0x21ccab=this[_0x1f71cf(0x135)](_0x43a646,{'label':_0x9ffd38(_0x43a646,_0x1f71cf(0x14e)),'icon':_0x280b25});_0x21ccab['on'](_0x1f71cf(0xe8),()=>{const _0x5cd097=_0x1f71cf;this[_0x5cd097(0x152)](_0x5cd097(0x163)),this[_0x5cd097(0xf1)]();}),_0x2d254d[_0x1f71cf(0x121)][_0x1f71cf(0x11d)](_0x21ccab);}if(_0x5e1246[_0x1f71cf(0x10f)][_0x1f71cf(0x127)]){const _0xb16495=this[_0x1f71cf(0x135)](_0x43a646,{'label':_0x9ffd38(_0x43a646,_0x1f71cf(0xfc)),'icon':_0x3520ae});_0xb16495['on'](_0x1f71cf(0xe8),()=>{const _0x1dc30d=_0x1f71cf;this[_0x1dc30d(0xf1)](),this[_0x1dc30d(0x10b)](),this[_0x1dc30d(0x122)][_0x1dc30d(0x134)]({'target':this[_0x1dc30d(0xe6)][_0x1dc30d(0x14d)],'limiter':this[_0x1dc30d(0xe9)](),'positions':zo}),this[_0x1dc30d(0x128)][_0x1dc30d(0xdd)]();}),_0x2d254d[_0x1f71cf(0x121)][_0x1f71cf(0x11d)](_0xb16495);}if(_0x5e1246[_0x1f71cf(0x13c)][_0x1f71cf(0x127)]){const _0x552d54=new _0x116ed9(_0x43a646);_0x552d54[_0x1f71cf(0x10c)]({'label':_0x9ffd38(_0x43a646,_0x1f71cf(0x161)),'icon':_0x5df7bd,'withText':!0x0,'tooltip':!0x0,'class':jo,'allowMultipleFiles':!0x0}),_0x552d54['on'](_0x1f71cf(0xe8),()=>{const _0x14c381=_0x1f71cf;this[_0x14c381(0xf1)]();}),_0x552d54['on'](_0x1f71cf(0x14f),(_0x1aacdd,_0x59527f)=>{const _0x4239a7=_0x1f71cf;this[_0x4239a7(0x152)](_0x4239a7(0x106),_0x59527f);}),_0x552d54[_0x1f71cf(0x168)]=!0x0,_0x2d254d[_0x1f71cf(0x121)][_0x1f71cf(0x11d)](_0x552d54);}for(const _0x4369d5 of _0x5e1246[_0x1f71cf(0xf0)]){const _0x28b36c=this[_0x1f71cf(0x135)](_0x43a646,{'label':_0x4369d5[_0x1f71cf(0xef)],'icon':_0x4369d5[_0x1f71cf(0xe4)]||_0x2fa54e,'type':_0x1f71cf(0x107)});_0x2d254d[_0x1f71cf(0x121)][_0x1f71cf(0x11d)](_0x28b36c),_0x28b36c['on'](_0x1f71cf(0xe8),()=>{const _0x49797b=_0x1f71cf;this[_0x49797b(0xf1)](),this[_0x49797b(0x109)]({'source':_0x4369d5,'withBackButton':!this[_0x49797b(0x125)]});});}for(const _0x220f64 of _0x5e1246[_0x1f71cf(0xf4)]||[]){const _0x299d0c=this[_0x1f71cf(0x135)](_0x43a646,{'label':_0x220f64[_0x1f71cf(0xef)],'icon':_0x220f64[_0x1f71cf(0xe4)]||_0x2fa54e,'type':_0x1f71cf(0xf3)});_0x2d254d[_0x1f71cf(0x121)][_0x1f71cf(0x11d)](_0x299d0c),_0x299d0c['on'](_0x1f71cf(0xe8),()=>{const _0x45825b=_0x1f71cf;this[_0x45825b(0xf1)](),this[_0x45825b(0x152)](_0x45825b(0x15a),_0x220f64);});}this[_0x1f71cf(0x125)]=0x1===_0x2d254d[_0x1f71cf(0x121)][_0x1f71cf(0x12b)],this[_0x1f71cf(0x128)][_0x1f71cf(0x141)]=!this[_0x1f71cf(0x125)];}[_0x30541b(0x117)](_0x2f737f,_0x4e5400){const _0x44cbd2=_0x30541b;this[_0x44cbd2(0x128)]=new _0x2f60a3(_0x4e5400),this[_0x44cbd2(0x128)]['on'](_0x44cbd2(0x120),(_0x546c72,_0x5d8c53)=>{const _0x222e46=_0x44cbd2;this[_0x222e46(0x10e)](_0x5d8c53);}),this[_0x44cbd2(0x128)]['on'](_0x44cbd2(0xed),()=>{const _0x4ee7fc=_0x44cbd2;this[_0x4ee7fc(0x166)](),this[_0x4ee7fc(0x125)]||(this[_0x4ee7fc(0xe7)](),this[_0x4ee7fc(0x10d)][_0x4ee7fc(0x134)]({'target':this[_0x4ee7fc(0xe6)][_0x4ee7fc(0x14d)],'limiter':this[_0x4ee7fc(0xe9)](),'positions':zo}));}),this[_0x44cbd2(0x128)]['on'](_0x44cbd2(0xf2),()=>{const _0x297e1f=_0x44cbd2;this[_0x297e1f(0x122)][_0x297e1f(0x103)]&&this[_0x297e1f(0x122)][_0x297e1f(0x134)]({'target':this[_0x297e1f(0xe6)][_0x297e1f(0x14d)],'limiter':this[_0x297e1f(0xe9)](),'positions':zo});}),_0x2f737f[_0x44cbd2(0x121)][_0x44cbd2(0x11d)](this[_0x44cbd2(0x128)]);}[_0x30541b(0x135)](_0x1da230,_0x2daaef){const _0x60ad05=_0x30541b,_0x145466=_0x60ad05(0x107)===_0x2daaef[_0x60ad05(0x16c)]?new SourcesBalloonButtonView(_0x1da230):new _0x4c7741(_0x1da230);return _0x145466[_0x60ad05(0x10c)]({'label':_0x2daaef[_0x60ad05(0xef)],'icon':_0x2daaef[_0x60ad05(0xe4)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':jo}),_0x145466;}[_0x30541b(0x105)](){const _0xde0c52=_0x30541b;this[_0xde0c52(0x132)](),this[_0xde0c52(0xde)]();}[_0x30541b(0xde)](){const _0x31632a=_0x30541b;_0xd2f7b7({'emitter':this[_0x31632a(0x122)],'contextElements':[this[_0x31632a(0x122)][_0x31632a(0x14d)]],'callback':()=>{const _0x275fc5=_0x31632a;this[_0x275fc5(0x166)]();},'activator':()=>this[_0x31632a(0x122)][_0x31632a(0x103)]});}[_0x30541b(0x156)](_0x5683e9){const _0x474997=_0x30541b,_0x57e043=this[_0x474997(0x15e)];_0x57e043[_0x474997(0x126)][_0x474997(0x162)]=_0x5683e9,_0x5683e9?_0x57e043[_0x474997(0x16e)][_0x474997(0x158)]():_0x57e043[_0x474997(0x16e)][_0x474997(0x113)]();}[_0x30541b(0x132)](){const _0x4d7c06=_0x30541b,{balloonView:_0x2a7060,buttonView:_0x46acc6,hideMethod:_0x39a7a7}=this[_0x4d7c06(0x15e)];_0xd2f7b7({'emitter':_0x2a7060,'contextElements':[_0x2a7060[_0x4d7c06(0x14d)],_0x46acc6[_0x4d7c06(0x14d)]],'callback':()=>{_0x39a7a7();},'activator':()=>_0x46acc6[_0x4d7c06(0x162)]&&!this[_0x4d7c06(0x122)][_0x4d7c06(0x103)]&&!this[_0x4d7c06(0xf5)][_0x4d7c06(0x145)]()});}[_0x30541b(0xda)](_0x30ff73,_0x2226e5,_0x13c6c2=!0x1,_0x8bdb15=!0x1){const _0x53d6d5=_0x30541b,_0x4753ff=_0x53d6d5(0x14b)===_0x2226e5||!0x0===_0x30ff73[_0x53d6d5(0x100)],_0x2ecf0c=new _0x5cf874(this[_0x53d6d5(0xe2)],_0x30ff73,_0x4753ff,_0x13c6c2,_0x8bdb15);return _0x4753ff||_0x2ecf0c['on'](_0x53d6d5(0x130),()=>{const _0x531be4=_0x53d6d5;this[_0x531be4(0x152)](_0x531be4(0x157),_0x2ecf0c['id']);}),_0x2ecf0c;}[_0x30541b(0x10a)](_0x1ee5b1,_0x8ede10){const _0x380c4b=_0x30541b;_0x8ede10[_0x380c4b(0x11d)](_0x1ee5b1,0x0);}[_0x30541b(0x13f)](_0x3e98fa,_0x8622e4){const _0x24e754=_0x30541b,_0x2bcce5=_0x8622e4[_0x24e754(0x101)](_0x390bc4=>_0x390bc4['id']===_0x3e98fa);_0x2bcce5&&_0x8622e4[_0x24e754(0xfa)](_0x2bcce5);}[_0x30541b(0x143)](){const _0x2cfd5e=_0x30541b;this[_0x2cfd5e(0xe6)][_0x2cfd5e(0x162)]?this[_0x2cfd5e(0xf1)]():(this[_0x2cfd5e(0xe7)](),this[_0x2cfd5e(0x10d)][_0x2cfd5e(0x134)]({'target':this[_0x2cfd5e(0xe6)][_0x2cfd5e(0x14d)],'limiter':this[_0x2cfd5e(0xe9)](),'positions':zo}),this[_0x2cfd5e(0x125)]&&this[_0x2cfd5e(0x10d)][_0x2cfd5e(0x121)][_0x2cfd5e(0x15f)](0x0)?.[_0x2cfd5e(0x152)](_0x2cfd5e(0xe8)));}[_0x30541b(0x10e)](_0x279732){const _0x3e943d=_0x30541b;this[_0x3e943d(0x128)][_0x3e943d(0xf9)](),this[_0x3e943d(0x166)](),this[_0x3e943d(0x152)](_0x3e943d(0x116),_0x279732);}}function _0x19af(){const _0xb9392c=['197603WExuoW','pin','_createBalloonButton','extendTemplate','body','ck-reset_all-excluded','setContextItemLoading','__arrow','setAddContextOptions','files','_setupTemplate','addContextItem','_removeContextFromCollection','_setBalloonPanelContent','withBackButton','clearConversationContextItems','_handleAddContextButtonClick','ck-ai-chat-context-controls__balloon-button-source','isAnyResourceBalloonVisible','closest','AI_CHAT_CONTEXT_ADD_CONTEXT','southArrowNorthEast','children','updateResourceState','conversation','menuitem','element','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','done','_createArrowView','2932236ieEMHP','fire','6gPFZHk','_createBaseBalloonPanel','_createAddContextBalloonPanelView','_toggleAddContextBalloon','removeContextItem','show','6380KcxYmu','executeCustomItemCallback','isLoading','_currentContextsChips','ck-ai-chat-controls_context_show-more-button','_addContextBalloonConfig','get','loadSourceResources','AI_CHAT_CONTEXT_FILE_LABEL','isOn','addDocumentToContext','ck-ai-chat-context-controls__add-context-button','isHidden','hideUrlBalloonPanel','current','tooltip','document','render','searchInputVisibleFrom','type','ck-ai-chat-context-controls__add-context-balloon-panel','balloonView','setTemplate','closeSourceResourceBalloon','ck-ai-chat-context-controls__url-balloon-panel','_createContextButton','30670xssMDS','ck-ai-chat-context-controls__show-more-balloon-panel','focus','_setupUrlBalloonClickOutsideHandler','addResourceToContext','ck-ai-chat-context-controls__pending-contexts','ck-ai-chat-context-chips-wrapper-balloon','locale','46356LhkHDB','icon','2059830NuVEHr','addContextButtonView','showAddContextBalloonPanel','execute','_getLimiterElement','2402032ytQzyB','_overflowManager','div','cancel','ck-ai-chat-controls-button','label','sources','hideAddContextBalloonPanel','refreshBalloon','customItem','customItems','_resourcesBalloonView','populateSourceResourceBalloon','_bindEventHandlers','defaultPositions','clear','remove','_createResourcesBalloonView','AI_CHAT_CONTEXT_URL_LABEL','ck-ai-chat-context-controls','_conversationContextsChips','bodyCollection','isReadOnly','find','showSourceResourcesBalloon','isVisible','ck-ai-chat','_setupAllBalloonClickOutsideHandlers','addFileToContext','source','isEnabled','_showSourceResourcesBalloon','_addContextToCollection','showUrlBalloonPanel','set','_addContextBalloonPanelView','_handleUrlSubmit','urls','_createAddContextButtonView','setConversationContext','3JMwoas','hide','northArrowSouth','clearCurrentContextItems','addUrlToContext','_addUrlContent','overflowChips','southArrowNorth','509896NMVnhP','reorganizeChips','_setAddContextButtonEnabled','add','5wHiGKz','createCollection','submitUrl','content','_urlBalloonPanelView','ck-ai-chat-context-controls__balloon-button','arrowView','_hasExactlyOneSource','buttonView','enabled','_urlInputView','northArrowSouthEast','bind','length','setContainerElement','destroy','southArrowNorthWest','northArrowSouthWest','removeContextItemChip','_createUrlBalloonPanelView','_setupAddContextBalloonClickOutsideHandler'];_0x19af=function(){return _0xb9392c;};return _0x19af();}export class SourcesBalloonButtonView extends _0x4c7741{[_0x30541b(0x124)];constructor(_0x334377){const _0x4c7607=_0x30541b;super(_0x334377),this[_0x4c7607(0x10c)]({'withText':!0x0,'role':_0x4c7607(0x14c)}),this[_0x4c7607(0x124)]=this[_0x4c7607(0x150)](),this[_0x4c7607(0x136)]({'attributes':{'class':[Fo]}});}[_0x30541b(0x16a)](){const _0x54ed89=_0x30541b;super[_0x54ed89(0x16a)](),this[_0x54ed89(0x149)][_0x54ed89(0x11d)](this[_0x54ed89(0x124)]);}[_0x30541b(0x150)](){const _0x3374bf=_0x30541b,_0x2abf68=new _0x4847c5();return _0x2abf68[_0x3374bf(0x121)]=_0x2bf361,_0x2abf68[_0x3374bf(0x136)]({'attributes':{'class':Fo+_0x3374bf(0x13a)}}),_0x2abf68;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x128099=_0x4fd2;(function(_0x3b6784,_0x922045){const _0xc0743=_0x4fd2,_0x46475d=_0x3b6784();while(!![]){try{const _0x733cb=parseInt(_0xc0743(0x209))/0x1+parseInt(_0xc0743(0x202))/0x2*(parseInt(_0xc0743(0x203))/0x3)+-parseInt(_0xc0743(0x1f3))/0x4*(parseInt(_0xc0743(0x208))/0x5)+parseInt(_0xc0743(0x1ee))/0x6+-parseInt(_0xc0743(0x1ed))/0x7+parseInt(_0xc0743(0x206))/0x8+parseInt(_0xc0743(0x1f4))/0x9*(-parseInt(_0xc0743(0x1fc))/0xa);if(_0x733cb===_0x922045)break;else _0x46475d['push'](_0x46475d['shift']());}catch(_0x49032d){_0x46475d['push'](_0x46475d['shift']());}}}(_0x44d0,0x61936));import{ButtonView as _0x1a37b2,View as _0x402d89}from'ckeditor5/src/ui.js';import{IconStop as _0x1860cc}from'ckeditor5/src/icons.js';function _0x4fd2(_0x437622,_0x11bc34){const _0x44d067=_0x44d0();return _0x4fd2=function(_0x4fd286,_0x23da3c){_0x4fd286=_0x4fd286-0x1ed;let _0x2bb8f5=_0x44d067[_0x4fd286];return _0x2bb8f5;},_0x4fd2(_0x437622,_0x11bc34);}import{getTranslation as _0x5abac7}from'../../../aicore/utils/common-translations.js';function _0x44d0(){const _0x549e5a=['36BKUtYh','set','_createLoaderView','fire','setTemplate','execute','ck-ai-chat-controls-loader-icon-dot','AI_CHAT_IS_WRITING','4814790bSLUBp','locale','ck-ai-chat-controls-loader-wrapper','ck-reset_all','abortPromptStream','_createCancelButtonView','1368704bqRVVp','3EgrVmY','AI_CHAT_STOP_GENERATING','div','5070376PGxouj','ck-ai-chat-controls-loader-icon','5xtNeXN','624598GWkfIp','1517054IUtvzc','3809052ksdBOm','_loaderView','ck-ai-chat-controls-loader','_cancelButtonView','ck-ai-button-secondary\x20ck-ai-button-stop-generating','141124esPXcP'];_0x44d0=function(){return _0x549e5a;};return _0x44d0();}export class AIChatControlsLoaderView extends _0x402d89{[_0x128099(0x1f1)];[_0x128099(0x1ef)];constructor(_0x10253d){const _0x37c153=_0x128099;super(_0x10253d),this[_0x37c153(0x1f1)]=this[_0x37c153(0x201)](),this[_0x37c153(0x1ef)]=this[_0x37c153(0x1f6)](),this[_0x37c153(0x1f8)]({'tag':_0x37c153(0x205),'attributes':{'class':['ck',_0x37c153(0x1fe),_0x37c153(0x1ff)]},'children':[this[_0x37c153(0x1ef)],this[_0x37c153(0x1f1)]]});}[_0x128099(0x201)](){const _0x5e04cf=_0x128099,_0x36d930=new _0x1a37b2(this[_0x5e04cf(0x1fd)]);return _0x36d930[_0x5e04cf(0x1f5)]({'label':_0x5abac7(this[_0x5e04cf(0x1fd)],_0x5e04cf(0x204)),'withText':!0x0,'class':_0x5e04cf(0x1f2),'icon':_0x1860cc}),_0x36d930['on'](_0x5e04cf(0x1f9),()=>{const _0x57f964=_0x5e04cf;this[_0x57f964(0x1f7)](_0x57f964(0x200));}),_0x36d930;}[_0x128099(0x1f6)](){const _0x437234=_0x128099,_0x2d739e=new _0x402d89(this[_0x437234(0x1fd)]);return _0x2d739e[_0x437234(0x1f8)]({'tag':_0x437234(0x205),'attributes':{'class':[_0x437234(0x1f0)]},'children':[{'tag':_0x437234(0x205),'attributes':{'class':[_0x437234(0x207)]},'children':[{'tag':_0x437234(0x205),'attributes':{'class':[_0x437234(0x1fa)]}},{'tag':_0x437234(0x205),'attributes':{'class':[_0x437234(0x1fa)]}},{'tag':_0x437234(0x205),'attributes':{'class':[_0x437234(0x1fa)]}}]},{'text':_0x5abac7(this[_0x437234(0x1fd)],_0x437234(0x1fb))}]}),_0x2d739e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5470f1=_0x2191;(function(_0x178b61,_0x5c60e4){const _0x246b0a=_0x2191,_0x1c6ac3=_0x178b61();while(!![]){try{const _0xde4b=-parseInt(_0x246b0a(0xdb))/0x1+-parseInt(_0x246b0a(0xd3))/0x2+parseInt(_0x246b0a(0xc2))/0x3+-parseInt(_0x246b0a(0xf5))/0x4+parseInt(_0x246b0a(0x102))/0x5+-parseInt(_0x246b0a(0xd9))/0x6+parseInt(_0x246b0a(0x101))/0x7*(parseInt(_0x246b0a(0xd4))/0x8);if(_0xde4b===_0x5c60e4)break;else _0x1c6ac3['push'](_0x1c6ac3['shift']());}catch(_0x12a385){_0x1c6ac3['push'](_0x1c6ac3['shift']());}}}(_0x2bff,0x6651c));import{Collection as _0x40b21b}from'ckeditor5/src/utils.js';import{IconAI as _0x27a826,IconBulb as _0x2aff40,IconWeb as _0x1eff67}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x3b4f17,ButtonLabelView as _0xb3ab28,ButtonView as _0x101216,createDropdown as _0x3fbc8c,IconView as _0x192eb7,UIModel as _0x658508,View as _0xa5e00}from'ckeditor5/src/ui.js';import{getTranslation as _0x566889}from'../../../aicore/utils/common-translations.js';const Ko=_0x5470f1(0xdd),Xo=_0x5470f1(0xf6),Qo=_0x5470f1(0xff),Zo=_0x5470f1(0xf4),tl=_0x5470f1(0xf2),el=_0x5470f1(0xdc),il=_0x5470f1(0xcb),sl=_0x5470f1(0xc3),ol='n';function _0x2191(_0x3dbf2e,_0x345b0b){const _0x2bff74=_0x2bff();return _0x2191=function(_0x219116,_0xea77ce){_0x219116=_0x219116-0xab;let _0x4233b2=_0x2bff74[_0x219116];return _0x4233b2;},_0x2191(_0x3dbf2e,_0x345b0b);}export class AIChatPromptCapabilitiesView extends _0xa5e00{[_0x5470f1(0xca)];[_0x5470f1(0xbd)];[_0x5470f1(0xd2)];[_0x5470f1(0xe5)];[_0x5470f1(0xb0)];[_0x5470f1(0xce)];constructor(_0x4256fa){const _0x46e6c7=_0x5470f1;super(_0x4256fa),this[_0x46e6c7(0xfc)](_0x46e6c7(0xd1),!0x1),this[_0x46e6c7(0xfc)](_0x46e6c7(0xfd),!0x1),this[_0x46e6c7(0xfc)](_0x46e6c7(0xe8),_0x46e6c7(0xd0)),this[_0x46e6c7(0xfc)](_0x46e6c7(0xeb),!0x0),this[_0x46e6c7(0xfc)](_0x46e6c7(0xfa),null),this[_0x46e6c7(0xfc)](_0x46e6c7(0xef),null),this[_0x46e6c7(0xe5)]=this[_0x46e6c7(0xe1)](),this[_0x46e6c7(0xce)]=this[_0x46e6c7(0xe2)](),this[_0x46e6c7(0xca)]=this[_0x46e6c7(0xbe)](),this[_0x46e6c7(0xbd)]=this[_0x46e6c7(0xb6)](),this[_0x46e6c7(0xd2)]=this[_0x46e6c7(0xe6)](),this[_0x46e6c7(0xe5)][_0x46e6c7(0xc4)][_0x46e6c7(0xcf)](_0x46e6c7(0xc9))['to'](this,_0x46e6c7(0xe8),_0xd69e8c=>_0x46e6c7(0xd0)===_0xd69e8c),this[_0x46e6c7(0xe5)][_0x46e6c7(0xc4)][_0x46e6c7(0xcf)](_0x46e6c7(0xac))['to'](this,_0x46e6c7(0xeb),_0x4e3a1f=>_0x4e3a1f?this[_0x46e6c7(0xe5)][_0x46e6c7(0xc4)][_0x46e6c7(0x109)]:_0x566889(this[_0x46e6c7(0xad)],_0x46e6c7(0xbf))),this[_0x46e6c7(0xe5)][_0x46e6c7(0xcf)](_0x46e6c7(0xe7))['to'](this,_0x46e6c7(0xeb),_0x9880f5=>_0x9880f5),this[_0x46e6c7(0xca)][_0x46e6c7(0xcf)](_0x46e6c7(0xb2))['to'](this,_0x46e6c7(0xd1),_0x33d11d=>_0x33d11d),this[_0x46e6c7(0xca)][_0x46e6c7(0xcf)](_0x46e6c7(0xac))['to'](this,_0x46e6c7(0xd1),_0x25c420=>_0x566889(this[_0x46e6c7(0xad)],_0x25c420?_0x46e6c7(0xbb):_0x46e6c7(0xf8))),this[_0x46e6c7(0xbd)][_0x46e6c7(0xcf)](_0x46e6c7(0xb2))['to'](this,_0x46e6c7(0xfd),_0x23a097=>_0x23a097),this[_0x46e6c7(0xbd)][_0x46e6c7(0xcf)](_0x46e6c7(0xac))['to'](this,_0x46e6c7(0xfd),_0x27207e=>_0x566889(this[_0x46e6c7(0xad)],_0x27207e?_0x46e6c7(0xc5):_0x46e6c7(0x106))),this[_0x46e6c7(0x108)]({'tag':_0x46e6c7(0xab),'attributes':{'class':[Ko]},'children':[this[_0x46e6c7(0xe5)],this[_0x46e6c7(0xce)],this[_0x46e6c7(0xca)],this[_0x46e6c7(0xbd)],this[_0x46e6c7(0xd2)]]}),this[_0x46e6c7(0xb0)]=new _0x40b21b(),_0x3b4f17(this[_0x46e6c7(0xe5)],this[_0x46e6c7(0xb0)]);}[_0x5470f1(0x103)](_0xd74fe2,_0x2468ac){const _0x10c1e9=_0x5470f1;if(_0x2468ac)this[_0x10c1e9(0xfc)](_0x10c1e9(0xe8),_0x10c1e9(0xaf));else{const _0x56038a=0x1===_0xd74fe2[_0x10c1e9(0xc8)];this[_0x10c1e9(0xfc)](_0x10c1e9(0xe8),_0x56038a?_0x10c1e9(0xda):_0x10c1e9(0xd0));}if(this[_0x10c1e9(0xb0)][_0x10c1e9(0xbc)](),_0xd74fe2?.[_0x10c1e9(0xc8)])for(const _0x3bafa2 of _0xd74fe2){const _0x9e575a=new _0x658508({'label':_0x3bafa2[_0x10c1e9(0xda)],'withText':!0x0,'role':_0x10c1e9(0xf3),'id':_0x3bafa2['id'],'model':_0x3bafa2});_0x9e575a[_0x10c1e9(0xcf)](_0x10c1e9(0xb2))['to'](this,_0x10c1e9(0xfa),_0x2632b9=>_0x2632b9===_0x3bafa2['id']),this[_0x10c1e9(0xb0)][_0x10c1e9(0xf9)]({'type':_0x10c1e9(0xb7),'model':_0x9e575a,'labelView':new ko(this[_0x10c1e9(0xad)],_0x3bafa2)});}}[_0x5470f1(0xf7)](_0x5a5d17){const _0x2b495e=_0x5470f1;this[_0x2b495e(0xfc)](_0x2b495e(0xd1),_0x5a5d17);}[_0x5470f1(0xed)](_0xa3c79a){const _0x5387cb=_0x5470f1;this[_0x5387cb(0xfc)](_0x5387cb(0xfd),_0xa3c79a);}[_0x5470f1(0xfb)](_0x59ac3d){const _0x3af313=_0x5470f1;if(!_0x59ac3d)return;this[_0x3af313(0xfa)]=_0x59ac3d['id'],this[_0x3af313(0xef)]=_0x59ac3d[_0x3af313(0xda)]||_0x59ac3d['id'],this[_0x3af313(0xe5)][_0x3af313(0xc4)][_0x3af313(0xfc)](_0x3af313(0x109),_0x59ac3d[_0x3af313(0xda)]),this[_0x3af313(0xe5)][_0x3af313(0xc4)][_0x3af313(0xfc)](_0x3af313(0xac),_0x59ac3d[_0x3af313(0xda)]);const _0x15f65f=_0x59ac3d[_0x3af313(0xfe)][_0x3af313(0xea)]?.[_0x3af313(0xd6)]??!0x1;this[_0x3af313(0xfc)](_0x3af313(0xd1),!0x1),this[_0x3af313(0xca)][_0x3af313(0xfc)](_0x3af313(0xb2),!0x1),this[_0x3af313(0xca)][_0x3af313(0xfc)](_0x3af313(0xe7),_0x15f65f),this[_0x3af313(0xca)][_0x3af313(0xfc)](_0x3af313(0xc9),_0x15f65f);const _0x302846=_0x59ac3d[_0x3af313(0xfe)][_0x3af313(0xb5)]?.[_0x3af313(0xd6)]??!0x1;this[_0x3af313(0xfc)](_0x3af313(0xfd),!0x1),this[_0x3af313(0xbd)][_0x3af313(0xfc)](_0x3af313(0xb2),!0x1),this[_0x3af313(0xbd)][_0x3af313(0xfc)](_0x3af313(0xe7),_0x302846),this[_0x3af313(0xbd)][_0x3af313(0xfc)](_0x3af313(0xc9),_0x302846);}[_0x5470f1(0xc7)](){const _0xff143a=_0x5470f1;this[_0xff143a(0xfc)](_0xff143a(0xeb),!0x0);}[_0x5470f1(0xc6)](_0x1f7a3f){const _0x58d98f=_0x5470f1;this[_0x58d98f(0xfc)](_0x58d98f(0xeb),!0x1),_0x1f7a3f&&this[_0x58d98f(0xfc)](_0x58d98f(0xe8),_0x58d98f(0xaf));}[_0x5470f1(0xbe)](){const _0x178244=_0x5470f1,_0x5234e1=new _0x101216();return _0x5234e1[_0x178244(0xfc)]({'label':_0x566889(this[_0x178244(0xad)],_0x178244(0xee)),'icon':_0x1eff67,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x5234e1['on'](_0x178244(0x104),()=>{const _0x5e00db=_0x178244;this[_0x5e00db(0x105)](_0x5e00db(0xb3));}),_0x5234e1;}[_0x5470f1(0xb6)](){const _0x36638d=_0x5470f1,_0x17fc18=new _0x101216();return _0x17fc18[_0x36638d(0xfc)]({'label':_0x566889(this[_0x36638d(0xad)],_0x36638d(0xe4)),'icon':_0x2aff40,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x17fc18['on'](_0x36638d(0x104),()=>{const _0x56f7d9=_0x36638d;this[_0x56f7d9(0x105)](_0x56f7d9(0xcd));}),_0x17fc18;}[_0x5470f1(0xe6)](){const _0x5a5519=_0x5470f1,_0x39c40e=new _0x101216();return _0x39c40e[_0x5a5519(0xfc)]({'label':_0x566889(this[_0x5a5519(0xad)],_0x5a5519(0xde)),'icon':_0x27a826,'withText':!0x0,'class':Xo,'isToggleable':!0x0,'tooltip':_0x566889(this[_0x5a5519(0xad)],_0x5a5519(0xde)),'tooltipPosition':ol}),_0x39c40e[_0x5a5519(0xb8)]({'attributes':{'class':[Qo]}}),_0x39c40e['on'](_0x5a5519(0x104),()=>{const _0x37d5ad=_0x5a5519;console[_0x37d5ad(0xb4)](_0x37d5ad(0xba)),alert(_0x37d5ad(0xba));}),_0x39c40e;}[_0x5470f1(0xe1)](){const _0x26bb8d=_0x5470f1,_0x3570ad=_0x3fbc8c(this[_0x26bb8d(0xad)]);return _0x3570ad[_0x26bb8d(0xfc)]({'panelPosition':'ne','class':[tl]}),_0x3570ad[_0x26bb8d(0xc4)][_0x26bb8d(0xfc)]({'label':_0x566889(this[_0x26bb8d(0xad)],_0x26bb8d(0xd7)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':ol,'class':Zo}),this[_0x26bb8d(0xae)](_0x3570ad,_0x26bb8d(0x104),_0x211ccb=>{const _0x4cf78b=_0x26bb8d;this[_0x4cf78b(0x105)](_0x4cf78b(0xf1),_0x211ccb[_0x4cf78b(0xec)][_0x4cf78b(0xcc)]);}),_0x3570ad;}[_0x5470f1(0xe2)](){const _0x3fec29=_0x5470f1,_0x24f290=new _o(this[_0x3fec29(0xad)]);return _0x24f290[_0x3fec29(0xcf)](_0x3fec29(0xdf))['to'](this,_0x3fec29(0xef),_0x24775d=>_0x24775d??''),_0x24f290[_0x3fec29(0xcf)](_0x3fec29(0xc9))['to'](this,_0x3fec29(0xe8),_0x12a02c=>_0x3fec29(0xda)===_0x12a02c),_0x24f290;}}class ko extends _0xb3ab28{constructor(_0x4b79cb,_0x844469){const _0x1fb361=_0x5470f1;super();const _0x6bf051=this[_0x1fb361(0xb1)],_0xba2e61=this[_0x1fb361(0xe3)]();this[_0x1fb361(0x108)]({'tag':_0x1fb361(0xab),'attributes':{'class':['ck',_0x1fb361(0xc0)],'style':_0x6bf051['to'](_0x1fb361(0xd5)),'id':_0x6bf051['to']('id')},'children':[{'tag':_0x1fb361(0xab),'attributes':{'class':[el]},'children':[{'text':_0x6bf051['to'](_0x1fb361(0xdf))}]},{'tag':_0x1fb361(0xab),'attributes':{'class':[il]},'children':[{'tag':_0x1fb361(0x100),'children':[{'text':_0x844469[_0x1fb361(0xe0)]}]}]},{'tag':_0x1fb361(0xab),'attributes':{'class':[sl]},'children':_0xba2e61}]}),_0xba2e61[_0x1fb361(0xf0)](this[_0x1fb361(0xb9)](_0x4b79cb,_0x1eff67,_0x1fb361(0xee),_0x844469[_0x1fb361(0xfe)][_0x1fb361(0xea)]?.[_0x1fb361(0xd6)]??!0x1)),_0xba2e61[_0x1fb361(0xf0)](this[_0x1fb361(0xb9)](_0x4b79cb,_0x2aff40,_0x1fb361(0xe4),_0x844469[_0x1fb361(0xfe)][_0x1fb361(0xb5)]?.[_0x1fb361(0xd6)]??!0x1));}[_0x5470f1(0xb9)](_0x4c0fba,_0x7e85b5,_0xcc1e6d,_0x2057de){const _0x57f9ad=_0x5470f1,_0x121cb7=new _0x192eb7();_0x121cb7[_0x57f9ad(0x10a)]=_0x7e85b5;const _0x49cec8=new _0xa5e00(_0x4c0fba);_0x49cec8[_0x57f9ad(0x108)]({'tag':_0x57f9ad(0x100),'children':[{'text':_0x566889(_0x4c0fba,_0xcc1e6d)+':\x20'}]});const _0x2d4253=new _0xa5e00(_0x4c0fba);return _0x2d4253[_0x57f9ad(0x108)]({'tag':_0x57f9ad(0x100),'children':[{'text':_0x566889(_0x4c0fba,_0x2057de?_0x57f9ad(0xd8):_0x57f9ad(0xc1))}]}),[_0x121cb7,_0x49cec8,_0x2d4253];}}class _o extends _0xa5e00{constructor(_0x292b98){const _0x4b3765=_0x5470f1;super(_0x292b98),this[_0x4b3765(0xfc)](_0x4b3765(0xdf),void 0x0),this[_0x4b3765(0xfc)](_0x4b3765(0xc9),!0x0);const _0x322d6d=this[_0x4b3765(0xb1)];this[_0x4b3765(0x108)]({'tag':_0x4b3765(0x100),'attributes':{'class':['ck',_0x4b3765(0x107),_0x322d6d['if'](_0x4b3765(0xc9),_0x4b3765(0xe9),_0x15590d=>!_0x15590d)]},'children':[{'text':_0x322d6d['to'](_0x4b3765(0xdf))}]});}}function _0x2bff(){const _0x2e1703=['ck-ai-chat-controls-button','setWebSearch','AI_CHAT_ENABLE_WEB_SEARCH','add','activeModelId','setModel','set','reasoningActive','capabilities','ck-ai-chat-controls-button--commands','span','1395688JnSNKu','3985280FxNywo','setModelList','execute','fire','AI_CHAT_ENABLE_REASONING','ck-ai-chat-controls__model-name','setTemplate','label','content','div','tooltip','locale','listenTo','hidden','_modelSelectionDropdownItems','bindTemplate','isOn','toggleWebSearch','log','reasoning','_createReasoningButton','button','extendTemplate','_getCapabilityParts','Commands\x20are\x20not\x20implemented\x20yet.','AI_CHAT_DISABLE_WEB_SEARCH','clear','_reasoningButton','_createWebSearchButton','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','ck-button__label','AI_CHAT_CAPABILITIES_NO','685365tfBtWk','ck-ai-chat-controls__model-selection__item-capabilities','buttonView','AI_CHAT_DISABLE_REASONING','disableModelSelector','enableModelSelector','length','isVisible','_webSearchButton','ck-ai-chat-controls__model-selection__item-description','model','toggleReasoning','_modelNameView','bind','selector','webSearchActive','_commandsButton','183262kgTsVf','8aFjvvC','style','enabled','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','AI_CHAT_CAPABILITIES_YES','426444aHvfpi','name','444265Pqowii','ck-ai-chat-controls__model-selection__item-name','ck-ai-chat__prompt-capabilities','AI_CHAT_COMMANDS','text','description','_createModelSelectionDropdown','_createModelNameView','createCollection','AI_CHAT_REASONING','_modelSelectionDropdown','_createCommandsButton','isEnabled','modelDisplayMode','ck-hidden','webSearch','modelSelectorEnabled','source','setReasoning','AI_CHAT_SEARCH_WEB','activeModelName','addMany','selectModel','ck-ai-chat-controls__model-selection','menuitemradio','ck-ai-button-tertiary','795300RjUsdl'];_0x2bff=function(){return _0x2e1703;};return _0x2bff();}
|
|
23
|
+
const _0x217d88=_0x23b8;(function(_0x415a5d,_0x2a29b1){const _0x27101c=_0x23b8,_0xab948=_0x415a5d();while(!![]){try{const _0xae57c4=-parseInt(_0x27101c(0x106))/0x1*(-parseInt(_0x27101c(0x15e))/0x2)+parseInt(_0x27101c(0x15c))/0x3+-parseInt(_0x27101c(0x14f))/0x4*(-parseInt(_0x27101c(0x111))/0x5)+-parseInt(_0x27101c(0x15f))/0x6+-parseInt(_0x27101c(0x153))/0x7+-parseInt(_0x27101c(0x11c))/0x8+-parseInt(_0x27101c(0x128))/0x9*(parseInt(_0x27101c(0x157))/0xa);if(_0xae57c4===_0x2a29b1)break;else _0xab948['push'](_0xab948['shift']());}catch(_0x19b513){_0xab948['push'](_0xab948['shift']());}}}(_0x2084,0xe8d63));import{Collection as _0x14a2f2}from'ckeditor5/src/utils.js';import{IconAI as _0x583dc6,IconBulb as _0x43c4c5,IconWeb as _0xfcef9}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x243f26,ButtonLabelView as _0x3293c8,ButtonView as _0x27bfc6,createDropdown as _0x4d9fd0,IconView as _0x5d0298,UIModel as _0x4f4391,View as _0x483ce1}from'ckeditor5/src/ui.js';import{getTranslation as _0x3a5052}from'../../../aicore/utils/common-translations.js';function _0x23b8(_0x199f9f,_0x52541){const _0x20845a=_0x2084();return _0x23b8=function(_0x23b8f1,_0x120d57){_0x23b8f1=_0x23b8f1-0xfe;let _0x4ffdde=_0x20845a[_0x23b8f1];return _0x4ffdde;},_0x23b8(_0x199f9f,_0x52541);}function _0x2084(){const _0x235183=['AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','add','ck-ai-chat-controls__model-selection__item-capabilities','_modelNameView','_createWebSearchButton','ck-ai-chat__prompt-capabilities','button','ck-ai-chat-controls__model-selection__item-name','bind','clear','141415avitGm','_modelSelectionDropdownItems','span','setReasoning','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','AI_CHAT_ENABLE_REASONING','createCollection','enabled','isOn','div','listenTo','718288LYxsxq','AI_CHAT_DISABLE_REASONING','description','content','toggleReasoning','activeModelName','setTemplate','ck-ai-chat-controls__model-selection__item-description','ck-ai-chat-controls__model-name','set','_commandsButton','capabilities','1678257FtbbDa','fire','AI_CHAT_COMMANDS','_createModelSelectionDropdown','setWebSearch','_modelSelectionDropdown','locale','_createModelNameView','ck-ai-chat-controls__model-selection','hidden','webSearch','setModelList','model','isEnabled','enableModelSelector','addMany','style','log','Commands\x20are\x20not\x20implemented\x20yet.','AI_CHAT_CAPABILITIES_NO','ck-ai-chat-controls-button--commands','length','reasoning','isVisible','text','webSearchActive','_reasoningButton','label','ck-ai-chat-controls-button','_createReasoningButton','_getCapabilityParts','ck-ai-button-tertiary','menuitemradio','activeModelId','modelDisplayMode','name','setModel','_webSearchButton','execute','268EfmnNQ','modelSelectorEnabled','_createCommandsButton','ck-hidden','11427661qBEhAX','AI_CHAT_DISABLE_WEB_SEARCH','selectModel','AI_CHAT_SEARCH_WEB','10eTuwIn','toggleWebSearch','AI_CHAT_REASONING','selector','reasoningActive','3017277KjvCbX','tooltip','4moOMLg','6801390ywcHNd','extendTemplate','source','buttonView','AI_CHAT_CAPABILITIES_YES','AI_CHAT_ENABLE_WEB_SEARCH','disableModelSelector','ck-button__label','bindTemplate','547663ICdHGr'];_0x2084=function(){return _0x235183;};return _0x2084();}const Ko=_0x217d88(0x10c),Xo=_0x217d88(0x144),Qo=_0x217d88(0x13c),Zo=_0x217d88(0x147),tl=_0x217d88(0x130),el=_0x217d88(0x10e),il=_0x217d88(0x123),sl=_0x217d88(0x109),ol='n';export class AIChatPromptCapabilitiesView extends _0x483ce1{[_0x217d88(0x14d)];[_0x217d88(0x142)];[_0x217d88(0x126)];[_0x217d88(0x12d)];[_0x217d88(0x112)];[_0x217d88(0x10a)];constructor(_0x1697a8){const _0x5118d1=_0x217d88;super(_0x1697a8),this[_0x5118d1(0x125)](_0x5118d1(0x141),!0x1),this[_0x5118d1(0x125)](_0x5118d1(0x15b),!0x1),this[_0x5118d1(0x125)](_0x5118d1(0x14a),_0x5118d1(0x15a)),this[_0x5118d1(0x125)](_0x5118d1(0x150),!0x0),this[_0x5118d1(0x125)](_0x5118d1(0x149),null),this[_0x5118d1(0x125)](_0x5118d1(0x121),null),this[_0x5118d1(0x12d)]=this[_0x5118d1(0x12b)](),this[_0x5118d1(0x10a)]=this[_0x5118d1(0x12f)](),this[_0x5118d1(0x14d)]=this[_0x5118d1(0x10b)](),this[_0x5118d1(0x142)]=this[_0x5118d1(0x145)](),this[_0x5118d1(0x126)]=this[_0x5118d1(0x151)](),this[_0x5118d1(0x12d)][_0x5118d1(0x100)][_0x5118d1(0x10f)](_0x5118d1(0x13f))['to'](this,_0x5118d1(0x14a),_0x12dbcb=>_0x5118d1(0x15a)===_0x12dbcb),this[_0x5118d1(0x12d)][_0x5118d1(0x100)][_0x5118d1(0x10f)](_0x5118d1(0x15d))['to'](this,_0x5118d1(0x150),_0x51abb6=>_0x51abb6?this[_0x5118d1(0x12d)][_0x5118d1(0x100)][_0x5118d1(0x143)]:_0x3a5052(this[_0x5118d1(0x12e)],_0x5118d1(0x115))),this[_0x5118d1(0x12d)][_0x5118d1(0x10f)](_0x5118d1(0x135))['to'](this,_0x5118d1(0x150),_0x39ab92=>_0x39ab92),this[_0x5118d1(0x14d)][_0x5118d1(0x10f)](_0x5118d1(0x119))['to'](this,_0x5118d1(0x141),_0x4e2907=>_0x4e2907),this[_0x5118d1(0x14d)][_0x5118d1(0x10f)](_0x5118d1(0x15d))['to'](this,_0x5118d1(0x141),_0x1885a5=>_0x3a5052(this[_0x5118d1(0x12e)],_0x1885a5?_0x5118d1(0x154):_0x5118d1(0x102))),this[_0x5118d1(0x142)][_0x5118d1(0x10f)](_0x5118d1(0x119))['to'](this,_0x5118d1(0x15b),_0x577427=>_0x577427),this[_0x5118d1(0x142)][_0x5118d1(0x10f)](_0x5118d1(0x15d))['to'](this,_0x5118d1(0x15b),_0x544d3=>_0x3a5052(this[_0x5118d1(0x12e)],_0x544d3?_0x5118d1(0x11d):_0x5118d1(0x116))),this[_0x5118d1(0x122)]({'tag':_0x5118d1(0x11a),'attributes':{'class':[Ko]},'children':[this[_0x5118d1(0x12d)],this[_0x5118d1(0x10a)],this[_0x5118d1(0x14d)],this[_0x5118d1(0x142)],this[_0x5118d1(0x126)]]}),this[_0x5118d1(0x112)]=new _0x14a2f2(),_0x243f26(this[_0x5118d1(0x12d)],this[_0x5118d1(0x112)]);}[_0x217d88(0x133)](_0x3bc70a,_0x4e90c7){const _0x2202d1=_0x217d88;if(_0x4e90c7)this[_0x2202d1(0x125)](_0x2202d1(0x14a),_0x2202d1(0x131));else{const _0x3f48fa=0x1===_0x3bc70a[_0x2202d1(0x13d)];this[_0x2202d1(0x125)](_0x2202d1(0x14a),_0x3f48fa?_0x2202d1(0x14b):_0x2202d1(0x15a));}if(this[_0x2202d1(0x112)][_0x2202d1(0x110)](),_0x3bc70a?.[_0x2202d1(0x13d)])for(const _0x4e3073 of _0x3bc70a){const _0x3aa9ac=new _0x4f4391({'label':_0x4e3073[_0x2202d1(0x14b)],'withText':!0x0,'role':_0x2202d1(0x148),'id':_0x4e3073['id'],'model':_0x4e3073});_0x3aa9ac[_0x2202d1(0x10f)](_0x2202d1(0x119))['to'](this,_0x2202d1(0x149),_0x4603df=>_0x4603df===_0x4e3073['id']),this[_0x2202d1(0x112)][_0x2202d1(0x108)]({'type':_0x2202d1(0x10d),'model':_0x3aa9ac,'labelView':new ko(this[_0x2202d1(0x12e)],_0x4e3073)});}}[_0x217d88(0x12c)](_0x12b375){const _0x25e5c8=_0x217d88;this[_0x25e5c8(0x125)](_0x25e5c8(0x141),_0x12b375);}[_0x217d88(0x114)](_0x3ec31a){const _0x7810ed=_0x217d88;this[_0x7810ed(0x125)](_0x7810ed(0x15b),_0x3ec31a);}[_0x217d88(0x14c)](_0x4e7eea){const _0x52c739=_0x217d88;if(!_0x4e7eea)return;this[_0x52c739(0x149)]=_0x4e7eea['id'],this[_0x52c739(0x121)]=_0x4e7eea[_0x52c739(0x14b)]||_0x4e7eea['id'],this[_0x52c739(0x12d)][_0x52c739(0x100)][_0x52c739(0x125)](_0x52c739(0x143),_0x4e7eea[_0x52c739(0x14b)]),this[_0x52c739(0x12d)][_0x52c739(0x100)][_0x52c739(0x125)](_0x52c739(0x15d),_0x4e7eea[_0x52c739(0x14b)]);const _0x291bf8=_0x4e7eea[_0x52c739(0x127)][_0x52c739(0x132)]?.[_0x52c739(0x118)]??!0x1;this[_0x52c739(0x125)](_0x52c739(0x141),!0x1),this[_0x52c739(0x14d)][_0x52c739(0x125)](_0x52c739(0x119),!0x1),this[_0x52c739(0x14d)][_0x52c739(0x125)](_0x52c739(0x135),_0x291bf8),this[_0x52c739(0x14d)][_0x52c739(0x125)](_0x52c739(0x13f),_0x291bf8);const _0x5a3b90=_0x4e7eea[_0x52c739(0x127)][_0x52c739(0x13e)]?.[_0x52c739(0x118)]??!0x1;this[_0x52c739(0x125)](_0x52c739(0x15b),!0x1),this[_0x52c739(0x142)][_0x52c739(0x125)](_0x52c739(0x119),!0x1),this[_0x52c739(0x142)][_0x52c739(0x125)](_0x52c739(0x135),_0x5a3b90),this[_0x52c739(0x142)][_0x52c739(0x125)](_0x52c739(0x13f),_0x5a3b90);}[_0x217d88(0x136)](){const _0x430a4c=_0x217d88;this[_0x430a4c(0x125)](_0x430a4c(0x150),!0x0);}[_0x217d88(0x103)](_0x395a1e){const _0x201d6e=_0x217d88;this[_0x201d6e(0x125)](_0x201d6e(0x150),!0x1),_0x395a1e&&this[_0x201d6e(0x125)](_0x201d6e(0x14a),_0x201d6e(0x131));}[_0x217d88(0x10b)](){const _0x2fe11=_0x217d88,_0x341e26=new _0x27bfc6();return _0x341e26[_0x2fe11(0x125)]({'label':_0x3a5052(this[_0x2fe11(0x12e)],_0x2fe11(0x156)),'icon':_0xfcef9,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x341e26['on'](_0x2fe11(0x14e),()=>{const _0x185d3c=_0x2fe11;this[_0x185d3c(0x129)](_0x185d3c(0x158));}),_0x341e26;}[_0x217d88(0x145)](){const _0x102738=_0x217d88,_0x4e57ab=new _0x27bfc6();return _0x4e57ab[_0x102738(0x125)]({'label':_0x3a5052(this[_0x102738(0x12e)],_0x102738(0x159)),'icon':_0x43c4c5,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x4e57ab['on'](_0x102738(0x14e),()=>{const _0x221b56=_0x102738;this[_0x221b56(0x129)](_0x221b56(0x120));}),_0x4e57ab;}[_0x217d88(0x151)](){const _0x24b7b6=_0x217d88,_0xc6f75e=new _0x27bfc6();return _0xc6f75e[_0x24b7b6(0x125)]({'label':_0x3a5052(this[_0x24b7b6(0x12e)],_0x24b7b6(0x12a)),'icon':_0x583dc6,'withText':!0x0,'class':Xo,'isToggleable':!0x0,'tooltip':_0x3a5052(this[_0x24b7b6(0x12e)],_0x24b7b6(0x12a)),'tooltipPosition':ol}),_0xc6f75e[_0x24b7b6(0xfe)]({'attributes':{'class':[Qo]}}),_0xc6f75e['on'](_0x24b7b6(0x14e),()=>{const _0x588af0=_0x24b7b6;console[_0x588af0(0x139)](_0x588af0(0x13a)),alert(_0x588af0(0x13a));}),_0xc6f75e;}[_0x217d88(0x12b)](){const _0x5a1d08=_0x217d88,_0x5a8790=_0x4d9fd0(this[_0x5a1d08(0x12e)]);return _0x5a8790[_0x5a1d08(0x125)]({'panelPosition':'ne','class':[tl]}),_0x5a8790[_0x5a1d08(0x100)][_0x5a1d08(0x125)]({'label':_0x3a5052(this[_0x5a1d08(0x12e)],_0x5a1d08(0x107)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':ol,'class':Zo}),this[_0x5a1d08(0x11b)](_0x5a8790,_0x5a1d08(0x14e),_0x1a2c5a=>{const _0x53e5df=_0x5a1d08;this[_0x53e5df(0x129)](_0x53e5df(0x155),_0x1a2c5a[_0x53e5df(0xff)][_0x53e5df(0x134)]);}),_0x5a8790;}[_0x217d88(0x12f)](){const _0x4cffde=_0x217d88,_0x4c8736=new _o(this[_0x4cffde(0x12e)]);return _0x4c8736[_0x4cffde(0x10f)](_0x4cffde(0x140))['to'](this,_0x4cffde(0x121),_0x4c17e2=>_0x4c17e2??''),_0x4c8736[_0x4cffde(0x10f)](_0x4cffde(0x13f))['to'](this,_0x4cffde(0x14a),_0x3849e4=>_0x4cffde(0x14b)===_0x3849e4),_0x4c8736;}}class ko extends _0x3293c8{constructor(_0x2a444c,_0x55a9ce){const _0x1efb52=_0x217d88;super();const _0x4cd995=this[_0x1efb52(0x105)],_0x2baa21=this[_0x1efb52(0x117)]();this[_0x1efb52(0x122)]({'tag':_0x1efb52(0x11a),'attributes':{'class':['ck',_0x1efb52(0x104)],'style':_0x4cd995['to'](_0x1efb52(0x138)),'id':_0x4cd995['to']('id')},'children':[{'tag':_0x1efb52(0x11a),'attributes':{'class':[el]},'children':[{'text':_0x4cd995['to'](_0x1efb52(0x140))}]},{'tag':_0x1efb52(0x11a),'attributes':{'class':[il]},'children':[{'tag':_0x1efb52(0x113),'children':[{'text':_0x55a9ce[_0x1efb52(0x11e)]}]}]},{'tag':_0x1efb52(0x11a),'attributes':{'class':[sl]},'children':_0x2baa21}]}),_0x2baa21[_0x1efb52(0x137)](this[_0x1efb52(0x146)](_0x2a444c,_0xfcef9,_0x1efb52(0x156),_0x55a9ce[_0x1efb52(0x127)][_0x1efb52(0x132)]?.[_0x1efb52(0x118)]??!0x1)),_0x2baa21[_0x1efb52(0x137)](this[_0x1efb52(0x146)](_0x2a444c,_0x43c4c5,_0x1efb52(0x159),_0x55a9ce[_0x1efb52(0x127)][_0x1efb52(0x13e)]?.[_0x1efb52(0x118)]??!0x1));}[_0x217d88(0x146)](_0x7b6bfc,_0x186e35,_0x5ec8e6,_0xfb96ac){const _0x523e8c=_0x217d88,_0x27ea2b=new _0x5d0298();_0x27ea2b[_0x523e8c(0x11f)]=_0x186e35;const _0x253828=new _0x483ce1(_0x7b6bfc);_0x253828[_0x523e8c(0x122)]({'tag':_0x523e8c(0x113),'children':[{'text':_0x3a5052(_0x7b6bfc,_0x5ec8e6)+':\x20'}]});const _0x2fb182=new _0x483ce1(_0x7b6bfc);return _0x2fb182[_0x523e8c(0x122)]({'tag':_0x523e8c(0x113),'children':[{'text':_0x3a5052(_0x7b6bfc,_0xfb96ac?_0x523e8c(0x101):_0x523e8c(0x13b))}]}),[_0x27ea2b,_0x253828,_0x2fb182];}}class _o extends _0x483ce1{constructor(_0x445303){const _0x581e80=_0x217d88;super(_0x445303),this[_0x581e80(0x125)](_0x581e80(0x140),void 0x0),this[_0x581e80(0x125)](_0x581e80(0x13f),!0x0);const _0x9482b1=this[_0x581e80(0x105)];this[_0x581e80(0x122)]({'tag':_0x581e80(0x113),'attributes':{'class':['ck',_0x581e80(0x124),_0x9482b1['if'](_0x581e80(0x13f),_0x581e80(0x152),_0xa88867=>!_0xa88867)]},'children':[{'text':_0x9482b1['to'](_0x581e80(0x140))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2fe531=_0x1451;(function(_0x27f7b2,_0x3267a1){const _0x4a9b2f=_0x1451,_0x2871ca=_0x27f7b2();while(!![]){try{const _0x5d6f44=parseInt(_0x4a9b2f(0x14d))/0x1*(-parseInt(_0x4a9b2f(0x160))/0x2)+-parseInt(_0x4a9b2f(0x170))/0x3+parseInt(_0x4a9b2f(0x171))/0x4+parseInt(_0x4a9b2f(0x158))/0x5+-parseInt(_0x4a9b2f(0x15f))/0x6*(-parseInt(_0x4a9b2f(0x156))/0x7)+-parseInt(_0x4a9b2f(0x159))/0x8*(parseInt(_0x4a9b2f(0x14b))/0x9)+parseInt(_0x4a9b2f(0x14c))/0xa;if(_0x5d6f44===_0x3267a1)break;else _0x2871ca['push'](_0x2871ca['shift']());}catch(_0x4446b2){_0x2871ca['push'](_0x2871ca['shift']());}}}(_0x3757,0xcb1e8));import{IconSubmit as _0x5ee1af}from'ckeditor5/src/icons.js';import{ButtonView as _0x45bfd0,AutocompleteView as _0x5688d5,createLabeledTextarea as _0x1468ee}from'ckeditor5/src/ui.js';import{global as _0x1df315,isVisible as _0x100af6,Rect as _0x3b398c,ResizeObserver as _0x549b0e}from'ckeditor5/src/utils.js';import{getTranslation as _0x1b671f}from'../../../aicore/utils/common-translations.js';function _0x3757(){const _0x27eceb=['MIN_ROWS','uiLanguageDirection','errorText','_addContextButtonView','target','contains','placeholder','set','713741YNDnbB','focus','1519040LhHVuG','10679304DNSylf','remove','reset','sendUserMessage','ck-ai-chat__prompt-submit-button','ck-ai-chat__prompt-input','42jvEVni','304294dtqpfk','maxRows','fieldWrapperChildren','fire','MAX_ROWS','render','left','rtl','update','excludeScrollbarsAndBorders','width','queryView','isUploadInProgress','_queryViewResizeObserver','enter','window','3603576rzggSD','3092064XokOpZ','isEmpty','setIsUploadInProgress','_setUpAddContextButtonPositioning','ck-ai-chat__prompt-input_highlighted','right','calc(','add','submitButtonView','hasError','trim','element','style','destroy','classList','execute','extendTemplate','AI_CHAT_PROMPT_EMPTY_ERROR','keystrokes','value','isEnabled','AI_CHAT_LABEL_SUBMIT','requestAnimationFrame','bind','_createSubmitButton','minRows','setPlaceholderText','focusableChildren','submit','locale','px\x20-\x20var(--ck-spacing-tiny))','fieldView','9VtDXfA','24903980wiOKKk','6lSZZHz'];_0x3757=function(){return _0x27eceb;};return _0x3757();}import{AIChatPromptSuggestionsListView as _0x1c3ba7}from'./aichatpromptsuggestionslistview.js';function _0x1451(_0x482615,_0x4b4dcc){const _0x375763=_0x3757();return _0x1451=function(_0x14516f,_0x4bfc8d){_0x14516f=_0x14516f-0x13f;let _0x454aa1=_0x375763[_0x14516f];return _0x454aa1;},_0x1451(_0x482615,_0x4b4dcc);}import{escape as _0x4a47d9}from'es-toolkit/compat';const ah=_0x2fe531(0x175);export class AIChatPromptInputView extends _0x5688d5{[_0x2fe531(0x179)];static [_0x2fe531(0x14e)]=0x1;static [_0x2fe531(0x164)]=0xc;[_0x2fe531(0x151)];[_0x2fe531(0x16d)];constructor(_0x4166a4,_0x21ce1f){const _0x342e2c=_0x2fe531;super(_0x4166a4,{'queryView':{'label':'','creator':_0x1468ee,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x1c3ba7(_0x4166a4),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x342e2c(0x155)](_0x342e2c(0x172),!0x0),this[_0x342e2c(0x155)](_0x342e2c(0x16c),!0x1),this[_0x342e2c(0x151)]=_0x21ce1f,this[_0x342e2c(0x16d)]=null,this[_0x342e2c(0x16b)][_0x342e2c(0x14a)][_0x342e2c(0x144)]=AIChatPromptInputView[_0x342e2c(0x14e)],this[_0x342e2c(0x16b)][_0x342e2c(0x14a)][_0x342e2c(0x161)]=AIChatPromptInputView[_0x342e2c(0x164)],this[_0x342e2c(0x16b)][_0x342e2c(0x162)][_0x342e2c(0x178)](this[_0x342e2c(0x151)]),this[_0x342e2c(0x174)](),this[_0x342e2c(0x181)]({'attributes':{'class':['ck',_0x342e2c(0x15e)]}}),this[_0x342e2c(0x179)]=this[_0x342e2c(0x143)](),this[_0x342e2c(0x179)][_0x342e2c(0x142)](_0x342e2c(0x13f))['to'](this,_0x342e2c(0x172),this,_0x342e2c(0x16c),(_0x4ad8b5,_0x46581f)=>!_0x4ad8b5&&!_0x46581f),this[_0x342e2c(0x146)][_0x342e2c(0x178)](this[_0x342e2c(0x179)]);}[_0x2fe531(0x165)](){const _0x46abcc=_0x2fe531;super[_0x46abcc(0x165)](),this[_0x46abcc(0x16b)][_0x46abcc(0x162)][_0x46abcc(0x178)](this[_0x46abcc(0x179)]),this[_0x46abcc(0x183)][_0x46abcc(0x155)](_0x46abcc(0x16e),(_0x5e00aa,_0x243e0d)=>{const _0xb4b0f7=_0x46abcc;this[_0xb4b0f7(0x16c)]||this[_0xb4b0f7(0x172)]||_0x5e00aa[_0xb4b0f7(0x152)]==this[_0xb4b0f7(0x16b)][_0xb4b0f7(0x14a)][_0xb4b0f7(0x17c)]&&(this[_0xb4b0f7(0x147)](),_0x243e0d());}),this[_0x46abcc(0x16b)][_0x46abcc(0x14a)]['on'](_0x46abcc(0x168),()=>{const _0x26e1bc=_0x46abcc;this[_0x26e1bc(0x172)]=''===this[_0x26e1bc(0x16b)][_0x26e1bc(0x14a)][_0x26e1bc(0x17c)][_0x26e1bc(0x184)]?.[_0x26e1bc(0x17b)]();});}[_0x2fe531(0x17e)](){const _0x1e6e31=_0x2fe531;super[_0x1e6e31(0x17e)](),this[_0x1e6e31(0x16d)]&&this[_0x1e6e31(0x16d)][_0x1e6e31(0x17e)]();}[_0x2fe531(0x147)](){const _0x462198=_0x2fe531,_0x5c5caf=this[_0x462198(0x16b)][_0x462198(0x14a)][_0x462198(0x17c)][_0x462198(0x184)]?.[_0x462198(0x17b)]();if(!_0x5c5caf)return this[_0x462198(0x16b)][_0x462198(0x150)]=_0x1b671f(this[_0x462198(0x148)],_0x462198(0x182)),void(this[_0x462198(0x16b)][_0x462198(0x14a)][_0x462198(0x17a)]=!0x0);this[_0x462198(0x16b)][_0x462198(0x14a)][_0x462198(0x17a)]=!0x1;const _0x489833=_0x4a47d9(_0x5c5caf);this[_0x462198(0x163)](_0x462198(0x15c),_0x489833),this[_0x462198(0x16b)][_0x462198(0x14a)][_0x462198(0x15b)]();}[_0x2fe531(0x145)](_0x2b1c92){const _0x2b1697=_0x2fe531;this[_0x2b1697(0x16b)][_0x2b1697(0x14a)][_0x2b1697(0x155)](_0x2b1697(0x154),_0x2b1c92);}[_0x2fe531(0x157)](_0x3f143d=!0x1){const _0x289e08=_0x2fe531;super[_0x289e08(0x157)](),_0x3f143d&&(this[_0x289e08(0x17c)][_0x289e08(0x17f)][_0x289e08(0x153)](ah)||(this[_0x289e08(0x17c)][_0x289e08(0x17f)][_0x289e08(0x178)](ah),setTimeout(()=>{const _0x43ab1e=_0x289e08;this[_0x43ab1e(0x17c)][_0x43ab1e(0x17f)][_0x43ab1e(0x15a)](ah);},0x320)));}[_0x2fe531(0x143)](){const _0x5f0b0d=_0x2fe531,_0x29d6a2=new _0x45bfd0(this[_0x5f0b0d(0x148)]);return _0x29d6a2[_0x5f0b0d(0x155)]({'icon':_0x5ee1af,'label':_0x1b671f(this[_0x5f0b0d(0x148)],_0x5f0b0d(0x140)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x5f0b0d(0x15d),'isEnabled':!0x1}),_0x29d6a2['on'](_0x5f0b0d(0x180),()=>{const _0x4e0b26=_0x5f0b0d;this[_0x4e0b26(0x147)]();}),_0x29d6a2;}[_0x2fe531(0x173)](_0x40f1a7){const _0x39c30d=_0x2fe531;this[_0x39c30d(0x16c)]=_0x40f1a7;}[_0x2fe531(0x174)](){const _0x4ff8f3=_0x2fe531,_0x4d913c=this[_0x4ff8f3(0x148)],_0x33efd8=()=>{const _0x2c3ac0=_0x4ff8f3;_0x1df315[_0x2c3ac0(0x16f)][_0x2c3ac0(0x141)](()=>{const _0x420603=_0x2c3ac0;if(_0x100af6(this[_0x420603(0x17c)])){const _0x426acb=new _0x3b398c(this[_0x420603(0x16b)][_0x420603(0x14a)][_0x420603(0x17c)]),_0x4a8ba1=new _0x3b398c(this[_0x420603(0x151)][_0x420603(0x17c)]),_0x188848=_0x426acb[_0x420603(0x16a)],_0x397b3a=_0x420603(0x167)===_0x4d913c[_0x420603(0x14f)]?_0x420603(0x176):_0x420603(0x166);_0x426acb[_0x420603(0x169)]();const _0x1b123b=_0x188848-_0x426acb[_0x420603(0x16a)]+0x1;this[_0x420603(0x151)][_0x420603(0x17c)][_0x420603(0x17d)][_0x397b3a]=_0x420603(0x177)+(_0x188848-_0x4a8ba1[_0x420603(0x16a)]-_0x1b123b)+_0x420603(0x149);}});};this[_0x4ff8f3(0x16b)][_0x4ff8f3(0x14a)]['on'](_0x4ff8f3(0x168),_0x33efd8),this['on'](_0x4ff8f3(0x165),()=>{const _0x19337d=_0x4ff8f3;_0x33efd8(),this[_0x19337d(0x16d)]=new _0x549b0e(this[_0x19337d(0x16b)][_0x19337d(0x14a)][_0x19337d(0x17c)],()=>{_0x33efd8();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5211(){const _0x24f93d=['3514ugBUkR','1730556RbeiTA','11140yPpJZT','2800809INfqfU','780600pwZVVM','9790eSMrIO','6448hSPVBS','items','7220230zmtLKL','filter','31nIkqjs','588soyORt','length'];_0x5211=function(){return _0x24f93d;};return _0x5211();}function _0x3ad1(_0x3a7da5,_0x33cbc4){const _0x521126=_0x5211();return _0x3ad1=function(_0x3ad1f3,_0x633ac6){_0x3ad1f3=_0x3ad1f3-0xae;let _0x4d3c3b=_0x521126[_0x3ad1f3];return _0x4d3c3b;},_0x3ad1(_0x3a7da5,_0x33cbc4);}const _0xc3d582=_0x3ad1;(function(_0x454dbf,_0xab7c80){const _0x27b170=_0x3ad1,_0x213ffd=_0x454dbf();while(!![]){try{const _0x221560=-parseInt(_0x27b170(0xb1))/0x1*(parseInt(_0x27b170(0xb9))/0x2)+parseInt(_0x27b170(0xb8))/0x3+-parseInt(_0x27b170(0xb5))/0x4+-parseInt(_0x27b170(0xb6))/0x5*(parseInt(_0x27b170(0xb2))/0x6)+parseInt(_0x27b170(0xb4))/0x7*(parseInt(_0x27b170(0xba))/0x8)+-parseInt(_0x27b170(0xb7))/0x9+parseInt(_0x27b170(0xaf))/0xa;if(_0x221560===_0xab7c80)break;else _0x213ffd['push'](_0x213ffd['shift']());}catch(_0x18be12){_0x213ffd['push'](_0x213ffd['shift']());}}}(_0x5211,0x42a0a));import{ListView as _0x166b56}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x166b56{[_0xc3d582(0xb0)](){const _0x539a0f=_0xc3d582;let _0x5e8363=0x0;for(const _0x4e1f0f of this[_0x539a0f(0xae)])_0x5e8363+=_0x4e1f0f[_0x539a0f(0xae)][_0x539a0f(0xb3)];return{'resultsCount':_0x5e8363,'totalItemsCount':_0x5e8363};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x36a158=_0x73a6;function _0x73a6(_0x84af91,_0x1926a9){const _0x5885e3=_0x5885();return _0x73a6=function(_0x73a69b,_0x598d68){_0x73a69b=_0x73a69b-0xaf;let _0x4db8f3=_0x5885e3[_0x73a69b];return _0x4db8f3;},_0x73a6(_0x84af91,_0x1926a9);}(function(_0x12f818,_0x218de2){const _0x4a291c=_0x73a6,_0x45b842=_0x12f818();while(!![]){try{const _0x4bcbfb=-parseInt(_0x4a291c(0xb6))/0x1+-parseInt(_0x4a291c(0xc9))/0x2+-parseInt(_0x4a291c(0xc0))/0x3*(parseInt(_0x4a291c(0xc6))/0x4)+parseInt(_0x4a291c(0xc5))/0x5+-parseInt(_0x4a291c(0xcd))/0x6*(-parseInt(_0x4a291c(0xcb))/0x7)+parseInt(_0x4a291c(0xb4))/0x8+parseInt(_0x4a291c(0xb7))/0x9*(parseInt(_0x4a291c(0xb0))/0xa);if(_0x4bcbfb===_0x218de2)break;else _0x45b842['push'](_0x45b842['shift']());}catch(_0x17926f){_0x45b842['push'](_0x45b842['shift']());}}}(_0x5885,0x3801e));import{ListView as _0x2b24b8}from'ckeditor5/src/ui.js';function _0x5885(){const _0x2201c3=['trim','211112JCfqrg','extendTemplate','254189HvLeFD','1863bBCgQp','clear','updateResourceState','setResources','fire','resource','forEach','locale','execute','222HVTGhI','addResourceToContext','items','add','_source','1778120oKXvhA','11364miscSv','filter','test','458740FZIlgs','\x5c$&','584563wbARFc','highlightText','6AUzZbz','_handleResourceSelection','label','replace','22110ktZTjF','ck-ai-chat-resources__list','useDefaultFiltering'];_0x5885=function(){return _0x2201c3;};return _0x5885();}import{AIChatResourceListItemView as _0x1766a1}from'./aichatresourcelistitemview.js';const uc=_0x36a158(0xb1);export class AIChatContextResourcesListView extends _0x2b24b8{[_0x36a158(0xc4)];constructor(_0x41cd56,_0x698e45){const _0x150e8b=_0x36a158;super(_0x41cd56),this[_0x150e8b(0xc4)]=_0x698e45,this[_0x150e8b(0xb5)]({'attributes':{'class':[uc]}});}[_0x36a158(0xba)](_0x1b74cd,_0x4b6a9f){const _0x5cfec7=_0x36a158;this[_0x5cfec7(0xc2)][_0x5cfec7(0xb8)]();let _0x5bb702=_0x1b74cd;if(this[_0x5cfec7(0xc4)][_0x5cfec7(0xb2)]&&_0x4b6a9f&&''!==_0x4b6a9f[_0x5cfec7(0xb3)]()){const _0x55beef=new RegExp(_0x4b6a9f[_0x5cfec7(0xaf)](/[.*+?^${}()|[\]\\]/g,_0x5cfec7(0xca)),'gi');_0x5bb702=_0x1b74cd[_0x5cfec7(0xc7)](_0x1b7286=>_0x55beef[_0x5cfec7(0xc8)](_0x1b7286[_0x5cfec7(0xcf)]));}for(const _0x4d8594 of _0x5bb702){const _0x237128=new _0x1766a1(this[_0x5cfec7(0xbe)],_0x4d8594);_0x237128['on'](_0x5cfec7(0xbf),()=>{const _0x3fc62b=_0x5cfec7;this[_0x3fc62b(0xce)](this[_0x3fc62b(0xc4)],_0x4d8594);}),this[_0x5cfec7(0xc2)][_0x5cfec7(0xc3)](_0x237128);}this[_0x5cfec7(0xc4)][_0x5cfec7(0xb2)]&&this[_0x5cfec7(0xcc)](_0x4b6a9f);}[_0x36a158(0xcc)](_0x12c0b6){const _0x434961=_0x36a158;this[_0x434961(0xc4)][_0x434961(0xb2)]&&this[_0x434961(0xc2)][_0x434961(0xbd)](_0x11e990=>{const _0x5ee3bd=_0x434961;_0x11e990[_0x5ee3bd(0xcc)](_0x12c0b6);});}[_0x36a158(0xb9)](_0x253838,_0x3562cc){const _0xb8e0fd=_0x36a158;for(const _0x2e987e of this[_0xb8e0fd(0xc2)]){const _0xf92e45=_0x2e987e;_0xf92e45[_0xb8e0fd(0xbc)]['id']===_0x253838&&_0xf92e45[_0xb8e0fd(0xb9)](_0x3562cc);}}[_0x36a158(0xce)](_0x4f6a72,_0x253c8d){const _0x219447=_0x36a158;this[_0x219447(0xbb)](_0x219447(0xc1),{'source':_0x4f6a72,'resource':_0x253c8d});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4f00(){const _0x5d252c=['109841WXrIcd','bindTemplate','source','getQuery','_searchInputVisibleFrom','361732HMCWcU','highlightText','aiChatResources','length','render','locale','_createSearchView','_source','children','_skeletonLoader','527835CGEqUZ','1275690mInZoN','setResources','loadResources','delegate','ck-ai-chat-resources','11334bFOlyO','searchInputVisibleFrom','setTemplate','extendTemplate','isLoading','has','add','ck\x20ck-search','search','_searchSection','addResourceToContext','_createResourcesListView','updateResourceState','_resourcesListView','_latestLoadResourcesUid','2037kxvaML','_searchView','3767770sCRZjZ','274581MqnnrE','ck-hidden','_createSkeletonView','loadSourceResources','10rJstUm','div','112PVOZYn','_createSearchSection','set','fire','useDefaultFiltering'];_0x4f00=function(){return _0x5d252c;};return _0x4f00();}function _0x40de(_0x3826be,_0x4ab2f9){const _0x4f00b2=_0x4f00();return _0x40de=function(_0x40deac,_0x102c2a){_0x40deac=_0x40deac-0x65;let _0x2e82d6=_0x4f00b2[_0x40deac];return _0x2e82d6;},_0x40de(_0x3826be,_0x4ab2f9);}const _0x532644=_0x40de;(function(_0x18314b,_0x5cd1e4){const _0x54ccdf=_0x40de,_0x1dac97=_0x18314b();while(!![]){try{const _0x4bf385=parseInt(_0x54ccdf(0x86))/0x1*(parseInt(_0x54ccdf(0x7f))/0x2)+parseInt(_0x54ccdf(0x96))/0x3+-parseInt(_0x54ccdf(0x8b))/0x4+parseInt(_0x54ccdf(0x95))/0x5+-parseInt(_0x54ccdf(0x69))/0x6*(parseInt(_0x54ccdf(0x78))/0x7)+-parseInt(_0x54ccdf(0x81))/0x8*(parseInt(_0x54ccdf(0x7b))/0x9)+parseInt(_0x54ccdf(0x7a))/0xa;if(_0x4bf385===_0x5cd1e4)break;else _0x1dac97['push'](_0x1dac97['shift']());}catch(_0x24309f){_0x1dac97['push'](_0x1dac97['shift']());}}}(_0x4f00,0x5f191));import{View as _0x2e0742,ViewCollection as _0x484c2a}from'ckeditor5/src/ui.js';import{uid as _0x41d6bd}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x5de61c}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x33c3e2}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x4b2dc9,SKELETON_DEFINITIONS as _0x3c88a5}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x2e0742{[_0x532644(0x79)];[_0x532644(0x72)];[_0x532644(0x8a)];[_0x532644(0x76)];[_0x532644(0x94)];[_0x532644(0x92)];[_0x532644(0x93)];[_0x532644(0x77)]=null;constructor(_0x1b2589,_0xcee7d3){const _0x260776=_0x532644;super(_0x1b2589),this[_0x260776(0x92)]=_0xcee7d3[_0x260776(0x88)],this[_0x260776(0x8a)]=_0xcee7d3[_0x260776(0x6a)]??0x7,this[_0x260776(0x83)](_0x260776(0x6d),!0x0),this[_0x260776(0x79)]=this[_0x260776(0x91)](),this[_0x260776(0x72)]=this[_0x260776(0x82)](),this[_0x260776(0x76)]=this[_0x260776(0x74)](),this[_0x260776(0x94)]=this[_0x260776(0x7d)](),this[_0x260776(0x93)]=new _0x484c2a([this[_0x260776(0x94)],this[_0x260776(0x76)]]),this[_0x260776(0x6b)]({'tag':_0x260776(0x80),'attributes':{'class':_0x260776(0x68)},'children':this[_0x260776(0x93)]});}[_0x532644(0x91)](){const _0x22d5f1=_0x532644;return new _0x33c3e2(this[_0x22d5f1(0x90)]);}[_0x532644(0x82)](){const _0x339bca=_0x532644,_0x1e7b86=new _0x2e0742(this[_0x339bca(0x90)]);return _0x1e7b86[_0x339bca(0x6b)]({'tag':_0x339bca(0x80),'attributes':{'class':_0x339bca(0x70)},'children':[this[_0x339bca(0x79)]]}),this[_0x339bca(0x79)]['on'](_0x339bca(0x71),(_0x2d957a,_0x3d99f7)=>{const _0x426335=_0x339bca;this[_0x426335(0x66)](_0x3d99f7),this[_0x426335(0x92)][_0x426335(0x85)]&&this[_0x426335(0x76)][_0x426335(0x8c)](_0x3d99f7);}),_0x1e7b86;}[_0x532644(0x74)](){const _0xa58dab=_0x532644,_0x30cda7=new _0x5de61c(this[_0xa58dab(0x90)],this[_0xa58dab(0x92)]);return _0x30cda7[_0xa58dab(0x67)](_0xa58dab(0x73))['to'](this),_0x30cda7[_0xa58dab(0x6c)]({'attributes':{'class':this[_0xa58dab(0x87)]['if'](_0xa58dab(0x6d),_0xa58dab(0x7c))}}),_0x30cda7;}[_0x532644(0x7d)](){const _0x4ab96f=_0x532644,_0xd1a8f3=new _0x4b2dc9(this[_0x4ab96f(0x90)],_0x3c88a5[_0x4ab96f(0x8d)]);return _0xd1a8f3[_0x4ab96f(0x6c)]({'attributes':{'class':[this[_0x4ab96f(0x87)]['if'](_0x4ab96f(0x6d),_0x4ab96f(0x7c),_0x1acd82=>!_0x1acd82)]}}),_0xd1a8f3;}[_0x532644(0x8f)](){const _0x251d8b=_0x532644;super[_0x251d8b(0x8f)](),this[_0x251d8b(0x66)]('');}[_0x532644(0x66)](_0x26183e){const _0x365028=_0x532644,_0x4559cc=_0x41d6bd();this[_0x365028(0x77)]=_0x4559cc,this[_0x365028(0x84)](_0x365028(0x7e),{'sourceId':this[_0x365028(0x92)]['id'],'query':_0x26183e,'uid':_0x4559cc}),this[_0x365028(0x6d)]=!0x0;}[_0x532644(0x65)](_0x5eb237,_0x554eb0){const _0x169dec=_0x532644;if(_0x554eb0&&_0x554eb0!==this[_0x169dec(0x77)])return;const _0x43522d=this[_0x169dec(0x92)][_0x169dec(0x85)]?this[_0x169dec(0x79)][_0x169dec(0x89)]():'';this[_0x169dec(0x76)][_0x169dec(0x65)](_0x5eb237,_0x43522d),_0x5eb237[_0x169dec(0x8e)]>=this[_0x169dec(0x8a)]&&!this[_0x169dec(0x93)][_0x169dec(0x6e)](this[_0x169dec(0x72)])&&this[_0x169dec(0x93)][_0x169dec(0x6f)](this[_0x169dec(0x72)],0x0),requestAnimationFrame(()=>{const _0x2878c3=_0x169dec;this[_0x2878c3(0x6d)]=!0x1;});}[_0x532644(0x75)](_0x31c139,_0x4ed0a3){const _0x3189c8=_0x532644;this[_0x3189c8(0x76)][_0x3189c8(0x75)](_0x31c139,_0x4ed0a3);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x54497b=_0x4dab;(function(_0x1bf65b,_0x232eb5){const _0x3459f6=_0x4dab,_0x278ef3=_0x1bf65b();while(!![]){try{const _0x5ed6b8=-parseInt(_0x3459f6(0x1be))/0x1*(-parseInt(_0x3459f6(0x1d0))/0x2)+-parseInt(_0x3459f6(0x1dc))/0x3+parseInt(_0x3459f6(0x1de))/0x4+parseInt(_0x3459f6(0x1ce))/0x5+parseInt(_0x3459f6(0x1d6))/0x6*(-parseInt(_0x3459f6(0x1c3))/0x7)+parseInt(_0x3459f6(0x1d3))/0x8+-parseInt(_0x3459f6(0x1cc))/0x9;if(_0x5ed6b8===_0x232eb5)break;else _0x278ef3['push'](_0x278ef3['shift']());}catch(_0x4eaa0a){_0x278ef3['push'](_0x278ef3['shift']());}}}(_0x24f2,0x87bfe));import{HighlightedTextView as _0xf9cd12,IconView as _0x41149c,ListItemView as _0x3ba7e1}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x41d2db}from'es-toolkit/compat';function _0x4dab(_0x4be913,_0x4d6871){const _0x24f2d=_0x24f2();return _0x4dab=function(_0x4dab98,_0x2de3a0){_0x4dab98=_0x4dab98-0x1b6;let _0x2e0b49=_0x24f2d[_0x4dab98];return _0x2e0b49;},_0x4dab(_0x4be913,_0x4d6871);}function _0x24f2(){const _0x4c7010=['4689515dgLKWR','execute','2zGmnCJ','ck-hidden','type','8543456AVrCAZ','setTemplate','updateResourceState','30cNjwEd','trim','bindTemplate','label','render','set','1127391hjbMlZ','getResourceIcon','2365176nxiGGQ','resource','URL','ck-ai-chat-resources__item__icon','content','isInContext','_createTitleView','ck-ai-chat-resources__item--in-context','_titleView','extendTemplate','text','81574wKrgJG','_setupTemplate','DOCUMENT','div','isVisible','1135183KBJerN','TEXT','_iconView','_updateIcon','highlightText','ck-ai-chat-resources__item-title','FILE','_createIconView','ck-ai-chat-resources__item','8424279MqgTRX','span'];_0x24f2=function(){return _0x4c7010;};return _0x24f2();}import{AIContextItemType as _0x3a7816}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x155b6a,IconCheck as _0x283564,IconDocument as _0x38e62c,IconDocumentOutline as _0xd94c30,IconLink as _0x116df5}from'@ckeditor/ckeditor5-icons';const zr=_0x54497b(0x1cb),Jr=_0x54497b(0x1ba),Kr=_0x54497b(0x1c8),Mr=_0x54497b(0x1b6);export class AIChatResourceListItemView extends _0x3ba7e1{[_0x54497b(0x1df)];[_0x54497b(0x1bb)];[_0x54497b(0x1c5)];constructor(_0x2a0cc8,_0x531d25){const _0x41a966=_0x54497b;super(_0x2a0cc8),this[_0x41a966(0x1df)]=_0x531d25,this[_0x41a966(0x1db)](_0x41a966(0x1b8),!!_0x531d25[_0x41a966(0x1b8)]),this[_0x41a966(0x1bb)]=this[_0x41a966(0x1b9)](),this[_0x41a966(0x1c5)]=this[_0x41a966(0x1ca)](),this[_0x41a966(0x1bf)]();}[_0x54497b(0x1da)](){const _0x3cf2a8=_0x54497b;super[_0x3cf2a8(0x1da)]();}[_0x54497b(0x1dd)](_0x2168db){const _0x42a6ae=_0x54497b;if(_0x2168db[_0x42a6ae(0x1b8)])return _0x283564;switch(_0x2168db[_0x42a6ae(0x1d2)]){case _0x3a7816[_0x42a6ae(0x1c0)]:return _0x38e62c;case _0x3a7816[_0x42a6ae(0x1e0)]:return _0x116df5;case _0x3a7816[_0x42a6ae(0x1c9)]:case _0x3a7816[_0x42a6ae(0x1c4)]:return _0x155b6a;default:return _0xd94c30;}}[_0x54497b(0x1c7)](_0x11a2cd){const _0x27683a=_0x54497b;if(!_0x11a2cd||''===_0x11a2cd[_0x27683a(0x1d7)]())return void this[_0x27683a(0x1bb)][_0x27683a(0x1c7)](null);const _0x3a3088=new RegExp(_0x41d2db(_0x11a2cd),'gi');this[_0x27683a(0x1bb)][_0x27683a(0x1c7)](_0x3a3088);}[_0x54497b(0x1d5)](_0x6e623d){const _0x6c0acf=_0x54497b;this[_0x6c0acf(0x1df)][_0x6c0acf(0x1b8)]=_0x6e623d,this[_0x6c0acf(0x1b8)]=_0x6e623d,this[_0x6c0acf(0x1c6)]();}[_0x54497b(0x1b9)](){const _0x3f34be=_0x54497b,_0xc04087=new _0xf9cd12();return _0xc04087[_0x3f34be(0x1bd)]=this[_0x3f34be(0x1df)][_0x3f34be(0x1d9)],_0xc04087[_0x3f34be(0x1bc)]({'tag':_0x3f34be(0x1cd),'attributes':{'class':[Kr]}}),_0xc04087;}[_0x54497b(0x1ca)](){const _0x5dc407=_0x54497b,_0x1360de=new _0x41149c();return _0x1360de[_0x5dc407(0x1b7)]=this[_0x5dc407(0x1dd)](this[_0x5dc407(0x1df)]),_0x1360de;}[_0x54497b(0x1bf)](){const _0x4acc56=_0x54497b,_0x5ada63=this[_0x4acc56(0x1d8)];this[_0x4acc56(0x1d4)]({'tag':_0x4acc56(0x1c1),'attributes':{'class':[zr,_0x5ada63['if'](_0x4acc56(0x1c2),_0x4acc56(0x1d1),_0x559cd9=>!_0x559cd9),_0x5ada63['if'](_0x4acc56(0x1b8),Jr)]},'children':[{'tag':_0x4acc56(0x1c1),'attributes':{'class':[Mr]},'children':[this[_0x4acc56(0x1c5)]]},this[_0x4acc56(0x1bb)]],'on':{'click':_0x5ada63['to'](_0x4acc56(0x1cf))}});}[_0x54497b(0x1c6)](){const _0x1134c3=_0x54497b;this[_0x1134c3(0x1c5)][_0x1134c3(0x1b7)]=this[_0x1134c3(0x1dd)](this[_0x1134c3(0x1df)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a5f47=_0x5ddb;(function(_0x3bddbe,_0x2ba374){const _0x388095=_0x5ddb,_0x72ff8c=_0x3bddbe();while(!![]){try{const _0x58d4d8=-parseInt(_0x388095(0x1ed))/0x1+-parseInt(_0x388095(0x1c9))/0x2+-parseInt(_0x388095(0x1e8))/0x3+parseInt(_0x388095(0x1e0))/0x4+parseInt(_0x388095(0x1eb))/0x5+-parseInt(_0x388095(0x1e5))/0x6*(-parseInt(_0x388095(0x1cc))/0x7)+-parseInt(_0x388095(0x1d3))/0x8;if(_0x58d4d8===_0x2ba374)break;else _0x72ff8c['push'](_0x72ff8c['shift']());}catch(_0x2c1f2f){_0x72ff8c['push'](_0x72ff8c['shift']());}}}(_0x997c,0x36035));import{BalloonPanelView as _0x5df6de,ButtonView as _0x553596,clickOutsideHandler as _0x54c4b3,FormHeaderView as _0x4995c3}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x4e115b}from'@ckeditor/ckeditor5-icons';function _0x5ddb(_0x6ca707,_0x3062a6){const _0x997c90=_0x997c();return _0x5ddb=function(_0x5ddb5a,_0xb6d139){_0x5ddb5a=_0x5ddb5a-0x1c9;let _0x1c177c=_0x997c90[_0x5ddb5a];return _0x1c177c;},_0x5ddb(_0x6ca707,_0x3062a6);}import{getTranslation as _0x118a73}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x456ab5}from'./aichatcontextresourcesview.js';const Bc=_0x4a5f47(0x1dd),mc=_0x4a5f47(0x1e6),dc=_0x4a5f47(0x1e7);export class AIChatResourcesBalloonView{[_0x4a5f47(0x1fa)]=new Map();[_0x4a5f47(0x1dc)];[_0x4a5f47(0x1e3)];[_0x4a5f47(0x1fd)];constructor(_0x5ca6f8,_0xd0a72e,_0x393802){const _0xbc0974=_0x4a5f47;this[_0xbc0974(0x1e3)]=_0x5ca6f8,this[_0xbc0974(0x1dc)]=_0xd0a72e,this[_0xbc0974(0x1fd)]=_0x393802;}[_0x4a5f47(0x1d7)]({source:_0x441231,withBackButton:_0x458ffb}){const _0x1cdd8d=_0x4a5f47;let _0x25f647=this[_0x1cdd8d(0x1fa)][_0x1cdd8d(0x1ce)](_0x441231['id']);_0x25f647||(_0x25f647=this[_0x1cdd8d(0x1e4)](),this[_0x1cdd8d(0x1fa)][_0x1cdd8d(0x1d5)](_0x441231['id'],_0x25f647),this[_0x1cdd8d(0x1f8)](_0x25f647)),this[_0x1cdd8d(0x1f6)]({'balloonPanel':_0x25f647,'source':_0x441231,'withBackButton':_0x458ffb}),_0x25f647[_0x1cdd8d(0x1d4)]();const _0x315bbc=this[_0x1cdd8d(0x1fd)][_0x1cdd8d(0x1ff)]();_0x315bbc&&_0x25f647[_0x1cdd8d(0x1ee)]({'target':_0x315bbc,'limiter':this[_0x1cdd8d(0x1fd)][_0x1cdd8d(0x1fb)]()});}[_0x4a5f47(0x201)](_0x1bfe06,_0x131bf2,_0x7b7171){const _0x44bcee=_0x4a5f47,_0x321d2c=this[_0x44bcee(0x1fa)][_0x44bcee(0x1ce)](_0x1bfe06);if(!_0x321d2c)return;const _0x59bdb8=this[_0x44bcee(0x1ef)](_0x321d2c);_0x59bdb8&&(_0x59bdb8[_0x44bcee(0x1de)](_0x131bf2,_0x7b7171),_0x59bdb8[_0x44bcee(0x1d0)](_0x44bcee(0x1f7),()=>{const _0x2dcc3e=_0x44bcee;_0x321d2c[_0x2dcc3e(0x1ee)]({'target':this[_0x2dcc3e(0x1fd)][_0x2dcc3e(0x1ff)](),'limiter':this[_0x2dcc3e(0x1fd)][_0x2dcc3e(0x1fb)]()});}));}[_0x4a5f47(0x1cf)](_0xa3d5b9){const _0x2d801c=_0x4a5f47,_0x55937e=this[_0x2d801c(0x1fa)][_0x2d801c(0x1ce)](_0xa3d5b9);_0x55937e&&requestAnimationFrame(()=>{const _0x210a14=_0x2d801c;_0x55937e[_0x210a14(0x1fc)](),this[_0x210a14(0x1fa)][_0x210a14(0x1d6)](_0xa3d5b9),this[_0x210a14(0x1fd)][_0x210a14(0x1f0)]();});}[_0x4a5f47(0x1e2)](){const _0x468bb0=_0x4a5f47;for(const _0x4dfa69 of this[_0x468bb0(0x1fa)][_0x468bb0(0x1e9)]())if(_0x4dfa69[_0x468bb0(0x1f4)])return!0x0;return!0x1;}[_0x4a5f47(0x202)](_0x2afb52,_0x1952ab,_0x557450){const _0x1c441d=_0x4a5f47,_0x10abe7=this[_0x1c441d(0x1fa)][_0x1c441d(0x1ce)](_0x2afb52);if(!_0x10abe7||!_0x10abe7[_0x1c441d(0x1f4)])return;const _0x4bfae3=this[_0x1c441d(0x1fd)][_0x1c441d(0x1ff)]();if(!_0x4bfae3)return;_0x10abe7[_0x1c441d(0x1ee)]({'target':_0x4bfae3,'limiter':this[_0x1c441d(0x1fd)][_0x1c441d(0x1fb)]()});const _0x5b449f=this[_0x1c441d(0x1ef)](_0x10abe7);_0x5b449f&&_0x5b449f[_0x1c441d(0x202)](_0x1952ab,_0x557450);}[_0x4a5f47(0x1f2)](){const _0xbba2bb=_0x4a5f47;for(const _0x1c2a34 of this[_0xbba2bb(0x1fa)][_0xbba2bb(0x1e9)]())_0x1c2a34[_0xbba2bb(0x1f2)]();this[_0xbba2bb(0x1fa)][_0xbba2bb(0x1cd)]();}[_0x4a5f47(0x1e4)](){const _0x253524=_0x4a5f47,_0x242696=new _0x5df6de(this[_0x253524(0x1e3)]);return _0x242696[_0x253524(0x1f5)]({'attributes':{'class':Bc}}),this[_0x253524(0x1dc)][_0x253524(0x1db)](_0x242696),_0x242696;}[_0x4a5f47(0x1f6)]({balloonPanel:_0x4521be,source:_0x414428,withBackButton:_0x514808}){const _0x56d5ce=_0x4a5f47;_0x4521be[_0x56d5ce(0x1d9)][_0x56d5ce(0x1cd)]();const _0x5cb207=this[_0x56d5ce(0x1cb)]({'balloonPanel':_0x4521be,'source':_0x414428,'withBackButton':_0x514808});_0x4521be[_0x56d5ce(0x1d9)][_0x56d5ce(0x1db)](_0x5cb207);const _0x25c220=this[_0x56d5ce(0x1fe)](_0x414428);_0x4521be[_0x56d5ce(0x1d9)][_0x56d5ce(0x1db)](_0x25c220);}[_0x4a5f47(0x1cb)]({balloonPanel:_0x354cfc,source:_0x5095a1,withBackButton:_0x4b09fa}){const _0x105989=_0x4a5f47,_0x33686f=new _0x4995c3(this[_0x105989(0x1e3)],{'label':_0x5095a1[_0x105989(0x1f9)],'class':dc});return _0x4b09fa&&_0x33686f[_0x105989(0x1ec)][_0x105989(0x1db)](this[_0x105989(0x1d8)](_0x354cfc),0x0),_0x33686f;}[_0x4a5f47(0x1d8)](_0x6a919a){const _0x5ab5b2=_0x4a5f47,_0x1ecd4d=new _0x553596(this[_0x5ab5b2(0x1e3)]);return _0x1ecd4d[_0x5ab5b2(0x1d5)]({'icon':_0x4e115b,'tooltip':_0x118a73(this[_0x5ab5b2(0x1e3)],_0x5ab5b2(0x1d1)),'tooltipPosition':'n','class':mc}),_0x1ecd4d['on'](_0x5ab5b2(0x200),()=>{const _0x4d4dbc=_0x5ab5b2;_0x6a919a[_0x4d4dbc(0x1fc)](),this[_0x4d4dbc(0x1fd)][_0x4d4dbc(0x1f3)]();}),_0x1ecd4d;}[_0x4a5f47(0x1fe)](_0x232455){const _0x172a02=_0x4a5f47,_0x471896=new _0x456ab5(this[_0x172a02(0x1e3)],{'source':_0x232455,'searchInputVisibleFrom':this[_0x172a02(0x1fd)][_0x172a02(0x1f1)]});return _0x471896['on'](_0x172a02(0x1e1),(_0x57400c,_0x5a0aaf)=>{const _0x4357e=_0x172a02;this[_0x4357e(0x1fd)][_0x4357e(0x1df)](_0x5a0aaf);}),_0x471896['on'](_0x172a02(0x1da),(_0x5e8af8,_0x159a15)=>{const _0x56b002=_0x172a02;this[_0x56b002(0x1fd)][_0x56b002(0x203)](_0x159a15[_0x56b002(0x1d2)],_0x159a15[_0x56b002(0x1ea)]),this[_0x56b002(0x1cf)](_0x232455['id']);}),_0x471896;}[_0x4a5f47(0x1ef)](_0x7404d6){const _0x19c391=_0x4a5f47,_0x53d0fd=_0x7404d6[_0x19c391(0x1d9)][_0x19c391(0x1ce)](0x1);return _0x53d0fd instanceof _0x456ab5?_0x53d0fd:null;}[_0x4a5f47(0x1f8)](_0x2ded60){const _0x3abd0b=_0x4a5f47;_0x54c4b3({'emitter':_0x2ded60,'contextElements':[_0x2ded60[_0x3abd0b(0x1ca)]],'callback':()=>{const _0x64f70b=_0x3abd0b;_0x2ded60[_0x64f70b(0x1fc)](),this[_0x64f70b(0x1fd)][_0x64f70b(0x1f0)]();},'activator':()=>_0x2ded60[_0x3abd0b(0x1f4)]});}}function _0x997c(){const _0x4008af=['change:isLoading','_setupSingleResourceBalloonClickOutsideHandler','label','_sourceResourceBalloons','getLimiterElement','hide','_config','_createBalloonResourcesView','getTargetElement','execute','populateSourceResourceBalloon','updateResourceState','onResourceSelected','754026ccVnZw','element','_createBalloonHeader','1050pqAfYv','clear','get','closeSourceResourceBalloon','once','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','source','962968pQetBl','show','set','delete','showSourceResourcesBalloon','_createBackButton','content','addResourceToContext','add','_bodyCollection','ck-ai-chat-context-controls__source-balloon-panel','setResources','onLoadSourceResources','1333888YFRuqJ','loadSourceResources','isAnyResourceBalloonVisible','_locale','_createSourceResourceBalloonPanel','10284llWWVN','ck-button-icon\x20ck-button-back','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','233319LrPcmH','values','resource','1408715CitHDB','children','75921SGLcHc','pin','_getResourcesViewFromBalloon','onBalloonClosed','searchInputVisibleFrom','destroy','onBackToContext','isVisible','extendTemplate','_addSourceResourceContent'];_0x997c=function(){return _0x4008af;};return _0x997c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x3ea27d,IconView as _0xf75ca0,LabeledFieldView as _0x3e2b58,createLabeledInputText as th}from'ckeditor5/src/ui.js';import{IconLoupe as _0x524c70,IconCancel as _0x335cb6}from'ckeditor5/src/icons.js';import{getTranslation as _0x12e5af}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x3e2b58{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x50c41b){const t=_0x50c41b['t'],_0x453547={'showResetButton':!0x0,'showIcon':!0x0,'creator':th,'label':_0x12e5af(_0x50c41b,'AI_CHAT_SEARCH_RESOURCES')};super(_0x50c41b,_0x453547['creator']),this['label']=_0x453547['label'],this['_viewConfig']=_0x453547,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x50c41b,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x3f194c){this['fire']('search',_0x3f194c);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0xf75ca0(),this['iconView']['content']=_0x524c70,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x41b386,t){this['resetButtonView']=new _0x3ea27d(_0x41b386),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x335cb6,'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',_0x530bdb=>!_0x530bdb),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);}}
|