@ckeditor/ckeditor5-ai 47.4.0-alpha.4 → 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
|
-
|
|
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
|
-
const
|
|
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
|
-
const _0x4adc52=_0x212e;(function(_0x4da68d,_0x43bbf0){const _0x431752=_0x212e,_0x4534f4=_0x4da68d();while(!![]){try{const _0x369c27=parseInt(_0x431752(0xba))/0x1+-parseInt(_0x431752(0xfc))/0x2+parseInt(_0x431752(0xa8))/0x3+parseInt(_0x431752(0x7e))/0x4+parseInt(_0x431752(0xaa))/0x5*(parseInt(_0x431752(0xf9))/0x6)+parseInt(_0x431752(0xc4))/0x7+parseInt(_0x431752(0xd8))/0x8*(-parseInt(_0x431752(0x105))/0x9);if(_0x369c27===_0x43bbf0)break;else _0x4534f4['push'](_0x4534f4['shift']());}catch(_0x51d6b9){_0x4534f4['push'](_0x4534f4['shift']());}}}(_0x2b38,0x29ecb));import{BalloonPanelView as _0x48f9f5,ButtonView as _0x1e96b6,clickOutsideHandler as _0xf40a8b,FileDialogButtonView as _0xf7735a,IconView as _0x5c74f8,View as _0x10363f}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x2f67bd,IconDocument as _0x366f67,IconDocumentOutline as _0x44bf07,IconDropdownArrow as _0x3f56cb,IconLink as _0x2bb478,IconPaperClip as _0x20c5fc}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x2fbe32}from'./aichatcontextitembuttonview.js';function _0x2b38(){const _0x7a4dec=['locale','submitUrl','setContainerElement','_createResourcesBalloonView','children','_setupUrlBalloonClickOutsideHandler','_bindEventHandlers','addDocumentToContext','isOn','ck-ai-chat-context-controls__pending-contexts','updateResourceState','document','refreshBalloon','render','conversation','southArrowNorthEast','ck-ai-chat-context-controls__balloon-button','northArrowSouthWest','_handleUrlSubmit','content','ck-ai-chat-context-controls__add-context-balloon-panel','_toggleAddContextBalloon','reorganizeChips','ck-ai-chat-context-controls__add-context-button','AI_CHAT_CONTEXT_URL_LABEL','945105HVTXuG','_createBalloonButton','45UzPXrp','execute','current','enabled','clearCurrentContextItems','_getLimiterElement','setConversationContext','isLoading','ck-ai-chat-controls_context_show-more-button','hideAddContextBalloonPanel','type','_createContextButton','_addContextBalloonConfig','_resourcesBalloonView','hide','defaultPositions','150493QHeRcu','sources','showSourceResourcesBalloon','destroy','removeContextItemChip','southArrowNorth','_removeContextFromCollection','addFileToContext','_conversationContextsChips','_createAddContextBalloonPanelView','2253517XZqYlB','_overflowManager','ck-ai-chat-context-controls','isAnyResourceBalloonVisible','ck-ai-chat','tooltip','body','showUrlBalloonPanel','isReadOnly','overflowChips','element','source','setContextItemLoading','addUrlToContext','_setupAddContextBalloonClickOutsideHandler','_createBaseBalloonPanel','populateSourceResourceBalloon','addContextButtonView','find','files','288qPYzfu','_urlInputView','addResourceToContext','div','removeContextItem','fire','AI_CHAT_CONTEXT_ADD_CONTEXT','balloonView','pin','ck-ai-chat-context-controls__balloon-button-source','__arrow','focus','hideUrlBalloonPanel','ck-ai-chat-context-controls__url-balloon-panel','northArrowSouth','_setBalloonPanelContent','_handleAddContextButtonClick','closeSourceResourceBalloon','ck-ai-chat-controls-button','_addContextToCollection','createCollection','buttonView','menuitem','arrowView','AI_CHAT_CONTEXT_FILE_LABEL','setTemplate','label','loadSourceResources','setAddContextOptions','_setAddContextButtonEnabled','_setupTemplate','cancel','_createArrowView','223386Xijrem','add','northArrowSouthEast','403308krSupT','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','icon','ck-ai-chat-context-controls__show-more-balloon-panel','_urlBalloonPanelView','extendTemplate','addContextItem','bind','ck-ai-chat-context-chips-wrapper-balloon','205830NKXGhi','done','_createAddContextButtonView','closest','isHidden','searchInputVisibleFrom','urls','ck-reset_all-excluded','296636RhdqLN','clear','_setupAllBalloonClickOutsideHandlers','southArrowNorthWest','_addContextBalloonPanelView','_createUrlBalloonPanelView','bodyCollection','showAddContextBalloonPanel','_showSourceResourcesBalloon','_addUrlContent','set','_currentContextsChips','show','remove','clearConversationContextItems','isEnabled','isVisible'];_0x2b38=function(){return _0x7a4dec;};return _0x2b38();}import{AIChatContextPanelUrlInputView as _0x26d493}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x47e753}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x3b3cc5}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x5ef869}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x4adc52(0x96),_0x4adc52(0xc1),_0x4adc52(0xd1),_0x4adc52(0xda),_0x4adc52(0xdc),_0x4adc52(0xf3)];const ko=_0x4adc52(0xc6),Eo=_0x4adc52(0x98),vo=_0x4adc52(0xa3),Vo=_0x4adc52(0xa6),Io=_0x4adc52(0xe5),Po=_0x4adc52(0x9f),Ro=_0x4adc52(0xe1),Uo=_0x4adc52(0xea),Lo=_0x4adc52(0x104),No=_0x4adc52(0xb2),Oo=_0x4adc52(0xff),Mo=_0x4adc52(0xc8),Ho=[_0x48f9f5[_0x4adc52(0xb9)][_0x4adc52(0xa0)],_0x48f9f5[_0x4adc52(0xb9)][_0x4adc52(0xe6)],_0x48f9f5[_0x4adc52(0xb9)][_0x4adc52(0xfb)],_0x48f9f5[_0x4adc52(0xb9)][_0x4adc52(0x81)],_0x48f9f5[_0x4adc52(0xb9)][_0x4adc52(0xbf)],_0x48f9f5[_0x4adc52(0xb9)][_0x4adc52(0x9e)]];export class AIChatContextPanelView extends _0x10363f{[_0x4adc52(0xd5)];[_0x4adc52(0x89)]=this[_0x4adc52(0xec)]();[_0x4adc52(0xc2)]=this[_0x4adc52(0xec)]();[_0x4adc52(0xc5)];[_0x4adc52(0x82)];[_0x4adc52(0x100)];[_0x4adc52(0xd9)];[_0x4adc52(0xb7)];[_0x4adc52(0xb6)];[_0x4adc52(0x84)];constructor(_0x4c5b78,_0x2684b5){const _0x1a09d5=_0x4adc52;super(_0x4c5b78),this[_0x1a09d5(0x84)]=_0x2684b5[_0x1a09d5(0x84)],this[_0x1a09d5(0x89)]=this[_0x1a09d5(0xec)](),this[_0x1a09d5(0xc2)]=this[_0x1a09d5(0xec)](),this[_0x1a09d5(0xd5)]=this[_0x1a09d5(0x107)](_0x4c5b78),this[_0x1a09d5(0x82)]=this[_0x1a09d5(0xc3)](_0x4c5b78),this[_0x1a09d5(0x100)]=this[_0x1a09d5(0x83)](_0x4c5b78),this[_0x1a09d5(0xb7)]=this[_0x1a09d5(0x92)](_0x4c5b78,_0x2684b5);const _0x10a60b={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x1a09d5(0xc5)]=new _0x47e753(_0x4c5b78,this[_0x1a09d5(0x89)],_0x10a60b,this[_0x1a09d5(0x84)],this),this[_0x1a09d5(0xb6)]={'buttonView':this[_0x1a09d5(0xd5)],'balloonView':this[_0x1a09d5(0x82)],'hideMethod':this[_0x1a09d5(0xb3)][_0x1a09d5(0x103)](this),'showMethod':this[_0x1a09d5(0x85)][_0x1a09d5(0x103)](this)},this[_0x1a09d5(0xf6)](),this[_0x1a09d5(0x95)]();}[_0x4adc52(0x9c)](){const _0x2f8dff=_0x4adc52;super[_0x2f8dff(0x9c)](),this[_0x2f8dff(0x80)](),this[_0x2f8dff(0xc5)][_0x2f8dff(0x91)](this[_0x2f8dff(0xce)]),this[_0x2f8dff(0xc5)][_0x2f8dff(0xa5)]();}[_0x4adc52(0xbd)](){const _0x3b34a0=_0x4adc52;super[_0x3b34a0(0xbd)](),this[_0x3b34a0(0xc5)][_0x3b34a0(0xbd)](),this[_0x3b34a0(0xb7)][_0x3b34a0(0xbd)]();}[_0x4adc52(0x102)](_0x34073b,_0x4f2374){const _0x4eb496=_0x4adc52,_0x4d74c6=this[_0x4eb496(0xb5)](_0x34073b,_0x4eb496(0xac),!0x0,_0x4f2374);this[_0x4eb496(0xeb)](_0x4d74c6,this[_0x4eb496(0x89)]),this[_0x4eb496(0xc5)][_0x4eb496(0xa5)]();}[_0x4adc52(0xdc)](_0xef998b){const _0x4bdcdc=_0x4adc52;this[_0x4bdcdc(0xc0)](_0xef998b,this[_0x4bdcdc(0x89)]),this[_0x4bdcdc(0xc0)](_0xef998b,this[_0x4bdcdc(0xc5)][_0x4bdcdc(0xcd)]),this[_0x4bdcdc(0xc5)][_0x4bdcdc(0xa5)]();}[_0x4adc52(0xd0)](_0x55469e,_0x572730){const _0x3e2c2d=_0x4adc52;let _0x1a602f=this[_0x3e2c2d(0x89)][_0x3e2c2d(0xd6)](_0x574935=>_0x574935['id']===_0x55469e);_0x1a602f||(_0x1a602f=this[_0x3e2c2d(0xc5)][_0x3e2c2d(0xcd)][_0x3e2c2d(0xd6)](_0x5840f5=>_0x5840f5['id']===_0x55469e)),_0x1a602f&&(_0x1a602f[_0x3e2c2d(0xb1)]=_0x572730);}[_0x4adc52(0xb0)](_0x528c26){const _0x4de052=_0x4adc52;this[_0x4de052(0xc2)][_0x4de052(0x7f)]();for(const _0x1a17ce of _0x528c26){const _0x50fbf2=this[_0x4de052(0xb5)](_0x1a17ce,_0x4de052(0x9d),!0x1,!0x1);this[_0x4de052(0xeb)](_0x50fbf2,this[_0x4de052(0xc2)]);}}[_0x4adc52(0xae)](){const _0x4e670a=_0x4adc52;this[_0x4e670a(0x89)][_0x4e670a(0x7f)](),this[_0x4e670a(0xc5)][_0x4e670a(0x7f)]();}[_0x4adc52(0x8c)](){const _0x1c935a=_0x4adc52;this[_0x1c935a(0xc2)][_0x1c935a(0x7f)]();}[_0x4adc52(0x99)](_0x171843,_0x2e9782,_0x7ffbf7){const _0x4657f5=_0x4adc52;this[_0x4657f5(0xb7)][_0x4657f5(0x99)](_0x171843,_0x2e9782,_0x7ffbf7);}[_0x4adc52(0xb3)](){const _0x5c2677=_0x4adc52;this[_0x5c2677(0xa4)](!0x1);}[_0x4adc52(0x85)](){const _0x1e16a3=_0x4adc52;this[_0x1e16a3(0xa4)](!0x0);}[_0x4adc52(0xe4)](){const _0x27bf64=_0x4adc52;this[_0x27bf64(0x100)][_0x27bf64(0xb8)](),this[_0x27bf64(0xd5)][_0x27bf64(0x97)]=!0x1,this[_0x27bf64(0xd9)]&&this[_0x27bf64(0xd9)][_0x27bf64(0x7f)]();}[_0x4adc52(0xcb)](){const _0xc942be=_0x4adc52;this[_0xc942be(0x100)][_0xc942be(0x8a)](),this[_0xc942be(0xd5)][_0xc942be(0x97)]=!0x0;}[_0x4adc52(0x86)](_0x58617d){const _0x5e806d=_0x4adc52;this[_0x5e806d(0xb7)][_0x5e806d(0xbc)](_0x58617d),this[_0x5e806d(0xd5)][_0x5e806d(0x97)]=!0x0;}[_0x4adc52(0xd4)](_0x3e7939,_0x1e3355,_0x42af75,_0x22d2f2){const _0x563dff=_0x4adc52;this[_0x563dff(0xb7)][_0x563dff(0xd4)](_0x3e7939,_0x42af75,_0x22d2f2);}[_0x4adc52(0xe9)](_0x4c0faf){const _0x3fdc2b=_0x4adc52;this[_0x3fdc2b(0xb7)][_0x3fdc2b(0xe9)](_0x4c0faf),this[_0x3fdc2b(0xd5)][_0x3fdc2b(0x97)]=!0x1;}[_0x4adc52(0xf4)](_0x55474e){const _0x4aa1af=_0x4adc52;this[_0x4aa1af(0xe7)](this[_0x4aa1af(0x82)],this[_0x4aa1af(0x8f)],_0x55474e),this[_0x4aa1af(0xf5)](_0x55474e);}[_0x4adc52(0xf5)](_0x3c74bf){const _0x1060d7=_0x4adc52,_0x12cf9a=!_0x3c74bf[_0x1060d7(0x9a)][_0x1060d7(0x109)]&&_0x3c74bf[_0x1060d7(0x9a)][_0x1060d7(0xad)],_0x3f684e=_0x3c74bf[_0x1060d7(0x10b)][_0x1060d7(0xad)],_0x52a283=_0x3c74bf[_0x1060d7(0xd7)][_0x1060d7(0xad)];this[_0x1060d7(0xd5)][_0x1060d7(0x8d)]=_0x12cf9a||_0x3f684e||_0x52a283;}[_0x4adc52(0xf6)](){const _0x1172f6=_0x4adc52;this[_0x1172f6(0xf1)]({'tag':_0x1172f6(0xdb),'attributes':{'class':[ko,_0x1172f6(0x10c)]},'children':[{'tag':_0x1172f6(0xdb),'attributes':{'class':Eo},'children':this[_0x1172f6(0x89)]}]});}[_0x4adc52(0x95)](){const _0x52b1fd=_0x4adc52;this[_0x52b1fd(0xd5)]['on'](_0x52b1fd(0xab),()=>{const _0x1ca7d1=_0x52b1fd;this[_0x1ca7d1(0xe8)]();});}[_0x4adc52(0x107)](_0x31155e){const _0x50b62d=_0x4adc52,_0xdd8b13=new _0x1e96b6(_0x31155e);return _0xdd8b13[_0x50b62d(0x88)]({'label':_0x3b3cc5(_0x31155e,_0x50b62d(0xde)),'class':Uo+'\x20'+Vo,'icon':_0x20c5fc,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0xdd8b13;}[_0x4adc52(0xc3)](_0x49f196){const _0x56cc94=_0x4adc52;return this[_0x56cc94(0xd3)](_0x49f196,vo);}[_0x4adc52(0x83)](_0x424675){const _0x1f228c=_0x4adc52,_0x336635=this[_0x1f228c(0xd3)](_0x424675,Io);return this[_0x1f228c(0x87)](_0x336635,_0x424675),_0x336635;}[_0x4adc52(0x92)](_0x2f1ccf,_0x4ad403){const _0x90720c=_0x4adc52,_0x1e00f1={'searchInputVisibleFrom':_0x4ad403[_0x90720c(0x10a)],'onBackToContext':()=>{const _0x49e7c5=_0x90720c;this[_0x49e7c5(0x85)](),this[_0x49e7c5(0x82)][_0x49e7c5(0xe0)]({'target':this[_0x49e7c5(0xd5)][_0x49e7c5(0xce)],'limiter':this[_0x49e7c5(0xaf)](),'positions':Ho});},'onResourceSelected':(_0x45f631,_0x2866eb)=>{const _0x1a4466=_0x90720c;this[_0x1a4466(0xdd)](_0x1a4466(0xda),{'source':_0x45f631,'resource':_0x2866eb});},'onLoadSourceResources':_0x29624e=>{const _0x3b99c2=_0x90720c;this[_0x3b99c2(0xdd)](_0x3b99c2(0xf3),_0x29624e);},'onBalloonClosed':()=>{const _0x2cfd9d=_0x90720c;this[_0x2cfd9d(0xd5)][_0x2cfd9d(0x97)]=!0x1;},'getLimiterElement':()=>this[_0x90720c(0xaf)](),'getTargetElement':()=>this[_0x90720c(0xd5)][_0x90720c(0xce)]};return new _0x5ef869(_0x2f1ccf,_0x4ad403[_0x90720c(0x84)],_0x1e00f1);}[_0x4adc52(0xaf)](){const _0x4b3519=_0x4adc52;return this[_0x4b3519(0xce)]?.[_0x4b3519(0x108)]('.'+Mo)||document[_0x4b3519(0xca)];}[_0x4adc52(0xd3)](_0x43261a,_0x34b94e){const _0x296aba=_0x4adc52,_0xd69494=new _0x48f9f5(_0x43261a);return _0xd69494[_0x296aba(0x101)]({'attributes':{'class':_0x34b94e}}),this[_0x296aba(0x84)][_0x296aba(0xfa)](_0xd69494),_0xd69494;}[_0x4adc52(0xe7)](_0x367520,_0x1336a3,_0x2e2da8){const _0x36d014=_0x4adc52;if(_0x367520[_0x36d014(0xa2)][_0x36d014(0x7f)](),!_0x2e2da8[_0x36d014(0x9a)][_0x36d014(0x109)]&&_0x2e2da8[_0x36d014(0x9a)][_0x36d014(0xad)]){const _0x432ec1=this[_0x36d014(0xa9)](_0x1336a3,{'label':_0x3b3cc5(_0x1336a3,_0x36d014(0xfd)),'icon':_0x366f67});_0x432ec1['on'](_0x36d014(0xab),()=>{const _0x4e0cc8=_0x36d014;this[_0x4e0cc8(0xdd)](_0x4e0cc8(0x96)),this[_0x4e0cc8(0xb3)]();}),_0x367520[_0x36d014(0xa2)][_0x36d014(0xfa)](_0x432ec1);}if(_0x2e2da8[_0x36d014(0x10b)][_0x36d014(0xad)]){const _0x11f647=this[_0x36d014(0xa9)](_0x1336a3,{'label':_0x3b3cc5(_0x1336a3,_0x36d014(0xa7)),'icon':_0x2bb478});_0x11f647['on'](_0x36d014(0xab),()=>{const _0x874e04=_0x36d014;this[_0x874e04(0xb3)](),this[_0x874e04(0xcb)](),this[_0x874e04(0x100)][_0x874e04(0xe0)]({'target':this[_0x874e04(0xd5)][_0x874e04(0xce)],'limiter':this[_0x874e04(0xaf)](),'positions':Ho}),this[_0x874e04(0xd9)][_0x874e04(0xe3)]();}),_0x367520[_0x36d014(0xa2)][_0x36d014(0xfa)](_0x11f647);}if(_0x2e2da8[_0x36d014(0xd7)][_0x36d014(0xad)]){const _0x4199d7=new _0xf7735a(_0x1336a3);_0x4199d7[_0x36d014(0x88)]({'label':_0x3b3cc5(_0x1336a3,_0x36d014(0xf0)),'icon':_0x2f67bd,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x4199d7['on'](_0x36d014(0x106),(_0x542dcc,_0x5ea601)=>{const _0x15d996=_0x36d014;this[_0x15d996(0xdd)](_0x15d996(0xc1),_0x5ea601),this[_0x15d996(0xb3)]();}),_0x4199d7[_0x36d014(0xc9)]=!0x0,_0x367520[_0x36d014(0xa2)][_0x36d014(0xfa)](_0x4199d7);}for(const _0x861d6f of _0x2e2da8[_0x36d014(0xbb)]){const _0x5d6f83=this[_0x36d014(0xa9)](_0x1336a3,{'label':_0x861d6f[_0x36d014(0xf2)],'icon':_0x861d6f[_0x36d014(0xfe)]||_0x44bf07,'type':_0x36d014(0xcf)});_0x367520[_0x36d014(0xa2)][_0x36d014(0xfa)](_0x5d6f83),_0x5d6f83['on'](_0x36d014(0xab),()=>{const _0x2efdf1=_0x36d014;this[_0x2efdf1(0xb3)](),this[_0x2efdf1(0x86)](_0x861d6f);});}}[_0x4adc52(0x87)](_0x527f53,_0x5348ab){const _0x1f8e4f=_0x4adc52;this[_0x1f8e4f(0xd9)]=new _0x26d493(_0x5348ab),this[_0x1f8e4f(0xd9)]['on'](_0x1f8e4f(0x90),(_0x50d735,_0x1b1b4f)=>{const _0x568ec6=_0x1f8e4f;this[_0x568ec6(0xa1)](_0x1b1b4f);}),this[_0x1f8e4f(0xd9)]['on'](_0x1f8e4f(0xf7),()=>{const _0x336ea6=_0x1f8e4f;this[_0x336ea6(0xe4)](),this[_0x336ea6(0x85)](),this[_0x336ea6(0x82)][_0x336ea6(0xe0)]({'target':this[_0x336ea6(0xd5)][_0x336ea6(0xce)],'limiter':this[_0x336ea6(0xaf)](),'positions':Ho});}),this[_0x1f8e4f(0xd9)]['on'](_0x1f8e4f(0x9b),()=>{const _0x594794=_0x1f8e4f;this[_0x594794(0x100)][_0x594794(0x8e)]&&this[_0x594794(0x100)][_0x594794(0xe0)]({'target':this[_0x594794(0xd5)][_0x594794(0xce)],'limiter':this[_0x594794(0xaf)](),'positions':Ho});}),_0x527f53[_0x1f8e4f(0xa2)][_0x1f8e4f(0xfa)](this[_0x1f8e4f(0xd9)]);}[_0x4adc52(0xa9)](_0x11a0c0,_0x289a81){const _0x4301d8=_0x4adc52,_0x1088b3=_0x4301d8(0xcf)===_0x289a81[_0x4301d8(0xb4)]?new SourcesBalloonButtonView(_0x11a0c0):new _0x1e96b6(_0x11a0c0);return _0x1088b3[_0x4301d8(0x88)]({'label':_0x289a81[_0x4301d8(0xf2)],'icon':_0x289a81[_0x4301d8(0xfe)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x1088b3;}[_0x4adc52(0x80)](){const _0x67dcc=_0x4adc52;this[_0x67dcc(0xd2)](),this[_0x67dcc(0x94)]();}[_0x4adc52(0x94)](){const _0x3c4799=_0x4adc52;_0xf40a8b({'emitter':this[_0x3c4799(0x100)],'contextElements':[this[_0x3c4799(0x100)][_0x3c4799(0xce)]],'callback':()=>{const _0x509195=_0x3c4799;this[_0x509195(0xe4)]();},'activator':()=>this[_0x3c4799(0x100)][_0x3c4799(0x8e)]});}[_0x4adc52(0xa4)](_0x457374){const _0x12a027=_0x4adc52,_0xada094=this[_0x12a027(0xb6)];_0xada094[_0x12a027(0xed)][_0x12a027(0x97)]=_0x457374,_0x457374?_0xada094[_0x12a027(0xdf)][_0x12a027(0x8a)]():_0xada094[_0x12a027(0xdf)][_0x12a027(0xb8)]();}[_0x4adc52(0xd2)](){const _0x47a477=_0x4adc52,{balloonView:_0x506c9d,buttonView:_0x234e90,hideMethod:_0x4e286e}=this[_0x47a477(0xb6)];_0xf40a8b({'emitter':_0x506c9d,'contextElements':[_0x506c9d[_0x47a477(0xce)],_0x234e90[_0x47a477(0xce)]],'callback':()=>{_0x4e286e();},'activator':()=>_0x234e90[_0x47a477(0x97)]&&!this[_0x47a477(0x100)][_0x47a477(0x8e)]&&!this[_0x47a477(0xb7)][_0x47a477(0xc7)]()});}[_0x4adc52(0xb5)](_0x2e2c10,_0x442932,_0x3d7903=!0x1,_0x29654d=!0x1){const _0x24c8d5=_0x4adc52,_0x519dc2=_0x24c8d5(0x9d)===_0x442932||!0x0===_0x2e2c10[_0x24c8d5(0xcc)],_0x47841b=new _0x2fbe32(this[_0x24c8d5(0x8f)],_0x2e2c10,_0x519dc2,_0x3d7903,_0x29654d);return _0x519dc2||_0x47841b['on'](_0x24c8d5(0xbe),()=>{const _0x3b8b0b=_0x24c8d5;this[_0x3b8b0b(0xdd)](_0x3b8b0b(0xdc),_0x47841b['id']);}),_0x47841b;}[_0x4adc52(0xeb)](_0x1774a3,_0x51489f){const _0xc1e2fc=_0x4adc52;_0x51489f[_0xc1e2fc(0xfa)](_0x1774a3,0x0);}[_0x4adc52(0xc0)](_0x3a6022,_0x3d4b91){const _0x3f79d8=_0x4adc52,_0x55cab0=_0x3d4b91[_0x3f79d8(0xd6)](_0x53b284=>_0x53b284['id']===_0x3a6022);_0x55cab0&&_0x3d4b91[_0x3f79d8(0x8b)](_0x55cab0);}[_0x4adc52(0xe8)](){const _0x111663=_0x4adc52;this[_0x111663(0xd5)][_0x111663(0x97)]?this[_0x111663(0xb3)]():(this[_0x111663(0x85)](),this[_0x111663(0x82)][_0x111663(0xe0)]({'target':this[_0x111663(0xd5)][_0x111663(0xce)],'limiter':this[_0x111663(0xaf)](),'positions':Ho}));}[_0x4adc52(0xa1)](_0x8a9c5b){const _0x549946=_0x4adc52;this[_0x549946(0xd9)][_0x549946(0x7f)](),this[_0x549946(0xe4)](),this[_0x549946(0xdd)](_0x549946(0xd1),_0x8a9c5b);}}function _0x212e(_0x1ccb41,_0x32c7f1){const _0x2b38bd=_0x2b38();return _0x212e=function(_0x212e69,_0x2682c2){_0x212e69=_0x212e69-0x7e;let _0x2776c5=_0x2b38bd[_0x212e69];return _0x2776c5;},_0x212e(_0x1ccb41,_0x32c7f1);}export class SourcesBalloonButtonView extends _0x1e96b6{[_0x4adc52(0xef)];constructor(_0xfc7598){const _0x36024d=_0x4adc52;super(_0xfc7598),this[_0x36024d(0x88)]({'withText':!0x0,'role':_0x36024d(0xee)}),this[_0x36024d(0xef)]=this[_0x36024d(0xf8)](),this[_0x36024d(0x101)]({'attributes':{'class':[Ro]}});}[_0x4adc52(0x9c)](){const _0x17584e=_0x4adc52;super[_0x17584e(0x9c)](),this[_0x17584e(0x93)][_0x17584e(0xfa)](this[_0x17584e(0xef)]);}[_0x4adc52(0xf8)](){const _0x51eac2=_0x4adc52,_0x41be35=new _0x5c74f8();return _0x41be35[_0x51eac2(0xa2)]=_0x3f56cb,_0x41be35[_0x51eac2(0x101)]({'attributes':{'class':Ro+_0x51eac2(0xe2)}}),_0x41be35;}}
|
|
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 _0x23067d=_0x3f97;(function(_0x153316,_0x2ef88b){const _0xd3f95e=_0x3f97,_0x53be0f=_0x153316();while(!![]){try{const _0x2aa56f=-parseInt(_0xd3f95e(0x17a))/0x1*(parseInt(_0xd3f95e(0x11f))/0x2)+-parseInt(_0xd3f95e(0x149))/0x3+parseInt(_0xd3f95e(0x143))/0x4+-parseInt(_0xd3f95e(0x16d))/0x5*(-parseInt(_0xd3f95e(0x16b))/0x6)+-parseInt(_0xd3f95e(0x16e))/0x7+parseInt(_0xd3f95e(0x17c))/0x8+-parseInt(_0xd3f95e(0x12a))/0x9*(-parseInt(_0xd3f95e(0x144))/0xa);if(_0x2aa56f===_0x2ef88b)break;else _0x53be0f['push'](_0x53be0f['shift']());}catch(_0x2e0176){_0x53be0f['push'](_0x53be0f['shift']());}}}(_0x7d38,0x97dab));import{Collection as _0x536faf}from'ckeditor5/src/utils.js';import{IconAI as _0x54d5a5,IconBulb as _0x5e110f,IconWeb as _0x50c83b}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x276fc9,ButtonLabelView as _0x5aa600,ButtonView as _0x4e05d0,createDropdown as _0x3ba751,IconView as _0x1f8dd1,UIModel as _0x1241d6,View as _0x421a9a}from'ckeditor5/src/ui.js';import{getTranslation as _0x987e38}from'../../../aicore/utils/common-translations.js';function _0x7d38(){const _0x56dc4b=['_createReasoningButton','webSearchActive','model','isOn','AI_CHAT_DISABLE_REASONING','_modelSelectionDropdown','setReasoning','webSearch','1053612wHMwJb','10lHDujW','tooltip','_modelNameView','span','AI_CHAT_REASONING','2800803lMpXFk','AI_CHAT_ENABLE_REASONING','clear','isVisible','ck-ai-chat-controls-button','enabled','activeModelName','_createCommandsButton','selectModel','listenTo','_reasoningButton','_commandsButton','name','AI_CHAT_ENABLE_WEB_SEARCH','bind','_createWebSearchButton','ck-ai-chat-controls__model-selection__item-description','setWebSearch','toLowerCase','log','extendTemplate','set','activeModelId','setModel','setTemplate','AI_CHAT_CAPABILITIES_NO','label','AI_CHAT_COMMANDS','_createModelNameView','Commands\x20are\x20not\x20implemented\x20yet.','AI_CHAT_DISABLE_WEB_SEARCH','reasoningActive','button','ck-ai-chat-controls__model-selection','102lKMspB','AI_CHAT_CAPABILITIES_YES','169610gIZoBG','7333578VucBFQ','ck-button__label','_createModelSelectionDropdown','locale','buttonView','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','withText','description','fire','setModelList','ck-ai-chat-controls__model-name','_modelSelectionDropdownItems','64618bwLGHB','modelSelectorVisible','1660944vSOyiG','ck-ai-chat-controls__model-selection__item-name','execute','enableModelSelector','reasoning','startsWith','2ROkZqQ','addMany','ck-ai-chat-controls-button--commands','isEnabled','createCollection','disableModelSelector','toggleReasoning','_webSearchButton','bindTemplate','text','source','14581557CBNTLW','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','modelSelectorEnabled','ck-hidden','agent','div','ck-ai-chat-controls__model-selection__item-capabilities','content','add','menuitemradio','toggleWebSearch','style','ck-ai-chat__prompt-capabilities','capabilities','AI_CHAT_SEARCH_WEB','length','_getCapabilityParts'];_0x7d38=function(){return _0x56dc4b;};return _0x7d38();}function _0x3f97(_0xc82fba,_0x149811){const _0x7d3883=_0x7d38();return _0x3f97=function(_0x3f97d7,_0x36116b){_0x3f97d7=_0x3f97d7-0x11f;let _0x21aaef=_0x7d3883[_0x3f97d7];return _0x21aaef;},_0x3f97(_0xc82fba,_0x149811);}const yo=_0x23067d(0x136),Uo=_0x23067d(0x14d),Go=_0x23067d(0x121),jo=_0x23067d(0x16a),Yo=_0x23067d(0x17d),qo=_0x23067d(0x159),zo=_0x23067d(0x130),Fo='n';export class AIChatPromptCapabilitiesView extends _0x421a9a{[_0x23067d(0x126)];[_0x23067d(0x153)];[_0x23067d(0x154)];[_0x23067d(0x140)];[_0x23067d(0x179)];[_0x23067d(0x146)];constructor(_0x5b1c48){const _0x29f3fd=_0x23067d;super(_0x5b1c48),this[_0x29f3fd(0x15e)](_0x29f3fd(0x13c),!0x1),this[_0x29f3fd(0x15e)](_0x29f3fd(0x168),!0x1),this[_0x29f3fd(0x15e)](_0x29f3fd(0x17b),!0x0),this[_0x29f3fd(0x15e)](_0x29f3fd(0x12c),!0x0),this[_0x29f3fd(0x15e)](_0x29f3fd(0x15f),null),this[_0x29f3fd(0x15e)](_0x29f3fd(0x14f),null),this[_0x29f3fd(0x140)]=this[_0x29f3fd(0x170)](),this[_0x29f3fd(0x146)]=this[_0x29f3fd(0x165)](),this[_0x29f3fd(0x126)]=this[_0x29f3fd(0x158)](),this[_0x29f3fd(0x153)]=this[_0x29f3fd(0x13b)](),this[_0x29f3fd(0x154)]=this[_0x29f3fd(0x150)](),this[_0x29f3fd(0x140)][_0x29f3fd(0x172)][_0x29f3fd(0x157)](_0x29f3fd(0x14c))['to'](this,_0x29f3fd(0x17b),_0xe6de17=>_0xe6de17),this[_0x29f3fd(0x140)][_0x29f3fd(0x172)][_0x29f3fd(0x157)](_0x29f3fd(0x145))['to'](this,_0x29f3fd(0x12c),_0x2acaeb=>_0x2acaeb?this[_0x29f3fd(0x140)][_0x29f3fd(0x172)][_0x29f3fd(0x163)]:_0x987e38(this[_0x29f3fd(0x171)],_0x29f3fd(0x173))),this[_0x29f3fd(0x140)][_0x29f3fd(0x157)](_0x29f3fd(0x122))['to'](this,_0x29f3fd(0x12c),_0x5abafa=>_0x5abafa),this[_0x29f3fd(0x126)][_0x29f3fd(0x157)](_0x29f3fd(0x13e))['to'](this,_0x29f3fd(0x13c),_0x5c5f86=>_0x5c5f86),this[_0x29f3fd(0x126)][_0x29f3fd(0x157)](_0x29f3fd(0x174))['to'](this,_0x29f3fd(0x17b),_0x4f3cb3=>!_0x4f3cb3),this[_0x29f3fd(0x126)][_0x29f3fd(0x157)](_0x29f3fd(0x145))['to'](this,_0x29f3fd(0x13c),_0x349592=>_0x987e38(this[_0x29f3fd(0x171)],_0x349592?_0x29f3fd(0x167):_0x29f3fd(0x156))),this[_0x29f3fd(0x153)][_0x29f3fd(0x157)](_0x29f3fd(0x13e))['to'](this,_0x29f3fd(0x168),_0x4c9769=>_0x4c9769),this[_0x29f3fd(0x153)][_0x29f3fd(0x157)](_0x29f3fd(0x174))['to'](this,_0x29f3fd(0x17b),_0x297ed4=>!_0x297ed4),this[_0x29f3fd(0x153)][_0x29f3fd(0x157)](_0x29f3fd(0x145))['to'](this,_0x29f3fd(0x168),_0x204ca9=>_0x987e38(this[_0x29f3fd(0x171)],_0x204ca9?_0x29f3fd(0x13f):_0x29f3fd(0x14a))),this[_0x29f3fd(0x161)]({'tag':_0x29f3fd(0x12f),'attributes':{'class':[yo]},'children':[this[_0x29f3fd(0x140)],this[_0x29f3fd(0x146)],this[_0x29f3fd(0x126)],this[_0x29f3fd(0x153)],this[_0x29f3fd(0x154)]]}),this[_0x29f3fd(0x179)]=new _0x536faf(),_0x276fc9(this[_0x29f3fd(0x140)],this[_0x29f3fd(0x179)]);}[_0x23067d(0x177)](_0x4c190f,_0x20f00e){const _0x40501c=_0x23067d;if(this[_0x40501c(0x15e)](_0x40501c(0x17b),!(_0x20f00e&&_0x4c190f[_0x40501c(0x139)]<=0x1)),this[_0x40501c(0x179)][_0x40501c(0x14b)](),_0x4c190f?.[_0x40501c(0x139)])for(const _0xc58aff of _0x4c190f){const _0x449c58=new _0x1241d6({'label':_0xc58aff[_0x40501c(0x155)],'withText':!0x0,'role':_0x40501c(0x133),'id':_0xc58aff['id'],'model':_0xc58aff});_0x449c58[_0x40501c(0x157)](_0x40501c(0x13e))['to'](this,_0x40501c(0x15f),_0x6d64e1=>_0x6d64e1===_0xc58aff['id']),this[_0x40501c(0x179)][_0x40501c(0x132)]({'type':_0x40501c(0x169),'model':_0x449c58,'labelView':new Js(this[_0x40501c(0x171)],_0xc58aff)});}}[_0x23067d(0x15a)](_0x3a322e){const _0xcbc7ea=_0x23067d;this[_0xcbc7ea(0x15e)](_0xcbc7ea(0x13c),_0x3a322e);}[_0x23067d(0x141)](_0x56b59a){const _0x45c722=_0x23067d;this[_0x45c722(0x15e)](_0x45c722(0x168),_0x56b59a);}[_0x23067d(0x160)](_0x1a73a7){const _0x64640e=_0x23067d;if(!_0x1a73a7)return;this[_0x64640e(0x15f)]=_0x1a73a7['id'],this[_0x64640e(0x14f)]=_0x1a73a7[_0x64640e(0x155)]||_0x1a73a7['id'],this[_0x64640e(0x140)][_0x64640e(0x172)][_0x64640e(0x15e)](_0x64640e(0x163),_0x1a73a7[_0x64640e(0x155)]),this[_0x64640e(0x140)][_0x64640e(0x172)][_0x64640e(0x15e)](_0x64640e(0x145),_0x1a73a7[_0x64640e(0x155)]);const _0x4200c0=_0x1a73a7[_0x64640e(0x137)][_0x64640e(0x142)]?.[_0x64640e(0x14e)]??!0x1;this[_0x64640e(0x15e)](_0x64640e(0x13c),!0x1),this[_0x64640e(0x126)][_0x64640e(0x15e)](_0x64640e(0x13e),!0x1),this[_0x64640e(0x126)][_0x64640e(0x15e)](_0x64640e(0x122),_0x4200c0),this[_0x64640e(0x126)][_0x64640e(0x15e)](_0x64640e(0x14c),_0x4200c0);const _0x5b4561=_0x1a73a7[_0x64640e(0x137)][_0x64640e(0x180)]?.[_0x64640e(0x14e)]??!0x1;this[_0x64640e(0x15e)](_0x64640e(0x168),!0x1),this[_0x64640e(0x153)][_0x64640e(0x15e)](_0x64640e(0x13e),!0x1),this[_0x64640e(0x153)][_0x64640e(0x15e)](_0x64640e(0x122),_0x5b4561),this[_0x64640e(0x153)][_0x64640e(0x15e)](_0x64640e(0x14c),_0x5b4561);}[_0x23067d(0x17f)](){const _0x3bd0f6=_0x23067d;this[_0x3bd0f6(0x15e)](_0x3bd0f6(0x12c),!0x0),this[_0x3bd0f6(0x15e)](_0x3bd0f6(0x17b),!0x0);}[_0x23067d(0x124)](_0x1fe4b1){const _0x136264=_0x23067d;this[_0x136264(0x15e)](_0x136264(0x12c),!0x1),_0x1fe4b1&&this[_0x136264(0x15e)](_0x136264(0x17b),!0x1);}[_0x23067d(0x158)](){const _0x4f8a99=_0x23067d,_0x2ca694=new _0x4e05d0();return _0x2ca694[_0x4f8a99(0x15e)]({'label':_0x987e38(this[_0x4f8a99(0x171)],_0x4f8a99(0x138)),'icon':_0x50c83b,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x2ca694['on'](_0x4f8a99(0x17e),()=>{const _0x4870ec=_0x4f8a99;this[_0x4870ec(0x176)](_0x4870ec(0x134));}),_0x2ca694;}[_0x23067d(0x13b)](){const _0x5ad203=_0x23067d,_0x476310=new _0x4e05d0();return _0x476310[_0x5ad203(0x15e)]({'label':_0x987e38(this[_0x5ad203(0x171)],_0x5ad203(0x148)),'icon':_0x5e110f,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x476310['on'](_0x5ad203(0x17e),()=>{const _0x47d5bf=_0x5ad203;this[_0x47d5bf(0x176)](_0x47d5bf(0x125));}),_0x476310;}[_0x23067d(0x150)](){const _0x87a658=_0x23067d,_0x1ec238=new _0x4e05d0();return _0x1ec238[_0x87a658(0x15e)]({'label':_0x987e38(this[_0x87a658(0x171)],_0x87a658(0x164)),'icon':_0x54d5a5,'withText':!0x0,'class':Uo,'isToggleable':!0x0,'tooltip':_0x987e38(this[_0x87a658(0x171)],_0x87a658(0x164)),'tooltipPosition':Fo}),_0x1ec238[_0x87a658(0x15d)]({'attributes':{'class':[Go]}}),_0x1ec238['on'](_0x87a658(0x17e),()=>{const _0x458c25=_0x87a658;console[_0x458c25(0x15c)](_0x458c25(0x166)),alert(_0x458c25(0x166));}),_0x1ec238;}[_0x23067d(0x170)](){const _0x412f81=_0x23067d,_0x28188c=_0x3ba751(this[_0x412f81(0x171)]);return _0x28188c[_0x412f81(0x15e)]({'panelPosition':'ne','class':[jo]}),_0x28188c[_0x412f81(0x172)][_0x412f81(0x15e)]({'label':_0x987e38(this[_0x412f81(0x171)],_0x412f81(0x12b)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Fo}),this[_0x412f81(0x152)](_0x28188c,_0x412f81(0x17e),_0x4cd2c8=>{const _0x138a66=_0x412f81;this[_0x138a66(0x176)](_0x138a66(0x151),_0x4cd2c8[_0x138a66(0x129)][_0x138a66(0x13d)]);}),_0x28188c;}[_0x23067d(0x165)](){const _0x145082=_0x23067d,_0x136105=new Jo(this[_0x145082(0x171)]);return _0x136105[_0x145082(0x157)](_0x145082(0x128))['to'](this,_0x145082(0x14f),_0x479a94=>_0x479a94??''),_0x136105[_0x145082(0x157)](_0x145082(0x14c))['to'](this,_0x145082(0x17b),this,_0x145082(0x14f),(_0x1d8a55,_0x894ccb)=>!_0x1d8a55&&!_0x894ccb?.[_0x145082(0x15b)]()[_0x145082(0x181)](_0x145082(0x12e))),_0x136105;}}class Js extends _0x5aa600{constructor(_0x3d5f4a,_0x4b0e62){const _0x3527a0=_0x23067d;super();const _0x211c91=this[_0x3527a0(0x127)],_0x267164=this[_0x3527a0(0x123)]();this[_0x3527a0(0x161)]({'tag':_0x3527a0(0x12f),'attributes':{'class':['ck',_0x3527a0(0x16f)],'style':_0x211c91['to'](_0x3527a0(0x135)),'id':_0x211c91['to']('id')},'children':[{'tag':_0x3527a0(0x12f),'attributes':{'class':[Yo]},'children':[{'text':_0x211c91['to'](_0x3527a0(0x128))}]},{'tag':_0x3527a0(0x12f),'attributes':{'class':[qo]},'children':[{'tag':_0x3527a0(0x147),'children':[{'text':_0x4b0e62[_0x3527a0(0x175)]}]}]},{'tag':_0x3527a0(0x12f),'attributes':{'class':[zo]},'children':_0x267164}]}),_0x267164[_0x3527a0(0x120)](this[_0x3527a0(0x13a)](_0x3d5f4a,_0x50c83b,_0x3527a0(0x138),_0x4b0e62[_0x3527a0(0x137)][_0x3527a0(0x142)]?.[_0x3527a0(0x14e)]??!0x1)),_0x267164[_0x3527a0(0x120)](this[_0x3527a0(0x13a)](_0x3d5f4a,_0x5e110f,_0x3527a0(0x148),_0x4b0e62[_0x3527a0(0x137)][_0x3527a0(0x180)]?.[_0x3527a0(0x14e)]??!0x1));}[_0x23067d(0x13a)](_0x4badd6,_0xd51b6c,_0x4ad453,_0x3efd45){const _0x578c53=_0x23067d,_0x47aa48=new _0x1f8dd1();_0x47aa48[_0x578c53(0x131)]=_0xd51b6c;const _0x537001=new _0x421a9a(_0x4badd6);_0x537001[_0x578c53(0x161)]({'tag':_0x578c53(0x147),'children':[{'text':_0x987e38(_0x4badd6,_0x4ad453)+':\x20'}]});const _0x45ebfb=new _0x421a9a(_0x4badd6);return _0x45ebfb[_0x578c53(0x161)]({'tag':_0x578c53(0x147),'children':[{'text':_0x987e38(_0x4badd6,_0x3efd45?_0x578c53(0x16c):_0x578c53(0x162))}]}),[_0x47aa48,_0x537001,_0x45ebfb];}}class Jo extends _0x421a9a{constructor(_0x21a1c5){const _0x2d9735=_0x23067d;super(_0x21a1c5),this[_0x2d9735(0x15e)](_0x2d9735(0x128),void 0x0),this[_0x2d9735(0x15e)](_0x2d9735(0x14c),!0x0);const _0x4c2eba=this[_0x2d9735(0x127)];this[_0x2d9735(0x161)]({'tag':_0x2d9735(0x147),'attributes':{'class':['ck',_0x2d9735(0x178),_0x4c2eba['if'](_0x2d9735(0x14c),_0x2d9735(0x12d),_0x502f05=>!_0x502f05)]},'children':[{'text':_0x4c2eba['to'](_0x2d9735(0x128))}]});}}
|
|
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
|
-
function
|
|
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)]);}}
|