@ckeditor/ckeditor5-ai 47.7.5-alpha.0 → 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 _0x4a22ca=_0x13cd;(function(_0x23e75d,_0x2df4e8){const _0x3a1b52=_0x13cd,_0x375734=_0x23e75d();while(!![]){try{const _0x3743b7=parseInt(_0x3a1b52(0x1ff))/0x1*(-parseInt(_0x3a1b52(0x23a))/0x2)+parseInt(_0x3a1b52(0x214))/0x3*(parseInt(_0x3a1b52(0x1b1))/0x4)+-parseInt(_0x3a1b52(0x234))/0x5+parseInt(_0x3a1b52(0x22b))/0x6+-parseInt(_0x3a1b52(0x209))/0x7+parseInt(_0x3a1b52(0x1c4))/0x8+parseInt(_0x3a1b52(0x1e6))/0x9;if(_0x3743b7===_0x2df4e8)break;else _0x375734['push'](_0x375734['shift']());}catch(_0x202d2a){_0x375734['push'](_0x375734['shift']());}}}(_0x3bd2,0x36beb));import{BalloonPanelView as _0x39381f,ButtonView as _0x1242df,clickOutsideHandler as _0x3e17bd,FileDialogButtonView as _0x128ebe,IconView as _0x1a723d,View as _0x1b8fce}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x32bf20,IconDocument as _0x264981,IconDocumentOutline as _0x16a989,IconDropdownArrow as _0x304388,IconLink as _0x1a77ea,IconPaperClip as _0x586e26}from'@ckeditor/ckeditor5-icons';function _0x13cd(_0xe864d,_0xde6cd7){const _0x3bd28e=_0x3bd2();return _0x13cd=function(_0x13cd73,_0x2ca566){_0x13cd73=_0x13cd73-0x1ac;let _0x117c8c=_0x3bd28e[_0x13cd73];return _0x117c8c;},_0x13cd(_0xe864d,_0xde6cd7);}import{AIChatContextItemButtonView as _0x437d2a}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x28b039}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0xe75392}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0xd65d29}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x17598}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x4a22ca(0x1c6),_0x4a22ca(0x1fa),_0x4a22ca(0x1c8),_0x4a22ca(0x1e2),_0x4a22ca(0x21c),_0x4a22ca(0x1d9),_0x4a22ca(0x205)];function _0x3bd2(){const _0x51d3c0=['southArrowNorth','remove','_urlInputView','_handleAddContextButtonClick','icon','current','861550rhtEdB','_removeContextFromCollection','setContainerElement','tooltip','closeSourceResourceBalloon','add','214gTajGI','isReadOnly','ck-reset_all-excluded','hideUrlBalloonPanel','_currentContextsChips','extendTemplate','ck-ai-chat-controls-button','_createArrowView','isOn','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','northArrowSouthWest','isAnyResourceBalloonVisible','body','7660OWgcJy','_createBalloonButton','isHidden','clearConversationContextItems','_setBalloonPanelContent','_setupAddContextBalloonClickOutsideHandler','_handleUrlSubmit','_bindEventHandlers','label','children','northArrowSouthEast','submitUrl','length','_setupTemplate','bodyCollection','document','set','ck-ai-chat-context-controls__add-context-button','ck-ai-chat','2759400iEmPMR','_createContextButton','addDocumentToContext','element','addUrlToContext','setConversationContext','AI_CHAT_CONTEXT_FILE_LABEL','ck-ai-chat-context-controls__show-more-balloon-panel','searchInputVisibleFrom','balloonView','ck-ai-chat-context-controls__pending-contexts','find','updateResourceState','showAddContextBalloonPanel','_overflowManager','conversation','setAddContextOptions','buttonView','execute','ck-ai-chat-context-controls__url-balloon-panel','done','loadSourceResources','get','defaultPositions','removeContextItemChip','_resourcesBalloonView','_urlBalloonPanelView','bind','files','addContextButtonView','addResourceToContext','ck-ai-chat-context-controls__add-context-balloon-panel','render','_showSourceResourcesBalloon','1358172CtDUCl','pin','destroy','show','locale','showSourceResourcesBalloon','isVisible','clearCurrentContextItems','urls','AI_CHAT_CONTEXT_URL_LABEL','AI_CHAT_CONTEXT_ADD_CONTEXT','_getLimiterElement','menuitem','populateSourceResourceBalloon','clear','showUrlBalloonPanel','customItems','setTemplate','_addContextToCollection','_setupUrlBalloonClickOutsideHandler','addFileToContext','div','enabled','__arrow','arrowView','3539PvlDhr','isEnabled','_conversationContextsChips','setContextItemLoading','hide','_setupAllBalloonClickOutsideHandlers','executeCustomItemCallback','_addContextBalloonConfig','focus','_createAddContextBalloonPanelView','702002TraVar','_createResourcesBalloonView','refreshBalloon','reorganizeChips','hideAddContextBalloonPanel','source','_addContextBalloonPanelView','_createBaseBalloonPanel','ck-ai-chat-controls_context_show-more-button','_setAddContextButtonEnabled','fire','36JcGfvu','overflowChips','type','addContextItem','ck-ai-chat-context-controls__balloon-button','northArrowSouth','ck-ai-chat-context-chips-wrapper-balloon','_hasExactlyOneSource','removeContextItem','ck-ai-chat-context-controls','sources','content','closest','cancel','isLoading','ck-ai-chat-context-controls__balloon-button-source','southArrowNorthWest','_createUrlBalloonPanelView','_addUrlContent','createCollection','_createAddContextButtonView','_toggleAddContextBalloon','southArrowNorthEast','2140146OEnskM','customItem','withBackButton'];_0x3bd2=function(){return _0x51d3c0;};return _0x3bd2();}const Po=_0x4a22ca(0x21d),Ro=_0x4a22ca(0x1ce),So=_0x4a22ca(0x1e3),Oo=_0x4a22ca(0x1c2),Uo=_0x4a22ca(0x1d7),Lo=_0x4a22ca(0x218),No=_0x4a22ca(0x223),bo=_0x4a22ca(0x240),Mo=_0x4a22ca(0x21a),go=_0x4a22ca(0x211),jo=_0x4a22ca(0x1cb),Ho=_0x4a22ca(0x1c3),Fo=[_0x39381f[_0x4a22ca(0x1db)][_0x4a22ca(0x1ae)],_0x39381f[_0x4a22ca(0x1db)][_0x4a22ca(0x219)],_0x39381f[_0x4a22ca(0x1db)][_0x4a22ca(0x1bb)],_0x39381f[_0x4a22ca(0x1db)][_0x4a22ca(0x224)],_0x39381f[_0x4a22ca(0x1db)][_0x4a22ca(0x22e)],_0x39381f[_0x4a22ca(0x1db)][_0x4a22ca(0x22a)]];export class AIChatContextPanelView extends _0x1b8fce{[_0x4a22ca(0x1e1)];[_0x4a22ca(0x23e)]=this[_0x4a22ca(0x227)]();[_0x4a22ca(0x201)]=this[_0x4a22ca(0x227)]();[_0x4a22ca(0x1d2)];[_0x4a22ca(0x20f)];[_0x4a22ca(0x1de)];[_0x4a22ca(0x230)];[_0x4a22ca(0x1dd)];[_0x4a22ca(0x206)];[_0x4a22ca(0x21b)]=!0x1;[_0x4a22ca(0x1bf)];constructor(_0x91976c,_0x6597d3){const _0x173a68=_0x4a22ca;super(_0x91976c),this[_0x173a68(0x1bf)]=_0x6597d3[_0x173a68(0x1bf)],this[_0x173a68(0x23e)]=this[_0x173a68(0x227)](),this[_0x173a68(0x201)]=this[_0x173a68(0x227)](),this[_0x173a68(0x1e1)]=this[_0x173a68(0x228)](_0x91976c),this[_0x173a68(0x20f)]=this[_0x173a68(0x208)](_0x91976c),this[_0x173a68(0x1de)]=this[_0x173a68(0x225)](_0x91976c),this[_0x173a68(0x1dd)]=this[_0x173a68(0x20a)](_0x91976c,_0x6597d3);const _0x4f460c={'cssClasses':{'showMoreButton':go,'showMoreBalloon':jo,'overflowContainer':Mo,'controlsButton':bo}};this[_0x173a68(0x1d2)]=new _0xe75392(_0x91976c,this[_0x173a68(0x23e)],_0x4f460c,this[_0x173a68(0x1bf)],this),this[_0x173a68(0x206)]={'buttonView':this[_0x173a68(0x1e1)],'balloonView':this[_0x173a68(0x20f)],'hideMethod':this[_0x173a68(0x20d)][_0x173a68(0x1df)](this),'showMethod':this[_0x173a68(0x1d1)][_0x173a68(0x1df)](this)},this[_0x173a68(0x1be)](),this[_0x173a68(0x1b8)]();}[_0x4a22ca(0x1e4)](){const _0x599554=_0x4a22ca;super[_0x599554(0x1e4)](),this[_0x599554(0x204)](),this[_0x599554(0x1d2)][_0x599554(0x236)](this[_0x599554(0x1c7)]),this[_0x599554(0x1d2)][_0x599554(0x20c)]();}[_0x4a22ca(0x1e8)](){const _0x22aa2d=_0x4a22ca;super[_0x22aa2d(0x1e8)](),this[_0x22aa2d(0x1d2)][_0x22aa2d(0x1e8)](),this[_0x22aa2d(0x1dd)][_0x22aa2d(0x1e8)]();}[_0x4a22ca(0x217)](_0x25a958,_0x38d9bd){const _0x56f490=_0x4a22ca,_0x5e63d4=this[_0x56f490(0x1c5)](_0x25a958,_0x56f490(0x233),!0x0,_0x38d9bd);this[_0x56f490(0x1f8)](_0x5e63d4,this[_0x56f490(0x23e)]),this[_0x56f490(0x1d2)][_0x56f490(0x20c)]();}[_0x4a22ca(0x21c)](_0x247833){const _0x411598=_0x4a22ca;this[_0x411598(0x235)](_0x247833,this[_0x411598(0x23e)]),this[_0x411598(0x235)](_0x247833,this[_0x411598(0x1d2)][_0x411598(0x215)]),this[_0x411598(0x1d2)][_0x411598(0x20c)]();}[_0x4a22ca(0x202)](_0x5d8429,_0xbff15c){const _0x46d6c6=_0x4a22ca;let _0x509b4f=this[_0x46d6c6(0x23e)][_0x46d6c6(0x1cf)](_0x10c9b6=>_0x10c9b6['id']===_0x5d8429);_0x509b4f||(_0x509b4f=this[_0x46d6c6(0x1d2)][_0x46d6c6(0x215)][_0x46d6c6(0x1cf)](_0x467bcc=>_0x467bcc['id']===_0x5d8429)),_0x509b4f&&(_0x509b4f[_0x46d6c6(0x222)]=_0xbff15c);}[_0x4a22ca(0x1c9)](_0x1ba5e7){const _0x415203=_0x4a22ca;this[_0x415203(0x201)][_0x415203(0x1f4)]();for(const _0x4d6a2f of _0x1ba5e7){const _0x221fb8=this[_0x415203(0x1c5)](_0x4d6a2f,_0x415203(0x1d3),!0x1,!0x1);this[_0x415203(0x1f8)](_0x221fb8,this[_0x415203(0x201)]);}}[_0x4a22ca(0x1ed)](){const _0x4492ff=_0x4a22ca;this[_0x4492ff(0x23e)][_0x4492ff(0x1f4)](),this[_0x4492ff(0x1d2)][_0x4492ff(0x1f4)]();}[_0x4a22ca(0x1b4)](){const _0x414911=_0x4a22ca;this[_0x414911(0x201)][_0x414911(0x1f4)]();}[_0x4a22ca(0x1d0)](_0x5b2149,_0x2e75d6,_0x269d0d){const _0x288299=_0x4a22ca;this[_0x288299(0x1dd)][_0x288299(0x1d0)](_0x5b2149,_0x2e75d6,_0x269d0d);}[_0x4a22ca(0x20d)](){const _0x397f73=_0x4a22ca;this[_0x397f73(0x229)](!0x1);}[_0x4a22ca(0x1d1)](){const _0x52a7cb=_0x4a22ca;this[_0x52a7cb(0x229)](!0x0);}[_0x4a22ca(0x23d)](){const _0x559413=_0x4a22ca;this[_0x559413(0x1de)][_0x559413(0x203)](),this[_0x559413(0x1e1)][_0x559413(0x1ac)]=!0x1,this[_0x559413(0x230)]&&this[_0x559413(0x230)][_0x559413(0x1f4)]();}[_0x4a22ca(0x1f5)](){const _0x57df70=_0x4a22ca;this[_0x57df70(0x1de)][_0x57df70(0x1e9)](),this[_0x57df70(0x1e1)][_0x57df70(0x1ac)]=!0x0;}[_0x4a22ca(0x1e5)]({source:_0x2ecf3b,withBackButton:_0xce398a}){const _0x522f30=_0x4a22ca;this[_0x522f30(0x1dd)][_0x522f30(0x1eb)]({'source':_0x2ecf3b,'withBackButton':_0xce398a}),this[_0x522f30(0x1e1)][_0x522f30(0x1ac)]=!0x0;}[_0x4a22ca(0x1f3)](_0x2d98a7,_0x557f4e,_0x28f3b8,_0x1a1d79){const _0x510ba5=_0x4a22ca;this[_0x510ba5(0x1dd)][_0x510ba5(0x1f3)](_0x2d98a7,_0x28f3b8,_0x1a1d79);}[_0x4a22ca(0x238)](_0x6204ec){const _0x3ab544=_0x4a22ca;this[_0x3ab544(0x1dd)][_0x3ab544(0x238)](_0x6204ec),this[_0x3ab544(0x1e1)][_0x3ab544(0x1ac)]=!0x1;}[_0x4a22ca(0x1d4)](_0x4e3f1f){const _0x5d07f5=_0x4a22ca;this[_0x5d07f5(0x1b5)](this[_0x5d07f5(0x20f)],this[_0x5d07f5(0x1ea)],_0x4e3f1f),this[_0x5d07f5(0x212)](_0x4e3f1f);}[_0x4a22ca(0x212)](_0x34a7eb){const _0x23197b=_0x4a22ca,_0x596efd=!_0x34a7eb[_0x23197b(0x1c0)][_0x23197b(0x1b3)]&&_0x34a7eb[_0x23197b(0x1c0)][_0x23197b(0x1fc)],_0x346b72=_0x34a7eb[_0x23197b(0x1ee)][_0x23197b(0x1fc)],_0x60581c=_0x34a7eb[_0x23197b(0x1e0)][_0x23197b(0x1fc)],_0x203068=_0x34a7eb[_0x23197b(0x21e)][_0x23197b(0x1bd)]>0x0,_0x426b59=_0x34a7eb[_0x23197b(0x1f6)]&&_0x34a7eb[_0x23197b(0x1f6)][_0x23197b(0x1bd)]>0x0;this[_0x23197b(0x1e1)][_0x23197b(0x200)]=_0x596efd||_0x346b72||_0x60581c||_0x203068||_0x426b59;}[_0x4a22ca(0x1be)](){const _0x3bfd7c=_0x4a22ca;this[_0x3bfd7c(0x1f7)]({'tag':_0x3bfd7c(0x1fb),'attributes':{'class':[Po,_0x3bfd7c(0x23c)]},'children':[{'tag':_0x3bfd7c(0x1fb),'attributes':{'class':Ro},'children':this[_0x3bfd7c(0x23e)]}]});}[_0x4a22ca(0x1b8)](){const _0x6a9708=_0x4a22ca;this[_0x6a9708(0x1e1)]['on'](_0x6a9708(0x1d6),()=>{const _0x322f2f=_0x6a9708;this[_0x322f2f(0x231)]();});}[_0x4a22ca(0x228)](_0x48e192){const _0x416f01=_0x4a22ca,_0x17109f=new _0x1242df(_0x48e192);return _0x17109f[_0x416f01(0x1c1)]({'label':_0xd65d29(_0x48e192,_0x416f01(0x1f0)),'class':bo+'\x20'+Oo,'icon':_0x586e26,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x17109f;}[_0x4a22ca(0x208)](_0x6ec73a){const _0x49da63=_0x4a22ca;return this[_0x49da63(0x210)](_0x6ec73a,So);}[_0x4a22ca(0x225)](_0x208acb){const _0x250a40=_0x4a22ca,_0x44061d=this[_0x250a40(0x210)](_0x208acb,Uo);return this[_0x250a40(0x226)](_0x44061d,_0x208acb),_0x44061d;}[_0x4a22ca(0x20a)](_0x2b4ef2,_0x392b14){const _0x5504e4=_0x4a22ca,_0x3a09b9={'searchInputVisibleFrom':_0x392b14[_0x5504e4(0x1cc)],'onBackToContext':()=>{const _0x5e05a9=_0x5504e4;this[_0x5e05a9(0x1d1)](),this[_0x5e05a9(0x20f)][_0x5e05a9(0x1e7)]({'target':this[_0x5e05a9(0x1e1)][_0x5e05a9(0x1c7)],'limiter':this[_0x5e05a9(0x1f1)](),'positions':Fo});},'onResourceSelected':(_0x381d3d,_0x29e4c8)=>{const _0x69f3d=_0x5504e4;this[_0x69f3d(0x213)](_0x69f3d(0x1e2),{'source':_0x381d3d,'resource':_0x29e4c8});},'onLoadSourceResources':_0x113514=>{const _0x5b4645=_0x5504e4;this[_0x5b4645(0x213)](_0x5b4645(0x1d9),_0x113514);},'onBalloonClosed':()=>{const _0x5726f=_0x5504e4;this[_0x5726f(0x1e1)][_0x5726f(0x1ac)]=!0x1;},'getLimiterElement':()=>this[_0x5504e4(0x1f1)](),'getTargetElement':()=>this[_0x5504e4(0x1e1)][_0x5504e4(0x1c7)]};return new _0x17598(_0x2b4ef2,_0x392b14[_0x5504e4(0x1bf)],_0x3a09b9);}[_0x4a22ca(0x1f1)](){const _0x3131b7=_0x4a22ca;return this[_0x3131b7(0x1c7)]?.[_0x3131b7(0x220)]('.'+Ho)||document[_0x3131b7(0x1b0)];}[_0x4a22ca(0x210)](_0x1f9392,_0x4b905c){const _0x5087a7=_0x4a22ca,_0x14cf2c=new _0x39381f(_0x1f9392);return _0x14cf2c[_0x5087a7(0x23f)]({'attributes':{'class':_0x4b905c}}),this[_0x5087a7(0x1bf)][_0x5087a7(0x239)](_0x14cf2c),_0x14cf2c;}[_0x4a22ca(0x1b5)](_0x1f75d6,_0x2714fc,_0x20cc99){const _0x2005ba=_0x4a22ca;if(_0x1f75d6[_0x2005ba(0x21f)][_0x2005ba(0x1f4)](),!_0x20cc99[_0x2005ba(0x1c0)][_0x2005ba(0x1b3)]&&_0x20cc99[_0x2005ba(0x1c0)][_0x2005ba(0x1fc)]){const _0x27b140=this[_0x2005ba(0x1b2)](_0x2714fc,{'label':_0xd65d29(_0x2714fc,_0x2005ba(0x1ad)),'icon':_0x264981});_0x27b140['on'](_0x2005ba(0x1d6),()=>{const _0x4d7537=_0x2005ba;this[_0x4d7537(0x213)](_0x4d7537(0x1c6)),this[_0x4d7537(0x20d)]();}),_0x1f75d6[_0x2005ba(0x21f)][_0x2005ba(0x239)](_0x27b140);}if(_0x20cc99[_0x2005ba(0x1ee)][_0x2005ba(0x1fc)]){const _0x2076a4=this[_0x2005ba(0x1b2)](_0x2714fc,{'label':_0xd65d29(_0x2714fc,_0x2005ba(0x1ef)),'icon':_0x1a77ea});_0x2076a4['on'](_0x2005ba(0x1d6),()=>{const _0x1bf0ac=_0x2005ba;this[_0x1bf0ac(0x20d)](),this[_0x1bf0ac(0x1f5)](),this[_0x1bf0ac(0x1de)][_0x1bf0ac(0x1e7)]({'target':this[_0x1bf0ac(0x1e1)][_0x1bf0ac(0x1c7)],'limiter':this[_0x1bf0ac(0x1f1)](),'positions':Fo}),this[_0x1bf0ac(0x230)][_0x1bf0ac(0x207)]();}),_0x1f75d6[_0x2005ba(0x21f)][_0x2005ba(0x239)](_0x2076a4);}if(_0x20cc99[_0x2005ba(0x1e0)][_0x2005ba(0x1fc)]){const _0x35f2e8=new _0x128ebe(_0x2714fc);_0x35f2e8[_0x2005ba(0x1c1)]({'label':_0xd65d29(_0x2714fc,_0x2005ba(0x1ca)),'icon':_0x32bf20,'withText':!0x0,'tooltip':!0x0,'class':Lo,'allowMultipleFiles':!0x0}),_0x35f2e8['on'](_0x2005ba(0x1d6),()=>{const _0xc313f2=_0x2005ba;this[_0xc313f2(0x20d)]();}),_0x35f2e8['on'](_0x2005ba(0x1d8),(_0x57c141,_0x26b21a)=>{const _0x579a3b=_0x2005ba;this[_0x579a3b(0x213)](_0x579a3b(0x1fa),_0x26b21a);}),_0x35f2e8[_0x2005ba(0x237)]=!0x0,_0x1f75d6[_0x2005ba(0x21f)][_0x2005ba(0x239)](_0x35f2e8);}for(const _0x514699 of _0x20cc99[_0x2005ba(0x21e)]){const _0x3a0ed5=this[_0x2005ba(0x1b2)](_0x2714fc,{'label':_0x514699[_0x2005ba(0x1b9)],'icon':_0x514699[_0x2005ba(0x232)]||_0x16a989,'type':_0x2005ba(0x20e)});_0x1f75d6[_0x2005ba(0x21f)][_0x2005ba(0x239)](_0x3a0ed5),_0x3a0ed5['on'](_0x2005ba(0x1d6),()=>{const _0x5715d4=_0x2005ba;this[_0x5715d4(0x20d)](),this[_0x5715d4(0x1e5)]({'source':_0x514699,'withBackButton':!this[_0x5715d4(0x21b)]});});}for(const _0x228126 of _0x20cc99[_0x2005ba(0x1f6)]||[]){const _0x3f5970=this[_0x2005ba(0x1b2)](_0x2714fc,{'label':_0x228126[_0x2005ba(0x1b9)],'icon':_0x228126[_0x2005ba(0x232)]||_0x16a989,'type':_0x2005ba(0x22c)});_0x1f75d6[_0x2005ba(0x21f)][_0x2005ba(0x239)](_0x3f5970),_0x3f5970['on'](_0x2005ba(0x1d6),()=>{const _0x8be7be=_0x2005ba;this[_0x8be7be(0x20d)](),this[_0x8be7be(0x213)](_0x8be7be(0x205),_0x228126);});}this[_0x2005ba(0x21b)]=0x1===_0x1f75d6[_0x2005ba(0x21f)][_0x2005ba(0x1bd)],this[_0x2005ba(0x230)][_0x2005ba(0x22d)]=!this[_0x2005ba(0x21b)];}[_0x4a22ca(0x226)](_0xf5e476,_0xb90f98){const _0x349ef2=_0x4a22ca;this[_0x349ef2(0x230)]=new _0x28b039(_0xb90f98),this[_0x349ef2(0x230)]['on'](_0x349ef2(0x1bc),(_0x1b5112,_0x582686)=>{const _0x3d3182=_0x349ef2;this[_0x3d3182(0x1b7)](_0x582686);}),this[_0x349ef2(0x230)]['on'](_0x349ef2(0x221),()=>{const _0x88f57f=_0x349ef2;this[_0x88f57f(0x23d)](),this[_0x88f57f(0x21b)]||(this[_0x88f57f(0x1d1)](),this[_0x88f57f(0x20f)][_0x88f57f(0x1e7)]({'target':this[_0x88f57f(0x1e1)][_0x88f57f(0x1c7)],'limiter':this[_0x88f57f(0x1f1)](),'positions':Fo}));}),this[_0x349ef2(0x230)]['on'](_0x349ef2(0x20b),()=>{const _0x489d6c=_0x349ef2;this[_0x489d6c(0x1de)][_0x489d6c(0x1ec)]&&this[_0x489d6c(0x1de)][_0x489d6c(0x1e7)]({'target':this[_0x489d6c(0x1e1)][_0x489d6c(0x1c7)],'limiter':this[_0x489d6c(0x1f1)](),'positions':Fo});}),_0xf5e476[_0x349ef2(0x21f)][_0x349ef2(0x239)](this[_0x349ef2(0x230)]);}[_0x4a22ca(0x1b2)](_0x5d0fc7,_0x8a9e5){const _0x221212=_0x4a22ca,_0xa299d6=_0x221212(0x20e)===_0x8a9e5[_0x221212(0x216)]?new SourcesBalloonButtonView(_0x5d0fc7):new _0x1242df(_0x5d0fc7);return _0xa299d6[_0x221212(0x1c1)]({'label':_0x8a9e5[_0x221212(0x1b9)],'icon':_0x8a9e5[_0x221212(0x232)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Lo}),_0xa299d6;}[_0x4a22ca(0x204)](){const _0x538e72=_0x4a22ca;this[_0x538e72(0x1b6)](),this[_0x538e72(0x1f9)]();}[_0x4a22ca(0x1f9)](){const _0x47724d=_0x4a22ca;_0x3e17bd({'emitter':this[_0x47724d(0x1de)],'contextElements':[this[_0x47724d(0x1de)][_0x47724d(0x1c7)]],'callback':()=>{const _0x30bf79=_0x47724d;this[_0x30bf79(0x23d)]();},'activator':()=>this[_0x47724d(0x1de)][_0x47724d(0x1ec)]});}[_0x4a22ca(0x229)](_0x5c0db3){const _0x3f773d=_0x4a22ca,_0x501983=this[_0x3f773d(0x206)];_0x501983[_0x3f773d(0x1d5)][_0x3f773d(0x1ac)]=_0x5c0db3,_0x5c0db3?_0x501983[_0x3f773d(0x1cd)][_0x3f773d(0x1e9)]():_0x501983[_0x3f773d(0x1cd)][_0x3f773d(0x203)]();}[_0x4a22ca(0x1b6)](){const _0x397903=_0x4a22ca,{balloonView:_0x38ccf1,buttonView:_0x4b8ad4,hideMethod:_0x58519e}=this[_0x397903(0x206)];_0x3e17bd({'emitter':_0x38ccf1,'contextElements':[_0x38ccf1[_0x397903(0x1c7)],_0x4b8ad4[_0x397903(0x1c7)]],'callback':()=>{_0x58519e();},'activator':()=>_0x4b8ad4[_0x397903(0x1ac)]&&!this[_0x397903(0x1de)][_0x397903(0x1ec)]&&!this[_0x397903(0x1dd)][_0x397903(0x1af)]()});}[_0x4a22ca(0x1c5)](_0x423541,_0x5b79f6,_0x505fbf=!0x1,_0x366626=!0x1){const _0x13001c=_0x4a22ca,_0x9e5da7=_0x13001c(0x1d3)===_0x5b79f6||!0x0===_0x423541[_0x13001c(0x23b)],_0x18db1e=new _0x437d2a(this[_0x13001c(0x1ea)],_0x423541,_0x9e5da7,_0x505fbf,_0x366626);return _0x9e5da7||_0x18db1e['on'](_0x13001c(0x1dc),()=>{const _0x40d718=_0x13001c;this[_0x40d718(0x213)](_0x40d718(0x21c),_0x18db1e['id']);}),_0x18db1e;}[_0x4a22ca(0x1f8)](_0x48914f,_0x4b17e8){const _0x491feb=_0x4a22ca;_0x4b17e8[_0x491feb(0x239)](_0x48914f,0x0);}[_0x4a22ca(0x235)](_0x36a706,_0x17b018){const _0x598420=_0x4a22ca,_0x267a8b=_0x17b018[_0x598420(0x1cf)](_0x8b3a53=>_0x8b3a53['id']===_0x36a706);_0x267a8b&&_0x17b018[_0x598420(0x22f)](_0x267a8b);}[_0x4a22ca(0x231)](){const _0x3de305=_0x4a22ca;this[_0x3de305(0x1e1)][_0x3de305(0x1ac)]?this[_0x3de305(0x20d)]():(this[_0x3de305(0x1d1)](),this[_0x3de305(0x20f)][_0x3de305(0x1e7)]({'target':this[_0x3de305(0x1e1)][_0x3de305(0x1c7)],'limiter':this[_0x3de305(0x1f1)](),'positions':Fo}),this[_0x3de305(0x21b)]&&this[_0x3de305(0x20f)][_0x3de305(0x21f)][_0x3de305(0x1da)](0x0)?.[_0x3de305(0x213)](_0x3de305(0x1d6)));}[_0x4a22ca(0x1b7)](_0x1922be){const _0x3c039a=_0x4a22ca;this[_0x3c039a(0x230)][_0x3c039a(0x1f4)](),this[_0x3c039a(0x23d)](),this[_0x3c039a(0x213)](_0x3c039a(0x1c8),_0x1922be);}}export class SourcesBalloonButtonView extends _0x1242df{[_0x4a22ca(0x1fe)];constructor(_0x272661){const _0x2c0c55=_0x4a22ca;super(_0x272661),this[_0x2c0c55(0x1c1)]({'withText':!0x0,'role':_0x2c0c55(0x1f2)}),this[_0x2c0c55(0x1fe)]=this[_0x2c0c55(0x241)](),this[_0x2c0c55(0x23f)]({'attributes':{'class':[No]}});}[_0x4a22ca(0x1e4)](){const _0x105aaf=_0x4a22ca;super[_0x105aaf(0x1e4)](),this[_0x105aaf(0x1ba)][_0x105aaf(0x239)](this[_0x105aaf(0x1fe)]);}[_0x4a22ca(0x241)](){const _0x1f1261=_0x4a22ca,_0x5b8a2c=new _0x1a723d();return _0x5b8a2c[_0x1f1261(0x21f)]=_0x304388,_0x5b8a2c[_0x1f1261(0x23f)]({'attributes':{'class':No+_0x1f1261(0x1fd)}}),_0x5b8a2c;}}
|
|
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
|
-
function
|
|
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 _0x3231f9=_0x2915;(function(_0x55f76f,_0x33284c){const _0x2ab30b=_0x2915,_0x48d272=_0x55f76f();while(!![]){try{const _0x31d551=-parseInt(_0x2ab30b(0x1f6))/0x1+parseInt(_0x2ab30b(0x23d))/0x2*(-parseInt(_0x2ab30b(0x21c))/0x3)+parseInt(_0x2ab30b(0x1e5))/0x4*(parseInt(_0x2ab30b(0x22e))/0x5)+-parseInt(_0x2ab30b(0x1ef))/0x6*(-parseInt(_0x2ab30b(0x1e6))/0x7)+-parseInt(_0x2ab30b(0x238))/0x8*(parseInt(_0x2ab30b(0x229))/0x9)+parseInt(_0x2ab30b(0x22c))/0xa+-parseInt(_0x2ab30b(0x1fa))/0xb;if(_0x31d551===_0x33284c)break;else _0x48d272['push'](_0x48d272['shift']());}catch(_0x1cd935){_0x48d272['push'](_0x48d272['shift']());}}}(_0x26ab,0x4da7c));import{Collection as _0x1d25de}from'ckeditor5/src/utils.js';import{IconAI as _0x55620b,IconBulb as _0xf7ff4c,IconWeb as _0xdd30cf}from'@ckeditor/ckeditor5-icons';function _0x26ab(){const _0x20f824=['reasoning','span','1207230LGdmmp','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','addMany','AI_CHAT_ENABLE_REASONING','AI_CHAT_DISABLE_WEB_SEARCH','bindTemplate','AI_CHAT_REASONING','45398SFasJa','toggleWebSearch','ck-ai-chat-controls__model-selection__item-name','reasoningActive','6755903lnUnyz','text','_createModelNameView','_createCommandsButton','description','listenTo','disableModelSelector','execute','div','_createWebSearchButton','webSearchActive','setModel','isEnabled','label','ck-ai-chat__prompt-capabilities','ck-button__label','ck-ai-chat-controls__model-selection','tooltip','createCollection','menuitemradio','selectModel','_getCapabilityParts','enableModelSelector','activeModelName','add','activeModelId','set','ck-ai-chat-controls__model-name','_modelSelectionDropdownItems','selector','buttonView','clear','_modelSelectionDropdown','length','165354rgOwaf','extendTemplate','enabled','AI_CHAT_CAPABILITIES_NO','bind','_createModelSelectionDropdown','setReasoning','ck-ai-chat-controls-button','ck-hidden','setTemplate','locale','name','content','18mXlrMZ','webSearch','style','5960660Jfezaf','ck-ai-chat-controls__model-selection__item-description','1283270RuuZMZ','hidden','AI_CHAT_COMMANDS','ck-ai-button-tertiary','AI_CHAT_ENABLE_WEB_SEARCH','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','toggleReasoning','_commandsButton','AI_CHAT_DISABLE_REASONING','model','84640SaDrpB','modelSelectorEnabled','_reasoningButton','ck-ai-chat-controls-button--commands','log','2qKrHNE','ck-ai-chat-controls__model-selection__item-capabilities','AI_CHAT_CAPABILITIES_YES','button','_modelNameView','setWebSearch','capabilities','_webSearchButton','isVisible','modelDisplayMode','AI_CHAT_SEARCH_WEB','4njyfGT','7jfSkMe','source','setModelList','isOn','fire','_createReasoningButton','Commands\x20are\x20not\x20implemented\x20yet.'];_0x26ab=function(){return _0x20f824;};return _0x26ab();}import{addListToDropdown as _0x7fd97f,ButtonLabelView as _0x1b3383,ButtonView as _0x3583de,createDropdown as _0x418167,IconView as _0x588ab0,UIModel as _0x2dc850,View as _0x41a30c}from'ckeditor5/src/ui.js';import{getTranslation as _0x265872}from'../../../aicore/utils/common-translations.js';function _0x2915(_0x16dcc1,_0x1d1a7c){const _0x26abaa=_0x26ab();return _0x2915=function(_0x291507,_0xe2ac9b){_0x291507=_0x291507-0x1e4;let _0x784c29=_0x26abaa[_0x291507];return _0x784c29;},_0x2915(_0x16dcc1,_0x1d1a7c);}const yo=_0x3231f9(0x208),bo=_0x3231f9(0x223),Wo=_0x3231f9(0x23b),Go=_0x3231f9(0x231),Yo=_0x3231f9(0x20a),qo=_0x3231f9(0x1f8),zo=_0x3231f9(0x22d),Jo=_0x3231f9(0x23e),Ko='n';export class AIChatPromptCapabilitiesView extends _0x41a30c{[_0x3231f9(0x244)];[_0x3231f9(0x23a)];[_0x3231f9(0x235)];[_0x3231f9(0x21a)];[_0x3231f9(0x216)];[_0x3231f9(0x241)];constructor(_0x1fa346){const _0x142c97=_0x3231f9;super(_0x1fa346),this[_0x142c97(0x214)](_0x142c97(0x204),!0x1),this[_0x142c97(0x214)](_0x142c97(0x1f9),!0x1),this[_0x142c97(0x214)](_0x142c97(0x246),_0x142c97(0x217)),this[_0x142c97(0x214)](_0x142c97(0x239),!0x0),this[_0x142c97(0x214)](_0x142c97(0x213),null),this[_0x142c97(0x214)](_0x142c97(0x211),null),this[_0x142c97(0x21a)]=this[_0x142c97(0x221)](),this[_0x142c97(0x241)]=this[_0x142c97(0x1fc)](),this[_0x142c97(0x244)]=this[_0x142c97(0x203)](),this[_0x142c97(0x23a)]=this[_0x142c97(0x1eb)](),this[_0x142c97(0x235)]=this[_0x142c97(0x1fd)](),this[_0x142c97(0x21a)][_0x142c97(0x218)][_0x142c97(0x220)](_0x142c97(0x245))['to'](this,_0x142c97(0x246),_0x4d3f05=>_0x142c97(0x217)===_0x4d3f05),this[_0x142c97(0x21a)][_0x142c97(0x218)][_0x142c97(0x220)](_0x142c97(0x20b))['to'](this,_0x142c97(0x239),_0xfff781=>_0xfff781?this[_0x142c97(0x21a)][_0x142c97(0x218)][_0x142c97(0x207)]:_0x265872(this[_0x142c97(0x226)],_0x142c97(0x1f0))),this[_0x142c97(0x21a)][_0x142c97(0x220)](_0x142c97(0x206))['to'](this,_0x142c97(0x239),_0x1810d2=>_0x1810d2),this[_0x142c97(0x244)][_0x142c97(0x220)](_0x142c97(0x1e9))['to'](this,_0x142c97(0x204),_0x3e67f8=>_0x3e67f8),this[_0x142c97(0x244)][_0x142c97(0x220)](_0x142c97(0x20b))['to'](this,_0x142c97(0x204),_0x55d786=>_0x265872(this[_0x142c97(0x226)],_0x55d786?_0x142c97(0x1f3):_0x142c97(0x232))),this[_0x142c97(0x23a)][_0x142c97(0x220)](_0x142c97(0x1e9))['to'](this,_0x142c97(0x1f9),_0x59acff=>_0x59acff),this[_0x142c97(0x23a)][_0x142c97(0x220)](_0x142c97(0x20b))['to'](this,_0x142c97(0x1f9),_0x2b018d=>_0x265872(this[_0x142c97(0x226)],_0x2b018d?_0x142c97(0x236):_0x142c97(0x1f2))),this[_0x142c97(0x225)]({'tag':_0x142c97(0x202),'attributes':{'class':[yo]},'children':[this[_0x142c97(0x21a)],this[_0x142c97(0x241)],this[_0x142c97(0x244)],this[_0x142c97(0x23a)],this[_0x142c97(0x235)]]}),this[_0x142c97(0x216)]=new _0x1d25de(),_0x7fd97f(this[_0x142c97(0x21a)],this[_0x142c97(0x216)]);}[_0x3231f9(0x1e8)](_0x8931e2,_0x389dd0){const _0x1a2a44=_0x3231f9;if(_0x389dd0)this[_0x1a2a44(0x214)](_0x1a2a44(0x246),_0x1a2a44(0x22f));else{const _0x135d67=0x1===_0x8931e2[_0x1a2a44(0x21b)];this[_0x1a2a44(0x214)](_0x1a2a44(0x246),_0x135d67?_0x1a2a44(0x227):_0x1a2a44(0x217));}if(this[_0x1a2a44(0x216)][_0x1a2a44(0x219)](),_0x8931e2?.[_0x1a2a44(0x21b)])for(const _0x292ef0 of _0x8931e2){const _0x46f5b1=new _0x2dc850({'label':_0x292ef0[_0x1a2a44(0x227)],'withText':!0x0,'role':_0x1a2a44(0x20d),'id':_0x292ef0['id'],'model':_0x292ef0});_0x46f5b1[_0x1a2a44(0x220)](_0x1a2a44(0x1e9))['to'](this,_0x1a2a44(0x213),_0x567d1c=>_0x567d1c===_0x292ef0['id']),this[_0x1a2a44(0x216)][_0x1a2a44(0x212)]({'type':_0x1a2a44(0x240),'model':_0x46f5b1,'labelView':new ModelButtonLabelView(this[_0x1a2a44(0x226)],_0x292ef0)});}}[_0x3231f9(0x242)](_0x5cd2aa){const _0x1718f2=_0x3231f9;this[_0x1718f2(0x214)](_0x1718f2(0x204),_0x5cd2aa);}[_0x3231f9(0x222)](_0x4c9520){const _0x57fa0f=_0x3231f9;this[_0x57fa0f(0x214)](_0x57fa0f(0x1f9),_0x4c9520);}[_0x3231f9(0x205)](_0x4efbad){const _0x102a19=_0x3231f9;if(!_0x4efbad)return;this[_0x102a19(0x213)]=_0x4efbad['id'],this[_0x102a19(0x211)]=_0x4efbad[_0x102a19(0x227)]||_0x4efbad['id'],this[_0x102a19(0x21a)][_0x102a19(0x218)][_0x102a19(0x214)](_0x102a19(0x207),_0x4efbad[_0x102a19(0x227)]),this[_0x102a19(0x21a)][_0x102a19(0x218)][_0x102a19(0x214)](_0x102a19(0x20b),_0x4efbad[_0x102a19(0x227)]);const _0x2260b4=_0x4efbad[_0x102a19(0x243)][_0x102a19(0x22a)]?.[_0x102a19(0x21e)]??!0x1;this[_0x102a19(0x214)](_0x102a19(0x204),!0x1),this[_0x102a19(0x244)][_0x102a19(0x214)](_0x102a19(0x1e9),!0x1),this[_0x102a19(0x244)][_0x102a19(0x214)](_0x102a19(0x206),_0x2260b4),this[_0x102a19(0x244)][_0x102a19(0x214)](_0x102a19(0x245),_0x2260b4);const _0xebf718=_0x4efbad[_0x102a19(0x243)][_0x102a19(0x1ed)]?.[_0x102a19(0x21e)]??!0x1;this[_0x102a19(0x214)](_0x102a19(0x1f9),!0x1),this[_0x102a19(0x23a)][_0x102a19(0x214)](_0x102a19(0x1e9),!0x1),this[_0x102a19(0x23a)][_0x102a19(0x214)](_0x102a19(0x206),_0xebf718),this[_0x102a19(0x23a)][_0x102a19(0x214)](_0x102a19(0x245),_0xebf718);}[_0x3231f9(0x210)](){const _0x4de104=_0x3231f9;this[_0x4de104(0x214)](_0x4de104(0x239),!0x0);}[_0x3231f9(0x200)](_0x25f8fb){const _0x46b640=_0x3231f9;this[_0x46b640(0x214)](_0x46b640(0x239),!0x1),_0x25f8fb&&this[_0x46b640(0x214)](_0x46b640(0x246),_0x46b640(0x22f));}[_0x3231f9(0x203)](){const _0xd48815=_0x3231f9,_0x4d9356=new _0x3583de();return _0x4d9356[_0xd48815(0x214)]({'label':_0x265872(this[_0xd48815(0x226)],_0xd48815(0x1e4)),'icon':_0xdd30cf,'class':bo,'isToggleable':!0x0,'tooltipPosition':Ko}),_0x4d9356['on'](_0xd48815(0x201),()=>{const _0x1f4eb5=_0xd48815;this[_0x1f4eb5(0x1ea)](_0x1f4eb5(0x1f7));}),_0x4d9356;}[_0x3231f9(0x1eb)](){const _0x1336bc=_0x3231f9,_0x18a92f=new _0x3583de();return _0x18a92f[_0x1336bc(0x214)]({'label':_0x265872(this[_0x1336bc(0x226)],_0x1336bc(0x1f5)),'icon':_0xf7ff4c,'class':bo,'isToggleable':!0x0,'tooltipPosition':Ko}),_0x18a92f['on'](_0x1336bc(0x201),()=>{const _0x541fc0=_0x1336bc;this[_0x541fc0(0x1ea)](_0x541fc0(0x234));}),_0x18a92f;}[_0x3231f9(0x1fd)](){const _0x440fbd=_0x3231f9,_0x4a0c47=new _0x3583de();return _0x4a0c47[_0x440fbd(0x214)]({'label':_0x265872(this[_0x440fbd(0x226)],_0x440fbd(0x230)),'icon':_0x55620b,'withText':!0x0,'class':bo,'isToggleable':!0x0,'tooltip':_0x265872(this[_0x440fbd(0x226)],_0x440fbd(0x230)),'tooltipPosition':Ko}),_0x4a0c47[_0x440fbd(0x21d)]({'attributes':{'class':[Wo]}}),_0x4a0c47['on'](_0x440fbd(0x201),()=>{const _0x495e2c=_0x440fbd;console[_0x495e2c(0x23c)](_0x495e2c(0x1ec)),alert(_0x495e2c(0x1ec));}),_0x4a0c47;}[_0x3231f9(0x221)](){const _0x3ef679=_0x3231f9,_0x40cea7=_0x418167(this[_0x3ef679(0x226)]);return _0x40cea7[_0x3ef679(0x214)]({'panelPosition':'ne','class':[Yo]}),_0x40cea7[_0x3ef679(0x218)][_0x3ef679(0x214)]({'label':_0x265872(this[_0x3ef679(0x226)],_0x3ef679(0x233)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Ko,'class':Go}),this[_0x3ef679(0x1ff)](_0x40cea7,_0x3ef679(0x201),_0x240e10=>{const _0x3326ca=_0x3ef679;this[_0x3326ca(0x1ea)](_0x3326ca(0x20e),_0x240e10[_0x3326ca(0x1e7)][_0x3326ca(0x237)]);}),_0x40cea7;}[_0x3231f9(0x1fc)](){const _0x239c7e=_0x3231f9,_0x3c41c1=new ModelNameView(this[_0x239c7e(0x226)]);return _0x3c41c1[_0x239c7e(0x220)](_0x239c7e(0x1fb))['to'](this,_0x239c7e(0x211),_0x37dde5=>_0x37dde5??''),_0x3c41c1[_0x239c7e(0x220)](_0x239c7e(0x245))['to'](this,_0x239c7e(0x246),_0xf963f6=>_0x239c7e(0x227)===_0xf963f6),_0x3c41c1;}}class ModelButtonLabelView extends _0x1b3383{constructor(_0x15bc83,_0x4f7f6e){const _0x2f949a=_0x3231f9;super();const _0x49e2a7=this[_0x2f949a(0x1f4)],_0x38edfd=this[_0x2f949a(0x20c)]();this[_0x2f949a(0x225)]({'tag':_0x2f949a(0x202),'attributes':{'class':['ck',_0x2f949a(0x209)],'style':_0x49e2a7['to'](_0x2f949a(0x22b)),'id':_0x49e2a7['to']('id')},'children':[{'tag':_0x2f949a(0x202),'attributes':{'class':[qo]},'children':[{'text':_0x49e2a7['to'](_0x2f949a(0x1fb))}]},{'tag':_0x2f949a(0x202),'attributes':{'class':[zo]},'children':[{'tag':_0x2f949a(0x1ee),'children':[{'text':_0x4f7f6e[_0x2f949a(0x1fe)]}]}]},{'tag':_0x2f949a(0x202),'attributes':{'class':[Jo]},'children':_0x38edfd}]}),_0x38edfd[_0x2f949a(0x1f1)](this[_0x2f949a(0x20f)](_0x15bc83,_0xdd30cf,_0x2f949a(0x1e4),_0x4f7f6e[_0x2f949a(0x243)][_0x2f949a(0x22a)]?.[_0x2f949a(0x21e)]??!0x1)),_0x38edfd[_0x2f949a(0x1f1)](this[_0x2f949a(0x20f)](_0x15bc83,_0xf7ff4c,_0x2f949a(0x1f5),_0x4f7f6e[_0x2f949a(0x243)][_0x2f949a(0x1ed)]?.[_0x2f949a(0x21e)]??!0x1));}[_0x3231f9(0x20f)](_0xe215ad,_0x181e8f,_0x1d892,_0x4add0f){const _0x32366b=_0x3231f9,_0x27b5a3=new _0x588ab0();_0x27b5a3[_0x32366b(0x228)]=_0x181e8f;const _0x5c6bf8=new _0x41a30c(_0xe215ad);_0x5c6bf8[_0x32366b(0x225)]({'tag':_0x32366b(0x1ee),'children':[{'text':_0x265872(_0xe215ad,_0x1d892)+':\x20'}]});const _0x4f8cf4=new _0x41a30c(_0xe215ad);return _0x4f8cf4[_0x32366b(0x225)]({'tag':_0x32366b(0x1ee),'children':[{'text':_0x265872(_0xe215ad,_0x4add0f?_0x32366b(0x23f):_0x32366b(0x21f))}]}),[_0x27b5a3,_0x5c6bf8,_0x4f8cf4];}}class ModelNameView extends _0x41a30c{constructor(_0xe050c4){const _0xa1603d=_0x3231f9;super(_0xe050c4),this[_0xa1603d(0x214)](_0xa1603d(0x1fb),void 0x0),this[_0xa1603d(0x214)](_0xa1603d(0x245),!0x0);const _0x45ae4b=this[_0xa1603d(0x1f4)];this[_0xa1603d(0x225)]({'tag':_0xa1603d(0x1ee),'attributes':{'class':['ck',_0xa1603d(0x215),_0x45ae4b['if'](_0xa1603d(0x245),_0xa1603d(0x224),_0x1f67f8=>!_0x1f67f8)]},'children':[{'text':_0x45ae4b['to'](_0xa1603d(0x1fb))}]});}}
|
|
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
|
-
function
|
|
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)]});}}
|