@ckeditor/ckeditor5-ai 47.4.0-alpha.3 → 47.4.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f5eb8=_0x2bea;(function(_0x1b79f4,_0x5d068a){const _0x2aba4f=_0x2bea,_0x29cf9c=_0x1b79f4();while(!![]){try{const _0x4c6a16=-parseInt(_0x2aba4f(0x148))/0x1*(parseInt(_0x2aba4f(0x162))/0x2)+parseInt(_0x2aba4f(0x172))/0x3+-parseInt(_0x2aba4f(0x158))/0x4+-parseInt(_0x2aba4f(0x14b))/0x5+-parseInt(_0x2aba4f(0x146))/0x6+parseInt(_0x2aba4f(0x174))/0x7*(parseInt(_0x2aba4f(0x157))/0x8)+parseInt(_0x2aba4f(0x17d))/0x9;if(_0x4c6a16===_0x5d068a)break;else _0x29cf9c['push'](_0x29cf9c['shift']());}catch(_0x4e1c24){_0x29cf9c['push'](_0x29cf9c['shift']());}}}(_0x4661,0xe3d11));import{ButtonView as _0x4b3327,IconView as _0xfea080}from'ckeditor5/src/ui.js';import{IconClose as _0xa8e0f3,IconDocument as _0xc85fe9,IconFileUpload as _0xcfd578,IconLink as _0x189708,IconSelection as _0x52ab52}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0xe41f29}from'../../../aicore/utils/common-translations.js';function _0x2bea(_0x12f5e4,_0x43c909){const _0x46612c=_0x4661();return _0x2bea=function(_0x2beae9,_0x141813){_0x2beae9=_0x2beae9-0x140;let _0x29d478=_0x46612c[_0x2beae9];return _0x29d478;},_0x2bea(_0x12f5e4,_0x43c909);}import{AISpinnerView as _0x5386c6}from'../../../aicore/ui/aispinner.js';const xn={'file':_0xcfd578,'document':_0xc85fe9,'web-resource':_0x189708,'text':_0xcfd578,'selection':_0x52ab52},bn=_0x4f5eb8(0x16f),wn=_0x4f5eb8(0x175),Tn=_0x4f5eb8(0x147),En=_0x4f5eb8(0x142),fn=_0x4f5eb8(0x14a),An=_0x4f5eb8(0x149),Cn='n';function _0x4661(){const _0x4c3301=['_isAnimationOnEnterEnabled','webkitAnimationEnd','uiId','ck-ai-chat-context-chip__label','_createLabelElement','addEventListener','readonly','6231612ehAdlK','ck-ai-chat-context-chip_document','50256lsxxsb','ck-ai-chat-context-controls__chip-tooltip','ck-ai-chat-context-chip__type-icon','1171290oXpYSH','div','execute','lastIndexOf','disableAnimationOnEnter','element','length','isVisible','ck-hidden','set','_createIconView','isLoading','381520XJWyKm','5241756FkzSsW','tooltip','extendTemplate','removeEventListener','locale','slice','selection','removeContextItemChip','ck-ai-chat-context-chip_new-chip','remove','12EDiJjQ','add','span','document','render','fire','itemType','_setupRemoveButtonEvent','_initializeProperties','bind','_createTemplateAttributes','_createTemplateChildren','label','ck-ai-chat-context-chip','small','animationend','3706917Iippcc','_setupTemplate','7OkGggP','ck-ai-chat-context-chip_wide','type','content','_createRemoveButton','bindTemplate','_handleAnimationEndOnce','setTemplate','_createLoaderIcon','22811787BhNmhq','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','classList'];_0x4661=function(){return _0x4c3301;};return _0x4661();}export class AIChatContextItemButtonView extends _0x4b3327{constructor(_0x235b48,_0x51f12c,_0x521e66,_0x38fa6d,_0x2c5b87=!0x1){const _0x4f06b1=_0x4f5eb8;super(_0x235b48),this[_0x4f06b1(0x180)]=_0x38fa6d,this[_0x4f06b1(0x16a)](_0x51f12c,_0x521e66,_0x2c5b87),this[_0x4f06b1(0x173)]();}[_0x4f5eb8(0x166)](){const _0x4c8811=_0x4f5eb8;super[_0x4c8811(0x166)](),this[_0x4c8811(0x180)]&&this[_0x4c8811(0x150)]&&(this[_0x4c8811(0x150)][_0x4c8811(0x17f)][_0x4c8811(0x163)](_0x4c8811(0x160)),this[_0x4c8811(0x17a)](this[_0x4c8811(0x150)],()=>{const _0x27bddf=_0x4c8811;this[_0x27bddf(0x150)]&&this[_0x27bddf(0x150)][_0x27bddf(0x17f)][_0x27bddf(0x161)](_0x27bddf(0x160));}));}[_0x4f5eb8(0x14f)](){const _0x3a0aea=_0x4f5eb8;this[_0x3a0aea(0x180)]=!0x1,this[_0x3a0aea(0x150)]&&this[_0x3a0aea(0x150)][_0x3a0aea(0x17f)][_0x3a0aea(0x161)](_0x3a0aea(0x160));}[_0x4f5eb8(0x16a)](_0x352194,_0x3551f5,_0x1b52d9){const _0x34123f=_0x4f5eb8;this[_0x34123f(0x154)](_0x34123f(0x16e),_0x352194[_0x34123f(0x16e)]),this[_0x34123f(0x154)](_0x34123f(0x159),!0x0),this[_0x34123f(0x154)](_0x34123f(0x168),_0x352194[_0x34123f(0x176)]),this[_0x34123f(0x154)]('id',_0x352194[_0x34123f(0x141)]),this[_0x34123f(0x154)](_0x34123f(0x145),_0x3551f5),this[_0x34123f(0x154)](_0x34123f(0x156),_0x1b52d9);}[_0x4f5eb8(0x173)](){const _0x4f9ee3=_0x4f5eb8,_0x2f2c57=this[_0x4f9ee3(0x155)](),_0x24bd50=this[_0x4f9ee3(0x178)](),_0x7d8127=this[_0x4f9ee3(0x179)];this[_0x4f9ee3(0x17b)]({'tag':_0x4f9ee3(0x14c),'attributes':this[_0x4f9ee3(0x16c)](_0x7d8127),'children':this[_0x4f9ee3(0x16d)](_0x2f2c57,_0x24bd50,_0x7d8127)});}[_0x4f5eb8(0x16c)](_0x18a114){const _0x489719=_0x4f5eb8;return{'class':[bn,_0x18a114['if'](_0x489719(0x168),Tn,_0x4d5ebc=>_0x489719(0x165)==_0x4d5ebc),_0x18a114['if'](_0x489719(0x168),wn,_0xf0f5b8=>_0x489719(0x15e)==_0xf0f5b8)],'data-cke-tooltip-text':_0x18a114['to'](_0x489719(0x16e),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x4f5eb8(0x16d)](_0x19864c,_0x3d6c0a,_0x4ce849){const _0x5f44ef=_0x4f5eb8,_0x1fb13e=this[_0x5f44ef(0x143)](_0x4ce849),_0x2b9128=this[_0x5f44ef(0x17c)]();return this[_0x5f44ef(0x145)]?[_0x19864c,_0x1fb13e]:[_0x19864c,_0x2b9128,_0x1fb13e,_0x3d6c0a];}[_0x4f5eb8(0x143)](_0x13bd5b){const _0x560b32=_0x4f5eb8;return{'tag':_0x560b32(0x164),'attributes':{'class':En},'children':[{'text':_0x13bd5b['to'](_0x560b32(0x16e))}]};}[_0x4f5eb8(0x178)](){const _0x49e201=_0x4f5eb8,_0x379e9b=new _0x4b3327(this[_0x49e201(0x15c)]);return _0x379e9b[_0x49e201(0x154)]({'label':_0xe41f29(this[_0x49e201(0x15c)],_0x49e201(0x17e)),'icon':_0xa8e0f3}),this[_0x49e201(0x169)](_0x379e9b),_0x379e9b;}[_0x4f5eb8(0x169)](_0x4cc13c){const _0x198107=_0x4f5eb8;_0x4cc13c['on'](_0x198107(0x14d),()=>{const _0x22b1fd=_0x198107;this[_0x22b1fd(0x167)](_0x22b1fd(0x15f),this['id']);});}[_0x4f5eb8(0x155)](){const _0xd6f877=_0x4f5eb8,_0xe776f6=this[_0xd6f877(0x179)],_0x267615=new _0xfea080();return _0x267615[_0xd6f877(0x177)]=xn[this[_0xd6f877(0x168)]],_0x267615[_0xd6f877(0x15a)]({'attributes':{'class':[fn,_0xe776f6['if'](_0xd6f877(0x156),_0xd6f877(0x153),_0x141c1e=>_0x141c1e)]}}),_0x267615;}[_0x4f5eb8(0x17a)](_0x54a9c9,_0x5df5da){const _0x1dd0d0=_0x4f5eb8;if(!_0x54a9c9)return;const _0x585a50=()=>{const _0x5d70d0=_0x2bea;_0x5df5da(),_0x54a9c9[_0x5d70d0(0x15b)](_0x5d70d0(0x171),_0x585a50),_0x54a9c9[_0x5d70d0(0x15b)](_0x5d70d0(0x140),_0x585a50);};_0x54a9c9[_0x1dd0d0(0x144)](_0x1dd0d0(0x171),_0x585a50),_0x54a9c9[_0x1dd0d0(0x144)](_0x1dd0d0(0x140),_0x585a50);}[_0x4f5eb8(0x17c)](){const _0x3ba8f7=_0x4f5eb8,_0x2ec079=new _0x5386c6(_0x3ba8f7(0x170));return _0x2ec079[_0x3ba8f7(0x16b)](_0x3ba8f7(0x152))['to'](this,_0x3ba8f7(0x156),_0x2aca0b=>_0x2aca0b),_0x2ec079;}}function In(_0x412be4){const _0x54c330=_0x4f5eb8;if(!_0x412be4)return _0x412be4;if(_0x412be4[_0x54c330(0x151)]<=0x78)return _0x412be4;const _0x540b26=_0x412be4[_0x54c330(0x15d)](0x0,0x78),_0x5eb9e3=_0x540b26[_0x54c330(0x14e)]('\x20');return(_0x5eb9e3>0x0?_0x540b26[_0x54c330(0x15d)](0x0,_0x5eb9e3):_0x540b26)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x3152aa=_0x455c;(function(_0x5c13b2,_0x23c8c0){const _0x14d23a=_0x455c,_0x3d4c21=_0x5c13b2();while(!![]){try{const _0x4d43ef=-parseInt(_0x14d23a(0xdd))/0x1*(-parseInt(_0x14d23a(0xe2))/0x2)+-parseInt(_0x14d23a(0x101))/0x3*(parseInt(_0x14d23a(0xe9))/0x4)+parseInt(_0x14d23a(0xfc))/0x5*(-parseInt(_0x14d23a(0xde))/0x6)+parseInt(_0x14d23a(0x11f))/0x7+parseInt(_0x14d23a(0xfd))/0x8*(-parseInt(_0x14d23a(0x10c))/0x9)+-parseInt(_0x14d23a(0x104))/0xa*(parseInt(_0x14d23a(0x117))/0xb)+parseInt(_0x14d23a(0x107))/0xc*(parseInt(_0x14d23a(0x11c))/0xd);if(_0x4d43ef===_0x23c8c0)break;else _0x3d4c21['push'](_0x3d4c21['shift']());}catch(_0x47794c){_0x3d4c21['push'](_0x3d4c21['shift']());}}}(_0x35f0,0x33ac5));import{FocusTracker as _0xd16163,KeystrokeHandler as _0x1516fe}from'ckeditor5/src/utils.js';function _0x35f0(){const _0x525510=['esc','div','ck-button-icon\x20ck-button-back','input','38DeLJMj','6ZrExvU','shift+tab','value','ck-ai-chat-context-controls__url-input-section','13582zJejip','ck-labeled-field-view_empty','refreshBalloon','add','_setupEventHandlers','_focusables','createCollection','67012OYGScd','destroy','trim','locale','AI_CHAT_CONTEXT_URL_LABEL','_setupTemplate','fire','execute','isEnabled','AI_CHAT_CONTEXT_URL_INVALID_ERROR','tab','element','setError','render','ck-ai-chat-context-controls__url-form','focusTracker','_isValidUrl','urlInputField','_createConfirmButton','1089060BUdyPZ','112mVyhRB','_handleSubmit','focusCycler','children','27RCdGjD','errorText','cancel','3274030CYrXAO','AI_CHAT_CONTEXT_URL_PLACEHOLDER','forEach','12DbmwyG','submit','_setupKeystrokes','getValue','clear','190395DYGfrv','setTemplate','stop','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','_createBackButton','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','set','AI_CHAT_CONTEXT_URL_ADD_URL','confirmButton','clearError','11SUXVPX','focus','form','length','keystrokes','11968645HxMuDA','ck-button-icon','fieldView','175644WzcInE','backButton','_updateConfirmButtonState','submitUrl','_createUrlInputField','listenTo'];_0x35f0=function(){return _0x525510;};return _0x35f0();}import{ButtonView as _0x37182c,FocusCycler as _0x3cd621,LabeledFieldView as _0x4ab98d,View as _0x9e09e9,FormHeaderView as _0x536608,createLabeledInputText as _0x1fe988,submitHandler as _0x260afa}from'ckeditor5/src/ui.js';import{IconCheck as _0x530cca,IconPreviousArrow as _0x3fea9d}from'@ckeditor/ckeditor5-icons';function _0x455c(_0x51f86c,_0xcaa993){const _0x35f029=_0x35f0();return _0x455c=function(_0x455cc8,_0x1d8d99){_0x455cc8=_0x455cc8-0xd5;let _0x105d0c=_0x35f029[_0x455cc8];return _0x105d0c;},_0x455c(_0x51f86c,_0xcaa993);}import{getTranslation as _0x2edd7a}from'../../../aicore/utils/common-translations.js';const ch=_0x3152aa(0xf7),nh=_0x3152aa(0xe1);export class AIChatContextPanelUrlInputView extends _0x9e09e9{[_0x3152aa(0xf8)];[_0x3152aa(0x11b)];[_0x3152aa(0xe7)];[_0x3152aa(0xff)];[_0x3152aa(0xfa)];[_0x3152aa(0x120)];[_0x3152aa(0x115)];constructor(_0xa04ca5){const _0x5c84fd=_0x3152aa;super(_0xa04ca5),this[_0x5c84fd(0xf8)]=new _0xd16163(),this[_0x5c84fd(0x11b)]=new _0x1516fe(),this[_0x5c84fd(0x120)]=this[_0x5c84fd(0x110)](),this[_0x5c84fd(0xfa)]=this[_0x5c84fd(0xd7)](),this[_0x5c84fd(0x115)]=this[_0x5c84fd(0xfb)](),this[_0x5c84fd(0xe7)]=this[_0x5c84fd(0xe8)]([this[_0x5c84fd(0x120)],this[_0x5c84fd(0xfa)],this[_0x5c84fd(0x115)]]),this[_0x5c84fd(0xff)]=new _0x3cd621({'focusables':this[_0x5c84fd(0xe7)],'focusTracker':this[_0x5c84fd(0xf8)],'keystrokeHandler':this[_0x5c84fd(0x11b)],'actions':{'focusPrevious':_0x5c84fd(0xdf),'focusNext':_0x5c84fd(0xf3)}}),this[_0x5c84fd(0xee)](),this[_0x5c84fd(0xe6)](),this[_0x5c84fd(0x109)]();}[_0x3152aa(0xf6)](){const _0x3695f8=_0x3152aa;super[_0x3695f8(0xf6)](),this[_0x3695f8(0xe7)][_0x3695f8(0x106)](_0x12e7e0=>{const _0x4a6a88=_0x3695f8;this[_0x4a6a88(0xf8)][_0x4a6a88(0xe5)](_0x12e7e0[_0x4a6a88(0xf4)]),this[_0x4a6a88(0x11b)][_0x4a6a88(0xd8)](_0x12e7e0[_0x4a6a88(0xf4)]);}),_0x260afa({'view':this}),this[_0x3695f8(0x118)]();}[_0x3152aa(0xea)](){const _0x14bc43=_0x3152aa;super[_0x14bc43(0xea)](),this[_0x14bc43(0xf8)][_0x14bc43(0xea)](),this[_0x14bc43(0x11b)][_0x14bc43(0xea)]();}[_0x3152aa(0x118)](){const _0x100c0d=_0x3152aa;this[_0x100c0d(0xfa)][_0x100c0d(0x118)]();}[_0x3152aa(0x10a)](){const _0x4f3737=_0x3152aa;return this[_0x4f3737(0xfa)][_0x4f3737(0x11e)][_0x4f3737(0xf4)]?.[_0x4f3737(0xe0)]?.[_0x4f3737(0xeb)]()||'';}[_0x3152aa(0x10b)](){const _0x540e28=_0x3152aa;this[_0x540e28(0xfa)][_0x540e28(0x11e)][_0x540e28(0xf4)][_0x540e28(0xe0)]='',this[_0x540e28(0xfa)][_0x540e28(0x102)]=null,this[_0x540e28(0x115)][_0x540e28(0xf1)]=!0x1;}[_0x3152aa(0xf5)](_0x2829a7){const _0x212636=_0x3152aa;this[_0x212636(0xfa)][_0x212636(0x102)]=_0x2829a7,this[_0x212636(0xd5)](),this[_0x212636(0xef)](_0x212636(0xe4));}[_0x3152aa(0x116)](){const _0x41c306=_0x3152aa;this[_0x41c306(0xfa)][_0x41c306(0x102)]=null,this[_0x41c306(0xd5)]();}[_0x3152aa(0x110)](){const _0x452c78=_0x3152aa,_0xefaf2a=new _0x37182c(this[_0x452c78(0xec)]);return _0xefaf2a[_0x452c78(0x113)]({'icon':_0x3fea9d,'tooltip':_0x2edd7a(this[_0x452c78(0xec)],_0x452c78(0x112)),'tooltipPosition':'n','class':_0x452c78(0xdb)}),_0xefaf2a;}[_0x3152aa(0xd7)](){const _0x287049=_0x3152aa,_0x3de3bb=new _0x4ab98d(this[_0x287049(0xec)],_0x1fe988);return _0x3de3bb[_0x287049(0x113)]({'label':_0x2edd7a(this[_0x287049(0xec)],_0x287049(0xed)),'class':_0x287049(0xe3)}),_0x3de3bb[_0x287049(0x11e)][_0x287049(0x113)]({'placeholder':_0x2edd7a(this[_0x287049(0xec)],_0x287049(0x105))}),_0x3de3bb;}[_0x3152aa(0xfb)](){const _0x354ea5=_0x3152aa,_0x51bf05=new _0x37182c(this[_0x354ea5(0xec)]);return _0x51bf05[_0x354ea5(0x113)]({'icon':_0x530cca,'tooltip':_0x2edd7a(this[_0x354ea5(0xec)],_0x354ea5(0x114)),'tooltipPosition':'n','class':_0x354ea5(0x11d),'type':_0x354ea5(0x108),'isEnabled':!0x1}),_0x51bf05;}[_0x3152aa(0xee)](){const _0x47710e=_0x3152aa,_0x1a02e3=new _0x536608(this[_0x47710e(0xec)],{'label':_0x2edd7a(this[_0x47710e(0xec)],_0x47710e(0x114)),'class':_0x47710e(0x111)});_0x1a02e3[_0x47710e(0x100)][_0x47710e(0xe5)](this[_0x47710e(0x120)],0x0),this[_0x47710e(0x10d)]({'tag':_0x47710e(0x119),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x1a02e3,{'tag':_0x47710e(0xda),'attributes':{'class':nh},'children':[this[_0x47710e(0xfa)],this[_0x47710e(0x115)]]}]});}[_0x3152aa(0xe6)](){const _0x4b05c7=_0x3152aa;this[_0x4b05c7(0x120)]['on'](_0x4b05c7(0xf0),()=>{const _0x35f46e=_0x4b05c7;this[_0x35f46e(0x10b)](),this[_0x35f46e(0xef)](_0x35f46e(0x103));}),this[_0x4b05c7(0xfa)][_0x4b05c7(0x11e)]['on'](_0x4b05c7(0xdc),()=>{const _0x2df79a=_0x4b05c7;this[_0x2df79a(0x116)](),this[_0x2df79a(0xd5)](),this[_0x2df79a(0xef)](_0x2df79a(0xe4));}),this['on'](_0x4b05c7(0x108),_0x4ed79d=>{const _0x2585f5=_0x4b05c7;_0x4ed79d[_0x2585f5(0x10e)](),this[_0x2585f5(0xfe)]();});}[_0x3152aa(0x109)](){const _0x5e3cdd=_0x3152aa;this[_0x5e3cdd(0x11b)][_0x5e3cdd(0x113)](_0x5e3cdd(0xd9),(_0x6eb85e,_0x4f7e98)=>{const _0x3e2158=_0x5e3cdd;this[_0x3e2158(0x10b)](),this[_0x3e2158(0xef)](_0x3e2158(0x103)),_0x4f7e98();});}[_0x3152aa(0xfe)](){const _0x89cd6a=_0x3152aa,_0x333091=this[_0x89cd6a(0x10a)]()[_0x89cd6a(0xeb)]();_0x333091?this[_0x89cd6a(0xf9)](_0x333091)?(this[_0x89cd6a(0x116)](),this[_0x89cd6a(0xef)](_0x89cd6a(0xd6),_0x333091)):this[_0x89cd6a(0xf5)](_0x2edd7a(this[_0x89cd6a(0xec)],_0x89cd6a(0xf2))):this[_0x89cd6a(0xf5)](_0x2edd7a(this[_0x89cd6a(0xec)],_0x89cd6a(0x10f)));}[_0x3152aa(0xd5)](){const _0x50b421=_0x3152aa,_0x1a15d2=this[_0x50b421(0x10a)]()[_0x50b421(0xeb)](),_0x32e52c=!!this[_0x50b421(0xfa)][_0x50b421(0x102)];this[_0x50b421(0x115)][_0x50b421(0xf1)]=_0x1a15d2[_0x50b421(0x11a)]>0x0&&!_0x32e52c;}[_0x3152aa(0xf9)](_0x2ca6c3){try{return!!new URL(_0x2ca6c3);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x47dd(){const _0x4c2ff8=['_conversationContextsChips','label','tooltip','_removeContextFromCollection','enabled','isHidden','addContextItem','addResourceToContext','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','find','_createAddContextBalloonPanelView','isReadOnly','clearCurrentContextItems','showAddContextBalloonPanel','ck-ai-chat-context-controls__add-context-button','15049793uHHxHm','southArrowNorth','_setAddContextButtonEnabled','done','8132649DSKmvh','pin','destroy','cancel','southArrowNorthWest','locale','render','isOn','type','body','closeSourceResourceBalloon','removeContextItem','ck-ai-chat-context-controls__url-balloon-panel','hide','arrowView','ck-ai-chat-context-controls__show-more-balloon-panel','16LYKKVY','sources','_createAddContextButtonView','_urlInputView','ck-ai-chat-context-controls','_createUrlBalloonPanelView','setConversationContext','363215DilEfS','AI_CHAT_CONTEXT_URL_LABEL','12DGJpeT','ck-ai-chat-context-controls__balloon-button','content','bodyCollection','ck-ai-chat','add','_addContextBalloonConfig','clear','extendTemplate','_resourcesBalloonView','_setBalloonPanelContent','northArrowSouthEast','files','document','_addUrlContent','_bindEventHandlers','_createBaseBalloonPanel','_currentContextsChips','AI_CHAT_CONTEXT_FILE_LABEL','6uwhjDj','isAnyResourceBalloonVisible','set','ck-ai-chat-context-controls__add-context-balloon-panel','_showSourceResourcesBalloon','defaultPositions','_overflowManager','4174556BEvEft','focus','source','_createContextButton','conversation','_addContextToCollection','ck-ai-chat-controls-button','3hKgQEY','northArrowSouth','_createBalloonButton','ck-ai-chat-context-controls__pending-contexts','updateResourceState','_createArrowView','fire','southArrowNorthEast','menuitem','isLoading','setContainerElement','_getLimiterElement','removeContextItemChip','children','AI_CHAT_CONTEXT_ADD_CONTEXT','populateSourceResourceBalloon','addDocumentToContext','_setupAllBalloonClickOutsideHandlers','_handleUrlSubmit','showSourceResourcesBalloon','remove','urls','_setupTemplate','7315731FZCvAF','reorganizeChips','submitUrl','_addContextBalloonPanelView','_toggleAddContextBalloon','ck-reset_all-excluded','_urlBalloonPanelView','hideAddContextBalloonPanel','addContextButtonView','hideUrlBalloonPanel','element','searchInputVisibleFrom','show','icon','8436170uKmKay','current','addUrlToContext','2wEZXRw','closest','_setupUrlBalloonClickOutsideHandler','bind','isVisible','ck-ai-chat-context-controls__balloon-button-source','ck-ai-chat-controls_context_show-more-button','addFileToContext','northArrowSouthWest','setTemplate','buttonView','ck-ai-chat-context-chips-wrapper-balloon','_handleAddContextButtonClick','div','clearConversationContextItems','isEnabled','createCollection','582725IjzwWZ','execute','balloonView','overflowChips','__arrow','setAddContextOptions','refreshBalloon','showUrlBalloonPanel','loadSourceResources','_setupAddContextBalloonClickOutsideHandler','setContextItemLoading','_createResourcesBalloonView'];_0x47dd=function(){return _0x4c2ff8;};return _0x47dd();}function _0x28ba(_0xc8e398,_0x5234e4){const _0x47dd1b=_0x47dd();return _0x28ba=function(_0x28ba0c,_0x132d2d){_0x28ba0c=_0x28ba0c-0x103;let _0x25102b=_0x47dd1b[_0x28ba0c];return _0x25102b;},_0x28ba(_0xc8e398,_0x5234e4);}const _0x23fc3b=_0x28ba;(function(_0x40cf71,_0x15aaf5){const _0x44b458=_0x28ba,_0x4eb2c3=_0x40cf71();while(!![]){try{const _0x1169b1=parseInt(_0x44b458(0x124))/0x1*(-parseInt(_0x44b458(0x16f))/0x2)+-parseInt(_0x44b458(0x147))/0x3*(parseInt(_0x44b458(0x140))/0x4)+parseInt(_0x44b458(0x180))/0x5+parseInt(_0x44b458(0x139))/0x6*(parseInt(_0x44b458(0x10d))/0x7)+parseInt(_0x44b458(0x11d))/0x8*(parseInt(_0x44b458(0x15e))/0x9)+parseInt(_0x44b458(0x16c))/0xa+parseInt(_0x44b458(0x109))/0xb*(-parseInt(_0x44b458(0x126))/0xc);if(_0x1169b1===_0x15aaf5)break;else _0x4eb2c3['push'](_0x4eb2c3['shift']());}catch(_0x2ee231){_0x4eb2c3['push'](_0x4eb2c3['shift']());}}}(_0x47dd,0xed77e));import{BalloonPanelView as _0x403b86,ButtonView as _0x34c5d4,clickOutsideHandler as _0x508cdc,FileDialogButtonView as _0xfca9ea,IconView as _0xb0d752,View as _0xa2a5d8}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x52bdc2,IconDocument as _0xb863f5,IconDocumentOutline as _0x4a3ac8,IconDropdownArrow as _0x2ce1a5,IconLink as _0x3ccff2,IconPaperClip as _0x2ff9b2}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x49ff92}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x5809df}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x234973}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x370ec1}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x14e4f8}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x23fc3b(0x157),_0x23fc3b(0x176),_0x23fc3b(0x16e),_0x23fc3b(0x193),_0x23fc3b(0x118),_0x23fc3b(0x188)];const ko=_0x23fc3b(0x121),Eo=_0x23fc3b(0x14a),vo=_0x23fc3b(0x13c),Vo=_0x23fc3b(0x108),Io=_0x23fc3b(0x119),Po=_0x23fc3b(0x127),Ro=_0x23fc3b(0x174),Uo=_0x23fc3b(0x146),Lo=_0x23fc3b(0x17a),No=_0x23fc3b(0x175),Oo=_0x23fc3b(0x11c),Mo=_0x23fc3b(0x12a),Ho=[_0x403b86[_0x23fc3b(0x13e)][_0x23fc3b(0x177)],_0x403b86[_0x23fc3b(0x13e)][_0x23fc3b(0x148)],_0x403b86[_0x23fc3b(0x13e)][_0x23fc3b(0x131)],_0x403b86[_0x23fc3b(0x13e)][_0x23fc3b(0x111)],_0x403b86[_0x23fc3b(0x13e)][_0x23fc3b(0x10a)],_0x403b86[_0x23fc3b(0x13e)][_0x23fc3b(0x14e)]];export class AIChatContextPanelView extends _0xa2a5d8{[_0x23fc3b(0x166)];[_0x23fc3b(0x137)]=this[_0x23fc3b(0x17f)]();[_0x23fc3b(0x18c)]=this[_0x23fc3b(0x17f)]();[_0x23fc3b(0x13f)];[_0x23fc3b(0x161)];[_0x23fc3b(0x164)];[_0x23fc3b(0x120)];[_0x23fc3b(0x12f)];[_0x23fc3b(0x12c)];[_0x23fc3b(0x129)];constructor(_0x55e931,_0x4561bb){const _0x25d466=_0x23fc3b;super(_0x55e931),this[_0x25d466(0x129)]=_0x4561bb[_0x25d466(0x129)],this[_0x25d466(0x137)]=this[_0x25d466(0x17f)](),this[_0x25d466(0x18c)]=this[_0x25d466(0x17f)](),this[_0x25d466(0x166)]=this[_0x25d466(0x11f)](_0x55e931),this[_0x25d466(0x161)]=this[_0x25d466(0x104)](_0x55e931),this[_0x25d466(0x164)]=this[_0x25d466(0x122)](_0x55e931),this[_0x25d466(0x12f)]=this[_0x25d466(0x18b)](_0x55e931,_0x4561bb);const _0x3a6995={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x25d466(0x13f)]=new _0x234973(_0x55e931,this[_0x25d466(0x137)],_0x3a6995,this[_0x25d466(0x129)],this),this[_0x25d466(0x12c)]={'buttonView':this[_0x25d466(0x166)],'balloonView':this[_0x25d466(0x161)],'hideMethod':this[_0x25d466(0x165)][_0x25d466(0x172)](this),'showMethod':this[_0x25d466(0x107)][_0x25d466(0x172)](this)},this[_0x25d466(0x15d)](),this[_0x25d466(0x135)]();}[_0x23fc3b(0x113)](){const _0x13ad8d=_0x23fc3b;super[_0x13ad8d(0x113)](),this[_0x13ad8d(0x158)](),this[_0x13ad8d(0x13f)][_0x13ad8d(0x151)](this[_0x13ad8d(0x168)]),this[_0x13ad8d(0x13f)][_0x13ad8d(0x15f)]();}[_0x23fc3b(0x10f)](){const _0x357946=_0x23fc3b;super[_0x357946(0x10f)](),this[_0x357946(0x13f)][_0x357946(0x10f)](),this[_0x357946(0x12f)][_0x357946(0x10f)]();}[_0x23fc3b(0x192)](_0x15c26a,_0x582bef){const _0x2b57a3=_0x23fc3b,_0xe090d9=this[_0x2b57a3(0x143)](_0x15c26a,_0x2b57a3(0x16d),!0x0,_0x582bef);this[_0x2b57a3(0x145)](_0xe090d9,this[_0x2b57a3(0x137)]),this[_0x2b57a3(0x13f)][_0x2b57a3(0x15f)]();}[_0x23fc3b(0x118)](_0x4f4dba){const _0x4b5d1e=_0x23fc3b;this[_0x4b5d1e(0x18f)](_0x4f4dba,this[_0x4b5d1e(0x137)]),this[_0x4b5d1e(0x18f)](_0x4f4dba,this[_0x4b5d1e(0x13f)][_0x4b5d1e(0x183)]),this[_0x4b5d1e(0x13f)][_0x4b5d1e(0x15f)]();}[_0x23fc3b(0x18a)](_0x3174e4,_0x1fa110){const _0xb05c2a=_0x23fc3b;let _0x4c4f7d=this[_0xb05c2a(0x137)][_0xb05c2a(0x103)](_0x596c0d=>_0x596c0d['id']===_0x3174e4);_0x4c4f7d||(_0x4c4f7d=this[_0xb05c2a(0x13f)][_0xb05c2a(0x183)][_0xb05c2a(0x103)](_0x5e02de=>_0x5e02de['id']===_0x3174e4)),_0x4c4f7d&&(_0x4c4f7d[_0xb05c2a(0x150)]=_0x1fa110);}[_0x23fc3b(0x123)](_0x2f8c4e){const _0x4380a2=_0x23fc3b;this[_0x4380a2(0x18c)][_0x4380a2(0x12d)]();for(const _0x2334d3 of _0x2f8c4e){const _0x298b13=this[_0x4380a2(0x143)](_0x2334d3,_0x4380a2(0x144),!0x1,!0x1);this[_0x4380a2(0x145)](_0x298b13,this[_0x4380a2(0x18c)]);}}[_0x23fc3b(0x106)](){const _0x60dd96=_0x23fc3b;this[_0x60dd96(0x137)][_0x60dd96(0x12d)](),this[_0x60dd96(0x13f)][_0x60dd96(0x12d)]();}[_0x23fc3b(0x17d)](){const _0x57acbc=_0x23fc3b;this[_0x57acbc(0x18c)][_0x57acbc(0x12d)]();}[_0x23fc3b(0x14b)](_0x59028e,_0x46d4a2,_0x392d83){const _0x248505=_0x23fc3b;this[_0x248505(0x12f)][_0x248505(0x14b)](_0x59028e,_0x46d4a2,_0x392d83);}[_0x23fc3b(0x165)](){const _0x1e6b1d=_0x23fc3b;this[_0x1e6b1d(0x162)](!0x1);}[_0x23fc3b(0x107)](){const _0x7312ee=_0x23fc3b;this[_0x7312ee(0x162)](!0x0);}[_0x23fc3b(0x167)](){const _0x3527fb=_0x23fc3b;this[_0x3527fb(0x164)][_0x3527fb(0x11a)](),this[_0x3527fb(0x166)][_0x3527fb(0x114)]=!0x1,this[_0x3527fb(0x120)]&&this[_0x3527fb(0x120)][_0x3527fb(0x12d)]();}[_0x23fc3b(0x187)](){const _0x1fffda=_0x23fc3b;this[_0x1fffda(0x164)][_0x1fffda(0x16a)](),this[_0x1fffda(0x166)][_0x1fffda(0x114)]=!0x0;}[_0x23fc3b(0x13d)](_0x46fd32){const _0x3358f5=_0x23fc3b;this[_0x3358f5(0x12f)][_0x3358f5(0x15a)](_0x46fd32),this[_0x3358f5(0x166)][_0x3358f5(0x114)]=!0x0;}[_0x23fc3b(0x156)](_0x595af7,_0x810d01,_0x3b865a,_0x28b958){const _0x507061=_0x23fc3b;this[_0x507061(0x12f)][_0x507061(0x156)](_0x595af7,_0x3b865a,_0x28b958);}[_0x23fc3b(0x117)](_0x4bd004){const _0x1467c6=_0x23fc3b;this[_0x1467c6(0x12f)][_0x1467c6(0x117)](_0x4bd004),this[_0x1467c6(0x166)][_0x1467c6(0x114)]=!0x1;}[_0x23fc3b(0x185)](_0x5b9ec3){const _0x218e29=_0x23fc3b;this[_0x218e29(0x130)](this[_0x218e29(0x161)],this[_0x218e29(0x112)],_0x5b9ec3),this[_0x218e29(0x10b)](_0x5b9ec3);}[_0x23fc3b(0x10b)](_0x283257){const _0x138c59=_0x23fc3b,_0x1b8b66=!_0x283257[_0x138c59(0x133)][_0x138c59(0x191)]&&_0x283257[_0x138c59(0x133)][_0x138c59(0x190)],_0x14d2cc=_0x283257[_0x138c59(0x15c)][_0x138c59(0x190)],_0x4c06f9=_0x283257[_0x138c59(0x132)][_0x138c59(0x190)];this[_0x138c59(0x166)][_0x138c59(0x17e)]=_0x1b8b66||_0x14d2cc||_0x4c06f9;}[_0x23fc3b(0x15d)](){const _0x57f040=_0x23fc3b;this[_0x57f040(0x178)]({'tag':_0x57f040(0x17c),'attributes':{'class':[ko,_0x57f040(0x163)]},'children':[{'tag':_0x57f040(0x17c),'attributes':{'class':Eo},'children':this[_0x57f040(0x137)]}]});}[_0x23fc3b(0x135)](){const _0x5b2a49=_0x23fc3b;this[_0x5b2a49(0x166)]['on'](_0x5b2a49(0x181),()=>{const _0x4232e2=_0x5b2a49;this[_0x4232e2(0x17b)]();});}[_0x23fc3b(0x11f)](_0x167791){const _0x59c2fa=_0x23fc3b,_0x2ed311=new _0x34c5d4(_0x167791);return _0x2ed311[_0x59c2fa(0x13b)]({'label':_0x370ec1(_0x167791,_0x59c2fa(0x155)),'class':Uo+'\x20'+Vo,'icon':_0x2ff9b2,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x2ed311;}[_0x23fc3b(0x104)](_0xdc2788){const _0x44292c=_0x23fc3b;return this[_0x44292c(0x136)](_0xdc2788,vo);}[_0x23fc3b(0x122)](_0x164457){const _0x2efe5d=_0x23fc3b,_0x3d054a=this[_0x2efe5d(0x136)](_0x164457,Io);return this[_0x2efe5d(0x134)](_0x3d054a,_0x164457),_0x3d054a;}[_0x23fc3b(0x18b)](_0x16a46d,_0x581cce){const _0x1f4c58=_0x23fc3b,_0x154a43={'searchInputVisibleFrom':_0x581cce[_0x1f4c58(0x169)],'onBackToContext':()=>{const _0x3e2e99=_0x1f4c58;this[_0x3e2e99(0x107)](),this[_0x3e2e99(0x161)][_0x3e2e99(0x10e)]({'target':this[_0x3e2e99(0x166)][_0x3e2e99(0x168)],'limiter':this[_0x3e2e99(0x152)](),'positions':Ho});},'onResourceSelected':(_0x510ccc,_0x5ee55c)=>{const _0x36f21e=_0x1f4c58;this[_0x36f21e(0x14d)](_0x36f21e(0x193),{'source':_0x510ccc,'resource':_0x5ee55c});},'onLoadSourceResources':_0x578540=>{const _0xe3814b=_0x1f4c58;this[_0xe3814b(0x14d)](_0xe3814b(0x188),_0x578540);},'onBalloonClosed':()=>{const _0x250a30=_0x1f4c58;this[_0x250a30(0x166)][_0x250a30(0x114)]=!0x1;},'getLimiterElement':()=>this[_0x1f4c58(0x152)](),'getTargetElement':()=>this[_0x1f4c58(0x166)][_0x1f4c58(0x168)]};return new _0x14e4f8(_0x16a46d,_0x581cce[_0x1f4c58(0x129)],_0x154a43);}[_0x23fc3b(0x152)](){const _0x2a3436=_0x23fc3b;return this[_0x2a3436(0x168)]?.[_0x2a3436(0x170)]('.'+Mo)||document[_0x2a3436(0x116)];}[_0x23fc3b(0x136)](_0x17bc8d,_0xac9cb8){const _0x2998be=_0x23fc3b,_0x330e08=new _0x403b86(_0x17bc8d);return _0x330e08[_0x2998be(0x12e)]({'attributes':{'class':_0xac9cb8}}),this[_0x2998be(0x129)][_0x2998be(0x12b)](_0x330e08),_0x330e08;}[_0x23fc3b(0x130)](_0x26d0cd,_0x582640,_0x3af163){const _0x2b31cb=_0x23fc3b;if(_0x26d0cd[_0x2b31cb(0x128)][_0x2b31cb(0x12d)](),!_0x3af163[_0x2b31cb(0x133)][_0x2b31cb(0x191)]&&_0x3af163[_0x2b31cb(0x133)][_0x2b31cb(0x190)]){const _0x33a0e1=this[_0x2b31cb(0x149)](_0x582640,{'label':_0x370ec1(_0x582640,_0x2b31cb(0x194)),'icon':_0xb863f5});_0x33a0e1['on'](_0x2b31cb(0x181),()=>{const _0x24b7fb=_0x2b31cb;this[_0x24b7fb(0x14d)](_0x24b7fb(0x157)),this[_0x24b7fb(0x165)]();}),_0x26d0cd[_0x2b31cb(0x128)][_0x2b31cb(0x12b)](_0x33a0e1);}if(_0x3af163[_0x2b31cb(0x15c)][_0x2b31cb(0x190)]){const _0x5c3b3b=this[_0x2b31cb(0x149)](_0x582640,{'label':_0x370ec1(_0x582640,_0x2b31cb(0x125)),'icon':_0x3ccff2});_0x5c3b3b['on'](_0x2b31cb(0x181),()=>{const _0x53addf=_0x2b31cb;this[_0x53addf(0x165)](),this[_0x53addf(0x187)](),this[_0x53addf(0x164)][_0x53addf(0x10e)]({'target':this[_0x53addf(0x166)][_0x53addf(0x168)],'limiter':this[_0x53addf(0x152)](),'positions':Ho}),this[_0x53addf(0x120)][_0x53addf(0x141)]();}),_0x26d0cd[_0x2b31cb(0x128)][_0x2b31cb(0x12b)](_0x5c3b3b);}if(_0x3af163[_0x2b31cb(0x132)][_0x2b31cb(0x190)]){const _0x588439=new _0xfca9ea(_0x582640);_0x588439[_0x2b31cb(0x13b)]({'label':_0x370ec1(_0x582640,_0x2b31cb(0x138)),'icon':_0x52bdc2,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x588439['on'](_0x2b31cb(0x10c),(_0x1f0f12,_0x3bed3f)=>{const _0x5a6dc3=_0x2b31cb;this[_0x5a6dc3(0x14d)](_0x5a6dc3(0x176),_0x3bed3f),this[_0x5a6dc3(0x165)]();}),_0x588439[_0x2b31cb(0x18e)]=!0x0,_0x26d0cd[_0x2b31cb(0x128)][_0x2b31cb(0x12b)](_0x588439);}for(const _0x278b83 of _0x3af163[_0x2b31cb(0x11e)]){const _0x1a20c8=this[_0x2b31cb(0x149)](_0x582640,{'label':_0x278b83[_0x2b31cb(0x18d)],'icon':_0x278b83[_0x2b31cb(0x16b)]||_0x4a3ac8,'type':_0x2b31cb(0x142)});_0x26d0cd[_0x2b31cb(0x128)][_0x2b31cb(0x12b)](_0x1a20c8),_0x1a20c8['on'](_0x2b31cb(0x181),()=>{const _0x235acf=_0x2b31cb;this[_0x235acf(0x165)](),this[_0x235acf(0x13d)](_0x278b83);});}}[_0x23fc3b(0x134)](_0x231f04,_0xd59676){const _0x1a5548=_0x23fc3b;this[_0x1a5548(0x120)]=new _0x5809df(_0xd59676),this[_0x1a5548(0x120)]['on'](_0x1a5548(0x160),(_0x464fb8,_0x37facb)=>{const _0x2b9303=_0x1a5548;this[_0x2b9303(0x159)](_0x37facb);}),this[_0x1a5548(0x120)]['on'](_0x1a5548(0x110),()=>{const _0x27ab9b=_0x1a5548;this[_0x27ab9b(0x167)](),this[_0x27ab9b(0x107)](),this[_0x27ab9b(0x161)][_0x27ab9b(0x10e)]({'target':this[_0x27ab9b(0x166)][_0x27ab9b(0x168)],'limiter':this[_0x27ab9b(0x152)](),'positions':Ho});}),this[_0x1a5548(0x120)]['on'](_0x1a5548(0x186),()=>{const _0x444008=_0x1a5548;this[_0x444008(0x164)][_0x444008(0x173)]&&this[_0x444008(0x164)][_0x444008(0x10e)]({'target':this[_0x444008(0x166)][_0x444008(0x168)],'limiter':this[_0x444008(0x152)](),'positions':Ho});}),_0x231f04[_0x1a5548(0x128)][_0x1a5548(0x12b)](this[_0x1a5548(0x120)]);}[_0x23fc3b(0x149)](_0x149b9d,_0x50fa86){const _0x1943db=_0x23fc3b,_0x8cd326=_0x1943db(0x142)===_0x50fa86[_0x1943db(0x115)]?new SourcesBalloonButtonView(_0x149b9d):new _0x34c5d4(_0x149b9d);return _0x8cd326[_0x1943db(0x13b)]({'label':_0x50fa86[_0x1943db(0x18d)],'icon':_0x50fa86[_0x1943db(0x16b)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x8cd326;}[_0x23fc3b(0x158)](){const _0x3bd9b3=_0x23fc3b;this[_0x3bd9b3(0x189)](),this[_0x3bd9b3(0x171)]();}[_0x23fc3b(0x171)](){const _0x552fb0=_0x23fc3b;_0x508cdc({'emitter':this[_0x552fb0(0x164)],'contextElements':[this[_0x552fb0(0x164)][_0x552fb0(0x168)]],'callback':()=>{const _0x339195=_0x552fb0;this[_0x339195(0x167)]();},'activator':()=>this[_0x552fb0(0x164)][_0x552fb0(0x173)]});}[_0x23fc3b(0x162)](_0x299e0f){const _0x2b9544=_0x23fc3b,_0x1dcd09=this[_0x2b9544(0x12c)];_0x1dcd09[_0x2b9544(0x179)][_0x2b9544(0x114)]=_0x299e0f,_0x299e0f?_0x1dcd09[_0x2b9544(0x182)][_0x2b9544(0x16a)]():_0x1dcd09[_0x2b9544(0x182)][_0x2b9544(0x11a)]();}[_0x23fc3b(0x189)](){const _0x248f10=_0x23fc3b,{balloonView:_0x1ce5d0,buttonView:_0x205472,hideMethod:_0x22630a}=this[_0x248f10(0x12c)];_0x508cdc({'emitter':_0x1ce5d0,'contextElements':[_0x1ce5d0[_0x248f10(0x168)],_0x205472[_0x248f10(0x168)]],'callback':()=>{_0x22630a();},'activator':()=>_0x205472[_0x248f10(0x114)]&&!this[_0x248f10(0x164)][_0x248f10(0x173)]&&!this[_0x248f10(0x12f)][_0x248f10(0x13a)]()});}[_0x23fc3b(0x143)](_0x31762e,_0xdc9f5f,_0x510faa=!0x1,_0x27892d=!0x1){const _0x308231=_0x23fc3b,_0x3be048=_0x308231(0x144)===_0xdc9f5f||!0x0===_0x31762e[_0x308231(0x105)],_0x347b2e=new _0x49ff92(this[_0x308231(0x112)],_0x31762e,_0x3be048,_0x510faa,_0x27892d);return _0x3be048||_0x347b2e['on'](_0x308231(0x153),()=>{const _0x18acdc=_0x308231;this[_0x18acdc(0x14d)](_0x18acdc(0x118),_0x347b2e['id']);}),_0x347b2e;}[_0x23fc3b(0x145)](_0x4d617c,_0x186854){const _0x2c275c=_0x23fc3b;_0x186854[_0x2c275c(0x12b)](_0x4d617c,0x0);}[_0x23fc3b(0x18f)](_0x30f366,_0x35d86e){const _0x99fde8=_0x23fc3b,_0x31581a=_0x35d86e[_0x99fde8(0x103)](_0xb2ee80=>_0xb2ee80['id']===_0x30f366);_0x31581a&&_0x35d86e[_0x99fde8(0x15b)](_0x31581a);}[_0x23fc3b(0x17b)](){const _0x27820d=_0x23fc3b;this[_0x27820d(0x166)][_0x27820d(0x114)]?this[_0x27820d(0x165)]():(this[_0x27820d(0x107)](),this[_0x27820d(0x161)][_0x27820d(0x10e)]({'target':this[_0x27820d(0x166)][_0x27820d(0x168)],'limiter':this[_0x27820d(0x152)](),'positions':Ho}));}[_0x23fc3b(0x159)](_0x53d94b){const _0x1a7b1f=_0x23fc3b;this[_0x1a7b1f(0x120)][_0x1a7b1f(0x12d)](),this[_0x1a7b1f(0x167)](),this[_0x1a7b1f(0x14d)](_0x1a7b1f(0x16e),_0x53d94b);}}export class SourcesBalloonButtonView extends _0x34c5d4{[_0x23fc3b(0x11b)];constructor(_0xda1d15){const _0x399c3f=_0x23fc3b;super(_0xda1d15),this[_0x399c3f(0x13b)]({'withText':!0x0,'role':_0x399c3f(0x14f)}),this[_0x399c3f(0x11b)]=this[_0x399c3f(0x14c)](),this[_0x399c3f(0x12e)]({'attributes':{'class':[Ro]}});}[_0x23fc3b(0x113)](){const _0x3e5f3e=_0x23fc3b;super[_0x3e5f3e(0x113)](),this[_0x3e5f3e(0x154)][_0x3e5f3e(0x12b)](this[_0x3e5f3e(0x11b)]);}[_0x23fc3b(0x14c)](){const _0x4b51e7=_0x23fc3b,_0x1b15c8=new _0xb0d752();return _0x1b15c8[_0x4b51e7(0x128)]=_0x2ce1a5,_0x1b15c8[_0x4b51e7(0x12e)]({'attributes':{'class':Ro+_0x4b51e7(0x184)}}),_0x1b15c8;}}
|
|
23
|
+
const _0x50aa3b=_0x44f6;function _0x1c38(){const _0x561109=['element','northArrowSouthWest','extendTemplate','_urlInputView','setContextItemLoading','enabled','urls','buttonView','_createResourcesBalloonView','bind','setAddContextOptions','current','removeContextItemChip','cancel','balloonView','showUrlBalloonPanel','showSourceResourcesBalloon','reorganizeChips','searchInputVisibleFrom','_addContextBalloonConfig','_setupTemplate','remove','execute','_createContextButton','ck-ai-chat-context-controls__add-context-button','_bindEventHandlers','20414664fthoDb','ck-ai-chat-context-controls__add-context-balloon-panel','defaultPositions','ck-ai-chat-context-controls__url-balloon-panel','pin','_conversationContextsChips','showAddContextBalloonPanel','addContextButtonView','submitUrl','_setupAllBalloonClickOutsideHandlers','done','removeContextItem','setContainerElement','addUrlToContext','createCollection','_currentContextsChips','isLoading','icon','2263935IosoTZ','_toggleAddContextBalloon','updateResourceState','menuitem','_addContextToCollection','clearCurrentContextItems','clear','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','addDocumentToContext','conversation','southArrowNorth','_handleUrlSubmit','_createBalloonButton','_setBalloonPanelContent','addFileToContext','_resourcesBalloonView','div','overflowChips','_createAddContextBalloonPanelView','northArrowSouth','document','setConversationContext','isVisible','_setAddContextButtonEnabled','arrowView','5229364ODEnCG','addContextItem','fire','ck-ai-chat-context-controls__show-more-balloon-panel','ck-ai-chat','locale','1368340eUwwAG','ck-ai-chat-controls-button','_setupAddContextBalloonClickOutsideHandler','AI_CHAT_CONTEXT_ADD_CONTEXT','set','add','closeSourceResourceBalloon','_getLimiterElement','ck-reset_all-excluded','_addContextBalloonPanelView','children','hide','focus','render','populateSourceResourceBalloon','_showSourceResourcesBalloon','tooltip','closest','southArrowNorthEast','2508762jeDmft','isOn','source','body','_setupUrlBalloonClickOutsideHandler','_createUrlBalloonPanelView','_createArrowView','_createAddContextButtonView','loadSourceResources','995094HNsNKL','ck-ai-chat-controls_context_show-more-button','files','type','hideAddContextBalloonPanel','10687313VhYQMB','_overflowManager','refreshBalloon','__arrow','hideUrlBalloonPanel','ck-ai-chat-context-controls','show','_handleAddContextButtonClick','_removeContextFromCollection','_urlBalloonPanelView','bodyCollection','label','isAnyResourceBalloonVisible','sources','content','ck-ai-chat-context-controls__pending-contexts','AI_CHAT_CONTEXT_URL_LABEL','southArrowNorthWest','destroy','find','clearConversationContextItems','_createBaseBalloonPanel','isEnabled','northArrowSouthEast','ck-ai-chat-context-chips-wrapper-balloon','addResourceToContext','setTemplate','_addUrlContent','isHidden','ck-ai-chat-context-controls__balloon-button-source','ck-ai-chat-context-controls__balloon-button','25bwkKQR','AI_CHAT_CONTEXT_FILE_LABEL','isReadOnly'];_0x1c38=function(){return _0x561109;};return _0x1c38();}(function(_0x44f480,_0x218049){const _0x463f1b=_0x44f6,_0x1afcb4=_0x44f480();while(!![]){try{const _0x530172=parseInt(_0x463f1b(0xfc))/0x1+-parseInt(_0x463f1b(0x10f))/0x2+-parseInt(_0x463f1b(0x16b))/0x3+parseInt(_0x463f1b(0xf6))/0x4+parseInt(_0x463f1b(0x13c))/0x5*(-parseInt(_0x463f1b(0x118))/0x6)+-parseInt(_0x463f1b(0x11d))/0x7+parseInt(_0x463f1b(0x159))/0x8;if(_0x530172===_0x218049)break;else _0x1afcb4['push'](_0x1afcb4['shift']());}catch(_0x4e59be){_0x1afcb4['push'](_0x1afcb4['shift']());}}}(_0x1c38,0xd2914));import{BalloonPanelView as _0x1c9cbe,ButtonView as _0x314fe6,clickOutsideHandler as _0x323c3c,FileDialogButtonView as _0x283fcb,IconView as _0x14ed84,View as _0x313c89}from'ckeditor5/src/ui.js';function _0x44f6(_0x188b7a,_0x455f63){const _0x1c3808=_0x1c38();return _0x44f6=function(_0x44f63a,_0x5e9914){_0x44f63a=_0x44f63a-0xf3;let _0x29ee83=_0x1c3808[_0x44f63a];return _0x29ee83;},_0x44f6(_0x188b7a,_0x455f63);}import{IconBrowseFiles as _0x44a71f,IconDocument as _0x29d693,IconDocumentOutline as _0x186b14,IconDropdownArrow as _0xe95710,IconLink as _0x3e19cf,IconPaperClip as _0x1caf9f}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x39520d}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x42ee9b}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x1b0994}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x1fb0bb}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x47334c}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x50aa3b(0x173),_0x50aa3b(0x179),_0x50aa3b(0x166),_0x50aa3b(0x136),_0x50aa3b(0x164),_0x50aa3b(0x117)];const ko=_0x50aa3b(0x122),Eo=_0x50aa3b(0x12c),vo=_0x50aa3b(0x15a),Vo=_0x50aa3b(0x157),Io=_0x50aa3b(0x15c),Po=_0x50aa3b(0x13b),Ro=_0x50aa3b(0x13a),Uo=_0x50aa3b(0xfd),Lo=_0x50aa3b(0x135),No=_0x50aa3b(0x119),Oo=_0x50aa3b(0xf9),Mo=_0x50aa3b(0xfa),Ho=[_0x1c9cbe[_0x50aa3b(0x15b)][_0x50aa3b(0x140)],_0x1c9cbe[_0x50aa3b(0x15b)][_0x50aa3b(0x17e)],_0x1c9cbe[_0x50aa3b(0x15b)][_0x50aa3b(0x134)],_0x1c9cbe[_0x50aa3b(0x15b)][_0x50aa3b(0x12e)],_0x1c9cbe[_0x50aa3b(0x15b)][_0x50aa3b(0x175)],_0x1c9cbe[_0x50aa3b(0x15b)][_0x50aa3b(0x10e)]];export class AIChatContextPanelView extends _0x313c89{[_0x50aa3b(0x160)];[_0x50aa3b(0x168)]=this[_0x50aa3b(0x167)]();[_0x50aa3b(0x15e)]=this[_0x50aa3b(0x167)]();[_0x50aa3b(0x11e)];[_0x50aa3b(0x105)];[_0x50aa3b(0x126)];[_0x50aa3b(0x142)];[_0x50aa3b(0x17a)];[_0x50aa3b(0x152)];[_0x50aa3b(0x127)];constructor(_0x1bd29c,_0x1c4dea){const _0x1e4f60=_0x50aa3b;super(_0x1bd29c),this[_0x1e4f60(0x127)]=_0x1c4dea[_0x1e4f60(0x127)],this[_0x1e4f60(0x168)]=this[_0x1e4f60(0x167)](),this[_0x1e4f60(0x15e)]=this[_0x1e4f60(0x167)](),this[_0x1e4f60(0x160)]=this[_0x1e4f60(0x116)](_0x1bd29c),this[_0x1e4f60(0x105)]=this[_0x1e4f60(0x17d)](_0x1bd29c),this[_0x1e4f60(0x126)]=this[_0x1e4f60(0x114)](_0x1bd29c),this[_0x1e4f60(0x17a)]=this[_0x1e4f60(0x147)](_0x1bd29c,_0x1c4dea);const _0x177362={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x1e4f60(0x11e)]=new _0x1b0994(_0x1bd29c,this[_0x1e4f60(0x168)],_0x177362,this[_0x1e4f60(0x127)],this),this[_0x1e4f60(0x152)]={'buttonView':this[_0x1e4f60(0x160)],'balloonView':this[_0x1e4f60(0x105)],'hideMethod':this[_0x1e4f60(0x11c)][_0x1e4f60(0x148)](this),'showMethod':this[_0x1e4f60(0x15f)][_0x1e4f60(0x148)](this)},this[_0x1e4f60(0x153)](),this[_0x1e4f60(0x158)]();}[_0x50aa3b(0x109)](){const _0x4fc124=_0x50aa3b;super[_0x4fc124(0x109)](),this[_0x4fc124(0x162)](),this[_0x4fc124(0x11e)][_0x4fc124(0x165)](this[_0x4fc124(0x13f)]),this[_0x4fc124(0x11e)][_0x4fc124(0x150)]();}[_0x50aa3b(0x12f)](){const _0x58fa80=_0x50aa3b;super[_0x58fa80(0x12f)](),this[_0x58fa80(0x11e)][_0x58fa80(0x12f)](),this[_0x58fa80(0x17a)][_0x58fa80(0x12f)]();}[_0x50aa3b(0xf7)](_0x4707d9,_0x749ced){const _0x152883=_0x50aa3b,_0x895c29=this[_0x152883(0x156)](_0x4707d9,_0x152883(0x14a),!0x0,_0x749ced);this[_0x152883(0x16f)](_0x895c29,this[_0x152883(0x168)]),this[_0x152883(0x11e)][_0x152883(0x150)]();}[_0x50aa3b(0x164)](_0x412bb9){const _0xb591e9=_0x50aa3b;this[_0xb591e9(0x125)](_0x412bb9,this[_0xb591e9(0x168)]),this[_0xb591e9(0x125)](_0x412bb9,this[_0xb591e9(0x11e)][_0xb591e9(0x17c)]),this[_0xb591e9(0x11e)][_0xb591e9(0x150)]();}[_0x50aa3b(0x143)](_0x15907b,_0x54dbca){const _0x252c2e=_0x50aa3b;let _0x158954=this[_0x252c2e(0x168)][_0x252c2e(0x130)](_0x979143=>_0x979143['id']===_0x15907b);_0x158954||(_0x158954=this[_0x252c2e(0x11e)][_0x252c2e(0x17c)][_0x252c2e(0x130)](_0x1e6be6=>_0x1e6be6['id']===_0x15907b)),_0x158954&&(_0x158954[_0x252c2e(0x169)]=_0x54dbca);}[_0x50aa3b(0x180)](_0x5bf8d8){const _0x5f3a06=_0x50aa3b;this[_0x5f3a06(0x15e)][_0x5f3a06(0x171)]();for(const _0x3fcfc4 of _0x5bf8d8){const _0x5f0cc1=this[_0x5f3a06(0x156)](_0x3fcfc4,_0x5f3a06(0x174),!0x1,!0x1);this[_0x5f3a06(0x16f)](_0x5f0cc1,this[_0x5f3a06(0x15e)]);}}[_0x50aa3b(0x170)](){const _0x18d821=_0x50aa3b;this[_0x18d821(0x168)][_0x18d821(0x171)](),this[_0x18d821(0x11e)][_0x18d821(0x171)]();}[_0x50aa3b(0x131)](){const _0x1f6741=_0x50aa3b;this[_0x1f6741(0x15e)][_0x1f6741(0x171)]();}[_0x50aa3b(0x16d)](_0x1a136b,_0x1337b0,_0xe51e09){const _0x3bd277=_0x50aa3b;this[_0x3bd277(0x17a)][_0x3bd277(0x16d)](_0x1a136b,_0x1337b0,_0xe51e09);}[_0x50aa3b(0x11c)](){const _0x77ddd9=_0x50aa3b;this[_0x77ddd9(0x16c)](!0x1);}[_0x50aa3b(0x15f)](){const _0x272810=_0x50aa3b;this[_0x272810(0x16c)](!0x0);}[_0x50aa3b(0x121)](){const _0x2d2052=_0x50aa3b;this[_0x2d2052(0x126)][_0x2d2052(0x107)](),this[_0x2d2052(0x160)][_0x2d2052(0x110)]=!0x1,this[_0x2d2052(0x142)]&&this[_0x2d2052(0x142)][_0x2d2052(0x171)]();}[_0x50aa3b(0x14e)](){const _0xd9e229=_0x50aa3b;this[_0xd9e229(0x126)][_0xd9e229(0x123)](),this[_0xd9e229(0x160)][_0xd9e229(0x110)]=!0x0;}[_0x50aa3b(0x10b)](_0xb3c101){const _0x54c867=_0x50aa3b;this[_0x54c867(0x17a)][_0x54c867(0x14f)](_0xb3c101),this[_0x54c867(0x160)][_0x54c867(0x110)]=!0x0;}[_0x50aa3b(0x10a)](_0x1db187,_0x412b41,_0x4f5262,_0x4b3a57){const _0x5f0fe2=_0x50aa3b;this[_0x5f0fe2(0x17a)][_0x5f0fe2(0x10a)](_0x1db187,_0x4f5262,_0x4b3a57);}[_0x50aa3b(0x102)](_0x349546){const _0xcc158e=_0x50aa3b;this[_0xcc158e(0x17a)][_0xcc158e(0x102)](_0x349546),this[_0xcc158e(0x160)][_0xcc158e(0x110)]=!0x1;}[_0x50aa3b(0x149)](_0x34cc00){const _0x34dcdb=_0x50aa3b;this[_0x34dcdb(0x178)](this[_0x34dcdb(0x105)],this[_0x34dcdb(0xfb)],_0x34cc00),this[_0x34dcdb(0xf4)](_0x34cc00);}[_0x50aa3b(0xf4)](_0x480a1e){const _0xceafa9=_0x50aa3b,_0x5963be=!_0x480a1e[_0xceafa9(0x17f)][_0xceafa9(0x139)]&&_0x480a1e[_0xceafa9(0x17f)][_0xceafa9(0x144)],_0x980089=_0x480a1e[_0xceafa9(0x145)][_0xceafa9(0x144)],_0x25d585=_0x480a1e[_0xceafa9(0x11a)][_0xceafa9(0x144)];this[_0xceafa9(0x160)][_0xceafa9(0x133)]=_0x5963be||_0x980089||_0x25d585;}[_0x50aa3b(0x153)](){const _0x2aea55=_0x50aa3b;this[_0x2aea55(0x137)]({'tag':_0x2aea55(0x17b),'attributes':{'class':[ko,_0x2aea55(0x104)]},'children':[{'tag':_0x2aea55(0x17b),'attributes':{'class':Eo},'children':this[_0x2aea55(0x168)]}]});}[_0x50aa3b(0x158)](){const _0x1c1cb1=_0x50aa3b;this[_0x1c1cb1(0x160)]['on'](_0x1c1cb1(0x155),()=>{const _0x3e0798=_0x1c1cb1;this[_0x3e0798(0x124)]();});}[_0x50aa3b(0x116)](_0x27e5a1){const _0xa57a76=_0x50aa3b,_0x5922c1=new _0x314fe6(_0x27e5a1);return _0x5922c1[_0xa57a76(0x100)]({'label':_0x1fb0bb(_0x27e5a1,_0xa57a76(0xff)),'class':Uo+'\x20'+Vo,'icon':_0x1caf9f,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x5922c1;}[_0x50aa3b(0x17d)](_0xb8a6ba){const _0x48c061=_0x50aa3b;return this[_0x48c061(0x132)](_0xb8a6ba,vo);}[_0x50aa3b(0x114)](_0x345afa){const _0x549982=_0x50aa3b,_0x5f15d1=this[_0x549982(0x132)](_0x345afa,Io);return this[_0x549982(0x138)](_0x5f15d1,_0x345afa),_0x5f15d1;}[_0x50aa3b(0x147)](_0x9fa319,_0x1aaaad){const _0x13c721=_0x50aa3b,_0xcd2eb2={'searchInputVisibleFrom':_0x1aaaad[_0x13c721(0x151)],'onBackToContext':()=>{const _0x6c92a4=_0x13c721;this[_0x6c92a4(0x15f)](),this[_0x6c92a4(0x105)][_0x6c92a4(0x15d)]({'target':this[_0x6c92a4(0x160)][_0x6c92a4(0x13f)],'limiter':this[_0x6c92a4(0x103)](),'positions':Ho});},'onResourceSelected':(_0x463a34,_0x583958)=>{const _0xa05ad2=_0x13c721;this[_0xa05ad2(0xf8)](_0xa05ad2(0x136),{'source':_0x463a34,'resource':_0x583958});},'onLoadSourceResources':_0x4a61a8=>{const _0x4ed3fc=_0x13c721;this[_0x4ed3fc(0xf8)](_0x4ed3fc(0x117),_0x4a61a8);},'onBalloonClosed':()=>{const _0x3ab139=_0x13c721;this[_0x3ab139(0x160)][_0x3ab139(0x110)]=!0x1;},'getLimiterElement':()=>this[_0x13c721(0x103)](),'getTargetElement':()=>this[_0x13c721(0x160)][_0x13c721(0x13f)]};return new _0x47334c(_0x9fa319,_0x1aaaad[_0x13c721(0x127)],_0xcd2eb2);}[_0x50aa3b(0x103)](){const _0x113cc6=_0x50aa3b;return this[_0x113cc6(0x13f)]?.[_0x113cc6(0x10d)]('.'+Mo)||document[_0x113cc6(0x112)];}[_0x50aa3b(0x132)](_0x366f40,_0x33eae4){const _0x4517c6=_0x50aa3b,_0x4ac0b6=new _0x1c9cbe(_0x366f40);return _0x4ac0b6[_0x4517c6(0x141)]({'attributes':{'class':_0x33eae4}}),this[_0x4517c6(0x127)][_0x4517c6(0x101)](_0x4ac0b6),_0x4ac0b6;}[_0x50aa3b(0x178)](_0x5d1473,_0xd71d79,_0x4ff088){const _0x183ff0=_0x50aa3b;if(_0x5d1473[_0x183ff0(0x12b)][_0x183ff0(0x171)](),!_0x4ff088[_0x183ff0(0x17f)][_0x183ff0(0x139)]&&_0x4ff088[_0x183ff0(0x17f)][_0x183ff0(0x144)]){const _0x13f26a=this[_0x183ff0(0x177)](_0xd71d79,{'label':_0x1fb0bb(_0xd71d79,_0x183ff0(0x172)),'icon':_0x29d693});_0x13f26a['on'](_0x183ff0(0x155),()=>{const _0x3f2be5=_0x183ff0;this[_0x3f2be5(0xf8)](_0x3f2be5(0x173)),this[_0x3f2be5(0x11c)]();}),_0x5d1473[_0x183ff0(0x12b)][_0x183ff0(0x101)](_0x13f26a);}if(_0x4ff088[_0x183ff0(0x145)][_0x183ff0(0x144)]){const _0x561c0b=this[_0x183ff0(0x177)](_0xd71d79,{'label':_0x1fb0bb(_0xd71d79,_0x183ff0(0x12d)),'icon':_0x3e19cf});_0x561c0b['on'](_0x183ff0(0x155),()=>{const _0x5a5317=_0x183ff0;this[_0x5a5317(0x11c)](),this[_0x5a5317(0x14e)](),this[_0x5a5317(0x126)][_0x5a5317(0x15d)]({'target':this[_0x5a5317(0x160)][_0x5a5317(0x13f)],'limiter':this[_0x5a5317(0x103)](),'positions':Ho}),this[_0x5a5317(0x142)][_0x5a5317(0x108)]();}),_0x5d1473[_0x183ff0(0x12b)][_0x183ff0(0x101)](_0x561c0b);}if(_0x4ff088[_0x183ff0(0x11a)][_0x183ff0(0x144)]){const _0x221f9a=new _0x283fcb(_0xd71d79);_0x221f9a[_0x183ff0(0x100)]({'label':_0x1fb0bb(_0xd71d79,_0x183ff0(0x13d)),'icon':_0x44a71f,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x221f9a['on'](_0x183ff0(0x163),(_0x46c28b,_0x57dc48)=>{const _0x5ed8d8=_0x183ff0;this[_0x5ed8d8(0xf8)](_0x5ed8d8(0x179),_0x57dc48),this[_0x5ed8d8(0x11c)]();}),_0x221f9a[_0x183ff0(0x10c)]=!0x0,_0x5d1473[_0x183ff0(0x12b)][_0x183ff0(0x101)](_0x221f9a);}for(const _0x110180 of _0x4ff088[_0x183ff0(0x12a)]){const _0x5da222=this[_0x183ff0(0x177)](_0xd71d79,{'label':_0x110180[_0x183ff0(0x128)],'icon':_0x110180[_0x183ff0(0x16a)]||_0x186b14,'type':_0x183ff0(0x111)});_0x5d1473[_0x183ff0(0x12b)][_0x183ff0(0x101)](_0x5da222),_0x5da222['on'](_0x183ff0(0x155),()=>{const _0x494d49=_0x183ff0;this[_0x494d49(0x11c)](),this[_0x494d49(0x10b)](_0x110180);});}}[_0x50aa3b(0x138)](_0x44e142,_0x510dc0){const _0x339e56=_0x50aa3b;this[_0x339e56(0x142)]=new _0x42ee9b(_0x510dc0),this[_0x339e56(0x142)]['on'](_0x339e56(0x161),(_0x5f48e6,_0x2611ac)=>{const _0x5bbee9=_0x339e56;this[_0x5bbee9(0x176)](_0x2611ac);}),this[_0x339e56(0x142)]['on'](_0x339e56(0x14c),()=>{const _0x2c6f52=_0x339e56;this[_0x2c6f52(0x121)](),this[_0x2c6f52(0x15f)](),this[_0x2c6f52(0x105)][_0x2c6f52(0x15d)]({'target':this[_0x2c6f52(0x160)][_0x2c6f52(0x13f)],'limiter':this[_0x2c6f52(0x103)](),'positions':Ho});}),this[_0x339e56(0x142)]['on'](_0x339e56(0x11f),()=>{const _0x2e75e9=_0x339e56;this[_0x2e75e9(0x126)][_0x2e75e9(0xf3)]&&this[_0x2e75e9(0x126)][_0x2e75e9(0x15d)]({'target':this[_0x2e75e9(0x160)][_0x2e75e9(0x13f)],'limiter':this[_0x2e75e9(0x103)](),'positions':Ho});}),_0x44e142[_0x339e56(0x12b)][_0x339e56(0x101)](this[_0x339e56(0x142)]);}[_0x50aa3b(0x177)](_0x3603fc,_0x5684e6){const _0x1b128d=_0x50aa3b,_0x312bd6=_0x1b128d(0x111)===_0x5684e6[_0x1b128d(0x11b)]?new SourcesBalloonButtonView(_0x3603fc):new _0x314fe6(_0x3603fc);return _0x312bd6[_0x1b128d(0x100)]({'label':_0x5684e6[_0x1b128d(0x128)],'icon':_0x5684e6[_0x1b128d(0x16a)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x312bd6;}[_0x50aa3b(0x162)](){const _0x28dd63=_0x50aa3b;this[_0x28dd63(0xfe)](),this[_0x28dd63(0x113)]();}[_0x50aa3b(0x113)](){const _0x2b866c=_0x50aa3b;_0x323c3c({'emitter':this[_0x2b866c(0x126)],'contextElements':[this[_0x2b866c(0x126)][_0x2b866c(0x13f)]],'callback':()=>{const _0x4d9d84=_0x2b866c;this[_0x4d9d84(0x121)]();},'activator':()=>this[_0x2b866c(0x126)][_0x2b866c(0xf3)]});}[_0x50aa3b(0x16c)](_0x402cc1){const _0x2830b8=_0x50aa3b,_0x5ef567=this[_0x2830b8(0x152)];_0x5ef567[_0x2830b8(0x146)][_0x2830b8(0x110)]=_0x402cc1,_0x402cc1?_0x5ef567[_0x2830b8(0x14d)][_0x2830b8(0x123)]():_0x5ef567[_0x2830b8(0x14d)][_0x2830b8(0x107)]();}[_0x50aa3b(0xfe)](){const _0xd8b80c=_0x50aa3b,{balloonView:_0x292585,buttonView:_0x54397a,hideMethod:_0x5e37bc}=this[_0xd8b80c(0x152)];_0x323c3c({'emitter':_0x292585,'contextElements':[_0x292585[_0xd8b80c(0x13f)],_0x54397a[_0xd8b80c(0x13f)]],'callback':()=>{_0x5e37bc();},'activator':()=>_0x54397a[_0xd8b80c(0x110)]&&!this[_0xd8b80c(0x126)][_0xd8b80c(0xf3)]&&!this[_0xd8b80c(0x17a)][_0xd8b80c(0x129)]()});}[_0x50aa3b(0x156)](_0x168339,_0x4b41a6,_0x49ef6a=!0x1,_0x2218ca=!0x1){const _0x14e5c5=_0x50aa3b,_0x3a2b25=_0x14e5c5(0x174)===_0x4b41a6||!0x0===_0x168339[_0x14e5c5(0x13e)],_0x45f2cd=new _0x39520d(this[_0x14e5c5(0xfb)],_0x168339,_0x3a2b25,_0x49ef6a,_0x2218ca);return _0x3a2b25||_0x45f2cd['on'](_0x14e5c5(0x14b),()=>{const _0x341c2d=_0x14e5c5;this[_0x341c2d(0xf8)](_0x341c2d(0x164),_0x45f2cd['id']);}),_0x45f2cd;}[_0x50aa3b(0x16f)](_0x25bab5,_0x324e8f){const _0xf2af35=_0x50aa3b;_0x324e8f[_0xf2af35(0x101)](_0x25bab5,0x0);}[_0x50aa3b(0x125)](_0x4e9c9f,_0x58c3dc){const _0x466616=_0x50aa3b,_0x260aa4=_0x58c3dc[_0x466616(0x130)](_0x41c5e7=>_0x41c5e7['id']===_0x4e9c9f);_0x260aa4&&_0x58c3dc[_0x466616(0x154)](_0x260aa4);}[_0x50aa3b(0x124)](){const _0x39a1d5=_0x50aa3b;this[_0x39a1d5(0x160)][_0x39a1d5(0x110)]?this[_0x39a1d5(0x11c)]():(this[_0x39a1d5(0x15f)](),this[_0x39a1d5(0x105)][_0x39a1d5(0x15d)]({'target':this[_0x39a1d5(0x160)][_0x39a1d5(0x13f)],'limiter':this[_0x39a1d5(0x103)](),'positions':Ho}));}[_0x50aa3b(0x176)](_0x5f57d5){const _0x1e0e46=_0x50aa3b;this[_0x1e0e46(0x142)][_0x1e0e46(0x171)](),this[_0x1e0e46(0x121)](),this[_0x1e0e46(0xf8)](_0x1e0e46(0x166),_0x5f57d5);}}export class SourcesBalloonButtonView extends _0x314fe6{[_0x50aa3b(0xf5)];constructor(_0x5d2071){const _0x15fe35=_0x50aa3b;super(_0x5d2071),this[_0x15fe35(0x100)]({'withText':!0x0,'role':_0x15fe35(0x16e)}),this[_0x15fe35(0xf5)]=this[_0x15fe35(0x115)](),this[_0x15fe35(0x141)]({'attributes':{'class':[Ro]}});}[_0x50aa3b(0x109)](){const _0x1b83e0=_0x50aa3b;super[_0x1b83e0(0x109)](),this[_0x1b83e0(0x106)][_0x1b83e0(0x101)](this[_0x1b83e0(0xf5)]);}[_0x50aa3b(0x115)](){const _0x5679e8=_0x50aa3b,_0x44115e=new _0x14ed84();return _0x44115e[_0x5679e8(0x12b)]=_0xe95710,_0x44115e[_0x5679e8(0x141)]({'attributes':{'class':Ro+_0x5679e8(0x120)}}),_0x44115e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x253e5a=_0x3eb2;(function(_0xfc5c27,_0x3f972c){const _0x17896d=_0x3eb2,_0x5090e7=_0xfc5c27();while(!![]){try{const _0x5eafb5=-parseInt(_0x17896d(0x1e7))/0x1*(parseInt(_0x17896d(0x1f1))/0x2)+parseInt(_0x17896d(0x1dc))/0x3*(parseInt(_0x17896d(0x1e0))/0x4)+-parseInt(_0x17896d(0x1d7))/0x5*(parseInt(_0x17896d(0x1ea))/0x6)+-parseInt(_0x17896d(0x1d9))/0x7*(-parseInt(_0x17896d(0x1ed))/0x8)+parseInt(_0x17896d(0x1d8))/0x9*(-parseInt(_0x17896d(0x1f5))/0xa)+-parseInt(_0x17896d(0x1ec))/0xb+parseInt(_0x17896d(0x1e5))/0xc*(parseInt(_0x17896d(0x1da))/0xd);if(_0x5eafb5===_0x3f972c)break;else _0x5090e7['push'](_0x5090e7['shift']());}catch(_0x386509){_0x5090e7['push'](_0x5090e7['shift']());}}}(_0x5a73,0x5bf33));import{ButtonView as _0x474b9e,View as _0x136fb6}from'ckeditor5/src/ui.js';import{IconStop as _0x1b7a9b}from'ckeditor5/src/icons.js';function _0x3eb2(_0x4a6a6f,_0x27969d){const _0x5a73e9=_0x5a73();return _0x3eb2=function(_0x3eb2b9,_0x204d37){_0x3eb2b9=_0x3eb2b9-0x1d6;let _0x1aba08=_0x5a73e9[_0x3eb2b9];return _0x1aba08;},_0x3eb2(_0x4a6a6f,_0x27969d);}import{getTranslation as _0x4ddd59}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x136fb6{[_0x253e5a(0x1e1)];[_0x253e5a(0x1e9)];constructor(_0x13b53c){const _0x18098d=_0x253e5a;super(_0x13b53c),this[_0x18098d(0x1e1)]=this[_0x18098d(0x1e8)](),this[_0x18098d(0x1e9)]=this[_0x18098d(0x1d6)](),this[_0x18098d(0x1e3)]({'tag':_0x18098d(0x1eb),'attributes':{'class':['ck',_0x18098d(0x1e2),_0x18098d(0x1f2)]},'children':[this[_0x18098d(0x1e9)],this[_0x18098d(0x1e1)]]});}[_0x253e5a(0x1e8)](){const _0x3b61d6=_0x253e5a,_0x428976=new _0x474b9e(this[_0x3b61d6(0x1de)]);return _0x428976[_0x3b61d6(0x1dd)]({'label':_0x4ddd59(this[_0x3b61d6(0x1de)],_0x3b61d6(0x1df)),'withText':!0x0,'class':_0x3b61d6(0x1ee),'icon':_0x1b7a9b}),_0x428976['on'](_0x3b61d6(0x1f0),()=>{const _0xafe744=_0x3b61d6;this[_0xafe744(0x1ef)](_0xafe744(0x1e4));}),_0x428976;}[_0x253e5a(0x1d6)](){const _0x4a9c84=_0x253e5a,_0x242c16=new _0x136fb6(this[_0x4a9c84(0x1de)]);return _0x242c16[_0x4a9c84(0x1e3)]({'tag':_0x4a9c84(0x1eb),'attributes':{'class':[_0x4a9c84(0x1f4)]},'children':[{'tag':_0x4a9c84(0x1eb),'attributes':{'class':[_0x4a9c84(0x1f3)]},'children':[{'tag':_0x4a9c84(0x1eb),'attributes':{'class':[_0x4a9c84(0x1e6)]}},{'tag':_0x4a9c84(0x1eb),'attributes':{'class':[_0x4a9c84(0x1e6)]}},{'tag':_0x4a9c84(0x1eb),'attributes':{'class':[_0x4a9c84(0x1e6)]}}]},{'text':_0x4ddd59(this[_0x4a9c84(0x1de)],_0x4a9c84(0x1db))}]}),_0x242c16;}}function _0x5a73(){const _0x4e70ba=['14601574EwyVHi','AI_CHAT_IS_WRITING','3ywpXxa','set','locale','AI_CHAT_STOP_GENERATING','1722976rUahew','_cancelButtonView','ck-ai-chat-controls-loader-wrapper','setTemplate','abortPromptStream','12oviFMD','ck-ai-chat-controls-loader-icon-dot','5329ghUUDN','_createCancelButtonView','_loaderView','118824GTPZze','div','4513872VWMeyA','243888NXlInZ','ck-ai-button-secondary\x20ck-ai-button-stop-generating','fire','execute','164peQsgq','ck-reset_all','ck-ai-chat-controls-loader-icon','ck-ai-chat-controls-loader','190hQeugV','_createLoaderView','160hRdTfJ','116055qRcpor','126bdlhHV'];_0x5a73=function(){return _0x4e70ba;};return _0x5a73();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x53184d=_0x51b0;(function(_0x4576de,_0x3dc9ed){const _0x5bc16d=_0x51b0,_0x578709=_0x4576de();while(!![]){try{const _0x6291d8=-parseInt(_0x5bc16d(0xfd))/0x1*(-parseInt(_0x5bc16d(0x11d))/0x2)+parseInt(_0x5bc16d(0x157))/0x3+parseInt(_0x5bc16d(0x154))/0x4+-parseInt(_0x5bc16d(0x132))/0x5*(parseInt(_0x5bc16d(0x13c))/0x6)+-parseInt(_0x5bc16d(0x116))/0x7+-parseInt(_0x5bc16d(0x126))/0x8*(-parseInt(_0x5bc16d(0x11a))/0x9)+parseInt(_0x5bc16d(0x15f))/0xa*(-parseInt(_0x5bc16d(0x15e))/0xb);if(_0x6291d8===_0x3dc9ed)break;else _0x578709['push'](_0x578709['shift']());}catch(_0x47103a){_0x578709['push'](_0x578709['shift']());}}}(_0x18d4,0xadc6f));function _0x51b0(_0x487252,_0x3cd8d8){const _0x18d4c4=_0x18d4();return _0x51b0=function(_0x51b0cf,_0xbc6b9a){_0x51b0cf=_0x51b0cf-0xfd;let _0x11ff07=_0x18d4c4[_0x51b0cf];return _0x11ff07;},_0x51b0(_0x487252,_0x3cd8d8);}import{Collection as _0x55bae2}from'ckeditor5/src/utils.js';import{IconAI as _0x4b8959,IconBulb as _0x35b36c,IconWeb as _0x1ced6a}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x36508b,ButtonLabelView as _0x275c46,ButtonView as _0x1f5bf6,createDropdown as _0x518fc9,IconView as _0x235d38,UIModel as _0x32f870,View as _0x34d75e}from'ckeditor5/src/ui.js';import{getTranslation as _0x5e0d75}from'../../../aicore/utils/common-translations.js';const yo=_0x53184d(0x11b),Uo=_0x53184d(0x131),Go=_0x53184d(0x133),jo=_0x53184d(0x159),Yo=_0x53184d(0x149),qo=_0x53184d(0x15d),zo=_0x53184d(0x102),Fo='n';export class AIChatPromptCapabilitiesView extends _0x34d75e{[_0x53184d(0x106)];[_0x53184d(0x10d)];[_0x53184d(0x14e)];[_0x53184d(0x134)];[_0x53184d(0x142)];[_0x53184d(0x146)];constructor(_0x401d97){const _0x48867e=_0x53184d;super(_0x401d97),this[_0x48867e(0x122)](_0x48867e(0x108),!0x1),this[_0x48867e(0x122)](_0x48867e(0x145),!0x1),this[_0x48867e(0x122)](_0x48867e(0x119),!0x0),this[_0x48867e(0x122)](_0x48867e(0x117),!0x0),this[_0x48867e(0x122)](_0x48867e(0x144),null),this[_0x48867e(0x122)](_0x48867e(0x10a),null),this[_0x48867e(0x134)]=this[_0x48867e(0x105)](),this[_0x48867e(0x146)]=this[_0x48867e(0x127)](),this[_0x48867e(0x106)]=this[_0x48867e(0x110)](),this[_0x48867e(0x10d)]=this[_0x48867e(0x137)](),this[_0x48867e(0x14e)]=this[_0x48867e(0x11f)](),this[_0x48867e(0x134)][_0x48867e(0x13f)][_0x48867e(0x10f)](_0x48867e(0x13e))['to'](this,_0x48867e(0x119),_0x1576dd=>_0x1576dd),this[_0x48867e(0x134)][_0x48867e(0x13f)][_0x48867e(0x10f)](_0x48867e(0x138))['to'](this,_0x48867e(0x117),_0x4b2b8b=>_0x4b2b8b?this[_0x48867e(0x134)][_0x48867e(0x13f)][_0x48867e(0x14f)]:_0x5e0d75(this[_0x48867e(0x120)],_0x48867e(0x139))),this[_0x48867e(0x134)][_0x48867e(0x10f)](_0x48867e(0x12f))['to'](this,_0x48867e(0x117),_0x11e02e=>_0x11e02e),this[_0x48867e(0x106)][_0x48867e(0x10f)](_0x48867e(0x124))['to'](this,_0x48867e(0x108),_0x7486a4=>_0x7486a4),this[_0x48867e(0x106)][_0x48867e(0x10f)](_0x48867e(0x101))['to'](this,_0x48867e(0x119),_0x3259b5=>!_0x3259b5),this[_0x48867e(0x106)][_0x48867e(0x10f)](_0x48867e(0x138))['to'](this,_0x48867e(0x108),_0x284769=>_0x5e0d75(this[_0x48867e(0x120)],_0x284769?_0x48867e(0x155):_0x48867e(0x12e))),this[_0x48867e(0x10d)][_0x48867e(0x10f)](_0x48867e(0x124))['to'](this,_0x48867e(0x145),_0x2f188c=>_0x2f188c),this[_0x48867e(0x10d)][_0x48867e(0x10f)](_0x48867e(0x101))['to'](this,_0x48867e(0x119),_0x18ed98=>!_0x18ed98),this[_0x48867e(0x10d)][_0x48867e(0x10f)](_0x48867e(0x138))['to'](this,_0x48867e(0x145),_0x3f9125=>_0x5e0d75(this[_0x48867e(0x120)],_0x3f9125?_0x48867e(0x12d):_0x48867e(0x13a))),this[_0x48867e(0x141)]({'tag':_0x48867e(0x12a),'attributes':{'class':[yo]},'children':[this[_0x48867e(0x134)],this[_0x48867e(0x146)],this[_0x48867e(0x106)],this[_0x48867e(0x10d)],this[_0x48867e(0x14e)]]}),this[_0x48867e(0x142)]=new _0x55bae2(),_0x36508b(this[_0x48867e(0x134)],this[_0x48867e(0x142)]);}[_0x53184d(0x114)](_0x539083,_0x3af1b4){const _0x3000b0=_0x53184d;if(this[_0x3000b0(0x122)](_0x3000b0(0x119),!(_0x3af1b4&&_0x539083[_0x3000b0(0x107)]<=0x1)),this[_0x3000b0(0x142)][_0x3000b0(0x15c)](),_0x539083?.[_0x3000b0(0x107)])for(const _0x5ef192 of _0x539083){const _0x201ee9=new _0x32f870({'label':_0x5ef192[_0x3000b0(0x112)],'withText':!0x0,'role':_0x3000b0(0x130),'id':_0x5ef192['id'],'model':_0x5ef192});_0x201ee9[_0x3000b0(0x10f)](_0x3000b0(0x124))['to'](this,_0x3000b0(0x144),_0x49bb2d=>_0x49bb2d===_0x5ef192['id']),this[_0x3000b0(0x142)][_0x3000b0(0x152)]({'type':_0x3000b0(0x14d),'model':_0x201ee9,'labelView':new Us(this[_0x3000b0(0x120)],_0x5ef192)});}}[_0x53184d(0x135)](_0x395d7f){const _0x3f50b3=_0x53184d;this[_0x3f50b3(0x122)](_0x3f50b3(0x108),_0x395d7f);}[_0x53184d(0x13d)](_0x279921){const _0x1c24e0=_0x53184d;this[_0x1c24e0(0x122)](_0x1c24e0(0x145),_0x279921);}[_0x53184d(0x118)](_0x4cf860){const _0x47bf8b=_0x53184d;if(!_0x4cf860)return;this[_0x47bf8b(0x144)]=_0x4cf860['id'],this[_0x47bf8b(0x10a)]=_0x4cf860[_0x47bf8b(0x112)]||_0x4cf860['id'],this[_0x47bf8b(0x134)][_0x47bf8b(0x13f)][_0x47bf8b(0x122)](_0x47bf8b(0x14f),_0x4cf860[_0x47bf8b(0x112)]),this[_0x47bf8b(0x134)][_0x47bf8b(0x13f)][_0x47bf8b(0x122)](_0x47bf8b(0x138),_0x4cf860[_0x47bf8b(0x112)]);const _0x48ebf3=_0x4cf860[_0x47bf8b(0x136)][_0x47bf8b(0x147)]?.[_0x47bf8b(0x151)]??!0x1;this[_0x47bf8b(0x122)](_0x47bf8b(0x108),!0x1),this[_0x47bf8b(0x106)][_0x47bf8b(0x122)](_0x47bf8b(0x124),!0x1),this[_0x47bf8b(0x106)][_0x47bf8b(0x122)](_0x47bf8b(0x12f),_0x48ebf3),this[_0x47bf8b(0x106)][_0x47bf8b(0x122)](_0x47bf8b(0x13e),_0x48ebf3);const _0x35c5e8=_0x4cf860[_0x47bf8b(0x136)][_0x47bf8b(0x143)]?.[_0x47bf8b(0x151)]??!0x1;this[_0x47bf8b(0x122)](_0x47bf8b(0x145),!0x1),this[_0x47bf8b(0x10d)][_0x47bf8b(0x122)](_0x47bf8b(0x124),!0x1),this[_0x47bf8b(0x10d)][_0x47bf8b(0x122)](_0x47bf8b(0x12f),_0x35c5e8),this[_0x47bf8b(0x10d)][_0x47bf8b(0x122)](_0x47bf8b(0x13e),_0x35c5e8);}[_0x53184d(0x148)](){const _0x4cd84b=_0x53184d;this[_0x4cd84b(0x122)](_0x4cd84b(0x117),!0x0),this[_0x4cd84b(0x122)](_0x4cd84b(0x119),!0x0);}[_0x53184d(0x150)](_0x107ea4){const _0xb0b3dc=_0x53184d;this[_0xb0b3dc(0x122)](_0xb0b3dc(0x117),!0x1),_0x107ea4&&this[_0xb0b3dc(0x122)](_0xb0b3dc(0x119),!0x1);}[_0x53184d(0x110)](){const _0x15461d=_0x53184d,_0x465603=new _0x1f5bf6();return _0x465603[_0x15461d(0x122)]({'label':_0x5e0d75(this[_0x15461d(0x120)],_0x15461d(0x14a)),'icon':_0x1ced6a,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x465603['on'](_0x15461d(0x103),()=>{const _0x59352a=_0x15461d;this[_0x59352a(0x128)](_0x59352a(0x129));}),_0x465603;}[_0x53184d(0x137)](){const _0x40540d=_0x53184d,_0x169ebb=new _0x1f5bf6();return _0x169ebb[_0x40540d(0x122)]({'label':_0x5e0d75(this[_0x40540d(0x120)],_0x40540d(0x121)),'icon':_0x35b36c,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x169ebb['on'](_0x40540d(0x103),()=>{const _0x3df381=_0x40540d;this[_0x3df381(0x128)](_0x3df381(0x123));}),_0x169ebb;}[_0x53184d(0x11f)](){const _0x222bda=_0x53184d,_0x4bf74e=new _0x1f5bf6();return _0x4bf74e[_0x222bda(0x122)]({'label':_0x5e0d75(this[_0x222bda(0x120)],_0x222bda(0x10b)),'icon':_0x4b8959,'withText':!0x0,'class':Uo,'isToggleable':!0x0,'tooltip':_0x5e0d75(this[_0x222bda(0x120)],_0x222bda(0x10b)),'tooltipPosition':Fo}),_0x4bf74e[_0x222bda(0xfe)]({'attributes':{'class':[Go]}}),_0x4bf74e['on'](_0x222bda(0x103),()=>{const _0x4c3c71=_0x222bda;console[_0x4c3c71(0x113)](_0x4c3c71(0x12c)),alert(_0x4c3c71(0x12c));}),_0x4bf74e;}[_0x53184d(0x105)](){const _0x268f07=_0x53184d,_0x115ddf=_0x518fc9(this[_0x268f07(0x120)]);return _0x115ddf[_0x268f07(0x122)]({'panelPosition':'ne','class':[jo]}),_0x115ddf[_0x268f07(0x13f)][_0x268f07(0x122)]({'label':_0x5e0d75(this[_0x268f07(0x120)],_0x268f07(0x104)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Fo}),this[_0x268f07(0x12b)](_0x115ddf,_0x268f07(0x103),_0x301590=>{const _0x583de2=_0x268f07;this[_0x583de2(0x128)](_0x583de2(0x125),_0x301590[_0x583de2(0x14b)][_0x583de2(0x160)]);}),_0x115ddf;}[_0x53184d(0x127)](){const _0x26e5d5=_0x53184d,_0x3ed2fa=new Jo(this[_0x26e5d5(0x120)]);return _0x3ed2fa[_0x26e5d5(0x10f)](_0x26e5d5(0x153))['to'](this,_0x26e5d5(0x10a),_0x564a63=>_0x564a63??''),_0x3ed2fa[_0x26e5d5(0x10f)](_0x26e5d5(0x13e))['to'](this,_0x26e5d5(0x119),this,_0x26e5d5(0x10a),(_0x5d1d97,_0xed983c)=>!_0x5d1d97&&!_0xed983c?.[_0x26e5d5(0x11c)]()[_0x26e5d5(0x111)](_0x26e5d5(0x10c))),_0x3ed2fa;}}class Us extends _0x275c46{constructor(_0x5a68ea,_0xabd9c5){const _0x295e83=_0x53184d;super();const _0x4b0917=this[_0x295e83(0x14c)],_0x409509=this[_0x295e83(0x13b)]();this[_0x295e83(0x141)]({'tag':_0x295e83(0x12a),'attributes':{'class':['ck',_0x295e83(0x15a)],'style':_0x4b0917['to'](_0x295e83(0x15b)),'id':_0x4b0917['to']('id')},'children':[{'tag':_0x295e83(0x12a),'attributes':{'class':[Yo]},'children':[{'text':_0x4b0917['to'](_0x295e83(0x153))}]},{'tag':_0x295e83(0x12a),'attributes':{'class':[qo]},'children':[{'tag':_0x295e83(0x109),'children':[{'text':_0xabd9c5[_0x295e83(0x140)]}]}]},{'tag':_0x295e83(0x12a),'attributes':{'class':[zo]},'children':_0x409509}]}),_0x409509[_0x295e83(0x11e)](this[_0x295e83(0xff)](_0x5a68ea,_0x1ced6a,_0x295e83(0x14a),_0xabd9c5[_0x295e83(0x136)][_0x295e83(0x147)]?.[_0x295e83(0x151)]??!0x1)),_0x409509[_0x295e83(0x11e)](this[_0x295e83(0xff)](_0x5a68ea,_0x35b36c,_0x295e83(0x121),_0xabd9c5[_0x295e83(0x136)][_0x295e83(0x143)]?.[_0x295e83(0x151)]??!0x1));}[_0x53184d(0xff)](_0x70974a,_0x373b2e,_0xe8c32c,_0x2e08a4){const _0x7a66e4=_0x53184d,_0xb22966=new _0x235d38();_0xb22966[_0x7a66e4(0x158)]=_0x373b2e;const _0x3e3027=new _0x34d75e(_0x70974a);_0x3e3027[_0x7a66e4(0x141)]({'tag':_0x7a66e4(0x109),'children':[{'text':_0x5e0d75(_0x70974a,_0xe8c32c)+':\x20'}]});const _0x26eea7=new _0x34d75e(_0x70974a);return _0x26eea7[_0x7a66e4(0x141)]({'tag':_0x7a66e4(0x109),'children':[{'text':_0x5e0d75(_0x70974a,_0x2e08a4?_0x7a66e4(0x115):_0x7a66e4(0x100))}]}),[_0xb22966,_0x3e3027,_0x26eea7];}}class Jo extends _0x34d75e{constructor(_0x4e0ad5){const _0x267688=_0x53184d;super(_0x4e0ad5),this[_0x267688(0x122)](_0x267688(0x153),void 0x0),this[_0x267688(0x122)](_0x267688(0x13e),!0x0);const _0x5439a7=this[_0x267688(0x14c)];this[_0x267688(0x141)]({'tag':_0x267688(0x109),'attributes':{'class':['ck',_0x267688(0x156),_0x5439a7['if'](_0x267688(0x13e),_0x267688(0x10e),_0x559007=>!_0x559007)]},'children':[{'text':_0x5439a7['to'](_0x267688(0x153))}]});}}function _0x18d4(){const _0x4c5ad7=['_createModelSelectionDropdown','_webSearchButton','length','webSearchActive','span','activeModelName','AI_CHAT_COMMANDS','agent','_reasoningButton','ck-hidden','bind','_createWebSearchButton','startsWith','name','log','setModelList','AI_CHAT_CAPABILITIES_YES','5124602bgyIDv','modelSelectorEnabled','setModel','modelSelectorVisible','1016748bnaSzk','ck-ai-chat__prompt-capabilities','toLowerCase','1516fMGYzX','addMany','_createCommandsButton','locale','AI_CHAT_REASONING','set','toggleReasoning','isOn','selectModel','32UESIXg','_createModelNameView','fire','toggleWebSearch','div','listenTo','Commands\x20are\x20not\x20implemented\x20yet.','AI_CHAT_DISABLE_REASONING','AI_CHAT_ENABLE_WEB_SEARCH','isEnabled','menuitemradio','ck-ai-chat-controls-button','4190oitxZX','ck-ai-chat-controls-button--commands','_modelSelectionDropdown','setWebSearch','capabilities','_createReasoningButton','tooltip','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','AI_CHAT_ENABLE_REASONING','createCollection','3162gSwcle','setReasoning','isVisible','buttonView','description','setTemplate','_modelSelectionDropdownItems','reasoning','activeModelId','reasoningActive','_modelNameView','webSearch','enableModelSelector','ck-ai-chat-controls__model-selection__item-name','AI_CHAT_SEARCH_WEB','source','bindTemplate','button','_commandsButton','label','disableModelSelector','enabled','add','text','1901760xCbEhO','AI_CHAT_DISABLE_WEB_SEARCH','ck-ai-chat-controls__model-name','750669eOjGLb','content','ck-ai-chat-controls__model-selection','ck-button__label','style','clear','ck-ai-chat-controls__model-selection__item-description','7700qZacUX','8230HvRyMK','model','1694vDzDtO','extendTemplate','_getCapabilityParts','AI_CHAT_CAPABILITIES_NO','withText','ck-ai-chat-controls__model-selection__item-capabilities','execute','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP'];_0x18d4=function(){return _0x4c5ad7;};return _0x18d4();}
|
|
23
|
+
const _0x40fa94=_0x466d;(function(_0x49fab8,_0x2eec26){const _0x19becf=_0x466d,_0x1cebee=_0x49fab8();while(!![]){try{const _0x85838=-parseInt(_0x19becf(0x12a))/0x1+parseInt(_0x19becf(0x12c))/0x2+parseInt(_0x19becf(0xe3))/0x3*(parseInt(_0x19becf(0xd2))/0x4)+parseInt(_0x19becf(0x107))/0x5+parseInt(_0x19becf(0xd5))/0x6+parseInt(_0x19becf(0x105))/0x7*(-parseInt(_0x19becf(0xe5))/0x8)+-parseInt(_0x19becf(0xef))/0x9;if(_0x85838===_0x2eec26)break;else _0x1cebee['push'](_0x1cebee['shift']());}catch(_0x2e9d6c){_0x1cebee['push'](_0x1cebee['shift']());}}}(_0x4ed7,0xe2ad3));import{Collection as _0x20e192}from'ckeditor5/src/utils.js';import{IconAI as _0x34c174,IconBulb as _0x16fd0e,IconWeb as _0x294338}from'@ckeditor/ckeditor5-icons';function _0x4ed7(){const _0x6da2ee=['reasoning','startsWith','locale','ck-hidden','27QUGDCQ','_modelSelectionDropdown','970336nJiLgU','modelSelectorEnabled','content','_getCapabilityParts','AI_CHAT_CAPABILITIES_NO','_webSearchButton','setModel','webSearch','_createModelSelectionDropdown','setTemplate','1386783xhwVpF','_modelSelectionDropdownItems','style','length','_commandsButton','disableModelSelector','capabilities','buttonView','agent','AI_CHAT_REASONING','execute','ck-ai-chat-controls__model-selection__item-name','source','activeModelId','webSearchActive','_reasoningButton','description','selectModel','isEnabled','toggleReasoning','AI_CHAT_SEARCH_WEB','model','56IxVzTr','add','5682735IzwAmj','isVisible','ck-ai-chat-controls__model-name','bindTemplate','ck-ai-chat-controls__model-selection__item-description','_createModelNameView','setModelList','createCollection','setWebSearch','addMany','AI_CHAT_DISABLE_REASONING','bind','_createWebSearchButton','enableModelSelector','ck-ai-chat-controls-button--commands','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','text','toLowerCase','_modelNameView','name','_createReasoningButton','_createCommandsButton','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','isOn','ck-ai-chat-controls__model-selection__item-capabilities','AI_CHAT_CAPABILITIES_YES','AI_CHAT_COMMANDS','div','AI_CHAT_ENABLE_WEB_SEARCH','toggleWebSearch','button','listenTo','reasoningActive','extendTemplate','ck-ai-chat__prompt-capabilities','1747126YTQNlp','ck-ai-chat-controls__model-selection','3657384gOUjRg','withText','span','AI_CHAT_ENABLE_REASONING','Commands\x20are\x20not\x20implemented\x20yet.','setReasoning','enabled','ck-button__label','24844dJjZub','fire','clear','4673268scBUwW','set','modelSelectorVisible','activeModelName','log','tooltip','menuitemradio','ck-ai-chat-controls-button','label','AI_CHAT_DISABLE_WEB_SEARCH'];_0x4ed7=function(){return _0x6da2ee;};return _0x4ed7();}import{addListToDropdown as _0x492efe,ButtonLabelView as _0x52aa41,ButtonView as _0x3bae8a,createDropdown as _0x913079,IconView as _0x58437a,UIModel as _0x2ab8ec,View as _0x4c3299}from'ckeditor5/src/ui.js';import{getTranslation as _0x3b7772}from'../../../aicore/utils/common-translations.js';function _0x466d(_0x298772,_0x3c6045){const _0x4ed7b9=_0x4ed7();return _0x466d=function(_0x466d8f,_0x553a5c){_0x466d8f=_0x466d8f-0xcb;let _0x43206d=_0x4ed7b9[_0x466d8f];return _0x43206d;},_0x466d(_0x298772,_0x3c6045);}const yo=_0x40fa94(0x129),Uo=_0x40fa94(0xdc),Go=_0x40fa94(0x115),jo=_0x40fa94(0x12b),Yo=_0x40fa94(0xfa),qo=_0x40fa94(0x10b),zo=_0x40fa94(0x11f),Fo='n';export class AIChatPromptCapabilitiesView extends _0x4c3299{[_0x40fa94(0xea)];[_0x40fa94(0xfe)];[_0x40fa94(0xf3)];[_0x40fa94(0xe4)];[_0x40fa94(0xf0)];[_0x40fa94(0x119)];constructor(_0x5667d9){const _0x1bc049=_0x40fa94;super(_0x5667d9),this[_0x1bc049(0xd6)](_0x1bc049(0xfd),!0x1),this[_0x1bc049(0xd6)](_0x1bc049(0x127),!0x1),this[_0x1bc049(0xd6)](_0x1bc049(0xd7),!0x0),this[_0x1bc049(0xd6)](_0x1bc049(0xe6),!0x0),this[_0x1bc049(0xd6)](_0x1bc049(0xfc),null),this[_0x1bc049(0xd6)](_0x1bc049(0xd8),null),this[_0x1bc049(0xe4)]=this[_0x1bc049(0xed)](),this[_0x1bc049(0x119)]=this[_0x1bc049(0x10c)](),this[_0x1bc049(0xea)]=this[_0x1bc049(0x113)](),this[_0x1bc049(0xfe)]=this[_0x1bc049(0x11b)](),this[_0x1bc049(0xf3)]=this[_0x1bc049(0x11c)](),this[_0x1bc049(0xe4)][_0x1bc049(0xf6)][_0x1bc049(0x112)](_0x1bc049(0x108))['to'](this,_0x1bc049(0xd7),_0x28751e=>_0x28751e),this[_0x1bc049(0xe4)][_0x1bc049(0xf6)][_0x1bc049(0x112)](_0x1bc049(0xda))['to'](this,_0x1bc049(0xe6),_0xe7f657=>_0xe7f657?this[_0x1bc049(0xe4)][_0x1bc049(0xf6)][_0x1bc049(0xdd)]:_0x3b7772(this[_0x1bc049(0xe1)],_0x1bc049(0x116))),this[_0x1bc049(0xe4)][_0x1bc049(0x112)](_0x1bc049(0x101))['to'](this,_0x1bc049(0xe6),_0x304a57=>_0x304a57),this[_0x1bc049(0xea)][_0x1bc049(0x112)](_0x1bc049(0x11e))['to'](this,_0x1bc049(0xfd),_0x4ac01d=>_0x4ac01d),this[_0x1bc049(0xea)][_0x1bc049(0x112)](_0x1bc049(0xcb))['to'](this,_0x1bc049(0xd7),_0x40afd5=>!_0x40afd5),this[_0x1bc049(0xea)][_0x1bc049(0x112)](_0x1bc049(0xda))['to'](this,_0x1bc049(0xfd),_0x46f7d3=>_0x3b7772(this[_0x1bc049(0xe1)],_0x46f7d3?_0x1bc049(0xde):_0x1bc049(0x123))),this[_0x1bc049(0xfe)][_0x1bc049(0x112)](_0x1bc049(0x11e))['to'](this,_0x1bc049(0x127),_0x5842d9=>_0x5842d9),this[_0x1bc049(0xfe)][_0x1bc049(0x112)](_0x1bc049(0xcb))['to'](this,_0x1bc049(0xd7),_0x5f0939=>!_0x5f0939),this[_0x1bc049(0xfe)][_0x1bc049(0x112)](_0x1bc049(0xda))['to'](this,_0x1bc049(0x127),_0x72cc3b=>_0x3b7772(this[_0x1bc049(0xe1)],_0x72cc3b?_0x1bc049(0x111):_0x1bc049(0xcd))),this[_0x1bc049(0xee)]({'tag':_0x1bc049(0x122),'attributes':{'class':[yo]},'children':[this[_0x1bc049(0xe4)],this[_0x1bc049(0x119)],this[_0x1bc049(0xea)],this[_0x1bc049(0xfe)],this[_0x1bc049(0xf3)]]}),this[_0x1bc049(0xf0)]=new _0x20e192(),_0x492efe(this[_0x1bc049(0xe4)],this[_0x1bc049(0xf0)]);}[_0x40fa94(0x10d)](_0x21da8a,_0x44c964){const _0x5688da=_0x40fa94;if(this[_0x5688da(0xd6)](_0x5688da(0xd7),!(_0x44c964&&_0x21da8a[_0x5688da(0xf2)]<=0x1)),this[_0x5688da(0xf0)][_0x5688da(0xd4)](),_0x21da8a?.[_0x5688da(0xf2)])for(const _0x281f35 of _0x21da8a){const _0x33fda5=new _0x2ab8ec({'label':_0x281f35[_0x5688da(0x11a)],'withText':!0x0,'role':_0x5688da(0xdb),'id':_0x281f35['id'],'model':_0x281f35});_0x33fda5[_0x5688da(0x112)](_0x5688da(0x11e))['to'](this,_0x5688da(0xfc),_0x23f744=>_0x23f744===_0x281f35['id']),this[_0x5688da(0xf0)][_0x5688da(0x106)]({'type':_0x5688da(0x125),'model':_0x33fda5,'labelView':new Us(this[_0x5688da(0xe1)],_0x281f35)});}}[_0x40fa94(0x10f)](_0x2e4a18){const _0x448237=_0x40fa94;this[_0x448237(0xd6)](_0x448237(0xfd),_0x2e4a18);}[_0x40fa94(0xcf)](_0xd85c84){const _0x10952b=_0x40fa94;this[_0x10952b(0xd6)](_0x10952b(0x127),_0xd85c84);}[_0x40fa94(0xeb)](_0x20ead0){const _0x5e8ee2=_0x40fa94;if(!_0x20ead0)return;this[_0x5e8ee2(0xfc)]=_0x20ead0['id'],this[_0x5e8ee2(0xd8)]=_0x20ead0[_0x5e8ee2(0x11a)]||_0x20ead0['id'],this[_0x5e8ee2(0xe4)][_0x5e8ee2(0xf6)][_0x5e8ee2(0xd6)](_0x5e8ee2(0xdd),_0x20ead0[_0x5e8ee2(0x11a)]),this[_0x5e8ee2(0xe4)][_0x5e8ee2(0xf6)][_0x5e8ee2(0xd6)](_0x5e8ee2(0xda),_0x20ead0[_0x5e8ee2(0x11a)]);const _0x85a768=_0x20ead0[_0x5e8ee2(0xf5)][_0x5e8ee2(0xec)]?.[_0x5e8ee2(0xd0)]??!0x1;this[_0x5e8ee2(0xd6)](_0x5e8ee2(0xfd),!0x1),this[_0x5e8ee2(0xea)][_0x5e8ee2(0xd6)](_0x5e8ee2(0x11e),!0x1),this[_0x5e8ee2(0xea)][_0x5e8ee2(0xd6)](_0x5e8ee2(0x101),_0x85a768),this[_0x5e8ee2(0xea)][_0x5e8ee2(0xd6)](_0x5e8ee2(0x108),_0x85a768);const _0x219608=_0x20ead0[_0x5e8ee2(0xf5)][_0x5e8ee2(0xdf)]?.[_0x5e8ee2(0xd0)]??!0x1;this[_0x5e8ee2(0xd6)](_0x5e8ee2(0x127),!0x1),this[_0x5e8ee2(0xfe)][_0x5e8ee2(0xd6)](_0x5e8ee2(0x11e),!0x1),this[_0x5e8ee2(0xfe)][_0x5e8ee2(0xd6)](_0x5e8ee2(0x101),_0x219608),this[_0x5e8ee2(0xfe)][_0x5e8ee2(0xd6)](_0x5e8ee2(0x108),_0x219608);}[_0x40fa94(0x114)](){const _0xc53ab3=_0x40fa94;this[_0xc53ab3(0xd6)](_0xc53ab3(0xe6),!0x0),this[_0xc53ab3(0xd6)](_0xc53ab3(0xd7),!0x0);}[_0x40fa94(0xf4)](_0x589a3b){const _0x18f5a9=_0x40fa94;this[_0x18f5a9(0xd6)](_0x18f5a9(0xe6),!0x1),_0x589a3b&&this[_0x18f5a9(0xd6)](_0x18f5a9(0xd7),!0x1);}[_0x40fa94(0x113)](){const _0x4be035=_0x40fa94,_0xcbfc39=new _0x3bae8a();return _0xcbfc39[_0x4be035(0xd6)]({'label':_0x3b7772(this[_0x4be035(0xe1)],_0x4be035(0x103)),'icon':_0x294338,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0xcbfc39['on'](_0x4be035(0xf9),()=>{const _0x2c80a7=_0x4be035;this[_0x2c80a7(0xd3)](_0x2c80a7(0x124));}),_0xcbfc39;}[_0x40fa94(0x11b)](){const _0x5ec8a8=_0x40fa94,_0x813eed=new _0x3bae8a();return _0x813eed[_0x5ec8a8(0xd6)]({'label':_0x3b7772(this[_0x5ec8a8(0xe1)],_0x5ec8a8(0xf8)),'icon':_0x16fd0e,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x813eed['on'](_0x5ec8a8(0xf9),()=>{const _0x3bf48e=_0x5ec8a8;this[_0x3bf48e(0xd3)](_0x3bf48e(0x102));}),_0x813eed;}[_0x40fa94(0x11c)](){const _0x3480be=_0x40fa94,_0x4ff296=new _0x3bae8a();return _0x4ff296[_0x3480be(0xd6)]({'label':_0x3b7772(this[_0x3480be(0xe1)],_0x3480be(0x121)),'icon':_0x34c174,'withText':!0x0,'class':Uo,'isToggleable':!0x0,'tooltip':_0x3b7772(this[_0x3480be(0xe1)],_0x3480be(0x121)),'tooltipPosition':Fo}),_0x4ff296[_0x3480be(0x128)]({'attributes':{'class':[Go]}}),_0x4ff296['on'](_0x3480be(0xf9),()=>{const _0x320d92=_0x3480be;console[_0x320d92(0xd9)](_0x320d92(0xce)),alert(_0x320d92(0xce));}),_0x4ff296;}[_0x40fa94(0xed)](){const _0x2c8c98=_0x40fa94,_0x391a61=_0x913079(this[_0x2c8c98(0xe1)]);return _0x391a61[_0x2c8c98(0xd6)]({'panelPosition':'ne','class':[jo]}),_0x391a61[_0x2c8c98(0xf6)][_0x2c8c98(0xd6)]({'label':_0x3b7772(this[_0x2c8c98(0xe1)],_0x2c8c98(0x11d)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Fo}),this[_0x2c8c98(0x126)](_0x391a61,_0x2c8c98(0xf9),_0x2fbdbc=>{const _0x241c99=_0x2c8c98;this[_0x241c99(0xd3)](_0x241c99(0x100),_0x2fbdbc[_0x241c99(0xfb)][_0x241c99(0x104)]);}),_0x391a61;}[_0x40fa94(0x10c)](){const _0x4480fe=_0x40fa94,_0x3aa7eb=new Jo(this[_0x4480fe(0xe1)]);return _0x3aa7eb[_0x4480fe(0x112)](_0x4480fe(0x117))['to'](this,_0x4480fe(0xd8),_0x2b33d1=>_0x2b33d1??''),_0x3aa7eb[_0x4480fe(0x112)](_0x4480fe(0x108))['to'](this,_0x4480fe(0xd7),this,_0x4480fe(0xd8),(_0x87a588,_0x21f6c2)=>!_0x87a588&&!_0x21f6c2?.[_0x4480fe(0x118)]()[_0x4480fe(0xe0)](_0x4480fe(0xf7))),_0x3aa7eb;}}class Us extends _0x52aa41{constructor(_0x32ab17,_0x276cfe){const _0x28026d=_0x40fa94;super();const _0x2a3632=this[_0x28026d(0x10a)],_0x5e0fde=this[_0x28026d(0x10e)]();this[_0x28026d(0xee)]({'tag':_0x28026d(0x122),'attributes':{'class':['ck',_0x28026d(0xd1)],'style':_0x2a3632['to'](_0x28026d(0xf1)),'id':_0x2a3632['to']('id')},'children':[{'tag':_0x28026d(0x122),'attributes':{'class':[Yo]},'children':[{'text':_0x2a3632['to'](_0x28026d(0x117))}]},{'tag':_0x28026d(0x122),'attributes':{'class':[qo]},'children':[{'tag':_0x28026d(0xcc),'children':[{'text':_0x276cfe[_0x28026d(0xff)]}]}]},{'tag':_0x28026d(0x122),'attributes':{'class':[zo]},'children':_0x5e0fde}]}),_0x5e0fde[_0x28026d(0x110)](this[_0x28026d(0xe8)](_0x32ab17,_0x294338,_0x28026d(0x103),_0x276cfe[_0x28026d(0xf5)][_0x28026d(0xec)]?.[_0x28026d(0xd0)]??!0x1)),_0x5e0fde[_0x28026d(0x110)](this[_0x28026d(0xe8)](_0x32ab17,_0x16fd0e,_0x28026d(0xf8),_0x276cfe[_0x28026d(0xf5)][_0x28026d(0xdf)]?.[_0x28026d(0xd0)]??!0x1));}[_0x40fa94(0xe8)](_0x575fb7,_0x4deff5,_0x91c535,_0x12d71a){const _0x4ba3db=_0x40fa94,_0x2321cd=new _0x58437a();_0x2321cd[_0x4ba3db(0xe7)]=_0x4deff5;const _0x7d130f=new _0x4c3299(_0x575fb7);_0x7d130f[_0x4ba3db(0xee)]({'tag':_0x4ba3db(0xcc),'children':[{'text':_0x3b7772(_0x575fb7,_0x91c535)+':\x20'}]});const _0x501d5b=new _0x4c3299(_0x575fb7);return _0x501d5b[_0x4ba3db(0xee)]({'tag':_0x4ba3db(0xcc),'children':[{'text':_0x3b7772(_0x575fb7,_0x12d71a?_0x4ba3db(0x120):_0x4ba3db(0xe9))}]}),[_0x2321cd,_0x7d130f,_0x501d5b];}}class Jo extends _0x4c3299{constructor(_0x572858){const _0x591d1e=_0x40fa94;super(_0x572858),this[_0x591d1e(0xd6)](_0x591d1e(0x117),void 0x0),this[_0x591d1e(0xd6)](_0x591d1e(0x108),!0x0);const _0x1df650=this[_0x591d1e(0x10a)];this[_0x591d1e(0xee)]({'tag':_0x591d1e(0xcc),'attributes':{'class':['ck',_0x591d1e(0x109),_0x1df650['if'](_0x591d1e(0x108),_0x591d1e(0xe2),_0x34b86c=>!_0x34b86c)]},'children':[{'text':_0x1df650['to'](_0x591d1e(0x117))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5bf497=_0x2cbb;function _0x4ccc(){const _0x3cfc99=['374lmpTke','8dIEwNQ','isUploadInProgress','add','minRows','target','3295gVEdEi','update','destroy','submit','focusableChildren','left','rtl','uiLanguageDirection','_queryViewResizeObserver','placeholder','submitButtonView','enter','MAX_ROWS','fieldView','setIsUploadInProgress','3431043LnKqez','isEmpty','2845533puPhEN','locale','requestAnimationFrame','excludeScrollbarsAndBorders','element','ck-ai-chat__prompt-submit-button','488pdCDLL','calc(','2875974mLvrLv','fire','render','value','style','_setUpAddContextButtonPositioning','set','_addContextButtonView','3317PnyUwT','reset','sendUserMessage','isEnabled','bind','3778137vUZSlT','errorText','queryView','MIN_ROWS','trim','px\x20-\x20var(--ck-spacing-tiny))','extendTemplate','hasError','AI_CHAT_LABEL_SUBMIT','window','ck-ai-chat__prompt-input','fieldWrapperChildren','_createSubmitButton','right','width','16189360bgTXmF','execute','keystrokes','maxRows','AI_CHAT_PROMPT_EMPTY_ERROR','setPlaceholderText'];_0x4ccc=function(){return _0x3cfc99;};return _0x4ccc();}function _0x2cbb(_0x8e85f2,_0x43e484){const _0x4cccf9=_0x4ccc();return _0x2cbb=function(_0x2cbb17,_0x53995f){_0x2cbb17=_0x2cbb17-0x145;let _0x284282=_0x4cccf9[_0x2cbb17];return _0x284282;},_0x2cbb(_0x8e85f2,_0x43e484);}(function(_0x57482b,_0x22c283){const _0x4ba31d=_0x2cbb,_0x196a4f=_0x57482b();while(!![]){try{const _0x27880b=-parseInt(_0x4ba31d(0x16d))/0x1*(parseInt(_0x4ba31d(0x146))/0x2)+-parseInt(_0x4ba31d(0x15d))/0x3+parseInt(_0x4ba31d(0x163))/0x4*(-parseInt(_0x4ba31d(0x14c))/0x5)+parseInt(_0x4ba31d(0x165))/0x6+parseInt(_0x4ba31d(0x15b))/0x7+-parseInt(_0x4ba31d(0x147))/0x8*(parseInt(_0x4ba31d(0x172))/0x9)+parseInt(_0x4ba31d(0x181))/0xa;if(_0x27880b===_0x22c283)break;else _0x196a4f['push'](_0x196a4f['shift']());}catch(_0x4fc523){_0x196a4f['push'](_0x196a4f['shift']());}}}(_0x4ccc,0x7ed09));import{IconSubmit as _0x520e82}from'ckeditor5/src/icons.js';import{ButtonView as _0x382d99,AutocompleteView as _0x96fa83,createLabeledTextarea as _0x5e046a}from'ckeditor5/src/ui.js';import{global as _0x122af6,isVisible as _0x156477,Rect as _0x12727d,ResizeObserver as _0x2aaca3}from'ckeditor5/src/utils.js';import{getTranslation as _0x3de0fc}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x3ae167}from'./aichatpromptsuggestionslistview.js';import{escape as _0xd018c0}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x96fa83{[_0x5bf497(0x156)];static [_0x5bf497(0x175)]=0x1;static [_0x5bf497(0x158)]=0xc;[_0x5bf497(0x16c)];[_0x5bf497(0x154)];constructor(_0x4b0d34,_0x45d5db){const _0x1dc6b7=_0x5bf497;super(_0x4b0d34,{'queryView':{'label':'','creator':_0x5e046a,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x3ae167(_0x4b0d34),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x1dc6b7(0x16b)](_0x1dc6b7(0x15c),!0x0),this[_0x1dc6b7(0x16b)](_0x1dc6b7(0x148),!0x1),this[_0x1dc6b7(0x16c)]=_0x45d5db,this[_0x1dc6b7(0x154)]=null,this[_0x1dc6b7(0x174)][_0x1dc6b7(0x159)][_0x1dc6b7(0x14a)]=AIChatPromptInputView[_0x1dc6b7(0x175)],this[_0x1dc6b7(0x174)][_0x1dc6b7(0x159)][_0x1dc6b7(0x184)]=AIChatPromptInputView[_0x1dc6b7(0x158)],this[_0x1dc6b7(0x174)][_0x1dc6b7(0x17d)][_0x1dc6b7(0x149)](this[_0x1dc6b7(0x16c)]),this[_0x1dc6b7(0x16a)](),this[_0x1dc6b7(0x178)]({'attributes':{'class':['ck',_0x1dc6b7(0x17c)]}}),this[_0x1dc6b7(0x156)]=this[_0x1dc6b7(0x17e)](),this[_0x1dc6b7(0x156)][_0x1dc6b7(0x171)](_0x1dc6b7(0x170))['to'](this,_0x1dc6b7(0x15c),this,_0x1dc6b7(0x148),(_0x3a7104,_0x5471d8)=>!_0x3a7104&&!_0x5471d8),this[_0x1dc6b7(0x150)][_0x1dc6b7(0x149)](this[_0x1dc6b7(0x156)]);}[_0x5bf497(0x167)](){const _0x59d26f=_0x5bf497;super[_0x59d26f(0x167)](),this[_0x59d26f(0x174)][_0x59d26f(0x17d)][_0x59d26f(0x149)](this[_0x59d26f(0x156)]),this[_0x59d26f(0x183)][_0x59d26f(0x16b)](_0x59d26f(0x157),(_0x281c76,_0x53bda7)=>{const _0x577b71=_0x59d26f;this[_0x577b71(0x148)]||this[_0x577b71(0x15c)]||_0x281c76[_0x577b71(0x14b)]==this[_0x577b71(0x174)][_0x577b71(0x159)][_0x577b71(0x161)]&&(this[_0x577b71(0x14f)](),_0x53bda7());}),this[_0x59d26f(0x174)][_0x59d26f(0x159)]['on'](_0x59d26f(0x14d),()=>{const _0x4857e6=_0x59d26f;this[_0x4857e6(0x15c)]=''===this[_0x4857e6(0x174)][_0x4857e6(0x159)][_0x4857e6(0x161)][_0x4857e6(0x168)]?.[_0x4857e6(0x176)]();});}[_0x5bf497(0x14e)](){const _0x2b42dd=_0x5bf497;super[_0x2b42dd(0x14e)](),this[_0x2b42dd(0x154)]&&this[_0x2b42dd(0x154)][_0x2b42dd(0x14e)]();}[_0x5bf497(0x14f)](){const _0x2b97f3=_0x5bf497,_0x2b3c7f=this[_0x2b97f3(0x174)][_0x2b97f3(0x159)][_0x2b97f3(0x161)][_0x2b97f3(0x168)]?.[_0x2b97f3(0x176)]();if(!_0x2b3c7f)return this[_0x2b97f3(0x174)][_0x2b97f3(0x173)]=_0x3de0fc(this[_0x2b97f3(0x15e)],_0x2b97f3(0x185)),void(this[_0x2b97f3(0x174)][_0x2b97f3(0x159)][_0x2b97f3(0x179)]=!0x0);this[_0x2b97f3(0x174)][_0x2b97f3(0x159)][_0x2b97f3(0x179)]=!0x1;const _0x1154df=_0xd018c0(_0x2b3c7f);this[_0x2b97f3(0x166)](_0x2b97f3(0x16f),_0x1154df),this[_0x2b97f3(0x174)][_0x2b97f3(0x159)][_0x2b97f3(0x16e)]();}[_0x5bf497(0x145)](_0x47186b){const _0x17e933=_0x5bf497;this[_0x17e933(0x174)][_0x17e933(0x159)][_0x17e933(0x16b)](_0x17e933(0x155),_0x47186b);}[_0x5bf497(0x17e)](){const _0x2536b8=_0x5bf497,_0x14b2e6=new _0x382d99(this[_0x2536b8(0x15e)]);return _0x14b2e6[_0x2536b8(0x16b)]({'icon':_0x520e82,'label':_0x3de0fc(this[_0x2536b8(0x15e)],_0x2536b8(0x17a)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2536b8(0x162),'isEnabled':!0x1}),_0x14b2e6['on'](_0x2536b8(0x182),()=>{const _0x1a4183=_0x2536b8;this[_0x1a4183(0x14f)]();}),_0x14b2e6;}[_0x5bf497(0x15a)](_0x6efc33){const _0x208151=_0x5bf497;this[_0x208151(0x148)]=_0x6efc33;}[_0x5bf497(0x16a)](){const _0xf411fe=_0x5bf497,_0x27930b=this[_0xf411fe(0x15e)],_0x1363ea=()=>{const _0x46aedd=_0xf411fe;_0x122af6[_0x46aedd(0x17b)][_0x46aedd(0x15f)](()=>{const _0x11be10=_0x46aedd;if(_0x156477(this[_0x11be10(0x161)])){const _0x3fee49=new _0x12727d(this[_0x11be10(0x174)][_0x11be10(0x159)][_0x11be10(0x161)]),_0x5f5a7a=new _0x12727d(this[_0x11be10(0x16c)][_0x11be10(0x161)]),_0x2fcd50=_0x3fee49[_0x11be10(0x180)],_0x8bc40e=_0x11be10(0x152)===_0x27930b[_0x11be10(0x153)]?_0x11be10(0x17f):_0x11be10(0x151);_0x3fee49[_0x11be10(0x160)]();const _0x26a4b8=_0x2fcd50-_0x3fee49[_0x11be10(0x180)]+0x1;this[_0x11be10(0x16c)][_0x11be10(0x161)][_0x11be10(0x169)][_0x8bc40e]=_0x11be10(0x164)+(_0x2fcd50-_0x5f5a7a[_0x11be10(0x180)]-_0x26a4b8)+_0x11be10(0x177);}});};this[_0xf411fe(0x174)][_0xf411fe(0x159)]['on'](_0xf411fe(0x14d),_0x1363ea),this['on'](_0xf411fe(0x167),()=>{const _0x567eb2=_0xf411fe;_0x1363ea(),this[_0x567eb2(0x154)]=new _0x2aaca3(this[_0x567eb2(0x174)][_0x567eb2(0x159)][_0x567eb2(0x161)],()=>{_0x1363ea();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b5b26=_0x5950;(function(_0x394b08,_0x155538){const _0x2e6af9=_0x5950,_0x4c0046=_0x394b08();while(!![]){try{const _0x3981ac=-parseInt(_0x2e6af9(0x8a))/0x1+parseInt(_0x2e6af9(0x8e))/0x2+-parseInt(_0x2e6af9(0x89))/0x3+-parseInt(_0x2e6af9(0x85))/0x4+-parseInt(_0x2e6af9(0x8b))/0x5*(parseInt(_0x2e6af9(0x86))/0x6)+parseInt(_0x2e6af9(0x84))/0x7+parseInt(_0x2e6af9(0x88))/0x8;if(_0x3981ac===_0x155538)break;else _0x4c0046['push'](_0x4c0046['shift']());}catch(_0x4d563b){_0x4c0046['push'](_0x4c0046['shift']());}}}(_0x4d77,0xcefc1));function _0x5950(_0x5ccb47,_0x15f15f){const _0x4d779e=_0x4d77();return _0x5950=function(_0x595058,_0x52b7b1){_0x595058=_0x595058-0x84;let _0x3a1aa6=_0x4d779e[_0x595058];return _0x3a1aa6;},_0x5950(_0x5ccb47,_0x15f15f);}import{ListView as _0x579386}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x579386{[_0x4b5b26(0x87)](){const _0x36bc8b=_0x4b5b26;let _0x173845=0x0;for(const _0x36318e of this[_0x36bc8b(0x8c)])_0x173845+=_0x36318e[_0x36bc8b(0x8c)][_0x36bc8b(0x8d)];return{'resultsCount':_0x173845,'totalItemsCount':_0x173845};}}function _0x4d77(){const _0x4133ac=['11548112sbhMON','2443539UBVKMl','1163447nQmcoP','25NQKhYp','items','length','2385062ZtyoLR','6582282AknPGq','1213648YDcAgN','536628QQkCNQ','filter'];_0x4d77=function(){return _0x4133ac;};return _0x4d77();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b66b6=_0x35cd;(function(_0x173570,_0x5b8d99){const _0x2d8c08=_0x35cd,_0x48af9c=_0x173570();while(!![]){try{const _0x7271ba=-parseInt(_0x2d8c08(0x153))/0x1*(parseInt(_0x2d8c08(0x141))/0x2)+-parseInt(_0x2d8c08(0x157))/0x3*(parseInt(_0x2d8c08(0x15a))/0x4)+parseInt(_0x2d8c08(0x14c))/0x5*(parseInt(_0x2d8c08(0x14b))/0x6)+-parseInt(_0x2d8c08(0x15d))/0x7+parseInt(_0x2d8c08(0x149))/0x8+-parseInt(_0x2d8c08(0x15f))/0x9+parseInt(_0x2d8c08(0x150))/0xa;if(_0x7271ba===_0x5b8d99)break;else _0x48af9c['push'](_0x48af9c['shift']());}catch(_0x1845f3){_0x48af9c['push'](_0x48af9c['shift']());}}}(_0xd658,0xf12ec));function _0xd658(){const _0x771861=['setResources','113057qoqGWr','filter','resource','label','153117hpDiOK','highlightText','execute','52iljkem','useDefaultFiltering','addResourceToContext','1481200FZYBfC','trim','6069132MpSBBO','replace','test','6NzmsPv','extendTemplate','updateResourceState','items','clear','add','\x5c$&','forEach','15376416ZVhWZH','_handleResourceSelection','7062Dhjhoh','340UzLMHs','_source','ck-ai-chat-resources__list','fire','8744220QkxjQR','locale'];_0xd658=function(){return _0x771861;};return _0xd658();}function _0x35cd(_0x2ef2ae,_0x479bc3){const _0xd6587f=_0xd658();return _0x35cd=function(_0x35cd8b,_0x462d62){_0x35cd8b=_0x35cd8b-0x141;let _0xdda121=_0xd6587f[_0x35cd8b];return _0xdda121;},_0x35cd(_0x2ef2ae,_0x479bc3);}import{ListView as _0x269735}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x132204}from'./aichatresourcelistitemview.js';const oc=_0x2b66b6(0x14e);export class AIChatContextResourcesListView extends _0x269735{[_0x2b66b6(0x14d)];constructor(_0x3f031e,_0x368c5a){const _0x1b7d1a=_0x2b66b6;super(_0x3f031e),this[_0x1b7d1a(0x14d)]=_0x368c5a,this[_0x1b7d1a(0x142)]({'attributes':{'class':[oc]}});}[_0x2b66b6(0x152)](_0x14d98d,_0x1bb8b3){const _0x34febe=_0x2b66b6;this[_0x34febe(0x144)][_0x34febe(0x145)]();let _0x1bcabb=_0x14d98d;if(this[_0x34febe(0x14d)][_0x34febe(0x15b)]&&_0x1bb8b3&&''!==_0x1bb8b3[_0x34febe(0x15e)]()){const _0x3ae36d=new RegExp(_0x1bb8b3[_0x34febe(0x160)](/[.*+?^${}()|[\]\\]/g,_0x34febe(0x147)),'gi');_0x1bcabb=_0x14d98d[_0x34febe(0x154)](_0x119a7d=>_0x3ae36d[_0x34febe(0x161)](_0x119a7d[_0x34febe(0x156)]));}for(const _0x1ad5b8 of _0x1bcabb){const _0x3a8b8f=new _0x132204(this[_0x34febe(0x151)],_0x1ad5b8);_0x3a8b8f['on'](_0x34febe(0x159),()=>{const _0x46b936=_0x34febe;this[_0x46b936(0x14a)](this[_0x46b936(0x14d)],_0x1ad5b8);}),this[_0x34febe(0x144)][_0x34febe(0x146)](_0x3a8b8f);}this[_0x34febe(0x14d)][_0x34febe(0x15b)]&&this[_0x34febe(0x158)](_0x1bb8b3);}[_0x2b66b6(0x158)](_0x822f36){const _0x12d2b8=_0x2b66b6;this[_0x12d2b8(0x14d)][_0x12d2b8(0x15b)]&&this[_0x12d2b8(0x144)][_0x12d2b8(0x148)](_0x1f2427=>{const _0x350503=_0x12d2b8;_0x1f2427[_0x350503(0x158)](_0x822f36);});}[_0x2b66b6(0x143)](_0x339935,_0x1f43b6){const _0x8b15e0=_0x2b66b6;for(const _0x3c0465 of this[_0x8b15e0(0x144)]){const _0x581e93=_0x3c0465;_0x581e93[_0x8b15e0(0x155)]['id']===_0x339935&&_0x581e93[_0x8b15e0(0x143)](_0x1f43b6);}}[_0x2b66b6(0x14a)](_0x445af7,_0x39f3ac){const _0x221763=_0x2b66b6;this[_0x221763(0x14f)](_0x221763(0x15c),{'source':_0x445af7,'resource':_0x39f3ac});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d1074=_0xda47;function _0xda47(_0x42208b,_0x83019b){const _0x3161aa=_0x3161();return _0xda47=function(_0xda4753,_0xaab11f){_0xda4753=_0xda4753-0x178;let _0x498e8e=_0x3161aa[_0xda4753];return _0x498e8e;},_0xda47(_0x42208b,_0x83019b);}(function(_0x36c4d5,_0x51967f){const _0x307a35=_0xda47,_0x349648=_0x36c4d5();while(!![]){try{const _0x4dba17=parseInt(_0x307a35(0x196))/0x1+-parseInt(_0x307a35(0x17c))/0x2+-parseInt(_0x307a35(0x17a))/0x3*(parseInt(_0x307a35(0x197))/0x4)+-parseInt(_0x307a35(0x193))/0x5+-parseInt(_0x307a35(0x194))/0x6+-parseInt(_0x307a35(0x1a4))/0x7+parseInt(_0x307a35(0x199))/0x8;if(_0x4dba17===_0x51967f)break;else _0x349648['push'](_0x349648['shift']());}catch(_0x260453){_0x349648['push'](_0x349648['shift']());}}}(_0x3161,0x28b5b));import{View as _0x4a0a05,ViewCollection as _0x29f2b5}from'ckeditor5/src/ui.js';function _0x3161(){const _0x597d81=['20chArQJ','length','10957016uoXOUg','search','_resourcesListView','aiChatResources','bindTemplate','_latestLoadResourcesUid','searchInputVisibleFrom','useDefaultFiltering','add','ck-hidden','delegate','2024911FNjLOX','ck-ai-chat-resources','getQuery','_createSkeletonView','_skeletonLoader','_source','166485mKZYTl','updateResourceState','658476OKggbl','_createSearchView','loadSourceResources','children','_searchInputVisibleFrom','_createSearchSection','highlightText','_searchView','ck\x20ck-search','set','locale','fire','setTemplate','addResourceToContext','isLoading','setResources','render','div','extendTemplate','source','has','loadResources','_searchSection','751775IquaRv','1464156JMKiBH','_createResourcesListView','87487KqtdyK'];_0x3161=function(){return _0x597d81;};return _0x3161();}import{uid as _0x4d6ef8}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x23eefb}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x152749}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x20eb25,SKELETON_DEFINITIONS as _0x466139}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x4a0a05{[_0x1d1074(0x183)];[_0x1d1074(0x192)];[_0x1d1074(0x180)];[_0x1d1074(0x19b)];[_0x1d1074(0x178)];[_0x1d1074(0x179)];[_0x1d1074(0x17f)];[_0x1d1074(0x19e)]=null;constructor(_0x59b4d6,_0x5888cf){const _0x2fb336=_0x1d1074;super(_0x59b4d6),this[_0x2fb336(0x179)]=_0x5888cf[_0x2fb336(0x18f)],this[_0x2fb336(0x180)]=_0x5888cf[_0x2fb336(0x19f)]??0x7,this[_0x2fb336(0x185)](_0x2fb336(0x18a),!0x0),this[_0x2fb336(0x183)]=this[_0x2fb336(0x17d)](),this[_0x2fb336(0x192)]=this[_0x2fb336(0x181)](),this[_0x2fb336(0x19b)]=this[_0x2fb336(0x195)](),this[_0x2fb336(0x178)]=this[_0x2fb336(0x1a7)](),this[_0x2fb336(0x17f)]=new _0x29f2b5([this[_0x2fb336(0x178)],this[_0x2fb336(0x19b)]]),this[_0x2fb336(0x188)]({'tag':_0x2fb336(0x18d),'attributes':{'class':_0x2fb336(0x1a5)},'children':this[_0x2fb336(0x17f)]});}[_0x1d1074(0x17d)](){const _0x54ecc1=_0x1d1074;return new _0x152749(this[_0x54ecc1(0x186)]);}[_0x1d1074(0x181)](){const _0x29acb8=_0x1d1074,_0x279a60=new _0x4a0a05(this[_0x29acb8(0x186)]);return _0x279a60[_0x29acb8(0x188)]({'tag':_0x29acb8(0x18d),'attributes':{'class':_0x29acb8(0x184)},'children':[this[_0x29acb8(0x183)]]}),this[_0x29acb8(0x183)]['on'](_0x29acb8(0x19a),(_0x37c90d,_0x350b72)=>{const _0x1777c7=_0x29acb8;this[_0x1777c7(0x191)](_0x350b72),this[_0x1777c7(0x179)][_0x1777c7(0x1a0)]&&this[_0x1777c7(0x19b)][_0x1777c7(0x182)](_0x350b72);}),_0x279a60;}[_0x1d1074(0x195)](){const _0x26d056=_0x1d1074,_0x226f62=new _0x23eefb(this[_0x26d056(0x186)],this[_0x26d056(0x179)]);return _0x226f62[_0x26d056(0x1a3)](_0x26d056(0x189))['to'](this),_0x226f62[_0x26d056(0x18e)]({'attributes':{'class':this[_0x26d056(0x19d)]['if'](_0x26d056(0x18a),_0x26d056(0x1a2))}}),_0x226f62;}[_0x1d1074(0x1a7)](){const _0x367b75=_0x1d1074,_0x23a1de=new _0x20eb25(this[_0x367b75(0x186)],_0x466139[_0x367b75(0x19c)]);return _0x23a1de[_0x367b75(0x18e)]({'attributes':{'class':[this[_0x367b75(0x19d)]['if'](_0x367b75(0x18a),_0x367b75(0x1a2),_0x1d380b=>!_0x1d380b)]}}),_0x23a1de;}[_0x1d1074(0x18c)](){const _0x30f7e8=_0x1d1074;super[_0x30f7e8(0x18c)](),this[_0x30f7e8(0x191)]('');}[_0x1d1074(0x191)](_0x38afba){const _0x2f3cc6=_0x1d1074,_0xf45474=_0x4d6ef8();this[_0x2f3cc6(0x19e)]=_0xf45474,this[_0x2f3cc6(0x187)](_0x2f3cc6(0x17e),{'sourceId':this[_0x2f3cc6(0x179)]['id'],'query':_0x38afba,'uid':_0xf45474}),this[_0x2f3cc6(0x18a)]=!0x0;}[_0x1d1074(0x18b)](_0x338775,_0x5eec1e){const _0x5994b=_0x1d1074;if(_0x5eec1e&&_0x5eec1e!==this[_0x5994b(0x19e)])return;const _0x5c4ba6=this[_0x5994b(0x179)][_0x5994b(0x1a0)]?this[_0x5994b(0x183)][_0x5994b(0x1a6)]():'';this[_0x5994b(0x19b)][_0x5994b(0x18b)](_0x338775,_0x5c4ba6),_0x338775[_0x5994b(0x198)]>=this[_0x5994b(0x180)]&&!this[_0x5994b(0x17f)][_0x5994b(0x190)](this[_0x5994b(0x192)])&&this[_0x5994b(0x17f)][_0x5994b(0x1a1)](this[_0x5994b(0x192)],0x0),requestAnimationFrame(()=>{const _0x5950a4=_0x5994b;this[_0x5950a4(0x18a)]=!0x1;});}[_0x1d1074(0x17b)](_0xaafb63,_0x24c437){const _0x1053e8=_0x1d1074;this[_0x1053e8(0x19b)][_0x1053e8(0x17b)](_0xaafb63,_0x24c437);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20071b=_0x2042;(function(_0x2e626b,_0x43d5da){const _0x3bbc86=_0x2042,_0x53c02c=_0x2e626b();while(!![]){try{const _0x3d6a99=-parseInt(_0x3bbc86(0x1cc))/0x1+-parseInt(_0x3bbc86(0x1b2))/0x2*(parseInt(_0x3bbc86(0x1ac))/0x3)+parseInt(_0x3bbc86(0x1ba))/0x4+parseInt(_0x3bbc86(0x1b6))/0x5*(-parseInt(_0x3bbc86(0x1b4))/0x6)+parseInt(_0x3bbc86(0x1ab))/0x7+-parseInt(_0x3bbc86(0x1ca))/0x8*(parseInt(_0x3bbc86(0x1ce))/0x9)+parseInt(_0x3bbc86(0x1d7))/0xa*(parseInt(_0x3bbc86(0x1bb))/0xb);if(_0x3d6a99===_0x43d5da)break;else _0x53c02c['push'](_0x53c02c['shift']());}catch(_0x3ce09d){_0x53c02c['push'](_0x53c02c['shift']());}}}(_0x57b9,0xc8d1e));import{HighlightedTextView as _0xaa21b3,IconView as _0x5afdc1,ListItemView as _0x597d32}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x2848d4}from'es-toolkit/compat';import{AIContextItemType as _0x558001}from'../../../../aicore/model/aicontext.js';function _0x2042(_0x44f73c,_0x380d94){const _0x57b973=_0x57b9();return _0x2042=function(_0x20421f,_0x2fffa3){_0x20421f=_0x20421f-0x1ab;let _0x785eb4=_0x57b973[_0x20421f];return _0x785eb4;},_0x2042(_0x44f73c,_0x380d94);}function _0x57b9(){const _0x26a763=['updateResourceState','isVisible','6472664neMxjc','11BeUcgb','isInContext','getResourceIcon','_createIconView','FILE','highlightText','resource','content','URL','bindTemplate','TEXT','_iconView','span','_titleView','ck-ai-chat-resources__item','104jbXwGr','ck-hidden','844832OaIuXE','_updateIcon','822348QVpXvv','_createTitleView','extendTemplate','text','ck-ai-chat-resources__item-title','ck-ai-chat-resources__item__icon','set','_setupTemplate','label','40267880QlcaAi','289898QPBlvX','3PbvAhb','setTemplate','render','div','trim','ck-ai-chat-resources__item--in-context','3239398ecyrQy','execute','7268658LzZdcM','type','5blpbdr','DOCUMENT'];_0x57b9=function(){return _0x26a763;};return _0x57b9();}import{IconFileUpload as _0x528b53,IconCheck as _0x42ba94,IconDocument as _0x3c5ad7,IconDocumentOutline as _0x5b1342,IconLink as _0x3ebf1f}from'@ckeditor/ckeditor5-icons';const zr=_0x20071b(0x1c9),Gr=_0x20071b(0x1b1),Hr=_0x20071b(0x1d2),Jr=_0x20071b(0x1d3);export class AIChatResourceListItemView extends _0x597d32{[_0x20071b(0x1c1)];[_0x20071b(0x1c8)];[_0x20071b(0x1c6)];constructor(_0x23efc8,_0x42dc06){const _0x3e5843=_0x20071b;super(_0x23efc8),this[_0x3e5843(0x1c1)]=_0x42dc06,this[_0x3e5843(0x1d4)](_0x3e5843(0x1bc),!!_0x42dc06[_0x3e5843(0x1bc)]),this[_0x3e5843(0x1c8)]=this[_0x3e5843(0x1cf)](),this[_0x3e5843(0x1c6)]=this[_0x3e5843(0x1be)](),this[_0x3e5843(0x1d5)]();}[_0x20071b(0x1ae)](){const _0x58cf73=_0x20071b;super[_0x58cf73(0x1ae)]();}[_0x20071b(0x1bd)](_0x21dd8e){const _0x1573e1=_0x20071b;if(_0x21dd8e[_0x1573e1(0x1bc)])return _0x42ba94;switch(_0x21dd8e[_0x1573e1(0x1b5)]){case _0x558001[_0x1573e1(0x1b7)]:return _0x3c5ad7;case _0x558001[_0x1573e1(0x1c3)]:return _0x3ebf1f;case _0x558001[_0x1573e1(0x1bf)]:case _0x558001[_0x1573e1(0x1c5)]:return _0x528b53;default:return _0x5b1342;}}[_0x20071b(0x1c0)](_0x208071){const _0x4d6adc=_0x20071b;if(!_0x208071||''===_0x208071[_0x4d6adc(0x1b0)]())return void this[_0x4d6adc(0x1c8)][_0x4d6adc(0x1c0)](null);const _0x138daf=new RegExp(_0x2848d4(_0x208071),'gi');this[_0x4d6adc(0x1c8)][_0x4d6adc(0x1c0)](_0x138daf);}[_0x20071b(0x1b8)](_0x2ca34c){const _0x35cd11=_0x20071b;this[_0x35cd11(0x1c1)][_0x35cd11(0x1bc)]=_0x2ca34c,this[_0x35cd11(0x1bc)]=_0x2ca34c,this[_0x35cd11(0x1cd)]();}[_0x20071b(0x1cf)](){const _0x44f070=_0x20071b,_0x1bfcfe=new _0xaa21b3();return _0x1bfcfe[_0x44f070(0x1d1)]=this[_0x44f070(0x1c1)][_0x44f070(0x1d6)],_0x1bfcfe[_0x44f070(0x1d0)]({'tag':_0x44f070(0x1c7),'attributes':{'class':[Hr]}}),_0x1bfcfe;}[_0x20071b(0x1be)](){const _0x2f2120=_0x20071b,_0x1c39b6=new _0x5afdc1();return _0x1c39b6[_0x2f2120(0x1c2)]=this[_0x2f2120(0x1bd)](this[_0x2f2120(0x1c1)]),_0x1c39b6;}[_0x20071b(0x1d5)](){const _0x5a0f9a=_0x20071b,_0x5764cb=this[_0x5a0f9a(0x1c4)];this[_0x5a0f9a(0x1ad)]({'tag':_0x5a0f9a(0x1af),'attributes':{'class':[zr,_0x5764cb['if'](_0x5a0f9a(0x1b9),_0x5a0f9a(0x1cb),_0x227840=>!_0x227840),_0x5764cb['if'](_0x5a0f9a(0x1bc),Gr)]},'children':[{'tag':_0x5a0f9a(0x1af),'attributes':{'class':[Jr]},'children':[this[_0x5a0f9a(0x1c6)]]},this[_0x5a0f9a(0x1c8)]],'on':{'click':_0x5764cb['to'](_0x5a0f9a(0x1b3))}});}[_0x20071b(0x1cd)](){const _0x359915=_0x20071b;this[_0x359915(0x1c6)][_0x359915(0x1c2)]=this[_0x359915(0x1bd)](this[_0x359915(0x1c1)]);}}
|