@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
|
-
const
|
|
23
|
+
const _0x24c7ce=_0x4152;(function(_0x2056b9,_0x38b226){const _0x2c47b0=_0x4152,_0x1cbcb5=_0x2056b9();while(!![]){try{const _0x282610=parseInt(_0x2c47b0(0xed))/0x1+parseInt(_0x2c47b0(0xf6))/0x2*(parseInt(_0x2c47b0(0xe5))/0x3)+parseInt(_0x2c47b0(0xfd))/0x4+-parseInt(_0x2c47b0(0x112))/0x5*(-parseInt(_0x2c47b0(0x110))/0x6)+parseInt(_0x2c47b0(0xff))/0x7*(-parseInt(_0x2c47b0(0x10a))/0x8)+parseInt(_0x2c47b0(0x111))/0x9+-parseInt(_0x2c47b0(0xf5))/0xa;if(_0x282610===_0x38b226)break;else _0x1cbcb5['push'](_0x1cbcb5['shift']());}catch(_0x517d22){_0x1cbcb5['push'](_0x1cbcb5['shift']());}}}(_0x1c10,0x77d76));import{BalloonPanelView as _0x1415a6,ButtonView as _0x2bf840,clickOutsideHandler as _0x4436d2,FormHeaderView as _0x165dcb}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x264a83}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x210ecd}from'../../../../aicore/utils/common-translations.js';function _0x1c10(){const _0x268e9c=['5576490eIsggG','2165wfRBuy','once','onLoadSourceResources','set','_createBackButton','setResources','add','onBalloonClosed','populateSourceResourceBalloon','_getResourcesViewFromBalloon','content','resource','hide','ck-ai-chat-context-controls__source-balloon-panel','change:isLoading','_createSourceResourceBalloonPanel','6fPpHEt','values','_setupSingleResourceBalloonClickOutsideHandler','extendTemplate','_addSourceResourceContent','_createBalloonResourcesView','getLimiterElement','_createBalloonHeader','500613vpnllz','getTargetElement','_bodyCollection','source','_config','clear','_sourceResourceBalloons','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','9536150lndtCR','346846BLvQSL','loadSourceResources','label','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','updateResourceState','destroy','children','452732QwgrPx','closeSourceResourceBalloon','56RcNluI','isVisible','element','ck-button-icon\x20ck-button-back','addResourceToContext','get','_locale','show','showSourceResourcesBalloon','pin','isAnyResourceBalloonVisible','229728ccOeYy','delete','execute','searchInputVisibleFrom','onBackToContext','onResourceSelected','1302bSfeQv'];_0x1c10=function(){return _0x268e9c;};return _0x1c10();}function _0x4152(_0x4f8ee6,_0x429a3c){const _0x1c1019=_0x1c10();return _0x4152=function(_0x4152c4,_0x46ce0b){_0x4152c4=_0x4152c4-0xd7;let _0x59e352=_0x1c1019[_0x4152c4];return _0x59e352;},_0x4152(_0x4f8ee6,_0x429a3c);}import{AIChatContextResourcesView as _0xa39079}from'./aichatcontextresourcesview.js';const Wr=_0x24c7ce(0xe2),Yr=_0x24c7ce(0x102),Zr=_0x24c7ce(0xf4);export class AIChatResourcesBalloonView{[_0x24c7ce(0xf3)]=new Map();[_0x24c7ce(0xef)];[_0x24c7ce(0x105)];[_0x24c7ce(0xf1)];constructor(_0xc278da,_0x1361cd,_0x3ff1e2){const _0x4a3e37=_0x24c7ce;this[_0x4a3e37(0x105)]=_0xc278da,this[_0x4a3e37(0xef)]=_0x1361cd,this[_0x4a3e37(0xf1)]=_0x3ff1e2;}[_0x24c7ce(0x107)](_0x5d8d7b){const _0x43709f=_0x24c7ce;let _0x864859=this[_0x43709f(0xf3)][_0x43709f(0x104)](_0x5d8d7b['id']);_0x864859||(_0x864859=this[_0x43709f(0xe4)](),this[_0x43709f(0xf3)][_0x43709f(0xd8)](_0x5d8d7b['id'],_0x864859),this[_0x43709f(0xe7)](_0x864859)),this[_0x43709f(0xe9)](_0x864859,_0x5d8d7b),_0x864859[_0x43709f(0x106)]();const _0x4d9024=this[_0x43709f(0xf1)][_0x43709f(0xee)]();_0x4d9024&&_0x864859[_0x43709f(0x108)]({'target':_0x4d9024,'limiter':this[_0x43709f(0xf1)][_0x43709f(0xeb)]()});}[_0x24c7ce(0xdd)](_0x1260bc,_0x119116,_0x38e46d){const _0x131a33=_0x24c7ce,_0x3f80af=this[_0x131a33(0xf3)][_0x131a33(0x104)](_0x1260bc);if(!_0x3f80af)return;const _0x49406a=this[_0x131a33(0xde)](_0x3f80af);_0x49406a&&(_0x49406a[_0x131a33(0xda)](_0x119116,_0x38e46d),_0x49406a[_0x131a33(0x113)](_0x131a33(0xe3),()=>{const _0x46fc33=_0x131a33;_0x3f80af[_0x46fc33(0x108)]({'target':this[_0x46fc33(0xf1)][_0x46fc33(0xee)](),'limiter':this[_0x46fc33(0xf1)][_0x46fc33(0xeb)]()});}));}[_0x24c7ce(0xfe)](_0x3e8271){const _0x3b76b9=_0x24c7ce,_0x20adce=this[_0x3b76b9(0xf3)][_0x3b76b9(0x104)](_0x3e8271);_0x20adce&&requestAnimationFrame(()=>{const _0x32de85=_0x3b76b9;_0x20adce[_0x32de85(0xe1)](),this[_0x32de85(0xf3)][_0x32de85(0x10b)](_0x3e8271),this[_0x32de85(0xf1)][_0x32de85(0xdc)]();});}[_0x24c7ce(0x109)](){const _0x56ccf6=_0x24c7ce;for(const _0x2720d5 of this[_0x56ccf6(0xf3)][_0x56ccf6(0xe6)]())if(_0x2720d5[_0x56ccf6(0x100)])return!0x0;return!0x1;}[_0x24c7ce(0xfa)](_0x3d2956,_0x2b8dd7,_0x5c6c2a){const _0x3656aa=_0x24c7ce,_0x435097=this[_0x3656aa(0xf3)][_0x3656aa(0x104)](_0x3d2956);if(!_0x435097||!_0x435097[_0x3656aa(0x100)])return;const _0x57737c=this[_0x3656aa(0xf1)][_0x3656aa(0xee)]();if(!_0x57737c)return;_0x435097[_0x3656aa(0x108)]({'target':_0x57737c,'limiter':this[_0x3656aa(0xf1)][_0x3656aa(0xeb)]()});const _0xa472bc=this[_0x3656aa(0xde)](_0x435097);_0xa472bc&&_0xa472bc[_0x3656aa(0xfa)](_0x2b8dd7,_0x5c6c2a);}[_0x24c7ce(0xfb)](){const _0x8a8c49=_0x24c7ce;for(const _0x30902b of this[_0x8a8c49(0xf3)][_0x8a8c49(0xe6)]())_0x30902b[_0x8a8c49(0xfb)]();this[_0x8a8c49(0xf3)][_0x8a8c49(0xf2)]();}[_0x24c7ce(0xe4)](){const _0x11b493=_0x24c7ce,_0x3b28df=new _0x1415a6(this[_0x11b493(0x105)]);return _0x3b28df[_0x11b493(0xe8)]({'attributes':{'class':Wr}}),this[_0x11b493(0xef)][_0x11b493(0xdb)](_0x3b28df),_0x3b28df;}[_0x24c7ce(0xe9)](_0x259631,_0x198eff){const _0x45a1e5=_0x24c7ce;_0x259631[_0x45a1e5(0xdf)][_0x45a1e5(0xf2)]();const _0x53f3ab=this[_0x45a1e5(0xec)](_0x259631,_0x198eff);_0x259631[_0x45a1e5(0xdf)][_0x45a1e5(0xdb)](_0x53f3ab);const _0x3e11c8=this[_0x45a1e5(0xea)](_0x198eff);_0x259631[_0x45a1e5(0xdf)][_0x45a1e5(0xdb)](_0x3e11c8);}[_0x24c7ce(0xec)](_0x400f36,_0x5e24d1){const _0x415687=_0x24c7ce,_0x3ce1ab=this[_0x415687(0xd9)](_0x400f36),_0x19f3da=new _0x165dcb(this[_0x415687(0x105)],{'label':_0x5e24d1[_0x415687(0xf8)],'class':Zr});return _0x19f3da[_0x415687(0xfc)][_0x415687(0xdb)](_0x3ce1ab,0x0),_0x19f3da;}[_0x24c7ce(0xd9)](_0xdca50a){const _0x1ca2dd=_0x24c7ce,_0x52f36e=new _0x2bf840(this[_0x1ca2dd(0x105)]);return _0x52f36e[_0x1ca2dd(0xd8)]({'icon':_0x264a83,'tooltip':_0x210ecd(this[_0x1ca2dd(0x105)],_0x1ca2dd(0xf9)),'tooltipPosition':'n','class':Yr}),_0x52f36e['on'](_0x1ca2dd(0x10c),()=>{const _0x63817f=_0x1ca2dd;_0xdca50a[_0x63817f(0xe1)](),this[_0x63817f(0xf1)][_0x63817f(0x10e)]();}),_0x52f36e;}[_0x24c7ce(0xea)](_0x2c4761){const _0x29b358=_0x24c7ce,_0x105713=new _0xa39079(this[_0x29b358(0x105)],{'source':_0x2c4761,'searchInputVisibleFrom':this[_0x29b358(0xf1)][_0x29b358(0x10d)]});return _0x105713['on'](_0x29b358(0xf7),(_0xcab06c,_0x5dc767)=>{const _0x38949a=_0x29b358;this[_0x38949a(0xf1)][_0x38949a(0xd7)](_0x5dc767);}),_0x105713['on'](_0x29b358(0x103),(_0x1b0f83,_0xb42065)=>{const _0x2ad886=_0x29b358;this[_0x2ad886(0xf1)][_0x2ad886(0x10f)](_0xb42065[_0x2ad886(0xf0)],_0xb42065[_0x2ad886(0xe0)]),this[_0x2ad886(0xfe)](_0x2c4761['id']);}),_0x105713;}[_0x24c7ce(0xde)](_0x3742de){const _0x590a6d=_0x24c7ce,_0x1703da=_0x3742de[_0x590a6d(0xdf)][_0x590a6d(0x104)](0x1);return _0x1703da instanceof _0xa39079?_0x1703da:null;}[_0x24c7ce(0xe7)](_0x4c3b50){const _0x5ce0aa=_0x24c7ce;_0x4436d2({'emitter':_0x4c3b50,'contextElements':[_0x4c3b50[_0x5ce0aa(0x101)]],'callback':()=>{const _0x13eb62=_0x5ce0aa;_0x4c3b50[_0x13eb62(0xe1)](),this[_0x13eb62(0xf1)][_0x13eb62(0xdc)]();},'activator':()=>_0x4c3b50[_0x5ce0aa(0x100)]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x2ab353,IconView as _0xaf6417,LabeledFieldView as _0x50b59a,createLabeledInputText as _0x424d4d}from'ckeditor5/src/ui.js';import{IconLoupe as _0x2f0707,IconCancel as _0x1cb8b7}from'ckeditor5/src/icons.js';import{getTranslation as _0x3148ec}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x50b59a{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0xc85770){const t=_0xc85770['t'],_0x5113bf={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x424d4d,'label':_0x3148ec(_0xc85770,'AI_CHAT_SEARCH_RESOURCES')};super(_0xc85770,_0x5113bf['creator']),this['label']=_0x5113bf['label'],this['_viewConfig']=_0x5113bf,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0xc85770,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x20a775){this['fire']('search',_0x20a775);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0xaf6417(),this['iconView']['content']=_0x2f0707,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x23daa5,t){this['resetButtonView']=new _0x2ab353(_0x23daa5),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x1cb8b7,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0x24bbbc=>!_0x24bbbc),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe69d85=_0x179b;(function(_0x365070,_0x2ea22c){const _0x388859=_0x179b,_0x42915f=_0x365070();while(!![]){try{const _0x2c3242=parseInt(_0x388859(0x201))/0x1+parseInt(_0x388859(0x206))/0x2+parseInt(_0x388859(0x202))/0x3+-parseInt(_0x388859(0x204))/0x4+-parseInt(_0x388859(0x1ff))/0x5+parseInt(_0x388859(0x1f2))/0x6+parseInt(_0x388859(0x200))/0x7*(-parseInt(_0x388859(0x1f3))/0x8);if(_0x2c3242===_0x2ea22c)break;else _0x42915f['push'](_0x42915f['shift']());}catch(_0x2ff57a){_0x42915f['push'](_0x42915f['shift']());}}}(_0x3eae,0x684fa));import{View as _0xfe0077}from'ckeditor5/src/ui.js';function _0x3eae(){const _0x2cee6e=['locale','render','setContainerElement','4618782QQUUUS','2748536ZQoZvz','destroy','ck-ai-chat-context-chips-wrapper-balloon','querySelector','ck-ai-chat-context-controls__show-more-balloon-panel','_overflowManager','setTemplate','_contextChips','div','ck-ai-chat__feed__context-chips','ck-ai-chat-controls-button','element','1625290nlXMSl','28qrmvbf','820970wMULnx','1114155coBJAH','_bodyCollection','137660jvoPcZ','createCollection','397694MoVtVC','ck-ai-chat-controls_context_show-more-button','ck-ai-chat-context-chips-wrapper','_createContextChips','add','reorganizeChips','ck-reset_all'];_0x3eae=function(){return _0x2cee6e;};return _0x3eae();}function _0x179b(_0x3e0aa1,_0x5a6449){const _0x3eaef9=_0x3eae();return _0x179b=function(_0x179b2e,_0x12f92d){_0x179b2e=_0x179b2e-0x1f2;let _0x2db974=_0x3eaef9[_0x179b2e];return _0x2db974;},_0x179b(_0x3e0aa1,_0x5a6449);}import{AIChatContextItemButtonView as _0x391f76}from'../controls/aichatcontextitembuttonview.js';import{AIChatChipsOverflowManager as _0x430e28}from'../controls/aichatchipsoverflowmanager.js';const $o=_0xe69d85(0x1fc),Zo=_0xe69d85(0x208),oc=_0xe69d85(0x1f5),Oo=_0xe69d85(0x1fd),Ho=_0xe69d85(0x207),jo=_0xe69d85(0x1f7);export class AIChatFeedContextChipsView extends _0xfe0077{[_0xe69d85(0x1fa)]=this[_0xe69d85(0x205)]();[_0xe69d85(0x1f8)];[_0xe69d85(0x203)];constructor(_0x3d4db8,_0xb09e39,_0x3afead){const _0x93545=_0xe69d85;super(_0x3d4db8),this[_0x93545(0x203)]=_0x3afead,this[_0x93545(0x209)](_0xb09e39);const _0x48d027={'cssClasses':{'showMoreButton':Ho,'showMoreBalloon':jo,'overflowContainer':oc,'controlsButton':Oo}};this[_0x93545(0x1f8)]=new _0x430e28(_0x3d4db8,this[_0x93545(0x1fa)],_0x48d027,this[_0x93545(0x203)],this),this[_0x93545(0x1f9)]({'tag':_0x93545(0x1fb),'attributes':{'class':[$o,'ck',_0x93545(0x20c)]},'children':[{'tag':_0x93545(0x1fb),'attributes':{'class':Zo},'children':this[_0x93545(0x1fa)]}]});}[_0xe69d85(0x20e)](){const _0x54344d=_0xe69d85;super[_0x54344d(0x20e)]();const _0x4db195=this[_0x54344d(0x1fe)][_0x54344d(0x1f6)]('.'+Zo);_0x4db195&&(this[_0x54344d(0x1f8)][_0x54344d(0x20f)](_0x4db195),this[_0x54344d(0x1f8)][_0x54344d(0x20b)]());}[_0xe69d85(0x1f4)](){const _0x2ec68f=_0xe69d85;super[_0x2ec68f(0x1f4)](),this[_0x2ec68f(0x1f8)][_0x2ec68f(0x1f4)]();}[_0xe69d85(0x209)](_0x119957){const _0x4c06d2=_0xe69d85;for(const _0x3b8ea2 of _0x119957){const _0xbf422a=new _0x391f76(this[_0x4c06d2(0x20d)],_0x3b8ea2,!0x0,!0x1);this[_0x4c06d2(0x1fa)][_0x4c06d2(0x20a)](_0xbf422a);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1ff2(){var _0x4856d2=['setContent','markAsDone','level','2Hoxjny','367763fLiSUC','1615450PbNzTV','915228BIurjL','ck-ai-notification','ck-ai-notification_warning','render','8eaXNHD','954912hhEcPQ','element','22fpFWlt','innerHTML','614091XpOjys','options','initialContent','warning','extendTemplate','319163xyftSV','204rODxMW','5XjkUzt','2331atheSB','834yDdHeQ','ck-ai-notification_error'];_0x1ff2=function(){return _0x4856d2;};return _0x1ff2();}var _0x5b54e8=_0x1144;function _0x1144(_0x375dab,_0x6e1e68){var _0x1ff276=_0x1ff2();return _0x1144=function(_0x11449e,_0xc807fa){_0x11449e=_0x11449e-0x65;var _0x51bd69=_0x1ff276[_0x11449e];return _0x51bd69;},_0x1144(_0x375dab,_0x6e1e68);}(function(_0x5beb96,_0x100fb0){var _0x4708fb=_0x1144,_0x4f5b37=_0x5beb96();while(!![]){try{var _0x5b2473=parseInt(_0x4708fb(0x7d))/0x1+-parseInt(_0x4708fb(0x7c))/0x2*(-parseInt(_0x4708fb(0x6e))/0x3)+parseInt(_0x4708fb(0x6a))/0x4*(-parseInt(_0x4708fb(0x75))/0x5)+-parseInt(_0x4708fb(0x77))/0x6*(-parseInt(_0x4708fb(0x76))/0x7)+-parseInt(_0x4708fb(0x69))/0x8*(parseInt(_0x4708fb(0x65))/0x9)+-parseInt(_0x4708fb(0x7e))/0xa*(-parseInt(_0x4708fb(0x6c))/0xb)+parseInt(_0x4708fb(0x74))/0xc*(-parseInt(_0x4708fb(0x73))/0xd);if(_0x5b2473===_0x100fb0)break;else _0x4f5b37['push'](_0x4f5b37['shift']());}catch(_0x3988db){_0x4f5b37['push'](_0x4f5b37['shift']());}}}(_0x1ff2,0x2cef2));import{AIChatFeedItemView as _0x36bed6}from'./aichatfeeditemview.js';export class AIChatFeedErrorItemView extends _0x36bed6{constructor(_0x4a36ca){var _0x55b007=_0x1144;super(_0x4a36ca),this[_0x55b007(0x72)]({'attributes':{'class':[_0x55b007(0x66),_0x55b007(0x71)===_0x4a36ca[_0x55b007(0x7b)]?_0x55b007(0x67):_0x55b007(0x78)]}});}[_0x5b54e8(0x68)](){var _0x39149a=_0x5b54e8;super[_0x39149a(0x68)](),this[_0x39149a(0x79)](this[_0x39149a(0x6f)][_0x39149a(0x70)]),this[_0x39149a(0x7a)]();}[_0x5b54e8(0x79)](_0xbe84c9){var _0xb50935=_0x5b54e8;this[_0xb50935(0x6b)][_0xb50935(0x6d)]=_0xbe84c9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x491f25=_0x5660;(function(_0x367688,_0x359134){const _0x4d34b2=_0x5660,_0x4e2252=_0x367688();while(!![]){try{const _0xb180d=parseInt(_0x4d34b2(0x16a))/0x1+-parseInt(_0x4d34b2(0x181))/0x2*(-parseInt(_0x4d34b2(0x175))/0x3)+parseInt(_0x4d34b2(0x182))/0x4*(parseInt(_0x4d34b2(0x16f))/0x5)+-parseInt(_0x4d34b2(0x179))/0x6+parseInt(_0x4d34b2(0x172))/0x7*(-parseInt(_0x4d34b2(0x17e))/0x8)+parseInt(_0x4d34b2(0x176))/0x9+-parseInt(_0x4d34b2(0x17c))/0xa;if(_0xb180d===_0x359134)break;else _0x4e2252['push'](_0x4e2252['shift']());}catch(_0x4c10b0){_0x4e2252['push'](_0x4e2252['shift']());}}}(_0x43f1,0x99434));import{IconBulb as _0x4e1bab,IconWeb as _0x3b9e43}from'@ckeditor/ckeditor5-icons';function _0x43f1(){const _0x1e315d=['AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','ck-hidden','45mqxcKQ','add','extendTemplate','40124mCRMMj','setTemplate','content','546vQhSvP','7368885oftUeb','ck-ai-chat__feed__interaction-header__capabilities','children','1110240FnSivx','ck-ai-chat__feed__interaction-header','div','1670570TjfjbH','span','1232xecyXX','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','push','2030DSPZLP','260332ZIZtqR','capabilities','273347sHQnQx','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','ck-ai-chat__feed__interaction-header__capabilities__text'];_0x43f1=function(){return _0x1e315d;};return _0x43f1();}import{IconView as _0x1edb1d,View as _0x1f613c}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x5b451c}from'./aichatfeeditemview.js';import{getTranslation as _0x4a7ad3}from'../../../aicore/utils/common-translations.js';function _0x5660(_0x3b1383,_0x5ab469){const _0x43f1db=_0x43f1();return _0x5660=function(_0x5660ee,_0xcb4aa1){_0x5660ee=_0x5660ee-0x169;let _0x43c64a=_0x43f1db[_0x5660ee];return _0x43c64a;},_0x5660(_0x3b1383,_0x5ab469);}export class AIChatFeedInteractionHeaderView extends _0x5b451c{[_0x491f25(0x169)];constructor(_0x10144f,_0x3723fb){const _0x479668=_0x491f25;super(_0x3723fb);const {isWebSearchEnabled:_0x16801e,isReasoningEnabled:_0x503403}=_0x3723fb[_0x479668(0x169)],_0x13a26b=[];let _0x42a7d3='';_0x16801e&&_0x503403?(_0x42a7d3=_0x4a7ad3(_0x10144f,_0x479668(0x16b)),_0x13a26b[_0x479668(0x180)](ta(_0x3b9e43)),_0x13a26b[_0x479668(0x180)](ta(_0x4e1bab))):_0x16801e?(_0x42a7d3=_0x4a7ad3(_0x10144f,_0x479668(0x16d)),_0x13a26b[_0x479668(0x180)](ta(_0x3b9e43))):_0x503403&&(_0x42a7d3=_0x4a7ad3(_0x10144f,_0x479668(0x17f)),_0x13a26b[_0x479668(0x180)](ta(_0x4e1bab))),this[_0x479668(0x171)]({'attributes':{'class':[_0x479668(0x17a),_0x42a7d3?'':_0x479668(0x16e)]}});const _0x156f0c=new _0x1f613c();_0x156f0c[_0x479668(0x173)]({'tag':_0x479668(0x17b),'attributes':{'class':['ck',_0x479668(0x177)]},'children':[..._0x13a26b,{'tag':_0x479668(0x17d),'attributes':{'class':[_0x479668(0x16c)]},'children':[_0x42a7d3]}]}),this[_0x479668(0x178)][_0x479668(0x170)](_0x156f0c),this[_0x479668(0x169)]=_0x3723fb[_0x479668(0x169)];}}function ta(_0x36da77){const _0x3a0706=_0x491f25,_0x2f1c76=new _0x1edb1d();return _0x2f1c76[_0x3a0706(0x174)]=_0x36da77,_0x2f1c76;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x375502=_0x2add;(function(_0x750f8f,_0x41a854){const _0x4c3cab=_0x2add,_0x3943cc=_0x750f8f();while(!![]){try{const _0x4499e3=-parseInt(_0x4c3cab(0x1f5))/0x1*(-parseInt(_0x4c3cab(0x1ed))/0x2)+-parseInt(_0x4c3cab(0x1ea))/0x3*(-parseInt(_0x4c3cab(0x1ff))/0x4)+-parseInt(_0x4c3cab(0x1e9))/0x5*(parseInt(_0x4c3cab(0x207))/0x6)+-parseInt(_0x4c3cab(0x20a))/0x7+parseInt(_0x4c3cab(0x203))/0x8+-parseInt(_0x4c3cab(0x1fe))/0x9+-parseInt(_0x4c3cab(0x1fd))/0xa*(-parseInt(_0x4c3cab(0x1f9))/0xb);if(_0x4499e3===_0x41a854)break;else _0x3943cc['push'](_0x3943cc['shift']());}catch(_0xc51afe){_0x3943cc['push'](_0x3943cc['shift']());}}}(_0x338b,0x2881a));import{View as _0x520e29}from'ckeditor5/src/ui.js';import{HTMLStreamer as _0x160c46}from'../../../aicore/utils/htmlstreamer.js';export class AIChatFeedItemView extends _0x520e29{[_0x375502(0x1eb)];[_0x375502(0x209)]='';[_0x375502(0x200)];[_0x375502(0x205)];constructor(_0x798e0f){const _0x4688fc=_0x375502;super();const _0x59a19f=this[_0x4688fc(0x208)];this[_0x4688fc(0x1f1)](_0x4688fc(0x1f3),!0x1),this[_0x4688fc(0x1f1)](_0x4688fc(0x1f2),!0x0),this[_0x4688fc(0x200)]=new _0x160c46({'textNodeStyle':_0x4688fc(0x1f0),'delay':0x14}),this[_0x4688fc(0x1eb)]=_0x798e0f,this[_0x4688fc(0x205)]=this[_0x4688fc(0x1fa)](),this[_0x4688fc(0x206)]({'tag':_0x4688fc(0x1e7),'attributes':{'class':['ck',_0x4688fc(0x1f6),_0x59a19f['if'](_0x4688fc(0x1f3),_0x4688fc(0x1f4)),_0x59a19f['if'](_0x4688fc(0x1f2),_0x4688fc(0x1fb),_0x151edf=>!_0x151edf),_0x4688fc(0x1fc)],'data-cke-ai-id':this[_0x4688fc(0x1eb)]['id']},'children':this[_0x4688fc(0x205)]});}[_0x375502(0x201)](){const _0x1b7b2d=_0x375502;this[_0x1b7b2d(0x200)][_0x1b7b2d(0x1ec)]({'targetElement':this[_0x1b7b2d(0x1f8)]}),this[_0x1b7b2d(0x1f8)][_0x1b7b2d(0x1ef)](_0x1b7b2d(0x1f7))[_0x1b7b2d(0x1ee)](_0x591529=>{const _0x1b9fc5=_0x1b7b2d;_0x591529[_0x1b9fc5(0x20b)](_0x1b9fc5(0x1e8));}),this[_0x1b7b2d(0x1f3)]=!0x0;}async[_0x375502(0x202)](_0x3e28c1,_0x3be05b,_0x5e4103){const _0x464ac9=_0x375502;await this[_0x464ac9(0x200)][_0x464ac9(0x204)]({'document':_0x3e28c1,'targetElement':_0x3be05b,'abortSignal':_0x5e4103});}}function _0x2add(_0x41084c,_0x1013c7){const _0x338be5=_0x338b();return _0x2add=function(_0x2add9a,_0x2fde3d){_0x2add9a=_0x2add9a-0x1e7;let _0x147c55=_0x338be5[_0x2add9a];return _0x147c55;},_0x2add(_0x41084c,_0x1013c7);}function _0x338b(){const _0x4b2776=['set','isVisible','isDone','ck-ai-chat__feed__item_done','26367FKPUgm','ck-ai-chat__feed__item','[data-id]','element','10428fdTqWh','createCollection','ck-hidden','ck-ai-chat__feed__text-item','3240QzJjvo','2741976ZGnYYw','40WYscHh','htmlStreamer','markAsDone','streamIntoElement','949624luyMdU','stream','children','setTemplate','1983930sFDPaa','bindTemplate','content','421687fjhDhC','removeAttribute','div','data-id','5RwiJrp','75315lnxURB','options','cleanUpAnimations','14NqyhGw','forEach','querySelectorAll','animation:\x20ck-html-streamer-fade-in\x20.5s'];_0x338b=function(){return _0x4b2776;};return _0x338b();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x503372=_0x52d2;(function(_0x4101b8,_0x52238d){const _0x6e382b=_0x52d2,_0x26fd4e=_0x4101b8();while(!![]){try{const _0x32fe10=-parseInt(_0x6e382b(0xf9))/0x1*(-parseInt(_0x6e382b(0xec))/0x2)+-parseInt(_0x6e382b(0xfb))/0x3*(-parseInt(_0x6e382b(0xde))/0x4)+-parseInt(_0x6e382b(0xe5))/0x5*(-parseInt(_0x6e382b(0xfc))/0x6)+-parseInt(_0x6e382b(0xe9))/0x7+parseInt(_0x6e382b(0xe2))/0x8+-parseInt(_0x6e382b(0xe1))/0x9*(-parseInt(_0x6e382b(0xe8))/0xa)+-parseInt(_0x6e382b(0xea))/0xb;if(_0x32fe10===_0x52238d)break;else _0x26fd4e['push'](_0x26fd4e['shift']());}catch(_0x8ffb4f){_0x26fd4e['push'](_0x26fd4e['shift']());}}}(_0x4dcd,0x1eab8));function _0x4dcd(){const _0x5a88b4=['replyContainer','isVisible','streaming','updateContent','balloonPanelView','setTemplate','streamIntoElement','updateSources','1973avolFn','ck-ai-chat__feed__ai-reply-container','30aJioLK','588IalYyh','render','children','locale','options','addMany','initialContent','81464lixtoq','static','element','9srDgYK','602736qCRXbu','map','markAsDone','7245DawKPU','_bodyCollection','add','185980VPdCtJ','1302252LeolGp','4098534CNTynA','extendTemplate','248hYPFBG','ck-reset_all-excluded','innerHTML','ck-ai-chat__feed__ai-reply','div'];_0x4dcd=function(){return _0x5a88b4;};return _0x4dcd();}import{AIChatFeedItemView as _0x1ac46a}from'./aichatfeeditemview.js';import{parse as _0x57252f,render as _0x2c8266}from'../../../aicore/utils/htmlparser.js';import{View as _0xcce8c7}from'ckeditor5/src/ui.js';function _0x52d2(_0x21e624,_0x2eeddb){const _0x4dcdd5=_0x4dcd();return _0x52d2=function(_0x52d287,_0x41c08b){_0x52d287=_0x52d287-0xdd;let _0x411d39=_0x4dcdd5[_0x52d287];return _0x411d39;},_0x52d2(_0x21e624,_0x2eeddb);}import{AIWebSourcesView as _0x15b1ce,AIWebSourceView as _0x1eac46}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export class AIChatFeedReplyItemView extends _0x1ac46a{[_0x503372(0xf1)];[_0x503372(0xe6)];constructor(_0x1148b8,_0x450ffa,_0x2542b5){const _0x1f0e8e=_0x503372;super(_0x450ffa),this[_0x1f0e8e(0xe6)]=_0x2542b5,this[_0x1f0e8e(0xff)]=_0x1148b8,this[_0x1f0e8e(0xeb)]({'attributes':{'class':[_0x1f0e8e(0xef)]}}),this[_0x1f0e8e(0xf1)]=new _0xcce8c7(),this[_0x1f0e8e(0xf1)][_0x1f0e8e(0xf6)]({'tag':_0x1f0e8e(0xf0),'attributes':{'class':['ck',_0x1f0e8e(0xed),_0x1f0e8e(0xfa)]}}),this[_0x1f0e8e(0xfe)][_0x1f0e8e(0xe7)](this[_0x1f0e8e(0xf1)]);}async[_0x503372(0xfd)](){const _0x555195=_0x503372;super[_0x555195(0xfd)](),this[_0x555195(0x100)][_0x555195(0xdd)]&&(await this[_0x555195(0xf4)]({'parsedContent':_0x57252f(this[_0x555195(0x100)][_0x555195(0xdd)]),'renderingStrategy':_0x555195(0xdf)}),this[_0x555195(0xe4)]());}async[_0x503372(0xf4)]({parsedContent:_0xce73ef,renderingStrategy:_0x491977,abortSignal:_0x50559d}){const _0x29b5c7=_0x503372;_0x29b5c7(0xf3)===_0x491977?await this[_0x29b5c7(0xf7)](_0xce73ef,this[_0x29b5c7(0xf1)][_0x29b5c7(0xe0)],_0x50559d):this[_0x29b5c7(0xf1)][_0x29b5c7(0xe0)][_0x29b5c7(0xee)]=_0x2c8266(_0xce73ef);}[_0x503372(0xf8)](_0x202d57){const _0x27ea77=_0x503372,_0x1fde92=new _0x15b1ce(this[_0x27ea77(0xff)],this[_0x27ea77(0xe6)]);_0x1fde92[_0x27ea77(0xfe)][_0x27ea77(0x101)](_0x202d57[_0x27ea77(0xe3)](_0x57ad16=>new _0x1eac46(this[_0x27ea77(0xff)],_0x57ad16,_0x1fde92[_0x27ea77(0xf5)]))),_0x1fde92[_0x27ea77(0xf2)]=!0x0,this[_0x27ea77(0xfe)][_0x27ea77(0xe7)](_0x1fde92);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x6f3060=_0xe98c;(function(_0x33e3dd,_0x3c5823){const _0x445054=_0xe98c,_0x57ac5c=_0x33e3dd();while(!![]){try{const _0x7c585d=-parseInt(_0x445054(0x159))/0x1+-parseInt(_0x445054(0x11b))/0x2+parseInt(_0x445054(0x155))/0x3+parseInt(_0x445054(0x131))/0x4*(-parseInt(_0x445054(0x13f))/0x5)+parseInt(_0x445054(0x156))/0x6+parseInt(_0x445054(0x16a))/0x7+-parseInt(_0x445054(0x174))/0x8*(-parseInt(_0x445054(0x14e))/0x9);if(_0x7c585d===_0x3c5823)break;else _0x57ac5c['push'](_0x57ac5c['shift']());}catch(_0x418d35){_0x57ac5c['push'](_0x57ac5c['shift']());}}}(_0x2add,0x7a00c));import{KeystrokeHandler as _0x14eb9c}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x224c25,BodyCollection as _0x1d93bb,ButtonView as _0x28b589,clickOutsideHandler as _0x59c890,ListItemButtonView as _0x1f62cc,ListItemView as _0x576e98,ListView as _0x57096a,SplitButtonView as _0x3eaecc,UIModel as _0x522489,View as _0x3e50ed}from'ckeditor5/src/ui.js';import{IconCheck as _0x4c91f3,IconAddComment as _0x9f56c8,IconDocumentWithLoupe as _0x4271e0}from'ckeditor5/src/icons.js';import{getTranslation as _0x11ab61}from'../../../aicore/utils/common-translations.js';function _0x2add(){const _0x437405=['_setUpList','listItemModels','ck-ai-chat__feed__ai-suggestion__actions\x20','destroy','ck-ai-chat__feed__ai-suggestion__actions--no-animation','140418vDGGjG','ck-ai-chat__feed__ai-suggestion__actions__balloon','ck-ai-chat__feed__ai-suggestion__actions','isVisible','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','keys','balloonPanelClass','actionsButton','arrowless','open','esc','isEnabled','ck-ai-button-primary','insertSuggestionModel','_dropdownOriginalConfig','unbind','applySuggestion','filter','bottom','class','showChangeInText','4frGoKg','insertSuggestion','pin','map','label','_createActionsDropdown','set','listView','ltr','_createActionsButton','content','element','isTrackChangesOn','setTemplate','1485635SMYlGr','fire','delegate','updateLabels','button','locale','_setUpKeystrokes','focus','ck-hidden','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','uiLanguageDirection','keystrokeHandler','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','actionName','bodyCollection','252xFizRJ','listenTo','slice','hide','left','_createActionsDropdownOrButton','showChangeInTextModel','191769MyAUOL','656934ZbFzmU','_partsCount','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','671709osqRKU','createCollection','length','_dropdownCurrentConfig','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','children','items','_updateDropdownActions','has','div','attachToDom','_firstRender','add','execute','tooltip','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','applySuggestionModel','1587747DaOvcO','source','balloonPanelView','arrowView','bindTemplate','bind','width','remove','change:isTrackChangesOn','detachFromDom','325296WXMwyY'];_0x2add=function(){return _0x437405;};return _0x2add();}export const AI_REPLY_ACTIONS=[_0x6f3060(0x12c),_0x6f3060(0x132),_0x6f3060(0x130)];function _0xe98c(_0x40f44e,_0x1b08f4){const _0x2add6a=_0x2add();return _0xe98c=function(_0xe98c64,_0x497e4a){_0xe98c64=_0xe98c64-0x116;let _0x4e1b67=_0x2add6a[_0xe98c64];return _0x4e1b67;},_0xe98c(_0x40f44e,_0x1b08f4);}export class AIChatFeedSuggestionItemActionsView extends _0x3e50ed{[_0x6f3060(0x123)];[_0x6f3060(0x15e)];[_0x6f3060(0x169)];[_0x6f3060(0x154)];[_0x6f3060(0x129)];[_0x6f3060(0x157)]=0x1;[_0x6f3060(0x12a)];[_0x6f3060(0x15c)];[_0x6f3060(0x164)]=!0x0;constructor(_0x3c5d91,_0x3c5a1a){const _0xe4a02e=_0x6f3060;super(_0x3c5d91),this[_0xe4a02e(0x12a)]=_0x3c5a1a||[...AI_REPLY_ACTIONS],this[_0xe4a02e(0x15c)]=[...this[_0xe4a02e(0x12a)]];const _0x6a5e07=this[_0xe4a02e(0x16e)];this[_0xe4a02e(0x137)](_0xe4a02e(0x127),!0x0),this[_0xe4a02e(0x137)](_0xe4a02e(0x11e),!0x0),this[_0xe4a02e(0x137)](_0xe4a02e(0x13d),!0x1),this[_0xe4a02e(0x169)]=new _0x522489({'label':Ln(_0xe4a02e(0x12c),_0x3c5d91,this[_0xe4a02e(0x157)]),'icon':_0x4c91f3,'withText':!0x0,'type':_0xe4a02e(0x143),'actionName':_0xe4a02e(0x12c)}),this[_0xe4a02e(0x154)]=new _0x522489({'label':Ln(_0xe4a02e(0x130),_0x3c5d91,this[_0xe4a02e(0x157)]),'icon':_0x4271e0,'withText':!0x0,'type':_0xe4a02e(0x143),'actionName':_0xe4a02e(0x130)}),this[_0xe4a02e(0x129)]=new _0x522489({'label':Ln(_0xe4a02e(0x132),_0x3c5d91,this[_0xe4a02e(0x157)]),'icon':_0x9f56c8,'withText':!0x0,'type':_0xe4a02e(0x143),'actionName':_0xe4a02e(0x132)}),this[_0xe4a02e(0x123)]=this[_0xe4a02e(0x153)](_0x3c5d91),this[_0xe4a02e(0x15e)]=this[_0xe4a02e(0x15a)](),this[_0xe4a02e(0x123)]&&this[_0xe4a02e(0x15e)][_0xe4a02e(0x165)](this[_0xe4a02e(0x123)]),this[_0xe4a02e(0x13e)]({'tag':_0xe4a02e(0x162),'attributes':{'class':['ck',_0xe4a02e(0x11d),_0x6a5e07['if'](_0xe4a02e(0x11e),_0xe4a02e(0x147),_0x2c8059=>!_0x2c8059)]},'children':this[_0xe4a02e(0x15e)]}),this['on'](_0xe4a02e(0x172),()=>{const _0x430041=_0xe4a02e;this[_0x430041(0x15c)]=this[_0x430041(0x13d)]?this[_0x430041(0x12a)][_0x430041(0x12d)](_0x287be0=>_0x430041(0x12c)!==_0x287be0):[...this[_0x430041(0x12a)]],this[_0x430041(0x160)](_0x3c5d91);});}[_0x6f3060(0x160)](_0x24b5a0){const _0x29a027=_0x6f3060;this[_0x29a027(0x123)]&&this[_0x29a027(0x15e)][_0x29a027(0x161)](this[_0x29a027(0x123)])&&(this[_0x29a027(0x15e)][_0x29a027(0x171)](this[_0x29a027(0x123)]),this[_0x29a027(0x123)][_0x29a027(0x119)]()),this[_0x29a027(0x123)]=this[_0x29a027(0x153)](_0x24b5a0),this[_0x29a027(0x123)]&&this[_0x29a027(0x15e)][_0x29a027(0x165)](this[_0x29a027(0x123)]);}[_0x6f3060(0x153)](_0x33b78c){const _0x43b150=_0x6f3060;if(0x0==this[_0x43b150(0x15c)][_0x43b150(0x15b)])return null;const _0xafa5af=0x1===this[_0x43b150(0x15c)][_0x43b150(0x15b)]?this[_0x43b150(0x13a)](_0x33b78c):this[_0x43b150(0x136)](_0x33b78c),_0x33b5d5=this[_0x43b150(0x164)]?'':_0x43b150(0x11a);_0xafa5af[_0x43b150(0x137)]({'label':Ln(this[_0x43b150(0x15c)][0x0],_0x33b78c,this[_0x43b150(0x157)]),'tooltip':Un(this[_0x43b150(0x15c)][0x0],_0x33b78c,this[_0x43b150(0x157)]),'withText':!0x0,'class':_0x43b150(0x118)+_0x33b5d5});for(const _0x37fd6f of this[_0x43b150(0x15c)])_0xafa5af['on'](_0x37fd6f,()=>{const _0x5bb19d=_0x43b150;this[_0x5bb19d(0x140)](_0x37fd6f);});return this[_0x43b150(0x164)]=!0x1,_0xafa5af;}[_0x6f3060(0x13a)](_0x5456bb){const _0x59be82=_0x6f3060,_0x156a04=new _0x28b589(_0x5456bb);return _0x156a04[_0x59be82(0x137)]({'class':_0x59be82(0x128),'withText':!0x0}),_0x156a04['on'](_0x59be82(0x166),()=>{const _0x261c9b=_0x59be82;_0x156a04[_0x261c9b(0x140)](this[_0x261c9b(0x15c)][0x0]);}),_0x156a04;}[_0x6f3060(0x136)](_0x4c2c7e){const _0x4c0c3e=_0x6f3060,_0x1f4a3d=new yn(_0x4c2c7e,{'listItemModels':this[_0x4c0c3e(0x15c)][_0x4c0c3e(0x134)](_0x42f51e=>{const _0x13d550=_0x4c0c3e;switch(_0x42f51e){case _0x13d550(0x12c):return this[_0x13d550(0x169)];case _0x13d550(0x130):return this[_0x13d550(0x154)];case _0x13d550(0x132):return this[_0x13d550(0x129)];}})});return _0x1f4a3d[_0x4c0c3e(0x137)]({'label':Ln(this[_0x4c0c3e(0x15c)][0x0],_0x4c2c7e,this[_0x4c0c3e(0x157)]),'tooltip':Un(this[_0x4c0c3e(0x15c)][0x0],_0x4c2c7e,this[_0x4c0c3e(0x157)]),'withText':!0x0,'class':_0x4c0c3e(0x11d),'balloonPanelClass':_0x4c0c3e(0x11c)}),_0x1f4a3d[_0x4c0c3e(0x16f)](_0x4c0c3e(0x127))['to'](this),_0x1f4a3d;}[_0x6f3060(0x142)](_0x32b3bb){const _0x167864=_0x6f3060,_0x2bf87a=this[_0x167864(0x144)];this[_0x167864(0x157)]=_0x32b3bb||this[_0x167864(0x157)],this[_0x167864(0x123)][_0x167864(0x137)]({'label':Ln(this[_0x167864(0x15c)][0x0],_0x2bf87a,this[_0x167864(0x157)]),'tooltip':Un(this[_0x167864(0x15c)][0x0],_0x2bf87a,this[_0x167864(0x157)])}),this[_0x167864(0x169)][_0x167864(0x135)]=Ln(_0x167864(0x12c),_0x2bf87a,this[_0x167864(0x157)]),this[_0x167864(0x154)][_0x167864(0x135)]=Ln(_0x167864(0x130),_0x2bf87a,this[_0x167864(0x157)]),this[_0x167864(0x129)][_0x167864(0x135)]=Ln(_0x167864(0x132),_0x2bf87a,this[_0x167864(0x157)]);}}class yn extends _0x3eaecc{[_0x6f3060(0x14d)];[_0x6f3060(0x16c)];[_0x6f3060(0x138)];[_0x6f3060(0x14a)];constructor(_0x59680e,_0x5a6361){const _0x131ee8=_0x6f3060;super(_0x59680e),this[_0x131ee8(0x16c)]=new _0x224c25(this[_0x131ee8(0x144)]),this[_0x131ee8(0x14d)]=new _0x1d93bb(this[_0x131ee8(0x144)]),this[_0x131ee8(0x14d)][_0x131ee8(0x163)](),this[_0x131ee8(0x137)](_0x131ee8(0x122),''),this[_0x131ee8(0x16c)][_0x131ee8(0x16f)](_0x131ee8(0x12f))['to'](this,_0x131ee8(0x122)),this[_0x131ee8(0x138)]=this[_0x131ee8(0x116)](_0x5a6361[_0x131ee8(0x117)][_0x131ee8(0x150)](0x1)),this[_0x131ee8(0x14d)][_0x131ee8(0x165)](this[_0x131ee8(0x16c)]),this[_0x131ee8(0x16c)][_0x131ee8(0x13b)][_0x131ee8(0x165)](this[_0x131ee8(0x138)]),this[_0x131ee8(0x16d)][_0x131ee8(0x12b)](_0x131ee8(0x167)),this[_0x131ee8(0x16d)][_0x131ee8(0x137)](_0x131ee8(0x167),_0x11ab61(this[_0x131ee8(0x144)],_0x131ee8(0x15d))),this[_0x131ee8(0x145)](),this['on'](_0x131ee8(0x166),()=>{const _0x4cfba4=_0x131ee8,_0x1a5cf0=_0x5a6361[_0x4cfba4(0x117)][0x0][_0x4cfba4(0x14c)];this[_0x4cfba4(0x140)](_0x1a5cf0),this[_0x4cfba4(0x16c)][_0x4cfba4(0x151)](),this[_0x4cfba4(0x16d)][_0x4cfba4(0x146)]();}),this['on'](_0x131ee8(0x125),()=>{const _0x55d225=_0x131ee8;this[_0x55d225(0x16c)][_0x55d225(0x11e)]?(this[_0x55d225(0x16c)][_0x55d225(0x151)](),this[_0x55d225(0x16d)][_0x55d225(0x146)]()):(this[_0x55d225(0x16c)][_0x55d225(0x133)]({'target':this[_0x55d225(0x13c)],'positions':[_0x55d225(0x139)===this[_0x55d225(0x144)][_0x55d225(0x149)]?Pn:Hn]}),this[_0x55d225(0x138)][_0x55d225(0x146)]());}),_0x59c890({'emitter':this[_0x131ee8(0x16c)],'callback':()=>{const _0x482783=_0x131ee8;this[_0x482783(0x16c)][_0x482783(0x151)]();},'activator':()=>this[_0x131ee8(0x16c)][_0x131ee8(0x11e)],'contextElements':()=>[this[_0x131ee8(0x13c)],this[_0x131ee8(0x16c)][_0x131ee8(0x13c)]]});}[_0x6f3060(0x116)](_0x14e329){const _0x51d90c=_0x6f3060,_0x525b12=this[_0x51d90c(0x144)],_0x46d291=new _0x57096a(_0x525b12);for(const _0x1cec2f of _0x14e329){const _0x739ce0=new _0x576e98(_0x525b12),_0x431b03=new _0x1f62cc(_0x525b12);_0x431b03[_0x51d90c(0x16f)](...Object[_0x51d90c(0x121)](_0x1cec2f))['to'](_0x1cec2f),_0x431b03[_0x51d90c(0x141)](_0x51d90c(0x166))['to'](_0x46d291),_0x739ce0[_0x51d90c(0x15e)][_0x51d90c(0x165)](_0x431b03),_0x46d291[_0x51d90c(0x15f)][_0x51d90c(0x165)](_0x739ce0);}return _0x46d291[_0x51d90c(0x15f)][_0x51d90c(0x141)](_0x51d90c(0x166))['to'](this),_0x46d291['on'](_0x51d90c(0x166),_0x30707e=>{const _0x1cdbdb=_0x51d90c,_0xeca95c=_0x30707e[_0x1cdbdb(0x16b)];this[_0x1cdbdb(0x140)](_0xeca95c[_0x1cdbdb(0x14c)]),this[_0x1cdbdb(0x16c)][_0x1cdbdb(0x151)](),this[_0x1cdbdb(0x16d)][_0x1cdbdb(0x146)]();}),_0x46d291;}[_0x6f3060(0x145)](){const _0x58712e=_0x6f3060;this[_0x58712e(0x14a)]=new _0x14eb9c(),this[_0x58712e(0x14a)][_0x58712e(0x14f)](this[_0x58712e(0x16c)][_0x58712e(0x13c)]),this[_0x58712e(0x14a)][_0x58712e(0x137)](_0x58712e(0x126),(_0x419738,_0x3f9aee)=>{const _0x29b611=_0x58712e;this[_0x29b611(0x16c)][_0x29b611(0x151)](),this[_0x29b611(0x16d)][_0x29b611(0x146)](),_0x3f9aee();});}[_0x6f3060(0x119)](){const _0x31dc29=_0x6f3060;super[_0x31dc29(0x119)](),this[_0x31dc29(0x14a)][_0x31dc29(0x119)](),this[_0x31dc29(0x16c)][_0x31dc29(0x119)](),this[_0x31dc29(0x14d)][_0x31dc29(0x173)]();}}function Pn(_0x29bd9f){const _0x58a9df=_0x6f3060;return{'top':_0x29bd9f[_0x58a9df(0x12e)],'left':_0x29bd9f[_0x58a9df(0x152)],'name':_0x58a9df(0x124),'config':{'withArrow':!0x1}};}function Hn(_0x1e83fe,_0x461d5){const _0x615059=_0x6f3060;return{'top':_0x1e83fe[_0x615059(0x12e)],'left':_0x1e83fe[_0x615059(0x152)]-(_0x461d5[_0x615059(0x170)]-_0x1e83fe[_0x615059(0x170)]),'name':_0x615059(0x124),'config':{'withArrow':!0x1}};}function Ln(_0x2607e7,_0x4816c3,_0x3092cf){const _0x3fafd3=_0x6f3060;switch(_0x2607e7){case _0x3fafd3(0x12c):return _0x11ab61(_0x4816c3,_0x3fafd3(0x158),_0x3092cf);case _0x3fafd3(0x130):return _0x11ab61(_0x4816c3,_0x3fafd3(0x120),_0x3092cf);case _0x3fafd3(0x132):return _0x11ab61(_0x4816c3,_0x3fafd3(0x11f),_0x3092cf);}}function Un(_0x27420f,_0x43b6b1,_0x5a502f){const _0x2847d4=_0x6f3060;switch(_0x27420f){case _0x2847d4(0x12c):return _0x11ab61(_0x43b6b1,_0x2847d4(0x14b),_0x5a502f);case _0x2847d4(0x130):return _0x11ab61(_0x43b6b1,_0x2847d4(0x148),_0x5a502f);case _0x2847d4(0x132):return _0x11ab61(_0x43b6b1,_0x2847d4(0x168),_0x5a502f);}}
|
|
23
|
+
const _0x55ef17=_0x1367;function _0x1367(_0x434ab4,_0x359c4f){const _0xc4abf2=_0xc4ab();return _0x1367=function(_0x1367d0,_0x4546bd){_0x1367d0=_0x1367d0-0x9a;let _0x2b1c47=_0xc4abf2[_0x1367d0];return _0x2b1c47;},_0x1367(_0x434ab4,_0x359c4f);}function _0xc4ab(){const _0xbce5e8=['AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','showChangeInTextModel','ck-ai-chat__feed__ai-suggestion__actions--no-animation','isEnabled','listView','listenTo','updateLabels','locale','ck-ai-chat__feed__ai-suggestion__actions__balloon','arrowless','unbind','hide','280647VeGaYC','element','filter','insertSuggestionModel','length','insertSuggestion','attachToDom','children','add','42BXRmfS','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','_createActionsDropdown','content','_firstRender','arrowView','ck-ai-chat__feed__ai-suggestion__actions','set','325505AvGmcj','delegate','fire','44GOczrg','change:isTrackChangesOn','items','div','1656354HGncBL','label','balloonPanelClass','applySuggestion','ltr','_dropdownCurrentConfig','7654096SfgqnN','ck-ai-button-primary','source','left','actionName','createCollection','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','_createActionsDropdownOrButton','1796847asfczL','pin','applySuggestionModel','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','bindTemplate','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','31629yjnhud','isTrackChangesOn','balloonPanelView','3734932DsyYKL','ck-hidden','detachFromDom','actionsButton','open','listItemModels','destroy','showChangeInText','width','_dropdownOriginalConfig','isVisible','keys','button','uiLanguageDirection','bottom','remove','class','ck-ai-chat__feed__ai-suggestion__actions\x20','tooltip','has','esc','_setUpKeystrokes','_setUpList','focus','slice','bind','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','_createActionsButton','keystrokeHandler','setTemplate','_partsCount','execute','map','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','bodyCollection','_updateDropdownActions','1010IKSEgP'];_0xc4ab=function(){return _0xbce5e8;};return _0xc4ab();}(function(_0xf3433e,_0x34c407){const _0x1ba66e=_0x1367,_0x47ffb0=_0xf3433e();while(!![]){try{const _0x1988bf=-parseInt(_0x1ba66e(0xc0))/0x1+parseInt(_0x1ba66e(0xae))/0x2*(parseInt(_0x1ba66e(0xc6))/0x3)+-parseInt(_0x1ba66e(0xc9))/0x4+parseInt(_0x1ba66e(0xab))/0x5*(-parseInt(_0x1ba66e(0xa3))/0x6)+-parseInt(_0x1ba66e(0xb2))/0x7+parseInt(_0x1ba66e(0xb8))/0x8+-parseInt(_0x1ba66e(0x9a))/0x9*(-parseInt(_0x1ba66e(0xed))/0xa);if(_0x1988bf===_0x34c407)break;else _0x47ffb0['push'](_0x47ffb0['shift']());}catch(_0x5f5cd7){_0x47ffb0['push'](_0x47ffb0['shift']());}}}(_0xc4ab,0xdf752));import{KeystrokeHandler as _0xa72274}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x9b58c5,BodyCollection as _0x76d23c,ButtonView as _0x2c6490,clickOutsideHandler as _0x119957,ListItemButtonView as _0x68714,ListItemView as _0x123447,ListView as _0x467c9a,SplitButtonView as _0x3b8690,UIModel as _0x953fc6,View as _0x3c9f3e}from'ckeditor5/src/ui.js';import{IconCheck as _0x259b02,IconAddComment as _0x2809d9,IconDocumentWithLoupe as _0x58aa5e}from'ckeditor5/src/icons.js';import{getTranslation as _0xa3aa7e}from'../../../aicore/utils/common-translations.js';export const AI_REPLY_ACTIONS=[_0x55ef17(0xb5),_0x55ef17(0x9f),_0x55ef17(0xd0)];export class AIChatFeedSuggestionItemActionsView extends _0x3c9f3e{[_0x55ef17(0xcc)];[_0x55ef17(0xa1)];[_0x55ef17(0xc2)];[_0x55ef17(0xef)];[_0x55ef17(0x9d)];[_0x55ef17(0xe7)]=0x1;[_0x55ef17(0xd2)];[_0x55ef17(0xb7)];[_0x55ef17(0xa7)]=!0x0;constructor(_0x245993,_0x19e090){const _0x467535=_0x55ef17;super(_0x245993),this[_0x467535(0xd2)]=_0x19e090||[...AI_REPLY_ACTIONS],this[_0x467535(0xb7)]=[...this[_0x467535(0xd2)]];const _0x7810a=this[_0x467535(0xc4)];this[_0x467535(0xaa)](_0x467535(0xf1),!0x0),this[_0x467535(0xaa)](_0x467535(0xd3),!0x0),this[_0x467535(0xaa)](_0x467535(0xc7),!0x1),this[_0x467535(0xc2)]=new _0x953fc6({'label':Nn(_0x467535(0xb5),_0x245993,this[_0x467535(0xe7)]),'icon':_0x259b02,'withText':!0x0,'type':_0x467535(0xd5),'actionName':_0x467535(0xb5)}),this[_0x467535(0xef)]=new _0x953fc6({'label':Nn(_0x467535(0xd0),_0x245993,this[_0x467535(0xe7)]),'icon':_0x58aa5e,'withText':!0x0,'type':_0x467535(0xd5),'actionName':_0x467535(0xd0)}),this[_0x467535(0x9d)]=new _0x953fc6({'label':Nn(_0x467535(0x9f),_0x245993,this[_0x467535(0xe7)]),'icon':_0x2809d9,'withText':!0x0,'type':_0x467535(0xd5),'actionName':_0x467535(0x9f)}),this[_0x467535(0xcc)]=this[_0x467535(0xbf)](_0x245993),this[_0x467535(0xa1)]=this[_0x467535(0xbd)](),this[_0x467535(0xcc)]&&this[_0x467535(0xa1)][_0x467535(0xa2)](this[_0x467535(0xcc)]),this[_0x467535(0xe6)]({'tag':_0x467535(0xb1),'attributes':{'class':['ck',_0x467535(0xa9),_0x7810a['if'](_0x467535(0xd3),_0x467535(0xca),_0x31c194=>!_0x31c194)]},'children':this[_0x467535(0xa1)]}),this['on'](_0x467535(0xaf),()=>{const _0x51e28e=_0x467535;this[_0x51e28e(0xb7)]=this[_0x51e28e(0xc7)]?this[_0x51e28e(0xd2)][_0x51e28e(0x9c)](_0x43b7d0=>_0x51e28e(0xb5)!==_0x43b7d0):[...this[_0x51e28e(0xd2)]],this[_0x51e28e(0xec)](_0x245993);});}[_0x55ef17(0xec)](_0x4c1a16){const _0x2125e=_0x55ef17;this[_0x2125e(0xcc)]&&this[_0x2125e(0xa1)][_0x2125e(0xdc)](this[_0x2125e(0xcc)])&&(this[_0x2125e(0xa1)][_0x2125e(0xd8)](this[_0x2125e(0xcc)]),this[_0x2125e(0xcc)][_0x2125e(0xcf)]()),this[_0x2125e(0xcc)]=this[_0x2125e(0xbf)](_0x4c1a16),this[_0x2125e(0xcc)]&&this[_0x2125e(0xa1)][_0x2125e(0xa2)](this[_0x2125e(0xcc)]);}[_0x55ef17(0xbf)](_0x39a01e){const _0x40a8bd=_0x55ef17;if(0x0==this[_0x40a8bd(0xb7)][_0x40a8bd(0x9e)])return null;const _0x2f98e2=0x1===this[_0x40a8bd(0xb7)][_0x40a8bd(0x9e)]?this[_0x40a8bd(0xe4)](_0x39a01e):this[_0x40a8bd(0xa5)](_0x39a01e),_0xb94661=this[_0x40a8bd(0xa7)]?'':_0x40a8bd(0xf0);_0x2f98e2[_0x40a8bd(0xaa)]({'label':Nn(this[_0x40a8bd(0xb7)][0x0],_0x39a01e,this[_0x40a8bd(0xe7)]),'tooltip':fn(this[_0x40a8bd(0xb7)][0x0],_0x39a01e,this[_0x40a8bd(0xe7)]),'withText':!0x0,'class':_0x40a8bd(0xda)+_0xb94661});for(const _0x96c11a of this[_0x40a8bd(0xb7)])_0x2f98e2['on'](_0x96c11a,()=>{const _0x21d190=_0x40a8bd;this[_0x21d190(0xad)](_0x96c11a);});return this[_0x40a8bd(0xa7)]=!0x1,_0x2f98e2;}[_0x55ef17(0xe4)](_0x2246c5){const _0x5c0834=_0x55ef17,_0x1613b0=new _0x2c6490(_0x2246c5);return _0x1613b0[_0x5c0834(0xaa)]({'class':_0x5c0834(0xb9),'withText':!0x0}),_0x1613b0['on'](_0x5c0834(0xe8),()=>{const _0x6e6ada=_0x5c0834;_0x1613b0[_0x6e6ada(0xad)](this[_0x6e6ada(0xb7)][0x0]);}),_0x1613b0;}[_0x55ef17(0xa5)](_0x2f58c6){const _0x585ca4=_0x55ef17,_0x5143cf=new An(_0x2f58c6,{'listItemModels':this[_0x585ca4(0xb7)][_0x585ca4(0xe9)](_0x4abf22=>{const _0xd4654d=_0x585ca4;switch(_0x4abf22){case _0xd4654d(0xb5):return this[_0xd4654d(0xc2)];case _0xd4654d(0xd0):return this[_0xd4654d(0xef)];case _0xd4654d(0x9f):return this[_0xd4654d(0x9d)];}})});return _0x5143cf[_0x585ca4(0xaa)]({'label':Nn(this[_0x585ca4(0xb7)][0x0],_0x2f58c6,this[_0x585ca4(0xe7)]),'tooltip':fn(this[_0x585ca4(0xb7)][0x0],_0x2f58c6,this[_0x585ca4(0xe7)]),'withText':!0x0,'class':_0x585ca4(0xa9),'balloonPanelClass':_0x585ca4(0xf6)}),_0x5143cf[_0x585ca4(0xe2)](_0x585ca4(0xf1))['to'](this),_0x5143cf;}[_0x55ef17(0xf4)](_0x4265a9){const _0x159dad=_0x55ef17,_0x8bf84=this[_0x159dad(0xf5)];this[_0x159dad(0xe7)]=_0x4265a9||this[_0x159dad(0xe7)],this[_0x159dad(0xcc)][_0x159dad(0xaa)]({'label':Nn(this[_0x159dad(0xb7)][0x0],_0x8bf84,this[_0x159dad(0xe7)]),'tooltip':fn(this[_0x159dad(0xb7)][0x0],_0x8bf84,this[_0x159dad(0xe7)])}),this[_0x159dad(0xc2)][_0x159dad(0xb3)]=Nn(_0x159dad(0xb5),_0x8bf84,this[_0x159dad(0xe7)]),this[_0x159dad(0xef)][_0x159dad(0xb3)]=Nn(_0x159dad(0xd0),_0x8bf84,this[_0x159dad(0xe7)]),this[_0x159dad(0x9d)][_0x159dad(0xb3)]=Nn(_0x159dad(0x9f),_0x8bf84,this[_0x159dad(0xe7)]);}}class An extends _0x3b8690{[_0x55ef17(0xeb)];[_0x55ef17(0xc8)];[_0x55ef17(0xf2)];[_0x55ef17(0xe5)];constructor(_0x353740,_0x2a3b79){const _0x3af767=_0x55ef17;super(_0x353740),this[_0x3af767(0xc8)]=new _0x9b58c5(this[_0x3af767(0xf5)]),this[_0x3af767(0xeb)]=new _0x76d23c(this[_0x3af767(0xf5)]),this[_0x3af767(0xeb)][_0x3af767(0xa0)](),this[_0x3af767(0xaa)](_0x3af767(0xb4),''),this[_0x3af767(0xc8)][_0x3af767(0xe2)](_0x3af767(0xd9))['to'](this,_0x3af767(0xb4)),this[_0x3af767(0xf2)]=this[_0x3af767(0xdf)](_0x2a3b79[_0x3af767(0xce)][_0x3af767(0xe1)](0x1)),this[_0x3af767(0xeb)][_0x3af767(0xa2)](this[_0x3af767(0xc8)]),this[_0x3af767(0xc8)][_0x3af767(0xa6)][_0x3af767(0xa2)](this[_0x3af767(0xf2)]),this[_0x3af767(0xa8)][_0x3af767(0xf8)](_0x3af767(0xdb)),this[_0x3af767(0xa8)][_0x3af767(0xaa)](_0x3af767(0xdb),_0xa3aa7e(this[_0x3af767(0xf5)],_0x3af767(0xee))),this[_0x3af767(0xde)](),this['on'](_0x3af767(0xe8),()=>{const _0x1df390=_0x3af767,_0xac6212=_0x2a3b79[_0x1df390(0xce)][0x0][_0x1df390(0xbc)];this[_0x1df390(0xad)](_0xac6212),this[_0x1df390(0xc8)][_0x1df390(0xf9)](),this[_0x1df390(0xa8)][_0x1df390(0xe0)]();}),this['on'](_0x3af767(0xcd),()=>{const _0x50a152=_0x3af767;this[_0x50a152(0xc8)][_0x50a152(0xd3)]?(this[_0x50a152(0xc8)][_0x50a152(0xf9)](),this[_0x50a152(0xa8)][_0x50a152(0xe0)]()):(this[_0x50a152(0xc8)][_0x50a152(0xc1)]({'target':this[_0x50a152(0x9b)],'positions':[_0x50a152(0xb6)===this[_0x50a152(0xf5)][_0x50a152(0xd6)]?Cn:On]}),this[_0x50a152(0xf2)][_0x50a152(0xe0)]());}),_0x119957({'emitter':this[_0x3af767(0xc8)],'callback':()=>{const _0x21e2d1=_0x3af767;this[_0x21e2d1(0xc8)][_0x21e2d1(0xf9)]();},'activator':()=>this[_0x3af767(0xc8)][_0x3af767(0xd3)],'contextElements':()=>[this[_0x3af767(0x9b)],this[_0x3af767(0xc8)][_0x3af767(0x9b)]]});}[_0x55ef17(0xdf)](_0x451f7d){const _0x278b53=_0x55ef17,_0x34b734=this[_0x278b53(0xf5)],_0x96c29b=new _0x467c9a(_0x34b734);for(const _0x232ef6 of _0x451f7d){const _0x264aa0=new _0x123447(_0x34b734),_0x42f2ac=new _0x68714(_0x34b734);_0x42f2ac[_0x278b53(0xe2)](...Object[_0x278b53(0xd4)](_0x232ef6))['to'](_0x232ef6),_0x42f2ac[_0x278b53(0xac)](_0x278b53(0xe8))['to'](_0x96c29b),_0x264aa0[_0x278b53(0xa1)][_0x278b53(0xa2)](_0x42f2ac),_0x96c29b[_0x278b53(0xb0)][_0x278b53(0xa2)](_0x264aa0);}return _0x96c29b[_0x278b53(0xb0)][_0x278b53(0xac)](_0x278b53(0xe8))['to'](this),_0x96c29b['on'](_0x278b53(0xe8),_0x1e8e49=>{const _0x32ea85=_0x278b53,_0x37697a=_0x1e8e49[_0x32ea85(0xba)];this[_0x32ea85(0xad)](_0x37697a[_0x32ea85(0xbc)]),this[_0x32ea85(0xc8)][_0x32ea85(0xf9)](),this[_0x32ea85(0xa8)][_0x32ea85(0xe0)]();}),_0x96c29b;}[_0x55ef17(0xde)](){const _0x28bdc3=_0x55ef17;this[_0x28bdc3(0xe5)]=new _0xa72274(),this[_0x28bdc3(0xe5)][_0x28bdc3(0xf3)](this[_0x28bdc3(0xc8)][_0x28bdc3(0x9b)]),this[_0x28bdc3(0xe5)][_0x28bdc3(0xaa)](_0x28bdc3(0xdd),(_0x3b72eb,_0x4dcf18)=>{const _0x367b72=_0x28bdc3;this[_0x367b72(0xc8)][_0x367b72(0xf9)](),this[_0x367b72(0xa8)][_0x367b72(0xe0)](),_0x4dcf18();});}[_0x55ef17(0xcf)](){const _0x3f2901=_0x55ef17;super[_0x3f2901(0xcf)](),this[_0x3f2901(0xe5)][_0x3f2901(0xcf)](),this[_0x3f2901(0xc8)][_0x3f2901(0xcf)](),this[_0x3f2901(0xeb)][_0x3f2901(0xcb)]();}}function Cn(_0x53798b){const _0x1dacfa=_0x55ef17;return{'top':_0x53798b[_0x1dacfa(0xd7)],'left':_0x53798b[_0x1dacfa(0xbb)],'name':_0x1dacfa(0xf7),'config':{'withArrow':!0x1}};}function On(_0x5baf6c,_0x19213b){const _0x14b447=_0x55ef17;return{'top':_0x5baf6c[_0x14b447(0xd7)],'left':_0x5baf6c[_0x14b447(0xbb)]-(_0x19213b[_0x14b447(0xd1)]-_0x5baf6c[_0x14b447(0xd1)]),'name':_0x14b447(0xf7),'config':{'withArrow':!0x1}};}function Nn(_0x1c97f3,_0x304d00,_0x37e2e4){const _0x224a4a=_0x55ef17;switch(_0x1c97f3){case _0x224a4a(0xb5):return _0xa3aa7e(_0x304d00,_0x224a4a(0xbe),_0x37e2e4);case _0x224a4a(0xd0):return _0xa3aa7e(_0x304d00,_0x224a4a(0xc3),_0x37e2e4);case _0x224a4a(0x9f):return _0xa3aa7e(_0x304d00,_0x224a4a(0xc5),_0x37e2e4);}}function fn(_0x43086a,_0x2a651a,_0x166386){const _0x539f88=_0x55ef17;switch(_0x43086a){case _0x539f88(0xb5):return _0xa3aa7e(_0x2a651a,_0x539f88(0xea),_0x166386);case _0x539f88(0xd0):return _0xa3aa7e(_0x2a651a,_0x539f88(0xa4),_0x166386);case _0x539f88(0x9f):return _0xa3aa7e(_0x2a651a,_0x539f88(0xe3),_0x166386);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x380e0a=_0x2599;function _0x2599(_0x354b20,_0x35e345){var _0x5ca141=_0x5ca1();return _0x2599=function(_0x2599b9,_0x1b597f){_0x2599b9=_0x2599b9-0x139;var _0x137abc=_0x5ca141[_0x2599b9];return _0x137abc;},_0x2599(_0x354b20,_0x35e345);}(function(_0x5a8bfc,_0x404c59){var _0x2ed8bf=_0x2599,_0x22bc08=_0x5a8bfc();while(!![]){try{var _0x5335d0=-parseInt(_0x2ed8bf(0x150))/0x1*(parseInt(_0x2ed8bf(0x148))/0x2)+parseInt(_0x2ed8bf(0x145))/0x3+parseInt(_0x2ed8bf(0x14b))/0x4*(parseInt(_0x2ed8bf(0x157))/0x5)+-parseInt(_0x2ed8bf(0x14d))/0x6+parseInt(_0x2ed8bf(0x13d))/0x7+parseInt(_0x2ed8bf(0x15e))/0x8*(-parseInt(_0x2ed8bf(0x165))/0x9)+-parseInt(_0x2ed8bf(0x14f))/0xa*(-parseInt(_0x2ed8bf(0x166))/0xb);if(_0x5335d0===_0x404c59)break;else _0x22bc08['push'](_0x22bc08['shift']());}catch(_0x36c0c4){_0x22bc08['push'](_0x22bc08['shift']());}}}(_0x5ca1,0xc09a8));function _0x5ca1(){var _0x240af8=['markAsDone','availableActions','mouseOverSuggestion','1386uaHPRP','66SZQnkh','mouseLeaveSuggestion','extendTemplate','isTrackChangesOn','areActionsDisabled','5767111vauyLy','showChangeInText','hasNonEmptyParts','toggleSuggestionDisplayMode','ck-ai-chat__feed__ai-suggestion','bind','set','showDiff','1964349EAgFga','applySuggestion','like','203342BcMYfh','options','hasPendingParts','1312LciCjQ','containerView','8132400CTDZNa','bodyView','1375110CtSidF','4UYdkMJ','insertSuggestion','updateContent','partsCount','isVisible','updatePartState','actionsView','14500rgUIGw','rejectSuggestion','getPartView','updateLabels','isEnabled','addMany','updateSources','36568IIvzWn','dislike','children','fire'];_0x5ca1=function(){return _0x240af8;};return _0x5ca1();}import{AIChatFeedItemView as _0x391d05}from'./aichatfeeditemview.js';import{AISuggestionContainerView as _0x592c61}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIChatFeedSuggestionItemActionsView as _0x1d2baa}from'./aichatfeedsuggestionitemactionsview.js';export class AIChatFeedSuggestionItemView extends _0x391d05{[_0x380e0a(0x14c)];[_0x380e0a(0x156)];constructor(_0x4cad34,_0x4e36e1,_0x5b508f){var _0x588cdd=_0x380e0a;super(_0x4e36e1),this[_0x588cdd(0x143)](_0x588cdd(0x13b),!0x1),this[_0x588cdd(0x14c)]=new _0x592c61(_0x4cad34,{'showDiff':_0x4e36e1[_0x588cdd(0x144)],'areActionsDisabled':_0x4e36e1[_0x588cdd(0x13c)],'availableActions':_0x4e36e1[_0x588cdd(0x163)]},_0x5b508f),this[_0x588cdd(0x14c)]['on'](_0x588cdd(0x140),(_0x1a8d90,_0x581aa3)=>{var _0x60da7d=_0x588cdd;this[_0x60da7d(0x161)](_0x60da7d(0x140),{'replyId':this[_0x60da7d(0x149)]['id'],'showDiff':_0x581aa3[_0x60da7d(0x144)]});}),this[_0x588cdd(0x14c)]['on'](_0x588cdd(0x147),()=>{var _0x316914=_0x588cdd;this[_0x316914(0x161)](_0x316914(0x147),{'replyId':this[_0x316914(0x149)]['id']});}),this[_0x588cdd(0x14c)]['on'](_0x588cdd(0x15f),()=>{var _0x388ccc=_0x588cdd;this[_0x388ccc(0x161)](_0x388ccc(0x15f),{'replyId':this[_0x388ccc(0x149)]['id']});}),this[_0x588cdd(0x14c)]['on'](_0x588cdd(0x13e),(_0x2ea88d,{index:_0x34e4b4})=>{var _0x35249d=_0x588cdd;this[_0x35249d(0x161)](_0x35249d(0x13e),{'replyId':this[_0x35249d(0x149)]['id'],'partIndex':_0x34e4b4});}),this[_0x588cdd(0x14c)]['on'](_0x588cdd(0x151),(_0x2e095c,{index:_0x1a5575})=>{var _0x20cb5d=_0x588cdd;this[_0x20cb5d(0x161)](_0x20cb5d(0x151),{'replyId':this[_0x20cb5d(0x149)]['id'],'partIndex':_0x1a5575});}),this[_0x588cdd(0x14c)]['on'](_0x588cdd(0x158),(_0x467e5f,{index:_0xbd0208})=>{var _0x2242ba=_0x588cdd;this[_0x2242ba(0x161)](_0x2242ba(0x158),{'replyId':this[_0x2242ba(0x149)]['id'],'partIndex':_0xbd0208});}),this[_0x588cdd(0x14c)]['on'](_0x588cdd(0x164),(_0x33952b,{index:_0x3c7957})=>{var _0xf48bac=_0x588cdd;this[_0xf48bac(0x161)](_0xf48bac(0x164),{'replyId':this[_0xf48bac(0x149)]['id'],'partIndex':_0x3c7957});}),this[_0x588cdd(0x14c)]['on'](_0x588cdd(0x139),(_0x3a2616,{index:_0x597709})=>{var _0x5765ca=_0x588cdd;this[_0x5765ca(0x161)](_0x5765ca(0x139),{'replyId':this[_0x5765ca(0x149)]['id'],'partIndex':_0x597709});}),this[_0x588cdd(0x156)]=new _0x1d2baa(_0x4cad34,this[_0x588cdd(0x149)][_0x588cdd(0x163)]),this[_0x588cdd(0x156)][_0x588cdd(0x142)](_0x588cdd(0x13b))['to'](this,_0x588cdd(0x13b)),this[_0x588cdd(0x156)]['on'](_0x588cdd(0x13e),()=>{var _0x24939f=_0x588cdd;this[_0x24939f(0x161)](_0x24939f(0x13e),{'replyId':this[_0x24939f(0x149)]['id']});}),this[_0x588cdd(0x156)]['on'](_0x588cdd(0x151),()=>{var _0x56ffaf=_0x588cdd;this[_0x56ffaf(0x161)](_0x56ffaf(0x151),{'replyId':this[_0x56ffaf(0x149)]['id']});}),this[_0x588cdd(0x156)]['on'](_0x588cdd(0x146),()=>{var _0x1d1ba1=_0x588cdd;this[_0x1d1ba1(0x161)](_0x1d1ba1(0x146),{'replyId':this[_0x1d1ba1(0x149)]['id']});}),_0x4e36e1[_0x588cdd(0x13c)]?this[_0x588cdd(0x156)][_0x588cdd(0x15b)]=!0x1:this[_0x588cdd(0x156)][_0x588cdd(0x142)](_0x588cdd(0x15b))['to'](this[_0x588cdd(0x14c)][_0x588cdd(0x14e)],_0x588cdd(0x14a)),this[_0x588cdd(0x160)][_0x588cdd(0x15c)]([this[_0x588cdd(0x14c)],this[_0x588cdd(0x156)]]),this[_0x588cdd(0x13a)]({'attributes':{'class':[_0x588cdd(0x141)]}});}async[_0x380e0a(0x152)](_0x3b50c2){var _0x2bf557=_0x380e0a;await this[_0x2bf557(0x14c)][_0x2bf557(0x152)](_0x3b50c2),this[_0x2bf557(0x156)][_0x2bf557(0x15a)](this[_0x2bf557(0x14c)][_0x2bf557(0x14e)][_0x2bf557(0x153)]);}[_0x380e0a(0x155)](_0x2d0d5a,_0x580125){var _0xf7dd79=_0x380e0a;this[_0xf7dd79(0x14c)][_0xf7dd79(0x14e)][_0xf7dd79(0x155)](_0x2d0d5a,_0x580125);}[_0x380e0a(0x15d)](_0x30ed90){var _0x26def1=_0x380e0a;this[_0x26def1(0x14c)][_0x26def1(0x15d)](_0x30ed90);}[_0x380e0a(0x159)](_0x5d3e2e){var _0x37f5d7=_0x380e0a;return this[_0x37f5d7(0x14c)][_0x37f5d7(0x14e)][_0x37f5d7(0x159)](_0x5d3e2e);}[_0x380e0a(0x162)](){var _0x86759f=_0x380e0a;super[_0x86759f(0x162)](),this[_0x86759f(0x14c)][_0x86759f(0x162)](),this[_0x86759f(0x156)][_0x86759f(0x154)]=this[_0x86759f(0x14c)][_0x86759f(0x14e)][_0x86759f(0x13f)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5c6d16=_0x41f0;function _0x41f0(_0x31ee07,_0x5838fe){var _0x59a0a7=_0x59a0();return _0x41f0=function(_0x41f0ce,_0x7101a5){_0x41f0ce=_0x41f0ce-0x118;var _0x437ac6=_0x59a0a7[_0x41f0ce];return _0x437ac6;},_0x41f0(_0x31ee07,_0x5838fe);}(function(_0x50d60d,_0x4b6aba){var _0x2fafb1=_0x41f0,_0xbe627=_0x50d60d();while(!![]){try{var _0x803ea9=-parseInt(_0x2fafb1(0x11d))/0x1+-parseInt(_0x2fafb1(0x135))/0x2*(parseInt(_0x2fafb1(0x129))/0x3)+-parseInt(_0x2fafb1(0x134))/0x4*(-parseInt(_0x2fafb1(0x124))/0x5)+-parseInt(_0x2fafb1(0x127))/0x6*(parseInt(_0x2fafb1(0x137))/0x7)+-parseInt(_0x2fafb1(0x121))/0x8*(-parseInt(_0x2fafb1(0x128))/0x9)+parseInt(_0x2fafb1(0x13b))/0xa*(-parseInt(_0x2fafb1(0x12f))/0xb)+parseInt(_0x2fafb1(0x130))/0xc;if(_0x803ea9===_0x4b6aba)break;else _0xbe627['push'](_0xbe627['shift']());}catch(_0x2d8cad){_0xbe627['push'](_0xbe627['shift']());}}}(_0x59a0,0xb8018));import{AIChatFeedItemView as _0x347724}from'./aichatfeeditemview.js';import{AIChatFeedContextChipsView as _0x33e4e0}from'./aichatfeedcontextchipsview.js';import{View as _0x27d14a}from'ckeditor5/src/ui.js';function _0x59a0(){var _0xd0e9cb=['length','element','27785rEjEmx','_locale','_messageContentView','42MLKcZV','72JoaLUp','1389LwtzKR','filter','setTemplate','contextItems','div','options','11rCgqiW','28123464KIyVGC','innerHTML','hidden','children','988MNsgIg','404fpKaaK','_bodyCollection','704347WNEqEC','markAsDone','_contextChipsView','ck-ai-chat__feed__context-chips','13909130lTHCww','render','_createContextChipsView','_createMessageContentView','ck-ai-chat__feed__user-message','ck-ai-chat__feed__message-content','917711zIsuap','extendTemplate','add','initialContent','143984xZUADX'];_0x59a0=function(){return _0xd0e9cb;};return _0x59a0();}export class AIChatFeedUserMessageItemView extends _0x347724{[_0x5c6d16(0x139)]=null;[_0x5c6d16(0x125)];[_0x5c6d16(0x136)];[_0x5c6d16(0x126)];constructor(_0xba1cf5,_0x4d1719,_0x2fae3e){var _0x11adff=_0x5c6d16;super(_0x4d1719),this[_0x11adff(0x125)]=_0xba1cf5,this[_0x11adff(0x136)]=_0x2fae3e,this[_0x11adff(0x119)](),this[_0x11adff(0x11a)](),this[_0x11adff(0x11e)]({'attributes':{'class':[_0x11adff(0x11b)]}});}[_0x5c6d16(0x119)](){var _0x1cabec=_0x5c6d16;this[_0x1cabec(0x12e)][_0x1cabec(0x12c)]&&this[_0x1cabec(0x12e)][_0x1cabec(0x12c)][_0x1cabec(0x122)]>0x0&&(this[_0x1cabec(0x139)]=new _0x33e4e0(this[_0x1cabec(0x125)],this[_0x1cabec(0x12e)][_0x1cabec(0x12c)][_0x1cabec(0x12a)](_0x4809e5=>!_0x4809e5[_0x1cabec(0x132)]),this[_0x1cabec(0x136)]),this[_0x1cabec(0x139)][_0x1cabec(0x11e)]({'attributes':{'class':_0x1cabec(0x13a)}}),this[_0x1cabec(0x133)][_0x1cabec(0x11f)](this[_0x1cabec(0x139)]));}[_0x5c6d16(0x11a)](){var _0x513b00=_0x5c6d16;this[_0x513b00(0x126)]=new _0x27d14a(this[_0x513b00(0x125)]),this[_0x513b00(0x126)][_0x513b00(0x12b)]({'tag':_0x513b00(0x12d),'attributes':{'class':_0x513b00(0x11c)}}),this[_0x513b00(0x133)][_0x513b00(0x11f)](this[_0x513b00(0x126)]);}[_0x5c6d16(0x118)](){var _0x4f1c96=_0x5c6d16;super[_0x4f1c96(0x118)](),this[_0x4f1c96(0x126)][_0x4f1c96(0x123)][_0x4f1c96(0x131)]=this[_0x4f1c96(0x12e)][_0x4f1c96(0x120)],this[_0x4f1c96(0x138)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a0b31=_0x3f23;function _0x48bb(){const _0x2cd666=['40lTRaxe','addFileToContext','toggleWebSearch','40yaNPID','sendUserMessage','removeContextItem','selectModel','22mvPIrp','28pzFaCT','4382328aPviDb','21447LcngsX','startConversation','8VBuBFE','2evdauC','5397133IyCgQB','loadSourceResources','abortPromptStream','794118akdLGN','addUrlToContext','244868lYkDTh','addResourceToContext','1017803OKPFRU','resizeTabs','8521317RcvxIW','10FGcULn','toggleReasoning','addDocumentToContext'];_0x48bb=function(){return _0x2cd666;};return _0x48bb();}function _0x3f23(_0x4857e2,_0x28cf77){const _0x48bbd3=_0x48bb();return _0x3f23=function(_0x3f23aa,_0x5e76e9){_0x3f23aa=_0x3f23aa-0x177;let _0x2e8f75=_0x48bbd3[_0x3f23aa];return _0x2e8f75;},_0x3f23(_0x4857e2,_0x28cf77);}(function(_0x38d269,_0x46fac9){const _0x39c962=_0x3f23,_0x2c7dff=_0x38d269();while(!![]){try{const _0x53411d=parseInt(_0x39c962(0x185))/0x1*(-parseInt(_0x39c962(0x17d))/0x2)+parseInt(_0x39c962(0x17a))/0x3*(-parseInt(_0x39c962(0x18b))/0x4)+parseInt(_0x39c962(0x18e))/0x5*(parseInt(_0x39c962(0x181))/0x6)+-parseInt(_0x39c962(0x17e))/0x7*(-parseInt(_0x39c962(0x17c))/0x8)+-parseInt(_0x39c962(0x187))/0x9*(parseInt(_0x39c962(0x188))/0xa)+-parseInt(_0x39c962(0x177))/0xb*(-parseInt(_0x39c962(0x179))/0xc)+-parseInt(_0x39c962(0x183))/0xd*(-parseInt(_0x39c962(0x178))/0xe);if(_0x53411d===_0x46fac9)break;else _0x2c7dff['push'](_0x2c7dff['shift']());}catch(_0x4bbf2c){_0x2c7dff['push'](_0x2c7dff['shift']());}}}(_0x48bb,0x89285));import{AI_SUGGESTION_UI_EVENT_NAMES as _0x4087ff}from'../../aicore/utils/eventnames.js';export const AI_CHAT_UI_EVENT_NAMES=[..._0x4087ff,_0x2a0b31(0x17b),_0x2a0b31(0x186),_0x2a0b31(0x18f),_0x2a0b31(0x180),_0x2a0b31(0x18a),_0x2a0b31(0x18c),_0x2a0b31(0x182),_0x2a0b31(0x184),_0x2a0b31(0x190),_0x2a0b31(0x17f),_0x2a0b31(0x18d),_0x2a0b31(0x189),_0x2a0b31(0x191)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x57bf59=_0x3749;(function(_0x52f343,_0x315839){const _0x59b169=_0x3749,_0x88cd91=_0x52f343();while(!![]){try{const _0x377b7e=-parseInt(_0x59b169(0x7f))/0x1*(-parseInt(_0x59b169(0x8b))/0x2)+-parseInt(_0x59b169(0x8d))/0x3+parseInt(_0x59b169(0x7d))/0x4*(-parseInt(_0x59b169(0x74))/0x5)+-parseInt(_0x59b169(0x8f))/0x6*(parseInt(_0x59b169(0x7e))/0x7)+parseInt(_0x59b169(0x86))/0x8+parseInt(_0x59b169(0x87))/0x9*(parseInt(_0x59b169(0x75))/0xa)+-parseInt(_0x59b169(0x8a))/0xb*(-parseInt(_0x59b169(0x7a))/0xc);if(_0x377b7e===_0x315839)break;else _0x88cd91['push'](_0x88cd91['shift']());}catch(_0x4d6ff9){_0x88cd91['push'](_0x88cd91['shift']());}}}(_0x5455,0xdf2d3));import{EmitterMixin as _0x19bffb}from'ckeditor5/src/utils.js';function _0x3749(_0x3c6f15,_0x330491){const _0x5455c5=_0x5455();return _0x3749=function(_0x3749b7,_0x47f128){_0x3749b7=_0x3749b7-0x72;let _0x47970b=_0x5455c5[_0x3749b7];return _0x47970b;},_0x3749(_0x3c6f15,_0x330491);}export class PromiseQueue extends _0x19bffb(){[_0x57bf59(0x73)]=[];[_0x57bf59(0x89)]=!0x1;[_0x57bf59(0x7c)];async[_0x57bf59(0x79)](_0x1645e5){const _0xa3032b=_0x57bf59,_0x427d61=this[_0xa3032b(0x7b)](_0x1645e5);return this[_0xa3032b(0x73)][_0xa3032b(0x88)](_0x427d61),this[_0xa3032b(0x80)](),_0x427d61[_0xa3032b(0x81)];}[_0x57bf59(0x76)](){const _0xa776be=_0x57bf59;this[_0xa776be(0x89)]&&(this[_0xa776be(0x7c)][_0xa776be(0x76)](),this[_0xa776be(0x7c)]=void 0x0,this[_0xa776be(0x73)]=[],this[_0xa776be(0x85)](_0xa776be(0x77)),this[_0xa776be(0x89)]=!0x1);}get[_0x57bf59(0x82)](){const _0x2aefb5=_0x57bf59;return this[_0x2aefb5(0x73)][_0x2aefb5(0x90)]||this[_0x2aefb5(0x89)]?new Promise(_0x108dd0=>{const _0x15d664=_0x2aefb5;this[_0x15d664(0x83)](_0x15d664(0x77),()=>{_0x108dd0();});}):Promise[_0x2aefb5(0x72)]();}async[_0x57bf59(0x80)](){const _0x4a1277=_0x57bf59;if(!this[_0x4a1277(0x89)]){this[_0x4a1277(0x7c)]=new AbortController(),this[_0x4a1277(0x89)]=!0x0;try{for(;this[_0x4a1277(0x73)][_0x4a1277(0x90)]&&this[_0x4a1277(0x89)];){const _0x6b358=this[_0x4a1277(0x73)][_0x4a1277(0x8e)]();try{await _0x6b358[_0x4a1277(0x8c)](this[_0x4a1277(0x7c)][_0x4a1277(0x84)]),_0x6b358[_0x4a1277(0x72)]();}catch(_0x16d2ad){_0x6b358[_0x4a1277(0x78)](_0x16d2ad);}}}finally{this[_0x4a1277(0x89)]=!0x1,this[_0x4a1277(0x7c)]=void 0x0;}this[_0x4a1277(0x85)](_0x4a1277(0x77));}}[_0x57bf59(0x7b)](_0x219fde){let _0xa8d4b0,_0x1f4905;const _0x34be57=new Promise((_0x2d72c0,_0xbb5312)=>{_0xa8d4b0=_0x2d72c0,_0x1f4905=_0xbb5312;});return{'callback':_0x219fde,'resolve':_0xa8d4b0,'reject':_0x1f4905,'completePromise':_0x34be57};}}function _0x5455(){const _0x1fe8c6=['abort','_queueEmpty','reject','enqueue','16392vmvGVM','createTask','_abortController','8mxwMjE','14cxeFEX','197dWofnV','_processQueue','completePromise','queueEmptyPromise','once','signal','fire','9118640JgHkuP','36agwsjq','push','isProcessing','3883uPtnDm','13998ltxoxJ','callback','72072oWwTBT','shift','3138942lgngiE','length','resolve','queue','3580175FkLkJz','1039270sjCbUj'];_0x5455=function(){return _0x1fe8c6;};return _0x5455();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x24479e=_0x47ea;function _0x5954(){var _0x26eb79=['738GgvJtc','88wdBVJM','24nZzwBZ','requires','30054mdBnrn','isPremiumPlugin','2207560HuvzYS','AIChatHistory','isOfficialPlugin','1517784CJxVHy','3931760BmcaMV','pluginName','2299725CtqGac','516342ncORsI','1wcQOmq','7644FeAEPK','18vBrYZo'];_0x5954=function(){return _0x26eb79;};return _0x5954();}(function(_0x3686c0,_0x388fc5){var _0x1b5e62=_0x47ea,_0x7af699=_0x3686c0();while(!![]){try{var _0x4ab268=-parseInt(_0x1b5e62(0xbf))/0x1*(parseInt(_0x1b5e62(0xbe))/0x2)+-parseInt(_0x1b5e62(0xc6))/0x3*(-parseInt(_0x1b5e62(0xc4))/0x4)+-parseInt(_0x1b5e62(0xbd))/0x5+-parseInt(_0x1b5e62(0xc2))/0x6*(parseInt(_0x1b5e62(0xc0))/0x7)+parseInt(_0x1b5e62(0xbb))/0x8+-parseInt(_0x1b5e62(0xc1))/0x9*(parseInt(_0x1b5e62(0xc8))/0xa)+parseInt(_0x1b5e62(0xc3))/0xb*(parseInt(_0x1b5e62(0xba))/0xc);if(_0x4ab268===_0x388fc5)break;else _0x7af699['push'](_0x7af699['shift']());}catch(_0x3c59e1){_0x7af699['push'](_0x7af699['shift']());}}}(_0x5954,0x41cb2));import{ContextPlugin as _0x3293b3}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0x1ae7e1}from'./aichathistorycontroller.js';function _0x47ea(_0x1ed181,_0x4c2b24){var _0x59541c=_0x5954();return _0x47ea=function(_0x47ea11,_0x540cfb){_0x47ea11=_0x47ea11-0xba;var _0x240a78=_0x59541c[_0x47ea11];return _0x240a78;},_0x47ea(_0x1ed181,_0x4c2b24);}import{AIChatHistoryUI as _0x1e7904}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x3293b3{static get[_0x24479e(0xc5)](){return[_0x1ae7e1,_0x1e7904];}static get[_0x24479e(0xbc)](){var _0x2eedfb=_0x24479e;return _0x2eedfb(0xc9);}static get[_0x24479e(0xca)](){return!0x0;}static get[_0x24479e(0xc7)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5f40ef=_0x4530;(function(_0x4b380a,_0x56f1e0){const _0x16bddf=_0x4530,_0x3cc685=_0x4b380a();while(!![]){try{const _0x379d0d=parseInt(_0x16bddf(0x113))/0x1+-parseInt(_0x16bddf(0xec))/0x2+-parseInt(_0x16bddf(0xfd))/0x3+parseInt(_0x16bddf(0xdc))/0x4*(-parseInt(_0x16bddf(0x10a))/0x5)+-parseInt(_0x16bddf(0xdf))/0x6*(-parseInt(_0x16bddf(0x11b))/0x7)+-parseInt(_0x16bddf(0x11c))/0x8+-parseInt(_0x16bddf(0x11a))/0x9*(-parseInt(_0x16bddf(0xed))/0xa);if(_0x379d0d===_0x56f1e0)break;else _0x3cc685['push'](_0x3cc685['shift']());}catch(_0x1d6226){_0x3cc685['push'](_0x3cc685['shift']());}}}(_0x1165,0x6c371));import{ContextPlugin as _0x48f314}from'ckeditor5/src/core.js';import{AIConnector as _0x1b3cc0}from'../aicore/aiconnector.js';import{AIChatController as _0x3d9c8b}from'../aichat/aichatcontroller.js';function _0x4530(_0x45b0b2,_0x51c605){const _0x116557=_0x1165();return _0x4530=function(_0x4530c1,_0x3f56b3){_0x4530c1=_0x4530c1-0xcc;let _0x52e88f=_0x116557[_0x4530c1];return _0x52e88f;},_0x4530(_0x45b0b2,_0x51c605);}import{AITabs as _0x5d559b}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x14f3ee}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x5a4371}from'./model/aichathistoryconversations.js';function _0x1165(){const _0x41bc04=['isPremiumPlugin','get','getFullYear','resize','pin','loadItems','title','getGroupId','410084HcvvRY','selectConversation','plugins','6gZGHwq','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','updateItemTitle','_setIsMaximized','unpin','listenTo','AI_CHAT_HISTORY_UNPIN_ACTION','getDate','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','itemUpdated','AI_CHAT_HISTORY_CATEGORY_LATER','toLocaleDateString','handleRemovedConversation','899692AjMQCI','40MPNUVo','setDate','_handleSelectConversation','operation','createdAt','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','AI_CHAT_HISTORY_PIN_ACTION','removeItem','itemRemoved','_aiChatHistoryUi','AI_CHAT_HISTORY_ERROR_GENERIC','setLoadingSkeleton','_handleEditTitle','resizedTabs','error','removeConversation','1416423RpZKhr','_handleTogglePin','init','items','activateTab','AI_CHAT_HISTORY_CATEGORY_PINNED','requires','getItem','itemId','_handleHistoryErrorUI','pluginName','change:activeConversation','rename','30VYQfBM','editConversationTitle','openChat','pinned','_handleRemove','resizeTabs','updates','locale','removeHistoryItem','195337nDnWfH','AIChatHistoryController','AI_CHAT_UNTITLED_CONVERSATION','map','setConversationPinned','push','loadConversation','3895362zUzxkm','5903058MUjJNT','6316328OfmiXd','itemsLoaded','updateItemPinned','showError','_aiConnector','history','updateItemLoadingState','setIsMaximized','chat','_updateHistoryItemsUI','length','getItems','AI_CHAT_HISTORY_CATEGORY_TODAY','activateTab:history','updateItems','_setItemLoading','_showConversationHistory','activeConversation','view','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','isOfficialPlugin','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','_generateErrorMessage','_aiChatController','_getCategorizedItems','remove','_clearItemLoading','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','getMonth','context'];_0x1165=function(){return _0x41bc04;};return _0x1165();}import{getTranslation as _0x31b109}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x48f314{[_0x5f40ef(0x120)];[_0x5f40ef(0xf6)];[_0x5f40ef(0xcd)];static get[_0x5f40ef(0x103)](){return[_0x1b3cc0,_0x3d9c8b,_0x14f3ee,_0x5d559b];}static get[_0x5f40ef(0x107)](){const _0x49c545=_0x5f40ef;return _0x49c545(0x114);}static get[_0x5f40ef(0x130)](){return!0x0;}static get[_0x5f40ef(0xd4)](){return!0x0;}[_0x5f40ef(0xff)](){const _0x14d66c=_0x5f40ef;this[_0x14d66c(0x120)]=this[_0x14d66c(0xd3)][_0x14d66c(0xde)][_0x14d66c(0xd5)](_0x1b3cc0),this[_0x14d66c(0xf6)]=this[_0x14d66c(0xd3)][_0x14d66c(0xde)][_0x14d66c(0xd5)](_0x14f3ee),this[_0x14d66c(0xcd)]=this[_0x14d66c(0xd3)][_0x14d66c(0xde)][_0x14d66c(0xd5)](_0x3d9c8b);const _0x2f67d2=this[_0x14d66c(0xd3)][_0x14d66c(0xde)][_0x14d66c(0xd5)](_0x5d559b);try{const _0x19da29=this[_0x14d66c(0xcd)][_0x14d66c(0xdb)]();this[_0x14d66c(0x121)]=new _0x5a4371({'connector':this[_0x14d66c(0x120)],'group':_0x19da29}),this[_0x14d66c(0xe4)](this[_0x14d66c(0xf6)],_0x14d66c(0xfc),(_0x5e7d2c,_0x7dc8d9)=>{const _0x3afcc3=_0x14d66c;this[_0x3afcc3(0x12b)](_0x7dc8d9['id'],_0x3afcc3(0xcf)),this[_0x3afcc3(0x10e)](_0x7dc8d9['id']);}),this[_0x14d66c(0xe4)](this[_0x14d66c(0xf6)],_0x14d66c(0x10b),(_0x1aed10,_0x3a6584)=>{const _0x55b3be=_0x14d66c;this[_0x55b3be(0x12b)](_0x3a6584['id'],_0x55b3be(0x109)),this[_0x55b3be(0xf9)](_0x3a6584['id'],_0x3a6584[_0x55b3be(0xda)]);}),this[_0x14d66c(0xe4)](this[_0x14d66c(0x121)],_0x14d66c(0xe8),(_0xb190ac,_0x485878)=>{const _0x232c07=_0x14d66c;void 0x0!==_0x485878[_0x232c07(0x110)][_0x232c07(0xda)]&&this[_0x232c07(0xf6)][_0x232c07(0xe1)](_0x485878[_0x232c07(0x105)],_0x485878[_0x232c07(0x110)][_0x232c07(0xda)]),void 0x0!==_0x485878[_0x232c07(0x110)][_0x232c07(0x10d)]&&this[_0x232c07(0x125)](),this[_0x232c07(0xd0)](_0x485878[_0x232c07(0x105)]);}),this[_0x14d66c(0xe4)](this[_0x14d66c(0x121)],_0x14d66c(0xf5),(_0x3f2bca,_0x366450)=>{const _0x34ddf8=_0x14d66c;this[_0x34ddf8(0xcd)][_0x34ddf8(0xeb)](_0x366450[_0x34ddf8(0x105)]),this[_0x34ddf8(0xf6)][_0x34ddf8(0x112)](_0x366450[_0x34ddf8(0x105)]),this[_0x34ddf8(0xd0)](_0x366450[_0x34ddf8(0x105)]);}),this[_0x14d66c(0xe4)](this[_0x14d66c(0x121)],_0x14d66c(0x11d),()=>{const _0x4d654e=_0x14d66c;this[_0x4d654e(0x125)]();}),this[_0x14d66c(0xe4)](this[_0x14d66c(0x121)],_0x14d66c(0xfb),(_0x241c1f,_0x553805)=>{const _0x2006d6=_0x14d66c;this[_0x2006d6(0x106)](_0x553805[_0x2006d6(0xfb)],_0x553805[_0x2006d6(0xf0)],_0x553805[_0x2006d6(0x105)]);}),this[_0x14d66c(0xe4)](this[_0x14d66c(0xf6)],_0x14d66c(0xdd),(_0x222c1e,_0xd4ed2a)=>{const _0x17cecf=_0x14d66c;this[_0x17cecf(0xef)](_0xd4ed2a['id']);}),this[_0x14d66c(0xe4)](this[_0x14d66c(0xf6)],_0x14d66c(0x117),(_0x542ac,_0x22e454)=>{const _0x4f600c=_0x14d66c,_0x366b4b=_0x22e454[_0x4f600c(0x10d)]?_0x4f600c(0xd8):_0x4f600c(0xe3);this[_0x4f600c(0x12b)](_0x22e454['id'],_0x366b4b),this[_0x4f600c(0xfe)](_0x22e454['id'],_0x22e454[_0x4f600c(0x10d)]);}),this[_0x14d66c(0xe4)](this[_0x14d66c(0xf6)],_0x14d66c(0x10c),()=>{const _0x53fe5e=_0x14d66c;_0x2f67d2[_0x53fe5e(0x12e)][_0x53fe5e(0x101)](_0x53fe5e(0x124));}),this[_0x14d66c(0xe4)](this[_0x14d66c(0xcd)],_0x14d66c(0x108),()=>{const _0xb946cd=_0x14d66c;this[_0xb946cd(0x125)]();}),_0x2f67d2[_0x14d66c(0x12e)]['on'](_0x14d66c(0x129),()=>{const _0x36bc4c=_0x14d66c;this[_0x36bc4c(0x12c)]();}),this[_0x14d66c(0xe4)](_0x2f67d2,_0x14d66c(0xfa),(_0x123f28,_0x1e892e)=>{const _0x2c5669=_0x14d66c;this[_0x2c5669(0xe2)](_0x1e892e);}),this[_0x14d66c(0xe4)](this[_0x14d66c(0xf6)],_0x14d66c(0x10f),()=>{const _0x108aac=_0x14d66c;_0x2f67d2[_0x108aac(0xd7)]();});}catch(_0x10d567){this[_0x14d66c(0x106)](_0x10d567,_0x14d66c(0xff));}}async[_0x5f40ef(0xf9)](_0x1b572b,_0x4a6f2a){const _0x404121=_0x5f40ef;await this[_0x404121(0x121)][_0x404121(0xe1)](_0x1b572b,_0x4a6f2a);}async[_0x5f40ef(0xfe)](_0x42b36b,_0x27144d){const _0x7cab07=_0x5f40ef;await this[_0x7cab07(0x121)][_0x7cab07(0x11e)](_0x42b36b,_0x27144d);}async[_0x5f40ef(0x10e)](_0x21ef97){const _0x3587f5=_0x5f40ef;await this[_0x3587f5(0x121)][_0x3587f5(0xf4)](_0x21ef97);}async[_0x5f40ef(0xef)](_0x3ce186){const _0x4587af=_0x5f40ef;await this[_0x4587af(0xcd)][_0x4587af(0x119)](_0x3ce186);}async[_0x5f40ef(0x12c)](){const _0x52749a=_0x5f40ef;this[_0x52749a(0xf6)][_0x52749a(0x11f)](''),this[_0x52749a(0xf6)][_0x52749a(0xf8)](!0x0),await this[_0x52749a(0x121)][_0x52749a(0xff)](),this[_0x52749a(0xf6)][_0x52749a(0xf8)](!0x1);}[_0x5f40ef(0x125)](){const _0x16c464=_0x5f40ef,_0xede06e=this[_0x16c464(0xcd)][_0x16c464(0x12d)]?.['id'],_0x5f3b70=this[_0x16c464(0xce)]()[_0x16c464(0x116)](_0x54e48d=>({'title':_0x54e48d[_0x16c464(0xda)],'items':_0x54e48d[_0x16c464(0x100)][_0x16c464(0x116)](_0x48035e=>({'id':_0x48035e['id'],'title':_0x48035e[_0x16c464(0xda)]||_0x31b109(this[_0x16c464(0xd3)][_0x16c464(0x111)],_0x16c464(0x115)),'createdAt':new Date(_0x48035e[_0x16c464(0xf1)])[_0x16c464(0xea)](),'active':_0x48035e['id']===_0xede06e,'pinned':_0x48035e[_0x16c464(0x10d)]}))}));this[_0x16c464(0xf6)][_0x16c464(0x12a)](_0x5f3b70);}[_0x5f40ef(0x12b)](_0x362913,_0x1f8f6d){const _0x1dee00=_0x5f40ef;this[_0x1dee00(0xf6)][_0x1dee00(0x122)](_0x362913,_0x1f8f6d,!0x0);}[_0x5f40ef(0xd0)](_0x24bab0){const _0x545a13=_0x5f40ef;this[_0x545a13(0xf6)][_0x545a13(0x122)](_0x24bab0,null,!0x1);}[_0x5f40ef(0x106)](_0x3dbd97,_0x43d247,_0x476576){const _0x4bb331=_0x5f40ef,_0xe1528a=this[_0x4bb331(0xcc)](_0x43d247,_0x476576);this[_0x4bb331(0xf6)][_0x4bb331(0x11f)](_0xe1528a),_0x476576&&this[_0x4bb331(0xd0)](_0x476576),this[_0x4bb331(0xf6)][_0x4bb331(0xf8)](!0x1);}[_0x5f40ef(0xcc)](_0x2751f8,_0x4ac84b){const _0x33d6bb=_0x5f40ef,_0x1d1c6f=_0x4ac84b?this[_0x33d6bb(0x121)][_0x33d6bb(0x104)](_0x4ac84b):null,_0x3652b9=_0x1d1c6f?.[_0x33d6bb(0xda)]||_0x31b109(this[_0x33d6bb(0xd3)][_0x33d6bb(0x111)],_0x33d6bb(0x115));switch(_0x2751f8){case _0x33d6bb(0xe1):return _0x31b109(this[_0x33d6bb(0xd3)][_0x33d6bb(0x111)],_0x33d6bb(0xf2),_0x3652b9);case _0x33d6bb(0x11e):{const _0x2f7b0a=_0x31b109(this[_0x33d6bb(0xd3)][_0x33d6bb(0x111)],_0x1d1c6f?.[_0x33d6bb(0x10d)]?_0x33d6bb(0xe5):_0x33d6bb(0xf3));return _0x31b109(this[_0x33d6bb(0xd3)][_0x33d6bb(0x111)],_0x33d6bb(0x131),[_0x2f7b0a,_0x3652b9]);}case _0x33d6bb(0xf4):return _0x31b109(this[_0x33d6bb(0xd3)][_0x33d6bb(0x111)],_0x33d6bb(0xe0),_0x3652b9);case _0x33d6bb(0xff):case _0x33d6bb(0xd9):return _0x31b109(this[_0x33d6bb(0xd3)][_0x33d6bb(0x111)],_0x33d6bb(0x12f));default:return _0x31b109(this[_0x33d6bb(0xd3)][_0x33d6bb(0x111)],_0x33d6bb(0xf7));}}[_0x5f40ef(0xce)](){const _0x6bc9b=_0x5f40ef,_0x1a36c7=new Date(),_0x522989=new Date(_0x1a36c7[_0x6bc9b(0xd6)](),_0x1a36c7[_0x6bc9b(0xd2)](),_0x1a36c7[_0x6bc9b(0xe6)]()),_0x21c57d=new Date(_0x522989);_0x21c57d[_0x6bc9b(0xee)](_0x21c57d[_0x6bc9b(0xe6)]()-0x1);const _0x179ba3=new Date(_0x522989);_0x179ba3[_0x6bc9b(0xee)](_0x179ba3[_0x6bc9b(0xe6)]()-0xe);const _0x3c0071=this[_0x6bc9b(0x121)][_0x6bc9b(0x127)]({'pinned':!0x0}),_0x1e29d1=this[_0x6bc9b(0x121)][_0x6bc9b(0x127)]({'from':_0x522989,'to':_0x522989}),_0x46fd75=this[_0x6bc9b(0x121)][_0x6bc9b(0x127)]({'from':_0x21c57d,'to':_0x21c57d}),_0x480724=this[_0x6bc9b(0x121)][_0x6bc9b(0x127)]({'from':_0x179ba3,'to':_0x21c57d}),_0x178670=this[_0x6bc9b(0x121)][_0x6bc9b(0x127)]({'to':_0x179ba3}),_0x46dd32=[];return _0x3c0071[_0x6bc9b(0x126)]>0x0&&_0x46dd32[_0x6bc9b(0x118)]({'title':_0x31b109(this[_0x6bc9b(0xd3)][_0x6bc9b(0x111)],_0x6bc9b(0x102)),'items':_0x3c0071}),_0x1e29d1[_0x6bc9b(0x126)]>0x0&&_0x46dd32[_0x6bc9b(0x118)]({'title':_0x31b109(this[_0x6bc9b(0xd3)][_0x6bc9b(0x111)],_0x6bc9b(0x128)),'items':_0x1e29d1}),_0x46fd75[_0x6bc9b(0x126)]>0x0&&_0x46dd32[_0x6bc9b(0x118)]({'title':_0x31b109(this[_0x6bc9b(0xd3)][_0x6bc9b(0x111)],_0x6bc9b(0xd1)),'items':_0x46fd75}),_0x480724[_0x6bc9b(0x126)]>0x0&&_0x46dd32[_0x6bc9b(0x118)]({'title':_0x31b109(this[_0x6bc9b(0xd3)][_0x6bc9b(0x111)],_0x6bc9b(0xe7)),'items':_0x480724}),_0x178670[_0x6bc9b(0x126)]>0x0&&_0x46dd32[_0x6bc9b(0x118)]({'title':_0x31b109(this[_0x6bc9b(0xd3)][_0x6bc9b(0x111)],_0x6bc9b(0xe9)),'items':_0x178670}),_0x46dd32;}[_0x5f40ef(0xe2)](_0x383c31){const _0xc818f9=_0x5f40ef;this[_0xc818f9(0xf6)][_0xc818f9(0x123)](_0x383c31);}}
|
|
23
|
+
const _0xbd3570=_0x5f40;(function(_0x3d71b9,_0x55b93a){const _0x2d83e7=_0x5f40,_0x4ef4fa=_0x3d71b9();while(!![]){try{const _0x1d6e4c=-parseInt(_0x2d83e7(0x1f7))/0x1+parseInt(_0x2d83e7(0x205))/0x2+parseInt(_0x2d83e7(0x213))/0x3*(-parseInt(_0x2d83e7(0x22e))/0x4)+-parseInt(_0x2d83e7(0x21c))/0x5+parseInt(_0x2d83e7(0x1e7))/0x6+parseInt(_0x2d83e7(0x22c))/0x7*(-parseInt(_0x2d83e7(0x202))/0x8)+parseInt(_0x2d83e7(0x1d9))/0x9;if(_0x1d6e4c===_0x55b93a)break;else _0x4ef4fa['push'](_0x4ef4fa['shift']());}catch(_0x2f8828){_0x4ef4fa['push'](_0x4ef4fa['shift']());}}}(_0x3f77,0x211fc));function _0x5f40(_0xda0c48,_0x1d4af0){const _0x3f7744=_0x3f77();return _0x5f40=function(_0x5f4018,_0x24e7d7){_0x5f4018=_0x5f4018-0x1cb;let _0x2cf52c=_0x3f7744[_0x5f4018];return _0x2cf52c;},_0x5f40(_0xda0c48,_0x1d4af0);}import{ContextPlugin as _0x48dda9}from'ckeditor5/src/core.js';import{AIConnector as _0x4605c7}from'../aicore/aiconnector.js';import{AIChatController as _0x4c2b61}from'../aichat/aichatcontroller.js';import{AITabs as _0x39f1de}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x5509c5}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x2f2506}from'./model/aichathistoryconversations.js';function _0x3f77(){const _0xce8b37=['getItems','listenTo','7QeIcet','title','46868hYZovd','items','_handleTogglePin','selectConversation','_showConversationHistory','updateItems','setConversationPinned','AI_CHAT_HISTORY_CATEGORY_PINNED','AI_CHAT_HISTORY_CATEGORY_LATER','change:activeConversation','_setItemLoading','isOfficialPlugin','_handleHistoryErrorUI','activateTab:history','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','_handleRemove','4791294lFwwYP','push','get','handleRemovedConversation','getFullYear','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','length','getGroupId','editConversationTitle','setIsMaximized','resize','itemId','AI_CHAT_HISTORY_UNPIN_ACTION','AIChatHistoryController','856974cBtdSD','itemUpdated','locale','itemsLoaded','_aiChatHistoryUi','remove','toLocaleDateString','view','error','_aiConnector','init','_clearItemLoading','removeHistoryItem','updateItemTitle','_handleSelectConversation','removeConversation','193001PMdaFF','plugins','getItem','getDate','requires','createdAt','_setIsMaximized','AI_CHAT_UNTITLED_CONVERSATION','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','pluginName','itemRemoved','279944KPzGJM','openChat','updateItemLoadingState','413538ntCDoS','resizedTabs','activateTab','AI_CHAT_HISTORY_ERROR_GENERIC','loadItems','setDate','context','removeItem','setLoadingSkeleton','updateItemPinned','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','chat','activeConversation','updates','69zSUSkh','map','AI_CHAT_HISTORY_PIN_ACTION','_generateErrorMessage','rename','AI_CHAT_HISTORY_CATEGORY_TODAY','_updateHistoryItemsUI','_handleEditTitle','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','1244015TjRPhU','unpin','showError','history','_getCategorizedItems','_aiChatController','operation','getMonth','pinned','isPremiumPlugin','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','resizeTabs','loadConversation','pin'];_0x3f77=function(){return _0xce8b37;};return _0x3f77();}import{getTranslation as _0x3018d5}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x48dda9{[_0xbd3570(0x1f0)];[_0xbd3570(0x1eb)];[_0xbd3570(0x221)];static get[_0xbd3570(0x1fb)](){return[_0x4605c7,_0x4c2b61,_0x5509c5,_0x39f1de];}static get[_0xbd3570(0x200)](){const _0x298a9f=_0xbd3570;return _0x298a9f(0x1e6);}static get[_0xbd3570(0x1d4)](){return!0x0;}static get[_0xbd3570(0x225)](){return!0x0;}[_0xbd3570(0x1f1)](){const _0x4f6360=_0xbd3570;this[_0x4f6360(0x1f0)]=this[_0x4f6360(0x20b)][_0x4f6360(0x1f8)][_0x4f6360(0x1db)](_0x4605c7),this[_0x4f6360(0x1eb)]=this[_0x4f6360(0x20b)][_0x4f6360(0x1f8)][_0x4f6360(0x1db)](_0x5509c5),this[_0x4f6360(0x221)]=this[_0x4f6360(0x20b)][_0x4f6360(0x1f8)][_0x4f6360(0x1db)](_0x4c2b61);const _0x355511=this[_0x4f6360(0x20b)][_0x4f6360(0x1f8)][_0x4f6360(0x1db)](_0x39f1de);try{const _0x2dc0b8=this[_0x4f6360(0x221)][_0x4f6360(0x1e0)]();this[_0x4f6360(0x21f)]=new _0x2f2506({'connector':this[_0x4f6360(0x1f0)],'group':_0x2dc0b8}),this[_0x4f6360(0x22b)](this[_0x4f6360(0x1eb)],_0x4f6360(0x1f6),(_0x2c1cda,_0x110e85)=>{const _0x37b0ba=_0x4f6360;this[_0x37b0ba(0x1d3)](_0x110e85['id'],_0x37b0ba(0x1ec)),this[_0x37b0ba(0x1d8)](_0x110e85['id']);}),this[_0x4f6360(0x22b)](this[_0x4f6360(0x1eb)],_0x4f6360(0x1e1),(_0x2977a9,_0x5cfc12)=>{const _0x47dacc=_0x4f6360;this[_0x47dacc(0x1d3)](_0x5cfc12['id'],_0x47dacc(0x217)),this[_0x47dacc(0x21a)](_0x5cfc12['id'],_0x5cfc12[_0x47dacc(0x22d)]);}),this[_0x4f6360(0x22b)](this[_0x4f6360(0x21f)],_0x4f6360(0x1e8),(_0x5c52d3,_0x24dd4c)=>{const _0x1c52d2=_0x4f6360;void 0x0!==_0x24dd4c[_0x1c52d2(0x212)][_0x1c52d2(0x22d)]&&this[_0x1c52d2(0x1eb)][_0x1c52d2(0x1f4)](_0x24dd4c[_0x1c52d2(0x1e4)],_0x24dd4c[_0x1c52d2(0x212)][_0x1c52d2(0x22d)]),void 0x0!==_0x24dd4c[_0x1c52d2(0x212)][_0x1c52d2(0x224)]&&this[_0x1c52d2(0x219)](),this[_0x1c52d2(0x1f2)](_0x24dd4c[_0x1c52d2(0x1e4)]);}),this[_0x4f6360(0x22b)](this[_0x4f6360(0x21f)],_0x4f6360(0x201),(_0x565e6e,_0x2a6edd)=>{const _0x4134e9=_0x4f6360;this[_0x4134e9(0x221)][_0x4134e9(0x1dc)](_0x2a6edd[_0x4134e9(0x1e4)]),this[_0x4134e9(0x1eb)][_0x4134e9(0x1f3)](_0x2a6edd[_0x4134e9(0x1e4)]),this[_0x4134e9(0x1f2)](_0x2a6edd[_0x4134e9(0x1e4)]);}),this[_0x4f6360(0x22b)](this[_0x4f6360(0x21f)],_0x4f6360(0x1ea),()=>{const _0x3329a5=_0x4f6360;this[_0x3329a5(0x219)]();}),this[_0x4f6360(0x22b)](this[_0x4f6360(0x21f)],_0x4f6360(0x1ef),(_0xfa1099,_0x528142)=>{const _0x1cc978=_0x4f6360;this[_0x1cc978(0x1d5)](_0x528142[_0x1cc978(0x1ef)],_0x528142[_0x1cc978(0x222)],_0x528142[_0x1cc978(0x1e4)]);}),this[_0x4f6360(0x22b)](this[_0x4f6360(0x1eb)],_0x4f6360(0x1cc),(_0x3f7a1d,_0x3820bc)=>{const _0x52e5b0=_0x4f6360;this[_0x52e5b0(0x1f5)](_0x3820bc['id']);}),this[_0x4f6360(0x22b)](this[_0x4f6360(0x1eb)],_0x4f6360(0x1cf),(_0xc402b9,_0x29de1c)=>{const _0x332671=_0x4f6360,_0xe011d6=_0x29de1c[_0x332671(0x224)]?_0x332671(0x229):_0x332671(0x21d);this[_0x332671(0x1d3)](_0x29de1c['id'],_0xe011d6),this[_0x332671(0x1cb)](_0x29de1c['id'],_0x29de1c[_0x332671(0x224)]);}),this[_0x4f6360(0x22b)](this[_0x4f6360(0x1eb)],_0x4f6360(0x203),()=>{const _0x4719f5=_0x4f6360;_0x355511[_0x4719f5(0x1ee)][_0x4719f5(0x207)](_0x4719f5(0x210));}),this[_0x4f6360(0x22b)](this[_0x4f6360(0x221)],_0x4f6360(0x1d2),()=>{const _0x10e0f2=_0x4f6360;this[_0x10e0f2(0x219)]();}),_0x355511[_0x4f6360(0x1ee)]['on'](_0x4f6360(0x1d6),()=>{const _0x232d8b=_0x4f6360;this[_0x232d8b(0x1cd)]();}),this[_0x4f6360(0x22b)](_0x355511,_0x4f6360(0x206),(_0x269e1e,_0x3c04b9)=>{const _0x3b6844=_0x4f6360;this[_0x3b6844(0x1fd)](_0x3c04b9);}),this[_0x4f6360(0x22b)](this[_0x4f6360(0x1eb)],_0x4f6360(0x227),()=>{const _0x222459=_0x4f6360;_0x355511[_0x222459(0x1e3)]();});}catch(_0x3c4045){this[_0x4f6360(0x1d5)](_0x3c4045,_0x4f6360(0x1f1));}}async[_0xbd3570(0x21a)](_0x4c50ba,_0x44bc70){const _0x12016e=_0xbd3570;await this[_0x12016e(0x21f)][_0x12016e(0x1f4)](_0x4c50ba,_0x44bc70);}async[_0xbd3570(0x1cb)](_0x247d89,_0x2dcee9){const _0x223cd7=_0xbd3570;await this[_0x223cd7(0x21f)][_0x223cd7(0x20e)](_0x247d89,_0x2dcee9);}async[_0xbd3570(0x1d8)](_0x4d14af){const _0x5d0be5=_0xbd3570;await this[_0x5d0be5(0x21f)][_0x5d0be5(0x20c)](_0x4d14af);}async[_0xbd3570(0x1f5)](_0x4faf40){const _0x1cd789=_0xbd3570;await this[_0x1cd789(0x221)][_0x1cd789(0x228)](_0x4faf40);}async[_0xbd3570(0x1cd)](){const _0x1a9562=_0xbd3570;this[_0x1a9562(0x1eb)][_0x1a9562(0x21e)](''),this[_0x1a9562(0x1eb)][_0x1a9562(0x20d)](!0x0),await this[_0x1a9562(0x21f)][_0x1a9562(0x1f1)](),this[_0x1a9562(0x1eb)][_0x1a9562(0x20d)](!0x1);}[_0xbd3570(0x219)](){const _0x2f15ff=_0xbd3570,_0xf19a11=this[_0x2f15ff(0x221)][_0x2f15ff(0x211)]?.['id'],_0x2816cb=this[_0x2f15ff(0x220)]()[_0x2f15ff(0x214)](_0x29841f=>({'title':_0x29841f[_0x2f15ff(0x22d)],'items':_0x29841f[_0x2f15ff(0x22f)][_0x2f15ff(0x214)](_0x28c0d2=>({'id':_0x28c0d2['id'],'title':_0x28c0d2[_0x2f15ff(0x22d)]||_0x3018d5(this[_0x2f15ff(0x20b)][_0x2f15ff(0x1e9)],_0x2f15ff(0x1fe)),'createdAt':new Date(_0x28c0d2[_0x2f15ff(0x1fc)])[_0x2f15ff(0x1ed)](),'active':_0x28c0d2['id']===_0xf19a11,'pinned':_0x28c0d2[_0x2f15ff(0x224)]}))}));this[_0x2f15ff(0x1eb)][_0x2f15ff(0x1ce)](_0x2816cb);}[_0xbd3570(0x1d3)](_0x3efc77,_0x5dcd80){const _0x40783d=_0xbd3570;this[_0x40783d(0x1eb)][_0x40783d(0x204)](_0x3efc77,_0x5dcd80,!0x0);}[_0xbd3570(0x1f2)](_0x36ca99){const _0x13ed2c=_0xbd3570;this[_0x13ed2c(0x1eb)][_0x13ed2c(0x204)](_0x36ca99,null,!0x1);}[_0xbd3570(0x1d5)](_0x362f25,_0x1287b7,_0x4d5bca){const _0x1a6d38=_0xbd3570,_0x929af0=this[_0x1a6d38(0x216)](_0x1287b7,_0x4d5bca);this[_0x1a6d38(0x1eb)][_0x1a6d38(0x21e)](_0x929af0),_0x4d5bca&&this[_0x1a6d38(0x1f2)](_0x4d5bca),this[_0x1a6d38(0x1eb)][_0x1a6d38(0x20d)](!0x1);}[_0xbd3570(0x216)](_0x5aeba0,_0x2ff64c){const _0x46429f=_0xbd3570,_0x2fe21c=_0x2ff64c?this[_0x46429f(0x21f)][_0x46429f(0x1f9)](_0x2ff64c):null,_0x4a1ef2=_0x2fe21c?.[_0x46429f(0x22d)]||_0x3018d5(this[_0x46429f(0x20b)][_0x46429f(0x1e9)],_0x46429f(0x1fe));switch(_0x5aeba0){case _0x46429f(0x1f4):return _0x3018d5(this[_0x46429f(0x20b)][_0x46429f(0x1e9)],_0x46429f(0x21b),_0x4a1ef2);case _0x46429f(0x20e):{const _0x45849a=_0x3018d5(this[_0x46429f(0x20b)][_0x46429f(0x1e9)],_0x2fe21c?.[_0x46429f(0x224)]?_0x46429f(0x1e5):_0x46429f(0x215));return _0x3018d5(this[_0x46429f(0x20b)][_0x46429f(0x1e9)],_0x46429f(0x20f),[_0x45849a,_0x4a1ef2]);}case _0x46429f(0x20c):return _0x3018d5(this[_0x46429f(0x20b)][_0x46429f(0x1e9)],_0x46429f(0x1d7),_0x4a1ef2);case _0x46429f(0x1f1):case _0x46429f(0x209):return _0x3018d5(this[_0x46429f(0x20b)][_0x46429f(0x1e9)],_0x46429f(0x1de));default:return _0x3018d5(this[_0x46429f(0x20b)][_0x46429f(0x1e9)],_0x46429f(0x208));}}[_0xbd3570(0x220)](){const _0x3d8e34=_0xbd3570,_0x47dab8=new Date(),_0x26df64=new Date(_0x47dab8[_0x3d8e34(0x1dd)](),_0x47dab8[_0x3d8e34(0x223)](),_0x47dab8[_0x3d8e34(0x1fa)]()),_0xbd5257=new Date(_0x26df64);_0xbd5257[_0x3d8e34(0x20a)](_0xbd5257[_0x3d8e34(0x1fa)]()-0x1);const _0xce8078=new Date(_0x26df64);_0xce8078[_0x3d8e34(0x20a)](_0xce8078[_0x3d8e34(0x1fa)]()-0xe);const _0x375ead=this[_0x3d8e34(0x21f)][_0x3d8e34(0x22a)]({'pinned':!0x0}),_0x3a532d=this[_0x3d8e34(0x21f)][_0x3d8e34(0x22a)]({'from':_0x26df64,'to':_0x26df64}),_0x4eed0a=this[_0x3d8e34(0x21f)][_0x3d8e34(0x22a)]({'from':_0xbd5257,'to':_0xbd5257}),_0x184be8=this[_0x3d8e34(0x21f)][_0x3d8e34(0x22a)]({'from':_0xce8078,'to':_0xbd5257}),_0x14746c=this[_0x3d8e34(0x21f)][_0x3d8e34(0x22a)]({'to':_0xce8078}),_0x1154b6=[];return _0x375ead[_0x3d8e34(0x1df)]>0x0&&_0x1154b6[_0x3d8e34(0x1da)]({'title':_0x3018d5(this[_0x3d8e34(0x20b)][_0x3d8e34(0x1e9)],_0x3d8e34(0x1d0)),'items':_0x375ead}),_0x3a532d[_0x3d8e34(0x1df)]>0x0&&_0x1154b6[_0x3d8e34(0x1da)]({'title':_0x3018d5(this[_0x3d8e34(0x20b)][_0x3d8e34(0x1e9)],_0x3d8e34(0x218)),'items':_0x3a532d}),_0x4eed0a[_0x3d8e34(0x1df)]>0x0&&_0x1154b6[_0x3d8e34(0x1da)]({'title':_0x3018d5(this[_0x3d8e34(0x20b)][_0x3d8e34(0x1e9)],_0x3d8e34(0x226)),'items':_0x4eed0a}),_0x184be8[_0x3d8e34(0x1df)]>0x0&&_0x1154b6[_0x3d8e34(0x1da)]({'title':_0x3018d5(this[_0x3d8e34(0x20b)][_0x3d8e34(0x1e9)],_0x3d8e34(0x1ff)),'items':_0x184be8}),_0x14746c[_0x3d8e34(0x1df)]>0x0&&_0x1154b6[_0x3d8e34(0x1da)]({'title':_0x3018d5(this[_0x3d8e34(0x20b)][_0x3d8e34(0x1e9)],_0x3d8e34(0x1d1)),'items':_0x14746c}),_0x1154b6;}[_0xbd3570(0x1fd)](_0x1a8400){const _0x4ecd35=_0xbd3570;this[_0x4ecd35(0x1eb)][_0x4ecd35(0x1e2)](_0x1a8400);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a336c=_0x4756;function _0x1fbb(){const _0x8c249=['showConversationHistory','updateItemLoadingState','pluginName','16sEAtsB','plugins','198925XKWeJA','7WtPXgH','removeHistoryItem','selectConversation','802877afGsWy','errorMessage','isMaximized','requires','3203148XNjImF','resizeTabs','setLoadingSkeleton','view','get','updateItems','updateHistoryItemsWithCategories','openChat','locale','isPremiumPlugin','isOfficialPlugin','hideError','6470388YilhnJ','971606CodmBO','editConversationTitle','showError','_historyView','addTab','setConversationPinned','2928807XjzdLM','context','updateItemTitle','40tPHiuW','showResizeButton','isLoading','delegate','AI_CHAT_HISTORY_HEADING','7188709nUnpUa','AIChatHistoryUI','setIsMaximized','removeConversation','76xYeVEf','AITabs','history'];_0x1fbb=function(){return _0x8c249;};return _0x1fbb();}(function(_0x480167,_0x13a196){const _0x4e78bd=_0x4756,_0x16f318=_0x480167();while(!![]){try{const _0x45b99b=-parseInt(_0x4e78bd(0x174))/0x1+parseInt(_0x4e78bd(0x185))/0x2+parseInt(_0x4e78bd(0x178))/0x3+-parseInt(_0x4e78bd(0x168))/0x4*(-parseInt(_0x4e78bd(0x170))/0x5)+parseInt(_0x4e78bd(0x184))/0x6*(parseInt(_0x4e78bd(0x171))/0x7)+-parseInt(_0x4e78bd(0x16e))/0x8*(-parseInt(_0x4e78bd(0x18b))/0x9)+parseInt(_0x4e78bd(0x18e))/0xa*(-parseInt(_0x4e78bd(0x193))/0xb);if(_0x45b99b===_0x13a196)break;else _0x16f318['push'](_0x16f318['shift']());}catch(_0x859fed){_0x16f318['push'](_0x16f318['shift']());}}}(_0x1fbb,0x97c9d));import{ContextPlugin as _0x29414b}from'ckeditor5/src/core.js';import{AITabs as _0xc3e78a}from'../aitabs/aitabs.js';function _0x4756(_0x5be142,_0x3342d6){const _0x1fbbc8=_0x1fbb();return _0x4756=function(_0x4756a3,_0x3ac9c7){_0x4756a3=_0x4756a3-0x165;let _0x56537a=_0x1fbbc8[_0x4756a3];return _0x56537a;},_0x4756(_0x5be142,_0x3342d6);}import{IconAIHistory as _0x599fa8}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x181761}from'./ui/aichathistoryview.js';import{getTranslation as _0x3ad846}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x2a336c(0x16b),_0x2a336c(0x167),_0x2a336c(0x186),_0x2a336c(0x18a),_0x2a336c(0x173),_0x2a336c(0x17f),_0x2a336c(0x179)];export class AIChatHistoryUI extends _0x29414b{static get[_0x2a336c(0x177)](){return[_0xc3e78a];}[_0x2a336c(0x188)];static get[_0x2a336c(0x16d)](){const _0x2ff07e=_0x2a336c;return _0x2ff07e(0x165);}static get[_0x2a336c(0x182)](){return!0x0;}static get[_0x2a336c(0x181)](){return!0x0;}constructor(_0x205b5c){const _0x5dc0bc=_0x2a336c;super(_0x205b5c);const _0x3101bd=this[_0x5dc0bc(0x18c)][_0x5dc0bc(0x16f)][_0x5dc0bc(0x17c)](_0x5dc0bc(0x169));this[_0x5dc0bc(0x188)]=new _0x181761(this[_0x5dc0bc(0x18c)][_0x5dc0bc(0x180)],_0x3101bd[_0x5dc0bc(0x18f)]),this[_0x5dc0bc(0x188)][_0x5dc0bc(0x191)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x3101bd[_0x5dc0bc(0x17b)][_0x5dc0bc(0x189)]({'id':_0x5dc0bc(0x16a),'buttonLabel':_0x3ad846(this[_0x5dc0bc(0x18c)][_0x5dc0bc(0x180)],_0x5dc0bc(0x192)),'buttonIcon':_0x599fa8,'order':0x0,'content':this[_0x5dc0bc(0x188)]});}[_0x2a336c(0x172)](_0x458b3e){const _0x4549e8=_0x2a336c;this[_0x4549e8(0x188)][_0x4549e8(0x172)](_0x458b3e);}[_0x2a336c(0x17d)](_0xa65a03){const _0x37f862=_0x2a336c;this[_0x37f862(0x188)][_0x37f862(0x17e)](_0xa65a03);}[_0x2a336c(0x18d)](_0xb5b045,_0x318319){const _0x304496=_0x2a336c;this[_0x304496(0x188)][_0x304496(0x18d)](_0xb5b045,_0x318319);}[_0x2a336c(0x16c)](_0x582d3e,_0x52d191,_0x14fc0f){const _0x306355=_0x2a336c;this[_0x306355(0x188)][_0x306355(0x16c)](_0x582d3e,_0x52d191,_0x14fc0f);}[_0x2a336c(0x17a)](_0x6c439f){const _0x349275=_0x2a336c;this[_0x349275(0x188)][_0x349275(0x190)]=_0x6c439f;}[_0x2a336c(0x187)](_0x4af913){const _0x2bc4a4=_0x2a336c;this[_0x2bc4a4(0x188)][_0x2bc4a4(0x175)]=_0x4af913;}[_0x2a336c(0x183)](){const _0x4d0154=_0x2a336c;this[_0x4d0154(0x188)][_0x4d0154(0x175)]='';}[_0x2a336c(0x166)](_0x547f20){const _0x20de86=_0x2a336c;this[_0x20de86(0x188)][_0x20de86(0x176)]=_0x547f20;}}
|