@ckeditor/ckeditor5-ai 47.7.4 → 47.7.5
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
|
+
function _0x4ae1(_0x11ba91,_0xcc6654){const _0x1a5a78=_0x1a5a();return _0x4ae1=function(_0x4ae1f6,_0x364265){_0x4ae1f6=_0x4ae1f6-0xbf;let _0x47e293=_0x1a5a78[_0x4ae1f6];return _0x47e293;},_0x4ae1(_0x11ba91,_0xcc6654);}const _0x5ea9c4=_0x4ae1;(function(_0x3f9427,_0x3dbcb1){const _0x7cbd16=_0x4ae1,_0x1ae3c1=_0x3f9427();while(!![]){try{const _0x2a57df=-parseInt(_0x7cbd16(0xee))/0x1+parseInt(_0x7cbd16(0xd5))/0x2*(parseInt(_0x7cbd16(0xfc))/0x3)+parseInt(_0x7cbd16(0xdb))/0x4+-parseInt(_0x7cbd16(0xd0))/0x5+parseInt(_0x7cbd16(0x105))/0x6*(-parseInt(_0x7cbd16(0xff))/0x7)+parseInt(_0x7cbd16(0x101))/0x8+parseInt(_0x7cbd16(0xdf))/0x9*(parseInt(_0x7cbd16(0xed))/0xa);if(_0x2a57df===_0x3dbcb1)break;else _0x1ae3c1['push'](_0x1ae3c1['shift']());}catch(_0x4163d4){_0x1ae3c1['push'](_0x1ae3c1['shift']());}}}(_0x1a5a,0x2f387));import{FocusTracker as _0x539a69,KeystrokeHandler as _0x521770}from'ckeditor5/src/utils.js';function _0x1a5a(){const _0x21282b=['setError','tab','ck-labeled-field-view_empty','_createBackButton','withBackButton','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','_handleSubmit','listenTo','locale','4020450UlgyOn','258727PpBHlO','element','form','errorText','fire','AI_CHAT_CONTEXT_URL_PLACEHOLDER','\x20ck-hidden','stop','_focusables','ck-ai-chat-context-controls__url-form','ck-button-icon\x20ck-button-back','AI_CHAT_CONTEXT_URL_INVALID_ERROR','_setupTemplate','children','3qhUUdz','confirmButton','value','2849XpQFkY','trim','726832jXEtiV','div','destroy','createCollection','5106Zsmmih','_createUrlInputField','ck-ai-chat-context-controls__url-input-section','execute','_updateConfirmButtonState','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','getValue','shift+tab','focusTracker','change:withBackButton','input','setTemplate','clearError','_isValidUrl','ck-button-icon','render','refreshBalloon','submitUrl','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','_createConfirmButton','forEach','submit','focus','42760wVEkeF','cancel','AI_CHAT_CONTEXT_URL_ADD_URL','esc','clear','121168FchVed','urlInputField','length','keystrokes','set','_setupEventHandlers','1014272giXdcC','AI_CHAT_CONTEXT_URL_LABEL','add','_setupKeystrokes','9KsSXUv','backButton','isEnabled','fieldView','focusCycler'];_0x1a5a=function(){return _0x21282b;};return _0x1a5a();}import{ButtonView as _0x2a7e1b,FocusCycler as _0x4b2301,LabeledFieldView as _0x365ed2,View as _0x417c02,FormHeaderView as _0x377da3,createLabeledInputText as _0x3a67b7,submitHandler as _0x892ffe}from'ckeditor5/src/ui.js';import{IconCheck as _0x409dfe,IconPreviousArrow as _0x10b4f1}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x11e33f}from'../../../aicore/utils/common-translations.js';const oh=_0x5ea9c4(0xf7),ch=_0x5ea9c4(0x107);export class AIChatContextPanelUrlInputView extends _0x417c02{[_0x5ea9c4(0xc1)];[_0x5ea9c4(0xd8)];[_0x5ea9c4(0xf6)];[_0x5ea9c4(0xe3)];[_0x5ea9c4(0xd6)];[_0x5ea9c4(0xe0)];[_0x5ea9c4(0xfd)];constructor(_0x24e153){const _0x148cbe=_0x5ea9c4;super(_0x24e153),this[_0x148cbe(0xc1)]=new _0x539a69(),this[_0x148cbe(0xd8)]=new _0x521770(),this[_0x148cbe(0xe0)]=this[_0x148cbe(0xe7)](),this[_0x148cbe(0xd6)]=this[_0x148cbe(0x106)](),this[_0x148cbe(0xfd)]=this[_0x148cbe(0xcc)](),this[_0x148cbe(0xf6)]=this[_0x148cbe(0x104)]([this[_0x148cbe(0xe0)],this[_0x148cbe(0xd6)],this[_0x148cbe(0xfd)]]),this[_0x148cbe(0xe3)]=new _0x4b2301({'focusables':this[_0x148cbe(0xf6)],'focusTracker':this[_0x148cbe(0xc1)],'keystrokeHandler':this[_0x148cbe(0xd8)],'actions':{'focusPrevious':_0x148cbe(0xc0),'focusNext':_0x148cbe(0xe5)}}),this[_0x148cbe(0xd9)](_0x148cbe(0xe8),!0x0),this[_0x148cbe(0xfa)](),this[_0x148cbe(0xda)](),this[_0x148cbe(0xde)]();}[_0x5ea9c4(0xc8)](){const _0x49ab5a=_0x5ea9c4;super[_0x49ab5a(0xc8)](),this[_0x49ab5a(0xf6)][_0x49ab5a(0xcd)](_0xde590=>{const _0x55393a=_0x49ab5a;this[_0x55393a(0xc1)][_0x55393a(0xdd)](_0xde590[_0x55393a(0xef)]),this[_0x55393a(0xd8)][_0x55393a(0xeb)](_0xde590[_0x55393a(0xef)]);}),_0x892ffe({'view':this}),this[_0x49ab5a(0xcf)]();}[_0x5ea9c4(0x103)](){const _0x3b8201=_0x5ea9c4;super[_0x3b8201(0x103)](),this[_0x3b8201(0xc1)][_0x3b8201(0x103)](),this[_0x3b8201(0xd8)][_0x3b8201(0x103)]();}[_0x5ea9c4(0xcf)](){const _0x2e1252=_0x5ea9c4;this[_0x2e1252(0xd6)][_0x2e1252(0xcf)]();}[_0x5ea9c4(0xbf)](){const _0x4a3313=_0x5ea9c4;return this[_0x4a3313(0xd6)][_0x4a3313(0xe2)][_0x4a3313(0xef)]?.[_0x4a3313(0xfe)]?.[_0x4a3313(0x100)]()||'';}[_0x5ea9c4(0xd4)](){const _0x1aab0a=_0x5ea9c4;this[_0x1aab0a(0xd6)][_0x1aab0a(0xe2)][_0x1aab0a(0xef)][_0x1aab0a(0xfe)]='',this[_0x1aab0a(0xd6)][_0x1aab0a(0xf1)]=null,this[_0x1aab0a(0xfd)][_0x1aab0a(0xe1)]=!0x1;}[_0x5ea9c4(0xe4)](_0x1e0f24){const _0x502cd5=_0x5ea9c4;this[_0x502cd5(0xd6)][_0x502cd5(0xf1)]=_0x1e0f24,this[_0x502cd5(0x109)](),this[_0x502cd5(0xf2)](_0x502cd5(0xc9));}[_0x5ea9c4(0xc5)](){const _0x242860=_0x5ea9c4;this[_0x242860(0xd6)][_0x242860(0xf1)]=null,this[_0x242860(0x109)]();}[_0x5ea9c4(0xe7)](){const _0x3aef6f=_0x5ea9c4,_0x48be93=new _0x2a7e1b(this[_0x3aef6f(0xec)]);return _0x48be93[_0x3aef6f(0xd9)]({'icon':_0x10b4f1,'tooltip':_0x11e33f(this[_0x3aef6f(0xec)],_0x3aef6f(0xcb)),'tooltipPosition':'n','class':[_0x3aef6f(0xf8)]}),this['on'](_0x3aef6f(0xc2),(_0x1f9f40,_0x2f57e4,_0x4b9807)=>{const _0x6faf4e=_0x3aef6f;_0x48be93[_0x6faf4e(0xd9)]({'class':[_0x6faf4e(0xf8)+(_0x4b9807?'':_0x6faf4e(0xf4))]});}),_0x48be93;}[_0x5ea9c4(0x106)](){const _0x20d5cc=_0x5ea9c4,_0x1edab8=new _0x365ed2(this[_0x20d5cc(0xec)],_0x3a67b7);return _0x1edab8[_0x20d5cc(0xd9)]({'label':_0x11e33f(this[_0x20d5cc(0xec)],_0x20d5cc(0xdc)),'class':_0x20d5cc(0xe6)}),_0x1edab8[_0x20d5cc(0xe2)][_0x20d5cc(0xd9)]({'placeholder':_0x11e33f(this[_0x20d5cc(0xec)],_0x20d5cc(0xf3))}),_0x1edab8;}[_0x5ea9c4(0xcc)](){const _0x387e08=_0x5ea9c4,_0x2c8553=new _0x2a7e1b(this[_0x387e08(0xec)]);return _0x2c8553[_0x387e08(0xd9)]({'icon':_0x409dfe,'tooltip':_0x11e33f(this[_0x387e08(0xec)],_0x387e08(0xd2)),'tooltipPosition':'n','class':_0x387e08(0xc7),'type':_0x387e08(0xce),'isEnabled':!0x1}),_0x2c8553;}[_0x5ea9c4(0xfa)](){const _0x1d9cd3=_0x5ea9c4,_0x1c00a9=new _0x377da3(this[_0x1d9cd3(0xec)],{'label':_0x11e33f(this[_0x1d9cd3(0xec)],_0x1d9cd3(0xd2)),'class':_0x1d9cd3(0xe9)});_0x1c00a9[_0x1d9cd3(0xfb)][_0x1d9cd3(0xdd)](this[_0x1d9cd3(0xe0)],0x0),this[_0x1d9cd3(0xc4)]({'tag':_0x1d9cd3(0xf0),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0x1c00a9,{'tag':_0x1d9cd3(0x102),'attributes':{'class':ch},'children':[this[_0x1d9cd3(0xd6)],this[_0x1d9cd3(0xfd)]]}]});}[_0x5ea9c4(0xda)](){const _0x858ab8=_0x5ea9c4;this[_0x858ab8(0xe0)]['on'](_0x858ab8(0x108),()=>{const _0x3ce13e=_0x858ab8;this[_0x3ce13e(0xd4)](),this[_0x3ce13e(0xf2)](_0x3ce13e(0xd1));}),this[_0x858ab8(0xd6)][_0x858ab8(0xe2)]['on'](_0x858ab8(0xc3),()=>{const _0x59b1ba=_0x858ab8;this[_0x59b1ba(0xc5)](),this[_0x59b1ba(0x109)](),this[_0x59b1ba(0xf2)](_0x59b1ba(0xc9));}),this['on'](_0x858ab8(0xce),_0x4a31f7=>{const _0x1e6fa2=_0x858ab8;_0x4a31f7[_0x1e6fa2(0xf5)](),this[_0x1e6fa2(0xea)]();});}[_0x5ea9c4(0xde)](){const _0x2afa68=_0x5ea9c4;this[_0x2afa68(0xd8)][_0x2afa68(0xd9)](_0x2afa68(0xd3),(_0x354462,_0x337547)=>{const _0x45ff25=_0x2afa68;this[_0x45ff25(0xd4)](),this[_0x45ff25(0xf2)](_0x45ff25(0xd1)),_0x337547();});}[_0x5ea9c4(0xea)](){const _0x164d4b=_0x5ea9c4,_0x2e22fa=this[_0x164d4b(0xbf)]()[_0x164d4b(0x100)]();_0x2e22fa?this[_0x164d4b(0xc6)](_0x2e22fa)?(this[_0x164d4b(0xc5)](),this[_0x164d4b(0xf2)](_0x164d4b(0xca),_0x2e22fa)):this[_0x164d4b(0xe4)](_0x11e33f(this[_0x164d4b(0xec)],_0x164d4b(0xf9))):this[_0x164d4b(0xe4)](_0x11e33f(this[_0x164d4b(0xec)],_0x164d4b(0x10a)));}[_0x5ea9c4(0x109)](){const _0x1c3bd9=_0x5ea9c4,_0x320d70=this[_0x1c3bd9(0xbf)]()[_0x1c3bd9(0x100)](),_0x23853a=!!this[_0x1c3bd9(0xd6)][_0x1c3bd9(0xf1)];this[_0x1c3bd9(0xfd)][_0x1c3bd9(0xe1)]=_0x320d70[_0x1c3bd9(0xd7)]>0x0&&!_0x23853a;}[_0x5ea9c4(0xc6)](_0x5b94ee){try{return!!new URL(_0x5b94ee);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3f867c=_0x6e7c;(function(_0x110210,_0x49e7b3){const _0x3b53f8=_0x6e7c,_0x32d5b2=_0x110210();while(!![]){try{const _0x2b7c89=-parseInt(_0x3b53f8(0x178))/0x1+-parseInt(_0x3b53f8(0x187))/0x2+-parseInt(_0x3b53f8(0x13a))/0x3*(-parseInt(_0x3b53f8(0x149))/0x4)+parseInt(_0x3b53f8(0x189))/0x5*(-parseInt(_0x3b53f8(0x15d))/0x6)+parseInt(_0x3b53f8(0x121))/0x7*(parseInt(_0x3b53f8(0x10e))/0x8)+-parseInt(_0x3b53f8(0x10d))/0x9+parseInt(_0x3b53f8(0x12c))/0xa;if(_0x2b7c89===_0x49e7b3)break;else _0x32d5b2['push'](_0x32d5b2['shift']());}catch(_0xbcbe4f){_0x32d5b2['push'](_0x32d5b2['shift']());}}}(_0x5aa8,0xa925b));function _0x5aa8(){const _0x5150e5=['searchInputVisibleFrom','697836JkpUYR','closest','length','_addUrlContent','_createArrowView','overflowChips','show','element','ck-ai-chat-context-chips-wrapper-balloon','_setupTemplate','arrowView','addContextItem','execute','urls','_currentContextsChips','hideUrlBalloonPanel','addFileToContext','showAddContextBalloonPanel','_addContextBalloonPanelView','isReadOnly','1473006byqImF','removeContextItem','locale','ck-ai-chat-context-controls__balloon-button-source','executeCustomItemCallback','addUrlToContext','label','ck-ai-chat-context-controls__pending-contexts','ck-reset_all-excluded','_createAddContextButtonView','addResourceToContext','ck-ai-chat-context-controls__url-balloon-panel','document','AI_CHAT_CONTEXT_URL_LABEL','sources','updateResourceState','balloonView','isEnabled','_addContextBalloonConfig','_createContextButton','clearCurrentContextItems','done','refreshBalloon','set','_removeContextFromCollection','setContextItemLoading','ck-ai-chat','478552aJDKkA','defaultPositions','_bindEventHandlers','current','ck-ai-chat-context-controls__add-context-button','createCollection','addDocumentToContext','_hasExactlyOneSource','_setupAddContextBalloonClickOutsideHandler','_createAddContextBalloonPanelView','clear','reorganizeChips','_resourcesBalloonView','populateSourceResourceBalloon','northArrowSouthEast','1310168KSHIDf','_urlBalloonPanelView','5PUtwJd','isLoading','_handleAddContextButtonClick','content','isHidden','closeSourceResourceBalloon','add','cancel','_showSourceResourcesBalloon','enabled','menuitem','__arrow','buttonView','icon','_addContextToCollection','ck-ai-chat-context-controls__balloon-button','find','_getLimiterElement','_handleUrlSubmit','render','_overflowManager','northArrowSouth','children','_urlInputView','bind','get','southArrowNorthEast','5315481NAUzsp','26584uEDqvC','destroy','isAnyResourceBalloonVisible','ck-ai-chat-controls-button','setConversationContext','_setupUrlBalloonClickOutsideHandler','isVisible','fire','southArrowNorth','_toggleAddContextBalloon','_createResourcesBalloonView','_conversationContextsChips','hide','customItems','_setupAllBalloonClickOutsideHandlers','_setBalloonPanelContent','clearConversationContextItems','remove','ck-ai-chat-context-controls__add-context-balloon-panel','1939YyUZrj','source','isOn','AI_CHAT_CONTEXT_ADD_CONTEXT','body','conversation','southArrowNorthWest','loadSourceResources','extendTemplate','focus','showUrlBalloonPanel','15676430mQOmFl','northArrowSouthWest','ck-ai-chat-context-controls__show-more-balloon-panel','tooltip','files','div','customItem','addContextButtonView','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','type','withBackButton','showSourceResourcesBalloon','_createBaseBalloonPanel','setTemplate','3ikuSKd','removeContextItemChip','setAddContextOptions','submitUrl','_setAddContextButtonEnabled','setContainerElement','bodyCollection','hideAddContextBalloonPanel','_createBalloonButton','AI_CHAT_CONTEXT_FILE_LABEL','ck-ai-chat-context-controls','ck-ai-chat-controls_context_show-more-button','pin','_createUrlBalloonPanelView'];_0x5aa8=function(){return _0x5150e5;};return _0x5aa8();}import{BalloonPanelView as _0x82bce3,ButtonView as _0x3a60ba,clickOutsideHandler as _0x19e289,FileDialogButtonView as _0x22be8d,IconView as _0x5e5ad1,View as _0x32bf15}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x190117,IconDocument as _0x5d1f56,IconDocumentOutline as _0x5402cd,IconDropdownArrow as _0x2d8b63,IconLink as _0x39f0b6,IconPaperClip as _0x35dbf5}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x521dee}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x16c38d}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x3f1ac2}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x3f377c}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x254e1e}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x3f867c(0x17e),_0x3f867c(0x159),_0x3f867c(0x162),_0x3f867c(0x167),_0x3f867c(0x15e),_0x3f867c(0x128),_0x3f867c(0x161)];const Ro=_0x3f867c(0x144),Oo=_0x3f867c(0x164),Uo=_0x3f867c(0x120),Lo=_0x3f867c(0x17c),No=_0x3f867c(0x168),Mo=_0x3f867c(0x101),Ho=_0x3f867c(0x160),jo=_0x3f867c(0x111),Fo=_0x3f867c(0x151),Xo=_0x3f867c(0x145),yo=_0x3f867c(0x12e),Do=_0x3f867c(0x177),$o=[_0x82bce3[_0x3f867c(0x179)][_0x3f867c(0x12d)],_0x82bce3[_0x3f867c(0x179)][_0x3f867c(0x107)],_0x82bce3[_0x3f867c(0x179)][_0x3f867c(0x186)],_0x82bce3[_0x3f867c(0x179)][_0x3f867c(0x127)],_0x82bce3[_0x3f867c(0x179)][_0x3f867c(0x116)],_0x82bce3[_0x3f867c(0x179)][_0x3f867c(0x10c)]];export class AIChatContextPanelView extends _0x32bf15{[_0x3f867c(0x133)];[_0x3f867c(0x157)]=this[_0x3f867c(0x17d)]();[_0x3f867c(0x119)]=this[_0x3f867c(0x17d)]();[_0x3f867c(0x106)];[_0x3f867c(0x15b)];[_0x3f867c(0x188)];[_0x3f867c(0x109)];[_0x3f867c(0x184)];[_0x3f867c(0x16f)];[_0x3f867c(0x17f)]=!0x1;[_0x3f867c(0x140)];constructor(_0x19779a,_0x460f82){const _0xa195a=_0x3f867c;super(_0x19779a),this[_0xa195a(0x140)]=_0x460f82[_0xa195a(0x140)],this[_0xa195a(0x157)]=this[_0xa195a(0x17d)](),this[_0xa195a(0x119)]=this[_0xa195a(0x17d)](),this[_0xa195a(0x133)]=this[_0xa195a(0x166)](_0x19779a),this[_0xa195a(0x15b)]=this[_0xa195a(0x181)](_0x19779a),this[_0xa195a(0x188)]=this[_0xa195a(0x147)](_0x19779a),this[_0xa195a(0x184)]=this[_0xa195a(0x118)](_0x19779a,_0x460f82);const _0x16891d={'cssClasses':{'showMoreButton':Xo,'showMoreBalloon':yo,'overflowContainer':Fo,'controlsButton':jo}};this[_0xa195a(0x106)]=new _0x3f1ac2(_0x19779a,this[_0xa195a(0x157)],_0x16891d,this[_0xa195a(0x140)],this),this[_0xa195a(0x16f)]={'buttonView':this[_0xa195a(0x133)],'balloonView':this[_0xa195a(0x15b)],'hideMethod':this[_0xa195a(0x141)][_0xa195a(0x10a)](this),'showMethod':this[_0xa195a(0x15a)][_0xa195a(0x10a)](this)},this[_0xa195a(0x152)](),this[_0xa195a(0x17a)]();}[_0x3f867c(0x105)](){const _0x5180d6=_0x3f867c;super[_0x5180d6(0x105)](),this[_0x5180d6(0x11c)](),this[_0x5180d6(0x106)][_0x5180d6(0x13f)](this[_0x5180d6(0x150)]),this[_0x5180d6(0x106)][_0x5180d6(0x183)]();}[_0x3f867c(0x10f)](){const _0x496020=_0x3f867c;super[_0x496020(0x10f)](),this[_0x496020(0x106)][_0x496020(0x10f)](),this[_0x496020(0x184)][_0x496020(0x10f)]();}[_0x3f867c(0x154)](_0x5b6e44,_0x3d1133){const _0x1a3573=_0x3f867c,_0x1a3568=this[_0x1a3573(0x170)](_0x5b6e44,_0x1a3573(0x17b),!0x0,_0x3d1133);this[_0x1a3573(0x100)](_0x1a3568,this[_0x1a3573(0x157)]),this[_0x1a3573(0x106)][_0x1a3573(0x183)]();}[_0x3f867c(0x15e)](_0x4c5db4){const _0x19f068=_0x3f867c;this[_0x19f068(0x175)](_0x4c5db4,this[_0x19f068(0x157)]),this[_0x19f068(0x175)](_0x4c5db4,this[_0x19f068(0x106)][_0x19f068(0x14e)]),this[_0x19f068(0x106)][_0x19f068(0x183)]();}[_0x3f867c(0x176)](_0x3740f4,_0xd464b2){const _0x3506ec=_0x3f867c;let _0x555fea=this[_0x3506ec(0x157)][_0x3506ec(0x102)](_0x1a0b1a=>_0x1a0b1a['id']===_0x3740f4);_0x555fea||(_0x555fea=this[_0x3506ec(0x106)][_0x3506ec(0x14e)][_0x3506ec(0x102)](_0x47ca21=>_0x47ca21['id']===_0x3740f4)),_0x555fea&&(_0x555fea[_0x3506ec(0x18a)]=_0xd464b2);}[_0x3f867c(0x112)](_0x288af0){const _0xa0bcb0=_0x3f867c;this[_0xa0bcb0(0x119)][_0xa0bcb0(0x182)]();for(const _0x3a322d of _0x288af0){const _0x6f40f6=this[_0xa0bcb0(0x170)](_0x3a322d,_0xa0bcb0(0x126),!0x1,!0x1);this[_0xa0bcb0(0x100)](_0x6f40f6,this[_0xa0bcb0(0x119)]);}}[_0x3f867c(0x171)](){const _0x5a4f26=_0x3f867c;this[_0x5a4f26(0x157)][_0x5a4f26(0x182)](),this[_0x5a4f26(0x106)][_0x5a4f26(0x182)]();}[_0x3f867c(0x11e)](){const _0x2d9bf1=_0x3f867c;this[_0x2d9bf1(0x119)][_0x2d9bf1(0x182)]();}[_0x3f867c(0x16c)](_0x1d80cf,_0x4b04f1,_0x2e543f){const _0x255ac3=_0x3f867c;this[_0x255ac3(0x184)][_0x255ac3(0x16c)](_0x1d80cf,_0x4b04f1,_0x2e543f);}[_0x3f867c(0x141)](){const _0x41c22f=_0x3f867c;this[_0x41c22f(0x117)](!0x1);}[_0x3f867c(0x15a)](){const _0x504efb=_0x3f867c;this[_0x504efb(0x117)](!0x0);}[_0x3f867c(0x158)](){const _0x1b9958=_0x3f867c;this[_0x1b9958(0x188)][_0x1b9958(0x11a)](),this[_0x1b9958(0x133)][_0x1b9958(0x123)]=!0x1,this[_0x1b9958(0x109)]&&this[_0x1b9958(0x109)][_0x1b9958(0x182)]();}[_0x3f867c(0x12b)](){const _0x211d12=_0x3f867c;this[_0x211d12(0x188)][_0x211d12(0x14f)](),this[_0x211d12(0x133)][_0x211d12(0x123)]=!0x0;}[_0x3f867c(0x191)]({source:_0x184396,withBackButton:_0x1e12f2}){const _0x511f32=_0x3f867c;this[_0x511f32(0x184)][_0x511f32(0x137)]({'source':_0x184396,'withBackButton':_0x1e12f2}),this[_0x511f32(0x133)][_0x511f32(0x123)]=!0x0;}[_0x3f867c(0x185)](_0x3f4043,_0xbebe5c,_0x5d7fdb,_0x458ca8){const _0x37fcd6=_0x3f867c;this[_0x37fcd6(0x184)][_0x37fcd6(0x185)](_0x3f4043,_0x5d7fdb,_0x458ca8);}[_0x3f867c(0x18e)](_0x4cc1d7){const _0x4fbc0f=_0x3f867c;this[_0x4fbc0f(0x184)][_0x4fbc0f(0x18e)](_0x4cc1d7),this[_0x4fbc0f(0x133)][_0x4fbc0f(0x123)]=!0x1;}[_0x3f867c(0x13c)](_0x25c254){const _0x4c6b25=_0x3f867c;this[_0x4c6b25(0x11d)](this[_0x4c6b25(0x15b)],this[_0x4c6b25(0x15f)],_0x25c254),this[_0x4c6b25(0x13e)](_0x25c254);}[_0x3f867c(0x13e)](_0x120339){const _0x94f5e9=_0x3f867c,_0x2210f5=!_0x120339[_0x94f5e9(0x169)][_0x94f5e9(0x18d)]&&_0x120339[_0x94f5e9(0x169)][_0x94f5e9(0x192)],_0x7de0de=_0x120339[_0x94f5e9(0x156)][_0x94f5e9(0x192)],_0x162cc0=_0x120339[_0x94f5e9(0x130)][_0x94f5e9(0x192)],_0x38d54c=_0x120339[_0x94f5e9(0x16b)][_0x94f5e9(0x14b)]>0x0,_0x702fb2=_0x120339[_0x94f5e9(0x11b)]&&_0x120339[_0x94f5e9(0x11b)][_0x94f5e9(0x14b)]>0x0;this[_0x94f5e9(0x133)][_0x94f5e9(0x16e)]=_0x2210f5||_0x7de0de||_0x162cc0||_0x38d54c||_0x702fb2;}[_0x3f867c(0x152)](){const _0x3debd2=_0x3f867c;this[_0x3debd2(0x139)]({'tag':_0x3debd2(0x131),'attributes':{'class':[Ro,_0x3debd2(0x165)]},'children':[{'tag':_0x3debd2(0x131),'attributes':{'class':Oo},'children':this[_0x3debd2(0x157)]}]});}[_0x3f867c(0x17a)](){const _0x1f9a98=_0x3f867c;this[_0x1f9a98(0x133)]['on'](_0x1f9a98(0x155),()=>{const _0x1e7b67=_0x1f9a98;this[_0x1e7b67(0x18b)]();});}[_0x3f867c(0x166)](_0x17445f){const _0x1e22ec=_0x3f867c,_0x216ce4=new _0x3a60ba(_0x17445f);return _0x216ce4[_0x1e22ec(0x174)]({'label':_0x3f377c(_0x17445f,_0x1e22ec(0x124)),'class':jo+'\x20'+Lo,'icon':_0x35dbf5,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x216ce4;}[_0x3f867c(0x181)](_0xf017ee){const _0xbd1b77=_0x3f867c;return this[_0xbd1b77(0x138)](_0xf017ee,Uo);}[_0x3f867c(0x147)](_0x279fc2){const _0x5726bc=_0x3f867c,_0x3b1dfd=this[_0x5726bc(0x138)](_0x279fc2,No);return this[_0x5726bc(0x14c)](_0x3b1dfd,_0x279fc2),_0x3b1dfd;}[_0x3f867c(0x118)](_0x452c97,_0x5058b4){const _0x25f35d=_0x3f867c,_0x11df69={'searchInputVisibleFrom':_0x5058b4[_0x25f35d(0x148)],'onBackToContext':()=>{const _0x398be3=_0x25f35d;this[_0x398be3(0x15a)](),this[_0x398be3(0x15b)][_0x398be3(0x146)]({'target':this[_0x398be3(0x133)][_0x398be3(0x150)],'limiter':this[_0x398be3(0x103)](),'positions':$o});},'onResourceSelected':(_0x506413,_0x481e9b)=>{const _0x5726ef=_0x25f35d;this[_0x5726ef(0x115)](_0x5726ef(0x167),{'source':_0x506413,'resource':_0x481e9b});},'onLoadSourceResources':_0x59f39e=>{const _0x2be9e7=_0x25f35d;this[_0x2be9e7(0x115)](_0x2be9e7(0x128),_0x59f39e);},'onBalloonClosed':()=>{const _0x4e7943=_0x25f35d;this[_0x4e7943(0x133)][_0x4e7943(0x123)]=!0x1;},'getLimiterElement':()=>this[_0x25f35d(0x103)](),'getTargetElement':()=>this[_0x25f35d(0x133)][_0x25f35d(0x150)]};return new _0x254e1e(_0x452c97,_0x5058b4[_0x25f35d(0x140)],_0x11df69);}[_0x3f867c(0x103)](){const _0x5f3082=_0x3f867c;return this[_0x5f3082(0x150)]?.[_0x5f3082(0x14a)]('.'+Do)||document[_0x5f3082(0x125)];}[_0x3f867c(0x138)](_0x10dd7e,_0x54c210){const _0xb226cf=_0x3f867c,_0x530aec=new _0x82bce3(_0x10dd7e);return _0x530aec[_0xb226cf(0x129)]({'attributes':{'class':_0x54c210}}),this[_0xb226cf(0x140)][_0xb226cf(0x18f)](_0x530aec),_0x530aec;}[_0x3f867c(0x11d)](_0x3a1204,_0x4908d5,_0x5ffd17){const _0xcef6f9=_0x3f867c;if(_0x3a1204[_0xcef6f9(0x18c)][_0xcef6f9(0x182)](),!_0x5ffd17[_0xcef6f9(0x169)][_0xcef6f9(0x18d)]&&_0x5ffd17[_0xcef6f9(0x169)][_0xcef6f9(0x192)]){const _0x2ba8ba=this[_0xcef6f9(0x142)](_0x4908d5,{'label':_0x3f377c(_0x4908d5,_0xcef6f9(0x134)),'icon':_0x5d1f56});_0x2ba8ba['on'](_0xcef6f9(0x155),()=>{const _0x202a2a=_0xcef6f9;this[_0x202a2a(0x115)](_0x202a2a(0x17e)),this[_0x202a2a(0x141)]();}),_0x3a1204[_0xcef6f9(0x18c)][_0xcef6f9(0x18f)](_0x2ba8ba);}if(_0x5ffd17[_0xcef6f9(0x156)][_0xcef6f9(0x192)]){const _0x46c90b=this[_0xcef6f9(0x142)](_0x4908d5,{'label':_0x3f377c(_0x4908d5,_0xcef6f9(0x16a)),'icon':_0x39f0b6});_0x46c90b['on'](_0xcef6f9(0x155),()=>{const _0x5d6d10=_0xcef6f9;this[_0x5d6d10(0x141)](),this[_0x5d6d10(0x12b)](),this[_0x5d6d10(0x188)][_0x5d6d10(0x146)]({'target':this[_0x5d6d10(0x133)][_0x5d6d10(0x150)],'limiter':this[_0x5d6d10(0x103)](),'positions':$o}),this[_0x5d6d10(0x109)][_0x5d6d10(0x12a)]();}),_0x3a1204[_0xcef6f9(0x18c)][_0xcef6f9(0x18f)](_0x46c90b);}if(_0x5ffd17[_0xcef6f9(0x130)][_0xcef6f9(0x192)]){const _0x53cde6=new _0x22be8d(_0x4908d5);_0x53cde6[_0xcef6f9(0x174)]({'label':_0x3f377c(_0x4908d5,_0xcef6f9(0x143)),'icon':_0x190117,'withText':!0x0,'tooltip':!0x0,'class':Mo,'allowMultipleFiles':!0x0}),_0x53cde6['on'](_0xcef6f9(0x155),()=>{const _0x4aef1e=_0xcef6f9;this[_0x4aef1e(0x141)]();}),_0x53cde6['on'](_0xcef6f9(0x172),(_0x4d96d9,_0xb2f974)=>{const _0x2a3212=_0xcef6f9;this[_0x2a3212(0x115)](_0x2a3212(0x159),_0xb2f974);}),_0x53cde6[_0xcef6f9(0x12f)]=!0x0,_0x3a1204[_0xcef6f9(0x18c)][_0xcef6f9(0x18f)](_0x53cde6);}for(const _0x14f19b of _0x5ffd17[_0xcef6f9(0x16b)]){const _0xba4d26=this[_0xcef6f9(0x142)](_0x4908d5,{'label':_0x14f19b[_0xcef6f9(0x163)],'icon':_0x14f19b[_0xcef6f9(0xff)]||_0x5402cd,'type':_0xcef6f9(0x122)});_0x3a1204[_0xcef6f9(0x18c)][_0xcef6f9(0x18f)](_0xba4d26),_0xba4d26['on'](_0xcef6f9(0x155),()=>{const _0xb9bb6a=_0xcef6f9;this[_0xb9bb6a(0x141)](),this[_0xb9bb6a(0x191)]({'source':_0x14f19b,'withBackButton':!this[_0xb9bb6a(0x17f)]});});}for(const _0x554271 of _0x5ffd17[_0xcef6f9(0x11b)]||[]){const _0x59a396=this[_0xcef6f9(0x142)](_0x4908d5,{'label':_0x554271[_0xcef6f9(0x163)],'icon':_0x554271[_0xcef6f9(0xff)]||_0x5402cd,'type':_0xcef6f9(0x132)});_0x3a1204[_0xcef6f9(0x18c)][_0xcef6f9(0x18f)](_0x59a396),_0x59a396['on'](_0xcef6f9(0x155),()=>{const _0x13deae=_0xcef6f9;this[_0x13deae(0x141)](),this[_0x13deae(0x115)](_0x13deae(0x161),_0x554271);});}this[_0xcef6f9(0x17f)]=0x1===_0x3a1204[_0xcef6f9(0x18c)][_0xcef6f9(0x14b)],this[_0xcef6f9(0x109)][_0xcef6f9(0x136)]=!this[_0xcef6f9(0x17f)];}[_0x3f867c(0x14c)](_0xed2c69,_0x30081c){const _0x49b7f3=_0x3f867c;this[_0x49b7f3(0x109)]=new _0x16c38d(_0x30081c),this[_0x49b7f3(0x109)]['on'](_0x49b7f3(0x13d),(_0x2e9265,_0xe0beac)=>{const _0x25b73c=_0x49b7f3;this[_0x25b73c(0x104)](_0xe0beac);}),this[_0x49b7f3(0x109)]['on'](_0x49b7f3(0x190),()=>{const _0x4a0edd=_0x49b7f3;this[_0x4a0edd(0x158)](),this[_0x4a0edd(0x17f)]||(this[_0x4a0edd(0x15a)](),this[_0x4a0edd(0x15b)][_0x4a0edd(0x146)]({'target':this[_0x4a0edd(0x133)][_0x4a0edd(0x150)],'limiter':this[_0x4a0edd(0x103)](),'positions':$o}));}),this[_0x49b7f3(0x109)]['on'](_0x49b7f3(0x173),()=>{const _0x55630c=_0x49b7f3;this[_0x55630c(0x188)][_0x55630c(0x114)]&&this[_0x55630c(0x188)][_0x55630c(0x146)]({'target':this[_0x55630c(0x133)][_0x55630c(0x150)],'limiter':this[_0x55630c(0x103)](),'positions':$o});}),_0xed2c69[_0x49b7f3(0x18c)][_0x49b7f3(0x18f)](this[_0x49b7f3(0x109)]);}[_0x3f867c(0x142)](_0x120885,_0x39a8d3){const _0x25ebe8=_0x3f867c,_0x26b61f=_0x25ebe8(0x122)===_0x39a8d3[_0x25ebe8(0x135)]?new SourcesBalloonButtonView(_0x120885):new _0x3a60ba(_0x120885);return _0x26b61f[_0x25ebe8(0x174)]({'label':_0x39a8d3[_0x25ebe8(0x163)],'icon':_0x39a8d3[_0x25ebe8(0xff)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Mo}),_0x26b61f;}[_0x3f867c(0x11c)](){const _0x3d08b3=_0x3f867c;this[_0x3d08b3(0x180)](),this[_0x3d08b3(0x113)]();}[_0x3f867c(0x113)](){const _0x21aa30=_0x3f867c;_0x19e289({'emitter':this[_0x21aa30(0x188)],'contextElements':[this[_0x21aa30(0x188)][_0x21aa30(0x150)]],'callback':()=>{const _0x5557ec=_0x21aa30;this[_0x5557ec(0x158)]();},'activator':()=>this[_0x21aa30(0x188)][_0x21aa30(0x114)]});}[_0x3f867c(0x117)](_0x1322f0){const _0x46c9b4=_0x3f867c,_0x4dd467=this[_0x46c9b4(0x16f)];_0x4dd467[_0x46c9b4(0xfe)][_0x46c9b4(0x123)]=_0x1322f0,_0x1322f0?_0x4dd467[_0x46c9b4(0x16d)][_0x46c9b4(0x14f)]():_0x4dd467[_0x46c9b4(0x16d)][_0x46c9b4(0x11a)]();}[_0x3f867c(0x180)](){const _0x544170=_0x3f867c,{balloonView:_0x41779f,buttonView:_0x14b109,hideMethod:_0x4cca5d}=this[_0x544170(0x16f)];_0x19e289({'emitter':_0x41779f,'contextElements':[_0x41779f[_0x544170(0x150)],_0x14b109[_0x544170(0x150)]],'callback':()=>{_0x4cca5d();},'activator':()=>_0x14b109[_0x544170(0x123)]&&!this[_0x544170(0x188)][_0x544170(0x114)]&&!this[_0x544170(0x184)][_0x544170(0x110)]()});}[_0x3f867c(0x170)](_0x2d5bae,_0x4131a2,_0x141287=!0x1,_0x5deccc=!0x1){const _0x1e9784=_0x3f867c,_0x26285d=_0x1e9784(0x126)===_0x4131a2||!0x0===_0x2d5bae[_0x1e9784(0x15c)],_0x5c27f8=new _0x521dee(this[_0x1e9784(0x15f)],_0x2d5bae,_0x26285d,_0x141287,_0x5deccc);return _0x26285d||_0x5c27f8['on'](_0x1e9784(0x13b),()=>{const _0x636c78=_0x1e9784;this[_0x636c78(0x115)](_0x636c78(0x15e),_0x5c27f8['id']);}),_0x5c27f8;}[_0x3f867c(0x100)](_0x5e4145,_0x21ea4e){const _0x167ea7=_0x3f867c;_0x21ea4e[_0x167ea7(0x18f)](_0x5e4145,0x0);}[_0x3f867c(0x175)](_0x45ed1e,_0x1001e7){const _0x28e454=_0x3f867c,_0x38966c=_0x1001e7[_0x28e454(0x102)](_0x2bcae4=>_0x2bcae4['id']===_0x45ed1e);_0x38966c&&_0x1001e7[_0x28e454(0x11f)](_0x38966c);}[_0x3f867c(0x18b)](){const _0x40502f=_0x3f867c;this[_0x40502f(0x133)][_0x40502f(0x123)]?this[_0x40502f(0x141)]():(this[_0x40502f(0x15a)](),this[_0x40502f(0x15b)][_0x40502f(0x146)]({'target':this[_0x40502f(0x133)][_0x40502f(0x150)],'limiter':this[_0x40502f(0x103)](),'positions':$o}),this[_0x40502f(0x17f)]&&this[_0x40502f(0x15b)][_0x40502f(0x18c)][_0x40502f(0x10b)](0x0)?.[_0x40502f(0x115)](_0x40502f(0x155)));}[_0x3f867c(0x104)](_0x231748){const _0x508ccc=_0x3f867c;this[_0x508ccc(0x109)][_0x508ccc(0x182)](),this[_0x508ccc(0x158)](),this[_0x508ccc(0x115)](_0x508ccc(0x162),_0x231748);}}function _0x6e7c(_0x1bf95e,_0x35f76c){const _0x5aa8cb=_0x5aa8();return _0x6e7c=function(_0x6e7c59,_0x19f6de){_0x6e7c59=_0x6e7c59-0xfc;let _0x5831b0=_0x5aa8cb[_0x6e7c59];return _0x5831b0;},_0x6e7c(_0x1bf95e,_0x35f76c);}export class SourcesBalloonButtonView extends _0x3a60ba{[_0x3f867c(0x153)];constructor(_0x15fc7a){const _0x3467ba=_0x3f867c;super(_0x15fc7a),this[_0x3467ba(0x174)]({'withText':!0x0,'role':_0x3467ba(0xfc)}),this[_0x3467ba(0x153)]=this[_0x3467ba(0x14d)](),this[_0x3467ba(0x129)]({'attributes':{'class':[Ho]}});}[_0x3f867c(0x105)](){const _0x3783b9=_0x3f867c;super[_0x3783b9(0x105)](),this[_0x3783b9(0x108)][_0x3783b9(0x18f)](this[_0x3783b9(0x153)]);}[_0x3f867c(0x14d)](){const _0x5288c3=_0x3f867c,_0x455389=new _0x5e5ad1();return _0x455389[_0x5288c3(0x18c)]=_0x2d8b63,_0x455389[_0x5288c3(0x129)]({'attributes':{'class':Ho+_0x5288c3(0xfd)}}),_0x455389;}}
|
|
23
|
+
const _0x2fbafa=_0x2201;(function(_0x2c22e9,_0x3deac1){const _0xffef8c=_0x2201,_0x488e92=_0x2c22e9();while(!![]){try{const _0x19fe6a=-parseInt(_0xffef8c(0x239))/0x1*(parseInt(_0xffef8c(0x22d))/0x2)+-parseInt(_0xffef8c(0x1e9))/0x3+-parseInt(_0xffef8c(0x211))/0x4+parseInt(_0xffef8c(0x23b))/0x5*(-parseInt(_0xffef8c(0x253))/0x6)+-parseInt(_0xffef8c(0x22f))/0x7*(-parseInt(_0xffef8c(0x1e0))/0x8)+-parseInt(_0xffef8c(0x233))/0x9+parseInt(_0xffef8c(0x1f4))/0xa;if(_0x19fe6a===_0x3deac1)break;else _0x488e92['push'](_0x488e92['shift']());}catch(_0x5ed5ec){_0x488e92['push'](_0x488e92['shift']());}}}(_0x4344,0xb3bdb));import{BalloonPanelView as _0x15cacd,ButtonView as _0x22c695,clickOutsideHandler as _0x210ce1,FileDialogButtonView as _0x3236c2,IconView as _0x5bc95f,View as _0x41c032}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x3ef503,IconDocument as _0x2b2a1a,IconDocumentOutline as _0x303f66,IconDropdownArrow as _0x1c092f,IconLink as _0x9d930b,IconPaperClip as _0x21bebb}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x2b8565}from'./aichatcontextitembuttonview.js';function _0x2201(_0x4c7642,_0x189e3d){const _0x43446f=_0x4344();return _0x2201=function(_0x2201c9,_0x5d4db1){_0x2201c9=_0x2201c9-0x1d4;let _0xcf378f=_0x43446f[_0x2201c9];return _0xcf378f;},_0x2201(_0x4c7642,_0x189e3d);}function _0x4344(){const _0x5e49c3=['_createBaseBalloonPanel','content','showAddContextBalloonPanel','searchInputVisibleFrom','_createResourcesBalloonView','customItems','AI_CHAT_CONTEXT_FILE_LABEL','removeContextItem','menuitem','southArrowNorthWest','bind','updateResourceState','files','conversation','_handleUrlSubmit','_addContextToCollection','_urlInputView','setTemplate','_createBalloonButton','_conversationContextsChips','_hasExactlyOneSource','24sedMLL','addResourceToContext','_setupAllBalloonClickOutsideHandlers','tooltip','ck-ai-chat-context-controls__show-more-balloon-panel','isHidden','addContextButtonView','_bindEventHandlers','urls','clearCurrentContextItems','arrowView','overflowChips','_createContextButton','__arrow','pin','remove','cancel','isAnyResourceBalloonVisible','closeSourceResourceBalloon','type','length','closest','isEnabled','show','_setupAddContextBalloonClickOutsideHandler','ck-reset_all-excluded','element','isVisible','setAddContextOptions','focus','_setAddContextButtonEnabled','removeContextItemChip','reorganizeChips','addUrlToContext','div','submitUrl','2144lYWUnc','done','hideUrlBalloonPanel','createCollection','_handleAddContextButtonClick','_overflowManager','ck-ai-chat-context-controls__add-context-button','body','setContainerElement','1490139RpvAPd','ck-ai-chat-context-controls','addContextItem','ck-ai-chat-context-chips-wrapper-balloon','_addContextBalloonPanelView','locale','extendTemplate','source','showUrlBalloonPanel','_toggleAddContextBalloon','enabled','38311090gYezDR','label','southArrowNorthEast','ck-ai-chat-context-controls__url-balloon-panel','populateSourceResourceBalloon','_setupUrlBalloonClickOutsideHandler','defaultPositions','loadSourceResources','ck-ai-chat-context-controls__balloon-button','_createAddContextBalloonPanelView','_setupTemplate','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_showSourceResourcesBalloon','_currentContextsChips','fire','ck-ai-chat','icon','AI_CHAT_CONTEXT_URL_LABEL','add','current','document','addFileToContext','get','ck-ai-chat-controls_context_show-more-button','northArrowSouthEast','southArrowNorth','find','_addContextBalloonConfig','AI_CHAT_CONTEXT_ADD_CONTEXT','3733440aaKtNP','hide','_removeContextFromCollection','isOn','_resourcesBalloonView','_createArrowView','ck-ai-chat-controls-button','_getLimiterElement','ck-ai-chat-context-controls__balloon-button-source','_urlBalloonPanelView','hideAddContextBalloonPanel','isReadOnly','bodyCollection','setContextItemLoading','northArrowSouth','buttonView','balloonView','northArrowSouthWest','addDocumentToContext','showSourceResourcesBalloon','render','withBackButton','clearConversationContextItems','sources','execute','_createUrlBalloonPanelView','_createAddContextButtonView','ck-ai-chat-context-controls__pending-contexts','8aIuowC','clear','24808LBBmhe','setConversationContext','refreshBalloon','children','3499137bTEFzM','_setBalloonPanelContent','executeCustomItemCallback','ck-ai-chat-context-controls__add-context-balloon-panel','destroy','set','321775KmETxT','_addUrlContent','1173395pLCDrZ','customItem','isLoading'];_0x4344=function(){return _0x5e49c3;};return _0x4344();}import{AIChatContextPanelUrlInputView as _0x469aa0}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x166a1c}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x23ec44}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x12fbf7}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x2fbafa(0x223),_0x2fbafa(0x209),_0x2fbafa(0x1dd),_0x2fbafa(0x254),_0x2fbafa(0x245),_0x2fbafa(0x1fb),_0x2fbafa(0x235)];const Io=_0x2fbafa(0x1ea),Po=_0x2fbafa(0x22c),Ro=_0x2fbafa(0x236),Oo=_0x2fbafa(0x1e6),Uo=_0x2fbafa(0x1f7),Lo=_0x2fbafa(0x1fc),No=_0x2fbafa(0x219),Mo=_0x2fbafa(0x217),Ho=_0x2fbafa(0x1ec),jo=_0x2fbafa(0x20b),Fo=_0x2fbafa(0x257),Xo=_0x2fbafa(0x203),yo=[_0x15cacd[_0x2fbafa(0x1fa)][_0x2fbafa(0x222)],_0x15cacd[_0x2fbafa(0x1fa)][_0x2fbafa(0x21f)],_0x15cacd[_0x2fbafa(0x1fa)][_0x2fbafa(0x20c)],_0x15cacd[_0x2fbafa(0x1fa)][_0x2fbafa(0x247)],_0x15cacd[_0x2fbafa(0x1fa)][_0x2fbafa(0x20d)],_0x15cacd[_0x2fbafa(0x1fa)][_0x2fbafa(0x1f6)]];export class AIChatContextPanelView extends _0x41c032{[_0x2fbafa(0x259)];[_0x2fbafa(0x201)]=this[_0x2fbafa(0x1e3)]();[_0x2fbafa(0x251)]=this[_0x2fbafa(0x1e3)]();[_0x2fbafa(0x1e5)];[_0x2fbafa(0x1ed)];[_0x2fbafa(0x21a)];[_0x2fbafa(0x24e)];[_0x2fbafa(0x215)];[_0x2fbafa(0x20f)];[_0x2fbafa(0x252)]=!0x1;[_0x2fbafa(0x21d)];constructor(_0x4f1059,_0x55ccb7){const _0x2a9f32=_0x2fbafa;super(_0x4f1059),this[_0x2a9f32(0x21d)]=_0x55ccb7[_0x2a9f32(0x21d)],this[_0x2a9f32(0x201)]=this[_0x2a9f32(0x1e3)](),this[_0x2a9f32(0x251)]=this[_0x2a9f32(0x1e3)](),this[_0x2a9f32(0x259)]=this[_0x2a9f32(0x22b)](_0x4f1059),this[_0x2a9f32(0x1ed)]=this[_0x2a9f32(0x1fd)](_0x4f1059),this[_0x2a9f32(0x21a)]=this[_0x2a9f32(0x22a)](_0x4f1059),this[_0x2a9f32(0x215)]=this[_0x2a9f32(0x242)](_0x4f1059,_0x55ccb7);const _0x27e938={'cssClasses':{'showMoreButton':jo,'showMoreBalloon':Fo,'overflowContainer':Ho,'controlsButton':Mo}};this[_0x2a9f32(0x1e5)]=new _0x166a1c(_0x4f1059,this[_0x2a9f32(0x201)],_0x27e938,this[_0x2a9f32(0x21d)],this),this[_0x2a9f32(0x20f)]={'buttonView':this[_0x2a9f32(0x259)],'balloonView':this[_0x2a9f32(0x1ed)],'hideMethod':this[_0x2a9f32(0x21b)][_0x2a9f32(0x248)](this),'showMethod':this[_0x2a9f32(0x240)][_0x2a9f32(0x248)](this)},this[_0x2a9f32(0x1fe)](),this[_0x2a9f32(0x25a)]();}[_0x2fbafa(0x225)](){const _0x169592=_0x2fbafa;super[_0x169592(0x225)](),this[_0x169592(0x255)](),this[_0x169592(0x1e5)][_0x169592(0x1e8)](this[_0x169592(0x1d6)]),this[_0x169592(0x1e5)][_0x169592(0x1dc)]();}[_0x2fbafa(0x237)](){const _0x43de02=_0x2fbafa;super[_0x43de02(0x237)](),this[_0x43de02(0x1e5)][_0x43de02(0x237)](),this[_0x43de02(0x215)][_0x43de02(0x237)]();}[_0x2fbafa(0x1eb)](_0x1f18c2,_0x479cfe){const _0x1cbe6a=_0x2fbafa,_0xa4b980=this[_0x1cbe6a(0x25f)](_0x1f18c2,_0x1cbe6a(0x207),!0x0,_0x479cfe);this[_0x1cbe6a(0x24d)](_0xa4b980,this[_0x1cbe6a(0x201)]),this[_0x1cbe6a(0x1e5)][_0x1cbe6a(0x1dc)]();}[_0x2fbafa(0x245)](_0x29981e){const _0x1c04c0=_0x2fbafa;this[_0x1c04c0(0x213)](_0x29981e,this[_0x1c04c0(0x201)]),this[_0x1c04c0(0x213)](_0x29981e,this[_0x1c04c0(0x1e5)][_0x1c04c0(0x25e)]),this[_0x1c04c0(0x1e5)][_0x1c04c0(0x1dc)]();}[_0x2fbafa(0x21e)](_0x54208d,_0xbce7ea){const _0xe6c5e3=_0x2fbafa;let _0x52864f=this[_0xe6c5e3(0x201)][_0xe6c5e3(0x20e)](_0x66b80=>_0x66b80['id']===_0x54208d);_0x52864f||(_0x52864f=this[_0xe6c5e3(0x1e5)][_0xe6c5e3(0x25e)][_0xe6c5e3(0x20e)](_0x4d958c=>_0x4d958c['id']===_0x54208d)),_0x52864f&&(_0x52864f[_0xe6c5e3(0x23d)]=_0xbce7ea);}[_0x2fbafa(0x230)](_0xcd9d62){const _0xcfbd4b=_0x2fbafa;this[_0xcfbd4b(0x251)][_0xcfbd4b(0x22e)]();for(const _0xfff8c of _0xcd9d62){const _0x1e41e8=this[_0xcfbd4b(0x25f)](_0xfff8c,_0xcfbd4b(0x24b),!0x1,!0x1);this[_0xcfbd4b(0x24d)](_0x1e41e8,this[_0xcfbd4b(0x251)]);}}[_0x2fbafa(0x25c)](){const _0x5b0206=_0x2fbafa;this[_0x5b0206(0x201)][_0x5b0206(0x22e)](),this[_0x5b0206(0x1e5)][_0x5b0206(0x22e)]();}[_0x2fbafa(0x227)](){const _0x2cff77=_0x2fbafa;this[_0x2cff77(0x251)][_0x2cff77(0x22e)]();}[_0x2fbafa(0x249)](_0xf340e5,_0x36acf5,_0x308d2c){const _0x4a49af=_0x2fbafa;this[_0x4a49af(0x215)][_0x4a49af(0x249)](_0xf340e5,_0x36acf5,_0x308d2c);}[_0x2fbafa(0x21b)](){const _0x4a82b2=_0x2fbafa;this[_0x4a82b2(0x1f2)](!0x1);}[_0x2fbafa(0x240)](){const _0x514161=_0x2fbafa;this[_0x514161(0x1f2)](!0x0);}[_0x2fbafa(0x1e2)](){const _0x40860d=_0x2fbafa;this[_0x40860d(0x21a)][_0x40860d(0x212)](),this[_0x40860d(0x259)][_0x40860d(0x214)]=!0x1,this[_0x40860d(0x24e)]&&this[_0x40860d(0x24e)][_0x40860d(0x22e)]();}[_0x2fbafa(0x1f1)](){const _0x55cab8=_0x2fbafa;this[_0x55cab8(0x21a)][_0x55cab8(0x26a)](),this[_0x55cab8(0x259)][_0x55cab8(0x214)]=!0x0;}[_0x2fbafa(0x200)]({source:_0x13f4f5,withBackButton:_0x4833fa}){const _0x2a05af=_0x2fbafa;this[_0x2a05af(0x215)][_0x2a05af(0x224)]({'source':_0x13f4f5,'withBackButton':_0x4833fa}),this[_0x2a05af(0x259)][_0x2a05af(0x214)]=!0x0;}[_0x2fbafa(0x1f8)](_0x6b0b85,_0x3917cd,_0x2d98c9,_0x2d0e41){const _0x243861=_0x2fbafa;this[_0x243861(0x215)][_0x243861(0x1f8)](_0x6b0b85,_0x2d98c9,_0x2d0e41);}[_0x2fbafa(0x265)](_0x132f77){const _0x119569=_0x2fbafa;this[_0x119569(0x215)][_0x119569(0x265)](_0x132f77),this[_0x119569(0x259)][_0x119569(0x214)]=!0x1;}[_0x2fbafa(0x1d8)](_0x32a882){const _0x535ec6=_0x2fbafa;this[_0x535ec6(0x234)](this[_0x535ec6(0x1ed)],this[_0x535ec6(0x1ee)],_0x32a882),this[_0x535ec6(0x1da)](_0x32a882);}[_0x2fbafa(0x1da)](_0x57aec8){const _0x4f8ba5=_0x2fbafa,_0x926c3f=!_0x57aec8[_0x4f8ba5(0x208)][_0x4f8ba5(0x258)]&&_0x57aec8[_0x4f8ba5(0x208)][_0x4f8ba5(0x1f3)],_0x1c4672=_0x57aec8[_0x4f8ba5(0x25b)][_0x4f8ba5(0x1f3)],_0xba13f3=_0x57aec8[_0x4f8ba5(0x24a)][_0x4f8ba5(0x1f3)],_0x26e1a0=_0x57aec8[_0x4f8ba5(0x228)][_0x4f8ba5(0x267)]>0x0,_0x1f0fbe=_0x57aec8[_0x4f8ba5(0x243)]&&_0x57aec8[_0x4f8ba5(0x243)][_0x4f8ba5(0x267)]>0x0;this[_0x4f8ba5(0x259)][_0x4f8ba5(0x269)]=_0x926c3f||_0x1c4672||_0xba13f3||_0x26e1a0||_0x1f0fbe;}[_0x2fbafa(0x1fe)](){const _0x1670a6=_0x2fbafa;this[_0x1670a6(0x24f)]({'tag':_0x1670a6(0x1de),'attributes':{'class':[Io,_0x1670a6(0x1d5)]},'children':[{'tag':_0x1670a6(0x1de),'attributes':{'class':Po},'children':this[_0x1670a6(0x201)]}]});}[_0x2fbafa(0x25a)](){const _0x592e35=_0x2fbafa;this[_0x592e35(0x259)]['on'](_0x592e35(0x229),()=>{const _0x5907e2=_0x592e35;this[_0x5907e2(0x1e4)]();});}[_0x2fbafa(0x22b)](_0x2b72f8){const _0x3aac5c=_0x2fbafa,_0x3c115e=new _0x22c695(_0x2b72f8);return _0x3c115e[_0x3aac5c(0x238)]({'label':_0x23ec44(_0x2b72f8,_0x3aac5c(0x210)),'class':Mo+'\x20'+Oo,'icon':_0x21bebb,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x3c115e;}[_0x2fbafa(0x1fd)](_0x53a460){const _0x315581=_0x2fbafa;return this[_0x315581(0x23e)](_0x53a460,Ro);}[_0x2fbafa(0x22a)](_0x1872c9){const _0x373b59=_0x2fbafa,_0x36bd90=this[_0x373b59(0x23e)](_0x1872c9,Uo);return this[_0x373b59(0x23a)](_0x36bd90,_0x1872c9),_0x36bd90;}[_0x2fbafa(0x242)](_0x25e63f,_0x501000){const _0x70d68a=_0x2fbafa,_0x1e0a45={'searchInputVisibleFrom':_0x501000[_0x70d68a(0x241)],'onBackToContext':()=>{const _0x58fef6=_0x70d68a;this[_0x58fef6(0x240)](),this[_0x58fef6(0x1ed)][_0x58fef6(0x261)]({'target':this[_0x58fef6(0x259)][_0x58fef6(0x1d6)],'limiter':this[_0x58fef6(0x218)](),'positions':yo});},'onResourceSelected':(_0x14f3ce,_0x4d68a9)=>{const _0x417c84=_0x70d68a;this[_0x417c84(0x202)](_0x417c84(0x254),{'source':_0x14f3ce,'resource':_0x4d68a9});},'onLoadSourceResources':_0x280409=>{const _0x24a8d4=_0x70d68a;this[_0x24a8d4(0x202)](_0x24a8d4(0x1fb),_0x280409);},'onBalloonClosed':()=>{const _0x13d588=_0x70d68a;this[_0x13d588(0x259)][_0x13d588(0x214)]=!0x1;},'getLimiterElement':()=>this[_0x70d68a(0x218)](),'getTargetElement':()=>this[_0x70d68a(0x259)][_0x70d68a(0x1d6)]};return new _0x12fbf7(_0x25e63f,_0x501000[_0x70d68a(0x21d)],_0x1e0a45);}[_0x2fbafa(0x218)](){const _0x3f88a1=_0x2fbafa;return this[_0x3f88a1(0x1d6)]?.[_0x3f88a1(0x268)]('.'+Xo)||document[_0x3f88a1(0x1e7)];}[_0x2fbafa(0x23e)](_0x2c8b88,_0x18405a){const _0x2ebd79=_0x2fbafa,_0x552cad=new _0x15cacd(_0x2c8b88);return _0x552cad[_0x2ebd79(0x1ef)]({'attributes':{'class':_0x18405a}}),this[_0x2ebd79(0x21d)][_0x2ebd79(0x206)](_0x552cad),_0x552cad;}[_0x2fbafa(0x234)](_0x4750ed,_0x126e42,_0xa3bd30){const _0x5da325=_0x2fbafa;if(_0x4750ed[_0x5da325(0x23f)][_0x5da325(0x22e)](),!_0xa3bd30[_0x5da325(0x208)][_0x5da325(0x258)]&&_0xa3bd30[_0x5da325(0x208)][_0x5da325(0x1f3)]){const _0x3d6f1e=this[_0x5da325(0x250)](_0x126e42,{'label':_0x23ec44(_0x126e42,_0x5da325(0x1ff)),'icon':_0x2b2a1a});_0x3d6f1e['on'](_0x5da325(0x229),()=>{const _0x32ccbd=_0x5da325;this[_0x32ccbd(0x202)](_0x32ccbd(0x223)),this[_0x32ccbd(0x21b)]();}),_0x4750ed[_0x5da325(0x23f)][_0x5da325(0x206)](_0x3d6f1e);}if(_0xa3bd30[_0x5da325(0x25b)][_0x5da325(0x1f3)]){const _0x3a49f9=this[_0x5da325(0x250)](_0x126e42,{'label':_0x23ec44(_0x126e42,_0x5da325(0x205)),'icon':_0x9d930b});_0x3a49f9['on'](_0x5da325(0x229),()=>{const _0x5cf447=_0x5da325;this[_0x5cf447(0x21b)](),this[_0x5cf447(0x1f1)](),this[_0x5cf447(0x21a)][_0x5cf447(0x261)]({'target':this[_0x5cf447(0x259)][_0x5cf447(0x1d6)],'limiter':this[_0x5cf447(0x218)](),'positions':yo}),this[_0x5cf447(0x24e)][_0x5cf447(0x1d9)]();}),_0x4750ed[_0x5da325(0x23f)][_0x5da325(0x206)](_0x3a49f9);}if(_0xa3bd30[_0x5da325(0x24a)][_0x5da325(0x1f3)]){const _0x3e09b7=new _0x3236c2(_0x126e42);_0x3e09b7[_0x5da325(0x238)]({'label':_0x23ec44(_0x126e42,_0x5da325(0x244)),'icon':_0x3ef503,'withText':!0x0,'tooltip':!0x0,'class':Lo,'allowMultipleFiles':!0x0}),_0x3e09b7['on'](_0x5da325(0x229),()=>{const _0x4e8601=_0x5da325;this[_0x4e8601(0x21b)]();}),_0x3e09b7['on'](_0x5da325(0x1e1),(_0x34e062,_0x3c4e2a)=>{const _0x217fe0=_0x5da325;this[_0x217fe0(0x202)](_0x217fe0(0x209),_0x3c4e2a);}),_0x3e09b7[_0x5da325(0x256)]=!0x0,_0x4750ed[_0x5da325(0x23f)][_0x5da325(0x206)](_0x3e09b7);}for(const _0x3ffc8d of _0xa3bd30[_0x5da325(0x228)]){const _0x9b091c=this[_0x5da325(0x250)](_0x126e42,{'label':_0x3ffc8d[_0x5da325(0x1f5)],'icon':_0x3ffc8d[_0x5da325(0x204)]||_0x303f66,'type':_0x5da325(0x1f0)});_0x4750ed[_0x5da325(0x23f)][_0x5da325(0x206)](_0x9b091c),_0x9b091c['on'](_0x5da325(0x229),()=>{const _0x24013b=_0x5da325;this[_0x24013b(0x21b)](),this[_0x24013b(0x200)]({'source':_0x3ffc8d,'withBackButton':!this[_0x24013b(0x252)]});});}for(const _0x2a7146 of _0xa3bd30[_0x5da325(0x243)]||[]){const _0x274aa8=this[_0x5da325(0x250)](_0x126e42,{'label':_0x2a7146[_0x5da325(0x1f5)],'icon':_0x2a7146[_0x5da325(0x204)]||_0x303f66,'type':_0x5da325(0x23c)});_0x4750ed[_0x5da325(0x23f)][_0x5da325(0x206)](_0x274aa8),_0x274aa8['on'](_0x5da325(0x229),()=>{const _0xfd2185=_0x5da325;this[_0xfd2185(0x21b)](),this[_0xfd2185(0x202)](_0xfd2185(0x235),_0x2a7146);});}this[_0x5da325(0x252)]=0x1===_0x4750ed[_0x5da325(0x23f)][_0x5da325(0x267)],this[_0x5da325(0x24e)][_0x5da325(0x226)]=!this[_0x5da325(0x252)];}[_0x2fbafa(0x23a)](_0x41af8d,_0x1f83ae){const _0x59691f=_0x2fbafa;this[_0x59691f(0x24e)]=new _0x469aa0(_0x1f83ae),this[_0x59691f(0x24e)]['on'](_0x59691f(0x1df),(_0x353ff5,_0x3b8b72)=>{const _0x2e53d4=_0x59691f;this[_0x2e53d4(0x24c)](_0x3b8b72);}),this[_0x59691f(0x24e)]['on'](_0x59691f(0x263),()=>{const _0x37454b=_0x59691f;this[_0x37454b(0x1e2)](),this[_0x37454b(0x252)]||(this[_0x37454b(0x240)](),this[_0x37454b(0x1ed)][_0x37454b(0x261)]({'target':this[_0x37454b(0x259)][_0x37454b(0x1d6)],'limiter':this[_0x37454b(0x218)](),'positions':yo}));}),this[_0x59691f(0x24e)]['on'](_0x59691f(0x231),()=>{const _0x40f547=_0x59691f;this[_0x40f547(0x21a)][_0x40f547(0x1d7)]&&this[_0x40f547(0x21a)][_0x40f547(0x261)]({'target':this[_0x40f547(0x259)][_0x40f547(0x1d6)],'limiter':this[_0x40f547(0x218)](),'positions':yo});}),_0x41af8d[_0x59691f(0x23f)][_0x59691f(0x206)](this[_0x59691f(0x24e)]);}[_0x2fbafa(0x250)](_0x2d4f84,_0x284dd5){const _0x28f97e=_0x2fbafa,_0x208183=_0x28f97e(0x1f0)===_0x284dd5[_0x28f97e(0x266)]?new SourcesBalloonButtonView(_0x2d4f84):new _0x22c695(_0x2d4f84);return _0x208183[_0x28f97e(0x238)]({'label':_0x284dd5[_0x28f97e(0x1f5)],'icon':_0x284dd5[_0x28f97e(0x204)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Lo}),_0x208183;}[_0x2fbafa(0x255)](){const _0xd98fe0=_0x2fbafa;this[_0xd98fe0(0x1d4)](),this[_0xd98fe0(0x1f9)]();}[_0x2fbafa(0x1f9)](){const _0x1d267c=_0x2fbafa;_0x210ce1({'emitter':this[_0x1d267c(0x21a)],'contextElements':[this[_0x1d267c(0x21a)][_0x1d267c(0x1d6)]],'callback':()=>{const _0x588bc1=_0x1d267c;this[_0x588bc1(0x1e2)]();},'activator':()=>this[_0x1d267c(0x21a)][_0x1d267c(0x1d7)]});}[_0x2fbafa(0x1f2)](_0x2ae1a7){const _0x52eaa2=_0x2fbafa,_0x40887f=this[_0x52eaa2(0x20f)];_0x40887f[_0x52eaa2(0x220)][_0x52eaa2(0x214)]=_0x2ae1a7,_0x2ae1a7?_0x40887f[_0x52eaa2(0x221)][_0x52eaa2(0x26a)]():_0x40887f[_0x52eaa2(0x221)][_0x52eaa2(0x212)]();}[_0x2fbafa(0x1d4)](){const _0x3f04dc=_0x2fbafa,{balloonView:_0x35ad72,buttonView:_0xe941b4,hideMethod:_0xec735d}=this[_0x3f04dc(0x20f)];_0x210ce1({'emitter':_0x35ad72,'contextElements':[_0x35ad72[_0x3f04dc(0x1d6)],_0xe941b4[_0x3f04dc(0x1d6)]],'callback':()=>{_0xec735d();},'activator':()=>_0xe941b4[_0x3f04dc(0x214)]&&!this[_0x3f04dc(0x21a)][_0x3f04dc(0x1d7)]&&!this[_0x3f04dc(0x215)][_0x3f04dc(0x264)]()});}[_0x2fbafa(0x25f)](_0x269927,_0xaa58e2,_0x4ff67b=!0x1,_0x3334a2=!0x1){const _0x1b29cc=_0x2fbafa,_0x11bd71=_0x1b29cc(0x24b)===_0xaa58e2||!0x0===_0x269927[_0x1b29cc(0x21c)],_0x68e0f2=new _0x2b8565(this[_0x1b29cc(0x1ee)],_0x269927,_0x11bd71,_0x4ff67b,_0x3334a2);return _0x11bd71||_0x68e0f2['on'](_0x1b29cc(0x1db),()=>{const _0x484b41=_0x1b29cc;this[_0x484b41(0x202)](_0x484b41(0x245),_0x68e0f2['id']);}),_0x68e0f2;}[_0x2fbafa(0x24d)](_0x501b08,_0x5e7d9e){const _0x43e59a=_0x2fbafa;_0x5e7d9e[_0x43e59a(0x206)](_0x501b08,0x0);}[_0x2fbafa(0x213)](_0x3189ee,_0x512d37){const _0x33d1b9=_0x2fbafa,_0x808f3=_0x512d37[_0x33d1b9(0x20e)](_0x2b8e18=>_0x2b8e18['id']===_0x3189ee);_0x808f3&&_0x512d37[_0x33d1b9(0x262)](_0x808f3);}[_0x2fbafa(0x1e4)](){const _0x2125eb=_0x2fbafa;this[_0x2125eb(0x259)][_0x2125eb(0x214)]?this[_0x2125eb(0x21b)]():(this[_0x2125eb(0x240)](),this[_0x2125eb(0x1ed)][_0x2125eb(0x261)]({'target':this[_0x2125eb(0x259)][_0x2125eb(0x1d6)],'limiter':this[_0x2125eb(0x218)](),'positions':yo}),this[_0x2125eb(0x252)]&&this[_0x2125eb(0x1ed)][_0x2125eb(0x23f)][_0x2125eb(0x20a)](0x0)?.[_0x2125eb(0x202)](_0x2125eb(0x229)));}[_0x2fbafa(0x24c)](_0x2ffb18){const _0x281a3e=_0x2fbafa;this[_0x281a3e(0x24e)][_0x281a3e(0x22e)](),this[_0x281a3e(0x1e2)](),this[_0x281a3e(0x202)](_0x281a3e(0x1dd),_0x2ffb18);}}export class SourcesBalloonButtonView extends _0x22c695{[_0x2fbafa(0x25d)];constructor(_0x480339){const _0x20bd4d=_0x2fbafa;super(_0x480339),this[_0x20bd4d(0x238)]({'withText':!0x0,'role':_0x20bd4d(0x246)}),this[_0x20bd4d(0x25d)]=this[_0x20bd4d(0x216)](),this[_0x20bd4d(0x1ef)]({'attributes':{'class':[No]}});}[_0x2fbafa(0x225)](){const _0x1b8de5=_0x2fbafa;super[_0x1b8de5(0x225)](),this[_0x1b8de5(0x232)][_0x1b8de5(0x206)](this[_0x1b8de5(0x25d)]);}[_0x2fbafa(0x216)](){const _0x3bfc00=_0x2fbafa,_0x140fb6=new _0x5bc95f();return _0x140fb6[_0x3bfc00(0x23f)]=_0x1c092f,_0x140fb6[_0x3bfc00(0x1ef)]({'attributes':{'class':No+_0x3bfc00(0x260)}}),_0x140fb6;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x205b78=_0x4a84;function _0x2c33(){const _0x17bbc0=['133020GMMQIj','3zYUZkx','setTemplate','183462aJKXOY','10cgzdbw','ck-reset_all','90974IsakTu','locale','35QSrMfN','213395fzELsr','_cancelButtonView','ck-ai-chat-controls-loader-icon','11jqZQhM','_createLoaderView','execute','_loaderView','set','ck-ai-chat-controls-loader-icon-dot','329736VAOkAP','469035nKbrjd','ck-ai-chat-controls-loader-wrapper','abortPromptStream','AI_CHAT_STOP_GENERATING','fire','351192ZTpCyn','div','1StgSWV','AI_CHAT_IS_WRITING','ck-ai-button-secondary\x20ck-ai-button-stop-generating','ck-ai-chat-controls-loader','_createCancelButtonView'];_0x2c33=function(){return _0x17bbc0;};return _0x2c33();}function _0x4a84(_0x4c1686,_0x418ec8){const _0x2c334f=_0x2c33();return _0x4a84=function(_0x4a8416,_0x9cbc4d){_0x4a8416=_0x4a8416-0x164;let _0x3ae808=_0x2c334f[_0x4a8416];return _0x3ae808;},_0x4a84(_0x4c1686,_0x418ec8);}(function(_0xfa6540,_0x63b0af){const _0x29c827=_0x4a84,_0x1f04a9=_0xfa6540();while(!![]){try{const _0xd8c5dc=-parseInt(_0x29c827(0x17a))/0x1*(parseInt(_0x29c827(0x166))/0x2)+-parseInt(_0x29c827(0x180))/0x3*(parseInt(_0x29c827(0x172))/0x4)+-parseInt(_0x29c827(0x168))/0x5*(-parseInt(_0x29c827(0x182))/0x6)+parseInt(_0x29c827(0x169))/0x7+-parseInt(_0x29c827(0x178))/0x8+parseInt(_0x29c827(0x173))/0x9*(parseInt(_0x29c827(0x164))/0xa)+parseInt(_0x29c827(0x16c))/0xb*(-parseInt(_0x29c827(0x17f))/0xc);if(_0xd8c5dc===_0x63b0af)break;else _0x1f04a9['push'](_0x1f04a9['shift']());}catch(_0x53724f){_0x1f04a9['push'](_0x1f04a9['shift']());}}}(_0x2c33,0x1bc46));import{ButtonView as _0x2e3dd5,View as _0x813af4}from'ckeditor5/src/ui.js';import{IconStop as _0x26adbf}from'ckeditor5/src/icons.js';import{getTranslation as _0x42563b}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x813af4{[_0x205b78(0x16a)];[_0x205b78(0x16f)];constructor(_0x2d471d){const _0x4f827f=_0x205b78;super(_0x2d471d),this[_0x4f827f(0x16a)]=this[_0x4f827f(0x17e)](),this[_0x4f827f(0x16f)]=this[_0x4f827f(0x16d)](),this[_0x4f827f(0x181)]({'tag':_0x4f827f(0x179),'attributes':{'class':['ck',_0x4f827f(0x174),_0x4f827f(0x165)]},'children':[this[_0x4f827f(0x16f)],this[_0x4f827f(0x16a)]]});}[_0x205b78(0x17e)](){const _0x4c6f1a=_0x205b78,_0x50b333=new _0x2e3dd5(this[_0x4c6f1a(0x167)]);return _0x50b333[_0x4c6f1a(0x170)]({'label':_0x42563b(this[_0x4c6f1a(0x167)],_0x4c6f1a(0x176)),'withText':!0x0,'class':_0x4c6f1a(0x17c),'icon':_0x26adbf}),_0x50b333['on'](_0x4c6f1a(0x16e),()=>{const _0x57965d=_0x4c6f1a;this[_0x57965d(0x177)](_0x57965d(0x175));}),_0x50b333;}[_0x205b78(0x16d)](){const _0xad3764=_0x205b78,_0x5b2a85=new _0x813af4(this[_0xad3764(0x167)]);return _0x5b2a85[_0xad3764(0x181)]({'tag':_0xad3764(0x179),'attributes':{'class':[_0xad3764(0x17d)]},'children':[{'tag':_0xad3764(0x179),'attributes':{'class':[_0xad3764(0x16b)]},'children':[{'tag':_0xad3764(0x179),'attributes':{'class':[_0xad3764(0x171)]}},{'tag':_0xad3764(0x179),'attributes':{'class':[_0xad3764(0x171)]}},{'tag':_0xad3764(0x179),'attributes':{'class':[_0xad3764(0x171)]}}]},{'text':_0x42563b(this[_0xad3764(0x167)],_0xad3764(0x17b))}]}),_0x5b2a85;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x427645=_0x2e95;(function(_0x5bd3e9,_0x8bc86d){const _0xb95983=_0x2e95,_0x120e48=_0x5bd3e9();while(!![]){try{const _0x271cdb=-parseInt(_0xb95983(0x111))/0x1*(-parseInt(_0xb95983(0x101))/0x2)+-parseInt(_0xb95983(0x114))/0x3+-parseInt(_0xb95983(0xe8))/0x4*(parseInt(_0xb95983(0xf9))/0x5)+-parseInt(_0xb95983(0x108))/0x6*(parseInt(_0xb95983(0xb7))/0x7)+-parseInt(_0xb95983(0xfa))/0x8+-parseInt(_0xb95983(0xc1))/0x9*(parseInt(_0xb95983(0x113))/0xa)+parseInt(_0xb95983(0xc2))/0xb*(parseInt(_0xb95983(0xc7))/0xc);if(_0x271cdb===_0x8bc86d)break;else _0x120e48['push'](_0x120e48['shift']());}catch(_0x5e01a8){_0x120e48['push'](_0x120e48['shift']());}}}(_0x5ef2,0x6f6e8));import{Collection as _0x4a28f9}from'ckeditor5/src/utils.js';import{IconAI as _0xaa003e,IconBulb as _0x54189e,IconWeb as _0x4d660a}from'@ckeditor/ckeditor5-icons';function _0x2e95(_0x469b74,_0x3520fc){const _0x5ef24b=_0x5ef2();return _0x2e95=function(_0x2e95ed,_0x427e54){_0x2e95ed=_0x2e95ed-0xb4;let _0x43a129=_0x5ef24b[_0x2e95ed];return _0x43a129;},_0x2e95(_0x469b74,_0x3520fc);}function _0x5ef2(){const _0x52846c=['isVisible','AI_CHAT_COMMANDS','span','execute','_getCapabilityParts','enabled','5nQjSdl','setWebSearch','3502270toNBbQ','427395BfbYqj','addMany','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','webSearchActive','setReasoning','AI_CHAT_CAPABILITIES_YES','bind','1512028nJjSCV','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','buttonView','listenTo','content','_createWebSearchButton','toggleReasoning','isOn','description','ck-ai-chat-controls__model-selection__item-description','9KufHOJ','6391jtfvYg','AI_CHAT_SEARCH_WEB','isEnabled','clear','_modelNameView','37236BSkvjK','reasoningActive','_createCommandsButton','_commandsButton','div','ck-ai-chat-controls__model-selection__item-name','AI_CHAT_CAPABILITIES_NO','add','_createModelNameView','enableModelSelector','toggleWebSearch','_createReasoningButton','name','text','button','menuitemradio','model','modelSelectorEnabled','ck-ai-chat-controls__model-selection__item-capabilities','length','selector','source','_reasoningButton','setModel','set','extendTemplate','ck-ai-button-tertiary','ck-ai-chat-controls__model-name','locale','reasoning','AI_CHAT_ENABLE_WEB_SEARCH','createCollection','capabilities','1003388QTYquB','log','webSearch','AI_CHAT_ENABLE_REASONING','ck-ai-chat__prompt-capabilities','_modelSelectionDropdown','activeModelId','_modelSelectionDropdownItems','label','style','ck-hidden','setTemplate','selectModel','ck-button__label','AI_CHAT_DISABLE_REASONING','ck-ai-chat-controls-button','hidden','10CKnXEw','2167792BpVGPY','ck-ai-chat-controls__model-selection','setModelList','_createModelSelectionDropdown','AI_CHAT_DISABLE_WEB_SEARCH','tooltip','modelDisplayMode','53978qMNMlI','AI_CHAT_REASONING','_webSearchButton','ck-ai-chat-controls-button--commands','activeModelName','fire','bindTemplate','6Slfbzn','Commands\x20are\x20not\x20implemented\x20yet.','disableModelSelector'];_0x5ef2=function(){return _0x52846c;};return _0x5ef2();}import{addListToDropdown as _0x5cdd72,ButtonLabelView as _0x26e6a6,ButtonView as _0x4ec2be,createDropdown as _0x546b23,IconView as _0x428619,UIModel as _0x437b08,View as _0x3fe407}from'ckeditor5/src/ui.js';import{getTranslation as _0x346fbb}from'../../../aicore/utils/common-translations.js';const qo=_0x427645(0xec),jo=_0x427645(0xf7),zo=_0x427645(0x104),Jo=_0x427645(0xe1),Ko=_0x427645(0xfb),Qo=_0x427645(0xcc),Zo=_0x427645(0xc0),tl=_0x427645(0xd9),el='n';export class AIChatPromptCapabilitiesView extends _0x3fe407{[_0x427645(0x103)];[_0x427645(0xdd)];[_0x427645(0xca)];[_0x427645(0xed)];[_0x427645(0xef)];[_0x427645(0xc6)];constructor(_0x5c9441){const _0x5df12d=_0x427645;super(_0x5c9441),this[_0x5df12d(0xdf)](_0x5df12d(0x117),!0x1),this[_0x5df12d(0xdf)](_0x5df12d(0xc8),!0x1),this[_0x5df12d(0xdf)](_0x5df12d(0x100),_0x5df12d(0xdb)),this[_0x5df12d(0xdf)](_0x5df12d(0xd8),!0x0),this[_0x5df12d(0xdf)](_0x5df12d(0xee),null),this[_0x5df12d(0xdf)](_0x5df12d(0x105),null),this[_0x5df12d(0xed)]=this[_0x5df12d(0xfd)](),this[_0x5df12d(0xc6)]=this[_0x5df12d(0xcf)](),this[_0x5df12d(0x103)]=this[_0x5df12d(0xbc)](),this[_0x5df12d(0xdd)]=this[_0x5df12d(0xd2)](),this[_0x5df12d(0xca)]=this[_0x5df12d(0xc9)](),this[_0x5df12d(0xed)][_0x5df12d(0xb9)][_0x5df12d(0xb6)](_0x5df12d(0x10b))['to'](this,_0x5df12d(0x100),_0x16deb9=>_0x5df12d(0xdb)===_0x16deb9),this[_0x5df12d(0xed)][_0x5df12d(0xb9)][_0x5df12d(0xb6)](_0x5df12d(0xff))['to'](this,_0x5df12d(0xd8),_0x901e8d=>_0x901e8d?this[_0x5df12d(0xed)][_0x5df12d(0xb9)][_0x5df12d(0xf0)]:_0x346fbb(this[_0x5df12d(0xe3)],_0x5df12d(0xb8))),this[_0x5df12d(0xed)][_0x5df12d(0xb6)](_0x5df12d(0xc4))['to'](this,_0x5df12d(0xd8),_0x32b2b8=>_0x32b2b8),this[_0x5df12d(0x103)][_0x5df12d(0xb6)](_0x5df12d(0xbe))['to'](this,_0x5df12d(0x117),_0x16e2c0=>_0x16e2c0),this[_0x5df12d(0x103)][_0x5df12d(0xb6)](_0x5df12d(0xff))['to'](this,_0x5df12d(0x117),_0x348dc3=>_0x346fbb(this[_0x5df12d(0xe3)],_0x348dc3?_0x5df12d(0xfe):_0x5df12d(0xe5))),this[_0x5df12d(0xdd)][_0x5df12d(0xb6)](_0x5df12d(0xbe))['to'](this,_0x5df12d(0xc8),_0x5d8bf3=>_0x5d8bf3),this[_0x5df12d(0xdd)][_0x5df12d(0xb6)](_0x5df12d(0xff))['to'](this,_0x5df12d(0xc8),_0x2e1ce0=>_0x346fbb(this[_0x5df12d(0xe3)],_0x2e1ce0?_0x5df12d(0xf6):_0x5df12d(0xeb))),this[_0x5df12d(0xf3)]({'tag':_0x5df12d(0xcb),'attributes':{'class':[qo]},'children':[this[_0x5df12d(0xed)],this[_0x5df12d(0xc6)],this[_0x5df12d(0x103)],this[_0x5df12d(0xdd)],this[_0x5df12d(0xca)]]}),this[_0x5df12d(0xef)]=new _0x4a28f9(),_0x5cdd72(this[_0x5df12d(0xed)],this[_0x5df12d(0xef)]);}[_0x427645(0xfc)](_0x154828,_0x2b4eda){const _0x333e60=_0x427645;if(_0x2b4eda)this[_0x333e60(0xdf)](_0x333e60(0x100),_0x333e60(0xf8));else{const _0x1d8af5=0x1===_0x154828[_0x333e60(0xda)];this[_0x333e60(0xdf)](_0x333e60(0x100),_0x1d8af5?_0x333e60(0xd3):_0x333e60(0xdb));}if(this[_0x333e60(0xef)][_0x333e60(0xc5)](),_0x154828?.[_0x333e60(0xda)])for(const _0x33d64a of _0x154828){const _0x3f62dd=new _0x437b08({'label':_0x33d64a[_0x333e60(0xd3)],'withText':!0x0,'role':_0x333e60(0xd6),'id':_0x33d64a['id'],'model':_0x33d64a});_0x3f62dd[_0x333e60(0xb6)](_0x333e60(0xbe))['to'](this,_0x333e60(0xee),_0x3754cf=>_0x3754cf===_0x33d64a['id']),this[_0x333e60(0xef)][_0x333e60(0xce)]({'type':_0x333e60(0xd5),'model':_0x3f62dd,'labelView':new ModelButtonLabelView(this[_0x333e60(0xe3)],_0x33d64a)});}}[_0x427645(0x112)](_0x594674){const _0x21275a=_0x427645;this[_0x21275a(0xdf)](_0x21275a(0x117),_0x594674);}[_0x427645(0xb4)](_0x3fef4d){const _0xd00bfa=_0x427645;this[_0xd00bfa(0xdf)](_0xd00bfa(0xc8),_0x3fef4d);}[_0x427645(0xde)](_0x128004){const _0x2c790b=_0x427645;if(!_0x128004)return;this[_0x2c790b(0xee)]=_0x128004['id'],this[_0x2c790b(0x105)]=_0x128004[_0x2c790b(0xd3)]||_0x128004['id'],this[_0x2c790b(0xed)][_0x2c790b(0xb9)][_0x2c790b(0xdf)](_0x2c790b(0xf0),_0x128004[_0x2c790b(0xd3)]),this[_0x2c790b(0xed)][_0x2c790b(0xb9)][_0x2c790b(0xdf)](_0x2c790b(0xff),_0x128004[_0x2c790b(0xd3)]);const _0x246f02=_0x128004[_0x2c790b(0xe7)][_0x2c790b(0xea)]?.[_0x2c790b(0x110)]??!0x1;this[_0x2c790b(0xdf)](_0x2c790b(0x117),!0x1),this[_0x2c790b(0x103)][_0x2c790b(0xdf)](_0x2c790b(0xbe),!0x1),this[_0x2c790b(0x103)][_0x2c790b(0xdf)](_0x2c790b(0xc4),_0x246f02),this[_0x2c790b(0x103)][_0x2c790b(0xdf)](_0x2c790b(0x10b),_0x246f02);const _0x43185c=_0x128004[_0x2c790b(0xe7)][_0x2c790b(0xe4)]?.[_0x2c790b(0x110)]??!0x1;this[_0x2c790b(0xdf)](_0x2c790b(0xc8),!0x1),this[_0x2c790b(0xdd)][_0x2c790b(0xdf)](_0x2c790b(0xbe),!0x1),this[_0x2c790b(0xdd)][_0x2c790b(0xdf)](_0x2c790b(0xc4),_0x43185c),this[_0x2c790b(0xdd)][_0x2c790b(0xdf)](_0x2c790b(0x10b),_0x43185c);}[_0x427645(0xd0)](){const _0xaeb7c6=_0x427645;this[_0xaeb7c6(0xdf)](_0xaeb7c6(0xd8),!0x0);}[_0x427645(0x10a)](_0x482946){const _0x4c4a8e=_0x427645;this[_0x4c4a8e(0xdf)](_0x4c4a8e(0xd8),!0x1),_0x482946&&this[_0x4c4a8e(0xdf)](_0x4c4a8e(0x100),_0x4c4a8e(0xf8));}[_0x427645(0xbc)](){const _0x5795fb=_0x427645,_0x185481=new _0x4ec2be();return _0x185481[_0x5795fb(0xdf)]({'label':_0x346fbb(this[_0x5795fb(0xe3)],_0x5795fb(0xc3)),'icon':_0x4d660a,'class':jo,'isToggleable':!0x0,'tooltipPosition':el}),_0x185481['on'](_0x5795fb(0x10e),()=>{const _0x344b72=_0x5795fb;this[_0x344b72(0x106)](_0x344b72(0xd1));}),_0x185481;}[_0x427645(0xd2)](){const _0x5e2977=_0x427645,_0x2404e8=new _0x4ec2be();return _0x2404e8[_0x5e2977(0xdf)]({'label':_0x346fbb(this[_0x5e2977(0xe3)],_0x5e2977(0x102)),'icon':_0x54189e,'class':jo,'isToggleable':!0x0,'tooltipPosition':el}),_0x2404e8['on'](_0x5e2977(0x10e),()=>{const _0x5c5ebc=_0x5e2977;this[_0x5c5ebc(0x106)](_0x5c5ebc(0xbd));}),_0x2404e8;}[_0x427645(0xc9)](){const _0x27b81a=_0x427645,_0x5d6db4=new _0x4ec2be();return _0x5d6db4[_0x27b81a(0xdf)]({'label':_0x346fbb(this[_0x27b81a(0xe3)],_0x27b81a(0x10c)),'icon':_0xaa003e,'withText':!0x0,'class':jo,'isToggleable':!0x0,'tooltip':_0x346fbb(this[_0x27b81a(0xe3)],_0x27b81a(0x10c)),'tooltipPosition':el}),_0x5d6db4[_0x27b81a(0xe0)]({'attributes':{'class':[zo]}}),_0x5d6db4['on'](_0x27b81a(0x10e),()=>{const _0x26ca64=_0x27b81a;console[_0x26ca64(0xe9)](_0x26ca64(0x109)),alert(_0x26ca64(0x109));}),_0x5d6db4;}[_0x427645(0xfd)](){const _0x2f20e7=_0x427645,_0x519ebe=_0x546b23(this[_0x2f20e7(0xe3)]);return _0x519ebe[_0x2f20e7(0xdf)]({'panelPosition':'ne','class':[Ko]}),_0x519ebe[_0x2f20e7(0xb9)][_0x2f20e7(0xdf)]({'label':_0x346fbb(this[_0x2f20e7(0xe3)],_0x2f20e7(0x116)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':el,'class':Jo}),this[_0x2f20e7(0xba)](_0x519ebe,_0x2f20e7(0x10e),_0x1fa764=>{const _0x2ed387=_0x2f20e7;this[_0x2ed387(0x106)](_0x2ed387(0xf4),_0x1fa764[_0x2ed387(0xdc)][_0x2ed387(0xd7)]);}),_0x519ebe;}[_0x427645(0xcf)](){const _0x9ffa35=_0x427645,_0x5f3d4d=new ModelNameView(this[_0x9ffa35(0xe3)]);return _0x5f3d4d[_0x9ffa35(0xb6)](_0x9ffa35(0xd4))['to'](this,_0x9ffa35(0x105),_0x212b7c=>_0x212b7c??''),_0x5f3d4d[_0x9ffa35(0xb6)](_0x9ffa35(0x10b))['to'](this,_0x9ffa35(0x100),_0x5d22a7=>_0x9ffa35(0xd3)===_0x5d22a7),_0x5f3d4d;}}class ModelButtonLabelView extends _0x26e6a6{constructor(_0x583fff,_0x46f66a){const _0x5bead5=_0x427645;super();const _0x1f5175=this[_0x5bead5(0x107)],_0x15245b=this[_0x5bead5(0xe6)]();this[_0x5bead5(0xf3)]({'tag':_0x5bead5(0xcb),'attributes':{'class':['ck',_0x5bead5(0xf5)],'style':_0x1f5175['to'](_0x5bead5(0xf1)),'id':_0x1f5175['to']('id')},'children':[{'tag':_0x5bead5(0xcb),'attributes':{'class':[Qo]},'children':[{'text':_0x1f5175['to'](_0x5bead5(0xd4))}]},{'tag':_0x5bead5(0xcb),'attributes':{'class':[Zo]},'children':[{'tag':_0x5bead5(0x10d),'children':[{'text':_0x46f66a[_0x5bead5(0xbf)]}]}]},{'tag':_0x5bead5(0xcb),'attributes':{'class':[tl]},'children':_0x15245b}]}),_0x15245b[_0x5bead5(0x115)](this[_0x5bead5(0x10f)](_0x583fff,_0x4d660a,_0x5bead5(0xc3),_0x46f66a[_0x5bead5(0xe7)][_0x5bead5(0xea)]?.[_0x5bead5(0x110)]??!0x1)),_0x15245b[_0x5bead5(0x115)](this[_0x5bead5(0x10f)](_0x583fff,_0x54189e,_0x5bead5(0x102),_0x46f66a[_0x5bead5(0xe7)][_0x5bead5(0xe4)]?.[_0x5bead5(0x110)]??!0x1));}[_0x427645(0x10f)](_0x86759d,_0x57b6ed,_0x132fb8,_0xac793b){const _0x1c69e3=_0x427645,_0x5d847d=new _0x428619();_0x5d847d[_0x1c69e3(0xbb)]=_0x57b6ed;const _0x11db73=new _0x3fe407(_0x86759d);_0x11db73[_0x1c69e3(0xf3)]({'tag':_0x1c69e3(0x10d),'children':[{'text':_0x346fbb(_0x86759d,_0x132fb8)+':\x20'}]});const _0x1d4e34=new _0x3fe407(_0x86759d);return _0x1d4e34[_0x1c69e3(0xf3)]({'tag':_0x1c69e3(0x10d),'children':[{'text':_0x346fbb(_0x86759d,_0xac793b?_0x1c69e3(0xb5):_0x1c69e3(0xcd))}]}),[_0x5d847d,_0x11db73,_0x1d4e34];}}class ModelNameView extends _0x3fe407{constructor(_0x227171){const _0x4863b6=_0x427645;super(_0x227171),this[_0x4863b6(0xdf)](_0x4863b6(0xd4),void 0x0),this[_0x4863b6(0xdf)](_0x4863b6(0x10b),!0x0);const _0x379c72=this[_0x4863b6(0x107)];this[_0x4863b6(0xf3)]({'tag':_0x4863b6(0x10d),'attributes':{'class':['ck',_0x4863b6(0xe2),_0x379c72['if'](_0x4863b6(0x10b),_0x4863b6(0xf2),_0x126b6b=>!_0x126b6b)]},'children':[{'text':_0x379c72['to'](_0x4863b6(0xd4))}]});}}
|
|
23
|
+
const _0x22b1ce=_0x559a;(function(_0x49aaba,_0x1cbf49){const _0x17383c=_0x559a,_0x1ca6b4=_0x49aaba();while(!![]){try{const _0x508619=parseInt(_0x17383c(0x111))/0x1+-parseInt(_0x17383c(0x147))/0x2*(-parseInt(_0x17383c(0x125))/0x3)+-parseInt(_0x17383c(0x134))/0x4*(-parseInt(_0x17383c(0x127))/0x5)+-parseInt(_0x17383c(0x128))/0x6*(parseInt(_0x17383c(0x116))/0x7)+-parseInt(_0x17383c(0x117))/0x8+-parseInt(_0x17383c(0x156))/0x9+parseInt(_0x17383c(0x11b))/0xa;if(_0x508619===_0x1cbf49)break;else _0x1ca6b4['push'](_0x1ca6b4['shift']());}catch(_0xe6d21e){_0x1ca6b4['push'](_0x1ca6b4['shift']());}}}(_0x163c,0x3083f));import{Collection as _0x42a881}from'ckeditor5/src/utils.js';import{IconAI as _0x5b5ee0,IconBulb as _0x4eff1a,IconWeb as _0x1e6188}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x28861b,ButtonLabelView as _0xef0f76,ButtonView as _0x178a10,createDropdown as _0x2f982b,IconView as _0x5750de,UIModel as _0x327aed,View as _0x3150f2}from'ckeditor5/src/ui.js';import{getTranslation as _0x43b123}from'../../../aicore/utils/common-translations.js';const Yo=_0x22b1ce(0x115),Mo=_0x22b1ce(0x11d),qo=_0x22b1ce(0x11e),zo=_0x22b1ce(0x12f),Jo=_0x22b1ce(0x12d),Ko=_0x22b1ce(0x10d),Qo=_0x22b1ce(0x157),Zo=_0x22b1ce(0x143),$o='n';export class AIChatPromptCapabilitiesView extends _0x3150f2{[_0x22b1ce(0x12a)];[_0x22b1ce(0x13b)];[_0x22b1ce(0x15c)];[_0x22b1ce(0x160)];[_0x22b1ce(0x106)];[_0x22b1ce(0x162)];constructor(_0x29feba){const _0x2235b9=_0x22b1ce;super(_0x29feba),this[_0x2235b9(0x109)](_0x2235b9(0x13e),!0x1),this[_0x2235b9(0x109)](_0x2235b9(0x10b),!0x1),this[_0x2235b9(0x109)](_0x2235b9(0x14f),_0x2235b9(0x11c)),this[_0x2235b9(0x109)](_0x2235b9(0x141),!0x0),this[_0x2235b9(0x109)](_0x2235b9(0x122),null),this[_0x2235b9(0x109)](_0x2235b9(0x12b),null),this[_0x2235b9(0x160)]=this[_0x2235b9(0x108)](),this[_0x2235b9(0x162)]=this[_0x2235b9(0x166)](),this[_0x2235b9(0x12a)]=this[_0x2235b9(0x14e)](),this[_0x2235b9(0x13b)]=this[_0x2235b9(0x155)](),this[_0x2235b9(0x15c)]=this[_0x2235b9(0x126)](),this[_0x2235b9(0x160)][_0x2235b9(0x154)][_0x2235b9(0x138)](_0x2235b9(0x10a))['to'](this,_0x2235b9(0x14f),_0x2a222e=>_0x2235b9(0x11c)===_0x2a222e),this[_0x2235b9(0x160)][_0x2235b9(0x154)][_0x2235b9(0x138)](_0x2235b9(0x131))['to'](this,_0x2235b9(0x141),_0x401df5=>_0x401df5?this[_0x2235b9(0x160)][_0x2235b9(0x154)][_0x2235b9(0x130)]:_0x43b123(this[_0x2235b9(0x139)],_0x2235b9(0x158))),this[_0x2235b9(0x160)][_0x2235b9(0x138)](_0x2235b9(0x10e))['to'](this,_0x2235b9(0x141),_0x560edc=>_0x560edc),this[_0x2235b9(0x12a)][_0x2235b9(0x138)](_0x2235b9(0x114))['to'](this,_0x2235b9(0x13e),_0x4679e2=>_0x4679e2),this[_0x2235b9(0x12a)][_0x2235b9(0x138)](_0x2235b9(0x131))['to'](this,_0x2235b9(0x13e),_0x22e43e=>_0x43b123(this[_0x2235b9(0x139)],_0x22e43e?_0x2235b9(0x110):_0x2235b9(0x149))),this[_0x2235b9(0x13b)][_0x2235b9(0x138)](_0x2235b9(0x114))['to'](this,_0x2235b9(0x10b),_0x21df8f=>_0x21df8f),this[_0x2235b9(0x13b)][_0x2235b9(0x138)](_0x2235b9(0x131))['to'](this,_0x2235b9(0x10b),_0x4a8107=>_0x43b123(this[_0x2235b9(0x139)],_0x4a8107?_0x2235b9(0x167):_0x2235b9(0x13f))),this[_0x2235b9(0x14b)]({'tag':_0x2235b9(0x144),'attributes':{'class':[Yo]},'children':[this[_0x2235b9(0x160)],this[_0x2235b9(0x162)],this[_0x2235b9(0x12a)],this[_0x2235b9(0x13b)],this[_0x2235b9(0x15c)]]}),this[_0x2235b9(0x106)]=new _0x42a881(),_0x28861b(this[_0x2235b9(0x160)],this[_0x2235b9(0x106)]);}[_0x22b1ce(0x11f)](_0x1f02c9,_0x4f4b5a){const _0x398474=_0x22b1ce;if(_0x4f4b5a)this[_0x398474(0x109)](_0x398474(0x14f),_0x398474(0x10f));else{const _0x6b22de=0x1===_0x1f02c9[_0x398474(0x112)];this[_0x398474(0x109)](_0x398474(0x14f),_0x6b22de?_0x398474(0x15e):_0x398474(0x11c));}if(this[_0x398474(0x106)][_0x398474(0x165)](),_0x1f02c9?.[_0x398474(0x112)])for(const _0x5da393 of _0x1f02c9){const _0x5270d8=new _0x327aed({'label':_0x5da393[_0x398474(0x15e)],'withText':!0x0,'role':_0x398474(0x15a),'id':_0x5da393['id'],'model':_0x5da393});_0x5270d8[_0x398474(0x138)](_0x398474(0x114))['to'](this,_0x398474(0x122),_0x2409ec=>_0x2409ec===_0x5da393['id']),this[_0x398474(0x106)][_0x398474(0x159)]({'type':_0x398474(0x13a),'model':_0x5270d8,'labelView':new ModelButtonLabelView(this[_0x398474(0x139)],_0x5da393)});}}[_0x22b1ce(0x145)](_0x46aadc){const _0x476be2=_0x22b1ce;this[_0x476be2(0x109)](_0x476be2(0x13e),_0x46aadc);}[_0x22b1ce(0x121)](_0x1f7f6a){const _0xe55997=_0x22b1ce;this[_0xe55997(0x109)](_0xe55997(0x10b),_0x1f7f6a);}[_0x22b1ce(0x153)](_0x16de56){const _0x2a26a0=_0x22b1ce;if(!_0x16de56)return;this[_0x2a26a0(0x122)]=_0x16de56['id'],this[_0x2a26a0(0x12b)]=_0x16de56[_0x2a26a0(0x15e)]||_0x16de56['id'],this[_0x2a26a0(0x160)][_0x2a26a0(0x154)][_0x2a26a0(0x109)](_0x2a26a0(0x130),_0x16de56[_0x2a26a0(0x15e)]),this[_0x2a26a0(0x160)][_0x2a26a0(0x154)][_0x2a26a0(0x109)](_0x2a26a0(0x131),_0x16de56[_0x2a26a0(0x15e)]);const _0x142fa9=_0x16de56[_0x2a26a0(0x119)][_0x2a26a0(0x135)]?.[_0x2a26a0(0x140)]??!0x1;this[_0x2a26a0(0x109)](_0x2a26a0(0x13e),!0x1),this[_0x2a26a0(0x12a)][_0x2a26a0(0x109)](_0x2a26a0(0x114),!0x1),this[_0x2a26a0(0x12a)][_0x2a26a0(0x109)](_0x2a26a0(0x10e),_0x142fa9),this[_0x2a26a0(0x12a)][_0x2a26a0(0x109)](_0x2a26a0(0x10a),_0x142fa9);const _0x1534fd=_0x16de56[_0x2a26a0(0x119)][_0x2a26a0(0x13d)]?.[_0x2a26a0(0x140)]??!0x1;this[_0x2a26a0(0x109)](_0x2a26a0(0x10b),!0x1),this[_0x2a26a0(0x13b)][_0x2a26a0(0x109)](_0x2a26a0(0x114),!0x1),this[_0x2a26a0(0x13b)][_0x2a26a0(0x109)](_0x2a26a0(0x10e),_0x1534fd),this[_0x2a26a0(0x13b)][_0x2a26a0(0x109)](_0x2a26a0(0x10a),_0x1534fd);}[_0x22b1ce(0x12e)](){const _0x51c05d=_0x22b1ce;this[_0x51c05d(0x109)](_0x51c05d(0x141),!0x0);}[_0x22b1ce(0x107)](_0x4a45de){const _0x1cc9a3=_0x22b1ce;this[_0x1cc9a3(0x109)](_0x1cc9a3(0x141),!0x1),_0x4a45de&&this[_0x1cc9a3(0x109)](_0x1cc9a3(0x14f),_0x1cc9a3(0x10f));}[_0x22b1ce(0x14e)](){const _0x3956d4=_0x22b1ce,_0xaaa19b=new _0x178a10();return _0xaaa19b[_0x3956d4(0x109)]({'label':_0x43b123(this[_0x3956d4(0x139)],_0x3956d4(0x133)),'icon':_0x1e6188,'class':Mo,'isToggleable':!0x0,'tooltipPosition':$o}),_0xaaa19b['on'](_0x3956d4(0x15b),()=>{const _0x34e4e0=_0x3956d4;this[_0x34e4e0(0x132)](_0x34e4e0(0x129));}),_0xaaa19b;}[_0x22b1ce(0x155)](){const _0x52eecb=_0x22b1ce,_0x537a9e=new _0x178a10();return _0x537a9e[_0x52eecb(0x109)]({'label':_0x43b123(this[_0x52eecb(0x139)],_0x52eecb(0x113)),'icon':_0x4eff1a,'class':Mo,'isToggleable':!0x0,'tooltipPosition':$o}),_0x537a9e['on'](_0x52eecb(0x15b),()=>{const _0x6b0a13=_0x52eecb;this[_0x6b0a13(0x132)](_0x6b0a13(0x151));}),_0x537a9e;}[_0x22b1ce(0x126)](){const _0x937937=_0x22b1ce,_0x24e189=new _0x178a10();return _0x24e189[_0x937937(0x109)]({'label':_0x43b123(this[_0x937937(0x139)],_0x937937(0x137)),'icon':_0x5b5ee0,'withText':!0x0,'class':Mo,'isToggleable':!0x0,'tooltip':_0x43b123(this[_0x937937(0x139)],_0x937937(0x137)),'tooltipPosition':$o}),_0x24e189[_0x937937(0x14a)]({'attributes':{'class':[qo]}}),_0x24e189['on'](_0x937937(0x15b),()=>{const _0x8383ea=_0x937937;console[_0x8383ea(0x163)](_0x8383ea(0x15d)),alert(_0x8383ea(0x15d));}),_0x24e189;}[_0x22b1ce(0x108)](){const _0x29242f=_0x22b1ce,_0x54b61c=_0x2f982b(this[_0x29242f(0x139)]);return _0x54b61c[_0x29242f(0x109)]({'panelPosition':'ne','class':[Jo]}),_0x54b61c[_0x29242f(0x154)][_0x29242f(0x109)]({'label':_0x43b123(this[_0x29242f(0x139)],_0x29242f(0x136)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':$o,'class':zo}),this[_0x29242f(0x15f)](_0x54b61c,_0x29242f(0x15b),_0x14e458=>{const _0x522671=_0x29242f;this[_0x522671(0x132)](_0x522671(0x142),_0x14e458[_0x522671(0x11a)][_0x522671(0x12c)]);}),_0x54b61c;}[_0x22b1ce(0x166)](){const _0xd3a4bc=_0x22b1ce,_0x22a496=new ModelNameView(this[_0xd3a4bc(0x139)]);return _0x22a496[_0xd3a4bc(0x138)](_0xd3a4bc(0x123))['to'](this,_0xd3a4bc(0x12b),_0x36d123=>_0x36d123??''),_0x22a496[_0xd3a4bc(0x138)](_0xd3a4bc(0x10a))['to'](this,_0xd3a4bc(0x14f),_0x332bdb=>_0xd3a4bc(0x15e)===_0x332bdb),_0x22a496;}}function _0x559a(_0x427e3f,_0x45c01c){const _0x163c54=_0x163c();return _0x559a=function(_0x559ab8,_0xf8a728){_0x559ab8=_0x559ab8-0x106;let _0x411486=_0x163c54[_0x559ab8];return _0x411486;},_0x559a(_0x427e3f,_0x45c01c);}class ModelButtonLabelView extends _0xef0f76{constructor(_0x190b66,_0xf89e60){const _0x3a2ae8=_0x22b1ce;super();const _0x4c37f4=this[_0x3a2ae8(0x120)],_0x44d66a=this[_0x3a2ae8(0x152)]();this[_0x3a2ae8(0x14b)]({'tag':_0x3a2ae8(0x144),'attributes':{'class':['ck',_0x3a2ae8(0x164)],'style':_0x4c37f4['to'](_0x3a2ae8(0x13c)),'id':_0x4c37f4['to']('id')},'children':[{'tag':_0x3a2ae8(0x144),'attributes':{'class':[Ko]},'children':[{'text':_0x4c37f4['to'](_0x3a2ae8(0x123))}]},{'tag':_0x3a2ae8(0x144),'attributes':{'class':[Qo]},'children':[{'tag':_0x3a2ae8(0x150),'children':[{'text':_0xf89e60[_0x3a2ae8(0x14c)]}]}]},{'tag':_0x3a2ae8(0x144),'attributes':{'class':[Zo]},'children':_0x44d66a}]}),_0x44d66a[_0x3a2ae8(0x10c)](this[_0x3a2ae8(0x124)](_0x190b66,_0x1e6188,_0x3a2ae8(0x133),_0xf89e60[_0x3a2ae8(0x119)][_0x3a2ae8(0x135)]?.[_0x3a2ae8(0x140)]??!0x1)),_0x44d66a[_0x3a2ae8(0x10c)](this[_0x3a2ae8(0x124)](_0x190b66,_0x4eff1a,_0x3a2ae8(0x113),_0xf89e60[_0x3a2ae8(0x119)][_0x3a2ae8(0x13d)]?.[_0x3a2ae8(0x140)]??!0x1));}[_0x22b1ce(0x124)](_0x59ddba,_0x5667ba,_0x2f2f4c,_0x15a3d4){const _0x14a90a=_0x22b1ce,_0x8ade28=new _0x5750de();_0x8ade28[_0x14a90a(0x14d)]=_0x5667ba;const _0x123c3f=new _0x3150f2(_0x59ddba);_0x123c3f[_0x14a90a(0x14b)]({'tag':_0x14a90a(0x150),'children':[{'text':_0x43b123(_0x59ddba,_0x2f2f4c)+':\x20'}]});const _0x29d762=new _0x3150f2(_0x59ddba);return _0x29d762[_0x14a90a(0x14b)]({'tag':_0x14a90a(0x150),'children':[{'text':_0x43b123(_0x59ddba,_0x15a3d4?_0x14a90a(0x148):_0x14a90a(0x161))}]}),[_0x8ade28,_0x123c3f,_0x29d762];}}class ModelNameView extends _0x3150f2{constructor(_0x2d04b2){const _0x5109c2=_0x22b1ce;super(_0x2d04b2),this[_0x5109c2(0x109)](_0x5109c2(0x123),void 0x0),this[_0x5109c2(0x109)](_0x5109c2(0x10a),!0x0);const _0x530443=this[_0x5109c2(0x120)];this[_0x5109c2(0x14b)]({'tag':_0x5109c2(0x150),'attributes':{'class':['ck',_0x5109c2(0x146),_0x530443['if'](_0x5109c2(0x10a),_0x5109c2(0x118),_0x56338d=>!_0x56338d)]},'children':[{'text':_0x530443['to'](_0x5109c2(0x123))}]});}}function _0x163c(){const _0x3b2f62=['ck-ai-chat-controls-button','ck-ai-chat-controls-button--commands','setModelList','bindTemplate','setReasoning','activeModelId','text','_getCapabilityParts','407760PAyKcX','_createCommandsButton','5zmpxKd','90714unYgfu','toggleWebSearch','_webSearchButton','activeModelName','model','ck-ai-chat-controls__model-selection','enableModelSelector','ck-ai-button-tertiary','label','tooltip','fire','AI_CHAT_SEARCH_WEB','697604UYrgux','webSearch','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','AI_CHAT_COMMANDS','bind','locale','button','_reasoningButton','style','reasoning','webSearchActive','AI_CHAT_ENABLE_REASONING','enabled','modelSelectorEnabled','selectModel','ck-ai-chat-controls__model-selection__item-capabilities','div','setWebSearch','ck-ai-chat-controls__model-name','2WyRFDo','AI_CHAT_CAPABILITIES_YES','AI_CHAT_ENABLE_WEB_SEARCH','extendTemplate','setTemplate','description','content','_createWebSearchButton','modelDisplayMode','span','toggleReasoning','createCollection','setModel','buttonView','_createReasoningButton','1936431IVQhBK','ck-ai-chat-controls__model-selection__item-description','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','add','menuitemradio','execute','_commandsButton','Commands\x20are\x20not\x20implemented\x20yet.','name','listenTo','_modelSelectionDropdown','AI_CHAT_CAPABILITIES_NO','_modelNameView','log','ck-button__label','clear','_createModelNameView','AI_CHAT_DISABLE_REASONING','_modelSelectionDropdownItems','disableModelSelector','_createModelSelectionDropdown','set','isVisible','reasoningActive','addMany','ck-ai-chat-controls__model-selection__item-name','isEnabled','hidden','AI_CHAT_DISABLE_WEB_SEARCH','215520FEbnnp','length','AI_CHAT_REASONING','isOn','ck-ai-chat__prompt-capabilities','133vneXHE','524464ZnDDPD','ck-hidden','capabilities','source','2408560XNddSO','selector'];_0x163c=function(){return _0x3b2f62;};return _0x163c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34a736=_0x392a;(function(_0xdba929,_0x44274a){const _0x1b1dce=_0x392a,_0x38b00c=_0xdba929();while(!![]){try{const _0x5d4d69=-parseInt(_0x1b1dce(0xb4))/0x1*(-parseInt(_0x1b1dce(0xa8))/0x2)+-parseInt(_0x1b1dce(0xcd))/0x3+parseInt(_0x1b1dce(0xa9))/0x4*(parseInt(_0x1b1dce(0x8d))/0x5)+-parseInt(_0x1b1dce(0xbf))/0x6*(-parseInt(_0x1b1dce(0xc2))/0x7)+parseInt(_0x1b1dce(0x8e))/0x8+parseInt(_0x1b1dce(0x94))/0x9*(-parseInt(_0x1b1dce(0xb7))/0xa)+parseInt(_0x1b1dce(0xc6))/0xb*(parseInt(_0x1b1dce(0xc7))/0xc);if(_0x5d4d69===_0x44274a)break;else _0x38b00c['push'](_0x38b00c['shift']());}catch(_0x2985c5){_0x38b00c['push'](_0x38b00c['shift']());}}}(_0x537c,0x45072));import{IconSubmit as _0x431349}from'ckeditor5/src/icons.js';import{ButtonView as _0x3cbb44,AutocompleteView as _0x1aa2ac,createLabeledTextarea as _0x5d05e2}from'ckeditor5/src/ui.js';function _0x392a(_0x57e728,_0x26225e){const _0x537c12=_0x537c();return _0x392a=function(_0x392a33,_0x28c947){_0x392a33=_0x392a33-0x89;let _0x554db1=_0x537c12[_0x392a33];return _0x554db1;},_0x392a(_0x57e728,_0x26225e);}import{global as _0xf27497,isVisible as _0x46987b,Rect as _0x160041,ResizeObserver as _0x3e7b3f}from'ckeditor5/src/utils.js';import{getTranslation as _0x2900c0}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x2111b3}from'./aichatpromptsuggestionslistview.js';import{escape as _0x1657c5}from'es-toolkit/compat';const ah=_0x34a736(0xc8);export class AIChatPromptInputView extends _0x1aa2ac{[_0x34a736(0xb5)];static [_0x34a736(0xab)]=0x1;static [_0x34a736(0xc1)]=0xc;[_0x34a736(0x9a)];[_0x34a736(0xbd)];constructor(_0x39da8b,_0xb0300a){const _0x76b95b=_0x34a736;super(_0x39da8b,{'queryView':{'label':'','creator':_0x5d05e2,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x2111b3(_0x39da8b),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x76b95b(0xd0)](_0x76b95b(0x98),!0x0),this[_0x76b95b(0xd0)](_0x76b95b(0x8c),!0x1),this[_0x76b95b(0x9a)]=_0xb0300a,this[_0x76b95b(0xbd)]=null,this[_0x76b95b(0xae)][_0x76b95b(0xc9)][_0x76b95b(0x9b)]=AIChatPromptInputView[_0x76b95b(0xab)],this[_0x76b95b(0xae)][_0x76b95b(0xc9)][_0x76b95b(0xbe)]=AIChatPromptInputView[_0x76b95b(0xc1)],this[_0x76b95b(0xae)][_0x76b95b(0x95)][_0x76b95b(0x92)](this[_0x76b95b(0x9a)]),this[_0x76b95b(0xcb)](),this[_0x76b95b(0x89)]({'attributes':{'class':['ck',_0x76b95b(0xb9)]}}),this[_0x76b95b(0xb5)]=this[_0x76b95b(0x91)](),this[_0x76b95b(0xb5)][_0x76b95b(0xac)](_0x76b95b(0x97))['to'](this,_0x76b95b(0x98),this,_0x76b95b(0x8c),(_0x2a5b7b,_0x5db540)=>!_0x2a5b7b&&!_0x5db540),this[_0x76b95b(0xb1)][_0x76b95b(0x92)](this[_0x76b95b(0xb5)]);}[_0x34a736(0xa2)](){const _0x46a69c=_0x34a736;super[_0x46a69c(0xa2)](),this[_0x46a69c(0xae)][_0x46a69c(0x95)][_0x46a69c(0x92)](this[_0x46a69c(0xb5)]),this[_0x46a69c(0xa3)][_0x46a69c(0xd0)](_0x46a69c(0x99),(_0x4b20fe,_0x39610b)=>{const _0x3dd0f0=_0x46a69c;this[_0x3dd0f0(0x8c)]||this[_0x3dd0f0(0x98)]||_0x4b20fe[_0x3dd0f0(0x9d)]==this[_0x3dd0f0(0xae)][_0x3dd0f0(0xc9)][_0x3dd0f0(0xbb)]&&(this[_0x3dd0f0(0xb8)](),_0x39610b());}),this[_0x46a69c(0xae)][_0x46a69c(0xc9)]['on'](_0x46a69c(0x93),()=>{const _0x4fc06c=_0x46a69c;this[_0x4fc06c(0x98)]=''===this[_0x4fc06c(0xae)][_0x4fc06c(0xc9)][_0x4fc06c(0xbb)][_0x4fc06c(0x8b)]?.[_0x4fc06c(0xce)]();});}[_0x34a736(0xb6)](){const _0x4cdbd2=_0x34a736;super[_0x4cdbd2(0xb6)](),this[_0x4cdbd2(0xbd)]&&this[_0x4cdbd2(0xbd)][_0x4cdbd2(0xb6)]();}[_0x34a736(0xb8)](){const _0x571b65=_0x34a736,_0x42e500=this[_0x571b65(0xae)][_0x571b65(0xc9)][_0x571b65(0xbb)][_0x571b65(0x8b)]?.[_0x571b65(0xce)]();if(!_0x42e500)return this[_0x571b65(0xae)][_0x571b65(0xc3)]=_0x2900c0(this[_0x571b65(0xa6)],_0x571b65(0xc5)),void(this[_0x571b65(0xae)][_0x571b65(0xc9)][_0x571b65(0x8a)]=!0x0);this[_0x571b65(0xae)][_0x571b65(0xc9)][_0x571b65(0x8a)]=!0x1;const _0x140f89=_0x1657c5(_0x42e500);this[_0x571b65(0xcf)](_0x571b65(0xa1),_0x140f89),this[_0x571b65(0xae)][_0x571b65(0xc9)][_0x571b65(0xb3)]();}[_0x34a736(0xad)](_0x1a2119){const _0x408f3e=_0x34a736;this[_0x408f3e(0xae)][_0x408f3e(0xc9)][_0x408f3e(0xd0)](_0x408f3e(0xba),_0x1a2119);}[_0x34a736(0xb0)](_0x214d48=!0x1){const _0x5d3a6a=_0x34a736;super[_0x5d3a6a(0xb0)](),_0x214d48&&(this[_0x5d3a6a(0xbb)][_0x5d3a6a(0xaf)][_0x5d3a6a(0xc4)](ah)||(this[_0x5d3a6a(0xbb)][_0x5d3a6a(0xaf)][_0x5d3a6a(0x92)](ah),setTimeout(()=>{const _0x19edd6=_0x5d3a6a;this[_0x19edd6(0xbb)][_0x19edd6(0xaf)][_0x19edd6(0xaa)](ah);},0x320)));}[_0x34a736(0x91)](){const _0x56061b=_0x34a736,_0x268ed5=new _0x3cbb44(this[_0x56061b(0xa6)]);return _0x268ed5[_0x56061b(0xd0)]({'icon':_0x431349,'label':_0x2900c0(this[_0x56061b(0xa6)],_0x56061b(0x9e)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x56061b(0xbc),'isEnabled':!0x1}),_0x268ed5['on'](_0x56061b(0x8f),()=>{const _0xe051e9=_0x56061b;this[_0xe051e9(0xb8)]();}),_0x268ed5;}[_0x34a736(0xb2)](_0x252afb){const _0x255102=_0x34a736;this[_0x255102(0x8c)]=_0x252afb;}[_0x34a736(0xcb)](){const _0x374c71=_0x34a736,_0x4465b6=this[_0x374c71(0xa6)],_0x536fa9=()=>{const _0x302e9f=_0x374c71;_0xf27497[_0x302e9f(0x9c)][_0x302e9f(0x96)](()=>{const _0x112343=_0x302e9f;if(_0x46987b(this[_0x112343(0xbb)])){const _0x200838=new _0x160041(this[_0x112343(0xae)][_0x112343(0xc9)][_0x112343(0xbb)]),_0x28b0c9=new _0x160041(this[_0x112343(0x9a)][_0x112343(0xbb)]),_0x840720=_0x200838[_0x112343(0xcc)],_0x44c369=_0x112343(0xa5)===_0x4465b6[_0x112343(0xa7)]?_0x112343(0x90):_0x112343(0xa4);_0x200838[_0x112343(0xa0)]();const _0x51478a=_0x840720-_0x200838[_0x112343(0xcc)]+0x1;this[_0x112343(0x9a)][_0x112343(0xbb)][_0x112343(0x9f)][_0x44c369]=_0x112343(0xc0)+(_0x840720-_0x28b0c9[_0x112343(0xcc)]-_0x51478a)+_0x112343(0xca);}});};this[_0x374c71(0xae)][_0x374c71(0xc9)]['on'](_0x374c71(0x93),_0x536fa9),this['on'](_0x374c71(0xa2),()=>{const _0x2c52c4=_0x374c71;_0x536fa9(),this[_0x2c52c4(0xbd)]=new _0x3e7b3f(this[_0x2c52c4(0xae)][_0x2c52c4(0xc9)][_0x2c52c4(0xbb)],()=>{_0x536fa9();});});}}function _0x537c(){const _0x4466db=['trim','fire','set','extendTemplate','hasError','value','isUploadInProgress','10zPEvcr','464896YjeGkX','execute','right','_createSubmitButton','add','update','96651WKdMuj','fieldWrapperChildren','requestAnimationFrame','isEnabled','isEmpty','enter','_addContextButtonView','minRows','window','target','AI_CHAT_LABEL_SUBMIT','style','excludeScrollbarsAndBorders','sendUserMessage','render','keystrokes','left','rtl','locale','uiLanguageDirection','6FTkIQJ','59324mClQQi','remove','MIN_ROWS','bind','setPlaceholderText','queryView','classList','focus','focusableChildren','setIsUploadInProgress','reset','74797zCwdAC','submitButtonView','destroy','60ljZVSK','submit','ck-ai-chat__prompt-input','placeholder','element','ck-ai-chat__prompt-submit-button','_queryViewResizeObserver','maxRows','1002jtIqiW','calc(','MAX_ROWS','7063EBfryI','errorText','contains','AI_CHAT_PROMPT_EMPTY_ERROR','785455TyemIv','60DWNCpi','ck-ai-chat__prompt-input_highlighted','fieldView','px\x20-\x20var(--ck-spacing-tiny))','_setUpAddContextButtonPositioning','width','1471563IYxBje'];_0x537c=function(){return _0x4466db;};return _0x537c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0xe81fce=_0x4225;function _0x4225(_0x540493,_0x4dd811){const _0x4f40b8=_0x4f40();return _0x4225=function(_0x42259d,_0x9ca8b5){_0x42259d=_0x42259d-0xc9;let _0x353cd5=_0x4f40b8[_0x42259d];return _0x353cd5;},_0x4225(_0x540493,_0x4dd811);}(function(_0x827e40,_0x3dc7cb){const _0x4b3e20=_0x4225,_0x284b40=_0x827e40();while(!![]){try{const _0x229e35=-parseInt(_0x4b3e20(0xd6))/0x1*(-parseInt(_0x4b3e20(0xd5))/0x2)+parseInt(_0x4b3e20(0xcc))/0x3*(-parseInt(_0x4b3e20(0xd0))/0x4)+parseInt(_0x4b3e20(0xd3))/0x5+-parseInt(_0x4b3e20(0xca))/0x6*(-parseInt(_0x4b3e20(0xcd))/0x7)+-parseInt(_0x4b3e20(0xc9))/0x8*(parseInt(_0x4b3e20(0xd4))/0x9)+parseInt(_0x4b3e20(0xcf))/0xa+-parseInt(_0x4b3e20(0xcb))/0xb;if(_0x229e35===_0x3dc7cb)break;else _0x284b40['push'](_0x284b40['shift']());}catch(_0x3bdcce){_0x284b40['push'](_0x284b40['shift']());}}}(_0x4f40,0x26cb5));import{ListView as _0x4baab5}from'ckeditor5/src/ui.js';function _0x4f40(){const _0x1f1387=['filter','1199740ZKPjdo','79479llIGnH','10vkjLqO','49457jKgWMi','128DuMsvh','114MzSpIX','4161300UAnaYJ','105ADcLYj','98014nPsXWj','items','733110yjLONw','16924ajXBDJ','length'];_0x4f40=function(){return _0x1f1387;};return _0x4f40();}export class AIChatPromptSuggestionsListView extends _0x4baab5{[_0xe81fce(0xd2)](){const _0x17a713=_0xe81fce;let _0x118a1c=0x0;for(const _0x7ed3d7 of this[_0x17a713(0xce)])_0x118a1c+=_0x7ed3d7[_0x17a713(0xce)][_0x17a713(0xd1)];return{'resultsCount':_0x118a1c,'totalItemsCount':_0x118a1c};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x43f8b2=_0x5647;(function(_0x248931,_0x48d92c){const _0x46643f=_0x5647,_0x34dbaa=_0x248931();while(!![]){try{const _0xb69e95=-parseInt(_0x46643f(0x20c))/0x1+-parseInt(_0x46643f(0x1f8))/0x2+parseInt(_0x46643f(0x20d))/0x3*(-parseInt(_0x46643f(0x200))/0x4)+-parseInt(_0x46643f(0x202))/0x5*(-parseInt(_0x46643f(0x208))/0x6)+-parseInt(_0x46643f(0x20e))/0x7+parseInt(_0x46643f(0x1fe))/0x8+parseInt(_0x46643f(0x1fd))/0x9*(parseInt(_0x46643f(0x205))/0xa);if(_0xb69e95===_0x48d92c)break;else _0x34dbaa['push'](_0x34dbaa['shift']());}catch(_0x8fa704){_0x34dbaa['push'](_0x34dbaa['shift']());}}}(_0x2b7e,0xceb89));function _0x5647(_0x568a86,_0x3617b5){const _0x2b7e90=_0x2b7e();return _0x5647=function(_0x56477e,_0x450f78){_0x56477e=_0x56477e-0x1f1;let _0x5b535a=_0x2b7e90[_0x56477e];return _0x5b535a;},_0x5647(_0x568a86,_0x3617b5);}import{ListView as _0x543a35}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x5643d1}from'./aichatresourcelistitemview.js';function _0x2b7e(){const _0x43d3bf=['useDefaultFiltering','forEach','items','extendTemplate','9bHgqhS','7098360TtOYrP','fire','16jxOUQs','\x5c$&','250740zgRMRY','trim','clear','31345610ByVdPq','test','setResources','72TQIxtm','filter','ck-ai-chat-resources__list','label','1591670hQtHHD','951783eFetOl','2262288KPrgFT','addResourceToContext','_handleResourceSelection','updateResourceState','resource','highlightText','_source','add','replace','execute','locale','1186010cUeBxm'];_0x2b7e=function(){return _0x43d3bf;};return _0x2b7e();}const uc=_0x43f8b2(0x20a);export class AIChatContextResourcesListView extends _0x543a35{[_0x43f8b2(0x1f3)];constructor(_0x3cdb99,_0x18ff47){const _0x1861db=_0x43f8b2;super(_0x3cdb99),this[_0x1861db(0x1f3)]=_0x18ff47,this[_0x1861db(0x1fc)]({'attributes':{'class':[uc]}});}[_0x43f8b2(0x207)](_0x39a0aa,_0x4318cd){const _0xbf683a=_0x43f8b2;this[_0xbf683a(0x1fb)][_0xbf683a(0x204)]();let _0x2227ad=_0x39a0aa;if(this[_0xbf683a(0x1f3)][_0xbf683a(0x1f9)]&&_0x4318cd&&''!==_0x4318cd[_0xbf683a(0x203)]()){const _0x30d8c6=new RegExp(_0x4318cd[_0xbf683a(0x1f5)](/[.*+?^${}()|[\]\\]/g,_0xbf683a(0x201)),'gi');_0x2227ad=_0x39a0aa[_0xbf683a(0x209)](_0x5b3b96=>_0x30d8c6[_0xbf683a(0x206)](_0x5b3b96[_0xbf683a(0x20b)]));}for(const _0x3914d6 of _0x2227ad){const _0x4724ce=new _0x5643d1(this[_0xbf683a(0x1f7)],_0x3914d6);_0x4724ce['on'](_0xbf683a(0x1f6),()=>{const _0x375502=_0xbf683a;this[_0x375502(0x210)](this[_0x375502(0x1f3)],_0x3914d6);}),this[_0xbf683a(0x1fb)][_0xbf683a(0x1f4)](_0x4724ce);}this[_0xbf683a(0x1f3)][_0xbf683a(0x1f9)]&&this[_0xbf683a(0x1f2)](_0x4318cd);}[_0x43f8b2(0x1f2)](_0x2fd911){const _0x5d052d=_0x43f8b2;this[_0x5d052d(0x1f3)][_0x5d052d(0x1f9)]&&this[_0x5d052d(0x1fb)][_0x5d052d(0x1fa)](_0x23a2e6=>{const _0x488a56=_0x5d052d;_0x23a2e6[_0x488a56(0x1f2)](_0x2fd911);});}[_0x43f8b2(0x211)](_0x412d78,_0x331f4e){const _0x350dd5=_0x43f8b2;for(const _0x4e5274 of this[_0x350dd5(0x1fb)]){const _0x5eb4fe=_0x4e5274;_0x5eb4fe[_0x350dd5(0x1f1)]['id']===_0x412d78&&_0x5eb4fe[_0x350dd5(0x211)](_0x331f4e);}}[_0x43f8b2(0x210)](_0xf8c410,_0x109f20){const _0x39d370=_0x43f8b2;this[_0x39d370(0x1ff)](_0x39d370(0x20f),{'source':_0xf8c410,'resource':_0x109f20});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ad7a3=_0x5f2e;function _0x5f2e(_0xdcc99c,_0x41a6a0){const _0x483b58=_0x483b();return _0x5f2e=function(_0x5f2ede,_0x49e996){_0x5f2ede=_0x5f2ede-0x190;let _0x2b513d=_0x483b58[_0x5f2ede];return _0x2b513d;},_0x5f2e(_0xdcc99c,_0x41a6a0);}(function(_0x5bfa4f,_0x37ae70){const _0x32f0bf=_0x5f2e,_0xb33296=_0x5bfa4f();while(!![]){try{const _0x4f598d=-parseInt(_0x32f0bf(0x197))/0x1*(-parseInt(_0x32f0bf(0x1ae))/0x2)+parseInt(_0x32f0bf(0x195))/0x3*(-parseInt(_0x32f0bf(0x1a6))/0x4)+-parseInt(_0x32f0bf(0x1a4))/0x5*(-parseInt(_0x32f0bf(0x1a3))/0x6)+parseInt(_0x32f0bf(0x19a))/0x7*(-parseInt(_0x32f0bf(0x1b3))/0x8)+parseInt(_0x32f0bf(0x19b))/0x9+parseInt(_0x32f0bf(0x1b7))/0xa*(-parseInt(_0x32f0bf(0x1a0))/0xb)+parseInt(_0x32f0bf(0x19e))/0xc;if(_0x4f598d===_0x37ae70)break;else _0xb33296['push'](_0xb33296['shift']());}catch(_0x490b7f){_0xb33296['push'](_0xb33296['shift']());}}}(_0x483b,0xe6c51));import{View as _0x153dfa,ViewCollection as _0x20042d}from'ckeditor5/src/ui.js';import{uid as _0x3e6765}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x2e46ba}from'./aichatcontextresourceslistview.js';function _0x483b(){const _0x5c6342=['_source','ck-hidden','20YNJVWW','isLoading','highlightText','render','_latestLoadResourcesUid','fire','loadResources','_createResourcesListView','set','div','source','_skeletonLoader','_searchInputVisibleFrom','loadSourceResources','updateResourceState','_createSearchView','addResourceToContext','aiChatResources','3XwjQeD','has','152319eJMCtY','setResources','bindTemplate','2370515WMnbjZ','99603QbWYsh','children','useDefaultFiltering','21607692PyhpNl','delegate','6579705pIzgwl','_resourcesListView','ck-ai-chat-resources','10269474eGCcPn','5CVsgOc','length','5728168LEHMcJ','setTemplate','extendTemplate','_createSearchSection','locale','_createSkeletonView','ck\x20ck-search','searchInputVisibleFrom','14txsBcX','search','_searchSection','add','getQuery','24zYgNAB','_searchView'];_0x483b=function(){return _0x5c6342;};return _0x483b();}import{AIChatContextResourcesSearchInputView as _0x24f7ee}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x2c6b7b,SKELETON_DEFINITIONS as _0x2b42e7}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x153dfa{[_0x4ad7a3(0x1b4)];[_0x4ad7a3(0x1b0)];[_0x4ad7a3(0x1c3)];[_0x4ad7a3(0x1a1)];[_0x4ad7a3(0x1c2)];[_0x4ad7a3(0x1b5)];[_0x4ad7a3(0x19c)];[_0x4ad7a3(0x1bb)]=null;constructor(_0x4ef2f4,_0x35caeb){const _0x166d2b=_0x4ad7a3;super(_0x4ef2f4),this[_0x166d2b(0x1b5)]=_0x35caeb[_0x166d2b(0x1c1)],this[_0x166d2b(0x1c3)]=_0x35caeb[_0x166d2b(0x1ad)]??0x7,this[_0x166d2b(0x1bf)](_0x166d2b(0x1b8),!0x0),this[_0x166d2b(0x1b4)]=this[_0x166d2b(0x192)](),this[_0x166d2b(0x1b0)]=this[_0x166d2b(0x1a9)](),this[_0x166d2b(0x1a1)]=this[_0x166d2b(0x1be)](),this[_0x166d2b(0x1c2)]=this[_0x166d2b(0x1ab)](),this[_0x166d2b(0x19c)]=new _0x20042d([this[_0x166d2b(0x1c2)],this[_0x166d2b(0x1a1)]]),this[_0x166d2b(0x1a7)]({'tag':_0x166d2b(0x1c0),'attributes':{'class':_0x166d2b(0x1a2)},'children':this[_0x166d2b(0x19c)]});}[_0x4ad7a3(0x192)](){const _0x104089=_0x4ad7a3;return new _0x24f7ee(this[_0x104089(0x1aa)]);}[_0x4ad7a3(0x1a9)](){const _0x3b7541=_0x4ad7a3,_0x38cbb0=new _0x153dfa(this[_0x3b7541(0x1aa)]);return _0x38cbb0[_0x3b7541(0x1a7)]({'tag':_0x3b7541(0x1c0),'attributes':{'class':_0x3b7541(0x1ac)},'children':[this[_0x3b7541(0x1b4)]]}),this[_0x3b7541(0x1b4)]['on'](_0x3b7541(0x1af),(_0x4b738d,_0x21fe20)=>{const _0x4abbba=_0x3b7541;this[_0x4abbba(0x1bd)](_0x21fe20),this[_0x4abbba(0x1b5)][_0x4abbba(0x19d)]&&this[_0x4abbba(0x1a1)][_0x4abbba(0x1b9)](_0x21fe20);}),_0x38cbb0;}[_0x4ad7a3(0x1be)](){const _0x1d8e82=_0x4ad7a3,_0x1d2c46=new _0x2e46ba(this[_0x1d8e82(0x1aa)],this[_0x1d8e82(0x1b5)]);return _0x1d2c46[_0x1d8e82(0x19f)](_0x1d8e82(0x193))['to'](this),_0x1d2c46[_0x1d8e82(0x1a8)]({'attributes':{'class':this[_0x1d8e82(0x199)]['if'](_0x1d8e82(0x1b8),_0x1d8e82(0x1b6))}}),_0x1d2c46;}[_0x4ad7a3(0x1ab)](){const _0x1d429a=_0x4ad7a3,_0x193d28=new _0x2c6b7b(this[_0x1d429a(0x1aa)],_0x2b42e7[_0x1d429a(0x194)]);return _0x193d28[_0x1d429a(0x1a8)]({'attributes':{'class':[this[_0x1d429a(0x199)]['if'](_0x1d429a(0x1b8),_0x1d429a(0x1b6),_0x507f33=>!_0x507f33)]}}),_0x193d28;}[_0x4ad7a3(0x1ba)](){const _0x3b1bb5=_0x4ad7a3;super[_0x3b1bb5(0x1ba)](),this[_0x3b1bb5(0x1bd)]('');}[_0x4ad7a3(0x1bd)](_0x77ac64){const _0x119ac4=_0x4ad7a3,_0x5a432d=_0x3e6765();this[_0x119ac4(0x1bb)]=_0x5a432d,this[_0x119ac4(0x1bc)](_0x119ac4(0x190),{'sourceId':this[_0x119ac4(0x1b5)]['id'],'query':_0x77ac64,'uid':_0x5a432d}),this[_0x119ac4(0x1b8)]=!0x0;}[_0x4ad7a3(0x198)](_0xd465f6,_0x158320){const _0x8c9ed8=_0x4ad7a3;if(_0x158320&&_0x158320!==this[_0x8c9ed8(0x1bb)])return;const _0x23b31e=this[_0x8c9ed8(0x1b5)][_0x8c9ed8(0x19d)]?this[_0x8c9ed8(0x1b4)][_0x8c9ed8(0x1b2)]():'';this[_0x8c9ed8(0x1a1)][_0x8c9ed8(0x198)](_0xd465f6,_0x23b31e),_0xd465f6[_0x8c9ed8(0x1a5)]>=this[_0x8c9ed8(0x1c3)]&&!this[_0x8c9ed8(0x19c)][_0x8c9ed8(0x196)](this[_0x8c9ed8(0x1b0)])&&this[_0x8c9ed8(0x19c)][_0x8c9ed8(0x1b1)](this[_0x8c9ed8(0x1b0)],0x0),requestAnimationFrame(()=>{const _0xe0418e=_0x8c9ed8;this[_0xe0418e(0x1b8)]=!0x1;});}[_0x4ad7a3(0x191)](_0xe5b0ef,_0x1e9c7d){const _0x26a446=_0x4ad7a3;this[_0x26a446(0x1a1)][_0x26a446(0x191)](_0xe5b0ef,_0x1e9c7d);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ddbbf=_0x16ae;(function(_0x2e1675,_0x5c135f){const _0x2d9f27=_0x16ae,_0x16ddb9=_0x2e1675();while(!![]){try{const _0x20a813=parseInt(_0x2d9f27(0xb0))/0x1+parseInt(_0x2d9f27(0xb2))/0x2*(-parseInt(_0x2d9f27(0xa2))/0x3)+parseInt(_0x2d9f27(0xab))/0x4*(parseInt(_0x2d9f27(0xb8))/0x5)+parseInt(_0x2d9f27(0xb6))/0x6+parseInt(_0x2d9f27(0xbd))/0x7+-parseInt(_0x2d9f27(0xc5))/0x8*(-parseInt(_0x2d9f27(0xb1))/0x9)+-parseInt(_0x2d9f27(0xbe))/0xa;if(_0x20a813===_0x5c135f)break;else _0x16ddb9['push'](_0x16ddb9['shift']());}catch(_0x3a324f){_0x16ddb9['push'](_0x16ddb9['shift']());}}}(_0x560e,0x7628a));import{HighlightedTextView as _0x175cd2,IconView as _0x3a0b27,ListItemView as _0x276cc2}from'ckeditor5/src/ui.js';function _0x16ae(_0x24d357,_0x1522c4){const _0x560eb1=_0x560e();return _0x16ae=function(_0x16aedb,_0x451dad){_0x16aedb=_0x16aedb-0xa0;let _0x2b5616=_0x560eb1[_0x16aedb];return _0x2b5616;},_0x16ae(_0x24d357,_0x1522c4);}import{escapeRegExp as _0x568ce1}from'es-toolkit/compat';import{AIContextItemType as _0x1e3335}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x324fd8,IconCheck as _0x5d4310,IconDocument as _0x45ae3b,IconDocumentOutline as _0x2027e5,IconLink as _0x2e6704}from'@ckeditor/ckeditor5-icons';const Jr=_0x3ddbbf(0xc2),Kr=_0x3ddbbf(0xb7),Mr=_0x3ddbbf(0xa6),Nr=_0x3ddbbf(0xc6);function _0x560e(){const _0xa620b8=['text','isInContext','DOCUMENT','_updateIcon','6248228DMPngi','10260410AKAmIS','highlightText','_createTitleView','FILE','ck-ai-chat-resources__item','div','ck-hidden','8bdpmpY','ck-ai-chat-resources__item__icon','trim','_titleView','_iconView','extendTemplate','type','execute','label','459BqQjxX','TEXT','updateResourceState','getResourceIcon','ck-ai-chat-resources__item-title','content','_setupTemplate','setTemplate','isVisible','40HTPkIn','span','URL','bindTemplate','_createIconView','633942TdMUXk','2488257QNThug','7702kFmZpE','resource','set','render','151038gLRvbJ','ck-ai-chat-resources__item--in-context','135515FHBYpI'];_0x560e=function(){return _0xa620b8;};return _0x560e();}export class AIChatResourceListItemView extends _0x276cc2{[_0x3ddbbf(0xb3)];[_0x3ddbbf(0xc8)];[_0x3ddbbf(0xc9)];constructor(_0x424c0e,_0x40c779){const _0x2ee34b=_0x3ddbbf;super(_0x424c0e),this[_0x2ee34b(0xb3)]=_0x40c779,this[_0x2ee34b(0xb4)](_0x2ee34b(0xba),!!_0x40c779[_0x2ee34b(0xba)]),this[_0x2ee34b(0xc8)]=this[_0x2ee34b(0xc0)](),this[_0x2ee34b(0xc9)]=this[_0x2ee34b(0xaf)](),this[_0x2ee34b(0xa8)]();}[_0x3ddbbf(0xb5)](){const _0x2f55ce=_0x3ddbbf;super[_0x2f55ce(0xb5)]();}[_0x3ddbbf(0xa5)](_0x1671f6){const _0x15bc2f=_0x3ddbbf;if(_0x1671f6[_0x15bc2f(0xba)])return _0x5d4310;switch(_0x1671f6[_0x15bc2f(0xcb)]){case _0x1e3335[_0x15bc2f(0xbb)]:return _0x45ae3b;case _0x1e3335[_0x15bc2f(0xad)]:return _0x2e6704;case _0x1e3335[_0x15bc2f(0xc1)]:case _0x1e3335[_0x15bc2f(0xa3)]:return _0x324fd8;default:return _0x2027e5;}}[_0x3ddbbf(0xbf)](_0x2da378){const _0x586e5c=_0x3ddbbf;if(!_0x2da378||''===_0x2da378[_0x586e5c(0xc7)]())return void this[_0x586e5c(0xc8)][_0x586e5c(0xbf)](null);const _0x504ddf=new RegExp(_0x568ce1(_0x2da378),'gi');this[_0x586e5c(0xc8)][_0x586e5c(0xbf)](_0x504ddf);}[_0x3ddbbf(0xa4)](_0x45f381){const _0xbe0af8=_0x3ddbbf;this[_0xbe0af8(0xb3)][_0xbe0af8(0xba)]=_0x45f381,this[_0xbe0af8(0xba)]=_0x45f381,this[_0xbe0af8(0xbc)]();}[_0x3ddbbf(0xc0)](){const _0x2dabdb=_0x3ddbbf,_0x2333ff=new _0x175cd2();return _0x2333ff[_0x2dabdb(0xb9)]=this[_0x2dabdb(0xb3)][_0x2dabdb(0xa1)],_0x2333ff[_0x2dabdb(0xca)]({'tag':_0x2dabdb(0xac),'attributes':{'class':[Mr]}}),_0x2333ff;}[_0x3ddbbf(0xaf)](){const _0x47b14d=_0x3ddbbf,_0x5c3e96=new _0x3a0b27();return _0x5c3e96[_0x47b14d(0xa7)]=this[_0x47b14d(0xa5)](this[_0x47b14d(0xb3)]),_0x5c3e96;}[_0x3ddbbf(0xa8)](){const _0x1cb02a=_0x3ddbbf,_0x2eb580=this[_0x1cb02a(0xae)];this[_0x1cb02a(0xa9)]({'tag':_0x1cb02a(0xc3),'attributes':{'class':[Jr,_0x2eb580['if'](_0x1cb02a(0xaa),_0x1cb02a(0xc4),_0x5591eb=>!_0x5591eb),_0x2eb580['if'](_0x1cb02a(0xba),Kr)]},'children':[{'tag':_0x1cb02a(0xc3),'attributes':{'class':[Nr]},'children':[this[_0x1cb02a(0xc9)]]},this[_0x1cb02a(0xc8)]],'on':{'click':_0x2eb580['to'](_0x1cb02a(0xa0))}});}[_0x3ddbbf(0xbc)](){const _0x1af440=_0x3ddbbf;this[_0x1af440(0xc9)][_0x1af440(0xa7)]=this[_0x1af440(0xa5)](this[_0x1af440(0xb3)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x13138d=_0x1917;function _0x1917(_0xb2ba97,_0x379eb9){const _0x529ca4=_0x529c();return _0x1917=function(_0x191737,_0x5bda36){_0x191737=_0x191737-0x98;let _0x238fab=_0x529ca4[_0x191737];return _0x238fab;},_0x1917(_0xb2ba97,_0x379eb9);}(function(_0x3da971,_0x33fa93){const _0x16c511=_0x1917,_0x157112=_0x3da971();while(!![]){try{const _0x2358d7=-parseInt(_0x16c511(0xb0))/0x1+-parseInt(_0x16c511(0xcf))/0x2*(parseInt(_0x16c511(0xd4))/0x3)+parseInt(_0x16c511(0xd1))/0x4*(-parseInt(_0x16c511(0xbb))/0x5)+parseInt(_0x16c511(0xac))/0x6+-parseInt(_0x16c511(0xa3))/0x7+parseInt(_0x16c511(0xc2))/0x8*(parseInt(_0x16c511(0xcb))/0x9)+parseInt(_0x16c511(0xcd))/0xa*(parseInt(_0x16c511(0xb6))/0xb);if(_0x2358d7===_0x33fa93)break;else _0x157112['push'](_0x157112['shift']());}catch(_0x413689){_0x157112['push'](_0x157112['shift']());}}}(_0x529c,0x3b137));function _0x529c(){const _0x55cb00=['isAnyResourceBalloonVisible','onBalloonClosed','81ScPSNQ','destroy','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','populateSourceResourceBalloon','_setupSingleResourceBalloonClickOutsideHandler','isVisible','_sourceResourceBalloons','getTargetElement','execute','_createBackButton','_config','onResourceSelected','show','213570frVDeU','resource','set','closeSourceResourceBalloon','addResourceToContext','once','ck-ai-chat-context-controls__source-balloon-panel','ck-button-icon\x20ck-button-back','children','605964ivwDOI','onBackToContext','delete','get','10528feiHSl','extendTemplate','showSourceResourcesBalloon','loadSourceResources','getLimiterElement','content','2660614CJwkHK','_bodyCollection','source','values','_createBalloonHeader','739190OfwIUv','add','label','searchInputVisibleFrom','element','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','clear','147464VEiyNH','updateResourceState','_createSourceResourceBalloonPanel','onLoadSourceResources','_addSourceResourceContent','_createBalloonResourcesView','_getResourcesViewFromBalloon','_locale','pin','9YWYBQV','change:isLoading','40iVsWPS','setResources','26696BkRUDQ','hide','12EYbIUS'];_0x529c=function(){return _0x55cb00;};return _0x529c();}import{BalloonPanelView as _0x141d2a,ButtonView as _0x559218,clickOutsideHandler as _0x2c253a,FormHeaderView as _0x470538}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x66f9c8}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x56bf7c}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x3eea45}from'./aichatcontextresourcesview.js';const Bc=_0x13138d(0xa9),_c=_0x13138d(0xaa),mc=_0x13138d(0xc0);export class AIChatResourcesBalloonView{[_0x13138d(0x9c)]=new Map();[_0x13138d(0xb7)];[_0x13138d(0xc9)];[_0x13138d(0xa0)];constructor(_0x5c4681,_0x144680,_0x17ddef){const _0x557d9f=_0x13138d;this[_0x557d9f(0xc9)]=_0x5c4681,this[_0x557d9f(0xb7)]=_0x144680,this[_0x557d9f(0xa0)]=_0x17ddef;}[_0x13138d(0xb2)]({source:_0x122728,withBackButton:_0x4ba573}){const _0x4fa21b=_0x13138d;let _0x5a1405=this[_0x4fa21b(0x9c)][_0x4fa21b(0xaf)](_0x122728['id']);_0x5a1405||(_0x5a1405=this[_0x4fa21b(0xc4)](),this[_0x4fa21b(0x9c)][_0x4fa21b(0xa5)](_0x122728['id'],_0x5a1405),this[_0x4fa21b(0x9a)](_0x5a1405)),this[_0x4fa21b(0xc6)]({'balloonPanel':_0x5a1405,'source':_0x122728,'withBackButton':_0x4ba573}),_0x5a1405[_0x4fa21b(0xa2)]();const _0x7e02c8=this[_0x4fa21b(0xa0)][_0x4fa21b(0x9d)]();_0x7e02c8&&_0x5a1405[_0x4fa21b(0xca)]({'target':_0x7e02c8,'limiter':this[_0x4fa21b(0xa0)][_0x4fa21b(0xb4)]()});}[_0x13138d(0x99)](_0x2818e2,_0x316fce,_0x17e74b){const _0x2d80d3=_0x13138d,_0x552728=this[_0x2d80d3(0x9c)][_0x2d80d3(0xaf)](_0x2818e2);if(!_0x552728)return;const _0xbec13b=this[_0x2d80d3(0xc8)](_0x552728);_0xbec13b&&(_0xbec13b[_0x2d80d3(0xce)](_0x316fce,_0x17e74b),_0xbec13b[_0x2d80d3(0xa8)](_0x2d80d3(0xcc),()=>{const _0x1b29d5=_0x2d80d3;_0x552728[_0x1b29d5(0xca)]({'target':this[_0x1b29d5(0xa0)][_0x1b29d5(0x9d)](),'limiter':this[_0x1b29d5(0xa0)][_0x1b29d5(0xb4)]()});}));}[_0x13138d(0xa6)](_0x37ba7a){const _0x16013e=_0x13138d,_0xcb78fb=this[_0x16013e(0x9c)][_0x16013e(0xaf)](_0x37ba7a);_0xcb78fb&&requestAnimationFrame(()=>{const _0x3e32d8=_0x16013e;_0xcb78fb[_0x3e32d8(0xd0)](),this[_0x3e32d8(0x9c)][_0x3e32d8(0xae)](_0x37ba7a),this[_0x3e32d8(0xa0)][_0x3e32d8(0xd3)]();});}[_0x13138d(0xd2)](){const _0x212394=_0x13138d;for(const _0x4fd4bc of this[_0x212394(0x9c)][_0x212394(0xb9)]())if(_0x4fd4bc[_0x212394(0x9b)])return!0x0;return!0x1;}[_0x13138d(0xc3)](_0x27ee3a,_0x2bc053,_0x52f300){const _0x2acb0c=_0x13138d,_0x2ed12e=this[_0x2acb0c(0x9c)][_0x2acb0c(0xaf)](_0x27ee3a);if(!_0x2ed12e||!_0x2ed12e[_0x2acb0c(0x9b)])return;const _0x164d0c=this[_0x2acb0c(0xa0)][_0x2acb0c(0x9d)]();if(!_0x164d0c)return;_0x2ed12e[_0x2acb0c(0xca)]({'target':_0x164d0c,'limiter':this[_0x2acb0c(0xa0)][_0x2acb0c(0xb4)]()});const _0x59b459=this[_0x2acb0c(0xc8)](_0x2ed12e);_0x59b459&&_0x59b459[_0x2acb0c(0xc3)](_0x2bc053,_0x52f300);}[_0x13138d(0xd5)](){const _0xb7ec34=_0x13138d;for(const _0x3d3984 of this[_0xb7ec34(0x9c)][_0xb7ec34(0xb9)]())_0x3d3984[_0xb7ec34(0xd5)]();this[_0xb7ec34(0x9c)][_0xb7ec34(0xc1)]();}[_0x13138d(0xc4)](){const _0x582a64=_0x13138d,_0x3f2412=new _0x141d2a(this[_0x582a64(0xc9)]);return _0x3f2412[_0x582a64(0xb1)]({'attributes':{'class':Bc}}),this[_0x582a64(0xb7)][_0x582a64(0xbc)](_0x3f2412),_0x3f2412;}[_0x13138d(0xc6)]({balloonPanel:_0x1fd5d2,source:_0x2794c4,withBackButton:_0x56569d}){const _0x35837b=_0x13138d;_0x1fd5d2[_0x35837b(0xb5)][_0x35837b(0xc1)]();const _0x44dd31=this[_0x35837b(0xba)]({'balloonPanel':_0x1fd5d2,'source':_0x2794c4,'withBackButton':_0x56569d});_0x1fd5d2[_0x35837b(0xb5)][_0x35837b(0xbc)](_0x44dd31);const _0x5492ce=this[_0x35837b(0xc7)](_0x2794c4);_0x1fd5d2[_0x35837b(0xb5)][_0x35837b(0xbc)](_0x5492ce);}[_0x13138d(0xba)]({balloonPanel:_0x785d75,source:_0x359c0e,withBackButton:_0x266d3f}){const _0x5cd2e9=_0x13138d,_0x163df6=new _0x470538(this[_0x5cd2e9(0xc9)],{'label':_0x359c0e[_0x5cd2e9(0xbd)],'class':mc});return _0x266d3f&&_0x163df6[_0x5cd2e9(0xab)][_0x5cd2e9(0xbc)](this[_0x5cd2e9(0x9f)](_0x785d75),0x0),_0x163df6;}[_0x13138d(0x9f)](_0x428ade){const _0x1e433a=_0x13138d,_0x299d0e=new _0x559218(this[_0x1e433a(0xc9)]);return _0x299d0e[_0x1e433a(0xa5)]({'icon':_0x66f9c8,'tooltip':_0x56bf7c(this[_0x1e433a(0xc9)],_0x1e433a(0x98)),'tooltipPosition':'n','class':_c}),_0x299d0e['on'](_0x1e433a(0x9e),()=>{const _0x9fee7e=_0x1e433a;_0x428ade[_0x9fee7e(0xd0)](),this[_0x9fee7e(0xa0)][_0x9fee7e(0xad)]();}),_0x299d0e;}[_0x13138d(0xc7)](_0x283bcc){const _0x24c619=_0x13138d,_0x2cfa02=new _0x3eea45(this[_0x24c619(0xc9)],{'source':_0x283bcc,'searchInputVisibleFrom':this[_0x24c619(0xa0)][_0x24c619(0xbe)]});return _0x2cfa02['on'](_0x24c619(0xb3),(_0x53f7b1,_0x13b6ae)=>{const _0x31deab=_0x24c619;this[_0x31deab(0xa0)][_0x31deab(0xc5)](_0x13b6ae);}),_0x2cfa02['on'](_0x24c619(0xa7),(_0x4eefe4,_0x3f60d1)=>{const _0x3830aa=_0x24c619;this[_0x3830aa(0xa0)][_0x3830aa(0xa1)](_0x3f60d1[_0x3830aa(0xb8)],_0x3f60d1[_0x3830aa(0xa4)]),this[_0x3830aa(0xa6)](_0x283bcc['id']);}),_0x2cfa02;}[_0x13138d(0xc8)](_0x2aa10c){const _0x398f33=_0x13138d,_0x338bee=_0x2aa10c[_0x398f33(0xb5)][_0x398f33(0xaf)](0x1);return _0x338bee instanceof _0x3eea45?_0x338bee:null;}[_0x13138d(0x9a)](_0x12870e){const _0x82c853=_0x13138d;_0x2c253a({'emitter':_0x12870e,'contextElements':[_0x12870e[_0x82c853(0xbf)]],'callback':()=>{const _0x36790a=_0x82c853;_0x12870e[_0x36790a(0xd0)](),this[_0x36790a(0xa0)][_0x36790a(0xd3)]();},'activator':()=>_0x12870e[_0x82c853(0x9b)]});}}
|