@ckeditor/ckeditor5-ai 47.0.0 → 47.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/ckeditor5-metadata.json +9 -2
- package/dist/index-editor.css +119 -34
- package/dist/index.css +144 -35
- package/dist/index.js +4 -4
- 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/lang/contexts.json +5 -0
- 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/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.d.ts +3 -3
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +6 -0
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.d.ts +2 -4
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.d.ts +11 -4
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.d.ts +9 -0
- 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/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.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/aichat/utils/scrollmanager.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 +1 -1
- 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/aiconfig.d.ts +4 -0
- 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/aireply.d.ts +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/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.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/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.d.ts +2 -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.d.ts +2 -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/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +3 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +6 -0
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +31 -3
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +5 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +7 -5
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +3 -0
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +4 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +27 -3
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +13 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.d.ts +4 -0
- 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/errors.d.ts +5 -0
- package/src/errors.js +23 -0
- package/src/index.js +1 -1
- package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +4 -0
- package/theme/aichat/aichat-controls/model-unavailable-message.css +39 -0
- package/theme/aichat/aichat-controls.css +1 -0
- package/theme/aichat/aichat.css +0 -1
- package/theme/aichat/aichatfeed.css +9 -0
- package/theme/aichat/aisuggestioncontainer.css +7 -1
- package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +4 -0
- package/theme/aireviewmode/aireviewmode-check-list.css +4 -0
- package/theme/aireviewmode/aireviewmode-check-run-result.css +25 -19
- package/theme/aireviewmode/aireviewmode-check-run.css +35 -7
- package/theme/aitabs/aitabsview.css +2 -2
- package/theme/aitabs/tabs/tabsview.css +13 -3
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +0 -16
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x5af7(_0x5572ce,_0x190d5d){const _0x5c018b=_0x5c01();return _0x5af7=function(_0x5af798,_0xc92ce7){_0x5af798=_0x5af798-0x1f2;let _0x236f65=_0x5c018b[_0x5af798];return _0x236f65;},_0x5af7(_0x5572ce,_0x190d5d);}const _0x5295ce=_0x5af7;(function(_0x433e86,_0x2adb5a){const _0x538d2f=_0x5af7,_0x1fc99c=_0x433e86();while(!![]){try{const _0x388719=parseInt(_0x538d2f(0x20e))/0x1+parseInt(_0x538d2f(0x23a))/0x2+-parseInt(_0x538d2f(0x26a))/0x3*(parseInt(_0x538d2f(0x259))/0x4)+-parseInt(_0x538d2f(0x222))/0x5+parseInt(_0x538d2f(0x21a))/0x6+-parseInt(_0x538d2f(0x207))/0x7+-parseInt(_0x538d2f(0x26c))/0x8*(-parseInt(_0x538d2f(0x22f))/0x9);if(_0x388719===_0x2adb5a)break;else _0x1fc99c['push'](_0x1fc99c['shift']());}catch(_0x462be5){_0x1fc99c['push'](_0x1fc99c['shift']());}}}(_0x5c01,0x69437));import{BalloonPanelView as _0xe68e74,ButtonView as _0x338a4f,clickOutsideHandler as _0x365b23,FileDialogButtonView as _0x4f054f,IconView as _0x2be7bd,View as _0x55c271}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x3337bc,IconDocument as _0x41a09f,IconDocumentOutline as _0x279a9f,IconDropdownArrow as _0x93c803,IconLink as _0x30491c,IconPaperClip as _0x2d847b}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x2fc5d8}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x1611c8}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x5d1362}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x37ce30}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x370ec7}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x5295ce(0x27b),_0x5295ce(0x235),_0x5295ce(0x258),_0x5295ce(0x1f4),_0x5295ce(0x215),_0x5295ce(0x21f)];const bo=_0x5295ce(0x23e),To=_0x5295ce(0x24b),Ao=_0x5295ce(0x22c),ko=_0x5295ce(0x24c),Eo=_0x5295ce(0x21c),vo=_0x5295ce(0x263),go=_0x5295ce(0x1f5),Vo=_0x5295ce(0x265),fo=_0x5295ce(0x250),Io=_0x5295ce(0x24e),Po=_0x5295ce(0x272),Ro=_0x5295ce(0x27d),So=[_0xe68e74[_0x5295ce(0x201)][_0x5295ce(0x245)],_0xe68e74[_0x5295ce(0x201)][_0x5295ce(0x1f2)],_0xe68e74[_0x5295ce(0x201)][_0x5295ce(0x23f)],_0xe68e74[_0x5295ce(0x201)][_0x5295ce(0x261)],_0xe68e74[_0x5295ce(0x201)][_0x5295ce(0x267)],_0xe68e74[_0x5295ce(0x201)][_0x5295ce(0x20c)]];export class AIChatContextPanelView extends _0x55c271{[_0x5295ce(0x228)];[_0x5295ce(0x211)]=this[_0x5295ce(0x25a)]();[_0x5295ce(0x20d)]=this[_0x5295ce(0x25a)]();[_0x5295ce(0x1fd)];[_0x5295ce(0x209)];[_0x5295ce(0x210)];[_0x5295ce(0x1f9)];[_0x5295ce(0x27c)];[_0x5295ce(0x213)];[_0x5295ce(0x249)];constructor(_0x32f703,_0x2e657f){const _0x376a05=_0x5295ce;super(_0x32f703),this[_0x376a05(0x249)]=_0x2e657f,this[_0x376a05(0x211)]=this[_0x376a05(0x25a)](),this[_0x376a05(0x20d)]=this[_0x376a05(0x25a)](),this[_0x376a05(0x228)]=this[_0x376a05(0x20a)](_0x32f703),this[_0x376a05(0x209)]=this[_0x376a05(0x216)](_0x32f703),this[_0x376a05(0x210)]=this[_0x376a05(0x25b)](_0x32f703),this[_0x376a05(0x27c)]=this[_0x376a05(0x220)](_0x32f703,_0x2e657f);const _0x26d3dd={'cssClasses':{'showMoreButton':Io,'showMoreBalloon':Po,'overflowContainer':fo,'controlsButton':Vo}};this[_0x376a05(0x1fd)]=new _0x5d1362(_0x32f703,this[_0x376a05(0x211)],_0x26d3dd,this[_0x376a05(0x249)],this),this[_0x376a05(0x213)]={'buttonView':this[_0x376a05(0x228)],'balloonView':this[_0x376a05(0x209)],'hideMethod':this[_0x376a05(0x1f8)][_0x376a05(0x260)](this),'showMethod':this[_0x376a05(0x238)][_0x376a05(0x260)](this)},this[_0x376a05(0x224)](),this[_0x376a05(0x274)]();}[_0x5295ce(0x20f)](){const _0x52ecf5=_0x5295ce;super[_0x52ecf5(0x20f)](),this[_0x52ecf5(0x1f6)](),this[_0x52ecf5(0x1fd)][_0x52ecf5(0x278)](this[_0x52ecf5(0x254)]),this[_0x52ecf5(0x1fd)][_0x52ecf5(0x230)]();}[_0x5295ce(0x239)](){const _0x1e93a1=_0x5295ce;super[_0x1e93a1(0x239)](),this[_0x1e93a1(0x1fd)][_0x1e93a1(0x239)](),this[_0x1e93a1(0x27c)][_0x1e93a1(0x239)]();}[_0x5295ce(0x275)](_0x248aec,_0x20c157){const _0x46e363=_0x5295ce,_0x3c1376=this[_0x46e363(0x269)](_0x248aec,_0x46e363(0x257),!0x0,_0x20c157);this[_0x46e363(0x268)](_0x3c1376,this[_0x46e363(0x211)]),this[_0x46e363(0x1fd)][_0x46e363(0x230)]();}[_0x5295ce(0x215)](_0x3e4530){const _0x2d141a=_0x5295ce;this[_0x2d141a(0x27a)](_0x3e4530,this[_0x2d141a(0x211)]),this[_0x2d141a(0x27a)](_0x3e4530,this[_0x2d141a(0x1fd)][_0x2d141a(0x240)]),this[_0x2d141a(0x1fd)][_0x2d141a(0x230)]();}[_0x5295ce(0x262)](_0x3ed6f8,_0x4f9b0f){const _0x4b8e12=_0x5295ce;let _0x582df7=this[_0x4b8e12(0x211)][_0x4b8e12(0x27e)](_0x52062b=>_0x52062b['id']===_0x3ed6f8);_0x582df7||(_0x582df7=this[_0x4b8e12(0x1fd)][_0x4b8e12(0x240)][_0x4b8e12(0x27e)](_0x503487=>_0x503487['id']===_0x3ed6f8)),_0x582df7&&(_0x582df7[_0x4b8e12(0x22b)]=_0x4f9b0f);}[_0x5295ce(0x271)](_0x5940b4){const _0x3304a4=_0x5295ce;this[_0x3304a4(0x20d)][_0x3304a4(0x26b)]();for(const _0xbee25c of _0x5940b4){const _0x4e00ef=this[_0x3304a4(0x269)](_0xbee25c,_0x3304a4(0x23c),!0x1,!0x1);this[_0x3304a4(0x268)](_0x4e00ef,this[_0x3304a4(0x20d)]);}}[_0x5295ce(0x25e)](){const _0x239691=_0x5295ce;this[_0x239691(0x211)][_0x239691(0x26b)](),this[_0x239691(0x1fd)][_0x239691(0x26b)]();}[_0x5295ce(0x246)](){const _0x195f92=_0x5295ce;this[_0x195f92(0x20d)][_0x195f92(0x26b)]();}[_0x5295ce(0x255)](_0x5137ad,_0x3fd357,_0x2aa241){const _0x4887bd=_0x5295ce;this[_0x4887bd(0x27c)][_0x4887bd(0x255)](_0x5137ad,_0x3fd357,_0x2aa241);}[_0x5295ce(0x1f8)](){const _0x106749=_0x5295ce;this[_0x106749(0x24a)](!0x1);}[_0x5295ce(0x238)](){const _0x36f2be=_0x5295ce;this[_0x36f2be(0x24a)](!0x0);}[_0x5295ce(0x214)](){const _0x2078f9=_0x5295ce;this[_0x2078f9(0x210)][_0x2078f9(0x23b)](),this[_0x2078f9(0x228)][_0x2078f9(0x21e)]=!0x1,this[_0x2078f9(0x1f9)]&&this[_0x2078f9(0x1f9)][_0x2078f9(0x26b)]();}[_0x5295ce(0x1f3)](){const _0xf602cd=_0x5295ce;this[_0xf602cd(0x210)][_0xf602cd(0x227)](),this[_0xf602cd(0x228)][_0xf602cd(0x21e)]=!0x0;}[_0x5295ce(0x243)](_0x5bda21){const _0x5d0aa3=_0x5295ce;this[_0x5d0aa3(0x27c)][_0x5d0aa3(0x233)](_0x5bda21),this[_0x5d0aa3(0x228)][_0x5d0aa3(0x21e)]=!0x0;}[_0x5295ce(0x276)](_0x4a58c0,_0x52b726,_0x18d620,_0x5971c2){const _0x5293f4=_0x5295ce;this[_0x5293f4(0x27c)][_0x5293f4(0x276)](_0x4a58c0,_0x18d620,_0x5971c2);}[_0x5295ce(0x1fa)](_0x44e3a6){const _0x55b12c=_0x5295ce;this[_0x55b12c(0x27c)][_0x55b12c(0x1fa)](_0x44e3a6),this[_0x55b12c(0x228)][_0x55b12c(0x21e)]=!0x1;}[_0x5295ce(0x236)](_0x3aa2bd){const _0x2f8124=_0x5295ce;this[_0x2f8124(0x24f)](this[_0x2f8124(0x209)],this[_0x2f8124(0x205)],_0x3aa2bd),this[_0x2f8124(0x203)](_0x3aa2bd);}[_0x5295ce(0x203)](_0x27866d){const _0x53fc5a=_0x5295ce,_0x109460=!_0x27866d[_0x53fc5a(0x273)][_0x53fc5a(0x212)]&&_0x27866d[_0x53fc5a(0x273)][_0x53fc5a(0x244)],_0x3cc8f8=_0x27866d[_0x53fc5a(0x1ff)][_0x53fc5a(0x244)],_0x319965=_0x27866d[_0x53fc5a(0x277)][_0x53fc5a(0x244)];this[_0x53fc5a(0x228)][_0x53fc5a(0x26d)]=_0x109460||_0x3cc8f8||_0x319965;}[_0x5295ce(0x224)](){const _0xb483e1=_0x5295ce;this[_0xb483e1(0x231)]({'tag':_0xb483e1(0x226),'attributes':{'class':[bo,_0xb483e1(0x264)]},'children':[{'tag':_0xb483e1(0x226),'attributes':{'class':To},'children':this[_0xb483e1(0x211)]}]});}[_0x5295ce(0x274)](){const _0x55c4c0=_0x5295ce;this[_0x55c4c0(0x228)]['on'](_0x55c4c0(0x279),()=>{const _0x3f48f5=_0x55c4c0;this[_0x3f48f5(0x248)]();});}[_0x5295ce(0x20a)](_0x40095b){const _0x11fe1b=_0x5295ce,_0x112e94=new _0x338a4f(_0x40095b);return _0x112e94[_0x11fe1b(0x266)]({'label':_0x37ce30(_0x40095b,_0x11fe1b(0x229)),'class':Vo+'\x20'+ko,'icon':_0x2d847b,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x112e94;}[_0x5295ce(0x216)](_0x57f09c){const _0x60a526=_0x5295ce;return this[_0x60a526(0x23d)](_0x57f09c,Ao);}[_0x5295ce(0x25b)](_0x413e1e){const _0x383dc8=_0x5295ce,_0xe3fd02=this[_0x383dc8(0x23d)](_0x413e1e,Eo);return this[_0x383dc8(0x234)](_0xe3fd02,_0x413e1e),_0xe3fd02;}[_0x5295ce(0x220)](_0x5cc4f7,_0x3e4827){const _0x2fe1e4=_0x5295ce;return new _0x370ec7(_0x5cc4f7,_0x3e4827,{'onBackToContext':()=>{const _0x1ab4c7=_0x5af7;this[_0x1ab4c7(0x238)](),this[_0x1ab4c7(0x209)][_0x1ab4c7(0x225)]({'target':this[_0x1ab4c7(0x228)][_0x1ab4c7(0x254)],'limiter':this[_0x1ab4c7(0x20b)](),'positions':So});},'onResourceSelected':(_0x373230,_0x34a1cb)=>{const _0x164ffa=_0x5af7;this[_0x164ffa(0x26f)](_0x164ffa(0x1f4),{'source':_0x373230,'resource':_0x34a1cb});},'onLoadSourceResources':_0xe0c609=>{const _0x3a60a1=_0x5af7;this[_0x3a60a1(0x26f)](_0x3a60a1(0x21f),_0xe0c609);},'onBalloonClosed':()=>{const _0x287f4f=_0x5af7;this[_0x287f4f(0x228)][_0x287f4f(0x21e)]=!0x1;},'getLimiterElement':()=>this[_0x2fe1e4(0x20b)](),'getTargetElement':()=>this[_0x2fe1e4(0x228)][_0x2fe1e4(0x254)]});}[_0x5295ce(0x20b)](){const _0x7eb720=_0x5295ce;return this[_0x7eb720(0x254)]?.[_0x7eb720(0x208)]('.'+Ro)||document[_0x7eb720(0x22a)];}[_0x5295ce(0x23d)](_0x10b6c8,_0x2b1559){const _0x448e22=_0x5295ce,_0x2b9631=new _0xe68e74(_0x10b6c8);return _0x2b9631[_0x448e22(0x241)]({'attributes':{'class':_0x2b1559}}),this[_0x448e22(0x249)][_0x448e22(0x200)](_0x2b9631),_0x2b9631;}[_0x5295ce(0x24f)](_0x3806d,_0x139dbf,_0x1302bd){const _0x524710=_0x5295ce;if(_0x3806d[_0x524710(0x232)][_0x524710(0x26b)](),!_0x1302bd[_0x524710(0x273)][_0x524710(0x212)]&&_0x1302bd[_0x524710(0x273)][_0x524710(0x244)]){const _0x58664a=this[_0x524710(0x21b)](_0x139dbf,{'label':_0x37ce30(_0x139dbf,_0x524710(0x24d)),'icon':_0x41a09f});_0x58664a['on'](_0x524710(0x279),()=>{const _0x2f33b3=_0x524710;this[_0x2f33b3(0x26f)](_0x2f33b3(0x27b)),this[_0x2f33b3(0x1f8)]();}),_0x3806d[_0x524710(0x232)][_0x524710(0x200)](_0x58664a);}if(_0x1302bd[_0x524710(0x1ff)][_0x524710(0x244)]){const _0x5c08a2=this[_0x524710(0x21b)](_0x139dbf,{'label':_0x37ce30(_0x139dbf,_0x524710(0x1fc)),'icon':_0x30491c});_0x5c08a2['on'](_0x524710(0x279),()=>{const _0x3610cd=_0x524710;this[_0x3610cd(0x1f8)](),this[_0x3610cd(0x1f3)](),this[_0x3610cd(0x210)][_0x3610cd(0x225)]({'target':this[_0x3610cd(0x228)][_0x3610cd(0x254)],'limiter':this[_0x3610cd(0x20b)](),'positions':So}),this[_0x3610cd(0x1f9)][_0x3610cd(0x237)]();}),_0x3806d[_0x524710(0x232)][_0x524710(0x200)](_0x5c08a2);}if(_0x1302bd[_0x524710(0x277)][_0x524710(0x244)]){const _0x8ce114=new _0x4f054f(_0x139dbf);_0x8ce114[_0x524710(0x266)]({'label':_0x37ce30(_0x139dbf,_0x524710(0x202)),'icon':_0x3337bc,'withText':!0x0,'tooltip':!0x0,'class':vo,'allowMultipleFiles':!0x0}),_0x8ce114['on'](_0x524710(0x22d),(_0x3f4616,_0x30d15c)=>{const _0x232255=_0x524710;this[_0x232255(0x26f)](_0x232255(0x235),_0x30d15c),this[_0x232255(0x1f8)]();}),_0x8ce114[_0x524710(0x25f)]=!0x0,_0x3806d[_0x524710(0x232)][_0x524710(0x200)](_0x8ce114);}for(const _0x23cfee of _0x1302bd[_0x524710(0x253)]){const _0x2ece6a=this[_0x524710(0x21b)](_0x139dbf,{'label':_0x23cfee[_0x524710(0x251)],'icon':_0x23cfee[_0x524710(0x270)]||_0x279a9f,'type':_0x524710(0x252)});_0x3806d[_0x524710(0x232)][_0x524710(0x200)](_0x2ece6a),_0x2ece6a['on'](_0x524710(0x279),()=>{const _0x372a65=_0x524710;this[_0x372a65(0x1f8)](),this[_0x372a65(0x243)](_0x23cfee);});}}[_0x5295ce(0x234)](_0x34bed7,_0x120945){const _0x37dc4f=_0x5295ce;this[_0x37dc4f(0x1f9)]=new _0x1611c8(_0x120945),this[_0x37dc4f(0x1f9)]['on'](_0x37dc4f(0x223),(_0xe6677d,_0x2f27f8)=>{const _0x25f985=_0x37dc4f;this[_0x25f985(0x22e)](_0x2f27f8);}),this[_0x37dc4f(0x1f9)]['on'](_0x37dc4f(0x247),()=>{const _0x56ceb1=_0x37dc4f;this[_0x56ceb1(0x214)](),this[_0x56ceb1(0x238)](),this[_0x56ceb1(0x209)][_0x56ceb1(0x225)]({'target':this[_0x56ceb1(0x228)][_0x56ceb1(0x254)],'limiter':this[_0x56ceb1(0x20b)](),'positions':So});}),this[_0x37dc4f(0x1f9)]['on'](_0x37dc4f(0x206),()=>{const _0x1c46a7=_0x37dc4f;this[_0x1c46a7(0x210)][_0x1c46a7(0x204)]&&this[_0x1c46a7(0x210)][_0x1c46a7(0x225)]({'target':this[_0x1c46a7(0x228)][_0x1c46a7(0x254)],'limiter':this[_0x1c46a7(0x20b)](),'positions':So});}),_0x34bed7[_0x37dc4f(0x232)][_0x37dc4f(0x200)](this[_0x37dc4f(0x1f9)]);}[_0x5295ce(0x21b)](_0x1527d7,_0x3e016f){const _0x460f9b=_0x5295ce,_0x14de27=_0x460f9b(0x252)===_0x3e016f[_0x460f9b(0x221)]?new SourcesBalloonButtonView(_0x1527d7):new _0x338a4f(_0x1527d7);return _0x14de27[_0x460f9b(0x266)]({'label':_0x3e016f[_0x460f9b(0x251)],'icon':_0x3e016f[_0x460f9b(0x270)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':vo}),_0x14de27;}[_0x5295ce(0x1f6)](){const _0xab15c4=_0x5295ce;this[_0xab15c4(0x218)](),this[_0xab15c4(0x27f)]();}[_0x5295ce(0x27f)](){const _0x59bb6a=_0x5295ce;_0x365b23({'emitter':this[_0x59bb6a(0x210)],'contextElements':[this[_0x59bb6a(0x210)][_0x59bb6a(0x254)]],'callback':()=>{const _0xbe37e=_0x59bb6a;this[_0xbe37e(0x214)]();},'activator':()=>this[_0x59bb6a(0x210)][_0x59bb6a(0x204)]});}[_0x5295ce(0x24a)](_0x1eaace){const _0xa2d607=_0x5295ce,_0x61cd05=this[_0xa2d607(0x213)];_0x61cd05[_0xa2d607(0x242)][_0xa2d607(0x21e)]=_0x1eaace,_0x1eaace?_0x61cd05[_0xa2d607(0x219)][_0xa2d607(0x227)]():_0x61cd05[_0xa2d607(0x219)][_0xa2d607(0x23b)]();}[_0x5295ce(0x218)](){const _0x47f8b6=_0x5295ce,{balloonView:_0x5f37e2,buttonView:_0x24e323,hideMethod:_0x3223e1}=this[_0x47f8b6(0x213)];_0x365b23({'emitter':_0x5f37e2,'contextElements':[_0x5f37e2[_0x47f8b6(0x254)],_0x24e323[_0x47f8b6(0x254)]],'callback':()=>{_0x3223e1();},'activator':()=>_0x24e323[_0x47f8b6(0x21e)]&&!this[_0x47f8b6(0x210)][_0x47f8b6(0x204)]&&!this[_0x47f8b6(0x27c)][_0x47f8b6(0x1fe)]()});}[_0x5295ce(0x269)](_0x338e22,_0x5359a0,_0x559eb1=!0x1,_0x3bd3be=!0x1){const _0x4c3659=_0x5295ce,_0x1792ca=_0x4c3659(0x23c)===_0x5359a0||!0x0===_0x338e22[_0x4c3659(0x25c)],_0xf25d74=new _0x2fc5d8(this[_0x4c3659(0x205)],_0x338e22,_0x1792ca,_0x559eb1,_0x3bd3be);return _0x1792ca||_0xf25d74['on'](_0x4c3659(0x21d),()=>{const _0xd2413a=_0x4c3659;this[_0xd2413a(0x26f)](_0xd2413a(0x215),_0xf25d74['id']);}),_0xf25d74;}[_0x5295ce(0x268)](_0x276ca6,_0xe6cc0e){const _0x530b77=_0x5295ce;_0xe6cc0e[_0x530b77(0x200)](_0x276ca6,0x0);}[_0x5295ce(0x27a)](_0x10338c,_0x1fba37){const _0x2349d5=_0x5295ce,_0x5ed8f6=_0x1fba37[_0x2349d5(0x27e)](_0x2927d0=>_0x2927d0['id']===_0x10338c);_0x5ed8f6&&_0x1fba37[_0x2349d5(0x1fb)](_0x5ed8f6);}[_0x5295ce(0x248)](){const _0x1ce86c=_0x5295ce;this[_0x1ce86c(0x228)][_0x1ce86c(0x21e)]?this[_0x1ce86c(0x1f8)]():(this[_0x1ce86c(0x238)](),this[_0x1ce86c(0x209)][_0x1ce86c(0x225)]({'target':this[_0x1ce86c(0x228)][_0x1ce86c(0x254)],'limiter':this[_0x1ce86c(0x20b)](),'positions':So}));}[_0x5295ce(0x22e)](_0x300ab3){const _0x187b61=_0x5295ce;this[_0x187b61(0x1f9)][_0x187b61(0x26b)](),this[_0x187b61(0x214)](),this[_0x187b61(0x26f)](_0x187b61(0x258),_0x300ab3);}}export class SourcesBalloonButtonView extends _0x338a4f{[_0x5295ce(0x26e)];constructor(_0x391c0b){const _0x2dd6df=_0x5295ce;super(_0x391c0b),this[_0x2dd6df(0x266)]({'withText':!0x0,'role':_0x2dd6df(0x1f7)}),this[_0x2dd6df(0x26e)]=this[_0x2dd6df(0x217)](),this[_0x2dd6df(0x241)]({'attributes':{'class':[go]}});}[_0x5295ce(0x20f)](){const _0x2bab17=_0x5295ce;super[_0x2bab17(0x20f)](),this[_0x2bab17(0x256)][_0x2bab17(0x200)](this[_0x2bab17(0x26e)]);}[_0x5295ce(0x217)](){const _0x6df028=_0x5295ce,_0x36713b=new _0x2be7bd();return _0x36713b[_0x6df028(0x232)]=_0x93c803,_0x36713b[_0x6df028(0x241)]({'attributes':{'class':go+_0x6df028(0x25d)}}),_0x36713b;}}function _0x5c01(){const _0x3b2863=['urls','add','defaultPositions','AI_CHAT_CONTEXT_FILE_LABEL','_setAddContextButtonEnabled','isVisible','locale','refreshBalloon','802319zcOnnv','closest','_addContextBalloonPanelView','_createAddContextButtonView','_getLimiterElement','southArrowNorthEast','_conversationContextsChips','663926UxQCIO','render','_urlBalloonPanelView','_currentContextsChips','isHidden','_addContextBalloonConfig','hideUrlBalloonPanel','removeContextItem','_createAddContextBalloonPanelView','_createArrowView','_setupAddContextBalloonClickOutsideHandler','balloonView','3571116JjNyqr','_createBalloonButton','ck-ai-chat-context-controls__url-balloon-panel','removeContextItemChip','isOn','loadSourceResources','_createResourcesBalloonView','type','3830690aatwAQ','submitUrl','_setupTemplate','pin','div','show','addContextButtonView','AI_CHAT_CONTEXT_ADD_CONTEXT','body','isLoading','ck-ai-chat-context-controls__add-context-balloon-panel','done','_handleUrlSubmit','1962wpYxQV','reorganizeChips','setTemplate','content','showSourceResourcesBalloon','_addUrlContent','addFileToContext','setAddContextOptions','focus','showAddContextBalloonPanel','destroy','1200736AVFbWE','hide','conversation','_createBaseBalloonPanel','ck-ai-chat-context-controls','northArrowSouthEast','overflowChips','extendTemplate','buttonView','_showSourceResourcesBalloon','enabled','northArrowSouthWest','clearConversationContextItems','cancel','_handleAddContextButtonClick','bodyCollection','_toggleAddContextBalloon','ck-ai-chat-context-controls__pending-contexts','ck-ai-chat-context-controls__add-context-button','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','ck-ai-chat-controls_context_show-more-button','_setBalloonPanelContent','ck-ai-chat-context-chips-wrapper-balloon','label','source','sources','element','updateResourceState','children','current','addUrlToContext','2221656LajaFZ','createCollection','_createUrlBalloonPanelView','isReadOnly','__arrow','clearCurrentContextItems','tooltip','bind','southArrowNorthWest','setContextItemLoading','ck-ai-chat-context-controls__balloon-button','ck-reset_all-excluded','ck-ai-chat-controls-button','set','southArrowNorth','_addContextToCollection','_createContextButton','3lywUrI','clear','288RWsToM','isEnabled','arrowView','fire','icon','setConversationContext','ck-ai-chat-context-controls__show-more-balloon-panel','document','_bindEventHandlers','addContextItem','populateSourceResourceBalloon','files','setContainerElement','execute','_removeContextFromCollection','addDocumentToContext','_resourcesBalloonView','ck-ai-chat','find','_setupUrlBalloonClickOutsideHandler','northArrowSouth','showUrlBalloonPanel','addResourceToContext','ck-ai-chat-context-controls__balloon-button-source','_setupAllBalloonClickOutsideHandlers','menuitem','hideAddContextBalloonPanel','_urlInputView','closeSourceResourceBalloon','remove','AI_CHAT_CONTEXT_URL_LABEL','_overflowManager','isAnyResourceBalloonVisible'];_0x5c01=function(){return _0x3b2863;};return _0x5c01();}
|
|
23
|
+
const _0x2a36b6=_0x527a;(function(_0x19620f,_0x4d324d){const _0x461063=_0x527a,_0x29fbdf=_0x19620f();while(!![]){try{const _0x2bab2d=parseInt(_0x461063(0x11f))/0x1+-parseInt(_0x461063(0xf8))/0x2+parseInt(_0x461063(0xec))/0x3+-parseInt(_0x461063(0xd4))/0x4+-parseInt(_0x461063(0x13d))/0x5+-parseInt(_0x461063(0xf2))/0x6+parseInt(_0x461063(0x112))/0x7*(parseInt(_0x461063(0xef))/0x8);if(_0x2bab2d===_0x4d324d)break;else _0x29fbdf['push'](_0x29fbdf['shift']());}catch(_0x55b76b){_0x29fbdf['push'](_0x29fbdf['shift']());}}}(_0xab40,0x1a814));import{BalloonPanelView as _0x363dc8,ButtonView as _0x258c9c,clickOutsideHandler as _0x7d2fed,FileDialogButtonView as _0x5c2dac,IconView as _0x126796,View as _0x243f19}from'ckeditor5/src/ui.js';function _0xab40(){const _0x2f279f=['setAddContextOptions','bodyCollection','reorganizeChips','388113BjOJTX','buttonView','_setupTemplate','822552uVeCPv','createCollection','addDocumentToContext','526518SqXPGH','menuitem','_showSourceResourcesBalloon','ck-ai-chat-context-controls__show-more-balloon-panel','ck-ai-chat','_currentContextsChips','285956PiRVXi','element','ck-ai-chat-context-controls__add-context-button','isVisible','urls','isEnabled','_handleAddContextButtonClick','focus','_createResourcesBalloonView','showAddContextBalloonPanel','_addContextBalloonConfig','_addUrlContent','_overflowManager','fire','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','ck-ai-chat-context-controls__balloon-button','isHidden','ck-ai-chat-context-controls__url-balloon-panel','_createArrowView','showUrlBalloonPanel','addUrlToContext','_toggleAddContextBalloon','body','_addContextBalloonPanelView','icon','northArrowSouthEast','28PULPta','extendTemplate','_createAddContextButtonView','closest','AI_CHAT_CONTEXT_URL_LABEL','clear','addContextButtonView','ck-ai-chat-context-controls','hideAddContextBalloonPanel','add','enabled','content','ck-ai-chat-context-controls__pending-contexts','133383lItDkf','addContextItem','_createContextButton','_setupUrlBalloonClickOutsideHandler','_resourcesBalloonView','hideUrlBalloonPanel','tooltip','ck-reset_all-excluded','setTemplate','isAnyResourceBalloonVisible','ck-ai-chat-controls-button','ck-ai-chat-context-chips-wrapper-balloon','locale','clearCurrentContextItems','_bindEventHandlers','_createBaseBalloonPanel','execute','find','defaultPositions','show','type','_getLimiterElement','removeContextItem','render','ck-ai-chat-context-controls__balloon-button-source','clearConversationContextItems','addResourceToContext','pin','showSourceResourcesBalloon','submitUrl','852795xTCYqq','setConversationContext','ck-ai-chat-context-controls__add-context-balloon-panel','_urlBalloonPanelView','_conversationContextsChips','overflowChips','populateSourceResourceBalloon','setContainerElement','northArrowSouthWest','destroy','_setupAddContextBalloonClickOutsideHandler','northArrowSouth','_createUrlBalloonPanelView','refreshBalloon','AI_CHAT_CONTEXT_FILE_LABEL','_removeContextFromCollection','setContextItemLoading','__arrow','cancel','removeContextItemChip','children','files','balloonView','set','arrowView','_setupAllBalloonClickOutsideHandlers','southArrowNorthEast','_setAddContextButtonEnabled','div','isReadOnly','AI_CHAT_CONTEXT_ADD_CONTEXT','addFileToContext','hide','_setBalloonPanelContent','_createAddContextBalloonPanelView','loadSourceResources','656704vnbAjg','done','_handleUrlSubmit','_addContextToCollection','conversation','closeSourceResourceBalloon','southArrowNorthWest','updateResourceState','remove','isOn','_urlInputView','isLoading','current','document','sources','bind','source','southArrowNorth','label','ck-ai-chat-controls_context_show-more-button','_createBalloonButton'];_0xab40=function(){return _0x2f279f;};return _0xab40();}import{IconBrowseFiles as _0x3cd925,IconDocument as _0x512a46,IconDocumentOutline as _0x5bee98,IconDropdownArrow as _0x266538,IconLink as _0x213f71,IconPaperClip as _0x1849f7}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x5d6946}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x396dfb}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x31fbfc}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x5e3b2e}from'../../../aicore/utils/common-translations.js';function _0x527a(_0x17b1d4,_0x661e33){const _0xab4031=_0xab40();return _0x527a=function(_0x527a18,_0x370537){_0x527a18=_0x527a18-0xb4;let _0x2ae212=_0xab4031[_0x527a18];return _0x2ae212;},_0x527a(_0x17b1d4,_0x661e33);}import{AIChatResourcesBalloonView as _0x28cd2e}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x2a36b6(0xf1),_0x2a36b6(0xcf),_0x2a36b6(0x10c),_0x2a36b6(0x139),_0x2a36b6(0x135),_0x2a36b6(0xd3)];const To=_0x2a36b6(0x119),Ao=_0x2a36b6(0x11e),ko=_0x2a36b6(0x13f),Eo=_0x2a36b6(0xfa),vo=_0x2a36b6(0x109),go=_0x2a36b6(0x107),Vo=_0x2a36b6(0x137),fo=_0x2a36b6(0x129),Io=_0x2a36b6(0x12a),Po=_0x2a36b6(0xe7),Ro=_0x2a36b6(0xf5),Uo=_0x2a36b6(0xf6),Lo=[_0x363dc8[_0x2a36b6(0x131)][_0x2a36b6(0xb8)],_0x363dc8[_0x2a36b6(0x131)][_0x2a36b6(0xbb)],_0x363dc8[_0x2a36b6(0x131)][_0x2a36b6(0x111)],_0x363dc8[_0x2a36b6(0x131)][_0x2a36b6(0xda)],_0x363dc8[_0x2a36b6(0x131)][_0x2a36b6(0xe5)],_0x363dc8[_0x2a36b6(0x131)][_0x2a36b6(0xca)]];export class AIChatContextPanelView extends _0x243f19{[_0x2a36b6(0x118)];[_0x2a36b6(0xf7)]=this[_0x2a36b6(0xf0)]();[_0x2a36b6(0xb4)]=this[_0x2a36b6(0xf0)]();[_0x2a36b6(0x104)];[_0x2a36b6(0x10f)];[_0x2a36b6(0x140)];[_0x2a36b6(0xde)];[_0x2a36b6(0x123)];[_0x2a36b6(0x102)];[_0x2a36b6(0xea)];constructor(_0x4c81c0,_0x2c6b56){const _0xdc107e=_0x2a36b6;super(_0x4c81c0),this[_0xdc107e(0xea)]=_0x2c6b56,this[_0xdc107e(0xf7)]=this[_0xdc107e(0xf0)](),this[_0xdc107e(0xb4)]=this[_0xdc107e(0xf0)](),this[_0xdc107e(0x118)]=this[_0xdc107e(0x114)](_0x4c81c0),this[_0xdc107e(0x10f)]=this[_0xdc107e(0xd2)](_0x4c81c0),this[_0xdc107e(0x140)]=this[_0xdc107e(0xbc)](_0x4c81c0),this[_0xdc107e(0x123)]=this[_0xdc107e(0x100)](_0x4c81c0,_0x2c6b56);const _0x3a06cd={'cssClasses':{'showMoreButton':Po,'showMoreBalloon':Ro,'overflowContainer':Io,'controlsButton':fo}};this[_0xdc107e(0x104)]=new _0x31fbfc(_0x4c81c0,this[_0xdc107e(0xf7)],_0x3a06cd,this[_0xdc107e(0xea)],this),this[_0xdc107e(0x102)]={'buttonView':this[_0xdc107e(0x118)],'balloonView':this[_0xdc107e(0x10f)],'hideMethod':this[_0xdc107e(0x11a)][_0xdc107e(0xe3)](this),'showMethod':this[_0xdc107e(0x101)][_0xdc107e(0xe3)](this)},this[_0xdc107e(0xee)](),this[_0xdc107e(0x12d)]();}[_0x2a36b6(0x136)](){const _0x14498f=_0x2a36b6;super[_0x14498f(0x136)](),this[_0x14498f(0xc9)](),this[_0x14498f(0x104)][_0x14498f(0xb7)](this[_0x14498f(0xf9)]),this[_0x14498f(0x104)][_0x14498f(0xeb)]();}[_0x2a36b6(0xb9)](){const _0x294f05=_0x2a36b6;super[_0x294f05(0xb9)](),this[_0x294f05(0x104)][_0x294f05(0xb9)](),this[_0x294f05(0x123)][_0x294f05(0xb9)]();}[_0x2a36b6(0x120)](_0x48d525,_0x473678){const _0x4178c0=_0x2a36b6,_0x35d4f5=this[_0x4178c0(0x121)](_0x48d525,_0x4178c0(0xe0),!0x0,_0x473678);this[_0x4178c0(0xd7)](_0x35d4f5,this[_0x4178c0(0xf7)]),this[_0x4178c0(0x104)][_0x4178c0(0xeb)]();}[_0x2a36b6(0x135)](_0x375b47){const _0x37d414=_0x2a36b6;this[_0x37d414(0xbf)](_0x375b47,this[_0x37d414(0xf7)]),this[_0x37d414(0xbf)](_0x375b47,this[_0x37d414(0x104)][_0x37d414(0xb5)]),this[_0x37d414(0x104)][_0x37d414(0xeb)]();}[_0x2a36b6(0xc0)](_0x43c57d,_0xc22695){const _0x18d41a=_0x2a36b6;let _0x5e79cf=this[_0x18d41a(0xf7)][_0x18d41a(0x130)](_0x3c9758=>_0x3c9758['id']===_0x43c57d);_0x5e79cf||(_0x5e79cf=this[_0x18d41a(0x104)][_0x18d41a(0xb5)][_0x18d41a(0x130)](_0x17721d=>_0x17721d['id']===_0x43c57d)),_0x5e79cf&&(_0x5e79cf[_0x18d41a(0xdf)]=_0xc22695);}[_0x2a36b6(0x13e)](_0x5d55d8){const _0x1d0b0c=_0x2a36b6;this[_0x1d0b0c(0xb4)][_0x1d0b0c(0x117)]();for(const _0x1e4956 of _0x5d55d8){const _0x1f0eaa=this[_0x1d0b0c(0x121)](_0x1e4956,_0x1d0b0c(0xd8),!0x1,!0x1);this[_0x1d0b0c(0xd7)](_0x1f0eaa,this[_0x1d0b0c(0xb4)]);}}[_0x2a36b6(0x12c)](){const _0x1e5a7e=_0x2a36b6;this[_0x1e5a7e(0xf7)][_0x1e5a7e(0x117)](),this[_0x1e5a7e(0x104)][_0x1e5a7e(0x117)]();}[_0x2a36b6(0x138)](){const _0x1a2b34=_0x2a36b6;this[_0x1a2b34(0xb4)][_0x1a2b34(0x117)]();}[_0x2a36b6(0xdb)](_0x24de9a,_0x69df81,_0x33ca4a){const _0x4fe836=_0x2a36b6;this[_0x4fe836(0x123)][_0x4fe836(0xdb)](_0x24de9a,_0x69df81,_0x33ca4a);}[_0x2a36b6(0x11a)](){const _0x4f43bf=_0x2a36b6;this[_0x4f43bf(0x10d)](!0x1);}[_0x2a36b6(0x101)](){const _0x1d207c=_0x2a36b6;this[_0x1d207c(0x10d)](!0x0);}[_0x2a36b6(0x124)](){const _0x3c0ed3=_0x2a36b6;this[_0x3c0ed3(0x140)][_0x3c0ed3(0xd0)](),this[_0x3c0ed3(0x118)][_0x3c0ed3(0xdd)]=!0x1,this[_0x3c0ed3(0xde)]&&this[_0x3c0ed3(0xde)][_0x3c0ed3(0x117)]();}[_0x2a36b6(0x10b)](){const _0x17b028=_0x2a36b6;this[_0x17b028(0x140)][_0x17b028(0x132)](),this[_0x17b028(0x118)][_0x17b028(0xdd)]=!0x0;}[_0x2a36b6(0xf4)](_0x5066a8){const _0x3a4f68=_0x2a36b6;this[_0x3a4f68(0x123)][_0x3a4f68(0x13b)](_0x5066a8),this[_0x3a4f68(0x118)][_0x3a4f68(0xdd)]=!0x0;}[_0x2a36b6(0xb6)](_0x12d39f,_0x31912b,_0x170caf,_0x314ea3){const _0x5c7612=_0x2a36b6;this[_0x5c7612(0x123)][_0x5c7612(0xb6)](_0x12d39f,_0x170caf,_0x314ea3);}[_0x2a36b6(0xd9)](_0x1ea139){const _0xa3ee28=_0x2a36b6;this[_0xa3ee28(0x123)][_0xa3ee28(0xd9)](_0x1ea139),this[_0xa3ee28(0x118)][_0xa3ee28(0xdd)]=!0x1;}[_0x2a36b6(0xe9)](_0x2b78d5){const _0x5129e9=_0x2a36b6;this[_0x5129e9(0xd1)](this[_0x5129e9(0x10f)],this[_0x5129e9(0x12b)],_0x2b78d5),this[_0x5129e9(0xcb)](_0x2b78d5);}[_0x2a36b6(0xcb)](_0x1f60c9){const _0x126a4d=_0x2a36b6,_0x3c4228=!_0x1f60c9[_0x126a4d(0xe1)][_0x126a4d(0x108)]&&_0x1f60c9[_0x126a4d(0xe1)][_0x126a4d(0x11c)],_0x481d2e=_0x1f60c9[_0x126a4d(0xfc)][_0x126a4d(0x11c)],_0x74b6cc=_0x1f60c9[_0x126a4d(0xc5)][_0x126a4d(0x11c)];this[_0x126a4d(0x118)][_0x126a4d(0xfd)]=_0x3c4228||_0x481d2e||_0x74b6cc;}[_0x2a36b6(0xee)](){const _0x2c3ded=_0x2a36b6;this[_0x2c3ded(0x127)]({'tag':_0x2c3ded(0xcc),'attributes':{'class':[To,_0x2c3ded(0x126)]},'children':[{'tag':_0x2c3ded(0xcc),'attributes':{'class':Ao},'children':this[_0x2c3ded(0xf7)]}]});}[_0x2a36b6(0x12d)](){const _0x5f1a48=_0x2a36b6;this[_0x5f1a48(0x118)]['on'](_0x5f1a48(0x12f),()=>{const _0x2a3e51=_0x5f1a48;this[_0x2a3e51(0xfe)]();});}[_0x2a36b6(0x114)](_0x4f81f4){const _0x2e824c=_0x2a36b6,_0x390bf6=new _0x258c9c(_0x4f81f4);return _0x390bf6[_0x2e824c(0xc7)]({'label':_0x5e3b2e(_0x4f81f4,_0x2e824c(0xce)),'class':fo+'\x20'+Eo,'icon':_0x1849f7,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x390bf6;}[_0x2a36b6(0xd2)](_0x415df){const _0x5abef1=_0x2a36b6;return this[_0x5abef1(0x12e)](_0x415df,ko);}[_0x2a36b6(0xbc)](_0x4c49c0){const _0x4ae9c3=_0x2a36b6,_0x16352d=this[_0x4ae9c3(0x12e)](_0x4c49c0,vo);return this[_0x4ae9c3(0x103)](_0x16352d,_0x4c49c0),_0x16352d;}[_0x2a36b6(0x100)](_0xf93236,_0xed1125){const _0x5b929e=_0x2a36b6;return new _0x28cd2e(_0xf93236,_0xed1125,{'onBackToContext':()=>{const _0x716317=_0x527a;this[_0x716317(0x101)](),this[_0x716317(0x10f)][_0x716317(0x13a)]({'target':this[_0x716317(0x118)][_0x716317(0xf9)],'limiter':this[_0x716317(0x134)](),'positions':Lo});},'onResourceSelected':(_0x1d9499,_0x566e7)=>{const _0x2a8c5b=_0x527a;this[_0x2a8c5b(0x105)](_0x2a8c5b(0x139),{'source':_0x1d9499,'resource':_0x566e7});},'onLoadSourceResources':_0x413219=>{const _0x2ee8fd=_0x527a;this[_0x2ee8fd(0x105)](_0x2ee8fd(0xd3),_0x413219);},'onBalloonClosed':()=>{const _0x543b38=_0x527a;this[_0x543b38(0x118)][_0x543b38(0xdd)]=!0x1;},'getLimiterElement':()=>this[_0x5b929e(0x134)](),'getTargetElement':()=>this[_0x5b929e(0x118)][_0x5b929e(0xf9)]});}[_0x2a36b6(0x134)](){const _0xdbc66b=_0x2a36b6;return this[_0xdbc66b(0xf9)]?.[_0xdbc66b(0x115)]('.'+Uo)||document[_0xdbc66b(0x10e)];}[_0x2a36b6(0x12e)](_0x1d6387,_0x45805f){const _0x44c7cf=_0x2a36b6,_0x31b751=new _0x363dc8(_0x1d6387);return _0x31b751[_0x44c7cf(0x113)]({'attributes':{'class':_0x45805f}}),this[_0x44c7cf(0xea)][_0x44c7cf(0x11b)](_0x31b751),_0x31b751;}[_0x2a36b6(0xd1)](_0x39d4b0,_0x3afe1b,_0x215f7f){const _0x57f292=_0x2a36b6;if(_0x39d4b0[_0x57f292(0x11d)][_0x57f292(0x117)](),!_0x215f7f[_0x57f292(0xe1)][_0x57f292(0x108)]&&_0x215f7f[_0x57f292(0xe1)][_0x57f292(0x11c)]){const _0x4d6d22=this[_0x57f292(0xe8)](_0x3afe1b,{'label':_0x5e3b2e(_0x3afe1b,_0x57f292(0x106)),'icon':_0x512a46});_0x4d6d22['on'](_0x57f292(0x12f),()=>{const _0x3453da=_0x57f292;this[_0x3453da(0x105)](_0x3453da(0xf1)),this[_0x3453da(0x11a)]();}),_0x39d4b0[_0x57f292(0x11d)][_0x57f292(0x11b)](_0x4d6d22);}if(_0x215f7f[_0x57f292(0xfc)][_0x57f292(0x11c)]){const _0x623724=this[_0x57f292(0xe8)](_0x3afe1b,{'label':_0x5e3b2e(_0x3afe1b,_0x57f292(0x116)),'icon':_0x213f71});_0x623724['on'](_0x57f292(0x12f),()=>{const _0x57d4af=_0x57f292;this[_0x57d4af(0x11a)](),this[_0x57d4af(0x10b)](),this[_0x57d4af(0x140)][_0x57d4af(0x13a)]({'target':this[_0x57d4af(0x118)][_0x57d4af(0xf9)],'limiter':this[_0x57d4af(0x134)](),'positions':Lo}),this[_0x57d4af(0xde)][_0x57d4af(0xff)]();}),_0x39d4b0[_0x57f292(0x11d)][_0x57f292(0x11b)](_0x623724);}if(_0x215f7f[_0x57f292(0xc5)][_0x57f292(0x11c)]){const _0x4df333=new _0x5c2dac(_0x3afe1b);_0x4df333[_0x57f292(0xc7)]({'label':_0x5e3b2e(_0x3afe1b,_0x57f292(0xbe)),'icon':_0x3cd925,'withText':!0x0,'tooltip':!0x0,'class':go,'allowMultipleFiles':!0x0}),_0x4df333['on'](_0x57f292(0xd5),(_0x1887be,_0x2e32ed)=>{const _0xb3b139=_0x57f292;this[_0xb3b139(0x105)](_0xb3b139(0xcf),_0x2e32ed),this[_0xb3b139(0x11a)]();}),_0x4df333[_0x57f292(0x125)]=!0x0,_0x39d4b0[_0x57f292(0x11d)][_0x57f292(0x11b)](_0x4df333);}for(const _0x5b0eef of _0x215f7f[_0x57f292(0xe2)]){const _0x1c0b8d=this[_0x57f292(0xe8)](_0x3afe1b,{'label':_0x5b0eef[_0x57f292(0xe6)],'icon':_0x5b0eef[_0x57f292(0x110)]||_0x5bee98,'type':_0x57f292(0xe4)});_0x39d4b0[_0x57f292(0x11d)][_0x57f292(0x11b)](_0x1c0b8d),_0x1c0b8d['on'](_0x57f292(0x12f),()=>{const _0x506177=_0x57f292;this[_0x506177(0x11a)](),this[_0x506177(0xf4)](_0x5b0eef);});}}[_0x2a36b6(0x103)](_0x21d173,_0x226c4c){const _0x300119=_0x2a36b6;this[_0x300119(0xde)]=new _0x396dfb(_0x226c4c),this[_0x300119(0xde)]['on'](_0x300119(0x13c),(_0x214e79,_0x1626b1)=>{const _0x1f2da1=_0x300119;this[_0x1f2da1(0xd6)](_0x1626b1);}),this[_0x300119(0xde)]['on'](_0x300119(0xc2),()=>{const _0x486939=_0x300119;this[_0x486939(0x124)](),this[_0x486939(0x101)](),this[_0x486939(0x10f)][_0x486939(0x13a)]({'target':this[_0x486939(0x118)][_0x486939(0xf9)],'limiter':this[_0x486939(0x134)](),'positions':Lo});}),this[_0x300119(0xde)]['on'](_0x300119(0xbd),()=>{const _0x466edd=_0x300119;this[_0x466edd(0x140)][_0x466edd(0xfb)]&&this[_0x466edd(0x140)][_0x466edd(0x13a)]({'target':this[_0x466edd(0x118)][_0x466edd(0xf9)],'limiter':this[_0x466edd(0x134)](),'positions':Lo});}),_0x21d173[_0x300119(0x11d)][_0x300119(0x11b)](this[_0x300119(0xde)]);}[_0x2a36b6(0xe8)](_0x58675e,_0x4621c8){const _0x116294=_0x2a36b6,_0x406772=_0x116294(0xe4)===_0x4621c8[_0x116294(0x133)]?new SourcesBalloonButtonView(_0x58675e):new _0x258c9c(_0x58675e);return _0x406772[_0x116294(0xc7)]({'label':_0x4621c8[_0x116294(0xe6)],'icon':_0x4621c8[_0x116294(0x110)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':go}),_0x406772;}[_0x2a36b6(0xc9)](){const _0xfeedf2=_0x2a36b6;this[_0xfeedf2(0xba)](),this[_0xfeedf2(0x122)]();}[_0x2a36b6(0x122)](){const _0x12fd19=_0x2a36b6;_0x7d2fed({'emitter':this[_0x12fd19(0x140)],'contextElements':[this[_0x12fd19(0x140)][_0x12fd19(0xf9)]],'callback':()=>{const _0x4e96b6=_0x12fd19;this[_0x4e96b6(0x124)]();},'activator':()=>this[_0x12fd19(0x140)][_0x12fd19(0xfb)]});}[_0x2a36b6(0x10d)](_0x4a62d9){const _0x137412=_0x2a36b6,_0x511162=this[_0x137412(0x102)];_0x511162[_0x137412(0xed)][_0x137412(0xdd)]=_0x4a62d9,_0x4a62d9?_0x511162[_0x137412(0xc6)][_0x137412(0x132)]():_0x511162[_0x137412(0xc6)][_0x137412(0xd0)]();}[_0x2a36b6(0xba)](){const _0x8aae4=_0x2a36b6,{balloonView:_0x166457,buttonView:_0x3c6b35,hideMethod:_0x58b40e}=this[_0x8aae4(0x102)];_0x7d2fed({'emitter':_0x166457,'contextElements':[_0x166457[_0x8aae4(0xf9)],_0x3c6b35[_0x8aae4(0xf9)]],'callback':()=>{_0x58b40e();},'activator':()=>_0x3c6b35[_0x8aae4(0xdd)]&&!this[_0x8aae4(0x140)][_0x8aae4(0xfb)]&&!this[_0x8aae4(0x123)][_0x8aae4(0x128)]()});}[_0x2a36b6(0x121)](_0x588f50,_0x126c76,_0x40002b=!0x1,_0x3f7f98=!0x1){const _0x43b04d=_0x2a36b6,_0x1a6dc5=_0x43b04d(0xd8)===_0x126c76||!0x0===_0x588f50[_0x43b04d(0xcd)],_0x3ef555=new _0x5d6946(this[_0x43b04d(0x12b)],_0x588f50,_0x1a6dc5,_0x40002b,_0x3f7f98);return _0x1a6dc5||_0x3ef555['on'](_0x43b04d(0xc3),()=>{const _0x35aa79=_0x43b04d;this[_0x35aa79(0x105)](_0x35aa79(0x135),_0x3ef555['id']);}),_0x3ef555;}[_0x2a36b6(0xd7)](_0x38256a,_0xaf9bc5){const _0x238cf7=_0x2a36b6;_0xaf9bc5[_0x238cf7(0x11b)](_0x38256a,0x0);}[_0x2a36b6(0xbf)](_0x18d693,_0xd97836){const _0x2325a2=_0x2a36b6,_0x291aca=_0xd97836[_0x2325a2(0x130)](_0x23af7f=>_0x23af7f['id']===_0x18d693);_0x291aca&&_0xd97836[_0x2325a2(0xdc)](_0x291aca);}[_0x2a36b6(0xfe)](){const _0x50f5aa=_0x2a36b6;this[_0x50f5aa(0x118)][_0x50f5aa(0xdd)]?this[_0x50f5aa(0x11a)]():(this[_0x50f5aa(0x101)](),this[_0x50f5aa(0x10f)][_0x50f5aa(0x13a)]({'target':this[_0x50f5aa(0x118)][_0x50f5aa(0xf9)],'limiter':this[_0x50f5aa(0x134)](),'positions':Lo}));}[_0x2a36b6(0xd6)](_0x350c3c){const _0x532355=_0x2a36b6;this[_0x532355(0xde)][_0x532355(0x117)](),this[_0x532355(0x124)](),this[_0x532355(0x105)](_0x532355(0x10c),_0x350c3c);}}export class SourcesBalloonButtonView extends _0x258c9c{[_0x2a36b6(0xc8)];constructor(_0x533288){const _0x1c3ef4=_0x2a36b6;super(_0x533288),this[_0x1c3ef4(0xc7)]({'withText':!0x0,'role':_0x1c3ef4(0xf3)}),this[_0x1c3ef4(0xc8)]=this[_0x1c3ef4(0x10a)](),this[_0x1c3ef4(0x113)]({'attributes':{'class':[Vo]}});}[_0x2a36b6(0x136)](){const _0x6c7198=_0x2a36b6;super[_0x6c7198(0x136)](),this[_0x6c7198(0xc4)][_0x6c7198(0x11b)](this[_0x6c7198(0xc8)]);}[_0x2a36b6(0x10a)](){const _0x42b0c4=_0x2a36b6,_0x40fa50=new _0x126796();return _0x40fa50[_0x42b0c4(0x11d)]=_0x266538,_0x40fa50[_0x42b0c4(0x113)]({'attributes':{'class':Vo+_0x42b0c4(0xc1)}}),_0x40fa50;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x293c3d=_0x3037;(function(_0x10a0c5,_0x272d35){const _0x4501ff=_0x3037,_0x521ddf=_0x10a0c5();while(!![]){try{const _0x391f37=parseInt(_0x4501ff(0x71))/0x1+parseInt(_0x4501ff(0x74))/0x2*(parseInt(_0x4501ff(0x81))/0x3)+parseInt(_0x4501ff(0x68))/0x4*(-parseInt(_0x4501ff(0x69))/0x5)+parseInt(_0x4501ff(0x82))/0x6+-parseInt(_0x4501ff(0x70))/0x7*(parseInt(_0x4501ff(0x7f))/0x8)+parseInt(_0x4501ff(0x6e))/0x9+parseInt(_0x4501ff(0x6c))/0xa*(-parseInt(_0x4501ff(0x75))/0xb);if(_0x391f37===_0x272d35)break;else _0x521ddf['push'](_0x521ddf['shift']());}catch(_0x4905b6){_0x521ddf['push'](_0x521ddf['shift']());}}}(_0x3718,0x71525));function _0x3037(_0x264ba9,_0x5e3770){const _0x3718d4=_0x3718();return _0x3037=function(_0x303780,_0x43179e){_0x303780=_0x303780-0x68;let _0x522833=_0x3718d4[_0x303780];return _0x522833;},_0x3037(_0x264ba9,_0x5e3770);}function _0x3718(){const _0x3ca44f=['_loaderView','_cancelButtonView','ck-ai-chat-controls-loader-icon-dot','ck-ai-chat-controls-loader','setTemplate','AI_CHAT_STOP_GENERATING','_createCancelButtonView','88vYmpJV','set','3WDLmmt','4193232lxQZcR','ck-ai-chat-controls-loader-wrapper','ck-reset_all','_createLoaderView','339968rqLzqb','20CgXAcg','ck-ai-chat-controls-loader-icon','locale','630BefmRq','div','6257772iGItej','execute','805EmmMbr','395463vywmpG','abortPromptStream','fire','1678328hVtvNo','318373DfDinB','AI_CHAT_IS_WRITING','ai-chat-controls-loader__cancel-button'];_0x3718=function(){return _0x3ca44f;};return _0x3718();}import{ButtonView as _0x140e74,View as _0x54fa01}from'ckeditor5/src/ui.js';import{IconStop as _0x350d40}from'ckeditor5/src/icons.js';import{getTranslation as _0x3cdb22}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x54fa01{[_0x293c3d(0x79)];[_0x293c3d(0x78)];constructor(_0x73dc3b){const _0x452801=_0x293c3d;super(_0x73dc3b),this[_0x452801(0x79)]=this[_0x452801(0x7e)](),this[_0x452801(0x78)]=this[_0x452801(0x85)](),this[_0x452801(0x7c)]({'tag':_0x452801(0x6d),'attributes':{'class':['ck',_0x452801(0x83),_0x452801(0x84)]},'children':[this[_0x452801(0x78)],this[_0x452801(0x79)]]});}[_0x293c3d(0x7e)](){const _0x161748=_0x293c3d,_0x502428=new _0x140e74(this[_0x161748(0x6b)]);return _0x502428[_0x161748(0x80)]({'label':_0x3cdb22(this[_0x161748(0x6b)],_0x161748(0x7d)),'withText':!0x0,'class':_0x161748(0x77),'icon':_0x350d40}),_0x502428['on'](_0x161748(0x6f),()=>{const _0x28420e=_0x161748;this[_0x28420e(0x73)](_0x28420e(0x72));}),_0x502428;}[_0x293c3d(0x85)](){const _0x432ed1=_0x293c3d,_0x5b454c=new _0x54fa01(this[_0x432ed1(0x6b)]);return _0x5b454c[_0x432ed1(0x7c)]({'tag':_0x432ed1(0x6d),'attributes':{'class':[_0x432ed1(0x7b)]},'children':[{'tag':_0x432ed1(0x6d),'attributes':{'class':[_0x432ed1(0x6a)]},'children':[{'tag':_0x432ed1(0x6d),'attributes':{'class':[_0x432ed1(0x7a)]}},{'tag':_0x432ed1(0x6d),'attributes':{'class':[_0x432ed1(0x7a)]}},{'tag':_0x432ed1(0x6d),'attributes':{'class':[_0x432ed1(0x7a)]}}]},{'text':_0x3cdb22(this[_0x432ed1(0x6b)],_0x432ed1(0x76))}]}),_0x5b454c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5e100a=_0x2ddd;(function(_0x25d1ae,_0x236851){const _0x155c3c=_0x2ddd,_0x12bbe9=_0x25d1ae();while(!![]){try{const _0x1815ae=parseInt(_0x155c3c(0xf7))/0x1*(-parseInt(_0x155c3c(0xef))/0x2)+-parseInt(_0x155c3c(0xc5))/0x3*(parseInt(_0x155c3c(0xd7))/0x4)+parseInt(_0x155c3c(0xde))/0x5+parseInt(_0x155c3c(0xc0))/0x6*(parseInt(_0x155c3c(0xa8))/0x7)+parseInt(_0x155c3c(0xf1))/0x8+-parseInt(_0x155c3c(0xe7))/0x9+-parseInt(_0x155c3c(0xed))/0xa;if(_0x1815ae===_0x236851)break;else _0x12bbe9['push'](_0x12bbe9['shift']());}catch(_0x8f9063){_0x12bbe9['push'](_0x12bbe9['shift']());}}}(_0x2881,0x86d3b));import{Collection as _0xfc2991}from'ckeditor5/src/utils.js';import{IconAI as _0xa9523b,IconBulb as _0x2c3d2e,IconWeb as _0x1808c9}from'@ckeditor/ckeditor5-icons';function _0x2ddd(_0x426d76,_0x3f5fe7){const _0x288126=_0x2881();return _0x2ddd=function(_0x2dddfa,_0x42f497){_0x2dddfa=_0x2dddfa-0x97;let _0x468d84=_0x288126[_0x2dddfa];return _0x468d84;},_0x2ddd(_0x426d76,_0x3f5fe7);}import{addListToDropdown as _0x3b1778,ButtonLabelView as _0x3edc36,ButtonView as _0x5e4c81,createDropdown as _0xcbe46d,IconView as _0x3cea26,UIModel as _0x48d887,View as _0x50fe97}from'ckeditor5/src/ui.js';import{getTranslation as _0x2c93d2}from'../../../aicore/utils/common-translations.js';const Ho=_0x5e100a(0xe5),Vo=_0x5e100a(0xdc),Mo=_0x5e100a(0x9d),Lo=_0x5e100a(0xd3),Do=_0x5e100a(0x9a),Wo=_0x5e100a(0xa6),yo=_0x5e100a(0xea),Go='n';function _0x2881(){const _0x12d985=['toLowerCase','ck-ai-chat-controls__model-selection__item-description','bindTemplate','7TqCndr','listenTo','reasoningActive','AI_CHAT_COMMANDS','ck-hidden','add','modelSelectorVisible','_createCommandsButton','isEnabled','addMany','capabilities','button','activeModelId','log','_getCapabilityParts','toggleReasoning','AI_CHAT_REASONING','setWebSearch','description','fire','buttonView','extendTemplate','enabled','text','5322090QJWZBE','startsWith','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','agent','setModelList','3CxXZUq','reasoning','AI_CHAT_SEARCH_WEB','isVisible','_modelSelectionDropdownItems','_createModelSelectionDropdown','isOn','ck-button__label','setModel','_reasoningButton','AI_CHAT_DISABLE_WEB_SEARCH','tooltip','style','webSearchActive','ck-ai-chat-controls__model-selection','div','withText','AI_CHAT_ENABLE_WEB_SEARCH','2435588sruKPV','ck-ai-chat-controls__model-name','_webSearchButton','webSearch','toggleWebSearch','ck-ai-chat-controls-button','_createWebSearchButton','3609065wIcpbA','_createModelNameView','activeModelName','execute','setReasoning','_createReasoningButton','set','ck-ai-chat__prompt-capabilities','modelSelectorEnabled','1278414ORJYNe','createCollection','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','ck-ai-chat-controls__model-selection__item-capabilities','model','content','574520bkfzaH','label','6476UhYztE','Commands\x20are\x20not\x20implemented\x20yet.','242288STUGqF','selectModel','locale','AI_CHAT_CAPABILITIES_NO','span','_modelSelectionDropdown','86FIoOKt','disableModelSelector','length','setTemplate','menuitemradio','bind','ck-ai-chat-controls__model-selection__item-name','enableModelSelector','name','ck-ai-chat-controls-button--commands','AI_CHAT_DISABLE_REASONING','_commandsButton','_modelNameView','source','AI_CHAT_ENABLE_REASONING','AI_CHAT_CAPABILITIES_YES','clear'];_0x2881=function(){return _0x12d985;};return _0x2881();}export class AIChatPromptCapabilitiesView extends _0x50fe97{[_0x5e100a(0xd9)];[_0x5e100a(0xce)];[_0x5e100a(0x9f)];[_0x5e100a(0xf6)];[_0x5e100a(0xc9)];[_0x5e100a(0xa0)];constructor(_0x50aa8c){const _0x2907c5=_0x5e100a;super(_0x50aa8c),this[_0x2907c5(0xe4)](_0x2907c5(0xd2),!0x1),this[_0x2907c5(0xe4)](_0x2907c5(0xaa),!0x1),this[_0x2907c5(0xe4)](_0x2907c5(0xae),!0x0),this[_0x2907c5(0xe4)](_0x2907c5(0xe6),!0x0),this[_0x2907c5(0xe4)](_0x2907c5(0xb4),''),this[_0x2907c5(0xe4)](_0x2907c5(0xe0),''),this[_0x2907c5(0xf6)]=this[_0x2907c5(0xca)](),this[_0x2907c5(0xa0)]=this[_0x2907c5(0xdf)](),this[_0x2907c5(0xd9)]=this[_0x2907c5(0xdd)](),this[_0x2907c5(0xce)]=this[_0x2907c5(0xe3)](),this[_0x2907c5(0x9f)]=this[_0x2907c5(0xaf)](),this[_0x2907c5(0xf6)][_0x2907c5(0xbc)][_0x2907c5(0x99)](_0x2907c5(0xc8))['to'](this,_0x2907c5(0xae),_0x120e59=>_0x120e59),this[_0x2907c5(0xf6)][_0x2907c5(0xbc)][_0x2907c5(0x99)](_0x2907c5(0xd0))['to'](this,_0x2907c5(0xe6),_0x4eee06=>_0x4eee06?this[_0x2907c5(0xf6)][_0x2907c5(0xbc)][_0x2907c5(0xee)]:_0x2c93d2(this[_0x2907c5(0xf3)],_0x2907c5(0xc2))),this[_0x2907c5(0xf6)][_0x2907c5(0x99)](_0x2907c5(0xb0))['to'](this,_0x2907c5(0xe6),_0x1c2d49=>_0x1c2d49),this[_0x2907c5(0xd9)][_0x2907c5(0x99)](_0x2907c5(0xcb))['to'](this,_0x2907c5(0xd2),_0x55847b=>_0x55847b),this[_0x2907c5(0xd9)][_0x2907c5(0x99)](_0x2907c5(0xd5))['to'](this,_0x2907c5(0xae),_0x4b5502=>!_0x4b5502),this[_0x2907c5(0xd9)][_0x2907c5(0x99)](_0x2907c5(0xd0))['to'](this,_0x2907c5(0xd2),_0x3b7946=>_0x2c93d2(this[_0x2907c5(0xf3)],_0x3b7946?_0x2907c5(0xcf):_0x2907c5(0xd6))),this[_0x2907c5(0xce)][_0x2907c5(0x99)](_0x2907c5(0xcb))['to'](this,_0x2907c5(0xaa),_0x84ffea=>_0x84ffea),this[_0x2907c5(0xce)][_0x2907c5(0x99)](_0x2907c5(0xd5))['to'](this,_0x2907c5(0xae),_0x2a44b5=>!_0x2a44b5),this[_0x2907c5(0xce)][_0x2907c5(0x99)](_0x2907c5(0xd0))['to'](this,_0x2907c5(0xaa),_0x4982ad=>_0x2c93d2(this[_0x2907c5(0xf3)],_0x4982ad?_0x2907c5(0x9e):_0x2907c5(0xa2))),this[_0x2907c5(0x97)]({'tag':_0x2907c5(0xd4),'attributes':{'class':[Ho]},'children':[this[_0x2907c5(0xf6)],this[_0x2907c5(0xa0)],this[_0x2907c5(0xd9)],this[_0x2907c5(0xce)],this[_0x2907c5(0x9f)]]}),this[_0x2907c5(0xc9)]=new _0xfc2991(),_0x3b1778(this[_0x2907c5(0xf6)],this[_0x2907c5(0xc9)]);}[_0x5e100a(0xc4)](_0x7525f,_0x300fb0){const _0x14fab3=_0x5e100a;if(this[_0x14fab3(0xe4)](_0x14fab3(0xae),!(_0x300fb0&&_0x7525f[_0x14fab3(0xf9)]<=0x1)),this[_0x14fab3(0xc9)][_0x14fab3(0xa4)](),_0x7525f?.[_0x14fab3(0xf9)])for(const _0x5e33a3 of _0x7525f){const _0x30547d=new _0x48d887({'label':_0x5e33a3[_0x14fab3(0x9c)],'withText':!0x0,'role':_0x14fab3(0x98),'id':_0x5e33a3['id'],'model':_0x5e33a3});_0x30547d[_0x14fab3(0x99)](_0x14fab3(0xcb))['to'](this,_0x14fab3(0xb4),_0x41c8d8=>_0x41c8d8===_0x5e33a3['id']),this[_0x14fab3(0xc9)][_0x14fab3(0xad)]({'type':_0x14fab3(0xb3),'model':_0x30547d,'labelView':new js(this[_0x14fab3(0xf3)],_0x5e33a3)});}}[_0x5e100a(0xb9)](_0x4ebd57){const _0x1851b1=_0x5e100a;this[_0x1851b1(0xe4)](_0x1851b1(0xd2),_0x4ebd57);}[_0x5e100a(0xe2)](_0x36e27d){const _0x3b825d=_0x5e100a;this[_0x3b825d(0xe4)](_0x3b825d(0xaa),_0x36e27d);}[_0x5e100a(0xcd)](_0x6c8b8c){const _0x5dc7f4=_0x5e100a;if(!_0x6c8b8c)return;this[_0x5dc7f4(0xb4)]=_0x6c8b8c['id'],this[_0x5dc7f4(0xe0)]=_0x6c8b8c[_0x5dc7f4(0x9c)]||_0x6c8b8c['id'],this[_0x5dc7f4(0xf6)][_0x5dc7f4(0xbc)][_0x5dc7f4(0xe4)](_0x5dc7f4(0xee),_0x6c8b8c[_0x5dc7f4(0x9c)]),this[_0x5dc7f4(0xf6)][_0x5dc7f4(0xbc)][_0x5dc7f4(0xe4)](_0x5dc7f4(0xd0),_0x6c8b8c[_0x5dc7f4(0x9c)]);const _0x1f5072=_0x6c8b8c[_0x5dc7f4(0xb2)][_0x5dc7f4(0xda)]?.[_0x5dc7f4(0xbe)]??!0x1;this[_0x5dc7f4(0xe4)](_0x5dc7f4(0xd2),!0x1),this[_0x5dc7f4(0xd9)][_0x5dc7f4(0xe4)](_0x5dc7f4(0xcb),!0x1),this[_0x5dc7f4(0xd9)][_0x5dc7f4(0xe4)](_0x5dc7f4(0xb0),_0x1f5072),this[_0x5dc7f4(0xd9)][_0x5dc7f4(0xe4)](_0x5dc7f4(0xc8),_0x1f5072);const _0x126afd=_0x6c8b8c[_0x5dc7f4(0xb2)][_0x5dc7f4(0xc6)]?.[_0x5dc7f4(0xbe)]??!0x1;this[_0x5dc7f4(0xe4)](_0x5dc7f4(0xaa),!0x1),this[_0x5dc7f4(0xce)][_0x5dc7f4(0xe4)](_0x5dc7f4(0xcb),!0x1),this[_0x5dc7f4(0xce)][_0x5dc7f4(0xe4)](_0x5dc7f4(0xb0),_0x126afd),this[_0x5dc7f4(0xce)][_0x5dc7f4(0xe4)](_0x5dc7f4(0xc8),_0x126afd);}[_0x5e100a(0x9b)](){const _0x4d559f=_0x5e100a;this[_0x4d559f(0xe4)](_0x4d559f(0xe6),!0x0),this[_0x4d559f(0xe4)](_0x4d559f(0xae),!0x0);}[_0x5e100a(0xf8)](_0x4c6a73){const _0x5e0e80=_0x5e100a;this[_0x5e0e80(0xe4)](_0x5e0e80(0xe6),!0x1),_0x4c6a73&&this[_0x5e0e80(0xe4)](_0x5e0e80(0xae),!0x1);}[_0x5e100a(0xdd)](){const _0x27b78e=_0x5e100a,_0x2f6ce1=new _0x5e4c81();return _0x2f6ce1[_0x27b78e(0xe4)]({'label':_0x2c93d2(this[_0x27b78e(0xf3)],_0x27b78e(0xc7)),'icon':_0x1808c9,'class':Vo,'isToggleable':!0x0,'tooltipPosition':Go}),_0x2f6ce1['on'](_0x27b78e(0xe1),()=>{const _0x5b63b7=_0x27b78e;this[_0x5b63b7(0xbb)](_0x5b63b7(0xdb));}),_0x2f6ce1;}[_0x5e100a(0xe3)](){const _0x188af5=_0x5e100a,_0x2215f3=new _0x5e4c81();return _0x2215f3[_0x188af5(0xe4)]({'label':_0x2c93d2(this[_0x188af5(0xf3)],_0x188af5(0xb8)),'icon':_0x2c3d2e,'class':Vo,'isToggleable':!0x0,'tooltipPosition':Go}),_0x2215f3['on'](_0x188af5(0xe1),()=>{const _0x6c34f1=_0x188af5;this[_0x6c34f1(0xbb)](_0x6c34f1(0xb7));}),_0x2215f3;}[_0x5e100a(0xaf)](){const _0x2c27d6=_0x5e100a,_0x2be18f=new _0x5e4c81();return _0x2be18f[_0x2c27d6(0xe4)]({'label':_0x2c93d2(this[_0x2c27d6(0xf3)],_0x2c27d6(0xab)),'icon':_0xa9523b,'withText':!0x0,'class':Vo,'isToggleable':!0x0,'tooltip':_0x2c93d2(this[_0x2c27d6(0xf3)],_0x2c27d6(0xab)),'tooltipPosition':Go}),_0x2be18f[_0x2c27d6(0xbd)]({'attributes':{'class':[Mo]}}),_0x2be18f['on'](_0x2c27d6(0xe1),()=>{const _0x5dd426=_0x2c27d6;console[_0x5dd426(0xb5)](_0x5dd426(0xf0)),alert(_0x5dd426(0xf0));}),_0x2be18f;}[_0x5e100a(0xca)](){const _0x57afe4=_0x5e100a,_0xabfb2c=_0xcbe46d(this[_0x57afe4(0xf3)]);return _0xabfb2c[_0x57afe4(0xe4)]({'panelPosition':'ne','class':[Lo]}),_0xabfb2c[_0x57afe4(0xbc)][_0x57afe4(0xe4)]({'label':_0x2c93d2(this[_0x57afe4(0xf3)],_0x57afe4(0xe9)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Go}),this[_0x57afe4(0xa9)](_0xabfb2c,_0x57afe4(0xe1),_0x1adeb7=>{const _0x30033f=_0x57afe4;this[_0x30033f(0xbb)](_0x30033f(0xf2),_0x1adeb7[_0x30033f(0xa1)][_0x30033f(0xeb)]);}),_0xabfb2c;}[_0x5e100a(0xdf)](){const _0x58e911=_0x5e100a,_0x2ae8ae=new jo(this[_0x58e911(0xf3)]);return _0x2ae8ae[_0x58e911(0x99)](_0x58e911(0xbf))['to'](this,_0x58e911(0xe0),_0x4baee4=>_0x4baee4??''),_0x2ae8ae[_0x58e911(0x99)](_0x58e911(0xc8))['to'](this,_0x58e911(0xae),this,_0x58e911(0xe0),(_0x166d5d,_0x2d9139)=>!_0x166d5d&&!_0x2d9139?.[_0x58e911(0xa5)]()[_0x58e911(0xc1)](_0x58e911(0xc3))),_0x2ae8ae;}}class js extends _0x3edc36{constructor(_0x2c850b,_0x34dd2e){const _0x34f2a1=_0x5e100a;super();const _0x299caa=this[_0x34f2a1(0xa7)],_0x368ff3=this[_0x34f2a1(0xe8)]();this[_0x34f2a1(0x97)]({'tag':_0x34f2a1(0xd4),'attributes':{'class':['ck',_0x34f2a1(0xcc)],'style':_0x299caa['to'](_0x34f2a1(0xd1)),'id':_0x299caa['to']('id')},'children':[{'tag':_0x34f2a1(0xd4),'attributes':{'class':[Do]},'children':[{'text':_0x299caa['to'](_0x34f2a1(0xbf))}]},{'tag':_0x34f2a1(0xd4),'attributes':{'class':[Wo]},'children':[{'tag':_0x34f2a1(0xf5),'children':[{'text':_0x34dd2e[_0x34f2a1(0xba)]}]}]},{'tag':_0x34f2a1(0xd4),'attributes':{'class':[yo]},'children':_0x368ff3}]}),_0x368ff3[_0x34f2a1(0xb1)](this[_0x34f2a1(0xb6)](_0x2c850b,_0x1808c9,_0x34f2a1(0xc7),_0x34dd2e[_0x34f2a1(0xb2)][_0x34f2a1(0xda)]?.[_0x34f2a1(0xbe)]??!0x1)),_0x368ff3[_0x34f2a1(0xb1)](this[_0x34f2a1(0xb6)](_0x2c850b,_0x2c3d2e,_0x34f2a1(0xb8),_0x34dd2e[_0x34f2a1(0xb2)][_0x34f2a1(0xc6)]?.[_0x34f2a1(0xbe)]??!0x1));}[_0x5e100a(0xb6)](_0x46e31e,_0x4611b0,_0x3553c5,_0x24c922){const _0x4b9ee7=_0x5e100a,_0x506451=new _0x3cea26();_0x506451[_0x4b9ee7(0xec)]=_0x4611b0;const _0x180eec=new _0x50fe97(_0x46e31e);_0x180eec[_0x4b9ee7(0x97)]({'tag':_0x4b9ee7(0xf5),'children':[{'text':_0x2c93d2(_0x46e31e,_0x3553c5)+':\x20'}]});const _0x6544ca=new _0x50fe97(_0x46e31e);return _0x6544ca[_0x4b9ee7(0x97)]({'tag':_0x4b9ee7(0xf5),'children':[{'text':_0x2c93d2(_0x46e31e,_0x24c922?_0x4b9ee7(0xa3):_0x4b9ee7(0xf4))}]}),[_0x506451,_0x180eec,_0x6544ca];}}class jo extends _0x50fe97{constructor(_0x5c1cd6){const _0x27b9fd=_0x5e100a;super(_0x5c1cd6),this[_0x27b9fd(0xe4)](_0x27b9fd(0xbf),void 0x0),this[_0x27b9fd(0xe4)](_0x27b9fd(0xc8),!0x0);const _0x1c7e00=this[_0x27b9fd(0xa7)];this[_0x27b9fd(0x97)]({'tag':_0x27b9fd(0xf5),'attributes':{'class':['ck',_0x27b9fd(0xd8),_0x1c7e00['if'](_0x27b9fd(0xc8),_0x27b9fd(0xac),_0x422d46=>!_0x422d46)]},'children':[{'text':_0x1c7e00['to'](_0x27b9fd(0xbf))}]});}}
|
|
23
|
+
const _0xe7273b=_0x3a46;(function(_0x919a3a,_0x76099b){const _0x10635f=_0x3a46,_0x3ff96d=_0x919a3a();while(!![]){try{const _0x3bea01=-parseInt(_0x10635f(0x14e))/0x1*(-parseInt(_0x10635f(0x155))/0x2)+-parseInt(_0x10635f(0x104))/0x3*(parseInt(_0x10635f(0x132))/0x4)+parseInt(_0x10635f(0x11a))/0x5+-parseInt(_0x10635f(0x110))/0x6*(parseInt(_0x10635f(0x14f))/0x7)+parseInt(_0x10635f(0x143))/0x8+parseInt(_0x10635f(0x144))/0x9*(parseInt(_0x10635f(0x112))/0xa)+-parseInt(_0x10635f(0x121))/0xb;if(_0x3bea01===_0x76099b)break;else _0x3ff96d['push'](_0x3ff96d['shift']());}catch(_0x5c00d3){_0x3ff96d['push'](_0x3ff96d['shift']());}}}(_0x2a1a,0xa41b9));import{Collection as _0x537450}from'ckeditor5/src/utils.js';function _0x2a1a(){const _0x337aa5=['bindTemplate','enableModelSelector','ck-ai-chat-controls__model-selection__item-name','clear','execute','Commands\x20are\x20not\x20implemented\x20yet.','set','listenTo','ck-ai-chat-controls__model-selection','ck-button__label','ck-ai-chat-controls__model-name','3bJPUfh','webSearch','name','locale','style','description','capabilities','source','toggleReasoning','log','ck-ai-chat-controls__model-selection__item-description','button','237390iebhxd','AI_CHAT_SEARCH_WEB','10GOxRAg','toLowerCase','_commandsButton','model','AI_CHAT_CAPABILITIES_YES','isVisible','ck-ai-chat__prompt-capabilities','tooltip','4853010oJaYCm','AI_CHAT_ENABLE_REASONING','ck-ai-chat-controls-button--commands','_createReasoningButton','activeModelName','activeModelId','withText','2146782jYLwoT','ck-hidden','content','_modelSelectionDropdown','enabled','AI_CHAT_CAPABILITIES_NO','setModelList','AI_CHAT_REASONING','setModel','buttonView','_modelNameView','ck-ai-chat-controls-button','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','bind','_reasoningButton','setReasoning','createCollection','4891868MABFKZ','span','text','webSearchActive','reasoning','isOn','isEnabled','selectModel','reasoningActive','agent','AI_CHAT_DISABLE_WEB_SEARCH','menuitemradio','label','toggleWebSearch','modelSelectorEnabled','_webSearchButton','startsWith','874336briOYL','10126683zIwHtj','_getCapabilityParts','_createWebSearchButton','fire','add','setTemplate','extendTemplate','AI_CHAT_COMMANDS','modelSelectorVisible','addMany','2739yMtsbA','140MoyEaK','_createCommandsButton','div','setWebSearch','ck-ai-chat-controls__model-selection__item-capabilities','disableModelSelector','494gouCEf','AI_CHAT_ENABLE_WEB_SEARCH','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','_createModelSelectionDropdown','AI_CHAT_DISABLE_REASONING','length','_modelSelectionDropdownItems','_createModelNameView'];_0x2a1a=function(){return _0x337aa5;};return _0x2a1a();}import{IconAI as _0x4f14c5,IconBulb as _0x1037e7,IconWeb as _0xc1ef40}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x476fd4,ButtonLabelView as _0x555f04,ButtonView as _0x2b26a8,createDropdown as _0x550aa3,IconView as _0x39c9d9,UIModel as _0x4c0344,View as _0x2adc93}from'ckeditor5/src/ui.js';import{getTranslation as _0x4820f3}from'../../../aicore/utils/common-translations.js';const Ho=_0xe7273b(0x118),fo=_0xe7273b(0x12c),Mo=_0xe7273b(0x11c),Do=_0xe7273b(0x165),Wo=_0xe7273b(0x15f),yo=_0xe7273b(0x10e),Go=_0xe7273b(0x153),jo='n';function _0x3a46(_0x3d059c,_0x64705c){const _0x2a1a22=_0x2a1a();return _0x3a46=function(_0x3a4688,_0x14598c){_0x3a4688=_0x3a4688-0x103;let _0x1078b4=_0x2a1a22[_0x3a4688];return _0x1078b4;},_0x3a46(_0x3d059c,_0x64705c);}export class AIChatPromptCapabilitiesView extends _0x2adc93{[_0xe7273b(0x141)];[_0xe7273b(0x12f)];[_0xe7273b(0x114)];[_0xe7273b(0x124)];[_0xe7273b(0x15b)];[_0xe7273b(0x12b)];constructor(_0x37aca4){const _0x5441bb=_0xe7273b;super(_0x37aca4),this[_0x5441bb(0x163)](_0x5441bb(0x135),!0x1),this[_0x5441bb(0x163)](_0x5441bb(0x13a),!0x1),this[_0x5441bb(0x163)](_0x5441bb(0x14c),!0x0),this[_0x5441bb(0x163)](_0x5441bb(0x140),!0x0),this[_0x5441bb(0x163)](_0x5441bb(0x11f),null),this[_0x5441bb(0x163)](_0x5441bb(0x11e),null),this[_0x5441bb(0x124)]=this[_0x5441bb(0x158)](),this[_0x5441bb(0x12b)]=this[_0x5441bb(0x15c)](),this[_0x5441bb(0x141)]=this[_0x5441bb(0x146)](),this[_0x5441bb(0x12f)]=this[_0x5441bb(0x11d)](),this[_0x5441bb(0x114)]=this[_0x5441bb(0x150)](),this[_0x5441bb(0x124)][_0x5441bb(0x12a)][_0x5441bb(0x12e)](_0x5441bb(0x117))['to'](this,_0x5441bb(0x14c),_0x5a8f5d=>_0x5a8f5d),this[_0x5441bb(0x124)][_0x5441bb(0x12a)][_0x5441bb(0x12e)](_0x5441bb(0x119))['to'](this,_0x5441bb(0x140),_0x20391a=>_0x20391a?this[_0x5441bb(0x124)][_0x5441bb(0x12a)][_0x5441bb(0x13e)]:_0x4820f3(this[_0x5441bb(0x107)],_0x5441bb(0x157))),this[_0x5441bb(0x124)][_0x5441bb(0x12e)](_0x5441bb(0x138))['to'](this,_0x5441bb(0x140),_0x4b65cc=>_0x4b65cc),this[_0x5441bb(0x141)][_0x5441bb(0x12e)](_0x5441bb(0x137))['to'](this,_0x5441bb(0x135),_0x9a4553=>_0x9a4553),this[_0x5441bb(0x141)][_0x5441bb(0x12e)](_0x5441bb(0x120))['to'](this,_0x5441bb(0x14c),_0x2d5a0d=>!_0x2d5a0d),this[_0x5441bb(0x141)][_0x5441bb(0x12e)](_0x5441bb(0x119))['to'](this,_0x5441bb(0x135),_0x5985d6=>_0x4820f3(this[_0x5441bb(0x107)],_0x5985d6?_0x5441bb(0x13c):_0x5441bb(0x156))),this[_0x5441bb(0x12f)][_0x5441bb(0x12e)](_0x5441bb(0x137))['to'](this,_0x5441bb(0x13a),_0x5db870=>_0x5db870),this[_0x5441bb(0x12f)][_0x5441bb(0x12e)](_0x5441bb(0x120))['to'](this,_0x5441bb(0x14c),_0xed0fd4=>!_0xed0fd4),this[_0x5441bb(0x12f)][_0x5441bb(0x12e)](_0x5441bb(0x119))['to'](this,_0x5441bb(0x13a),_0x6f2ec1=>_0x4820f3(this[_0x5441bb(0x107)],_0x6f2ec1?_0x5441bb(0x159):_0x5441bb(0x11b))),this[_0x5441bb(0x149)]({'tag':_0x5441bb(0x151),'attributes':{'class':[Ho]},'children':[this[_0x5441bb(0x124)],this[_0x5441bb(0x12b)],this[_0x5441bb(0x141)],this[_0x5441bb(0x12f)],this[_0x5441bb(0x114)]]}),this[_0x5441bb(0x15b)]=new _0x537450(),_0x476fd4(this[_0x5441bb(0x124)],this[_0x5441bb(0x15b)]);}[_0xe7273b(0x127)](_0x4a3597,_0x54c18b){const _0x5db215=_0xe7273b;if(this[_0x5db215(0x163)](_0x5db215(0x14c),!(_0x54c18b&&_0x4a3597[_0x5db215(0x15a)]<=0x1)),this[_0x5db215(0x15b)][_0x5db215(0x160)](),_0x4a3597?.[_0x5db215(0x15a)])for(const _0x56b62b of _0x4a3597){const _0x543d70=new _0x4c0344({'label':_0x56b62b[_0x5db215(0x106)],'withText':!0x0,'role':_0x5db215(0x13d),'id':_0x56b62b['id'],'model':_0x56b62b});_0x543d70[_0x5db215(0x12e)](_0x5db215(0x137))['to'](this,_0x5db215(0x11f),_0x43aec5=>_0x43aec5===_0x56b62b['id']),this[_0x5db215(0x15b)][_0x5db215(0x148)]({'type':_0x5db215(0x10f),'model':_0x543d70,'labelView':new Ns(this[_0x5db215(0x107)],_0x56b62b)});}}[_0xe7273b(0x152)](_0x4b1a84){const _0xe15cd=_0xe7273b;this[_0xe15cd(0x163)](_0xe15cd(0x135),_0x4b1a84);}[_0xe7273b(0x130)](_0xab1e66){const _0x3045e7=_0xe7273b;this[_0x3045e7(0x163)](_0x3045e7(0x13a),_0xab1e66);}[_0xe7273b(0x129)](_0x5724e2){const _0x50ffe7=_0xe7273b;if(!_0x5724e2)return;this[_0x50ffe7(0x11f)]=_0x5724e2['id'],this[_0x50ffe7(0x11e)]=_0x5724e2[_0x50ffe7(0x106)]||_0x5724e2['id'],this[_0x50ffe7(0x124)][_0x50ffe7(0x12a)][_0x50ffe7(0x163)](_0x50ffe7(0x13e),_0x5724e2[_0x50ffe7(0x106)]),this[_0x50ffe7(0x124)][_0x50ffe7(0x12a)][_0x50ffe7(0x163)](_0x50ffe7(0x119),_0x5724e2[_0x50ffe7(0x106)]);const _0x6a8fa7=_0x5724e2[_0x50ffe7(0x10a)][_0x50ffe7(0x105)]?.[_0x50ffe7(0x125)]??!0x1;this[_0x50ffe7(0x163)](_0x50ffe7(0x135),!0x1),this[_0x50ffe7(0x141)][_0x50ffe7(0x163)](_0x50ffe7(0x137),!0x1),this[_0x50ffe7(0x141)][_0x50ffe7(0x163)](_0x50ffe7(0x138),_0x6a8fa7),this[_0x50ffe7(0x141)][_0x50ffe7(0x163)](_0x50ffe7(0x117),_0x6a8fa7);const _0x3955a9=_0x5724e2[_0x50ffe7(0x10a)][_0x50ffe7(0x136)]?.[_0x50ffe7(0x125)]??!0x1;this[_0x50ffe7(0x163)](_0x50ffe7(0x13a),!0x1),this[_0x50ffe7(0x12f)][_0x50ffe7(0x163)](_0x50ffe7(0x137),!0x1),this[_0x50ffe7(0x12f)][_0x50ffe7(0x163)](_0x50ffe7(0x138),_0x3955a9),this[_0x50ffe7(0x12f)][_0x50ffe7(0x163)](_0x50ffe7(0x117),_0x3955a9);}[_0xe7273b(0x15e)](){const _0x311840=_0xe7273b;this[_0x311840(0x163)](_0x311840(0x140),!0x0),this[_0x311840(0x163)](_0x311840(0x14c),!0x0);}[_0xe7273b(0x154)](_0x2d2d76){const _0x225928=_0xe7273b;this[_0x225928(0x163)](_0x225928(0x140),!0x1),_0x2d2d76&&this[_0x225928(0x163)](_0x225928(0x14c),!0x1);}[_0xe7273b(0x146)](){const _0x1c88b6=_0xe7273b,_0x489781=new _0x2b26a8();return _0x489781[_0x1c88b6(0x163)]({'label':_0x4820f3(this[_0x1c88b6(0x107)],_0x1c88b6(0x111)),'icon':_0xc1ef40,'class':fo,'isToggleable':!0x0,'tooltipPosition':jo}),_0x489781['on'](_0x1c88b6(0x161),()=>{const _0x4932f9=_0x1c88b6;this[_0x4932f9(0x147)](_0x4932f9(0x13f));}),_0x489781;}[_0xe7273b(0x11d)](){const _0x1686a0=_0xe7273b,_0x4e7ed0=new _0x2b26a8();return _0x4e7ed0[_0x1686a0(0x163)]({'label':_0x4820f3(this[_0x1686a0(0x107)],_0x1686a0(0x128)),'icon':_0x1037e7,'class':fo,'isToggleable':!0x0,'tooltipPosition':jo}),_0x4e7ed0['on'](_0x1686a0(0x161),()=>{const _0x109234=_0x1686a0;this[_0x109234(0x147)](_0x109234(0x10c));}),_0x4e7ed0;}[_0xe7273b(0x150)](){const _0xce9095=_0xe7273b,_0x26edbe=new _0x2b26a8();return _0x26edbe[_0xce9095(0x163)]({'label':_0x4820f3(this[_0xce9095(0x107)],_0xce9095(0x14b)),'icon':_0x4f14c5,'withText':!0x0,'class':fo,'isToggleable':!0x0,'tooltip':_0x4820f3(this[_0xce9095(0x107)],_0xce9095(0x14b)),'tooltipPosition':jo}),_0x26edbe[_0xce9095(0x14a)]({'attributes':{'class':[Mo]}}),_0x26edbe['on'](_0xce9095(0x161),()=>{const _0x3170c7=_0xce9095;console[_0x3170c7(0x10d)](_0x3170c7(0x162)),alert(_0x3170c7(0x162));}),_0x26edbe;}[_0xe7273b(0x158)](){const _0x14ce63=_0xe7273b,_0x217970=_0x550aa3(this[_0x14ce63(0x107)]);return _0x217970[_0x14ce63(0x163)]({'panelPosition':'ne','class':[Do]}),_0x217970[_0x14ce63(0x12a)][_0x14ce63(0x163)]({'label':_0x4820f3(this[_0x14ce63(0x107)],_0x14ce63(0x12d)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':jo}),this[_0x14ce63(0x164)](_0x217970,_0x14ce63(0x161),_0x4bd074=>{const _0x1ce9be=_0x14ce63;this[_0x1ce9be(0x147)](_0x1ce9be(0x139),_0x4bd074[_0x1ce9be(0x10b)][_0x1ce9be(0x115)]);}),_0x217970;}[_0xe7273b(0x15c)](){const _0x364708=_0xe7273b,_0x28bbda=new Yo(this[_0x364708(0x107)]);return _0x28bbda[_0x364708(0x12e)](_0x364708(0x134))['to'](this,_0x364708(0x11e),_0xf502cf=>_0xf502cf??''),_0x28bbda[_0x364708(0x12e)](_0x364708(0x117))['to'](this,_0x364708(0x14c),this,_0x364708(0x11e),(_0x8c94fe,_0x2c0cde)=>!_0x8c94fe&&!_0x2c0cde?.[_0x364708(0x113)]()[_0x364708(0x142)](_0x364708(0x13b))),_0x28bbda;}}class Ns extends _0x555f04{constructor(_0x5303f1,_0x365e24){const _0x5a28f7=_0xe7273b;super();const _0x3bd1bf=this[_0x5a28f7(0x15d)],_0x5e7ca6=this[_0x5a28f7(0x131)]();this[_0x5a28f7(0x149)]({'tag':_0x5a28f7(0x151),'attributes':{'class':['ck',_0x5a28f7(0x166)],'style':_0x3bd1bf['to'](_0x5a28f7(0x108)),'id':_0x3bd1bf['to']('id')},'children':[{'tag':_0x5a28f7(0x151),'attributes':{'class':[Wo]},'children':[{'text':_0x3bd1bf['to'](_0x5a28f7(0x134))}]},{'tag':_0x5a28f7(0x151),'attributes':{'class':[yo]},'children':[{'tag':_0x5a28f7(0x133),'children':[{'text':_0x365e24[_0x5a28f7(0x109)]}]}]},{'tag':_0x5a28f7(0x151),'attributes':{'class':[Go]},'children':_0x5e7ca6}]}),_0x5e7ca6[_0x5a28f7(0x14d)](this[_0x5a28f7(0x145)](_0x5303f1,_0xc1ef40,_0x5a28f7(0x111),_0x365e24[_0x5a28f7(0x10a)][_0x5a28f7(0x105)]?.[_0x5a28f7(0x125)]??!0x1)),_0x5e7ca6[_0x5a28f7(0x14d)](this[_0x5a28f7(0x145)](_0x5303f1,_0x1037e7,_0x5a28f7(0x128),_0x365e24[_0x5a28f7(0x10a)][_0x5a28f7(0x136)]?.[_0x5a28f7(0x125)]??!0x1));}[_0xe7273b(0x145)](_0xc13973,_0xfddaf2,_0x3ea181,_0x4f2404){const _0x32e8e8=_0xe7273b,_0x47a21d=new _0x39c9d9();_0x47a21d[_0x32e8e8(0x123)]=_0xfddaf2;const _0x460fc8=new _0x2adc93(_0xc13973);_0x460fc8[_0x32e8e8(0x149)]({'tag':_0x32e8e8(0x133),'children':[{'text':_0x4820f3(_0xc13973,_0x3ea181)+':\x20'}]});const _0x2d4eb1=new _0x2adc93(_0xc13973);return _0x2d4eb1[_0x32e8e8(0x149)]({'tag':_0x32e8e8(0x133),'children':[{'text':_0x4820f3(_0xc13973,_0x4f2404?_0x32e8e8(0x116):_0x32e8e8(0x126))}]}),[_0x47a21d,_0x460fc8,_0x2d4eb1];}}class Yo extends _0x2adc93{constructor(_0x4ec00b){const _0x5d2336=_0xe7273b;super(_0x4ec00b),this[_0x5d2336(0x163)](_0x5d2336(0x134),void 0x0),this[_0x5d2336(0x163)](_0x5d2336(0x117),!0x0);const _0x2f52fa=this[_0x5d2336(0x15d)];this[_0x5d2336(0x149)]({'tag':_0x5d2336(0x133),'attributes':{'class':['ck',_0x5d2336(0x103),_0x2f52fa['if'](_0x5d2336(0x117),_0x5d2336(0x122),_0xef7190=>!_0xef7190)]},'children':[{'text':_0x2f52fa['to'](_0x5d2336(0x134))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4fecb4=_0x59ef;(function(_0x40d334,_0x55ee60){const _0x17168a=_0x59ef,_0x3abfd7=_0x40d334();while(!![]){try{const _0x465a8f=-parseInt(_0x17168a(0x174))/0x1*(-parseInt(_0x17168a(0x15e))/0x2)+parseInt(_0x17168a(0x16d))/0x3+parseInt(_0x17168a(0x150))/0x4+-parseInt(_0x17168a(0x14e))/0x5*(-parseInt(_0x17168a(0x155))/0x6)+parseInt(_0x17168a(0x15f))/0x7+parseInt(_0x17168a(0x13f))/0x8*(-parseInt(_0x17168a(0x15d))/0x9)+parseInt(_0x17168a(0x154))/0xa*(-parseInt(_0x17168a(0x144))/0xb);if(_0x465a8f===_0x55ee60)break;else _0x3abfd7['push'](_0x3abfd7['shift']());}catch(_0x7aa678){_0x3abfd7['push'](_0x3abfd7['shift']());}}}(_0x24f5,0x2a240));import{IconSubmit as _0x325c77}from'ckeditor5/src/icons.js';import{ButtonView as _0x49274e,AutocompleteView as _0x2e7f45,createLabeledTextarea as _0x5a0344}from'ckeditor5/src/ui.js';import{global as _0x482dce,isVisible as _0x2c48f6,Rect as _0x9e8d90,ResizeObserver as _0x51a10a}from'ckeditor5/src/utils.js';import{getTranslation as _0x564909}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x10b3ce}from'./aichatpromptsuggestionslistview.js';import{escape as _0x7b05e5}from'es-toolkit/compat';function _0x59ef(_0x40a92e,_0x17bd14){const _0x24f5e0=_0x24f5();return _0x59ef=function(_0x59efa7,_0x465bab){_0x59efa7=_0x59efa7-0x135;let _0x207f05=_0x24f5e0[_0x59efa7];return _0x207f05;},_0x59ef(_0x40a92e,_0x17bd14);}export class AIChatPromptInputView extends _0x2e7f45{[_0x4fecb4(0x156)];static [_0x4fecb4(0x164)]=0x1;static [_0x4fecb4(0x146)]=0xc;[_0x4fecb4(0x14c)];[_0x4fecb4(0x172)];constructor(_0x1c54df,_0x4cec80){const _0x1c21b2=_0x4fecb4;super(_0x1c54df,{'queryView':{'label':'','creator':_0x5a0344,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x10b3ce(_0x1c54df),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x1c21b2(0x14b)](_0x1c21b2(0x136),!0x0),this[_0x1c21b2(0x14b)](_0x1c21b2(0x13a),!0x1),this[_0x1c21b2(0x14c)]=_0x4cec80,this[_0x1c21b2(0x172)]=null,this[_0x1c21b2(0x135)][_0x1c21b2(0x13c)][_0x1c21b2(0x173)]=AIChatPromptInputView[_0x1c21b2(0x164)],this[_0x1c21b2(0x135)][_0x1c21b2(0x13c)][_0x1c21b2(0x148)]=AIChatPromptInputView[_0x1c21b2(0x146)],this[_0x1c21b2(0x135)][_0x1c21b2(0x137)][_0x1c21b2(0x13b)](this[_0x1c21b2(0x14c)]),this[_0x1c21b2(0x138)](),this[_0x1c21b2(0x14f)]({'attributes':{'class':['ck',_0x1c21b2(0x151)]}}),this[_0x1c21b2(0x156)]=this[_0x1c21b2(0x170)](),this[_0x1c21b2(0x156)][_0x1c21b2(0x157)](_0x1c21b2(0x161))['to'](this,_0x1c21b2(0x136),this,_0x1c21b2(0x13a),(_0x41e21f,_0x41745a)=>!_0x41e21f&&!_0x41745a),this[_0x1c21b2(0x142)][_0x1c21b2(0x13b)](this[_0x1c21b2(0x156)]);}[_0x4fecb4(0x16a)](){const _0x1a93a4=_0x4fecb4;super[_0x1a93a4(0x16a)](),this[_0x1a93a4(0x135)][_0x1a93a4(0x137)][_0x1a93a4(0x13b)](this[_0x1a93a4(0x156)]),this[_0x1a93a4(0x141)][_0x1a93a4(0x14b)](_0x1a93a4(0x14a),(_0x15f1d7,_0x89c188)=>{const _0x5f087d=_0x1a93a4;this[_0x5f087d(0x13a)]||this[_0x5f087d(0x136)]||_0x15f1d7[_0x5f087d(0x163)]==this[_0x5f087d(0x135)][_0x5f087d(0x13c)][_0x5f087d(0x14d)]&&(this[_0x5f087d(0x167)](),_0x89c188());}),this[_0x1a93a4(0x135)][_0x1a93a4(0x13c)]['on'](_0x1a93a4(0x171),()=>{const _0x4f7bed=_0x1a93a4;this[_0x4f7bed(0x136)]=''===this[_0x4f7bed(0x135)][_0x4f7bed(0x13c)][_0x4f7bed(0x14d)][_0x4f7bed(0x162)]?.[_0x4f7bed(0x143)]();});}[_0x4fecb4(0x147)](){const _0x4dd8f8=_0x4fecb4;super[_0x4dd8f8(0x147)](),this[_0x4dd8f8(0x172)]&&this[_0x4dd8f8(0x172)][_0x4dd8f8(0x147)]();}[_0x4fecb4(0x167)](){const _0x514419=_0x4fecb4,_0x4f3840=this[_0x514419(0x135)][_0x514419(0x13c)][_0x514419(0x14d)][_0x514419(0x162)]?.[_0x514419(0x143)]();if(!_0x4f3840)return this[_0x514419(0x135)][_0x514419(0x15a)]=_0x564909(this[_0x514419(0x139)],_0x514419(0x140)),void(this[_0x514419(0x135)][_0x514419(0x13c)][_0x514419(0x159)]=!0x0);this[_0x514419(0x135)][_0x514419(0x13c)][_0x514419(0x159)]=!0x1;const _0x275283=_0x7b05e5(_0x4f3840);this[_0x514419(0x152)](_0x514419(0x13e),_0x275283),this[_0x514419(0x135)][_0x514419(0x13c)][_0x514419(0x168)]();}[_0x4fecb4(0x166)](_0x5d36bc){const _0x31d150=_0x4fecb4;this[_0x31d150(0x135)][_0x31d150(0x13c)][_0x31d150(0x14b)](_0x31d150(0x15b),_0x5d36bc);}[_0x4fecb4(0x170)](){const _0x88d152=_0x4fecb4,_0x1e191d=new _0x49274e(this[_0x88d152(0x139)]);return _0x1e191d[_0x88d152(0x14b)]({'icon':_0x325c77,'label':_0x564909(this[_0x88d152(0x139)],_0x88d152(0x145)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x88d152(0x13d),'isEnabled':!0x1}),_0x1e191d['on'](_0x88d152(0x169),()=>{const _0x2cd7ff=_0x88d152;this[_0x2cd7ff(0x167)]();}),_0x1e191d;}[_0x4fecb4(0x153)](_0x1d162b){const _0x5427f2=_0x4fecb4;this[_0x5427f2(0x13a)]=_0x1d162b;}[_0x4fecb4(0x138)](){const _0x5687fc=_0x4fecb4,_0x1a62c1=this[_0x5687fc(0x139)],_0x593a1f=()=>{const _0x243b5d=_0x5687fc;_0x482dce[_0x243b5d(0x175)][_0x243b5d(0x16e)](()=>{const _0x16b0ae=_0x243b5d;if(_0x2c48f6(this[_0x16b0ae(0x14d)])){const _0x309887=new _0x9e8d90(this[_0x16b0ae(0x135)][_0x16b0ae(0x13c)][_0x16b0ae(0x14d)]),_0x4818a5=new _0x9e8d90(this[_0x16b0ae(0x14c)][_0x16b0ae(0x14d)]),_0x1a0a3d=_0x309887[_0x16b0ae(0x15c)],_0x5677fc=_0x16b0ae(0x158)===_0x1a62c1[_0x16b0ae(0x160)]?_0x16b0ae(0x165):_0x16b0ae(0x149);_0x309887[_0x16b0ae(0x16b)]();const _0x279ad0=_0x1a0a3d-_0x309887[_0x16b0ae(0x15c)]+0x1;this[_0x16b0ae(0x14c)][_0x16b0ae(0x14d)][_0x16b0ae(0x16c)][_0x5677fc]=_0x16b0ae(0x176)+(_0x1a0a3d-_0x4818a5[_0x16b0ae(0x15c)]-_0x279ad0)+_0x16b0ae(0x16f);}});};this[_0x5687fc(0x135)][_0x5687fc(0x13c)]['on'](_0x5687fc(0x171),_0x593a1f),this['on'](_0x5687fc(0x16a),()=>{const _0x2fb418=_0x5687fc;_0x593a1f(),this[_0x2fb418(0x172)]=new _0x51a10a(this[_0x2fb418(0x135)][_0x2fb418(0x13c)][_0x2fb418(0x14d)],()=>{_0x593a1f();});});}}function _0x24f5(){const _0x240822=['523008dIptfN','requestAnimationFrame','px\x20-\x20var(--ck-spacing-tiny))','_createSubmitButton','update','_queryViewResizeObserver','minRows','1bnqPkU','window','calc(','queryView','isEmpty','fieldWrapperChildren','_setUpAddContextButtonPositioning','locale','isUploadInProgress','add','fieldView','ck-ai-chat__prompt-submit-button','sendUserMessage','16PjjDxd','AI_CHAT_PROMPT_EMPTY_ERROR','keystrokes','focusableChildren','trim','44tEkDFU','AI_CHAT_LABEL_SUBMIT','MAX_ROWS','destroy','maxRows','left','enter','set','_addContextButtonView','element','76955Htmgom','extendTemplate','90864OAmgCE','ck-ai-chat__prompt-input','fire','setIsUploadInProgress','1133660mBWvso','66tmpzPu','submitButtonView','bind','rtl','hasError','errorText','placeholder','width','400941IrnFrZ','186028DiZMCj','1790621pWJLMK','uiLanguageDirection','isEnabled','value','target','MIN_ROWS','right','setPlaceholderText','submit','reset','execute','render','excludeScrollbarsAndBorders','style'];_0x24f5=function(){return _0x240822;};return _0x24f5();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2bd467=_0x4b86;(function(_0x4db324,_0xec9d02){const _0x2a11f1=_0x4b86,_0x149974=_0x4db324();while(!![]){try{const _0x24280d=parseInt(_0x2a11f1(0x9b))/0x1*(parseInt(_0x2a11f1(0xa6))/0x2)+parseInt(_0x2a11f1(0x9d))/0x3*(-parseInt(_0x2a11f1(0x9c))/0x4)+parseInt(_0x2a11f1(0xa1))/0x5+parseInt(_0x2a11f1(0xa4))/0x6*(parseInt(_0x2a11f1(0x98))/0x7)+parseInt(_0x2a11f1(0x99))/0x8*(-parseInt(_0x2a11f1(0xa5))/0x9)+parseInt(_0x2a11f1(0xa0))/0xa*(-parseInt(_0x2a11f1(0x9f))/0xb)+-parseInt(_0x2a11f1(0xa2))/0xc;if(_0x24280d===_0xec9d02)break;else _0x149974['push'](_0x149974['shift']());}catch(_0x19f473){_0x149974['push'](_0x149974['shift']());}}}(_0x5aad,0xe1cfd));function _0x5aad(){const _0x396516=['3459141OaukRJ','46976GaZlox','items','38sSDYKx','1068948cSqEJL','12bWuMVL','filter','37334YweyoK','510VMFvNl','7681025sGVzGo','5910516XDsXRx','length','6EnDwLE','558fHOHUA','52274wDBOKu'];_0x5aad=function(){return _0x396516;};return _0x5aad();}function _0x4b86(_0x27044a,_0x703e48){const _0x5aad55=_0x5aad();return _0x4b86=function(_0x4b8602,_0x347c14){_0x4b8602=_0x4b8602-0x98;let _0x1bf6ca=_0x5aad55[_0x4b8602];return _0x1bf6ca;},_0x4b86(_0x27044a,_0x703e48);}import{ListView as _0x40b81e}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x40b81e{[_0x2bd467(0x9e)](){const _0x2e4b1d=_0x2bd467;let _0x34adb9=0x0;for(const _0x57525d of this[_0x2e4b1d(0x9a)])_0x34adb9+=_0x57525d[_0x2e4b1d(0x9a)][_0x2e4b1d(0xa3)];return{'resultsCount':_0x34adb9,'totalItemsCount':_0x34adb9};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x598bda=_0x58aa;(function(_0x691335,_0x4b6674){const _0xa329db=_0x58aa,_0x2216e4=_0x691335();while(!![]){try{const _0x4584eb=parseInt(_0xa329db(0x157))/0x1*(-parseInt(_0xa329db(0x161))/0x2)+-parseInt(_0xa329db(0x165))/0x3+parseInt(_0xa329db(0x162))/0x4*(parseInt(_0xa329db(0x150))/0x5)+parseInt(_0xa329db(0x15b))/0x6+-parseInt(_0xa329db(0x173))/0x7+parseInt(_0xa329db(0x168))/0x8+parseInt(_0xa329db(0x160))/0x9;if(_0x4584eb===_0x4b6674)break;else _0x2216e4['push'](_0x2216e4['shift']());}catch(_0x16faa5){_0x2216e4['push'](_0x2216e4['shift']());}}}(_0x5593,0xbb7b0));import{HighlightedTextView as _0x4ef482,IconView as _0x44f5ff,ListItemView as _0x2efefa}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x35b257}from'es-toolkit/compat';import{AIContextItemType as _0x338cca}from'../../../../aicore/model/aicontext.js';function _0x5593(){const _0x249da1=['render','19800819iroZfS','5332XnfOqX','13664RtlNip','isVisible','ck-ai-chat-resources__item-title','2535093rsOrMe','label','updateResourceState','1388344QCQKkT','div','_createTitleView','isInContext','setTemplate','span','ck-ai-chat-resources__item','execute','ck-ai-chat-resources__item__icon','_titleView','getResourceIcon','10421705CDwkJo','type','URL','text','resource','DOCUMENT','_iconView','highlightText','2205KwOCgk','content','set','FILE','ck-hidden','trim','bindTemplate','388UGikwH','_createIconView','_updateIcon','_setupTemplate','1536504BCWagS','extendTemplate','TEXT','ck-ai-chat-resources__item--in-context'];_0x5593=function(){return _0x249da1;};return _0x5593();}import{IconFileUpload as _0x575434,IconCheck as _0x46258a,IconDocument as _0x2311e6,IconDocumentOutline as _0x4b80fc,IconLink as _0x2fc52c}from'@ckeditor/ckeditor5-icons';const Tr=_0x598bda(0x16e),qr=_0x598bda(0x15e),zr=_0x598bda(0x164),Br=_0x598bda(0x170);function _0x58aa(_0x33babc,_0x41b2c3){const _0x55930a=_0x5593();return _0x58aa=function(_0x58aa80,_0x36e58b){_0x58aa80=_0x58aa80-0x14a;let _0x3a1cc1=_0x55930a[_0x58aa80];return _0x3a1cc1;},_0x58aa(_0x33babc,_0x41b2c3);}export class AIChatResourceListItemView extends _0x2efefa{[_0x598bda(0x14c)];[_0x598bda(0x171)];[_0x598bda(0x14e)];constructor(_0x2db7de,_0x35053c){const _0x46126d=_0x598bda;super(_0x2db7de),this[_0x46126d(0x14c)]=_0x35053c,this[_0x46126d(0x152)](_0x46126d(0x16b),!!_0x35053c[_0x46126d(0x16b)]),this[_0x46126d(0x171)]=this[_0x46126d(0x16a)](),this[_0x46126d(0x14e)]=this[_0x46126d(0x158)](),this[_0x46126d(0x15a)]();}[_0x598bda(0x15f)](){const _0x926ec4=_0x598bda;super[_0x926ec4(0x15f)]();}[_0x598bda(0x172)](_0x5843e4){const _0x15df6b=_0x598bda;if(_0x5843e4[_0x15df6b(0x16b)])return _0x46258a;switch(_0x5843e4[_0x15df6b(0x174)]){case _0x338cca[_0x15df6b(0x14d)]:return _0x2311e6;case _0x338cca[_0x15df6b(0x14a)]:return _0x2fc52c;case _0x338cca[_0x15df6b(0x153)]:case _0x338cca[_0x15df6b(0x15d)]:return _0x575434;default:return _0x4b80fc;}}[_0x598bda(0x14f)](_0x5549d0){const _0xff7e31=_0x598bda;if(!_0x5549d0||''===_0x5549d0[_0xff7e31(0x155)]())return void this[_0xff7e31(0x171)][_0xff7e31(0x14f)](null);const _0x40b786=new RegExp(_0x35b257(_0x5549d0),'gi');this[_0xff7e31(0x171)][_0xff7e31(0x14f)](_0x40b786);}[_0x598bda(0x167)](_0x219319){const _0x1db7d0=_0x598bda;this[_0x1db7d0(0x14c)][_0x1db7d0(0x16b)]=_0x219319,this[_0x1db7d0(0x16b)]=_0x219319,this[_0x1db7d0(0x159)]();}[_0x598bda(0x16a)](){const _0x361542=_0x598bda,_0x2c412a=new _0x4ef482();return _0x2c412a[_0x361542(0x14b)]=this[_0x361542(0x14c)][_0x361542(0x166)],_0x2c412a[_0x361542(0x15c)]({'tag':_0x361542(0x16d),'attributes':{'class':[zr]}}),_0x2c412a;}[_0x598bda(0x158)](){const _0xd78bb6=_0x598bda,_0x1ee533=new _0x44f5ff();return _0x1ee533[_0xd78bb6(0x151)]=this[_0xd78bb6(0x172)](this[_0xd78bb6(0x14c)]),_0x1ee533;}[_0x598bda(0x15a)](){const _0x49f281=_0x598bda,_0x3dc149=this[_0x49f281(0x156)];this[_0x49f281(0x16c)]({'tag':_0x49f281(0x169),'attributes':{'class':[Tr,_0x3dc149['if'](_0x49f281(0x163),_0x49f281(0x154),_0x148d94=>!_0x148d94),_0x3dc149['if'](_0x49f281(0x16b),qr)]},'children':[{'tag':_0x49f281(0x169),'attributes':{'class':[Br]},'children':[this[_0x49f281(0x14e)]]},this[_0x49f281(0x171)]],'on':{'click':_0x3dc149['to'](_0x49f281(0x16f))}});}[_0x598bda(0x159)](){const _0x26fe48=_0x598bda;this[_0x26fe48(0x14e)][_0x26fe48(0x151)]=this[_0x26fe48(0x172)](this[_0x26fe48(0x14c)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4000ea=_0x3778;(function(_0x59a56b,_0x2e1560){const _0x5b8a75=_0x3778,_0x4f4cce=_0x59a56b();while(!![]){try{const _0x14f1f3=parseInt(_0x5b8a75(0x14b))/0x1+parseInt(_0x5b8a75(0x13b))/0x2*(parseInt(_0x5b8a75(0x150))/0x3)+-parseInt(_0x5b8a75(0x157))/0x4+-parseInt(_0x5b8a75(0x139))/0x5*(parseInt(_0x5b8a75(0x15d))/0x6)+-parseInt(_0x5b8a75(0x144))/0x7+-parseInt(_0x5b8a75(0x137))/0x8*(parseInt(_0x5b8a75(0x126))/0x9)+parseInt(_0x5b8a75(0x13d))/0xa;if(_0x14f1f3===_0x2e1560)break;else _0x4f4cce['push'](_0x4f4cce['shift']());}catch(_0x3448dc){_0x4f4cce['push'](_0x4f4cce['shift']());}}}(_0x2f61,0xc1b91));function _0x2f61(){const _0x127a0c=['source','values','show','3027488ryhNoX','onResourceSelected','setResources','ck-button-icon\x20ck-button-back','loadSourceResources','label','6kJrTqq','get','addResourceToContext','9zXJNES','_createBalloonResourcesView','onBackToContext','_locale','_sourceResourceBalloons','ck-ai-chat-context-controls__source-balloon-panel','element','updateResourceState','getTargetElement','resource','_createBalloonHeader','_createSourceResourceBalloonPanel','getLimiterElement','delete','pin','onBalloonClosed','closeSourceResourceBalloon','3287680QrHAes','showSourceResourcesBalloon','5966385NZhQqv','_getResourcesViewFromBalloon','244ZxyUdq','_setupSingleResourceBalloonClickOutsideHandler','25910630LShjYO','isVisible','_config','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','populateSourceResourceBalloon','extendTemplate','content','9123338fTvpkk','set','clear','add','hide','onLoadSourceResources','isAnyResourceBalloonVisible','559761GBmkIx','_bodyCollection','children','_addSourceResourceContent','destroy','32142rCeLIo','execute','_createBackButton','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source'];_0x2f61=function(){return _0x127a0c;};return _0x2f61();}function _0x3778(_0x1ee908,_0x4475f6){const _0x2f6183=_0x2f61();return _0x3778=function(_0x37783c,_0x54b1df){_0x37783c=_0x37783c-0x124;let _0x589eb3=_0x2f6183[_0x37783c];return _0x589eb3;},_0x3778(_0x1ee908,_0x4475f6);}import{BalloonPanelView as _0xd772c4,ButtonView as _0x379ad6,clickOutsideHandler as _0xe7f111,FormHeaderView as _0x56af5a}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x349dc9}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x5a68e6}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x2f60f7}from'./aichatresourcesview.js';const Qo=_0x4000ea(0x12b),Zo=_0x4000ea(0x15a),Or=_0x4000ea(0x153);export class AIChatResourcesBalloonView{[_0x4000ea(0x12a)]=new Map();[_0x4000ea(0x14c)];[_0x4000ea(0x129)];[_0x4000ea(0x13f)];constructor(_0x538013,_0x3ed222,_0x438dab){const _0x1b893c=_0x4000ea;this[_0x1b893c(0x129)]=_0x538013,this[_0x1b893c(0x14c)]=_0x3ed222,this[_0x1b893c(0x13f)]=_0x438dab;}[_0x4000ea(0x138)](_0xf24a45){const _0x3d03c4=_0x4000ea;let _0x5e8137=this[_0x3d03c4(0x12a)][_0x3d03c4(0x124)](_0xf24a45['id']);_0x5e8137||(_0x5e8137=this[_0x3d03c4(0x131)](),this[_0x3d03c4(0x12a)][_0x3d03c4(0x145)](_0xf24a45['id'],_0x5e8137),this[_0x3d03c4(0x13c)](_0x5e8137)),this[_0x3d03c4(0x14e)](_0x5e8137,_0xf24a45),_0x5e8137[_0x3d03c4(0x156)]();const _0x57cec8=this[_0x3d03c4(0x13f)][_0x3d03c4(0x12e)]();_0x57cec8&&_0x5e8137[_0x3d03c4(0x134)]({'target':_0x57cec8,'limiter':this[_0x3d03c4(0x13f)][_0x3d03c4(0x132)]()});}[_0x4000ea(0x141)](_0x9a9599,_0x141b18,_0x6249ee){const _0x1077b4=_0x4000ea,_0x13fdcf=this[_0x1077b4(0x12a)][_0x1077b4(0x124)](_0x9a9599);if(!_0x13fdcf)return;const _0x5925ee=this[_0x1077b4(0x13a)](_0x13fdcf);_0x5925ee&&_0x5925ee[_0x1077b4(0x159)](_0x141b18,_0x6249ee);}[_0x4000ea(0x136)](_0xc13790){const _0x4d00a1=_0x4000ea,_0x364cee=this[_0x4d00a1(0x12a)][_0x4d00a1(0x124)](_0xc13790);_0x364cee&&requestAnimationFrame(()=>{const _0x123a5a=_0x4d00a1;_0x364cee[_0x123a5a(0x148)](),this[_0x123a5a(0x12a)][_0x123a5a(0x133)](_0xc13790),this[_0x123a5a(0x13f)][_0x123a5a(0x135)]();});}[_0x4000ea(0x14a)](){const _0x59f148=_0x4000ea;for(const _0xa6d917 of this[_0x59f148(0x12a)][_0x59f148(0x155)]())if(_0xa6d917[_0x59f148(0x13e)])return!0x0;return!0x1;}[_0x4000ea(0x12d)](_0x37720a,_0x1d422e,_0x12053c){const _0x428266=_0x4000ea,_0x4c41ef=this[_0x428266(0x12a)][_0x428266(0x124)](_0x37720a);if(!_0x4c41ef||!_0x4c41ef[_0x428266(0x13e)])return;const _0x445ac8=this[_0x428266(0x13f)][_0x428266(0x12e)]();if(!_0x445ac8)return;_0x4c41ef[_0x428266(0x134)]({'target':_0x445ac8,'limiter':this[_0x428266(0x13f)][_0x428266(0x132)]()});const _0x3a7cb1=this[_0x428266(0x13a)](_0x4c41ef);_0x3a7cb1&&_0x3a7cb1[_0x428266(0x12d)](_0x1d422e,_0x12053c);}[_0x4000ea(0x14f)](){const _0x598323=_0x4000ea;for(const _0x13f669 of this[_0x598323(0x12a)][_0x598323(0x155)]())_0x13f669[_0x598323(0x14f)]();this[_0x598323(0x12a)][_0x598323(0x146)]();}[_0x4000ea(0x131)](){const _0x304154=_0x4000ea,_0x53bea7=new _0xd772c4(this[_0x304154(0x129)]);return _0x53bea7[_0x304154(0x142)]({'attributes':{'class':Qo}}),this[_0x304154(0x14c)][_0x304154(0x147)](_0x53bea7),_0x53bea7;}[_0x4000ea(0x14e)](_0x19be18,_0x157a36){const _0x18728d=_0x4000ea;_0x19be18[_0x18728d(0x143)][_0x18728d(0x146)]();const _0x2ed3ea=this[_0x18728d(0x130)](_0x19be18,_0x157a36);_0x19be18[_0x18728d(0x143)][_0x18728d(0x147)](_0x2ed3ea);const _0x20f846=this[_0x18728d(0x127)](_0x157a36);_0x19be18[_0x18728d(0x143)][_0x18728d(0x147)](_0x20f846);}[_0x4000ea(0x130)](_0x5b9827,_0x4de30f){const _0x1fe981=_0x4000ea,_0x2b8eb6=this[_0x1fe981(0x152)](_0x5b9827),_0x51eea1=new _0x56af5a(this[_0x1fe981(0x129)],{'label':_0x4de30f[_0x1fe981(0x15c)],'class':Or});return _0x51eea1[_0x1fe981(0x14d)][_0x1fe981(0x147)](_0x2b8eb6,0x0),_0x51eea1;}[_0x4000ea(0x152)](_0x179c67){const _0xeadb18=_0x4000ea,_0x482465=new _0x379ad6(this[_0xeadb18(0x129)]);return _0x482465[_0xeadb18(0x145)]({'icon':_0x349dc9,'tooltip':_0x5a68e6(this[_0xeadb18(0x129)],_0xeadb18(0x140)),'tooltipPosition':'n','class':Zo}),_0x482465['on'](_0xeadb18(0x151),()=>{const _0x37178f=_0xeadb18;_0x179c67[_0x37178f(0x148)](),this[_0x37178f(0x13f)][_0x37178f(0x128)]();}),_0x482465;}[_0x4000ea(0x127)](_0x1e5ab0){const _0x348723=_0x4000ea,_0x1a2de8=new _0x2f60f7(this[_0x348723(0x129)],_0x1e5ab0);return _0x1a2de8['on'](_0x348723(0x15b),(_0x388a49,_0x2e6c75)=>{const _0x5a19f1=_0x348723;this[_0x5a19f1(0x13f)][_0x5a19f1(0x149)](_0x2e6c75);}),_0x1a2de8['on'](_0x348723(0x125),(_0x38a9a9,_0x5a577b)=>{const _0xae21db=_0x348723;this[_0xae21db(0x13f)][_0xae21db(0x158)](_0x5a577b[_0xae21db(0x154)],_0x5a577b[_0xae21db(0x12f)]),this[_0xae21db(0x136)](_0x1e5ab0['id']);}),_0x1a2de8;}[_0x4000ea(0x13a)](_0x125bd0){const _0x3d9bda=_0x4000ea,_0xe72563=_0x125bd0[_0x3d9bda(0x143)][_0x3d9bda(0x124)](0x1);return _0xe72563 instanceof _0x2f60f7?_0xe72563:null;}[_0x4000ea(0x13c)](_0x5f2471){const _0x399999=_0x4000ea;_0xe7f111({'emitter':_0x5f2471,'contextElements':[_0x5f2471[_0x399999(0x12c)]],'callback':()=>{const _0x4105a9=_0x399999;_0x5f2471[_0x4105a9(0x148)](),this[_0x4105a9(0x13f)][_0x4105a9(0x135)]();},'activator':()=>_0x5f2471[_0x399999(0x13e)]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1315(_0x801d75,_0x24ee62){const _0x437879=_0x4378();return _0x1315=function(_0x1315b1,_0x499583){_0x1315b1=_0x1315b1-0x10f;let _0x52213e=_0x437879[_0x1315b1];return _0x52213e;},_0x1315(_0x801d75,_0x24ee62);}const _0x15098c=_0x1315;(function(_0x43dc15,_0x50bb07){const _0x1f9606=_0x1315,_0x4d92ef=_0x43dc15();while(!![]){try{const _0x407f2b=parseInt(_0x1f9606(0x121))/0x1+-parseInt(_0x1f9606(0x117))/0x2+parseInt(_0x1f9606(0x126))/0x3+parseInt(_0x1f9606(0x110))/0x4+parseInt(_0x1f9606(0x10f))/0x5+-parseInt(_0x1f9606(0x12b))/0x6*(-parseInt(_0x1f9606(0x11a))/0x7)+-parseInt(_0x1f9606(0x11c))/0x8;if(_0x407f2b===_0x50bb07)break;else _0x4d92ef['push'](_0x4d92ef['shift']());}catch(_0x33890c){_0x4d92ef['push'](_0x4d92ef['shift']());}}}(_0x4378,0x6e0fe));import{ListView as _0x6b9968}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x54c5c3}from'./aichatresourcelistitemview.js';const sc=_0x15098c(0x116);function _0x4378(){const _0x206acd=['extendTemplate','923671mUujlE','add','14277920wWpKvD','highlightText','locale','forEach','addResourceToContext','891999KPNESF','updateResourceState','_handleResourceSelection','clear','items','2076255awkWfD','filter','useDefaultFiltering','_source','setResources','30uvcPyY','execute','trim','1411365PXxqUt','2433804dvZeUK','label','test','resource','fire','\x5c$&','ck-ai-chat-resources__list','1798038oriwYl','replace'];_0x4378=function(){return _0x206acd;};return _0x4378();}export class AIChatContextResourcesListView extends _0x6b9968{[_0x15098c(0x129)];constructor(_0x543562,_0x3fd58c){const _0x201973=_0x15098c;super(_0x543562),this[_0x201973(0x129)]=_0x3fd58c,this[_0x201973(0x119)]({'attributes':{'class':[sc]}});}[_0x15098c(0x12a)](_0x15875c,_0x13758e){const _0x1f49ee=_0x15098c;this[_0x1f49ee(0x125)][_0x1f49ee(0x124)]();let _0x5eca55=_0x15875c;if(this[_0x1f49ee(0x129)][_0x1f49ee(0x128)]&&_0x13758e&&''!==_0x13758e[_0x1f49ee(0x12d)]()){const _0x4d4656=new RegExp(_0x13758e[_0x1f49ee(0x118)](/[.*+?^${}()|[\]\\]/g,_0x1f49ee(0x115)),'gi');_0x5eca55=_0x15875c[_0x1f49ee(0x127)](_0x3f0120=>_0x4d4656[_0x1f49ee(0x112)](_0x3f0120[_0x1f49ee(0x111)]));}for(const _0x553f1f of _0x5eca55){const _0x66a3d4=new _0x54c5c3(this[_0x1f49ee(0x11e)],_0x553f1f);_0x66a3d4['on'](_0x1f49ee(0x12c),()=>{const _0x1ac0c5=_0x1f49ee;this[_0x1ac0c5(0x123)](this[_0x1ac0c5(0x129)],_0x553f1f);}),this[_0x1f49ee(0x125)][_0x1f49ee(0x11b)](_0x66a3d4);}this[_0x1f49ee(0x129)][_0x1f49ee(0x128)]&&this[_0x1f49ee(0x11d)](_0x13758e);}[_0x15098c(0x11d)](_0x59183f){const _0x20f0df=_0x15098c;this[_0x20f0df(0x129)][_0x20f0df(0x128)]&&this[_0x20f0df(0x125)][_0x20f0df(0x11f)](_0x1603b6=>{const _0x40ebec=_0x20f0df;_0x1603b6[_0x40ebec(0x11d)](_0x59183f);});}[_0x15098c(0x122)](_0x4554c0,_0x10dec0){const _0x118d28=_0x15098c;for(const _0x14355f of this[_0x118d28(0x125)]){const _0x721bb=_0x14355f;_0x721bb[_0x118d28(0x113)]['id']===_0x4554c0&&_0x721bb[_0x118d28(0x122)](_0x10dec0);}}[_0x15098c(0x123)](_0x13f5b9,_0x14437b){const _0x59b776=_0x15098c;this[_0x59b776(0x114)](_0x59b776(0x120),{'source':_0x13f5b9,'resource':_0x14437b});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x2ef2fe,IconView as _0x1c4bea,LabeledFieldView as _0x310456,createLabeledInputText as th}from'ckeditor5/src/ui.js';import{IconLoupe as _0x3b8eea,IconCancel as _0x3fea8f}from'ckeditor5/src/icons.js';import{getTranslation as _0x19dd92}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x310456{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x29f3ca){const t=_0x29f3ca['t'],_0x4102c1={'showResetButton':!0x0,'showIcon':!0x0,'creator':th,'label':_0x19dd92(_0x29f3ca,'AI_CHAT_SEARCH_RESOURCES')};super(_0x29f3ca,_0x4102c1['creator']),this['label']=_0x4102c1['label'],this['_viewConfig']=_0x4102c1,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x29f3ca,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x47986d){this['fire']('search',_0x47986d);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x1c4bea(),this['iconView']['content']=_0x3b8eea,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0xf69615,t){this['resetButtonView']=new _0x2ef2fe(_0xf69615),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x3fea8f,'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',_0x29bc82=>!_0x29bc82),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);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c7c94=_0x3470;(function(_0x57aafb,_0x5a6aa2){const _0x26fcb7=_0x3470,_0x55d7ff=_0x57aafb();while(!![]){try{const _0x33b263=parseInt(_0x26fcb7(0x184))/0x1*(parseInt(_0x26fcb7(0x185))/0x2)+-parseInt(_0x26fcb7(0x17a))/0x3+parseInt(_0x26fcb7(0x186))/0x4+parseInt(_0x26fcb7(0x16d))/0x5*(-parseInt(_0x26fcb7(0x17c))/0x6)+-parseInt(_0x26fcb7(0x170))/0x7+-parseInt(_0x26fcb7(0x176))/0x8*(parseInt(_0x26fcb7(0x16b))/0x9)+parseInt(_0x26fcb7(0x16a))/0xa;if(_0x33b263===_0x5a6aa2)break;else _0x55d7ff['push'](_0x55d7ff['shift']());}catch(_0x1530e5){_0x55d7ff['push'](_0x55d7ff['shift']());}}}(_0x144f,0xa1b5c));import{View as _0x87aaca,ViewCollection as _0x34aa72}from'ckeditor5/src/ui.js';import{uid as _0xdd1f6a}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x59992f}from'./aichatresourceslistview.js';function _0x144f(){const _0x16115f=['_createSearchView','_source','setTemplate','3882453Iarski','search','318JbsxWN','delegate','bindTemplate','highlightText','_resourcesListView','isLoading','setResources','_createResourcesListView','1279eUpxOH','206qvKhBl','2142248mqdagR','_createSkeletonView','locale','_skeletonLoader','getQuery','_latestLoadResourcesUid','loadResources','div','extendTemplate','ck-hidden','updateResourceState','aiChatResources','children','useDefaultFiltering','render','44992200MRvFUm','7542yuGFzQ','ck-ai-chat-resources','94945TYHZKH','loadSourceResources','addResourceToContext','8960777AFgnco','fire','set','ck\x20ck-search','_searchView','_createSearchSection','8816sLNVKZ'];_0x144f=function(){return _0x16115f;};return _0x144f();}import{AIChatContextResourcesSearchInputView as _0x48035f}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x33c63b,SKELETON_DEFINITIONS as _0xd76ff7}from'../../../../aicore/ui/aiskeleton.js';function _0x3470(_0x535a3e,_0x37187e){const _0x144fc3=_0x144f();return _0x3470=function(_0x34702d,_0x564515){_0x34702d=_0x34702d-0x16a;let _0x2e3e8e=_0x144fc3[_0x34702d];return _0x2e3e8e;},_0x3470(_0x535a3e,_0x37187e);}export class AIChatContextResourcesView extends _0x87aaca{[_0x4c7c94(0x174)];[_0x4c7c94(0x180)];[_0x4c7c94(0x189)];[_0x4c7c94(0x178)];[_0x4c7c94(0x192)];[_0x4c7c94(0x18b)]=null;constructor(_0x368d83,_0x477a33){const _0xb451cd=_0x4c7c94;super(_0x368d83),this[_0xb451cd(0x178)]=_0x477a33,this[_0xb451cd(0x172)](_0xb451cd(0x181),!0x0),this[_0xb451cd(0x174)]=this[_0xb451cd(0x177)]();const _0x586e92=this[_0xb451cd(0x175)]();this[_0xb451cd(0x180)]=this[_0xb451cd(0x183)](),this[_0xb451cd(0x189)]=this[_0xb451cd(0x187)](),this[_0xb451cd(0x192)]=new _0x34aa72([_0x586e92,this[_0xb451cd(0x189)],this[_0xb451cd(0x180)]]),this[_0xb451cd(0x179)]({'tag':_0xb451cd(0x18d),'attributes':{'class':_0xb451cd(0x16c)},'children':this[_0xb451cd(0x192)]});}[_0x4c7c94(0x177)](){const _0x4a01e3=_0x4c7c94;return new _0x48035f(this[_0x4a01e3(0x188)]);}[_0x4c7c94(0x175)](){const _0x149f3b=_0x4c7c94,_0x5d988b=new _0x87aaca(this[_0x149f3b(0x188)]);return _0x5d988b[_0x149f3b(0x179)]({'tag':_0x149f3b(0x18d),'attributes':{'class':_0x149f3b(0x173)},'children':[this[_0x149f3b(0x174)]]}),this[_0x149f3b(0x174)]['on'](_0x149f3b(0x17b),(_0x1bbad1,_0x611d5c)=>{const _0x71b64f=_0x149f3b;this[_0x71b64f(0x18c)](_0x611d5c),this[_0x71b64f(0x178)][_0x71b64f(0x193)]&&this[_0x71b64f(0x180)][_0x71b64f(0x17f)](_0x611d5c);}),_0x5d988b;}[_0x4c7c94(0x183)](){const _0x450545=_0x4c7c94,_0x5cae18=new _0x59992f(this[_0x450545(0x188)],this[_0x450545(0x178)]);return _0x5cae18[_0x450545(0x17d)](_0x450545(0x16f))['to'](this),_0x5cae18[_0x450545(0x18e)]({'attributes':{'class':this[_0x450545(0x17e)]['if'](_0x450545(0x181),_0x450545(0x18f))}}),_0x5cae18;}[_0x4c7c94(0x187)](){const _0x3d0ab0=_0x4c7c94,_0x2341b4=new _0x33c63b(this[_0x3d0ab0(0x188)],_0xd76ff7[_0x3d0ab0(0x191)]);return _0x2341b4[_0x3d0ab0(0x18e)]({'attributes':{'class':[this[_0x3d0ab0(0x17e)]['if'](_0x3d0ab0(0x181),_0x3d0ab0(0x18f),_0x1ae95c=>!_0x1ae95c)]}}),_0x2341b4;}[_0x4c7c94(0x194)](){const _0x3ff3a8=_0x4c7c94;super[_0x3ff3a8(0x194)](),this[_0x3ff3a8(0x18c)]('');}[_0x4c7c94(0x18c)](_0x33fb6a){const _0x59ae55=_0x4c7c94,_0x3213b9=_0xdd1f6a();this[_0x59ae55(0x18b)]=_0x3213b9,this[_0x59ae55(0x171)](_0x59ae55(0x16e),{'sourceId':this[_0x59ae55(0x178)]['id'],'query':_0x33fb6a,'uid':_0x3213b9}),this[_0x59ae55(0x181)]=!0x0;}[_0x4c7c94(0x182)](_0x122d57,_0x348eee){const _0x1a57e2=_0x4c7c94;if(_0x348eee&&_0x348eee!==this[_0x1a57e2(0x18b)])return;const _0x28cc33=this[_0x1a57e2(0x178)][_0x1a57e2(0x193)]?this[_0x1a57e2(0x174)][_0x1a57e2(0x18a)]():'';this[_0x1a57e2(0x180)][_0x1a57e2(0x182)](_0x122d57,_0x28cc33),requestAnimationFrame(()=>{const _0x33c001=_0x1a57e2;this[_0x33c001(0x181)]=!0x1;});}[_0x4c7c94(0x190)](_0x2e4c40,_0x3ac779){const _0x2c5d33=_0x4c7c94;this[_0x2c5d33(0x180)][_0x2c5d33(0x190)](_0x2e4c40,_0x3ac779);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5da4a4=_0x3ce3;(function(_0x2e40e1,_0x4d0b75){const _0x2ca004=_0x3ce3,_0x2b99f2=_0x2e40e1();while(!![]){try{const _0x30c8eb=parseInt(_0x2ca004(0xdb))/0x1+parseInt(_0x2ca004(0xdc))/0x2*(parseInt(_0x2ca004(0xdf))/0x3)+parseInt(_0x2ca004(0xe7))/0x4*(parseInt(_0x2ca004(0xd8))/0x5)+-parseInt(_0x2ca004(0xce))/0x6+-parseInt(_0x2ca004(0xd9))/0x7+-parseInt(_0x2ca004(0xde))/0x8+-parseInt(_0x2ca004(0xd4))/0x9;if(_0x30c8eb===_0x4d0b75)break;else _0x2b99f2['push'](_0x2b99f2['shift']());}catch(_0x3cbd1d){_0x2b99f2['push'](_0x2b99f2['shift']());}}}(_0xad63,0x5fed6));function _0xad63(){const _0x5c5d3c=['add','ck-reset_all','createCollection','_createContextChips','1497796VubLYF','render','reorganizeChips','ck-ai-chat-controls_context_show-more-button','destroy','ck-ai-chat-context-controls__show-more-balloon-panel','518946rSACiw','querySelector','_bodyCollection','ck-ai-chat-context-chips-wrapper','_overflowManager','ck-ai-chat__feed__context-chips','602883UTeAyf','setTemplate','div','ck-ai-chat-context-chips-wrapper-balloon','5uksLLf','2550408jZBtmD','element','557933jfRBZB','2yDrUHh','ck-ai-chat-controls-button','5475800uscIta','1988499hHiUWk','_contextChips','setContainerElement','locale'];_0xad63=function(){return _0x5c5d3c;};return _0xad63();}import{View as _0x1a3669}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x1a400f}from'../controls/aichatcontextitembuttonview.js';import{AIChatChipsOverflowManager as _0x45baca}from'../controls/aichatchipsoverflowmanager.js';function _0x3ce3(_0x5821c2,_0x594d30){const _0xad637e=_0xad63();return _0x3ce3=function(_0x3ce33a,_0xbd96d5){_0x3ce33a=_0x3ce33a-0xce;let _0x189e19=_0xad637e[_0x3ce33a];return _0x189e19;},_0x3ce3(_0x5821c2,_0x594d30);}const Fo=_0x5da4a4(0xd3),$o=_0x5da4a4(0xd1),qo=_0x5da4a4(0xd7),fo=_0x5da4a4(0xdd),Po=_0x5da4a4(0xea),Ro=_0x5da4a4(0xec);export class AIChatFeedContextChipsView extends _0x1a3669{[_0x5da4a4(0xe0)]=this[_0x5da4a4(0xe5)]();[_0x5da4a4(0xd2)];[_0x5da4a4(0xd0)];constructor(_0x166a70,_0x3e77e5,_0x340740){const _0x5ae417=_0x5da4a4;super(_0x166a70),this[_0x5ae417(0xd0)]=_0x340740,this[_0x5ae417(0xe6)](_0x3e77e5);const _0x33948a={'cssClasses':{'showMoreButton':Po,'showMoreBalloon':Ro,'overflowContainer':qo,'controlsButton':fo}};this[_0x5ae417(0xd2)]=new _0x45baca(_0x166a70,this[_0x5ae417(0xe0)],_0x33948a,this[_0x5ae417(0xd0)],this),this[_0x5ae417(0xd5)]({'tag':_0x5ae417(0xd6),'attributes':{'class':[Fo,'ck',_0x5ae417(0xe4)]},'children':[{'tag':_0x5ae417(0xd6),'attributes':{'class':$o},'children':this[_0x5ae417(0xe0)]}]});}[_0x5da4a4(0xe8)](){const _0x4cb49c=_0x5da4a4;super[_0x4cb49c(0xe8)]();const _0x4dffed=this[_0x4cb49c(0xda)][_0x4cb49c(0xcf)]('.'+$o);_0x4dffed&&(this[_0x4cb49c(0xd2)][_0x4cb49c(0xe1)](_0x4dffed),this[_0x4cb49c(0xd2)][_0x4cb49c(0xe9)]());}[_0x5da4a4(0xeb)](){const _0x24618f=_0x5da4a4;super[_0x24618f(0xeb)](),this[_0x24618f(0xd2)][_0x24618f(0xeb)]();}[_0x5da4a4(0xe6)](_0x159623){const _0x48b5ae=_0x5da4a4;for(const _0x4419e7 of _0x159623){const _0x5cfc59=new _0x1a400f(this[_0x48b5ae(0xe2)],_0x4419e7,!0x0,!0x1);this[_0x48b5ae(0xe0)][_0x48b5ae(0xe3)](_0x5cfc59);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x32b8(){var _0x29e194=['4qFenMr','setContent','initialContent','level','extendTemplate','88aiQXJh','129144qsidjR','ck-ai-chat-error','6QtUfjp','235359diDuKT','ck-ai-chat-error_warning','warning','441320waVsSQ','innerHTML','element','options','markAsDone','279118uqYtMg','render','643866oDtFlM','83682Xoleny','5PoJltV','28455ytpMks','44sCXKGT'];_0x32b8=function(){return _0x29e194;};return _0x32b8();}var _0x45760d=_0x4c8a;(function(_0x37ed90,_0x2836ef){var _0x5820d8=_0x4c8a,_0x240705=_0x37ed90();while(!![]){try{var _0x502185=-parseInt(_0x5820d8(0x17a))/0x1*(-parseInt(_0x5820d8(0x16c))/0x2)+parseInt(_0x5820d8(0x16d))/0x3*(parseInt(_0x5820d8(0x17c))/0x4)+parseInt(_0x5820d8(0x179))/0x5*(-parseInt(_0x5820d8(0x177))/0x6)+-parseInt(_0x5820d8(0x175))/0x7+parseInt(_0x5820d8(0x181))/0x8*(-parseInt(_0x5820d8(0x178))/0x9)+-parseInt(_0x5820d8(0x170))/0xa*(-parseInt(_0x5820d8(0x17b))/0xb)+parseInt(_0x5820d8(0x182))/0xc;if(_0x502185===_0x2836ef)break;else _0x240705['push'](_0x240705['shift']());}catch(_0x31c7cf){_0x240705['push'](_0x240705['shift']());}}}(_0x32b8,0x18d0d));import{AIChatFeedItemView as _0x8bc7f9}from'./aichatfeeditemview.js';function _0x4c8a(_0x40c0ff,_0x380d66){var _0x32b8a5=_0x32b8();return _0x4c8a=function(_0x4c8ae8,_0x2e9095){_0x4c8ae8=_0x4c8ae8-0x16b;var _0x3d16f1=_0x32b8a5[_0x4c8ae8];return _0x3d16f1;},_0x4c8a(_0x40c0ff,_0x380d66);}export class AIChatFeedErrorItemView extends _0x8bc7f9{constructor(_0x274212){var _0x266bb1=_0x4c8a;super(_0x274212),this[_0x266bb1(0x180)]({'attributes':{'class':[_0x266bb1(0x16b),_0x266bb1(0x16f)===_0x274212[_0x266bb1(0x17f)]?_0x266bb1(0x16e):'']}});}[_0x45760d(0x176)](){var _0x4c05ef=_0x45760d;super[_0x4c05ef(0x176)](),this[_0x4c05ef(0x17d)](this[_0x4c05ef(0x173)][_0x4c05ef(0x17e)]),this[_0x4c05ef(0x174)]();}[_0x45760d(0x17d)](_0x587c63){var _0x320e0a=_0x45760d;this[_0x320e0a(0x172)][_0x320e0a(0x171)]=_0x587c63;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4aeb32=_0x33ce;function _0x16cc(){const _0x901027=['11109928gRbYBS','setTemplate','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','ck-ai-chat__feed__interaction-header__capabilities','extendTemplate','17432RkCRnH','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','ck-ai-chat__feed__interaction-header__capabilities__text','3829872wmkoDy','8009526xOlJDb','86iUevYq','ck-hidden','children','content','50bhcLyD','3864520taQOJb','5omiNHV','push','span','div','4205540tDXstP','ck-ai-chat__feed__interaction-header','add','9SeUpBa','6BcPtds','capabilities','734103PUnVHP'];_0x16cc=function(){return _0x901027;};return _0x16cc();}(function(_0x37a717,_0x408756){const _0x56ab04=_0x33ce,_0x13f1e8=_0x37a717();while(!![]){try{const _0xfba876=parseInt(_0x56ab04(0xd8))/0x1*(parseInt(_0x56ab04(0xdd))/0x2)+parseInt(_0x56ab04(0xd1))/0x3+-parseInt(_0x56ab04(0xcb))/0x4*(-parseInt(_0x56ab04(0xc7))/0x5)+parseInt(_0x56ab04(0xcf))/0x6*(-parseInt(_0x56ab04(0xdc))/0x7)+-parseInt(_0x56ab04(0xd2))/0x8*(parseInt(_0x56ab04(0xce))/0x9)+parseInt(_0x56ab04(0xe1))/0xa*(parseInt(_0x56ab04(0xe2))/0xb)+-parseInt(_0x56ab04(0xdb))/0xc;if(_0xfba876===_0x408756)break;else _0x13f1e8['push'](_0x13f1e8['shift']());}catch(_0xb2bc6b){_0x13f1e8['push'](_0x13f1e8['shift']());}}}(_0x16cc,0xe7f83));import{IconBulb as _0x529dfb,IconWeb as _0x404107}from'@ckeditor/ckeditor5-icons';import{IconView as _0x27c07c,View as _0x49d869}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x5cbb1d}from'./aichatfeeditemview.js';import{getTranslation as _0x1ba63b}from'../../../aicore/utils/common-translations.js';export class AIChatFeedInteractionHeaderView extends _0x5cbb1d{[_0x4aeb32(0xd0)];constructor(_0x4d5828,_0x943dd6){const _0x49946f=_0x4aeb32;super(_0x943dd6);const {isWebSearchEnabled:_0x3d5ecb,isReasoningEnabled:_0x129146}=_0x943dd6[_0x49946f(0xd0)],_0x17c061=[];let _0x4f6af7='';_0x3d5ecb&&_0x129146?(_0x4f6af7=_0x1ba63b(_0x4d5828,_0x49946f(0xd4)),_0x17c061[_0x49946f(0xc8)](ea(_0x404107)),_0x17c061[_0x49946f(0xc8)](ea(_0x529dfb))):_0x3d5ecb?(_0x4f6af7=_0x1ba63b(_0x4d5828,_0x49946f(0xd5)),_0x17c061[_0x49946f(0xc8)](ea(_0x404107))):_0x129146&&(_0x4f6af7=_0x1ba63b(_0x4d5828,_0x49946f(0xd9)),_0x17c061[_0x49946f(0xc8)](ea(_0x529dfb))),this[_0x49946f(0xd7)]({'attributes':{'class':[_0x49946f(0xcc),_0x4f6af7?'':_0x49946f(0xde)]}});const _0x384efe=new _0x49d869();_0x384efe[_0x49946f(0xd3)]({'tag':_0x49946f(0xca),'attributes':{'class':['ck',_0x49946f(0xd6)]},'children':[..._0x17c061,{'tag':_0x49946f(0xc9),'attributes':{'class':[_0x49946f(0xda)]},'children':[_0x4f6af7]}]}),this[_0x49946f(0xdf)][_0x49946f(0xcd)](_0x384efe),this[_0x49946f(0xd0)]=_0x943dd6[_0x49946f(0xd0)];}}function _0x33ce(_0x1c5aad,_0x923b71){const _0x16ccbc=_0x16cc();return _0x33ce=function(_0x33cec6,_0x272310){_0x33cec6=_0x33cec6-0xc7;let _0x52ccde=_0x16ccbc[_0x33cec6];return _0x52ccde;},_0x33ce(_0x1c5aad,_0x923b71);}function ea(_0x1f2bd2){const _0xeb90e2=_0x4aeb32,_0x324a21=new _0x27c07c();return _0x324a21[_0xeb90e2(0xe0)]=_0x1f2bd2,_0x324a21;}
|