@ckeditor/ckeditor5-ai 47.4.0-alpha.4 → 47.4.0-alpha.6
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 _0x565e85=_0x44f0;(function(_0x121c70,_0x11f1d8){const _0x1952fd=_0x44f0,_0x1f316d=_0x121c70();while(!![]){try{const _0x5d3940=parseInt(_0x1952fd(0xf1))/0x1*(-parseInt(_0x1952fd(0xf5))/0x2)+-parseInt(_0x1952fd(0xdc))/0x3*(parseInt(_0x1952fd(0xfd))/0x4)+-parseInt(_0x1952fd(0xf4))/0x5*(parseInt(_0x1952fd(0xda))/0x6)+-parseInt(_0x1952fd(0xec))/0x7+-parseInt(_0x1952fd(0x114))/0x8+parseInt(_0x1952fd(0x106))/0x9+parseInt(_0x1952fd(0x10a))/0xa;if(_0x5d3940===_0x11f1d8)break;else _0x1f316d['push'](_0x1f316d['shift']());}catch(_0x21ab02){_0x1f316d['push'](_0x1f316d['shift']());}}}(_0xcc3e,0x2aa15));function _0x44f0(_0x1070ca,_0x6f9fcc){const _0xcc3e7c=_0xcc3e();return _0x44f0=function(_0x44f0c3,_0x80ed9b){_0x44f0c3=_0x44f0c3-0xd3;let _0x100099=_0xcc3e7c[_0x44f0c3];return _0x100099;},_0x44f0(_0x1070ca,_0x6f9fcc);}import{ButtonView as _0x660fdc,IconView as _0xe19375}from'ckeditor5/src/ui.js';import{IconClose as _0x1af7eb,IconDocument as _0x5e5357,IconFileUpload as _0x14df55,IconLink as _0xa1c169,IconSelection as _0x6def14}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x288f4a}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x41fcc7}from'../../../aicore/ui/aispinner.js';const mn={'file':_0x14df55,'document':_0x5e5357,'web-resource':_0xa1c169,'text':_0x14df55,'selection':_0x6def14},dn=_0x565e85(0xd8),un=_0x565e85(0xd9),_n=_0x565e85(0xeb),kn=_0x565e85(0xe7),xn=_0x565e85(0xf0),bn=_0x565e85(0xdd),wn='n';function _0xcc3e(){const _0x2d8f9c=['removeEventListener','remove','label','11347320obnxGh','_handleAnimationEndOnce','isVisible','webkitAnimationEnd','div','_initializeProperties','add','fire','removeContextItemChip','setTemplate','970328UKxkIM','type','ck-hidden','render','isLoading','_createTemplateChildren','ck-ai-chat-context-chip','ck-ai-chat-context-chip_wide','90XWTKdi','bindTemplate','38616doLxlm','ck-ai-chat-context-controls__chip-tooltip','_createRemoveButton','selection','uiId','set','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','disableAnimationOnEnter','_createLabelElement','ck-ai-chat-context-chip_new-chip','small','ck-ai-chat-context-chip__label','bind','tooltip','itemType','ck-ai-chat-context-chip_document','1827651jKXzoR','element','_createLoaderIcon','slice','ck-ai-chat-context-chip__type-icon','11OitVsx','_isAnimationOnEnterEnabled','_createIconView','77755FvWBBZ','54566ldPFjA','length','_createTemplateAttributes','content','addEventListener','extendTemplate','span','lastIndexOf','104mXNRvR','readonly','_setupRemoveButtonEvent','document','classList','locale','animationend','execute','_setupTemplate','2612835NCqjZI'];_0xcc3e=function(){return _0x2d8f9c;};return _0xcc3e();}export class AIChatContextItemButtonView extends _0x660fdc{constructor(_0x331035,_0x5b4ffc,_0x192231,_0x13b9a0,_0x5d0be2=!0x1){const _0x3b0a62=_0x565e85;super(_0x331035),this[_0x3b0a62(0xf2)]=_0x13b9a0,this[_0x3b0a62(0x10f)](_0x5b4ffc,_0x192231,_0x5d0be2),this[_0x3b0a62(0x105)]();}[_0x565e85(0xd5)](){const _0x11d9f4=_0x565e85;super[_0x11d9f4(0xd5)](),this[_0x11d9f4(0xf2)]&&this[_0x11d9f4(0xed)]&&(this[_0x11d9f4(0xed)][_0x11d9f4(0x101)][_0x11d9f4(0x110)](_0x11d9f4(0xe5)),this[_0x11d9f4(0x10b)](this[_0x11d9f4(0xed)],()=>{const _0x289e1a=_0x11d9f4;this[_0x289e1a(0xed)]&&this[_0x289e1a(0xed)][_0x289e1a(0x101)][_0x289e1a(0x108)](_0x289e1a(0xe5));}));}[_0x565e85(0xe3)](){const _0x398adf=_0x565e85;this[_0x398adf(0xf2)]=!0x1,this[_0x398adf(0xed)]&&this[_0x398adf(0xed)][_0x398adf(0x101)][_0x398adf(0x108)](_0x398adf(0xe5));}[_0x565e85(0x10f)](_0x49b576,_0x54c5c9,_0x514f64){const _0x18a540=_0x565e85;this[_0x18a540(0xe1)](_0x18a540(0x109),_0x49b576[_0x18a540(0x109)]),this[_0x18a540(0xe1)](_0x18a540(0xe9),!0x0),this[_0x18a540(0xe1)](_0x18a540(0xea),_0x49b576[_0x18a540(0xd3)]),this[_0x18a540(0xe1)]('id',_0x49b576[_0x18a540(0xe0)]),this[_0x18a540(0xe1)](_0x18a540(0xfe),_0x54c5c9),this[_0x18a540(0xe1)](_0x18a540(0xd6),_0x514f64);}[_0x565e85(0x105)](){const _0x3c35de=_0x565e85,_0x1784ef=this[_0x3c35de(0xf3)](),_0x5b55a9=this[_0x3c35de(0xde)](),_0x22de8b=this[_0x3c35de(0xdb)];this[_0x3c35de(0x113)]({'tag':_0x3c35de(0x10e),'attributes':this[_0x3c35de(0xf7)](_0x22de8b),'children':this[_0x3c35de(0xd7)](_0x1784ef,_0x5b55a9,_0x22de8b)});}[_0x565e85(0xf7)](_0x1c40b9){const _0x4cbfb2=_0x565e85;return{'class':[dn,_0x1c40b9['if'](_0x4cbfb2(0xea),_n,_0x1acd06=>_0x4cbfb2(0x100)==_0x1acd06),_0x1c40b9['if'](_0x4cbfb2(0xea),un,_0x1ce87d=>_0x4cbfb2(0xdf)==_0x1ce87d)],'data-cke-tooltip-text':_0x1c40b9['to'](_0x4cbfb2(0x109),Tn),'data-cke-tooltip-position':wn,'data-cke-tooltip-class':bn};}[_0x565e85(0xd7)](_0x3e29c5,_0x39a7ee,_0x44d858){const _0x1ee88d=_0x565e85,_0x3aed14=this[_0x1ee88d(0xe4)](_0x44d858),_0x49142b=this[_0x1ee88d(0xee)]();return this[_0x1ee88d(0xfe)]?[_0x3e29c5,_0x3aed14]:[_0x3e29c5,_0x49142b,_0x3aed14,_0x39a7ee];}[_0x565e85(0xe4)](_0x59df4e){const _0x32c974=_0x565e85;return{'tag':_0x32c974(0xfb),'attributes':{'class':kn},'children':[{'text':_0x59df4e['to'](_0x32c974(0x109))}]};}[_0x565e85(0xde)](){const _0x19800d=_0x565e85,_0x175098=new _0x660fdc(this[_0x19800d(0x102)]);return _0x175098[_0x19800d(0xe1)]({'label':_0x288f4a(this[_0x19800d(0x102)],_0x19800d(0xe2)),'icon':_0x1af7eb}),this[_0x19800d(0xff)](_0x175098),_0x175098;}[_0x565e85(0xff)](_0x413758){const _0x523f93=_0x565e85;_0x413758['on'](_0x523f93(0x104),()=>{const _0x3ee9f5=_0x523f93;this[_0x3ee9f5(0x111)](_0x3ee9f5(0x112),this['id']);});}[_0x565e85(0xf3)](){const _0x3dc754=_0x565e85,_0x11f0eb=this[_0x3dc754(0xdb)],_0x221140=new _0xe19375();return _0x221140[_0x3dc754(0xf8)]=mn[this[_0x3dc754(0xea)]],_0x221140[_0x3dc754(0xfa)]({'attributes':{'class':[xn,_0x11f0eb['if'](_0x3dc754(0xd6),_0x3dc754(0xd4),_0x3c7017=>_0x3c7017)]}}),_0x221140;}[_0x565e85(0x10b)](_0x464733,_0x1986e1){const _0x129d37=_0x565e85;if(!_0x464733)return;const _0x40726c=()=>{const _0x12753b=_0x44f0;_0x1986e1(),_0x464733[_0x12753b(0x107)](_0x12753b(0x103),_0x40726c),_0x464733[_0x12753b(0x107)](_0x12753b(0x10d),_0x40726c);};_0x464733[_0x129d37(0xf9)](_0x129d37(0x103),_0x40726c),_0x464733[_0x129d37(0xf9)](_0x129d37(0x10d),_0x40726c);}[_0x565e85(0xee)](){const _0x544532=_0x565e85,_0x407f70=new _0x41fcc7(_0x544532(0xe6));return _0x407f70[_0x544532(0xe8)](_0x544532(0x10c))['to'](this,_0x544532(0xd6),_0x5f58ab=>_0x5f58ab),_0x407f70;}}function Tn(_0x1541b7){const _0x43530f=_0x565e85;if(!_0x1541b7)return _0x1541b7;if(_0x1541b7[_0x43530f(0xf6)]<=0x78)return _0x1541b7;const _0x16513e=_0x1541b7[_0x43530f(0xef)](0x0,0x78),_0x24b196=_0x16513e[_0x43530f(0xfc)]('\x20');return(_0x24b196>0x0?_0x16513e[_0x43530f(0xef)](0x0,_0x24b196):_0x16513e)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c63a1=_0x302c;(function(_0x54ea5f,_0x4f5a8c){const _0x537b05=_0x302c,_0x577c3b=_0x54ea5f();while(!![]){try{const _0x310561=-parseInt(_0x537b05(0x192))/0x1*(-parseInt(_0x537b05(0x1cb))/0x2)+-parseInt(_0x537b05(0x195))/0x3*(-parseInt(_0x537b05(0x1cc))/0x4)+parseInt(_0x537b05(0x1b0))/0x5+-parseInt(_0x537b05(0x1cd))/0x6*(parseInt(_0x537b05(0x194))/0x7)+parseInt(_0x537b05(0x1a5))/0x8*(-parseInt(_0x537b05(0x1cf))/0x9)+parseInt(_0x537b05(0x198))/0xa*(parseInt(_0x537b05(0x19a))/0xb)+-parseInt(_0x537b05(0x1a0))/0xc;if(_0x310561===_0x4f5a8c)break;else _0x577c3b['push'](_0x577c3b['shift']());}catch(_0x30064b){_0x577c3b['push'](_0x577c3b['shift']());}}}(_0x1a59,0xed8a8));import{FocusTracker as _0x406790,KeystrokeHandler as _0x5e8608}from'ckeditor5/src/utils.js';function _0x1a59(){const _0x4598d7=['536968RbKcBE','35376isgzNM','focus','4310532HmCySU','clear','element','clearError','listenTo','locale','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','div','stop','render','AI_CHAT_CONTEXT_URL_INVALID_ERROR','errorText','add','ck-button-icon\x20ck-button-back','727EzhsML','trim','826FsLYDu','36dJQJiH','focusTracker','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','3349900VXaugl','AI_CHAT_CONTEXT_URL_PLACEHOLDER','22xtRMfV','AI_CHAT_CONTEXT_URL_LABEL','esc','shift+tab','ck-button-icon','ck-labeled-field-view_empty','5756508mocYVA','cancel','_updateConfirmButtonState','set','fieldView','8hHEadr','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','_setupEventHandlers','urlInputField','keystrokes','fire','submitUrl','execute','length','_createUrlInputField','confirmButton','1347035HxwggT','focusCycler','submit','_createBackButton','_setupTemplate','_isValidUrl','_createConfirmButton','input','createCollection','getValue','tab','_handleSubmit','setError','forEach','ck-ai-chat-context-controls__url-input-section','isEnabled','ck-ai-chat-context-controls__url-form','refreshBalloon','children','value','_focusables','AI_CHAT_CONTEXT_URL_ADD_URL','form','destroy','backButton','_setupKeystrokes','setTemplate','212xxSTEy'];_0x1a59=function(){return _0x4598d7;};return _0x1a59();}import{ButtonView as _0x2d113e,FocusCycler as _0xb89a67,LabeledFieldView as _0x52789b,View as _0x159f82,FormHeaderView as _0x304cd9,createLabeledInputText as _0x147ef3,submitHandler as _0x4a20d8}from'ckeditor5/src/ui.js';import{IconCheck as _0x41e897,IconPreviousArrow as _0x230b24}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2a3dbb}from'../../../aicore/utils/common-translations.js';function _0x302c(_0x56f12d,_0x608550){const _0x1a5914=_0x1a59();return _0x302c=function(_0x302c9c,_0x2f5972){_0x302c9c=_0x302c9c-0x18d;let _0x22d3ca=_0x1a5914[_0x302c9c];return _0x22d3ca;},_0x302c(_0x56f12d,_0x608550);}const ch=_0x3c63a1(0x1c0),nh=_0x3c63a1(0x1be);export class AIChatContextPanelUrlInputView extends _0x159f82{[_0x3c63a1(0x196)];[_0x3c63a1(0x1a9)];[_0x3c63a1(0x1c4)];[_0x3c63a1(0x1b1)];[_0x3c63a1(0x1a8)];[_0x3c63a1(0x1c8)];[_0x3c63a1(0x1af)];constructor(_0x450ea0){const _0x47d851=_0x3c63a1;super(_0x450ea0),this[_0x47d851(0x196)]=new _0x406790(),this[_0x47d851(0x1a9)]=new _0x5e8608(),this[_0x47d851(0x1c8)]=this[_0x47d851(0x1b3)](),this[_0x47d851(0x1a8)]=this[_0x47d851(0x1ae)](),this[_0x47d851(0x1af)]=this[_0x47d851(0x1b6)](),this[_0x47d851(0x1c4)]=this[_0x47d851(0x1b8)]([this[_0x47d851(0x1c8)],this[_0x47d851(0x1a8)],this[_0x47d851(0x1af)]]),this[_0x47d851(0x1b1)]=new _0xb89a67({'focusables':this[_0x47d851(0x1c4)],'focusTracker':this[_0x47d851(0x196)],'keystrokeHandler':this[_0x47d851(0x1a9)],'actions':{'focusPrevious':_0x47d851(0x19d),'focusNext':_0x47d851(0x1ba)}}),this[_0x47d851(0x1b4)](),this[_0x47d851(0x1a7)](),this[_0x47d851(0x1c9)]();}[_0x3c63a1(0x18d)](){const _0x5b6dea=_0x3c63a1;super[_0x5b6dea(0x18d)](),this[_0x5b6dea(0x1c4)][_0x5b6dea(0x1bd)](_0x5d2913=>{const _0x104885=_0x5b6dea;this[_0x104885(0x196)][_0x104885(0x190)](_0x5d2913[_0x104885(0x1d1)]),this[_0x104885(0x1a9)][_0x104885(0x1d3)](_0x5d2913[_0x104885(0x1d1)]);}),_0x4a20d8({'view':this}),this[_0x5b6dea(0x1ce)]();}[_0x3c63a1(0x1c7)](){const _0x512282=_0x3c63a1;super[_0x512282(0x1c7)](),this[_0x512282(0x196)][_0x512282(0x1c7)](),this[_0x512282(0x1a9)][_0x512282(0x1c7)]();}[_0x3c63a1(0x1ce)](){const _0x18cc38=_0x3c63a1;this[_0x18cc38(0x1a8)][_0x18cc38(0x1ce)]();}[_0x3c63a1(0x1b9)](){const _0x4d0a47=_0x3c63a1;return this[_0x4d0a47(0x1a8)][_0x4d0a47(0x1a4)][_0x4d0a47(0x1d1)]?.[_0x4d0a47(0x1c3)]?.[_0x4d0a47(0x193)]()||'';}[_0x3c63a1(0x1d0)](){const _0x34b366=_0x3c63a1;this[_0x34b366(0x1a8)][_0x34b366(0x1a4)][_0x34b366(0x1d1)][_0x34b366(0x1c3)]='',this[_0x34b366(0x1a8)][_0x34b366(0x18f)]=null,this[_0x34b366(0x1af)][_0x34b366(0x1bf)]=!0x1;}[_0x3c63a1(0x1bc)](_0x1f0de3){const _0x2521f7=_0x3c63a1;this[_0x2521f7(0x1a8)][_0x2521f7(0x18f)]=_0x1f0de3,this[_0x2521f7(0x1a2)](),this[_0x2521f7(0x1aa)](_0x2521f7(0x1c1));}[_0x3c63a1(0x1d2)](){const _0x3e02d1=_0x3c63a1;this[_0x3e02d1(0x1a8)][_0x3e02d1(0x18f)]=null,this[_0x3e02d1(0x1a2)]();}[_0x3c63a1(0x1b3)](){const _0x2418ba=_0x3c63a1,_0x279af8=new _0x2d113e(this[_0x2418ba(0x1d4)]);return _0x279af8[_0x2418ba(0x1a3)]({'icon':_0x230b24,'tooltip':_0x2a3dbb(this[_0x2418ba(0x1d4)],_0x2418ba(0x1d5)),'tooltipPosition':'n','class':_0x2418ba(0x191)}),_0x279af8;}[_0x3c63a1(0x1ae)](){const _0x13bd34=_0x3c63a1,_0x3a2a5c=new _0x52789b(this[_0x13bd34(0x1d4)],_0x147ef3);return _0x3a2a5c[_0x13bd34(0x1a3)]({'label':_0x2a3dbb(this[_0x13bd34(0x1d4)],_0x13bd34(0x19b)),'class':_0x13bd34(0x19f)}),_0x3a2a5c[_0x13bd34(0x1a4)][_0x13bd34(0x1a3)]({'placeholder':_0x2a3dbb(this[_0x13bd34(0x1d4)],_0x13bd34(0x199))}),_0x3a2a5c;}[_0x3c63a1(0x1b6)](){const _0x142e22=_0x3c63a1,_0x4e9ba6=new _0x2d113e(this[_0x142e22(0x1d4)]);return _0x4e9ba6[_0x142e22(0x1a3)]({'icon':_0x41e897,'tooltip':_0x2a3dbb(this[_0x142e22(0x1d4)],_0x142e22(0x1c5)),'tooltipPosition':'n','class':_0x142e22(0x19e),'type':_0x142e22(0x1b2),'isEnabled':!0x1}),_0x4e9ba6;}[_0x3c63a1(0x1b4)](){const _0x312867=_0x3c63a1,_0xe87050=new _0x304cd9(this[_0x312867(0x1d4)],{'label':_0x2a3dbb(this[_0x312867(0x1d4)],_0x312867(0x1c5)),'class':_0x312867(0x197)});_0xe87050[_0x312867(0x1c2)][_0x312867(0x190)](this[_0x312867(0x1c8)],0x0),this[_0x312867(0x1ca)]({'tag':_0x312867(0x1c6),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0xe87050,{'tag':_0x312867(0x1d6),'attributes':{'class':nh},'children':[this[_0x312867(0x1a8)],this[_0x312867(0x1af)]]}]});}[_0x3c63a1(0x1a7)](){const _0xb18045=_0x3c63a1;this[_0xb18045(0x1c8)]['on'](_0xb18045(0x1ac),()=>{const _0x5a08f1=_0xb18045;this[_0x5a08f1(0x1d0)](),this[_0x5a08f1(0x1aa)](_0x5a08f1(0x1a1));}),this[_0xb18045(0x1a8)][_0xb18045(0x1a4)]['on'](_0xb18045(0x1b7),()=>{const _0x410e82=_0xb18045;this[_0x410e82(0x1d2)](),this[_0x410e82(0x1a2)](),this[_0x410e82(0x1aa)](_0x410e82(0x1c1));}),this['on'](_0xb18045(0x1b2),_0x35d235=>{const _0x518ce3=_0xb18045;_0x35d235[_0x518ce3(0x1d7)](),this[_0x518ce3(0x1bb)]();});}[_0x3c63a1(0x1c9)](){const _0xd0bd6e=_0x3c63a1;this[_0xd0bd6e(0x1a9)][_0xd0bd6e(0x1a3)](_0xd0bd6e(0x19c),(_0x48c8ff,_0xc427d2)=>{const _0x507562=_0xd0bd6e;this[_0x507562(0x1d0)](),this[_0x507562(0x1aa)](_0x507562(0x1a1)),_0xc427d2();});}[_0x3c63a1(0x1bb)](){const _0x287410=_0x3c63a1,_0x1b223a=this[_0x287410(0x1b9)]()[_0x287410(0x193)]();_0x1b223a?this[_0x287410(0x1b5)](_0x1b223a)?(this[_0x287410(0x1d2)](),this[_0x287410(0x1aa)](_0x287410(0x1ab),_0x1b223a)):this[_0x287410(0x1bc)](_0x2a3dbb(this[_0x287410(0x1d4)],_0x287410(0x18e))):this[_0x287410(0x1bc)](_0x2a3dbb(this[_0x287410(0x1d4)],_0x287410(0x1a6)));}[_0x3c63a1(0x1a2)](){const _0xa0fd45=_0x3c63a1,_0x4aa5c9=this[_0xa0fd45(0x1b9)]()[_0xa0fd45(0x193)](),_0x250a76=!!this[_0xa0fd45(0x1a8)][_0xa0fd45(0x18f)];this[_0xa0fd45(0x1af)][_0xa0fd45(0x1bf)]=_0x4aa5c9[_0xa0fd45(0x1ad)]>0x0&&!_0x250a76;}[_0x3c63a1(0x1b5)](_0x297493){try{return!!new URL(_0x297493);}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
|
+
function _0x3f7a(_0x41f10e,_0x2bf53b){const _0x19e624=_0x19e6();return _0x3f7a=function(_0x3f7a24,_0xbf7128){_0x3f7a24=_0x3f7a24-0x166;let _0x5d8d80=_0x19e624[_0x3f7a24];return _0x5d8d80;},_0x3f7a(_0x41f10e,_0x2bf53b);}const _0x2f4993=_0x3f7a;(function(_0x55e66e,_0x1c8aba){const _0x586a4a=_0x3f7a,_0x1a725b=_0x55e66e();while(!![]){try{const _0x3e08a4=parseInt(_0x586a4a(0x1b2))/0x1*(-parseInt(_0x586a4a(0x169))/0x2)+parseInt(_0x586a4a(0x1f6))/0x3+-parseInt(_0x586a4a(0x1cc))/0x4*(-parseInt(_0x586a4a(0x1f4))/0x5)+-parseInt(_0x586a4a(0x1ce))/0x6*(parseInt(_0x586a4a(0x17e))/0x7)+parseInt(_0x586a4a(0x1eb))/0x8*(parseInt(_0x586a4a(0x1af))/0x9)+parseInt(_0x586a4a(0x1ec))/0xa+-parseInt(_0x586a4a(0x16f))/0xb*(parseInt(_0x586a4a(0x16a))/0xc);if(_0x3e08a4===_0x1c8aba)break;else _0x1a725b['push'](_0x1a725b['shift']());}catch(_0x4bee35){_0x1a725b['push'](_0x1a725b['shift']());}}}(_0x19e6,0x3318f));import{BalloonPanelView as _0x488bd0,ButtonView as _0x1dec6f,clickOutsideHandler as _0x43329d,FileDialogButtonView as _0x4bd77d,IconView as _0x598c44,View as _0x6126f6}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x1bd93f,IconDocument as _0x3d82e1,IconDocumentOutline as _0x5d6e1d,IconDropdownArrow as _0x12a032,IconLink as _0x4dddc7,IconPaperClip as _0x145df5}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x493e49}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x43cb5c}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x902824}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x3c5ce3}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x85a221}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x2f4993(0x1d7),_0x2f4993(0x1c6),_0x2f4993(0x1f7),_0x2f4993(0x16b),_0x2f4993(0x16e),_0x2f4993(0x1bf)];const Vo=_0x2f4993(0x19d),Io=_0x2f4993(0x1cb),Po=_0x2f4993(0x190),Ro=_0x2f4993(0x1cf),Uo=_0x2f4993(0x1b3),Lo=_0x2f4993(0x183),No=_0x2f4993(0x17d),Oo=_0x2f4993(0x1ab),Mo=_0x2f4993(0x168),Ho=_0x2f4993(0x198),jo=_0x2f4993(0x170),Fo=_0x2f4993(0x1ed),Xo=[_0x488bd0[_0x2f4993(0x1ae)][_0x2f4993(0x18b)],_0x488bd0[_0x2f4993(0x1ae)][_0x2f4993(0x19a)],_0x488bd0[_0x2f4993(0x1ae)][_0x2f4993(0x1f5)],_0x488bd0[_0x2f4993(0x1ae)][_0x2f4993(0x1c0)],_0x488bd0[_0x2f4993(0x1ae)][_0x2f4993(0x187)],_0x488bd0[_0x2f4993(0x1ae)][_0x2f4993(0x19f)]];export class AIChatContextPanelView extends _0x6126f6{[_0x2f4993(0x1e1)];[_0x2f4993(0x1df)]=this[_0x2f4993(0x195)]();[_0x2f4993(0x17f)]=this[_0x2f4993(0x195)]();[_0x2f4993(0x174)];[_0x2f4993(0x17b)];[_0x2f4993(0x193)];[_0x2f4993(0x196)];[_0x2f4993(0x1a3)];[_0x2f4993(0x16d)];[_0x2f4993(0x184)];constructor(_0x56a9f4,_0x183029){const _0x4117fe=_0x2f4993;super(_0x56a9f4),this[_0x4117fe(0x184)]=_0x183029[_0x4117fe(0x184)],this[_0x4117fe(0x1df)]=this[_0x4117fe(0x195)](),this[_0x4117fe(0x17f)]=this[_0x4117fe(0x195)](),this[_0x4117fe(0x1e1)]=this[_0x4117fe(0x18e)](_0x56a9f4),this[_0x4117fe(0x17b)]=this[_0x4117fe(0x1d0)](_0x56a9f4),this[_0x4117fe(0x193)]=this[_0x4117fe(0x1c8)](_0x56a9f4),this[_0x4117fe(0x1a3)]=this[_0x4117fe(0x199)](_0x56a9f4,_0x183029);const _0x1fe10f={'cssClasses':{'showMoreButton':Ho,'showMoreBalloon':jo,'overflowContainer':Mo,'controlsButton':Oo}};this[_0x4117fe(0x174)]=new _0x902824(_0x56a9f4,this[_0x4117fe(0x1df)],_0x1fe10f,this[_0x4117fe(0x184)],this),this[_0x4117fe(0x16d)]={'buttonView':this[_0x4117fe(0x1e1)],'balloonView':this[_0x4117fe(0x17b)],'hideMethod':this[_0x4117fe(0x185)][_0x4117fe(0x1e0)](this),'showMethod':this[_0x4117fe(0x175)][_0x4117fe(0x1e0)](this)},this[_0x4117fe(0x1b6)](),this[_0x4117fe(0x18d)]();}[_0x2f4993(0x177)](){const _0x9e0c05=_0x2f4993;super[_0x9e0c05(0x177)](),this[_0x9e0c05(0x1d3)](),this[_0x9e0c05(0x174)][_0x9e0c05(0x1a2)](this[_0x9e0c05(0x1d8)]),this[_0x9e0c05(0x174)][_0x9e0c05(0x18a)]();}[_0x2f4993(0x1e6)](){const _0x48dea8=_0x2f4993;super[_0x48dea8(0x1e6)](),this[_0x48dea8(0x174)][_0x48dea8(0x1e6)](),this[_0x48dea8(0x1a3)][_0x48dea8(0x1e6)]();}[_0x2f4993(0x1aa)](_0x2b4967,_0x497944){const _0x4d89f1=_0x2f4993,_0x55de98=this[_0x4d89f1(0x1e8)](_0x2b4967,_0x4d89f1(0x1de),!0x0,_0x497944);this[_0x4d89f1(0x181)](_0x55de98,this[_0x4d89f1(0x1df)]),this[_0x4d89f1(0x174)][_0x4d89f1(0x18a)]();}[_0x2f4993(0x16e)](_0x5d1ade){const _0x13e302=_0x2f4993;this[_0x13e302(0x166)](_0x5d1ade,this[_0x13e302(0x1df)]),this[_0x13e302(0x166)](_0x5d1ade,this[_0x13e302(0x174)][_0x13e302(0x1d4)]),this[_0x13e302(0x174)][_0x13e302(0x18a)]();}[_0x2f4993(0x1d1)](_0x595a93,_0x2118ab){const _0x13be94=_0x2f4993;let _0x365605=this[_0x13be94(0x1df)][_0x13be94(0x1db)](_0x40bd1f=>_0x40bd1f['id']===_0x595a93);_0x365605||(_0x365605=this[_0x13be94(0x174)][_0x13be94(0x1d4)][_0x13be94(0x1db)](_0xc4ef6c=>_0xc4ef6c['id']===_0x595a93)),_0x365605&&(_0x365605[_0x13be94(0x182)]=_0x2118ab);}[_0x2f4993(0x1a9)](_0x3da974){const _0x141949=_0x2f4993;this[_0x141949(0x17f)][_0x141949(0x17c)]();for(const _0x235d67 of _0x3da974){const _0x516028=this[_0x141949(0x1e8)](_0x235d67,_0x141949(0x1c7),!0x1,!0x1);this[_0x141949(0x181)](_0x516028,this[_0x141949(0x17f)]);}}[_0x2f4993(0x1c9)](){const _0x400f22=_0x2f4993;this[_0x400f22(0x1df)][_0x400f22(0x17c)](),this[_0x400f22(0x174)][_0x400f22(0x17c)]();}[_0x2f4993(0x176)](){const _0x1ebff4=_0x2f4993;this[_0x1ebff4(0x17f)][_0x1ebff4(0x17c)]();}[_0x2f4993(0x1f0)](_0xe05d9a,_0x43460a,_0x42452a){const _0x281791=_0x2f4993;this[_0x281791(0x1a3)][_0x281791(0x1f0)](_0xe05d9a,_0x43460a,_0x42452a);}[_0x2f4993(0x185)](){const _0x2a7a12=_0x2f4993;this[_0x2a7a12(0x1e5)](!0x1);}[_0x2f4993(0x175)](){const _0x28f576=_0x2f4993;this[_0x28f576(0x1e5)](!0x0);}[_0x2f4993(0x19e)](){const _0x5b7ab7=_0x2f4993;this[_0x5b7ab7(0x193)][_0x5b7ab7(0x172)](),this[_0x5b7ab7(0x1e1)][_0x5b7ab7(0x197)]=!0x1,this[_0x5b7ab7(0x196)]&&this[_0x5b7ab7(0x196)][_0x5b7ab7(0x17c)]();}[_0x2f4993(0x1b8)](){const _0x3b1213=_0x2f4993;this[_0x3b1213(0x193)][_0x3b1213(0x1ca)](),this[_0x3b1213(0x1e1)][_0x3b1213(0x197)]=!0x0;}[_0x2f4993(0x186)](_0x97fbe5){const _0x340d60=_0x2f4993;this[_0x340d60(0x1a3)][_0x340d60(0x1c5)](_0x97fbe5),this[_0x340d60(0x1e1)][_0x340d60(0x197)]=!0x0;}[_0x2f4993(0x1b0)](_0x51bbf0,_0x25322b,_0x1fb21f,_0x597b66){const _0x4cc006=_0x2f4993;this[_0x4cc006(0x1a3)][_0x4cc006(0x1b0)](_0x51bbf0,_0x1fb21f,_0x597b66);}[_0x2f4993(0x1d2)](_0x5e2c94){const _0x20121c=_0x2f4993;this[_0x20121c(0x1a3)][_0x20121c(0x1d2)](_0x5e2c94),this[_0x20121c(0x1e1)][_0x20121c(0x197)]=!0x1;}[_0x2f4993(0x1f3)](_0x119c03){const _0x1e0b37=_0x2f4993;this[_0x1e0b37(0x1a7)](this[_0x1e0b37(0x17b)],this[_0x1e0b37(0x1e3)],_0x119c03),this[_0x1e0b37(0x19c)](_0x119c03);}[_0x2f4993(0x19c)](_0x1b3342){const _0x32b2bd=_0x2f4993,_0x313059=!_0x1b3342[_0x32b2bd(0x180)][_0x32b2bd(0x189)]&&_0x1b3342[_0x32b2bd(0x180)][_0x32b2bd(0x1ba)],_0x18a5de=_0x1b3342[_0x32b2bd(0x1a6)][_0x32b2bd(0x1ba)],_0x5cf396=_0x1b3342[_0x32b2bd(0x1bb)][_0x32b2bd(0x1ba)];this[_0x32b2bd(0x1e1)][_0x32b2bd(0x188)]=_0x313059||_0x18a5de||_0x5cf396;}[_0x2f4993(0x1b6)](){const _0x4b199b=_0x2f4993;this[_0x4b199b(0x1f1)]({'tag':_0x4b199b(0x1f2),'attributes':{'class':[Vo,_0x4b199b(0x18f)]},'children':[{'tag':_0x4b199b(0x1f2),'attributes':{'class':Io},'children':this[_0x4b199b(0x1df)]}]});}[_0x2f4993(0x18d)](){const _0x48df61=_0x2f4993;this[_0x48df61(0x1e1)]['on'](_0x48df61(0x1c3),()=>{const _0x423281=_0x48df61;this[_0x423281(0x16c)]();});}[_0x2f4993(0x18e)](_0x543d72){const _0x4b0272=_0x2f4993,_0x29f007=new _0x1dec6f(_0x543d72);return _0x29f007[_0x4b0272(0x173)]({'label':_0x3c5ce3(_0x543d72,_0x4b0272(0x1c2)),'class':Oo+'\x20'+Ro,'icon':_0x145df5,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x29f007;}[_0x2f4993(0x1d0)](_0x193d52){const _0x43196c=_0x2f4993;return this[_0x43196c(0x1d9)](_0x193d52,Po);}[_0x2f4993(0x1c8)](_0x3c0b80){const _0x56f6c4=_0x2f4993,_0x5453cd=this[_0x56f6c4(0x1d9)](_0x3c0b80,Uo);return this[_0x56f6c4(0x192)](_0x5453cd,_0x3c0b80),_0x5453cd;}[_0x2f4993(0x199)](_0x501370,_0x4acdee){const _0x403a11=_0x2f4993,_0x45b51f={'searchInputVisibleFrom':_0x4acdee[_0x403a11(0x19b)],'onBackToContext':()=>{const _0x9ed660=_0x403a11;this[_0x9ed660(0x175)](),this[_0x9ed660(0x17b)][_0x9ed660(0x1da)]({'target':this[_0x9ed660(0x1e1)][_0x9ed660(0x1d8)],'limiter':this[_0x9ed660(0x1b7)](),'positions':Xo});},'onResourceSelected':(_0x285da2,_0x4990df)=>{const _0x358291=_0x403a11;this[_0x358291(0x1be)](_0x358291(0x16b),{'source':_0x285da2,'resource':_0x4990df});},'onLoadSourceResources':_0x5713df=>{const _0x19eb92=_0x403a11;this[_0x19eb92(0x1be)](_0x19eb92(0x1bf),_0x5713df);},'onBalloonClosed':()=>{const _0x3fdaee=_0x403a11;this[_0x3fdaee(0x1e1)][_0x3fdaee(0x197)]=!0x1;},'getLimiterElement':()=>this[_0x403a11(0x1b7)](),'getTargetElement':()=>this[_0x403a11(0x1e1)][_0x403a11(0x1d8)]};return new _0x85a221(_0x501370,_0x4acdee[_0x403a11(0x184)],_0x45b51f);}[_0x2f4993(0x1b7)](){const _0x46a9e3=_0x2f4993;return this[_0x46a9e3(0x1d8)]?.[_0x46a9e3(0x1e2)]('.'+Fo)||document[_0x46a9e3(0x1ef)];}[_0x2f4993(0x1d9)](_0x31ef35,_0x482648){const _0x10fd29=_0x2f4993,_0x45dd22=new _0x488bd0(_0x31ef35);return _0x45dd22[_0x10fd29(0x1dd)]({'attributes':{'class':_0x482648}}),this[_0x10fd29(0x184)][_0x10fd29(0x1bd)](_0x45dd22),_0x45dd22;}[_0x2f4993(0x1a7)](_0x5f0f8f,_0x58561f,_0x16cf60){const _0x29714c=_0x2f4993;if(_0x5f0f8f[_0x29714c(0x1a8)][_0x29714c(0x17c)](),!_0x16cf60[_0x29714c(0x180)][_0x29714c(0x189)]&&_0x16cf60[_0x29714c(0x180)][_0x29714c(0x1ba)]){const _0x5b360c=this[_0x29714c(0x1e7)](_0x58561f,{'label':_0x3c5ce3(_0x58561f,_0x29714c(0x1ee)),'icon':_0x3d82e1});_0x5b360c['on'](_0x29714c(0x1c3),()=>{const _0xc58781=_0x29714c;this[_0xc58781(0x1be)](_0xc58781(0x1d7)),this[_0xc58781(0x185)]();}),_0x5f0f8f[_0x29714c(0x1a8)][_0x29714c(0x1bd)](_0x5b360c);}if(_0x16cf60[_0x29714c(0x1a6)][_0x29714c(0x1ba)]){const _0x3da3f2=this[_0x29714c(0x1e7)](_0x58561f,{'label':_0x3c5ce3(_0x58561f,_0x29714c(0x1e9)),'icon':_0x4dddc7});_0x3da3f2['on'](_0x29714c(0x1c3),()=>{const _0x560e1e=_0x29714c;this[_0x560e1e(0x185)](),this[_0x560e1e(0x1b8)](),this[_0x560e1e(0x193)][_0x560e1e(0x1da)]({'target':this[_0x560e1e(0x1e1)][_0x560e1e(0x1d8)],'limiter':this[_0x560e1e(0x1b7)](),'positions':Xo}),this[_0x560e1e(0x196)][_0x560e1e(0x1ad)]();}),_0x5f0f8f[_0x29714c(0x1a8)][_0x29714c(0x1bd)](_0x3da3f2);}if(_0x16cf60[_0x29714c(0x1bb)][_0x29714c(0x1ba)]){const _0x3cc449=new _0x4bd77d(_0x58561f);_0x3cc449[_0x29714c(0x173)]({'label':_0x3c5ce3(_0x58561f,_0x29714c(0x1a5)),'icon':_0x1bd93f,'withText':!0x0,'tooltip':!0x0,'class':Lo,'allowMultipleFiles':!0x0}),_0x3cc449['on'](_0x29714c(0x1bc),(_0x1d3487,_0x4f04ec)=>{const _0x32eb1b=_0x29714c;this[_0x32eb1b(0x1be)](_0x32eb1b(0x1c6),_0x4f04ec),this[_0x32eb1b(0x185)]();}),_0x3cc449[_0x29714c(0x1c1)]=!0x0,_0x5f0f8f[_0x29714c(0x1a8)][_0x29714c(0x1bd)](_0x3cc449);}for(const _0x556944 of _0x16cf60[_0x29714c(0x1c4)]){const _0x4ba739=this[_0x29714c(0x1e7)](_0x58561f,{'label':_0x556944[_0x29714c(0x1d6)],'icon':_0x556944[_0x29714c(0x1e4)]||_0x5d6e1d,'type':_0x29714c(0x171)});_0x5f0f8f[_0x29714c(0x1a8)][_0x29714c(0x1bd)](_0x4ba739),_0x4ba739['on'](_0x29714c(0x1c3),()=>{const _0x26946f=_0x29714c;this[_0x26946f(0x185)](),this[_0x26946f(0x186)](_0x556944);});}}[_0x2f4993(0x192)](_0x18e37a,_0x5ab1f6){const _0x4bd36d=_0x2f4993;this[_0x4bd36d(0x196)]=new _0x43cb5c(_0x5ab1f6),this[_0x4bd36d(0x196)]['on'](_0x4bd36d(0x1a0),(_0x20bbe5,_0x21ca26)=>{const _0x6ef4a3=_0x4bd36d;this[_0x6ef4a3(0x1d5)](_0x21ca26);}),this[_0x4bd36d(0x196)]['on'](_0x4bd36d(0x167),()=>{const _0x10b53c=_0x4bd36d;this[_0x10b53c(0x19e)](),this[_0x10b53c(0x175)](),this[_0x10b53c(0x17b)][_0x10b53c(0x1da)]({'target':this[_0x10b53c(0x1e1)][_0x10b53c(0x1d8)],'limiter':this[_0x10b53c(0x1b7)](),'positions':Xo});}),this[_0x4bd36d(0x196)]['on'](_0x4bd36d(0x1b4),()=>{const _0x46e38c=_0x4bd36d;this[_0x46e38c(0x193)][_0x46e38c(0x1b5)]&&this[_0x46e38c(0x193)][_0x46e38c(0x1da)]({'target':this[_0x46e38c(0x1e1)][_0x46e38c(0x1d8)],'limiter':this[_0x46e38c(0x1b7)](),'positions':Xo});}),_0x18e37a[_0x4bd36d(0x1a8)][_0x4bd36d(0x1bd)](this[_0x4bd36d(0x196)]);}[_0x2f4993(0x1e7)](_0x204905,_0x32a10d){const _0xdbbd04=_0x2f4993,_0x4a1ccb=_0xdbbd04(0x171)===_0x32a10d[_0xdbbd04(0x194)]?new SourcesBalloonButtonView(_0x204905):new _0x1dec6f(_0x204905);return _0x4a1ccb[_0xdbbd04(0x173)]({'label':_0x32a10d[_0xdbbd04(0x1d6)],'icon':_0x32a10d[_0xdbbd04(0x1e4)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Lo}),_0x4a1ccb;}[_0x2f4993(0x1d3)](){const _0x48c1c4=_0x2f4993;this[_0x48c1c4(0x17a)](),this[_0x48c1c4(0x1a4)]();}[_0x2f4993(0x1a4)](){const _0x4d6f42=_0x2f4993;_0x43329d({'emitter':this[_0x4d6f42(0x193)],'contextElements':[this[_0x4d6f42(0x193)][_0x4d6f42(0x1d8)]],'callback':()=>{const _0x540660=_0x4d6f42;this[_0x540660(0x19e)]();},'activator':()=>this[_0x4d6f42(0x193)][_0x4d6f42(0x1b5)]});}[_0x2f4993(0x1e5)](_0x7ab4e9){const _0x471761=_0x2f4993,_0x12cbe8=this[_0x471761(0x16d)];_0x12cbe8[_0x471761(0x1cd)][_0x471761(0x197)]=_0x7ab4e9,_0x7ab4e9?_0x12cbe8[_0x471761(0x1dc)][_0x471761(0x1ca)]():_0x12cbe8[_0x471761(0x1dc)][_0x471761(0x172)]();}[_0x2f4993(0x17a)](){const _0xc8666b=_0x2f4993,{balloonView:_0x599d6a,buttonView:_0x5f4dc5,hideMethod:_0x4d99}=this[_0xc8666b(0x16d)];_0x43329d({'emitter':_0x599d6a,'contextElements':[_0x599d6a[_0xc8666b(0x1d8)],_0x5f4dc5[_0xc8666b(0x1d8)]],'callback':()=>{_0x4d99();},'activator':()=>_0x5f4dc5[_0xc8666b(0x197)]&&!this[_0xc8666b(0x193)][_0xc8666b(0x1b5)]&&!this[_0xc8666b(0x1a3)][_0xc8666b(0x191)]()});}[_0x2f4993(0x1e8)](_0xb6ee31,_0x2ef760,_0x294e4a=!0x1,_0x52db65=!0x1){const _0x527d8c=_0x2f4993,_0x12324d=_0x527d8c(0x1c7)===_0x2ef760||!0x0===_0xb6ee31[_0x527d8c(0x1a1)],_0x4b4fad=new _0x493e49(this[_0x527d8c(0x1e3)],_0xb6ee31,_0x12324d,_0x294e4a,_0x52db65);return _0x12324d||_0x4b4fad['on'](_0x527d8c(0x179),()=>{const _0x89f20a=_0x527d8c;this[_0x89f20a(0x1be)](_0x89f20a(0x16e),_0x4b4fad['id']);}),_0x4b4fad;}[_0x2f4993(0x181)](_0x322d18,_0x3b7f1e){const _0x29988d=_0x2f4993;_0x3b7f1e[_0x29988d(0x1bd)](_0x322d18,0x0);}[_0x2f4993(0x166)](_0x3f380f,_0x444e0e){const _0x22d48b=_0x2f4993,_0x5b8539=_0x444e0e[_0x22d48b(0x1db)](_0x89aaf7=>_0x89aaf7['id']===_0x3f380f);_0x5b8539&&_0x444e0e[_0x22d48b(0x1ac)](_0x5b8539);}[_0x2f4993(0x16c)](){const _0x627611=_0x2f4993;this[_0x627611(0x1e1)][_0x627611(0x197)]?this[_0x627611(0x185)]():(this[_0x627611(0x175)](),this[_0x627611(0x17b)][_0x627611(0x1da)]({'target':this[_0x627611(0x1e1)][_0x627611(0x1d8)],'limiter':this[_0x627611(0x1b7)](),'positions':Xo}));}[_0x2f4993(0x1d5)](_0x29567e){const _0x7d30ad=_0x2f4993;this[_0x7d30ad(0x196)][_0x7d30ad(0x17c)](),this[_0x7d30ad(0x19e)](),this[_0x7d30ad(0x1be)](_0x7d30ad(0x1f7),_0x29567e);}}function _0x19e6(){const _0x2174b4=['_overflowManager','showAddContextBalloonPanel','clearConversationContextItems','render','arrowView','removeContextItemChip','_setupAddContextBalloonClickOutsideHandler','_addContextBalloonPanelView','clear','ck-ai-chat-context-controls__balloon-button-source','309953cynhMS','_conversationContextsChips','document','_addContextToCollection','isLoading','ck-ai-chat-context-controls__balloon-button','bodyCollection','hideAddContextBalloonPanel','_showSourceResourcesBalloon','southArrowNorth','isEnabled','isHidden','reorganizeChips','northArrowSouthWest','__arrow','_bindEventHandlers','_createAddContextButtonView','ck-reset_all-excluded','ck-ai-chat-context-controls__add-context-balloon-panel','isAnyResourceBalloonVisible','_addUrlContent','_urlBalloonPanelView','type','createCollection','_urlInputView','isOn','ck-ai-chat-controls_context_show-more-button','_createResourcesBalloonView','northArrowSouth','searchInputVisibleFrom','_setAddContextButtonEnabled','ck-ai-chat-context-controls','hideUrlBalloonPanel','southArrowNorthEast','submitUrl','isReadOnly','setContainerElement','_resourcesBalloonView','_setupUrlBalloonClickOutsideHandler','AI_CHAT_CONTEXT_FILE_LABEL','urls','_setBalloonPanelContent','content','setConversationContext','addContextItem','ck-ai-chat-controls-button','remove','focus','defaultPositions','177048ydRSTZ','populateSourceResourceBalloon','children','104336DEPJri','ck-ai-chat-context-controls__url-balloon-panel','refreshBalloon','isVisible','_setupTemplate','_getLimiterElement','showUrlBalloonPanel','_createArrowView','enabled','files','done','add','fire','loadSourceResources','southArrowNorthWest','tooltip','AI_CHAT_CONTEXT_ADD_CONTEXT','execute','sources','showSourceResourcesBalloon','addFileToContext','conversation','_createUrlBalloonPanelView','clearCurrentContextItems','show','ck-ai-chat-context-controls__pending-contexts','1064308acZzmJ','buttonView','42gVGcPc','ck-ai-chat-context-controls__add-context-button','_createAddContextBalloonPanelView','setContextItemLoading','closeSourceResourceBalloon','_setupAllBalloonClickOutsideHandlers','overflowChips','_handleUrlSubmit','label','addDocumentToContext','element','_createBaseBalloonPanel','pin','find','balloonView','extendTemplate','current','_currentContextsChips','bind','addContextButtonView','closest','locale','icon','_toggleAddContextBalloon','destroy','_createBalloonButton','_createContextButton','AI_CHAT_CONTEXT_URL_LABEL','menuitem','136XLcfkx','1319220Tsuwzj','ck-ai-chat','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','body','updateResourceState','setTemplate','div','setAddContextOptions','5AyLirf','northArrowSouthEast','890523hNtRnz','addUrlToContext','_removeContextFromCollection','cancel','ck-ai-chat-context-chips-wrapper-balloon','6uDGTwf','84nKtjaK','addResourceToContext','_handleAddContextButtonClick','_addContextBalloonConfig','removeContextItem','309584AgxxOD','ck-ai-chat-context-controls__show-more-balloon-panel','source','hide','set'];_0x19e6=function(){return _0x2174b4;};return _0x19e6();}export class SourcesBalloonButtonView extends _0x1dec6f{[_0x2f4993(0x178)];constructor(_0x4b380f){const _0x379853=_0x2f4993;super(_0x4b380f),this[_0x379853(0x173)]({'withText':!0x0,'role':_0x379853(0x1ea)}),this[_0x379853(0x178)]=this[_0x379853(0x1b9)](),this[_0x379853(0x1dd)]({'attributes':{'class':[No]}});}[_0x2f4993(0x177)](){const _0x155d2d=_0x2f4993;super[_0x155d2d(0x177)](),this[_0x155d2d(0x1b1)][_0x155d2d(0x1bd)](this[_0x155d2d(0x178)]);}[_0x2f4993(0x1b9)](){const _0x5c3bb3=_0x2f4993,_0x2e26a6=new _0x598c44();return _0x2e26a6[_0x5c3bb3(0x1a8)]=_0x12a032,_0x2e26a6[_0x5c3bb3(0x1dd)]({'attributes':{'class':No+_0x5c3bb3(0x18c)}}),_0x2e26a6;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1428(){const _0x31019a=['AI_CHAT_STOP_GENERATING','759478nivhXL','fire','ck-ai-chat-controls-loader-icon','10545sXolsj','ck-ai-chat-controls-loader-icon-dot','ck-reset_all','setTemplate','842139PtEWcQ','_createLoaderView','ck-ai-chat-controls-loader','84FHOhpT','_loaderView','execute','1600328VVXHaH','_createCancelButtonView','set','60UVYJlO','6176177gGbeDg','locale','285364FHADvd','ck-ai-button-secondary\x20ck-ai-button-stop-generating','AI_CHAT_IS_WRITING','abortPromptStream','ck-ai-chat-controls-loader-wrapper','div','_cancelButtonView','12186cWFNzn'];_0x1428=function(){return _0x31019a;};return _0x1428();}const _0x1ca029=_0x1108;(function(_0x182e44,_0x3c9b66){const _0xc30099=_0x1108,_0x533174=_0x182e44();while(!![]){try{const _0x29c095=-parseInt(_0xc30099(0xad))/0x1+-parseInt(_0xc30099(0xab))/0x2*(-parseInt(_0xc30099(0xbd))/0x3)+-parseInt(_0xc30099(0xc0))/0x4+parseInt(_0xc30099(0xb0))/0x5*(parseInt(_0xc30099(0xb7))/0x6)+parseInt(_0xc30099(0xbe))/0x7+parseInt(_0xc30099(0xba))/0x8+parseInt(_0xc30099(0xb4))/0x9;if(_0x29c095===_0x3c9b66)break;else _0x533174['push'](_0x533174['shift']());}catch(_0x35c8be){_0x533174['push'](_0x533174['shift']());}}}(_0x1428,0x7936a));import{ButtonView as _0x4ab602,View as _0xbcd2cb}from'ckeditor5/src/ui.js';function _0x1108(_0x5496f7,_0x34de4f){const _0x14281e=_0x1428();return _0x1108=function(_0x1108c8,_0x38363f){_0x1108c8=_0x1108c8-0xa7;let _0x6c485=_0x14281e[_0x1108c8];return _0x6c485;},_0x1108(_0x5496f7,_0x34de4f);}import{IconStop as _0x33d041}from'ckeditor5/src/icons.js';import{getTranslation as _0x375da6}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0xbcd2cb{[_0x1ca029(0xaa)];[_0x1ca029(0xb8)];constructor(_0x30732e){const _0xd416f3=_0x1ca029;super(_0x30732e),this[_0xd416f3(0xaa)]=this[_0xd416f3(0xbb)](),this[_0xd416f3(0xb8)]=this[_0xd416f3(0xb5)](),this[_0xd416f3(0xb3)]({'tag':_0xd416f3(0xa9),'attributes':{'class':['ck',_0xd416f3(0xa8),_0xd416f3(0xb2)]},'children':[this[_0xd416f3(0xb8)],this[_0xd416f3(0xaa)]]});}[_0x1ca029(0xbb)](){const _0x2d48d4=_0x1ca029,_0x539580=new _0x4ab602(this[_0x2d48d4(0xbf)]);return _0x539580[_0x2d48d4(0xbc)]({'label':_0x375da6(this[_0x2d48d4(0xbf)],_0x2d48d4(0xac)),'withText':!0x0,'class':_0x2d48d4(0xc1),'icon':_0x33d041}),_0x539580['on'](_0x2d48d4(0xb9),()=>{const _0x535833=_0x2d48d4;this[_0x535833(0xae)](_0x535833(0xa7));}),_0x539580;}[_0x1ca029(0xb5)](){const _0x412651=_0x1ca029,_0x443318=new _0xbcd2cb(this[_0x412651(0xbf)]);return _0x443318[_0x412651(0xb3)]({'tag':_0x412651(0xa9),'attributes':{'class':[_0x412651(0xb6)]},'children':[{'tag':_0x412651(0xa9),'attributes':{'class':[_0x412651(0xaf)]},'children':[{'tag':_0x412651(0xa9),'attributes':{'class':[_0x412651(0xb1)]}},{'tag':_0x412651(0xa9),'attributes':{'class':[_0x412651(0xb1)]}},{'tag':_0x412651(0xa9),'attributes':{'class':[_0x412651(0xb1)]}}]},{'text':_0x375da6(this[_0x412651(0xbf)],_0x412651(0xc2))}]}),_0x443318;}}
|
|
@@ -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 _0x4a611a=_0x6dc5;(function(_0x56c2eb,_0x1221ad){const _0x5c6410=_0x6dc5,_0x481d70=_0x56c2eb();while(!![]){try{const _0x430c2c=-parseInt(_0x5c6410(0x185))/0x1*(parseInt(_0x5c6410(0x183))/0x2)+-parseInt(_0x5c6410(0x159))/0x3*(-parseInt(_0x5c6410(0x168))/0x4)+-parseInt(_0x5c6410(0x163))/0x5+parseInt(_0x5c6410(0x178))/0x6+parseInt(_0x5c6410(0x16e))/0x7+parseInt(_0x5c6410(0x1ae))/0x8*(-parseInt(_0x5c6410(0x189))/0x9)+parseInt(_0x5c6410(0x151))/0xa*(parseInt(_0x5c6410(0x16a))/0xb);if(_0x430c2c===_0x1221ad)break;else _0x481d70['push'](_0x481d70['shift']());}catch(_0x39800d){_0x481d70['push'](_0x481d70['shift']());}}}(_0x49eb,0xe03d6));import{Collection as _0x2482c9}from'ckeditor5/src/utils.js';import{IconAI as _0x4915b9,IconBulb as _0x2b7d2d,IconWeb as _0x30bc9f}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0xd3867,ButtonLabelView as _0x129e58,ButtonView as _0x168408,createDropdown as _0x3d1b97,IconView as _0x14bfe1,UIModel as _0x5659cd,View as _0x155b5a}from'ckeditor5/src/ui.js';import{getTranslation as _0x394b9a}from'../../../aicore/utils/common-translations.js';function _0x49eb(){const _0x3a69d3=['ck-button__label','addMany','ck-hidden','AI_CHAT_ENABLE_REASONING','isVisible','content','ck-ai-chat-controls__model-selection__item-name','reasoning','ck-ai-chat__prompt-capabilities','startsWith','webSearch','isEnabled','log','setReasoning','model','_getCapabilityParts','ck-ai-chat-controls__model-selection__item-capabilities','_modelSelectionDropdown','AI_CHAT_COMMANDS','buttonView','setWebSearch','ck-ai-chat-controls__model-selection','ck-ai-chat-controls__model-name','name','locale','8060792KShOLO','AI_CHAT_CAPABILITIES_NO','setTemplate','style','modelSelectorEnabled','clear','AI_CHAT_SEARCH_WEB','1150OANQSs','disableModelSelector','_createModelSelectionDropdown','bindTemplate','button','reasoningActive','AI_CHAT_ENABLE_WEB_SEARCH','set','724395uGuEhP','AI_CHAT_CAPABILITIES_YES','ck-ai-chat-controls-button','activeModelName','execute','_createReasoningButton','listenTo','createCollection','agent','ck-ai-chat-controls__model-selection__item-description','7779610utcCMy','enableModelSelector','_createWebSearchButton','bind','extendTemplate','28tElBBG','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','169587RsASVJ','capabilities','menuitemradio','add','3431008FNDQbD','toLowerCase','tooltip','setModelList','_modelSelectionDropdownItems','div','selectModel','withText','_createCommandsButton','toggleWebSearch','3261216yezSif','source','fire','AI_CHAT_DISABLE_REASONING','toggleReasoning','AI_CHAT_DISABLE_WEB_SEARCH','length','description','text','webSearchActive','ck-ai-chat-controls-button--commands','2029766RoXCMm','activeModelId','1WbVURb','_commandsButton','enabled','_webSearchButton','9hUTxDy','AI_CHAT_REASONING','_modelNameView','_reasoningButton','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','span','Commands\x20are\x20not\x20implemented\x20yet.','setModel','modelSelectorVisible','label','_createModelNameView','isOn'];_0x49eb=function(){return _0x3a69d3;};return _0x49eb();}const yo=_0x4a611a(0x19d),Oo=_0x4a611a(0x15b),Go=_0x4a611a(0x182),Yo=_0x4a611a(0x1aa),qo=_0x4a611a(0x19b),zo=_0x4a611a(0x162),Jo=_0x4a611a(0x1a5),Ko='n';export class AIChatPromptCapabilitiesView extends _0x155b5a{[_0x4a611a(0x188)];[_0x4a611a(0x18c)];[_0x4a611a(0x186)];[_0x4a611a(0x1a6)];[_0x4a611a(0x172)];[_0x4a611a(0x18b)];constructor(_0x4157e0){const _0x2991eb=_0x4a611a;super(_0x4157e0),this[_0x2991eb(0x158)](_0x2991eb(0x181),!0x1),this[_0x2991eb(0x158)](_0x2991eb(0x156),!0x1),this[_0x2991eb(0x158)](_0x2991eb(0x191),!0x0),this[_0x2991eb(0x158)](_0x2991eb(0x14e),!0x0),this[_0x2991eb(0x158)](_0x2991eb(0x184),null),this[_0x2991eb(0x158)](_0x2991eb(0x15c),null),this[_0x2991eb(0x1a6)]=this[_0x2991eb(0x153)](),this[_0x2991eb(0x18b)]=this[_0x2991eb(0x193)](),this[_0x2991eb(0x188)]=this[_0x2991eb(0x165)](),this[_0x2991eb(0x18c)]=this[_0x2991eb(0x15e)](),this[_0x2991eb(0x186)]=this[_0x2991eb(0x176)](),this[_0x2991eb(0x1a6)][_0x2991eb(0x1a8)][_0x2991eb(0x166)](_0x2991eb(0x199))['to'](this,_0x2991eb(0x191),_0x14999f=>_0x14999f),this[_0x2991eb(0x1a6)][_0x2991eb(0x1a8)][_0x2991eb(0x166)](_0x2991eb(0x170))['to'](this,_0x2991eb(0x14e),_0x2ddeb8=>_0x2ddeb8?this[_0x2991eb(0x1a6)][_0x2991eb(0x1a8)][_0x2991eb(0x192)]:_0x394b9a(this[_0x2991eb(0x1ad)],_0x2991eb(0x18d))),this[_0x2991eb(0x1a6)][_0x2991eb(0x166)](_0x2991eb(0x1a0))['to'](this,_0x2991eb(0x14e),_0x5903ac=>_0x5903ac),this[_0x2991eb(0x188)][_0x2991eb(0x166)](_0x2991eb(0x194))['to'](this,_0x2991eb(0x181),_0x55aa28=>_0x55aa28),this[_0x2991eb(0x188)][_0x2991eb(0x166)](_0x2991eb(0x175))['to'](this,_0x2991eb(0x191),_0x2c9923=>!_0x2c9923),this[_0x2991eb(0x188)][_0x2991eb(0x166)](_0x2991eb(0x170))['to'](this,_0x2991eb(0x181),_0x4ffeed=>_0x394b9a(this[_0x2991eb(0x1ad)],_0x4ffeed?_0x2991eb(0x17d):_0x2991eb(0x157))),this[_0x2991eb(0x18c)][_0x2991eb(0x166)](_0x2991eb(0x194))['to'](this,_0x2991eb(0x156),_0x11d074=>_0x11d074),this[_0x2991eb(0x18c)][_0x2991eb(0x166)](_0x2991eb(0x175))['to'](this,_0x2991eb(0x191),_0x3cbe75=>!_0x3cbe75),this[_0x2991eb(0x18c)][_0x2991eb(0x166)](_0x2991eb(0x170))['to'](this,_0x2991eb(0x156),_0x2c34b8=>_0x394b9a(this[_0x2991eb(0x1ad)],_0x2c34b8?_0x2991eb(0x17b):_0x2991eb(0x198))),this[_0x2991eb(0x14c)]({'tag':_0x2991eb(0x173),'attributes':{'class':[yo]},'children':[this[_0x2991eb(0x1a6)],this[_0x2991eb(0x18b)],this[_0x2991eb(0x188)],this[_0x2991eb(0x18c)],this[_0x2991eb(0x186)]]}),this[_0x2991eb(0x172)]=new _0x2482c9(),_0xd3867(this[_0x2991eb(0x1a6)],this[_0x2991eb(0x172)]);}[_0x4a611a(0x171)](_0x1482b9,_0x37547c){const _0x31aae2=_0x4a611a;if(this[_0x31aae2(0x158)](_0x31aae2(0x191),!(_0x37547c&&_0x1482b9[_0x31aae2(0x17e)]<=0x1)),this[_0x31aae2(0x172)][_0x31aae2(0x14f)](),_0x1482b9?.[_0x31aae2(0x17e)])for(const _0x23b03b of _0x1482b9){const _0x41a25a=new _0x5659cd({'label':_0x23b03b[_0x31aae2(0x1ac)],'withText':!0x0,'role':_0x31aae2(0x16c),'id':_0x23b03b['id'],'model':_0x23b03b});_0x41a25a[_0x31aae2(0x166)](_0x31aae2(0x194))['to'](this,_0x31aae2(0x184),_0x11cb06=>_0x11cb06===_0x23b03b['id']),this[_0x31aae2(0x172)][_0x31aae2(0x16d)]({'type':_0x31aae2(0x155),'model':_0x41a25a,'labelView':new mo(this[_0x31aae2(0x1ad)],_0x23b03b)});}}[_0x4a611a(0x1a9)](_0x1dbf52){const _0x19ff8c=_0x4a611a;this[_0x19ff8c(0x158)](_0x19ff8c(0x181),_0x1dbf52);}[_0x4a611a(0x1a2)](_0x30c7a1){const _0xec151d=_0x4a611a;this[_0xec151d(0x158)](_0xec151d(0x156),_0x30c7a1);}[_0x4a611a(0x190)](_0x210209){const _0x4c0763=_0x4a611a;if(!_0x210209)return;this[_0x4c0763(0x184)]=_0x210209['id'],this[_0x4c0763(0x15c)]=_0x210209[_0x4c0763(0x1ac)]||_0x210209['id'],this[_0x4c0763(0x1a6)][_0x4c0763(0x1a8)][_0x4c0763(0x158)](_0x4c0763(0x192),_0x210209[_0x4c0763(0x1ac)]),this[_0x4c0763(0x1a6)][_0x4c0763(0x1a8)][_0x4c0763(0x158)](_0x4c0763(0x170),_0x210209[_0x4c0763(0x1ac)]);const _0x3e94d0=_0x210209[_0x4c0763(0x16b)][_0x4c0763(0x19f)]?.[_0x4c0763(0x187)]??!0x1;this[_0x4c0763(0x158)](_0x4c0763(0x181),!0x1),this[_0x4c0763(0x188)][_0x4c0763(0x158)](_0x4c0763(0x194),!0x1),this[_0x4c0763(0x188)][_0x4c0763(0x158)](_0x4c0763(0x1a0),_0x3e94d0),this[_0x4c0763(0x188)][_0x4c0763(0x158)](_0x4c0763(0x199),_0x3e94d0);const _0x256f5e=_0x210209[_0x4c0763(0x16b)][_0x4c0763(0x19c)]?.[_0x4c0763(0x187)]??!0x1;this[_0x4c0763(0x158)](_0x4c0763(0x156),!0x1),this[_0x4c0763(0x18c)][_0x4c0763(0x158)](_0x4c0763(0x194),!0x1),this[_0x4c0763(0x18c)][_0x4c0763(0x158)](_0x4c0763(0x1a0),_0x256f5e),this[_0x4c0763(0x18c)][_0x4c0763(0x158)](_0x4c0763(0x199),_0x256f5e);}[_0x4a611a(0x164)](){const _0x405677=_0x4a611a;this[_0x405677(0x158)](_0x405677(0x14e),!0x0),this[_0x405677(0x158)](_0x405677(0x191),!0x0);}[_0x4a611a(0x152)](_0x486cf7){const _0x2f0e0c=_0x4a611a;this[_0x2f0e0c(0x158)](_0x2f0e0c(0x14e),!0x1),_0x486cf7&&this[_0x2f0e0c(0x158)](_0x2f0e0c(0x191),!0x1);}[_0x4a611a(0x165)](){const _0xa8bcb8=_0x4a611a,_0x51742f=new _0x168408();return _0x51742f[_0xa8bcb8(0x158)]({'label':_0x394b9a(this[_0xa8bcb8(0x1ad)],_0xa8bcb8(0x150)),'icon':_0x30bc9f,'class':Oo,'isToggleable':!0x0,'tooltipPosition':Ko}),_0x51742f['on'](_0xa8bcb8(0x15d),()=>{const _0x327e90=_0xa8bcb8;this[_0x327e90(0x17a)](_0x327e90(0x177));}),_0x51742f;}[_0x4a611a(0x15e)](){const _0x325419=_0x4a611a,_0x13b9da=new _0x168408();return _0x13b9da[_0x325419(0x158)]({'label':_0x394b9a(this[_0x325419(0x1ad)],_0x325419(0x18a)),'icon':_0x2b7d2d,'class':Oo,'isToggleable':!0x0,'tooltipPosition':Ko}),_0x13b9da['on'](_0x325419(0x15d),()=>{const _0x21467e=_0x325419;this[_0x21467e(0x17a)](_0x21467e(0x17c));}),_0x13b9da;}[_0x4a611a(0x176)](){const _0x6d86cd=_0x4a611a,_0x32b891=new _0x168408();return _0x32b891[_0x6d86cd(0x158)]({'label':_0x394b9a(this[_0x6d86cd(0x1ad)],_0x6d86cd(0x1a7)),'icon':_0x4915b9,'withText':!0x0,'class':Oo,'isToggleable':!0x0,'tooltip':_0x394b9a(this[_0x6d86cd(0x1ad)],_0x6d86cd(0x1a7)),'tooltipPosition':Ko}),_0x32b891[_0x6d86cd(0x167)]({'attributes':{'class':[Go]}}),_0x32b891['on'](_0x6d86cd(0x15d),()=>{const _0x241528=_0x6d86cd;console[_0x241528(0x1a1)](_0x241528(0x18f)),alert(_0x241528(0x18f));}),_0x32b891;}[_0x4a611a(0x153)](){const _0x1f39ae=_0x4a611a,_0x4cada9=_0x3d1b97(this[_0x1f39ae(0x1ad)]);return _0x4cada9[_0x1f39ae(0x158)]({'panelPosition':'ne','class':[Yo]}),_0x4cada9[_0x1f39ae(0x1a8)][_0x1f39ae(0x158)]({'label':_0x394b9a(this[_0x1f39ae(0x1ad)],_0x1f39ae(0x169)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Ko}),this[_0x1f39ae(0x15f)](_0x4cada9,_0x1f39ae(0x15d),_0x4d3d12=>{const _0x58c1e6=_0x1f39ae;this[_0x58c1e6(0x17a)](_0x58c1e6(0x174),_0x4d3d12[_0x58c1e6(0x179)][_0x58c1e6(0x1a3)]);}),_0x4cada9;}[_0x4a611a(0x193)](){const _0x337fdd=_0x4a611a,_0x224383=new Qo(this[_0x337fdd(0x1ad)]);return _0x224383[_0x337fdd(0x166)](_0x337fdd(0x180))['to'](this,_0x337fdd(0x15c),_0x1c02b0=>_0x1c02b0??''),_0x224383[_0x337fdd(0x166)](_0x337fdd(0x199))['to'](this,_0x337fdd(0x191),this,_0x337fdd(0x15c),(_0x2a553f,_0x47613d)=>!_0x2a553f&&!_0x47613d?.[_0x337fdd(0x16f)]()[_0x337fdd(0x19e)](_0x337fdd(0x161))),_0x224383;}}function _0x6dc5(_0x49d251,_0x92c378){const _0x49ebfa=_0x49eb();return _0x6dc5=function(_0x6dc5c7,_0x358021){_0x6dc5c7=_0x6dc5c7-0x14b;let _0x129c28=_0x49ebfa[_0x6dc5c7];return _0x129c28;},_0x6dc5(_0x49d251,_0x92c378);}class mo extends _0x129e58{constructor(_0x281647,_0x541748){const _0x1b6f44=_0x4a611a;super();const _0x4725df=this[_0x1b6f44(0x154)],_0xc5e191=this[_0x1b6f44(0x160)]();this[_0x1b6f44(0x14c)]({'tag':_0x1b6f44(0x173),'attributes':{'class':['ck',_0x1b6f44(0x195)],'style':_0x4725df['to'](_0x1b6f44(0x14d)),'id':_0x4725df['to']('id')},'children':[{'tag':_0x1b6f44(0x173),'attributes':{'class':[qo]},'children':[{'text':_0x4725df['to'](_0x1b6f44(0x180))}]},{'tag':_0x1b6f44(0x173),'attributes':{'class':[zo]},'children':[{'tag':_0x1b6f44(0x18e),'children':[{'text':_0x541748[_0x1b6f44(0x17f)]}]}]},{'tag':_0x1b6f44(0x173),'attributes':{'class':[Jo]},'children':_0xc5e191}]}),_0xc5e191[_0x1b6f44(0x196)](this[_0x1b6f44(0x1a4)](_0x281647,_0x30bc9f,_0x1b6f44(0x150),_0x541748[_0x1b6f44(0x16b)][_0x1b6f44(0x19f)]?.[_0x1b6f44(0x187)]??!0x1)),_0xc5e191[_0x1b6f44(0x196)](this[_0x1b6f44(0x1a4)](_0x281647,_0x2b7d2d,_0x1b6f44(0x18a),_0x541748[_0x1b6f44(0x16b)][_0x1b6f44(0x19c)]?.[_0x1b6f44(0x187)]??!0x1));}[_0x4a611a(0x1a4)](_0x263426,_0x5e16e2,_0x251e0d,_0x445f7e){const _0x5cec20=_0x4a611a,_0xa2dc1f=new _0x14bfe1();_0xa2dc1f[_0x5cec20(0x19a)]=_0x5e16e2;const _0x538e58=new _0x155b5a(_0x263426);_0x538e58[_0x5cec20(0x14c)]({'tag':_0x5cec20(0x18e),'children':[{'text':_0x394b9a(_0x263426,_0x251e0d)+':\x20'}]});const _0x51e16e=new _0x155b5a(_0x263426);return _0x51e16e[_0x5cec20(0x14c)]({'tag':_0x5cec20(0x18e),'children':[{'text':_0x394b9a(_0x263426,_0x445f7e?_0x5cec20(0x15a):_0x5cec20(0x14b))}]}),[_0xa2dc1f,_0x538e58,_0x51e16e];}}class Qo extends _0x155b5a{constructor(_0x365b48){const _0x313c13=_0x4a611a;super(_0x365b48),this[_0x313c13(0x158)](_0x313c13(0x180),void 0x0),this[_0x313c13(0x158)](_0x313c13(0x199),!0x0);const _0x311c53=this[_0x313c13(0x154)];this[_0x313c13(0x14c)]({'tag':_0x313c13(0x18e),'attributes':{'class':['ck',_0x313c13(0x1ab),_0x311c53['if'](_0x313c13(0x199),_0x313c13(0x197),_0x579500=>!_0x579500)]},'children':[{'text':_0x311c53['to'](_0x313c13(0x180))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53db5e=_0x954a;(function(_0xbd7ead,_0x24d600){const _0x45a621=_0x954a,_0x53225e=_0xbd7ead();while(!![]){try{const _0x356de6=-parseInt(_0x45a621(0x187))/0x1+parseInt(_0x45a621(0x17d))/0x2+-parseInt(_0x45a621(0x1a8))/0x3+parseInt(_0x45a621(0x1a9))/0x4*(parseInt(_0x45a621(0x1a5))/0x5)+parseInt(_0x45a621(0x182))/0x6*(parseInt(_0x45a621(0x183))/0x7)+parseInt(_0x45a621(0x1af))/0x8+parseInt(_0x45a621(0x18b))/0x9;if(_0x356de6===_0x24d600)break;else _0x53225e['push'](_0x53225e['shift']());}catch(_0x5ad5c7){_0x53225e['push'](_0x53225e['shift']());}}}(_0x1590,0x3f2cd));function _0x1590(){const _0x42a3f7=['render','13460yYVIoH','AI_CHAT_LABEL_SUBMIT','element','1215633gVRmDM','12fBvyNJ','placeholder','_setUpAddContextButtonPositioning','style','execute','isEmpty','508616ZyOZPF','isEnabled','AI_CHAT_PROMPT_EMPTY_ERROR','submit','errorText','rtl','_createSubmitButton','ck-ai-chat__prompt-submit-button','set','add','width','fieldWrapperChildren','fieldView','value','140894oCAswB','MIN_ROWS','sendUserMessage','bind','maxRows','2052354fqELsx','7LHnKYv','calc(','_queryViewResizeObserver','update','16468sQFffB','setPlaceholderText','MAX_ROWS','right','1766565QpfKks','ck-ai-chat__prompt-input','queryView','uiLanguageDirection','setIsUploadInProgress','locale','_addContextButtonView','requestAnimationFrame','window','isUploadInProgress','hasError','focusableChildren','enter','keystrokes','px\x20-\x20var(--ck-spacing-tiny))','target','left','extendTemplate','reset','fire','trim','submitButtonView','destroy','excludeScrollbarsAndBorders','minRows'];_0x1590=function(){return _0x42a3f7;};return _0x1590();}import{IconSubmit as _0x1008fc}from'ckeditor5/src/icons.js';function _0x954a(_0x48fcc9,_0x54254e){const _0x15908a=_0x1590();return _0x954a=function(_0x954ad3,_0x400e89){_0x954ad3=_0x954ad3-0x171;let _0x23647b=_0x15908a[_0x954ad3];return _0x23647b;},_0x954a(_0x48fcc9,_0x54254e);}import{ButtonView as _0x1a8624,AutocompleteView as _0x4558a4,createLabeledTextarea as _0x487286}from'ckeditor5/src/ui.js';import{global as _0x4d4e53,isVisible as _0x31c5ca,Rect as _0x1f79ef,ResizeObserver as _0x356381}from'ckeditor5/src/utils.js';import{getTranslation as _0x4da6f4}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x19ba2c}from'./aichatpromptsuggestionslistview.js';import{escape as _0x30d83f}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x4558a4{[_0x53db5e(0x1a0)];static [_0x53db5e(0x17e)]=0x1;static [_0x53db5e(0x189)]=0xc;[_0x53db5e(0x191)];[_0x53db5e(0x185)];constructor(_0x54becd,_0x180a49){const _0xe80507=_0x53db5e;super(_0x54becd,{'queryView':{'label':'','creator':_0x487286,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x19ba2c(_0x54becd),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0xe80507(0x177)](_0xe80507(0x1ae),!0x0),this[_0xe80507(0x177)](_0xe80507(0x194),!0x1),this[_0xe80507(0x191)]=_0x180a49,this[_0xe80507(0x185)]=null,this[_0xe80507(0x18d)][_0xe80507(0x17b)][_0xe80507(0x1a3)]=AIChatPromptInputView[_0xe80507(0x17e)],this[_0xe80507(0x18d)][_0xe80507(0x17b)][_0xe80507(0x181)]=AIChatPromptInputView[_0xe80507(0x189)],this[_0xe80507(0x18d)][_0xe80507(0x17a)][_0xe80507(0x178)](this[_0xe80507(0x191)]),this[_0xe80507(0x1ab)](),this[_0xe80507(0x19c)]({'attributes':{'class':['ck',_0xe80507(0x18c)]}}),this[_0xe80507(0x1a0)]=this[_0xe80507(0x175)](),this[_0xe80507(0x1a0)][_0xe80507(0x180)](_0xe80507(0x1b0))['to'](this,_0xe80507(0x1ae),this,_0xe80507(0x194),(_0x521c64,_0x13d1b4)=>!_0x521c64&&!_0x13d1b4),this[_0xe80507(0x196)][_0xe80507(0x178)](this[_0xe80507(0x1a0)]);}[_0x53db5e(0x1a4)](){const _0x58bd5c=_0x53db5e;super[_0x58bd5c(0x1a4)](),this[_0x58bd5c(0x18d)][_0x58bd5c(0x17a)][_0x58bd5c(0x178)](this[_0x58bd5c(0x1a0)]),this[_0x58bd5c(0x198)][_0x58bd5c(0x177)](_0x58bd5c(0x197),(_0x466d4d,_0x351738)=>{const _0x588722=_0x58bd5c;this[_0x588722(0x194)]||this[_0x588722(0x1ae)]||_0x466d4d[_0x588722(0x19a)]==this[_0x588722(0x18d)][_0x588722(0x17b)][_0x588722(0x1a7)]&&(this[_0x588722(0x172)](),_0x351738());}),this[_0x58bd5c(0x18d)][_0x58bd5c(0x17b)]['on'](_0x58bd5c(0x186),()=>{const _0x215ebf=_0x58bd5c;this[_0x215ebf(0x1ae)]=''===this[_0x215ebf(0x18d)][_0x215ebf(0x17b)][_0x215ebf(0x1a7)][_0x215ebf(0x17c)]?.[_0x215ebf(0x19f)]();});}[_0x53db5e(0x1a1)](){const _0x5e6b70=_0x53db5e;super[_0x5e6b70(0x1a1)](),this[_0x5e6b70(0x185)]&&this[_0x5e6b70(0x185)][_0x5e6b70(0x1a1)]();}[_0x53db5e(0x172)](){const _0x49c258=_0x53db5e,_0x951ff8=this[_0x49c258(0x18d)][_0x49c258(0x17b)][_0x49c258(0x1a7)][_0x49c258(0x17c)]?.[_0x49c258(0x19f)]();if(!_0x951ff8)return this[_0x49c258(0x18d)][_0x49c258(0x173)]=_0x4da6f4(this[_0x49c258(0x190)],_0x49c258(0x171)),void(this[_0x49c258(0x18d)][_0x49c258(0x17b)][_0x49c258(0x195)]=!0x0);this[_0x49c258(0x18d)][_0x49c258(0x17b)][_0x49c258(0x195)]=!0x1;const _0x3b24bd=_0x30d83f(_0x951ff8);this[_0x49c258(0x19e)](_0x49c258(0x17f),_0x3b24bd),this[_0x49c258(0x18d)][_0x49c258(0x17b)][_0x49c258(0x19d)]();}[_0x53db5e(0x188)](_0x23417a){const _0x274239=_0x53db5e;this[_0x274239(0x18d)][_0x274239(0x17b)][_0x274239(0x177)](_0x274239(0x1aa),_0x23417a);}[_0x53db5e(0x175)](){const _0x50941c=_0x53db5e,_0x4614c2=new _0x1a8624(this[_0x50941c(0x190)]);return _0x4614c2[_0x50941c(0x177)]({'icon':_0x1008fc,'label':_0x4da6f4(this[_0x50941c(0x190)],_0x50941c(0x1a6)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x50941c(0x176),'isEnabled':!0x1}),_0x4614c2['on'](_0x50941c(0x1ad),()=>{const _0x667ac7=_0x50941c;this[_0x667ac7(0x172)]();}),_0x4614c2;}[_0x53db5e(0x18f)](_0xae254){const _0x1ec351=_0x53db5e;this[_0x1ec351(0x194)]=_0xae254;}[_0x53db5e(0x1ab)](){const _0x384e3b=_0x53db5e,_0x473696=this[_0x384e3b(0x190)],_0x14ddd5=()=>{const _0x4cea6a=_0x384e3b;_0x4d4e53[_0x4cea6a(0x193)][_0x4cea6a(0x192)](()=>{const _0x1d881b=_0x4cea6a;if(_0x31c5ca(this[_0x1d881b(0x1a7)])){const _0x36d06a=new _0x1f79ef(this[_0x1d881b(0x18d)][_0x1d881b(0x17b)][_0x1d881b(0x1a7)]),_0x50e83e=new _0x1f79ef(this[_0x1d881b(0x191)][_0x1d881b(0x1a7)]),_0xd3b89f=_0x36d06a[_0x1d881b(0x179)],_0x49fccc=_0x1d881b(0x174)===_0x473696[_0x1d881b(0x18e)]?_0x1d881b(0x18a):_0x1d881b(0x19b);_0x36d06a[_0x1d881b(0x1a2)]();const _0x5b90f4=_0xd3b89f-_0x36d06a[_0x1d881b(0x179)]+0x1;this[_0x1d881b(0x191)][_0x1d881b(0x1a7)][_0x1d881b(0x1ac)][_0x49fccc]=_0x1d881b(0x184)+(_0xd3b89f-_0x50e83e[_0x1d881b(0x179)]-_0x5b90f4)+_0x1d881b(0x199);}});};this[_0x384e3b(0x18d)][_0x384e3b(0x17b)]['on'](_0x384e3b(0x186),_0x14ddd5),this['on'](_0x384e3b(0x1a4),()=>{const _0x3095e9=_0x384e3b;_0x14ddd5(),this[_0x3095e9(0x185)]=new _0x356381(this[_0x3095e9(0x18d)][_0x3095e9(0x17b)][_0x3095e9(0x1a7)],()=>{_0x14ddd5();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c72fc=_0x59ed;function _0x59ed(_0x21739f,_0x1c0b26){const _0x359a7b=_0x359a();return _0x59ed=function(_0x59edaf,_0x58cfc9){_0x59edaf=_0x59edaf-0x127;let _0xea5a1a=_0x359a7b[_0x59edaf];return _0xea5a1a;},_0x59ed(_0x21739f,_0x1c0b26);}(function(_0x252b7d,_0x3c1671){const _0x2efac4=_0x59ed,_0x5effdf=_0x252b7d();while(!![]){try{const _0x2d14d5=-parseInt(_0x2efac4(0x129))/0x1+-parseInt(_0x2efac4(0x133))/0x2*(parseInt(_0x2efac4(0x130))/0x3)+parseInt(_0x2efac4(0x12e))/0x4+-parseInt(_0x2efac4(0x12f))/0x5*(-parseInt(_0x2efac4(0x131))/0x6)+-parseInt(_0x2efac4(0x128))/0x7*(parseInt(_0x2efac4(0x12b))/0x8)+parseInt(_0x2efac4(0x12c))/0x9+parseInt(_0x2efac4(0x12a))/0xa;if(_0x2d14d5===_0x3c1671)break;else _0x5effdf['push'](_0x5effdf['shift']());}catch(_0x215f95){_0x5effdf['push'](_0x5effdf['shift']());}}}(_0x359a,0x86c4a));import{ListView as _0x1a2558}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x1a2558{[_0x4c72fc(0x127)](){const _0xaf9d79=_0x4c72fc;let _0x441cf3=0x0;for(const _0x4183ed of this[_0xaf9d79(0x12d)])_0x441cf3+=_0x4183ed[_0xaf9d79(0x12d)][_0xaf9d79(0x132)];return{'resultsCount':_0x441cf3,'totalItemsCount':_0x441cf3};}}function _0x359a(){const _0x2477ab=['12FHzzGv','length','4sotVLz','filter','1037582NTETYZ','470726cNgewI','1884720vxUuNM','8IAsrDp','2869029FReSBK','items','3622452tMNuJA','419295bjhgMX','614433Xvszhp'];_0x359a=function(){return _0x2477ab;};return _0x359a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x310068=_0x12e9;(function(_0x252fc9,_0x57c5a3){const _0x1c5ce5=_0x12e9,_0x91f80a=_0x252fc9();while(!![]){try{const _0x244db7=-parseInt(_0x1c5ce5(0x170))/0x1+parseInt(_0x1c5ce5(0x16c))/0x2*(-parseInt(_0x1c5ce5(0x172))/0x3)+parseInt(_0x1c5ce5(0x183))/0x4*(parseInt(_0x1c5ce5(0x186))/0x5)+-parseInt(_0x1c5ce5(0x18b))/0x6*(-parseInt(_0x1c5ce5(0x171))/0x7)+-parseInt(_0x1c5ce5(0x175))/0x8+-parseInt(_0x1c5ce5(0x17b))/0x9*(-parseInt(_0x1c5ce5(0x179))/0xa)+-parseInt(_0x1c5ce5(0x177))/0xb;if(_0x244db7===_0x57c5a3)break;else _0x91f80a['push'](_0x91f80a['shift']());}catch(_0x275a38){_0x91f80a['push'](_0x91f80a['shift']());}}}(_0x12ac,0xb8065));function _0x12ac(){const _0x4745a7=['140TlMAoq','resource','items','91395MkgIWu','add','clear','test','forEach','27834HzwMbp','locale','updateResourceState','1727058haORqa','\x5c$&','useDefaultFiltering','ck-ai-chat-resources__list','63991xnWzGG','1428eAFeFc','3iPZScM','label','addResourceToContext','5723472oWgYeL','replace','7282121nSrIAH','execute','14726090eeOrKq','fire','9jwlYPX','highlightText','_handleResourceSelection','_source','filter','setResources','extendTemplate','trim'];_0x12ac=function(){return _0x4745a7;};return _0x12ac();}import{ListView as _0xa4e139}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x45fc1e}from'./aichatresourcelistitemview.js';const rc=_0x310068(0x16f);function _0x12e9(_0x2dfba3,_0x58ea6a){const _0x12ac85=_0x12ac();return _0x12e9=function(_0x12e95e,_0x1d0926){_0x12e95e=_0x12e95e-0x16c;let _0x2b11a3=_0x12ac85[_0x12e95e];return _0x2b11a3;},_0x12e9(_0x2dfba3,_0x58ea6a);}export class AIChatContextResourcesListView extends _0xa4e139{[_0x310068(0x17e)];constructor(_0x9c12a6,_0x41525b){const _0x15cad8=_0x310068;super(_0x9c12a6),this[_0x15cad8(0x17e)]=_0x41525b,this[_0x15cad8(0x181)]({'attributes':{'class':[rc]}});}[_0x310068(0x180)](_0x2accec,_0x5b8b1f){const _0x170c56=_0x310068;this[_0x170c56(0x185)][_0x170c56(0x188)]();let _0x19c1a6=_0x2accec;if(this[_0x170c56(0x17e)][_0x170c56(0x16e)]&&_0x5b8b1f&&''!==_0x5b8b1f[_0x170c56(0x182)]()){const _0x318a3e=new RegExp(_0x5b8b1f[_0x170c56(0x176)](/[.*+?^${}()|[\]\\]/g,_0x170c56(0x16d)),'gi');_0x19c1a6=_0x2accec[_0x170c56(0x17f)](_0x1fd05a=>_0x318a3e[_0x170c56(0x189)](_0x1fd05a[_0x170c56(0x173)]));}for(const _0xeb6b1 of _0x19c1a6){const _0xb6435c=new _0x45fc1e(this[_0x170c56(0x18c)],_0xeb6b1);_0xb6435c['on'](_0x170c56(0x178),()=>{const _0x582cf4=_0x170c56;this[_0x582cf4(0x17d)](this[_0x582cf4(0x17e)],_0xeb6b1);}),this[_0x170c56(0x185)][_0x170c56(0x187)](_0xb6435c);}this[_0x170c56(0x17e)][_0x170c56(0x16e)]&&this[_0x170c56(0x17c)](_0x5b8b1f);}[_0x310068(0x17c)](_0x294bf4){const _0x1bfb2a=_0x310068;this[_0x1bfb2a(0x17e)][_0x1bfb2a(0x16e)]&&this[_0x1bfb2a(0x185)][_0x1bfb2a(0x18a)](_0x37c0a7=>{const _0x353b84=_0x1bfb2a;_0x37c0a7[_0x353b84(0x17c)](_0x294bf4);});}[_0x310068(0x18d)](_0xfd228d,_0x1547a4){const _0x11fc33=_0x310068;for(const _0x41f415 of this[_0x11fc33(0x185)]){const _0xe9473e=_0x41f415;_0xe9473e[_0x11fc33(0x184)]['id']===_0xfd228d&&_0xe9473e[_0x11fc33(0x18d)](_0x1547a4);}}[_0x310068(0x17d)](_0x119e02,_0x468017){const _0x407fe1=_0x310068;this[_0x407fe1(0x17a)](_0x407fe1(0x174),{'source':_0x119e02,'resource':_0x468017});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4bd8b2=_0x5880;(function(_0x5d8959,_0xbc80e2){const _0x9c37b2=_0x5880,_0x8969f6=_0x5d8959();while(!![]){try{const _0x50c965=-parseInt(_0x9c37b2(0x17c))/0x1*(-parseInt(_0x9c37b2(0x16e))/0x2)+parseInt(_0x9c37b2(0x16c))/0x3*(parseInt(_0x9c37b2(0x180))/0x4)+parseInt(_0x9c37b2(0x190))/0x5+-parseInt(_0x9c37b2(0x178))/0x6*(-parseInt(_0x9c37b2(0x17b))/0x7)+-parseInt(_0x9c37b2(0x198))/0x8*(-parseInt(_0x9c37b2(0x17d))/0x9)+parseInt(_0x9c37b2(0x17e))/0xa*(parseInt(_0x9c37b2(0x196))/0xb)+-parseInt(_0x9c37b2(0x197))/0xc;if(_0x50c965===_0xbc80e2)break;else _0x8969f6['push'](_0x8969f6['shift']());}catch(_0x13e3d9){_0x8969f6['push'](_0x8969f6['shift']());}}}(_0x4501,0x3faf3));function _0x5880(_0x11e174,_0x4ff689){const _0x450163=_0x4501();return _0x5880=function(_0x5880ce,_0x10cf38){_0x5880ce=_0x5880ce-0x165;let _0x455b2a=_0x450163[_0x5880ce];return _0x455b2a;},_0x5880(_0x11e174,_0x4ff689);}import{View as _0x1c273f,ViewCollection as _0x4352da}from'ckeditor5/src/ui.js';function _0x4501(){const _0x48453e=['locale','has','fire','1023qyOIRZ','11717640yxjNHo','8VKSTJu','_resourcesListView','extendTemplate','setResources','search','children','searchInputVisibleFrom','div','20925SvGtzt','updateResourceState','2pLQdLb','_searchInputVisibleFrom','aiChatResources','_searchSection','source','ck\x20ck-search','_createSearchView','bindTemplate','ck-hidden','_source','876bFMVKp','length','set','19509NejuxD','273668LJgjrA','417402QnBGEW','19630OTxerF','highlightText','152prSSbz','useDefaultFiltering','getQuery','render','loadResources','add','loadSourceResources','_latestLoadResourcesUid','_createSkeletonView','_skeletonLoader','_createResourcesListView','ck-ai-chat-resources','_createSearchSection','setTemplate','delegate','addResourceToContext','313820FvbSpA','_searchView','isLoading'];_0x4501=function(){return _0x48453e;};return _0x4501();}import{uid as _0x187695}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x17a7cb}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x537595}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0xfac724,SKELETON_DEFINITIONS as _0x421478}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x1c273f{[_0x4bd8b2(0x191)];[_0x4bd8b2(0x171)];[_0x4bd8b2(0x16f)];[_0x4bd8b2(0x165)];[_0x4bd8b2(0x189)];[_0x4bd8b2(0x177)];[_0x4bd8b2(0x169)];[_0x4bd8b2(0x187)]=null;constructor(_0x3fee6a,_0x57d6fd){const _0xd0d070=_0x4bd8b2;super(_0x3fee6a),this[_0xd0d070(0x177)]=_0x57d6fd[_0xd0d070(0x172)],this[_0xd0d070(0x16f)]=_0x57d6fd[_0xd0d070(0x16a)]??0x7,this[_0xd0d070(0x17a)](_0xd0d070(0x192),!0x0),this[_0xd0d070(0x191)]=this[_0xd0d070(0x174)](),this[_0xd0d070(0x171)]=this[_0xd0d070(0x18c)](),this[_0xd0d070(0x165)]=this[_0xd0d070(0x18a)](),this[_0xd0d070(0x189)]=this[_0xd0d070(0x188)](),this[_0xd0d070(0x169)]=new _0x4352da([this[_0xd0d070(0x189)],this[_0xd0d070(0x165)]]),this[_0xd0d070(0x18d)]({'tag':_0xd0d070(0x16b),'attributes':{'class':_0xd0d070(0x18b)},'children':this[_0xd0d070(0x169)]});}[_0x4bd8b2(0x174)](){const _0x1c5c36=_0x4bd8b2;return new _0x537595(this[_0x1c5c36(0x193)]);}[_0x4bd8b2(0x18c)](){const _0x4c3cdd=_0x4bd8b2,_0x57dff6=new _0x1c273f(this[_0x4c3cdd(0x193)]);return _0x57dff6[_0x4c3cdd(0x18d)]({'tag':_0x4c3cdd(0x16b),'attributes':{'class':_0x4c3cdd(0x173)},'children':[this[_0x4c3cdd(0x191)]]}),this[_0x4c3cdd(0x191)]['on'](_0x4c3cdd(0x168),(_0x1e2b62,_0x30f436)=>{const _0x2ddfc8=_0x4c3cdd;this[_0x2ddfc8(0x184)](_0x30f436),this[_0x2ddfc8(0x177)][_0x2ddfc8(0x181)]&&this[_0x2ddfc8(0x165)][_0x2ddfc8(0x17f)](_0x30f436);}),_0x57dff6;}[_0x4bd8b2(0x18a)](){const _0x1e4723=_0x4bd8b2,_0x4fb6ea=new _0x17a7cb(this[_0x1e4723(0x193)],this[_0x1e4723(0x177)]);return _0x4fb6ea[_0x1e4723(0x18e)](_0x1e4723(0x18f))['to'](this),_0x4fb6ea[_0x1e4723(0x166)]({'attributes':{'class':this[_0x1e4723(0x175)]['if'](_0x1e4723(0x192),_0x1e4723(0x176))}}),_0x4fb6ea;}[_0x4bd8b2(0x188)](){const _0x1dd381=_0x4bd8b2,_0x8cbfc=new _0xfac724(this[_0x1dd381(0x193)],_0x421478[_0x1dd381(0x170)]);return _0x8cbfc[_0x1dd381(0x166)]({'attributes':{'class':[this[_0x1dd381(0x175)]['if'](_0x1dd381(0x192),_0x1dd381(0x176),_0x1f9a2d=>!_0x1f9a2d)]}}),_0x8cbfc;}[_0x4bd8b2(0x183)](){const _0x1ffec2=_0x4bd8b2;super[_0x1ffec2(0x183)](),this[_0x1ffec2(0x184)]('');}[_0x4bd8b2(0x184)](_0x285fda){const _0x384fef=_0x4bd8b2,_0x494cc0=_0x187695();this[_0x384fef(0x187)]=_0x494cc0,this[_0x384fef(0x195)](_0x384fef(0x186),{'sourceId':this[_0x384fef(0x177)]['id'],'query':_0x285fda,'uid':_0x494cc0}),this[_0x384fef(0x192)]=!0x0;}[_0x4bd8b2(0x167)](_0x5adceb,_0x334c76){const _0x1e601c=_0x4bd8b2;if(_0x334c76&&_0x334c76!==this[_0x1e601c(0x187)])return;const _0x4b60bf=this[_0x1e601c(0x177)][_0x1e601c(0x181)]?this[_0x1e601c(0x191)][_0x1e601c(0x182)]():'';this[_0x1e601c(0x165)][_0x1e601c(0x167)](_0x5adceb,_0x4b60bf),_0x5adceb[_0x1e601c(0x179)]>=this[_0x1e601c(0x16f)]&&!this[_0x1e601c(0x169)][_0x1e601c(0x194)](this[_0x1e601c(0x171)])&&this[_0x1e601c(0x169)][_0x1e601c(0x185)](this[_0x1e601c(0x171)],0x0),requestAnimationFrame(()=>{const _0x258989=_0x1e601c;this[_0x258989(0x192)]=!0x1;});}[_0x4bd8b2(0x16d)](_0x2a3e7e,_0x55f426){const _0x300388=_0x4bd8b2;this[_0x300388(0x165)][_0x300388(0x16d)](_0x2a3e7e,_0x55f426);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x37c9(_0x15cbe7,_0x49d742){const _0x59daa5=_0x59da();return _0x37c9=function(_0x37c9a9,_0x8456a3){_0x37c9a9=_0x37c9a9-0x1dc;let _0xcd77ab=_0x59daa5[_0x37c9a9];return _0xcd77ab;},_0x37c9(_0x15cbe7,_0x49d742);}const _0x441bb6=_0x37c9;(function(_0x2d2bdf,_0x78f968){const _0x436620=_0x37c9,_0x3d06f2=_0x2d2bdf();while(!![]){try{const _0x295ef8=-parseInt(_0x436620(0x1dc))/0x1*(parseInt(_0x436620(0x201))/0x2)+-parseInt(_0x436620(0x1e8))/0x3+-parseInt(_0x436620(0x1e2))/0x4+-parseInt(_0x436620(0x1f1))/0x5+-parseInt(_0x436620(0x1f8))/0x6*(parseInt(_0x436620(0x1de))/0x7)+-parseInt(_0x436620(0x1e7))/0x8+parseInt(_0x436620(0x203))/0x9*(parseInt(_0x436620(0x1e1))/0xa);if(_0x295ef8===_0x78f968)break;else _0x3d06f2['push'](_0x3d06f2['shift']());}catch(_0x52fddf){_0x3d06f2['push'](_0x3d06f2['shift']());}}}(_0x59da,0xbfafc));import{HighlightedTextView as _0x41dd03,IconView as _0x10d675,ListItemView as _0x207630}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x3a8c4d}from'es-toolkit/compat';import{AIContextItemType as _0x5d742c}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x2c573c,IconCheck as _0x4cf730,IconDocument as _0x24a6c5,IconDocumentOutline as _0x4421cc,IconLink as _0x6df427}from'@ckeditor/ckeditor5-icons';function _0x59da(){const _0x115ef3=['extendTemplate','set','URL','931360HcZwBG','_setupTemplate','div','setTemplate','text','highlightText','resource','807138OLdmKH','_createTitleView','span','_createIconView','DOCUMENT','execute','_iconView','_titleView','isInContext','198opLKgR','getResourceIcon','279hMLoRG','ck-ai-chat-resources__item-title','label','type','ck-ai-chat-resources__item__icon','10799KBZZkW','ck-ai-chat-resources__item','14LTffEk','ck-hidden','FILE','1017260GPRbDr','2777572ohPDEV','TEXT','trim','_updateIcon','render','474160rvttZF','270828ghYRyJ','bindTemplate','updateResourceState','content','isVisible','ck-ai-chat-resources__item--in-context'];_0x59da=function(){return _0x115ef3;};return _0x59da();}const Jr=_0x441bb6(0x1dd),Kr=_0x441bb6(0x1ed),Nr=_0x441bb6(0x204),Qr=_0x441bb6(0x207);export class AIChatResourceListItemView extends _0x207630{[_0x441bb6(0x1f7)];[_0x441bb6(0x1ff)];[_0x441bb6(0x1fe)];constructor(_0xfc7693,_0x428814){const _0x35686c=_0x441bb6;super(_0xfc7693),this[_0x35686c(0x1f7)]=_0x428814,this[_0x35686c(0x1ef)](_0x35686c(0x200),!!_0x428814[_0x35686c(0x200)]),this[_0x35686c(0x1ff)]=this[_0x35686c(0x1f9)](),this[_0x35686c(0x1fe)]=this[_0x35686c(0x1fb)](),this[_0x35686c(0x1f2)]();}[_0x441bb6(0x1e6)](){const _0xf53a2c=_0x441bb6;super[_0xf53a2c(0x1e6)]();}[_0x441bb6(0x202)](_0x95d72a){const _0x4405db=_0x441bb6;if(_0x95d72a[_0x4405db(0x200)])return _0x4cf730;switch(_0x95d72a[_0x4405db(0x206)]){case _0x5d742c[_0x4405db(0x1fc)]:return _0x24a6c5;case _0x5d742c[_0x4405db(0x1f0)]:return _0x6df427;case _0x5d742c[_0x4405db(0x1e0)]:case _0x5d742c[_0x4405db(0x1e3)]:return _0x2c573c;default:return _0x4421cc;}}[_0x441bb6(0x1f6)](_0x502b0f){const _0x404a1b=_0x441bb6;if(!_0x502b0f||''===_0x502b0f[_0x404a1b(0x1e4)]())return void this[_0x404a1b(0x1ff)][_0x404a1b(0x1f6)](null);const _0x29b763=new RegExp(_0x3a8c4d(_0x502b0f),'gi');this[_0x404a1b(0x1ff)][_0x404a1b(0x1f6)](_0x29b763);}[_0x441bb6(0x1ea)](_0x1c3eb8){const _0x1ca2cc=_0x441bb6;this[_0x1ca2cc(0x1f7)][_0x1ca2cc(0x200)]=_0x1c3eb8,this[_0x1ca2cc(0x200)]=_0x1c3eb8,this[_0x1ca2cc(0x1e5)]();}[_0x441bb6(0x1f9)](){const _0x31ffef=_0x441bb6,_0x421b83=new _0x41dd03();return _0x421b83[_0x31ffef(0x1f5)]=this[_0x31ffef(0x1f7)][_0x31ffef(0x205)],_0x421b83[_0x31ffef(0x1ee)]({'tag':_0x31ffef(0x1fa),'attributes':{'class':[Nr]}}),_0x421b83;}[_0x441bb6(0x1fb)](){const _0x22e9c5=_0x441bb6,_0x34d807=new _0x10d675();return _0x34d807[_0x22e9c5(0x1eb)]=this[_0x22e9c5(0x202)](this[_0x22e9c5(0x1f7)]),_0x34d807;}[_0x441bb6(0x1f2)](){const _0x540663=_0x441bb6,_0x421c05=this[_0x540663(0x1e9)];this[_0x540663(0x1f4)]({'tag':_0x540663(0x1f3),'attributes':{'class':[Jr,_0x421c05['if'](_0x540663(0x1ec),_0x540663(0x1df),_0x2ee831=>!_0x2ee831),_0x421c05['if'](_0x540663(0x200),Kr)]},'children':[{'tag':_0x540663(0x1f3),'attributes':{'class':[Qr]},'children':[this[_0x540663(0x1fe)]]},this[_0x540663(0x1ff)]],'on':{'click':_0x421c05['to'](_0x540663(0x1fd))}});}[_0x441bb6(0x1e5)](){const _0x574245=_0x441bb6;this[_0x574245(0x1fe)][_0x574245(0x1eb)]=this[_0x574245(0x202)](this[_0x574245(0x1f7)]);}}
|