@ckeditor/ckeditor5-ai 47.7.0 → 47.7.1
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
|
-
|
|
23
|
+
function _0x4e40(){const _0x2e5005=['ck-button-icon\x20ck-button-back','element','esc','urlInputField','ck-labeled-field-view_empty','errorText','_createConfirmButton','AI_CHAT_CONTEXT_URL_PLACEHOLDER','submit','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','278vYNuSa','confirmButton','render','1473tzzTzY','fire','focus','add','destroy','_isValidUrl','12wTXqJu','refreshBalloon','trim','length','4xrNYhH','locale','_createUrlInputField','getValue','_updateConfirmButtonState','div','AI_CHAT_CONTEXT_URL_LABEL','73820auJCHg','focusCycler','isEnabled','18Fvrdee','set','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','549lemgRv','tab','494005GWonzf','AI_CHAT_CONTEXT_URL_INVALID_ERROR','setError','_focusables','shift+tab','_handleSubmit','ck-button-icon','submitUrl','ck-ai-chat-context-controls__url-input-section','\x20ck-hidden','_setupEventHandlers','createCollection','listenTo','fieldView','stop','forEach','keystrokes','setTemplate','_setupTemplate','_createBackButton','change:withBackButton','14577035lGSUwK','189251yggxTf','1391551ERGVtZ','ck-ai-chat-context-controls__url-form','backButton','clear','focusTracker','form','AI_CHAT_CONTEXT_URL_ADD_URL','1449208kYSjBk','input','_setupKeystrokes','children','withBackButton','clearError','execute','value','cancel'];_0x4e40=function(){return _0x2e5005;};return _0x4e40();}const _0x1f260b=_0x9b8c;(function(_0x47c561,_0x3af42b){const _0x415378=_0x9b8c,_0x37a183=_0x47c561();while(!![]){try{const _0x1cb941=parseInt(_0x415378(0x10f))/0x1+-parseInt(_0x415378(0x12b))/0x2*(parseInt(_0x415378(0x12e))/0x3)+parseInt(_0x415378(0xea))/0x4*(parseInt(_0x415378(0xf9))/0x5)+-parseInt(_0x415378(0xf4))/0x6*(parseInt(_0x415378(0x110))/0x7)+-parseInt(_0x415378(0x117))/0x8+parseInt(_0x415378(0xf7))/0x9*(-parseInt(_0x415378(0xf1))/0xa)+parseInt(_0x415378(0x10e))/0xb*(parseInt(_0x415378(0xe6))/0xc);if(_0x1cb941===_0x3af42b)break;else _0x37a183['push'](_0x37a183['shift']());}catch(_0x4891f1){_0x37a183['push'](_0x37a183['shift']());}}}(_0x4e40,0x4d6e4));import{FocusTracker as _0x52c050,KeystrokeHandler as _0x3b2c42}from'ckeditor5/src/utils.js';import{ButtonView as _0x3be205,FocusCycler as _0x4efe2e,LabeledFieldView as _0x37812a,View as _0x3dc6d0,FormHeaderView as _0x40d74f,createLabeledInputText as _0x33214d,submitHandler as _0x138961}from'ckeditor5/src/ui.js';import{IconCheck as _0x550a6a,IconPreviousArrow as _0x19f249}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x5cb506}from'../../../aicore/utils/common-translations.js';function _0x9b8c(_0x588a67,_0x485cff){const _0x4e40b1=_0x4e40();return _0x9b8c=function(_0x9b8cd0,_0x2c3cf7){_0x9b8cd0=_0x9b8cd0-0xe5;let _0x337f70=_0x4e40b1[_0x9b8cd0];return _0x337f70;},_0x9b8c(_0x588a67,_0x485cff);}const oh=_0x1f260b(0x111),ch=_0x1f260b(0x101);export class AIChatContextPanelUrlInputView extends _0x3dc6d0{[_0x1f260b(0x114)];[_0x1f260b(0x109)];[_0x1f260b(0xfc)];[_0x1f260b(0xf2)];[_0x1f260b(0x123)];[_0x1f260b(0x112)];[_0x1f260b(0x12c)];constructor(_0x1c3c43){const _0x2a1b9e=_0x1f260b;super(_0x1c3c43),this[_0x2a1b9e(0x114)]=new _0x52c050(),this[_0x2a1b9e(0x109)]=new _0x3b2c42(),this[_0x2a1b9e(0x112)]=this[_0x2a1b9e(0x10c)](),this[_0x2a1b9e(0x123)]=this[_0x2a1b9e(0xec)](),this[_0x2a1b9e(0x12c)]=this[_0x2a1b9e(0x126)](),this[_0x2a1b9e(0xfc)]=this[_0x2a1b9e(0x104)]([this[_0x2a1b9e(0x112)],this[_0x2a1b9e(0x123)],this[_0x2a1b9e(0x12c)]]),this[_0x2a1b9e(0xf2)]=new _0x4efe2e({'focusables':this[_0x2a1b9e(0xfc)],'focusTracker':this[_0x2a1b9e(0x114)],'keystrokeHandler':this[_0x2a1b9e(0x109)],'actions':{'focusPrevious':_0x2a1b9e(0xfd),'focusNext':_0x2a1b9e(0xf8)}}),this[_0x2a1b9e(0xf5)](_0x2a1b9e(0x11b),!0x0),this[_0x2a1b9e(0x10b)](),this[_0x2a1b9e(0x103)](),this[_0x2a1b9e(0x119)]();}[_0x1f260b(0x12d)](){const _0x3e480b=_0x1f260b;super[_0x3e480b(0x12d)](),this[_0x3e480b(0xfc)][_0x3e480b(0x108)](_0x4a997a=>{const _0x25a9f5=_0x3e480b;this[_0x25a9f5(0x114)][_0x25a9f5(0x131)](_0x4a997a[_0x25a9f5(0x121)]),this[_0x25a9f5(0x109)][_0x25a9f5(0x105)](_0x4a997a[_0x25a9f5(0x121)]);}),_0x138961({'view':this}),this[_0x3e480b(0x130)]();}[_0x1f260b(0x132)](){const _0x3fd147=_0x1f260b;super[_0x3fd147(0x132)](),this[_0x3fd147(0x114)][_0x3fd147(0x132)](),this[_0x3fd147(0x109)][_0x3fd147(0x132)]();}[_0x1f260b(0x130)](){const _0x3a6483=_0x1f260b;this[_0x3a6483(0x123)][_0x3a6483(0x130)]();}[_0x1f260b(0xed)](){const _0x506f87=_0x1f260b;return this[_0x506f87(0x123)][_0x506f87(0x106)][_0x506f87(0x121)]?.[_0x506f87(0x11e)]?.[_0x506f87(0xe8)]()||'';}[_0x1f260b(0x113)](){const _0x4b62a0=_0x1f260b;this[_0x4b62a0(0x123)][_0x4b62a0(0x106)][_0x4b62a0(0x121)][_0x4b62a0(0x11e)]='',this[_0x4b62a0(0x123)][_0x4b62a0(0x125)]=null,this[_0x4b62a0(0x12c)][_0x4b62a0(0xf3)]=!0x1;}[_0x1f260b(0xfb)](_0x5eebce){const _0x114080=_0x1f260b;this[_0x114080(0x123)][_0x114080(0x125)]=_0x5eebce,this[_0x114080(0xee)](),this[_0x114080(0x12f)](_0x114080(0xe7));}[_0x1f260b(0x11c)](){const _0x3aa5ab=_0x1f260b;this[_0x3aa5ab(0x123)][_0x3aa5ab(0x125)]=null,this[_0x3aa5ab(0xee)]();}[_0x1f260b(0x10c)](){const _0xa824bb=_0x1f260b,_0x4e696d=new _0x3be205(this[_0xa824bb(0xeb)]);return _0x4e696d[_0xa824bb(0xf5)]({'icon':_0x19f249,'tooltip':_0x5cb506(this[_0xa824bb(0xeb)],_0xa824bb(0x129)),'tooltipPosition':'n','class':[_0xa824bb(0x120)]}),this['on'](_0xa824bb(0x10d),(_0x49a4ef,_0x3a8b00,_0x372bb9)=>{const _0x9466be=_0xa824bb;_0x4e696d[_0x9466be(0xf5)]({'class':[_0x9466be(0x120)+(_0x372bb9?'':_0x9466be(0x102))]});}),_0x4e696d;}[_0x1f260b(0xec)](){const _0x63991a=_0x1f260b,_0x2a25c6=new _0x37812a(this[_0x63991a(0xeb)],_0x33214d);return _0x2a25c6[_0x63991a(0xf5)]({'label':_0x5cb506(this[_0x63991a(0xeb)],_0x63991a(0xf0)),'class':_0x63991a(0x124)}),_0x2a25c6[_0x63991a(0x106)][_0x63991a(0xf5)]({'placeholder':_0x5cb506(this[_0x63991a(0xeb)],_0x63991a(0x127))}),_0x2a25c6;}[_0x1f260b(0x126)](){const _0x2b2f74=_0x1f260b,_0x25e744=new _0x3be205(this[_0x2b2f74(0xeb)]);return _0x25e744[_0x2b2f74(0xf5)]({'icon':_0x550a6a,'tooltip':_0x5cb506(this[_0x2b2f74(0xeb)],_0x2b2f74(0x116)),'tooltipPosition':'n','class':_0x2b2f74(0xff),'type':_0x2b2f74(0x128),'isEnabled':!0x1}),_0x25e744;}[_0x1f260b(0x10b)](){const _0x7aeda=_0x1f260b,_0xc4a71=new _0x40d74f(this[_0x7aeda(0xeb)],{'label':_0x5cb506(this[_0x7aeda(0xeb)],_0x7aeda(0x116)),'class':_0x7aeda(0x12a)});_0xc4a71[_0x7aeda(0x11a)][_0x7aeda(0x131)](this[_0x7aeda(0x112)],0x0),this[_0x7aeda(0x10a)]({'tag':_0x7aeda(0x115),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0xc4a71,{'tag':_0x7aeda(0xef),'attributes':{'class':ch},'children':[this[_0x7aeda(0x123)],this[_0x7aeda(0x12c)]]}]});}[_0x1f260b(0x103)](){const _0x49cb0a=_0x1f260b;this[_0x49cb0a(0x112)]['on'](_0x49cb0a(0x11d),()=>{const _0x19fee3=_0x49cb0a;this[_0x19fee3(0x113)](),this[_0x19fee3(0x12f)](_0x19fee3(0x11f));}),this[_0x49cb0a(0x123)][_0x49cb0a(0x106)]['on'](_0x49cb0a(0x118),()=>{const _0x442348=_0x49cb0a;this[_0x442348(0x11c)](),this[_0x442348(0xee)](),this[_0x442348(0x12f)](_0x442348(0xe7));}),this['on'](_0x49cb0a(0x128),_0x35147a=>{const _0x3cac13=_0x49cb0a;_0x35147a[_0x3cac13(0x107)](),this[_0x3cac13(0xfe)]();});}[_0x1f260b(0x119)](){const _0x5a8f0b=_0x1f260b;this[_0x5a8f0b(0x109)][_0x5a8f0b(0xf5)](_0x5a8f0b(0x122),(_0x23286d,_0x1731e4)=>{const _0x373d0d=_0x5a8f0b;this[_0x373d0d(0x113)](),this[_0x373d0d(0x12f)](_0x373d0d(0x11f)),_0x1731e4();});}[_0x1f260b(0xfe)](){const _0x140c78=_0x1f260b,_0x16f07c=this[_0x140c78(0xed)]()[_0x140c78(0xe8)]();_0x16f07c?this[_0x140c78(0xe5)](_0x16f07c)?(this[_0x140c78(0x11c)](),this[_0x140c78(0x12f)](_0x140c78(0x100),_0x16f07c)):this[_0x140c78(0xfb)](_0x5cb506(this[_0x140c78(0xeb)],_0x140c78(0xfa))):this[_0x140c78(0xfb)](_0x5cb506(this[_0x140c78(0xeb)],_0x140c78(0xf6)));}[_0x1f260b(0xee)](){const _0x215856=_0x1f260b,_0x23ccbf=this[_0x215856(0xed)]()[_0x215856(0xe8)](),_0x1cc19d=!!this[_0x215856(0x123)][_0x215856(0x125)];this[_0x215856(0x12c)][_0x215856(0xf3)]=_0x23ccbf[_0x215856(0xe9)]>0x0&&!_0x1cc19d;}[_0x1f260b(0xe5)](_0x20da34){try{return!!new URL(_0x20da34);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x58ecfd=_0x350b;(function(_0xf88e86,_0x34cdce){const _0x2954f6=_0x350b,_0x3a9e15=_0xf88e86();while(!![]){try{const _0x7e0f0=-parseInt(_0x2954f6(0x27e))/0x1+parseInt(_0x2954f6(0x200))/0x2+parseInt(_0x2954f6(0x208))/0x3*(parseInt(_0x2954f6(0x207))/0x4)+-parseInt(_0x2954f6(0x260))/0x5*(-parseInt(_0x2954f6(0x26d))/0x6)+-parseInt(_0x2954f6(0x211))/0x7+parseInt(_0x2954f6(0x206))/0x8*(parseInt(_0x2954f6(0x240))/0x9)+-parseInt(_0x2954f6(0x257))/0xa;if(_0x7e0f0===_0x34cdce)break;else _0x3a9e15['push'](_0x3a9e15['shift']());}catch(_0x58c5cf){_0x3a9e15['push'](_0x3a9e15['shift']());}}}(_0x1541,0x44545));import{BalloonPanelView as _0x74dd,ButtonView as _0x65baa0,clickOutsideHandler as _0x5cb7f1,FileDialogButtonView as _0xf4da95,IconView as _0x555624,View as _0x367ad0}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0xd8be8f,IconDocument as _0xd137c6,IconDocumentOutline as _0x111980,IconDropdownArrow as _0x5e52bf,IconLink as _0x42b062,IconPaperClip as _0xa2853}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x4cbc4a}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x135a62}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x5caa0e}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x8be458}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x2802c9}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x58ecfd(0x24e),_0x58ecfd(0x26c),_0x58ecfd(0x242),_0x58ecfd(0x1ea),_0x58ecfd(0x248),_0x58ecfd(0x1eb),_0x58ecfd(0x25c)];function _0x1541(){const _0x3dec04=['content','closeSourceResourceBalloon','_createUrlBalloonPanelView','addContextItem','hideAddContextBalloonPanel','_currentContextsChips','_urlInputView','element','locale','customItem','get','overflowChips','ck-ai-chat','createCollection','conversation','submitUrl','_resourcesBalloonView','2957697qiVDXf','find','addUrlToContext','set','show','_setupAddContextBalloonClickOutsideHandler','isHidden','execute','removeContextItem','menuitem','div','clear','southArrowNorthEast','_createResourcesBalloonView','addDocumentToContext','bind','ck-ai-chat-context-controls__pending-contexts','_setBalloonPanelContent','hideUrlBalloonPanel','northArrowSouthEast','focus','cancel','buttonView','5920890aJUSpu','populateSourceResourceBalloon','_setAddContextButtonEnabled','refreshBalloon','_createBalloonButton','executeCustomItemCallback','setAddContextOptions','remove','setContainerElement','1605ByLeka','setConversationContext','document','bodyCollection','ck-ai-chat-context-controls__balloon-button','ck-ai-chat-context-controls','add','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','balloonView','_createContextButton','southArrowNorth','body','addFileToContext','1698mCarNq','isAnyResourceBalloonVisible','_conversationContextsChips','_toggleAddContextBalloon','_setupAllBalloonClickOutsideHandlers','_setupTemplate','ck-ai-chat-controls-button','closest','_urlBalloonPanelView','ck-ai-chat-context-chips-wrapper-balloon','current','clearCurrentContextItems','hide','_addContextToCollection','showUrlBalloonPanel','removeContextItemChip','_addContextBalloonConfig','94140pYByOf','_createBaseBalloonPanel','_getLimiterElement','addResourceToContext','loadSourceResources','reorganizeChips','showSourceResourcesBalloon','setContextItemLoading','_handleAddContextButtonClick','_createArrowView','isEnabled','__arrow','source','defaultPositions','setTemplate','customItems','addContextButtonView','icon','northArrowSouth','updateResourceState','type','_hasExactlyOneSource','ck-ai-chat-context-controls__balloon-button-source','label','isOn','621944PXiDzD','arrowView','isLoading','destroy','ck-ai-chat-controls_context_show-more-button','_overflowManager','8VuDGpw','31412fAoQBR','186ActnSx','withBackButton','_createAddContextBalloonPanelView','ck-ai-chat-context-controls__url-balloon-panel','isReadOnly','urls','_setupUrlBalloonClickOutsideHandler','pin','_removeContextFromCollection','1758596YPjltS','clearConversationContextItems','_handleUrlSubmit','northArrowSouthWest','southArrowNorthWest','files','showAddContextBalloonPanel','_showSourceResourcesBalloon','AI_CHAT_CONTEXT_URL_LABEL','children','sources','fire','_addContextBalloonPanelView','render','done','_createAddContextButtonView','ck-ai-chat-context-controls__add-context-balloon-panel','_addUrlContent','extendTemplate','ck-reset_all-excluded','ck-ai-chat-context-controls__show-more-balloon-panel','searchInputVisibleFrom','AI_CHAT_CONTEXT_ADD_CONTEXT','AI_CHAT_CONTEXT_FILE_LABEL','_bindEventHandlers','isVisible','ck-ai-chat-context-controls__add-context-button','tooltip','length','enabled'];_0x1541=function(){return _0x3dec04;};return _0x1541();}function _0x350b(_0x3c2fe4,_0x5e6b91){const _0x15416a=_0x1541();return _0x350b=function(_0x350b5d,_0x539844){_0x350b5d=_0x350b5d-0x1e8;let _0x8eebe=_0x15416a[_0x350b5d];return _0x8eebe;},_0x350b(_0x3c2fe4,_0x5e6b91);}const Uo=_0x58ecfd(0x265),Lo=_0x58ecfd(0x250),No=_0x58ecfd(0x221),Mo=_0x58ecfd(0x22b),Ho=_0x58ecfd(0x20b),jo=_0x58ecfd(0x264),Fo=_0x58ecfd(0x1fd),Xo=_0x58ecfd(0x273),Do=_0x58ecfd(0x276),$o=_0x58ecfd(0x204),Wo=_0x58ecfd(0x225),qo=_0x58ecfd(0x23b),zo=[_0x74dd[_0x58ecfd(0x1f4)][_0x58ecfd(0x214)],_0x74dd[_0x58ecfd(0x1f4)][_0x58ecfd(0x1f9)],_0x74dd[_0x58ecfd(0x1f4)][_0x58ecfd(0x253)],_0x74dd[_0x58ecfd(0x1f4)][_0x58ecfd(0x215)],_0x74dd[_0x58ecfd(0x1f4)][_0x58ecfd(0x26a)],_0x74dd[_0x58ecfd(0x1f4)][_0x58ecfd(0x24c)]];export class AIChatContextPanelView extends _0x367ad0{[_0x58ecfd(0x1f7)];[_0x58ecfd(0x234)]=this[_0x58ecfd(0x23c)]();[_0x58ecfd(0x26f)]=this[_0x58ecfd(0x23c)]();[_0x58ecfd(0x205)];[_0x58ecfd(0x21d)];[_0x58ecfd(0x275)];[_0x58ecfd(0x235)];[_0x58ecfd(0x23f)];[_0x58ecfd(0x27d)];[_0x58ecfd(0x1fc)]=!0x1;[_0x58ecfd(0x263)];constructor(_0x20d8dd,_0xe185a0){const _0x2d95f3=_0x58ecfd;super(_0x20d8dd),this[_0x2d95f3(0x263)]=_0xe185a0[_0x2d95f3(0x263)],this[_0x2d95f3(0x234)]=this[_0x2d95f3(0x23c)](),this[_0x2d95f3(0x26f)]=this[_0x2d95f3(0x23c)](),this[_0x2d95f3(0x1f7)]=this[_0x2d95f3(0x220)](_0x20d8dd),this[_0x2d95f3(0x21d)]=this[_0x2d95f3(0x20a)](_0x20d8dd),this[_0x2d95f3(0x275)]=this[_0x2d95f3(0x231)](_0x20d8dd),this[_0x2d95f3(0x23f)]=this[_0x2d95f3(0x24d)](_0x20d8dd,_0xe185a0);const _0x533751={'cssClasses':{'showMoreButton':$o,'showMoreBalloon':Wo,'overflowContainer':Do,'controlsButton':Xo}};this[_0x2d95f3(0x205)]=new _0x5caa0e(_0x20d8dd,this[_0x2d95f3(0x234)],_0x533751,this[_0x2d95f3(0x263)],this),this[_0x2d95f3(0x27d)]={'buttonView':this[_0x2d95f3(0x1f7)],'balloonView':this[_0x2d95f3(0x21d)],'hideMethod':this[_0x2d95f3(0x233)][_0x2d95f3(0x24f)](this),'showMethod':this[_0x2d95f3(0x217)][_0x2d95f3(0x24f)](this)},this[_0x2d95f3(0x272)](),this[_0x2d95f3(0x229)]();}[_0x58ecfd(0x21e)](){const _0x39984e=_0x58ecfd;super[_0x39984e(0x21e)](),this[_0x39984e(0x271)](),this[_0x39984e(0x205)][_0x39984e(0x25f)](this[_0x39984e(0x236)]),this[_0x39984e(0x205)][_0x39984e(0x1ec)]();}[_0x58ecfd(0x203)](){const _0xbf2f18=_0x58ecfd;super[_0xbf2f18(0x203)](),this[_0xbf2f18(0x205)][_0xbf2f18(0x203)](),this[_0xbf2f18(0x23f)][_0xbf2f18(0x203)]();}[_0x58ecfd(0x232)](_0x174450,_0x42dbe2){const _0x3dab5c=_0x58ecfd,_0xf377e4=this[_0x3dab5c(0x269)](_0x174450,_0x3dab5c(0x277),!0x0,_0x42dbe2);this[_0x3dab5c(0x27a)](_0xf377e4,this[_0x3dab5c(0x234)]),this[_0x3dab5c(0x205)][_0x3dab5c(0x1ec)]();}[_0x58ecfd(0x248)](_0x32c719){const _0x1572f5=_0x58ecfd;this[_0x1572f5(0x210)](_0x32c719,this[_0x1572f5(0x234)]),this[_0x1572f5(0x210)](_0x32c719,this[_0x1572f5(0x205)][_0x1572f5(0x23a)]),this[_0x1572f5(0x205)][_0x1572f5(0x1ec)]();}[_0x58ecfd(0x1ee)](_0x49de06,_0x2a1373){const _0x23f1a=_0x58ecfd;let _0x1b962c=this[_0x23f1a(0x234)][_0x23f1a(0x241)](_0x1da648=>_0x1da648['id']===_0x49de06);_0x1b962c||(_0x1b962c=this[_0x23f1a(0x205)][_0x23f1a(0x23a)][_0x23f1a(0x241)](_0x2027f9=>_0x2027f9['id']===_0x49de06)),_0x1b962c&&(_0x1b962c[_0x23f1a(0x202)]=_0x2a1373);}[_0x58ecfd(0x261)](_0x4dd718){const _0xe3058=_0x58ecfd;this[_0xe3058(0x26f)][_0xe3058(0x24b)]();for(const _0x1738a9 of _0x4dd718){const _0x3e5603=this[_0xe3058(0x269)](_0x1738a9,_0xe3058(0x23d),!0x1,!0x1);this[_0xe3058(0x27a)](_0x3e5603,this[_0xe3058(0x26f)]);}}[_0x58ecfd(0x278)](){const _0x58d705=_0x58ecfd;this[_0x58d705(0x234)][_0x58d705(0x24b)](),this[_0x58d705(0x205)][_0x58d705(0x24b)]();}[_0x58ecfd(0x212)](){const _0x3b5c3f=_0x58ecfd;this[_0x3b5c3f(0x26f)][_0x3b5c3f(0x24b)]();}[_0x58ecfd(0x1fa)](_0x425ada,_0xee8b31,_0x37d84a){const _0x5e5551=_0x58ecfd;this[_0x5e5551(0x23f)][_0x5e5551(0x1fa)](_0x425ada,_0xee8b31,_0x37d84a);}[_0x58ecfd(0x233)](){const _0x576fb7=_0x58ecfd;this[_0x576fb7(0x270)](!0x1);}[_0x58ecfd(0x217)](){const _0x375c63=_0x58ecfd;this[_0x375c63(0x270)](!0x0);}[_0x58ecfd(0x252)](){const _0x3bad78=_0x58ecfd;this[_0x3bad78(0x275)][_0x3bad78(0x279)](),this[_0x3bad78(0x1f7)][_0x3bad78(0x1ff)]=!0x1,this[_0x3bad78(0x235)]&&this[_0x3bad78(0x235)][_0x3bad78(0x24b)]();}[_0x58ecfd(0x27b)](){const _0x1d5590=_0x58ecfd;this[_0x1d5590(0x275)][_0x1d5590(0x244)](),this[_0x1d5590(0x1f7)][_0x1d5590(0x1ff)]=!0x0;}[_0x58ecfd(0x218)]({source:_0x52170c,withBackButton:_0x1b455e}){const _0x382a34=_0x58ecfd;this[_0x382a34(0x23f)][_0x382a34(0x1ed)]({'source':_0x52170c,'withBackButton':_0x1b455e}),this[_0x382a34(0x1f7)][_0x382a34(0x1ff)]=!0x0;}[_0x58ecfd(0x258)](_0x237730,_0x118775,_0x112a8a,_0x2e8923){const _0x94cd0b=_0x58ecfd;this[_0x94cd0b(0x23f)][_0x94cd0b(0x258)](_0x237730,_0x112a8a,_0x2e8923);}[_0x58ecfd(0x230)](_0xca2523){const _0x595546=_0x58ecfd;this[_0x595546(0x23f)][_0x595546(0x230)](_0xca2523),this[_0x595546(0x1f7)][_0x595546(0x1ff)]=!0x1;}[_0x58ecfd(0x25d)](_0x3af4e1){const _0x422813=_0x58ecfd;this[_0x422813(0x251)](this[_0x422813(0x21d)],this[_0x422813(0x237)],_0x3af4e1),this[_0x422813(0x259)](_0x3af4e1);}[_0x58ecfd(0x259)](_0x925e80){const _0xaa27ba=_0x58ecfd,_0x1415c2=!_0x925e80[_0xaa27ba(0x262)][_0xaa27ba(0x246)]&&_0x925e80[_0xaa27ba(0x262)][_0xaa27ba(0x22e)],_0x1a6d95=_0x925e80[_0xaa27ba(0x20d)][_0xaa27ba(0x22e)],_0x4d9817=_0x925e80[_0xaa27ba(0x216)][_0xaa27ba(0x22e)],_0x17548e=_0x925e80[_0xaa27ba(0x21b)][_0xaa27ba(0x22d)]>0x0,_0x44ebdf=_0x925e80[_0xaa27ba(0x1f6)]&&_0x925e80[_0xaa27ba(0x1f6)][_0xaa27ba(0x22d)]>0x0;this[_0xaa27ba(0x1f7)][_0xaa27ba(0x1f1)]=_0x1415c2||_0x1a6d95||_0x4d9817||_0x17548e||_0x44ebdf;}[_0x58ecfd(0x272)](){const _0x198c05=_0x58ecfd;this[_0x198c05(0x1f5)]({'tag':_0x198c05(0x24a),'attributes':{'class':[Uo,_0x198c05(0x224)]},'children':[{'tag':_0x198c05(0x24a),'attributes':{'class':Lo},'children':this[_0x198c05(0x234)]}]});}[_0x58ecfd(0x229)](){const _0x5445d3=_0x58ecfd;this[_0x5445d3(0x1f7)]['on'](_0x5445d3(0x247),()=>{const _0x566b77=_0x5445d3;this[_0x566b77(0x1ef)]();});}[_0x58ecfd(0x220)](_0x18a5fd){const _0x41fa50=_0x58ecfd,_0x5448e7=new _0x65baa0(_0x18a5fd);return _0x5448e7[_0x41fa50(0x243)]({'label':_0x8be458(_0x18a5fd,_0x41fa50(0x227)),'class':Xo+'\x20'+Mo,'icon':_0xa2853,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x5448e7;}[_0x58ecfd(0x20a)](_0x593db7){const _0x9db34b=_0x58ecfd;return this[_0x9db34b(0x1e8)](_0x593db7,No);}[_0x58ecfd(0x231)](_0x1364ed){const _0x410aaf=_0x58ecfd,_0x59c77=this[_0x410aaf(0x1e8)](_0x1364ed,Ho);return this[_0x410aaf(0x222)](_0x59c77,_0x1364ed),_0x59c77;}[_0x58ecfd(0x24d)](_0x36914f,_0xff5556){const _0x58d769=_0x58ecfd,_0x2f3bb5={'searchInputVisibleFrom':_0xff5556[_0x58d769(0x226)],'onBackToContext':()=>{const _0x16613d=_0x58d769;this[_0x16613d(0x217)](),this[_0x16613d(0x21d)][_0x16613d(0x20f)]({'target':this[_0x16613d(0x1f7)][_0x16613d(0x236)],'limiter':this[_0x16613d(0x1e9)](),'positions':zo});},'onResourceSelected':(_0x3070bc,_0x4aaa22)=>{const _0x207965=_0x58d769;this[_0x207965(0x21c)](_0x207965(0x1ea),{'source':_0x3070bc,'resource':_0x4aaa22});},'onLoadSourceResources':_0x224aaa=>{const _0x24817c=_0x58d769;this[_0x24817c(0x21c)](_0x24817c(0x1eb),_0x224aaa);},'onBalloonClosed':()=>{const _0x315398=_0x58d769;this[_0x315398(0x1f7)][_0x315398(0x1ff)]=!0x1;},'getLimiterElement':()=>this[_0x58d769(0x1e9)](),'getTargetElement':()=>this[_0x58d769(0x1f7)][_0x58d769(0x236)]};return new _0x2802c9(_0x36914f,_0xff5556[_0x58d769(0x263)],_0x2f3bb5);}[_0x58ecfd(0x1e9)](){const _0x155ca2=_0x58ecfd;return this[_0x155ca2(0x236)]?.[_0x155ca2(0x274)]('.'+qo)||document[_0x155ca2(0x26b)];}[_0x58ecfd(0x1e8)](_0x144b97,_0x440bc0){const _0xa76e07=_0x58ecfd,_0x326b4d=new _0x74dd(_0x144b97);return _0x326b4d[_0xa76e07(0x223)]({'attributes':{'class':_0x440bc0}}),this[_0xa76e07(0x263)][_0xa76e07(0x266)](_0x326b4d),_0x326b4d;}[_0x58ecfd(0x251)](_0x22b742,_0x375348,_0x11913b){const _0xebbcd0=_0x58ecfd;if(_0x22b742[_0xebbcd0(0x22f)][_0xebbcd0(0x24b)](),!_0x11913b[_0xebbcd0(0x262)][_0xebbcd0(0x246)]&&_0x11913b[_0xebbcd0(0x262)][_0xebbcd0(0x22e)]){const _0x245f33=this[_0xebbcd0(0x25b)](_0x375348,{'label':_0x8be458(_0x375348,_0xebbcd0(0x267)),'icon':_0xd137c6});_0x245f33['on'](_0xebbcd0(0x247),()=>{const _0x392f09=_0xebbcd0;this[_0x392f09(0x21c)](_0x392f09(0x24e)),this[_0x392f09(0x233)]();}),_0x22b742[_0xebbcd0(0x22f)][_0xebbcd0(0x266)](_0x245f33);}if(_0x11913b[_0xebbcd0(0x20d)][_0xebbcd0(0x22e)]){const _0x1f3528=this[_0xebbcd0(0x25b)](_0x375348,{'label':_0x8be458(_0x375348,_0xebbcd0(0x219)),'icon':_0x42b062});_0x1f3528['on'](_0xebbcd0(0x247),()=>{const _0xb4a574=_0xebbcd0;this[_0xb4a574(0x233)](),this[_0xb4a574(0x27b)](),this[_0xb4a574(0x275)][_0xb4a574(0x20f)]({'target':this[_0xb4a574(0x1f7)][_0xb4a574(0x236)],'limiter':this[_0xb4a574(0x1e9)](),'positions':zo}),this[_0xb4a574(0x235)][_0xb4a574(0x254)]();}),_0x22b742[_0xebbcd0(0x22f)][_0xebbcd0(0x266)](_0x1f3528);}if(_0x11913b[_0xebbcd0(0x216)][_0xebbcd0(0x22e)]){const _0x5af04f=new _0xf4da95(_0x375348);_0x5af04f[_0xebbcd0(0x243)]({'label':_0x8be458(_0x375348,_0xebbcd0(0x228)),'icon':_0xd8be8f,'withText':!0x0,'tooltip':!0x0,'class':jo,'allowMultipleFiles':!0x0}),_0x5af04f['on'](_0xebbcd0(0x247),()=>{const _0x5d9978=_0xebbcd0;this[_0x5d9978(0x233)]();}),_0x5af04f['on'](_0xebbcd0(0x21f),(_0x3a4577,_0x21f4a5)=>{const _0x299c48=_0xebbcd0;this[_0x299c48(0x21c)](_0x299c48(0x26c),_0x21f4a5);}),_0x5af04f[_0xebbcd0(0x22c)]=!0x0,_0x22b742[_0xebbcd0(0x22f)][_0xebbcd0(0x266)](_0x5af04f);}for(const _0x2d62de of _0x11913b[_0xebbcd0(0x21b)]){const _0x78f5c4=this[_0xebbcd0(0x25b)](_0x375348,{'label':_0x2d62de[_0xebbcd0(0x1fe)],'icon':_0x2d62de[_0xebbcd0(0x1f8)]||_0x111980,'type':_0xebbcd0(0x1f3)});_0x22b742[_0xebbcd0(0x22f)][_0xebbcd0(0x266)](_0x78f5c4),_0x78f5c4['on'](_0xebbcd0(0x247),()=>{const _0x2fb926=_0xebbcd0;this[_0x2fb926(0x233)](),this[_0x2fb926(0x218)]({'source':_0x2d62de,'withBackButton':!this[_0x2fb926(0x1fc)]});});}for(const _0x161b3f of _0x11913b[_0xebbcd0(0x1f6)]||[]){const _0x43248d=this[_0xebbcd0(0x25b)](_0x375348,{'label':_0x161b3f[_0xebbcd0(0x1fe)],'icon':_0x161b3f[_0xebbcd0(0x1f8)]||_0x111980,'type':_0xebbcd0(0x238)});_0x22b742[_0xebbcd0(0x22f)][_0xebbcd0(0x266)](_0x43248d),_0x43248d['on'](_0xebbcd0(0x247),()=>{const _0xe971c=_0xebbcd0;this[_0xe971c(0x233)](),this[_0xe971c(0x21c)](_0xe971c(0x25c),_0x161b3f);});}this[_0xebbcd0(0x1fc)]=0x1===_0x22b742[_0xebbcd0(0x22f)][_0xebbcd0(0x22d)],this[_0xebbcd0(0x235)][_0xebbcd0(0x209)]=!this[_0xebbcd0(0x1fc)];}[_0x58ecfd(0x222)](_0x1e127f,_0xba99c7){const _0x54f876=_0x58ecfd;this[_0x54f876(0x235)]=new _0x135a62(_0xba99c7),this[_0x54f876(0x235)]['on'](_0x54f876(0x23e),(_0x31235f,_0x377d33)=>{const _0x4ceba8=_0x54f876;this[_0x4ceba8(0x213)](_0x377d33);}),this[_0x54f876(0x235)]['on'](_0x54f876(0x255),()=>{const _0xb615d0=_0x54f876;this[_0xb615d0(0x252)](),this[_0xb615d0(0x1fc)]||(this[_0xb615d0(0x217)](),this[_0xb615d0(0x21d)][_0xb615d0(0x20f)]({'target':this[_0xb615d0(0x1f7)][_0xb615d0(0x236)],'limiter':this[_0xb615d0(0x1e9)](),'positions':zo}));}),this[_0x54f876(0x235)]['on'](_0x54f876(0x25a),()=>{const _0x488423=_0x54f876;this[_0x488423(0x275)][_0x488423(0x22a)]&&this[_0x488423(0x275)][_0x488423(0x20f)]({'target':this[_0x488423(0x1f7)][_0x488423(0x236)],'limiter':this[_0x488423(0x1e9)](),'positions':zo});}),_0x1e127f[_0x54f876(0x22f)][_0x54f876(0x266)](this[_0x54f876(0x235)]);}[_0x58ecfd(0x25b)](_0xa08893,_0x48608e){const _0x4d6980=_0x58ecfd,_0x48ad85=_0x4d6980(0x1f3)===_0x48608e[_0x4d6980(0x1fb)]?new SourcesBalloonButtonView(_0xa08893):new _0x65baa0(_0xa08893);return _0x48ad85[_0x4d6980(0x243)]({'label':_0x48608e[_0x4d6980(0x1fe)],'icon':_0x48608e[_0x4d6980(0x1f8)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':jo}),_0x48ad85;}[_0x58ecfd(0x271)](){const _0x149976=_0x58ecfd;this[_0x149976(0x245)](),this[_0x149976(0x20e)]();}[_0x58ecfd(0x20e)](){const _0x37ce8a=_0x58ecfd;_0x5cb7f1({'emitter':this[_0x37ce8a(0x275)],'contextElements':[this[_0x37ce8a(0x275)][_0x37ce8a(0x236)]],'callback':()=>{const _0x15aed4=_0x37ce8a;this[_0x15aed4(0x252)]();},'activator':()=>this[_0x37ce8a(0x275)][_0x37ce8a(0x22a)]});}[_0x58ecfd(0x270)](_0x1ddab2){const _0x325bf=_0x58ecfd,_0x45ff75=this[_0x325bf(0x27d)];_0x45ff75[_0x325bf(0x256)][_0x325bf(0x1ff)]=_0x1ddab2,_0x1ddab2?_0x45ff75[_0x325bf(0x268)][_0x325bf(0x244)]():_0x45ff75[_0x325bf(0x268)][_0x325bf(0x279)]();}[_0x58ecfd(0x245)](){const _0x13a80b=_0x58ecfd,{balloonView:_0x5f3adf,buttonView:_0x1fe092,hideMethod:_0x389e7b}=this[_0x13a80b(0x27d)];_0x5cb7f1({'emitter':_0x5f3adf,'contextElements':[_0x5f3adf[_0x13a80b(0x236)],_0x1fe092[_0x13a80b(0x236)]],'callback':()=>{_0x389e7b();},'activator':()=>_0x1fe092[_0x13a80b(0x1ff)]&&!this[_0x13a80b(0x275)][_0x13a80b(0x22a)]&&!this[_0x13a80b(0x23f)][_0x13a80b(0x26e)]()});}[_0x58ecfd(0x269)](_0x1778aa,_0xe06ae1,_0x43c11d=!0x1,_0x4a4bd2=!0x1){const _0x4e8f45=_0x58ecfd,_0x41b870=_0x4e8f45(0x23d)===_0xe06ae1||!0x0===_0x1778aa[_0x4e8f45(0x20c)],_0x1dd571=new _0x4cbc4a(this[_0x4e8f45(0x237)],_0x1778aa,_0x41b870,_0x43c11d,_0x4a4bd2);return _0x41b870||_0x1dd571['on'](_0x4e8f45(0x27c),()=>{const _0x1d4e5d=_0x4e8f45;this[_0x1d4e5d(0x21c)](_0x1d4e5d(0x248),_0x1dd571['id']);}),_0x1dd571;}[_0x58ecfd(0x27a)](_0x89d0dd,_0x73a8){const _0x8346ec=_0x58ecfd;_0x73a8[_0x8346ec(0x266)](_0x89d0dd,0x0);}[_0x58ecfd(0x210)](_0x5d7918,_0x14dd4a){const _0x2cee82=_0x58ecfd,_0x10a760=_0x14dd4a[_0x2cee82(0x241)](_0x16f0ff=>_0x16f0ff['id']===_0x5d7918);_0x10a760&&_0x14dd4a[_0x2cee82(0x25e)](_0x10a760);}[_0x58ecfd(0x1ef)](){const _0x5192df=_0x58ecfd;this[_0x5192df(0x1f7)][_0x5192df(0x1ff)]?this[_0x5192df(0x233)]():(this[_0x5192df(0x217)](),this[_0x5192df(0x21d)][_0x5192df(0x20f)]({'target':this[_0x5192df(0x1f7)][_0x5192df(0x236)],'limiter':this[_0x5192df(0x1e9)](),'positions':zo}),this[_0x5192df(0x1fc)]&&this[_0x5192df(0x21d)][_0x5192df(0x22f)][_0x5192df(0x239)](0x0)?.[_0x5192df(0x21c)](_0x5192df(0x247)));}[_0x58ecfd(0x213)](_0x207604){const _0x1f81db=_0x58ecfd;this[_0x1f81db(0x235)][_0x1f81db(0x24b)](),this[_0x1f81db(0x252)](),this[_0x1f81db(0x21c)](_0x1f81db(0x242),_0x207604);}}export class SourcesBalloonButtonView extends _0x65baa0{[_0x58ecfd(0x201)];constructor(_0x34b1db){const _0x506e5a=_0x58ecfd;super(_0x34b1db),this[_0x506e5a(0x243)]({'withText':!0x0,'role':_0x506e5a(0x249)}),this[_0x506e5a(0x201)]=this[_0x506e5a(0x1f0)](),this[_0x506e5a(0x223)]({'attributes':{'class':[Fo]}});}[_0x58ecfd(0x21e)](){const _0x1790f4=_0x58ecfd;super[_0x1790f4(0x21e)](),this[_0x1790f4(0x21a)][_0x1790f4(0x266)](this[_0x1790f4(0x201)]);}[_0x58ecfd(0x1f0)](){const _0x2975b5=_0x58ecfd,_0x3b5cdf=new _0x555624();return _0x3b5cdf[_0x2975b5(0x22f)]=_0x5e52bf,_0x3b5cdf[_0x2975b5(0x223)]({'attributes':{'class':Fo+_0x2975b5(0x1f2)}}),_0x3b5cdf;}}
|
|
23
|
+
const _0x4a93c1=_0x1a92;(function(_0x3c07e2,_0x5ecde6){const _0x5cf571=_0x1a92,_0xa3dd78=_0x3c07e2();while(!![]){try{const _0x5c1933=parseInt(_0x5cf571(0x104))/0x1+-parseInt(_0x5cf571(0x118))/0x2+-parseInt(_0x5cf571(0x132))/0x3+-parseInt(_0x5cf571(0xfb))/0x4+-parseInt(_0x5cf571(0x143))/0x5+parseInt(_0x5cf571(0xe6))/0x6*(-parseInt(_0x5cf571(0x175))/0x7)+parseInt(_0x5cf571(0x121))/0x8;if(_0x5c1933===_0x5ecde6)break;else _0xa3dd78['push'](_0xa3dd78['shift']());}catch(_0x14e92b){_0xa3dd78['push'](_0xa3dd78['shift']());}}}(_0xf2ee,0x48a9d));import{BalloonPanelView as _0x2559bf,ButtonView as _0x2a06ac,clickOutsideHandler as _0x3fdfab,FileDialogButtonView as _0x2423c9,IconView as _0x4b6a74,View as _0x20e510}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x4814d4,IconDocument as _0x17165e,IconDocumentOutline as _0x261a54,IconDropdownArrow as _0x3b63e0,IconLink as _0x138361,IconPaperClip as _0x3a2a65}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x548ab2}from'./aichatcontextitembuttonview.js';function _0x1a92(_0x44a033,_0x38e409){const _0xf2ee8e=_0xf2ee();return _0x1a92=function(_0x1a920a,_0x6d9351){_0x1a920a=_0x1a920a-0xe5;let _0x7b3435=_0xf2ee8e[_0x1a920a];return _0x7b3435;},_0x1a92(_0x44a033,_0x38e409);}import{AIChatContextPanelUrlInputView as _0xe7a58a}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x125372}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x35f9ea}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x2519e8}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x4a93c1(0x177),_0x4a93c1(0xf2),_0x4a93c1(0x12c),_0x4a93c1(0x165),_0x4a93c1(0x10d),_0x4a93c1(0x154),_0x4a93c1(0x136)];function _0xf2ee(){const _0x2e19b6=['isHidden','ck-ai-chat-context-chips-wrapper-balloon','addUrlToContext','bind','setConversationContext','_createBalloonButton','setAddContextOptions','show','807090HQdqSH','add','clearCurrentContextItems','defaultPositions','executeCustomItemCallback','destroy','_handleUrlSubmit','_setAddContextButtonEnabled','setContainerElement','pin','setContextItemLoading','AI_CHAT_CONTEXT_FILE_LABEL','_setBalloonPanelContent','_removeContextFromCollection','length','northArrowSouthEast','enabled','2866020LXhiTc','ck-ai-chat','_createAddContextButtonView','label','_createArrowView','_toggleAddContextBalloon','menuitem','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','body','isEnabled','children','_currentContextsChips','ck-ai-chat-context-controls__add-context-balloon-panel','addContextButtonView','_createResourcesBalloonView','clear','conversation','loadSourceResources','removeContextItemChip','bodyCollection','_conversationContextsChips','customItems','ck-ai-chat-context-controls__balloon-button-source','set','urls','isReadOnly','refreshBalloon','arrowView','customItem','_createAddContextBalloonPanelView','northArrowSouth','_bindEventHandlers','southArrowNorth','type','addResourceToContext','ck-ai-chat-controls-button','hideAddContextBalloonPanel','isVisible','_resourcesBalloonView','southArrowNorthWest','_urlBalloonPanelView','_addContextToCollection','ck-ai-chat-context-controls','fire','hideUrlBalloonPanel','_handleAddContextButtonClick','icon','_showSourceResourcesBalloon','closeSourceResourceBalloon','addContextItem','7WobQwF','cancel','addDocumentToContext','showUrlBalloonPanel','ck-ai-chat-context-controls__pending-contexts','_addContextBalloonPanelView','868314IxEXsA','AI_CHAT_CONTEXT_ADD_CONTEXT','element','_setupUrlBalloonClickOutsideHandler','ck-ai-chat-context-controls__url-balloon-panel','createCollection','buttonView','render','ck-reset_all-excluded','_createContextButton','focus','sources','addFileToContext','_setupTemplate','_createUrlBalloonPanelView','__arrow','isAnyResourceBalloonVisible','balloonView','updateResourceState','_setupAllBalloonClickOutsideHandlers','showSourceResourcesBalloon','1605048lKuUwO','_createBaseBalloonPanel','ck-ai-chat-context-controls__add-context-button','_addContextBalloonConfig','_addUrlContent','files','overflowChips','div','setTemplate','551266rLRHcc','remove','document','ck-ai-chat-context-controls__balloon-button','isOn','ck-ai-chat-controls_context_show-more-button','ck-ai-chat-context-controls__show-more-balloon-panel','tooltip','hide','removeContextItem','_overflowManager','submitUrl','extendTemplate','northArrowSouthWest','closest','isLoading','reorganizeChips','_urlInputView','done','content','64864GYfcNF','_getLimiterElement','searchInputVisibleFrom','find','get','execute','AI_CHAT_CONTEXT_URL_LABEL','populateSourceResourceBalloon','clearConversationContextItems','9336080GfYpwU','showAddContextBalloonPanel','source','locale','withBackButton','southArrowNorthEast','_setupAddContextBalloonClickOutsideHandler','current','_hasExactlyOneSource'];_0xf2ee=function(){return _0x2e19b6;};return _0xf2ee();}const Uo=_0x4a93c1(0x16d),Lo=_0x4a93c1(0x179),No=_0x4a93c1(0x14f),Mo=_0x4a93c1(0xfd),Ho=_0x4a93c1(0xea),jo=_0x4a93c1(0x107),Fo=_0x4a93c1(0x159),Xo=_0x4a93c1(0x166),Do=_0x4a93c1(0x12b),$o=_0x4a93c1(0x109),Wo=_0x4a93c1(0x10a),qo=_0x4a93c1(0x144),zo=[_0x2559bf[_0x4a93c1(0x135)][_0x4a93c1(0x111)],_0x2559bf[_0x4a93c1(0x135)][_0x4a93c1(0x161)],_0x2559bf[_0x4a93c1(0x135)][_0x4a93c1(0x141)],_0x2559bf[_0x4a93c1(0x135)][_0x4a93c1(0x16a)],_0x2559bf[_0x4a93c1(0x135)][_0x4a93c1(0x163)],_0x2559bf[_0x4a93c1(0x135)][_0x4a93c1(0x126)]];export class AIChatContextPanelView extends _0x20e510{[_0x4a93c1(0x150)];[_0x4a93c1(0x14e)]=this[_0x4a93c1(0xeb)]();[_0x4a93c1(0x157)]=this[_0x4a93c1(0xeb)]();[_0x4a93c1(0x10e)];[_0x4a93c1(0xe5)];[_0x4a93c1(0x16b)];[_0x4a93c1(0x115)];[_0x4a93c1(0x169)];[_0x4a93c1(0xfe)];[_0x4a93c1(0x129)]=!0x1;[_0x4a93c1(0x156)];constructor(_0x2e09c6,_0x4e57d2){const _0x3d74dc=_0x4a93c1;super(_0x2e09c6),this[_0x3d74dc(0x156)]=_0x4e57d2[_0x3d74dc(0x156)],this[_0x3d74dc(0x14e)]=this[_0x3d74dc(0xeb)](),this[_0x3d74dc(0x157)]=this[_0x3d74dc(0xeb)](),this[_0x3d74dc(0x150)]=this[_0x3d74dc(0x145)](_0x2e09c6),this[_0x3d74dc(0xe5)]=this[_0x3d74dc(0x160)](_0x2e09c6),this[_0x3d74dc(0x16b)]=this[_0x3d74dc(0xf4)](_0x2e09c6),this[_0x3d74dc(0x169)]=this[_0x3d74dc(0x151)](_0x2e09c6,_0x4e57d2);const _0x4adf84={'cssClasses':{'showMoreButton':$o,'showMoreBalloon':Wo,'overflowContainer':Do,'controlsButton':Xo}};this[_0x3d74dc(0x10e)]=new _0x125372(_0x2e09c6,this[_0x3d74dc(0x14e)],_0x4adf84,this[_0x3d74dc(0x156)],this),this[_0x3d74dc(0xfe)]={'buttonView':this[_0x3d74dc(0x150)],'balloonView':this[_0x3d74dc(0xe5)],'hideMethod':this[_0x3d74dc(0x167)][_0x3d74dc(0x12d)](this),'showMethod':this[_0x3d74dc(0x122)][_0x3d74dc(0x12d)](this)},this[_0x3d74dc(0xf3)](),this[_0x3d74dc(0x162)]();}[_0x4a93c1(0xed)](){const _0x4a15e0=_0x4a93c1;super[_0x4a15e0(0xed)](),this[_0x4a15e0(0xf9)](),this[_0x4a15e0(0x10e)][_0x4a15e0(0x13a)](this[_0x4a15e0(0xe8)]),this[_0x4a15e0(0x10e)][_0x4a15e0(0x114)]();}[_0x4a93c1(0x137)](){const _0x140435=_0x4a93c1;super[_0x140435(0x137)](),this[_0x140435(0x10e)][_0x140435(0x137)](),this[_0x140435(0x169)][_0x140435(0x137)]();}[_0x4a93c1(0x174)](_0x41830d,_0x6e455d){const _0x2f8211=_0x4a93c1,_0x8eac6=this[_0x2f8211(0xef)](_0x41830d,_0x2f8211(0x128),!0x0,_0x6e455d);this[_0x2f8211(0x16c)](_0x8eac6,this[_0x2f8211(0x14e)]),this[_0x2f8211(0x10e)][_0x2f8211(0x114)]();}[_0x4a93c1(0x10d)](_0x1c2369){const _0x396aad=_0x4a93c1;this[_0x396aad(0x13f)](_0x1c2369,this[_0x396aad(0x14e)]),this[_0x396aad(0x13f)](_0x1c2369,this[_0x396aad(0x10e)][_0x396aad(0x101)]),this[_0x396aad(0x10e)][_0x396aad(0x114)]();}[_0x4a93c1(0x13c)](_0x5db16b,_0x1b0485){const _0xa9dc56=_0x4a93c1;let _0xe18b2=this[_0xa9dc56(0x14e)][_0xa9dc56(0x11b)](_0x59be=>_0x59be['id']===_0x5db16b);_0xe18b2||(_0xe18b2=this[_0xa9dc56(0x10e)][_0xa9dc56(0x101)][_0xa9dc56(0x11b)](_0x3aaeb7=>_0x3aaeb7['id']===_0x5db16b)),_0xe18b2&&(_0xe18b2[_0xa9dc56(0x113)]=_0x1b0485);}[_0x4a93c1(0x12e)](_0x571049){const _0x32ebbc=_0x4a93c1;this[_0x32ebbc(0x157)][_0x32ebbc(0x152)]();for(const _0x4ad5a9 of _0x571049){const _0x1e9fb9=this[_0x32ebbc(0xef)](_0x4ad5a9,_0x32ebbc(0x153),!0x1,!0x1);this[_0x32ebbc(0x16c)](_0x1e9fb9,this[_0x32ebbc(0x157)]);}}[_0x4a93c1(0x134)](){const _0x5b9520=_0x4a93c1;this[_0x5b9520(0x14e)][_0x5b9520(0x152)](),this[_0x5b9520(0x10e)][_0x5b9520(0x152)]();}[_0x4a93c1(0x120)](){const _0x53a32b=_0x4a93c1;this[_0x53a32b(0x157)][_0x53a32b(0x152)]();}[_0x4a93c1(0xf8)](_0x4150bc,_0x145b8d,_0x350004){const _0x1b5bfd=_0x4a93c1;this[_0x1b5bfd(0x169)][_0x1b5bfd(0xf8)](_0x4150bc,_0x145b8d,_0x350004);}[_0x4a93c1(0x167)](){const _0x31d035=_0x4a93c1;this[_0x31d035(0x148)](!0x1);}[_0x4a93c1(0x122)](){const _0x541cef=_0x4a93c1;this[_0x541cef(0x148)](!0x0);}[_0x4a93c1(0x16f)](){const _0x29652f=_0x4a93c1;this[_0x29652f(0x16b)][_0x29652f(0x10c)](),this[_0x29652f(0x150)][_0x29652f(0x108)]=!0x1,this[_0x29652f(0x115)]&&this[_0x29652f(0x115)][_0x29652f(0x152)]();}[_0x4a93c1(0x178)](){const _0x1efa7b=_0x4a93c1;this[_0x1efa7b(0x16b)][_0x1efa7b(0x131)](),this[_0x1efa7b(0x150)][_0x1efa7b(0x108)]=!0x0;}[_0x4a93c1(0x172)]({source:_0x55ee76,withBackButton:_0x5f2a34}){const _0x10b8f7=_0x4a93c1;this[_0x10b8f7(0x169)][_0x10b8f7(0xfa)]({'source':_0x55ee76,'withBackButton':_0x5f2a34}),this[_0x10b8f7(0x150)][_0x10b8f7(0x108)]=!0x0;}[_0x4a93c1(0x11f)](_0x3bd84d,_0x2fd149,_0x307b76,_0xf091d6){const _0x3129c0=_0x4a93c1;this[_0x3129c0(0x169)][_0x3129c0(0x11f)](_0x3bd84d,_0x307b76,_0xf091d6);}[_0x4a93c1(0x173)](_0xe764be){const _0x4f63c7=_0x4a93c1;this[_0x4f63c7(0x169)][_0x4f63c7(0x173)](_0xe764be),this[_0x4f63c7(0x150)][_0x4f63c7(0x108)]=!0x1;}[_0x4a93c1(0x130)](_0x50f23d){const _0x24de34=_0x4a93c1;this[_0x24de34(0x13e)](this[_0x24de34(0xe5)],this[_0x24de34(0x124)],_0x50f23d),this[_0x24de34(0x139)](_0x50f23d);}[_0x4a93c1(0x139)](_0xca69df){const _0x1c112e=_0x4a93c1,_0x1be27d=!_0xca69df[_0x1c112e(0x106)][_0x1c112e(0x12a)]&&_0xca69df[_0x1c112e(0x106)][_0x1c112e(0x142)],_0x560662=_0xca69df[_0x1c112e(0x15b)][_0x1c112e(0x142)],_0x50198c=_0xca69df[_0x1c112e(0x100)][_0x1c112e(0x142)],_0x522195=_0xca69df[_0x1c112e(0xf1)][_0x1c112e(0x140)]>0x0,_0x3dec94=_0xca69df[_0x1c112e(0x158)]&&_0xca69df[_0x1c112e(0x158)][_0x1c112e(0x140)]>0x0;this[_0x1c112e(0x150)][_0x1c112e(0x14c)]=_0x1be27d||_0x560662||_0x50198c||_0x522195||_0x3dec94;}[_0x4a93c1(0xf3)](){const _0x3c1fdd=_0x4a93c1;this[_0x3c1fdd(0x103)]({'tag':_0x3c1fdd(0x102),'attributes':{'class':[Uo,_0x3c1fdd(0xee)]},'children':[{'tag':_0x3c1fdd(0x102),'attributes':{'class':Lo},'children':this[_0x3c1fdd(0x14e)]}]});}[_0x4a93c1(0x162)](){const _0x2691fb=_0x4a93c1;this[_0x2691fb(0x150)]['on'](_0x2691fb(0x11d),()=>{const _0x294eb8=_0x2691fb;this[_0x294eb8(0x170)]();});}[_0x4a93c1(0x145)](_0x537e2d){const _0x250940=_0x4a93c1,_0x351147=new _0x2a06ac(_0x537e2d);return _0x351147[_0x250940(0x15a)]({'label':_0x35f9ea(_0x537e2d,_0x250940(0xe7)),'class':Xo+'\x20'+Mo,'icon':_0x3a2a65,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x351147;}[_0x4a93c1(0x160)](_0x143ec9){const _0x5f0905=_0x4a93c1;return this[_0x5f0905(0xfc)](_0x143ec9,No);}[_0x4a93c1(0xf4)](_0x1cc705){const _0x36236b=_0x4a93c1,_0x3a93cf=this[_0x36236b(0xfc)](_0x1cc705,Ho);return this[_0x36236b(0xff)](_0x3a93cf,_0x1cc705),_0x3a93cf;}[_0x4a93c1(0x151)](_0x5ab105,_0x146d14){const _0x2b2af7=_0x4a93c1,_0x5d52d7={'searchInputVisibleFrom':_0x146d14[_0x2b2af7(0x11a)],'onBackToContext':()=>{const _0x55e43d=_0x2b2af7;this[_0x55e43d(0x122)](),this[_0x55e43d(0xe5)][_0x55e43d(0x13b)]({'target':this[_0x55e43d(0x150)][_0x55e43d(0xe8)],'limiter':this[_0x55e43d(0x119)](),'positions':zo});},'onResourceSelected':(_0x3f50ca,_0x4bca1b)=>{const _0x40674b=_0x2b2af7;this[_0x40674b(0x16e)](_0x40674b(0x165),{'source':_0x3f50ca,'resource':_0x4bca1b});},'onLoadSourceResources':_0x1bc083=>{const _0x484934=_0x2b2af7;this[_0x484934(0x16e)](_0x484934(0x154),_0x1bc083);},'onBalloonClosed':()=>{const _0x4e777a=_0x2b2af7;this[_0x4e777a(0x150)][_0x4e777a(0x108)]=!0x1;},'getLimiterElement':()=>this[_0x2b2af7(0x119)](),'getTargetElement':()=>this[_0x2b2af7(0x150)][_0x2b2af7(0xe8)]};return new _0x2519e8(_0x5ab105,_0x146d14[_0x2b2af7(0x156)],_0x5d52d7);}[_0x4a93c1(0x119)](){const _0x1fcf12=_0x4a93c1;return this[_0x1fcf12(0xe8)]?.[_0x1fcf12(0x112)]('.'+qo)||document[_0x1fcf12(0x14b)];}[_0x4a93c1(0xfc)](_0x59d591,_0x34a007){const _0x42ee70=_0x4a93c1,_0x4df33b=new _0x2559bf(_0x59d591);return _0x4df33b[_0x42ee70(0x110)]({'attributes':{'class':_0x34a007}}),this[_0x42ee70(0x156)][_0x42ee70(0x133)](_0x4df33b),_0x4df33b;}[_0x4a93c1(0x13e)](_0x4a8c11,_0x292eed,_0x49d89b){const _0x43ff0e=_0x4a93c1;if(_0x4a8c11[_0x43ff0e(0x117)][_0x43ff0e(0x152)](),!_0x49d89b[_0x43ff0e(0x106)][_0x43ff0e(0x12a)]&&_0x49d89b[_0x43ff0e(0x106)][_0x43ff0e(0x142)]){const _0x3157e0=this[_0x43ff0e(0x12f)](_0x292eed,{'label':_0x35f9ea(_0x292eed,_0x43ff0e(0x14a)),'icon':_0x17165e});_0x3157e0['on'](_0x43ff0e(0x11d),()=>{const _0x52953e=_0x43ff0e;this[_0x52953e(0x16e)](_0x52953e(0x177)),this[_0x52953e(0x167)]();}),_0x4a8c11[_0x43ff0e(0x117)][_0x43ff0e(0x133)](_0x3157e0);}if(_0x49d89b[_0x43ff0e(0x15b)][_0x43ff0e(0x142)]){const _0x2a9905=this[_0x43ff0e(0x12f)](_0x292eed,{'label':_0x35f9ea(_0x292eed,_0x43ff0e(0x11e)),'icon':_0x138361});_0x2a9905['on'](_0x43ff0e(0x11d),()=>{const _0x38a8e5=_0x43ff0e;this[_0x38a8e5(0x167)](),this[_0x38a8e5(0x178)](),this[_0x38a8e5(0x16b)][_0x38a8e5(0x13b)]({'target':this[_0x38a8e5(0x150)][_0x38a8e5(0xe8)],'limiter':this[_0x38a8e5(0x119)](),'positions':zo}),this[_0x38a8e5(0x115)][_0x38a8e5(0xf0)]();}),_0x4a8c11[_0x43ff0e(0x117)][_0x43ff0e(0x133)](_0x2a9905);}if(_0x49d89b[_0x43ff0e(0x100)][_0x43ff0e(0x142)]){const _0x3a0d5c=new _0x2423c9(_0x292eed);_0x3a0d5c[_0x43ff0e(0x15a)]({'label':_0x35f9ea(_0x292eed,_0x43ff0e(0x13d)),'icon':_0x4814d4,'withText':!0x0,'tooltip':!0x0,'class':jo,'allowMultipleFiles':!0x0}),_0x3a0d5c['on'](_0x43ff0e(0x11d),()=>{const _0x109cce=_0x43ff0e;this[_0x109cce(0x167)]();}),_0x3a0d5c['on'](_0x43ff0e(0x116),(_0x1360f1,_0x2514b6)=>{const _0x15bf96=_0x43ff0e;this[_0x15bf96(0x16e)](_0x15bf96(0xf2),_0x2514b6);}),_0x3a0d5c[_0x43ff0e(0x10b)]=!0x0,_0x4a8c11[_0x43ff0e(0x117)][_0x43ff0e(0x133)](_0x3a0d5c);}for(const _0x1adffb of _0x49d89b[_0x43ff0e(0xf1)]){const _0x48eb11=this[_0x43ff0e(0x12f)](_0x292eed,{'label':_0x1adffb[_0x43ff0e(0x146)],'icon':_0x1adffb[_0x43ff0e(0x171)]||_0x261a54,'type':_0x43ff0e(0x123)});_0x4a8c11[_0x43ff0e(0x117)][_0x43ff0e(0x133)](_0x48eb11),_0x48eb11['on'](_0x43ff0e(0x11d),()=>{const _0x1448f8=_0x43ff0e;this[_0x1448f8(0x167)](),this[_0x1448f8(0x172)]({'source':_0x1adffb,'withBackButton':!this[_0x1448f8(0x129)]});});}for(const _0x29983c of _0x49d89b[_0x43ff0e(0x158)]||[]){const _0x557053=this[_0x43ff0e(0x12f)](_0x292eed,{'label':_0x29983c[_0x43ff0e(0x146)],'icon':_0x29983c[_0x43ff0e(0x171)]||_0x261a54,'type':_0x43ff0e(0x15f)});_0x4a8c11[_0x43ff0e(0x117)][_0x43ff0e(0x133)](_0x557053),_0x557053['on'](_0x43ff0e(0x11d),()=>{const _0x1c8944=_0x43ff0e;this[_0x1c8944(0x167)](),this[_0x1c8944(0x16e)](_0x1c8944(0x136),_0x29983c);});}this[_0x43ff0e(0x129)]=0x1===_0x4a8c11[_0x43ff0e(0x117)][_0x43ff0e(0x140)],this[_0x43ff0e(0x115)][_0x43ff0e(0x125)]=!this[_0x43ff0e(0x129)];}[_0x4a93c1(0xff)](_0x10a50f,_0x46c272){const _0x3d2e7b=_0x4a93c1;this[_0x3d2e7b(0x115)]=new _0xe7a58a(_0x46c272),this[_0x3d2e7b(0x115)]['on'](_0x3d2e7b(0x10f),(_0x33c760,_0x149f96)=>{const _0x4a3d84=_0x3d2e7b;this[_0x4a3d84(0x138)](_0x149f96);}),this[_0x3d2e7b(0x115)]['on'](_0x3d2e7b(0x176),()=>{const _0x381c93=_0x3d2e7b;this[_0x381c93(0x16f)](),this[_0x381c93(0x129)]||(this[_0x381c93(0x122)](),this[_0x381c93(0xe5)][_0x381c93(0x13b)]({'target':this[_0x381c93(0x150)][_0x381c93(0xe8)],'limiter':this[_0x381c93(0x119)](),'positions':zo}));}),this[_0x3d2e7b(0x115)]['on'](_0x3d2e7b(0x15d),()=>{const _0x5d4bf4=_0x3d2e7b;this[_0x5d4bf4(0x16b)][_0x5d4bf4(0x168)]&&this[_0x5d4bf4(0x16b)][_0x5d4bf4(0x13b)]({'target':this[_0x5d4bf4(0x150)][_0x5d4bf4(0xe8)],'limiter':this[_0x5d4bf4(0x119)](),'positions':zo});}),_0x10a50f[_0x3d2e7b(0x117)][_0x3d2e7b(0x133)](this[_0x3d2e7b(0x115)]);}[_0x4a93c1(0x12f)](_0x442ca3,_0x98df5d){const _0x201b45=_0x4a93c1,_0x45733d=_0x201b45(0x123)===_0x98df5d[_0x201b45(0x164)]?new SourcesBalloonButtonView(_0x442ca3):new _0x2a06ac(_0x442ca3);return _0x45733d[_0x201b45(0x15a)]({'label':_0x98df5d[_0x201b45(0x146)],'icon':_0x98df5d[_0x201b45(0x171)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':jo}),_0x45733d;}[_0x4a93c1(0xf9)](){const _0x56ea11=_0x4a93c1;this[_0x56ea11(0x127)](),this[_0x56ea11(0xe9)]();}[_0x4a93c1(0xe9)](){const _0x25350a=_0x4a93c1;_0x3fdfab({'emitter':this[_0x25350a(0x16b)],'contextElements':[this[_0x25350a(0x16b)][_0x25350a(0xe8)]],'callback':()=>{const _0x3ebde1=_0x25350a;this[_0x3ebde1(0x16f)]();},'activator':()=>this[_0x25350a(0x16b)][_0x25350a(0x168)]});}[_0x4a93c1(0x148)](_0x4427cc){const _0x2f3ef9=_0x4a93c1,_0x3ec034=this[_0x2f3ef9(0xfe)];_0x3ec034[_0x2f3ef9(0xec)][_0x2f3ef9(0x108)]=_0x4427cc,_0x4427cc?_0x3ec034[_0x2f3ef9(0xf7)][_0x2f3ef9(0x131)]():_0x3ec034[_0x2f3ef9(0xf7)][_0x2f3ef9(0x10c)]();}[_0x4a93c1(0x127)](){const _0x6f05d5=_0x4a93c1,{balloonView:_0x266af8,buttonView:_0x3c5ad3,hideMethod:_0x1412e9}=this[_0x6f05d5(0xfe)];_0x3fdfab({'emitter':_0x266af8,'contextElements':[_0x266af8[_0x6f05d5(0xe8)],_0x3c5ad3[_0x6f05d5(0xe8)]],'callback':()=>{_0x1412e9();},'activator':()=>_0x3c5ad3[_0x6f05d5(0x108)]&&!this[_0x6f05d5(0x16b)][_0x6f05d5(0x168)]&&!this[_0x6f05d5(0x169)][_0x6f05d5(0xf6)]()});}[_0x4a93c1(0xef)](_0x1d6275,_0x912d76,_0x42594b=!0x1,_0x4461a3=!0x1){const _0x14ad67=_0x4a93c1,_0x175601=_0x14ad67(0x153)===_0x912d76||!0x0===_0x1d6275[_0x14ad67(0x15c)],_0x16f299=new _0x548ab2(this[_0x14ad67(0x124)],_0x1d6275,_0x175601,_0x42594b,_0x4461a3);return _0x175601||_0x16f299['on'](_0x14ad67(0x155),()=>{const _0x9e9fc7=_0x14ad67;this[_0x9e9fc7(0x16e)](_0x9e9fc7(0x10d),_0x16f299['id']);}),_0x16f299;}[_0x4a93c1(0x16c)](_0x34dcd3,_0x29b1b6){const _0x3bb47c=_0x4a93c1;_0x29b1b6[_0x3bb47c(0x133)](_0x34dcd3,0x0);}[_0x4a93c1(0x13f)](_0x1b9cc4,_0x41ad2c){const _0x27afe0=_0x4a93c1,_0x394ad8=_0x41ad2c[_0x27afe0(0x11b)](_0x1af29f=>_0x1af29f['id']===_0x1b9cc4);_0x394ad8&&_0x41ad2c[_0x27afe0(0x105)](_0x394ad8);}[_0x4a93c1(0x170)](){const _0x145517=_0x4a93c1;this[_0x145517(0x150)][_0x145517(0x108)]?this[_0x145517(0x167)]():(this[_0x145517(0x122)](),this[_0x145517(0xe5)][_0x145517(0x13b)]({'target':this[_0x145517(0x150)][_0x145517(0xe8)],'limiter':this[_0x145517(0x119)](),'positions':zo}),this[_0x145517(0x129)]&&this[_0x145517(0xe5)][_0x145517(0x117)][_0x145517(0x11c)](0x0)?.[_0x145517(0x16e)](_0x145517(0x11d)));}[_0x4a93c1(0x138)](_0x47782e){const _0x5eaaa4=_0x4a93c1;this[_0x5eaaa4(0x115)][_0x5eaaa4(0x152)](),this[_0x5eaaa4(0x16f)](),this[_0x5eaaa4(0x16e)](_0x5eaaa4(0x12c),_0x47782e);}}export class SourcesBalloonButtonView extends _0x2a06ac{[_0x4a93c1(0x15e)];constructor(_0xabe8c2){const _0x1b2ae8=_0x4a93c1;super(_0xabe8c2),this[_0x1b2ae8(0x15a)]({'withText':!0x0,'role':_0x1b2ae8(0x149)}),this[_0x1b2ae8(0x15e)]=this[_0x1b2ae8(0x147)](),this[_0x1b2ae8(0x110)]({'attributes':{'class':[Fo]}});}[_0x4a93c1(0xed)](){const _0x2248ac=_0x4a93c1;super[_0x2248ac(0xed)](),this[_0x2248ac(0x14d)][_0x2248ac(0x133)](this[_0x2248ac(0x15e)]);}[_0x4a93c1(0x147)](){const _0x27bc3d=_0x4a93c1,_0x5d0f45=new _0x4b6a74();return _0x5d0f45[_0x27bc3d(0x117)]=_0x3b63e0,_0x5d0f45[_0x27bc3d(0x110)]({'attributes':{'class':Fo+_0x27bc3d(0xf5)}}),_0x5d0f45;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1628(_0x590218,_0x183946){const _0x1b1f38=_0x1b1f();return _0x1628=function(_0x162860,_0x4bf10f){_0x162860=_0x162860-0xc5;let _0x141e61=_0x1b1f38[_0x162860];return _0x141e61;},_0x1628(_0x590218,_0x183946);}const _0xd0be38=_0x1628;(function(_0x2821d9,_0x5c8ab6){const _0x394c5a=_0x1628,_0x30a5b6=_0x2821d9();while(!![]){try{const _0x3d1867=parseInt(_0x394c5a(0xd9))/0x1+parseInt(_0x394c5a(0xd0))/0x2+parseInt(_0x394c5a(0xdd))/0x3*(-parseInt(_0x394c5a(0xca))/0x4)+-parseInt(_0x394c5a(0xdf))/0x5+parseInt(_0x394c5a(0xdb))/0x6*(parseInt(_0x394c5a(0xc6))/0x7)+parseInt(_0x394c5a(0xe2))/0x8*(-parseInt(_0x394c5a(0xd1))/0x9)+parseInt(_0x394c5a(0xc5))/0xa*(parseInt(_0x394c5a(0xd8))/0xb);if(_0x3d1867===_0x5c8ab6)break;else _0x30a5b6['push'](_0x30a5b6['shift']());}catch(_0x3d65d1){_0x30a5b6['push'](_0x30a5b6['shift']());}}}(_0x1b1f,0x43a7d));function _0x1b1f(){const _0x2ea76d=['AI_CHAT_IS_WRITING','ck-ai-chat-controls-loader','setTemplate','_cancelButtonView','545872hOFTYP','9hyOAZQ','ck-ai-button-secondary\x20ck-ai-button-stop-generating','locale','ck-ai-chat-controls-loader-wrapper','set','ck-ai-chat-controls-loader-icon-dot','abortPromptStream','3839gAtocg','269308zyaznY','_createLoaderView','6XwUPzW','ck-reset_all','30ghSCGa','fire','1287025rZjrxk','div','execute','1891816UfpTND','8860MGcXSg','2513217cbFwTv','_loaderView','_createCancelButtonView','AI_CHAT_STOP_GENERATING','175796VLWtKM','ck-ai-chat-controls-loader-icon'];_0x1b1f=function(){return _0x2ea76d;};return _0x1b1f();}import{ButtonView as _0x48656e,View as _0x3d99b3}from'ckeditor5/src/ui.js';import{IconStop as _0x48477b}from'ckeditor5/src/icons.js';import{getTranslation as _0x272719}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x3d99b3{[_0xd0be38(0xcf)];[_0xd0be38(0xc7)];constructor(_0x385bf0){const _0x347962=_0xd0be38;super(_0x385bf0),this[_0x347962(0xcf)]=this[_0x347962(0xc8)](),this[_0x347962(0xc7)]=this[_0x347962(0xda)](),this[_0x347962(0xce)]({'tag':_0x347962(0xe0),'attributes':{'class':['ck',_0x347962(0xd4),_0x347962(0xdc)]},'children':[this[_0x347962(0xc7)],this[_0x347962(0xcf)]]});}[_0xd0be38(0xc8)](){const _0x15787d=_0xd0be38,_0x2b5bf5=new _0x48656e(this[_0x15787d(0xd3)]);return _0x2b5bf5[_0x15787d(0xd5)]({'label':_0x272719(this[_0x15787d(0xd3)],_0x15787d(0xc9)),'withText':!0x0,'class':_0x15787d(0xd2),'icon':_0x48477b}),_0x2b5bf5['on'](_0x15787d(0xe1),()=>{const _0x9ad444=_0x15787d;this[_0x9ad444(0xde)](_0x9ad444(0xd7));}),_0x2b5bf5;}[_0xd0be38(0xda)](){const _0x48df25=_0xd0be38,_0x5e93b3=new _0x3d99b3(this[_0x48df25(0xd3)]);return _0x5e93b3[_0x48df25(0xce)]({'tag':_0x48df25(0xe0),'attributes':{'class':[_0x48df25(0xcd)]},'children':[{'tag':_0x48df25(0xe0),'attributes':{'class':[_0x48df25(0xcb)]},'children':[{'tag':_0x48df25(0xe0),'attributes':{'class':[_0x48df25(0xd6)]}},{'tag':_0x48df25(0xe0),'attributes':{'class':[_0x48df25(0xd6)]}},{'tag':_0x48df25(0xe0),'attributes':{'class':[_0x48df25(0xd6)]}}]},{'text':_0x272719(this[_0x48df25(0xd3)],_0x48df25(0xcc))}]}),_0x5e93b3;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5cd6b7=_0x7e62;function _0x7e62(_0x1b1423,_0x1ae6b6){const _0x51d243=_0x51d2();return _0x7e62=function(_0x7e6252,_0x54cb43){_0x7e6252=_0x7e6252-0xe9;let _0x4ab9a6=_0x51d243[_0x7e6252];return _0x4ab9a6;},_0x7e62(_0x1b1423,_0x1ae6b6);}(function(_0x535cfa,_0x4a3b71){const _0x5a6a62=_0x7e62,_0x3e49d6=_0x535cfa();while(!![]){try{const _0x27b475=-parseInt(_0x5a6a62(0x116))/0x1+parseInt(_0x5a6a62(0x136))/0x2*(-parseInt(_0x5a6a62(0x11a))/0x3)+parseInt(_0x5a6a62(0x13e))/0x4+-parseInt(_0x5a6a62(0x106))/0x5*(-parseInt(_0x5a6a62(0xf9))/0x6)+parseInt(_0x5a6a62(0x102))/0x7*(parseInt(_0x5a6a62(0x13b))/0x8)+parseInt(_0x5a6a62(0x129))/0x9+-parseInt(_0x5a6a62(0x111))/0xa*(parseInt(_0x5a6a62(0x11f))/0xb);if(_0x27b475===_0x4a3b71)break;else _0x3e49d6['push'](_0x3e49d6['shift']());}catch(_0x3db497){_0x3e49d6['push'](_0x3e49d6['shift']());}}}(_0x51d2,0xe17b6));import{Collection as _0x11ff60}from'ckeditor5/src/utils.js';import{IconAI as _0x298e31,IconBulb as _0x5b4395,IconWeb as _0x470eb4}from'@ckeditor/ckeditor5-icons';function _0x51d2(){const _0x2c89e9=['AI_CHAT_CAPABILITIES_NO','isOn','menuitemradio','AI_CHAT_REASONING','execute','setWebSearch','AI_CHAT_COMMANDS','bindTemplate','ck-ai-chat-controls__model-selection__item-name','capabilities','49590TDAZlM','content','modelDisplayMode','locale','selector','reasoningActive','AI_CHAT_DISABLE_WEB_SEARCH','model','_modelSelectionDropdownItems','7KUvFvE','addMany','webSearchActive','style','860QSZfmD','ck-ai-chat__prompt-capabilities','fire','enabled','ck-button__label','text','AI_CHAT_DISABLE_REASONING','toggleWebSearch','isEnabled','button','hidden','10tGBSbV','name','_commandsButton','toggleReasoning','disableModelSelector','1523286MBNEQN','ck-ai-button-tertiary','listenTo','clear','3VZeUKv','label','bind','div','isVisible','12886940UWGUqi','AI_CHAT_SEARCH_WEB','ck-hidden','add','createCollection','AI_CHAT_CAPABILITIES_YES','_createReasoningButton','Commands\x20are\x20not\x20implemented\x20yet.','setModel','length','11121453MtDiVI','_modelSelectionDropdown','modelSelectorEnabled','_webSearchButton','span','set','activeModelName','ck-ai-chat-controls-button--commands','reasoning','_modelNameView','AI_CHAT_ENABLE_REASONING','_createModelNameView','ck-ai-chat-controls__model-selection__item-capabilities','2379286qxSpUX','setTemplate','extendTemplate','webSearch','ck-ai-chat-controls__model-name','4430616HwGbBi','ck-ai-chat-controls-button','ck-ai-chat-controls__model-selection','6387676VxVHmq','setModelList','AI_CHAT_ENABLE_WEB_SEARCH','activeModelId','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','_createCommandsButton','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','_createModelSelectionDropdown','buttonView','setReasoning','enableModelSelector','log','source','selectModel','ck-ai-chat-controls__model-selection__item-description','_getCapabilityParts','tooltip','description','_reasoningButton','_createWebSearchButton'];_0x51d2=function(){return _0x2c89e9;};return _0x51d2();}import{addListToDropdown as _0xb0556d,ButtonLabelView as _0x505566,ButtonView as _0x55cea0,createDropdown as _0x1b8e0a,IconView as _0xf95e4f,UIModel as _0x2808f2,View as _0x460f8a}from'ckeditor5/src/ui.js';import{getTranslation as _0x3caed9}from'../../../aicore/utils/common-translations.js';const Ko=_0x5cd6b7(0x107),Xo=_0x5cd6b7(0x13c),Qo=_0x5cd6b7(0x130),Zo=_0x5cd6b7(0x117),tl=_0x5cd6b7(0x13d),el=_0x5cd6b7(0xf7),il=_0x5cd6b7(0xe9),sl=_0x5cd6b7(0x135),ol='n';export class AIChatPromptCapabilitiesView extends _0x460f8a{[_0x5cd6b7(0x12c)];[_0x5cd6b7(0xed)];[_0x5cd6b7(0x113)];[_0x5cd6b7(0x12a)];[_0x5cd6b7(0x101)];[_0x5cd6b7(0x132)];constructor(_0x5098de){const _0x2b4dfd=_0x5cd6b7;super(_0x5098de),this[_0x2b4dfd(0x12e)](_0x2b4dfd(0x104),!0x1),this[_0x2b4dfd(0x12e)](_0x2b4dfd(0xfe),!0x1),this[_0x2b4dfd(0x12e)](_0x2b4dfd(0xfb),_0x2b4dfd(0xfd)),this[_0x2b4dfd(0x12e)](_0x2b4dfd(0x12b),!0x0),this[_0x2b4dfd(0x12e)](_0x2b4dfd(0x141),null),this[_0x2b4dfd(0x12e)](_0x2b4dfd(0x12f),null),this[_0x2b4dfd(0x12a)]=this[_0x2b4dfd(0x145)](),this[_0x2b4dfd(0x132)]=this[_0x2b4dfd(0x134)](),this[_0x2b4dfd(0x12c)]=this[_0x2b4dfd(0xee)](),this[_0x2b4dfd(0xed)]=this[_0x2b4dfd(0x125)](),this[_0x2b4dfd(0x113)]=this[_0x2b4dfd(0x143)](),this[_0x2b4dfd(0x12a)][_0x2b4dfd(0x146)][_0x2b4dfd(0x11c)](_0x2b4dfd(0x11e))['to'](this,_0x2b4dfd(0xfb),_0x988d72=>_0x2b4dfd(0xfd)===_0x988d72),this[_0x2b4dfd(0x12a)][_0x2b4dfd(0x146)][_0x2b4dfd(0x11c)](_0x2b4dfd(0xeb))['to'](this,_0x2b4dfd(0x12b),_0x14a420=>_0x14a420?this[_0x2b4dfd(0x12a)][_0x2b4dfd(0x146)][_0x2b4dfd(0x11b)]:_0x3caed9(this[_0x2b4dfd(0xfc)],_0x2b4dfd(0x144))),this[_0x2b4dfd(0x12a)][_0x2b4dfd(0x11c)](_0x2b4dfd(0x10e))['to'](this,_0x2b4dfd(0x12b),_0x34797f=>_0x34797f),this[_0x2b4dfd(0x12c)][_0x2b4dfd(0x11c)](_0x2b4dfd(0xf0))['to'](this,_0x2b4dfd(0x104),_0x420d38=>_0x420d38),this[_0x2b4dfd(0x12c)][_0x2b4dfd(0x11c)](_0x2b4dfd(0xeb))['to'](this,_0x2b4dfd(0x104),_0x242e2c=>_0x3caed9(this[_0x2b4dfd(0xfc)],_0x242e2c?_0x2b4dfd(0xff):_0x2b4dfd(0x140))),this[_0x2b4dfd(0xed)][_0x2b4dfd(0x11c)](_0x2b4dfd(0xf0))['to'](this,_0x2b4dfd(0xfe),_0x39498b=>_0x39498b),this[_0x2b4dfd(0xed)][_0x2b4dfd(0x11c)](_0x2b4dfd(0xeb))['to'](this,_0x2b4dfd(0xfe),_0x20395b=>_0x3caed9(this[_0x2b4dfd(0xfc)],_0x20395b?_0x2b4dfd(0x10c):_0x2b4dfd(0x133))),this[_0x2b4dfd(0x137)]({'tag':_0x2b4dfd(0x11d),'attributes':{'class':[Ko]},'children':[this[_0x2b4dfd(0x12a)],this[_0x2b4dfd(0x132)],this[_0x2b4dfd(0x12c)],this[_0x2b4dfd(0xed)],this[_0x2b4dfd(0x113)]]}),this[_0x2b4dfd(0x101)]=new _0x11ff60(),_0xb0556d(this[_0x2b4dfd(0x12a)],this[_0x2b4dfd(0x101)]);}[_0x5cd6b7(0x13f)](_0x1ae3ab,_0x4d371c){const _0x1a9c62=_0x5cd6b7;if(_0x4d371c)this[_0x1a9c62(0x12e)](_0x1a9c62(0xfb),_0x1a9c62(0x110));else{const _0x132473=0x1===_0x1ae3ab[_0x1a9c62(0x128)];this[_0x1a9c62(0x12e)](_0x1a9c62(0xfb),_0x132473?_0x1a9c62(0x112):_0x1a9c62(0xfd));}if(this[_0x1a9c62(0x101)][_0x1a9c62(0x119)](),_0x1ae3ab?.[_0x1a9c62(0x128)])for(const _0x5b2e1d of _0x1ae3ab){const _0x1ec031=new _0x2808f2({'label':_0x5b2e1d[_0x1a9c62(0x112)],'withText':!0x0,'role':_0x1a9c62(0xf1),'id':_0x5b2e1d['id'],'model':_0x5b2e1d});_0x1ec031[_0x1a9c62(0x11c)](_0x1a9c62(0xf0))['to'](this,_0x1a9c62(0x141),_0x51c677=>_0x51c677===_0x5b2e1d['id']),this[_0x1a9c62(0x101)][_0x1a9c62(0x122)]({'type':_0x1a9c62(0x10f),'model':_0x1ec031,'labelView':new ko(this[_0x1a9c62(0xfc)],_0x5b2e1d)});}}[_0x5cd6b7(0xf4)](_0x44b81d){const _0x2ee7dd=_0x5cd6b7;this[_0x2ee7dd(0x12e)](_0x2ee7dd(0x104),_0x44b81d);}[_0x5cd6b7(0x147)](_0x1b2bbd){const _0x2a69fe=_0x5cd6b7;this[_0x2a69fe(0x12e)](_0x2a69fe(0xfe),_0x1b2bbd);}[_0x5cd6b7(0x127)](_0x5333fc){const _0x4a5743=_0x5cd6b7;if(!_0x5333fc)return;this[_0x4a5743(0x141)]=_0x5333fc['id'],this[_0x4a5743(0x12f)]=_0x5333fc[_0x4a5743(0x112)]||_0x5333fc['id'],this[_0x4a5743(0x12a)][_0x4a5743(0x146)][_0x4a5743(0x12e)](_0x4a5743(0x11b),_0x5333fc[_0x4a5743(0x112)]),this[_0x4a5743(0x12a)][_0x4a5743(0x146)][_0x4a5743(0x12e)](_0x4a5743(0xeb),_0x5333fc[_0x4a5743(0x112)]);const _0x437bcd=_0x5333fc[_0x4a5743(0xf8)][_0x4a5743(0x139)]?.[_0x4a5743(0x109)]??!0x1;this[_0x4a5743(0x12e)](_0x4a5743(0x104),!0x1),this[_0x4a5743(0x12c)][_0x4a5743(0x12e)](_0x4a5743(0xf0),!0x1),this[_0x4a5743(0x12c)][_0x4a5743(0x12e)](_0x4a5743(0x10e),_0x437bcd),this[_0x4a5743(0x12c)][_0x4a5743(0x12e)](_0x4a5743(0x11e),_0x437bcd);const _0x4e5a95=_0x5333fc[_0x4a5743(0xf8)][_0x4a5743(0x131)]?.[_0x4a5743(0x109)]??!0x1;this[_0x4a5743(0x12e)](_0x4a5743(0xfe),!0x1),this[_0x4a5743(0xed)][_0x4a5743(0x12e)](_0x4a5743(0xf0),!0x1),this[_0x4a5743(0xed)][_0x4a5743(0x12e)](_0x4a5743(0x10e),_0x4e5a95),this[_0x4a5743(0xed)][_0x4a5743(0x12e)](_0x4a5743(0x11e),_0x4e5a95);}[_0x5cd6b7(0x148)](){const _0x3c03c8=_0x5cd6b7;this[_0x3c03c8(0x12e)](_0x3c03c8(0x12b),!0x0);}[_0x5cd6b7(0x115)](_0x4e7b32){const _0x34830d=_0x5cd6b7;this[_0x34830d(0x12e)](_0x34830d(0x12b),!0x1),_0x4e7b32&&this[_0x34830d(0x12e)](_0x34830d(0xfb),_0x34830d(0x110));}[_0x5cd6b7(0xee)](){const _0x2f86f3=_0x5cd6b7,_0x2d3374=new _0x55cea0();return _0x2d3374[_0x2f86f3(0x12e)]({'label':_0x3caed9(this[_0x2f86f3(0xfc)],_0x2f86f3(0x120)),'icon':_0x470eb4,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x2d3374['on'](_0x2f86f3(0xf3),()=>{const _0x565b4c=_0x2f86f3;this[_0x565b4c(0x108)](_0x565b4c(0x10d));}),_0x2d3374;}[_0x5cd6b7(0x125)](){const _0xe948b=_0x5cd6b7,_0x199b04=new _0x55cea0();return _0x199b04[_0xe948b(0x12e)]({'label':_0x3caed9(this[_0xe948b(0xfc)],_0xe948b(0xf2)),'icon':_0x5b4395,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x199b04['on'](_0xe948b(0xf3),()=>{const _0x4da027=_0xe948b;this[_0x4da027(0x108)](_0x4da027(0x114));}),_0x199b04;}[_0x5cd6b7(0x143)](){const _0x348d4d=_0x5cd6b7,_0xf2a062=new _0x55cea0();return _0xf2a062[_0x348d4d(0x12e)]({'label':_0x3caed9(this[_0x348d4d(0xfc)],_0x348d4d(0xf5)),'icon':_0x298e31,'withText':!0x0,'class':Xo,'isToggleable':!0x0,'tooltip':_0x3caed9(this[_0x348d4d(0xfc)],_0x348d4d(0xf5)),'tooltipPosition':ol}),_0xf2a062[_0x348d4d(0x138)]({'attributes':{'class':[Qo]}}),_0xf2a062['on'](_0x348d4d(0xf3),()=>{const _0x42e8e7=_0x348d4d;console[_0x42e8e7(0x149)](_0x42e8e7(0x126)),alert(_0x42e8e7(0x126));}),_0xf2a062;}[_0x5cd6b7(0x145)](){const _0xfbd184=_0x5cd6b7,_0x152813=_0x1b8e0a(this[_0xfbd184(0xfc)]);return _0x152813[_0xfbd184(0x12e)]({'panelPosition':'ne','class':[tl]}),_0x152813[_0xfbd184(0x146)][_0xfbd184(0x12e)]({'label':_0x3caed9(this[_0xfbd184(0xfc)],_0xfbd184(0x142)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':ol,'class':Zo}),this[_0xfbd184(0x118)](_0x152813,_0xfbd184(0xf3),_0x408f26=>{const _0x5ed041=_0xfbd184;this[_0x5ed041(0x108)](_0x5ed041(0x14b),_0x408f26[_0x5ed041(0x14a)][_0x5ed041(0x100)]);}),_0x152813;}[_0x5cd6b7(0x134)](){const _0x2b7406=_0x5cd6b7,_0x253136=new _o(this[_0x2b7406(0xfc)]);return _0x253136[_0x2b7406(0x11c)](_0x2b7406(0x10b))['to'](this,_0x2b7406(0x12f),_0x46bc93=>_0x46bc93??''),_0x253136[_0x2b7406(0x11c)](_0x2b7406(0x11e))['to'](this,_0x2b7406(0xfb),_0x107337=>_0x2b7406(0x112)===_0x107337),_0x253136;}}class ko extends _0x505566{constructor(_0x2da14f,_0x1608d0){const _0xa52615=_0x5cd6b7;super();const _0x420f6c=this[_0xa52615(0xf6)],_0x5b6e7c=this[_0xa52615(0x123)]();this[_0xa52615(0x137)]({'tag':_0xa52615(0x11d),'attributes':{'class':['ck',_0xa52615(0x10a)],'style':_0x420f6c['to'](_0xa52615(0x105)),'id':_0x420f6c['to']('id')},'children':[{'tag':_0xa52615(0x11d),'attributes':{'class':[el]},'children':[{'text':_0x420f6c['to'](_0xa52615(0x10b))}]},{'tag':_0xa52615(0x11d),'attributes':{'class':[il]},'children':[{'tag':_0xa52615(0x12d),'children':[{'text':_0x1608d0[_0xa52615(0xec)]}]}]},{'tag':_0xa52615(0x11d),'attributes':{'class':[sl]},'children':_0x5b6e7c}]}),_0x5b6e7c[_0xa52615(0x103)](this[_0xa52615(0xea)](_0x2da14f,_0x470eb4,_0xa52615(0x120),_0x1608d0[_0xa52615(0xf8)][_0xa52615(0x139)]?.[_0xa52615(0x109)]??!0x1)),_0x5b6e7c[_0xa52615(0x103)](this[_0xa52615(0xea)](_0x2da14f,_0x5b4395,_0xa52615(0xf2),_0x1608d0[_0xa52615(0xf8)][_0xa52615(0x131)]?.[_0xa52615(0x109)]??!0x1));}[_0x5cd6b7(0xea)](_0x5c5af7,_0x41edf,_0x396006,_0x213d6c){const _0x2ad6f8=_0x5cd6b7,_0x15ed3e=new _0xf95e4f();_0x15ed3e[_0x2ad6f8(0xfa)]=_0x41edf;const _0x3b4488=new _0x460f8a(_0x5c5af7);_0x3b4488[_0x2ad6f8(0x137)]({'tag':_0x2ad6f8(0x12d),'children':[{'text':_0x3caed9(_0x5c5af7,_0x396006)+':\x20'}]});const _0xd406d6=new _0x460f8a(_0x5c5af7);return _0xd406d6[_0x2ad6f8(0x137)]({'tag':_0x2ad6f8(0x12d),'children':[{'text':_0x3caed9(_0x5c5af7,_0x213d6c?_0x2ad6f8(0x124):_0x2ad6f8(0xef))}]}),[_0x15ed3e,_0x3b4488,_0xd406d6];}}class _o extends _0x460f8a{constructor(_0x3e36fb){const _0x51645c=_0x5cd6b7;super(_0x3e36fb),this[_0x51645c(0x12e)](_0x51645c(0x10b),void 0x0),this[_0x51645c(0x12e)](_0x51645c(0x11e),!0x0);const _0x4f11e0=this[_0x51645c(0xf6)];this[_0x51645c(0x137)]({'tag':_0x51645c(0x12d),'attributes':{'class':['ck',_0x51645c(0x13a),_0x4f11e0['if'](_0x51645c(0x11e),_0x51645c(0x121),_0x494986=>!_0x494986)]},'children':[{'text':_0x4f11e0['to'](_0x51645c(0x10b))}]});}}
|
|
23
|
+
const _0x57a0e7=_0x2998;(function(_0x16c105,_0xc668f1){const _0x4fcd6f=_0x2998,_0x270397=_0x16c105();while(!![]){try{const _0x3a78af=parseInt(_0x4fcd6f(0x15c))/0x1*(parseInt(_0x4fcd6f(0x143))/0x2)+-parseInt(_0x4fcd6f(0x11d))/0x3+parseInt(_0x4fcd6f(0x161))/0x4*(parseInt(_0x4fcd6f(0x150))/0x5)+parseInt(_0x4fcd6f(0x140))/0x6*(parseInt(_0x4fcd6f(0x126))/0x7)+-parseInt(_0x4fcd6f(0x17b))/0x8*(parseInt(_0x4fcd6f(0x131))/0x9)+-parseInt(_0x4fcd6f(0x14c))/0xa+-parseInt(_0x4fcd6f(0x163))/0xb*(-parseInt(_0x4fcd6f(0x169))/0xc);if(_0x3a78af===_0xc668f1)break;else _0x270397['push'](_0x270397['shift']());}catch(_0xe222ac){_0x270397['push'](_0x270397['shift']());}}}(_0x5852,0x20bef));import{Collection as _0x4ebc23}from'ckeditor5/src/utils.js';import{IconAI as _0x393d86,IconBulb as _0x18ad37,IconWeb as _0x3a4867}from'@ckeditor/ckeditor5-icons';function _0x5852(){const _0x3940da=['set','1491090XZLbLS','model','_commandsButton','_modelNameView','135AQhSMm','webSearchActive','AI_CHAT_COMMANDS','_createCommandsButton','listenTo','_createReasoningButton','bindTemplate','ck-hidden','reasoning','toggleWebSearch','label','name','42IyCaTy','selector','selectModel','setWebSearch','Commands\x20are\x20not\x20implemented\x20yet.','316jOHnSC','source','184228idFeBL','setTemplate','modelSelectorEnabled','content','activeModelId','ck-ai-chat-controls__model-selection__item-capabilities','192emyscG','locale','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','activeModelName','webSearch','addMany','AI_CHAT_SEARCH_WEB','capabilities','AI_CHAT_ENABLE_WEB_SEARCH','style','execute','_reasoningButton','ck-ai-chat-controls__model-selection__item-name','enabled','AI_CHAT_DISABLE_REASONING','ck-ai-chat-controls-button--commands','add','enableModelSelector','1688JBoNcl','_createModelNameView','length','_createModelSelectionDropdown','button','description','629721DrLQCM','setModel','fire','ck-ai-button-tertiary','_createWebSearchButton','ck-ai-chat__prompt-capabilities','span','createCollection','tooltip','7yQSVOZ','AI_CHAT_DISABLE_WEB_SEARCH','ck-ai-chat-controls__model-selection','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','AI_CHAT_CAPABILITIES_NO','toggleReasoning','reasoningActive','setModelList','_getCapabilityParts','bind','ck-button__label','981qbTDgB','menuitemradio','isOn','hidden','AI_CHAT_CAPABILITIES_YES','extendTemplate','disableModelSelector','isVisible','_modelSelectionDropdownItems','AI_CHAT_ENABLE_REASONING','ck-ai-chat-controls-button','modelDisplayMode','setReasoning','_webSearchButton','div','1455834flkRpm','log','ck-ai-chat-controls__model-name','162cTPcxD','_modelSelectionDropdown','clear','buttonView','AI_CHAT_REASONING','isEnabled','ck-ai-chat-controls__model-selection__item-description','text'];_0x5852=function(){return _0x3940da;};return _0x5852();}import{addListToDropdown as _0x3d06fe,ButtonLabelView as _0x27060e,ButtonView as _0xa153a2,createDropdown as _0x5b1368,IconView as _0x2bef33,UIModel as _0x20596e,View as _0x22fc22}from'ckeditor5/src/ui.js';function _0x2998(_0x2958b8,_0x1bca55){const _0x58526f=_0x5852();return _0x2998=function(_0x299804,_0x3a2ba7){_0x299804=_0x299804-0x11d;let _0x47023f=_0x58526f[_0x299804];return _0x47023f;},_0x2998(_0x2958b8,_0x1bca55);}import{getTranslation as _0x2d0c58}from'../../../aicore/utils/common-translations.js';const Ko=_0x57a0e7(0x122),Xo=_0x57a0e7(0x13b),Qo=_0x57a0e7(0x178),Zo=_0x57a0e7(0x120),tl=_0x57a0e7(0x128),el=_0x57a0e7(0x175),il=_0x57a0e7(0x149),sl=_0x57a0e7(0x168),ol='n';export class AIChatPromptCapabilitiesView extends _0x22fc22{[_0x57a0e7(0x13e)];[_0x57a0e7(0x174)];[_0x57a0e7(0x14e)];[_0x57a0e7(0x144)];[_0x57a0e7(0x139)];[_0x57a0e7(0x14f)];constructor(_0x471373){const _0x5a8a60=_0x57a0e7;super(_0x471373),this[_0x5a8a60(0x14b)](_0x5a8a60(0x151),!0x1),this[_0x5a8a60(0x14b)](_0x5a8a60(0x12c),!0x1),this[_0x5a8a60(0x14b)](_0x5a8a60(0x13c),_0x5a8a60(0x15d)),this[_0x5a8a60(0x14b)](_0x5a8a60(0x165),!0x0),this[_0x5a8a60(0x14b)](_0x5a8a60(0x167),null),this[_0x5a8a60(0x14b)](_0x5a8a60(0x16c),null),this[_0x5a8a60(0x144)]=this[_0x5a8a60(0x17e)](),this[_0x5a8a60(0x14f)]=this[_0x5a8a60(0x17c)](),this[_0x5a8a60(0x13e)]=this[_0x5a8a60(0x121)](),this[_0x5a8a60(0x174)]=this[_0x5a8a60(0x155)](),this[_0x5a8a60(0x14e)]=this[_0x5a8a60(0x153)](),this[_0x5a8a60(0x144)][_0x5a8a60(0x146)][_0x5a8a60(0x12f)](_0x5a8a60(0x138))['to'](this,_0x5a8a60(0x13c),_0x31b403=>_0x5a8a60(0x15d)===_0x31b403),this[_0x5a8a60(0x144)][_0x5a8a60(0x146)][_0x5a8a60(0x12f)](_0x5a8a60(0x125))['to'](this,_0x5a8a60(0x165),_0x266818=>_0x266818?this[_0x5a8a60(0x144)][_0x5a8a60(0x146)][_0x5a8a60(0x15a)]:_0x2d0c58(this[_0x5a8a60(0x16a)],_0x5a8a60(0x129))),this[_0x5a8a60(0x144)][_0x5a8a60(0x12f)](_0x5a8a60(0x148))['to'](this,_0x5a8a60(0x165),_0x3b5edd=>_0x3b5edd),this[_0x5a8a60(0x13e)][_0x5a8a60(0x12f)](_0x5a8a60(0x133))['to'](this,_0x5a8a60(0x151),_0xb0ec2a=>_0xb0ec2a),this[_0x5a8a60(0x13e)][_0x5a8a60(0x12f)](_0x5a8a60(0x125))['to'](this,_0x5a8a60(0x151),_0x49f9eb=>_0x2d0c58(this[_0x5a8a60(0x16a)],_0x49f9eb?_0x5a8a60(0x127):_0x5a8a60(0x171))),this[_0x5a8a60(0x174)][_0x5a8a60(0x12f)](_0x5a8a60(0x133))['to'](this,_0x5a8a60(0x12c),_0x43e3fc=>_0x43e3fc),this[_0x5a8a60(0x174)][_0x5a8a60(0x12f)](_0x5a8a60(0x125))['to'](this,_0x5a8a60(0x12c),_0x4ac49e=>_0x2d0c58(this[_0x5a8a60(0x16a)],_0x4ac49e?_0x5a8a60(0x177):_0x5a8a60(0x13a))),this[_0x5a8a60(0x164)]({'tag':_0x5a8a60(0x13f),'attributes':{'class':[Ko]},'children':[this[_0x5a8a60(0x144)],this[_0x5a8a60(0x14f)],this[_0x5a8a60(0x13e)],this[_0x5a8a60(0x174)],this[_0x5a8a60(0x14e)]]}),this[_0x5a8a60(0x139)]=new _0x4ebc23(),_0x3d06fe(this[_0x5a8a60(0x144)],this[_0x5a8a60(0x139)]);}[_0x57a0e7(0x12d)](_0x164383,_0x1daf4e){const _0x402ab2=_0x57a0e7;if(_0x1daf4e)this[_0x402ab2(0x14b)](_0x402ab2(0x13c),_0x402ab2(0x134));else{const _0x46fa10=0x1===_0x164383[_0x402ab2(0x17d)];this[_0x402ab2(0x14b)](_0x402ab2(0x13c),_0x46fa10?_0x402ab2(0x15b):_0x402ab2(0x15d));}if(this[_0x402ab2(0x139)][_0x402ab2(0x145)](),_0x164383?.[_0x402ab2(0x17d)])for(const _0x4e7017 of _0x164383){const _0x53b919=new _0x20596e({'label':_0x4e7017[_0x402ab2(0x15b)],'withText':!0x0,'role':_0x402ab2(0x132),'id':_0x4e7017['id'],'model':_0x4e7017});_0x53b919[_0x402ab2(0x12f)](_0x402ab2(0x133))['to'](this,_0x402ab2(0x167),_0x4e7340=>_0x4e7340===_0x4e7017['id']),this[_0x402ab2(0x139)][_0x402ab2(0x179)]({'type':_0x402ab2(0x17f),'model':_0x53b919,'labelView':new ko(this[_0x402ab2(0x16a)],_0x4e7017)});}}[_0x57a0e7(0x15f)](_0x184889){const _0x8736c2=_0x57a0e7;this[_0x8736c2(0x14b)](_0x8736c2(0x151),_0x184889);}[_0x57a0e7(0x13d)](_0x3dc178){const _0x5a01da=_0x57a0e7;this[_0x5a01da(0x14b)](_0x5a01da(0x12c),_0x3dc178);}[_0x57a0e7(0x11e)](_0x374bd3){const _0x58d33e=_0x57a0e7;if(!_0x374bd3)return;this[_0x58d33e(0x167)]=_0x374bd3['id'],this[_0x58d33e(0x16c)]=_0x374bd3[_0x58d33e(0x15b)]||_0x374bd3['id'],this[_0x58d33e(0x144)][_0x58d33e(0x146)][_0x58d33e(0x14b)](_0x58d33e(0x15a),_0x374bd3[_0x58d33e(0x15b)]),this[_0x58d33e(0x144)][_0x58d33e(0x146)][_0x58d33e(0x14b)](_0x58d33e(0x125),_0x374bd3[_0x58d33e(0x15b)]);const _0x1d8ab3=_0x374bd3[_0x58d33e(0x170)][_0x58d33e(0x16d)]?.[_0x58d33e(0x176)]??!0x1;this[_0x58d33e(0x14b)](_0x58d33e(0x151),!0x1),this[_0x58d33e(0x13e)][_0x58d33e(0x14b)](_0x58d33e(0x133),!0x1),this[_0x58d33e(0x13e)][_0x58d33e(0x14b)](_0x58d33e(0x148),_0x1d8ab3),this[_0x58d33e(0x13e)][_0x58d33e(0x14b)](_0x58d33e(0x138),_0x1d8ab3);const _0x4a2076=_0x374bd3[_0x58d33e(0x170)][_0x58d33e(0x158)]?.[_0x58d33e(0x176)]??!0x1;this[_0x58d33e(0x14b)](_0x58d33e(0x12c),!0x1),this[_0x58d33e(0x174)][_0x58d33e(0x14b)](_0x58d33e(0x133),!0x1),this[_0x58d33e(0x174)][_0x58d33e(0x14b)](_0x58d33e(0x148),_0x4a2076),this[_0x58d33e(0x174)][_0x58d33e(0x14b)](_0x58d33e(0x138),_0x4a2076);}[_0x57a0e7(0x17a)](){const _0x46237d=_0x57a0e7;this[_0x46237d(0x14b)](_0x46237d(0x165),!0x0);}[_0x57a0e7(0x137)](_0x453627){const _0x528ef1=_0x57a0e7;this[_0x528ef1(0x14b)](_0x528ef1(0x165),!0x1),_0x453627&&this[_0x528ef1(0x14b)](_0x528ef1(0x13c),_0x528ef1(0x134));}[_0x57a0e7(0x121)](){const _0x1564c2=_0x57a0e7,_0x486d50=new _0xa153a2();return _0x486d50[_0x1564c2(0x14b)]({'label':_0x2d0c58(this[_0x1564c2(0x16a)],_0x1564c2(0x16f)),'icon':_0x3a4867,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x486d50['on'](_0x1564c2(0x173),()=>{const _0x584719=_0x1564c2;this[_0x584719(0x11f)](_0x584719(0x159));}),_0x486d50;}[_0x57a0e7(0x155)](){const _0x35fc00=_0x57a0e7,_0x3da69e=new _0xa153a2();return _0x3da69e[_0x35fc00(0x14b)]({'label':_0x2d0c58(this[_0x35fc00(0x16a)],_0x35fc00(0x147)),'icon':_0x18ad37,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x3da69e['on'](_0x35fc00(0x173),()=>{const _0x3e07d7=_0x35fc00;this[_0x3e07d7(0x11f)](_0x3e07d7(0x12b));}),_0x3da69e;}[_0x57a0e7(0x153)](){const _0x588e7c=_0x57a0e7,_0x5b86aa=new _0xa153a2();return _0x5b86aa[_0x588e7c(0x14b)]({'label':_0x2d0c58(this[_0x588e7c(0x16a)],_0x588e7c(0x152)),'icon':_0x393d86,'withText':!0x0,'class':Xo,'isToggleable':!0x0,'tooltip':_0x2d0c58(this[_0x588e7c(0x16a)],_0x588e7c(0x152)),'tooltipPosition':ol}),_0x5b86aa[_0x588e7c(0x136)]({'attributes':{'class':[Qo]}}),_0x5b86aa['on'](_0x588e7c(0x173),()=>{const _0x44e244=_0x588e7c;console[_0x44e244(0x141)](_0x44e244(0x160)),alert(_0x44e244(0x160));}),_0x5b86aa;}[_0x57a0e7(0x17e)](){const _0x3fbdc1=_0x57a0e7,_0x5eb812=_0x5b1368(this[_0x3fbdc1(0x16a)]);return _0x5eb812[_0x3fbdc1(0x14b)]({'panelPosition':'ne','class':[tl]}),_0x5eb812[_0x3fbdc1(0x146)][_0x3fbdc1(0x14b)]({'label':_0x2d0c58(this[_0x3fbdc1(0x16a)],_0x3fbdc1(0x16b)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':ol,'class':Zo}),this[_0x3fbdc1(0x154)](_0x5eb812,_0x3fbdc1(0x173),_0x5a5b15=>{const _0x4bddc3=_0x3fbdc1;this[_0x4bddc3(0x11f)](_0x4bddc3(0x15e),_0x5a5b15[_0x4bddc3(0x162)][_0x4bddc3(0x14d)]);}),_0x5eb812;}[_0x57a0e7(0x17c)](){const _0x2f7f9f=_0x57a0e7,_0x456da0=new _o(this[_0x2f7f9f(0x16a)]);return _0x456da0[_0x2f7f9f(0x12f)](_0x2f7f9f(0x14a))['to'](this,_0x2f7f9f(0x16c),_0x41f453=>_0x41f453??''),_0x456da0[_0x2f7f9f(0x12f)](_0x2f7f9f(0x138))['to'](this,_0x2f7f9f(0x13c),_0x50dbf4=>_0x2f7f9f(0x15b)===_0x50dbf4),_0x456da0;}}class ko extends _0x27060e{constructor(_0x341868,_0x33b778){const _0x4cf397=_0x57a0e7;super();const _0x51a41b=this[_0x4cf397(0x156)],_0x160d0e=this[_0x4cf397(0x124)]();this[_0x4cf397(0x164)]({'tag':_0x4cf397(0x13f),'attributes':{'class':['ck',_0x4cf397(0x130)],'style':_0x51a41b['to'](_0x4cf397(0x172)),'id':_0x51a41b['to']('id')},'children':[{'tag':_0x4cf397(0x13f),'attributes':{'class':[el]},'children':[{'text':_0x51a41b['to'](_0x4cf397(0x14a))}]},{'tag':_0x4cf397(0x13f),'attributes':{'class':[il]},'children':[{'tag':_0x4cf397(0x123),'children':[{'text':_0x33b778[_0x4cf397(0x180)]}]}]},{'tag':_0x4cf397(0x13f),'attributes':{'class':[sl]},'children':_0x160d0e}]}),_0x160d0e[_0x4cf397(0x16e)](this[_0x4cf397(0x12e)](_0x341868,_0x3a4867,_0x4cf397(0x16f),_0x33b778[_0x4cf397(0x170)][_0x4cf397(0x16d)]?.[_0x4cf397(0x176)]??!0x1)),_0x160d0e[_0x4cf397(0x16e)](this[_0x4cf397(0x12e)](_0x341868,_0x18ad37,_0x4cf397(0x147),_0x33b778[_0x4cf397(0x170)][_0x4cf397(0x158)]?.[_0x4cf397(0x176)]??!0x1));}[_0x57a0e7(0x12e)](_0x4575df,_0x339f8a,_0x25cbdf,_0x5247fa){const _0x352db5=_0x57a0e7,_0xb26f9b=new _0x2bef33();_0xb26f9b[_0x352db5(0x166)]=_0x339f8a;const _0x293c42=new _0x22fc22(_0x4575df);_0x293c42[_0x352db5(0x164)]({'tag':_0x352db5(0x123),'children':[{'text':_0x2d0c58(_0x4575df,_0x25cbdf)+':\x20'}]});const _0x3d4572=new _0x22fc22(_0x4575df);return _0x3d4572[_0x352db5(0x164)]({'tag':_0x352db5(0x123),'children':[{'text':_0x2d0c58(_0x4575df,_0x5247fa?_0x352db5(0x135):_0x352db5(0x12a))}]}),[_0xb26f9b,_0x293c42,_0x3d4572];}}class _o extends _0x22fc22{constructor(_0x359450){const _0x3efb91=_0x57a0e7;super(_0x359450),this[_0x3efb91(0x14b)](_0x3efb91(0x14a),void 0x0),this[_0x3efb91(0x14b)](_0x3efb91(0x138),!0x0);const _0x1fa7b2=this[_0x3efb91(0x156)];this[_0x3efb91(0x164)]({'tag':_0x3efb91(0x123),'attributes':{'class':['ck',_0x3efb91(0x142),_0x1fa7b2['if'](_0x3efb91(0x138),_0x3efb91(0x157),_0x438205=>!_0x438205)]},'children':[{'text':_0x1fa7b2['to'](_0x3efb91(0x14a))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1e3d(_0x1c8a04,_0x2be8fc){const _0x5a3554=_0x5a35();return _0x1e3d=function(_0x1e3d26,_0x43cd0d){_0x1e3d26=_0x1e3d26-0x16f;let _0x560a36=_0x5a3554[_0x1e3d26];return _0x560a36;},_0x1e3d(_0x1c8a04,_0x2be8fc);}const _0x15a7a0=_0x1e3d;(function(_0x33a7e1,_0x2b9274){const _0x5f1d4f=_0x1e3d,_0x381af4=_0x33a7e1();while(!![]){try{const _0x413f0a=-parseInt(_0x5f1d4f(0x194))/0x1+-parseInt(_0x5f1d4f(0x1aa))/0x2*(-parseInt(_0x5f1d4f(0x18a))/0x3)+-parseInt(_0x5f1d4f(0x1a0))/0x4*(-parseInt(_0x5f1d4f(0x18d))/0x5)+-parseInt(_0x5f1d4f(0x18c))/0x6+-parseInt(_0x5f1d4f(0x178))/0x7*(parseInt(_0x5f1d4f(0x18e))/0x8)+parseInt(_0x5f1d4f(0x19f))/0x9*(parseInt(_0x5f1d4f(0x1a1))/0xa)+parseInt(_0x5f1d4f(0x19a))/0xb*(parseInt(_0x5f1d4f(0x1a2))/0xc);if(_0x413f0a===_0x2b9274)break;else _0x381af4['push'](_0x381af4['shift']());}catch(_0xf953fc){_0x381af4['push'](_0x381af4['shift']());}}}(_0x5a35,0xd6e04));import{IconSubmit as _0x23300b}from'ckeditor5/src/icons.js';import{ButtonView as _0x5727eb,AutocompleteView as _0xad772f,createLabeledTextarea as _0x42e91d}from'ckeditor5/src/ui.js';function _0x5a35(){const _0x15534c=['calc(','placeholder','style','ck-ai-chat__prompt-input','right','reset','classList','sendUserMessage','uiLanguageDirection','locale','_createSubmitButton','_queryViewResizeObserver','remove','contains','destroy','1924554tdOFML','MIN_ROWS','3628944mRXHEv','25VnsAFa','8TKtrND','px\x20-\x20var(--ck-spacing-tiny))','ck-ai-chat__prompt-submit-button','focus','excludeScrollbarsAndBorders','bind','1269102DqVlyF','_addContextButtonView','submit','add','left','isEmpty','697323yXSyEq','queryView','isEnabled','MAX_ROWS','focusableChildren','18saSuwc','804772hqbhNR','3318480QEfmOx','264IzxbZu','requestAnimationFrame','rtl','window','keystrokes','setPlaceholderText','AI_CHAT_PROMPT_EMPTY_ERROR','maxRows','4xHFekx','update','target','errorText','fieldView','extendTemplate','width','fieldWrapperChildren','AI_CHAT_LABEL_SUBMIT','isUploadInProgress','submitButtonView','trim','element','setIsUploadInProgress','hasError','enter','execute','_setUpAddContextButtonPositioning','fire','minRows','value','render','11152995TzgsNr','ck-ai-chat__prompt-input_highlighted','set'];_0x5a35=function(){return _0x15534c;};return _0x5a35();}import{global as _0x2b8b97,isVisible as _0x306720,Rect as _0x51c6a3,ResizeObserver as _0x5e5f8f}from'ckeditor5/src/utils.js';import{getTranslation as _0x24fcc0}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x4c9009}from'./aichatpromptsuggestionslistview.js';import{escape as _0x55a051}from'es-toolkit/compat';const ah=_0x15a7a0(0x179);export class AIChatPromptInputView extends _0xad772f{[_0x15a7a0(0x1b4)];static [_0x15a7a0(0x18b)]=0x1;static [_0x15a7a0(0x19d)]=0xc;[_0x15a7a0(0x195)];[_0x15a7a0(0x186)];constructor(_0x5e68be,_0x3768a5){const _0x2325a3=_0x15a7a0;super(_0x5e68be,{'queryView':{'label':'','creator':_0x42e91d,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x4c9009(_0x5e68be),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x2325a3(0x17a)](_0x2325a3(0x199),!0x0),this[_0x2325a3(0x17a)](_0x2325a3(0x1b3),!0x1),this[_0x2325a3(0x195)]=_0x3768a5,this[_0x2325a3(0x186)]=null,this[_0x2325a3(0x19b)][_0x2325a3(0x1ae)][_0x2325a3(0x175)]=AIChatPromptInputView[_0x2325a3(0x18b)],this[_0x2325a3(0x19b)][_0x2325a3(0x1ae)][_0x2325a3(0x1a9)]=AIChatPromptInputView[_0x2325a3(0x19d)],this[_0x2325a3(0x19b)][_0x2325a3(0x1b1)][_0x2325a3(0x197)](this[_0x2325a3(0x195)]),this[_0x2325a3(0x173)](),this[_0x2325a3(0x1af)]({'attributes':{'class':['ck',_0x2325a3(0x17e)]}}),this[_0x2325a3(0x1b4)]=this[_0x2325a3(0x185)](),this[_0x2325a3(0x1b4)][_0x2325a3(0x193)](_0x2325a3(0x19c))['to'](this,_0x2325a3(0x199),this,_0x2325a3(0x1b3),(_0x42b851,_0x6f540)=>!_0x42b851&&!_0x6f540),this[_0x2325a3(0x19e)][_0x2325a3(0x197)](this[_0x2325a3(0x1b4)]);}[_0x15a7a0(0x177)](){const _0x3d3aa=_0x15a7a0;super[_0x3d3aa(0x177)](),this[_0x3d3aa(0x19b)][_0x3d3aa(0x1b1)][_0x3d3aa(0x197)](this[_0x3d3aa(0x1b4)]),this[_0x3d3aa(0x1a6)][_0x3d3aa(0x17a)](_0x3d3aa(0x171),(_0x170c07,_0x32f91b)=>{const _0x475b25=_0x3d3aa;this[_0x475b25(0x1b3)]||this[_0x475b25(0x199)]||_0x170c07[_0x475b25(0x1ac)]==this[_0x475b25(0x19b)][_0x475b25(0x1ae)][_0x475b25(0x1b6)]&&(this[_0x475b25(0x196)](),_0x32f91b());}),this[_0x3d3aa(0x19b)][_0x3d3aa(0x1ae)]['on'](_0x3d3aa(0x1ab),()=>{const _0x2dde9e=_0x3d3aa;this[_0x2dde9e(0x199)]=''===this[_0x2dde9e(0x19b)][_0x2dde9e(0x1ae)][_0x2dde9e(0x1b6)][_0x2dde9e(0x176)]?.[_0x2dde9e(0x1b5)]();});}[_0x15a7a0(0x189)](){const _0x271bbd=_0x15a7a0;super[_0x271bbd(0x189)](),this[_0x271bbd(0x186)]&&this[_0x271bbd(0x186)][_0x271bbd(0x189)]();}[_0x15a7a0(0x196)](){const _0x31f280=_0x15a7a0,_0x332ed1=this[_0x31f280(0x19b)][_0x31f280(0x1ae)][_0x31f280(0x1b6)][_0x31f280(0x176)]?.[_0x31f280(0x1b5)]();if(!_0x332ed1)return this[_0x31f280(0x19b)][_0x31f280(0x1ad)]=_0x24fcc0(this[_0x31f280(0x184)],_0x31f280(0x1a8)),void(this[_0x31f280(0x19b)][_0x31f280(0x1ae)][_0x31f280(0x170)]=!0x0);this[_0x31f280(0x19b)][_0x31f280(0x1ae)][_0x31f280(0x170)]=!0x1;const _0x366e27=_0x55a051(_0x332ed1);this[_0x31f280(0x174)](_0x31f280(0x182),_0x366e27),this[_0x31f280(0x19b)][_0x31f280(0x1ae)][_0x31f280(0x180)]();}[_0x15a7a0(0x1a7)](_0x2c8fd8){const _0x29f755=_0x15a7a0;this[_0x29f755(0x19b)][_0x29f755(0x1ae)][_0x29f755(0x17a)](_0x29f755(0x17c),_0x2c8fd8);}[_0x15a7a0(0x191)](_0x58bf12=!0x1){const _0x50ef78=_0x15a7a0;super[_0x50ef78(0x191)](),_0x58bf12&&(this[_0x50ef78(0x1b6)][_0x50ef78(0x181)][_0x50ef78(0x188)](ah)||(this[_0x50ef78(0x1b6)][_0x50ef78(0x181)][_0x50ef78(0x197)](ah),setTimeout(()=>{const _0x251187=_0x50ef78;this[_0x251187(0x1b6)][_0x251187(0x181)][_0x251187(0x187)](ah);},0x320)));}[_0x15a7a0(0x185)](){const _0x5be46c=_0x15a7a0,_0x50ac64=new _0x5727eb(this[_0x5be46c(0x184)]);return _0x50ac64[_0x5be46c(0x17a)]({'icon':_0x23300b,'label':_0x24fcc0(this[_0x5be46c(0x184)],_0x5be46c(0x1b2)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x5be46c(0x190),'isEnabled':!0x1}),_0x50ac64['on'](_0x5be46c(0x172),()=>{const _0x4555aa=_0x5be46c;this[_0x4555aa(0x196)]();}),_0x50ac64;}[_0x15a7a0(0x16f)](_0x23fbc2){const _0x3a97a2=_0x15a7a0;this[_0x3a97a2(0x1b3)]=_0x23fbc2;}[_0x15a7a0(0x173)](){const _0x2508fe=_0x15a7a0,_0x5b0b0f=this[_0x2508fe(0x184)],_0x2f785a=()=>{const _0xcee503=_0x2508fe;_0x2b8b97[_0xcee503(0x1a5)][_0xcee503(0x1a3)](()=>{const _0x5ea9fa=_0xcee503;if(_0x306720(this[_0x5ea9fa(0x1b6)])){const _0x310323=new _0x51c6a3(this[_0x5ea9fa(0x19b)][_0x5ea9fa(0x1ae)][_0x5ea9fa(0x1b6)]),_0x59d62f=new _0x51c6a3(this[_0x5ea9fa(0x195)][_0x5ea9fa(0x1b6)]),_0x4bd00f=_0x310323[_0x5ea9fa(0x1b0)],_0x160785=_0x5ea9fa(0x1a4)===_0x5b0b0f[_0x5ea9fa(0x183)]?_0x5ea9fa(0x17f):_0x5ea9fa(0x198);_0x310323[_0x5ea9fa(0x192)]();const _0x2d6140=_0x4bd00f-_0x310323[_0x5ea9fa(0x1b0)]+0x1;this[_0x5ea9fa(0x195)][_0x5ea9fa(0x1b6)][_0x5ea9fa(0x17d)][_0x160785]=_0x5ea9fa(0x17b)+(_0x4bd00f-_0x59d62f[_0x5ea9fa(0x1b0)]-_0x2d6140)+_0x5ea9fa(0x18f);}});};this[_0x2508fe(0x19b)][_0x2508fe(0x1ae)]['on'](_0x2508fe(0x1ab),_0x2f785a),this['on'](_0x2508fe(0x177),()=>{const _0x32e97c=_0x2508fe;_0x2f785a(),this[_0x32e97c(0x186)]=new _0x5e5f8f(this[_0x32e97c(0x19b)][_0x32e97c(0x1ae)][_0x32e97c(0x1b6)],()=>{_0x2f785a();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x44c4e7=_0x2c01;(function(_0x3d5599,_0x34aeb6){const _0x2ac5f1=_0x2c01,_0x4ceb4b=_0x3d5599();while(!![]){try{const _0x5ef34f=-parseInt(_0x2ac5f1(0x16a))/0x1+parseInt(_0x2ac5f1(0x171))/0x2+parseInt(_0x2ac5f1(0x16b))/0x3+parseInt(_0x2ac5f1(0x168))/0x4*(-parseInt(_0x2ac5f1(0x167))/0x5)+-parseInt(_0x2ac5f1(0x169))/0x6+-parseInt(_0x2ac5f1(0x172))/0x7*(-parseInt(_0x2ac5f1(0x16d))/0x8)+-parseInt(_0x2ac5f1(0x166))/0x9*(-parseInt(_0x2ac5f1(0x16c))/0xa);if(_0x5ef34f===_0x34aeb6)break;else _0x4ceb4b['push'](_0x4ceb4b['shift']());}catch(_0x446df4){_0x4ceb4b['push'](_0x4ceb4b['shift']());}}}(_0x15c6,0xb9560));function _0x15c6(){const _0x449155=['416735AyMdYl','3554886hxQpML','20jDKDOG','286768LxvIPE','items','length','filter','2191988KGlVrI','42tqIHPZ','1804248wJbBvP','39700qFkVhL','204xZsyAi','7896990enYfrO'];_0x15c6=function(){return _0x449155;};return _0x15c6();}function _0x2c01(_0x474673,_0x47a97c){const _0x15c626=_0x15c6();return _0x2c01=function(_0x2c013b,_0x432390){_0x2c013b=_0x2c013b-0x166;let _0x41439a=_0x15c626[_0x2c013b];return _0x41439a;},_0x2c01(_0x474673,_0x47a97c);}import{ListView as _0xf5640d}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0xf5640d{[_0x44c4e7(0x170)](){const _0x5272ca=_0x44c4e7;let _0x33cc90=0x0;for(const _0x43a7d4 of this[_0x5272ca(0x16e)])_0x33cc90+=_0x43a7d4[_0x5272ca(0x16e)][_0x5272ca(0x16f)];return{'resultsCount':_0x33cc90,'totalItemsCount':_0x33cc90};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x26c75f=_0x7ac9;function _0x5b4f(){const _0xcf62a7=['execute','4466430KlpSPT','updateResourceState','13747464AHnRwy','11KcJoKV','useDefaultFiltering','setResources','add','\x5c$&','11291KYuSHV','2444538qCzexV','items','5CPmyMJ','replace','_handleResourceSelection','filter','resource','_source','4XvoprH','ck-ai-chat-resources__list','562tDrpQB','highlightText','2168LayNAx','test','1003sQGmuF','addResourceToContext','7877286ZfnKtF','trim','extendTemplate','fire','forEach','locale','clear','label','13087570pTuzlU'];_0x5b4f=function(){return _0xcf62a7;};return _0x5b4f();}(function(_0x54111a,_0x5f58c6){const _0x54c21b=_0x7ac9,_0x5936ba=_0x54111a();while(!![]){try{const _0x445594=parseInt(_0x54c21b(0x14e))/0x1*(parseInt(_0x54c21b(0x14a))/0x2)+-parseInt(_0x54c21b(0x140))/0x3*(-parseInt(_0x54c21b(0x148))/0x4)+parseInt(_0x54c21b(0x142))/0x5*(parseInt(_0x54c21b(0x15a))/0x6)+-parseInt(_0x54c21b(0x13f))/0x7*(parseInt(_0x54c21b(0x14c))/0x8)+-parseInt(_0x54c21b(0x150))/0x9+parseInt(_0x54c21b(0x158))/0xa*(parseInt(_0x54c21b(0x15d))/0xb)+-parseInt(_0x54c21b(0x15c))/0xc;if(_0x445594===_0x5f58c6)break;else _0x5936ba['push'](_0x5936ba['shift']());}catch(_0x427320){_0x5936ba['push'](_0x5936ba['shift']());}}}(_0x5b4f,0xa8e8c));function _0x7ac9(_0x48eea6,_0x470449){const _0x5b4f15=_0x5b4f();return _0x7ac9=function(_0x7ac9c8,_0x5a49c9){_0x7ac9c8=_0x7ac9c8-0x13c;let _0x1ac15a=_0x5b4f15[_0x7ac9c8];return _0x1ac15a;},_0x7ac9(_0x48eea6,_0x470449);}import{ListView as _0x120800}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x1c10d0}from'./aichatresourcelistitemview.js';const uc=_0x26c75f(0x149);export class AIChatContextResourcesListView extends _0x120800{[_0x26c75f(0x147)];constructor(_0x1f9c86,_0x138389){const _0x446154=_0x26c75f;super(_0x1f9c86),this[_0x446154(0x147)]=_0x138389,this[_0x446154(0x152)]({'attributes':{'class':[uc]}});}[_0x26c75f(0x13c)](_0x12a776,_0x59dcd7){const _0x16d677=_0x26c75f;this[_0x16d677(0x141)][_0x16d677(0x156)]();let _0x50383c=_0x12a776;if(this[_0x16d677(0x147)][_0x16d677(0x15e)]&&_0x59dcd7&&''!==_0x59dcd7[_0x16d677(0x151)]()){const _0x32a5d5=new RegExp(_0x59dcd7[_0x16d677(0x143)](/[.*+?^${}()|[\]\\]/g,_0x16d677(0x13e)),'gi');_0x50383c=_0x12a776[_0x16d677(0x145)](_0xdc7dfa=>_0x32a5d5[_0x16d677(0x14d)](_0xdc7dfa[_0x16d677(0x157)]));}for(const _0x536f83 of _0x50383c){const _0x62f8cb=new _0x1c10d0(this[_0x16d677(0x155)],_0x536f83);_0x62f8cb['on'](_0x16d677(0x159),()=>{const _0x5955ec=_0x16d677;this[_0x5955ec(0x144)](this[_0x5955ec(0x147)],_0x536f83);}),this[_0x16d677(0x141)][_0x16d677(0x13d)](_0x62f8cb);}this[_0x16d677(0x147)][_0x16d677(0x15e)]&&this[_0x16d677(0x14b)](_0x59dcd7);}[_0x26c75f(0x14b)](_0x39530f){const _0x107c43=_0x26c75f;this[_0x107c43(0x147)][_0x107c43(0x15e)]&&this[_0x107c43(0x141)][_0x107c43(0x154)](_0x528ebb=>{const _0x5764b0=_0x107c43;_0x528ebb[_0x5764b0(0x14b)](_0x39530f);});}[_0x26c75f(0x15b)](_0x1a9f1c,_0x527de9){const _0x3d698a=_0x26c75f;for(const _0x4b5349 of this[_0x3d698a(0x141)]){const _0x49f097=_0x4b5349;_0x49f097[_0x3d698a(0x146)]['id']===_0x1a9f1c&&_0x49f097[_0x3d698a(0x15b)](_0x527de9);}}[_0x26c75f(0x144)](_0x5f8627,_0x1bf296){const _0x2079ae=_0x26c75f;this[_0x2079ae(0x153)](_0x2079ae(0x14f),{'source':_0x5f8627,'resource':_0x1bf296});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x2895(){const _0x2fbb0c=['addResourceToContext','3132248uLhumY','ck-ai-chat-resources','fire','highlightText','_searchSection','searchInputVisibleFrom','search','children','_resourcesListView','has','40fpbfPm','add','ck\x20ck-search','source','ck-hidden','292SeWgKk','22HyVAUB','delegate','12aqgnsn','_searchView','useDefaultFiltering','setResources','aiChatResources','_source','render','_createResourcesListView','loadResources','25407aihBfz','18011772mNtGrJ','170599qRlILg','length','_skeletonLoader','div','loadSourceResources','bindTemplate','isLoading','setTemplate','_searchInputVisibleFrom','_latestLoadResourcesUid','getQuery','15837aWqFNB','4332865TZGtMM','updateResourceState','set','extendTemplate','2424GTTBiV','locale','_createSkeletonView','94912wfgsdc','_createSearchSection','_createSearchView'];_0x2895=function(){return _0x2fbb0c;};return _0x2895();}const _0x269e6e=_0xac12;(function(_0x1e3722,_0x91b0a6){const _0x5e69f7=_0xac12,_0x2ab4ef=_0x1e3722();while(!![]){try{const _0x20d198=-parseInt(_0x5e69f7(0xb1))/0x1*(-parseInt(_0x5e69f7(0x9d))/0x2)+-parseInt(_0x5e69f7(0x95))/0x3*(-parseInt(_0x5e69f7(0xb0))/0x4)+-parseInt(_0x5e69f7(0x96))/0x5+parseInt(_0x5e69f7(0xb3))/0x6*(parseInt(_0x5e69f7(0xa1))/0x7)+parseInt(_0x5e69f7(0x9a))/0x8*(parseInt(_0x5e69f7(0x88))/0x9)+-parseInt(_0x5e69f7(0xab))/0xa*(parseInt(_0x5e69f7(0x8a))/0xb)+-parseInt(_0x5e69f7(0x89))/0xc;if(_0x20d198===_0x91b0a6)break;else _0x2ab4ef['push'](_0x2ab4ef['shift']());}catch(_0x3624f2){_0x2ab4ef['push'](_0x2ab4ef['shift']());}}}(_0x2895,0xb721a));import{View as _0x44ce4e,ViewCollection as _0x1e6704}from'ckeditor5/src/ui.js';import{uid as _0x5a2f90}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x42a632}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x5065fa}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x9955fd,SKELETON_DEFINITIONS as _0x57480c}from'../../../../aicore/ui/aiskeleton.js';function _0xac12(_0x5a213b,_0x4b9520){const _0x28958e=_0x2895();return _0xac12=function(_0xac1244,_0x2fe202){_0xac1244=_0xac1244-0x85;let _0x138670=_0x28958e[_0xac1244];return _0x138670;},_0xac12(_0x5a213b,_0x4b9520);}export class AIChatContextResourcesView extends _0x44ce4e{[_0x269e6e(0xb4)];[_0x269e6e(0xa5)];[_0x269e6e(0x92)];[_0x269e6e(0xa9)];[_0x269e6e(0x8c)];[_0x269e6e(0xb8)];[_0x269e6e(0xa8)];[_0x269e6e(0x93)]=null;constructor(_0xf6dfaf,_0x5286a2){const _0x1557b7=_0x269e6e;super(_0xf6dfaf),this[_0x1557b7(0xb8)]=_0x5286a2[_0x1557b7(0xae)],this[_0x1557b7(0x92)]=_0x5286a2[_0x1557b7(0xa6)]??0x7,this[_0x1557b7(0x98)](_0x1557b7(0x90),!0x0),this[_0x1557b7(0xb4)]=this[_0x1557b7(0x9f)](),this[_0x1557b7(0xa5)]=this[_0x1557b7(0x9e)](),this[_0x1557b7(0xa9)]=this[_0x1557b7(0x86)](),this[_0x1557b7(0x8c)]=this[_0x1557b7(0x9c)](),this[_0x1557b7(0xa8)]=new _0x1e6704([this[_0x1557b7(0x8c)],this[_0x1557b7(0xa9)]]),this[_0x1557b7(0x91)]({'tag':_0x1557b7(0x8d),'attributes':{'class':_0x1557b7(0xa2)},'children':this[_0x1557b7(0xa8)]});}[_0x269e6e(0x9f)](){const _0x127142=_0x269e6e;return new _0x5065fa(this[_0x127142(0x9b)]);}[_0x269e6e(0x9e)](){const _0x227933=_0x269e6e,_0x1d72f6=new _0x44ce4e(this[_0x227933(0x9b)]);return _0x1d72f6[_0x227933(0x91)]({'tag':_0x227933(0x8d),'attributes':{'class':_0x227933(0xad)},'children':[this[_0x227933(0xb4)]]}),this[_0x227933(0xb4)]['on'](_0x227933(0xa7),(_0x229770,_0xb30ae6)=>{const _0xc4df9c=_0x227933;this[_0xc4df9c(0x87)](_0xb30ae6),this[_0xc4df9c(0xb8)][_0xc4df9c(0xb5)]&&this[_0xc4df9c(0xa9)][_0xc4df9c(0xa4)](_0xb30ae6);}),_0x1d72f6;}[_0x269e6e(0x86)](){const _0x119555=_0x269e6e,_0x3e1d15=new _0x42a632(this[_0x119555(0x9b)],this[_0x119555(0xb8)]);return _0x3e1d15[_0x119555(0xb2)](_0x119555(0xa0))['to'](this),_0x3e1d15[_0x119555(0x99)]({'attributes':{'class':this[_0x119555(0x8f)]['if'](_0x119555(0x90),_0x119555(0xaf))}}),_0x3e1d15;}[_0x269e6e(0x9c)](){const _0xb4990c=_0x269e6e,_0x1a8c76=new _0x9955fd(this[_0xb4990c(0x9b)],_0x57480c[_0xb4990c(0xb7)]);return _0x1a8c76[_0xb4990c(0x99)]({'attributes':{'class':[this[_0xb4990c(0x8f)]['if'](_0xb4990c(0x90),_0xb4990c(0xaf),_0x4c344f=>!_0x4c344f)]}}),_0x1a8c76;}[_0x269e6e(0x85)](){const _0x43a728=_0x269e6e;super[_0x43a728(0x85)](),this[_0x43a728(0x87)]('');}[_0x269e6e(0x87)](_0x386a64){const _0x5231ad=_0x269e6e,_0x24fdae=_0x5a2f90();this[_0x5231ad(0x93)]=_0x24fdae,this[_0x5231ad(0xa3)](_0x5231ad(0x8e),{'sourceId':this[_0x5231ad(0xb8)]['id'],'query':_0x386a64,'uid':_0x24fdae}),this[_0x5231ad(0x90)]=!0x0;}[_0x269e6e(0xb6)](_0x21daec,_0xabb168){const _0x412b4d=_0x269e6e;if(_0xabb168&&_0xabb168!==this[_0x412b4d(0x93)])return;const _0x844ec7=this[_0x412b4d(0xb8)][_0x412b4d(0xb5)]?this[_0x412b4d(0xb4)][_0x412b4d(0x94)]():'';this[_0x412b4d(0xa9)][_0x412b4d(0xb6)](_0x21daec,_0x844ec7),_0x21daec[_0x412b4d(0x8b)]>=this[_0x412b4d(0x92)]&&!this[_0x412b4d(0xa8)][_0x412b4d(0xaa)](this[_0x412b4d(0xa5)])&&this[_0x412b4d(0xa8)][_0x412b4d(0xac)](this[_0x412b4d(0xa5)],0x0),requestAnimationFrame(()=>{const _0xc726b4=_0x412b4d;this[_0xc726b4(0x90)]=!0x1;});}[_0x269e6e(0x97)](_0x34b301,_0x57d061){const _0x191d71=_0x269e6e;this[_0x191d71(0xa9)][_0x191d71(0x97)](_0x34b301,_0x57d061);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x43c8aa=_0x18fa;function _0x145e(){const _0x4fdb0c=['2641616dLCzWx','8196EUHhFr','ck-ai-chat-resources__item-title','set','execute','isInContext','_setupTemplate','label','URL','_iconView','type','1056588AltOnS','DOCUMENT','ck-ai-chat-resources__item','text','setTemplate','_titleView','277950kdzqIC','126WZeqLd','updateResourceState','_createIconView','trim','content','ck-ai-chat-resources__item--in-context','FILE','55594PwVXEu','resource','_createTitleView','span','div','getResourceIcon','138FPfWmm','298803JlrggT','bindTemplate','highlightText','isVisible','extendTemplate','TEXT','render','9OoXEhQ','1986030mFaygh','_updateIcon','ck-hidden','ck-ai-chat-resources__item__icon'];_0x145e=function(){return _0x4fdb0c;};return _0x145e();}(function(_0x28eccc,_0x9b3e72){const _0x1dc2cb=_0x18fa,_0x3c81f1=_0x28eccc();while(!![]){try{const _0x14545f=-parseInt(_0x1dc2cb(0x143))/0x1+parseInt(_0x1dc2cb(0x142))/0x2*(-parseInt(_0x1dc2cb(0x124))/0x3)+parseInt(_0x1dc2cb(0x12e))/0x4+parseInt(_0x1dc2cb(0x134))/0x5+-parseInt(_0x1dc2cb(0x135))/0x6*(parseInt(_0x1dc2cb(0x13c))/0x7)+parseInt(_0x1dc2cb(0x123))/0x8+parseInt(_0x1dc2cb(0x14a))/0x9*(parseInt(_0x1dc2cb(0x14b))/0xa);if(_0x14545f===_0x9b3e72)break;else _0x3c81f1['push'](_0x3c81f1['shift']());}catch(_0x2f04a8){_0x3c81f1['push'](_0x3c81f1['shift']());}}}(_0x145e,0x2f791));function _0x18fa(_0x3a9ff9,_0x50b535){const _0x145e61=_0x145e();return _0x18fa=function(_0x18faf6,_0x30f41a){_0x18faf6=_0x18faf6-0x120;let _0x5e5819=_0x145e61[_0x18faf6];return _0x5e5819;},_0x18fa(_0x3a9ff9,_0x50b535);}import{HighlightedTextView as _0x69f242,IconView as _0x28d040,ListItemView as _0x1ac6f3}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x579a47}from'es-toolkit/compat';import{AIContextItemType as _0x2cb5b4}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x57e199,IconCheck as _0xa5e2b4,IconDocument as _0x4efb61,IconDocumentOutline as _0x374918,IconLink as _0x5ba42a}from'@ckeditor/ckeditor5-icons';const zr=_0x43c8aa(0x130),Jr=_0x43c8aa(0x13a),Kr=_0x43c8aa(0x125),Mr=_0x43c8aa(0x122);export class AIChatResourceListItemView extends _0x1ac6f3{[_0x43c8aa(0x13d)];[_0x43c8aa(0x133)];[_0x43c8aa(0x12c)];constructor(_0x46b9cf,_0x445bff){const _0x248a81=_0x43c8aa;super(_0x46b9cf),this[_0x248a81(0x13d)]=_0x445bff,this[_0x248a81(0x126)](_0x248a81(0x128),!!_0x445bff[_0x248a81(0x128)]),this[_0x248a81(0x133)]=this[_0x248a81(0x13e)](),this[_0x248a81(0x12c)]=this[_0x248a81(0x137)](),this[_0x248a81(0x129)]();}[_0x43c8aa(0x149)](){const _0x2bd6d6=_0x43c8aa;super[_0x2bd6d6(0x149)]();}[_0x43c8aa(0x141)](_0x445819){const _0x49e84a=_0x43c8aa;if(_0x445819[_0x49e84a(0x128)])return _0xa5e2b4;switch(_0x445819[_0x49e84a(0x12d)]){case _0x2cb5b4[_0x49e84a(0x12f)]:return _0x4efb61;case _0x2cb5b4[_0x49e84a(0x12b)]:return _0x5ba42a;case _0x2cb5b4[_0x49e84a(0x13b)]:case _0x2cb5b4[_0x49e84a(0x148)]:return _0x57e199;default:return _0x374918;}}[_0x43c8aa(0x145)](_0x5c28b0){const _0x33b6d1=_0x43c8aa;if(!_0x5c28b0||''===_0x5c28b0[_0x33b6d1(0x138)]())return void this[_0x33b6d1(0x133)][_0x33b6d1(0x145)](null);const _0x4fe936=new RegExp(_0x579a47(_0x5c28b0),'gi');this[_0x33b6d1(0x133)][_0x33b6d1(0x145)](_0x4fe936);}[_0x43c8aa(0x136)](_0x1c5faf){const _0x4de4c6=_0x43c8aa;this[_0x4de4c6(0x13d)][_0x4de4c6(0x128)]=_0x1c5faf,this[_0x4de4c6(0x128)]=_0x1c5faf,this[_0x4de4c6(0x120)]();}[_0x43c8aa(0x13e)](){const _0x1e3cd6=_0x43c8aa,_0x5151d6=new _0x69f242();return _0x5151d6[_0x1e3cd6(0x131)]=this[_0x1e3cd6(0x13d)][_0x1e3cd6(0x12a)],_0x5151d6[_0x1e3cd6(0x147)]({'tag':_0x1e3cd6(0x13f),'attributes':{'class':[Kr]}}),_0x5151d6;}[_0x43c8aa(0x137)](){const _0x56fc7d=_0x43c8aa,_0xb6cf4e=new _0x28d040();return _0xb6cf4e[_0x56fc7d(0x139)]=this[_0x56fc7d(0x141)](this[_0x56fc7d(0x13d)]),_0xb6cf4e;}[_0x43c8aa(0x129)](){const _0x36a9e1=_0x43c8aa,_0x103550=this[_0x36a9e1(0x144)];this[_0x36a9e1(0x132)]({'tag':_0x36a9e1(0x140),'attributes':{'class':[zr,_0x103550['if'](_0x36a9e1(0x146),_0x36a9e1(0x121),_0x3b163f=>!_0x3b163f),_0x103550['if'](_0x36a9e1(0x128),Jr)]},'children':[{'tag':_0x36a9e1(0x140),'attributes':{'class':[Mr]},'children':[this[_0x36a9e1(0x12c)]]},this[_0x36a9e1(0x133)]],'on':{'click':_0x103550['to'](_0x36a9e1(0x127))}});}[_0x43c8aa(0x120)](){const _0x46c9ac=_0x43c8aa;this[_0x46c9ac(0x12c)][_0x46c9ac(0x139)]=this[_0x46c9ac(0x141)](this[_0x46c9ac(0x13d)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x47c63f=_0x3bd7;(function(_0x4689f9,_0x2145c0){const _0x446cce=_0x3bd7,_0x307827=_0x4689f9();while(!![]){try{const _0x50cd72=-parseInt(_0x446cce(0x211))/0x1*(parseInt(_0x446cce(0x201))/0x2)+parseInt(_0x446cce(0x21e))/0x3+-parseInt(_0x446cce(0x1fc))/0x4*(-parseInt(_0x446cce(0x213))/0x5)+parseInt(_0x446cce(0x1f5))/0x6*(parseInt(_0x446cce(0x21c))/0x7)+parseInt(_0x446cce(0x20e))/0x8+-parseInt(_0x446cce(0x1f7))/0x9+-parseInt(_0x446cce(0x20d))/0xa*(parseInt(_0x446cce(0x229))/0xb);if(_0x50cd72===_0x2145c0)break;else _0x307827['push'](_0x307827['shift']());}catch(_0x56caf8){_0x307827['push'](_0x307827['shift']());}}}(_0xcbc2,0x26be7));import{BalloonPanelView as _0x3ed24e,ButtonView as _0x3f49b9,clickOutsideHandler as _0x3f66b2,FormHeaderView as _0x3b926c}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x5e6fb0}from'@ckeditor/ckeditor5-icons';function _0xcbc2(){const _0x43c4b2=['_bodyCollection','getLimiterElement','_sourceResourceBalloons','show','getTargetElement','_addSourceResourceContent','once','destroy','get','6ontUfg','_createBalloonHeader','762714nvFbfe','updateResourceState','label','loadSourceResources','onBackToContext','4932PeGjxG','isAnyResourceBalloonVisible','onLoadSourceResources','populateSourceResourceBalloon','onResourceSelected','4532bWPWNv','_createSourceResourceBalloonPanel','addResourceToContext','children','extendTemplate','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','element','_locale','hide','source','resource','_config','10PvxwJp','1901896SNudQC','delete','set','121BntUDh','pin','335kSSVkZ','onBalloonClosed','_createBalloonResourcesView','clear','searchInputVisibleFrom','add','ck-button-icon\x20ck-button-back','setResources','execute','2178239lvqFVw','content','145941ANtkUX','_createBackButton','values','closeSourceResourceBalloon','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','ck-ai-chat-context-controls__source-balloon-panel','change:isLoading','_setupSingleResourceBalloonClickOutsideHandler','isVisible','_getResourcesViewFromBalloon','showSourceResourcesBalloon','1787995UxQjox'];_0xcbc2=function(){return _0x43c4b2;};return _0xcbc2();}import{getTranslation as _0x36ace9}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x5d035d}from'./aichatcontextresourcesview.js';function _0x3bd7(_0x46da1c,_0x36c9e2){const _0xcbc2c=_0xcbc2();return _0x3bd7=function(_0x3bd706,_0xf52a1){_0x3bd706=_0x3bd706-0x1f3;let _0x2a0c8f=_0xcbc2c[_0x3bd706];return _0x2a0c8f;},_0x3bd7(_0x46da1c,_0x36c9e2);}const Bc=_0x47c63f(0x223),mc=_0x47c63f(0x219),dc=_0x47c63f(0x206);export class AIChatResourcesBalloonView{[_0x47c63f(0x22c)]=new Map();[_0x47c63f(0x22a)];[_0x47c63f(0x208)];[_0x47c63f(0x20c)];constructor(_0x50e274,_0x10599a,_0x20a623){const _0x4bbcad=_0x47c63f;this[_0x4bbcad(0x208)]=_0x50e274,this[_0x4bbcad(0x22a)]=_0x10599a,this[_0x4bbcad(0x20c)]=_0x20a623;}[_0x47c63f(0x228)]({source:_0x97cd1a,withBackButton:_0x336b20}){const _0x3b6eac=_0x47c63f;let _0x49e9d6=this[_0x3b6eac(0x22c)][_0x3b6eac(0x1f4)](_0x97cd1a['id']);_0x49e9d6||(_0x49e9d6=this[_0x3b6eac(0x202)](),this[_0x3b6eac(0x22c)][_0x3b6eac(0x210)](_0x97cd1a['id'],_0x49e9d6),this[_0x3b6eac(0x225)](_0x49e9d6)),this[_0x3b6eac(0x22f)]({'balloonPanel':_0x49e9d6,'source':_0x97cd1a,'withBackButton':_0x336b20}),_0x49e9d6[_0x3b6eac(0x22d)]();const _0x30cf06=this[_0x3b6eac(0x20c)][_0x3b6eac(0x22e)]();_0x30cf06&&_0x49e9d6[_0x3b6eac(0x212)]({'target':_0x30cf06,'limiter':this[_0x3b6eac(0x20c)][_0x3b6eac(0x22b)]()});}[_0x47c63f(0x1ff)](_0x2e3d3d,_0x1d9e4c,_0x1232a8){const _0x284dcf=_0x47c63f,_0x32539d=this[_0x284dcf(0x22c)][_0x284dcf(0x1f4)](_0x2e3d3d);if(!_0x32539d)return;const _0x2872a0=this[_0x284dcf(0x227)](_0x32539d);_0x2872a0&&(_0x2872a0[_0x284dcf(0x21a)](_0x1d9e4c,_0x1232a8),_0x2872a0[_0x284dcf(0x230)](_0x284dcf(0x224),()=>{const _0x57e9ec=_0x284dcf;_0x32539d[_0x57e9ec(0x212)]({'target':this[_0x57e9ec(0x20c)][_0x57e9ec(0x22e)](),'limiter':this[_0x57e9ec(0x20c)][_0x57e9ec(0x22b)]()});}));}[_0x47c63f(0x221)](_0x4bfc20){const _0x58e79e=_0x47c63f,_0x3a1b03=this[_0x58e79e(0x22c)][_0x58e79e(0x1f4)](_0x4bfc20);_0x3a1b03&&requestAnimationFrame(()=>{const _0x3641c9=_0x58e79e;_0x3a1b03[_0x3641c9(0x209)](),this[_0x3641c9(0x22c)][_0x3641c9(0x20f)](_0x4bfc20),this[_0x3641c9(0x20c)][_0x3641c9(0x214)]();});}[_0x47c63f(0x1fd)](){const _0x471813=_0x47c63f;for(const _0x1bd4e1 of this[_0x471813(0x22c)][_0x471813(0x220)]())if(_0x1bd4e1[_0x471813(0x226)])return!0x0;return!0x1;}[_0x47c63f(0x1f8)](_0x4b8de5,_0x154ea6,_0x3369ca){const _0x5b2123=_0x47c63f,_0x532b64=this[_0x5b2123(0x22c)][_0x5b2123(0x1f4)](_0x4b8de5);if(!_0x532b64||!_0x532b64[_0x5b2123(0x226)])return;const _0x386a50=this[_0x5b2123(0x20c)][_0x5b2123(0x22e)]();if(!_0x386a50)return;_0x532b64[_0x5b2123(0x212)]({'target':_0x386a50,'limiter':this[_0x5b2123(0x20c)][_0x5b2123(0x22b)]()});const _0x4585ce=this[_0x5b2123(0x227)](_0x532b64);_0x4585ce&&_0x4585ce[_0x5b2123(0x1f8)](_0x154ea6,_0x3369ca);}[_0x47c63f(0x1f3)](){const _0x3f7102=_0x47c63f;for(const _0x12fee8 of this[_0x3f7102(0x22c)][_0x3f7102(0x220)]())_0x12fee8[_0x3f7102(0x1f3)]();this[_0x3f7102(0x22c)][_0x3f7102(0x216)]();}[_0x47c63f(0x202)](){const _0x46218b=_0x47c63f,_0x4ce55c=new _0x3ed24e(this[_0x46218b(0x208)]);return _0x4ce55c[_0x46218b(0x205)]({'attributes':{'class':Bc}}),this[_0x46218b(0x22a)][_0x46218b(0x218)](_0x4ce55c),_0x4ce55c;}[_0x47c63f(0x22f)]({balloonPanel:_0x3eafaa,source:_0x522638,withBackButton:_0x789cad}){const _0x3cb12e=_0x47c63f;_0x3eafaa[_0x3cb12e(0x21d)][_0x3cb12e(0x216)]();const _0x14d21d=this[_0x3cb12e(0x1f6)]({'balloonPanel':_0x3eafaa,'source':_0x522638,'withBackButton':_0x789cad});_0x3eafaa[_0x3cb12e(0x21d)][_0x3cb12e(0x218)](_0x14d21d);const _0x5d6501=this[_0x3cb12e(0x215)](_0x522638);_0x3eafaa[_0x3cb12e(0x21d)][_0x3cb12e(0x218)](_0x5d6501);}[_0x47c63f(0x1f6)]({balloonPanel:_0x585b42,source:_0x4ac12f,withBackButton:_0x326f69}){const _0x59e82=_0x47c63f,_0x20cfaf=new _0x3b926c(this[_0x59e82(0x208)],{'label':_0x4ac12f[_0x59e82(0x1f9)],'class':dc});return _0x326f69&&_0x20cfaf[_0x59e82(0x204)][_0x59e82(0x218)](this[_0x59e82(0x21f)](_0x585b42),0x0),_0x20cfaf;}[_0x47c63f(0x21f)](_0x4bb0b9){const _0x51ec0c=_0x47c63f,_0x1a79c9=new _0x3f49b9(this[_0x51ec0c(0x208)]);return _0x1a79c9[_0x51ec0c(0x210)]({'icon':_0x5e6fb0,'tooltip':_0x36ace9(this[_0x51ec0c(0x208)],_0x51ec0c(0x222)),'tooltipPosition':'n','class':mc}),_0x1a79c9['on'](_0x51ec0c(0x21b),()=>{const _0x24f730=_0x51ec0c;_0x4bb0b9[_0x24f730(0x209)](),this[_0x24f730(0x20c)][_0x24f730(0x1fb)]();}),_0x1a79c9;}[_0x47c63f(0x215)](_0x130926){const _0x23794a=_0x47c63f,_0x2dbfb2=new _0x5d035d(this[_0x23794a(0x208)],{'source':_0x130926,'searchInputVisibleFrom':this[_0x23794a(0x20c)][_0x23794a(0x217)]});return _0x2dbfb2['on'](_0x23794a(0x1fa),(_0x5b6140,_0x1a51cc)=>{const _0xeee7cc=_0x23794a;this[_0xeee7cc(0x20c)][_0xeee7cc(0x1fe)](_0x1a51cc);}),_0x2dbfb2['on'](_0x23794a(0x203),(_0x4d9960,_0x1ccfbb)=>{const _0x562b09=_0x23794a;this[_0x562b09(0x20c)][_0x562b09(0x200)](_0x1ccfbb[_0x562b09(0x20a)],_0x1ccfbb[_0x562b09(0x20b)]),this[_0x562b09(0x221)](_0x130926['id']);}),_0x2dbfb2;}[_0x47c63f(0x227)](_0x1d910f){const _0x372933=_0x47c63f,_0xf408d3=_0x1d910f[_0x372933(0x21d)][_0x372933(0x1f4)](0x1);return _0xf408d3 instanceof _0x5d035d?_0xf408d3:null;}[_0x47c63f(0x225)](_0x4295e5){const _0x4dd4f7=_0x47c63f;_0x3f66b2({'emitter':_0x4295e5,'contextElements':[_0x4295e5[_0x4dd4f7(0x207)]],'callback':()=>{const _0x2465ff=_0x4dd4f7;_0x4295e5[_0x2465ff(0x209)](),this[_0x2465ff(0x20c)][_0x2465ff(0x214)]();},'activator':()=>_0x4295e5[_0x4dd4f7(0x226)]});}}
|