@ckeditor/ckeditor5-ai 47.7.2 → 47.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x242a89=_0xba73;(function(_0x4c08ed,_0x2994bf){const _0x15ab97=_0xba73,_0x1c0973=_0x4c08ed();while(!![]){try{const _0x4bc536=parseInt(_0x15ab97(0x163))/0x1*(-parseInt(_0x15ab97(0x16c))/0x2)+parseInt(_0x15ab97(0x143))/0x3+parseInt(_0x15ab97(0x151))/0x4+parseInt(_0x15ab97(0x16e))/0x5+-parseInt(_0x15ab97(0x158))/0x6+parseInt(_0x15ab97(0x16a))/0x7+-parseInt(_0x15ab97(0x15c))/0x8*(parseInt(_0x15ab97(0x135))/0x9);if(_0x4bc536===_0x2994bf)break;else _0x1c0973['push'](_0x1c0973['shift']());}catch(_0x5c0ccd){_0x1c0973['push'](_0x1c0973['shift']());}}}(_0x4fa2,0x85513));import{FocusTracker as _0x11a2df,KeystrokeHandler as _0x109e9a}from'ckeditor5/src/utils.js';import{ButtonView as _0x343547,FocusCycler as _0x5e0be4,LabeledFieldView as _0x2316a5,View as _0x541c56,FormHeaderView as _0xf317fd,createLabeledInputText as _0x312ce2,submitHandler as _0x33ad7d}from'ckeditor5/src/ui.js';import{IconCheck as _0x2a7769,IconPreviousArrow as _0x37b907}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x24365b}from'../../../aicore/utils/common-translations.js';function _0xba73(_0x4cadeb,_0x1e4124){const _0x4fa239=_0x4fa2();return _0xba73=function(_0xba73db,_0x575606){_0xba73db=_0xba73db-0x12b;let _0x5d838f=_0x4fa239[_0xba73db];return _0x5d838f;},_0xba73(_0x4cadeb,_0x1e4124);}const oh=_0x242a89(0x139),ch=_0x242a89(0x157);function _0x4fa2(){const _0x2eed6e=['AI_CHAT_CONTEXT_URL_ADD_URL','cancel','clearError','9xAqoVc','div','_setupTemplate','value','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','_setupEventHandlers','6149766vTPEuP','submit','111834JhAfUD','setTemplate','4250220ogwKdg','render','length','clear','backButton','focus','add','listenTo','\x20ck-hidden','fire','_createConfirmButton','children','destroy','errorText','esc','set','AI_CHAT_CONTEXT_URL_PLACEHOLDER','input','9nBdNfL','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','submitUrl','change:withBackButton','ck-ai-chat-context-controls__url-form','ck-button-icon\x20ck-button-back','_createUrlInputField','isEnabled','focusTracker','confirmButton','shift+tab','_createBackButton','stop','execute','1304124EcWtXP','forEach','element','_updateConfirmButtonState','_handleSubmit','urlInputField','tab','trim','ck-button-icon','locale','fieldView','form','AI_CHAT_CONTEXT_URL_LABEL','createCollection','513080kBnLVy','focusCycler','keystrokes','getValue','_isValidUrl','_setupKeystrokes','ck-ai-chat-context-controls__url-input-section','779730XJgoQi','ck-labeled-field-view_empty','AI_CHAT_CONTEXT_URL_INVALID_ERROR','withBackButton','8898280FUUJPq','refreshBalloon','_focusables','setError'];_0x4fa2=function(){return _0x2eed6e;};return _0x4fa2();}export class AIChatContextPanelUrlInputView extends _0x541c56{[_0x242a89(0x13d)];[_0x242a89(0x153)];[_0x242a89(0x15e)];[_0x242a89(0x152)];[_0x242a89(0x148)];[_0x242a89(0x172)];[_0x242a89(0x13e)];constructor(_0x1435cf){const _0x4353a7=_0x242a89;super(_0x1435cf),this[_0x4353a7(0x13d)]=new _0x11a2df(),this[_0x4353a7(0x153)]=new _0x109e9a(),this[_0x4353a7(0x172)]=this[_0x4353a7(0x140)](),this[_0x4353a7(0x148)]=this[_0x4353a7(0x13b)](),this[_0x4353a7(0x13e)]=this[_0x4353a7(0x12d)](),this[_0x4353a7(0x15e)]=this[_0x4353a7(0x150)]([this[_0x4353a7(0x172)],this[_0x4353a7(0x148)],this[_0x4353a7(0x13e)]]),this[_0x4353a7(0x152)]=new _0x5e0be4({'focusables':this[_0x4353a7(0x15e)],'focusTracker':this[_0x4353a7(0x13d)],'keystrokeHandler':this[_0x4353a7(0x153)],'actions':{'focusPrevious':_0x4353a7(0x13f),'focusNext':_0x4353a7(0x149)}}),this[_0x4353a7(0x132)](_0x4353a7(0x15b),!0x0),this[_0x4353a7(0x165)](),this[_0x4353a7(0x169)](),this[_0x4353a7(0x156)]();}[_0x242a89(0x16f)](){const _0x3f28b4=_0x242a89;super[_0x3f28b4(0x16f)](),this[_0x3f28b4(0x15e)][_0x3f28b4(0x144)](_0x105eef=>{const _0x5be07c=_0x3f28b4;this[_0x5be07c(0x13d)][_0x5be07c(0x174)](_0x105eef[_0x5be07c(0x145)]),this[_0x5be07c(0x153)][_0x5be07c(0x175)](_0x105eef[_0x5be07c(0x145)]);}),_0x33ad7d({'view':this}),this[_0x3f28b4(0x173)]();}[_0x242a89(0x12f)](){const _0x341d2b=_0x242a89;super[_0x341d2b(0x12f)](),this[_0x341d2b(0x13d)][_0x341d2b(0x12f)](),this[_0x341d2b(0x153)][_0x341d2b(0x12f)]();}[_0x242a89(0x173)](){const _0x56e3f4=_0x242a89;this[_0x56e3f4(0x148)][_0x56e3f4(0x173)]();}[_0x242a89(0x154)](){const _0x4aaca1=_0x242a89;return this[_0x4aaca1(0x148)][_0x4aaca1(0x14d)][_0x4aaca1(0x145)]?.[_0x4aaca1(0x166)]?.[_0x4aaca1(0x14a)]()||'';}[_0x242a89(0x171)](){const _0x563868=_0x242a89;this[_0x563868(0x148)][_0x563868(0x14d)][_0x563868(0x145)][_0x563868(0x166)]='',this[_0x563868(0x148)][_0x563868(0x130)]=null,this[_0x563868(0x13e)][_0x563868(0x13c)]=!0x1;}[_0x242a89(0x15f)](_0x2db853){const _0x36f76f=_0x242a89;this[_0x36f76f(0x148)][_0x36f76f(0x130)]=_0x2db853,this[_0x36f76f(0x146)](),this[_0x36f76f(0x12c)](_0x36f76f(0x15d));}[_0x242a89(0x162)](){const _0x54caa4=_0x242a89;this[_0x54caa4(0x148)][_0x54caa4(0x130)]=null,this[_0x54caa4(0x146)]();}[_0x242a89(0x140)](){const _0x2bf27e=_0x242a89,_0x1382af=new _0x343547(this[_0x2bf27e(0x14c)]);return _0x1382af[_0x2bf27e(0x132)]({'icon':_0x37b907,'tooltip':_0x24365b(this[_0x2bf27e(0x14c)],_0x2bf27e(0x136)),'tooltipPosition':'n','class':[_0x2bf27e(0x13a)]}),this['on'](_0x2bf27e(0x138),(_0x1c2166,_0x5a3627,_0x889382)=>{const _0x4277bd=_0x2bf27e;_0x1382af[_0x4277bd(0x132)]({'class':[_0x4277bd(0x13a)+(_0x889382?'':_0x4277bd(0x12b))]});}),_0x1382af;}[_0x242a89(0x13b)](){const _0x248bfb=_0x242a89,_0xb0e89=new _0x2316a5(this[_0x248bfb(0x14c)],_0x312ce2);return _0xb0e89[_0x248bfb(0x132)]({'label':_0x24365b(this[_0x248bfb(0x14c)],_0x248bfb(0x14f)),'class':_0x248bfb(0x159)}),_0xb0e89[_0x248bfb(0x14d)][_0x248bfb(0x132)]({'placeholder':_0x24365b(this[_0x248bfb(0x14c)],_0x248bfb(0x133))}),_0xb0e89;}[_0x242a89(0x12d)](){const _0x2b11bd=_0x242a89,_0x554004=new _0x343547(this[_0x2b11bd(0x14c)]);return _0x554004[_0x2b11bd(0x132)]({'icon':_0x2a7769,'tooltip':_0x24365b(this[_0x2b11bd(0x14c)],_0x2b11bd(0x160)),'tooltipPosition':'n','class':_0x2b11bd(0x14b),'type':_0x2b11bd(0x16b),'isEnabled':!0x1}),_0x554004;}[_0x242a89(0x165)](){const _0x19ed3e=_0x242a89,_0x80353f=new _0xf317fd(this[_0x19ed3e(0x14c)],{'label':_0x24365b(this[_0x19ed3e(0x14c)],_0x19ed3e(0x160)),'class':_0x19ed3e(0x167)});_0x80353f[_0x19ed3e(0x12e)][_0x19ed3e(0x174)](this[_0x19ed3e(0x172)],0x0),this[_0x19ed3e(0x16d)]({'tag':_0x19ed3e(0x14e),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0x80353f,{'tag':_0x19ed3e(0x164),'attributes':{'class':ch},'children':[this[_0x19ed3e(0x148)],this[_0x19ed3e(0x13e)]]}]});}[_0x242a89(0x169)](){const _0x2fd517=_0x242a89;this[_0x2fd517(0x172)]['on'](_0x2fd517(0x142),()=>{const _0x12c6c6=_0x2fd517;this[_0x12c6c6(0x171)](),this[_0x12c6c6(0x12c)](_0x12c6c6(0x161));}),this[_0x2fd517(0x148)][_0x2fd517(0x14d)]['on'](_0x2fd517(0x134),()=>{const _0x5115be=_0x2fd517;this[_0x5115be(0x162)](),this[_0x5115be(0x146)](),this[_0x5115be(0x12c)](_0x5115be(0x15d));}),this['on'](_0x2fd517(0x16b),_0x3dddfa=>{const _0x3720b3=_0x2fd517;_0x3dddfa[_0x3720b3(0x141)](),this[_0x3720b3(0x147)]();});}[_0x242a89(0x156)](){const _0x5d65b0=_0x242a89;this[_0x5d65b0(0x153)][_0x5d65b0(0x132)](_0x5d65b0(0x131),(_0x498442,_0x321573)=>{const _0x51c31d=_0x5d65b0;this[_0x51c31d(0x171)](),this[_0x51c31d(0x12c)](_0x51c31d(0x161)),_0x321573();});}[_0x242a89(0x147)](){const _0x542b70=_0x242a89,_0x1bbcdc=this[_0x542b70(0x154)]()[_0x542b70(0x14a)]();_0x1bbcdc?this[_0x542b70(0x155)](_0x1bbcdc)?(this[_0x542b70(0x162)](),this[_0x542b70(0x12c)](_0x542b70(0x137),_0x1bbcdc)):this[_0x542b70(0x15f)](_0x24365b(this[_0x542b70(0x14c)],_0x542b70(0x15a))):this[_0x542b70(0x15f)](_0x24365b(this[_0x542b70(0x14c)],_0x542b70(0x168)));}[_0x242a89(0x146)](){const _0x52fe46=_0x242a89,_0x15ddc8=this[_0x52fe46(0x154)]()[_0x52fe46(0x14a)](),_0x3809ec=!!this[_0x52fe46(0x148)][_0x52fe46(0x130)];this[_0x52fe46(0x13e)][_0x52fe46(0x13c)]=_0x15ddc8[_0x52fe46(0x170)]>0x0&&!_0x3809ec;}[_0x242a89(0x155)](_0x33ff3d){try{return!!new URL(_0x33ff3d);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x59748d=_0x58c6;function _0x5086(){const _0x44958c=['AI_CHAT_CONTEXT_FILE_LABEL','pin','ck-ai-chat-controls_context_show-more-button','element','done','showSourceResourcesBalloon','isAnyResourceBalloonVisible','_createUrlBalloonPanelView','isReadOnly','fire','updateResourceState','ck-ai-chat-context-controls__add-context-balloon-panel','319896DxIqiH','show','_handleUrlSubmit','ck-ai-chat','addUrlToContext','render','ck-ai-chat-context-controls','_resourcesBalloonView','addContextButtonView','tooltip','ck-ai-chat-context-controls__pending-contexts','southArrowNorthWest','source','_setupAddContextBalloonClickOutsideHandler','get','280695bazWMc','_getLimiterElement','removeContextItemChip','isEnabled','setTemplate','add','_overflowManager','removeContextItem','ck-ai-chat-context-controls__url-balloon-panel','addFileToContext','_setupAllBalloonClickOutsideHandlers','northArrowSouth','_hasExactlyOneSource','find','northArrowSouthEast','length','createCollection','menuitem','hide','extendTemplate','showUrlBalloonPanel','isLoading','_showSourceResourcesBalloon','_handleAddContextButtonClick','setAddContextOptions','12QuCkUY','setContextItemLoading','closeSourceResourceBalloon','isVisible','hideAddContextBalloonPanel','customItem','_currentContextsChips','label','_bindEventHandlers','northArrowSouthWest','ck-ai-chat-context-controls__balloon-button-source','_conversationContextsChips','ck-ai-chat-context-controls__add-context-button','_addContextBalloonConfig','reorganizeChips','_setupTemplate','_setAddContextButtonEnabled','ck-ai-chat-context-controls__balloon-button','document','_createBalloonButton','4tOZoZB','showAddContextBalloonPanel','addDocumentToContext','12615570PBTLon','setContainerElement','refreshBalloon','clear','cancel','_createBaseBalloonPanel','addResourceToContext','2220654uSQKBM','current','__arrow','198lYjItn','_urlInputView','withBackButton','overflowChips','southArrowNorthEast','_setBalloonPanelContent','clearCurrentContextItems','body','content','bind','_createResourcesBalloonView','_addUrlContent','searchInputVisibleFrom','_addContextBalloonPanelView','destroy','6CpYNtr','AI_CHAT_CONTEXT_ADD_CONTEXT','ck-ai-chat-context-controls__show-more-balloon-panel','execute','clearConversationContextItems','children','_addContextToCollection','8108248bPaIhf','southArrowNorth','hideUrlBalloonPanel','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','AI_CHAT_CONTEXT_URL_LABEL','_createArrowView','urls','closest','locale','setConversationContext','_removeContextFromCollection','enabled','focus','_urlBalloonPanelView','buttonView','customItems','defaultPositions','set','_setupUrlBalloonClickOutsideHandler','ck-ai-chat-context-chips-wrapper-balloon','conversation','62366xyMBWc','sources','isOn','9WKMLzL','icon','addContextItem','bodyCollection','_createContextButton','ck-ai-chat-controls-button','type','ck-reset_all-excluded','balloonView','3070739rfPGqM','_toggleAddContextBalloon','remove','isHidden','_createAddContextButtonView','_createAddContextBalloonPanelView','executeCustomItemCallback','submitUrl','files','div','loadSourceResources','populateSourceResourceBalloon','arrowView'];_0x5086=function(){return _0x44958c;};return _0x5086();}(function(_0x1c33f3,_0x500a6f){const _0xf75fd7=_0x58c6,_0x5585d6=_0x1c33f3();while(!![]){try{const _0x598bd9=-parseInt(_0xf75fd7(0x1f8))/0x1+-parseInt(_0xf75fd7(0x1c0))/0x2*(-parseInt(_0xf75fd7(0x1ca))/0x3)+parseInt(_0xf75fd7(0x1ac))/0x4*(-parseInt(_0xf75fd7(0x193))/0x5)+-parseInt(_0xf75fd7(0x1dc))/0x6*(-parseInt(_0xf75fd7(0x16b))/0x7)+-parseInt(_0xf75fd7(0x1e3))/0x8*(-parseInt(_0xf75fd7(0x162))/0x9)+-parseInt(_0xf75fd7(0x1c3))/0xa+parseInt(_0xf75fd7(0x1cd))/0xb*(-parseInt(_0xf75fd7(0x184))/0xc);if(_0x598bd9===_0x500a6f)break;else _0x5585d6['push'](_0x5585d6['shift']());}catch(_0x5909c4){_0x5585d6['push'](_0x5585d6['shift']());}}}(_0x5086,0xea7cc));import{BalloonPanelView as _0xb11eb8,ButtonView as _0x472432,clickOutsideHandler as _0x413bd1,FileDialogButtonView as _0x22554e,IconView as _0x16b6bc,View as _0x55bd1d}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x2fc908,IconDocument as _0x5bc856,IconDocumentOutline as _0x29b33d,IconDropdownArrow as _0x293270,IconLink as _0x1829b8,IconPaperClip as _0x5f2a49}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x2657df}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x58579e}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x162730}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x37e344}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x2dd124}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x59748d(0x1c2),_0x59748d(0x19c),_0x59748d(0x188),_0x59748d(0x1c9),_0x59748d(0x19a),_0x59748d(0x175),_0x59748d(0x171)];function _0x58c6(_0x141cf4,_0x20e939){const _0x5086c5=_0x5086();return _0x58c6=function(_0x58c63c,_0x206431){_0x58c63c=_0x58c63c-0x161;let _0x117ba3=_0x5086c5[_0x58c63c];return _0x117ba3;},_0x58c6(_0x141cf4,_0x20e939);}const Ro=_0x59748d(0x18a),Oo=_0x59748d(0x18e),Uo=_0x59748d(0x183),Lo=_0x59748d(0x1b8),No=_0x59748d(0x19b),Mo=_0x59748d(0x1bd),Ho=_0x59748d(0x1b6),jo=_0x59748d(0x167),Fo=_0x59748d(0x1f6),Xo=_0x59748d(0x17a),yo=_0x59748d(0x1de),Do=_0x59748d(0x187),$o=[_0xb11eb8[_0x59748d(0x1f3)][_0x59748d(0x1b5)],_0xb11eb8[_0x59748d(0x1f3)][_0x59748d(0x19e)],_0xb11eb8[_0x59748d(0x1f3)][_0x59748d(0x1a1)],_0xb11eb8[_0x59748d(0x1f3)][_0x59748d(0x18f)],_0xb11eb8[_0x59748d(0x1f3)][_0x59748d(0x1e4)],_0xb11eb8[_0x59748d(0x1f3)][_0x59748d(0x1d1)]];export class AIChatContextPanelView extends _0x55bd1d{[_0x59748d(0x18c)];[_0x59748d(0x1b2)]=this[_0x59748d(0x1a3)]();[_0x59748d(0x1b7)]=this[_0x59748d(0x1a3)]();[_0x59748d(0x199)];[_0x59748d(0x1da)];[_0x59748d(0x1f0)];[_0x59748d(0x1ce)];[_0x59748d(0x18b)];[_0x59748d(0x1b9)];[_0x59748d(0x19f)]=!0x1;[_0x59748d(0x165)];constructor(_0x1d94f2,_0x503fe7){const _0x48099e=_0x59748d;super(_0x1d94f2),this[_0x48099e(0x165)]=_0x503fe7[_0x48099e(0x165)],this[_0x48099e(0x1b2)]=this[_0x48099e(0x1a3)](),this[_0x48099e(0x1b7)]=this[_0x48099e(0x1a3)](),this[_0x48099e(0x18c)]=this[_0x48099e(0x16f)](_0x1d94f2),this[_0x48099e(0x1da)]=this[_0x48099e(0x170)](_0x1d94f2),this[_0x48099e(0x1f0)]=this[_0x48099e(0x17f)](_0x1d94f2),this[_0x48099e(0x18b)]=this[_0x48099e(0x1d7)](_0x1d94f2,_0x503fe7);const _0xeccae1={'cssClasses':{'showMoreButton':Xo,'showMoreBalloon':yo,'overflowContainer':Fo,'controlsButton':jo}};this[_0x48099e(0x199)]=new _0x162730(_0x1d94f2,this[_0x48099e(0x1b2)],_0xeccae1,this[_0x48099e(0x165)],this),this[_0x48099e(0x1b9)]={'buttonView':this[_0x48099e(0x18c)],'balloonView':this[_0x48099e(0x1da)],'hideMethod':this[_0x48099e(0x1b0)][_0x48099e(0x1d6)](this),'showMethod':this[_0x48099e(0x1c1)][_0x48099e(0x1d6)](this)},this[_0x48099e(0x1bb)](),this[_0x48099e(0x1b4)]();}[_0x59748d(0x189)](){const _0x38b249=_0x59748d;super[_0x38b249(0x189)](),this[_0x38b249(0x19d)](),this[_0x38b249(0x199)][_0x38b249(0x1c4)](this[_0x38b249(0x17b)]),this[_0x38b249(0x199)][_0x38b249(0x1ba)]();}[_0x59748d(0x1db)](){const _0x453307=_0x59748d;super[_0x453307(0x1db)](),this[_0x453307(0x199)][_0x453307(0x1db)](),this[_0x453307(0x18b)][_0x453307(0x1db)]();}[_0x59748d(0x164)](_0x3a383e,_0x45f6ca){const _0x3a5927=_0x59748d,_0x3e4d3c=this[_0x3a5927(0x166)](_0x3a383e,_0x3a5927(0x1cb),!0x0,_0x45f6ca);this[_0x3a5927(0x1e2)](_0x3e4d3c,this[_0x3a5927(0x1b2)]),this[_0x3a5927(0x199)][_0x3a5927(0x1ba)]();}[_0x59748d(0x19a)](_0x279ae3){const _0x2767c8=_0x59748d;this[_0x2767c8(0x1ed)](_0x279ae3,this[_0x2767c8(0x1b2)]),this[_0x2767c8(0x1ed)](_0x279ae3,this[_0x2767c8(0x199)][_0x2767c8(0x1d0)]),this[_0x2767c8(0x199)][_0x2767c8(0x1ba)]();}[_0x59748d(0x1ad)](_0x5970e0,_0x5117b9){const _0x27d16b=_0x59748d;let _0x262579=this[_0x27d16b(0x1b2)][_0x27d16b(0x1a0)](_0xb91982=>_0xb91982['id']===_0x5970e0);_0x262579||(_0x262579=this[_0x27d16b(0x199)][_0x27d16b(0x1d0)][_0x27d16b(0x1a0)](_0x22e4d8=>_0x22e4d8['id']===_0x5970e0)),_0x262579&&(_0x262579[_0x27d16b(0x1a8)]=_0x5117b9);}[_0x59748d(0x1ec)](_0x582e72){const _0x1d1641=_0x59748d;this[_0x1d1641(0x1b7)][_0x1d1641(0x1c6)]();for(const _0x17cdb6 of _0x582e72){const _0xaed873=this[_0x1d1641(0x166)](_0x17cdb6,_0x1d1641(0x1f7),!0x1,!0x1);this[_0x1d1641(0x1e2)](_0xaed873,this[_0x1d1641(0x1b7)]);}}[_0x59748d(0x1d3)](){const _0x1f6a84=_0x59748d;this[_0x1f6a84(0x1b2)][_0x1f6a84(0x1c6)](),this[_0x1f6a84(0x199)][_0x1f6a84(0x1c6)]();}[_0x59748d(0x1e0)](){const _0x5079fb=_0x59748d;this[_0x5079fb(0x1b7)][_0x5079fb(0x1c6)]();}[_0x59748d(0x182)](_0x1269d4,_0x3f77a2,_0x8abd08){const _0x27188a=_0x59748d;this[_0x27188a(0x18b)][_0x27188a(0x182)](_0x1269d4,_0x3f77a2,_0x8abd08);}[_0x59748d(0x1b0)](){const _0x34b710=_0x59748d;this[_0x34b710(0x16c)](!0x1);}[_0x59748d(0x1c1)](){const _0xe98020=_0x59748d;this[_0xe98020(0x16c)](!0x0);}[_0x59748d(0x1e5)](){const _0x5b366c=_0x59748d;this[_0x5b366c(0x1f0)][_0x5b366c(0x1a5)](),this[_0x5b366c(0x18c)][_0x5b366c(0x161)]=!0x1,this[_0x5b366c(0x1ce)]&&this[_0x5b366c(0x1ce)][_0x5b366c(0x1c6)]();}[_0x59748d(0x1a7)](){const _0x5a8691=_0x59748d;this[_0x5a8691(0x1f0)][_0x5a8691(0x185)](),this[_0x5a8691(0x18c)][_0x5a8691(0x161)]=!0x0;}[_0x59748d(0x1a9)]({source:_0x672d7e,withBackButton:_0x52ac00}){const _0x132ac5=_0x59748d;this[_0x132ac5(0x18b)][_0x132ac5(0x17d)]({'source':_0x672d7e,'withBackButton':_0x52ac00}),this[_0x132ac5(0x18c)][_0x132ac5(0x161)]=!0x0;}[_0x59748d(0x176)](_0x5dc8a8,_0x45394f,_0xbf4715,_0x72d5a3){const _0x5268e3=_0x59748d;this[_0x5268e3(0x18b)][_0x5268e3(0x176)](_0x5dc8a8,_0xbf4715,_0x72d5a3);}[_0x59748d(0x1ae)](_0x19b827){const _0x1ff1a6=_0x59748d;this[_0x1ff1a6(0x18b)][_0x1ff1a6(0x1ae)](_0x19b827),this[_0x1ff1a6(0x18c)][_0x1ff1a6(0x161)]=!0x1;}[_0x59748d(0x1ab)](_0x19e96a){const _0x2a00c9=_0x59748d;this[_0x2a00c9(0x1d2)](this[_0x2a00c9(0x1da)],this[_0x2a00c9(0x1eb)],_0x19e96a),this[_0x2a00c9(0x1bc)](_0x19e96a);}[_0x59748d(0x1bc)](_0x28fee5){const _0x2bc13f=_0x59748d,_0x41c75b=!_0x28fee5[_0x2bc13f(0x1be)][_0x2bc13f(0x16e)]&&_0x28fee5[_0x2bc13f(0x1be)][_0x2bc13f(0x1ee)],_0x324160=_0x28fee5[_0x2bc13f(0x1e9)][_0x2bc13f(0x1ee)],_0x265d76=_0x28fee5[_0x2bc13f(0x173)][_0x2bc13f(0x1ee)],_0x3887ef=_0x28fee5[_0x2bc13f(0x1f9)][_0x2bc13f(0x1a2)]>0x0,_0x3d4f4f=_0x28fee5[_0x2bc13f(0x1f2)]&&_0x28fee5[_0x2bc13f(0x1f2)][_0x2bc13f(0x1a2)]>0x0;this[_0x2bc13f(0x18c)][_0x2bc13f(0x196)]=_0x41c75b||_0x324160||_0x265d76||_0x3887ef||_0x3d4f4f;}[_0x59748d(0x1bb)](){const _0x195807=_0x59748d;this[_0x195807(0x197)]({'tag':_0x195807(0x174),'attributes':{'class':[Ro,_0x195807(0x169)]},'children':[{'tag':_0x195807(0x174),'attributes':{'class':Oo},'children':this[_0x195807(0x1b2)]}]});}[_0x59748d(0x1b4)](){const _0x2f11da=_0x59748d;this[_0x2f11da(0x18c)]['on'](_0x2f11da(0x1df),()=>{const _0x3ef375=_0x2f11da;this[_0x3ef375(0x1aa)]();});}[_0x59748d(0x16f)](_0x2335ba){const _0xd6a9aa=_0x59748d,_0x532918=new _0x472432(_0x2335ba);return _0x532918[_0xd6a9aa(0x1f4)]({'label':_0x37e344(_0x2335ba,_0xd6a9aa(0x1dd)),'class':jo+'\x20'+Lo,'icon':_0x5f2a49,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x532918;}[_0x59748d(0x170)](_0xb3d03f){const _0x4ab3f3=_0x59748d;return this[_0x4ab3f3(0x1c8)](_0xb3d03f,Uo);}[_0x59748d(0x17f)](_0x5a0903){const _0x267fdd=_0x59748d,_0x2ef296=this[_0x267fdd(0x1c8)](_0x5a0903,No);return this[_0x267fdd(0x1d8)](_0x2ef296,_0x5a0903),_0x2ef296;}[_0x59748d(0x1d7)](_0x1c9042,_0x51ce0e){const _0x6197b4=_0x59748d,_0x4c589f={'searchInputVisibleFrom':_0x51ce0e[_0x6197b4(0x1d9)],'onBackToContext':()=>{const _0x118d7d=_0x6197b4;this[_0x118d7d(0x1c1)](),this[_0x118d7d(0x1da)][_0x118d7d(0x179)]({'target':this[_0x118d7d(0x18c)][_0x118d7d(0x17b)],'limiter':this[_0x118d7d(0x194)](),'positions':$o});},'onResourceSelected':(_0x4dd6e8,_0x199796)=>{const _0xafa920=_0x6197b4;this[_0xafa920(0x181)](_0xafa920(0x1c9),{'source':_0x4dd6e8,'resource':_0x199796});},'onLoadSourceResources':_0x13b0e8=>{const _0x2fd4b5=_0x6197b4;this[_0x2fd4b5(0x181)](_0x2fd4b5(0x175),_0x13b0e8);},'onBalloonClosed':()=>{const _0x2169ce=_0x6197b4;this[_0x2169ce(0x18c)][_0x2169ce(0x161)]=!0x1;},'getLimiterElement':()=>this[_0x6197b4(0x194)](),'getTargetElement':()=>this[_0x6197b4(0x18c)][_0x6197b4(0x17b)]};return new _0x2dd124(_0x1c9042,_0x51ce0e[_0x6197b4(0x165)],_0x4c589f);}[_0x59748d(0x194)](){const _0x33ad09=_0x59748d;return this[_0x33ad09(0x17b)]?.[_0x33ad09(0x1ea)]('.'+Do)||document[_0x33ad09(0x1d4)];}[_0x59748d(0x1c8)](_0x259534,_0x31ac78){const _0x2bbdfd=_0x59748d,_0x2b073e=new _0xb11eb8(_0x259534);return _0x2b073e[_0x2bbdfd(0x1a6)]({'attributes':{'class':_0x31ac78}}),this[_0x2bbdfd(0x165)][_0x2bbdfd(0x198)](_0x2b073e),_0x2b073e;}[_0x59748d(0x1d2)](_0x55a1d3,_0x4d6f42,_0x19d67d){const _0x542afc=_0x59748d;if(_0x55a1d3[_0x542afc(0x1d5)][_0x542afc(0x1c6)](),!_0x19d67d[_0x542afc(0x1be)][_0x542afc(0x16e)]&&_0x19d67d[_0x542afc(0x1be)][_0x542afc(0x1ee)]){const _0xc28543=this[_0x542afc(0x1bf)](_0x4d6f42,{'label':_0x37e344(_0x4d6f42,_0x542afc(0x1e6)),'icon':_0x5bc856});_0xc28543['on'](_0x542afc(0x1df),()=>{const _0x439317=_0x542afc;this[_0x439317(0x181)](_0x439317(0x1c2)),this[_0x439317(0x1b0)]();}),_0x55a1d3[_0x542afc(0x1d5)][_0x542afc(0x198)](_0xc28543);}if(_0x19d67d[_0x542afc(0x1e9)][_0x542afc(0x1ee)]){const _0x5b7e12=this[_0x542afc(0x1bf)](_0x4d6f42,{'label':_0x37e344(_0x4d6f42,_0x542afc(0x1e7)),'icon':_0x1829b8});_0x5b7e12['on'](_0x542afc(0x1df),()=>{const _0x34fd0f=_0x542afc;this[_0x34fd0f(0x1b0)](),this[_0x34fd0f(0x1a7)](),this[_0x34fd0f(0x1f0)][_0x34fd0f(0x179)]({'target':this[_0x34fd0f(0x18c)][_0x34fd0f(0x17b)],'limiter':this[_0x34fd0f(0x194)](),'positions':$o}),this[_0x34fd0f(0x1ce)][_0x34fd0f(0x1ef)]();}),_0x55a1d3[_0x542afc(0x1d5)][_0x542afc(0x198)](_0x5b7e12);}if(_0x19d67d[_0x542afc(0x173)][_0x542afc(0x1ee)]){const _0x3ac099=new _0x22554e(_0x4d6f42);_0x3ac099[_0x542afc(0x1f4)]({'label':_0x37e344(_0x4d6f42,_0x542afc(0x178)),'icon':_0x2fc908,'withText':!0x0,'tooltip':!0x0,'class':Mo,'allowMultipleFiles':!0x0}),_0x3ac099['on'](_0x542afc(0x1df),()=>{const _0x16aa60=_0x542afc;this[_0x16aa60(0x1b0)]();}),_0x3ac099['on'](_0x542afc(0x17c),(_0x43a50d,_0x152b13)=>{const _0x791086=_0x542afc;this[_0x791086(0x181)](_0x791086(0x19c),_0x152b13);}),_0x3ac099[_0x542afc(0x18d)]=!0x0,_0x55a1d3[_0x542afc(0x1d5)][_0x542afc(0x198)](_0x3ac099);}for(const _0x405c55 of _0x19d67d[_0x542afc(0x1f9)]){const _0x1ac404=this[_0x542afc(0x1bf)](_0x4d6f42,{'label':_0x405c55[_0x542afc(0x1b3)],'icon':_0x405c55[_0x542afc(0x163)]||_0x29b33d,'type':_0x542afc(0x190)});_0x55a1d3[_0x542afc(0x1d5)][_0x542afc(0x198)](_0x1ac404),_0x1ac404['on'](_0x542afc(0x1df),()=>{const _0x479bff=_0x542afc;this[_0x479bff(0x1b0)](),this[_0x479bff(0x1a9)]({'source':_0x405c55,'withBackButton':!this[_0x479bff(0x19f)]});});}for(const _0x57188e of _0x19d67d[_0x542afc(0x1f2)]||[]){const _0x3e47d1=this[_0x542afc(0x1bf)](_0x4d6f42,{'label':_0x57188e[_0x542afc(0x1b3)],'icon':_0x57188e[_0x542afc(0x163)]||_0x29b33d,'type':_0x542afc(0x1b1)});_0x55a1d3[_0x542afc(0x1d5)][_0x542afc(0x198)](_0x3e47d1),_0x3e47d1['on'](_0x542afc(0x1df),()=>{const _0xab4637=_0x542afc;this[_0xab4637(0x1b0)](),this[_0xab4637(0x181)](_0xab4637(0x171),_0x57188e);});}this[_0x542afc(0x19f)]=0x1===_0x55a1d3[_0x542afc(0x1d5)][_0x542afc(0x1a2)],this[_0x542afc(0x1ce)][_0x542afc(0x1cf)]=!this[_0x542afc(0x19f)];}[_0x59748d(0x1d8)](_0x5ed389,_0x48eb0a){const _0x483e92=_0x59748d;this[_0x483e92(0x1ce)]=new _0x58579e(_0x48eb0a),this[_0x483e92(0x1ce)]['on'](_0x483e92(0x172),(_0xa69432,_0x34e7c6)=>{const _0x4520e4=_0x483e92;this[_0x4520e4(0x186)](_0x34e7c6);}),this[_0x483e92(0x1ce)]['on'](_0x483e92(0x1c7),()=>{const _0x597be3=_0x483e92;this[_0x597be3(0x1e5)](),this[_0x597be3(0x19f)]||(this[_0x597be3(0x1c1)](),this[_0x597be3(0x1da)][_0x597be3(0x179)]({'target':this[_0x597be3(0x18c)][_0x597be3(0x17b)],'limiter':this[_0x597be3(0x194)](),'positions':$o}));}),this[_0x483e92(0x1ce)]['on'](_0x483e92(0x1c5),()=>{const _0x29ef63=_0x483e92;this[_0x29ef63(0x1f0)][_0x29ef63(0x1af)]&&this[_0x29ef63(0x1f0)][_0x29ef63(0x179)]({'target':this[_0x29ef63(0x18c)][_0x29ef63(0x17b)],'limiter':this[_0x29ef63(0x194)](),'positions':$o});}),_0x5ed389[_0x483e92(0x1d5)][_0x483e92(0x198)](this[_0x483e92(0x1ce)]);}[_0x59748d(0x1bf)](_0x5de837,_0x24cfc1){const _0x56d414=_0x59748d,_0x34acf1=_0x56d414(0x190)===_0x24cfc1[_0x56d414(0x168)]?new SourcesBalloonButtonView(_0x5de837):new _0x472432(_0x5de837);return _0x34acf1[_0x56d414(0x1f4)]({'label':_0x24cfc1[_0x56d414(0x1b3)],'icon':_0x24cfc1[_0x56d414(0x163)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Mo}),_0x34acf1;}[_0x59748d(0x19d)](){const _0x4e5f84=_0x59748d;this[_0x4e5f84(0x191)](),this[_0x4e5f84(0x1f5)]();}[_0x59748d(0x1f5)](){const _0x3acc7f=_0x59748d;_0x413bd1({'emitter':this[_0x3acc7f(0x1f0)],'contextElements':[this[_0x3acc7f(0x1f0)][_0x3acc7f(0x17b)]],'callback':()=>{const _0xf56ac9=_0x3acc7f;this[_0xf56ac9(0x1e5)]();},'activator':()=>this[_0x3acc7f(0x1f0)][_0x3acc7f(0x1af)]});}[_0x59748d(0x16c)](_0x51e617){const _0x561a7e=_0x59748d,_0x5dfe04=this[_0x561a7e(0x1b9)];_0x5dfe04[_0x561a7e(0x1f1)][_0x561a7e(0x161)]=_0x51e617,_0x51e617?_0x5dfe04[_0x561a7e(0x16a)][_0x561a7e(0x185)]():_0x5dfe04[_0x561a7e(0x16a)][_0x561a7e(0x1a5)]();}[_0x59748d(0x191)](){const _0x3d805d=_0x59748d,{balloonView:_0x39ab54,buttonView:_0x395e06,hideMethod:_0x4e5f35}=this[_0x3d805d(0x1b9)];_0x413bd1({'emitter':_0x39ab54,'contextElements':[_0x39ab54[_0x3d805d(0x17b)],_0x395e06[_0x3d805d(0x17b)]],'callback':()=>{_0x4e5f35();},'activator':()=>_0x395e06[_0x3d805d(0x161)]&&!this[_0x3d805d(0x1f0)][_0x3d805d(0x1af)]&&!this[_0x3d805d(0x18b)][_0x3d805d(0x17e)]()});}[_0x59748d(0x166)](_0x27f2dc,_0x2fa1af,_0x1091b0=!0x1,_0x2c3f9e=!0x1){const _0x5b4359=_0x59748d,_0x418dd3=_0x5b4359(0x1f7)===_0x2fa1af||!0x0===_0x27f2dc[_0x5b4359(0x180)],_0x15c3ee=new _0x2657df(this[_0x5b4359(0x1eb)],_0x27f2dc,_0x418dd3,_0x1091b0,_0x2c3f9e);return _0x418dd3||_0x15c3ee['on'](_0x5b4359(0x195),()=>{const _0x125151=_0x5b4359;this[_0x125151(0x181)](_0x125151(0x19a),_0x15c3ee['id']);}),_0x15c3ee;}[_0x59748d(0x1e2)](_0x1885a4,_0x8dbd19){const _0x15fce4=_0x59748d;_0x8dbd19[_0x15fce4(0x198)](_0x1885a4,0x0);}[_0x59748d(0x1ed)](_0x20e495,_0x527a7b){const _0x491c35=_0x59748d,_0x30e67a=_0x527a7b[_0x491c35(0x1a0)](_0x342b07=>_0x342b07['id']===_0x20e495);_0x30e67a&&_0x527a7b[_0x491c35(0x16d)](_0x30e67a);}[_0x59748d(0x1aa)](){const _0x405878=_0x59748d;this[_0x405878(0x18c)][_0x405878(0x161)]?this[_0x405878(0x1b0)]():(this[_0x405878(0x1c1)](),this[_0x405878(0x1da)][_0x405878(0x179)]({'target':this[_0x405878(0x18c)][_0x405878(0x17b)],'limiter':this[_0x405878(0x194)](),'positions':$o}),this[_0x405878(0x19f)]&&this[_0x405878(0x1da)][_0x405878(0x1d5)][_0x405878(0x192)](0x0)?.[_0x405878(0x181)](_0x405878(0x1df)));}[_0x59748d(0x186)](_0x381460){const _0x4ba9b8=_0x59748d;this[_0x4ba9b8(0x1ce)][_0x4ba9b8(0x1c6)](),this[_0x4ba9b8(0x1e5)](),this[_0x4ba9b8(0x181)](_0x4ba9b8(0x188),_0x381460);}}export class SourcesBalloonButtonView extends _0x472432{[_0x59748d(0x177)];constructor(_0x4955b3){const _0x3c2187=_0x59748d;super(_0x4955b3),this[_0x3c2187(0x1f4)]({'withText':!0x0,'role':_0x3c2187(0x1a4)}),this[_0x3c2187(0x177)]=this[_0x3c2187(0x1e8)](),this[_0x3c2187(0x1a6)]({'attributes':{'class':[Ho]}});}[_0x59748d(0x189)](){const _0x360822=_0x59748d;super[_0x360822(0x189)](),this[_0x360822(0x1e1)][_0x360822(0x198)](this[_0x360822(0x177)]);}[_0x59748d(0x1e8)](){const _0x28774c=_0x59748d,_0x4865b0=new _0x16b6bc();return _0x4865b0[_0x28774c(0x1d5)]=_0x293270,_0x4865b0[_0x28774c(0x1a6)]({'attributes':{'class':Ho+_0x28774c(0x1cc)}}),_0x4865b0;}}
|
|
23
|
+
const _0x15ebfb=_0x2ebf;(function(_0x569b92,_0xa78b5e){const _0x12bd3d=_0x2ebf,_0x40dddb=_0x569b92();while(!![]){try{const _0x49019f=-parseInt(_0x12bd3d(0x214))/0x1+parseInt(_0x12bd3d(0x234))/0x2+-parseInt(_0x12bd3d(0x229))/0x3+parseInt(_0x12bd3d(0x243))/0x4*(parseInt(_0x12bd3d(0x247))/0x5)+-parseInt(_0x12bd3d(0x239))/0x6+-parseInt(_0x12bd3d(0x23d))/0x7+parseInt(_0x12bd3d(0x23e))/0x8;if(_0x49019f===_0xa78b5e)break;else _0x40dddb['push'](_0x40dddb['shift']());}catch(_0x1acab3){_0x40dddb['push'](_0x40dddb['shift']());}}}(_0x2bdd,0x3b07c));import{BalloonPanelView as _0x797026,ButtonView as _0x817fd6,clickOutsideHandler as _0x2d8647,FileDialogButtonView as _0x3e5940,IconView as _0x52c064,View as _0x46b9f5}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x1c6747,IconDocument as _0x261300,IconDocumentOutline as _0xb4c138,IconDropdownArrow as _0x3a9ce0,IconLink as _0x1e8bbd,IconPaperClip as _0xead702}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x2be630}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x313029}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x565a57}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x5ce220}from'../../../aicore/utils/common-translations.js';function _0x2bdd(){const _0x54e9cc=['8660072ftKPuW','_urlBalloonPanelView','showUrlBalloonPanel','element','hideAddContextBalloonPanel','705452gtMKVa','withBackButton','isAnyResourceBalloonVisible','icon','5olKJbQ','enabled','southArrowNorth','refreshBalloon','showAddContextBalloonPanel','AI_CHAT_CONTEXT_ADD_CONTEXT','ck-ai-chat','destroy','_resourcesBalloonView','tooltip','_setupUrlBalloonClickOutsideHandler','done','show','ck-ai-chat-context-controls__add-context-balloon-panel','current','_handleUrlSubmit','pin','sources','clear','AI_CHAT_CONTEXT_URL_LABEL','menuitem','addContextItem','__arrow','northArrowSouthEast','AI_CHAT_CONTEXT_FILE_LABEL','ck-ai-chat-context-controls__balloon-button','body','ck-ai-chat-context-controls__add-context-button','_bindEventHandlers','loadSourceResources','_setupTemplate','_setupAddContextBalloonClickOutsideHandler','hide','southArrowNorthWest','_toggleAddContextBalloon','ck-ai-chat-context-chips-wrapper-balloon','extendTemplate','submitUrl','northArrowSouth','_createUrlBalloonPanelView','render','source','addUrlToContext','_removeContextFromCollection','_createBalloonButton','type','executeCustomItemCallback','isHidden','_addUrlContent','_hasExactlyOneSource','_addContextBalloonConfig','conversation','ck-ai-chat-context-controls','_conversationContextsChips','_createResourcesBalloonView','isEnabled','reorganizeChips','ck-ai-chat-controls_context_show-more-button','northArrowSouthWest','setAddContextOptions','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_addContextToCollection','ck-ai-chat-context-controls__balloon-button-source','cancel','_setBalloonPanelContent','defaultPositions','isVisible','find','_setAddContextButtonEnabled','closeSourceResourceBalloon','ck-ai-chat-context-controls__url-balloon-panel','showSourceResourcesBalloon','removeContextItemChip','clearCurrentContextItems','ck-ai-chat-controls-button','content','customItems','updateResourceState','label','addDocumentToContext','children','setContainerElement','southArrowNorthEast','fire','focus','setTemplate','_setupAllBalloonClickOutsideHandlers','remove','bodyCollection','_createAddContextButtonView','document','files','locale','_createArrowView','_urlInputView','_handleAddContextButtonClick','set','removeContextItem','199677WSqvaE','div','overflowChips','length','_createAddContextBalloonPanelView','arrowView','populateSourceResourceBalloon','buttonView','customItem','bind','setContextItemLoading','_currentContextsChips','addFileToContext','urls','isLoading','_createBaseBalloonPanel','_overflowManager','execute','balloonView','get','add','1077552bVoZEL','setConversationContext','isReadOnly','ck-ai-chat-context-controls__show-more-balloon-panel','closest','ck-ai-chat-context-controls__pending-contexts','createCollection','_getLimiterElement','isOn','_createContextButton','hideUrlBalloonPanel','608094wEExpt','ck-reset_all-excluded','_addContextBalloonPanelView','addContextButtonView','addResourceToContext','2684352adilxj','searchInputVisibleFrom','_showSourceResourcesBalloon','clearConversationContextItems','2204146EiJiNn'];_0x2bdd=function(){return _0x54e9cc;};return _0x2bdd();}import{AIChatResourcesBalloonView as _0x4b1aae}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x15ebfb(0x201),_0x15ebfb(0x220),_0x15ebfb(0x1dc),_0x15ebfb(0x238),_0x15ebfb(0x213),_0x15ebfb(0x264),_0x15ebfb(0x1e0)];function _0x2ebf(_0xb6e432,_0x40bb3c){const _0x2bdd68=_0x2bdd();return _0x2ebf=function(_0x2ebfb0,_0x52ed44){_0x2ebfb0=_0x2ebfb0-0x1d9;let _0x46519f=_0x2bdd68[_0x2ebfb0];return _0x46519f;},_0x2ebf(_0xb6e432,_0x40bb3c);}const Ro=_0x15ebfb(0x1e6),Oo=_0x15ebfb(0x22e),Uo=_0x15ebfb(0x254),Lo=_0x15ebfb(0x262),No=_0x15ebfb(0x1f8),Mo=_0x15ebfb(0x260),Ho=_0x15ebfb(0x1f0),jo=_0x15ebfb(0x1fc),Fo=_0x15ebfb(0x26a),Xo=_0x15ebfb(0x1eb),yo=_0x15ebfb(0x22c),Do=_0x15ebfb(0x24d),$o=[_0x797026[_0x15ebfb(0x1f3)][_0x15ebfb(0x1ec)],_0x797026[_0x15ebfb(0x1f3)][_0x15ebfb(0x26d)],_0x797026[_0x15ebfb(0x1f3)][_0x15ebfb(0x25e)],_0x797026[_0x15ebfb(0x1f3)][_0x15ebfb(0x268)],_0x797026[_0x15ebfb(0x1f3)][_0x15ebfb(0x249)],_0x797026[_0x15ebfb(0x1f3)][_0x15ebfb(0x204)]];export class AIChatContextPanelView extends _0x46b9f5{[_0x15ebfb(0x237)];[_0x15ebfb(0x21f)]=this[_0x15ebfb(0x22f)]();[_0x15ebfb(0x1e7)]=this[_0x15ebfb(0x22f)]();[_0x15ebfb(0x224)];[_0x15ebfb(0x236)];[_0x15ebfb(0x23f)];[_0x15ebfb(0x210)];[_0x15ebfb(0x24f)];[_0x15ebfb(0x1e4)];[_0x15ebfb(0x1e3)]=!0x1;[_0x15ebfb(0x20a)];constructor(_0x54cf14,_0x5126b4){const _0x2ebbc6=_0x15ebfb;super(_0x54cf14),this[_0x2ebbc6(0x20a)]=_0x5126b4[_0x2ebbc6(0x20a)],this[_0x2ebbc6(0x21f)]=this[_0x2ebbc6(0x22f)](),this[_0x2ebbc6(0x1e7)]=this[_0x2ebbc6(0x22f)](),this[_0x2ebbc6(0x237)]=this[_0x2ebbc6(0x20b)](_0x54cf14),this[_0x2ebbc6(0x236)]=this[_0x2ebbc6(0x218)](_0x54cf14),this[_0x2ebbc6(0x23f)]=this[_0x2ebbc6(0x1d9)](_0x54cf14),this[_0x2ebbc6(0x24f)]=this[_0x2ebbc6(0x1e8)](_0x54cf14,_0x5126b4);const _0x19b57f={'cssClasses':{'showMoreButton':Xo,'showMoreBalloon':yo,'overflowContainer':Fo,'controlsButton':jo}};this[_0x2ebbc6(0x224)]=new _0x565a57(_0x54cf14,this[_0x2ebbc6(0x21f)],_0x19b57f,this[_0x2ebbc6(0x20a)],this),this[_0x2ebbc6(0x1e4)]={'buttonView':this[_0x2ebbc6(0x237)],'balloonView':this[_0x2ebbc6(0x236)],'hideMethod':this[_0x2ebbc6(0x242)][_0x2ebbc6(0x21d)](this),'showMethod':this[_0x2ebbc6(0x24b)][_0x2ebbc6(0x21d)](this)},this[_0x2ebbc6(0x265)](),this[_0x2ebbc6(0x263)]();}[_0x15ebfb(0x1da)](){const _0x566e9c=_0x15ebfb;super[_0x566e9c(0x1da)](),this[_0x566e9c(0x208)](),this[_0x566e9c(0x224)][_0x566e9c(0x203)](this[_0x566e9c(0x241)]),this[_0x566e9c(0x224)][_0x566e9c(0x1ea)]();}[_0x15ebfb(0x24e)](){const _0x508dcd=_0x15ebfb;super[_0x508dcd(0x24e)](),this[_0x508dcd(0x224)][_0x508dcd(0x24e)](),this[_0x508dcd(0x24f)][_0x508dcd(0x24e)]();}[_0x15ebfb(0x25c)](_0x4ddc56,_0x75449d){const _0x264c99=_0x15ebfb,_0x2f7a6d=this[_0x264c99(0x232)](_0x4ddc56,_0x264c99(0x255),!0x0,_0x75449d);this[_0x264c99(0x1ef)](_0x2f7a6d,this[_0x264c99(0x21f)]),this[_0x264c99(0x224)][_0x264c99(0x1ea)]();}[_0x15ebfb(0x213)](_0x519bfc){const _0x40e1dd=_0x15ebfb;this[_0x40e1dd(0x1dd)](_0x519bfc,this[_0x40e1dd(0x21f)]),this[_0x40e1dd(0x1dd)](_0x519bfc,this[_0x40e1dd(0x224)][_0x40e1dd(0x216)]),this[_0x40e1dd(0x224)][_0x40e1dd(0x1ea)]();}[_0x15ebfb(0x21e)](_0x21b9fc,_0x4a3f7f){const _0x3c619f=_0x15ebfb;let _0x5da57d=this[_0x3c619f(0x21f)][_0x3c619f(0x1f5)](_0x2d9e63=>_0x2d9e63['id']===_0x21b9fc);_0x5da57d||(_0x5da57d=this[_0x3c619f(0x224)][_0x3c619f(0x216)][_0x3c619f(0x1f5)](_0x14762f=>_0x14762f['id']===_0x21b9fc)),_0x5da57d&&(_0x5da57d[_0x3c619f(0x222)]=_0x4a3f7f);}[_0x15ebfb(0x22a)](_0x60851c){const _0x3f8917=_0x15ebfb;this[_0x3f8917(0x1e7)][_0x3f8917(0x259)]();for(const _0x142d0f of _0x60851c){const _0x38daee=this[_0x3f8917(0x232)](_0x142d0f,_0x3f8917(0x1e5),!0x1,!0x1);this[_0x3f8917(0x1ef)](_0x38daee,this[_0x3f8917(0x1e7)]);}}[_0x15ebfb(0x1fb)](){const _0x33910e=_0x15ebfb;this[_0x33910e(0x21f)][_0x33910e(0x259)](),this[_0x33910e(0x224)][_0x33910e(0x259)]();}[_0x15ebfb(0x23c)](){const _0x167d06=_0x15ebfb;this[_0x167d06(0x1e7)][_0x167d06(0x259)]();}[_0x15ebfb(0x1ff)](_0x53ae9d,_0x395749,_0x5d600b){const _0x7a514d=_0x15ebfb;this[_0x7a514d(0x24f)][_0x7a514d(0x1ff)](_0x53ae9d,_0x395749,_0x5d600b);}[_0x15ebfb(0x242)](){const _0x149fab=_0x15ebfb;this[_0x149fab(0x269)](!0x1);}[_0x15ebfb(0x24b)](){const _0x690f46=_0x15ebfb;this[_0x690f46(0x269)](!0x0);}[_0x15ebfb(0x233)](){const _0x2daabc=_0x15ebfb;this[_0x2daabc(0x23f)][_0x2daabc(0x267)](),this[_0x2daabc(0x237)][_0x2daabc(0x231)]=!0x1,this[_0x2daabc(0x210)]&&this[_0x2daabc(0x210)][_0x2daabc(0x259)]();}[_0x15ebfb(0x240)](){const _0x26c7f6=_0x15ebfb;this[_0x26c7f6(0x23f)][_0x26c7f6(0x253)](),this[_0x26c7f6(0x237)][_0x26c7f6(0x231)]=!0x0;}[_0x15ebfb(0x23b)]({source:_0x54f356,withBackButton:_0x112b1b}){const _0x298e97=_0x15ebfb;this[_0x298e97(0x24f)][_0x298e97(0x1f9)]({'source':_0x54f356,'withBackButton':_0x112b1b}),this[_0x298e97(0x237)][_0x298e97(0x231)]=!0x0;}[_0x15ebfb(0x21a)](_0x3de050,_0x3435f0,_0x5998d7,_0x362998){const _0x5ba258=_0x15ebfb;this[_0x5ba258(0x24f)][_0x5ba258(0x21a)](_0x3de050,_0x5998d7,_0x362998);}[_0x15ebfb(0x1f7)](_0x55bc56){const _0xd4092a=_0x15ebfb;this[_0xd4092a(0x24f)][_0xd4092a(0x1f7)](_0x55bc56),this[_0xd4092a(0x237)][_0xd4092a(0x231)]=!0x1;}[_0x15ebfb(0x1ed)](_0x59e75c){const _0x1c21a3=_0x15ebfb;this[_0x1c21a3(0x1f2)](this[_0x1c21a3(0x236)],this[_0x1c21a3(0x20e)],_0x59e75c),this[_0x1c21a3(0x1f6)](_0x59e75c);}[_0x15ebfb(0x1f6)](_0x3483ce){const _0x145adc=_0x15ebfb,_0x1ce13f=!_0x3483ce[_0x145adc(0x20c)][_0x145adc(0x1e1)]&&_0x3483ce[_0x145adc(0x20c)][_0x145adc(0x248)],_0x1b35fc=_0x3483ce[_0x145adc(0x221)][_0x145adc(0x248)],_0x554e74=_0x3483ce[_0x145adc(0x20d)][_0x145adc(0x248)],_0x1f6f41=_0x3483ce[_0x145adc(0x258)][_0x145adc(0x217)]>0x0,_0x1de661=_0x3483ce[_0x145adc(0x1fe)]&&_0x3483ce[_0x145adc(0x1fe)][_0x145adc(0x217)]>0x0;this[_0x145adc(0x237)][_0x145adc(0x1e9)]=_0x1ce13f||_0x1b35fc||_0x554e74||_0x1f6f41||_0x1de661;}[_0x15ebfb(0x265)](){const _0x2eae6b=_0x15ebfb;this[_0x2eae6b(0x207)]({'tag':_0x2eae6b(0x215),'attributes':{'class':[Ro,_0x2eae6b(0x235)]},'children':[{'tag':_0x2eae6b(0x215),'attributes':{'class':Oo},'children':this[_0x2eae6b(0x21f)]}]});}[_0x15ebfb(0x263)](){const _0x51c59a=_0x15ebfb;this[_0x51c59a(0x237)]['on'](_0x51c59a(0x225),()=>{const _0xb4964c=_0x51c59a;this[_0xb4964c(0x211)]();});}[_0x15ebfb(0x20b)](_0x4e6912){const _0x5a042c=_0x15ebfb,_0x571851=new _0x817fd6(_0x4e6912);return _0x571851[_0x5a042c(0x212)]({'label':_0x5ce220(_0x4e6912,_0x5a042c(0x24c)),'class':jo+'\x20'+Lo,'icon':_0xead702,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x571851;}[_0x15ebfb(0x218)](_0x23d7c0){const _0x380300=_0x15ebfb;return this[_0x380300(0x223)](_0x23d7c0,Uo);}[_0x15ebfb(0x1d9)](_0x777f6b){const _0x227fad=_0x15ebfb,_0x55146e=this[_0x227fad(0x223)](_0x777f6b,No);return this[_0x227fad(0x1e2)](_0x55146e,_0x777f6b),_0x55146e;}[_0x15ebfb(0x1e8)](_0x43689e,_0x46313e){const _0x358536=_0x15ebfb,_0x68f659={'searchInputVisibleFrom':_0x46313e[_0x358536(0x23a)],'onBackToContext':()=>{const _0xd6bca3=_0x358536;this[_0xd6bca3(0x24b)](),this[_0xd6bca3(0x236)][_0xd6bca3(0x257)]({'target':this[_0xd6bca3(0x237)][_0xd6bca3(0x241)],'limiter':this[_0xd6bca3(0x230)](),'positions':$o});},'onResourceSelected':(_0x80db41,_0x43eb5e)=>{const _0x5bd7b1=_0x358536;this[_0x5bd7b1(0x205)](_0x5bd7b1(0x238),{'source':_0x80db41,'resource':_0x43eb5e});},'onLoadSourceResources':_0x308612=>{const _0x4a4038=_0x358536;this[_0x4a4038(0x205)](_0x4a4038(0x264),_0x308612);},'onBalloonClosed':()=>{const _0x453e08=_0x358536;this[_0x453e08(0x237)][_0x453e08(0x231)]=!0x1;},'getLimiterElement':()=>this[_0x358536(0x230)](),'getTargetElement':()=>this[_0x358536(0x237)][_0x358536(0x241)]};return new _0x4b1aae(_0x43689e,_0x46313e[_0x358536(0x20a)],_0x68f659);}[_0x15ebfb(0x230)](){const _0xb1590c=_0x15ebfb;return this[_0xb1590c(0x241)]?.[_0xb1590c(0x22d)]('.'+Do)||document[_0xb1590c(0x261)];}[_0x15ebfb(0x223)](_0x18f26d,_0x51f886){const _0x3c2334=_0x15ebfb,_0x51c8cf=new _0x797026(_0x18f26d);return _0x51c8cf[_0x3c2334(0x26b)]({'attributes':{'class':_0x51f886}}),this[_0x3c2334(0x20a)][_0x3c2334(0x228)](_0x51c8cf),_0x51c8cf;}[_0x15ebfb(0x1f2)](_0x499015,_0x15ffc3,_0xc5c1e0){const _0x32216a=_0x15ebfb;if(_0x499015[_0x32216a(0x1fd)][_0x32216a(0x259)](),!_0xc5c1e0[_0x32216a(0x20c)][_0x32216a(0x1e1)]&&_0xc5c1e0[_0x32216a(0x20c)][_0x32216a(0x248)]){const _0x51330f=this[_0x32216a(0x1de)](_0x15ffc3,{'label':_0x5ce220(_0x15ffc3,_0x32216a(0x1ee)),'icon':_0x261300});_0x51330f['on'](_0x32216a(0x225),()=>{const _0x9ed36e=_0x32216a;this[_0x9ed36e(0x205)](_0x9ed36e(0x201)),this[_0x9ed36e(0x242)]();}),_0x499015[_0x32216a(0x1fd)][_0x32216a(0x228)](_0x51330f);}if(_0xc5c1e0[_0x32216a(0x221)][_0x32216a(0x248)]){const _0x4ada3b=this[_0x32216a(0x1de)](_0x15ffc3,{'label':_0x5ce220(_0x15ffc3,_0x32216a(0x25a)),'icon':_0x1e8bbd});_0x4ada3b['on'](_0x32216a(0x225),()=>{const _0x1fda51=_0x32216a;this[_0x1fda51(0x242)](),this[_0x1fda51(0x240)](),this[_0x1fda51(0x23f)][_0x1fda51(0x257)]({'target':this[_0x1fda51(0x237)][_0x1fda51(0x241)],'limiter':this[_0x1fda51(0x230)](),'positions':$o}),this[_0x1fda51(0x210)][_0x1fda51(0x206)]();}),_0x499015[_0x32216a(0x1fd)][_0x32216a(0x228)](_0x4ada3b);}if(_0xc5c1e0[_0x32216a(0x20d)][_0x32216a(0x248)]){const _0x467dd2=new _0x3e5940(_0x15ffc3);_0x467dd2[_0x32216a(0x212)]({'label':_0x5ce220(_0x15ffc3,_0x32216a(0x25f)),'icon':_0x1c6747,'withText':!0x0,'tooltip':!0x0,'class':Mo,'allowMultipleFiles':!0x0}),_0x467dd2['on'](_0x32216a(0x225),()=>{const _0x3e6e43=_0x32216a;this[_0x3e6e43(0x242)]();}),_0x467dd2['on'](_0x32216a(0x252),(_0x131ccd,_0x124869)=>{const _0xd5f8e8=_0x32216a;this[_0xd5f8e8(0x205)](_0xd5f8e8(0x220),_0x124869);}),_0x467dd2[_0x32216a(0x250)]=!0x0,_0x499015[_0x32216a(0x1fd)][_0x32216a(0x228)](_0x467dd2);}for(const _0x54cf8c of _0xc5c1e0[_0x32216a(0x258)]){const _0x16b265=this[_0x32216a(0x1de)](_0x15ffc3,{'label':_0x54cf8c[_0x32216a(0x200)],'icon':_0x54cf8c[_0x32216a(0x246)]||_0xb4c138,'type':_0x32216a(0x1db)});_0x499015[_0x32216a(0x1fd)][_0x32216a(0x228)](_0x16b265),_0x16b265['on'](_0x32216a(0x225),()=>{const _0x278a37=_0x32216a;this[_0x278a37(0x242)](),this[_0x278a37(0x23b)]({'source':_0x54cf8c,'withBackButton':!this[_0x278a37(0x1e3)]});});}for(const _0x340221 of _0xc5c1e0[_0x32216a(0x1fe)]||[]){const _0x8c911a=this[_0x32216a(0x1de)](_0x15ffc3,{'label':_0x340221[_0x32216a(0x200)],'icon':_0x340221[_0x32216a(0x246)]||_0xb4c138,'type':_0x32216a(0x21c)});_0x499015[_0x32216a(0x1fd)][_0x32216a(0x228)](_0x8c911a),_0x8c911a['on'](_0x32216a(0x225),()=>{const _0x5c15b8=_0x32216a;this[_0x5c15b8(0x242)](),this[_0x5c15b8(0x205)](_0x5c15b8(0x1e0),_0x340221);});}this[_0x32216a(0x1e3)]=0x1===_0x499015[_0x32216a(0x1fd)][_0x32216a(0x217)],this[_0x32216a(0x210)][_0x32216a(0x244)]=!this[_0x32216a(0x1e3)];}[_0x15ebfb(0x1e2)](_0x59a0f9,_0x41536b){const _0x37143b=_0x15ebfb;this[_0x37143b(0x210)]=new _0x313029(_0x41536b),this[_0x37143b(0x210)]['on'](_0x37143b(0x26c),(_0x2f43fc,_0x58b854)=>{const _0x39707f=_0x37143b;this[_0x39707f(0x256)](_0x58b854);}),this[_0x37143b(0x210)]['on'](_0x37143b(0x1f1),()=>{const _0x23a9c1=_0x37143b;this[_0x23a9c1(0x233)](),this[_0x23a9c1(0x1e3)]||(this[_0x23a9c1(0x24b)](),this[_0x23a9c1(0x236)][_0x23a9c1(0x257)]({'target':this[_0x23a9c1(0x237)][_0x23a9c1(0x241)],'limiter':this[_0x23a9c1(0x230)](),'positions':$o}));}),this[_0x37143b(0x210)]['on'](_0x37143b(0x24a),()=>{const _0x448a57=_0x37143b;this[_0x448a57(0x23f)][_0x448a57(0x1f4)]&&this[_0x448a57(0x23f)][_0x448a57(0x257)]({'target':this[_0x448a57(0x237)][_0x448a57(0x241)],'limiter':this[_0x448a57(0x230)](),'positions':$o});}),_0x59a0f9[_0x37143b(0x1fd)][_0x37143b(0x228)](this[_0x37143b(0x210)]);}[_0x15ebfb(0x1de)](_0x4ae946,_0x2a67a1){const _0x5885b7=_0x15ebfb,_0x31a769=_0x5885b7(0x1db)===_0x2a67a1[_0x5885b7(0x1df)]?new SourcesBalloonButtonView(_0x4ae946):new _0x817fd6(_0x4ae946);return _0x31a769[_0x5885b7(0x212)]({'label':_0x2a67a1[_0x5885b7(0x200)],'icon':_0x2a67a1[_0x5885b7(0x246)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Mo}),_0x31a769;}[_0x15ebfb(0x208)](){const _0x75f45b=_0x15ebfb;this[_0x75f45b(0x266)](),this[_0x75f45b(0x251)]();}[_0x15ebfb(0x251)](){const _0x18722b=_0x15ebfb;_0x2d8647({'emitter':this[_0x18722b(0x23f)],'contextElements':[this[_0x18722b(0x23f)][_0x18722b(0x241)]],'callback':()=>{const _0x39ec73=_0x18722b;this[_0x39ec73(0x233)]();},'activator':()=>this[_0x18722b(0x23f)][_0x18722b(0x1f4)]});}[_0x15ebfb(0x269)](_0x4c31fd){const _0x2b7eb1=_0x15ebfb,_0x2568a4=this[_0x2b7eb1(0x1e4)];_0x2568a4[_0x2b7eb1(0x21b)][_0x2b7eb1(0x231)]=_0x4c31fd,_0x4c31fd?_0x2568a4[_0x2b7eb1(0x226)][_0x2b7eb1(0x253)]():_0x2568a4[_0x2b7eb1(0x226)][_0x2b7eb1(0x267)]();}[_0x15ebfb(0x266)](){const _0x32b1d3=_0x15ebfb,{balloonView:_0x5dd00d,buttonView:_0x1d9dbc,hideMethod:_0x21b42f}=this[_0x32b1d3(0x1e4)];_0x2d8647({'emitter':_0x5dd00d,'contextElements':[_0x5dd00d[_0x32b1d3(0x241)],_0x1d9dbc[_0x32b1d3(0x241)]],'callback':()=>{_0x21b42f();},'activator':()=>_0x1d9dbc[_0x32b1d3(0x231)]&&!this[_0x32b1d3(0x23f)][_0x32b1d3(0x1f4)]&&!this[_0x32b1d3(0x24f)][_0x32b1d3(0x245)]()});}[_0x15ebfb(0x232)](_0x30b567,_0x1cef2e,_0x306c54=!0x1,_0x506b8b=!0x1){const _0x2605bb=_0x15ebfb,_0x4007b4=_0x2605bb(0x1e5)===_0x1cef2e||!0x0===_0x30b567[_0x2605bb(0x22b)],_0x10d5b0=new _0x2be630(this[_0x2605bb(0x20e)],_0x30b567,_0x4007b4,_0x306c54,_0x506b8b);return _0x4007b4||_0x10d5b0['on'](_0x2605bb(0x1fa),()=>{const _0x2afb67=_0x2605bb;this[_0x2afb67(0x205)](_0x2afb67(0x213),_0x10d5b0['id']);}),_0x10d5b0;}[_0x15ebfb(0x1ef)](_0x526b25,_0x7b4f81){const _0x264c62=_0x15ebfb;_0x7b4f81[_0x264c62(0x228)](_0x526b25,0x0);}[_0x15ebfb(0x1dd)](_0x24a893,_0x3e261c){const _0x317981=_0x15ebfb,_0x1964a2=_0x3e261c[_0x317981(0x1f5)](_0x54de6e=>_0x54de6e['id']===_0x24a893);_0x1964a2&&_0x3e261c[_0x317981(0x209)](_0x1964a2);}[_0x15ebfb(0x211)](){const _0x45a418=_0x15ebfb;this[_0x45a418(0x237)][_0x45a418(0x231)]?this[_0x45a418(0x242)]():(this[_0x45a418(0x24b)](),this[_0x45a418(0x236)][_0x45a418(0x257)]({'target':this[_0x45a418(0x237)][_0x45a418(0x241)],'limiter':this[_0x45a418(0x230)](),'positions':$o}),this[_0x45a418(0x1e3)]&&this[_0x45a418(0x236)][_0x45a418(0x1fd)][_0x45a418(0x227)](0x0)?.[_0x45a418(0x205)](_0x45a418(0x225)));}[_0x15ebfb(0x256)](_0x3ed9d0){const _0x18f6f4=_0x15ebfb;this[_0x18f6f4(0x210)][_0x18f6f4(0x259)](),this[_0x18f6f4(0x233)](),this[_0x18f6f4(0x205)](_0x18f6f4(0x1dc),_0x3ed9d0);}}export class SourcesBalloonButtonView extends _0x817fd6{[_0x15ebfb(0x219)];constructor(_0xbe29b3){const _0x1264fb=_0x15ebfb;super(_0xbe29b3),this[_0x1264fb(0x212)]({'withText':!0x0,'role':_0x1264fb(0x25b)}),this[_0x1264fb(0x219)]=this[_0x1264fb(0x20f)](),this[_0x1264fb(0x26b)]({'attributes':{'class':[Ho]}});}[_0x15ebfb(0x1da)](){const _0xc501b3=_0x15ebfb;super[_0xc501b3(0x1da)](),this[_0xc501b3(0x202)][_0xc501b3(0x228)](this[_0xc501b3(0x219)]);}[_0x15ebfb(0x20f)](){const _0x3bfefc=_0x15ebfb,_0x57f9f7=new _0x52c064();return _0x57f9f7[_0x3bfefc(0x1fd)]=_0x3a9ce0,_0x57f9f7[_0x3bfefc(0x26b)]({'attributes':{'class':Ho+_0x3bfefc(0x25d)}}),_0x57f9f7;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34333c=_0x1982;(function(_0x195127,_0x593927){const _0xa7c218=_0x1982,_0x32b7d9=_0x195127();while(!![]){try{const _0x165450=-parseInt(_0xa7c218(0xf7))/0x1+parseInt(_0xa7c218(0xfe))/0x2*(parseInt(_0xa7c218(0xf8))/0x3)+-parseInt(_0xa7c218(0xf5))/0x4+-parseInt(_0xa7c218(0xfb))/0x5+-parseInt(_0xa7c218(0xec))/0x6*(-parseInt(_0xa7c218(0xef))/0x7)+parseInt(_0xa7c218(0xe8))/0x8+-parseInt(_0xa7c218(0xf1))/0x9*(-parseInt(_0xa7c218(0xfd))/0xa);if(_0x165450===_0x593927)break;else _0x32b7d9['push'](_0x32b7d9['shift']());}catch(_0x1a5b55){_0x32b7d9['push'](_0x32b7d9['shift']());}}}(_0x2467,0x78139));function _0x2467(){const _0x173780=['4322946AZNAKW','setTemplate','abortPromptStream','7UxZtKx','AI_CHAT_IS_WRITING','81TsCfEx','ck-reset_all','ck-ai-chat-controls-loader-wrapper','ck-ai-chat-controls-loader-icon-dot','1216300dTTyiS','fire','738846yXnsoa','996MAKzaC','ck-ai-chat-controls-loader-icon','_createLoaderView','3088095ZQrUaI','div','1083370jwOhlA','66LjFBfT','_loaderView','_createCancelButtonView','set','_cancelButtonView','locale','AI_CHAT_STOP_GENERATING','3567144thzZGj','ck-ai-button-secondary\x20ck-ai-button-stop-generating','ck-ai-chat-controls-loader','execute'];_0x2467=function(){return _0x173780;};return _0x2467();}import{ButtonView as _0x4469ea,View as _0x17e601}from'ckeditor5/src/ui.js';function _0x1982(_0x2b73fa,_0x14b7c2){const _0x246717=_0x2467();return _0x1982=function(_0x19821d,_0x13fac9){_0x19821d=_0x19821d-0xe4;let _0x225125=_0x246717[_0x19821d];return _0x225125;},_0x1982(_0x2b73fa,_0x14b7c2);}import{IconStop as _0x52be65}from'ckeditor5/src/icons.js';import{getTranslation as _0x3e7d01}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x17e601{[_0x34333c(0xe5)];[_0x34333c(0xff)];constructor(_0x247079){const _0x5bed5b=_0x34333c;super(_0x247079),this[_0x5bed5b(0xe5)]=this[_0x5bed5b(0x100)](),this[_0x5bed5b(0xff)]=this[_0x5bed5b(0xfa)](),this[_0x5bed5b(0xed)]({'tag':_0x5bed5b(0xfc),'attributes':{'class':['ck',_0x5bed5b(0xf3),_0x5bed5b(0xf2)]},'children':[this[_0x5bed5b(0xff)],this[_0x5bed5b(0xe5)]]});}[_0x34333c(0x100)](){const _0x3a6676=_0x34333c,_0x411b9a=new _0x4469ea(this[_0x3a6676(0xe6)]);return _0x411b9a[_0x3a6676(0xe4)]({'label':_0x3e7d01(this[_0x3a6676(0xe6)],_0x3a6676(0xe7)),'withText':!0x0,'class':_0x3a6676(0xe9),'icon':_0x52be65}),_0x411b9a['on'](_0x3a6676(0xeb),()=>{const _0x32b25a=_0x3a6676;this[_0x32b25a(0xf6)](_0x32b25a(0xee));}),_0x411b9a;}[_0x34333c(0xfa)](){const _0x31badd=_0x34333c,_0x1e5237=new _0x17e601(this[_0x31badd(0xe6)]);return _0x1e5237[_0x31badd(0xed)]({'tag':_0x31badd(0xfc),'attributes':{'class':[_0x31badd(0xea)]},'children':[{'tag':_0x31badd(0xfc),'attributes':{'class':[_0x31badd(0xf9)]},'children':[{'tag':_0x31badd(0xfc),'attributes':{'class':[_0x31badd(0xf4)]}},{'tag':_0x31badd(0xfc),'attributes':{'class':[_0x31badd(0xf4)]}},{'tag':_0x31badd(0xfc),'attributes':{'class':[_0x31badd(0xf4)]}}]},{'text':_0x3e7d01(this[_0x31badd(0xe6)],_0x31badd(0xf0))}]}),_0x1e5237;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x259f6d=_0x5aaa;(function(_0x2824ad,_0xa281b3){const _0x1c62bd=_0x5aaa,_0xd2e658=_0x2824ad();while(!![]){try{const _0x371486=-parseInt(_0x1c62bd(0x18b))/0x1*(-parseInt(_0x1c62bd(0x184))/0x2)+-parseInt(_0x1c62bd(0x1bf))/0x3*(-parseInt(_0x1c62bd(0x19e))/0x4)+parseInt(_0x1c62bd(0x1a9))/0x5*(parseInt(_0x1c62bd(0x186))/0x6)+-parseInt(_0x1c62bd(0x1c7))/0x7+parseInt(_0x1c62bd(0x1a2))/0x8+parseInt(_0x1c62bd(0x1ad))/0x9*(parseInt(_0x1c62bd(0x170))/0xa)+-parseInt(_0x1c62bd(0x1ae))/0xb*(parseInt(_0x1c62bd(0x192))/0xc);if(_0x371486===_0xa281b3)break;else _0xd2e658['push'](_0xd2e658['shift']());}catch(_0x1b16d5){_0xd2e658['push'](_0xd2e658['shift']());}}}(_0x1b93,0x7f019));function _0x1b93(){const _0x53a60a=['reasoning','_getCapabilityParts','activeModelName','ck-ai-chat-controls-button--commands','menuitemradio','isOn','name','4LLrLRP','activeModelId','label','AI_CHAT_CAPABILITIES_NO','4477480ZWZDEK','enabled','selectModel','ck-ai-chat__prompt-capabilities','_createModelSelectionDropdown','AI_CHAT_REASONING','_modelSelectionDropdownItems','115QkhVjI','_createCommandsButton','ck-ai-chat-controls__model-selection__item-name','modelDisplayMode','11196jYiHIk','16135086iQdNKT','clear','style','bindTemplate','webSearchActive','length','AI_CHAT_SEARCH_WEB','_createModelNameView','ck-ai-chat-controls__model-selection__item-description','selector','_createReasoningButton','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','div','isEnabled','tooltip','webSearch','ck-hidden','996033UEpAuc','add','text','disableModelSelector','_createWebSearchButton','AI_CHAT_ENABLE_WEB_SEARCH','content','bind','3457475AXsdll','modelSelectorEnabled','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','_reasoningButton','set','ck-ai-chat-controls__model-name','_modelNameView','AI_CHAT_COMMANDS','locale','span','_commandsButton','ck-ai-button-tertiary','setTemplate','6330FtCqgh','AI_CHAT_DISABLE_WEB_SEARCH','button','capabilities','setWebSearch','description','toggleWebSearch','hidden','fire','buttonView','setModel','extendTemplate','toggleReasoning','_modelSelectionDropdown','reasoningActive','listenTo','source','execute','createCollection','setReasoning','208966emvVLe','Commands\x20are\x20not\x20implemented\x20yet.','181914VZHOYN','AI_CHAT_DISABLE_REASONING','ck-ai-chat-controls__model-selection','ck-button__label','enableModelSelector','1taODQA','AI_CHAT_CAPABILITIES_YES','ck-ai-chat-controls__model-selection__item-capabilities','addMany','ck-ai-chat-controls-button','log','setModelList','12UUxVLL','model','isVisible','AI_CHAT_ENABLE_REASONING','_webSearchButton'];_0x1b93=function(){return _0x53a60a;};return _0x1b93();}import{Collection as _0x1bdca1}from'ckeditor5/src/utils.js';import{IconAI as _0x2d55ad,IconBulb as _0x48017c,IconWeb as _0x3a2fe2}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x5f161a,ButtonLabelView as _0x25ab7b,ButtonView as _0x22cab6,createDropdown as _0x58074b,IconView as _0x2a5eca,UIModel as _0x4300a6,View as _0x4c38b0}from'ckeditor5/src/ui.js';function _0x5aaa(_0x4f7be4,_0x1082b4){const _0x1b939c=_0x1b93();return _0x5aaa=function(_0x5aaaa9,_0x25b585){_0x5aaaa9=_0x5aaaa9-0x16d;let _0x293dfe=_0x1b939c[_0x5aaaa9];return _0x293dfe;},_0x5aaa(_0x4f7be4,_0x1082b4);}import{getTranslation as _0x1eeb82}from'../../../aicore/utils/common-translations.js';const qo=_0x259f6d(0x1a5),jo=_0x259f6d(0x18f),zo=_0x259f6d(0x19a),Jo=_0x259f6d(0x16e),Ko=_0x259f6d(0x188),Qo=_0x259f6d(0x1ab),Zo=_0x259f6d(0x1b6),tl=_0x259f6d(0x18d),el='n';export class AIChatPromptCapabilitiesView extends _0x4c38b0{[_0x259f6d(0x196)];[_0x259f6d(0x1ca)];[_0x259f6d(0x16d)];[_0x259f6d(0x17d)];[_0x259f6d(0x1a8)];[_0x259f6d(0x1cd)];constructor(_0x625631){const _0x427318=_0x259f6d;super(_0x625631),this[_0x427318(0x1cb)](_0x427318(0x1b2),!0x1),this[_0x427318(0x1cb)](_0x427318(0x17e),!0x1),this[_0x427318(0x1cb)](_0x427318(0x1ac),_0x427318(0x1b7)),this[_0x427318(0x1cb)](_0x427318(0x1c8),!0x0),this[_0x427318(0x1cb)](_0x427318(0x19f),null),this[_0x427318(0x1cb)](_0x427318(0x199),null),this[_0x427318(0x17d)]=this[_0x427318(0x1a6)](),this[_0x427318(0x1cd)]=this[_0x427318(0x1b5)](),this[_0x427318(0x196)]=this[_0x427318(0x1c3)](),this[_0x427318(0x1ca)]=this[_0x427318(0x1b8)](),this[_0x427318(0x16d)]=this[_0x427318(0x1aa)](),this[_0x427318(0x17d)][_0x427318(0x179)][_0x427318(0x1c6)](_0x427318(0x194))['to'](this,_0x427318(0x1ac),_0x476e96=>_0x427318(0x1b7)===_0x476e96),this[_0x427318(0x17d)][_0x427318(0x179)][_0x427318(0x1c6)](_0x427318(0x1bc))['to'](this,_0x427318(0x1c8),_0x31e654=>_0x31e654?this[_0x427318(0x17d)][_0x427318(0x179)][_0x427318(0x1a0)]:_0x1eeb82(this[_0x427318(0x1cf)],_0x427318(0x1c9))),this[_0x427318(0x17d)][_0x427318(0x1c6)](_0x427318(0x1bb))['to'](this,_0x427318(0x1c8),_0x103761=>_0x103761),this[_0x427318(0x196)][_0x427318(0x1c6)](_0x427318(0x19c))['to'](this,_0x427318(0x1b2),_0xfea3e6=>_0xfea3e6),this[_0x427318(0x196)][_0x427318(0x1c6)](_0x427318(0x1bc))['to'](this,_0x427318(0x1b2),_0x60a0dd=>_0x1eeb82(this[_0x427318(0x1cf)],_0x60a0dd?_0x427318(0x171):_0x427318(0x1c4))),this[_0x427318(0x1ca)][_0x427318(0x1c6)](_0x427318(0x19c))['to'](this,_0x427318(0x17e),_0x47214c=>_0x47214c),this[_0x427318(0x1ca)][_0x427318(0x1c6)](_0x427318(0x1bc))['to'](this,_0x427318(0x17e),_0x978236=>_0x1eeb82(this[_0x427318(0x1cf)],_0x978236?_0x427318(0x187):_0x427318(0x195))),this[_0x427318(0x16f)]({'tag':_0x427318(0x1ba),'attributes':{'class':[qo]},'children':[this[_0x427318(0x17d)],this[_0x427318(0x1cd)],this[_0x427318(0x196)],this[_0x427318(0x1ca)],this[_0x427318(0x16d)]]}),this[_0x427318(0x1a8)]=new _0x1bdca1(),_0x5f161a(this[_0x427318(0x17d)],this[_0x427318(0x1a8)]);}[_0x259f6d(0x191)](_0xf34dd5,_0x50b5a5){const _0x4cc619=_0x259f6d;if(_0x50b5a5)this[_0x4cc619(0x1cb)](_0x4cc619(0x1ac),_0x4cc619(0x177));else{const _0x346109=0x1===_0xf34dd5[_0x4cc619(0x1b3)];this[_0x4cc619(0x1cb)](_0x4cc619(0x1ac),_0x346109?_0x4cc619(0x19d):_0x4cc619(0x1b7));}if(this[_0x4cc619(0x1a8)][_0x4cc619(0x1af)](),_0xf34dd5?.[_0x4cc619(0x1b3)])for(const _0x2e3f19 of _0xf34dd5){const _0x136b70=new _0x4300a6({'label':_0x2e3f19[_0x4cc619(0x19d)],'withText':!0x0,'role':_0x4cc619(0x19b),'id':_0x2e3f19['id'],'model':_0x2e3f19});_0x136b70[_0x4cc619(0x1c6)](_0x4cc619(0x19c))['to'](this,_0x4cc619(0x19f),_0x5e5807=>_0x5e5807===_0x2e3f19['id']),this[_0x4cc619(0x1a8)][_0x4cc619(0x1c0)]({'type':_0x4cc619(0x172),'model':_0x136b70,'labelView':new ModelButtonLabelView(this[_0x4cc619(0x1cf)],_0x2e3f19)});}}[_0x259f6d(0x174)](_0x47a5b5){const _0x3d690e=_0x259f6d;this[_0x3d690e(0x1cb)](_0x3d690e(0x1b2),_0x47a5b5);}[_0x259f6d(0x183)](_0x36a30b){const _0x27b51a=_0x259f6d;this[_0x27b51a(0x1cb)](_0x27b51a(0x17e),_0x36a30b);}[_0x259f6d(0x17a)](_0x31b4c5){const _0x478e8d=_0x259f6d;if(!_0x31b4c5)return;this[_0x478e8d(0x19f)]=_0x31b4c5['id'],this[_0x478e8d(0x199)]=_0x31b4c5[_0x478e8d(0x19d)]||_0x31b4c5['id'],this[_0x478e8d(0x17d)][_0x478e8d(0x179)][_0x478e8d(0x1cb)](_0x478e8d(0x1a0),_0x31b4c5[_0x478e8d(0x19d)]),this[_0x478e8d(0x17d)][_0x478e8d(0x179)][_0x478e8d(0x1cb)](_0x478e8d(0x1bc),_0x31b4c5[_0x478e8d(0x19d)]);const _0x10e02b=_0x31b4c5[_0x478e8d(0x173)][_0x478e8d(0x1bd)]?.[_0x478e8d(0x1a3)]??!0x1;this[_0x478e8d(0x1cb)](_0x478e8d(0x1b2),!0x1),this[_0x478e8d(0x196)][_0x478e8d(0x1cb)](_0x478e8d(0x19c),!0x1),this[_0x478e8d(0x196)][_0x478e8d(0x1cb)](_0x478e8d(0x1bb),_0x10e02b),this[_0x478e8d(0x196)][_0x478e8d(0x1cb)](_0x478e8d(0x194),_0x10e02b);const _0x229805=_0x31b4c5[_0x478e8d(0x173)][_0x478e8d(0x197)]?.[_0x478e8d(0x1a3)]??!0x1;this[_0x478e8d(0x1cb)](_0x478e8d(0x17e),!0x1),this[_0x478e8d(0x1ca)][_0x478e8d(0x1cb)](_0x478e8d(0x19c),!0x1),this[_0x478e8d(0x1ca)][_0x478e8d(0x1cb)](_0x478e8d(0x1bb),_0x229805),this[_0x478e8d(0x1ca)][_0x478e8d(0x1cb)](_0x478e8d(0x194),_0x229805);}[_0x259f6d(0x18a)](){const _0x4ca005=_0x259f6d;this[_0x4ca005(0x1cb)](_0x4ca005(0x1c8),!0x0);}[_0x259f6d(0x1c2)](_0x21e4a5){const _0x393590=_0x259f6d;this[_0x393590(0x1cb)](_0x393590(0x1c8),!0x1),_0x21e4a5&&this[_0x393590(0x1cb)](_0x393590(0x1ac),_0x393590(0x177));}[_0x259f6d(0x1c3)](){const _0xb7aeea=_0x259f6d,_0x33567e=new _0x22cab6();return _0x33567e[_0xb7aeea(0x1cb)]({'label':_0x1eeb82(this[_0xb7aeea(0x1cf)],_0xb7aeea(0x1b4)),'icon':_0x3a2fe2,'class':jo,'isToggleable':!0x0,'tooltipPosition':el}),_0x33567e['on'](_0xb7aeea(0x181),()=>{const _0x4dc9cb=_0xb7aeea;this[_0x4dc9cb(0x178)](_0x4dc9cb(0x176));}),_0x33567e;}[_0x259f6d(0x1b8)](){const _0x3759c8=_0x259f6d,_0x4f34de=new _0x22cab6();return _0x4f34de[_0x3759c8(0x1cb)]({'label':_0x1eeb82(this[_0x3759c8(0x1cf)],_0x3759c8(0x1a7)),'icon':_0x48017c,'class':jo,'isToggleable':!0x0,'tooltipPosition':el}),_0x4f34de['on'](_0x3759c8(0x181),()=>{const _0x14b666=_0x3759c8;this[_0x14b666(0x178)](_0x14b666(0x17c));}),_0x4f34de;}[_0x259f6d(0x1aa)](){const _0x45425b=_0x259f6d,_0x37c82e=new _0x22cab6();return _0x37c82e[_0x45425b(0x1cb)]({'label':_0x1eeb82(this[_0x45425b(0x1cf)],_0x45425b(0x1ce)),'icon':_0x2d55ad,'withText':!0x0,'class':jo,'isToggleable':!0x0,'tooltip':_0x1eeb82(this[_0x45425b(0x1cf)],_0x45425b(0x1ce)),'tooltipPosition':el}),_0x37c82e[_0x45425b(0x17b)]({'attributes':{'class':[zo]}}),_0x37c82e['on'](_0x45425b(0x181),()=>{const _0x449fc4=_0x45425b;console[_0x449fc4(0x190)](_0x449fc4(0x185)),alert(_0x449fc4(0x185));}),_0x37c82e;}[_0x259f6d(0x1a6)](){const _0x27efab=_0x259f6d,_0x73787=_0x58074b(this[_0x27efab(0x1cf)]);return _0x73787[_0x27efab(0x1cb)]({'panelPosition':'ne','class':[Ko]}),_0x73787[_0x27efab(0x179)][_0x27efab(0x1cb)]({'label':_0x1eeb82(this[_0x27efab(0x1cf)],_0x27efab(0x1b9)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':el,'class':Jo}),this[_0x27efab(0x17f)](_0x73787,_0x27efab(0x181),_0x53cde6=>{const _0x551211=_0x27efab;this[_0x551211(0x178)](_0x551211(0x1a4),_0x53cde6[_0x551211(0x180)][_0x551211(0x193)]);}),_0x73787;}[_0x259f6d(0x1b5)](){const _0x8e8fe3=_0x259f6d,_0x3e167d=new ModelNameView(this[_0x8e8fe3(0x1cf)]);return _0x3e167d[_0x8e8fe3(0x1c6)](_0x8e8fe3(0x1c1))['to'](this,_0x8e8fe3(0x199),_0x4f712e=>_0x4f712e??''),_0x3e167d[_0x8e8fe3(0x1c6)](_0x8e8fe3(0x194))['to'](this,_0x8e8fe3(0x1ac),_0x5a8556=>_0x8e8fe3(0x19d)===_0x5a8556),_0x3e167d;}}class ModelButtonLabelView extends _0x25ab7b{constructor(_0x552dc5,_0x3314d6){const _0x25304a=_0x259f6d;super();const _0x41932b=this[_0x25304a(0x1b1)],_0x589aab=this[_0x25304a(0x182)]();this[_0x25304a(0x16f)]({'tag':_0x25304a(0x1ba),'attributes':{'class':['ck',_0x25304a(0x189)],'style':_0x41932b['to'](_0x25304a(0x1b0)),'id':_0x41932b['to']('id')},'children':[{'tag':_0x25304a(0x1ba),'attributes':{'class':[Qo]},'children':[{'text':_0x41932b['to'](_0x25304a(0x1c1))}]},{'tag':_0x25304a(0x1ba),'attributes':{'class':[Zo]},'children':[{'tag':_0x25304a(0x1d0),'children':[{'text':_0x3314d6[_0x25304a(0x175)]}]}]},{'tag':_0x25304a(0x1ba),'attributes':{'class':[tl]},'children':_0x589aab}]}),_0x589aab[_0x25304a(0x18e)](this[_0x25304a(0x198)](_0x552dc5,_0x3a2fe2,_0x25304a(0x1b4),_0x3314d6[_0x25304a(0x173)][_0x25304a(0x1bd)]?.[_0x25304a(0x1a3)]??!0x1)),_0x589aab[_0x25304a(0x18e)](this[_0x25304a(0x198)](_0x552dc5,_0x48017c,_0x25304a(0x1a7),_0x3314d6[_0x25304a(0x173)][_0x25304a(0x197)]?.[_0x25304a(0x1a3)]??!0x1));}[_0x259f6d(0x198)](_0x1c88df,_0x5a9c47,_0x32f190,_0x28d31c){const _0x42b07f=_0x259f6d,_0x2183c5=new _0x2a5eca();_0x2183c5[_0x42b07f(0x1c5)]=_0x5a9c47;const _0x261612=new _0x4c38b0(_0x1c88df);_0x261612[_0x42b07f(0x16f)]({'tag':_0x42b07f(0x1d0),'children':[{'text':_0x1eeb82(_0x1c88df,_0x32f190)+':\x20'}]});const _0x44c3e1=new _0x4c38b0(_0x1c88df);return _0x44c3e1[_0x42b07f(0x16f)]({'tag':_0x42b07f(0x1d0),'children':[{'text':_0x1eeb82(_0x1c88df,_0x28d31c?_0x42b07f(0x18c):_0x42b07f(0x1a1))}]}),[_0x2183c5,_0x261612,_0x44c3e1];}}class ModelNameView extends _0x4c38b0{constructor(_0x1f1ecf){const _0x41b9fa=_0x259f6d;super(_0x1f1ecf),this[_0x41b9fa(0x1cb)](_0x41b9fa(0x1c1),void 0x0),this[_0x41b9fa(0x1cb)](_0x41b9fa(0x194),!0x0);const _0x39de39=this[_0x41b9fa(0x1b1)];this[_0x41b9fa(0x16f)]({'tag':_0x41b9fa(0x1d0),'attributes':{'class':['ck',_0x41b9fa(0x1cc),_0x39de39['if'](_0x41b9fa(0x194),_0x41b9fa(0x1be),_0x583b2c=>!_0x583b2c)]},'children':[{'text':_0x39de39['to'](_0x41b9fa(0x1c1))}]});}}
|
|
23
|
+
const _0x43e6d1=_0x37dd;(function(_0x21a139,_0x23bd7f){const _0x2a150d=_0x37dd,_0x5103ca=_0x21a139();while(!![]){try{const _0x59c671=-parseInt(_0x2a150d(0x11b))/0x1*(parseInt(_0x2a150d(0x11c))/0x2)+-parseInt(_0x2a150d(0x101))/0x3+parseInt(_0x2a150d(0xde))/0x4*(parseInt(_0x2a150d(0xe8))/0x5)+-parseInt(_0x2a150d(0x130))/0x6*(parseInt(_0x2a150d(0xeb))/0x7)+parseInt(_0x2a150d(0x134))/0x8+-parseInt(_0x2a150d(0xe2))/0x9*(parseInt(_0x2a150d(0x13d))/0xa)+parseInt(_0x2a150d(0x106))/0xb;if(_0x59c671===_0x23bd7f)break;else _0x5103ca['push'](_0x5103ca['shift']());}catch(_0x545bb2){_0x5103ca['push'](_0x5103ca['shift']());}}}(_0x196e,0x3599a));function _0x37dd(_0x8bd8d5,_0x52578a){const _0x196e99=_0x196e();return _0x37dd=function(_0x37dd10,_0x800ae4){_0x37dd10=_0x37dd10-0xdd;let _0x3f5b80=_0x196e99[_0x37dd10];return _0x3f5b80;},_0x37dd(_0x8bd8d5,_0x52578a);}import{Collection as _0x24ba4d}from'ckeditor5/src/utils.js';import{IconAI as _0x3b4cd4,IconBulb as _0x5bc1cf,IconWeb as _0x32f066}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0xe56551,ButtonLabelView as _0x212071,ButtonView as _0x373c7e,createDropdown as _0x23540d,IconView as _0x2022a2,UIModel as _0x2cd69c,View as _0x3ad462}from'ckeditor5/src/ui.js';import{getTranslation as _0xd0eb6}from'../../../aicore/utils/common-translations.js';const qo=_0x43e6d1(0x128),jo=_0x43e6d1(0x13e),zo=_0x43e6d1(0xdd),Jo=_0x43e6d1(0xe7),Ko=_0x43e6d1(0x11f),Qo=_0x43e6d1(0xea),Zo=_0x43e6d1(0xfe),tl=_0x43e6d1(0xff),el='n';export class AIChatPromptCapabilitiesView extends _0x3ad462{[_0x43e6d1(0x114)];[_0x43e6d1(0xe3)];[_0x43e6d1(0x137)];[_0x43e6d1(0x136)];[_0x43e6d1(0x10b)];[_0x43e6d1(0x107)];constructor(_0x2464b9){const _0x15c4ca=_0x43e6d1;super(_0x2464b9),this[_0x15c4ca(0x12c)](_0x15c4ca(0x135),!0x1),this[_0x15c4ca(0x12c)](_0x15c4ca(0x110),!0x1),this[_0x15c4ca(0x12c)](_0x15c4ca(0x129),_0x15c4ca(0x13a)),this[_0x15c4ca(0x12c)](_0x15c4ca(0x117),!0x0),this[_0x15c4ca(0x12c)](_0x15c4ca(0xf1),null),this[_0x15c4ca(0x12c)](_0x15c4ca(0xf0),null),this[_0x15c4ca(0x136)]=this[_0x15c4ca(0x11e)](),this[_0x15c4ca(0x107)]=this[_0x15c4ca(0xef)](),this[_0x15c4ca(0x114)]=this[_0x15c4ca(0xf7)](),this[_0x15c4ca(0xe3)]=this[_0x15c4ca(0xfd)](),this[_0x15c4ca(0x137)]=this[_0x15c4ca(0x12e)](),this[_0x15c4ca(0x136)][_0x15c4ca(0xfc)][_0x15c4ca(0x113)](_0x15c4ca(0x120))['to'](this,_0x15c4ca(0x129),_0x3fcaf3=>_0x15c4ca(0x13a)===_0x3fcaf3),this[_0x15c4ca(0x136)][_0x15c4ca(0xfc)][_0x15c4ca(0x113)](_0x15c4ca(0x121))['to'](this,_0x15c4ca(0x117),_0x1e3eaa=>_0x1e3eaa?this[_0x15c4ca(0x136)][_0x15c4ca(0xfc)][_0x15c4ca(0xe6)]:_0xd0eb6(this[_0x15c4ca(0xf9)],_0x15c4ca(0xe4))),this[_0x15c4ca(0x136)][_0x15c4ca(0x113)](_0x15c4ca(0x12f))['to'](this,_0x15c4ca(0x117),_0x5d4e29=>_0x5d4e29),this[_0x15c4ca(0x114)][_0x15c4ca(0x113)](_0x15c4ca(0x131))['to'](this,_0x15c4ca(0x135),_0x1c27bc=>_0x1c27bc),this[_0x15c4ca(0x114)][_0x15c4ca(0x113)](_0x15c4ca(0x121))['to'](this,_0x15c4ca(0x135),_0x2d91cb=>_0xd0eb6(this[_0x15c4ca(0xf9)],_0x2d91cb?_0x15c4ca(0x102):_0x15c4ca(0x118))),this[_0x15c4ca(0xe3)][_0x15c4ca(0x113)](_0x15c4ca(0x131))['to'](this,_0x15c4ca(0x110),_0x3ee524=>_0x3ee524),this[_0x15c4ca(0xe3)][_0x15c4ca(0x113)](_0x15c4ca(0x121))['to'](this,_0x15c4ca(0x110),_0x5eaa5d=>_0xd0eb6(this[_0x15c4ca(0xf9)],_0x5eaa5d?_0x15c4ca(0x13b):_0x15c4ca(0xfa))),this[_0x15c4ca(0xed)]({'tag':_0x15c4ca(0x11d),'attributes':{'class':[qo]},'children':[this[_0x15c4ca(0x136)],this[_0x15c4ca(0x107)],this[_0x15c4ca(0x114)],this[_0x15c4ca(0xe3)],this[_0x15c4ca(0x137)]]}),this[_0x15c4ca(0x10b)]=new _0x24ba4d(),_0xe56551(this[_0x15c4ca(0x136)],this[_0x15c4ca(0x10b)]);}[_0x43e6d1(0x100)](_0xa25dfa,_0x11e201){const _0x335f59=_0x43e6d1;if(_0x11e201)this[_0x335f59(0x12c)](_0x335f59(0x129),_0x335f59(0x126));else{const _0x395aed=0x1===_0xa25dfa[_0x335f59(0xf5)];this[_0x335f59(0x12c)](_0x335f59(0x129),_0x395aed?_0x335f59(0x104):_0x335f59(0x13a));}if(this[_0x335f59(0x10b)][_0x335f59(0x12b)](),_0xa25dfa?.[_0x335f59(0xf5)])for(const _0x10e687 of _0xa25dfa){const _0x33f090=new _0x2cd69c({'label':_0x10e687[_0x335f59(0x104)],'withText':!0x0,'role':_0x335f59(0x11a),'id':_0x10e687['id'],'model':_0x10e687});_0x33f090[_0x335f59(0x113)](_0x335f59(0x131))['to'](this,_0x335f59(0xf1),_0x4ba39b=>_0x4ba39b===_0x10e687['id']),this[_0x335f59(0x10b)][_0x335f59(0x124)]({'type':_0x335f59(0x139),'model':_0x33f090,'labelView':new ModelButtonLabelView(this[_0x335f59(0xf9)],_0x10e687)});}}[_0x43e6d1(0x12d)](_0x6943e3){const _0x1ef890=_0x43e6d1;this[_0x1ef890(0x12c)](_0x1ef890(0x135),_0x6943e3);}[_0x43e6d1(0x132)](_0x5310ca){const _0x2c45a7=_0x43e6d1;this[_0x2c45a7(0x12c)](_0x2c45a7(0x110),_0x5310ca);}[_0x43e6d1(0x108)](_0x52823d){const _0x26b36e=_0x43e6d1;if(!_0x52823d)return;this[_0x26b36e(0xf1)]=_0x52823d['id'],this[_0x26b36e(0xf0)]=_0x52823d[_0x26b36e(0x104)]||_0x52823d['id'],this[_0x26b36e(0x136)][_0x26b36e(0xfc)][_0x26b36e(0x12c)](_0x26b36e(0xe6),_0x52823d[_0x26b36e(0x104)]),this[_0x26b36e(0x136)][_0x26b36e(0xfc)][_0x26b36e(0x12c)](_0x26b36e(0x121),_0x52823d[_0x26b36e(0x104)]);const _0x4d50f4=_0x52823d[_0x26b36e(0x10c)][_0x26b36e(0xe9)]?.[_0x26b36e(0xe0)]??!0x1;this[_0x26b36e(0x12c)](_0x26b36e(0x135),!0x1),this[_0x26b36e(0x114)][_0x26b36e(0x12c)](_0x26b36e(0x131),!0x1),this[_0x26b36e(0x114)][_0x26b36e(0x12c)](_0x26b36e(0x12f),_0x4d50f4),this[_0x26b36e(0x114)][_0x26b36e(0x12c)](_0x26b36e(0x120),_0x4d50f4);const _0x45fdf7=_0x52823d[_0x26b36e(0x10c)][_0x26b36e(0xf3)]?.[_0x26b36e(0xe0)]??!0x1;this[_0x26b36e(0x12c)](_0x26b36e(0x110),!0x1),this[_0x26b36e(0xe3)][_0x26b36e(0x12c)](_0x26b36e(0x131),!0x1),this[_0x26b36e(0xe3)][_0x26b36e(0x12c)](_0x26b36e(0x12f),_0x45fdf7),this[_0x26b36e(0xe3)][_0x26b36e(0x12c)](_0x26b36e(0x120),_0x45fdf7);}[_0x43e6d1(0x111)](){const _0x81a38=_0x43e6d1;this[_0x81a38(0x12c)](_0x81a38(0x117),!0x0);}[_0x43e6d1(0xee)](_0x26a607){const _0x58d364=_0x43e6d1;this[_0x58d364(0x12c)](_0x58d364(0x117),!0x1),_0x26a607&&this[_0x58d364(0x12c)](_0x58d364(0x129),_0x58d364(0x126));}[_0x43e6d1(0xf7)](){const _0xc7238f=_0x43e6d1,_0x34beeb=new _0x373c7e();return _0x34beeb[_0xc7238f(0x12c)]({'label':_0xd0eb6(this[_0xc7238f(0xf9)],_0xc7238f(0xfb)),'icon':_0x32f066,'class':jo,'isToggleable':!0x0,'tooltipPosition':el}),_0x34beeb['on'](_0xc7238f(0x123),()=>{const _0x8d7e4e=_0xc7238f;this[_0x8d7e4e(0x10e)](_0x8d7e4e(0x133));}),_0x34beeb;}[_0x43e6d1(0xfd)](){const _0x5608d3=_0x43e6d1,_0x8203ea=new _0x373c7e();return _0x8203ea[_0x5608d3(0x12c)]({'label':_0xd0eb6(this[_0x5608d3(0xf9)],_0x5608d3(0x127)),'icon':_0x5bc1cf,'class':jo,'isToggleable':!0x0,'tooltipPosition':el}),_0x8203ea['on'](_0x5608d3(0x123),()=>{const _0x456240=_0x5608d3;this[_0x456240(0x10e)](_0x456240(0x13c));}),_0x8203ea;}[_0x43e6d1(0x12e)](){const _0x412ec3=_0x43e6d1,_0x2066a0=new _0x373c7e();return _0x2066a0[_0x412ec3(0x12c)]({'label':_0xd0eb6(this[_0x412ec3(0xf9)],_0x412ec3(0xe5)),'icon':_0x3b4cd4,'withText':!0x0,'class':jo,'isToggleable':!0x0,'tooltip':_0xd0eb6(this[_0x412ec3(0xf9)],_0x412ec3(0xe5)),'tooltipPosition':el}),_0x2066a0[_0x412ec3(0xf6)]({'attributes':{'class':[zo]}}),_0x2066a0['on'](_0x412ec3(0x123),()=>{const _0x5eefda=_0x412ec3;console[_0x5eefda(0x109)](_0x5eefda(0x116)),alert(_0x5eefda(0x116));}),_0x2066a0;}[_0x43e6d1(0x11e)](){const _0x1e5a6f=_0x43e6d1,_0x3815fc=_0x23540d(this[_0x1e5a6f(0xf9)]);return _0x3815fc[_0x1e5a6f(0x12c)]({'panelPosition':'ne','class':[Ko]}),_0x3815fc[_0x1e5a6f(0xfc)][_0x1e5a6f(0x12c)]({'label':_0xd0eb6(this[_0x1e5a6f(0xf9)],_0x1e5a6f(0x105)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':el,'class':Jo}),this[_0x1e5a6f(0x10a)](_0x3815fc,_0x1e5a6f(0x123),_0x51495d=>{const _0x3b3b1e=_0x1e5a6f;this[_0x3b3b1e(0x10e)](_0x3b3b1e(0x122),_0x51495d[_0x3b3b1e(0x138)][_0x3b3b1e(0xdf)]);}),_0x3815fc;}[_0x43e6d1(0xef)](){const _0x435681=_0x43e6d1,_0x2b9771=new ModelNameView(this[_0x435681(0xf9)]);return _0x2b9771[_0x435681(0x113)](_0x435681(0xf2))['to'](this,_0x435681(0xf0),_0x51d2b8=>_0x51d2b8??''),_0x2b9771[_0x435681(0x113)](_0x435681(0x120))['to'](this,_0x435681(0x129),_0x5670fc=>_0x435681(0x104)===_0x5670fc),_0x2b9771;}}function _0x196e(){const _0x14d4a6=['174vBVjUi','isOn','setReasoning','toggleWebSearch','2059760GhiKnu','webSearchActive','_modelSelectionDropdown','_commandsButton','source','button','selector','AI_CHAT_DISABLE_REASONING','toggleReasoning','3730QGcLPy','ck-ai-chat-controls-button','ck-hidden','ck-ai-chat-controls-button--commands','240280CsOjHP','model','enabled','style','8955VphtTl','_reasoningButton','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','AI_CHAT_COMMANDS','label','ck-ai-button-tertiary','15rVxFeS','webSearch','ck-ai-chat-controls__model-selection__item-name','34510emOjSa','description','setTemplate','disableModelSelector','_createModelNameView','activeModelName','activeModelId','text','reasoning','createCollection','length','extendTemplate','_createWebSearchButton','_getCapabilityParts','locale','AI_CHAT_ENABLE_REASONING','AI_CHAT_SEARCH_WEB','buttonView','_createReasoningButton','ck-ai-chat-controls__model-selection__item-description','ck-ai-chat-controls__model-selection__item-capabilities','setModelList','65370wEYnvc','AI_CHAT_DISABLE_WEB_SEARCH','span','name','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','5925876BcrJic','_modelNameView','setModel','log','listenTo','_modelSelectionDropdownItems','capabilities','content','fire','bindTemplate','reasoningActive','enableModelSelector','ck-button__label','bind','_webSearchButton','AI_CHAT_CAPABILITIES_NO','Commands\x20are\x20not\x20implemented\x20yet.','modelSelectorEnabled','AI_CHAT_ENABLE_WEB_SEARCH','addMany','menuitemradio','31565CbOAPH','14mPzZMt','div','_createModelSelectionDropdown','ck-ai-chat-controls__model-selection','isVisible','tooltip','selectModel','execute','add','ck-ai-chat-controls__model-name','hidden','AI_CHAT_REASONING','ck-ai-chat__prompt-capabilities','modelDisplayMode','AI_CHAT_CAPABILITIES_YES','clear','set','setWebSearch','_createCommandsButton','isEnabled'];_0x196e=function(){return _0x14d4a6;};return _0x196e();}class ModelButtonLabelView extends _0x212071{constructor(_0x1a8d91,_0xac1bb4){const _0x2ae4aa=_0x43e6d1;super();const _0x51ed57=this[_0x2ae4aa(0x10f)],_0x1ab3b8=this[_0x2ae4aa(0xf4)]();this[_0x2ae4aa(0xed)]({'tag':_0x2ae4aa(0x11d),'attributes':{'class':['ck',_0x2ae4aa(0x112)],'style':_0x51ed57['to'](_0x2ae4aa(0xe1)),'id':_0x51ed57['to']('id')},'children':[{'tag':_0x2ae4aa(0x11d),'attributes':{'class':[Qo]},'children':[{'text':_0x51ed57['to'](_0x2ae4aa(0xf2))}]},{'tag':_0x2ae4aa(0x11d),'attributes':{'class':[Zo]},'children':[{'tag':_0x2ae4aa(0x103),'children':[{'text':_0xac1bb4[_0x2ae4aa(0xec)]}]}]},{'tag':_0x2ae4aa(0x11d),'attributes':{'class':[tl]},'children':_0x1ab3b8}]}),_0x1ab3b8[_0x2ae4aa(0x119)](this[_0x2ae4aa(0xf8)](_0x1a8d91,_0x32f066,_0x2ae4aa(0xfb),_0xac1bb4[_0x2ae4aa(0x10c)][_0x2ae4aa(0xe9)]?.[_0x2ae4aa(0xe0)]??!0x1)),_0x1ab3b8[_0x2ae4aa(0x119)](this[_0x2ae4aa(0xf8)](_0x1a8d91,_0x5bc1cf,_0x2ae4aa(0x127),_0xac1bb4[_0x2ae4aa(0x10c)][_0x2ae4aa(0xf3)]?.[_0x2ae4aa(0xe0)]??!0x1));}[_0x43e6d1(0xf8)](_0x4c8af1,_0x55a70d,_0x146c71,_0x4b77fc){const _0x5108ce=_0x43e6d1,_0x3af212=new _0x2022a2();_0x3af212[_0x5108ce(0x10d)]=_0x55a70d;const _0x2fe8e1=new _0x3ad462(_0x4c8af1);_0x2fe8e1[_0x5108ce(0xed)]({'tag':_0x5108ce(0x103),'children':[{'text':_0xd0eb6(_0x4c8af1,_0x146c71)+':\x20'}]});const _0x24d70d=new _0x3ad462(_0x4c8af1);return _0x24d70d[_0x5108ce(0xed)]({'tag':_0x5108ce(0x103),'children':[{'text':_0xd0eb6(_0x4c8af1,_0x4b77fc?_0x5108ce(0x12a):_0x5108ce(0x115))}]}),[_0x3af212,_0x2fe8e1,_0x24d70d];}}class ModelNameView extends _0x3ad462{constructor(_0x55bdc8){const _0x4c3a24=_0x43e6d1;super(_0x55bdc8),this[_0x4c3a24(0x12c)](_0x4c3a24(0xf2),void 0x0),this[_0x4c3a24(0x12c)](_0x4c3a24(0x120),!0x0);const _0x1b6b4c=this[_0x4c3a24(0x10f)];this[_0x4c3a24(0xed)]({'tag':_0x4c3a24(0x103),'attributes':{'class':['ck',_0x4c3a24(0x125),_0x1b6b4c['if'](_0x4c3a24(0x120),_0x4c3a24(0x13f),_0x2635ff=>!_0x2635ff)]},'children':[{'text':_0x1b6b4c['to'](_0x4c3a24(0xf2))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5920(_0x21672b,_0x52c471){const _0x5a1840=_0x5a18();return _0x5920=function(_0x5920cd,_0xcdfe8d){_0x5920cd=_0x5920cd-0x11b;let _0x28d231=_0x5a1840[_0x5920cd];return _0x28d231;},_0x5920(_0x21672b,_0x52c471);}const _0x1deb21=_0x5920;(function(_0x970783,_0x2f6252){const _0x247832=_0x5920,_0x1b3a5f=_0x970783();while(!![]){try{const _0x6848bd=parseInt(_0x247832(0x153))/0x1*(-parseInt(_0x247832(0x15a))/0x2)+-parseInt(_0x247832(0x158))/0x3+-parseInt(_0x247832(0x11b))/0x4*(parseInt(_0x247832(0x12c))/0x5)+parseInt(_0x247832(0x127))/0x6+parseInt(_0x247832(0x12e))/0x7+-parseInt(_0x247832(0x15d))/0x8+parseInt(_0x247832(0x146))/0x9;if(_0x6848bd===_0x2f6252)break;else _0x1b3a5f['push'](_0x1b3a5f['shift']());}catch(_0x30a5ca){_0x1b3a5f['push'](_0x1b3a5f['shift']());}}}(_0x5a18,0xd60e4));import{IconSubmit as _0x3f3a59}from'ckeditor5/src/icons.js';import{ButtonView as _0xa4fe18,AutocompleteView as _0x46584d,createLabeledTextarea as _0x3024cc}from'ckeditor5/src/ui.js';function _0x5a18(){const _0x1034cd=['maxRows','uiLanguageDirection','_createSubmitButton','keystrokes','add','style','classList','fire','8949627MgdxRp','execute','rtl','bind','hasError','focusableChildren','errorText','AI_CHAT_LABEL_SUBMIT','reset','isEnabled','trim','placeholder','_queryViewResizeObserver','85rEZawi','setPlaceholderText','update','_addContextButtonView','isUploadInProgress','278694DjNXlW','requestAnimationFrame','23338SbudBN','AI_CHAT_PROMPT_EMPTY_ERROR','calc(','5639296CWTLqb','focus','extendTemplate','4052VGNqXh','enter','fieldWrapperChildren','MIN_ROWS','render','left','excludeScrollbarsAndBorders','ck-ai-chat__prompt-input_highlighted','window','destroy','width','ck-ai-chat__prompt-input','6708306tKqiGm','minRows','sendUserMessage','px\x20-\x20var(--ck-spacing-tiny))','submitButtonView','2605QqcKRM','value','7572362QrNWux','contains','element','_setUpAddContextButtonPositioning','locale','submit','target','ck-ai-chat__prompt-submit-button','set','fieldView','right','MAX_ROWS','remove','isEmpty','queryView','setIsUploadInProgress'];_0x5a18=function(){return _0x1034cd;};return _0x5a18();}import{global as _0x4de255,isVisible as _0x3f1e4e,Rect as _0x2e2d4e,ResizeObserver as _0x2e83f3}from'ckeditor5/src/utils.js';import{getTranslation as _0xa731e1}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x339370}from'./aichatpromptsuggestionslistview.js';import{escape as _0x1a79fc}from'es-toolkit/compat';const ah=_0x1deb21(0x122);export class AIChatPromptInputView extends _0x46584d{[_0x1deb21(0x12b)];static [_0x1deb21(0x11e)]=0x1;static [_0x1deb21(0x139)]=0xc;[_0x1deb21(0x156)];[_0x1deb21(0x152)];constructor(_0xcbd8b4,_0x2498e1){const _0x2d113c=_0x1deb21;super(_0xcbd8b4,{'queryView':{'label':'','creator':_0x3024cc,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x339370(_0xcbd8b4),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x2d113c(0x136)](_0x2d113c(0x13b),!0x0),this[_0x2d113c(0x136)](_0x2d113c(0x157),!0x1),this[_0x2d113c(0x156)]=_0x2498e1,this[_0x2d113c(0x152)]=null,this[_0x2d113c(0x13c)][_0x2d113c(0x137)][_0x2d113c(0x128)]=AIChatPromptInputView[_0x2d113c(0x11e)],this[_0x2d113c(0x13c)][_0x2d113c(0x137)][_0x2d113c(0x13e)]=AIChatPromptInputView[_0x2d113c(0x139)],this[_0x2d113c(0x13c)][_0x2d113c(0x11d)][_0x2d113c(0x142)](this[_0x2d113c(0x156)]),this[_0x2d113c(0x131)](),this[_0x2d113c(0x15f)]({'attributes':{'class':['ck',_0x2d113c(0x126)]}}),this[_0x2d113c(0x12b)]=this[_0x2d113c(0x140)](),this[_0x2d113c(0x12b)][_0x2d113c(0x149)](_0x2d113c(0x14f))['to'](this,_0x2d113c(0x13b),this,_0x2d113c(0x157),(_0xb2afb8,_0x52b100)=>!_0xb2afb8&&!_0x52b100),this[_0x2d113c(0x14b)][_0x2d113c(0x142)](this[_0x2d113c(0x12b)]);}[_0x1deb21(0x11f)](){const _0xc81a98=_0x1deb21;super[_0xc81a98(0x11f)](),this[_0xc81a98(0x13c)][_0xc81a98(0x11d)][_0xc81a98(0x142)](this[_0xc81a98(0x12b)]),this[_0xc81a98(0x141)][_0xc81a98(0x136)](_0xc81a98(0x11c),(_0x5cae93,_0x55e215)=>{const _0x50ca75=_0xc81a98;this[_0x50ca75(0x157)]||this[_0x50ca75(0x13b)]||_0x5cae93[_0x50ca75(0x134)]==this[_0x50ca75(0x13c)][_0x50ca75(0x137)][_0x50ca75(0x130)]&&(this[_0x50ca75(0x133)](),_0x55e215());}),this[_0xc81a98(0x13c)][_0xc81a98(0x137)]['on'](_0xc81a98(0x155),()=>{const _0x208910=_0xc81a98;this[_0x208910(0x13b)]=''===this[_0x208910(0x13c)][_0x208910(0x137)][_0x208910(0x130)][_0x208910(0x12d)]?.[_0x208910(0x150)]();});}[_0x1deb21(0x124)](){const _0x945a5c=_0x1deb21;super[_0x945a5c(0x124)](),this[_0x945a5c(0x152)]&&this[_0x945a5c(0x152)][_0x945a5c(0x124)]();}[_0x1deb21(0x133)](){const _0x3fcd5d=_0x1deb21,_0x5ee9ab=this[_0x3fcd5d(0x13c)][_0x3fcd5d(0x137)][_0x3fcd5d(0x130)][_0x3fcd5d(0x12d)]?.[_0x3fcd5d(0x150)]();if(!_0x5ee9ab)return this[_0x3fcd5d(0x13c)][_0x3fcd5d(0x14c)]=_0xa731e1(this[_0x3fcd5d(0x132)],_0x3fcd5d(0x15b)),void(this[_0x3fcd5d(0x13c)][_0x3fcd5d(0x137)][_0x3fcd5d(0x14a)]=!0x0);this[_0x3fcd5d(0x13c)][_0x3fcd5d(0x137)][_0x3fcd5d(0x14a)]=!0x1;const _0xac9f9c=_0x1a79fc(_0x5ee9ab);this[_0x3fcd5d(0x145)](_0x3fcd5d(0x129),_0xac9f9c),this[_0x3fcd5d(0x13c)][_0x3fcd5d(0x137)][_0x3fcd5d(0x14e)]();}[_0x1deb21(0x154)](_0x325ce8){const _0x15b03e=_0x1deb21;this[_0x15b03e(0x13c)][_0x15b03e(0x137)][_0x15b03e(0x136)](_0x15b03e(0x151),_0x325ce8);}[_0x1deb21(0x15e)](_0x37a172=!0x1){const _0x507019=_0x1deb21;super[_0x507019(0x15e)](),_0x37a172&&(this[_0x507019(0x130)][_0x507019(0x144)][_0x507019(0x12f)](ah)||(this[_0x507019(0x130)][_0x507019(0x144)][_0x507019(0x142)](ah),setTimeout(()=>{const _0x3adbc1=_0x507019;this[_0x3adbc1(0x130)][_0x3adbc1(0x144)][_0x3adbc1(0x13a)](ah);},0x320)));}[_0x1deb21(0x140)](){const _0x35cd3d=_0x1deb21,_0x44438a=new _0xa4fe18(this[_0x35cd3d(0x132)]);return _0x44438a[_0x35cd3d(0x136)]({'icon':_0x3f3a59,'label':_0xa731e1(this[_0x35cd3d(0x132)],_0x35cd3d(0x14d)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x35cd3d(0x135),'isEnabled':!0x1}),_0x44438a['on'](_0x35cd3d(0x147),()=>{const _0x58bbf7=_0x35cd3d;this[_0x58bbf7(0x133)]();}),_0x44438a;}[_0x1deb21(0x13d)](_0x1a2411){const _0x357758=_0x1deb21;this[_0x357758(0x157)]=_0x1a2411;}[_0x1deb21(0x131)](){const _0x401ac1=_0x1deb21,_0x36e6d9=this[_0x401ac1(0x132)],_0x43afd8=()=>{const _0x472c91=_0x401ac1;_0x4de255[_0x472c91(0x123)][_0x472c91(0x159)](()=>{const _0xbc72f5=_0x472c91;if(_0x3f1e4e(this[_0xbc72f5(0x130)])){const _0x23b556=new _0x2e2d4e(this[_0xbc72f5(0x13c)][_0xbc72f5(0x137)][_0xbc72f5(0x130)]),_0x2c81a4=new _0x2e2d4e(this[_0xbc72f5(0x156)][_0xbc72f5(0x130)]),_0x4843d5=_0x23b556[_0xbc72f5(0x125)],_0x55e29e=_0xbc72f5(0x148)===_0x36e6d9[_0xbc72f5(0x13f)]?_0xbc72f5(0x138):_0xbc72f5(0x120);_0x23b556[_0xbc72f5(0x121)]();const _0x2e6bdf=_0x4843d5-_0x23b556[_0xbc72f5(0x125)]+0x1;this[_0xbc72f5(0x156)][_0xbc72f5(0x130)][_0xbc72f5(0x143)][_0x55e29e]=_0xbc72f5(0x15c)+(_0x4843d5-_0x2c81a4[_0xbc72f5(0x125)]-_0x2e6bdf)+_0xbc72f5(0x12a);}});};this[_0x401ac1(0x13c)][_0x401ac1(0x137)]['on'](_0x401ac1(0x155),_0x43afd8),this['on'](_0x401ac1(0x11f),()=>{const _0x23746a=_0x401ac1;_0x43afd8(),this[_0x23746a(0x152)]=new _0x2e83f3(this[_0x23746a(0x13c)][_0x23746a(0x137)][_0x23746a(0x130)],()=>{_0x43afd8();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x174e0e=_0x4e11;(function(_0xb02704,_0x4c3413){const _0x234934=_0x4e11,_0x2d7097=_0xb02704();while(!![]){try{const _0x59661b=-parseInt(_0x234934(0x1b9))/0x1*(-parseInt(_0x234934(0x1c0))/0x2)+-parseInt(_0x234934(0x1bf))/0x3+-parseInt(_0x234934(0x1c1))/0x4+parseInt(_0x234934(0x1bd))/0x5+parseInt(_0x234934(0x1ba))/0x6*(parseInt(_0x234934(0x1c2))/0x7)+-parseInt(_0x234934(0x1bb))/0x8*(-parseInt(_0x234934(0x1c3))/0x9)+-parseInt(_0x234934(0x1c4))/0xa;if(_0x59661b===_0x4c3413)break;else _0x2d7097['push'](_0x2d7097['shift']());}catch(_0x45bb5a){_0x2d7097['push'](_0x2d7097['shift']());}}}(_0x2f80,0xaba3b));import{ListView as _0x2f7926}from'ckeditor5/src/ui.js';function _0x4e11(_0x17a52e,_0x194775){const _0x2f80d8=_0x2f80();return _0x4e11=function(_0x4e1169,_0x33e924){_0x4e1169=_0x4e1169-0x1b9;let _0x4265f9=_0x2f80d8[_0x4e1169];return _0x4265f9;},_0x4e11(_0x17a52e,_0x194775);}export class AIChatPromptSuggestionsListView extends _0x2f7926{[_0x174e0e(0x1be)](){const _0x24084c=_0x174e0e;let _0x4fe6c1=0x0;for(const _0x337677 of this[_0x24084c(0x1c5)])_0x4fe6c1+=_0x337677[_0x24084c(0x1c5)][_0x24084c(0x1bc)];return{'resultsCount':_0x4fe6c1,'totalItemsCount':_0x4fe6c1};}}function _0x2f80(){const _0x3a1b9c=['20292gMlnyF','8IKxnPK','length','2699110pweYNA','filter','2583759CmUgaP','1522070pyGamD','5107328UtCrPs','2800oxKLGl','9034893ZfneLL','8164140SdDZCT','items','1QIsSMl'];_0x2f80=function(){return _0x3a1b9c;};return _0x2f80();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1ee6fb=_0x42ee;(function(_0x3cb06b,_0x5b1a3d){const _0x34ca2f=_0x42ee,_0x4031f1=_0x3cb06b();while(!![]){try{const _0x488c75=parseInt(_0x34ca2f(0x1a7))/0x1+-parseInt(_0x34ca2f(0x193))/0x2*(-parseInt(_0x34ca2f(0x1a5))/0x3)+-parseInt(_0x34ca2f(0x19b))/0x4*(parseInt(_0x34ca2f(0x18b))/0x5)+-parseInt(_0x34ca2f(0x199))/0x6+-parseInt(_0x34ca2f(0x18f))/0x7+-parseInt(_0x34ca2f(0x198))/0x8+parseInt(_0x34ca2f(0x19c))/0x9*(parseInt(_0x34ca2f(0x194))/0xa);if(_0x488c75===_0x5b1a3d)break;else _0x4031f1['push'](_0x4031f1['shift']());}catch(_0x172caa){_0x4031f1['push'](_0x4031f1['shift']());}}}(_0x1643,0x7701d));function _0x42ee(_0x54f991,_0x1c5bc2){const _0x164306=_0x1643();return _0x42ee=function(_0x42eeac,_0xb36876){_0x42eeac=_0x42eeac-0x189;let _0x2a0919=_0x164306[_0x42eeac];return _0x2a0919;},_0x42ee(_0x54f991,_0x1c5bc2);}import{ListView as _0x2c3a03}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x2d64f9}from'./aichatresourcelistitemview.js';const uc=_0x1ee6fb(0x192);function _0x1643(){const _0x14a879=['trim','highlightText','add','2622656MmsOVB','479892DkFHgv','extendTemplate','628nqAIJF','99KAdfYl','\x5c$&','forEach','items','_handleResourceSelection','resource','_source','setResources','execute','69RoorSg','useDefaultFiltering','956845NeHFhq','filter','clear','replace','label','24745QaKnFe','test','addResourceToContext','updateResourceState','1953987zZUJvB','locale','fire','ck-ai-chat-resources__list','70558fgpnbp','166490ltrRXd'];_0x1643=function(){return _0x14a879;};return _0x1643();}export class AIChatContextResourcesListView extends _0x2c3a03{[_0x1ee6fb(0x1a2)];constructor(_0x5edba8,_0x22ea0a){const _0x32574b=_0x1ee6fb;super(_0x5edba8),this[_0x32574b(0x1a2)]=_0x22ea0a,this[_0x32574b(0x19a)]({'attributes':{'class':[uc]}});}[_0x1ee6fb(0x1a3)](_0x44e371,_0x5734d4){const _0x58ab64=_0x1ee6fb;this[_0x58ab64(0x19f)][_0x58ab64(0x1a9)]();let _0xd17219=_0x44e371;if(this[_0x58ab64(0x1a2)][_0x58ab64(0x1a6)]&&_0x5734d4&&''!==_0x5734d4[_0x58ab64(0x195)]()){const _0x1d5d34=new RegExp(_0x5734d4[_0x58ab64(0x189)](/[.*+?^${}()|[\]\\]/g,_0x58ab64(0x19d)),'gi');_0xd17219=_0x44e371[_0x58ab64(0x1a8)](_0x221ad3=>_0x1d5d34[_0x58ab64(0x18c)](_0x221ad3[_0x58ab64(0x18a)]));}for(const _0x18581e of _0xd17219){const _0x2761d0=new _0x2d64f9(this[_0x58ab64(0x190)],_0x18581e);_0x2761d0['on'](_0x58ab64(0x1a4),()=>{const _0x4364c9=_0x58ab64;this[_0x4364c9(0x1a0)](this[_0x4364c9(0x1a2)],_0x18581e);}),this[_0x58ab64(0x19f)][_0x58ab64(0x197)](_0x2761d0);}this[_0x58ab64(0x1a2)][_0x58ab64(0x1a6)]&&this[_0x58ab64(0x196)](_0x5734d4);}[_0x1ee6fb(0x196)](_0x4e39e3){const _0x498156=_0x1ee6fb;this[_0x498156(0x1a2)][_0x498156(0x1a6)]&&this[_0x498156(0x19f)][_0x498156(0x19e)](_0x14e6d7=>{const _0x43efa4=_0x498156;_0x14e6d7[_0x43efa4(0x196)](_0x4e39e3);});}[_0x1ee6fb(0x18e)](_0x374a91,_0x5cbd92){const _0xd8a708=_0x1ee6fb;for(const _0x4d47c2 of this[_0xd8a708(0x19f)]){const _0x1a4677=_0x4d47c2;_0x1a4677[_0xd8a708(0x1a1)]['id']===_0x374a91&&_0x1a4677[_0xd8a708(0x18e)](_0x5cbd92);}}[_0x1ee6fb(0x1a0)](_0x2c454a,_0x1083fe){const _0x2796f1=_0x1ee6fb;this[_0x2796f1(0x191)](_0x2796f1(0x18d),{'source':_0x2c454a,'resource':_0x1083fe});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e221b=_0x5d2f;function _0x246f(){const _0x36987a=['add','children','locale','_createSearchSection','addResourceToContext','_resourcesListView','aiChatResources','div','ck-hidden','source','296EAKiFP','_createResourcesListView','92080yzVund','_skeletonLoader','highlightText','bindTemplate','search','1968UjwCir','_searchSection','15795fjEoiv','985327goibzA','839140ZTVpWY','loadResources','_latestLoadResourcesUid','_createSearchView','setTemplate','render','2098764pRSoyh','setResources','length','536bKpDpt','useDefaultFiltering','set','getQuery','_searchInputVisibleFrom','_source','_createSkeletonView','_searchView','36xUHOPc','46039frsNhp','extendTemplate','searchInputVisibleFrom','loadSourceResources','isLoading','4227JBtQGs','updateResourceState','delegate','ck-ai-chat-resources','has','165sALqzs','fire','ck\x20ck-search'];_0x246f=function(){return _0x36987a;};return _0x246f();}function _0x5d2f(_0x2e0b66,_0x2f5fc7){const _0x246fd9=_0x246f();return _0x5d2f=function(_0x5d2fa3,_0x4e0e13){_0x5d2fa3=_0x5d2fa3-0x110;let _0x1ada62=_0x246fd9[_0x5d2fa3];return _0x1ada62;},_0x5d2f(_0x2e0b66,_0x2f5fc7);}(function(_0x2cee98,_0x3cb8b4){const _0x440516=_0x5d2f,_0x452b95=_0x2cee98();while(!![]){try{const _0x41be74=-parseInt(_0x440516(0x11c))/0x1+parseInt(_0x440516(0x113))/0x2*(-parseInt(_0x440516(0x121))/0x3)+parseInt(_0x440516(0x133))/0x4*(parseInt(_0x440516(0x135))/0x5)+-parseInt(_0x440516(0x11b))/0x6*(parseInt(_0x440516(0x13d))/0x7)+parseInt(_0x440516(0x13a))/0x8*(-parseInt(_0x440516(0x13c))/0x9)+parseInt(_0x440516(0x13e))/0xa*(parseInt(_0x440516(0x126))/0xb)+-parseInt(_0x440516(0x110))/0xc;if(_0x41be74===_0x3cb8b4)break;else _0x452b95['push'](_0x452b95['shift']());}catch(_0x4a1e58){_0x452b95['push'](_0x452b95['shift']());}}}(_0x246f,0xb649a));import{View as _0x58c9d9,ViewCollection as _0x3e4a01}from'ckeditor5/src/ui.js';import{uid as _0x5b946d}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x54064e}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x34bb85}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x3526ee,SKELETON_DEFINITIONS as _0x584623}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x58c9d9{[_0x3e221b(0x11a)];[_0x3e221b(0x13b)];[_0x3e221b(0x117)];[_0x3e221b(0x12e)];[_0x3e221b(0x136)];[_0x3e221b(0x118)];[_0x3e221b(0x12a)];[_0x3e221b(0x140)]=null;constructor(_0x4593a5,_0x44a5a1){const _0x11dfd3=_0x3e221b;super(_0x4593a5),this[_0x11dfd3(0x118)]=_0x44a5a1[_0x11dfd3(0x132)],this[_0x11dfd3(0x117)]=_0x44a5a1[_0x11dfd3(0x11e)]??0x7,this[_0x11dfd3(0x115)](_0x11dfd3(0x120),!0x0),this[_0x11dfd3(0x11a)]=this[_0x11dfd3(0x141)](),this[_0x11dfd3(0x13b)]=this[_0x11dfd3(0x12c)](),this[_0x11dfd3(0x12e)]=this[_0x11dfd3(0x134)](),this[_0x11dfd3(0x136)]=this[_0x11dfd3(0x119)](),this[_0x11dfd3(0x12a)]=new _0x3e4a01([this[_0x11dfd3(0x136)],this[_0x11dfd3(0x12e)]]),this[_0x11dfd3(0x142)]({'tag':_0x11dfd3(0x130),'attributes':{'class':_0x11dfd3(0x124)},'children':this[_0x11dfd3(0x12a)]});}[_0x3e221b(0x141)](){const _0x53f07b=_0x3e221b;return new _0x34bb85(this[_0x53f07b(0x12b)]);}[_0x3e221b(0x12c)](){const _0x26df0d=_0x3e221b,_0x1a955d=new _0x58c9d9(this[_0x26df0d(0x12b)]);return _0x1a955d[_0x26df0d(0x142)]({'tag':_0x26df0d(0x130),'attributes':{'class':_0x26df0d(0x128)},'children':[this[_0x26df0d(0x11a)]]}),this[_0x26df0d(0x11a)]['on'](_0x26df0d(0x139),(_0xbd6e87,_0x1ba8f2)=>{const _0x1b0542=_0x26df0d;this[_0x1b0542(0x13f)](_0x1ba8f2),this[_0x1b0542(0x118)][_0x1b0542(0x114)]&&this[_0x1b0542(0x12e)][_0x1b0542(0x137)](_0x1ba8f2);}),_0x1a955d;}[_0x3e221b(0x134)](){const _0x59cd11=_0x3e221b,_0x4cce03=new _0x54064e(this[_0x59cd11(0x12b)],this[_0x59cd11(0x118)]);return _0x4cce03[_0x59cd11(0x123)](_0x59cd11(0x12d))['to'](this),_0x4cce03[_0x59cd11(0x11d)]({'attributes':{'class':this[_0x59cd11(0x138)]['if'](_0x59cd11(0x120),_0x59cd11(0x131))}}),_0x4cce03;}[_0x3e221b(0x119)](){const _0x10cbec=_0x3e221b,_0x9693ae=new _0x3526ee(this[_0x10cbec(0x12b)],_0x584623[_0x10cbec(0x12f)]);return _0x9693ae[_0x10cbec(0x11d)]({'attributes':{'class':[this[_0x10cbec(0x138)]['if'](_0x10cbec(0x120),_0x10cbec(0x131),_0x3e425b=>!_0x3e425b)]}}),_0x9693ae;}[_0x3e221b(0x143)](){const _0x40f50d=_0x3e221b;super[_0x40f50d(0x143)](),this[_0x40f50d(0x13f)]('');}[_0x3e221b(0x13f)](_0x1273c7){const _0x4b54d6=_0x3e221b,_0x287a89=_0x5b946d();this[_0x4b54d6(0x140)]=_0x287a89,this[_0x4b54d6(0x127)](_0x4b54d6(0x11f),{'sourceId':this[_0x4b54d6(0x118)]['id'],'query':_0x1273c7,'uid':_0x287a89}),this[_0x4b54d6(0x120)]=!0x0;}[_0x3e221b(0x111)](_0x254154,_0x594c68){const _0x4d8c8d=_0x3e221b;if(_0x594c68&&_0x594c68!==this[_0x4d8c8d(0x140)])return;const _0x8d9768=this[_0x4d8c8d(0x118)][_0x4d8c8d(0x114)]?this[_0x4d8c8d(0x11a)][_0x4d8c8d(0x116)]():'';this[_0x4d8c8d(0x12e)][_0x4d8c8d(0x111)](_0x254154,_0x8d9768),_0x254154[_0x4d8c8d(0x112)]>=this[_0x4d8c8d(0x117)]&&!this[_0x4d8c8d(0x12a)][_0x4d8c8d(0x125)](this[_0x4d8c8d(0x13b)])&&this[_0x4d8c8d(0x12a)][_0x4d8c8d(0x129)](this[_0x4d8c8d(0x13b)],0x0),requestAnimationFrame(()=>{const _0x256daa=_0x4d8c8d;this[_0x256daa(0x120)]=!0x1;});}[_0x3e221b(0x122)](_0x53d125,_0x38c6b2){const _0x15823a=_0x3e221b;this[_0x15823a(0x12e)][_0x15823a(0x122)](_0x53d125,_0x38c6b2);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11855a=_0x1f78;(function(_0x4251ba,_0x15eec9){const _0x5a505f=_0x1f78,_0x3050ab=_0x4251ba();while(!![]){try{const _0x2474c0=parseInt(_0x5a505f(0x18a))/0x1*(parseInt(_0x5a505f(0x1b4))/0x2)+-parseInt(_0x5a505f(0x1a7))/0x3*(parseInt(_0x5a505f(0x198))/0x4)+parseInt(_0x5a505f(0x18b))/0x5*(-parseInt(_0x5a505f(0x19f))/0x6)+parseInt(_0x5a505f(0x18e))/0x7*(parseInt(_0x5a505f(0x189))/0x8)+parseInt(_0x5a505f(0x18d))/0x9+parseInt(_0x5a505f(0x1af))/0xa*(parseInt(_0x5a505f(0x1ac))/0xb)+-parseInt(_0x5a505f(0x1a0))/0xc;if(_0x2474c0===_0x15eec9)break;else _0x3050ab['push'](_0x3050ab['shift']());}catch(_0x53641e){_0x3050ab['push'](_0x3050ab['shift']());}}}(_0x4b0a,0x50f62));import{HighlightedTextView as _0xf23f28,IconView as _0x49330c,ListItemView as _0x4363fc}from'ckeditor5/src/ui.js';function _0x4b0a(){const _0x19528d=['_createIconView','ck-ai-chat-resources__item','isInContext','div','highlightText','ck-hidden','341832jtTQsF','3425028uDsrZx','content','getResourceIcon','bindTemplate','_iconView','_setupTemplate','span','859461Zhtmik','resource','_createTitleView','execute','FILE','25135ZFQMkr','type','render','310PLVzqQ','trim','text','updateResourceState','label','302478kmnoLW','ck-ai-chat-resources__item--in-context','URL','16olyhVw','3JKGfwm','15DuYECZ','TEXT','3657141rjPnGb','1505091CnZOqo','setTemplate','_titleView','extendTemplate','DOCUMENT','set','ck-ai-chat-resources__item-title','isVisible','_updateIcon','ck-ai-chat-resources__item__icon','8wRCqBM'];_0x4b0a=function(){return _0x19528d;};return _0x4b0a();}import{escapeRegExp as _0x3a44ff}from'es-toolkit/compat';import{AIContextItemType as _0x5e5566}from'../../../../aicore/model/aicontext.js';function _0x1f78(_0x51b18d,_0x1ac4f2){const _0x4b0aa2=_0x4b0a();return _0x1f78=function(_0x1f7831,_0x108feb){_0x1f7831=_0x1f7831-0x188;let _0x48d9a0=_0x4b0aa2[_0x1f7831];return _0x48d9a0;},_0x1f78(_0x51b18d,_0x1ac4f2);}import{IconFileUpload as _0x39dc13,IconCheck as _0x17120f,IconDocument as _0x3fa851,IconDocumentOutline as _0x48335b,IconLink as _0x3f1e0e}from'@ckeditor/ckeditor5-icons';const zr=_0x11855a(0x19a),Jr=_0x11855a(0x1b5),Kr=_0x11855a(0x194),Mr=_0x11855a(0x197);export class AIChatResourceListItemView extends _0x4363fc{[_0x11855a(0x1a8)];[_0x11855a(0x190)];[_0x11855a(0x1a4)];constructor(_0x242d56,_0x25842){const _0x554915=_0x11855a;super(_0x242d56),this[_0x554915(0x1a8)]=_0x25842,this[_0x554915(0x193)](_0x554915(0x19b),!!_0x25842[_0x554915(0x19b)]),this[_0x554915(0x190)]=this[_0x554915(0x1a9)](),this[_0x554915(0x1a4)]=this[_0x554915(0x199)](),this[_0x554915(0x1a5)]();}[_0x11855a(0x1ae)](){const _0x466fb7=_0x11855a;super[_0x466fb7(0x1ae)]();}[_0x11855a(0x1a2)](_0x15adbb){const _0xb6bb5=_0x11855a;if(_0x15adbb[_0xb6bb5(0x19b)])return _0x17120f;switch(_0x15adbb[_0xb6bb5(0x1ad)]){case _0x5e5566[_0xb6bb5(0x192)]:return _0x3fa851;case _0x5e5566[_0xb6bb5(0x188)]:return _0x3f1e0e;case _0x5e5566[_0xb6bb5(0x1ab)]:case _0x5e5566[_0xb6bb5(0x18c)]:return _0x39dc13;default:return _0x48335b;}}[_0x11855a(0x19d)](_0x2d9f13){const _0x2143ec=_0x11855a;if(!_0x2d9f13||''===_0x2d9f13[_0x2143ec(0x1b0)]())return void this[_0x2143ec(0x190)][_0x2143ec(0x19d)](null);const _0x556b84=new RegExp(_0x3a44ff(_0x2d9f13),'gi');this[_0x2143ec(0x190)][_0x2143ec(0x19d)](_0x556b84);}[_0x11855a(0x1b2)](_0x1be113){const _0xd62d2a=_0x11855a;this[_0xd62d2a(0x1a8)][_0xd62d2a(0x19b)]=_0x1be113,this[_0xd62d2a(0x19b)]=_0x1be113,this[_0xd62d2a(0x196)]();}[_0x11855a(0x1a9)](){const _0x218ba1=_0x11855a,_0x4c254a=new _0xf23f28();return _0x4c254a[_0x218ba1(0x1b1)]=this[_0x218ba1(0x1a8)][_0x218ba1(0x1b3)],_0x4c254a[_0x218ba1(0x191)]({'tag':_0x218ba1(0x1a6),'attributes':{'class':[Kr]}}),_0x4c254a;}[_0x11855a(0x199)](){const _0x381116=_0x11855a,_0x43f884=new _0x49330c();return _0x43f884[_0x381116(0x1a1)]=this[_0x381116(0x1a2)](this[_0x381116(0x1a8)]),_0x43f884;}[_0x11855a(0x1a5)](){const _0x1c82f0=_0x11855a,_0x1fbf56=this[_0x1c82f0(0x1a3)];this[_0x1c82f0(0x18f)]({'tag':_0x1c82f0(0x19c),'attributes':{'class':[zr,_0x1fbf56['if'](_0x1c82f0(0x195),_0x1c82f0(0x19e),_0x3bade4=>!_0x3bade4),_0x1fbf56['if'](_0x1c82f0(0x19b),Jr)]},'children':[{'tag':_0x1c82f0(0x19c),'attributes':{'class':[Mr]},'children':[this[_0x1c82f0(0x1a4)]]},this[_0x1c82f0(0x190)]],'on':{'click':_0x1fbf56['to'](_0x1c82f0(0x1aa))}});}[_0x11855a(0x196)](){const _0x135344=_0x11855a;this[_0x135344(0x1a4)][_0x135344(0x1a1)]=this[_0x135344(0x1a2)](this[_0x135344(0x1a8)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x5cdd(){const _0x2d3afe=['800046MkAzxu','get','_createBalloonHeader','_getResourcesViewFromBalloon','1933603jjddfS','getTargetElement','135387xgVmzV','loadSourceResources','214PnAFdQ','children','_createBackButton','1598880NvWerH','onResourceSelected','label','_sourceResourceBalloons','searchInputVisibleFrom','resource','content','525BZURhf','_setupSingleResourceBalloonClickOutsideHandler','addResourceToContext','extendTemplate','setResources','_locale','once','onBalloonClosed','hide','show','5xbNOQo','_createBalloonResourcesView','populateSourceResourceBalloon','showSourceResourcesBalloon','8CsRkLq','_createSourceResourceBalloonPanel','onLoadSourceResources','isVisible','source','delete','closeSourceResourceBalloon','ck-button-icon\x20ck-button-back','clear','237736djLzjp','ck-ai-chat-context-controls__source-balloon-panel','values','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','getLimiterElement','_bodyCollection','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','set','865692KDLFHV','add','pin','destroy','onBackToContext','isAnyResourceBalloonVisible','execute','_addSourceResourceContent','updateResourceState','change:isLoading','_config','element'];_0x5cdd=function(){return _0x2d3afe;};return _0x5cdd();}function _0x1935(_0x34416c,_0x36381e){const _0x5cdd83=_0x5cdd();return _0x1935=function(_0x193565,_0xa25a36){_0x193565=_0x193565-0x1b0;let _0x4279e0=_0x5cdd83[_0x193565];return _0x4279e0;},_0x1935(_0x34416c,_0x36381e);}const _0x34a17f=_0x1935;(function(_0x33aae7,_0x29850f){const _0x1a7e3b=_0x1935,_0x3741f9=_0x33aae7();while(!![]){try{const _0x32f2de=-parseInt(_0x1a7e3b(0x1bd))/0x1+parseInt(_0x1a7e3b(0x1bf))/0x2*(-parseInt(_0x1a7e3b(0x1c9))/0x3)+-parseInt(_0x1a7e3b(0x1e0))/0x4*(parseInt(_0x1a7e3b(0x1d3))/0x5)+-parseInt(_0x1a7e3b(0x1e8))/0x6+parseInt(_0x1a7e3b(0x1bb))/0x7*(parseInt(_0x1a7e3b(0x1d7))/0x8)+parseInt(_0x1a7e3b(0x1b7))/0x9+parseInt(_0x1a7e3b(0x1c2))/0xa;if(_0x32f2de===_0x29850f)break;else _0x3741f9['push'](_0x3741f9['shift']());}catch(_0x3db4de){_0x3741f9['push'](_0x3741f9['shift']());}}}(_0x5cdd,0x28d0f));import{BalloonPanelView as _0x744221,ButtonView as _0xd77154,clickOutsideHandler as _0x2dc5cc,FormHeaderView as _0x2e78f2}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x4c4a2f}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x283394}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0xfe701}from'./aichatcontextresourcesview.js';const Bc=_0x34a17f(0x1e1),_c=_0x34a17f(0x1de),mc=_0x34a17f(0x1e6);export class AIChatResourcesBalloonView{[_0x34a17f(0x1c5)]=new Map();[_0x34a17f(0x1e5)];[_0x34a17f(0x1ce)];[_0x34a17f(0x1b5)];constructor(_0x940ebe,_0x44b5b7,_0x46c15b){const _0x48bdf7=_0x34a17f;this[_0x48bdf7(0x1ce)]=_0x940ebe,this[_0x48bdf7(0x1e5)]=_0x44b5b7,this[_0x48bdf7(0x1b5)]=_0x46c15b;}[_0x34a17f(0x1d6)]({source:_0x1a1270,withBackButton:_0x15cca8}){const _0x1cb96b=_0x34a17f;let _0x3c1c34=this[_0x1cb96b(0x1c5)][_0x1cb96b(0x1b8)](_0x1a1270['id']);_0x3c1c34||(_0x3c1c34=this[_0x1cb96b(0x1d8)](),this[_0x1cb96b(0x1c5)][_0x1cb96b(0x1e7)](_0x1a1270['id'],_0x3c1c34),this[_0x1cb96b(0x1ca)](_0x3c1c34)),this[_0x1cb96b(0x1b2)]({'balloonPanel':_0x3c1c34,'source':_0x1a1270,'withBackButton':_0x15cca8}),_0x3c1c34[_0x1cb96b(0x1d2)]();const _0x3ae7de=this[_0x1cb96b(0x1b5)][_0x1cb96b(0x1bc)]();_0x3ae7de&&_0x3c1c34[_0x1cb96b(0x1ea)]({'target':_0x3ae7de,'limiter':this[_0x1cb96b(0x1b5)][_0x1cb96b(0x1e4)]()});}[_0x34a17f(0x1d5)](_0x5316d0,_0x29768c,_0x52c226){const _0x2877f7=_0x34a17f,_0x14e4d1=this[_0x2877f7(0x1c5)][_0x2877f7(0x1b8)](_0x5316d0);if(!_0x14e4d1)return;const _0x2ead29=this[_0x2877f7(0x1ba)](_0x14e4d1);_0x2ead29&&(_0x2ead29[_0x2877f7(0x1cd)](_0x29768c,_0x52c226),_0x2ead29[_0x2877f7(0x1cf)](_0x2877f7(0x1b4),()=>{const _0xf4acaa=_0x2877f7;_0x14e4d1[_0xf4acaa(0x1ea)]({'target':this[_0xf4acaa(0x1b5)][_0xf4acaa(0x1bc)](),'limiter':this[_0xf4acaa(0x1b5)][_0xf4acaa(0x1e4)]()});}));}[_0x34a17f(0x1dd)](_0x14ba7c){const _0x4dbeaa=_0x34a17f,_0x1489fb=this[_0x4dbeaa(0x1c5)][_0x4dbeaa(0x1b8)](_0x14ba7c);_0x1489fb&&requestAnimationFrame(()=>{const _0x112290=_0x4dbeaa;_0x1489fb[_0x112290(0x1d1)](),this[_0x112290(0x1c5)][_0x112290(0x1dc)](_0x14ba7c),this[_0x112290(0x1b5)][_0x112290(0x1d0)]();});}[_0x34a17f(0x1b0)](){const _0x139785=_0x34a17f;for(const _0x4d1c66 of this[_0x139785(0x1c5)][_0x139785(0x1e2)]())if(_0x4d1c66[_0x139785(0x1da)])return!0x0;return!0x1;}[_0x34a17f(0x1b3)](_0x49e7e2,_0x25a984,_0x418d37){const _0x312a43=_0x34a17f,_0x49a0a3=this[_0x312a43(0x1c5)][_0x312a43(0x1b8)](_0x49e7e2);if(!_0x49a0a3||!_0x49a0a3[_0x312a43(0x1da)])return;const _0x11d331=this[_0x312a43(0x1b5)][_0x312a43(0x1bc)]();if(!_0x11d331)return;_0x49a0a3[_0x312a43(0x1ea)]({'target':_0x11d331,'limiter':this[_0x312a43(0x1b5)][_0x312a43(0x1e4)]()});const _0x27514f=this[_0x312a43(0x1ba)](_0x49a0a3);_0x27514f&&_0x27514f[_0x312a43(0x1b3)](_0x25a984,_0x418d37);}[_0x34a17f(0x1eb)](){const _0x28c5c6=_0x34a17f;for(const _0x424daa of this[_0x28c5c6(0x1c5)][_0x28c5c6(0x1e2)]())_0x424daa[_0x28c5c6(0x1eb)]();this[_0x28c5c6(0x1c5)][_0x28c5c6(0x1df)]();}[_0x34a17f(0x1d8)](){const _0x2c61a1=_0x34a17f,_0x9560fb=new _0x744221(this[_0x2c61a1(0x1ce)]);return _0x9560fb[_0x2c61a1(0x1cc)]({'attributes':{'class':Bc}}),this[_0x2c61a1(0x1e5)][_0x2c61a1(0x1e9)](_0x9560fb),_0x9560fb;}[_0x34a17f(0x1b2)]({balloonPanel:_0x191203,source:_0x456406,withBackButton:_0x4d0d08}){const _0xb68096=_0x34a17f;_0x191203[_0xb68096(0x1c8)][_0xb68096(0x1df)]();const _0x4c4c14=this[_0xb68096(0x1b9)]({'balloonPanel':_0x191203,'source':_0x456406,'withBackButton':_0x4d0d08});_0x191203[_0xb68096(0x1c8)][_0xb68096(0x1e9)](_0x4c4c14);const _0x115e1d=this[_0xb68096(0x1d4)](_0x456406);_0x191203[_0xb68096(0x1c8)][_0xb68096(0x1e9)](_0x115e1d);}[_0x34a17f(0x1b9)]({balloonPanel:_0x136c94,source:_0x1f5053,withBackButton:_0x9cb2c5}){const _0xa68438=_0x34a17f,_0x424371=new _0x2e78f2(this[_0xa68438(0x1ce)],{'label':_0x1f5053[_0xa68438(0x1c4)],'class':mc});return _0x9cb2c5&&_0x424371[_0xa68438(0x1c0)][_0xa68438(0x1e9)](this[_0xa68438(0x1c1)](_0x136c94),0x0),_0x424371;}[_0x34a17f(0x1c1)](_0x10090f){const _0x4bf498=_0x34a17f,_0x3c1103=new _0xd77154(this[_0x4bf498(0x1ce)]);return _0x3c1103[_0x4bf498(0x1e7)]({'icon':_0x4c4a2f,'tooltip':_0x283394(this[_0x4bf498(0x1ce)],_0x4bf498(0x1e3)),'tooltipPosition':'n','class':_c}),_0x3c1103['on'](_0x4bf498(0x1b1),()=>{const _0x3da036=_0x4bf498;_0x10090f[_0x3da036(0x1d1)](),this[_0x3da036(0x1b5)][_0x3da036(0x1ec)]();}),_0x3c1103;}[_0x34a17f(0x1d4)](_0x2c1e76){const _0x5af425=_0x34a17f,_0x28f4ae=new _0xfe701(this[_0x5af425(0x1ce)],{'source':_0x2c1e76,'searchInputVisibleFrom':this[_0x5af425(0x1b5)][_0x5af425(0x1c6)]});return _0x28f4ae['on'](_0x5af425(0x1be),(_0x2d6bbd,_0x1e12cd)=>{const _0x8ef01e=_0x5af425;this[_0x8ef01e(0x1b5)][_0x8ef01e(0x1d9)](_0x1e12cd);}),_0x28f4ae['on'](_0x5af425(0x1cb),(_0x128fa9,_0x333b5e)=>{const _0x31e367=_0x5af425;this[_0x31e367(0x1b5)][_0x31e367(0x1c3)](_0x333b5e[_0x31e367(0x1db)],_0x333b5e[_0x31e367(0x1c7)]),this[_0x31e367(0x1dd)](_0x2c1e76['id']);}),_0x28f4ae;}[_0x34a17f(0x1ba)](_0x4d5129){const _0x4a5762=_0x34a17f,_0x323580=_0x4d5129[_0x4a5762(0x1c8)][_0x4a5762(0x1b8)](0x1);return _0x323580 instanceof _0xfe701?_0x323580:null;}[_0x34a17f(0x1ca)](_0x1e332d){const _0x5dc567=_0x34a17f;_0x2dc5cc({'emitter':_0x1e332d,'contextElements':[_0x1e332d[_0x5dc567(0x1b6)]],'callback':()=>{const _0x3cd736=_0x5dc567;_0x1e332d[_0x3cd736(0x1d1)](),this[_0x3cd736(0x1b5)][_0x3cd736(0x1d0)]();},'activator':()=>_0x1e332d[_0x5dc567(0x1da)]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x1e5330,IconView as _0x12b84a,LabeledFieldView as _0x282335,createLabeledInputText as th}from'ckeditor5/src/ui.js';import{IconLoupe as _0x18ec0e,IconCancel as _0x413977}from'ckeditor5/src/icons.js';import{getTranslation as _0x328cf9}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x282335{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x5dee5e){const t=_0x5dee5e['t'],_0x43f362={'showResetButton':!0x0,'showIcon':!0x0,'creator':th,'label':_0x328cf9(_0x5dee5e,'AI_CHAT_SEARCH_RESOURCES')};super(_0x5dee5e,_0x43f362['creator']),this['label']=_0x43f362['label'],this['_viewConfig']=_0x43f362,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x5dee5e,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x40a6dc){this['fire']('search',_0x40a6dc);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x12b84a(),this['iconView']['content']=_0x18ec0e,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x4de887,t){this['resetButtonView']=new _0x1e5330(_0x4de887),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x413977,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0x549dd1=>!_0x549dd1),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}
|