@ckeditor/ckeditor5-ai 47.4.0-alpha.1 → 47.4.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/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/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/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/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.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/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/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.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/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/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x348208=_0xf51f;function _0xf51f(_0x432470,_0x53cb71){const _0x3e8542=_0x3e85();return _0xf51f=function(_0xf51f3f,_0x2f9e7f){_0xf51f3f=_0xf51f3f-0x19a;let _0x5730ae=_0x3e8542[_0xf51f3f];return _0x5730ae;},_0xf51f(_0x432470,_0x53cb71);}(function(_0x4c5b8f,_0x5c7a41){const _0x464b76=_0xf51f,_0x58424e=_0x4c5b8f();while(!![]){try{const _0x2f4748=-parseInt(_0x464b76(0x1dc))/0x1*(-parseInt(_0x464b76(0x1ba))/0x2)+parseInt(_0x464b76(0x1a1))/0x3+parseInt(_0x464b76(0x1bd))/0x4*(parseInt(_0x464b76(0x1b1))/0x5)+parseInt(_0x464b76(0x1d0))/0x6+parseInt(_0x464b76(0x1b3))/0x7*(parseInt(_0x464b76(0x1a0))/0x8)+-parseInt(_0x464b76(0x1d6))/0x9*(parseInt(_0x464b76(0x1d1))/0xa)+-parseInt(_0x464b76(0x1d7))/0xb;if(_0x2f4748===_0x5c7a41)break;else _0x58424e['push'](_0x58424e['shift']());}catch(_0x34b376){_0x58424e['push'](_0x58424e['shift']());}}}(_0x3e85,0x4f7f2));import{ButtonView as _0x24c2b2,IconView as _0x597881}from'ckeditor5/src/ui.js';import{IconClose as _0x1db0d3,IconDocument as _0x309671,IconFileUpload as _0x4b9e31,IconLink as _0x55cf73,IconSelection as _0x162163}from'@ckeditor/ckeditor5-icons';function _0x3e85(){const _0x1470bb=['remove','_createTemplateAttributes','span','_createLoaderIcon','ck-ai-chat-context-chip__label','length','15798xBweyj','tooltip','removeEventListener','335556ASyCvx','removeContextItemChip','_initializeProperties','execute','set','ck-ai-chat-context-chip_new-chip','element','setTemplate','isLoading','isVisible','ck-ai-chat-context-controls__chip-tooltip','_setupRemoveButtonEvent','label','_handleAnimationEndOnce','_createTemplateChildren','locale','bind','ck-ai-chat-context-chip','ck-ai-chat-context-chip_document','1955706lfzrIO','4388880DoEkOO','ck-ai-chat-context-chip__type-icon','slice','bindTemplate','_createRemoveButton','9ElVPhd','11888756uRCEMj','_createIconView','readonly','webkitAnimationEnd','_createLabelElement','69PeIwJD','type','fire','uiId','_isAnimationOnEnterEnabled','lastIndexOf','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','16DWtXhG','840615EcNuar','ck-ai-chat-context-chip_wide','ck-hidden','content','_setupTemplate','addEventListener','document','classList','small','disableAnimationOnEnter','add','render','selection','animationend','itemType','div','15DlgLiK','extendTemplate','1548568yvJHLh'];_0x3e85=function(){return _0x1470bb;};return _0x3e85();}import{getTranslation as _0x59a000}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x33bae3}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x4b9e31,'document':_0x309671,'web-resource':_0x55cf73,'text':_0x4b9e31,'selection':_0x162163},bn=_0x348208(0x1ce),wn=_0x348208(0x1a2),Tn=_0x348208(0x1cf),En=_0x348208(0x1b8),fn=_0x348208(0x1d2),An=_0x348208(0x1c7),Cn='n';export class AIChatContextItemButtonView extends _0x24c2b2{constructor(_0x5117af,_0x14aae5,_0x34f3df,_0x2ee7b0,_0x393cd1=!0x1){const _0xb428d1=_0x348208;super(_0x5117af),this[_0xb428d1(0x19d)]=_0x2ee7b0,this[_0xb428d1(0x1bf)](_0x14aae5,_0x34f3df,_0x393cd1),this[_0xb428d1(0x1a5)]();}[_0x348208(0x1ac)](){const _0x2934db=_0x348208;super[_0x2934db(0x1ac)](),this[_0x2934db(0x19d)]&&this[_0x2934db(0x1c3)]&&(this[_0x2934db(0x1c3)][_0x2934db(0x1a8)][_0x2934db(0x1ab)](_0x2934db(0x1c2)),this[_0x2934db(0x1ca)](this[_0x2934db(0x1c3)],()=>{const _0x266341=_0x2934db;this[_0x266341(0x1c3)]&&this[_0x266341(0x1c3)][_0x266341(0x1a8)][_0x266341(0x1b4)](_0x266341(0x1c2));}));}[_0x348208(0x1aa)](){const _0x593b2d=_0x348208;this[_0x593b2d(0x19d)]=!0x1,this[_0x593b2d(0x1c3)]&&this[_0x593b2d(0x1c3)][_0x593b2d(0x1a8)][_0x593b2d(0x1b4)](_0x593b2d(0x1c2));}[_0x348208(0x1bf)](_0x18d1e0,_0xba3634,_0x2a2240){const _0x407f1b=_0x348208;this[_0x407f1b(0x1c1)](_0x407f1b(0x1c9),_0x18d1e0[_0x407f1b(0x1c9)]),this[_0x407f1b(0x1c1)](_0x407f1b(0x1bb),!0x0),this[_0x407f1b(0x1c1)](_0x407f1b(0x1af),_0x18d1e0[_0x407f1b(0x19a)]),this[_0x407f1b(0x1c1)]('id',_0x18d1e0[_0x407f1b(0x19c)]),this[_0x407f1b(0x1c1)](_0x407f1b(0x1d9),_0xba3634),this[_0x407f1b(0x1c1)](_0x407f1b(0x1c5),_0x2a2240);}[_0x348208(0x1a5)](){const _0x4464a4=_0x348208,_0x1e3080=this[_0x4464a4(0x1d8)](),_0x33dedd=this[_0x4464a4(0x1d5)](),_0x360219=this[_0x4464a4(0x1d4)];this[_0x4464a4(0x1c4)]({'tag':_0x4464a4(0x1b0),'attributes':this[_0x4464a4(0x1b5)](_0x360219),'children':this[_0x4464a4(0x1cb)](_0x1e3080,_0x33dedd,_0x360219)});}[_0x348208(0x1b5)](_0x1daa1e){const _0x2b1f9b=_0x348208;return{'class':[bn,_0x1daa1e['if'](_0x2b1f9b(0x1af),Tn,_0x1a8b15=>_0x2b1f9b(0x1a7)==_0x1a8b15),_0x1daa1e['if'](_0x2b1f9b(0x1af),wn,_0x4a9cc0=>_0x2b1f9b(0x1ad)==_0x4a9cc0)],'data-cke-tooltip-text':_0x1daa1e['to'](_0x2b1f9b(0x1c9),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x348208(0x1cb)](_0x15a7a1,_0x3b5f66,_0x244661){const _0x10e255=_0x348208,_0x43a202=this[_0x10e255(0x1db)](_0x244661),_0x1ea701=this[_0x10e255(0x1b7)]();return this[_0x10e255(0x1d9)]?[_0x15a7a1,_0x43a202]:[_0x15a7a1,_0x1ea701,_0x43a202,_0x3b5f66];}[_0x348208(0x1db)](_0x5dd5fb){const _0x46fe63=_0x348208;return{'tag':_0x46fe63(0x1b6),'attributes':{'class':En},'children':[{'text':_0x5dd5fb['to'](_0x46fe63(0x1c9))}]};}[_0x348208(0x1d5)](){const _0x28891d=_0x348208,_0x5d27a0=new _0x24c2b2(this[_0x28891d(0x1cc)]);return _0x5d27a0[_0x28891d(0x1c1)]({'label':_0x59a000(this[_0x28891d(0x1cc)],_0x28891d(0x19f)),'icon':_0x1db0d3}),this[_0x28891d(0x1c8)](_0x5d27a0),_0x5d27a0;}[_0x348208(0x1c8)](_0x56b6ed){const _0x183185=_0x348208;_0x56b6ed['on'](_0x183185(0x1c0),()=>{const _0x470e5b=_0x183185;this[_0x470e5b(0x19b)](_0x470e5b(0x1be),this['id']);});}[_0x348208(0x1d8)](){const _0x506f7f=_0x348208,_0x2c8a20=this[_0x506f7f(0x1d4)],_0x19f325=new _0x597881();return _0x19f325[_0x506f7f(0x1a4)]=xn[this[_0x506f7f(0x1af)]],_0x19f325[_0x506f7f(0x1b2)]({'attributes':{'class':[fn,_0x2c8a20['if'](_0x506f7f(0x1c5),_0x506f7f(0x1a3),_0x3e823a=>_0x3e823a)]}}),_0x19f325;}[_0x348208(0x1ca)](_0x1f0176,_0x3898c2){const _0x41c879=_0x348208;if(!_0x1f0176)return;const _0xb57e7b=()=>{const _0x3f9e32=_0xf51f;_0x3898c2(),_0x1f0176[_0x3f9e32(0x1bc)](_0x3f9e32(0x1ae),_0xb57e7b),_0x1f0176[_0x3f9e32(0x1bc)](_0x3f9e32(0x1da),_0xb57e7b);};_0x1f0176[_0x41c879(0x1a6)](_0x41c879(0x1ae),_0xb57e7b),_0x1f0176[_0x41c879(0x1a6)](_0x41c879(0x1da),_0xb57e7b);}[_0x348208(0x1b7)](){const _0x93e567=_0x348208,_0x16ec5f=new _0x33bae3(_0x93e567(0x1a9));return _0x16ec5f[_0x93e567(0x1cd)](_0x93e567(0x1c6))['to'](this,_0x93e567(0x1c5),_0x3b6961=>_0x3b6961),_0x16ec5f;}}function In(_0x51f577){const _0x954d31=_0x348208;if(!_0x51f577)return _0x51f577;if(_0x51f577[_0x954d31(0x1b9)]<=0x78)return _0x51f577;const _0x1af08e=_0x51f577[_0x954d31(0x1d3)](0x0,0x78),_0x130562=_0x1af08e[_0x954d31(0x19e)]('\x20');return(_0x130562>0x0?_0x1af08e[_0x954d31(0x1d3)](0x0,_0x130562):_0x1af08e)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x26a8(){const _0x2fd6ee=['div','6uenSlE','ck-ai-chat-context-controls__url-form','shift+tab','add','ck-labeled-field-view_empty','focus','execute','AI_CHAT_CONTEXT_URL_PLACEHOLDER','tab','confirmButton','locale','13XLZZqJ','AI_CHAT_CONTEXT_URL_INVALID_ERROR','_createConfirmButton','_focusables','input','cancel','_isValidUrl','form','63055eiTbZW','AI_CHAT_CONTEXT_URL_LABEL','urlInputField','11IfLelt','listenTo','createCollection','getValue','clear','ck-button-icon','element','forEach','setTemplate','AI_CHAT_CONTEXT_URL_ADD_URL','_setupKeystrokes','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','render','clearError','29844gERTip','1968472HPFUVv','fire','backButton','_createBackButton','_updateConfirmButtonState','errorText','isEnabled','destroy','_handleSubmit','set','value','focusTracker','_setupEventHandlers','keystrokes','_createUrlInputField','stop','trim','140119fhlygz','16epEroh','setError','1022319pFIMTr','submit','children','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','2762230cbQmqx','refreshBalloon','submitUrl','ck-button-icon\x20ck-button-back','ck-ai-chat-context-controls__url-input-section','fieldView','length','69804qUCDCy','focusCycler','_setupTemplate','esc'];_0x26a8=function(){return _0x2fd6ee;};return _0x26a8();}const _0x312e2b=_0x1e30;function _0x1e30(_0x4fa152,_0x567ef6){const _0x26a894=_0x26a8();return _0x1e30=function(_0x1e30d7,_0x5e3d19){_0x1e30d7=_0x1e30d7-0x81;let _0x5b1a40=_0x26a894[_0x1e30d7];return _0x5b1a40;},_0x1e30(_0x4fa152,_0x567ef6);}(function(_0x24a055,_0x1afe1d){const _0x20080a=_0x1e30,_0x5da3b4=_0x24a055();while(!![]){try{const _0xa16be5=parseInt(_0x20080a(0xca))/0x1*(parseInt(_0x20080a(0x9a))/0x2)+-parseInt(_0x20080a(0xba))/0x3*(-parseInt(_0x20080a(0xad))/0x4)+parseInt(_0x20080a(0x88))/0x5*(parseInt(_0x20080a(0xbf))/0x6)+-parseInt(_0x20080a(0xac))/0x7+-parseInt(_0x20080a(0x9b))/0x8+-parseInt(_0x20080a(0xaf))/0x9+parseInt(_0x20080a(0xb3))/0xa*(parseInt(_0x20080a(0x8b))/0xb);if(_0xa16be5===_0x1afe1d)break;else _0x5da3b4['push'](_0x5da3b4['shift']());}catch(_0x14110b){_0x5da3b4['push'](_0x5da3b4['shift']());}}}(_0x26a8,0x2fe81));import{FocusTracker as _0x5dc94e,KeystrokeHandler as _0x59f56c}from'ckeditor5/src/utils.js';import{ButtonView as _0x5dfb50,FocusCycler as _0x2e8294,LabeledFieldView as _0x120256,View as _0x30dd4e,FormHeaderView as _0x1d6de9,createLabeledInputText as _0x2d30ce,submitHandler as _0x3c51d2}from'ckeditor5/src/ui.js';import{IconCheck as _0xd13433,IconPreviousArrow as _0x42326c}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x48090a}from'../../../aicore/utils/common-translations.js';const ch=_0x312e2b(0xc0),nh=_0x312e2b(0xb7);export class AIChatContextPanelUrlInputView extends _0x30dd4e{[_0x312e2b(0xa6)];[_0x312e2b(0xa8)];[_0x312e2b(0x83)];[_0x312e2b(0xbb)];[_0x312e2b(0x8a)];[_0x312e2b(0x9d)];[_0x312e2b(0xc8)];constructor(_0x53ba62){const _0x2cc116=_0x312e2b;super(_0x53ba62),this[_0x2cc116(0xa6)]=new _0x5dc94e(),this[_0x2cc116(0xa8)]=new _0x59f56c(),this[_0x2cc116(0x9d)]=this[_0x2cc116(0x9e)](),this[_0x2cc116(0x8a)]=this[_0x2cc116(0xa9)](),this[_0x2cc116(0xc8)]=this[_0x2cc116(0x82)](),this[_0x2cc116(0x83)]=this[_0x2cc116(0x8d)]([this[_0x2cc116(0x9d)],this[_0x2cc116(0x8a)],this[_0x2cc116(0xc8)]]),this[_0x2cc116(0xbb)]=new _0x2e8294({'focusables':this[_0x2cc116(0x83)],'focusTracker':this[_0x2cc116(0xa6)],'keystrokeHandler':this[_0x2cc116(0xa8)],'actions':{'focusPrevious':_0x2cc116(0xc1),'focusNext':_0x2cc116(0xc7)}}),this[_0x2cc116(0xbc)](),this[_0x2cc116(0xa7)](),this[_0x2cc116(0x95)]();}[_0x312e2b(0x98)](){const _0x4c3af8=_0x312e2b;super[_0x4c3af8(0x98)](),this[_0x4c3af8(0x83)][_0x4c3af8(0x92)](_0x16118b=>{const _0x54c895=_0x4c3af8;this[_0x54c895(0xa6)][_0x54c895(0xc2)](_0x16118b[_0x54c895(0x91)]),this[_0x54c895(0xa8)][_0x54c895(0x8c)](_0x16118b[_0x54c895(0x91)]);}),_0x3c51d2({'view':this}),this[_0x4c3af8(0xc4)]();}[_0x312e2b(0xa2)](){const _0x329cfa=_0x312e2b;super[_0x329cfa(0xa2)](),this[_0x329cfa(0xa6)][_0x329cfa(0xa2)](),this[_0x329cfa(0xa8)][_0x329cfa(0xa2)]();}[_0x312e2b(0xc4)](){const _0x304f0e=_0x312e2b;this[_0x304f0e(0x8a)][_0x304f0e(0xc4)]();}[_0x312e2b(0x8e)](){const _0x139b10=_0x312e2b;return this[_0x139b10(0x8a)][_0x139b10(0xb8)][_0x139b10(0x91)]?.[_0x139b10(0xa5)]?.[_0x139b10(0xab)]()||'';}[_0x312e2b(0x8f)](){const _0x5b2efc=_0x312e2b;this[_0x5b2efc(0x8a)][_0x5b2efc(0xb8)][_0x5b2efc(0x91)][_0x5b2efc(0xa5)]='',this[_0x5b2efc(0x8a)][_0x5b2efc(0xa0)]=null,this[_0x5b2efc(0xc8)][_0x5b2efc(0xa1)]=!0x1;}[_0x312e2b(0xae)](_0x3706ac){const _0x5c97f2=_0x312e2b;this[_0x5c97f2(0x8a)][_0x5c97f2(0xa0)]=_0x3706ac,this[_0x5c97f2(0x9f)](),this[_0x5c97f2(0x9c)](_0x5c97f2(0xb4));}[_0x312e2b(0x99)](){const _0x3e7c96=_0x312e2b;this[_0x3e7c96(0x8a)][_0x3e7c96(0xa0)]=null,this[_0x3e7c96(0x9f)]();}[_0x312e2b(0x9e)](){const _0x2054db=_0x312e2b,_0xec1659=new _0x5dfb50(this[_0x2054db(0xc9)]);return _0xec1659[_0x2054db(0xa4)]({'icon':_0x42326c,'tooltip':_0x48090a(this[_0x2054db(0xc9)],_0x2054db(0x97)),'tooltipPosition':'n','class':_0x2054db(0xb6)}),_0xec1659;}[_0x312e2b(0xa9)](){const _0x1e59b0=_0x312e2b,_0x140791=new _0x120256(this[_0x1e59b0(0xc9)],_0x2d30ce);return _0x140791[_0x1e59b0(0xa4)]({'label':_0x48090a(this[_0x1e59b0(0xc9)],_0x1e59b0(0x89)),'class':_0x1e59b0(0xc3)}),_0x140791[_0x1e59b0(0xb8)][_0x1e59b0(0xa4)]({'placeholder':_0x48090a(this[_0x1e59b0(0xc9)],_0x1e59b0(0xc6))}),_0x140791;}[_0x312e2b(0x82)](){const _0x205931=_0x312e2b,_0x124183=new _0x5dfb50(this[_0x205931(0xc9)]);return _0x124183[_0x205931(0xa4)]({'icon':_0xd13433,'tooltip':_0x48090a(this[_0x205931(0xc9)],_0x205931(0x94)),'tooltipPosition':'n','class':_0x205931(0x90),'type':_0x205931(0xb0),'isEnabled':!0x1}),_0x124183;}[_0x312e2b(0xbc)](){const _0x5d14f3=_0x312e2b,_0x33757c=new _0x1d6de9(this[_0x5d14f3(0xc9)],{'label':_0x48090a(this[_0x5d14f3(0xc9)],_0x5d14f3(0x94)),'class':_0x5d14f3(0x96)});_0x33757c[_0x5d14f3(0xb1)][_0x5d14f3(0xc2)](this[_0x5d14f3(0x9d)],0x0),this[_0x5d14f3(0x93)]({'tag':_0x5d14f3(0x87),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x33757c,{'tag':_0x5d14f3(0xbe),'attributes':{'class':nh},'children':[this[_0x5d14f3(0x8a)],this[_0x5d14f3(0xc8)]]}]});}[_0x312e2b(0xa7)](){const _0x4d959b=_0x312e2b;this[_0x4d959b(0x9d)]['on'](_0x4d959b(0xc5),()=>{const _0x507670=_0x4d959b;this[_0x507670(0x8f)](),this[_0x507670(0x9c)](_0x507670(0x85));}),this[_0x4d959b(0x8a)][_0x4d959b(0xb8)]['on'](_0x4d959b(0x84),()=>{const _0x5a2585=_0x4d959b;this[_0x5a2585(0x99)](),this[_0x5a2585(0x9f)](),this[_0x5a2585(0x9c)](_0x5a2585(0xb4));}),this['on'](_0x4d959b(0xb0),_0x31ae2f=>{const _0x515bd0=_0x4d959b;_0x31ae2f[_0x515bd0(0xaa)](),this[_0x515bd0(0xa3)]();});}[_0x312e2b(0x95)](){const _0xf8abd0=_0x312e2b;this[_0xf8abd0(0xa8)][_0xf8abd0(0xa4)](_0xf8abd0(0xbd),(_0x425e5f,_0x53ad63)=>{const _0x175a9a=_0xf8abd0;this[_0x175a9a(0x8f)](),this[_0x175a9a(0x9c)](_0x175a9a(0x85)),_0x53ad63();});}[_0x312e2b(0xa3)](){const _0x3327bf=_0x312e2b,_0x12171e=this[_0x3327bf(0x8e)]()[_0x3327bf(0xab)]();_0x12171e?this[_0x3327bf(0x86)](_0x12171e)?(this[_0x3327bf(0x99)](),this[_0x3327bf(0x9c)](_0x3327bf(0xb5),_0x12171e)):this[_0x3327bf(0xae)](_0x48090a(this[_0x3327bf(0xc9)],_0x3327bf(0x81))):this[_0x3327bf(0xae)](_0x48090a(this[_0x3327bf(0xc9)],_0x3327bf(0xb2)));}[_0x312e2b(0x9f)](){const _0x3f6680=_0x312e2b,_0x303889=this[_0x3f6680(0x8e)]()[_0x3f6680(0xab)](),_0x1f4f65=!!this[_0x3f6680(0x8a)][_0x3f6680(0xa0)];this[_0x3f6680(0xc8)][_0x3f6680(0xa1)]=_0x303889[_0x3f6680(0xb9)]>0x0&&!_0x1f4f65;}[_0x312e2b(0x86)](_0x3af5e3){try{return!!new URL(_0x3af5e3);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x1248(){const _0x49edad=['extendTemplate','isAnyResourceBalloonVisible','_urlInputView','label','reorganizeChips','destroy','northArrowSouthEast','execute','southArrowNorthEast','render','_createAddContextBalloonPanelView','_setupTemplate','4bkUYch','_setBalloonPanelContent','_conversationContextsChips','done','15068LBcvfm','130YeKMcW','icon','type','files','addUrlToContext','hide','removeContextItem','83574rfbvba','_createResourcesBalloonView','ck-ai-chat-context-controls__url-balloon-panel','ck-ai-chat-context-controls__show-more-balloon-panel','3108130PsOCEq','set','setContextItemLoading','_removeContextFromCollection','ck-ai-chat-context-chips-wrapper-balloon','locale','focus','fire','current','cancel','document','tooltip','element','_resourcesBalloonView','southArrowNorth','sources','isHidden','enabled','AI_CHAT_CONTEXT_URL_LABEL','_showSourceResourcesBalloon','show','273sXrlCj','southArrowNorthWest','_createBaseBalloonPanel','closeSourceResourceBalloon','showAddContextBalloonPanel','isReadOnly','ck-ai-chat-context-controls__add-context-balloon-panel','ck-ai-chat-context-controls__pending-contexts','add','body','_handleAddContextButtonClick','_createBalloonButton','ck-ai-chat-context-controls__balloon-button','bodyCollection','updateResourceState','pin','setTemplate','ck-ai-chat-controls-button','13ECBloV','northArrowSouth','126uJscLH','_createContextButton','removeContextItemChip','_addContextBalloonPanelView','addContextButtonView','populateSourceResourceBalloon','showUrlBalloonPanel','div','addResourceToContext','showSourceResourcesBalloon','_getLimiterElement','_createAddContextButtonView','urls','18hDQMdc','hideAddContextBalloonPanel','addDocumentToContext','ck-ai-chat-context-controls','closest','hideUrlBalloonPanel','remove','clearCurrentContextItems','815368vsEhjD','AI_CHAT_CONTEXT_FILE_LABEL','addFileToContext','isEnabled','overflowChips','isLoading','defaultPositions','ck-ai-chat','_addContextBalloonConfig','ck-ai-chat-context-controls__balloon-button-source','searchInputVisibleFrom','source','children','_setupAddContextBalloonClickOutsideHandler','loadSourceResources','_currentContextsChips','refreshBalloon','_toggleAddContextBalloon','_handleUrlSubmit','121803EtLLLw','bind','_addUrlContent','setContainerElement','_overflowManager','addContextItem','_addContextToCollection','_setupUrlBalloonClickOutsideHandler','clear','conversation','setAddContextOptions','northArrowSouthWest','ck-reset_all-excluded','createCollection','1465941cEwoUN','isOn','clearConversationContextItems','buttonView','ck-ai-chat-context-controls__add-context-button','__arrow','_createArrowView','find','setConversationContext','arrowView','_setAddContextButtonEnabled','572964KnpiJj','menuitem','balloonView','content','_createUrlBalloonPanelView','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','submitUrl','isVisible','ck-ai-chat-controls_context_show-more-button','AI_CHAT_CONTEXT_ADD_CONTEXT','_setupAllBalloonClickOutsideHandlers','_urlBalloonPanelView','_bindEventHandlers'];_0x1248=function(){return _0x49edad;};return _0x1248();}function _0x41a2(_0x109098,_0x1ff7fb){const _0x124886=_0x1248();return _0x41a2=function(_0x41a237,_0x1828cf){_0x41a237=_0x41a237-0x1b2;let _0x1fd7ed=_0x124886[_0x41a237];return _0x1fd7ed;},_0x41a2(_0x109098,_0x1ff7fb);}const _0x23ab82=_0x41a2;(function(_0x26ad5b,_0x500510){const _0x52a4f4=_0x41a2,_0x2bef76=_0x26ad5b();while(!![]){try{const _0x2d7268=parseInt(_0x52a4f4(0x223))/0x1*(-parseInt(_0x52a4f4(0x1f0))/0x2)+parseInt(_0x52a4f4(0x1c8))/0x3+parseInt(_0x52a4f4(0x1ec))/0x4*(parseInt(_0x52a4f4(0x1fc))/0x5)+-parseInt(_0x52a4f4(0x1f8))/0x6*(-parseInt(_0x52a4f4(0x225))/0x7)+-parseInt(_0x52a4f4(0x23a))/0x8*(-parseInt(_0x52a4f4(0x232))/0x9)+-parseInt(_0x52a4f4(0x1f1))/0xa*(parseInt(_0x52a4f4(0x1ba))/0xb)+parseInt(_0x52a4f4(0x1d3))/0xc*(-parseInt(_0x52a4f4(0x211))/0xd);if(_0x2d7268===_0x500510)break;else _0x2bef76['push'](_0x2bef76['shift']());}catch(_0x384513){_0x2bef76['push'](_0x2bef76['shift']());}}}(_0x1248,0x4e303));import{BalloonPanelView as _0x2bbc6f,ButtonView as _0x1996eb,clickOutsideHandler as _0x10455b,FileDialogButtonView as _0x362151,IconView as _0xb8700c,View as _0x5bafce}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x501175,IconDocument as _0xc38f9c,IconDocumentOutline as _0x3d019b,IconDropdownArrow as _0x3ca4c6,IconLink as _0xe9d30,IconPaperClip as _0x621e21}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x22d8fa}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x205b65}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x4d0c36}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x20c29a}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x58929c}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x23ab82(0x234),_0x23ab82(0x23c),_0x23ab82(0x1f5),_0x23ab82(0x22d),_0x23ab82(0x1f7),_0x23ab82(0x1b5)];const ko=_0x23ab82(0x235),Eo=_0x23ab82(0x218),vo=_0x23ab82(0x217),Vo=_0x23ab82(0x1cc),Io=_0x23ab82(0x1fa),Po=_0x23ab82(0x21d),Ro=_0x23ab82(0x243),Uo=_0x23ab82(0x222),Lo=_0x23ab82(0x200),No=_0x23ab82(0x1db),Oo=_0x23ab82(0x1fb),Mo=_0x23ab82(0x241),Ho=[_0x2bbc6f[_0x23ab82(0x240)][_0x23ab82(0x1c5)],_0x2bbc6f[_0x23ab82(0x240)][_0x23ab82(0x224)],_0x2bbc6f[_0x23ab82(0x240)][_0x23ab82(0x1e6)],_0x2bbc6f[_0x23ab82(0x240)][_0x23ab82(0x212)],_0x2bbc6f[_0x23ab82(0x240)][_0x23ab82(0x20a)],_0x2bbc6f[_0x23ab82(0x240)][_0x23ab82(0x1e8)]];export class AIChatContextPanelView extends _0x5bafce{[_0x23ab82(0x229)];[_0x23ab82(0x1b6)]=this[_0x23ab82(0x1c7)]();[_0x23ab82(0x1ee)]=this[_0x23ab82(0x1c7)]();[_0x23ab82(0x1be)];[_0x23ab82(0x228)];[_0x23ab82(0x1de)];[_0x23ab82(0x1e2)];[_0x23ab82(0x209)];[_0x23ab82(0x242)];[_0x23ab82(0x21e)];constructor(_0x2a6e82,_0x52ce9d){const _0x5240fe=_0x23ab82;super(_0x2a6e82),this[_0x5240fe(0x21e)]=_0x52ce9d[_0x5240fe(0x21e)],this[_0x5240fe(0x1b6)]=this[_0x5240fe(0x1c7)](),this[_0x5240fe(0x1ee)]=this[_0x5240fe(0x1c7)](),this[_0x5240fe(0x229)]=this[_0x5240fe(0x230)](_0x2a6e82),this[_0x5240fe(0x228)]=this[_0x5240fe(0x1ea)](_0x2a6e82),this[_0x5240fe(0x1de)]=this[_0x5240fe(0x1d7)](_0x2a6e82),this[_0x5240fe(0x209)]=this[_0x5240fe(0x1f9)](_0x2a6e82,_0x52ce9d);const _0x5d6cc8={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x5240fe(0x1be)]=new _0x4d0c36(_0x2a6e82,this[_0x5240fe(0x1b6)],_0x5d6cc8,this[_0x5240fe(0x21e)],this),this[_0x5240fe(0x242)]={'buttonView':this[_0x5240fe(0x229)],'balloonView':this[_0x5240fe(0x228)],'hideMethod':this[_0x5240fe(0x233)][_0x5240fe(0x1bb)](this),'showMethod':this[_0x5240fe(0x215)][_0x5240fe(0x1bb)](this)},this[_0x5240fe(0x1eb)](),this[_0x5240fe(0x1df)]();}[_0x23ab82(0x1e9)](){const _0x10b18b=_0x23ab82;super[_0x10b18b(0x1e9)](),this[_0x10b18b(0x1dd)](),this[_0x10b18b(0x1be)][_0x10b18b(0x1bd)](this[_0x10b18b(0x208)]),this[_0x10b18b(0x1be)][_0x10b18b(0x1e4)]();}[_0x23ab82(0x1e5)](){const _0x319ddd=_0x23ab82;super[_0x319ddd(0x1e5)](),this[_0x319ddd(0x1be)][_0x319ddd(0x1e5)](),this[_0x319ddd(0x209)][_0x319ddd(0x1e5)]();}[_0x23ab82(0x1bf)](_0x4a3e56,_0x29ee7d){const _0x31b9ff=_0x23ab82,_0x5d8e5c=this[_0x31b9ff(0x226)](_0x4a3e56,_0x31b9ff(0x204),!0x0,_0x29ee7d);this[_0x31b9ff(0x1c0)](_0x5d8e5c,this[_0x31b9ff(0x1b6)]),this[_0x31b9ff(0x1be)][_0x31b9ff(0x1e4)]();}[_0x23ab82(0x1f7)](_0x42d914){const _0x2fd556=_0x23ab82;this[_0x2fd556(0x1ff)](_0x42d914,this[_0x2fd556(0x1b6)]),this[_0x2fd556(0x1ff)](_0x42d914,this[_0x2fd556(0x1be)][_0x2fd556(0x23e)]),this[_0x2fd556(0x1be)][_0x2fd556(0x1e4)]();}[_0x23ab82(0x1fe)](_0x126ddd,_0x166b35){const _0xc1d0f6=_0x23ab82;let _0x488fc2=this[_0xc1d0f6(0x1b6)][_0xc1d0f6(0x1cf)](_0x541408=>_0x541408['id']===_0x126ddd);_0x488fc2||(_0x488fc2=this[_0xc1d0f6(0x1be)][_0xc1d0f6(0x23e)][_0xc1d0f6(0x1cf)](_0x27521b=>_0x27521b['id']===_0x126ddd)),_0x488fc2&&(_0x488fc2[_0xc1d0f6(0x23f)]=_0x166b35);}[_0x23ab82(0x1d0)](_0x18cb0d){const _0x162a52=_0x23ab82;this[_0x162a52(0x1ee)][_0x162a52(0x1c2)]();for(const _0x537cca of _0x18cb0d){const _0x54364f=this[_0x162a52(0x226)](_0x537cca,_0x162a52(0x1c3),!0x1,!0x1);this[_0x162a52(0x1c0)](_0x54364f,this[_0x162a52(0x1ee)]);}}[_0x23ab82(0x239)](){const _0x343482=_0x23ab82;this[_0x343482(0x1b6)][_0x343482(0x1c2)](),this[_0x343482(0x1be)][_0x343482(0x1c2)]();}[_0x23ab82(0x1ca)](){const _0x2f2d64=_0x23ab82;this[_0x2f2d64(0x1ee)][_0x2f2d64(0x1c2)]();}[_0x23ab82(0x21f)](_0x51562a,_0x64324f,_0x544016){const _0x419ac6=_0x23ab82;this[_0x419ac6(0x209)][_0x419ac6(0x21f)](_0x51562a,_0x64324f,_0x544016);}[_0x23ab82(0x233)](){const _0x449a81=_0x23ab82;this[_0x449a81(0x1b8)](!0x1);}[_0x23ab82(0x215)](){const _0xf82d79=_0x23ab82;this[_0xf82d79(0x1b8)](!0x0);}[_0x23ab82(0x237)](){const _0x3ce0dc=_0x23ab82;this[_0x3ce0dc(0x1de)][_0x3ce0dc(0x1f6)](),this[_0x3ce0dc(0x229)][_0x3ce0dc(0x1c9)]=!0x1,this[_0x3ce0dc(0x1e2)]&&this[_0x3ce0dc(0x1e2)][_0x3ce0dc(0x1c2)]();}[_0x23ab82(0x22b)](){const _0xdd85c1=_0x23ab82;this[_0xdd85c1(0x1de)][_0xdd85c1(0x210)](),this[_0xdd85c1(0x229)][_0xdd85c1(0x1c9)]=!0x0;}[_0x23ab82(0x20f)](_0x35b38e){const _0x17c1c7=_0x23ab82;this[_0x17c1c7(0x209)][_0x17c1c7(0x22e)](_0x35b38e),this[_0x17c1c7(0x229)][_0x17c1c7(0x1c9)]=!0x0;}[_0x23ab82(0x22a)](_0x18453a,_0xa78cfe,_0x1a04ba,_0x32c56b){const _0x529484=_0x23ab82;this[_0x529484(0x209)][_0x529484(0x22a)](_0x18453a,_0x1a04ba,_0x32c56b);}[_0x23ab82(0x214)](_0x231bf1){const _0x2ac5af=_0x23ab82;this[_0x2ac5af(0x209)][_0x2ac5af(0x214)](_0x231bf1),this[_0x2ac5af(0x229)][_0x2ac5af(0x1c9)]=!0x1;}[_0x23ab82(0x1c4)](_0x204b45){const _0x165968=_0x23ab82;this[_0x165968(0x1ed)](this[_0x165968(0x228)],this[_0x165968(0x201)],_0x204b45),this[_0x165968(0x1d2)](_0x204b45);}[_0x23ab82(0x1d2)](_0x200719){const _0x194da2=_0x23ab82,_0x52980d=!_0x200719[_0x194da2(0x206)][_0x194da2(0x20c)]&&_0x200719[_0x194da2(0x206)][_0x194da2(0x20d)],_0x3af385=_0x200719[_0x194da2(0x231)][_0x194da2(0x20d)],_0x191fef=_0x200719[_0x194da2(0x1f4)][_0x194da2(0x20d)];this[_0x194da2(0x229)][_0x194da2(0x23d)]=_0x52980d||_0x3af385||_0x191fef;}[_0x23ab82(0x1eb)](){const _0x83354f=_0x23ab82;this[_0x83354f(0x221)]({'tag':_0x83354f(0x22c),'attributes':{'class':[ko,_0x83354f(0x1c6)]},'children':[{'tag':_0x83354f(0x22c),'attributes':{'class':Eo},'children':this[_0x83354f(0x1b6)]}]});}[_0x23ab82(0x1df)](){const _0x14229f=_0x23ab82;this[_0x14229f(0x229)]['on'](_0x14229f(0x1e7),()=>{const _0x5ac428=_0x14229f;this[_0x5ac428(0x21b)]();});}[_0x23ab82(0x230)](_0x431efa){const _0x254ca6=_0x23ab82,_0x247cce=new _0x1996eb(_0x431efa);return _0x247cce[_0x254ca6(0x1fd)]({'label':_0x20c29a(_0x431efa,_0x254ca6(0x1dc)),'class':Uo+'\x20'+Vo,'icon':_0x621e21,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x247cce;}[_0x23ab82(0x1ea)](_0x10b684){const _0x2a1bf0=_0x23ab82;return this[_0x2a1bf0(0x213)](_0x10b684,vo);}[_0x23ab82(0x1d7)](_0xc5803b){const _0x15d361=_0x23ab82,_0x9aadbb=this[_0x15d361(0x213)](_0xc5803b,Io);return this[_0x15d361(0x1bc)](_0x9aadbb,_0xc5803b),_0x9aadbb;}[_0x23ab82(0x1f9)](_0x3a9dcd,_0x3c5b90){const _0x2aa851=_0x23ab82,_0x3a3e0b={'searchInputVisibleFrom':_0x3c5b90[_0x2aa851(0x244)],'onBackToContext':()=>{const _0x1b3ae8=_0x2aa851;this[_0x1b3ae8(0x215)](),this[_0x1b3ae8(0x228)][_0x1b3ae8(0x220)]({'target':this[_0x1b3ae8(0x229)][_0x1b3ae8(0x208)],'limiter':this[_0x1b3ae8(0x22f)](),'positions':Ho});},'onResourceSelected':(_0x1a8f83,_0x559162)=>{const _0x11a3dc=_0x2aa851;this[_0x11a3dc(0x203)](_0x11a3dc(0x22d),{'source':_0x1a8f83,'resource':_0x559162});},'onLoadSourceResources':_0x11433d=>{const _0x359cb8=_0x2aa851;this[_0x359cb8(0x203)](_0x359cb8(0x1b5),_0x11433d);},'onBalloonClosed':()=>{const _0x490e86=_0x2aa851;this[_0x490e86(0x229)][_0x490e86(0x1c9)]=!0x1;},'getLimiterElement':()=>this[_0x2aa851(0x22f)](),'getTargetElement':()=>this[_0x2aa851(0x229)][_0x2aa851(0x208)]};return new _0x58929c(_0x3a9dcd,_0x3c5b90[_0x2aa851(0x21e)],_0x3a3e0b);}[_0x23ab82(0x22f)](){const _0x114b19=_0x23ab82;return this[_0x114b19(0x208)]?.[_0x114b19(0x236)]('.'+Mo)||document[_0x114b19(0x21a)];}[_0x23ab82(0x213)](_0x28097e,_0x3c9b30){const _0x7718ea=_0x23ab82,_0x27a591=new _0x2bbc6f(_0x28097e);return _0x27a591[_0x7718ea(0x1e0)]({'attributes':{'class':_0x3c9b30}}),this[_0x7718ea(0x21e)][_0x7718ea(0x219)](_0x27a591),_0x27a591;}[_0x23ab82(0x1ed)](_0x34fda8,_0x2e761e,_0x281b5f){const _0x2a4688=_0x23ab82;if(_0x34fda8[_0x2a4688(0x1d6)][_0x2a4688(0x1c2)](),!_0x281b5f[_0x2a4688(0x206)][_0x2a4688(0x20c)]&&_0x281b5f[_0x2a4688(0x206)][_0x2a4688(0x20d)]){const _0x5f28ba=this[_0x2a4688(0x21c)](_0x2e761e,{'label':_0x20c29a(_0x2e761e,_0x2a4688(0x1d8)),'icon':_0xc38f9c});_0x5f28ba['on'](_0x2a4688(0x1e7),()=>{const _0x381ed7=_0x2a4688;this[_0x381ed7(0x203)](_0x381ed7(0x234)),this[_0x381ed7(0x233)]();}),_0x34fda8[_0x2a4688(0x1d6)][_0x2a4688(0x219)](_0x5f28ba);}if(_0x281b5f[_0x2a4688(0x231)][_0x2a4688(0x20d)]){const _0x4f15d3=this[_0x2a4688(0x21c)](_0x2e761e,{'label':_0x20c29a(_0x2e761e,_0x2a4688(0x20e)),'icon':_0xe9d30});_0x4f15d3['on'](_0x2a4688(0x1e7),()=>{const _0x2d0508=_0x2a4688;this[_0x2d0508(0x233)](),this[_0x2d0508(0x22b)](),this[_0x2d0508(0x1de)][_0x2d0508(0x220)]({'target':this[_0x2d0508(0x229)][_0x2d0508(0x208)],'limiter':this[_0x2d0508(0x22f)](),'positions':Ho}),this[_0x2d0508(0x1e2)][_0x2d0508(0x202)]();}),_0x34fda8[_0x2a4688(0x1d6)][_0x2a4688(0x219)](_0x4f15d3);}if(_0x281b5f[_0x2a4688(0x1f4)][_0x2a4688(0x20d)]){const _0x5b13fc=new _0x362151(_0x2e761e);_0x5b13fc[_0x2a4688(0x1fd)]({'label':_0x20c29a(_0x2e761e,_0x2a4688(0x23b)),'icon':_0x501175,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x5b13fc['on'](_0x2a4688(0x1ef),(_0x406bd7,_0x51544c)=>{const _0x405c20=_0x2a4688;this[_0x405c20(0x203)](_0x405c20(0x23c),_0x51544c),this[_0x405c20(0x233)]();}),_0x5b13fc[_0x2a4688(0x207)]=!0x0,_0x34fda8[_0x2a4688(0x1d6)][_0x2a4688(0x219)](_0x5b13fc);}for(const _0x19141b of _0x281b5f[_0x2a4688(0x20b)]){const _0x22a54e=this[_0x2a4688(0x21c)](_0x2e761e,{'label':_0x19141b[_0x2a4688(0x1e3)],'icon':_0x19141b[_0x2a4688(0x1f2)]||_0x3d019b,'type':_0x2a4688(0x1b2)});_0x34fda8[_0x2a4688(0x1d6)][_0x2a4688(0x219)](_0x22a54e),_0x22a54e['on'](_0x2a4688(0x1e7),()=>{const _0x2332bd=_0x2a4688;this[_0x2332bd(0x233)](),this[_0x2332bd(0x20f)](_0x19141b);});}}[_0x23ab82(0x1bc)](_0x56ae05,_0x1fd8e0){const _0x1218ff=_0x23ab82;this[_0x1218ff(0x1e2)]=new _0x205b65(_0x1fd8e0),this[_0x1218ff(0x1e2)]['on'](_0x1218ff(0x1d9),(_0x185746,_0x2329fc)=>{const _0x4b8644=_0x1218ff;this[_0x4b8644(0x1b9)](_0x2329fc);}),this[_0x1218ff(0x1e2)]['on'](_0x1218ff(0x205),()=>{const _0x55eecb=_0x1218ff;this[_0x55eecb(0x237)](),this[_0x55eecb(0x215)](),this[_0x55eecb(0x228)][_0x55eecb(0x220)]({'target':this[_0x55eecb(0x229)][_0x55eecb(0x208)],'limiter':this[_0x55eecb(0x22f)](),'positions':Ho});}),this[_0x1218ff(0x1e2)]['on'](_0x1218ff(0x1b7),()=>{const _0x12ecdf=_0x1218ff;this[_0x12ecdf(0x1de)][_0x12ecdf(0x1da)]&&this[_0x12ecdf(0x1de)][_0x12ecdf(0x220)]({'target':this[_0x12ecdf(0x229)][_0x12ecdf(0x208)],'limiter':this[_0x12ecdf(0x22f)](),'positions':Ho});}),_0x56ae05[_0x1218ff(0x1d6)][_0x1218ff(0x219)](this[_0x1218ff(0x1e2)]);}[_0x23ab82(0x21c)](_0x18b19c,_0x529219){const _0x3eb633=_0x23ab82,_0x319a49=_0x3eb633(0x1b2)===_0x529219[_0x3eb633(0x1f3)]?new SourcesBalloonButtonView(_0x18b19c):new _0x1996eb(_0x18b19c);return _0x319a49[_0x3eb633(0x1fd)]({'label':_0x529219[_0x3eb633(0x1e3)],'icon':_0x529219[_0x3eb633(0x1f2)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x319a49;}[_0x23ab82(0x1dd)](){const _0x21afff=_0x23ab82;this[_0x21afff(0x1b4)](),this[_0x21afff(0x1c1)]();}[_0x23ab82(0x1c1)](){const _0x1e218e=_0x23ab82;_0x10455b({'emitter':this[_0x1e218e(0x1de)],'contextElements':[this[_0x1e218e(0x1de)][_0x1e218e(0x208)]],'callback':()=>{const _0x197645=_0x1e218e;this[_0x197645(0x237)]();},'activator':()=>this[_0x1e218e(0x1de)][_0x1e218e(0x1da)]});}[_0x23ab82(0x1b8)](_0x5df1bd){const _0x430ca8=_0x23ab82,_0x2b9818=this[_0x430ca8(0x242)];_0x2b9818[_0x430ca8(0x1cb)][_0x430ca8(0x1c9)]=_0x5df1bd,_0x5df1bd?_0x2b9818[_0x430ca8(0x1d5)][_0x430ca8(0x210)]():_0x2b9818[_0x430ca8(0x1d5)][_0x430ca8(0x1f6)]();}[_0x23ab82(0x1b4)](){const _0x2e551d=_0x23ab82,{balloonView:_0x28afc7,buttonView:_0x5cba55,hideMethod:_0x41c99c}=this[_0x2e551d(0x242)];_0x10455b({'emitter':_0x28afc7,'contextElements':[_0x28afc7[_0x2e551d(0x208)],_0x5cba55[_0x2e551d(0x208)]],'callback':()=>{_0x41c99c();},'activator':()=>_0x5cba55[_0x2e551d(0x1c9)]&&!this[_0x2e551d(0x1de)][_0x2e551d(0x1da)]&&!this[_0x2e551d(0x209)][_0x2e551d(0x1e1)]()});}[_0x23ab82(0x226)](_0x466583,_0x5efca8,_0x1da94a=!0x1,_0x232509=!0x1){const _0x524875=_0x23ab82,_0x1e39a2=_0x524875(0x1c3)===_0x5efca8||!0x0===_0x466583[_0x524875(0x216)],_0x27090a=new _0x22d8fa(this[_0x524875(0x201)],_0x466583,_0x1e39a2,_0x1da94a,_0x232509);return _0x1e39a2||_0x27090a['on'](_0x524875(0x227),()=>{const _0x2b1933=_0x524875;this[_0x2b1933(0x203)](_0x2b1933(0x1f7),_0x27090a['id']);}),_0x27090a;}[_0x23ab82(0x1c0)](_0x1632d1,_0xf9c634){const _0x4bde1b=_0x23ab82;_0xf9c634[_0x4bde1b(0x219)](_0x1632d1,0x0);}[_0x23ab82(0x1ff)](_0x16d4f8,_0x5a20ad){const _0xc97abe=_0x23ab82,_0x1d82b3=_0x5a20ad[_0xc97abe(0x1cf)](_0x616fea=>_0x616fea['id']===_0x16d4f8);_0x1d82b3&&_0x5a20ad[_0xc97abe(0x238)](_0x1d82b3);}[_0x23ab82(0x21b)](){const _0xd003bd=_0x23ab82;this[_0xd003bd(0x229)][_0xd003bd(0x1c9)]?this[_0xd003bd(0x233)]():(this[_0xd003bd(0x215)](),this[_0xd003bd(0x228)][_0xd003bd(0x220)]({'target':this[_0xd003bd(0x229)][_0xd003bd(0x208)],'limiter':this[_0xd003bd(0x22f)](),'positions':Ho}));}[_0x23ab82(0x1b9)](_0x1ac8e6){const _0x2b3ca7=_0x23ab82;this[_0x2b3ca7(0x1e2)][_0x2b3ca7(0x1c2)](),this[_0x2b3ca7(0x237)](),this[_0x2b3ca7(0x203)](_0x2b3ca7(0x1f5),_0x1ac8e6);}}export class SourcesBalloonButtonView extends _0x1996eb{[_0x23ab82(0x1d1)];constructor(_0x4fe985){const _0x3d5e85=_0x23ab82;super(_0x4fe985),this[_0x3d5e85(0x1fd)]({'withText':!0x0,'role':_0x3d5e85(0x1d4)}),this[_0x3d5e85(0x1d1)]=this[_0x3d5e85(0x1ce)](),this[_0x3d5e85(0x1e0)]({'attributes':{'class':[Ro]}});}[_0x23ab82(0x1e9)](){const _0x330514=_0x23ab82;super[_0x330514(0x1e9)](),this[_0x330514(0x1b3)][_0x330514(0x219)](this[_0x330514(0x1d1)]);}[_0x23ab82(0x1ce)](){const _0x2c28f0=_0x23ab82,_0x118df6=new _0xb8700c();return _0x118df6[_0x2c28f0(0x1d6)]=_0x3ca4c6,_0x118df6[_0x2c28f0(0x1e0)]({'attributes':{'class':Ro+_0x2c28f0(0x1cd)}}),_0x118df6;}}
|
|
23
|
+
function _0x47dd(){const _0x4c2ff8=['_conversationContextsChips','label','tooltip','_removeContextFromCollection','enabled','isHidden','addContextItem','addResourceToContext','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','find','_createAddContextBalloonPanelView','isReadOnly','clearCurrentContextItems','showAddContextBalloonPanel','ck-ai-chat-context-controls__add-context-button','15049793uHHxHm','southArrowNorth','_setAddContextButtonEnabled','done','8132649DSKmvh','pin','destroy','cancel','southArrowNorthWest','locale','render','isOn','type','body','closeSourceResourceBalloon','removeContextItem','ck-ai-chat-context-controls__url-balloon-panel','hide','arrowView','ck-ai-chat-context-controls__show-more-balloon-panel','16LYKKVY','sources','_createAddContextButtonView','_urlInputView','ck-ai-chat-context-controls','_createUrlBalloonPanelView','setConversationContext','363215DilEfS','AI_CHAT_CONTEXT_URL_LABEL','12DGJpeT','ck-ai-chat-context-controls__balloon-button','content','bodyCollection','ck-ai-chat','add','_addContextBalloonConfig','clear','extendTemplate','_resourcesBalloonView','_setBalloonPanelContent','northArrowSouthEast','files','document','_addUrlContent','_bindEventHandlers','_createBaseBalloonPanel','_currentContextsChips','AI_CHAT_CONTEXT_FILE_LABEL','6uwhjDj','isAnyResourceBalloonVisible','set','ck-ai-chat-context-controls__add-context-balloon-panel','_showSourceResourcesBalloon','defaultPositions','_overflowManager','4174556BEvEft','focus','source','_createContextButton','conversation','_addContextToCollection','ck-ai-chat-controls-button','3hKgQEY','northArrowSouth','_createBalloonButton','ck-ai-chat-context-controls__pending-contexts','updateResourceState','_createArrowView','fire','southArrowNorthEast','menuitem','isLoading','setContainerElement','_getLimiterElement','removeContextItemChip','children','AI_CHAT_CONTEXT_ADD_CONTEXT','populateSourceResourceBalloon','addDocumentToContext','_setupAllBalloonClickOutsideHandlers','_handleUrlSubmit','showSourceResourcesBalloon','remove','urls','_setupTemplate','7315731FZCvAF','reorganizeChips','submitUrl','_addContextBalloonPanelView','_toggleAddContextBalloon','ck-reset_all-excluded','_urlBalloonPanelView','hideAddContextBalloonPanel','addContextButtonView','hideUrlBalloonPanel','element','searchInputVisibleFrom','show','icon','8436170uKmKay','current','addUrlToContext','2wEZXRw','closest','_setupUrlBalloonClickOutsideHandler','bind','isVisible','ck-ai-chat-context-controls__balloon-button-source','ck-ai-chat-controls_context_show-more-button','addFileToContext','northArrowSouthWest','setTemplate','buttonView','ck-ai-chat-context-chips-wrapper-balloon','_handleAddContextButtonClick','div','clearConversationContextItems','isEnabled','createCollection','582725IjzwWZ','execute','balloonView','overflowChips','__arrow','setAddContextOptions','refreshBalloon','showUrlBalloonPanel','loadSourceResources','_setupAddContextBalloonClickOutsideHandler','setContextItemLoading','_createResourcesBalloonView'];_0x47dd=function(){return _0x4c2ff8;};return _0x47dd();}function _0x28ba(_0xc8e398,_0x5234e4){const _0x47dd1b=_0x47dd();return _0x28ba=function(_0x28ba0c,_0x132d2d){_0x28ba0c=_0x28ba0c-0x103;let _0x25102b=_0x47dd1b[_0x28ba0c];return _0x25102b;},_0x28ba(_0xc8e398,_0x5234e4);}const _0x23fc3b=_0x28ba;(function(_0x40cf71,_0x15aaf5){const _0x44b458=_0x28ba,_0x4eb2c3=_0x40cf71();while(!![]){try{const _0x1169b1=parseInt(_0x44b458(0x124))/0x1*(-parseInt(_0x44b458(0x16f))/0x2)+-parseInt(_0x44b458(0x147))/0x3*(parseInt(_0x44b458(0x140))/0x4)+parseInt(_0x44b458(0x180))/0x5+parseInt(_0x44b458(0x139))/0x6*(parseInt(_0x44b458(0x10d))/0x7)+parseInt(_0x44b458(0x11d))/0x8*(parseInt(_0x44b458(0x15e))/0x9)+parseInt(_0x44b458(0x16c))/0xa+parseInt(_0x44b458(0x109))/0xb*(-parseInt(_0x44b458(0x126))/0xc);if(_0x1169b1===_0x15aaf5)break;else _0x4eb2c3['push'](_0x4eb2c3['shift']());}catch(_0x2ee231){_0x4eb2c3['push'](_0x4eb2c3['shift']());}}}(_0x47dd,0xed77e));import{BalloonPanelView as _0x403b86,ButtonView as _0x34c5d4,clickOutsideHandler as _0x508cdc,FileDialogButtonView as _0xfca9ea,IconView as _0xb0d752,View as _0xa2a5d8}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x52bdc2,IconDocument as _0xb863f5,IconDocumentOutline as _0x4a3ac8,IconDropdownArrow as _0x2ce1a5,IconLink as _0x3ccff2,IconPaperClip as _0x2ff9b2}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x49ff92}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x5809df}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x234973}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x370ec1}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x14e4f8}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x23fc3b(0x157),_0x23fc3b(0x176),_0x23fc3b(0x16e),_0x23fc3b(0x193),_0x23fc3b(0x118),_0x23fc3b(0x188)];const ko=_0x23fc3b(0x121),Eo=_0x23fc3b(0x14a),vo=_0x23fc3b(0x13c),Vo=_0x23fc3b(0x108),Io=_0x23fc3b(0x119),Po=_0x23fc3b(0x127),Ro=_0x23fc3b(0x174),Uo=_0x23fc3b(0x146),Lo=_0x23fc3b(0x17a),No=_0x23fc3b(0x175),Oo=_0x23fc3b(0x11c),Mo=_0x23fc3b(0x12a),Ho=[_0x403b86[_0x23fc3b(0x13e)][_0x23fc3b(0x177)],_0x403b86[_0x23fc3b(0x13e)][_0x23fc3b(0x148)],_0x403b86[_0x23fc3b(0x13e)][_0x23fc3b(0x131)],_0x403b86[_0x23fc3b(0x13e)][_0x23fc3b(0x111)],_0x403b86[_0x23fc3b(0x13e)][_0x23fc3b(0x10a)],_0x403b86[_0x23fc3b(0x13e)][_0x23fc3b(0x14e)]];export class AIChatContextPanelView extends _0xa2a5d8{[_0x23fc3b(0x166)];[_0x23fc3b(0x137)]=this[_0x23fc3b(0x17f)]();[_0x23fc3b(0x18c)]=this[_0x23fc3b(0x17f)]();[_0x23fc3b(0x13f)];[_0x23fc3b(0x161)];[_0x23fc3b(0x164)];[_0x23fc3b(0x120)];[_0x23fc3b(0x12f)];[_0x23fc3b(0x12c)];[_0x23fc3b(0x129)];constructor(_0x55e931,_0x4561bb){const _0x25d466=_0x23fc3b;super(_0x55e931),this[_0x25d466(0x129)]=_0x4561bb[_0x25d466(0x129)],this[_0x25d466(0x137)]=this[_0x25d466(0x17f)](),this[_0x25d466(0x18c)]=this[_0x25d466(0x17f)](),this[_0x25d466(0x166)]=this[_0x25d466(0x11f)](_0x55e931),this[_0x25d466(0x161)]=this[_0x25d466(0x104)](_0x55e931),this[_0x25d466(0x164)]=this[_0x25d466(0x122)](_0x55e931),this[_0x25d466(0x12f)]=this[_0x25d466(0x18b)](_0x55e931,_0x4561bb);const _0x3a6995={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x25d466(0x13f)]=new _0x234973(_0x55e931,this[_0x25d466(0x137)],_0x3a6995,this[_0x25d466(0x129)],this),this[_0x25d466(0x12c)]={'buttonView':this[_0x25d466(0x166)],'balloonView':this[_0x25d466(0x161)],'hideMethod':this[_0x25d466(0x165)][_0x25d466(0x172)](this),'showMethod':this[_0x25d466(0x107)][_0x25d466(0x172)](this)},this[_0x25d466(0x15d)](),this[_0x25d466(0x135)]();}[_0x23fc3b(0x113)](){const _0x13ad8d=_0x23fc3b;super[_0x13ad8d(0x113)](),this[_0x13ad8d(0x158)](),this[_0x13ad8d(0x13f)][_0x13ad8d(0x151)](this[_0x13ad8d(0x168)]),this[_0x13ad8d(0x13f)][_0x13ad8d(0x15f)]();}[_0x23fc3b(0x10f)](){const _0x357946=_0x23fc3b;super[_0x357946(0x10f)](),this[_0x357946(0x13f)][_0x357946(0x10f)](),this[_0x357946(0x12f)][_0x357946(0x10f)]();}[_0x23fc3b(0x192)](_0x15c26a,_0x582bef){const _0x2b57a3=_0x23fc3b,_0xe090d9=this[_0x2b57a3(0x143)](_0x15c26a,_0x2b57a3(0x16d),!0x0,_0x582bef);this[_0x2b57a3(0x145)](_0xe090d9,this[_0x2b57a3(0x137)]),this[_0x2b57a3(0x13f)][_0x2b57a3(0x15f)]();}[_0x23fc3b(0x118)](_0x4f4dba){const _0x4b5d1e=_0x23fc3b;this[_0x4b5d1e(0x18f)](_0x4f4dba,this[_0x4b5d1e(0x137)]),this[_0x4b5d1e(0x18f)](_0x4f4dba,this[_0x4b5d1e(0x13f)][_0x4b5d1e(0x183)]),this[_0x4b5d1e(0x13f)][_0x4b5d1e(0x15f)]();}[_0x23fc3b(0x18a)](_0x3174e4,_0x1fa110){const _0xb05c2a=_0x23fc3b;let _0x4c4f7d=this[_0xb05c2a(0x137)][_0xb05c2a(0x103)](_0x596c0d=>_0x596c0d['id']===_0x3174e4);_0x4c4f7d||(_0x4c4f7d=this[_0xb05c2a(0x13f)][_0xb05c2a(0x183)][_0xb05c2a(0x103)](_0x5e02de=>_0x5e02de['id']===_0x3174e4)),_0x4c4f7d&&(_0x4c4f7d[_0xb05c2a(0x150)]=_0x1fa110);}[_0x23fc3b(0x123)](_0x2f8c4e){const _0x4380a2=_0x23fc3b;this[_0x4380a2(0x18c)][_0x4380a2(0x12d)]();for(const _0x2334d3 of _0x2f8c4e){const _0x298b13=this[_0x4380a2(0x143)](_0x2334d3,_0x4380a2(0x144),!0x1,!0x1);this[_0x4380a2(0x145)](_0x298b13,this[_0x4380a2(0x18c)]);}}[_0x23fc3b(0x106)](){const _0x60dd96=_0x23fc3b;this[_0x60dd96(0x137)][_0x60dd96(0x12d)](),this[_0x60dd96(0x13f)][_0x60dd96(0x12d)]();}[_0x23fc3b(0x17d)](){const _0x57acbc=_0x23fc3b;this[_0x57acbc(0x18c)][_0x57acbc(0x12d)]();}[_0x23fc3b(0x14b)](_0x59028e,_0x46d4a2,_0x392d83){const _0x248505=_0x23fc3b;this[_0x248505(0x12f)][_0x248505(0x14b)](_0x59028e,_0x46d4a2,_0x392d83);}[_0x23fc3b(0x165)](){const _0x1e6b1d=_0x23fc3b;this[_0x1e6b1d(0x162)](!0x1);}[_0x23fc3b(0x107)](){const _0x7312ee=_0x23fc3b;this[_0x7312ee(0x162)](!0x0);}[_0x23fc3b(0x167)](){const _0x3527fb=_0x23fc3b;this[_0x3527fb(0x164)][_0x3527fb(0x11a)](),this[_0x3527fb(0x166)][_0x3527fb(0x114)]=!0x1,this[_0x3527fb(0x120)]&&this[_0x3527fb(0x120)][_0x3527fb(0x12d)]();}[_0x23fc3b(0x187)](){const _0x1fffda=_0x23fc3b;this[_0x1fffda(0x164)][_0x1fffda(0x16a)](),this[_0x1fffda(0x166)][_0x1fffda(0x114)]=!0x0;}[_0x23fc3b(0x13d)](_0x46fd32){const _0x3358f5=_0x23fc3b;this[_0x3358f5(0x12f)][_0x3358f5(0x15a)](_0x46fd32),this[_0x3358f5(0x166)][_0x3358f5(0x114)]=!0x0;}[_0x23fc3b(0x156)](_0x595af7,_0x810d01,_0x3b865a,_0x28b958){const _0x507061=_0x23fc3b;this[_0x507061(0x12f)][_0x507061(0x156)](_0x595af7,_0x3b865a,_0x28b958);}[_0x23fc3b(0x117)](_0x4bd004){const _0x1467c6=_0x23fc3b;this[_0x1467c6(0x12f)][_0x1467c6(0x117)](_0x4bd004),this[_0x1467c6(0x166)][_0x1467c6(0x114)]=!0x1;}[_0x23fc3b(0x185)](_0x5b9ec3){const _0x218e29=_0x23fc3b;this[_0x218e29(0x130)](this[_0x218e29(0x161)],this[_0x218e29(0x112)],_0x5b9ec3),this[_0x218e29(0x10b)](_0x5b9ec3);}[_0x23fc3b(0x10b)](_0x283257){const _0x138c59=_0x23fc3b,_0x1b8b66=!_0x283257[_0x138c59(0x133)][_0x138c59(0x191)]&&_0x283257[_0x138c59(0x133)][_0x138c59(0x190)],_0x14d2cc=_0x283257[_0x138c59(0x15c)][_0x138c59(0x190)],_0x4c06f9=_0x283257[_0x138c59(0x132)][_0x138c59(0x190)];this[_0x138c59(0x166)][_0x138c59(0x17e)]=_0x1b8b66||_0x14d2cc||_0x4c06f9;}[_0x23fc3b(0x15d)](){const _0x57f040=_0x23fc3b;this[_0x57f040(0x178)]({'tag':_0x57f040(0x17c),'attributes':{'class':[ko,_0x57f040(0x163)]},'children':[{'tag':_0x57f040(0x17c),'attributes':{'class':Eo},'children':this[_0x57f040(0x137)]}]});}[_0x23fc3b(0x135)](){const _0x5b2a49=_0x23fc3b;this[_0x5b2a49(0x166)]['on'](_0x5b2a49(0x181),()=>{const _0x4232e2=_0x5b2a49;this[_0x4232e2(0x17b)]();});}[_0x23fc3b(0x11f)](_0x167791){const _0x59c2fa=_0x23fc3b,_0x2ed311=new _0x34c5d4(_0x167791);return _0x2ed311[_0x59c2fa(0x13b)]({'label':_0x370ec1(_0x167791,_0x59c2fa(0x155)),'class':Uo+'\x20'+Vo,'icon':_0x2ff9b2,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x2ed311;}[_0x23fc3b(0x104)](_0xdc2788){const _0x44292c=_0x23fc3b;return this[_0x44292c(0x136)](_0xdc2788,vo);}[_0x23fc3b(0x122)](_0x164457){const _0x2efe5d=_0x23fc3b,_0x3d054a=this[_0x2efe5d(0x136)](_0x164457,Io);return this[_0x2efe5d(0x134)](_0x3d054a,_0x164457),_0x3d054a;}[_0x23fc3b(0x18b)](_0x16a46d,_0x581cce){const _0x1f4c58=_0x23fc3b,_0x154a43={'searchInputVisibleFrom':_0x581cce[_0x1f4c58(0x169)],'onBackToContext':()=>{const _0x3e2e99=_0x1f4c58;this[_0x3e2e99(0x107)](),this[_0x3e2e99(0x161)][_0x3e2e99(0x10e)]({'target':this[_0x3e2e99(0x166)][_0x3e2e99(0x168)],'limiter':this[_0x3e2e99(0x152)](),'positions':Ho});},'onResourceSelected':(_0x510ccc,_0x5ee55c)=>{const _0x36f21e=_0x1f4c58;this[_0x36f21e(0x14d)](_0x36f21e(0x193),{'source':_0x510ccc,'resource':_0x5ee55c});},'onLoadSourceResources':_0x578540=>{const _0xe3814b=_0x1f4c58;this[_0xe3814b(0x14d)](_0xe3814b(0x188),_0x578540);},'onBalloonClosed':()=>{const _0x250a30=_0x1f4c58;this[_0x250a30(0x166)][_0x250a30(0x114)]=!0x1;},'getLimiterElement':()=>this[_0x1f4c58(0x152)](),'getTargetElement':()=>this[_0x1f4c58(0x166)][_0x1f4c58(0x168)]};return new _0x14e4f8(_0x16a46d,_0x581cce[_0x1f4c58(0x129)],_0x154a43);}[_0x23fc3b(0x152)](){const _0x2a3436=_0x23fc3b;return this[_0x2a3436(0x168)]?.[_0x2a3436(0x170)]('.'+Mo)||document[_0x2a3436(0x116)];}[_0x23fc3b(0x136)](_0x17bc8d,_0xac9cb8){const _0x2998be=_0x23fc3b,_0x330e08=new _0x403b86(_0x17bc8d);return _0x330e08[_0x2998be(0x12e)]({'attributes':{'class':_0xac9cb8}}),this[_0x2998be(0x129)][_0x2998be(0x12b)](_0x330e08),_0x330e08;}[_0x23fc3b(0x130)](_0x26d0cd,_0x582640,_0x3af163){const _0x2b31cb=_0x23fc3b;if(_0x26d0cd[_0x2b31cb(0x128)][_0x2b31cb(0x12d)](),!_0x3af163[_0x2b31cb(0x133)][_0x2b31cb(0x191)]&&_0x3af163[_0x2b31cb(0x133)][_0x2b31cb(0x190)]){const _0x33a0e1=this[_0x2b31cb(0x149)](_0x582640,{'label':_0x370ec1(_0x582640,_0x2b31cb(0x194)),'icon':_0xb863f5});_0x33a0e1['on'](_0x2b31cb(0x181),()=>{const _0x24b7fb=_0x2b31cb;this[_0x24b7fb(0x14d)](_0x24b7fb(0x157)),this[_0x24b7fb(0x165)]();}),_0x26d0cd[_0x2b31cb(0x128)][_0x2b31cb(0x12b)](_0x33a0e1);}if(_0x3af163[_0x2b31cb(0x15c)][_0x2b31cb(0x190)]){const _0x5c3b3b=this[_0x2b31cb(0x149)](_0x582640,{'label':_0x370ec1(_0x582640,_0x2b31cb(0x125)),'icon':_0x3ccff2});_0x5c3b3b['on'](_0x2b31cb(0x181),()=>{const _0x53addf=_0x2b31cb;this[_0x53addf(0x165)](),this[_0x53addf(0x187)](),this[_0x53addf(0x164)][_0x53addf(0x10e)]({'target':this[_0x53addf(0x166)][_0x53addf(0x168)],'limiter':this[_0x53addf(0x152)](),'positions':Ho}),this[_0x53addf(0x120)][_0x53addf(0x141)]();}),_0x26d0cd[_0x2b31cb(0x128)][_0x2b31cb(0x12b)](_0x5c3b3b);}if(_0x3af163[_0x2b31cb(0x132)][_0x2b31cb(0x190)]){const _0x588439=new _0xfca9ea(_0x582640);_0x588439[_0x2b31cb(0x13b)]({'label':_0x370ec1(_0x582640,_0x2b31cb(0x138)),'icon':_0x52bdc2,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x588439['on'](_0x2b31cb(0x10c),(_0x1f0f12,_0x3bed3f)=>{const _0x5a6dc3=_0x2b31cb;this[_0x5a6dc3(0x14d)](_0x5a6dc3(0x176),_0x3bed3f),this[_0x5a6dc3(0x165)]();}),_0x588439[_0x2b31cb(0x18e)]=!0x0,_0x26d0cd[_0x2b31cb(0x128)][_0x2b31cb(0x12b)](_0x588439);}for(const _0x278b83 of _0x3af163[_0x2b31cb(0x11e)]){const _0x1a20c8=this[_0x2b31cb(0x149)](_0x582640,{'label':_0x278b83[_0x2b31cb(0x18d)],'icon':_0x278b83[_0x2b31cb(0x16b)]||_0x4a3ac8,'type':_0x2b31cb(0x142)});_0x26d0cd[_0x2b31cb(0x128)][_0x2b31cb(0x12b)](_0x1a20c8),_0x1a20c8['on'](_0x2b31cb(0x181),()=>{const _0x235acf=_0x2b31cb;this[_0x235acf(0x165)](),this[_0x235acf(0x13d)](_0x278b83);});}}[_0x23fc3b(0x134)](_0x231f04,_0xd59676){const _0x1a5548=_0x23fc3b;this[_0x1a5548(0x120)]=new _0x5809df(_0xd59676),this[_0x1a5548(0x120)]['on'](_0x1a5548(0x160),(_0x464fb8,_0x37facb)=>{const _0x2b9303=_0x1a5548;this[_0x2b9303(0x159)](_0x37facb);}),this[_0x1a5548(0x120)]['on'](_0x1a5548(0x110),()=>{const _0x27ab9b=_0x1a5548;this[_0x27ab9b(0x167)](),this[_0x27ab9b(0x107)](),this[_0x27ab9b(0x161)][_0x27ab9b(0x10e)]({'target':this[_0x27ab9b(0x166)][_0x27ab9b(0x168)],'limiter':this[_0x27ab9b(0x152)](),'positions':Ho});}),this[_0x1a5548(0x120)]['on'](_0x1a5548(0x186),()=>{const _0x444008=_0x1a5548;this[_0x444008(0x164)][_0x444008(0x173)]&&this[_0x444008(0x164)][_0x444008(0x10e)]({'target':this[_0x444008(0x166)][_0x444008(0x168)],'limiter':this[_0x444008(0x152)](),'positions':Ho});}),_0x231f04[_0x1a5548(0x128)][_0x1a5548(0x12b)](this[_0x1a5548(0x120)]);}[_0x23fc3b(0x149)](_0x149b9d,_0x50fa86){const _0x1943db=_0x23fc3b,_0x8cd326=_0x1943db(0x142)===_0x50fa86[_0x1943db(0x115)]?new SourcesBalloonButtonView(_0x149b9d):new _0x34c5d4(_0x149b9d);return _0x8cd326[_0x1943db(0x13b)]({'label':_0x50fa86[_0x1943db(0x18d)],'icon':_0x50fa86[_0x1943db(0x16b)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x8cd326;}[_0x23fc3b(0x158)](){const _0x3bd9b3=_0x23fc3b;this[_0x3bd9b3(0x189)](),this[_0x3bd9b3(0x171)]();}[_0x23fc3b(0x171)](){const _0x552fb0=_0x23fc3b;_0x508cdc({'emitter':this[_0x552fb0(0x164)],'contextElements':[this[_0x552fb0(0x164)][_0x552fb0(0x168)]],'callback':()=>{const _0x339195=_0x552fb0;this[_0x339195(0x167)]();},'activator':()=>this[_0x552fb0(0x164)][_0x552fb0(0x173)]});}[_0x23fc3b(0x162)](_0x299e0f){const _0x2b9544=_0x23fc3b,_0x1dcd09=this[_0x2b9544(0x12c)];_0x1dcd09[_0x2b9544(0x179)][_0x2b9544(0x114)]=_0x299e0f,_0x299e0f?_0x1dcd09[_0x2b9544(0x182)][_0x2b9544(0x16a)]():_0x1dcd09[_0x2b9544(0x182)][_0x2b9544(0x11a)]();}[_0x23fc3b(0x189)](){const _0x248f10=_0x23fc3b,{balloonView:_0x1ce5d0,buttonView:_0x205472,hideMethod:_0x22630a}=this[_0x248f10(0x12c)];_0x508cdc({'emitter':_0x1ce5d0,'contextElements':[_0x1ce5d0[_0x248f10(0x168)],_0x205472[_0x248f10(0x168)]],'callback':()=>{_0x22630a();},'activator':()=>_0x205472[_0x248f10(0x114)]&&!this[_0x248f10(0x164)][_0x248f10(0x173)]&&!this[_0x248f10(0x12f)][_0x248f10(0x13a)]()});}[_0x23fc3b(0x143)](_0x31762e,_0xdc9f5f,_0x510faa=!0x1,_0x27892d=!0x1){const _0x308231=_0x23fc3b,_0x3be048=_0x308231(0x144)===_0xdc9f5f||!0x0===_0x31762e[_0x308231(0x105)],_0x347b2e=new _0x49ff92(this[_0x308231(0x112)],_0x31762e,_0x3be048,_0x510faa,_0x27892d);return _0x3be048||_0x347b2e['on'](_0x308231(0x153),()=>{const _0x18acdc=_0x308231;this[_0x18acdc(0x14d)](_0x18acdc(0x118),_0x347b2e['id']);}),_0x347b2e;}[_0x23fc3b(0x145)](_0x4d617c,_0x186854){const _0x2c275c=_0x23fc3b;_0x186854[_0x2c275c(0x12b)](_0x4d617c,0x0);}[_0x23fc3b(0x18f)](_0x30f366,_0x35d86e){const _0x99fde8=_0x23fc3b,_0x31581a=_0x35d86e[_0x99fde8(0x103)](_0xb2ee80=>_0xb2ee80['id']===_0x30f366);_0x31581a&&_0x35d86e[_0x99fde8(0x15b)](_0x31581a);}[_0x23fc3b(0x17b)](){const _0x27820d=_0x23fc3b;this[_0x27820d(0x166)][_0x27820d(0x114)]?this[_0x27820d(0x165)]():(this[_0x27820d(0x107)](),this[_0x27820d(0x161)][_0x27820d(0x10e)]({'target':this[_0x27820d(0x166)][_0x27820d(0x168)],'limiter':this[_0x27820d(0x152)](),'positions':Ho}));}[_0x23fc3b(0x159)](_0x53d94b){const _0x1a7b1f=_0x23fc3b;this[_0x1a7b1f(0x120)][_0x1a7b1f(0x12d)](),this[_0x1a7b1f(0x167)](),this[_0x1a7b1f(0x14d)](_0x1a7b1f(0x16e),_0x53d94b);}}export class SourcesBalloonButtonView extends _0x34c5d4{[_0x23fc3b(0x11b)];constructor(_0xda1d15){const _0x399c3f=_0x23fc3b;super(_0xda1d15),this[_0x399c3f(0x13b)]({'withText':!0x0,'role':_0x399c3f(0x14f)}),this[_0x399c3f(0x11b)]=this[_0x399c3f(0x14c)](),this[_0x399c3f(0x12e)]({'attributes':{'class':[Ro]}});}[_0x23fc3b(0x113)](){const _0x3e5f3e=_0x23fc3b;super[_0x3e5f3e(0x113)](),this[_0x3e5f3e(0x154)][_0x3e5f3e(0x12b)](this[_0x3e5f3e(0x11b)]);}[_0x23fc3b(0x14c)](){const _0x4b51e7=_0x23fc3b,_0x1b15c8=new _0xb0d752();return _0x1b15c8[_0x4b51e7(0x128)]=_0x2ce1a5,_0x1b15c8[_0x4b51e7(0x12e)]({'attributes':{'class':Ro+_0x4b51e7(0x184)}}),_0x1b15c8;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x301c77=_0x3fc5;function _0x3fc5(_0x3353f9,_0x33b2ec){const _0x4156c1=_0x4156();return _0x3fc5=function(_0x3fc50e,_0x192584){_0x3fc50e=_0x3fc50e-0x1d8;let _0x69829=_0x4156c1[_0x3fc50e];return _0x69829;},_0x3fc5(_0x3353f9,_0x33b2ec);}function _0x4156(){const _0x1c410f=['_createLoaderView','fire','AI_CHAT_IS_WRITING','35019fvGclg','ck-ai-chat-controls-loader','ck-ai-chat-controls-loader-wrapper','ck-ai-chat-controls-loader-icon-dot','execute','4089540QpxaHr','set','div','1136CIyOmb','ck-reset_all','2423232VDJBJD','setTemplate','_loaderView','ck-ai-chat-controls-loader-icon','431292vfYgpC','locale','_createCancelButtonView','5NWrWfY','451938wWRQlD','AI_CHAT_STOP_GENERATING','17160180VKNerC','1678exSCfu','265YdIjev','ck-ai-button-secondary\x20ck-ai-button-stop-generating','abortPromptStream','_cancelButtonView'];_0x4156=function(){return _0x1c410f;};return _0x4156();}(function(_0x4c933b,_0x381b47){const _0x1b27cf=_0x3fc5,_0x56d090=_0x4c933b();while(!![]){try{const _0x1bbad1=parseInt(_0x1b27cf(0x1e6))/0x1*(parseInt(_0x1b27cf(0x1e5))/0x2)+parseInt(_0x1b27cf(0x1e2))/0x3+parseInt(_0x1b27cf(0x1de))/0x4+-parseInt(_0x1b27cf(0x1e1))/0x5*(-parseInt(_0x1b27cf(0x1da))/0x6)+parseInt(_0x1b27cf(0x1f2))/0x7+parseInt(_0x1b27cf(0x1d8))/0x8*(parseInt(_0x1b27cf(0x1ed))/0x9)+-parseInt(_0x1b27cf(0x1e4))/0xa;if(_0x1bbad1===_0x381b47)break;else _0x56d090['push'](_0x56d090['shift']());}catch(_0x178517){_0x56d090['push'](_0x56d090['shift']());}}}(_0x4156,0x4a8f8));import{ButtonView as _0x2eb60d,View as _0x51cad9}from'ckeditor5/src/ui.js';import{IconStop as _0x3fc845}from'ckeditor5/src/icons.js';import{getTranslation as _0x53544a}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x51cad9{[_0x301c77(0x1e9)];[_0x301c77(0x1dc)];constructor(_0x537f13){const _0x4dde8c=_0x301c77;super(_0x537f13),this[_0x4dde8c(0x1e9)]=this[_0x4dde8c(0x1e0)](),this[_0x4dde8c(0x1dc)]=this[_0x4dde8c(0x1ea)](),this[_0x4dde8c(0x1db)]({'tag':_0x4dde8c(0x1f4),'attributes':{'class':['ck',_0x4dde8c(0x1ef),_0x4dde8c(0x1d9)]},'children':[this[_0x4dde8c(0x1dc)],this[_0x4dde8c(0x1e9)]]});}[_0x301c77(0x1e0)](){const _0x3a5e73=_0x301c77,_0x111769=new _0x2eb60d(this[_0x3a5e73(0x1df)]);return _0x111769[_0x3a5e73(0x1f3)]({'label':_0x53544a(this[_0x3a5e73(0x1df)],_0x3a5e73(0x1e3)),'withText':!0x0,'class':_0x3a5e73(0x1e7),'icon':_0x3fc845}),_0x111769['on'](_0x3a5e73(0x1f1),()=>{const _0x4eb23a=_0x3a5e73;this[_0x4eb23a(0x1eb)](_0x4eb23a(0x1e8));}),_0x111769;}[_0x301c77(0x1ea)](){const _0x8e7cb6=_0x301c77,_0x2f4db5=new _0x51cad9(this[_0x8e7cb6(0x1df)]);return _0x2f4db5[_0x8e7cb6(0x1db)]({'tag':_0x8e7cb6(0x1f4),'attributes':{'class':[_0x8e7cb6(0x1ee)]},'children':[{'tag':_0x8e7cb6(0x1f4),'attributes':{'class':[_0x8e7cb6(0x1dd)]},'children':[{'tag':_0x8e7cb6(0x1f4),'attributes':{'class':[_0x8e7cb6(0x1f0)]}},{'tag':_0x8e7cb6(0x1f4),'attributes':{'class':[_0x8e7cb6(0x1f0)]}},{'tag':_0x8e7cb6(0x1f4),'attributes':{'class':[_0x8e7cb6(0x1f0)]}}]},{'text':_0x53544a(this[_0x8e7cb6(0x1df)],_0x8e7cb6(0x1ec))}]}),_0x2f4db5;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x352fe1=_0x15ed;(function(_0x4c47cd,_0x51714f){const _0x52ac6a=_0x15ed,_0x1f32d4=_0x4c47cd();while(!![]){try{const _0x22dc74=parseInt(_0x52ac6a(0x1e7))/0x1+-parseInt(_0x52ac6a(0x1f2))/0x2*(parseInt(_0x52ac6a(0x1e6))/0x3)+parseInt(_0x52ac6a(0x22a))/0x4*(-parseInt(_0x52ac6a(0x216))/0x5)+-parseInt(_0x52ac6a(0x21c))/0x6*(-parseInt(_0x52ac6a(0x22c))/0x7)+parseInt(_0x52ac6a(0x234))/0x8*(parseInt(_0x52ac6a(0x228))/0x9)+parseInt(_0x52ac6a(0x1f3))/0xa+-parseInt(_0x52ac6a(0x1fb))/0xb*(parseInt(_0x52ac6a(0x1fe))/0xc);if(_0x22dc74===_0x51714f)break;else _0x1f32d4['push'](_0x1f32d4['shift']());}catch(_0x4bf4f6){_0x1f32d4['push'](_0x1f32d4['shift']());}}}(_0x4ecf,0x6260e));import{Collection as _0x39ef7a}from'ckeditor5/src/utils.js';import{IconAI as _0x2a6e0c,IconBulb as _0x1c52ed,IconWeb as _0x106bec}from'@ckeditor/ckeditor5-icons';function _0x15ed(_0xd6772e,_0x110f9e){const _0x4ecf91=_0x4ecf();return _0x15ed=function(_0x15ed07,_0x3017b1){_0x15ed07=_0x15ed07-0x1d6;let _0x2607d4=_0x4ecf91[_0x15ed07];return _0x2607d4;},_0x15ed(_0xd6772e,_0x110f9e);}import{addListToDropdown as _0xfd3ae9,ButtonLabelView as _0x376a2f,ButtonView as _0x1dc2fd,createDropdown as _0x4b9c45,IconView as _0x187cdd,UIModel as _0x2762d7,View as _0x28aa5d}from'ckeditor5/src/ui.js';import{getTranslation as _0x3ec124}from'../../../aicore/utils/common-translations.js';function _0x4ecf(){const _0x367909=['Commands\x20are\x20not\x20implemented\x20yet.','text','setModelList','div','AI_CHAT_DISABLE_WEB_SEARCH','label','addMany','capabilities','model','_createModelSelectionDropdown','AI_CHAT_ENABLE_REASONING','AI_CHAT_COMMANDS','createCollection','log','style','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','setModel','activeModelId','ck-ai-chat-controls__model-selection__item-capabilities','10bkQTzA','listenTo','execute','name','agent','setReasoning','1116IMUaZP','bind','AI_CHAT_DISABLE_REASONING','withText','length','button','tooltip','_createWebSearchButton','add','modelSelectorEnabled','activeModelName','enabled','175041FrGTtW','toggleReasoning','633272dTaqPW','ck-ai-chat__prompt-capabilities','7763wypNYb','setTemplate','span','webSearchActive','webSearch','ck-ai-chat-controls__model-selection','_createCommandsButton','_createReasoningButton','216DJegQL','content','description','extendTemplate','selectModel','ck-ai-chat-controls-button','_modelNameView','AI_CHAT_CAPABILITIES_NO','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','ck-button__label','disableModelSelector','ck-ai-chat-controls__model-name','AI_CHAT_SEARCH_WEB','startsWith','fire','AI_CHAT_CAPABILITIES_YES','modelSelectorVisible','isOn','_reasoningButton','toLowerCase','reasoningActive','set','_webSearchButton','3BrQwwr','415133HFpZSz','isEnabled','ck-ai-chat-controls__model-selection__item-description','locale','clear','setWebSearch','menuitemradio','_getCapabilityParts','enableModelSelector','ck-ai-chat-controls__model-selection__item-name','_commandsButton','1396432jpzwzJ','4689560EJrZFE','toggleWebSearch','isVisible','buttonView','_modelSelectionDropdownItems','reasoning','ck-ai-chat-controls-button--commands','AI_CHAT_REASONING','561cQqpyq','bindTemplate','source','46512BFLEbn','_createModelNameView','AI_CHAT_ENABLE_WEB_SEARCH','ck-hidden','_modelSelectionDropdown'];_0x4ecf=function(){return _0x367909;};return _0x4ecf();}const yo=_0x352fe1(0x22b),Uo=_0x352fe1(0x239),Go=_0x352fe1(0x1f9),jo=_0x352fe1(0x231),Yo=_0x352fe1(0x1f0),qo=_0x352fe1(0x1e9),zo=_0x352fe1(0x215),Fo='n';export class AIChatPromptCapabilitiesView extends _0x28aa5d{[_0x352fe1(0x1e5)];[_0x352fe1(0x1e1)];[_0x352fe1(0x1f1)];[_0x352fe1(0x202)];[_0x352fe1(0x1f7)];[_0x352fe1(0x23a)];constructor(_0x75b6a3){const _0x23e483=_0x352fe1;super(_0x75b6a3),this[_0x23e483(0x1e4)](_0x23e483(0x22f),!0x1),this[_0x23e483(0x1e4)](_0x23e483(0x1e3),!0x1),this[_0x23e483(0x1e4)](_0x23e483(0x1df),!0x0),this[_0x23e483(0x1e4)](_0x23e483(0x225),!0x0),this[_0x23e483(0x1e4)](_0x23e483(0x214),null),this[_0x23e483(0x1e4)](_0x23e483(0x226),null),this[_0x23e483(0x202)]=this[_0x23e483(0x20c)](),this[_0x23e483(0x23a)]=this[_0x23e483(0x1ff)](),this[_0x23e483(0x1e5)]=this[_0x23e483(0x223)](),this[_0x23e483(0x1e1)]=this[_0x23e483(0x233)](),this[_0x23e483(0x1f1)]=this[_0x23e483(0x232)](),this[_0x23e483(0x202)][_0x23e483(0x1f6)][_0x23e483(0x21d)](_0x23e483(0x1f5))['to'](this,_0x23e483(0x1df),_0x5f2b23=>_0x5f2b23),this[_0x23e483(0x202)][_0x23e483(0x1f6)][_0x23e483(0x21d)](_0x23e483(0x222))['to'](this,_0x23e483(0x225),_0x15f6cc=>_0x15f6cc?this[_0x23e483(0x202)][_0x23e483(0x1f6)][_0x23e483(0x208)]:_0x3ec124(this[_0x23e483(0x1ea)],_0x23e483(0x1d7))),this[_0x23e483(0x202)][_0x23e483(0x21d)](_0x23e483(0x1e8))['to'](this,_0x23e483(0x225),_0x30d663=>_0x30d663),this[_0x23e483(0x1e5)][_0x23e483(0x21d)](_0x23e483(0x1e0))['to'](this,_0x23e483(0x22f),_0x25240b=>_0x25240b),this[_0x23e483(0x1e5)][_0x23e483(0x21d)](_0x23e483(0x21f))['to'](this,_0x23e483(0x1df),_0x1025ff=>!_0x1025ff),this[_0x23e483(0x1e5)][_0x23e483(0x21d)](_0x23e483(0x222))['to'](this,_0x23e483(0x22f),_0x1edab4=>_0x3ec124(this[_0x23e483(0x1ea)],_0x1edab4?_0x23e483(0x207):_0x23e483(0x200))),this[_0x23e483(0x1e1)][_0x23e483(0x21d)](_0x23e483(0x1e0))['to'](this,_0x23e483(0x1e3),_0x4bc9bc=>_0x4bc9bc),this[_0x23e483(0x1e1)][_0x23e483(0x21d)](_0x23e483(0x21f))['to'](this,_0x23e483(0x1df),_0x5d0771=>!_0x5d0771),this[_0x23e483(0x1e1)][_0x23e483(0x21d)](_0x23e483(0x222))['to'](this,_0x23e483(0x1e3),_0x371749=>_0x3ec124(this[_0x23e483(0x1ea)],_0x371749?_0x23e483(0x21e):_0x23e483(0x20d))),this[_0x23e483(0x22d)]({'tag':_0x23e483(0x206),'attributes':{'class':[yo]},'children':[this[_0x23e483(0x202)],this[_0x23e483(0x23a)],this[_0x23e483(0x1e5)],this[_0x23e483(0x1e1)],this[_0x23e483(0x1f1)]]}),this[_0x23e483(0x1f7)]=new _0x39ef7a(),_0xfd3ae9(this[_0x23e483(0x202)],this[_0x23e483(0x1f7)]);}[_0x352fe1(0x205)](_0x44c8a7,_0x486d96){const _0xc1a4c5=_0x352fe1;if(this[_0xc1a4c5(0x1e4)](_0xc1a4c5(0x1df),!(_0x486d96&&_0x44c8a7[_0xc1a4c5(0x220)]<=0x1)),this[_0xc1a4c5(0x1f7)][_0xc1a4c5(0x1eb)](),_0x44c8a7?.[_0xc1a4c5(0x220)])for(const _0x1c5b30 of _0x44c8a7){const _0x1523a2=new _0x2762d7({'label':_0x1c5b30[_0xc1a4c5(0x219)],'withText':!0x0,'role':_0xc1a4c5(0x1ed),'id':_0x1c5b30['id'],'model':_0x1c5b30});_0x1523a2[_0xc1a4c5(0x21d)](_0xc1a4c5(0x1e0))['to'](this,_0xc1a4c5(0x214),_0x327961=>_0x327961===_0x1c5b30['id']),this[_0xc1a4c5(0x1f7)][_0xc1a4c5(0x224)]({'type':_0xc1a4c5(0x221),'model':_0x1523a2,'labelView':new Xs(this[_0xc1a4c5(0x1ea)],_0x1c5b30)});}}[_0x352fe1(0x1ec)](_0x2eb961){const _0x2e746a=_0x352fe1;this[_0x2e746a(0x1e4)](_0x2e746a(0x22f),_0x2eb961);}[_0x352fe1(0x21b)](_0x1d07be){const _0x417553=_0x352fe1;this[_0x417553(0x1e4)](_0x417553(0x1e3),_0x1d07be);}[_0x352fe1(0x213)](_0xa1f9e2){const _0x1006c3=_0x352fe1;if(!_0xa1f9e2)return;this[_0x1006c3(0x214)]=_0xa1f9e2['id'],this[_0x1006c3(0x226)]=_0xa1f9e2[_0x1006c3(0x219)]||_0xa1f9e2['id'],this[_0x1006c3(0x202)][_0x1006c3(0x1f6)][_0x1006c3(0x1e4)](_0x1006c3(0x208),_0xa1f9e2[_0x1006c3(0x219)]),this[_0x1006c3(0x202)][_0x1006c3(0x1f6)][_0x1006c3(0x1e4)](_0x1006c3(0x222),_0xa1f9e2[_0x1006c3(0x219)]);const _0x4ee895=_0xa1f9e2[_0x1006c3(0x20a)][_0x1006c3(0x230)]?.[_0x1006c3(0x227)]??!0x1;this[_0x1006c3(0x1e4)](_0x1006c3(0x22f),!0x1),this[_0x1006c3(0x1e5)][_0x1006c3(0x1e4)](_0x1006c3(0x1e0),!0x1),this[_0x1006c3(0x1e5)][_0x1006c3(0x1e4)](_0x1006c3(0x1e8),_0x4ee895),this[_0x1006c3(0x1e5)][_0x1006c3(0x1e4)](_0x1006c3(0x1f5),_0x4ee895);const _0x9955a8=_0xa1f9e2[_0x1006c3(0x20a)][_0x1006c3(0x1f8)]?.[_0x1006c3(0x227)]??!0x1;this[_0x1006c3(0x1e4)](_0x1006c3(0x1e3),!0x1),this[_0x1006c3(0x1e1)][_0x1006c3(0x1e4)](_0x1006c3(0x1e0),!0x1),this[_0x1006c3(0x1e1)][_0x1006c3(0x1e4)](_0x1006c3(0x1e8),_0x9955a8),this[_0x1006c3(0x1e1)][_0x1006c3(0x1e4)](_0x1006c3(0x1f5),_0x9955a8);}[_0x352fe1(0x1ef)](){const _0x1bc70f=_0x352fe1;this[_0x1bc70f(0x1e4)](_0x1bc70f(0x225),!0x0),this[_0x1bc70f(0x1e4)](_0x1bc70f(0x1df),!0x0);}[_0x352fe1(0x1d9)](_0x1784de){const _0x64b081=_0x352fe1;this[_0x64b081(0x1e4)](_0x64b081(0x225),!0x1),_0x1784de&&this[_0x64b081(0x1e4)](_0x64b081(0x1df),!0x1);}[_0x352fe1(0x223)](){const _0x2d81bb=_0x352fe1,_0x61faa9=new _0x1dc2fd();return _0x61faa9[_0x2d81bb(0x1e4)]({'label':_0x3ec124(this[_0x2d81bb(0x1ea)],_0x2d81bb(0x1db)),'icon':_0x106bec,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x61faa9['on'](_0x2d81bb(0x218),()=>{const _0x358b08=_0x2d81bb;this[_0x358b08(0x1dd)](_0x358b08(0x1f4));}),_0x61faa9;}[_0x352fe1(0x233)](){const _0xebe652=_0x352fe1,_0x336a30=new _0x1dc2fd();return _0x336a30[_0xebe652(0x1e4)]({'label':_0x3ec124(this[_0xebe652(0x1ea)],_0xebe652(0x1fa)),'icon':_0x1c52ed,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x336a30['on'](_0xebe652(0x218),()=>{const _0x2fd793=_0xebe652;this[_0x2fd793(0x1dd)](_0x2fd793(0x229));}),_0x336a30;}[_0x352fe1(0x232)](){const _0x883ceb=_0x352fe1,_0x2dabad=new _0x1dc2fd();return _0x2dabad[_0x883ceb(0x1e4)]({'label':_0x3ec124(this[_0x883ceb(0x1ea)],_0x883ceb(0x20e)),'icon':_0x2a6e0c,'withText':!0x0,'class':Uo,'isToggleable':!0x0,'tooltip':_0x3ec124(this[_0x883ceb(0x1ea)],_0x883ceb(0x20e)),'tooltipPosition':Fo}),_0x2dabad[_0x883ceb(0x237)]({'attributes':{'class':[Go]}}),_0x2dabad['on'](_0x883ceb(0x218),()=>{const _0x16380e=_0x883ceb;console[_0x16380e(0x210)](_0x16380e(0x203)),alert(_0x16380e(0x203));}),_0x2dabad;}[_0x352fe1(0x20c)](){const _0x55fc16=_0x352fe1,_0x15a7b1=_0x4b9c45(this[_0x55fc16(0x1ea)]);return _0x15a7b1[_0x55fc16(0x1e4)]({'panelPosition':'ne','class':[jo]}),_0x15a7b1[_0x55fc16(0x1f6)][_0x55fc16(0x1e4)]({'label':_0x3ec124(this[_0x55fc16(0x1ea)],_0x55fc16(0x212)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Fo}),this[_0x55fc16(0x217)](_0x15a7b1,_0x55fc16(0x218),_0x38b3da=>{const _0x87aa88=_0x55fc16;this[_0x87aa88(0x1dd)](_0x87aa88(0x238),_0x38b3da[_0x87aa88(0x1fd)][_0x87aa88(0x20b)]);}),_0x15a7b1;}[_0x352fe1(0x1ff)](){const _0x10904e=_0x352fe1,_0x4c3a95=new Jo(this[_0x10904e(0x1ea)]);return _0x4c3a95[_0x10904e(0x21d)](_0x10904e(0x204))['to'](this,_0x10904e(0x226),_0x17578b=>_0x17578b??''),_0x4c3a95[_0x10904e(0x21d)](_0x10904e(0x1f5))['to'](this,_0x10904e(0x1df),this,_0x10904e(0x226),(_0x13e71e,_0x274d22)=>!_0x13e71e&&!_0x274d22?.[_0x10904e(0x1e2)]()[_0x10904e(0x1dc)](_0x10904e(0x21a))),_0x4c3a95;}}class Xs extends _0x376a2f{constructor(_0xf74cf3,_0xb4339f){const _0x14972=_0x352fe1;super();const _0x1fcdb5=this[_0x14972(0x1fc)],_0x1e250a=this[_0x14972(0x20f)]();this[_0x14972(0x22d)]({'tag':_0x14972(0x206),'attributes':{'class':['ck',_0x14972(0x1d8)],'style':_0x1fcdb5['to'](_0x14972(0x211)),'id':_0x1fcdb5['to']('id')},'children':[{'tag':_0x14972(0x206),'attributes':{'class':[Yo]},'children':[{'text':_0x1fcdb5['to'](_0x14972(0x204))}]},{'tag':_0x14972(0x206),'attributes':{'class':[qo]},'children':[{'tag':_0x14972(0x22e),'children':[{'text':_0xb4339f[_0x14972(0x236)]}]}]},{'tag':_0x14972(0x206),'attributes':{'class':[zo]},'children':_0x1e250a}]}),_0x1e250a[_0x14972(0x209)](this[_0x14972(0x1ee)](_0xf74cf3,_0x106bec,_0x14972(0x1db),_0xb4339f[_0x14972(0x20a)][_0x14972(0x230)]?.[_0x14972(0x227)]??!0x1)),_0x1e250a[_0x14972(0x209)](this[_0x14972(0x1ee)](_0xf74cf3,_0x1c52ed,_0x14972(0x1fa),_0xb4339f[_0x14972(0x20a)][_0x14972(0x1f8)]?.[_0x14972(0x227)]??!0x1));}[_0x352fe1(0x1ee)](_0xe4c472,_0x34eae9,_0x3a44c7,_0x3efcce){const _0x195bee=_0x352fe1,_0x10534e=new _0x187cdd();_0x10534e[_0x195bee(0x235)]=_0x34eae9;const _0x5b2370=new _0x28aa5d(_0xe4c472);_0x5b2370[_0x195bee(0x22d)]({'tag':_0x195bee(0x22e),'children':[{'text':_0x3ec124(_0xe4c472,_0x3a44c7)+':\x20'}]});const _0x23903b=new _0x28aa5d(_0xe4c472);return _0x23903b[_0x195bee(0x22d)]({'tag':_0x195bee(0x22e),'children':[{'text':_0x3ec124(_0xe4c472,_0x3efcce?_0x195bee(0x1de):_0x195bee(0x1d6))}]}),[_0x10534e,_0x5b2370,_0x23903b];}}class Jo extends _0x28aa5d{constructor(_0x30b97d){const _0x567839=_0x352fe1;super(_0x30b97d),this[_0x567839(0x1e4)](_0x567839(0x204),void 0x0),this[_0x567839(0x1e4)](_0x567839(0x1f5),!0x0);const _0x59ea1f=this[_0x567839(0x1fc)];this[_0x567839(0x22d)]({'tag':_0x567839(0x22e),'attributes':{'class':['ck',_0x567839(0x1da),_0x59ea1f['if'](_0x567839(0x1f5),_0x567839(0x201),_0x22e979=>!_0x22e979)]},'children':[{'text':_0x59ea1f['to'](_0x567839(0x204))}]});}}
|
|
23
|
+
const _0x53184d=_0x51b0;(function(_0x4576de,_0x3dc9ed){const _0x5bc16d=_0x51b0,_0x578709=_0x4576de();while(!![]){try{const _0x6291d8=-parseInt(_0x5bc16d(0xfd))/0x1*(-parseInt(_0x5bc16d(0x11d))/0x2)+parseInt(_0x5bc16d(0x157))/0x3+parseInt(_0x5bc16d(0x154))/0x4+-parseInt(_0x5bc16d(0x132))/0x5*(parseInt(_0x5bc16d(0x13c))/0x6)+-parseInt(_0x5bc16d(0x116))/0x7+-parseInt(_0x5bc16d(0x126))/0x8*(-parseInt(_0x5bc16d(0x11a))/0x9)+parseInt(_0x5bc16d(0x15f))/0xa*(-parseInt(_0x5bc16d(0x15e))/0xb);if(_0x6291d8===_0x3dc9ed)break;else _0x578709['push'](_0x578709['shift']());}catch(_0x47103a){_0x578709['push'](_0x578709['shift']());}}}(_0x18d4,0xadc6f));function _0x51b0(_0x487252,_0x3cd8d8){const _0x18d4c4=_0x18d4();return _0x51b0=function(_0x51b0cf,_0xbc6b9a){_0x51b0cf=_0x51b0cf-0xfd;let _0x11ff07=_0x18d4c4[_0x51b0cf];return _0x11ff07;},_0x51b0(_0x487252,_0x3cd8d8);}import{Collection as _0x55bae2}from'ckeditor5/src/utils.js';import{IconAI as _0x4b8959,IconBulb as _0x35b36c,IconWeb as _0x1ced6a}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x36508b,ButtonLabelView as _0x275c46,ButtonView as _0x1f5bf6,createDropdown as _0x518fc9,IconView as _0x235d38,UIModel as _0x32f870,View as _0x34d75e}from'ckeditor5/src/ui.js';import{getTranslation as _0x5e0d75}from'../../../aicore/utils/common-translations.js';const yo=_0x53184d(0x11b),Uo=_0x53184d(0x131),Go=_0x53184d(0x133),jo=_0x53184d(0x159),Yo=_0x53184d(0x149),qo=_0x53184d(0x15d),zo=_0x53184d(0x102),Fo='n';export class AIChatPromptCapabilitiesView extends _0x34d75e{[_0x53184d(0x106)];[_0x53184d(0x10d)];[_0x53184d(0x14e)];[_0x53184d(0x134)];[_0x53184d(0x142)];[_0x53184d(0x146)];constructor(_0x401d97){const _0x48867e=_0x53184d;super(_0x401d97),this[_0x48867e(0x122)](_0x48867e(0x108),!0x1),this[_0x48867e(0x122)](_0x48867e(0x145),!0x1),this[_0x48867e(0x122)](_0x48867e(0x119),!0x0),this[_0x48867e(0x122)](_0x48867e(0x117),!0x0),this[_0x48867e(0x122)](_0x48867e(0x144),null),this[_0x48867e(0x122)](_0x48867e(0x10a),null),this[_0x48867e(0x134)]=this[_0x48867e(0x105)](),this[_0x48867e(0x146)]=this[_0x48867e(0x127)](),this[_0x48867e(0x106)]=this[_0x48867e(0x110)](),this[_0x48867e(0x10d)]=this[_0x48867e(0x137)](),this[_0x48867e(0x14e)]=this[_0x48867e(0x11f)](),this[_0x48867e(0x134)][_0x48867e(0x13f)][_0x48867e(0x10f)](_0x48867e(0x13e))['to'](this,_0x48867e(0x119),_0x1576dd=>_0x1576dd),this[_0x48867e(0x134)][_0x48867e(0x13f)][_0x48867e(0x10f)](_0x48867e(0x138))['to'](this,_0x48867e(0x117),_0x4b2b8b=>_0x4b2b8b?this[_0x48867e(0x134)][_0x48867e(0x13f)][_0x48867e(0x14f)]:_0x5e0d75(this[_0x48867e(0x120)],_0x48867e(0x139))),this[_0x48867e(0x134)][_0x48867e(0x10f)](_0x48867e(0x12f))['to'](this,_0x48867e(0x117),_0x11e02e=>_0x11e02e),this[_0x48867e(0x106)][_0x48867e(0x10f)](_0x48867e(0x124))['to'](this,_0x48867e(0x108),_0x7486a4=>_0x7486a4),this[_0x48867e(0x106)][_0x48867e(0x10f)](_0x48867e(0x101))['to'](this,_0x48867e(0x119),_0x3259b5=>!_0x3259b5),this[_0x48867e(0x106)][_0x48867e(0x10f)](_0x48867e(0x138))['to'](this,_0x48867e(0x108),_0x284769=>_0x5e0d75(this[_0x48867e(0x120)],_0x284769?_0x48867e(0x155):_0x48867e(0x12e))),this[_0x48867e(0x10d)][_0x48867e(0x10f)](_0x48867e(0x124))['to'](this,_0x48867e(0x145),_0x2f188c=>_0x2f188c),this[_0x48867e(0x10d)][_0x48867e(0x10f)](_0x48867e(0x101))['to'](this,_0x48867e(0x119),_0x18ed98=>!_0x18ed98),this[_0x48867e(0x10d)][_0x48867e(0x10f)](_0x48867e(0x138))['to'](this,_0x48867e(0x145),_0x3f9125=>_0x5e0d75(this[_0x48867e(0x120)],_0x3f9125?_0x48867e(0x12d):_0x48867e(0x13a))),this[_0x48867e(0x141)]({'tag':_0x48867e(0x12a),'attributes':{'class':[yo]},'children':[this[_0x48867e(0x134)],this[_0x48867e(0x146)],this[_0x48867e(0x106)],this[_0x48867e(0x10d)],this[_0x48867e(0x14e)]]}),this[_0x48867e(0x142)]=new _0x55bae2(),_0x36508b(this[_0x48867e(0x134)],this[_0x48867e(0x142)]);}[_0x53184d(0x114)](_0x539083,_0x3af1b4){const _0x3000b0=_0x53184d;if(this[_0x3000b0(0x122)](_0x3000b0(0x119),!(_0x3af1b4&&_0x539083[_0x3000b0(0x107)]<=0x1)),this[_0x3000b0(0x142)][_0x3000b0(0x15c)](),_0x539083?.[_0x3000b0(0x107)])for(const _0x5ef192 of _0x539083){const _0x201ee9=new _0x32f870({'label':_0x5ef192[_0x3000b0(0x112)],'withText':!0x0,'role':_0x3000b0(0x130),'id':_0x5ef192['id'],'model':_0x5ef192});_0x201ee9[_0x3000b0(0x10f)](_0x3000b0(0x124))['to'](this,_0x3000b0(0x144),_0x49bb2d=>_0x49bb2d===_0x5ef192['id']),this[_0x3000b0(0x142)][_0x3000b0(0x152)]({'type':_0x3000b0(0x14d),'model':_0x201ee9,'labelView':new Us(this[_0x3000b0(0x120)],_0x5ef192)});}}[_0x53184d(0x135)](_0x395d7f){const _0x3f50b3=_0x53184d;this[_0x3f50b3(0x122)](_0x3f50b3(0x108),_0x395d7f);}[_0x53184d(0x13d)](_0x279921){const _0x1c24e0=_0x53184d;this[_0x1c24e0(0x122)](_0x1c24e0(0x145),_0x279921);}[_0x53184d(0x118)](_0x4cf860){const _0x47bf8b=_0x53184d;if(!_0x4cf860)return;this[_0x47bf8b(0x144)]=_0x4cf860['id'],this[_0x47bf8b(0x10a)]=_0x4cf860[_0x47bf8b(0x112)]||_0x4cf860['id'],this[_0x47bf8b(0x134)][_0x47bf8b(0x13f)][_0x47bf8b(0x122)](_0x47bf8b(0x14f),_0x4cf860[_0x47bf8b(0x112)]),this[_0x47bf8b(0x134)][_0x47bf8b(0x13f)][_0x47bf8b(0x122)](_0x47bf8b(0x138),_0x4cf860[_0x47bf8b(0x112)]);const _0x48ebf3=_0x4cf860[_0x47bf8b(0x136)][_0x47bf8b(0x147)]?.[_0x47bf8b(0x151)]??!0x1;this[_0x47bf8b(0x122)](_0x47bf8b(0x108),!0x1),this[_0x47bf8b(0x106)][_0x47bf8b(0x122)](_0x47bf8b(0x124),!0x1),this[_0x47bf8b(0x106)][_0x47bf8b(0x122)](_0x47bf8b(0x12f),_0x48ebf3),this[_0x47bf8b(0x106)][_0x47bf8b(0x122)](_0x47bf8b(0x13e),_0x48ebf3);const _0x35c5e8=_0x4cf860[_0x47bf8b(0x136)][_0x47bf8b(0x143)]?.[_0x47bf8b(0x151)]??!0x1;this[_0x47bf8b(0x122)](_0x47bf8b(0x145),!0x1),this[_0x47bf8b(0x10d)][_0x47bf8b(0x122)](_0x47bf8b(0x124),!0x1),this[_0x47bf8b(0x10d)][_0x47bf8b(0x122)](_0x47bf8b(0x12f),_0x35c5e8),this[_0x47bf8b(0x10d)][_0x47bf8b(0x122)](_0x47bf8b(0x13e),_0x35c5e8);}[_0x53184d(0x148)](){const _0x4cd84b=_0x53184d;this[_0x4cd84b(0x122)](_0x4cd84b(0x117),!0x0),this[_0x4cd84b(0x122)](_0x4cd84b(0x119),!0x0);}[_0x53184d(0x150)](_0x107ea4){const _0xb0b3dc=_0x53184d;this[_0xb0b3dc(0x122)](_0xb0b3dc(0x117),!0x1),_0x107ea4&&this[_0xb0b3dc(0x122)](_0xb0b3dc(0x119),!0x1);}[_0x53184d(0x110)](){const _0x15461d=_0x53184d,_0x465603=new _0x1f5bf6();return _0x465603[_0x15461d(0x122)]({'label':_0x5e0d75(this[_0x15461d(0x120)],_0x15461d(0x14a)),'icon':_0x1ced6a,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x465603['on'](_0x15461d(0x103),()=>{const _0x59352a=_0x15461d;this[_0x59352a(0x128)](_0x59352a(0x129));}),_0x465603;}[_0x53184d(0x137)](){const _0x40540d=_0x53184d,_0x169ebb=new _0x1f5bf6();return _0x169ebb[_0x40540d(0x122)]({'label':_0x5e0d75(this[_0x40540d(0x120)],_0x40540d(0x121)),'icon':_0x35b36c,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x169ebb['on'](_0x40540d(0x103),()=>{const _0x3df381=_0x40540d;this[_0x3df381(0x128)](_0x3df381(0x123));}),_0x169ebb;}[_0x53184d(0x11f)](){const _0x222bda=_0x53184d,_0x4bf74e=new _0x1f5bf6();return _0x4bf74e[_0x222bda(0x122)]({'label':_0x5e0d75(this[_0x222bda(0x120)],_0x222bda(0x10b)),'icon':_0x4b8959,'withText':!0x0,'class':Uo,'isToggleable':!0x0,'tooltip':_0x5e0d75(this[_0x222bda(0x120)],_0x222bda(0x10b)),'tooltipPosition':Fo}),_0x4bf74e[_0x222bda(0xfe)]({'attributes':{'class':[Go]}}),_0x4bf74e['on'](_0x222bda(0x103),()=>{const _0x4c3c71=_0x222bda;console[_0x4c3c71(0x113)](_0x4c3c71(0x12c)),alert(_0x4c3c71(0x12c));}),_0x4bf74e;}[_0x53184d(0x105)](){const _0x268f07=_0x53184d,_0x115ddf=_0x518fc9(this[_0x268f07(0x120)]);return _0x115ddf[_0x268f07(0x122)]({'panelPosition':'ne','class':[jo]}),_0x115ddf[_0x268f07(0x13f)][_0x268f07(0x122)]({'label':_0x5e0d75(this[_0x268f07(0x120)],_0x268f07(0x104)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Fo}),this[_0x268f07(0x12b)](_0x115ddf,_0x268f07(0x103),_0x301590=>{const _0x583de2=_0x268f07;this[_0x583de2(0x128)](_0x583de2(0x125),_0x301590[_0x583de2(0x14b)][_0x583de2(0x160)]);}),_0x115ddf;}[_0x53184d(0x127)](){const _0x26e5d5=_0x53184d,_0x3ed2fa=new Jo(this[_0x26e5d5(0x120)]);return _0x3ed2fa[_0x26e5d5(0x10f)](_0x26e5d5(0x153))['to'](this,_0x26e5d5(0x10a),_0x564a63=>_0x564a63??''),_0x3ed2fa[_0x26e5d5(0x10f)](_0x26e5d5(0x13e))['to'](this,_0x26e5d5(0x119),this,_0x26e5d5(0x10a),(_0x5d1d97,_0xed983c)=>!_0x5d1d97&&!_0xed983c?.[_0x26e5d5(0x11c)]()[_0x26e5d5(0x111)](_0x26e5d5(0x10c))),_0x3ed2fa;}}class Us extends _0x275c46{constructor(_0x5a68ea,_0xabd9c5){const _0x295e83=_0x53184d;super();const _0x4b0917=this[_0x295e83(0x14c)],_0x409509=this[_0x295e83(0x13b)]();this[_0x295e83(0x141)]({'tag':_0x295e83(0x12a),'attributes':{'class':['ck',_0x295e83(0x15a)],'style':_0x4b0917['to'](_0x295e83(0x15b)),'id':_0x4b0917['to']('id')},'children':[{'tag':_0x295e83(0x12a),'attributes':{'class':[Yo]},'children':[{'text':_0x4b0917['to'](_0x295e83(0x153))}]},{'tag':_0x295e83(0x12a),'attributes':{'class':[qo]},'children':[{'tag':_0x295e83(0x109),'children':[{'text':_0xabd9c5[_0x295e83(0x140)]}]}]},{'tag':_0x295e83(0x12a),'attributes':{'class':[zo]},'children':_0x409509}]}),_0x409509[_0x295e83(0x11e)](this[_0x295e83(0xff)](_0x5a68ea,_0x1ced6a,_0x295e83(0x14a),_0xabd9c5[_0x295e83(0x136)][_0x295e83(0x147)]?.[_0x295e83(0x151)]??!0x1)),_0x409509[_0x295e83(0x11e)](this[_0x295e83(0xff)](_0x5a68ea,_0x35b36c,_0x295e83(0x121),_0xabd9c5[_0x295e83(0x136)][_0x295e83(0x143)]?.[_0x295e83(0x151)]??!0x1));}[_0x53184d(0xff)](_0x70974a,_0x373b2e,_0xe8c32c,_0x2e08a4){const _0x7a66e4=_0x53184d,_0xb22966=new _0x235d38();_0xb22966[_0x7a66e4(0x158)]=_0x373b2e;const _0x3e3027=new _0x34d75e(_0x70974a);_0x3e3027[_0x7a66e4(0x141)]({'tag':_0x7a66e4(0x109),'children':[{'text':_0x5e0d75(_0x70974a,_0xe8c32c)+':\x20'}]});const _0x26eea7=new _0x34d75e(_0x70974a);return _0x26eea7[_0x7a66e4(0x141)]({'tag':_0x7a66e4(0x109),'children':[{'text':_0x5e0d75(_0x70974a,_0x2e08a4?_0x7a66e4(0x115):_0x7a66e4(0x100))}]}),[_0xb22966,_0x3e3027,_0x26eea7];}}class Jo extends _0x34d75e{constructor(_0x4e0ad5){const _0x267688=_0x53184d;super(_0x4e0ad5),this[_0x267688(0x122)](_0x267688(0x153),void 0x0),this[_0x267688(0x122)](_0x267688(0x13e),!0x0);const _0x5439a7=this[_0x267688(0x14c)];this[_0x267688(0x141)]({'tag':_0x267688(0x109),'attributes':{'class':['ck',_0x267688(0x156),_0x5439a7['if'](_0x267688(0x13e),_0x267688(0x10e),_0x559007=>!_0x559007)]},'children':[{'text':_0x5439a7['to'](_0x267688(0x153))}]});}}function _0x18d4(){const _0x4c5ad7=['_createModelSelectionDropdown','_webSearchButton','length','webSearchActive','span','activeModelName','AI_CHAT_COMMANDS','agent','_reasoningButton','ck-hidden','bind','_createWebSearchButton','startsWith','name','log','setModelList','AI_CHAT_CAPABILITIES_YES','5124602bgyIDv','modelSelectorEnabled','setModel','modelSelectorVisible','1016748bnaSzk','ck-ai-chat__prompt-capabilities','toLowerCase','1516fMGYzX','addMany','_createCommandsButton','locale','AI_CHAT_REASONING','set','toggleReasoning','isOn','selectModel','32UESIXg','_createModelNameView','fire','toggleWebSearch','div','listenTo','Commands\x20are\x20not\x20implemented\x20yet.','AI_CHAT_DISABLE_REASONING','AI_CHAT_ENABLE_WEB_SEARCH','isEnabled','menuitemradio','ck-ai-chat-controls-button','4190oitxZX','ck-ai-chat-controls-button--commands','_modelSelectionDropdown','setWebSearch','capabilities','_createReasoningButton','tooltip','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','AI_CHAT_ENABLE_REASONING','createCollection','3162gSwcle','setReasoning','isVisible','buttonView','description','setTemplate','_modelSelectionDropdownItems','reasoning','activeModelId','reasoningActive','_modelNameView','webSearch','enableModelSelector','ck-ai-chat-controls__model-selection__item-name','AI_CHAT_SEARCH_WEB','source','bindTemplate','button','_commandsButton','label','disableModelSelector','enabled','add','text','1901760xCbEhO','AI_CHAT_DISABLE_WEB_SEARCH','ck-ai-chat-controls__model-name','750669eOjGLb','content','ck-ai-chat-controls__model-selection','ck-button__label','style','clear','ck-ai-chat-controls__model-selection__item-description','7700qZacUX','8230HvRyMK','model','1694vDzDtO','extendTemplate','_getCapabilityParts','AI_CHAT_CAPABILITIES_NO','withText','ck-ai-chat-controls__model-selection__item-capabilities','execute','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP'];_0x18d4=function(){return _0x4c5ad7;};return _0x18d4();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xef6b14=_0x436e;function _0x436e(_0x1f6e21,_0x2136e0){const _0x2bd206=_0x2bd2();return _0x436e=function(_0x436ec4,_0x2e5303){_0x436ec4=_0x436ec4-0x1ca;let _0x2cc643=_0x2bd206[_0x436ec4];return _0x2cc643;},_0x436e(_0x1f6e21,_0x2136e0);}(function(_0x10afd5,_0x1c2281){const _0x4c8fdb=_0x436e,_0x460229=_0x10afd5();while(!![]){try{const _0x4cd956=parseInt(_0x4c8fdb(0x1eb))/0x1*(parseInt(_0x4c8fdb(0x1d6))/0x2)+-parseInt(_0x4c8fdb(0x1f5))/0x3*(parseInt(_0x4c8fdb(0x1ef))/0x4)+parseInt(_0x4c8fdb(0x204))/0x5+-parseInt(_0x4c8fdb(0x1cd))/0x6*(-parseInt(_0x4c8fdb(0x1e0))/0x7)+-parseInt(_0x4c8fdb(0x1fa))/0x8+parseInt(_0x4c8fdb(0x1f4))/0x9+parseInt(_0x4c8fdb(0x1f8))/0xa*(parseInt(_0x4c8fdb(0x1fd))/0xb);if(_0x4cd956===_0x1c2281)break;else _0x460229['push'](_0x460229['shift']());}catch(_0x10d093){_0x460229['push'](_0x460229['shift']());}}}(_0x2bd2,0xe92f2));import{IconSubmit as _0x2d0e00}from'ckeditor5/src/icons.js';import{ButtonView as _0x4e7725,AutocompleteView as _0x22b7e6,createLabeledTextarea as _0x10406a}from'ckeditor5/src/ui.js';import{global as _0xcd581d,isVisible as _0x4615be,Rect as _0x93c2b6,ResizeObserver as _0x366a7b}from'ckeditor5/src/utils.js';import{getTranslation as _0x38d85c}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x10b965}from'./aichatpromptsuggestionslistview.js';import{escape as _0xf69b8c}from'es-toolkit/compat';function _0x2bd2(){const _0x203c21=['style','focusableChildren','maxRows','uiLanguageDirection','execute','37ArrPpk','fieldView','_setUpAddContextButtonPositioning','rtl','283796gSTIJk','setIsUploadInProgress','left','element','queryView','4762737bfZART','27QLpgyv','destroy','excludeScrollbarsAndBorders','470nZyriM','right','10782912DJjJfV','sendUserMessage','hasError','66044NjfDmm','trim','fieldWrapperChildren','px\x20-\x20var(--ck-spacing-tiny))','ck-ai-chat__prompt-input','submitButtonView','isUploadInProgress','2219145eoOpHq','minRows','extendTemplate','enter','placeholder','bind','AI_CHAT_PROMPT_EMPTY_ERROR','render','MAX_ROWS','MIN_ROWS','requestAnimationFrame','732ZOPEio','locale','keystrokes','ck-ai-chat__prompt-submit-button','width','target','reset','isEnabled','value','68790jMhcYB','add','setPlaceholderText','calc(','_createSubmitButton','_addContextButtonView','update','set','AI_CHAT_LABEL_SUBMIT','fire','23737liYKrI','isEmpty','window','_queryViewResizeObserver','submit','errorText'];_0x2bd2=function(){return _0x203c21;};return _0x2bd2();}export class AIChatPromptInputView extends _0x22b7e6{[_0xef6b14(0x202)];static [_0xef6b14(0x1cb)]=0x1;static [_0xef6b14(0x1ca)]=0xc;[_0xef6b14(0x1db)];[_0xef6b14(0x1e3)];constructor(_0x1a7b78,_0xaac3d2){const _0x301cc1=_0xef6b14;super(_0x1a7b78,{'queryView':{'label':'','creator':_0x10406a,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x10b965(_0x1a7b78),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x301cc1(0x1dd)](_0x301cc1(0x1e1),!0x0),this[_0x301cc1(0x1dd)](_0x301cc1(0x203),!0x1),this[_0x301cc1(0x1db)]=_0xaac3d2,this[_0x301cc1(0x1e3)]=null,this[_0x301cc1(0x1f3)][_0x301cc1(0x1ec)][_0x301cc1(0x205)]=AIChatPromptInputView[_0x301cc1(0x1cb)],this[_0x301cc1(0x1f3)][_0x301cc1(0x1ec)][_0x301cc1(0x1e8)]=AIChatPromptInputView[_0x301cc1(0x1ca)],this[_0x301cc1(0x1f3)][_0x301cc1(0x1ff)][_0x301cc1(0x1d7)](this[_0x301cc1(0x1db)]),this[_0x301cc1(0x1ed)](),this[_0x301cc1(0x206)]({'attributes':{'class':['ck',_0x301cc1(0x201)]}}),this[_0x301cc1(0x202)]=this[_0x301cc1(0x1da)](),this[_0x301cc1(0x202)][_0x301cc1(0x209)](_0x301cc1(0x1d4))['to'](this,_0x301cc1(0x1e1),this,_0x301cc1(0x203),(_0x127f11,_0x4e31d6)=>!_0x127f11&&!_0x4e31d6),this[_0x301cc1(0x1e7)][_0x301cc1(0x1d7)](this[_0x301cc1(0x202)]);}[_0xef6b14(0x20b)](){const _0xca856f=_0xef6b14;super[_0xca856f(0x20b)](),this[_0xca856f(0x1f3)][_0xca856f(0x1ff)][_0xca856f(0x1d7)](this[_0xca856f(0x202)]),this[_0xca856f(0x1cf)][_0xca856f(0x1dd)](_0xca856f(0x207),(_0x2ea0bf,_0x4403ad)=>{const _0x3efb7e=_0xca856f;this[_0x3efb7e(0x203)]||this[_0x3efb7e(0x1e1)]||_0x2ea0bf[_0x3efb7e(0x1d2)]==this[_0x3efb7e(0x1f3)][_0x3efb7e(0x1ec)][_0x3efb7e(0x1f2)]&&(this[_0x3efb7e(0x1e4)](),_0x4403ad());}),this[_0xca856f(0x1f3)][_0xca856f(0x1ec)]['on'](_0xca856f(0x1dc),()=>{const _0x11a90c=_0xca856f;this[_0x11a90c(0x1e1)]=''===this[_0x11a90c(0x1f3)][_0x11a90c(0x1ec)][_0x11a90c(0x1f2)][_0x11a90c(0x1d5)]?.[_0x11a90c(0x1fe)]();});}[_0xef6b14(0x1f6)](){const _0x564ce0=_0xef6b14;super[_0x564ce0(0x1f6)](),this[_0x564ce0(0x1e3)]&&this[_0x564ce0(0x1e3)][_0x564ce0(0x1f6)]();}[_0xef6b14(0x1e4)](){const _0x5cec03=_0xef6b14,_0x168076=this[_0x5cec03(0x1f3)][_0x5cec03(0x1ec)][_0x5cec03(0x1f2)][_0x5cec03(0x1d5)]?.[_0x5cec03(0x1fe)]();if(!_0x168076)return this[_0x5cec03(0x1f3)][_0x5cec03(0x1e5)]=_0x38d85c(this[_0x5cec03(0x1ce)],_0x5cec03(0x20a)),void(this[_0x5cec03(0x1f3)][_0x5cec03(0x1ec)][_0x5cec03(0x1fc)]=!0x0);this[_0x5cec03(0x1f3)][_0x5cec03(0x1ec)][_0x5cec03(0x1fc)]=!0x1;const _0x44828a=_0xf69b8c(_0x168076);this[_0x5cec03(0x1df)](_0x5cec03(0x1fb),_0x44828a),this[_0x5cec03(0x1f3)][_0x5cec03(0x1ec)][_0x5cec03(0x1d3)]();}[_0xef6b14(0x1d8)](_0x2528c0){const _0x462867=_0xef6b14;this[_0x462867(0x1f3)][_0x462867(0x1ec)][_0x462867(0x1dd)](_0x462867(0x208),_0x2528c0);}[_0xef6b14(0x1da)](){const _0x2eaf97=_0xef6b14,_0x14c65f=new _0x4e7725(this[_0x2eaf97(0x1ce)]);return _0x14c65f[_0x2eaf97(0x1dd)]({'icon':_0x2d0e00,'label':_0x38d85c(this[_0x2eaf97(0x1ce)],_0x2eaf97(0x1de)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2eaf97(0x1d0),'isEnabled':!0x1}),_0x14c65f['on'](_0x2eaf97(0x1ea),()=>{const _0x149a37=_0x2eaf97;this[_0x149a37(0x1e4)]();}),_0x14c65f;}[_0xef6b14(0x1f0)](_0x65f1ca){const _0x232c28=_0xef6b14;this[_0x232c28(0x203)]=_0x65f1ca;}[_0xef6b14(0x1ed)](){const _0x37a6da=_0xef6b14,_0x47d7ae=this[_0x37a6da(0x1ce)],_0x457f44=()=>{const _0x1ccaac=_0x37a6da;_0xcd581d[_0x1ccaac(0x1e2)][_0x1ccaac(0x1cc)](()=>{const _0x1e9e24=_0x1ccaac;if(_0x4615be(this[_0x1e9e24(0x1f2)])){const _0x415a7f=new _0x93c2b6(this[_0x1e9e24(0x1f3)][_0x1e9e24(0x1ec)][_0x1e9e24(0x1f2)]),_0x4c5bfb=new _0x93c2b6(this[_0x1e9e24(0x1db)][_0x1e9e24(0x1f2)]),_0x1b0549=_0x415a7f[_0x1e9e24(0x1d1)],_0x337a1a=_0x1e9e24(0x1ee)===_0x47d7ae[_0x1e9e24(0x1e9)]?_0x1e9e24(0x1f9):_0x1e9e24(0x1f1);_0x415a7f[_0x1e9e24(0x1f7)]();const _0x323043=_0x1b0549-_0x415a7f[_0x1e9e24(0x1d1)]+0x1;this[_0x1e9e24(0x1db)][_0x1e9e24(0x1f2)][_0x1e9e24(0x1e6)][_0x337a1a]=_0x1e9e24(0x1d9)+(_0x1b0549-_0x4c5bfb[_0x1e9e24(0x1d1)]-_0x323043)+_0x1e9e24(0x200);}});};this[_0x37a6da(0x1f3)][_0x37a6da(0x1ec)]['on'](_0x37a6da(0x1dc),_0x457f44),this['on'](_0x37a6da(0x20b),()=>{const _0x488f78=_0x37a6da;_0x457f44(),this[_0x488f78(0x1e3)]=new _0x366a7b(this[_0x488f78(0x1f3)][_0x488f78(0x1ec)][_0x488f78(0x1f2)],()=>{_0x457f44();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1672cc=_0xd13b;function _0xd13b(_0x5f0822,_0x3df0d7){const _0x5c0c41=_0x5c0c();return _0xd13b=function(_0xd13ba1,_0x3ff8ad){_0xd13ba1=_0xd13ba1-0x183;let _0x415c3b=_0x5c0c41[_0xd13ba1];return _0x415c3b;},_0xd13b(_0x5f0822,_0x3df0d7);}(function(_0x1c8f0f,_0x26b098){const _0x100e5e=_0xd13b,_0x40f1d4=_0x1c8f0f();while(!![]){try{const _0x2f9f0a=parseInt(_0x100e5e(0x18d))/0x1+parseInt(_0x100e5e(0x187))/0x2*(parseInt(_0x100e5e(0x183))/0x3)+-parseInt(_0x100e5e(0x186))/0x4*(parseInt(_0x100e5e(0x18c))/0x5)+-parseInt(_0x100e5e(0x184))/0x6+parseInt(_0x100e5e(0x189))/0x7+parseInt(_0x100e5e(0x18b))/0x8+-parseInt(_0x100e5e(0x18a))/0x9;if(_0x2f9f0a===_0x26b098)break;else _0x40f1d4['push'](_0x40f1d4['shift']());}catch(_0x22e2bc){_0x40f1d4['push'](_0x40f1d4['shift']());}}}(_0x5c0c,0xd2023));import{ListView as _0x40a19c}from'ckeditor5/src/ui.js';function _0x5c0c(){const _0x5b8968=['689510LZMKjb','filter','4897980rWdCZp','9190452PAYfDg','length','4ZRCDJU','2KyZHJC','items','7343084YjETRB','9230040QxijRL','516624XWoces','91315GCOkGc'];_0x5c0c=function(){return _0x5b8968;};return _0x5c0c();}export class AIChatPromptSuggestionsListView extends _0x40a19c{[_0x1672cc(0x18e)](){const _0x2ecffc=_0x1672cc;let _0x1a768d=0x0;for(const _0x3a84ca of this[_0x2ecffc(0x188)])_0x1a768d+=_0x3a84ca[_0x2ecffc(0x188)][_0x2ecffc(0x185)];return{'resultsCount':_0x1a768d,'totalItemsCount':_0x1a768d};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5108cc=_0x59cb;function _0x59cb(_0x295055,_0x573266){const _0x12733f=_0x1273();return _0x59cb=function(_0x59cb54,_0x404e90){_0x59cb54=_0x59cb54-0xd5;let _0x1546b0=_0x12733f[_0x59cb54];return _0x1546b0;},_0x59cb(_0x295055,_0x573266);}(function(_0x342a29,_0x377856){const _0x2cc776=_0x59cb,_0x1c096d=_0x342a29();while(!![]){try{const _0x16891b=parseInt(_0x2cc776(0xdb))/0x1+parseInt(_0x2cc776(0xd6))/0x2+-parseInt(_0x2cc776(0xef))/0x3*(parseInt(_0x2cc776(0xda))/0x4)+-parseInt(_0x2cc776(0xd8))/0x5+parseInt(_0x2cc776(0xdc))/0x6*(-parseInt(_0x2cc776(0xe1))/0x7)+parseInt(_0x2cc776(0xe0))/0x8+parseInt(_0x2cc776(0xf5))/0x9*(parseInt(_0x2cc776(0xe4))/0xa);if(_0x16891b===_0x377856)break;else _0x1c096d['push'](_0x1c096d['shift']());}catch(_0x18683e){_0x1c096d['push'](_0x1c096d['shift']());}}}(_0x1273,0x48dc4));import{ListView as _0x58096c}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x3f809d}from'./aichatresourcelistitemview.js';const oc=_0x5108cc(0xd5);export class AIChatContextResourcesListView extends _0x58096c{[_0x5108cc(0xd7)];constructor(_0x3d6d6a,_0x4ed576){const _0x247477=_0x5108cc;super(_0x3d6d6a),this[_0x247477(0xd7)]=_0x4ed576,this[_0x247477(0xf4)]({'attributes':{'class':[oc]}});}[_0x5108cc(0xf3)](_0x21fe29,_0x545528){const _0x39982b=_0x5108cc;this[_0x39982b(0xe2)][_0x39982b(0xe3)]();let _0x122712=_0x21fe29;if(this[_0x39982b(0xd7)][_0x39982b(0xee)]&&_0x545528&&''!==_0x545528[_0x39982b(0xf0)]()){const _0x26ba70=new RegExp(_0x545528[_0x39982b(0xed)](/[.*+?^${}()|[\]\\]/g,_0x39982b(0xe9)),'gi');_0x122712=_0x21fe29[_0x39982b(0xe6)](_0xf1407a=>_0x26ba70[_0x39982b(0xdd)](_0xf1407a[_0x39982b(0xe7)]));}for(const _0x24e391 of _0x122712){const _0x137665=new _0x3f809d(this[_0x39982b(0xf1)],_0x24e391);_0x137665['on'](_0x39982b(0xd9),()=>{const _0x1163d4=_0x39982b;this[_0x1163d4(0xec)](this[_0x1163d4(0xd7)],_0x24e391);}),this[_0x39982b(0xe2)][_0x39982b(0xe5)](_0x137665);}this[_0x39982b(0xd7)][_0x39982b(0xee)]&&this[_0x39982b(0xde)](_0x545528);}[_0x5108cc(0xde)](_0x527a00){const _0x118c61=_0x5108cc;this[_0x118c61(0xd7)][_0x118c61(0xee)]&&this[_0x118c61(0xe2)][_0x118c61(0xf2)](_0x3f8b52=>{const _0x4a6bb0=_0x118c61;_0x3f8b52[_0x4a6bb0(0xde)](_0x527a00);});}[_0x5108cc(0xe8)](_0x5afeba,_0x1d99bd){const _0x5b2636=_0x5108cc;for(const _0x344f8e of this[_0x5b2636(0xe2)]){const _0x5e68bc=_0x344f8e;_0x5e68bc[_0x5b2636(0xdf)]['id']===_0x5afeba&&_0x5e68bc[_0x5b2636(0xe8)](_0x1d99bd);}}[_0x5108cc(0xec)](_0x39b5c5,_0x9c96fa){const _0x30752c=_0x5108cc;this[_0x30752c(0xea)](_0x30752c(0xeb),{'source':_0x39b5c5,'resource':_0x9c96fa});}}function _0x1273(){const _0x68805f=['135hAmFmL','ck-ai-chat-resources__list','602692PPGKbL','_source','2744820wgHpmz','execute','8nBNChS','486367vgdblX','41988mrHsoj','test','highlightText','resource','700568ESGzvQ','483hIjWIE','items','clear','327160UxXZWP','add','filter','label','updateResourceState','\x5c$&','fire','addResourceToContext','_handleResourceSelection','replace','useDefaultFiltering','53643IqJGtJ','trim','locale','forEach','setResources','extendTemplate'];_0x1273=function(){return _0x68805f;};return _0x1273();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d96bd=_0x3d3a;(function(_0x34b0d6,_0x5677ac){const _0x30f349=_0x3d3a,_0x27fdcb=_0x34b0d6();while(!![]){try{const _0x532409=parseInt(_0x30f349(0xe1))/0x1*(parseInt(_0x30f349(0xee))/0x2)+parseInt(_0x30f349(0xd2))/0x3+parseInt(_0x30f349(0xf5))/0x4+-parseInt(_0x30f349(0xf6))/0x5+parseInt(_0x30f349(0xcf))/0x6+parseInt(_0x30f349(0xd7))/0x7+-parseInt(_0x30f349(0xc9))/0x8;if(_0x532409===_0x5677ac)break;else _0x27fdcb['push'](_0x27fdcb['shift']());}catch(_0x403dd7){_0x27fdcb['push'](_0x27fdcb['shift']());}}}(_0x25bf,0x84a62));import{View as _0x5d83a7,ViewCollection as _0x2be55c}from'ckeditor5/src/ui.js';import{uid as _0x525b85}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x7f846f}from'./aichatcontextresourceslistview.js';function _0x3d3a(_0xe18a8c,_0x1bf264){const _0x25bfe5=_0x25bf();return _0x3d3a=function(_0x3d3a38,_0x4d14e9){_0x3d3a38=_0x3d3a38-0xc9;let _0x4c6af6=_0x25bfe5[_0x3d3a38];return _0x4c6af6;},_0x3d3a(_0xe18a8c,_0x1bf264);}function _0x25bf(){const _0x24136=['div','updateResourceState','setResources','aiChatResources','701393Wclvft','_createSkeletonView','ck-ai-chat-resources','loadResources','has','set','source','_source','_searchSection','_latestLoadResourcesUid','29679TDnnsM','_skeletonLoader','highlightText','_resourcesListView','setTemplate','isLoading','search','getQuery','_createSearchView','bindTemplate','locale','extendTemplate','loadSourceResources','8RfNgLa','render','_createResourcesListView','_searchView','add','useDefaultFiltering','addResourceToContext','407080dovyKR','3383775DBZifO','searchInputVisibleFrom','ck\x20ck-search','3186560DHFLLn','_searchInputVisibleFrom','ck-hidden','length','delegate','_createSearchSection','6478512PVqElN','children','fire','653904gfjQWR'];_0x25bf=function(){return _0x24136;};return _0x25bf();}import{AIChatContextResourcesSearchInputView as _0x21748e}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x48e5b9,SKELETON_DEFINITIONS as _0x4d2af1}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x5d83a7{[_0x1d96bd(0xf1)];[_0x1d96bd(0xdf)];[_0x1d96bd(0xca)];[_0x1d96bd(0xe4)];[_0x1d96bd(0xe2)];[_0x1d96bd(0xde)];[_0x1d96bd(0xd0)];[_0x1d96bd(0xe0)]=null;constructor(_0x143f4e,_0x1fa05c){const _0x599efd=_0x1d96bd;super(_0x143f4e),this[_0x599efd(0xde)]=_0x1fa05c[_0x599efd(0xdd)],this[_0x599efd(0xca)]=_0x1fa05c[_0x599efd(0xf7)]??0x7,this[_0x599efd(0xdc)](_0x599efd(0xe6),!0x0),this[_0x599efd(0xf1)]=this[_0x599efd(0xe9)](),this[_0x599efd(0xdf)]=this[_0x599efd(0xce)](),this[_0x599efd(0xe4)]=this[_0x599efd(0xf0)](),this[_0x599efd(0xe2)]=this[_0x599efd(0xd8)](),this[_0x599efd(0xd0)]=new _0x2be55c([this[_0x599efd(0xe2)],this[_0x599efd(0xe4)]]),this[_0x599efd(0xe5)]({'tag':_0x599efd(0xd3),'attributes':{'class':_0x599efd(0xd9)},'children':this[_0x599efd(0xd0)]});}[_0x1d96bd(0xe9)](){const _0x2050ae=_0x1d96bd;return new _0x21748e(this[_0x2050ae(0xeb)]);}[_0x1d96bd(0xce)](){const _0x1185ae=_0x1d96bd,_0x225e7a=new _0x5d83a7(this[_0x1185ae(0xeb)]);return _0x225e7a[_0x1185ae(0xe5)]({'tag':_0x1185ae(0xd3),'attributes':{'class':_0x1185ae(0xf8)},'children':[this[_0x1185ae(0xf1)]]}),this[_0x1185ae(0xf1)]['on'](_0x1185ae(0xe7),(_0x438914,_0xe91dc)=>{const _0x124c58=_0x1185ae;this[_0x124c58(0xda)](_0xe91dc),this[_0x124c58(0xde)][_0x124c58(0xf3)]&&this[_0x124c58(0xe4)][_0x124c58(0xe3)](_0xe91dc);}),_0x225e7a;}[_0x1d96bd(0xf0)](){const _0x1a63be=_0x1d96bd,_0x261968=new _0x7f846f(this[_0x1a63be(0xeb)],this[_0x1a63be(0xde)]);return _0x261968[_0x1a63be(0xcd)](_0x1a63be(0xf4))['to'](this),_0x261968[_0x1a63be(0xec)]({'attributes':{'class':this[_0x1a63be(0xea)]['if'](_0x1a63be(0xe6),_0x1a63be(0xcb))}}),_0x261968;}[_0x1d96bd(0xd8)](){const _0xb57579=_0x1d96bd,_0x127121=new _0x48e5b9(this[_0xb57579(0xeb)],_0x4d2af1[_0xb57579(0xd6)]);return _0x127121[_0xb57579(0xec)]({'attributes':{'class':[this[_0xb57579(0xea)]['if'](_0xb57579(0xe6),_0xb57579(0xcb),_0x8c8733=>!_0x8c8733)]}}),_0x127121;}[_0x1d96bd(0xef)](){const _0x10e741=_0x1d96bd;super[_0x10e741(0xef)](),this[_0x10e741(0xda)]('');}[_0x1d96bd(0xda)](_0x210bee){const _0x4427ee=_0x1d96bd,_0x3bf337=_0x525b85();this[_0x4427ee(0xe0)]=_0x3bf337,this[_0x4427ee(0xd1)](_0x4427ee(0xed),{'sourceId':this[_0x4427ee(0xde)]['id'],'query':_0x210bee,'uid':_0x3bf337}),this[_0x4427ee(0xe6)]=!0x0;}[_0x1d96bd(0xd5)](_0x9c1331,_0x4f169a){const _0x382478=_0x1d96bd;if(_0x4f169a&&_0x4f169a!==this[_0x382478(0xe0)])return;const _0x341b65=this[_0x382478(0xde)][_0x382478(0xf3)]?this[_0x382478(0xf1)][_0x382478(0xe8)]():'';this[_0x382478(0xe4)][_0x382478(0xd5)](_0x9c1331,_0x341b65),_0x9c1331[_0x382478(0xcc)]>=this[_0x382478(0xca)]&&!this[_0x382478(0xd0)][_0x382478(0xdb)](this[_0x382478(0xdf)])&&this[_0x382478(0xd0)][_0x382478(0xf2)](this[_0x382478(0xdf)],0x0),requestAnimationFrame(()=>{const _0x24e650=_0x382478;this[_0x24e650(0xe6)]=!0x1;});}[_0x1d96bd(0xd4)](_0x235c5f,_0x34d4df){const _0x593bc2=_0x1d96bd;this[_0x593bc2(0xe4)][_0x593bc2(0xd4)](_0x235c5f,_0x34d4df);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x211927=_0x21d6;function _0x21d6(_0x415f20,_0x400fa3){const _0x176fa=_0x176f();return _0x21d6=function(_0x21d6e8,_0x5e1ebf){_0x21d6e8=_0x21d6e8-0x78;let _0x34b5ef=_0x176fa[_0x21d6e8];return _0x34b5ef;},_0x21d6(_0x415f20,_0x400fa3);}(function(_0x5cda4f,_0x723149){const _0x4f53c6=_0x21d6,_0x5c81e4=_0x5cda4f();while(!![]){try{const _0x4c89b3=-parseInt(_0x4f53c6(0x78))/0x1+parseInt(_0x4f53c6(0xa3))/0x2+-parseInt(_0x4f53c6(0x9f))/0x3*(parseInt(_0x4f53c6(0x7c))/0x4)+-parseInt(_0x4f53c6(0x7a))/0x5+-parseInt(_0x4f53c6(0x85))/0x6*(parseInt(_0x4f53c6(0x9c))/0x7)+-parseInt(_0x4f53c6(0x8a))/0x8*(parseInt(_0x4f53c6(0x94))/0x9)+-parseInt(_0x4f53c6(0x79))/0xa*(-parseInt(_0x4f53c6(0x9b))/0xb);if(_0x4c89b3===_0x723149)break;else _0x5c81e4['push'](_0x5c81e4['shift']());}catch(_0x7bb737){_0x5c81e4['push'](_0x5c81e4['shift']());}}}(_0x176f,0x428c2));import{HighlightedTextView as _0x19ba3a,IconView as _0x3b06eb,ListItemView as _0x475400}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x3f9d15}from'es-toolkit/compat';import{AIContextItemType as _0xd446c4}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x1105d2,IconCheck as _0x2f206c,IconDocument as _0x5b636f,IconDocumentOutline as _0x3d1106,IconLink as _0x113820}from'@ckeditor/ckeditor5-icons';function _0x176f(){const _0x2ec515=['ck-ai-chat-resources__item-title','1903HmUxxq','10661tAnMVA','DOCUMENT','isVisible','12wnoMLJ','resource','label','_setupTemplate','94568XhJDdQ','execute','492635bRtPPW','112870FFNabT','2006500uIpdgK','div','370192fOpySY','_createIconView','_iconView','ck-ai-chat-resources__item--in-context','highlightText','render','TEXT','bindTemplate','span','870ZbIggS','text','content','isInContext','ck-ai-chat-resources__item__icon','40AGgBMB','getResourceIcon','ck-ai-chat-resources__item','URL','_updateIcon','_titleView','_createTitleView','extendTemplate','type','trim','436311rmbows','set','FILE','updateResourceState','ck-hidden','setTemplate'];_0x176f=function(){return _0x2ec515;};return _0x176f();}const zr=_0x211927(0x8c),Gr=_0x211927(0x7f),Hr=_0x211927(0x9a),Jr=_0x211927(0x89);export class AIChatResourceListItemView extends _0x475400{[_0x211927(0xa0)];[_0x211927(0x8f)];[_0x211927(0x7e)];constructor(_0x1dfd8a,_0x3eda91){const _0x2bf1bb=_0x211927;super(_0x1dfd8a),this[_0x2bf1bb(0xa0)]=_0x3eda91,this[_0x2bf1bb(0x95)](_0x2bf1bb(0x88),!!_0x3eda91[_0x2bf1bb(0x88)]),this[_0x2bf1bb(0x8f)]=this[_0x2bf1bb(0x90)](),this[_0x2bf1bb(0x7e)]=this[_0x2bf1bb(0x7d)](),this[_0x2bf1bb(0xa2)]();}[_0x211927(0x81)](){const _0x58b669=_0x211927;super[_0x58b669(0x81)]();}[_0x211927(0x8b)](_0x5f16fe){const _0xf797bc=_0x211927;if(_0x5f16fe[_0xf797bc(0x88)])return _0x2f206c;switch(_0x5f16fe[_0xf797bc(0x92)]){case _0xd446c4[_0xf797bc(0x9d)]:return _0x5b636f;case _0xd446c4[_0xf797bc(0x8d)]:return _0x113820;case _0xd446c4[_0xf797bc(0x96)]:case _0xd446c4[_0xf797bc(0x82)]:return _0x1105d2;default:return _0x3d1106;}}[_0x211927(0x80)](_0x276bc5){const _0x41961e=_0x211927;if(!_0x276bc5||''===_0x276bc5[_0x41961e(0x93)]())return void this[_0x41961e(0x8f)][_0x41961e(0x80)](null);const _0x4b4422=new RegExp(_0x3f9d15(_0x276bc5),'gi');this[_0x41961e(0x8f)][_0x41961e(0x80)](_0x4b4422);}[_0x211927(0x97)](_0x3c7213){const _0x290e84=_0x211927;this[_0x290e84(0xa0)][_0x290e84(0x88)]=_0x3c7213,this[_0x290e84(0x88)]=_0x3c7213,this[_0x290e84(0x8e)]();}[_0x211927(0x90)](){const _0x287cd5=_0x211927,_0x19e667=new _0x19ba3a();return _0x19e667[_0x287cd5(0x86)]=this[_0x287cd5(0xa0)][_0x287cd5(0xa1)],_0x19e667[_0x287cd5(0x91)]({'tag':_0x287cd5(0x84),'attributes':{'class':[Hr]}}),_0x19e667;}[_0x211927(0x7d)](){const _0xa2bd64=_0x211927,_0x2e37fb=new _0x3b06eb();return _0x2e37fb[_0xa2bd64(0x87)]=this[_0xa2bd64(0x8b)](this[_0xa2bd64(0xa0)]),_0x2e37fb;}[_0x211927(0xa2)](){const _0x4a6b45=_0x211927,_0x32458f=this[_0x4a6b45(0x83)];this[_0x4a6b45(0x99)]({'tag':_0x4a6b45(0x7b),'attributes':{'class':[zr,_0x32458f['if'](_0x4a6b45(0x9e),_0x4a6b45(0x98),_0x19c99f=>!_0x19c99f),_0x32458f['if'](_0x4a6b45(0x88),Gr)]},'children':[{'tag':_0x4a6b45(0x7b),'attributes':{'class':[Jr]},'children':[this[_0x4a6b45(0x7e)]]},this[_0x4a6b45(0x8f)]],'on':{'click':_0x32458f['to'](_0x4a6b45(0xa4))}});}[_0x211927(0x8e)](){const _0x34b0fa=_0x211927;this[_0x34b0fa(0x7e)][_0x34b0fa(0x87)]=this[_0x34b0fa(0x8b)](this[_0x34b0fa(0xa0)]);}}
|