@ckeditor/ckeditor5-ai 47.0.0-alpha.4 → 47.0.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index-editor.css +10 -1
- package/dist/index.css +10 -1
- 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/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.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/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/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.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/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/utils/common-translations.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.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.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -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/aireviewmodeformamanager.js +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.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/index.js +1 -1
- package/theme/aireviewmode/aireviewmode-check-list.css +10 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x48cfec=_0x1a6b;(function(_0x7426fa,_0x50a83a){const _0x3ac473=_0x1a6b,_0x5b3446=_0x7426fa();while(!![]){try{const _0x59df14=parseInt(_0x3ac473(0x17e))/0x1*(parseInt(_0x3ac473(0x183))/0x2)+-parseInt(_0x3ac473(0x159))/0x3+parseInt(_0x3ac473(0x173))/0x4+-parseInt(_0x3ac473(0x155))/0x5*(-parseInt(_0x3ac473(0x15a))/0x6)+parseInt(_0x3ac473(0x176))/0x7+parseInt(_0x3ac473(0x17b))/0x8*(parseInt(_0x3ac473(0x17c))/0x9)+-parseInt(_0x3ac473(0x160))/0xa;if(_0x59df14===_0x50a83a)break;else _0x5b3446['push'](_0x5b3446['shift']());}catch(_0x308017){_0x5b3446['push'](_0x5b3446['shift']());}}}(_0xfd18,0xea9f9));import{ButtonView as _0x1739b4,IconView as _0x3587c1}from'ckeditor5/src/ui.js';function _0xfd18(){const _0x13c2de=['4025720rHrQIE','label','_createTemplateChildren','6407289gCpKcA','_createIconView','render','ck-ai-chat-context-chip_wide','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','9496LvkHXO','12060ZTRUcE','_createRemoveButton','1PVgRfZ','addEventListener','type','set','small','3508030noyJIw','ck-ai-chat-context-chip_document','span','webkitAnimationEnd','length','lastIndexOf','content','classList','itemType','setTemplate','slice','ck-ai-chat-context-chip__type-icon','_createLoaderIcon','isVisible','removeContextItemChip','animationend','tooltip','_isAnimationOnEnterEnabled','ck-hidden','ck-ai-chat-context-chip','35TpOugs','readonly','locale','add','1481529mvMuLf','477234crpPfX','selection','fire','isLoading','bind','element','43682650AxyyMo','_initializeProperties','_setupRemoveButtonEvent','_setupTemplate','ck-ai-chat-context-chip_new-chip','uiId','_handleAnimationEndOnce','div','ck-ai-chat-context-controls__chip-tooltip','_createLabelElement','ck-ai-chat-context-chip__label','remove','removeEventListener','extendTemplate','bindTemplate','document','_createTemplateAttributes','disableAnimationOnEnter','execute'];_0xfd18=function(){return _0x13c2de;};return _0xfd18();}function _0x1a6b(_0x3f2dd8,_0x144211){const _0xfd18b9=_0xfd18();return _0x1a6b=function(_0x1a6b74,_0x32af52){_0x1a6b74=_0x1a6b74-0x150;let _0x2acffa=_0xfd18b9[_0x1a6b74];return _0x2acffa;},_0x1a6b(_0x3f2dd8,_0x144211);}import{IconClose as _0x596fe6,IconDocument as _0x2f7d88,IconFileUpload as _0x4a59b0,IconLink as _0x533b4b,IconSelection as _0x8f1b5a}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x39d8db}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x27aadd}from'../../../aicore/ui/aispinner.js';const En={'file':_0x4a59b0,'document':_0x2f7d88,'web-resource':_0x533b4b,'text':_0x4a59b0,'selection':_0x8f1b5a},An=_0x48cfec(0x154),Cn=_0x48cfec(0x179),In=_0x48cfec(0x184),On=_0x48cfec(0x16a),gn=_0x48cfec(0x18e),vn=_0x48cfec(0x168),yn='n';export class AIChatContextItemButtonView extends _0x1739b4{constructor(_0x5197d1,_0x12b831,_0x5c4562,_0x36447f,_0x4ea2c6=!0x1){const _0x227347=_0x48cfec;super(_0x5197d1),this[_0x227347(0x152)]=_0x36447f,this[_0x227347(0x161)](_0x12b831,_0x5c4562,_0x4ea2c6),this[_0x227347(0x163)]();}[_0x48cfec(0x178)](){const _0x1e277f=_0x48cfec;super[_0x1e277f(0x178)](),this[_0x1e277f(0x152)]&&this[_0x1e277f(0x15f)]&&(this[_0x1e277f(0x15f)][_0x1e277f(0x18a)][_0x1e277f(0x158)](_0x1e277f(0x164)),this[_0x1e277f(0x166)](this[_0x1e277f(0x15f)],()=>{const _0x1770e0=_0x1e277f;this[_0x1770e0(0x15f)]&&this[_0x1770e0(0x15f)][_0x1770e0(0x18a)][_0x1770e0(0x16b)](_0x1770e0(0x164));}));}[_0x48cfec(0x171)](){const _0x329afb=_0x48cfec;this[_0x329afb(0x152)]=!0x1,this[_0x329afb(0x15f)]&&this[_0x329afb(0x15f)][_0x329afb(0x18a)][_0x329afb(0x16b)](_0x329afb(0x164));}[_0x48cfec(0x161)](_0x37dc26,_0x163658,_0x37151f){const _0x506956=_0x48cfec;this[_0x506956(0x181)](_0x506956(0x174),_0x37dc26[_0x506956(0x174)]),this[_0x506956(0x181)](_0x506956(0x151),!0x0),this[_0x506956(0x181)](_0x506956(0x18b),_0x37dc26[_0x506956(0x180)]),this[_0x506956(0x181)]('id',_0x37dc26[_0x506956(0x165)]),this[_0x506956(0x181)](_0x506956(0x156),_0x163658),this[_0x506956(0x181)](_0x506956(0x15d),_0x37151f);}[_0x48cfec(0x163)](){const _0x2d0140=_0x48cfec,_0x77e6b4=this[_0x2d0140(0x177)](),_0xdd45cc=this[_0x2d0140(0x17d)](),_0x1b6aae=this[_0x2d0140(0x16e)];this[_0x2d0140(0x18c)]({'tag':_0x2d0140(0x167),'attributes':this[_0x2d0140(0x170)](_0x1b6aae),'children':this[_0x2d0140(0x175)](_0x77e6b4,_0xdd45cc,_0x1b6aae)});}[_0x48cfec(0x170)](_0x2b1d18){const _0xc6a0d1=_0x48cfec;return{'class':[An,_0x2b1d18['if'](_0xc6a0d1(0x18b),In,_0x5e05d8=>_0xc6a0d1(0x16f)==_0x5e05d8),_0x2b1d18['if'](_0xc6a0d1(0x18b),Cn,_0x4ac94b=>_0xc6a0d1(0x15b)==_0x4ac94b)],'data-cke-tooltip-text':_0x2b1d18['to'](_0xc6a0d1(0x174),Ln),'data-cke-tooltip-position':yn,'data-cke-tooltip-class':vn};}[_0x48cfec(0x175)](_0x4287bc,_0x3b0d0e,_0x18b2ba){const _0x5f5719=_0x48cfec,_0x347ed1=this[_0x5f5719(0x169)](_0x18b2ba),_0x72a465=this[_0x5f5719(0x18f)]();return this[_0x5f5719(0x156)]?[_0x4287bc,_0x347ed1]:[_0x4287bc,_0x72a465,_0x347ed1,_0x3b0d0e];}[_0x48cfec(0x169)](_0x952964){const _0x10e1c0=_0x48cfec;return{'tag':_0x10e1c0(0x185),'attributes':{'class':On},'children':[{'text':_0x952964['to'](_0x10e1c0(0x174))}]};}[_0x48cfec(0x17d)](){const _0x5a6476=_0x48cfec,_0x51aaac=new _0x1739b4(this[_0x5a6476(0x157)]);return _0x51aaac[_0x5a6476(0x181)]({'label':_0x39d8db(this[_0x5a6476(0x157)],_0x5a6476(0x17a)),'icon':_0x596fe6}),this[_0x5a6476(0x162)](_0x51aaac),_0x51aaac;}[_0x48cfec(0x162)](_0x264f9d){const _0x2e8edd=_0x48cfec;_0x264f9d['on'](_0x2e8edd(0x172),()=>{const _0x2804c4=_0x2e8edd;this[_0x2804c4(0x15c)](_0x2804c4(0x191),this['id']);});}[_0x48cfec(0x177)](){const _0x1d1426=_0x48cfec,_0x296254=this[_0x1d1426(0x16e)],_0x47cf7d=new _0x3587c1();return _0x47cf7d[_0x1d1426(0x189)]=En[this[_0x1d1426(0x18b)]],_0x47cf7d[_0x1d1426(0x16d)]({'attributes':{'class':[gn,_0x296254['if'](_0x1d1426(0x15d),_0x1d1426(0x153),_0x74057f=>_0x74057f)]}}),_0x47cf7d;}[_0x48cfec(0x166)](_0x3c8ef0,_0x3066e3){const _0x1bc3e9=_0x48cfec;if(!_0x3c8ef0)return;const _0x7cbba0=()=>{const _0x5386f0=_0x1a6b;_0x3066e3(),_0x3c8ef0[_0x5386f0(0x16c)](_0x5386f0(0x150),_0x7cbba0),_0x3c8ef0[_0x5386f0(0x16c)](_0x5386f0(0x186),_0x7cbba0);};_0x3c8ef0[_0x1bc3e9(0x17f)](_0x1bc3e9(0x150),_0x7cbba0),_0x3c8ef0[_0x1bc3e9(0x17f)](_0x1bc3e9(0x186),_0x7cbba0);}[_0x48cfec(0x18f)](){const _0x32fd45=_0x48cfec,_0x30e847=new _0x27aadd(_0x32fd45(0x182));return _0x30e847[_0x32fd45(0x15e)](_0x32fd45(0x190))['to'](this,_0x32fd45(0x15d),_0x9710a5=>_0x9710a5),_0x30e847;}}function Ln(_0x5af48a){const _0xadc45d=_0x48cfec;if(!_0x5af48a)return _0x5af48a;if(_0x5af48a[_0xadc45d(0x187)]<=0x78)return _0x5af48a;const _0x432837=_0x5af48a[_0xadc45d(0x18d)](0x0,0x78),_0x1c8a93=_0x432837[_0xadc45d(0x188)]('\x20');return(_0x1c8a93>0x0?_0x432837[_0xadc45d(0x18d)](0x0,_0x1c8a93):_0x432837)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16ee71=_0x59cf;(function(_0x326a7f,_0x1cb456){const _0xdeb1=_0x59cf,_0x4a64d2=_0x326a7f();while(!![]){try{const _0x3dc9e4=-parseInt(_0xdeb1(0xa7))/0x1*(parseInt(_0xdeb1(0xac))/0x2)+parseInt(_0xdeb1(0x94))/0x3*(parseInt(_0xdeb1(0xaf))/0x4)+-parseInt(_0xdeb1(0x9c))/0x5*(parseInt(_0xdeb1(0xad))/0x6)+-parseInt(_0xdeb1(0xa5))/0x7*(-parseInt(_0xdeb1(0x90))/0x8)+parseInt(_0xdeb1(0xa1))/0x9*(-parseInt(_0xdeb1(0x93))/0xa)+parseInt(_0xdeb1(0xb6))/0xb+parseInt(_0xdeb1(0x92))/0xc*(-parseInt(_0xdeb1(0x8b))/0xd);if(_0x3dc9e4===_0x1cb456)break;else _0x4a64d2['push'](_0x4a64d2['shift']());}catch(_0x1d34ae){_0x4a64d2['push'](_0x4a64d2['shift']());}}}(_0x7239,0x1c244));import{FocusTracker as _0x572969,KeystrokeHandler as _0x87e96f}from'ckeditor5/src/utils.js';import{ButtonView as _0x1bb77d,FocusCycler as _0x61a953,LabeledFieldView as _0x3c157d,View as _0x442224,FormHeaderView as _0x1221ac,createLabeledInputText as _0x125936,submitHandler as _0x33b6c2}from'ckeditor5/src/ui.js';import{IconCheck as _0x12cc97,IconPreviousArrow as _0x210eea}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x4406fc}from'../../../aicore/utils/common-translations.js';function _0x7239(){const _0x4170bd=['clearError','forEach','_isValidUrl','1495659BcTEHa','esc','submit','fieldView','AI_CHAT_CONTEXT_URL_INVALID_ERROR','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','ck-button-icon','AI_CHAT_CONTEXT_URL_PLACEHOLDER','element','ck-ai-chat-context-controls__url-input-section','submitUrl','ck-labeled-field-view_empty','setTemplate','fire','form','ck-button-icon\x20ck-button-back','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','_handleSubmit','shift+tab','length','trim','input','urlInputField','focus','_focusables','_setupEventHandlers','execute','children','keystrokes','locale','_createBackButton','getValue','backButton','104OMofYL','clear','_updateConfirmButtonState','add','setError','4232ZnOJtv','_createUrlInputField','87936snhBpg','561190XaiUgY','195EMwshp','AI_CHAT_CONTEXT_URL_LABEL','_setupTemplate','refreshBalloon','ck-ai-chat-context-controls__url-form','isEnabled','render','AI_CHAT_CONTEXT_URL_ADD_URL','5qUEriQ','focusCycler','_createConfirmButton','errorText','div','9QqCqro','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','focusTracker','createCollection','308FoCvEO','stop','3TFabuf','_setupKeystrokes','value','listenTo','confirmButton','56338pqvXGF','256302oIZmcK','set','12184YipWTl','tab','destroy','cancel'];_0x7239=function(){return _0x4170bd;};return _0x7239();}function _0x59cf(_0xbcdb90,_0x2971ea){const _0x72397b=_0x7239();return _0x59cf=function(_0x59cfa0,_0x40957d){_0x59cfa0=_0x59cfa0-0x7b;let _0x27edf4=_0x72397b[_0x59cfa0];return _0x27edf4;},_0x59cf(_0xbcdb90,_0x2971ea);}const eh=_0x16ee71(0x98),hh=_0x16ee71(0xbf);export class AIChatContextPanelUrlInputView extends _0x442224{[_0x16ee71(0xa3)];[_0x16ee71(0x86)];[_0x16ee71(0x82)];[_0x16ee71(0x9d)];[_0x16ee71(0x80)];[_0x16ee71(0x8a)];[_0x16ee71(0xab)];constructor(_0xa46d35){const _0x135560=_0x16ee71;super(_0xa46d35),this[_0x135560(0xa3)]=new _0x572969(),this[_0x135560(0x86)]=new _0x87e96f(),this[_0x135560(0x8a)]=this[_0x135560(0x88)](),this[_0x135560(0x80)]=this[_0x135560(0x91)](),this[_0x135560(0xab)]=this[_0x135560(0x9e)](),this[_0x135560(0x82)]=this[_0x135560(0xa4)]([this[_0x135560(0x8a)],this[_0x135560(0x80)],this[_0x135560(0xab)]]),this[_0x135560(0x9d)]=new _0x61a953({'focusables':this[_0x135560(0x82)],'focusTracker':this[_0x135560(0xa3)],'keystrokeHandler':this[_0x135560(0x86)],'actions':{'focusPrevious':_0x135560(0x7c),'focusNext':_0x135560(0xb0)}}),this[_0x135560(0x96)](),this[_0x135560(0x83)](),this[_0x135560(0xa8)]();}[_0x16ee71(0x9a)](){const _0x3391aa=_0x16ee71;super[_0x3391aa(0x9a)](),this[_0x3391aa(0x82)][_0x3391aa(0xb4)](_0x15c89e=>{const _0x1da264=_0x3391aa;this[_0x1da264(0xa3)][_0x1da264(0x8e)](_0x15c89e[_0x1da264(0xbe)]),this[_0x1da264(0x86)][_0x1da264(0xaa)](_0x15c89e[_0x1da264(0xbe)]);}),_0x33b6c2({'view':this}),this[_0x3391aa(0x81)]();}[_0x16ee71(0xb1)](){const _0x1d11d3=_0x16ee71;super[_0x1d11d3(0xb1)](),this[_0x1d11d3(0xa3)][_0x1d11d3(0xb1)](),this[_0x1d11d3(0x86)][_0x1d11d3(0xb1)]();}[_0x16ee71(0x81)](){const _0x5243ca=_0x16ee71;this[_0x5243ca(0x80)][_0x5243ca(0x81)]();}[_0x16ee71(0x89)](){const _0x7bac86=_0x16ee71;return this[_0x7bac86(0x80)][_0x7bac86(0xb9)][_0x7bac86(0xbe)]?.[_0x7bac86(0xa9)]?.[_0x7bac86(0x7e)]()||'';}[_0x16ee71(0x8c)](){const _0x25113e=_0x16ee71;this[_0x25113e(0x80)][_0x25113e(0xb9)][_0x25113e(0xbe)][_0x25113e(0xa9)]='',this[_0x25113e(0x80)][_0x25113e(0x9f)]=null,this[_0x25113e(0xab)][_0x25113e(0x99)]=!0x1;}[_0x16ee71(0x8f)](_0x43af58){const _0x5a643a=_0x16ee71;this[_0x5a643a(0x80)][_0x5a643a(0x9f)]=_0x43af58,this[_0x5a643a(0x8d)](),this[_0x5a643a(0xc3)](_0x5a643a(0x97));}[_0x16ee71(0xb3)](){const _0x30cda0=_0x16ee71;this[_0x30cda0(0x80)][_0x30cda0(0x9f)]=null,this[_0x30cda0(0x8d)]();}[_0x16ee71(0x88)](){const _0x4a5e8d=_0x16ee71,_0x5a8038=new _0x1bb77d(this[_0x4a5e8d(0x87)]);return _0x5a8038[_0x4a5e8d(0xae)]({'icon':_0x210eea,'tooltip':_0x4406fc(this[_0x4a5e8d(0x87)],_0x4a5e8d(0xbb)),'tooltipPosition':'n','class':_0x4a5e8d(0xc5)}),_0x5a8038;}[_0x16ee71(0x91)](){const _0x2bdf79=_0x16ee71,_0x3e7a68=new _0x3c157d(this[_0x2bdf79(0x87)],_0x125936);return _0x3e7a68[_0x2bdf79(0xae)]({'label':_0x4406fc(this[_0x2bdf79(0x87)],_0x2bdf79(0x95)),'class':_0x2bdf79(0xc1)}),_0x3e7a68[_0x2bdf79(0xb9)][_0x2bdf79(0xae)]({'placeholder':_0x4406fc(this[_0x2bdf79(0x87)],_0x2bdf79(0xbd))}),_0x3e7a68;}[_0x16ee71(0x9e)](){const _0x7356fd=_0x16ee71,_0x5e5d23=new _0x1bb77d(this[_0x7356fd(0x87)]);return _0x5e5d23[_0x7356fd(0xae)]({'icon':_0x12cc97,'tooltip':_0x4406fc(this[_0x7356fd(0x87)],_0x7356fd(0x9b)),'tooltipPosition':'n','class':_0x7356fd(0xbc),'type':_0x7356fd(0xb8),'isEnabled':!0x1}),_0x5e5d23;}[_0x16ee71(0x96)](){const _0x5a240a=_0x16ee71,_0x58b76b=new _0x1221ac(this[_0x5a240a(0x87)],{'label':_0x4406fc(this[_0x5a240a(0x87)],_0x5a240a(0x9b)),'class':_0x5a240a(0xa2)});_0x58b76b[_0x5a240a(0x85)][_0x5a240a(0x8e)](this[_0x5a240a(0x8a)],0x0),this[_0x5a240a(0xc2)]({'tag':_0x5a240a(0xc4),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x58b76b,{'tag':_0x5a240a(0xa0),'attributes':{'class':hh},'children':[this[_0x5a240a(0x80)],this[_0x5a240a(0xab)]]}]});}[_0x16ee71(0x83)](){const _0x14f297=_0x16ee71;this[_0x14f297(0x8a)]['on'](_0x14f297(0x84),()=>{const _0x209f7f=_0x14f297;this[_0x209f7f(0x8c)](),this[_0x209f7f(0xc3)](_0x209f7f(0xb2));}),this[_0x14f297(0x80)][_0x14f297(0xb9)]['on'](_0x14f297(0x7f),()=>{const _0x1df67d=_0x14f297;this[_0x1df67d(0xb3)](),this[_0x1df67d(0x8d)](),this[_0x1df67d(0xc3)](_0x1df67d(0x97));}),this['on'](_0x14f297(0xb8),_0x142a29=>{const _0x34f7d8=_0x14f297;_0x142a29[_0x34f7d8(0xa6)](),this[_0x34f7d8(0x7b)]();});}[_0x16ee71(0xa8)](){const _0x20f8ff=_0x16ee71;this[_0x20f8ff(0x86)][_0x20f8ff(0xae)](_0x20f8ff(0xb7),(_0x41663e,_0x26d2be)=>{const _0x352a11=_0x20f8ff;this[_0x352a11(0x8c)](),this[_0x352a11(0xc3)](_0x352a11(0xb2)),_0x26d2be();});}[_0x16ee71(0x7b)](){const _0x57305a=_0x16ee71,_0x4aae99=this[_0x57305a(0x89)]()[_0x57305a(0x7e)]();_0x4aae99?this[_0x57305a(0xb5)](_0x4aae99)?(this[_0x57305a(0xb3)](),this[_0x57305a(0xc3)](_0x57305a(0xc0),_0x4aae99)):this[_0x57305a(0x8f)](_0x4406fc(this[_0x57305a(0x87)],_0x57305a(0xba))):this[_0x57305a(0x8f)](_0x4406fc(this[_0x57305a(0x87)],_0x57305a(0xc6)));}[_0x16ee71(0x8d)](){const _0x29244e=_0x16ee71,_0x3c8682=this[_0x29244e(0x89)]()[_0x29244e(0x7e)](),_0x30dcbe=!!this[_0x29244e(0x80)][_0x29244e(0x9f)];this[_0x29244e(0xab)][_0x29244e(0x99)]=_0x3c8682[_0x29244e(0x7d)]>0x0&&!_0x30dcbe;}[_0x16ee71(0xb5)](_0x3d3f67){try{return!!new URL(_0x3d3f67);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2ca822=_0x22fc;(function(_0xcc8b7e,_0x4eb5f2){const _0x3de790=_0x22fc,_0x5051cf=_0xcc8b7e();while(!![]){try{const _0x20b21c=parseInt(_0x3de790(0x81))/0x1*(-parseInt(_0x3de790(0x86))/0x2)+-parseInt(_0x3de790(0xff))/0x3+-parseInt(_0x3de790(0xb7))/0x4+-parseInt(_0x3de790(0x92))/0x5+parseInt(_0x3de790(0xa8))/0x6+parseInt(_0x3de790(0xc4))/0x7+-parseInt(_0x3de790(0xf0))/0x8*(-parseInt(_0x3de790(0xdb))/0x9);if(_0x20b21c===_0x4eb5f2)break;else _0x5051cf['push'](_0x5051cf['shift']());}catch(_0x561444){_0x5051cf['push'](_0x5051cf['shift']());}}}(_0x1d5f,0x89782));import{BalloonPanelView as _0x401041,ButtonView as _0x273dfd,clickOutsideHandler as _0x251fd1,FileDialogButtonView as _0x13e297,IconView as _0xd14263,View as _0x6a0a2c}from'ckeditor5/src/ui.js';function _0x22fc(_0x146fd8,_0x536704){const _0x1d5f13=_0x1d5f();return _0x22fc=function(_0x22fc63,_0x18387c){_0x22fc63=_0x22fc63-0x80;let _0x3e2e19=_0x1d5f13[_0x22fc63];return _0x3e2e19;},_0x22fc(_0x146fd8,_0x536704);}import{IconBrowseFiles as _0x1c4317,IconDocument as _0xc8a123,IconDocumentOutline as _0x5eb0fb,IconDropdownArrow as _0x22a845,IconLink as _0xa0f7df,IconPaperClip as _0x55d586}from'@ckeditor/ckeditor5-icons';function _0x1d5f(){const _0x738113=['isReadOnly','_conversationContextsChips','populateSourceResourceBalloon','hide','_handleUrlSubmit','1ubIZOL','closest','_toggleAddContextBalloon','showSourceResourcesBalloon','_createAddContextBalloonPanelView','1330258EMOcFF','enabled','menuitem','clearConversationContextItems','updateResourceState','setContainerElement','_setupUrlBalloonClickOutsideHandler','show','_handleAddContextButtonClick','isVisible','reorganizeChips','refreshBalloon','4772265Umqgkn','createCollection','AI_CHAT_CONTEXT_FILE_LABEL','label','arrowView','addResourceToContext','buttonView','div','ck-ai-chat-context-controls__add-context-balloon-panel','source','current','render','addDocumentToContext','ck-ai-chat-context-controls__add-context-button','cancel','isAnyResourceBalloonVisible','children','northArrowSouthEast','addContextItem','_addContextBalloonConfig','_createResourcesBalloonView','addUrlToContext','3538980juzDgb','execute','setConversationContext','ck-ai-chat-controls_context_show-more-button','_createAddContextButtonView','files','_urlBalloonPanelView','_getLimiterElement','balloonView','removeContextItemChip','conversation','find','setContextItemLoading','destroy','_resourcesBalloonView','723224KnEyPI','southArrowNorthWest','icon','_setupTemplate','northArrowSouth','bind','southArrowNorthEast','_currentContextsChips','isHidden','_overflowManager','setTemplate','type','_setBalloonPanelContent','7655606gWDBUI','showUrlBalloonPanel','isEnabled','remove','hideUrlBalloonPanel','ck-ai-chat-context-controls__url-balloon-panel','set','hideAddContextBalloonPanel','_setupAllBalloonClickOutsideHandlers','AI_CHAT_CONTEXT_URL_LABEL','urls','clearCurrentContextItems','_createArrowView','__arrow','isOn','bodyCollection','focus','loadSourceResources','pin','ck-ai-chat-context-controls__balloon-button','defaultPositions','ck-ai-chat-context-controls','_urlInputView','5897403djiGXz','_bindEventHandlers','tooltip','ck-ai-chat','done','isLoading','_createBalloonButton','ck-ai-chat-context-controls__show-more-balloon-panel','ck-ai-chat-context-controls__pending-contexts','ck-ai-chat-controls-button','southArrowNorth','_createContextButton','ck-ai-chat-context-chips-wrapper-balloon','_removeContextFromCollection','extendTemplate','add','addFileToContext','setAddContextOptions','northArrowSouthWest','document','element','16dJWOWc','showAddContextBalloonPanel','_showSourceResourcesBalloon','sources','content','body','AI_CHAT_CONTEXT_ADD_CONTEXT','_addContextToCollection','_createBaseBalloonPanel','ck-ai-chat-context-controls__balloon-button-source','closeSourceResourceBalloon','fire','clear','addContextButtonView','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','1891680NvAcdS','submitUrl','_createUrlBalloonPanelView','overflowChips','_addContextBalloonPanelView','_setAddContextButtonEnabled','_addUrlContent','locale','ck-reset_all-excluded','_setupAddContextBalloonClickOutsideHandler','removeContextItem'];_0x1d5f=function(){return _0x738113;};return _0x1d5f();}import{AIChatContextItemButtonView as _0x1c7391}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x571f35}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x55dbab}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x22cc11}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x238d7b}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x2ca822(0x9e),_0x2ca822(0xeb),_0x2ca822(0xa7),_0x2ca822(0x97),_0x2ca822(0x109),_0x2ca822(0xd5)];const Bo=_0x2ca822(0xd9),bo=_0x2ca822(0xe3),To=_0x2ca822(0x9a),Ao=_0x2ca822(0x9f),ko=_0x2ca822(0xc9),Eo=_0x2ca822(0xd7),vo=_0x2ca822(0xf9),go=_0x2ca822(0xe4),Vo=_0x2ca822(0xe7),fo=_0x2ca822(0xab),Io=_0x2ca822(0xe2),Po=_0x2ca822(0xde),Ro=[_0x401041[_0x2ca822(0xd8)][_0x2ca822(0xed)],_0x401041[_0x2ca822(0xd8)][_0x2ca822(0xbb)],_0x401041[_0x2ca822(0xd8)][_0x2ca822(0xa3)],_0x401041[_0x2ca822(0xd8)][_0x2ca822(0xb8)],_0x401041[_0x2ca822(0xd8)][_0x2ca822(0xe5)],_0x401041[_0x2ca822(0xd8)][_0x2ca822(0xbd)]];export class AIChatContextPanelView extends _0x6a0a2c{[_0x2ca822(0xfd)];[_0x2ca822(0xbe)]=this[_0x2ca822(0x93)]();[_0x2ca822(0x10b)]=this[_0x2ca822(0x93)]();[_0x2ca822(0xc0)];[_0x2ca822(0x103)];[_0x2ca822(0xae)];[_0x2ca822(0xda)];[_0x2ca822(0xb6)];[_0x2ca822(0xa5)];[_0x2ca822(0xd3)];constructor(_0x23f24b,_0x3271c1){const _0x5eafe7=_0x2ca822;super(_0x23f24b),this[_0x5eafe7(0xd3)]=_0x3271c1,this[_0x5eafe7(0xbe)]=this[_0x5eafe7(0x93)](),this[_0x5eafe7(0x10b)]=this[_0x5eafe7(0x93)](),this[_0x5eafe7(0xfd)]=this[_0x5eafe7(0xac)](_0x23f24b),this[_0x5eafe7(0x103)]=this[_0x5eafe7(0x85)](_0x23f24b),this[_0x5eafe7(0xae)]=this[_0x5eafe7(0x101)](_0x23f24b),this[_0x5eafe7(0xb6)]=this[_0x5eafe7(0xa6)](_0x23f24b,_0x3271c1);const _0x4ffb41={'cssClasses':{'showMoreButton':fo,'showMoreBalloon':Io,'overflowContainer':Vo,'controlsButton':go}};this[_0x5eafe7(0xc0)]=new _0x55dbab(_0x23f24b,this[_0x5eafe7(0xbe)],_0x4ffb41,this[_0x5eafe7(0xd3)],this),this[_0x5eafe7(0xa5)]={'buttonView':this[_0x5eafe7(0xfd)],'balloonView':this[_0x5eafe7(0x103)],'hideMethod':this[_0x5eafe7(0xcb)][_0x5eafe7(0xbc)](this),'showMethod':this[_0x5eafe7(0xf1)][_0x5eafe7(0xbc)](this)},this[_0x5eafe7(0xba)](),this[_0x5eafe7(0xdc)]();}[_0x2ca822(0x9d)](){const _0x587ba9=_0x2ca822;super[_0x587ba9(0x9d)](),this[_0x587ba9(0xcc)](),this[_0x587ba9(0xc0)][_0x587ba9(0x8b)](this[_0x587ba9(0xef)]),this[_0x587ba9(0xc0)][_0x587ba9(0x90)]();}[_0x2ca822(0xb5)](){const _0x2e4330=_0x2ca822;super[_0x2e4330(0xb5)](),this[_0x2e4330(0xc0)][_0x2e4330(0xb5)](),this[_0x2e4330(0xb6)][_0x2e4330(0xb5)]();}[_0x2ca822(0xa4)](_0x13b33a,_0x2b2391){const _0x5ccd13=_0x2ca822,_0x57c430=this[_0x5ccd13(0xe6)](_0x13b33a,_0x5ccd13(0x9c),!0x0,_0x2b2391);this[_0x5ccd13(0xf7)](_0x57c430,this[_0x5ccd13(0xbe)]),this[_0x5ccd13(0xc0)][_0x5ccd13(0x90)]();}[_0x2ca822(0x109)](_0x1ea3f5){const _0x952cee=_0x2ca822;this[_0x952cee(0xe8)](_0x1ea3f5,this[_0x952cee(0xbe)]),this[_0x952cee(0xe8)](_0x1ea3f5,this[_0x952cee(0xc0)][_0x952cee(0x102)]),this[_0x952cee(0xc0)][_0x952cee(0x90)]();}[_0x2ca822(0xb4)](_0x3e30e0,_0x413509){const _0x1f9798=_0x2ca822;let _0x178571=this[_0x1f9798(0xbe)][_0x1f9798(0xb3)](_0xcf2192=>_0xcf2192['id']===_0x3e30e0);_0x178571||(_0x178571=this[_0x1f9798(0xc0)][_0x1f9798(0x102)][_0x1f9798(0xb3)](_0x4ad5cc=>_0x4ad5cc['id']===_0x3e30e0)),_0x178571&&(_0x178571[_0x1f9798(0xe0)]=_0x413509);}[_0x2ca822(0xaa)](_0x49f786){const _0x2404ce=_0x2ca822;this[_0x2404ce(0x10b)][_0x2404ce(0xfc)]();for(const _0x22ff5c of _0x49f786){const _0x1d229e=this[_0x2404ce(0xe6)](_0x22ff5c,_0x2404ce(0xb2),!0x1,!0x1);this[_0x2404ce(0xf7)](_0x1d229e,this[_0x2404ce(0x10b)]);}}[_0x2ca822(0xcf)](){const _0x2cd87c=_0x2ca822;this[_0x2cd87c(0xbe)][_0x2cd87c(0xfc)](),this[_0x2cd87c(0xc0)][_0x2cd87c(0xfc)]();}[_0x2ca822(0x89)](){const _0x43c8fe=_0x2ca822;this[_0x43c8fe(0x10b)][_0x43c8fe(0xfc)]();}[_0x2ca822(0x8a)](_0x129710,_0x423fe5,_0x357227){const _0x23b443=_0x2ca822;this[_0x23b443(0xb6)][_0x23b443(0x8a)](_0x129710,_0x423fe5,_0x357227);}[_0x2ca822(0xcb)](){const _0x1bd0be=_0x2ca822;this[_0x1bd0be(0x83)](!0x1);}[_0x2ca822(0xf1)](){const _0xda8dc6=_0x2ca822;this[_0xda8dc6(0x83)](!0x0);}[_0x2ca822(0xc8)](){const _0xb0ce4=_0x2ca822;this[_0xb0ce4(0xae)][_0xb0ce4(0x10d)](),this[_0xb0ce4(0xfd)][_0xb0ce4(0xd2)]=!0x1,this[_0xb0ce4(0xda)]&&this[_0xb0ce4(0xda)][_0xb0ce4(0xfc)]();}[_0x2ca822(0xc5)](){const _0x238319=_0x2ca822;this[_0x238319(0xae)][_0x238319(0x8d)](),this[_0x238319(0xfd)][_0x238319(0xd2)]=!0x0;}[_0x2ca822(0xf2)](_0xe108dd){const _0x279859=_0x2ca822;this[_0x279859(0xb6)][_0x279859(0x84)](_0xe108dd),this[_0x279859(0xfd)][_0x279859(0xd2)]=!0x0;}[_0x2ca822(0x10c)](_0x1c3d1f,_0x26ad3a,_0x598892,_0x4ca988){const _0x486ef8=_0x2ca822;this[_0x486ef8(0xb6)][_0x486ef8(0x10c)](_0x1c3d1f,_0x598892,_0x4ca988);}[_0x2ca822(0xfa)](_0x5aef9e){const _0x51c477=_0x2ca822;this[_0x51c477(0xb6)][_0x51c477(0xfa)](_0x5aef9e),this[_0x51c477(0xfd)][_0x51c477(0xd2)]=!0x1;}[_0x2ca822(0xec)](_0x5c8b72){const _0x33911a=_0x2ca822;this[_0x33911a(0xc3)](this[_0x33911a(0x103)],this[_0x33911a(0x106)],_0x5c8b72),this[_0x33911a(0x104)](_0x5c8b72);}[_0x2ca822(0x104)](_0x52f9b8){const _0x2fa272=_0x2ca822,_0x2eb34c=!_0x52f9b8[_0x2fa272(0xee)][_0x2fa272(0xbf)]&&_0x52f9b8[_0x2fa272(0xee)][_0x2fa272(0x87)],_0x5585dd=_0x52f9b8[_0x2fa272(0xce)][_0x2fa272(0x87)],_0x170e78=_0x52f9b8[_0x2fa272(0xad)][_0x2fa272(0x87)];this[_0x2fa272(0xfd)][_0x2fa272(0xc6)]=_0x2eb34c||_0x5585dd||_0x170e78;}[_0x2ca822(0xba)](){const _0x3e1fa8=_0x2ca822;this[_0x3e1fa8(0xc1)]({'tag':_0x3e1fa8(0x99),'attributes':{'class':[Bo,_0x3e1fa8(0x107)]},'children':[{'tag':_0x3e1fa8(0x99),'attributes':{'class':bo},'children':this[_0x3e1fa8(0xbe)]}]});}[_0x2ca822(0xdc)](){const _0x15ba29=_0x2ca822;this[_0x15ba29(0xfd)]['on'](_0x15ba29(0xa9),()=>{const _0x5e55ae=_0x15ba29;this[_0x5e55ae(0x8e)]();});}[_0x2ca822(0xac)](_0x554753){const _0x273739=_0x2ca822,_0x3a9adc=new _0x273dfd(_0x554753);return _0x3a9adc[_0x273739(0xca)]({'label':_0x22cc11(_0x554753,_0x273739(0xf6)),'class':go+'\x20'+Ao,'icon':_0x55d586,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x3a9adc;}[_0x2ca822(0x85)](_0x59567a){const _0x449bc2=_0x2ca822;return this[_0x449bc2(0xf8)](_0x59567a,To);}[_0x2ca822(0x101)](_0x5a8d68){const _0xb5e5bf=_0x2ca822,_0x57ffd4=this[_0xb5e5bf(0xf8)](_0x5a8d68,ko);return this[_0xb5e5bf(0x105)](_0x57ffd4,_0x5a8d68),_0x57ffd4;}[_0x2ca822(0xa6)](_0x32ad5a,_0x2f4333){const _0x555780=_0x2ca822;return new _0x238d7b(_0x32ad5a,_0x2f4333,{'onBackToContext':()=>{const _0x1c4b89=_0x22fc;this[_0x1c4b89(0xf1)](),this[_0x1c4b89(0x103)][_0x1c4b89(0xd6)]({'target':this[_0x1c4b89(0xfd)][_0x1c4b89(0xef)],'limiter':this[_0x1c4b89(0xaf)](),'positions':Ro});},'onResourceSelected':(_0x91713e,_0x19e0e5)=>{const _0x1c4ce1=_0x22fc;this[_0x1c4ce1(0xfb)](_0x1c4ce1(0x97),{'source':_0x91713e,'resource':_0x19e0e5});},'onLoadSourceResources':_0x15d2d6=>{const _0x256250=_0x22fc;this[_0x256250(0xfb)](_0x256250(0xd5),_0x15d2d6);},'onBalloonClosed':()=>{const _0x2a3019=_0x22fc;this[_0x2a3019(0xfd)][_0x2a3019(0xd2)]=!0x1;},'getLimiterElement':()=>this[_0x555780(0xaf)](),'getTargetElement':()=>this[_0x555780(0xfd)][_0x555780(0xef)]});}[_0x2ca822(0xaf)](){const _0x4a5a0c=_0x2ca822;return this[_0x4a5a0c(0xef)]?.[_0x4a5a0c(0x82)]('.'+Po)||document[_0x4a5a0c(0xf5)];}[_0x2ca822(0xf8)](_0x26ba0e,_0x145230){const _0x3ee8ac=_0x2ca822,_0xf6019f=new _0x401041(_0x26ba0e);return _0xf6019f[_0x3ee8ac(0xe9)]({'attributes':{'class':_0x145230}}),this[_0x3ee8ac(0xd3)][_0x3ee8ac(0xea)](_0xf6019f),_0xf6019f;}[_0x2ca822(0xc3)](_0x553551,_0x5c48f2,_0x167832){const _0x1a0902=_0x2ca822;if(_0x553551[_0x1a0902(0xf4)][_0x1a0902(0xfc)](),!_0x167832[_0x1a0902(0xee)][_0x1a0902(0xbf)]&&_0x167832[_0x1a0902(0xee)][_0x1a0902(0x87)]){const _0x3d006a=this[_0x1a0902(0xe1)](_0x5c48f2,{'label':_0x22cc11(_0x5c48f2,_0x1a0902(0xfe)),'icon':_0xc8a123});_0x3d006a['on'](_0x1a0902(0xa9),()=>{const _0x2d5039=_0x1a0902;this[_0x2d5039(0xfb)](_0x2d5039(0x9e)),this[_0x2d5039(0xcb)]();}),_0x553551[_0x1a0902(0xf4)][_0x1a0902(0xea)](_0x3d006a);}if(_0x167832[_0x1a0902(0xce)][_0x1a0902(0x87)]){const _0x130cdc=this[_0x1a0902(0xe1)](_0x5c48f2,{'label':_0x22cc11(_0x5c48f2,_0x1a0902(0xcd)),'icon':_0xa0f7df});_0x130cdc['on'](_0x1a0902(0xa9),()=>{const _0x50955e=_0x1a0902;this[_0x50955e(0xcb)](),this[_0x50955e(0xc5)](),this[_0x50955e(0xae)][_0x50955e(0xd6)]({'target':this[_0x50955e(0xfd)][_0x50955e(0xef)],'limiter':this[_0x50955e(0xaf)](),'positions':Ro}),this[_0x50955e(0xda)][_0x50955e(0xd4)]();}),_0x553551[_0x1a0902(0xf4)][_0x1a0902(0xea)](_0x130cdc);}if(_0x167832[_0x1a0902(0xad)][_0x1a0902(0x87)]){const _0x349696=new _0x13e297(_0x5c48f2);_0x349696[_0x1a0902(0xca)]({'label':_0x22cc11(_0x5c48f2,_0x1a0902(0x94)),'icon':_0x1c4317,'withText':!0x0,'tooltip':!0x0,'class':Eo,'allowMultipleFiles':!0x0}),_0x349696['on'](_0x1a0902(0xdf),(_0x52de69,_0x360823)=>{const _0x181d2c=_0x1a0902;this[_0x181d2c(0xfb)](_0x181d2c(0xeb),_0x360823),this[_0x181d2c(0xcb)]();}),_0x349696[_0x1a0902(0xdd)]=!0x0,_0x553551[_0x1a0902(0xf4)][_0x1a0902(0xea)](_0x349696);}for(const _0x44d14c of _0x167832[_0x1a0902(0xf3)]){const _0x216ebb=this[_0x1a0902(0xe1)](_0x5c48f2,{'label':_0x44d14c[_0x1a0902(0x95)],'icon':_0x44d14c[_0x1a0902(0xb9)]||_0x5eb0fb,'type':_0x1a0902(0x9b)});_0x553551[_0x1a0902(0xf4)][_0x1a0902(0xea)](_0x216ebb),_0x216ebb['on'](_0x1a0902(0xa9),()=>{const _0x24ceaf=_0x1a0902;this[_0x24ceaf(0xcb)](),this[_0x24ceaf(0xf2)](_0x44d14c);});}}[_0x2ca822(0x105)](_0x524494,_0x43886a){const _0x1042f0=_0x2ca822;this[_0x1042f0(0xda)]=new _0x571f35(_0x43886a),this[_0x1042f0(0xda)]['on'](_0x1042f0(0x100),(_0x39a251,_0x51785b)=>{const _0x741c28=_0x1042f0;this[_0x741c28(0x80)](_0x51785b);}),this[_0x1042f0(0xda)]['on'](_0x1042f0(0xa0),()=>{const _0x4ee6a9=_0x1042f0;this[_0x4ee6a9(0xc8)](),this[_0x4ee6a9(0xf1)](),this[_0x4ee6a9(0x103)][_0x4ee6a9(0xd6)]({'target':this[_0x4ee6a9(0xfd)][_0x4ee6a9(0xef)],'limiter':this[_0x4ee6a9(0xaf)](),'positions':Ro});}),this[_0x1042f0(0xda)]['on'](_0x1042f0(0x91),()=>{const _0x5c67c5=_0x1042f0;this[_0x5c67c5(0xae)][_0x5c67c5(0x8f)]&&this[_0x5c67c5(0xae)][_0x5c67c5(0xd6)]({'target':this[_0x5c67c5(0xfd)][_0x5c67c5(0xef)],'limiter':this[_0x5c67c5(0xaf)](),'positions':Ro});}),_0x524494[_0x1042f0(0xf4)][_0x1042f0(0xea)](this[_0x1042f0(0xda)]);}[_0x2ca822(0xe1)](_0x57e194,_0x1e7a42){const _0x409beb=_0x2ca822,_0x19a030=_0x409beb(0x9b)===_0x1e7a42[_0x409beb(0xc2)]?new SourcesBalloonButtonView(_0x57e194):new _0x273dfd(_0x57e194);return _0x19a030[_0x409beb(0xca)]({'label':_0x1e7a42[_0x409beb(0x95)],'icon':_0x1e7a42[_0x409beb(0xb9)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Eo}),_0x19a030;}[_0x2ca822(0xcc)](){const _0x55e594=_0x2ca822;this[_0x55e594(0x108)](),this[_0x55e594(0x8c)]();}[_0x2ca822(0x8c)](){const _0x2a1372=_0x2ca822;_0x251fd1({'emitter':this[_0x2a1372(0xae)],'contextElements':[this[_0x2a1372(0xae)][_0x2a1372(0xef)]],'callback':()=>{const _0x209be6=_0x2a1372;this[_0x209be6(0xc8)]();},'activator':()=>this[_0x2a1372(0xae)][_0x2a1372(0x8f)]});}[_0x2ca822(0x83)](_0x397404){const _0x3c6019=_0x2ca822,_0x45a62e=this[_0x3c6019(0xa5)];_0x45a62e[_0x3c6019(0x98)][_0x3c6019(0xd2)]=_0x397404,_0x397404?_0x45a62e[_0x3c6019(0xb0)][_0x3c6019(0x8d)]():_0x45a62e[_0x3c6019(0xb0)][_0x3c6019(0x10d)]();}[_0x2ca822(0x108)](){const _0x4f007a=_0x2ca822,{balloonView:_0x38d9bc,buttonView:_0x40cfa7,hideMethod:_0x5e3a65}=this[_0x4f007a(0xa5)];_0x251fd1({'emitter':_0x38d9bc,'contextElements':[_0x38d9bc[_0x4f007a(0xef)],_0x40cfa7[_0x4f007a(0xef)]],'callback':()=>{_0x5e3a65();},'activator':()=>_0x40cfa7[_0x4f007a(0xd2)]&&!this[_0x4f007a(0xae)][_0x4f007a(0x8f)]&&!this[_0x4f007a(0xb6)][_0x4f007a(0xa1)]()});}[_0x2ca822(0xe6)](_0x5e0cf0,_0x5d7c21,_0x1544d1=!0x1,_0xa2b390=!0x1){const _0x3fbb1f=_0x2ca822,_0x1699be=_0x3fbb1f(0xb2)===_0x5d7c21||!0x0===_0x5e0cf0[_0x3fbb1f(0x10a)],_0x3bc5a0=new _0x1c7391(this[_0x3fbb1f(0x106)],_0x5e0cf0,_0x1699be,_0x1544d1,_0xa2b390);return _0x1699be||_0x3bc5a0['on'](_0x3fbb1f(0xb1),()=>{const _0x26315c=_0x3fbb1f;this[_0x26315c(0xfb)](_0x26315c(0x109),_0x3bc5a0['id']);}),_0x3bc5a0;}[_0x2ca822(0xf7)](_0x6b2c1d,_0x5cfdc9){const _0x31be5c=_0x2ca822;_0x5cfdc9[_0x31be5c(0xea)](_0x6b2c1d,0x0);}[_0x2ca822(0xe8)](_0x2d1efb,_0x269b36){const _0x4579ce=_0x2ca822,_0x1ecb91=_0x269b36[_0x4579ce(0xb3)](_0x263585=>_0x263585['id']===_0x2d1efb);_0x1ecb91&&_0x269b36[_0x4579ce(0xc7)](_0x1ecb91);}[_0x2ca822(0x8e)](){const _0x105144=_0x2ca822;this[_0x105144(0xfd)][_0x105144(0xd2)]?this[_0x105144(0xcb)]():(this[_0x105144(0xf1)](),this[_0x105144(0x103)][_0x105144(0xd6)]({'target':this[_0x105144(0xfd)][_0x105144(0xef)],'limiter':this[_0x105144(0xaf)](),'positions':Ro}));}[_0x2ca822(0x80)](_0x5f5dce){const _0x57482b=_0x2ca822;this[_0x57482b(0xda)][_0x57482b(0xfc)](),this[_0x57482b(0xc8)](),this[_0x57482b(0xfb)](_0x57482b(0xa7),_0x5f5dce);}}export class SourcesBalloonButtonView extends _0x273dfd{[_0x2ca822(0x96)];constructor(_0xab925){const _0x3532d0=_0x2ca822;super(_0xab925),this[_0x3532d0(0xca)]({'withText':!0x0,'role':_0x3532d0(0x88)}),this[_0x3532d0(0x96)]=this[_0x3532d0(0xd0)](),this[_0x3532d0(0xe9)]({'attributes':{'class':[vo]}});}[_0x2ca822(0x9d)](){const _0x4e16ce=_0x2ca822;super[_0x4e16ce(0x9d)](),this[_0x4e16ce(0xa2)][_0x4e16ce(0xea)](this[_0x4e16ce(0x96)]);}[_0x2ca822(0xd0)](){const _0x23ccf6=_0x2ca822,_0x57142e=new _0xd14263();return _0x57142e[_0x23ccf6(0xf4)]=_0x22a845,_0x57142e[_0x23ccf6(0xe9)]({'attributes':{'class':vo+_0x23ccf6(0xd1)}}),_0x57142e;}}
|
|
23
|
+
function _0x1e5b(){const _0x10971c=['isHidden','set','_setAddContextButtonEnabled','_addContextBalloonConfig','updateResourceState','ck-ai-chat-context-chips-wrapper-balloon','type','3827362MJuBik','addResourceToContext','addFileToContext','addContextButtonView','addDocumentToContext','southArrowNorthWest','setTemplate','_urlInputView','document','current','79968YrXipK','createCollection','sources','enabled','_createArrowView','removeContextItemChip','ck-ai-chat-context-controls','icon','menuitem','conversation','ck-ai-chat-controls_context_show-more-button','_showSourceResourcesBalloon','hideAddContextBalloonPanel','isOn','destroy','_handleAddContextButtonClick','focus','buttonView','submitUrl','_createUrlBalloonPanelView','setConversationContext','__arrow','3028725BBIpTS','6hHFrdb','clear','ck-reset_all-excluded','southArrowNorth','add','addContextItem','ck-ai-chat-context-controls__balloon-button-source','hide','div','_setBalloonPanelContent','setAddContextOptions','_conversationContextsChips','3SfpNgu','935164YAYJqE','AI_CHAT_CONTEXT_URL_LABEL','ck-ai-chat-context-controls__pending-contexts','_getLimiterElement','execute','tooltip','4378pjxWQY','clearCurrentContextItems','_handleUrlSubmit','_urlBalloonPanelView','removeContextItem','159065gjZQjS','files','_createResourcesBalloonView','setContextItemLoading','closest','southArrowNorthEast','populateSourceResourceBalloon','bind','_overflowManager','showAddContextBalloonPanel','defaultPositions','done','locale','urls','1602265zqYDBY','northArrowSouth','northArrowSouthEast','_setupTemplate','AI_CHAT_CONTEXT_FILE_LABEL','isLoading','_addContextToCollection','setContainerElement','northArrowSouthWest','find','_addContextBalloonPanelView','isAnyResourceBalloonVisible','remove','10CuLrRC','8sNzIzB','_setupUrlBalloonClickOutsideHandler','_createAddContextBalloonPanelView','arrowView','extendTemplate','closeSourceResourceBalloon','_createContextButton','208FqdtSp','_removeContextFromCollection','balloonView','render','_toggleAddContextBalloon','refreshBalloon','content','ck-ai-chat-controls-button','show','fire','ck-ai-chat-context-controls__balloon-button','_createBaseBalloonPanel','children','_resourcesBalloonView','showSourceResourcesBalloon','ck-ai-chat-context-controls__add-context-balloon-panel','ck-ai-chat','source','isEnabled','showUrlBalloonPanel','_setupAddContextBalloonClickOutsideHandler','_currentContextsChips','hideUrlBalloonPanel','_setupAllBalloonClickOutsideHandlers','element','label','cancel','overflowChips','_createAddContextButtonView','AI_CHAT_CONTEXT_ADD_CONTEXT','reorganizeChips','addUrlToContext','_addUrlContent','_bindEventHandlers','loadSourceResources','pin','ck-ai-chat-context-controls__show-more-balloon-panel','_createBalloonButton','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','58JCkTFv','clearConversationContextItems','isReadOnly','isVisible','bodyCollection','ck-ai-chat-context-controls__add-context-button','ck-ai-chat-context-controls__url-balloon-panel','body'];_0x1e5b=function(){return _0x10971c;};return _0x1e5b();}const _0x2a1b80=_0x20f6;(function(_0x4aa0c9,_0x26ba98){const _0x39d9fa=_0x20f6,_0x2c0185=_0x4aa0c9();while(!![]){try{const _0x285601=-parseInt(_0x39d9fa(0x190))/0x1*(-parseInt(_0x39d9fa(0x1d3))/0x2)+parseInt(_0x39d9fa(0x1cc))/0x3*(-parseInt(_0x39d9fa(0x1cd))/0x4)+-parseInt(_0x39d9fa(0x1d8))/0x5*(parseInt(_0x39d9fa(0x1c0))/0x6)+-parseInt(_0x39d9fa(0x1e6))/0x7+-parseInt(_0x39d9fa(0x1f4))/0x8*(-parseInt(_0x39d9fa(0x1bf))/0x9)+-parseInt(_0x39d9fa(0x1f3))/0xa*(-parseInt(_0x39d9fa(0x19f))/0xb)+parseInt(_0x39d9fa(0x1a9))/0xc*(-parseInt(_0x39d9fa(0x1fb))/0xd);if(_0x285601===_0x26ba98)break;else _0x2c0185['push'](_0x2c0185['shift']());}catch(_0x576243){_0x2c0185['push'](_0x2c0185['shift']());}}}(_0x1e5b,0x33582));import{BalloonPanelView as _0xd97f0a,ButtonView as _0x53f213,clickOutsideHandler as _0xb7579c,FileDialogButtonView as _0x5d0e9f,IconView as _0xf2b7d4,View as _0x5c5759}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x4e693f,IconDocument as _0x5baeda,IconDocumentOutline as _0x17490f,IconDropdownArrow as _0x1b8916,IconLink as _0x3c3bb6,IconPaperClip as _0x509479}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x36aaac}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x5ffd88}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x5b307c}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x1a0bfc}from'../../../aicore/utils/common-translations.js';function _0x20f6(_0x500f39,_0x39cae4){const _0x1e5bee=_0x1e5b();return _0x20f6=function(_0x20f663,_0x2b48fc){_0x20f663=_0x20f663-0x175;let _0x33a997=_0x1e5bee[_0x20f663];return _0x33a997;},_0x20f6(_0x500f39,_0x39cae4);}import{AIChatResourcesBalloonView as _0x48750c}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x2a1b80(0x1a3),_0x2a1b80(0x1a1),_0x2a1b80(0x188),_0x2a1b80(0x1a0),_0x2a1b80(0x1d7),_0x2a1b80(0x18b)];const po=_0x2a1b80(0x1af),Bo=_0x2a1b80(0x1cf),bo=_0x2a1b80(0x178),To=_0x2a1b80(0x195),Ao=_0x2a1b80(0x196),ko=_0x2a1b80(0x205),Eo=_0x2a1b80(0x1c6),vo=_0x2a1b80(0x202),go=_0x2a1b80(0x19d),Vo=_0x2a1b80(0x1b3),fo=_0x2a1b80(0x18d),Io=_0x2a1b80(0x179),Po=[_0xd97f0a[_0x2a1b80(0x1e2)][_0x2a1b80(0x1ee)],_0xd97f0a[_0x2a1b80(0x1e2)][_0x2a1b80(0x1e7)],_0xd97f0a[_0x2a1b80(0x1e2)][_0x2a1b80(0x1e8)],_0xd97f0a[_0x2a1b80(0x1e2)][_0x2a1b80(0x1a4)],_0xd97f0a[_0x2a1b80(0x1e2)][_0x2a1b80(0x1c3)],_0xd97f0a[_0x2a1b80(0x1e2)][_0x2a1b80(0x1dd)]];export class AIChatContextPanelView extends _0x5c5759{[_0x2a1b80(0x1a2)];[_0x2a1b80(0x17e)]=this[_0x2a1b80(0x1aa)]();[_0x2a1b80(0x1cb)]=this[_0x2a1b80(0x1aa)]();[_0x2a1b80(0x1e0)];[_0x2a1b80(0x1f0)];[_0x2a1b80(0x1d6)];[_0x2a1b80(0x1a6)];[_0x2a1b80(0x176)];[_0x2a1b80(0x19b)];[_0x2a1b80(0x194)];constructor(_0x10b443,_0x157913){const _0x4500d7=_0x2a1b80;super(_0x10b443),this[_0x4500d7(0x194)]=_0x157913,this[_0x4500d7(0x17e)]=this[_0x4500d7(0x1aa)](),this[_0x4500d7(0x1cb)]=this[_0x4500d7(0x1aa)](),this[_0x4500d7(0x1a2)]=this[_0x4500d7(0x185)](_0x10b443),this[_0x4500d7(0x1f0)]=this[_0x4500d7(0x1f6)](_0x10b443),this[_0x4500d7(0x1d6)]=this[_0x4500d7(0x1bc)](_0x10b443),this[_0x4500d7(0x176)]=this[_0x4500d7(0x1da)](_0x10b443,_0x157913);const _0x49a7a6={'cssClasses':{'showMoreButton':Vo,'showMoreBalloon':fo,'overflowContainer':go,'controlsButton':vo}};this[_0x4500d7(0x1e0)]=new _0x5b307c(_0x10b443,this[_0x4500d7(0x17e)],_0x49a7a6,this[_0x4500d7(0x194)],this),this[_0x4500d7(0x19b)]={'buttonView':this[_0x4500d7(0x1a2)],'balloonView':this[_0x4500d7(0x1f0)],'hideMethod':this[_0x4500d7(0x1b5)][_0x4500d7(0x1df)](this),'showMethod':this[_0x4500d7(0x1e1)][_0x4500d7(0x1df)](this)},this[_0x4500d7(0x1e9)](),this[_0x4500d7(0x18a)]();}[_0x2a1b80(0x1fe)](){const _0x2841a1=_0x2a1b80;super[_0x2841a1(0x1fe)](),this[_0x2841a1(0x180)](),this[_0x2841a1(0x1e0)][_0x2841a1(0x1ed)](this[_0x2841a1(0x181)]),this[_0x2841a1(0x1e0)][_0x2841a1(0x187)]();}[_0x2a1b80(0x1b7)](){const _0x390068=_0x2a1b80;super[_0x390068(0x1b7)](),this[_0x390068(0x1e0)][_0x390068(0x1b7)](),this[_0x390068(0x176)][_0x390068(0x1b7)]();}[_0x2a1b80(0x1c5)](_0x9037dd,_0x503845){const _0x36eb0e=_0x2a1b80,_0x245813=this[_0x36eb0e(0x1fa)](_0x9037dd,_0x36eb0e(0x1a8),!0x0,_0x503845);this[_0x36eb0e(0x1ec)](_0x245813,this[_0x36eb0e(0x17e)]),this[_0x36eb0e(0x1e0)][_0x36eb0e(0x187)]();}[_0x2a1b80(0x1d7)](_0x2eee89){const _0x3f1f9c=_0x2a1b80;this[_0x3f1f9c(0x1fc)](_0x2eee89,this[_0x3f1f9c(0x17e)]),this[_0x3f1f9c(0x1fc)](_0x2eee89,this[_0x3f1f9c(0x1e0)][_0x3f1f9c(0x184)]),this[_0x3f1f9c(0x1e0)][_0x3f1f9c(0x187)]();}[_0x2a1b80(0x1db)](_0xd7f09c,_0xd6e52){const _0x35cdfe=_0x2a1b80;let _0x551e6f=this[_0x35cdfe(0x17e)][_0x35cdfe(0x1ef)](_0x133960=>_0x133960['id']===_0xd7f09c);_0x551e6f||(_0x551e6f=this[_0x35cdfe(0x1e0)][_0x35cdfe(0x184)][_0x35cdfe(0x1ef)](_0x5398f7=>_0x5398f7['id']===_0xd7f09c)),_0x551e6f&&(_0x551e6f[_0x35cdfe(0x1eb)]=_0xd6e52);}[_0x2a1b80(0x1bd)](_0x32bc75){const _0x4f3c35=_0x2a1b80;this[_0x4f3c35(0x1cb)][_0x4f3c35(0x1c1)]();for(const _0x4f4b0a of _0x32bc75){const _0x32ed8c=this[_0x4f3c35(0x1fa)](_0x4f4b0a,_0x4f3c35(0x1b2),!0x1,!0x1);this[_0x4f3c35(0x1ec)](_0x32ed8c,this[_0x4f3c35(0x1cb)]);}}[_0x2a1b80(0x1d4)](){const _0x30a8f3=_0x2a1b80;this[_0x30a8f3(0x17e)][_0x30a8f3(0x1c1)](),this[_0x30a8f3(0x1e0)][_0x30a8f3(0x1c1)]();}[_0x2a1b80(0x191)](){const _0x283fd0=_0x2a1b80;this[_0x283fd0(0x1cb)][_0x283fd0(0x1c1)]();}[_0x2a1b80(0x19c)](_0x1c443e,_0x4ef5be,_0x47876d){const _0x238bfb=_0x2a1b80;this[_0x238bfb(0x176)][_0x238bfb(0x19c)](_0x1c443e,_0x4ef5be,_0x47876d);}[_0x2a1b80(0x1b5)](){const _0x476cfd=_0x2a1b80;this[_0x476cfd(0x1ff)](!0x1);}[_0x2a1b80(0x1e1)](){const _0x15e7d7=_0x2a1b80;this[_0x15e7d7(0x1ff)](!0x0);}[_0x2a1b80(0x17f)](){const _0x53eff7=_0x2a1b80;this[_0x53eff7(0x1d6)][_0x53eff7(0x1c7)](),this[_0x53eff7(0x1a2)][_0x53eff7(0x1b6)]=!0x1,this[_0x53eff7(0x1a6)]&&this[_0x53eff7(0x1a6)][_0x53eff7(0x1c1)]();}[_0x2a1b80(0x17c)](){const _0x567c04=_0x2a1b80;this[_0x567c04(0x1d6)][_0x567c04(0x203)](),this[_0x567c04(0x1a2)][_0x567c04(0x1b6)]=!0x0;}[_0x2a1b80(0x1b4)](_0x25bf91){const _0x3c11b0=_0x2a1b80;this[_0x3c11b0(0x176)][_0x3c11b0(0x177)](_0x25bf91),this[_0x3c11b0(0x1a2)][_0x3c11b0(0x1b6)]=!0x0;}[_0x2a1b80(0x1de)](_0x387de9,_0x24287c,_0x790fdc,_0x901129){const _0x1579d3=_0x2a1b80;this[_0x1579d3(0x176)][_0x1579d3(0x1de)](_0x387de9,_0x790fdc,_0x901129);}[_0x2a1b80(0x1f9)](_0x89ce1e){const _0x1232d6=_0x2a1b80;this[_0x1232d6(0x176)][_0x1232d6(0x1f9)](_0x89ce1e),this[_0x1232d6(0x1a2)][_0x1232d6(0x1b6)]=!0x1;}[_0x2a1b80(0x1ca)](_0x4b5351){const _0xfafe49=_0x2a1b80;this[_0xfafe49(0x1c9)](this[_0xfafe49(0x1f0)],this[_0xfafe49(0x1e4)],_0x4b5351),this[_0xfafe49(0x19a)](_0x4b5351);}[_0x2a1b80(0x19a)](_0x100b47){const _0x553366=_0x2a1b80,_0x5e5c03=!_0x100b47[_0x553366(0x1a7)][_0x553366(0x198)]&&_0x100b47[_0x553366(0x1a7)][_0x553366(0x1ac)],_0x9cd169=_0x100b47[_0x553366(0x1e5)][_0x553366(0x1ac)],_0x49f6c1=_0x100b47[_0x553366(0x1d9)][_0x553366(0x1ac)];this[_0x553366(0x1a2)][_0x553366(0x17b)]=_0x5e5c03||_0x9cd169||_0x49f6c1;}[_0x2a1b80(0x1e9)](){const _0x501bd1=_0x2a1b80;this[_0x501bd1(0x1a5)]({'tag':_0x501bd1(0x1c8),'attributes':{'class':[po,_0x501bd1(0x1c2)]},'children':[{'tag':_0x501bd1(0x1c8),'attributes':{'class':Bo},'children':this[_0x501bd1(0x17e)]}]});}[_0x2a1b80(0x18a)](){const _0x333f07=_0x2a1b80;this[_0x333f07(0x1a2)]['on'](_0x333f07(0x1d1),()=>{const _0x598f50=_0x333f07;this[_0x598f50(0x1b8)]();});}[_0x2a1b80(0x185)](_0x19f37d){const _0x10e6ab=_0x2a1b80,_0x4e098e=new _0x53f213(_0x19f37d);return _0x4e098e[_0x10e6ab(0x199)]({'label':_0x1a0bfc(_0x19f37d,_0x10e6ab(0x186)),'class':vo+'\x20'+To,'icon':_0x509479,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x4e098e;}[_0x2a1b80(0x1f6)](_0x3e5995){const _0x1d91da=_0x2a1b80;return this[_0x1d91da(0x206)](_0x3e5995,bo);}[_0x2a1b80(0x1bc)](_0x35c282){const _0x178c1f=_0x2a1b80,_0x33d105=this[_0x178c1f(0x206)](_0x35c282,Ao);return this[_0x178c1f(0x189)](_0x33d105,_0x35c282),_0x33d105;}[_0x2a1b80(0x1da)](_0x53562e,_0x4ec004){const _0x5be9c1=_0x2a1b80;return new _0x48750c(_0x53562e,_0x4ec004,{'onBackToContext':()=>{const _0x4f22b5=_0x20f6;this[_0x4f22b5(0x1e1)](),this[_0x4f22b5(0x1f0)][_0x4f22b5(0x18c)]({'target':this[_0x4f22b5(0x1a2)][_0x4f22b5(0x181)],'limiter':this[_0x4f22b5(0x1d0)](),'positions':Po});},'onResourceSelected':(_0x5c76bc,_0x8d922a)=>{const _0x1ab08a=_0x20f6;this[_0x1ab08a(0x204)](_0x1ab08a(0x1a0),{'source':_0x5c76bc,'resource':_0x8d922a});},'onLoadSourceResources':_0x465279=>{const _0x524b20=_0x20f6;this[_0x524b20(0x204)](_0x524b20(0x18b),_0x465279);},'onBalloonClosed':()=>{const _0x288c16=_0x20f6;this[_0x288c16(0x1a2)][_0x288c16(0x1b6)]=!0x1;},'getLimiterElement':()=>this[_0x5be9c1(0x1d0)](),'getTargetElement':()=>this[_0x5be9c1(0x1a2)][_0x5be9c1(0x181)]});}[_0x2a1b80(0x1d0)](){const _0x54d3f4=_0x2a1b80;return this[_0x54d3f4(0x181)]?.[_0x54d3f4(0x1dc)]('.'+Io)||document[_0x54d3f4(0x197)];}[_0x2a1b80(0x206)](_0xa0ffbb,_0x4ce952){const _0x19f690=_0x2a1b80,_0x458097=new _0xd97f0a(_0xa0ffbb);return _0x458097[_0x19f690(0x1f8)]({'attributes':{'class':_0x4ce952}}),this[_0x19f690(0x194)][_0x19f690(0x1c4)](_0x458097),_0x458097;}[_0x2a1b80(0x1c9)](_0x293821,_0x2ca0eb,_0x15bc06){const _0x249a4c=_0x2a1b80;if(_0x293821[_0x249a4c(0x201)][_0x249a4c(0x1c1)](),!_0x15bc06[_0x249a4c(0x1a7)][_0x249a4c(0x198)]&&_0x15bc06[_0x249a4c(0x1a7)][_0x249a4c(0x1ac)]){const _0x1a4fb3=this[_0x249a4c(0x18e)](_0x2ca0eb,{'label':_0x1a0bfc(_0x2ca0eb,_0x249a4c(0x18f)),'icon':_0x5baeda});_0x1a4fb3['on'](_0x249a4c(0x1d1),()=>{const _0x23832f=_0x249a4c;this[_0x23832f(0x204)](_0x23832f(0x1a3)),this[_0x23832f(0x1b5)]();}),_0x293821[_0x249a4c(0x201)][_0x249a4c(0x1c4)](_0x1a4fb3);}if(_0x15bc06[_0x249a4c(0x1e5)][_0x249a4c(0x1ac)]){const _0x141eb3=this[_0x249a4c(0x18e)](_0x2ca0eb,{'label':_0x1a0bfc(_0x2ca0eb,_0x249a4c(0x1ce)),'icon':_0x3c3bb6});_0x141eb3['on'](_0x249a4c(0x1d1),()=>{const _0x5c7f4f=_0x249a4c;this[_0x5c7f4f(0x1b5)](),this[_0x5c7f4f(0x17c)](),this[_0x5c7f4f(0x1d6)][_0x5c7f4f(0x18c)]({'target':this[_0x5c7f4f(0x1a2)][_0x5c7f4f(0x181)],'limiter':this[_0x5c7f4f(0x1d0)](),'positions':Po}),this[_0x5c7f4f(0x1a6)][_0x5c7f4f(0x1b9)]();}),_0x293821[_0x249a4c(0x201)][_0x249a4c(0x1c4)](_0x141eb3);}if(_0x15bc06[_0x249a4c(0x1d9)][_0x249a4c(0x1ac)]){const _0x35777c=new _0x5d0e9f(_0x2ca0eb);_0x35777c[_0x249a4c(0x199)]({'label':_0x1a0bfc(_0x2ca0eb,_0x249a4c(0x1ea)),'icon':_0x4e693f,'withText':!0x0,'tooltip':!0x0,'class':ko,'allowMultipleFiles':!0x0}),_0x35777c['on'](_0x249a4c(0x1e3),(_0x4c0484,_0x2be06b)=>{const _0x354b9a=_0x249a4c;this[_0x354b9a(0x204)](_0x354b9a(0x1a1),_0x2be06b),this[_0x354b9a(0x1b5)]();}),_0x35777c[_0x249a4c(0x1d2)]=!0x0,_0x293821[_0x249a4c(0x201)][_0x249a4c(0x1c4)](_0x35777c);}for(const _0x41cd4b of _0x15bc06[_0x249a4c(0x1ab)]){const _0x427d56=this[_0x249a4c(0x18e)](_0x2ca0eb,{'label':_0x41cd4b[_0x249a4c(0x182)],'icon':_0x41cd4b[_0x249a4c(0x1b0)]||_0x17490f,'type':_0x249a4c(0x17a)});_0x293821[_0x249a4c(0x201)][_0x249a4c(0x1c4)](_0x427d56),_0x427d56['on'](_0x249a4c(0x1d1),()=>{const _0x5bb7c5=_0x249a4c;this[_0x5bb7c5(0x1b5)](),this[_0x5bb7c5(0x1b4)](_0x41cd4b);});}}[_0x2a1b80(0x189)](_0x260d5a,_0x36d75a){const _0x3811f6=_0x2a1b80;this[_0x3811f6(0x1a6)]=new _0x5ffd88(_0x36d75a),this[_0x3811f6(0x1a6)]['on'](_0x3811f6(0x1bb),(_0x2edd61,_0x4e27c1)=>{const _0x4a2199=_0x3811f6;this[_0x4a2199(0x1d5)](_0x4e27c1);}),this[_0x3811f6(0x1a6)]['on'](_0x3811f6(0x183),()=>{const _0x8538d8=_0x3811f6;this[_0x8538d8(0x17f)](),this[_0x8538d8(0x1e1)](),this[_0x8538d8(0x1f0)][_0x8538d8(0x18c)]({'target':this[_0x8538d8(0x1a2)][_0x8538d8(0x181)],'limiter':this[_0x8538d8(0x1d0)](),'positions':Po});}),this[_0x3811f6(0x1a6)]['on'](_0x3811f6(0x200),()=>{const _0x51b051=_0x3811f6;this[_0x51b051(0x1d6)][_0x51b051(0x193)]&&this[_0x51b051(0x1d6)][_0x51b051(0x18c)]({'target':this[_0x51b051(0x1a2)][_0x51b051(0x181)],'limiter':this[_0x51b051(0x1d0)](),'positions':Po});}),_0x260d5a[_0x3811f6(0x201)][_0x3811f6(0x1c4)](this[_0x3811f6(0x1a6)]);}[_0x2a1b80(0x18e)](_0x4a95b6,_0x28c627){const _0x4170d1=_0x2a1b80,_0x2a2716=_0x4170d1(0x17a)===_0x28c627[_0x4170d1(0x19e)]?new SourcesBalloonButtonView(_0x4a95b6):new _0x53f213(_0x4a95b6);return _0x2a2716[_0x4170d1(0x199)]({'label':_0x28c627[_0x4170d1(0x182)],'icon':_0x28c627[_0x4170d1(0x1b0)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':ko}),_0x2a2716;}[_0x2a1b80(0x180)](){const _0x414004=_0x2a1b80;this[_0x414004(0x17d)](),this[_0x414004(0x1f5)]();}[_0x2a1b80(0x1f5)](){const _0x4da4df=_0x2a1b80;_0xb7579c({'emitter':this[_0x4da4df(0x1d6)],'contextElements':[this[_0x4da4df(0x1d6)][_0x4da4df(0x181)]],'callback':()=>{const _0x478cc3=_0x4da4df;this[_0x478cc3(0x17f)]();},'activator':()=>this[_0x4da4df(0x1d6)][_0x4da4df(0x193)]});}[_0x2a1b80(0x1ff)](_0x563d21){const _0x24d741=_0x2a1b80,_0xed96d6=this[_0x24d741(0x19b)];_0xed96d6[_0x24d741(0x1ba)][_0x24d741(0x1b6)]=_0x563d21,_0x563d21?_0xed96d6[_0x24d741(0x1fd)][_0x24d741(0x203)]():_0xed96d6[_0x24d741(0x1fd)][_0x24d741(0x1c7)]();}[_0x2a1b80(0x17d)](){const _0x487763=_0x2a1b80,{balloonView:_0x31ec94,buttonView:_0x384993,hideMethod:_0xd7771e}=this[_0x487763(0x19b)];_0xb7579c({'emitter':_0x31ec94,'contextElements':[_0x31ec94[_0x487763(0x181)],_0x384993[_0x487763(0x181)]],'callback':()=>{_0xd7771e();},'activator':()=>_0x384993[_0x487763(0x1b6)]&&!this[_0x487763(0x1d6)][_0x487763(0x193)]&&!this[_0x487763(0x176)][_0x487763(0x1f1)]()});}[_0x2a1b80(0x1fa)](_0x4ac952,_0x3b65e7,_0x53b6b1=!0x1,_0x830b05=!0x1){const _0x13431c=_0x2a1b80,_0x4724f2=_0x13431c(0x1b2)===_0x3b65e7||!0x0===_0x4ac952[_0x13431c(0x192)],_0x538925=new _0x36aaac(this[_0x13431c(0x1e4)],_0x4ac952,_0x4724f2,_0x53b6b1,_0x830b05);return _0x4724f2||_0x538925['on'](_0x13431c(0x1ae),()=>{const _0x247828=_0x13431c;this[_0x247828(0x204)](_0x247828(0x1d7),_0x538925['id']);}),_0x538925;}[_0x2a1b80(0x1ec)](_0x231e4a,_0x2307f4){const _0x8bc736=_0x2a1b80;_0x2307f4[_0x8bc736(0x1c4)](_0x231e4a,0x0);}[_0x2a1b80(0x1fc)](_0x49746f,_0x4fa8c7){const _0x486f50=_0x2a1b80,_0x214332=_0x4fa8c7[_0x486f50(0x1ef)](_0x423902=>_0x423902['id']===_0x49746f);_0x214332&&_0x4fa8c7[_0x486f50(0x1f2)](_0x214332);}[_0x2a1b80(0x1b8)](){const _0x55a4e0=_0x2a1b80;this[_0x55a4e0(0x1a2)][_0x55a4e0(0x1b6)]?this[_0x55a4e0(0x1b5)]():(this[_0x55a4e0(0x1e1)](),this[_0x55a4e0(0x1f0)][_0x55a4e0(0x18c)]({'target':this[_0x55a4e0(0x1a2)][_0x55a4e0(0x181)],'limiter':this[_0x55a4e0(0x1d0)](),'positions':Po}));}[_0x2a1b80(0x1d5)](_0x2e5329){const _0xd2f881=_0x2a1b80;this[_0xd2f881(0x1a6)][_0xd2f881(0x1c1)](),this[_0xd2f881(0x17f)](),this[_0xd2f881(0x204)](_0xd2f881(0x188),_0x2e5329);}}export class SourcesBalloonButtonView extends _0x53f213{[_0x2a1b80(0x1f7)];constructor(_0x3c39df){const _0x38cccc=_0x2a1b80;super(_0x3c39df),this[_0x38cccc(0x199)]({'withText':!0x0,'role':_0x38cccc(0x1b1)}),this[_0x38cccc(0x1f7)]=this[_0x38cccc(0x1ad)](),this[_0x38cccc(0x1f8)]({'attributes':{'class':[Eo]}});}[_0x2a1b80(0x1fe)](){const _0x13157e=_0x2a1b80;super[_0x13157e(0x1fe)](),this[_0x13157e(0x175)][_0x13157e(0x1c4)](this[_0x13157e(0x1f7)]);}[_0x2a1b80(0x1ad)](){const _0x27657b=_0x2a1b80,_0x31937e=new _0xf2b7d4();return _0x31937e[_0x27657b(0x201)]=_0x1b8916,_0x31937e[_0x27657b(0x1f8)]({'attributes':{'class':Eo+_0x27657b(0x1be)}}),_0x31937e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0xb5d69b=_0x1d91;function _0x1d91(_0x1e80f6,_0x46931b){const _0x4bdbba=_0x4bdb();return _0x1d91=function(_0x1d91f4,_0x1ec4f7){_0x1d91f4=_0x1d91f4-0x15e;let _0x14cbfc=_0x4bdbba[_0x1d91f4];return _0x14cbfc;},_0x1d91(_0x1e80f6,_0x46931b);}(function(_0x188c2d,_0x42b7c8){const _0x48f645=_0x1d91,_0x781c15=_0x188c2d();while(!![]){try{const _0x8a279e=-parseInt(_0x48f645(0x167))/0x1+-parseInt(_0x48f645(0x15f))/0x2+-parseInt(_0x48f645(0x179))/0x3*(-parseInt(_0x48f645(0x16e))/0x4)+-parseInt(_0x48f645(0x177))/0x5+-parseInt(_0x48f645(0x171))/0x6*(parseInt(_0x48f645(0x172))/0x7)+parseInt(_0x48f645(0x166))/0x8+parseInt(_0x48f645(0x174))/0x9;if(_0x8a279e===_0x42b7c8)break;else _0x781c15['push'](_0x781c15['shift']());}catch(_0x4c67c3){_0x781c15['push'](_0x781c15['shift']());}}}(_0x4bdb,0xdce28));function _0x4bdb(){const _0x368ebc=['ck-ai-chat-controls-loader-icon','ai-chat-controls-loader__cancel-button','_createCancelButtonView','ck-ai-chat-controls-loader-icon-dot','_loaderView','ck-ai-chat-controls-loader-wrapper','53916MEXsjl','AI_CHAT_STOP_GENERATING','ck-ai-chat-controls-loader','6QfjymA','5493082QjsusN','abortPromptStream','18341226LsVpOK','div','fire','7849850atqZNX','setTemplate','369OPwiqY','_createLoaderView','207568XYiFqw','_cancelButtonView','AI_CHAT_IS_WRITING','execute','set','ck-reset_all','locale','9756976WfXfDg','1552229DNrXMP'];_0x4bdb=function(){return _0x368ebc;};return _0x4bdb();}import{ButtonView as _0x1ea2ee,View as _0x510501}from'ckeditor5/src/ui.js';import{IconStop as _0xdf7d69}from'ckeditor5/src/icons.js';import{getTranslation as _0x3d9cff}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x510501{[_0xb5d69b(0x160)];[_0xb5d69b(0x16c)];constructor(_0x4aa64a){const _0x599643=_0xb5d69b;super(_0x4aa64a),this[_0x599643(0x160)]=this[_0x599643(0x16a)](),this[_0x599643(0x16c)]=this[_0x599643(0x15e)](),this[_0x599643(0x178)]({'tag':_0x599643(0x175),'attributes':{'class':['ck',_0x599643(0x16d),_0x599643(0x164)]},'children':[this[_0x599643(0x16c)],this[_0x599643(0x160)]]});}[_0xb5d69b(0x16a)](){const _0x3f7ca5=_0xb5d69b,_0x4d22c4=new _0x1ea2ee(this[_0x3f7ca5(0x165)]);return _0x4d22c4[_0x3f7ca5(0x163)]({'label':_0x3d9cff(this[_0x3f7ca5(0x165)],_0x3f7ca5(0x16f)),'withText':!0x0,'class':_0x3f7ca5(0x169),'icon':_0xdf7d69}),_0x4d22c4['on'](_0x3f7ca5(0x162),()=>{const _0x3a99d2=_0x3f7ca5;this[_0x3a99d2(0x176)](_0x3a99d2(0x173));}),_0x4d22c4;}[_0xb5d69b(0x15e)](){const _0xc73dd9=_0xb5d69b,_0x30740f=new _0x510501(this[_0xc73dd9(0x165)]);return _0x30740f[_0xc73dd9(0x178)]({'tag':_0xc73dd9(0x175),'attributes':{'class':[_0xc73dd9(0x170)]},'children':[{'tag':_0xc73dd9(0x175),'attributes':{'class':[_0xc73dd9(0x168)]},'children':[{'tag':_0xc73dd9(0x175),'attributes':{'class':[_0xc73dd9(0x16b)]}},{'tag':_0xc73dd9(0x175),'attributes':{'class':[_0xc73dd9(0x16b)]}},{'tag':_0xc73dd9(0x175),'attributes':{'class':[_0xc73dd9(0x16b)]}}]},{'text':_0x3d9cff(this[_0xc73dd9(0x165)],_0xc73dd9(0x161))}]}),_0x30740f;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2242ef=_0x1ff3;(function(_0x3d69b0,_0x39090d){const _0x48c78e=_0x1ff3,_0x30d515=_0x3d69b0();while(!![]){try{const _0x92d2f0=parseInt(_0x48c78e(0x1c9))/0x1*(-parseInt(_0x48c78e(0x1c0))/0x2)+parseInt(_0x48c78e(0x20a))/0x3+-parseInt(_0x48c78e(0x213))/0x4*(parseInt(_0x48c78e(0x214))/0x5)+parseInt(_0x48c78e(0x1d6))/0x6+parseInt(_0x48c78e(0x203))/0x7*(-parseInt(_0x48c78e(0x1e9))/0x8)+parseInt(_0x48c78e(0x1db))/0x9*(-parseInt(_0x48c78e(0x202))/0xa)+parseInt(_0x48c78e(0x1f8))/0xb*(parseInt(_0x48c78e(0x217))/0xc);if(_0x92d2f0===_0x39090d)break;else _0x30d515['push'](_0x30d515['shift']());}catch(_0x5887f8){_0x30d515['push'](_0x30d515['shift']());}}}(_0x4fae,0x76c43));import{Collection as _0x3e031e}from'ckeditor5/src/utils.js';import{IconAI as _0x35f4af,IconBulb as _0x29d7ee,IconWeb as _0x38e249}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x19b59e,ButtonLabelView as _0x23afc2,ButtonView as _0x55fa44,createDropdown as _0x37a2c,IconView as _0x36aa5a,UIModel as _0x125c51,View as _0x434618}from'ckeditor5/src/ui.js';import{getTranslation as _0x340a55}from'../../../aicore/utils/common-translations.js';const No=_0x2242ef(0x1eb),go=_0x2242ef(0x1fc),Ho=_0x2242ef(0x212),Mo=_0x2242ef(0x1fe),Lo=_0x2242ef(0x1c7),Do=_0x2242ef(0x210),Wo=_0x2242ef(0x1df),yo='n';function _0x4fae(){const _0x36e28e=['AI_CHAT_ENABLE_REASONING','name','27kbMwSl','AI_CHAT_DISABLE_REASONING','log','capabilities','ck-ai-chat-controls__model-selection__item-capabilities','addMany','length','clear','AI_CHAT_REASONING','set','Commands\x20are\x20not\x20implemented\x20yet.','label','ck-ai-chat-controls__model-name','execute','28568HCUhPV','_modelNameView','ck-ai-chat__prompt-capabilities','isVisible','ck-button__label','_getCapabilityParts','AI_CHAT_CAPABILITIES_YES','span','activeModelId','extendTemplate','_createModelSelectionDropdown','reasoningActive','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','fire','selectModel','22KFQeRD','_createReasoningButton','listenTo','AI_CHAT_CAPABILITIES_NO','ck-ai-chat-controls-button','enableModelSelector','ck-ai-chat-controls__model-selection','ck-hidden','_createWebSearchButton','setReasoning','886220OBxsdG','259pcuOJz','tooltip','_webSearchButton','button','source','_commandsButton','AI_CHAT_COMMANDS','272859hLqium','setModelList','AI_CHAT_SEARCH_WEB','AI_CHAT_ENABLE_WEB_SEARCH','withText','toLowerCase','ck-ai-chat-controls__model-selection__item-description','modelSelectorVisible','ck-ai-chat-controls-button--commands','4gxYgzu','3683955xCbSBl','_createModelNameView','content','6875412EGOSpK','enabled','createCollection','startsWith','activeModelName','AI_CHAT_DISABLE_WEB_SEARCH','bind','modelSelectorEnabled','isOn','locale','setTemplate','text','div','toggleWebSearch','1878itQdZz','setModel','_createCommandsButton','agent','style','webSearch','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','ck-ai-chat-controls__model-selection__item-name','add','112aNCQXg','toggleReasoning','buttonView','description','isEnabled','webSearchActive','setWebSearch','reasoning','_modelSelectionDropdown','_modelSelectionDropdownItems','disableModelSelector','_reasoningButton','menuitemradio','2937384bQehkq','model','bindTemplate'];_0x4fae=function(){return _0x36e28e;};return _0x4fae();}export class AIChatPromptCapabilitiesView extends _0x434618{[_0x2242ef(0x205)];[_0x2242ef(0x1d4)];[_0x2242ef(0x208)];[_0x2242ef(0x1d1)];[_0x2242ef(0x1d2)];[_0x2242ef(0x1ea)];constructor(_0x13f84d){const _0xdfb209=_0x2242ef;super(_0x13f84d),this[_0xdfb209(0x1e4)](_0xdfb209(0x1ce),!0x1),this[_0xdfb209(0x1e4)](_0xdfb209(0x1f4),!0x1),this[_0xdfb209(0x1e4)](_0xdfb209(0x211),!0x0),this[_0xdfb209(0x1e4)](_0xdfb209(0x21e),!0x0),this[_0xdfb209(0x1e4)](_0xdfb209(0x1f1),''),this[_0xdfb209(0x1e4)](_0xdfb209(0x21b),''),this[_0xdfb209(0x1d1)]=this[_0xdfb209(0x1f3)](),this[_0xdfb209(0x1ea)]=this[_0xdfb209(0x215)](),this[_0xdfb209(0x205)]=this[_0xdfb209(0x200)](),this[_0xdfb209(0x1d4)]=this[_0xdfb209(0x1f9)](),this[_0xdfb209(0x208)]=this[_0xdfb209(0x1c2)](),this[_0xdfb209(0x1d1)][_0xdfb209(0x1cb)][_0xdfb209(0x21d)](_0xdfb209(0x1ec))['to'](this,_0xdfb209(0x211),_0x36f61c=>_0x36f61c),this[_0xdfb209(0x1d1)][_0xdfb209(0x1cb)][_0xdfb209(0x21d)](_0xdfb209(0x204))['to'](this,_0xdfb209(0x21e),_0x29cabd=>_0x29cabd?this[_0xdfb209(0x1d1)][_0xdfb209(0x1cb)][_0xdfb209(0x1e6)]:_0x340a55(this[_0xdfb209(0x220)],_0xdfb209(0x1c6))),this[_0xdfb209(0x1d1)][_0xdfb209(0x21d)](_0xdfb209(0x1cd))['to'](this,_0xdfb209(0x21e),_0x4047c4=>_0x4047c4),this[_0xdfb209(0x205)][_0xdfb209(0x21d)](_0xdfb209(0x21f))['to'](this,_0xdfb209(0x1ce),_0xd14fb1=>_0xd14fb1),this[_0xdfb209(0x205)][_0xdfb209(0x21d)](_0xdfb209(0x20e))['to'](this,_0xdfb209(0x211),_0x2301c0=>!_0x2301c0),this[_0xdfb209(0x205)][_0xdfb209(0x21d)](_0xdfb209(0x204))['to'](this,_0xdfb209(0x1ce),_0x5ccd0e=>_0x340a55(this[_0xdfb209(0x220)],_0x5ccd0e?_0xdfb209(0x21c):_0xdfb209(0x20d))),this[_0xdfb209(0x1d4)][_0xdfb209(0x21d)](_0xdfb209(0x21f))['to'](this,_0xdfb209(0x1f4),_0x4d7676=>_0x4d7676),this[_0xdfb209(0x1d4)][_0xdfb209(0x21d)](_0xdfb209(0x20e))['to'](this,_0xdfb209(0x211),_0x582454=>!_0x582454),this[_0xdfb209(0x1d4)][_0xdfb209(0x21d)](_0xdfb209(0x204))['to'](this,_0xdfb209(0x1f4),_0x16b597=>_0x340a55(this[_0xdfb209(0x220)],_0x16b597?_0xdfb209(0x1dc):_0xdfb209(0x1d9))),this[_0xdfb209(0x221)]({'tag':_0xdfb209(0x223),'attributes':{'class':[No]},'children':[this[_0xdfb209(0x1d1)],this[_0xdfb209(0x1ea)],this[_0xdfb209(0x205)],this[_0xdfb209(0x1d4)],this[_0xdfb209(0x208)]]}),this[_0xdfb209(0x1d2)]=new _0x3e031e(),_0x19b59e(this[_0xdfb209(0x1d1)],this[_0xdfb209(0x1d2)]);}[_0x2242ef(0x20b)](_0x14ab35,_0x13ead2){const _0x492ad7=_0x2242ef;if(this[_0x492ad7(0x1e4)](_0x492ad7(0x211),!(_0x13ead2&&_0x14ab35[_0x492ad7(0x1e1)]<=0x1)),this[_0x492ad7(0x1d2)][_0x492ad7(0x1e2)](),_0x14ab35?.[_0x492ad7(0x1e1)])for(const _0x56db86 of _0x14ab35){const _0x3e0f22=new _0x125c51({'label':_0x56db86[_0x492ad7(0x1da)],'withText':!0x0,'role':_0x492ad7(0x1d5),'id':_0x56db86['id'],'model':_0x56db86});_0x3e0f22[_0x492ad7(0x21d)](_0x492ad7(0x21f))['to'](this,_0x492ad7(0x1f1),_0x59e3d8=>_0x59e3d8===_0x56db86['id']),this[_0x492ad7(0x1d2)][_0x492ad7(0x1c8)]({'type':_0x492ad7(0x206),'model':_0x3e0f22,'labelView':new Ms(this[_0x492ad7(0x220)],_0x56db86)});}}[_0x2242ef(0x1cf)](_0x572db0){const _0x85770b=_0x2242ef;this[_0x85770b(0x1e4)](_0x85770b(0x1ce),_0x572db0);}[_0x2242ef(0x201)](_0x4f7dee){const _0x2ae705=_0x2242ef;this[_0x2ae705(0x1e4)](_0x2ae705(0x1f4),_0x4f7dee);}[_0x2242ef(0x1c1)](_0x21718d){const _0x4e4385=_0x2242ef;if(!_0x21718d)return;this[_0x4e4385(0x1f1)]=_0x21718d['id'],this[_0x4e4385(0x21b)]=_0x21718d[_0x4e4385(0x1da)]||_0x21718d['id'],this[_0x4e4385(0x1d1)][_0x4e4385(0x1cb)][_0x4e4385(0x1e4)](_0x4e4385(0x1e6),_0x21718d[_0x4e4385(0x1da)]),this[_0x4e4385(0x1d1)][_0x4e4385(0x1cb)][_0x4e4385(0x1e4)](_0x4e4385(0x204),_0x21718d[_0x4e4385(0x1da)]);const _0x46d17f=_0x21718d[_0x4e4385(0x1de)][_0x4e4385(0x1c5)]?.[_0x4e4385(0x218)]??!0x1;this[_0x4e4385(0x1e4)](_0x4e4385(0x1ce),!0x1),this[_0x4e4385(0x205)][_0x4e4385(0x1e4)](_0x4e4385(0x21f),!0x1),this[_0x4e4385(0x205)][_0x4e4385(0x1e4)](_0x4e4385(0x1cd),_0x46d17f),this[_0x4e4385(0x205)][_0x4e4385(0x1e4)](_0x4e4385(0x1ec),_0x46d17f);const _0x90f404=_0x21718d[_0x4e4385(0x1de)][_0x4e4385(0x1d0)]?.[_0x4e4385(0x218)]??!0x1;this[_0x4e4385(0x1e4)](_0x4e4385(0x1f4),!0x1),this[_0x4e4385(0x1d4)][_0x4e4385(0x1e4)](_0x4e4385(0x21f),!0x1),this[_0x4e4385(0x1d4)][_0x4e4385(0x1e4)](_0x4e4385(0x1cd),_0x90f404),this[_0x4e4385(0x1d4)][_0x4e4385(0x1e4)](_0x4e4385(0x1ec),_0x90f404);}[_0x2242ef(0x1fd)](){const _0x437ea6=_0x2242ef;this[_0x437ea6(0x1e4)](_0x437ea6(0x21e),!0x0),this[_0x437ea6(0x1e4)](_0x437ea6(0x211),!0x0);}[_0x2242ef(0x1d3)](_0x43d6ea){const _0x48c0f4=_0x2242ef;this[_0x48c0f4(0x1e4)](_0x48c0f4(0x21e),!0x1),_0x43d6ea&&this[_0x48c0f4(0x1e4)](_0x48c0f4(0x211),!0x1);}[_0x2242ef(0x200)](){const _0x2c7e8a=_0x2242ef,_0x2be7f2=new _0x55fa44();return _0x2be7f2[_0x2c7e8a(0x1e4)]({'label':_0x340a55(this[_0x2c7e8a(0x220)],_0x2c7e8a(0x20c)),'icon':_0x38e249,'class':go,'isToggleable':!0x0,'tooltipPosition':yo}),_0x2be7f2['on'](_0x2c7e8a(0x1e8),()=>{const _0x3aba47=_0x2c7e8a;this[_0x3aba47(0x1f6)](_0x3aba47(0x1bf));}),_0x2be7f2;}[_0x2242ef(0x1f9)](){const _0x4008c9=_0x2242ef,_0x2d13a5=new _0x55fa44();return _0x2d13a5[_0x4008c9(0x1e4)]({'label':_0x340a55(this[_0x4008c9(0x220)],_0x4008c9(0x1e3)),'icon':_0x29d7ee,'class':go,'isToggleable':!0x0,'tooltipPosition':yo}),_0x2d13a5['on'](_0x4008c9(0x1e8),()=>{const _0x2fe8b8=_0x4008c9;this[_0x2fe8b8(0x1f6)](_0x2fe8b8(0x1ca));}),_0x2d13a5;}[_0x2242ef(0x1c2)](){const _0x5c6fd7=_0x2242ef,_0x2a70dc=new _0x55fa44();return _0x2a70dc[_0x5c6fd7(0x1e4)]({'label':_0x340a55(this[_0x5c6fd7(0x220)],_0x5c6fd7(0x209)),'icon':_0x35f4af,'withText':!0x0,'class':go,'isToggleable':!0x0,'tooltip':_0x340a55(this[_0x5c6fd7(0x220)],_0x5c6fd7(0x209)),'tooltipPosition':yo}),_0x2a70dc[_0x5c6fd7(0x1f2)]({'attributes':{'class':[Ho]}}),_0x2a70dc['on'](_0x5c6fd7(0x1e8),()=>{const _0x14b6b9=_0x5c6fd7;console[_0x14b6b9(0x1dd)](_0x14b6b9(0x1e5)),alert(_0x14b6b9(0x1e5));}),_0x2a70dc;}[_0x2242ef(0x1f3)](){const _0x5d7f17=_0x2242ef,_0x5d7673=_0x37a2c(this[_0x5d7f17(0x220)]);return _0x5d7673[_0x5d7f17(0x1e4)]({'panelPosition':'ne','class':[Mo]}),_0x5d7673[_0x5d7f17(0x1cb)][_0x5d7f17(0x1e4)]({'label':_0x340a55(this[_0x5d7f17(0x220)],_0x5d7f17(0x1f5)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':yo}),this[_0x5d7f17(0x1fa)](_0x5d7673,_0x5d7f17(0x1e8),_0x3206e2=>{const _0x4579d1=_0x5d7f17;this[_0x4579d1(0x1f6)](_0x4579d1(0x1f7),_0x3206e2[_0x4579d1(0x207)][_0x4579d1(0x1d7)]);}),_0x5d7673;}[_0x2242ef(0x215)](){const _0x362342=_0x2242ef,_0x1d427c=new Go(this[_0x362342(0x220)]);return _0x1d427c[_0x362342(0x21d)](_0x362342(0x222))['to'](this,_0x362342(0x21b),_0x53253b=>_0x53253b??''),_0x1d427c[_0x362342(0x21d)](_0x362342(0x1ec))['to'](this,_0x362342(0x211),this,_0x362342(0x21b),(_0x4b73b4,_0x1d1e6b)=>!_0x4b73b4&&!_0x1d1e6b?.[_0x362342(0x20f)]()[_0x362342(0x21a)](_0x362342(0x1c3))),_0x1d427c;}}function _0x1ff3(_0x9e5ffe,_0x558559){const _0x4fae49=_0x4fae();return _0x1ff3=function(_0x1ff363,_0x54f3d5){_0x1ff363=_0x1ff363-0x1bf;let _0x41a100=_0x4fae49[_0x1ff363];return _0x41a100;},_0x1ff3(_0x9e5ffe,_0x558559);}class Ms extends _0x23afc2{constructor(_0x2a05b8,_0x2f1647){const _0x3d9c41=_0x2242ef;super();const _0x376976=this[_0x3d9c41(0x1d8)],_0x5f3bf4=this[_0x3d9c41(0x219)]();this[_0x3d9c41(0x221)]({'tag':_0x3d9c41(0x223),'attributes':{'class':['ck',_0x3d9c41(0x1ed)],'style':_0x376976['to'](_0x3d9c41(0x1c4)),'id':_0x376976['to']('id')},'children':[{'tag':_0x3d9c41(0x223),'attributes':{'class':[Lo]},'children':[{'text':_0x376976['to'](_0x3d9c41(0x222))}]},{'tag':_0x3d9c41(0x223),'attributes':{'class':[Do]},'children':[{'tag':_0x3d9c41(0x1f0),'children':[{'text':_0x2f1647[_0x3d9c41(0x1cc)]}]}]},{'tag':_0x3d9c41(0x223),'attributes':{'class':[Wo]},'children':_0x5f3bf4}]}),_0x5f3bf4[_0x3d9c41(0x1e0)](this[_0x3d9c41(0x1ee)](_0x2a05b8,_0x38e249,_0x3d9c41(0x20c),_0x2f1647[_0x3d9c41(0x1de)][_0x3d9c41(0x1c5)]?.[_0x3d9c41(0x218)]??!0x1)),_0x5f3bf4[_0x3d9c41(0x1e0)](this[_0x3d9c41(0x1ee)](_0x2a05b8,_0x29d7ee,_0x3d9c41(0x1e3),_0x2f1647[_0x3d9c41(0x1de)][_0x3d9c41(0x1d0)]?.[_0x3d9c41(0x218)]??!0x1));}[_0x2242ef(0x1ee)](_0x57de56,_0x2aee58,_0x459592,_0x2d0080){const _0x416e44=_0x2242ef,_0x201fa5=new _0x36aa5a();_0x201fa5[_0x416e44(0x216)]=_0x2aee58;const _0x337ccf=new _0x434618(_0x57de56);_0x337ccf[_0x416e44(0x221)]({'tag':_0x416e44(0x1f0),'children':[{'text':_0x340a55(_0x57de56,_0x459592)+':\x20'}]});const _0x3c76ba=new _0x434618(_0x57de56);return _0x3c76ba[_0x416e44(0x221)]({'tag':_0x416e44(0x1f0),'children':[{'text':_0x340a55(_0x57de56,_0x2d0080?_0x416e44(0x1ef):_0x416e44(0x1fb))}]}),[_0x201fa5,_0x337ccf,_0x3c76ba];}}class Go extends _0x434618{constructor(_0x1b4323){const _0x1277ad=_0x2242ef;super(_0x1b4323),this[_0x1277ad(0x1e4)](_0x1277ad(0x222),void 0x0),this[_0x1277ad(0x1e4)](_0x1277ad(0x1ec),!0x0);const _0x4b4ac6=this[_0x1277ad(0x1d8)];this[_0x1277ad(0x221)]({'tag':_0x1277ad(0x1f0),'attributes':{'class':['ck',_0x1277ad(0x1e7),_0x4b4ac6['if'](_0x1277ad(0x1ec),_0x1277ad(0x1ff),_0xa1d8e5=>!_0xa1d8e5)]},'children':[{'text':_0x4b4ac6['to'](_0x1277ad(0x222))}]});}}
|
|
23
|
+
const _0x568fbf=_0xeb28;(function(_0x190f09,_0x19d67b){const _0x1dea34=_0xeb28,_0xa69c35=_0x190f09();while(!![]){try{const _0x8514fd=-parseInt(_0x1dea34(0x201))/0x1+parseInt(_0x1dea34(0x216))/0x2*(parseInt(_0x1dea34(0x24e))/0x3)+-parseInt(_0x1dea34(0x245))/0x4*(-parseInt(_0x1dea34(0x21a))/0x5)+parseInt(_0x1dea34(0x225))/0x6*(parseInt(_0x1dea34(0x237))/0x7)+-parseInt(_0x1dea34(0x250))/0x8+-parseInt(_0x1dea34(0x23f))/0x9*(parseInt(_0x1dea34(0x23a))/0xa)+parseInt(_0x1dea34(0x206))/0xb*(parseInt(_0x1dea34(0x1f6))/0xc);if(_0x8514fd===_0x19d67b)break;else _0xa69c35['push'](_0xa69c35['shift']());}catch(_0x58a5a5){_0xa69c35['push'](_0xa69c35['shift']());}}}(_0x4466,0xb9c6e));import{Collection as _0x1afed0}from'ckeditor5/src/utils.js';import{IconAI as _0x2cc2fe,IconBulb as _0x408f87,IconWeb as _0x5cad2a}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x4c904c,ButtonLabelView as _0x2429f2,ButtonView as _0x947e8a,createDropdown as _0xc7f222,IconView as _0xf93f4f,UIModel as _0xd809ca,View as _0x1033b4}from'ckeditor5/src/ui.js';import{getTranslation as _0x4b8cb1}from'../../../aicore/utils/common-translations.js';function _0xeb28(_0x6ca4df,_0x9ca6bf){const _0x446642=_0x4466();return _0xeb28=function(_0xeb282f,_0xefa24a){_0xeb282f=_0xeb282f-0x1f4;let _0x397242=_0x446642[_0xeb282f];return _0x397242;},_0xeb28(_0x6ca4df,_0x9ca6bf);}const No=_0x568fbf(0x1fa),vo=_0x568fbf(0x210),Ho=_0x568fbf(0x1f8),Mo=_0x568fbf(0x22d),Lo=_0x568fbf(0x20a),Ro=_0x568fbf(0x20e),Do=_0x568fbf(0x226),Wo='n';export class AIChatPromptCapabilitiesView extends _0x1033b4{[_0x568fbf(0x221)];[_0x568fbf(0x252)];[_0x568fbf(0x24d)];[_0x568fbf(0x227)];[_0x568fbf(0x22e)];[_0x568fbf(0x228)];constructor(_0x27869){const _0x526b84=_0x568fbf;super(_0x27869),this[_0x526b84(0x235)](_0x526b84(0x247),!0x1),this[_0x526b84(0x235)](_0x526b84(0x1f7),!0x1),this[_0x526b84(0x235)](_0x526b84(0x234),!0x0),this[_0x526b84(0x235)](_0x526b84(0x1fd),!0x0),this[_0x526b84(0x235)](_0x526b84(0x21d),''),this[_0x526b84(0x235)](_0x526b84(0x240),''),this[_0x526b84(0x227)]=this[_0x526b84(0x1fb)](),this[_0x526b84(0x228)]=this[_0x526b84(0x241)](),this[_0x526b84(0x221)]=this[_0x526b84(0x24f)](),this[_0x526b84(0x252)]=this[_0x526b84(0x239)](),this[_0x526b84(0x24d)]=this[_0x526b84(0x236)](),this[_0x526b84(0x227)][_0x526b84(0x23c)][_0x526b84(0x24b)](_0x526b84(0x20f))['to'](this,_0x526b84(0x234),_0xd360d9=>_0xd360d9),this[_0x526b84(0x227)][_0x526b84(0x23c)][_0x526b84(0x24b)](_0x526b84(0x255))['to'](this,_0x526b84(0x1fd),_0x1390f5=>_0x1390f5?this[_0x526b84(0x227)][_0x526b84(0x23c)][_0x526b84(0x22b)]:_0x4b8cb1(this[_0x526b84(0x246)],_0x526b84(0x23b))),this[_0x526b84(0x227)][_0x526b84(0x24b)](_0x526b84(0x21e))['to'](this,_0x526b84(0x1fd),_0x24879b=>_0x24879b),this[_0x526b84(0x221)][_0x526b84(0x24b)](_0x526b84(0x233))['to'](this,_0x526b84(0x247),_0x224365=>_0x224365),this[_0x526b84(0x221)][_0x526b84(0x24b)](_0x526b84(0x244))['to'](this,_0x526b84(0x234),_0x392fa5=>!_0x392fa5),this[_0x526b84(0x221)][_0x526b84(0x24b)](_0x526b84(0x255))['to'](this,_0x526b84(0x247),_0x375dc4=>_0x4b8cb1(this[_0x526b84(0x246)],_0x375dc4?_0x526b84(0x23e):_0x526b84(0x22c))),this[_0x526b84(0x252)][_0x526b84(0x24b)](_0x526b84(0x233))['to'](this,_0x526b84(0x1f7),_0x1816ca=>_0x1816ca),this[_0x526b84(0x252)][_0x526b84(0x24b)](_0x526b84(0x244))['to'](this,_0x526b84(0x234),_0x50a652=>!_0x50a652),this[_0x526b84(0x252)][_0x526b84(0x24b)](_0x526b84(0x255))['to'](this,_0x526b84(0x1f7),_0x35c544=>_0x4b8cb1(this[_0x526b84(0x246)],_0x35c544?_0x526b84(0x211):_0x526b84(0x217))),this[_0x526b84(0x248)]({'tag':_0x526b84(0x215),'attributes':{'class':[No]},'children':[this[_0x526b84(0x227)],this[_0x526b84(0x228)],this[_0x526b84(0x221)],this[_0x526b84(0x252)],this[_0x526b84(0x24d)]]}),this[_0x526b84(0x22e)]=new _0x1afed0(),_0x4c904c(this[_0x526b84(0x227)],this[_0x526b84(0x22e)]);}[_0x568fbf(0x214)](_0x11c9b1,_0xdb27a){const _0x3afce0=_0x568fbf;if(this[_0x3afce0(0x235)](_0x3afce0(0x234),!(_0xdb27a&&_0x11c9b1[_0x3afce0(0x220)]<=0x1)),this[_0x3afce0(0x22e)][_0x3afce0(0x21f)](),_0x11c9b1?.[_0x3afce0(0x220)])for(const _0x290603 of _0x11c9b1){const _0x1b8cd9=new _0xd809ca({'label':_0x290603[_0x3afce0(0x254)],'withText':!0x0,'role':_0x3afce0(0x207),'id':_0x290603['id'],'model':_0x290603});_0x1b8cd9[_0x3afce0(0x24b)](_0x3afce0(0x233))['to'](this,_0x3afce0(0x21d),_0x1098ac=>_0x1098ac===_0x290603['id']),this[_0x3afce0(0x22e)][_0x3afce0(0x200)]({'type':_0x3afce0(0x21c),'model':_0x1b8cd9,'labelView':new Ts(this[_0x3afce0(0x246)],_0x290603)});}}[_0x568fbf(0x256)](_0x18e874){const _0xe00a07=_0x568fbf;this[_0xe00a07(0x235)](_0xe00a07(0x247),_0x18e874);}[_0x568fbf(0x224)](_0x24c477){const _0x39b7c5=_0x568fbf;this[_0x39b7c5(0x235)](_0x39b7c5(0x1f7),_0x24c477);}[_0x568fbf(0x203)](_0x4ed216){const _0x5ca631=_0x568fbf;if(!_0x4ed216)return;this[_0x5ca631(0x21d)]=_0x4ed216['id'],this[_0x5ca631(0x240)]=_0x4ed216[_0x5ca631(0x254)]||_0x4ed216['id'],this[_0x5ca631(0x227)][_0x5ca631(0x23c)][_0x5ca631(0x235)](_0x5ca631(0x22b),_0x4ed216[_0x5ca631(0x254)]),this[_0x5ca631(0x227)][_0x5ca631(0x23c)][_0x5ca631(0x235)](_0x5ca631(0x255),_0x4ed216[_0x5ca631(0x254)]);const _0x57b779=_0x4ed216[_0x5ca631(0x243)][_0x5ca631(0x213)]?.[_0x5ca631(0x1fe)]??!0x1;this[_0x5ca631(0x235)](_0x5ca631(0x247),!0x1),this[_0x5ca631(0x221)][_0x5ca631(0x235)](_0x5ca631(0x233),!0x1),this[_0x5ca631(0x221)][_0x5ca631(0x235)](_0x5ca631(0x21e),_0x57b779),this[_0x5ca631(0x221)][_0x5ca631(0x235)](_0x5ca631(0x20f),_0x57b779);const _0x4307e2=_0x4ed216[_0x5ca631(0x243)][_0x5ca631(0x251)]?.[_0x5ca631(0x1fe)]??!0x1;this[_0x5ca631(0x235)](_0x5ca631(0x1f7),!0x1),this[_0x5ca631(0x252)][_0x5ca631(0x235)](_0x5ca631(0x233),!0x1),this[_0x5ca631(0x252)][_0x5ca631(0x235)](_0x5ca631(0x21e),_0x4307e2),this[_0x5ca631(0x252)][_0x5ca631(0x235)](_0x5ca631(0x20f),_0x4307e2);}[_0x568fbf(0x238)](){const _0x2e503f=_0x568fbf;this[_0x2e503f(0x235)](_0x2e503f(0x1fd),!0x0),this[_0x2e503f(0x235)](_0x2e503f(0x234),!0x0);}[_0x568fbf(0x1f9)](_0x5c8d22){const _0x114484=_0x568fbf;this[_0x114484(0x235)](_0x114484(0x1fd),!0x1),_0x5c8d22&&this[_0x114484(0x235)](_0x114484(0x234),!0x1);}[_0x568fbf(0x24f)](){const _0x1610c3=_0x568fbf,_0x3b2998=new _0x947e8a();return _0x3b2998[_0x1610c3(0x235)]({'label':_0x4b8cb1(this[_0x1610c3(0x246)],_0x1610c3(0x232)),'icon':_0x5cad2a,'class':vo,'isToggleable':!0x0,'tooltipPosition':Wo}),_0x3b2998['on'](_0x1610c3(0x231),()=>{const _0x496532=_0x1610c3;this[_0x496532(0x24a)](_0x496532(0x1f4));}),_0x3b2998;}[_0x568fbf(0x239)](){const _0x47fe12=_0x568fbf,_0x54c37c=new _0x947e8a();return _0x54c37c[_0x47fe12(0x235)]({'label':_0x4b8cb1(this[_0x47fe12(0x246)],_0x47fe12(0x257)),'icon':_0x408f87,'class':vo,'isToggleable':!0x0,'tooltipPosition':Wo}),_0x54c37c['on'](_0x47fe12(0x231),()=>{const _0x87f9d0=_0x47fe12;this[_0x87f9d0(0x24a)](_0x87f9d0(0x1ff));}),_0x54c37c;}[_0x568fbf(0x236)](){const _0x3fa89a=_0x568fbf,_0x4264fd=new _0x947e8a();return _0x4264fd[_0x3fa89a(0x235)]({'label':_0x4b8cb1(this[_0x3fa89a(0x246)],_0x3fa89a(0x222)),'icon':_0x2cc2fe,'withText':!0x0,'class':vo,'isToggleable':!0x0,'tooltip':_0x4b8cb1(this[_0x3fa89a(0x246)],_0x3fa89a(0x222)),'tooltipPosition':Wo}),_0x4264fd[_0x3fa89a(0x22f)]({'attributes':{'class':[Ho]}}),_0x4264fd['on'](_0x3fa89a(0x231),()=>{const _0x44c64a=_0x3fa89a;console[_0x44c64a(0x212)](_0x44c64a(0x205)),alert(_0x44c64a(0x205));}),_0x4264fd;}[_0x568fbf(0x1fb)](){const _0x4714f4=_0x568fbf,_0x8a13e7=_0xc7f222(this[_0x4714f4(0x246)]);return _0x8a13e7[_0x4714f4(0x235)]({'panelPosition':'ne','class':[Mo]}),_0x8a13e7[_0x4714f4(0x23c)][_0x4714f4(0x235)]({'label':_0x4b8cb1(this[_0x4714f4(0x246)],_0x4714f4(0x22a)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Wo}),this[_0x4714f4(0x258)](_0x8a13e7,_0x4714f4(0x231),_0x590bc6=>{const _0x536f73=_0x4714f4;this[_0x536f73(0x24a)](_0x536f73(0x204),_0x590bc6[_0x536f73(0x223)][_0x536f73(0x209)]);}),_0x8a13e7;}[_0x568fbf(0x241)](){const _0x359209=_0x568fbf,_0x378b9f=new yo(this[_0x359209(0x246)]);return _0x378b9f[_0x359209(0x24b)](_0x359209(0x253))['to'](this,_0x359209(0x240),_0x168211=>_0x168211??''),_0x378b9f[_0x359209(0x24b)](_0x359209(0x20f))['to'](this,_0x359209(0x234),this,_0x359209(0x240),(_0x3aedd6,_0x5e7a7d)=>!_0x3aedd6&&!_0x5e7a7d?.[_0x359209(0x230)]()[_0x359209(0x218)](_0x359209(0x242))),_0x378b9f;}}function _0x4466(){const _0x4d16b3=['isOn','modelSelectorVisible','set','_createCommandsButton','35ljXzAH','enableModelSelector','_createReasoningButton','6350TAVzxz','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','buttonView','AI_CHAT_CAPABILITIES_YES','AI_CHAT_DISABLE_WEB_SEARCH','8523dDEFxi','activeModelName','_createModelNameView','agent','capabilities','withText','20BQfgdt','locale','webSearchActive','setTemplate','ck-button__label','fire','bind','span','_commandsButton','30LsCJzy','_createWebSearchButton','4573840UfiJbh','reasoning','_reasoningButton','text','name','tooltip','setWebSearch','AI_CHAT_REASONING','listenTo','toggleWebSearch','_getCapabilityParts','60qrmsNG','reasoningActive','ck-ai-chat-controls-button--commands','disableModelSelector','ck-ai-chat__prompt-capabilities','_createModelSelectionDropdown','style','modelSelectorEnabled','enabled','toggleReasoning','add','471543qoaWHV','description','setModel','selectModel','Commands\x20are\x20not\x20implemented\x20yet.','787534vHiHOk','menuitemradio','addMany','model','ck-ai-chat-controls__model-selection__item-name','AI_CHAT_CAPABILITIES_NO','content','bindTemplate','ck-ai-chat-controls__model-selection__item-description','isVisible','ck-ai-chat-controls-button','AI_CHAT_DISABLE_REASONING','log','webSearch','setModelList','div','2218SRBUHH','AI_CHAT_ENABLE_REASONING','startsWith','ck-ai-chat-controls__model-name','741835qmDsRw','createCollection','button','activeModelId','isEnabled','clear','length','_webSearchButton','AI_CHAT_COMMANDS','source','setReasoning','1553598soMutr','ck-ai-chat-controls__model-selection__item-capabilities','_modelSelectionDropdown','_modelNameView','ck-hidden','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','label','AI_CHAT_ENABLE_WEB_SEARCH','ck-ai-chat-controls__model-selection','_modelSelectionDropdownItems','extendTemplate','toLowerCase','execute','AI_CHAT_SEARCH_WEB'];_0x4466=function(){return _0x4d16b3;};return _0x4466();}class Ts extends _0x2429f2{constructor(_0x16b380,_0x3affb8){const _0x394804=_0x568fbf;super();const _0x2f67da=this[_0x394804(0x20d)],_0x586f8e=this[_0x394804(0x21b)]();this[_0x394804(0x248)]({'tag':_0x394804(0x215),'attributes':{'class':['ck',_0x394804(0x249)],'style':_0x2f67da['to'](_0x394804(0x1fc)),'id':_0x2f67da['to']('id')},'children':[{'tag':_0x394804(0x215),'attributes':{'class':[Lo]},'children':[{'text':_0x2f67da['to'](_0x394804(0x253))}]},{'tag':_0x394804(0x215),'attributes':{'class':[Ro]},'children':[{'tag':_0x394804(0x24c),'children':[{'text':_0x3affb8[_0x394804(0x202)]}]}]},{'tag':_0x394804(0x215),'attributes':{'class':[Do]},'children':_0x586f8e}]}),_0x586f8e[_0x394804(0x208)](this[_0x394804(0x1f5)](_0x16b380,_0x5cad2a,_0x394804(0x232),_0x3affb8[_0x394804(0x243)][_0x394804(0x213)]?.[_0x394804(0x1fe)]??!0x1)),_0x586f8e[_0x394804(0x208)](this[_0x394804(0x1f5)](_0x16b380,_0x408f87,_0x394804(0x257),_0x3affb8[_0x394804(0x243)][_0x394804(0x251)]?.[_0x394804(0x1fe)]??!0x1));}[_0x568fbf(0x1f5)](_0x47280b,_0x47d6a7,_0x2d6587,_0x2951f0){const _0x2f4988=_0x568fbf,_0x41e126=new _0xf93f4f();_0x41e126[_0x2f4988(0x20c)]=_0x47d6a7;const _0x1a0390=new _0x1033b4(_0x47280b);_0x1a0390[_0x2f4988(0x248)]({'tag':_0x2f4988(0x24c),'children':[{'text':_0x4b8cb1(_0x47280b,_0x2d6587)+':\x20'}]});const _0x442635=new _0x1033b4(_0x47280b);return _0x442635[_0x2f4988(0x248)]({'tag':_0x2f4988(0x24c),'children':[{'text':_0x4b8cb1(_0x47280b,_0x2951f0?_0x2f4988(0x23d):_0x2f4988(0x20b))}]}),[_0x41e126,_0x1a0390,_0x442635];}}class yo extends _0x1033b4{constructor(_0x5e0036){const _0x4bbd6e=_0x568fbf;super(_0x5e0036),this[_0x4bbd6e(0x235)](_0x4bbd6e(0x253),void 0x0),this[_0x4bbd6e(0x235)](_0x4bbd6e(0x20f),!0x0);const _0x25608f=this[_0x4bbd6e(0x20d)];this[_0x4bbd6e(0x248)]({'tag':_0x4bbd6e(0x24c),'attributes':{'class':['ck',_0x4bbd6e(0x219),_0x25608f['if'](_0x4bbd6e(0x20f),_0x4bbd6e(0x229),_0x708eaa=>!_0x708eaa)]},'children':[{'text':_0x25608f['to'](_0x4bbd6e(0x253))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b0ff3=_0x5cca;(function(_0x530cfb,_0x562ef9){const _0x32ca8f=_0x5cca,_0x68b726=_0x530cfb();while(!![]){try{const _0x17b54a=-parseInt(_0x32ca8f(0x212))/0x1*(parseInt(_0x32ca8f(0x224))/0x2)+parseInt(_0x32ca8f(0x225))/0x3*(-parseInt(_0x32ca8f(0x20a))/0x4)+-parseInt(_0x32ca8f(0x1f7))/0x5+-parseInt(_0x32ca8f(0x20f))/0x6*(-parseInt(_0x32ca8f(0x1f4))/0x7)+-parseInt(_0x32ca8f(0x22e))/0x8+parseInt(_0x32ca8f(0x1fe))/0x9+parseInt(_0x32ca8f(0x20d))/0xa;if(_0x17b54a===_0x562ef9)break;else _0x68b726['push'](_0x68b726['shift']());}catch(_0x361884){_0x68b726['push'](_0x68b726['shift']());}}}(_0x23d9,0xb6bee));import{IconSubmit as _0x2c17cd}from'ckeditor5/src/icons.js';import{ButtonView as _0x5d2e73,AutocompleteView as _0x2f237d,createLabeledTextarea as _0x3896db}from'ckeditor5/src/ui.js';function _0x5cca(_0x3a333b,_0x55796a){const _0x23d9f7=_0x23d9();return _0x5cca=function(_0x5cca5f,_0x479bf3){_0x5cca5f=_0x5cca5f-0x1f4;let _0x5c5db4=_0x23d9f7[_0x5cca5f];return _0x5c5db4;},_0x5cca(_0x3a333b,_0x55796a);}import{global as _0x2c5e28,isVisible as _0x19dbe4,Rect as _0x536464,ResizeObserver as _0x45c33c}from'ckeditor5/src/utils.js';import{getTranslation as _0x38758a}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x5ba0ab}from'./aichatpromptsuggestionslistview.js';import{escape as _0x322687}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x2f237d{[_0x4b0ff3(0x1f5)];static [_0x4b0ff3(0x214)]=0x1;static [_0x4b0ff3(0x216)]=0xc;[_0x4b0ff3(0x206)];[_0x4b0ff3(0x1f6)];constructor(_0x21b4ce,_0x42349f){const _0x1875d4=_0x4b0ff3;super(_0x21b4ce,{'queryView':{'label':'','creator':_0x3896db,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x5ba0ab(_0x21b4ce),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x1875d4(0x21c)](_0x1875d4(0x203),!0x0),this[_0x1875d4(0x21c)](_0x1875d4(0x221),!0x1),this[_0x1875d4(0x206)]=_0x42349f,this[_0x1875d4(0x1f6)]=null,this[_0x1875d4(0x201)][_0x1875d4(0x222)][_0x1875d4(0x204)]=AIChatPromptInputView[_0x1875d4(0x214)],this[_0x1875d4(0x201)][_0x1875d4(0x222)][_0x1875d4(0x22f)]=AIChatPromptInputView[_0x1875d4(0x216)],this[_0x1875d4(0x201)][_0x1875d4(0x233)][_0x1875d4(0x217)](this[_0x1875d4(0x206)]),this[_0x1875d4(0x227)](),this[_0x1875d4(0x232)]({'attributes':{'class':['ck',_0x1875d4(0x205)]}}),this[_0x1875d4(0x1f5)]=this[_0x1875d4(0x210)](),this[_0x1875d4(0x1f5)][_0x1875d4(0x208)](_0x1875d4(0x229))['to'](this,_0x1875d4(0x203),this,_0x1875d4(0x221),(_0x551e95,_0x513c90)=>!_0x551e95&&!_0x513c90),this[_0x1875d4(0x223)][_0x1875d4(0x217)](this[_0x1875d4(0x1f5)]);}[_0x4b0ff3(0x1fb)](){const _0x15c1f7=_0x4b0ff3;super[_0x15c1f7(0x1fb)](),this[_0x15c1f7(0x201)][_0x15c1f7(0x233)][_0x15c1f7(0x217)](this[_0x15c1f7(0x1f5)]),this[_0x15c1f7(0x211)][_0x15c1f7(0x21c)](_0x15c1f7(0x219),(_0x28afdb,_0x176ebf)=>{const _0xf7dd15=_0x15c1f7;this[_0xf7dd15(0x221)]||this[_0xf7dd15(0x203)]||_0x28afdb[_0xf7dd15(0x231)]==this[_0xf7dd15(0x201)][_0xf7dd15(0x222)][_0xf7dd15(0x220)]&&(this[_0xf7dd15(0x22a)](),_0x176ebf());}),this[_0x15c1f7(0x201)][_0x15c1f7(0x222)]['on'](_0x15c1f7(0x21d),()=>{const _0x586c6f=_0x15c1f7;this[_0x586c6f(0x203)]=''===this[_0x586c6f(0x201)][_0x586c6f(0x222)][_0x586c6f(0x220)][_0x586c6f(0x209)]?.[_0x586c6f(0x213)]();});}[_0x4b0ff3(0x230)](){const _0x3433df=_0x4b0ff3;super[_0x3433df(0x230)](),this[_0x3433df(0x1f6)]&&this[_0x3433df(0x1f6)][_0x3433df(0x230)]();}[_0x4b0ff3(0x22a)](){const _0x2ab4ed=_0x4b0ff3,_0x484b14=this[_0x2ab4ed(0x201)][_0x2ab4ed(0x222)][_0x2ab4ed(0x220)][_0x2ab4ed(0x209)]?.[_0x2ab4ed(0x213)]();if(!_0x484b14)return this[_0x2ab4ed(0x201)][_0x2ab4ed(0x22c)]=_0x38758a(this[_0x2ab4ed(0x215)],_0x2ab4ed(0x20b)),void(this[_0x2ab4ed(0x201)][_0x2ab4ed(0x222)][_0x2ab4ed(0x234)]=!0x0);this[_0x2ab4ed(0x201)][_0x2ab4ed(0x222)][_0x2ab4ed(0x234)]=!0x1;const _0x3e2173=_0x322687(_0x484b14);this[_0x2ab4ed(0x1fc)](_0x2ab4ed(0x21b),_0x3e2173),this[_0x2ab4ed(0x201)][_0x2ab4ed(0x222)][_0x2ab4ed(0x22b)]();}[_0x4b0ff3(0x1fa)](_0x53c1ac){const _0x216b41=_0x4b0ff3;this[_0x216b41(0x201)][_0x216b41(0x222)][_0x216b41(0x21c)](_0x216b41(0x202),_0x53c1ac);}[_0x4b0ff3(0x210)](){const _0x1d6cc3=_0x4b0ff3,_0x342e14=new _0x5d2e73(this[_0x1d6cc3(0x215)]);return _0x342e14[_0x1d6cc3(0x21c)]({'icon':_0x2c17cd,'label':_0x38758a(this[_0x1d6cc3(0x215)],_0x1d6cc3(0x21e)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x1d6cc3(0x22d),'isEnabled':!0x1}),_0x342e14['on'](_0x1d6cc3(0x20e),()=>{const _0x2d40ee=_0x1d6cc3;this[_0x2d40ee(0x22a)]();}),_0x342e14;}[_0x4b0ff3(0x207)](_0x1ca7d8){const _0x12048d=_0x4b0ff3;this[_0x12048d(0x221)]=_0x1ca7d8;}[_0x4b0ff3(0x227)](){const _0xbf62a3=_0x4b0ff3,_0x27ac75=this[_0xbf62a3(0x215)],_0x18028a=()=>{const _0x3233ed=_0xbf62a3;_0x2c5e28[_0x3233ed(0x1ff)][_0x3233ed(0x218)](()=>{const _0x4e5d93=_0x3233ed;if(_0x19dbe4(this[_0x4e5d93(0x220)])){const _0xa0444b=new _0x536464(this[_0x4e5d93(0x201)][_0x4e5d93(0x222)][_0x4e5d93(0x220)]),_0x124ef9=new _0x536464(this[_0x4e5d93(0x206)][_0x4e5d93(0x220)]),_0xd075c0=_0xa0444b[_0x4e5d93(0x20c)],_0x23c3e0=_0x4e5d93(0x1fd)===_0x27ac75[_0x4e5d93(0x1f8)]?_0x4e5d93(0x226):_0x4e5d93(0x200);_0xa0444b[_0x4e5d93(0x228)]();const _0x86d52e=_0xd075c0-_0xa0444b[_0x4e5d93(0x20c)]+0x1;this[_0x4e5d93(0x206)][_0x4e5d93(0x220)][_0x4e5d93(0x1f9)][_0x23c3e0]=_0x4e5d93(0x21f)+(_0xd075c0-_0x124ef9[_0x4e5d93(0x20c)]-_0x86d52e)+_0x4e5d93(0x21a);}});};this[_0xbf62a3(0x201)][_0xbf62a3(0x222)]['on'](_0xbf62a3(0x21d),_0x18028a),this['on'](_0xbf62a3(0x1fb),()=>{const _0x2e79e4=_0xbf62a3;_0x18028a(),this[_0x2e79e4(0x1f6)]=new _0x45c33c(this[_0x2e79e4(0x201)][_0x2e79e4(0x222)][_0x2e79e4(0x220)],()=>{_0x18028a();});});}}function _0x23d9(){const _0x236a10=['extendTemplate','fieldWrapperChildren','hasError','91YlEsJH','submitButtonView','_queryViewResizeObserver','6668310RPWRQp','uiLanguageDirection','style','setPlaceholderText','render','fire','rtl','9471807nScvHQ','window','left','queryView','placeholder','isEmpty','minRows','ck-ai-chat__prompt-input','_addContextButtonView','setIsUploadInProgress','bind','value','1243876fDtxOD','AI_CHAT_PROMPT_EMPTY_ERROR','width','21780770dJDiId','execute','666876WtPtVg','_createSubmitButton','keystrokes','2tykHaV','trim','MIN_ROWS','locale','MAX_ROWS','add','requestAnimationFrame','enter','px\x20-\x20var(--ck-spacing-tiny))','sendUserMessage','set','update','AI_CHAT_LABEL_SUBMIT','calc(','element','isUploadInProgress','fieldView','focusableChildren','432010paCqUO','9nMegkG','right','_setUpAddContextButtonPositioning','excludeScrollbarsAndBorders','isEnabled','submit','reset','errorText','ck-ai-chat__prompt-submit-button','9826344VvYnnG','maxRows','destroy','target'];_0x23d9=function(){return _0x236a10;};return _0x23d9();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x428bc3=_0xe611;(function(_0x2e7d72,_0x2cbac5){const _0x1ea22d=_0xe611,_0x3d56b0=_0x2e7d72();while(!![]){try{const _0x396e87=-parseInt(_0x1ea22d(0x105))/0x1+-parseInt(_0x1ea22d(0x10c))/0x2+parseInt(_0x1ea22d(0x10b))/0x3*(-parseInt(_0x1ea22d(0x10f))/0x4)+-parseInt(_0x1ea22d(0x107))/0x5*(parseInt(_0x1ea22d(0x102))/0x6)+parseInt(_0x1ea22d(0x10a))/0x7+parseInt(_0x1ea22d(0x10d))/0x8*(-parseInt(_0x1ea22d(0x108))/0x9)+-parseInt(_0x1ea22d(0x109))/0xa*(-parseInt(_0x1ea22d(0x104))/0xb);if(_0x396e87===_0x2cbac5)break;else _0x3d56b0['push'](_0x3d56b0['shift']());}catch(_0x4fdee4){_0x3d56b0['push'](_0x3d56b0['shift']());}}}(_0x536c,0x9b1c2));function _0xe611(_0x5de038,_0x42da96){const _0x536cc9=_0x536c();return _0xe611=function(_0xe6117b,_0x508492){_0xe6117b=_0xe6117b-0x102;let _0x5d8eb6=_0x536cc9[_0xe6117b];return _0x5d8eb6;},_0xe611(_0x5de038,_0x42da96);}import{ListView as _0x355f65}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x355f65{[_0x428bc3(0x106)](){const _0x3d73a1=_0x428bc3;let _0x5b669d=0x0;for(const _0x49ccd4 of this[_0x3d73a1(0x103)])_0x5b669d+=_0x49ccd4[_0x3d73a1(0x103)][_0x3d73a1(0x10e)];return{'resultsCount':_0x5b669d,'totalItemsCount':_0x5b669d};}}function _0x536c(){const _0x560c6e=['2514ykLKmC','items','88JnOfkQ','1078944tBKSqK','filter','6485kwwMve','3499065EjThoo','4565620GFwYix','7383894apqeZL','6WAvFnK','1967026VTTMgM','16GXIkvw','length','1377076BDdCVk'];_0x536c=function(){return _0x560c6e;};return _0x536c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1233(_0x59c6c1,_0x1bae5f){const _0x102673=_0x1026();return _0x1233=function(_0x12333a,_0x2bc1c3){_0x12333a=_0x12333a-0x198;let _0x5623a0=_0x102673[_0x12333a];return _0x5623a0;},_0x1233(_0x59c6c1,_0x1bae5f);}const _0x16dbf3=_0x1233;(function(_0x1e06c3,_0x54bf17){const _0x24ddcc=_0x1233,_0x2fffa3=_0x1e06c3();while(!![]){try{const _0x4c0f43=parseInt(_0x24ddcc(0x19a))/0x1+parseInt(_0x24ddcc(0x1c3))/0x2+-parseInt(_0x24ddcc(0x1c2))/0x3*(-parseInt(_0x24ddcc(0x1a7))/0x4)+parseInt(_0x24ddcc(0x198))/0x5*(-parseInt(_0x24ddcc(0x1a1))/0x6)+-parseInt(_0x24ddcc(0x1af))/0x7*(parseInt(_0x24ddcc(0x1b0))/0x8)+parseInt(_0x24ddcc(0x1ba))/0x9+-parseInt(_0x24ddcc(0x1ac))/0xa;if(_0x4c0f43===_0x54bf17)break;else _0x2fffa3['push'](_0x2fffa3['shift']());}catch(_0x27733c){_0x2fffa3['push'](_0x2fffa3['shift']());}}}(_0x1026,0x344ce));import{HighlightedTextView as _0x2680ed,IconView as _0x377670,ListItemView as _0x1c8265}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x24a264}from'es-toolkit/compat';function _0x1026(){const _0x551311=['ck-hidden','_iconView','_updateIcon','span','6KQEYAD','extendTemplate','ck-ai-chat-resources__item--in-context','type','isVisible','URL','10228osmkSw','set','render','text','ck-ai-chat-resources__item__icon','5576640IzJyIW','TEXT','FILE','1093253qTLeTy','8VLqaGT','content','resource','_titleView','isInContext','_createTitleView','setTemplate','DOCUMENT','execute','div','3575259VJzeJN','updateResourceState','ck-ai-chat-resources__item-title','label','_createIconView','bindTemplate','highlightText','ck-ai-chat-resources__item','501tkBNUz','417254rGSTJD','1383630DtYZyz','getResourceIcon','171894XIcUYe','_setupTemplate','trim'];_0x1026=function(){return _0x551311;};return _0x1026();}import{AIContextItemType as _0x38b44d}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x159058,IconCheck as _0x3f8512,IconDocument as _0xab1b32,IconDocumentOutline as _0x1f2089,IconLink as _0x285984}from'@ckeditor/ckeditor5-icons';const Rr=_0x16dbf3(0x1c1),Tr=_0x16dbf3(0x1a3),Ar=_0x16dbf3(0x1bc),Er=_0x16dbf3(0x1ab);export class AIChatResourceListItemView extends _0x1c8265{[_0x16dbf3(0x1b2)];[_0x16dbf3(0x1b3)];[_0x16dbf3(0x19e)];constructor(_0x13747d,_0x58bf06){const _0x52c26e=_0x16dbf3;super(_0x13747d),this[_0x52c26e(0x1b2)]=_0x58bf06,this[_0x52c26e(0x1a8)](_0x52c26e(0x1b4),!!_0x58bf06[_0x52c26e(0x1b4)]),this[_0x52c26e(0x1b3)]=this[_0x52c26e(0x1b5)](),this[_0x52c26e(0x19e)]=this[_0x52c26e(0x1be)](),this[_0x52c26e(0x19b)]();}[_0x16dbf3(0x1a9)](){const _0x329d7e=_0x16dbf3;super[_0x329d7e(0x1a9)]();}[_0x16dbf3(0x199)](_0x523a76){const _0x93ecb7=_0x16dbf3;if(_0x523a76[_0x93ecb7(0x1b4)])return _0x3f8512;switch(_0x523a76[_0x93ecb7(0x1a4)]){case _0x38b44d[_0x93ecb7(0x1b7)]:return _0xab1b32;case _0x38b44d[_0x93ecb7(0x1a6)]:return _0x285984;case _0x38b44d[_0x93ecb7(0x1ae)]:case _0x38b44d[_0x93ecb7(0x1ad)]:return _0x159058;default:return _0x1f2089;}}[_0x16dbf3(0x1c0)](_0x35b00f){const _0x22662e=_0x16dbf3;if(!_0x35b00f||''===_0x35b00f[_0x22662e(0x19c)]())return void this[_0x22662e(0x1b3)][_0x22662e(0x1c0)](null);const _0x234d0d=new RegExp(_0x24a264(_0x35b00f),'gi');this[_0x22662e(0x1b3)][_0x22662e(0x1c0)](_0x234d0d);}[_0x16dbf3(0x1bb)](_0x5f0af2){const _0x234b46=_0x16dbf3;this[_0x234b46(0x1b2)][_0x234b46(0x1b4)]=_0x5f0af2,this[_0x234b46(0x1b4)]=_0x5f0af2,this[_0x234b46(0x19f)]();}[_0x16dbf3(0x1b5)](){const _0x2a704e=_0x16dbf3,_0x2648cf=new _0x2680ed();return _0x2648cf[_0x2a704e(0x1aa)]=this[_0x2a704e(0x1b2)][_0x2a704e(0x1bd)],_0x2648cf[_0x2a704e(0x1a2)]({'tag':_0x2a704e(0x1a0),'attributes':{'class':[Ar]}}),_0x2648cf;}[_0x16dbf3(0x1be)](){const _0x56dd2c=_0x16dbf3,_0x5b0102=new _0x377670();return _0x5b0102[_0x56dd2c(0x1b1)]=this[_0x56dd2c(0x199)](this[_0x56dd2c(0x1b2)]),_0x5b0102;}[_0x16dbf3(0x19b)](){const _0x2b3e3f=_0x16dbf3,_0x5046cb=this[_0x2b3e3f(0x1bf)];this[_0x2b3e3f(0x1b6)]({'tag':_0x2b3e3f(0x1b9),'attributes':{'class':[Rr,_0x5046cb['if'](_0x2b3e3f(0x1a5),_0x2b3e3f(0x19d),_0x350765=>!_0x350765),_0x5046cb['if'](_0x2b3e3f(0x1b4),Tr)]},'children':[{'tag':_0x2b3e3f(0x1b9),'attributes':{'class':[Er]},'children':[this[_0x2b3e3f(0x19e)]]},this[_0x2b3e3f(0x1b3)]],'on':{'click':_0x5046cb['to'](_0x2b3e3f(0x1b8))}});}[_0x16dbf3(0x19f)](){const _0xcb259b=_0x16dbf3;this[_0xcb259b(0x19e)][_0xcb259b(0x1b1)]=this[_0xcb259b(0x199)](this[_0xcb259b(0x1b2)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xee422b=_0x55f3;(function(_0x477c93,_0xaf5ea1){const _0x2a53b7=_0x55f3,_0x4d80b9=_0x477c93();while(!![]){try{const _0x69ecd4=parseInt(_0x2a53b7(0x137))/0x1*(parseInt(_0x2a53b7(0x131))/0x2)+parseInt(_0x2a53b7(0x125))/0x3*(parseInt(_0x2a53b7(0x110))/0x4)+parseInt(_0x2a53b7(0x123))/0x5+parseInt(_0x2a53b7(0x143))/0x6+parseInt(_0x2a53b7(0x13c))/0x7*(-parseInt(_0x2a53b7(0x136))/0x8)+-parseInt(_0x2a53b7(0x10f))/0x9*(-parseInt(_0x2a53b7(0x12a))/0xa)+parseInt(_0x2a53b7(0x148))/0xb*(-parseInt(_0x2a53b7(0x129))/0xc);if(_0x69ecd4===_0xaf5ea1)break;else _0x4d80b9['push'](_0x4d80b9['shift']());}catch(_0x501ec6){_0x4d80b9['push'](_0x4d80b9['shift']());}}}(_0x13fc,0x59583));import{BalloonPanelView as _0x4171b9,ButtonView as _0x3731aa,clickOutsideHandler as _0x33870e,FormHeaderView as _0x5095c8}from'ckeditor5/src/ui.js';function _0x13fc(){const _0x1a04f0=['delete','clear','pin','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','444922aYQKRq','_setupSingleResourceBalloonClickOutsideHandler','content','ck-button-icon\x20ck-button-back','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','2856DWKaEC','2coHpPx','resource','set','ck-ai-chat-context-controls__source-balloon-panel','get','3157sVzEAj','getTargetElement','_createBalloonHeader','showSourceResourcesBalloon','element','_config','destroy','3430410HzKnCg','values','onLoadSourceResources','execute','_locale','3577409sFlRvc','closeSourceResourceBalloon','children','2637eIZyXp','32winFTK','source','getLimiterElement','populateSourceResourceBalloon','_sourceResourceBalloons','onBalloonClosed','_createSourceResourceBalloonPanel','_createBalloonResourcesView','updateResourceState','loadSourceResources','onBackToContext','setResources','_addSourceResourceContent','isVisible','onResourceSelected','_getResourcesViewFromBalloon','extendTemplate','show','label','2885840bXwFij','add','131367rnJamR','hide','_bodyCollection','isAnyResourceBalloonVisible','72DnCEuZ','18230sZnjhp','_createBackButton','addResourceToContext'];_0x13fc=function(){return _0x1a04f0;};return _0x13fc();}function _0x55f3(_0x3ffe90,_0x43eb02){const _0x13fc01=_0x13fc();return _0x55f3=function(_0x55f3a6,_0x34a822){_0x55f3a6=_0x55f3a6-0x10e;let _0x48aea8=_0x13fc01[_0x55f3a6];return _0x48aea8;},_0x55f3(_0x3ffe90,_0x43eb02);}import{IconPreviousArrow as _0x531ccc}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2c1179}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x501d5c}from'./aichatresourcesview.js';const Or=_0xee422b(0x13a),Hr=_0xee422b(0x134),Fr=_0xee422b(0x135);export class AIChatResourcesBalloonView{[_0xee422b(0x114)]=new Map();[_0xee422b(0x127)];[_0xee422b(0x147)];[_0xee422b(0x141)];constructor(_0x48ad1a,_0x3cfa82,_0x40347d){const _0x1a47e3=_0xee422b;this[_0x1a47e3(0x147)]=_0x48ad1a,this[_0x1a47e3(0x127)]=_0x3cfa82,this[_0x1a47e3(0x141)]=_0x40347d;}[_0xee422b(0x13f)](_0x2ba663){const _0x280d9f=_0xee422b;let _0x29604d=this[_0x280d9f(0x114)][_0x280d9f(0x13b)](_0x2ba663['id']);_0x29604d||(_0x29604d=this[_0x280d9f(0x116)](),this[_0x280d9f(0x114)][_0x280d9f(0x139)](_0x2ba663['id'],_0x29604d),this[_0x280d9f(0x132)](_0x29604d)),this[_0x280d9f(0x11c)](_0x29604d,_0x2ba663),_0x29604d[_0x280d9f(0x121)]();const _0x55a511=this[_0x280d9f(0x141)][_0x280d9f(0x13d)]();_0x55a511&&_0x29604d[_0x280d9f(0x12f)]({'target':_0x55a511,'limiter':this[_0x280d9f(0x141)][_0x280d9f(0x112)]()});}[_0xee422b(0x113)](_0x4b4268,_0x5a7675,_0x2b5d64){const _0x3554e5=_0xee422b,_0x1fc274=this[_0x3554e5(0x114)][_0x3554e5(0x13b)](_0x4b4268);if(!_0x1fc274)return;const _0x355834=this[_0x3554e5(0x11f)](_0x1fc274);_0x355834&&_0x355834[_0x3554e5(0x11b)](_0x5a7675,_0x2b5d64);}[_0xee422b(0x149)](_0x18daa5){const _0x51ce5d=_0xee422b,_0x1c4a57=this[_0x51ce5d(0x114)][_0x51ce5d(0x13b)](_0x18daa5);_0x1c4a57&&requestAnimationFrame(()=>{const _0x30d347=_0x51ce5d;_0x1c4a57[_0x30d347(0x126)](),this[_0x30d347(0x114)][_0x30d347(0x12d)](_0x18daa5),this[_0x30d347(0x141)][_0x30d347(0x115)]();});}[_0xee422b(0x128)](){const _0x219f38=_0xee422b;for(const _0x179c13 of this[_0x219f38(0x114)][_0x219f38(0x144)]())if(_0x179c13[_0x219f38(0x11d)])return!0x0;return!0x1;}[_0xee422b(0x118)](_0x4f994a,_0x5f2c9a,_0x19d622){const _0x998f33=_0xee422b,_0x492666=this[_0x998f33(0x114)][_0x998f33(0x13b)](_0x4f994a);if(!_0x492666||!_0x492666[_0x998f33(0x11d)])return;const _0x14207f=this[_0x998f33(0x141)][_0x998f33(0x13d)]();if(!_0x14207f)return;_0x492666[_0x998f33(0x12f)]({'target':_0x14207f,'limiter':this[_0x998f33(0x141)][_0x998f33(0x112)]()});const _0x4399c8=this[_0x998f33(0x11f)](_0x492666);_0x4399c8&&_0x4399c8[_0x998f33(0x118)](_0x5f2c9a,_0x19d622);}[_0xee422b(0x142)](){const _0x404161=_0xee422b;for(const _0x19e341 of this[_0x404161(0x114)][_0x404161(0x144)]())_0x19e341[_0x404161(0x142)]();this[_0x404161(0x114)][_0x404161(0x12e)]();}[_0xee422b(0x116)](){const _0x291880=_0xee422b,_0x5d874b=new _0x4171b9(this[_0x291880(0x147)]);return _0x5d874b[_0x291880(0x120)]({'attributes':{'class':Or}}),this[_0x291880(0x127)][_0x291880(0x124)](_0x5d874b),_0x5d874b;}[_0xee422b(0x11c)](_0x37dedf,_0x34411a){const _0x24e1b8=_0xee422b;_0x37dedf[_0x24e1b8(0x133)][_0x24e1b8(0x12e)]();const _0x11cb3d=this[_0x24e1b8(0x13e)](_0x37dedf,_0x34411a);_0x37dedf[_0x24e1b8(0x133)][_0x24e1b8(0x124)](_0x11cb3d);const _0x45740e=this[_0x24e1b8(0x117)](_0x34411a);_0x37dedf[_0x24e1b8(0x133)][_0x24e1b8(0x124)](_0x45740e);}[_0xee422b(0x13e)](_0x2afbad,_0x183be7){const _0x47a22c=_0xee422b,_0x33e20e=this[_0x47a22c(0x12b)](_0x2afbad),_0x51dcfb=new _0x5095c8(this[_0x47a22c(0x147)],{'label':_0x183be7[_0x47a22c(0x122)],'class':Fr});return _0x51dcfb[_0x47a22c(0x10e)][_0x47a22c(0x124)](_0x33e20e,0x0),_0x51dcfb;}[_0xee422b(0x12b)](_0x34f296){const _0x3a9bfd=_0xee422b,_0x409a8f=new _0x3731aa(this[_0x3a9bfd(0x147)]);return _0x409a8f[_0x3a9bfd(0x139)]({'icon':_0x531ccc,'tooltip':_0x2c1179(this[_0x3a9bfd(0x147)],_0x3a9bfd(0x130)),'tooltipPosition':'n','class':Hr}),_0x409a8f['on'](_0x3a9bfd(0x146),()=>{const _0x223b45=_0x3a9bfd;_0x34f296[_0x223b45(0x126)](),this[_0x223b45(0x141)][_0x223b45(0x11a)]();}),_0x409a8f;}[_0xee422b(0x117)](_0x5652c0){const _0x1ae005=_0xee422b,_0x1867f8=new _0x501d5c(this[_0x1ae005(0x147)],_0x5652c0);return _0x1867f8['on'](_0x1ae005(0x119),(_0x431997,_0x3e86f7)=>{const _0x47346a=_0x1ae005;this[_0x47346a(0x141)][_0x47346a(0x145)](_0x3e86f7);}),_0x1867f8['on'](_0x1ae005(0x12c),(_0x349c02,_0x37afd2)=>{const _0x1b0904=_0x1ae005;this[_0x1b0904(0x141)][_0x1b0904(0x11e)](_0x37afd2[_0x1b0904(0x111)],_0x37afd2[_0x1b0904(0x138)]),this[_0x1b0904(0x149)](_0x5652c0['id']);}),_0x1867f8;}[_0xee422b(0x11f)](_0x3186a0){const _0xb54e21=_0xee422b,_0xe3ef26=_0x3186a0[_0xb54e21(0x133)][_0xb54e21(0x13b)](0x1);return _0xe3ef26 instanceof _0x501d5c?_0xe3ef26:null;}[_0xee422b(0x132)](_0x3d81b5){const _0x2cf5de=_0xee422b;_0x33870e({'emitter':_0x3d81b5,'contextElements':[_0x3d81b5[_0x2cf5de(0x140)]],'callback':()=>{const _0x1d0578=_0x2cf5de;_0x3d81b5[_0x1d0578(0x126)](),this[_0x1d0578(0x141)][_0x1d0578(0x115)]();},'activator':()=>_0x3d81b5[_0x2cf5de(0x11d)]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20c90f=_0x4f8c;(function(_0xda969d,_0xed7fb7){const _0x4da83c=_0x4f8c,_0x2e7cd8=_0xda969d();while(!![]){try{const _0x7ff140=parseInt(_0x4da83c(0x16c))/0x1+parseInt(_0x4da83c(0x167))/0x2*(-parseInt(_0x4da83c(0x163))/0x3)+-parseInt(_0x4da83c(0x15e))/0x4+-parseInt(_0x4da83c(0x15b))/0x5*(parseInt(_0x4da83c(0x164))/0x6)+parseInt(_0x4da83c(0x166))/0x7+-parseInt(_0x4da83c(0x16d))/0x8*(parseInt(_0x4da83c(0x15c))/0x9)+parseInt(_0x4da83c(0x165))/0xa;if(_0x7ff140===_0xed7fb7)break;else _0x2e7cd8['push'](_0x2e7cd8['shift']());}catch(_0x360a2f){_0x2e7cd8['push'](_0x2e7cd8['shift']());}}}(_0x727a,0x4f82b));function _0x4f8c(_0x545c95,_0x501fd1){const _0x727a4a=_0x727a();return _0x4f8c=function(_0x4f8c3b,_0x58d7ce){_0x4f8c3b=_0x4f8c3b-0x158;let _0x1b0197=_0x727a4a[_0x4f8c3b];return _0x1b0197;},_0x4f8c(_0x545c95,_0x501fd1);}import{ListView as _0x1f27dd}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x36a3b6}from'./aichatresourcelistitemview.js';const sc=_0x20c90f(0x158);export class AIChatContextResourcesListView extends _0x1f27dd{[_0x20c90f(0x178)];constructor(_0x2ac345,_0x8854d3){const _0x185db2=_0x20c90f;super(_0x2ac345),this[_0x185db2(0x178)]=_0x8854d3,this[_0x185db2(0x175)]({'attributes':{'class':[sc]}});}[_0x20c90f(0x170)](_0x268425,_0x44af8e){const _0x1dcf23=_0x20c90f;this[_0x1dcf23(0x159)][_0x1dcf23(0x162)]();let _0x5ab71b=_0x268425;if(this[_0x1dcf23(0x178)][_0x1dcf23(0x176)]&&_0x44af8e&&''!==_0x44af8e[_0x1dcf23(0x174)]()){const _0x3a54eb=new RegExp(_0x44af8e[_0x1dcf23(0x173)](/[.*+?^${}()|[\]\\]/g,_0x1dcf23(0x16a)),'gi');_0x5ab71b=_0x268425[_0x1dcf23(0x15f)](_0x6485f0=>_0x3a54eb[_0x1dcf23(0x171)](_0x6485f0[_0x1dcf23(0x161)]));}for(const _0x18fe76 of _0x5ab71b){const _0x2c0107=new _0x36a3b6(this[_0x1dcf23(0x169)],_0x18fe76);_0x2c0107['on'](_0x1dcf23(0x160),()=>{const _0x5925f2=_0x1dcf23;this[_0x5925f2(0x16b)](this[_0x5925f2(0x178)],_0x18fe76);}),this[_0x1dcf23(0x159)][_0x1dcf23(0x16f)](_0x2c0107);}this[_0x1dcf23(0x178)][_0x1dcf23(0x176)]&&this[_0x1dcf23(0x168)](_0x44af8e);}[_0x20c90f(0x168)](_0x1dadfd){const _0x507a87=_0x20c90f;this[_0x507a87(0x178)][_0x507a87(0x176)]&&this[_0x507a87(0x159)][_0x507a87(0x177)](_0x3ba7c7=>{const _0xc8d06=_0x507a87;_0x3ba7c7[_0xc8d06(0x168)](_0x1dadfd);});}[_0x20c90f(0x172)](_0x1c48b2,_0x215501){const _0x776a2b=_0x20c90f;for(const _0x314ca4 of this[_0x776a2b(0x159)]){const _0xa1d606=_0x314ca4;_0xa1d606[_0x776a2b(0x16e)]['id']===_0x1c48b2&&_0xa1d606[_0x776a2b(0x172)](_0x215501);}}[_0x20c90f(0x16b)](_0x192938,_0x2ea504){const _0x253cae=_0x20c90f;this[_0x253cae(0x15d)](_0x253cae(0x15a),{'source':_0x192938,'resource':_0x2ea504});}}function _0x727a(){const _0x3848df=['18YKqvQE','fire','2593084teYUiN','filter','execute','label','clear','6MhMwmn','156672CaZBmK','20158800hgsXOZ','809662sKEZxM','616570fEqEgJ','highlightText','locale','\x5c$&','_handleResourceSelection','296580buyYtY','1052584awvJxf','resource','add','setResources','test','updateResourceState','replace','trim','extendTemplate','useDefaultFiltering','forEach','_source','ck-ai-chat-resources__list','items','addResourceToContext','110xEtEkD'];_0x727a=function(){return _0x3848df;};return _0x727a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x18513c,IconView as _0x34b3f7,LabeledFieldView as th,createLabeledInputText as _0x4b1424}from'ckeditor5/src/ui.js';import{IconLoupe as _0x82b206,IconCancel as _0x5ce12f}from'ckeditor5/src/icons.js';import{getTranslation as _0x3c73fd}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends th{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x73f847){const t=_0x73f847['t'],_0x5766f2={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x4b1424,'label':_0x3c73fd(_0x73f847,'AI_CHAT_SEARCH_RESOURCES')};super(_0x73f847,_0x5766f2['creator']),this['label']=_0x5766f2['label'],this['_viewConfig']=_0x5766f2,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x73f847,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x5e383b){this['fire']('search',_0x5e383b);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x34b3f7(),this['iconView']['content']=_0x82b206,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x15ff7f,t){this['resetButtonView']=new _0x18513c(_0x15ff7f),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x5ce12f,'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',_0x3b92b4=>!_0x3b92b4),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);}}
|