@ckeditor/ckeditor5-ai 47.7.2 → 47.7.3-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 _0x4e7675=_0x53d0;function _0x35db(){const _0x564e0b=['tab','add','ck-ai-chat-context-controls__url-form','1083416ZhLPrt','clear','fieldView','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','cancel','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','confirmButton','_createBackButton','_setupEventHandlers','getValue','length','backButton','_setupKeystrokes','551809vwJfax','shift+tab','submitUrl','_focusables','5861656bJjndT','set','AI_CHAT_CONTEXT_URL_PLACEHOLDER','2389689gOOAgb','forEach','AI_CHAT_CONTEXT_URL_LABEL','AI_CHAT_CONTEXT_URL_INVALID_ERROR','_isValidUrl','destroy','_createUrlInputField','keystrokes','listenTo','_handleSubmit','ck-ai-chat-context-controls__url-input-section','clearError','submit','urlInputField','stop','element','trim','5HYMbPD','setError','_updateConfirmButtonState','execute','input','value','_setupTemplate','ck-button-icon\x20ck-button-back','ck-button-icon','withBackButton','div','children','34864911HNFECL','AI_CHAT_CONTEXT_URL_ADD_URL','change:withBackButton','refreshBalloon','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','ck-labeled-field-view_empty','focusTracker','focusCycler','errorText','render','_createConfirmButton','isEnabled','fire','1981422rLaiWq','\x20ck-hidden','282730TAbFig','setTemplate','locale','72TeDDed','form','focus','esc','createCollection'];_0x35db=function(){return _0x564e0b;};return _0x35db();}function _0x53d0(_0x385614,_0x403305){const _0x35dbfd=_0x35db();return _0x53d0=function(_0x53d09c,_0x4e7586){_0x53d09c=_0x53d09c-0x1f3;let _0x3b7b7f=_0x35dbfd[_0x53d09c];return _0x3b7b7f;},_0x53d0(_0x385614,_0x403305);}(function(_0x5e8143,_0x22e4d4){const _0x3f857b=_0x53d0,_0x96995a=_0x5e8143();while(!![]){try{const _0x1edd99=-parseInt(_0x3f857b(0x236))/0x1+-parseInt(_0x3f857b(0x21c))/0x2+-parseInt(_0x3f857b(0x23d))/0x3+-parseInt(_0x3f857b(0x229))/0x4*(-parseInt(_0x3f857b(0x203))/0x5)+-parseInt(_0x3f857b(0x221))/0x6*(parseInt(_0x3f857b(0x21e))/0x7)+-parseInt(_0x3f857b(0x23a))/0x8+parseInt(_0x3f857b(0x20f))/0x9;if(_0x1edd99===_0x22e4d4)break;else _0x96995a['push'](_0x96995a['shift']());}catch(_0x4775d1){_0x96995a['push'](_0x96995a['shift']());}}}(_0x35db,0x8f9e7));import{FocusTracker as _0x5f3701,KeystrokeHandler as _0x18ccf5}from'ckeditor5/src/utils.js';import{ButtonView as _0x17f280,FocusCycler as _0x398bf5,LabeledFieldView as _0x583ea7,View as _0x2bda83,FormHeaderView as _0x37bb10,createLabeledInputText as _0x362df7,submitHandler as _0x18c0e3}from'ckeditor5/src/ui.js';import{IconCheck as _0x4c2f83,IconPreviousArrow as _0x3805c1}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x5de3c0}from'../../../aicore/utils/common-translations.js';const oh=_0x4e7675(0x228),ch=_0x4e7675(0x1fc);export class AIChatContextPanelUrlInputView extends _0x2bda83{[_0x4e7675(0x215)];[_0x4e7675(0x1f9)];[_0x4e7675(0x239)];[_0x4e7675(0x216)];[_0x4e7675(0x1ff)];[_0x4e7675(0x234)];[_0x4e7675(0x22f)];constructor(_0x479f03){const _0x32ab3c=_0x4e7675;super(_0x479f03),this[_0x32ab3c(0x215)]=new _0x5f3701(),this[_0x32ab3c(0x1f9)]=new _0x18ccf5(),this[_0x32ab3c(0x234)]=this[_0x32ab3c(0x230)](),this[_0x32ab3c(0x1ff)]=this[_0x32ab3c(0x1f8)](),this[_0x32ab3c(0x22f)]=this[_0x32ab3c(0x219)](),this[_0x32ab3c(0x239)]=this[_0x32ab3c(0x225)]([this[_0x32ab3c(0x234)],this[_0x32ab3c(0x1ff)],this[_0x32ab3c(0x22f)]]),this[_0x32ab3c(0x216)]=new _0x398bf5({'focusables':this[_0x32ab3c(0x239)],'focusTracker':this[_0x32ab3c(0x215)],'keystrokeHandler':this[_0x32ab3c(0x1f9)],'actions':{'focusPrevious':_0x32ab3c(0x237),'focusNext':_0x32ab3c(0x226)}}),this[_0x32ab3c(0x23b)](_0x32ab3c(0x20c),!0x0),this[_0x32ab3c(0x209)](),this[_0x32ab3c(0x231)](),this[_0x32ab3c(0x235)]();}[_0x4e7675(0x218)](){const _0x3f3266=_0x4e7675;super[_0x3f3266(0x218)](),this[_0x3f3266(0x239)][_0x3f3266(0x1f3)](_0x10edc8=>{const _0x1c3ad5=_0x3f3266;this[_0x1c3ad5(0x215)][_0x1c3ad5(0x227)](_0x10edc8[_0x1c3ad5(0x201)]),this[_0x1c3ad5(0x1f9)][_0x1c3ad5(0x1fa)](_0x10edc8[_0x1c3ad5(0x201)]);}),_0x18c0e3({'view':this}),this[_0x3f3266(0x223)]();}[_0x4e7675(0x1f7)](){const _0x245a79=_0x4e7675;super[_0x245a79(0x1f7)](),this[_0x245a79(0x215)][_0x245a79(0x1f7)](),this[_0x245a79(0x1f9)][_0x245a79(0x1f7)]();}[_0x4e7675(0x223)](){const _0x39c88a=_0x4e7675;this[_0x39c88a(0x1ff)][_0x39c88a(0x223)]();}[_0x4e7675(0x232)](){const _0x27bce9=_0x4e7675;return this[_0x27bce9(0x1ff)][_0x27bce9(0x22b)][_0x27bce9(0x201)]?.[_0x27bce9(0x208)]?.[_0x27bce9(0x202)]()||'';}[_0x4e7675(0x22a)](){const _0x4c174c=_0x4e7675;this[_0x4c174c(0x1ff)][_0x4c174c(0x22b)][_0x4c174c(0x201)][_0x4c174c(0x208)]='',this[_0x4c174c(0x1ff)][_0x4c174c(0x217)]=null,this[_0x4c174c(0x22f)][_0x4c174c(0x21a)]=!0x1;}[_0x4e7675(0x204)](_0x403c75){const _0x139c24=_0x4e7675;this[_0x139c24(0x1ff)][_0x139c24(0x217)]=_0x403c75,this[_0x139c24(0x205)](),this[_0x139c24(0x21b)](_0x139c24(0x212));}[_0x4e7675(0x1fd)](){const _0x4c9859=_0x4e7675;this[_0x4c9859(0x1ff)][_0x4c9859(0x217)]=null,this[_0x4c9859(0x205)]();}[_0x4e7675(0x230)](){const _0x4fe7bd=_0x4e7675,_0x3a6009=new _0x17f280(this[_0x4fe7bd(0x220)]);return _0x3a6009[_0x4fe7bd(0x23b)]({'icon':_0x3805c1,'tooltip':_0x5de3c0(this[_0x4fe7bd(0x220)],_0x4fe7bd(0x213)),'tooltipPosition':'n','class':[_0x4fe7bd(0x20a)]}),this['on'](_0x4fe7bd(0x211),(_0x217c02,_0x50d678,_0x3e6f07)=>{const _0x446310=_0x4fe7bd;_0x3a6009[_0x446310(0x23b)]({'class':[_0x446310(0x20a)+(_0x3e6f07?'':_0x446310(0x21d))]});}),_0x3a6009;}[_0x4e7675(0x1f8)](){const _0x1c12fc=_0x4e7675,_0x310164=new _0x583ea7(this[_0x1c12fc(0x220)],_0x362df7);return _0x310164[_0x1c12fc(0x23b)]({'label':_0x5de3c0(this[_0x1c12fc(0x220)],_0x1c12fc(0x1f4)),'class':_0x1c12fc(0x214)}),_0x310164[_0x1c12fc(0x22b)][_0x1c12fc(0x23b)]({'placeholder':_0x5de3c0(this[_0x1c12fc(0x220)],_0x1c12fc(0x23c))}),_0x310164;}[_0x4e7675(0x219)](){const _0x4bca02=_0x4e7675,_0x424e65=new _0x17f280(this[_0x4bca02(0x220)]);return _0x424e65[_0x4bca02(0x23b)]({'icon':_0x4c2f83,'tooltip':_0x5de3c0(this[_0x4bca02(0x220)],_0x4bca02(0x210)),'tooltipPosition':'n','class':_0x4bca02(0x20b),'type':_0x4bca02(0x1fe),'isEnabled':!0x1}),_0x424e65;}[_0x4e7675(0x209)](){const _0x35e165=_0x4e7675,_0x5c4408=new _0x37bb10(this[_0x35e165(0x220)],{'label':_0x5de3c0(this[_0x35e165(0x220)],_0x35e165(0x210)),'class':_0x35e165(0x22e)});_0x5c4408[_0x35e165(0x20e)][_0x35e165(0x227)](this[_0x35e165(0x234)],0x0),this[_0x35e165(0x21f)]({'tag':_0x35e165(0x222),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0x5c4408,{'tag':_0x35e165(0x20d),'attributes':{'class':ch},'children':[this[_0x35e165(0x1ff)],this[_0x35e165(0x22f)]]}]});}[_0x4e7675(0x231)](){const _0x3b2246=_0x4e7675;this[_0x3b2246(0x234)]['on'](_0x3b2246(0x206),()=>{const _0x497532=_0x3b2246;this[_0x497532(0x22a)](),this[_0x497532(0x21b)](_0x497532(0x22d));}),this[_0x3b2246(0x1ff)][_0x3b2246(0x22b)]['on'](_0x3b2246(0x207),()=>{const _0x362b47=_0x3b2246;this[_0x362b47(0x1fd)](),this[_0x362b47(0x205)](),this[_0x362b47(0x21b)](_0x362b47(0x212));}),this['on'](_0x3b2246(0x1fe),_0x2076a7=>{const _0x5c7694=_0x3b2246;_0x2076a7[_0x5c7694(0x200)](),this[_0x5c7694(0x1fb)]();});}[_0x4e7675(0x235)](){const _0x2ab96d=_0x4e7675;this[_0x2ab96d(0x1f9)][_0x2ab96d(0x23b)](_0x2ab96d(0x224),(_0x5201e1,_0x3c87fc)=>{const _0x544ddb=_0x2ab96d;this[_0x544ddb(0x22a)](),this[_0x544ddb(0x21b)](_0x544ddb(0x22d)),_0x3c87fc();});}[_0x4e7675(0x1fb)](){const _0x3e7f6e=_0x4e7675,_0x17d01c=this[_0x3e7f6e(0x232)]()[_0x3e7f6e(0x202)]();_0x17d01c?this[_0x3e7f6e(0x1f6)](_0x17d01c)?(this[_0x3e7f6e(0x1fd)](),this[_0x3e7f6e(0x21b)](_0x3e7f6e(0x238),_0x17d01c)):this[_0x3e7f6e(0x204)](_0x5de3c0(this[_0x3e7f6e(0x220)],_0x3e7f6e(0x1f5))):this[_0x3e7f6e(0x204)](_0x5de3c0(this[_0x3e7f6e(0x220)],_0x3e7f6e(0x22c)));}[_0x4e7675(0x205)](){const _0x4b0f61=_0x4e7675,_0x352527=this[_0x4b0f61(0x232)]()[_0x4b0f61(0x202)](),_0x4286b9=!!this[_0x4b0f61(0x1ff)][_0x4b0f61(0x217)];this[_0x4b0f61(0x22f)][_0x4b0f61(0x21a)]=_0x352527[_0x4b0f61(0x233)]>0x0&&!_0x4286b9;}[_0x4e7675(0x1f6)](_0x225463){try{return!!new URL(_0x225463);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x59748d=_0x58c6;function _0x5086(){const _0x44958c=['AI_CHAT_CONTEXT_FILE_LABEL','pin','ck-ai-chat-controls_context_show-more-button','element','done','showSourceResourcesBalloon','isAnyResourceBalloonVisible','_createUrlBalloonPanelView','isReadOnly','fire','updateResourceState','ck-ai-chat-context-controls__add-context-balloon-panel','319896DxIqiH','show','_handleUrlSubmit','ck-ai-chat','addUrlToContext','render','ck-ai-chat-context-controls','_resourcesBalloonView','addContextButtonView','tooltip','ck-ai-chat-context-controls__pending-contexts','southArrowNorthWest','source','_setupAddContextBalloonClickOutsideHandler','get','280695bazWMc','_getLimiterElement','removeContextItemChip','isEnabled','setTemplate','add','_overflowManager','removeContextItem','ck-ai-chat-context-controls__url-balloon-panel','addFileToContext','_setupAllBalloonClickOutsideHandlers','northArrowSouth','_hasExactlyOneSource','find','northArrowSouthEast','length','createCollection','menuitem','hide','extendTemplate','showUrlBalloonPanel','isLoading','_showSourceResourcesBalloon','_handleAddContextButtonClick','setAddContextOptions','12QuCkUY','setContextItemLoading','closeSourceResourceBalloon','isVisible','hideAddContextBalloonPanel','customItem','_currentContextsChips','label','_bindEventHandlers','northArrowSouthWest','ck-ai-chat-context-controls__balloon-button-source','_conversationContextsChips','ck-ai-chat-context-controls__add-context-button','_addContextBalloonConfig','reorganizeChips','_setupTemplate','_setAddContextButtonEnabled','ck-ai-chat-context-controls__balloon-button','document','_createBalloonButton','4tOZoZB','showAddContextBalloonPanel','addDocumentToContext','12615570PBTLon','setContainerElement','refreshBalloon','clear','cancel','_createBaseBalloonPanel','addResourceToContext','2220654uSQKBM','current','__arrow','198lYjItn','_urlInputView','withBackButton','overflowChips','southArrowNorthEast','_setBalloonPanelContent','clearCurrentContextItems','body','content','bind','_createResourcesBalloonView','_addUrlContent','searchInputVisibleFrom','_addContextBalloonPanelView','destroy','6CpYNtr','AI_CHAT_CONTEXT_ADD_CONTEXT','ck-ai-chat-context-controls__show-more-balloon-panel','execute','clearConversationContextItems','children','_addContextToCollection','8108248bPaIhf','southArrowNorth','hideUrlBalloonPanel','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','AI_CHAT_CONTEXT_URL_LABEL','_createArrowView','urls','closest','locale','setConversationContext','_removeContextFromCollection','enabled','focus','_urlBalloonPanelView','buttonView','customItems','defaultPositions','set','_setupUrlBalloonClickOutsideHandler','ck-ai-chat-context-chips-wrapper-balloon','conversation','62366xyMBWc','sources','isOn','9WKMLzL','icon','addContextItem','bodyCollection','_createContextButton','ck-ai-chat-controls-button','type','ck-reset_all-excluded','balloonView','3070739rfPGqM','_toggleAddContextBalloon','remove','isHidden','_createAddContextButtonView','_createAddContextBalloonPanelView','executeCustomItemCallback','submitUrl','files','div','loadSourceResources','populateSourceResourceBalloon','arrowView'];_0x5086=function(){return _0x44958c;};return _0x5086();}(function(_0x1c33f3,_0x500a6f){const _0xf75fd7=_0x58c6,_0x5585d6=_0x1c33f3();while(!![]){try{const _0x598bd9=-parseInt(_0xf75fd7(0x1f8))/0x1+-parseInt(_0xf75fd7(0x1c0))/0x2*(-parseInt(_0xf75fd7(0x1ca))/0x3)+parseInt(_0xf75fd7(0x1ac))/0x4*(-parseInt(_0xf75fd7(0x193))/0x5)+-parseInt(_0xf75fd7(0x1dc))/0x6*(-parseInt(_0xf75fd7(0x16b))/0x7)+-parseInt(_0xf75fd7(0x1e3))/0x8*(-parseInt(_0xf75fd7(0x162))/0x9)+-parseInt(_0xf75fd7(0x1c3))/0xa+parseInt(_0xf75fd7(0x1cd))/0xb*(-parseInt(_0xf75fd7(0x184))/0xc);if(_0x598bd9===_0x500a6f)break;else _0x5585d6['push'](_0x5585d6['shift']());}catch(_0x5909c4){_0x5585d6['push'](_0x5585d6['shift']());}}}(_0x5086,0xea7cc));import{BalloonPanelView as _0xb11eb8,ButtonView as _0x472432,clickOutsideHandler as _0x413bd1,FileDialogButtonView as _0x22554e,IconView as _0x16b6bc,View as _0x55bd1d}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x2fc908,IconDocument as _0x5bc856,IconDocumentOutline as _0x29b33d,IconDropdownArrow as _0x293270,IconLink as _0x1829b8,IconPaperClip as _0x5f2a49}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x2657df}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x58579e}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x162730}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x37e344}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x2dd124}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x59748d(0x1c2),_0x59748d(0x19c),_0x59748d(0x188),_0x59748d(0x1c9),_0x59748d(0x19a),_0x59748d(0x175),_0x59748d(0x171)];function _0x58c6(_0x141cf4,_0x20e939){const _0x5086c5=_0x5086();return _0x58c6=function(_0x58c63c,_0x206431){_0x58c63c=_0x58c63c-0x161;let _0x117ba3=_0x5086c5[_0x58c63c];return _0x117ba3;},_0x58c6(_0x141cf4,_0x20e939);}const Ro=_0x59748d(0x18a),Oo=_0x59748d(0x18e),Uo=_0x59748d(0x183),Lo=_0x59748d(0x1b8),No=_0x59748d(0x19b),Mo=_0x59748d(0x1bd),Ho=_0x59748d(0x1b6),jo=_0x59748d(0x167),Fo=_0x59748d(0x1f6),Xo=_0x59748d(0x17a),yo=_0x59748d(0x1de),Do=_0x59748d(0x187),$o=[_0xb11eb8[_0x59748d(0x1f3)][_0x59748d(0x1b5)],_0xb11eb8[_0x59748d(0x1f3)][_0x59748d(0x19e)],_0xb11eb8[_0x59748d(0x1f3)][_0x59748d(0x1a1)],_0xb11eb8[_0x59748d(0x1f3)][_0x59748d(0x18f)],_0xb11eb8[_0x59748d(0x1f3)][_0x59748d(0x1e4)],_0xb11eb8[_0x59748d(0x1f3)][_0x59748d(0x1d1)]];export class AIChatContextPanelView extends _0x55bd1d{[_0x59748d(0x18c)];[_0x59748d(0x1b2)]=this[_0x59748d(0x1a3)]();[_0x59748d(0x1b7)]=this[_0x59748d(0x1a3)]();[_0x59748d(0x199)];[_0x59748d(0x1da)];[_0x59748d(0x1f0)];[_0x59748d(0x1ce)];[_0x59748d(0x18b)];[_0x59748d(0x1b9)];[_0x59748d(0x19f)]=!0x1;[_0x59748d(0x165)];constructor(_0x1d94f2,_0x503fe7){const _0x48099e=_0x59748d;super(_0x1d94f2),this[_0x48099e(0x165)]=_0x503fe7[_0x48099e(0x165)],this[_0x48099e(0x1b2)]=this[_0x48099e(0x1a3)](),this[_0x48099e(0x1b7)]=this[_0x48099e(0x1a3)](),this[_0x48099e(0x18c)]=this[_0x48099e(0x16f)](_0x1d94f2),this[_0x48099e(0x1da)]=this[_0x48099e(0x170)](_0x1d94f2),this[_0x48099e(0x1f0)]=this[_0x48099e(0x17f)](_0x1d94f2),this[_0x48099e(0x18b)]=this[_0x48099e(0x1d7)](_0x1d94f2,_0x503fe7);const _0xeccae1={'cssClasses':{'showMoreButton':Xo,'showMoreBalloon':yo,'overflowContainer':Fo,'controlsButton':jo}};this[_0x48099e(0x199)]=new _0x162730(_0x1d94f2,this[_0x48099e(0x1b2)],_0xeccae1,this[_0x48099e(0x165)],this),this[_0x48099e(0x1b9)]={'buttonView':this[_0x48099e(0x18c)],'balloonView':this[_0x48099e(0x1da)],'hideMethod':this[_0x48099e(0x1b0)][_0x48099e(0x1d6)](this),'showMethod':this[_0x48099e(0x1c1)][_0x48099e(0x1d6)](this)},this[_0x48099e(0x1bb)](),this[_0x48099e(0x1b4)]();}[_0x59748d(0x189)](){const _0x38b249=_0x59748d;super[_0x38b249(0x189)](),this[_0x38b249(0x19d)](),this[_0x38b249(0x199)][_0x38b249(0x1c4)](this[_0x38b249(0x17b)]),this[_0x38b249(0x199)][_0x38b249(0x1ba)]();}[_0x59748d(0x1db)](){const _0x453307=_0x59748d;super[_0x453307(0x1db)](),this[_0x453307(0x199)][_0x453307(0x1db)](),this[_0x453307(0x18b)][_0x453307(0x1db)]();}[_0x59748d(0x164)](_0x3a383e,_0x45f6ca){const _0x3a5927=_0x59748d,_0x3e4d3c=this[_0x3a5927(0x166)](_0x3a383e,_0x3a5927(0x1cb),!0x0,_0x45f6ca);this[_0x3a5927(0x1e2)](_0x3e4d3c,this[_0x3a5927(0x1b2)]),this[_0x3a5927(0x199)][_0x3a5927(0x1ba)]();}[_0x59748d(0x19a)](_0x279ae3){const _0x2767c8=_0x59748d;this[_0x2767c8(0x1ed)](_0x279ae3,this[_0x2767c8(0x1b2)]),this[_0x2767c8(0x1ed)](_0x279ae3,this[_0x2767c8(0x199)][_0x2767c8(0x1d0)]),this[_0x2767c8(0x199)][_0x2767c8(0x1ba)]();}[_0x59748d(0x1ad)](_0x5970e0,_0x5117b9){const _0x27d16b=_0x59748d;let _0x262579=this[_0x27d16b(0x1b2)][_0x27d16b(0x1a0)](_0xb91982=>_0xb91982['id']===_0x5970e0);_0x262579||(_0x262579=this[_0x27d16b(0x199)][_0x27d16b(0x1d0)][_0x27d16b(0x1a0)](_0x22e4d8=>_0x22e4d8['id']===_0x5970e0)),_0x262579&&(_0x262579[_0x27d16b(0x1a8)]=_0x5117b9);}[_0x59748d(0x1ec)](_0x582e72){const _0x1d1641=_0x59748d;this[_0x1d1641(0x1b7)][_0x1d1641(0x1c6)]();for(const _0x17cdb6 of _0x582e72){const _0xaed873=this[_0x1d1641(0x166)](_0x17cdb6,_0x1d1641(0x1f7),!0x1,!0x1);this[_0x1d1641(0x1e2)](_0xaed873,this[_0x1d1641(0x1b7)]);}}[_0x59748d(0x1d3)](){const _0x1f6a84=_0x59748d;this[_0x1f6a84(0x1b2)][_0x1f6a84(0x1c6)](),this[_0x1f6a84(0x199)][_0x1f6a84(0x1c6)]();}[_0x59748d(0x1e0)](){const _0x5079fb=_0x59748d;this[_0x5079fb(0x1b7)][_0x5079fb(0x1c6)]();}[_0x59748d(0x182)](_0x1269d4,_0x3f77a2,_0x8abd08){const _0x27188a=_0x59748d;this[_0x27188a(0x18b)][_0x27188a(0x182)](_0x1269d4,_0x3f77a2,_0x8abd08);}[_0x59748d(0x1b0)](){const _0x34b710=_0x59748d;this[_0x34b710(0x16c)](!0x1);}[_0x59748d(0x1c1)](){const _0xe98020=_0x59748d;this[_0xe98020(0x16c)](!0x0);}[_0x59748d(0x1e5)](){const _0x5b366c=_0x59748d;this[_0x5b366c(0x1f0)][_0x5b366c(0x1a5)](),this[_0x5b366c(0x18c)][_0x5b366c(0x161)]=!0x1,this[_0x5b366c(0x1ce)]&&this[_0x5b366c(0x1ce)][_0x5b366c(0x1c6)]();}[_0x59748d(0x1a7)](){const _0x5a8691=_0x59748d;this[_0x5a8691(0x1f0)][_0x5a8691(0x185)](),this[_0x5a8691(0x18c)][_0x5a8691(0x161)]=!0x0;}[_0x59748d(0x1a9)]({source:_0x672d7e,withBackButton:_0x52ac00}){const _0x132ac5=_0x59748d;this[_0x132ac5(0x18b)][_0x132ac5(0x17d)]({'source':_0x672d7e,'withBackButton':_0x52ac00}),this[_0x132ac5(0x18c)][_0x132ac5(0x161)]=!0x0;}[_0x59748d(0x176)](_0x5dc8a8,_0x45394f,_0xbf4715,_0x72d5a3){const _0x5268e3=_0x59748d;this[_0x5268e3(0x18b)][_0x5268e3(0x176)](_0x5dc8a8,_0xbf4715,_0x72d5a3);}[_0x59748d(0x1ae)](_0x19b827){const _0x1ff1a6=_0x59748d;this[_0x1ff1a6(0x18b)][_0x1ff1a6(0x1ae)](_0x19b827),this[_0x1ff1a6(0x18c)][_0x1ff1a6(0x161)]=!0x1;}[_0x59748d(0x1ab)](_0x19e96a){const _0x2a00c9=_0x59748d;this[_0x2a00c9(0x1d2)](this[_0x2a00c9(0x1da)],this[_0x2a00c9(0x1eb)],_0x19e96a),this[_0x2a00c9(0x1bc)](_0x19e96a);}[_0x59748d(0x1bc)](_0x28fee5){const _0x2bc13f=_0x59748d,_0x41c75b=!_0x28fee5[_0x2bc13f(0x1be)][_0x2bc13f(0x16e)]&&_0x28fee5[_0x2bc13f(0x1be)][_0x2bc13f(0x1ee)],_0x324160=_0x28fee5[_0x2bc13f(0x1e9)][_0x2bc13f(0x1ee)],_0x265d76=_0x28fee5[_0x2bc13f(0x173)][_0x2bc13f(0x1ee)],_0x3887ef=_0x28fee5[_0x2bc13f(0x1f9)][_0x2bc13f(0x1a2)]>0x0,_0x3d4f4f=_0x28fee5[_0x2bc13f(0x1f2)]&&_0x28fee5[_0x2bc13f(0x1f2)][_0x2bc13f(0x1a2)]>0x0;this[_0x2bc13f(0x18c)][_0x2bc13f(0x196)]=_0x41c75b||_0x324160||_0x265d76||_0x3887ef||_0x3d4f4f;}[_0x59748d(0x1bb)](){const _0x195807=_0x59748d;this[_0x195807(0x197)]({'tag':_0x195807(0x174),'attributes':{'class':[Ro,_0x195807(0x169)]},'children':[{'tag':_0x195807(0x174),'attributes':{'class':Oo},'children':this[_0x195807(0x1b2)]}]});}[_0x59748d(0x1b4)](){const _0x2f11da=_0x59748d;this[_0x2f11da(0x18c)]['on'](_0x2f11da(0x1df),()=>{const _0x3ef375=_0x2f11da;this[_0x3ef375(0x1aa)]();});}[_0x59748d(0x16f)](_0x2335ba){const _0xd6a9aa=_0x59748d,_0x532918=new _0x472432(_0x2335ba);return _0x532918[_0xd6a9aa(0x1f4)]({'label':_0x37e344(_0x2335ba,_0xd6a9aa(0x1dd)),'class':jo+'\x20'+Lo,'icon':_0x5f2a49,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x532918;}[_0x59748d(0x170)](_0xb3d03f){const _0x4ab3f3=_0x59748d;return this[_0x4ab3f3(0x1c8)](_0xb3d03f,Uo);}[_0x59748d(0x17f)](_0x5a0903){const _0x267fdd=_0x59748d,_0x2ef296=this[_0x267fdd(0x1c8)](_0x5a0903,No);return this[_0x267fdd(0x1d8)](_0x2ef296,_0x5a0903),_0x2ef296;}[_0x59748d(0x1d7)](_0x1c9042,_0x51ce0e){const _0x6197b4=_0x59748d,_0x4c589f={'searchInputVisibleFrom':_0x51ce0e[_0x6197b4(0x1d9)],'onBackToContext':()=>{const _0x118d7d=_0x6197b4;this[_0x118d7d(0x1c1)](),this[_0x118d7d(0x1da)][_0x118d7d(0x179)]({'target':this[_0x118d7d(0x18c)][_0x118d7d(0x17b)],'limiter':this[_0x118d7d(0x194)](),'positions':$o});},'onResourceSelected':(_0x4dd6e8,_0x199796)=>{const _0xafa920=_0x6197b4;this[_0xafa920(0x181)](_0xafa920(0x1c9),{'source':_0x4dd6e8,'resource':_0x199796});},'onLoadSourceResources':_0x13b0e8=>{const _0x2fd4b5=_0x6197b4;this[_0x2fd4b5(0x181)](_0x2fd4b5(0x175),_0x13b0e8);},'onBalloonClosed':()=>{const _0x2169ce=_0x6197b4;this[_0x2169ce(0x18c)][_0x2169ce(0x161)]=!0x1;},'getLimiterElement':()=>this[_0x6197b4(0x194)](),'getTargetElement':()=>this[_0x6197b4(0x18c)][_0x6197b4(0x17b)]};return new _0x2dd124(_0x1c9042,_0x51ce0e[_0x6197b4(0x165)],_0x4c589f);}[_0x59748d(0x194)](){const _0x33ad09=_0x59748d;return this[_0x33ad09(0x17b)]?.[_0x33ad09(0x1ea)]('.'+Do)||document[_0x33ad09(0x1d4)];}[_0x59748d(0x1c8)](_0x259534,_0x31ac78){const _0x2bbdfd=_0x59748d,_0x2b073e=new _0xb11eb8(_0x259534);return _0x2b073e[_0x2bbdfd(0x1a6)]({'attributes':{'class':_0x31ac78}}),this[_0x2bbdfd(0x165)][_0x2bbdfd(0x198)](_0x2b073e),_0x2b073e;}[_0x59748d(0x1d2)](_0x55a1d3,_0x4d6f42,_0x19d67d){const _0x542afc=_0x59748d;if(_0x55a1d3[_0x542afc(0x1d5)][_0x542afc(0x1c6)](),!_0x19d67d[_0x542afc(0x1be)][_0x542afc(0x16e)]&&_0x19d67d[_0x542afc(0x1be)][_0x542afc(0x1ee)]){const _0xc28543=this[_0x542afc(0x1bf)](_0x4d6f42,{'label':_0x37e344(_0x4d6f42,_0x542afc(0x1e6)),'icon':_0x5bc856});_0xc28543['on'](_0x542afc(0x1df),()=>{const _0x439317=_0x542afc;this[_0x439317(0x181)](_0x439317(0x1c2)),this[_0x439317(0x1b0)]();}),_0x55a1d3[_0x542afc(0x1d5)][_0x542afc(0x198)](_0xc28543);}if(_0x19d67d[_0x542afc(0x1e9)][_0x542afc(0x1ee)]){const _0x5b7e12=this[_0x542afc(0x1bf)](_0x4d6f42,{'label':_0x37e344(_0x4d6f42,_0x542afc(0x1e7)),'icon':_0x1829b8});_0x5b7e12['on'](_0x542afc(0x1df),()=>{const _0x34fd0f=_0x542afc;this[_0x34fd0f(0x1b0)](),this[_0x34fd0f(0x1a7)](),this[_0x34fd0f(0x1f0)][_0x34fd0f(0x179)]({'target':this[_0x34fd0f(0x18c)][_0x34fd0f(0x17b)],'limiter':this[_0x34fd0f(0x194)](),'positions':$o}),this[_0x34fd0f(0x1ce)][_0x34fd0f(0x1ef)]();}),_0x55a1d3[_0x542afc(0x1d5)][_0x542afc(0x198)](_0x5b7e12);}if(_0x19d67d[_0x542afc(0x173)][_0x542afc(0x1ee)]){const _0x3ac099=new _0x22554e(_0x4d6f42);_0x3ac099[_0x542afc(0x1f4)]({'label':_0x37e344(_0x4d6f42,_0x542afc(0x178)),'icon':_0x2fc908,'withText':!0x0,'tooltip':!0x0,'class':Mo,'allowMultipleFiles':!0x0}),_0x3ac099['on'](_0x542afc(0x1df),()=>{const _0x16aa60=_0x542afc;this[_0x16aa60(0x1b0)]();}),_0x3ac099['on'](_0x542afc(0x17c),(_0x43a50d,_0x152b13)=>{const _0x791086=_0x542afc;this[_0x791086(0x181)](_0x791086(0x19c),_0x152b13);}),_0x3ac099[_0x542afc(0x18d)]=!0x0,_0x55a1d3[_0x542afc(0x1d5)][_0x542afc(0x198)](_0x3ac099);}for(const _0x405c55 of _0x19d67d[_0x542afc(0x1f9)]){const _0x1ac404=this[_0x542afc(0x1bf)](_0x4d6f42,{'label':_0x405c55[_0x542afc(0x1b3)],'icon':_0x405c55[_0x542afc(0x163)]||_0x29b33d,'type':_0x542afc(0x190)});_0x55a1d3[_0x542afc(0x1d5)][_0x542afc(0x198)](_0x1ac404),_0x1ac404['on'](_0x542afc(0x1df),()=>{const _0x479bff=_0x542afc;this[_0x479bff(0x1b0)](),this[_0x479bff(0x1a9)]({'source':_0x405c55,'withBackButton':!this[_0x479bff(0x19f)]});});}for(const _0x57188e of _0x19d67d[_0x542afc(0x1f2)]||[]){const _0x3e47d1=this[_0x542afc(0x1bf)](_0x4d6f42,{'label':_0x57188e[_0x542afc(0x1b3)],'icon':_0x57188e[_0x542afc(0x163)]||_0x29b33d,'type':_0x542afc(0x1b1)});_0x55a1d3[_0x542afc(0x1d5)][_0x542afc(0x198)](_0x3e47d1),_0x3e47d1['on'](_0x542afc(0x1df),()=>{const _0xab4637=_0x542afc;this[_0xab4637(0x1b0)](),this[_0xab4637(0x181)](_0xab4637(0x171),_0x57188e);});}this[_0x542afc(0x19f)]=0x1===_0x55a1d3[_0x542afc(0x1d5)][_0x542afc(0x1a2)],this[_0x542afc(0x1ce)][_0x542afc(0x1cf)]=!this[_0x542afc(0x19f)];}[_0x59748d(0x1d8)](_0x5ed389,_0x48eb0a){const _0x483e92=_0x59748d;this[_0x483e92(0x1ce)]=new _0x58579e(_0x48eb0a),this[_0x483e92(0x1ce)]['on'](_0x483e92(0x172),(_0xa69432,_0x34e7c6)=>{const _0x4520e4=_0x483e92;this[_0x4520e4(0x186)](_0x34e7c6);}),this[_0x483e92(0x1ce)]['on'](_0x483e92(0x1c7),()=>{const _0x597be3=_0x483e92;this[_0x597be3(0x1e5)](),this[_0x597be3(0x19f)]||(this[_0x597be3(0x1c1)](),this[_0x597be3(0x1da)][_0x597be3(0x179)]({'target':this[_0x597be3(0x18c)][_0x597be3(0x17b)],'limiter':this[_0x597be3(0x194)](),'positions':$o}));}),this[_0x483e92(0x1ce)]['on'](_0x483e92(0x1c5),()=>{const _0x29ef63=_0x483e92;this[_0x29ef63(0x1f0)][_0x29ef63(0x1af)]&&this[_0x29ef63(0x1f0)][_0x29ef63(0x179)]({'target':this[_0x29ef63(0x18c)][_0x29ef63(0x17b)],'limiter':this[_0x29ef63(0x194)](),'positions':$o});}),_0x5ed389[_0x483e92(0x1d5)][_0x483e92(0x198)](this[_0x483e92(0x1ce)]);}[_0x59748d(0x1bf)](_0x5de837,_0x24cfc1){const _0x56d414=_0x59748d,_0x34acf1=_0x56d414(0x190)===_0x24cfc1[_0x56d414(0x168)]?new SourcesBalloonButtonView(_0x5de837):new _0x472432(_0x5de837);return _0x34acf1[_0x56d414(0x1f4)]({'label':_0x24cfc1[_0x56d414(0x1b3)],'icon':_0x24cfc1[_0x56d414(0x163)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Mo}),_0x34acf1;}[_0x59748d(0x19d)](){const _0x4e5f84=_0x59748d;this[_0x4e5f84(0x191)](),this[_0x4e5f84(0x1f5)]();}[_0x59748d(0x1f5)](){const _0x3acc7f=_0x59748d;_0x413bd1({'emitter':this[_0x3acc7f(0x1f0)],'contextElements':[this[_0x3acc7f(0x1f0)][_0x3acc7f(0x17b)]],'callback':()=>{const _0xf56ac9=_0x3acc7f;this[_0xf56ac9(0x1e5)]();},'activator':()=>this[_0x3acc7f(0x1f0)][_0x3acc7f(0x1af)]});}[_0x59748d(0x16c)](_0x51e617){const _0x561a7e=_0x59748d,_0x5dfe04=this[_0x561a7e(0x1b9)];_0x5dfe04[_0x561a7e(0x1f1)][_0x561a7e(0x161)]=_0x51e617,_0x51e617?_0x5dfe04[_0x561a7e(0x16a)][_0x561a7e(0x185)]():_0x5dfe04[_0x561a7e(0x16a)][_0x561a7e(0x1a5)]();}[_0x59748d(0x191)](){const _0x3d805d=_0x59748d,{balloonView:_0x39ab54,buttonView:_0x395e06,hideMethod:_0x4e5f35}=this[_0x3d805d(0x1b9)];_0x413bd1({'emitter':_0x39ab54,'contextElements':[_0x39ab54[_0x3d805d(0x17b)],_0x395e06[_0x3d805d(0x17b)]],'callback':()=>{_0x4e5f35();},'activator':()=>_0x395e06[_0x3d805d(0x161)]&&!this[_0x3d805d(0x1f0)][_0x3d805d(0x1af)]&&!this[_0x3d805d(0x18b)][_0x3d805d(0x17e)]()});}[_0x59748d(0x166)](_0x27f2dc,_0x2fa1af,_0x1091b0=!0x1,_0x2c3f9e=!0x1){const _0x5b4359=_0x59748d,_0x418dd3=_0x5b4359(0x1f7)===_0x2fa1af||!0x0===_0x27f2dc[_0x5b4359(0x180)],_0x15c3ee=new _0x2657df(this[_0x5b4359(0x1eb)],_0x27f2dc,_0x418dd3,_0x1091b0,_0x2c3f9e);return _0x418dd3||_0x15c3ee['on'](_0x5b4359(0x195),()=>{const _0x125151=_0x5b4359;this[_0x125151(0x181)](_0x125151(0x19a),_0x15c3ee['id']);}),_0x15c3ee;}[_0x59748d(0x1e2)](_0x1885a4,_0x8dbd19){const _0x15fce4=_0x59748d;_0x8dbd19[_0x15fce4(0x198)](_0x1885a4,0x0);}[_0x59748d(0x1ed)](_0x20e495,_0x527a7b){const _0x491c35=_0x59748d,_0x30e67a=_0x527a7b[_0x491c35(0x1a0)](_0x342b07=>_0x342b07['id']===_0x20e495);_0x30e67a&&_0x527a7b[_0x491c35(0x16d)](_0x30e67a);}[_0x59748d(0x1aa)](){const _0x405878=_0x59748d;this[_0x405878(0x18c)][_0x405878(0x161)]?this[_0x405878(0x1b0)]():(this[_0x405878(0x1c1)](),this[_0x405878(0x1da)][_0x405878(0x179)]({'target':this[_0x405878(0x18c)][_0x405878(0x17b)],'limiter':this[_0x405878(0x194)](),'positions':$o}),this[_0x405878(0x19f)]&&this[_0x405878(0x1da)][_0x405878(0x1d5)][_0x405878(0x192)](0x0)?.[_0x405878(0x181)](_0x405878(0x1df)));}[_0x59748d(0x186)](_0x381460){const _0x4ba9b8=_0x59748d;this[_0x4ba9b8(0x1ce)][_0x4ba9b8(0x1c6)](),this[_0x4ba9b8(0x1e5)](),this[_0x4ba9b8(0x181)](_0x4ba9b8(0x188),_0x381460);}}export class SourcesBalloonButtonView extends _0x472432{[_0x59748d(0x177)];constructor(_0x4955b3){const _0x3c2187=_0x59748d;super(_0x4955b3),this[_0x3c2187(0x1f4)]({'withText':!0x0,'role':_0x3c2187(0x1a4)}),this[_0x3c2187(0x177)]=this[_0x3c2187(0x1e8)](),this[_0x3c2187(0x1a6)]({'attributes':{'class':[Ho]}});}[_0x59748d(0x189)](){const _0x360822=_0x59748d;super[_0x360822(0x189)](),this[_0x360822(0x1e1)][_0x360822(0x198)](this[_0x360822(0x177)]);}[_0x59748d(0x1e8)](){const _0x28774c=_0x59748d,_0x4865b0=new _0x16b6bc();return _0x4865b0[_0x28774c(0x1d5)]=_0x293270,_0x4865b0[_0x28774c(0x1a6)]({'attributes':{'class':Ho+_0x28774c(0x1cc)}}),_0x4865b0;}}
|
|
23
|
+
const _0x19ef1d=_0x3280;(function(_0x53b39b,_0x6cc168){const _0x1aae0c=_0x3280,_0x43072c=_0x53b39b();while(!![]){try{const _0xf83088=-parseInt(_0x1aae0c(0xe9))/0x1*(-parseInt(_0x1aae0c(0x131))/0x2)+parseInt(_0x1aae0c(0x15c))/0x3+parseInt(_0x1aae0c(0x102))/0x4+parseInt(_0x1aae0c(0x150))/0x5*(-parseInt(_0x1aae0c(0x13f))/0x6)+parseInt(_0x1aae0c(0xe3))/0x7*(parseInt(_0x1aae0c(0xd9))/0x8)+-parseInt(_0x1aae0c(0x120))/0x9+-parseInt(_0x1aae0c(0x163))/0xa;if(_0xf83088===_0x6cc168)break;else _0x43072c['push'](_0x43072c['shift']());}catch(_0x35260a){_0x43072c['push'](_0x43072c['shift']());}}}(_0x4c81,0xd927d));function _0x4c81(){const _0x237af3=['_setAddContextButtonEnabled','current','6626916cGGGJJ','_setupUrlBalloonClickOutsideHandler','isOn','show','_conversationContextsChips','length','buttonView','add','customItems','ck-ai-chat-context-controls','updateResourceState','files','_createUrlBalloonPanelView','createCollection','source','setContextItemLoading','_createBalloonButton','defaultPositions','_createBaseBalloonPanel','ck-reset_all-excluded','clearConversationContextItems','AI_CHAT_CONTEXT_FILE_LABEL','northArrowSouthEast','setConversationContext','setTemplate','balloonView','_setBalloonPanelContent','destroy','_handleUrlSubmit','icon','2896533eMhmEH','_addUrlContent','_setupTemplate','element','_createAddContextButtonView','addResourceToContext','northArrowSouth','render','find','hideUrlBalloonPanel','done','_showSourceResourcesBalloon','_addContextToCollection','ck-ai-chat-controls-button','isLoading','hideAddContextBalloonPanel','bind','194812kjLcZI','__arrow','hide','type','bodyCollection','content','addContextItem','arrowView','AI_CHAT_CONTEXT_ADD_CONTEXT','menuitem','southArrowNorthEast','removeContextItem','execute','_createArrowView','9510900EHGmgm','removeContextItemChip','AI_CHAT_CONTEXT_URL_LABEL','refreshBalloon','_addContextBalloonConfig','isEnabled','_bindEventHandlers','withBackButton','isHidden','div','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_toggleAddContextBalloon','_createResourcesBalloonView','fire','showSourceResourcesBalloon','enabled','ck-ai-chat-context-controls__add-context-button','5cbgdTe','children','overflowChips','ck-ai-chat-context-controls__pending-contexts','remove','ck-ai-chat-context-chips-wrapper-balloon','get','_urlBalloonPanelView','_setupAddContextBalloonClickOutsideHandler','ck-ai-chat-context-controls__url-balloon-panel','pin','document','2880459pIwjAp','_createAddContextBalloonPanelView','_handleAddContextButtonClick','reorganizeChips','addFileToContext','_overflowManager','label','20096880GEOCkx','showUrlBalloonPanel','ck-ai-chat-context-controls__balloon-button-source','clearCurrentContextItems','urls','ck-ai-chat-context-controls__show-more-balloon-panel','ck-ai-chat-controls_context_show-more-button','focus','set','_resourcesBalloonView','executeCustomItemCallback','_urlInputView','sources','368UpdkWl','conversation','_setupAllBalloonClickOutsideHandlers','_getLimiterElement','body','populateSourceResourceBalloon','ck-ai-chat','isAnyResourceBalloonVisible','isReadOnly','southArrowNorth','229390mOnasa','closeSourceResourceBalloon','loadSourceResources','extendTemplate','customItem','tooltip','7TUxkLo','isVisible','ck-ai-chat-context-controls__add-context-balloon-panel','clear','_createContextButton','addContextButtonView','closest','northArrowSouthWest','setContainerElement','_currentContextsChips','locale','submitUrl','searchInputVisibleFrom','cancel','_removeContextFromCollection','setAddContextOptions','addUrlToContext','_addContextBalloonPanelView','_hasExactlyOneSource','southArrowNorthWest','showAddContextBalloonPanel','addDocumentToContext','ck-ai-chat-context-controls__balloon-button'];_0x4c81=function(){return _0x237af3;};return _0x4c81();}import{BalloonPanelView as _0x3b300b,ButtonView as _0x19ecd2,clickOutsideHandler as _0x409a2b,FileDialogButtonView as _0x4ddd35,IconView as _0x15153d,View as _0x5258ec}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x3869a4,IconDocument as _0x356087,IconDocumentOutline as _0x38080e,IconDropdownArrow as _0x1d218c,IconLink as _0x327c00,IconPaperClip as _0x34185b}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x4b7da2}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x5d171a}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x23e316}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x3b5454}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x5af95a}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x19ef1d(0xfe),_0x19ef1d(0x160),_0x19ef1d(0xf9),_0x19ef1d(0x125),_0x19ef1d(0x13c),_0x19ef1d(0xe5),_0x19ef1d(0xd6)];const Ro=_0x19ef1d(0x10b),Oo=_0x19ef1d(0x153),Uo=_0x19ef1d(0xeb),Lo=_0x19ef1d(0x14f),No=_0x19ef1d(0x159),Mo=_0x19ef1d(0xff),Ho=_0x19ef1d(0x165),jo=_0x19ef1d(0x12d),Fo=_0x19ef1d(0x155),Xo=_0x19ef1d(0x169),yo=_0x19ef1d(0x168),Do=_0x19ef1d(0xdf),$o=[_0x3b300b[_0x19ef1d(0x113)][_0x19ef1d(0xf0)],_0x3b300b[_0x19ef1d(0x113)][_0x19ef1d(0x126)],_0x3b300b[_0x19ef1d(0x113)][_0x19ef1d(0x118)],_0x3b300b[_0x19ef1d(0x113)][_0x19ef1d(0xfc)],_0x3b300b[_0x19ef1d(0x113)][_0x19ef1d(0xe2)],_0x3b300b[_0x19ef1d(0x113)][_0x19ef1d(0x13b)]];function _0x3280(_0x18ddb8,_0x5f3a64){const _0x4c8158=_0x4c81();return _0x3280=function(_0x328083,_0x425c8d){_0x328083=_0x328083-0xd5;let _0x4772c9=_0x4c8158[_0x328083];return _0x4772c9;},_0x3280(_0x18ddb8,_0x5f3a64);}export class AIChatContextPanelView extends _0x5258ec{[_0x19ef1d(0xee)];[_0x19ef1d(0xf2)]=this[_0x19ef1d(0x10f)]();[_0x19ef1d(0x106)]=this[_0x19ef1d(0x10f)]();[_0x19ef1d(0x161)];[_0x19ef1d(0xfa)];[_0x19ef1d(0x157)];[_0x19ef1d(0xd7)];[_0x19ef1d(0xd5)];[_0x19ef1d(0x143)];[_0x19ef1d(0xfb)]=!0x1;[_0x19ef1d(0x135)];constructor(_0x26481a,_0x45aa93){const _0xbade88=_0x19ef1d;super(_0x26481a),this[_0xbade88(0x135)]=_0x45aa93[_0xbade88(0x135)],this[_0xbade88(0xf2)]=this[_0xbade88(0x10f)](),this[_0xbade88(0x106)]=this[_0xbade88(0x10f)](),this[_0xbade88(0xee)]=this[_0xbade88(0x124)](_0x26481a),this[_0xbade88(0xfa)]=this[_0xbade88(0x15d)](_0x26481a),this[_0xbade88(0x157)]=this[_0xbade88(0x10e)](_0x26481a),this[_0xbade88(0xd5)]=this[_0xbade88(0x14b)](_0x26481a,_0x45aa93);const _0x5cc637={'cssClasses':{'showMoreButton':Xo,'showMoreBalloon':yo,'overflowContainer':Fo,'controlsButton':jo}};this[_0xbade88(0x161)]=new _0x23e316(_0x26481a,this[_0xbade88(0xf2)],_0x5cc637,this[_0xbade88(0x135)],this),this[_0xbade88(0x143)]={'buttonView':this[_0xbade88(0xee)],'balloonView':this[_0xbade88(0xfa)],'hideMethod':this[_0xbade88(0x12f)][_0xbade88(0x130)](this),'showMethod':this[_0xbade88(0xfd)][_0xbade88(0x130)](this)},this[_0xbade88(0x122)](),this[_0xbade88(0x145)]();}[_0x19ef1d(0x127)](){const _0x18e2a9=_0x19ef1d;super[_0x18e2a9(0x127)](),this[_0x18e2a9(0xdb)](),this[_0x18e2a9(0x161)][_0x18e2a9(0xf1)](this[_0x18e2a9(0x123)]),this[_0x18e2a9(0x161)][_0x18e2a9(0x15f)]();}[_0x19ef1d(0x11d)](){const _0x1f51d1=_0x19ef1d;super[_0x1f51d1(0x11d)](),this[_0x1f51d1(0x161)][_0x1f51d1(0x11d)](),this[_0x1f51d1(0xd5)][_0x1f51d1(0x11d)]();}[_0x19ef1d(0x137)](_0x387469,_0xdab064){const _0x386398=_0x19ef1d,_0x40c56a=this[_0x386398(0xed)](_0x387469,_0x386398(0x101),!0x0,_0xdab064);this[_0x386398(0x12c)](_0x40c56a,this[_0x386398(0xf2)]),this[_0x386398(0x161)][_0x386398(0x15f)]();}[_0x19ef1d(0x13c)](_0x1936b8){const _0x40b520=_0x19ef1d;this[_0x40b520(0xf7)](_0x1936b8,this[_0x40b520(0xf2)]),this[_0x40b520(0xf7)](_0x1936b8,this[_0x40b520(0x161)][_0x40b520(0x152)]),this[_0x40b520(0x161)][_0x40b520(0x15f)]();}[_0x19ef1d(0x111)](_0x2492ec,_0x27fb2a){const _0x575b08=_0x19ef1d;let _0x322101=this[_0x575b08(0xf2)][_0x575b08(0x128)](_0x5e202c=>_0x5e202c['id']===_0x2492ec);_0x322101||(_0x322101=this[_0x575b08(0x161)][_0x575b08(0x152)][_0x575b08(0x128)](_0x2c8020=>_0x2c8020['id']===_0x2492ec)),_0x322101&&(_0x322101[_0x575b08(0x12e)]=_0x27fb2a);}[_0x19ef1d(0x119)](_0x54cf9f){const _0x28edf1=_0x19ef1d;this[_0x28edf1(0x106)][_0x28edf1(0xec)]();for(const _0x4f8922 of _0x54cf9f){const _0xe12405=this[_0x28edf1(0xed)](_0x4f8922,_0x28edf1(0xda),!0x1,!0x1);this[_0x28edf1(0x12c)](_0xe12405,this[_0x28edf1(0x106)]);}}[_0x19ef1d(0x166)](){const _0x212563=_0x19ef1d;this[_0x212563(0xf2)][_0x212563(0xec)](),this[_0x212563(0x161)][_0x212563(0xec)]();}[_0x19ef1d(0x116)](){const _0x760430=_0x19ef1d;this[_0x760430(0x106)][_0x760430(0xec)]();}[_0x19ef1d(0x10c)](_0x4474db,_0xbbdf19,_0x11c434){const _0x150440=_0x19ef1d;this[_0x150440(0xd5)][_0x150440(0x10c)](_0x4474db,_0xbbdf19,_0x11c434);}[_0x19ef1d(0x12f)](){const _0x55c230=_0x19ef1d;this[_0x55c230(0x14a)](!0x1);}[_0x19ef1d(0xfd)](){const _0x12788a=_0x19ef1d;this[_0x12788a(0x14a)](!0x0);}[_0x19ef1d(0x129)](){const _0x4ec314=_0x19ef1d;this[_0x4ec314(0x157)][_0x4ec314(0x133)](),this[_0x4ec314(0xee)][_0x4ec314(0x104)]=!0x1,this[_0x4ec314(0xd7)]&&this[_0x4ec314(0xd7)][_0x4ec314(0xec)]();}[_0x19ef1d(0x164)](){const _0x502b58=_0x19ef1d;this[_0x502b58(0x157)][_0x502b58(0x105)](),this[_0x502b58(0xee)][_0x502b58(0x104)]=!0x0;}[_0x19ef1d(0x12b)]({source:_0x20cbbf,withBackButton:_0x219c6b}){const _0x3d4ca6=_0x19ef1d;this[_0x3d4ca6(0xd5)][_0x3d4ca6(0x14d)]({'source':_0x20cbbf,'withBackButton':_0x219c6b}),this[_0x3d4ca6(0xee)][_0x3d4ca6(0x104)]=!0x0;}[_0x19ef1d(0xde)](_0x5ccf6e,_0x4da134,_0x194061,_0xdd7249){const _0x106967=_0x19ef1d;this[_0x106967(0xd5)][_0x106967(0xde)](_0x5ccf6e,_0x194061,_0xdd7249);}[_0x19ef1d(0xe4)](_0x3eccba){const _0x2212f7=_0x19ef1d;this[_0x2212f7(0xd5)][_0x2212f7(0xe4)](_0x3eccba),this[_0x2212f7(0xee)][_0x2212f7(0x104)]=!0x1;}[_0x19ef1d(0xf8)](_0x51310a){const _0x227fc8=_0x19ef1d;this[_0x227fc8(0x11c)](this[_0x227fc8(0xfa)],this[_0x227fc8(0xf3)],_0x51310a),this[_0x227fc8(0x100)](_0x51310a);}[_0x19ef1d(0x100)](_0x4824a5){const _0x5e706f=_0x19ef1d,_0x221bc3=!_0x4824a5[_0x5e706f(0x15b)][_0x5e706f(0x147)]&&_0x4824a5[_0x5e706f(0x15b)][_0x5e706f(0x14e)],_0x186b63=_0x4824a5[_0x5e706f(0x167)][_0x5e706f(0x14e)],_0x42961b=_0x4824a5[_0x5e706f(0x10d)][_0x5e706f(0x14e)],_0x109e24=_0x4824a5[_0x5e706f(0xd8)][_0x5e706f(0x107)]>0x0,_0x141e4a=_0x4824a5[_0x5e706f(0x10a)]&&_0x4824a5[_0x5e706f(0x10a)][_0x5e706f(0x107)]>0x0;this[_0x5e706f(0xee)][_0x5e706f(0x144)]=_0x221bc3||_0x186b63||_0x42961b||_0x109e24||_0x141e4a;}[_0x19ef1d(0x122)](){const _0xe40910=_0x19ef1d;this[_0xe40910(0x11a)]({'tag':_0xe40910(0x148),'attributes':{'class':[Ro,_0xe40910(0x115)]},'children':[{'tag':_0xe40910(0x148),'attributes':{'class':Oo},'children':this[_0xe40910(0xf2)]}]});}[_0x19ef1d(0x145)](){const _0x2f36e0=_0x19ef1d;this[_0x2f36e0(0xee)]['on'](_0x2f36e0(0x13d),()=>{const _0x27bdce=_0x2f36e0;this[_0x27bdce(0x15e)]();});}[_0x19ef1d(0x124)](_0x2d4fa1){const _0x29d489=_0x19ef1d,_0x4db254=new _0x19ecd2(_0x2d4fa1);return _0x4db254[_0x29d489(0x16b)]({'label':_0x3b5454(_0x2d4fa1,_0x29d489(0x139)),'class':jo+'\x20'+Lo,'icon':_0x34185b,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x4db254;}[_0x19ef1d(0x15d)](_0x40f692){const _0x3fd22d=_0x19ef1d;return this[_0x3fd22d(0x114)](_0x40f692,Uo);}[_0x19ef1d(0x10e)](_0x4bdcae){const _0x2a283a=_0x19ef1d,_0x5bcd22=this[_0x2a283a(0x114)](_0x4bdcae,No);return this[_0x2a283a(0x121)](_0x5bcd22,_0x4bdcae),_0x5bcd22;}[_0x19ef1d(0x14b)](_0x38a23b,_0x24d310){const _0x5863cd=_0x19ef1d,_0x513eba={'searchInputVisibleFrom':_0x24d310[_0x5863cd(0xf5)],'onBackToContext':()=>{const _0x4dce30=_0x5863cd;this[_0x4dce30(0xfd)](),this[_0x4dce30(0xfa)][_0x4dce30(0x15a)]({'target':this[_0x4dce30(0xee)][_0x4dce30(0x123)],'limiter':this[_0x4dce30(0xdc)](),'positions':$o});},'onResourceSelected':(_0x3f30af,_0x196b18)=>{const _0x4d4a51=_0x5863cd;this[_0x4d4a51(0x14c)](_0x4d4a51(0x125),{'source':_0x3f30af,'resource':_0x196b18});},'onLoadSourceResources':_0x1dbd61=>{const _0x67d04c=_0x5863cd;this[_0x67d04c(0x14c)](_0x67d04c(0xe5),_0x1dbd61);},'onBalloonClosed':()=>{const _0x154ab6=_0x5863cd;this[_0x154ab6(0xee)][_0x154ab6(0x104)]=!0x1;},'getLimiterElement':()=>this[_0x5863cd(0xdc)](),'getTargetElement':()=>this[_0x5863cd(0xee)][_0x5863cd(0x123)]};return new _0x5af95a(_0x38a23b,_0x24d310[_0x5863cd(0x135)],_0x513eba);}[_0x19ef1d(0xdc)](){const _0x356f50=_0x19ef1d;return this[_0x356f50(0x123)]?.[_0x356f50(0xef)]('.'+Do)||document[_0x356f50(0xdd)];}[_0x19ef1d(0x114)](_0xf35f7d,_0x18919b){const _0x4f3760=_0x19ef1d,_0x32af4b=new _0x3b300b(_0xf35f7d);return _0x32af4b[_0x4f3760(0xe6)]({'attributes':{'class':_0x18919b}}),this[_0x4f3760(0x135)][_0x4f3760(0x109)](_0x32af4b),_0x32af4b;}[_0x19ef1d(0x11c)](_0x119204,_0x489f21,_0x19b766){const _0x284a30=_0x19ef1d;if(_0x119204[_0x284a30(0x136)][_0x284a30(0xec)](),!_0x19b766[_0x284a30(0x15b)][_0x284a30(0x147)]&&_0x19b766[_0x284a30(0x15b)][_0x284a30(0x14e)]){const _0x4bbed3=this[_0x284a30(0x112)](_0x489f21,{'label':_0x3b5454(_0x489f21,_0x284a30(0x149)),'icon':_0x356087});_0x4bbed3['on'](_0x284a30(0x13d),()=>{const _0x4d9575=_0x284a30;this[_0x4d9575(0x14c)](_0x4d9575(0xfe)),this[_0x4d9575(0x12f)]();}),_0x119204[_0x284a30(0x136)][_0x284a30(0x109)](_0x4bbed3);}if(_0x19b766[_0x284a30(0x167)][_0x284a30(0x14e)]){const _0x3081ba=this[_0x284a30(0x112)](_0x489f21,{'label':_0x3b5454(_0x489f21,_0x284a30(0x141)),'icon':_0x327c00});_0x3081ba['on'](_0x284a30(0x13d),()=>{const _0x35614a=_0x284a30;this[_0x35614a(0x12f)](),this[_0x35614a(0x164)](),this[_0x35614a(0x157)][_0x35614a(0x15a)]({'target':this[_0x35614a(0xee)][_0x35614a(0x123)],'limiter':this[_0x35614a(0xdc)](),'positions':$o}),this[_0x35614a(0xd7)][_0x35614a(0x16a)]();}),_0x119204[_0x284a30(0x136)][_0x284a30(0x109)](_0x3081ba);}if(_0x19b766[_0x284a30(0x10d)][_0x284a30(0x14e)]){const _0x3ea3ce=new _0x4ddd35(_0x489f21);_0x3ea3ce[_0x284a30(0x16b)]({'label':_0x3b5454(_0x489f21,_0x284a30(0x117)),'icon':_0x3869a4,'withText':!0x0,'tooltip':!0x0,'class':Mo,'allowMultipleFiles':!0x0}),_0x3ea3ce['on'](_0x284a30(0x13d),()=>{const _0x8ed303=_0x284a30;this[_0x8ed303(0x12f)]();}),_0x3ea3ce['on'](_0x284a30(0x12a),(_0x123a4e,_0x29e846)=>{const _0x475af5=_0x284a30;this[_0x475af5(0x14c)](_0x475af5(0x160),_0x29e846);}),_0x3ea3ce[_0x284a30(0xe8)]=!0x0,_0x119204[_0x284a30(0x136)][_0x284a30(0x109)](_0x3ea3ce);}for(const _0x16f8ca of _0x19b766[_0x284a30(0xd8)]){const _0x4b9756=this[_0x284a30(0x112)](_0x489f21,{'label':_0x16f8ca[_0x284a30(0x162)],'icon':_0x16f8ca[_0x284a30(0x11f)]||_0x38080e,'type':_0x284a30(0x110)});_0x119204[_0x284a30(0x136)][_0x284a30(0x109)](_0x4b9756),_0x4b9756['on'](_0x284a30(0x13d),()=>{const _0x1a4c34=_0x284a30;this[_0x1a4c34(0x12f)](),this[_0x1a4c34(0x12b)]({'source':_0x16f8ca,'withBackButton':!this[_0x1a4c34(0xfb)]});});}for(const _0x475821 of _0x19b766[_0x284a30(0x10a)]||[]){const _0x2fe64c=this[_0x284a30(0x112)](_0x489f21,{'label':_0x475821[_0x284a30(0x162)],'icon':_0x475821[_0x284a30(0x11f)]||_0x38080e,'type':_0x284a30(0xe7)});_0x119204[_0x284a30(0x136)][_0x284a30(0x109)](_0x2fe64c),_0x2fe64c['on'](_0x284a30(0x13d),()=>{const _0x55e50c=_0x284a30;this[_0x55e50c(0x12f)](),this[_0x55e50c(0x14c)](_0x55e50c(0xd6),_0x475821);});}this[_0x284a30(0xfb)]=0x1===_0x119204[_0x284a30(0x136)][_0x284a30(0x107)],this[_0x284a30(0xd7)][_0x284a30(0x146)]=!this[_0x284a30(0xfb)];}[_0x19ef1d(0x121)](_0x3921c7,_0x165365){const _0x514a67=_0x19ef1d;this[_0x514a67(0xd7)]=new _0x5d171a(_0x165365),this[_0x514a67(0xd7)]['on'](_0x514a67(0xf4),(_0x18ff15,_0x112b29)=>{const _0x2459ef=_0x514a67;this[_0x2459ef(0x11e)](_0x112b29);}),this[_0x514a67(0xd7)]['on'](_0x514a67(0xf6),()=>{const _0x5d089e=_0x514a67;this[_0x5d089e(0x129)](),this[_0x5d089e(0xfb)]||(this[_0x5d089e(0xfd)](),this[_0x5d089e(0xfa)][_0x5d089e(0x15a)]({'target':this[_0x5d089e(0xee)][_0x5d089e(0x123)],'limiter':this[_0x5d089e(0xdc)](),'positions':$o}));}),this[_0x514a67(0xd7)]['on'](_0x514a67(0x142),()=>{const _0x3bceff=_0x514a67;this[_0x3bceff(0x157)][_0x3bceff(0xea)]&&this[_0x3bceff(0x157)][_0x3bceff(0x15a)]({'target':this[_0x3bceff(0xee)][_0x3bceff(0x123)],'limiter':this[_0x3bceff(0xdc)](),'positions':$o});}),_0x3921c7[_0x514a67(0x136)][_0x514a67(0x109)](this[_0x514a67(0xd7)]);}[_0x19ef1d(0x112)](_0x3b4676,_0x5a1c33){const _0x4a930d=_0x19ef1d,_0x2c7773=_0x4a930d(0x110)===_0x5a1c33[_0x4a930d(0x134)]?new SourcesBalloonButtonView(_0x3b4676):new _0x19ecd2(_0x3b4676);return _0x2c7773[_0x4a930d(0x16b)]({'label':_0x5a1c33[_0x4a930d(0x162)],'icon':_0x5a1c33[_0x4a930d(0x11f)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Mo}),_0x2c7773;}[_0x19ef1d(0xdb)](){const _0x48c9e1=_0x19ef1d;this[_0x48c9e1(0x158)](),this[_0x48c9e1(0x103)]();}[_0x19ef1d(0x103)](){const _0x28bf96=_0x19ef1d;_0x409a2b({'emitter':this[_0x28bf96(0x157)],'contextElements':[this[_0x28bf96(0x157)][_0x28bf96(0x123)]],'callback':()=>{const _0x186d15=_0x28bf96;this[_0x186d15(0x129)]();},'activator':()=>this[_0x28bf96(0x157)][_0x28bf96(0xea)]});}[_0x19ef1d(0x14a)](_0x1077a1){const _0x354310=_0x19ef1d,_0x3b182f=this[_0x354310(0x143)];_0x3b182f[_0x354310(0x108)][_0x354310(0x104)]=_0x1077a1,_0x1077a1?_0x3b182f[_0x354310(0x11b)][_0x354310(0x105)]():_0x3b182f[_0x354310(0x11b)][_0x354310(0x133)]();}[_0x19ef1d(0x158)](){const _0x38321a=_0x19ef1d,{balloonView:_0x3b6783,buttonView:_0x35ae4d,hideMethod:_0x1a6480}=this[_0x38321a(0x143)];_0x409a2b({'emitter':_0x3b6783,'contextElements':[_0x3b6783[_0x38321a(0x123)],_0x35ae4d[_0x38321a(0x123)]],'callback':()=>{_0x1a6480();},'activator':()=>_0x35ae4d[_0x38321a(0x104)]&&!this[_0x38321a(0x157)][_0x38321a(0xea)]&&!this[_0x38321a(0xd5)][_0x38321a(0xe0)]()});}[_0x19ef1d(0xed)](_0x32c2a7,_0x12e531,_0x1e5866=!0x1,_0x575aed=!0x1){const _0x27218c=_0x19ef1d,_0x2565cd=_0x27218c(0xda)===_0x12e531||!0x0===_0x32c2a7[_0x27218c(0xe1)],_0x27a3b5=new _0x4b7da2(this[_0x27218c(0xf3)],_0x32c2a7,_0x2565cd,_0x1e5866,_0x575aed);return _0x2565cd||_0x27a3b5['on'](_0x27218c(0x140),()=>{const _0xd1beda=_0x27218c;this[_0xd1beda(0x14c)](_0xd1beda(0x13c),_0x27a3b5['id']);}),_0x27a3b5;}[_0x19ef1d(0x12c)](_0x31646e,_0x1bb0ad){const _0x1646f7=_0x19ef1d;_0x1bb0ad[_0x1646f7(0x109)](_0x31646e,0x0);}[_0x19ef1d(0xf7)](_0xcb8276,_0x5e7d8c){const _0x43003e=_0x19ef1d,_0x541a55=_0x5e7d8c[_0x43003e(0x128)](_0x456853=>_0x456853['id']===_0xcb8276);_0x541a55&&_0x5e7d8c[_0x43003e(0x154)](_0x541a55);}[_0x19ef1d(0x15e)](){const _0x5d6bc8=_0x19ef1d;this[_0x5d6bc8(0xee)][_0x5d6bc8(0x104)]?this[_0x5d6bc8(0x12f)]():(this[_0x5d6bc8(0xfd)](),this[_0x5d6bc8(0xfa)][_0x5d6bc8(0x15a)]({'target':this[_0x5d6bc8(0xee)][_0x5d6bc8(0x123)],'limiter':this[_0x5d6bc8(0xdc)](),'positions':$o}),this[_0x5d6bc8(0xfb)]&&this[_0x5d6bc8(0xfa)][_0x5d6bc8(0x136)][_0x5d6bc8(0x156)](0x0)?.[_0x5d6bc8(0x14c)](_0x5d6bc8(0x13d)));}[_0x19ef1d(0x11e)](_0x215d32){const _0x47aa03=_0x19ef1d;this[_0x47aa03(0xd7)][_0x47aa03(0xec)](),this[_0x47aa03(0x129)](),this[_0x47aa03(0x14c)](_0x47aa03(0xf9),_0x215d32);}}export class SourcesBalloonButtonView extends _0x19ecd2{[_0x19ef1d(0x138)];constructor(_0x5381a6){const _0x49c5aa=_0x19ef1d;super(_0x5381a6),this[_0x49c5aa(0x16b)]({'withText':!0x0,'role':_0x49c5aa(0x13a)}),this[_0x49c5aa(0x138)]=this[_0x49c5aa(0x13e)](),this[_0x49c5aa(0xe6)]({'attributes':{'class':[Ho]}});}[_0x19ef1d(0x127)](){const _0x18655d=_0x19ef1d;super[_0x18655d(0x127)](),this[_0x18655d(0x151)][_0x18655d(0x109)](this[_0x18655d(0x138)]);}[_0x19ef1d(0x13e)](){const _0xf7c437=_0x19ef1d,_0x5b9e7f=new _0x15153d();return _0x5b9e7f[_0xf7c437(0x136)]=_0x1d218c,_0x5b9e7f[_0xf7c437(0xe6)]({'attributes':{'class':Ho+_0xf7c437(0x132)}}),_0x5b9e7f;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34333c=_0x1982;(function(_0x195127,_0x593927){const _0xa7c218=_0x1982,_0x32b7d9=_0x195127();while(!![]){try{const _0x165450=-parseInt(_0xa7c218(0xf7))/0x1+parseInt(_0xa7c218(0xfe))/0x2*(parseInt(_0xa7c218(0xf8))/0x3)+-parseInt(_0xa7c218(0xf5))/0x4+-parseInt(_0xa7c218(0xfb))/0x5+-parseInt(_0xa7c218(0xec))/0x6*(-parseInt(_0xa7c218(0xef))/0x7)+parseInt(_0xa7c218(0xe8))/0x8+-parseInt(_0xa7c218(0xf1))/0x9*(-parseInt(_0xa7c218(0xfd))/0xa);if(_0x165450===_0x593927)break;else _0x32b7d9['push'](_0x32b7d9['shift']());}catch(_0x1a5b55){_0x32b7d9['push'](_0x32b7d9['shift']());}}}(_0x2467,0x78139));function _0x2467(){const _0x173780=['4322946AZNAKW','setTemplate','abortPromptStream','7UxZtKx','AI_CHAT_IS_WRITING','81TsCfEx','ck-reset_all','ck-ai-chat-controls-loader-wrapper','ck-ai-chat-controls-loader-icon-dot','1216300dTTyiS','fire','738846yXnsoa','996MAKzaC','ck-ai-chat-controls-loader-icon','_createLoaderView','3088095ZQrUaI','div','1083370jwOhlA','66LjFBfT','_loaderView','_createCancelButtonView','set','_cancelButtonView','locale','AI_CHAT_STOP_GENERATING','3567144thzZGj','ck-ai-button-secondary\x20ck-ai-button-stop-generating','ck-ai-chat-controls-loader','execute'];_0x2467=function(){return _0x173780;};return _0x2467();}import{ButtonView as _0x4469ea,View as _0x17e601}from'ckeditor5/src/ui.js';function _0x1982(_0x2b73fa,_0x14b7c2){const _0x246717=_0x2467();return _0x1982=function(_0x19821d,_0x13fac9){_0x19821d=_0x19821d-0xe4;let _0x225125=_0x246717[_0x19821d];return _0x225125;},_0x1982(_0x2b73fa,_0x14b7c2);}import{IconStop as _0x52be65}from'ckeditor5/src/icons.js';import{getTranslation as _0x3e7d01}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x17e601{[_0x34333c(0xe5)];[_0x34333c(0xff)];constructor(_0x247079){const _0x5bed5b=_0x34333c;super(_0x247079),this[_0x5bed5b(0xe5)]=this[_0x5bed5b(0x100)](),this[_0x5bed5b(0xff)]=this[_0x5bed5b(0xfa)](),this[_0x5bed5b(0xed)]({'tag':_0x5bed5b(0xfc),'attributes':{'class':['ck',_0x5bed5b(0xf3),_0x5bed5b(0xf2)]},'children':[this[_0x5bed5b(0xff)],this[_0x5bed5b(0xe5)]]});}[_0x34333c(0x100)](){const _0x3a6676=_0x34333c,_0x411b9a=new _0x4469ea(this[_0x3a6676(0xe6)]);return _0x411b9a[_0x3a6676(0xe4)]({'label':_0x3e7d01(this[_0x3a6676(0xe6)],_0x3a6676(0xe7)),'withText':!0x0,'class':_0x3a6676(0xe9),'icon':_0x52be65}),_0x411b9a['on'](_0x3a6676(0xeb),()=>{const _0x32b25a=_0x3a6676;this[_0x32b25a(0xf6)](_0x32b25a(0xee));}),_0x411b9a;}[_0x34333c(0xfa)](){const _0x31badd=_0x34333c,_0x1e5237=new _0x17e601(this[_0x31badd(0xe6)]);return _0x1e5237[_0x31badd(0xed)]({'tag':_0x31badd(0xfc),'attributes':{'class':[_0x31badd(0xea)]},'children':[{'tag':_0x31badd(0xfc),'attributes':{'class':[_0x31badd(0xf9)]},'children':[{'tag':_0x31badd(0xfc),'attributes':{'class':[_0x31badd(0xf4)]}},{'tag':_0x31badd(0xfc),'attributes':{'class':[_0x31badd(0xf4)]}},{'tag':_0x31badd(0xfc),'attributes':{'class':[_0x31badd(0xf4)]}}]},{'text':_0x3e7d01(this[_0x31badd(0xe6)],_0x31badd(0xf0))}]}),_0x1e5237;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x259f6d=_0x5aaa;(function(_0x2824ad,_0xa281b3){const _0x1c62bd=_0x5aaa,_0xd2e658=_0x2824ad();while(!![]){try{const _0x371486=-parseInt(_0x1c62bd(0x18b))/0x1*(-parseInt(_0x1c62bd(0x184))/0x2)+-parseInt(_0x1c62bd(0x1bf))/0x3*(-parseInt(_0x1c62bd(0x19e))/0x4)+parseInt(_0x1c62bd(0x1a9))/0x5*(parseInt(_0x1c62bd(0x186))/0x6)+-parseInt(_0x1c62bd(0x1c7))/0x7+parseInt(_0x1c62bd(0x1a2))/0x8+parseInt(_0x1c62bd(0x1ad))/0x9*(parseInt(_0x1c62bd(0x170))/0xa)+-parseInt(_0x1c62bd(0x1ae))/0xb*(parseInt(_0x1c62bd(0x192))/0xc);if(_0x371486===_0xa281b3)break;else _0xd2e658['push'](_0xd2e658['shift']());}catch(_0x1b16d5){_0xd2e658['push'](_0xd2e658['shift']());}}}(_0x1b93,0x7f019));function _0x1b93(){const _0x53a60a=['reasoning','_getCapabilityParts','activeModelName','ck-ai-chat-controls-button--commands','menuitemradio','isOn','name','4LLrLRP','activeModelId','label','AI_CHAT_CAPABILITIES_NO','4477480ZWZDEK','enabled','selectModel','ck-ai-chat__prompt-capabilities','_createModelSelectionDropdown','AI_CHAT_REASONING','_modelSelectionDropdownItems','115QkhVjI','_createCommandsButton','ck-ai-chat-controls__model-selection__item-name','modelDisplayMode','11196jYiHIk','16135086iQdNKT','clear','style','bindTemplate','webSearchActive','length','AI_CHAT_SEARCH_WEB','_createModelNameView','ck-ai-chat-controls__model-selection__item-description','selector','_createReasoningButton','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','div','isEnabled','tooltip','webSearch','ck-hidden','996033UEpAuc','add','text','disableModelSelector','_createWebSearchButton','AI_CHAT_ENABLE_WEB_SEARCH','content','bind','3457475AXsdll','modelSelectorEnabled','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','_reasoningButton','set','ck-ai-chat-controls__model-name','_modelNameView','AI_CHAT_COMMANDS','locale','span','_commandsButton','ck-ai-button-tertiary','setTemplate','6330FtCqgh','AI_CHAT_DISABLE_WEB_SEARCH','button','capabilities','setWebSearch','description','toggleWebSearch','hidden','fire','buttonView','setModel','extendTemplate','toggleReasoning','_modelSelectionDropdown','reasoningActive','listenTo','source','execute','createCollection','setReasoning','208966emvVLe','Commands\x20are\x20not\x20implemented\x20yet.','181914VZHOYN','AI_CHAT_DISABLE_REASONING','ck-ai-chat-controls__model-selection','ck-button__label','enableModelSelector','1taODQA','AI_CHAT_CAPABILITIES_YES','ck-ai-chat-controls__model-selection__item-capabilities','addMany','ck-ai-chat-controls-button','log','setModelList','12UUxVLL','model','isVisible','AI_CHAT_ENABLE_REASONING','_webSearchButton'];_0x1b93=function(){return _0x53a60a;};return _0x1b93();}import{Collection as _0x1bdca1}from'ckeditor5/src/utils.js';import{IconAI as _0x2d55ad,IconBulb as _0x48017c,IconWeb as _0x3a2fe2}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x5f161a,ButtonLabelView as _0x25ab7b,ButtonView as _0x22cab6,createDropdown as _0x58074b,IconView as _0x2a5eca,UIModel as _0x4300a6,View as _0x4c38b0}from'ckeditor5/src/ui.js';function _0x5aaa(_0x4f7be4,_0x1082b4){const _0x1b939c=_0x1b93();return _0x5aaa=function(_0x5aaaa9,_0x25b585){_0x5aaaa9=_0x5aaaa9-0x16d;let _0x293dfe=_0x1b939c[_0x5aaaa9];return _0x293dfe;},_0x5aaa(_0x4f7be4,_0x1082b4);}import{getTranslation as _0x1eeb82}from'../../../aicore/utils/common-translations.js';const qo=_0x259f6d(0x1a5),jo=_0x259f6d(0x18f),zo=_0x259f6d(0x19a),Jo=_0x259f6d(0x16e),Ko=_0x259f6d(0x188),Qo=_0x259f6d(0x1ab),Zo=_0x259f6d(0x1b6),tl=_0x259f6d(0x18d),el='n';export class AIChatPromptCapabilitiesView extends _0x4c38b0{[_0x259f6d(0x196)];[_0x259f6d(0x1ca)];[_0x259f6d(0x16d)];[_0x259f6d(0x17d)];[_0x259f6d(0x1a8)];[_0x259f6d(0x1cd)];constructor(_0x625631){const _0x427318=_0x259f6d;super(_0x625631),this[_0x427318(0x1cb)](_0x427318(0x1b2),!0x1),this[_0x427318(0x1cb)](_0x427318(0x17e),!0x1),this[_0x427318(0x1cb)](_0x427318(0x1ac),_0x427318(0x1b7)),this[_0x427318(0x1cb)](_0x427318(0x1c8),!0x0),this[_0x427318(0x1cb)](_0x427318(0x19f),null),this[_0x427318(0x1cb)](_0x427318(0x199),null),this[_0x427318(0x17d)]=this[_0x427318(0x1a6)](),this[_0x427318(0x1cd)]=this[_0x427318(0x1b5)](),this[_0x427318(0x196)]=this[_0x427318(0x1c3)](),this[_0x427318(0x1ca)]=this[_0x427318(0x1b8)](),this[_0x427318(0x16d)]=this[_0x427318(0x1aa)](),this[_0x427318(0x17d)][_0x427318(0x179)][_0x427318(0x1c6)](_0x427318(0x194))['to'](this,_0x427318(0x1ac),_0x476e96=>_0x427318(0x1b7)===_0x476e96),this[_0x427318(0x17d)][_0x427318(0x179)][_0x427318(0x1c6)](_0x427318(0x1bc))['to'](this,_0x427318(0x1c8),_0x31e654=>_0x31e654?this[_0x427318(0x17d)][_0x427318(0x179)][_0x427318(0x1a0)]:_0x1eeb82(this[_0x427318(0x1cf)],_0x427318(0x1c9))),this[_0x427318(0x17d)][_0x427318(0x1c6)](_0x427318(0x1bb))['to'](this,_0x427318(0x1c8),_0x103761=>_0x103761),this[_0x427318(0x196)][_0x427318(0x1c6)](_0x427318(0x19c))['to'](this,_0x427318(0x1b2),_0xfea3e6=>_0xfea3e6),this[_0x427318(0x196)][_0x427318(0x1c6)](_0x427318(0x1bc))['to'](this,_0x427318(0x1b2),_0x60a0dd=>_0x1eeb82(this[_0x427318(0x1cf)],_0x60a0dd?_0x427318(0x171):_0x427318(0x1c4))),this[_0x427318(0x1ca)][_0x427318(0x1c6)](_0x427318(0x19c))['to'](this,_0x427318(0x17e),_0x47214c=>_0x47214c),this[_0x427318(0x1ca)][_0x427318(0x1c6)](_0x427318(0x1bc))['to'](this,_0x427318(0x17e),_0x978236=>_0x1eeb82(this[_0x427318(0x1cf)],_0x978236?_0x427318(0x187):_0x427318(0x195))),this[_0x427318(0x16f)]({'tag':_0x427318(0x1ba),'attributes':{'class':[qo]},'children':[this[_0x427318(0x17d)],this[_0x427318(0x1cd)],this[_0x427318(0x196)],this[_0x427318(0x1ca)],this[_0x427318(0x16d)]]}),this[_0x427318(0x1a8)]=new _0x1bdca1(),_0x5f161a(this[_0x427318(0x17d)],this[_0x427318(0x1a8)]);}[_0x259f6d(0x191)](_0xf34dd5,_0x50b5a5){const _0x4cc619=_0x259f6d;if(_0x50b5a5)this[_0x4cc619(0x1cb)](_0x4cc619(0x1ac),_0x4cc619(0x177));else{const _0x346109=0x1===_0xf34dd5[_0x4cc619(0x1b3)];this[_0x4cc619(0x1cb)](_0x4cc619(0x1ac),_0x346109?_0x4cc619(0x19d):_0x4cc619(0x1b7));}if(this[_0x4cc619(0x1a8)][_0x4cc619(0x1af)](),_0xf34dd5?.[_0x4cc619(0x1b3)])for(const _0x2e3f19 of _0xf34dd5){const _0x136b70=new _0x4300a6({'label':_0x2e3f19[_0x4cc619(0x19d)],'withText':!0x0,'role':_0x4cc619(0x19b),'id':_0x2e3f19['id'],'model':_0x2e3f19});_0x136b70[_0x4cc619(0x1c6)](_0x4cc619(0x19c))['to'](this,_0x4cc619(0x19f),_0x5e5807=>_0x5e5807===_0x2e3f19['id']),this[_0x4cc619(0x1a8)][_0x4cc619(0x1c0)]({'type':_0x4cc619(0x172),'model':_0x136b70,'labelView':new ModelButtonLabelView(this[_0x4cc619(0x1cf)],_0x2e3f19)});}}[_0x259f6d(0x174)](_0x47a5b5){const _0x3d690e=_0x259f6d;this[_0x3d690e(0x1cb)](_0x3d690e(0x1b2),_0x47a5b5);}[_0x259f6d(0x183)](_0x36a30b){const _0x27b51a=_0x259f6d;this[_0x27b51a(0x1cb)](_0x27b51a(0x17e),_0x36a30b);}[_0x259f6d(0x17a)](_0x31b4c5){const _0x478e8d=_0x259f6d;if(!_0x31b4c5)return;this[_0x478e8d(0x19f)]=_0x31b4c5['id'],this[_0x478e8d(0x199)]=_0x31b4c5[_0x478e8d(0x19d)]||_0x31b4c5['id'],this[_0x478e8d(0x17d)][_0x478e8d(0x179)][_0x478e8d(0x1cb)](_0x478e8d(0x1a0),_0x31b4c5[_0x478e8d(0x19d)]),this[_0x478e8d(0x17d)][_0x478e8d(0x179)][_0x478e8d(0x1cb)](_0x478e8d(0x1bc),_0x31b4c5[_0x478e8d(0x19d)]);const _0x10e02b=_0x31b4c5[_0x478e8d(0x173)][_0x478e8d(0x1bd)]?.[_0x478e8d(0x1a3)]??!0x1;this[_0x478e8d(0x1cb)](_0x478e8d(0x1b2),!0x1),this[_0x478e8d(0x196)][_0x478e8d(0x1cb)](_0x478e8d(0x19c),!0x1),this[_0x478e8d(0x196)][_0x478e8d(0x1cb)](_0x478e8d(0x1bb),_0x10e02b),this[_0x478e8d(0x196)][_0x478e8d(0x1cb)](_0x478e8d(0x194),_0x10e02b);const _0x229805=_0x31b4c5[_0x478e8d(0x173)][_0x478e8d(0x197)]?.[_0x478e8d(0x1a3)]??!0x1;this[_0x478e8d(0x1cb)](_0x478e8d(0x17e),!0x1),this[_0x478e8d(0x1ca)][_0x478e8d(0x1cb)](_0x478e8d(0x19c),!0x1),this[_0x478e8d(0x1ca)][_0x478e8d(0x1cb)](_0x478e8d(0x1bb),_0x229805),this[_0x478e8d(0x1ca)][_0x478e8d(0x1cb)](_0x478e8d(0x194),_0x229805);}[_0x259f6d(0x18a)](){const _0x4ca005=_0x259f6d;this[_0x4ca005(0x1cb)](_0x4ca005(0x1c8),!0x0);}[_0x259f6d(0x1c2)](_0x21e4a5){const _0x393590=_0x259f6d;this[_0x393590(0x1cb)](_0x393590(0x1c8),!0x1),_0x21e4a5&&this[_0x393590(0x1cb)](_0x393590(0x1ac),_0x393590(0x177));}[_0x259f6d(0x1c3)](){const _0xb7aeea=_0x259f6d,_0x33567e=new _0x22cab6();return _0x33567e[_0xb7aeea(0x1cb)]({'label':_0x1eeb82(this[_0xb7aeea(0x1cf)],_0xb7aeea(0x1b4)),'icon':_0x3a2fe2,'class':jo,'isToggleable':!0x0,'tooltipPosition':el}),_0x33567e['on'](_0xb7aeea(0x181),()=>{const _0x4dc9cb=_0xb7aeea;this[_0x4dc9cb(0x178)](_0x4dc9cb(0x176));}),_0x33567e;}[_0x259f6d(0x1b8)](){const _0x3759c8=_0x259f6d,_0x4f34de=new _0x22cab6();return _0x4f34de[_0x3759c8(0x1cb)]({'label':_0x1eeb82(this[_0x3759c8(0x1cf)],_0x3759c8(0x1a7)),'icon':_0x48017c,'class':jo,'isToggleable':!0x0,'tooltipPosition':el}),_0x4f34de['on'](_0x3759c8(0x181),()=>{const _0x14b666=_0x3759c8;this[_0x14b666(0x178)](_0x14b666(0x17c));}),_0x4f34de;}[_0x259f6d(0x1aa)](){const _0x45425b=_0x259f6d,_0x37c82e=new _0x22cab6();return _0x37c82e[_0x45425b(0x1cb)]({'label':_0x1eeb82(this[_0x45425b(0x1cf)],_0x45425b(0x1ce)),'icon':_0x2d55ad,'withText':!0x0,'class':jo,'isToggleable':!0x0,'tooltip':_0x1eeb82(this[_0x45425b(0x1cf)],_0x45425b(0x1ce)),'tooltipPosition':el}),_0x37c82e[_0x45425b(0x17b)]({'attributes':{'class':[zo]}}),_0x37c82e['on'](_0x45425b(0x181),()=>{const _0x449fc4=_0x45425b;console[_0x449fc4(0x190)](_0x449fc4(0x185)),alert(_0x449fc4(0x185));}),_0x37c82e;}[_0x259f6d(0x1a6)](){const _0x27efab=_0x259f6d,_0x73787=_0x58074b(this[_0x27efab(0x1cf)]);return _0x73787[_0x27efab(0x1cb)]({'panelPosition':'ne','class':[Ko]}),_0x73787[_0x27efab(0x179)][_0x27efab(0x1cb)]({'label':_0x1eeb82(this[_0x27efab(0x1cf)],_0x27efab(0x1b9)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':el,'class':Jo}),this[_0x27efab(0x17f)](_0x73787,_0x27efab(0x181),_0x53cde6=>{const _0x551211=_0x27efab;this[_0x551211(0x178)](_0x551211(0x1a4),_0x53cde6[_0x551211(0x180)][_0x551211(0x193)]);}),_0x73787;}[_0x259f6d(0x1b5)](){const _0x8e8fe3=_0x259f6d,_0x3e167d=new ModelNameView(this[_0x8e8fe3(0x1cf)]);return _0x3e167d[_0x8e8fe3(0x1c6)](_0x8e8fe3(0x1c1))['to'](this,_0x8e8fe3(0x199),_0x4f712e=>_0x4f712e??''),_0x3e167d[_0x8e8fe3(0x1c6)](_0x8e8fe3(0x194))['to'](this,_0x8e8fe3(0x1ac),_0x5a8556=>_0x8e8fe3(0x19d)===_0x5a8556),_0x3e167d;}}class ModelButtonLabelView extends _0x25ab7b{constructor(_0x552dc5,_0x3314d6){const _0x25304a=_0x259f6d;super();const _0x41932b=this[_0x25304a(0x1b1)],_0x589aab=this[_0x25304a(0x182)]();this[_0x25304a(0x16f)]({'tag':_0x25304a(0x1ba),'attributes':{'class':['ck',_0x25304a(0x189)],'style':_0x41932b['to'](_0x25304a(0x1b0)),'id':_0x41932b['to']('id')},'children':[{'tag':_0x25304a(0x1ba),'attributes':{'class':[Qo]},'children':[{'text':_0x41932b['to'](_0x25304a(0x1c1))}]},{'tag':_0x25304a(0x1ba),'attributes':{'class':[Zo]},'children':[{'tag':_0x25304a(0x1d0),'children':[{'text':_0x3314d6[_0x25304a(0x175)]}]}]},{'tag':_0x25304a(0x1ba),'attributes':{'class':[tl]},'children':_0x589aab}]}),_0x589aab[_0x25304a(0x18e)](this[_0x25304a(0x198)](_0x552dc5,_0x3a2fe2,_0x25304a(0x1b4),_0x3314d6[_0x25304a(0x173)][_0x25304a(0x1bd)]?.[_0x25304a(0x1a3)]??!0x1)),_0x589aab[_0x25304a(0x18e)](this[_0x25304a(0x198)](_0x552dc5,_0x48017c,_0x25304a(0x1a7),_0x3314d6[_0x25304a(0x173)][_0x25304a(0x197)]?.[_0x25304a(0x1a3)]??!0x1));}[_0x259f6d(0x198)](_0x1c88df,_0x5a9c47,_0x32f190,_0x28d31c){const _0x42b07f=_0x259f6d,_0x2183c5=new _0x2a5eca();_0x2183c5[_0x42b07f(0x1c5)]=_0x5a9c47;const _0x261612=new _0x4c38b0(_0x1c88df);_0x261612[_0x42b07f(0x16f)]({'tag':_0x42b07f(0x1d0),'children':[{'text':_0x1eeb82(_0x1c88df,_0x32f190)+':\x20'}]});const _0x44c3e1=new _0x4c38b0(_0x1c88df);return _0x44c3e1[_0x42b07f(0x16f)]({'tag':_0x42b07f(0x1d0),'children':[{'text':_0x1eeb82(_0x1c88df,_0x28d31c?_0x42b07f(0x18c):_0x42b07f(0x1a1))}]}),[_0x2183c5,_0x261612,_0x44c3e1];}}class ModelNameView extends _0x4c38b0{constructor(_0x1f1ecf){const _0x41b9fa=_0x259f6d;super(_0x1f1ecf),this[_0x41b9fa(0x1cb)](_0x41b9fa(0x1c1),void 0x0),this[_0x41b9fa(0x1cb)](_0x41b9fa(0x194),!0x0);const _0x39de39=this[_0x41b9fa(0x1b1)];this[_0x41b9fa(0x16f)]({'tag':_0x41b9fa(0x1d0),'attributes':{'class':['ck',_0x41b9fa(0x1cc),_0x39de39['if'](_0x41b9fa(0x194),_0x41b9fa(0x1be),_0x583b2c=>!_0x583b2c)]},'children':[{'text':_0x39de39['to'](_0x41b9fa(0x1c1))}]});}}
|
|
23
|
+
const _0x14a65e=_0x14af;function _0x570a(){const _0x24d90c=['AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','model','ck-ai-chat-controls__model-name','source','menuitemradio','setModel','enabled','capabilities','isVisible','_getCapabilityParts','buttonView','_createCommandsButton','_createReasoningButton','Commands\x20are\x20not\x20implemented\x20yet.','_modelNameView','name','_createModelSelectionDropdown','AI_CHAT_DISABLE_WEB_SEARCH','selectModel','40lQiHPJ','set','webSearch','setTemplate','webSearchActive','614824BuzFFX','bindTemplate','ck-ai-chat-controls__model-selection','1688100nTCugP','reasoningActive','selector','ck-ai-button-tertiary','createCollection','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','_reasoningButton','AI_CHAT_CAPABILITIES_YES','span','52232eUmoFM','modelSelectorEnabled','_createWebSearchButton','hidden','ck-button__label','activeModelId','_modelSelectionDropdownItems','add','3XDvfgq','fire','ck-hidden','1273278eVPktQ','AI_CHAT_CAPABILITIES_NO','locale','length','reasoning','_modelSelectionDropdown','AI_CHAT_ENABLE_WEB_SEARCH','238XhWTFJ','addMany','listenTo','ck-ai-chat__prompt-capabilities','toggleWebSearch','log','144qisNRh','modelDisplayMode','453385VtTgDN','text','style','_createModelNameView','disableModelSelector','button','AI_CHAT_SEARCH_WEB','tooltip','toggleReasoning','div','AI_CHAT_DISABLE_REASONING','clear','isOn','AI_CHAT_ENABLE_REASONING','ck-ai-chat-controls-button','label','enableModelSelector','activeModelName','ck-ai-chat-controls__model-selection__item-name','setModelList','bind','30020100aFoHRQ','execute','description','_webSearchButton','isEnabled','ck-ai-chat-controls-button--commands','extendTemplate','ck-ai-chat-controls__model-selection__item-capabilities','setReasoning','AI_CHAT_REASONING','82320tfkmvy','content','ck-ai-chat-controls__model-selection__item-description','AI_CHAT_COMMANDS','_commandsButton','setWebSearch'];_0x570a=function(){return _0x24d90c;};return _0x570a();}(function(_0x18cbe2,_0x4588be){const _0x1506a0=_0x14af,_0x217fc1=_0x18cbe2();while(!![]){try{const _0x3fef73=parseInt(_0x1506a0(0x1f5))/0x1*(-parseInt(_0x1506a0(0x1e1))/0x2)+-parseInt(_0x1506a0(0x1e4))/0x3+parseInt(_0x1506a0(0x1dc))/0x4*(-parseInt(_0x1506a0(0x207))/0x5)+parseInt(_0x1506a0(0x1f8))/0x6+parseInt(_0x1506a0(0x1ff))/0x7*(parseInt(_0x1506a0(0x1ed))/0x8)+-parseInt(_0x1506a0(0x205))/0x9*(-parseInt(_0x1506a0(0x226))/0xa)+parseInt(_0x1506a0(0x21c))/0xb;if(_0x3fef73===_0x4588be)break;else _0x217fc1['push'](_0x217fc1['shift']());}catch(_0x32ef30){_0x217fc1['push'](_0x217fc1['shift']());}}}(_0x570a,0xdc889));import{Collection as _0x2084ba}from'ckeditor5/src/utils.js';import{IconAI as _0x1564ad,IconBulb as _0x4a4509,IconWeb as _0x48a73d}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x5baf88,ButtonLabelView as _0x5996a3,ButtonView as _0x4efb13,createDropdown as _0x4ad28c,IconView as _0x4af447,UIModel as _0x5d200a,View as _0x4f488f}from'ckeditor5/src/ui.js';import{getTranslation as _0x3ae15e}from'../../../aicore/utils/common-translations.js';const qo=_0x14a65e(0x202),jo=_0x14a65e(0x215),zo=_0x14a65e(0x221),Jo=_0x14a65e(0x1e7),Ko=_0x14a65e(0x1e3),Qo=_0x14a65e(0x219),Zo=_0x14a65e(0x228),tl=_0x14a65e(0x223),el='n';export class AIChatPromptCapabilitiesView extends _0x4f488f{[_0x14a65e(0x21f)];[_0x14a65e(0x1ea)];[_0x14a65e(0x22a)];[_0x14a65e(0x1fd)];[_0x14a65e(0x1f3)];[_0x14a65e(0x1d7)];constructor(_0x344626){const _0x4b99b7=_0x14a65e;super(_0x344626),this[_0x4b99b7(0x1dd)](_0x4b99b7(0x1e0),!0x1),this[_0x4b99b7(0x1dd)](_0x4b99b7(0x1e5),!0x1),this[_0x4b99b7(0x1dd)](_0x4b99b7(0x206),_0x4b99b7(0x1e6)),this[_0x4b99b7(0x1dd)](_0x4b99b7(0x1ee),!0x0),this[_0x4b99b7(0x1dd)](_0x4b99b7(0x1f2),null),this[_0x4b99b7(0x1dd)](_0x4b99b7(0x218),null),this[_0x4b99b7(0x1fd)]=this[_0x4b99b7(0x1d9)](),this[_0x4b99b7(0x1d7)]=this[_0x4b99b7(0x20a)](),this[_0x4b99b7(0x21f)]=this[_0x4b99b7(0x1ef)](),this[_0x4b99b7(0x1ea)]=this[_0x4b99b7(0x1d5)](),this[_0x4b99b7(0x22a)]=this[_0x4b99b7(0x1d4)](),this[_0x4b99b7(0x1fd)][_0x4b99b7(0x1d3)][_0x4b99b7(0x21b)](_0x4b99b7(0x1d1))['to'](this,_0x4b99b7(0x206),_0x358829=>_0x4b99b7(0x1e6)===_0x358829),this[_0x4b99b7(0x1fd)][_0x4b99b7(0x1d3)][_0x4b99b7(0x21b)](_0x4b99b7(0x20e))['to'](this,_0x4b99b7(0x1ee),_0xde3178=>_0xde3178?this[_0x4b99b7(0x1fd)][_0x4b99b7(0x1d3)][_0x4b99b7(0x216)]:_0x3ae15e(this[_0x4b99b7(0x1fa)],_0x4b99b7(0x22c))),this[_0x4b99b7(0x1fd)][_0x4b99b7(0x21b)](_0x4b99b7(0x220))['to'](this,_0x4b99b7(0x1ee),_0x2d2a9d=>_0x2d2a9d),this[_0x4b99b7(0x21f)][_0x4b99b7(0x21b)](_0x4b99b7(0x213))['to'](this,_0x4b99b7(0x1e0),_0x16d4ef=>_0x16d4ef),this[_0x4b99b7(0x21f)][_0x4b99b7(0x21b)](_0x4b99b7(0x20e))['to'](this,_0x4b99b7(0x1e0),_0x1f6b28=>_0x3ae15e(this[_0x4b99b7(0x1fa)],_0x1f6b28?_0x4b99b7(0x1da):_0x4b99b7(0x1fe))),this[_0x4b99b7(0x1ea)][_0x4b99b7(0x21b)](_0x4b99b7(0x213))['to'](this,_0x4b99b7(0x1e5),_0x4dbdc8=>_0x4dbdc8),this[_0x4b99b7(0x1ea)][_0x4b99b7(0x21b)](_0x4b99b7(0x20e))['to'](this,_0x4b99b7(0x1e5),_0x1cd257=>_0x3ae15e(this[_0x4b99b7(0x1fa)],_0x1cd257?_0x4b99b7(0x211):_0x4b99b7(0x214))),this[_0x4b99b7(0x1df)]({'tag':_0x4b99b7(0x210),'attributes':{'class':[qo]},'children':[this[_0x4b99b7(0x1fd)],this[_0x4b99b7(0x1d7)],this[_0x4b99b7(0x21f)],this[_0x4b99b7(0x1ea)],this[_0x4b99b7(0x22a)]]}),this[_0x4b99b7(0x1f3)]=new _0x2084ba(),_0x5baf88(this[_0x4b99b7(0x1fd)],this[_0x4b99b7(0x1f3)]);}[_0x14a65e(0x21a)](_0x543f16,_0x1dc678){const _0x97b784=_0x14a65e;if(_0x1dc678)this[_0x97b784(0x1dd)](_0x97b784(0x206),_0x97b784(0x1f0));else{const _0x267461=0x1===_0x543f16[_0x97b784(0x1fb)];this[_0x97b784(0x1dd)](_0x97b784(0x206),_0x267461?_0x97b784(0x1d8):_0x97b784(0x1e6));}if(this[_0x97b784(0x1f3)][_0x97b784(0x212)](),_0x543f16?.[_0x97b784(0x1fb)])for(const _0x44987e of _0x543f16){const _0x32dd0b=new _0x5d200a({'label':_0x44987e[_0x97b784(0x1d8)],'withText':!0x0,'role':_0x97b784(0x230),'id':_0x44987e['id'],'model':_0x44987e});_0x32dd0b[_0x97b784(0x21b)](_0x97b784(0x213))['to'](this,_0x97b784(0x1f2),_0x1359f4=>_0x1359f4===_0x44987e['id']),this[_0x97b784(0x1f3)][_0x97b784(0x1f4)]({'type':_0x97b784(0x20c),'model':_0x32dd0b,'labelView':new ModelButtonLabelView(this[_0x97b784(0x1fa)],_0x44987e)});}}[_0x14a65e(0x22b)](_0xbbdd20){const _0x99dd5f=_0x14a65e;this[_0x99dd5f(0x1dd)](_0x99dd5f(0x1e0),_0xbbdd20);}[_0x14a65e(0x224)](_0x3de710){const _0x46e5d4=_0x14a65e;this[_0x46e5d4(0x1dd)](_0x46e5d4(0x1e5),_0x3de710);}[_0x14a65e(0x231)](_0x235199){const _0x2794cd=_0x14a65e;if(!_0x235199)return;this[_0x2794cd(0x1f2)]=_0x235199['id'],this[_0x2794cd(0x218)]=_0x235199[_0x2794cd(0x1d8)]||_0x235199['id'],this[_0x2794cd(0x1fd)][_0x2794cd(0x1d3)][_0x2794cd(0x1dd)](_0x2794cd(0x216),_0x235199[_0x2794cd(0x1d8)]),this[_0x2794cd(0x1fd)][_0x2794cd(0x1d3)][_0x2794cd(0x1dd)](_0x2794cd(0x20e),_0x235199[_0x2794cd(0x1d8)]);const _0x1484a6=_0x235199[_0x2794cd(0x1d0)][_0x2794cd(0x1de)]?.[_0x2794cd(0x232)]??!0x1;this[_0x2794cd(0x1dd)](_0x2794cd(0x1e0),!0x1),this[_0x2794cd(0x21f)][_0x2794cd(0x1dd)](_0x2794cd(0x213),!0x1),this[_0x2794cd(0x21f)][_0x2794cd(0x1dd)](_0x2794cd(0x220),_0x1484a6),this[_0x2794cd(0x21f)][_0x2794cd(0x1dd)](_0x2794cd(0x1d1),_0x1484a6);const _0x4f612c=_0x235199[_0x2794cd(0x1d0)][_0x2794cd(0x1fc)]?.[_0x2794cd(0x232)]??!0x1;this[_0x2794cd(0x1dd)](_0x2794cd(0x1e5),!0x1),this[_0x2794cd(0x1ea)][_0x2794cd(0x1dd)](_0x2794cd(0x213),!0x1),this[_0x2794cd(0x1ea)][_0x2794cd(0x1dd)](_0x2794cd(0x220),_0x4f612c),this[_0x2794cd(0x1ea)][_0x2794cd(0x1dd)](_0x2794cd(0x1d1),_0x4f612c);}[_0x14a65e(0x217)](){const _0x971d12=_0x14a65e;this[_0x971d12(0x1dd)](_0x971d12(0x1ee),!0x0);}[_0x14a65e(0x20b)](_0xeef22b){const _0x541b71=_0x14a65e;this[_0x541b71(0x1dd)](_0x541b71(0x1ee),!0x1),_0xeef22b&&this[_0x541b71(0x1dd)](_0x541b71(0x206),_0x541b71(0x1f0));}[_0x14a65e(0x1ef)](){const _0x189491=_0x14a65e,_0x2f9c7a=new _0x4efb13();return _0x2f9c7a[_0x189491(0x1dd)]({'label':_0x3ae15e(this[_0x189491(0x1fa)],_0x189491(0x20d)),'icon':_0x48a73d,'class':jo,'isToggleable':!0x0,'tooltipPosition':el}),_0x2f9c7a['on'](_0x189491(0x21d),()=>{const _0x288d55=_0x189491;this[_0x288d55(0x1f6)](_0x288d55(0x203));}),_0x2f9c7a;}[_0x14a65e(0x1d5)](){const _0x2aafb2=_0x14a65e,_0x320eef=new _0x4efb13();return _0x320eef[_0x2aafb2(0x1dd)]({'label':_0x3ae15e(this[_0x2aafb2(0x1fa)],_0x2aafb2(0x225)),'icon':_0x4a4509,'class':jo,'isToggleable':!0x0,'tooltipPosition':el}),_0x320eef['on'](_0x2aafb2(0x21d),()=>{const _0x253fad=_0x2aafb2;this[_0x253fad(0x1f6)](_0x253fad(0x20f));}),_0x320eef;}[_0x14a65e(0x1d4)](){const _0xbb3c37=_0x14a65e,_0xd33c1e=new _0x4efb13();return _0xd33c1e[_0xbb3c37(0x1dd)]({'label':_0x3ae15e(this[_0xbb3c37(0x1fa)],_0xbb3c37(0x229)),'icon':_0x1564ad,'withText':!0x0,'class':jo,'isToggleable':!0x0,'tooltip':_0x3ae15e(this[_0xbb3c37(0x1fa)],_0xbb3c37(0x229)),'tooltipPosition':el}),_0xd33c1e[_0xbb3c37(0x222)]({'attributes':{'class':[zo]}}),_0xd33c1e['on'](_0xbb3c37(0x21d),()=>{const _0x33d6c7=_0xbb3c37;console[_0x33d6c7(0x204)](_0x33d6c7(0x1d6)),alert(_0x33d6c7(0x1d6));}),_0xd33c1e;}[_0x14a65e(0x1d9)](){const _0x482cd1=_0x14a65e,_0x4798a6=_0x4ad28c(this[_0x482cd1(0x1fa)]);return _0x4798a6[_0x482cd1(0x1dd)]({'panelPosition':'ne','class':[Ko]}),_0x4798a6[_0x482cd1(0x1d3)][_0x482cd1(0x1dd)]({'label':_0x3ae15e(this[_0x482cd1(0x1fa)],_0x482cd1(0x1e9)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':el,'class':Jo}),this[_0x482cd1(0x201)](_0x4798a6,_0x482cd1(0x21d),_0x507070=>{const _0x1b1027=_0x482cd1;this[_0x1b1027(0x1f6)](_0x1b1027(0x1db),_0x507070[_0x1b1027(0x22f)][_0x1b1027(0x22d)]);}),_0x4798a6;}[_0x14a65e(0x20a)](){const _0x48d793=_0x14a65e,_0x513c5a=new ModelNameView(this[_0x48d793(0x1fa)]);return _0x513c5a[_0x48d793(0x21b)](_0x48d793(0x208))['to'](this,_0x48d793(0x218),_0x2b1b46=>_0x2b1b46??''),_0x513c5a[_0x48d793(0x21b)](_0x48d793(0x1d1))['to'](this,_0x48d793(0x206),_0x28185a=>_0x48d793(0x1d8)===_0x28185a),_0x513c5a;}}function _0x14af(_0x53103b,_0x34d86f){const _0x570aca=_0x570a();return _0x14af=function(_0x14af6e,_0x35cfc9){_0x14af6e=_0x14af6e-0x1d0;let _0x5f368d=_0x570aca[_0x14af6e];return _0x5f368d;},_0x14af(_0x53103b,_0x34d86f);}class ModelButtonLabelView extends _0x5996a3{constructor(_0x489018,_0xfdec32){const _0x4f08e4=_0x14a65e;super();const _0x23ae55=this[_0x4f08e4(0x1e2)],_0x5f21cd=this[_0x4f08e4(0x1e8)]();this[_0x4f08e4(0x1df)]({'tag':_0x4f08e4(0x210),'attributes':{'class':['ck',_0x4f08e4(0x1f1)],'style':_0x23ae55['to'](_0x4f08e4(0x209)),'id':_0x23ae55['to']('id')},'children':[{'tag':_0x4f08e4(0x210),'attributes':{'class':[Qo]},'children':[{'text':_0x23ae55['to'](_0x4f08e4(0x208))}]},{'tag':_0x4f08e4(0x210),'attributes':{'class':[Zo]},'children':[{'tag':_0x4f08e4(0x1ec),'children':[{'text':_0xfdec32[_0x4f08e4(0x21e)]}]}]},{'tag':_0x4f08e4(0x210),'attributes':{'class':[tl]},'children':_0x5f21cd}]}),_0x5f21cd[_0x4f08e4(0x200)](this[_0x4f08e4(0x1d2)](_0x489018,_0x48a73d,_0x4f08e4(0x20d),_0xfdec32[_0x4f08e4(0x1d0)][_0x4f08e4(0x1de)]?.[_0x4f08e4(0x232)]??!0x1)),_0x5f21cd[_0x4f08e4(0x200)](this[_0x4f08e4(0x1d2)](_0x489018,_0x4a4509,_0x4f08e4(0x225),_0xfdec32[_0x4f08e4(0x1d0)][_0x4f08e4(0x1fc)]?.[_0x4f08e4(0x232)]??!0x1));}[_0x14a65e(0x1d2)](_0x269cef,_0x5268ee,_0x3c1ef2,_0x3e4e46){const _0x1f696e=_0x14a65e,_0x278fb2=new _0x4af447();_0x278fb2[_0x1f696e(0x227)]=_0x5268ee;const _0x1ba78c=new _0x4f488f(_0x269cef);_0x1ba78c[_0x1f696e(0x1df)]({'tag':_0x1f696e(0x1ec),'children':[{'text':_0x3ae15e(_0x269cef,_0x3c1ef2)+':\x20'}]});const _0x15a152=new _0x4f488f(_0x269cef);return _0x15a152[_0x1f696e(0x1df)]({'tag':_0x1f696e(0x1ec),'children':[{'text':_0x3ae15e(_0x269cef,_0x3e4e46?_0x1f696e(0x1eb):_0x1f696e(0x1f9))}]}),[_0x278fb2,_0x1ba78c,_0x15a152];}}class ModelNameView extends _0x4f488f{constructor(_0x4c6de8){const _0x1ddc33=_0x14a65e;super(_0x4c6de8),this[_0x1ddc33(0x1dd)](_0x1ddc33(0x208),void 0x0),this[_0x1ddc33(0x1dd)](_0x1ddc33(0x1d1),!0x0);const _0x423e29=this[_0x1ddc33(0x1e2)];this[_0x1ddc33(0x1df)]({'tag':_0x1ddc33(0x1ec),'attributes':{'class':['ck',_0x1ddc33(0x22e),_0x423e29['if'](_0x1ddc33(0x1d1),_0x1ddc33(0x1f7),_0x44f547=>!_0x44f547)]},'children':[{'text':_0x423e29['to'](_0x1ddc33(0x208))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x109b35=_0x36cc;(function(_0x34d222,_0x151544){const _0xa192ff=_0x36cc,_0x57c762=_0x34d222();while(!![]){try{const _0x4a2e5f=parseInt(_0xa192ff(0x1ab))/0x1+parseInt(_0xa192ff(0x19a))/0x2*(-parseInt(_0xa192ff(0x185))/0x3)+parseInt(_0xa192ff(0x186))/0x4*(-parseInt(_0xa192ff(0x183))/0x5)+parseInt(_0xa192ff(0x17c))/0x6*(parseInt(_0xa192ff(0x1a5))/0x7)+-parseInt(_0xa192ff(0x189))/0x8+-parseInt(_0xa192ff(0x1a8))/0x9+parseInt(_0xa192ff(0x197))/0xa;if(_0x4a2e5f===_0x151544)break;else _0x57c762['push'](_0x57c762['shift']());}catch(_0x53e962){_0x57c762['push'](_0x57c762['shift']());}}}(_0x1b69,0x5ac35));import{IconSubmit as _0x3a3f91}from'ckeditor5/src/icons.js';function _0x36cc(_0x241875,_0x2cd119){const _0x1b6928=_0x1b69();return _0x36cc=function(_0x36ccde,_0x1152f9){_0x36ccde=_0x36ccde-0x17a;let _0x569825=_0x1b6928[_0x36ccde];return _0x569825;},_0x36cc(_0x241875,_0x2cd119);}import{ButtonView as _0xcb6ad2,AutocompleteView as _0x209c88,createLabeledTextarea as _0x265a3f}from'ckeditor5/src/ui.js';function _0x1b69(){const _0xbe74a2=['setPlaceholderText','destroy','MIN_ROWS','bind','fire','extendTemplate','AI_CHAT_PROMPT_EMPTY_ERROR','element','set','add','305578VabycD','focus','render','998163EizZyr','queryView','isEmpty','665909eBpqTH','left','placeholder','hasError','fieldView','ck-ai-chat__prompt-input_highlighted','fieldWrapperChildren','sendUserMessage','maxRows','excludeScrollbarsAndBorders','keystrokes','errorText','focusableChildren','ck-ai-chat__prompt-submit-button','submit','AI_CHAT_LABEL_SUBMIT','ck-ai-chat__prompt-input','_setUpAddContextButtonPositioning','_addContextButtonView','trim','uiLanguageDirection','enter','requestAnimationFrame','66QfxiRL','submitButtonView','window','rtl','style','isUploadInProgress','reset','5525wWCBss','remove','84969lithrG','2132jbSmPJ','contains','minRows','4050784MvRtuQ','value','px\x20-\x20var(--ck-spacing-tiny))','classList','_queryViewResizeObserver','update','setIsUploadInProgress','execute','right','width','MAX_ROWS','locale','calc(','_createSubmitButton','8567270HELWtW','target','isEnabled','30qCXorX'];_0x1b69=function(){return _0xbe74a2;};return _0x1b69();}import{global as _0x4cf6c9,isVisible as _0x1192fe,Rect as _0x31cb2a,ResizeObserver as _0x2630a2}from'ckeditor5/src/utils.js';import{getTranslation as _0x39a33e}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x404ba0}from'./aichatpromptsuggestionslistview.js';import{escape as _0x34a033}from'es-toolkit/compat';const ah=_0x109b35(0x1b0);export class AIChatPromptInputView extends _0x209c88{[_0x109b35(0x17d)];static [_0x109b35(0x19d)]=0x1;static [_0x109b35(0x193)]=0xc;[_0x109b35(0x1bd)];[_0x109b35(0x18d)];constructor(_0xd557c7,_0x2fc845){const _0x218e48=_0x109b35;super(_0xd557c7,{'queryView':{'label':'','creator':_0x265a3f,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x404ba0(_0xd557c7),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x218e48(0x1a3)](_0x218e48(0x1aa),!0x0),this[_0x218e48(0x1a3)](_0x218e48(0x181),!0x1),this[_0x218e48(0x1bd)]=_0x2fc845,this[_0x218e48(0x18d)]=null,this[_0x218e48(0x1a9)][_0x218e48(0x1af)][_0x218e48(0x188)]=AIChatPromptInputView[_0x218e48(0x19d)],this[_0x218e48(0x1a9)][_0x218e48(0x1af)][_0x218e48(0x1b3)]=AIChatPromptInputView[_0x218e48(0x193)],this[_0x218e48(0x1a9)][_0x218e48(0x1b1)][_0x218e48(0x1a4)](this[_0x218e48(0x1bd)]),this[_0x218e48(0x1bc)](),this[_0x218e48(0x1a0)]({'attributes':{'class':['ck',_0x218e48(0x1bb)]}}),this[_0x218e48(0x17d)]=this[_0x218e48(0x196)](),this[_0x218e48(0x17d)][_0x218e48(0x19e)](_0x218e48(0x199))['to'](this,_0x218e48(0x1aa),this,_0x218e48(0x181),(_0x199a18,_0x473e98)=>!_0x199a18&&!_0x473e98),this[_0x218e48(0x1b7)][_0x218e48(0x1a4)](this[_0x218e48(0x17d)]);}[_0x109b35(0x1a7)](){const _0x16bdd5=_0x109b35;super[_0x16bdd5(0x1a7)](),this[_0x16bdd5(0x1a9)][_0x16bdd5(0x1b1)][_0x16bdd5(0x1a4)](this[_0x16bdd5(0x17d)]),this[_0x16bdd5(0x1b5)][_0x16bdd5(0x1a3)](_0x16bdd5(0x17a),(_0x4a6c50,_0x3c66d0)=>{const _0x1242fc=_0x16bdd5;this[_0x1242fc(0x181)]||this[_0x1242fc(0x1aa)]||_0x4a6c50[_0x1242fc(0x198)]==this[_0x1242fc(0x1a9)][_0x1242fc(0x1af)][_0x1242fc(0x1a2)]&&(this[_0x1242fc(0x1b9)](),_0x3c66d0());}),this[_0x16bdd5(0x1a9)][_0x16bdd5(0x1af)]['on'](_0x16bdd5(0x18e),()=>{const _0x5f008f=_0x16bdd5;this[_0x5f008f(0x1aa)]=''===this[_0x5f008f(0x1a9)][_0x5f008f(0x1af)][_0x5f008f(0x1a2)][_0x5f008f(0x18a)]?.[_0x5f008f(0x1be)]();});}[_0x109b35(0x19c)](){const _0xdfe2b8=_0x109b35;super[_0xdfe2b8(0x19c)](),this[_0xdfe2b8(0x18d)]&&this[_0xdfe2b8(0x18d)][_0xdfe2b8(0x19c)]();}[_0x109b35(0x1b9)](){const _0x2fc6fc=_0x109b35,_0x57919a=this[_0x2fc6fc(0x1a9)][_0x2fc6fc(0x1af)][_0x2fc6fc(0x1a2)][_0x2fc6fc(0x18a)]?.[_0x2fc6fc(0x1be)]();if(!_0x57919a)return this[_0x2fc6fc(0x1a9)][_0x2fc6fc(0x1b6)]=_0x39a33e(this[_0x2fc6fc(0x194)],_0x2fc6fc(0x1a1)),void(this[_0x2fc6fc(0x1a9)][_0x2fc6fc(0x1af)][_0x2fc6fc(0x1ae)]=!0x0);this[_0x2fc6fc(0x1a9)][_0x2fc6fc(0x1af)][_0x2fc6fc(0x1ae)]=!0x1;const _0x47b1d9=_0x34a033(_0x57919a);this[_0x2fc6fc(0x19f)](_0x2fc6fc(0x1b2),_0x47b1d9),this[_0x2fc6fc(0x1a9)][_0x2fc6fc(0x1af)][_0x2fc6fc(0x182)]();}[_0x109b35(0x19b)](_0x32a3ba){const _0x184384=_0x109b35;this[_0x184384(0x1a9)][_0x184384(0x1af)][_0x184384(0x1a3)](_0x184384(0x1ad),_0x32a3ba);}[_0x109b35(0x1a6)](_0x34ea7c=!0x1){const _0x4fcaab=_0x109b35;super[_0x4fcaab(0x1a6)](),_0x34ea7c&&(this[_0x4fcaab(0x1a2)][_0x4fcaab(0x18c)][_0x4fcaab(0x187)](ah)||(this[_0x4fcaab(0x1a2)][_0x4fcaab(0x18c)][_0x4fcaab(0x1a4)](ah),setTimeout(()=>{const _0x151389=_0x4fcaab;this[_0x151389(0x1a2)][_0x151389(0x18c)][_0x151389(0x184)](ah);},0x320)));}[_0x109b35(0x196)](){const _0x2f8463=_0x109b35,_0x544f42=new _0xcb6ad2(this[_0x2f8463(0x194)]);return _0x544f42[_0x2f8463(0x1a3)]({'icon':_0x3a3f91,'label':_0x39a33e(this[_0x2f8463(0x194)],_0x2f8463(0x1ba)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2f8463(0x1b8),'isEnabled':!0x1}),_0x544f42['on'](_0x2f8463(0x190),()=>{const _0x47279d=_0x2f8463;this[_0x47279d(0x1b9)]();}),_0x544f42;}[_0x109b35(0x18f)](_0x34639a){const _0x424c4c=_0x109b35;this[_0x424c4c(0x181)]=_0x34639a;}[_0x109b35(0x1bc)](){const _0x391541=_0x109b35,_0x4d349b=this[_0x391541(0x194)],_0x10f70b=()=>{const _0x57276c=_0x391541;_0x4cf6c9[_0x57276c(0x17e)][_0x57276c(0x17b)](()=>{const _0x1712ec=_0x57276c;if(_0x1192fe(this[_0x1712ec(0x1a2)])){const _0x27ebe5=new _0x31cb2a(this[_0x1712ec(0x1a9)][_0x1712ec(0x1af)][_0x1712ec(0x1a2)]),_0x359bfa=new _0x31cb2a(this[_0x1712ec(0x1bd)][_0x1712ec(0x1a2)]),_0x47280e=_0x27ebe5[_0x1712ec(0x192)],_0x122a48=_0x1712ec(0x17f)===_0x4d349b[_0x1712ec(0x1bf)]?_0x1712ec(0x191):_0x1712ec(0x1ac);_0x27ebe5[_0x1712ec(0x1b4)]();const _0x5e9b72=_0x47280e-_0x27ebe5[_0x1712ec(0x192)]+0x1;this[_0x1712ec(0x1bd)][_0x1712ec(0x1a2)][_0x1712ec(0x180)][_0x122a48]=_0x1712ec(0x195)+(_0x47280e-_0x359bfa[_0x1712ec(0x192)]-_0x5e9b72)+_0x1712ec(0x18b);}});};this[_0x391541(0x1a9)][_0x391541(0x1af)]['on'](_0x391541(0x18e),_0x10f70b),this['on'](_0x391541(0x1a7),()=>{const _0x43118e=_0x391541;_0x10f70b(),this[_0x43118e(0x18d)]=new _0x2630a2(this[_0x43118e(0x1a9)][_0x43118e(0x1af)][_0x43118e(0x1a2)],()=>{_0x10f70b();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x174e0e=_0x4e11;(function(_0xb02704,_0x4c3413){const _0x234934=_0x4e11,_0x2d7097=_0xb02704();while(!![]){try{const _0x59661b=-parseInt(_0x234934(0x1b9))/0x1*(-parseInt(_0x234934(0x1c0))/0x2)+-parseInt(_0x234934(0x1bf))/0x3+-parseInt(_0x234934(0x1c1))/0x4+parseInt(_0x234934(0x1bd))/0x5+parseInt(_0x234934(0x1ba))/0x6*(parseInt(_0x234934(0x1c2))/0x7)+-parseInt(_0x234934(0x1bb))/0x8*(-parseInt(_0x234934(0x1c3))/0x9)+-parseInt(_0x234934(0x1c4))/0xa;if(_0x59661b===_0x4c3413)break;else _0x2d7097['push'](_0x2d7097['shift']());}catch(_0x45bb5a){_0x2d7097['push'](_0x2d7097['shift']());}}}(_0x2f80,0xaba3b));import{ListView as _0x2f7926}from'ckeditor5/src/ui.js';function _0x4e11(_0x17a52e,_0x194775){const _0x2f80d8=_0x2f80();return _0x4e11=function(_0x4e1169,_0x33e924){_0x4e1169=_0x4e1169-0x1b9;let _0x4265f9=_0x2f80d8[_0x4e1169];return _0x4265f9;},_0x4e11(_0x17a52e,_0x194775);}export class AIChatPromptSuggestionsListView extends _0x2f7926{[_0x174e0e(0x1be)](){const _0x24084c=_0x174e0e;let _0x4fe6c1=0x0;for(const _0x337677 of this[_0x24084c(0x1c5)])_0x4fe6c1+=_0x337677[_0x24084c(0x1c5)][_0x24084c(0x1bc)];return{'resultsCount':_0x4fe6c1,'totalItemsCount':_0x4fe6c1};}}function _0x2f80(){const _0x3a1b9c=['20292gMlnyF','8IKxnPK','length','2699110pweYNA','filter','2583759CmUgaP','1522070pyGamD','5107328UtCrPs','2800oxKLGl','9034893ZfneLL','8164140SdDZCT','items','1QIsSMl'];_0x2f80=function(){return _0x3a1b9c;};return _0x2f80();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1ee6fb=_0x42ee;(function(_0x3cb06b,_0x5b1a3d){const _0x34ca2f=_0x42ee,_0x4031f1=_0x3cb06b();while(!![]){try{const _0x488c75=parseInt(_0x34ca2f(0x1a7))/0x1+-parseInt(_0x34ca2f(0x193))/0x2*(-parseInt(_0x34ca2f(0x1a5))/0x3)+-parseInt(_0x34ca2f(0x19b))/0x4*(parseInt(_0x34ca2f(0x18b))/0x5)+-parseInt(_0x34ca2f(0x199))/0x6+-parseInt(_0x34ca2f(0x18f))/0x7+-parseInt(_0x34ca2f(0x198))/0x8+parseInt(_0x34ca2f(0x19c))/0x9*(parseInt(_0x34ca2f(0x194))/0xa);if(_0x488c75===_0x5b1a3d)break;else _0x4031f1['push'](_0x4031f1['shift']());}catch(_0x172caa){_0x4031f1['push'](_0x4031f1['shift']());}}}(_0x1643,0x7701d));function _0x42ee(_0x54f991,_0x1c5bc2){const _0x164306=_0x1643();return _0x42ee=function(_0x42eeac,_0xb36876){_0x42eeac=_0x42eeac-0x189;let _0x2a0919=_0x164306[_0x42eeac];return _0x2a0919;},_0x42ee(_0x54f991,_0x1c5bc2);}import{ListView as _0x2c3a03}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x2d64f9}from'./aichatresourcelistitemview.js';const uc=_0x1ee6fb(0x192);function _0x1643(){const _0x14a879=['trim','highlightText','add','2622656MmsOVB','479892DkFHgv','extendTemplate','628nqAIJF','99KAdfYl','\x5c$&','forEach','items','_handleResourceSelection','resource','_source','setResources','execute','69RoorSg','useDefaultFiltering','956845NeHFhq','filter','clear','replace','label','24745QaKnFe','test','addResourceToContext','updateResourceState','1953987zZUJvB','locale','fire','ck-ai-chat-resources__list','70558fgpnbp','166490ltrRXd'];_0x1643=function(){return _0x14a879;};return _0x1643();}export class AIChatContextResourcesListView extends _0x2c3a03{[_0x1ee6fb(0x1a2)];constructor(_0x5edba8,_0x22ea0a){const _0x32574b=_0x1ee6fb;super(_0x5edba8),this[_0x32574b(0x1a2)]=_0x22ea0a,this[_0x32574b(0x19a)]({'attributes':{'class':[uc]}});}[_0x1ee6fb(0x1a3)](_0x44e371,_0x5734d4){const _0x58ab64=_0x1ee6fb;this[_0x58ab64(0x19f)][_0x58ab64(0x1a9)]();let _0xd17219=_0x44e371;if(this[_0x58ab64(0x1a2)][_0x58ab64(0x1a6)]&&_0x5734d4&&''!==_0x5734d4[_0x58ab64(0x195)]()){const _0x1d5d34=new RegExp(_0x5734d4[_0x58ab64(0x189)](/[.*+?^${}()|[\]\\]/g,_0x58ab64(0x19d)),'gi');_0xd17219=_0x44e371[_0x58ab64(0x1a8)](_0x221ad3=>_0x1d5d34[_0x58ab64(0x18c)](_0x221ad3[_0x58ab64(0x18a)]));}for(const _0x18581e of _0xd17219){const _0x2761d0=new _0x2d64f9(this[_0x58ab64(0x190)],_0x18581e);_0x2761d0['on'](_0x58ab64(0x1a4),()=>{const _0x4364c9=_0x58ab64;this[_0x4364c9(0x1a0)](this[_0x4364c9(0x1a2)],_0x18581e);}),this[_0x58ab64(0x19f)][_0x58ab64(0x197)](_0x2761d0);}this[_0x58ab64(0x1a2)][_0x58ab64(0x1a6)]&&this[_0x58ab64(0x196)](_0x5734d4);}[_0x1ee6fb(0x196)](_0x4e39e3){const _0x498156=_0x1ee6fb;this[_0x498156(0x1a2)][_0x498156(0x1a6)]&&this[_0x498156(0x19f)][_0x498156(0x19e)](_0x14e6d7=>{const _0x43efa4=_0x498156;_0x14e6d7[_0x43efa4(0x196)](_0x4e39e3);});}[_0x1ee6fb(0x18e)](_0x374a91,_0x5cbd92){const _0xd8a708=_0x1ee6fb;for(const _0x4d47c2 of this[_0xd8a708(0x19f)]){const _0x1a4677=_0x4d47c2;_0x1a4677[_0xd8a708(0x1a1)]['id']===_0x374a91&&_0x1a4677[_0xd8a708(0x18e)](_0x5cbd92);}}[_0x1ee6fb(0x1a0)](_0x2c454a,_0x1083fe){const _0x2796f1=_0x1ee6fb;this[_0x2796f1(0x191)](_0x2796f1(0x18d),{'source':_0x2c454a,'resource':_0x1083fe});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4980c0=_0x1289;function _0x1289(_0xbf492,_0x202e8e){const _0x2479c7=_0x2479();return _0x1289=function(_0x12894e,_0x1a93f7){_0x12894e=_0x12894e-0x16a;let _0x1867cf=_0x2479c7[_0x12894e];return _0x1867cf;},_0x1289(_0xbf492,_0x202e8e);}(function(_0x10d5b4,_0x3f087b){const _0x397e36=_0x1289,_0x1348b0=_0x10d5b4();while(!![]){try{const _0x5db703=-parseInt(_0x397e36(0x175))/0x1+parseInt(_0x397e36(0x173))/0x2+parseInt(_0x397e36(0x171))/0x3+-parseInt(_0x397e36(0x17c))/0x4*(parseInt(_0x397e36(0x172))/0x5)+-parseInt(_0x397e36(0x187))/0x6+-parseInt(_0x397e36(0x18c))/0x7*(parseInt(_0x397e36(0x184))/0x8)+parseInt(_0x397e36(0x170))/0x9;if(_0x5db703===_0x3f087b)break;else _0x1348b0['push'](_0x1348b0['shift']());}catch(_0x595d40){_0x1348b0['push'](_0x1348b0['shift']());}}}(_0x2479,0xd2ef0));import{View as _0x826f91,ViewCollection as _0x8f67a0}from'ckeditor5/src/ui.js';import{uid as _0x2ee9b8}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x11f0f9}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x34ff94}from'./aichatresourcessearchinputview.js';function _0x2479(){const _0x330da9=['_skeletonLoader','loadResources','updateResourceState','21574386TSwLiX','3055086yQZuec','1875455SBepoE','1713334DfEKjw','addResourceToContext','1009466GamjRV','useDefaultFiltering','search','getQuery','isLoading','highlightText','_createResourcesListView','12yQvcbG','children','fire','bindTemplate','extendTemplate','ck-ai-chat-resources','length','_resourcesListView','776hQDnpn','_createSearchSection','add','5686986UijsRe','set','setResources','ck-hidden','_searchSection','23499RnGnmV','_createSkeletonView','ck\x20ck-search','loadSourceResources','locale','render','_searchView','delegate','has','_searchInputVisibleFrom','setTemplate','searchInputVisibleFrom','source','aiChatResources','_createSearchView','_latestLoadResourcesUid','_source','div'];_0x2479=function(){return _0x330da9;};return _0x2479();}import{AISkeletonView as _0xc00efc,SKELETON_DEFINITIONS as _0x100f25}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x826f91{[_0x4980c0(0x192)];[_0x4980c0(0x18b)];[_0x4980c0(0x195)];[_0x4980c0(0x183)];[_0x4980c0(0x16d)];[_0x4980c0(0x16b)];[_0x4980c0(0x17d)];[_0x4980c0(0x16a)]=null;constructor(_0x3f1149,_0x1fb22b){const _0x55373b=_0x4980c0;super(_0x3f1149),this[_0x55373b(0x16b)]=_0x1fb22b[_0x55373b(0x198)],this[_0x55373b(0x195)]=_0x1fb22b[_0x55373b(0x197)]??0x7,this[_0x55373b(0x188)](_0x55373b(0x179),!0x0),this[_0x55373b(0x192)]=this[_0x55373b(0x19a)](),this[_0x55373b(0x18b)]=this[_0x55373b(0x185)](),this[_0x55373b(0x183)]=this[_0x55373b(0x17b)](),this[_0x55373b(0x16d)]=this[_0x55373b(0x18d)](),this[_0x55373b(0x17d)]=new _0x8f67a0([this[_0x55373b(0x16d)],this[_0x55373b(0x183)]]),this[_0x55373b(0x196)]({'tag':_0x55373b(0x16c),'attributes':{'class':_0x55373b(0x181)},'children':this[_0x55373b(0x17d)]});}[_0x4980c0(0x19a)](){const _0x5cb51a=_0x4980c0;return new _0x34ff94(this[_0x5cb51a(0x190)]);}[_0x4980c0(0x185)](){const _0x30b7e1=_0x4980c0,_0x2baa03=new _0x826f91(this[_0x30b7e1(0x190)]);return _0x2baa03[_0x30b7e1(0x196)]({'tag':_0x30b7e1(0x16c),'attributes':{'class':_0x30b7e1(0x18e)},'children':[this[_0x30b7e1(0x192)]]}),this[_0x30b7e1(0x192)]['on'](_0x30b7e1(0x177),(_0x3f68e4,_0x238179)=>{const _0x2c0555=_0x30b7e1;this[_0x2c0555(0x16e)](_0x238179),this[_0x2c0555(0x16b)][_0x2c0555(0x176)]&&this[_0x2c0555(0x183)][_0x2c0555(0x17a)](_0x238179);}),_0x2baa03;}[_0x4980c0(0x17b)](){const _0x34c358=_0x4980c0,_0x400df9=new _0x11f0f9(this[_0x34c358(0x190)],this[_0x34c358(0x16b)]);return _0x400df9[_0x34c358(0x193)](_0x34c358(0x174))['to'](this),_0x400df9[_0x34c358(0x180)]({'attributes':{'class':this[_0x34c358(0x17f)]['if'](_0x34c358(0x179),_0x34c358(0x18a))}}),_0x400df9;}[_0x4980c0(0x18d)](){const _0x225838=_0x4980c0,_0x53aae1=new _0xc00efc(this[_0x225838(0x190)],_0x100f25[_0x225838(0x199)]);return _0x53aae1[_0x225838(0x180)]({'attributes':{'class':[this[_0x225838(0x17f)]['if'](_0x225838(0x179),_0x225838(0x18a),_0x35aa44=>!_0x35aa44)]}}),_0x53aae1;}[_0x4980c0(0x191)](){const _0x921770=_0x4980c0;super[_0x921770(0x191)](),this[_0x921770(0x16e)]('');}[_0x4980c0(0x16e)](_0x33782e){const _0x158b2b=_0x4980c0,_0x58cd72=_0x2ee9b8();this[_0x158b2b(0x16a)]=_0x58cd72,this[_0x158b2b(0x17e)](_0x158b2b(0x18f),{'sourceId':this[_0x158b2b(0x16b)]['id'],'query':_0x33782e,'uid':_0x58cd72}),this[_0x158b2b(0x179)]=!0x0;}[_0x4980c0(0x189)](_0x36a7dd,_0xa1e330){const _0x1f791a=_0x4980c0;if(_0xa1e330&&_0xa1e330!==this[_0x1f791a(0x16a)])return;const _0x37c1ac=this[_0x1f791a(0x16b)][_0x1f791a(0x176)]?this[_0x1f791a(0x192)][_0x1f791a(0x178)]():'';this[_0x1f791a(0x183)][_0x1f791a(0x189)](_0x36a7dd,_0x37c1ac),_0x36a7dd[_0x1f791a(0x182)]>=this[_0x1f791a(0x195)]&&!this[_0x1f791a(0x17d)][_0x1f791a(0x194)](this[_0x1f791a(0x18b)])&&this[_0x1f791a(0x17d)][_0x1f791a(0x186)](this[_0x1f791a(0x18b)],0x0),requestAnimationFrame(()=>{const _0xe4cee0=_0x1f791a;this[_0xe4cee0(0x179)]=!0x1;});}[_0x4980c0(0x16f)](_0x553b86,_0x57a8b0){const _0x49034c=_0x4980c0;this[_0x49034c(0x183)][_0x49034c(0x16f)](_0x553b86,_0x57a8b0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x368b(){const _0x2c920a=['ck-ai-chat-resources__item','text','execute','span','487109lgDCib','updateResourceState','_titleView','ck-ai-chat-resources__item__icon','13976BXassl','ck-ai-chat-resources__item--in-context','215081YbyvnP','20PbXnOz','543952BfFCwX','highlightText','_iconView','render','931671ZAufeO','_setupTemplate','set','label','ck-hidden','bindTemplate','_createIconView','div','type','_updateIcon','_createTitleView','5575270irjNok','getResourceIcon','trim','content','isInContext','URL','32vRekCc','DOCUMENT','231rjRwAw','extendTemplate','FILE','isVisible','TEXT','ck-ai-chat-resources__item-title','setTemplate','3253290Eplajg','resource'];_0x368b=function(){return _0x2c920a;};return _0x368b();}const _0x17516d=_0x5e0d;(function(_0x17e6f2,_0x170e60){const _0x201a2a=_0x5e0d,_0x5ae33d=_0x17e6f2();while(!![]){try{const _0x5cffdb=-parseInt(_0x201a2a(0x1d2))/0x1+-parseInt(_0x201a2a(0x1d0))/0x2*(parseInt(_0x201a2a(0x1eb))/0x3)+-parseInt(_0x201a2a(0x1d4))/0x4*(parseInt(_0x201a2a(0x1d3))/0x5)+parseInt(_0x201a2a(0x1c6))/0x6+parseInt(_0x201a2a(0x1cc))/0x7+-parseInt(_0x201a2a(0x1e9))/0x8*(-parseInt(_0x201a2a(0x1d8))/0x9)+parseInt(_0x201a2a(0x1e3))/0xa;if(_0x5cffdb===_0x170e60)break;else _0x5ae33d['push'](_0x5ae33d['shift']());}catch(_0x3db633){_0x5ae33d['push'](_0x5ae33d['shift']());}}}(_0x368b,0x45e58));import{HighlightedTextView as _0x3f7067,IconView as _0xd8ddda,ListItemView as _0x371271}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x104852}from'es-toolkit/compat';import{AIContextItemType as _0x3055c5}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x299abf,IconCheck as _0x1dde88,IconDocument as _0x448cbc,IconDocumentOutline as _0x46a736,IconLink as _0x5ec31b}from'@ckeditor/ckeditor5-icons';const zr=_0x17516d(0x1c8),Jr=_0x17516d(0x1d1),Kr=_0x17516d(0x1c4),Mr=_0x17516d(0x1cf);function _0x5e0d(_0x27ae19,_0x3d771e){const _0x368be8=_0x368b();return _0x5e0d=function(_0x5e0d10,_0x54222d){_0x5e0d10=_0x5e0d10-0x1c4;let _0x4dec83=_0x368be8[_0x5e0d10];return _0x4dec83;},_0x5e0d(_0x27ae19,_0x3d771e);}export class AIChatResourceListItemView extends _0x371271{[_0x17516d(0x1c7)];[_0x17516d(0x1ce)];[_0x17516d(0x1d6)];constructor(_0x1c5b55,_0x21479c){const _0x4843b9=_0x17516d;super(_0x1c5b55),this[_0x4843b9(0x1c7)]=_0x21479c,this[_0x4843b9(0x1da)](_0x4843b9(0x1e7),!!_0x21479c[_0x4843b9(0x1e7)]),this[_0x4843b9(0x1ce)]=this[_0x4843b9(0x1e2)](),this[_0x4843b9(0x1d6)]=this[_0x4843b9(0x1de)](),this[_0x4843b9(0x1d9)]();}[_0x17516d(0x1d7)](){const _0x4950e3=_0x17516d;super[_0x4950e3(0x1d7)]();}[_0x17516d(0x1e4)](_0x1a9fd4){const _0x2b5d86=_0x17516d;if(_0x1a9fd4[_0x2b5d86(0x1e7)])return _0x1dde88;switch(_0x1a9fd4[_0x2b5d86(0x1e0)]){case _0x3055c5[_0x2b5d86(0x1ea)]:return _0x448cbc;case _0x3055c5[_0x2b5d86(0x1e8)]:return _0x5ec31b;case _0x3055c5[_0x2b5d86(0x1ed)]:case _0x3055c5[_0x2b5d86(0x1ef)]:return _0x299abf;default:return _0x46a736;}}[_0x17516d(0x1d5)](_0x58eb01){const _0x4a9ec9=_0x17516d;if(!_0x58eb01||''===_0x58eb01[_0x4a9ec9(0x1e5)]())return void this[_0x4a9ec9(0x1ce)][_0x4a9ec9(0x1d5)](null);const _0x409e43=new RegExp(_0x104852(_0x58eb01),'gi');this[_0x4a9ec9(0x1ce)][_0x4a9ec9(0x1d5)](_0x409e43);}[_0x17516d(0x1cd)](_0x1ca117){const _0x4c8eee=_0x17516d;this[_0x4c8eee(0x1c7)][_0x4c8eee(0x1e7)]=_0x1ca117,this[_0x4c8eee(0x1e7)]=_0x1ca117,this[_0x4c8eee(0x1e1)]();}[_0x17516d(0x1e2)](){const _0xae93c=_0x17516d,_0x2b57d2=new _0x3f7067();return _0x2b57d2[_0xae93c(0x1c9)]=this[_0xae93c(0x1c7)][_0xae93c(0x1db)],_0x2b57d2[_0xae93c(0x1ec)]({'tag':_0xae93c(0x1cb),'attributes':{'class':[Kr]}}),_0x2b57d2;}[_0x17516d(0x1de)](){const _0x4cace8=_0x17516d,_0x1f0450=new _0xd8ddda();return _0x1f0450[_0x4cace8(0x1e6)]=this[_0x4cace8(0x1e4)](this[_0x4cace8(0x1c7)]),_0x1f0450;}[_0x17516d(0x1d9)](){const _0x3c3b85=_0x17516d,_0xdabc56=this[_0x3c3b85(0x1dd)];this[_0x3c3b85(0x1c5)]({'tag':_0x3c3b85(0x1df),'attributes':{'class':[zr,_0xdabc56['if'](_0x3c3b85(0x1ee),_0x3c3b85(0x1dc),_0x1720e6=>!_0x1720e6),_0xdabc56['if'](_0x3c3b85(0x1e7),Jr)]},'children':[{'tag':_0x3c3b85(0x1df),'attributes':{'class':[Mr]},'children':[this[_0x3c3b85(0x1d6)]]},this[_0x3c3b85(0x1ce)]],'on':{'click':_0xdabc56['to'](_0x3c3b85(0x1ca))}});}[_0x17516d(0x1e1)](){const _0x5e5c30=_0x17516d;this[_0x5e5c30(0x1d6)][_0x5e5c30(0x1e6)]=this[_0x5e5c30(0x1e4)](this[_0x5e5c30(0x1c7)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x5cdd(){const _0x2d3afe=['800046MkAzxu','get','_createBalloonHeader','_getResourcesViewFromBalloon','1933603jjddfS','getTargetElement','135387xgVmzV','loadSourceResources','214PnAFdQ','children','_createBackButton','1598880NvWerH','onResourceSelected','label','_sourceResourceBalloons','searchInputVisibleFrom','resource','content','525BZURhf','_setupSingleResourceBalloonClickOutsideHandler','addResourceToContext','extendTemplate','setResources','_locale','once','onBalloonClosed','hide','show','5xbNOQo','_createBalloonResourcesView','populateSourceResourceBalloon','showSourceResourcesBalloon','8CsRkLq','_createSourceResourceBalloonPanel','onLoadSourceResources','isVisible','source','delete','closeSourceResourceBalloon','ck-button-icon\x20ck-button-back','clear','237736djLzjp','ck-ai-chat-context-controls__source-balloon-panel','values','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','getLimiterElement','_bodyCollection','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','set','865692KDLFHV','add','pin','destroy','onBackToContext','isAnyResourceBalloonVisible','execute','_addSourceResourceContent','updateResourceState','change:isLoading','_config','element'];_0x5cdd=function(){return _0x2d3afe;};return _0x5cdd();}function _0x1935(_0x34416c,_0x36381e){const _0x5cdd83=_0x5cdd();return _0x1935=function(_0x193565,_0xa25a36){_0x193565=_0x193565-0x1b0;let _0x4279e0=_0x5cdd83[_0x193565];return _0x4279e0;},_0x1935(_0x34416c,_0x36381e);}const _0x34a17f=_0x1935;(function(_0x33aae7,_0x29850f){const _0x1a7e3b=_0x1935,_0x3741f9=_0x33aae7();while(!![]){try{const _0x32f2de=-parseInt(_0x1a7e3b(0x1bd))/0x1+parseInt(_0x1a7e3b(0x1bf))/0x2*(-parseInt(_0x1a7e3b(0x1c9))/0x3)+-parseInt(_0x1a7e3b(0x1e0))/0x4*(parseInt(_0x1a7e3b(0x1d3))/0x5)+-parseInt(_0x1a7e3b(0x1e8))/0x6+parseInt(_0x1a7e3b(0x1bb))/0x7*(parseInt(_0x1a7e3b(0x1d7))/0x8)+parseInt(_0x1a7e3b(0x1b7))/0x9+parseInt(_0x1a7e3b(0x1c2))/0xa;if(_0x32f2de===_0x29850f)break;else _0x3741f9['push'](_0x3741f9['shift']());}catch(_0x3db4de){_0x3741f9['push'](_0x3741f9['shift']());}}}(_0x5cdd,0x28d0f));import{BalloonPanelView as _0x744221,ButtonView as _0xd77154,clickOutsideHandler as _0x2dc5cc,FormHeaderView as _0x2e78f2}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x4c4a2f}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x283394}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0xfe701}from'./aichatcontextresourcesview.js';const Bc=_0x34a17f(0x1e1),_c=_0x34a17f(0x1de),mc=_0x34a17f(0x1e6);export class AIChatResourcesBalloonView{[_0x34a17f(0x1c5)]=new Map();[_0x34a17f(0x1e5)];[_0x34a17f(0x1ce)];[_0x34a17f(0x1b5)];constructor(_0x940ebe,_0x44b5b7,_0x46c15b){const _0x48bdf7=_0x34a17f;this[_0x48bdf7(0x1ce)]=_0x940ebe,this[_0x48bdf7(0x1e5)]=_0x44b5b7,this[_0x48bdf7(0x1b5)]=_0x46c15b;}[_0x34a17f(0x1d6)]({source:_0x1a1270,withBackButton:_0x15cca8}){const _0x1cb96b=_0x34a17f;let _0x3c1c34=this[_0x1cb96b(0x1c5)][_0x1cb96b(0x1b8)](_0x1a1270['id']);_0x3c1c34||(_0x3c1c34=this[_0x1cb96b(0x1d8)](),this[_0x1cb96b(0x1c5)][_0x1cb96b(0x1e7)](_0x1a1270['id'],_0x3c1c34),this[_0x1cb96b(0x1ca)](_0x3c1c34)),this[_0x1cb96b(0x1b2)]({'balloonPanel':_0x3c1c34,'source':_0x1a1270,'withBackButton':_0x15cca8}),_0x3c1c34[_0x1cb96b(0x1d2)]();const _0x3ae7de=this[_0x1cb96b(0x1b5)][_0x1cb96b(0x1bc)]();_0x3ae7de&&_0x3c1c34[_0x1cb96b(0x1ea)]({'target':_0x3ae7de,'limiter':this[_0x1cb96b(0x1b5)][_0x1cb96b(0x1e4)]()});}[_0x34a17f(0x1d5)](_0x5316d0,_0x29768c,_0x52c226){const _0x2877f7=_0x34a17f,_0x14e4d1=this[_0x2877f7(0x1c5)][_0x2877f7(0x1b8)](_0x5316d0);if(!_0x14e4d1)return;const _0x2ead29=this[_0x2877f7(0x1ba)](_0x14e4d1);_0x2ead29&&(_0x2ead29[_0x2877f7(0x1cd)](_0x29768c,_0x52c226),_0x2ead29[_0x2877f7(0x1cf)](_0x2877f7(0x1b4),()=>{const _0xf4acaa=_0x2877f7;_0x14e4d1[_0xf4acaa(0x1ea)]({'target':this[_0xf4acaa(0x1b5)][_0xf4acaa(0x1bc)](),'limiter':this[_0xf4acaa(0x1b5)][_0xf4acaa(0x1e4)]()});}));}[_0x34a17f(0x1dd)](_0x14ba7c){const _0x4dbeaa=_0x34a17f,_0x1489fb=this[_0x4dbeaa(0x1c5)][_0x4dbeaa(0x1b8)](_0x14ba7c);_0x1489fb&&requestAnimationFrame(()=>{const _0x112290=_0x4dbeaa;_0x1489fb[_0x112290(0x1d1)](),this[_0x112290(0x1c5)][_0x112290(0x1dc)](_0x14ba7c),this[_0x112290(0x1b5)][_0x112290(0x1d0)]();});}[_0x34a17f(0x1b0)](){const _0x139785=_0x34a17f;for(const _0x4d1c66 of this[_0x139785(0x1c5)][_0x139785(0x1e2)]())if(_0x4d1c66[_0x139785(0x1da)])return!0x0;return!0x1;}[_0x34a17f(0x1b3)](_0x49e7e2,_0x25a984,_0x418d37){const _0x312a43=_0x34a17f,_0x49a0a3=this[_0x312a43(0x1c5)][_0x312a43(0x1b8)](_0x49e7e2);if(!_0x49a0a3||!_0x49a0a3[_0x312a43(0x1da)])return;const _0x11d331=this[_0x312a43(0x1b5)][_0x312a43(0x1bc)]();if(!_0x11d331)return;_0x49a0a3[_0x312a43(0x1ea)]({'target':_0x11d331,'limiter':this[_0x312a43(0x1b5)][_0x312a43(0x1e4)]()});const _0x27514f=this[_0x312a43(0x1ba)](_0x49a0a3);_0x27514f&&_0x27514f[_0x312a43(0x1b3)](_0x25a984,_0x418d37);}[_0x34a17f(0x1eb)](){const _0x28c5c6=_0x34a17f;for(const _0x424daa of this[_0x28c5c6(0x1c5)][_0x28c5c6(0x1e2)]())_0x424daa[_0x28c5c6(0x1eb)]();this[_0x28c5c6(0x1c5)][_0x28c5c6(0x1df)]();}[_0x34a17f(0x1d8)](){const _0x2c61a1=_0x34a17f,_0x9560fb=new _0x744221(this[_0x2c61a1(0x1ce)]);return _0x9560fb[_0x2c61a1(0x1cc)]({'attributes':{'class':Bc}}),this[_0x2c61a1(0x1e5)][_0x2c61a1(0x1e9)](_0x9560fb),_0x9560fb;}[_0x34a17f(0x1b2)]({balloonPanel:_0x191203,source:_0x456406,withBackButton:_0x4d0d08}){const _0xb68096=_0x34a17f;_0x191203[_0xb68096(0x1c8)][_0xb68096(0x1df)]();const _0x4c4c14=this[_0xb68096(0x1b9)]({'balloonPanel':_0x191203,'source':_0x456406,'withBackButton':_0x4d0d08});_0x191203[_0xb68096(0x1c8)][_0xb68096(0x1e9)](_0x4c4c14);const _0x115e1d=this[_0xb68096(0x1d4)](_0x456406);_0x191203[_0xb68096(0x1c8)][_0xb68096(0x1e9)](_0x115e1d);}[_0x34a17f(0x1b9)]({balloonPanel:_0x136c94,source:_0x1f5053,withBackButton:_0x9cb2c5}){const _0xa68438=_0x34a17f,_0x424371=new _0x2e78f2(this[_0xa68438(0x1ce)],{'label':_0x1f5053[_0xa68438(0x1c4)],'class':mc});return _0x9cb2c5&&_0x424371[_0xa68438(0x1c0)][_0xa68438(0x1e9)](this[_0xa68438(0x1c1)](_0x136c94),0x0),_0x424371;}[_0x34a17f(0x1c1)](_0x10090f){const _0x4bf498=_0x34a17f,_0x3c1103=new _0xd77154(this[_0x4bf498(0x1ce)]);return _0x3c1103[_0x4bf498(0x1e7)]({'icon':_0x4c4a2f,'tooltip':_0x283394(this[_0x4bf498(0x1ce)],_0x4bf498(0x1e3)),'tooltipPosition':'n','class':_c}),_0x3c1103['on'](_0x4bf498(0x1b1),()=>{const _0x3da036=_0x4bf498;_0x10090f[_0x3da036(0x1d1)](),this[_0x3da036(0x1b5)][_0x3da036(0x1ec)]();}),_0x3c1103;}[_0x34a17f(0x1d4)](_0x2c1e76){const _0x5af425=_0x34a17f,_0x28f4ae=new _0xfe701(this[_0x5af425(0x1ce)],{'source':_0x2c1e76,'searchInputVisibleFrom':this[_0x5af425(0x1b5)][_0x5af425(0x1c6)]});return _0x28f4ae['on'](_0x5af425(0x1be),(_0x2d6bbd,_0x1e12cd)=>{const _0x8ef01e=_0x5af425;this[_0x8ef01e(0x1b5)][_0x8ef01e(0x1d9)](_0x1e12cd);}),_0x28f4ae['on'](_0x5af425(0x1cb),(_0x128fa9,_0x333b5e)=>{const _0x31e367=_0x5af425;this[_0x31e367(0x1b5)][_0x31e367(0x1c3)](_0x333b5e[_0x31e367(0x1db)],_0x333b5e[_0x31e367(0x1c7)]),this[_0x31e367(0x1dd)](_0x2c1e76['id']);}),_0x28f4ae;}[_0x34a17f(0x1ba)](_0x4d5129){const _0x4a5762=_0x34a17f,_0x323580=_0x4d5129[_0x4a5762(0x1c8)][_0x4a5762(0x1b8)](0x1);return _0x323580 instanceof _0xfe701?_0x323580:null;}[_0x34a17f(0x1ca)](_0x1e332d){const _0x5dc567=_0x34a17f;_0x2dc5cc({'emitter':_0x1e332d,'contextElements':[_0x1e332d[_0x5dc567(0x1b6)]],'callback':()=>{const _0x3cd736=_0x5dc567;_0x1e332d[_0x3cd736(0x1d1)](),this[_0x3cd736(0x1b5)][_0x3cd736(0x1d0)]();},'activator':()=>_0x1e332d[_0x5dc567(0x1da)]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x10cb88,IconView as _0x35936e,LabeledFieldView as _0x47b944,createLabeledInputText as th}from'ckeditor5/src/ui.js';import{IconLoupe as _0x18f62b,IconCancel as _0x5cb406}from'ckeditor5/src/icons.js';import{getTranslation as _0x138f49}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x47b944{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x28d829){const t=_0x28d829['t'],_0x125a63={'showResetButton':!0x0,'showIcon':!0x0,'creator':th,'label':_0x138f49(_0x28d829,'AI_CHAT_SEARCH_RESOURCES')};super(_0x28d829,_0x125a63['creator']),this['label']=_0x125a63['label'],this['_viewConfig']=_0x125a63,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x28d829,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x35cfdd){this['fire']('search',_0x35cfdd);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x35936e(),this['iconView']['content']=_0x18f62b,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x272ada,t){this['resetButtonView']=new _0x10cb88(_0x272ada),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x5cb406,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0xe5bd46=>!_0xe5bd46),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}
|