@ckeditor/ckeditor5-ai 47.2.0-alpha.2 → 47.2.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/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/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/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +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/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/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/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/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20eaf7=_0x5106;(function(_0x2c6fde,_0x3279e2){const _0x206b96=_0x5106,_0xb41c6c=_0x2c6fde();while(!![]){try{const _0x3380ab=parseInt(_0x206b96(0x1e2))/0x1*(parseInt(_0x206b96(0x1ba))/0x2)+-parseInt(_0x206b96(0x1ac))/0x3*(-parseInt(_0x206b96(0x1c5))/0x4)+parseInt(_0x206b96(0x1b2))/0x5+parseInt(_0x206b96(0x1b1))/0x6+-parseInt(_0x206b96(0x1b6))/0x7+-parseInt(_0x206b96(0x1c2))/0x8+-parseInt(_0x206b96(0x1e3))/0x9*(parseInt(_0x206b96(0x1d8))/0xa);if(_0x3380ab===_0x3279e2)break;else _0xb41c6c['push'](_0xb41c6c['shift']());}catch(_0x1886be){_0xb41c6c['push'](_0xb41c6c['shift']());}}}(_0x5bb5,0x6436c));import{ButtonView as _0x45bcef,IconView as _0xcf1b42}from'ckeditor5/src/ui.js';import{IconClose as _0xf0749e,IconDocument as _0x4a8140,IconFileUpload as _0x39f57d,IconLink as _0x5ee639,IconSelection as _0x449193}from'@ckeditor/ckeditor5-icons';function _0x5bb5(){const _0x1804c2=['locale','span','execute','small','ck-hidden','webkitAnimationEnd','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','ck-ai-chat-context-chip_document','_createLabelElement','10152790XmZONc','tooltip','remove','content','classList','add','removeContextItemChip','_isAnimationOnEnterEnabled','label','_createTemplateAttributes','498jUVHBv','9lONeQb','bindTemplate','_setupTemplate','_createRemoveButton','setTemplate','ck-ai-chat-context-chip__type-icon','document','isVisible','ck-ai-chat-context-chip_new-chip','_handleAnimationEndOnce','fire','1251exQhPA','readonly','disableAnimationOnEnter','ck-ai-chat-context-chip','lastIndexOf','4188624LKaNhc','3535905Edmvxx','render','_initializeProperties','isLoading','240597tNGNOY','ck-ai-chat-context-chip__label','type','slice','2404ZwoiNu','set','selection','uiId','animationend','_createIconView','extendTemplate','ck-ai-chat-context-controls__chip-tooltip','6488416vVPMAp','addEventListener','length','2564RlNgiE','_setupRemoveButtonEvent','_createLoaderIcon','itemType','element','_createTemplateChildren','bind','div','removeEventListener','ck-ai-chat-context-chip_wide'];_0x5bb5=function(){return _0x1804c2;};return _0x5bb5();}import{getTranslation as _0x576914}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x4334c5}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x39f57d,'document':_0x4a8140,'web-resource':_0x5ee639,'text':_0x39f57d,'selection':_0x449193},bn=_0x20eaf7(0x1af),wn=_0x20eaf7(0x1ce),Tn=_0x20eaf7(0x1d6),En=_0x20eaf7(0x1b7),fn=_0x20eaf7(0x1a6),An=_0x20eaf7(0x1c1),Cn='n';function _0x5106(_0x372872,_0x200984){const _0x5bb5cd=_0x5bb5();return _0x5106=function(_0x5106c6,_0x55403d){_0x5106c6=_0x5106c6-0x1a3;let _0x7d40b3=_0x5bb5cd[_0x5106c6];return _0x7d40b3;},_0x5106(_0x372872,_0x200984);}export class AIChatContextItemButtonView extends _0x45bcef{constructor(_0x3ab257,_0x150948,_0x5c8518,_0x4912c3,_0x5dc0e1=!0x1){const _0x25a735=_0x20eaf7;super(_0x3ab257),this[_0x25a735(0x1df)]=_0x4912c3,this[_0x25a735(0x1b4)](_0x150948,_0x5c8518,_0x5dc0e1),this[_0x25a735(0x1a3)]();}[_0x20eaf7(0x1b3)](){const _0xcd4b18=_0x20eaf7;super[_0xcd4b18(0x1b3)](),this[_0xcd4b18(0x1df)]&&this[_0xcd4b18(0x1c9)]&&(this[_0xcd4b18(0x1c9)][_0xcd4b18(0x1dc)][_0xcd4b18(0x1dd)](_0xcd4b18(0x1a9)),this[_0xcd4b18(0x1aa)](this[_0xcd4b18(0x1c9)],()=>{const _0x416159=_0xcd4b18;this[_0x416159(0x1c9)]&&this[_0x416159(0x1c9)][_0x416159(0x1dc)][_0x416159(0x1da)](_0x416159(0x1a9));}));}[_0x20eaf7(0x1ae)](){const _0x4ebc18=_0x20eaf7;this[_0x4ebc18(0x1df)]=!0x1,this[_0x4ebc18(0x1c9)]&&this[_0x4ebc18(0x1c9)][_0x4ebc18(0x1dc)][_0x4ebc18(0x1da)](_0x4ebc18(0x1a9));}[_0x20eaf7(0x1b4)](_0x9a1b55,_0x4d4c37,_0x34376f){const _0x5b78b0=_0x20eaf7;this[_0x5b78b0(0x1bb)](_0x5b78b0(0x1e0),_0x9a1b55[_0x5b78b0(0x1e0)]),this[_0x5b78b0(0x1bb)](_0x5b78b0(0x1d9),!0x0),this[_0x5b78b0(0x1bb)](_0x5b78b0(0x1c8),_0x9a1b55[_0x5b78b0(0x1b8)]),this[_0x5b78b0(0x1bb)]('id',_0x9a1b55[_0x5b78b0(0x1bd)]),this[_0x5b78b0(0x1bb)](_0x5b78b0(0x1ad),_0x4d4c37),this[_0x5b78b0(0x1bb)](_0x5b78b0(0x1b5),_0x34376f);}[_0x20eaf7(0x1a3)](){const _0x288e82=_0x20eaf7,_0x54c9a5=this[_0x288e82(0x1bf)](),_0x19c17a=this[_0x288e82(0x1a4)](),_0x3e12ec=this[_0x288e82(0x1e4)];this[_0x288e82(0x1a5)]({'tag':_0x288e82(0x1cc),'attributes':this[_0x288e82(0x1e1)](_0x3e12ec),'children':this[_0x288e82(0x1ca)](_0x54c9a5,_0x19c17a,_0x3e12ec)});}[_0x20eaf7(0x1e1)](_0x3099c8){const _0x497218=_0x20eaf7;return{'class':[bn,_0x3099c8['if'](_0x497218(0x1c8),Tn,_0x253638=>_0x497218(0x1a7)==_0x253638),_0x3099c8['if'](_0x497218(0x1c8),wn,_0x4c42e2=>_0x497218(0x1bc)==_0x4c42e2)],'data-cke-tooltip-text':_0x3099c8['to'](_0x497218(0x1e0),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x20eaf7(0x1ca)](_0xc7d72e,_0x487fa6,_0x9d8c7){const _0x352d2b=_0x20eaf7,_0x2cfe93=this[_0x352d2b(0x1d7)](_0x9d8c7),_0x2d6a3b=this[_0x352d2b(0x1c7)]();return this[_0x352d2b(0x1ad)]?[_0xc7d72e,_0x2cfe93]:[_0xc7d72e,_0x2d6a3b,_0x2cfe93,_0x487fa6];}[_0x20eaf7(0x1d7)](_0x57318e){const _0x3fb6f1=_0x20eaf7;return{'tag':_0x3fb6f1(0x1d0),'attributes':{'class':En},'children':[{'text':_0x57318e['to'](_0x3fb6f1(0x1e0))}]};}[_0x20eaf7(0x1a4)](){const _0x7d9382=_0x20eaf7,_0x388e51=new _0x45bcef(this[_0x7d9382(0x1cf)]);return _0x388e51[_0x7d9382(0x1bb)]({'label':_0x576914(this[_0x7d9382(0x1cf)],_0x7d9382(0x1d5)),'icon':_0xf0749e}),this[_0x7d9382(0x1c6)](_0x388e51),_0x388e51;}[_0x20eaf7(0x1c6)](_0x23e4c6){const _0x1c2053=_0x20eaf7;_0x23e4c6['on'](_0x1c2053(0x1d1),()=>{const _0xdd1433=_0x1c2053;this[_0xdd1433(0x1ab)](_0xdd1433(0x1de),this['id']);});}[_0x20eaf7(0x1bf)](){const _0x57625c=_0x20eaf7,_0x127f56=this[_0x57625c(0x1e4)],_0x5ae3d9=new _0xcf1b42();return _0x5ae3d9[_0x57625c(0x1db)]=xn[this[_0x57625c(0x1c8)]],_0x5ae3d9[_0x57625c(0x1c0)]({'attributes':{'class':[fn,_0x127f56['if'](_0x57625c(0x1b5),_0x57625c(0x1d3),_0x5d4ffd=>_0x5d4ffd)]}}),_0x5ae3d9;}[_0x20eaf7(0x1aa)](_0x350723,_0x335507){const _0x461e0c=_0x20eaf7;if(!_0x350723)return;const _0x2953c1=()=>{const _0x62cc43=_0x5106;_0x335507(),_0x350723[_0x62cc43(0x1cd)](_0x62cc43(0x1be),_0x2953c1),_0x350723[_0x62cc43(0x1cd)](_0x62cc43(0x1d4),_0x2953c1);};_0x350723[_0x461e0c(0x1c3)](_0x461e0c(0x1be),_0x2953c1),_0x350723[_0x461e0c(0x1c3)](_0x461e0c(0x1d4),_0x2953c1);}[_0x20eaf7(0x1c7)](){const _0x13280c=_0x20eaf7,_0x43ed32=new _0x4334c5(_0x13280c(0x1d2));return _0x43ed32[_0x13280c(0x1cb)](_0x13280c(0x1a8))['to'](this,_0x13280c(0x1b5),_0x2a9adc=>_0x2a9adc),_0x43ed32;}}function In(_0x33dbc6){const _0x864571=_0x20eaf7;if(!_0x33dbc6)return _0x33dbc6;if(_0x33dbc6[_0x864571(0x1c4)]<=0x78)return _0x33dbc6;const _0x3f561f=_0x33dbc6[_0x864571(0x1b9)](0x0,0x78),_0x3ff31d=_0x3f561f[_0x864571(0x1b0)]('\x20');return(_0x3ff31d>0x0?_0x3f561f[_0x864571(0x1b9)](0x0,_0x3ff31d):_0x3f561f)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x497c6f=_0x27a0;(function(_0x3e13a0,_0x18bd81){const _0x55ac33=_0x27a0,_0x34c7ff=_0x3e13a0();while(!![]){try{const _0x4ff7b1=-parseInt(_0x55ac33(0x159))/0x1+parseInt(_0x55ac33(0x16e))/0x2*(-parseInt(_0x55ac33(0x164))/0x3)+-parseInt(_0x55ac33(0x15b))/0x4+parseInt(_0x55ac33(0x182))/0x5*(-parseInt(_0x55ac33(0x151))/0x6)+-parseInt(_0x55ac33(0x17d))/0x7*(parseInt(_0x55ac33(0x188))/0x8)+parseInt(_0x55ac33(0x150))/0x9*(-parseInt(_0x55ac33(0x174))/0xa)+parseInt(_0x55ac33(0x163))/0xb;if(_0x4ff7b1===_0x18bd81)break;else _0x34c7ff['push'](_0x34c7ff['shift']());}catch(_0x1892d1){_0x34c7ff['push'](_0x34c7ff['shift']());}}}(_0xaf1d,0x3b7f2));import{FocusTracker as _0x1c308b,KeystrokeHandler as _0x14b704}from'ckeditor5/src/utils.js';import{ButtonView as _0x149ef7,FocusCycler as _0x25da57,LabeledFieldView as _0x2fe33e,View as _0x5803c5,FormHeaderView as _0x17330c,createLabeledInputText as _0x6a8e34,submitHandler as _0x4f4550}from'ckeditor5/src/ui.js';function _0xaf1d(){const _0x30500a=['setTemplate','input','AI_CHAT_CONTEXT_URL_PLACEHOLDER','14891998loqfSh','60qcvjMk','ck-ai-chat-context-controls__url-form','keystrokes','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','value','_createConfirmButton','focusTracker','cancel','createCollection','17912qQrZHN','AI_CHAT_CONTEXT_URL_INVALID_ERROR','ck-ai-chat-context-controls__url-input-section','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','ck-button-icon\x20ck-button-back','_isValidUrl','1744010kfENNA','fieldView','ck-labeled-field-view_empty','stop','forEach','AI_CHAT_CONTEXT_URL_ADD_URL','_handleSubmit','render','execute','21lCrcIx','tab','backButton','_setupTemplate','shift+tab','125hKLCnZ','ck-button-icon','div','isEnabled','trim','_createBackButton','38768YGHMEW','_setupKeystrokes','focus','esc','errorText','element','length','set','add','_setupEventHandlers','submit','locale','form','_focusables','urlInputField','clearError','submitUrl','confirmButton','9vsLSLa','25194lnuGkD','AI_CHAT_CONTEXT_URL_LABEL','destroy','children','getValue','fire','_createUrlInputField','clear','364741HwrHEN','focusCycler','1089380fCNVfQ','refreshBalloon','_updateConfirmButtonState','setError','listenTo'];_0xaf1d=function(){return _0x30500a;};return _0xaf1d();}import{IconCheck as _0x420e8e,IconPreviousArrow as _0x104389}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2c0a24}from'../../../aicore/utils/common-translations.js';const rh=_0x497c6f(0x165),oh=_0x497c6f(0x170);function _0x27a0(_0x2a0aac,_0x4181d2){const _0xaf1d1=_0xaf1d();return _0x27a0=function(_0x27a080,_0x517145){_0x27a080=_0x27a080-0x142;let _0x570692=_0xaf1d1[_0x27a080];return _0x570692;},_0x27a0(_0x2a0aac,_0x4181d2);}export class AIChatContextPanelUrlInputView extends _0x5803c5{[_0x497c6f(0x16b)];[_0x497c6f(0x166)];[_0x497c6f(0x14b)];[_0x497c6f(0x15a)];[_0x497c6f(0x14c)];[_0x497c6f(0x17f)];[_0x497c6f(0x14f)];constructor(_0x4a99a6){const _0xd8fdfe=_0x497c6f;super(_0x4a99a6),this[_0xd8fdfe(0x16b)]=new _0x1c308b(),this[_0xd8fdfe(0x166)]=new _0x14b704(),this[_0xd8fdfe(0x17f)]=this[_0xd8fdfe(0x187)](),this[_0xd8fdfe(0x14c)]=this[_0xd8fdfe(0x157)](),this[_0xd8fdfe(0x14f)]=this[_0xd8fdfe(0x16a)](),this[_0xd8fdfe(0x14b)]=this[_0xd8fdfe(0x16d)]([this[_0xd8fdfe(0x17f)],this[_0xd8fdfe(0x14c)],this[_0xd8fdfe(0x14f)]]),this[_0xd8fdfe(0x15a)]=new _0x25da57({'focusables':this[_0xd8fdfe(0x14b)],'focusTracker':this[_0xd8fdfe(0x16b)],'keystrokeHandler':this[_0xd8fdfe(0x166)],'actions':{'focusPrevious':_0xd8fdfe(0x181),'focusNext':_0xd8fdfe(0x17e)}}),this[_0xd8fdfe(0x180)](),this[_0xd8fdfe(0x147)](),this[_0xd8fdfe(0x189)]();}[_0x497c6f(0x17b)](){const _0x44c811=_0x497c6f;super[_0x44c811(0x17b)](),this[_0x44c811(0x14b)][_0x44c811(0x178)](_0x454c71=>{const _0xfe716c=_0x44c811;this[_0xfe716c(0x16b)][_0xfe716c(0x146)](_0x454c71[_0xfe716c(0x143)]),this[_0xfe716c(0x166)][_0xfe716c(0x15f)](_0x454c71[_0xfe716c(0x143)]);}),_0x4f4550({'view':this}),this[_0x44c811(0x18a)]();}[_0x497c6f(0x153)](){const _0x2131e8=_0x497c6f;super[_0x2131e8(0x153)](),this[_0x2131e8(0x16b)][_0x2131e8(0x153)](),this[_0x2131e8(0x166)][_0x2131e8(0x153)]();}[_0x497c6f(0x18a)](){const _0x3ea13d=_0x497c6f;this[_0x3ea13d(0x14c)][_0x3ea13d(0x18a)]();}[_0x497c6f(0x155)](){const _0x3b02c2=_0x497c6f;return this[_0x3b02c2(0x14c)][_0x3b02c2(0x175)][_0x3b02c2(0x143)]?.[_0x3b02c2(0x169)]?.[_0x3b02c2(0x186)]()||'';}[_0x497c6f(0x158)](){const _0x4d4f2a=_0x497c6f;this[_0x4d4f2a(0x14c)][_0x4d4f2a(0x175)][_0x4d4f2a(0x143)][_0x4d4f2a(0x169)]='',this[_0x4d4f2a(0x14c)][_0x4d4f2a(0x142)]=null,this[_0x4d4f2a(0x14f)][_0x4d4f2a(0x185)]=!0x1;}[_0x497c6f(0x15e)](_0x2d2eca){const _0x591e5a=_0x497c6f;this[_0x591e5a(0x14c)][_0x591e5a(0x142)]=_0x2d2eca,this[_0x591e5a(0x15d)](),this[_0x591e5a(0x156)](_0x591e5a(0x15c));}[_0x497c6f(0x14d)](){const _0x7d1f14=_0x497c6f;this[_0x7d1f14(0x14c)][_0x7d1f14(0x142)]=null,this[_0x7d1f14(0x15d)]();}[_0x497c6f(0x187)](){const _0x34dea1=_0x497c6f,_0x1d58b0=new _0x149ef7(this[_0x34dea1(0x149)]);return _0x1d58b0[_0x34dea1(0x145)]({'icon':_0x104389,'tooltip':_0x2c0a24(this[_0x34dea1(0x149)],_0x34dea1(0x168)),'tooltipPosition':'n','class':_0x34dea1(0x172)}),_0x1d58b0;}[_0x497c6f(0x157)](){const _0x437d22=_0x497c6f,_0x3e2937=new _0x2fe33e(this[_0x437d22(0x149)],_0x6a8e34);return _0x3e2937[_0x437d22(0x145)]({'label':_0x2c0a24(this[_0x437d22(0x149)],_0x437d22(0x152)),'class':_0x437d22(0x176)}),_0x3e2937[_0x437d22(0x175)][_0x437d22(0x145)]({'placeholder':_0x2c0a24(this[_0x437d22(0x149)],_0x437d22(0x162))}),_0x3e2937;}[_0x497c6f(0x16a)](){const _0x266704=_0x497c6f,_0x309f7e=new _0x149ef7(this[_0x266704(0x149)]);return _0x309f7e[_0x266704(0x145)]({'icon':_0x420e8e,'tooltip':_0x2c0a24(this[_0x266704(0x149)],_0x266704(0x179)),'tooltipPosition':'n','class':_0x266704(0x183),'type':_0x266704(0x148),'isEnabled':!0x1}),_0x309f7e;}[_0x497c6f(0x180)](){const _0x33382b=_0x497c6f,_0xcafc3=new _0x17330c(this[_0x33382b(0x149)],{'label':_0x2c0a24(this[_0x33382b(0x149)],_0x33382b(0x179)),'class':_0x33382b(0x167)});_0xcafc3[_0x33382b(0x154)][_0x33382b(0x146)](this[_0x33382b(0x17f)],0x0),this[_0x33382b(0x160)]({'tag':_0x33382b(0x14a),'attributes':{'class':rh,'tabindex':'-1'},'children':[_0xcafc3,{'tag':_0x33382b(0x184),'attributes':{'class':oh},'children':[this[_0x33382b(0x14c)],this[_0x33382b(0x14f)]]}]});}[_0x497c6f(0x147)](){const _0x3cb22a=_0x497c6f;this[_0x3cb22a(0x17f)]['on'](_0x3cb22a(0x17c),()=>{const _0x1586e4=_0x3cb22a;this[_0x1586e4(0x158)](),this[_0x1586e4(0x156)](_0x1586e4(0x16c));}),this[_0x3cb22a(0x14c)][_0x3cb22a(0x175)]['on'](_0x3cb22a(0x161),()=>{const _0x577cf4=_0x3cb22a;this[_0x577cf4(0x14d)](),this[_0x577cf4(0x15d)](),this[_0x577cf4(0x156)](_0x577cf4(0x15c));}),this['on'](_0x3cb22a(0x148),_0x3a6298=>{const _0x308fa5=_0x3cb22a;_0x3a6298[_0x308fa5(0x177)](),this[_0x308fa5(0x17a)]();});}[_0x497c6f(0x189)](){const _0x2eb3c4=_0x497c6f;this[_0x2eb3c4(0x166)][_0x2eb3c4(0x145)](_0x2eb3c4(0x18b),(_0x27c15a,_0x15e844)=>{const _0x2aa5b0=_0x2eb3c4;this[_0x2aa5b0(0x158)](),this[_0x2aa5b0(0x156)](_0x2aa5b0(0x16c)),_0x15e844();});}[_0x497c6f(0x17a)](){const _0x557967=_0x497c6f,_0x404870=this[_0x557967(0x155)]()[_0x557967(0x186)]();_0x404870?this[_0x557967(0x173)](_0x404870)?(this[_0x557967(0x14d)](),this[_0x557967(0x156)](_0x557967(0x14e),_0x404870)):this[_0x557967(0x15e)](_0x2c0a24(this[_0x557967(0x149)],_0x557967(0x16f))):this[_0x557967(0x15e)](_0x2c0a24(this[_0x557967(0x149)],_0x557967(0x171)));}[_0x497c6f(0x15d)](){const _0x308365=_0x497c6f,_0x13957c=this[_0x308365(0x155)]()[_0x308365(0x186)](),_0x40dead=!!this[_0x308365(0x14c)][_0x308365(0x142)];this[_0x308365(0x14f)][_0x308365(0x185)]=_0x13957c[_0x308365(0x144)]>0x0&&!_0x40dead;}[_0x497c6f(0x173)](_0x1811c6){try{return!!new URL(_0x1811c6);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x58162c=_0x4da1;(function(_0x2e9e76,_0x677afa){const _0x35a0a6=_0x4da1,_0x2f3656=_0x2e9e76();while(!![]){try{const _0x2178a8=-parseInt(_0x35a0a6(0x175))/0x1+-parseInt(_0x35a0a6(0x157))/0x2+-parseInt(_0x35a0a6(0x12c))/0x3+parseInt(_0x35a0a6(0x1b7))/0x4*(parseInt(_0x35a0a6(0x13a))/0x5)+-parseInt(_0x35a0a6(0x196))/0x6+-parseInt(_0x35a0a6(0x135))/0x7+parseInt(_0x35a0a6(0x134))/0x8;if(_0x2178a8===_0x677afa)break;else _0x2f3656['push'](_0x2f3656['shift']());}catch(_0x166e24){_0x2f3656['push'](_0x2f3656['shift']());}}}(_0x3203,0xa4c9c));function _0x4da1(_0x51cff3,_0x5e73f6){const _0x3203ff=_0x3203();return _0x4da1=function(_0x4da143,_0x1d5844){_0x4da143=_0x4da143-0x12b;let _0x3e7fba=_0x3203ff[_0x4da143];return _0x3e7fba;},_0x4da1(_0x51cff3,_0x5e73f6);}import{BalloonPanelView as _0x33c96a,ButtonView as _0x125a31,clickOutsideHandler as _0x39c8bc,FileDialogButtonView as _0x143177,IconView as _0x2e1fdb,View as _0x10622f}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x27c3c2,IconDocument as _0x23ccac,IconDocumentOutline as _0x4f0b7e,IconDropdownArrow as _0xe1ff79,IconLink as _0x98897e,IconPaperClip as _0x4231ee}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x52da64}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x592aa8}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x563cd9}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x55c36f}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x2251fb}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x58162c(0x165),_0x58162c(0x189),_0x58162c(0x19b),_0x58162c(0x1a4),_0x58162c(0x19d),_0x58162c(0x183)];const po=_0x58162c(0x1a8),Bo=_0x58162c(0x176),bo=_0x58162c(0x190),To=_0x58162c(0x17a),Ao=_0x58162c(0x184),ko=_0x58162c(0x1a7),Eo=_0x58162c(0x18a),vo=_0x58162c(0x172),Vo=_0x58162c(0x1a1),go=_0x58162c(0x1af),fo=_0x58162c(0x151),Io=_0x58162c(0x130),Po=[_0x33c96a[_0x58162c(0x1ae)][_0x58162c(0x1ac)],_0x33c96a[_0x58162c(0x1ae)][_0x58162c(0x1b4)],_0x33c96a[_0x58162c(0x1ae)][_0x58162c(0x1a3)],_0x33c96a[_0x58162c(0x1ae)][_0x58162c(0x19f)],_0x33c96a[_0x58162c(0x1ae)][_0x58162c(0x168)],_0x33c96a[_0x58162c(0x1ae)][_0x58162c(0x14d)]];export class AIChatContextPanelView extends _0x10622f{[_0x58162c(0x1b3)];[_0x58162c(0x1b1)]=this[_0x58162c(0x15d)]();[_0x58162c(0x14a)]=this[_0x58162c(0x15d)]();[_0x58162c(0x142)];[_0x58162c(0x13e)];[_0x58162c(0x1a9)];[_0x58162c(0x194)];[_0x58162c(0x1b5)];[_0x58162c(0x140)];[_0x58162c(0x18d)];constructor(_0x3785bf,_0x505a02){const _0x5f678e=_0x58162c;super(_0x3785bf),this[_0x5f678e(0x18d)]=_0x505a02[_0x5f678e(0x18d)],this[_0x5f678e(0x1b1)]=this[_0x5f678e(0x15d)](),this[_0x5f678e(0x14a)]=this[_0x5f678e(0x15d)](),this[_0x5f678e(0x1b3)]=this[_0x5f678e(0x15e)](_0x3785bf),this[_0x5f678e(0x13e)]=this[_0x5f678e(0x17b)](_0x3785bf),this[_0x5f678e(0x1a9)]=this[_0x5f678e(0x19e)](_0x3785bf),this[_0x5f678e(0x1b5)]=this[_0x5f678e(0x19a)](_0x3785bf,_0x505a02);const _0x2af87d={'cssClasses':{'showMoreButton':go,'showMoreBalloon':fo,'overflowContainer':Vo,'controlsButton':vo}};this[_0x5f678e(0x142)]=new _0x563cd9(_0x3785bf,this[_0x5f678e(0x1b1)],_0x2af87d,this[_0x5f678e(0x18d)],this),this[_0x5f678e(0x140)]={'buttonView':this[_0x5f678e(0x1b3)],'balloonView':this[_0x5f678e(0x13e)],'hideMethod':this[_0x5f678e(0x1b8)][_0x5f678e(0x180)](this),'showMethod':this[_0x5f678e(0x161)][_0x5f678e(0x180)](this)},this[_0x5f678e(0x191)](),this[_0x5f678e(0x13c)]();}[_0x58162c(0x15b)](){const _0x88c916=_0x58162c;super[_0x88c916(0x15b)](),this[_0x88c916(0x13d)](),this[_0x88c916(0x142)][_0x88c916(0x174)](this[_0x88c916(0x136)]),this[_0x88c916(0x142)][_0x88c916(0x199)]();}[_0x58162c(0x143)](){const _0x5c97d8=_0x58162c;super[_0x5c97d8(0x143)](),this[_0x5c97d8(0x142)][_0x5c97d8(0x143)](),this[_0x5c97d8(0x1b5)][_0x5c97d8(0x143)]();}[_0x58162c(0x163)](_0x52564e,_0x494ffc){const _0xb11581=_0x58162c,_0x12a436=this[_0xb11581(0x156)](_0x52564e,_0xb11581(0x159),!0x0,_0x494ffc);this[_0xb11581(0x12b)](_0x12a436,this[_0xb11581(0x1b1)]),this[_0xb11581(0x142)][_0xb11581(0x199)]();}[_0x58162c(0x19d)](_0xf7f5eb){const _0x1ad08d=_0x58162c;this[_0x1ad08d(0x144)](_0xf7f5eb,this[_0x1ad08d(0x1b1)]),this[_0x1ad08d(0x144)](_0xf7f5eb,this[_0x1ad08d(0x142)][_0x1ad08d(0x166)]),this[_0x1ad08d(0x142)][_0x1ad08d(0x199)]();}[_0x58162c(0x192)](_0x539c6e,_0x1a2a8d){const _0x14f591=_0x58162c;let _0x2b3db1=this[_0x14f591(0x1b1)][_0x14f591(0x16f)](_0x518c33=>_0x518c33['id']===_0x539c6e);_0x2b3db1||(_0x2b3db1=this[_0x14f591(0x142)][_0x14f591(0x166)][_0x14f591(0x16f)](_0x2f36b3=>_0x2f36b3['id']===_0x539c6e)),_0x2b3db1&&(_0x2b3db1[_0x14f591(0x14f)]=_0x1a2a8d);}[_0x58162c(0x1a6)](_0x5dbf3a){const _0x169d62=_0x58162c;this[_0x169d62(0x14a)][_0x169d62(0x170)]();for(const _0x146cac of _0x5dbf3a){const _0x55b5a8=this[_0x169d62(0x156)](_0x146cac,_0x169d62(0x1a5),!0x1,!0x1);this[_0x169d62(0x12b)](_0x55b5a8,this[_0x169d62(0x14a)]);}}[_0x58162c(0x141)](){const _0x406ba3=_0x58162c;this[_0x406ba3(0x1b1)][_0x406ba3(0x170)](),this[_0x406ba3(0x142)][_0x406ba3(0x170)]();}[_0x58162c(0x19c)](){const _0x230a75=_0x58162c;this[_0x230a75(0x14a)][_0x230a75(0x170)]();}[_0x58162c(0x132)](_0x344084,_0x16b3dd,_0x6807de){const _0xc03fde=_0x58162c;this[_0xc03fde(0x1b5)][_0xc03fde(0x132)](_0x344084,_0x16b3dd,_0x6807de);}[_0x58162c(0x1b8)](){const _0x4d077b=_0x58162c;this[_0x4d077b(0x139)](!0x1);}[_0x58162c(0x161)](){const _0x1778dd=_0x58162c;this[_0x1778dd(0x139)](!0x0);}[_0x58162c(0x177)](){const _0x48a5e5=_0x58162c;this[_0x48a5e5(0x1a9)][_0x48a5e5(0x197)](),this[_0x48a5e5(0x1b3)][_0x48a5e5(0x138)]=!0x1,this[_0x48a5e5(0x194)]&&this[_0x48a5e5(0x194)][_0x48a5e5(0x170)]();}[_0x58162c(0x182)](){const _0x523758=_0x58162c;this[_0x523758(0x1a9)][_0x523758(0x195)](),this[_0x523758(0x1b3)][_0x523758(0x138)]=!0x0;}[_0x58162c(0x18b)](_0x2aaf4c){const _0x2469cd=_0x58162c;this[_0x2469cd(0x1b5)][_0x2469cd(0x149)](_0x2aaf4c),this[_0x2469cd(0x1b3)][_0x2469cd(0x138)]=!0x0;}[_0x58162c(0x1a2)](_0x80d4e2,_0x2d6402,_0x3e0b35,_0x2ce137){const _0x369622=_0x58162c;this[_0x369622(0x1b5)][_0x369622(0x1a2)](_0x80d4e2,_0x3e0b35,_0x2ce137);}[_0x58162c(0x1b0)](_0x23a3da){const _0x2e3046=_0x58162c;this[_0x2e3046(0x1b5)][_0x2e3046(0x1b0)](_0x23a3da),this[_0x2e3046(0x1b3)][_0x2e3046(0x138)]=!0x1;}[_0x58162c(0x14b)](_0x3f03bb){const _0x4092ef=_0x58162c;this[_0x4092ef(0x147)](this[_0x4092ef(0x13e)],this[_0x4092ef(0x1ad)],_0x3f03bb),this[_0x4092ef(0x16a)](_0x3f03bb);}[_0x58162c(0x16a)](_0x34c677){const _0x43c2ec=_0x58162c,_0x321109=!_0x34c677[_0x43c2ec(0x1b2)][_0x43c2ec(0x154)]&&_0x34c677[_0x43c2ec(0x1b2)][_0x43c2ec(0x16e)],_0x525113=_0x34c677[_0x43c2ec(0x17c)][_0x43c2ec(0x16e)],_0x11a256=_0x34c677[_0x43c2ec(0x14e)][_0x43c2ec(0x16e)];this[_0x43c2ec(0x1b3)][_0x43c2ec(0x146)]=_0x321109||_0x525113||_0x11a256;}[_0x58162c(0x191)](){const _0x580259=_0x58162c;this[_0x580259(0x153)]({'tag':_0x580259(0x187),'attributes':{'class':[po,_0x580259(0x12d)]},'children':[{'tag':_0x580259(0x187),'attributes':{'class':Bo},'children':this[_0x580259(0x1b1)]}]});}[_0x58162c(0x13c)](){const _0x1cd93d=_0x58162c;this[_0x1cd93d(0x1b3)]['on'](_0x1cd93d(0x15a),()=>{const _0x40a7ce=_0x1cd93d;this[_0x40a7ce(0x13f)]();});}[_0x58162c(0x15e)](_0x3df12a){const _0x18d0fe=_0x58162c,_0x56e256=new _0x125a31(_0x3df12a);return _0x56e256[_0x18d0fe(0x193)]({'label':_0x55c36f(_0x3df12a,_0x18d0fe(0x169)),'class':vo+'\x20'+To,'icon':_0x4231ee,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x56e256;}[_0x58162c(0x17b)](_0x485558){const _0x5bc1a6=_0x58162c;return this[_0x5bc1a6(0x14c)](_0x485558,bo);}[_0x58162c(0x19e)](_0x3d3707){const _0x4c3ad7=_0x58162c,_0x58edb1=this[_0x4c3ad7(0x14c)](_0x3d3707,Ao);return this[_0x4c3ad7(0x198)](_0x58edb1,_0x3d3707),_0x58edb1;}[_0x58162c(0x19a)](_0x1f59a6,_0x4309db){const _0x26cda7=_0x58162c,_0x5c4bd7={'searchInputVisibleFrom':_0x4309db[_0x26cda7(0x181)],'onBackToContext':()=>{const _0xc64dda=_0x26cda7;this[_0xc64dda(0x161)](),this[_0xc64dda(0x13e)][_0xc64dda(0x188)]({'target':this[_0xc64dda(0x1b3)][_0xc64dda(0x136)],'limiter':this[_0xc64dda(0x15f)](),'positions':Po});},'onResourceSelected':(_0x2cb0f6,_0x2d8f55)=>{const _0x3a4c84=_0x26cda7;this[_0x3a4c84(0x178)](_0x3a4c84(0x1a4),{'source':_0x2cb0f6,'resource':_0x2d8f55});},'onLoadSourceResources':_0x94a8d5=>{const _0x2c08d6=_0x26cda7;this[_0x2c08d6(0x178)](_0x2c08d6(0x183),_0x94a8d5);},'onBalloonClosed':()=>{const _0x380e0c=_0x26cda7;this[_0x380e0c(0x1b3)][_0x380e0c(0x138)]=!0x1;},'getLimiterElement':()=>this[_0x26cda7(0x15f)](),'getTargetElement':()=>this[_0x26cda7(0x1b3)][_0x26cda7(0x136)]};return new _0x2251fb(_0x1f59a6,_0x4309db[_0x26cda7(0x18d)],_0x5c4bd7);}[_0x58162c(0x15f)](){const _0x121739=_0x58162c;return this[_0x121739(0x136)]?.[_0x121739(0x1a0)]('.'+Io)||document[_0x121739(0x137)];}[_0x58162c(0x14c)](_0x5f3c47,_0x32233e){const _0x2879f4=_0x58162c,_0x1ef75c=new _0x33c96a(_0x5f3c47);return _0x1ef75c[_0x2879f4(0x155)]({'attributes':{'class':_0x32233e}}),this[_0x2879f4(0x18d)][_0x2879f4(0x173)](_0x1ef75c),_0x1ef75c;}[_0x58162c(0x147)](_0x44518d,_0x365353,_0x26ca8b){const _0x315ce6=_0x58162c;if(_0x44518d[_0x315ce6(0x186)][_0x315ce6(0x170)](),!_0x26ca8b[_0x315ce6(0x1b2)][_0x315ce6(0x154)]&&_0x26ca8b[_0x315ce6(0x1b2)][_0x315ce6(0x16e)]){const _0x4167c0=this[_0x315ce6(0x162)](_0x365353,{'label':_0x55c36f(_0x365353,_0x315ce6(0x12e)),'icon':_0x23ccac});_0x4167c0['on'](_0x315ce6(0x15a),()=>{const _0x43d010=_0x315ce6;this[_0x43d010(0x178)](_0x43d010(0x165)),this[_0x43d010(0x1b8)]();}),_0x44518d[_0x315ce6(0x186)][_0x315ce6(0x173)](_0x4167c0);}if(_0x26ca8b[_0x315ce6(0x17c)][_0x315ce6(0x16e)]){const _0x20a484=this[_0x315ce6(0x162)](_0x365353,{'label':_0x55c36f(_0x365353,_0x315ce6(0x1aa)),'icon':_0x98897e});_0x20a484['on'](_0x315ce6(0x15a),()=>{const _0x38248c=_0x315ce6;this[_0x38248c(0x1b8)](),this[_0x38248c(0x182)](),this[_0x38248c(0x1a9)][_0x38248c(0x188)]({'target':this[_0x38248c(0x1b3)][_0x38248c(0x136)],'limiter':this[_0x38248c(0x15f)](),'positions':Po}),this[_0x38248c(0x194)][_0x38248c(0x16c)]();}),_0x44518d[_0x315ce6(0x186)][_0x315ce6(0x173)](_0x20a484);}if(_0x26ca8b[_0x315ce6(0x14e)][_0x315ce6(0x16e)]){const _0x2cb4f8=new _0x143177(_0x365353);_0x2cb4f8[_0x315ce6(0x193)]({'label':_0x55c36f(_0x365353,_0x315ce6(0x158)),'icon':_0x27c3c2,'withText':!0x0,'tooltip':!0x0,'class':ko,'allowMultipleFiles':!0x0}),_0x2cb4f8['on'](_0x315ce6(0x179),(_0x78ecd2,_0x51547e)=>{const _0x118498=_0x315ce6;this[_0x118498(0x178)](_0x118498(0x189),_0x51547e),this[_0x118498(0x1b8)]();}),_0x2cb4f8[_0x315ce6(0x18f)]=!0x0,_0x44518d[_0x315ce6(0x186)][_0x315ce6(0x173)](_0x2cb4f8);}for(const _0x39aadc of _0x26ca8b[_0x315ce6(0x17f)]){const _0x5cfe83=this[_0x315ce6(0x162)](_0x365353,{'label':_0x39aadc[_0x315ce6(0x1b6)],'icon':_0x39aadc[_0x315ce6(0x16b)]||_0x4f0b7e,'type':_0x315ce6(0x18c)});_0x44518d[_0x315ce6(0x186)][_0x315ce6(0x173)](_0x5cfe83),_0x5cfe83['on'](_0x315ce6(0x15a),()=>{const _0xa7b4b3=_0x315ce6;this[_0xa7b4b3(0x1b8)](),this[_0xa7b4b3(0x18b)](_0x39aadc);});}}[_0x58162c(0x198)](_0x2aedc9,_0x3df4e6){const _0x5cbb33=_0x58162c;this[_0x5cbb33(0x194)]=new _0x592aa8(_0x3df4e6),this[_0x5cbb33(0x194)]['on'](_0x5cbb33(0x15c),(_0xc7fd5f,_0x14c6a8)=>{const _0x402ea3=_0x5cbb33;this[_0x402ea3(0x171)](_0x14c6a8);}),this[_0x5cbb33(0x194)]['on'](_0x5cbb33(0x148),()=>{const _0x4c7a23=_0x5cbb33;this[_0x4c7a23(0x177)](),this[_0x4c7a23(0x161)](),this[_0x4c7a23(0x13e)][_0x4c7a23(0x188)]({'target':this[_0x4c7a23(0x1b3)][_0x4c7a23(0x136)],'limiter':this[_0x4c7a23(0x15f)](),'positions':Po});}),this[_0x5cbb33(0x194)]['on'](_0x5cbb33(0x185),()=>{const _0x190609=_0x5cbb33;this[_0x190609(0x1a9)][_0x190609(0x145)]&&this[_0x190609(0x1a9)][_0x190609(0x188)]({'target':this[_0x190609(0x1b3)][_0x190609(0x136)],'limiter':this[_0x190609(0x15f)](),'positions':Po});}),_0x2aedc9[_0x5cbb33(0x186)][_0x5cbb33(0x173)](this[_0x5cbb33(0x194)]);}[_0x58162c(0x162)](_0x589fd6,_0x2446e5){const _0x27983a=_0x58162c,_0x43e48d=_0x27983a(0x18c)===_0x2446e5[_0x27983a(0x17e)]?new SourcesBalloonButtonView(_0x589fd6):new _0x125a31(_0x589fd6);return _0x43e48d[_0x27983a(0x193)]({'label':_0x2446e5[_0x27983a(0x1b6)],'icon':_0x2446e5[_0x27983a(0x16b)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':ko}),_0x43e48d;}[_0x58162c(0x13d)](){const _0x29fda9=_0x58162c;this[_0x29fda9(0x160)](),this[_0x29fda9(0x133)]();}[_0x58162c(0x133)](){const _0x1db3ce=_0x58162c;_0x39c8bc({'emitter':this[_0x1db3ce(0x1a9)],'contextElements':[this[_0x1db3ce(0x1a9)][_0x1db3ce(0x136)]],'callback':()=>{const _0x1a984f=_0x1db3ce;this[_0x1a984f(0x177)]();},'activator':()=>this[_0x1db3ce(0x1a9)][_0x1db3ce(0x145)]});}[_0x58162c(0x139)](_0x55098f){const _0xf6578=_0x58162c,_0x5422ba=this[_0xf6578(0x140)];_0x5422ba[_0xf6578(0x131)][_0xf6578(0x138)]=_0x55098f,_0x55098f?_0x5422ba[_0xf6578(0x1ab)][_0xf6578(0x195)]():_0x5422ba[_0xf6578(0x1ab)][_0xf6578(0x197)]();}[_0x58162c(0x160)](){const _0xd277e8=_0x58162c,{balloonView:_0x262392,buttonView:_0x480038,hideMethod:_0x42f57b}=this[_0xd277e8(0x140)];_0x39c8bc({'emitter':_0x262392,'contextElements':[_0x262392[_0xd277e8(0x136)],_0x480038[_0xd277e8(0x136)]],'callback':()=>{_0x42f57b();},'activator':()=>_0x480038[_0xd277e8(0x138)]&&!this[_0xd277e8(0x1a9)][_0xd277e8(0x145)]&&!this[_0xd277e8(0x1b5)][_0xd277e8(0x17d)]()});}[_0x58162c(0x156)](_0x4bb1d9,_0x216b6d,_0x170c14=!0x1,_0x42bc9d=!0x1){const _0x1c5d98=_0x58162c,_0x48829d=_0x1c5d98(0x1a5)===_0x216b6d||!0x0===_0x4bb1d9[_0x1c5d98(0x12f)],_0x4abff5=new _0x52da64(this[_0x1c5d98(0x1ad)],_0x4bb1d9,_0x48829d,_0x170c14,_0x42bc9d);return _0x48829d||_0x4abff5['on'](_0x1c5d98(0x13b),()=>{const _0x217b7a=_0x1c5d98;this[_0x217b7a(0x178)](_0x217b7a(0x19d),_0x4abff5['id']);}),_0x4abff5;}[_0x58162c(0x12b)](_0x272a2d,_0x11a1c7){const _0x148af2=_0x58162c;_0x11a1c7[_0x148af2(0x173)](_0x272a2d,0x0);}[_0x58162c(0x144)](_0x5600ec,_0x19541e){const _0x11fd4b=_0x58162c,_0x59bcd0=_0x19541e[_0x11fd4b(0x16f)](_0x5b3d6a=>_0x5b3d6a['id']===_0x5600ec);_0x59bcd0&&_0x19541e[_0x11fd4b(0x167)](_0x59bcd0);}[_0x58162c(0x13f)](){const _0x2154fd=_0x58162c;this[_0x2154fd(0x1b3)][_0x2154fd(0x138)]?this[_0x2154fd(0x1b8)]():(this[_0x2154fd(0x161)](),this[_0x2154fd(0x13e)][_0x2154fd(0x188)]({'target':this[_0x2154fd(0x1b3)][_0x2154fd(0x136)],'limiter':this[_0x2154fd(0x15f)](),'positions':Po}));}[_0x58162c(0x171)](_0x2b0c86){const _0x48071f=_0x58162c;this[_0x48071f(0x194)][_0x48071f(0x170)](),this[_0x48071f(0x177)](),this[_0x48071f(0x178)](_0x48071f(0x19b),_0x2b0c86);}}export class SourcesBalloonButtonView extends _0x125a31{[_0x58162c(0x152)];constructor(_0x11b958){const _0x118178=_0x58162c;super(_0x11b958),this[_0x118178(0x193)]({'withText':!0x0,'role':_0x118178(0x18e)}),this[_0x118178(0x152)]=this[_0x118178(0x16d)](),this[_0x118178(0x155)]({'attributes':{'class':[Eo]}});}[_0x58162c(0x15b)](){const _0x360b59=_0x58162c;super[_0x360b59(0x15b)](),this[_0x360b59(0x164)][_0x360b59(0x173)](this[_0x360b59(0x152)]);}[_0x58162c(0x16d)](){const _0x5f5665=_0x58162c,_0x423ab3=new _0x2e1fdb();return _0x423ab3[_0x5f5665(0x186)]=_0xe1ff79,_0x423ab3[_0x5f5665(0x155)]({'attributes':{'class':Eo+_0x5f5665(0x150)}}),_0x423ab3;}}function _0x3203(){const _0x55d149=['_toggleAddContextBalloon','5VfbgTP','removeContextItemChip','_bindEventHandlers','_setupAllBalloonClickOutsideHandlers','_addContextBalloonPanelView','_handleAddContextButtonClick','_addContextBalloonConfig','clearCurrentContextItems','_overflowManager','destroy','_removeContextFromCollection','isVisible','isEnabled','_setBalloonPanelContent','cancel','showSourceResourcesBalloon','_conversationContextsChips','setAddContextOptions','_createBaseBalloonPanel','southArrowNorthEast','files','isLoading','__arrow','ck-ai-chat-context-controls__show-more-balloon-panel','arrowView','setTemplate','isHidden','extendTemplate','_createContextButton','848790QCTwBS','AI_CHAT_CONTEXT_FILE_LABEL','current','execute','render','submitUrl','createCollection','_createAddContextButtonView','_getLimiterElement','_setupAddContextBalloonClickOutsideHandler','showAddContextBalloonPanel','_createBalloonButton','addContextItem','children','addDocumentToContext','overflowChips','remove','southArrowNorth','AI_CHAT_CONTEXT_ADD_CONTEXT','_setAddContextButtonEnabled','icon','focus','_createArrowView','enabled','find','clear','_handleUrlSubmit','ck-ai-chat-controls-button','add','setContainerElement','174582pjNQvV','ck-ai-chat-context-controls__pending-contexts','hideUrlBalloonPanel','fire','done','ck-ai-chat-context-controls__add-context-button','_createAddContextBalloonPanelView','urls','isAnyResourceBalloonVisible','type','sources','bind','searchInputVisibleFrom','showUrlBalloonPanel','loadSourceResources','ck-ai-chat-context-controls__url-balloon-panel','refreshBalloon','content','div','pin','addFileToContext','ck-ai-chat-context-controls__balloon-button-source','_showSourceResourcesBalloon','source','bodyCollection','menuitem','tooltip','ck-ai-chat-context-controls__add-context-balloon-panel','_setupTemplate','setContextItemLoading','set','_urlInputView','show','7388874UVesUJ','hide','_addUrlContent','reorganizeChips','_createResourcesBalloonView','addUrlToContext','clearConversationContextItems','removeContextItem','_createUrlBalloonPanelView','southArrowNorthWest','closest','ck-ai-chat-context-chips-wrapper-balloon','populateSourceResourceBalloon','northArrowSouthEast','addResourceToContext','conversation','setConversationContext','ck-ai-chat-context-controls__balloon-button','ck-ai-chat-context-controls','_urlBalloonPanelView','AI_CHAT_CONTEXT_URL_LABEL','balloonView','northArrowSouthWest','locale','defaultPositions','ck-ai-chat-controls_context_show-more-button','closeSourceResourceBalloon','_currentContextsChips','document','addContextButtonView','northArrowSouth','_resourcesBalloonView','label','4116468sZXzWQ','hideAddContextBalloonPanel','_addContextToCollection','2436540lJjsEN','ck-reset_all-excluded','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','isReadOnly','ck-ai-chat','buttonView','updateResourceState','_setupUrlBalloonClickOutsideHandler','27651320szeBxj','8175468GgdfDb','element','body','isOn'];_0x3203=function(){return _0x55d149;};return _0x3203();}
|
|
23
|
+
const _0x24443e=_0x321b;(function(_0x17991c,_0x49cda0){const _0x2c35db=_0x321b,_0x51e355=_0x17991c();while(!![]){try{const _0x3f15a6=parseInt(_0x2c35db(0x166))/0x1*(parseInt(_0x2c35db(0x19b))/0x2)+-parseInt(_0x2c35db(0x17d))/0x3*(parseInt(_0x2c35db(0x1e7))/0x4)+-parseInt(_0x2c35db(0x16a))/0x5*(-parseInt(_0x2c35db(0x172))/0x6)+-parseInt(_0x2c35db(0x1bb))/0x7+-parseInt(_0x2c35db(0x182))/0x8+-parseInt(_0x2c35db(0x1d4))/0x9+parseInt(_0x2c35db(0x1c5))/0xa;if(_0x3f15a6===_0x49cda0)break;else _0x51e355['push'](_0x51e355['shift']());}catch(_0x5418c8){_0x51e355['push'](_0x51e355['shift']());}}}(_0x7bf7,0x5f121));import{BalloonPanelView as _0x1fed47,ButtonView as _0x5899f1,clickOutsideHandler as _0x220d32,FileDialogButtonView as _0x480457,IconView as _0x445558,View as _0x1ff5a1}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x3a0aba,IconDocument as _0x842da8,IconDocumentOutline as _0x4fc455,IconDropdownArrow as _0x18c70c,IconLink as _0x375e90,IconPaperClip as _0x197374}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x20119b}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x31d66f}from'./aichatcontextpanelurlinputview.js';function _0x7bf7(){const _0x506fd9=['ck-reset_all-excluded','ck-ai-chat-context-chips-wrapper-balloon','children','55RgjlZh','loadSourceResources','_createBaseBalloonPanel','addContextButtonView','hide','populateSourceResourceBalloon','files','clearConversationContextItems','125274LosOkY','hideUrlBalloonPanel','body','urls','showSourceResourcesBalloon','_getLimiterElement','element','_createArrowView','ck-ai-chat-context-controls__show-more-balloon-panel','done','_addContextBalloonConfig','12NIYmov','arrowView','isEnabled','ck-ai-chat','_setBalloonPanelContent','4598872ZeUOuj','isReadOnly','enabled','extendTemplate','pin','setTemplate','setConversationContext','closeSourceResourceBalloon','ck-ai-chat-context-controls__pending-contexts','submitUrl','setAddContextOptions','clear','AI_CHAT_CONTEXT_URL_LABEL','isAnyResourceBalloonVisible','_urlBalloonPanelView','ck-ai-chat-context-controls__add-context-button','_overflowManager','removeContextItem','southArrowNorthEast','_addUrlContent','_currentContextsChips','_toggleAddContextBalloon','_conversationContextsChips','createCollection','AI_CHAT_CONTEXT_FILE_LABEL','18768WVQnsY','content','ck-ai-chat-context-controls','menuitem','_createContextButton','bodyCollection','AI_CHAT_CONTEXT_ADD_CONTEXT','execute','closest','isOn','render','addResourceToContext','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','addFileToContext','sources','showAddContextBalloonPanel','overflowChips','source','div','bind','locale','addContextItem','label','addUrlToContext','fire','remove','updateResourceState','northArrowSouth','buttonView','ck-ai-chat-context-controls__add-context-balloon-panel','destroy','find','1858206yCGtsn','ck-ai-chat-context-controls__balloon-button','_addContextToCollection','defaultPositions','balloonView','ck-ai-chat-controls_context_show-more-button','northArrowSouthEast','_bindEventHandlers','refreshBalloon','_addContextBalloonPanelView','19085460YUqSTh','_handleUrlSubmit','reorganizeChips','_resourcesBalloonView','clearCurrentContextItems','_setupAllBalloonClickOutsideHandlers','_createUrlBalloonPanelView','searchInputVisibleFrom','isVisible','_showSourceResourcesBalloon','addDocumentToContext','document','_setupUrlBalloonClickOutsideHandler','_createResourcesBalloonView','icon','6896277WjMEQV','northArrowSouthWest','southArrowNorthWest','ck-ai-chat-context-controls__balloon-button-source','showUrlBalloonPanel','current','_urlInputView','_createAddContextButtonView','southArrowNorth','tooltip','_createAddContextBalloonPanelView','ck-ai-chat-context-controls__url-balloon-panel','set','add','_setupTemplate','_setupAddContextBalloonClickOutsideHandler','isLoading','_setAddContextButtonEnabled','__arrow','752196gHQhmU','show','isHidden','focus','ck-ai-chat-controls-button','removeContextItemChip','_createBalloonButton','setContainerElement','type','conversation','_handleAddContextButtonClick','setContextItemLoading','cancel','hideAddContextBalloonPanel','_removeContextFromCollection','65tJEUea'];_0x7bf7=function(){return _0x506fd9;};return _0x7bf7();}import{AIChatChipsOverflowManager as _0x2f4ad0}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x2765f1}from'../../../aicore/utils/common-translations.js';function _0x321b(_0x577683,_0x2a79dd){const _0x7bf70a=_0x7bf7();return _0x321b=function(_0x321b0f,_0x3837a8){_0x321b0f=_0x321b0f-0x15b;let _0x586dbc=_0x7bf70a[_0x321b0f];return _0x586dbc;},_0x321b(_0x577683,_0x2a79dd);}import{AIChatResourcesBalloonView as _0x23cc76}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x24443e(0x1cf),_0x24443e(0x1a8),_0x24443e(0x1b2),_0x24443e(0x1a6),_0x24443e(0x193),_0x24443e(0x16b)];const Eo=_0x24443e(0x19d),vo=_0x24443e(0x18a),Vo=_0x24443e(0x1b8),Io=_0x24443e(0x191),Po=_0x24443e(0x1df),Ro=_0x24443e(0x1bc),Uo=_0x24443e(0x1d7),Lo=_0x24443e(0x15b),No=_0x24443e(0x168),Oo=_0x24443e(0x1c0),Mo=_0x24443e(0x17a),Ho=_0x24443e(0x180),jo=[_0x1fed47[_0x24443e(0x1be)][_0x24443e(0x1d5)],_0x1fed47[_0x24443e(0x1be)][_0x24443e(0x1b6)],_0x1fed47[_0x24443e(0x1be)][_0x24443e(0x1c1)],_0x1fed47[_0x24443e(0x1be)][_0x24443e(0x1d6)],_0x1fed47[_0x24443e(0x1be)][_0x24443e(0x1dc)],_0x1fed47[_0x24443e(0x1be)][_0x24443e(0x194)]];export class AIChatContextPanelView extends _0x1ff5a1{[_0x24443e(0x16d)];[_0x24443e(0x196)]=this[_0x24443e(0x199)]();[_0x24443e(0x198)]=this[_0x24443e(0x199)]();[_0x24443e(0x192)];[_0x24443e(0x1c4)];[_0x24443e(0x190)];[_0x24443e(0x1da)];[_0x24443e(0x1c8)];[_0x24443e(0x17c)];[_0x24443e(0x1a0)];constructor(_0x27b5bb,_0x21aa60){const _0x41973d=_0x24443e;super(_0x27b5bb),this[_0x41973d(0x1a0)]=_0x21aa60[_0x41973d(0x1a0)],this[_0x41973d(0x196)]=this[_0x41973d(0x199)](),this[_0x41973d(0x198)]=this[_0x41973d(0x199)](),this[_0x41973d(0x16d)]=this[_0x41973d(0x1db)](_0x27b5bb),this[_0x41973d(0x1c4)]=this[_0x41973d(0x1de)](_0x27b5bb),this[_0x41973d(0x190)]=this[_0x41973d(0x1cb)](_0x27b5bb),this[_0x41973d(0x1c8)]=this[_0x41973d(0x1d2)](_0x27b5bb,_0x21aa60);const _0x187ee8={'cssClasses':{'showMoreButton':Oo,'showMoreBalloon':Mo,'overflowContainer':No,'controlsButton':Lo}};this[_0x41973d(0x192)]=new _0x2f4ad0(_0x27b5bb,this[_0x41973d(0x196)],_0x187ee8,this[_0x41973d(0x1a0)],this),this[_0x41973d(0x17c)]={'buttonView':this[_0x41973d(0x16d)],'balloonView':this[_0x41973d(0x1c4)],'hideMethod':this[_0x41973d(0x164)][_0x41973d(0x1ae)](this),'showMethod':this[_0x41973d(0x1aa)][_0x41973d(0x1ae)](this)},this[_0x41973d(0x1e2)](),this[_0x41973d(0x1c2)]();}[_0x24443e(0x1a5)](){const _0x367265=_0x24443e;super[_0x367265(0x1a5)](),this[_0x367265(0x1ca)](),this[_0x367265(0x192)][_0x367265(0x15e)](this[_0x367265(0x178)]),this[_0x367265(0x192)][_0x367265(0x1c7)]();}[_0x24443e(0x1b9)](){const _0x34f980=_0x24443e;super[_0x34f980(0x1b9)](),this[_0x34f980(0x192)][_0x34f980(0x1b9)](),this[_0x34f980(0x1c8)][_0x34f980(0x1b9)]();}[_0x24443e(0x1b0)](_0x2d3745,_0x2c7eb9){const _0x3f4974=_0x24443e,_0x2d32db=this[_0x3f4974(0x19f)](_0x2d3745,_0x3f4974(0x1d9),!0x0,_0x2c7eb9);this[_0x3f4974(0x1bd)](_0x2d32db,this[_0x3f4974(0x196)]),this[_0x3f4974(0x192)][_0x3f4974(0x1c7)]();}[_0x24443e(0x193)](_0x716d82){const _0x40ae69=_0x24443e;this[_0x40ae69(0x165)](_0x716d82,this[_0x40ae69(0x196)]),this[_0x40ae69(0x165)](_0x716d82,this[_0x40ae69(0x192)][_0x40ae69(0x1ab)]),this[_0x40ae69(0x192)][_0x40ae69(0x1c7)]();}[_0x24443e(0x162)](_0x2cf97d,_0x4ca5c3){const _0xeff8cc=_0x24443e;let _0x4bf330=this[_0xeff8cc(0x196)][_0xeff8cc(0x1ba)](_0x348fc3=>_0x348fc3['id']===_0x2cf97d);_0x4bf330||(_0x4bf330=this[_0xeff8cc(0x192)][_0xeff8cc(0x1ab)][_0xeff8cc(0x1ba)](_0x4904a6=>_0x4904a6['id']===_0x2cf97d)),_0x4bf330&&(_0x4bf330[_0xeff8cc(0x1e4)]=_0x4ca5c3);}[_0x24443e(0x188)](_0x4cd8b3){const _0x318b33=_0x24443e;this[_0x318b33(0x198)][_0x318b33(0x18d)]();for(const _0x10a3de of _0x4cd8b3){const _0x3242d4=this[_0x318b33(0x19f)](_0x10a3de,_0x318b33(0x160),!0x1,!0x1);this[_0x318b33(0x1bd)](_0x3242d4,this[_0x318b33(0x198)]);}}[_0x24443e(0x1c9)](){const _0x545d7b=_0x24443e;this[_0x545d7b(0x196)][_0x545d7b(0x18d)](),this[_0x545d7b(0x192)][_0x545d7b(0x18d)]();}[_0x24443e(0x171)](){const _0x3bacd6=_0x24443e;this[_0x3bacd6(0x198)][_0x3bacd6(0x18d)]();}[_0x24443e(0x1b5)](_0x368710,_0x238b8c,_0x155c0f){const _0x3dfd9e=_0x24443e;this[_0x3dfd9e(0x1c8)][_0x3dfd9e(0x1b5)](_0x368710,_0x238b8c,_0x155c0f);}[_0x24443e(0x164)](){const _0x349ef5=_0x24443e;this[_0x349ef5(0x197)](!0x1);}[_0x24443e(0x1aa)](){const _0x32b4a7=_0x24443e;this[_0x32b4a7(0x197)](!0x0);}[_0x24443e(0x173)](){const _0x29b47d=_0x24443e;this[_0x29b47d(0x190)][_0x29b47d(0x16e)](),this[_0x29b47d(0x16d)][_0x29b47d(0x1a4)]=!0x1,this[_0x29b47d(0x1da)]&&this[_0x29b47d(0x1da)][_0x29b47d(0x18d)]();}[_0x24443e(0x1d8)](){const _0x34eb02=_0x24443e;this[_0x34eb02(0x190)][_0x34eb02(0x1e8)](),this[_0x34eb02(0x16d)][_0x34eb02(0x1a4)]=!0x0;}[_0x24443e(0x1ce)](_0xb61172){const _0x51399c=_0x24443e;this[_0x51399c(0x1c8)][_0x51399c(0x176)](_0xb61172),this[_0x51399c(0x16d)][_0x51399c(0x1a4)]=!0x0;}[_0x24443e(0x16f)](_0x4c0644,_0x121286,_0x5b2cb6,_0x96baf8){const _0x10fa51=_0x24443e;this[_0x10fa51(0x1c8)][_0x10fa51(0x16f)](_0x4c0644,_0x5b2cb6,_0x96baf8);}[_0x24443e(0x189)](_0x2662da){const _0x37b5c0=_0x24443e;this[_0x37b5c0(0x1c8)][_0x37b5c0(0x189)](_0x2662da),this[_0x37b5c0(0x16d)][_0x37b5c0(0x1a4)]=!0x1;}[_0x24443e(0x18c)](_0x109a27){const _0x5e3bc2=_0x24443e;this[_0x5e3bc2(0x181)](this[_0x5e3bc2(0x1c4)],this[_0x5e3bc2(0x1af)],_0x109a27),this[_0x5e3bc2(0x1e5)](_0x109a27);}[_0x24443e(0x1e5)](_0x467783){const _0x57c633=_0x24443e,_0x5066ff=!_0x467783[_0x57c633(0x1d0)][_0x57c633(0x1e9)]&&_0x467783[_0x57c633(0x1d0)][_0x57c633(0x184)],_0x4049b2=_0x467783[_0x57c633(0x175)][_0x57c633(0x184)],_0x1ae283=_0x467783[_0x57c633(0x170)][_0x57c633(0x184)];this[_0x57c633(0x16d)][_0x57c633(0x17f)]=_0x5066ff||_0x4049b2||_0x1ae283;}[_0x24443e(0x1e2)](){const _0x480ac5=_0x24443e;this[_0x480ac5(0x187)]({'tag':_0x480ac5(0x1ad),'attributes':{'class':[Eo,_0x480ac5(0x167)]},'children':[{'tag':_0x480ac5(0x1ad),'attributes':{'class':vo},'children':this[_0x480ac5(0x196)]}]});}[_0x24443e(0x1c2)](){const _0xbada8d=_0x24443e;this[_0xbada8d(0x16d)]['on'](_0xbada8d(0x1a2),()=>{const _0x1cb469=_0xbada8d;this[_0x1cb469(0x161)]();});}[_0x24443e(0x1db)](_0x2fa692){const _0x43fd2e=_0x24443e,_0x20a34f=new _0x5899f1(_0x2fa692);return _0x20a34f[_0x43fd2e(0x1e0)]({'label':_0x2765f1(_0x2fa692,_0x43fd2e(0x1a1)),'class':Lo+'\x20'+Io,'icon':_0x197374,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x20a34f;}[_0x24443e(0x1de)](_0x58e879){const _0xc5d178=_0x24443e;return this[_0xc5d178(0x16c)](_0x58e879,Vo);}[_0x24443e(0x1cb)](_0x1a57ff){const _0x5ac2b3=_0x24443e,_0x2b863a=this[_0x5ac2b3(0x16c)](_0x1a57ff,Po);return this[_0x5ac2b3(0x195)](_0x2b863a,_0x1a57ff),_0x2b863a;}[_0x24443e(0x1d2)](_0x1b3e7c,_0x27f014){const _0xae5a2=_0x24443e,_0x591d5a={'searchInputVisibleFrom':_0x27f014[_0xae5a2(0x1cc)],'onBackToContext':()=>{const _0x43df6d=_0xae5a2;this[_0x43df6d(0x1aa)](),this[_0x43df6d(0x1c4)][_0x43df6d(0x186)]({'target':this[_0x43df6d(0x16d)][_0x43df6d(0x178)],'limiter':this[_0x43df6d(0x177)](),'positions':jo});},'onResourceSelected':(_0x3d50d6,_0x31a177)=>{const _0x431bdb=_0xae5a2;this[_0x431bdb(0x1b3)](_0x431bdb(0x1a6),{'source':_0x3d50d6,'resource':_0x31a177});},'onLoadSourceResources':_0x3de922=>{const _0x42d925=_0xae5a2;this[_0x42d925(0x1b3)](_0x42d925(0x16b),_0x3de922);},'onBalloonClosed':()=>{const _0x423033=_0xae5a2;this[_0x423033(0x16d)][_0x423033(0x1a4)]=!0x1;},'getLimiterElement':()=>this[_0xae5a2(0x177)](),'getTargetElement':()=>this[_0xae5a2(0x16d)][_0xae5a2(0x178)]};return new _0x23cc76(_0x1b3e7c,_0x27f014[_0xae5a2(0x1a0)],_0x591d5a);}[_0x24443e(0x177)](){const _0x30a1be=_0x24443e;return this[_0x30a1be(0x178)]?.[_0x30a1be(0x1a3)]('.'+Ho)||document[_0x30a1be(0x174)];}[_0x24443e(0x16c)](_0x2f3ae2,_0x38a449){const _0x36d505=_0x24443e,_0x123858=new _0x1fed47(_0x2f3ae2);return _0x123858[_0x36d505(0x185)]({'attributes':{'class':_0x38a449}}),this[_0x36d505(0x1a0)][_0x36d505(0x1e1)](_0x123858),_0x123858;}[_0x24443e(0x181)](_0x282180,_0x36aa3e,_0x4c62a4){const _0x539df3=_0x24443e;if(_0x282180[_0x539df3(0x19c)][_0x539df3(0x18d)](),!_0x4c62a4[_0x539df3(0x1d0)][_0x539df3(0x1e9)]&&_0x4c62a4[_0x539df3(0x1d0)][_0x539df3(0x184)]){const _0x19afab=this[_0x539df3(0x15d)](_0x36aa3e,{'label':_0x2765f1(_0x36aa3e,_0x539df3(0x1a7)),'icon':_0x842da8});_0x19afab['on'](_0x539df3(0x1a2),()=>{const _0x2f5120=_0x539df3;this[_0x2f5120(0x1b3)](_0x2f5120(0x1cf)),this[_0x2f5120(0x164)]();}),_0x282180[_0x539df3(0x19c)][_0x539df3(0x1e1)](_0x19afab);}if(_0x4c62a4[_0x539df3(0x175)][_0x539df3(0x184)]){const _0x37bc9f=this[_0x539df3(0x15d)](_0x36aa3e,{'label':_0x2765f1(_0x36aa3e,_0x539df3(0x18e)),'icon':_0x375e90});_0x37bc9f['on'](_0x539df3(0x1a2),()=>{const _0x3db3a9=_0x539df3;this[_0x3db3a9(0x164)](),this[_0x3db3a9(0x1d8)](),this[_0x3db3a9(0x190)][_0x3db3a9(0x186)]({'target':this[_0x3db3a9(0x16d)][_0x3db3a9(0x178)],'limiter':this[_0x3db3a9(0x177)](),'positions':jo}),this[_0x3db3a9(0x1da)][_0x3db3a9(0x1ea)]();}),_0x282180[_0x539df3(0x19c)][_0x539df3(0x1e1)](_0x37bc9f);}if(_0x4c62a4[_0x539df3(0x170)][_0x539df3(0x184)]){const _0x1a14fa=new _0x480457(_0x36aa3e);_0x1a14fa[_0x539df3(0x1e0)]({'label':_0x2765f1(_0x36aa3e,_0x539df3(0x19a)),'icon':_0x3a0aba,'withText':!0x0,'tooltip':!0x0,'class':Ro,'allowMultipleFiles':!0x0}),_0x1a14fa['on'](_0x539df3(0x17b),(_0x43116d,_0x208307)=>{const _0x430283=_0x539df3;this[_0x430283(0x1b3)](_0x430283(0x1a8),_0x208307),this[_0x430283(0x164)]();}),_0x1a14fa[_0x539df3(0x1dd)]=!0x0,_0x282180[_0x539df3(0x19c)][_0x539df3(0x1e1)](_0x1a14fa);}for(const _0x16b1cd of _0x4c62a4[_0x539df3(0x1a9)]){const _0x54e1e7=this[_0x539df3(0x15d)](_0x36aa3e,{'label':_0x16b1cd[_0x539df3(0x1b1)],'icon':_0x16b1cd[_0x539df3(0x1d3)]||_0x4fc455,'type':_0x539df3(0x1ac)});_0x282180[_0x539df3(0x19c)][_0x539df3(0x1e1)](_0x54e1e7),_0x54e1e7['on'](_0x539df3(0x1a2),()=>{const _0x423605=_0x539df3;this[_0x423605(0x164)](),this[_0x423605(0x1ce)](_0x16b1cd);});}}[_0x24443e(0x195)](_0x369fc0,_0x2d46e6){const _0x2e5cbb=_0x24443e;this[_0x2e5cbb(0x1da)]=new _0x31d66f(_0x2d46e6),this[_0x2e5cbb(0x1da)]['on'](_0x2e5cbb(0x18b),(_0x162d27,_0x337ae0)=>{const _0xa44568=_0x2e5cbb;this[_0xa44568(0x1c6)](_0x337ae0);}),this[_0x2e5cbb(0x1da)]['on'](_0x2e5cbb(0x163),()=>{const _0x2e57da=_0x2e5cbb;this[_0x2e57da(0x173)](),this[_0x2e57da(0x1aa)](),this[_0x2e57da(0x1c4)][_0x2e57da(0x186)]({'target':this[_0x2e57da(0x16d)][_0x2e57da(0x178)],'limiter':this[_0x2e57da(0x177)](),'positions':jo});}),this[_0x2e5cbb(0x1da)]['on'](_0x2e5cbb(0x1c3),()=>{const _0x387f51=_0x2e5cbb;this[_0x387f51(0x190)][_0x387f51(0x1cd)]&&this[_0x387f51(0x190)][_0x387f51(0x186)]({'target':this[_0x387f51(0x16d)][_0x387f51(0x178)],'limiter':this[_0x387f51(0x177)](),'positions':jo});}),_0x369fc0[_0x2e5cbb(0x19c)][_0x2e5cbb(0x1e1)](this[_0x2e5cbb(0x1da)]);}[_0x24443e(0x15d)](_0x240118,_0x559d57){const _0xac73b2=_0x24443e,_0x405993=_0xac73b2(0x1ac)===_0x559d57[_0xac73b2(0x15f)]?new SourcesBalloonButtonView(_0x240118):new _0x5899f1(_0x240118);return _0x405993[_0xac73b2(0x1e0)]({'label':_0x559d57[_0xac73b2(0x1b1)],'icon':_0x559d57[_0xac73b2(0x1d3)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Ro}),_0x405993;}[_0x24443e(0x1ca)](){const _0x3711b5=_0x24443e;this[_0x3711b5(0x1e3)](),this[_0x3711b5(0x1d1)]();}[_0x24443e(0x1d1)](){const _0x4ee84b=_0x24443e;_0x220d32({'emitter':this[_0x4ee84b(0x190)],'contextElements':[this[_0x4ee84b(0x190)][_0x4ee84b(0x178)]],'callback':()=>{const _0x2d24c7=_0x4ee84b;this[_0x2d24c7(0x173)]();},'activator':()=>this[_0x4ee84b(0x190)][_0x4ee84b(0x1cd)]});}[_0x24443e(0x197)](_0x514e22){const _0x2a5921=_0x24443e,_0x10c0ae=this[_0x2a5921(0x17c)];_0x10c0ae[_0x2a5921(0x1b7)][_0x2a5921(0x1a4)]=_0x514e22,_0x514e22?_0x10c0ae[_0x2a5921(0x1bf)][_0x2a5921(0x1e8)]():_0x10c0ae[_0x2a5921(0x1bf)][_0x2a5921(0x16e)]();}[_0x24443e(0x1e3)](){const _0x48fd73=_0x24443e,{balloonView:_0x3244c4,buttonView:_0x530cda,hideMethod:_0x3bec51}=this[_0x48fd73(0x17c)];_0x220d32({'emitter':_0x3244c4,'contextElements':[_0x3244c4[_0x48fd73(0x178)],_0x530cda[_0x48fd73(0x178)]],'callback':()=>{_0x3bec51();},'activator':()=>_0x530cda[_0x48fd73(0x1a4)]&&!this[_0x48fd73(0x190)][_0x48fd73(0x1cd)]&&!this[_0x48fd73(0x1c8)][_0x48fd73(0x18f)]()});}[_0x24443e(0x19f)](_0x298211,_0x232b11,_0xaedc21=!0x1,_0x38da90=!0x1){const _0xd707d3=_0x24443e,_0x29b64e=_0xd707d3(0x160)===_0x232b11||!0x0===_0x298211[_0xd707d3(0x183)],_0x2d5a01=new _0x20119b(this[_0xd707d3(0x1af)],_0x298211,_0x29b64e,_0xaedc21,_0x38da90);return _0x29b64e||_0x2d5a01['on'](_0xd707d3(0x15c),()=>{const _0x397f28=_0xd707d3;this[_0x397f28(0x1b3)](_0x397f28(0x193),_0x2d5a01['id']);}),_0x2d5a01;}[_0x24443e(0x1bd)](_0x2f1e67,_0x33c5a2){const _0x426048=_0x24443e;_0x33c5a2[_0x426048(0x1e1)](_0x2f1e67,0x0);}[_0x24443e(0x165)](_0x5f3ddd,_0x4e14af){const _0xcc00ca=_0x24443e,_0x135671=_0x4e14af[_0xcc00ca(0x1ba)](_0x4736ed=>_0x4736ed['id']===_0x5f3ddd);_0x135671&&_0x4e14af[_0xcc00ca(0x1b4)](_0x135671);}[_0x24443e(0x161)](){const _0x2d3197=_0x24443e;this[_0x2d3197(0x16d)][_0x2d3197(0x1a4)]?this[_0x2d3197(0x164)]():(this[_0x2d3197(0x1aa)](),this[_0x2d3197(0x1c4)][_0x2d3197(0x186)]({'target':this[_0x2d3197(0x16d)][_0x2d3197(0x178)],'limiter':this[_0x2d3197(0x177)](),'positions':jo}));}[_0x24443e(0x1c6)](_0x27178e){const _0x2fca8a=_0x24443e;this[_0x2fca8a(0x1da)][_0x2fca8a(0x18d)](),this[_0x2fca8a(0x173)](),this[_0x2fca8a(0x1b3)](_0x2fca8a(0x1b2),_0x27178e);}}export class SourcesBalloonButtonView extends _0x5899f1{[_0x24443e(0x17e)];constructor(_0x3877ef){const _0x163acf=_0x24443e;super(_0x3877ef),this[_0x163acf(0x1e0)]({'withText':!0x0,'role':_0x163acf(0x19e)}),this[_0x163acf(0x17e)]=this[_0x163acf(0x179)](),this[_0x163acf(0x185)]({'attributes':{'class':[Uo]}});}[_0x24443e(0x1a5)](){const _0xda1777=_0x24443e;super[_0xda1777(0x1a5)](),this[_0xda1777(0x169)][_0xda1777(0x1e1)](this[_0xda1777(0x17e)]);}[_0x24443e(0x179)](){const _0x212d65=_0x24443e,_0x3ee8b5=new _0x445558();return _0x3ee8b5[_0x212d65(0x19c)]=_0x18c70c,_0x3ee8b5[_0x212d65(0x185)]({'attributes':{'class':Uo+_0x212d65(0x1e6)}}),_0x3ee8b5;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x58c0bc=_0x120a;(function(_0x13ce0d,_0x24083f){const _0x5b8559=_0x120a,_0x210d07=_0x13ce0d();while(!![]){try{const _0x1c6b94=-parseInt(_0x5b8559(0x181))/0x1+-parseInt(_0x5b8559(0x188))/0x2+-parseInt(_0x5b8559(0x187))/0x3*(-parseInt(_0x5b8559(0x17a))/0x4)+parseInt(_0x5b8559(0x18d))/0x5*(parseInt(_0x5b8559(0x185))/0x6)+-parseInt(_0x5b8559(0x180))/0x7+-parseInt(_0x5b8559(0x18c))/0x8+-parseInt(_0x5b8559(0x18a))/0x9*(-parseInt(_0x5b8559(0x175))/0xa);if(_0x1c6b94===_0x24083f)break;else _0x210d07['push'](_0x210d07['shift']());}catch(_0x30fde1){_0x210d07['push'](_0x210d07['shift']());}}}(_0x555e,0xaa988));import{ButtonView as _0x387570,View as _0x4cda06}from'ckeditor5/src/ui.js';function _0x120a(_0x528e38,_0x405bd2){const _0x555ebf=_0x555e();return _0x120a=function(_0x120ad3,_0x43d8a7){_0x120ad3=_0x120ad3-0x174;let _0x57a64c=_0x555ebf[_0x120ad3];return _0x57a64c;},_0x120a(_0x528e38,_0x405bd2);}import{IconStop as _0x37b352}from'ckeditor5/src/icons.js';import{getTranslation as _0x45fe44}from'../../../aicore/utils/common-translations.js';function _0x555e(){const _0x5a6f5f=['ck-ai-chat-controls-loader-wrapper','ck-ai-chat-controls-loader-icon','set','913766TZZkxd','476233XNrCIv','ck-ai-chat-controls-loader','fire','ck-ai-chat-controls-loader-icon-dot','1773186IhxJei','execute','33fyidAk','2237134yDoAAv','_cancelButtonView','1656atFAwI','AI_CHAT_STOP_GENERATING','10362152gTWqPP','15SbCKvN','_loaderView','div','locale','setTemplate','82430FLdLaa','ck-reset_all','_createCancelButtonView','abortPromptStream','_createLoaderView','478568cNLrBv','ck-ai-button-secondary\x20ck-ai-button-stop-generating','AI_CHAT_IS_WRITING'];_0x555e=function(){return _0x5a6f5f;};return _0x555e();}export class AIChatControlsLoaderView extends _0x4cda06{[_0x58c0bc(0x189)];[_0x58c0bc(0x18e)];constructor(_0x3fcf64){const _0x3a3a8b=_0x58c0bc;super(_0x3fcf64),this[_0x3a3a8b(0x189)]=this[_0x3a3a8b(0x177)](),this[_0x3a3a8b(0x18e)]=this[_0x3a3a8b(0x179)](),this[_0x3a3a8b(0x174)]({'tag':_0x3a3a8b(0x18f),'attributes':{'class':['ck',_0x3a3a8b(0x17d),_0x3a3a8b(0x176)]},'children':[this[_0x3a3a8b(0x18e)],this[_0x3a3a8b(0x189)]]});}[_0x58c0bc(0x177)](){const _0x32db93=_0x58c0bc,_0x23ce53=new _0x387570(this[_0x32db93(0x190)]);return _0x23ce53[_0x32db93(0x17f)]({'label':_0x45fe44(this[_0x32db93(0x190)],_0x32db93(0x18b)),'withText':!0x0,'class':_0x32db93(0x17b),'icon':_0x37b352}),_0x23ce53['on'](_0x32db93(0x186),()=>{const _0x4925d7=_0x32db93;this[_0x4925d7(0x183)](_0x4925d7(0x178));}),_0x23ce53;}[_0x58c0bc(0x179)](){const _0x2b13a8=_0x58c0bc,_0x479c64=new _0x4cda06(this[_0x2b13a8(0x190)]);return _0x479c64[_0x2b13a8(0x174)]({'tag':_0x2b13a8(0x18f),'attributes':{'class':[_0x2b13a8(0x182)]},'children':[{'tag':_0x2b13a8(0x18f),'attributes':{'class':[_0x2b13a8(0x17e)]},'children':[{'tag':_0x2b13a8(0x18f),'attributes':{'class':[_0x2b13a8(0x184)]}},{'tag':_0x2b13a8(0x18f),'attributes':{'class':[_0x2b13a8(0x184)]}},{'tag':_0x2b13a8(0x18f),'attributes':{'class':[_0x2b13a8(0x184)]}}]},{'text':_0x45fe44(this[_0x2b13a8(0x190)],_0x2b13a8(0x17c))}]}),_0x479c64;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x202c(_0x3fbf90,_0x4177ac){const _0x599ab6=_0x599a();return _0x202c=function(_0x202c39,_0x3597d8){_0x202c39=_0x202c39-0x9c;let _0x574c10=_0x599ab6[_0x202c39];return _0x574c10;},_0x202c(_0x3fbf90,_0x4177ac);}const _0x12f52a=_0x202c;(function(_0x347965,_0x44070b){const _0x2f046a=_0x202c,_0x49f421=_0x347965();while(!![]){try{const _0x4e0dd9=-parseInt(_0x2f046a(0xcb))/0x1*(-parseInt(_0x2f046a(0xcc))/0x2)+parseInt(_0x2f046a(0xa8))/0x3+-parseInt(_0x2f046a(0xa5))/0x4+-parseInt(_0x2f046a(0xf2))/0x5*(parseInt(_0x2f046a(0xb6))/0x6)+parseInt(_0x2f046a(0xc6))/0x7+-parseInt(_0x2f046a(0xfe))/0x8*(parseInt(_0x2f046a(0xc0))/0x9)+-parseInt(_0x2f046a(0xe0))/0xa*(-parseInt(_0x2f046a(0xd4))/0xb);if(_0x4e0dd9===_0x44070b)break;else _0x49f421['push'](_0x49f421['shift']());}catch(_0x1b7f4b){_0x49f421['push'](_0x49f421['shift']());}}}(_0x599a,0x3f60f));import{Collection as _0x25f8f3}from'ckeditor5/src/utils.js';import{IconAI as _0x1a6c3f,IconBulb as _0x9e4b49,IconWeb as _0x374ae5}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x181e6b,ButtonLabelView as _0x1d3e99,ButtonView as _0x8c4118,createDropdown as _0xe52daf,IconView as _0x5e7b2b,UIModel as _0x39b32c,View as _0x53921f}from'ckeditor5/src/ui.js';function _0x599a(){const _0xaf8398=['70dFUNVq','_webSearchButton','modelSelectorVisible','reasoningActive','source','_createModelSelectionDropdown','_createModelNameView','ck-ai-chat-controls-button--commands','AI_CHAT_ENABLE_WEB_SEARCH','isVisible','_createCommandsButton','buttonView','365768sNbugD','bindTemplate','name','clear','startsWith','setTemplate','withText','label','content','listenTo','disableModelSelector','setModelList','1136280UsWeLh','ck-button__label','setModel','1538667oquHcw','_getCapabilityParts','extendTemplate','_createReasoningButton','setReasoning','AI_CHAT_REASONING','text','length','fire','_commandsButton','ck-ai-chat-controls__model-selection','agent','model','ck-ai-chat-controls__model-selection__item-capabilities','209724PkEzRM','AI_CHAT_DISABLE_REASONING','_modelNameView','modelSelectorEnabled','log','tooltip','activeModelId','AI_CHAT_COMMANDS','enabled','isEnabled','9Fuomxo','div','capabilities','set','ck-ai-chat-controls__model-name','_modelSelectionDropdown','1261736DCaDPq','style','ck-ai-chat-controls__model-selection__item-name','createCollection','_reasoningButton','2866eYnsGb','74jPakRn','locale','Commands\x20are\x20not\x20implemented\x20yet.','toLowerCase','AI_CHAT_ENABLE_REASONING','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','bind','activeModelName','3075237bMjVUI','add','setWebSearch','_createWebSearchButton','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','AI_CHAT_SEARCH_WEB','AI_CHAT_DISABLE_WEB_SEARCH','addMany','selectModel','toggleWebSearch','span','ck-ai-chat__prompt-capabilities','10LaCZto','AI_CHAT_CAPABILITIES_YES','AI_CHAT_CAPABILITIES_NO','enableModelSelector','isOn','ck-hidden','description','getLocalized','_modelSelectionDropdownItems','toggleReasoning','execute','reasoning','webSearch','menuitemradio','button','ck-ai-chat-controls__model-selection__item-description','webSearchActive','ck-ai-chat-controls-button'];_0x599a=function(){return _0xaf8398;};return _0x599a();}import{getTranslation as _0x56fee7}from'../../../aicore/utils/common-translations.js';import{AIModels as _0x2b3da5}from'../../../aicore/model/aimodels.js';const No=_0x12f52a(0xdf),vo=_0x12f52a(0xf1),Ho=_0x12f52a(0xf9),Mo=_0x12f52a(0xb2),Lo=_0x12f52a(0xc8),Ro=_0x12f52a(0xef),Do=_0x12f52a(0xb5),Wo='n';export class AIChatPromptCapabilitiesView extends _0x53921f{[_0x12f52a(0xf3)];[_0x12f52a(0xca)];[_0x12f52a(0xb1)];[_0x12f52a(0xc5)];[_0x12f52a(0xe8)];[_0x12f52a(0xb8)];constructor(_0x508d36){const _0x3c3a1e=_0x12f52a;super(_0x508d36),this[_0x3c3a1e(0xc3)](_0x3c3a1e(0xf0),!0x1),this[_0x3c3a1e(0xc3)](_0x3c3a1e(0xf5),!0x1),this[_0x3c3a1e(0xc3)](_0x3c3a1e(0xf4),!0x0),this[_0x3c3a1e(0xc3)](_0x3c3a1e(0xb9),!0x0),this[_0x3c3a1e(0xc3)](_0x3c3a1e(0xbc),null),this[_0x3c3a1e(0xc3)](_0x3c3a1e(0xd3),null),this[_0x3c3a1e(0xc5)]=this[_0x3c3a1e(0xf7)](),this[_0x3c3a1e(0xb8)]=this[_0x3c3a1e(0xf8)](),this[_0x3c3a1e(0xf3)]=this[_0x3c3a1e(0xd7)](),this[_0x3c3a1e(0xca)]=this[_0x3c3a1e(0xab)](),this[_0x3c3a1e(0xb1)]=this[_0x3c3a1e(0xfc)](),this[_0x3c3a1e(0xc5)][_0x3c3a1e(0xfd)][_0x3c3a1e(0xd2)](_0x3c3a1e(0xfb))['to'](this,_0x3c3a1e(0xf4),_0x444a13=>_0x444a13),this[_0x3c3a1e(0xc5)][_0x3c3a1e(0xfd)][_0x3c3a1e(0xd2)](_0x3c3a1e(0xbb))['to'](this,_0x3c3a1e(0xb9),_0x64d581=>_0x64d581?this[_0x3c3a1e(0xc5)][_0x3c3a1e(0xfd)][_0x3c3a1e(0xa0)]:_0x56fee7(this[_0x3c3a1e(0xcd)],_0x3c3a1e(0xd1))),this[_0x3c3a1e(0xc5)][_0x3c3a1e(0xd2)](_0x3c3a1e(0xbf))['to'](this,_0x3c3a1e(0xb9),_0x56b2f0=>_0x56b2f0),this[_0x3c3a1e(0xf3)][_0x3c3a1e(0xd2)](_0x3c3a1e(0xe4))['to'](this,_0x3c3a1e(0xf0),_0xea54e0=>_0xea54e0),this[_0x3c3a1e(0xf3)][_0x3c3a1e(0xd2)](_0x3c3a1e(0x9f))['to'](this,_0x3c3a1e(0xf4),_0x14bdd9=>!_0x14bdd9),this[_0x3c3a1e(0xf3)][_0x3c3a1e(0xd2)](_0x3c3a1e(0xbb))['to'](this,_0x3c3a1e(0xf0),_0x304a4b=>_0x56fee7(this[_0x3c3a1e(0xcd)],_0x304a4b?_0x3c3a1e(0xda):_0x3c3a1e(0xfa))),this[_0x3c3a1e(0xca)][_0x3c3a1e(0xd2)](_0x3c3a1e(0xe4))['to'](this,_0x3c3a1e(0xf5),_0x1e14ea=>_0x1e14ea),this[_0x3c3a1e(0xca)][_0x3c3a1e(0xd2)](_0x3c3a1e(0x9f))['to'](this,_0x3c3a1e(0xf4),_0x40dfff=>!_0x40dfff),this[_0x3c3a1e(0xca)][_0x3c3a1e(0xd2)](_0x3c3a1e(0xbb))['to'](this,_0x3c3a1e(0xf5),_0x33f0cf=>_0x56fee7(this[_0x3c3a1e(0xcd)],_0x33f0cf?_0x3c3a1e(0xb7):_0x3c3a1e(0xd0))),this[_0x3c3a1e(0x9e)]({'tag':_0x3c3a1e(0xc1),'attributes':{'class':[No]},'children':[this[_0x3c3a1e(0xc5)],this[_0x3c3a1e(0xb8)],this[_0x3c3a1e(0xf3)],this[_0x3c3a1e(0xca)],this[_0x3c3a1e(0xb1)]]}),this[_0x3c3a1e(0xe8)]=new _0x25f8f3(),_0x181e6b(this[_0x3c3a1e(0xc5)],this[_0x3c3a1e(0xe8)]);}[_0x12f52a(0xa4)](_0x2b5673,_0x2ce6af){const _0x340c9e=_0x12f52a;if(this[_0x340c9e(0xc3)](_0x340c9e(0xf4),!(_0x2ce6af&&_0x2b5673[_0x340c9e(0xaf)]<=0x1)),this[_0x340c9e(0xe8)][_0x340c9e(0x9c)](),_0x2b5673?.[_0x340c9e(0xaf)]){const _0x2c88ad=_0x2b3da5[_0x340c9e(0xe7)](this[_0x340c9e(0xcd)],_0x2b5673);for(const _0x26495a of _0x2c88ad){const _0x3a86ff=new _0x39b32c({'label':_0x26495a[_0x340c9e(0x100)],'withText':!0x0,'role':_0x340c9e(0xed),'id':_0x26495a['id'],'model':_0x26495a});_0x3a86ff[_0x340c9e(0xd2)](_0x340c9e(0xe4))['to'](this,_0x340c9e(0xbc),_0x352a41=>_0x352a41===_0x26495a['id']),this[_0x340c9e(0xe8)][_0x340c9e(0xd5)]({'type':_0x340c9e(0xee),'model':_0x3a86ff,'labelView':new Os(this[_0x340c9e(0xcd)],_0x26495a)});}}}[_0x12f52a(0xd6)](_0x1f7388){const _0x5c4c29=_0x12f52a;this[_0x5c4c29(0xc3)](_0x5c4c29(0xf0),_0x1f7388);}[_0x12f52a(0xac)](_0x25210e){const _0x92b480=_0x12f52a;this[_0x92b480(0xc3)](_0x92b480(0xf5),_0x25210e);}[_0x12f52a(0xa7)](_0x3ce54e){const _0x51492d=_0x12f52a;if(!_0x3ce54e)return;this[_0x51492d(0xbc)]=_0x3ce54e['id'],this[_0x51492d(0xd3)]=_0x3ce54e[_0x51492d(0x100)]||_0x3ce54e['id'],this[_0x51492d(0xc5)][_0x51492d(0xfd)][_0x51492d(0xc3)](_0x51492d(0xa0),_0x3ce54e[_0x51492d(0x100)]),this[_0x51492d(0xc5)][_0x51492d(0xfd)][_0x51492d(0xc3)](_0x51492d(0xbb),_0x3ce54e[_0x51492d(0x100)]);const _0x5a27c8=_0x3ce54e[_0x51492d(0xc2)][_0x51492d(0xec)]?.[_0x51492d(0xbe)]??!0x1;this[_0x51492d(0xc3)](_0x51492d(0xf0),!0x1),this[_0x51492d(0xf3)][_0x51492d(0xc3)](_0x51492d(0xe4),!0x1),this[_0x51492d(0xf3)][_0x51492d(0xc3)](_0x51492d(0xbf),_0x5a27c8),this[_0x51492d(0xf3)][_0x51492d(0xc3)](_0x51492d(0xfb),_0x5a27c8);const _0x39b16d=_0x3ce54e[_0x51492d(0xc2)][_0x51492d(0xeb)]?.[_0x51492d(0xbe)]??!0x1;this[_0x51492d(0xc3)](_0x51492d(0xf5),!0x1),this[_0x51492d(0xca)][_0x51492d(0xc3)](_0x51492d(0xe4),!0x1),this[_0x51492d(0xca)][_0x51492d(0xc3)](_0x51492d(0xbf),_0x39b16d),this[_0x51492d(0xca)][_0x51492d(0xc3)](_0x51492d(0xfb),_0x39b16d);}[_0x12f52a(0xe3)](){const _0x24a721=_0x12f52a;this[_0x24a721(0xc3)](_0x24a721(0xb9),!0x0),this[_0x24a721(0xc3)](_0x24a721(0xf4),!0x0);}[_0x12f52a(0xa3)](_0x1160e5){const _0x3edc11=_0x12f52a;this[_0x3edc11(0xc3)](_0x3edc11(0xb9),!0x1),_0x1160e5&&this[_0x3edc11(0xc3)](_0x3edc11(0xf4),!0x1);}[_0x12f52a(0xd7)](){const _0x50fa5f=_0x12f52a,_0x2ac7ee=new _0x8c4118();return _0x2ac7ee[_0x50fa5f(0xc3)]({'label':_0x56fee7(this[_0x50fa5f(0xcd)],_0x50fa5f(0xd9)),'icon':_0x374ae5,'class':vo,'isToggleable':!0x0,'tooltipPosition':Wo}),_0x2ac7ee['on'](_0x50fa5f(0xea),()=>{const _0x210d72=_0x50fa5f;this[_0x210d72(0xb0)](_0x210d72(0xdd));}),_0x2ac7ee;}[_0x12f52a(0xab)](){const _0xa749f4=_0x12f52a,_0x49061a=new _0x8c4118();return _0x49061a[_0xa749f4(0xc3)]({'label':_0x56fee7(this[_0xa749f4(0xcd)],_0xa749f4(0xad)),'icon':_0x9e4b49,'class':vo,'isToggleable':!0x0,'tooltipPosition':Wo}),_0x49061a['on'](_0xa749f4(0xea),()=>{const _0x201911=_0xa749f4;this[_0x201911(0xb0)](_0x201911(0xe9));}),_0x49061a;}[_0x12f52a(0xfc)](){const _0x15d421=_0x12f52a,_0x50419e=new _0x8c4118();return _0x50419e[_0x15d421(0xc3)]({'label':_0x56fee7(this[_0x15d421(0xcd)],_0x15d421(0xbd)),'icon':_0x1a6c3f,'withText':!0x0,'class':vo,'isToggleable':!0x0,'tooltip':_0x56fee7(this[_0x15d421(0xcd)],_0x15d421(0xbd)),'tooltipPosition':Wo}),_0x50419e[_0x15d421(0xaa)]({'attributes':{'class':[Ho]}}),_0x50419e['on'](_0x15d421(0xea),()=>{const _0x50753b=_0x15d421;console[_0x50753b(0xba)](_0x50753b(0xce)),alert(_0x50753b(0xce));}),_0x50419e;}[_0x12f52a(0xf7)](){const _0x41d4e6=_0x12f52a,_0x4c3015=_0xe52daf(this[_0x41d4e6(0xcd)]);return _0x4c3015[_0x41d4e6(0xc3)]({'panelPosition':'ne','class':[Mo]}),_0x4c3015[_0x41d4e6(0xfd)][_0x41d4e6(0xc3)]({'label':_0x56fee7(this[_0x41d4e6(0xcd)],_0x41d4e6(0xd8)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Wo}),this[_0x41d4e6(0xa2)](_0x4c3015,_0x41d4e6(0xea),_0x58498f=>{const _0xc75b9c=_0x41d4e6;this[_0xc75b9c(0xb0)](_0xc75b9c(0xdc),_0x58498f[_0xc75b9c(0xf6)][_0xc75b9c(0xb4)]);}),_0x4c3015;}[_0x12f52a(0xf8)](){const _0x1355ed=_0x12f52a,_0x24c3f0=new yo(this[_0x1355ed(0xcd)]);return _0x24c3f0[_0x1355ed(0xd2)](_0x1355ed(0xae))['to'](this,_0x1355ed(0xd3),_0x96593=>_0x96593??''),_0x24c3f0[_0x1355ed(0xd2)](_0x1355ed(0xfb))['to'](this,_0x1355ed(0xf4),this,_0x1355ed(0xd3),(_0x281509,_0x1cf4d6)=>!_0x281509&&!_0x1cf4d6?.[_0x1355ed(0xcf)]()[_0x1355ed(0x9d)](_0x1355ed(0xb3))),_0x24c3f0;}}class Os extends _0x1d3e99{constructor(_0x44ac71,_0x1af3c0){const _0x2dc6eb=_0x12f52a;super();const _0xb61034=this[_0x2dc6eb(0xff)],_0x5d5ca4=this[_0x2dc6eb(0xc9)]();this[_0x2dc6eb(0x9e)]({'tag':_0x2dc6eb(0xc1),'attributes':{'class':['ck',_0x2dc6eb(0xa6)],'style':_0xb61034['to'](_0x2dc6eb(0xc7)),'id':_0xb61034['to']('id')},'children':[{'tag':_0x2dc6eb(0xc1),'attributes':{'class':[Lo]},'children':[{'text':_0xb61034['to'](_0x2dc6eb(0xae))}]},{'tag':_0x2dc6eb(0xc1),'attributes':{'class':[Ro]},'children':[{'tag':_0x2dc6eb(0xde),'children':[{'text':_0x1af3c0[_0x2dc6eb(0xe6)]}]}]},{'tag':_0x2dc6eb(0xc1),'attributes':{'class':[Do]},'children':_0x5d5ca4}]}),_0x5d5ca4[_0x2dc6eb(0xdb)](this[_0x2dc6eb(0xa9)](_0x44ac71,_0x374ae5,_0x2dc6eb(0xd9),_0x1af3c0[_0x2dc6eb(0xc2)][_0x2dc6eb(0xec)]?.[_0x2dc6eb(0xbe)]??!0x1)),_0x5d5ca4[_0x2dc6eb(0xdb)](this[_0x2dc6eb(0xa9)](_0x44ac71,_0x9e4b49,_0x2dc6eb(0xad),_0x1af3c0[_0x2dc6eb(0xc2)][_0x2dc6eb(0xeb)]?.[_0x2dc6eb(0xbe)]??!0x1));}[_0x12f52a(0xa9)](_0x38e655,_0x186d77,_0x1e2ed5,_0x3e71a8){const _0x177951=_0x12f52a,_0x435252=new _0x5e7b2b();_0x435252[_0x177951(0xa1)]=_0x186d77;const _0xd4f885=new _0x53921f(_0x38e655);_0xd4f885[_0x177951(0x9e)]({'tag':_0x177951(0xde),'children':[{'text':_0x56fee7(_0x38e655,_0x1e2ed5)+':\x20'}]});const _0x52853c=new _0x53921f(_0x38e655);return _0x52853c[_0x177951(0x9e)]({'tag':_0x177951(0xde),'children':[{'text':_0x56fee7(_0x38e655,_0x3e71a8?_0x177951(0xe1):_0x177951(0xe2))}]}),[_0x435252,_0xd4f885,_0x52853c];}}class yo extends _0x53921f{constructor(_0x426bed){const _0xf7828c=_0x12f52a;super(_0x426bed),this[_0xf7828c(0xc3)](_0xf7828c(0xae),void 0x0),this[_0xf7828c(0xc3)](_0xf7828c(0xfb),!0x0);const _0xca5664=this[_0xf7828c(0xff)];this[_0xf7828c(0x9e)]({'tag':_0xf7828c(0xde),'attributes':{'class':['ck',_0xf7828c(0xc4),_0xca5664['if'](_0xf7828c(0xfb),_0xf7828c(0xe5),_0x3e6006=>!_0x3e6006)]},'children':[{'text':_0xca5664['to'](_0xf7828c(0xae))}]});}}
|
|
23
|
+
const _0x47b312=_0x1604;(function(_0x56b79e,_0x207e37){const _0x149e07=_0x1604,_0x557cc3=_0x56b79e();while(!![]){try{const _0x4909cd=parseInt(_0x149e07(0x182))/0x1*(parseInt(_0x149e07(0x189))/0x2)+parseInt(_0x149e07(0x1b6))/0x3+-parseInt(_0x149e07(0x1be))/0x4*(-parseInt(_0x149e07(0x18e))/0x5)+parseInt(_0x149e07(0x1c3))/0x6+-parseInt(_0x149e07(0x17b))/0x7+-parseInt(_0x149e07(0x197))/0x8+-parseInt(_0x149e07(0x188))/0x9;if(_0x4909cd===_0x207e37)break;else _0x557cc3['push'](_0x557cc3['shift']());}catch(_0x11e508){_0x557cc3['push'](_0x557cc3['shift']());}}}(_0x1c53,0x7cb96));import{Collection as _0x53453e}from'ckeditor5/src/utils.js';import{IconAI as _0x59ae6b,IconBulb as _0x5bfdcf,IconWeb as _0x52e2fb}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x2f020e,ButtonLabelView as _0x5ba16d,ButtonView as _0x560491,createDropdown as _0x2fe4bf,IconView as _0x19560b,UIModel as _0x4c0c17,View as _0x2b0a5e}from'ckeditor5/src/ui.js';import{getTranslation as _0x43a88a}from'../../../aicore/utils/common-translations.js';import{AIModels as _0x44fbb1}from'../../../aicore/model/aimodels.js';const yo=_0x47b312(0x191),Lo=_0x47b312(0x176),Go=_0x47b312(0x1a6),Yo=_0x47b312(0x18f),qo=_0x47b312(0x1a3),zo=_0x47b312(0x1b3),Fo=_0x47b312(0x19d),Jo='n';function _0x1c53(){const _0x46defa=['_modelSelectionDropdown','bind','addMany','clear','createCollection','getLocalized','setModelList','Commands\x20are\x20not\x20implemented\x20yet.','model','_modelNameView','AI_CHAT_ENABLE_WEB_SEARCH','enabled','AI_CHAT_CAPABILITIES_YES','AI_CHAT_CAPABILITIES_NO','ck-ai-chat-controls-button','setModel','AI_CHAT_REASONING','button','startsWith','1158549mRNaPO','activeModelName','extendTemplate','content','name','bindTemplate','reasoningActive','7201SQXiQb','_createModelSelectionDropdown','_getCapabilityParts','capabilities','menuitemradio','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','11883789TjxPoF','138znBvXy','selectModel','reasoning','webSearch','setReasoning','5crRrpc','ck-ai-chat-controls__model-selection','toggleReasoning','ck-ai-chat__prompt-capabilities','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','buttonView','length','_webSearchButton','style','7516792nmlgPq','listenTo','AI_CHAT_ENABLE_REASONING','toLowerCase','AI_CHAT_COMMANDS','add','ck-ai-chat-controls__model-selection__item-capabilities','ck-hidden','_createWebSearchButton','span','tooltip','locale','ck-ai-chat-controls__model-selection__item-name','_modelSelectionDropdownItems','modelSelectorEnabled','ck-ai-chat-controls-button--commands','webSearchActive','_createReasoningButton','activeModelId','AI_CHAT_DISABLE_WEB_SEARCH','description','isOn','modelSelectorVisible','text','set','_commandsButton','agent','execute','ck-ai-chat-controls__model-selection__item-description','ck-button__label','setWebSearch','3058272diHdOg','ck-ai-chat-controls__model-name','_createModelNameView','source','withText','disableModelSelector','toggleWebSearch','div','1952012LGbXLk','enableModelSelector','isVisible','fire','AI_CHAT_DISABLE_REASONING','5592606GwWoUg','isEnabled','AI_CHAT_SEARCH_WEB','_reasoningButton','setTemplate','log','_createCommandsButton','label'];_0x1c53=function(){return _0x46defa;};return _0x1c53();}export class AIChatPromptCapabilitiesView extends _0x2b0a5e{[_0x47b312(0x195)];[_0x47b312(0x1c6)];[_0x47b312(0x1b0)];[_0x47b312(0x1cb)];[_0x47b312(0x1a4)];[_0x47b312(0x1d4)];constructor(_0x1e9899){const _0x4f8c21=_0x47b312;super(_0x1e9899),this[_0x4f8c21(0x1af)](_0x4f8c21(0x1a7),!0x1),this[_0x4f8c21(0x1af)](_0x4f8c21(0x181),!0x1),this[_0x4f8c21(0x1af)](_0x4f8c21(0x1ad),!0x0),this[_0x4f8c21(0x1af)](_0x4f8c21(0x1a5),!0x0),this[_0x4f8c21(0x1af)](_0x4f8c21(0x1a9),null),this[_0x4f8c21(0x1af)](_0x4f8c21(0x17c),null),this[_0x4f8c21(0x1cb)]=this[_0x4f8c21(0x183)](),this[_0x4f8c21(0x1d4)]=this[_0x4f8c21(0x1b8)](),this[_0x4f8c21(0x195)]=this[_0x4f8c21(0x19f)](),this[_0x4f8c21(0x1c6)]=this[_0x4f8c21(0x1a8)](),this[_0x4f8c21(0x1b0)]=this[_0x4f8c21(0x1c9)](),this[_0x4f8c21(0x1cb)][_0x4f8c21(0x193)][_0x4f8c21(0x1cc)](_0x4f8c21(0x1c0))['to'](this,_0x4f8c21(0x1ad),_0x1113bd=>_0x1113bd),this[_0x4f8c21(0x1cb)][_0x4f8c21(0x193)][_0x4f8c21(0x1cc)](_0x4f8c21(0x1a1))['to'](this,_0x4f8c21(0x1a5),_0x27ffe2=>_0x27ffe2?this[_0x4f8c21(0x1cb)][_0x4f8c21(0x193)][_0x4f8c21(0x1ca)]:_0x43a88a(this[_0x4f8c21(0x1a2)],_0x4f8c21(0x187))),this[_0x4f8c21(0x1cb)][_0x4f8c21(0x1cc)](_0x4f8c21(0x1c4))['to'](this,_0x4f8c21(0x1a5),_0x7ee249=>_0x7ee249),this[_0x4f8c21(0x195)][_0x4f8c21(0x1cc)](_0x4f8c21(0x1ac))['to'](this,_0x4f8c21(0x1a7),_0x2d22aa=>_0x2d22aa),this[_0x4f8c21(0x195)][_0x4f8c21(0x1cc)](_0x4f8c21(0x1ba))['to'](this,_0x4f8c21(0x1ad),_0x2bdd02=>!_0x2bdd02),this[_0x4f8c21(0x195)][_0x4f8c21(0x1cc)](_0x4f8c21(0x1a1))['to'](this,_0x4f8c21(0x1a7),_0x4a8f3f=>_0x43a88a(this[_0x4f8c21(0x1a2)],_0x4a8f3f?_0x4f8c21(0x1aa):_0x4f8c21(0x1d5))),this[_0x4f8c21(0x1c6)][_0x4f8c21(0x1cc)](_0x4f8c21(0x1ac))['to'](this,_0x4f8c21(0x181),_0x5cce20=>_0x5cce20),this[_0x4f8c21(0x1c6)][_0x4f8c21(0x1cc)](_0x4f8c21(0x1ba))['to'](this,_0x4f8c21(0x1ad),_0x4e0d45=>!_0x4e0d45),this[_0x4f8c21(0x1c6)][_0x4f8c21(0x1cc)](_0x4f8c21(0x1a1))['to'](this,_0x4f8c21(0x181),_0x1e41f=>_0x43a88a(this[_0x4f8c21(0x1a2)],_0x1e41f?_0x4f8c21(0x1c2):_0x4f8c21(0x199))),this[_0x4f8c21(0x1c7)]({'tag':_0x4f8c21(0x1bd),'attributes':{'class':[yo]},'children':[this[_0x4f8c21(0x1cb)],this[_0x4f8c21(0x1d4)],this[_0x4f8c21(0x195)],this[_0x4f8c21(0x1c6)],this[_0x4f8c21(0x1b0)]]}),this[_0x4f8c21(0x1a4)]=new _0x53453e(),_0x2f020e(this[_0x4f8c21(0x1cb)],this[_0x4f8c21(0x1a4)]);}[_0x47b312(0x1d1)](_0xdb6078,_0x36ca0e){const _0x516e7a=_0x47b312;if(this[_0x516e7a(0x1af)](_0x516e7a(0x1ad),!(_0x36ca0e&&_0xdb6078[_0x516e7a(0x194)]<=0x1)),this[_0x516e7a(0x1a4)][_0x516e7a(0x1ce)](),_0xdb6078?.[_0x516e7a(0x194)]){const _0x5d8dc=_0x44fbb1[_0x516e7a(0x1d0)](this[_0x516e7a(0x1a2)],_0xdb6078);for(const _0x3e74d7 of _0x5d8dc){const _0x4d4829=new _0x4c0c17({'label':_0x3e74d7[_0x516e7a(0x17f)],'withText':!0x0,'role':_0x516e7a(0x186),'id':_0x3e74d7['id'],'model':_0x3e74d7});_0x4d4829[_0x516e7a(0x1cc)](_0x516e7a(0x1ac))['to'](this,_0x516e7a(0x1a9),_0x38cc36=>_0x38cc36===_0x3e74d7['id']),this[_0x516e7a(0x1a4)][_0x516e7a(0x19c)]({'type':_0x516e7a(0x179),'model':_0x4d4829,'labelView':new Ws(this[_0x516e7a(0x1a2)],_0x3e74d7)});}}}[_0x47b312(0x1b5)](_0x49f85a){const _0x299022=_0x47b312;this[_0x299022(0x1af)](_0x299022(0x1a7),_0x49f85a);}[_0x47b312(0x18d)](_0x191405){const _0x16d76c=_0x47b312;this[_0x16d76c(0x1af)](_0x16d76c(0x181),_0x191405);}[_0x47b312(0x177)](_0x2d713d){const _0x595598=_0x47b312;if(!_0x2d713d)return;this[_0x595598(0x1a9)]=_0x2d713d['id'],this[_0x595598(0x17c)]=_0x2d713d[_0x595598(0x17f)]||_0x2d713d['id'],this[_0x595598(0x1cb)][_0x595598(0x193)][_0x595598(0x1af)](_0x595598(0x1ca),_0x2d713d[_0x595598(0x17f)]),this[_0x595598(0x1cb)][_0x595598(0x193)][_0x595598(0x1af)](_0x595598(0x1a1),_0x2d713d[_0x595598(0x17f)]);const _0x49dd1c=_0x2d713d[_0x595598(0x185)][_0x595598(0x18c)]?.[_0x595598(0x173)]??!0x1;this[_0x595598(0x1af)](_0x595598(0x1a7),!0x1),this[_0x595598(0x195)][_0x595598(0x1af)](_0x595598(0x1ac),!0x1),this[_0x595598(0x195)][_0x595598(0x1af)](_0x595598(0x1c4),_0x49dd1c),this[_0x595598(0x195)][_0x595598(0x1af)](_0x595598(0x1c0),_0x49dd1c);const _0x2b0623=_0x2d713d[_0x595598(0x185)][_0x595598(0x18b)]?.[_0x595598(0x173)]??!0x1;this[_0x595598(0x1af)](_0x595598(0x181),!0x1),this[_0x595598(0x1c6)][_0x595598(0x1af)](_0x595598(0x1ac),!0x1),this[_0x595598(0x1c6)][_0x595598(0x1af)](_0x595598(0x1c4),_0x2b0623),this[_0x595598(0x1c6)][_0x595598(0x1af)](_0x595598(0x1c0),_0x2b0623);}[_0x47b312(0x1bf)](){const _0x5b5499=_0x47b312;this[_0x5b5499(0x1af)](_0x5b5499(0x1a5),!0x0),this[_0x5b5499(0x1af)](_0x5b5499(0x1ad),!0x0);}[_0x47b312(0x1bb)](_0x568d82){const _0x4359b4=_0x47b312;this[_0x4359b4(0x1af)](_0x4359b4(0x1a5),!0x1),_0x568d82&&this[_0x4359b4(0x1af)](_0x4359b4(0x1ad),!0x1);}[_0x47b312(0x19f)](){const _0x2c3d0a=_0x47b312,_0x4f6f80=new _0x560491();return _0x4f6f80[_0x2c3d0a(0x1af)]({'label':_0x43a88a(this[_0x2c3d0a(0x1a2)],_0x2c3d0a(0x1c5)),'icon':_0x52e2fb,'class':Lo,'isToggleable':!0x0,'tooltipPosition':Jo}),_0x4f6f80['on'](_0x2c3d0a(0x1b2),()=>{const _0x44ed78=_0x2c3d0a;this[_0x44ed78(0x1c1)](_0x44ed78(0x1bc));}),_0x4f6f80;}[_0x47b312(0x1a8)](){const _0x1dcbb4=_0x47b312,_0x5b287b=new _0x560491();return _0x5b287b[_0x1dcbb4(0x1af)]({'label':_0x43a88a(this[_0x1dcbb4(0x1a2)],_0x1dcbb4(0x178)),'icon':_0x5bfdcf,'class':Lo,'isToggleable':!0x0,'tooltipPosition':Jo}),_0x5b287b['on'](_0x1dcbb4(0x1b2),()=>{const _0x1cdef6=_0x1dcbb4;this[_0x1cdef6(0x1c1)](_0x1cdef6(0x190));}),_0x5b287b;}[_0x47b312(0x1c9)](){const _0x132ba4=_0x47b312,_0x241665=new _0x560491();return _0x241665[_0x132ba4(0x1af)]({'label':_0x43a88a(this[_0x132ba4(0x1a2)],_0x132ba4(0x19b)),'icon':_0x59ae6b,'withText':!0x0,'class':Lo,'isToggleable':!0x0,'tooltip':_0x43a88a(this[_0x132ba4(0x1a2)],_0x132ba4(0x19b)),'tooltipPosition':Jo}),_0x241665[_0x132ba4(0x17d)]({'attributes':{'class':[Go]}}),_0x241665['on'](_0x132ba4(0x1b2),()=>{const _0x8d0c36=_0x132ba4;console[_0x8d0c36(0x1c8)](_0x8d0c36(0x1d2)),alert(_0x8d0c36(0x1d2));}),_0x241665;}[_0x47b312(0x183)](){const _0x1b2f91=_0x47b312,_0x12b296=_0x2fe4bf(this[_0x1b2f91(0x1a2)]);return _0x12b296[_0x1b2f91(0x1af)]({'panelPosition':'ne','class':[Yo]}),_0x12b296[_0x1b2f91(0x193)][_0x1b2f91(0x1af)]({'label':_0x43a88a(this[_0x1b2f91(0x1a2)],_0x1b2f91(0x192)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Jo}),this[_0x1b2f91(0x198)](_0x12b296,_0x1b2f91(0x1b2),_0x32d82b=>{const _0x19610a=_0x1b2f91;this[_0x19610a(0x1c1)](_0x19610a(0x18a),_0x32d82b[_0x19610a(0x1b9)][_0x19610a(0x1d3)]);}),_0x12b296;}[_0x47b312(0x1b8)](){const _0x2593a9=_0x47b312,_0x187fa7=new Ko(this[_0x2593a9(0x1a2)]);return _0x187fa7[_0x2593a9(0x1cc)](_0x2593a9(0x1ae))['to'](this,_0x2593a9(0x17c),_0x425792=>_0x425792??''),_0x187fa7[_0x2593a9(0x1cc)](_0x2593a9(0x1c0))['to'](this,_0x2593a9(0x1ad),this,_0x2593a9(0x17c),(_0x212f7b,_0x4f97d4)=>!_0x212f7b&&!_0x4f97d4?.[_0x2593a9(0x19a)]()[_0x2593a9(0x17a)](_0x2593a9(0x1b1))),_0x187fa7;}}function _0x1604(_0x476334,_0x3aed38){const _0x1c53ee=_0x1c53();return _0x1604=function(_0x1604b4,_0x14c33b){_0x1604b4=_0x1604b4-0x173;let _0x8e464d=_0x1c53ee[_0x1604b4];return _0x8e464d;},_0x1604(_0x476334,_0x3aed38);}class Ws extends _0x5ba16d{constructor(_0x4dea9a,_0x38b66e){const _0x25de7a=_0x47b312;super();const _0x20d7ce=this[_0x25de7a(0x180)],_0x3190e0=this[_0x25de7a(0x1cf)]();this[_0x25de7a(0x1c7)]({'tag':_0x25de7a(0x1bd),'attributes':{'class':['ck',_0x25de7a(0x1b4)],'style':_0x20d7ce['to'](_0x25de7a(0x196)),'id':_0x20d7ce['to']('id')},'children':[{'tag':_0x25de7a(0x1bd),'attributes':{'class':[qo]},'children':[{'text':_0x20d7ce['to'](_0x25de7a(0x1ae))}]},{'tag':_0x25de7a(0x1bd),'attributes':{'class':[zo]},'children':[{'tag':_0x25de7a(0x1a0),'children':[{'text':_0x38b66e[_0x25de7a(0x1ab)]}]}]},{'tag':_0x25de7a(0x1bd),'attributes':{'class':[Fo]},'children':_0x3190e0}]}),_0x3190e0[_0x25de7a(0x1cd)](this[_0x25de7a(0x184)](_0x4dea9a,_0x52e2fb,_0x25de7a(0x1c5),_0x38b66e[_0x25de7a(0x185)][_0x25de7a(0x18c)]?.[_0x25de7a(0x173)]??!0x1)),_0x3190e0[_0x25de7a(0x1cd)](this[_0x25de7a(0x184)](_0x4dea9a,_0x5bfdcf,_0x25de7a(0x178),_0x38b66e[_0x25de7a(0x185)][_0x25de7a(0x18b)]?.[_0x25de7a(0x173)]??!0x1));}[_0x47b312(0x184)](_0x3fe17f,_0x3598fe,_0x25f3d5,_0x28263f){const _0x12ffd7=_0x47b312,_0x3450dd=new _0x19560b();_0x3450dd[_0x12ffd7(0x17e)]=_0x3598fe;const _0x1d656a=new _0x2b0a5e(_0x3fe17f);_0x1d656a[_0x12ffd7(0x1c7)]({'tag':_0x12ffd7(0x1a0),'children':[{'text':_0x43a88a(_0x3fe17f,_0x25f3d5)+':\x20'}]});const _0x481ae1=new _0x2b0a5e(_0x3fe17f);return _0x481ae1[_0x12ffd7(0x1c7)]({'tag':_0x12ffd7(0x1a0),'children':[{'text':_0x43a88a(_0x3fe17f,_0x28263f?_0x12ffd7(0x174):_0x12ffd7(0x175))}]}),[_0x3450dd,_0x1d656a,_0x481ae1];}}class Ko extends _0x2b0a5e{constructor(_0x9ed18c){const _0x24faf1=_0x47b312;super(_0x9ed18c),this[_0x24faf1(0x1af)](_0x24faf1(0x1ae),void 0x0),this[_0x24faf1(0x1af)](_0x24faf1(0x1c0),!0x0);const _0x152593=this[_0x24faf1(0x180)];this[_0x24faf1(0x1c7)]({'tag':_0x24faf1(0x1a0),'attributes':{'class':['ck',_0x24faf1(0x1b7),_0x152593['if'](_0x24faf1(0x1c0),_0x24faf1(0x19e),_0x189b90=>!_0x189b90)]},'children':[{'text':_0x152593['to'](_0x24faf1(0x1ae))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x3dc4f0=_0xd489;(function(_0x154675,_0x250d87){const _0x34e9ce=_0xd489,_0x91ee5d=_0x154675();while(!![]){try{const _0xe0518d=parseInt(_0x34e9ce(0xcf))/0x1*(parseInt(_0x34e9ce(0xf3))/0x2)+-parseInt(_0x34e9ce(0xe2))/0x3*(parseInt(_0x34e9ce(0xd8))/0x4)+-parseInt(_0x34e9ce(0xd3))/0x5*(parseInt(_0x34e9ce(0xd1))/0x6)+parseInt(_0x34e9ce(0xd6))/0x7+parseInt(_0x34e9ce(0xe5))/0x8+-parseInt(_0x34e9ce(0xf5))/0x9*(parseInt(_0x34e9ce(0xe1))/0xa)+parseInt(_0x34e9ce(0xf7))/0xb;if(_0xe0518d===_0x250d87)break;else _0x91ee5d['push'](_0x91ee5d['shift']());}catch(_0x5a2160){_0x91ee5d['push'](_0x91ee5d['shift']());}}}(_0x2b67,0xd9fcf));import{IconSubmit as _0x311047}from'ckeditor5/src/icons.js';import{ButtonView as _0x5369b5,AutocompleteView as _0x2080bb,createLabeledTextarea as _0x21e951}from'ckeditor5/src/ui.js';function _0x2b67(){const _0x154a61=['_queryViewResizeObserver','654umAtoN','requestAnimationFrame','22985SSSAfq','execute','calc(','2442384uoAZHI','element','20XyVrHX','set','MAX_ROWS','_setUpAddContextButtonPositioning','fieldWrapperChildren','isEmpty','bind','trim','placeholder','80700KTcyCS','419964RFTmJO','submitButtonView','fire','6350872HfCCyB','rtl','extendTemplate','sendUserMessage','setIsUploadInProgress','MIN_ROWS','width','window','reset','right','update','fieldView','add','target','9754HtrYrd','focusableChildren','1980zIsump','errorText','28596909cnXDSZ','minRows','value','AI_CHAT_PROMPT_EMPTY_ERROR','left','ck-ai-chat__prompt-input','setPlaceholderText','isEnabled','excludeScrollbarsAndBorders','ck-ai-chat__prompt-submit-button','hasError','maxRows','_createSubmitButton','AI_CHAT_LABEL_SUBMIT','uiLanguageDirection','isUploadInProgress','locale','queryView','render','destroy','_addContextButtonView','style','enter','keystrokes','submit','px\x20-\x20var(--ck-spacing-tiny))','26egmoan'];_0x2b67=function(){return _0x154a61;};return _0x2b67();}import{global as _0x24ab51,isVisible as _0x3eff38,Rect as _0xa05983,ResizeObserver as _0x17a162}from'ckeditor5/src/utils.js';import{getTranslation as _0x30fa40}from'../../../aicore/utils/common-translations.js';function _0xd489(_0x246ccd,_0x40ed4e){const _0x2b67ae=_0x2b67();return _0xd489=function(_0xd48927,_0x2f8753){_0xd48927=_0xd48927-0xc8;let _0x4d9356=_0x2b67ae[_0xd48927];return _0x4d9356;},_0xd489(_0x246ccd,_0x40ed4e);}import{AIChatPromptSuggestionsListView as _0x3c8481}from'./aichatpromptsuggestionslistview.js';import{escape as _0x36a551}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x2080bb{[_0x3dc4f0(0xe3)];static [_0x3dc4f0(0xea)]=0x1;static [_0x3dc4f0(0xda)]=0xc;[_0x3dc4f0(0xc9)];[_0x3dc4f0(0xd0)];constructor(_0xf85804,_0x3de36c){const _0x4737e4=_0x3dc4f0;super(_0xf85804,{'queryView':{'label':'','creator':_0x21e951,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x3c8481(_0xf85804),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x4737e4(0xd9)](_0x4737e4(0xdd),!0x0),this[_0x4737e4(0xd9)](_0x4737e4(0x106),!0x1),this[_0x4737e4(0xc9)]=_0x3de36c,this[_0x4737e4(0xd0)]=null,this[_0x4737e4(0x108)][_0x4737e4(0xf0)][_0x4737e4(0xf8)]=AIChatPromptInputView[_0x4737e4(0xea)],this[_0x4737e4(0x108)][_0x4737e4(0xf0)][_0x4737e4(0x102)]=AIChatPromptInputView[_0x4737e4(0xda)],this[_0x4737e4(0x108)][_0x4737e4(0xdc)][_0x4737e4(0xf1)](this[_0x4737e4(0xc9)]),this[_0x4737e4(0xdb)](),this[_0x4737e4(0xe7)]({'attributes':{'class':['ck',_0x4737e4(0xfc)]}}),this[_0x4737e4(0xe3)]=this[_0x4737e4(0x103)](),this[_0x4737e4(0xe3)][_0x4737e4(0xde)](_0x4737e4(0xfe))['to'](this,_0x4737e4(0xdd),this,_0x4737e4(0x106),(_0xcca2de,_0x46f2fb)=>!_0xcca2de&&!_0x46f2fb),this[_0x4737e4(0xf4)][_0x4737e4(0xf1)](this[_0x4737e4(0xe3)]);}[_0x3dc4f0(0x109)](){const _0x2882aa=_0x3dc4f0;super[_0x2882aa(0x109)](),this[_0x2882aa(0x108)][_0x2882aa(0xdc)][_0x2882aa(0xf1)](this[_0x2882aa(0xe3)]),this[_0x2882aa(0xcc)][_0x2882aa(0xd9)](_0x2882aa(0xcb),(_0x33e9de,_0x13c5d0)=>{const _0x1322be=_0x2882aa;this[_0x1322be(0x106)]||this[_0x1322be(0xdd)]||_0x33e9de[_0x1322be(0xf2)]==this[_0x1322be(0x108)][_0x1322be(0xf0)][_0x1322be(0xd7)]&&(this[_0x1322be(0xcd)](),_0x13c5d0());}),this[_0x2882aa(0x108)][_0x2882aa(0xf0)]['on'](_0x2882aa(0xef),()=>{const _0xa66ae1=_0x2882aa;this[_0xa66ae1(0xdd)]=''===this[_0xa66ae1(0x108)][_0xa66ae1(0xf0)][_0xa66ae1(0xd7)][_0xa66ae1(0xf9)]?.[_0xa66ae1(0xdf)]();});}[_0x3dc4f0(0xc8)](){const _0x68640a=_0x3dc4f0;super[_0x68640a(0xc8)](),this[_0x68640a(0xd0)]&&this[_0x68640a(0xd0)][_0x68640a(0xc8)]();}[_0x3dc4f0(0xcd)](){const _0x45f8a1=_0x3dc4f0,_0x4e05c9=this[_0x45f8a1(0x108)][_0x45f8a1(0xf0)][_0x45f8a1(0xd7)][_0x45f8a1(0xf9)]?.[_0x45f8a1(0xdf)]();if(!_0x4e05c9)return this[_0x45f8a1(0x108)][_0x45f8a1(0xf6)]=_0x30fa40(this[_0x45f8a1(0x107)],_0x45f8a1(0xfa)),void(this[_0x45f8a1(0x108)][_0x45f8a1(0xf0)][_0x45f8a1(0x101)]=!0x0);this[_0x45f8a1(0x108)][_0x45f8a1(0xf0)][_0x45f8a1(0x101)]=!0x1;const _0x5df91c=_0x36a551(_0x4e05c9);this[_0x45f8a1(0xe4)](_0x45f8a1(0xe8),_0x5df91c),this[_0x45f8a1(0x108)][_0x45f8a1(0xf0)][_0x45f8a1(0xed)]();}[_0x3dc4f0(0xfd)](_0x11a32a){const _0x715671=_0x3dc4f0;this[_0x715671(0x108)][_0x715671(0xf0)][_0x715671(0xd9)](_0x715671(0xe0),_0x11a32a);}[_0x3dc4f0(0x103)](){const _0x5b03ff=_0x3dc4f0,_0xcd3786=new _0x5369b5(this[_0x5b03ff(0x107)]);return _0xcd3786[_0x5b03ff(0xd9)]({'icon':_0x311047,'label':_0x30fa40(this[_0x5b03ff(0x107)],_0x5b03ff(0x104)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x5b03ff(0x100),'isEnabled':!0x1}),_0xcd3786['on'](_0x5b03ff(0xd4),()=>{const _0x3cf56e=_0x5b03ff;this[_0x3cf56e(0xcd)]();}),_0xcd3786;}[_0x3dc4f0(0xe9)](_0x3bf4b6){const _0x9ae5e2=_0x3dc4f0;this[_0x9ae5e2(0x106)]=_0x3bf4b6;}[_0x3dc4f0(0xdb)](){const _0x56e3c9=_0x3dc4f0,_0x3caaa2=this[_0x56e3c9(0x107)],_0x20a09c=()=>{const _0x2d0fcc=_0x56e3c9;_0x24ab51[_0x2d0fcc(0xec)][_0x2d0fcc(0xd2)](()=>{const _0x2c03bf=_0x2d0fcc;if(_0x3eff38(this[_0x2c03bf(0xd7)])){const _0x13a000=new _0xa05983(this[_0x2c03bf(0x108)][_0x2c03bf(0xf0)][_0x2c03bf(0xd7)]),_0x5b8135=new _0xa05983(this[_0x2c03bf(0xc9)][_0x2c03bf(0xd7)]),_0x30d4b5=_0x13a000[_0x2c03bf(0xeb)],_0x2313e6=_0x2c03bf(0xe6)===_0x3caaa2[_0x2c03bf(0x105)]?_0x2c03bf(0xee):_0x2c03bf(0xfb);_0x13a000[_0x2c03bf(0xff)]();const _0x4e8dc7=_0x30d4b5-_0x13a000[_0x2c03bf(0xeb)]+0x1;this[_0x2c03bf(0xc9)][_0x2c03bf(0xd7)][_0x2c03bf(0xca)][_0x2313e6]=_0x2c03bf(0xd5)+(_0x30d4b5-_0x5b8135[_0x2c03bf(0xeb)]-_0x4e8dc7)+_0x2c03bf(0xce);}});};this[_0x56e3c9(0x108)][_0x56e3c9(0xf0)]['on'](_0x56e3c9(0xef),_0x20a09c),this['on'](_0x56e3c9(0x109),()=>{const _0x2114d5=_0x56e3c9;_0x20a09c(),this[_0x2114d5(0xd0)]=new _0x17a162(this[_0x2114d5(0x108)][_0x2114d5(0xf0)][_0x2114d5(0xd7)],()=>{_0x20a09c();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0xdbee(_0x57fe91,_0x1c3ee7){const _0x45e0ce=_0x45e0();return _0xdbee=function(_0xdbeea3,_0x82f546){_0xdbeea3=_0xdbeea3-0x1b2;let _0x3af83d=_0x45e0ce[_0xdbeea3];return _0x3af83d;},_0xdbee(_0x57fe91,_0x1c3ee7);}const _0x2f14fd=_0xdbee;(function(_0x540779,_0x4392a1){const _0x14df4b=_0xdbee,_0xda83e7=_0x540779();while(!![]){try{const _0x3c32c7=parseInt(_0x14df4b(0x1b2))/0x1*(parseInt(_0x14df4b(0x1b5))/0x2)+-parseInt(_0x14df4b(0x1b6))/0x3+parseInt(_0x14df4b(0x1b7))/0x4*(parseInt(_0x14df4b(0x1be))/0x5)+-parseInt(_0x14df4b(0x1b8))/0x6*(-parseInt(_0x14df4b(0x1bd))/0x7)+parseInt(_0x14df4b(0x1bb))/0x8+-parseInt(_0x14df4b(0x1b3))/0x9+parseInt(_0x14df4b(0x1bf))/0xa*(parseInt(_0x14df4b(0x1b4))/0xb);if(_0x3c32c7===_0x4392a1)break;else _0xda83e7['push'](_0xda83e7['shift']());}catch(_0x3a1396){_0xda83e7['push'](_0xda83e7['shift']());}}}(_0x45e0,0xb14d0));import{ListView as _0x37ccea}from'ckeditor5/src/ui.js';function _0x45e0(){const _0x37b3a1=['items','266hCflfj','568535ikAmug','8320VblTpP','4763DCZkRk','5382063LksRWp','14124udElks','26XYpjHl','4019040qUkhqr','8ApggKk','111138oQwdZy','filter','length','4819328MAGokj'];_0x45e0=function(){return _0x37b3a1;};return _0x45e0();}export class AIChatPromptSuggestionsListView extends _0x37ccea{[_0x2f14fd(0x1b9)](){const _0x15addf=_0x2f14fd;let _0x4dd2b0=0x0;for(const _0x5af43d of this[_0x15addf(0x1bc)])_0x4dd2b0+=_0x5af43d[_0x15addf(0x1bc)][_0x15addf(0x1ba)];return{'resultsCount':_0x4dd2b0,'totalItemsCount':_0x4dd2b0};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c3656=_0x11fc;(function(_0x498d68,_0x38d0df){const _0x3e6497=_0x11fc,_0x2e83aa=_0x498d68();while(!![]){try{const _0x308cd1=parseInt(_0x3e6497(0xcc))/0x1+parseInt(_0x3e6497(0xbc))/0x2*(-parseInt(_0x3e6497(0xc0))/0x3)+parseInt(_0x3e6497(0xc3))/0x4*(-parseInt(_0x3e6497(0xcb))/0x5)+parseInt(_0x3e6497(0xda))/0x6+parseInt(_0x3e6497(0xd4))/0x7*(-parseInt(_0x3e6497(0xce))/0x8)+parseInt(_0x3e6497(0xc2))/0x9+parseInt(_0x3e6497(0xc4))/0xa;if(_0x308cd1===_0x38d0df)break;else _0x2e83aa['push'](_0x2e83aa['shift']());}catch(_0x44afaa){_0x2e83aa['push'](_0x2e83aa['shift']());}}}(_0x44b6,0xa59c1));import{ListView as _0x12612c}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x51babf}from'./aichatresourcelistitemview.js';function _0x11fc(_0x1f12a0,_0x172302){const _0x44b648=_0x44b6();return _0x11fc=function(_0x11fc8a,_0x397363){_0x11fc8a=_0x11fc8a-0xbb;let _0x37514c=_0x44b648[_0x11fc8a];return _0x37514c;},_0x11fc(_0x1f12a0,_0x172302);}const sc=_0x2c3656(0xc5);function _0x44b6(){const _0x300d55=['\x5c$&','4564362tAbXfP','resource','extendTemplate','895514NYuUuS','forEach','highlightText','updateResourceState','6RwlqRG','replace','10024326KyVvvJ','941756YWZaWH','9442010DQyDKW','ck-ai-chat-resources__list','_handleResourceSelection','label','test','filter','_source','15XxkgXK','521354RVhHyt','add','4239712TquwHl','locale','clear','useDefaultFiltering','items','trim','14bvWrRO','fire','setResources','execute','addResourceToContext'];_0x44b6=function(){return _0x300d55;};return _0x44b6();}export class AIChatContextResourcesListView extends _0x12612c{[_0x2c3656(0xca)];constructor(_0x28efc2,_0x129100){const _0x518318=_0x2c3656;super(_0x28efc2),this[_0x518318(0xca)]=_0x129100,this[_0x518318(0xbb)]({'attributes':{'class':[sc]}});}[_0x2c3656(0xd6)](_0x2bfaaa,_0x25b8a2){const _0x585003=_0x2c3656;this[_0x585003(0xd2)][_0x585003(0xd0)]();let _0x3bdd52=_0x2bfaaa;if(this[_0x585003(0xca)][_0x585003(0xd1)]&&_0x25b8a2&&''!==_0x25b8a2[_0x585003(0xd3)]()){const _0x4039c7=new RegExp(_0x25b8a2[_0x585003(0xc1)](/[.*+?^${}()|[\]\\]/g,_0x585003(0xd9)),'gi');_0x3bdd52=_0x2bfaaa[_0x585003(0xc9)](_0x561f15=>_0x4039c7[_0x585003(0xc8)](_0x561f15[_0x585003(0xc7)]));}for(const _0x4e872b of _0x3bdd52){const _0x381b59=new _0x51babf(this[_0x585003(0xcf)],_0x4e872b);_0x381b59['on'](_0x585003(0xd7),()=>{const _0x4bff91=_0x585003;this[_0x4bff91(0xc6)](this[_0x4bff91(0xca)],_0x4e872b);}),this[_0x585003(0xd2)][_0x585003(0xcd)](_0x381b59);}this[_0x585003(0xca)][_0x585003(0xd1)]&&this[_0x585003(0xbe)](_0x25b8a2);}[_0x2c3656(0xbe)](_0x50001f){const _0x18493a=_0x2c3656;this[_0x18493a(0xca)][_0x18493a(0xd1)]&&this[_0x18493a(0xd2)][_0x18493a(0xbd)](_0x6ca733=>{const _0x2ee5b9=_0x18493a;_0x6ca733[_0x2ee5b9(0xbe)](_0x50001f);});}[_0x2c3656(0xbf)](_0x486838,_0x14ee55){const _0x3abf32=_0x2c3656;for(const _0x4b73ee of this[_0x3abf32(0xd2)]){const _0x5af85a=_0x4b73ee;_0x5af85a[_0x3abf32(0xdb)]['id']===_0x486838&&_0x5af85a[_0x3abf32(0xbf)](_0x14ee55);}}[_0x2c3656(0xc6)](_0x392207,_0x3f3fc3){const _0x1f9793=_0x2c3656;this[_0x1f9793(0xd5)](_0x1f9793(0xd8),{'source':_0x392207,'resource':_0x3f3fc3});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d46a2=_0xc248;function _0x2370(){const _0x51990a=['4233420VHYDAu','10CBZgmu','_createResourcesListView','loadResources','256640WcAFcp','fire','loadSourceResources','add','_resourcesListView','useDefaultFiltering','length','_createSearchSection','render','addResourceToContext','_latestLoadResourcesUid','set','source','updateResourceState','781770YjiuRP','_createSearchView','searchInputVisibleFrom','locale','696366ifVyxw','aiChatResources','_createSkeletonView','3056946dEigrt','highlightText','_searchView','ck-hidden','_skeletonLoader','_source','1559157JFJLgz','ck-ai-chat-resources','setResources','children','bindTemplate','_searchSection','search','has','div','isLoading','setTemplate','4hGXkIt','ck\x20ck-search','_searchInputVisibleFrom','448433qhfNVH','getQuery','49RwgFNI','extendTemplate','delegate'];_0x2370=function(){return _0x51990a;};return _0x2370();}function _0xc248(_0x25c650,_0x402e62){const _0x2370d4=_0x2370();return _0xc248=function(_0xc24845,_0x307215){_0xc24845=_0xc24845-0x86;let _0x2b64d8=_0x2370d4[_0xc24845];return _0x2b64d8;},_0xc248(_0x25c650,_0x402e62);}(function(_0x3a1458,_0x1b67a6){const _0x2f2d72=_0xc248,_0x3a0f8c=_0x3a1458();while(!![]){try{const _0x3e4dce=parseInt(_0x2f2d72(0xb5))/0x1+parseInt(_0x2f2d72(0x9e))/0x2+-parseInt(_0x2f2d72(0xa7))/0x3*(-parseInt(_0x2f2d72(0xb2))/0x4)+parseInt(_0x2f2d72(0x9a))/0x5+-parseInt(_0x2f2d72(0xa1))/0x6+parseInt(_0x2f2d72(0xb7))/0x7*(-parseInt(_0x2f2d72(0x8c))/0x8)+-parseInt(_0x2f2d72(0x88))/0x9*(parseInt(_0x2f2d72(0x89))/0xa);if(_0x3e4dce===_0x1b67a6)break;else _0x3a0f8c['push'](_0x3a0f8c['shift']());}catch(_0x2d7a88){_0x3a0f8c['push'](_0x3a0f8c['shift']());}}}(_0x2370,0x417e2));import{View as _0x2b4f62,ViewCollection as _0x36df45}from'ckeditor5/src/ui.js';import{uid as _0x2b1686}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x5de35c}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x565433}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x20ab19,SKELETON_DEFINITIONS as _0x3160d1}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x2b4f62{[_0x2d46a2(0xa3)];[_0x2d46a2(0xac)];[_0x2d46a2(0xb4)];[_0x2d46a2(0x90)];[_0x2d46a2(0xa5)];[_0x2d46a2(0xa6)];[_0x2d46a2(0xaa)];[_0x2d46a2(0x96)]=null;constructor(_0x26e161,_0x1fdcd1){const _0x1a0fc6=_0x2d46a2;super(_0x26e161),this[_0x1a0fc6(0xa6)]=_0x1fdcd1[_0x1a0fc6(0x98)],this[_0x1a0fc6(0xb4)]=_0x1fdcd1[_0x1a0fc6(0x9c)]??0x7,this[_0x1a0fc6(0x97)](_0x1a0fc6(0xb0),!0x0),this[_0x1a0fc6(0xa3)]=this[_0x1a0fc6(0x9b)](),this[_0x1a0fc6(0xac)]=this[_0x1a0fc6(0x93)](),this[_0x1a0fc6(0x90)]=this[_0x1a0fc6(0x8a)](),this[_0x1a0fc6(0xa5)]=this[_0x1a0fc6(0xa0)](),this[_0x1a0fc6(0xaa)]=new _0x36df45([this[_0x1a0fc6(0xa5)],this[_0x1a0fc6(0x90)]]),this[_0x1a0fc6(0xb1)]({'tag':_0x1a0fc6(0xaf),'attributes':{'class':_0x1a0fc6(0xa8)},'children':this[_0x1a0fc6(0xaa)]});}[_0x2d46a2(0x9b)](){const _0x2e8672=_0x2d46a2;return new _0x565433(this[_0x2e8672(0x9d)]);}[_0x2d46a2(0x93)](){const _0x3aa957=_0x2d46a2,_0x2d6c60=new _0x2b4f62(this[_0x3aa957(0x9d)]);return _0x2d6c60[_0x3aa957(0xb1)]({'tag':_0x3aa957(0xaf),'attributes':{'class':_0x3aa957(0xb3)},'children':[this[_0x3aa957(0xa3)]]}),this[_0x3aa957(0xa3)]['on'](_0x3aa957(0xad),(_0x479b9a,_0x174a7c)=>{const _0x2a5053=_0x3aa957;this[_0x2a5053(0x8b)](_0x174a7c),this[_0x2a5053(0xa6)][_0x2a5053(0x91)]&&this[_0x2a5053(0x90)][_0x2a5053(0xa2)](_0x174a7c);}),_0x2d6c60;}[_0x2d46a2(0x8a)](){const _0x32ae26=_0x2d46a2,_0x514498=new _0x5de35c(this[_0x32ae26(0x9d)],this[_0x32ae26(0xa6)]);return _0x514498[_0x32ae26(0x87)](_0x32ae26(0x95))['to'](this),_0x514498[_0x32ae26(0x86)]({'attributes':{'class':this[_0x32ae26(0xab)]['if'](_0x32ae26(0xb0),_0x32ae26(0xa4))}}),_0x514498;}[_0x2d46a2(0xa0)](){const _0x5183e8=_0x2d46a2,_0x3ddf55=new _0x20ab19(this[_0x5183e8(0x9d)],_0x3160d1[_0x5183e8(0x9f)]);return _0x3ddf55[_0x5183e8(0x86)]({'attributes':{'class':[this[_0x5183e8(0xab)]['if'](_0x5183e8(0xb0),_0x5183e8(0xa4),_0x475bab=>!_0x475bab)]}}),_0x3ddf55;}[_0x2d46a2(0x94)](){const _0x2082b4=_0x2d46a2;super[_0x2082b4(0x94)](),this[_0x2082b4(0x8b)]('');}[_0x2d46a2(0x8b)](_0x10c7f2){const _0x3df154=_0x2d46a2,_0x592b64=_0x2b1686();this[_0x3df154(0x96)]=_0x592b64,this[_0x3df154(0x8d)](_0x3df154(0x8e),{'sourceId':this[_0x3df154(0xa6)]['id'],'query':_0x10c7f2,'uid':_0x592b64}),this[_0x3df154(0xb0)]=!0x0;}[_0x2d46a2(0xa9)](_0x4f5edd,_0x193f99){const _0x4a051d=_0x2d46a2;if(_0x193f99&&_0x193f99!==this[_0x4a051d(0x96)])return;const _0x371544=this[_0x4a051d(0xa6)][_0x4a051d(0x91)]?this[_0x4a051d(0xa3)][_0x4a051d(0xb6)]():'';this[_0x4a051d(0x90)][_0x4a051d(0xa9)](_0x4f5edd,_0x371544),_0x4f5edd[_0x4a051d(0x92)]>=this[_0x4a051d(0xb4)]&&!this[_0x4a051d(0xaa)][_0x4a051d(0xae)](this[_0x4a051d(0xac)])&&this[_0x4a051d(0xaa)][_0x4a051d(0x8f)](this[_0x4a051d(0xac)],0x0),requestAnimationFrame(()=>{const _0x2e718c=_0x4a051d;this[_0x2e718c(0xb0)]=!0x1;});}[_0x2d46a2(0x99)](_0x2eb118,_0x5b7fa2){const _0x19fc51=_0x2d46a2;this[_0x19fc51(0x90)][_0x19fc51(0x99)](_0x2eb118,_0x5b7fa2);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x25144e=_0x3ebf;(function(_0x2d9144,_0x1a19bc){const _0x2b2fd2=_0x3ebf,_0x90f45d=_0x2d9144();while(!![]){try{const _0x46c267=parseInt(_0x2b2fd2(0xb9))/0x1*(parseInt(_0x2b2fd2(0xce))/0x2)+-parseInt(_0x2b2fd2(0xb0))/0x3*(parseInt(_0x2b2fd2(0xc9))/0x4)+-parseInt(_0x2b2fd2(0xbb))/0x5+-parseInt(_0x2b2fd2(0xa9))/0x6+-parseInt(_0x2b2fd2(0xd0))/0x7*(-parseInt(_0x2b2fd2(0xcf))/0x8)+parseInt(_0x2b2fd2(0xcb))/0x9+parseInt(_0x2b2fd2(0xd2))/0xa;if(_0x46c267===_0x1a19bc)break;else _0x90f45d['push'](_0x90f45d['shift']());}catch(_0x6dc921){_0x90f45d['push'](_0x90f45d['shift']());}}}(_0x1734,0xbaac4));import{HighlightedTextView as _0x207d1e,IconView as _0x2096c8,ListItemView as _0x35f33a}from'ckeditor5/src/ui.js';function _0x3ebf(_0x3c744f,_0x1a3adc){const _0x17349a=_0x1734();return _0x3ebf=function(_0x3ebf24,_0x2070b4){_0x3ebf24=_0x3ebf24-0xa9;let _0x3b7f2e=_0x17349a[_0x3ebf24];return _0x3b7f2e;},_0x3ebf(_0x3c744f,_0x1a3adc);}function _0x1734(){const _0x5ab3b5=['updateResourceState','_createIconView','_updateIcon','FILE','19916fQdUEd','div','6142968riuGMd','render','_setupTemplate','384962BbGXCX','9922712CLnCLq','7iTPhEn','getResourceIcon','5245030gVneSC','content','ck-ai-chat-resources__item--in-context','3645474qudzNg','bindTemplate','DOCUMENT','URL','extendTemplate','ck-ai-chat-resources__item','text','633ONEtTb','highlightText','ck-ai-chat-resources__item__icon','execute','setTemplate','trim','set','_iconView','isVisible','4EWesmX','ck-ai-chat-resources__item-title','3972790SaNVPA','label','isInContext','TEXT','span','_createTitleView','ck-hidden','type','resource','_titleView'];_0x1734=function(){return _0x5ab3b5;};return _0x1734();}import{escapeRegExp as _0x26285f}from'es-toolkit/compat';import{AIContextItemType as _0x715376}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x2ec2c5,IconCheck as _0x4c42b4,IconDocument as _0x262f32,IconDocumentOutline as _0x5daa3e,IconLink as _0x1b0eb3}from'@ckeditor/ckeditor5-icons';const zr=_0x25144e(0xae),Br=_0x25144e(0xd4),Gr=_0x25144e(0xba),Hr=_0x25144e(0xb2);export class AIChatResourceListItemView extends _0x35f33a{[_0x25144e(0xc3)];[_0x25144e(0xc4)];[_0x25144e(0xb7)];constructor(_0x5e6b63,_0x31ab13){const _0xc85fba=_0x25144e;super(_0x5e6b63),this[_0xc85fba(0xc3)]=_0x31ab13,this[_0xc85fba(0xb6)](_0xc85fba(0xbd),!!_0x31ab13[_0xc85fba(0xbd)]),this[_0xc85fba(0xc4)]=this[_0xc85fba(0xc0)](),this[_0xc85fba(0xb7)]=this[_0xc85fba(0xc6)](),this[_0xc85fba(0xcd)]();}[_0x25144e(0xcc)](){const _0x5983b9=_0x25144e;super[_0x5983b9(0xcc)]();}[_0x25144e(0xd1)](_0x519236){const _0x3d81ba=_0x25144e;if(_0x519236[_0x3d81ba(0xbd)])return _0x4c42b4;switch(_0x519236[_0x3d81ba(0xc2)]){case _0x715376[_0x3d81ba(0xab)]:return _0x262f32;case _0x715376[_0x3d81ba(0xac)]:return _0x1b0eb3;case _0x715376[_0x3d81ba(0xc8)]:case _0x715376[_0x3d81ba(0xbe)]:return _0x2ec2c5;default:return _0x5daa3e;}}[_0x25144e(0xb1)](_0x3c49d3){const _0x106610=_0x25144e;if(!_0x3c49d3||''===_0x3c49d3[_0x106610(0xb5)]())return void this[_0x106610(0xc4)][_0x106610(0xb1)](null);const _0x37da08=new RegExp(_0x26285f(_0x3c49d3),'gi');this[_0x106610(0xc4)][_0x106610(0xb1)](_0x37da08);}[_0x25144e(0xc5)](_0x229352){const _0x186493=_0x25144e;this[_0x186493(0xc3)][_0x186493(0xbd)]=_0x229352,this[_0x186493(0xbd)]=_0x229352,this[_0x186493(0xc7)]();}[_0x25144e(0xc0)](){const _0x195633=_0x25144e,_0xd67d17=new _0x207d1e();return _0xd67d17[_0x195633(0xaf)]=this[_0x195633(0xc3)][_0x195633(0xbc)],_0xd67d17[_0x195633(0xad)]({'tag':_0x195633(0xbf),'attributes':{'class':[Gr]}}),_0xd67d17;}[_0x25144e(0xc6)](){const _0x3330cf=_0x25144e,_0x2dea5f=new _0x2096c8();return _0x2dea5f[_0x3330cf(0xd3)]=this[_0x3330cf(0xd1)](this[_0x3330cf(0xc3)]),_0x2dea5f;}[_0x25144e(0xcd)](){const _0x5f2aaf=_0x25144e,_0x586672=this[_0x5f2aaf(0xaa)];this[_0x5f2aaf(0xb4)]({'tag':_0x5f2aaf(0xca),'attributes':{'class':[zr,_0x586672['if'](_0x5f2aaf(0xb8),_0x5f2aaf(0xc1),_0x30a86a=>!_0x30a86a),_0x586672['if'](_0x5f2aaf(0xbd),Br)]},'children':[{'tag':_0x5f2aaf(0xca),'attributes':{'class':[Hr]},'children':[this[_0x5f2aaf(0xb7)]]},this[_0x5f2aaf(0xc4)]],'on':{'click':_0x586672['to'](_0x5f2aaf(0xb3))}});}[_0x25144e(0xc7)](){const _0x21dfe3=_0x25144e;this[_0x21dfe3(0xb7)][_0x21dfe3(0xd3)]=this[_0x21dfe3(0xd1)](this[_0x21dfe3(0xc3)]);}}
|