@ckeditor/ckeditor5-ai 47.7.0-alpha.4 → 47.7.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x342e99=_0x1014;function _0x10df(){const _0x6ae062=['AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','_setupEventHandlers','3647184OzOORM','children','backButton','680WzQKNy','ck-ai-chat-context-controls__url-input-section','1796ppsBAd','ck-labeled-field-view_empty','clear','forEach','div','AI_CHAT_CONTEXT_URL_PLACEHOLDER','urlInputField','focusTracker','1022LFtaVc','6066yPqBiv','stop','_setupKeystrokes','_isValidUrl','refreshBalloon','add','ck-ai-chat-context-controls__url-form','destroy','tab','submit','getValue','setTemplate','AI_CHAT_CONTEXT_URL_ADD_URL','focusCycler','focus','17117221folbiF','AI_CHAT_CONTEXT_URL_INVALID_ERROR','confirmButton','shift+tab','_createConfirmButton','trim','_createBackButton','isEnabled','_createUrlInputField','fieldView','createCollection','submitUrl','ck-button-icon\x20ck-button-back','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','95710QWEwso','element','4836rmDQJk','\x20ck-hidden','keystrokes','AI_CHAT_CONTEXT_URL_LABEL','_updateConfirmButtonState','execute','123990rgAvud','set','listenTo','change:withBackButton','value','ck-button-icon','length','_handleSubmit','render','form','_setupTemplate','26706kHxgHZ','cancel','locale','setError','fire','errorText','4rMlJwj','withBackButton','clearError','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','input','esc','_focusables'];_0x10df=function(){return _0x6ae062;};return _0x10df();}(function(_0x2d3229,_0x5444a2){const _0x579fa6=_0x1014,_0x524945=_0x2d3229();while(!![]){try{const _0x31ac41=-parseInt(_0x579fa6(0x202))/0x1*(parseInt(_0x579fa6(0x21b))/0x2)+parseInt(_0x579fa6(0x204))/0x3*(-parseInt(_0x579fa6(0x229))/0x4)+-parseInt(_0x579fa6(0x20a))/0x5+parseInt(_0x579fa6(0x215))/0x6*(-parseInt(_0x579fa6(0x231))/0x7)+parseInt(_0x579fa6(0x224))/0x8+parseInt(_0x579fa6(0x232))/0x9*(parseInt(_0x579fa6(0x227))/0xa)+parseInt(_0x579fa6(0x1f4))/0xb;if(_0x31ac41===_0x5444a2)break;else _0x524945['push'](_0x524945['shift']());}catch(_0x59745e){_0x524945['push'](_0x524945['shift']());}}}(_0x10df,0x72415));import{FocusTracker as _0x8d8e0b,KeystrokeHandler as _0x293448}from'ckeditor5/src/utils.js';import{ButtonView as _0x137736,FocusCycler as _0xf7895f,LabeledFieldView as _0x21bbd4,View as _0x47fda4,FormHeaderView as _0x481195,createLabeledInputText as _0x3c2218,submitHandler as _0x5d0e9a}from'ckeditor5/src/ui.js';import{IconCheck as _0x20558c,IconPreviousArrow as _0x3fee1e}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x5d957c}from'../../../aicore/utils/common-translations.js';const oh=_0x342e99(0x238),ch=_0x342e99(0x228);function _0x1014(_0x3022a,_0x143001){const _0x10df38=_0x10df();return _0x1014=function(_0x101423,_0x5ece5b){_0x101423=_0x101423-0x1f1;let _0x1b3ad6=_0x10df38[_0x101423];return _0x1b3ad6;},_0x1014(_0x3022a,_0x143001);}export class AIChatContextPanelUrlInputView extends _0x47fda4{[_0x342e99(0x230)];[_0x342e99(0x206)];[_0x342e99(0x221)];[_0x342e99(0x1f2)];[_0x342e99(0x22f)];[_0x342e99(0x226)];[_0x342e99(0x1f6)];constructor(_0x178697){const _0xdc165b=_0x342e99;super(_0x178697),this[_0xdc165b(0x230)]=new _0x8d8e0b(),this[_0xdc165b(0x206)]=new _0x293448(),this[_0xdc165b(0x226)]=this[_0xdc165b(0x1fa)](),this[_0xdc165b(0x22f)]=this[_0xdc165b(0x1fc)](),this[_0xdc165b(0x1f6)]=this[_0xdc165b(0x1f8)](),this[_0xdc165b(0x221)]=this[_0xdc165b(0x1fe)]([this[_0xdc165b(0x226)],this[_0xdc165b(0x22f)],this[_0xdc165b(0x1f6)]]),this[_0xdc165b(0x1f2)]=new _0xf7895f({'focusables':this[_0xdc165b(0x221)],'focusTracker':this[_0xdc165b(0x230)],'keystrokeHandler':this[_0xdc165b(0x206)],'actions':{'focusPrevious':_0xdc165b(0x1f7),'focusNext':_0xdc165b(0x23a)}}),this[_0xdc165b(0x20b)](_0xdc165b(0x21c),!0x0),this[_0xdc165b(0x214)](),this[_0xdc165b(0x223)](),this[_0xdc165b(0x234)]();}[_0x342e99(0x212)](){const _0x2347e9=_0x342e99;super[_0x2347e9(0x212)](),this[_0x2347e9(0x221)][_0x2347e9(0x22c)](_0x16a750=>{const _0x389339=_0x2347e9;this[_0x389339(0x230)][_0x389339(0x237)](_0x16a750[_0x389339(0x203)]),this[_0x389339(0x206)][_0x389339(0x20c)](_0x16a750[_0x389339(0x203)]);}),_0x5d0e9a({'view':this}),this[_0x2347e9(0x1f3)]();}[_0x342e99(0x239)](){const _0x514917=_0x342e99;super[_0x514917(0x239)](),this[_0x514917(0x230)][_0x514917(0x239)](),this[_0x514917(0x206)][_0x514917(0x239)]();}[_0x342e99(0x1f3)](){const _0x538677=_0x342e99;this[_0x538677(0x22f)][_0x538677(0x1f3)]();}[_0x342e99(0x23c)](){const _0x1194ef=_0x342e99;return this[_0x1194ef(0x22f)][_0x1194ef(0x1fd)][_0x1194ef(0x203)]?.[_0x1194ef(0x20e)]?.[_0x1194ef(0x1f9)]()||'';}[_0x342e99(0x22b)](){const _0x552c4a=_0x342e99;this[_0x552c4a(0x22f)][_0x552c4a(0x1fd)][_0x552c4a(0x203)][_0x552c4a(0x20e)]='',this[_0x552c4a(0x22f)][_0x552c4a(0x21a)]=null,this[_0x552c4a(0x1f6)][_0x552c4a(0x1fb)]=!0x1;}[_0x342e99(0x218)](_0x3f88f5){const _0x3ec999=_0x342e99;this[_0x3ec999(0x22f)][_0x3ec999(0x21a)]=_0x3f88f5,this[_0x3ec999(0x208)](),this[_0x3ec999(0x219)](_0x3ec999(0x236));}[_0x342e99(0x21d)](){const _0x140f71=_0x342e99;this[_0x140f71(0x22f)][_0x140f71(0x21a)]=null,this[_0x140f71(0x208)]();}[_0x342e99(0x1fa)](){const _0x1e91a8=_0x342e99,_0x50d0cf=new _0x137736(this[_0x1e91a8(0x217)]);return _0x50d0cf[_0x1e91a8(0x20b)]({'icon':_0x3fee1e,'tooltip':_0x5d957c(this[_0x1e91a8(0x217)],_0x1e91a8(0x222)),'tooltipPosition':'n','class':[_0x1e91a8(0x200)]}),this['on'](_0x1e91a8(0x20d),(_0x21e351,_0x627cbe,_0x5ec71b)=>{const _0x42cc6e=_0x1e91a8;_0x50d0cf[_0x42cc6e(0x20b)]({'class':[_0x42cc6e(0x200)+(_0x5ec71b?'':_0x42cc6e(0x205))]});}),_0x50d0cf;}[_0x342e99(0x1fc)](){const _0x5c9ab2=_0x342e99,_0x343b75=new _0x21bbd4(this[_0x5c9ab2(0x217)],_0x3c2218);return _0x343b75[_0x5c9ab2(0x20b)]({'label':_0x5d957c(this[_0x5c9ab2(0x217)],_0x5c9ab2(0x207)),'class':_0x5c9ab2(0x22a)}),_0x343b75[_0x5c9ab2(0x1fd)][_0x5c9ab2(0x20b)]({'placeholder':_0x5d957c(this[_0x5c9ab2(0x217)],_0x5c9ab2(0x22e))}),_0x343b75;}[_0x342e99(0x1f8)](){const _0xf078e2=_0x342e99,_0x1e935f=new _0x137736(this[_0xf078e2(0x217)]);return _0x1e935f[_0xf078e2(0x20b)]({'icon':_0x20558c,'tooltip':_0x5d957c(this[_0xf078e2(0x217)],_0xf078e2(0x1f1)),'tooltipPosition':'n','class':_0xf078e2(0x20f),'type':_0xf078e2(0x23b),'isEnabled':!0x1}),_0x1e935f;}[_0x342e99(0x214)](){const _0x33b702=_0x342e99,_0x421798=new _0x481195(this[_0x33b702(0x217)],{'label':_0x5d957c(this[_0x33b702(0x217)],_0x33b702(0x1f1)),'class':_0x33b702(0x21e)});_0x421798[_0x33b702(0x225)][_0x33b702(0x237)](this[_0x33b702(0x226)],0x0),this[_0x33b702(0x23d)]({'tag':_0x33b702(0x213),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0x421798,{'tag':_0x33b702(0x22d),'attributes':{'class':ch},'children':[this[_0x33b702(0x22f)],this[_0x33b702(0x1f6)]]}]});}[_0x342e99(0x223)](){const _0x3e0884=_0x342e99;this[_0x3e0884(0x226)]['on'](_0x3e0884(0x209),()=>{const _0x4bbed9=_0x3e0884;this[_0x4bbed9(0x22b)](),this[_0x4bbed9(0x219)](_0x4bbed9(0x216));}),this[_0x3e0884(0x22f)][_0x3e0884(0x1fd)]['on'](_0x3e0884(0x21f),()=>{const _0x299892=_0x3e0884;this[_0x299892(0x21d)](),this[_0x299892(0x208)](),this[_0x299892(0x219)](_0x299892(0x236));}),this['on'](_0x3e0884(0x23b),_0x480c75=>{const _0x48d568=_0x3e0884;_0x480c75[_0x48d568(0x233)](),this[_0x48d568(0x211)]();});}[_0x342e99(0x234)](){const _0x51af54=_0x342e99;this[_0x51af54(0x206)][_0x51af54(0x20b)](_0x51af54(0x220),(_0x6c8378,_0x4f18fe)=>{const _0x2ea5de=_0x51af54;this[_0x2ea5de(0x22b)](),this[_0x2ea5de(0x219)](_0x2ea5de(0x216)),_0x4f18fe();});}[_0x342e99(0x211)](){const _0x2d9087=_0x342e99,_0x15d58e=this[_0x2d9087(0x23c)]()[_0x2d9087(0x1f9)]();_0x15d58e?this[_0x2d9087(0x235)](_0x15d58e)?(this[_0x2d9087(0x21d)](),this[_0x2d9087(0x219)](_0x2d9087(0x1ff),_0x15d58e)):this[_0x2d9087(0x218)](_0x5d957c(this[_0x2d9087(0x217)],_0x2d9087(0x1f5))):this[_0x2d9087(0x218)](_0x5d957c(this[_0x2d9087(0x217)],_0x2d9087(0x201)));}[_0x342e99(0x208)](){const _0x1ab8c2=_0x342e99,_0x1c9204=this[_0x1ab8c2(0x23c)]()[_0x1ab8c2(0x1f9)](),_0x595cb6=!!this[_0x1ab8c2(0x22f)][_0x1ab8c2(0x21a)];this[_0x1ab8c2(0x1f6)][_0x1ab8c2(0x1fb)]=_0x1c9204[_0x1ab8c2(0x210)]>0x0&&!_0x595cb6;}[_0x342e99(0x235)](_0x72fbb4){try{return!!new URL(_0x72fbb4);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xc9e2af=_0x12e9;(function(_0x5e94ce,_0x2a2720){const _0xbdc567=_0x12e9,_0x30fa27=_0x5e94ce();while(!![]){try{const _0x457612=-parseInt(_0xbdc567(0x176))/0x1+-parseInt(_0xbdc567(0x106))/0x2+parseInt(_0xbdc567(0x101))/0x3*(parseInt(_0xbdc567(0x142))/0x4)+-parseInt(_0xbdc567(0x167))/0x5*(parseInt(_0xbdc567(0x174))/0x6)+parseInt(_0xbdc567(0x150))/0x7*(-parseInt(_0xbdc567(0x11a))/0x8)+parseInt(_0xbdc567(0x138))/0x9*(parseInt(_0xbdc567(0x132))/0xa)+parseInt(_0xbdc567(0x12f))/0xb;if(_0x457612===_0x2a2720)break;else _0x30fa27['push'](_0x30fa27['shift']());}catch(_0x1c72a2){_0x30fa27['push'](_0x30fa27['shift']());}}}(_0x2698,0x28743));function _0x2698(){const _0x157dec=['pin','cancel','isLoading','locale','showAddContextBalloonPanel','icon','files','819enQupu','_createAddContextButtonView','isOn','_createContextButton','find','set','type','_setupTemplate','executeCustomItemCallback','setContextItemLoading','get','_addContextToCollection','_addContextBalloonConfig','submitUrl','_setupUrlBalloonClickOutsideHandler','clearConversationContextItems','_showSourceResourcesBalloon','setAddContextOptions','removeContextItemChip','AI_CHAT_CONTEXT_FILE_LABEL','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','loadSourceResources','northArrowSouth','5NwPQzt','ck-ai-chat-context-controls__pending-contexts','ck-ai-chat-controls_context_show-more-button','label','_setupAddContextBalloonClickOutsideHandler','_bindEventHandlers','customItem','menuitem','hide','defaultPositions','ck-ai-chat-context-controls__balloon-button','_conversationContextsChips','enabled','1147698uYunHV','arrowView','162400JmybWB','createCollection','ck-ai-chat-context-chips-wrapper-balloon','fire','focus','_urlInputView','addContextItem','_urlBalloonPanelView','closest','conversation','hideUrlBalloonPanel','__arrow','customItems','bodyCollection','_setupAllBalloonClickOutsideHandlers','setConversationContext','ck-ai-chat-context-controls__add-context-balloon-panel','body','ck-ai-chat-controls-button','source','_createBaseBalloonPanel','addDocumentToContext','execute','element','_createResourcesBalloonView','balloonView','showUrlBalloonPanel','tooltip','_createAddContextBalloonPanelView','addResourceToContext','_addContextBalloonPanelView','current','_createArrowView','ck-ai-chat-context-controls__balloon-button-source','_setBalloonPanelContent','127557PIicyr','urls','done','populateSourceResourceBalloon','sources','290828lGPVHl','addUrlToContext','_overflowManager','isVisible','isAnyResourceBalloonVisible','closeSourceResourceBalloon','_removeContextFromCollection','refreshBalloon','bind','document','isHidden','extendTemplate','overflowChips','addFileToContext','_handleAddContextButtonClick','_createBalloonButton','northArrowSouthWest','ck-ai-chat-context-controls','showSourceResourcesBalloon','isEnabled','8384AxiAiA','ck-ai-chat-context-controls__url-balloon-panel','northArrowSouthEast','_setAddContextButtonEnabled','clear','setTemplate','length','hideAddContextBalloonPanel','withBackButton','ck-ai-chat-context-controls__show-more-balloon-panel','_currentContextsChips','addContextButtonView','ck-reset_all-excluded','children','destroy','_handleUrlSubmit','_getLimiterElement','remove','buttonView','clearCurrentContextItems','AI_CHAT_CONTEXT_ADD_CONTEXT','5168383jyxoKf','searchInputVisibleFrom','show','120zpKkae','_addUrlContent','reorganizeChips','southArrowNorth','div','add','78723frSxzz','isReadOnly','ck-ai-chat','_createUrlBalloonPanelView','content','southArrowNorthWest','_hasExactlyOneSource','southArrowNorthEast','AI_CHAT_CONTEXT_URL_LABEL','removeContextItem','20uyWdfq','_toggleAddContextBalloon','updateResourceState','ck-ai-chat-context-controls__add-context-button','_resourcesBalloonView','render','setContainerElement'];_0x2698=function(){return _0x157dec;};return _0x2698();}import{BalloonPanelView as _0x383475,ButtonView as _0x3b0686,clickOutsideHandler as _0x59f10d,FileDialogButtonView as _0x2f5c69,IconView as _0xee0d64,View as _0x2ae63e}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x41d776,IconDocument as _0x598448,IconDocumentOutline as _0x2f3fbf,IconDropdownArrow as _0xbe5854,IconLink as _0x2a2771,IconPaperClip as _0x3a64be}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0xf97f7a}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x52daff}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x242ca9}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x20b15e}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x2c663f}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0xc9e2af(0xf3),_0xc9e2af(0x113),_0xc9e2af(0x107),_0xc9e2af(0xfb),_0xc9e2af(0x141),_0xc9e2af(0x165),_0xc9e2af(0x158)];const Uo=_0xc9e2af(0x117),Lo=_0xc9e2af(0x168),No=_0xc9e2af(0x186),Mo=_0xc9e2af(0x145),Ho=_0xc9e2af(0x11b),jo=_0xc9e2af(0x171),Fo=_0xc9e2af(0xff),Xo=_0xc9e2af(0xf0),Do=_0xc9e2af(0x178),$o=_0xc9e2af(0x169),Wo=_0xc9e2af(0x123),qo=_0xc9e2af(0x13a),zo=[_0x383475[_0xc9e2af(0x170)][_0xc9e2af(0x116)],_0x383475[_0xc9e2af(0x170)][_0xc9e2af(0x166)],_0x383475[_0xc9e2af(0x170)][_0xc9e2af(0x11c)],_0x383475[_0xc9e2af(0x170)][_0xc9e2af(0x13d)],_0x383475[_0xc9e2af(0x170)][_0xc9e2af(0x135)],_0x383475[_0xc9e2af(0x170)][_0xc9e2af(0x13f)]];export class AIChatContextPanelView extends _0x2ae63e{[_0xc9e2af(0x125)];[_0xc9e2af(0x124)]=this[_0xc9e2af(0x177)]();[_0xc9e2af(0x172)]=this[_0xc9e2af(0x177)]();[_0xc9e2af(0x108)];[_0xc9e2af(0xfc)];[_0xc9e2af(0x17d)];[_0xc9e2af(0x17b)];[_0xc9e2af(0x146)];[_0xc9e2af(0x15c)];[_0xc9e2af(0x13e)]=!0x1;[_0xc9e2af(0x183)];constructor(_0x528af5,_0x3929fb){const _0x52e931=_0xc9e2af;super(_0x528af5),this[_0x52e931(0x183)]=_0x3929fb[_0x52e931(0x183)],this[_0x52e931(0x124)]=this[_0x52e931(0x177)](),this[_0x52e931(0x172)]=this[_0x52e931(0x177)](),this[_0x52e931(0x125)]=this[_0x52e931(0x151)](_0x528af5),this[_0x52e931(0xfc)]=this[_0x52e931(0xfa)](_0x528af5),this[_0x52e931(0x17d)]=this[_0x52e931(0x13b)](_0x528af5),this[_0x52e931(0x146)]=this[_0x52e931(0xf6)](_0x528af5,_0x3929fb);const _0x1e7f5d={'cssClasses':{'showMoreButton':$o,'showMoreBalloon':Wo,'overflowContainer':Do,'controlsButton':Xo}};this[_0x52e931(0x108)]=new _0x242ca9(_0x528af5,this[_0x52e931(0x124)],_0x1e7f5d,this[_0x52e931(0x183)],this),this[_0x52e931(0x15c)]={'buttonView':this[_0x52e931(0x125)],'balloonView':this[_0x52e931(0xfc)],'hideMethod':this[_0x52e931(0x121)][_0x52e931(0x10e)](this),'showMethod':this[_0x52e931(0x14d)][_0x52e931(0x10e)](this)},this[_0x52e931(0x157)](),this[_0x52e931(0x16c)]();}[_0xc9e2af(0x147)](){const _0x1e47c2=_0xc9e2af;super[_0x1e47c2(0x147)](),this[_0x1e47c2(0x184)](),this[_0x1e47c2(0x108)][_0x1e47c2(0x148)](this[_0x1e47c2(0xf5)]),this[_0x1e47c2(0x108)][_0x1e47c2(0x134)]();}[_0xc9e2af(0x128)](){const _0x1ac5f5=_0xc9e2af;super[_0x1ac5f5(0x128)](),this[_0x1ac5f5(0x108)][_0x1ac5f5(0x128)](),this[_0x1ac5f5(0x146)][_0x1ac5f5(0x128)]();}[_0xc9e2af(0x17c)](_0xef0262,_0x29f318){const _0x1d26f1=_0xc9e2af,_0x347870=this[_0x1d26f1(0x153)](_0xef0262,_0x1d26f1(0xfd),!0x0,_0x29f318);this[_0x1d26f1(0x15b)](_0x347870,this[_0x1d26f1(0x124)]),this[_0x1d26f1(0x108)][_0x1d26f1(0x134)]();}[_0xc9e2af(0x141)](_0x281e10){const _0x3f8497=_0xc9e2af;this[_0x3f8497(0x10c)](_0x281e10,this[_0x3f8497(0x124)]),this[_0x3f8497(0x10c)](_0x281e10,this[_0x3f8497(0x108)][_0x3f8497(0x112)]),this[_0x3f8497(0x108)][_0x3f8497(0x134)]();}[_0xc9e2af(0x159)](_0x5bb867,_0x2c9b6d){const _0x238305=_0xc9e2af;let _0x51fa46=this[_0x238305(0x124)][_0x238305(0x154)](_0x20e70d=>_0x20e70d['id']===_0x5bb867);_0x51fa46||(_0x51fa46=this[_0x238305(0x108)][_0x238305(0x112)][_0x238305(0x154)](_0x53b507=>_0x53b507['id']===_0x5bb867)),_0x51fa46&&(_0x51fa46[_0x238305(0x14b)]=_0x2c9b6d);}[_0xc9e2af(0x185)](_0x18e2b3){const _0xb73e27=_0xc9e2af;this[_0xb73e27(0x172)][_0xb73e27(0x11e)]();for(const _0x2e7edd of _0x18e2b3){const _0x51ceb6=this[_0xb73e27(0x153)](_0x2e7edd,_0xb73e27(0x17f),!0x1,!0x1);this[_0xb73e27(0x15b)](_0x51ceb6,this[_0xb73e27(0x172)]);}}[_0xc9e2af(0x12d)](){const _0x142640=_0xc9e2af;this[_0x142640(0x124)][_0x142640(0x11e)](),this[_0x142640(0x108)][_0x142640(0x11e)]();}[_0xc9e2af(0x15f)](){const _0x4ce895=_0xc9e2af;this[_0x4ce895(0x172)][_0x4ce895(0x11e)]();}[_0xc9e2af(0x144)](_0x45780d,_0x2eac98,_0x2c685b){const _0x3057fd=_0xc9e2af;this[_0x3057fd(0x146)][_0x3057fd(0x144)](_0x45780d,_0x2eac98,_0x2c685b);}[_0xc9e2af(0x121)](){const _0x4d6cfb=_0xc9e2af;this[_0x4d6cfb(0x143)](!0x1);}[_0xc9e2af(0x14d)](){const _0x3c6600=_0xc9e2af;this[_0x3c6600(0x143)](!0x0);}[_0xc9e2af(0x180)](){const _0x4005b6=_0xc9e2af;this[_0x4005b6(0x17d)][_0x4005b6(0x16f)](),this[_0x4005b6(0x125)][_0x4005b6(0x152)]=!0x1,this[_0x4005b6(0x17b)]&&this[_0x4005b6(0x17b)][_0x4005b6(0x11e)]();}[_0xc9e2af(0xf8)](){const _0x143f90=_0xc9e2af;this[_0x143f90(0x17d)][_0x143f90(0x131)](),this[_0x143f90(0x125)][_0x143f90(0x152)]=!0x0;}[_0xc9e2af(0x160)]({source:_0x1ba09d,withBackButton:_0x19c20f}){const _0x4ce893=_0xc9e2af;this[_0x4ce893(0x146)][_0x4ce893(0x118)]({'source':_0x1ba09d,'withBackButton':_0x19c20f}),this[_0x4ce893(0x125)][_0x4ce893(0x152)]=!0x0;}[_0xc9e2af(0x104)](_0xd7150a,_0x37f270,_0x15baff,_0x2cdfa9){const _0x1a3045=_0xc9e2af;this[_0x1a3045(0x146)][_0x1a3045(0x104)](_0xd7150a,_0x15baff,_0x2cdfa9);}[_0xc9e2af(0x10b)](_0x42e061){const _0x3ea1=_0xc9e2af;this[_0x3ea1(0x146)][_0x3ea1(0x10b)](_0x42e061),this[_0x3ea1(0x125)][_0x3ea1(0x152)]=!0x1;}[_0xc9e2af(0x161)](_0x46384b){const _0x390344=_0xc9e2af;this[_0x390344(0x100)](this[_0x390344(0xfc)],this[_0x390344(0x14c)],_0x46384b),this[_0x390344(0x11d)](_0x46384b);}[_0xc9e2af(0x11d)](_0x3f5a1b){const _0xd5c96e=_0xc9e2af,_0x53d488=!_0x3f5a1b[_0xd5c96e(0x10f)][_0xd5c96e(0x110)]&&_0x3f5a1b[_0xd5c96e(0x10f)][_0xd5c96e(0x173)],_0x5726f2=_0x3f5a1b[_0xd5c96e(0x102)][_0xd5c96e(0x173)],_0x53063b=_0x3f5a1b[_0xd5c96e(0x14f)][_0xd5c96e(0x173)],_0x252a34=_0x3f5a1b[_0xd5c96e(0x105)][_0xd5c96e(0x120)]>0x0,_0x5cc85b=_0x3f5a1b[_0xd5c96e(0x182)]&&_0x3f5a1b[_0xd5c96e(0x182)][_0xd5c96e(0x120)]>0x0;this[_0xd5c96e(0x125)][_0xd5c96e(0x119)]=_0x53d488||_0x5726f2||_0x53063b||_0x252a34||_0x5cc85b;}[_0xc9e2af(0x157)](){const _0x5cc917=_0xc9e2af;this[_0x5cc917(0x11f)]({'tag':_0x5cc917(0x136),'attributes':{'class':[Uo,_0x5cc917(0x126)]},'children':[{'tag':_0x5cc917(0x136),'attributes':{'class':Lo},'children':this[_0x5cc917(0x124)]}]});}[_0xc9e2af(0x16c)](){const _0xde9563=_0xc9e2af;this[_0xde9563(0x125)]['on'](_0xde9563(0xf4),()=>{const _0x3c7d69=_0xde9563;this[_0x3c7d69(0x114)]();});}[_0xc9e2af(0x151)](_0x4cf82e){const _0x2bcd32=_0xc9e2af,_0x57a567=new _0x3b0686(_0x4cf82e);return _0x57a567[_0x2bcd32(0x155)]({'label':_0x20b15e(_0x4cf82e,_0x2bcd32(0x12e)),'class':Xo+'\x20'+Mo,'icon':_0x3a64be,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x57a567;}[_0xc9e2af(0xfa)](_0x5cb4b9){const _0x4a5f09=_0xc9e2af;return this[_0x4a5f09(0xf2)](_0x5cb4b9,No);}[_0xc9e2af(0x13b)](_0x231a7b){const _0x417976=_0xc9e2af,_0x441f59=this[_0x417976(0xf2)](_0x231a7b,Ho);return this[_0x417976(0x133)](_0x441f59,_0x231a7b),_0x441f59;}[_0xc9e2af(0xf6)](_0x337a2f,_0x5f216c){const _0x3d2249=_0xc9e2af,_0x350704={'searchInputVisibleFrom':_0x5f216c[_0x3d2249(0x130)],'onBackToContext':()=>{const _0x4d41f3=_0x3d2249;this[_0x4d41f3(0x14d)](),this[_0x4d41f3(0xfc)][_0x4d41f3(0x149)]({'target':this[_0x4d41f3(0x125)][_0x4d41f3(0xf5)],'limiter':this[_0x4d41f3(0x12a)](),'positions':zo});},'onResourceSelected':(_0x17332b,_0x28a44c)=>{const _0x3059a6=_0x3d2249;this[_0x3059a6(0x179)](_0x3059a6(0xfb),{'source':_0x17332b,'resource':_0x28a44c});},'onLoadSourceResources':_0x52ac8b=>{const _0x514e98=_0x3d2249;this[_0x514e98(0x179)](_0x514e98(0x165),_0x52ac8b);},'onBalloonClosed':()=>{const _0x26cbb2=_0x3d2249;this[_0x26cbb2(0x125)][_0x26cbb2(0x152)]=!0x1;},'getLimiterElement':()=>this[_0x3d2249(0x12a)](),'getTargetElement':()=>this[_0x3d2249(0x125)][_0x3d2249(0xf5)]};return new _0x2c663f(_0x337a2f,_0x5f216c[_0x3d2249(0x183)],_0x350704);}[_0xc9e2af(0x12a)](){const _0x1e4ab5=_0xc9e2af;return this[_0x1e4ab5(0xf5)]?.[_0x1e4ab5(0x17e)]('.'+qo)||document[_0x1e4ab5(0x187)];}[_0xc9e2af(0xf2)](_0x53ffc1,_0x1db371){const _0x3170fd=_0xc9e2af,_0x2a4c36=new _0x383475(_0x53ffc1);return _0x2a4c36[_0x3170fd(0x111)]({'attributes':{'class':_0x1db371}}),this[_0x3170fd(0x183)][_0x3170fd(0x137)](_0x2a4c36),_0x2a4c36;}[_0xc9e2af(0x100)](_0x3289b3,_0x115486,_0xaf6217){const _0x535d73=_0xc9e2af;if(_0x3289b3[_0x535d73(0x13c)][_0x535d73(0x11e)](),!_0xaf6217[_0x535d73(0x10f)][_0x535d73(0x110)]&&_0xaf6217[_0x535d73(0x10f)][_0x535d73(0x173)]){const _0x5d4fe6=this[_0x535d73(0x115)](_0x115486,{'label':_0x20b15e(_0x115486,_0x535d73(0x164)),'icon':_0x598448});_0x5d4fe6['on'](_0x535d73(0xf4),()=>{const _0x92d74e=_0x535d73;this[_0x92d74e(0x179)](_0x92d74e(0xf3)),this[_0x92d74e(0x121)]();}),_0x3289b3[_0x535d73(0x13c)][_0x535d73(0x137)](_0x5d4fe6);}if(_0xaf6217[_0x535d73(0x102)][_0x535d73(0x173)]){const _0x3e833c=this[_0x535d73(0x115)](_0x115486,{'label':_0x20b15e(_0x115486,_0x535d73(0x140)),'icon':_0x2a2771});_0x3e833c['on'](_0x535d73(0xf4),()=>{const _0x110e40=_0x535d73;this[_0x110e40(0x121)](),this[_0x110e40(0xf8)](),this[_0x110e40(0x17d)][_0x110e40(0x149)]({'target':this[_0x110e40(0x125)][_0x110e40(0xf5)],'limiter':this[_0x110e40(0x12a)](),'positions':zo}),this[_0x110e40(0x17b)][_0x110e40(0x17a)]();}),_0x3289b3[_0x535d73(0x13c)][_0x535d73(0x137)](_0x3e833c);}if(_0xaf6217[_0x535d73(0x14f)][_0x535d73(0x173)]){const _0xf7124b=new _0x2f5c69(_0x115486);_0xf7124b[_0x535d73(0x155)]({'label':_0x20b15e(_0x115486,_0x535d73(0x163)),'icon':_0x41d776,'withText':!0x0,'tooltip':!0x0,'class':jo,'allowMultipleFiles':!0x0}),_0xf7124b['on'](_0x535d73(0xf4),()=>{const _0x29b8e3=_0x535d73;this[_0x29b8e3(0x121)]();}),_0xf7124b['on'](_0x535d73(0x103),(_0x3d7f63,_0x35d4a6)=>{const _0x1b917c=_0x535d73;this[_0x1b917c(0x179)](_0x1b917c(0x113),_0x35d4a6);}),_0xf7124b[_0x535d73(0xf9)]=!0x0,_0x3289b3[_0x535d73(0x13c)][_0x535d73(0x137)](_0xf7124b);}for(const _0x20cb51 of _0xaf6217[_0x535d73(0x105)]){const _0x3742e8=this[_0x535d73(0x115)](_0x115486,{'label':_0x20cb51[_0x535d73(0x16a)],'icon':_0x20cb51[_0x535d73(0x14e)]||_0x2f3fbf,'type':_0x535d73(0xf1)});_0x3289b3[_0x535d73(0x13c)][_0x535d73(0x137)](_0x3742e8),_0x3742e8['on'](_0x535d73(0xf4),()=>{const _0x665771=_0x535d73;this[_0x665771(0x121)](),this[_0x665771(0x160)]({'source':_0x20cb51,'withBackButton':!this[_0x665771(0x13e)]});});}for(const _0x19abf7 of _0xaf6217[_0x535d73(0x182)]||[]){const _0x39a680=this[_0x535d73(0x115)](_0x115486,{'label':_0x19abf7[_0x535d73(0x16a)],'icon':_0x19abf7[_0x535d73(0x14e)]||_0x2f3fbf,'type':_0x535d73(0x16d)});_0x3289b3[_0x535d73(0x13c)][_0x535d73(0x137)](_0x39a680),_0x39a680['on'](_0x535d73(0xf4),()=>{const _0x1f7f39=_0x535d73;this[_0x1f7f39(0x121)](),this[_0x1f7f39(0x179)](_0x1f7f39(0x158),_0x19abf7);});}this[_0x535d73(0x13e)]=0x1===_0x3289b3[_0x535d73(0x13c)][_0x535d73(0x120)],this[_0x535d73(0x17b)][_0x535d73(0x122)]=!this[_0x535d73(0x13e)];}[_0xc9e2af(0x133)](_0x178bf9,_0x2044e1){const _0x527488=_0xc9e2af;this[_0x527488(0x17b)]=new _0x52daff(_0x2044e1),this[_0x527488(0x17b)]['on'](_0x527488(0x15d),(_0x51b87a,_0x105fd8)=>{const _0x5b859e=_0x527488;this[_0x5b859e(0x129)](_0x105fd8);}),this[_0x527488(0x17b)]['on'](_0x527488(0x14a),()=>{const _0x5b4458=_0x527488;this[_0x5b4458(0x180)](),this[_0x5b4458(0x13e)]||(this[_0x5b4458(0x14d)](),this[_0x5b4458(0xfc)][_0x5b4458(0x149)]({'target':this[_0x5b4458(0x125)][_0x5b4458(0xf5)],'limiter':this[_0x5b4458(0x12a)](),'positions':zo}));}),this[_0x527488(0x17b)]['on'](_0x527488(0x10d),()=>{const _0x5c46aa=_0x527488;this[_0x5c46aa(0x17d)][_0x5c46aa(0x109)]&&this[_0x5c46aa(0x17d)][_0x5c46aa(0x149)]({'target':this[_0x5c46aa(0x125)][_0x5c46aa(0xf5)],'limiter':this[_0x5c46aa(0x12a)](),'positions':zo});}),_0x178bf9[_0x527488(0x13c)][_0x527488(0x137)](this[_0x527488(0x17b)]);}[_0xc9e2af(0x115)](_0x87a001,_0x2e345f){const _0x3fd1cf=_0xc9e2af,_0x134ed5=_0x3fd1cf(0xf1)===_0x2e345f[_0x3fd1cf(0x156)]?new SourcesBalloonButtonView(_0x87a001):new _0x3b0686(_0x87a001);return _0x134ed5[_0x3fd1cf(0x155)]({'label':_0x2e345f[_0x3fd1cf(0x16a)],'icon':_0x2e345f[_0x3fd1cf(0x14e)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':jo}),_0x134ed5;}[_0xc9e2af(0x184)](){const _0xa226a=_0xc9e2af;this[_0xa226a(0x16b)](),this[_0xa226a(0x15e)]();}[_0xc9e2af(0x15e)](){const _0x51031a=_0xc9e2af;_0x59f10d({'emitter':this[_0x51031a(0x17d)],'contextElements':[this[_0x51031a(0x17d)][_0x51031a(0xf5)]],'callback':()=>{const _0x1f4f87=_0x51031a;this[_0x1f4f87(0x180)]();},'activator':()=>this[_0x51031a(0x17d)][_0x51031a(0x109)]});}[_0xc9e2af(0x143)](_0x4d4f02){const _0x1d5de2=_0xc9e2af,_0x4eeebd=this[_0x1d5de2(0x15c)];_0x4eeebd[_0x1d5de2(0x12c)][_0x1d5de2(0x152)]=_0x4d4f02,_0x4d4f02?_0x4eeebd[_0x1d5de2(0xf7)][_0x1d5de2(0x131)]():_0x4eeebd[_0x1d5de2(0xf7)][_0x1d5de2(0x16f)]();}[_0xc9e2af(0x16b)](){const _0xade1bd=_0xc9e2af,{balloonView:_0x470d45,buttonView:_0x354945,hideMethod:_0x35f214}=this[_0xade1bd(0x15c)];_0x59f10d({'emitter':_0x470d45,'contextElements':[_0x470d45[_0xade1bd(0xf5)],_0x354945[_0xade1bd(0xf5)]],'callback':()=>{_0x35f214();},'activator':()=>_0x354945[_0xade1bd(0x152)]&&!this[_0xade1bd(0x17d)][_0xade1bd(0x109)]&&!this[_0xade1bd(0x146)][_0xade1bd(0x10a)]()});}[_0xc9e2af(0x153)](_0x42746f,_0x3f5deb,_0xbf9bde=!0x1,_0x2df2fd=!0x1){const _0x7697e3=_0xc9e2af,_0x565a19=_0x7697e3(0x17f)===_0x3f5deb||!0x0===_0x42746f[_0x7697e3(0x139)],_0x6b6e9f=new _0xf97f7a(this[_0x7697e3(0x14c)],_0x42746f,_0x565a19,_0xbf9bde,_0x2df2fd);return _0x565a19||_0x6b6e9f['on'](_0x7697e3(0x162),()=>{const _0x28cf6f=_0x7697e3;this[_0x28cf6f(0x179)](_0x28cf6f(0x141),_0x6b6e9f['id']);}),_0x6b6e9f;}[_0xc9e2af(0x15b)](_0x444bb1,_0x360693){const _0x98a86c=_0xc9e2af;_0x360693[_0x98a86c(0x137)](_0x444bb1,0x0);}[_0xc9e2af(0x10c)](_0x3d83dc,_0x622be8){const _0xc200aa=_0xc9e2af,_0x39977d=_0x622be8[_0xc200aa(0x154)](_0x504ff1=>_0x504ff1['id']===_0x3d83dc);_0x39977d&&_0x622be8[_0xc200aa(0x12b)](_0x39977d);}[_0xc9e2af(0x114)](){const _0xa989d8=_0xc9e2af;this[_0xa989d8(0x125)][_0xa989d8(0x152)]?this[_0xa989d8(0x121)]():(this[_0xa989d8(0x14d)](),this[_0xa989d8(0xfc)][_0xa989d8(0x149)]({'target':this[_0xa989d8(0x125)][_0xa989d8(0xf5)],'limiter':this[_0xa989d8(0x12a)](),'positions':zo}),this[_0xa989d8(0x13e)]&&this[_0xa989d8(0xfc)][_0xa989d8(0x13c)][_0xa989d8(0x15a)](0x0)?.[_0xa989d8(0x179)](_0xa989d8(0xf4)));}[_0xc9e2af(0x129)](_0xdf1783){const _0x2c82ee=_0xc9e2af;this[_0x2c82ee(0x17b)][_0x2c82ee(0x11e)](),this[_0x2c82ee(0x180)](),this[_0x2c82ee(0x179)](_0x2c82ee(0x107),_0xdf1783);}}function _0x12e9(_0x2da827,_0x3865b2){const _0x269878=_0x2698();return _0x12e9=function(_0x12e98a,_0x16f0f5){_0x12e98a=_0x12e98a-0xf0;let _0x2e9b1c=_0x269878[_0x12e98a];return _0x2e9b1c;},_0x12e9(_0x2da827,_0x3865b2);}export class SourcesBalloonButtonView extends _0x3b0686{[_0xc9e2af(0x175)];constructor(_0x5ec39e){const _0x531f86=_0xc9e2af;super(_0x5ec39e),this[_0x531f86(0x155)]({'withText':!0x0,'role':_0x531f86(0x16e)}),this[_0x531f86(0x175)]=this[_0x531f86(0xfe)](),this[_0x531f86(0x111)]({'attributes':{'class':[Fo]}});}[_0xc9e2af(0x147)](){const _0x57ef38=_0xc9e2af;super[_0x57ef38(0x147)](),this[_0x57ef38(0x127)][_0x57ef38(0x137)](this[_0x57ef38(0x175)]);}[_0xc9e2af(0xfe)](){const _0x4a5693=_0xc9e2af,_0x14b5c5=new _0xee0d64();return _0x14b5c5[_0x4a5693(0x13c)]=_0xbe5854,_0x14b5c5[_0x4a5693(0x111)]({'attributes':{'class':Fo+_0x4a5693(0x181)}}),_0x14b5c5;}}
|
|
23
|
+
const _0xbf973f=_0x1172;(function(_0x445a29,_0x37550d){const _0x546b27=_0x1172,_0x518403=_0x445a29();while(!![]){try{const _0x410698=parseInt(_0x546b27(0x18f))/0x1*(-parseInt(_0x546b27(0x15c))/0x2)+parseInt(_0x546b27(0x16f))/0x3+parseInt(_0x546b27(0x156))/0x4+-parseInt(_0x546b27(0x126))/0x5+-parseInt(_0x546b27(0x165))/0x6+-parseInt(_0x546b27(0x182))/0x7+parseInt(_0x546b27(0x17d))/0x8*(parseInt(_0x546b27(0x164))/0x9);if(_0x410698===_0x37550d)break;else _0x518403['push'](_0x518403['shift']());}catch(_0x4d60c2){_0x518403['push'](_0x518403['shift']());}}}(_0x1162,0x2de18));import{BalloonPanelView as _0xd6fb1,ButtonView as _0x313448,clickOutsideHandler as _0x5eafb9,FileDialogButtonView as _0x56b083,IconView as _0xf0094a,View as _0x479a28}from'ckeditor5/src/ui.js';function _0x1172(_0x4a7584,_0x24e44e){const _0x116258=_0x1162();return _0x1172=function(_0x11728d,_0x5e0d6f){_0x11728d=_0x11728d-0x101;let _0x4543bc=_0x116258[_0x11728d];return _0x4543bc;},_0x1172(_0x4a7584,_0x24e44e);}import{IconBrowseFiles as _0x3add85,IconDocument as _0x130b22,IconDocumentOutline as _0x23bc0b,IconDropdownArrow as _0x45d14b,IconLink as _0x111e77,IconPaperClip as _0xf96175}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x5ef325}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x18e307}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x836b1d}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x2f7e19}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x5397b1}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0xbf973f(0x162),_0xbf973f(0x163),_0xbf973f(0x106),_0xbf973f(0x187),_0xbf973f(0x167),_0xbf973f(0x190),_0xbf973f(0x193)];const Oo=_0xbf973f(0x109),Uo=_0xbf973f(0x118),Lo=_0xbf973f(0x195),No=_0xbf973f(0x14a),Mo=_0xbf973f(0x110),Ho=_0xbf973f(0x178),jo=_0xbf973f(0x157),Fo=_0xbf973f(0x125),Xo=_0xbf973f(0x11b),yo=_0xbf973f(0x16b),Do=_0xbf973f(0x14b),$o=_0xbf973f(0x16e),Wo=[_0xd6fb1[_0xbf973f(0x144)][_0xbf973f(0x102)],_0xd6fb1[_0xbf973f(0x144)][_0xbf973f(0x15e)],_0xd6fb1[_0xbf973f(0x144)][_0xbf973f(0x10c)],_0xd6fb1[_0xbf973f(0x144)][_0xbf973f(0x17f)],_0xd6fb1[_0xbf973f(0x144)][_0xbf973f(0x15d)],_0xd6fb1[_0xbf973f(0x144)][_0xbf973f(0x130)]];export class AIChatContextPanelView extends _0x479a28{[_0xbf973f(0x120)];[_0xbf973f(0x189)]=this[_0xbf973f(0x128)]();[_0xbf973f(0x114)]=this[_0xbf973f(0x128)]();[_0xbf973f(0x104)];[_0xbf973f(0x112)];[_0xbf973f(0x121)];[_0xbf973f(0x119)];[_0xbf973f(0x160)];[_0xbf973f(0x105)];[_0xbf973f(0x122)]=!0x1;[_0xbf973f(0x147)];constructor(_0x493e30,_0xecc855){const _0x2bc56e=_0xbf973f;super(_0x493e30),this[_0x2bc56e(0x147)]=_0xecc855[_0x2bc56e(0x147)],this[_0x2bc56e(0x189)]=this[_0x2bc56e(0x128)](),this[_0x2bc56e(0x114)]=this[_0x2bc56e(0x128)](),this[_0x2bc56e(0x120)]=this[_0x2bc56e(0x15a)](_0x493e30),this[_0x2bc56e(0x112)]=this[_0x2bc56e(0x17e)](_0x493e30),this[_0x2bc56e(0x121)]=this[_0x2bc56e(0x17c)](_0x493e30),this[_0x2bc56e(0x160)]=this[_0x2bc56e(0x155)](_0x493e30,_0xecc855);const _0x502d9e={'cssClasses':{'showMoreButton':yo,'showMoreBalloon':Do,'overflowContainer':Xo,'controlsButton':Fo}};this[_0x2bc56e(0x104)]=new _0x836b1d(_0x493e30,this[_0x2bc56e(0x189)],_0x502d9e,this[_0x2bc56e(0x147)],this),this[_0x2bc56e(0x105)]={'buttonView':this[_0x2bc56e(0x120)],'balloonView':this[_0x2bc56e(0x112)],'hideMethod':this[_0x2bc56e(0x13c)][_0x2bc56e(0x196)](this),'showMethod':this[_0x2bc56e(0x177)][_0x2bc56e(0x196)](this)},this[_0x2bc56e(0x175)](),this[_0x2bc56e(0x173)]();}[_0xbf973f(0x150)](){const _0x48b7db=_0xbf973f;super[_0x48b7db(0x150)](),this[_0x48b7db(0x134)](),this[_0x48b7db(0x104)][_0x48b7db(0x18c)](this[_0x48b7db(0x117)]),this[_0x48b7db(0x104)][_0x48b7db(0x14f)]();}[_0xbf973f(0x135)](){const _0x53cce9=_0xbf973f;super[_0x53cce9(0x135)](),this[_0x53cce9(0x104)][_0x53cce9(0x135)](),this[_0x53cce9(0x160)][_0x53cce9(0x135)]();}[_0xbf973f(0x16d)](_0x45b776,_0x29532a){const _0x28a800=_0xbf973f,_0x3ea906=this[_0x28a800(0x140)](_0x45b776,_0x28a800(0x153),!0x0,_0x29532a);this[_0x28a800(0x180)](_0x3ea906,this[_0x28a800(0x189)]),this[_0x28a800(0x104)][_0x28a800(0x14f)]();}[_0xbf973f(0x167)](_0x48b0c7){const _0x1f609d=_0xbf973f;this[_0x1f609d(0x127)](_0x48b0c7,this[_0x1f609d(0x189)]),this[_0x1f609d(0x127)](_0x48b0c7,this[_0x1f609d(0x104)][_0x1f609d(0x15f)]),this[_0x1f609d(0x104)][_0x1f609d(0x14f)]();}[_0xbf973f(0x16a)](_0x569f45,_0x293e73){const _0x52d640=_0xbf973f;let _0x4df9e5=this[_0x52d640(0x189)][_0x52d640(0x192)](_0x38df82=>_0x38df82['id']===_0x569f45);_0x4df9e5||(_0x4df9e5=this[_0x52d640(0x104)][_0x52d640(0x15f)][_0x52d640(0x192)](_0x448167=>_0x448167['id']===_0x569f45)),_0x4df9e5&&(_0x4df9e5[_0x52d640(0x181)]=_0x293e73);}[_0xbf973f(0x188)](_0x1baffc){const _0x568165=_0xbf973f;this[_0x568165(0x114)][_0x568165(0x14c)]();for(const _0x2d0b05 of _0x1baffc){const _0x35991d=this[_0x568165(0x140)](_0x2d0b05,_0x568165(0x11f),!0x1,!0x1);this[_0x568165(0x180)](_0x35991d,this[_0x568165(0x114)]);}}[_0xbf973f(0x132)](){const _0x5de1ba=_0xbf973f;this[_0x5de1ba(0x189)][_0x5de1ba(0x14c)](),this[_0x5de1ba(0x104)][_0x5de1ba(0x14c)]();}[_0xbf973f(0x101)](){const _0x17e558=_0xbf973f;this[_0x17e558(0x114)][_0x17e558(0x14c)]();}[_0xbf973f(0x18d)](_0xe0665c,_0x41d971,_0x543fcd){const _0x2b5878=_0xbf973f;this[_0x2b5878(0x160)][_0x2b5878(0x18d)](_0xe0665c,_0x41d971,_0x543fcd);}[_0xbf973f(0x13c)](){const _0x426333=_0xbf973f;this[_0x426333(0x151)](!0x1);}[_0xbf973f(0x177)](){const _0x212acd=_0xbf973f;this[_0x212acd(0x151)](!0x0);}[_0xbf973f(0x12b)](){const _0x379105=_0xbf973f;this[_0x379105(0x121)][_0x379105(0x115)](),this[_0x379105(0x120)][_0x379105(0x143)]=!0x1,this[_0x379105(0x119)]&&this[_0x379105(0x119)][_0x379105(0x14c)]();}[_0xbf973f(0x124)](){const _0x14a800=_0xbf973f;this[_0x14a800(0x121)][_0x14a800(0x11d)](),this[_0x14a800(0x120)][_0x14a800(0x143)]=!0x0;}[_0xbf973f(0x185)]({source:_0x46dfc2,withBackButton:_0x214066}){const _0x1f9f4e=_0xbf973f;this[_0x1f9f4e(0x160)][_0x1f9f4e(0x138)]({'source':_0x46dfc2,'withBackButton':_0x214066}),this[_0x1f9f4e(0x120)][_0x1f9f4e(0x143)]=!0x0;}[_0xbf973f(0x17b)](_0x2848c0,_0x17bac6,_0x22a863,_0x21a7dd){const _0x445dee=_0xbf973f;this[_0x445dee(0x160)][_0x445dee(0x17b)](_0x2848c0,_0x22a863,_0x21a7dd);}[_0xbf973f(0x142)](_0x12d800){const _0x32ce1e=_0xbf973f;this[_0x32ce1e(0x160)][_0x32ce1e(0x142)](_0x12d800),this[_0x32ce1e(0x120)][_0x32ce1e(0x143)]=!0x1;}[_0xbf973f(0x116)](_0x6c8f41){const _0x27dae5=_0xbf973f;this[_0x27dae5(0x183)](this[_0x27dae5(0x112)],this[_0x27dae5(0x10e)],_0x6c8f41),this[_0x27dae5(0x159)](_0x6c8f41);}[_0xbf973f(0x159)](_0x2fbab0){const _0x50aa0e=_0xbf973f,_0x1daa00=!_0x2fbab0[_0x50aa0e(0x129)][_0x50aa0e(0x137)]&&_0x2fbab0[_0x50aa0e(0x129)][_0x50aa0e(0x10d)],_0x3af18c=_0x2fbab0[_0x50aa0e(0x18b)][_0x50aa0e(0x10d)],_0x288843=_0x2fbab0[_0x50aa0e(0x14e)][_0x50aa0e(0x10d)],_0x3d3d6d=_0x2fbab0[_0x50aa0e(0x166)][_0x50aa0e(0x179)]>0x0,_0x48604d=_0x2fbab0[_0x50aa0e(0x158)]&&_0x2fbab0[_0x50aa0e(0x158)][_0x50aa0e(0x179)]>0x0;this[_0x50aa0e(0x120)][_0x50aa0e(0x108)]=_0x1daa00||_0x3af18c||_0x288843||_0x3d3d6d||_0x48604d;}[_0xbf973f(0x175)](){const _0x48155e=_0xbf973f;this[_0x48155e(0x13f)]({'tag':_0x48155e(0x12e),'attributes':{'class':[Oo,_0x48155e(0x12c)]},'children':[{'tag':_0x48155e(0x12e),'attributes':{'class':Uo},'children':this[_0x48155e(0x189)]}]});}[_0xbf973f(0x173)](){const _0x33ee0e=_0xbf973f;this[_0x33ee0e(0x120)]['on'](_0x33ee0e(0x161),()=>{const _0x3a9e38=_0x33ee0e;this[_0x3a9e38(0x146)]();});}[_0xbf973f(0x15a)](_0x4980bf){const _0x3f1aa0=_0xbf973f,_0x8d16e4=new _0x313448(_0x4980bf);return _0x8d16e4[_0x3f1aa0(0x194)]({'label':_0x2f7e19(_0x4980bf,_0x3f1aa0(0x111)),'class':Fo+'\x20'+No,'icon':_0xf96175,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x8d16e4;}[_0xbf973f(0x17e)](_0x5db828){const _0x28c95e=_0xbf973f;return this[_0x28c95e(0x136)](_0x5db828,Lo);}[_0xbf973f(0x17c)](_0x4959d7){const _0x1edfcf=_0xbf973f,_0xc679c6=this[_0x1edfcf(0x136)](_0x4959d7,Mo);return this[_0x1edfcf(0x10a)](_0xc679c6,_0x4959d7),_0xc679c6;}[_0xbf973f(0x155)](_0x1f84a4,_0x5f4c79){const _0x46fbe4=_0xbf973f,_0x3b4781={'searchInputVisibleFrom':_0x5f4c79[_0x46fbe4(0x145)],'onBackToContext':()=>{const _0x4e18da=_0x46fbe4;this[_0x4e18da(0x177)](),this[_0x4e18da(0x112)][_0x4e18da(0x172)]({'target':this[_0x4e18da(0x120)][_0x4e18da(0x117)],'limiter':this[_0x4e18da(0x103)](),'positions':Wo});},'onResourceSelected':(_0x6840a6,_0x5d5ddf)=>{const _0x3e91a1=_0x46fbe4;this[_0x3e91a1(0x11c)](_0x3e91a1(0x187),{'source':_0x6840a6,'resource':_0x5d5ddf});},'onLoadSourceResources':_0x1f8a44=>{const _0x5eaa15=_0x46fbe4;this[_0x5eaa15(0x11c)](_0x5eaa15(0x190),_0x1f8a44);},'onBalloonClosed':()=>{const _0x16214b=_0x46fbe4;this[_0x16214b(0x120)][_0x16214b(0x143)]=!0x1;},'getLimiterElement':()=>this[_0x46fbe4(0x103)](),'getTargetElement':()=>this[_0x46fbe4(0x120)][_0x46fbe4(0x117)]};return new _0x5397b1(_0x1f84a4,_0x5f4c79[_0x46fbe4(0x147)],_0x3b4781);}[_0xbf973f(0x103)](){const _0x392270=_0xbf973f;return this[_0x392270(0x117)]?.[_0x392270(0x12a)]('.'+$o)||document[_0x392270(0x16c)];}[_0xbf973f(0x136)](_0x1fa191,_0x3377cc){const _0x459d4d=_0xbf973f,_0x37e979=new _0xd6fb1(_0x1fa191);return _0x37e979[_0x459d4d(0x191)]({'attributes':{'class':_0x3377cc}}),this[_0x459d4d(0x147)][_0x459d4d(0x11e)](_0x37e979),_0x37e979;}[_0xbf973f(0x183)](_0x24924a,_0x1b8ab4,_0x458011){const _0x49a9ec=_0xbf973f;if(_0x24924a[_0x49a9ec(0x10f)][_0x49a9ec(0x14c)](),!_0x458011[_0x49a9ec(0x129)][_0x49a9ec(0x137)]&&_0x458011[_0x49a9ec(0x129)][_0x49a9ec(0x10d)]){const _0x52d1a4=this[_0x49a9ec(0x171)](_0x1b8ab4,{'label':_0x2f7e19(_0x1b8ab4,_0x49a9ec(0x15b)),'icon':_0x130b22});_0x52d1a4['on'](_0x49a9ec(0x161),()=>{const _0x247faa=_0x49a9ec;this[_0x247faa(0x11c)](_0x247faa(0x162)),this[_0x247faa(0x13c)]();}),_0x24924a[_0x49a9ec(0x10f)][_0x49a9ec(0x11e)](_0x52d1a4);}if(_0x458011[_0x49a9ec(0x18b)][_0x49a9ec(0x10d)]){const _0x3f9517=this[_0x49a9ec(0x171)](_0x1b8ab4,{'label':_0x2f7e19(_0x1b8ab4,_0x49a9ec(0x18e)),'icon':_0x111e77});_0x3f9517['on'](_0x49a9ec(0x161),()=>{const _0x8ab772=_0x49a9ec;this[_0x8ab772(0x13c)](),this[_0x8ab772(0x124)](),this[_0x8ab772(0x121)][_0x8ab772(0x172)]({'target':this[_0x8ab772(0x120)][_0x8ab772(0x117)],'limiter':this[_0x8ab772(0x103)](),'positions':Wo}),this[_0x8ab772(0x119)][_0x8ab772(0x113)]();}),_0x24924a[_0x49a9ec(0x10f)][_0x49a9ec(0x11e)](_0x3f9517);}if(_0x458011[_0x49a9ec(0x14e)][_0x49a9ec(0x10d)]){const _0x21e0b0=new _0x56b083(_0x1b8ab4);_0x21e0b0[_0x49a9ec(0x194)]({'label':_0x2f7e19(_0x1b8ab4,_0x49a9ec(0x131)),'icon':_0x3add85,'withText':!0x0,'tooltip':!0x0,'class':Ho,'allowMultipleFiles':!0x0}),_0x21e0b0['on'](_0x49a9ec(0x161),()=>{const _0xe6244c=_0x49a9ec;this[_0xe6244c(0x13c)]();}),_0x21e0b0['on'](_0x49a9ec(0x11a),(_0x38b87d,_0x4c60d2)=>{const _0x58c7cb=_0x49a9ec;this[_0x58c7cb(0x11c)](_0x58c7cb(0x163),_0x4c60d2);}),_0x21e0b0[_0x49a9ec(0x139)]=!0x0,_0x24924a[_0x49a9ec(0x10f)][_0x49a9ec(0x11e)](_0x21e0b0);}for(const _0x57c0a9 of _0x458011[_0x49a9ec(0x166)]){const _0x341f13=this[_0x49a9ec(0x171)](_0x1b8ab4,{'label':_0x57c0a9[_0x49a9ec(0x10b)],'icon':_0x57c0a9[_0x49a9ec(0x12f)]||_0x23bc0b,'type':_0x49a9ec(0x13a)});_0x24924a[_0x49a9ec(0x10f)][_0x49a9ec(0x11e)](_0x341f13),_0x341f13['on'](_0x49a9ec(0x161),()=>{const _0x2f3fe2=_0x49a9ec;this[_0x2f3fe2(0x13c)](),this[_0x2f3fe2(0x185)]({'source':_0x57c0a9,'withBackButton':!this[_0x2f3fe2(0x122)]});});}for(const _0x2785f4 of _0x458011[_0x49a9ec(0x158)]||[]){const _0x17d812=this[_0x49a9ec(0x171)](_0x1b8ab4,{'label':_0x2785f4[_0x49a9ec(0x10b)],'icon':_0x2785f4[_0x49a9ec(0x12f)]||_0x23bc0b,'type':_0x49a9ec(0x133)});_0x24924a[_0x49a9ec(0x10f)][_0x49a9ec(0x11e)](_0x17d812),_0x17d812['on'](_0x49a9ec(0x161),()=>{const _0x35c1f5=_0x49a9ec;this[_0x35c1f5(0x13c)](),this[_0x35c1f5(0x11c)](_0x35c1f5(0x193),_0x2785f4);});}this[_0x49a9ec(0x122)]=0x1===_0x24924a[_0x49a9ec(0x10f)][_0x49a9ec(0x179)],this[_0x49a9ec(0x119)][_0x49a9ec(0x12d)]=!this[_0x49a9ec(0x122)];}[_0xbf973f(0x10a)](_0x26afa6,_0x21ae1b){const _0xccaf84=_0xbf973f;this[_0xccaf84(0x119)]=new _0x18e307(_0x21ae1b),this[_0xccaf84(0x119)]['on'](_0xccaf84(0x168),(_0x481cfd,_0x872378)=>{const _0x46c3ec=_0xccaf84;this[_0x46c3ec(0x174)](_0x872378);}),this[_0xccaf84(0x119)]['on'](_0xccaf84(0x186),()=>{const _0x170a41=_0xccaf84;this[_0x170a41(0x12b)](),this[_0x170a41(0x122)]||(this[_0x170a41(0x177)](),this[_0x170a41(0x112)][_0x170a41(0x172)]({'target':this[_0x170a41(0x120)][_0x170a41(0x117)],'limiter':this[_0x170a41(0x103)](),'positions':Wo}));}),this[_0xccaf84(0x119)]['on'](_0xccaf84(0x13e),()=>{const _0x46ddc3=_0xccaf84;this[_0x46ddc3(0x121)][_0x46ddc3(0x149)]&&this[_0x46ddc3(0x121)][_0x46ddc3(0x172)]({'target':this[_0x46ddc3(0x120)][_0x46ddc3(0x117)],'limiter':this[_0x46ddc3(0x103)](),'positions':Wo});}),_0x26afa6[_0xccaf84(0x10f)][_0xccaf84(0x11e)](this[_0xccaf84(0x119)]);}[_0xbf973f(0x171)](_0x1674e6,_0x3d3d5b){const _0x13af9b=_0xbf973f,_0x49107c=_0x13af9b(0x13a)===_0x3d3d5b[_0x13af9b(0x148)]?new SourcesBalloonButtonView(_0x1674e6):new _0x313448(_0x1674e6);return _0x49107c[_0x13af9b(0x194)]({'label':_0x3d3d5b[_0x13af9b(0x10b)],'icon':_0x3d3d5b[_0x13af9b(0x12f)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Ho}),_0x49107c;}[_0xbf973f(0x134)](){const _0x3972ba=_0xbf973f;this[_0x3972ba(0x14d)](),this[_0x3972ba(0x13b)]();}[_0xbf973f(0x13b)](){const _0x51a6b0=_0xbf973f;_0x5eafb9({'emitter':this[_0x51a6b0(0x121)],'contextElements':[this[_0x51a6b0(0x121)][_0x51a6b0(0x117)]],'callback':()=>{const _0x49843b=_0x51a6b0;this[_0x49843b(0x12b)]();},'activator':()=>this[_0x51a6b0(0x121)][_0x51a6b0(0x149)]});}[_0xbf973f(0x151)](_0x43a299){const _0xaeaa06=_0xbf973f,_0x53e495=this[_0xaeaa06(0x105)];_0x53e495[_0xaeaa06(0x169)][_0xaeaa06(0x143)]=_0x43a299,_0x43a299?_0x53e495[_0xaeaa06(0x123)][_0xaeaa06(0x11d)]():_0x53e495[_0xaeaa06(0x123)][_0xaeaa06(0x115)]();}[_0xbf973f(0x14d)](){const _0x555fa9=_0xbf973f,{balloonView:_0x22fd38,buttonView:_0x534de2,hideMethod:_0xf350ea}=this[_0x555fa9(0x105)];_0x5eafb9({'emitter':_0x22fd38,'contextElements':[_0x22fd38[_0x555fa9(0x117)],_0x534de2[_0x555fa9(0x117)]],'callback':()=>{_0xf350ea();},'activator':()=>_0x534de2[_0x555fa9(0x143)]&&!this[_0x555fa9(0x121)][_0x555fa9(0x149)]&&!this[_0x555fa9(0x160)][_0x555fa9(0x18a)]()});}[_0xbf973f(0x140)](_0x8da7f3,_0x2a5639,_0xa4cbf5=!0x1,_0x4fc944=!0x1){const _0x31be8c=_0xbf973f,_0x542e74=_0x31be8c(0x11f)===_0x2a5639||!0x0===_0x8da7f3[_0x31be8c(0x176)],_0x30b9f9=new _0x5ef325(this[_0x31be8c(0x10e)],_0x8da7f3,_0x542e74,_0xa4cbf5,_0x4fc944);return _0x542e74||_0x30b9f9['on'](_0x31be8c(0x152),()=>{const _0x5b0707=_0x31be8c;this[_0x5b0707(0x11c)](_0x5b0707(0x167),_0x30b9f9['id']);}),_0x30b9f9;}[_0xbf973f(0x180)](_0x396ffb,_0x15da96){const _0x4cee97=_0xbf973f;_0x15da96[_0x4cee97(0x11e)](_0x396ffb,0x0);}[_0xbf973f(0x127)](_0x99a9b1,_0x3530fc){const _0x273707=_0xbf973f,_0x59b209=_0x3530fc[_0x273707(0x192)](_0x4ecbbf=>_0x4ecbbf['id']===_0x99a9b1);_0x59b209&&_0x3530fc[_0x273707(0x17a)](_0x59b209);}[_0xbf973f(0x146)](){const _0xcf5c17=_0xbf973f;this[_0xcf5c17(0x120)][_0xcf5c17(0x143)]?this[_0xcf5c17(0x13c)]():(this[_0xcf5c17(0x177)](),this[_0xcf5c17(0x112)][_0xcf5c17(0x172)]({'target':this[_0xcf5c17(0x120)][_0xcf5c17(0x117)],'limiter':this[_0xcf5c17(0x103)](),'positions':Wo}),this[_0xcf5c17(0x122)]&&this[_0xcf5c17(0x112)][_0xcf5c17(0x10f)][_0xcf5c17(0x13d)](0x0)?.[_0xcf5c17(0x11c)](_0xcf5c17(0x161)));}[_0xbf973f(0x174)](_0x46ed26){const _0x38032c=_0xbf973f;this[_0x38032c(0x119)][_0x38032c(0x14c)](),this[_0x38032c(0x12b)](),this[_0x38032c(0x11c)](_0x38032c(0x106),_0x46ed26);}}export class SourcesBalloonButtonView extends _0x313448{[_0xbf973f(0x184)];constructor(_0x595315){const _0x136356=_0xbf973f;super(_0x595315),this[_0x136356(0x194)]({'withText':!0x0,'role':_0x136356(0x141)}),this[_0x136356(0x184)]=this[_0x136356(0x170)](),this[_0x136356(0x191)]({'attributes':{'class':[jo]}});}[_0xbf973f(0x150)](){const _0x343d19=_0xbf973f;super[_0x343d19(0x150)](),this[_0x343d19(0x107)][_0x343d19(0x11e)](this[_0x343d19(0x184)]);}[_0xbf973f(0x170)](){const _0x46f164=_0xbf973f,_0x333ab2=new _0xf0094a();return _0x333ab2[_0x46f164(0x10f)]=_0x45d14b,_0x333ab2[_0x46f164(0x191)]({'attributes':{'class':jo+_0x46f164(0x154)}}),_0x333ab2;}}function _0x1162(){const _0x2dd2fd=['ck-ai-chat-context-controls__add-context-balloon-panel','bind','clearConversationContextItems','northArrowSouthWest','_getLimiterElement','_overflowManager','_addContextBalloonConfig','addUrlToContext','children','isEnabled','ck-ai-chat-context-controls','_addUrlContent','label','northArrowSouthEast','enabled','locale','content','ck-ai-chat-context-controls__url-balloon-panel','AI_CHAT_CONTEXT_ADD_CONTEXT','_addContextBalloonPanelView','focus','_conversationContextsChips','hide','setAddContextOptions','element','ck-ai-chat-context-controls__pending-contexts','_urlInputView','done','ck-ai-chat-context-chips-wrapper-balloon','fire','show','add','conversation','addContextButtonView','_urlBalloonPanelView','_hasExactlyOneSource','balloonView','showUrlBalloonPanel','ck-ai-chat-controls-button','261150dUsZlf','_removeContextFromCollection','createCollection','document','closest','hideUrlBalloonPanel','ck-reset_all-excluded','withBackButton','div','icon','southArrowNorthEast','AI_CHAT_CONTEXT_FILE_LABEL','clearCurrentContextItems','customItem','_setupAllBalloonClickOutsideHandlers','destroy','_createBaseBalloonPanel','isHidden','showSourceResourcesBalloon','tooltip','source','_setupUrlBalloonClickOutsideHandler','hideAddContextBalloonPanel','get','refreshBalloon','setTemplate','_createContextButton','menuitem','closeSourceResourceBalloon','isOn','defaultPositions','searchInputVisibleFrom','_handleAddContextButtonClick','bodyCollection','type','isVisible','ck-ai-chat-context-controls__add-context-button','ck-ai-chat-context-controls__show-more-balloon-panel','clear','_setupAddContextBalloonClickOutsideHandler','files','reorganizeChips','render','_toggleAddContextBalloon','removeContextItemChip','current','__arrow','_createResourcesBalloonView','109528zmnjUv','ck-ai-chat-context-controls__balloon-button-source','customItems','_setAddContextButtonEnabled','_createAddContextButtonView','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','4CXJYUt','southArrowNorth','northArrowSouth','overflowChips','_resourcesBalloonView','execute','addDocumentToContext','addFileToContext','18qbdICq','840678vQCbiD','sources','removeContextItem','submitUrl','buttonView','setContextItemLoading','ck-ai-chat-controls_context_show-more-button','body','addContextItem','ck-ai-chat','861657YFVVFi','_createArrowView','_createBalloonButton','pin','_bindEventHandlers','_handleUrlSubmit','_setupTemplate','isReadOnly','showAddContextBalloonPanel','ck-ai-chat-context-controls__balloon-button','length','remove','populateSourceResourceBalloon','_createUrlBalloonPanelView','1054728LJjsRs','_createAddContextBalloonPanelView','southArrowNorthWest','_addContextToCollection','isLoading','353570bxjrXI','_setBalloonPanelContent','arrowView','_showSourceResourcesBalloon','cancel','addResourceToContext','setConversationContext','_currentContextsChips','isAnyResourceBalloonVisible','urls','setContainerElement','updateResourceState','AI_CHAT_CONTEXT_URL_LABEL','73751FRBRnC','loadSourceResources','extendTemplate','find','executeCustomItemCallback','set'];_0x1162=function(){return _0x2dd2fd;};return _0x1162();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x41f9bf=_0x9a19;(function(_0x29d70c,_0x20ab8f){const _0x1a05ae=_0x9a19,_0x243895=_0x29d70c();while(!![]){try{const _0xaa2c59=-parseInt(_0x1a05ae(0xf3))/0x1*(parseInt(_0x1a05ae(0xf0))/0x2)+parseInt(_0x1a05ae(0xde))/0x3*(-parseInt(_0x1a05ae(0xf4))/0x4)+parseInt(_0x1a05ae(0xf9))/0x5*(-parseInt(_0x1a05ae(0xf2))/0x6)+parseInt(_0x1a05ae(0xea))/0x7*(parseInt(_0x1a05ae(0xdc))/0x8)+parseInt(_0x1a05ae(0xee))/0x9*(-parseInt(_0x1a05ae(0xe2))/0xa)+parseInt(_0x1a05ae(0xf5))/0xb*(-parseInt(_0x1a05ae(0xe4))/0xc)+parseInt(_0x1a05ae(0xe5))/0xd;if(_0xaa2c59===_0x20ab8f)break;else _0x243895['push'](_0x243895['shift']());}catch(_0x24430c){_0x243895['push'](_0x243895['shift']());}}}(_0x1b72,0xdb558));import{ButtonView as _0x5e0bf5,View as _0x4a1af4}from'ckeditor5/src/ui.js';import{IconStop as _0x574dd6}from'ckeditor5/src/icons.js';function _0x9a19(_0x2654cd,_0x5c0a02){const _0x1b7252=_0x1b72();return _0x9a19=function(_0x9a19a1,_0x4dd395){_0x9a19a1=_0x9a19a1-0xdc;let _0x2dd413=_0x1b7252[_0x9a19a1];return _0x2dd413;},_0x9a19(_0x2654cd,_0x5c0a02);}import{getTranslation as _0x139e3f}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x4a1af4{[_0x41f9bf(0xf8)];[_0x41f9bf(0xec)];constructor(_0x3d8dcf){const _0x3f121e=_0x41f9bf;super(_0x3d8dcf),this[_0x3f121e(0xf8)]=this[_0x3f121e(0xfb)](),this[_0x3f121e(0xec)]=this[_0x3f121e(0xdf)](),this[_0x3f121e(0xe9)]({'tag':_0x3f121e(0xf6),'attributes':{'class':['ck',_0x3f121e(0xed),_0x3f121e(0xf7)]},'children':[this[_0x3f121e(0xec)],this[_0x3f121e(0xf8)]]});}[_0x41f9bf(0xfb)](){const _0x519fcd=_0x41f9bf,_0x13f63d=new _0x5e0bf5(this[_0x519fcd(0xe1)]);return _0x13f63d[_0x519fcd(0xe3)]({'label':_0x139e3f(this[_0x519fcd(0xe1)],_0x519fcd(0xf1)),'withText':!0x0,'class':_0x519fcd(0xfa),'icon':_0x574dd6}),_0x13f63d['on'](_0x519fcd(0xef),()=>{const _0x2de342=_0x519fcd;this[_0x2de342(0xeb)](_0x2de342(0xe8));}),_0x13f63d;}[_0x41f9bf(0xdf)](){const _0x38d8e3=_0x41f9bf,_0x4a6662=new _0x4a1af4(this[_0x38d8e3(0xe1)]);return _0x4a6662[_0x38d8e3(0xe9)]({'tag':_0x38d8e3(0xf6),'attributes':{'class':[_0x38d8e3(0xe0)]},'children':[{'tag':_0x38d8e3(0xf6),'attributes':{'class':[_0x38d8e3(0xe6)]},'children':[{'tag':_0x38d8e3(0xf6),'attributes':{'class':[_0x38d8e3(0xe7)]}},{'tag':_0x38d8e3(0xf6),'attributes':{'class':[_0x38d8e3(0xe7)]}},{'tag':_0x38d8e3(0xf6),'attributes':{'class':[_0x38d8e3(0xe7)]}}]},{'text':_0x139e3f(this[_0x38d8e3(0xe1)],_0x38d8e3(0xdd))}]}),_0x4a6662;}}function _0x1b72(){const _0x33ce14=['15LojZMy','ck-ai-button-secondary\x20ck-ai-button-stop-generating','_createCancelButtonView','192lHNZFp','AI_CHAT_IS_WRITING','6123SIIqvR','_createLoaderView','ck-ai-chat-controls-loader','locale','801700Tnvvxj','set','11390676hzJVZi','50153376wQjLns','ck-ai-chat-controls-loader-icon','ck-ai-chat-controls-loader-icon-dot','abortPromptStream','setTemplate','306376XHMZLi','fire','_loaderView','ck-ai-chat-controls-loader-wrapper','198zVNcCn','execute','39486rPsrGR','AI_CHAT_STOP_GENERATING','636246hHQlck','44DSGCNY','216HZgsiA','11vKgyhh','div','ck-reset_all','_cancelButtonView'];_0x1b72=function(){return _0x33ce14;};return _0x1b72();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x1c2e(_0x210067,_0x24bb87){const _0x435066=_0x4350();return _0x1c2e=function(_0x1c2ede,_0x22a048){_0x1c2ede=_0x1c2ede-0x68;let _0x46ce39=_0x435066[_0x1c2ede];return _0x46ce39;},_0x1c2e(_0x210067,_0x24bb87);}const _0xb650=_0x1c2e;(function(_0x245efd,_0x2c65ba){const _0x579c7e=_0x1c2e,_0x9969eb=_0x245efd();while(!![]){try{const _0x4faa4f=parseInt(_0x579c7e(0x86))/0x1*(parseInt(_0x579c7e(0x7e))/0x2)+parseInt(_0x579c7e(0xb8))/0x3+-parseInt(_0x579c7e(0xac))/0x4*(parseInt(_0x579c7e(0xa1))/0x5)+parseInt(_0x579c7e(0x71))/0x6+parseInt(_0x579c7e(0xbe))/0x7+parseInt(_0x579c7e(0x6c))/0x8+parseInt(_0x579c7e(0x85))/0x9*(-parseInt(_0x579c7e(0x92))/0xa);if(_0x4faa4f===_0x2c65ba)break;else _0x9969eb['push'](_0x9969eb['shift']());}catch(_0x119307){_0x9969eb['push'](_0x9969eb['shift']());}}}(_0x4350,0xed89f));function _0x4350(){const _0x1dc54c=['_reasoningButton','ck-button__label','_getCapabilityParts','_modelNameView','335016RXXivs','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','addMany','name','description','10155264UBGkhq','bindTemplate','ck-hidden','execute','setTemplate','buttonView','bind','source','content','AI_CHAT_SEARCH_WEB','ck-ai-chat-controls-button--commands','length','hidden','70pgtTgp','toggleWebSearch','webSearch','model','ck-ai-chat__prompt-capabilities','createCollection','tooltip','1983717mQurRn','39233Zuwtsd','_commandsButton','setModelList','setWebSearch','capabilities','log','ck-ai-chat-controls-button','locale','add','AI_CHAT_CAPABILITIES_YES','ck-ai-chat-controls__model-selection__item-name','_modelSelectionDropdownItems','130rPbRNJ','_createModelSelectionDropdown','_webSearchButton','activeModelId','_createCommandsButton','listenTo','isOn','extendTemplate','selectModel','modelDisplayMode','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','ck-ai-chat-controls__model-selection__item-description','text','modelSelectorEnabled','set','7995725dWIxcW','AI_CHAT_ENABLE_REASONING','Commands\x20are\x20not\x20implemented\x20yet.','label','style','webSearchActive','disableModelSelector','AI_CHAT_COMMANDS','toggleReasoning','_modelSelectionDropdown','ck-ai-button-tertiary','4vDkqWd','reasoningActive','AI_CHAT_REASONING','selector','isVisible','span','reasoning','_createReasoningButton','_createModelNameView','AI_CHAT_DISABLE_REASONING','div','AI_CHAT_DISABLE_WEB_SEARCH','2671116jxeCgq','setModel','ck-ai-chat-controls__model-selection__item-capabilities','button','enableModelSelector','menuitemradio','10076675hyPZMT','ck-ai-chat-controls__model-selection','isEnabled','enabled','fire','_createWebSearchButton','AI_CHAT_ENABLE_WEB_SEARCH','setReasoning','AI_CHAT_CAPABILITIES_NO','activeModelName','clear','ck-ai-chat-controls__model-name'];_0x4350=function(){return _0x1dc54c;};return _0x4350();}import{Collection as _0x743e24}from'ckeditor5/src/utils.js';import{IconAI as _0x6c17fd,IconBulb as _0x49b1bc,IconWeb as _0x525b78}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x15eeca,ButtonLabelView as _0x15fae0,ButtonView as _0x12b567,createDropdown as _0x55bec8,IconView as _0x1bbe68,UIModel as _0x4ce1c0,View as _0x59e499}from'ckeditor5/src/ui.js';import{getTranslation as _0x5da615}from'../../../aicore/utils/common-translations.js';const Ko=_0xb650(0x82),Xo=_0xb650(0x8c),Qo=_0xb650(0x7b),Zo=_0xb650(0xab),tl=_0xb650(0xbf),el=_0xb650(0x90),il=_0xb650(0x9d),sl=_0xb650(0xba),ol='n';export class AIChatPromptCapabilitiesView extends _0x59e499{[_0xb650(0x94)];[_0xb650(0x68)];[_0xb650(0x87)];[_0xb650(0xaa)];[_0xb650(0x91)];[_0xb650(0x6b)];constructor(_0x325cf2){const _0x5e1dde=_0xb650;super(_0x325cf2),this[_0x5e1dde(0xa0)](_0x5e1dde(0xa6),!0x1),this[_0x5e1dde(0xa0)](_0x5e1dde(0xad),!0x1),this[_0x5e1dde(0xa0)](_0x5e1dde(0x9b),_0x5e1dde(0xaf)),this[_0x5e1dde(0xa0)](_0x5e1dde(0x9f),!0x0),this[_0x5e1dde(0xa0)](_0x5e1dde(0x95),null),this[_0x5e1dde(0xa0)](_0x5e1dde(0xc7),null),this[_0x5e1dde(0xaa)]=this[_0x5e1dde(0x93)](),this[_0x5e1dde(0x6b)]=this[_0x5e1dde(0xb4)](),this[_0x5e1dde(0x94)]=this[_0x5e1dde(0xc3)](),this[_0x5e1dde(0x68)]=this[_0x5e1dde(0xb3)](),this[_0x5e1dde(0x87)]=this[_0x5e1dde(0x96)](),this[_0x5e1dde(0xaa)][_0x5e1dde(0x76)][_0x5e1dde(0x77)](_0x5e1dde(0xb0))['to'](this,_0x5e1dde(0x9b),_0x4ffc44=>_0x5e1dde(0xaf)===_0x4ffc44),this[_0x5e1dde(0xaa)][_0x5e1dde(0x76)][_0x5e1dde(0x77)](_0x5e1dde(0x84))['to'](this,_0x5e1dde(0x9f),_0x338d00=>_0x338d00?this[_0x5e1dde(0xaa)][_0x5e1dde(0x76)][_0x5e1dde(0xa4)]:_0x5da615(this[_0x5e1dde(0x8d)],_0x5e1dde(0x6d))),this[_0x5e1dde(0xaa)][_0x5e1dde(0x77)](_0x5e1dde(0xc0))['to'](this,_0x5e1dde(0x9f),_0x443467=>_0x443467),this[_0x5e1dde(0x94)][_0x5e1dde(0x77)](_0x5e1dde(0x98))['to'](this,_0x5e1dde(0xa6),_0x45bac4=>_0x45bac4),this[_0x5e1dde(0x94)][_0x5e1dde(0x77)](_0x5e1dde(0x84))['to'](this,_0x5e1dde(0xa6),_0x1d2782=>_0x5da615(this[_0x5e1dde(0x8d)],_0x1d2782?_0x5e1dde(0xb7):_0x5e1dde(0xc4))),this[_0x5e1dde(0x68)][_0x5e1dde(0x77)](_0x5e1dde(0x98))['to'](this,_0x5e1dde(0xad),_0x39c237=>_0x39c237),this[_0x5e1dde(0x68)][_0x5e1dde(0x77)](_0x5e1dde(0x84))['to'](this,_0x5e1dde(0xad),_0x3bf18e=>_0x5da615(this[_0x5e1dde(0x8d)],_0x3bf18e?_0x5e1dde(0xb5):_0x5e1dde(0xa2))),this[_0x5e1dde(0x75)]({'tag':_0x5e1dde(0xb6),'attributes':{'class':[Ko]},'children':[this[_0x5e1dde(0xaa)],this[_0x5e1dde(0x6b)],this[_0x5e1dde(0x94)],this[_0x5e1dde(0x68)],this[_0x5e1dde(0x87)]]}),this[_0x5e1dde(0x91)]=new _0x743e24(),_0x15eeca(this[_0x5e1dde(0xaa)],this[_0x5e1dde(0x91)]);}[_0xb650(0x88)](_0x2ee787,_0x366224){const _0x2c62d2=_0xb650;if(_0x366224)this[_0x2c62d2(0xa0)](_0x2c62d2(0x9b),_0x2c62d2(0x7d));else{const _0x3ff91d=0x1===_0x2ee787[_0x2c62d2(0x7c)];this[_0x2c62d2(0xa0)](_0x2c62d2(0x9b),_0x3ff91d?_0x2c62d2(0x6f):_0x2c62d2(0xaf));}if(this[_0x2c62d2(0x91)][_0x2c62d2(0xc8)](),_0x2ee787?.[_0x2c62d2(0x7c)])for(const _0x20cca9 of _0x2ee787){const _0x440408=new _0x4ce1c0({'label':_0x20cca9[_0x2c62d2(0x6f)],'withText':!0x0,'role':_0x2c62d2(0xbd),'id':_0x20cca9['id'],'model':_0x20cca9});_0x440408[_0x2c62d2(0x77)](_0x2c62d2(0x98))['to'](this,_0x2c62d2(0x95),_0x2d5d83=>_0x2d5d83===_0x20cca9['id']),this[_0x2c62d2(0x91)][_0x2c62d2(0x8e)]({'type':_0x2c62d2(0xbb),'model':_0x440408,'labelView':new ko(this[_0x2c62d2(0x8d)],_0x20cca9)});}}[_0xb650(0x89)](_0x241f3a){const _0x3cddc1=_0xb650;this[_0x3cddc1(0xa0)](_0x3cddc1(0xa6),_0x241f3a);}[_0xb650(0xc5)](_0x22b11b){const _0x2b7670=_0xb650;this[_0x2b7670(0xa0)](_0x2b7670(0xad),_0x22b11b);}[_0xb650(0xb9)](_0x5ab588){const _0x377b4a=_0xb650;if(!_0x5ab588)return;this[_0x377b4a(0x95)]=_0x5ab588['id'],this[_0x377b4a(0xc7)]=_0x5ab588[_0x377b4a(0x6f)]||_0x5ab588['id'],this[_0x377b4a(0xaa)][_0x377b4a(0x76)][_0x377b4a(0xa0)](_0x377b4a(0xa4),_0x5ab588[_0x377b4a(0x6f)]),this[_0x377b4a(0xaa)][_0x377b4a(0x76)][_0x377b4a(0xa0)](_0x377b4a(0x84),_0x5ab588[_0x377b4a(0x6f)]);const _0x3dbed0=_0x5ab588[_0x377b4a(0x8a)][_0x377b4a(0x80)]?.[_0x377b4a(0xc1)]??!0x1;this[_0x377b4a(0xa0)](_0x377b4a(0xa6),!0x1),this[_0x377b4a(0x94)][_0x377b4a(0xa0)](_0x377b4a(0x98),!0x1),this[_0x377b4a(0x94)][_0x377b4a(0xa0)](_0x377b4a(0xc0),_0x3dbed0),this[_0x377b4a(0x94)][_0x377b4a(0xa0)](_0x377b4a(0xb0),_0x3dbed0);const _0x5801c8=_0x5ab588[_0x377b4a(0x8a)][_0x377b4a(0xb2)]?.[_0x377b4a(0xc1)]??!0x1;this[_0x377b4a(0xa0)](_0x377b4a(0xad),!0x1),this[_0x377b4a(0x68)][_0x377b4a(0xa0)](_0x377b4a(0x98),!0x1),this[_0x377b4a(0x68)][_0x377b4a(0xa0)](_0x377b4a(0xc0),_0x5801c8),this[_0x377b4a(0x68)][_0x377b4a(0xa0)](_0x377b4a(0xb0),_0x5801c8);}[_0xb650(0xbc)](){const _0x146bb4=_0xb650;this[_0x146bb4(0xa0)](_0x146bb4(0x9f),!0x0);}[_0xb650(0xa7)](_0x30c0ba){const _0x2493d4=_0xb650;this[_0x2493d4(0xa0)](_0x2493d4(0x9f),!0x1),_0x30c0ba&&this[_0x2493d4(0xa0)](_0x2493d4(0x9b),_0x2493d4(0x7d));}[_0xb650(0xc3)](){const _0xc79fe8=_0xb650,_0x7a9b61=new _0x12b567();return _0x7a9b61[_0xc79fe8(0xa0)]({'label':_0x5da615(this[_0xc79fe8(0x8d)],_0xc79fe8(0x7a)),'icon':_0x525b78,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x7a9b61['on'](_0xc79fe8(0x74),()=>{const _0x3488f0=_0xc79fe8;this[_0x3488f0(0xc2)](_0x3488f0(0x7f));}),_0x7a9b61;}[_0xb650(0xb3)](){const _0x367cfb=_0xb650,_0x2615a3=new _0x12b567();return _0x2615a3[_0x367cfb(0xa0)]({'label':_0x5da615(this[_0x367cfb(0x8d)],_0x367cfb(0xae)),'icon':_0x49b1bc,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x2615a3['on'](_0x367cfb(0x74),()=>{const _0x518853=_0x367cfb;this[_0x518853(0xc2)](_0x518853(0xa9));}),_0x2615a3;}[_0xb650(0x96)](){const _0x4b99c7=_0xb650,_0xa2834a=new _0x12b567();return _0xa2834a[_0x4b99c7(0xa0)]({'label':_0x5da615(this[_0x4b99c7(0x8d)],_0x4b99c7(0xa8)),'icon':_0x6c17fd,'withText':!0x0,'class':Xo,'isToggleable':!0x0,'tooltip':_0x5da615(this[_0x4b99c7(0x8d)],_0x4b99c7(0xa8)),'tooltipPosition':ol}),_0xa2834a[_0x4b99c7(0x99)]({'attributes':{'class':[Qo]}}),_0xa2834a['on'](_0x4b99c7(0x74),()=>{const _0x55f701=_0x4b99c7;console[_0x55f701(0x8b)](_0x55f701(0xa3)),alert(_0x55f701(0xa3));}),_0xa2834a;}[_0xb650(0x93)](){const _0x57b9b9=_0xb650,_0x2bb686=_0x55bec8(this[_0x57b9b9(0x8d)]);return _0x2bb686[_0x57b9b9(0xa0)]({'panelPosition':'ne','class':[tl]}),_0x2bb686[_0x57b9b9(0x76)][_0x57b9b9(0xa0)]({'label':_0x5da615(this[_0x57b9b9(0x8d)],_0x57b9b9(0x9c)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':ol,'class':Zo}),this[_0x57b9b9(0x97)](_0x2bb686,_0x57b9b9(0x74),_0x9fe0ab=>{const _0x74270d=_0x57b9b9;this[_0x74270d(0xc2)](_0x74270d(0x9a),_0x9fe0ab[_0x74270d(0x78)][_0x74270d(0x81)]);}),_0x2bb686;}[_0xb650(0xb4)](){const _0xb3732d=_0xb650,_0x5a1678=new _o(this[_0xb3732d(0x8d)]);return _0x5a1678[_0xb3732d(0x77)](_0xb3732d(0x9e))['to'](this,_0xb3732d(0xc7),_0x4ebe08=>_0x4ebe08??''),_0x5a1678[_0xb3732d(0x77)](_0xb3732d(0xb0))['to'](this,_0xb3732d(0x9b),_0x1d8121=>_0xb3732d(0x6f)===_0x1d8121),_0x5a1678;}}class ko extends _0x15fae0{constructor(_0x492ed6,_0x4f37b2){const _0x54b242=_0xb650;super();const _0x2ee01b=this[_0x54b242(0x72)],_0x5185d8=this[_0x54b242(0x83)]();this[_0x54b242(0x75)]({'tag':_0x54b242(0xb6),'attributes':{'class':['ck',_0x54b242(0x69)],'style':_0x2ee01b['to'](_0x54b242(0xa5)),'id':_0x2ee01b['to']('id')},'children':[{'tag':_0x54b242(0xb6),'attributes':{'class':[el]},'children':[{'text':_0x2ee01b['to'](_0x54b242(0x9e))}]},{'tag':_0x54b242(0xb6),'attributes':{'class':[il]},'children':[{'tag':_0x54b242(0xb1),'children':[{'text':_0x4f37b2[_0x54b242(0x70)]}]}]},{'tag':_0x54b242(0xb6),'attributes':{'class':[sl]},'children':_0x5185d8}]}),_0x5185d8[_0x54b242(0x6e)](this[_0x54b242(0x6a)](_0x492ed6,_0x525b78,_0x54b242(0x7a),_0x4f37b2[_0x54b242(0x8a)][_0x54b242(0x80)]?.[_0x54b242(0xc1)]??!0x1)),_0x5185d8[_0x54b242(0x6e)](this[_0x54b242(0x6a)](_0x492ed6,_0x49b1bc,_0x54b242(0xae),_0x4f37b2[_0x54b242(0x8a)][_0x54b242(0xb2)]?.[_0x54b242(0xc1)]??!0x1));}[_0xb650(0x6a)](_0x2ca241,_0x46161e,_0x48f304,_0x4d764a){const _0x22b916=_0xb650,_0xaae0ce=new _0x1bbe68();_0xaae0ce[_0x22b916(0x79)]=_0x46161e;const _0x40ce30=new _0x59e499(_0x2ca241);_0x40ce30[_0x22b916(0x75)]({'tag':_0x22b916(0xb1),'children':[{'text':_0x5da615(_0x2ca241,_0x48f304)+':\x20'}]});const _0x2cb0e0=new _0x59e499(_0x2ca241);return _0x2cb0e0[_0x22b916(0x75)]({'tag':_0x22b916(0xb1),'children':[{'text':_0x5da615(_0x2ca241,_0x4d764a?_0x22b916(0x8f):_0x22b916(0xc6))}]}),[_0xaae0ce,_0x40ce30,_0x2cb0e0];}}class _o extends _0x59e499{constructor(_0x344fc8){const _0x43fc40=_0xb650;super(_0x344fc8),this[_0x43fc40(0xa0)](_0x43fc40(0x9e),void 0x0),this[_0x43fc40(0xa0)](_0x43fc40(0xb0),!0x0);const _0x553f54=this[_0x43fc40(0x72)];this[_0x43fc40(0x75)]({'tag':_0x43fc40(0xb1),'attributes':{'class':['ck',_0x43fc40(0xc9),_0x553f54['if'](_0x43fc40(0xb0),_0x43fc40(0x73),_0x39bb39=>!_0x39bb39)]},'children':[{'text':_0x553f54['to'](_0x43fc40(0x9e))}]});}}
|
|
23
|
+
const _0x1fd439=_0x19a2;(function(_0x25aa01,_0x434cd2){const _0x38f0f7=_0x19a2,_0x580fba=_0x25aa01();while(!![]){try{const _0x4b7a12=parseInt(_0x38f0f7(0xa8))/0x1*(parseInt(_0x38f0f7(0xcf))/0x2)+parseInt(_0x38f0f7(0xd1))/0x3+parseInt(_0x38f0f7(0xeb))/0x4*(-parseInt(_0x38f0f7(0xc7))/0x5)+-parseInt(_0x38f0f7(0xc5))/0x6+parseInt(_0x38f0f7(0xac))/0x7+-parseInt(_0x38f0f7(0x95))/0x8+parseInt(_0x38f0f7(0xc3))/0x9;if(_0x4b7a12===_0x434cd2)break;else _0x580fba['push'](_0x580fba['shift']());}catch(_0x1f2f32){_0x580fba['push'](_0x580fba['shift']());}}}(_0x17d2,0x5534c));import{Collection as _0xb15c77}from'ckeditor5/src/utils.js';import{IconAI as _0x54ec4a,IconBulb as _0x1a02c7,IconWeb as _0x5764e0}from'@ckeditor/ckeditor5-icons';function _0x17d2(){const _0x3897be=['1341357QDUmpQ','Commands\x20are\x20not\x20implemented\x20yet.','AI_CHAT_CAPABILITIES_NO','clear','disableModelSelector','locale','selectModel','AI_CHAT_ENABLE_WEB_SEARCH','fire','bind','description','reasoningActive','add','bindTemplate','ck-ai-chat-controls__model-selection__item-name','enableModelSelector','_createCommandsButton','_createModelSelectionDropdown','setTemplate','ck-ai-chat-controls__model-selection__item-description','button','ck-ai-chat__prompt-capabilities','text','capabilities','extendTemplate','_webSearchButton','708qSPSPy','ck-ai-chat-controls__model-selection','_modelSelectionDropdownItems','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','toggleReasoning','log','webSearch','_createWebSearchButton','ck-hidden','_modelNameView','tooltip','2224112nTvqBD','label','modelSelectorEnabled','span','reasoning','_commandsButton','enabled','_reasoningButton','isOn','listenTo','setModel','setModelList','ck-ai-chat-controls__model-name','_getCapabilityParts','activeModelId','setReasoning','source','webSearchActive','setWebSearch','508903eKZskT','ck-button__label','_createReasoningButton','ck-ai-button-tertiary','555114rBDqbQ','AI_CHAT_SEARCH_WEB','createCollection','name','addMany','hidden','toggleWebSearch','buttonView','AI_CHAT_DISABLE_WEB_SEARCH','execute','modelDisplayMode','model','_modelSelectionDropdown','AI_CHAT_CAPABILITIES_YES','ck-ai-chat-controls-button--commands','isEnabled','content','length','AI_CHAT_REASONING','set','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','style','ck-ai-chat-controls-button','6598890EzKanz','ck-ai-chat-controls__model-selection__item-capabilities','3305202sCEJrO','activeModelName','16685agsAWq','isVisible','AI_CHAT_COMMANDS','selector','menuitemradio','div','AI_CHAT_ENABLE_REASONING','_createModelNameView','2HOSxsP','AI_CHAT_DISABLE_REASONING'];_0x17d2=function(){return _0x3897be;};return _0x17d2();}import{addListToDropdown as _0x3e316d,ButtonLabelView as _0x192d48,ButtonView as _0x4b7642,createDropdown as _0x1b6c66,IconView as _0x343b5b,UIModel as _0x32e5ec,View as _0x36431d}from'ckeditor5/src/ui.js';import{getTranslation as _0xc77509}from'../../../aicore/utils/common-translations.js';function _0x19a2(_0x2d1583,_0xff7d4a){const _0x17d25d=_0x17d2();return _0x19a2=function(_0x19a2a8,_0x4e21c6){_0x19a2a8=_0x19a2a8-0x92;let _0x2ff451=_0x17d25d[_0x19a2a8];return _0x2ff451;},_0x19a2(_0x2d1583,_0xff7d4a);}const zo=_0x1fd439(0xe6),Fo=_0x1fd439(0xc2),Jo=_0x1fd439(0xba),Ko=_0x1fd439(0xab),Qo=_0x1fd439(0xec),Zo=_0x1fd439(0xdf),tl=_0x1fd439(0xe4),el=_0x1fd439(0xc4),il='n';export class AIChatPromptCapabilitiesView extends _0x36431d{[_0x1fd439(0xea)];[_0x1fd439(0x9c)];[_0x1fd439(0x9a)];[_0x1fd439(0xb8)];[_0x1fd439(0xed)];[_0x1fd439(0x93)];constructor(_0x30abb6){const _0x2b76bd=_0x1fd439;super(_0x30abb6),this[_0x2b76bd(0xbf)](_0x2b76bd(0xa6),!0x1),this[_0x2b76bd(0xbf)](_0x2b76bd(0xdc),!0x1),this[_0x2b76bd(0xbf)](_0x2b76bd(0xb6),_0x2b76bd(0xca)),this[_0x2b76bd(0xbf)](_0x2b76bd(0x97),!0x0),this[_0x2b76bd(0xbf)](_0x2b76bd(0xa3),null),this[_0x2b76bd(0xbf)](_0x2b76bd(0xc6),null),this[_0x2b76bd(0xb8)]=this[_0x2b76bd(0xe2)](),this[_0x2b76bd(0x93)]=this[_0x2b76bd(0xce)](),this[_0x2b76bd(0xea)]=this[_0x2b76bd(0xf2)](),this[_0x2b76bd(0x9c)]=this[_0x2b76bd(0xaa)](),this[_0x2b76bd(0x9a)]=this[_0x2b76bd(0xe1)](),this[_0x2b76bd(0xb8)][_0x2b76bd(0xb3)][_0x2b76bd(0xda)](_0x2b76bd(0xc8))['to'](this,_0x2b76bd(0xb6),_0x5748a6=>_0x2b76bd(0xca)===_0x5748a6),this[_0x2b76bd(0xb8)][_0x2b76bd(0xb3)][_0x2b76bd(0xda)](_0x2b76bd(0x94))['to'](this,_0x2b76bd(0x97),_0x3676c7=>_0x3676c7?this[_0x2b76bd(0xb8)][_0x2b76bd(0xb3)][_0x2b76bd(0x96)]:_0xc77509(this[_0x2b76bd(0xd6)],_0x2b76bd(0xee))),this[_0x2b76bd(0xb8)][_0x2b76bd(0xda)](_0x2b76bd(0xbb))['to'](this,_0x2b76bd(0x97),_0x549cd8=>_0x549cd8),this[_0x2b76bd(0xea)][_0x2b76bd(0xda)](_0x2b76bd(0x9d))['to'](this,_0x2b76bd(0xa6),_0x2a1b3f=>_0x2a1b3f),this[_0x2b76bd(0xea)][_0x2b76bd(0xda)](_0x2b76bd(0x94))['to'](this,_0x2b76bd(0xa6),_0x355f76=>_0xc77509(this[_0x2b76bd(0xd6)],_0x355f76?_0x2b76bd(0xb4):_0x2b76bd(0xd8))),this[_0x2b76bd(0x9c)][_0x2b76bd(0xda)](_0x2b76bd(0x9d))['to'](this,_0x2b76bd(0xdc),_0x454013=>_0x454013),this[_0x2b76bd(0x9c)][_0x2b76bd(0xda)](_0x2b76bd(0x94))['to'](this,_0x2b76bd(0xdc),_0x2df07b=>_0xc77509(this[_0x2b76bd(0xd6)],_0x2df07b?_0x2b76bd(0xd0):_0x2b76bd(0xcd))),this[_0x2b76bd(0xe3)]({'tag':_0x2b76bd(0xcc),'attributes':{'class':[zo]},'children':[this[_0x2b76bd(0xb8)],this[_0x2b76bd(0x93)],this[_0x2b76bd(0xea)],this[_0x2b76bd(0x9c)],this[_0x2b76bd(0x9a)]]}),this[_0x2b76bd(0xed)]=new _0xb15c77(),_0x3e316d(this[_0x2b76bd(0xb8)],this[_0x2b76bd(0xed)]);}[_0x1fd439(0xa0)](_0x3d07c2,_0x3916d9){const _0x13338e=_0x1fd439;if(_0x3916d9)this[_0x13338e(0xbf)](_0x13338e(0xb6),_0x13338e(0xb1));else{const _0x46e2cd=0x1===_0x3d07c2[_0x13338e(0xbd)];this[_0x13338e(0xbf)](_0x13338e(0xb6),_0x46e2cd?_0x13338e(0xaf):_0x13338e(0xca));}if(this[_0x13338e(0xed)][_0x13338e(0xd4)](),_0x3d07c2?.[_0x13338e(0xbd)])for(const _0x5f4f01 of _0x3d07c2){const _0x3d2592=new _0x32e5ec({'label':_0x5f4f01[_0x13338e(0xaf)],'withText':!0x0,'role':_0x13338e(0xcb),'id':_0x5f4f01['id'],'model':_0x5f4f01});_0x3d2592[_0x13338e(0xda)](_0x13338e(0x9d))['to'](this,_0x13338e(0xa3),_0x40608a=>_0x40608a===_0x5f4f01['id']),this[_0x13338e(0xed)][_0x13338e(0xdd)]({'type':_0x13338e(0xe5),'model':_0x3d2592,'labelView':new po(this[_0x13338e(0xd6)],_0x5f4f01)});}}[_0x1fd439(0xa7)](_0x3734b3){const _0x57c5c2=_0x1fd439;this[_0x57c5c2(0xbf)](_0x57c5c2(0xa6),_0x3734b3);}[_0x1fd439(0xa4)](_0x1554a3){const _0x59ed5c=_0x1fd439;this[_0x59ed5c(0xbf)](_0x59ed5c(0xdc),_0x1554a3);}[_0x1fd439(0x9f)](_0x24730f){const _0x2db21c=_0x1fd439;if(!_0x24730f)return;this[_0x2db21c(0xa3)]=_0x24730f['id'],this[_0x2db21c(0xc6)]=_0x24730f[_0x2db21c(0xaf)]||_0x24730f['id'],this[_0x2db21c(0xb8)][_0x2db21c(0xb3)][_0x2db21c(0xbf)](_0x2db21c(0x96),_0x24730f[_0x2db21c(0xaf)]),this[_0x2db21c(0xb8)][_0x2db21c(0xb3)][_0x2db21c(0xbf)](_0x2db21c(0x94),_0x24730f[_0x2db21c(0xaf)]);const _0x274eb6=_0x24730f[_0x2db21c(0xe8)][_0x2db21c(0xf1)]?.[_0x2db21c(0x9b)]??!0x1;this[_0x2db21c(0xbf)](_0x2db21c(0xa6),!0x1),this[_0x2db21c(0xea)][_0x2db21c(0xbf)](_0x2db21c(0x9d),!0x1),this[_0x2db21c(0xea)][_0x2db21c(0xbf)](_0x2db21c(0xbb),_0x274eb6),this[_0x2db21c(0xea)][_0x2db21c(0xbf)](_0x2db21c(0xc8),_0x274eb6);const _0x469aa4=_0x24730f[_0x2db21c(0xe8)][_0x2db21c(0x99)]?.[_0x2db21c(0x9b)]??!0x1;this[_0x2db21c(0xbf)](_0x2db21c(0xdc),!0x1),this[_0x2db21c(0x9c)][_0x2db21c(0xbf)](_0x2db21c(0x9d),!0x1),this[_0x2db21c(0x9c)][_0x2db21c(0xbf)](_0x2db21c(0xbb),_0x469aa4),this[_0x2db21c(0x9c)][_0x2db21c(0xbf)](_0x2db21c(0xc8),_0x469aa4);}[_0x1fd439(0xe0)](){const _0x1de899=_0x1fd439;this[_0x1de899(0xbf)](_0x1de899(0x97),!0x0);}[_0x1fd439(0xd5)](_0xdce832){const _0xe8f32f=_0x1fd439;this[_0xe8f32f(0xbf)](_0xe8f32f(0x97),!0x1),_0xdce832&&this[_0xe8f32f(0xbf)](_0xe8f32f(0xb6),_0xe8f32f(0xb1));}[_0x1fd439(0xf2)](){const _0x3a8acc=_0x1fd439,_0x4e4617=new _0x4b7642();return _0x4e4617[_0x3a8acc(0xbf)]({'label':_0xc77509(this[_0x3a8acc(0xd6)],_0x3a8acc(0xad)),'icon':_0x5764e0,'class':Fo,'isToggleable':!0x0,'tooltipPosition':il}),_0x4e4617['on'](_0x3a8acc(0xb5),()=>{const _0x2430a6=_0x3a8acc;this[_0x2430a6(0xd9)](_0x2430a6(0xb2));}),_0x4e4617;}[_0x1fd439(0xaa)](){const _0x360f08=_0x1fd439,_0x2f4d03=new _0x4b7642();return _0x2f4d03[_0x360f08(0xbf)]({'label':_0xc77509(this[_0x360f08(0xd6)],_0x360f08(0xbe)),'icon':_0x1a02c7,'class':Fo,'isToggleable':!0x0,'tooltipPosition':il}),_0x2f4d03['on'](_0x360f08(0xb5),()=>{const _0x5f5847=_0x360f08;this[_0x5f5847(0xd9)](_0x5f5847(0xef));}),_0x2f4d03;}[_0x1fd439(0xe1)](){const _0x4ef363=_0x1fd439,_0x160e88=new _0x4b7642();return _0x160e88[_0x4ef363(0xbf)]({'label':_0xc77509(this[_0x4ef363(0xd6)],_0x4ef363(0xc9)),'icon':_0x54ec4a,'withText':!0x0,'class':Fo,'isToggleable':!0x0,'tooltip':_0xc77509(this[_0x4ef363(0xd6)],_0x4ef363(0xc9)),'tooltipPosition':il}),_0x160e88[_0x4ef363(0xe9)]({'attributes':{'class':[Jo]}}),_0x160e88['on'](_0x4ef363(0xb5),()=>{const _0x28fd74=_0x4ef363;console[_0x28fd74(0xf0)](_0x28fd74(0xd2)),alert(_0x28fd74(0xd2));}),_0x160e88;}[_0x1fd439(0xe2)](){const _0x402965=_0x1fd439,_0x4b16aa=_0x1b6c66(this[_0x402965(0xd6)]);return _0x4b16aa[_0x402965(0xbf)]({'panelPosition':'ne','class':[Qo]}),_0x4b16aa[_0x402965(0xb3)][_0x402965(0xbf)]({'label':_0xc77509(this[_0x402965(0xd6)],_0x402965(0xc0)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':il,'class':Ko}),this[_0x402965(0x9e)](_0x4b16aa,_0x402965(0xb5),_0x22c3b7=>{const _0x2ea6df=_0x402965;this[_0x2ea6df(0xd9)](_0x2ea6df(0xd7),_0x22c3b7[_0x2ea6df(0xa5)][_0x2ea6df(0xb7)]);}),_0x4b16aa;}[_0x1fd439(0xce)](){const _0x41cb67=_0x1fd439,_0x46bb0c=new wo(this[_0x41cb67(0xd6)]);return _0x46bb0c[_0x41cb67(0xda)](_0x41cb67(0xe7))['to'](this,_0x41cb67(0xc6),_0x3f84d2=>_0x3f84d2??''),_0x46bb0c[_0x41cb67(0xda)](_0x41cb67(0xc8))['to'](this,_0x41cb67(0xb6),_0x1a4e8d=>_0x41cb67(0xaf)===_0x1a4e8d),_0x46bb0c;}}class po extends _0x192d48{constructor(_0x3af381,_0x12317f){const _0x7a585d=_0x1fd439;super();const _0x43dd4f=this[_0x7a585d(0xde)],_0x134072=this[_0x7a585d(0xae)]();this[_0x7a585d(0xe3)]({'tag':_0x7a585d(0xcc),'attributes':{'class':['ck',_0x7a585d(0xa9)],'style':_0x43dd4f['to'](_0x7a585d(0xc1)),'id':_0x43dd4f['to']('id')},'children':[{'tag':_0x7a585d(0xcc),'attributes':{'class':[Zo]},'children':[{'text':_0x43dd4f['to'](_0x7a585d(0xe7))}]},{'tag':_0x7a585d(0xcc),'attributes':{'class':[tl]},'children':[{'tag':_0x7a585d(0x98),'children':[{'text':_0x12317f[_0x7a585d(0xdb)]}]}]},{'tag':_0x7a585d(0xcc),'attributes':{'class':[el]},'children':_0x134072}]}),_0x134072[_0x7a585d(0xb0)](this[_0x7a585d(0xa2)](_0x3af381,_0x5764e0,_0x7a585d(0xad),_0x12317f[_0x7a585d(0xe8)][_0x7a585d(0xf1)]?.[_0x7a585d(0x9b)]??!0x1)),_0x134072[_0x7a585d(0xb0)](this[_0x7a585d(0xa2)](_0x3af381,_0x1a02c7,_0x7a585d(0xbe),_0x12317f[_0x7a585d(0xe8)][_0x7a585d(0x99)]?.[_0x7a585d(0x9b)]??!0x1));}[_0x1fd439(0xa2)](_0x3026d0,_0x3a44bf,_0x18605b,_0x5d0b05){const _0x21d7a1=_0x1fd439,_0x2cdea8=new _0x343b5b();_0x2cdea8[_0x21d7a1(0xbc)]=_0x3a44bf;const _0x1b8d79=new _0x36431d(_0x3026d0);_0x1b8d79[_0x21d7a1(0xe3)]({'tag':_0x21d7a1(0x98),'children':[{'text':_0xc77509(_0x3026d0,_0x18605b)+':\x20'}]});const _0x1c2dfd=new _0x36431d(_0x3026d0);return _0x1c2dfd[_0x21d7a1(0xe3)]({'tag':_0x21d7a1(0x98),'children':[{'text':_0xc77509(_0x3026d0,_0x5d0b05?_0x21d7a1(0xb9):_0x21d7a1(0xd3))}]}),[_0x2cdea8,_0x1b8d79,_0x1c2dfd];}}class wo extends _0x36431d{constructor(_0x440f1d){const _0x4861f5=_0x1fd439;super(_0x440f1d),this[_0x4861f5(0xbf)](_0x4861f5(0xe7),void 0x0),this[_0x4861f5(0xbf)](_0x4861f5(0xc8),!0x0);const _0x19d8aa=this[_0x4861f5(0xde)];this[_0x4861f5(0xe3)]({'tag':_0x4861f5(0x98),'attributes':{'class':['ck',_0x4861f5(0xa1),_0x19d8aa['if'](_0x4861f5(0xc8),_0x4861f5(0x92),_0x323986=>!_0x323986)]},'children':[{'text':_0x19d8aa['to'](_0x4861f5(0xe7))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x544218=_0x1b57;(function(_0x399635,_0x429d34){const _0xdc9ea2=_0x1b57,_0x24b01a=_0x399635();while(!![]){try{const _0x4ecbed=-parseInt(_0xdc9ea2(0xd9))/0x1*(-parseInt(_0xdc9ea2(0xcc))/0x2)+-parseInt(_0xdc9ea2(0xea))/0x3*(-parseInt(_0xdc9ea2(0xb9))/0x4)+parseInt(_0xdc9ea2(0xcd))/0x5+parseInt(_0xdc9ea2(0xce))/0x6+parseInt(_0xdc9ea2(0xba))/0x7+parseInt(_0xdc9ea2(0xd5))/0x8+-parseInt(_0xdc9ea2(0xc3))/0x9;if(_0x4ecbed===_0x429d34)break;else _0x24b01a['push'](_0x24b01a['shift']());}catch(_0x322072){_0x24b01a['push'](_0x24b01a['shift']());}}}(_0x251a,0xe8905));import{IconSubmit as _0x378df6}from'ckeditor5/src/icons.js';import{ButtonView as _0xfa6e9b,AutocompleteView as _0x395422,createLabeledTextarea as _0x436bc5}from'ckeditor5/src/ui.js';import{global as _0x23d7fb,isVisible as _0x59a27f,Rect as _0x5e05bd,ResizeObserver as _0x59a006}from'ckeditor5/src/utils.js';import{getTranslation as _0x4eb476}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x33ad12}from'./aichatpromptsuggestionslistview.js';import{escape as _0x21c631}from'es-toolkit/compat';function _0x1b57(_0x3531d3,_0x5f0cc2){const _0x251a62=_0x251a();return _0x1b57=function(_0x1b5752,_0x18a08d){_0x1b5752=_0x1b5752-0xb5;let _0xf48b3b=_0x251a62[_0x1b5752];return _0xf48b3b;},_0x1b57(_0x3531d3,_0x5f0cc2);}const ah=_0x544218(0xc6);function _0x251a(){const _0x214886=['width','bind','enter','setIsUploadInProgress','AI_CHAT_LABEL_SUBMIT','maxRows','add','target','12QGTSYu','5497947iwmcCh','placeholder','requestAnimationFrame','destroy','fieldWrapperChildren','render','uiLanguageDirection','submitButtonView','element','42458796tjhcIg','MAX_ROWS','window','ck-ai-chat__prompt-input_highlighted','minRows','isUploadInProgress','errorText','_setUpAddContextButtonPositioning','hasError','1931338yMWxqI','6057175sEJxmz','7908630wOsIvm','left','_addContextButtonView','setPlaceholderText','isEmpty','focus','isEnabled','294320MtuKzx','focusableChildren','locale','sendUserMessage','1jlGbhG','_createSubmitButton','fieldView','keystrokes','queryView','AI_CHAT_PROMPT_EMPTY_ERROR','px\x20-\x20var(--ck-spacing-tiny))','excludeScrollbarsAndBorders','remove','reset','ck-ai-chat__prompt-submit-button','extendTemplate','style','execute','calc(','set','fire','1352805vtIWty','ck-ai-chat__prompt-input','trim','classList','_queryViewResizeObserver','value','right','MIN_ROWS','contains','submit','update','rtl'];_0x251a=function(){return _0x214886;};return _0x251a();}export class AIChatPromptInputView extends _0x395422{[_0x544218(0xc1)];static [_0x544218(0xf1)]=0x1;static [_0x544218(0xc4)]=0xc;[_0x544218(0xd0)];[_0x544218(0xee)];constructor(_0x488b17,_0x4fa0eb){const _0x52c464=_0x544218;super(_0x488b17,{'queryView':{'label':'','creator':_0x436bc5,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x33ad12(_0x488b17),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x52c464(0xe8)](_0x52c464(0xd2),!0x0),this[_0x52c464(0xe8)](_0x52c464(0xc8),!0x1),this[_0x52c464(0xd0)]=_0x4fa0eb,this[_0x52c464(0xee)]=null,this[_0x52c464(0xdd)][_0x52c464(0xdb)][_0x52c464(0xc7)]=AIChatPromptInputView[_0x52c464(0xf1)],this[_0x52c464(0xdd)][_0x52c464(0xdb)][_0x52c464(0xb6)]=AIChatPromptInputView[_0x52c464(0xc4)],this[_0x52c464(0xdd)][_0x52c464(0xbe)][_0x52c464(0xb7)](this[_0x52c464(0xd0)]),this[_0x52c464(0xca)](),this[_0x52c464(0xe4)]({'attributes':{'class':['ck',_0x52c464(0xeb)]}}),this[_0x52c464(0xc1)]=this[_0x52c464(0xda)](),this[_0x52c464(0xc1)][_0x52c464(0xf7)](_0x52c464(0xd4))['to'](this,_0x52c464(0xd2),this,_0x52c464(0xc8),(_0x5b120a,_0xad97c3)=>!_0x5b120a&&!_0xad97c3),this[_0x52c464(0xd6)][_0x52c464(0xb7)](this[_0x52c464(0xc1)]);}[_0x544218(0xbf)](){const _0xbffc72=_0x544218;super[_0xbffc72(0xbf)](),this[_0xbffc72(0xdd)][_0xbffc72(0xbe)][_0xbffc72(0xb7)](this[_0xbffc72(0xc1)]),this[_0xbffc72(0xdc)][_0xbffc72(0xe8)](_0xbffc72(0xf8),(_0x304e7d,_0x1f2c6f)=>{const _0x510a4c=_0xbffc72;this[_0x510a4c(0xc8)]||this[_0x510a4c(0xd2)]||_0x304e7d[_0x510a4c(0xb8)]==this[_0x510a4c(0xdd)][_0x510a4c(0xdb)][_0x510a4c(0xc2)]&&(this[_0x510a4c(0xf3)](),_0x1f2c6f());}),this[_0xbffc72(0xdd)][_0xbffc72(0xdb)]['on'](_0xbffc72(0xf4),()=>{const _0x3ea4ed=_0xbffc72;this[_0x3ea4ed(0xd2)]=''===this[_0x3ea4ed(0xdd)][_0x3ea4ed(0xdb)][_0x3ea4ed(0xc2)][_0x3ea4ed(0xef)]?.[_0x3ea4ed(0xec)]();});}[_0x544218(0xbd)](){const _0x585f89=_0x544218;super[_0x585f89(0xbd)](),this[_0x585f89(0xee)]&&this[_0x585f89(0xee)][_0x585f89(0xbd)]();}[_0x544218(0xf3)](){const _0x498bd8=_0x544218,_0x76173f=this[_0x498bd8(0xdd)][_0x498bd8(0xdb)][_0x498bd8(0xc2)][_0x498bd8(0xef)]?.[_0x498bd8(0xec)]();if(!_0x76173f)return this[_0x498bd8(0xdd)][_0x498bd8(0xc9)]=_0x4eb476(this[_0x498bd8(0xd7)],_0x498bd8(0xde)),void(this[_0x498bd8(0xdd)][_0x498bd8(0xdb)][_0x498bd8(0xcb)]=!0x0);this[_0x498bd8(0xdd)][_0x498bd8(0xdb)][_0x498bd8(0xcb)]=!0x1;const _0x1c74bd=_0x21c631(_0x76173f);this[_0x498bd8(0xe9)](_0x498bd8(0xd8),_0x1c74bd),this[_0x498bd8(0xdd)][_0x498bd8(0xdb)][_0x498bd8(0xe2)]();}[_0x544218(0xd1)](_0x120f67){const _0x1bdc2f=_0x544218;this[_0x1bdc2f(0xdd)][_0x1bdc2f(0xdb)][_0x1bdc2f(0xe8)](_0x1bdc2f(0xbb),_0x120f67);}[_0x544218(0xd3)](_0x4dbd90=!0x1){const _0x4cbe9e=_0x544218;super[_0x4cbe9e(0xd3)](),_0x4dbd90&&(this[_0x4cbe9e(0xc2)][_0x4cbe9e(0xed)][_0x4cbe9e(0xf2)](ah)||(this[_0x4cbe9e(0xc2)][_0x4cbe9e(0xed)][_0x4cbe9e(0xb7)](ah),setTimeout(()=>{const _0x141754=_0x4cbe9e;this[_0x141754(0xc2)][_0x141754(0xed)][_0x141754(0xe1)](ah);},0x320)));}[_0x544218(0xda)](){const _0xb71167=_0x544218,_0x82d214=new _0xfa6e9b(this[_0xb71167(0xd7)]);return _0x82d214[_0xb71167(0xe8)]({'icon':_0x378df6,'label':_0x4eb476(this[_0xb71167(0xd7)],_0xb71167(0xb5)),'isVisible':!0x0,'tooltip':!0x0,'class':_0xb71167(0xe3),'isEnabled':!0x1}),_0x82d214['on'](_0xb71167(0xe6),()=>{const _0x3d1364=_0xb71167;this[_0x3d1364(0xf3)]();}),_0x82d214;}[_0x544218(0xf9)](_0x5c7316){const _0x11ef13=_0x544218;this[_0x11ef13(0xc8)]=_0x5c7316;}[_0x544218(0xca)](){const _0x42fef7=_0x544218,_0x5f0924=this[_0x42fef7(0xd7)],_0x1e57a4=()=>{const _0x4b8056=_0x42fef7;_0x23d7fb[_0x4b8056(0xc5)][_0x4b8056(0xbc)](()=>{const _0x204efb=_0x4b8056;if(_0x59a27f(this[_0x204efb(0xc2)])){const _0x51a538=new _0x5e05bd(this[_0x204efb(0xdd)][_0x204efb(0xdb)][_0x204efb(0xc2)]),_0x181e74=new _0x5e05bd(this[_0x204efb(0xd0)][_0x204efb(0xc2)]),_0x570646=_0x51a538[_0x204efb(0xf6)],_0x1aa082=_0x204efb(0xf5)===_0x5f0924[_0x204efb(0xc0)]?_0x204efb(0xf0):_0x204efb(0xcf);_0x51a538[_0x204efb(0xe0)]();const _0x5044b6=_0x570646-_0x51a538[_0x204efb(0xf6)]+0x1;this[_0x204efb(0xd0)][_0x204efb(0xc2)][_0x204efb(0xe5)][_0x1aa082]=_0x204efb(0xe7)+(_0x570646-_0x181e74[_0x204efb(0xf6)]-_0x5044b6)+_0x204efb(0xdf);}});};this[_0x42fef7(0xdd)][_0x42fef7(0xdb)]['on'](_0x42fef7(0xf4),_0x1e57a4),this['on'](_0x42fef7(0xbf),()=>{const _0x10c816=_0x42fef7;_0x1e57a4(),this[_0x10c816(0xee)]=new _0x59a006(this[_0x10c816(0xdd)][_0x10c816(0xdb)][_0x10c816(0xc2)],()=>{_0x1e57a4();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x185876=_0x4cb3;function _0xe0f4(){const _0x98ecc7=['4662153PIzNIW','92267oRnImw','186uJzDFZ','3351520KmnXTQ','16FYRCnA','items','1755700uyymdh','length','2093248mTmmNR','filter','39sHkdBq','798549Awmkpw','30250yhomSe'];_0xe0f4=function(){return _0x98ecc7;};return _0xe0f4();}function _0x4cb3(_0x3a7b2c,_0x433806){const _0xe0f4ad=_0xe0f4();return _0x4cb3=function(_0x4cb34a,_0x5ce62f){_0x4cb34a=_0x4cb34a-0x1af;let _0x31c910=_0xe0f4ad[_0x4cb34a];return _0x31c910;},_0x4cb3(_0x3a7b2c,_0x433806);}(function(_0x208136,_0x140819){const _0x10a335=_0x4cb3,_0x4e7094=_0x208136();while(!![]){try{const _0x27104f=parseInt(_0x10a335(0x1b3))/0x1+parseInt(_0x10a335(0x1b4))/0x2*(parseInt(_0x10a335(0x1b2))/0x3)+-parseInt(_0x10a335(0x1b0))/0x4+parseInt(_0x10a335(0x1bb))/0x5+parseInt(_0x10a335(0x1b7))/0x6*(parseInt(_0x10a335(0x1b6))/0x7)+parseInt(_0x10a335(0x1b9))/0x8*(-parseInt(_0x10a335(0x1b5))/0x9)+parseInt(_0x10a335(0x1b8))/0xa;if(_0x27104f===_0x140819)break;else _0x4e7094['push'](_0x4e7094['shift']());}catch(_0x46c49e){_0x4e7094['push'](_0x4e7094['shift']());}}}(_0xe0f4,0x8192b));import{ListView as _0xc83f51}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0xc83f51{[_0x185876(0x1b1)](){const _0x2a51a4=_0x185876;let _0x507d51=0x0;for(const _0x5dabaa of this[_0x2a51a4(0x1ba)])_0x507d51+=_0x5dabaa[_0x2a51a4(0x1ba)][_0x2a51a4(0x1af)];return{'resultsCount':_0x507d51,'totalItemsCount':_0x507d51};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x73c635=_0x6c85;(function(_0x33eb29,_0x3310e3){const _0x433806=_0x6c85,_0x5b7a8e=_0x33eb29();while(!![]){try{const _0x1e3e13=-parseInt(_0x433806(0x184))/0x1+-parseInt(_0x433806(0x17c))/0x2+parseInt(_0x433806(0x17e))/0x3+parseInt(_0x433806(0x189))/0x4+-parseInt(_0x433806(0x187))/0x5+parseInt(_0x433806(0x17d))/0x6*(parseInt(_0x433806(0x194))/0x7)+parseInt(_0x433806(0x185))/0x8*(parseInt(_0x433806(0x190))/0x9);if(_0x1e3e13===_0x3310e3)break;else _0x5b7a8e['push'](_0x5b7a8e['shift']());}catch(_0x87bc59){_0x5b7a8e['push'](_0x5b7a8e['shift']());}}}(_0x2071,0x8e8e8));import{ListView as _0x541ffe}from'ckeditor5/src/ui.js';function _0x2071(){const _0x1f888f=['trim','add','highlightText','36CZdLLC','extendTemplate','fire','\x5c$&','628089gWtbMq','locale','useDefaultFiltering','setResources','ck-ai-chat-resources__list','filter','clear','forEach','908578tmdHtO','42QhHfxK','2873091XmmBVS','test','resource','label','addResourceToContext','_source','855460Yoterl','879008jcjwOb','execute','1466280IURuqe','replace','646508dXrOes','items','_handleResourceSelection','updateResourceState'];_0x2071=function(){return _0x1f888f;};return _0x2071();}import{AIChatResourceListItemView as _0x19e5cc}from'./aichatresourcelistitemview.js';const uc=_0x73c635(0x178);function _0x6c85(_0x5bb1fb,_0x3076b4){const _0x2071df=_0x2071();return _0x6c85=function(_0x6c8563,_0x4c5697){_0x6c8563=_0x6c8563-0x175;let _0x493cf7=_0x2071df[_0x6c8563];return _0x493cf7;},_0x6c85(_0x5bb1fb,_0x3076b4);}export class AIChatContextResourcesListView extends _0x541ffe{[_0x73c635(0x183)];constructor(_0x1b0068,_0x9cb2e9){const _0x2c5427=_0x73c635;super(_0x1b0068),this[_0x2c5427(0x183)]=_0x9cb2e9,this[_0x2c5427(0x191)]({'attributes':{'class':[uc]}});}[_0x73c635(0x177)](_0x4a7102,_0x58136d){const _0x579170=_0x73c635;this[_0x579170(0x18a)][_0x579170(0x17a)]();let _0x96fb84=_0x4a7102;if(this[_0x579170(0x183)][_0x579170(0x176)]&&_0x58136d&&''!==_0x58136d[_0x579170(0x18d)]()){const _0x5f49f2=new RegExp(_0x58136d[_0x579170(0x188)](/[.*+?^${}()|[\]\\]/g,_0x579170(0x193)),'gi');_0x96fb84=_0x4a7102[_0x579170(0x179)](_0x9d7598=>_0x5f49f2[_0x579170(0x17f)](_0x9d7598[_0x579170(0x181)]));}for(const _0x44d159 of _0x96fb84){const _0xfde32a=new _0x19e5cc(this[_0x579170(0x175)],_0x44d159);_0xfde32a['on'](_0x579170(0x186),()=>{const _0x36b1aa=_0x579170;this[_0x36b1aa(0x18b)](this[_0x36b1aa(0x183)],_0x44d159);}),this[_0x579170(0x18a)][_0x579170(0x18e)](_0xfde32a);}this[_0x579170(0x183)][_0x579170(0x176)]&&this[_0x579170(0x18f)](_0x58136d);}[_0x73c635(0x18f)](_0x4c7710){const _0x229158=_0x73c635;this[_0x229158(0x183)][_0x229158(0x176)]&&this[_0x229158(0x18a)][_0x229158(0x17b)](_0x47788a=>{const _0x203377=_0x229158;_0x47788a[_0x203377(0x18f)](_0x4c7710);});}[_0x73c635(0x18c)](_0xc3e45c,_0x534e9c){const _0x1c5991=_0x73c635;for(const _0x49631b of this[_0x1c5991(0x18a)]){const _0x59dd39=_0x49631b;_0x59dd39[_0x1c5991(0x180)]['id']===_0xc3e45c&&_0x59dd39[_0x1c5991(0x18c)](_0x534e9c);}}[_0x73c635(0x18b)](_0x14a652,_0x2da578){const _0xcf3f7f=_0x73c635;this[_0xcf3f7f(0x192)](_0xcf3f7f(0x182),{'source':_0x14a652,'resource':_0x2da578});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2e1d(){const _0x1b2759=['delegate','_searchInputVisibleFrom','updateResourceState','8eElgMP','1828806XgNlZr','_skeletonLoader','_resourcesListView','children','source','setResources','locale','setTemplate','getQuery','addResourceToContext','highlightText','length','add','div','_createSearchSection','22170906FlDZrZ','aiChatResources','search','isLoading','255138PaiNQQ','ck-ai-chat-resources','loadSourceResources','88045rRJJoE','_createResourcesListView','bindTemplate','2493688xhzZtL','ck-hidden','loadResources','_searchSection','_createSearchView','_latestLoadResourcesUid','extendTemplate','fire','render','ck\x20ck-search','_source','294IQDzrc','_searchView','297864HwUUue','set','searchInputVisibleFrom','useDefaultFiltering','has','_createSkeletonView','140912aanbOT'];_0x2e1d=function(){return _0x1b2759;};return _0x2e1d();}const _0x10bc32=_0x2342;function _0x2342(_0x34ffc6,_0x312c7c){const _0x2e1d29=_0x2e1d();return _0x2342=function(_0x23422e,_0x590795){_0x23422e=_0x23422e-0x1f2;let _0x884fba=_0x2e1d29[_0x23422e];return _0x884fba;},_0x2342(_0x34ffc6,_0x312c7c);}(function(_0x36fb01,_0x1ee85b){const _0x4743c1=_0x2342,_0x404b2a=_0x36fb01();while(!![]){try{const _0x20b580=-parseInt(_0x4743c1(0x201))/0x1+parseInt(_0x4743c1(0x21a))/0x2+-parseInt(_0x4743c1(0x214))/0x3+-parseInt(_0x4743c1(0x207))/0x4+parseInt(_0x4743c1(0x204))/0x5*(-parseInt(_0x4743c1(0x212))/0x6)+-parseInt(_0x4743c1(0x21f))/0x7*(parseInt(_0x4743c1(0x21e))/0x8)+parseInt(_0x4743c1(0x1fd))/0x9;if(_0x20b580===_0x1ee85b)break;else _0x404b2a['push'](_0x404b2a['shift']());}catch(_0x3b9545){_0x404b2a['push'](_0x404b2a['shift']());}}}(_0x2e1d,0x69747));import{View as _0x399cc9,ViewCollection as _0x42ee0d}from'ckeditor5/src/ui.js';import{uid as _0x3dacf8}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x28dc24}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x2d86e3}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x4d6424,SKELETON_DEFINITIONS as _0x3cfdcd}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x399cc9{[_0x10bc32(0x213)];[_0x10bc32(0x20a)];[_0x10bc32(0x21c)];[_0x10bc32(0x221)];[_0x10bc32(0x220)];[_0x10bc32(0x211)];[_0x10bc32(0x222)];[_0x10bc32(0x20c)]=null;constructor(_0x2a2ddf,_0x11d6c3){const _0x38aacb=_0x10bc32;super(_0x2a2ddf),this[_0x38aacb(0x211)]=_0x11d6c3[_0x38aacb(0x1f2)],this[_0x38aacb(0x21c)]=_0x11d6c3[_0x38aacb(0x216)]??0x7,this[_0x38aacb(0x215)](_0x38aacb(0x200),!0x0),this[_0x38aacb(0x213)]=this[_0x38aacb(0x20b)](),this[_0x38aacb(0x20a)]=this[_0x38aacb(0x1fc)](),this[_0x38aacb(0x221)]=this[_0x38aacb(0x205)](),this[_0x38aacb(0x220)]=this[_0x38aacb(0x219)](),this[_0x38aacb(0x222)]=new _0x42ee0d([this[_0x38aacb(0x220)],this[_0x38aacb(0x221)]]),this[_0x38aacb(0x1f5)]({'tag':_0x38aacb(0x1fb),'attributes':{'class':_0x38aacb(0x202)},'children':this[_0x38aacb(0x222)]});}[_0x10bc32(0x20b)](){const _0x27001d=_0x10bc32;return new _0x2d86e3(this[_0x27001d(0x1f4)]);}[_0x10bc32(0x1fc)](){const _0x1b1e7f=_0x10bc32,_0x501835=new _0x399cc9(this[_0x1b1e7f(0x1f4)]);return _0x501835[_0x1b1e7f(0x1f5)]({'tag':_0x1b1e7f(0x1fb),'attributes':{'class':_0x1b1e7f(0x210)},'children':[this[_0x1b1e7f(0x213)]]}),this[_0x1b1e7f(0x213)]['on'](_0x1b1e7f(0x1ff),(_0x1fd743,_0x3ed559)=>{const _0x2f3e14=_0x1b1e7f;this[_0x2f3e14(0x209)](_0x3ed559),this[_0x2f3e14(0x211)][_0x2f3e14(0x217)]&&this[_0x2f3e14(0x221)][_0x2f3e14(0x1f8)](_0x3ed559);}),_0x501835;}[_0x10bc32(0x205)](){const _0x3f362d=_0x10bc32,_0x59cb27=new _0x28dc24(this[_0x3f362d(0x1f4)],this[_0x3f362d(0x211)]);return _0x59cb27[_0x3f362d(0x21b)](_0x3f362d(0x1f7))['to'](this),_0x59cb27[_0x3f362d(0x20d)]({'attributes':{'class':this[_0x3f362d(0x206)]['if'](_0x3f362d(0x200),_0x3f362d(0x208))}}),_0x59cb27;}[_0x10bc32(0x219)](){const _0x372d37=_0x10bc32,_0x16ea38=new _0x4d6424(this[_0x372d37(0x1f4)],_0x3cfdcd[_0x372d37(0x1fe)]);return _0x16ea38[_0x372d37(0x20d)]({'attributes':{'class':[this[_0x372d37(0x206)]['if'](_0x372d37(0x200),_0x372d37(0x208),_0x5a7cf8=>!_0x5a7cf8)]}}),_0x16ea38;}[_0x10bc32(0x20f)](){const _0x3fc05f=_0x10bc32;super[_0x3fc05f(0x20f)](),this[_0x3fc05f(0x209)]('');}[_0x10bc32(0x209)](_0x57f34e){const _0x4091db=_0x10bc32,_0x3edc57=_0x3dacf8();this[_0x4091db(0x20c)]=_0x3edc57,this[_0x4091db(0x20e)](_0x4091db(0x203),{'sourceId':this[_0x4091db(0x211)]['id'],'query':_0x57f34e,'uid':_0x3edc57}),this[_0x4091db(0x200)]=!0x0;}[_0x10bc32(0x1f3)](_0x2f7aba,_0x284f9b){const _0x3672d7=_0x10bc32;if(_0x284f9b&&_0x284f9b!==this[_0x3672d7(0x20c)])return;const _0x104fb9=this[_0x3672d7(0x211)][_0x3672d7(0x217)]?this[_0x3672d7(0x213)][_0x3672d7(0x1f6)]():'';this[_0x3672d7(0x221)][_0x3672d7(0x1f3)](_0x2f7aba,_0x104fb9),_0x2f7aba[_0x3672d7(0x1f9)]>=this[_0x3672d7(0x21c)]&&!this[_0x3672d7(0x222)][_0x3672d7(0x218)](this[_0x3672d7(0x20a)])&&this[_0x3672d7(0x222)][_0x3672d7(0x1fa)](this[_0x3672d7(0x20a)],0x0),requestAnimationFrame(()=>{const _0x41cdff=_0x3672d7;this[_0x41cdff(0x200)]=!0x1;});}[_0x10bc32(0x21d)](_0x3061cf,_0x379a54){const _0x5aeae5=_0x10bc32;this[_0x5aeae5(0x221)][_0x5aeae5(0x21d)](_0x3061cf,_0x379a54);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3af986=_0x571e;(function(_0x5b88b4,_0x21cbe2){const _0x3230dc=_0x571e,_0x4bd782=_0x5b88b4();while(!![]){try{const _0x27b020=-parseInt(_0x3230dc(0xb3))/0x1+-parseInt(_0x3230dc(0xc6))/0x2*(parseInt(_0x3230dc(0xc3))/0x3)+-parseInt(_0x3230dc(0xce))/0x4*(parseInt(_0x3230dc(0xb2))/0x5)+-parseInt(_0x3230dc(0xbb))/0x6*(parseInt(_0x3230dc(0xbd))/0x7)+-parseInt(_0x3230dc(0xc5))/0x8*(parseInt(_0x3230dc(0xb9))/0x9)+parseInt(_0x3230dc(0xd6))/0xa*(parseInt(_0x3230dc(0xca))/0xb)+parseInt(_0x3230dc(0xd9))/0xc;if(_0x27b020===_0x21cbe2)break;else _0x4bd782['push'](_0x4bd782['shift']());}catch(_0x8ce5cb){_0x4bd782['push'](_0x4bd782['shift']());}}}(_0x3455,0x616b5));import{HighlightedTextView as _0xad0afe,IconView as _0x3faced,ListItemView as _0x338006}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x1d9928}from'es-toolkit/compat';function _0x571e(_0x595dc3,_0x649e46){const _0x3455ca=_0x3455();return _0x571e=function(_0x571efc,_0x4975e5){_0x571efc=_0x571efc-0xb2;let _0x34a0b0=_0x3455ca[_0x571efc];return _0x34a0b0;},_0x571e(_0x595dc3,_0x649e46);}function _0x3455(){const _0x1b85b1=['_createIconView','1070rDTAkw','span','_setupTemplate','32715132oeDleS','set','_createTitleView','ck-ai-chat-resources__item','ck-ai-chat-resources__item__icon','render','ck-ai-chat-resources__item-title','180FaydJR','87837afFpMa','isInContext','text','resource','FILE','_iconView','522036szfKqB','isVisible','18sOGakF','ck-ai-chat-resources__item--in-context','1295539NzBuSQ','ck-hidden','getResourceIcon','DOCUMENT','TEXT','_updateIcon','1877433dJneKx','extendTemplate','80wXafXI','2xEpbUY','bindTemplate','div','updateResourceState','28699MGrzAf','trim','highlightText','URL','84164GfOZhU','execute','setTemplate','type','label','_titleView','content'];_0x3455=function(){return _0x1b85b1;};return _0x3455();}import{AIContextItemType as _0x4c3a7b}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x3d9ee4,IconCheck as _0x440e75,IconDocument as _0x3db0d1,IconDocumentOutline as _0x5d7c6b,IconLink as _0x568005}from'@ckeditor/ckeditor5-icons';const zr=_0x3af986(0xdc),Jr=_0x3af986(0xbc),Kr=_0x3af986(0xdf),Mr=_0x3af986(0xdd);export class AIChatResourceListItemView extends _0x338006{[_0x3af986(0xb6)];[_0x3af986(0xd3)];[_0x3af986(0xb8)];constructor(_0x5571fc,_0x28f374){const _0x15e4df=_0x3af986;super(_0x5571fc),this[_0x15e4df(0xb6)]=_0x28f374,this[_0x15e4df(0xda)](_0x15e4df(0xb4),!!_0x28f374[_0x15e4df(0xb4)]),this[_0x15e4df(0xd3)]=this[_0x15e4df(0xdb)](),this[_0x15e4df(0xb8)]=this[_0x15e4df(0xd5)](),this[_0x15e4df(0xd8)]();}[_0x3af986(0xde)](){const _0x42660a=_0x3af986;super[_0x42660a(0xde)]();}[_0x3af986(0xbf)](_0x2909dd){const _0x267073=_0x3af986;if(_0x2909dd[_0x267073(0xb4)])return _0x440e75;switch(_0x2909dd[_0x267073(0xd1)]){case _0x4c3a7b[_0x267073(0xc0)]:return _0x3db0d1;case _0x4c3a7b[_0x267073(0xcd)]:return _0x568005;case _0x4c3a7b[_0x267073(0xb7)]:case _0x4c3a7b[_0x267073(0xc1)]:return _0x3d9ee4;default:return _0x5d7c6b;}}[_0x3af986(0xcc)](_0x37e6d0){const _0x14edd9=_0x3af986;if(!_0x37e6d0||''===_0x37e6d0[_0x14edd9(0xcb)]())return void this[_0x14edd9(0xd3)][_0x14edd9(0xcc)](null);const _0x50eda0=new RegExp(_0x1d9928(_0x37e6d0),'gi');this[_0x14edd9(0xd3)][_0x14edd9(0xcc)](_0x50eda0);}[_0x3af986(0xc9)](_0x1e8aa2){const _0x20126f=_0x3af986;this[_0x20126f(0xb6)][_0x20126f(0xb4)]=_0x1e8aa2,this[_0x20126f(0xb4)]=_0x1e8aa2,this[_0x20126f(0xc2)]();}[_0x3af986(0xdb)](){const _0x3b4f90=_0x3af986,_0xefc5f9=new _0xad0afe();return _0xefc5f9[_0x3b4f90(0xb5)]=this[_0x3b4f90(0xb6)][_0x3b4f90(0xd2)],_0xefc5f9[_0x3b4f90(0xc4)]({'tag':_0x3b4f90(0xd7),'attributes':{'class':[Kr]}}),_0xefc5f9;}[_0x3af986(0xd5)](){const _0x1df720=_0x3af986,_0x5ecd40=new _0x3faced();return _0x5ecd40[_0x1df720(0xd4)]=this[_0x1df720(0xbf)](this[_0x1df720(0xb6)]),_0x5ecd40;}[_0x3af986(0xd8)](){const _0x594709=_0x3af986,_0x42882a=this[_0x594709(0xc7)];this[_0x594709(0xd0)]({'tag':_0x594709(0xc8),'attributes':{'class':[zr,_0x42882a['if'](_0x594709(0xba),_0x594709(0xbe),_0x138385=>!_0x138385),_0x42882a['if'](_0x594709(0xb4),Jr)]},'children':[{'tag':_0x594709(0xc8),'attributes':{'class':[Mr]},'children':[this[_0x594709(0xb8)]]},this[_0x594709(0xd3)]],'on':{'click':_0x42882a['to'](_0x594709(0xcf))}});}[_0x3af986(0xc2)](){const _0x24b0d9=_0x3af986;this[_0x24b0d9(0xb8)][_0x24b0d9(0xd4)]=this[_0x24b0d9(0xbf)](this[_0x24b0d9(0xb6)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x457897=_0x156f;(function(_0x5b6173,_0x45796d){const _0x4397c0=_0x156f,_0x15077c=_0x5b6173();while(!![]){try{const _0x5ce28a=-parseInt(_0x4397c0(0x1b9))/0x1*(-parseInt(_0x4397c0(0x1c9))/0x2)+parseInt(_0x4397c0(0x1b1))/0x3*(-parseInt(_0x4397c0(0x1cb))/0x4)+parseInt(_0x4397c0(0x1c5))/0x5*(parseInt(_0x4397c0(0x19e))/0x6)+-parseInt(_0x4397c0(0x1ca))/0x7*(-parseInt(_0x4397c0(0x1c8))/0x8)+parseInt(_0x4397c0(0x1b6))/0x9+-parseInt(_0x4397c0(0x1b5))/0xa*(-parseInt(_0x4397c0(0x1c0))/0xb)+-parseInt(_0x4397c0(0x1b4))/0xc;if(_0x5ce28a===_0x45796d)break;else _0x15077c['push'](_0x15077c['shift']());}catch(_0x2b5b0a){_0x15077c['push'](_0x15077c['shift']());}}}(_0x5d31,0x75af6));import{BalloonPanelView as _0x5a9abc,ButtonView as _0x20416e,clickOutsideHandler as _0x5c7d90,FormHeaderView as _0x13baf2}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x4f7013}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x5a6a3c}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x564979}from'./aichatcontextresourcesview.js';function _0x5d31(){const _0x1c8cb9=['14843592pNTcml','1125280lfNXgP','832338sChuwl','closeSourceResourceBalloon','_bodyCollection','3KLaDzy','_createBalloonResourcesView','source','onBackToContext','ck-button-icon\x20ck-button-back','_createSourceResourceBalloonPanel','clear','44cCNZVw','hide','_locale','extendTemplate','content','445FIdJOq','execute','values','2418720MBTANk','403768aAIiRw','14hQBBLe','4nzaJTf','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','onBalloonClosed','label','_config','delete','searchInputVisibleFrom','showSourceResourcesBalloon','_sourceResourceBalloons','getTargetElement','updateResourceState','element','_addSourceResourceContent','show','addResourceToContext','once','children','change:isLoading','12174RmEkWv','getLimiterElement','_createBackButton','_getResourcesViewFromBalloon','_setupSingleResourceBalloonClickOutsideHandler','add','resource','set','setResources','destroy','loadSourceResources','isAnyResourceBalloonVisible','onResourceSelected','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','_createBalloonHeader','get','populateSourceResourceBalloon','ck-ai-chat-context-controls__source-balloon-panel','pin','643509MzeKlF','isVisible','onLoadSourceResources'];_0x5d31=function(){return _0x1c8cb9;};return _0x5d31();}const Bc=_0x457897(0x1af),mc=_0x457897(0x1bd),dc=_0x457897(0x1cc);function _0x156f(_0x2342f9,_0x2c014e){const _0x5d3160=_0x5d31();return _0x156f=function(_0x156f5e,_0x58d4ce){_0x156f5e=_0x156f5e-0x19c;let _0xaf5cd2=_0x5d3160[_0x156f5e];return _0xaf5cd2;},_0x156f(_0x2342f9,_0x2c014e);}export class AIChatResourcesBalloonView{[_0x457897(0x1d3)]=new Map();[_0x457897(0x1b8)];[_0x457897(0x1c2)];[_0x457897(0x1cf)];constructor(_0x37667d,_0x35aa32,_0x24c3bf){const _0x20df5a=_0x457897;this[_0x20df5a(0x1c2)]=_0x37667d,this[_0x20df5a(0x1b8)]=_0x35aa32,this[_0x20df5a(0x1cf)]=_0x24c3bf;}[_0x457897(0x1d2)]({source:_0x5e51de,withBackButton:_0x5d6b1e}){const _0x25d78b=_0x457897;let _0x1eeba7=this[_0x25d78b(0x1d3)][_0x25d78b(0x1ad)](_0x5e51de['id']);_0x1eeba7||(_0x1eeba7=this[_0x25d78b(0x1be)](),this[_0x25d78b(0x1d3)][_0x25d78b(0x1a5)](_0x5e51de['id'],_0x1eeba7),this[_0x25d78b(0x1a2)](_0x1eeba7)),this[_0x25d78b(0x1d7)]({'balloonPanel':_0x1eeba7,'source':_0x5e51de,'withBackButton':_0x5d6b1e}),_0x1eeba7[_0x25d78b(0x1d8)]();const _0x530d7f=this[_0x25d78b(0x1cf)][_0x25d78b(0x1d4)]();_0x530d7f&&_0x1eeba7[_0x25d78b(0x1b0)]({'target':_0x530d7f,'limiter':this[_0x25d78b(0x1cf)][_0x25d78b(0x19f)]()});}[_0x457897(0x1ae)](_0x4c91af,_0x17ec8b,_0x383160){const _0x25a570=_0x457897,_0x24d05c=this[_0x25a570(0x1d3)][_0x25a570(0x1ad)](_0x4c91af);if(!_0x24d05c)return;const _0x93b6e9=this[_0x25a570(0x1a1)](_0x24d05c);_0x93b6e9&&(_0x93b6e9[_0x25a570(0x1a6)](_0x17ec8b,_0x383160),_0x93b6e9[_0x25a570(0x1da)](_0x25a570(0x19d),()=>{const _0x7d5c83=_0x25a570;_0x24d05c[_0x7d5c83(0x1b0)]({'target':this[_0x7d5c83(0x1cf)][_0x7d5c83(0x1d4)](),'limiter':this[_0x7d5c83(0x1cf)][_0x7d5c83(0x19f)]()});}));}[_0x457897(0x1b7)](_0x4d67f8){const _0x4d016c=_0x457897,_0x436c97=this[_0x4d016c(0x1d3)][_0x4d016c(0x1ad)](_0x4d67f8);_0x436c97&&requestAnimationFrame(()=>{const _0x3043ee=_0x4d016c;_0x436c97[_0x3043ee(0x1c1)](),this[_0x3043ee(0x1d3)][_0x3043ee(0x1d0)](_0x4d67f8),this[_0x3043ee(0x1cf)][_0x3043ee(0x1cd)]();});}[_0x457897(0x1a9)](){const _0xfef9f9=_0x457897;for(const _0x18d5c4 of this[_0xfef9f9(0x1d3)][_0xfef9f9(0x1c7)]())if(_0x18d5c4[_0xfef9f9(0x1b2)])return!0x0;return!0x1;}[_0x457897(0x1d5)](_0xbdb463,_0x2f181a,_0x2e418c){const _0x2ea14c=_0x457897,_0x229c12=this[_0x2ea14c(0x1d3)][_0x2ea14c(0x1ad)](_0xbdb463);if(!_0x229c12||!_0x229c12[_0x2ea14c(0x1b2)])return;const _0x53b2e6=this[_0x2ea14c(0x1cf)][_0x2ea14c(0x1d4)]();if(!_0x53b2e6)return;_0x229c12[_0x2ea14c(0x1b0)]({'target':_0x53b2e6,'limiter':this[_0x2ea14c(0x1cf)][_0x2ea14c(0x19f)]()});const _0x99cd54=this[_0x2ea14c(0x1a1)](_0x229c12);_0x99cd54&&_0x99cd54[_0x2ea14c(0x1d5)](_0x2f181a,_0x2e418c);}[_0x457897(0x1a7)](){const _0x205799=_0x457897;for(const _0x492e77 of this[_0x205799(0x1d3)][_0x205799(0x1c7)]())_0x492e77[_0x205799(0x1a7)]();this[_0x205799(0x1d3)][_0x205799(0x1bf)]();}[_0x457897(0x1be)](){const _0x20d429=_0x457897,_0x4b2cf0=new _0x5a9abc(this[_0x20d429(0x1c2)]);return _0x4b2cf0[_0x20d429(0x1c3)]({'attributes':{'class':Bc}}),this[_0x20d429(0x1b8)][_0x20d429(0x1a3)](_0x4b2cf0),_0x4b2cf0;}[_0x457897(0x1d7)]({balloonPanel:_0x358d22,source:_0x370c10,withBackButton:_0x3a6301}){const _0x41650c=_0x457897;_0x358d22[_0x41650c(0x1c4)][_0x41650c(0x1bf)]();const _0x22e8cb=this[_0x41650c(0x1ac)]({'balloonPanel':_0x358d22,'source':_0x370c10,'withBackButton':_0x3a6301});_0x358d22[_0x41650c(0x1c4)][_0x41650c(0x1a3)](_0x22e8cb);const _0x3eb94b=this[_0x41650c(0x1ba)](_0x370c10);_0x358d22[_0x41650c(0x1c4)][_0x41650c(0x1a3)](_0x3eb94b);}[_0x457897(0x1ac)]({balloonPanel:_0x4437d0,source:_0x31f294,withBackButton:_0x3b8c64}){const _0x5aa606=_0x457897,_0x419523=new _0x13baf2(this[_0x5aa606(0x1c2)],{'label':_0x31f294[_0x5aa606(0x1ce)],'class':dc});return _0x3b8c64&&_0x419523[_0x5aa606(0x19c)][_0x5aa606(0x1a3)](this[_0x5aa606(0x1a0)](_0x4437d0),0x0),_0x419523;}[_0x457897(0x1a0)](_0xf9a390){const _0x216dec=_0x457897,_0x5564f3=new _0x20416e(this[_0x216dec(0x1c2)]);return _0x5564f3[_0x216dec(0x1a5)]({'icon':_0x4f7013,'tooltip':_0x5a6a3c(this[_0x216dec(0x1c2)],_0x216dec(0x1ab)),'tooltipPosition':'n','class':mc}),_0x5564f3['on'](_0x216dec(0x1c6),()=>{const _0x49edef=_0x216dec;_0xf9a390[_0x49edef(0x1c1)](),this[_0x49edef(0x1cf)][_0x49edef(0x1bc)]();}),_0x5564f3;}[_0x457897(0x1ba)](_0x3e8926){const _0x1f199a=_0x457897,_0x3de009=new _0x564979(this[_0x1f199a(0x1c2)],{'source':_0x3e8926,'searchInputVisibleFrom':this[_0x1f199a(0x1cf)][_0x1f199a(0x1d1)]});return _0x3de009['on'](_0x1f199a(0x1a8),(_0x5e3798,_0x4d0770)=>{const _0x3a6977=_0x1f199a;this[_0x3a6977(0x1cf)][_0x3a6977(0x1b3)](_0x4d0770);}),_0x3de009['on'](_0x1f199a(0x1d9),(_0x3d1a0a,_0x9f4272)=>{const _0x4d8488=_0x1f199a;this[_0x4d8488(0x1cf)][_0x4d8488(0x1aa)](_0x9f4272[_0x4d8488(0x1bb)],_0x9f4272[_0x4d8488(0x1a4)]),this[_0x4d8488(0x1b7)](_0x3e8926['id']);}),_0x3de009;}[_0x457897(0x1a1)](_0x62a57a){const _0x378c72=_0x457897,_0x5e832c=_0x62a57a[_0x378c72(0x1c4)][_0x378c72(0x1ad)](0x1);return _0x5e832c instanceof _0x564979?_0x5e832c:null;}[_0x457897(0x1a2)](_0x5eb8af){const _0x1a5e5c=_0x457897;_0x5c7d90({'emitter':_0x5eb8af,'contextElements':[_0x5eb8af[_0x1a5e5c(0x1d6)]],'callback':()=>{const _0x4eaac5=_0x1a5e5c;_0x5eb8af[_0x4eaac5(0x1c1)](),this[_0x4eaac5(0x1cf)][_0x4eaac5(0x1cd)]();},'activator':()=>_0x5eb8af[_0x1a5e5c(0x1b2)]});}}
|